@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
package/rollup.config.mjs
CHANGED
|
@@ -35,7 +35,12 @@ export default [
|
|
|
35
35
|
commonjs(),
|
|
36
36
|
typescript(),
|
|
37
37
|
postcss({
|
|
38
|
-
extensions: ['.css'],
|
|
38
|
+
extensions: ['.css', '.scss'],
|
|
39
|
+
modules: false,
|
|
40
|
+
namedExports: true,
|
|
41
|
+
use: ['sass'],
|
|
42
|
+
extract: true,
|
|
43
|
+
minimize: false,
|
|
39
44
|
}),
|
|
40
45
|
],
|
|
41
46
|
},
|
|
@@ -43,6 +48,6 @@ export default [
|
|
|
43
48
|
input: 'lib/index.d.ts',
|
|
44
49
|
output: [{ file: 'lib/index.d.ts', format: 'es' }],
|
|
45
50
|
plugins: [dts()],
|
|
46
|
-
external: [/\.css$/],
|
|
51
|
+
external: [/\.css$/, /\.scss$/],
|
|
47
52
|
},
|
|
48
|
-
];
|
|
53
|
+
];
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { Canvas, Meta, Controls, Story } from '@storybook/blocks';
|
|
2
|
+
import * as ButtonStories from './Button.stories';
|
|
3
|
+
import { Col, Row } from '../grid/';
|
|
4
|
+
|
|
5
|
+
<Meta title="Components/Button" name="Button Docs" of={ButtonStories} />
|
|
6
|
+
|
|
7
|
+
# Button
|
|
8
|
+
|
|
9
|
+
The Button component is one of the most versitile components we can use in our Design System. This component has a lot of different variations and can be used in many different ways. Toggle through the various options below in order achieve the optimal button state for your use case.
|
|
10
|
+
|
|
11
|
+
<Canvas of={ButtonStories.Primary} />
|
|
12
|
+
|
|
13
|
+
### The following props are available for the Button component:
|
|
14
|
+
|
|
15
|
+
<Controls of={ButtonStories.Primary} />
|
|
16
|
+
|
|
17
|
+
## Sizes
|
|
18
|
+
|
|
19
|
+
The Sizes available are `small`, `medium`, and `large`. The default size is `medium`.
|
|
20
|
+
|
|
21
|
+
<Row>
|
|
22
|
+
<Col xs={2}>
|
|
23
|
+
<Story of={ButtonStories.Small} />
|
|
24
|
+
</Col>
|
|
25
|
+
<Col xs={2}>
|
|
26
|
+
<Story of={ButtonStories.Medium} />
|
|
27
|
+
</Col>
|
|
28
|
+
<Col xs={2}>
|
|
29
|
+
<Story of={ButtonStories.Large} />
|
|
30
|
+
</Col>
|
|
31
|
+
</Row>
|
|
32
|
+
|
|
33
|
+
## Variants
|
|
34
|
+
|
|
35
|
+
The variants available are `solid`, `outline`, and `text`. The default variant is `solid`.'
|
|
36
|
+
|
|
37
|
+
<Row>
|
|
38
|
+
<Col xs={2}>
|
|
39
|
+
<Story of={ButtonStories.Primary} />
|
|
40
|
+
</Col>
|
|
41
|
+
<Col xs={2}>
|
|
42
|
+
<Story of={ButtonStories.PrimaryOutline} />
|
|
43
|
+
</Col>
|
|
44
|
+
<Col xs={2}>
|
|
45
|
+
<Story of={ButtonStories.Text} />
|
|
46
|
+
</Col>
|
|
47
|
+
</Row>
|
|
48
|
+
|
|
49
|
+
## Colors
|
|
50
|
+
|
|
51
|
+
The colors available are `primary`, `secondary`, `info`, `error`, `warning`, and `success`. The default color is `primary`.
|
|
52
|
+
|
|
53
|
+
<Row>
|
|
54
|
+
<Col xs={6} sm={4} md={3} lg={2}>
|
|
55
|
+
<Story of={ButtonStories.Primary} />
|
|
56
|
+
</Col>
|
|
57
|
+
<Col xs={6} sm={4} md={3} lg={2}>
|
|
58
|
+
<Story of={ButtonStories.Secondary} />
|
|
59
|
+
</Col>
|
|
60
|
+
<Col xs={6} sm={4} md={3} lg={2}>
|
|
61
|
+
<Story of={ButtonStories.Info} />
|
|
62
|
+
</Col>
|
|
63
|
+
<Col xs={6} sm={4} md={3} lg={2}>
|
|
64
|
+
<Story of={ButtonStories.Error} />
|
|
65
|
+
</Col>
|
|
66
|
+
<Col xs={6} sm={4} md={3} lg={2}>
|
|
67
|
+
<Story of={ButtonStories.Warning} />
|
|
68
|
+
</Col>
|
|
69
|
+
<Col xs={6} sm={4} md={3} lg={2}>
|
|
70
|
+
<Story of={ButtonStories.Success} />
|
|
71
|
+
</Col>
|
|
72
|
+
</Row>
|
|
73
|
+
|
|
74
|
+
## States
|
|
75
|
+
|
|
76
|
+
The states available are enabled, `disabled`, and `loading`. The button is enabled by default
|
|
77
|
+
|
|
78
|
+
<Row>
|
|
79
|
+
<Col xs={6} sm={4} md={3} lg={2}>
|
|
80
|
+
<Story of={ButtonStories.Loading} />
|
|
81
|
+
</Col>
|
|
82
|
+
<Col xs={2}>
|
|
83
|
+
<Story of={ButtonStories.Disabled} />
|
|
84
|
+
</Col>
|
|
85
|
+
</Row>
|
|
86
|
+
|
|
87
|
+
## Icons
|
|
88
|
+
|
|
89
|
+
The Icon property requires you to pass two arguments, `iconName` and `iconPosition`. The `iconName` is the name of the icon you want to use and the `iconPosition` is the position of the icon in relation to the text. The default value for `iconPosition` is `left`. The Options for `iconPosition` are `left` and `right`.
|
|
90
|
+
|
|
91
|
+
<Row>
|
|
92
|
+
<Col xs={6} sm={4} md={3} lg={2}>
|
|
93
|
+
<Story of={ButtonStories.IconLeft} />
|
|
94
|
+
</Col>
|
|
95
|
+
<Col xs={2}>
|
|
96
|
+
<Story of={ButtonStories.IconRight} />
|
|
97
|
+
</Col>
|
|
98
|
+
</Row>
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
// Variables
|
|
2
|
+
:root [data-theme='light'],
|
|
3
|
+
:root {
|
|
4
|
+
// Typography
|
|
5
|
+
--pf-button-font-weight-bold: var(--pf-font-weight-bold);
|
|
6
|
+
--pf-button-font-weight-regular: var(--pf-button-font-weight-regular);
|
|
7
|
+
--pf-button-background-primary-color: var(--pf-primary-color);
|
|
8
|
+
--pf-button-disabled-primary-color: var(--pf-primary-color-300);
|
|
9
|
+
--pf-button-focus-primary-color: var(--pf-primary-color-900);
|
|
10
|
+
--pf-button-hover-primary-color: var(--pf-primary-color-400);
|
|
11
|
+
--pf-button-outline-hover-primary-color: var(--pf-primary-color-100);
|
|
12
|
+
--pf-button-primary-color: var(--pf-primary-color);
|
|
13
|
+
--pf-button-primary-text-color: var(--pf-white-color);
|
|
14
|
+
|
|
15
|
+
// Secondary Button Colors
|
|
16
|
+
--pf-button-background-secondary-color: var(--pf-secondary-color);
|
|
17
|
+
--pf-button-disabled-secondary-color: var(--pf-secondary-color-300);
|
|
18
|
+
--pf-button-focus-secondary-color: var(--pf-secondary-color-900);
|
|
19
|
+
--pf-button-hover-secondary-color: var(--pf-secondary-color-400);
|
|
20
|
+
--pf-button-outline-hover-secondary-color: var(--pf-secondary-color-100);
|
|
21
|
+
--pf-button-secondary-color: var(--pf-secondary-color);
|
|
22
|
+
--pf-button-secondary-text-color: var(--pf-white-color);
|
|
23
|
+
|
|
24
|
+
// Error Button Colors
|
|
25
|
+
--pf-button-background-error-color: var(--pf-error-color);
|
|
26
|
+
--pf-button-disabled-error-color: var(--pf-red-color-300);
|
|
27
|
+
--pf-button-focus-error-color: var(--pf-red-color-900);
|
|
28
|
+
--pf-button-hover-error-color: var(--pf-red-color-400);
|
|
29
|
+
--pf-button-error-color: var(--pf-error-color);
|
|
30
|
+
--pf-button-error-text-color: var(--pf-white-color);
|
|
31
|
+
--pf-button-outline-hover-error-color: var(--pf-red-color-100);
|
|
32
|
+
|
|
33
|
+
// Success Button Colors
|
|
34
|
+
--pf-button-background-success-color: var(--pf-success-color);
|
|
35
|
+
--pf-button-disabled-success-color: var(--pf-green-color-300);
|
|
36
|
+
--pf-button-focus-success-color: var(--pf-green-color-900);
|
|
37
|
+
--pf-button-hover-success-color: var(--pf-green-color-400);
|
|
38
|
+
--pf-button-success-color: var(--pf-success-color);
|
|
39
|
+
--pf-button-success-text-color: var(--pf-white-color);
|
|
40
|
+
--pf-button-outline-hover-success-color: var(--pf-green-color-100);
|
|
41
|
+
|
|
42
|
+
// Warning Button Colors
|
|
43
|
+
--pf-button-background-warning-color: var(--pf-warning-color);
|
|
44
|
+
--pf-button-disabled-warning-color: var(--pf-orange-color-300);
|
|
45
|
+
--pf-button-focus-warning-color: var(--pf-orange-color-900);
|
|
46
|
+
--pf-button-hover-warning-color: var(--pf-orange-color-400);
|
|
47
|
+
--pf-button-warning-color: var(--pf-warning-color);
|
|
48
|
+
--pf-button-warning-text-color: var(--pf-white-color);
|
|
49
|
+
--pf-button-outline-hover-warning-color: var(--pf-orange-color-100);
|
|
50
|
+
|
|
51
|
+
// Info Button Colors
|
|
52
|
+
--pf-button-background-info-color: var(--pf-info-color);
|
|
53
|
+
--pf-button-disabled-info-color: var(--pf-gray-color-300);
|
|
54
|
+
--pf-button-focus-info-color: var(--pf-gray-color-900);
|
|
55
|
+
--pf-button-hover-info-color: var(--pf-gray-color-400);
|
|
56
|
+
--pf-button-info-color: var(--pf-info-color);
|
|
57
|
+
--pf-button-info-text-color: var(--pf-white-color);
|
|
58
|
+
--pf-button-outline-hover-info-color: var(--pf-gray-color-100);
|
|
59
|
+
|
|
60
|
+
// Gray Button Color
|
|
61
|
+
--pf-button-gray-color: var(--pf-gray-color);
|
|
62
|
+
--pf-button-gray-disabled-color: var(--pf-gray-color-400);
|
|
63
|
+
|
|
64
|
+
// Outline Buttons
|
|
65
|
+
--pf-button-outline-background-color: var(--pf-white-color);
|
|
66
|
+
|
|
67
|
+
// Button Radius
|
|
68
|
+
--pf-button-rounded: var(--pf-rounded);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.btn {
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
padding: var(--pf-padding-0) var(--pf-padding-3);
|
|
74
|
+
font-family: var(--pf-font-family-base);
|
|
75
|
+
align-items: center;
|
|
76
|
+
border-radius: var(--pf-button-rounded);
|
|
77
|
+
border-width: 1px;
|
|
78
|
+
border-style: solid;
|
|
79
|
+
font-weight: var(--pf-button-font-weight-bold);
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
&:disabled {
|
|
82
|
+
cursor: not-allowed;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Button Sizes
|
|
87
|
+
.btn--sm {
|
|
88
|
+
height: 28px;
|
|
89
|
+
padding-left: var(--pf-padding-2);
|
|
90
|
+
padding-right: var(--pf-padding-2);
|
|
91
|
+
font-size: var(--pf-font-size-body2);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.btn--md {
|
|
95
|
+
height: 36px;
|
|
96
|
+
padding-left: var(--pf-padding-3);
|
|
97
|
+
padding-right: var(--pf-padding-3);
|
|
98
|
+
font-size: var(--pf-font-size-body);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.btn--lg {
|
|
102
|
+
height: 40px;
|
|
103
|
+
padding-left: var(--pf-padding-4);
|
|
104
|
+
padding-right: var(--pf-padding-4);
|
|
105
|
+
font-size: var(--pf-font-size-h2);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@mixin button-variant($color-name) {
|
|
109
|
+
background: var(--pf-button-#{$color-name}-color);
|
|
110
|
+
color: var(--pf-button-#{$color-name}-text-color);
|
|
111
|
+
border-color: var(--pf-button-#{$color-name}-color);
|
|
112
|
+
|
|
113
|
+
&:hover {
|
|
114
|
+
border-color: var(--pf-button-hover-#{$color-name}-color);
|
|
115
|
+
background: var(--pf-button-hover-#{$color-name}-color);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&:focus {
|
|
119
|
+
border-color: var(--pf-button-focus-#{$color-name}-color);
|
|
120
|
+
background: var(--pf-button-focus-#{$color-name}-color);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&:disabled {
|
|
124
|
+
background: var(--pf-button-disabled-#{$color-name}-color);
|
|
125
|
+
border-color: var(--pf-button-disabled-#{$color-name}-color);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&.btn--outline {
|
|
129
|
+
color: var(--pf-button-#{$color-name}-color);
|
|
130
|
+
background-color: var(--pf-button-outline-background-color);
|
|
131
|
+
|
|
132
|
+
&:hover {
|
|
133
|
+
background-color: var(--pf-button-outline-hover-#{$color-name}-color);
|
|
134
|
+
border-color: var(--pf-button-hover-#{$color-name}-color);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&:focus {
|
|
138
|
+
border-color: var(--pf-button-focus-#{$color-name}-color);
|
|
139
|
+
background-color: var(--pf-button-outline-hover-#{$color-name}-color);
|
|
140
|
+
color: var(--pf-button-focus-#{$color-name}-color);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&:disabled {
|
|
144
|
+
border-color: var(--pf-button-disabled-#{$color-name}-color);
|
|
145
|
+
color: var(--pf-button-disabled-#{$color-name}-color);
|
|
146
|
+
&:hover {
|
|
147
|
+
border-color: var(--pf-button-disabled-#{$color-name}-color);
|
|
148
|
+
color: var(--pf-button-disabled-#{$color-name}-color);
|
|
149
|
+
background-color: var(--pf-button-outline-background-color);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.btn--primary {
|
|
156
|
+
@include button-variant('primary');
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.btn--secondary {
|
|
160
|
+
@include button-variant('secondary');
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.btn--info {
|
|
164
|
+
@include button-variant('info');
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.btn--error {
|
|
168
|
+
@include button-variant('error');
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.btn--success {
|
|
172
|
+
@include button-variant('success');
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.btn--warning {
|
|
176
|
+
@include button-variant('warning');
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.btn--text {
|
|
180
|
+
background-color: transparent;
|
|
181
|
+
border: solid 1px transparent;
|
|
182
|
+
color: var(--pf-link-color);
|
|
183
|
+
font-weight: var(--pf-button-font-weight-regular);
|
|
184
|
+
&:hover {
|
|
185
|
+
background-color: transparent;
|
|
186
|
+
border: solid 1px transparent;
|
|
187
|
+
text-decoration: underline;
|
|
188
|
+
}
|
|
189
|
+
&:focus {
|
|
190
|
+
background-color: transparent;
|
|
191
|
+
border: solid 1px transparent;
|
|
192
|
+
color: var(--pf-link-hover-color);
|
|
193
|
+
}
|
|
194
|
+
&:disabled {
|
|
195
|
+
color: var(--pf-button-gray-disabled-color);
|
|
196
|
+
&:hover {
|
|
197
|
+
color: var(--pf-button-gray-disabled-color);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// Button Varians
|
|
203
|
+
.btn--solid {
|
|
204
|
+
color: var(--pf-white-color);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// Button Colors
|
|
208
|
+
.btn--primary,
|
|
209
|
+
.btn--secondary,
|
|
210
|
+
.btn--info,
|
|
211
|
+
.btn--error,
|
|
212
|
+
.btn--success,
|
|
213
|
+
.btn--warning {
|
|
214
|
+
&.btn--text {
|
|
215
|
+
border: solid 1px transparent;
|
|
216
|
+
font-weight: var(--pf-button-font-weight-regular);
|
|
217
|
+
|
|
218
|
+
&:hover:disabled {
|
|
219
|
+
background-color: transparent;
|
|
220
|
+
}
|
|
221
|
+
&:disabled {
|
|
222
|
+
background-color: transparent;
|
|
223
|
+
border-color: transparent;
|
|
224
|
+
color: var(--pf-button-gray-disabled-color);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.btn--primary.btn--text {
|
|
230
|
+
color: var(--pf-button-primary-color);
|
|
231
|
+
background: transparent;
|
|
232
|
+
&:hover {
|
|
233
|
+
background: transparent;
|
|
234
|
+
color: var(--pf-button-primary-color);
|
|
235
|
+
}
|
|
236
|
+
&:disabled {
|
|
237
|
+
color: var(--pf-button-gray-disabled-color);
|
|
238
|
+
&:hover {
|
|
239
|
+
color: var(--pf-button-gray-disabled-color);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.btn--secondary.btn--text {
|
|
245
|
+
background: transparent;
|
|
246
|
+
color: var(--pf-button-secondary-color);
|
|
247
|
+
&:hover {
|
|
248
|
+
background: transparent;
|
|
249
|
+
color: var(--pf-button-secondary-color);
|
|
250
|
+
}
|
|
251
|
+
&:disabled {
|
|
252
|
+
color: var(--pf-button-gray-disabled-color);
|
|
253
|
+
&:hover {
|
|
254
|
+
color: var(--pf-button-gray-disabled-color);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.btn--info.btn--text {
|
|
260
|
+
background: transparent;
|
|
261
|
+
color: var(--pf-button-info-color);
|
|
262
|
+
&:hover {
|
|
263
|
+
background: transparent;
|
|
264
|
+
color: var(--pf-button-info-color);
|
|
265
|
+
}
|
|
266
|
+
&:disabled {
|
|
267
|
+
color: var(--pf-button-gray-disabled-color);
|
|
268
|
+
&:hover {
|
|
269
|
+
color: var(--pf-button-gray-disabled-color);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
.btn--outline {
|
|
274
|
+
background-color: var(--pf-button-outline-background-color);
|
|
275
|
+
}
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Button } from './Button';
|
|
3
|
+
const exampleIcons = ['fa-check', 'fa-times']; // TODO -- get ALL icons
|
|
4
|
+
|
|
5
|
+
const meta: Meta = {
|
|
6
|
+
title: 'Components/Button',
|
|
7
|
+
component: Button,
|
|
8
|
+
argTypes: {
|
|
9
|
+
children: {
|
|
10
|
+
table: {
|
|
11
|
+
disable: true,
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
variant: {
|
|
15
|
+
control: 'select',
|
|
16
|
+
options: ['solid', 'outline', 'text'],
|
|
17
|
+
description: 'It sets the variant style for the button',
|
|
18
|
+
table: {
|
|
19
|
+
category: 'Styling',
|
|
20
|
+
type: {
|
|
21
|
+
summary: ['solid', 'outline', 'text'],
|
|
22
|
+
},
|
|
23
|
+
defaultValue: { summary: 'solid' },
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
color: {
|
|
27
|
+
control: 'select',
|
|
28
|
+
options: ['primary', 'secondary', 'warning', 'error', 'success', 'info'],
|
|
29
|
+
description: 'It sets the color for the button',
|
|
30
|
+
table: {
|
|
31
|
+
category: 'Styling',
|
|
32
|
+
type: {
|
|
33
|
+
summary: ['primary', 'secondary', 'warning', 'error', 'success', 'info'],
|
|
34
|
+
},
|
|
35
|
+
defaultValue: { summary: 'primary' }, // replace 'default' with your actual default color
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
size: {
|
|
39
|
+
control: 'select',
|
|
40
|
+
options: ['sm', 'md', 'lg'],
|
|
41
|
+
description: 'It sets the size for the button',
|
|
42
|
+
defaultValue: { summary: 'md' },
|
|
43
|
+
table: {
|
|
44
|
+
category: 'Styling',
|
|
45
|
+
type: {
|
|
46
|
+
summary: ['sm', 'md', 'lg'],
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
type: {
|
|
51
|
+
table: {
|
|
52
|
+
category: 'accessibility',
|
|
53
|
+
type: {
|
|
54
|
+
summary: ['button', 'submit', 'reset'],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
description: 'It sets the type for the button.',
|
|
58
|
+
defaultValue: { summary: 'button' },
|
|
59
|
+
control: 'select',
|
|
60
|
+
options: ['button', 'submit', 'reset'],
|
|
61
|
+
},
|
|
62
|
+
iconPosition: {
|
|
63
|
+
description:
|
|
64
|
+
'Sets an icon to the left or right of the child element inside the button. It requires an icon to be set.',
|
|
65
|
+
table: {
|
|
66
|
+
category: 'Styling',
|
|
67
|
+
defaultValue: { summary: 'left' },
|
|
68
|
+
type: {
|
|
69
|
+
summary: ['left', 'right'],
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
control: 'select',
|
|
73
|
+
options: ['left', 'right'],
|
|
74
|
+
},
|
|
75
|
+
iconName: {
|
|
76
|
+
table: {
|
|
77
|
+
category: 'Styling',
|
|
78
|
+
type: {
|
|
79
|
+
summary: Object.values(exampleIcons).join(' | '),
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
description:
|
|
83
|
+
'Sets the icon for the button. The icons are pulled from the design system icon library. Only a couple examples are shown here.',
|
|
84
|
+
control: 'select',
|
|
85
|
+
options: Object.values(exampleIcons),
|
|
86
|
+
},
|
|
87
|
+
ariaLabel: {
|
|
88
|
+
description: 'Sets the aria-label attribute for the button.',
|
|
89
|
+
table: {
|
|
90
|
+
category: 'accessibility',
|
|
91
|
+
type: {
|
|
92
|
+
summary: 'string',
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
control: 'text',
|
|
96
|
+
},
|
|
97
|
+
onClick: {
|
|
98
|
+
description: 'Triggers a callback on button click',
|
|
99
|
+
table: { category: 'callbacks' },
|
|
100
|
+
action: 'clicked',
|
|
101
|
+
},
|
|
102
|
+
onMouseEnter: {
|
|
103
|
+
description: 'Triggers a callback on mouse enter.',
|
|
104
|
+
table: { category: 'callbacks' },
|
|
105
|
+
action: 'mouse entered',
|
|
106
|
+
},
|
|
107
|
+
onMouseExit: {
|
|
108
|
+
description: 'Triggers a callback on mouse exit.',
|
|
109
|
+
table: { category: 'callbacks' },
|
|
110
|
+
action: 'mouse exited',
|
|
111
|
+
},
|
|
112
|
+
onKeyDown: {
|
|
113
|
+
description: 'Triggers a callback on key press.',
|
|
114
|
+
table: { category: 'callbacks' },
|
|
115
|
+
action: 'key pressed',
|
|
116
|
+
},
|
|
117
|
+
isLoading: {
|
|
118
|
+
control: 'boolean',
|
|
119
|
+
table: {
|
|
120
|
+
type: { summary: 'true | false', name: 'boolean', required: false },
|
|
121
|
+
category: 'Styling',
|
|
122
|
+
},
|
|
123
|
+
defaultValue: { summary: false },
|
|
124
|
+
description:
|
|
125
|
+
'It disables the button and shows a load spinner on the left hand side of the button children',
|
|
126
|
+
},
|
|
127
|
+
isDisabled: {
|
|
128
|
+
control: 'boolean',
|
|
129
|
+
table: {
|
|
130
|
+
type: { summary: 'true | false', name: 'boolean', required: false },
|
|
131
|
+
category: 'Styling',
|
|
132
|
+
},
|
|
133
|
+
defaultValue: { summary: false },
|
|
134
|
+
description: 'It disables the button',
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
type Story = StoryObj<typeof Button>;
|
|
140
|
+
|
|
141
|
+
export const Primary: Story = {
|
|
142
|
+
args: {
|
|
143
|
+
type: 'submit',
|
|
144
|
+
variant: 'solid',
|
|
145
|
+
color: 'primary',
|
|
146
|
+
isDisabled: false,
|
|
147
|
+
isLoading: false,
|
|
148
|
+
ariaLabel: 'Primary Button',
|
|
149
|
+
onClick: () => {
|
|
150
|
+
console.log('Primary button clicked');
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
render: (args) => <Button {...args}>Primary</Button>,
|
|
154
|
+
};
|
|
155
|
+
export const Small: Story = {
|
|
156
|
+
args: {
|
|
157
|
+
variant: 'solid',
|
|
158
|
+
color: 'primary',
|
|
159
|
+
size: 'sm',
|
|
160
|
+
},
|
|
161
|
+
render: (args) => <Button {...args}>Small</Button>,
|
|
162
|
+
};
|
|
163
|
+
export const Medium: Story = {
|
|
164
|
+
args: {
|
|
165
|
+
variant: 'solid',
|
|
166
|
+
color: 'primary',
|
|
167
|
+
size: 'md',
|
|
168
|
+
},
|
|
169
|
+
render: (args) => <Button {...args}>Medium</Button>,
|
|
170
|
+
};
|
|
171
|
+
export const Large: Story = {
|
|
172
|
+
args: {
|
|
173
|
+
variant: 'solid',
|
|
174
|
+
color: 'primary',
|
|
175
|
+
size: 'lg',
|
|
176
|
+
},
|
|
177
|
+
render: (args) => <Button {...args}>Large</Button>,
|
|
178
|
+
};
|
|
179
|
+
export const Secondary: Story = {
|
|
180
|
+
args: {
|
|
181
|
+
variant: 'solid',
|
|
182
|
+
color: 'secondary',
|
|
183
|
+
},
|
|
184
|
+
render: (args) => <Button {...args}>Secondary</Button>,
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
export const PrimaryOutline: Story = {
|
|
188
|
+
args: {
|
|
189
|
+
variant: 'outline',
|
|
190
|
+
color: 'primary',
|
|
191
|
+
},
|
|
192
|
+
render: (args) => <Button {...args}>Outline</Button>,
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
export const SecondaryOutline: Story = {
|
|
196
|
+
args: {
|
|
197
|
+
variant: 'outline',
|
|
198
|
+
color: 'secondary',
|
|
199
|
+
},
|
|
200
|
+
render: (args) => <Button {...args}>Secondary Outline</Button>,
|
|
201
|
+
};
|
|
202
|
+
export const Info: Story = {
|
|
203
|
+
args: {
|
|
204
|
+
color: 'info',
|
|
205
|
+
},
|
|
206
|
+
render: (args) => <Button {...args}>Info</Button>,
|
|
207
|
+
};
|
|
208
|
+
export const InfoOutline: Story = {
|
|
209
|
+
args: {
|
|
210
|
+
variant: 'outline',
|
|
211
|
+
color: 'info',
|
|
212
|
+
},
|
|
213
|
+
render: (args) => <Button {...args}>Info Outline</Button>,
|
|
214
|
+
};
|
|
215
|
+
export const Text: Story = {
|
|
216
|
+
args: {
|
|
217
|
+
variant: 'text',
|
|
218
|
+
color: 'secondary',
|
|
219
|
+
},
|
|
220
|
+
render: (args) => <Button {...args}>Text</Button>,
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
export const IconLeft: Story = {
|
|
224
|
+
args: {
|
|
225
|
+
color: 'primary',
|
|
226
|
+
iconPosition: 'left',
|
|
227
|
+
iconName: 'fa-check',
|
|
228
|
+
},
|
|
229
|
+
render: (args) => <Button {...args}>Icon Left</Button>,
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
export const IconRight: Story = {
|
|
233
|
+
args: {
|
|
234
|
+
color: 'primary',
|
|
235
|
+
iconName: 'fa-check',
|
|
236
|
+
iconPosition: 'right',
|
|
237
|
+
},
|
|
238
|
+
render: (args) => <Button {...args}>Icon Right</Button>,
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
export const Error: Story = {
|
|
242
|
+
args: {
|
|
243
|
+
color: 'error',
|
|
244
|
+
},
|
|
245
|
+
render: (args) => <Button {...args}>Error</Button>,
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
export const Success: Story = {
|
|
249
|
+
args: {
|
|
250
|
+
color: 'success',
|
|
251
|
+
},
|
|
252
|
+
render: (args) => <Button {...args}>Success</Button>,
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
export const Warning: Story = {
|
|
256
|
+
args: {
|
|
257
|
+
variant: 'solid',
|
|
258
|
+
color: 'warning',
|
|
259
|
+
},
|
|
260
|
+
render: (args) => <Button {...args}>Warning</Button>,
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
export const Disabled: Story = {
|
|
264
|
+
args: {
|
|
265
|
+
isDisabled: true,
|
|
266
|
+
variant: 'solid',
|
|
267
|
+
color: 'warning',
|
|
268
|
+
},
|
|
269
|
+
render: (args) => <Button {...args}>Disabled</Button>,
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
export const Loading: Story = {
|
|
273
|
+
args: {
|
|
274
|
+
isLoading: true,
|
|
275
|
+
variant: 'text',
|
|
276
|
+
color: 'warning',
|
|
277
|
+
},
|
|
278
|
+
render: (args) => <Button {...args}>Loading</Button>,
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
export default meta;
|