@indico-data/design-system 2.43.1 → 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/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
package/lib/index.d.ts
CHANGED
|
@@ -1,890 +1,15 @@
|
|
|
1
|
-
import { IconDefinition, IconName as IconName$
|
|
1
|
+
import { IconDefinition, IconName as IconName$1 } from '@fortawesome/fontawesome-svg-core';
|
|
2
2
|
import { UseFloatingOptions } from '@floating-ui/react-dom';
|
|
3
3
|
export * from '@floating-ui/react-dom';
|
|
4
|
+
import React$1, { MouseEventHandler, ReactElement } from 'react';
|
|
4
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import * as styled_components from 'styled-components';
|
|
6
|
-
import React$1, { ChangeEvent, MouseEventHandler, ReactElement } from 'react';
|
|
7
|
-
import { PermafrostComponent as PermafrostComponent$1, IconName as IconName$1, IconSizes as IconSizes$1, SemanticColor as SemanticColor$1 } from '@/types';
|
|
8
|
-
import { AriaButtonProps } from '@react-types/button';
|
|
9
|
-
import { AriaRadioProps, RadioGroupProps as RadioGroupProps$1, AriaRadioGroupProps } from '@react-types/radio';
|
|
10
6
|
import { ContainerProps, RowProps, ColProps } from 'react-grid-system';
|
|
11
7
|
import { TableProps as TableProps$1, Direction as Direction$1, Alignment as Alignment$1 } from 'react-data-table-component';
|
|
12
|
-
import { Props as Props$
|
|
8
|
+
import { Props as Props$8 } from 'react-select';
|
|
13
9
|
import { DateRange, OnSelectHandler, Mode, CustomComponents, Matcher, Formatters, MonthChangeEventHandler, DayEventHandler } from 'react-day-picker';
|
|
14
10
|
|
|
15
11
|
declare const registerFontAwesomeIcons: (...icons: IconDefinition[]) => void;
|
|
16
12
|
|
|
17
|
-
declare const GlobalStyles: () => react_jsx_runtime.JSX.Element;
|
|
18
|
-
|
|
19
|
-
declare const animation: {
|
|
20
|
-
readonly duration: "200ms";
|
|
21
|
-
readonly timing: "ease";
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
declare const breakpoints: {
|
|
25
|
-
readonly mediumScreen: "600px";
|
|
26
|
-
readonly largeScreen: "900px";
|
|
27
|
-
readonly maxScreen: "1300px";
|
|
28
|
-
};
|
|
29
|
-
declare const mediaQueries: {
|
|
30
|
-
mediumScreen: string;
|
|
31
|
-
largeScreen: string;
|
|
32
|
-
maxScreen: string;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
declare const typography: {
|
|
36
|
-
fontFamily: {
|
|
37
|
-
base: string;
|
|
38
|
-
heading: string;
|
|
39
|
-
};
|
|
40
|
-
fontSize: {
|
|
41
|
-
readonly caption: "12px";
|
|
42
|
-
readonly base: "14px";
|
|
43
|
-
readonly subheadSmall: "16px";
|
|
44
|
-
readonly subheadLarge: "18px";
|
|
45
|
-
readonly subheadXl: "22px";
|
|
46
|
-
readonly display: "30px";
|
|
47
|
-
};
|
|
48
|
-
lineHeight: {
|
|
49
|
-
readonly base: 1.25;
|
|
50
|
-
readonly heading: 1.2;
|
|
51
|
-
};
|
|
52
|
-
spacing: {
|
|
53
|
-
base: string;
|
|
54
|
-
half: string;
|
|
55
|
-
quarter: string;
|
|
56
|
-
third: string;
|
|
57
|
-
};
|
|
58
|
-
ellipsis: styled_components.RuleSet<object>;
|
|
59
|
-
weight: {
|
|
60
|
-
light: number;
|
|
61
|
-
regular: number;
|
|
62
|
-
semibold: number;
|
|
63
|
-
bold: number;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
declare const padding: {
|
|
68
|
-
readonly sm: "15px";
|
|
69
|
-
readonly md: "20px";
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
declare const spacings: {
|
|
73
|
-
readonly xs: "8px";
|
|
74
|
-
readonly sm: "12px";
|
|
75
|
-
readonly md: "24px";
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
declare const margin: {
|
|
79
|
-
readonly sm: "15px";
|
|
80
|
-
readonly md: "20px";
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
declare function decimalAdjust(type: any, value: any, exp: any): any;
|
|
84
|
-
declare function round10(value: any, exp: any): any;
|
|
85
|
-
declare function clamp(value: any, min: any, max: any): any;
|
|
86
|
-
declare function numberWithCommas$1(x: any): any;
|
|
87
|
-
declare namespace MATH {
|
|
88
|
-
export { decimalAdjust };
|
|
89
|
-
export { round10 };
|
|
90
|
-
export { clamp };
|
|
91
|
-
export { numberWithCommas$1 as numberWithCommas };
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
declare const allColors: {
|
|
95
|
-
readonly akaroa: "#cbc98f";
|
|
96
|
-
readonly alizarin: "#E72326";
|
|
97
|
-
readonly amber: "#f4c401";
|
|
98
|
-
readonly amethyst: "#8e57b3";
|
|
99
|
-
readonly aqua: "#10e4fe";
|
|
100
|
-
readonly astralBlue: "#2f7ca2";
|
|
101
|
-
readonly ateneoBlue: "#0d466a";
|
|
102
|
-
readonly avocado: "#81b12f";
|
|
103
|
-
readonly azure: "#108cf7";
|
|
104
|
-
readonly baliHai: "#8498b6";
|
|
105
|
-
readonly black: "#000";
|
|
106
|
-
readonly blueBayoux: "#4f5e74";
|
|
107
|
-
readonly blueDarknut: "#0070f5";
|
|
108
|
-
readonly blueMagenta: "#542f9d";
|
|
109
|
-
readonly blueRibbon: "#0b35ff";
|
|
110
|
-
readonly blueYonder: "#586fd2";
|
|
111
|
-
readonly bouqet: "#a35c9a";
|
|
112
|
-
readonly brick: "#c62828";
|
|
113
|
-
readonly brightDusk: "#efebf7";
|
|
114
|
-
readonly britishShorthair: "#4b94eb";
|
|
115
|
-
readonly brown: "#785349";
|
|
116
|
-
readonly candyCorn: "#fcef4d";
|
|
117
|
-
readonly carnation: "#ff8adf";
|
|
118
|
-
readonly carrot: "#f29a2d";
|
|
119
|
-
readonly cerise: "#d52a96";
|
|
120
|
-
readonly cerulean: "#008b9e";
|
|
121
|
-
readonly chantilly: "#f7b0eb";
|
|
122
|
-
readonly charcoal: "#474b4b";
|
|
123
|
-
readonly chartreuse: "#34ff01";
|
|
124
|
-
readonly clay: "#283243";
|
|
125
|
-
readonly clementine: "#F16E00";
|
|
126
|
-
readonly cocoaBean: "#5c1200";
|
|
127
|
-
readonly comet: "#5a6982";
|
|
128
|
-
readonly cornflower: "#2060ff";
|
|
129
|
-
readonly crimson: "#e53126";
|
|
130
|
-
readonly curiousBlue: "#178ee0";
|
|
131
|
-
readonly cyan: "#0cf";
|
|
132
|
-
readonly daisyBush: "#431B92";
|
|
133
|
-
readonly darkFontColor: "#0d151d";
|
|
134
|
-
readonly darkGray: "#333";
|
|
135
|
-
readonly darkPurple: "#6f3eae";
|
|
136
|
-
readonly darkRed: "#b30000";
|
|
137
|
-
readonly defaultFontColor: "#bbbfc5";
|
|
138
|
-
readonly dodgerBlue: "#1774ff";
|
|
139
|
-
readonly dusty: "#999999";
|
|
140
|
-
readonly eagleGreen: "#005557";
|
|
141
|
-
readonly ebony: "#101a26";
|
|
142
|
-
readonly eggplant: "#7a0074";
|
|
143
|
-
readonly electricGreen: "#00ff0a";
|
|
144
|
-
readonly emerald: "#09c199";
|
|
145
|
-
readonly endeavor: "#0055B9";
|
|
146
|
-
readonly espresso: "#5a3627";
|
|
147
|
-
readonly fieldPromptError: "#fd9693";
|
|
148
|
-
readonly fieldPromptInfo: "#00bfff";
|
|
149
|
-
readonly flamingo: "#f861b6";
|
|
150
|
-
readonly flirt: "#910870";
|
|
151
|
-
readonly forestGreen: "#1f7f1f";
|
|
152
|
-
readonly frostedOver: "#DCEAFD";
|
|
153
|
-
readonly geraldine: "#fe9486";
|
|
154
|
-
readonly grannysmith: "#92e959";
|
|
155
|
-
readonly green: "#4caf50";
|
|
156
|
-
readonly harlequin: "#20cb00";
|
|
157
|
-
readonly harvestGold: "#e6c079";
|
|
158
|
-
readonly hawkes: "#DCEAFD";
|
|
159
|
-
readonly hemlock: "#626740";
|
|
160
|
-
readonly imperial: "#4b0134";
|
|
161
|
-
readonly iron: "#d9dee0";
|
|
162
|
-
readonly japaneseIndigo: "#264359";
|
|
163
|
-
readonly juniper: "#6d9292";
|
|
164
|
-
readonly khaki: "#bba44b";
|
|
165
|
-
readonly koamaru: "#2f346a";
|
|
166
|
-
readonly korma: "#90370e";
|
|
167
|
-
readonly lavender: "#B086E3";
|
|
168
|
-
readonly lavenderRose: "#fb9fda";
|
|
169
|
-
readonly lightGray: "#eee";
|
|
170
|
-
readonly lightPurple: "#b43be4";
|
|
171
|
-
readonly lilac: "#a195d4";
|
|
172
|
-
readonly lincolnGreen: "#254600";
|
|
173
|
-
readonly magenta: "#ff15e0";
|
|
174
|
-
readonly malibu: "#68C2FB";
|
|
175
|
-
readonly mantis: "#4fa83d";
|
|
176
|
-
readonly maroon: "#ad3349";
|
|
177
|
-
readonly mauve: "#e06cfb";
|
|
178
|
-
readonly mediumGray: "#999";
|
|
179
|
-
readonly midFontColor: "#8593b3";
|
|
180
|
-
readonly mint: "#3ac999";
|
|
181
|
-
readonly mirage: "#182432";
|
|
182
|
-
readonly mulberry: "#5c0536";
|
|
183
|
-
readonly olive: "#807300";
|
|
184
|
-
readonly orange: "#ff7200";
|
|
185
|
-
readonly orchid: "#ab00ff";
|
|
186
|
-
readonly oxfordBlue: "#384558";
|
|
187
|
-
readonly pacific: "#00b5b6";
|
|
188
|
-
readonly palm: "#1aa511";
|
|
189
|
-
readonly persian: "#1717cf";
|
|
190
|
-
readonly persianLight: "#0327ce";
|
|
191
|
-
readonly pine: "#017074";
|
|
192
|
-
readonly pink: "#f74f8a";
|
|
193
|
-
readonly pistachio: "#aac609";
|
|
194
|
-
readonly raspberry: "#990030";
|
|
195
|
-
readonly red: "#f95359";
|
|
196
|
-
readonly robinsEggBlue: "#00bcd4";
|
|
197
|
-
readonly romanSilver: "#7d888d";
|
|
198
|
-
readonly sagatPurple: "#6833d0";
|
|
199
|
-
readonly salem: "#03832e";
|
|
200
|
-
readonly sapGreen: "#5f7e20";
|
|
201
|
-
readonly seaGreen: "#0b8a51";
|
|
202
|
-
readonly seance: "#7f1f82";
|
|
203
|
-
readonly shiraz: "#c61021";
|
|
204
|
-
readonly silverChalice: "#aaaaaa";
|
|
205
|
-
readonly sinopia: "#D14200";
|
|
206
|
-
readonly slaaneshGrey: "#dbd5e6";
|
|
207
|
-
readonly tangerine: "#ff9900";
|
|
208
|
-
readonly teal: "#008285";
|
|
209
|
-
readonly toast: "#997862";
|
|
210
|
-
readonly trueBlue: "#066CC6";
|
|
211
|
-
readonly tundora: "#444444";
|
|
212
|
-
readonly turquoise: "#00b5b6";
|
|
213
|
-
readonly vermilion: "#b95555";
|
|
214
|
-
readonly viking: "#59cfe0";
|
|
215
|
-
readonly violet: "#3e4eb8";
|
|
216
|
-
readonly violetBlue: "#8060d2";
|
|
217
|
-
readonly walnut: "#783f00";
|
|
218
|
-
readonly white: "#fff";
|
|
219
|
-
readonly windsorTan: "#b35c00";
|
|
220
|
-
readonly yellow: "#ffca28";
|
|
221
|
-
readonly zucchini: "#016422";
|
|
222
|
-
readonly hiliteFontColor: "#fff";
|
|
223
|
-
readonly lightFontColor: "#eee";
|
|
224
|
-
readonly borderColor: "#eee";
|
|
225
|
-
readonly actionColor: "#8593b3";
|
|
226
|
-
readonly backgroundColor: "#182432";
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
type Props$p = PermafrostComponent$1 & {
|
|
230
|
-
content: React$1.ReactNode;
|
|
231
|
-
header?: React$1.ReactNode | string;
|
|
232
|
-
open?: boolean;
|
|
233
|
-
};
|
|
234
|
-
declare const Accordion: (props: Props$p) => react_jsx_runtime.JSX.Element;
|
|
235
|
-
|
|
236
|
-
type Props$o = PermafrostComponent$1 & {
|
|
237
|
-
style?: object;
|
|
238
|
-
children: React$1.ReactNode;
|
|
239
|
-
};
|
|
240
|
-
declare const Section: (props: Props$o) => react_jsx_runtime.JSX.Element;
|
|
241
|
-
|
|
242
|
-
type Props$n = PermafrostComponent$1 & {
|
|
243
|
-
title?: string;
|
|
244
|
-
style?: object;
|
|
245
|
-
children: React$1.ReactNode;
|
|
246
|
-
};
|
|
247
|
-
declare const SectionBlock: (props: Props$n) => react_jsx_runtime.JSX.Element;
|
|
248
|
-
|
|
249
|
-
type SectionBodyProps = PermafrostComponent$1 & {
|
|
250
|
-
style?: object;
|
|
251
|
-
children: React$1.ReactNode;
|
|
252
|
-
};
|
|
253
|
-
declare const SectionBody: (props: SectionBodyProps) => react_jsx_runtime.JSX.Element;
|
|
254
|
-
|
|
255
|
-
type Props$m = PermafrostComponent$1 & {
|
|
256
|
-
style?: object;
|
|
257
|
-
children?: React$1.ReactNode;
|
|
258
|
-
};
|
|
259
|
-
declare const SectionHeader: (props: Props$m) => react_jsx_runtime.JSX.Element;
|
|
260
|
-
|
|
261
|
-
declare const SectionTable: (props: any) => react_jsx_runtime.JSX.Element;
|
|
262
|
-
|
|
263
|
-
type ButtonVariant = 'primary' | 'cta' | 'normal' | 'link-style' | 'no-style' | 'outline';
|
|
264
|
-
type ButtonProps$1 = PermafrostComponent$1 & {
|
|
265
|
-
'aria-label'?: string;
|
|
266
|
-
'aria-pressed'?: boolean;
|
|
267
|
-
'aria-selected'?: boolean;
|
|
268
|
-
busy?: boolean;
|
|
269
|
-
children: React$1.ReactNode | React$1.ReactNode[];
|
|
270
|
-
disabled?: boolean;
|
|
271
|
-
onClick: (...args: any[]) => void;
|
|
272
|
-
onFocus?: () => void;
|
|
273
|
-
role?: string;
|
|
274
|
-
style?: React$1.CSSProperties;
|
|
275
|
-
tabindex?: 0 | -1;
|
|
276
|
-
type?: 'submit' | 'button' | 'reset';
|
|
277
|
-
variant?: ButtonVariant;
|
|
278
|
-
onMouseEnter?: () => void;
|
|
279
|
-
onMouseLeave?: () => void;
|
|
280
|
-
};
|
|
281
|
-
declare function Button$1(props: ButtonProps$1): React$1.ReactElement;
|
|
282
|
-
|
|
283
|
-
type IconButtonVariant = 'default' | 'primary' | 'destructive' | 'outline';
|
|
284
|
-
type ButtonSize = 'normal' | 'large';
|
|
285
|
-
|
|
286
|
-
type Props$l = PermafrostComponent$1 & {
|
|
287
|
-
/**
|
|
288
|
-
* Adjusts vertical alignment of the text label, in relation to the icon
|
|
289
|
-
*/
|
|
290
|
-
adjustAlignment?: number;
|
|
291
|
-
busy?: boolean;
|
|
292
|
-
iconName: IconName$1;
|
|
293
|
-
iconSide?: 'start' | 'end';
|
|
294
|
-
isDisabled?: boolean;
|
|
295
|
-
/**
|
|
296
|
-
* If element will be an `<a>`, the href URL
|
|
297
|
-
*/
|
|
298
|
-
isLink?: string;
|
|
299
|
-
label?: string;
|
|
300
|
-
size?: ButtonSize;
|
|
301
|
-
style?: React$1.CSSProperties;
|
|
302
|
-
variant?: IconButtonVariant;
|
|
303
|
-
} & AriaButtonProps;
|
|
304
|
-
/**
|
|
305
|
-
* General utility “button with an icon” component. May also be used for links that _look_
|
|
306
|
-
* like buttons, via the `isLink` property.
|
|
307
|
-
*
|
|
308
|
-
* The button handler must be passed in via the `onPress` property (replaces `onClick`).
|
|
309
|
-
*
|
|
310
|
-
* @see {@link https://react-spectrum.adobe.com/blog/building-a-button-part-1.html}
|
|
311
|
-
*/
|
|
312
|
-
declare function IconButton(props: Props$l): react_jsx_runtime.JSX.Element;
|
|
313
|
-
|
|
314
|
-
type Props$k = PermafrostComponent$1 & {
|
|
315
|
-
defaultValue?: string;
|
|
316
|
-
disabled?: boolean;
|
|
317
|
-
horizontal?: boolean;
|
|
318
|
-
initialText?: string;
|
|
319
|
-
label?: string;
|
|
320
|
-
onChange(e: React$1.ChangeEvent<HTMLSelectElement>): void;
|
|
321
|
-
options: {
|
|
322
|
-
name: string;
|
|
323
|
-
value: string | number;
|
|
324
|
-
}[];
|
|
325
|
-
style?: object;
|
|
326
|
-
value?: string | number;
|
|
327
|
-
validationErrors?: string[];
|
|
328
|
-
};
|
|
329
|
-
declare const BorderSelect: (props: Props$k) => react_jsx_runtime.JSX.Element;
|
|
330
|
-
|
|
331
|
-
type ComboboxProps = {
|
|
332
|
-
'aria-label'?: string;
|
|
333
|
-
'aria-labelledby'?: string;
|
|
334
|
-
className?: string;
|
|
335
|
-
closeMenuOnSelect?: boolean;
|
|
336
|
-
/**
|
|
337
|
-
* Function to generate a custom React component for every available list `Option`
|
|
338
|
-
* @see {@link https://react-select.com/props#option}
|
|
339
|
-
*/
|
|
340
|
-
customOption?: (props: any) => JSX.Element;
|
|
341
|
-
/**
|
|
342
|
-
* Customize the text to appear in selected items.
|
|
343
|
-
*
|
|
344
|
-
* @example (option) => `${option.value}`
|
|
345
|
-
*/
|
|
346
|
-
customOptionLabel?(option: any): string;
|
|
347
|
-
/**
|
|
348
|
-
* Customize the value for the Combobox to use. Defaults to `value`
|
|
349
|
-
*
|
|
350
|
-
* @example (option) => `${option.id}`
|
|
351
|
-
*/
|
|
352
|
-
customOptionValue?(option: any): string;
|
|
353
|
-
defaultValue?: any[];
|
|
354
|
-
disabled?: boolean;
|
|
355
|
-
loading?: boolean;
|
|
356
|
-
menuIsOpen?: boolean;
|
|
357
|
-
/**
|
|
358
|
-
* Custom text to show if there are no more items available to select
|
|
359
|
-
*/
|
|
360
|
-
noOptionsMessage?: string;
|
|
361
|
-
/**
|
|
362
|
-
* Combobox defaults to expect { label: string; value: string; } at minimum - use `customOptionLabel` and `customOptionValue` props to change
|
|
363
|
-
*/
|
|
364
|
-
options: ComboboxOption[];
|
|
365
|
-
/**
|
|
366
|
-
* Input placeholder text
|
|
367
|
-
*/
|
|
368
|
-
placeholder?: string;
|
|
369
|
-
};
|
|
370
|
-
type ComboboxOption = {
|
|
371
|
-
label?: string;
|
|
372
|
-
[key: string]: any;
|
|
373
|
-
};
|
|
374
|
-
type ComboboxSize = 'small' | 'medium';
|
|
375
|
-
type ComboboxVariant = 'default' | 'light';
|
|
376
|
-
|
|
377
|
-
type Props$j = PermafrostComponent$1 & {
|
|
378
|
-
disabled?: boolean;
|
|
379
|
-
initialText?: string;
|
|
380
|
-
options: {
|
|
381
|
-
name: string;
|
|
382
|
-
value: string | number;
|
|
383
|
-
}[];
|
|
384
|
-
size?: ComboboxSize;
|
|
385
|
-
style?: object;
|
|
386
|
-
value?: string | number;
|
|
387
|
-
variant?: ComboboxVariant;
|
|
388
|
-
onChange(e: React$1.ChangeEvent<HTMLSelectElement>): void;
|
|
389
|
-
onClick?(e: React$1.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
390
|
-
};
|
|
391
|
-
declare const Select$1: (props: Props$j) => react_jsx_runtime.JSX.Element;
|
|
392
|
-
|
|
393
|
-
/**
|
|
394
|
-
* Multiselect combobox component. If selections are not bound to outside state
|
|
395
|
-
* via the `value` prop, you will need to import and use the `useCombobox` hook
|
|
396
|
-
* in order to clear its selected value .
|
|
397
|
-
*
|
|
398
|
-
* @see [useCombobox]{@link import('useCombobox').useCombobox}
|
|
399
|
-
*/
|
|
400
|
-
declare const MultiCombobox: React$1.ForwardRefExoticComponent<PermafrostComponent$1 & ComboboxProps & {
|
|
401
|
-
/**
|
|
402
|
-
* MultiValue is a selected option in the input area
|
|
403
|
-
*/
|
|
404
|
-
multiValueProps?: {
|
|
405
|
-
"data-cy": string;
|
|
406
|
-
};
|
|
407
|
-
optionProps?: {
|
|
408
|
-
"data-cy": string;
|
|
409
|
-
};
|
|
410
|
-
values?: ComboboxOption[];
|
|
411
|
-
onChange: (selectedOption: ComboboxOption[]) => void;
|
|
412
|
-
} & React$1.RefAttributes<unknown>>;
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* Combobox component to select a single option. If selections are not bound to
|
|
416
|
-
* outside state via the `value` prop, you will need to import and use the
|
|
417
|
-
* `useCombobox` hook in order to clear its selected value.
|
|
418
|
-
*
|
|
419
|
-
* @see [useCombobox]{@link import('useCombobox').useCombobox}
|
|
420
|
-
*/
|
|
421
|
-
declare const SingleCombobox: React$1.ForwardRefExoticComponent<PermafrostComponent$1 & ComboboxProps & {
|
|
422
|
-
dropdownIndicatorProps?: {
|
|
423
|
-
"data-cy": string;
|
|
424
|
-
};
|
|
425
|
-
optionProps?: {
|
|
426
|
-
"data-cy": string;
|
|
427
|
-
};
|
|
428
|
-
value?: ComboboxOption;
|
|
429
|
-
onChange: (selectedOption: ComboboxOption) => void;
|
|
430
|
-
} & React$1.RefAttributes<unknown>>;
|
|
431
|
-
|
|
432
|
-
type Props$i = PermafrostComponent$1 & {
|
|
433
|
-
children: React$1.ReactNode | string;
|
|
434
|
-
minLength?: number;
|
|
435
|
-
onUpdate?(newValue: string): void;
|
|
436
|
-
};
|
|
437
|
-
/**
|
|
438
|
-
* Wrapper component which enables text editing in place directly on a child component,
|
|
439
|
-
* element, or plain text.
|
|
440
|
-
*/
|
|
441
|
-
declare function EditableInput(props: Props$i): react_jsx_runtime.JSX.Element;
|
|
442
|
-
|
|
443
|
-
type Props$h = PermafrostComponent$1 & {
|
|
444
|
-
autoFocus?: boolean;
|
|
445
|
-
decrement?(): void;
|
|
446
|
-
disabled?: boolean;
|
|
447
|
-
hiddenLabel?: boolean;
|
|
448
|
-
increment?(): void;
|
|
449
|
-
label: string;
|
|
450
|
-
max?: number;
|
|
451
|
-
min?: number;
|
|
452
|
-
onChange(value: number | ''): void;
|
|
453
|
-
placeholder?: string;
|
|
454
|
-
required?: boolean;
|
|
455
|
-
step?: string;
|
|
456
|
-
tabIndex?: number;
|
|
457
|
-
value: number | '';
|
|
458
|
-
};
|
|
459
|
-
/**
|
|
460
|
-
* Basic numeric input field. A label is required, but may be visually hidden
|
|
461
|
-
* using the `hiddenLabel` property.
|
|
462
|
-
*/
|
|
463
|
-
declare function NumberInput(props: Props$h): React$1.ReactElement;
|
|
464
|
-
|
|
465
|
-
type Props$g = PermafrostComponent$1 & {
|
|
466
|
-
inputBorder?: boolean;
|
|
467
|
-
showClearInputIcon?: boolean;
|
|
468
|
-
showSearchIcon?: boolean;
|
|
469
|
-
inputProps?: {
|
|
470
|
-
[key: string]: string;
|
|
471
|
-
};
|
|
472
|
-
onChange?: (e: React$1.ChangeEvent<HTMLInputElement>) => void;
|
|
473
|
-
onClear?(): void;
|
|
474
|
-
onKeyUp?: (e: React$1.KeyboardEvent<HTMLInputElement>) => void;
|
|
475
|
-
placeholder?: string;
|
|
476
|
-
value?: string;
|
|
477
|
-
};
|
|
478
|
-
declare const SearchInput: (props: Props$g) => react_jsx_runtime.JSX.Element;
|
|
479
|
-
|
|
480
|
-
type Props$f = PermafrostComponent$1 & {
|
|
481
|
-
autoComplete?: 'email' | 'current-password' | 'new-password' | string;
|
|
482
|
-
autoFocus?: boolean;
|
|
483
|
-
defaultValue?: string;
|
|
484
|
-
disabled?: boolean;
|
|
485
|
-
displayErrors?: boolean;
|
|
486
|
-
inputProps?: any;
|
|
487
|
-
label?: string;
|
|
488
|
-
maxLength?: number;
|
|
489
|
-
name?: string;
|
|
490
|
-
onBlur?(): void;
|
|
491
|
-
onChange?(event: ChangeEvent<HTMLInputElement>): void;
|
|
492
|
-
onFocus?(): void;
|
|
493
|
-
placeholder?: string;
|
|
494
|
-
promptProps?: any;
|
|
495
|
-
required?: boolean;
|
|
496
|
-
type?: 'text' | 'email' | 'password' | string;
|
|
497
|
-
validationErrors?: string[];
|
|
498
|
-
value?: string;
|
|
499
|
-
readOnly?: boolean;
|
|
500
|
-
};
|
|
501
|
-
declare function TextInput(props: Props$f): React$1.ReactElement;
|
|
502
|
-
|
|
503
|
-
type Props$e = {
|
|
504
|
-
['aria-label']: string;
|
|
505
|
-
children?: React$1.ReactNode;
|
|
506
|
-
hideFocusRing: boolean;
|
|
507
|
-
color: string;
|
|
508
|
-
labelColor: string;
|
|
509
|
-
hoverAndSelectedColor: string;
|
|
510
|
-
focusRingColor: string;
|
|
511
|
-
value: string;
|
|
512
|
-
} & RadioGroupProps$1 & PermafrostComponent$1;
|
|
513
|
-
/**
|
|
514
|
-
* Renders a group of radio buttons.
|
|
515
|
-
*
|
|
516
|
-
* A group label must be included: either pass a string or markup into the
|
|
517
|
-
* `label` prop, or include an `aria-label` or `aria-labelledby` attribute.
|
|
518
|
-
*/
|
|
519
|
-
declare function RadioGroup$1({ children, ...props }: Props$e): react_jsx_runtime.JSX.Element;
|
|
520
|
-
/**
|
|
521
|
-
* A single radio button and its label.
|
|
522
|
-
*/
|
|
523
|
-
declare function Radio$2({ children, ...props }: AriaRadioProps): react_jsx_runtime.JSX.Element;
|
|
524
|
-
|
|
525
|
-
type RadioGroupProps = PermafrostComponent$1 & {
|
|
526
|
-
value?: string;
|
|
527
|
-
onChange?: (value: string) => void;
|
|
528
|
-
children: React$1.ReactNode;
|
|
529
|
-
className?: string;
|
|
530
|
-
} & AriaRadioGroupProps;
|
|
531
|
-
/**
|
|
532
|
-
* Renders a group of radio buttons with no styling. This component is not
|
|
533
|
-
* designed to be user-facing, and should only be used to provide functionality.
|
|
534
|
-
*
|
|
535
|
-
* A group label must be included: either pass a string or markup into the
|
|
536
|
-
* `label` prop, or include an `aria-label` or `aria-labelledby` attribute.
|
|
537
|
-
*/
|
|
538
|
-
declare function RadioGroup(props: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
539
|
-
/**
|
|
540
|
-
* A single radio button and its label; no styling is applied, and the native
|
|
541
|
-
* radio button is visually hidden.
|
|
542
|
-
*/
|
|
543
|
-
declare function Radio$1(props: AriaRadioProps & {
|
|
544
|
-
className?: string;
|
|
545
|
-
isVisuallySelected?: (selectedValue: string) => void;
|
|
546
|
-
}): react_jsx_runtime.JSX.Element;
|
|
547
|
-
|
|
548
|
-
type Props$d = PermafrostComponent$1 & {
|
|
549
|
-
ariaLabel?: string;
|
|
550
|
-
size?: IconSizes$1;
|
|
551
|
-
style?: React$1.CSSProperties;
|
|
552
|
-
fill?: string;
|
|
553
|
-
};
|
|
554
|
-
declare function CircleSpinner(props: Props$d): React$1.ReactElement;
|
|
555
|
-
|
|
556
|
-
type Props$c = PermafrostComponent$1 & {
|
|
557
|
-
width?: string;
|
|
558
|
-
};
|
|
559
|
-
declare function BarSpinner(props: Props$c): React$1.ReactElement;
|
|
560
|
-
|
|
561
|
-
type Props$b = PermafrostComponent$1 & {
|
|
562
|
-
color?: string;
|
|
563
|
-
overallSize?: string | number;
|
|
564
|
-
rippleSize?: string | number;
|
|
565
|
-
showRandomMessage?: boolean;
|
|
566
|
-
};
|
|
567
|
-
declare function CirclePulse(props: Props$b): React$1.ReactElement;
|
|
568
|
-
|
|
569
|
-
declare const RandomLoadingMessage: () => react_jsx_runtime.JSX.Element;
|
|
570
|
-
|
|
571
|
-
type Props$a = PermafrostComponent$1 & {
|
|
572
|
-
backgroundColor?: string;
|
|
573
|
-
foregroundColor?: string;
|
|
574
|
-
ringRadius?: number;
|
|
575
|
-
strokeWidth?: number;
|
|
576
|
-
/** an integer between 0 and 1 */
|
|
577
|
-
value: number;
|
|
578
|
-
valueFontSize?: number;
|
|
579
|
-
};
|
|
580
|
-
declare function PercentageRing(props: Props$a): react_jsx_runtime.JSX.Element;
|
|
581
|
-
|
|
582
|
-
declare const LoadingList: () => react_jsx_runtime.JSX.Element;
|
|
583
|
-
|
|
584
|
-
type Props$9 = PermafrostComponent$1 & {
|
|
585
|
-
accordion?: boolean;
|
|
586
|
-
accordionDefaultOpen?: boolean;
|
|
587
|
-
emptyListMessage?: string;
|
|
588
|
-
error?: any;
|
|
589
|
-
errorMessage?: any;
|
|
590
|
-
headerComponent?: React$1.ReactNode;
|
|
591
|
-
listHeader: React$1.ReactNode;
|
|
592
|
-
listItems: React$1.ReactNode[];
|
|
593
|
-
loading?: any;
|
|
594
|
-
pagination?: {
|
|
595
|
-
currentPage: number;
|
|
596
|
-
limit: number;
|
|
597
|
-
pageInfo: {
|
|
598
|
-
startCursor: number;
|
|
599
|
-
endCursor: number;
|
|
600
|
-
hasNextPage: boolean;
|
|
601
|
-
aggregateCount: number;
|
|
602
|
-
};
|
|
603
|
-
getNextPage: (before: number) => void;
|
|
604
|
-
getPage: (after: number, pageOffset: number) => void;
|
|
605
|
-
getPreviousPage: (after: number) => void;
|
|
606
|
-
};
|
|
607
|
-
sortBy?: {
|
|
608
|
-
descending: boolean;
|
|
609
|
-
items: {
|
|
610
|
-
name: string;
|
|
611
|
-
value: string;
|
|
612
|
-
}[];
|
|
613
|
-
value: string;
|
|
614
|
-
onSort: (value: string) => void;
|
|
615
|
-
updateDescending: () => void;
|
|
616
|
-
};
|
|
617
|
-
subTitle?: string | React$1.ReactNode;
|
|
618
|
-
title: string;
|
|
619
|
-
totalCount?: number;
|
|
620
|
-
};
|
|
621
|
-
declare const ListTable: (props: Props$9) => react_jsx_runtime.JSX.Element;
|
|
622
|
-
|
|
623
|
-
type Props$8 = PermafrostComponent$1 & {
|
|
624
|
-
currentPage: number;
|
|
625
|
-
limit: number;
|
|
626
|
-
pageInfo: {
|
|
627
|
-
aggregateCount: number;
|
|
628
|
-
endCursor: number;
|
|
629
|
-
hasNextPage: boolean;
|
|
630
|
-
startCursor: number;
|
|
631
|
-
};
|
|
632
|
-
quantity: number;
|
|
633
|
-
skip?: number;
|
|
634
|
-
getPage(startCursor: number, endCursor: number): void;
|
|
635
|
-
getNextPage(cursor: number): void;
|
|
636
|
-
getPreviousPage(cursor: number): void;
|
|
637
|
-
};
|
|
638
|
-
declare function Pagination(props: Props$8): react_jsx_runtime.JSX.Element;
|
|
639
|
-
|
|
640
|
-
type Props$7 = PermafrostComponent$1 & {
|
|
641
|
-
actionLink?: string;
|
|
642
|
-
actionText?: string;
|
|
643
|
-
buttonAction?(): void;
|
|
644
|
-
buttonText?: string;
|
|
645
|
-
message?: string | React$1.ReactNode;
|
|
646
|
-
messageProps?: {
|
|
647
|
-
'data-cy': string;
|
|
648
|
-
};
|
|
649
|
-
};
|
|
650
|
-
declare function Shrug(props: Props$7): React$1.ReactElement;
|
|
651
|
-
|
|
652
|
-
type ModalBaseProps = PermafrostComponent$1 & {
|
|
653
|
-
children: React$1.ReactNode | React$1.ReactNode[];
|
|
654
|
-
clickToDismiss?(): void;
|
|
655
|
-
describedBy?: string;
|
|
656
|
-
node?: string;
|
|
657
|
-
open: boolean;
|
|
658
|
-
preventEscDismiss?: boolean;
|
|
659
|
-
preventReturnFocus?: boolean;
|
|
660
|
-
maxWidth?: string;
|
|
661
|
-
} & ({
|
|
662
|
-
labelElement: string;
|
|
663
|
-
} | {
|
|
664
|
-
labelText: string;
|
|
665
|
-
});
|
|
666
|
-
/**
|
|
667
|
-
* Base modal component, powered by [react-modal](http://reactcommunity.org/react-modal/#usage)
|
|
668
|
-
*
|
|
669
|
-
* (Also see `ModalAdapter` in the styles file)
|
|
670
|
-
*
|
|
671
|
-
* Accessible element label must be included either as a string passed to `labelText`, or
|
|
672
|
-
* the id of one of the children passed to `labelElement`. If a description is available,
|
|
673
|
-
* pass that element’s id to the `describedBy` prop.
|
|
674
|
-
*/
|
|
675
|
-
declare function ModalBase(props: ModalBaseProps): react_jsx_runtime.JSX.Element;
|
|
676
|
-
|
|
677
|
-
type Props$6 = PermafrostComponent$1 & Pick<ModalBaseProps, 'open'> & {
|
|
678
|
-
describedBy?: string;
|
|
679
|
-
clickOutsideHandler(e?: React$1.SyntheticEvent): void;
|
|
680
|
-
confirmText?: string;
|
|
681
|
-
message?: string | React$1.ReactNode;
|
|
682
|
-
modalNode?: string;
|
|
683
|
-
processing?: boolean;
|
|
684
|
-
rejectText?: string;
|
|
685
|
-
responseHandler(response: boolean, event: React$1.SyntheticEvent): void;
|
|
686
|
-
title?: string | React$1.ReactNode;
|
|
687
|
-
width?: number;
|
|
688
|
-
};
|
|
689
|
-
declare function ConfirmModal(props: Props$6): react_jsx_runtime.JSX.Element;
|
|
690
|
-
|
|
691
|
-
type Props$5 = {
|
|
692
|
-
children: React$1.ReactNode | React$1.ReactNode[];
|
|
693
|
-
className?: string;
|
|
694
|
-
isLoading?: boolean;
|
|
695
|
-
style?: React$1.CSSProperties;
|
|
696
|
-
};
|
|
697
|
-
/**
|
|
698
|
-
* A functional container for content that is yet to load or will change; displays a loading indicator and announces
|
|
699
|
-
* to Assistive Technology as needed.
|
|
700
|
-
*
|
|
701
|
-
* todo: this is an extremely simple version of this component; as I get more familiar with LoadingIndicator use cases, this will be refactored. - jm 9/1/2020
|
|
702
|
-
*/
|
|
703
|
-
declare function LoadingAwareContainer(props: Props$5): React$1.ReactElement;
|
|
704
|
-
|
|
705
|
-
interface TextTruncateProps {
|
|
706
|
-
string: string;
|
|
707
|
-
maxChars: number;
|
|
708
|
-
children?: any;
|
|
709
|
-
noTitle?: boolean;
|
|
710
|
-
}
|
|
711
|
-
declare function TextTruncate({ string, maxChars, children, noTitle }: TextTruncateProps): react_jsx_runtime.JSX.Element;
|
|
712
|
-
|
|
713
|
-
type Props$4 = {
|
|
714
|
-
disabled: boolean;
|
|
715
|
-
onChange: any;
|
|
716
|
-
value: boolean;
|
|
717
|
-
['aria-label']?: string;
|
|
718
|
-
iconSize?: IconSizes$1;
|
|
719
|
-
checkedIconName?: IconName$1;
|
|
720
|
-
notCheckedIconName?: IconName$1;
|
|
721
|
-
} & PermafrostComponent$1;
|
|
722
|
-
declare const Toggle$1: (props: Props$4) => react_jsx_runtime.JSX.Element;
|
|
723
|
-
|
|
724
|
-
type Props$3 = PermafrostComponent$1 & {
|
|
725
|
-
questionMark?: boolean;
|
|
726
|
-
for?: string | null;
|
|
727
|
-
place?: string;
|
|
728
|
-
clickToShow?: boolean;
|
|
729
|
-
delayShow?: number;
|
|
730
|
-
delayHide?: number;
|
|
731
|
-
questionMarkClassName?: string;
|
|
732
|
-
children: React$1.ReactNode;
|
|
733
|
-
block?: boolean;
|
|
734
|
-
};
|
|
735
|
-
declare const Tooltip: (props: Props$3) => react_jsx_runtime.JSX.Element;
|
|
736
|
-
|
|
737
|
-
declare const mix: (color_1: string, color_2: string, weight: number) => string;
|
|
738
|
-
declare const shade: (color: string, percentage: number) => string;
|
|
739
|
-
declare const tint: (color: string, percentage: number) => string;
|
|
740
|
-
/**
|
|
741
|
-
* Converts hex color values to rgb or rgba values if a opacity is supplied
|
|
742
|
-
* @param hex
|
|
743
|
-
* @returns {*}
|
|
744
|
-
*/
|
|
745
|
-
declare const hexToRgb: (hex: string, opacity?: number) => string | undefined;
|
|
746
|
-
/**
|
|
747
|
-
* Takes a 3- or 6-character hex color value, and returns an object containing
|
|
748
|
-
* its equivalent HSL values.
|
|
749
|
-
*
|
|
750
|
-
* @see {@link https://css-tricks.com/converting-color-spaces-in-javascript/}
|
|
751
|
-
* @see {@link https://gist.github.com/mjackson/5311256}
|
|
752
|
-
*/
|
|
753
|
-
declare function hexToHsl(hexColor: string): {
|
|
754
|
-
hue: number;
|
|
755
|
-
saturation: number;
|
|
756
|
-
lightness: number;
|
|
757
|
-
};
|
|
758
|
-
|
|
759
|
-
declare const color_hexToHsl: typeof hexToHsl;
|
|
760
|
-
declare const color_hexToRgb: typeof hexToRgb;
|
|
761
|
-
declare const color_mix: typeof mix;
|
|
762
|
-
declare const color_shade: typeof shade;
|
|
763
|
-
declare const color_tint: typeof tint;
|
|
764
|
-
declare namespace color {
|
|
765
|
-
export { color_hexToHsl as hexToHsl, color_hexToRgb as hexToRgb, color_mix as mix, color_shade as shade, color_tint as tint };
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
declare const camelCaseToUpperUnderscore: (string: string) => string;
|
|
769
|
-
declare const camelCaseToSpaceUpper: (string: string) => string;
|
|
770
|
-
declare const underscoreToCapitalize: (string: string) => string;
|
|
771
|
-
declare const snakeCaseToCamelCase: (string: string) => string;
|
|
772
|
-
declare function capitalize(string: string): string;
|
|
773
|
-
declare function capitalizeFirstOnly(string: string): string;
|
|
774
|
-
/**
|
|
775
|
-
* Generates a random string of English alphabet characters. Defaults to a length of 8.
|
|
776
|
-
*/
|
|
777
|
-
declare function createRandomString(length?: number): string;
|
|
778
|
-
declare const maxLengthWithEllipse: (string: string, maxLength: number) => string;
|
|
779
|
-
declare const maxLengthWithMiddleEllipsis: (string: string, maxLength: number) => string;
|
|
780
|
-
|
|
781
|
-
declare const string_camelCaseToSpaceUpper: typeof camelCaseToSpaceUpper;
|
|
782
|
-
declare const string_camelCaseToUpperUnderscore: typeof camelCaseToUpperUnderscore;
|
|
783
|
-
declare const string_capitalize: typeof capitalize;
|
|
784
|
-
declare const string_capitalizeFirstOnly: typeof capitalizeFirstOnly;
|
|
785
|
-
declare const string_createRandomString: typeof createRandomString;
|
|
786
|
-
declare const string_maxLengthWithEllipse: typeof maxLengthWithEllipse;
|
|
787
|
-
declare const string_maxLengthWithMiddleEllipsis: typeof maxLengthWithMiddleEllipsis;
|
|
788
|
-
declare const string_snakeCaseToCamelCase: typeof snakeCaseToCamelCase;
|
|
789
|
-
declare const string_underscoreToCapitalize: typeof underscoreToCapitalize;
|
|
790
|
-
declare namespace string {
|
|
791
|
-
export { string_camelCaseToSpaceUpper as camelCaseToSpaceUpper, string_camelCaseToUpperUnderscore as camelCaseToUpperUnderscore, string_capitalize as capitalize, string_capitalizeFirstOnly as capitalizeFirstOnly, string_createRandomString as createRandomString, string_maxLengthWithEllipse as maxLengthWithEllipse, string_maxLengthWithMiddleEllipsis as maxLengthWithMiddleEllipsis, string_snakeCaseToCamelCase as snakeCaseToCamelCase, string_underscoreToCapitalize as underscoreToCapitalize };
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
/**
|
|
795
|
-
* Takes a number and formats it nicely.
|
|
796
|
-
*
|
|
797
|
-
* @example numberWithCommas(12345)
|
|
798
|
-
* // returns 12,345
|
|
799
|
-
*/
|
|
800
|
-
declare function numberWithCommas(value: number): string;
|
|
801
|
-
/**
|
|
802
|
-
* Takes a number and returns it, rounded up to the maximum decimal places specified.
|
|
803
|
-
*
|
|
804
|
-
* @example maxDecimalPlaces(0.1694915254237288, 2)
|
|
805
|
-
* // returns 0.17
|
|
806
|
-
*
|
|
807
|
-
* @example maxDecimalPlaces(0.1694915254237288, 3)
|
|
808
|
-
* // returns 0.169
|
|
809
|
-
*
|
|
810
|
-
* @example maxDecimalPlaces(12.902, 2)
|
|
811
|
-
* // returns 12.9
|
|
812
|
-
*/
|
|
813
|
-
declare function maxDecimalPlaces(value: number, decimalPlaces: number): number;
|
|
814
|
-
declare function formatConfidence(confidence: number): number;
|
|
815
|
-
|
|
816
|
-
declare const number_formatConfidence: typeof formatConfidence;
|
|
817
|
-
declare const number_maxDecimalPlaces: typeof maxDecimalPlaces;
|
|
818
|
-
declare const number_numberWithCommas: typeof numberWithCommas;
|
|
819
|
-
declare namespace number {
|
|
820
|
-
export { number_formatConfidence as formatConfidence, number_maxDecimalPlaces as maxDecimalPlaces, number_numberWithCommas as numberWithCommas };
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
declare const Container: ({ ref: _ref, ...rest }: ContainerProps) => react_jsx_runtime.JSX.Element;
|
|
824
|
-
|
|
825
|
-
declare const Row: ({ ref: _ref, ...rest }: RowProps) => react_jsx_runtime.JSX.Element;
|
|
826
|
-
|
|
827
|
-
declare const Col: ({ ref: _ref, ...rest }: ColProps) => react_jsx_runtime.JSX.Element;
|
|
828
|
-
|
|
829
|
-
type ButtonVariants = 'solid' | 'outline' | 'text';
|
|
830
|
-
type ButtonIconPositions = 'left' | 'right';
|
|
831
|
-
type ButtonSizes = 'sm' | 'md' | 'lg';
|
|
832
|
-
type ButtonTypes = 'button' | 'submit' | 'reset';
|
|
833
|
-
interface ButtonProps {
|
|
834
|
-
className?: string;
|
|
835
|
-
ariaLabel: string;
|
|
836
|
-
children?: React.ReactNode | React.ReactNode[];
|
|
837
|
-
onMouseEnter?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
838
|
-
onMouseExit?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
839
|
-
onKeyDown?: (event: React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
840
|
-
isLoading?: boolean;
|
|
841
|
-
onClick?: (...args: any[]) => void;
|
|
842
|
-
variant?: ButtonVariants;
|
|
843
|
-
iconPosition?: ButtonIconPositions;
|
|
844
|
-
color?: SemanticColor$1;
|
|
845
|
-
size?: ButtonSizes;
|
|
846
|
-
iconName?: IconName$1;
|
|
847
|
-
type?: ButtonTypes;
|
|
848
|
-
href?: string;
|
|
849
|
-
isDisabled?: boolean;
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
853
|
-
|
|
854
|
-
type SelectOption = {
|
|
855
|
-
label: string;
|
|
856
|
-
value: string;
|
|
857
|
-
detail?: string;
|
|
858
|
-
[key: string]: any;
|
|
859
|
-
};
|
|
860
|
-
|
|
861
|
-
type Direction = `${Direction$1}`;
|
|
862
|
-
type Alignment = `${Alignment$1}`;
|
|
863
|
-
type TableProps<T> = Omit<TableProps$1<T>, 'disabled' | 'progressPending' | 'direction' | 'subHeaderAlign'> & {
|
|
864
|
-
isDisabled?: boolean;
|
|
865
|
-
isLoading?: boolean;
|
|
866
|
-
direction?: Direction;
|
|
867
|
-
subHeaderAlign?: Alignment;
|
|
868
|
-
isFullHeight?: boolean;
|
|
869
|
-
};
|
|
870
|
-
|
|
871
|
-
type PillSize = 'sm' | 'md' | 'lg';
|
|
872
|
-
type PillColor = SemanticColor | 'neutral';
|
|
873
|
-
interface PillProps {
|
|
874
|
-
children: React$1.ReactNode | React$1.ReactNode[];
|
|
875
|
-
color?: PillColor;
|
|
876
|
-
size?: PillSize;
|
|
877
|
-
className?: string;
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
type PermafrostComponent = {
|
|
881
|
-
id?: string;
|
|
882
|
-
className?: string;
|
|
883
|
-
'data-cy'?: string;
|
|
884
|
-
'data-testid'?: string;
|
|
885
|
-
};
|
|
886
|
-
type SemanticColor = 'primary' | 'secondary' | 'warning' | 'error' | 'success' | 'info';
|
|
887
|
-
|
|
888
13
|
declare const indicons: {
|
|
889
14
|
'indico-o-white': react_jsx_runtime.JSX.Element;
|
|
890
15
|
account: react_jsx_runtime.JSX.Element;
|
|
@@ -1042,7 +167,7 @@ declare const indicons: {
|
|
|
1042
167
|
|
|
1043
168
|
type IconSizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1044
169
|
type IndiconName = keyof typeof indicons;
|
|
1045
|
-
type IconName = IndiconName | `fa-${IconName$
|
|
170
|
+
type IconName = IndiconName | `fa-${IconName$1}`;
|
|
1046
171
|
type IconProps = PermafrostComponent & {
|
|
1047
172
|
name: IconName;
|
|
1048
173
|
ariaLabel?: string;
|
|
@@ -1051,6 +176,144 @@ type IconProps = PermafrostComponent & {
|
|
|
1051
176
|
onClick?: MouseEventHandler<SVGElement>;
|
|
1052
177
|
};
|
|
1053
178
|
|
|
179
|
+
type SelectOption = {
|
|
180
|
+
label: string;
|
|
181
|
+
value: string;
|
|
182
|
+
detail?: string;
|
|
183
|
+
[key: string]: any;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
type Direction = `${Direction$1}`;
|
|
187
|
+
type Alignment = `${Alignment$1}`;
|
|
188
|
+
type TableProps<T> = Omit<TableProps$1<T>, 'disabled' | 'progressPending' | 'direction' | 'subHeaderAlign'> & {
|
|
189
|
+
isDisabled?: boolean;
|
|
190
|
+
isLoading?: boolean;
|
|
191
|
+
direction?: Direction;
|
|
192
|
+
subHeaderAlign?: Alignment;
|
|
193
|
+
isFullHeight?: boolean;
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
type PillSize = 'sm' | 'md' | 'lg';
|
|
197
|
+
type PillColor = SemanticColor | 'neutral';
|
|
198
|
+
interface PillProps {
|
|
199
|
+
children: React$1.ReactNode | React$1.ReactNode[];
|
|
200
|
+
color?: PillColor;
|
|
201
|
+
size?: PillSize;
|
|
202
|
+
className?: string;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
type PermafrostComponent = {
|
|
206
|
+
id?: string;
|
|
207
|
+
className?: string;
|
|
208
|
+
'data-cy'?: string;
|
|
209
|
+
'data-testid'?: string;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
type SemanticColor = 'primary' | 'secondary' | 'warning' | 'error' | 'success' | 'info';
|
|
213
|
+
|
|
214
|
+
type Props$7 = PermafrostComponent & {
|
|
215
|
+
ariaLabel?: string;
|
|
216
|
+
size?: IconSizes;
|
|
217
|
+
style?: React$1.CSSProperties;
|
|
218
|
+
fill?: string;
|
|
219
|
+
};
|
|
220
|
+
declare function CircleSpinner(props: Props$7): React$1.ReactElement;
|
|
221
|
+
|
|
222
|
+
type Props$6 = PermafrostComponent & {
|
|
223
|
+
width?: string;
|
|
224
|
+
};
|
|
225
|
+
declare function BarSpinner(props: Props$6): React$1.ReactElement;
|
|
226
|
+
|
|
227
|
+
type Props$5 = PermafrostComponent & {
|
|
228
|
+
color?: string;
|
|
229
|
+
overallSize?: string | number;
|
|
230
|
+
rippleSize?: string | number;
|
|
231
|
+
showRandomMessage?: boolean;
|
|
232
|
+
};
|
|
233
|
+
declare function CirclePulse(props: Props$5): React$1.ReactElement;
|
|
234
|
+
|
|
235
|
+
type ModalBaseProps = PermafrostComponent & {
|
|
236
|
+
children: React$1.ReactNode | React$1.ReactNode[];
|
|
237
|
+
clickToDismiss?(): void;
|
|
238
|
+
describedBy?: string;
|
|
239
|
+
node?: string;
|
|
240
|
+
open: boolean;
|
|
241
|
+
preventEscDismiss?: boolean;
|
|
242
|
+
preventReturnFocus?: boolean;
|
|
243
|
+
maxWidth?: string;
|
|
244
|
+
} & ({
|
|
245
|
+
labelElement: string;
|
|
246
|
+
} | {
|
|
247
|
+
labelText: string;
|
|
248
|
+
});
|
|
249
|
+
/**
|
|
250
|
+
* Base modal component, powered by [react-modal](http://reactcommunity.org/react-modal/#usage)
|
|
251
|
+
*
|
|
252
|
+
* (Also see `ModalAdapter` in the styles file)
|
|
253
|
+
*
|
|
254
|
+
* Accessible element label must be included either as a string passed to `labelText`, or
|
|
255
|
+
* the id of one of the children passed to `labelElement`. If a description is available,
|
|
256
|
+
* pass that element’s id to the `describedBy` prop.
|
|
257
|
+
*/
|
|
258
|
+
declare function ModalBase(props: ModalBaseProps): react_jsx_runtime.JSX.Element;
|
|
259
|
+
|
|
260
|
+
type Props$4 = PermafrostComponent & Pick<ModalBaseProps, 'open'> & {
|
|
261
|
+
describedBy?: string;
|
|
262
|
+
clickOutsideHandler(e?: React$1.SyntheticEvent): void;
|
|
263
|
+
confirmText?: string;
|
|
264
|
+
message?: string | React$1.ReactNode;
|
|
265
|
+
modalNode?: string;
|
|
266
|
+
processing?: boolean;
|
|
267
|
+
rejectText?: string;
|
|
268
|
+
responseHandler(response: boolean, event: React$1.SyntheticEvent): void;
|
|
269
|
+
title?: string | React$1.ReactNode;
|
|
270
|
+
width?: number;
|
|
271
|
+
};
|
|
272
|
+
declare function ConfirmModal(props: Props$4): react_jsx_runtime.JSX.Element;
|
|
273
|
+
|
|
274
|
+
type Props$3 = PermafrostComponent & {
|
|
275
|
+
questionMark?: boolean;
|
|
276
|
+
for?: string | null;
|
|
277
|
+
place?: string;
|
|
278
|
+
clickToShow?: boolean;
|
|
279
|
+
delayShow?: number;
|
|
280
|
+
delayHide?: number;
|
|
281
|
+
questionMarkClassName?: string;
|
|
282
|
+
children: React$1.ReactNode;
|
|
283
|
+
block?: boolean;
|
|
284
|
+
};
|
|
285
|
+
declare const Tooltip: (props: Props$3) => react_jsx_runtime.JSX.Element;
|
|
286
|
+
|
|
287
|
+
declare const Container: ({ ref: _ref, ...rest }: ContainerProps) => react_jsx_runtime.JSX.Element;
|
|
288
|
+
|
|
289
|
+
declare const Row: ({ ref: _ref, ...rest }: RowProps) => react_jsx_runtime.JSX.Element;
|
|
290
|
+
|
|
291
|
+
declare const Col: ({ ref: _ref, ...rest }: ColProps) => react_jsx_runtime.JSX.Element;
|
|
292
|
+
|
|
293
|
+
type ButtonVariants = 'solid' | 'outline' | 'link' | 'action' | 'destructive' | 'soft';
|
|
294
|
+
type ButtonSizes = 'xs' | 'sm' | 'md' | 'lg';
|
|
295
|
+
type ButtonTypes = 'button' | 'submit' | 'reset';
|
|
296
|
+
interface ButtonProps {
|
|
297
|
+
className?: string;
|
|
298
|
+
ariaLabel: string;
|
|
299
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
300
|
+
onMouseEnter?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
301
|
+
onMouseExit?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
302
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
303
|
+
isLoading?: boolean;
|
|
304
|
+
onClick?: (...args: any[]) => void;
|
|
305
|
+
variant?: ButtonVariants;
|
|
306
|
+
isPill?: boolean;
|
|
307
|
+
iconLeft?: IconName;
|
|
308
|
+
iconRight?: IconName;
|
|
309
|
+
size?: ButtonSizes;
|
|
310
|
+
type?: ButtonTypes;
|
|
311
|
+
href?: string;
|
|
312
|
+
isDisabled?: boolean;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
316
|
+
|
|
1054
317
|
declare const Icon: ({ name, size, className, ariaLabel, ...props }: IconProps) => react_jsx_runtime.JSX.Element | null;
|
|
1055
318
|
|
|
1056
319
|
declare const Table: <T>(props: TableProps<T>) => react_jsx_runtime.JSX.Element;
|
|
@@ -1073,7 +336,7 @@ interface BaseInputProps {
|
|
|
1073
336
|
onKeyDown?: (e: React$1.KeyboardEvent<HTMLInputElement>) => void;
|
|
1074
337
|
errorMessage?: string | undefined;
|
|
1075
338
|
helpText?: string;
|
|
1076
|
-
iconName?: IconName
|
|
339
|
+
iconName?: IconName;
|
|
1077
340
|
isClearable?: boolean;
|
|
1078
341
|
className?: string;
|
|
1079
342
|
defaultValue?: string;
|
|
@@ -1155,7 +418,7 @@ interface PasswordInputProps extends LabelProps {
|
|
|
1155
418
|
}
|
|
1156
419
|
declare const LabeledPasswordInput: React$1.ForwardRefExoticComponent<Omit<Omit<PasswordInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement> & LabelProps, "ref"> & React$1.RefAttributes<any>>;
|
|
1157
420
|
|
|
1158
|
-
interface SelectProps<OptionType extends SelectOption> extends Props$
|
|
421
|
+
interface SelectProps<OptionType extends SelectOption> extends Props$8<OptionType> {
|
|
1159
422
|
options: OptionType[];
|
|
1160
423
|
}
|
|
1161
424
|
declare const Select: <OptionType extends SelectOption>({ classNamePrefix, className, components: customComponents, ...props }: SelectProps<OptionType>) => react_jsx_runtime.JSX.Element;
|
|
@@ -1199,8 +462,8 @@ interface Props$2 {
|
|
|
1199
462
|
label?: string;
|
|
1200
463
|
onSelect?: (selected: Date | DateRange | undefined) => void;
|
|
1201
464
|
selected?: Date | DateRange | undefined;
|
|
1202
|
-
triggerIcon: IconName
|
|
1203
|
-
triggerIconSize: IconSizes
|
|
465
|
+
triggerIcon: IconName;
|
|
466
|
+
triggerIconSize: IconSizes;
|
|
1204
467
|
isOpen?: boolean;
|
|
1205
468
|
clearOnClose?: boolean;
|
|
1206
469
|
className?: string;
|
|
@@ -1223,7 +486,7 @@ interface SingleInputDatePickerProps {
|
|
|
1223
486
|
isOpen?: boolean;
|
|
1224
487
|
clearOnClose?: boolean;
|
|
1225
488
|
className?: string;
|
|
1226
|
-
inputIconName?: IconName
|
|
489
|
+
inputIconName?: IconName;
|
|
1227
490
|
isClearable?: boolean;
|
|
1228
491
|
inputPlaceholder?: string;
|
|
1229
492
|
errorMessage?: string | undefined;
|
|
@@ -1284,4 +547,4 @@ declare function Menu({ children }: MenuProps): react_jsx_runtime.JSX.Element;
|
|
|
1284
547
|
|
|
1285
548
|
declare const Pill: ({ children, className, color, size, ...rest }: PillProps) => react_jsx_runtime.JSX.Element;
|
|
1286
549
|
|
|
1287
|
-
export {
|
|
550
|
+
export { BarSpinner, Button, Card, Checkbox, CirclePulse, CircleSpinner, Col, ConfirmModal, Container, DatePicker, FloatUI, Form, Icon, IconTriggerDatePicker, LabeledInput as Input, Menu, ModalBase, LabeledPasswordInput as PasswordInput, Pill, Radio as RadioInput, Row, Select as SelectInput, SingleInputDatePicker, Skeleton, Table, LabeledTextarea as Textarea, Toggle as ToggleInput, Tooltip, registerFontAwesomeIcons };
|