@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
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { IconName } from '../../types';
|
|
1
|
+
import { IconName } from '@/types';
|
|
3
2
|
export type ButtonVariants = 'solid' | 'outline' | 'text';
|
|
4
3
|
export type ButtonColors = 'primary' | 'secondary' | 'warning' | 'error' | 'success' | 'info';
|
|
5
4
|
export type ButtonIconPositions = 'left' | 'right';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { IconProps } from './types';
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<IconProps>;
|
|
6
|
+
export declare const DefaultIcon: Story;
|
|
7
|
+
export declare const IconStates: Story;
|
|
8
|
+
export declare const CustomStyledIcon: Story;
|
|
9
|
+
export declare const Indicons: Story;
|
|
10
|
+
export declare const FontAwesomeIcons: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Icon } from './Icon';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MouseEventHandler } from 'react';
|
|
2
|
+
import { IconName, PermafrostComponent } from '@/types';
|
|
3
|
+
export type IconSizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
export type IconProps = PermafrostComponent & {
|
|
5
|
+
name: IconName;
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
size?: IconSizes;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
onClick?: MouseEventHandler<SVGElement>;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LoadingComponent: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableColumn } from 'react-data-table-component';
|
|
3
|
+
type LocalDirection = 'auto' | 'ltr' | 'rtl';
|
|
4
|
+
type LocalAlignment = 'left' | 'right' | 'center';
|
|
5
|
+
interface TableProps {
|
|
6
|
+
columns: TableColumn<any>[];
|
|
7
|
+
data: Record<string, any>[];
|
|
8
|
+
responsive?: boolean;
|
|
9
|
+
direction?: LocalDirection;
|
|
10
|
+
subHeaderAlign?: LocalAlignment;
|
|
11
|
+
subHeaderWrap?: boolean;
|
|
12
|
+
pagination?: boolean;
|
|
13
|
+
selectableRows?: boolean;
|
|
14
|
+
keyField?: string;
|
|
15
|
+
title?: string | React.ReactNode;
|
|
16
|
+
striped?: boolean;
|
|
17
|
+
highlightOnHover?: boolean;
|
|
18
|
+
pointerOnHover?: boolean;
|
|
19
|
+
dense?: boolean;
|
|
20
|
+
persistTableHead?: boolean;
|
|
21
|
+
noDataComponent?: string | React.ReactNode;
|
|
22
|
+
isDisabled?: boolean;
|
|
23
|
+
onRowClicked?: (row: Record<string, any>, event: React.MouseEvent) => void;
|
|
24
|
+
onRowDoubleClicked?: (row: Record<string, any>, event: React.MouseEvent) => void;
|
|
25
|
+
onRowMouseEnter?: (row: Record<string, any>, event: React.MouseEvent) => void;
|
|
26
|
+
onRowMouseLeave?: (row: Record<string, any>, event: React.MouseEvent) => void;
|
|
27
|
+
defaultSortFieldId?: string | number;
|
|
28
|
+
defaultSortAsc?: boolean;
|
|
29
|
+
sortIcon?: React.ReactNode;
|
|
30
|
+
sortServer?: boolean;
|
|
31
|
+
sortFunction?: any;
|
|
32
|
+
onSort?: any;
|
|
33
|
+
selectableRowsVisibleOnly?: boolean;
|
|
34
|
+
selectableRowsHighlight?: boolean;
|
|
35
|
+
selectableRowsSingle?: boolean;
|
|
36
|
+
selectableRowsNoSelectAll?: boolean;
|
|
37
|
+
selectableRowsComponent?: any;
|
|
38
|
+
selectableRowsComponentProps?: Record<string, any>;
|
|
39
|
+
clearSelectedRows?: boolean;
|
|
40
|
+
selectableRowSelected?: (row: Record<string, any>) => boolean;
|
|
41
|
+
selectableRowDisabled?: (row: Record<string, any>) => boolean;
|
|
42
|
+
onSelectedRowsChange?: any;
|
|
43
|
+
expandableRows?: boolean;
|
|
44
|
+
expandableIcon?: any;
|
|
45
|
+
expandableRowsComponent?: any;
|
|
46
|
+
expandableRowDisabled?: any;
|
|
47
|
+
expandableRowExpanded?: any;
|
|
48
|
+
expandableRowsComponentProps?: Record<string, any>;
|
|
49
|
+
expandOnRowClicked?: boolean;
|
|
50
|
+
expandOnRowDoubleClicked?: boolean;
|
|
51
|
+
expandableRowsHideExpander?: boolean;
|
|
52
|
+
expandableInheritConditionalStyles?: boolean;
|
|
53
|
+
onRowExpandToggled?: any;
|
|
54
|
+
paginationServer?: boolean;
|
|
55
|
+
paginationServerOptions?: Record<string, any>;
|
|
56
|
+
paginationDefaultPage?: number;
|
|
57
|
+
paginationResetDefaultPage?: boolean;
|
|
58
|
+
paginationTotalRows?: number;
|
|
59
|
+
paginationPerPage?: number;
|
|
60
|
+
paginationRowsPerPageOptions?: number[];
|
|
61
|
+
paginationComponent?: any;
|
|
62
|
+
paginationComponentOptions?: Record<string, any>;
|
|
63
|
+
paginationIconFirstPage?: any;
|
|
64
|
+
paginationIconLastPage?: any;
|
|
65
|
+
paginationIconNext?: any;
|
|
66
|
+
paginationIconPrevious?: any;
|
|
67
|
+
onChangePage?: any;
|
|
68
|
+
onChangeRowsPerPage?: any;
|
|
69
|
+
actions?: any;
|
|
70
|
+
noHeader?: boolean;
|
|
71
|
+
fixedHeader?: boolean;
|
|
72
|
+
fixedHeaderScrollHeight?: string;
|
|
73
|
+
subHeader?: boolean;
|
|
74
|
+
subHeaderComponent?: any;
|
|
75
|
+
isLoading?: boolean;
|
|
76
|
+
}
|
|
77
|
+
export declare const Table: (props: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
78
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Table } from './table';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './styles/index.scss';
|
|
2
|
+
export { GlobalStyles } from './legacy/styles/globals/index';
|
|
3
|
+
export { ANIMATION, BREAKPOINT, COLORS, MATH, MEDIA_QUERIES, MARGINS, PADDINGS, SPACING, TYPOGRAPHY, } from './legacy/tokens';
|
|
4
|
+
export { AbstractRadio, AbstractRadioGroup, Accordion, BarSpinner, BorderSelect, Button as LegacyButton, CirclePulse, CircleSpinner, ConfirmModal, DatePicker, EditableInput, IconButton, ListTable, LoadingAwareContainer, LoadingList, ModalBase, MultiCombobox, NoInputDatePicker, NumberInput, Pagination, PercentageRing, Radio, RadioGroup, RandomLoadingMessage, SearchInput, Section, SectionBlock, SectionBody, SectionHeader, SectionTable, Select, Shrug, SingleCombobox, TextInput, TextTruncate, Toggle, Tooltip, } from './legacy/components';
|
|
5
|
+
export { numberUtils, stringUtils, colorUtils } from './legacy/utils';
|
|
6
|
+
export { Container, Row, Col } from './components/grid';
|
|
7
|
+
export { Button } from './components/button';
|
|
8
|
+
export { Icon } from './components/icons';
|
|
@@ -4,19 +4,19 @@ import { Accordion } from './Accordion';
|
|
|
4
4
|
declare const meta: {
|
|
5
5
|
component: (props: import("../../../types").PermafrostComponent & {
|
|
6
6
|
content: React.ReactNode;
|
|
7
|
-
header?: React.ReactNode;
|
|
8
|
-
open?: boolean
|
|
7
|
+
header?: React.ReactNode | string;
|
|
8
|
+
open?: boolean;
|
|
9
9
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
title: string;
|
|
11
11
|
argTypes: {};
|
|
12
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react
|
|
13
|
-
id?: string
|
|
14
|
-
className?: string
|
|
15
|
-
'data-cy'?: string
|
|
16
|
-
'data-testid'?: string
|
|
12
|
+
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
13
|
+
id?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
'data-cy'?: string;
|
|
16
|
+
'data-testid'?: string;
|
|
17
17
|
content: React.ReactNode;
|
|
18
|
-
header?: React.ReactNode;
|
|
19
|
-
open?: boolean
|
|
18
|
+
header?: React.ReactNode | string;
|
|
19
|
+
open?: boolean;
|
|
20
20
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
21
21
|
};
|
|
22
22
|
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledAccordion: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>, never>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
@@ -3,9 +3,9 @@ import type { StoryObj } from '@storybook/react';
|
|
|
3
3
|
import { ListTable } from './ListTable';
|
|
4
4
|
declare const meta: {
|
|
5
5
|
component: (props: import("../../../types").PermafrostComponent & {
|
|
6
|
-
accordion?: boolean
|
|
7
|
-
accordionDefaultOpen?: boolean
|
|
8
|
-
emptyListMessage?: string
|
|
6
|
+
accordion?: boolean;
|
|
7
|
+
accordionDefaultOpen?: boolean;
|
|
8
|
+
emptyListMessage?: string;
|
|
9
9
|
error?: any;
|
|
10
10
|
errorMessage?: any;
|
|
11
11
|
headerComponent?: React.ReactNode;
|
|
@@ -24,7 +24,7 @@ declare const meta: {
|
|
|
24
24
|
getNextPage: (before: number) => void;
|
|
25
25
|
getPage: (after: number, pageOffset: number) => void;
|
|
26
26
|
getPreviousPage: (after: number) => void;
|
|
27
|
-
}
|
|
27
|
+
};
|
|
28
28
|
sortBy?: {
|
|
29
29
|
descending: boolean;
|
|
30
30
|
items: {
|
|
@@ -34,10 +34,10 @@ declare const meta: {
|
|
|
34
34
|
value: string;
|
|
35
35
|
onSort: (value: string) => void;
|
|
36
36
|
updateDescending: () => void;
|
|
37
|
-
}
|
|
38
|
-
subTitle?: React.ReactNode;
|
|
37
|
+
};
|
|
38
|
+
subTitle?: string | React.ReactNode;
|
|
39
39
|
title: string;
|
|
40
|
-
totalCount?: number
|
|
40
|
+
totalCount?: number;
|
|
41
41
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
42
42
|
title: string;
|
|
43
43
|
argTypes: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledListTable: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const StyledStatusContainer: 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 StyledLoadingAwareContainer: 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 StyledPagination: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { PermafrostComponent, IconName } from '@/types';
|
|
2
|
+
import { IconSizes } from '@/components/icons/types';
|
|
2
3
|
type Props = {
|
|
3
4
|
disabled: boolean;
|
|
4
5
|
onChange: any;
|
|
5
6
|
value: boolean;
|
|
6
7
|
['aria-label']?: string;
|
|
7
|
-
iconSize?:
|
|
8
|
+
iconSize?: IconSizes;
|
|
8
9
|
checkedIconName?: IconName;
|
|
9
10
|
notCheckedIconName?: IconName;
|
|
10
11
|
} & PermafrostComponent;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Toggle } from './Toggle';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: (props: {
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
onChange: any;
|
|
7
|
+
value: boolean;
|
|
8
|
+
"aria-label"?: string;
|
|
9
|
+
iconSize?: import("../../../components/icons/types").IconSizes;
|
|
10
|
+
checkedIconName?: import("../../../types").IconName;
|
|
11
|
+
notCheckedIconName?: import("../../../types").IconName;
|
|
12
|
+
} & import("../../../types").PermafrostComponent) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
title: string;
|
|
14
|
+
argTypes: {};
|
|
15
|
+
args: {};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof Toggle>;
|
|
19
|
+
export declare const Normal: Story;
|
|
20
|
+
export declare const Disabled: Story;
|
|
21
|
+
export declare const Icons: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledToggle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledTooltip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { StoryObj } from '@storybook/react';
|
|
3
2
|
import { Section } from './Section';
|
|
4
3
|
declare const meta: {
|
|
5
4
|
component: (props: import("../../../../types").PermafrostComponent & {
|
|
6
|
-
style?: object
|
|
5
|
+
style?: object;
|
|
7
6
|
children: import("react").ReactNode;
|
|
8
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
title: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledSectionBlock: 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 StyledSectionBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
package/lib/{legacy → src/legacy}/components/basic-section/SectionHeader/SectionHeader.stories.d.ts
RENAMED
|
@@ -4,7 +4,7 @@ import { SectionHeader } from './SectionHeader';
|
|
|
4
4
|
declare const meta: {
|
|
5
5
|
component: {
|
|
6
6
|
(props: import("../../../../types").PermafrostComponent & {
|
|
7
|
-
style?: object
|
|
7
|
+
style?: object;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
defaultProps: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledSectionHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledSectionTable: 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 StyledButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
@@ -14,7 +14,7 @@ declare const meta: {
|
|
|
14
14
|
};
|
|
15
15
|
isDisabled: {
|
|
16
16
|
control: {
|
|
17
|
-
type:
|
|
17
|
+
type: "boolean";
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
adjustAlignment: {
|
|
@@ -23,12 +23,12 @@ declare const meta: {
|
|
|
23
23
|
};
|
|
24
24
|
className: {
|
|
25
25
|
control: {
|
|
26
|
-
disable:
|
|
26
|
+
disable: true;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
style: {
|
|
30
30
|
control: {
|
|
31
|
-
disable:
|
|
31
|
+
disable: true;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const iconButton: import("styled-components").RuleSet<object>;
|
|
2
|
+
export declare const StyledIconButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
3
|
+
export declare const StyledIconButtonLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react-router-dom").LinkProps & import("react").RefAttributes<HTMLAnchorElement>, "ref"> & {
|
|
4
|
+
ref?: ((instance: HTMLAnchorElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLAnchorElement> | null | undefined;
|
|
5
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("react-router-dom").LinkProps & import("react").RefAttributes<HTMLAnchorElement>>, keyof import("react").Component<any, {}, any>>;
|
package/lib/{legacy → src/legacy}/components/dropdowns/BorderSelect/BorderSelect.stories.d.ts
RENAMED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { StoryObj } from '@storybook/react';
|
|
3
2
|
import { BorderSelect } from './BorderSelect';
|
|
4
3
|
declare const meta: {
|
|
5
4
|
component: (props: import("../../../../types").PermafrostComponent & {
|
|
6
|
-
defaultValue?: string
|
|
7
|
-
disabled?: boolean
|
|
8
|
-
horizontal?: boolean
|
|
9
|
-
initialText?: string
|
|
10
|
-
label?: string
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
horizontal?: boolean;
|
|
8
|
+
initialText?: string;
|
|
9
|
+
label?: string;
|
|
11
10
|
onChange(e: import("react").ChangeEvent<HTMLSelectElement>): void;
|
|
12
11
|
options: {
|
|
13
12
|
name: string;
|
|
14
13
|
value: string | number;
|
|
15
14
|
}[];
|
|
16
|
-
style?: object
|
|
17
|
-
value?: string | number
|
|
18
|
-
validationErrors?: string[]
|
|
15
|
+
style?: object;
|
|
16
|
+
value?: string | number;
|
|
17
|
+
validationErrors?: string[];
|
|
19
18
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
19
|
title: string;
|
|
21
20
|
argTypes: {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const StyledSelect: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export declare const StyledValidationError: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -13,11 +13,11 @@ export declare const MultiCombobox: React.ForwardRefExoticComponent<PermafrostCo
|
|
|
13
13
|
* MultiValue is a selected option in the input area
|
|
14
14
|
*/
|
|
15
15
|
multiValueProps?: {
|
|
16
|
-
|
|
17
|
-
}
|
|
16
|
+
"data-cy": string;
|
|
17
|
+
};
|
|
18
18
|
optionProps?: {
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
values?: ComboboxOption[]
|
|
19
|
+
"data-cy": string;
|
|
20
|
+
};
|
|
21
|
+
values?: ComboboxOption[];
|
|
22
22
|
onChange: (selectedOption: ComboboxOption[]) => void;
|
|
23
23
|
} & React.RefAttributes<unknown>>;
|
package/lib/{legacy → src/legacy}/components/dropdowns/MultiCombobox/MultiCombobox.stories.d.ts
RENAMED
|
@@ -5,24 +5,24 @@ import { MultiCombobox } from './MultiCombobox';
|
|
|
5
5
|
declare const meta: {
|
|
6
6
|
component: React.ForwardRefExoticComponent<import("../../../../types").PermafrostComponent & import("../types").ComboboxProps & {
|
|
7
7
|
multiValueProps?: {
|
|
8
|
-
|
|
9
|
-
}
|
|
8
|
+
"data-cy": string;
|
|
9
|
+
};
|
|
10
10
|
optionProps?: {
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
values?: ComboboxOption[]
|
|
11
|
+
"data-cy": string;
|
|
12
|
+
};
|
|
13
|
+
values?: ComboboxOption[];
|
|
14
14
|
onChange: (selectedOption: ComboboxOption[]) => void;
|
|
15
15
|
} & React.RefAttributes<unknown>>;
|
|
16
16
|
title: string;
|
|
17
17
|
argTypes: {
|
|
18
18
|
options: {
|
|
19
19
|
control: {
|
|
20
|
-
disable:
|
|
20
|
+
disable: true;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
defaultValue: {
|
|
24
24
|
control: {
|
|
25
|
-
disable:
|
|
25
|
+
disable: true;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import ReactSelect from 'react-select';
|
|
2
|
+
export declare const StyledMultiCombobox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<unknown, boolean, import("react-select").GroupBase<unknown>>, "onChange" | "value" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<unknown, boolean, import("react-select").GroupBase<unknown>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<unknown> & import("react").RefAttributes<import("react-select/dist/declarations/src/Select").default<unknown, boolean, import("react-select").GroupBase<unknown>>>, "ref"> & {
|
|
3
|
+
ref?: ((instance: import("react-select/dist/declarations/src/Select").default<unknown, boolean, import("react-select").GroupBase<unknown>> | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<import("react-select/dist/declarations/src/Select").default<unknown, boolean, import("react-select").GroupBase<unknown>>> | null | undefined;
|
|
4
|
+
}, never>> & string & Omit<ReactSelect, keyof import("react").Component<any, {}, any>>;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { StoryObj } from '@storybook/react';
|
|
3
2
|
import { Select } from './Select';
|
|
4
3
|
declare const meta: {
|
|
5
4
|
component: (props: import("../../../../types").PermafrostComponent & {
|
|
6
|
-
disabled?: boolean
|
|
7
|
-
initialText?: string
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
initialText?: string;
|
|
8
7
|
options: {
|
|
9
8
|
name: string;
|
|
10
9
|
value: string | number;
|
|
11
10
|
}[];
|
|
12
|
-
size?: import("../types").ComboboxSize
|
|
13
|
-
style?: object
|
|
14
|
-
value?: string | number
|
|
15
|
-
variant?: import("../types").ComboboxVariant
|
|
11
|
+
size?: import("../types").ComboboxSize;
|
|
12
|
+
style?: object;
|
|
13
|
+
value?: string | number;
|
|
14
|
+
variant?: import("../types").ComboboxVariant;
|
|
16
15
|
onChange(e: import("react").ChangeEvent<HTMLSelectElement>): void;
|
|
17
16
|
onClick?(e: import("react").MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
18
17
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledSelect: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -10,11 +10,11 @@ import type { ComboboxProps, ComboboxOption } from '../types';
|
|
|
10
10
|
*/
|
|
11
11
|
export declare const SingleCombobox: React.ForwardRefExoticComponent<PermafrostComponent & ComboboxProps & {
|
|
12
12
|
dropdownIndicatorProps?: {
|
|
13
|
-
|
|
14
|
-
}
|
|
13
|
+
"data-cy": string;
|
|
14
|
+
};
|
|
15
15
|
optionProps?: {
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
value?: ComboboxOption
|
|
16
|
+
"data-cy": string;
|
|
17
|
+
};
|
|
18
|
+
value?: ComboboxOption;
|
|
19
19
|
onChange: (selectedOption: ComboboxOption) => void;
|
|
20
20
|
} & React.RefAttributes<unknown>>;
|
package/lib/{legacy → src/legacy}/components/dropdowns/SingleCombobox/SingleCombobox.stories.d.ts
RENAMED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { StoryObj } from '@storybook/react';
|
|
3
2
|
import { ComboboxOption } from '../types';
|
|
4
3
|
import { SingleCombobox } from './SingleCombobox';
|
|
5
4
|
declare const meta: {
|
|
6
5
|
component: import("react").ForwardRefExoticComponent<import("../../../../types").PermafrostComponent & import("../types").ComboboxProps & {
|
|
7
6
|
dropdownIndicatorProps?: {
|
|
8
|
-
|
|
9
|
-
}
|
|
7
|
+
"data-cy": string;
|
|
8
|
+
};
|
|
10
9
|
optionProps?: {
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
value?: ComboboxOption
|
|
10
|
+
"data-cy": string;
|
|
11
|
+
};
|
|
12
|
+
value?: ComboboxOption;
|
|
14
13
|
onChange: (selectedOption: ComboboxOption) => void;
|
|
15
14
|
} & import("react").RefAttributes<unknown>>;
|
|
16
15
|
title: string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import ReactSelect from 'react-select';
|
|
2
|
+
export declare const StyledSingleCombobox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<unknown, boolean, import("react-select").GroupBase<unknown>>, "onChange" | "value" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<unknown, boolean, import("react-select").GroupBase<unknown>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<unknown> & import("react").RefAttributes<import("react-select/dist/declarations/src/Select").default<unknown, boolean, import("react-select").GroupBase<unknown>>>, "ref"> & {
|
|
3
|
+
ref?: ((instance: import("react-select/dist/declarations/src/Select").default<unknown, boolean, import("react-select").GroupBase<unknown>> | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<import("react-select/dist/declarations/src/Select").default<unknown, boolean, import("react-select").GroupBase<unknown>>> | null | undefined;
|
|
4
|
+
}, never>> & string & Omit<ReactSelect, keyof import("react").Component<any, {}, any>>;
|
|
@@ -2,7 +2,6 @@ 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
|
-
export { Icon, faIcons, indicons } from './Icon';
|
|
6
5
|
export { EditableInput, NumberInput, SearchInput, TextInput, Radio, RadioGroup, AbstractRadio, AbstractRadioGroup, DatePicker, NoInputDatePicker, } from './inputs';
|
|
7
6
|
export { BarSpinner, CirclePulse, CircleSpinner, LoadingList, PercentageRing, RandomLoadingMessage, LoadingIndicator, } from './loading-indicators';
|
|
8
7
|
export { ListTable } from './ListTable';
|
|
@@ -10,7 +9,6 @@ export { Pagination } from './Pagination';
|
|
|
10
9
|
export { Shrug } from './user-feedback';
|
|
11
10
|
export { ConfirmModal, ModalBase } from './modals';
|
|
12
11
|
export { LoadingAwareContainer } from './LoadingAwareContainer';
|
|
13
|
-
export { Drawer } from './Navigation/Drawer';
|
|
14
12
|
export { TextTruncate } from './text-truncate';
|
|
15
13
|
export { Toggle } from './Toggle';
|
|
16
14
|
export { Tooltip } from './Tooltip';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledDatePicker: 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 StyledEditableInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
package/lib/{legacy → src/legacy}/components/inputs/NoInputDatePicker/NoInputDatePicker.d.ts
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DateRange } from 'react-day-picker';
|
|
2
2
|
import { IconName, PermafrostComponent } from '@/types';
|
|
3
|
+
import { IconSizes } from '@/components/icons/types';
|
|
3
4
|
type Props = PermafrostComponent & {
|
|
4
5
|
ariaLabel?: string;
|
|
5
6
|
disableBeforeDate?: Date;
|
|
@@ -12,7 +13,7 @@ type Props = PermafrostComponent & {
|
|
|
12
13
|
selectedRange?: DateRange | undefined;
|
|
13
14
|
value: Date | undefined;
|
|
14
15
|
triggerIcon: IconName;
|
|
15
|
-
triggerIconSize:
|
|
16
|
+
triggerIconSize: IconSizes;
|
|
16
17
|
isRangePicker?: boolean;
|
|
17
18
|
isOpen?: boolean;
|
|
18
19
|
clearOnClose?: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledNoInputDatePicker: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|