@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledNumberField: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AbstractRadioGroup } from '../RadioGroup';
|
|
2
|
+
export declare const StyledRadioGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../../../../types").PermafrostComponent & {
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (value: string) => void;
|
|
5
|
+
children: import("react").ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
} & import("@react-types/radio").AriaRadioGroupProps, {
|
|
8
|
+
hideFocusRing: boolean;
|
|
9
|
+
color: string;
|
|
10
|
+
labelColor: string;
|
|
11
|
+
hoverAndSelectedColor: string;
|
|
12
|
+
focusRingColor: string;
|
|
13
|
+
}>> & string & Omit<typeof AbstractRadioGroup, keyof import("react").Component<any, {}, any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledRadioGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { StoryObj } from '@storybook/react';
|
|
3
2
|
import { SearchInput } from './SearchInput';
|
|
4
3
|
declare const meta: {
|
|
5
4
|
component: {
|
|
6
5
|
(props: import("../../../../types").PermafrostComponent & {
|
|
7
|
-
inputBorder?: boolean
|
|
8
|
-
showClearInputIcon?: boolean
|
|
9
|
-
showSearchIcon?: boolean
|
|
6
|
+
inputBorder?: boolean;
|
|
7
|
+
showClearInputIcon?: boolean;
|
|
8
|
+
showSearchIcon?: boolean;
|
|
10
9
|
inputProps?: {
|
|
11
10
|
[key: string]: string;
|
|
12
|
-
}
|
|
13
|
-
onChange?: (
|
|
11
|
+
};
|
|
12
|
+
onChange?: (e: import("react").ChangeEvent<HTMLInputElement>) => void;
|
|
14
13
|
onClear?(): void;
|
|
15
|
-
onKeyUp?: (
|
|
16
|
-
placeholder?: string
|
|
17
|
-
value?: string
|
|
14
|
+
onKeyUp?: (e: import("react").KeyboardEvent<HTMLInputElement>) => void;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
value?: string;
|
|
18
17
|
}): import("react/jsx-runtime").JSX.Element;
|
|
19
18
|
defaultProps: {
|
|
20
19
|
className: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledSearchField: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -6,47 +6,47 @@ declare const meta: {
|
|
|
6
6
|
argTypes: {
|
|
7
7
|
autoComplete: {
|
|
8
8
|
control: {
|
|
9
|
-
disable:
|
|
9
|
+
disable: true;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
className: {
|
|
13
13
|
control: {
|
|
14
|
-
disable:
|
|
14
|
+
disable: true;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
defaultValue: {
|
|
18
18
|
control: {
|
|
19
|
-
disable:
|
|
19
|
+
disable: true;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
inputProps: {
|
|
23
23
|
control: {
|
|
24
|
-
disable:
|
|
24
|
+
disable: true;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
name: {
|
|
28
28
|
control: {
|
|
29
|
-
disable:
|
|
29
|
+
disable: true;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
promptProps: {
|
|
33
33
|
control: {
|
|
34
|
-
disable:
|
|
34
|
+
disable: true;
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
type: {
|
|
38
38
|
control: {
|
|
39
|
-
disable:
|
|
39
|
+
disable: true;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
validationErrors: {
|
|
43
43
|
control: {
|
|
44
|
-
disable:
|
|
44
|
+
disable: true;
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
47
|
value: {
|
|
48
48
|
control: {
|
|
49
|
-
disable:
|
|
49
|
+
disable: true;
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
52
|
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const StyledTextInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export declare const StyledInputInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledBarSpinner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const StyledLoadingIndicator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
|
+
overallsize: string;
|
|
3
|
+
ripplesize: string;
|
|
4
|
+
}>> & string;
|
|
5
|
+
export declare const StyledMessageLoadingIndicator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
6
|
+
overallsize: string;
|
|
7
|
+
}>> & string;
|
package/lib/{legacy → src/legacy}/components/loading-indicators/CircleSpinner/CircleSpinner.d.ts
RENAMED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PermafrostComponent } from '@/types';
|
|
3
|
+
import { IconSizes } from '@/components/icons/types';
|
|
3
4
|
type Props = PermafrostComponent & {
|
|
4
5
|
ariaLabel?: string;
|
|
5
|
-
size?:
|
|
6
|
-
style?:
|
|
7
|
-
[key: string]: string;
|
|
8
|
-
};
|
|
6
|
+
size?: IconSizes;
|
|
7
|
+
style?: React.CSSProperties;
|
|
9
8
|
fill?: string;
|
|
10
9
|
};
|
|
11
10
|
export declare function CircleSpinner(props: Props): React.ReactElement;
|
package/lib/src/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.styles.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const StyledLoadingIndicator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
|
+
overallsize: string;
|
|
3
|
+
ripplesize: string;
|
|
4
|
+
}>> & string;
|
|
5
|
+
export declare const StyledMessageLoadingIndicator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
6
|
+
overallsize: string;
|
|
7
|
+
}>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledLoadingList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
package/lib/src/legacy/components/loading-indicators/PercentageRing/PercentageRing.styles.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledPercentageRing: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -12,27 +12,27 @@ declare const meta: {
|
|
|
12
12
|
argTypes: {
|
|
13
13
|
open: {
|
|
14
14
|
control: {
|
|
15
|
-
disable:
|
|
15
|
+
disable: true;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
className: {
|
|
19
19
|
control: {
|
|
20
|
-
disable:
|
|
20
|
+
disable: true;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
describedBy: {
|
|
24
24
|
control: {
|
|
25
|
-
disable:
|
|
25
|
+
disable: true;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
modalNode: {
|
|
29
29
|
control: {
|
|
30
|
-
disable:
|
|
30
|
+
disable: true;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
width: {
|
|
34
34
|
control: {
|
|
35
|
-
disable:
|
|
35
|
+
disable: true;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledConfirmModal: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare function ModalAdapter(props: any): React.ReactElement;
|
|
3
|
+
export declare const StyledModalBase: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never>> & string & Omit<typeof ModalAdapter, keyof React.Component<any, {}, any>>;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledTextTruncate: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
@@ -8,19 +8,19 @@ declare const meta: {
|
|
|
8
8
|
args: {
|
|
9
9
|
message: string;
|
|
10
10
|
};
|
|
11
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react
|
|
12
|
-
id?: string
|
|
13
|
-
className?: string
|
|
14
|
-
'data-cy'?: string
|
|
15
|
-
'data-testid'?: string
|
|
16
|
-
actionLink?: string
|
|
17
|
-
actionText?: string
|
|
11
|
+
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
12
|
+
id?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
'data-cy'?: string;
|
|
15
|
+
'data-testid'?: string;
|
|
16
|
+
actionLink?: string;
|
|
17
|
+
actionText?: string;
|
|
18
18
|
buttonAction?: (() => void) | undefined;
|
|
19
|
-
buttonText?: string
|
|
20
|
-
message?: React.ReactNode;
|
|
19
|
+
buttonText?: string;
|
|
20
|
+
message?: string | React.ReactNode;
|
|
21
21
|
messageProps?: {
|
|
22
|
-
|
|
23
|
-
}
|
|
22
|
+
"data-cy": string;
|
|
23
|
+
};
|
|
24
24
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
25
25
|
};
|
|
26
26
|
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledShrug: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type PermafrostComponent = {
|
|
2
|
+
id?: string;
|
|
3
|
+
className?: string;
|
|
4
|
+
'data-cy'?: string;
|
|
5
|
+
'data-testid'?: string;
|
|
6
|
+
};
|
|
7
|
+
export type ButtonVariant = 'default' | 'primary' | 'destructive';
|
|
8
|
+
export type ButtonSize = 'normal' | 'large';
|
|
9
|
+
import { IconName } from '../build/generated/iconTypes';
|
|
10
|
+
export type { IconName };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indico-data/design-system",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -12,15 +12,17 @@
|
|
|
12
12
|
"url": "https://github.com/IndicoDataSolutions/permafrost.git"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
|
-
"dev": "storybook dev -p 6006",
|
|
15
|
+
"dev": "npm run generate-icons && storybook dev -p 6006",
|
|
16
16
|
"lint": "yarn eslint src --ext ts,js,tsx,jsx",
|
|
17
|
-
"build": "rollup -c",
|
|
17
|
+
"build": "npm run generate-icons && rollup -c",
|
|
18
18
|
"build storybook": "storybook build",
|
|
19
19
|
"test-storybook": "test-storybook",
|
|
20
20
|
"test": "DEBUG_PRINT_LIMIT=10000 jest",
|
|
21
21
|
"test:watch": "DEBUG_PRINT_LIMIT=10000 jest --watch",
|
|
22
22
|
"all-releases": "npm view @indico-data/design-system versions",
|
|
23
|
-
"latest-release": "npm dist-tags ls @indico-data/design-system"
|
|
23
|
+
"latest-release": "npm dist-tags ls @indico-data/design-system",
|
|
24
|
+
"generate-icons": "node scripts/generateIconTypes.js",
|
|
25
|
+
"postinstall": "yarn generate-icons"
|
|
24
26
|
},
|
|
25
27
|
"lint-staged": {
|
|
26
28
|
"**/*": "prettier --write --ignore-unknown"
|
|
@@ -29,27 +31,30 @@
|
|
|
29
31
|
"@fortawesome/fontawesome-svg-core": "^6.5.2",
|
|
30
32
|
"@fortawesome/free-regular-svg-icons": "^6.5.2",
|
|
31
33
|
"@fortawesome/free-solid-svg-icons": "^6.5.2",
|
|
34
|
+
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
32
35
|
"@indico-data/utils": "^0.0.5",
|
|
33
36
|
"@popperjs/core": "^2.11.8",
|
|
34
|
-
"@react-aria/radio": "^3.10.
|
|
35
|
-
"@react-aria/visually-hidden": "^3.8.
|
|
36
|
-
"@react-types/button": "^3.9.
|
|
37
|
-
"@react-types/checkbox": "^3.
|
|
38
|
-
"@react-types/radio": "^3.
|
|
37
|
+
"@react-aria/radio": "^3.10.3",
|
|
38
|
+
"@react-aria/visually-hidden": "^3.8.12",
|
|
39
|
+
"@react-types/button": "^3.9.3",
|
|
40
|
+
"@react-types/checkbox": "^3.8.1",
|
|
41
|
+
"@react-types/radio": "^3.8.0",
|
|
42
|
+
"@testing-library/react": "^16.0.0",
|
|
39
43
|
"classnames": "^2.5.1",
|
|
40
44
|
"date-fns": "^3.6.0",
|
|
41
45
|
"focus-trap-react": "^10.2.3",
|
|
42
46
|
"html-webpack-plugin": "^5.6.0",
|
|
43
47
|
"prop-types": "^15.8.1",
|
|
44
|
-
"react-aria-components": "^1.
|
|
48
|
+
"react-aria-components": "^1.2.1",
|
|
49
|
+
"react-data-table-component": "^7.6.2",
|
|
45
50
|
"react-day-picker": "^8.10.1",
|
|
46
51
|
"react-grid-system": "^8.2.0",
|
|
47
52
|
"react-modal": "^3.16.1",
|
|
48
53
|
"react-popper": "^2.3.0",
|
|
49
|
-
"react-stately": "^3.
|
|
50
|
-
"react-tooltip": "5.26.
|
|
51
|
-
"svgo": "^3.2.
|
|
52
|
-
"ts-jest": "^29.1.
|
|
54
|
+
"react-stately": "^3.31.0",
|
|
55
|
+
"react-tooltip": "5.26.4",
|
|
56
|
+
"svgo": "^3.2.2",
|
|
57
|
+
"ts-jest": "^29.1.3",
|
|
53
58
|
"tslib": "^2.6.2",
|
|
54
59
|
"uuid": "^9.0.1",
|
|
55
60
|
"webpack": "^5.91.0",
|
|
@@ -90,7 +95,7 @@
|
|
|
90
95
|
"@storybook/theming": "^8.0.8",
|
|
91
96
|
"@testing-library/dom": "^9.3.4",
|
|
92
97
|
"@testing-library/jest-dom": "^6.4.2",
|
|
93
|
-
"@testing-library/react": "^
|
|
98
|
+
"@testing-library/react": "^16.0.0",
|
|
94
99
|
"@testing-library/user-event": "^14.5.2",
|
|
95
100
|
"@types/css-modules": "^1.0.5",
|
|
96
101
|
"@types/jest": "^29.5.12",
|
package/rollup.config.mjs
CHANGED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const { fas } = require('@fortawesome/free-solid-svg-icons');
|
|
4
|
+
|
|
5
|
+
// Read custom icons from indicons.tsx
|
|
6
|
+
const indiconsPath = path.resolve(__dirname, '../src/components/icons/indicons.tsx');
|
|
7
|
+
const indiconsFileContent = fs.readFileSync(indiconsPath, 'utf-8');
|
|
8
|
+
|
|
9
|
+
// Extract keys (icon names) from the indicons file, including both quoted and non-quoted keys
|
|
10
|
+
const customIconMatches = [...indiconsFileContent.matchAll(/['"]?(\w+(-\w+)*)['"]?:\s*\(/g)];
|
|
11
|
+
const customIcons = customIconMatches.map((match) => match[1]);
|
|
12
|
+
|
|
13
|
+
// Convert camelCase to kebab-case, this is a kinda gross but more readable than alternatives (unless we add a new package)
|
|
14
|
+
const camelToKebab = (str) => {
|
|
15
|
+
return str
|
|
16
|
+
.replace(/([a-z])([A-Z])/g, '$1-$2')
|
|
17
|
+
.replace(/([A-Z])([A-Z][a-z])/g, '$1-$2')
|
|
18
|
+
.replace(/(\d)([A-Za-z])/g, '$1-$2')
|
|
19
|
+
.replace(/([a-zA-Z])([0-9])/g, '$1-$2')
|
|
20
|
+
.replace(/([A-Z]+)([A-Z][a-z])/g, (_, p1, p2) => `${p1.toLowerCase()}-${p2}`)
|
|
21
|
+
.replace(/([a-zA-Z])([A-Z]+)/g, (_, p1, p2) => `${p1}-${p2.toLowerCase()}`)
|
|
22
|
+
.toLowerCase();
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const outputDir = path.resolve(__dirname, '../build/generated');
|
|
26
|
+
const outputPath = path.join(outputDir, 'iconTypes.ts');
|
|
27
|
+
|
|
28
|
+
// Ensure the directory exists
|
|
29
|
+
if (!fs.existsSync(outputDir)) {
|
|
30
|
+
fs.mkdirSync(outputDir, { recursive: true });
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Convert FontAwesome icon names to kebab-case and create a mapping
|
|
34
|
+
const fontAwesomeIconNames = Object.keys(fas).map(camelToKebab);
|
|
35
|
+
|
|
36
|
+
const iconNames = fontAwesomeIconNames
|
|
37
|
+
.concat(customIcons)
|
|
38
|
+
.sort()
|
|
39
|
+
.map((name) => `'${name}'`);
|
|
40
|
+
|
|
41
|
+
const content = `
|
|
42
|
+
export const iconNames = [
|
|
43
|
+
${iconNames.join(', ')}
|
|
44
|
+
] as const;
|
|
45
|
+
|
|
46
|
+
export type IconName = typeof iconNames[number];
|
|
47
|
+
`;
|
|
48
|
+
|
|
49
|
+
fs.writeFileSync(outputPath, content.trim());
|
|
50
|
+
console.log('Icon types and names generated');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Icon } from '
|
|
3
|
+
import { Icon } from '@/components/icons';
|
|
4
4
|
|
|
5
5
|
import { ButtonProps } from './types';
|
|
6
6
|
|
|
@@ -57,7 +57,6 @@ export const Button = (props: ButtonProps) => {
|
|
|
57
57
|
onKeyDown={onKeyDown}
|
|
58
58
|
{...rest}
|
|
59
59
|
>
|
|
60
|
-
{/* TODO -- Redo Icon component */}
|
|
61
60
|
{isLoading && (
|
|
62
61
|
<Icon
|
|
63
62
|
name="fa-circle-notch"
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Meta, Canvas, Controls, Story } from '@storybook/blocks';
|
|
2
|
+
import * as IconStories from './Icon.stories';
|
|
3
|
+
import { Col, Row } from '../grid/';
|
|
4
|
+
|
|
5
|
+
<Meta title="Components/Icon" name="Icon" of={IconStories} />
|
|
6
|
+
|
|
7
|
+
# Icon
|
|
8
|
+
|
|
9
|
+
The `Icon` component provides unified rendering of both custom SVG icons (Indicons) and FontAwesome icons.
|
|
10
|
+
|
|
11
|
+
<Canvas
|
|
12
|
+
of={IconStories.DefaultIcon}
|
|
13
|
+
source={{
|
|
14
|
+
code: `<Icon name="indico-o" />`,
|
|
15
|
+
}}
|
|
16
|
+
/>
|
|
17
|
+
|
|
18
|
+
## Props
|
|
19
|
+
|
|
20
|
+
<Controls of={IconStories.DefaultIcon} />
|
|
21
|
+
|
|
22
|
+
## Sizes
|
|
23
|
+
|
|
24
|
+
The `Icon` component supports five predefined sizes:
|
|
25
|
+
|
|
26
|
+
<Story of={IconStories.IconStates} />
|
|
27
|
+
|
|
28
|
+
## Custom Styling
|
|
29
|
+
|
|
30
|
+
You can use the `className` prop to apply custom styles to the icons.
|
|
31
|
+
|
|
32
|
+
<Story of={IconStories.CustomStyledIcon} />
|
|
33
|
+
```tsx // .tsx
|
|
34
|
+
<Icon name="fa-mountain-sun" className="color-primary-600" />
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Indicons (Custom Icons)
|
|
38
|
+
|
|
39
|
+
Indicons are custom SVG icons created specifically for our design system. Below is a list of all available custom icons.
|
|
40
|
+
|
|
41
|
+
<Story of={IconStories.Indicons} />
|
|
42
|
+
## Font Awesome Icons
|
|
43
|
+
|
|
44
|
+
Font Awesome provides a wide range of icons for various purposes. Below is a list
|
|
45
|
+
of FontAwesome icons available in our design system. Use the search bar to find specific icons, and navigate
|
|
46
|
+
through the pages to explore all icons.
|
|
47
|
+
|
|
48
|
+
<Story of={IconStories.FontAwesomeIcons} />
|
|
49
|
+
```
|