@coveord/plasma-mantine 52.3.0 → 52.4.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/.turbo/turbo-build.log +4 -5
- package/.turbo/turbo-test.log +79 -29
- package/LICENSE +197 -11
- package/dist/.tsbuildinfo +1 -1
- package/dist/{definitions → cjs}/components/collection/Collection.d.ts.map +1 -1
- package/dist/cjs/components/collection/Collection.js +71 -45
- package/dist/cjs/components/collection/Collection.js.map +1 -1
- package/dist/{definitions → cjs}/components/collection/Collection.styles.d.ts +1 -0
- package/dist/{definitions → cjs}/components/collection/Collection.styles.d.ts.map +1 -1
- package/dist/cjs/components/collection/Collection.styles.js +8 -2
- package/dist/cjs/components/collection/Collection.styles.js.map +1 -1
- package/dist/{definitions → cjs}/components/collection/CollectionItem.d.ts +1 -1
- package/dist/{definitions → cjs}/components/collection/CollectionItem.d.ts.map +1 -1
- package/dist/cjs/components/collection/CollectionItem.js +26 -26
- package/dist/cjs/components/collection/CollectionItem.js.map +1 -1
- package/dist/cjs/components/header/__tests__/__snapshots__/Header.spec.tsx.snap +1 -1
- package/dist/{definitions → cjs}/components/table/Table.d.ts.map +1 -1
- package/dist/cjs/components/table/Table.js +3 -1
- package/dist/cjs/components/table/Table.js.map +1 -1
- package/dist/cjs/components/table/TableDateRangePicker.js +1 -0
- package/dist/cjs/components/table/TableDateRangePicker.js.map +1 -1
- package/dist/cjs/package.json +1 -0
- package/dist/esm/components/blank-slate/BlankSlate.d.ts +12 -0
- package/dist/esm/components/blank-slate/BlankSlate.d.ts.map +1 -0
- package/dist/esm/components/blank-slate/index.d.ts +2 -0
- package/dist/esm/components/blank-slate/index.d.ts.map +1 -0
- package/dist/esm/components/button/Button.d.ts +16 -0
- package/dist/esm/components/button/Button.d.ts.map +1 -0
- package/dist/esm/components/button/ButtonWithDisabledTooltip.d.ts +29 -0
- package/dist/esm/components/button/ButtonWithDisabledTooltip.d.ts.map +1 -0
- package/dist/esm/components/button/index.d.ts +3 -0
- package/dist/esm/components/button/index.d.ts.map +1 -0
- package/dist/esm/components/code-editor/CodeEditor.d.ts +53 -0
- package/dist/esm/components/code-editor/CodeEditor.d.ts.map +1 -0
- package/dist/esm/components/code-editor/index.d.ts +2 -0
- package/dist/esm/components/code-editor/index.d.ts.map +1 -0
- package/dist/esm/components/code-editor/languages/xml.d.ts +5 -0
- package/dist/esm/components/code-editor/languages/xml.d.ts.map +1 -0
- package/dist/esm/components/collection/Collection.d.ts +108 -0
- package/dist/esm/components/collection/Collection.d.ts.map +1 -0
- package/dist/esm/components/collection/Collection.js +63 -37
- package/dist/esm/components/collection/Collection.js.map +1 -1
- package/dist/esm/components/collection/Collection.styles.d.ts +14 -0
- package/dist/esm/components/collection/Collection.styles.d.ts.map +1 -0
- package/dist/esm/components/collection/Collection.styles.js +8 -2
- package/dist/esm/components/collection/Collection.styles.js.map +1 -1
- package/dist/esm/components/collection/CollectionItem.d.ts +15 -0
- package/dist/esm/components/collection/CollectionItem.d.ts.map +1 -0
- package/dist/esm/components/collection/CollectionItem.js +27 -27
- package/dist/esm/components/collection/CollectionItem.js.map +1 -1
- package/dist/esm/components/collection/index.d.ts +2 -0
- package/dist/esm/components/collection/index.d.ts.map +1 -0
- package/dist/esm/components/copyToClipboard/CopyToClipboard.d.ts +19 -0
- package/dist/esm/components/copyToClipboard/CopyToClipboard.d.ts.map +1 -0
- package/dist/esm/components/copyToClipboard/index.d.ts +2 -0
- package/dist/esm/components/copyToClipboard/index.d.ts.map +1 -0
- package/dist/esm/components/date-range-picker/DateRangePickerInlineCalendar.d.ts +38 -0
- package/dist/esm/components/date-range-picker/DateRangePickerInlineCalendar.d.ts.map +1 -0
- package/dist/esm/components/date-range-picker/DateRangePickerPopoverCalendar.d.ts +31 -0
- package/dist/esm/components/date-range-picker/DateRangePickerPopoverCalendar.d.ts.map +1 -0
- package/dist/esm/components/date-range-picker/DateRangePickerPresetSelect.d.ts +16 -0
- package/dist/esm/components/date-range-picker/DateRangePickerPresetSelect.d.ts.map +1 -0
- package/dist/esm/components/date-range-picker/EditableDateRangePicker.d.ts +19 -0
- package/dist/esm/components/date-range-picker/EditableDateRangePicker.d.ts.map +1 -0
- package/dist/esm/components/date-range-picker/index.d.ts +4 -0
- package/dist/esm/components/date-range-picker/index.d.ts.map +1 -0
- package/dist/esm/components/header/Header.d.ts +49 -0
- package/dist/esm/components/header/Header.d.ts.map +1 -0
- package/dist/esm/components/header/__tests__/__snapshots__/Header.spec.tsx.snap +1 -1
- package/dist/esm/components/header/index.d.ts +2 -0
- package/dist/esm/components/header/index.d.ts.map +1 -0
- package/dist/esm/components/index.d.ts +14 -0
- package/dist/esm/components/index.d.ts.map +1 -0
- package/dist/esm/components/inline-confirm/InlineConfirm.d.ts +12 -0
- package/dist/esm/components/inline-confirm/InlineConfirm.d.ts.map +1 -0
- package/dist/esm/components/inline-confirm/InlineConfirmButton.d.ts +8 -0
- package/dist/esm/components/inline-confirm/InlineConfirmButton.d.ts.map +1 -0
- package/dist/esm/components/inline-confirm/InlineConfirmContext.d.ts +9 -0
- package/dist/esm/components/inline-confirm/InlineConfirmContext.d.ts.map +1 -0
- package/dist/esm/components/inline-confirm/InlineConfirmMenuItem.d.ts +8 -0
- package/dist/esm/components/inline-confirm/InlineConfirmMenuItem.d.ts.map +1 -0
- package/dist/esm/components/inline-confirm/InlineConfirmPrompt.d.ts +11 -0
- package/dist/esm/components/inline-confirm/InlineConfirmPrompt.d.ts.map +1 -0
- package/dist/esm/components/inline-confirm/index.d.ts +4 -0
- package/dist/esm/components/inline-confirm/index.d.ts.map +1 -0
- package/dist/esm/components/inline-confirm/useInlineConfirm.d.ts +6 -0
- package/dist/esm/components/inline-confirm/useInlineConfirm.d.ts.map +1 -0
- package/dist/esm/components/menu/Menu.d.ts +16 -0
- package/dist/esm/components/menu/Menu.d.ts.map +1 -0
- package/dist/esm/components/menu/index.d.ts +2 -0
- package/dist/esm/components/menu/index.d.ts.map +1 -0
- package/dist/esm/components/modal-wizard/ModalWizard.d.ts +78 -0
- package/dist/esm/components/modal-wizard/ModalWizard.d.ts.map +1 -0
- package/dist/esm/components/modal-wizard/ModalWizardStep.d.ts +43 -0
- package/dist/esm/components/modal-wizard/ModalWizardStep.d.ts.map +1 -0
- package/dist/esm/components/modal-wizard/index.d.ts +3 -0
- package/dist/esm/components/modal-wizard/index.d.ts.map +1 -0
- package/dist/esm/components/prompt/Prompt.d.ts +14 -0
- package/dist/esm/components/prompt/Prompt.d.ts.map +1 -0
- package/dist/esm/components/prompt/PromptFooter.d.ts +6 -0
- package/dist/esm/components/prompt/PromptFooter.d.ts.map +1 -0
- package/dist/esm/components/prompt/index.d.ts +2 -0
- package/dist/esm/components/prompt/index.d.ts.map +1 -0
- package/dist/esm/components/sticky-footer/StickyFooter.d.ts +10 -0
- package/dist/esm/components/sticky-footer/StickyFooter.d.ts.map +1 -0
- package/dist/esm/components/sticky-footer/index.d.ts +2 -0
- package/dist/esm/components/sticky-footer/index.d.ts.map +1 -0
- package/dist/esm/components/table/Table.d.ts +3 -0
- package/dist/esm/components/table/Table.d.ts.map +1 -0
- package/dist/esm/components/table/Table.js +3 -1
- package/dist/esm/components/table/Table.js.map +1 -1
- package/dist/esm/components/table/Table.styles.d.ts +19 -0
- package/dist/esm/components/table/Table.styles.d.ts.map +1 -0
- package/dist/esm/components/table/Table.types.d.ts +185 -0
- package/dist/esm/components/table/Table.types.d.ts.map +1 -0
- package/dist/esm/components/table/TableActions.d.ts +26 -0
- package/dist/esm/components/table/TableActions.d.ts.map +1 -0
- package/dist/esm/components/table/TableCollapsibleColumn.d.ts +10 -0
- package/dist/esm/components/table/TableCollapsibleColumn.d.ts.map +1 -0
- package/dist/esm/components/table/TableConsumer.d.ts +5 -0
- package/dist/esm/components/table/TableConsumer.d.ts.map +1 -0
- package/dist/esm/components/table/TableContext.d.ts +5 -0
- package/dist/esm/components/table/TableContext.d.ts.map +1 -0
- package/dist/esm/components/table/TableDateRangePicker.d.ts +19 -0
- package/dist/esm/components/table/TableDateRangePicker.d.ts.map +1 -0
- package/dist/esm/components/table/TableDateRangePicker.js +1 -0
- package/dist/esm/components/table/TableDateRangePicker.js.map +1 -1
- package/dist/esm/components/table/TableFilter.d.ts +22 -0
- package/dist/esm/components/table/TableFilter.d.ts.map +1 -0
- package/dist/esm/components/table/TableFooter.d.ts +8 -0
- package/dist/esm/components/table/TableFooter.d.ts.map +1 -0
- package/dist/esm/components/table/TableHeader.d.ts +17 -0
- package/dist/esm/components/table/TableHeader.d.ts.map +1 -0
- package/dist/esm/components/table/TablePagination.d.ts +10 -0
- package/dist/esm/components/table/TablePagination.d.ts.map +1 -0
- package/dist/esm/components/table/TablePerPage.d.ts +20 -0
- package/dist/esm/components/table/TablePerPage.d.ts.map +1 -0
- package/dist/esm/components/table/TablePredicate.d.ts +21 -0
- package/dist/esm/components/table/TablePredicate.d.ts.map +1 -0
- package/dist/esm/components/table/TableSelectableColumn.d.ts +6 -0
- package/dist/esm/components/table/TableSelectableColumn.d.ts.map +1 -0
- package/dist/esm/components/table/Th.d.ts +8 -0
- package/dist/esm/components/table/Th.d.ts.map +1 -0
- package/dist/esm/components/table/index.d.ts +4 -0
- package/dist/esm/components/table/index.d.ts.map +1 -0
- package/dist/esm/components/table/useRowSelection.d.ts +10 -0
- package/dist/esm/components/table/useRowSelection.d.ts.map +1 -0
- package/dist/esm/form/FormProvider.d.ts +8 -0
- package/dist/esm/form/FormProvider.d.ts.map +1 -0
- package/dist/esm/form/index.d.ts +3 -0
- package/dist/esm/form/index.d.ts.map +1 -0
- package/dist/esm/form/useForm.d.ts +3 -0
- package/dist/esm/form/useForm.d.ts.map +1 -0
- package/dist/esm/hooks/index.d.ts +3 -0
- package/dist/esm/hooks/index.d.ts.map +1 -0
- package/dist/esm/hooks/useControlledList.d.ts +25 -0
- package/dist/esm/hooks/useControlledList.d.ts.map +1 -0
- package/dist/esm/hooks/useParentHeight.d.ts +5 -0
- package/dist/esm/hooks/useParentHeight.d.ts.map +1 -0
- package/dist/esm/index.d.ts +21 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/theme/PlasmaColors.d.ts +19 -0
- package/dist/esm/theme/PlasmaColors.d.ts.map +1 -0
- package/dist/esm/theme/Plasmantine.d.ts +3 -0
- package/dist/esm/theme/Plasmantine.d.ts.map +1 -0
- package/dist/esm/theme/Theme.d.ts +3 -0
- package/dist/esm/theme/Theme.d.ts.map +1 -0
- package/dist/esm/theme/index.d.ts +2 -0
- package/dist/esm/theme/index.d.ts.map +1 -0
- package/dist/esm/utils/createPolymorphicComponent.d.ts +3 -0
- package/dist/esm/utils/createPolymorphicComponent.d.ts.map +1 -0
- package/dist/esm/utils/index.d.ts +3 -0
- package/dist/esm/utils/index.d.ts.map +1 -0
- package/dist/esm/utils/overrideComponent.d.ts +10 -0
- package/dist/esm/utils/overrideComponent.d.ts.map +1 -0
- package/package.json +40 -25
- package/src/__tests__/VitestSetup.ts +1 -0
- package/src/components/collection/Collection.styles.ts +8 -2
- package/src/components/collection/Collection.tsx +44 -28
- package/src/components/collection/CollectionItem.tsx +26 -19
- package/src/components/header/__tests__/__snapshots__/Header.spec.tsx.snap +1 -1
- package/src/components/table/Table.tsx +5 -1
- package/src/components/table/TableDateRangePicker.tsx +1 -1
- package/tsconfig.build.json +1 -1
- package/tsconfig.json +0 -1
- package/vitest.config.ts +3 -0
- package/dist/cjs/__tests__/Utils.js +0 -38
- package/dist/cjs/__tests__/Utils.js.map +0 -1
- package/dist/cjs/__tests__/VitestSetup.js +0 -35
- package/dist/cjs/__tests__/VitestSetup.js.map +0 -1
- package/dist/definitions/__tests__/Utils.d.ts +0 -8
- package/dist/definitions/__tests__/Utils.d.ts.map +0 -1
- package/dist/definitions/__tests__/VitestSetup.d.ts +0 -8
- package/dist/definitions/__tests__/VitestSetup.d.ts.map +0 -1
- package/dist/esm/__tests__/Utils.js +0 -21
- package/dist/esm/__tests__/Utils.js.map +0 -1
- package/dist/esm/__tests__/VitestSetup.js +0 -30
- package/dist/esm/__tests__/VitestSetup.js.map +0 -1
- /package/dist/{definitions → cjs}/components/blank-slate/BlankSlate.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/blank-slate/BlankSlate.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/blank-slate/index.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/blank-slate/index.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/button/Button.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/button/Button.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/button/ButtonWithDisabledTooltip.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/button/ButtonWithDisabledTooltip.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/button/index.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/button/index.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/code-editor/CodeEditor.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/code-editor/CodeEditor.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/code-editor/index.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/code-editor/index.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/code-editor/languages/xml.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/code-editor/languages/xml.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/collection/Collection.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/collection/index.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/collection/index.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/copyToClipboard/CopyToClipboard.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/copyToClipboard/CopyToClipboard.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/copyToClipboard/index.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/copyToClipboard/index.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/date-range-picker/DateRangePickerInlineCalendar.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/date-range-picker/DateRangePickerInlineCalendar.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/date-range-picker/DateRangePickerPopoverCalendar.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/date-range-picker/DateRangePickerPopoverCalendar.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/date-range-picker/DateRangePickerPresetSelect.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/date-range-picker/DateRangePickerPresetSelect.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/date-range-picker/EditableDateRangePicker.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/date-range-picker/EditableDateRangePicker.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/date-range-picker/index.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/date-range-picker/index.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/header/Header.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/header/Header.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/header/index.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/header/index.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/index.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/index.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/inline-confirm/InlineConfirm.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/inline-confirm/InlineConfirm.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/inline-confirm/InlineConfirmButton.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/inline-confirm/InlineConfirmButton.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/inline-confirm/InlineConfirmContext.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/inline-confirm/InlineConfirmContext.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/inline-confirm/InlineConfirmMenuItem.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/inline-confirm/InlineConfirmMenuItem.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/inline-confirm/InlineConfirmPrompt.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/inline-confirm/InlineConfirmPrompt.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/inline-confirm/index.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/inline-confirm/index.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/inline-confirm/useInlineConfirm.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/inline-confirm/useInlineConfirm.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/menu/Menu.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/menu/Menu.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/menu/index.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/menu/index.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/modal-wizard/ModalWizard.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/modal-wizard/ModalWizard.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/modal-wizard/ModalWizardStep.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/modal-wizard/ModalWizardStep.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/modal-wizard/index.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/modal-wizard/index.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/prompt/Prompt.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/prompt/Prompt.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/prompt/PromptFooter.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/prompt/PromptFooter.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/prompt/index.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/prompt/index.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/sticky-footer/StickyFooter.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/sticky-footer/StickyFooter.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/sticky-footer/index.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/sticky-footer/index.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/table/Table.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/table/Table.styles.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/table/Table.styles.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/table/Table.types.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/table/Table.types.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/table/TableActions.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/table/TableActions.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/table/TableCollapsibleColumn.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/table/TableCollapsibleColumn.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/table/TableConsumer.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/table/TableConsumer.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/table/TableContext.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/table/TableContext.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/table/TableDateRangePicker.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/table/TableDateRangePicker.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/table/TableFilter.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/table/TableFilter.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/table/TableFooter.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/table/TableFooter.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/table/TableHeader.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/table/TableHeader.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/table/TablePagination.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/table/TablePagination.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/table/TablePerPage.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/table/TablePerPage.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/table/TablePredicate.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/table/TablePredicate.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/table/TableSelectableColumn.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/table/TableSelectableColumn.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/table/Th.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/table/Th.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/table/index.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/table/index.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/components/table/useRowSelection.d.ts +0 -0
- /package/dist/{definitions → cjs}/components/table/useRowSelection.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/form/FormProvider.d.ts +0 -0
- /package/dist/{definitions → cjs}/form/FormProvider.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/form/index.d.ts +0 -0
- /package/dist/{definitions → cjs}/form/index.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/form/useForm.d.ts +0 -0
- /package/dist/{definitions → cjs}/form/useForm.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/hooks/index.d.ts +0 -0
- /package/dist/{definitions → cjs}/hooks/index.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/hooks/useControlledList.d.ts +0 -0
- /package/dist/{definitions → cjs}/hooks/useControlledList.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/hooks/useParentHeight.d.ts +0 -0
- /package/dist/{definitions → cjs}/hooks/useParentHeight.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/index.d.ts +0 -0
- /package/dist/{definitions → cjs}/index.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/theme/PlasmaColors.d.ts +0 -0
- /package/dist/{definitions → cjs}/theme/PlasmaColors.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/theme/Plasmantine.d.ts +0 -0
- /package/dist/{definitions → cjs}/theme/Plasmantine.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/theme/Theme.d.ts +0 -0
- /package/dist/{definitions → cjs}/theme/Theme.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/theme/index.d.ts +0 -0
- /package/dist/{definitions → cjs}/theme/index.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/utils/createPolymorphicComponent.d.ts +0 -0
- /package/dist/{definitions → cjs}/utils/createPolymorphicComponent.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/utils/index.d.ts +0 -0
- /package/dist/{definitions → cjs}/utils/index.d.ts.map +0 -0
- /package/dist/{definitions → cjs}/utils/overrideComponent.d.ts +0 -0
- /package/dist/{definitions → cjs}/utils/overrideComponent.d.ts.map +0 -0
|
@@ -3,9 +3,10 @@ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
|
3
3
|
import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
4
4
|
import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties";
|
|
5
5
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
-
import {
|
|
6
|
+
import { DragAndDropSize24Px, RemoveSize16Px } from "@coveord/plasma-react-icons";
|
|
7
|
+
import { useSortable } from "@dnd-kit/sortable";
|
|
8
|
+
import { CSS } from "@dnd-kit/utilities";
|
|
7
9
|
import { ActionIcon, Group } from "@mantine/core";
|
|
8
|
-
import { Draggable } from "react-beautiful-dnd";
|
|
9
10
|
import useStyles from "./Collection.styles";
|
|
10
11
|
var RemoveButton = function(param) {
|
|
11
12
|
var onClick = param.onClick;
|
|
@@ -57,7 +58,7 @@ var DisabledCollectionItem = function(param) {
|
|
|
57
58
|
});
|
|
58
59
|
};
|
|
59
60
|
var DraggableCollectionItem = function(param) {
|
|
60
|
-
var
|
|
61
|
+
var id = param.id, onRemove = param.onRemove, _param_removable = param.removable, removable = _param_removable === void 0 ? true : _param_removable, styles = param.styles, children = param.children;
|
|
61
62
|
var _useStyles = useStyles(null, {
|
|
62
63
|
name: "Collection",
|
|
63
64
|
styles: styles
|
|
@@ -65,30 +66,29 @@ var DraggableCollectionItem = function(param) {
|
|
|
65
66
|
var removeButton = removable && onRemove ? /*#__PURE__*/ _jsx(RemoveButton, {
|
|
66
67
|
onClick: onRemove
|
|
67
68
|
}) : null;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}, index);
|
|
69
|
+
var _useSortable = useSortable({
|
|
70
|
+
id: id
|
|
71
|
+
}), attributes = _useSortable.attributes, listeners = _useSortable.listeners, setNodeRef = _useSortable.setNodeRef, transform = _useSortable.transform, transition = _useSortable.transition, isDragging = _useSortable.isDragging, setActivatorNodeRef = _useSortable.setActivatorNodeRef;
|
|
72
|
+
return /*#__PURE__*/ _jsxs(Group, {
|
|
73
|
+
ref: setNodeRef,
|
|
74
|
+
className: cx(classes.item, _define_property({}, classes.itemDragging, isDragging)),
|
|
75
|
+
sx: transform ? {
|
|
76
|
+
transform: CSS.Transform.toString(transform),
|
|
77
|
+
transition: transition
|
|
78
|
+
} : undefined,
|
|
79
|
+
children: [
|
|
80
|
+
/*#__PURE__*/ _jsx("div", _object_spread_props(_object_spread({
|
|
81
|
+
ref: setActivatorNodeRef
|
|
82
|
+
}, listeners, attributes), {
|
|
83
|
+
className: classes.dragHandle,
|
|
84
|
+
children: /*#__PURE__*/ _jsx(DragAndDropSize24Px, {
|
|
85
|
+
height: 16
|
|
86
|
+
})
|
|
87
|
+
})),
|
|
88
|
+
children,
|
|
89
|
+
removeButton
|
|
90
|
+
]
|
|
91
|
+
});
|
|
92
92
|
};
|
|
93
93
|
export var CollectionItem = function(_param) {
|
|
94
94
|
var draggable = _param.draggable, disabled = _param.disabled, otherProps = _object_without_properties(_param, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/collection/CollectionItem.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/collection/CollectionItem.tsx"],"sourcesContent":["import {DragAndDropSize24Px, RemoveSize16Px} from '@coveord/plasma-react-icons';\nimport {useSortable} from '@dnd-kit/sortable';\nimport {CSS} from '@dnd-kit/utilities';\nimport {ActionIcon, DefaultProps, Group, Selectors} from '@mantine/core';\nimport {FunctionComponent, PropsWithChildren} from 'react';\n\nimport useStyles from './Collection.styles';\n\ninterface CollectionItemProps extends CollectionItemSharedProps {\n draggable?: boolean;\n disabled: boolean;\n}\n\ninterface CollectionItemSharedProps extends DefaultProps<Selectors<typeof useStyles>> {\n id: string;\n onRemove?: React.MouseEventHandler<HTMLButtonElement>;\n removable?: boolean;\n}\n\nconst RemoveButton: FunctionComponent<{\n onClick: React.MouseEventHandler<HTMLButtonElement>;\n}> = ({onClick}) => (\n <ActionIcon sx={{alignSelf: 'center'}} variant=\"subtle\" onClick={onClick} color=\"action\">\n <RemoveSize16Px height={16} />\n </ActionIcon>\n);\n\nconst RemoveButtonPlaceholder = () => <div style={{width: 28}} />;\n\nconst StaticCollectionItem: FunctionComponent<PropsWithChildren<CollectionItemSharedProps>> = ({\n onRemove,\n removable = true,\n styles,\n children,\n}) => {\n const {classes, cx} = useStyles(null, {name: 'Collection', styles});\n const removeButton = removable && onRemove ? <RemoveButton onClick={onRemove} /> : <RemoveButtonPlaceholder />;\n\n return (\n <Group className={cx(classes.item)}>\n {children}\n {removeButton}\n </Group>\n );\n};\n\nconst DisabledCollectionItem: FunctionComponent<PropsWithChildren<CollectionItemSharedProps>> = ({\n children,\n styles,\n}) => {\n const {classes, cx} = useStyles(null, {name: 'Collection', styles});\n return <Group className={cx(classes.item)}>{children}</Group>;\n};\n\nconst DraggableCollectionItem: FunctionComponent<PropsWithChildren<CollectionItemSharedProps>> = ({\n id,\n onRemove,\n removable = true,\n styles,\n children,\n}) => {\n const {classes, cx} = useStyles(null, {name: 'Collection', styles});\n const removeButton = removable && onRemove ? <RemoveButton onClick={onRemove} /> : null;\n const {attributes, listeners, setNodeRef, transform, transition, isDragging, setActivatorNodeRef} = useSortable({\n id,\n });\n\n return (\n <Group\n ref={setNodeRef}\n className={cx(classes.item, {[classes.itemDragging]: isDragging})}\n sx={\n transform\n ? {\n transform: CSS.Transform.toString(transform),\n transition,\n }\n : undefined\n }\n >\n <div ref={setActivatorNodeRef} {...listeners} {...attributes} className={classes.dragHandle}>\n <DragAndDropSize24Px height={16} />\n </div>\n {children}\n {removeButton}\n </Group>\n );\n};\n\nexport const CollectionItem: FunctionComponent<PropsWithChildren<CollectionItemProps>> = ({\n draggable,\n disabled,\n ...otherProps\n}) => {\n if (disabled) {\n return <DisabledCollectionItem {...otherProps} />;\n }\n if (draggable) {\n return <DraggableCollectionItem {...otherProps} />;\n }\n return <StaticCollectionItem {...otherProps} />;\n};\n"],"names":["DragAndDropSize24Px","RemoveSize16Px","useSortable","CSS","ActionIcon","Group","useStyles","RemoveButton","onClick","sx","alignSelf","variant","color","height","RemoveButtonPlaceholder","div","style","width","StaticCollectionItem","onRemove","removable","styles","children","name","classes","cx","removeButton","className","item","DisabledCollectionItem","DraggableCollectionItem","id","attributes","listeners","setNodeRef","transform","transition","isDragging","setActivatorNodeRef","ref","itemDragging","Transform","toString","undefined","dragHandle","CollectionItem","draggable","disabled","otherProps"],"mappings":";;;;;AAAA,SAAQA,mBAAmB,EAAEC,cAAc,QAAO,8BAA8B;AAChF,SAAQC,WAAW,QAAO,oBAAoB;AAC9C,SAAQC,GAAG,QAAO,qBAAqB;AACvC,SAAQC,UAAU,EAAgBC,KAAK,QAAkB,gBAAgB;AAGzE,OAAOC,eAAe,sBAAsB;AAa5C,IAAMC,eAED;QAAEC,gBAAAA;yBACH,KAACJ;QAAWK,IAAI;YAACC,WAAW;QAAQ;QAAGC,SAAQ;QAASH,SAASA;QAASI,OAAM;kBAC5E,cAAA,KAACX;YAAeY,QAAQ;;;;AAIhC,IAAMC,0BAA0B;yBAAM,KAACC;QAAIC,OAAO;YAACC,OAAO;QAAE;;;AAE5D,IAAMC,uBAAwF,gBAKxF;QAJFC,iBAAAA,mCACAC,WAAAA,0CAAY,IAAI,qBAChBC,eAAAA,QACAC,iBAAAA;IAEA,IAAsBhB,aAAAA,UAAU,IAAI,EAAE;QAACiB,MAAM;QAAcF,QAAAA;IAAM,IAA1DG,UAAelB,WAAfkB,SAASC,KAAMnB,WAANmB;IAChB,IAAMC,eAAeN,aAAaD,yBAAW,KAACZ;QAAaC,SAASW;uBAAe,KAACL,4BAA0B;IAE9G,qBACI,MAACT;QAAMsB,WAAWF,GAAGD,QAAQI,IAAI;;YAC5BN;YACAI;;;AAGb;AAEA,IAAMG,yBAA0F,gBAG1F;QAFFP,iBAAAA,UACAD,eAAAA;IAEA,IAAsBf,aAAAA,UAAU,IAAI,EAAE;QAACiB,MAAM;QAAcF,QAAAA;IAAM,IAA1DG,UAAelB,WAAfkB,SAASC,KAAMnB,WAANmB;IAChB,qBAAO,KAACpB;QAAMsB,WAAWF,GAAGD,QAAQI,IAAI;kBAAIN;;AAChD;AAEA,IAAMQ,0BAA2F,gBAM3F;QALFC,WAAAA,IACAZ,iBAAAA,mCACAC,WAAAA,0CAAY,IAAI,qBAChBC,eAAAA,QACAC,iBAAAA;IAEA,IAAsBhB,aAAAA,UAAU,IAAI,EAAE;QAACiB,MAAM;QAAcF,QAAAA;IAAM,IAA1DG,UAAelB,WAAfkB,SAASC,KAAMnB,WAANmB;IAChB,IAAMC,eAAeN,aAAaD,yBAAW,KAACZ;QAAaC,SAASW;SAAe,IAAI;IACvF,IAAoGjB,eAAAA,YAAY;QAC5G6B,IAAAA;IACJ,IAFOC,aAA6F9B,aAA7F8B,YAAYC,YAAiF/B,aAAjF+B,WAAWC,aAAsEhC,aAAtEgC,YAAYC,YAA0DjC,aAA1DiC,WAAWC,aAA+ClC,aAA/CkC,YAAYC,aAAmCnC,aAAnCmC,YAAYC,sBAAuBpC,aAAvBoC;IAI7E,qBACI,MAACjC;QACGkC,KAAKL;QACLP,WAAWF,GAAGD,QAAQI,IAAI,EAAG,qBAACJ,QAAQgB,YAAY,EAAGH;QACrD5B,IACI0B,YACM;YACIA,WAAWhC,IAAIsC,SAAS,CAACC,QAAQ,CAACP;YAClCC,YAAAA;QACJ,IACAO,SAAS;;0BAGnB,KAAC5B;gBAAIwB,KAAKD;eAAyBL,WAAeD;gBAAYL,WAAWH,QAAQoB,UAAU;0BACvF,cAAA,KAAC5C;oBAAoBa,QAAQ;;;YAEhCS;YACAI;;;AAGb;AAEA,OAAO,IAAMmB,iBAA4E,iBAInF;QAHFC,mBAAAA,WACAC,kBAAAA,UACGC;QAFHF;QACAC;;IAGA,IAAIA,UAAU;QACV,qBAAO,KAAClB,2CAA2BmB;IACvC,CAAC;IACD,IAAIF,WAAW;QACX,qBAAO,KAAChB,4CAA4BkB;IACxC,CAAC;IACD,qBAAO,KAAC9B,yCAAyB8B;AACrC,EAAE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/collection/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface CopyToClipboardProps {
|
|
3
|
+
/**
|
|
4
|
+
* The value to be copied to the clipboard.
|
|
5
|
+
*/
|
|
6
|
+
value: string;
|
|
7
|
+
/**
|
|
8
|
+
* Whether to display the string to be copied alongside the button.
|
|
9
|
+
*
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
withLabel?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Called each time the value is copied to the clipboard
|
|
15
|
+
*/
|
|
16
|
+
onCopy?: () => void;
|
|
17
|
+
}
|
|
18
|
+
export declare const CopyToClipboard: React.FunctionComponent<CopyToClipboardProps>;
|
|
19
|
+
//# sourceMappingURL=CopyToClipboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CopyToClipboard.d.ts","sourceRoot":"","sources":["../../../../src/components/copyToClipboard/CopyToClipboard.tsx"],"names":[],"mappings":";AAGA,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AA0BD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,oBAAoB,CAezE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/copyToClipboard/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DatePickerBaseProps } from '@mantine/dates';
|
|
3
|
+
import { DateRangePickerPreset } from './DateRangePickerPresetSelect';
|
|
4
|
+
import { EditableDateRangePickerProps } from './EditableDateRangePicker';
|
|
5
|
+
export type DateRangePickerValue = [Date | null, Date | null];
|
|
6
|
+
export interface DateRangePickerInlineCalendarProps extends Pick<EditableDateRangePickerProps, 'startProps' | 'endProps'> {
|
|
7
|
+
/**
|
|
8
|
+
* Initial selected range
|
|
9
|
+
*/
|
|
10
|
+
initialRange: DateRangePickerValue;
|
|
11
|
+
/**
|
|
12
|
+
* Function called when the user applies the new date range
|
|
13
|
+
*
|
|
14
|
+
* @param range the newly selected dates
|
|
15
|
+
*/
|
|
16
|
+
onApply: (range: DateRangePickerValue) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Function called when the user click on the cancel button
|
|
19
|
+
*/
|
|
20
|
+
onCancel: () => void;
|
|
21
|
+
/**
|
|
22
|
+
* The presets to display
|
|
23
|
+
*
|
|
24
|
+
* @default {}
|
|
25
|
+
* @example
|
|
26
|
+
* {
|
|
27
|
+
* january: {label: 'January', range: [new Date(2022, 0, 1), new Date(2022, 0, 31)]},
|
|
28
|
+
* february: {label: 'February', range: [new Date(2022, 1, 1), new Date(2022, 1, 28)]}
|
|
29
|
+
* }
|
|
30
|
+
*/
|
|
31
|
+
presets?: Record<string, DateRangePickerPreset>;
|
|
32
|
+
/**
|
|
33
|
+
* Props for RangeCalendar displayed in the popover
|
|
34
|
+
*/
|
|
35
|
+
rangeCalendarProps?: Omit<DatePickerBaseProps, 'value' | 'onChange' | 'isDateInRange' | 'isDateFirstInRange' | 'isDateLastInRange'>;
|
|
36
|
+
}
|
|
37
|
+
export declare const DateRangePickerInlineCalendar: ({ initialRange, onApply, onCancel, presets, startProps, endProps, rangeCalendarProps, }: DateRangePickerInlineCalendarProps) => JSX.Element;
|
|
38
|
+
//# sourceMappingURL=DateRangePickerInlineCalendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateRangePickerInlineCalendar.d.ts","sourceRoot":"","sources":["../../../../src/components/date-range-picker/DateRangePickerInlineCalendar.tsx"],"names":[],"mappings":";AACA,OAAO,EAAa,mBAAmB,EAAC,MAAM,gBAAgB,CAAC;AAI/D,OAAO,EAAC,qBAAqB,EAA8B,MAAM,+BAA+B,CAAC;AACjG,OAAO,EAA0B,4BAA4B,EAAC,MAAM,2BAA2B,CAAC;AAEhG,MAAM,MAAM,oBAAoB,GAAG,CAAC,IAAI,GAAG,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC,CAAC;AAC9D,MAAM,WAAW,kCACb,SAAQ,IAAI,CAAC,4BAA4B,EAAE,YAAY,GAAG,UAAU,CAAC;IACrE;;OAEG;IACH,YAAY,EAAE,oBAAoB,CAAC;IACnC;;;;OAIG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAC/C;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAChD;;OAEG;IACH,kBAAkB,CAAC,EAAE,IAAI,CACrB,mBAAmB,EACnB,OAAO,GAAG,UAAU,GAAG,eAAe,GAAG,oBAAoB,GAAG,mBAAmB,CACtF,CAAC;CACL;AAED,eAAO,MAAM,6BAA6B,4FAQvC,kCAAkC,gBAkEpC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CalendarBaseProps } from '@mantine/dates';
|
|
3
|
+
import { DateRangePickerValue } from './DateRangePickerInlineCalendar';
|
|
4
|
+
import { DateRangePickerPreset } from './DateRangePickerPresetSelect';
|
|
5
|
+
import { EditableDateRangePickerProps } from './EditableDateRangePicker';
|
|
6
|
+
interface DateRangePickerPopoverCalendarProps<T> extends Pick<EditableDateRangePickerProps, 'startProps' | 'endProps'> {
|
|
7
|
+
/** Default value for uncontrolled input */
|
|
8
|
+
defaultValue?: DateRangePickerValue;
|
|
9
|
+
/** Value for controlled input */
|
|
10
|
+
value?: DateRangePickerValue;
|
|
11
|
+
/** onChange value for controlled input */
|
|
12
|
+
onChange?(value: DateRangePickerValue): void;
|
|
13
|
+
/**
|
|
14
|
+
* The presets to display
|
|
15
|
+
*
|
|
16
|
+
* @default {}
|
|
17
|
+
* @example
|
|
18
|
+
* {
|
|
19
|
+
* january: {label: 'January', range: [new Date(2022, 0, 1), new Date(2022, 0, 31)]},
|
|
20
|
+
* february: {label: 'February', range: [new Date(2022, 1, 1), new Date(2022, 1, 28)]}
|
|
21
|
+
* }
|
|
22
|
+
*/
|
|
23
|
+
presets?: Record<string, DateRangePickerPreset>;
|
|
24
|
+
/**
|
|
25
|
+
* Props for RangeCalendar
|
|
26
|
+
*/
|
|
27
|
+
rangeCalendarProps?: Omit<CalendarBaseProps, 'value' | 'onChange' | 'isDateInRange' | 'isDateFirstInRange' | 'isDateLastInRange'>;
|
|
28
|
+
}
|
|
29
|
+
export declare const DateRangePickerPopoverCalendar: <T extends unknown>({ presets, value, defaultValue, onChange, startProps, endProps, rangeCalendarProps, }: DateRangePickerPopoverCalendarProps<T>) => JSX.Element;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=DateRangePickerPopoverCalendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateRangePickerPopoverCalendar.d.ts","sourceRoot":"","sources":["../../../../src/components/date-range-picker/DateRangePickerPopoverCalendar.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,iBAAiB,EAAa,MAAM,gBAAgB,CAAC;AAI7D,OAAO,EAAC,oBAAoB,EAAC,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAC,qBAAqB,EAA8B,MAAM,+BAA+B,CAAC;AACjG,OAAO,EAA0B,4BAA4B,EAAC,MAAM,2BAA2B,CAAC;AAEhG,UAAU,mCAAmC,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,4BAA4B,EAAE,YAAY,GAAG,UAAU,CAAC;IAClH,2CAA2C;IAC3C,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC,iCAAiC;IACjC,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,0CAA0C;IAC1C,QAAQ,CAAC,CAAC,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC7C;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAEhD;;OAEG;IACH,kBAAkB,CAAC,EAAE,IAAI,CACrB,iBAAiB,EACjB,OAAO,GAAG,UAAU,GAAG,eAAe,GAAG,oBAAoB,GAAG,mBAAmB,CACtF,CAAC;CACL;AAED,eAAO,MAAM,8BAA8B,mKA6D1C,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SelectProps } from '@mantine/core';
|
|
3
|
+
import { DateRangePickerValue } from './DateRangePickerInlineCalendar';
|
|
4
|
+
export interface DateRangePickerPreset {
|
|
5
|
+
label: string;
|
|
6
|
+
range: DateRangePickerValue;
|
|
7
|
+
}
|
|
8
|
+
interface DateRangePickerPresetsSelectProps<T> {
|
|
9
|
+
presets: Record<string, DateRangePickerPreset>;
|
|
10
|
+
value: DateRangePickerValue;
|
|
11
|
+
onChange?(value: DateRangePickerValue): void;
|
|
12
|
+
selectProps?: Partial<Omit<SelectProps, 'data' | 'value' | 'onChange'>>;
|
|
13
|
+
}
|
|
14
|
+
export declare const DateRangePickerPresetSelect: <T extends unknown>({ presets, value, onChange, selectProps, }: DateRangePickerPresetsSelectProps<T>) => JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=DateRangePickerPresetSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateRangePickerPresetSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/date-range-picker/DateRangePickerPresetSelect.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,WAAW,EAAC,MAAM,eAAe,CAAC;AAG9D,OAAO,EAAC,oBAAoB,EAAC,MAAM,iCAAiC,CAAC;AAErE,MAAM,WAAW,qBAAqB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,oBAAoB,CAAC;CAC/B;AAED,UAAU,iCAAiC,CAAC,CAAC;IACzC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAC/C,KAAK,EAAE,oBAAoB,CAAC;IAC5B,QAAQ,CAAC,CAAC,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC7C,WAAW,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC;CAC3E;AAED,eAAO,MAAM,2BAA2B,sHA4CvC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DatePickerProps } from '@mantine/dates';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { DateRangePickerValue } from './DateRangePickerInlineCalendar';
|
|
4
|
+
export interface EditableDateRangePickerProps {
|
|
5
|
+
value: DateRangePickerValue;
|
|
6
|
+
onChange?(value: DateRangePickerValue): void;
|
|
7
|
+
onFocus?: () => void;
|
|
8
|
+
separator?: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Props for the start input
|
|
11
|
+
*/
|
|
12
|
+
startProps?: Omit<Partial<DatePickerProps>, 'value' | 'onChange' | 'onFocus'>;
|
|
13
|
+
/**
|
|
14
|
+
* Props for the end input
|
|
15
|
+
*/
|
|
16
|
+
endProps?: Omit<Partial<DatePickerProps>, 'value' | 'onChange' | 'onFocus'>;
|
|
17
|
+
}
|
|
18
|
+
export declare const EditableDateRangePicker: ({ value, onChange, onFocus, separator, startProps, endProps, }: EditableDateRangePickerProps) => JSX.Element;
|
|
19
|
+
//# sourceMappingURL=EditableDateRangePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditableDateRangePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/date-range-picker/EditableDateRangePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAE1D,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAChC,OAAO,EAAC,oBAAoB,EAAC,MAAM,iCAAiC,CAAC;AAErE,MAAM,WAAW,4BAA4B;IACzC,KAAK,EAAE,oBAAoB,CAAC;IAC5B,QAAQ,CAAC,CAAC,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC,CAAC;IAC9E;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC,CAAC;CAC/E;AAED,eAAO,MAAM,uBAAuB,mEAOjC,4BAA4B,gBA+B9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/date-range-picker/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { DefaultProps } from '@mantine/core';
|
|
2
|
+
import { FunctionComponent, ReactElement, ReactNode } from 'react';
|
|
3
|
+
export interface HeaderProps extends DefaultProps {
|
|
4
|
+
/**
|
|
5
|
+
* The description text displayed inside the header underneath the title
|
|
6
|
+
*/
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Whether the header should have a border on the bottom
|
|
10
|
+
*/
|
|
11
|
+
borderBottom?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Use the modal variant when displaying the header inside a modal
|
|
14
|
+
*
|
|
15
|
+
* @default 'page'
|
|
16
|
+
*/
|
|
17
|
+
variant?: 'page' | 'modal';
|
|
18
|
+
/**
|
|
19
|
+
* The title of the header.
|
|
20
|
+
*/
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
interface HeaderType {
|
|
24
|
+
(props: HeaderProps): ReactElement;
|
|
25
|
+
Breadcrumbs: typeof HeaderBreadcrumbs;
|
|
26
|
+
Actions: typeof HeaderActions;
|
|
27
|
+
DocAnchor: typeof HeaderDocAnchor;
|
|
28
|
+
}
|
|
29
|
+
export declare const Header: HeaderType;
|
|
30
|
+
declare const HeaderBreadcrumbs: FunctionComponent<{
|
|
31
|
+
children: ReactNode;
|
|
32
|
+
}>;
|
|
33
|
+
declare const HeaderActions: FunctionComponent<{
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
}>;
|
|
36
|
+
export interface HeaderDocAnchorProps {
|
|
37
|
+
/**
|
|
38
|
+
* A href pointing to documentation related to the current panel.
|
|
39
|
+
* When provided, an info icon is rendered next to the title as link to this documentation
|
|
40
|
+
*/
|
|
41
|
+
href: string;
|
|
42
|
+
/**
|
|
43
|
+
* The tooltip text shown when hovering over the doc link icon
|
|
44
|
+
*/
|
|
45
|
+
label?: string;
|
|
46
|
+
}
|
|
47
|
+
declare const HeaderDocAnchor: FunctionComponent<HeaderDocAnchorProps>;
|
|
48
|
+
export {};
|
|
49
|
+
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/header/Header.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,YAAY,EAA8C,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAW,iBAAiB,EAAE,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAE3E,MAAM,WAAW,WAAY,SAAQ,YAAY;IAC7C;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED,UAAU,UAAU;IAChB,CAAC,KAAK,EAAE,WAAW,GAAG,YAAY,CAAC;IACnC,WAAW,EAAE,OAAO,iBAAiB,CAAC;IACtC,OAAO,EAAE,OAAO,aAAa,CAAC;IAC9B,SAAS,EAAE,OAAO,eAAe,CAAC;CACrC;AAED,eAAO,MAAM,MAAM,EAAE,UA+BpB,CAAC;AAEF,QAAA,MAAM,iBAAiB,EAAE,iBAAiB,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAC,CAS/D,CAAC;AAEF,QAAA,MAAM,aAAa,EAAE,iBAAiB,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAC,CAA0D,CAAC;AAEvH,MAAM,WAAW,oBAAoB;IACjC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,QAAA,MAAM,eAAe,EAAE,iBAAiB,CAAC,oBAAoB,CAM5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/header/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './blank-slate';
|
|
2
|
+
export * from './code-editor';
|
|
3
|
+
export * from './collection';
|
|
4
|
+
export * from './date-range-picker';
|
|
5
|
+
export * from './sticky-footer';
|
|
6
|
+
export * from './header';
|
|
7
|
+
export * from './inline-confirm';
|
|
8
|
+
export * from './table';
|
|
9
|
+
export * from './prompt';
|
|
10
|
+
export * from './modal-wizard';
|
|
11
|
+
export * from './button';
|
|
12
|
+
export * from './menu';
|
|
13
|
+
export * from './copyToClipboard';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
+
import { InlineConfirmButton } from './InlineConfirmButton';
|
|
3
|
+
import { InlineConfirmMenuItem } from './InlineConfirmMenuItem';
|
|
4
|
+
import { InlineConfirmPrompt } from './InlineConfirmPrompt';
|
|
5
|
+
type InlineConfirmType = FunctionComponent<PropsWithChildren> & {
|
|
6
|
+
Prompt: typeof InlineConfirmPrompt;
|
|
7
|
+
Button: typeof InlineConfirmButton;
|
|
8
|
+
MenuItem: typeof InlineConfirmMenuItem;
|
|
9
|
+
};
|
|
10
|
+
export declare const InlineConfirm: InlineConfirmType;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=InlineConfirm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineConfirm.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-confirm/InlineConfirm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,iBAAiB,EAAE,iBAAiB,EAAyB,MAAM,OAAO,CAAC;AAE7F,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAE1D,KAAK,iBAAiB,GAAG,iBAAiB,CAAC,iBAAiB,CAAC,GAAG;IAC5D,MAAM,EAAE,OAAO,mBAAmB,CAAC;IACnC,MAAM,EAAE,OAAO,mBAAmB,CAAC;IACnC,QAAQ,EAAE,OAAO,qBAAqB,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,iBAc3B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MouseEventHandler } from 'react';
|
|
2
|
+
import { ButtonProps } from '../button';
|
|
3
|
+
export interface InlineConfirmButtonProps extends ButtonProps {
|
|
4
|
+
id: string;
|
|
5
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
6
|
+
}
|
|
7
|
+
export declare const InlineConfirmButton: import("react").ForwardRefExoticComponent<InlineConfirmButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
//# sourceMappingURL=InlineConfirmButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineConfirmButton.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-confirm/InlineConfirmButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,iBAAiB,EAAC,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AAGtC,MAAM,WAAW,wBAAyB,SAAQ,WAAW;IACzD,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CAClD;AAED,eAAO,MAAM,mBAAmB,wHAU/B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type InlineConfirmContextType = {
|
|
3
|
+
confirmingId: string;
|
|
4
|
+
setConfirmingId: (id: string) => void;
|
|
5
|
+
clearConfirm: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const InlineConfirmContext: import("react").Context<InlineConfirmContextType>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=InlineConfirmContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineConfirmContext.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-confirm/InlineConfirmContext.ts"],"names":[],"mappings":";AAEA,KAAK,wBAAwB,GAAG;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,oBAAoB,mDAAuD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MouseEventHandler } from 'react';
|
|
2
|
+
import { MenuItemProps } from '../menu';
|
|
3
|
+
export interface InlineConfirmMenuItemProps extends MenuItemProps {
|
|
4
|
+
id: string;
|
|
5
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
6
|
+
}
|
|
7
|
+
export declare const InlineConfirmMenuItem: import("react").ForwardRefExoticComponent<InlineConfirmMenuItemProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
//# sourceMappingURL=InlineConfirmMenuItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineConfirmMenuItem.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-confirm/InlineConfirmMenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,iBAAiB,EAAC,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAO,aAAa,EAAC,MAAM,SAAS,CAAC;AAG5C,MAAM,WAAW,0BAA2B,SAAQ,aAAa;IAC7D,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CAClD;AAED,eAAO,MAAM,qBAAqB,0HAUjC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
interface InlineConfirmPromptProps {
|
|
3
|
+
id: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
onConfirm: () => void;
|
|
6
|
+
confirmLabel?: ReactNode;
|
|
7
|
+
cancelLabel?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const InlineConfirmPrompt: FunctionComponent<InlineConfirmPromptProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=InlineConfirmPrompt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineConfirmPrompt.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-confirm/InlineConfirmPrompt.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,iBAAiB,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAK9D,UAAU,wBAAwB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,mBAAmB,EAAE,iBAAiB,CAAC,wBAAwB,CAkC3E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-confirm/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInlineConfirm.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-confirm/useInlineConfirm.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB;;;;CAQ5B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Menu as MantineMenu, MenuItemProps as MantineMenuItemProps } from '@mantine/core';
|
|
3
|
+
import { ButtonWithDisabledTooltipProps } from '../button';
|
|
4
|
+
export interface MenuItemProps extends MantineMenuItemProps, ButtonWithDisabledTooltipProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const Menu: ((props: import("@mantine/core").MenuProps) => JSX.Element) & typeof MantineMenu & {
|
|
7
|
+
displayName: string;
|
|
8
|
+
Item: (<C = "button">(props: import("@mantine/utils").PolymorphicComponentProps<C, MenuItemProps>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & Omit<import("react").FunctionComponent<(MenuItemProps & {
|
|
9
|
+
component?: any;
|
|
10
|
+
} & Omit<Pick<any, string | number | symbol>, "component" | keyof MenuItemProps> & {
|
|
11
|
+
ref?: any;
|
|
12
|
+
}) | (MenuItemProps & {
|
|
13
|
+
component: import("react").ElementType<any>;
|
|
14
|
+
})>, never> & Record<string, never>;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=Menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/Menu.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,IAAI,WAAW,EAAE,aAAa,IAAI,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAIzF,OAAO,EAAC,8BAA8B,EAAC,MAAM,WAAW,CAAC;AAGzD,MAAM,WAAW,aAAc,SAAQ,oBAAoB,EAAE,8BAA8B;CAAG;AAgB9F,eAAO,MAAM,IAAI;;;;;;;;;CAGf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { DefaultProps, ModalProps, Selectors } from '@mantine/core';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
import { ModalWizardStep } from './ModalWizardStep';
|
|
4
|
+
declare const useStyles: (params: void, options?: import("@mantine/core").UseStylesOptions<string>) => {
|
|
5
|
+
classes: {
|
|
6
|
+
content: string;
|
|
7
|
+
body: string;
|
|
8
|
+
};
|
|
9
|
+
cx: (...args: any) => string;
|
|
10
|
+
theme: import("@mantine/core").MantineTheme;
|
|
11
|
+
};
|
|
12
|
+
type ModalWizardStylesNames = Selectors<typeof useStyles>;
|
|
13
|
+
export interface ModalWizardProps extends Omit<DefaultProps<ModalWizardStylesNames>, 'classNames' | 'styles'>, Omit<ModalProps, 'centered' | 'title'> {
|
|
14
|
+
/**
|
|
15
|
+
* The label of the cancel button
|
|
16
|
+
*
|
|
17
|
+
* @default "Cancel"
|
|
18
|
+
*/
|
|
19
|
+
cancelButtonLabel?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The label of the next button
|
|
22
|
+
*
|
|
23
|
+
* @default "Next"
|
|
24
|
+
*/
|
|
25
|
+
nextButtonLabel?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The label of the previous button
|
|
28
|
+
*
|
|
29
|
+
* @default "Previous"
|
|
30
|
+
*/
|
|
31
|
+
previousButtonLabel?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The label of the finish button
|
|
34
|
+
*
|
|
35
|
+
* @default "Finish"
|
|
36
|
+
*/
|
|
37
|
+
finishButtonLabel?: string;
|
|
38
|
+
/**
|
|
39
|
+
* A callback function that is executed when the user clicks on the next button
|
|
40
|
+
*/
|
|
41
|
+
onNext?: (newStep: number, setCurrentStep?: React.Dispatch<number>) => unknown;
|
|
42
|
+
/**
|
|
43
|
+
* A callback function that is executed when the user clicks on the previous button
|
|
44
|
+
*/
|
|
45
|
+
onPrevious?: (newStep: number) => unknown;
|
|
46
|
+
/**
|
|
47
|
+
* A function that is executed when user completes all the steps.
|
|
48
|
+
*
|
|
49
|
+
* @param close A function that closes the modal when called.
|
|
50
|
+
*/
|
|
51
|
+
onFinish?: () => unknown;
|
|
52
|
+
/**
|
|
53
|
+
* Determine if user interacted with any steps in the modal wizard
|
|
54
|
+
*/
|
|
55
|
+
isDirty?: () => boolean;
|
|
56
|
+
/**
|
|
57
|
+
* A function to confirm close if the state is dirty before closing
|
|
58
|
+
*/
|
|
59
|
+
handleDirtyState?: () => boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Children to display in modal wizard
|
|
62
|
+
* */
|
|
63
|
+
children?: Array<ReturnType<typeof ModalWizardStep>>;
|
|
64
|
+
/**
|
|
65
|
+
* Indicates if step validation should be performed when clicking on to the next step
|
|
66
|
+
* If true, the next step will always be enabled
|
|
67
|
+
*
|
|
68
|
+
* @default false
|
|
69
|
+
*/
|
|
70
|
+
isStepValidatedOnNext?: boolean;
|
|
71
|
+
}
|
|
72
|
+
interface ModalWizardType {
|
|
73
|
+
(props: ModalWizardProps): ReactElement;
|
|
74
|
+
Step: typeof ModalWizardStep;
|
|
75
|
+
}
|
|
76
|
+
export declare const ModalWizard: ModalWizardType;
|
|
77
|
+
export {};
|
|
78
|
+
//# sourceMappingURL=ModalWizard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalWizard.d.ts","sourceRoot":"","sources":["../../../../src/components/modal-wizard/ModalWizard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,YAAY,EAAS,UAAU,EAAY,SAAS,EAAC,MAAM,eAAe,CAAC;AACnH,OAAO,EAAW,YAAY,EAA+B,MAAM,OAAO,CAAC;AAK3E,OAAO,EAAC,eAAe,EAAoC,MAAM,mBAAmB,CAAC;AAErF,QAAA,MAAM,SAAS;;;;;;;CAUZ,CAAC;AAEJ,KAAK,sBAAsB,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC;AAE1D,MAAM,WAAW,gBACb,SAAQ,IAAI,CAAC,YAAY,CAAC,sBAAsB,CAAC,EAAE,YAAY,GAAG,QAAQ,CAAC,EACvE,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC;IAC1C;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,OAAO,CAAC;IAE/E;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAE1C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC;IAExB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,OAAO,CAAC;IAEjC;;SAEK;IACL,QAAQ,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC;IAErD;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,UAAU,eAAe;IACrB,CAAC,KAAK,EAAE,gBAAgB,GAAG,YAAY,CAAC;IAExC,IAAI,EAAE,OAAO,eAAe,CAAC;CAChC;AAED,eAAO,MAAM,WAAW,EAAE,eAuJzB,CAAC"}
|