Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/components/toast/src/stories/FromDialog.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<script setup lang="ts">
import { ref } from 'vue'
import {
OkuToast, OkuToastAction,
OkuToastDescription, OkuToastProvider, OkuToastViewport,
} from '@oku-ui/toast'
import { ref } from 'vue'
import {
OkuDialog, OkuDialogClose, OkuDialogContent, OkuDialogDescription, OkuDialogOverlay, OkuDialogTitle, OkuDialogTrigger,
} from '@oku-ui/dialog'

const open = ref(false)
</script>
Expand Down
28 changes: 14 additions & 14 deletions packages/components/toast/src/stories/Toast.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,20 @@ export const Controlled: Story = {
}),
}

// export const FromDialog: Story = {
// args: {
// template: 'FromDialog',
// },
// render: (args: any) => ({
// components: { OkuToastComponent },
// setup() {
// return { args }
// },
// template: `
// <OkuToastComponent v-bind="args" />
// `,
// }),
// }
export const FromDialog: Story = {
args: {
template: 'FromDialog',
},
render: (args: any) => ({
components: { OkuToastComponent },
setup() {
return { args }
},
template: `
<OkuToastComponent v-bind="args" />
`,
}),
}

export const Promise: Story = {
args: {
Expand Down
13 changes: 7 additions & 6 deletions packages/components/toast/src/stories/ToastDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Animated from './Animated.vue'
import Cypress from './Cypress.vue'
import Chromatic from './Chromatic.vue'
import Styled from './Styled.vue'
import FromDialog from './FromDialog.vue'

withDefaults(defineProps<IToastProps>(), {})
const VIEWPORT_PADDING = '20px'
Expand All @@ -25,10 +26,10 @@ export interface IToastProps {
<template v-if="template === 'Controlled' || allshow">
<Controlled />
</template>
<!-- TODO: Needs OkuDialog Component -->
<!-- <template v-if="template === 'FromDialog' || allshow">

<template v-if="template === 'FromDialog' || allshow">
<FromDialog />
</template> -->
</template>

<template v-if="template === 'Promise' || allshow">
<Promise />
Expand Down Expand Up @@ -216,15 +217,15 @@ export interface IToastProps {
}

[data-swipe="end"][data-swipe-direction="left"] {
animation-name: slideRight;
animation-name: slideLeft;
}

[data-swipe="end"][data-swipe-direction="up"] {
animation-name: slideRight;
animation-name: slideUp;
}

[data-swipe="end"][data-swipe-direction="down"] {
animation-name: slideRight;
animation-name: slideDown;
}

.chromatic-viewport {
Expand Down
6 changes: 3 additions & 3 deletions packages/components/toast/src/stories/toast.css
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,15 @@
}

[data-swipe="end"][data-swipe-direction="left"] {
animation-name: slideRight;
animation-name: slideLeft;
}

[data-swipe="end"][data-swipe-direction="up"] {
animation-name: slideRight;
animation-name: slideUp;
}

[data-swipe="end"][data-swipe-direction="down"] {
animation-name: slideRight;
animation-name: slideDown;
}

.chromatic-viewport {
Expand Down