@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,162 @@
|
|
|
1
|
+
export const sampleData = [
|
|
2
|
+
{
|
|
3
|
+
name: 'Thalion',
|
|
4
|
+
class: 'Ranger',
|
|
5
|
+
age: 120,
|
|
6
|
+
weapon: 'Longbow',
|
|
7
|
+
backstory: 'Raised by wolves in the deep forests.',
|
|
8
|
+
favoriteMeal: 'Venison stew',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: 'Brom',
|
|
12
|
+
class: 'Fighter',
|
|
13
|
+
age: 35,
|
|
14
|
+
weapon: 'Greatsword',
|
|
15
|
+
backstory: 'A former soldier seeking redemption.',
|
|
16
|
+
favoriteMeal: 'Roasted boar',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: 'Elysia',
|
|
20
|
+
class: 'Cleric',
|
|
21
|
+
age: 60,
|
|
22
|
+
weapon: 'Mace',
|
|
23
|
+
backstory: 'A devoted follower of the goddess of life.',
|
|
24
|
+
favoriteMeal: 'Vegetable soup',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'Faelar',
|
|
28
|
+
class: 'Rogue',
|
|
29
|
+
age: 80,
|
|
30
|
+
weapon: 'Dagger',
|
|
31
|
+
backstory: 'Grew up on the streets of a bustling city.',
|
|
32
|
+
favoriteMeal: 'Bread and cheese',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Maelis',
|
|
36
|
+
class: 'Wizard',
|
|
37
|
+
age: 200,
|
|
38
|
+
weapon: 'Staff',
|
|
39
|
+
backstory: 'A scholar obsessed with ancient magic.',
|
|
40
|
+
favoriteMeal: 'Mushroom stew',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'Grimm',
|
|
44
|
+
class: 'Barbarian',
|
|
45
|
+
age: 40,
|
|
46
|
+
weapon: 'Battleaxe',
|
|
47
|
+
backstory: 'Hails from a tribe in the frozen north.',
|
|
48
|
+
favoriteMeal: 'Grilled salmon',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'Seraphina',
|
|
52
|
+
class: 'Bard',
|
|
53
|
+
age: 25,
|
|
54
|
+
weapon: 'Rapier',
|
|
55
|
+
backstory: 'A wandering minstrel with a mysterious past.',
|
|
56
|
+
favoriteMeal: 'Apple pie',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'Kael',
|
|
60
|
+
class: 'Druid',
|
|
61
|
+
age: 75,
|
|
62
|
+
weapon: 'Scimitar',
|
|
63
|
+
backstory: 'A guardian of the natural world.',
|
|
64
|
+
favoriteMeal: 'Berry tart',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'Aria',
|
|
68
|
+
class: 'Paladin',
|
|
69
|
+
age: 30,
|
|
70
|
+
weapon: 'Longsword',
|
|
71
|
+
backstory: 'A knight on a divine mission.',
|
|
72
|
+
favoriteMeal: 'Roasted chicken',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: 'Xan',
|
|
76
|
+
class: 'Warlock',
|
|
77
|
+
age: 45,
|
|
78
|
+
weapon: 'Pact Blade',
|
|
79
|
+
backstory: 'Made a pact with a powerful entity for magic.',
|
|
80
|
+
favoriteMeal: 'Stuffed peppers',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'Lyra',
|
|
84
|
+
class: 'Sorcerer',
|
|
85
|
+
age: 28,
|
|
86
|
+
weapon: 'Dagger',
|
|
87
|
+
backstory: 'Born with innate magical abilities.',
|
|
88
|
+
favoriteMeal: 'Pancakes with syrup',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'Thorn',
|
|
92
|
+
class: 'Monk',
|
|
93
|
+
age: 50,
|
|
94
|
+
weapon: 'Quarterstaff',
|
|
95
|
+
backstory: 'A hermit who seeks enlightenment.',
|
|
96
|
+
favoriteMeal: 'Rice and vegetables',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'Cassia',
|
|
100
|
+
class: 'Ranger',
|
|
101
|
+
age: 32,
|
|
102
|
+
weapon: 'Shortbow',
|
|
103
|
+
backstory: 'A hunter with a keen eye.',
|
|
104
|
+
favoriteMeal: 'Roasted pheasant',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'Darius',
|
|
108
|
+
class: 'Fighter',
|
|
109
|
+
age: 36,
|
|
110
|
+
weapon: 'Longsword',
|
|
111
|
+
backstory: 'A mercenary with a heart of gold.',
|
|
112
|
+
favoriteMeal: 'Beef stew',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: 'Iris',
|
|
116
|
+
class: 'Cleric',
|
|
117
|
+
age: 60,
|
|
118
|
+
weapon: 'Warhammer',
|
|
119
|
+
backstory: 'A healer devoted to the god of light.',
|
|
120
|
+
favoriteMeal: 'Fresh bread and soup',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: 'Fenrir',
|
|
124
|
+
class: 'Barbarian',
|
|
125
|
+
age: 42,
|
|
126
|
+
weapon: 'Greataxe',
|
|
127
|
+
backstory: 'A warrior from a distant land.',
|
|
128
|
+
favoriteMeal: 'Grilled steak',
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: 'Luna',
|
|
132
|
+
class: 'Druid',
|
|
133
|
+
age: 70,
|
|
134
|
+
weapon: 'Sickle',
|
|
135
|
+
backstory: 'A protector of the natural world.',
|
|
136
|
+
favoriteMeal: 'Fruit salad',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: 'Orion',
|
|
140
|
+
class: 'Paladin',
|
|
141
|
+
age: 33,
|
|
142
|
+
weapon: 'Halberd',
|
|
143
|
+
backstory: 'A knight on a holy quest.',
|
|
144
|
+
favoriteMeal: 'Roasted lamb',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: 'Astra',
|
|
148
|
+
class: 'Bard',
|
|
149
|
+
age: 26,
|
|
150
|
+
weapon: 'Lute',
|
|
151
|
+
backstory: 'A musician with a magical voice.',
|
|
152
|
+
favoriteMeal: 'Honey cake',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: 'Zephyr',
|
|
156
|
+
class: 'Rogue',
|
|
157
|
+
age: 29,
|
|
158
|
+
weapon: 'Shortsword',
|
|
159
|
+
backstory: 'A thief with a quick hand.',
|
|
160
|
+
favoriteMeal: 'Fish and chips',
|
|
161
|
+
},
|
|
162
|
+
];
|
package/src/index.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import './styles/index.scss';
|
|
2
2
|
|
|
3
3
|
export { GlobalStyles } from './legacy/styles/globals/index';
|
|
4
|
-
export { faIcons } from './legacy/components/Icon/faIcons';
|
|
5
|
-
export { indicons } from './legacy/components/Icon/indicons';
|
|
6
4
|
|
|
7
5
|
export {
|
|
8
6
|
ANIMATION,
|
|
@@ -26,10 +24,8 @@ export {
|
|
|
26
24
|
CirclePulse,
|
|
27
25
|
CircleSpinner,
|
|
28
26
|
ConfirmModal,
|
|
29
|
-
Drawer,
|
|
30
27
|
DatePicker,
|
|
31
28
|
EditableInput,
|
|
32
|
-
Icon,
|
|
33
29
|
IconButton,
|
|
34
30
|
ListTable,
|
|
35
31
|
LoadingAwareContainer,
|
|
@@ -63,3 +59,4 @@ export { numberUtils, stringUtils, colorUtils } from './legacy/utils';
|
|
|
63
59
|
// New Components
|
|
64
60
|
export { Container, Row, Col } from './components/grid';
|
|
65
61
|
export { Button } from './components/button';
|
|
62
|
+
export { Icon } from './components/icons';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
|
-
import { Icon } from '@/
|
|
5
|
+
import { Icon } from '@/components/icons';
|
|
6
6
|
import { PermafrostComponent } from '@/types';
|
|
7
7
|
|
|
8
8
|
import { StyledAccordion } from './Accordion.styles';
|
|
@@ -20,7 +20,7 @@ export const Accordion = (props: Props) => {
|
|
|
20
20
|
<StyledAccordion className={className} id={id} open={open} data-cy={props['data-cy']}>
|
|
21
21
|
<summary>
|
|
22
22
|
<div className="header-container">
|
|
23
|
-
<Icon className="toggle-icon" name="chevron-up"
|
|
23
|
+
<Icon className="toggle-icon" name="chevron-up" />
|
|
24
24
|
{header ? <h2>{header}</h2> : null}
|
|
25
25
|
</div>
|
|
26
26
|
</summary>
|
|
@@ -6,7 +6,7 @@ import { numberUtils } from '@/legacy/utils';
|
|
|
6
6
|
|
|
7
7
|
import { BorderSelect } from '@/legacy/components/dropdowns';
|
|
8
8
|
import { Button } from '@/legacy/components/buttons';
|
|
9
|
-
import { Icon } from '@/
|
|
9
|
+
import { Icon } from '@/components/icons';
|
|
10
10
|
|
|
11
11
|
import { StyledHeader } from './Header.styles';
|
|
12
12
|
|
|
@@ -57,7 +57,6 @@ export const Header = (props: Props) => {
|
|
|
57
57
|
<Icon
|
|
58
58
|
name="fa-arrow-down"
|
|
59
59
|
ariaLabel="descending"
|
|
60
|
-
size={[16]}
|
|
61
60
|
style={{ transform: sortBy.descending ? '' : 'rotate(180deg)' }}
|
|
62
61
|
/>
|
|
63
62
|
</Button>
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
|
|
4
|
-
import { Button
|
|
4
|
+
import { Button } from '@/legacy/components';
|
|
5
5
|
|
|
6
6
|
import { ListTable } from './ListTable';
|
|
7
7
|
import { mockUserHeaders, mockDocProcHeaders, mockAllUsers, mockDocProcReport } from './mock-data';
|
|
8
|
+
import { Icon } from '@/components/icons';
|
|
8
9
|
|
|
9
10
|
const meta = {
|
|
10
11
|
component: ListTable,
|
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
|
|
6
|
-
import { Icon } from '@/
|
|
6
|
+
import { Icon } from '@/components/icons';
|
|
7
7
|
import { PermafrostComponent, IconName } from '@/types';
|
|
8
8
|
import { StyledToggle } from './Toggle.styles';
|
|
9
|
+
import { IconSizes } from '@/components/icons/types';
|
|
9
10
|
|
|
10
11
|
type Props = {
|
|
11
12
|
disabled: boolean;
|
|
12
13
|
onChange: any;
|
|
13
14
|
value: boolean;
|
|
14
15
|
['aria-label']?: string;
|
|
15
|
-
iconSize?:
|
|
16
|
+
iconSize?: IconSizes;
|
|
16
17
|
checkedIconName?: IconName;
|
|
17
18
|
notCheckedIconName?: IconName;
|
|
18
19
|
} & PermafrostComponent;
|
|
@@ -29,6 +30,8 @@ export const Toggle = (props: Props) => {
|
|
|
29
30
|
iconSize,
|
|
30
31
|
} = props;
|
|
31
32
|
|
|
33
|
+
const defaultIconStyle = { width: '5px', height: '5px' };
|
|
34
|
+
|
|
32
35
|
return (
|
|
33
36
|
<StyledToggle
|
|
34
37
|
className={classNames(className, {
|
|
@@ -47,10 +50,20 @@ export const Toggle = (props: Props) => {
|
|
|
47
50
|
<span className="slider round" />
|
|
48
51
|
|
|
49
52
|
{checkedIconName && (
|
|
50
|
-
<Icon
|
|
53
|
+
<Icon
|
|
54
|
+
size={iconSize}
|
|
55
|
+
name={checkedIconName}
|
|
56
|
+
className="checked-icon"
|
|
57
|
+
style={iconSize ? undefined : defaultIconStyle}
|
|
58
|
+
/>
|
|
51
59
|
)}
|
|
52
60
|
{notCheckedIconName && (
|
|
53
|
-
<Icon
|
|
61
|
+
<Icon
|
|
62
|
+
size={iconSize}
|
|
63
|
+
name={notCheckedIconName}
|
|
64
|
+
className="not-checked-icon"
|
|
65
|
+
style={iconSize ? undefined : defaultIconStyle}
|
|
66
|
+
/>
|
|
54
67
|
)}
|
|
55
68
|
</StyledToggle>
|
|
56
69
|
);
|
|
@@ -4,7 +4,7 @@ import React, { useState } from 'react';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
|
|
6
6
|
import { IconName } from '@/types';
|
|
7
|
-
import { Icon } from '@/
|
|
7
|
+
import { Icon } from '@/components/icons';
|
|
8
8
|
import { BorderSelect } from '@/legacy/components/dropdowns';
|
|
9
9
|
|
|
10
10
|
import { StyledSectionTable } from './SectionTable.styles';
|
|
@@ -66,7 +66,7 @@ export function Button(props: ButtonProps): React.ReactElement {
|
|
|
66
66
|
type={type || 'button'}
|
|
67
67
|
{...rest}
|
|
68
68
|
>
|
|
69
|
-
{busy && <CircleSpinner
|
|
69
|
+
{busy && <CircleSpinner className="mr-2" />}
|
|
70
70
|
|
|
71
71
|
{children}
|
|
72
72
|
</StyledButton>
|
|
@@ -8,7 +8,8 @@ import { AriaButtonProps } from '@react-types/button';
|
|
|
8
8
|
|
|
9
9
|
import { SPACING } from '@/legacy/tokens';
|
|
10
10
|
import { IconName, PermafrostComponent } from '@/types';
|
|
11
|
-
import { Icon
|
|
11
|
+
import { Icon } from '@/components/icons';
|
|
12
|
+
import { CircleSpinner } from '@/legacy/components';
|
|
12
13
|
import { ButtonSize, IconButtonVariant } from '../types';
|
|
13
14
|
|
|
14
15
|
import { StyledIconButton, StyledIconButtonLink } from './IconButton.styles';
|
|
@@ -81,7 +82,6 @@ export function IconButton(props: Props) {
|
|
|
81
82
|
|
|
82
83
|
const iconElement = busy ? (
|
|
83
84
|
<CircleSpinner
|
|
84
|
-
size="1em"
|
|
85
85
|
style={{
|
|
86
86
|
marginTop: `${adjustAlignment}px`,
|
|
87
87
|
marginBottom: `${Math.abs(adjustAlignment)}px`,
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import { v4 as uuid } from 'uuid';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
|
|
7
|
-
import { Icon } from '
|
|
7
|
+
import { Icon } from '@/components/icons';
|
|
8
8
|
import { PermafrostComponent } from '@/types';
|
|
9
9
|
|
|
10
10
|
import { StyledSelect, StyledValidationError } from './BorderSelect.styles';
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import React, { useRef } from 'react';
|
|
4
4
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
5
5
|
|
|
6
|
-
import { Icon, IconButton } from '@/legacy/components';
|
|
7
6
|
import { ComboboxOption } from '../types';
|
|
8
7
|
import { MultiCombobox } from './MultiCombobox';
|
|
9
8
|
import { useCombobox } from '../useCombobox';
|
|
9
|
+
import { Button, Icon } from '@/index';
|
|
10
10
|
|
|
11
11
|
const options = [
|
|
12
12
|
{ value: 'angie', label: 'angie - Labeler' },
|
|
@@ -35,13 +35,14 @@ function StoryRender(props: any) {
|
|
|
35
35
|
return (
|
|
36
36
|
<>
|
|
37
37
|
<MultiCombobox ref={selectEl} {...props} />
|
|
38
|
-
<
|
|
39
|
-
adjustAlignment={0}
|
|
38
|
+
<Button
|
|
40
39
|
iconName="trash"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
onClick={() => clearValue()}
|
|
41
|
+
ariaLabel="clear selections"
|
|
42
|
+
className="mt-4"
|
|
43
|
+
>
|
|
44
|
+
clear selections
|
|
45
|
+
</Button>
|
|
45
46
|
</>
|
|
46
47
|
);
|
|
47
48
|
}
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import { components } from 'react-select';
|
|
5
5
|
|
|
6
6
|
import { PermafrostComponent } from '@/types';
|
|
7
|
-
import { Icon } from '
|
|
7
|
+
import { Icon } from '@/components/icons';
|
|
8
8
|
import { addCustomProps } from '../utils';
|
|
9
9
|
import type { ComboboxProps, ComboboxOption } from '../types';
|
|
10
10
|
|
|
@@ -62,7 +62,7 @@ export const MultiCombobox = React.forwardRef((props: Props, ref: any) => {
|
|
|
62
62
|
const MultiValueRemove = (props: any) => {
|
|
63
63
|
return (
|
|
64
64
|
<components.MultiValueRemove {...props}>
|
|
65
|
-
<Icon name="x-close" ariaLabel="remove" size=
|
|
65
|
+
<Icon name="x-close" ariaLabel="remove" size="xs" />
|
|
66
66
|
</components.MultiValueRemove>
|
|
67
67
|
);
|
|
68
68
|
};
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { v4 as uuid } from 'uuid';
|
|
4
4
|
|
|
5
|
-
import { Icon } from '@/
|
|
5
|
+
import { Icon } from '@/components/icons';
|
|
6
6
|
import { PermafrostComponent } from '@/types';
|
|
7
7
|
|
|
8
8
|
import { StyledSelect } from './Select.styles';
|
|
@@ -61,8 +61,8 @@ export const Select = (props: Props) => {
|
|
|
61
61
|
);
|
|
62
62
|
})}
|
|
63
63
|
</select>
|
|
64
|
-
|
|
65
|
-
<Icon className="chevron" name="chevron-down" size={size === 'small' ?
|
|
64
|
+
{/* TODO: Fix this size mismatch when bringing Select into DS */}
|
|
65
|
+
<Icon className="chevron" name="chevron-down" size={size === 'small' ? 'xs' : 'sm'} />
|
|
66
66
|
</div>
|
|
67
67
|
</StyledSelect>
|
|
68
68
|
);
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { components } from 'react-select';
|
|
4
4
|
|
|
5
|
-
import { Icon } from '@/
|
|
5
|
+
import { Icon } from '@/components/icons';
|
|
6
6
|
import { PermafrostComponent } from '@/types';
|
|
7
7
|
import { addCustomProps } from '../utils';
|
|
8
8
|
|
|
@@ -53,7 +53,7 @@ export const SingleCombobox = React.forwardRef((props: Props, ref: any) => {
|
|
|
53
53
|
const DropdownIndicator = (props: any) => {
|
|
54
54
|
return (
|
|
55
55
|
<components.DropdownIndicator {...props}>
|
|
56
|
-
<Icon name="fa-caret-down" ariaLabel="open dropdown"
|
|
56
|
+
<Icon name="fa-caret-down" ariaLabel="open dropdown" />
|
|
57
57
|
</components.DropdownIndicator>
|
|
58
58
|
);
|
|
59
59
|
};
|
|
@@ -2,7 +2,7 @@ export { Accordion } from './Accordion';
|
|
|
2
2
|
export { Section, SectionBlock, SectionBody, SectionHeader, SectionTable } from './basic-section';
|
|
3
3
|
export { Button, IconButton } from './buttons';
|
|
4
4
|
export { BorderSelect, MultiCombobox, Select, SingleCombobox } from './dropdowns';
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
export {
|
|
7
7
|
EditableInput,
|
|
8
8
|
NumberInput,
|
|
@@ -29,7 +29,6 @@ export { Pagination } from './Pagination';
|
|
|
29
29
|
export { Shrug } from './user-feedback';
|
|
30
30
|
export { ConfirmModal, ModalBase } from './modals';
|
|
31
31
|
export { LoadingAwareContainer } from './LoadingAwareContainer';
|
|
32
|
-
export { Drawer } from './Navigation/Drawer';
|
|
33
32
|
export { TextTruncate } from './text-truncate';
|
|
34
33
|
export { Toggle } from './Toggle';
|
|
35
34
|
export { Tooltip } from './Tooltip';
|
|
@@ -8,7 +8,7 @@ import classNames from 'classnames';
|
|
|
8
8
|
|
|
9
9
|
import { stringUtils } from '@/legacy/utils';
|
|
10
10
|
|
|
11
|
-
import { Icon } from '@/
|
|
11
|
+
import { Icon } from '@/components/icons';
|
|
12
12
|
import { PermafrostComponent } from '@/types';
|
|
13
13
|
|
|
14
14
|
import { StyledEditableInput } from './EditableInput.styles';
|
|
@@ -27,7 +27,7 @@ export const Single: Story = {
|
|
|
27
27
|
label: 'Pick a date:',
|
|
28
28
|
value: today,
|
|
29
29
|
triggerIcon: 'calendar',
|
|
30
|
-
triggerIconSize:
|
|
30
|
+
triggerIconSize: 'lg',
|
|
31
31
|
clearOnClose: true,
|
|
32
32
|
onChange: (date: Date | DateRange | undefined) => {
|
|
33
33
|
// eslint-disable-next-line no-console
|
|
@@ -43,7 +43,7 @@ export const Range: Story = {
|
|
|
43
43
|
value: today,
|
|
44
44
|
isRangePicker: true,
|
|
45
45
|
triggerIcon: 'calendar',
|
|
46
|
-
triggerIconSize:
|
|
46
|
+
triggerIconSize: 'lg',
|
|
47
47
|
onChange: (date: Date | DateRange | undefined) => {
|
|
48
48
|
// eslint-disable-next-line no-console
|
|
49
49
|
console.log(date);
|
|
@@ -12,9 +12,10 @@ import {
|
|
|
12
12
|
} from 'react-day-picker';
|
|
13
13
|
import { usePopper } from 'react-popper';
|
|
14
14
|
import { IconName, PermafrostComponent } from '@/types';
|
|
15
|
-
import { Icon } from '@/
|
|
15
|
+
import { Icon } from '@/components/icons';
|
|
16
16
|
|
|
17
17
|
import { StyledNoInputDatePicker } from './NoInputDatePicker.styles';
|
|
18
|
+
import { IconSizes } from '@/components/icons/types';
|
|
18
19
|
|
|
19
20
|
type Props = PermafrostComponent & {
|
|
20
21
|
ariaLabel?: string;
|
|
@@ -28,7 +29,7 @@ type Props = PermafrostComponent & {
|
|
|
28
29
|
selectedRange?: DateRange | undefined;
|
|
29
30
|
value: Date | undefined;
|
|
30
31
|
triggerIcon: IconName;
|
|
31
|
-
triggerIconSize:
|
|
32
|
+
triggerIconSize: IconSizes;
|
|
32
33
|
isRangePicker?: boolean;
|
|
33
34
|
isOpen?: boolean;
|
|
34
35
|
clearOnClose?: boolean;
|
|
@@ -49,7 +50,7 @@ function CustomCaption(props: CaptionProps) {
|
|
|
49
50
|
}
|
|
50
51
|
}}
|
|
51
52
|
>
|
|
52
|
-
<Icon size=
|
|
53
|
+
<Icon size="sm" ariaLabel="Previous Month" name="chevron-left" />
|
|
53
54
|
</button>
|
|
54
55
|
<h2 className="custom__caption__text">{format(props.displayMonth, 'MMM yyyy')}</h2>
|
|
55
56
|
<button
|
|
@@ -62,7 +63,7 @@ function CustomCaption(props: CaptionProps) {
|
|
|
62
63
|
}
|
|
63
64
|
}}
|
|
64
65
|
>
|
|
65
|
-
<Icon size=
|
|
66
|
+
<Icon size="sm" ariaLabel="Next Month" name="chevron-right" />
|
|
66
67
|
</button>
|
|
67
68
|
</div>
|
|
68
69
|
);
|
|
@@ -5,7 +5,7 @@ import classNames from 'classnames';
|
|
|
5
5
|
import { v4 as uuid } from 'uuid';
|
|
6
6
|
|
|
7
7
|
import { Button } from '@/legacy/components/buttons';
|
|
8
|
-
import { Icon } from '@/
|
|
8
|
+
import { Icon } from '@/components/icons';
|
|
9
9
|
import { PermafrostComponent } from '@/types';
|
|
10
10
|
|
|
11
11
|
import { StyledNumberField } from './NumberInput.styles';
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import { v4 as uuid } from 'uuid';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
|
|
7
|
-
import { Icon } from '@/
|
|
7
|
+
import { Icon } from '@/components/icons';
|
|
8
8
|
import { PermafrostComponent } from '@/types';
|
|
9
9
|
|
|
10
10
|
import { StyledSearchField } from './SearchInput.styles';
|
|
@@ -2,23 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
|
-
import { Icon } from '
|
|
5
|
+
import { Icon } from '@/components/icons';
|
|
6
6
|
import { PermafrostComponent } from '@/types';
|
|
7
|
+
import { IconSizes } from '@/components/icons/types';
|
|
7
8
|
|
|
8
9
|
type Props = PermafrostComponent & {
|
|
9
10
|
ariaLabel?: string;
|
|
10
|
-
size?:
|
|
11
|
-
style?:
|
|
11
|
+
size?: IconSizes;
|
|
12
|
+
style?: React.CSSProperties;
|
|
12
13
|
fill?: string;
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
export function CircleSpinner(props: Props): React.ReactElement {
|
|
16
|
-
const { className, fill, id, size, style, ariaLabel = 'Loading...' } = props;
|
|
17
|
+
const { className, fill, id, size = 'sm', style, ariaLabel = 'Loading...' } = props;
|
|
17
18
|
|
|
18
|
-
const
|
|
19
|
-
const loaderStyle = {
|
|
19
|
+
const loaderStyle: React.CSSProperties = {
|
|
20
20
|
position: 'relative',
|
|
21
21
|
top: '1px',
|
|
22
|
+
color: fill || 'currentColor',
|
|
22
23
|
...style,
|
|
23
24
|
};
|
|
24
25
|
|
|
@@ -28,9 +29,8 @@ export function CircleSpinner(props: Props): React.ReactElement {
|
|
|
28
29
|
className={`spin ${className || ''}`}
|
|
29
30
|
data-cy={props['data-cy']}
|
|
30
31
|
id={id}
|
|
31
|
-
size={
|
|
32
|
+
size={size}
|
|
32
33
|
style={loaderStyle}
|
|
33
|
-
fill={fill || 'currentColor'}
|
|
34
34
|
ariaLabel={ariaLabel}
|
|
35
35
|
/>
|
|
36
36
|
);
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import { Link } from 'react-router-dom';
|
|
5
5
|
|
|
6
6
|
import { Button } from '@/legacy/components/buttons';
|
|
7
|
-
import { Icon } from '@/
|
|
7
|
+
import { Icon } from '@/components/icons';
|
|
8
8
|
import { PermafrostComponent } from '@/types';
|
|
9
9
|
|
|
10
10
|
import { StyledShrug } from './Shrug.styles';
|
|
@@ -22,7 +22,7 @@ export function Shrug(props: Props): React.ReactElement {
|
|
|
22
22
|
const { actionLink, actionText, buttonAction, buttonText, className, id, message } = props;
|
|
23
23
|
return (
|
|
24
24
|
<StyledShrug className={className} data-cy={props['data-cy']} id={id}>
|
|
25
|
-
<Icon name="shrug"
|
|
25
|
+
<Icon name="shrug" />
|
|
26
26
|
{typeof message === 'string' ? (
|
|
27
27
|
<p className="t-subhead-large" {...props?.messageProps}>
|
|
28
28
|
{message}
|
|
@@ -31,12 +31,12 @@ export function Shrug(props: Props): React.ReactElement {
|
|
|
31
31
|
message
|
|
32
32
|
)}
|
|
33
33
|
{actionLink && actionText && (
|
|
34
|
-
<Link to={actionLink} className="button blue cta"
|
|
34
|
+
<Link to={actionLink} className="button blue cta mt-5">
|
|
35
35
|
{actionText}
|
|
36
36
|
</Link>
|
|
37
37
|
)}
|
|
38
38
|
{buttonAction && buttonText && (
|
|
39
|
-
<Button onClick={buttonAction}
|
|
39
|
+
<Button onClick={buttonAction} className="mt-5" variant="cta">
|
|
40
40
|
{buttonText}
|
|
41
41
|
</Button>
|
|
42
42
|
)}
|
package/src/styles/index.scss
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
@import 'variables/index.scss';
|
|
3
3
|
|
|
4
4
|
// Components
|
|
5
|
-
@import '../legacy/components/Navigation/Drawer/Drawer.scss';
|
|
6
5
|
@import '../components/button/styles/Button.scss';
|
|
6
|
+
@import '../components/icons/styles/Icon.scss';
|
|
7
|
+
@import '../components/tables/table/Table.scss';
|
|
7
8
|
|
|
8
|
-
// Helper Classes
|
|
9
9
|
@import 'typography';
|
|
10
10
|
@import 'colors';
|
|
11
11
|
@import 'borders';
|