-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(Modal): add jsdoc for all the props related to Modal
- Loading branch information
1 parent
26a5c8e
commit 61d13be
Showing
17 changed files
with
156 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
packages/core/src/components/ModalNew/ModalTopActions/ModalTopActions.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
packages/core/src/components/ModalNew/footers/ModalFooterWizard/ModalFooterWizard.types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ModalFooterBaseProps } from "../ModalFooterBase/ModalFooterBase.types"; | ||
import { VibeComponentProps } from "../../../../types"; | ||
|
||
export interface ModalFooterWizardProps | ||
extends Required<Pick<ModalFooterBaseProps, "primaryButton" | "secondaryButton">>, | ||
VibeComponentProps { | ||
/** | ||
* Total number of steps in the wizard. | ||
* This would render the appropriate number of step indicators ("dots") in the footer. | ||
*/ | ||
stepCount: number; | ||
/** | ||
* Current active step (0-based index). | ||
* This would highlight the corresponding step indicator ("dot") in the footer. | ||
*/ | ||
activeStep: number; | ||
/** | ||
* Callback fired when a step indicator ("dot") is clicked. | ||
*/ | ||
onStepClick: (stepIndex: number) => void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
packages/core/src/components/ModalNew/layouts/ModalFooterShadow.types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
export interface ModalFooterShadowProps { | ||
/** | ||
* Controls the visibility of the shadow. | ||
*/ | ||
show: boolean; | ||
} |
9 changes: 9 additions & 0 deletions
9
packages/core/src/components/ModalNew/layouts/ModalLayoutScrollableContent.types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
import { ReactNode, UIEventHandler } from "react"; | ||
|
||
export interface ModalLayoutScrollableContentProps { | ||
/** | ||
* Callback fired when the content is scrolled. | ||
*/ | ||
onScroll?: UIEventHandler<HTMLDivElement>; | ||
/** | ||
* Additional class name. | ||
*/ | ||
className?: string; | ||
/** | ||
* Scrollable content. | ||
*/ | ||
children: ReactNode; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters