@indico-data/design-system 2.43.0 → 2.44.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/lib/assets/fonts/noto/a.woff2 +0 -0
- package/lib/assets/fonts/noto/b.woff2 +0 -0
- package/lib/assets/fonts/noto/c.woff2 +0 -0
- package/lib/assets/fonts/noto/d.woff2 +0 -0
- package/lib/assets/fonts/noto/e.woff2 +0 -0
- package/lib/assets/fonts/noto/f.woff2 +0 -0
- package/lib/assets/fonts/noto/g.woff2 +0 -0
- package/lib/assets/fonts/noto/h.woff2 +0 -0
- package/lib/assets/fonts/noto/notosans.css +79 -0
- package/lib/components/button/Button.stories.d.ts +11 -13
- package/lib/components/button/enums.d.ts +2 -4
- package/lib/components/button/types.d.ts +6 -7
- package/lib/components/forms/date/iconTriggerDatePicker/IconTriggerDatePicker.d.ts +1 -1
- package/lib/components/forms/date/inputDatePicker/SingleInputDatePicker.d.ts +1 -1
- package/lib/components/forms/input/Input.d.ts +1 -1
- package/lib/index.css +1775 -1017
- package/lib/index.d.ts +148 -885
- package/lib/index.esm.css +1775 -1017
- package/lib/index.esm.js +17829 -24248
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +16041 -22502
- package/lib/index.js.map +1 -1
- package/lib/legacy/components/Tooltip/Tooltip.d.ts +1 -1
- package/lib/legacy/components/index.d.ts +1 -12
- package/lib/legacy/components/loading-indicators/BarSpinner/BarSpinner.d.ts +1 -1
- package/lib/legacy/components/loading-indicators/CirclePulse/CirclePulse.d.ts +1 -1
- package/lib/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.d.ts +1 -1
- package/lib/legacy/components/loading-indicators/index.d.ts +0 -4
- package/lib/legacy/components/modals/ConfirmModal/ConfirmModal.d.ts +1 -1
- package/lib/legacy/components/modals/ModalBase/ModalBase.d.ts +1 -1
- package/lib/stylesAndAnimations/colors/constants.d.ts +0 -1
- package/lib/types.d.ts +1 -3
- package/package.json +1 -1
- package/src/components/button/Button.mdx +28 -78
- package/src/components/button/Button.stories.tsx +312 -176
- package/src/components/button/Button.tsx +23 -16
- package/src/components/button/__tests__/Button.test.tsx +66 -58
- package/src/components/button/enums.ts +2 -6
- package/src/components/button/styles/Button.scss +119 -137
- package/src/components/button/styles/_variables.scss +115 -148
- package/src/components/button/types.ts +6 -8
- package/src/components/card/Card.stories.tsx +1 -1
- package/src/components/card/styles/Card.scss +11 -11
- package/src/components/floatUI/FloatUI.mdx +5 -5
- package/src/components/floatUI/FloatUI.stories.tsx +8 -8
- package/src/components/floatUI/__tests__/FloatUI.test.tsx +3 -3
- package/src/components/floatUI/styles/FloatUI.scss +1 -2
- package/src/components/floatUI/styles/_variables.scss +11 -7
- package/src/components/forms/checkbox/styles/Checkbox.scss +8 -14
- package/src/components/forms/date/datePicker/__tests__/DatePicker.test.tsx +23 -3
- package/src/components/forms/date/datePicker/styles/DatePicker.scss +9 -5
- package/src/components/forms/date/iconTriggerDatePicker/IconTriggerDatePicker.tsx +4 -4
- package/src/components/forms/date/inputDatePicker/SingleInputDatePicker.tsx +1 -1
- package/src/components/forms/form/styles/Form.scss +84 -2
- package/src/components/forms/input/Input.tsx +2 -2
- package/src/components/forms/input/styles/Input.scss +3 -67
- package/src/components/forms/numberInput/NumberInput.tsx +1 -1
- package/src/components/forms/numberInput/styles/NumberInput.scss +4 -67
- package/src/components/forms/passwordInput/PasswordInput.tsx +1 -1
- package/src/components/forms/passwordInput/styles/PasswordInput.scss +3 -67
- package/src/components/forms/radio/styles/Radio.scss +6 -10
- package/src/components/forms/select/styles/Select.scss +30 -44
- package/src/components/forms/textarea/styles/Textarea.scss +1 -49
- package/src/components/forms/toggle/styles/Toggle.scss +13 -12
- package/src/components/grid/styles/Grid.scss +3 -3
- package/src/components/icons/__tests__/Icon.test.tsx +1 -1
- package/src/components/menu/Menu.stories.tsx +3 -3
- package/src/components/menu/Menu.test.tsx +9 -9
- package/src/components/menu/styles/Menu.scss +5 -0
- package/src/components/menu/styles/_variables.scss +11 -6
- package/src/components/pill/styles/Pill.scss +4 -5
- package/src/components/skeleton/styles/Skeleton.scss +2 -2
- package/src/components/table/LoadingComponent.tsx +0 -2
- package/src/components/table/styles/Table.scss +6 -0
- package/src/components/table/styles/_variables.scss +9 -8
- package/src/index.ts +0 -45
- package/src/legacy/components/Tooltip/Tooltip.styles.ts +0 -12
- package/src/legacy/components/Tooltip/Tooltip.tsx +2 -4
- package/src/legacy/components/index.ts +1 -30
- package/src/legacy/components/loading-indicators/BarSpinner/BarSpinner.styles.ts +0 -3
- package/src/legacy/components/loading-indicators/BarSpinner/BarSpinner.tsx +1 -1
- package/src/legacy/components/loading-indicators/CirclePulse/CirclePulse.styles.ts +0 -4
- package/src/legacy/components/loading-indicators/CirclePulse/CirclePulse.tsx +1 -6
- package/src/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.tsx +2 -2
- package/src/legacy/components/loading-indicators/index.ts +0 -4
- package/src/legacy/components/modals/ConfirmModal/ConfirmModal.styles.ts +1 -4
- package/src/legacy/components/modals/ConfirmModal/ConfirmModal.tsx +12 -19
- package/src/legacy/components/modals/ModalBase/ModalBase.styles.tsx +0 -7
- package/src/legacy/components/modals/ModalBase/ModalBase.tsx +1 -1
- package/src/storybookDocs/Permafrost.mdx +92 -0
- package/src/styles/_colors.scss +7 -3
- package/src/styles/_sheets.scss +3 -3
- package/src/styles/assets/fonts/noto/a.woff2 +0 -0
- package/src/styles/assets/fonts/noto/b.woff2 +0 -0
- package/src/styles/assets/fonts/noto/c.woff2 +0 -0
- package/src/styles/assets/fonts/noto/d.woff2 +0 -0
- package/src/styles/assets/fonts/noto/e.woff2 +0 -0
- package/src/styles/assets/fonts/noto/f.woff2 +0 -0
- package/src/styles/assets/fonts/noto/g.woff2 +0 -0
- package/src/styles/assets/fonts/noto/h.woff2 +0 -0
- package/src/styles/assets/fonts/noto/notosans.css +79 -0
- package/src/styles/globals.scss +5 -16
- package/src/styles/index.scss +1 -2
- package/src/styles/storybook.scss +1 -1
- package/src/styles/variables/_borders.scss +6 -6
- package/src/styles/variables/_dropshadows.scss +2 -0
- package/src/styles/variables/_padding.scss +5 -1
- package/src/styles/variables/_typography.scss +7 -1
- package/src/styles/variables/themes/dark.scss +147 -83
- package/src/styles/variables/themes/light.scss +1 -2
- package/src/stylesAndAnimations/colors/Colors.tsx +5 -9
- package/src/stylesAndAnimations/colors/UtilityClasses.tsx +23 -14
- package/src/stylesAndAnimations/colors/constants.ts +183 -114
- package/src/stylesAndAnimations/sizing/Sizing.tsx +2 -2
- package/src/types.ts +1 -7
- package/lib/assets/fonts/mulish/a.woff2 +0 -0
- package/lib/assets/fonts/mulish/b.woff2 +0 -0
- package/lib/assets/fonts/mulish/c.woff2 +0 -0
- package/lib/assets/fonts/mulish/d.woff2 +0 -0
- package/lib/assets/fonts/mulish/mulish.css +0 -98
- package/lib/legacy/components/Accordion/Accordion.d.ts +0 -9
- package/lib/legacy/components/Accordion/Accordion.stories.d.ts +0 -25
- package/lib/legacy/components/Accordion/Accordion.styles.d.ts +0 -1
- package/lib/legacy/components/Accordion/index.d.ts +0 -1
- package/lib/legacy/components/ListTable/Header/Header.d.ts +0 -21
- package/lib/legacy/components/ListTable/Header/Header.styles.d.ts +0 -1
- package/lib/legacy/components/ListTable/Header/index.d.ts +0 -1
- package/lib/legacy/components/ListTable/ListTable.d.ts +0 -41
- package/lib/legacy/components/ListTable/ListTable.stories.d.ts +0 -54
- package/lib/legacy/components/ListTable/ListTable.styles.d.ts +0 -1
- package/lib/legacy/components/ListTable/index.d.ts +0 -1
- package/lib/legacy/components/ListTable/mock-data/index.d.ts +0 -1
- package/lib/legacy/components/ListTable/mock-data/mock-data.d.ts +0 -54
- package/lib/legacy/components/LoadingAwareContainer/LoadingAwareContainer.d.ts +0 -15
- package/lib/legacy/components/LoadingAwareContainer/LoadingAwareContainer.stories.d.ts +0 -22
- package/lib/legacy/components/LoadingAwareContainer/LoadingAwareContainer.styles.d.ts +0 -2
- package/lib/legacy/components/LoadingAwareContainer/index.d.ts +0 -1
- package/lib/legacy/components/Pagination/Pagination.d.ts +0 -18
- package/lib/legacy/components/Pagination/Pagination.stories.d.ts +0 -18
- package/lib/legacy/components/Pagination/Pagination.styles.d.ts +0 -1
- package/lib/legacy/components/Pagination/index.d.ts +0 -1
- package/lib/legacy/components/Toggle/Toggle.d.ts +0 -12
- package/lib/legacy/components/Toggle/Toggle.stories.d.ts +0 -21
- package/lib/legacy/components/Toggle/Toggle.styles.d.ts +0 -1
- package/lib/legacy/components/Toggle/index.d.ts +0 -1
- package/lib/legacy/components/basic-section/Section/Section.d.ts +0 -8
- package/lib/legacy/components/basic-section/Section/Section.stories.d.ts +0 -13
- package/lib/legacy/components/basic-section/Section/Section.styles.d.ts +0 -1
- package/lib/legacy/components/basic-section/Section/index.d.ts +0 -1
- package/lib/legacy/components/basic-section/SectionBlock/SectionBlock.d.ts +0 -9
- package/lib/legacy/components/basic-section/SectionBlock/SectionBlock.styles.d.ts +0 -1
- package/lib/legacy/components/basic-section/SectionBlock/index.d.ts +0 -1
- package/lib/legacy/components/basic-section/SectionBody/SectionBody.d.ts +0 -7
- package/lib/legacy/components/basic-section/SectionBody/SectionBody.stories.d.ts +0 -10
- package/lib/legacy/components/basic-section/SectionBody/SectionBody.styles.d.ts +0 -1
- package/lib/legacy/components/basic-section/SectionBody/index.d.ts +0 -1
- package/lib/legacy/components/basic-section/SectionHeader/SectionHeader.d.ts +0 -8
- package/lib/legacy/components/basic-section/SectionHeader/SectionHeader.stories.d.ts +0 -14
- package/lib/legacy/components/basic-section/SectionHeader/SectionHeader.styles.d.ts +0 -1
- package/lib/legacy/components/basic-section/SectionHeader/index.d.ts +0 -1
- package/lib/legacy/components/basic-section/SectionTable/SectionTable.d.ts +0 -1
- package/lib/legacy/components/basic-section/SectionTable/SectionTable.styles.d.ts +0 -1
- package/lib/legacy/components/basic-section/SectionTable/index.d.ts +0 -1
- package/lib/legacy/components/basic-section/index.d.ts +0 -5
- package/lib/legacy/components/buttons/Button/Button.d.ts +0 -21
- package/lib/legacy/components/buttons/Button/Button.stories.d.ts +0 -25
- package/lib/legacy/components/buttons/Button/Button.styles.d.ts +0 -1
- package/lib/legacy/components/buttons/Button/index.d.ts +0 -1
- package/lib/legacy/components/buttons/IconButton/IconButton.d.ts +0 -32
- package/lib/legacy/components/buttons/IconButton/IconButton.stories.d.ts +0 -43
- package/lib/legacy/components/buttons/IconButton/IconButton.styles.d.ts +0 -5
- package/lib/legacy/components/buttons/IconButton/index.d.ts +0 -1
- package/lib/legacy/components/buttons/commonStyles.d.ts +0 -9
- package/lib/legacy/components/buttons/index.d.ts +0 -2
- package/lib/legacy/components/buttons/types.d.ts +0 -3
- package/lib/legacy/components/dropdowns/BorderSelect/BorderSelect.d.ts +0 -19
- package/lib/legacy/components/dropdowns/BorderSelect/BorderSelect.stories.d.ts +0 -31
- package/lib/legacy/components/dropdowns/BorderSelect/BorderSelect.styles.d.ts +0 -2
- package/lib/legacy/components/dropdowns/BorderSelect/index.d.ts +0 -1
- package/lib/legacy/components/dropdowns/MultiCombobox/MultiCombobox.d.ts +0 -23
- package/lib/legacy/components/dropdowns/MultiCombobox/MultiCombobox.stories.d.ts +0 -46
- package/lib/legacy/components/dropdowns/MultiCombobox/MultiCombobox.styles.d.ts +0 -4
- package/lib/legacy/components/dropdowns/MultiCombobox/index.d.ts +0 -1
- package/lib/legacy/components/dropdowns/Select/Select.d.ts +0 -19
- package/lib/legacy/components/dropdowns/Select/Select.stories.d.ts +0 -34
- package/lib/legacy/components/dropdowns/Select/Select.styles.d.ts +0 -1
- package/lib/legacy/components/dropdowns/Select/index.d.ts +0 -1
- package/lib/legacy/components/dropdowns/SingleCombobox/SingleCombobox.d.ts +0 -20
- package/lib/legacy/components/dropdowns/SingleCombobox/SingleCombobox.stories.d.ts +0 -31
- package/lib/legacy/components/dropdowns/SingleCombobox/SingleCombobox.styles.d.ts +0 -4
- package/lib/legacy/components/dropdowns/SingleCombobox/index.d.ts +0 -1
- package/lib/legacy/components/dropdowns/commonStyles.d.ts +0 -1
- package/lib/legacy/components/dropdowns/index.d.ts +0 -4
- package/lib/legacy/components/dropdowns/types.d.ts +0 -45
- package/lib/legacy/components/dropdowns/useCombobox.d.ts +0 -25
- package/lib/legacy/components/dropdowns/utils.d.ts +0 -20
- package/lib/legacy/components/inputs/EditableInput/EditableInput.d.ts +0 -13
- package/lib/legacy/components/inputs/EditableInput/EditableInput.stories.d.ts +0 -14
- package/lib/legacy/components/inputs/EditableInput/EditableInput.styles.d.ts +0 -1
- package/lib/legacy/components/inputs/EditableInput/index.d.ts +0 -1
- package/lib/legacy/components/inputs/NumberInput/NumberInput.d.ts +0 -23
- package/lib/legacy/components/inputs/NumberInput/NumberInput.stories.d.ts +0 -28
- package/lib/legacy/components/inputs/NumberInput/NumberInput.styles.d.ts +0 -1
- package/lib/legacy/components/inputs/NumberInput/index.d.ts +0 -1
- package/lib/legacy/components/inputs/RadioButtons/RadioButtons.d.ts +0 -25
- package/lib/legacy/components/inputs/RadioButtons/RadioButtons.stories.d.ts +0 -15
- package/lib/legacy/components/inputs/RadioButtons/RadioButtons.styles.d.ts +0 -13
- package/lib/legacy/components/inputs/RadioButtons/index.d.ts +0 -1
- package/lib/legacy/components/inputs/RadioGroup/RadioGroup.d.ts +0 -27
- package/lib/legacy/components/inputs/RadioGroup/RadioGroup.stories.d.ts +0 -16
- package/lib/legacy/components/inputs/RadioGroup/RadioGroup.styles.d.ts +0 -1
- package/lib/legacy/components/inputs/RadioGroup/index.d.ts +0 -1
- package/lib/legacy/components/inputs/SearchInput/SearchInput.d.ts +0 -17
- package/lib/legacy/components/inputs/SearchInput/SearchInput.stories.d.ts +0 -30
- package/lib/legacy/components/inputs/SearchInput/SearchInput.styles.d.ts +0 -1
- package/lib/legacy/components/inputs/SearchInput/index.d.ts +0 -1
- package/lib/legacy/components/inputs/TextInput/TextInput.d.ts +0 -24
- package/lib/legacy/components/inputs/TextInput/TextInput.stories.d.ts +0 -62
- package/lib/legacy/components/inputs/TextInput/TextInput.styles.d.ts +0 -2
- package/lib/legacy/components/inputs/TextInput/index.d.ts +0 -1
- package/lib/legacy/components/inputs/index.d.ts +0 -6
- package/lib/legacy/components/inputs/inputsCommon.styles.d.ts +0 -4
- package/lib/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.d.ts +0 -10
- package/lib/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.stories.d.ts +0 -11
- package/lib/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.styles.d.ts +0 -7
- package/lib/legacy/components/loading-indicators/LoadingIndicator/index.d.ts +0 -1
- package/lib/legacy/components/loading-indicators/LoadingList/LoadingList.d.ts +0 -1
- package/lib/legacy/components/loading-indicators/LoadingList/LoadingList.stories.d.ts +0 -10
- package/lib/legacy/components/loading-indicators/LoadingList/LoadingList.styles.d.ts +0 -1
- package/lib/legacy/components/loading-indicators/LoadingList/index.d.ts +0 -1
- package/lib/legacy/components/loading-indicators/PercentageRing/PercentageRing.d.ts +0 -12
- package/lib/legacy/components/loading-indicators/PercentageRing/PercentageRing.stories.d.ts +0 -10
- package/lib/legacy/components/loading-indicators/PercentageRing/PercentageRing.styles.d.ts +0 -1
- package/lib/legacy/components/loading-indicators/PercentageRing/index.d.ts +0 -1
- package/lib/legacy/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.d.ts +0 -1
- package/lib/legacy/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.stories.d.ts +0 -10
- package/lib/legacy/components/loading-indicators/RandomLoadingMessage/index.d.ts +0 -1
- package/lib/legacy/components/loading-indicators/RandomLoadingMessage/random-messages.d.ts +0 -2
- package/lib/legacy/components/text-truncate/TextTruncate.d.ts +0 -8
- package/lib/legacy/components/text-truncate/TextTruncate.stories.d.ts +0 -6
- package/lib/legacy/components/text-truncate/TextTruncate.styles.d.ts +0 -1
- package/lib/legacy/components/text-truncate/TextTruncate.test.d.ts +0 -1
- package/lib/legacy/components/text-truncate/index.d.ts +0 -1
- package/lib/legacy/components/user-feedback/Shrug/Shrug.d.ts +0 -14
- package/lib/legacy/components/user-feedback/Shrug/Shrug.stories.d.ts +0 -31
- package/lib/legacy/components/user-feedback/Shrug/Shrug.styles.d.ts +0 -1
- package/lib/legacy/components/user-feedback/Shrug/index.d.ts +0 -1
- package/lib/legacy/components/user-feedback/index.d.ts +0 -1
- package/lib/legacy/styles/globals/buttons.d.ts +0 -1
- package/lib/legacy/styles/globals/forms.d.ts +0 -1
- package/lib/legacy/styles/globals/index.d.ts +0 -1
- package/lib/legacy/styles/globals/layout.d.ts +0 -1
- package/lib/legacy/styles/globals/lists.d.ts +0 -1
- package/lib/legacy/styles/globals/margin-padding.d.ts +0 -1
- package/lib/legacy/styles/globals/media.d.ts +0 -1
- package/lib/legacy/styles/globals/tables.d.ts +0 -1
- package/lib/legacy/styles/globals/typography.d.ts +0 -1
- package/lib/legacy/styles/globals/utility-classes.d.ts +0 -1
- package/lib/legacy/styles/index.d.ts +0 -1
- package/lib/legacy/tokens/animation.d.ts +0 -4
- package/lib/legacy/tokens/breakpoints.d.ts +0 -10
- package/lib/legacy/tokens/colors.d.ts +0 -144
- package/lib/legacy/tokens/index.d.ts +0 -8
- package/lib/legacy/tokens/margin.d.ts +0 -4
- package/lib/legacy/tokens/numbers.d.ts +0 -10
- package/lib/legacy/tokens/padding.d.ts +0 -4
- package/lib/legacy/tokens/spacings.d.ts +0 -5
- package/lib/legacy/tokens/typography.d.ts +0 -61
- package/lib/legacy/utils/color.d.ts +0 -21
- package/lib/legacy/utils/index.d.ts +0 -4
- package/lib/legacy/utils/number.d.ts +0 -21
- package/lib/legacy/utils/string.d.ts +0 -12
- package/src/legacy/components/Accordion/Accordion.stories.tsx +0 -47
- package/src/legacy/components/Accordion/Accordion.styles.ts +0 -35
- package/src/legacy/components/Accordion/Accordion.tsx +0 -30
- package/src/legacy/components/Accordion/index.ts +0 -1
- package/src/legacy/components/ListTable/Header/Header.styles.ts +0 -62
- package/src/legacy/components/ListTable/Header/Header.tsx +0 -66
- package/src/legacy/components/ListTable/Header/index.ts +0 -1
- package/src/legacy/components/ListTable/ListTable.stories.tsx +0 -302
- package/src/legacy/components/ListTable/ListTable.styles.ts +0 -76
- package/src/legacy/components/ListTable/ListTable.tsx +0 -140
- package/src/legacy/components/ListTable/index.ts +0 -1
- package/src/legacy/components/ListTable/mock-data/index.ts +0 -1
- package/src/legacy/components/ListTable/mock-data/mock-data.ts +0 -291
- package/src/legacy/components/LoadingAwareContainer/LoadingAwareContainer.stories.tsx +0 -45
- package/src/legacy/components/LoadingAwareContainer/LoadingAwareContainer.styles.ts +0 -16
- package/src/legacy/components/LoadingAwareContainer/LoadingAwareContainer.tsx +0 -36
- package/src/legacy/components/LoadingAwareContainer/index.ts +0 -1
- package/src/legacy/components/Pagination/Pagination.stories.tsx +0 -45
- package/src/legacy/components/Pagination/Pagination.styles.ts +0 -51
- package/src/legacy/components/Pagination/Pagination.tsx +0 -118
- package/src/legacy/components/Pagination/index.ts +0 -1
- package/src/legacy/components/Toggle/Toggle.stories.tsx +0 -56
- package/src/legacy/components/Toggle/Toggle.styles.ts +0 -86
- package/src/legacy/components/Toggle/Toggle.tsx +0 -69
- package/src/legacy/components/Toggle/index.ts +0 -1
- package/src/legacy/components/basic-section/Section/Section.stories.tsx +0 -14
- package/src/legacy/components/basic-section/Section/Section.styles.ts +0 -8
- package/src/legacy/components/basic-section/Section/Section.tsx +0 -30
- package/src/legacy/components/basic-section/Section/index.ts +0 -1
- package/src/legacy/components/basic-section/SectionBlock/SectionBlock.styles.ts +0 -15
- package/src/legacy/components/basic-section/SectionBlock/SectionBlock.tsx +0 -37
- package/src/legacy/components/basic-section/SectionBlock/index.ts +0 -1
- package/src/legacy/components/basic-section/SectionBody/SectionBody.stories.tsx +0 -16
- package/src/legacy/components/basic-section/SectionBody/SectionBody.styles.ts +0 -18
- package/src/legacy/components/basic-section/SectionBody/SectionBody.tsx +0 -30
- package/src/legacy/components/basic-section/SectionBody/index.ts +0 -1
- package/src/legacy/components/basic-section/SectionHeader/SectionHeader.stories.tsx +0 -17
- package/src/legacy/components/basic-section/SectionHeader/SectionHeader.styles.ts +0 -5
- package/src/legacy/components/basic-section/SectionHeader/SectionHeader.tsx +0 -30
- package/src/legacy/components/basic-section/SectionHeader/index.ts +0 -1
- package/src/legacy/components/basic-section/SectionTable/SectionTable.styles.ts +0 -236
- package/src/legacy/components/basic-section/SectionTable/SectionTable.tsx +0 -233
- package/src/legacy/components/basic-section/SectionTable/index.ts +0 -1
- package/src/legacy/components/basic-section/index.ts +0 -5
- package/src/legacy/components/buttons/Button/Button.stories.tsx +0 -80
- package/src/legacy/components/buttons/Button/Button.styles.ts +0 -99
- package/src/legacy/components/buttons/Button/Button.tsx +0 -74
- package/src/legacy/components/buttons/Button/index.ts +0 -1
- package/src/legacy/components/buttons/IconButton/IconButton.stories.tsx +0 -96
- package/src/legacy/components/buttons/IconButton/IconButton.styles.ts +0 -109
- package/src/legacy/components/buttons/IconButton/IconButton.tsx +0 -114
- package/src/legacy/components/buttons/IconButton/index.ts +0 -1
- package/src/legacy/components/buttons/commonStyles.ts +0 -104
- package/src/legacy/components/buttons/index.ts +0 -2
- package/src/legacy/components/buttons/types.ts +0 -3
- package/src/legacy/components/dropdowns/BorderSelect/BorderSelect.stories.tsx +0 -22
- package/src/legacy/components/dropdowns/BorderSelect/BorderSelect.styles.ts +0 -73
- package/src/legacy/components/dropdowns/BorderSelect/BorderSelect.tsx +0 -85
- package/src/legacy/components/dropdowns/BorderSelect/index.ts +0 -1
- package/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.stories.tsx +0 -147
- package/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.styles.ts +0 -91
- package/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.tsx +0 -123
- package/src/legacy/components/dropdowns/MultiCombobox/index.ts +0 -1
- package/src/legacy/components/dropdowns/Select/Select.stories.tsx +0 -54
- package/src/legacy/components/dropdowns/Select/Select.styles.ts +0 -73
- package/src/legacy/components/dropdowns/Select/Select.tsx +0 -69
- package/src/legacy/components/dropdowns/Select/index.ts +0 -1
- package/src/legacy/components/dropdowns/SingleCombobox/SingleCombobox.stories.tsx +0 -61
- package/src/legacy/components/dropdowns/SingleCombobox/SingleCombobox.styles.ts +0 -56
- package/src/legacy/components/dropdowns/SingleCombobox/SingleCombobox.tsx +0 -103
- package/src/legacy/components/dropdowns/SingleCombobox/index.ts +0 -1
- package/src/legacy/components/dropdowns/commonStyles.ts +0 -65
- package/src/legacy/components/dropdowns/index.ts +0 -4
- package/src/legacy/components/dropdowns/types.ts +0 -45
- package/src/legacy/components/dropdowns/useCombobox.ts +0 -32
- package/src/legacy/components/dropdowns/utils.tsx +0 -25
- package/src/legacy/components/inputs/EditableInput/EditableInput.stories.tsx +0 -26
- package/src/legacy/components/inputs/EditableInput/EditableInput.styles.ts +0 -21
- package/src/legacy/components/inputs/EditableInput/EditableInput.tsx +0 -103
- package/src/legacy/components/inputs/EditableInput/index.ts +0 -1
- package/src/legacy/components/inputs/NumberInput/NumberInput.stories.tsx +0 -72
- package/src/legacy/components/inputs/NumberInput/NumberInput.styles.ts +0 -66
- package/src/legacy/components/inputs/NumberInput/NumberInput.tsx +0 -154
- package/src/legacy/components/inputs/NumberInput/index.ts +0 -1
- package/src/legacy/components/inputs/RadioButtons/RadioButtons.stories.tsx +0 -84
- package/src/legacy/components/inputs/RadioButtons/RadioButtons.styles.ts +0 -82
- package/src/legacy/components/inputs/RadioButtons/RadioButtons.tsx +0 -63
- package/src/legacy/components/inputs/RadioButtons/index.tsx +0 -1
- package/src/legacy/components/inputs/RadioGroup/RadioGroup.stories.tsx +0 -66
- package/src/legacy/components/inputs/RadioGroup/RadioGroup.styles.ts +0 -11
- package/src/legacy/components/inputs/RadioGroup/RadioGroup.tsx +0 -119
- package/src/legacy/components/inputs/RadioGroup/index.ts +0 -1
- package/src/legacy/components/inputs/SearchInput/SearchInput.stories.tsx +0 -37
- package/src/legacy/components/inputs/SearchInput/SearchInput.styles.ts +0 -51
- package/src/legacy/components/inputs/SearchInput/SearchInput.tsx +0 -73
- package/src/legacy/components/inputs/SearchInput/index.ts +0 -1
- package/src/legacy/components/inputs/TextInput/TextInput.stories.tsx +0 -104
- package/src/legacy/components/inputs/TextInput/TextInput.styles.ts +0 -74
- package/src/legacy/components/inputs/TextInput/TextInput.tsx +0 -116
- package/src/legacy/components/inputs/TextInput/index.ts +0 -1
- package/src/legacy/components/inputs/index.ts +0 -6
- package/src/legacy/components/inputs/inputsCommon.styles.ts +0 -57
- package/src/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.stories.tsx +0 -22
- package/src/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.styles.ts +0 -81
- package/src/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.tsx +0 -61
- package/src/legacy/components/loading-indicators/LoadingIndicator/index.ts +0 -1
- package/src/legacy/components/loading-indicators/LoadingList/LoadingList.stories.tsx +0 -14
- package/src/legacy/components/loading-indicators/LoadingList/LoadingList.styles.ts +0 -42
- package/src/legacy/components/loading-indicators/LoadingList/LoadingList.tsx +0 -9
- package/src/legacy/components/loading-indicators/LoadingList/index.ts +0 -1
- package/src/legacy/components/loading-indicators/PercentageRing/PercentageRing.stories.tsx +0 -18
- package/src/legacy/components/loading-indicators/PercentageRing/PercentageRing.styles.ts +0 -27
- package/src/legacy/components/loading-indicators/PercentageRing/PercentageRing.tsx +0 -76
- package/src/legacy/components/loading-indicators/PercentageRing/index.ts +0 -1
- package/src/legacy/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.stories.tsx +0 -16
- package/src/legacy/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.tsx +0 -18
- package/src/legacy/components/loading-indicators/RandomLoadingMessage/index.ts +0 -1
- package/src/legacy/components/loading-indicators/RandomLoadingMessage/random-messages.js +0 -67
- package/src/legacy/components/text-truncate/TextTruncate.stories.tsx +0 -19
- package/src/legacy/components/text-truncate/TextTruncate.styles.ts +0 -3
- package/src/legacy/components/text-truncate/TextTruncate.test.tsx +0 -17
- package/src/legacy/components/text-truncate/TextTruncate.tsx +0 -23
- package/src/legacy/components/text-truncate/index.ts +0 -1
- package/src/legacy/components/user-feedback/Shrug/Shrug.stories.tsx +0 -38
- package/src/legacy/components/user-feedback/Shrug/Shrug.styles.ts +0 -25
- package/src/legacy/components/user-feedback/Shrug/Shrug.tsx +0 -45
- package/src/legacy/components/user-feedback/Shrug/index.ts +0 -1
- package/src/legacy/components/user-feedback/index.ts +0 -1
- package/src/legacy/styles/globals/buttons.ts +0 -154
- package/src/legacy/styles/globals/forms.ts +0 -53
- package/src/legacy/styles/globals/index.tsx +0 -22
- package/src/legacy/styles/globals/layout.ts +0 -22
- package/src/legacy/styles/globals/lists.ts +0 -23
- package/src/legacy/styles/globals/margin-padding.ts +0 -33
- package/src/legacy/styles/globals/media.ts +0 -13
- package/src/legacy/styles/globals/tables.ts +0 -30
- package/src/legacy/styles/globals/typography.ts +0 -82
- package/src/legacy/styles/globals/utility-classes.ts +0 -76
- package/src/legacy/styles/index.ts +0 -1
- package/src/legacy/tokens/animation.ts +0 -6
- package/src/legacy/tokens/breakpoints.ts +0 -11
- package/src/legacy/tokens/colors.ts +0 -293
- package/src/legacy/tokens/index.ts +0 -20
- package/src/legacy/tokens/margin.ts +0 -5
- package/src/legacy/tokens/numbers.js +0 -41
- package/src/legacy/tokens/padding.ts +0 -5
- package/src/legacy/tokens/spacings.ts +0 -5
- package/src/legacy/tokens/typography.ts +0 -43
- package/src/legacy/utils/color.ts +0 -139
- package/src/legacy/utils/index.ts +0 -5
- package/src/legacy/utils/number.ts +0 -29
- package/src/legacy/utils/string.ts +0 -87
- package/src/styles/assets/fonts/mulish/a.woff2 +0 -0
- package/src/styles/assets/fonts/mulish/b.woff2 +0 -0
- package/src/styles/assets/fonts/mulish/c.woff2 +0 -0
- package/src/styles/assets/fonts/mulish/d.woff2 +0 -0
- package/src/styles/assets/fonts/mulish/mulish.css +0 -98
|
@@ -1,305 +1,441 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Button } from '@/components';
|
|
3
|
-
|
|
2
|
+
import { Button, Col, Row } from '@/components';
|
|
3
|
+
import { iconNames } from '@/storybook/iconNames';
|
|
4
4
|
|
|
5
5
|
const meta: Meta = {
|
|
6
6
|
title: 'Components/Button',
|
|
7
7
|
component: Button,
|
|
8
8
|
argTypes: {
|
|
9
|
-
|
|
9
|
+
// Core Props
|
|
10
|
+
type: {
|
|
10
11
|
table: {
|
|
11
|
-
|
|
12
|
+
category: 'Core Props',
|
|
13
|
+
type: {
|
|
14
|
+
summary: 'button | submit | reset',
|
|
15
|
+
},
|
|
12
16
|
},
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
description: 'Sets the HTML button type attribute',
|
|
18
|
+
defaultValue: { summary: 'button' },
|
|
15
19
|
control: 'select',
|
|
16
|
-
options: ['
|
|
17
|
-
|
|
20
|
+
options: ['button', 'submit', 'reset'],
|
|
21
|
+
},
|
|
22
|
+
href: {
|
|
23
|
+
control: 'text',
|
|
18
24
|
table: {
|
|
19
|
-
category: 'Props',
|
|
20
|
-
type: {
|
|
21
|
-
summary: 'solid | outline | text',
|
|
22
|
-
},
|
|
23
|
-
defaultValue: { summary: 'solid' },
|
|
25
|
+
category: 'Core Props',
|
|
24
26
|
},
|
|
27
|
+
defaultValue: { summary: '' },
|
|
28
|
+
description: 'URL destination for the button when it needs to function as a link',
|
|
25
29
|
},
|
|
26
|
-
|
|
27
|
-
control: '
|
|
28
|
-
options: ['primary', 'secondary', 'warning', 'error', 'success', 'info'],
|
|
29
|
-
description: 'It sets the color for the button',
|
|
30
|
+
children: {
|
|
31
|
+
control: 'text',
|
|
30
32
|
table: {
|
|
31
|
-
category: 'Props',
|
|
33
|
+
category: 'Core Props',
|
|
32
34
|
type: {
|
|
33
|
-
summary: '
|
|
35
|
+
summary: 'ReactNode',
|
|
34
36
|
},
|
|
35
|
-
defaultValue: { summary: 'primary' }, // replace 'default' with your actual default color
|
|
36
37
|
},
|
|
38
|
+
description: 'The content of the button. Can be text, elements, or other React components',
|
|
37
39
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
description: '
|
|
42
|
-
defaultValue: { summary: 'md' },
|
|
40
|
+
|
|
41
|
+
// Accessibility
|
|
42
|
+
ariaLabel: {
|
|
43
|
+
description: 'Sets the aria-label attribute for the button.',
|
|
43
44
|
table: {
|
|
44
|
-
category: '
|
|
45
|
+
category: 'Accessibility',
|
|
45
46
|
type: {
|
|
46
|
-
summary: '
|
|
47
|
+
summary: 'string',
|
|
47
48
|
},
|
|
48
49
|
},
|
|
50
|
+
control: 'text',
|
|
49
51
|
},
|
|
50
|
-
|
|
52
|
+
|
|
53
|
+
// Icon Props
|
|
54
|
+
iconLeft: {
|
|
51
55
|
table: {
|
|
52
|
-
category: 'Props',
|
|
53
|
-
type: {
|
|
54
|
-
summary: 'button | submit | reset',
|
|
55
|
-
},
|
|
56
|
+
category: 'Icon Props',
|
|
57
|
+
type: { summary: 'string' },
|
|
56
58
|
},
|
|
57
|
-
description: '
|
|
58
|
-
defaultValue: { summary: 'button' },
|
|
59
|
+
description: 'Sets an icon on the left side of the button content',
|
|
59
60
|
control: 'select',
|
|
60
|
-
options:
|
|
61
|
+
options: iconNames,
|
|
61
62
|
},
|
|
62
|
-
|
|
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.',
|
|
63
|
+
iconRight: {
|
|
65
64
|
table: {
|
|
66
|
-
category: 'Props',
|
|
67
|
-
|
|
68
|
-
type: {
|
|
69
|
-
summary: 'left | right',
|
|
70
|
-
},
|
|
65
|
+
category: 'Icon Props',
|
|
66
|
+
type: { summary: 'string' },
|
|
71
67
|
},
|
|
68
|
+
description: 'Sets an icon on the right side of the button content',
|
|
72
69
|
control: 'select',
|
|
73
|
-
options:
|
|
70
|
+
options: iconNames,
|
|
74
71
|
},
|
|
75
|
-
|
|
72
|
+
|
|
73
|
+
// Style Props
|
|
74
|
+
variant: {
|
|
75
|
+
control: 'select',
|
|
76
|
+
options: ['action', 'destructive', 'soft', 'link', 'outline', 'solid'],
|
|
77
|
+
description: 'Determines the visual style and emphasis level of the button',
|
|
76
78
|
table: {
|
|
77
|
-
category: 'Props',
|
|
79
|
+
category: 'Style Props',
|
|
78
80
|
type: {
|
|
79
|
-
summary:
|
|
81
|
+
summary: 'action | destructive | soft | link | outline | solid',
|
|
80
82
|
},
|
|
83
|
+
defaultValue: { summary: 'solid' },
|
|
81
84
|
},
|
|
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
85
|
},
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
size: {
|
|
87
|
+
control: 'select',
|
|
88
|
+
options: ['xs', 'sm', 'md', 'lg'],
|
|
89
|
+
description: "Controls the button's padding and text size",
|
|
90
|
+
defaultValue: { summary: 'md' },
|
|
89
91
|
table: {
|
|
90
|
-
category: 'Props',
|
|
92
|
+
category: 'Style Props',
|
|
91
93
|
type: {
|
|
92
|
-
summary: '
|
|
94
|
+
summary: 'xs | sm | md | lg',
|
|
93
95
|
},
|
|
94
96
|
},
|
|
95
|
-
control: 'text',
|
|
96
|
-
},
|
|
97
|
-
onClick: {
|
|
98
|
-
description: 'Triggers a callback on button click',
|
|
99
|
-
table: { category: 'callbacks' },
|
|
100
|
-
action: 'clicked',
|
|
101
97
|
},
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
table: {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
action: 'mouse exited',
|
|
98
|
+
isPill: {
|
|
99
|
+
control: 'boolean',
|
|
100
|
+
table: {
|
|
101
|
+
type: { summary: 'true | false' },
|
|
102
|
+
category: 'Style Props',
|
|
103
|
+
},
|
|
104
|
+
defaultValue: { summary: false },
|
|
105
|
+
description: 'Makes the button round, pill-shaped when true',
|
|
111
106
|
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
table: {
|
|
115
|
-
|
|
107
|
+
className: {
|
|
108
|
+
control: 'text',
|
|
109
|
+
table: {
|
|
110
|
+
category: 'Style Props',
|
|
111
|
+
defaultValue: { summary: '' },
|
|
112
|
+
},
|
|
113
|
+
description: 'Allows the passing of classes',
|
|
116
114
|
},
|
|
115
|
+
|
|
116
|
+
// State Props
|
|
117
117
|
isLoading: {
|
|
118
118
|
control: 'boolean',
|
|
119
119
|
table: {
|
|
120
120
|
type: { summary: 'true | false' },
|
|
121
|
-
category: 'Props',
|
|
121
|
+
category: 'State Props',
|
|
122
122
|
},
|
|
123
123
|
defaultValue: { summary: false },
|
|
124
124
|
description:
|
|
125
|
-
'
|
|
125
|
+
'Disables the button and shows a load spinner on the left hand side of the button children',
|
|
126
126
|
},
|
|
127
127
|
isDisabled: {
|
|
128
128
|
control: 'boolean',
|
|
129
129
|
table: {
|
|
130
130
|
type: { summary: 'true | false' },
|
|
131
|
-
category: 'Props',
|
|
131
|
+
category: 'State Props',
|
|
132
132
|
},
|
|
133
133
|
defaultValue: { summary: false },
|
|
134
|
-
description: '
|
|
134
|
+
description: 'Disables the button',
|
|
135
135
|
},
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
description: 'allows the passing of classes',
|
|
136
|
+
|
|
137
|
+
// Event Handlers
|
|
138
|
+
onClick: {
|
|
139
|
+
description: 'Triggers a callback on button click',
|
|
140
|
+
table: { category: 'Event Handlers' },
|
|
141
|
+
action: 'clicked',
|
|
143
142
|
},
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
table: {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
description: '
|
|
143
|
+
onMouseEnter: {
|
|
144
|
+
description: 'Triggers a callback on mouse enter.',
|
|
145
|
+
table: { category: 'Event Handlers' },
|
|
146
|
+
action: 'mouse entered',
|
|
147
|
+
},
|
|
148
|
+
onMouseExit: {
|
|
149
|
+
description: 'Triggers a callback on mouse exit.',
|
|
150
|
+
table: { category: 'Event Handlers' },
|
|
151
|
+
action: 'mouse exited',
|
|
152
|
+
},
|
|
153
|
+
onKeyDown: {
|
|
154
|
+
description: 'Triggers a callback on key press.',
|
|
155
|
+
table: { category: 'Event Handlers' },
|
|
156
|
+
action: 'key pressed',
|
|
151
157
|
},
|
|
152
158
|
},
|
|
153
159
|
};
|
|
154
160
|
|
|
155
161
|
type Story = StoryObj<typeof Button>;
|
|
156
162
|
|
|
157
|
-
export const
|
|
163
|
+
export const Default: Story = {
|
|
158
164
|
args: {
|
|
159
|
-
type: '
|
|
165
|
+
type: 'button',
|
|
160
166
|
variant: 'solid',
|
|
161
|
-
color: 'primary',
|
|
162
167
|
isDisabled: false,
|
|
163
168
|
isLoading: false,
|
|
164
|
-
|
|
169
|
+
isPill: false,
|
|
170
|
+
ariaLabel: 'Click Me Button',
|
|
171
|
+
size: 'md',
|
|
165
172
|
onClick: () => {
|
|
166
|
-
console.log('
|
|
173
|
+
console.log('Button clicked');
|
|
167
174
|
},
|
|
175
|
+
children: 'Click Me',
|
|
168
176
|
},
|
|
169
|
-
render: (args) => <Button {...args}
|
|
170
|
-
};
|
|
171
|
-
export const Small: Story = {
|
|
172
|
-
args: {
|
|
173
|
-
variant: 'solid',
|
|
174
|
-
color: 'primary',
|
|
175
|
-
size: 'sm',
|
|
176
|
-
},
|
|
177
|
-
render: (args) => <Button {...args}>Small</Button>,
|
|
177
|
+
render: (args) => <Button {...args} />,
|
|
178
178
|
};
|
|
179
|
-
|
|
179
|
+
|
|
180
|
+
export const Sizes: Story = {
|
|
180
181
|
args: {
|
|
181
182
|
variant: 'solid',
|
|
182
|
-
color: 'primary',
|
|
183
|
-
size: 'md',
|
|
184
183
|
},
|
|
185
|
-
render: (
|
|
184
|
+
render: () => (
|
|
185
|
+
<Row>
|
|
186
|
+
<Col xs={6} sm={3} className="mb-3">
|
|
187
|
+
<Button size="xs" ariaLabel="Extra Small Button">
|
|
188
|
+
Extra Small
|
|
189
|
+
</Button>
|
|
190
|
+
</Col>
|
|
191
|
+
<Col xs={6} sm={3} className="mb-3">
|
|
192
|
+
<Button size="sm" ariaLabel="Small Button">
|
|
193
|
+
Small
|
|
194
|
+
</Button>
|
|
195
|
+
</Col>
|
|
196
|
+
<Col xs={6} sm={3} className="mb-3">
|
|
197
|
+
<Button size="md" ariaLabel="Medium Button">
|
|
198
|
+
Medium
|
|
199
|
+
</Button>
|
|
200
|
+
</Col>
|
|
201
|
+
<Col xs={6} sm={3} className="mb-3">
|
|
202
|
+
<Button size="lg" ariaLabel="Large Button">
|
|
203
|
+
Large
|
|
204
|
+
</Button>
|
|
205
|
+
</Col>
|
|
206
|
+
</Row>
|
|
207
|
+
),
|
|
186
208
|
};
|
|
187
|
-
|
|
209
|
+
|
|
210
|
+
export const Solid: Story = {
|
|
188
211
|
args: {
|
|
189
212
|
variant: 'solid',
|
|
190
|
-
color: 'primary',
|
|
191
|
-
size: 'lg',
|
|
192
213
|
},
|
|
193
|
-
render: (args) => <Button {...args}>
|
|
214
|
+
render: (args) => <Button {...args}>Solid</Button>,
|
|
194
215
|
};
|
|
195
|
-
|
|
216
|
+
|
|
217
|
+
export const Action: Story = {
|
|
196
218
|
args: {
|
|
197
|
-
variant: '
|
|
198
|
-
|
|
219
|
+
variant: 'action',
|
|
220
|
+
iconLeft: 'thumbs-up',
|
|
199
221
|
},
|
|
200
|
-
render: (args) => <Button {...args}
|
|
222
|
+
render: (args) => <Button {...args} />,
|
|
201
223
|
};
|
|
202
224
|
|
|
203
|
-
export const
|
|
225
|
+
export const Outline: Story = {
|
|
204
226
|
args: {
|
|
205
227
|
variant: 'outline',
|
|
206
|
-
color: 'primary',
|
|
207
228
|
},
|
|
208
229
|
render: (args) => <Button {...args}>Outline</Button>,
|
|
209
230
|
};
|
|
210
231
|
|
|
211
|
-
export const
|
|
232
|
+
export const Link: Story = {
|
|
212
233
|
args: {
|
|
213
|
-
variant: '
|
|
214
|
-
color: 'secondary',
|
|
215
|
-
},
|
|
216
|
-
render: (args) => <Button {...args}>Secondary Outline</Button>,
|
|
217
|
-
};
|
|
218
|
-
export const Info: Story = {
|
|
219
|
-
args: {
|
|
220
|
-
color: 'info',
|
|
234
|
+
variant: 'link',
|
|
221
235
|
},
|
|
222
|
-
render: (args) => <Button {...args}>
|
|
236
|
+
render: (args) => <Button {...args}>Link</Button>,
|
|
223
237
|
};
|
|
224
|
-
|
|
238
|
+
|
|
239
|
+
export const Destructive: Story = {
|
|
225
240
|
args: {
|
|
226
|
-
variant: '
|
|
227
|
-
color: 'info',
|
|
241
|
+
variant: 'destructive',
|
|
228
242
|
},
|
|
229
|
-
render: (args) => <Button {...args}>
|
|
243
|
+
render: (args) => <Button {...args}>Destructive</Button>,
|
|
230
244
|
};
|
|
231
|
-
|
|
245
|
+
|
|
246
|
+
export const Soft: Story = {
|
|
232
247
|
args: {
|
|
233
|
-
variant: '
|
|
234
|
-
color: 'secondary',
|
|
248
|
+
variant: 'soft',
|
|
235
249
|
},
|
|
236
|
-
render: (args) => <Button {...args}>
|
|
250
|
+
render: (args) => <Button {...args}>Soft</Button>,
|
|
237
251
|
};
|
|
238
252
|
|
|
239
253
|
export const IconLeft: Story = {
|
|
240
254
|
args: {
|
|
241
|
-
|
|
242
|
-
iconPosition: 'left',
|
|
243
|
-
iconName: 'fa-check',
|
|
255
|
+
iconLeft: 'check',
|
|
244
256
|
},
|
|
245
257
|
render: (args) => <Button {...args}>Icon Left</Button>,
|
|
246
258
|
};
|
|
247
259
|
|
|
248
260
|
export const IconRight: Story = {
|
|
249
261
|
args: {
|
|
250
|
-
|
|
251
|
-
iconName: 'fa-check',
|
|
252
|
-
iconPosition: 'right',
|
|
262
|
+
iconRight: 'check',
|
|
253
263
|
},
|
|
254
264
|
render: (args) => <Button {...args}>Icon Right</Button>,
|
|
255
265
|
};
|
|
256
266
|
|
|
257
267
|
export const IconOnly: Story = {
|
|
258
268
|
args: {
|
|
259
|
-
|
|
260
|
-
|
|
269
|
+
iconLeft: 'check',
|
|
270
|
+
variant: 'action',
|
|
261
271
|
},
|
|
262
272
|
render: (args) => <Button {...args} />,
|
|
263
273
|
};
|
|
264
274
|
|
|
265
|
-
export const
|
|
266
|
-
args: {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
export const Variants: Story = {
|
|
276
|
+
args: {},
|
|
277
|
+
render: (args) => (
|
|
278
|
+
<Row>
|
|
279
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
280
|
+
<Button {...args} variant="solid">
|
|
281
|
+
Solid
|
|
282
|
+
</Button>
|
|
283
|
+
</Col>
|
|
284
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
285
|
+
<Button {...args} variant="outline">
|
|
286
|
+
Outline
|
|
287
|
+
</Button>
|
|
288
|
+
</Col>
|
|
289
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
290
|
+
<Button {...args} variant="link">
|
|
291
|
+
Link
|
|
292
|
+
</Button>
|
|
293
|
+
</Col>
|
|
294
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
295
|
+
<Button {...args} variant="soft">
|
|
296
|
+
Soft
|
|
297
|
+
</Button>
|
|
298
|
+
</Col>
|
|
299
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
300
|
+
<Button {...args} variant="destructive">
|
|
301
|
+
Destructive
|
|
302
|
+
</Button>
|
|
303
|
+
</Col>
|
|
304
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
305
|
+
<Button {...args} variant="action" iconLeft="thumbs-up" />
|
|
306
|
+
</Col>
|
|
307
|
+
</Row>
|
|
308
|
+
),
|
|
277
309
|
};
|
|
278
310
|
|
|
279
|
-
export const
|
|
280
|
-
args: {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
311
|
+
export const Pill: Story = {
|
|
312
|
+
args: { isPill: true },
|
|
313
|
+
render: (args) => (
|
|
314
|
+
<Row>
|
|
315
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
316
|
+
<Button {...args} variant="solid">
|
|
317
|
+
Solid
|
|
318
|
+
</Button>
|
|
319
|
+
</Col>
|
|
320
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
321
|
+
<Button {...args} variant="outline">
|
|
322
|
+
Outline
|
|
323
|
+
</Button>
|
|
324
|
+
</Col>
|
|
325
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
326
|
+
<Button {...args} variant="link">
|
|
327
|
+
Link
|
|
328
|
+
</Button>
|
|
329
|
+
</Col>
|
|
330
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
331
|
+
<Button {...args} variant="soft">
|
|
332
|
+
Soft
|
|
333
|
+
</Button>
|
|
334
|
+
</Col>
|
|
335
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
336
|
+
<Button {...args} variant="destructive">
|
|
337
|
+
Destructive
|
|
338
|
+
</Button>
|
|
339
|
+
</Col>
|
|
340
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
341
|
+
<Button {...args} variant="action" iconLeft="thumbs-up" />
|
|
342
|
+
</Col>
|
|
343
|
+
</Row>
|
|
344
|
+
),
|
|
285
345
|
};
|
|
286
346
|
|
|
287
347
|
export const Disabled: Story = {
|
|
288
|
-
args: {
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
348
|
+
args: {},
|
|
349
|
+
render: (args) => (
|
|
350
|
+
<Row>
|
|
351
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
352
|
+
<Button {...args} variant="solid" isDisabled>
|
|
353
|
+
Solid
|
|
354
|
+
</Button>
|
|
355
|
+
</Col>
|
|
356
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
357
|
+
<Button {...args} variant="outline" isDisabled>
|
|
358
|
+
Outline
|
|
359
|
+
</Button>
|
|
360
|
+
</Col>
|
|
361
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
362
|
+
<Button {...args} variant="link" isDisabled>
|
|
363
|
+
Link
|
|
364
|
+
</Button>
|
|
365
|
+
</Col>
|
|
366
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
367
|
+
<Button {...args} variant="soft" isDisabled>
|
|
368
|
+
Soft
|
|
369
|
+
</Button>
|
|
370
|
+
</Col>
|
|
371
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
372
|
+
<Button {...args} variant="destructive" isDisabled>
|
|
373
|
+
Destructive
|
|
374
|
+
</Button>
|
|
375
|
+
</Col>
|
|
376
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
377
|
+
<Button {...args} variant="action" iconLeft="thumbs-up" isDisabled />
|
|
378
|
+
</Col>
|
|
379
|
+
</Row>
|
|
380
|
+
),
|
|
294
381
|
};
|
|
295
382
|
|
|
296
383
|
export const Loading: Story = {
|
|
297
|
-
args: {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
384
|
+
args: { isLoading: true },
|
|
385
|
+
render: (args) => (
|
|
386
|
+
<Row>
|
|
387
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
388
|
+
<Button {...args} variant="solid">
|
|
389
|
+
Solid
|
|
390
|
+
</Button>
|
|
391
|
+
</Col>
|
|
392
|
+
|
|
393
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
394
|
+
<Button {...args} variant="outline">
|
|
395
|
+
Outline
|
|
396
|
+
</Button>
|
|
397
|
+
</Col>
|
|
398
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
399
|
+
<Button {...args} variant="link">
|
|
400
|
+
Link
|
|
401
|
+
</Button>
|
|
402
|
+
</Col>
|
|
403
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
404
|
+
<Button {...args} variant="soft">
|
|
405
|
+
Soft
|
|
406
|
+
</Button>
|
|
407
|
+
</Col>
|
|
408
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
409
|
+
<Button {...args} variant="destructive">
|
|
410
|
+
Destructive
|
|
411
|
+
</Button>
|
|
412
|
+
</Col>
|
|
413
|
+
<Col xs={6} sm={4} md={3} lg={2} className="mb-3">
|
|
414
|
+
<Button {...args} variant="action" iconLeft="thumbs-up" />
|
|
415
|
+
</Col>
|
|
416
|
+
</Row>
|
|
417
|
+
),
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
export const Icons: Story = {
|
|
421
|
+
args: {},
|
|
422
|
+
render: (args) => (
|
|
423
|
+
<Row>
|
|
424
|
+
<Col xs={4} className="mb-3">
|
|
425
|
+
<Button {...args} iconLeft="check">
|
|
426
|
+
Left Icon
|
|
427
|
+
</Button>
|
|
428
|
+
</Col>
|
|
429
|
+
<Col xs={4} className="mb-3">
|
|
430
|
+
<Button {...args} iconRight="check">
|
|
431
|
+
Right Icon
|
|
432
|
+
</Button>
|
|
433
|
+
</Col>
|
|
434
|
+
<Col xs={4} className="mb-3">
|
|
435
|
+
<Button {...args} iconLeft="check" />
|
|
436
|
+
</Col>
|
|
437
|
+
</Row>
|
|
438
|
+
),
|
|
303
439
|
};
|
|
304
440
|
|
|
305
441
|
export default meta;
|