diff --git a/packages/core/src/__tests__/__snapshots__/exports.test.ts.snap b/packages/core/src/__tests__/__snapshots__/exports.test.ts.snap index 101cef8d4c..f3cbb1c27d 100644 --- a/packages/core/src/__tests__/__snapshots__/exports.test.ts.snap +++ b/packages/core/src/__tests__/__snapshots__/exports.test.ts.snap @@ -104,6 +104,7 @@ exports[`exports should export all components 1`] = ` "ToastLink", "Toggle", "Tooltip", + "TransitionView", "VirtualizedGrid", "VirtualizedList", "useGridKeyboardNavigationContext", diff --git a/packages/core/src/components/Modal/layouts/ModalBasicLayout/__stories__/ModalBasicLayout.stories.tsx b/packages/core/src/components/Modal/layouts/ModalBasicLayout/__stories__/ModalBasicLayout.stories.tsx index 60c50aad57..32d28fb610 100644 --- a/packages/core/src/components/Modal/layouts/ModalBasicLayout/__stories__/ModalBasicLayout.stories.tsx +++ b/packages/core/src/components/Modal/layouts/ModalBasicLayout/__stories__/ModalBasicLayout.stories.tsx @@ -31,12 +31,7 @@ export default { argTypes: metaSettings.argTypes, decorators: metaSettings.decorators, parameters: { - layout: "fullscreen", - docs: { - liveEdit: { - scope: { TransitionView } - } - } + layout: "fullscreen" } } satisfies Meta; diff --git a/packages/core/src/components/Modal/layouts/ModalMediaLayout/__stories__/ModalMediaLayout.stories.tsx b/packages/core/src/components/Modal/layouts/ModalMediaLayout/__stories__/ModalMediaLayout.stories.tsx index dfea06660b..1a84d43e14 100644 --- a/packages/core/src/components/Modal/layouts/ModalMediaLayout/__stories__/ModalMediaLayout.stories.tsx +++ b/packages/core/src/components/Modal/layouts/ModalMediaLayout/__stories__/ModalMediaLayout.stories.tsx @@ -43,7 +43,7 @@ export default { layout: "fullscreen", docs: { liveEdit: { - scope: { TransitionView, mediaImage } + scope: { mediaImage } } } } diff --git a/packages/core/src/components/Modal/layouts/ModalSideBySideLayout/__stories__/ModalSideBySideLayout.stories.tsx b/packages/core/src/components/Modal/layouts/ModalSideBySideLayout/__stories__/ModalSideBySideLayout.stories.tsx index 2648e2a6c3..7b86542aa0 100644 --- a/packages/core/src/components/Modal/layouts/ModalSideBySideLayout/__stories__/ModalSideBySideLayout.stories.tsx +++ b/packages/core/src/components/Modal/layouts/ModalSideBySideLayout/__stories__/ModalSideBySideLayout.stories.tsx @@ -46,7 +46,7 @@ export default { layout: "fullscreen", docs: { liveEdit: { - scope: { TransitionView, FieldLabel, mediaImage } + scope: { FieldLabel, mediaImage } } } } diff --git a/packages/core/src/components/TransitionView/TransitionView.types.ts b/packages/core/src/components/TransitionView/TransitionView.types.ts index 6dba5251e4..7b7a4ac1ef 100644 --- a/packages/core/src/components/TransitionView/TransitionView.types.ts +++ b/packages/core/src/components/TransitionView/TransitionView.types.ts @@ -4,8 +4,8 @@ import { SlideDirection } from "../SlideTransition/SlideTransition.types"; export interface TransitionViewProps extends VibeComponentProps { activeStep: number; - direction: TransitionDirection; + direction: TransitionViewDirection; children: React.ReactNode[]; } -export type TransitionDirection = SlideDirection; +export type TransitionViewDirection = SlideDirection; diff --git a/packages/core/src/components/TransitionView/index.ts b/packages/core/src/components/TransitionView/index.ts new file mode 100644 index 0000000000..70484d8c52 --- /dev/null +++ b/packages/core/src/components/TransitionView/index.ts @@ -0,0 +1,2 @@ +export { default as TransitionView } from "./TransitionView"; +export * from "./TransitionView.types"; diff --git a/packages/core/src/components/index.ts b/packages/core/src/components/index.ts index 402992274d..acb13fa2b8 100644 --- a/packages/core/src/components/index.ts +++ b/packages/core/src/components/index.ts @@ -60,6 +60,7 @@ export * from "./Tipseen"; export * from "./Toast"; export * from "./Toggle"; export * from "./Tooltip"; +export * from "./TransitionView"; export * from "./VirtualizedGrid"; export * from "./VirtualizedList";