@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,28 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Container, Row, Col } from 'react-grid-system';
|
|
3
|
-
import {
|
|
4
|
-
colorList,
|
|
5
|
-
darkThemeColors,
|
|
6
|
-
lightThemeColors,
|
|
7
|
-
shades,
|
|
8
|
-
utilityColorList,
|
|
9
|
-
} from './constants';
|
|
3
|
+
import { colorList, darkThemeColors, lightThemeColors, utilityColorList } from './constants';
|
|
10
4
|
import { Swatch } from './Swatch';
|
|
11
5
|
import { useTheme } from './hooks';
|
|
12
6
|
|
|
13
7
|
export const Colors = () => {
|
|
14
8
|
const theme = useTheme();
|
|
15
|
-
|
|
16
9
|
const themeColors = theme === 'dark' ? darkThemeColors : lightThemeColors;
|
|
17
10
|
|
|
18
11
|
return (
|
|
19
12
|
<Container>
|
|
20
13
|
<Row>
|
|
21
14
|
{colorList.map((color) => {
|
|
15
|
+
const colorShades = Object.keys(themeColors[color])
|
|
16
|
+
.map(Number)
|
|
17
|
+
.sort((a, b) => a - b);
|
|
22
18
|
return (
|
|
23
19
|
<Col sm={6} key={color}>
|
|
24
20
|
<h1 className="text-capitalize my-5">{color}</h1>
|
|
25
|
-
{
|
|
21
|
+
{colorShades.map((shade) => {
|
|
26
22
|
const colorValue = themeColors[color][shade];
|
|
27
23
|
return <Swatch key={shade} color={color} shade={shade} colorValue={colorValue} />;
|
|
28
24
|
})}
|
|
@@ -41,34 +41,34 @@ export const UtilityClasses = () => {
|
|
|
41
41
|
<h1 className="mb-5">Text</h1>
|
|
42
42
|
<ul>
|
|
43
43
|
<li>
|
|
44
|
-
<span className="color-
|
|
44
|
+
<span className="color-secondary">color-secondary</span>
|
|
45
45
|
</li>
|
|
46
46
|
<li>
|
|
47
|
-
<span className="color-
|
|
47
|
+
<span className="color-secondary-100">color-secondary-100</span>
|
|
48
48
|
</li>
|
|
49
49
|
<li>
|
|
50
|
-
<span className="color-
|
|
50
|
+
<span className="color-secondary-200">color-secondary-200</span>
|
|
51
51
|
</li>
|
|
52
52
|
<li>
|
|
53
|
-
<span className="color-
|
|
53
|
+
<span className="color-secondary-300">color-secondary-300</span>
|
|
54
54
|
</li>
|
|
55
55
|
<li>
|
|
56
|
-
<span className="color-
|
|
56
|
+
<span className="color-secondary-400">color-secondary-400</span>
|
|
57
57
|
</li>
|
|
58
58
|
<li>
|
|
59
|
-
<span className="color-
|
|
59
|
+
<span className="color-secondary-500">color-secondary-500</span>
|
|
60
60
|
</li>
|
|
61
61
|
<li>
|
|
62
|
-
<span className="color-
|
|
62
|
+
<span className="color-secondary-600">color-secondary-600</span>
|
|
63
63
|
</li>
|
|
64
64
|
<li>
|
|
65
|
-
<span className="color-
|
|
65
|
+
<span className="color-secondary-700">color-secondary-700</span>
|
|
66
66
|
</li>
|
|
67
67
|
<li>
|
|
68
|
-
<span className="color-
|
|
68
|
+
<span className="color-secondary-800">color-secondary-800</span>
|
|
69
69
|
</li>
|
|
70
70
|
<li>
|
|
71
|
-
<span className="color-
|
|
71
|
+
<span className="color-secondary-900">color-secondary-900</span>
|
|
72
72
|
</li>
|
|
73
73
|
</ul>
|
|
74
74
|
</Col>
|
|
@@ -89,19 +89,25 @@ export const UtilityClasses = () => {
|
|
|
89
89
|
<span className="color-secondary">secondary</span>
|
|
90
90
|
</li>
|
|
91
91
|
<li>
|
|
92
|
-
<span className="color-
|
|
92
|
+
<span className="color-tertiary">tertiary</span>
|
|
93
93
|
</li>
|
|
94
94
|
<li>
|
|
95
|
-
<span className="color-
|
|
95
|
+
<span className="color-gray">gray</span>
|
|
96
96
|
</li>
|
|
97
97
|
<li>
|
|
98
|
-
<span className="color-
|
|
98
|
+
<span className="color-red">red</span>
|
|
99
99
|
</li>
|
|
100
100
|
<li>
|
|
101
101
|
<span className="color-orange">orange</span>
|
|
102
102
|
</li>
|
|
103
103
|
<li>
|
|
104
|
-
<span className="color-
|
|
104
|
+
<span className="color-yellow">yellow</span>
|
|
105
|
+
</li>
|
|
106
|
+
<li>
|
|
107
|
+
<span className="color-green">green</span>
|
|
108
|
+
</li>
|
|
109
|
+
<li>
|
|
110
|
+
<span className="color-purple">purple</span>
|
|
105
111
|
</li>
|
|
106
112
|
</ul>
|
|
107
113
|
</Col>
|
|
@@ -123,6 +129,9 @@ export const UtilityClasses = () => {
|
|
|
123
129
|
<li>
|
|
124
130
|
<span className="color-error">error</span>
|
|
125
131
|
</li>
|
|
132
|
+
<li>
|
|
133
|
+
<span className="color-brand">brand</span>
|
|
134
|
+
</li>
|
|
126
135
|
<li>
|
|
127
136
|
<span className="active-link-color">active-link-color</span>
|
|
128
137
|
</li>
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
export const colorList = [
|
|
2
|
-
|
|
1
|
+
export const colorList = [
|
|
2
|
+
'primary',
|
|
3
|
+
'secondary',
|
|
4
|
+
'tertiary',
|
|
5
|
+
'gray',
|
|
6
|
+
'red',
|
|
7
|
+
'orange',
|
|
8
|
+
'yellow',
|
|
9
|
+
'green',
|
|
10
|
+
'purple',
|
|
11
|
+
];
|
|
12
|
+
export const utilityColorList = ['success', 'info', 'neutral', 'warning', 'error', 'brand'];
|
|
3
13
|
export const lightThemeColors = {
|
|
4
14
|
primary: {
|
|
5
15
|
base: '#6833D0',
|
|
@@ -25,6 +35,18 @@ export const lightThemeColors = {
|
|
|
25
35
|
800: '#004EAC',
|
|
26
36
|
900: '#004393',
|
|
27
37
|
},
|
|
38
|
+
tertiary: {
|
|
39
|
+
base: '#0070F5',
|
|
40
|
+
100: '#DCEAFD',
|
|
41
|
+
200: '#B3D4FC',
|
|
42
|
+
300: '#7AB5FA',
|
|
43
|
+
400: '#4797F5',
|
|
44
|
+
500: '#0070F5',
|
|
45
|
+
600: '#0067E1',
|
|
46
|
+
700: '#005AC4',
|
|
47
|
+
800: '#004EAC',
|
|
48
|
+
900: '#004393',
|
|
49
|
+
},
|
|
28
50
|
gray: {
|
|
29
51
|
base: '#444444',
|
|
30
52
|
100: '#EEEEEE',
|
|
@@ -37,29 +59,17 @@ export const lightThemeColors = {
|
|
|
37
59
|
800: '#1F1F1F',
|
|
38
60
|
900: '#141414',
|
|
39
61
|
},
|
|
40
|
-
|
|
41
|
-
base: '#
|
|
42
|
-
100: '#
|
|
43
|
-
200: '#
|
|
44
|
-
300: '#
|
|
45
|
-
400: '#
|
|
46
|
-
500: '#
|
|
47
|
-
600: '#
|
|
48
|
-
700: '#
|
|
49
|
-
800: '#
|
|
50
|
-
900: '#
|
|
51
|
-
},
|
|
52
|
-
green: {
|
|
53
|
-
base: '#008A00',
|
|
54
|
-
100: '#D6ECD6',
|
|
55
|
-
200: '#99D099',
|
|
56
|
-
300: '#66B966',
|
|
57
|
-
400: '#33A133',
|
|
58
|
-
500: '#008A00',
|
|
59
|
-
600: '#007C00',
|
|
60
|
-
700: '#006E00',
|
|
61
|
-
800: '#006100',
|
|
62
|
-
900: '#005300',
|
|
62
|
+
red: {
|
|
63
|
+
base: '#E72326',
|
|
64
|
+
100: '#FFD6D6',
|
|
65
|
+
200: '#F49EA0',
|
|
66
|
+
300: '#EF696B',
|
|
67
|
+
400: '#EB4649',
|
|
68
|
+
500: '#E72326',
|
|
69
|
+
600: '#D52023',
|
|
70
|
+
700: '#C21D20',
|
|
71
|
+
800: '#B01B1D',
|
|
72
|
+
900: '#9D181A',
|
|
63
73
|
},
|
|
64
74
|
orange: {
|
|
65
75
|
base: '#FFA424',
|
|
@@ -73,17 +83,41 @@ export const lightThemeColors = {
|
|
|
73
83
|
800: '#CC831D',
|
|
74
84
|
900: '#B37319',
|
|
75
85
|
},
|
|
76
|
-
|
|
77
|
-
base: '#
|
|
78
|
-
100: '#
|
|
79
|
-
200: '#
|
|
80
|
-
300: '#
|
|
81
|
-
400: '#
|
|
82
|
-
500: '#
|
|
83
|
-
600: '#
|
|
84
|
-
700: '#
|
|
85
|
-
800: '#
|
|
86
|
-
900: '#
|
|
86
|
+
yellow: {
|
|
87
|
+
base: '#F29C22',
|
|
88
|
+
100: '#FFF9D6',
|
|
89
|
+
200: '#FFEDAC',
|
|
90
|
+
300: '#FFE182',
|
|
91
|
+
400: '#FFD558',
|
|
92
|
+
500: '#F29C22',
|
|
93
|
+
600: '#E69420',
|
|
94
|
+
700: '#CC831D',
|
|
95
|
+
800: '#B37319',
|
|
96
|
+
900: '#9D6616',
|
|
97
|
+
},
|
|
98
|
+
green: {
|
|
99
|
+
base: '#008A00',
|
|
100
|
+
100: '#D6ECD6',
|
|
101
|
+
200: '#99D099',
|
|
102
|
+
300: '#66B966',
|
|
103
|
+
400: '#33A133',
|
|
104
|
+
500: '#008A00',
|
|
105
|
+
600: '#007C00',
|
|
106
|
+
700: '#006E00',
|
|
107
|
+
800: '#006100',
|
|
108
|
+
900: '#005300',
|
|
109
|
+
},
|
|
110
|
+
purple: {
|
|
111
|
+
base: '#8B60C7',
|
|
112
|
+
100: '#ECE2FA',
|
|
113
|
+
200: '#D5C4F5',
|
|
114
|
+
300: '#BAA1E9',
|
|
115
|
+
400: '#8C64DB',
|
|
116
|
+
500: '#6833D0',
|
|
117
|
+
600: '#5E2EBB',
|
|
118
|
+
700: '#5329A6',
|
|
119
|
+
800: '#492492',
|
|
120
|
+
900: '#3E1F7D',
|
|
87
121
|
},
|
|
88
122
|
utility: {
|
|
89
123
|
success: '#168116',
|
|
@@ -91,100 +125,135 @@ export const lightThemeColors = {
|
|
|
91
125
|
neutral: '#BFC1C3',
|
|
92
126
|
warning: '#C7892F',
|
|
93
127
|
error: '#D52023',
|
|
128
|
+
brand: '#0070F5',
|
|
94
129
|
},
|
|
95
130
|
} as Record<string, any>;
|
|
96
131
|
|
|
97
132
|
export const darkThemeColors = {
|
|
98
133
|
primary: {
|
|
99
|
-
|
|
100
|
-
100: '#
|
|
101
|
-
200: '#
|
|
102
|
-
300: '#
|
|
103
|
-
400: '#
|
|
104
|
-
500: '#
|
|
105
|
-
600: '#
|
|
106
|
-
700: '#
|
|
107
|
-
800: '#
|
|
134
|
+
50: '#bcc7da',
|
|
135
|
+
100: '#7989b5',
|
|
136
|
+
200: '#8593b3',
|
|
137
|
+
300: '#7488a4',
|
|
138
|
+
400: '#5c708c',
|
|
139
|
+
500: '#394c6b',
|
|
140
|
+
600: '#233346',
|
|
141
|
+
700: '#182432',
|
|
142
|
+
800: '#101a26',
|
|
108
143
|
900: '#141b24',
|
|
144
|
+
950: '#0c141d',
|
|
109
145
|
},
|
|
110
146
|
secondary: {
|
|
111
|
-
|
|
112
|
-
100: '#
|
|
113
|
-
200: '#
|
|
114
|
-
300: '#
|
|
115
|
-
400: '#
|
|
116
|
-
500: '#
|
|
117
|
-
600: '#
|
|
118
|
-
700: '#
|
|
119
|
-
800: '#
|
|
120
|
-
900: '#
|
|
147
|
+
50: '#bddffa',
|
|
148
|
+
100: '#83c5f6',
|
|
149
|
+
200: '#68afee',
|
|
150
|
+
300: '#66a2d5',
|
|
151
|
+
400: '#36a1ea',
|
|
152
|
+
500: '#198bdc',
|
|
153
|
+
600: '#0070f5',
|
|
154
|
+
700: '#0c6ebd',
|
|
155
|
+
800: '#0b5899',
|
|
156
|
+
900: '#002c4e',
|
|
157
|
+
950: '#112341',
|
|
158
|
+
},
|
|
159
|
+
tertiary: {
|
|
160
|
+
50: '#dae3eb',
|
|
161
|
+
100: '#c2d4df',
|
|
162
|
+
200: '#a3b2c9',
|
|
163
|
+
300: '#8593b3',
|
|
164
|
+
400: '#656f82',
|
|
165
|
+
450: '#4d5667',
|
|
166
|
+
500: '#40464e',
|
|
167
|
+
600: '#334154',
|
|
168
|
+
700: '#3b415b',
|
|
169
|
+
800: '#344152',
|
|
170
|
+
900: '#2d3444',
|
|
171
|
+
950: '#283243',
|
|
121
172
|
},
|
|
122
173
|
gray: {
|
|
123
|
-
|
|
174
|
+
50: '#f6f6f6',
|
|
124
175
|
100: '#efefef',
|
|
125
|
-
200: '#
|
|
126
|
-
300: '#
|
|
127
|
-
400: '#
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
steel: {
|
|
135
|
-
base: '#3e4751',
|
|
136
|
-
100: '#9aa1b1',
|
|
137
|
-
200: '#7c8594',
|
|
138
|
-
300: '#6a717e',
|
|
139
|
-
400: '#545c67',
|
|
140
|
-
500: '#3e4751',
|
|
141
|
-
600: '#2d3444',
|
|
142
|
-
700: '#232a3a',
|
|
143
|
-
800: '#1a202f',
|
|
144
|
-
900: '#11161f',
|
|
176
|
+
200: '#dcdcdc',
|
|
177
|
+
300: '#bdbdbd',
|
|
178
|
+
400: '#989898',
|
|
179
|
+
450: '#737373',
|
|
180
|
+
500: '#525252',
|
|
181
|
+
600: '#404040',
|
|
182
|
+
700: '#262626',
|
|
183
|
+
800: '#171717',
|
|
184
|
+
900: '#0a0a0a',
|
|
145
185
|
},
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
100: '#
|
|
149
|
-
200: '#
|
|
150
|
-
300: '#
|
|
151
|
-
400: '#
|
|
152
|
-
500: '#
|
|
153
|
-
600: '#
|
|
154
|
-
700: '#
|
|
155
|
-
800: '#
|
|
156
|
-
900: '#
|
|
186
|
+
red: {
|
|
187
|
+
50: '#fcf5f4',
|
|
188
|
+
100: '#fae9e9',
|
|
189
|
+
200: '#f4d7d8',
|
|
190
|
+
300: '#ebb6b8',
|
|
191
|
+
400: '#df8d91',
|
|
192
|
+
500: '#ce6068',
|
|
193
|
+
600: '#b94553',
|
|
194
|
+
700: '#9b3544',
|
|
195
|
+
800: '#822f3e',
|
|
196
|
+
900: '#702b39',
|
|
197
|
+
950: '#3e131b',
|
|
157
198
|
},
|
|
158
199
|
orange: {
|
|
159
|
-
|
|
160
|
-
100: '#
|
|
161
|
-
200: '#
|
|
162
|
-
300: '#
|
|
163
|
-
400: '#
|
|
164
|
-
500: '#
|
|
165
|
-
600: '#
|
|
166
|
-
700: '#
|
|
167
|
-
800: '#
|
|
168
|
-
900: '#
|
|
200
|
+
50: '#fff5ed',
|
|
201
|
+
100: '#fee9d6',
|
|
202
|
+
200: '#fcceac',
|
|
203
|
+
300: '#faac77',
|
|
204
|
+
400: '#f67e41',
|
|
205
|
+
500: '#f46325',
|
|
206
|
+
600: '#e54311',
|
|
207
|
+
700: '#be3010',
|
|
208
|
+
800: '#972815',
|
|
209
|
+
900: '#792315',
|
|
210
|
+
950: '#420f08',
|
|
169
211
|
},
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
100: '#
|
|
173
|
-
200: '#
|
|
174
|
-
300: '#
|
|
175
|
-
400: '#
|
|
176
|
-
500: '#
|
|
177
|
-
600: '#
|
|
178
|
-
700: '#
|
|
179
|
-
800: '#
|
|
180
|
-
900: '#
|
|
212
|
+
yellow: {
|
|
213
|
+
50: '#fbf7eb',
|
|
214
|
+
100: '#f5edcc',
|
|
215
|
+
200: '#ecd99c',
|
|
216
|
+
300: '#deb650',
|
|
217
|
+
400: '#d7a438',
|
|
218
|
+
500: '#f29c22',
|
|
219
|
+
600: '#c88e2a',
|
|
220
|
+
700: '#ac6e22',
|
|
221
|
+
800: '#80670c',
|
|
222
|
+
900: '#463703',
|
|
223
|
+
950: '#312602',
|
|
224
|
+
},
|
|
225
|
+
green: {
|
|
226
|
+
50: '#a9f1ce',
|
|
227
|
+
100: '#71e4b3',
|
|
228
|
+
200: '#14b8a6',
|
|
229
|
+
300: '#03aaaa',
|
|
230
|
+
400: '#38cf94',
|
|
231
|
+
500: '#15b77d',
|
|
232
|
+
600: '#099263',
|
|
233
|
+
700: '#087950',
|
|
234
|
+
800: '#085d43',
|
|
235
|
+
900: '#084c38',
|
|
236
|
+
950: '#032b20',
|
|
237
|
+
},
|
|
238
|
+
purple: {
|
|
239
|
+
50: '#f7f6fc',
|
|
240
|
+
100: '#f1edfa',
|
|
241
|
+
200: '#e4dff5',
|
|
242
|
+
300: '#cfc4ee',
|
|
243
|
+
400: '#b6a3e2',
|
|
244
|
+
500: '#9776d3',
|
|
245
|
+
600: '#8b60c7',
|
|
246
|
+
700: '#7a4eb3',
|
|
247
|
+
800: '#664196',
|
|
248
|
+
900: '#55377b',
|
|
249
|
+
950: '#352253',
|
|
181
250
|
},
|
|
182
251
|
utility: {
|
|
183
|
-
success: '#
|
|
184
|
-
info: '#
|
|
185
|
-
neutral: '#
|
|
186
|
-
warning: '#
|
|
187
|
-
error: '#
|
|
252
|
+
success: '#15b77d',
|
|
253
|
+
info: '#198bdc',
|
|
254
|
+
neutral: '#dcdcdc',
|
|
255
|
+
warning: '#f29c22',
|
|
256
|
+
error: '#ce6068',
|
|
257
|
+
brand: '#0070f5',
|
|
188
258
|
},
|
|
189
259
|
} as Record<string, any>;
|
|
190
|
-
export const shades = 9;
|
|
@@ -3,8 +3,8 @@ import '../../styles/_borders.scss';
|
|
|
3
3
|
export const Sizing = () => {
|
|
4
4
|
return (
|
|
5
5
|
<>
|
|
6
|
-
<p className="ma-2 border border-gray-
|
|
7
|
-
<div className="pa-2 border border-gray-
|
|
6
|
+
<p className="ma-2 border border-gray-300">ma-2</p>
|
|
7
|
+
<div className="pa-2 border border-gray-300">pa-2</div>
|
|
8
8
|
</>
|
|
9
9
|
);
|
|
10
10
|
};
|
package/src/types.ts
CHANGED
|
@@ -5,20 +5,14 @@ export type PermafrostComponent = {
|
|
|
5
5
|
'data-testid'?: string;
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
// TODO: Deprecrate, these are legacy types
|
|
9
|
-
export type ButtonVariant = 'default' | 'primary' | 'destructive';
|
|
10
|
-
export type ButtonSize = 'normal' | 'large';
|
|
11
|
-
|
|
12
8
|
import { IconSizes, IconName } from './components/icons/types';
|
|
13
9
|
export type { IconSizes, IconName };
|
|
14
|
-
|
|
10
|
+
export type SemanticColor = 'primary' | 'secondary' | 'warning' | 'error' | 'success' | 'info';
|
|
15
11
|
import { SelectOption } from './components/forms/select/types';
|
|
16
12
|
export type { SelectOption };
|
|
17
13
|
|
|
18
14
|
import { TableProps, TableColumn, Direction, Alignment } from './components/table/types';
|
|
19
15
|
export type { TableProps, TableColumn, Direction, Alignment };
|
|
20
16
|
|
|
21
|
-
export type SemanticColor = 'primary' | 'secondary' | 'warning' | 'error' | 'success' | 'info';
|
|
22
|
-
|
|
23
17
|
import { PillColor, PillSize } from './components/pill/types';
|
|
24
18
|
export type { PillColor, PillSize };
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/* cyrillic-ext */
|
|
2
|
-
@font-face {
|
|
3
|
-
font-family: 'Mulish';
|
|
4
|
-
font-style: italic;
|
|
5
|
-
font-weight: 200 1000;
|
|
6
|
-
font-display: swap;
|
|
7
|
-
src: url('./a.woff2') format('woff2');
|
|
8
|
-
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
9
|
-
}
|
|
10
|
-
/* cyrillic */
|
|
11
|
-
@font-face {
|
|
12
|
-
font-family: 'Mulish';
|
|
13
|
-
font-style: italic;
|
|
14
|
-
font-weight: 200 1000;
|
|
15
|
-
font-display: swap;
|
|
16
|
-
src: url('./a.woff2') format('woff2');
|
|
17
|
-
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
18
|
-
}
|
|
19
|
-
/* vietnamese */
|
|
20
|
-
@font-face {
|
|
21
|
-
font-family: 'Mulish';
|
|
22
|
-
font-style: italic;
|
|
23
|
-
font-weight: 200 1000;
|
|
24
|
-
font-display: swap;
|
|
25
|
-
src: url('./a.woff2') format('woff2');
|
|
26
|
-
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0,
|
|
27
|
-
U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
|
28
|
-
}
|
|
29
|
-
/* latin-ext */
|
|
30
|
-
@font-face {
|
|
31
|
-
font-family: 'Mulish';
|
|
32
|
-
font-style: italic;
|
|
33
|
-
font-weight: 200 1000;
|
|
34
|
-
font-display: swap;
|
|
35
|
-
src: url('./a.woff2') format('woff2');
|
|
36
|
-
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
|
|
37
|
-
U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
38
|
-
}
|
|
39
|
-
/* latin */
|
|
40
|
-
@font-face {
|
|
41
|
-
font-family: 'Mulish';
|
|
42
|
-
font-style: italic;
|
|
43
|
-
font-weight: 200 1000;
|
|
44
|
-
font-display: swap;
|
|
45
|
-
src: url('./b.woff2') format('woff2');
|
|
46
|
-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
|
|
47
|
-
U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
|
|
48
|
-
U+FFFD;
|
|
49
|
-
}
|
|
50
|
-
/* cyrillic-ext */
|
|
51
|
-
@font-face {
|
|
52
|
-
font-family: 'Mulish';
|
|
53
|
-
font-style: normal;
|
|
54
|
-
font-weight: 200 1000;
|
|
55
|
-
font-display: swap;
|
|
56
|
-
src: url('./c.woff2') format('woff2');
|
|
57
|
-
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
58
|
-
}
|
|
59
|
-
/* cyrillic */
|
|
60
|
-
@font-face {
|
|
61
|
-
font-family: 'Mulish';
|
|
62
|
-
font-style: normal;
|
|
63
|
-
font-weight: 200 1000;
|
|
64
|
-
font-display: swap;
|
|
65
|
-
src: url('./c.woff2') format('woff2');
|
|
66
|
-
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
67
|
-
}
|
|
68
|
-
/* vietnamese */
|
|
69
|
-
@font-face {
|
|
70
|
-
font-family: 'Mulish';
|
|
71
|
-
font-style: normal;
|
|
72
|
-
font-weight: 200 1000;
|
|
73
|
-
font-display: swap;
|
|
74
|
-
src: url('./c.woff2') format('woff2');
|
|
75
|
-
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0,
|
|
76
|
-
U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
|
77
|
-
}
|
|
78
|
-
/* latin-ext */
|
|
79
|
-
@font-face {
|
|
80
|
-
font-family: 'Mulish';
|
|
81
|
-
font-style: normal;
|
|
82
|
-
font-weight: 200 1000;
|
|
83
|
-
font-display: swap;
|
|
84
|
-
src: url('./c.woff2') format('woff2');
|
|
85
|
-
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
|
|
86
|
-
U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
87
|
-
}
|
|
88
|
-
/* latin */
|
|
89
|
-
@font-face {
|
|
90
|
-
font-family: 'Mulish';
|
|
91
|
-
font-style: normal;
|
|
92
|
-
font-weight: 200 1000;
|
|
93
|
-
font-display: swap;
|
|
94
|
-
src: url('./d.woff2') format('woff2');
|
|
95
|
-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
|
|
96
|
-
U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
|
|
97
|
-
U+FFFD;
|
|
98
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PermafrostComponent } from '@/types';
|
|
3
|
-
type Props = PermafrostComponent & {
|
|
4
|
-
content: React.ReactNode;
|
|
5
|
-
header?: React.ReactNode | string;
|
|
6
|
-
open?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare const Accordion: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
import { Accordion } from './Accordion';
|
|
4
|
-
declare const meta: {
|
|
5
|
-
component: (props: import("../../../types").PermafrostComponent & {
|
|
6
|
-
content: React.ReactNode;
|
|
7
|
-
header?: React.ReactNode | string;
|
|
8
|
-
open?: boolean;
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
title: string;
|
|
11
|
-
argTypes: {};
|
|
12
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
13
|
-
id?: string;
|
|
14
|
-
className?: string;
|
|
15
|
-
'data-cy'?: string;
|
|
16
|
-
'data-testid'?: string;
|
|
17
|
-
content: React.ReactNode;
|
|
18
|
-
header?: React.ReactNode | string;
|
|
19
|
-
open?: boolean;
|
|
20
|
-
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
21
|
-
};
|
|
22
|
-
export default meta;
|
|
23
|
-
type Story = StoryObj<typeof Accordion>;
|
|
24
|
-
export declare const Normal: Story;
|
|
25
|
-
export declare const WithHeader: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const StyledAccordion: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>, never>> & string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Accordion } from './Accordion';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
title: string;
|
|
4
|
-
headerComponent?: React.ReactNode;
|
|
5
|
-
sortBy?: {
|
|
6
|
-
value: string;
|
|
7
|
-
items: {
|
|
8
|
-
name: string;
|
|
9
|
-
value: string;
|
|
10
|
-
}[];
|
|
11
|
-
descending: boolean;
|
|
12
|
-
updateDescending: () => void;
|
|
13
|
-
onSort: (value: string) => void;
|
|
14
|
-
};
|
|
15
|
-
aggregateCount?: number;
|
|
16
|
-
selectProps?: {
|
|
17
|
-
'data-cy': string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export declare const Header: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const StyledHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|