@indico-data/design-system 2.43.0 → 2.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/fonts/noto/a.woff2 +0 -0
- package/lib/assets/fonts/noto/b.woff2 +0 -0
- package/lib/assets/fonts/noto/c.woff2 +0 -0
- package/lib/assets/fonts/noto/d.woff2 +0 -0
- package/lib/assets/fonts/noto/e.woff2 +0 -0
- package/lib/assets/fonts/noto/f.woff2 +0 -0
- package/lib/assets/fonts/noto/g.woff2 +0 -0
- package/lib/assets/fonts/noto/h.woff2 +0 -0
- package/lib/assets/fonts/noto/notosans.css +79 -0
- package/lib/components/button/Button.stories.d.ts +11 -13
- package/lib/components/button/enums.d.ts +2 -4
- package/lib/components/button/types.d.ts +6 -7
- package/lib/components/forms/date/iconTriggerDatePicker/IconTriggerDatePicker.d.ts +1 -1
- package/lib/components/forms/date/inputDatePicker/SingleInputDatePicker.d.ts +1 -1
- package/lib/components/forms/input/Input.d.ts +1 -1
- package/lib/index.css +1775 -1017
- package/lib/index.d.ts +148 -885
- package/lib/index.esm.css +1775 -1017
- package/lib/index.esm.js +17829 -24248
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +16041 -22502
- package/lib/index.js.map +1 -1
- package/lib/legacy/components/Tooltip/Tooltip.d.ts +1 -1
- package/lib/legacy/components/index.d.ts +1 -12
- package/lib/legacy/components/loading-indicators/BarSpinner/BarSpinner.d.ts +1 -1
- package/lib/legacy/components/loading-indicators/CirclePulse/CirclePulse.d.ts +1 -1
- package/lib/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.d.ts +1 -1
- package/lib/legacy/components/loading-indicators/index.d.ts +0 -4
- package/lib/legacy/components/modals/ConfirmModal/ConfirmModal.d.ts +1 -1
- package/lib/legacy/components/modals/ModalBase/ModalBase.d.ts +1 -1
- package/lib/stylesAndAnimations/colors/constants.d.ts +0 -1
- package/lib/types.d.ts +1 -3
- package/package.json +1 -1
- package/src/components/button/Button.mdx +28 -78
- package/src/components/button/Button.stories.tsx +312 -176
- package/src/components/button/Button.tsx +23 -16
- package/src/components/button/__tests__/Button.test.tsx +66 -58
- package/src/components/button/enums.ts +2 -6
- package/src/components/button/styles/Button.scss +119 -137
- package/src/components/button/styles/_variables.scss +115 -148
- package/src/components/button/types.ts +6 -8
- package/src/components/card/Card.stories.tsx +1 -1
- package/src/components/card/styles/Card.scss +11 -11
- package/src/components/floatUI/FloatUI.mdx +5 -5
- package/src/components/floatUI/FloatUI.stories.tsx +8 -8
- package/src/components/floatUI/__tests__/FloatUI.test.tsx +3 -3
- package/src/components/floatUI/styles/FloatUI.scss +1 -2
- package/src/components/floatUI/styles/_variables.scss +11 -7
- package/src/components/forms/checkbox/styles/Checkbox.scss +8 -14
- package/src/components/forms/date/datePicker/__tests__/DatePicker.test.tsx +23 -3
- package/src/components/forms/date/datePicker/styles/DatePicker.scss +9 -5
- package/src/components/forms/date/iconTriggerDatePicker/IconTriggerDatePicker.tsx +4 -4
- package/src/components/forms/date/inputDatePicker/SingleInputDatePicker.tsx +1 -1
- package/src/components/forms/form/styles/Form.scss +84 -2
- package/src/components/forms/input/Input.tsx +2 -2
- package/src/components/forms/input/styles/Input.scss +3 -67
- package/src/components/forms/numberInput/NumberInput.tsx +1 -1
- package/src/components/forms/numberInput/styles/NumberInput.scss +4 -67
- package/src/components/forms/passwordInput/PasswordInput.tsx +1 -1
- package/src/components/forms/passwordInput/styles/PasswordInput.scss +3 -67
- package/src/components/forms/radio/styles/Radio.scss +6 -10
- package/src/components/forms/select/styles/Select.scss +30 -44
- package/src/components/forms/textarea/styles/Textarea.scss +1 -49
- package/src/components/forms/toggle/styles/Toggle.scss +13 -12
- package/src/components/grid/styles/Grid.scss +3 -3
- package/src/components/icons/__tests__/Icon.test.tsx +1 -1
- package/src/components/menu/Menu.stories.tsx +3 -3
- package/src/components/menu/Menu.test.tsx +9 -9
- package/src/components/menu/styles/Menu.scss +5 -0
- package/src/components/menu/styles/_variables.scss +11 -6
- package/src/components/pill/styles/Pill.scss +4 -5
- package/src/components/skeleton/styles/Skeleton.scss +2 -2
- package/src/components/table/LoadingComponent.tsx +0 -2
- package/src/components/table/styles/Table.scss +6 -0
- package/src/components/table/styles/_variables.scss +9 -8
- package/src/index.ts +0 -45
- package/src/legacy/components/Tooltip/Tooltip.styles.ts +0 -12
- package/src/legacy/components/Tooltip/Tooltip.tsx +2 -4
- package/src/legacy/components/index.ts +1 -30
- package/src/legacy/components/loading-indicators/BarSpinner/BarSpinner.styles.ts +0 -3
- package/src/legacy/components/loading-indicators/BarSpinner/BarSpinner.tsx +1 -1
- package/src/legacy/components/loading-indicators/CirclePulse/CirclePulse.styles.ts +0 -4
- package/src/legacy/components/loading-indicators/CirclePulse/CirclePulse.tsx +1 -6
- package/src/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.tsx +2 -2
- package/src/legacy/components/loading-indicators/index.ts +0 -4
- package/src/legacy/components/modals/ConfirmModal/ConfirmModal.styles.ts +1 -4
- package/src/legacy/components/modals/ConfirmModal/ConfirmModal.tsx +12 -19
- package/src/legacy/components/modals/ModalBase/ModalBase.styles.tsx +0 -7
- package/src/legacy/components/modals/ModalBase/ModalBase.tsx +1 -1
- package/src/storybookDocs/Permafrost.mdx +92 -0
- package/src/styles/_colors.scss +7 -3
- package/src/styles/_sheets.scss +3 -3
- package/src/styles/assets/fonts/noto/a.woff2 +0 -0
- package/src/styles/assets/fonts/noto/b.woff2 +0 -0
- package/src/styles/assets/fonts/noto/c.woff2 +0 -0
- package/src/styles/assets/fonts/noto/d.woff2 +0 -0
- package/src/styles/assets/fonts/noto/e.woff2 +0 -0
- package/src/styles/assets/fonts/noto/f.woff2 +0 -0
- package/src/styles/assets/fonts/noto/g.woff2 +0 -0
- package/src/styles/assets/fonts/noto/h.woff2 +0 -0
- package/src/styles/assets/fonts/noto/notosans.css +79 -0
- package/src/styles/globals.scss +5 -16
- package/src/styles/index.scss +1 -2
- package/src/styles/storybook.scss +1 -1
- package/src/styles/variables/_borders.scss +6 -6
- package/src/styles/variables/_dropshadows.scss +2 -0
- package/src/styles/variables/_padding.scss +5 -1
- package/src/styles/variables/_typography.scss +7 -1
- package/src/styles/variables/themes/dark.scss +147 -83
- package/src/styles/variables/themes/light.scss +1 -2
- package/src/stylesAndAnimations/colors/Colors.tsx +5 -9
- package/src/stylesAndAnimations/colors/UtilityClasses.tsx +23 -14
- package/src/stylesAndAnimations/colors/constants.ts +183 -114
- package/src/stylesAndAnimations/sizing/Sizing.tsx +2 -2
- package/src/types.ts +1 -7
- package/lib/assets/fonts/mulish/a.woff2 +0 -0
- package/lib/assets/fonts/mulish/b.woff2 +0 -0
- package/lib/assets/fonts/mulish/c.woff2 +0 -0
- package/lib/assets/fonts/mulish/d.woff2 +0 -0
- package/lib/assets/fonts/mulish/mulish.css +0 -98
- package/lib/legacy/components/Accordion/Accordion.d.ts +0 -9
- package/lib/legacy/components/Accordion/Accordion.stories.d.ts +0 -25
- package/lib/legacy/components/Accordion/Accordion.styles.d.ts +0 -1
- package/lib/legacy/components/Accordion/index.d.ts +0 -1
- package/lib/legacy/components/ListTable/Header/Header.d.ts +0 -21
- package/lib/legacy/components/ListTable/Header/Header.styles.d.ts +0 -1
- package/lib/legacy/components/ListTable/Header/index.d.ts +0 -1
- package/lib/legacy/components/ListTable/ListTable.d.ts +0 -41
- package/lib/legacy/components/ListTable/ListTable.stories.d.ts +0 -54
- package/lib/legacy/components/ListTable/ListTable.styles.d.ts +0 -1
- package/lib/legacy/components/ListTable/index.d.ts +0 -1
- package/lib/legacy/components/ListTable/mock-data/index.d.ts +0 -1
- package/lib/legacy/components/ListTable/mock-data/mock-data.d.ts +0 -54
- package/lib/legacy/components/LoadingAwareContainer/LoadingAwareContainer.d.ts +0 -15
- package/lib/legacy/components/LoadingAwareContainer/LoadingAwareContainer.stories.d.ts +0 -22
- package/lib/legacy/components/LoadingAwareContainer/LoadingAwareContainer.styles.d.ts +0 -2
- package/lib/legacy/components/LoadingAwareContainer/index.d.ts +0 -1
- package/lib/legacy/components/Pagination/Pagination.d.ts +0 -18
- package/lib/legacy/components/Pagination/Pagination.stories.d.ts +0 -18
- package/lib/legacy/components/Pagination/Pagination.styles.d.ts +0 -1
- package/lib/legacy/components/Pagination/index.d.ts +0 -1
- package/lib/legacy/components/Toggle/Toggle.d.ts +0 -12
- package/lib/legacy/components/Toggle/Toggle.stories.d.ts +0 -21
- package/lib/legacy/components/Toggle/Toggle.styles.d.ts +0 -1
- package/lib/legacy/components/Toggle/index.d.ts +0 -1
- package/lib/legacy/components/basic-section/Section/Section.d.ts +0 -8
- package/lib/legacy/components/basic-section/Section/Section.stories.d.ts +0 -13
- package/lib/legacy/components/basic-section/Section/Section.styles.d.ts +0 -1
- package/lib/legacy/components/basic-section/Section/index.d.ts +0 -1
- package/lib/legacy/components/basic-section/SectionBlock/SectionBlock.d.ts +0 -9
- package/lib/legacy/components/basic-section/SectionBlock/SectionBlock.styles.d.ts +0 -1
- package/lib/legacy/components/basic-section/SectionBlock/index.d.ts +0 -1
- package/lib/legacy/components/basic-section/SectionBody/SectionBody.d.ts +0 -7
- package/lib/legacy/components/basic-section/SectionBody/SectionBody.stories.d.ts +0 -10
- package/lib/legacy/components/basic-section/SectionBody/SectionBody.styles.d.ts +0 -1
- package/lib/legacy/components/basic-section/SectionBody/index.d.ts +0 -1
- package/lib/legacy/components/basic-section/SectionHeader/SectionHeader.d.ts +0 -8
- package/lib/legacy/components/basic-section/SectionHeader/SectionHeader.stories.d.ts +0 -14
- package/lib/legacy/components/basic-section/SectionHeader/SectionHeader.styles.d.ts +0 -1
- package/lib/legacy/components/basic-section/SectionHeader/index.d.ts +0 -1
- package/lib/legacy/components/basic-section/SectionTable/SectionTable.d.ts +0 -1
- package/lib/legacy/components/basic-section/SectionTable/SectionTable.styles.d.ts +0 -1
- package/lib/legacy/components/basic-section/SectionTable/index.d.ts +0 -1
- package/lib/legacy/components/basic-section/index.d.ts +0 -5
- package/lib/legacy/components/buttons/Button/Button.d.ts +0 -21
- package/lib/legacy/components/buttons/Button/Button.stories.d.ts +0 -25
- package/lib/legacy/components/buttons/Button/Button.styles.d.ts +0 -1
- package/lib/legacy/components/buttons/Button/index.d.ts +0 -1
- package/lib/legacy/components/buttons/IconButton/IconButton.d.ts +0 -32
- package/lib/legacy/components/buttons/IconButton/IconButton.stories.d.ts +0 -43
- package/lib/legacy/components/buttons/IconButton/IconButton.styles.d.ts +0 -5
- package/lib/legacy/components/buttons/IconButton/index.d.ts +0 -1
- package/lib/legacy/components/buttons/commonStyles.d.ts +0 -9
- package/lib/legacy/components/buttons/index.d.ts +0 -2
- package/lib/legacy/components/buttons/types.d.ts +0 -3
- package/lib/legacy/components/dropdowns/BorderSelect/BorderSelect.d.ts +0 -19
- package/lib/legacy/components/dropdowns/BorderSelect/BorderSelect.stories.d.ts +0 -31
- package/lib/legacy/components/dropdowns/BorderSelect/BorderSelect.styles.d.ts +0 -2
- package/lib/legacy/components/dropdowns/BorderSelect/index.d.ts +0 -1
- package/lib/legacy/components/dropdowns/MultiCombobox/MultiCombobox.d.ts +0 -23
- package/lib/legacy/components/dropdowns/MultiCombobox/MultiCombobox.stories.d.ts +0 -46
- package/lib/legacy/components/dropdowns/MultiCombobox/MultiCombobox.styles.d.ts +0 -4
- package/lib/legacy/components/dropdowns/MultiCombobox/index.d.ts +0 -1
- package/lib/legacy/components/dropdowns/Select/Select.d.ts +0 -19
- package/lib/legacy/components/dropdowns/Select/Select.stories.d.ts +0 -34
- package/lib/legacy/components/dropdowns/Select/Select.styles.d.ts +0 -1
- package/lib/legacy/components/dropdowns/Select/index.d.ts +0 -1
- package/lib/legacy/components/dropdowns/SingleCombobox/SingleCombobox.d.ts +0 -20
- package/lib/legacy/components/dropdowns/SingleCombobox/SingleCombobox.stories.d.ts +0 -31
- package/lib/legacy/components/dropdowns/SingleCombobox/SingleCombobox.styles.d.ts +0 -4
- package/lib/legacy/components/dropdowns/SingleCombobox/index.d.ts +0 -1
- package/lib/legacy/components/dropdowns/commonStyles.d.ts +0 -1
- package/lib/legacy/components/dropdowns/index.d.ts +0 -4
- package/lib/legacy/components/dropdowns/types.d.ts +0 -45
- package/lib/legacy/components/dropdowns/useCombobox.d.ts +0 -25
- package/lib/legacy/components/dropdowns/utils.d.ts +0 -20
- package/lib/legacy/components/inputs/EditableInput/EditableInput.d.ts +0 -13
- package/lib/legacy/components/inputs/EditableInput/EditableInput.stories.d.ts +0 -14
- package/lib/legacy/components/inputs/EditableInput/EditableInput.styles.d.ts +0 -1
- package/lib/legacy/components/inputs/EditableInput/index.d.ts +0 -1
- package/lib/legacy/components/inputs/NumberInput/NumberInput.d.ts +0 -23
- package/lib/legacy/components/inputs/NumberInput/NumberInput.stories.d.ts +0 -28
- package/lib/legacy/components/inputs/NumberInput/NumberInput.styles.d.ts +0 -1
- package/lib/legacy/components/inputs/NumberInput/index.d.ts +0 -1
- package/lib/legacy/components/inputs/RadioButtons/RadioButtons.d.ts +0 -25
- package/lib/legacy/components/inputs/RadioButtons/RadioButtons.stories.d.ts +0 -15
- package/lib/legacy/components/inputs/RadioButtons/RadioButtons.styles.d.ts +0 -13
- package/lib/legacy/components/inputs/RadioButtons/index.d.ts +0 -1
- package/lib/legacy/components/inputs/RadioGroup/RadioGroup.d.ts +0 -27
- package/lib/legacy/components/inputs/RadioGroup/RadioGroup.stories.d.ts +0 -16
- package/lib/legacy/components/inputs/RadioGroup/RadioGroup.styles.d.ts +0 -1
- package/lib/legacy/components/inputs/RadioGroup/index.d.ts +0 -1
- package/lib/legacy/components/inputs/SearchInput/SearchInput.d.ts +0 -17
- package/lib/legacy/components/inputs/SearchInput/SearchInput.stories.d.ts +0 -30
- package/lib/legacy/components/inputs/SearchInput/SearchInput.styles.d.ts +0 -1
- package/lib/legacy/components/inputs/SearchInput/index.d.ts +0 -1
- package/lib/legacy/components/inputs/TextInput/TextInput.d.ts +0 -24
- package/lib/legacy/components/inputs/TextInput/TextInput.stories.d.ts +0 -62
- package/lib/legacy/components/inputs/TextInput/TextInput.styles.d.ts +0 -2
- package/lib/legacy/components/inputs/TextInput/index.d.ts +0 -1
- package/lib/legacy/components/inputs/index.d.ts +0 -6
- package/lib/legacy/components/inputs/inputsCommon.styles.d.ts +0 -4
- package/lib/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.d.ts +0 -10
- package/lib/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.stories.d.ts +0 -11
- package/lib/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.styles.d.ts +0 -7
- package/lib/legacy/components/loading-indicators/LoadingIndicator/index.d.ts +0 -1
- package/lib/legacy/components/loading-indicators/LoadingList/LoadingList.d.ts +0 -1
- package/lib/legacy/components/loading-indicators/LoadingList/LoadingList.stories.d.ts +0 -10
- package/lib/legacy/components/loading-indicators/LoadingList/LoadingList.styles.d.ts +0 -1
- package/lib/legacy/components/loading-indicators/LoadingList/index.d.ts +0 -1
- package/lib/legacy/components/loading-indicators/PercentageRing/PercentageRing.d.ts +0 -12
- package/lib/legacy/components/loading-indicators/PercentageRing/PercentageRing.stories.d.ts +0 -10
- package/lib/legacy/components/loading-indicators/PercentageRing/PercentageRing.styles.d.ts +0 -1
- package/lib/legacy/components/loading-indicators/PercentageRing/index.d.ts +0 -1
- package/lib/legacy/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.d.ts +0 -1
- package/lib/legacy/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.stories.d.ts +0 -10
- package/lib/legacy/components/loading-indicators/RandomLoadingMessage/index.d.ts +0 -1
- package/lib/legacy/components/loading-indicators/RandomLoadingMessage/random-messages.d.ts +0 -2
- package/lib/legacy/components/text-truncate/TextTruncate.d.ts +0 -8
- package/lib/legacy/components/text-truncate/TextTruncate.stories.d.ts +0 -6
- package/lib/legacy/components/text-truncate/TextTruncate.styles.d.ts +0 -1
- package/lib/legacy/components/text-truncate/TextTruncate.test.d.ts +0 -1
- package/lib/legacy/components/text-truncate/index.d.ts +0 -1
- package/lib/legacy/components/user-feedback/Shrug/Shrug.d.ts +0 -14
- package/lib/legacy/components/user-feedback/Shrug/Shrug.stories.d.ts +0 -31
- package/lib/legacy/components/user-feedback/Shrug/Shrug.styles.d.ts +0 -1
- package/lib/legacy/components/user-feedback/Shrug/index.d.ts +0 -1
- package/lib/legacy/components/user-feedback/index.d.ts +0 -1
- package/lib/legacy/styles/globals/buttons.d.ts +0 -1
- package/lib/legacy/styles/globals/forms.d.ts +0 -1
- package/lib/legacy/styles/globals/index.d.ts +0 -1
- package/lib/legacy/styles/globals/layout.d.ts +0 -1
- package/lib/legacy/styles/globals/lists.d.ts +0 -1
- package/lib/legacy/styles/globals/margin-padding.d.ts +0 -1
- package/lib/legacy/styles/globals/media.d.ts +0 -1
- package/lib/legacy/styles/globals/tables.d.ts +0 -1
- package/lib/legacy/styles/globals/typography.d.ts +0 -1
- package/lib/legacy/styles/globals/utility-classes.d.ts +0 -1
- package/lib/legacy/styles/index.d.ts +0 -1
- package/lib/legacy/tokens/animation.d.ts +0 -4
- package/lib/legacy/tokens/breakpoints.d.ts +0 -10
- package/lib/legacy/tokens/colors.d.ts +0 -144
- package/lib/legacy/tokens/index.d.ts +0 -8
- package/lib/legacy/tokens/margin.d.ts +0 -4
- package/lib/legacy/tokens/numbers.d.ts +0 -10
- package/lib/legacy/tokens/padding.d.ts +0 -4
- package/lib/legacy/tokens/spacings.d.ts +0 -5
- package/lib/legacy/tokens/typography.d.ts +0 -61
- package/lib/legacy/utils/color.d.ts +0 -21
- package/lib/legacy/utils/index.d.ts +0 -4
- package/lib/legacy/utils/number.d.ts +0 -21
- package/lib/legacy/utils/string.d.ts +0 -12
- package/src/legacy/components/Accordion/Accordion.stories.tsx +0 -47
- package/src/legacy/components/Accordion/Accordion.styles.ts +0 -35
- package/src/legacy/components/Accordion/Accordion.tsx +0 -30
- package/src/legacy/components/Accordion/index.ts +0 -1
- package/src/legacy/components/ListTable/Header/Header.styles.ts +0 -62
- package/src/legacy/components/ListTable/Header/Header.tsx +0 -66
- package/src/legacy/components/ListTable/Header/index.ts +0 -1
- package/src/legacy/components/ListTable/ListTable.stories.tsx +0 -302
- package/src/legacy/components/ListTable/ListTable.styles.ts +0 -76
- package/src/legacy/components/ListTable/ListTable.tsx +0 -140
- package/src/legacy/components/ListTable/index.ts +0 -1
- package/src/legacy/components/ListTable/mock-data/index.ts +0 -1
- package/src/legacy/components/ListTable/mock-data/mock-data.ts +0 -291
- package/src/legacy/components/LoadingAwareContainer/LoadingAwareContainer.stories.tsx +0 -45
- package/src/legacy/components/LoadingAwareContainer/LoadingAwareContainer.styles.ts +0 -16
- package/src/legacy/components/LoadingAwareContainer/LoadingAwareContainer.tsx +0 -36
- package/src/legacy/components/LoadingAwareContainer/index.ts +0 -1
- package/src/legacy/components/Pagination/Pagination.stories.tsx +0 -45
- package/src/legacy/components/Pagination/Pagination.styles.ts +0 -51
- package/src/legacy/components/Pagination/Pagination.tsx +0 -118
- package/src/legacy/components/Pagination/index.ts +0 -1
- package/src/legacy/components/Toggle/Toggle.stories.tsx +0 -56
- package/src/legacy/components/Toggle/Toggle.styles.ts +0 -86
- package/src/legacy/components/Toggle/Toggle.tsx +0 -69
- package/src/legacy/components/Toggle/index.ts +0 -1
- package/src/legacy/components/basic-section/Section/Section.stories.tsx +0 -14
- package/src/legacy/components/basic-section/Section/Section.styles.ts +0 -8
- package/src/legacy/components/basic-section/Section/Section.tsx +0 -30
- package/src/legacy/components/basic-section/Section/index.ts +0 -1
- package/src/legacy/components/basic-section/SectionBlock/SectionBlock.styles.ts +0 -15
- package/src/legacy/components/basic-section/SectionBlock/SectionBlock.tsx +0 -37
- package/src/legacy/components/basic-section/SectionBlock/index.ts +0 -1
- package/src/legacy/components/basic-section/SectionBody/SectionBody.stories.tsx +0 -16
- package/src/legacy/components/basic-section/SectionBody/SectionBody.styles.ts +0 -18
- package/src/legacy/components/basic-section/SectionBody/SectionBody.tsx +0 -30
- package/src/legacy/components/basic-section/SectionBody/index.ts +0 -1
- package/src/legacy/components/basic-section/SectionHeader/SectionHeader.stories.tsx +0 -17
- package/src/legacy/components/basic-section/SectionHeader/SectionHeader.styles.ts +0 -5
- package/src/legacy/components/basic-section/SectionHeader/SectionHeader.tsx +0 -30
- package/src/legacy/components/basic-section/SectionHeader/index.ts +0 -1
- package/src/legacy/components/basic-section/SectionTable/SectionTable.styles.ts +0 -236
- package/src/legacy/components/basic-section/SectionTable/SectionTable.tsx +0 -233
- package/src/legacy/components/basic-section/SectionTable/index.ts +0 -1
- package/src/legacy/components/basic-section/index.ts +0 -5
- package/src/legacy/components/buttons/Button/Button.stories.tsx +0 -80
- package/src/legacy/components/buttons/Button/Button.styles.ts +0 -99
- package/src/legacy/components/buttons/Button/Button.tsx +0 -74
- package/src/legacy/components/buttons/Button/index.ts +0 -1
- package/src/legacy/components/buttons/IconButton/IconButton.stories.tsx +0 -96
- package/src/legacy/components/buttons/IconButton/IconButton.styles.ts +0 -109
- package/src/legacy/components/buttons/IconButton/IconButton.tsx +0 -114
- package/src/legacy/components/buttons/IconButton/index.ts +0 -1
- package/src/legacy/components/buttons/commonStyles.ts +0 -104
- package/src/legacy/components/buttons/index.ts +0 -2
- package/src/legacy/components/buttons/types.ts +0 -3
- package/src/legacy/components/dropdowns/BorderSelect/BorderSelect.stories.tsx +0 -22
- package/src/legacy/components/dropdowns/BorderSelect/BorderSelect.styles.ts +0 -73
- package/src/legacy/components/dropdowns/BorderSelect/BorderSelect.tsx +0 -85
- package/src/legacy/components/dropdowns/BorderSelect/index.ts +0 -1
- package/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.stories.tsx +0 -147
- package/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.styles.ts +0 -91
- package/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.tsx +0 -123
- package/src/legacy/components/dropdowns/MultiCombobox/index.ts +0 -1
- package/src/legacy/components/dropdowns/Select/Select.stories.tsx +0 -54
- package/src/legacy/components/dropdowns/Select/Select.styles.ts +0 -73
- package/src/legacy/components/dropdowns/Select/Select.tsx +0 -69
- package/src/legacy/components/dropdowns/Select/index.ts +0 -1
- package/src/legacy/components/dropdowns/SingleCombobox/SingleCombobox.stories.tsx +0 -61
- package/src/legacy/components/dropdowns/SingleCombobox/SingleCombobox.styles.ts +0 -56
- package/src/legacy/components/dropdowns/SingleCombobox/SingleCombobox.tsx +0 -103
- package/src/legacy/components/dropdowns/SingleCombobox/index.ts +0 -1
- package/src/legacy/components/dropdowns/commonStyles.ts +0 -65
- package/src/legacy/components/dropdowns/index.ts +0 -4
- package/src/legacy/components/dropdowns/types.ts +0 -45
- package/src/legacy/components/dropdowns/useCombobox.ts +0 -32
- package/src/legacy/components/dropdowns/utils.tsx +0 -25
- package/src/legacy/components/inputs/EditableInput/EditableInput.stories.tsx +0 -26
- package/src/legacy/components/inputs/EditableInput/EditableInput.styles.ts +0 -21
- package/src/legacy/components/inputs/EditableInput/EditableInput.tsx +0 -103
- package/src/legacy/components/inputs/EditableInput/index.ts +0 -1
- package/src/legacy/components/inputs/NumberInput/NumberInput.stories.tsx +0 -72
- package/src/legacy/components/inputs/NumberInput/NumberInput.styles.ts +0 -66
- package/src/legacy/components/inputs/NumberInput/NumberInput.tsx +0 -154
- package/src/legacy/components/inputs/NumberInput/index.ts +0 -1
- package/src/legacy/components/inputs/RadioButtons/RadioButtons.stories.tsx +0 -84
- package/src/legacy/components/inputs/RadioButtons/RadioButtons.styles.ts +0 -82
- package/src/legacy/components/inputs/RadioButtons/RadioButtons.tsx +0 -63
- package/src/legacy/components/inputs/RadioButtons/index.tsx +0 -1
- package/src/legacy/components/inputs/RadioGroup/RadioGroup.stories.tsx +0 -66
- package/src/legacy/components/inputs/RadioGroup/RadioGroup.styles.ts +0 -11
- package/src/legacy/components/inputs/RadioGroup/RadioGroup.tsx +0 -119
- package/src/legacy/components/inputs/RadioGroup/index.ts +0 -1
- package/src/legacy/components/inputs/SearchInput/SearchInput.stories.tsx +0 -37
- package/src/legacy/components/inputs/SearchInput/SearchInput.styles.ts +0 -51
- package/src/legacy/components/inputs/SearchInput/SearchInput.tsx +0 -73
- package/src/legacy/components/inputs/SearchInput/index.ts +0 -1
- package/src/legacy/components/inputs/TextInput/TextInput.stories.tsx +0 -104
- package/src/legacy/components/inputs/TextInput/TextInput.styles.ts +0 -74
- package/src/legacy/components/inputs/TextInput/TextInput.tsx +0 -116
- package/src/legacy/components/inputs/TextInput/index.ts +0 -1
- package/src/legacy/components/inputs/index.ts +0 -6
- package/src/legacy/components/inputs/inputsCommon.styles.ts +0 -57
- package/src/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.stories.tsx +0 -22
- package/src/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.styles.ts +0 -81
- package/src/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.tsx +0 -61
- package/src/legacy/components/loading-indicators/LoadingIndicator/index.ts +0 -1
- package/src/legacy/components/loading-indicators/LoadingList/LoadingList.stories.tsx +0 -14
- package/src/legacy/components/loading-indicators/LoadingList/LoadingList.styles.ts +0 -42
- package/src/legacy/components/loading-indicators/LoadingList/LoadingList.tsx +0 -9
- package/src/legacy/components/loading-indicators/LoadingList/index.ts +0 -1
- package/src/legacy/components/loading-indicators/PercentageRing/PercentageRing.stories.tsx +0 -18
- package/src/legacy/components/loading-indicators/PercentageRing/PercentageRing.styles.ts +0 -27
- package/src/legacy/components/loading-indicators/PercentageRing/PercentageRing.tsx +0 -76
- package/src/legacy/components/loading-indicators/PercentageRing/index.ts +0 -1
- package/src/legacy/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.stories.tsx +0 -16
- package/src/legacy/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.tsx +0 -18
- package/src/legacy/components/loading-indicators/RandomLoadingMessage/index.ts +0 -1
- package/src/legacy/components/loading-indicators/RandomLoadingMessage/random-messages.js +0 -67
- package/src/legacy/components/text-truncate/TextTruncate.stories.tsx +0 -19
- package/src/legacy/components/text-truncate/TextTruncate.styles.ts +0 -3
- package/src/legacy/components/text-truncate/TextTruncate.test.tsx +0 -17
- package/src/legacy/components/text-truncate/TextTruncate.tsx +0 -23
- package/src/legacy/components/text-truncate/index.ts +0 -1
- package/src/legacy/components/user-feedback/Shrug/Shrug.stories.tsx +0 -38
- package/src/legacy/components/user-feedback/Shrug/Shrug.styles.ts +0 -25
- package/src/legacy/components/user-feedback/Shrug/Shrug.tsx +0 -45
- package/src/legacy/components/user-feedback/Shrug/index.ts +0 -1
- package/src/legacy/components/user-feedback/index.ts +0 -1
- package/src/legacy/styles/globals/buttons.ts +0 -154
- package/src/legacy/styles/globals/forms.ts +0 -53
- package/src/legacy/styles/globals/index.tsx +0 -22
- package/src/legacy/styles/globals/layout.ts +0 -22
- package/src/legacy/styles/globals/lists.ts +0 -23
- package/src/legacy/styles/globals/margin-padding.ts +0 -33
- package/src/legacy/styles/globals/media.ts +0 -13
- package/src/legacy/styles/globals/tables.ts +0 -30
- package/src/legacy/styles/globals/typography.ts +0 -82
- package/src/legacy/styles/globals/utility-classes.ts +0 -76
- package/src/legacy/styles/index.ts +0 -1
- package/src/legacy/tokens/animation.ts +0 -6
- package/src/legacy/tokens/breakpoints.ts +0 -11
- package/src/legacy/tokens/colors.ts +0 -293
- package/src/legacy/tokens/index.ts +0 -20
- package/src/legacy/tokens/margin.ts +0 -5
- package/src/legacy/tokens/numbers.js +0 -41
- package/src/legacy/tokens/padding.ts +0 -5
- package/src/legacy/tokens/spacings.ts +0 -5
- package/src/legacy/tokens/typography.ts +0 -43
- package/src/legacy/utils/color.ts +0 -139
- package/src/legacy/utils/index.ts +0 -5
- package/src/legacy/utils/number.ts +0 -29
- package/src/legacy/utils/string.ts +0 -87
- package/src/styles/assets/fonts/mulish/a.woff2 +0 -0
- package/src/styles/assets/fonts/mulish/b.woff2 +0 -0
- package/src/styles/assets/fonts/mulish/c.woff2 +0 -0
- package/src/styles/assets/fonts/mulish/d.woff2 +0 -0
- package/src/styles/assets/fonts/mulish/mulish.css +0 -98
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
import { LoadingList } from './LoadingList';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
component: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
title: string;
|
|
6
|
-
argTypes: {};
|
|
7
|
-
};
|
|
8
|
-
export default meta;
|
|
9
|
-
type Story = StoryObj<typeof LoadingList>;
|
|
10
|
-
export declare const Normal: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const StyledLoadingList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { LoadingList } from './LoadingList';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PermafrostComponent } from '@/types';
|
|
2
|
-
type Props = PermafrostComponent & {
|
|
3
|
-
backgroundColor?: string;
|
|
4
|
-
foregroundColor?: string;
|
|
5
|
-
ringRadius?: number;
|
|
6
|
-
strokeWidth?: number;
|
|
7
|
-
/** an integer between 0 and 1 */
|
|
8
|
-
value: number;
|
|
9
|
-
valueFontSize?: number;
|
|
10
|
-
};
|
|
11
|
-
export declare function PercentageRing(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
import { PercentageRing } from './PercentageRing';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
component: typeof PercentageRing;
|
|
5
|
-
title: string;
|
|
6
|
-
argTypes: {};
|
|
7
|
-
};
|
|
8
|
-
export default meta;
|
|
9
|
-
type Story = StoryObj<typeof PercentageRing>;
|
|
10
|
-
export declare const Normal: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const StyledPercentageRing: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PercentageRing } from './PercentageRing';
|
package/lib/legacy/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const RandomLoadingMessage: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
import { RandomLoadingMessage } from './RandomLoadingMessage';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
component: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
title: string;
|
|
6
|
-
argTypes: {};
|
|
7
|
-
};
|
|
8
|
-
export default meta;
|
|
9
|
-
type Story = StoryObj<typeof RandomLoadingMessage>;
|
|
10
|
-
export declare const Normal: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { RandomLoadingMessage } from './RandomLoadingMessage';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const StyledTextTruncate: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TextTruncate } from './TextTruncate';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PermafrostComponent } from '@/types';
|
|
3
|
-
type Props = PermafrostComponent & {
|
|
4
|
-
actionLink?: string;
|
|
5
|
-
actionText?: string;
|
|
6
|
-
buttonAction?(): void;
|
|
7
|
-
buttonText?: string;
|
|
8
|
-
message?: string | React.ReactNode;
|
|
9
|
-
messageProps?: {
|
|
10
|
-
'data-cy': string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export declare function Shrug(props: Props): React.ReactElement;
|
|
14
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
import { Shrug } from './Shrug';
|
|
4
|
-
declare const meta: {
|
|
5
|
-
component: typeof Shrug;
|
|
6
|
-
title: string;
|
|
7
|
-
argTypes: {};
|
|
8
|
-
args: {
|
|
9
|
-
message: string;
|
|
10
|
-
};
|
|
11
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
12
|
-
id?: string;
|
|
13
|
-
className?: string;
|
|
14
|
-
'data-cy'?: string;
|
|
15
|
-
'data-testid'?: string;
|
|
16
|
-
actionLink?: string;
|
|
17
|
-
actionText?: string;
|
|
18
|
-
buttonAction?: (() => void) | undefined;
|
|
19
|
-
buttonText?: string;
|
|
20
|
-
message?: string | React.ReactNode;
|
|
21
|
-
messageProps?: {
|
|
22
|
-
"data-cy": string;
|
|
23
|
-
};
|
|
24
|
-
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
25
|
-
};
|
|
26
|
-
export default meta;
|
|
27
|
-
type Story = StoryObj<typeof Shrug>;
|
|
28
|
-
export declare const MessageOnly: Story;
|
|
29
|
-
export declare const WithButtonAction: Story;
|
|
30
|
-
export declare const WithLinkAction: Story;
|
|
31
|
-
export declare const ComponentMessage: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const StyledShrug: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Shrug } from './Shrug';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Shrug } from './Shrug';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Buttons: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Forms: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const GlobalStyles: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Layout: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Lists: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const MarginPadding: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Media: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Tables: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Typography: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const UtilityClasses: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { GlobalStyles } from './globals';
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
export declare const allColors: {
|
|
2
|
-
readonly akaroa: "#cbc98f";
|
|
3
|
-
readonly alizarin: "#E72326";
|
|
4
|
-
readonly amber: "#f4c401";
|
|
5
|
-
readonly amethyst: "#8e57b3";
|
|
6
|
-
readonly aqua: "#10e4fe";
|
|
7
|
-
readonly astralBlue: "#2f7ca2";
|
|
8
|
-
readonly ateneoBlue: "#0d466a";
|
|
9
|
-
readonly avocado: "#81b12f";
|
|
10
|
-
readonly azure: "#108cf7";
|
|
11
|
-
readonly baliHai: "#8498b6";
|
|
12
|
-
readonly black: "#000";
|
|
13
|
-
readonly blueBayoux: "#4f5e74";
|
|
14
|
-
readonly blueDarknut: "#0070f5";
|
|
15
|
-
readonly blueMagenta: "#542f9d";
|
|
16
|
-
readonly blueRibbon: "#0b35ff";
|
|
17
|
-
readonly blueYonder: "#586fd2";
|
|
18
|
-
readonly bouqet: "#a35c9a";
|
|
19
|
-
readonly brick: "#c62828";
|
|
20
|
-
readonly brightDusk: "#efebf7";
|
|
21
|
-
readonly britishShorthair: "#4b94eb";
|
|
22
|
-
readonly brown: "#785349";
|
|
23
|
-
readonly candyCorn: "#fcef4d";
|
|
24
|
-
readonly carnation: "#ff8adf";
|
|
25
|
-
readonly carrot: "#f29a2d";
|
|
26
|
-
readonly cerise: "#d52a96";
|
|
27
|
-
readonly cerulean: "#008b9e";
|
|
28
|
-
readonly chantilly: "#f7b0eb";
|
|
29
|
-
readonly charcoal: "#474b4b";
|
|
30
|
-
readonly chartreuse: "#34ff01";
|
|
31
|
-
readonly clay: "#283243";
|
|
32
|
-
readonly clementine: "#F16E00";
|
|
33
|
-
readonly cocoaBean: "#5c1200";
|
|
34
|
-
readonly comet: "#5a6982";
|
|
35
|
-
readonly cornflower: "#2060ff";
|
|
36
|
-
readonly crimson: "#e53126";
|
|
37
|
-
readonly curiousBlue: "#178ee0";
|
|
38
|
-
readonly cyan: "#0cf";
|
|
39
|
-
readonly daisyBush: "#431B92";
|
|
40
|
-
readonly darkFontColor: "#0d151d";
|
|
41
|
-
readonly darkGray: "#333";
|
|
42
|
-
readonly darkPurple: "#6f3eae";
|
|
43
|
-
readonly darkRed: "#b30000";
|
|
44
|
-
readonly defaultFontColor: "#bbbfc5";
|
|
45
|
-
readonly dodgerBlue: "#1774ff";
|
|
46
|
-
readonly dusty: "#999999";
|
|
47
|
-
readonly eagleGreen: "#005557";
|
|
48
|
-
readonly ebony: "#101a26";
|
|
49
|
-
readonly eggplant: "#7a0074";
|
|
50
|
-
readonly electricGreen: "#00ff0a";
|
|
51
|
-
readonly emerald: "#09c199";
|
|
52
|
-
readonly endeavor: "#0055B9";
|
|
53
|
-
readonly espresso: "#5a3627";
|
|
54
|
-
readonly fieldPromptError: "#fd9693";
|
|
55
|
-
readonly fieldPromptInfo: "#00bfff";
|
|
56
|
-
readonly flamingo: "#f861b6";
|
|
57
|
-
readonly flirt: "#910870";
|
|
58
|
-
readonly forestGreen: "#1f7f1f";
|
|
59
|
-
readonly frostedOver: "#DCEAFD";
|
|
60
|
-
readonly geraldine: "#fe9486";
|
|
61
|
-
readonly grannysmith: "#92e959";
|
|
62
|
-
readonly green: "#4caf50";
|
|
63
|
-
readonly harlequin: "#20cb00";
|
|
64
|
-
readonly harvestGold: "#e6c079";
|
|
65
|
-
readonly hawkes: "#DCEAFD";
|
|
66
|
-
readonly hemlock: "#626740";
|
|
67
|
-
readonly imperial: "#4b0134";
|
|
68
|
-
readonly iron: "#d9dee0";
|
|
69
|
-
readonly japaneseIndigo: "#264359";
|
|
70
|
-
readonly juniper: "#6d9292";
|
|
71
|
-
readonly khaki: "#bba44b";
|
|
72
|
-
readonly koamaru: "#2f346a";
|
|
73
|
-
readonly korma: "#90370e";
|
|
74
|
-
readonly lavender: "#B086E3";
|
|
75
|
-
readonly lavenderRose: "#fb9fda";
|
|
76
|
-
readonly lightGray: "#eee";
|
|
77
|
-
readonly lightPurple: "#b43be4";
|
|
78
|
-
readonly lilac: "#a195d4";
|
|
79
|
-
readonly lincolnGreen: "#254600";
|
|
80
|
-
readonly magenta: "#ff15e0";
|
|
81
|
-
readonly malibu: "#68C2FB";
|
|
82
|
-
readonly mantis: "#4fa83d";
|
|
83
|
-
readonly maroon: "#ad3349";
|
|
84
|
-
readonly mauve: "#e06cfb";
|
|
85
|
-
readonly mediumGray: "#999";
|
|
86
|
-
readonly midFontColor: "#8593b3";
|
|
87
|
-
readonly mint: "#3ac999";
|
|
88
|
-
readonly mirage: "#182432";
|
|
89
|
-
readonly mulberry: "#5c0536";
|
|
90
|
-
readonly olive: "#807300";
|
|
91
|
-
readonly orange: "#ff7200";
|
|
92
|
-
readonly orchid: "#ab00ff";
|
|
93
|
-
readonly oxfordBlue: "#384558";
|
|
94
|
-
readonly pacific: "#00b5b6";
|
|
95
|
-
readonly palm: "#1aa511";
|
|
96
|
-
readonly persian: "#1717cf";
|
|
97
|
-
readonly persianLight: "#0327ce";
|
|
98
|
-
readonly pine: "#017074";
|
|
99
|
-
readonly pink: "#f74f8a";
|
|
100
|
-
readonly pistachio: "#aac609";
|
|
101
|
-
readonly raspberry: "#990030";
|
|
102
|
-
readonly red: "#f95359";
|
|
103
|
-
readonly robinsEggBlue: "#00bcd4";
|
|
104
|
-
readonly romanSilver: "#7d888d";
|
|
105
|
-
readonly sagatPurple: "#6833d0";
|
|
106
|
-
readonly salem: "#03832e";
|
|
107
|
-
readonly sapGreen: "#5f7e20";
|
|
108
|
-
readonly seaGreen: "#0b8a51";
|
|
109
|
-
readonly seance: "#7f1f82";
|
|
110
|
-
readonly shiraz: "#c61021";
|
|
111
|
-
readonly silverChalice: "#aaaaaa";
|
|
112
|
-
readonly sinopia: "#D14200";
|
|
113
|
-
readonly slaaneshGrey: "#dbd5e6";
|
|
114
|
-
readonly tangerine: "#ff9900";
|
|
115
|
-
readonly teal: "#008285";
|
|
116
|
-
readonly toast: "#997862";
|
|
117
|
-
readonly trueBlue: "#066CC6";
|
|
118
|
-
readonly tundora: "#444444";
|
|
119
|
-
readonly turquoise: "#00b5b6";
|
|
120
|
-
readonly vermilion: "#b95555";
|
|
121
|
-
readonly viking: "#59cfe0";
|
|
122
|
-
readonly violet: "#3e4eb8";
|
|
123
|
-
readonly violetBlue: "#8060d2";
|
|
124
|
-
readonly walnut: "#783f00";
|
|
125
|
-
readonly white: "#fff";
|
|
126
|
-
readonly windsorTan: "#b35c00";
|
|
127
|
-
readonly yellow: "#ffca28";
|
|
128
|
-
readonly zucchini: "#016422";
|
|
129
|
-
readonly hiliteFontColor: "#fff";
|
|
130
|
-
readonly lightFontColor: "#eee";
|
|
131
|
-
readonly borderColor: "#eee";
|
|
132
|
-
readonly actionColor: "#8593b3";
|
|
133
|
-
readonly backgroundColor: "#182432";
|
|
134
|
-
};
|
|
135
|
-
export type ColorName = keyof typeof allColors;
|
|
136
|
-
export declare const baseColors: string[];
|
|
137
|
-
export declare const layoutColors: string[];
|
|
138
|
-
export declare const grayColors: string[];
|
|
139
|
-
export declare const fontColors: string[];
|
|
140
|
-
export declare const buttonColors: string[];
|
|
141
|
-
export declare const newButtonColors: string[];
|
|
142
|
-
export declare const vizColors: string[];
|
|
143
|
-
export declare const vizColorsArray: string[];
|
|
144
|
-
export declare const fieldColors: string[];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { animation as ANIMATION } from './animation';
|
|
2
|
-
export { breakpoints as BREAKPOINT, mediaQueries as MEDIA_QUERIES } from './breakpoints';
|
|
3
|
-
export { typography as TYPOGRAPHY, fontSize as FONT_SIZE } from './typography';
|
|
4
|
-
export { padding as PADDINGS } from './padding';
|
|
5
|
-
export { spacings as SPACING } from './spacings';
|
|
6
|
-
export { margin as MARGINS } from './margin';
|
|
7
|
-
export { MATH } from './numbers';
|
|
8
|
-
export { allColors as COLORS, baseColors as BASE_COLORS, fieldColors as FIELD_COLORS, layoutColors as LAYOUT_COLORS, grayColors as GRAY_COLORS, fontColors as FONT_COLORS, buttonColors as BUTTON_COLORS, newButtonColors as NEW_BUTTON_COLORS, vizColors as VIZ_COLORS, vizColorsArray as VIZ_COLORS_ARRAY, } from './colors';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export function decimalAdjust(type: any, value: any, exp: any): any;
|
|
2
|
-
export function round10(value: any, exp: any): any;
|
|
3
|
-
export function clamp(value: any, min: any, max: any): any;
|
|
4
|
-
export function numberWithCommas(x: any): any;
|
|
5
|
-
export namespace MATH {
|
|
6
|
-
export { decimalAdjust };
|
|
7
|
-
export { round10 };
|
|
8
|
-
export { clamp };
|
|
9
|
-
export { numberWithCommas };
|
|
10
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
export declare const fontStack: readonly ["Noto Sans", "Avenir Next", "Avenir", "Noto", "sans-serif"];
|
|
2
|
-
export declare const fontFamily: {
|
|
3
|
-
base: string;
|
|
4
|
-
heading: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const fontSize: {
|
|
7
|
-
readonly caption: "12px";
|
|
8
|
-
readonly base: "14px";
|
|
9
|
-
readonly subheadSmall: "16px";
|
|
10
|
-
readonly subheadLarge: "18px";
|
|
11
|
-
readonly subheadXl: "22px";
|
|
12
|
-
readonly display: "30px";
|
|
13
|
-
};
|
|
14
|
-
export declare const lineHeight: {
|
|
15
|
-
readonly base: 1.25;
|
|
16
|
-
readonly heading: 1.2;
|
|
17
|
-
};
|
|
18
|
-
export declare const spacing: {
|
|
19
|
-
base: string;
|
|
20
|
-
half: string;
|
|
21
|
-
quarter: string;
|
|
22
|
-
third: string;
|
|
23
|
-
};
|
|
24
|
-
export declare const weight: {
|
|
25
|
-
light: number;
|
|
26
|
-
regular: number;
|
|
27
|
-
semibold: number;
|
|
28
|
-
bold: number;
|
|
29
|
-
};
|
|
30
|
-
export declare const ellipsis: import("styled-components").RuleSet<object>;
|
|
31
|
-
export declare const typography: {
|
|
32
|
-
fontFamily: {
|
|
33
|
-
base: string;
|
|
34
|
-
heading: string;
|
|
35
|
-
};
|
|
36
|
-
fontSize: {
|
|
37
|
-
readonly caption: "12px";
|
|
38
|
-
readonly base: "14px";
|
|
39
|
-
readonly subheadSmall: "16px";
|
|
40
|
-
readonly subheadLarge: "18px";
|
|
41
|
-
readonly subheadXl: "22px";
|
|
42
|
-
readonly display: "30px";
|
|
43
|
-
};
|
|
44
|
-
lineHeight: {
|
|
45
|
-
readonly base: 1.25;
|
|
46
|
-
readonly heading: 1.2;
|
|
47
|
-
};
|
|
48
|
-
spacing: {
|
|
49
|
-
base: string;
|
|
50
|
-
half: string;
|
|
51
|
-
quarter: string;
|
|
52
|
-
third: string;
|
|
53
|
-
};
|
|
54
|
-
ellipsis: import("styled-components").RuleSet<object>;
|
|
55
|
-
weight: {
|
|
56
|
-
light: number;
|
|
57
|
-
regular: number;
|
|
58
|
-
semibold: number;
|
|
59
|
-
bold: number;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const mix: (color_1: string, color_2: string, weight: number) => string;
|
|
2
|
-
export declare const shade: (color: string, percentage: number) => string;
|
|
3
|
-
export declare const tint: (color: string, percentage: number) => string;
|
|
4
|
-
/**
|
|
5
|
-
* Converts hex color values to rgb or rgba values if a opacity is supplied
|
|
6
|
-
* @param hex
|
|
7
|
-
* @returns {*}
|
|
8
|
-
*/
|
|
9
|
-
export declare const hexToRgb: (hex: string, opacity?: number) => string | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* Takes a 3- or 6-character hex color value, and returns an object containing
|
|
12
|
-
* its equivalent HSL values.
|
|
13
|
-
*
|
|
14
|
-
* @see {@link https://css-tricks.com/converting-color-spaces-in-javascript/}
|
|
15
|
-
* @see {@link https://gist.github.com/mjackson/5311256}
|
|
16
|
-
*/
|
|
17
|
-
export declare function hexToHsl(hexColor: string): {
|
|
18
|
-
hue: number;
|
|
19
|
-
saturation: number;
|
|
20
|
-
lightness: number;
|
|
21
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Takes a number and formats it nicely.
|
|
3
|
-
*
|
|
4
|
-
* @example numberWithCommas(12345)
|
|
5
|
-
* // returns 12,345
|
|
6
|
-
*/
|
|
7
|
-
export declare function numberWithCommas(value: number): string;
|
|
8
|
-
/**
|
|
9
|
-
* Takes a number and returns it, rounded up to the maximum decimal places specified.
|
|
10
|
-
*
|
|
11
|
-
* @example maxDecimalPlaces(0.1694915254237288, 2)
|
|
12
|
-
* // returns 0.17
|
|
13
|
-
*
|
|
14
|
-
* @example maxDecimalPlaces(0.1694915254237288, 3)
|
|
15
|
-
* // returns 0.169
|
|
16
|
-
*
|
|
17
|
-
* @example maxDecimalPlaces(12.902, 2)
|
|
18
|
-
* // returns 12.9
|
|
19
|
-
*/
|
|
20
|
-
export declare function maxDecimalPlaces(value: number, decimalPlaces: number): number;
|
|
21
|
-
export declare function formatConfidence(confidence: number): number;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const camelCaseToUpperUnderscore: (string: string) => string;
|
|
2
|
-
export declare const camelCaseToSpaceUpper: (string: string) => string;
|
|
3
|
-
export declare const underscoreToCapitalize: (string: string) => string;
|
|
4
|
-
export declare const snakeCaseToCamelCase: (string: string) => string;
|
|
5
|
-
export declare function capitalize(string: string): string;
|
|
6
|
-
export declare function capitalizeFirstOnly(string: string): string;
|
|
7
|
-
/**
|
|
8
|
-
* Generates a random string of English alphabet characters. Defaults to a length of 8.
|
|
9
|
-
*/
|
|
10
|
-
export declare function createRandomString(length?: number): string;
|
|
11
|
-
export declare const maxLengthWithEllipse: (string: string, maxLength: number) => string;
|
|
12
|
-
export declare const maxLengthWithMiddleEllipsis: (string: string, maxLength: number) => string;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
import { Button } from '@/legacy/components';
|
|
5
|
-
import { Accordion } from './Accordion';
|
|
6
|
-
|
|
7
|
-
const content = (
|
|
8
|
-
<div>
|
|
9
|
-
<h2 style={{ marginBottom: '10px' }}>Lorem</h2>
|
|
10
|
-
<p style={{ marginBottom: '10px' }}>
|
|
11
|
-
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Recusandae, repudiandae ipsa
|
|
12
|
-
officiis dolores dolore iusto saepe harum maxime placeat ut culpa excepturi praesentium optio
|
|
13
|
-
minus velit odio voluptate veniam nulla.
|
|
14
|
-
</p>
|
|
15
|
-
<p style={{ marginBottom: '20px' }}>
|
|
16
|
-
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Recusandae, repudiandae ipsa
|
|
17
|
-
officiis dolores dolore iusto saepe harum maxime placeat ut culpa excepturi praesentium optio
|
|
18
|
-
minus velit odio voluptate veniam nulla. Lorem ipsum dolor sit, amet consectetur adipisicing
|
|
19
|
-
elit. Recusandae, repudiandae ipsa officiis dolores dolore iusto saepe harum maxime placeat ut
|
|
20
|
-
culpa excepturi praesentium optio minus velit odio voluptate veniam nulla. Lorem ipsum dolor
|
|
21
|
-
sit, amet consectetur adipisicing elit. Recusandae, repudiandae ipsa officiis dolores dolore
|
|
22
|
-
iusto saepe harum maxime placeat ut culpa excepturi praesentium optio minus velit odio
|
|
23
|
-
voluptate veniam nulla.
|
|
24
|
-
</p>
|
|
25
|
-
<Button onClick={() => {}}>Button</Button>
|
|
26
|
-
</div>
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
const meta = {
|
|
30
|
-
component: Accordion,
|
|
31
|
-
title: 'legacy/Accordion',
|
|
32
|
-
argTypes: {},
|
|
33
|
-
decorators: [
|
|
34
|
-
(Story) => (
|
|
35
|
-
<div style={{ display: 'flex' }}>
|
|
36
|
-
<Story content={content} />
|
|
37
|
-
</div>
|
|
38
|
-
),
|
|
39
|
-
],
|
|
40
|
-
} satisfies Meta<typeof Accordion>;
|
|
41
|
-
|
|
42
|
-
export default meta;
|
|
43
|
-
type Story = StoryObj<typeof Accordion>;
|
|
44
|
-
|
|
45
|
-
export const Normal: Story = {};
|
|
46
|
-
|
|
47
|
-
export const WithHeader: Story = { args: { header: 'Accordion Toggle' } };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
export const StyledAccordion = styled.details`
|
|
4
|
-
summary {
|
|
5
|
-
display: inherit;
|
|
6
|
-
padding: 0 12px;
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.header-container,
|
|
11
|
-
h2 {
|
|
12
|
-
display: flex;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.toggle-icon {
|
|
16
|
-
height: 24px;
|
|
17
|
-
margin: 6px 0;
|
|
18
|
-
border-radius: 50%;
|
|
19
|
-
transition: 0.3s transform ease-in-out;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
h2 {
|
|
23
|
-
align-items: center;
|
|
24
|
-
margin: 0 0 0 8px;
|
|
25
|
-
font-size: 22px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.content {
|
|
29
|
-
margin: 10px 0 10px 20px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&[open] > summary .toggle-icon {
|
|
33
|
-
transform: rotate(180deg);
|
|
34
|
-
}
|
|
35
|
-
`;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// TODO: This component's migration was fast-tracked for Insights. Assess for potential refactor and documentation.
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
|
|
5
|
-
import { Icon } from '@/components';
|
|
6
|
-
import { PermafrostComponent } from '@/types';
|
|
7
|
-
|
|
8
|
-
import { StyledAccordion } from './Accordion.styles';
|
|
9
|
-
|
|
10
|
-
type Props = PermafrostComponent & {
|
|
11
|
-
content: React.ReactNode;
|
|
12
|
-
header?: React.ReactNode | string;
|
|
13
|
-
open?: boolean;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export const Accordion = (props: Props) => {
|
|
17
|
-
const { className, content, header, id, open } = props;
|
|
18
|
-
|
|
19
|
-
return (
|
|
20
|
-
<StyledAccordion className={className} id={id} open={open} data-cy={props['data-cy']}>
|
|
21
|
-
<summary>
|
|
22
|
-
<div className="header-container">
|
|
23
|
-
<Icon className="toggle-icon" name="chevron-up" />
|
|
24
|
-
{header ? <h2>{header}</h2> : null}
|
|
25
|
-
</div>
|
|
26
|
-
</summary>
|
|
27
|
-
<div className="content">{content}</div>
|
|
28
|
-
</StyledAccordion>
|
|
29
|
-
);
|
|
30
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Accordion } from './Accordion';
|