@indico-data/design-system 3.22.0 → 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 +238 -36
- package/lib/index.d.ts +34 -2
- package/lib/index.esm.css +238 -36
- 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 +50 -9
- 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
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { IconButton } from './IconButton';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: typeof IconButton;
|
|
5
|
+
title: string;
|
|
6
|
+
args: {
|
|
7
|
+
iconSide: "start";
|
|
8
|
+
size: "normal";
|
|
9
|
+
variant: "default";
|
|
10
|
+
};
|
|
11
|
+
argTypes: {
|
|
12
|
+
onPress: {
|
|
13
|
+
action: string;
|
|
14
|
+
};
|
|
15
|
+
isDisabled: {
|
|
16
|
+
control: {
|
|
17
|
+
type: "boolean";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
adjustAlignment: {
|
|
21
|
+
description: string;
|
|
22
|
+
defaultValue: number;
|
|
23
|
+
};
|
|
24
|
+
className: {
|
|
25
|
+
control: {
|
|
26
|
+
disable: true;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
style: {
|
|
30
|
+
control: {
|
|
31
|
+
disable: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export default meta;
|
|
37
|
+
type Story = StoryObj<typeof IconButton>;
|
|
38
|
+
export declare const Normal: Story;
|
|
39
|
+
export declare const NoLabel: Story;
|
|
40
|
+
export declare const IconAtEnd: Story;
|
|
41
|
+
export declare const Busy: Story;
|
|
42
|
+
export declare const Disabled: Story;
|
|
43
|
+
export declare const AsLink: Story;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const iconButton: import("styled-components").RuleSet<object>;
|
|
2
|
+
export declare const StyledIconButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
3
|
+
export declare const StyledIconButtonLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react-router-dom").LinkProps & import("react").RefAttributes<HTMLAnchorElement>, "ref"> & {
|
|
4
|
+
ref?: ((instance: HTMLAnchorElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLAnchorElement> | null | undefined;
|
|
5
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("react-router-dom").LinkProps & import("react").RefAttributes<HTMLAnchorElement>>, keyof import("react").Component<any, {}, any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IconButton } from './IconButton';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const defaultHeight = "36px";
|
|
2
|
+
export declare const largeHeight = "50px";
|
|
3
|
+
export declare const basicDefaults: import("styled-components").RuleSet<object>;
|
|
4
|
+
export declare const defaults: import("styled-components").RuleSet<object>;
|
|
5
|
+
export declare const sizeLarge: import("styled-components").RuleSet<object>;
|
|
6
|
+
export declare const variantDefault: import("styled-components").RuleSet<object>;
|
|
7
|
+
export declare const variantPrimary: import("styled-components").RuleSet<object>;
|
|
8
|
+
export declare const variantDestructive: import("styled-components").RuleSet<object>;
|
|
9
|
+
export declare const disabledOverrides: import("styled-components").RuleSet<object>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PermafrostComponent } from '@/types';
|
|
3
|
+
type Props = PermafrostComponent & {
|
|
4
|
+
defaultValue?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
horizontal?: boolean;
|
|
7
|
+
initialText?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
onChange(e: React.ChangeEvent<HTMLSelectElement>): void;
|
|
10
|
+
options: {
|
|
11
|
+
name: string;
|
|
12
|
+
value: string | number;
|
|
13
|
+
}[];
|
|
14
|
+
style?: object;
|
|
15
|
+
value?: string | number;
|
|
16
|
+
validationErrors?: string[];
|
|
17
|
+
};
|
|
18
|
+
export declare const BorderSelect: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { BorderSelect } from './BorderSelect';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: (props: import("../../../../types").PermafrostComponent & {
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
horizontal?: boolean;
|
|
8
|
+
initialText?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
onChange(e: import("react").ChangeEvent<HTMLSelectElement>): void;
|
|
11
|
+
options: {
|
|
12
|
+
name: string;
|
|
13
|
+
value: string | number;
|
|
14
|
+
}[];
|
|
15
|
+
style?: object;
|
|
16
|
+
value?: string | number;
|
|
17
|
+
validationErrors?: string[];
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
title: string;
|
|
20
|
+
argTypes: {};
|
|
21
|
+
args: {
|
|
22
|
+
onChange: () => void;
|
|
23
|
+
options: {
|
|
24
|
+
name: string;
|
|
25
|
+
value: string;
|
|
26
|
+
}[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export default meta;
|
|
30
|
+
type Story = StoryObj<typeof BorderSelect>;
|
|
31
|
+
export declare const Base: Story;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const StyledSelect: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export declare const StyledValidationError: 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 { BorderSelect } from './BorderSelect';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PermafrostComponent } from '@/types';
|
|
3
|
+
import type { ComboboxProps, ComboboxOption } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Multiselect combobox component. If selections are not bound to outside state
|
|
6
|
+
* via the `value` prop, you will need to import and use the `useCombobox` hook
|
|
7
|
+
* in order to clear its selected value .
|
|
8
|
+
*
|
|
9
|
+
* @see [useCombobox]{@link import('useCombobox').useCombobox}
|
|
10
|
+
*/
|
|
11
|
+
export declare const MultiCombobox: React.ForwardRefExoticComponent<PermafrostComponent & ComboboxProps & {
|
|
12
|
+
/**
|
|
13
|
+
* MultiValue is a selected option in the input area
|
|
14
|
+
*/
|
|
15
|
+
multiValueProps?: {
|
|
16
|
+
"data-cy": string;
|
|
17
|
+
};
|
|
18
|
+
optionProps?: {
|
|
19
|
+
"data-cy": string;
|
|
20
|
+
};
|
|
21
|
+
values?: ComboboxOption[];
|
|
22
|
+
onChange: (selectedOption: ComboboxOption[]) => void;
|
|
23
|
+
} & React.RefAttributes<unknown>>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
import { ComboboxOption } from '../types';
|
|
4
|
+
import { MultiCombobox } from './MultiCombobox';
|
|
5
|
+
declare const meta: {
|
|
6
|
+
component: React.ForwardRefExoticComponent<import("../../../../types").PermafrostComponent & import("../types").ComboboxProps & {
|
|
7
|
+
multiValueProps?: {
|
|
8
|
+
"data-cy": string;
|
|
9
|
+
};
|
|
10
|
+
optionProps?: {
|
|
11
|
+
"data-cy": string;
|
|
12
|
+
};
|
|
13
|
+
values?: ComboboxOption[];
|
|
14
|
+
onChange: (selectedOption: ComboboxOption[]) => void;
|
|
15
|
+
} & React.RefAttributes<unknown>>;
|
|
16
|
+
title: string;
|
|
17
|
+
argTypes: {
|
|
18
|
+
options: {
|
|
19
|
+
control: {
|
|
20
|
+
disable: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
defaultValue: {
|
|
24
|
+
control: {
|
|
25
|
+
disable: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
args: {
|
|
30
|
+
options: {
|
|
31
|
+
value: string;
|
|
32
|
+
label: string;
|
|
33
|
+
}[];
|
|
34
|
+
placeholder: string;
|
|
35
|
+
onChange: (selectedOptions: ComboboxOption[]) => void;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export default meta;
|
|
39
|
+
type Story = StoryObj<typeof MultiCombobox>;
|
|
40
|
+
export declare const Normal: Story;
|
|
41
|
+
export declare const Open: Story;
|
|
42
|
+
export declare const Loading: Story;
|
|
43
|
+
export declare const Disabled: Story;
|
|
44
|
+
export declare const WithSelections: Story;
|
|
45
|
+
export declare const WithCustomOptionComponent: Story;
|
|
46
|
+
export declare const WithDataCyAttributes: Story;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import ReactSelect from 'react-select';
|
|
2
|
+
export declare const StyledMultiCombobox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<unknown, boolean, import("react-select").GroupBase<unknown>>, "onChange" | "value" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<unknown, boolean, import("react-select").GroupBase<unknown>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<unknown> & import("react").RefAttributes<import("react-select/dist/declarations/src/Select").default<unknown, boolean, import("react-select").GroupBase<unknown>>>, "ref"> & {
|
|
3
|
+
ref?: ((instance: import("react-select/dist/declarations/src/Select").default<unknown, boolean, import("react-select").GroupBase<unknown>> | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<import("react-select/dist/declarations/src/Select").default<unknown, boolean, import("react-select").GroupBase<unknown>>> | null | undefined;
|
|
4
|
+
}, never>> & string & Omit<ReactSelect, keyof import("react").Component<any, {}, any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MultiCombobox } from './MultiCombobox';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PermafrostComponent } from '@/types';
|
|
3
|
+
import { ComboboxSize, ComboboxVariant } from '../types';
|
|
4
|
+
type Props = PermafrostComponent & {
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
initialText?: string;
|
|
7
|
+
options: {
|
|
8
|
+
name: string;
|
|
9
|
+
value: string | number;
|
|
10
|
+
}[];
|
|
11
|
+
size?: ComboboxSize;
|
|
12
|
+
style?: object;
|
|
13
|
+
value?: string | number;
|
|
14
|
+
variant?: ComboboxVariant;
|
|
15
|
+
onChange(e: React.ChangeEvent<HTMLSelectElement>): void;
|
|
16
|
+
onClick?(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
17
|
+
};
|
|
18
|
+
export declare const Select: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Select } from './Select';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: (props: import("../../../../types").PermafrostComponent & {
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
initialText?: string;
|
|
7
|
+
options: {
|
|
8
|
+
name: string;
|
|
9
|
+
value: string | number;
|
|
10
|
+
}[];
|
|
11
|
+
size?: import("../types").ComboboxSize;
|
|
12
|
+
style?: object;
|
|
13
|
+
value?: string | number;
|
|
14
|
+
variant?: import("../types").ComboboxVariant;
|
|
15
|
+
onChange(e: import("react").ChangeEvent<HTMLSelectElement>): void;
|
|
16
|
+
onClick?(e: import("react").MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
17
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
title: string;
|
|
19
|
+
argTypes: {};
|
|
20
|
+
args: {
|
|
21
|
+
onChange: () => void;
|
|
22
|
+
options: {
|
|
23
|
+
name: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default meta;
|
|
29
|
+
type Story = StoryObj<typeof Select>;
|
|
30
|
+
export declare const Base: Story;
|
|
31
|
+
export declare const InitialText: Story;
|
|
32
|
+
export declare const Disabled: Story;
|
|
33
|
+
export declare const Small: Story;
|
|
34
|
+
export declare const Light: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledSelect: 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 { Select } from './Select';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PermafrostComponent } from '@/types';
|
|
3
|
+
import type { ComboboxProps, ComboboxOption } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Combobox component to select a single option. If selections are not bound to
|
|
6
|
+
* outside state via the `value` prop, you will need to import and use the
|
|
7
|
+
* `useCombobox` hook in order to clear its selected value.
|
|
8
|
+
*
|
|
9
|
+
* @see [useCombobox]{@link import('useCombobox').useCombobox}
|
|
10
|
+
*/
|
|
11
|
+
export declare const SingleCombobox: React.ForwardRefExoticComponent<PermafrostComponent & ComboboxProps & {
|
|
12
|
+
dropdownIndicatorProps?: {
|
|
13
|
+
"data-cy": string;
|
|
14
|
+
};
|
|
15
|
+
optionProps?: {
|
|
16
|
+
"data-cy": string;
|
|
17
|
+
};
|
|
18
|
+
value?: ComboboxOption;
|
|
19
|
+
onChange: (selectedOption: ComboboxOption) => void;
|
|
20
|
+
} & React.RefAttributes<unknown>>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { ComboboxOption } from '../types';
|
|
3
|
+
import { SingleCombobox } from './SingleCombobox';
|
|
4
|
+
declare const meta: {
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<import("../../../../types").PermafrostComponent & import("../types").ComboboxProps & {
|
|
6
|
+
dropdownIndicatorProps?: {
|
|
7
|
+
"data-cy": string;
|
|
8
|
+
};
|
|
9
|
+
optionProps?: {
|
|
10
|
+
"data-cy": string;
|
|
11
|
+
};
|
|
12
|
+
value?: ComboboxOption;
|
|
13
|
+
onChange: (selectedOption: ComboboxOption) => void;
|
|
14
|
+
} & import("react").RefAttributes<unknown>>;
|
|
15
|
+
title: string;
|
|
16
|
+
argTypes: {};
|
|
17
|
+
args: {
|
|
18
|
+
options: {
|
|
19
|
+
value: string;
|
|
20
|
+
label: string;
|
|
21
|
+
}[];
|
|
22
|
+
placeholder: string;
|
|
23
|
+
onChange: (selectedOption: ComboboxOption) => void;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export default meta;
|
|
27
|
+
type Story = StoryObj<typeof SingleCombobox>;
|
|
28
|
+
export declare const Normal: Story;
|
|
29
|
+
export declare const Open: Story;
|
|
30
|
+
export declare const Disabled: Story;
|
|
31
|
+
export declare const WithDataCyAttributes: Story;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import ReactSelect from 'react-select';
|
|
2
|
+
export declare const StyledSingleCombobox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<unknown, boolean, import("react-select").GroupBase<unknown>>, "onChange" | "value" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<unknown, boolean, import("react-select").GroupBase<unknown>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<unknown> & import("react").RefAttributes<import("react-select/dist/declarations/src/Select").default<unknown, boolean, import("react-select").GroupBase<unknown>>>, "ref"> & {
|
|
3
|
+
ref?: ((instance: import("react-select/dist/declarations/src/Select").default<unknown, boolean, import("react-select").GroupBase<unknown>> | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<import("react-select/dist/declarations/src/Select").default<unknown, boolean, import("react-select").GroupBase<unknown>>> | null | undefined;
|
|
4
|
+
}, never>> & string & Omit<ReactSelect, keyof import("react").Component<any, {}, any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SingleCombobox } from './SingleCombobox';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const basicDefaults: import("styled-components").RuleSet<object>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type ComboboxProps = {
|
|
2
|
+
'aria-label'?: string;
|
|
3
|
+
'aria-labelledby'?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
closeMenuOnSelect?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Function to generate a custom React component for every available list `Option`
|
|
8
|
+
* @see {@link https://react-select.com/props#option}
|
|
9
|
+
*/
|
|
10
|
+
customOption?: (props: any) => JSX.Element;
|
|
11
|
+
/**
|
|
12
|
+
* Customize the text to appear in selected items.
|
|
13
|
+
*
|
|
14
|
+
* @example (option) => `${option.value}`
|
|
15
|
+
*/
|
|
16
|
+
customOptionLabel?(option: any): string;
|
|
17
|
+
/**
|
|
18
|
+
* Customize the value for the Combobox to use. Defaults to `value`
|
|
19
|
+
*
|
|
20
|
+
* @example (option) => `${option.id}`
|
|
21
|
+
*/
|
|
22
|
+
customOptionValue?(option: any): string;
|
|
23
|
+
defaultValue?: any[];
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
loading?: boolean;
|
|
26
|
+
menuIsOpen?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Custom text to show if there are no more items available to select
|
|
29
|
+
*/
|
|
30
|
+
noOptionsMessage?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Combobox defaults to expect { label: string; value: string; } at minimum - use `customOptionLabel` and `customOptionValue` props to change
|
|
33
|
+
*/
|
|
34
|
+
options: ComboboxOption[];
|
|
35
|
+
/**
|
|
36
|
+
* Input placeholder text
|
|
37
|
+
*/
|
|
38
|
+
placeholder?: string;
|
|
39
|
+
};
|
|
40
|
+
export type ComboboxOption = {
|
|
41
|
+
label?: string;
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
};
|
|
44
|
+
export type ComboboxSize = 'small' | 'medium';
|
|
45
|
+
export type ComboboxVariant = 'default' | 'light';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @filename useCombobox.ts
|
|
4
|
+
* Allows access to the internals of a MultiCombobox component. For example, a discrete
|
|
5
|
+
* button to clear all selected values.
|
|
6
|
+
*
|
|
7
|
+
* In your component’s file, import this hook and create a `ref` to the component.
|
|
8
|
+
* Then, pass the ref into this hook.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* const comboboxEl = useRef(null);
|
|
12
|
+
* const { clearValue } = useCombobox(comboboxEl);
|
|
13
|
+
*
|
|
14
|
+
* <MultiCombobox ref={comboboxEl} ... />
|
|
15
|
+
*
|
|
16
|
+
* const handleSubmit = () => {
|
|
17
|
+
* clearValue();
|
|
18
|
+
* };
|
|
19
|
+
*
|
|
20
|
+
* @see {@link https://react-select.com/props}
|
|
21
|
+
* @see {@link https://github.com/JedWatson/react-select/discussions/4352}
|
|
22
|
+
*/
|
|
23
|
+
export declare function useCombobox(comboboxEl: React.RefObject<any>): {
|
|
24
|
+
clearValue: () => void;
|
|
25
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adds custom props to a react-select component
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* type Props = ComboboxProps & {
|
|
6
|
+
* multiValueProps: {
|
|
7
|
+
* 'data-cy': string;
|
|
8
|
+
* };
|
|
9
|
+
*
|
|
10
|
+
* <StyledMultiCombobox
|
|
11
|
+
* ...
|
|
12
|
+
* components={{
|
|
13
|
+
* MultiValue: addCustomProps(MultiValue, { ...multiValueProps }),
|
|
14
|
+
* ...
|
|
15
|
+
*
|
|
16
|
+
* @see {@link https://gist.github.com/MikaelCarpenter/1fe226967b00eea82e6a4760b244ada1}
|
|
17
|
+
*/
|
|
18
|
+
export declare const addCustomProps: (Component: any, customProps: {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
}) => (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PermafrostComponent } from '@/types';
|
|
3
|
+
type Props = PermafrostComponent & {
|
|
4
|
+
children: React.ReactNode | string;
|
|
5
|
+
minLength?: number;
|
|
6
|
+
onUpdate?(newValue: string): void;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Wrapper component which enables text editing in place directly on a child component,
|
|
10
|
+
* element, or plain text.
|
|
11
|
+
*/
|
|
12
|
+
export declare function EditableInput(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { EditableInput } from './EditableInput';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: typeof EditableInput;
|
|
5
|
+
title: string;
|
|
6
|
+
args: {
|
|
7
|
+
children: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
argTypes: {};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof EditableInput>;
|
|
13
|
+
export declare const Normal: Story;
|
|
14
|
+
export declare const MinLengthEight: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledEditableInput: 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 { EditableInput } from './EditableInput';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PermafrostComponent } from '@/types';
|
|
3
|
+
export type Props = PermafrostComponent & {
|
|
4
|
+
autoFocus?: boolean;
|
|
5
|
+
decrement?(): void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
hiddenLabel?: boolean;
|
|
8
|
+
increment?(): void;
|
|
9
|
+
label: string;
|
|
10
|
+
max?: number;
|
|
11
|
+
min?: number;
|
|
12
|
+
onChange(value: number | ''): void;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
step?: string;
|
|
16
|
+
tabIndex?: number;
|
|
17
|
+
value: number | '';
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Basic numeric input field. A label is required, but may be visually hidden
|
|
21
|
+
* using the `hiddenLabel` property.
|
|
22
|
+
*/
|
|
23
|
+
export declare function NumberInput(props: Props): React.ReactElement;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { NumberInput } from './NumberInput';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: typeof NumberInput;
|
|
5
|
+
title: string;
|
|
6
|
+
argTypes: {
|
|
7
|
+
className: {
|
|
8
|
+
control: {
|
|
9
|
+
disable: true;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
value: {
|
|
13
|
+
control: {
|
|
14
|
+
disable: true;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof NumberInput>;
|
|
21
|
+
export declare const Base: Story;
|
|
22
|
+
export declare const Required: Story;
|
|
23
|
+
export declare const Disabled: Story;
|
|
24
|
+
export declare const WithMinimum: Story;
|
|
25
|
+
export declare const WithMaximum: Story;
|
|
26
|
+
export declare const WithMinMax: Story;
|
|
27
|
+
export declare const WithDecimalStep: Story;
|
|
28
|
+
export declare const WithPlaceholderText: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledNumberField: 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 { NumberInput } from './NumberInput';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AriaRadioProps, RadioGroupProps } from '@react-types/radio';
|
|
3
|
+
import { PermafrostComponent } from '@/types';
|
|
4
|
+
type Props = {
|
|
5
|
+
['aria-label']: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
hideFocusRing: boolean;
|
|
8
|
+
color: string;
|
|
9
|
+
labelColor: string;
|
|
10
|
+
hoverAndSelectedColor: string;
|
|
11
|
+
focusRingColor: string;
|
|
12
|
+
value: string;
|
|
13
|
+
} & RadioGroupProps & PermafrostComponent;
|
|
14
|
+
/**
|
|
15
|
+
* Renders a group of radio buttons.
|
|
16
|
+
*
|
|
17
|
+
* A group label must be included: either pass a string or markup into the
|
|
18
|
+
* `label` prop, or include an `aria-label` or `aria-labelledby` attribute.
|
|
19
|
+
*/
|
|
20
|
+
export declare function RadioGroup({ children, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
/**
|
|
22
|
+
* A single radio button and its label.
|
|
23
|
+
*/
|
|
24
|
+
export declare function Radio({ children, ...props }: AriaRadioProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { RadioGroup } from './RadioButtons';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: typeof RadioGroup;
|
|
5
|
+
title: string;
|
|
6
|
+
args: {};
|
|
7
|
+
tags: string[];
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof RadioGroup>;
|
|
11
|
+
export declare const Normal: Story;
|
|
12
|
+
export declare const CustomColors: Story;
|
|
13
|
+
export declare const WithHiddenLabel: Story;
|
|
14
|
+
export declare const Horizontal: Story;
|
|
15
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AbstractRadioGroup } from '../RadioGroup';
|
|
2
|
+
export declare const StyledRadioGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../../../../types").PermafrostComponent & {
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (value: string) => void;
|
|
5
|
+
children: import("react").ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
} & import("@react-types/radio").AriaRadioGroupProps, {
|
|
8
|
+
hideFocusRing: boolean;
|
|
9
|
+
color: string;
|
|
10
|
+
labelColor: string;
|
|
11
|
+
hoverAndSelectedColor: string;
|
|
12
|
+
focusRingColor: string;
|
|
13
|
+
}>> & string & Omit<typeof AbstractRadioGroup, keyof import("react").Component<any, {}, any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Radio, RadioGroup } from './RadioButtons';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AriaRadioGroupProps, AriaRadioProps } from '@react-types/radio';
|
|
3
|
+
import { RadioGroupState } from 'react-stately';
|
|
4
|
+
import { PermafrostComponent } from '@/types';
|
|
5
|
+
export type RadioGroupProps = PermafrostComponent & {
|
|
6
|
+
value?: string;
|
|
7
|
+
onChange?: (value: string) => void;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
} & AriaRadioGroupProps;
|
|
11
|
+
export declare const RadioContext: React.Context<RadioGroupState>;
|
|
12
|
+
/**
|
|
13
|
+
* Renders a group of radio buttons with no styling. This component is not
|
|
14
|
+
* designed to be user-facing, and should only be used to provide functionality.
|
|
15
|
+
*
|
|
16
|
+
* A group label must be included: either pass a string or markup into the
|
|
17
|
+
* `label` prop, or include an `aria-label` or `aria-labelledby` attribute.
|
|
18
|
+
*/
|
|
19
|
+
export declare function RadioGroup(props: RadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
/**
|
|
21
|
+
* A single radio button and its label; no styling is applied, and the native
|
|
22
|
+
* radio button is visually hidden.
|
|
23
|
+
*/
|
|
24
|
+
export declare function Radio(props: AriaRadioProps & {
|
|
25
|
+
className?: string;
|
|
26
|
+
isVisuallySelected?: (selectedValue: string) => void;
|
|
27
|
+
}): import("react/jsx-runtime").JSX.Element;
|