@intelligencebank/connectingib 4.0.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +124 -2
- package/dist/components/AssetBrowser/AssetBrowser.d.ts.map +1 -1
- package/dist/components/AssetBrowser/AssetBrowser.types.d.ts +5 -1
- package/dist/components/AssetBrowser/AssetBrowser.types.d.ts.map +1 -1
- package/dist/components/AssetCard/AssetCard.d.ts +6 -2
- package/dist/components/AssetCard/AssetCard.d.ts.map +1 -1
- package/dist/components/Box/Box.d.ts +35 -0
- package/dist/components/Box/Box.d.ts.map +1 -0
- package/dist/components/Box/Box.types.d.ts +79 -0
- package/dist/components/Box/Box.types.d.ts.map +1 -0
- package/dist/components/Box/index.d.ts +3 -0
- package/dist/components/Box/index.d.ts.map +1 -0
- package/dist/components/BrowserLoginConfirmation/BrowserLoginConfirmation.d.ts.map +1 -1
- package/dist/components/BrowserLoginConfirmation/BrowserLoginConfirmation.types.d.ts +13 -1
- package/dist/components/BrowserLoginConfirmation/BrowserLoginConfirmation.types.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.types.d.ts +10 -2
- package/dist/components/Button/Button.types.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/Card.types.d.ts +25 -1
- package/dist/components/Card/Card.types.d.ts.map +1 -1
- package/dist/components/CategoryFilters/CategoryFilters.d.ts +23 -0
- package/dist/components/CategoryFilters/CategoryFilters.d.ts.map +1 -0
- package/dist/components/CategoryFilters/CategoryFilters.types.d.ts +61 -0
- package/dist/components/CategoryFilters/CategoryFilters.types.d.ts.map +1 -0
- package/dist/components/CategoryFilters/index.d.ts +22 -0
- package/dist/components/CategoryFilters/index.d.ts.map +1 -0
- package/dist/components/Center/Center.d.ts +25 -0
- package/dist/components/Center/Center.d.ts.map +1 -0
- package/dist/components/Center/Center.types.d.ts +53 -0
- package/dist/components/Center/Center.types.d.ts.map +1 -0
- package/dist/components/Center/index.d.ts +3 -0
- package/dist/components/Center/index.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +4 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +168 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -0
- package/dist/components/Checkbox/CheckboxGroup.d.ts +7 -0
- package/dist/components/Checkbox/CheckboxGroup.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +4 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/Chip/Chip.d.ts.map +1 -1
- package/dist/components/Chip/Chip.types.d.ts +7 -1
- package/dist/components/Chip/Chip.types.d.ts.map +1 -1
- package/dist/components/ConnectedAppCard/ConnectedAppCard.d.ts +5 -0
- package/dist/components/ConnectedAppCard/ConnectedAppCard.d.ts.map +1 -0
- package/dist/components/ConnectedAppCard/ConnectedAppCard.types.d.ts +136 -0
- package/dist/components/ConnectedAppCard/ConnectedAppCard.types.d.ts.map +1 -0
- package/dist/components/ConnectedAppCard/index.d.ts +3 -0
- package/dist/components/ConnectedAppCard/index.d.ts.map +1 -0
- package/dist/components/CreateReview/CreateReview.d.ts +44 -0
- package/dist/components/CreateReview/CreateReview.d.ts.map +1 -0
- package/dist/components/CreateReview/CreateReview.types.d.ts +180 -0
- package/dist/components/CreateReview/CreateReview.types.d.ts.map +1 -0
- package/dist/components/CreateReview/index.d.ts +3 -0
- package/dist/components/CreateReview/index.d.ts.map +1 -0
- package/dist/components/Divider/Divider.d.ts +7 -0
- package/dist/components/Divider/Divider.d.ts.map +1 -0
- package/dist/components/Divider/Divider.types.d.ts +37 -0
- package/dist/components/Divider/Divider.types.d.ts.map +1 -0
- package/dist/components/Divider/index.d.ts +3 -0
- package/dist/components/Divider/index.d.ts.map +1 -0
- package/dist/components/DropZone/DropZone.d.ts.map +1 -1
- package/dist/components/DropZone/DropZone.types.d.ts +7 -1
- package/dist/components/DropZone/DropZone.types.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.types.d.ts +10 -8
- package/dist/components/DropdownMenu/DropdownMenu.types.d.ts.map +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +7 -0
- package/dist/components/EmptyState/EmptyState.d.ts.map +1 -0
- package/dist/components/EmptyState/EmptyState.types.d.ts +40 -0
- package/dist/components/EmptyState/EmptyState.types.d.ts.map +1 -0
- package/dist/components/EmptyState/index.d.ts +3 -0
- package/dist/components/EmptyState/index.d.ts.map +1 -0
- package/dist/components/FieldLabel/FieldLabel.d.ts +1 -1
- package/dist/components/FieldLabel/FieldLabel.d.ts.map +1 -1
- package/dist/components/FieldLabel/FieldLabel.types.d.ts +9 -1
- package/dist/components/FieldLabel/FieldLabel.types.d.ts.map +1 -1
- package/dist/components/FiltersPanel/FiltersPanel.d.ts.map +1 -1
- package/dist/components/FiltersPanel/FiltersPanel.types.d.ts +9 -1
- package/dist/components/FiltersPanel/FiltersPanel.types.d.ts.map +1 -1
- package/dist/components/FolderCard/FolderCard.d.ts +6 -2
- package/dist/components/FolderCard/FolderCard.d.ts.map +1 -1
- package/dist/components/FolderTree/FolderTree.d.ts.map +1 -1
- package/dist/components/FolderTree/FolderTree.types.d.ts +5 -1
- package/dist/components/FolderTree/FolderTree.types.d.ts.map +1 -1
- package/dist/components/FormControl/FormControl.d.ts.map +1 -1
- package/dist/components/FormControl/FormControl.types.d.ts +9 -1
- package/dist/components/FormControl/FormControl.types.d.ts.map +1 -1
- package/dist/components/Grid/Grid.d.ts.map +1 -1
- package/dist/components/Grid/Grid.types.d.ts +10 -2
- package/dist/components/Grid/Grid.types.d.ts.map +1 -1
- package/dist/components/HStack/HStack.d.ts +24 -0
- package/dist/components/HStack/HStack.d.ts.map +1 -0
- package/dist/components/HStack/HStack.types.d.ts +19 -0
- package/dist/components/HStack/HStack.types.d.ts.map +1 -0
- package/dist/components/HStack/index.d.ts +3 -0
- package/dist/components/HStack/index.d.ts.map +1 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/Icon.types.d.ts +9 -1
- package/dist/components/Icon/Icon.types.d.ts.map +1 -1
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/Input.types.d.ts +19 -16
- package/dist/components/Input/Input.types.d.ts.map +1 -1
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/LatestReview/FieldSelectionDialog.d.ts +22 -0
- package/dist/components/LatestReview/FieldSelectionDialog.d.ts.map +1 -0
- package/dist/components/LatestReview/LatestReview.d.ts +37 -0
- package/dist/components/LatestReview/LatestReview.d.ts.map +1 -0
- package/dist/components/LatestReview/LatestReview.types.d.ts +169 -0
- package/dist/components/LatestReview/LatestReview.types.d.ts.map +1 -0
- package/dist/components/LatestReview/index.d.ts +4 -0
- package/dist/components/LatestReview/index.d.ts.map +1 -0
- package/dist/components/LinearLoading/LinearLoading.d.ts.map +1 -1
- package/dist/components/LinearLoading/LinearLoading.types.d.ts +5 -1
- package/dist/components/LinearLoading/LinearLoading.types.d.ts.map +1 -1
- package/dist/components/LoadingPlaceholder/LoadingPlaceholder.d.ts +25 -0
- package/dist/components/LoadingPlaceholder/LoadingPlaceholder.d.ts.map +1 -0
- package/dist/components/LoadingPlaceholder/LoadingPlaceholder.types.d.ts +69 -0
- package/dist/components/LoadingPlaceholder/LoadingPlaceholder.types.d.ts.map +1 -0
- package/dist/components/LoadingPlaceholder/index.d.ts +3 -0
- package/dist/components/LoadingPlaceholder/index.d.ts.map +1 -0
- package/dist/components/LoginForm/LoginForm.d.ts.map +1 -1
- package/dist/components/LoginForm/LoginForm.types.d.ts +9 -1
- package/dist/components/LoginForm/LoginForm.types.d.ts.map +1 -1
- package/dist/components/Message/Message.d.ts +18 -13
- package/dist/components/Message/Message.d.ts.map +1 -1
- package/dist/components/Message/Message.types.d.ts +119 -4
- package/dist/components/Message/Message.types.d.ts.map +1 -1
- package/dist/components/Message/SnackbarProvider.d.ts +55 -0
- package/dist/components/Message/SnackbarProvider.d.ts.map +1 -0
- package/dist/components/Message/SnackbarProvider.types.d.ts +101 -0
- package/dist/components/Message/SnackbarProvider.types.d.ts.map +1 -0
- package/dist/components/Message/SnackbarStack.d.ts +33 -0
- package/dist/components/Message/SnackbarStack.d.ts.map +1 -0
- package/dist/components/Message/SnackbarStack.types.d.ts +81 -0
- package/dist/components/Message/SnackbarStack.types.d.ts.map +1 -0
- package/dist/components/Message/index.d.ts +15 -2
- package/dist/components/Message/index.d.ts.map +1 -1
- package/dist/components/MetadataDetails/MetadataDetails.d.ts.map +1 -1
- package/dist/components/MetadataDetails/MetadataDetails.types.d.ts +8 -0
- package/dist/components/MetadataDetails/MetadataDetails.types.d.ts.map +1 -1
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.types.d.ts +16 -2
- package/dist/components/Modal/Modal.types.d.ts.map +1 -1
- package/dist/components/Multiselect/Multiselect.d.ts.map +1 -1
- package/dist/components/Multiselect/Multiselect.types.d.ts +11 -3
- package/dist/components/Multiselect/Multiselect.types.d.ts.map +1 -1
- package/dist/components/NavBar/NavBar.d.ts +1 -1
- package/dist/components/NavBar/NavBar.d.ts.map +1 -1
- package/dist/components/NavBar/NavBar.types.d.ts +13 -2
- package/dist/components/NavBar/NavBar.types.d.ts.map +1 -1
- package/dist/components/Paginator/Paginator.d.ts +1 -1
- package/dist/components/Paginator/Paginator.d.ts.map +1 -1
- package/dist/components/Paginator/Paginator.types.d.ts +5 -16
- package/dist/components/Paginator/Paginator.types.d.ts.map +1 -1
- package/dist/components/PresetSelector/PresetSelector.d.ts +1 -1
- package/dist/components/PresetSelector/PresetSelector.d.ts.map +1 -1
- package/dist/components/PresetSelector/PresetSelector.types.d.ts +9 -1
- package/dist/components/PresetSelector/PresetSelector.types.d.ts.map +1 -1
- package/dist/components/Radio/Radio.d.ts.map +1 -1
- package/dist/components/Radio/RadioGroup.d.ts.map +1 -1
- package/dist/components/ReviewDetails/ReviewDetails.d.ts +34 -0
- package/dist/components/ReviewDetails/ReviewDetails.d.ts.map +1 -0
- package/dist/components/ReviewDetails/ReviewDetails.types.d.ts +77 -0
- package/dist/components/ReviewDetails/ReviewDetails.types.d.ts.map +1 -0
- package/dist/components/ReviewDetails/index.d.ts +9 -0
- package/dist/components/ReviewDetails/index.d.ts.map +1 -0
- package/dist/components/ReviewFiles/ReviewFiles.d.ts +16 -0
- package/dist/components/ReviewFiles/ReviewFiles.d.ts.map +1 -0
- package/dist/components/ReviewFiles/ReviewFiles.types.d.ts +91 -0
- package/dist/components/ReviewFiles/ReviewFiles.types.d.ts.map +1 -0
- package/dist/components/ReviewFiles/index.d.ts +33 -0
- package/dist/components/ReviewFiles/index.d.ts.map +1 -0
- package/dist/components/ReviewProcessing/ReviewProcessing.d.ts +37 -0
- package/dist/components/ReviewProcessing/ReviewProcessing.d.ts.map +1 -0
- package/dist/components/ReviewProcessing/ReviewProcessing.types.d.ts +52 -0
- package/dist/components/ReviewProcessing/ReviewProcessing.types.d.ts.map +1 -0
- package/dist/components/ReviewProcessing/index.d.ts +3 -0
- package/dist/components/ReviewProcessing/index.d.ts.map +1 -0
- package/dist/components/ReviewResults/ReviewResults.d.ts +33 -0
- package/dist/components/ReviewResults/ReviewResults.d.ts.map +1 -0
- package/dist/components/ReviewResults/ReviewResults.types.d.ts +56 -0
- package/dist/components/ReviewResults/ReviewResults.types.d.ts.map +1 -0
- package/dist/components/ReviewResults/index.d.ts +9 -0
- package/dist/components/ReviewResults/index.d.ts.map +1 -0
- package/dist/components/RiskCard/RiskCard.d.ts +38 -0
- package/dist/components/RiskCard/RiskCard.d.ts.map +1 -0
- package/dist/components/RiskCard/RiskCard.types.d.ts +98 -0
- package/dist/components/RiskCard/RiskCard.types.d.ts.map +1 -0
- package/dist/components/RiskCard/index.d.ts +3 -0
- package/dist/components/RiskCard/index.d.ts.map +1 -0
- package/dist/components/RiskItemCard/RiskItemCard.d.ts +42 -0
- package/dist/components/RiskItemCard/RiskItemCard.d.ts.map +1 -0
- package/dist/components/RiskItemCard/RiskItemCard.types.d.ts +111 -0
- package/dist/components/RiskItemCard/RiskItemCard.types.d.ts.map +1 -0
- package/dist/components/RiskItemCard/index.d.ts +3 -0
- package/dist/components/RiskItemCard/index.d.ts.map +1 -0
- package/dist/components/SearchForm/SearchForm.d.ts.map +1 -1
- package/dist/components/SearchForm/SearchForm.types.d.ts +5 -1
- package/dist/components/SearchForm/SearchForm.types.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +0 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.types.d.ts +13 -18
- package/dist/components/Select/Select.types.d.ts.map +1 -1
- package/dist/components/SelectableItem/SelectableItem.d.ts +23 -0
- package/dist/components/SelectableItem/SelectableItem.d.ts.map +1 -0
- package/dist/components/SelectableItem/SelectableItem.types.d.ts +53 -0
- package/dist/components/SelectableItem/SelectableItem.types.d.ts.map +1 -0
- package/dist/components/SelectableItem/index.d.ts +3 -0
- package/dist/components/SelectableItem/index.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.d.ts +2 -2
- package/dist/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.types.d.ts +17 -8
- package/dist/components/Spinner/Spinner.types.d.ts.map +1 -1
- package/dist/components/Stack/Stack.d.ts +39 -0
- package/dist/components/Stack/Stack.d.ts.map +1 -0
- package/dist/components/Stack/Stack.types.d.ts +45 -0
- package/dist/components/Stack/Stack.types.d.ts.map +1 -0
- package/dist/components/Stack/index.d.ts +3 -0
- package/dist/components/Stack/index.d.ts.map +1 -0
- package/dist/components/Status/Status.d.ts.map +1 -1
- package/dist/components/Status/Status.types.d.ts +5 -1
- package/dist/components/Status/Status.types.d.ts.map +1 -1
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.types.d.ts +15 -1
- package/dist/components/Switch/Switch.types.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.types.d.ts +2 -2
- package/dist/components/Tabs/Tabs.types.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.types.d.ts +31 -1
- package/dist/components/TextArea/TextArea.types.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.types.d.ts +16 -2
- package/dist/components/Tooltip/Tooltip.types.d.ts.map +1 -1
- package/dist/components/Typography/Typography.d.ts +45 -0
- package/dist/components/Typography/Typography.d.ts.map +1 -0
- package/dist/components/Typography/Typography.types.d.ts +140 -0
- package/dist/components/Typography/Typography.types.d.ts.map +1 -0
- package/dist/components/Typography/index.d.ts +4 -0
- package/dist/components/Typography/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +39 -12
- package/dist/components/index.d.ts.map +1 -1
- package/dist/connectingib.css +1 -1
- package/dist/index.js +2400 -1311
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13851 -10961
- package/dist/index.mjs.map +1 -1
- package/dist/theme/colors.d.ts +29 -29
- package/dist/theme/colors.d.ts.map +1 -1
- package/dist/theme/typography.d.ts +8 -5
- package/dist/theme/typography.d.ts.map +1 -1
- package/dist/tokens/index.d.ts +1 -157
- package/dist/tokens/index.d.ts.map +1 -1
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/index.mjs +23 -96
- package/dist/tokens/index.mjs.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/riskReview.d.ts +258 -0
- package/dist/types/riskReview.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/components/Accordion/Accordion.d.ts +0 -32
- package/dist/components/Accordion/Accordion.d.ts.map +0 -1
- package/dist/components/Accordion/Accordion.types.d.ts +0 -102
- package/dist/components/Accordion/Accordion.types.d.ts.map +0 -1
- package/dist/components/Accordion/index.d.ts +0 -3
- package/dist/components/Accordion/index.d.ts.map +0 -1
- package/dist/components/AssistiveMessage/AssistiveMessage.d.ts +0 -19
- package/dist/components/AssistiveMessage/AssistiveMessage.d.ts.map +0 -1
- package/dist/components/AssistiveMessage/AssistiveMessage.types.d.ts +0 -19
- package/dist/components/AssistiveMessage/AssistiveMessage.types.d.ts.map +0 -1
- package/dist/components/AssistiveMessage/index.d.ts +0 -7
- package/dist/components/AssistiveMessage/index.d.ts.map +0 -1
- package/dist/components/ErrorMessage/ErrorMessage.d.ts +0 -19
- package/dist/components/ErrorMessage/ErrorMessage.d.ts.map +0 -1
- package/dist/components/ErrorMessage/ErrorMessage.types.d.ts +0 -28
- package/dist/components/ErrorMessage/ErrorMessage.types.d.ts.map +0 -1
- package/dist/components/ErrorMessage/index.d.ts +0 -7
- package/dist/components/ErrorMessage/index.d.ts.map +0 -1
- package/dist/components/Snackbar/Snackbar.d.ts +0 -7
- package/dist/components/Snackbar/Snackbar.d.ts.map +0 -1
- package/dist/components/Snackbar/Snackbar.types.d.ts +0 -75
- package/dist/components/Snackbar/Snackbar.types.d.ts.map +0 -1
- package/dist/components/Snackbar/SnackbarProvider.d.ts +0 -7
- package/dist/components/Snackbar/SnackbarProvider.d.ts.map +0 -1
- package/dist/components/Snackbar/index.d.ts +0 -4
- package/dist/components/Snackbar/index.d.ts.map +0 -1
- package/dist/components/WarningMessage/WarningMessage.d.ts +0 -19
- package/dist/components/WarningMessage/WarningMessage.d.ts.map +0 -1
- package/dist/components/WarningMessage/WarningMessage.types.d.ts +0 -28
- package/dist/components/WarningMessage/WarningMessage.types.d.ts.map +0 -1
- package/dist/components/WarningMessage/index.d.ts +0 -7
- package/dist/components/WarningMessage/index.d.ts.map +0 -1
|
@@ -83,8 +83,16 @@ export interface LoginFormProps {
|
|
|
83
83
|
*/
|
|
84
84
|
className?: string;
|
|
85
85
|
/**
|
|
86
|
-
* Test ID for testing
|
|
86
|
+
* Test ID for testing (deprecated, use dataTestId)
|
|
87
87
|
*/
|
|
88
88
|
'data-testid'?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Test identifier for automated testing
|
|
91
|
+
*/
|
|
92
|
+
dataTestId?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Data identifier for ib-ui compatibility
|
|
95
|
+
*/
|
|
96
|
+
dataId?: string;
|
|
89
97
|
}
|
|
90
98
|
//# sourceMappingURL=LoginForm.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginForm.types.d.ts","sourceRoot":"","sources":["../../../src/components/LoginForm/LoginForm.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,KAAK,GAAG,MAAM,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,8DAA8D;IAC9D,GAAG,EAAE,MAAM,CAAC;IACZ,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,QAAQ,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAElD;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAEnC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"LoginForm.types.d.ts","sourceRoot":"","sources":["../../../src/components/LoginForm/LoginForm.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,KAAK,GAAG,MAAM,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,8DAA8D;IAC9D,GAAG,EAAE,MAAM,CAAC;IACZ,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,QAAQ,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAElD;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAEnC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,31 +1,36 @@
|
|
|
1
|
-
import { MessageProps } from './Message.types';
|
|
1
|
+
import { MessageProps, InternalSnackbarProps } from './Message.types';
|
|
2
2
|
/**
|
|
3
3
|
* Message - Unified message component for displaying various types of feedback
|
|
4
4
|
*
|
|
5
|
-
* Supports multiple variants: info,
|
|
5
|
+
* Supports multiple variants: info, error, warning, and success.
|
|
6
|
+
* Supports multiple display modes: inline, banner, and snackbar.
|
|
6
7
|
* Each variant has its own default icon, color, and accessibility role.
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
9
10
|
* ```tsx
|
|
10
|
-
* //
|
|
11
|
+
* // Inline error message (default)
|
|
11
12
|
* <Message variant="error">This field is required</Message>
|
|
12
13
|
*
|
|
13
|
-
* //
|
|
14
|
-
* <Message variant="warning"
|
|
14
|
+
* // Banner message with background
|
|
15
|
+
* <Message variant="warning" mode="banner">This action cannot be undone</Message>
|
|
15
16
|
*
|
|
16
|
-
* //
|
|
17
|
-
* <Message
|
|
17
|
+
* // Snackbar message with timeout
|
|
18
|
+
* <Message
|
|
19
|
+
* variant="success"
|
|
20
|
+
* mode="snackbar"
|
|
21
|
+
* onClose={() => setOpen(false)}
|
|
22
|
+
* action={{ label: 'Undo', onClick: handleUndo }}
|
|
23
|
+
* >
|
|
24
|
+
* Your changes have been saved
|
|
25
|
+
* </Message>
|
|
18
26
|
*
|
|
19
|
-
* //
|
|
20
|
-
* <Message variant="
|
|
21
|
-
*
|
|
22
|
-
* // Info message with custom icon
|
|
23
|
-
* <Message variant="info" icon={<CustomIcon />}>Additional information</Message>
|
|
27
|
+
* // Message with default (black) text color
|
|
28
|
+
* <Message variant="info" textColor="default">Information</Message>
|
|
24
29
|
*
|
|
25
30
|
* // Message without icon
|
|
26
31
|
* <Message variant="error" showIcon={false}>Error text only</Message>
|
|
27
32
|
* ```
|
|
28
33
|
*/
|
|
29
|
-
export declare
|
|
34
|
+
export declare const Message: import('react').ForwardRefExoticComponent<(MessageProps | InternalSnackbarProps) & import('react').RefAttributes<HTMLDivElement>>;
|
|
30
35
|
export default Message;
|
|
31
36
|
//# sourceMappingURL=Message.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/components/Message/Message.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/components/Message/Message.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,YAAY,EAKZ,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AA2UzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,OAAO,mIAkOnB,CAAC;AAIF,eAAe,OAAO,CAAC"}
|
|
@@ -2,16 +2,47 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* Message variant types
|
|
4
4
|
* - info: General informational message (blue)
|
|
5
|
-
* - assistive: Helper/guidance message (grey)
|
|
6
5
|
* - error: Error/validation message (red)
|
|
7
6
|
* - warning: Cautionary message (orange)
|
|
8
7
|
* - success: Success/confirmation message (green)
|
|
8
|
+
* - assistive: Helper/assistive text (grey)
|
|
9
9
|
*/
|
|
10
|
-
export type MessageVariant = 'info' | '
|
|
10
|
+
export type MessageVariant = 'info' | 'error' | 'warning' | 'success' | 'assistive';
|
|
11
|
+
/**
|
|
12
|
+
* Display mode for the message
|
|
13
|
+
* - inline: Default inline message (current behavior)
|
|
14
|
+
* - banner: Full-width banner with background color
|
|
15
|
+
* - snackbar: Toast notification with timeout and optional action
|
|
16
|
+
*/
|
|
17
|
+
export type MessageDisplayMode = 'inline' | 'banner' | 'snackbar';
|
|
11
18
|
/**
|
|
12
19
|
* Size variants for the Message component
|
|
20
|
+
* - tn: Tiny (10px with default theme)
|
|
21
|
+
* - xs: Extra small (12px with default theme)
|
|
22
|
+
* - sm: Small (14px with default theme)
|
|
23
|
+
* - md: Medium (14.5px with default theme)
|
|
24
|
+
*/
|
|
25
|
+
export type MessageSize = 'tn' | 'xs' | 'sm' | 'md';
|
|
26
|
+
/**
|
|
27
|
+
* Text color options
|
|
28
|
+
* - default: Generic black text (theme text.primary)
|
|
29
|
+
* - context: Color tied to the variant (blue for info, red for error, etc.)
|
|
30
|
+
* - custom: Use the custom color provided via customTextColor prop
|
|
31
|
+
*/
|
|
32
|
+
export type MessageTextColor = 'default' | 'context' | 'custom';
|
|
33
|
+
/**
|
|
34
|
+
* Position for snackbar messages
|
|
13
35
|
*/
|
|
14
|
-
export type
|
|
36
|
+
export type SnackbarPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
37
|
+
/**
|
|
38
|
+
* Action button configuration for snackbar mode
|
|
39
|
+
*/
|
|
40
|
+
export interface MessageAction {
|
|
41
|
+
/** Label for the action button */
|
|
42
|
+
label: string;
|
|
43
|
+
/** Callback when action is clicked */
|
|
44
|
+
onClick: () => void;
|
|
45
|
+
}
|
|
15
46
|
/**
|
|
16
47
|
* Props for the Message component
|
|
17
48
|
*/
|
|
@@ -24,11 +55,28 @@ export interface MessageProps {
|
|
|
24
55
|
* The message content to display
|
|
25
56
|
*/
|
|
26
57
|
children: ReactNode;
|
|
58
|
+
/**
|
|
59
|
+
* Display mode for the message
|
|
60
|
+
* @default 'inline'
|
|
61
|
+
*/
|
|
62
|
+
mode?: MessageDisplayMode;
|
|
27
63
|
/**
|
|
28
64
|
* Text size variant
|
|
29
65
|
* @default 'sm'
|
|
30
66
|
*/
|
|
31
67
|
size?: MessageSize;
|
|
68
|
+
/**
|
|
69
|
+
* Text color option
|
|
70
|
+
* - 'default': Generic black text (theme text.primary)
|
|
71
|
+
* - 'context': Color tied to the variant
|
|
72
|
+
* - 'custom': Use customTextColor prop value
|
|
73
|
+
* @default 'context'
|
|
74
|
+
*/
|
|
75
|
+
textColor?: MessageTextColor;
|
|
76
|
+
/**
|
|
77
|
+
* Custom text color (only used when textColor='custom')
|
|
78
|
+
*/
|
|
79
|
+
customTextColor?: string;
|
|
32
80
|
/**
|
|
33
81
|
* Optional custom icon to override the default variant icon
|
|
34
82
|
*/
|
|
@@ -38,13 +86,80 @@ export interface MessageProps {
|
|
|
38
86
|
* @default true
|
|
39
87
|
*/
|
|
40
88
|
showIcon?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Whether the snackbar is open (only for mode='snackbar')
|
|
91
|
+
* @default true
|
|
92
|
+
*/
|
|
93
|
+
open?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Auto-hide duration in milliseconds (only for mode='snackbar')
|
|
96
|
+
* Set to null to disable auto-hide
|
|
97
|
+
* @default 5000
|
|
98
|
+
*/
|
|
99
|
+
autoHideDuration?: number | null;
|
|
100
|
+
/**
|
|
101
|
+
* Callback when snackbar is closed (only for mode='snackbar')
|
|
102
|
+
*/
|
|
103
|
+
onClose?: () => void;
|
|
104
|
+
/**
|
|
105
|
+
* Optional action button (only for mode='snackbar')
|
|
106
|
+
*/
|
|
107
|
+
action?: MessageAction;
|
|
108
|
+
/**
|
|
109
|
+
* Whether to show close button (only for mode='snackbar')
|
|
110
|
+
* @default true
|
|
111
|
+
*/
|
|
112
|
+
showCloseButton?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Position for snackbar (only for mode='snackbar')
|
|
115
|
+
* Note: Position is typically controlled by a provider, but can be overridden
|
|
116
|
+
* @default 'bottom-right'
|
|
117
|
+
*/
|
|
118
|
+
position?: SnackbarPosition;
|
|
119
|
+
/**
|
|
120
|
+
* Maximum width of the message container.
|
|
121
|
+
* Accepts any valid CSS width value (e.g., '400px', '50%', '20rem').
|
|
122
|
+
* Only applies to banner and snackbar modes.
|
|
123
|
+
*/
|
|
124
|
+
maxWidth?: string | number;
|
|
125
|
+
/**
|
|
126
|
+
* Number of lines to show before truncating.
|
|
127
|
+
* When set, long text will be truncated and a "Show More" toggle will appear.
|
|
128
|
+
* Set to undefined or 0 to disable truncation.
|
|
129
|
+
*/
|
|
130
|
+
truncateLines?: number;
|
|
131
|
+
/**
|
|
132
|
+
* Custom text for the "Show More" button
|
|
133
|
+
* @default 'Show More'
|
|
134
|
+
*/
|
|
135
|
+
showMoreText?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Custom text for the "Show Less" button
|
|
138
|
+
* @default 'Show Less'
|
|
139
|
+
*/
|
|
140
|
+
showLessText?: string;
|
|
41
141
|
/**
|
|
42
142
|
* Additional CSS classes
|
|
43
143
|
*/
|
|
44
144
|
className?: string;
|
|
45
145
|
/**
|
|
46
|
-
* Test ID for testing
|
|
146
|
+
* Test ID for testing (deprecated, use dataTestId)
|
|
47
147
|
*/
|
|
48
148
|
'data-testid'?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Test identifier for automated testing
|
|
151
|
+
*/
|
|
152
|
+
dataTestId?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Data identifier for ib-ui compatibility
|
|
155
|
+
*/
|
|
156
|
+
dataId?: string;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Internal props for snackbar animation state
|
|
160
|
+
*/
|
|
161
|
+
export interface InternalSnackbarProps extends MessageProps {
|
|
162
|
+
/** Whether snackbar is in exiting animation state */
|
|
163
|
+
isExiting?: boolean;
|
|
49
164
|
}
|
|
50
165
|
//# sourceMappingURL=Message.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Message.types.d.ts","sourceRoot":"","sources":["../../../src/components/Message/Message.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;;GAOG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"Message.types.d.ts","sourceRoot":"","sources":["../../../src/components/Message/Message.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;;GAOG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAEpF;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAElE;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,YAAY,GACZ,WAAW,GACX,aAAa,GACb,eAAe,GACf,cAAc,CAAC;AAEnB;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC;IAExB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;OAGG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAE1B;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAE7B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAMnB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;IAEvB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAM5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAMtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,YAAY;IACzD,qDAAqD;IACrD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { SnackbarContextValue, SnackbarProviderProps } from './SnackbarProvider.types';
|
|
3
|
+
/**
|
|
4
|
+
* Hook to access snackbar functionality
|
|
5
|
+
* Must be used within a SnackbarProvider
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* const { showSnackbar, success, error } = useSnackbar();
|
|
10
|
+
*
|
|
11
|
+
* // Show a custom snackbar
|
|
12
|
+
* showSnackbar({ message: 'Hello!', variant: 'info' });
|
|
13
|
+
*
|
|
14
|
+
* // Convenience methods
|
|
15
|
+
* success('Operation completed!');
|
|
16
|
+
* error('Something went wrong');
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare const useSnackbar: () => SnackbarContextValue;
|
|
20
|
+
/**
|
|
21
|
+
* SnackbarProvider - Provides snackbar functionality to the entire application
|
|
22
|
+
*
|
|
23
|
+
* Wrap your app with this provider to enable snackbar notifications anywhere
|
|
24
|
+
* using the useSnackbar hook.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```tsx
|
|
28
|
+
* // In your app root
|
|
29
|
+
* <SnackbarProvider position="bottom-center">
|
|
30
|
+
* <App />
|
|
31
|
+
* </SnackbarProvider>
|
|
32
|
+
*
|
|
33
|
+
* // In any component
|
|
34
|
+
* const MyComponent = () => {
|
|
35
|
+
* const { success, error } = useSnackbar();
|
|
36
|
+
*
|
|
37
|
+
* const handleSave = async () => {
|
|
38
|
+
* try {
|
|
39
|
+
* await saveData();
|
|
40
|
+
* success('Saved successfully!');
|
|
41
|
+
* } catch (e) {
|
|
42
|
+
* error('Failed to save');
|
|
43
|
+
* }
|
|
44
|
+
* };
|
|
45
|
+
*
|
|
46
|
+
* return <button onClick={handleSave}>Save</button>;
|
|
47
|
+
* };
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare const SnackbarProvider: {
|
|
51
|
+
({ children, position, maxSnackbars, maxWidth, dataTestId, }: SnackbarProviderProps): ReactElement;
|
|
52
|
+
displayName: string;
|
|
53
|
+
};
|
|
54
|
+
export default SnackbarProvider;
|
|
55
|
+
//# sourceMappingURL=SnackbarProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SnackbarProvider.d.ts","sourceRoot":"","sources":["../../../src/components/Message/SnackbarProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,OAAO,CAAC;AAIrD,OAAO,KAAK,EAEV,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,0BAA0B,CAAC;AAoBlC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,QAAO,oBAM9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,gBAAgB;kEAM1B,qBAAqB,GAAG,YAAY;;CA2ItC,CAAC;AAIF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { MessageVariant, SnackbarPosition } from './Message.types';
|
|
3
|
+
/**
|
|
4
|
+
* Options for showing a snackbar
|
|
5
|
+
*/
|
|
6
|
+
export interface ShowSnackbarOptions {
|
|
7
|
+
/**
|
|
8
|
+
* The message content to display
|
|
9
|
+
*/
|
|
10
|
+
message: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* The variant/type of message to display
|
|
13
|
+
* @default 'info'
|
|
14
|
+
*/
|
|
15
|
+
variant?: MessageVariant;
|
|
16
|
+
/**
|
|
17
|
+
* Optional action button configuration
|
|
18
|
+
*/
|
|
19
|
+
action?: {
|
|
20
|
+
label: string;
|
|
21
|
+
onClick: () => void;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Whether to show the close button
|
|
25
|
+
* @default true
|
|
26
|
+
*/
|
|
27
|
+
showCloseButton?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Auto-hide duration in milliseconds
|
|
30
|
+
* Set to null or 0 to disable auto-hide
|
|
31
|
+
* @default 5000
|
|
32
|
+
*/
|
|
33
|
+
autoHideDuration?: number | null;
|
|
34
|
+
/**
|
|
35
|
+
* Custom ID for the snackbar (auto-generated if not provided)
|
|
36
|
+
*/
|
|
37
|
+
id?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Context value provided by SnackbarProvider
|
|
41
|
+
*/
|
|
42
|
+
export interface SnackbarContextValue {
|
|
43
|
+
/**
|
|
44
|
+
* Show a snackbar notification
|
|
45
|
+
* Returns the ID of the created snackbar
|
|
46
|
+
*/
|
|
47
|
+
showSnackbar: (options: ShowSnackbarOptions) => string;
|
|
48
|
+
/**
|
|
49
|
+
* Hide a specific snackbar by ID
|
|
50
|
+
*/
|
|
51
|
+
hideSnackbar: (id: string) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Clear all snackbars
|
|
54
|
+
*/
|
|
55
|
+
clearAll: () => void;
|
|
56
|
+
/**
|
|
57
|
+
* Convenience method to show a success snackbar
|
|
58
|
+
*/
|
|
59
|
+
success: (message: ReactNode, options?: Omit<ShowSnackbarOptions, 'message' | 'variant'>) => string;
|
|
60
|
+
/**
|
|
61
|
+
* Convenience method to show an error snackbar
|
|
62
|
+
*/
|
|
63
|
+
error: (message: ReactNode, options?: Omit<ShowSnackbarOptions, 'message' | 'variant'>) => string;
|
|
64
|
+
/**
|
|
65
|
+
* Convenience method to show a warning snackbar
|
|
66
|
+
*/
|
|
67
|
+
warning: (message: ReactNode, options?: Omit<ShowSnackbarOptions, 'message' | 'variant'>) => string;
|
|
68
|
+
/**
|
|
69
|
+
* Convenience method to show an info snackbar
|
|
70
|
+
*/
|
|
71
|
+
info: (message: ReactNode, options?: Omit<ShowSnackbarOptions, 'message' | 'variant'>) => string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Props for the SnackbarProvider component
|
|
75
|
+
*/
|
|
76
|
+
export interface SnackbarProviderProps {
|
|
77
|
+
/**
|
|
78
|
+
* Child components that will have access to the snackbar context
|
|
79
|
+
*/
|
|
80
|
+
children: ReactNode;
|
|
81
|
+
/**
|
|
82
|
+
* Position of the snackbar stack
|
|
83
|
+
* @default 'bottom-center'
|
|
84
|
+
*/
|
|
85
|
+
position?: SnackbarPosition;
|
|
86
|
+
/**
|
|
87
|
+
* Maximum number of snackbars to show at once
|
|
88
|
+
* Oldest will be removed when limit is exceeded
|
|
89
|
+
* @default 5
|
|
90
|
+
*/
|
|
91
|
+
maxSnackbars?: number;
|
|
92
|
+
/**
|
|
93
|
+
* Maximum width for snackbars
|
|
94
|
+
*/
|
|
95
|
+
maxWidth?: string | number;
|
|
96
|
+
/**
|
|
97
|
+
* Test ID for testing
|
|
98
|
+
*/
|
|
99
|
+
dataTestId?: string;
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=SnackbarProvider.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SnackbarProvider.types.d.ts","sourceRoot":"","sources":["../../../src/components/Message/SnackbarProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;IACF;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,YAAY,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,MAAM,CAAC;IACvD;;OAEG;IACH,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,SAAS,CAAC,KAAK,MAAM,CAAC;IACpG;;OAEG;IACH,KAAK,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,SAAS,CAAC,KAAK,MAAM,CAAC;IAClG;;OAEG;IACH,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,SAAS,CAAC,KAAK,MAAM,CAAC;IACpG;;OAEG;IACH,IAAI,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,SAAS,CAAC,KAAK,MAAM,CAAC;CAClG;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { SnackbarStackProps, SnackbarStackRef } from './SnackbarStack.types';
|
|
2
|
+
/**
|
|
3
|
+
* SnackbarStack - A component that manages and displays multiple stacking snackbars
|
|
4
|
+
*
|
|
5
|
+
* This component renders snackbars in a fixed position on the screen and handles
|
|
6
|
+
* their lifecycle including auto-dismiss timers and animations.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* const [alerts, setAlerts] = useState<Map<string, SnackbarAlert>>(new Map());
|
|
11
|
+
*
|
|
12
|
+
* const addAlert = (alert: SnackbarAlert) => {
|
|
13
|
+
* setAlerts(prev => new Map(prev).set(alert.id, alert));
|
|
14
|
+
* };
|
|
15
|
+
*
|
|
16
|
+
* const removeAlert = (id: string) => {
|
|
17
|
+
* setAlerts(prev => {
|
|
18
|
+
* const next = new Map(prev);
|
|
19
|
+
* next.delete(id);
|
|
20
|
+
* return next;
|
|
21
|
+
* });
|
|
22
|
+
* };
|
|
23
|
+
*
|
|
24
|
+
* <SnackbarStack
|
|
25
|
+
* alerts={alerts}
|
|
26
|
+
* onClose={removeAlert}
|
|
27
|
+
* position="bottom-center"
|
|
28
|
+
* />
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare const SnackbarStack: import('react').ForwardRefExoticComponent<SnackbarStackProps & import('react').RefAttributes<SnackbarStackRef>>;
|
|
32
|
+
export default SnackbarStack;
|
|
33
|
+
//# sourceMappingURL=SnackbarStack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SnackbarStack.d.ts","sourceRoot":"","sources":["../../../src/components/Message/SnackbarStack.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAiB,MAAM,uBAAuB,CAAC;AAqEjG;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,aAAa,iHA8MzB,CAAC;AAIF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { MessageVariant } from './Message.types';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Descriptor for an individual snackbar alert
|
|
5
|
+
*/
|
|
6
|
+
export interface SnackbarAlert {
|
|
7
|
+
/**
|
|
8
|
+
* Unique identifier for the alert
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* The message content to display
|
|
13
|
+
*/
|
|
14
|
+
message: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* The variant/type of message to display
|
|
17
|
+
*/
|
|
18
|
+
variant: MessageVariant;
|
|
19
|
+
/**
|
|
20
|
+
* Optional action button configuration
|
|
21
|
+
*/
|
|
22
|
+
action?: {
|
|
23
|
+
label: string;
|
|
24
|
+
onClick: () => void;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Whether to show the close button
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
showCloseButton?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Auto-hide duration in milliseconds
|
|
33
|
+
* Set to null or 0 to disable auto-hide
|
|
34
|
+
* @default 5000
|
|
35
|
+
*/
|
|
36
|
+
autoHideDuration?: number | null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Props for the SnackbarStack component
|
|
40
|
+
*/
|
|
41
|
+
export interface SnackbarStackProps {
|
|
42
|
+
/**
|
|
43
|
+
* Map of alerts to display, keyed by unique ID
|
|
44
|
+
*/
|
|
45
|
+
alerts: Map<string, SnackbarAlert>;
|
|
46
|
+
/**
|
|
47
|
+
* Callback when an alert's action button is clicked
|
|
48
|
+
*/
|
|
49
|
+
onAction?: (id: string) => void;
|
|
50
|
+
/**
|
|
51
|
+
* Callback when an alert is closed
|
|
52
|
+
*/
|
|
53
|
+
onClose?: (id: string) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Optional CSS class name
|
|
56
|
+
*/
|
|
57
|
+
className?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Position of the snackbar stack
|
|
60
|
+
* @default 'bottom-center'
|
|
61
|
+
*/
|
|
62
|
+
position?: 'bottom-center' | 'bottom-left' | 'bottom-right' | 'top-center' | 'top-left' | 'top-right';
|
|
63
|
+
/**
|
|
64
|
+
* Maximum width for snackbars in the stack
|
|
65
|
+
*/
|
|
66
|
+
maxWidth?: string | number;
|
|
67
|
+
/**
|
|
68
|
+
* Test ID for testing
|
|
69
|
+
*/
|
|
70
|
+
dataTestId?: string;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Ref props for the SnackbarStack component
|
|
74
|
+
*/
|
|
75
|
+
export interface SnackbarStackRef {
|
|
76
|
+
/**
|
|
77
|
+
* Programmatically close an alert by ID
|
|
78
|
+
*/
|
|
79
|
+
closeAlert: (id: string) => void;
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=SnackbarStack.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SnackbarStack.types.d.ts","sourceRoot":"","sources":["../../../src/components/Message/SnackbarStack.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;IACF;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACnC;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,eAAe,GAAG,aAAa,GAAG,cAAc,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,CAAC;IACtG;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC"}
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Message Component
|
|
3
|
-
*
|
|
3
|
+
* Universal message component for displaying various types of feedback
|
|
4
|
+
* Supports inline, banner, and snackbar display modes
|
|
4
5
|
*/
|
|
5
6
|
export { Message, default } from './Message';
|
|
6
|
-
export type { MessageProps, MessageVariant, MessageSize } from './Message.types';
|
|
7
|
+
export type { MessageProps, MessageVariant, MessageSize, MessageDisplayMode, MessageTextColor, MessageAction, SnackbarPosition, InternalSnackbarProps, } from './Message.types';
|
|
8
|
+
/**
|
|
9
|
+
* SnackbarProvider and useSnackbar hook
|
|
10
|
+
* Context-based snackbar management for app-wide notifications
|
|
11
|
+
*
|
|
12
|
+
* Usage:
|
|
13
|
+
* 1. Wrap your app with <SnackbarProvider>
|
|
14
|
+
* 2. Use useSnackbar() hook anywhere to show snackbars
|
|
15
|
+
*
|
|
16
|
+
* The provider handles all stacking and positioning internally.
|
|
17
|
+
*/
|
|
18
|
+
export { SnackbarProvider, useSnackbar } from './SnackbarProvider';
|
|
19
|
+
export type { ShowSnackbarOptions, SnackbarContextValue, SnackbarProviderProps, } from './SnackbarProvider.types';
|
|
7
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Message/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Message/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,YAAY,EACV,YAAY,EACZ,cAAc,EACd,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AAEzB;;;;;;;;;GASG;AACH,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACnE,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,0BAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetadataDetails.d.ts","sourceRoot":"","sources":["../../../src/components/MetadataDetails/MetadataDetails.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAmC,MAAM,yBAAyB,CAAC;AAqHrG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"MetadataDetails.d.ts","sourceRoot":"","sources":["../../../src/components/MetadataDetails/MetadataDetails.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAmC,MAAM,yBAAyB,CAAC;AAqHrG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,eAAO,MAAM,eAAe,iHAgE3B,CAAC"}
|
|
@@ -68,5 +68,13 @@ export interface MetadataDetailsProps {
|
|
|
68
68
|
* Additional CSS class name
|
|
69
69
|
*/
|
|
70
70
|
className?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Test identifier for automated testing
|
|
73
|
+
*/
|
|
74
|
+
dataTestId?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Data identifier for ib-ui compatibility
|
|
77
|
+
*/
|
|
78
|
+
dataId?: string;
|
|
71
79
|
}
|
|
72
80
|
//# sourceMappingURL=MetadataDetails.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetadataDetails.types.d.ts","sourceRoot":"","sources":["../../../src/components/MetadataDetails/MetadataDetails.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAExE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAExE;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,SAAS,CAAC;AAElD,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAE3B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3B;;;;OAIG;IACH,aAAa,CAAC,EAAE,eAAe,CAAC;IAEhC;;;;OAIG;IACH,aAAa,CAAC,EAAE,eAAe,CAAC;IAEhC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"MetadataDetails.types.d.ts","sourceRoot":"","sources":["../../../src/components/MetadataDetails/MetadataDetails.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAExE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAExE;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,SAAS,CAAC;AAElD,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAE3B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3B;;;;OAIG;IACH,aAAa,CAAC,EAAE,eAAe,CAAC;IAEhC;;;;OAIG;IACH,aAAa,CAAC,EAAE,eAAe,CAAC;IAEhC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -15,7 +15,7 @@ import { ModalProps, ModalHeaderProps, ModalBodyProps, ModalFooterProps } from '
|
|
|
15
15
|
* </Modal>
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
export declare function Modal({ isOpen, onClose, title, children, size, closeOnBackdropClick, closeOnEsc, showCloseButton, footer, className, portalContainer, 'data-testid': testId, transparent, zIndex, initialFocusRef, onMount, 'aria-label': ariaLabel, }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function Modal({ isOpen, onClose, title, titleFontSize, children, size, closeOnBackdropClick, closeOnEsc, showCloseButton, footer, className, portalContainer, 'data-testid': testId, dataTestId, dataId, transparent, zIndex, initialFocusRef, onMount, 'aria-label': ariaLabel, }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export declare namespace Modal {
|
|
20
20
|
var Header: typeof ModalHeader;
|
|
21
21
|
var Body: typeof ModalBody;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,gBAAgB,
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAEjB,MAAM,eAAe,CAAC;AA0QvB;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,KAAK,CAAC,EACpB,MAAM,EACN,OAAO,EACP,KAAK,EACL,aAAa,EACb,QAAQ,EACR,IAAW,EACX,oBAA2B,EAC3B,UAAiB,EACjB,eAAsB,EACtB,MAAM,EACN,SAAS,EACT,eAAe,EACf,aAAa,EAAE,MAAM,EACrB,UAAU,EACV,MAAM,EACN,WAAmB,EACnB,MAAW,EACX,eAAe,EACf,OAAO,EACP,YAAY,EAAE,SAAS,GACxB,EAAE,UAAU,2CAiJZ;yBAtKe,KAAK;;;;;;AAwKrB;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,gBAAgB,2CAEpE;yBAFe,WAAW;;;AAI3B;;GAEG;AACH,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,cAAc,2CAEhE;yBAFe,SAAS;;;AAIzB;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,gBAAgB,2CAEpE;yBAFe,WAAW;;;AAc3B,eAAe,KAAK,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from 'react';
|
|
1
|
+
import { ReactNode, RefObject, CSSProperties } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Font size value - can be a theme token key or a CSS value
|
|
4
|
+
*/
|
|
5
|
+
export type FontSizeValue = 'xs' | 'sm' | 'base' | 'md' | 'lg' | 'xl' | CSSProperties['fontSize'];
|
|
2
6
|
/**
|
|
3
7
|
* Size variants for the Modal component
|
|
4
8
|
*/
|
|
@@ -46,6 +50,12 @@ export interface ModalProps {
|
|
|
46
50
|
onClose: () => void;
|
|
47
51
|
/** Modal title */
|
|
48
52
|
title?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Font size for the title
|
|
55
|
+
* Can be a theme token key ('xs', 'sm', 'base', 'md', 'lg', 'xl') or CSS value
|
|
56
|
+
* @default 'lg'
|
|
57
|
+
*/
|
|
58
|
+
titleFontSize?: FontSizeValue;
|
|
49
59
|
/** Modal content */
|
|
50
60
|
children: ReactNode;
|
|
51
61
|
/** Size variant */
|
|
@@ -62,8 +72,12 @@ export interface ModalProps {
|
|
|
62
72
|
className?: string;
|
|
63
73
|
/** Portal container (defaults to document.body) */
|
|
64
74
|
portalContainer?: HTMLElement;
|
|
65
|
-
/** Test ID */
|
|
75
|
+
/** Test ID (deprecated, use dataTestId) */
|
|
66
76
|
'data-testid'?: string;
|
|
77
|
+
/** Test identifier for automated testing */
|
|
78
|
+
dataTestId?: string;
|
|
79
|
+
/** Data identifier for ib-ui compatibility */
|
|
80
|
+
dataId?: string;
|
|
67
81
|
/**
|
|
68
82
|
* Whether the backdrop is transparent (no dark background)
|
|
69
83
|
* Useful for loading overlays or custom scenarios
|