@indico-data/design-system 1.0.57 → 2.0.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/.eslintrc.js +1 -1
- package/.harness/pipeline.yaml +14 -0
- package/.storybook/main.ts +6 -3
- package/.storybook/manager-head.html +5 -0
- package/.storybook/manager.ts +6 -0
- package/.storybook/preview.ts +31 -9
- package/.yarnrc.yml +2 -0
- package/README.md +8 -11
- package/lib/components/button/Button.d.ts +2 -0
- package/lib/components/button/Button.stories.d.ts +22 -0
- package/lib/components/button/enums.d.ts +5 -0
- package/lib/components/button/types.d.ts +25 -0
- package/lib/components/grid/col/Col.d.ts +2 -0
- package/lib/components/grid/col/Col.stories.d.ts +7 -0
- package/lib/components/grid/container/Container.d.ts +2 -0
- package/lib/components/grid/container/Container.stories.d.ts +10 -0
- package/lib/components/grid/index.d.ts +3 -0
- package/lib/components/grid/row/Row.d.ts +2 -0
- package/lib/components/grid/row/Row.stories.d.ts +6 -0
- package/lib/components/index.d.ts +2 -18
- package/lib/components/sampleButton/SampleButton.d.ts +6 -0
- package/lib/components/sampleButton/SampleButton.stories.d.ts +6 -0
- package/lib/components/sampleButton/index.d.ts +1 -0
- package/lib/index.css +3491 -0
- package/lib/index.d.ts +272 -18
- package/lib/index.esm.css +3491 -0
- package/lib/index.esm.js +2588 -3051
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2861 -3320
- package/lib/index.js.map +1 -1
- package/lib/{components → legacy/components}/Accordion/Accordion.stories.d.ts +2 -2
- package/lib/legacy/components/Icon/Icon.stories.d.ts +42 -0
- package/lib/{components → legacy/components}/ListTable/ListTable.stories.d.ts +1 -1
- package/lib/{components → legacy/components}/Navigation/Drawer/Drawer.d.ts +3 -2
- package/lib/{components → legacy/components}/Navigation/Drawer/Drawer.stories.d.ts +1 -1
- package/lib/legacy/components/Toggle/Toggle.stories.d.ts +21 -0
- package/lib/{components → legacy/components}/basic-section/Section/Section.stories.d.ts +1 -1
- package/lib/{components → legacy/components}/basic-section/SectionHeader/SectionHeader.stories.d.ts +1 -1
- package/lib/{components → legacy/components}/dropdowns/BorderSelect/BorderSelect.stories.d.ts +1 -1
- package/lib/{components → legacy/components}/dropdowns/MultiCombobox/MultiCombobox.stories.d.ts +1 -1
- package/lib/{components → legacy/components}/dropdowns/Select/Select.stories.d.ts +1 -1
- package/lib/{components → legacy/components}/dropdowns/SingleCombobox/SingleCombobox.stories.d.ts +1 -1
- package/lib/legacy/components/index.d.ts +18 -0
- package/lib/{components → legacy/components}/inputs/DatePicker/DatePicker.stories.d.ts +1 -1
- package/lib/{components → legacy/components}/inputs/NoInputDatePicker/NoInputDatePicker.stories.d.ts +1 -1
- package/lib/{components → legacy/components}/inputs/RadioButtons/RadioButtons.styles.d.ts +2 -2
- package/lib/{components → legacy/components}/inputs/SearchInput/SearchInput.d.ts +1 -1
- package/lib/{components → legacy/components}/inputs/SearchInput/SearchInput.stories.d.ts +2 -2
- package/lib/legacy/components/text-truncate/TextTruncate.stories.d.ts +6 -0
- package/lib/{components → legacy/components}/user-feedback/Shrug/Shrug.stories.d.ts +1 -1
- package/lib/stylesAndAnimations/borders/BorderColor.d.ts +3 -0
- package/lib/stylesAndAnimations/borders/BorderColor.stories.d.ts +6 -0
- package/lib/stylesAndAnimations/borders/BorderRadius.d.ts +3 -0
- package/lib/stylesAndAnimations/borders/BorderRadius.stories.d.ts +6 -0
- package/lib/stylesAndAnimations/borders/BorderStyles.d.ts +3 -0
- package/lib/stylesAndAnimations/borders/BorderStyles.stories.d.ts +6 -0
- package/lib/stylesAndAnimations/borders/BorderThickness.d.ts +3 -0
- package/lib/stylesAndAnimations/borders/BorderThickness.stories.d.ts +6 -0
- package/lib/stylesAndAnimations/borders/index.d.ts +4 -0
- package/lib/stylesAndAnimations/colors/Swatch.d.ts +8 -0
- package/lib/stylesAndAnimations/colors/UtilityClasses.d.ts +1 -0
- package/lib/stylesAndAnimations/colors/UtilityClasses.stories.d.ts +6 -0
- package/lib/stylesAndAnimations/colors/colors.d.ts +1 -0
- package/lib/stylesAndAnimations/colors/colors.stories.d.ts +6 -0
- package/lib/stylesAndAnimations/colors/constants.d.ts +4 -0
- package/lib/stylesAndAnimations/colors/hooks.d.ts +1 -0
- package/lib/stylesAndAnimations/colors/index.d.ts +1 -0
- package/lib/stylesAndAnimations/sizing/Sizing.d.ts +2 -0
- package/lib/stylesAndAnimations/sizing/Sizing.stories.d.ts +6 -0
- package/lib/stylesAndAnimations/sizing/index.d.ts +1 -0
- package/lib/stylesAndAnimations/typography/Typography.d.ts +1 -0
- package/lib/stylesAndAnimations/typography/Typography.stories.d.ts +6 -0
- package/lib/stylesAndAnimations/typography/index.d.ts +1 -0
- package/lib/types.d.ts +1 -1
- package/package.json +44 -25
- package/postcss.config.js +6 -0
- package/rollup.config.mjs +8 -3
- package/src/components/button/Button.mdx +98 -0
- package/src/components/button/Button.scss +275 -0
- package/src/components/button/Button.stories.tsx +281 -0
- package/src/components/button/Button.tsx +80 -0
- package/src/components/button/__tests__/Button.test.tsx +108 -0
- package/src/components/button/enums.ts +9 -0
- package/src/components/button/index.ts +1 -0
- package/src/components/button/types.ts +29 -0
- package/src/components/grid/Grid.scss +31 -0
- package/src/components/grid/GridSystem.mdx +138 -0
- package/src/components/grid/col/Col.mdx +44 -0
- package/src/components/grid/col/Col.stories.tsx +25 -0
- package/src/components/grid/col/Col.tsx +5 -0
- package/src/components/grid/container/Container.mdx +43 -0
- package/src/components/grid/container/Container.stories.tsx +117 -0
- package/src/components/grid/container/Container.tsx +5 -0
- package/src/components/grid/index.tsx +3 -0
- package/src/components/grid/row/Row.mdx +56 -0
- package/src/components/grid/row/Row.stories.tsx +99 -0
- package/src/components/grid/row/Row.tsx +5 -0
- package/src/components/index.ts +2 -39
- package/src/index.ts +12 -7
- package/src/{components → legacy/components}/Accordion/Accordion.stories.tsx +2 -2
- package/src/{components → legacy/components}/Accordion/Accordion.tsx +1 -1
- package/src/{components → legacy/components}/Icon/Icon.stories.tsx +1 -1
- package/src/{components → legacy/components}/Icon/storyHelpers.tsx +1 -1
- package/src/{components → legacy/components}/ListTable/Header/Header.styles.ts +1 -1
- package/src/{components → legacy/components}/ListTable/Header/Header.tsx +4 -4
- package/src/{components → legacy/components}/ListTable/ListTable.stories.tsx +2 -2
- package/src/{components → legacy/components}/ListTable/ListTable.styles.ts +1 -1
- package/src/{components → legacy/components}/ListTable/ListTable.tsx +5 -5
- package/src/{components → legacy/components}/LoadingAwareContainer/LoadingAwareContainer.stories.tsx +1 -1
- package/src/{components → legacy/components}/LoadingAwareContainer/LoadingAwareContainer.tsx +1 -1
- package/src/{components/Navigation/Drawer/Drawer.styles.ts → legacy/components/Navigation/Drawer/Drawer.scss} +14 -28
- package/src/{components → legacy/components}/Navigation/Drawer/Drawer.stories.tsx +2 -3
- package/src/{components → legacy/components}/Navigation/Drawer/Drawer.tsx +27 -28
- package/src/{components → legacy/components}/Navigation/Drawer/DrawerLinkList.styles.ts +3 -4
- package/src/legacy/components/Navigation/Drawer/__tests__/Drawer.test.tsx +180 -0
- package/src/{components → legacy/components}/Pagination/Pagination.stories.tsx +1 -1
- package/src/{components → legacy/components}/Pagination/Pagination.styles.ts +1 -1
- package/src/{components → legacy/components}/Pagination/Pagination.tsx +1 -1
- package/src/{components → legacy/components}/Toggle/Toggle.stories.tsx +1 -1
- package/src/{components → legacy/components}/Toggle/Toggle.styles.ts +1 -1
- package/src/{components → legacy/components}/Toggle/Toggle.tsx +1 -1
- package/src/{components → legacy/components}/Tooltip/Tooltip.stories.tsx +1 -1
- package/src/{components → legacy/components}/Wizard/Wizard.stories.tsx +1 -1
- package/src/{components → legacy/components}/Wizard/Wizard.styles.ts +1 -1
- package/src/{components → legacy/components}/Wizard/Wizard.tsx +1 -1
- package/src/{components → legacy/components}/WizardWithSidebar/WizardWithSidebar.stories.tsx +2 -2
- package/src/{components → legacy/components}/WizardWithSidebar/WizardWithSidebar.styles.ts +21 -37
- package/src/{components → legacy/components}/WizardWithSidebar/WizardWithSidebar.tsx +59 -43
- package/src/{components → legacy/components}/basic-section/Section/Section.stories.tsx +1 -1
- package/src/{components → legacy/components}/basic-section/SectionBlock/SectionBlock.styles.ts +1 -1
- package/src/{components → legacy/components}/basic-section/SectionBody/SectionBody.stories.tsx +1 -1
- package/src/{components → legacy/components}/basic-section/SectionBody/SectionBody.styles.ts +1 -1
- package/src/{components → legacy/components}/basic-section/SectionHeader/SectionHeader.stories.tsx +1 -1
- package/src/{components → legacy/components}/basic-section/SectionTable/SectionTable.styles.ts +2 -2
- package/src/{components → legacy/components}/basic-section/SectionTable/SectionTable.tsx +2 -2
- package/src/{components → legacy/components}/buttons/Button/Button.stories.tsx +1 -1
- package/src/{components → legacy/components}/buttons/Button/Button.styles.ts +1 -1
- package/src/{components → legacy/components}/buttons/Button/Button.tsx +1 -1
- package/src/legacy/components/buttons/Button/index.ts +1 -0
- package/src/{components → legacy/components}/buttons/IconButton/IconButton.stories.tsx +1 -1
- package/src/{components → legacy/components}/buttons/IconButton/IconButton.styles.ts +1 -1
- package/src/{components → legacy/components}/buttons/IconButton/IconButton.tsx +2 -2
- package/src/{components → legacy/components}/buttons/commonStyles.ts +1 -1
- package/src/{components → legacy/components}/dropdowns/BorderSelect/BorderSelect.stories.tsx +1 -1
- package/src/{components → legacy/components}/dropdowns/BorderSelect/BorderSelect.styles.ts +1 -1
- package/src/{components → legacy/components}/dropdowns/MultiCombobox/MultiCombobox.stories.tsx +2 -2
- package/src/{components → legacy/components}/dropdowns/MultiCombobox/MultiCombobox.styles.ts +1 -1
- package/src/{components → legacy/components}/dropdowns/Select/Select.stories.tsx +1 -1
- package/src/{components → legacy/components}/dropdowns/Select/Select.styles.ts +1 -1
- package/src/{components → legacy/components}/dropdowns/Select/Select.tsx +1 -1
- package/src/{components → legacy/components}/dropdowns/SingleCombobox/SingleCombobox.stories.tsx +1 -1
- package/src/{components → legacy/components}/dropdowns/SingleCombobox/SingleCombobox.styles.ts +1 -1
- package/src/{components → legacy/components}/dropdowns/SingleCombobox/SingleCombobox.tsx +1 -1
- package/src/{components → legacy/components}/dropdowns/commonStyles.ts +1 -1
- package/src/legacy/components/index.ts +37 -0
- package/src/{components → legacy/components}/inputs/DatePicker/DatePicker.stories.tsx +2 -2
- package/src/{components → legacy/components}/inputs/EditableInput/EditableInput.stories.tsx +1 -1
- package/src/{components → legacy/components}/inputs/EditableInput/EditableInput.tsx +2 -2
- package/src/{components → legacy/components}/inputs/NoInputDatePicker/NoInputDatePicker.stories.tsx +9 -10
- package/src/legacy/components/inputs/NoInputDatePicker/__tests__/NoInputDatePicker.test.tsx +127 -0
- package/src/{components → legacy/components}/inputs/NumberInput/NumberInput.stories.tsx +1 -1
- package/src/{components → legacy/components}/inputs/NumberInput/NumberInput.styles.ts +1 -1
- package/src/{components → legacy/components}/inputs/NumberInput/NumberInput.tsx +2 -2
- package/src/{components → legacy/components}/inputs/RadioButtons/RadioButtons.stories.tsx +2 -2
- package/src/{components → legacy/components}/inputs/RadioButtons/RadioButtons.styles.ts +1 -1
- package/src/{components → legacy/components}/inputs/RadioButtons/RadioButtons.tsx +1 -1
- package/src/{components → legacy/components}/inputs/RadioGroup/RadioGroup.stories.tsx +1 -1
- package/src/{components → legacy/components}/inputs/SearchInput/SearchInput.stories.tsx +1 -1
- package/src/{components → legacy/components}/inputs/SearchInput/SearchInput.styles.ts +2 -2
- package/src/{components → legacy/components}/inputs/SearchInput/SearchInput.tsx +4 -4
- package/src/{components → legacy/components}/inputs/TextInput/TextInput.stories.tsx +1 -1
- package/src/{components → legacy/components}/inputs/TextInput/TextInput.styles.ts +1 -1
- package/src/{components → legacy/components}/inputs/inputsCommon.styles.ts +1 -2
- package/src/{components → legacy/components}/loading-indicators/BarSpinner/BarSpinner.stories.tsx +1 -1
- package/src/{components → legacy/components}/loading-indicators/BarSpinner/BarSpinner.styles.ts +1 -1
- package/src/{components → legacy/components}/loading-indicators/CirclePulse/CirclePulse.stories.tsx +1 -1
- package/src/{components → legacy/components}/loading-indicators/CirclePulse/CirclePulse.styles.ts +1 -1
- package/src/{components → legacy/components}/loading-indicators/CirclePulse/CirclePulse.tsx +1 -1
- package/src/{components → legacy/components}/loading-indicators/CircleSpinner/CircleSpinner.stories.tsx +1 -1
- package/src/{components → legacy/components}/loading-indicators/LoadingIndicator/LoadingIndicator.stories.tsx +1 -1
- package/src/{components → legacy/components}/loading-indicators/LoadingIndicator/LoadingIndicator.styles.ts +1 -1
- package/src/{components → legacy/components}/loading-indicators/LoadingIndicator/LoadingIndicator.tsx +2 -2
- package/src/{components → legacy/components}/loading-indicators/LoadingList/LoadingList.stories.tsx +1 -1
- package/src/{components → legacy/components}/loading-indicators/LoadingList/LoadingList.styles.ts +1 -1
- package/src/{components → legacy/components}/loading-indicators/PercentageRing/PercentageRing.stories.tsx +1 -1
- package/src/{components → legacy/components}/loading-indicators/PercentageRing/PercentageRing.tsx +1 -1
- package/src/{components → legacy/components}/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.stories.tsx +1 -1
- package/src/{components → legacy/components}/modals/ConfirmModal/ConfirmModal.stories.tsx +1 -1
- package/src/{components → legacy/components}/modals/ConfirmModal/ConfirmModal.styles.ts +1 -1
- package/src/{components → legacy/components}/modals/ConfirmModal/ConfirmModal.tsx +7 -5
- package/src/{components → legacy/components}/modals/ModalBase/ModalBase.stories.tsx +1 -1
- package/src/{components → legacy/components}/modals/ModalBase/ModalBase.styles.tsx +2 -2
- package/src/legacy/components/text-truncate/TextTruncate.stories.tsx +19 -0
- package/src/{components → legacy/components}/user-feedback/Shrug/Shrug.stories.tsx +1 -1
- package/src/{components → legacy/components}/user-feedback/Shrug/Shrug.styles.ts +1 -1
- package/src/{components → legacy/components}/user-feedback/Shrug/Shrug.tsx +2 -2
- package/src/{styles → legacy/styles}/globals/buttons.ts +1 -1
- package/src/{styles → legacy/styles}/globals/forms.ts +1 -1
- package/src/{styles → legacy/styles}/globals/index.tsx +0 -3
- package/src/{styles → legacy/styles}/globals/margin-padding.ts +1 -1
- package/src/{styles → legacy/styles}/globals/tables.ts +1 -1
- package/src/{styles → legacy/styles}/globals/typography.ts +1 -1
- package/src/{styles → legacy/styles}/globals/utility-classes.ts +1 -1
- package/src/styles/_borders.scss +60 -0
- package/src/styles/_colors.scss +23 -0
- package/src/styles/_margin.scss +41 -0
- package/src/styles/_padding.scss +26 -0
- package/src/styles/_typography.scss +116 -0
- package/src/styles/animations.scss +8 -0
- package/src/styles/index.scss +14 -0
- package/src/styles/variables/_borders.scss +16 -0
- package/src/styles/variables/_colors.scss +2 -0
- package/src/styles/variables/_margin.scss +37 -0
- package/src/styles/variables/_padding.scss +19 -0
- package/src/styles/variables/_typography.scss +31 -0
- package/src/styles/variables/index.scss +5 -0
- package/src/styles/variables/themes/dark.scss +89 -0
- package/src/styles/variables/themes/light.scss +87 -0
- package/src/stylesAndAnimations/borders/BorderColor.stories.tsx +13 -0
- package/src/stylesAndAnimations/borders/BorderColor.tsx +34 -0
- package/src/stylesAndAnimations/borders/BorderRadius.stories.tsx +13 -0
- package/src/stylesAndAnimations/borders/BorderRadius.tsx +46 -0
- package/src/stylesAndAnimations/borders/BorderStyles.stories.tsx +13 -0
- package/src/stylesAndAnimations/borders/BorderStyles.tsx +26 -0
- package/src/stylesAndAnimations/borders/BorderThickness.stories.tsx +13 -0
- package/src/stylesAndAnimations/borders/BorderThickness.tsx +50 -0
- package/src/stylesAndAnimations/borders/Borders.mdx +32 -0
- package/src/stylesAndAnimations/borders/borders.scss +13 -0
- package/src/stylesAndAnimations/borders/index.ts +4 -0
- package/src/stylesAndAnimations/colors/Colors.mdx +32 -0
- package/src/stylesAndAnimations/colors/Colors.stories.tsx +13 -0
- package/src/stylesAndAnimations/colors/Colors.tsx +29 -0
- package/src/stylesAndAnimations/colors/Swatch.tsx +25 -0
- package/src/stylesAndAnimations/colors/UtilityClasses.mdx +10 -0
- package/src/stylesAndAnimations/colors/UtilityClasses.stories.tsx +13 -0
- package/src/stylesAndAnimations/colors/UtilityClasses.tsx +96 -0
- package/src/stylesAndAnimations/colors/constants.ts +151 -0
- package/src/stylesAndAnimations/colors/hooks.tsx +28 -0
- package/src/stylesAndAnimations/colors/index.ts +1 -0
- package/src/stylesAndAnimations/colors/swatches.scss +11 -0
- package/src/stylesAndAnimations/sizing/Sizing.mdx +62 -0
- package/src/stylesAndAnimations/sizing/Sizing.stories.tsx +13 -0
- package/src/stylesAndAnimations/sizing/Sizing.tsx +10 -0
- package/src/stylesAndAnimations/sizing/index.ts +1 -0
- package/src/stylesAndAnimations/typography/Typography.mdx +88 -0
- package/src/stylesAndAnimations/typography/Typography.stories.tsx +13 -0
- package/src/stylesAndAnimations/typography/Typography.tsx +12 -0
- package/src/stylesAndAnimations/typography/index.ts +1 -0
- package/src/types.ts +3 -3
- package/webpack.config.js +17 -2
- package/.storybook/themes.js +0 -24
- package/lib/components/Icon/Icon.stories.d.ts +0 -42
- package/lib/components/Navigation/Drawer/Drawer.styles.d.ts +0 -7
- package/lib/components/Toggle/Toggle.stories.d.ts +0 -21
- package/lib/components/inputs/NoInputDatePicker/__tests__/NoInputDatePicker.test.d.ts +0 -1
- package/src/components/Navigation/Drawer/__tests__/Drawer.test.tsx +0 -175
- package/src/components/inputs/NoInputDatePicker/__tests__/NoInputDatePicker.test.tsx +0 -126
- package/src/components/text-truncate/TextTruncate.stories.mdx +0 -59
- /package/lib/components/{Navigation/Drawer/__tests__/Drawer.test.d.ts → button/__tests__/Button.test.d.ts} +0 -0
- /package/lib/components/{buttons/Button → button}/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/Accordion/Accordion.d.ts +0 -0
- /package/lib/{components → legacy/components}/Accordion/Accordion.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/Accordion/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/Icon/Icon.d.ts +0 -0
- /package/lib/{components → legacy/components}/Icon/faIcons.d.ts +0 -0
- /package/lib/{components → legacy/components}/Icon/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/Icon/indicons.d.ts +0 -0
- /package/lib/{components → legacy/components}/Icon/storyHelpers.d.ts +0 -0
- /package/lib/{components → legacy/components}/ListTable/Header/Header.d.ts +0 -0
- /package/lib/{components → legacy/components}/ListTable/Header/Header.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/ListTable/Header/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/ListTable/ListTable.d.ts +0 -0
- /package/lib/{components → legacy/components}/ListTable/ListTable.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/ListTable/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/ListTable/mock-data/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/ListTable/mock-data/mock-data.d.ts +0 -0
- /package/lib/{components → legacy/components}/LoadingAwareContainer/LoadingAwareContainer.d.ts +0 -0
- /package/lib/{components → legacy/components}/LoadingAwareContainer/LoadingAwareContainer.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/LoadingAwareContainer/LoadingAwareContainer.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/LoadingAwareContainer/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/Navigation/Drawer/DrawerLinkList.d.ts +0 -0
- /package/lib/{components → legacy/components}/Navigation/Drawer/DrawerLinkList.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/Navigation/Drawer/__mocks__/mocks.d.ts +0 -0
- /package/lib/{components → legacy/components}/Navigation/Drawer/__tests__/DrawerLinkList.test.d.ts +0 -0
- /package/lib/{components → legacy/components}/Navigation/Drawer/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/Navigation/Drawer/types.d.ts +0 -0
- /package/lib/{components → legacy/components}/Navigation/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/Pagination/Pagination.d.ts +0 -0
- /package/lib/{components → legacy/components}/Pagination/Pagination.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/Pagination/Pagination.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/Pagination/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/Toggle/Toggle.d.ts +0 -0
- /package/lib/{components → legacy/components}/Toggle/Toggle.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/Toggle/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/Tooltip/Tooltip.d.ts +0 -0
- /package/lib/{components → legacy/components}/Tooltip/Tooltip.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/Tooltip/Tooltip.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/Tooltip/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/Wizard/Wizard.d.ts +0 -0
- /package/lib/{components → legacy/components}/Wizard/Wizard.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/Wizard/Wizard.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/Wizard/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/WizardWithSidebar/WizardWithSidebar.d.ts +0 -0
- /package/lib/{components → legacy/components}/WizardWithSidebar/WizardWithSidebar.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/WizardWithSidebar/WizardWithSidebar.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/WizardWithSidebar/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/basic-section/Section/Section.d.ts +0 -0
- /package/lib/{components → legacy/components}/basic-section/Section/Section.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/basic-section/Section/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/basic-section/SectionBlock/SectionBlock.d.ts +0 -0
- /package/lib/{components → legacy/components}/basic-section/SectionBlock/SectionBlock.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/basic-section/SectionBlock/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/basic-section/SectionBody/SectionBody.d.ts +0 -0
- /package/lib/{components → legacy/components}/basic-section/SectionBody/SectionBody.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/basic-section/SectionBody/SectionBody.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/basic-section/SectionBody/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/basic-section/SectionHeader/SectionHeader.d.ts +0 -0
- /package/lib/{components → legacy/components}/basic-section/SectionHeader/SectionHeader.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/basic-section/SectionHeader/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/basic-section/SectionTable/SectionTable.d.ts +0 -0
- /package/lib/{components → legacy/components}/basic-section/SectionTable/SectionTable.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/basic-section/SectionTable/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/basic-section/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/buttons/Button/Button.d.ts +0 -0
- /package/lib/{components → legacy/components}/buttons/Button/Button.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/buttons/Button/Button.styles.d.ts +0 -0
- /package/{src/components/buttons/Button/index.ts → lib/legacy/components/buttons/Button/index.d.ts} +0 -0
- /package/lib/{components → legacy/components}/buttons/IconButton/IconButton.d.ts +0 -0
- /package/lib/{components → legacy/components}/buttons/IconButton/IconButton.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/buttons/IconButton/IconButton.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/buttons/IconButton/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/buttons/commonStyles.d.ts +0 -0
- /package/lib/{components → legacy/components}/buttons/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/buttons/types.d.ts +0 -0
- /package/lib/{components → legacy/components}/dropdowns/BorderSelect/BorderSelect.d.ts +0 -0
- /package/lib/{components → legacy/components}/dropdowns/BorderSelect/BorderSelect.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/dropdowns/BorderSelect/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/dropdowns/MultiCombobox/MultiCombobox.d.ts +0 -0
- /package/lib/{components → legacy/components}/dropdowns/MultiCombobox/MultiCombobox.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/dropdowns/MultiCombobox/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/dropdowns/Select/Select.d.ts +0 -0
- /package/lib/{components → legacy/components}/dropdowns/Select/Select.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/dropdowns/Select/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/dropdowns/SingleCombobox/SingleCombobox.d.ts +0 -0
- /package/lib/{components → legacy/components}/dropdowns/SingleCombobox/SingleCombobox.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/dropdowns/SingleCombobox/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/dropdowns/commonStyles.d.ts +0 -0
- /package/lib/{components → legacy/components}/dropdowns/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/dropdowns/types.d.ts +0 -0
- /package/lib/{components → legacy/components}/dropdowns/useCombobox.d.ts +0 -0
- /package/lib/{components → legacy/components}/dropdowns/utils.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/DatePicker/DatePicker.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/DatePicker/DatePicker.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/DatePicker/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/EditableInput/EditableInput.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/EditableInput/EditableInput.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/EditableInput/EditableInput.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/EditableInput/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/NoInputDatePicker/NoInputDatePicker.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/NoInputDatePicker/NoInputDatePicker.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/NoInputDatePicker/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/NumberInput/NumberInput.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/NumberInput/NumberInput.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/NumberInput/NumberInput.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/NumberInput/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/RadioButtons/RadioButtons.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/RadioButtons/RadioButtons.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/RadioButtons/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/RadioGroup/RadioGroup.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/RadioGroup/RadioGroup.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/RadioGroup/RadioGroup.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/RadioGroup/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/SearchInput/SearchInput.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/SearchInput/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/TextInput/TextInput.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/TextInput/TextInput.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/TextInput/TextInput.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/TextInput/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/inputs/inputsCommon.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/BarSpinner/BarSpinner.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/BarSpinner/BarSpinner.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/BarSpinner/BarSpinner.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/BarSpinner/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/CirclePulse/CirclePulse.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/CirclePulse/CirclePulse.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/CirclePulse/CirclePulse.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/CirclePulse/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/CircleSpinner/CircleSpinner.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/CircleSpinner/CircleSpinner.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/CircleSpinner/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/LoadingIndicator/LoadingIndicator.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/LoadingIndicator/LoadingIndicator.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/LoadingIndicator/LoadingIndicator.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/LoadingIndicator/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/LoadingList/LoadingList.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/LoadingList/LoadingList.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/LoadingList/LoadingList.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/LoadingList/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/PercentageRing/PercentageRing.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/PercentageRing/PercentageRing.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/PercentageRing/PercentageRing.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/PercentageRing/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/RandomLoadingMessage/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/RandomLoadingMessage/random-messages.d.ts +0 -0
- /package/lib/{components → legacy/components}/loading-indicators/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/modals/ConfirmModal/ConfirmModal.d.ts +0 -0
- /package/lib/{components → legacy/components}/modals/ConfirmModal/ConfirmModal.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/modals/ConfirmModal/ConfirmModal.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/modals/ConfirmModal/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/modals/ModalBase/ModalBase.d.ts +0 -0
- /package/lib/{components → legacy/components}/modals/ModalBase/ModalBase.stories.d.ts +0 -0
- /package/lib/{components → legacy/components}/modals/ModalBase/ModalBase.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/modals/ModalBase/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/modals/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/text-truncate/TextTruncate.d.ts +0 -0
- /package/lib/{components → legacy/components}/text-truncate/TextTruncate.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/text-truncate/TextTruncate.test.d.ts +0 -0
- /package/lib/{components → legacy/components}/text-truncate/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/user-feedback/Shrug/Shrug.d.ts +0 -0
- /package/lib/{components → legacy/components}/user-feedback/Shrug/Shrug.styles.d.ts +0 -0
- /package/lib/{components → legacy/components}/user-feedback/Shrug/index.d.ts +0 -0
- /package/lib/{components → legacy/components}/user-feedback/index.d.ts +0 -0
- /package/lib/{styles → legacy/styles}/globals/buttons.d.ts +0 -0
- /package/lib/{styles → legacy/styles}/globals/forms.d.ts +0 -0
- /package/lib/{styles → legacy/styles}/globals/index.d.ts +0 -0
- /package/lib/{styles → legacy/styles}/globals/layout.d.ts +0 -0
- /package/lib/{styles → legacy/styles}/globals/lists.d.ts +0 -0
- /package/lib/{styles → legacy/styles}/globals/margin-padding.d.ts +0 -0
- /package/lib/{styles → legacy/styles}/globals/media.d.ts +0 -0
- /package/lib/{styles → legacy/styles}/globals/tables.d.ts +0 -0
- /package/lib/{styles → legacy/styles}/globals/typography.d.ts +0 -0
- /package/lib/{styles → legacy/styles}/globals/utility-classes.d.ts +0 -0
- /package/lib/{styles → legacy/styles}/index.d.ts +0 -0
- /package/lib/{tokens → legacy/tokens}/animation.d.ts +0 -0
- /package/lib/{tokens → legacy/tokens}/breakpoints.d.ts +0 -0
- /package/lib/{tokens → legacy/tokens}/colors.d.ts +0 -0
- /package/lib/{tokens → legacy/tokens}/index.d.ts +0 -0
- /package/lib/{tokens → legacy/tokens}/margin.d.ts +0 -0
- /package/lib/{tokens → legacy/tokens}/numbers.d.ts +0 -0
- /package/lib/{tokens → legacy/tokens}/padding.d.ts +0 -0
- /package/lib/{tokens → legacy/tokens}/spacings.d.ts +0 -0
- /package/lib/{tokens → legacy/tokens}/typography.d.ts +0 -0
- /package/lib/{utils → legacy/utils}/color.d.ts +0 -0
- /package/lib/{utils → legacy/utils}/index.d.ts +0 -0
- /package/lib/{utils → legacy/utils}/number.d.ts +0 -0
- /package/lib/{utils → legacy/utils}/string.d.ts +0 -0
- /package/src/{components → legacy/components}/Accordion/Accordion.styles.ts +0 -0
- /package/src/{components → legacy/components}/Accordion/index.ts +0 -0
- /package/src/{components → legacy/components}/Icon/Icon.tsx +0 -0
- /package/src/{components → legacy/components}/Icon/faIcons.tsx +0 -0
- /package/src/{components → legacy/components}/Icon/index.ts +0 -0
- /package/src/{components → legacy/components}/Icon/indicons.tsx +0 -0
- /package/src/{components → legacy/components}/ListTable/Header/index.ts +0 -0
- /package/src/{components → legacy/components}/ListTable/index.ts +0 -0
- /package/src/{components → legacy/components}/ListTable/mock-data/index.ts +0 -0
- /package/src/{components → legacy/components}/ListTable/mock-data/mock-data.ts +0 -0
- /package/src/{components → legacy/components}/LoadingAwareContainer/LoadingAwareContainer.styles.ts +0 -0
- /package/src/{components → legacy/components}/LoadingAwareContainer/index.ts +0 -0
- /package/src/{components → legacy/components}/Navigation/Drawer/DrawerLinkList.tsx +0 -0
- /package/src/{components → legacy/components}/Navigation/Drawer/__mocks__/mocks.ts +0 -0
- /package/src/{components → legacy/components}/Navigation/Drawer/__tests__/DrawerLinkList.test.tsx +0 -0
- /package/src/{components → legacy/components}/Navigation/Drawer/index.ts +0 -0
- /package/src/{components → legacy/components}/Navigation/Drawer/types.ts +0 -0
- /package/src/{components → legacy/components}/Navigation/index.ts +0 -0
- /package/src/{components → legacy/components}/Pagination/index.ts +0 -0
- /package/src/{components → legacy/components}/Toggle/index.ts +0 -0
- /package/src/{components → legacy/components}/Tooltip/Tooltip.styles.ts +0 -0
- /package/src/{components → legacy/components}/Tooltip/Tooltip.tsx +0 -0
- /package/src/{components → legacy/components}/Tooltip/index.ts +0 -0
- /package/src/{components → legacy/components}/Wizard/index.ts +0 -0
- /package/src/{components → legacy/components}/WizardWithSidebar/index.ts +0 -0
- /package/src/{components → legacy/components}/basic-section/Section/Section.styles.ts +0 -0
- /package/src/{components → legacy/components}/basic-section/Section/Section.tsx +0 -0
- /package/src/{components → legacy/components}/basic-section/Section/index.ts +0 -0
- /package/src/{components → legacy/components}/basic-section/SectionBlock/SectionBlock.tsx +0 -0
- /package/src/{components → legacy/components}/basic-section/SectionBlock/index.ts +0 -0
- /package/src/{components → legacy/components}/basic-section/SectionBody/SectionBody.tsx +0 -0
- /package/src/{components → legacy/components}/basic-section/SectionBody/index.ts +0 -0
- /package/src/{components → legacy/components}/basic-section/SectionHeader/SectionHeader.styles.ts +0 -0
- /package/src/{components → legacy/components}/basic-section/SectionHeader/SectionHeader.tsx +0 -0
- /package/src/{components → legacy/components}/basic-section/SectionHeader/index.ts +0 -0
- /package/src/{components → legacy/components}/basic-section/SectionTable/index.ts +0 -0
- /package/src/{components → legacy/components}/basic-section/index.ts +0 -0
- /package/src/{components → legacy/components}/buttons/IconButton/index.ts +0 -0
- /package/src/{components → legacy/components}/buttons/index.ts +0 -0
- /package/src/{components → legacy/components}/buttons/types.ts +0 -0
- /package/src/{components → legacy/components}/dropdowns/BorderSelect/BorderSelect.tsx +0 -0
- /package/src/{components → legacy/components}/dropdowns/BorderSelect/index.ts +0 -0
- /package/src/{components → legacy/components}/dropdowns/MultiCombobox/MultiCombobox.tsx +0 -0
- /package/src/{components → legacy/components}/dropdowns/MultiCombobox/index.ts +0 -0
- /package/src/{components → legacy/components}/dropdowns/Select/index.ts +0 -0
- /package/src/{components → legacy/components}/dropdowns/SingleCombobox/index.ts +0 -0
- /package/src/{components → legacy/components}/dropdowns/index.ts +0 -0
- /package/src/{components → legacy/components}/dropdowns/types.ts +0 -0
- /package/src/{components → legacy/components}/dropdowns/useCombobox.ts +0 -0
- /package/src/{components → legacy/components}/dropdowns/utils.tsx +0 -0
- /package/src/{components → legacy/components}/inputs/DatePicker/DatePicker.styles.ts +0 -0
- /package/src/{components → legacy/components}/inputs/DatePicker/DatePicker.tsx +0 -0
- /package/src/{components → legacy/components}/inputs/DatePicker/index.ts +0 -0
- /package/src/{components → legacy/components}/inputs/EditableInput/EditableInput.styles.ts +0 -0
- /package/src/{components → legacy/components}/inputs/EditableInput/index.ts +0 -0
- /package/src/{components → legacy/components}/inputs/NoInputDatePicker/NoInputDatePicker.styles.ts +0 -0
- /package/src/{components → legacy/components}/inputs/NoInputDatePicker/NoInputDatePicker.tsx +0 -0
- /package/src/{components → legacy/components}/inputs/NoInputDatePicker/index.ts +0 -0
- /package/src/{components → legacy/components}/inputs/NumberInput/index.ts +0 -0
- /package/src/{components → legacy/components}/inputs/RadioButtons/index.tsx +0 -0
- /package/src/{components → legacy/components}/inputs/RadioGroup/RadioGroup.styles.ts +0 -0
- /package/src/{components → legacy/components}/inputs/RadioGroup/RadioGroup.tsx +0 -0
- /package/src/{components → legacy/components}/inputs/RadioGroup/index.ts +0 -0
- /package/src/{components → legacy/components}/inputs/SearchInput/index.ts +0 -0
- /package/src/{components → legacy/components}/inputs/TextInput/TextInput.tsx +0 -0
- /package/src/{components → legacy/components}/inputs/TextInput/index.ts +0 -0
- /package/src/{components → legacy/components}/inputs/index.ts +0 -0
- /package/src/{components → legacy/components}/loading-indicators/BarSpinner/BarSpinner.tsx +0 -0
- /package/src/{components → legacy/components}/loading-indicators/BarSpinner/index.ts +0 -0
- /package/src/{components → legacy/components}/loading-indicators/CirclePulse/index.ts +0 -0
- /package/src/{components → legacy/components}/loading-indicators/CircleSpinner/CircleSpinner.tsx +0 -0
- /package/src/{components → legacy/components}/loading-indicators/CircleSpinner/index.ts +0 -0
- /package/src/{components → legacy/components}/loading-indicators/LoadingIndicator/index.ts +0 -0
- /package/src/{components → legacy/components}/loading-indicators/LoadingList/LoadingList.tsx +0 -0
- /package/src/{components → legacy/components}/loading-indicators/LoadingList/index.ts +0 -0
- /package/src/{components → legacy/components}/loading-indicators/PercentageRing/PercentageRing.styles.ts +0 -0
- /package/src/{components → legacy/components}/loading-indicators/PercentageRing/index.ts +0 -0
- /package/src/{components → legacy/components}/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.tsx +0 -0
- /package/src/{components → legacy/components}/loading-indicators/RandomLoadingMessage/index.ts +0 -0
- /package/src/{components → legacy/components}/loading-indicators/RandomLoadingMessage/random-messages.js +0 -0
- /package/src/{components → legacy/components}/loading-indicators/index.ts +0 -0
- /package/src/{components → legacy/components}/modals/ConfirmModal/index.ts +0 -0
- /package/src/{components → legacy/components}/modals/ModalBase/ModalBase.tsx +0 -0
- /package/src/{components → legacy/components}/modals/ModalBase/index.ts +0 -0
- /package/src/{components → legacy/components}/modals/index.ts +0 -0
- /package/src/{components → legacy/components}/text-truncate/TextTruncate.styles.ts +0 -0
- /package/src/{components → legacy/components}/text-truncate/TextTruncate.test.tsx +0 -0
- /package/src/{components → legacy/components}/text-truncate/TextTruncate.tsx +0 -0
- /package/src/{components → legacy/components}/text-truncate/index.ts +0 -0
- /package/src/{components → legacy/components}/user-feedback/Shrug/index.ts +0 -0
- /package/src/{components → legacy/components}/user-feedback/index.ts +0 -0
- /package/src/{styles → legacy/styles}/globals/layout.ts +0 -0
- /package/src/{styles → legacy/styles}/globals/lists.ts +0 -0
- /package/src/{styles → legacy/styles}/globals/media.ts +0 -0
- /package/src/{styles → legacy/styles}/index.ts +0 -0
- /package/src/{tokens → legacy/tokens}/animation.ts +0 -0
- /package/src/{tokens → legacy/tokens}/breakpoints.ts +0 -0
- /package/src/{tokens → legacy/tokens}/colors.ts +0 -0
- /package/src/{tokens → legacy/tokens}/index.ts +0 -0
- /package/src/{tokens → legacy/tokens}/margin.ts +0 -0
- /package/src/{tokens → legacy/tokens}/numbers.js +0 -0
- /package/src/{tokens → legacy/tokens}/padding.ts +0 -0
- /package/src/{tokens → legacy/tokens}/spacings.ts +0 -0
- /package/src/{tokens → legacy/tokens}/typography.ts +0 -0
- /package/src/{utils → legacy/utils}/color.ts +0 -0
- /package/src/{utils → legacy/utils}/index.ts +0 -0
- /package/src/{utils → legacy/utils}/number.ts +0 -0
- /package/src/{utils → legacy/utils}/string.ts +0 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import classNames from 'classnames';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Icon } from '../../legacy/components/Icon/Icon';
|
|
4
|
+
|
|
5
|
+
import { ButtonProps } from './types';
|
|
6
|
+
|
|
7
|
+
export const Button = (props: ButtonProps) => {
|
|
8
|
+
const {
|
|
9
|
+
ariaLabel,
|
|
10
|
+
children,
|
|
11
|
+
isLoading,
|
|
12
|
+
isDisabled,
|
|
13
|
+
variant = 'solid',
|
|
14
|
+
color = 'primary',
|
|
15
|
+
iconPosition = 'left',
|
|
16
|
+
iconName,
|
|
17
|
+
onClick,
|
|
18
|
+
type = 'button',
|
|
19
|
+
size = 'md',
|
|
20
|
+
onMouseEnter,
|
|
21
|
+
onMouseExit,
|
|
22
|
+
onKeyDown,
|
|
23
|
+
className,
|
|
24
|
+
href,
|
|
25
|
+
...rest
|
|
26
|
+
} = props;
|
|
27
|
+
|
|
28
|
+
const buttonClasses = classNames(
|
|
29
|
+
'btn',
|
|
30
|
+
{
|
|
31
|
+
[`btn--${color}`]: color,
|
|
32
|
+
[`btn--${variant}`]: variant,
|
|
33
|
+
[`btn--${size}`]: size,
|
|
34
|
+
'btn--loading': isLoading,
|
|
35
|
+
},
|
|
36
|
+
className,
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
const handleOnClick = (event: React.MouseEvent<HTMLButtonElement>) => {
|
|
40
|
+
if (!isLoading && props.onClick) {
|
|
41
|
+
props.onClick(event);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<button
|
|
47
|
+
disabled={isLoading || isDisabled}
|
|
48
|
+
className={buttonClasses}
|
|
49
|
+
role="button"
|
|
50
|
+
onClick={handleOnClick}
|
|
51
|
+
aria-label={ariaLabel || 'button'}
|
|
52
|
+
aria-disabled={isLoading || isDisabled}
|
|
53
|
+
aria-busy={isLoading}
|
|
54
|
+
type={type}
|
|
55
|
+
onMouseEnter={onMouseEnter}
|
|
56
|
+
onMouseLeave={onMouseExit}
|
|
57
|
+
onKeyDown={onKeyDown}
|
|
58
|
+
{...rest}
|
|
59
|
+
>
|
|
60
|
+
{/* TODO -- Redo Icon component */}
|
|
61
|
+
{isLoading && (
|
|
62
|
+
<Icon
|
|
63
|
+
name="fa-circle-notch"
|
|
64
|
+
style={{
|
|
65
|
+
animation: 'spin 1s linear infinite',
|
|
66
|
+
}}
|
|
67
|
+
className="mr-2"
|
|
68
|
+
ariaLabel={'Loading...'}
|
|
69
|
+
/>
|
|
70
|
+
)}
|
|
71
|
+
{iconPosition === 'left' && iconName && (
|
|
72
|
+
<Icon name={iconName} className="mr-2" ariaLabel={`${iconName} Icon`} />
|
|
73
|
+
)}
|
|
74
|
+
{children}
|
|
75
|
+
{iconPosition === 'right' && iconName && (
|
|
76
|
+
<Icon name={iconName} className="ml-2" ariaLabel={`${iconName} Icon`} />
|
|
77
|
+
)}
|
|
78
|
+
</button>
|
|
79
|
+
);
|
|
80
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { render, screen } from '@testing-library/react';
|
|
2
|
+
import userEvent from '@testing-library/user-event';
|
|
3
|
+
import { Button } from '@/components/button';
|
|
4
|
+
|
|
5
|
+
const onClick = jest.fn();
|
|
6
|
+
const onMouseEnter = jest.fn();
|
|
7
|
+
const onMouseExit = jest.fn();
|
|
8
|
+
const onKeyDown = jest.fn();
|
|
9
|
+
|
|
10
|
+
describe('Button', () => {
|
|
11
|
+
describe('button styles', () => {
|
|
12
|
+
it('loads the corresponding color class from the props', () => {
|
|
13
|
+
render(
|
|
14
|
+
<Button color="warning" onClick={onClick} ariaLabel="btn">
|
|
15
|
+
Button
|
|
16
|
+
</Button>,
|
|
17
|
+
);
|
|
18
|
+
const button = screen.getByRole('button');
|
|
19
|
+
expect(button).toHaveClass('btn--warning');
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('loads the corresponding variant class from the props', () => {
|
|
23
|
+
render(
|
|
24
|
+
<Button variant="outline" onClick={onClick} ariaLabel="btn">
|
|
25
|
+
Button
|
|
26
|
+
</Button>,
|
|
27
|
+
);
|
|
28
|
+
const button = screen.getByRole('button');
|
|
29
|
+
expect(button).toHaveClass('btn--outline');
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
it('loads the corresponding size class from the props', () => {
|
|
33
|
+
render(
|
|
34
|
+
<Button size="lg" onClick={onClick} ariaLabel="btn">
|
|
35
|
+
Button
|
|
36
|
+
</Button>,
|
|
37
|
+
);
|
|
38
|
+
const button = screen.getByRole('button');
|
|
39
|
+
expect(button).toHaveClass('btn--lg');
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it('loads the corresponding loading class from the props', () => {
|
|
43
|
+
render(
|
|
44
|
+
<Button isLoading={true} onClick={onClick} ariaLabel="btn">
|
|
45
|
+
Button
|
|
46
|
+
</Button>,
|
|
47
|
+
);
|
|
48
|
+
const button = screen.getByRole('button');
|
|
49
|
+
expect(button).toHaveClass('btn--loading');
|
|
50
|
+
expect(button).toBeDisabled();
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
it('does not apply the loading class when not loading', () => {
|
|
54
|
+
render(
|
|
55
|
+
<Button isLoading={false} onClick={onClick} ariaLabel="btn">
|
|
56
|
+
Button
|
|
57
|
+
</Button>,
|
|
58
|
+
);
|
|
59
|
+
const button = screen.getByRole('button');
|
|
60
|
+
expect(button).not.toHaveClass('btn--loading');
|
|
61
|
+
expect(button).toBeEnabled();
|
|
62
|
+
});
|
|
63
|
+
it('disables the button when disabled prop is true', () => {
|
|
64
|
+
render(
|
|
65
|
+
<Button isDisabled={true} onClick={onClick} ariaLabel="btn">
|
|
66
|
+
Button
|
|
67
|
+
</Button>,
|
|
68
|
+
);
|
|
69
|
+
const button = screen.getByRole('button');
|
|
70
|
+
expect(button).toBeDisabled();
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
describe('button interactions', () => {
|
|
74
|
+
beforeEach(() => {
|
|
75
|
+
onClick.mockClear();
|
|
76
|
+
onMouseEnter.mockClear();
|
|
77
|
+
onMouseExit.mockClear();
|
|
78
|
+
onKeyDown.mockClear();
|
|
79
|
+
});
|
|
80
|
+
it('calls the onKeyDown function when a key is pressed', async () => {
|
|
81
|
+
render(<Button onKeyDown={onKeyDown} onClick={onClick} ariaLabel="btn" />);
|
|
82
|
+
await userEvent.type(screen.getByRole('button'), '{enter}');
|
|
83
|
+
expect(onKeyDown).toHaveBeenCalledTimes(1);
|
|
84
|
+
});
|
|
85
|
+
it('calls the onClick function when the button is clicked', async () => {
|
|
86
|
+
render(<Button onClick={onClick} ariaLabel="btn" />);
|
|
87
|
+
await userEvent.click(screen.getByRole('button'));
|
|
88
|
+
expect(onClick).toHaveBeenCalledTimes(1);
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
it('does not call the onClick function when the button is loading', async () => {
|
|
92
|
+
render(<Button onClick={onClick} isLoading={true} ariaLabel="btn" />);
|
|
93
|
+
await userEvent.click(screen.getByRole('button'));
|
|
94
|
+
expect(onClick).toHaveBeenCalledTimes(0);
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
it('calls the onMouseEnter function when the mouse enters the button', async () => {
|
|
98
|
+
render(<Button onMouseEnter={onMouseEnter} ariaLabel="btn" onClick={onClick} />);
|
|
99
|
+
await userEvent.hover(screen.getByRole('button'));
|
|
100
|
+
expect(onMouseEnter).toHaveBeenCalledTimes(1);
|
|
101
|
+
});
|
|
102
|
+
it('calls the onMouseExit function when the mouse leaves the button', async () => {
|
|
103
|
+
render(<Button onMouseExit={onMouseExit} onClick={onClick} ariaLabel="btn" />);
|
|
104
|
+
await userEvent.unhover(screen.getByRole('button'));
|
|
105
|
+
expect(onMouseExit).toHaveBeenCalledTimes(1);
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type ButtonVariants = 'solid' | 'outline' | 'text';
|
|
2
|
+
|
|
3
|
+
export type ButtonColors = 'primary' | 'secondary' | 'warning' | 'error' | 'success' | 'info';
|
|
4
|
+
|
|
5
|
+
export type ButtonIconPositions = 'left' | 'right';
|
|
6
|
+
|
|
7
|
+
export type ButtonSizes = 'sm' | 'md' | 'lg';
|
|
8
|
+
|
|
9
|
+
export type ButtonTypes = 'button' | 'submit' | 'reset';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Button } from './Button';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IconName } from '../../types';
|
|
2
|
+
export type ButtonVariants = 'solid' | 'outline' | 'text';
|
|
3
|
+
|
|
4
|
+
export type ButtonColors = 'primary' | 'secondary' | 'warning' | 'error' | 'success' | 'info';
|
|
5
|
+
|
|
6
|
+
export type ButtonIconPositions = 'left' | 'right';
|
|
7
|
+
|
|
8
|
+
export type ButtonSizes = 'sm' | 'md' | 'lg';
|
|
9
|
+
|
|
10
|
+
export type ButtonTypes = 'button' | 'submit' | 'reset';
|
|
11
|
+
|
|
12
|
+
export interface ButtonProps {
|
|
13
|
+
className?: string;
|
|
14
|
+
ariaLabel: string;
|
|
15
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
16
|
+
onMouseEnter?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
17
|
+
onMouseExit?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
18
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
19
|
+
isLoading?: boolean;
|
|
20
|
+
onClick?: (...args: any[]) => void;
|
|
21
|
+
variant?: ButtonVariants;
|
|
22
|
+
iconPosition?: ButtonIconPositions;
|
|
23
|
+
color?: ButtonColors;
|
|
24
|
+
size?: ButtonSizes;
|
|
25
|
+
iconName?: IconName;
|
|
26
|
+
type?: ButtonTypes;
|
|
27
|
+
href?: string;
|
|
28
|
+
isDisabled?: boolean;
|
|
29
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@mixin sample-cell-style($bg-color, $text-color) {
|
|
2
|
+
background: var(--#{$bg-color});
|
|
3
|
+
color: var(--#{$text-color});
|
|
4
|
+
padding: 1rem;
|
|
5
|
+
margin: 2px 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.sb__sample-cell {
|
|
9
|
+
@include sample-cell-style(pf-primary-color-400, pf-gray-color);
|
|
10
|
+
|
|
11
|
+
&-secondary {
|
|
12
|
+
@include sample-cell-style(pf-secondary-color-400, pf-gray-color);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&-green {
|
|
16
|
+
@include sample-cell-style(pf-green-color-400, pf-secondary-color-900);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-orange {
|
|
20
|
+
@include sample-cell-style(pf-orange-color-400, pf-secondary-color-900);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-red {
|
|
24
|
+
@include sample-cell-style(pf-red-color-400, pf-gray-color);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.sb__sample-row {
|
|
29
|
+
min-height: 110px;
|
|
30
|
+
margin: 1em 0;
|
|
31
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { Canvas, Meta, Controls } from '@storybook/blocks';
|
|
2
|
+
import * as ContainerStories from './container/Container.stories';
|
|
3
|
+
import '@/components/grid/Grid.scss';
|
|
4
|
+
|
|
5
|
+
<Meta title="Layout/Grid" name="Grid System" />
|
|
6
|
+
|
|
7
|
+
# Grid Layout System
|
|
8
|
+
|
|
9
|
+
This section provides documentation for the Grid System, a convenient wrapper around the well-established [react-grid-system](https://www.npmjs.com/package/react-grid-system) library. It supports a range of layout designs, from simple to complex, providing horizontal and vertical alignment with fine-grained control over spacing, alignment, and responsive behavior.
|
|
10
|
+
|
|
11
|
+
### Default Grid Configuration
|
|
12
|
+
|
|
13
|
+
Here you can see a Grid in its default, fixed-width configuration. The default configuration respects the responsive breakpoints set by the library.
|
|
14
|
+
|
|
15
|
+
<Canvas
|
|
16
|
+
of={ContainerStories.Default}
|
|
17
|
+
source={{
|
|
18
|
+
code: `<Container>
|
|
19
|
+
<Row>
|
|
20
|
+
<Col sm={4}>
|
|
21
|
+
<div className="sb__sample-cell" />
|
|
22
|
+
</Col>
|
|
23
|
+
<Col sm={4}>
|
|
24
|
+
<div className="sb__sample-cell" />
|
|
25
|
+
</Col>
|
|
26
|
+
<Col sm={4}>
|
|
27
|
+
<div className="sb__sample-cell" />
|
|
28
|
+
</Col>
|
|
29
|
+
</Row>
|
|
30
|
+
</Container>
|
|
31
|
+
`,
|
|
32
|
+
}}
|
|
33
|
+
/>
|
|
34
|
+
|
|
35
|
+
### Fluid Grid
|
|
36
|
+
|
|
37
|
+
This configuration uses a fluid container, setting `fluid` to `true`. In the context of a container, it means the width of the container will be `100%`.
|
|
38
|
+
|
|
39
|
+
<Canvas
|
|
40
|
+
of={ContainerStories.Fluid}
|
|
41
|
+
source={{
|
|
42
|
+
code: `<Container fluid>
|
|
43
|
+
<Row>
|
|
44
|
+
<Col sm={4}>
|
|
45
|
+
<div className="sb__sample-cell" />
|
|
46
|
+
</Col>
|
|
47
|
+
<Col sm={4}>
|
|
48
|
+
<div className="sb__sample-cell" />
|
|
49
|
+
</Col>
|
|
50
|
+
<Col sm={4}>
|
|
51
|
+
<div className="sb__sample-cell" />
|
|
52
|
+
</Col>
|
|
53
|
+
</Row>
|
|
54
|
+
</Container>
|
|
55
|
+
`,
|
|
56
|
+
}}
|
|
57
|
+
/>
|
|
58
|
+
|
|
59
|
+
### Responsive Grid
|
|
60
|
+
|
|
61
|
+
This example demonstrates the responsive capabilities of the grid, adjusting column sizes at different breakpoints.
|
|
62
|
+
|
|
63
|
+
<Canvas
|
|
64
|
+
of={ContainerStories.Responsive}
|
|
65
|
+
source={{
|
|
66
|
+
code: `<Container>
|
|
67
|
+
<Row>
|
|
68
|
+
<Col xs={6} sm={4} md={3} lg={2}>
|
|
69
|
+
<div className="sb__sample-cell" />
|
|
70
|
+
</Col>
|
|
71
|
+
<Col xs={6} sm={4} md={3} lg={2}>
|
|
72
|
+
<div className="sb__sample-cell" />
|
|
73
|
+
</Col>
|
|
74
|
+
<Col xs={6} sm={4} md={3} lg={2}>
|
|
75
|
+
<div className="sb__sample-cell" />
|
|
76
|
+
</Col>
|
|
77
|
+
<Col xs={6} sm={4} md={3} lg={2}>
|
|
78
|
+
<div className="sb__sample-cell" />
|
|
79
|
+
</Col>
|
|
80
|
+
</Row>
|
|
81
|
+
</Container>
|
|
82
|
+
`,
|
|
83
|
+
}}
|
|
84
|
+
/>
|
|
85
|
+
|
|
86
|
+
### Nested Grids
|
|
87
|
+
|
|
88
|
+
Nested grids demonstrate the flexibility and scalability of the grid system. This example shows how grids can be layered within each other to build complex hierarchical layouts.
|
|
89
|
+
|
|
90
|
+
<Canvas
|
|
91
|
+
of={ContainerStories.NestedGrids}
|
|
92
|
+
source={{
|
|
93
|
+
code: `<Container>
|
|
94
|
+
<Row>
|
|
95
|
+
<Col sm={6}>
|
|
96
|
+
<div className="sb__sample-cell-orange" />
|
|
97
|
+
<Row>
|
|
98
|
+
<Col sm={6}>
|
|
99
|
+
<div className="sb__sample-cell-green" />
|
|
100
|
+
</Col>
|
|
101
|
+
<Col sm={6}>
|
|
102
|
+
<div className="sb__sample-cell-green" />
|
|
103
|
+
</Col>
|
|
104
|
+
</Row>
|
|
105
|
+
</Col>
|
|
106
|
+
<Col sm={6}>
|
|
107
|
+
<div className="sb__sample-cell-secondary" />
|
|
108
|
+
</Col>
|
|
109
|
+
</Row>
|
|
110
|
+
</Container>
|
|
111
|
+
`,
|
|
112
|
+
}}
|
|
113
|
+
/>
|
|
114
|
+
|
|
115
|
+
### Offsetting Columns
|
|
116
|
+
|
|
117
|
+
This example explains how to offset columns within the grid to create gaps or spacing as needed.
|
|
118
|
+
|
|
119
|
+
<Canvas of={ContainerStories.Offset} />
|
|
120
|
+
|
|
121
|
+
## Breakpoints and Responsiveness
|
|
122
|
+
|
|
123
|
+
Breakpoints are crucial for leveraging the Grid's responsive capabilities. These predefined screen widths determine how the grid's layout adjusts to optimize readability and usability:
|
|
124
|
+
|
|
125
|
+
- Extra small (xs): for devices with screen width less than `576px`.
|
|
126
|
+
- Small (sm): for devices with screen width between `576px` and `767px` (mobile devices).
|
|
127
|
+
- Medium (md): for devices with screen width between `768px` and `991px` (tablets).
|
|
128
|
+
- Large (lg): for devices with screen width between `992px` and `1199px` (small desktops).
|
|
129
|
+
- Extra Large (xl): for devices with screen width between `1200px` and `1599px` (desktops).
|
|
130
|
+
- Double Extra Large (xxl): for devices with screen width between `1600px` and `1919px`.
|
|
131
|
+
- Triple Extra Large (xxxl): for devices with screen width greater than `1920px`.
|
|
132
|
+
|
|
133
|
+
Refer to the react-grid-system documentation to understand how these breakpoints integrate with grid properties like grid-template-columns, ensuring your application looks great on any device.
|
|
134
|
+
|
|
135
|
+
## Additional Information
|
|
136
|
+
|
|
137
|
+
For more detailed information and advanced usage examples, visit the official documentation for [react-grid-system](https://sealninja.github.io/react-grid-system/#section-introduction). This documentation is highly relevant as our Grid component utilizes the same principles and properties, making it a robust tool for building adaptable user interfaces in conjunction with other UI components from our library../container/Grid.stories
|
|
138
|
+
./container/Container.stories
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Canvas, Meta, Controls } from '@storybook/blocks';
|
|
2
|
+
import * as ColStories from './Col.stories';
|
|
3
|
+
|
|
4
|
+
<Meta title="Layout/Grid" name="Col" />
|
|
5
|
+
|
|
6
|
+
# Column
|
|
7
|
+
|
|
8
|
+
This section provides documentation for the Col component, a flexible wrapper around the `react-grid-system` library's `Col` component. It facilitates the creation of responsive, adjustable columns within grid layouts, suitable for versatile layout designs.
|
|
9
|
+
|
|
10
|
+
## Default Column Configuration
|
|
11
|
+
|
|
12
|
+
The Col component in its default configuration is used to create flexible column spaces within a row, ensuring they adjust properly across different screen sizes.
|
|
13
|
+
|
|
14
|
+
<Canvas
|
|
15
|
+
of={ColStories.Default}
|
|
16
|
+
source={{
|
|
17
|
+
code: `
|
|
18
|
+
<Container fluid>
|
|
19
|
+
<Row>
|
|
20
|
+
<Col>
|
|
21
|
+
<div className="sb__sample-cell" />
|
|
22
|
+
</Col>
|
|
23
|
+
</Row>
|
|
24
|
+
</Container>`,
|
|
25
|
+
}}
|
|
26
|
+
/>
|
|
27
|
+
|
|
28
|
+
<Controls of={ColStories.Default} />
|
|
29
|
+
|
|
30
|
+
## Comprehensive Properties List
|
|
31
|
+
|
|
32
|
+
The `Col` component accepts the following properties to control its behavior and styling:
|
|
33
|
+
|
|
34
|
+
- **`children`** (node): Content of the column.
|
|
35
|
+
- **`xs`**, **`sm`**, **`md`**, **`lg`**, **`xl`**, **`xxl`** (number | string): Responsive column size specifications. Accepts numbers or percentage strings to define the width of the column relative to the row. **_EXAMPLE_** `<Col md="6">`
|
|
36
|
+
- **`offset`** (object): Defines the offset of the column for each breakpoint, such as `{ xs: 1, sm: 2, md: 1 }`.
|
|
37
|
+
- **`order`** (object): Defines the order of the column within the row across different breakpoints.
|
|
38
|
+
- **`alignSelf`** (enum): Aligns the column vertically within the row. Options: 'auto', 'start', 'center', 'end', 'stretch'.
|
|
39
|
+
- **`pull`**, **`push`** (object): Adjust the positioning of the column using 'pull' to move it to the left or 'push' to move it to the right at various breakpoints.
|
|
40
|
+
- **`width`** (number): A fixed width of the column for all screenclasses.
|
|
41
|
+
- **`noGutter`** (bool): If true, removes the gutters (padding) between columns.
|
|
42
|
+
- **`style`** (object): Inline styles that can be passed to the column for additional styling.
|
|
43
|
+
|
|
44
|
+
Each property allows for detailed control of the column's appearance and behavior, making the `Col` component highly adaptable for various design requirements. For more detailed information, refer to the [react-grid-system documentation](https://sealninja.github.io/react-grid-system/#col).
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Col } from '../col/Col';
|
|
3
|
+
import { Container, Row } from 'react-grid-system';
|
|
4
|
+
import '@/components/grid/Grid.scss';
|
|
5
|
+
|
|
6
|
+
const meta: Meta = {
|
|
7
|
+
title: 'remove/grid/col',
|
|
8
|
+
component: Col,
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default meta;
|
|
12
|
+
|
|
13
|
+
type Story = StoryObj<typeof Col>;
|
|
14
|
+
|
|
15
|
+
export const Default: Story = {
|
|
16
|
+
render: (args) => (
|
|
17
|
+
<Container fluid>
|
|
18
|
+
<Row>
|
|
19
|
+
<Col {...args}>
|
|
20
|
+
<div className="sb__sample-cell" />
|
|
21
|
+
</Col>
|
|
22
|
+
</Row>
|
|
23
|
+
</Container>
|
|
24
|
+
),
|
|
25
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Canvas, Meta, Controls } from '@storybook/blocks';
|
|
2
|
+
import * as ContainerStories from './Container.stories';
|
|
3
|
+
import '@/components/grid/Grid.scss';
|
|
4
|
+
|
|
5
|
+
<Meta title="Layout/Grid" name="Container" />
|
|
6
|
+
|
|
7
|
+
# Container
|
|
8
|
+
|
|
9
|
+
This section provides documentation for the Container component, a convenient wrapper around the well-established [react-grid-system](https://www.npmjs.com/package/react-grid-system) library. It supports a range of layout designs, from simple to complex, providing horizontal and vertical alignment with fine-grained control over spacing, alignment, and responsive behavior.
|
|
10
|
+
|
|
11
|
+
## Default Container Configuration
|
|
12
|
+
|
|
13
|
+
Here you can see the Container component in its default configuration.
|
|
14
|
+
|
|
15
|
+
<Canvas
|
|
16
|
+
of={ContainerStories.Default}
|
|
17
|
+
source={{
|
|
18
|
+
code: `
|
|
19
|
+
<Container>
|
|
20
|
+
<Row>
|
|
21
|
+
<Col sm={4}>
|
|
22
|
+
<div className="sb__sample-cell" />
|
|
23
|
+
</Col>
|
|
24
|
+
<Col sm={4}>
|
|
25
|
+
<div className="sb__sample-cell" />
|
|
26
|
+
</Col>
|
|
27
|
+
<Col sm={4}>
|
|
28
|
+
<div className="sb__sample-cell" />
|
|
29
|
+
</Col>
|
|
30
|
+
</Row>
|
|
31
|
+
</Container>`,
|
|
32
|
+
}}
|
|
33
|
+
/>
|
|
34
|
+
|
|
35
|
+
## Comprehensive Properties List
|
|
36
|
+
|
|
37
|
+
The `Container` component accepts the following properties to control its behavior and styling:
|
|
38
|
+
|
|
39
|
+
- **`children`** (node): Content of the component.
|
|
40
|
+
- **`component`** (elementType): Use your own component.
|
|
41
|
+
- **`fluid`** (bool): True makes the container full-width, false fixed-width.
|
|
42
|
+
- **`xs`**, **`sm`**, **`md`**, **`lg`**, **`xl`**, **`xxl`**, **`xxxl`** (number | string): True makes container fluid only in specificed breakpoint, not present means fluid everywhere.
|
|
43
|
+
- **`style`** (object): Optional styling.
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Container } from './Container';
|
|
3
|
+
import { Row } from '../row/Row';
|
|
4
|
+
import { Col } from '../col/Col';
|
|
5
|
+
|
|
6
|
+
const meta: Meta = {
|
|
7
|
+
title: 'remove/grid/container',
|
|
8
|
+
component: Container,
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default meta;
|
|
12
|
+
|
|
13
|
+
type Story = StoryObj<typeof Container>;
|
|
14
|
+
|
|
15
|
+
export const Default: Story = {
|
|
16
|
+
args: {
|
|
17
|
+
fluid: false,
|
|
18
|
+
},
|
|
19
|
+
render: (args) => (
|
|
20
|
+
<Container {...args}>
|
|
21
|
+
<Row>
|
|
22
|
+
<Col sm={4}>
|
|
23
|
+
<div className="sb__sample-cell" />
|
|
24
|
+
</Col>
|
|
25
|
+
<Col sm={4}>
|
|
26
|
+
<div className="sb__sample-cell" />
|
|
27
|
+
</Col>
|
|
28
|
+
<Col sm={4}>
|
|
29
|
+
<div className="sb__sample-cell" />
|
|
30
|
+
</Col>
|
|
31
|
+
</Row>
|
|
32
|
+
</Container>
|
|
33
|
+
),
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const Fluid: Story = {
|
|
37
|
+
args: {
|
|
38
|
+
fluid: true,
|
|
39
|
+
},
|
|
40
|
+
render: (args) => (
|
|
41
|
+
<Container {...args}>
|
|
42
|
+
<Row>
|
|
43
|
+
<Col sm={4}>
|
|
44
|
+
<div className="sb__sample-cell" />
|
|
45
|
+
</Col>
|
|
46
|
+
<Col sm={4}>
|
|
47
|
+
<div className="sb__sample-cell" />
|
|
48
|
+
</Col>
|
|
49
|
+
<Col sm={4}>
|
|
50
|
+
<div className="sb__sample-cell" />
|
|
51
|
+
</Col>
|
|
52
|
+
</Row>
|
|
53
|
+
</Container>
|
|
54
|
+
),
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export const Responsive: Story = {
|
|
58
|
+
render: (args) => (
|
|
59
|
+
<Container {...args}>
|
|
60
|
+
<Row>
|
|
61
|
+
<Col xs={6} sm={4} md={3} lg={2}>
|
|
62
|
+
<div className="sb__sample-cell" />
|
|
63
|
+
</Col>
|
|
64
|
+
<Col xs={6} sm={4} md={3} lg={2}>
|
|
65
|
+
<div className="sb__sample-cell" />
|
|
66
|
+
</Col>
|
|
67
|
+
<Col xs={6} sm={4} md={3} lg={2}>
|
|
68
|
+
<div className="sb__sample-cell" />
|
|
69
|
+
</Col>
|
|
70
|
+
<Col xs={6} sm={4} md={3} lg={2}>
|
|
71
|
+
<div className="sb__sample-cell" />
|
|
72
|
+
</Col>
|
|
73
|
+
</Row>
|
|
74
|
+
</Container>
|
|
75
|
+
),
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export const NestedGrids: Story = {
|
|
79
|
+
args: {
|
|
80
|
+
fluid: true,
|
|
81
|
+
},
|
|
82
|
+
render: (args) => (
|
|
83
|
+
<Container {...args}>
|
|
84
|
+
<Row>
|
|
85
|
+
<Col sm={6}>
|
|
86
|
+
<div className="sb__sample-cell-orange" />
|
|
87
|
+
<Row>
|
|
88
|
+
<Col sm={6}>
|
|
89
|
+
<div className="sb__sample-cell-green" />
|
|
90
|
+
</Col>
|
|
91
|
+
<Col sm={6}>
|
|
92
|
+
<div className="sb__sample-cell-green" />
|
|
93
|
+
</Col>
|
|
94
|
+
</Row>
|
|
95
|
+
</Col>
|
|
96
|
+
<Col sm={6}>
|
|
97
|
+
<div className="sb__sample-cell-secondary" />
|
|
98
|
+
</Col>
|
|
99
|
+
</Row>
|
|
100
|
+
</Container>
|
|
101
|
+
),
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export const Offset: Story = {
|
|
105
|
+
args: {
|
|
106
|
+
fluid: true,
|
|
107
|
+
},
|
|
108
|
+
render: (args) => (
|
|
109
|
+
<Container {...args}>
|
|
110
|
+
<Row>
|
|
111
|
+
<Col sm={3} offset={{ sm: 3 }}>
|
|
112
|
+
<div className="sb__sample-cell">Offset 3</div>
|
|
113
|
+
</Col>
|
|
114
|
+
</Row>
|
|
115
|
+
</Container>
|
|
116
|
+
),
|
|
117
|
+
};
|