@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,27 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
export const StyledPercentageRing = styled.div`
|
|
4
|
-
position: relative;
|
|
5
|
-
|
|
6
|
-
svg {
|
|
7
|
-
transform: rotate(-90deg);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
div {
|
|
11
|
-
position: absolute;
|
|
12
|
-
top: 0;
|
|
13
|
-
left: 0;
|
|
14
|
-
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
|
|
19
|
-
margin-top: -0.05em;
|
|
20
|
-
margin-left: 0.1em;
|
|
21
|
-
|
|
22
|
-
span {
|
|
23
|
-
font-size: 0.6em;
|
|
24
|
-
margin-top: -0.5em;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
`;
|
|
@@ -1,76 +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 { COLORS } from '@/legacy/tokens';
|
|
6
|
-
import { PermafrostComponent } from '@/types';
|
|
7
|
-
|
|
8
|
-
import { StyledPercentageRing } from './PercentageRing.styles';
|
|
9
|
-
|
|
10
|
-
type Props = PermafrostComponent & {
|
|
11
|
-
backgroundColor?: string;
|
|
12
|
-
foregroundColor?: string;
|
|
13
|
-
ringRadius?: number;
|
|
14
|
-
strokeWidth?: number;
|
|
15
|
-
/** an integer between 0 and 1 */
|
|
16
|
-
value: number;
|
|
17
|
-
valueFontSize?: number;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export function PercentageRing(props: Props) {
|
|
21
|
-
const {
|
|
22
|
-
backgroundColor = COLORS.clay,
|
|
23
|
-
className,
|
|
24
|
-
foregroundColor = COLORS.baliHai,
|
|
25
|
-
id,
|
|
26
|
-
ringRadius = 35,
|
|
27
|
-
strokeWidth = 5,
|
|
28
|
-
value = 0,
|
|
29
|
-
valueFontSize = 20,
|
|
30
|
-
} = props;
|
|
31
|
-
|
|
32
|
-
const ringCircumference = 2 * Math.PI * (ringRadius - strokeWidth / 2);
|
|
33
|
-
const valueCircumference = ringCircumference - value * ringCircumference;
|
|
34
|
-
const diameter = ringRadius * 2;
|
|
35
|
-
const circleRadius = ringRadius - strokeWidth / 2;
|
|
36
|
-
|
|
37
|
-
// ensure we don’t display a value greater than 100% to the user
|
|
38
|
-
const displayValue = Math.round(Math.min(value, 1) * 100);
|
|
39
|
-
|
|
40
|
-
return (
|
|
41
|
-
<StyledPercentageRing className={className} data-cy={props['data-cy']} id={id}>
|
|
42
|
-
<div
|
|
43
|
-
style={{
|
|
44
|
-
fontSize: valueFontSize,
|
|
45
|
-
width: diameter,
|
|
46
|
-
height: diameter,
|
|
47
|
-
}}
|
|
48
|
-
>
|
|
49
|
-
{displayValue}
|
|
50
|
-
<span>%</span>
|
|
51
|
-
</div>
|
|
52
|
-
|
|
53
|
-
<svg
|
|
54
|
-
height={diameter}
|
|
55
|
-
width={diameter}
|
|
56
|
-
fill="none"
|
|
57
|
-
strokeWidth={strokeWidth}
|
|
58
|
-
aria-hidden="true"
|
|
59
|
-
focusable="false"
|
|
60
|
-
>
|
|
61
|
-
<g>
|
|
62
|
-
<circle r={circleRadius} cx={ringRadius} cy={ringRadius} stroke={backgroundColor} />
|
|
63
|
-
|
|
64
|
-
<circle
|
|
65
|
-
r={circleRadius}
|
|
66
|
-
cx={ringRadius}
|
|
67
|
-
cy={ringRadius}
|
|
68
|
-
stroke={foregroundColor}
|
|
69
|
-
strokeDasharray={ringCircumference}
|
|
70
|
-
strokeDashoffset={valueCircumference}
|
|
71
|
-
/>
|
|
72
|
-
</g>
|
|
73
|
-
</svg>
|
|
74
|
-
</StyledPercentageRing>
|
|
75
|
-
);
|
|
76
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PercentageRing } from './PercentageRing';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// TODO: This component's migration was fast-tracked for Insights. Assess for potential refactor and documentation.
|
|
2
|
-
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
4
|
-
|
|
5
|
-
import { RandomLoadingMessage } from './RandomLoadingMessage';
|
|
6
|
-
|
|
7
|
-
const meta = {
|
|
8
|
-
component: RandomLoadingMessage,
|
|
9
|
-
title: 'legacy/Loading/RandomLoadingMessage',
|
|
10
|
-
argTypes: {},
|
|
11
|
-
} satisfies Meta<typeof RandomLoadingMessage>;
|
|
12
|
-
|
|
13
|
-
export default meta;
|
|
14
|
-
type Story = StoryObj<typeof RandomLoadingMessage>;
|
|
15
|
-
|
|
16
|
-
export const Normal: Story = {};
|
package/src/legacy/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.tsx
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect } from 'react';
|
|
2
|
-
import MESSAGES from './random-messages';
|
|
3
|
-
|
|
4
|
-
export const RandomLoadingMessage = () => {
|
|
5
|
-
const [randomMessage, changeRandomMessage] = useState<string>(
|
|
6
|
-
MESSAGES[Math.floor(Math.random() * MESSAGES.length)],
|
|
7
|
-
);
|
|
8
|
-
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
const timer = setTimeout(() => {
|
|
11
|
-
changeRandomMessage(MESSAGES[Math.floor(Math.random() * MESSAGES.length)]);
|
|
12
|
-
}, 3000);
|
|
13
|
-
|
|
14
|
-
return () => clearTimeout(timer);
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
return <span className="message">{randomMessage}...</span>;
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { RandomLoadingMessage } from './RandomLoadingMessage';
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
const MESSAGES = [
|
|
2
|
-
'Charging the flux capacitor',
|
|
3
|
-
'Spinning up the hamster wheel',
|
|
4
|
-
'Flushing the pipes',
|
|
5
|
-
'Counting all the beans',
|
|
6
|
-
'Take a deep breath and enjoy this beautiful moment',
|
|
7
|
-
'Counting digits in pi (almost done)',
|
|
8
|
-
'Folding time and space',
|
|
9
|
-
'Oiling the gears',
|
|
10
|
-
'Peeling the data fruits',
|
|
11
|
-
'Activating the oscillation overthruster',
|
|
12
|
-
'Gleaming the cube',
|
|
13
|
-
'Reticulating splines',
|
|
14
|
-
'Playing a quick game of squash',
|
|
15
|
-
'Making the sausage',
|
|
16
|
-
'Building the matrix',
|
|
17
|
-
'Drawing fractals',
|
|
18
|
-
'Testing memory (what did you have for breakfast?)',
|
|
19
|
-
'Priming data pumps',
|
|
20
|
-
'Whacking datamoles',
|
|
21
|
-
'Finding Nemo',
|
|
22
|
-
'Running spin cycle',
|
|
23
|
-
'Chasing down a dream',
|
|
24
|
-
'Twiddling the knobs',
|
|
25
|
-
'Assembling lines',
|
|
26
|
-
'Making the donuts',
|
|
27
|
-
'Gathering magic',
|
|
28
|
-
'Rolling stones',
|
|
29
|
-
'Busting all the moves',
|
|
30
|
-
'Augmenting reality',
|
|
31
|
-
'Leveling up',
|
|
32
|
-
'Obviating frequencies',
|
|
33
|
-
'Declaring variables',
|
|
34
|
-
'Boosting thrusters',
|
|
35
|
-
'Blazing the saddles',
|
|
36
|
-
'Flipping some bits',
|
|
37
|
-
'Unclogging the internet',
|
|
38
|
-
'Turning it off and back on again',
|
|
39
|
-
'Entering the ThunderDome',
|
|
40
|
-
'Rolling logs',
|
|
41
|
-
'Dangling particles',
|
|
42
|
-
'Catching moonbeams',
|
|
43
|
-
'Digging for treasure',
|
|
44
|
-
'Reconbulating the conbulator',
|
|
45
|
-
'Machine learning',
|
|
46
|
-
'Magicing',
|
|
47
|
-
'Tuning the forks',
|
|
48
|
-
'Fiddling widgets',
|
|
49
|
-
'Feeding the data monkeys',
|
|
50
|
-
'Regularizing expressions',
|
|
51
|
-
'Ramping up the synergy',
|
|
52
|
-
'Inflating point flotations',
|
|
53
|
-
'Entering orbit around alpha centuri',
|
|
54
|
-
'Squeezing data tubes',
|
|
55
|
-
'Making a list and checking it twice',
|
|
56
|
-
'Unkinking the data tubes',
|
|
57
|
-
'Turning on the data hose',
|
|
58
|
-
'Preparing for liftoff',
|
|
59
|
-
'Replacing the hamsters',
|
|
60
|
-
'Changing the batteries',
|
|
61
|
-
'Waking up our engineers',
|
|
62
|
-
'Contemplating the meaning of life',
|
|
63
|
-
'Downloading fresh dog memes',
|
|
64
|
-
'Springing the chickens',
|
|
65
|
-
];
|
|
66
|
-
|
|
67
|
-
export default MESSAGES;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { TextTruncate } from './TextTruncate';
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
const meta: Meta<typeof TextTruncate> = {
|
|
5
|
-
component: TextTruncate,
|
|
6
|
-
tags: ['autodocs'],
|
|
7
|
-
title: 'legacy/Text Utilities/TextTruncate',
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export default meta;
|
|
11
|
-
|
|
12
|
-
type Story = StoryObj<typeof TextTruncate>;
|
|
13
|
-
|
|
14
|
-
export const Normal: Story = {
|
|
15
|
-
args: {
|
|
16
|
-
string: 'This string is being truncated for length.',
|
|
17
|
-
maxChars: 30,
|
|
18
|
-
},
|
|
19
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render } from '@testing-library/react';
|
|
3
|
-
import { TextTruncate } from './TextTruncate';
|
|
4
|
-
|
|
5
|
-
describe('TextTruncate', () => {
|
|
6
|
-
const longText = 'this is a really long string that should be truncated';
|
|
7
|
-
|
|
8
|
-
it('truncates text when it exceeds the maximum length and adds a title attr', () => {
|
|
9
|
-
const { getByTitle } = render(<TextTruncate string={longText} maxChars={20}></TextTruncate>);
|
|
10
|
-
expect(getByTitle(longText).textContent).toEqual('this is a really lon...');
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
it('does not truncate the text when it is below the max length', () => {
|
|
14
|
-
const { getByText } = render(<TextTruncate string={longText} maxChars={200}></TextTruncate>);
|
|
15
|
-
expect(getByText(longText).textContent).toEqual(longText);
|
|
16
|
-
});
|
|
17
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StyledTextTruncate } from './TextTruncate.styles';
|
|
3
|
-
|
|
4
|
-
interface TextTruncateProps {
|
|
5
|
-
string: string;
|
|
6
|
-
maxChars: number;
|
|
7
|
-
children?: any;
|
|
8
|
-
noTitle?: boolean;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function TextTruncate({ string, maxChars, children, noTitle }: TextTruncateProps) {
|
|
12
|
-
return string.length > maxChars ? (
|
|
13
|
-
<StyledTextTruncate title={noTitle ? undefined : string}>
|
|
14
|
-
{`${string.substring(0, maxChars)}...`}
|
|
15
|
-
{children}
|
|
16
|
-
</StyledTextTruncate>
|
|
17
|
-
) : (
|
|
18
|
-
<StyledTextTruncate>
|
|
19
|
-
{string}
|
|
20
|
-
{children}
|
|
21
|
-
</StyledTextTruncate>
|
|
22
|
-
);
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TextTruncate } from './TextTruncate';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MemoryRouter } from 'react-router-dom';
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
4
|
-
|
|
5
|
-
import { Shrug } from './Shrug';
|
|
6
|
-
|
|
7
|
-
const meta = {
|
|
8
|
-
component: Shrug,
|
|
9
|
-
title: 'legacy/User Feedback/Shrug',
|
|
10
|
-
argTypes: {},
|
|
11
|
-
args: {
|
|
12
|
-
message: 'There are no workflows associated with this dataset.',
|
|
13
|
-
},
|
|
14
|
-
decorators: [
|
|
15
|
-
(Story) => (
|
|
16
|
-
<MemoryRouter>
|
|
17
|
-
<Story />
|
|
18
|
-
</MemoryRouter>
|
|
19
|
-
),
|
|
20
|
-
],
|
|
21
|
-
} satisfies Meta<typeof Shrug>;
|
|
22
|
-
|
|
23
|
-
export default meta;
|
|
24
|
-
type Story = StoryObj<typeof Shrug>;
|
|
25
|
-
|
|
26
|
-
export const MessageOnly: Story = {};
|
|
27
|
-
|
|
28
|
-
export const WithButtonAction: Story = {
|
|
29
|
-
args: { buttonText: 'Do something', buttonAction: () => {} },
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export const WithLinkAction: Story = {
|
|
33
|
-
args: { actionText: 'Go back', actionLink: 'https://indico.io' },
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export const ComponentMessage: Story = {
|
|
37
|
-
args: { message: <h2>Hello there! I'm an element</h2> },
|
|
38
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
import { COLORS, TYPOGRAPHY } from '@/legacy/tokens';
|
|
4
|
-
|
|
5
|
-
export const StyledShrug = styled.div`
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
align-items: center;
|
|
9
|
-
|
|
10
|
-
padding: 2em;
|
|
11
|
-
|
|
12
|
-
font-size: ${TYPOGRAPHY.fontSize.subheadLarge};
|
|
13
|
-
|
|
14
|
-
p {
|
|
15
|
-
font-size: inherit;
|
|
16
|
-
margin-top: 2em;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
svg {
|
|
20
|
-
fill: ${COLORS.iron};
|
|
21
|
-
opacity: 0.5;
|
|
22
|
-
width: 260px;
|
|
23
|
-
height: 84px;
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
@@ -1,45 +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
|
-
import { Link } from 'react-router-dom';
|
|
5
|
-
|
|
6
|
-
import { Button } from '@/legacy/components/buttons';
|
|
7
|
-
import { Icon } from '@/components';
|
|
8
|
-
import { PermafrostComponent } from '@/types';
|
|
9
|
-
|
|
10
|
-
import { StyledShrug } from './Shrug.styles';
|
|
11
|
-
|
|
12
|
-
type Props = PermafrostComponent & {
|
|
13
|
-
actionLink?: string;
|
|
14
|
-
actionText?: string;
|
|
15
|
-
buttonAction?(): void;
|
|
16
|
-
buttonText?: string;
|
|
17
|
-
message?: string | React.ReactNode;
|
|
18
|
-
messageProps?: { 'data-cy': string };
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export function Shrug(props: Props): React.ReactElement {
|
|
22
|
-
const { actionLink, actionText, buttonAction, buttonText, className, id, message } = props;
|
|
23
|
-
return (
|
|
24
|
-
<StyledShrug className={className} data-cy={props['data-cy']} id={id}>
|
|
25
|
-
<Icon name="shrug" />
|
|
26
|
-
{typeof message === 'string' ? (
|
|
27
|
-
<p className="t-subhead-large" {...props?.messageProps}>
|
|
28
|
-
{message}
|
|
29
|
-
</p>
|
|
30
|
-
) : (
|
|
31
|
-
message
|
|
32
|
-
)}
|
|
33
|
-
{actionLink && actionText && (
|
|
34
|
-
<Link to={actionLink} className="button blue cta mt-5">
|
|
35
|
-
{actionText}
|
|
36
|
-
</Link>
|
|
37
|
-
)}
|
|
38
|
-
{buttonAction && buttonText && (
|
|
39
|
-
<Button onClick={buttonAction} className="mt-5" variant="cta">
|
|
40
|
-
{buttonText}
|
|
41
|
-
</Button>
|
|
42
|
-
)}
|
|
43
|
-
</StyledShrug>
|
|
44
|
-
);
|
|
45
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Shrug } from './Shrug';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Shrug } from './Shrug';
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { createGlobalStyle, css } from 'styled-components';
|
|
2
|
-
|
|
3
|
-
import { COLORS, TYPOGRAPHY, ANIMATION } from '@/legacy/tokens';
|
|
4
|
-
|
|
5
|
-
const buttonColor = COLORS.darkFontColor;
|
|
6
|
-
const buttonBackground = COLORS.iron;
|
|
7
|
-
|
|
8
|
-
const buttonDefault = css`
|
|
9
|
-
appearance: none;
|
|
10
|
-
background-color: ${buttonBackground};
|
|
11
|
-
border: 0;
|
|
12
|
-
border-radius: 2px;
|
|
13
|
-
color: ${buttonColor};
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
display: inline-block;
|
|
16
|
-
font-family: ${TYPOGRAPHY.fontFamily.base};
|
|
17
|
-
font-size: ${TYPOGRAPHY.fontSize.base};
|
|
18
|
-
line-height: 1;
|
|
19
|
-
padding: ${TYPOGRAPHY.spacing.half} ${TYPOGRAPHY.spacing.base};
|
|
20
|
-
text-align: center;
|
|
21
|
-
text-decoration: none;
|
|
22
|
-
transition: background-color ${ANIMATION.duration} ${ANIMATION.timing};
|
|
23
|
-
user-select: none;
|
|
24
|
-
vertical-align: middle;
|
|
25
|
-
white-space: nowrap;
|
|
26
|
-
box-shadow: 0 1px 1px 0 ${COLORS.black};
|
|
27
|
-
`;
|
|
28
|
-
|
|
29
|
-
export const Buttons = createGlobalStyle`
|
|
30
|
-
button,
|
|
31
|
-
[type='button'],
|
|
32
|
-
[type='reset'],
|
|
33
|
-
[type='submit'],
|
|
34
|
-
.button {
|
|
35
|
-
${buttonDefault}
|
|
36
|
-
|
|
37
|
-
&:hover,
|
|
38
|
-
&:focus {
|
|
39
|
-
background-color: #bebebe;
|
|
40
|
-
color: ${buttonColor};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&:disabled {
|
|
44
|
-
cursor: not-allowed;
|
|
45
|
-
|
|
46
|
-
background-color: ${COLORS.romanSilver};
|
|
47
|
-
|
|
48
|
-
&:hover {
|
|
49
|
-
background-color: ${COLORS.romanSilver};
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&.red {
|
|
54
|
-
background-color: ${COLORS.red};
|
|
55
|
-
color: ${COLORS.hiliteFontColor};
|
|
56
|
-
|
|
57
|
-
&:hover {
|
|
58
|
-
background-color: #ed3c39;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&:disabled {
|
|
62
|
-
opacity: 0.5;
|
|
63
|
-
cursor: not-allowed;
|
|
64
|
-
background-color: ${COLORS.red};
|
|
65
|
-
|
|
66
|
-
&:hover {
|
|
67
|
-
background-color: ${COLORS.red};
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&.round:disabled {
|
|
72
|
-
opacity: 0.5;
|
|
73
|
-
cursor: not-allowed;
|
|
74
|
-
background-color: ${COLORS.red};
|
|
75
|
-
|
|
76
|
-
&:hover {
|
|
77
|
-
background-color: ${COLORS.red};
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&.blue {
|
|
83
|
-
background-color: ${COLORS.curiousBlue};
|
|
84
|
-
color: ${COLORS.hiliteFontColor};
|
|
85
|
-
|
|
86
|
-
&:hover {
|
|
87
|
-
background-color: #1777c2;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&:disabled {
|
|
91
|
-
opacity: 0.5;
|
|
92
|
-
cursor: not-allowed;
|
|
93
|
-
background-color: #1e88e5;
|
|
94
|
-
|
|
95
|
-
&:hover {
|
|
96
|
-
background-color: #1e88e5;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&.green {
|
|
102
|
-
background-color: ${COLORS.green};
|
|
103
|
-
color: ${COLORS.hiliteFontColor};
|
|
104
|
-
|
|
105
|
-
&:hover {
|
|
106
|
-
background-color: #419a45;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&:disabled {
|
|
110
|
-
opacity: 0.5;
|
|
111
|
-
cursor: not-allowed;
|
|
112
|
-
background-color: #419a45;
|
|
113
|
-
|
|
114
|
-
&:hover {
|
|
115
|
-
background-color: #419a45;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&.cta {
|
|
121
|
-
font-size: ${TYPOGRAPHY.fontSize.subheadLarge};
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&.round {
|
|
125
|
-
border-radius: 50%;
|
|
126
|
-
padding: 10px;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
&.link-style {
|
|
130
|
-
background: none;
|
|
131
|
-
box-shadow: none;
|
|
132
|
-
text-decoration: underline;
|
|
133
|
-
padding: 0;
|
|
134
|
-
transition: color ${ANIMATION.duration} ${ANIMATION.timing}, text-decoration-color ${ANIMATION.duration} ${ANIMATION.timing};
|
|
135
|
-
color: ${COLORS.midFontColor};
|
|
136
|
-
text-decoration-color: currentColor;
|
|
137
|
-
|
|
138
|
-
&:hover {
|
|
139
|
-
text-decoration-color: transparent;
|
|
140
|
-
color: ${COLORS.defaultFontColor};
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.fa-fw {
|
|
145
|
-
width: 1em;
|
|
146
|
-
text-align: center;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
i {
|
|
150
|
-
display: inline-block;
|
|
151
|
-
margin-right: 2px;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
`;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { createGlobalStyle } from 'styled-components';
|
|
2
|
-
|
|
3
|
-
import { COLORS, TYPOGRAPHY, ANIMATION } from '@/legacy/tokens';
|
|
4
|
-
|
|
5
|
-
const formBoxShadow = 'inset 0 0 0 rgba(#000, 0)';
|
|
6
|
-
const formBoxShadowFocus = formBoxShadow;
|
|
7
|
-
|
|
8
|
-
export const Forms = createGlobalStyle`
|
|
9
|
-
fieldset {
|
|
10
|
-
background-color: transparent;
|
|
11
|
-
border: 0;
|
|
12
|
-
margin: 0;
|
|
13
|
-
padding: 0;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
legend {
|
|
17
|
-
font-weight: 600;
|
|
18
|
-
margin-bottom: ${TYPOGRAPHY.spacing.quarter};
|
|
19
|
-
padding: 0;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
label {
|
|
23
|
-
display: block;
|
|
24
|
-
font-size: ${TYPOGRAPHY.fontSize.subheadSmall};
|
|
25
|
-
margin-bottom: ${TYPOGRAPHY.spacing.quarter};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
input,
|
|
29
|
-
select,
|
|
30
|
-
textarea {
|
|
31
|
-
display: block;
|
|
32
|
-
font-family: ${TYPOGRAPHY.fontFamily.base};
|
|
33
|
-
font-size: ${TYPOGRAPHY.fontSize.subheadSmall};
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
textarea {
|
|
40
|
-
resize: vertical;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
[type="checkbox"],
|
|
44
|
-
[type="radio"] {
|
|
45
|
-
display: inline;
|
|
46
|
-
margin-right: ${TYPOGRAPHY.spacing.quarter};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
[type="file"] {
|
|
50
|
-
margin-bottom: ${TYPOGRAPHY.spacing.half};
|
|
51
|
-
width: 100%;
|
|
52
|
-
}
|
|
53
|
-
`;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { UtilityClasses } from './utility-classes';
|
|
3
|
-
import { Forms } from './forms';
|
|
4
|
-
import { Layout } from './layout';
|
|
5
|
-
import { Lists } from './lists';
|
|
6
|
-
import { Media } from './media';
|
|
7
|
-
import { Tables } from './tables';
|
|
8
|
-
import { Typography } from './typography';
|
|
9
|
-
import { MarginPadding } from './margin-padding';
|
|
10
|
-
|
|
11
|
-
export const GlobalStyles = () => (
|
|
12
|
-
<>
|
|
13
|
-
<UtilityClasses />
|
|
14
|
-
<Forms />
|
|
15
|
-
<Layout />
|
|
16
|
-
<Lists />
|
|
17
|
-
<Media />
|
|
18
|
-
<Tables />
|
|
19
|
-
<Typography />
|
|
20
|
-
<MarginPadding />
|
|
21
|
-
</>
|
|
22
|
-
);
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { createGlobalStyle } from 'styled-components';
|
|
2
|
-
|
|
3
|
-
export const Layout = createGlobalStyle`
|
|
4
|
-
html {
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
*,
|
|
9
|
-
*:before,
|
|
10
|
-
*:after {
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
html,
|
|
15
|
-
body {
|
|
16
|
-
height: 100%;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
body {
|
|
20
|
-
margin: 0;
|
|
21
|
-
}
|
|
22
|
-
`;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { createGlobalStyle } from 'styled-components';
|
|
2
|
-
|
|
3
|
-
export const Lists = createGlobalStyle`
|
|
4
|
-
ul,
|
|
5
|
-
ol {
|
|
6
|
-
list-style-type: none;
|
|
7
|
-
margin: 0;
|
|
8
|
-
padding: 0;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
dl {
|
|
12
|
-
margin: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
dt {
|
|
16
|
-
font-weight: 600;
|
|
17
|
-
margin: 0;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
dd {
|
|
21
|
-
margin: 0;
|
|
22
|
-
}
|
|
23
|
-
`;
|