@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
|
@@ -3,160 +3,127 @@
|
|
|
3
3
|
:root [data-theme='light'],
|
|
4
4
|
:root [data-theme='dark'] {
|
|
5
5
|
// Typography
|
|
6
|
-
--pf-button-font-weight
|
|
7
|
-
--pf-button-font-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
--pf-button-
|
|
11
|
-
--pf-button-
|
|
12
|
-
--pf-button-
|
|
13
|
-
--pf-button-
|
|
14
|
-
--pf-button-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
--pf-button-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
--pf-button-
|
|
22
|
-
--pf-button-
|
|
23
|
-
--pf-button-
|
|
24
|
-
--pf-button-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
--pf-button-
|
|
28
|
-
|
|
29
|
-
--pf-button-focus-error-color: var(--pf-red-color-900);
|
|
30
|
-
--pf-button-hover-error-color: var(--pf-red-color-400);
|
|
31
|
-
--pf-button-error-color: var(--pf-error-color);
|
|
32
|
-
--pf-button-error-text-color: var(--pf-white-color);
|
|
33
|
-
--pf-button-outline-hover-error-color: var(--pf-red-color-100);
|
|
34
|
-
|
|
35
|
-
// Success Button Colors
|
|
36
|
-
--pf-button-background-success-color: var(--pf-success-color);
|
|
37
|
-
--pf-button-focus-success-color: var(--pf-green-color-900);
|
|
38
|
-
--pf-button-hover-success-color: var(--pf-green-color-400);
|
|
39
|
-
--pf-button-success-color: var(--pf-success-color);
|
|
40
|
-
--pf-button-success-text-color: var(--pf-white-color);
|
|
41
|
-
--pf-button-outline-hover-success-color: var(--pf-green-color-100);
|
|
42
|
-
|
|
43
|
-
// Warning Button Colors
|
|
44
|
-
--pf-button-background-warning-color: var(--pf-warning-color);
|
|
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
|
-
|
|
50
|
-
// Info Button Colors
|
|
51
|
-
|
|
52
|
-
--pf-button-disabled-info-color: var(--pf-gray-color-300);
|
|
53
|
-
--pf-button-focus-info-color: var(--pf-gray-color-900);
|
|
54
|
-
--pf-button-info-color: var(--pf-info-color);
|
|
55
|
-
--pf-button-info-text-color: var(--pf-white-color);
|
|
56
|
-
|
|
57
|
-
// Gray Button Color
|
|
58
|
-
--pf-button-gray-color: var(--pf-gray-color);
|
|
59
|
-
--pf-button-gray-disabled-color: var(--pf-gray-color-400);
|
|
60
|
-
|
|
61
|
-
// Outline Buttons
|
|
62
|
-
--pf-button-outline-background-color: var(--pf-white-color);
|
|
63
|
-
--pf-button-rounded: var(--pf-rounded);
|
|
6
|
+
--pf-button-font-weight: var(--pf-font-weight-regular);
|
|
7
|
+
--pf-button-font-size-xs: calc(0.875 * var(--pf-font-size-base));
|
|
8
|
+
--pf-button-font-size-sm: calc(0.875 * var(--pf-font-size-base));
|
|
9
|
+
--pf-button-font-size-md: calc(0.875 * var(--pf-font-size-base));
|
|
10
|
+
--pf-button-font-size-lg: var(--pf-font-size-base);
|
|
11
|
+
--pf-button-line-height-xs: var(--pf-line-height-md);
|
|
12
|
+
--pf-button-line-height-sm: var(--pf-line-height-md);
|
|
13
|
+
--pf-button-line-height-md: var(--pf-line-height-md);
|
|
14
|
+
--pf-button-line-height-lg: var(--pf-line-height-lg);
|
|
15
|
+
|
|
16
|
+
// Border radii
|
|
17
|
+
--pf-button-border-radius: var(--pf-rounded-lg);
|
|
18
|
+
--pf-button-pill-border-radius: 100px;
|
|
19
|
+
|
|
20
|
+
// Focus box shadows
|
|
21
|
+
--pf-button-focus-box-shadow: var(--pf-focus-box-shadow-alignment) rgba(25, 139, 220, 0.25);
|
|
22
|
+
--pf-button-solid-focus-box-shadow: var(--pf-button-focus-box-shadow);
|
|
23
|
+
--pf-button-action-focus-box-shadow: var(--pf-button-focus-box-shadow);
|
|
24
|
+
--pf-button-outline-focus-box-shadow: var(--pf-focus-box-shadow-alignment)
|
|
25
|
+
rgba(54, 161, 234, 0.25);
|
|
26
|
+
--pf-button-soft-focus-box-shadow: var(--pf-focus-box-shadow-alignment) rgba(92, 112, 140, 0.25);
|
|
27
|
+
--pf-button-destructive-focus-box-shadow: var(--pf-focus-box-shadow-alignment)
|
|
28
|
+
rgba(206, 96, 104, 0.25);
|
|
64
29
|
}
|
|
65
30
|
|
|
66
31
|
// Light Theme Specific Variables
|
|
67
32
|
:root [data-theme='light'] {
|
|
68
|
-
|
|
69
|
-
--pf-button-
|
|
70
|
-
--pf-button-
|
|
71
|
-
|
|
72
|
-
--pf-button-background-
|
|
73
|
-
--pf-button-
|
|
74
|
-
--pf-button-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
--pf-button-outline-
|
|
78
|
-
--pf-button-outline-
|
|
79
|
-
|
|
80
|
-
--pf-button-outline-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
--pf-button-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
--pf-button-
|
|
91
|
-
--pf-button-
|
|
92
|
-
--pf-button-
|
|
93
|
-
|
|
94
|
-
--pf-button-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
--pf-button-
|
|
101
|
-
--pf-button-
|
|
102
|
-
--pf-button-
|
|
103
|
-
|
|
104
|
-
--pf-button-disabled-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
--pf-button-
|
|
110
|
-
--pf-button-
|
|
111
|
-
--pf-button-
|
|
112
|
-
|
|
113
|
-
--pf-button-disabled-
|
|
114
|
-
--pf-button-disabled-
|
|
115
|
-
--pf-button-disabled-secondary-outline-border-color: var(--pf-secondary-color-300);
|
|
33
|
+
// solid colors
|
|
34
|
+
--pf-button-solid-background-color: var(--pf-primary-color);
|
|
35
|
+
--pf-button-solid-color: var(--pf-white-color);
|
|
36
|
+
--pf-button-solid-hover-background-color: var(--pf-primary-color-400);
|
|
37
|
+
--pf-button-solid-focus-background-color: var(--pf-primary-color);
|
|
38
|
+
--pf-button-solid-disabled-background-color: var(--pf-primary-color-300);
|
|
39
|
+
--pf-button-solid-disabled-color: var(--pf-gray-color-100);
|
|
40
|
+
|
|
41
|
+
// outline colors
|
|
42
|
+
--pf-button-outline-color: var(--pf-primary-color);
|
|
43
|
+
--pf-button-outline-border-color: var(--pf-primary-color);
|
|
44
|
+
--pf-button-outline-hover-color: var(--pf-primary-color-400);
|
|
45
|
+
--pf-button-outline-disabled-color: var(--pf-primary-color-300);
|
|
46
|
+
|
|
47
|
+
// link
|
|
48
|
+
--pf-button-link-color: var(--pf-primary-color);
|
|
49
|
+
--pf-button-link-hover-color: var(--pf-primary-color-600);
|
|
50
|
+
--pf-button-link-disabled-color: var(--pf-primary-color-300);
|
|
51
|
+
|
|
52
|
+
// action
|
|
53
|
+
--pf-button-action-color: var(--pf-primary-color);
|
|
54
|
+
--pf-button-action-border-color: var(--pf-primary-color);
|
|
55
|
+
--pf-button-action-hover-background-color: var(--pf-primary-color-200);
|
|
56
|
+
--pf-button-action-hover-border-color: var(--pf-primary-color-400);
|
|
57
|
+
--pf-button-action-hover-color: var(--pf-primary-color);
|
|
58
|
+
--pf-button-action-disabled-border-color: var(--pf-primary-color-300);
|
|
59
|
+
--pf-button-action-disabled-color: var(--pf-primary-color-300);
|
|
60
|
+
|
|
61
|
+
// destructive
|
|
62
|
+
--pf-button-destructive-background-color: var(--pf-error-color);
|
|
63
|
+
--pf-button-destructive-color: var(--pf-white-color);
|
|
64
|
+
--pf-button-destructive-hover-background-color: var(--pf-red-color-400);
|
|
65
|
+
--pf-button-destructive-hover-color: var(--pf-white-color);
|
|
66
|
+
--pf-button-destructive-focus-background-color: var(--pf-red-color);
|
|
67
|
+
--pf-button-destructive-focus-color: var(--pf-white-color);
|
|
68
|
+
--pf-button-destructive-disabled-background-color: var(--pf-red-color-300);
|
|
69
|
+
--pf-button-destructive-disabled-color: var(--pf-white-color);
|
|
70
|
+
|
|
71
|
+
// soft
|
|
72
|
+
--pf-button-soft-color: var(--pf-primary-color-300);
|
|
73
|
+
--pf-button-soft-border-color: var(--pf-primary-color-300);
|
|
74
|
+
--pf-button-soft-hover-color: var(--pf-primary-color-600);
|
|
75
|
+
--pf-button-soft-hover-border-color: var(--pf-primary-color-600);
|
|
76
|
+
--pf-button-soft-focus-color: var(--pf-primary-color);
|
|
77
|
+
--pf-button-soft-focus-border-color: var(--pf-primary-color);
|
|
78
|
+
--pf-button-soft-disabled-color: var(--pf-primary-color-300);
|
|
79
|
+
--pf-button-soft-disabled-border-color: var(--pf-primary-color-300);
|
|
116
80
|
}
|
|
117
81
|
|
|
118
82
|
// Dark Theme Specific Variables
|
|
119
83
|
:root [data-theme='dark'] {
|
|
120
|
-
|
|
121
|
-
--pf-button-
|
|
122
|
-
--pf-button-
|
|
123
|
-
--pf-button-background-
|
|
124
|
-
--pf-button-
|
|
125
|
-
--pf-button-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
--pf-button-outline-
|
|
130
|
-
--pf-button-
|
|
131
|
-
|
|
132
|
-
--pf-button-outline-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
--pf-button-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
--pf-button-
|
|
142
|
-
--pf-button-
|
|
143
|
-
--pf-button-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
--pf-button-
|
|
150
|
-
|
|
151
|
-
--pf-button-
|
|
152
|
-
--pf-button-
|
|
153
|
-
--pf-button-
|
|
154
|
-
|
|
155
|
-
--pf-button-disabled-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
--pf-button-
|
|
160
|
-
--pf-button-
|
|
161
|
-
--pf-button-
|
|
84
|
+
// solid Button Colors
|
|
85
|
+
--pf-button-solid-background-color: var(--pf-secondary-color);
|
|
86
|
+
--pf-button-solid-color: var(--pf-white-color);
|
|
87
|
+
--pf-button-solid-hover-background-color: var(--pf-secondary-color-550);
|
|
88
|
+
--pf-button-solid-focus-background-color: var(--pf-secondary-color);
|
|
89
|
+
--pf-button-solid-disabled-background-color: var(--pf-tertiary-color-600);
|
|
90
|
+
--pf-button-solid-disabled-color: var(--pf-tertiary-color-400);
|
|
91
|
+
|
|
92
|
+
// outline colors
|
|
93
|
+
--pf-button-outline-color: var(--pf-secondary-color-300);
|
|
94
|
+
--pf-button-outline-border-color: var(--pf-secondary-color-300);
|
|
95
|
+
--pf-button-outline-hover-color: var(--pf-secondary-color-200);
|
|
96
|
+
--pf-button-outline-disabled-color: var(--pf-tertiary-color-450);
|
|
97
|
+
|
|
98
|
+
// link colors
|
|
99
|
+
--pf-button-link-color: var(--pf-secondary-color-550);
|
|
100
|
+
--pf-button-link-hover-color: var(--pf-secondary-color-800);
|
|
101
|
+
--pf-button-link-disabled-color: var(--pf-primary-color-200);
|
|
102
|
+
|
|
103
|
+
// action colors
|
|
104
|
+
--pf-button-action-color: var(--pf-secondary-color-300);
|
|
105
|
+
--pf-button-action-border-color: #42a7ee;
|
|
106
|
+
--pf-button-action-hover-background-color: var(--pf-tertiary-color-450);
|
|
107
|
+
--pf-button-action-hover-border-color: #455770;
|
|
108
|
+
--pf-button-action-hover-color: var(--pf-white-color);
|
|
109
|
+
--pf-button-action-disabled-border-color: var(--pf-tertiary-color-400);
|
|
110
|
+
--pf-button-action-disabled-color: var(--pf-tertiary-color-400);
|
|
111
|
+
|
|
112
|
+
// destructive colors
|
|
113
|
+
--pf-button-destructive-background-color: var(--pf-error-color);
|
|
114
|
+
--pf-button-destructive-color: var(--pf-white-color);
|
|
115
|
+
--pf-button-destructive-hover-background-color: var(--pf-red-color-600);
|
|
116
|
+
--pf-button-destructive-hover-color: var(--pf-white-color);
|
|
117
|
+
--pf-button-destructive-focus-background-color: var(--pf-red-color);
|
|
118
|
+
--pf-button-destructive-disabled-background-color: var(--pf-red-color-900);
|
|
119
|
+
--pf-button-destructive-disabled-color: var(--pf-white-color-40);
|
|
120
|
+
|
|
121
|
+
// soft colors
|
|
122
|
+
--pf-button-soft-color: var(--pf-primary-color-400);
|
|
123
|
+
--pf-button-soft-border-color: var(--pf-primary-color-400);
|
|
124
|
+
--pf-button-soft-hover-color: var(--pf-primary-color-300);
|
|
125
|
+
--pf-button-soft-hover-border-color: var(--pf-primary-color-300);
|
|
126
|
+
--pf-button-soft-focus-color: var(--pf-primary-color-400);
|
|
127
|
+
--pf-button-soft-disabled-color: var(--pf-tertiary-color-700);
|
|
128
|
+
--pf-button-soft-disabled-border-color: var(--pf-tertiary-color-450);
|
|
162
129
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { IconName
|
|
1
|
+
import { IconName } from '../../types';
|
|
2
2
|
|
|
3
|
-
export type ButtonVariants = 'solid' | 'outline' | '
|
|
3
|
+
export type ButtonVariants = 'solid' | 'outline' | 'link' | 'action' | 'destructive' | 'soft';
|
|
4
4
|
|
|
5
|
-
export type
|
|
6
|
-
|
|
7
|
-
export type ButtonSizes = 'sm' | 'md' | 'lg';
|
|
5
|
+
export type ButtonSizes = 'xs' | 'sm' | 'md' | 'lg';
|
|
8
6
|
|
|
9
7
|
export type ButtonTypes = 'button' | 'submit' | 'reset';
|
|
10
8
|
|
|
@@ -18,10 +16,10 @@ export interface ButtonProps {
|
|
|
18
16
|
isLoading?: boolean;
|
|
19
17
|
onClick?: (...args: any[]) => void;
|
|
20
18
|
variant?: ButtonVariants;
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
isPill?: boolean;
|
|
20
|
+
iconLeft?: IconName;
|
|
21
|
+
iconRight?: IconName;
|
|
23
22
|
size?: ButtonSizes;
|
|
24
|
-
iconName?: IconName;
|
|
25
23
|
type?: ButtonTypes;
|
|
26
24
|
href?: string;
|
|
27
25
|
isDisabled?: boolean;
|
|
@@ -85,7 +85,7 @@ export const Default: Story = {
|
|
|
85
85
|
musical talents, and wide array of skills. Bards are often seen as
|
|
86
86
|
jacks-of-all-trades, able to adapt to various situations and roles within a party.
|
|
87
87
|
<hr />
|
|
88
|
-
<Button
|
|
88
|
+
<Button ariaLabel="Learn More" onClick={() => alert('Learn More')}>
|
|
89
89
|
Learn More
|
|
90
90
|
</Button>
|
|
91
91
|
</Card>
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
// Common Variables
|
|
2
|
-
:root
|
|
3
|
-
:root [data-theme='light'],
|
|
4
|
-
:root [data-theme='dark'] {
|
|
5
|
-
--pf-card-background-color: var(--pf-white-color);
|
|
6
|
-
--pf-card-text-color: var(--pf-gray-color);
|
|
7
|
-
--pf-card-border-color: var(--pf-gray-color);
|
|
2
|
+
:root {
|
|
8
3
|
--pf-card-rounded: var(--pf-rounded);
|
|
9
4
|
}
|
|
10
5
|
|
|
6
|
+
// Light Theme Specific Variables
|
|
7
|
+
:root [data-theme='light'] {
|
|
8
|
+
--pf-card-background-color: var(--pf-white-color);
|
|
9
|
+
--pf-card-border-color: var(--pf-border-color);
|
|
10
|
+
}
|
|
11
|
+
|
|
11
12
|
// Dark Theme Specific Variables
|
|
12
|
-
:root [data-theme='dark']
|
|
13
|
-
|
|
14
|
-
--pf-card-
|
|
15
|
-
--pf-card-
|
|
16
|
-
--pf-card-border-color: var(--pf-steel-color-600);
|
|
13
|
+
:root [data-theme='dark'],
|
|
14
|
+
:root {
|
|
15
|
+
--pf-card-background-color: var(--pf-primary-color-600);
|
|
16
|
+
--pf-card-border-color: var(--pf-border-color);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.card {
|
|
@@ -27,7 +27,7 @@ import React, { useState } from 'react';
|
|
|
27
27
|
import { FloatUI } from '@/components/FloatUI';
|
|
28
28
|
import { Button } from '@/components/Button';
|
|
29
29
|
import { Menu } from '@/components/Menu';
|
|
30
|
-
import { Icon } from '@/components/Icon';
|
|
30
|
+
import { Icon } from '@/components/icons/Icon';
|
|
31
31
|
|
|
32
32
|
const ControlledExample = () => {
|
|
33
33
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -43,27 +43,27 @@ const ControlledExample = () => {
|
|
|
43
43
|
return (
|
|
44
44
|
<div>
|
|
45
45
|
<FloatUI ariaLabel="Controlled Example FloatUI" isOpen={isOpen} setIsOpen={setIsOpen}>
|
|
46
|
-
<Button
|
|
46
|
+
<Button iconLeft="kabob" ariaLabel="Toggle FloatUI" onClick={handleToggle}>
|
|
47
47
|
Actions
|
|
48
48
|
</Button>
|
|
49
49
|
<Menu>
|
|
50
50
|
<Button
|
|
51
51
|
ariaLabel="Refresh Data"
|
|
52
|
-
|
|
52
|
+
iconLeft="retrain"
|
|
53
53
|
onClick={() => handleActionClick('Refresh Data')}
|
|
54
54
|
>
|
|
55
55
|
Refresh Data
|
|
56
56
|
</Button>
|
|
57
57
|
<Button
|
|
58
58
|
ariaLabel="Configure Fields"
|
|
59
|
-
|
|
59
|
+
iconLeft="edit"
|
|
60
60
|
onClick={() => handleActionClick('Configure Fields')}
|
|
61
61
|
>
|
|
62
62
|
Configure Fields
|
|
63
63
|
</Button>
|
|
64
64
|
<Button
|
|
65
65
|
ariaLabel="Delete Library"
|
|
66
|
-
|
|
66
|
+
iconLeft="trash"
|
|
67
67
|
onClick={() => handleActionClick('Delete Library')}
|
|
68
68
|
>
|
|
69
69
|
Delete Library
|
|
@@ -105,12 +105,12 @@ type Story = StoryObj<FloatUIProps>;
|
|
|
105
105
|
export const Uncontrolled: Story = {
|
|
106
106
|
render: (args) => (
|
|
107
107
|
<FloatUI {...args} ariaLabel="Example FloatUI">
|
|
108
|
-
<Button
|
|
108
|
+
<Button iconLeft="kabob" ariaLabel="Toggle FloatUI" variant="action" />
|
|
109
109
|
<Menu>
|
|
110
110
|
<Button
|
|
111
111
|
data-testid="refresh-library"
|
|
112
112
|
ariaLabel="Refresh Data"
|
|
113
|
-
|
|
113
|
+
iconLeft="retrain"
|
|
114
114
|
onClick={() => console.log('Refresh Data')}
|
|
115
115
|
>
|
|
116
116
|
Refresh Data
|
|
@@ -118,7 +118,7 @@ export const Uncontrolled: Story = {
|
|
|
118
118
|
<Button
|
|
119
119
|
data-testid="configure-fields"
|
|
120
120
|
ariaLabel="Configure Fields"
|
|
121
|
-
|
|
121
|
+
iconLeft="edit"
|
|
122
122
|
onClick={() => console.log('Configure Fields')}
|
|
123
123
|
>
|
|
124
124
|
Configure Fields
|
|
@@ -126,7 +126,7 @@ export const Uncontrolled: Story = {
|
|
|
126
126
|
<Button
|
|
127
127
|
data-testid="delete-library"
|
|
128
128
|
ariaLabel="Delete Library"
|
|
129
|
-
|
|
129
|
+
iconLeft="trash"
|
|
130
130
|
onClick={() => console.log('Delete Library')}
|
|
131
131
|
>
|
|
132
132
|
Delete Library
|
|
@@ -147,12 +147,12 @@ export const Controlled: Story = {
|
|
|
147
147
|
isOpen={isOpen}
|
|
148
148
|
setIsOpen={setIsOpen}
|
|
149
149
|
>
|
|
150
|
-
<Button
|
|
150
|
+
<Button iconLeft="kabob" ariaLabel="Toggle FloatUI" variant="action" />
|
|
151
151
|
<Menu>
|
|
152
152
|
<Button
|
|
153
153
|
data-testid="refresh-library"
|
|
154
154
|
ariaLabel="Refresh Data"
|
|
155
|
-
|
|
155
|
+
iconLeft="retrain"
|
|
156
156
|
onClick={() => console.log('Refresh Data')}
|
|
157
157
|
>
|
|
158
158
|
Refresh Data
|
|
@@ -160,7 +160,7 @@ export const Controlled: Story = {
|
|
|
160
160
|
<Button
|
|
161
161
|
data-testid="configure-fields"
|
|
162
162
|
ariaLabel="Configure Fields"
|
|
163
|
-
|
|
163
|
+
iconLeft="edit"
|
|
164
164
|
onClick={() => console.log('Configure Fields')}
|
|
165
165
|
>
|
|
166
166
|
Configure Fields
|
|
@@ -168,7 +168,7 @@ export const Controlled: Story = {
|
|
|
168
168
|
<Button
|
|
169
169
|
data-testid="delete-library"
|
|
170
170
|
ariaLabel="Delete Library"
|
|
171
|
-
|
|
171
|
+
iconLeft="trash"
|
|
172
172
|
onClick={() => console.log('Delete Library')}
|
|
173
173
|
>
|
|
174
174
|
Delete Library
|
|
@@ -32,13 +32,13 @@ describe('FloatUI Component', () => {
|
|
|
32
32
|
<FloatUI ariaLabel="Example FloatUI">
|
|
33
33
|
<Button ariaLabel="Toggle FloatUI">Toggle</Button>
|
|
34
34
|
<Menu>
|
|
35
|
-
<Button ariaLabel="Refresh Data"
|
|
35
|
+
<Button ariaLabel="Refresh Data" iconLeft="retrain">
|
|
36
36
|
Refresh Data
|
|
37
37
|
</Button>
|
|
38
|
-
<Button ariaLabel="Configure Fields"
|
|
38
|
+
<Button ariaLabel="Configure Fields" iconLeft="edit">
|
|
39
39
|
Configure Fields
|
|
40
40
|
</Button>
|
|
41
|
-
<Button ariaLabel="Delete Library"
|
|
41
|
+
<Button ariaLabel="Delete Library" iconLeft="trash">
|
|
42
42
|
Delete Library
|
|
43
43
|
</Button>
|
|
44
44
|
</Menu>
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
// Common Variables
|
|
2
|
-
:root
|
|
3
|
-
:root [data-theme='light'],
|
|
4
|
-
:root [data-theme='dark'] {
|
|
5
|
-
--pf-floatui-background-color: var(--pf-white-color);
|
|
6
|
-
--pf-floatui-border-color: var(--pf-border-color-900);
|
|
2
|
+
:root {
|
|
7
3
|
--pf-floatui-border-radius: var(--pf-rounded);
|
|
4
|
+
--pf-floatui-box-shadow: var(--pf-dropshadow);
|
|
5
|
+
--pf-floatui-border: none;
|
|
6
|
+
--pf-floatui-border-color: var(--pf-border-color);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// Light Theme Specific Variables
|
|
10
|
+
:root [data-theme='light'] {
|
|
11
|
+
--pf-floatui-background-color: var(--pf-white-color);
|
|
8
12
|
}
|
|
9
13
|
|
|
10
14
|
// Dark Theme Specific Variables
|
|
11
|
-
:root [data-theme='dark']
|
|
15
|
+
:root [data-theme='dark'],
|
|
16
|
+
:root {
|
|
12
17
|
--pf-floatui-background-color: var(--pf-primary-color-600);
|
|
13
|
-
--pf-floatui-border-color: var(--pf-border-color);
|
|
14
18
|
}
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
//
|
|
2
|
-
:root
|
|
3
|
-
:root [data-theme='light'],
|
|
4
|
-
:root [data-theme='dark'] {
|
|
5
|
-
--pf-checkbox-background-color: var(--pf-white-color);
|
|
1
|
+
// Light Theme Specific Variables
|
|
2
|
+
:root [data-theme='light'] {
|
|
6
3
|
--pf-checkbox-check-color: var(--pf-primary-color);
|
|
7
|
-
--pf-checkbox-border-color: var(--pf-form-input-border-color);
|
|
8
4
|
--pf-checkbox-disabled-color: var(--pf-gray-color-400);
|
|
9
5
|
}
|
|
10
6
|
|
|
11
|
-
// Dark Theme
|
|
12
|
-
:root [data-theme='dark']
|
|
13
|
-
|
|
7
|
+
// Dark Theme and Default Variables
|
|
8
|
+
:root [data-theme='dark'],
|
|
9
|
+
:root {
|
|
14
10
|
--pf-checkbox-check-color: var(--pf-white-color);
|
|
15
|
-
--pf-checkbox-border-color: var(--pf-form-input-border-color);
|
|
16
11
|
--pf-checkbox-disabled-color: var(--pf-gray-color-300);
|
|
17
12
|
}
|
|
18
|
-
|
|
19
13
|
.form-control {
|
|
20
14
|
.checkbox-wrapper {
|
|
21
15
|
display: flex;
|
|
@@ -51,9 +45,9 @@
|
|
|
51
45
|
top: 0;
|
|
52
46
|
width: 18px;
|
|
53
47
|
height: 18px;
|
|
54
|
-
border: 1px solid var(--pf-
|
|
48
|
+
border: 1px solid var(--pf-form-input-border-color);
|
|
55
49
|
border-radius: var(--pf-rounded);
|
|
56
|
-
background: var(--pf-
|
|
50
|
+
background: var(--pf-form-input-background-color);
|
|
57
51
|
}
|
|
58
52
|
.checkbox-input:checked + label:after,
|
|
59
53
|
.checkbox-input:not(:checked) + label:after {
|
|
@@ -93,6 +87,6 @@
|
|
|
93
87
|
}
|
|
94
88
|
|
|
95
89
|
.checkbox-input:disabled + label:after {
|
|
96
|
-
background: var(--pf-
|
|
90
|
+
background: var(--pf-form-input-disabled-background-color);
|
|
97
91
|
}
|
|
98
92
|
}
|
|
@@ -14,7 +14,13 @@ describe('DatePicker', () => {
|
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
it('renders the date picker with a custom number of months', () => {
|
|
17
|
-
render(
|
|
17
|
+
render(
|
|
18
|
+
<DatePicker
|
|
19
|
+
numberOfMonths={3}
|
|
20
|
+
defaultMonth={new Date(new Date().getFullYear(), 0, 1)}
|
|
21
|
+
data-testid="date-picker"
|
|
22
|
+
/>,
|
|
23
|
+
);
|
|
18
24
|
expect(document.getElementsByClassName('rdp-month')).toHaveLength(3);
|
|
19
25
|
});
|
|
20
26
|
});
|
|
@@ -31,7 +37,14 @@ describe('DatePicker', () => {
|
|
|
31
37
|
});
|
|
32
38
|
|
|
33
39
|
it('renders the date range picker with a custom number of months', () => {
|
|
34
|
-
render(
|
|
40
|
+
render(
|
|
41
|
+
<DatePicker
|
|
42
|
+
mode="range"
|
|
43
|
+
numberOfMonths={3}
|
|
44
|
+
defaultMonth={new Date(new Date().getFullYear(), 0, 1)}
|
|
45
|
+
data-testid="date-picker"
|
|
46
|
+
/>,
|
|
47
|
+
);
|
|
35
48
|
expect(document.getElementsByClassName('rdp-month')).toHaveLength(3);
|
|
36
49
|
});
|
|
37
50
|
});
|
|
@@ -48,7 +61,14 @@ describe('DatePicker', () => {
|
|
|
48
61
|
});
|
|
49
62
|
|
|
50
63
|
it('renders the date picker with a custom number of months', () => {
|
|
51
|
-
render(
|
|
64
|
+
render(
|
|
65
|
+
<DatePicker
|
|
66
|
+
mode="multiple"
|
|
67
|
+
numberOfMonths={3}
|
|
68
|
+
defaultMonth={new Date(new Date().getFullYear(), 0, 1)}
|
|
69
|
+
data-testid="date-picker"
|
|
70
|
+
/>,
|
|
71
|
+
);
|
|
52
72
|
expect(document.getElementsByClassName('rdp-month')).toHaveLength(3);
|
|
53
73
|
});
|
|
54
74
|
});
|