@newtonschool/grauity 0.0.13 → 0.1.10
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 +138 -9
- package/dist/fonts/grauity-icons.eot +0 -0
- package/dist/fonts/grauity-icons.ttf +0 -0
- package/dist/fonts/grauity-icons.woff +0 -0
- package/dist/fonts/grauity-icons.woff2 +0 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useClickAway.d.ts +15 -0
- package/dist/hooks/useClickAway.d.ts.map +1 -0
- package/dist/hooks/useDisableBodyScroll.d.ts +7 -0
- package/dist/hooks/useDisableBodyScroll.d.ts.map +1 -0
- package/dist/hooks/useKeyboardEvent.d.ts +17 -0
- package/dist/hooks/useKeyboardEvent.d.ts.map +1 -0
- package/dist/index.d.ts +830 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.cjs.map +1 -1
- package/dist/main.css +10 -1
- package/dist/main.css.map +1 -1
- package/dist/module.css +10 -1
- package/dist/module.css.map +1 -1
- package/dist/module.mjs +1 -1
- package/dist/module.mjs.map +1 -1
- package/dist/stories/atoms/Colors/FoundationColors.stories.d.ts +7 -0
- package/dist/stories/atoms/Colors/FoundationColors.stories.d.ts.map +1 -0
- package/dist/stories/atoms/Colors/index.stories.d.ts +18 -0
- package/dist/stories/atoms/Colors/index.stories.d.ts.map +1 -0
- package/dist/stories/atoms/CornerRadius/index.stories.d.ts +7 -0
- package/dist/stories/atoms/CornerRadius/index.stories.d.ts.map +1 -0
- package/dist/stories/atoms/Spacing/index.stories.d.ts +7 -0
- package/dist/stories/atoms/Spacing/index.stories.d.ts.map +1 -0
- package/dist/stories/decorators/withEnableBodyScroll.d.ts +8 -0
- package/dist/stories/decorators/withEnableBodyScroll.d.ts.map +1 -0
- package/dist/stories/decorators/withInlineContainer.d.ts +15 -0
- package/dist/stories/decorators/withInlineContainer.d.ts.map +1 -0
- package/dist/stories/elements/Alert/Gallery.stories.d.ts +30 -0
- package/dist/stories/elements/Alert/Gallery.stories.d.ts.map +1 -0
- package/dist/stories/elements/Alert/index.stories.d.ts +30 -0
- package/dist/stories/elements/Alert/index.stories.d.ts.map +1 -0
- package/dist/stories/elements/AlertBanner/Gallery.stories.d.ts +33 -0
- package/dist/stories/elements/AlertBanner/Gallery.stories.d.ts.map +1 -0
- package/dist/stories/elements/AlertBanner/index.stories.d.ts +30 -0
- package/dist/stories/elements/AlertBanner/index.stories.d.ts.map +1 -0
- package/dist/stories/elements/Button/Gallery.stories.d.ts +10 -0
- package/dist/stories/elements/Button/Gallery.stories.d.ts.map +1 -0
- package/dist/stories/elements/Button/index.stories.d.ts +9 -0
- package/dist/stories/elements/Button/index.stories.d.ts.map +1 -0
- package/dist/stories/elements/Icon/index.stories.d.ts +14 -0
- package/dist/stories/elements/Icon/index.stories.d.ts.map +1 -0
- package/dist/stories/elements/IconButton/Gallery.stories.d.ts +10 -0
- package/dist/stories/elements/IconButton/Gallery.stories.d.ts.map +1 -0
- package/dist/stories/elements/IconButton/index.stories.d.ts +9 -0
- package/dist/stories/elements/IconButton/index.stories.d.ts.map +1 -0
- package/dist/stories/elements/Modal/ConfirmationDialog.source.d.ts +3 -0
- package/dist/stories/elements/Modal/ConfirmationDialog.source.d.ts.map +1 -0
- package/dist/stories/elements/Modal/ConfirmationDialog.stories.d.ts +43 -0
- package/dist/stories/elements/Modal/ConfirmationDialog.stories.d.ts.map +1 -0
- package/dist/stories/elements/Modal/ConfirmationDialogWithTrigger.stories.d.ts +42 -0
- package/dist/stories/elements/Modal/ConfirmationDialogWithTrigger.stories.d.ts.map +1 -0
- package/dist/stories/elements/Modal/MultiStepModal.stories.d.ts +46 -0
- package/dist/stories/elements/Modal/MultiStepModal.stories.d.ts.map +1 -0
- package/dist/stories/elements/Modal/index.stories.d.ts +32 -0
- package/dist/stories/elements/Modal/index.stories.d.ts.map +1 -0
- package/dist/stories/elements/Modal/multiStepArgs.d.ts +4 -0
- package/dist/stories/elements/Modal/multiStepArgs.d.ts.map +1 -0
- package/dist/stories/elements/Modal/singleStepArgs.d.ts +4 -0
- package/dist/stories/elements/Modal/singleStepArgs.d.ts.map +1 -0
- package/dist/stories/elements/Table/Manual.source.d.ts +3 -0
- package/dist/stories/elements/Table/Manual.source.d.ts.map +1 -0
- package/dist/stories/elements/Table/Manual.stories.d.ts +54 -0
- package/dist/stories/elements/Table/Manual.stories.d.ts.map +1 -0
- package/dist/stories/elements/Table/ManualColumnNesting.source.d.ts +3 -0
- package/dist/stories/elements/Table/ManualColumnNesting.source.d.ts.map +1 -0
- package/dist/stories/elements/Table/ManualColumnNesting.stories.d.ts +53 -0
- package/dist/stories/elements/Table/ManualColumnNesting.stories.d.ts.map +1 -0
- package/dist/stories/elements/Table/index.stories.d.ts +46 -0
- package/dist/stories/elements/Table/index.stories.d.ts.map +1 -0
- package/dist/stories/elements/Table/simpleArgs.d.ts +4 -0
- package/dist/stories/elements/Table/simpleArgs.d.ts.map +1 -0
- package/dist/stories/elements/Typography/TypographyGallery.stories.d.ts +29 -0
- package/dist/stories/elements/Typography/TypographyGallery.stories.d.ts.map +1 -0
- package/dist/stories/elements/Typography/index.stories.d.ts +28 -0
- package/dist/stories/elements/Typography/index.stories.d.ts.map +1 -0
- package/dist/stories/helper-components/ColorRenderer/index.d.ts +15 -0
- package/dist/stories/helper-components/ColorRenderer/index.d.ts.map +1 -0
- package/dist/stories/helper-components/DocPageWithPlayground.d.ts +12 -0
- package/dist/stories/helper-components/DocPageWithPlayground.d.ts.map +1 -0
- package/dist/stories/helper-components/TokenBlock/index.d.ts +21 -0
- package/dist/stories/helper-components/TokenBlock/index.d.ts.map +1 -0
- package/dist/stories/helper-components/TokenBlock/index.styles.d.ts +4 -0
- package/dist/stories/helper-components/TokenBlock/index.styles.d.ts.map +1 -0
- package/dist/stories/utils/index.d.ts +82 -0
- package/dist/stories/utils/index.d.ts.map +1 -0
- package/dist/ui/core/colors/colorTypes.d.ts +1 -0
- package/dist/ui/core/colors/colorTypes.d.ts.map +1 -0
- package/dist/ui/core/colors/index.d.ts +1 -0
- package/dist/ui/core/colors/index.d.ts.map +1 -0
- package/dist/ui/core/icons/iconTags.d.ts.map +1 -0
- package/dist/ui/core/icons/iconTypes.d.ts.map +1 -0
- package/dist/{core → ui/core}/icons/index.d.ts +1 -1
- package/dist/ui/core/icons/index.d.ts.map +1 -0
- package/dist/ui/core/index.d.ts +7 -0
- package/dist/ui/core/index.d.ts.map +1 -0
- package/dist/ui/core/miscellaneous-choices/index.d.ts.map +1 -0
- package/dist/ui/core/miscellaneous-choices/miscellaneousTypes.d.ts.map +1 -0
- package/dist/ui/core/sizes/index.d.ts.map +1 -0
- package/dist/ui/core/sizes/sizeTypes.d.ts +3 -0
- package/dist/ui/core/sizes/sizeTypes.d.ts.map +1 -0
- package/dist/ui/elements/Alert/Alert.d.ts +8 -0
- package/dist/ui/elements/Alert/Alert.d.ts.map +1 -0
- package/dist/ui/elements/Alert/Alert.styles.d.ts +7 -0
- package/dist/ui/elements/Alert/Alert.styles.d.ts.map +1 -0
- package/dist/ui/elements/Alert/Alert.test.d.ts +2 -0
- package/dist/ui/elements/Alert/Alert.test.d.ts.map +1 -0
- package/dist/ui/elements/Alert/constants.d.ts +140 -0
- package/dist/ui/elements/Alert/constants.d.ts.map +1 -0
- package/dist/ui/elements/Alert/index.d.ts +7 -0
- package/dist/ui/elements/Alert/index.d.ts.map +1 -0
- package/dist/ui/elements/Alert/types.d.ts +125 -0
- package/dist/ui/elements/Alert/types.d.ts.map +1 -0
- package/dist/ui/elements/Alert/utils.d.ts +1 -0
- package/dist/ui/elements/Alert/utils.d.ts.map +1 -0
- package/dist/ui/elements/AlertBanner/AlertBanner.d.ts +9 -0
- package/dist/ui/elements/AlertBanner/AlertBanner.d.ts.map +1 -0
- package/dist/ui/elements/AlertBanner/AlertBanner.styles.d.ts +4 -0
- package/dist/ui/elements/AlertBanner/AlertBanner.styles.d.ts.map +1 -0
- package/dist/ui/elements/AlertBanner/AlertBanner.test.d.ts +2 -0
- package/dist/ui/elements/AlertBanner/AlertBanner.test.d.ts.map +1 -0
- package/dist/ui/elements/AlertBanner/constants.d.ts +140 -0
- package/dist/ui/elements/AlertBanner/constants.d.ts.map +1 -0
- package/dist/ui/elements/AlertBanner/index.d.ts +7 -0
- package/dist/ui/elements/AlertBanner/index.d.ts.map +1 -0
- package/dist/ui/elements/AlertBanner/types.d.ts +111 -0
- package/dist/ui/elements/AlertBanner/types.d.ts.map +1 -0
- package/dist/ui/elements/AlertBanner/utils.d.ts +105 -0
- package/dist/ui/elements/AlertBanner/utils.d.ts.map +1 -0
- package/dist/ui/elements/Button/Button.d.ts +11 -0
- package/dist/ui/elements/Button/Button.d.ts.map +1 -0
- package/dist/ui/elements/Button/Button.styles.d.ts +4 -0
- package/dist/ui/elements/Button/Button.styles.d.ts.map +1 -0
- package/dist/ui/elements/Button/Button.test.d.ts +2 -0
- package/dist/ui/elements/Button/Button.test.d.ts.map +1 -0
- package/dist/ui/elements/Button/ButtonGroup.d.ts +11 -0
- package/dist/ui/elements/Button/ButtonGroup.d.ts.map +1 -0
- package/dist/ui/elements/Button/ButtonGroup.styles.d.ts +2 -0
- package/dist/ui/elements/Button/ButtonGroup.styles.d.ts.map +1 -0
- package/dist/ui/elements/Button/IconButton.d.ts +8 -0
- package/dist/ui/elements/Button/IconButton.d.ts.map +1 -0
- package/dist/ui/elements/Button/IconButton.test.d.ts +2 -0
- package/dist/ui/elements/Button/IconButton.test.d.ts.map +1 -0
- package/dist/ui/elements/Button/constants.d.ts +54 -0
- package/dist/ui/elements/Button/constants.d.ts.map +1 -0
- package/dist/ui/elements/Button/index.d.ts +9 -0
- package/dist/ui/elements/Button/index.d.ts.map +1 -0
- package/dist/ui/elements/Button/types.d.ts +226 -0
- package/dist/ui/elements/Button/types.d.ts.map +1 -0
- package/dist/ui/elements/Button/utils.d.ts +1 -0
- package/dist/ui/elements/Button/utils.d.ts.map +1 -0
- package/dist/ui/elements/Icon/Icon.d.ts +48 -0
- package/dist/ui/elements/Icon/Icon.d.ts.map +1 -0
- package/dist/ui/elements/Icon/Icon.styles.d.ts +5 -0
- package/dist/ui/elements/Icon/Icon.styles.d.ts.map +1 -0
- package/dist/ui/elements/Icon/index.d.ts +3 -0
- package/dist/ui/elements/Icon/index.d.ts.map +1 -0
- package/dist/ui/elements/Icon/types.d.ts +74 -0
- package/dist/ui/elements/Icon/types.d.ts.map +1 -0
- package/dist/ui/elements/Modal/ConfirmationDialog/index.d.ts +43 -0
- package/dist/ui/elements/Modal/ConfirmationDialog/index.d.ts.map +1 -0
- package/dist/ui/elements/Modal/ConfirmationDialog/index.test.d.ts +2 -0
- package/dist/ui/elements/Modal/ConfirmationDialog/index.test.d.ts.map +1 -0
- package/dist/ui/elements/Modal/Modal.d.ts +21 -0
- package/dist/ui/elements/Modal/Modal.d.ts.map +1 -0
- package/dist/ui/elements/Modal/Modal.styles.d.ts +18 -0
- package/dist/ui/elements/Modal/Modal.styles.d.ts.map +1 -0
- package/dist/ui/elements/Modal/Modal.test.d.ts +2 -0
- package/dist/ui/elements/Modal/Modal.test.d.ts.map +1 -0
- package/dist/ui/elements/Modal/MultiStepModal/index.d.ts +46 -0
- package/dist/ui/elements/Modal/MultiStepModal/index.d.ts.map +1 -0
- package/dist/ui/elements/Modal/MultiStepModal/index.test.d.ts +2 -0
- package/dist/ui/elements/Modal/MultiStepModal/index.test.d.ts.map +1 -0
- package/dist/ui/elements/Modal/constants.d.ts +1 -0
- package/dist/ui/elements/Modal/constants.d.ts.map +1 -0
- package/dist/ui/elements/Modal/index.d.ts +5 -0
- package/dist/ui/elements/Modal/index.d.ts.map +1 -0
- package/dist/ui/elements/Modal/types.d.ts +312 -0
- package/dist/ui/elements/Modal/types.d.ts.map +1 -0
- package/dist/ui/elements/Modal/utils.d.ts +1 -0
- package/dist/ui/elements/Modal/utils.d.ts.map +1 -0
- package/dist/ui/elements/Table/Table.d.ts +47 -0
- package/dist/ui/elements/Table/Table.d.ts.map +1 -0
- package/dist/ui/elements/Table/Table.styles.d.ts +8 -0
- package/dist/ui/elements/Table/Table.styles.d.ts.map +1 -0
- package/dist/ui/elements/Table/Table.test.d.ts +2 -0
- package/dist/ui/elements/Table/Table.test.d.ts.map +1 -0
- package/dist/ui/elements/Table/constants.d.ts +1 -0
- package/dist/ui/elements/Table/constants.d.ts.map +1 -0
- package/dist/ui/elements/Table/index.d.ts +3 -0
- package/dist/ui/elements/Table/index.d.ts.map +1 -0
- package/dist/ui/elements/Table/types.d.ts +223 -0
- package/dist/ui/elements/Table/types.d.ts.map +1 -0
- package/dist/ui/elements/Table/utils.d.ts +1 -0
- package/dist/ui/elements/Table/utils.d.ts.map +1 -0
- package/dist/ui/elements/Typography/Typography.d.ts +36 -0
- package/dist/ui/elements/Typography/Typography.d.ts.map +1 -0
- package/dist/ui/elements/Typography/Typography.styles.d.ts +6 -0
- package/dist/ui/elements/Typography/Typography.styles.d.ts.map +1 -0
- package/dist/ui/elements/Typography/constants.d.ts +22 -0
- package/dist/ui/elements/Typography/constants.d.ts.map +1 -0
- package/dist/ui/elements/Typography/index.d.ts +5 -0
- package/dist/ui/elements/Typography/index.d.ts.map +1 -0
- package/dist/ui/elements/Typography/types.d.ts +50 -0
- package/dist/ui/elements/Typography/types.d.ts.map +1 -0
- package/dist/ui/elements/Typography/utils.d.ts +2 -0
- package/dist/ui/elements/Typography/utils.d.ts.map +1 -0
- package/dist/ui/helpers/classNameBuilders.d.ts.map +1 -0
- package/dist/ui/helpers/index.d.ts +3 -0
- package/dist/ui/helpers/index.d.ts.map +1 -0
- package/dist/ui/index.d.ts +11 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/{init → ui/init}/GrauityInit.d.ts +15 -3
- package/dist/ui/init/GrauityInit.d.ts.map +1 -0
- package/dist/ui/init/index.d.ts.map +1 -0
- package/dist/ui/themes/GlobalStyle.d.ts +5 -0
- package/dist/ui/themes/GlobalStyle.d.ts.map +1 -0
- package/dist/ui/themes/ThemeContext.d.ts +24 -0
- package/dist/ui/themes/ThemeContext.d.ts.map +1 -0
- package/dist/ui/themes/constants.d.ts +6 -0
- package/dist/ui/themes/constants.d.ts.map +1 -0
- package/dist/ui/themes/darkThemeConstants.d.ts +70 -0
- package/dist/ui/themes/darkThemeConstants.d.ts.map +1 -0
- package/dist/ui/themes/lightThemeConstants.d.ts +70 -0
- package/dist/ui/themes/lightThemeConstants.d.ts.map +1 -0
- package/dist/ui/themes/tokens.d.ts +1 -0
- package/dist/ui/themes/tokens.d.ts.map +1 -0
- package/dist/ui/themes/types.d.ts +73 -0
- package/dist/ui/themes/types.d.ts.map +1 -0
- package/package.json +53 -28
- package/ui/core/colors/colorTypes.ts +2 -20
- package/ui/core/colors/index.ts +23 -23
- package/ui/core/icons/index.ts +1 -3
- package/ui/core/index.ts +7 -10
- package/ui/core/sizes/sizeTypes.ts +1 -0
- package/ui/css/fonts.scss +0 -8
- package/ui/css/index.scss +0 -8
- package/ui/css/reset.scss +2 -5
- package/ui/elements/Alert/Alert.styles.ts +66 -0
- package/ui/elements/Alert/Alert.test.tsx +81 -0
- package/ui/elements/Alert/Alert.tsx +153 -0
- package/ui/elements/Alert/constants.ts +169 -0
- package/ui/elements/Alert/index.ts +6 -0
- package/ui/elements/Alert/types.ts +150 -0
- package/ui/elements/AlertBanner/AlertBanner.styles.ts +35 -0
- package/ui/elements/AlertBanner/AlertBanner.test.tsx +70 -0
- package/ui/elements/AlertBanner/AlertBanner.tsx +137 -0
- package/ui/elements/AlertBanner/constants.ts +179 -0
- package/ui/elements/AlertBanner/index.ts +6 -0
- package/ui/elements/AlertBanner/types.ts +133 -0
- package/ui/elements/AlertBanner/utils.ts +52 -0
- package/ui/elements/Button/Button.styles.ts +88 -0
- package/ui/elements/Button/Button.test.tsx +78 -0
- package/ui/elements/Button/Button.tsx +134 -0
- package/ui/elements/Button/ButtonGroup.styles.ts +7 -0
- package/ui/elements/Button/ButtonGroup.tsx +21 -0
- package/ui/elements/Button/IconButton.test.tsx +39 -0
- package/ui/elements/Button/IconButton.tsx +118 -0
- package/ui/elements/Button/constants.ts +304 -0
- package/ui/elements/Button/index.ts +8 -0
- package/ui/elements/Button/types.ts +282 -0
- package/ui/elements/Button/utils.ts +0 -0
- package/ui/elements/Icon/Icon.styles.ts +98 -0
- package/ui/elements/Icon/Icon.tsx +17 -107
- package/ui/elements/Icon/index.ts +1 -2
- package/ui/elements/Icon/types.ts +96 -0
- package/ui/elements/Modal/ConfirmationDialog/index.test.tsx +116 -0
- package/ui/elements/Modal/ConfirmationDialog/index.tsx +151 -0
- package/ui/elements/Modal/Modal.styles.ts +230 -0
- package/ui/elements/Modal/Modal.test.tsx +117 -0
- package/ui/elements/Modal/Modal.tsx +179 -0
- package/ui/elements/Modal/MultiStepModal/index.test.tsx +116 -0
- package/ui/elements/Modal/MultiStepModal/index.tsx +184 -0
- package/ui/elements/Modal/constants.ts +0 -0
- package/ui/elements/Modal/index.ts +4 -0
- package/ui/elements/Modal/types.ts +379 -0
- package/ui/elements/Modal/utils.tsx +0 -0
- package/ui/elements/Table/Table.styles.ts +178 -0
- package/ui/elements/Table/Table.test.tsx +72 -0
- package/ui/elements/Table/Table.tsx +118 -0
- package/ui/elements/Table/constants.ts +0 -0
- package/ui/elements/Table/index.ts +2 -0
- package/ui/elements/Table/types.ts +270 -0
- package/ui/elements/Table/utils.ts +0 -0
- package/ui/elements/Typography/Typography.styles.ts +29 -0
- package/ui/elements/Typography/Typography.tsx +70 -0
- package/ui/elements/Typography/constants.ts +292 -0
- package/ui/elements/Typography/index.ts +9 -0
- package/ui/elements/Typography/types.ts +116 -0
- package/ui/elements/Typography/utils.ts +11 -0
- package/ui/fonts/grauity-icons.eot +0 -0
- package/ui/fonts/grauity-icons.ttf +0 -0
- package/ui/fonts/grauity-icons.woff +0 -0
- package/ui/fonts/grauity-icons.woff2 +0 -0
- package/ui/helpers/index.ts +1 -7
- package/ui/index.ts +42 -3
- package/ui/init/GrauityInit.tsx +30 -7
- package/ui/init/index.ts +0 -1
- package/ui/themes/GlobalStyle.ts +273 -0
- package/ui/themes/ThemeContext.tsx +140 -0
- package/ui/themes/constants.ts +8 -0
- package/ui/themes/darkThemeConstants.ts +73 -0
- package/ui/themes/lightThemeConstants.ts +73 -0
- package/ui/themes/tokens.ts +0 -0
- package/ui/themes/types.ts +77 -0
- package/dist/core/colors/colorTypes.d.ts +0 -3
- package/dist/core/colors/colorTypes.d.ts.map +0 -1
- package/dist/core/colors/index.d.ts +0 -14
- package/dist/core/colors/index.d.ts.map +0 -1
- package/dist/core/icons/iconTags.d.ts.map +0 -1
- package/dist/core/icons/iconTypes.d.ts.map +0 -1
- package/dist/core/icons/index.d.ts.map +0 -1
- package/dist/core/index.d.ts +0 -9
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/miscellaneous-choices/index.d.ts.map +0 -1
- package/dist/core/miscellaneous-choices/miscellaneousTypes.d.ts.map +0 -1
- package/dist/core/sizes/index.d.ts.map +0 -1
- package/dist/core/sizes/sizeTypes.d.ts +0 -3
- package/dist/core/sizes/sizeTypes.d.ts.map +0 -1
- package/dist/elements/Icon/Icon.d.ts +0 -115
- package/dist/elements/Icon/Icon.d.ts.map +0 -1
- package/dist/elements/Icon/index.d.ts +0 -3
- package/dist/elements/Icon/index.d.ts.map +0 -1
- package/dist/elements/index.d.ts +0 -3
- package/dist/elements/index.d.ts.map +0 -1
- package/dist/helpers/classNameBuilders.d.ts.map +0 -1
- package/dist/helpers/getElementTypeFromProps.d.ts +0 -14
- package/dist/helpers/getElementTypeFromProps.d.ts.map +0 -1
- package/dist/helpers/index.d.ts +0 -4
- package/dist/helpers/index.d.ts.map +0 -1
- package/dist/init/GrauityInit.d.ts.map +0 -1
- package/dist/init/index.d.ts.map +0 -1
- package/ui/css/colors.scss +0 -131
- package/ui/css/icons.scss +0 -92
- package/ui/elements/index.ts +0 -2
- package/ui/helpers/getElementTypeFromProps.ts +0 -32
- /package/dist/{core → ui/core}/icons/iconTags.d.ts +0 -0
- /package/dist/{core → ui/core}/icons/iconTypes.d.ts +0 -0
- /package/dist/{core → ui/core}/miscellaneous-choices/index.d.ts +0 -0
- /package/dist/{core → ui/core}/miscellaneous-choices/miscellaneousTypes.d.ts +0 -0
- /package/dist/{core → ui/core}/sizes/index.d.ts +0 -0
- /package/dist/{helpers → ui/helpers}/classNameBuilders.d.ts +0 -0
- /package/dist/{init → ui/init}/index.d.ts +0 -0
- /package/ui/{css/sizes.scss → elements/Alert/utils.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
type grauityIconColorName = 'white' | 'black' | 'grey' | 'blue' | 'red' | 'green' | 'orange' | 'yellow' | 'purple';
|
|
4
|
-
type grauityIconName = 'exclamation-circle' | 'exclamation-triangle' | 'info-circle' | 'question-circle' | 'code-alt' | 'code' | 'terminal' | 'desktop' | 'gamepad' | 'lamp' | 'laptop' | 'mobile' | 'archive' | 'bookmark-fill' | 'bookmark' | 'file-alt' | 'file' | 'folder-open' | 'folder' | 'label-fill' | 'label' | 'note' | 'pen' | 'pin' | 'mic-off' | 'mic' | 'pause-circle-fill' | 'pause-circle' | 'pause' | 'play-circle-fill' | 'play-circle' | 'play' | 'video-off' | 'video' | 'volume-maximum' | 'volume-minimum' | 'volume-mute' | 'heart-fill' | 'heart' | 'lock-close' | 'lock-open' | 'message-circle' | 'message-double-question' | 'message-square-info' | 'message-square' | 'milestone' | 'quiz' | 'smiley' | 'spark-fill' | 'spark' | 'sparkle' | 'target' | 'check-badge' | 'crown' | 'flag' | 'gift' | 'medal' | 'star-fill' | 'star-half-fill' | 'star' | 'trophy' | 'arrow-double' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'bin' | 'call-end' | 'call-start' | 'caret-double' | 'caret-down' | 'caret-left' | 'caret-right' | 'caret-up' | 'check-circle-fill' | 'check-circle' | 'check-square-fill' | 'check-square' | 'check' | 'chevron-double-down' | 'chevron-double-left' | 'chevron-double-right' | 'chevron-double-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle' | 'close-circle-fill' | 'close-circle' | 'close-square-fill' | 'close-square' | 'close' | 'download' | 'forward' | 'grip-hortizontal' | 'grip-vertical' | 'growth-down' | 'growth-up' | 'home' | 'kebab-horizontal' | 'kebab-vertical' | 'link' | 'list' | 'load' | 'maximize' | 'menu-grid' | 'menu' | 'minimize' | 'minus-circle-fill' | 'minus-circle' | 'minus-square-fill' | 'minus-square' | 'moon' | 'new-tab' | 'plus-circle-fill' | 'plus-circle' | 'plus-square-fill' | 'plus-square' | 'plus' | 'refresh' | 'reply' | 'screenshare-start' | 'screenshare-stop' | 'search' | 'settings' | 'signin' | 'signout' | 'square' | 'sun' | 'upload' | 'bell' | 'calender-check' | 'calender-plus' | 'calender' | 'clock' | 'rewatch' | 'stopwatch' | 'bot' | 'person-check' | 'person-plus' | 'person' | 'users';
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
5
3
|
export const ICON_TAGS: {
|
|
6
4
|
"exclamation-circle": string[];
|
|
7
5
|
"exclamation-triangle": string[];
|
|
@@ -159,8 +157,10 @@ export const TAG_ICONS: {
|
|
|
159
157
|
Time: string[];
|
|
160
158
|
User: string[];
|
|
161
159
|
};
|
|
160
|
+
type grauityIconName = 'exclamation-circle' | 'exclamation-triangle' | 'info-circle' | 'question-circle' | 'code-alt' | 'code' | 'terminal' | 'desktop' | 'gamepad' | 'lamp' | 'laptop' | 'mobile' | 'archive' | 'bookmark-fill' | 'bookmark' | 'file-alt' | 'file' | 'folder-open' | 'folder' | 'label-fill' | 'label' | 'note' | 'pen' | 'pin' | 'mic-off' | 'mic' | 'pause-circle-fill' | 'pause-circle' | 'pause' | 'play-circle-fill' | 'play-circle' | 'play' | 'video-off' | 'video' | 'volume-maximum' | 'volume-minimum' | 'volume-mute' | 'heart-fill' | 'heart' | 'lock-close' | 'lock-open' | 'message-circle' | 'message-double-question' | 'message-square-info' | 'message-square' | 'milestone' | 'quiz' | 'smiley' | 'spark-fill' | 'spark' | 'sparkle' | 'target' | 'check-badge' | 'crown' | 'flag' | 'gift' | 'medal' | 'star-fill' | 'star-half-fill' | 'star' | 'trophy' | 'arrow-double' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'bin' | 'call-end' | 'call-start' | 'caret-double' | 'caret-down' | 'caret-left' | 'caret-right' | 'caret-up' | 'check-circle-fill' | 'check-circle' | 'check-square-fill' | 'check-square' | 'check' | 'chevron-double-down' | 'chevron-double-left' | 'chevron-double-right' | 'chevron-double-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle' | 'close-circle-fill' | 'close-circle' | 'close-square-fill' | 'close-square' | 'close' | 'download' | 'forward' | 'grip-hortizontal' | 'grip-vertical' | 'growth-down' | 'growth-up' | 'home' | 'kebab-horizontal' | 'kebab-vertical' | 'link' | 'list' | 'load' | 'maximize' | 'menu-grid' | 'menu' | 'minimize' | 'minus-circle-fill' | 'minus-circle' | 'minus-square-fill' | 'minus-square' | 'moon' | 'new-tab' | 'plus-circle-fill' | 'plus-circle' | 'plus-square-fill' | 'plus-square' | 'plus' | 'refresh' | 'reply' | 'screenshare-start' | 'screenshare-stop' | 'search' | 'settings' | 'signin' | 'signout' | 'square' | 'sun' | 'upload' | 'bell' | 'calender-check' | 'calender-plus' | 'calender' | 'clock' | 'rewatch' | 'stopwatch' | 'bot' | 'person-check' | 'person-plus' | 'person' | 'users';
|
|
162
161
|
type grauityFlippedChoiceName = 'vertically' | 'horizontally';
|
|
163
162
|
type grauityRotatedChoiceName = 'clockwise' | 'counterclockwise';
|
|
163
|
+
type grauityIconSizeName = '4' | '8' | '12' | '14' | '16' | '20' | '24' | '28' | '32' | '36' | '40';
|
|
164
164
|
export interface GrauityInitProps {
|
|
165
165
|
/**
|
|
166
166
|
* An element type to render as (string or function).
|
|
@@ -169,35 +169,67 @@ export interface GrauityInitProps {
|
|
|
169
169
|
/**
|
|
170
170
|
* The font size to be applied on this element and so will act as standard for the `ems` of all grauity components.
|
|
171
171
|
* */
|
|
172
|
-
fontSize
|
|
172
|
+
fontSize?: string;
|
|
173
173
|
/**
|
|
174
174
|
* The multiplier is multiplied will all the `ems` of the grauity components.
|
|
175
175
|
* */
|
|
176
176
|
multiplier?: number;
|
|
177
|
+
/**
|
|
178
|
+
* Additional classes to be added to the component
|
|
179
|
+
* */
|
|
180
|
+
className?: string;
|
|
177
181
|
/**
|
|
178
182
|
* The children to be rendered inside this component.
|
|
179
183
|
* */
|
|
180
184
|
children?: React.ReactNode;
|
|
185
|
+
/**
|
|
186
|
+
* Additional styles to be added to the component
|
|
187
|
+
* */
|
|
188
|
+
style?: object;
|
|
181
189
|
}
|
|
182
190
|
/**
|
|
183
191
|
* This component is used to initialize the Grauity library. Ideally, it should be the root component of your application.
|
|
184
192
|
* But nonetheless all the grauity components should be the children of this component.
|
|
185
193
|
* */
|
|
186
|
-
export function GrauityInit({ as, fontSize, multiplier, children }: GrauityInitProps): JSX.Element;
|
|
194
|
+
export function GrauityInit({ as, fontSize, multiplier, className, style, children, }: GrauityInitProps): JSX.Element;
|
|
187
195
|
declare namespace GrauityInit {
|
|
188
196
|
var propTypes: {
|
|
189
197
|
as: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
190
198
|
fontSize: PropTypes.Requireable<string>;
|
|
191
199
|
multiplier: PropTypes.Requireable<number>;
|
|
200
|
+
className: PropTypes.Requireable<string>;
|
|
201
|
+
style: PropTypes.Requireable<object>;
|
|
192
202
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
193
203
|
};
|
|
194
204
|
var defaultProps: {
|
|
195
205
|
as: string;
|
|
196
206
|
fontSize: string;
|
|
197
207
|
multiplier: number;
|
|
208
|
+
className: string;
|
|
209
|
+
style: {};
|
|
198
210
|
children: any;
|
|
199
211
|
};
|
|
200
212
|
}
|
|
213
|
+
type ThemeType = 'light' | 'dark';
|
|
214
|
+
export const ThemeContext: React.Context<any>;
|
|
215
|
+
interface ThemeWrapperProps {
|
|
216
|
+
children: React.ReactNode;
|
|
217
|
+
defaultTheme?: ThemeType;
|
|
218
|
+
usePreferredColorScheme?: boolean;
|
|
219
|
+
}
|
|
220
|
+
export const ThemeWrapper: {
|
|
221
|
+
({ children, defaultTheme, usePreferredColorScheme, }: ThemeWrapperProps): JSX.Element;
|
|
222
|
+
propTypes: {
|
|
223
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
224
|
+
defaultTheme: PropTypes.Requireable<ThemeType>;
|
|
225
|
+
usePreferredColorScheme: PropTypes.Requireable<boolean>;
|
|
226
|
+
};
|
|
227
|
+
defaultProps: {
|
|
228
|
+
defaultTheme: ThemeType;
|
|
229
|
+
usePreferredColorScheme: boolean;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
export const ThemeConsumer: React.Consumer<any>;
|
|
201
233
|
export interface IconProps {
|
|
202
234
|
/**
|
|
203
235
|
* Icon can have the aria hidden attribute
|
|
@@ -222,7 +254,7 @@ export interface IconProps {
|
|
|
222
254
|
/**
|
|
223
255
|
* Color of the icon
|
|
224
256
|
* */
|
|
225
|
-
color?:
|
|
257
|
+
color?: string;
|
|
226
258
|
/**
|
|
227
259
|
* Additional classes to be added to the component
|
|
228
260
|
* */
|
|
@@ -268,6 +300,9 @@ export interface IconProps {
|
|
|
268
300
|
* */
|
|
269
301
|
style?: React.CSSProperties;
|
|
270
302
|
}
|
|
303
|
+
/**
|
|
304
|
+
* An icon is a glyph used to represent something else.
|
|
305
|
+
*/
|
|
271
306
|
export function Icon({ ariaHidden, ariaLabel, as, bordered, circular, color, className, disabled, fitted, flipped, inverted, link, loading, name, rotated, size, style, ...props }: IconProps): JSX.Element;
|
|
272
307
|
declare namespace Icon {
|
|
273
308
|
var propTypes: {
|
|
@@ -276,17 +311,17 @@ declare namespace Icon {
|
|
|
276
311
|
as: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
277
312
|
bordered: PropTypes.Requireable<boolean>;
|
|
278
313
|
circular: PropTypes.Requireable<boolean>;
|
|
279
|
-
color: PropTypes.Requireable<
|
|
314
|
+
color: PropTypes.Requireable<string>;
|
|
280
315
|
className: PropTypes.Requireable<string>;
|
|
281
316
|
disabled: PropTypes.Requireable<boolean>;
|
|
282
317
|
fitted: PropTypes.Requireable<boolean>;
|
|
283
|
-
flipped: PropTypes.Requireable<import("core/miscellaneous-choices").GRAUITY_FLIPPED_CHOICES>;
|
|
318
|
+
flipped: PropTypes.Requireable<import("ui/core/miscellaneous-choices").GRAUITY_FLIPPED_CHOICES>;
|
|
284
319
|
inverted: PropTypes.Requireable<boolean>;
|
|
285
320
|
link: PropTypes.Requireable<boolean>;
|
|
286
321
|
loading: PropTypes.Requireable<boolean>;
|
|
287
322
|
name: PropTypes.Validator<string>;
|
|
288
|
-
rotated: PropTypes.Requireable<import("core/miscellaneous-choices").GRAUITY_ROTATED_CHOICES>;
|
|
289
|
-
size: PropTypes.Requireable<import("core").GRAUITY_SIZE>;
|
|
323
|
+
rotated: PropTypes.Requireable<import("ui/core/miscellaneous-choices").GRAUITY_ROTATED_CHOICES>;
|
|
324
|
+
size: PropTypes.Requireable<import("ui/core").GRAUITY_SIZE>;
|
|
290
325
|
style: PropTypes.Requireable<object>;
|
|
291
326
|
};
|
|
292
327
|
var defaultProps: {
|
|
@@ -308,5 +343,789 @@ declare namespace Icon {
|
|
|
308
343
|
style: any;
|
|
309
344
|
};
|
|
310
345
|
}
|
|
346
|
+
export enum BUTTON_VARIANTS_ENUM {
|
|
347
|
+
PRIMARY = "primary",
|
|
348
|
+
SECONDARY = "secondary",
|
|
349
|
+
TERTIARY = "tertiary",
|
|
350
|
+
SUCCESS = "success",
|
|
351
|
+
DANGER = "danger",
|
|
352
|
+
WARNING = "warning",
|
|
353
|
+
PRIMARY_OUTLINED = "primary-outlined",
|
|
354
|
+
SECONDARY_OUTLINED = "secondary-outlined",
|
|
355
|
+
TERTIARY_OUTLINED = "tertiary-outlined",
|
|
356
|
+
SUCCESS_OUTLINED = "success-outlined",
|
|
357
|
+
DANGER_OUTLINED = "danger-outlined",
|
|
358
|
+
WARNING_OUTLINED = "warning-outlined"
|
|
359
|
+
}
|
|
360
|
+
export enum BUTTON_SIZES_ENUM {
|
|
361
|
+
SMALL = "small",
|
|
362
|
+
MEDIUM = "medium",
|
|
363
|
+
LARGE = "large",
|
|
364
|
+
EXTRA_LARGE = "extra-large"
|
|
365
|
+
}
|
|
366
|
+
export enum BUTTON_ICON_POSITIONS_ENUM {
|
|
367
|
+
LEFT = "left",
|
|
368
|
+
RIGHT = "right"
|
|
369
|
+
}
|
|
370
|
+
export const BUTTON_VARIANTS: BUTTON_VARIANTS_ENUM[];
|
|
371
|
+
type ButtonVariants = 'primary' | 'secondary' | 'tertiary' | 'success' | 'danger' | 'warning' | 'primary-outlined' | 'secondary-outlined' | 'tertiary-outlined' | 'success-outlined' | 'danger-outlined' | 'warning-outlined';
|
|
372
|
+
type ButtonSizes = 'small' | 'medium' | 'large' | 'extra-large';
|
|
373
|
+
type ButtonIconPositions = 'left' | 'right';
|
|
374
|
+
export interface ButtonProps {
|
|
375
|
+
/**
|
|
376
|
+
* Variant of the button
|
|
377
|
+
*
|
|
378
|
+
* Available choices: `primary`, `secondary`, `tertiary`, `success`, `danger`, `warning`, `primary-outlined`, `secondary-outlined`, `tertiary-outlined`, `success-outlined`, `danger-outlined`, `warning-outlined`
|
|
379
|
+
*
|
|
380
|
+
* Default: `primary`
|
|
381
|
+
* */
|
|
382
|
+
variant?: ButtonVariants;
|
|
383
|
+
/**
|
|
384
|
+
* Size of the button
|
|
385
|
+
* Available choices: `small`, `medium`, `large`
|
|
386
|
+
*
|
|
387
|
+
* Default: `medium`
|
|
388
|
+
* */
|
|
389
|
+
size?: ButtonSizes;
|
|
390
|
+
/**
|
|
391
|
+
* Icon to be displayed in the button.
|
|
392
|
+
* */
|
|
393
|
+
icon?: grauityIconName;
|
|
394
|
+
/**
|
|
395
|
+
* Size of the icon
|
|
396
|
+
* */
|
|
397
|
+
iconSize?: grauityIconSizeName;
|
|
398
|
+
/**
|
|
399
|
+
* Position of the icon
|
|
400
|
+
*
|
|
401
|
+
* Available choices: `left`, `right`
|
|
402
|
+
*
|
|
403
|
+
* Default: `left`
|
|
404
|
+
* */
|
|
405
|
+
iconPosition?: ButtonIconPositions;
|
|
406
|
+
/**
|
|
407
|
+
* Additional classes to be added to the component.
|
|
408
|
+
* */
|
|
409
|
+
className?: string;
|
|
410
|
+
/**
|
|
411
|
+
* Show that the button is inactive
|
|
412
|
+
*
|
|
413
|
+
* Default: `false`
|
|
414
|
+
* */
|
|
415
|
+
disabled?: boolean;
|
|
416
|
+
/**
|
|
417
|
+
* Show that the button is loading
|
|
418
|
+
*
|
|
419
|
+
* Default: `false`
|
|
420
|
+
* */
|
|
421
|
+
loading?: boolean;
|
|
422
|
+
/**
|
|
423
|
+
* Function to be called on click
|
|
424
|
+
*
|
|
425
|
+
* If the button is disabled, the function will not be called
|
|
426
|
+
* */
|
|
427
|
+
onClick?: (e?: any) => void;
|
|
428
|
+
/**
|
|
429
|
+
* Additional styles to be used over the element
|
|
430
|
+
*
|
|
431
|
+
* Default: `{}`
|
|
432
|
+
* */
|
|
433
|
+
style?: React.CSSProperties;
|
|
434
|
+
/**
|
|
435
|
+
* Make the button full width
|
|
436
|
+
*
|
|
437
|
+
* Default: `false`
|
|
438
|
+
* */
|
|
439
|
+
fullWidth?: boolean;
|
|
440
|
+
/**
|
|
441
|
+
* Children of the component
|
|
442
|
+
* */
|
|
443
|
+
children?: React.ReactNode;
|
|
444
|
+
/**
|
|
445
|
+
* Type of the button
|
|
446
|
+
*
|
|
447
|
+
* Default: `button`
|
|
448
|
+
* */
|
|
449
|
+
type?: 'button' | 'submit' | 'reset';
|
|
450
|
+
/**
|
|
451
|
+
* Aria label for the button
|
|
452
|
+
* */
|
|
453
|
+
ariaLabel?: string;
|
|
454
|
+
/**
|
|
455
|
+
* Tooltip to be displayed on hover, uses the `title` attribute
|
|
456
|
+
* */
|
|
457
|
+
tooltip?: string;
|
|
458
|
+
/**
|
|
459
|
+
* Tab index of the button
|
|
460
|
+
* */
|
|
461
|
+
tabIndex?: number;
|
|
462
|
+
/**
|
|
463
|
+
* Function to be called on mouse enter
|
|
464
|
+
* */
|
|
465
|
+
onMouseEnter?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
466
|
+
/**
|
|
467
|
+
* Function to be called on mouse leave
|
|
468
|
+
* */
|
|
469
|
+
onMouseLeave?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
470
|
+
/**
|
|
471
|
+
* Additional props to be passed to the button element
|
|
472
|
+
* */
|
|
473
|
+
buttonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
474
|
+
}
|
|
475
|
+
interface ButtonGroupProps {
|
|
476
|
+
children: React.ReactNode;
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* A Button is a component that is used to trigger an action.
|
|
480
|
+
* It can contain text and an icon, or only text.
|
|
481
|
+
*
|
|
482
|
+
* To create an icon button, checkout the IconButton component.
|
|
483
|
+
*/
|
|
484
|
+
export const NSButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
485
|
+
export const NSButtonGroup: {
|
|
486
|
+
({ children }: ButtonGroupProps): JSX.Element;
|
|
487
|
+
defaultProps: ButtonGroupProps;
|
|
488
|
+
propTypes: {
|
|
489
|
+
children: PropTypes.Requireable<any>;
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
type TypographyAsType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div' | 'label' | 'caption' | 'code' | 'auto';
|
|
493
|
+
type TypographyVariantType = 'heading-semibold-h40' | 'heading-semibold-h36' | 'heading-semibold-h28' | 'heading-semibold-h24' | 'heading-semibold-h20' | 'heading-semibold-h16' | 'paragraph-semibold-body1' | 'paragraph-semibold-body2' | 'paragraph-semibold-body3' | 'paragraph-semibold-body4' | 'paragraph-semibold-label' | 'paragraph-semibold-label2' | 'paragraph-semibold-callout' | 'paragraph-medium-body1' | 'paragraph-medium-body2' | 'paragraph-medium-body3' | 'paragraph-medium-body4' | 'paragraph-medium-label' | 'paragraph-medium-label2' | 'paragraph-medium-callout' | 'paragraph-medium-code' | 'heading-semibold-overline1' | 'heading-semibold-overline2' | 'action-semibold-primary' | 'action-semibold-link' | 'blog-semibold-title' | 'blog-medium-regular' | 'blog-medium-bold' | 'blog-medium-italic';
|
|
494
|
+
export interface TypographyProps {
|
|
495
|
+
/**
|
|
496
|
+
* Variant of the Typography element
|
|
497
|
+
*
|
|
498
|
+
* Available choices:
|
|
499
|
+
*
|
|
500
|
+
* Default: `paragraph-medium-body1`
|
|
501
|
+
* */
|
|
502
|
+
variant?: TypographyVariantType;
|
|
503
|
+
/**
|
|
504
|
+
* Color of the Typography element
|
|
505
|
+
* */
|
|
506
|
+
color?: string;
|
|
507
|
+
/**
|
|
508
|
+
* Determines the type of the element rendered
|
|
509
|
+
* Available choices:
|
|
510
|
+
*
|
|
511
|
+
* Default: `p`
|
|
512
|
+
* */
|
|
513
|
+
as?: TypographyAsType;
|
|
514
|
+
/**
|
|
515
|
+
* Text alignment of the Typography element
|
|
516
|
+
* */
|
|
517
|
+
textAlign?: string;
|
|
518
|
+
/**
|
|
519
|
+
* Text transformation of the Typography element
|
|
520
|
+
* */
|
|
521
|
+
textTransform?: string;
|
|
522
|
+
/**
|
|
523
|
+
* Font size of the Typography element
|
|
524
|
+
* */
|
|
525
|
+
fontSize?: string;
|
|
526
|
+
/**
|
|
527
|
+
* Children of the component
|
|
528
|
+
* */
|
|
529
|
+
children: React.ReactNode;
|
|
530
|
+
}
|
|
531
|
+
export const TYPOGRAPHY_VARIANTS_ENUM: {
|
|
532
|
+
[x: string]: TypographyVariantType;
|
|
533
|
+
};
|
|
534
|
+
export const TYPOGRAPHY_VARIANTS: readonly TypographyVariantType[];
|
|
535
|
+
export const TYPOGRAPHY_AS_ENUM: {
|
|
536
|
+
[x: string]: TypographyAsType;
|
|
537
|
+
};
|
|
538
|
+
export const TYPOGRAPHY_AS_LIST: readonly TypographyAsType[];
|
|
539
|
+
/**
|
|
540
|
+
* A typography component can be used to display text in different styles.
|
|
541
|
+
*
|
|
542
|
+
* Use the prop `variant` to select the style of the text.
|
|
543
|
+
*
|
|
544
|
+
* By default, prop `as` is set to `'auto'`, and the component will automatically
|
|
545
|
+
* select the HTML tag based on the prop `variant`.
|
|
546
|
+
|
|
547
|
+
* If you want the text to be rendered as a different HTML tag, provide your desired
|
|
548
|
+
* value to prop `as`, such as `'h1'`, `'h2'`, `'p'`, etc.
|
|
549
|
+
*/
|
|
550
|
+
export const NSTypography: {
|
|
551
|
+
({ variant, as, color, textAlign, textTransform, fontSize, children, }: TypographyProps): JSX.Element;
|
|
552
|
+
propTypes: {
|
|
553
|
+
variant: PropTypes.Requireable<import("ui/elements/Typography/types").TypographyVariantType>;
|
|
554
|
+
as: PropTypes.Requireable<string>;
|
|
555
|
+
color: PropTypes.Requireable<string>;
|
|
556
|
+
textAlign: PropTypes.Requireable<string>;
|
|
557
|
+
textTransform: PropTypes.Requireable<string>;
|
|
558
|
+
fontSize: PropTypes.Requireable<string>;
|
|
559
|
+
children: PropTypes.Requireable<any>;
|
|
560
|
+
};
|
|
561
|
+
defaultProps: {
|
|
562
|
+
variant: string;
|
|
563
|
+
as: string;
|
|
564
|
+
color: string;
|
|
565
|
+
textAlign: any;
|
|
566
|
+
textTransform: any;
|
|
567
|
+
fontSize: any;
|
|
568
|
+
children: string;
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
interface TableColumn {
|
|
572
|
+
/**
|
|
573
|
+
* Column key
|
|
574
|
+
* */
|
|
575
|
+
key: string;
|
|
576
|
+
/**
|
|
577
|
+
* Column display name
|
|
578
|
+
* */
|
|
579
|
+
display: string;
|
|
580
|
+
/**
|
|
581
|
+
* Column width
|
|
582
|
+
* */
|
|
583
|
+
width?: string;
|
|
584
|
+
/**
|
|
585
|
+
* Column alignment, default is center
|
|
586
|
+
* */
|
|
587
|
+
align?: 'left' | 'right' | 'center';
|
|
588
|
+
/**
|
|
589
|
+
* Row span, default is 1
|
|
590
|
+
* */
|
|
591
|
+
rowSpan?: number;
|
|
592
|
+
/**
|
|
593
|
+
* Col span, default is 1
|
|
594
|
+
* */
|
|
595
|
+
colSpan?: number;
|
|
596
|
+
}
|
|
597
|
+
interface TableCellInterface {
|
|
598
|
+
/**
|
|
599
|
+
* Cell display, can be a string or a React element
|
|
600
|
+
* */
|
|
601
|
+
display?: ReactNode;
|
|
602
|
+
/**
|
|
603
|
+
* Custom cell render function. If provided, display will be ignored
|
|
604
|
+
* */
|
|
605
|
+
render?: (args: TableCellInterface) => ReactNode;
|
|
606
|
+
/**
|
|
607
|
+
* Row vertical alignment, default is top
|
|
608
|
+
* */
|
|
609
|
+
vAlign?: 'top' | 'bottom' | 'middle';
|
|
610
|
+
/**
|
|
611
|
+
* Row span, default is 1
|
|
612
|
+
* */
|
|
613
|
+
rowSpan?: number;
|
|
614
|
+
/**
|
|
615
|
+
* Col span, default is 1
|
|
616
|
+
* */
|
|
617
|
+
colSpan?: number;
|
|
618
|
+
/**
|
|
619
|
+
* Row actions (rendered as buttons by default)
|
|
620
|
+
* */
|
|
621
|
+
actions?: TableCellAction[];
|
|
622
|
+
/**
|
|
623
|
+
* Row alignment
|
|
624
|
+
* */
|
|
625
|
+
align?: 'left' | 'right' | 'center';
|
|
626
|
+
}
|
|
627
|
+
interface TableCellAction {
|
|
628
|
+
/**
|
|
629
|
+
* Action key
|
|
630
|
+
* */
|
|
631
|
+
key: string;
|
|
632
|
+
/**
|
|
633
|
+
* Action display, can be a string or a React element
|
|
634
|
+
* */
|
|
635
|
+
display: any;
|
|
636
|
+
/**
|
|
637
|
+
* Action icon
|
|
638
|
+
* */
|
|
639
|
+
icon?: grauityIconName;
|
|
640
|
+
/**
|
|
641
|
+
* Action type, can be a button or a link, default is button
|
|
642
|
+
* */
|
|
643
|
+
as?: 'button' | 'link';
|
|
644
|
+
/**
|
|
645
|
+
* Action href, only used if the action type is link
|
|
646
|
+
* */
|
|
647
|
+
href?: string;
|
|
648
|
+
/**
|
|
649
|
+
* Action click handler
|
|
650
|
+
* */
|
|
651
|
+
handleClick?: (data: any) => void;
|
|
652
|
+
}
|
|
653
|
+
interface TableRow {
|
|
654
|
+
/**
|
|
655
|
+
* Table data, in JS Object format, with table column keys as keys of object
|
|
656
|
+
*/
|
|
657
|
+
[columnKey: string]: TableCellInterface;
|
|
658
|
+
}
|
|
659
|
+
export interface TableProps {
|
|
660
|
+
/**
|
|
661
|
+
* Table columns, see type `TableColumn`
|
|
662
|
+
* */
|
|
663
|
+
columns?: TableColumn[];
|
|
664
|
+
/**
|
|
665
|
+
* Table rows, see type `TableRow`
|
|
666
|
+
* */
|
|
667
|
+
rows?: TableRow[];
|
|
668
|
+
/**
|
|
669
|
+
* Determines if the table is condensed (Reduced padding).
|
|
670
|
+
* Available choices: true, false
|
|
671
|
+
*
|
|
672
|
+
* Default: `true`
|
|
673
|
+
* */
|
|
674
|
+
condensed?: boolean;
|
|
675
|
+
/**
|
|
676
|
+
* Are alternate rows striped (shaded).
|
|
677
|
+
* Available choices: true, false
|
|
678
|
+
*
|
|
679
|
+
* Default: `false`
|
|
680
|
+
* */
|
|
681
|
+
striped?: boolean;
|
|
682
|
+
/**
|
|
683
|
+
* Determines if the table has a border around it.
|
|
684
|
+
* Available choices: true, false
|
|
685
|
+
*
|
|
686
|
+
* Default: `true`
|
|
687
|
+
* */
|
|
688
|
+
borderAround?: boolean;
|
|
689
|
+
/**
|
|
690
|
+
* Determines if the table has a border between rows.
|
|
691
|
+
* Available choices: true, false
|
|
692
|
+
*
|
|
693
|
+
* Has more precedence than `borderHorizontal` and `borderVertical`.
|
|
694
|
+
*
|
|
695
|
+
* Default: `true`
|
|
696
|
+
* */
|
|
697
|
+
borderWithin?: boolean;
|
|
698
|
+
/**
|
|
699
|
+
* Determines if the table has a border between columns.
|
|
700
|
+
*
|
|
701
|
+
* Default: `true`
|
|
702
|
+
* */
|
|
703
|
+
borderHorizontal?: boolean;
|
|
704
|
+
/**
|
|
705
|
+
* Determines if the table has a border between rows.
|
|
706
|
+
*
|
|
707
|
+
* Default: `true`
|
|
708
|
+
* */
|
|
709
|
+
borderVertical?: boolean;
|
|
710
|
+
/**
|
|
711
|
+
* Additional classes to be added to the component.
|
|
712
|
+
* */
|
|
713
|
+
className?: string;
|
|
714
|
+
/**
|
|
715
|
+
* Show that the table is loading
|
|
716
|
+
*
|
|
717
|
+
* Default: `false`
|
|
718
|
+
* */
|
|
719
|
+
loading?: boolean;
|
|
720
|
+
/**
|
|
721
|
+
* Additional styles to be used over the element
|
|
722
|
+
*
|
|
723
|
+
* Default: `{}`
|
|
724
|
+
* */
|
|
725
|
+
style?: React.CSSProperties;
|
|
726
|
+
/**
|
|
727
|
+
* Capitalize the header
|
|
728
|
+
*
|
|
729
|
+
* Default: `true`
|
|
730
|
+
* */
|
|
731
|
+
capitalizeHeaders?: boolean;
|
|
732
|
+
/**
|
|
733
|
+
* Determines if table headers should be highlighted
|
|
734
|
+
*
|
|
735
|
+
* Default: `true`
|
|
736
|
+
* */
|
|
737
|
+
highlightHeaders?: boolean;
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* A table is a component that is used to display data in a tabular format.
|
|
741
|
+
* It is composed of rows and columns.
|
|
742
|
+
*/
|
|
743
|
+
export const NSTable: {
|
|
744
|
+
({ rows, columns, ...props }: TableProps): JSX.Element;
|
|
745
|
+
propTypes: {
|
|
746
|
+
rows: PropTypes.Requireable<any[]>;
|
|
747
|
+
columns: PropTypes.Requireable<any[]>;
|
|
748
|
+
condensed: PropTypes.Requireable<boolean>;
|
|
749
|
+
striped: PropTypes.Requireable<boolean>;
|
|
750
|
+
borderAround: PropTypes.Requireable<boolean>;
|
|
751
|
+
borderWithin: PropTypes.Requireable<boolean>;
|
|
752
|
+
borderHorizontal: PropTypes.Requireable<boolean>;
|
|
753
|
+
borderVertical: PropTypes.Requireable<boolean>;
|
|
754
|
+
className: PropTypes.Requireable<string>;
|
|
755
|
+
loading: PropTypes.Requireable<boolean>;
|
|
756
|
+
style: PropTypes.Requireable<object>;
|
|
757
|
+
capitalizeHeaders: PropTypes.Requireable<boolean>;
|
|
758
|
+
highlightHeaders: PropTypes.Requireable<boolean>;
|
|
759
|
+
};
|
|
760
|
+
defaultProps: {
|
|
761
|
+
rows: any[];
|
|
762
|
+
columns: any[];
|
|
763
|
+
condensed: boolean;
|
|
764
|
+
striped: boolean;
|
|
765
|
+
borderAround: boolean;
|
|
766
|
+
borderWithin: boolean;
|
|
767
|
+
borderHorizontal: boolean;
|
|
768
|
+
borderVertical: boolean;
|
|
769
|
+
className: string;
|
|
770
|
+
loading: boolean;
|
|
771
|
+
style: {};
|
|
772
|
+
capitalizeHeaders: boolean;
|
|
773
|
+
highlightHeaders: boolean;
|
|
774
|
+
};
|
|
775
|
+
NSTable: import("styled-components").StyledComponent<string, any, import("ui/elements/Table/types").TableComponentProps, never>;
|
|
776
|
+
TableBody: import("styled-components").StyledComponent<string, any, import("ui/elements/Table/types").TableBodyComponentProps, never>;
|
|
777
|
+
TableDataCell: import("styled-components").StyledComponent<string, any, import("ui/elements/Table/types").TableDataCellComponentProps, never>;
|
|
778
|
+
TableHead: import("styled-components").StyledComponent<string, any, import("ui/elements/Table/types").TableHeadComponentProps, never>;
|
|
779
|
+
TableHeadingCell: import("styled-components").StyledComponent<string, any, import("ui/elements/Table/types").TableHeadingCellComponentProps, never>;
|
|
780
|
+
TableRow: import("styled-components").StyledComponent<string, any, import("ui/elements/Table/types").TableRowComponentProps, never>;
|
|
781
|
+
};
|
|
782
|
+
type ModalContentType = React.ReactNode;
|
|
783
|
+
interface ModalStep {
|
|
784
|
+
/**
|
|
785
|
+
* Banner for the modal, can be a valid React node
|
|
786
|
+
* */
|
|
787
|
+
banner?: ModalContentType;
|
|
788
|
+
/**
|
|
789
|
+
* Title for the modal, can be a valid React node
|
|
790
|
+
* */
|
|
791
|
+
title: ModalContentType;
|
|
792
|
+
/**
|
|
793
|
+
* Description for the modal, can be a string
|
|
794
|
+
* */
|
|
795
|
+
description?: string | null;
|
|
796
|
+
/**
|
|
797
|
+
* Body for the modal, can be a valid React node
|
|
798
|
+
* */
|
|
799
|
+
body?: ModalContentType;
|
|
800
|
+
/**
|
|
801
|
+
* Text for the next button
|
|
802
|
+
* */
|
|
803
|
+
nextButtonText?: string;
|
|
804
|
+
/**
|
|
805
|
+
* Determines if the back button should be shown
|
|
806
|
+
* Available choices: `true`, `false`
|
|
807
|
+
*
|
|
808
|
+
* Default: `false`
|
|
809
|
+
* */
|
|
810
|
+
showBackButton?: boolean;
|
|
811
|
+
/**
|
|
812
|
+
* Variant for the button
|
|
813
|
+
* */
|
|
814
|
+
buttonVariant?: ButtonVariants | null;
|
|
815
|
+
}
|
|
816
|
+
export interface ModalProps {
|
|
817
|
+
/**
|
|
818
|
+
* Banner for the modal, can be a valid React node
|
|
819
|
+
* */
|
|
820
|
+
banner?: ModalContentType;
|
|
821
|
+
/**
|
|
822
|
+
* Title for the modal, can be a valid React node
|
|
823
|
+
* */
|
|
824
|
+
title?: ModalContentType;
|
|
825
|
+
/**
|
|
826
|
+
* Description for the modal, can be a string
|
|
827
|
+
* */
|
|
828
|
+
description?: string;
|
|
829
|
+
/**
|
|
830
|
+
* Body for the modal, can be a valid React node
|
|
831
|
+
* */
|
|
832
|
+
body?: ModalContentType;
|
|
833
|
+
/**
|
|
834
|
+
* Action for the modal, can be a valid React node
|
|
835
|
+
* */
|
|
836
|
+
action?: ModalContentType;
|
|
837
|
+
/**
|
|
838
|
+
* Determines if the modal should hide on click away
|
|
839
|
+
* Available choices: `true`, `false`
|
|
840
|
+
*
|
|
841
|
+
* Default: `false`
|
|
842
|
+
* */
|
|
843
|
+
hideOnClickAway: boolean;
|
|
844
|
+
/**
|
|
845
|
+
* Determines if the modal should blur the background
|
|
846
|
+
* Available choices: `true`, `false`
|
|
847
|
+
*
|
|
848
|
+
* Default: `false`
|
|
849
|
+
* */
|
|
850
|
+
blurBackground?: boolean;
|
|
851
|
+
/**
|
|
852
|
+
* Callback function to be called when the modal is hidden
|
|
853
|
+
* */
|
|
854
|
+
onHide?: () => void;
|
|
855
|
+
/**
|
|
856
|
+
* Determines if the modal should be full width on mobile
|
|
857
|
+
* Available choices: `true`, `false`
|
|
858
|
+
*
|
|
859
|
+
* Default: `false`
|
|
860
|
+
* */
|
|
861
|
+
mobileBottomFullWidth?: boolean;
|
|
862
|
+
/**
|
|
863
|
+
* Padding for the modal
|
|
864
|
+
* */
|
|
865
|
+
modalPadding?: string;
|
|
866
|
+
/**
|
|
867
|
+
* Margin for the modal body
|
|
868
|
+
* */
|
|
869
|
+
modalBodyMargin?: string;
|
|
870
|
+
/**
|
|
871
|
+
* Width of the modal
|
|
872
|
+
* */
|
|
873
|
+
width?: string;
|
|
874
|
+
/**
|
|
875
|
+
* Height of the modal
|
|
876
|
+
* */
|
|
877
|
+
height?: string;
|
|
878
|
+
/**
|
|
879
|
+
* Minimum height of the modal
|
|
880
|
+
* */
|
|
881
|
+
minHeight?: string;
|
|
882
|
+
/**
|
|
883
|
+
* Determines if the close button should be shown
|
|
884
|
+
*
|
|
885
|
+
* Available choices: `true`, `false`
|
|
886
|
+
*
|
|
887
|
+
* Default: `false`
|
|
888
|
+
* */
|
|
889
|
+
showCloseButton?: boolean;
|
|
890
|
+
}
|
|
891
|
+
interface MultiStepModalProps {
|
|
892
|
+
/**
|
|
893
|
+
* Modal steps
|
|
894
|
+
* */
|
|
895
|
+
modalSteps: ModalStep[];
|
|
896
|
+
/**
|
|
897
|
+
* Determines if the modal should show pagination if there are multiple modal steps
|
|
898
|
+
* Available choices: true, false
|
|
899
|
+
*
|
|
900
|
+
* Default: `true`
|
|
901
|
+
* */
|
|
902
|
+
showModalStepsPagination?: boolean;
|
|
903
|
+
/**
|
|
904
|
+
* Determines if the modal should hide on click away
|
|
905
|
+
* Available choices: true, false
|
|
906
|
+
*
|
|
907
|
+
* Default: `false`
|
|
908
|
+
* */
|
|
909
|
+
hideOnClickAway?: boolean;
|
|
910
|
+
/**
|
|
911
|
+
* Determines if the modal should blur the background
|
|
912
|
+
* Available choices: true, false
|
|
913
|
+
*
|
|
914
|
+
* Default: `false`
|
|
915
|
+
* */
|
|
916
|
+
blurBackground?: boolean;
|
|
917
|
+
/**
|
|
918
|
+
* Callback function to be called when the modal is hidden
|
|
919
|
+
* */
|
|
920
|
+
onHide?: () => void;
|
|
921
|
+
/**
|
|
922
|
+
* Callback function to be called when the final step is reached
|
|
923
|
+
* */
|
|
924
|
+
onFinalStep?: () => void;
|
|
925
|
+
/**
|
|
926
|
+
* Determines if the modal should be full width on mobile
|
|
927
|
+
* Available choices: true, false
|
|
928
|
+
*
|
|
929
|
+
* Default: `false`
|
|
930
|
+
* */
|
|
931
|
+
mobileBottomFullWidth?: boolean;
|
|
932
|
+
/**
|
|
933
|
+
* Callback function to be called when the step changes
|
|
934
|
+
* */
|
|
935
|
+
onStepChange?: () => void;
|
|
936
|
+
/**
|
|
937
|
+
* Determines if the modal buttons should be shown
|
|
938
|
+
* Available choices: true, false
|
|
939
|
+
*
|
|
940
|
+
* Default: `true`
|
|
941
|
+
* */
|
|
942
|
+
showModalButtons?: boolean;
|
|
943
|
+
/**
|
|
944
|
+
* Determines if the modal header should be shown
|
|
945
|
+
* Available choices: true, false
|
|
946
|
+
*
|
|
947
|
+
* Default: `true`
|
|
948
|
+
* */
|
|
949
|
+
showHeader?: boolean;
|
|
950
|
+
/**
|
|
951
|
+
* Padding for the modal
|
|
952
|
+
* */
|
|
953
|
+
modalPadding?: string;
|
|
954
|
+
/**
|
|
955
|
+
* Margin for the modal body
|
|
956
|
+
* */
|
|
957
|
+
modalBodyMargin?: string;
|
|
958
|
+
/**
|
|
959
|
+
* Width of the modal
|
|
960
|
+
* */
|
|
961
|
+
width?: string;
|
|
962
|
+
/**
|
|
963
|
+
* Height of the modal
|
|
964
|
+
* */
|
|
965
|
+
height?: string;
|
|
966
|
+
/**
|
|
967
|
+
* Minimum height of the modal
|
|
968
|
+
* */
|
|
969
|
+
minHeight?: string;
|
|
970
|
+
/**
|
|
971
|
+
* Determines if the close button should be shown
|
|
972
|
+
*
|
|
973
|
+
* Available choices: true, false
|
|
974
|
+
*
|
|
975
|
+
* NOTE: If Modal has a banner, the close button will be hidden by default
|
|
976
|
+
*
|
|
977
|
+
* Default: `false`
|
|
978
|
+
* */
|
|
979
|
+
showCloseButton?: boolean;
|
|
980
|
+
}
|
|
981
|
+
export interface ConfirmationDialogProps {
|
|
982
|
+
/**
|
|
983
|
+
* Text for the cancel button
|
|
984
|
+
* */
|
|
985
|
+
cancelText?: string;
|
|
986
|
+
/**
|
|
987
|
+
* Text for the confirm button
|
|
988
|
+
* */
|
|
989
|
+
confirmText?: string;
|
|
990
|
+
/**
|
|
991
|
+
* Callback function to be called when the cancel button is clicked
|
|
992
|
+
* */
|
|
993
|
+
onCancel: () => void;
|
|
994
|
+
/**
|
|
995
|
+
* Callback function to be called when the confirm button is clicked
|
|
996
|
+
* */
|
|
997
|
+
onConfirm: () => void;
|
|
998
|
+
/**
|
|
999
|
+
* Banner for the modal, can be a valid React node
|
|
1000
|
+
* */
|
|
1001
|
+
banner?: ModalContentType;
|
|
1002
|
+
/**
|
|
1003
|
+
* Title for the modal, can be a valid React node
|
|
1004
|
+
* */
|
|
1005
|
+
title?: ModalContentType;
|
|
1006
|
+
/**
|
|
1007
|
+
* Description for the modal, can be a string
|
|
1008
|
+
* */
|
|
1009
|
+
description?: string;
|
|
1010
|
+
/**
|
|
1011
|
+
* Body for the modal, can be a valid React node
|
|
1012
|
+
* */
|
|
1013
|
+
body?: ModalContentType;
|
|
1014
|
+
/**
|
|
1015
|
+
* Variant for the cancel button
|
|
1016
|
+
* */
|
|
1017
|
+
cancelButtonVariant?: ButtonVariants;
|
|
1018
|
+
/**
|
|
1019
|
+
* Variant for the confirm button
|
|
1020
|
+
* */
|
|
1021
|
+
confirmButtonVariant?: ButtonVariants;
|
|
1022
|
+
/**
|
|
1023
|
+
* Determines if the close button should be shown
|
|
1024
|
+
* Available choices: `true`, `false`
|
|
1025
|
+
*
|
|
1026
|
+
* Default: `false`
|
|
1027
|
+
* */
|
|
1028
|
+
showCloseButton?: boolean;
|
|
1029
|
+
/**
|
|
1030
|
+
* Determines if the modal should hide on click away
|
|
1031
|
+
* Available choices: `true`, `false`
|
|
1032
|
+
*
|
|
1033
|
+
* Default: `false`
|
|
1034
|
+
* */
|
|
1035
|
+
hideOnClickAway?: boolean;
|
|
1036
|
+
/**
|
|
1037
|
+
* Determines if the modal should blur the background
|
|
1038
|
+
* Available choices: `true`, `false`
|
|
1039
|
+
*
|
|
1040
|
+
* Default: `false`
|
|
1041
|
+
* */
|
|
1042
|
+
blurBackground?: boolean;
|
|
1043
|
+
/**
|
|
1044
|
+
* Determines if the modal should be at bottom with full width on mobile
|
|
1045
|
+
* Available choices: `true`, `false`
|
|
1046
|
+
*
|
|
1047
|
+
* Default: `false`
|
|
1048
|
+
* */
|
|
1049
|
+
mobileBottomFullWidth?: boolean;
|
|
1050
|
+
}
|
|
1051
|
+
/**
|
|
1052
|
+
* A confirmation dialog is a dialog box that asks the user to confirm an action.
|
|
1053
|
+
*/
|
|
1054
|
+
export const NSModal: {
|
|
1055
|
+
({ cancelText, confirmText, onCancel, onConfirm, banner, title, description, body, cancelButtonVariant, confirmButtonVariant, showCloseButton, hideOnClickAway, blurBackground, mobileBottomFullWidth, }: ConfirmationDialogProps): JSX.Element;
|
|
1056
|
+
propTypes: {
|
|
1057
|
+
cancelText: PropTypes.Requireable<string>;
|
|
1058
|
+
confirmText: PropTypes.Requireable<string>;
|
|
1059
|
+
onCancel: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1060
|
+
onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1061
|
+
banner: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
1062
|
+
title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
1063
|
+
description: PropTypes.Requireable<string>;
|
|
1064
|
+
body: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
1065
|
+
cancelButtonVariant: PropTypes.Requireable<string>;
|
|
1066
|
+
confirmButtonVariant: PropTypes.Requireable<string>;
|
|
1067
|
+
showCloseButton: PropTypes.Requireable<boolean>;
|
|
1068
|
+
hideOnClickAway: PropTypes.Requireable<boolean>;
|
|
1069
|
+
blurBackground: PropTypes.Requireable<boolean>;
|
|
1070
|
+
mobileBottomFullWidth: PropTypes.Requireable<boolean>;
|
|
1071
|
+
};
|
|
1072
|
+
defaultProps: {
|
|
1073
|
+
cancelText: string;
|
|
1074
|
+
confirmText: string;
|
|
1075
|
+
banner: any;
|
|
1076
|
+
title: string;
|
|
1077
|
+
description: string;
|
|
1078
|
+
body: any;
|
|
1079
|
+
onCancel: () => void;
|
|
1080
|
+
onConfirm: () => void;
|
|
1081
|
+
cancelButtonVariant: string;
|
|
1082
|
+
confirmButtonVariant: string;
|
|
1083
|
+
showCloseButton: boolean;
|
|
1084
|
+
hideOnClickAway: boolean;
|
|
1085
|
+
blurBackground: boolean;
|
|
1086
|
+
mobileBottomFullWidth: boolean;
|
|
1087
|
+
};
|
|
1088
|
+
};
|
|
1089
|
+
/**
|
|
1090
|
+
* A multi-step modal is a modal that has multiple steps.
|
|
1091
|
+
*/
|
|
1092
|
+
export const NSMultiStepModal: {
|
|
1093
|
+
({ modalSteps, showModalStepsPagination, hideOnClickAway, blurBackground, onHide, onFinalStep, mobileBottomFullWidth, onStepChange, modalPadding, modalBodyMargin, width, height, minHeight, showCloseButton, }: MultiStepModalProps): JSX.Element;
|
|
1094
|
+
propTypes: {
|
|
1095
|
+
modalSteps: PropTypes.Requireable<any[]>;
|
|
1096
|
+
showModalStepsPagination: PropTypes.Requireable<boolean>;
|
|
1097
|
+
hideOnClickAway: PropTypes.Requireable<boolean>;
|
|
1098
|
+
blurBackground: PropTypes.Requireable<boolean>;
|
|
1099
|
+
onHide: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1100
|
+
onFinalStep: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1101
|
+
mobileBottomFullWidth: PropTypes.Requireable<boolean>;
|
|
1102
|
+
onStepChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1103
|
+
modalPadding: PropTypes.Requireable<string>;
|
|
1104
|
+
modalBodyMargin: PropTypes.Requireable<string>;
|
|
1105
|
+
width: PropTypes.Requireable<string>;
|
|
1106
|
+
height: PropTypes.Requireable<string>;
|
|
1107
|
+
minHeight: PropTypes.Requireable<string>;
|
|
1108
|
+
showCloseButton: PropTypes.Requireable<boolean>;
|
|
1109
|
+
};
|
|
1110
|
+
defaultProps: {
|
|
1111
|
+
modalSteps: any[];
|
|
1112
|
+
showModalStepsPagination: boolean;
|
|
1113
|
+
hideOnClickAway: boolean;
|
|
1114
|
+
blurBackground: boolean;
|
|
1115
|
+
onHide: () => void;
|
|
1116
|
+
onFinalStep: () => void;
|
|
1117
|
+
mobileBottomFullWidth: boolean;
|
|
1118
|
+
onStepChange: () => void;
|
|
1119
|
+
modalPadding: string;
|
|
1120
|
+
modalBodyMargin: string;
|
|
1121
|
+
width: any;
|
|
1122
|
+
height: any;
|
|
1123
|
+
minHeight: any;
|
|
1124
|
+
showCloseButton: boolean;
|
|
1125
|
+
};
|
|
1126
|
+
PaginatedActions: import("styled-components").StyledComponent<string, any, {}, never>;
|
|
1127
|
+
Pagination: import("styled-components").StyledComponent<string, any, {}, never>;
|
|
1128
|
+
PaginationItem: import("styled-components").StyledComponent<string, any, import("ui/elements/Modal/types").ModalPaginationItemProps, never>;
|
|
1129
|
+
};
|
|
311
1130
|
|
|
312
1131
|
//# sourceMappingURL=index.d.ts.map
|