@indico-data/design-system 2.43.1 → 2.45.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 +1778 -1019
- package/lib/index.d.ts +148 -885
- package/lib/index.esm.css +1778 -1019
- 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/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 +11 -9
- 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 +7 -18
- package/src/styles/index.scss +1 -2
- package/src/styles/storybook.scss +1 -1
- package/src/styles/variables/_borders.scss +7 -7
- 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,22 +1,22 @@
|
|
|
1
1
|
// Common Variables
|
|
2
|
-
|
|
3
|
-
:root [data-theme='light']
|
|
4
|
-
:
|
|
5
|
-
--pf-toggle-background-color: var(--pf-gray-color-200);
|
|
2
|
+
|
|
3
|
+
:root [data-theme='light'] {
|
|
4
|
+
--pf-toggle-background-color: var(--pf-form-input-background-color);
|
|
6
5
|
--pf-toggle-circle-color: var(--pf-primary-color);
|
|
7
6
|
--pf-toggle-border-color: var(--pf-form-input-border-color);
|
|
8
|
-
--pf-toggle-disabled-background-color: var(--pf-
|
|
9
|
-
--pf-toggle-disabled-circle-color: var(--pf-
|
|
10
|
-
--pf-toggle-checked-background-color: var(--pf-primary-color-
|
|
7
|
+
--pf-toggle-disabled-background-color: var(--pf-form-input-disabled-background-color);
|
|
8
|
+
--pf-toggle-disabled-circle-color: var(--pf-form-input-disabled-color);
|
|
9
|
+
--pf-toggle-checked-background-color: var(--pf-primary-color-300);
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
// Dark Theme Specific Variables
|
|
14
|
-
:root [data-theme='dark']
|
|
15
|
-
|
|
13
|
+
:root [data-theme='dark'],
|
|
14
|
+
:root {
|
|
15
|
+
--pf-toggle-background-color: var(--pf-form-input-background-color);
|
|
16
16
|
--pf-toggle-circle-color: var(--pf-white-color);
|
|
17
|
-
--pf-toggle-border-color: var(--pf-
|
|
18
|
-
--pf-toggle-disabled-background-color: var(--pf-
|
|
19
|
-
--pf-toggle-disabled-circle-color: var(--pf-
|
|
17
|
+
--pf-toggle-border-color: var(--pf-primary-color);
|
|
18
|
+
--pf-toggle-disabled-background-color: var(--pf-form-input-disabled-background-color);
|
|
19
|
+
--pf-toggle-disabled-circle-color: var(--pf-form-input-disabled-color);
|
|
20
20
|
--pf-toggle-checked-background-color: var(--pf-secondary-color-400);
|
|
21
21
|
}
|
|
22
22
|
.switch {
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
border-radius: 20px;
|
|
29
29
|
transition: all 0.3s;
|
|
30
30
|
cursor: pointer;
|
|
31
|
+
border: 1px solid var(--pf-toggle-border-color);
|
|
31
32
|
}
|
|
32
33
|
.switch::after {
|
|
33
34
|
content: '';
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.sb__sample-cell {
|
|
9
|
-
@include sample-cell-style(pf-
|
|
9
|
+
@include sample-cell-style(pf-secondary-color-550, pf-white-color);
|
|
10
10
|
|
|
11
11
|
&-secondary {
|
|
12
|
-
@include sample-cell-style(pf-secondary-color-400, pf-
|
|
12
|
+
@include sample-cell-style(pf-secondary-color-400, pf-white-color);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
&-green {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&-red {
|
|
24
|
-
@include sample-cell-style(pf-red-color-400, pf-
|
|
24
|
+
@include sample-cell-style(pf-red-color-400, pf-white-color);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { render, screen } from '@testing-library/react';
|
|
2
2
|
import userEvent from '@testing-library/user-event';
|
|
3
|
-
import { Icon } from '@/components';
|
|
3
|
+
import { Icon } from '@/components/icons/Icon';
|
|
4
4
|
|
|
5
5
|
describe('Icon Component', () => {
|
|
6
6
|
describe('FontAwesome Icons', () => {
|
|
@@ -30,7 +30,7 @@ export const Default: Story = {
|
|
|
30
30
|
<Button
|
|
31
31
|
data-testid="refresh-library"
|
|
32
32
|
ariaLabel="Refresh Data"
|
|
33
|
-
|
|
33
|
+
iconLeft="retrain"
|
|
34
34
|
onClick={() => console.log('Refresh Data')}
|
|
35
35
|
>
|
|
36
36
|
Refresh Data
|
|
@@ -38,7 +38,7 @@ export const Default: Story = {
|
|
|
38
38
|
<Button
|
|
39
39
|
data-testid="configure-fields"
|
|
40
40
|
ariaLabel="Configure Fields"
|
|
41
|
-
|
|
41
|
+
iconLeft="edit"
|
|
42
42
|
onClick={() => console.log('Configure Fields')}
|
|
43
43
|
>
|
|
44
44
|
Configure Fields
|
|
@@ -46,7 +46,7 @@ export const Default: Story = {
|
|
|
46
46
|
<Button
|
|
47
47
|
data-testid="delete-library"
|
|
48
48
|
ariaLabel="Delete Library"
|
|
49
|
-
|
|
49
|
+
iconLeft="trash"
|
|
50
50
|
onClick={() => console.log('Delete Library')}
|
|
51
51
|
>
|
|
52
52
|
Delete Library
|
|
@@ -7,13 +7,13 @@ describe('Menu Component', () => {
|
|
|
7
7
|
it('renders children inside of the menu', () => {
|
|
8
8
|
render(
|
|
9
9
|
<Menu>
|
|
10
|
-
<Button data-testid="refresh-library" ariaLabel="Refresh Data"
|
|
10
|
+
<Button data-testid="refresh-library" ariaLabel="Refresh Data" iconLeft="retrain">
|
|
11
11
|
Refresh Data
|
|
12
12
|
</Button>
|
|
13
|
-
<Button data-testid="configure-fields" ariaLabel="Configure Fields"
|
|
13
|
+
<Button data-testid="configure-fields" ariaLabel="Configure Fields" iconLeft="edit">
|
|
14
14
|
Configure Fields
|
|
15
15
|
</Button>
|
|
16
|
-
<Button data-testid="delete-library" ariaLabel="Delete Library"
|
|
16
|
+
<Button data-testid="delete-library" ariaLabel="Delete Library" iconLeft="trash">
|
|
17
17
|
Delete Library
|
|
18
18
|
</Button>
|
|
19
19
|
</Menu>,
|
|
@@ -26,13 +26,13 @@ describe('Menu Component', () => {
|
|
|
26
26
|
it('applies the menu-item class to its children', () => {
|
|
27
27
|
render(
|
|
28
28
|
<Menu>
|
|
29
|
-
<Button data-testid="refresh-library" ariaLabel="Refresh Data"
|
|
29
|
+
<Button data-testid="refresh-library" ariaLabel="Refresh Data" iconLeft="retrain">
|
|
30
30
|
Refresh Data
|
|
31
31
|
</Button>
|
|
32
|
-
<Button data-testid="configure-fields" ariaLabel="Configure Fields"
|
|
32
|
+
<Button data-testid="configure-fields" ariaLabel="Configure Fields" iconLeft="edit">
|
|
33
33
|
Configure Fields
|
|
34
34
|
</Button>
|
|
35
|
-
<Button data-testid="delete-library" ariaLabel="Delete Library"
|
|
35
|
+
<Button data-testid="delete-library" ariaLabel="Delete Library" iconLeft="trash">
|
|
36
36
|
Delete Library
|
|
37
37
|
</Button>
|
|
38
38
|
</Menu>,
|
|
@@ -53,7 +53,7 @@ describe('Menu Component', () => {
|
|
|
53
53
|
<Button
|
|
54
54
|
data-testid="refresh-library"
|
|
55
55
|
ariaLabel="Refresh Data"
|
|
56
|
-
|
|
56
|
+
iconLeft="retrain"
|
|
57
57
|
onClick={mockRefresh}
|
|
58
58
|
>
|
|
59
59
|
Refresh Data
|
|
@@ -61,7 +61,7 @@ describe('Menu Component', () => {
|
|
|
61
61
|
<Button
|
|
62
62
|
data-testid="configure-fields"
|
|
63
63
|
ariaLabel="Configure Fields"
|
|
64
|
-
|
|
64
|
+
iconLeft="edit"
|
|
65
65
|
onClick={mockConfigure}
|
|
66
66
|
>
|
|
67
67
|
Configure Fields
|
|
@@ -69,7 +69,7 @@ describe('Menu Component', () => {
|
|
|
69
69
|
<Button
|
|
70
70
|
data-testid="delete-library"
|
|
71
71
|
ariaLabel="Delete Library"
|
|
72
|
-
|
|
72
|
+
iconLeft="trash"
|
|
73
73
|
onClick={mockDelete}
|
|
74
74
|
>
|
|
75
75
|
Delete Library
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
:root
|
|
2
|
-
:root [data-theme='light'],
|
|
3
|
-
:root [data-theme='dark'] {
|
|
1
|
+
:root {
|
|
4
2
|
--pf-menu-rounded: var(--pf-rounded);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
// Light Theme Specific Variables
|
|
6
|
+
:root [data-theme='light'] {
|
|
5
7
|
--pf-menu-item-hover-color: var(--pf-primary-color-100);
|
|
6
8
|
--pf-menu-item-background-color: var(--pf-white-color);
|
|
7
9
|
--pf-menu-item-color: var(--pf-gray-color);
|
|
10
|
+
--pf-menu-item-focus-color: var(--pf-primary-color-300);
|
|
8
11
|
}
|
|
9
12
|
|
|
10
13
|
// Dark Theme Specific Variables
|
|
11
|
-
:root [data-theme='dark']
|
|
12
|
-
|
|
14
|
+
:root [data-theme='dark'],
|
|
15
|
+
:root {
|
|
16
|
+
--pf-menu-item-hover-color: var(--pf-primary-color-500);
|
|
13
17
|
--pf-menu-item-background-color: var(--pf-primary-color-600);
|
|
14
|
-
--pf-menu-item-color: var(--pf-gray-color-
|
|
18
|
+
--pf-menu-item-color: var(--pf-gray-color-50);
|
|
19
|
+
--pf-menu-item-focus-color: var(--pf-primary-color-500);
|
|
15
20
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
//
|
|
2
|
-
:root
|
|
3
|
-
:root [data-theme='light'],
|
|
4
|
-
:root [data-theme='dark'] {
|
|
1
|
+
// Light Theme Specific Variables
|
|
2
|
+
:root [data-theme='light'] {
|
|
5
3
|
--pf-pill-primary-background-color: var(--pf-primary-color);
|
|
6
4
|
--pf-pill-primary-font-color: var(--pf-white-color);
|
|
7
5
|
--pf-pill-primary-border-color: var(--pf-primary-color);
|
|
@@ -32,7 +30,8 @@
|
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
// Dark Theme Specific Variables
|
|
35
|
-
:root [data-theme='dark']
|
|
33
|
+
:root [data-theme='dark'],
|
|
34
|
+
:root {
|
|
36
35
|
--pf-pill-primary-background-color: var(--pf-primary-color-900);
|
|
37
36
|
--pf-pill-primary-font-color: var(--pf-white-color);
|
|
38
37
|
--pf-pill-primary-border-color: var(--pf-primary-color-100);
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
// Dark Theme Specific Variables
|
|
10
10
|
:root [data-theme='dark'] {
|
|
11
|
-
--pf-skeleton-color-one: var(--pf-primary-color-
|
|
12
|
-
--pf-skeleton-color-two: var(--pf-primary-color-
|
|
11
|
+
--pf-skeleton-color-one: var(--pf-primary-color-500);
|
|
12
|
+
--pf-skeleton-color-two: var(--pf-primary-color-400);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.skeleton {
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
@import 'variables.scss';
|
|
2
2
|
|
|
3
3
|
.table-loading {
|
|
4
|
+
background-color: var(--pf-table-background-color);
|
|
4
5
|
color: var(--pf-table-font-color);
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 50px;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
5
11
|
}
|
|
6
12
|
|
|
7
13
|
.table {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Light Theme Specific Variables
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
:root [data-theme='light'] {
|
|
4
4
|
--pf-table-background-color: var(--pf-white-color);
|
|
5
5
|
--pf-table-font-color: var(--pf-gray-color);
|
|
@@ -14,14 +14,16 @@
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
// Dark Theme Specific Variables
|
|
17
|
-
:root [data-theme='dark']
|
|
18
|
-
|
|
19
|
-
--pf-table-
|
|
20
|
-
--pf-table-
|
|
21
|
-
--pf-table-
|
|
22
|
-
--pf-table-
|
|
17
|
+
:root [data-theme='dark'],
|
|
18
|
+
:root {
|
|
19
|
+
--pf-table-background-color: var(--pf-primary-color-800);
|
|
20
|
+
--pf-table-font-color: var(--pf-white-color);
|
|
21
|
+
--pf-table-border-color: var(--pf-tertiary-color-800);
|
|
22
|
+
--pf-table-stripe-color: var(--pf-primary-color-700);
|
|
23
|
+
--pf-table-hover-color: var(--pf-primary-color-600);
|
|
23
24
|
--pf-table-disabled-color: var(--pf-gray-color-900);
|
|
24
|
-
--pf-table-checked-color: var(--pf-secondary-color-
|
|
25
|
-
--pf-table-highlighted-color: var(--pf-primary-color
|
|
25
|
+
--pf-table-checked-color: var(--pf-secondary-color-100);
|
|
26
|
+
--pf-table-highlighted-color: var(--pf-primary-color);
|
|
26
27
|
--pf-table-highlighted-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.3);
|
|
28
|
+
--pf-table-font-size: var(--pf-font-size-body2);
|
|
27
29
|
}
|
package/src/index.ts
CHANGED
|
@@ -4,60 +4,15 @@ import './setup/setupIcons';
|
|
|
4
4
|
// This is so consumers of the DS can import floating ui functions/hooks/types from the DS rather than the (peer dependency) floating-ui package
|
|
5
5
|
export * from '@floating-ui/react-dom';
|
|
6
6
|
|
|
7
|
-
export { GlobalStyles } from './legacy/styles/globals/index';
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
ANIMATION,
|
|
11
|
-
BREAKPOINT,
|
|
12
|
-
COLORS,
|
|
13
|
-
MATH,
|
|
14
|
-
MEDIA_QUERIES,
|
|
15
|
-
MARGINS,
|
|
16
|
-
PADDINGS,
|
|
17
|
-
SPACING,
|
|
18
|
-
TYPOGRAPHY,
|
|
19
|
-
} from './legacy/tokens';
|
|
20
|
-
|
|
21
7
|
export {
|
|
22
|
-
AbstractRadio,
|
|
23
|
-
AbstractRadioGroup,
|
|
24
|
-
Accordion,
|
|
25
8
|
BarSpinner,
|
|
26
|
-
BorderSelect,
|
|
27
|
-
Button as LegacyButton,
|
|
28
9
|
CirclePulse,
|
|
29
10
|
CircleSpinner,
|
|
30
11
|
ConfirmModal,
|
|
31
|
-
EditableInput,
|
|
32
|
-
IconButton,
|
|
33
|
-
ListTable,
|
|
34
|
-
LoadingAwareContainer,
|
|
35
|
-
LoadingList,
|
|
36
12
|
ModalBase,
|
|
37
|
-
MultiCombobox,
|
|
38
|
-
NumberInput,
|
|
39
|
-
Pagination,
|
|
40
|
-
PercentageRing,
|
|
41
|
-
Radio,
|
|
42
|
-
RadioGroup,
|
|
43
|
-
RandomLoadingMessage,
|
|
44
|
-
SearchInput,
|
|
45
|
-
Section,
|
|
46
|
-
SectionBlock,
|
|
47
|
-
SectionBody,
|
|
48
|
-
SectionHeader,
|
|
49
|
-
SectionTable,
|
|
50
|
-
Select,
|
|
51
|
-
Shrug,
|
|
52
|
-
SingleCombobox,
|
|
53
|
-
TextInput,
|
|
54
|
-
TextTruncate,
|
|
55
|
-
Toggle,
|
|
56
13
|
Tooltip,
|
|
57
14
|
} from './legacy/components';
|
|
58
15
|
|
|
59
|
-
export { numberUtils, stringUtils, colorUtils } from './legacy/utils';
|
|
60
|
-
|
|
61
16
|
// New Components
|
|
62
17
|
export { Container, Row, Col } from './components/grid';
|
|
63
18
|
export { Button } from './components/button';
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
|
|
3
|
-
import { COLORS } from '@/index';
|
|
4
|
-
|
|
5
3
|
export const StyledTooltip = styled.div`
|
|
6
4
|
display: inline-block;
|
|
7
5
|
|
|
@@ -15,14 +13,11 @@ export const StyledTooltip = styled.div`
|
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
.tool {
|
|
18
|
-
background: ${COLORS.oxfordBlue} !important;
|
|
19
|
-
border: 1px solid ${COLORS.baliHai} !important;
|
|
20
16
|
border-radius: 2px !important;
|
|
21
17
|
padding: 8px 11px !important;
|
|
22
18
|
opacity: 1 !important;
|
|
23
19
|
|
|
24
20
|
&.place-left:after {
|
|
25
|
-
border-left-color: ${COLORS.oxfordBlue} !important;
|
|
26
21
|
border-top: 5px solid transparent !important;
|
|
27
22
|
border-bottom: 5px solid transparent !important;
|
|
28
23
|
right: -6px !important;
|
|
@@ -31,14 +26,12 @@ export const StyledTooltip = styled.div`
|
|
|
31
26
|
}
|
|
32
27
|
|
|
33
28
|
&.place-left:before {
|
|
34
|
-
border-left-color: ${COLORS.baliHai} !important;
|
|
35
29
|
border-left-width: 8px !important;
|
|
36
30
|
border-left-style: solid !important;
|
|
37
31
|
margin-top: -10px !important;
|
|
38
32
|
}
|
|
39
33
|
|
|
40
34
|
&.place-right:after {
|
|
41
|
-
border-right-color: ${COLORS.oxfordBlue} !important;
|
|
42
35
|
border-top: 5px solid transparent !important;
|
|
43
36
|
border-bottom: 5px solid transparent !important;
|
|
44
37
|
left: -6px !important;
|
|
@@ -47,28 +40,23 @@ export const StyledTooltip = styled.div`
|
|
|
47
40
|
}
|
|
48
41
|
|
|
49
42
|
&.place-right:before {
|
|
50
|
-
border-right-color: ${COLORS.baliHai} !important;
|
|
51
43
|
border-right-width: 8px !important;
|
|
52
44
|
border-right-style: solid !important;
|
|
53
45
|
margin-top: -10px !important;
|
|
54
46
|
}
|
|
55
47
|
|
|
56
48
|
&.place-top:after {
|
|
57
|
-
border-top-color: ${COLORS.oxfordBlue} !important;
|
|
58
49
|
}
|
|
59
50
|
|
|
60
51
|
&.place-top:before {
|
|
61
|
-
border-top-color: ${COLORS.baliHai} !important;
|
|
62
52
|
border-top-width: 8px !important;
|
|
63
53
|
border-top-style: solid !important;
|
|
64
54
|
}
|
|
65
55
|
|
|
66
56
|
&.place-bottom:after {
|
|
67
|
-
border-bottom-color: ${COLORS.oxfordBlue} !important;
|
|
68
57
|
}
|
|
69
58
|
|
|
70
59
|
&.place-bottom:before {
|
|
71
|
-
border-bottom-color: ${COLORS.baliHai} !important;
|
|
72
60
|
border-bottom-width: 8px !important;
|
|
73
61
|
border-bottom-style: solid !important;
|
|
74
62
|
}
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { PermafrostComponent } from '@/types';
|
|
5
|
+
import { Icon } from '../../../components/icons/Icon';
|
|
6
|
+
import { PermafrostComponent } from '../../../types';
|
|
8
7
|
import { Tooltip as ReactTooltip } from 'react-tooltip';
|
|
9
8
|
|
|
10
9
|
import { StyledTooltip } from './Tooltip.styles';
|
|
@@ -47,7 +46,6 @@ export const Tooltip = (props: Props) => {
|
|
|
47
46
|
>
|
|
48
47
|
{props.questionMark && (
|
|
49
48
|
<i
|
|
50
|
-
style={{ color: COLORS.curiousBlue }}
|
|
51
49
|
className={props.questionMarkClassName}
|
|
52
50
|
// data-tip={props.clickToShow ? 'custom show' : ''}
|
|
53
51
|
data-tooltip-id={props.for as string | undefined}
|
|
@@ -1,32 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { Section, SectionBlock, SectionBody, SectionHeader, SectionTable } from './basic-section';
|
|
3
|
-
export { Button, IconButton } from './buttons';
|
|
4
|
-
export { BorderSelect, MultiCombobox, Select, SingleCombobox } from './dropdowns';
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
EditableInput,
|
|
8
|
-
NumberInput,
|
|
9
|
-
SearchInput,
|
|
10
|
-
TextInput,
|
|
11
|
-
Radio,
|
|
12
|
-
RadioGroup,
|
|
13
|
-
AbstractRadio,
|
|
14
|
-
AbstractRadioGroup,
|
|
15
|
-
} from './inputs';
|
|
16
|
-
export {
|
|
17
|
-
BarSpinner,
|
|
18
|
-
CirclePulse,
|
|
19
|
-
CircleSpinner,
|
|
20
|
-
LoadingList,
|
|
21
|
-
PercentageRing,
|
|
22
|
-
RandomLoadingMessage,
|
|
23
|
-
LoadingIndicator,
|
|
24
|
-
} from './loading-indicators';
|
|
25
|
-
export { ListTable } from './ListTable';
|
|
26
|
-
export { Pagination } from './Pagination';
|
|
27
|
-
export { Shrug } from './user-feedback';
|
|
1
|
+
export { BarSpinner, CirclePulse, CircleSpinner } from './loading-indicators';
|
|
28
2
|
export { ConfirmModal, ModalBase } from './modals';
|
|
29
|
-
export { LoadingAwareContainer } from './LoadingAwareContainer';
|
|
30
|
-
export { TextTruncate } from './text-truncate';
|
|
31
|
-
export { Toggle } from './Toggle';
|
|
32
3
|
export { Tooltip } from './Tooltip';
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import styled, { keyframes } from 'styled-components';
|
|
2
2
|
|
|
3
|
-
import { COLORS } from '@/legacy/tokens';
|
|
4
|
-
|
|
5
3
|
const moveBg = keyframes`
|
|
6
4
|
from {
|
|
7
5
|
transform: translateX(0);
|
|
@@ -25,7 +23,6 @@ export const StyledBarSpinner = styled.div`
|
|
|
25
23
|
border-radius: 25px;
|
|
26
24
|
position: relative;
|
|
27
25
|
overflow: hidden;
|
|
28
|
-
background-color: ${COLORS.curiousBlue};
|
|
29
26
|
|
|
30
27
|
&:after {
|
|
31
28
|
content: '';
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import styled, { keyframes } from 'styled-components';
|
|
2
2
|
|
|
3
|
-
import { COLORS, TYPOGRAPHY } from '@/legacy/tokens';
|
|
4
|
-
|
|
5
3
|
const ripple = (size: string) => keyframes`
|
|
6
4
|
0% {
|
|
7
5
|
width: 0;
|
|
@@ -74,8 +72,6 @@ export const StyledMessageLoadingIndicator = styled.div<{ overallsize: string }>
|
|
|
74
72
|
width: ${(props) => props.overallsize};
|
|
75
73
|
margin-top: -50px;
|
|
76
74
|
|
|
77
|
-
color: ${COLORS.lightFontColor};
|
|
78
|
-
font-size: ${TYPOGRAPHY.fontSize.base};
|
|
79
75
|
font-style: italic;
|
|
80
76
|
}
|
|
81
77
|
`;
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import { PermafrostComponent } from '@/types';
|
|
7
|
-
import { RandomLoadingMessage } from '../RandomLoadingMessage';
|
|
5
|
+
import type { PermafrostComponent } from '../../../../types';
|
|
8
6
|
|
|
9
7
|
import { StyledLoadingIndicator, StyledMessageLoadingIndicator } from './CirclePulse.styles';
|
|
10
8
|
|
|
@@ -34,7 +32,6 @@ export function CirclePulse(props: Props): React.ReactElement {
|
|
|
34
32
|
id={id}
|
|
35
33
|
overallsize={returnSizeString(overallSize)}
|
|
36
34
|
ripplesize={returnSizeString(rippleSize)}
|
|
37
|
-
style={color ? { color } : { color: COLORS.curiousBlue }}
|
|
38
35
|
/>
|
|
39
36
|
);
|
|
40
37
|
};
|
|
@@ -43,8 +40,6 @@ export function CirclePulse(props: Props): React.ReactElement {
|
|
|
43
40
|
return (
|
|
44
41
|
<StyledMessageLoadingIndicator overallsize={returnSizeString(overallSize)}>
|
|
45
42
|
{loadingIndicator()}
|
|
46
|
-
|
|
47
|
-
<RandomLoadingMessage />
|
|
48
43
|
</StyledMessageLoadingIndicator>
|
|
49
44
|
);
|
|
50
45
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
|
-
import { Icon } from '
|
|
6
|
-
import { PermafrostComponent, IconSizes } from '
|
|
5
|
+
import { Icon } from '../../../../components/icons/Icon';
|
|
6
|
+
import type { PermafrostComponent, IconSizes } from '../../../../types';
|
|
7
7
|
|
|
8
8
|
type Props = PermafrostComponent & {
|
|
9
9
|
ariaLabel?: string;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
export { CircleSpinner } from './CircleSpinner';
|
|
2
2
|
export { BarSpinner } from './BarSpinner';
|
|
3
3
|
export { CirclePulse } from './CirclePulse';
|
|
4
|
-
export { RandomLoadingMessage } from './RandomLoadingMessage';
|
|
5
|
-
export { PercentageRing } from './PercentageRing';
|
|
6
|
-
export { LoadingList } from './LoadingList';
|
|
7
|
-
export { LoadingIndicator } from './LoadingIndicator';
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
|
|
3
|
-
import { COLORS, TYPOGRAPHY } from '@/legacy/tokens';
|
|
4
|
-
|
|
5
3
|
export const StyledConfirmModal = styled.div`
|
|
6
4
|
padding: 20px;
|
|
7
5
|
|
|
8
6
|
.title {
|
|
9
7
|
margin: 30px 16px;
|
|
10
|
-
|
|
8
|
+
|
|
11
9
|
text-align: center;
|
|
12
|
-
color: ${COLORS.lightFontColor};
|
|
13
10
|
}
|
|
14
11
|
|
|
15
12
|
.message {
|
|
@@ -4,10 +4,10 @@ import React from 'react';
|
|
|
4
4
|
|
|
5
5
|
import { v4 as uuid } from 'uuid';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { ModalBase } from '@/legacy/components/modals/ModalBase';
|
|
8
8
|
import { Button } from '@/components/button';
|
|
9
9
|
import { ModalBaseProps } from '../ModalBase';
|
|
10
|
-
import { PermafrostComponent } from '
|
|
10
|
+
import type { PermafrostComponent } from '../../../../types';
|
|
11
11
|
|
|
12
12
|
import { StyledConfirmModal } from './ConfirmModal.styles';
|
|
13
13
|
|
|
@@ -62,24 +62,17 @@ export function ConfirmModal(props: Props) {
|
|
|
62
62
|
|
|
63
63
|
{message && <div className="message">{message}</div>}
|
|
64
64
|
|
|
65
|
-
<
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
ariaLabel="confirm"
|
|
69
|
-
onClick={(event) => responseHandler(true, event)}
|
|
70
|
-
>
|
|
71
|
-
{confirmText || 'Yes'}
|
|
72
|
-
</Button>
|
|
65
|
+
<Button ariaLabel="confirm" onClick={(event) => responseHandler(true, event)}>
|
|
66
|
+
{confirmText || 'Yes'}
|
|
67
|
+
</Button>
|
|
73
68
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
</Button>
|
|
82
|
-
</LoadingAwareContainer>
|
|
69
|
+
<Button
|
|
70
|
+
variant="outline"
|
|
71
|
+
ariaLabel="reject"
|
|
72
|
+
onClick={(event) => responseHandler(false, event)}
|
|
73
|
+
>
|
|
74
|
+
{rejectText || 'No'}
|
|
75
|
+
</Button>
|
|
83
76
|
</StyledConfirmModal>
|
|
84
77
|
</ModalBase>
|
|
85
78
|
);
|
|
@@ -2,9 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import ReactModal from 'react-modal';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
|
|
5
|
-
import { COLORS } from '@/legacy/tokens';
|
|
6
|
-
import { colorUtils } from '@/legacy/utils';
|
|
7
|
-
|
|
8
5
|
// see: https://github.com/reactjs/react-modal/issues/603
|
|
9
6
|
function ModalAdapter(props: any): React.ReactElement {
|
|
10
7
|
const { className } = props;
|
|
@@ -36,8 +33,6 @@ export const StyledModalBase = styled(ModalAdapter)`
|
|
|
36
33
|
padding: 0;
|
|
37
34
|
|
|
38
35
|
border-radius: 4px;
|
|
39
|
-
background-color: ${COLORS.clay};
|
|
40
|
-
border: solid 1px ${COLORS.oxfordBlue};
|
|
41
36
|
outline: none;
|
|
42
37
|
|
|
43
38
|
width: ${(props) => (props.maxWidth ? '100%' : 'auto')};
|
|
@@ -52,8 +47,6 @@ export const StyledModalBase = styled(ModalAdapter)`
|
|
|
52
47
|
|
|
53
48
|
width: 100%;
|
|
54
49
|
height: 100%;
|
|
55
|
-
|
|
56
|
-
background-color: ${colorUtils.hexToRgb(COLORS.mirage, 0.95)};
|
|
57
50
|
}
|
|
58
51
|
|
|
59
52
|
.ReactModal__Overlay {
|