@indico-data/design-system 2.1.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/lib/build/generated/iconTypes.d.ts +2 -0
- package/lib/index.css +37 -0
- package/lib/index.d.ts +11 -1364
- package/lib/index.esm.css +37 -0
- package/lib/index.esm.js +28288 -12273
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +28289 -12276
- package/lib/index.js.map +1 -1
- package/lib/{components → src/components}/button/types.d.ts +1 -1
- package/lib/src/components/icons/Icon.d.ts +4 -0
- package/lib/src/components/icons/Icon.stories.d.ts +10 -0
- package/lib/src/components/icons/index.d.ts +1 -0
- package/lib/src/components/icons/types.d.ts +10 -0
- package/lib/{components → src/components}/index.d.ts +1 -0
- package/lib/src/index.d.ts +8 -0
- package/lib/{legacy → src/legacy}/components/Toggle/Toggle.d.ts +2 -1
- package/lib/src/legacy/components/Toggle/Toggle.stories.d.ts +21 -0
- package/lib/{legacy → src/legacy}/components/index.d.ts +0 -1
- package/lib/{legacy → src/legacy}/components/inputs/NoInputDatePicker/NoInputDatePicker.d.ts +2 -1
- package/lib/{legacy → src/legacy}/components/loading-indicators/CircleSpinner/CircleSpinner.d.ts +3 -4
- package/lib/src/legacy/components/text-truncate/TextTruncate.test.d.ts +1 -0
- package/lib/src/types.d.ts +12 -0
- package/package.json +17 -14
- package/rollup.config.mjs +2 -2
- package/scripts/generateIconTypes.js +50 -0
- package/src/components/button/Button.tsx +1 -2
- package/src/components/button/types.ts +2 -1
- package/src/components/icons/Icon.mdx +49 -0
- package/src/components/icons/Icon.stories.tsx +248 -0
- package/src/components/icons/Icon.tsx +45 -0
- package/src/components/icons/__tests__/Icon.test.tsx +104 -0
- package/src/components/icons/index.ts +1 -0
- package/src/{legacy/components/Icon → components/icons}/indicons.tsx +17 -17
- package/src/components/icons/styles/Icon.scss +23 -0
- package/src/components/icons/types.ts +12 -0
- package/src/components/index.ts +1 -0
- package/src/index.ts +1 -3
- package/src/legacy/components/Accordion/Accordion.tsx +2 -2
- package/src/legacy/components/ListTable/Header/Header.tsx +1 -2
- package/src/legacy/components/ListTable/ListTable.stories.tsx +2 -1
- package/src/legacy/components/Navigation/Drawer/Drawer.tsx +2 -2
- package/src/legacy/components/Navigation/Drawer/DrawerLinkList.tsx +2 -2
- package/src/legacy/components/Toggle/Toggle.styles.ts +1 -1
- package/src/legacy/components/Toggle/Toggle.tsx +17 -4
- package/src/legacy/components/basic-section/SectionTable/SectionTable.tsx +1 -1
- package/src/legacy/components/buttons/Button/Button.tsx +1 -1
- package/src/legacy/components/buttons/IconButton/IconButton.tsx +2 -2
- package/src/legacy/components/dropdowns/BorderSelect/BorderSelect.tsx +1 -1
- package/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.stories.tsx +8 -7
- package/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.styles.ts +3 -1
- package/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.tsx +2 -2
- package/src/legacy/components/dropdowns/Select/Select.tsx +3 -3
- package/src/legacy/components/dropdowns/SingleCombobox/SingleCombobox.tsx +2 -2
- package/src/legacy/components/index.ts +1 -1
- package/src/legacy/components/inputs/EditableInput/EditableInput.tsx +1 -1
- package/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.stories.tsx +2 -2
- package/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.tsx +5 -4
- package/src/legacy/components/inputs/NumberInput/NumberInput.tsx +1 -1
- package/src/legacy/components/inputs/SearchInput/SearchInput.tsx +1 -1
- package/src/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.tsx +8 -8
- package/src/legacy/components/user-feedback/Shrug/Shrug.styles.ts +2 -0
- package/src/legacy/components/user-feedback/Shrug/Shrug.tsx +4 -4
- package/src/styles/index.scss +1 -0
- package/src/styles/variables/_icons.scss +7 -0
- package/src/styles/variables/index.scss +2 -1
- package/src/types.ts +3 -10
- package/tsconfig.json +1 -1
- package/lib/legacy/components/Icon/Icon.d.ts +0 -17
- package/lib/legacy/components/Icon/Icon.stories.d.ts +0 -42
- package/lib/legacy/components/Icon/faIcons.d.ts +0 -76
- package/lib/legacy/components/Icon/index.d.ts +0 -3
- package/lib/legacy/components/Icon/storyHelpers.d.ts +0 -9
- package/lib/legacy/components/Toggle/Toggle.stories.d.ts +0 -21
- package/lib/types.d.ts +0 -231
- package/src/legacy/components/Icon/Icon.stories.tsx +0 -61
- package/src/legacy/components/Icon/Icon.tsx +0 -76
- package/src/legacy/components/Icon/faIcons.tsx +0 -168
- package/src/legacy/components/Icon/index.ts +0 -3
- package/src/legacy/components/Icon/storyHelpers.tsx +0 -88
- /package/lib/{components → src/components}/button/Button.d.ts +0 -0
- /package/lib/{components → src/components}/button/Button.stories.d.ts +0 -0
- /package/lib/{components → src/components}/button/__tests__/Button.test.d.ts +0 -0
- /package/lib/{components → src/components}/button/enums.d.ts +0 -0
- /package/lib/{components → src/components}/button/index.d.ts +0 -0
- /package/lib/{components → src/components}/grid/col/Col.d.ts +0 -0
- /package/lib/{components → src/components}/grid/col/Col.stories.d.ts +0 -0
- /package/lib/{components → src/components}/grid/container/Container.d.ts +0 -0
- /package/lib/{components → src/components}/grid/container/Container.stories.d.ts +0 -0
- /package/lib/{components → src/components}/grid/index.d.ts +0 -0
- /package/lib/{components → src/components}/grid/row/Row.d.ts +0 -0
- /package/lib/{components → src/components}/grid/row/Row.stories.d.ts +0 -0
- /package/lib/{legacy/components/Navigation/Drawer/__tests__/DrawerLinkList.test.d.ts → src/components/icons/__tests__/Icon.test.d.ts} +0 -0
- /package/lib/{legacy/components/Icon → src/components/icons}/indicons.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Accordion/Accordion.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Accordion/Accordion.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Accordion/Accordion.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Accordion/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/ListTable/Header/Header.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/ListTable/Header/Header.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/ListTable/Header/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/ListTable/ListTable.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/ListTable/ListTable.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/ListTable/ListTable.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/ListTable/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/ListTable/mock-data/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/ListTable/mock-data/mock-data.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/LoadingAwareContainer/LoadingAwareContainer.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/LoadingAwareContainer/LoadingAwareContainer.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/LoadingAwareContainer/LoadingAwareContainer.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/LoadingAwareContainer/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Navigation/Drawer/Drawer.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Navigation/Drawer/Drawer.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Navigation/Drawer/DrawerLinkList.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Navigation/Drawer/DrawerLinkList.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Navigation/Drawer/__mocks__/mocks.d.ts +0 -0
- /package/lib/{legacy/components/text-truncate/TextTruncate.test.d.ts → src/legacy/components/Navigation/Drawer/__tests__/DrawerLinkList.test.d.ts} +0 -0
- /package/lib/{legacy → src/legacy}/components/Navigation/Drawer/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Navigation/Drawer/types.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Navigation/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Pagination/Pagination.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Pagination/Pagination.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Pagination/Pagination.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Pagination/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Toggle/Toggle.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Toggle/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Tooltip/Tooltip.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Tooltip/Tooltip.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Tooltip/Tooltip.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/Tooltip/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/basic-section/Section/Section.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/basic-section/Section/Section.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/basic-section/Section/Section.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/basic-section/Section/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/basic-section/SectionBlock/SectionBlock.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/basic-section/SectionBlock/SectionBlock.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/basic-section/SectionBlock/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/basic-section/SectionBody/SectionBody.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/basic-section/SectionBody/SectionBody.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/basic-section/SectionBody/SectionBody.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/basic-section/SectionBody/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/basic-section/SectionHeader/SectionHeader.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/basic-section/SectionHeader/SectionHeader.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/basic-section/SectionHeader/SectionHeader.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/basic-section/SectionHeader/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/basic-section/SectionTable/SectionTable.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/basic-section/SectionTable/SectionTable.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/basic-section/SectionTable/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/basic-section/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/buttons/Button/Button.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/buttons/Button/Button.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/buttons/Button/Button.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/buttons/Button/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/buttons/IconButton/IconButton.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/buttons/IconButton/IconButton.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/buttons/IconButton/IconButton.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/buttons/IconButton/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/buttons/commonStyles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/buttons/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/buttons/types.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/BorderSelect/BorderSelect.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/BorderSelect/BorderSelect.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/BorderSelect/BorderSelect.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/BorderSelect/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/MultiCombobox/MultiCombobox.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/MultiCombobox/MultiCombobox.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/MultiCombobox/MultiCombobox.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/MultiCombobox/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/Select/Select.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/Select/Select.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/Select/Select.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/Select/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/SingleCombobox/SingleCombobox.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/SingleCombobox/SingleCombobox.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/SingleCombobox/SingleCombobox.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/SingleCombobox/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/commonStyles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/types.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/useCombobox.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/dropdowns/utils.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/DatePicker/DatePicker.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/DatePicker/DatePicker.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/DatePicker/DatePicker.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/DatePicker/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/EditableInput/EditableInput.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/EditableInput/EditableInput.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/EditableInput/EditableInput.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/EditableInput/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/NoInputDatePicker/NoInputDatePicker.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/NoInputDatePicker/NoInputDatePicker.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/NoInputDatePicker/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/NumberInput/NumberInput.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/NumberInput/NumberInput.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/NumberInput/NumberInput.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/NumberInput/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/RadioButtons/RadioButtons.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/RadioButtons/RadioButtons.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/RadioButtons/RadioButtons.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/RadioButtons/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/RadioGroup/RadioGroup.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/RadioGroup/RadioGroup.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/RadioGroup/RadioGroup.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/RadioGroup/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/SearchInput/SearchInput.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/SearchInput/SearchInput.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/SearchInput/SearchInput.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/SearchInput/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/TextInput/TextInput.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/TextInput/TextInput.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/TextInput/TextInput.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/TextInput/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/inputs/inputsCommon.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/BarSpinner/BarSpinner.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/BarSpinner/BarSpinner.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/BarSpinner/BarSpinner.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/BarSpinner/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/CirclePulse/CirclePulse.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/CirclePulse/CirclePulse.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/CirclePulse/CirclePulse.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/CirclePulse/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/CircleSpinner/CircleSpinner.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/CircleSpinner/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/LoadingIndicator/LoadingIndicator.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/LoadingIndicator/LoadingIndicator.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/LoadingIndicator/LoadingIndicator.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/LoadingIndicator/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/LoadingList/LoadingList.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/LoadingList/LoadingList.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/LoadingList/LoadingList.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/LoadingList/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/PercentageRing/PercentageRing.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/PercentageRing/PercentageRing.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/PercentageRing/PercentageRing.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/PercentageRing/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/RandomLoadingMessage/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/RandomLoadingMessage/random-messages.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/loading-indicators/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/modals/ConfirmModal/ConfirmModal.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/modals/ConfirmModal/ConfirmModal.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/modals/ConfirmModal/ConfirmModal.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/modals/ConfirmModal/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/modals/ModalBase/ModalBase.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/modals/ModalBase/ModalBase.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/modals/ModalBase/ModalBase.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/modals/ModalBase/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/modals/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/text-truncate/TextTruncate.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/text-truncate/TextTruncate.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/text-truncate/TextTruncate.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/text-truncate/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/user-feedback/Shrug/Shrug.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/user-feedback/Shrug/Shrug.stories.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/user-feedback/Shrug/Shrug.styles.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/user-feedback/Shrug/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/user-feedback/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/styles/globals/buttons.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/styles/globals/forms.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/styles/globals/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/styles/globals/layout.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/styles/globals/lists.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/styles/globals/margin-padding.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/styles/globals/media.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/styles/globals/tables.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/styles/globals/typography.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/styles/globals/utility-classes.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/styles/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/tokens/animation.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/tokens/breakpoints.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/tokens/colors.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/tokens/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/tokens/margin.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/tokens/numbers.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/tokens/padding.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/tokens/spacings.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/tokens/typography.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/utils/color.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/utils/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/utils/number.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/utils/string.d.ts +0 -0
- /package/lib/{setupTests.d.ts → src/setupTests.d.ts} +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/borders/BorderColor.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/borders/BorderColor.stories.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/borders/BorderRadius.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/borders/BorderRadius.stories.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/borders/BorderStyles.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/borders/BorderStyles.stories.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/borders/BorderThickness.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/borders/BorderThickness.stories.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/borders/index.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/colors/Colors.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/colors/Colors.stories.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/colors/Swatch.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/colors/UtilityClasses.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/colors/UtilityClasses.stories.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/colors/constants.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/colors/hooks.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/colors/index.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/sizing/Sizing.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/sizing/Sizing.stories.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/sizing/index.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/typography/Typography.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/typography/Typography.stories.d.ts +0 -0
- /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/typography/index.d.ts +0 -0
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const faIcons: {
|
|
3
|
-
'fa-dot-circle': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
4
|
-
'fa-file': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
5
|
-
'fa-file-alt': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
6
|
-
'fa-file-pdf': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
7
|
-
'fa-file-word': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
8
|
-
'fa-check-square': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
9
|
-
'fa-square': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
10
|
-
'fa-angle-double-left': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
11
|
-
'fa-arrow-circle-right': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
12
|
-
'fa-arrow-down': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
13
|
-
'fa-arrow-left': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
14
|
-
'fa-arrow-right': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
15
|
-
'fa-arrow-up': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
16
|
-
'fa-ban': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
17
|
-
'fa-caret-down': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
18
|
-
'fa-caret-up': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
19
|
-
'fa-chart-bar': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
20
|
-
'fa-check': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
21
|
-
'fa-check-circle': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
22
|
-
'fa-circle-notch': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
23
|
-
'fa-clipboard': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
24
|
-
'fa-clock': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
25
|
-
'fa-clone': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
26
|
-
'fa-cloud': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
27
|
-
'fa-cog': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
28
|
-
'fa-cogs': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
29
|
-
'fa-coins': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
30
|
-
'fa-cube': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
31
|
-
'fa-cut': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
32
|
-
'fa-download': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
33
|
-
'fa-exclamation-circle': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
34
|
-
'fa-exclamation-triangle': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
35
|
-
'fa-external-link-alt': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
36
|
-
'fa-eye-dropper': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
37
|
-
'fa-file-download': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
38
|
-
'fa-file-export': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
39
|
-
'fa-file-upload': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
40
|
-
'fa-filter': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
41
|
-
'fa-ghost': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
42
|
-
'fa-hat-wizard': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
43
|
-
'fa-info-circle': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
44
|
-
'fa-key': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
45
|
-
'fa-keyboard': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
46
|
-
'fa-layer-group': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
47
|
-
'fa-pencil-alt': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
48
|
-
'fa-plus': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
49
|
-
'fa-plus-square': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
50
|
-
'fa-question-circle': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
51
|
-
'fa-robot': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
52
|
-
'fa-search': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
53
|
-
'fa-sign-out-alt': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
54
|
-
'fa-sliders-h': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
55
|
-
'fa-sync-alt': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
56
|
-
'fa-tag': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
57
|
-
'fa-times': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
58
|
-
'fa-times-circle': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
59
|
-
'fa-tint': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
60
|
-
'fa-toggle-off': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
61
|
-
'fa-toggle-on': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
62
|
-
'fa-trash': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
63
|
-
'fa-trash-alt': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
64
|
-
'fa-undo': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
65
|
-
'fa-user': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
66
|
-
'fa-users': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
67
|
-
'fa-mouse-pointer': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
68
|
-
'fa-step-forward': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
69
|
-
'fa-search-minus': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
70
|
-
'fa-search-plus': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
71
|
-
'fa-table': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
72
|
-
'fa-image': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
73
|
-
'fa-link': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
74
|
-
'fa-list': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
75
|
-
};
|
|
76
|
-
export { faIcons };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IconGroupProps {
|
|
3
|
-
groupObject: any;
|
|
4
|
-
}
|
|
5
|
-
export declare function IconGroup(props: IconGroupProps): React.ReactElement;
|
|
6
|
-
export declare const IconContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>;
|
|
7
|
-
export declare const IconGroupContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>>;
|
|
8
|
-
export declare const SpecifiedSizeContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
9
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
import { Toggle } from './Toggle';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
component: (props: {
|
|
5
|
-
disabled: boolean;
|
|
6
|
-
onChange: any;
|
|
7
|
-
value: boolean;
|
|
8
|
-
"aria-label"?: string | undefined;
|
|
9
|
-
iconSize?: string | number | undefined;
|
|
10
|
-
checkedIconName?: "search" | "split" | "indico-o-white" | "account" | "address" | "api-doc" | "arrow-dots" | "arrow-down" | "arrow-up-circle" | "arrows-cursor" | "bookmark" | "bookmarks" | "bookmark-saved" | "branch" | "calendar" | "check-circle" | "circle-help" | "check" | "checkbox" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "classification-document" | "classification-image" | "classification-page" | "classify-and-unbundle" | "clipboard" | "coffee-1" | "coffee-2" | "coffee-fail" | "coffeecup" | "coffeesteam" | "cog" | "collection" | "compare" | "company-name" | "confidence-bar-1" | "confidence-bar-2" | "confidence-bar-3" | "confidence-bar-4" | "confidence-bars" | "configure" | "choose-library" | "crowdlabel" | "currency" | "dashboard" | "data-and-access" | "database" | "document" | "date" | "draggable" | "droplet" | "edit" | "education" | "ellipsis" | "elmos-fire" | "email" | "enterprise" | "exclamation-circle-stroke" | "extraction" | "eye" | "file" | "fileHappy" | "filter" | "filter-outline" | "folder" | "form" | "gallery" | "find-documents" | "graphiql" | "grid-view" | "happy" | "help-solid" | "help" | "highlight" | "highlight-outline" | "indico-logo-white" | "indico-o" | "info" | "kabob" | "key" | "label" | "layout-complex" | "layout-simple" | "list-view" | "libraries" | "location" | "logout" | "lock" | "menu" | "model-import" | "model-starter" | "moon" | "moonbow" | "no-collections" | "no-libraries" | "no_results" | "no-format" | "object-detection" | "organizations" | "output" | "page-thumbnail" | "pay-as-you-go" | "person" | "phone" | "pin" | "plus" | "pointer" | "popup" | "price" | "preview-view" | "radio-button" | "recruiter" | "regex" | "reject" | "repair" | "research" | "reset" | "retrain" | "sad" | "search-thin" | "shrug" | "signature" | "sort-down" | "step-forward" | "sun" | "surround" | "surround-outline" | "text" | "thumbs-down" | "thumbs-up" | "time" | "trash" | "unlock" | "upload" | "url" | "user" | "wand" | "warning" | "warning-stroke" | "workflows" | "x-close" | "zoom-in" | "zoom-out" | "fa-dot-circle" | "fa-file" | "fa-file-alt" | "fa-file-pdf" | "fa-file-word" | "fa-check-square" | "fa-square" | "fa-angle-double-left" | "fa-arrow-circle-right" | "fa-arrow-down" | "fa-arrow-left" | "fa-arrow-right" | "fa-arrow-up" | "fa-ban" | "fa-caret-down" | "fa-caret-up" | "fa-chart-bar" | "fa-check" | "fa-check-circle" | "fa-circle-notch" | "fa-clipboard" | "fa-clock" | "fa-clone" | "fa-cloud" | "fa-cog" | "fa-cogs" | "fa-coins" | "fa-cube" | "fa-cut" | "fa-download" | "fa-exclamation-circle" | "fa-exclamation-triangle" | "fa-external-link-alt" | "fa-eye-dropper" | "fa-file-download" | "fa-file-export" | "fa-file-upload" | "fa-filter" | "fa-ghost" | "fa-hat-wizard" | "fa-info-circle" | "fa-key" | "fa-keyboard" | "fa-layer-group" | "fa-pencil-alt" | "fa-plus" | "fa-plus-square" | "fa-question-circle" | "fa-robot" | "fa-search" | "fa-sign-out-alt" | "fa-sliders-h" | "fa-sync-alt" | "fa-tag" | "fa-times" | "fa-times-circle" | "fa-tint" | "fa-toggle-off" | "fa-toggle-on" | "fa-trash" | "fa-trash-alt" | "fa-undo" | "fa-user" | "fa-users" | "fa-mouse-pointer" | "fa-step-forward" | "fa-search-minus" | "fa-search-plus" | "fa-table" | "fa-image" | "fa-link" | "fa-list" | undefined;
|
|
11
|
-
notCheckedIconName?: "search" | "split" | "indico-o-white" | "account" | "address" | "api-doc" | "arrow-dots" | "arrow-down" | "arrow-up-circle" | "arrows-cursor" | "bookmark" | "bookmarks" | "bookmark-saved" | "branch" | "calendar" | "check-circle" | "circle-help" | "check" | "checkbox" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "classification-document" | "classification-image" | "classification-page" | "classify-and-unbundle" | "clipboard" | "coffee-1" | "coffee-2" | "coffee-fail" | "coffeecup" | "coffeesteam" | "cog" | "collection" | "compare" | "company-name" | "confidence-bar-1" | "confidence-bar-2" | "confidence-bar-3" | "confidence-bar-4" | "confidence-bars" | "configure" | "choose-library" | "crowdlabel" | "currency" | "dashboard" | "data-and-access" | "database" | "document" | "date" | "draggable" | "droplet" | "edit" | "education" | "ellipsis" | "elmos-fire" | "email" | "enterprise" | "exclamation-circle-stroke" | "extraction" | "eye" | "file" | "fileHappy" | "filter" | "filter-outline" | "folder" | "form" | "gallery" | "find-documents" | "graphiql" | "grid-view" | "happy" | "help-solid" | "help" | "highlight" | "highlight-outline" | "indico-logo-white" | "indico-o" | "info" | "kabob" | "key" | "label" | "layout-complex" | "layout-simple" | "list-view" | "libraries" | "location" | "logout" | "lock" | "menu" | "model-import" | "model-starter" | "moon" | "moonbow" | "no-collections" | "no-libraries" | "no_results" | "no-format" | "object-detection" | "organizations" | "output" | "page-thumbnail" | "pay-as-you-go" | "person" | "phone" | "pin" | "plus" | "pointer" | "popup" | "price" | "preview-view" | "radio-button" | "recruiter" | "regex" | "reject" | "repair" | "research" | "reset" | "retrain" | "sad" | "search-thin" | "shrug" | "signature" | "sort-down" | "step-forward" | "sun" | "surround" | "surround-outline" | "text" | "thumbs-down" | "thumbs-up" | "time" | "trash" | "unlock" | "upload" | "url" | "user" | "wand" | "warning" | "warning-stroke" | "workflows" | "x-close" | "zoom-in" | "zoom-out" | "fa-dot-circle" | "fa-file" | "fa-file-alt" | "fa-file-pdf" | "fa-file-word" | "fa-check-square" | "fa-square" | "fa-angle-double-left" | "fa-arrow-circle-right" | "fa-arrow-down" | "fa-arrow-left" | "fa-arrow-right" | "fa-arrow-up" | "fa-ban" | "fa-caret-down" | "fa-caret-up" | "fa-chart-bar" | "fa-check" | "fa-check-circle" | "fa-circle-notch" | "fa-clipboard" | "fa-clock" | "fa-clone" | "fa-cloud" | "fa-cog" | "fa-cogs" | "fa-coins" | "fa-cube" | "fa-cut" | "fa-download" | "fa-exclamation-circle" | "fa-exclamation-triangle" | "fa-external-link-alt" | "fa-eye-dropper" | "fa-file-download" | "fa-file-export" | "fa-file-upload" | "fa-filter" | "fa-ghost" | "fa-hat-wizard" | "fa-info-circle" | "fa-key" | "fa-keyboard" | "fa-layer-group" | "fa-pencil-alt" | "fa-plus" | "fa-plus-square" | "fa-question-circle" | "fa-robot" | "fa-search" | "fa-sign-out-alt" | "fa-sliders-h" | "fa-sync-alt" | "fa-tag" | "fa-times" | "fa-times-circle" | "fa-tint" | "fa-toggle-off" | "fa-toggle-on" | "fa-trash" | "fa-trash-alt" | "fa-undo" | "fa-user" | "fa-users" | "fa-mouse-pointer" | "fa-step-forward" | "fa-search-minus" | "fa-search-plus" | "fa-table" | "fa-image" | "fa-link" | "fa-list" | undefined;
|
|
12
|
-
} & import("../../../types").PermafrostComponent) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
title: string;
|
|
14
|
-
argTypes: {};
|
|
15
|
-
args: {};
|
|
16
|
-
};
|
|
17
|
-
export default meta;
|
|
18
|
-
type Story = StoryObj<typeof Toggle>;
|
|
19
|
-
export declare const Normal: Story;
|
|
20
|
-
export declare const Disabled: Story;
|
|
21
|
-
export declare const Icons: Story;
|
package/lib/types.d.ts
DELETED
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const allIcons: {
|
|
3
|
-
readonly 'indico-o-white': import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
readonly account: import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
readonly address: import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
readonly 'api-doc': import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
readonly 'arrow-dots': import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
readonly 'arrow-down': import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
readonly 'arrow-up-circle': import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
readonly 'arrows-cursor': import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
readonly bookmark: import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
readonly bookmarks: import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
readonly 'bookmark-saved': import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
readonly branch: import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
readonly calendar: import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
readonly 'check-circle': import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
readonly 'circle-help': import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
readonly check: import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
readonly checkbox: import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
readonly 'chevron-down': import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
readonly 'chevron-left': import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
readonly 'chevron-right': import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
readonly 'chevron-up': import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
readonly 'classification-document': import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
readonly 'classification-image': import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
readonly 'classification-page': import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
readonly 'classify-and-unbundle': import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
readonly clipboard: import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
readonly 'coffee-1': import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
readonly 'coffee-2': import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
readonly 'coffee-fail': import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
readonly coffeecup: import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
readonly coffeesteam: import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
readonly cog: import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
readonly collection: import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
readonly compare: import("react/jsx-runtime").JSX.Element;
|
|
37
|
-
readonly 'company-name': import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
readonly 'confidence-bar-1': import("react/jsx-runtime").JSX.Element;
|
|
39
|
-
readonly 'confidence-bar-2': import("react/jsx-runtime").JSX.Element;
|
|
40
|
-
readonly 'confidence-bar-3': import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
readonly 'confidence-bar-4': import("react/jsx-runtime").JSX.Element;
|
|
42
|
-
readonly 'confidence-bars': import("react/jsx-runtime").JSX.Element;
|
|
43
|
-
readonly configure: import("react/jsx-runtime").JSX.Element;
|
|
44
|
-
readonly 'choose-library': import("react/jsx-runtime").JSX.Element;
|
|
45
|
-
readonly crowdlabel: import("react/jsx-runtime").JSX.Element;
|
|
46
|
-
readonly currency: import("react/jsx-runtime").JSX.Element;
|
|
47
|
-
readonly dashboard: import("react/jsx-runtime").JSX.Element;
|
|
48
|
-
readonly 'data-and-access': import("react/jsx-runtime").JSX.Element;
|
|
49
|
-
readonly database: import("react/jsx-runtime").JSX.Element;
|
|
50
|
-
readonly document: import("react/jsx-runtime").JSX.Element;
|
|
51
|
-
readonly date: import("react/jsx-runtime").JSX.Element;
|
|
52
|
-
readonly draggable: import("react/jsx-runtime").JSX.Element;
|
|
53
|
-
readonly droplet: import("react/jsx-runtime").JSX.Element;
|
|
54
|
-
readonly edit: import("react/jsx-runtime").JSX.Element;
|
|
55
|
-
readonly education: import("react/jsx-runtime").JSX.Element;
|
|
56
|
-
readonly ellipsis: import("react/jsx-runtime").JSX.Element;
|
|
57
|
-
readonly 'elmos-fire': import("react/jsx-runtime").JSX.Element;
|
|
58
|
-
readonly email: import("react/jsx-runtime").JSX.Element;
|
|
59
|
-
readonly enterprise: import("react/jsx-runtime").JSX.Element;
|
|
60
|
-
readonly 'exclamation-circle-stroke': import("react/jsx-runtime").JSX.Element;
|
|
61
|
-
readonly extraction: import("react/jsx-runtime").JSX.Element;
|
|
62
|
-
readonly eye: import("react/jsx-runtime").JSX.Element;
|
|
63
|
-
readonly file: import("react/jsx-runtime").JSX.Element;
|
|
64
|
-
readonly fileHappy: import("react/jsx-runtime").JSX.Element;
|
|
65
|
-
readonly filter: import("react/jsx-runtime").JSX.Element;
|
|
66
|
-
readonly 'filter-outline': import("react/jsx-runtime").JSX.Element;
|
|
67
|
-
readonly folder: import("react/jsx-runtime").JSX.Element;
|
|
68
|
-
readonly form: import("react/jsx-runtime").JSX.Element;
|
|
69
|
-
readonly gallery: import("react/jsx-runtime").JSX.Element;
|
|
70
|
-
readonly 'find-documents': import("react/jsx-runtime").JSX.Element;
|
|
71
|
-
readonly graphiql: import("react/jsx-runtime").JSX.Element;
|
|
72
|
-
readonly 'grid-view': import("react/jsx-runtime").JSX.Element;
|
|
73
|
-
readonly happy: import("react/jsx-runtime").JSX.Element;
|
|
74
|
-
readonly 'help-solid': import("react/jsx-runtime").JSX.Element;
|
|
75
|
-
readonly help: import("react/jsx-runtime").JSX.Element;
|
|
76
|
-
readonly highlight: import("react/jsx-runtime").JSX.Element;
|
|
77
|
-
readonly 'highlight-outline': import("react/jsx-runtime").JSX.Element;
|
|
78
|
-
readonly 'indico-logo-white': import("react/jsx-runtime").JSX.Element;
|
|
79
|
-
readonly 'indico-o': import("react/jsx-runtime").JSX.Element;
|
|
80
|
-
readonly info: import("react/jsx-runtime").JSX.Element;
|
|
81
|
-
readonly kabob: import("react/jsx-runtime").JSX.Element;
|
|
82
|
-
readonly key: import("react/jsx-runtime").JSX.Element;
|
|
83
|
-
readonly label: import("react/jsx-runtime").JSX.Element;
|
|
84
|
-
readonly 'layout-complex': import("react/jsx-runtime").JSX.Element;
|
|
85
|
-
readonly 'layout-simple': import("react/jsx-runtime").JSX.Element;
|
|
86
|
-
readonly 'list-view': import("react/jsx-runtime").JSX.Element;
|
|
87
|
-
readonly libraries: import("react/jsx-runtime").JSX.Element;
|
|
88
|
-
readonly location: import("react/jsx-runtime").JSX.Element;
|
|
89
|
-
readonly logout: import("react/jsx-runtime").JSX.Element;
|
|
90
|
-
readonly lock: import("react/jsx-runtime").JSX.Element;
|
|
91
|
-
readonly menu: import("react/jsx-runtime").JSX.Element;
|
|
92
|
-
readonly 'model-import': import("react/jsx-runtime").JSX.Element;
|
|
93
|
-
readonly 'model-starter': import("react/jsx-runtime").JSX.Element;
|
|
94
|
-
readonly moon: import("react/jsx-runtime").JSX.Element;
|
|
95
|
-
readonly moonbow: import("react/jsx-runtime").JSX.Element;
|
|
96
|
-
readonly 'no-collections': import("react/jsx-runtime").JSX.Element;
|
|
97
|
-
readonly 'no-libraries': import("react/jsx-runtime").JSX.Element;
|
|
98
|
-
readonly no_results: import("react/jsx-runtime").JSX.Element;
|
|
99
|
-
readonly 'no-format': import("react/jsx-runtime").JSX.Element;
|
|
100
|
-
readonly 'object-detection': import("react/jsx-runtime").JSX.Element;
|
|
101
|
-
readonly organizations: import("react/jsx-runtime").JSX.Element;
|
|
102
|
-
readonly output: import("react/jsx-runtime").JSX.Element;
|
|
103
|
-
readonly 'page-thumbnail': import("react/jsx-runtime").JSX.Element;
|
|
104
|
-
readonly 'pay-as-you-go': import("react/jsx-runtime").JSX.Element;
|
|
105
|
-
readonly person: import("react/jsx-runtime").JSX.Element;
|
|
106
|
-
readonly phone: import("react/jsx-runtime").JSX.Element;
|
|
107
|
-
readonly pin: import("react/jsx-runtime").JSX.Element;
|
|
108
|
-
readonly plus: import("react/jsx-runtime").JSX.Element;
|
|
109
|
-
readonly pointer: import("react/jsx-runtime").JSX.Element;
|
|
110
|
-
readonly popup: import("react/jsx-runtime").JSX.Element;
|
|
111
|
-
readonly price: import("react/jsx-runtime").JSX.Element;
|
|
112
|
-
readonly 'preview-view': import("react/jsx-runtime").JSX.Element;
|
|
113
|
-
readonly 'radio-button': import("react/jsx-runtime").JSX.Element;
|
|
114
|
-
readonly recruiter: import("react/jsx-runtime").JSX.Element;
|
|
115
|
-
readonly regex: import("react/jsx-runtime").JSX.Element;
|
|
116
|
-
readonly reject: import("react/jsx-runtime").JSX.Element;
|
|
117
|
-
readonly repair: import("react/jsx-runtime").JSX.Element;
|
|
118
|
-
readonly research: import("react/jsx-runtime").JSX.Element;
|
|
119
|
-
readonly reset: import("react/jsx-runtime").JSX.Element;
|
|
120
|
-
readonly retrain: import("react/jsx-runtime").JSX.Element;
|
|
121
|
-
readonly sad: import("react/jsx-runtime").JSX.Element;
|
|
122
|
-
readonly search: import("react/jsx-runtime").JSX.Element;
|
|
123
|
-
readonly 'search-thin': import("react/jsx-runtime").JSX.Element;
|
|
124
|
-
readonly shrug: import("react/jsx-runtime").JSX.Element;
|
|
125
|
-
readonly signature: import("react/jsx-runtime").JSX.Element;
|
|
126
|
-
readonly 'sort-down': import("react/jsx-runtime").JSX.Element;
|
|
127
|
-
readonly split: import("react/jsx-runtime").JSX.Element;
|
|
128
|
-
readonly 'step-forward': import("react/jsx-runtime").JSX.Element;
|
|
129
|
-
readonly sun: import("react/jsx-runtime").JSX.Element;
|
|
130
|
-
readonly surround: import("react/jsx-runtime").JSX.Element;
|
|
131
|
-
readonly 'surround-outline': import("react/jsx-runtime").JSX.Element;
|
|
132
|
-
readonly text: import("react/jsx-runtime").JSX.Element;
|
|
133
|
-
readonly 'thumbs-down': import("react/jsx-runtime").JSX.Element;
|
|
134
|
-
readonly 'thumbs-up': import("react/jsx-runtime").JSX.Element;
|
|
135
|
-
readonly time: import("react/jsx-runtime").JSX.Element;
|
|
136
|
-
readonly trash: import("react/jsx-runtime").JSX.Element;
|
|
137
|
-
readonly unlock: import("react/jsx-runtime").JSX.Element;
|
|
138
|
-
readonly upload: import("react/jsx-runtime").JSX.Element;
|
|
139
|
-
readonly url: import("react/jsx-runtime").JSX.Element;
|
|
140
|
-
readonly user: import("react/jsx-runtime").JSX.Element;
|
|
141
|
-
readonly wand: import("react/jsx-runtime").JSX.Element;
|
|
142
|
-
readonly warning: import("react/jsx-runtime").JSX.Element;
|
|
143
|
-
readonly 'warning-stroke': import("react/jsx-runtime").JSX.Element;
|
|
144
|
-
readonly workflows: import("react/jsx-runtime").JSX.Element;
|
|
145
|
-
readonly 'x-close': import("react/jsx-runtime").JSX.Element;
|
|
146
|
-
readonly 'zoom-in': import("react/jsx-runtime").JSX.Element;
|
|
147
|
-
readonly 'zoom-out': import("react/jsx-runtime").JSX.Element;
|
|
148
|
-
readonly 'fa-dot-circle': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
149
|
-
readonly 'fa-file': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
150
|
-
readonly 'fa-file-alt': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
151
|
-
readonly 'fa-file-pdf': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
152
|
-
readonly 'fa-file-word': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
153
|
-
readonly 'fa-check-square': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
154
|
-
readonly 'fa-square': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
155
|
-
readonly 'fa-angle-double-left': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
156
|
-
readonly 'fa-arrow-circle-right': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
157
|
-
readonly 'fa-arrow-down': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
158
|
-
readonly 'fa-arrow-left': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
159
|
-
readonly 'fa-arrow-right': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
160
|
-
readonly 'fa-arrow-up': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
161
|
-
readonly 'fa-ban': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
162
|
-
readonly 'fa-caret-down': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
163
|
-
readonly 'fa-caret-up': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
164
|
-
readonly 'fa-chart-bar': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
165
|
-
readonly 'fa-check': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
166
|
-
readonly 'fa-check-circle': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
167
|
-
readonly 'fa-circle-notch': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
168
|
-
readonly 'fa-clipboard': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
169
|
-
readonly 'fa-clock': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
170
|
-
readonly 'fa-clone': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
171
|
-
readonly 'fa-cloud': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
172
|
-
readonly 'fa-cog': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
173
|
-
readonly 'fa-cogs': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
174
|
-
readonly 'fa-coins': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
175
|
-
readonly 'fa-cube': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
176
|
-
readonly 'fa-cut': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
177
|
-
readonly 'fa-download': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
178
|
-
readonly 'fa-exclamation-circle': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
179
|
-
readonly 'fa-exclamation-triangle': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
180
|
-
readonly 'fa-external-link-alt': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
181
|
-
readonly 'fa-eye-dropper': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
182
|
-
readonly 'fa-file-download': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
183
|
-
readonly 'fa-file-export': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
184
|
-
readonly 'fa-file-upload': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
185
|
-
readonly 'fa-filter': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
186
|
-
readonly 'fa-ghost': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
187
|
-
readonly 'fa-hat-wizard': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
188
|
-
readonly 'fa-info-circle': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
189
|
-
readonly 'fa-key': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
190
|
-
readonly 'fa-keyboard': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
191
|
-
readonly 'fa-layer-group': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
192
|
-
readonly 'fa-pencil-alt': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
193
|
-
readonly 'fa-plus': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
194
|
-
readonly 'fa-plus-square': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
195
|
-
readonly 'fa-question-circle': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
196
|
-
readonly 'fa-robot': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
197
|
-
readonly 'fa-search': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
198
|
-
readonly 'fa-sign-out-alt': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
199
|
-
readonly 'fa-sliders-h': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
200
|
-
readonly 'fa-sync-alt': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
201
|
-
readonly 'fa-tag': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
202
|
-
readonly 'fa-times': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
203
|
-
readonly 'fa-times-circle': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
204
|
-
readonly 'fa-tint': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
205
|
-
readonly 'fa-toggle-off': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
206
|
-
readonly 'fa-toggle-on': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
207
|
-
readonly 'fa-trash': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
208
|
-
readonly 'fa-trash-alt': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
209
|
-
readonly 'fa-undo': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
210
|
-
readonly 'fa-user': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
211
|
-
readonly 'fa-users': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
212
|
-
readonly 'fa-mouse-pointer': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
213
|
-
readonly 'fa-step-forward': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
214
|
-
readonly 'fa-search-minus': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
215
|
-
readonly 'fa-search-plus': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
216
|
-
readonly 'fa-table': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
217
|
-
readonly 'fa-image': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
218
|
-
readonly 'fa-link': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
219
|
-
readonly 'fa-list': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
220
|
-
};
|
|
221
|
-
export type IconName = keyof typeof allIcons;
|
|
222
|
-
export type PermafrostComponent = {
|
|
223
|
-
id?: string;
|
|
224
|
-
className?: string;
|
|
225
|
-
'data-cy'?: string;
|
|
226
|
-
'data-testid'?: string;
|
|
227
|
-
};
|
|
228
|
-
export type ButtonVariant = 'default' | 'primary' | 'destructive';
|
|
229
|
-
export type ButtonSize = 'normal' | 'large';
|
|
230
|
-
import { ListItem } from './legacy/components/Navigation/Drawer/types';
|
|
231
|
-
export type { ListItem };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
import { IconName } from '@/types';
|
|
5
|
-
import { faIcons } from './faIcons';
|
|
6
|
-
import { indicons } from './indicons';
|
|
7
|
-
import { Icon } from './Icon';
|
|
8
|
-
import { IconContainer, SpecifiedSizeContainer } from './storyHelpers';
|
|
9
|
-
|
|
10
|
-
const indiconsOptions: IconName[] = Object.keys(indicons) as IconName[];
|
|
11
|
-
const faIconsOptions: IconName[] = Object.keys(faIcons) as IconName[];
|
|
12
|
-
|
|
13
|
-
const meta = {
|
|
14
|
-
component: Icon,
|
|
15
|
-
title: 'legacy/Icon',
|
|
16
|
-
argTypes: {
|
|
17
|
-
ariaLabel: { control: { disable: true } },
|
|
18
|
-
size: { description: '[value] or [height, width]' },
|
|
19
|
-
name: { control: { type: 'select', options: indiconsOptions } },
|
|
20
|
-
},
|
|
21
|
-
decorators: [
|
|
22
|
-
(Story) => (
|
|
23
|
-
<IconContainer>
|
|
24
|
-
<Story />
|
|
25
|
-
</IconContainer>
|
|
26
|
-
),
|
|
27
|
-
],
|
|
28
|
-
} satisfies Meta<typeof Icon>;
|
|
29
|
-
|
|
30
|
-
export default meta;
|
|
31
|
-
type Story = StoryObj<typeof Icon>;
|
|
32
|
-
|
|
33
|
-
export const General: Story = {
|
|
34
|
-
argTypes: { name: { control: { type: 'select', options: indiconsOptions } } },
|
|
35
|
-
args: {
|
|
36
|
-
name: indiconsOptions[0],
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export const Indicon: Story = {
|
|
41
|
-
argTypes: { name: { control: { type: 'select', options: indiconsOptions } } },
|
|
42
|
-
args: { name: indiconsOptions[0] },
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export const FontAwesome: Story = {
|
|
46
|
-
argTypes: { name: { control: { type: 'select', options: faIconsOptions } } },
|
|
47
|
-
args: { name: faIconsOptions[27] },
|
|
48
|
-
};
|
|
49
|
-
export const SizeSpecified: Story = {
|
|
50
|
-
argTypes: { name: { control: { type: 'select', options: indiconsOptions } } },
|
|
51
|
-
args: { name: indiconsOptions[0] },
|
|
52
|
-
render: (args) => (
|
|
53
|
-
<SpecifiedSizeContainer>
|
|
54
|
-
<Icon {...args} size={[150]} />
|
|
55
|
-
<code>{'size = {[150]}'}</code>
|
|
56
|
-
|
|
57
|
-
<Icon {...args} size={[100, 100]} />
|
|
58
|
-
<code>{'size = {[100, 100]}'}</code>
|
|
59
|
-
</SpecifiedSizeContainer>
|
|
60
|
-
),
|
|
61
|
-
};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
// TODO: This component's migration was fast-tracked for Insights. Assess for potential refactor and documentation.
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
|
|
5
|
-
import { PermafrostComponent, IconName } from '@/types';
|
|
6
|
-
|
|
7
|
-
import { faIcons } from './faIcons';
|
|
8
|
-
import { indicons } from './indicons';
|
|
9
|
-
|
|
10
|
-
const allIcons = {
|
|
11
|
-
...faIcons,
|
|
12
|
-
...indicons,
|
|
13
|
-
} as const;
|
|
14
|
-
|
|
15
|
-
type Props = PermafrostComponent & {
|
|
16
|
-
ariaLabel?: string;
|
|
17
|
-
fill?: string;
|
|
18
|
-
name: IconName;
|
|
19
|
-
/* `[value]` or `[width, height]` */
|
|
20
|
-
size?: [string | number] | [string | number, string | number];
|
|
21
|
-
style?: any;
|
|
22
|
-
onClick?(): void;
|
|
23
|
-
ref?: React.Ref<SVGSVGElement>;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
type IconComponentProps = {
|
|
27
|
-
children: React.ReactNode;
|
|
28
|
-
fill: string;
|
|
29
|
-
viewBox: string;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Generic icon component, hidden from Assistive Technology by default.
|
|
34
|
-
* If icon should be available to AT, pass the desired name into the `ariaLabel` prop.
|
|
35
|
-
*/
|
|
36
|
-
export function Icon({ style = {}, ...props }: Props): React.ReactElement | null {
|
|
37
|
-
const ariaLabel = props.ariaLabel
|
|
38
|
-
? { 'aria-label': props.ariaLabel }
|
|
39
|
-
: { 'aria-hidden': true, focusable: false };
|
|
40
|
-
const iconComponentProps: IconComponentProps = allIcons[props.name]?.props || null;
|
|
41
|
-
const dimensions =
|
|
42
|
-
props.size && props.size.length > 0
|
|
43
|
-
? returnDimensions(props.size)
|
|
44
|
-
: { width: '1em', height: '1em' };
|
|
45
|
-
|
|
46
|
-
if (!iconComponentProps) {
|
|
47
|
-
console.error(`${props.name} is not a valid icon name.`);
|
|
48
|
-
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
return (
|
|
53
|
-
<svg
|
|
54
|
-
{...iconComponentProps}
|
|
55
|
-
{...ariaLabel}
|
|
56
|
-
{...dimensions}
|
|
57
|
-
ref={props.ref}
|
|
58
|
-
role="img"
|
|
59
|
-
className={props.className}
|
|
60
|
-
data-cy={props['data-cy']}
|
|
61
|
-
data-testid={props['data-testid']}
|
|
62
|
-
fill={props.fill || 'currentColor'}
|
|
63
|
-
id={props.id}
|
|
64
|
-
style={style}
|
|
65
|
-
onClick={props.onClick}
|
|
66
|
-
/>
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function returnDimensions(sizeProp: [string | number] | [string | number, string | number]) {
|
|
71
|
-
if (sizeProp.length > 1) {
|
|
72
|
-
return { width: sizeProp[0], height: sizeProp[1] };
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
return { width: sizeProp[0], height: sizeProp[0] };
|
|
76
|
-
}
|