@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,56 @@
|
|
|
1
|
+
import { Canvas, Meta, Controls } from '@storybook/blocks';
|
|
2
|
+
import * as RowStories from './Row.stories';
|
|
3
|
+
import '@/components/grid/Grid.scss';
|
|
4
|
+
|
|
5
|
+
<Meta title="Layout/Grid" name="Row" />
|
|
6
|
+
|
|
7
|
+
# Row
|
|
8
|
+
|
|
9
|
+
This section provides documentation for the Row component, a flexible wrapper around the `react-grid-system` library's `Row` component. It facilitates the creation of responsive, horizontally aligned groups of columns, suitable for building structured layouts.
|
|
10
|
+
|
|
11
|
+
## Default Row Configuration
|
|
12
|
+
|
|
13
|
+
The Row component in its default configuration is used to group columns effectively, ensuring they align properly in a horizontal layout.
|
|
14
|
+
|
|
15
|
+
<Canvas
|
|
16
|
+
of={RowStories.Default}
|
|
17
|
+
source={{
|
|
18
|
+
code: `
|
|
19
|
+
<Container fluid>
|
|
20
|
+
<Row className="sb__sample-row">
|
|
21
|
+
<Col>
|
|
22
|
+
<div className="sb__sample-cell" />
|
|
23
|
+
</Col>
|
|
24
|
+
<Col>
|
|
25
|
+
<div className="sb__sample-cell-red" />
|
|
26
|
+
</Col>
|
|
27
|
+
<Col>
|
|
28
|
+
<div className="sb__sample-cell-green" />
|
|
29
|
+
</Col>
|
|
30
|
+
</Row>
|
|
31
|
+
</Container>`,
|
|
32
|
+
}}
|
|
33
|
+
/>
|
|
34
|
+
|
|
35
|
+
## Props Documentation
|
|
36
|
+
|
|
37
|
+
Explore the properties of the Row component interactively below. Adjust different props to see how they influence the layout and behavior of the Row.
|
|
38
|
+
|
|
39
|
+
<Controls of={RowStories.Default} />
|
|
40
|
+
|
|
41
|
+
## Comprehensive Properties List
|
|
42
|
+
|
|
43
|
+
The `Row` component accepts the following properties to control its behavior and styling:
|
|
44
|
+
|
|
45
|
+
- **`children`** (node): Content of the element.
|
|
46
|
+
- **`align`** (enum): Vertical alignment of children within the row. Options: 'normal', 'start', 'center', 'end', 'stretch'.
|
|
47
|
+
- **`component`** (elementType): Use your own component instead of the default 'div'.
|
|
48
|
+
- **`debug`** (bool): Set to apply some debug styling.
|
|
49
|
+
- **`direction`** (enum): Flex-direction style attribute. Options: 'column', 'row', 'column-reverse', 'row-reverse'.
|
|
50
|
+
- **`gutterWidth`** (number): Custom gutter width for this row.
|
|
51
|
+
- **`justify`** (enum): Horizontal column alignment. Options: 'start', 'center', 'end', 'between', 'around', 'initial', 'inherit'.
|
|
52
|
+
- **`nogutter`** (bool): If true, removes the gutters (padding) between columns.
|
|
53
|
+
- **`style`** (object): Inline styles that can be passed to the row for additional styling.
|
|
54
|
+
- **`wrap`** (enum): Flex-wrap style attribute. Options: 'nowrap', 'wrap', 'reverse'.
|
|
55
|
+
|
|
56
|
+
Each property allows for granular control of the row's appearance and behavior, making the `Row` component highly customizable and versatile for various layout needs.For more information see the [react-grid-system documentation](https://sealninja.github.io/react-grid-system/#row).
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Row } from './Row';
|
|
3
|
+
import { Col } from '../col/Col';
|
|
4
|
+
import { Container } from 'react-grid-system';
|
|
5
|
+
|
|
6
|
+
const meta: Meta = {
|
|
7
|
+
title: 'remove/grid/row',
|
|
8
|
+
component: Row,
|
|
9
|
+
argTypes: {
|
|
10
|
+
align: {
|
|
11
|
+
control: 'select',
|
|
12
|
+
options: ['normal', 'start', 'center', 'end', 'stretch'],
|
|
13
|
+
description: 'Vertical column alignment',
|
|
14
|
+
type: { name: 'string', required: false },
|
|
15
|
+
table: {
|
|
16
|
+
type: { summary: 'normal | start | center | end | stretch' },
|
|
17
|
+
defaultValue: { summary: 'normal' },
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
debug: {
|
|
21
|
+
control: 'boolean',
|
|
22
|
+
description: 'Set to apply some debug styling',
|
|
23
|
+
type: { name: 'boolean', required: false },
|
|
24
|
+
table: {
|
|
25
|
+
type: { summary: 'boolean' },
|
|
26
|
+
defaultValue: { summary: 'false' },
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
direction: {
|
|
30
|
+
control: 'select',
|
|
31
|
+
options: ['column', 'row', 'column-reverse', 'row-reverse'],
|
|
32
|
+
description: 'Flex-direction style attribute',
|
|
33
|
+
type: { name: 'string', required: false },
|
|
34
|
+
table: {
|
|
35
|
+
type: { summary: 'column | row | column-reverse | row-reverse' },
|
|
36
|
+
defaultValue: { summary: 'row' },
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
justify: {
|
|
40
|
+
control: 'select',
|
|
41
|
+
options: ['start', 'center', 'end', 'between', 'around', 'initial', 'inherit'],
|
|
42
|
+
description: 'Horizontal column alignment',
|
|
43
|
+
type: { name: 'string', required: false },
|
|
44
|
+
table: {
|
|
45
|
+
type: { summary: 'start | center | end | between | around | initial | inherit' },
|
|
46
|
+
defaultValue: { summary: 'start' },
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
nogutter: {
|
|
50
|
+
control: 'boolean',
|
|
51
|
+
description: 'No gutter for this row',
|
|
52
|
+
type: { name: 'boolean', required: false },
|
|
53
|
+
table: {
|
|
54
|
+
type: { summary: 'boolean' },
|
|
55
|
+
defaultValue: { summary: 'false' },
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
wrap: {
|
|
59
|
+
control: 'select',
|
|
60
|
+
options: ['nowrap', 'wrap', 'wrap-reverse'],
|
|
61
|
+
description: 'Flex-wrap style attribute',
|
|
62
|
+
type: { name: 'string', required: false },
|
|
63
|
+
table: {
|
|
64
|
+
type: { summary: 'nowrap | wrap | wrap-reverse' },
|
|
65
|
+
defaultValue: { summary: 'wrap' },
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export default meta;
|
|
72
|
+
|
|
73
|
+
type Story = StoryObj<typeof Row>;
|
|
74
|
+
|
|
75
|
+
export const Default: Story = {
|
|
76
|
+
args: {
|
|
77
|
+
align: 'normal',
|
|
78
|
+
debug: false,
|
|
79
|
+
direction: 'row',
|
|
80
|
+
justify: 'start',
|
|
81
|
+
nogutter: false,
|
|
82
|
+
wrap: 'wrap',
|
|
83
|
+
},
|
|
84
|
+
render: ({ ref: _ref, ...rest }) => (
|
|
85
|
+
<Container fluid>
|
|
86
|
+
<Row {...rest} className="sb__sample-row">
|
|
87
|
+
<Col>
|
|
88
|
+
<div className="sb__sample-cell" />
|
|
89
|
+
</Col>
|
|
90
|
+
<Col>
|
|
91
|
+
<div className="sb__sample-cell-red" />
|
|
92
|
+
</Col>
|
|
93
|
+
<Col>
|
|
94
|
+
<div className="sb__sample-cell-green" />
|
|
95
|
+
</Col>
|
|
96
|
+
</Row>
|
|
97
|
+
</Container>
|
|
98
|
+
),
|
|
99
|
+
};
|
package/src/components/index.ts
CHANGED
|
@@ -1,39 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { Accordion } from './Accordion';
|
|
4
|
-
export { Section, SectionBlock, SectionBody, SectionHeader, SectionTable } from './basic-section';
|
|
5
|
-
export { Button, IconButton } from './buttons';
|
|
6
|
-
export { BorderSelect, MultiCombobox, Select, SingleCombobox } from './dropdowns';
|
|
7
|
-
export { Icon, faIcons, indicons } from './Icon';
|
|
8
|
-
export {
|
|
9
|
-
EditableInput,
|
|
10
|
-
NumberInput,
|
|
11
|
-
SearchInput,
|
|
12
|
-
TextInput,
|
|
13
|
-
Radio,
|
|
14
|
-
RadioGroup,
|
|
15
|
-
AbstractRadio,
|
|
16
|
-
AbstractRadioGroup,
|
|
17
|
-
DatePicker,
|
|
18
|
-
NoInputDatePicker,
|
|
19
|
-
} from './inputs';
|
|
20
|
-
export {
|
|
21
|
-
BarSpinner,
|
|
22
|
-
CirclePulse,
|
|
23
|
-
CircleSpinner,
|
|
24
|
-
LoadingList,
|
|
25
|
-
PercentageRing,
|
|
26
|
-
RandomLoadingMessage,
|
|
27
|
-
LoadingIndicator,
|
|
28
|
-
} from './loading-indicators';
|
|
29
|
-
export { ListTable } from './ListTable';
|
|
30
|
-
export { Pagination } from './Pagination';
|
|
31
|
-
export { Shrug } from './user-feedback';
|
|
32
|
-
export { ConfirmModal, ModalBase } from './modals';
|
|
33
|
-
export { LoadingAwareContainer } from './LoadingAwareContainer';
|
|
34
|
-
export { Wizard, WizardCard, WizardSection, StyledWizard } from './Wizard';
|
|
35
|
-
export { WizardWithSidebar } from './WizardWithSidebar';
|
|
36
|
-
export { Drawer } from './Navigation/Drawer';
|
|
37
|
-
export { TextTruncate } from './text-truncate';
|
|
38
|
-
export { Toggle } from './Toggle';
|
|
39
|
-
export { Tooltip } from './Tooltip';
|
|
1
|
+
export { Container, Col, Row } from './grid';
|
|
2
|
+
export { Button } from './button';
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import './styles/index.scss';
|
|
2
2
|
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
3
|
+
export { GlobalStyles } from './legacy/styles/globals/index';
|
|
4
|
+
export { faIcons } from './legacy/components/Icon/faIcons';
|
|
5
|
+
export { indicons } from './legacy/components/Icon/indicons';
|
|
5
6
|
|
|
6
7
|
export {
|
|
7
8
|
ANIMATION,
|
|
@@ -13,7 +14,7 @@ export {
|
|
|
13
14
|
PADDINGS,
|
|
14
15
|
SPACING,
|
|
15
16
|
TYPOGRAPHY,
|
|
16
|
-
} from './tokens';
|
|
17
|
+
} from './legacy/tokens';
|
|
17
18
|
|
|
18
19
|
export {
|
|
19
20
|
AbstractRadio,
|
|
@@ -21,7 +22,7 @@ export {
|
|
|
21
22
|
Accordion,
|
|
22
23
|
BarSpinner,
|
|
23
24
|
BorderSelect,
|
|
24
|
-
Button,
|
|
25
|
+
Button as LegacyButton,
|
|
25
26
|
CirclePulse,
|
|
26
27
|
CircleSpinner,
|
|
27
28
|
ConfirmModal,
|
|
@@ -60,6 +61,10 @@ export {
|
|
|
60
61
|
Toggle,
|
|
61
62
|
Tooltip,
|
|
62
63
|
WizardWithSidebar,
|
|
63
|
-
} from './components';
|
|
64
|
+
} from './legacy/components';
|
|
64
65
|
|
|
65
|
-
export { numberUtils, stringUtils, colorUtils } from './utils';
|
|
66
|
+
export { numberUtils, stringUtils, colorUtils } from './legacy/utils';
|
|
67
|
+
|
|
68
|
+
// New Components
|
|
69
|
+
export { Container, Row, Col } from './components/grid';
|
|
70
|
+
export { Button } from './components/button';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
|
|
4
|
-
import { Button } from '@/components';
|
|
4
|
+
import { Button } from '@/legacy/components';
|
|
5
5
|
import { Accordion } from './Accordion';
|
|
6
6
|
|
|
7
7
|
const content = (
|
|
@@ -28,7 +28,7 @@ const content = (
|
|
|
28
28
|
|
|
29
29
|
const meta = {
|
|
30
30
|
component: Accordion,
|
|
31
|
-
title: 'Accordion',
|
|
31
|
+
title: 'legacy/Accordion',
|
|
32
32
|
argTypes: {},
|
|
33
33
|
decorators: [
|
|
34
34
|
(Story) => (
|
|
@@ -12,7 +12,7 @@ const faIconsOptions: IconName[] = Object.keys(faIcons) as IconName[];
|
|
|
12
12
|
|
|
13
13
|
const meta = {
|
|
14
14
|
component: Icon,
|
|
15
|
-
title: 'Icon',
|
|
15
|
+
title: 'legacy/Icon',
|
|
16
16
|
argTypes: {
|
|
17
17
|
ariaLabel: { control: { disable: true } },
|
|
18
18
|
size: { description: '[value] or [height, width]' },
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
|
-
import { numberUtils } from '@/utils';
|
|
5
|
+
import { numberUtils } from '@/legacy/utils';
|
|
6
6
|
|
|
7
|
-
import { BorderSelect } from '@/components/dropdowns';
|
|
8
|
-
import { Button } from '@/components/buttons';
|
|
9
|
-
import { Icon } from '@/components/Icon';
|
|
7
|
+
import { BorderSelect } from '@/legacy/components/dropdowns';
|
|
8
|
+
import { Button } from '@/legacy/components/buttons';
|
|
9
|
+
import { Icon } from '@/legacy/components/Icon';
|
|
10
10
|
|
|
11
11
|
import { StyledHeader } from './Header.styles';
|
|
12
12
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
|
|
4
|
-
import { Button, Icon } from '@/components';
|
|
4
|
+
import { Button, Icon } from '@/legacy/components';
|
|
5
5
|
|
|
6
6
|
import { ListTable } from './ListTable';
|
|
7
7
|
import { mockUserHeaders, mockDocProcHeaders, mockAllUsers, mockDocProcReport } from './mock-data';
|
|
8
8
|
|
|
9
9
|
const meta = {
|
|
10
10
|
component: ListTable,
|
|
11
|
-
title: 'ListTable',
|
|
11
|
+
title: 'legacy/ListTable',
|
|
12
12
|
argTypes: {},
|
|
13
13
|
} satisfies Meta<typeof ListTable>;
|
|
14
14
|
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { v4 as uuid } from 'uuid';
|
|
5
5
|
|
|
6
|
-
import { Pagination } from '@/components/Pagination';
|
|
7
|
-
import { Accordion } from '@/components/Accordion';
|
|
8
|
-
import { LoadingList } from '@/components/loading-indicators';
|
|
9
|
-
import { Shrug } from '@/components/user-feedback';
|
|
10
|
-
import { SectionBody } from '@/components/basic-section';
|
|
6
|
+
import { Pagination } from '@/legacy/components/Pagination';
|
|
7
|
+
import { Accordion } from '@/legacy/components/Accordion';
|
|
8
|
+
import { LoadingList } from '@/legacy/components/loading-indicators';
|
|
9
|
+
import { Shrug } from '@/legacy/components/user-feedback';
|
|
10
|
+
import { SectionBody } from '@/legacy/components/basic-section';
|
|
11
11
|
|
|
12
12
|
import { PermafrostComponent } from '@/types';
|
|
13
13
|
|
package/src/{components → legacy/components}/LoadingAwareContainer/LoadingAwareContainer.stories.tsx
RENAMED
|
@@ -5,7 +5,7 @@ import { LoadingAwareContainer } from './LoadingAwareContainer';
|
|
|
5
5
|
|
|
6
6
|
const meta = {
|
|
7
7
|
component: LoadingAwareContainer,
|
|
8
|
-
title: 'LoadingAwareContainer',
|
|
8
|
+
title: 'legacy/LoadingAwareContainer',
|
|
9
9
|
argTypes: {
|
|
10
10
|
className: { control: { disable: true } },
|
|
11
11
|
style: { control: { disable: true } },
|
package/src/{components → legacy/components}/LoadingAwareContainer/LoadingAwareContainer.tsx
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
|
|
6
|
-
import { LoadingIndicator } from '@/components';
|
|
6
|
+
import { LoadingIndicator } from '@/legacy/components';
|
|
7
7
|
|
|
8
8
|
import { StyledLoadingAwareContainer, StyledStatusContainer } from './LoadingAwareContainer.styles';
|
|
9
9
|
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
1
|
|
|
3
|
-
|
|
4
|
-
$collapsedWidth?: string;
|
|
5
|
-
$expandedWidth?: string;
|
|
6
|
-
};
|
|
7
|
-
const fullViewportHeightMinusOffset = 'calc(100% - 42px)';
|
|
2
|
+
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
|
|
8
3
|
|
|
9
|
-
|
|
4
|
+
.pf__drawer__wrapper {
|
|
10
5
|
color: #444444;
|
|
11
6
|
background-color: white;
|
|
12
7
|
box-sizing: border-box;
|
|
@@ -16,23 +11,23 @@ export const StyledDrawer = styled.div<Props>`
|
|
|
16
11
|
box-shadow: 5px 0 10px rgba(0, 0, 0, 0.3);
|
|
17
12
|
overflow: hidden;
|
|
18
13
|
width: 100%;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
|
|
15
|
+
.pf__drawer__header__logo-text {
|
|
16
|
+
font-family: 'Poppins', sans-serif;
|
|
17
|
+
font-weight: 600;
|
|
18
|
+
}
|
|
19
|
+
|
|
22
20
|
a:link {
|
|
23
21
|
color: #444444;
|
|
24
22
|
}
|
|
23
|
+
|
|
25
24
|
a {
|
|
26
25
|
color: #444444;
|
|
27
26
|
text-decoration: none;
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
.drawer__wrapper {
|
|
31
|
-
width: 100%;
|
|
32
|
-
height: 100%;
|
|
33
|
-
}
|
|
34
29
|
|
|
35
|
-
.
|
|
30
|
+
.pf__drawer__header {
|
|
36
31
|
margin-bottom: 30px;
|
|
37
32
|
color: black;
|
|
38
33
|
display: flex;
|
|
@@ -40,7 +35,7 @@ export const StyledDrawer = styled.div<Props>`
|
|
|
40
35
|
padding-left: 10px;
|
|
41
36
|
white-space: nowrap;
|
|
42
37
|
|
|
43
|
-
.
|
|
38
|
+
.pf__drawer__header__text {
|
|
44
39
|
overflow: hidden;
|
|
45
40
|
transition: opacity 0.2s ease-in-out;
|
|
46
41
|
}
|
|
@@ -52,24 +47,15 @@ export const StyledDrawer = styled.div<Props>`
|
|
|
52
47
|
|
|
53
48
|
p {
|
|
54
49
|
font-size: 20px;
|
|
55
|
-
font-weight: 500;
|
|
56
50
|
margin: 0 0 0 12px;
|
|
57
51
|
}
|
|
58
52
|
}
|
|
59
53
|
|
|
60
|
-
.
|
|
54
|
+
.pf__drawer__content {
|
|
55
|
+
height: calc(100% - 42px);
|
|
61
56
|
display: flex;
|
|
62
57
|
flex-direction: column;
|
|
63
58
|
justify-content: space-between;
|
|
64
|
-
height: ${fullViewportHeightMinusOffset};
|
|
65
59
|
padding-bottom: 10px;
|
|
66
60
|
}
|
|
67
|
-
|
|
68
|
-
&.drawer--open {
|
|
69
|
-
width: ${(props: Props) => (props.$expandedWidth ? `${props.$expandedWidth}px` : '245px')};
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&.drawer--closed {
|
|
73
|
-
width: ${(props: Props) => (props.$collapsedWidth ? `${props.$collapsedWidth}px` : '50px')};
|
|
74
|
-
}
|
|
75
|
-
`;
|
|
61
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
|
|
3
|
-
import { Drawer } from '@/components/Navigation/Drawer';
|
|
3
|
+
import { Drawer } from '@/legacy/components/Navigation/Drawer';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { footerItems, navigationItems } from './__mocks__/mocks';
|
|
6
6
|
import { MemoryRouter } from 'react-router-dom';
|
|
@@ -8,7 +8,7 @@ import { MemoryRouter } from 'react-router-dom';
|
|
|
8
8
|
const meta: Meta<typeof Drawer> = {
|
|
9
9
|
component: Drawer,
|
|
10
10
|
tags: ['autodocs'],
|
|
11
|
-
title: 'Navigation/Drawer',
|
|
11
|
+
title: 'legacy/Navigation/Drawer',
|
|
12
12
|
decorators: [
|
|
13
13
|
(Story) => (
|
|
14
14
|
<MemoryRouter initialEntries={['/']}>
|
|
@@ -37,7 +37,6 @@ export const Normal: Story = {
|
|
|
37
37
|
args: {
|
|
38
38
|
logoText: 'INDICO INSIGHTS',
|
|
39
39
|
logoIcon: 'indico-o',
|
|
40
|
-
$expandedWidth: '245',
|
|
41
40
|
navigationItems: navigationItems,
|
|
42
41
|
footerItems: footerItems,
|
|
43
42
|
},
|
|
@@ -11,16 +11,11 @@
|
|
|
11
11
|
-Combine headerComponent, logoText and logoIcon props into one prop and functionality
|
|
12
12
|
*/
|
|
13
13
|
import React from 'react';
|
|
14
|
-
|
|
15
|
-
import classNames from 'classnames';
|
|
16
|
-
|
|
17
14
|
import { IconName, PermafrostComponent } from '@/types';
|
|
18
|
-
|
|
19
|
-
import { StyledDrawer } from './Drawer.styles';
|
|
20
15
|
import { Icon } from '../../Icon';
|
|
21
16
|
import { DrawerLinkList } from './DrawerLinkList';
|
|
22
|
-
|
|
23
17
|
import { ListItem } from './types';
|
|
18
|
+
import './Drawer.scss';
|
|
24
19
|
|
|
25
20
|
type Props = PermafrostComponent & {
|
|
26
21
|
style?: React.CSSProperties;
|
|
@@ -29,31 +24,25 @@ type Props = PermafrostComponent & {
|
|
|
29
24
|
headerComponent?: React.ReactNode;
|
|
30
25
|
navigationItems?: ListItem[];
|
|
31
26
|
footerItems?: ListItem[];
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
expandedWidth?: string;
|
|
28
|
+
collapsedWidth?: string;
|
|
34
29
|
};
|
|
35
30
|
|
|
36
31
|
export const Drawer = (props: Props) => {
|
|
37
32
|
const {
|
|
38
33
|
id,
|
|
39
|
-
className,
|
|
40
34
|
style = {},
|
|
41
35
|
logoText,
|
|
42
36
|
logoIcon,
|
|
43
37
|
navigationItems,
|
|
44
38
|
footerItems,
|
|
45
39
|
headerComponent,
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
expandedWidth = '245px',
|
|
41
|
+
collapsedWidth = '50px',
|
|
48
42
|
...restOfProps
|
|
49
43
|
} = props;
|
|
50
44
|
|
|
51
45
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
52
|
-
const drawerClasses = classNames('drawer', className, {
|
|
53
|
-
'drawer--open': isOpen,
|
|
54
|
-
'drawer--closed': !isOpen,
|
|
55
|
-
});
|
|
56
|
-
|
|
57
46
|
const handleMouseOver = () => {
|
|
58
47
|
setIsOpen(true);
|
|
59
48
|
};
|
|
@@ -62,47 +51,57 @@ export const Drawer = (props: Props) => {
|
|
|
62
51
|
setIsOpen(false);
|
|
63
52
|
};
|
|
64
53
|
|
|
54
|
+
const currentWidth = isOpen ? expandedWidth : collapsedWidth;
|
|
55
|
+
|
|
65
56
|
return (
|
|
66
|
-
<
|
|
57
|
+
<div
|
|
67
58
|
id={id}
|
|
68
59
|
data-cy={props['data-cy']}
|
|
69
60
|
data-testid={props['data-testid']}
|
|
70
|
-
style={
|
|
61
|
+
style={{
|
|
62
|
+
...style,
|
|
63
|
+
}}
|
|
71
64
|
{...restOfProps}
|
|
72
|
-
className={drawerClasses}
|
|
73
65
|
onMouseOver={handleMouseOver}
|
|
74
66
|
onMouseOut={handleMouseOut}
|
|
75
67
|
aria-expanded={isOpen}
|
|
76
|
-
$expandedWidth={$expandedWidth}
|
|
77
|
-
$collapsedWidth={$collapsedWidth}
|
|
78
68
|
>
|
|
79
|
-
<div
|
|
80
|
-
|
|
69
|
+
<div
|
|
70
|
+
className={'pf__drawer__wrapper'}
|
|
71
|
+
style={{
|
|
72
|
+
width: currentWidth,
|
|
73
|
+
}}
|
|
74
|
+
>
|
|
75
|
+
<div className="pf__drawer__header">
|
|
81
76
|
{headerComponent ? (
|
|
82
77
|
headerComponent
|
|
83
78
|
) : (
|
|
84
79
|
<span>
|
|
85
80
|
{logoIcon ? <Icon name={logoIcon} size={[24]} data-testid="logo-icon" /> : null}
|
|
86
|
-
<p
|
|
81
|
+
<p
|
|
82
|
+
data-testid="logo-text"
|
|
83
|
+
className="pf__drawer__header__logo-text"
|
|
84
|
+
aria-hidden={!isOpen}
|
|
85
|
+
>
|
|
87
86
|
{logoText}
|
|
88
87
|
</p>
|
|
89
88
|
</span>
|
|
90
89
|
)}
|
|
91
90
|
</div>
|
|
92
|
-
<div className="
|
|
91
|
+
<div className="pf__drawer__content">
|
|
93
92
|
{navigationItems?.length ? (
|
|
94
|
-
<div className="
|
|
93
|
+
<div className="pf__drawer__navigation" data-testid="drawer-navigation">
|
|
95
94
|
<DrawerLinkList isOpen={isOpen} listItems={navigationItems} />
|
|
96
95
|
</div>
|
|
97
96
|
) : null}
|
|
98
97
|
|
|
99
98
|
{footerItems?.length ? (
|
|
100
|
-
<div className="
|
|
99
|
+
<div className="pf__drawer__footer" data-testid="drawer-footer">
|
|
101
100
|
<DrawerLinkList isOpen={isOpen} listItems={footerItems} />
|
|
102
101
|
</div>
|
|
103
102
|
) : null}
|
|
104
103
|
</div>
|
|
105
104
|
</div>
|
|
106
|
-
</
|
|
105
|
+
</div>
|
|
107
106
|
);
|
|
108
107
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { TYPOGRAPHY } from '@/tokens';
|
|
3
2
|
|
|
4
3
|
export const StyledDrawerLinkList = styled.div`
|
|
5
4
|
.drawer__list {
|
|
@@ -8,8 +7,8 @@ export const StyledDrawerLinkList = styled.div`
|
|
|
8
7
|
.drawer__list__item {
|
|
9
8
|
box-sizing: border-box;
|
|
10
9
|
margin-bottom: 10px;
|
|
11
|
-
font-weight:
|
|
12
|
-
font-size:
|
|
10
|
+
font-weight: 500;
|
|
11
|
+
font-size: 16px;
|
|
13
12
|
display: flex;
|
|
14
13
|
align-items: center;
|
|
15
14
|
padding-top: 12px;
|
|
@@ -41,7 +40,7 @@ export const StyledDrawerLinkList = styled.div`
|
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
.drawer__list__item__link {
|
|
44
|
-
font-size:
|
|
43
|
+
font-size: 16px;
|
|
45
44
|
display: flex;
|
|
46
45
|
align-items: center;
|
|
47
46
|
|