@coveord/plasma-mantine 47.0.1-next.2
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/.eslintrc.js +27 -0
- package/.turbo/turbo-build.log +8 -0
- package/.turbo/turbo-test.log +30 -0
- package/LICENSE +15 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/cjs/__tests__/GlobalSetup.js +17 -0
- package/dist/cjs/__tests__/GlobalSetup.js.map +1 -0
- package/dist/cjs/__tests__/Setup.js +6 -0
- package/dist/cjs/__tests__/Setup.js.map +1 -0
- package/dist/cjs/__tests__/SetupAfterEnv.js +19 -0
- package/dist/cjs/__tests__/SetupAfterEnv.js.map +1 -0
- package/dist/cjs/__tests__/Utils.js +38 -0
- package/dist/cjs/__tests__/Utils.js.map +1 -0
- package/dist/cjs/components/blank-slate/BlankSlate.js +26 -0
- package/dist/cjs/components/blank-slate/BlankSlate.js.map +1 -0
- package/dist/cjs/components/blank-slate/index.js +8 -0
- package/dist/cjs/components/blank-slate/index.js.map +1 -0
- package/dist/cjs/components/code-editor/CodeEditor.example.js +41 -0
- package/dist/cjs/components/code-editor/CodeEditor.example.js.map +1 -0
- package/dist/cjs/components/code-editor/CodeEditor.js +214 -0
- package/dist/cjs/components/code-editor/CodeEditor.js.map +1 -0
- package/dist/cjs/components/code-editor/__mocks__/@monaco-editor/react.js +30 -0
- package/dist/cjs/components/code-editor/__mocks__/@monaco-editor/react.js.map +1 -0
- package/dist/cjs/components/code-editor/__mocks__/monaco-editor.js +24 -0
- package/dist/cjs/components/code-editor/__mocks__/monaco-editor.js.map +1 -0
- package/dist/cjs/components/code-editor/index.js +8 -0
- package/dist/cjs/components/code-editor/index.js.map +1 -0
- package/dist/cjs/components/collection/Collection.example.js +64 -0
- package/dist/cjs/components/collection/Collection.example.js.map +1 -0
- package/dist/cjs/components/collection/Collection.js +129 -0
- package/dist/cjs/components/collection/Collection.js.map +1 -0
- package/dist/cjs/components/collection/CollectionItem.js +109 -0
- package/dist/cjs/components/collection/CollectionItem.js.map +1 -0
- package/dist/cjs/components/collection/Colllection.styles.js +25 -0
- package/dist/cjs/components/collection/Colllection.styles.js.map +1 -0
- package/dist/cjs/components/collection/index.js +8 -0
- package/dist/cjs/components/collection/index.js.map +1 -0
- package/dist/cjs/components/date-range-picker/DateRangePickerInlineCalendar.js +102 -0
- package/dist/cjs/components/date-range-picker/DateRangePickerInlineCalendar.js.map +1 -0
- package/dist/cjs/components/date-range-picker/DateRangePickerPopoverCalendar.js +93 -0
- package/dist/cjs/components/date-range-picker/DateRangePickerPopoverCalendar.js.map +1 -0
- package/dist/cjs/components/date-range-picker/DateRangePickerPresetSelect.js +64 -0
- package/dist/cjs/components/date-range-picker/DateRangePickerPresetSelect.js.map +1 -0
- package/dist/cjs/components/date-range-picker/EditableDateRangePicker.js +66 -0
- package/dist/cjs/components/date-range-picker/EditableDateRangePicker.js.map +1 -0
- package/dist/cjs/components/date-range-picker/index.js +9 -0
- package/dist/cjs/components/date-range-picker/index.js.map +1 -0
- package/dist/cjs/components/header/Header.js +78 -0
- package/dist/cjs/components/header/Header.js.map +1 -0
- package/dist/cjs/components/header/index.js +8 -0
- package/dist/cjs/components/header/index.js.map +1 -0
- package/dist/cjs/components/index.js +17 -0
- package/dist/cjs/components/index.js.map +1 -0
- package/dist/cjs/components/inline-confirm/InlineConfirm.js +39 -0
- package/dist/cjs/components/inline-confirm/InlineConfirm.js.map +1 -0
- package/dist/cjs/components/inline-confirm/InlineConfirmButton.js +28 -0
- package/dist/cjs/components/inline-confirm/InlineConfirmButton.js.map +1 -0
- package/dist/cjs/components/inline-confirm/InlineConfirmContext.js +14 -0
- package/dist/cjs/components/inline-confirm/InlineConfirmContext.js.map +1 -0
- package/dist/cjs/components/inline-confirm/InlineConfirmPrompt.js +48 -0
- package/dist/cjs/components/inline-confirm/InlineConfirmPrompt.js.map +1 -0
- package/dist/cjs/components/inline-confirm/index.js +10 -0
- package/dist/cjs/components/inline-confirm/index.js.map +1 -0
- package/dist/cjs/components/inline-confirm/useInlineConfirm.js +21 -0
- package/dist/cjs/components/inline-confirm/useInlineConfirm.js.map +1 -0
- package/dist/cjs/components/modal-wizard/ModalWizard.js +132 -0
- package/dist/cjs/components/modal-wizard/ModalWizard.js.map +1 -0
- package/dist/cjs/components/modal-wizard/ModalWizardStep.js +23 -0
- package/dist/cjs/components/modal-wizard/ModalWizardStep.js.map +1 -0
- package/dist/cjs/components/modal-wizard/index.js +8 -0
- package/dist/cjs/components/modal-wizard/index.js.map +1 -0
- package/dist/cjs/components/prompt/Prompt.js +100 -0
- package/dist/cjs/components/prompt/Prompt.js.map +1 -0
- package/dist/cjs/components/prompt/PromptFooter.js +25 -0
- package/dist/cjs/components/prompt/PromptFooter.js.map +1 -0
- package/dist/cjs/components/prompt/index.js +8 -0
- package/dist/cjs/components/prompt/index.js.map +1 -0
- package/dist/cjs/components/sticky-footer/StickyFooter.js +50 -0
- package/dist/cjs/components/sticky-footer/StickyFooter.js.map +1 -0
- package/dist/cjs/components/sticky-footer/index.js +8 -0
- package/dist/cjs/components/sticky-footer/index.js.map +1 -0
- package/dist/cjs/components/table/Table.js +259 -0
- package/dist/cjs/components/table/Table.js.map +1 -0
- package/dist/cjs/components/table/TableActions.js +25 -0
- package/dist/cjs/components/table/TableActions.js.map +1 -0
- package/dist/cjs/components/table/TableCollapsibleColumn.js +33 -0
- package/dist/cjs/components/table/TableCollapsibleColumn.js.map +1 -0
- package/dist/cjs/components/table/TableContext.js +14 -0
- package/dist/cjs/components/table/TableContext.js.map +1 -0
- package/dist/cjs/components/table/TableDateRangePicker.js +72 -0
- package/dist/cjs/components/table/TableDateRangePicker.js.map +1 -0
- package/dist/cjs/components/table/TableFilter.js +53 -0
- package/dist/cjs/components/table/TableFilter.js.map +1 -0
- package/dist/cjs/components/table/TableFooter.js +23 -0
- package/dist/cjs/components/table/TableFooter.js.map +1 -0
- package/dist/cjs/components/table/TableHeader.js +37 -0
- package/dist/cjs/components/table/TableHeader.js.map +1 -0
- package/dist/cjs/components/table/TablePagination.js +47 -0
- package/dist/cjs/components/table/TablePagination.js.map +1 -0
- package/dist/cjs/components/table/TablePerPage.js +52 -0
- package/dist/cjs/components/table/TablePerPage.js.map +1 -0
- package/dist/cjs/components/table/TablePredicate.js +45 -0
- package/dist/cjs/components/table/TablePredicate.js.map +1 -0
- package/dist/cjs/components/table/Th.js +107 -0
- package/dist/cjs/components/table/Th.js.map +1 -0
- package/dist/cjs/components/table/index.js +9 -0
- package/dist/cjs/components/table/index.js.map +1 -0
- package/dist/cjs/components/table/useTable.js +21 -0
- package/dist/cjs/components/table/useTable.js.map +1 -0
- package/dist/cjs/hooks/index.js +9 -0
- package/dist/cjs/hooks/index.js.map +1 -0
- package/dist/cjs/hooks/useControlledList.js +52 -0
- package/dist/cjs/hooks/useControlledList.js.map +1 -0
- package/dist/cjs/hooks/useParentHeight.js +36 -0
- package/dist/cjs/hooks/useParentHeight.js.map +1 -0
- package/dist/cjs/index.js +31 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/theme/PlasmaColors.js +54 -0
- package/dist/cjs/theme/PlasmaColors.js.map +1 -0
- package/dist/cjs/theme/Plasmantine.js +24 -0
- package/dist/cjs/theme/Plasmantine.js.map +1 -0
- package/dist/cjs/theme/Theme.js +223 -0
- package/dist/cjs/theme/Theme.js.map +1 -0
- package/dist/cjs/theme/index.js +8 -0
- package/dist/cjs/theme/index.js.map +1 -0
- package/dist/definitions/__tests__/GlobalSetup.d.ts +3 -0
- package/dist/definitions/__tests__/GlobalSetup.d.ts.map +1 -0
- package/dist/definitions/__tests__/Setup.d.ts +5 -0
- package/dist/definitions/__tests__/Setup.d.ts.map +1 -0
- package/dist/definitions/__tests__/SetupAfterEnv.d.ts +7 -0
- package/dist/definitions/__tests__/SetupAfterEnv.d.ts.map +1 -0
- package/dist/definitions/__tests__/Utils.d.ts +8 -0
- package/dist/definitions/__tests__/Utils.d.ts.map +1 -0
- package/dist/definitions/components/blank-slate/BlankSlate.d.ts +12 -0
- package/dist/definitions/components/blank-slate/BlankSlate.d.ts.map +1 -0
- package/dist/definitions/components/blank-slate/index.d.ts +2 -0
- package/dist/definitions/components/blank-slate/index.d.ts.map +1 -0
- package/dist/definitions/components/code-editor/CodeEditor.d.ts +50 -0
- package/dist/definitions/components/code-editor/CodeEditor.d.ts.map +1 -0
- package/dist/definitions/components/code-editor/CodeEditor.example.d.ts +4 -0
- package/dist/definitions/components/code-editor/CodeEditor.example.d.ts.map +1 -0
- package/dist/definitions/components/code-editor/__mocks__/@monaco-editor/react.d.ts +9 -0
- package/dist/definitions/components/code-editor/__mocks__/@monaco-editor/react.d.ts.map +1 -0
- package/dist/definitions/components/code-editor/__mocks__/monaco-editor.d.ts +8 -0
- package/dist/definitions/components/code-editor/__mocks__/monaco-editor.d.ts.map +1 -0
- package/dist/definitions/components/code-editor/index.d.ts +2 -0
- package/dist/definitions/components/code-editor/index.d.ts.map +1 -0
- package/dist/definitions/components/collection/Collection.d.ts +21 -0
- package/dist/definitions/components/collection/Collection.d.ts.map +1 -0
- package/dist/definitions/components/collection/Collection.example.d.ts +4 -0
- package/dist/definitions/components/collection/Collection.example.d.ts.map +1 -0
- package/dist/definitions/components/collection/CollectionItem.d.ts +15 -0
- package/dist/definitions/components/collection/CollectionItem.d.ts.map +1 -0
- package/dist/definitions/components/collection/Colllection.styles.d.ts +9 -0
- package/dist/definitions/components/collection/Colllection.styles.d.ts.map +1 -0
- package/dist/definitions/components/collection/index.d.ts +2 -0
- package/dist/definitions/components/collection/index.d.ts.map +1 -0
- package/dist/definitions/components/date-range-picker/DateRangePickerInlineCalendar.d.ts +37 -0
- package/dist/definitions/components/date-range-picker/DateRangePickerInlineCalendar.d.ts.map +1 -0
- package/dist/definitions/components/date-range-picker/DateRangePickerPopoverCalendar.d.ts +30 -0
- package/dist/definitions/components/date-range-picker/DateRangePickerPopoverCalendar.d.ts.map +1 -0
- package/dist/definitions/components/date-range-picker/DateRangePickerPresetSelect.d.ts +16 -0
- package/dist/definitions/components/date-range-picker/DateRangePickerPresetSelect.d.ts.map +1 -0
- package/dist/definitions/components/date-range-picker/EditableDateRangePicker.d.ts +18 -0
- package/dist/definitions/components/date-range-picker/EditableDateRangePicker.d.ts.map +1 -0
- package/dist/definitions/components/date-range-picker/index.d.ts +3 -0
- package/dist/definitions/components/date-range-picker/index.d.ts.map +1 -0
- package/dist/definitions/components/header/Header.d.ts +12 -0
- package/dist/definitions/components/header/Header.d.ts.map +1 -0
- package/dist/definitions/components/header/index.d.ts +2 -0
- package/dist/definitions/components/header/index.d.ts.map +1 -0
- package/dist/definitions/components/index.d.ts +11 -0
- package/dist/definitions/components/index.d.ts.map +1 -0
- package/dist/definitions/components/inline-confirm/InlineConfirm.d.ts +10 -0
- package/dist/definitions/components/inline-confirm/InlineConfirm.d.ts.map +1 -0
- package/dist/definitions/components/inline-confirm/InlineConfirmButton.d.ts +8 -0
- package/dist/definitions/components/inline-confirm/InlineConfirmButton.d.ts.map +1 -0
- package/dist/definitions/components/inline-confirm/InlineConfirmContext.d.ts +9 -0
- package/dist/definitions/components/inline-confirm/InlineConfirmContext.d.ts.map +1 -0
- package/dist/definitions/components/inline-confirm/InlineConfirmPrompt.d.ts +11 -0
- package/dist/definitions/components/inline-confirm/InlineConfirmPrompt.d.ts.map +1 -0
- package/dist/definitions/components/inline-confirm/index.d.ts +4 -0
- package/dist/definitions/components/inline-confirm/index.d.ts.map +1 -0
- package/dist/definitions/components/inline-confirm/useInlineConfirm.d.ts +6 -0
- package/dist/definitions/components/inline-confirm/useInlineConfirm.d.ts.map +1 -0
- package/dist/definitions/components/modal-wizard/ModalWizard.d.ts +73 -0
- package/dist/definitions/components/modal-wizard/ModalWizard.d.ts.map +1 -0
- package/dist/definitions/components/modal-wizard/ModalWizardStep.d.ts +42 -0
- package/dist/definitions/components/modal-wizard/ModalWizardStep.d.ts.map +1 -0
- package/dist/definitions/components/modal-wizard/index.d.ts +3 -0
- package/dist/definitions/components/modal-wizard/index.d.ts.map +1 -0
- package/dist/definitions/components/prompt/Prompt.d.ts +14 -0
- package/dist/definitions/components/prompt/Prompt.d.ts.map +1 -0
- package/dist/definitions/components/prompt/PromptFooter.d.ts +6 -0
- package/dist/definitions/components/prompt/PromptFooter.d.ts.map +1 -0
- package/dist/definitions/components/prompt/index.d.ts +2 -0
- package/dist/definitions/components/prompt/index.d.ts.map +1 -0
- package/dist/definitions/components/sticky-footer/StickyFooter.d.ts +10 -0
- package/dist/definitions/components/sticky-footer/StickyFooter.d.ts.map +1 -0
- package/dist/definitions/components/sticky-footer/index.d.ts +2 -0
- package/dist/definitions/components/sticky-footer/index.d.ts.map +1 -0
- package/dist/definitions/components/table/Table.d.ts +84 -0
- package/dist/definitions/components/table/Table.d.ts.map +1 -0
- package/dist/definitions/components/table/TableActions.d.ts +26 -0
- package/dist/definitions/components/table/TableActions.d.ts.map +1 -0
- package/dist/definitions/components/table/TableCollapsibleColumn.d.ts +6 -0
- package/dist/definitions/components/table/TableCollapsibleColumn.d.ts.map +1 -0
- package/dist/definitions/components/table/TableContext.d.ts +54 -0
- package/dist/definitions/components/table/TableContext.d.ts.map +1 -0
- package/dist/definitions/components/table/TableDateRangePicker.d.ts +20 -0
- package/dist/definitions/components/table/TableDateRangePicker.d.ts.map +1 -0
- package/dist/definitions/components/table/TableFilter.d.ts +12 -0
- package/dist/definitions/components/table/TableFilter.d.ts.map +1 -0
- package/dist/definitions/components/table/TableFooter.d.ts +3 -0
- package/dist/definitions/components/table/TableFooter.d.ts.map +1 -0
- package/dist/definitions/components/table/TableHeader.d.ts +3 -0
- package/dist/definitions/components/table/TableHeader.d.ts.map +1 -0
- package/dist/definitions/components/table/TablePagination.d.ts +10 -0
- package/dist/definitions/components/table/TablePagination.d.ts.map +1 -0
- package/dist/definitions/components/table/TablePerPage.d.ts +20 -0
- package/dist/definitions/components/table/TablePerPage.d.ts.map +1 -0
- package/dist/definitions/components/table/TablePredicate.d.ts +21 -0
- package/dist/definitions/components/table/TablePredicate.d.ts.map +1 -0
- package/dist/definitions/components/table/Th.d.ts +8 -0
- package/dist/definitions/components/table/Th.d.ts.map +1 -0
- package/dist/definitions/components/table/index.d.ts +4 -0
- package/dist/definitions/components/table/index.d.ts.map +1 -0
- package/dist/definitions/components/table/useTable.d.ts +11 -0
- package/dist/definitions/components/table/useTable.d.ts.map +1 -0
- package/dist/definitions/hooks/index.d.ts +3 -0
- package/dist/definitions/hooks/index.d.ts.map +1 -0
- package/dist/definitions/hooks/useControlledList.d.ts +25 -0
- package/dist/definitions/hooks/useControlledList.d.ts.map +1 -0
- package/dist/definitions/hooks/useParentHeight.d.ts +5 -0
- package/dist/definitions/hooks/useParentHeight.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +17 -0
- package/dist/definitions/index.d.ts.map +1 -0
- package/dist/definitions/theme/PlasmaColors.d.ts +14 -0
- package/dist/definitions/theme/PlasmaColors.d.ts.map +1 -0
- package/dist/definitions/theme/Plasmantine.d.ts +3 -0
- package/dist/definitions/theme/Plasmantine.d.ts.map +1 -0
- package/dist/definitions/theme/Theme.d.ts +3 -0
- package/dist/definitions/theme/Theme.d.ts.map +1 -0
- package/dist/definitions/theme/index.d.ts +2 -0
- package/dist/definitions/theme/index.d.ts.map +1 -0
- package/dist/esm/__tests__/GlobalSetup.js +7 -0
- package/dist/esm/__tests__/GlobalSetup.js.map +1 -0
- package/dist/esm/__tests__/Setup.js +5 -0
- package/dist/esm/__tests__/Setup.js.map +1 -0
- package/dist/esm/__tests__/SetupAfterEnv.js +15 -0
- package/dist/esm/__tests__/SetupAfterEnv.js.map +1 -0
- package/dist/esm/__tests__/Utils.js +21 -0
- package/dist/esm/__tests__/Utils.js.map +1 -0
- package/dist/esm/components/blank-slate/BlankSlate.js +16 -0
- package/dist/esm/components/blank-slate/BlankSlate.js.map +1 -0
- package/dist/esm/components/blank-slate/index.js +3 -0
- package/dist/esm/components/blank-slate/index.js.map +1 -0
- package/dist/esm/components/code-editor/CodeEditor.example.js +31 -0
- package/dist/esm/components/code-editor/CodeEditor.example.js.map +1 -0
- package/dist/esm/components/code-editor/CodeEditor.js +201 -0
- package/dist/esm/components/code-editor/CodeEditor.js.map +1 -0
- package/dist/esm/components/code-editor/__mocks__/@monaco-editor/react.js +12 -0
- package/dist/esm/components/code-editor/__mocks__/@monaco-editor/react.js.map +1 -0
- package/dist/esm/components/code-editor/__mocks__/monaco-editor.js +14 -0
- package/dist/esm/components/code-editor/__mocks__/monaco-editor.js.map +1 -0
- package/dist/esm/components/code-editor/index.js +3 -0
- package/dist/esm/components/code-editor/index.js.map +1 -0
- package/dist/esm/components/collection/Collection.example.js +54 -0
- package/dist/esm/components/collection/Collection.example.js.map +1 -0
- package/dist/esm/components/collection/Collection.js +118 -0
- package/dist/esm/components/collection/Collection.js.map +1 -0
- package/dist/esm/components/collection/CollectionItem.js +98 -0
- package/dist/esm/components/collection/CollectionItem.js.map +1 -0
- package/dist/esm/components/collection/Colllection.styles.js +15 -0
- package/dist/esm/components/collection/Colllection.styles.js.map +1 -0
- package/dist/esm/components/collection/index.js +3 -0
- package/dist/esm/components/collection/index.js.map +1 -0
- package/dist/esm/components/date-range-picker/DateRangePickerInlineCalendar.js +92 -0
- package/dist/esm/components/date-range-picker/DateRangePickerInlineCalendar.js.map +1 -0
- package/dist/esm/components/date-range-picker/DateRangePickerPopoverCalendar.js +83 -0
- package/dist/esm/components/date-range-picker/DateRangePickerPopoverCalendar.js.map +1 -0
- package/dist/esm/components/date-range-picker/DateRangePickerPresetSelect.js +53 -0
- package/dist/esm/components/date-range-picker/DateRangePickerPresetSelect.js.map +1 -0
- package/dist/esm/components/date-range-picker/EditableDateRangePicker.js +55 -0
- package/dist/esm/components/date-range-picker/EditableDateRangePicker.js.map +1 -0
- package/dist/esm/components/date-range-picker/index.js +4 -0
- package/dist/esm/components/date-range-picker/index.js.map +1 -0
- package/dist/esm/components/header/Header.js +68 -0
- package/dist/esm/components/header/Header.js.map +1 -0
- package/dist/esm/components/header/index.js +3 -0
- package/dist/esm/components/header/index.js.map +1 -0
- package/dist/esm/components/index.js +12 -0
- package/dist/esm/components/index.js.map +1 -0
- package/dist/esm/components/inline-confirm/InlineConfirm.js +29 -0
- package/dist/esm/components/inline-confirm/InlineConfirm.js.map +1 -0
- package/dist/esm/components/inline-confirm/InlineConfirmButton.js +18 -0
- package/dist/esm/components/inline-confirm/InlineConfirmButton.js.map +1 -0
- package/dist/esm/components/inline-confirm/InlineConfirmContext.js +4 -0
- package/dist/esm/components/inline-confirm/InlineConfirmContext.js.map +1 -0
- package/dist/esm/components/inline-confirm/InlineConfirmPrompt.js +38 -0
- package/dist/esm/components/inline-confirm/InlineConfirmPrompt.js.map +1 -0
- package/dist/esm/components/inline-confirm/index.js +5 -0
- package/dist/esm/components/inline-confirm/index.js.map +1 -0
- package/dist/esm/components/inline-confirm/useInlineConfirm.js +11 -0
- package/dist/esm/components/inline-confirm/useInlineConfirm.js.map +1 -0
- package/dist/esm/components/modal-wizard/ModalWizard.js +122 -0
- package/dist/esm/components/modal-wizard/ModalWizard.js.map +1 -0
- package/dist/esm/components/modal-wizard/ModalWizardStep.js +14 -0
- package/dist/esm/components/modal-wizard/ModalWizardStep.js.map +1 -0
- package/dist/esm/components/modal-wizard/index.js +3 -0
- package/dist/esm/components/modal-wizard/index.js.map +1 -0
- package/dist/esm/components/prompt/Prompt.js +90 -0
- package/dist/esm/components/prompt/Prompt.js.map +1 -0
- package/dist/esm/components/prompt/PromptFooter.js +15 -0
- package/dist/esm/components/prompt/PromptFooter.js.map +1 -0
- package/dist/esm/components/prompt/index.js +3 -0
- package/dist/esm/components/prompt/index.js.map +1 -0
- package/dist/esm/components/sticky-footer/StickyFooter.js +40 -0
- package/dist/esm/components/sticky-footer/StickyFooter.js.map +1 -0
- package/dist/esm/components/sticky-footer/index.js +3 -0
- package/dist/esm/components/sticky-footer/index.js.map +1 -0
- package/dist/esm/components/table/Table.js +248 -0
- package/dist/esm/components/table/Table.js.map +1 -0
- package/dist/esm/components/table/TableActions.js +15 -0
- package/dist/esm/components/table/TableActions.js.map +1 -0
- package/dist/esm/components/table/TableCollapsibleColumn.js +25 -0
- package/dist/esm/components/table/TableCollapsibleColumn.js.map +1 -0
- package/dist/esm/components/table/TableContext.js +4 -0
- package/dist/esm/components/table/TableContext.js.map +1 -0
- package/dist/esm/components/table/TableDateRangePicker.js +61 -0
- package/dist/esm/components/table/TableDateRangePicker.js.map +1 -0
- package/dist/esm/components/table/TableFilter.js +43 -0
- package/dist/esm/components/table/TableFilter.js.map +1 -0
- package/dist/esm/components/table/TableFooter.js +13 -0
- package/dist/esm/components/table/TableFooter.js.map +1 -0
- package/dist/esm/components/table/TableHeader.js +27 -0
- package/dist/esm/components/table/TableHeader.js.map +1 -0
- package/dist/esm/components/table/TablePagination.js +37 -0
- package/dist/esm/components/table/TablePagination.js.map +1 -0
- package/dist/esm/components/table/TablePerPage.js +42 -0
- package/dist/esm/components/table/TablePerPage.js.map +1 -0
- package/dist/esm/components/table/TablePredicate.js +35 -0
- package/dist/esm/components/table/TablePredicate.js.map +1 -0
- package/dist/esm/components/table/Th.js +97 -0
- package/dist/esm/components/table/Th.js.map +1 -0
- package/dist/esm/components/table/index.js +4 -0
- package/dist/esm/components/table/index.js.map +1 -0
- package/dist/esm/components/table/useTable.js +11 -0
- package/dist/esm/components/table/useTable.js.map +1 -0
- package/dist/esm/hooks/index.js +4 -0
- package/dist/esm/hooks/index.js.map +1 -0
- package/dist/esm/hooks/useControlledList.js +44 -0
- package/dist/esm/hooks/useControlledList.js.map +1 -0
- package/dist/esm/hooks/useParentHeight.js +28 -0
- package/dist/esm/hooks/useParentHeight.js.map +1 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/theme/PlasmaColors.js +44 -0
- package/dist/esm/theme/PlasmaColors.js.map +1 -0
- package/dist/esm/theme/Plasmantine.js +14 -0
- package/dist/esm/theme/Plasmantine.js.map +1 -0
- package/dist/esm/theme/Theme.js +213 -0
- package/dist/esm/theme/Theme.js.map +1 -0
- package/dist/esm/theme/index.js +3 -0
- package/dist/esm/theme/index.js.map +1 -0
- package/jest.config.js +25 -0
- package/package.json +88 -0
- package/src/__tests__/GlobalSetup.ts +5 -0
- package/src/__tests__/Setup.ts +4 -0
- package/src/__tests__/SetupAfterEnv.ts +16 -0
- package/src/__tests__/Utils.tsx +15 -0
- package/src/components/blank-slate/BlankSlate.tsx +17 -0
- package/src/components/blank-slate/__tests__/BlankSlate.spec.tsx +11 -0
- package/src/components/blank-slate/index.ts +1 -0
- package/src/components/code-editor/CodeEditor.example.tsx +32 -0
- package/src/components/code-editor/CodeEditor.tsx +214 -0
- package/src/components/code-editor/__mocks__/@monaco-editor/react.tsx +10 -0
- package/src/components/code-editor/__mocks__/monaco-editor.ts +9 -0
- package/src/components/code-editor/__tests__/CodeEditor.spec.tsx +56 -0
- package/src/components/code-editor/index.ts +1 -0
- package/src/components/collection/Collection.example.tsx +37 -0
- package/src/components/collection/Collection.tsx +129 -0
- package/src/components/collection/CollectionItem.tsx +92 -0
- package/src/components/collection/Colllection.styles.ts +14 -0
- package/src/components/collection/__tests__/Collection.spec.tsx +247 -0
- package/src/components/collection/index.ts +1 -0
- package/src/components/date-range-picker/DateRangePickerInlineCalendar.tsx +111 -0
- package/src/components/date-range-picker/DateRangePickerPopoverCalendar.tsx +94 -0
- package/src/components/date-range-picker/DateRangePickerPresetSelect.tsx +62 -0
- package/src/components/date-range-picker/EditableDateRangePicker.tsx +60 -0
- package/src/components/date-range-picker/__tests__/DateRangePickerInlineCalendar.spec.tsx +95 -0
- package/src/components/date-range-picker/__tests__/DateRangePickerPopoverCalendar.spec.tsx +101 -0
- package/src/components/date-range-picker/__tests__/DateRangePickerPresetSelect.spec.tsx +53 -0
- package/src/components/date-range-picker/__tests__/EditableDateRangePicker.spec.tsx +47 -0
- package/src/components/date-range-picker/index.tsx +2 -0
- package/src/components/header/Header.tsx +43 -0
- package/src/components/header/__tests__/Header.spec.tsx +79 -0
- package/src/components/header/index.ts +1 -0
- package/src/components/index.ts +10 -0
- package/src/components/inline-confirm/InlineConfirm.tsx +29 -0
- package/src/components/inline-confirm/InlineConfirmButton.tsx +17 -0
- package/src/components/inline-confirm/InlineConfirmContext.ts +9 -0
- package/src/components/inline-confirm/InlineConfirmPrompt.tsx +48 -0
- package/src/components/inline-confirm/__tests__/InlineConfirm.spec.tsx +94 -0
- package/src/components/inline-confirm/index.ts +3 -0
- package/src/components/inline-confirm/useInlineConfirm.ts +12 -0
- package/src/components/modal-wizard/ModalWizard.tsx +211 -0
- package/src/components/modal-wizard/ModalWizardStep.tsx +55 -0
- package/src/components/modal-wizard/__tests__/ModalWizard.spec.tsx +345 -0
- package/src/components/modal-wizard/index.ts +2 -0
- package/src/components/prompt/Prompt.tsx +66 -0
- package/src/components/prompt/PromptFooter.tsx +8 -0
- package/src/components/prompt/__tests__/Prompt.spec.tsx +29 -0
- package/src/components/prompt/index.ts +1 -0
- package/src/components/sticky-footer/StickyFooter.tsx +35 -0
- package/src/components/sticky-footer/__tests__/StickyFooter.spec.tsx +20 -0
- package/src/components/sticky-footer/index.ts +1 -0
- package/src/components/table/Table.tsx +293 -0
- package/src/components/table/TableActions.tsx +36 -0
- package/src/components/table/TableCollapsibleColumn.tsx +26 -0
- package/src/components/table/TableContext.tsx +56 -0
- package/src/components/table/TableDateRangePicker.tsx +65 -0
- package/src/components/table/TableFilter.tsx +44 -0
- package/src/components/table/TableFooter.tsx +8 -0
- package/src/components/table/TableHeader.tsx +21 -0
- package/src/components/table/TablePagination.tsx +41 -0
- package/src/components/table/TablePerPage.tsx +49 -0
- package/src/components/table/TablePredicate.tsx +43 -0
- package/src/components/table/Th.tsx +84 -0
- package/src/components/table/__tests__/Table.spec.tsx +128 -0
- package/src/components/table/__tests__/TableActions.spec.tsx +36 -0
- package/src/components/table/__tests__/TableDateRangePicker.spec.tsx +87 -0
- package/src/components/table/__tests__/TableFilter.spec.tsx +39 -0
- package/src/components/table/__tests__/TablePagination.spec.tsx +50 -0
- package/src/components/table/__tests__/TablePerPage.spec.tsx +81 -0
- package/src/components/table/__tests__/TablePredicate.spec.tsx +120 -0
- package/src/components/table/__tests__/Th.spec.tsx +63 -0
- package/src/components/table/index.ts +3 -0
- package/src/components/table/useTable.tsx +11 -0
- package/src/hooks/__tests__/useControlledList.spec.tsx +41 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useControlledList.ts +53 -0
- package/src/hooks/useParentHeight.ts +25 -0
- package/src/index.ts +21 -0
- package/src/theme/PlasmaColors.ts +44 -0
- package/src/theme/Plasmantine.tsx +10 -0
- package/src/theme/Theme.tsx +161 -0
- package/src/theme/index.ts +1 -0
- package/tsconfig.build.json +4 -0
- package/tsconfig.json +14 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DefaultProps, Selectors } from '@mantine/core';
|
|
2
|
+
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
3
|
+
import useStyles from './Colllection.styles';
|
|
4
|
+
interface CollectionItemProps extends CollectionItemSharedProps {
|
|
5
|
+
draggable?: boolean;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface CollectionItemSharedProps extends DefaultProps<Selectors<typeof useStyles>> {
|
|
9
|
+
index: number;
|
|
10
|
+
onRemove?: React.MouseEventHandler<HTMLButtonElement>;
|
|
11
|
+
removable?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const CollectionItem: FunctionComponent<PropsWithChildren<CollectionItemProps>>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=CollectionItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionItem.d.ts","sourceRoot":"","sources":["../../../../src/components/collection/CollectionItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,YAAY,EAAS,SAAS,EAAC,MAAM,eAAe,CAAC;AACzE,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAC,MAAM,OAAO,CAAC;AAG3D,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAE7C,UAAU,mBAAoB,SAAQ,yBAAyB;IAC3D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,UAAU,yBAA0B,SAAQ,YAAY,CAAC,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC;IACjF,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACtD,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AA+DD,eAAO,MAAM,cAAc,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAYpF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface CollectionStylesParams {
|
|
2
|
+
}
|
|
3
|
+
declare const _default: (params: void, options?: import("@mantine/core").UseStylesOptions<"root" | "item" | "itemDragging">) => {
|
|
4
|
+
classes: Record<"root" | "item" | "itemDragging", string>;
|
|
5
|
+
cx: (...args: any) => string;
|
|
6
|
+
theme: import("@mantine/core").MantineTheme;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=Colllection.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Colllection.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/collection/Colllection.styles.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB;CAAG;;;;;;AAE1C,wBASI"}
|
|
@@ -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,37 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DateRangePickerValue, RangeCalendarProps } from '@mantine/dates';
|
|
3
|
+
import { DateRangePickerPreset } from './DateRangePickerPresetSelect';
|
|
4
|
+
import { EditableDateRangePickerProps } from './EditableDateRangePicker';
|
|
5
|
+
export interface DateRangePickerInlineCalendarProps extends Pick<EditableDateRangePickerProps, 'startProps' | 'endProps'> {
|
|
6
|
+
/**
|
|
7
|
+
* Initial selected range
|
|
8
|
+
*/
|
|
9
|
+
initialRange: DateRangePickerValue;
|
|
10
|
+
/**
|
|
11
|
+
* Function called when the user applies the new date range
|
|
12
|
+
*
|
|
13
|
+
* @param range the newly selected dates
|
|
14
|
+
*/
|
|
15
|
+
onApply: (range: DateRangePickerValue) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Function called when the user click on the cancel button
|
|
18
|
+
*/
|
|
19
|
+
onCancel: () => void;
|
|
20
|
+
/**
|
|
21
|
+
* The presets to display
|
|
22
|
+
*
|
|
23
|
+
* @default {}
|
|
24
|
+
* @example
|
|
25
|
+
* {
|
|
26
|
+
* january: {label: 'January', range: [new Date(2022, 0, 1), new Date(2022, 0, 31)]},
|
|
27
|
+
* february: {label: 'February', range: [new Date(2022, 1, 1), new Date(2022, 1, 28)]}
|
|
28
|
+
* }
|
|
29
|
+
*/
|
|
30
|
+
presets?: Record<string, DateRangePickerPreset>;
|
|
31
|
+
/**
|
|
32
|
+
* Props for RangeCalendar displayed in the popover
|
|
33
|
+
*/
|
|
34
|
+
rangeCalendarProps?: Omit<RangeCalendarProps, 'value' | 'onChange'>;
|
|
35
|
+
}
|
|
36
|
+
export declare const DateRangePickerInlineCalendar: ({ initialRange, onApply, onCancel, presets, startProps, endProps, rangeCalendarProps, }: DateRangePickerInlineCalendarProps) => JSX.Element;
|
|
37
|
+
//# 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,EAAC,oBAAoB,EAAiB,kBAAkB,EAAC,MAAM,gBAAgB,CAAC;AAGvF,OAAO,EAAC,qBAAqB,EAA8B,MAAM,+BAA+B,CAAC;AACjG,OAAO,EAA0B,4BAA4B,EAAC,MAAM,2BAA2B,CAAC;AAEhG,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,CAAC,kBAAkB,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;CACvE;AAED,eAAO,MAAM,6BAA6B,4FAQvC,kCAAkC,gBA8DpC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DateRangePickerValue, RangeCalendarProps } from '@mantine/dates';
|
|
3
|
+
import { EditableDateRangePickerProps } from './EditableDateRangePicker';
|
|
4
|
+
import { DateRangePickerPreset } from './DateRangePickerPresetSelect';
|
|
5
|
+
interface DateRangePickerPopoverCalendarProps<T> extends Pick<EditableDateRangePickerProps, 'startProps' | 'endProps'> {
|
|
6
|
+
/** Default value for uncontrolled input */
|
|
7
|
+
defaultValue?: DateRangePickerValue;
|
|
8
|
+
/** Value for controlled input */
|
|
9
|
+
value?: DateRangePickerValue;
|
|
10
|
+
/** onChange value for controlled input */
|
|
11
|
+
onChange?(value: DateRangePickerValue): void;
|
|
12
|
+
/**
|
|
13
|
+
* The presets to display
|
|
14
|
+
*
|
|
15
|
+
* @default {}
|
|
16
|
+
* @example
|
|
17
|
+
* {
|
|
18
|
+
* january: {label: 'January', range: [new Date(2022, 0, 1), new Date(2022, 0, 31)]},
|
|
19
|
+
* february: {label: 'February', range: [new Date(2022, 1, 1), new Date(2022, 1, 28)]}
|
|
20
|
+
* }
|
|
21
|
+
*/
|
|
22
|
+
presets?: Record<string, DateRangePickerPreset>;
|
|
23
|
+
/**
|
|
24
|
+
* Props for RangeCalendar
|
|
25
|
+
*/
|
|
26
|
+
rangeCalendarProps?: Omit<RangeCalendarProps, 'value' | 'onChange'>;
|
|
27
|
+
}
|
|
28
|
+
export declare const DateRangePickerPopoverCalendar: <T extends unknown>({ presets, value, defaultValue, onChange, startProps, endProps, rangeCalendarProps, }: DateRangePickerPopoverCalendarProps<T>) => JSX.Element;
|
|
29
|
+
export {};
|
|
30
|
+
//# 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":";AAAA,OAAO,EAAC,oBAAoB,EAAiB,kBAAkB,EAAC,MAAM,gBAAgB,CAAC;AAKvF,OAAO,EAA0B,4BAA4B,EAAC,MAAM,2BAA2B,CAAC;AAChG,OAAO,EAA8B,qBAAqB,EAAC,MAAM,+BAA+B,CAAC;AAEjG,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,CAAC,kBAAkB,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;CACvE;AAED,eAAO,MAAM,8BAA8B,mKA4D1C,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DateRangePickerValue } from '@mantine/dates';
|
|
3
|
+
import { SelectProps } from '@mantine/core';
|
|
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,EAAC,oBAAoB,EAAa,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAqB,WAAW,EAAC,MAAM,eAAe,CAAC;AAI9D,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,18 @@
|
|
|
1
|
+
import { DatePickerProps, DateRangePickerValue } from '@mantine/dates';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface EditableDateRangePickerProps {
|
|
4
|
+
value: DateRangePickerValue;
|
|
5
|
+
onChange?(value: DateRangePickerValue): void;
|
|
6
|
+
onFocus?: () => void;
|
|
7
|
+
separator?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Props for the start input
|
|
10
|
+
*/
|
|
11
|
+
startProps?: Omit<Partial<DatePickerProps>, 'value' | 'onChange' | 'onFocus'>;
|
|
12
|
+
/**
|
|
13
|
+
* Props for the end input
|
|
14
|
+
*/
|
|
15
|
+
endProps?: Omit<Partial<DatePickerProps>, 'value' | 'onChange' | 'onFocus'>;
|
|
16
|
+
}
|
|
17
|
+
export declare const EditableDateRangePicker: ({ value, onChange, onFocus, separator, startProps, endProps, }: EditableDateRangePickerProps) => JSX.Element;
|
|
18
|
+
//# 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,EAAa,eAAe,EAAE,oBAAoB,EAAC,MAAM,gBAAgB,CAAC;AAEjF,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAEhC,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,gBAiC9B,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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DefaultProps } from '@mantine/core';
|
|
2
|
+
import { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
|
|
3
|
+
interface HeaderProps extends DefaultProps {
|
|
4
|
+
description?: ReactNode;
|
|
5
|
+
actions?: ReactNode;
|
|
6
|
+
borderBottom?: boolean;
|
|
7
|
+
docLink?: string;
|
|
8
|
+
docLinkTooltipLabel?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Header: FunctionComponent<PropsWithChildren<HeaderProps>>;
|
|
11
|
+
export {};
|
|
12
|
+
//# 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,EAAC,iBAAiB,EAAE,iBAAiB,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAEtE,UAAU,WAAY,SAAQ,YAAY;IACtC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,WAAW,CAAC,CA8BpE,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,11 @@
|
|
|
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
|
+
//# 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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
+
import { InlineConfirmButton } from './InlineConfirmButton';
|
|
3
|
+
import { InlineConfirmPrompt } from './InlineConfirmPrompt';
|
|
4
|
+
declare type InlineConfirmType = FunctionComponent<PropsWithChildren> & {
|
|
5
|
+
Prompt: typeof InlineConfirmPrompt;
|
|
6
|
+
Button: typeof InlineConfirmButton;
|
|
7
|
+
};
|
|
8
|
+
export declare const InlineConfirm: InlineConfirmType;
|
|
9
|
+
export {};
|
|
10
|
+
//# 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,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAE1D,aAAK,iBAAiB,GAAG,iBAAiB,CAAC,iBAAiB,CAAC,GAAG;IAC5D,MAAM,EAAE,OAAO,mBAAmB,CAAC;IACnC,MAAM,EAAE,OAAO,mBAAmB,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,iBAc3B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ButtonProps } from '@mantine/core';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
interface InlineConfirmButtonProps extends ButtonProps, Omit<HTMLAttributes<HTMLButtonElement>, 'color'> {
|
|
4
|
+
id: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const InlineConfirmButton: (props: InlineConfirmButtonProps) => JSX.Element;
|
|
7
|
+
export {};
|
|
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":"AAAA,OAAO,EAAS,WAAW,EAAC,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,cAAc,EAAoB,MAAM,OAAO,CAAC;AAGxD,UAAU,wBAAyB,SAAQ,WAAW,EAAE,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACpG,EAAE,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,mBAAmB,UAAW,wBAAwB,gBAQlE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare 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,aAAK,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,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;AAI9D,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,73 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ModalWizardStep } from './ModalWizardStep';
|
|
3
|
+
interface ModalWizardProps {
|
|
4
|
+
/**
|
|
5
|
+
* The label of the cancel button
|
|
6
|
+
*
|
|
7
|
+
* @default "Cancel"
|
|
8
|
+
*/
|
|
9
|
+
cancelButtonLabel?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The label of the next button
|
|
12
|
+
*
|
|
13
|
+
* @default "Next"
|
|
14
|
+
*/
|
|
15
|
+
nextButtonLabel?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The label of the previous button
|
|
18
|
+
*
|
|
19
|
+
* @default "Previous"
|
|
20
|
+
*/
|
|
21
|
+
previousButtonLabel?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The label of the finish button
|
|
24
|
+
*
|
|
25
|
+
* @default "Finish"
|
|
26
|
+
*/
|
|
27
|
+
finishButtonLabel?: string;
|
|
28
|
+
/**
|
|
29
|
+
* A callback function that is executed when the user clicks on the next button
|
|
30
|
+
*/
|
|
31
|
+
onNext?: () => unknown;
|
|
32
|
+
/**
|
|
33
|
+
* A callback function that is executed when the user clicks on the previous button
|
|
34
|
+
*/
|
|
35
|
+
onPrevious?: () => unknown;
|
|
36
|
+
/**
|
|
37
|
+
* A callback function that is executed when the user clicks on the cancel button
|
|
38
|
+
*/
|
|
39
|
+
onClose?: () => unknown;
|
|
40
|
+
/**
|
|
41
|
+
* A function that is executed when user completes all the steps.
|
|
42
|
+
*
|
|
43
|
+
* @param close A function that closes the modal when called.
|
|
44
|
+
*/
|
|
45
|
+
onFinish?: () => unknown;
|
|
46
|
+
/**
|
|
47
|
+
* Determine if user interacted with any steps in the modal wizard
|
|
48
|
+
*/
|
|
49
|
+
isDirty?: () => boolean;
|
|
50
|
+
/**
|
|
51
|
+
* A function to confirm close if the state is dirty before closing
|
|
52
|
+
*/
|
|
53
|
+
handleDirtyState?: () => boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Props to pass to each modal
|
|
56
|
+
*/
|
|
57
|
+
modalProps?: any;
|
|
58
|
+
/**
|
|
59
|
+
* Label for close button
|
|
60
|
+
*/
|
|
61
|
+
closeButtonLabel?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Children to display in modal wizard
|
|
64
|
+
* */
|
|
65
|
+
children?: Array<ReturnType<typeof ModalWizardStep>>;
|
|
66
|
+
}
|
|
67
|
+
interface ModalWizardType {
|
|
68
|
+
<T>(props: ModalWizardProps): ReactElement;
|
|
69
|
+
Step: typeof ModalWizardStep;
|
|
70
|
+
}
|
|
71
|
+
export declare const ModalWizard: ModalWizardType;
|
|
72
|
+
export {};
|
|
73
|
+
//# 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":"AACA,OAAO,EAAW,YAAY,EAAoB,MAAM,OAAO,CAAC;AAEhE,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAGlD,UAAU,gBAAgB;IACtB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IAEH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IAEH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC;IAEvB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC;IAE3B;;OAEG;IAEH,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC;IAExB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC;IAEzB;;OAEG;IAEH,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC;IAExB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,OAAO,CAAC;IAEjC;;OAEG;IACH,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;SAEK;IACL,QAAQ,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC;CACxD;AAUD,UAAU,eAAe;IACrB,CAAC,CAAC,EAAE,KAAK,EAAE,gBAAgB,GAAG,YAAY,CAAC;IAE3C,IAAI,EAAE,OAAO,eAAe,CAAC;CAChC;AAED,eAAO,MAAM,WAAW,EAAE,eA6GzB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { FunctionComponent, PropsWithChildren, ReactElement } from 'react';
|
|
2
|
+
declare type DependsOnStep<T> = (currentStep: number, numberOfSteps: number) => T;
|
|
3
|
+
export interface ModalWizardStepProps {
|
|
4
|
+
/**
|
|
5
|
+
* The title of the current step. The title can be dependent on the current step if needed
|
|
6
|
+
*/
|
|
7
|
+
title?: string | ReactElement | DependsOnStep<string | ReactElement>;
|
|
8
|
+
/**
|
|
9
|
+
* The description of the current step. The description can be dependent on the current step if needed
|
|
10
|
+
*/
|
|
11
|
+
description?: string | ReactElement | DependsOnStep<string | ReactElement>;
|
|
12
|
+
/**
|
|
13
|
+
* A link to the documentation for the current step
|
|
14
|
+
*/
|
|
15
|
+
docLink: string;
|
|
16
|
+
/**
|
|
17
|
+
* A tooltip label for the docLink
|
|
18
|
+
*/
|
|
19
|
+
docLinkTooltipLabel?: string | ReactElement | DependsOnStep<string | ReactElement>;
|
|
20
|
+
/**
|
|
21
|
+
* A function to validate the current step, it determines if the next step should be enabled or not.
|
|
22
|
+
*/
|
|
23
|
+
validateStep: (currentStep: any, numberOfSteps: any) => {
|
|
24
|
+
isValid: boolean;
|
|
25
|
+
messsage?: unknown;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Show progress bar at this step
|
|
29
|
+
*
|
|
30
|
+
* @default true
|
|
31
|
+
*/
|
|
32
|
+
showProgressBar?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Does completion of current step count moves the progress bar
|
|
35
|
+
*
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
38
|
+
countsAsProgress?: boolean;
|
|
39
|
+
}
|
|
40
|
+
declare const ModalWizardStep: FunctionComponent<PropsWithChildren<ModalWizardStepProps>>;
|
|
41
|
+
export { ModalWizardStep };
|
|
42
|
+
//# sourceMappingURL=ModalWizardStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalWizardStep.d.ts","sourceRoot":"","sources":["../../../../src/components/modal-wizard/ModalWizardStep.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAE,YAAY,EAAC,MAAM,OAAO,CAAC;AAEzE,aAAK,aAAa,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC,CAAC;AAE1E,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,aAAa,CAAC,MAAM,GAAG,YAAY,CAAC,CAAC;IAErE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,aAAa,CAAC,MAAM,GAAG,YAAY,CAAC,CAAC;IAE3E;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,aAAa,CAAC,MAAM,GAAG,YAAY,CAAC,CAAC;IAEnF;;OAEG;IACH,YAAY,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE,aAAa,EAAE,GAAG,KAAK;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAC,CAAC;IAE/F;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,QAAA,MAAM,eAAe,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAE/E,CAAC;AAOF,OAAO,EAAC,eAAe,EAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/modal-wizard/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAC,KAAK,oBAAoB,EAAC,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ModalProps } from '@mantine/core';
|
|
2
|
+
import { ReactElement, ReactNode } from 'react';
|
|
3
|
+
import { PromptFooter } from './PromptFooter';
|
|
4
|
+
export interface PromptProps extends ModalProps {
|
|
5
|
+
variant: 'default' | 'success' | 'warning' | 'critical' | 'info';
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
interface PromptType {
|
|
9
|
+
(props: PromptProps): ReactElement;
|
|
10
|
+
Footer: typeof PromptFooter;
|
|
11
|
+
}
|
|
12
|
+
export declare const Prompt: PromptType;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=Prompt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../../../src/components/prompt/Prompt.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,UAAU,EAAC,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAW,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AACxD,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AA+B5C,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC3C,OAAO,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;IACjE,QAAQ,EAAE,SAAS,CAAC;CACvB;AACD,UAAU,UAAU;IAChB,CAAC,KAAK,EAAE,WAAW,GAAG,YAAY,CAAC;IACnC,MAAM,EAAE,OAAO,YAAY,CAAC;CAC/B;AAED,eAAO,MAAM,MAAM,EAAE,UAqBpB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
+
import { StickyFooterProps } from '../sticky-footer';
|
|
3
|
+
export interface PromptFooterProps extends StickyFooterProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const PromptFooter: FunctionComponent<PropsWithChildren<PromptFooterProps>>;
|
|
6
|
+
//# sourceMappingURL=PromptFooter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/prompt/PromptFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAe,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AAEjE,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;CAAG;AAE/D,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAEhF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/prompt/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DefaultProps } from '@mantine/core';
|
|
2
|
+
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
3
|
+
export interface StickyFooterProps extends DefaultProps {
|
|
4
|
+
/**
|
|
5
|
+
* Whether a border is render on top of the footer
|
|
6
|
+
*/
|
|
7
|
+
borderTop?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const StickyFooter: FunctionComponent<PropsWithChildren<StickyFooterProps>>;
|
|
10
|
+
//# sourceMappingURL=StickyFooter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StickyFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/sticky-footer/StickyFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,YAAY,EAAwB,MAAM,eAAe,CAAC;AAChF,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAC,MAAM,OAAO,CAAC;AAE3D,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACnD;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAWD,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAehF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sticky-footer/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
2
|
+
import { InitialTableState } from '@tanstack/table-core';
|
|
3
|
+
import { ReactElement, ReactNode } from 'react';
|
|
4
|
+
import { TableActions } from './TableActions';
|
|
5
|
+
import { TableCollapsibleColumn } from './TableCollapsibleColumn';
|
|
6
|
+
import { onTableChangeEvent, TableFormType } from './TableContext';
|
|
7
|
+
import { TableDateRangePicker } from './TableDateRangePicker';
|
|
8
|
+
import { TableFilter } from './TableFilter';
|
|
9
|
+
import { TableFooter } from './TableFooter';
|
|
10
|
+
import { TableHeader } from './TableHeader';
|
|
11
|
+
import { TablePagination } from './TablePagination';
|
|
12
|
+
import { TablePerPage } from './TablePerPage';
|
|
13
|
+
import { TablePredicate } from './TablePredicate';
|
|
14
|
+
interface TableProps<T> {
|
|
15
|
+
/**
|
|
16
|
+
* Data to display in the table
|
|
17
|
+
*/
|
|
18
|
+
data: T[];
|
|
19
|
+
/**
|
|
20
|
+
* Columns to display in the table.
|
|
21
|
+
*
|
|
22
|
+
* @see https://tanstack.com/table/v8/docs/guide/column-defs
|
|
23
|
+
*/
|
|
24
|
+
columns: Array<ColumnDef<T>>;
|
|
25
|
+
/**
|
|
26
|
+
* Function called when the table mounts
|
|
27
|
+
*
|
|
28
|
+
* @param state the state of the table
|
|
29
|
+
*/
|
|
30
|
+
onMount?: onTableChangeEvent;
|
|
31
|
+
/**
|
|
32
|
+
* Function called when the table should update
|
|
33
|
+
*
|
|
34
|
+
* @param state the state of the table
|
|
35
|
+
*/
|
|
36
|
+
onChange?: onTableChangeEvent;
|
|
37
|
+
/**
|
|
38
|
+
* Function that generates the expandable content of a row
|
|
39
|
+
* Return null for rows that don't need to be expandable
|
|
40
|
+
*
|
|
41
|
+
* @param datum the row for which the children should be generated.
|
|
42
|
+
*/
|
|
43
|
+
getExpandChildren?: (datum: T) => ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* React children to show when the table has no rows to show. You can leverage useTable to get the state of the table
|
|
46
|
+
*/
|
|
47
|
+
noDataChildren?: ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the table is loading or not
|
|
50
|
+
*
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
loading?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Childrens to display in the table. They need to be wrap in either `Table.Header` or `Table.Footer`
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* <Table ...>
|
|
59
|
+
* <Table.Header>
|
|
60
|
+
* <div>Hello</div>
|
|
61
|
+
* </Table.Header>
|
|
62
|
+
* </Table>
|
|
63
|
+
*/
|
|
64
|
+
children?: ReactNode;
|
|
65
|
+
/**
|
|
66
|
+
* Initial state of the table
|
|
67
|
+
*/
|
|
68
|
+
initialState?: InitialTableState & Partial<TableFormType>;
|
|
69
|
+
}
|
|
70
|
+
interface TableType {
|
|
71
|
+
<T>(props: TableProps<T>): ReactElement;
|
|
72
|
+
Actions: typeof TableActions;
|
|
73
|
+
Filter: typeof TableFilter;
|
|
74
|
+
Footer: typeof TableFooter;
|
|
75
|
+
Header: typeof TableHeader;
|
|
76
|
+
Pagination: typeof TablePagination;
|
|
77
|
+
PerPage: typeof TablePerPage;
|
|
78
|
+
Predicate: typeof TablePredicate;
|
|
79
|
+
CollapsibleColumn: typeof TableCollapsibleColumn;
|
|
80
|
+
DateRangePicker: typeof TableDateRangePicker;
|
|
81
|
+
}
|
|
82
|
+
export declare const Table: TableType;
|
|
83
|
+
export {};
|
|
84
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/table/Table.tsx"],"names":[],"mappings":"AAGA,OAAO,EACH,SAAS,EAOZ,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAqB,YAAY,EAAE,SAAS,EAAmC,MAAM,OAAO,CAAC;AAEpG,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,kBAAkB,EAAgB,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAsChD,UAAU,UAAU,CAAC,CAAC;IAClB;;OAEG;IACH,IAAI,EAAE,CAAC,EAAE,CAAC;IACV;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7B;;;;OAIG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,SAAS,CAAC;IAC5C;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CAC7D;AAED,UAAU,SAAS;IACf,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC;IACxC,OAAO,EAAE,OAAO,YAAY,CAAC;IAC7B,MAAM,EAAE,OAAO,WAAW,CAAC;IAC3B,MAAM,EAAE,OAAO,WAAW,CAAC;IAC3B,MAAM,EAAE,OAAO,WAAW,CAAC;IAC3B,UAAU,EAAE,OAAO,eAAe,CAAC;IACnC,OAAO,EAAE,OAAO,YAAY,CAAC;IAC7B,SAAS,EAAE,OAAO,cAAc,CAAC;IACjC,iBAAiB,EAAE,OAAO,sBAAsB,CAAC;IACjD,eAAe,EAAE,OAAO,oBAAoB,CAAC;CAChD;AAED,eAAO,MAAM,KAAK,EAAE,SAmJnB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
interface TableActionsProps<T> {
|
|
3
|
+
/**
|
|
4
|
+
* Function that return components for the selected row
|
|
5
|
+
*
|
|
6
|
+
* @param datum the data of the selected row
|
|
7
|
+
* @example
|
|
8
|
+
* <Table.Actions<MyType>>
|
|
9
|
+
* {(datum: MyType) => (
|
|
10
|
+
* <Button
|
|
11
|
+
* component={Link}
|
|
12
|
+
* to={`edit/${datum.id}`}
|
|
13
|
+
* leftIcon={<EditSize24Px />}
|
|
14
|
+
* variant="subtle"
|
|
15
|
+
* color="navyBlue.8"
|
|
16
|
+
* >
|
|
17
|
+
* Edit
|
|
18
|
+
* </Button>
|
|
19
|
+
* )}
|
|
20
|
+
* </Table.Actions>
|
|
21
|
+
*/
|
|
22
|
+
children: (datum: T) => ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export declare const TableActions: <T>({ children }: TableActionsProps<T>) => ReactElement;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=TableActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableActions.d.ts","sourceRoot":"","sources":["../../../../src/components/table/TableActions.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAG9C,UAAU,iBAAiB,CAAC,CAAC;IACzB;;;;;;;;;;;;;;;;;;OAkBG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,SAAS,CAAC;CACrC;AAED,eAAO,MAAM,YAAY,6CAA2C,YASnE,CAAC"}
|