@indico-data/design-system 3.22.1 → 3.23.0-beta.1
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/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 +98 -0
- package/lib/build/generated/iconTypes.d.ts +2 -0
- package/lib/components/alert/Alert.d.ts +2 -0
- package/lib/components/alert/Alert.stories.d.ts +15 -0
- package/lib/components/alert/__tests__/Alert.test.d.ts +1 -0
- package/lib/components/alert/index.d.ts +2 -0
- package/lib/components/alert/types.d.ts +26 -0
- package/lib/components/floatUI/FloatUI.test.d.ts +1 -0
- package/lib/components/forms/timePicker/constants.d.ts +13 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/pill/Pill.d.ts +1 -1
- package/lib/components/pill/Pill.stories.d.ts +3 -0
- package/lib/components/pill/types.d.ts +4 -0
- package/lib/components/tanstackTable/TanstakTable.d.ts +4 -0
- package/lib/index.css +214 -30
- package/lib/index.d.ts +34 -2
- package/lib/index.esm.css +214 -30
- package/lib/index.esm.js +41 -5
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +40 -3
- package/lib/index.js.map +1 -1
- package/lib/legacy/components/Accordion/Accordion.d.ts +9 -0
- package/lib/legacy/components/Accordion/Accordion.stories.d.ts +25 -0
- package/lib/legacy/components/Accordion/Accordion.styles.d.ts +1 -0
- package/lib/legacy/components/Accordion/index.d.ts +1 -0
- package/lib/legacy/components/ListTable/Header/Header.d.ts +21 -0
- package/lib/legacy/components/ListTable/Header/Header.styles.d.ts +1 -0
- package/lib/legacy/components/ListTable/Header/index.d.ts +1 -0
- package/lib/legacy/components/ListTable/ListTable.d.ts +41 -0
- package/lib/legacy/components/ListTable/ListTable.stories.d.ts +54 -0
- package/lib/legacy/components/ListTable/ListTable.styles.d.ts +1 -0
- package/lib/legacy/components/ListTable/index.d.ts +1 -0
- package/lib/legacy/components/ListTable/mock-data/index.d.ts +1 -0
- package/lib/legacy/components/ListTable/mock-data/mock-data.d.ts +54 -0
- package/lib/legacy/components/LoadingAwareContainer/LoadingAwareContainer.d.ts +15 -0
- package/lib/legacy/components/LoadingAwareContainer/LoadingAwareContainer.stories.d.ts +22 -0
- package/lib/legacy/components/LoadingAwareContainer/LoadingAwareContainer.styles.d.ts +2 -0
- package/lib/legacy/components/LoadingAwareContainer/index.d.ts +1 -0
- package/lib/legacy/components/Pagination/Pagination.d.ts +18 -0
- package/lib/legacy/components/Pagination/Pagination.stories.d.ts +18 -0
- package/lib/legacy/components/Pagination/Pagination.styles.d.ts +1 -0
- package/lib/legacy/components/Pagination/index.d.ts +1 -0
- package/lib/legacy/components/Toggle/Toggle.d.ts +12 -0
- package/lib/legacy/components/Toggle/Toggle.stories.d.ts +21 -0
- package/lib/legacy/components/Toggle/Toggle.styles.d.ts +1 -0
- package/lib/legacy/components/Toggle/index.d.ts +1 -0
- package/lib/legacy/components/Tooltip/Tooltip.d.ts +15 -0
- package/lib/legacy/components/Tooltip/Tooltip.stories.d.ts +9 -0
- package/lib/legacy/components/Tooltip/Tooltip.styles.d.ts +1 -0
- package/lib/legacy/components/Tooltip/index.d.ts +1 -0
- package/lib/legacy/components/basic-section/Section/Section.d.ts +8 -0
- package/lib/legacy/components/basic-section/Section/Section.stories.d.ts +13 -0
- package/lib/legacy/components/basic-section/Section/Section.styles.d.ts +1 -0
- package/lib/legacy/components/basic-section/Section/index.d.ts +1 -0
- package/lib/legacy/components/basic-section/SectionBlock/SectionBlock.d.ts +9 -0
- package/lib/legacy/components/basic-section/SectionBlock/SectionBlock.styles.d.ts +1 -0
- package/lib/legacy/components/basic-section/SectionBlock/index.d.ts +1 -0
- package/lib/legacy/components/basic-section/SectionBody/SectionBody.d.ts +7 -0
- package/lib/legacy/components/basic-section/SectionBody/SectionBody.stories.d.ts +10 -0
- package/lib/legacy/components/basic-section/SectionBody/SectionBody.styles.d.ts +1 -0
- package/lib/legacy/components/basic-section/SectionBody/index.d.ts +1 -0
- package/lib/legacy/components/basic-section/SectionHeader/SectionHeader.d.ts +8 -0
- package/lib/legacy/components/basic-section/SectionHeader/SectionHeader.stories.d.ts +14 -0
- package/lib/legacy/components/basic-section/SectionHeader/SectionHeader.styles.d.ts +1 -0
- package/lib/legacy/components/basic-section/SectionHeader/index.d.ts +1 -0
- package/lib/legacy/components/basic-section/SectionTable/SectionTable.d.ts +1 -0
- package/lib/legacy/components/basic-section/SectionTable/SectionTable.styles.d.ts +1 -0
- package/lib/legacy/components/basic-section/SectionTable/index.d.ts +1 -0
- package/lib/legacy/components/basic-section/index.d.ts +5 -0
- package/lib/legacy/components/buttons/Button/Button.d.ts +21 -0
- package/lib/legacy/components/buttons/Button/Button.stories.d.ts +25 -0
- package/lib/legacy/components/buttons/Button/Button.styles.d.ts +1 -0
- package/lib/legacy/components/buttons/Button/index.d.ts +1 -0
- package/lib/legacy/components/buttons/IconButton/IconButton.d.ts +32 -0
- package/lib/legacy/components/buttons/IconButton/IconButton.stories.d.ts +43 -0
- package/lib/legacy/components/buttons/IconButton/IconButton.styles.d.ts +5 -0
- package/lib/legacy/components/buttons/IconButton/index.d.ts +1 -0
- package/lib/legacy/components/buttons/commonStyles.d.ts +9 -0
- package/lib/legacy/components/buttons/index.d.ts +2 -0
- package/lib/legacy/components/buttons/types.d.ts +3 -0
- package/lib/legacy/components/dropdowns/BorderSelect/BorderSelect.d.ts +19 -0
- package/lib/legacy/components/dropdowns/BorderSelect/BorderSelect.stories.d.ts +31 -0
- package/lib/legacy/components/dropdowns/BorderSelect/BorderSelect.styles.d.ts +2 -0
- package/lib/legacy/components/dropdowns/BorderSelect/index.d.ts +1 -0
- package/lib/legacy/components/dropdowns/MultiCombobox/MultiCombobox.d.ts +23 -0
- package/lib/legacy/components/dropdowns/MultiCombobox/MultiCombobox.stories.d.ts +46 -0
- package/lib/legacy/components/dropdowns/MultiCombobox/MultiCombobox.styles.d.ts +4 -0
- package/lib/legacy/components/dropdowns/MultiCombobox/index.d.ts +1 -0
- package/lib/legacy/components/dropdowns/Select/Select.d.ts +19 -0
- package/lib/legacy/components/dropdowns/Select/Select.stories.d.ts +34 -0
- package/lib/legacy/components/dropdowns/Select/Select.styles.d.ts +1 -0
- package/lib/legacy/components/dropdowns/Select/index.d.ts +1 -0
- package/lib/legacy/components/dropdowns/SingleCombobox/SingleCombobox.d.ts +20 -0
- package/lib/legacy/components/dropdowns/SingleCombobox/SingleCombobox.stories.d.ts +31 -0
- package/lib/legacy/components/dropdowns/SingleCombobox/SingleCombobox.styles.d.ts +4 -0
- package/lib/legacy/components/dropdowns/SingleCombobox/index.d.ts +1 -0
- package/lib/legacy/components/dropdowns/commonStyles.d.ts +1 -0
- package/lib/legacy/components/dropdowns/index.d.ts +4 -0
- package/lib/legacy/components/dropdowns/types.d.ts +45 -0
- package/lib/legacy/components/dropdowns/useCombobox.d.ts +25 -0
- package/lib/legacy/components/dropdowns/utils.d.ts +20 -0
- package/lib/legacy/components/index.d.ts +2 -0
- package/lib/legacy/components/inputs/EditableInput/EditableInput.d.ts +13 -0
- package/lib/legacy/components/inputs/EditableInput/EditableInput.stories.d.ts +14 -0
- package/lib/legacy/components/inputs/EditableInput/EditableInput.styles.d.ts +1 -0
- package/lib/legacy/components/inputs/EditableInput/index.d.ts +1 -0
- package/lib/legacy/components/inputs/NumberInput/NumberInput.d.ts +23 -0
- package/lib/legacy/components/inputs/NumberInput/NumberInput.stories.d.ts +28 -0
- package/lib/legacy/components/inputs/NumberInput/NumberInput.styles.d.ts +1 -0
- package/lib/legacy/components/inputs/NumberInput/index.d.ts +1 -0
- package/lib/legacy/components/inputs/RadioButtons/RadioButtons.d.ts +25 -0
- package/lib/legacy/components/inputs/RadioButtons/RadioButtons.stories.d.ts +15 -0
- package/lib/legacy/components/inputs/RadioButtons/RadioButtons.styles.d.ts +13 -0
- package/lib/legacy/components/inputs/RadioButtons/index.d.ts +1 -0
- package/lib/legacy/components/inputs/RadioGroup/RadioGroup.d.ts +27 -0
- package/lib/legacy/components/inputs/RadioGroup/RadioGroup.stories.d.ts +16 -0
- package/lib/legacy/components/inputs/RadioGroup/RadioGroup.styles.d.ts +1 -0
- package/lib/legacy/components/inputs/RadioGroup/index.d.ts +1 -0
- package/lib/legacy/components/inputs/SearchInput/SearchInput.d.ts +17 -0
- package/lib/legacy/components/inputs/SearchInput/SearchInput.stories.d.ts +30 -0
- package/lib/legacy/components/inputs/SearchInput/SearchInput.styles.d.ts +1 -0
- package/lib/legacy/components/inputs/SearchInput/index.d.ts +1 -0
- package/lib/legacy/components/inputs/TextInput/TextInput.d.ts +24 -0
- package/lib/legacy/components/inputs/TextInput/TextInput.stories.d.ts +62 -0
- package/lib/legacy/components/inputs/TextInput/TextInput.styles.d.ts +2 -0
- package/lib/legacy/components/inputs/TextInput/index.d.ts +1 -0
- package/lib/legacy/components/inputs/index.d.ts +6 -0
- package/lib/legacy/components/inputs/inputsCommon.styles.d.ts +4 -0
- package/lib/legacy/components/loading-indicators/BarSpinner/BarSpinner.d.ts +7 -0
- package/lib/legacy/components/loading-indicators/BarSpinner/BarSpinner.stories.d.ts +10 -0
- package/lib/legacy/components/loading-indicators/BarSpinner/BarSpinner.styles.d.ts +1 -0
- package/lib/legacy/components/loading-indicators/BarSpinner/index.d.ts +1 -0
- package/lib/legacy/components/loading-indicators/CirclePulse/CirclePulse.d.ts +10 -0
- package/lib/legacy/components/loading-indicators/CirclePulse/CirclePulse.stories.d.ts +12 -0
- package/lib/legacy/components/loading-indicators/CirclePulse/CirclePulse.styles.d.ts +7 -0
- package/lib/legacy/components/loading-indicators/CirclePulse/index.d.ts +1 -0
- package/lib/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.d.ts +10 -0
- package/lib/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.stories.d.ts +10 -0
- package/lib/legacy/components/loading-indicators/CircleSpinner/index.d.ts +1 -0
- package/lib/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.d.ts +10 -0
- package/lib/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.stories.d.ts +11 -0
- package/lib/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.styles.d.ts +7 -0
- package/lib/legacy/components/loading-indicators/LoadingIndicator/index.d.ts +1 -0
- package/lib/legacy/components/loading-indicators/LoadingList/LoadingList.d.ts +1 -0
- package/lib/legacy/components/loading-indicators/LoadingList/LoadingList.stories.d.ts +10 -0
- package/lib/legacy/components/loading-indicators/LoadingList/LoadingList.styles.d.ts +1 -0
- package/lib/legacy/components/loading-indicators/LoadingList/index.d.ts +1 -0
- package/lib/legacy/components/loading-indicators/PercentageRing/PercentageRing.d.ts +12 -0
- package/lib/legacy/components/loading-indicators/PercentageRing/PercentageRing.stories.d.ts +10 -0
- package/lib/legacy/components/loading-indicators/PercentageRing/PercentageRing.styles.d.ts +1 -0
- package/lib/legacy/components/loading-indicators/PercentageRing/index.d.ts +1 -0
- package/lib/legacy/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.d.ts +1 -0
- package/lib/legacy/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.stories.d.ts +10 -0
- package/lib/legacy/components/loading-indicators/RandomLoadingMessage/index.d.ts +1 -0
- package/lib/legacy/components/loading-indicators/RandomLoadingMessage/random-messages.d.ts +2 -0
- package/lib/legacy/components/loading-indicators/index.d.ts +3 -0
- package/lib/legacy/components/modals/ConfirmModal/ConfirmModal.d.ts +17 -0
- package/lib/legacy/components/modals/ConfirmModal/ConfirmModal.stories.d.ts +44 -0
- package/lib/legacy/components/modals/ConfirmModal/ConfirmModal.styles.d.ts +1 -0
- package/lib/legacy/components/modals/ConfirmModal/index.d.ts +1 -0
- package/lib/legacy/components/modals/ModalBase/ModalBase.d.ts +26 -0
- package/lib/legacy/components/modals/ModalBase/ModalBase.stories.d.ts +9 -0
- package/lib/legacy/components/modals/ModalBase/ModalBase.styles.d.ts +4 -0
- package/lib/legacy/components/modals/ModalBase/index.d.ts +2 -0
- package/lib/legacy/components/modals/index.d.ts +2 -0
- package/lib/legacy/components/text-truncate/TextTruncate.d.ts +8 -0
- package/lib/legacy/components/text-truncate/TextTruncate.stories.d.ts +6 -0
- package/lib/legacy/components/text-truncate/TextTruncate.styles.d.ts +1 -0
- package/lib/legacy/components/text-truncate/TextTruncate.test.d.ts +1 -0
- package/lib/legacy/components/text-truncate/index.d.ts +1 -0
- package/lib/legacy/components/user-feedback/Shrug/Shrug.d.ts +14 -0
- package/lib/legacy/components/user-feedback/Shrug/Shrug.stories.d.ts +31 -0
- package/lib/legacy/components/user-feedback/Shrug/Shrug.styles.d.ts +1 -0
- package/lib/legacy/components/user-feedback/Shrug/index.d.ts +1 -0
- package/lib/legacy/components/user-feedback/index.d.ts +1 -0
- package/lib/legacy/styles/globals/buttons.d.ts +1 -0
- package/lib/legacy/styles/globals/forms.d.ts +1 -0
- package/lib/legacy/styles/globals/index.d.ts +1 -0
- package/lib/legacy/styles/globals/layout.d.ts +1 -0
- package/lib/legacy/styles/globals/lists.d.ts +1 -0
- package/lib/legacy/styles/globals/margin-padding.d.ts +1 -0
- package/lib/legacy/styles/globals/media.d.ts +1 -0
- package/lib/legacy/styles/globals/tables.d.ts +1 -0
- package/lib/legacy/styles/globals/typography.d.ts +1 -0
- package/lib/legacy/styles/globals/utility-classes.d.ts +1 -0
- package/lib/legacy/styles/index.d.ts +1 -0
- package/lib/legacy/tokens/animation.d.ts +4 -0
- package/lib/legacy/tokens/breakpoints.d.ts +10 -0
- package/lib/legacy/tokens/colors.d.ts +144 -0
- package/lib/legacy/tokens/index.d.ts +8 -0
- package/lib/legacy/tokens/margin.d.ts +4 -0
- package/lib/legacy/tokens/numbers.d.ts +10 -0
- package/lib/legacy/tokens/padding.d.ts +4 -0
- package/lib/legacy/tokens/spacings.d.ts +5 -0
- package/lib/legacy/tokens/typography.d.ts +61 -0
- package/lib/legacy/utils/color.d.ts +21 -0
- package/lib/legacy/utils/index.d.ts +4 -0
- package/lib/legacy/utils/number.d.ts +21 -0
- package/lib/legacy/utils/string.d.ts +12 -0
- package/lib/src/components/button/Button.d.ts +3 -0
- package/lib/src/components/button/Button.stories.d.ts +23 -0
- package/lib/src/components/button/__tests__/Button.test.d.ts +1 -0
- package/lib/src/components/button/enums.d.ts +5 -0
- package/lib/src/components/button/index.d.ts +1 -0
- package/lib/src/components/button/types.d.ts +23 -0
- package/lib/src/components/card/Card.d.ts +10 -0
- package/lib/src/components/card/Card.stories.d.ts +6 -0
- package/lib/src/components/card/__tests__/Card.test.d.ts +1 -0
- package/lib/src/components/card/index.d.ts +1 -0
- package/lib/src/components/floatUI/FloatUI.d.ts +2 -0
- package/lib/src/components/floatUI/FloatUI.stories.d.ts +8 -0
- package/lib/src/components/floatUI/FloatUI.test.d.ts +1 -0
- package/lib/src/components/floatUI/index.d.ts +1 -0
- package/lib/src/components/floatUI/types.d.ts +13 -0
- package/lib/src/components/forms/checkbox/Checkbox.d.ts +13 -0
- package/lib/src/components/forms/checkbox/Checkbox.stories.d.ts +7 -0
- package/lib/src/components/forms/checkbox/__tests__/Checkbox.test.d.ts +1 -0
- package/lib/src/components/forms/checkbox/index.d.ts +1 -0
- package/lib/src/components/forms/form/Form.d.ts +14 -0
- package/lib/src/components/forms/form/Form.stories.d.ts +8 -0
- package/lib/src/components/forms/form/__tests__/Form.test.d.ts +1 -0
- package/lib/src/components/forms/form/index.d.ts +1 -0
- package/lib/src/components/forms/input/Input.d.ts +19 -0
- package/lib/src/components/forms/input/Input.stories.d.ts +12 -0
- package/lib/src/components/forms/input/__tests__/Input.test.d.ts +1 -0
- package/lib/src/components/forms/input/index.d.ts +1 -0
- package/lib/src/components/forms/numberInput/NumberInput.d.ts +12 -0
- package/lib/src/components/forms/numberInput/NumberInput.stories.d.ts +12 -0
- package/lib/src/components/forms/numberInput/__tests__/NumberInput.test.d.ts +1 -0
- package/lib/src/components/forms/numberInput/index.d.ts +1 -0
- package/lib/src/components/forms/passwordInput/PasswordInput.d.ts +15 -0
- package/lib/src/components/forms/passwordInput/PasswordInput.stories.d.ts +11 -0
- package/lib/src/components/forms/passwordInput/__tests__/PasswordInput.test.d.ts +1 -0
- package/lib/src/components/forms/passwordInput/index.d.ts +1 -0
- package/lib/src/components/forms/radio/Radio.d.ts +12 -0
- package/lib/src/components/forms/radio/Radio.stories.d.ts +6 -0
- package/lib/src/components/forms/radio/__tests__/Radio.test.d.ts +1 -0
- package/lib/src/components/forms/radio/index.d.ts +1 -0
- package/lib/src/components/forms/select/Select.d.ts +6 -0
- package/lib/src/components/forms/select/Select.stories.d.ts +7 -0
- package/lib/src/components/forms/select/__tests__/Select.test.d.ts +1 -0
- package/lib/src/components/forms/select/index.d.ts +1 -0
- package/lib/src/components/forms/select/types.d.ts +6 -0
- package/lib/src/components/forms/subcomponents/DisplayFormError.d.ts +5 -0
- package/lib/src/components/forms/subcomponents/ErrorList.d.ts +6 -0
- package/lib/src/components/forms/subcomponents/Label.d.ts +9 -0
- package/lib/src/components/forms/subcomponents/__tests__/ErrorList.test.d.ts +1 -0
- package/lib/src/components/forms/subcomponents/__tests__/Label.test.d.ts +1 -0
- package/lib/src/components/forms/textarea/Textarea.d.ts +21 -0
- package/lib/src/components/forms/textarea/Textarea.stories.d.ts +11 -0
- package/lib/src/components/forms/textarea/__tests__/Textarea.test.d.ts +1 -0
- package/lib/src/components/forms/textarea/index.d.ts +1 -0
- package/lib/src/components/forms/toggle/Toggle.d.ts +13 -0
- package/lib/src/components/forms/toggle/Toggle.stories.d.ts +6 -0
- package/lib/src/components/forms/toggle/__tests__/Toggle.test.d.ts +1 -0
- package/lib/src/components/forms/toggle/index.d.ts +1 -0
- package/lib/src/components/grid/col/Col.d.ts +2 -0
- package/lib/src/components/grid/col/Col.stories.d.ts +6 -0
- package/lib/src/components/grid/container/Container.d.ts +2 -0
- package/lib/src/components/grid/container/Container.stories.d.ts +10 -0
- package/lib/src/components/grid/index.d.ts +3 -0
- package/lib/src/components/grid/row/Row.d.ts +2 -0
- package/lib/src/components/grid/row/Row.stories.d.ts +6 -0
- package/lib/src/components/icons/Icon.d.ts +2 -0
- package/lib/src/components/icons/Icon.stories.d.ts +10 -0
- package/lib/src/components/icons/__tests__/Icon.test.d.ts +1 -0
- package/lib/src/components/icons/index.d.ts +1 -0
- package/lib/src/components/icons/indicons.d.ts +148 -0
- package/lib/src/components/icons/types.d.ts +10 -0
- package/lib/src/components/index.d.ts +16 -0
- package/lib/src/components/menu/Menu.d.ts +5 -0
- package/lib/src/components/menu/Menu.stories.d.ts +6 -0
- package/lib/src/components/menu/Menu.test.d.ts +1 -0
- package/lib/src/components/menu/index.d.ts +1 -0
- package/lib/src/components/pill/Pill.d.ts +2 -0
- package/lib/src/components/pill/Pill.stories.d.ts +8 -0
- package/lib/src/components/pill/__tests__/Pill.test.d.ts +1 -0
- package/lib/src/components/pill/index.d.ts +1 -0
- package/lib/src/components/pill/types.d.ts +10 -0
- package/lib/src/components/popper/Popper.d.ts +2 -0
- package/lib/src/components/popper/Popper.stories.d.ts +8 -0
- package/lib/src/components/popper/Popper.test.d.ts +1 -0
- package/lib/src/components/popper/PopperContext.d.ts +12 -0
- package/lib/src/components/popper/index.d.ts +1 -0
- package/lib/src/components/popper/types.d.ts +9 -0
- package/lib/src/components/skeleton/Skeleton.d.ts +9 -0
- package/lib/src/components/skeleton/Skeleton.stories.d.ts +9 -0
- package/lib/src/components/skeleton/__tests__/Skeleton.test.d.ts +1 -0
- package/lib/src/components/skeleton/index.d.ts +1 -0
- package/lib/src/components/table/LoadingComponent.d.ts +1 -0
- package/lib/src/components/table/SkeletonTable.d.ts +7 -0
- package/lib/src/components/table/Table.d.ts +2 -0
- package/lib/src/components/table/Table.stories.d.ts +7 -0
- package/lib/src/components/table/index.d.ts +1 -0
- package/lib/src/components/table/sampleData.d.ts +9 -0
- package/lib/src/components/table/types.d.ts +10 -0
- package/lib/src/components/tables/table/LoadingComponent.d.ts +1 -0
- package/lib/src/components/tables/table/Table.d.ts +78 -0
- package/lib/src/components/tables/table/Table.stories.d.ts +6 -0
- package/lib/src/components/tables/table/index.d.ts +1 -0
- package/lib/src/components/tables/table/sampleData.d.ts +8 -0
- package/lib/src/hooks/useClickOutside.d.ts +2 -0
- package/lib/src/index.d.ts +23 -0
- package/lib/src/legacy/components/Accordion/Accordion.d.ts +9 -0
- package/lib/src/legacy/components/Accordion/Accordion.stories.d.ts +25 -0
- package/lib/src/legacy/components/Accordion/Accordion.styles.d.ts +1 -0
- package/lib/src/legacy/components/Accordion/index.d.ts +1 -0
- package/lib/src/legacy/components/ListTable/Header/Header.d.ts +21 -0
- package/lib/src/legacy/components/ListTable/Header/Header.styles.d.ts +1 -0
- package/lib/src/legacy/components/ListTable/Header/index.d.ts +1 -0
- package/lib/src/legacy/components/ListTable/ListTable.d.ts +41 -0
- package/lib/src/legacy/components/ListTable/ListTable.stories.d.ts +54 -0
- package/lib/src/legacy/components/ListTable/ListTable.styles.d.ts +1 -0
- package/lib/src/legacy/components/ListTable/index.d.ts +1 -0
- package/lib/src/legacy/components/ListTable/mock-data/index.d.ts +1 -0
- package/lib/src/legacy/components/ListTable/mock-data/mock-data.d.ts +54 -0
- package/lib/src/legacy/components/LoadingAwareContainer/LoadingAwareContainer.d.ts +15 -0
- package/lib/src/legacy/components/LoadingAwareContainer/LoadingAwareContainer.stories.d.ts +22 -0
- package/lib/src/legacy/components/LoadingAwareContainer/LoadingAwareContainer.styles.d.ts +2 -0
- package/lib/src/legacy/components/LoadingAwareContainer/index.d.ts +1 -0
- package/lib/src/legacy/components/Navigation/Drawer/Drawer.d.ts +16 -0
- package/lib/src/legacy/components/Navigation/Drawer/Drawer.stories.d.ts +6 -0
- package/lib/src/legacy/components/Navigation/Drawer/DrawerLinkList.d.ts +9 -0
- package/lib/src/legacy/components/Navigation/Drawer/DrawerLinkList.styles.d.ts +2 -0
- package/lib/src/legacy/components/Navigation/Drawer/__mocks__/mocks.d.ts +3 -0
- package/lib/src/legacy/components/Navigation/Drawer/__tests__/DrawerLinkList.test.d.ts +1 -0
- package/lib/src/legacy/components/Navigation/Drawer/index.d.ts +1 -0
- package/lib/src/legacy/components/Navigation/Drawer/types.d.ts +7 -0
- package/lib/src/legacy/components/Navigation/index.d.ts +1 -0
- package/lib/src/legacy/components/Pagination/Pagination.d.ts +18 -0
- package/lib/src/legacy/components/Pagination/Pagination.stories.d.ts +18 -0
- package/lib/src/legacy/components/Pagination/Pagination.styles.d.ts +1 -0
- package/lib/src/legacy/components/Pagination/index.d.ts +1 -0
- package/lib/src/legacy/components/Toggle/Toggle.d.ts +12 -0
- package/lib/src/legacy/components/Toggle/Toggle.stories.d.ts +21 -0
- package/lib/src/legacy/components/Toggle/Toggle.styles.d.ts +1 -0
- package/lib/src/legacy/components/Toggle/index.d.ts +1 -0
- package/lib/src/legacy/components/Tooltip/Tooltip.d.ts +15 -0
- package/lib/src/legacy/components/Tooltip/Tooltip.stories.d.ts +9 -0
- package/lib/src/legacy/components/Tooltip/Tooltip.styles.d.ts +1 -0
- package/lib/src/legacy/components/Tooltip/index.d.ts +1 -0
- package/lib/src/legacy/components/basic-section/Section/Section.d.ts +8 -0
- package/lib/src/legacy/components/basic-section/Section/Section.stories.d.ts +13 -0
- package/lib/src/legacy/components/basic-section/Section/Section.styles.d.ts +1 -0
- package/lib/src/legacy/components/basic-section/Section/index.d.ts +1 -0
- package/lib/src/legacy/components/basic-section/SectionBlock/SectionBlock.d.ts +9 -0
- package/lib/src/legacy/components/basic-section/SectionBlock/SectionBlock.styles.d.ts +1 -0
- package/lib/src/legacy/components/basic-section/SectionBlock/index.d.ts +1 -0
- package/lib/src/legacy/components/basic-section/SectionBody/SectionBody.d.ts +7 -0
- package/lib/src/legacy/components/basic-section/SectionBody/SectionBody.stories.d.ts +10 -0
- package/lib/src/legacy/components/basic-section/SectionBody/SectionBody.styles.d.ts +1 -0
- package/lib/src/legacy/components/basic-section/SectionBody/index.d.ts +1 -0
- package/lib/src/legacy/components/basic-section/SectionHeader/SectionHeader.d.ts +8 -0
- package/lib/src/legacy/components/basic-section/SectionHeader/SectionHeader.stories.d.ts +14 -0
- package/lib/src/legacy/components/basic-section/SectionHeader/SectionHeader.styles.d.ts +1 -0
- package/lib/src/legacy/components/basic-section/SectionHeader/index.d.ts +1 -0
- package/lib/src/legacy/components/basic-section/SectionTable/SectionTable.d.ts +1 -0
- package/lib/src/legacy/components/basic-section/SectionTable/SectionTable.styles.d.ts +1 -0
- package/lib/src/legacy/components/basic-section/SectionTable/index.d.ts +1 -0
- package/lib/src/legacy/components/basic-section/index.d.ts +5 -0
- package/lib/src/legacy/components/buttons/Button/Button.d.ts +21 -0
- package/lib/src/legacy/components/buttons/Button/Button.stories.d.ts +25 -0
- package/lib/src/legacy/components/buttons/Button/Button.styles.d.ts +1 -0
- package/lib/src/legacy/components/buttons/Button/index.d.ts +1 -0
- package/lib/src/legacy/components/buttons/IconButton/IconButton.d.ts +32 -0
- package/lib/src/legacy/components/buttons/IconButton/IconButton.stories.d.ts +43 -0
- package/lib/src/legacy/components/buttons/IconButton/IconButton.styles.d.ts +5 -0
- package/lib/src/legacy/components/buttons/IconButton/index.d.ts +1 -0
- package/lib/src/legacy/components/buttons/commonStyles.d.ts +9 -0
- package/lib/src/legacy/components/buttons/index.d.ts +2 -0
- package/lib/src/legacy/components/buttons/types.d.ts +3 -0
- package/lib/src/legacy/components/dropdowns/BorderSelect/BorderSelect.d.ts +19 -0
- package/lib/src/legacy/components/dropdowns/BorderSelect/BorderSelect.stories.d.ts +31 -0
- package/lib/src/legacy/components/dropdowns/BorderSelect/BorderSelect.styles.d.ts +2 -0
- package/lib/src/legacy/components/dropdowns/BorderSelect/index.d.ts +1 -0
- package/lib/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.d.ts +23 -0
- package/lib/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.stories.d.ts +46 -0
- package/lib/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.styles.d.ts +4 -0
- package/lib/src/legacy/components/dropdowns/MultiCombobox/index.d.ts +1 -0
- package/lib/src/legacy/components/dropdowns/Select/Select.d.ts +19 -0
- package/lib/src/legacy/components/dropdowns/Select/Select.stories.d.ts +34 -0
- package/lib/src/legacy/components/dropdowns/Select/Select.styles.d.ts +1 -0
- package/lib/src/legacy/components/dropdowns/Select/index.d.ts +1 -0
- package/lib/src/legacy/components/dropdowns/SingleCombobox/SingleCombobox.d.ts +20 -0
- package/lib/src/legacy/components/dropdowns/SingleCombobox/SingleCombobox.stories.d.ts +31 -0
- package/lib/src/legacy/components/dropdowns/SingleCombobox/SingleCombobox.styles.d.ts +4 -0
- package/lib/src/legacy/components/dropdowns/SingleCombobox/index.d.ts +1 -0
- package/lib/src/legacy/components/dropdowns/commonStyles.d.ts +1 -0
- package/lib/src/legacy/components/dropdowns/index.d.ts +4 -0
- package/lib/src/legacy/components/dropdowns/types.d.ts +45 -0
- package/lib/src/legacy/components/dropdowns/useCombobox.d.ts +25 -0
- package/lib/src/legacy/components/dropdowns/utils.d.ts +20 -0
- package/lib/src/legacy/components/index.d.ts +14 -0
- package/lib/src/legacy/components/inputs/DatePicker/DatePicker.d.ts +15 -0
- package/lib/src/legacy/components/inputs/DatePicker/DatePicker.stories.d.ts +6 -0
- package/lib/src/legacy/components/inputs/DatePicker/DatePicker.styles.d.ts +1 -0
- package/lib/src/legacy/components/inputs/DatePicker/index.d.ts +1 -0
- package/lib/src/legacy/components/inputs/EditableInput/EditableInput.d.ts +13 -0
- package/lib/src/legacy/components/inputs/EditableInput/EditableInput.stories.d.ts +14 -0
- package/lib/src/legacy/components/inputs/EditableInput/EditableInput.styles.d.ts +1 -0
- package/lib/src/legacy/components/inputs/EditableInput/index.d.ts +1 -0
- package/lib/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.d.ts +21 -0
- package/lib/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.stories.d.ts +7 -0
- package/lib/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.styles.d.ts +1 -0
- package/lib/src/legacy/components/inputs/NoInputDatePicker/index.d.ts +1 -0
- package/lib/src/legacy/components/inputs/NumberInput/NumberInput.d.ts +23 -0
- package/lib/src/legacy/components/inputs/NumberInput/NumberInput.stories.d.ts +28 -0
- package/lib/src/legacy/components/inputs/NumberInput/NumberInput.styles.d.ts +1 -0
- package/lib/src/legacy/components/inputs/NumberInput/index.d.ts +1 -0
- package/lib/src/legacy/components/inputs/RadioButtons/RadioButtons.d.ts +25 -0
- package/lib/src/legacy/components/inputs/RadioButtons/RadioButtons.stories.d.ts +15 -0
- package/lib/src/legacy/components/inputs/RadioButtons/RadioButtons.styles.d.ts +13 -0
- package/lib/src/legacy/components/inputs/RadioButtons/index.d.ts +1 -0
- package/lib/src/legacy/components/inputs/RadioGroup/RadioGroup.d.ts +27 -0
- package/lib/src/legacy/components/inputs/RadioGroup/RadioGroup.stories.d.ts +16 -0
- package/lib/src/legacy/components/inputs/RadioGroup/RadioGroup.styles.d.ts +1 -0
- package/lib/src/legacy/components/inputs/RadioGroup/index.d.ts +1 -0
- package/lib/src/legacy/components/inputs/SearchInput/SearchInput.d.ts +17 -0
- package/lib/src/legacy/components/inputs/SearchInput/SearchInput.stories.d.ts +30 -0
- package/lib/src/legacy/components/inputs/SearchInput/SearchInput.styles.d.ts +1 -0
- package/lib/src/legacy/components/inputs/SearchInput/index.d.ts +1 -0
- package/lib/src/legacy/components/inputs/TextInput/TextInput.d.ts +24 -0
- package/lib/src/legacy/components/inputs/TextInput/TextInput.stories.d.ts +62 -0
- package/lib/src/legacy/components/inputs/TextInput/TextInput.styles.d.ts +2 -0
- package/lib/src/legacy/components/inputs/TextInput/index.d.ts +1 -0
- package/lib/src/legacy/components/inputs/index.d.ts +8 -0
- package/lib/src/legacy/components/inputs/inputsCommon.styles.d.ts +4 -0
- package/lib/src/legacy/components/loading-indicators/BarSpinner/BarSpinner.d.ts +7 -0
- package/lib/src/legacy/components/loading-indicators/BarSpinner/BarSpinner.stories.d.ts +10 -0
- package/lib/src/legacy/components/loading-indicators/BarSpinner/BarSpinner.styles.d.ts +1 -0
- package/lib/src/legacy/components/loading-indicators/BarSpinner/index.d.ts +1 -0
- package/lib/src/legacy/components/loading-indicators/CirclePulse/CirclePulse.d.ts +10 -0
- package/lib/src/legacy/components/loading-indicators/CirclePulse/CirclePulse.stories.d.ts +12 -0
- package/lib/src/legacy/components/loading-indicators/CirclePulse/CirclePulse.styles.d.ts +7 -0
- package/lib/src/legacy/components/loading-indicators/CirclePulse/index.d.ts +1 -0
- package/lib/src/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.d.ts +10 -0
- package/lib/src/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.stories.d.ts +10 -0
- package/lib/src/legacy/components/loading-indicators/CircleSpinner/index.d.ts +1 -0
- package/lib/src/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.d.ts +10 -0
- package/lib/src/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.stories.d.ts +11 -0
- package/lib/src/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.styles.d.ts +7 -0
- package/lib/src/legacy/components/loading-indicators/LoadingIndicator/index.d.ts +1 -0
- package/lib/src/legacy/components/loading-indicators/LoadingList/LoadingList.d.ts +1 -0
- package/lib/src/legacy/components/loading-indicators/LoadingList/LoadingList.stories.d.ts +10 -0
- package/lib/src/legacy/components/loading-indicators/LoadingList/LoadingList.styles.d.ts +1 -0
- package/lib/src/legacy/components/loading-indicators/LoadingList/index.d.ts +1 -0
- package/lib/src/legacy/components/loading-indicators/PercentageRing/PercentageRing.d.ts +12 -0
- package/lib/src/legacy/components/loading-indicators/PercentageRing/PercentageRing.stories.d.ts +10 -0
- package/lib/src/legacy/components/loading-indicators/PercentageRing/PercentageRing.styles.d.ts +1 -0
- package/lib/src/legacy/components/loading-indicators/PercentageRing/index.d.ts +1 -0
- package/lib/src/legacy/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.d.ts +1 -0
- package/lib/src/legacy/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.stories.d.ts +10 -0
- package/lib/src/legacy/components/loading-indicators/RandomLoadingMessage/index.d.ts +1 -0
- package/lib/src/legacy/components/loading-indicators/RandomLoadingMessage/random-messages.d.ts +2 -0
- package/lib/src/legacy/components/loading-indicators/index.d.ts +7 -0
- package/lib/src/legacy/components/modals/ConfirmModal/ConfirmModal.d.ts +17 -0
- package/lib/src/legacy/components/modals/ConfirmModal/ConfirmModal.stories.d.ts +44 -0
- package/lib/src/legacy/components/modals/ConfirmModal/ConfirmModal.styles.d.ts +1 -0
- package/lib/src/legacy/components/modals/ConfirmModal/index.d.ts +1 -0
- package/lib/src/legacy/components/modals/ModalBase/ModalBase.d.ts +26 -0
- package/lib/src/legacy/components/modals/ModalBase/ModalBase.stories.d.ts +9 -0
- package/lib/src/legacy/components/modals/ModalBase/ModalBase.styles.d.ts +4 -0
- package/lib/src/legacy/components/modals/ModalBase/index.d.ts +2 -0
- package/lib/src/legacy/components/modals/index.d.ts +2 -0
- package/lib/src/legacy/components/text-truncate/TextTruncate.d.ts +8 -0
- package/lib/src/legacy/components/text-truncate/TextTruncate.stories.d.ts +6 -0
- package/lib/src/legacy/components/text-truncate/TextTruncate.styles.d.ts +1 -0
- package/lib/src/legacy/components/text-truncate/TextTruncate.test.d.ts +1 -0
- package/lib/src/legacy/components/text-truncate/index.d.ts +1 -0
- package/lib/src/legacy/components/user-feedback/Shrug/Shrug.d.ts +14 -0
- package/lib/src/legacy/components/user-feedback/Shrug/Shrug.stories.d.ts +31 -0
- package/lib/src/legacy/components/user-feedback/Shrug/Shrug.styles.d.ts +1 -0
- package/lib/src/legacy/components/user-feedback/Shrug/index.d.ts +1 -0
- package/lib/src/legacy/components/user-feedback/index.d.ts +1 -0
- package/lib/src/legacy/styles/globals/buttons.d.ts +1 -0
- package/lib/src/legacy/styles/globals/forms.d.ts +1 -0
- package/lib/src/legacy/styles/globals/index.d.ts +1 -0
- package/lib/src/legacy/styles/globals/layout.d.ts +1 -0
- package/lib/src/legacy/styles/globals/lists.d.ts +1 -0
- package/lib/src/legacy/styles/globals/margin-padding.d.ts +1 -0
- package/lib/src/legacy/styles/globals/media.d.ts +1 -0
- package/lib/src/legacy/styles/globals/tables.d.ts +1 -0
- package/lib/src/legacy/styles/globals/typography.d.ts +1 -0
- package/lib/src/legacy/styles/globals/utility-classes.d.ts +1 -0
- package/lib/src/legacy/styles/index.d.ts +1 -0
- package/lib/src/legacy/tokens/animation.d.ts +4 -0
- package/lib/src/legacy/tokens/breakpoints.d.ts +10 -0
- package/lib/src/legacy/tokens/colors.d.ts +144 -0
- package/lib/src/legacy/tokens/index.d.ts +8 -0
- package/lib/src/legacy/tokens/margin.d.ts +4 -0
- package/lib/src/legacy/tokens/numbers.d.ts +10 -0
- package/lib/src/legacy/tokens/padding.d.ts +4 -0
- package/lib/src/legacy/tokens/spacings.d.ts +5 -0
- package/lib/src/legacy/tokens/typography.d.ts +61 -0
- package/lib/src/legacy/utils/color.d.ts +21 -0
- package/lib/src/legacy/utils/index.d.ts +4 -0
- package/lib/src/legacy/utils/number.d.ts +21 -0
- package/lib/src/legacy/utils/string.d.ts +12 -0
- package/lib/src/setupTests.d.ts +1 -0
- package/lib/src/storybook/labelArgTypes.d.ts +3 -0
- package/lib/src/stylesAndAnimations/borders/BorderColor.d.ts +3 -0
- package/lib/src/stylesAndAnimations/borders/BorderColor.stories.d.ts +6 -0
- package/lib/src/stylesAndAnimations/borders/BorderRadius.d.ts +3 -0
- package/lib/src/stylesAndAnimations/borders/BorderRadius.stories.d.ts +6 -0
- package/lib/src/stylesAndAnimations/borders/BorderStyles.d.ts +3 -0
- package/lib/src/stylesAndAnimations/borders/BorderStyles.stories.d.ts +6 -0
- package/lib/src/stylesAndAnimations/borders/BorderThickness.d.ts +3 -0
- package/lib/src/stylesAndAnimations/borders/BorderThickness.stories.d.ts +6 -0
- package/lib/src/stylesAndAnimations/borders/index.d.ts +4 -0
- package/lib/src/stylesAndAnimations/colors/Colors.d.ts +1 -0
- package/lib/src/stylesAndAnimations/colors/Colors.stories.d.ts +6 -0
- package/lib/src/stylesAndAnimations/colors/Swatch.d.ts +8 -0
- package/lib/src/stylesAndAnimations/colors/UtilityClasses.d.ts +1 -0
- package/lib/src/stylesAndAnimations/colors/UtilityClasses.stories.d.ts +6 -0
- package/lib/src/stylesAndAnimations/colors/constants.d.ts +5 -0
- package/lib/src/stylesAndAnimations/colors/hooks.d.ts +1 -0
- package/lib/src/stylesAndAnimations/colors/index.d.ts +1 -0
- package/lib/src/stylesAndAnimations/sizing/Sizing.d.ts +2 -0
- package/lib/src/stylesAndAnimations/sizing/Sizing.stories.d.ts +6 -0
- package/lib/src/stylesAndAnimations/sizing/index.d.ts +1 -0
- package/lib/src/stylesAndAnimations/typography/Typography.d.ts +1 -0
- package/lib/src/stylesAndAnimations/typography/Typography.stories.d.ts +6 -0
- package/lib/src/stylesAndAnimations/typography/index.d.ts +1 -0
- package/lib/src/types.d.ts +19 -0
- package/lib/stylesAndAnimations/colors/ColorSwatch.d.ts +7 -0
- package/lib/stylesAndAnimations/colors/Colors.d.ts +1 -0
- package/lib/stylesAndAnimations/colors/Colors.stories.d.ts +6 -0
- package/lib/stylesAndAnimations/colors/Swatch.d.ts +8 -0
- package/lib/stylesAndAnimations/colors/constants.d.ts +23 -0
- package/lib/stylesAndAnimations/colors/index.d.ts +1 -0
- package/lib/types.d.ts +2 -0
- package/package.json +1 -1
- package/src/components/alert/Alert.mdx +65 -0
- package/src/components/alert/Alert.stories.tsx +162 -0
- package/src/components/alert/Alert.tsx +68 -0
- package/src/components/alert/__tests__/Alert.test.tsx +52 -0
- package/src/components/alert/index.ts +2 -0
- package/src/components/alert/styles/Alert.scss +139 -0
- package/src/components/alert/styles/_tokens.scss +71 -0
- package/src/components/alert/types.ts +28 -0
- package/src/components/index.ts +1 -0
- package/src/components/pill/Pill.mdx +27 -0
- package/src/components/pill/Pill.stories.tsx +87 -0
- package/src/components/pill/Pill.tsx +36 -0
- package/src/components/pill/__tests__/Pill.test.tsx +93 -0
- package/src/components/pill/styles/Pill.scss +15 -2
- package/src/components/pill/types.ts +4 -0
- package/src/index.ts +1 -0
- package/src/setup/setupIcons.ts +8 -0
- package/src/styles/index.scss +2 -1
- package/src/types.ts +2 -0
package/lib/src/legacy/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RandomLoadingMessage: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { RandomLoadingMessage } from './RandomLoadingMessage';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
title: string;
|
|
6
|
+
argTypes: {};
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof RandomLoadingMessage>;
|
|
10
|
+
export declare const Normal: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RandomLoadingMessage } from './RandomLoadingMessage';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { CircleSpinner } from './CircleSpinner';
|
|
2
|
+
export { BarSpinner } from './BarSpinner';
|
|
3
|
+
export { CirclePulse } from './CirclePulse';
|
|
4
|
+
export { RandomLoadingMessage } from './RandomLoadingMessage';
|
|
5
|
+
export { PercentageRing } from './PercentageRing';
|
|
6
|
+
export { LoadingList } from './LoadingList';
|
|
7
|
+
export { LoadingIndicator } from './LoadingIndicator';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ModalBaseProps } from '../ModalBase';
|
|
3
|
+
import { PermafrostComponent } from '@/types';
|
|
4
|
+
type Props = PermafrostComponent & Pick<ModalBaseProps, 'open'> & {
|
|
5
|
+
describedBy?: string;
|
|
6
|
+
clickOutsideHandler(e?: React.SyntheticEvent): void;
|
|
7
|
+
confirmText?: string;
|
|
8
|
+
message?: string | React.ReactNode;
|
|
9
|
+
modalNode?: string;
|
|
10
|
+
processing?: boolean;
|
|
11
|
+
rejectText?: string;
|
|
12
|
+
responseHandler(response: boolean, event: React.SyntheticEvent): void;
|
|
13
|
+
title?: string | React.ReactNode;
|
|
14
|
+
width?: number;
|
|
15
|
+
};
|
|
16
|
+
export declare function ConfirmModal(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { ConfirmModal } from './ConfirmModal';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: typeof ConfirmModal;
|
|
5
|
+
title: string;
|
|
6
|
+
args: {
|
|
7
|
+
title: string;
|
|
8
|
+
message: string;
|
|
9
|
+
confirmText: string;
|
|
10
|
+
rejectText: string;
|
|
11
|
+
};
|
|
12
|
+
argTypes: {
|
|
13
|
+
open: {
|
|
14
|
+
control: {
|
|
15
|
+
disable: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
className: {
|
|
19
|
+
control: {
|
|
20
|
+
disable: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
describedBy: {
|
|
24
|
+
control: {
|
|
25
|
+
disable: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
modalNode: {
|
|
29
|
+
control: {
|
|
30
|
+
disable: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
width: {
|
|
34
|
+
control: {
|
|
35
|
+
disable: true;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export default meta;
|
|
41
|
+
type Story = StoryObj<typeof ConfirmModal>;
|
|
42
|
+
export declare const Base: Story;
|
|
43
|
+
export declare const Open: Story;
|
|
44
|
+
export declare const processing: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledConfirmModal: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ConfirmModal } from './ConfirmModal';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PermafrostComponent } from '@/types';
|
|
3
|
+
export type ModalBaseProps = PermafrostComponent & {
|
|
4
|
+
children: React.ReactNode | React.ReactNode[];
|
|
5
|
+
clickToDismiss?(): void;
|
|
6
|
+
describedBy?: string;
|
|
7
|
+
node?: string;
|
|
8
|
+
open: boolean;
|
|
9
|
+
preventEscDismiss?: boolean;
|
|
10
|
+
preventReturnFocus?: boolean;
|
|
11
|
+
maxWidth?: string;
|
|
12
|
+
} & ({
|
|
13
|
+
labelElement: string;
|
|
14
|
+
} | {
|
|
15
|
+
labelText: string;
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* Base modal component, powered by [react-modal](http://reactcommunity.org/react-modal/#usage)
|
|
19
|
+
*
|
|
20
|
+
* (Also see `ModalAdapter` in the styles file)
|
|
21
|
+
*
|
|
22
|
+
* Accessible element label must be included either as a string passed to `labelText`, or
|
|
23
|
+
* the id of one of the children passed to `labelElement`. If a description is available,
|
|
24
|
+
* pass that element’s id to the `describedBy` prop.
|
|
25
|
+
*/
|
|
26
|
+
export declare function ModalBase(props: ModalBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { ModalBase } from './ModalBase';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: typeof ModalBase;
|
|
5
|
+
title: string;
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof ModalBase>;
|
|
9
|
+
export declare const Base: Story;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare function ModalAdapter(props: any): React.ReactElement;
|
|
3
|
+
export declare const StyledModalBase: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never>> & string & Omit<typeof ModalAdapter, keyof React.Component<any, {}, any>>;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledTextTruncate: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextTruncate } from './TextTruncate';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PermafrostComponent } from '@/types';
|
|
3
|
+
type Props = PermafrostComponent & {
|
|
4
|
+
actionLink?: string;
|
|
5
|
+
actionText?: string;
|
|
6
|
+
buttonAction?(): void;
|
|
7
|
+
buttonText?: string;
|
|
8
|
+
message?: string | React.ReactNode;
|
|
9
|
+
messageProps?: {
|
|
10
|
+
'data-cy': string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare function Shrug(props: Props): React.ReactElement;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
import { Shrug } from './Shrug';
|
|
4
|
+
declare const meta: {
|
|
5
|
+
component: typeof Shrug;
|
|
6
|
+
title: string;
|
|
7
|
+
argTypes: {};
|
|
8
|
+
args: {
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
12
|
+
id?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
'data-cy'?: string;
|
|
15
|
+
'data-testid'?: string;
|
|
16
|
+
actionLink?: string;
|
|
17
|
+
actionText?: string;
|
|
18
|
+
buttonAction?: (() => void) | undefined;
|
|
19
|
+
buttonText?: string;
|
|
20
|
+
message?: string | React.ReactNode;
|
|
21
|
+
messageProps?: {
|
|
22
|
+
"data-cy": string;
|
|
23
|
+
};
|
|
24
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
25
|
+
};
|
|
26
|
+
export default meta;
|
|
27
|
+
type Story = StoryObj<typeof Shrug>;
|
|
28
|
+
export declare const MessageOnly: Story;
|
|
29
|
+
export declare const WithButtonAction: Story;
|
|
30
|
+
export declare const WithLinkAction: Story;
|
|
31
|
+
export declare const ComponentMessage: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledShrug: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Shrug } from './Shrug';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Shrug } from './Shrug';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Buttons: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Forms: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GlobalStyles: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Layout: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Lists: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MarginPadding: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Media: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Tables: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Typography: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const UtilityClasses: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GlobalStyles } from './globals';
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
export declare const allColors: {
|
|
2
|
+
readonly akaroa: "#cbc98f";
|
|
3
|
+
readonly alizarin: "#E72326";
|
|
4
|
+
readonly amber: "#f4c401";
|
|
5
|
+
readonly amethyst: "#8e57b3";
|
|
6
|
+
readonly aqua: "#10e4fe";
|
|
7
|
+
readonly astralBlue: "#2f7ca2";
|
|
8
|
+
readonly ateneoBlue: "#0d466a";
|
|
9
|
+
readonly avocado: "#81b12f";
|
|
10
|
+
readonly azure: "#108cf7";
|
|
11
|
+
readonly baliHai: "#8498b6";
|
|
12
|
+
readonly black: "#000";
|
|
13
|
+
readonly blueBayoux: "#4f5e74";
|
|
14
|
+
readonly blueDarknut: "#0070f5";
|
|
15
|
+
readonly blueMagenta: "#542f9d";
|
|
16
|
+
readonly blueRibbon: "#0b35ff";
|
|
17
|
+
readonly blueYonder: "#586fd2";
|
|
18
|
+
readonly bouqet: "#a35c9a";
|
|
19
|
+
readonly brick: "#c62828";
|
|
20
|
+
readonly brightDusk: "#efebf7";
|
|
21
|
+
readonly britishShorthair: "#4b94eb";
|
|
22
|
+
readonly brown: "#785349";
|
|
23
|
+
readonly candyCorn: "#fcef4d";
|
|
24
|
+
readonly carnation: "#ff8adf";
|
|
25
|
+
readonly carrot: "#f29a2d";
|
|
26
|
+
readonly cerise: "#d52a96";
|
|
27
|
+
readonly cerulean: "#008b9e";
|
|
28
|
+
readonly chantilly: "#f7b0eb";
|
|
29
|
+
readonly charcoal: "#474b4b";
|
|
30
|
+
readonly chartreuse: "#34ff01";
|
|
31
|
+
readonly clay: "#283243";
|
|
32
|
+
readonly clementine: "#F16E00";
|
|
33
|
+
readonly cocoaBean: "#5c1200";
|
|
34
|
+
readonly comet: "#5a6982";
|
|
35
|
+
readonly cornflower: "#2060ff";
|
|
36
|
+
readonly crimson: "#e53126";
|
|
37
|
+
readonly curiousBlue: "#178ee0";
|
|
38
|
+
readonly cyan: "#0cf";
|
|
39
|
+
readonly daisyBush: "#431B92";
|
|
40
|
+
readonly darkFontColor: "#0d151d";
|
|
41
|
+
readonly darkGray: "#333";
|
|
42
|
+
readonly darkPurple: "#6f3eae";
|
|
43
|
+
readonly darkRed: "#b30000";
|
|
44
|
+
readonly defaultFontColor: "#bbbfc5";
|
|
45
|
+
readonly dodgerBlue: "#1774ff";
|
|
46
|
+
readonly dusty: "#999999";
|
|
47
|
+
readonly eagleGreen: "#005557";
|
|
48
|
+
readonly ebony: "#101a26";
|
|
49
|
+
readonly eggplant: "#7a0074";
|
|
50
|
+
readonly electricGreen: "#00ff0a";
|
|
51
|
+
readonly emerald: "#09c199";
|
|
52
|
+
readonly endeavor: "#0055B9";
|
|
53
|
+
readonly espresso: "#5a3627";
|
|
54
|
+
readonly fieldPromptError: "#fd9693";
|
|
55
|
+
readonly fieldPromptInfo: "#00bfff";
|
|
56
|
+
readonly flamingo: "#f861b6";
|
|
57
|
+
readonly flirt: "#910870";
|
|
58
|
+
readonly forestGreen: "#1f7f1f";
|
|
59
|
+
readonly frostedOver: "#DCEAFD";
|
|
60
|
+
readonly geraldine: "#fe9486";
|
|
61
|
+
readonly grannysmith: "#92e959";
|
|
62
|
+
readonly green: "#4caf50";
|
|
63
|
+
readonly harlequin: "#20cb00";
|
|
64
|
+
readonly harvestGold: "#e6c079";
|
|
65
|
+
readonly hawkes: "#DCEAFD";
|
|
66
|
+
readonly hemlock: "#626740";
|
|
67
|
+
readonly imperial: "#4b0134";
|
|
68
|
+
readonly iron: "#d9dee0";
|
|
69
|
+
readonly japaneseIndigo: "#264359";
|
|
70
|
+
readonly juniper: "#6d9292";
|
|
71
|
+
readonly khaki: "#bba44b";
|
|
72
|
+
readonly koamaru: "#2f346a";
|
|
73
|
+
readonly korma: "#90370e";
|
|
74
|
+
readonly lavender: "#B086E3";
|
|
75
|
+
readonly lavenderRose: "#fb9fda";
|
|
76
|
+
readonly lightGray: "#eee";
|
|
77
|
+
readonly lightPurple: "#b43be4";
|
|
78
|
+
readonly lilac: "#a195d4";
|
|
79
|
+
readonly lincolnGreen: "#254600";
|
|
80
|
+
readonly magenta: "#ff15e0";
|
|
81
|
+
readonly malibu: "#68C2FB";
|
|
82
|
+
readonly mantis: "#4fa83d";
|
|
83
|
+
readonly maroon: "#ad3349";
|
|
84
|
+
readonly mauve: "#e06cfb";
|
|
85
|
+
readonly mediumGray: "#999";
|
|
86
|
+
readonly midFontColor: "#8593b3";
|
|
87
|
+
readonly mint: "#3ac999";
|
|
88
|
+
readonly mirage: "#182432";
|
|
89
|
+
readonly mulberry: "#5c0536";
|
|
90
|
+
readonly olive: "#807300";
|
|
91
|
+
readonly orange: "#ff7200";
|
|
92
|
+
readonly orchid: "#ab00ff";
|
|
93
|
+
readonly oxfordBlue: "#384558";
|
|
94
|
+
readonly pacific: "#00b5b6";
|
|
95
|
+
readonly palm: "#1aa511";
|
|
96
|
+
readonly persian: "#1717cf";
|
|
97
|
+
readonly persianLight: "#0327ce";
|
|
98
|
+
readonly pine: "#017074";
|
|
99
|
+
readonly pink: "#f74f8a";
|
|
100
|
+
readonly pistachio: "#aac609";
|
|
101
|
+
readonly raspberry: "#990030";
|
|
102
|
+
readonly red: "#f95359";
|
|
103
|
+
readonly robinsEggBlue: "#00bcd4";
|
|
104
|
+
readonly romanSilver: "#7d888d";
|
|
105
|
+
readonly sagatPurple: "#6833d0";
|
|
106
|
+
readonly salem: "#03832e";
|
|
107
|
+
readonly sapGreen: "#5f7e20";
|
|
108
|
+
readonly seaGreen: "#0b8a51";
|
|
109
|
+
readonly seance: "#7f1f82";
|
|
110
|
+
readonly shiraz: "#c61021";
|
|
111
|
+
readonly silverChalice: "#aaaaaa";
|
|
112
|
+
readonly sinopia: "#D14200";
|
|
113
|
+
readonly slaaneshGrey: "#dbd5e6";
|
|
114
|
+
readonly tangerine: "#ff9900";
|
|
115
|
+
readonly teal: "#008285";
|
|
116
|
+
readonly toast: "#997862";
|
|
117
|
+
readonly trueBlue: "#066CC6";
|
|
118
|
+
readonly tundora: "#444444";
|
|
119
|
+
readonly turquoise: "#00b5b6";
|
|
120
|
+
readonly vermilion: "#b95555";
|
|
121
|
+
readonly viking: "#59cfe0";
|
|
122
|
+
readonly violet: "#3e4eb8";
|
|
123
|
+
readonly violetBlue: "#8060d2";
|
|
124
|
+
readonly walnut: "#783f00";
|
|
125
|
+
readonly white: "#fff";
|
|
126
|
+
readonly windsorTan: "#b35c00";
|
|
127
|
+
readonly yellow: "#ffca28";
|
|
128
|
+
readonly zucchini: "#016422";
|
|
129
|
+
readonly hiliteFontColor: "#fff";
|
|
130
|
+
readonly lightFontColor: "#eee";
|
|
131
|
+
readonly borderColor: "#eee";
|
|
132
|
+
readonly actionColor: "#8593b3";
|
|
133
|
+
readonly backgroundColor: "#182432";
|
|
134
|
+
};
|
|
135
|
+
export type ColorName = keyof typeof allColors;
|
|
136
|
+
export declare const baseColors: string[];
|
|
137
|
+
export declare const layoutColors: string[];
|
|
138
|
+
export declare const grayColors: string[];
|
|
139
|
+
export declare const fontColors: string[];
|
|
140
|
+
export declare const buttonColors: string[];
|
|
141
|
+
export declare const newButtonColors: string[];
|
|
142
|
+
export declare const vizColors: string[];
|
|
143
|
+
export declare const vizColorsArray: string[];
|
|
144
|
+
export declare const fieldColors: string[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { animation as ANIMATION } from './animation';
|
|
2
|
+
export { breakpoints as BREAKPOINT, mediaQueries as MEDIA_QUERIES } from './breakpoints';
|
|
3
|
+
export { typography as TYPOGRAPHY, fontSize as FONT_SIZE } from './typography';
|
|
4
|
+
export { padding as PADDINGS } from './padding';
|
|
5
|
+
export { spacings as SPACING } from './spacings';
|
|
6
|
+
export { margin as MARGINS } from './margin';
|
|
7
|
+
export { MATH } from './numbers';
|
|
8
|
+
export { allColors as COLORS, baseColors as BASE_COLORS, fieldColors as FIELD_COLORS, layoutColors as LAYOUT_COLORS, grayColors as GRAY_COLORS, fontColors as FONT_COLORS, buttonColors as BUTTON_COLORS, newButtonColors as NEW_BUTTON_COLORS, vizColors as VIZ_COLORS, vizColorsArray as VIZ_COLORS_ARRAY, } from './colors';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function decimalAdjust(type: any, value: any, exp: any): any;
|
|
2
|
+
export function round10(value: any, exp: any): any;
|
|
3
|
+
export function clamp(value: any, min: any, max: any): any;
|
|
4
|
+
export function numberWithCommas(x: any): any;
|
|
5
|
+
export namespace MATH {
|
|
6
|
+
export { decimalAdjust };
|
|
7
|
+
export { round10 };
|
|
8
|
+
export { clamp };
|
|
9
|
+
export { numberWithCommas };
|
|
10
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export declare const fontStack: readonly ["Noto Sans", "Avenir Next", "Avenir", "Noto", "sans-serif"];
|
|
2
|
+
export declare const fontFamily: {
|
|
3
|
+
base: string;
|
|
4
|
+
heading: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const fontSize: {
|
|
7
|
+
readonly caption: "12px";
|
|
8
|
+
readonly base: "14px";
|
|
9
|
+
readonly subheadSmall: "16px";
|
|
10
|
+
readonly subheadLarge: "18px";
|
|
11
|
+
readonly subheadXl: "22px";
|
|
12
|
+
readonly display: "30px";
|
|
13
|
+
};
|
|
14
|
+
export declare const lineHeight: {
|
|
15
|
+
readonly base: 1.25;
|
|
16
|
+
readonly heading: 1.2;
|
|
17
|
+
};
|
|
18
|
+
export declare const spacing: {
|
|
19
|
+
base: string;
|
|
20
|
+
half: string;
|
|
21
|
+
quarter: string;
|
|
22
|
+
third: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const weight: {
|
|
25
|
+
light: number;
|
|
26
|
+
regular: number;
|
|
27
|
+
semibold: number;
|
|
28
|
+
bold: number;
|
|
29
|
+
};
|
|
30
|
+
export declare const ellipsis: import("styled-components").RuleSet<object>;
|
|
31
|
+
export declare const typography: {
|
|
32
|
+
fontFamily: {
|
|
33
|
+
base: string;
|
|
34
|
+
heading: string;
|
|
35
|
+
};
|
|
36
|
+
fontSize: {
|
|
37
|
+
readonly caption: "12px";
|
|
38
|
+
readonly base: "14px";
|
|
39
|
+
readonly subheadSmall: "16px";
|
|
40
|
+
readonly subheadLarge: "18px";
|
|
41
|
+
readonly subheadXl: "22px";
|
|
42
|
+
readonly display: "30px";
|
|
43
|
+
};
|
|
44
|
+
lineHeight: {
|
|
45
|
+
readonly base: 1.25;
|
|
46
|
+
readonly heading: 1.2;
|
|
47
|
+
};
|
|
48
|
+
spacing: {
|
|
49
|
+
base: string;
|
|
50
|
+
half: string;
|
|
51
|
+
quarter: string;
|
|
52
|
+
third: string;
|
|
53
|
+
};
|
|
54
|
+
ellipsis: import("styled-components").RuleSet<object>;
|
|
55
|
+
weight: {
|
|
56
|
+
light: number;
|
|
57
|
+
regular: number;
|
|
58
|
+
semibold: number;
|
|
59
|
+
bold: number;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const mix: (color_1: string, color_2: string, weight: number) => string;
|
|
2
|
+
export declare const shade: (color: string, percentage: number) => string;
|
|
3
|
+
export declare const tint: (color: string, percentage: number) => string;
|
|
4
|
+
/**
|
|
5
|
+
* Converts hex color values to rgb or rgba values if a opacity is supplied
|
|
6
|
+
* @param hex
|
|
7
|
+
* @returns {*}
|
|
8
|
+
*/
|
|
9
|
+
export declare const hexToRgb: (hex: string, opacity?: number) => string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Takes a 3- or 6-character hex color value, and returns an object containing
|
|
12
|
+
* its equivalent HSL values.
|
|
13
|
+
*
|
|
14
|
+
* @see {@link https://css-tricks.com/converting-color-spaces-in-javascript/}
|
|
15
|
+
* @see {@link https://gist.github.com/mjackson/5311256}
|
|
16
|
+
*/
|
|
17
|
+
export declare function hexToHsl(hexColor: string): {
|
|
18
|
+
hue: number;
|
|
19
|
+
saturation: number;
|
|
20
|
+
lightness: number;
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Takes a number and formats it nicely.
|
|
3
|
+
*
|
|
4
|
+
* @example numberWithCommas(12345)
|
|
5
|
+
* // returns 12,345
|
|
6
|
+
*/
|
|
7
|
+
export declare function numberWithCommas(value: number): string;
|
|
8
|
+
/**
|
|
9
|
+
* Takes a number and returns it, rounded up to the maximum decimal places specified.
|
|
10
|
+
*
|
|
11
|
+
* @example maxDecimalPlaces(0.1694915254237288, 2)
|
|
12
|
+
* // returns 0.17
|
|
13
|
+
*
|
|
14
|
+
* @example maxDecimalPlaces(0.1694915254237288, 3)
|
|
15
|
+
* // returns 0.169
|
|
16
|
+
*
|
|
17
|
+
* @example maxDecimalPlaces(12.902, 2)
|
|
18
|
+
* // returns 12.9
|
|
19
|
+
*/
|
|
20
|
+
export declare function maxDecimalPlaces(value: number, decimalPlaces: number): number;
|
|
21
|
+
export declare function formatConfidence(confidence: number): number;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const camelCaseToUpperUnderscore: (string: string) => string;
|
|
2
|
+
export declare const camelCaseToSpaceUpper: (string: string) => string;
|
|
3
|
+
export declare const underscoreToCapitalize: (string: string) => string;
|
|
4
|
+
export declare const snakeCaseToCamelCase: (string: string) => string;
|
|
5
|
+
export declare function capitalize(string: string): string;
|
|
6
|
+
export declare function capitalizeFirstOnly(string: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Generates a random string of English alphabet characters. Defaults to a length of 8.
|
|
9
|
+
*/
|
|
10
|
+
export declare function createRandomString(length?: number): string;
|
|
11
|
+
export declare const maxLengthWithEllipse: (string: string, maxLength: number) => string;
|
|
12
|
+
export declare const maxLengthWithMiddleEllipsis: (string: string, maxLength: number) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|