Skip to content

Commit

Permalink
feat(TransitionView): export component to be used publicly
Browse files Browse the repository at this point in the history
  • Loading branch information
YossiSaadi committed Jan 1, 2025
1 parent ebb8807 commit ca0143f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ exports[`exports should export all components 1`] = `
"ToastLink",
"Toggle",
"Tooltip",
"TransitionView",
"VirtualizedGrid",
"VirtualizedList",
"useGridKeyboardNavigationContext",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ export default {
argTypes: metaSettings.argTypes,
decorators: metaSettings.decorators,
parameters: {
layout: "fullscreen",
docs: {
liveEdit: {
scope: { TransitionView }
}
}
layout: "fullscreen"
}
} satisfies Meta<typeof Modal>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default {
layout: "fullscreen",
docs: {
liveEdit: {
scope: { TransitionView, mediaImage }
scope: { mediaImage }
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default {
layout: "fullscreen",
docs: {
liveEdit: {
scope: { TransitionView, FieldLabel, mediaImage }
scope: { FieldLabel, mediaImage }
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 2 additions & 0 deletions packages/core/src/components/TransitionView/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default as TransitionView } from "./TransitionView";
export * from "./TransitionView.types";
1 change: 1 addition & 0 deletions packages/core/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit ca0143f

Please sign in to comment.