@indico-data/design-system 2.1.3 → 2.3.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/.yarn/sdks/eslint/bin/eslint.js +8 -1
- package/.yarn/sdks/eslint/package.json +1 -1
- package/.yarn/sdks/prettier/bin/prettier.cjs +8 -1
- package/.yarn/sdks/prettier/index.cjs +8 -1
- package/.yarn/sdks/typescript/bin/tsc +8 -1
- package/.yarn/sdks/typescript/bin/tsserver +8 -1
- package/.yarn/sdks/typescript/package.json +1 -1
- package/.yarnrc.yml +1 -0
- package/lib/build/generated/iconTypes.d.ts +2 -0
- package/lib/index.css +142 -101
- package/lib/index.d.ts +9 -1371
- package/lib/index.esm.css +142 -101
- package/lib/index.esm.js +26604 -12492
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +26647 -12538
- package/lib/index.js.map +1 -1
- package/lib/{components → src/components}/button/types.d.ts +1 -2
- 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 +2 -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/index.d.ts +8 -0
- package/lib/{legacy → src/legacy}/components/Accordion/Accordion.stories.d.ts +9 -9
- package/lib/src/legacy/components/Accordion/Accordion.styles.d.ts +1 -0
- package/lib/src/legacy/components/ListTable/Header/Header.styles.d.ts +1 -0
- package/lib/{legacy → src/legacy}/components/ListTable/ListTable.stories.d.ts +7 -7
- package/lib/src/legacy/components/ListTable/ListTable.styles.d.ts +1 -0
- package/lib/{legacy → src/legacy}/components/LoadingAwareContainer/LoadingAwareContainer.stories.d.ts +2 -2
- package/lib/src/legacy/components/LoadingAwareContainer/LoadingAwareContainer.styles.d.ts +2 -0
- package/lib/src/legacy/components/Pagination/Pagination.styles.d.ts +1 -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/src/legacy/components/Toggle/Toggle.styles.d.ts +1 -0
- package/lib/src/legacy/components/Tooltip/Tooltip.styles.d.ts +1 -0
- package/lib/{legacy → src/legacy}/components/basic-section/Section/Section.stories.d.ts +1 -2
- package/lib/src/legacy/components/basic-section/Section/Section.styles.d.ts +1 -0
- package/lib/src/legacy/components/basic-section/SectionBlock/SectionBlock.styles.d.ts +1 -0
- package/lib/src/legacy/components/basic-section/SectionBody/SectionBody.styles.d.ts +1 -0
- package/lib/{legacy → src/legacy}/components/basic-section/SectionHeader/SectionHeader.stories.d.ts +1 -1
- package/lib/src/legacy/components/basic-section/SectionHeader/SectionHeader.styles.d.ts +1 -0
- package/lib/src/legacy/components/basic-section/SectionTable/SectionTable.styles.d.ts +1 -0
- package/lib/{legacy → src/legacy}/components/buttons/Button/Button.stories.d.ts +1 -1
- package/lib/src/legacy/components/buttons/Button/Button.styles.d.ts +1 -0
- package/lib/{legacy → src/legacy}/components/buttons/IconButton/IconButton.stories.d.ts +3 -3
- package/lib/src/legacy/components/buttons/IconButton/IconButton.styles.d.ts +5 -0
- package/lib/{legacy → src/legacy}/components/dropdowns/BorderSelect/BorderSelect.stories.d.ts +8 -9
- package/lib/src/legacy/components/dropdowns/BorderSelect/BorderSelect.styles.d.ts +2 -0
- package/lib/{legacy → src/legacy}/components/dropdowns/MultiCombobox/MultiCombobox.d.ts +5 -5
- package/lib/{legacy → src/legacy}/components/dropdowns/MultiCombobox/MultiCombobox.stories.d.ts +7 -7
- package/lib/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.styles.d.ts +4 -0
- package/lib/{legacy → src/legacy}/components/dropdowns/Select/Select.stories.d.ts +6 -7
- package/lib/src/legacy/components/dropdowns/Select/Select.styles.d.ts +1 -0
- package/lib/{legacy → src/legacy}/components/dropdowns/SingleCombobox/SingleCombobox.d.ts +5 -5
- package/lib/{legacy → src/legacy}/components/dropdowns/SingleCombobox/SingleCombobox.stories.d.ts +5 -6
- package/lib/src/legacy/components/dropdowns/SingleCombobox/SingleCombobox.styles.d.ts +4 -0
- package/lib/{legacy → src/legacy}/components/index.d.ts +0 -2
- package/lib/src/legacy/components/inputs/DatePicker/DatePicker.styles.d.ts +1 -0
- package/lib/src/legacy/components/inputs/EditableInput/EditableInput.styles.d.ts +1 -0
- package/lib/{legacy → src/legacy}/components/inputs/NoInputDatePicker/NoInputDatePicker.d.ts +2 -1
- package/lib/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.styles.d.ts +1 -0
- package/lib/{legacy → src/legacy}/components/inputs/NumberInput/NumberInput.stories.d.ts +2 -2
- package/lib/src/legacy/components/inputs/NumberInput/NumberInput.styles.d.ts +1 -0
- package/lib/src/legacy/components/inputs/RadioButtons/RadioButtons.styles.d.ts +13 -0
- package/lib/src/legacy/components/inputs/RadioGroup/RadioGroup.styles.d.ts +1 -0
- package/lib/{legacy → src/legacy}/components/inputs/SearchInput/SearchInput.stories.d.ts +8 -9
- package/lib/src/legacy/components/inputs/SearchInput/SearchInput.styles.d.ts +1 -0
- package/lib/{legacy → src/legacy}/components/inputs/TextInput/TextInput.stories.d.ts +9 -9
- package/lib/src/legacy/components/inputs/TextInput/TextInput.styles.d.ts +2 -0
- package/lib/src/legacy/components/loading-indicators/BarSpinner/BarSpinner.styles.d.ts +1 -0
- package/lib/src/legacy/components/loading-indicators/CirclePulse/CirclePulse.styles.d.ts +7 -0
- package/lib/{legacy → src/legacy}/components/loading-indicators/CircleSpinner/CircleSpinner.d.ts +3 -4
- package/lib/src/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.styles.d.ts +7 -0
- package/lib/src/legacy/components/loading-indicators/LoadingList/LoadingList.styles.d.ts +1 -0
- package/lib/src/legacy/components/loading-indicators/PercentageRing/PercentageRing.styles.d.ts +1 -0
- package/lib/{legacy → src/legacy}/components/modals/ConfirmModal/ConfirmModal.stories.d.ts +5 -5
- package/lib/src/legacy/components/modals/ConfirmModal/ConfirmModal.styles.d.ts +1 -0
- package/lib/src/legacy/components/modals/ModalBase/ModalBase.styles.d.ts +4 -0
- package/lib/src/legacy/components/text-truncate/TextTruncate.styles.d.ts +1 -0
- package/lib/{legacy → src/legacy}/components/user-feedback/Shrug/Shrug.stories.d.ts +11 -11
- package/lib/src/legacy/components/user-feedback/Shrug/Shrug.styles.d.ts +1 -0
- package/lib/{legacy → src/legacy}/styles/globals/buttons.d.ts +0 -1
- package/lib/{legacy → src/legacy}/styles/globals/forms.d.ts +0 -1
- package/lib/{legacy → src/legacy}/styles/globals/layout.d.ts +0 -1
- package/lib/{legacy → src/legacy}/styles/globals/lists.d.ts +0 -1
- package/lib/{legacy → src/legacy}/styles/globals/margin-padding.d.ts +0 -1
- package/lib/{legacy → src/legacy}/styles/globals/media.d.ts +0 -1
- package/lib/{legacy → src/legacy}/styles/globals/tables.d.ts +0 -1
- package/lib/{legacy → src/legacy}/styles/globals/typography.d.ts +0 -1
- package/lib/{legacy → src/legacy}/styles/globals/utility-classes.d.ts +0 -1
- package/lib/src/types.d.ts +10 -0
- package/package.json +20 -15
- 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 +2 -0
- package/src/components/tables/table/LoadingComponent.tsx +5 -0
- package/src/components/tables/table/Table.mdx +15 -0
- package/src/components/tables/table/Table.scss +79 -0
- package/src/components/tables/table/Table.stories.tsx +547 -0
- package/src/components/tables/table/Table.tsx +112 -0
- package/src/components/tables/table/_variables.scss +19 -0
- package/src/components/tables/table/index.ts +1 -0
- package/src/components/tables/table/sampleData.ts +162 -0
- package/src/index.ts +1 -4
- 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/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 -2
- 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 +2 -2
- package/src/styles/variables/_icons.scss +7 -0
- package/src/styles/variables/index.scss +2 -1
- package/src/types.ts +2 -14
- package/tsconfig.json +1 -1
- package/lib/legacy/components/Accordion/Accordion.styles.d.ts +0 -2
- 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/ListTable/Header/Header.styles.d.ts +0 -2
- package/lib/legacy/components/ListTable/ListTable.styles.d.ts +0 -2
- package/lib/legacy/components/LoadingAwareContainer/LoadingAwareContainer.styles.d.ts +0 -3
- package/lib/legacy/components/Navigation/Drawer/Drawer.d.ts +0 -16
- package/lib/legacy/components/Navigation/Drawer/Drawer.stories.d.ts +0 -6
- package/lib/legacy/components/Navigation/Drawer/DrawerLinkList.d.ts +0 -9
- package/lib/legacy/components/Navigation/Drawer/DrawerLinkList.styles.d.ts +0 -2
- package/lib/legacy/components/Navigation/Drawer/__mocks__/mocks.d.ts +0 -3
- package/lib/legacy/components/Navigation/Drawer/index.d.ts +0 -1
- package/lib/legacy/components/Navigation/Drawer/types.d.ts +0 -7
- package/lib/legacy/components/Navigation/index.d.ts +0 -1
- package/lib/legacy/components/Pagination/Pagination.styles.d.ts +0 -2
- package/lib/legacy/components/Toggle/Toggle.stories.d.ts +0 -21
- package/lib/legacy/components/Toggle/Toggle.styles.d.ts +0 -2
- package/lib/legacy/components/Tooltip/Tooltip.styles.d.ts +0 -2
- package/lib/legacy/components/basic-section/Section/Section.styles.d.ts +0 -2
- package/lib/legacy/components/basic-section/SectionBlock/SectionBlock.styles.d.ts +0 -2
- package/lib/legacy/components/basic-section/SectionBody/SectionBody.styles.d.ts +0 -2
- package/lib/legacy/components/basic-section/SectionHeader/SectionHeader.styles.d.ts +0 -2
- package/lib/legacy/components/basic-section/SectionTable/SectionTable.styles.d.ts +0 -2
- package/lib/legacy/components/buttons/Button/Button.styles.d.ts +0 -2
- package/lib/legacy/components/buttons/IconButton/IconButton.styles.d.ts +0 -4
- package/lib/legacy/components/dropdowns/BorderSelect/BorderSelect.styles.d.ts +0 -3
- package/lib/legacy/components/dropdowns/MultiCombobox/MultiCombobox.styles.d.ts +0 -3
- package/lib/legacy/components/dropdowns/Select/Select.styles.d.ts +0 -2
- package/lib/legacy/components/dropdowns/SingleCombobox/SingleCombobox.styles.d.ts +0 -3
- package/lib/legacy/components/inputs/DatePicker/DatePicker.styles.d.ts +0 -2
- package/lib/legacy/components/inputs/EditableInput/EditableInput.styles.d.ts +0 -2
- package/lib/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.styles.d.ts +0 -2
- package/lib/legacy/components/inputs/NumberInput/NumberInput.styles.d.ts +0 -2
- package/lib/legacy/components/inputs/RadioButtons/RadioButtons.styles.d.ts +0 -14
- package/lib/legacy/components/inputs/RadioGroup/RadioGroup.styles.d.ts +0 -2
- package/lib/legacy/components/inputs/SearchInput/SearchInput.styles.d.ts +0 -2
- package/lib/legacy/components/inputs/TextInput/TextInput.styles.d.ts +0 -3
- package/lib/legacy/components/loading-indicators/BarSpinner/BarSpinner.styles.d.ts +0 -2
- package/lib/legacy/components/loading-indicators/CirclePulse/CirclePulse.styles.d.ts +0 -8
- package/lib/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.styles.d.ts +0 -8
- package/lib/legacy/components/loading-indicators/LoadingList/LoadingList.styles.d.ts +0 -2
- package/lib/legacy/components/loading-indicators/PercentageRing/PercentageRing.styles.d.ts +0 -2
- package/lib/legacy/components/modals/ConfirmModal/ConfirmModal.styles.d.ts +0 -2
- package/lib/legacy/components/modals/ModalBase/ModalBase.styles.d.ts +0 -4
- package/lib/legacy/components/text-truncate/TextTruncate.styles.d.ts +0 -2
- package/lib/legacy/components/user-feedback/Shrug/Shrug.styles.d.ts +0 -2
- 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/src/legacy/components/Navigation/Drawer/Drawer.scss +0 -61
- package/src/legacy/components/Navigation/Drawer/Drawer.stories.tsx +0 -43
- package/src/legacy/components/Navigation/Drawer/Drawer.tsx +0 -107
- package/src/legacy/components/Navigation/Drawer/DrawerLinkList.styles.ts +0 -65
- package/src/legacy/components/Navigation/Drawer/DrawerLinkList.tsx +0 -64
- package/src/legacy/components/Navigation/Drawer/__mocks__/mocks.ts +0 -49
- package/src/legacy/components/Navigation/Drawer/__tests__/Drawer.test.tsx +0 -180
- package/src/legacy/components/Navigation/Drawer/__tests__/DrawerLinkList.test.tsx +0 -66
- package/src/legacy/components/Navigation/Drawer/index.ts +0 -1
- package/src/legacy/components/Navigation/Drawer/types.ts +0 -8
- package/src/legacy/components/Navigation/index.ts +0 -1
- /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/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/index.d.ts +0 -0
- /package/lib/{legacy → src/legacy}/components/ListTable/ListTable.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/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/index.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/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/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/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/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/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/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/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/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/index.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/index.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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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.test.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/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/index.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
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
|
-
}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
4
|
-
import {
|
|
5
|
-
faCheckSquare,
|
|
6
|
-
faDotCircle,
|
|
7
|
-
faFile,
|
|
8
|
-
faFileAlt,
|
|
9
|
-
faFilePdf,
|
|
10
|
-
faFileWord,
|
|
11
|
-
faSquare,
|
|
12
|
-
} from '@fortawesome/free-regular-svg-icons';
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
faAngleDoubleLeft,
|
|
16
|
-
faArrowCircleRight,
|
|
17
|
-
faArrowDown,
|
|
18
|
-
faArrowLeft,
|
|
19
|
-
faArrowRight,
|
|
20
|
-
faArrowUp,
|
|
21
|
-
faBan,
|
|
22
|
-
faCaretDown,
|
|
23
|
-
faCaretUp,
|
|
24
|
-
faChartBar,
|
|
25
|
-
faCheck,
|
|
26
|
-
faCheckCircle,
|
|
27
|
-
faCircleNotch,
|
|
28
|
-
faClipboard,
|
|
29
|
-
faClock,
|
|
30
|
-
faClone,
|
|
31
|
-
faCloud,
|
|
32
|
-
faCog,
|
|
33
|
-
faCogs,
|
|
34
|
-
faCoins,
|
|
35
|
-
faCube,
|
|
36
|
-
faCut,
|
|
37
|
-
faDownload,
|
|
38
|
-
faExclamationCircle,
|
|
39
|
-
faExclamationTriangle,
|
|
40
|
-
faExternalLinkAlt,
|
|
41
|
-
faEyeDropper,
|
|
42
|
-
faFileDownload,
|
|
43
|
-
faFileExport,
|
|
44
|
-
faFileUpload,
|
|
45
|
-
faFilter,
|
|
46
|
-
faGhost,
|
|
47
|
-
faHatWizard,
|
|
48
|
-
faInfoCircle,
|
|
49
|
-
faKey,
|
|
50
|
-
faKeyboard,
|
|
51
|
-
faLayerGroup,
|
|
52
|
-
faPencilAlt,
|
|
53
|
-
faPlus,
|
|
54
|
-
faPlusSquare,
|
|
55
|
-
faQuestionCircle,
|
|
56
|
-
faRobot,
|
|
57
|
-
faSearch,
|
|
58
|
-
faSignOutAlt,
|
|
59
|
-
faSlidersH,
|
|
60
|
-
faSyncAlt,
|
|
61
|
-
faTag,
|
|
62
|
-
faTimes,
|
|
63
|
-
faTimesCircle,
|
|
64
|
-
faTint,
|
|
65
|
-
faToggleOff,
|
|
66
|
-
faToggleOn,
|
|
67
|
-
faTrash,
|
|
68
|
-
faTrashAlt,
|
|
69
|
-
faUndo,
|
|
70
|
-
faUser,
|
|
71
|
-
faUsers,
|
|
72
|
-
faMousePointer,
|
|
73
|
-
faStepForward,
|
|
74
|
-
faSearchMinus,
|
|
75
|
-
faSearchPlus,
|
|
76
|
-
faTable,
|
|
77
|
-
faImage,
|
|
78
|
-
faLink,
|
|
79
|
-
faList,
|
|
80
|
-
} from '@fortawesome/free-solid-svg-icons';
|
|
81
|
-
|
|
82
|
-
const faIcons = {
|
|
83
|
-
'fa-dot-circle': generateSvg(faDotCircle),
|
|
84
|
-
'fa-file': generateSvg(faFile),
|
|
85
|
-
'fa-file-alt': generateSvg(faFileAlt),
|
|
86
|
-
'fa-file-pdf': generateSvg(faFilePdf),
|
|
87
|
-
'fa-file-word': generateSvg(faFileWord),
|
|
88
|
-
'fa-check-square': generateSvg(faCheckSquare),
|
|
89
|
-
'fa-square': generateSvg(faSquare),
|
|
90
|
-
|
|
91
|
-
'fa-angle-double-left': generateSvg(faAngleDoubleLeft),
|
|
92
|
-
'fa-arrow-circle-right': generateSvg(faArrowCircleRight),
|
|
93
|
-
'fa-arrow-down': generateSvg(faArrowDown),
|
|
94
|
-
'fa-arrow-left': generateSvg(faArrowLeft),
|
|
95
|
-
'fa-arrow-right': generateSvg(faArrowRight),
|
|
96
|
-
'fa-arrow-up': generateSvg(faArrowUp),
|
|
97
|
-
'fa-ban': generateSvg(faBan),
|
|
98
|
-
'fa-caret-down': generateSvg(faCaretDown),
|
|
99
|
-
'fa-caret-up': generateSvg(faCaretUp),
|
|
100
|
-
'fa-chart-bar': generateSvg(faChartBar),
|
|
101
|
-
'fa-check': generateSvg(faCheck),
|
|
102
|
-
'fa-check-circle': generateSvg(faCheckCircle),
|
|
103
|
-
'fa-circle-notch': generateSvg(faCircleNotch),
|
|
104
|
-
'fa-clipboard': generateSvg(faClipboard),
|
|
105
|
-
'fa-clock': generateSvg(faClock),
|
|
106
|
-
'fa-clone': generateSvg(faClone),
|
|
107
|
-
'fa-cloud': generateSvg(faCloud),
|
|
108
|
-
'fa-cog': generateSvg(faCog),
|
|
109
|
-
'fa-cogs': generateSvg(faCogs),
|
|
110
|
-
'fa-coins': generateSvg(faCoins),
|
|
111
|
-
'fa-cube': generateSvg(faCube),
|
|
112
|
-
'fa-cut': generateSvg(faCut),
|
|
113
|
-
'fa-download': generateSvg(faDownload),
|
|
114
|
-
'fa-exclamation-circle': generateSvg(faExclamationCircle),
|
|
115
|
-
'fa-exclamation-triangle': generateSvg(faExclamationTriangle),
|
|
116
|
-
'fa-external-link-alt': generateSvg(faExternalLinkAlt),
|
|
117
|
-
'fa-eye-dropper': generateSvg(faEyeDropper),
|
|
118
|
-
'fa-file-download': generateSvg(faFileDownload),
|
|
119
|
-
'fa-file-export': generateSvg(faFileExport),
|
|
120
|
-
'fa-file-upload': generateSvg(faFileUpload),
|
|
121
|
-
'fa-filter': generateSvg(faFilter),
|
|
122
|
-
'fa-ghost': generateSvg(faGhost),
|
|
123
|
-
'fa-hat-wizard': generateSvg(faHatWizard),
|
|
124
|
-
'fa-info-circle': generateSvg(faInfoCircle),
|
|
125
|
-
'fa-key': generateSvg(faKey),
|
|
126
|
-
'fa-keyboard': generateSvg(faKeyboard),
|
|
127
|
-
'fa-layer-group': generateSvg(faLayerGroup),
|
|
128
|
-
'fa-pencil-alt': generateSvg(faPencilAlt),
|
|
129
|
-
'fa-plus': generateSvg(faPlus),
|
|
130
|
-
'fa-plus-square': generateSvg(faPlusSquare),
|
|
131
|
-
'fa-question-circle': generateSvg(faQuestionCircle),
|
|
132
|
-
'fa-robot': generateSvg(faRobot),
|
|
133
|
-
'fa-search': generateSvg(faSearch),
|
|
134
|
-
'fa-sign-out-alt': generateSvg(faSignOutAlt),
|
|
135
|
-
'fa-sliders-h': generateSvg(faSlidersH),
|
|
136
|
-
'fa-sync-alt': generateSvg(faSyncAlt),
|
|
137
|
-
'fa-tag': generateSvg(faTag),
|
|
138
|
-
'fa-times': generateSvg(faTimes),
|
|
139
|
-
'fa-times-circle': generateSvg(faTimesCircle),
|
|
140
|
-
'fa-tint': generateSvg(faTint),
|
|
141
|
-
'fa-toggle-off': generateSvg(faToggleOff),
|
|
142
|
-
'fa-toggle-on': generateSvg(faToggleOn),
|
|
143
|
-
'fa-trash': generateSvg(faTrash),
|
|
144
|
-
'fa-trash-alt': generateSvg(faTrashAlt),
|
|
145
|
-
'fa-undo': generateSvg(faUndo),
|
|
146
|
-
'fa-user': generateSvg(faUser),
|
|
147
|
-
'fa-users': generateSvg(faUsers),
|
|
148
|
-
'fa-mouse-pointer': generateSvg(faMousePointer),
|
|
149
|
-
'fa-step-forward': generateSvg(faStepForward),
|
|
150
|
-
'fa-search-minus': generateSvg(faSearchMinus),
|
|
151
|
-
'fa-search-plus': generateSvg(faSearchPlus),
|
|
152
|
-
'fa-table': generateSvg(faTable),
|
|
153
|
-
'fa-image': generateSvg(faImage),
|
|
154
|
-
'fa-link': generateSvg(faLink),
|
|
155
|
-
'fa-list': generateSvg(faList),
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
function generateSvg(iconDefinition: IconDefinition): React.ReactElement {
|
|
159
|
-
const { icon } = iconDefinition;
|
|
160
|
-
|
|
161
|
-
return (
|
|
162
|
-
<svg fill="currentColor" viewBox={`0 0 ${icon[0]} ${icon[1]}`}>
|
|
163
|
-
<path d={`${icon[4]}`} />
|
|
164
|
-
</svg>
|
|
165
|
-
);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export { faIcons };
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
import { IconName } from '@/types';
|
|
5
|
-
import { COLORS, TYPOGRAPHY } from '@/legacy/tokens';
|
|
6
|
-
|
|
7
|
-
import { Icon } from './Icon';
|
|
8
|
-
|
|
9
|
-
interface IconGroupProps {
|
|
10
|
-
groupObject: any;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export function IconGroup(props: IconGroupProps): React.ReactElement {
|
|
14
|
-
const { groupObject } = props;
|
|
15
|
-
|
|
16
|
-
const swatch = (iconName: string): React.ReactChild => {
|
|
17
|
-
return (
|
|
18
|
-
<li key={iconName}>
|
|
19
|
-
<figure>
|
|
20
|
-
<Icon name={iconName as IconName} />
|
|
21
|
-
|
|
22
|
-
<figcaption>{iconName}</figcaption>
|
|
23
|
-
</figure>
|
|
24
|
-
</li>
|
|
25
|
-
);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
return (
|
|
29
|
-
<IconGroupContainer>{Object.keys(groupObject).map((key) => swatch(key))}</IconGroupContainer>
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const svgSize = '5ch';
|
|
34
|
-
|
|
35
|
-
export const IconContainer = styled.span`
|
|
36
|
-
color: ${COLORS.defaultFontColor};
|
|
37
|
-
`;
|
|
38
|
-
|
|
39
|
-
export const IconGroupContainer = styled.ul`
|
|
40
|
-
color: ${process.env.STORYBOOK_THEME === 'light' ? 'currentColor' : COLORS.defaultFontColor};
|
|
41
|
-
|
|
42
|
-
list-style: none;
|
|
43
|
-
margin-top: 2em;
|
|
44
|
-
padding-left: 0;
|
|
45
|
-
|
|
46
|
-
font-family: ${TYPOGRAPHY.fontFamily.base};
|
|
47
|
-
|
|
48
|
-
display: grid;
|
|
49
|
-
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
|
|
50
|
-
grid-column-gap: 1em;
|
|
51
|
-
grid-row-gap: 1em;
|
|
52
|
-
|
|
53
|
-
li {
|
|
54
|
-
display: flex;
|
|
55
|
-
align-items: center;
|
|
56
|
-
justify-content: center;
|
|
57
|
-
|
|
58
|
-
figure {
|
|
59
|
-
margin-left: 0;
|
|
60
|
-
margin-right: 0;
|
|
61
|
-
text-align: center;
|
|
62
|
-
|
|
63
|
-
svg {
|
|
64
|
-
height: ${svgSize};
|
|
65
|
-
width: ${svgSize};
|
|
66
|
-
margin-bottom: 1em;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
`;
|
|
71
|
-
|
|
72
|
-
export const SpecifiedSizeContainer = styled.div`
|
|
73
|
-
color: ${COLORS.defaultFontColor};
|
|
74
|
-
|
|
75
|
-
width: 50vw;
|
|
76
|
-
font-size: 2em;
|
|
77
|
-
|
|
78
|
-
display: grid;
|
|
79
|
-
grid-template-columns: 1fr 5fr;
|
|
80
|
-
column-gap: 2em;
|
|
81
|
-
row-gap: 2em;
|
|
82
|
-
align-items: center;
|
|
83
|
-
justify-items: center;
|
|
84
|
-
|
|
85
|
-
code {
|
|
86
|
-
justify-self: start;
|
|
87
|
-
}
|
|
88
|
-
`;
|