@importcsv/react 0.2.14 → 0.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/README.md +2 -0
- package/build/App.d.ts +2 -0
- package/build/bundled/index.esm.js +7797 -4626
- package/build/bundled/index.esm.js.map +1 -1
- package/build/bundled/index.js +58 -31
- package/build/bundled/index.js.map +1 -1
- package/build/bundled/index.umd.js +58 -31
- package/build/bundled/index.umd.js.map +1 -1
- package/build/components/CSVImporter/index.d.ts +55 -0
- package/build/components/CSVImporterHeadless.d.ts +46 -0
- package/build/components/ColumnMapper.d.ts +28 -0
- package/build/{preact/components → components}/Modal/index.d.ts +1 -1
- package/build/components/Uploader.d.ts +27 -0
- package/build/components/Validator.d.ts +28 -0
- package/build/components/__tests__/ColumnMapper.test.d.ts +1 -0
- package/build/components/__tests__/Uploader.test.d.ts +1 -0
- package/build/components/__tests__/Validator.test.d.ts +1 -0
- package/build/components/index.d.ts +3 -0
- package/build/config/index.d.ts +5 -0
- package/build/headless/__tests__/integration.test.d.ts +10 -0
- package/build/headless/__tests__/root.test.d.ts +1 -0
- package/build/headless/__tests__/root.types.test-d.d.ts +1 -0
- package/build/headless/__tests__/slot-components.test.d.ts +1 -0
- package/build/headless/__tests__/validator.test.d.ts +1 -0
- package/build/headless/back-button.d.ts +29 -0
- package/build/headless/index.d.ts +45 -0
- package/build/headless/next-button.d.ts +29 -0
- package/build/headless/root.d.ts +40 -0
- package/build/headless/submit-button.d.ts +29 -0
- package/build/headless/types.d.ts +52 -0
- package/build/headless/upload-trigger.d.ts +29 -0
- package/build/headless/utils/slot.d.ts +20 -0
- package/build/headless/utils/zodSchemaToColumns.d.ts +25 -0
- package/build/headless/utils/zodSchemaToColumns.test.d.ts +1 -0
- package/build/headless/validator.d.ts +28 -0
- package/build/importer/components/Box/index.d.ts +2 -0
- package/build/importer/components/Box/index.test.d.ts +1 -0
- package/build/{preact/importer → importer}/components/Box/types/index.d.ts +1 -0
- package/build/importer/components/Checkbox/index.d.ts +3 -0
- package/build/importer/components/Checkbox/index.test.d.ts +1 -0
- package/build/importer/components/Checkbox/types/index.d.ts +8 -0
- package/build/{bundled/importer → importer}/components/Errors/index.d.ts +1 -1
- package/build/{bundled/importer → importer}/components/Input/index.d.ts +2 -2
- package/build/importer/components/Input/index.test.d.ts +1 -0
- package/build/importer/components/Input/types/index.d.ts +24 -0
- package/build/importer/components/Root/index.d.ts +2 -0
- package/build/{bundled/importer → importer}/components/StepLayout/index.d.ts +3 -2
- package/build/importer/components/Stepper/hooks/useStepper.d.ts +4 -0
- package/build/importer/components/Stepper/hooks/useStepper.test.d.ts +1 -0
- package/build/importer/components/Stepper/index.d.ts +2 -0
- package/build/importer/components/Stepper/index.test.d.ts +1 -0
- package/build/{bundled/importer → importer}/components/Stepper/types/index.d.ts +3 -3
- package/build/{bundled/importer → importer}/components/Table/index.d.ts +2 -2
- package/build/{bundled/importer → importer}/components/Table/types/index.d.ts +6 -5
- package/build/importer/components/ToggleFilter/index.d.ts +3 -0
- package/build/{bundled/importer → importer}/components/Tooltip/index.d.ts +2 -2
- package/build/{preact/importer → importer}/components/Tooltip/types/index.d.ts +3 -3
- package/build/{bundled/importer → importer}/components/UploaderWrapper/NativeDropzone.d.ts +3 -2
- package/build/importer/components/UploaderWrapper/UploaderWrapper.d.ts +2 -0
- package/build/{bundled/importer → importer}/components/UploaderWrapper/types/index.d.ts +1 -1
- package/build/{preact/importer → importer}/components/VirtualTable/index.d.ts +3 -3
- package/build/importer/components/VirtualTable/index.test.d.ts +1 -0
- package/build/importer/components/ui/alert.d.ts +15 -0
- package/build/{bundled/importer → importer}/components/ui/button.d.ts +8 -5
- package/build/importer/components/ui/card.d.ts +20 -0
- package/build/importer/components/ui/checkbox.d.ts +10 -0
- package/build/importer/components/ui/dialog.d.ts +39 -0
- package/build/importer/components/ui/flex.d.ts +24 -0
- package/build/importer/components/ui/input.d.ts +8 -0
- package/build/importer/components/ui/select.d.ts +17 -0
- package/build/importer/components/ui/switch.d.ts +11 -0
- package/build/importer/components/ui/toast.d.ts +22 -0
- package/build/importer/components/ui/toaster.d.ts +2 -0
- package/build/importer/components/ui/tooltip.d.ts +25 -0
- package/build/{preact/importer → importer}/components/ui/use-toast.d.ts +2 -2
- package/build/importer/features/complete/index.d.ts +2 -0
- package/build/{bundled/importer → importer}/features/configure-import/index.d.ts +2 -1
- package/build/importer/features/main/hooks/useMutableLocalStorage.test.d.ts +1 -0
- package/build/{preact/importer → importer}/features/main/hooks/useStepNavigation.d.ts +1 -1
- package/build/importer/features/main/hooks/useStepNavigation.test.d.ts +1 -0
- package/build/importer/features/main/index.d.ts +2 -0
- package/build/{bundled/importer → importer}/features/map-columns/components/DropDownFields.d.ts +3 -2
- package/build/{bundled/importer → importer}/features/map-columns/hooks/useMapColumnsTable.d.ts +6 -5
- package/build/importer/features/map-columns/index.d.ts +3 -0
- package/build/{bundled/importer → importer}/features/map-columns/types/index.d.ts +2 -2
- package/build/{bundled/importer → importer}/features/row-selection/index.d.ts +3 -2
- package/build/{preact/importer → importer}/features/row-selection/types/index.d.ts +1 -1
- package/build/importer/features/uploader/hooks/useTemplateTable.d.ts +10 -0
- package/build/{bundled/importer → importer}/features/uploader/index.d.ts +2 -2
- package/build/{bundled/importer → importer}/features/uploader/types/index.d.ts +3 -3
- package/build/importer/features/validation/Validation.d.ts +3 -0
- package/build/importer/features/validation/__tests__/Validation.zod.test.d.ts +1 -0
- package/build/{bundled/importer → importer}/features/validation/components/TransformModal.d.ts +2 -1
- package/build/{bundled/importer → importer}/features/validation/components/TransformPanel.d.ts +2 -1
- package/build/{bundled/importer → importer}/features/validation/types.d.ts +5 -3
- package/build/importer/hooks/useClickOutside.test.d.ts +1 -0
- package/build/importer/hooks/useCustomStyles.test.d.ts +1 -0
- package/build/{bundled/importer → importer}/hooks/useEventListener.d.ts +1 -1
- package/build/importer/hooks/useEventListener.test.d.ts +1 -0
- package/build/{bundled/importer → importer}/hooks/useIsomorphicLayoutEffect.d.ts +1 -1
- package/build/importer/hooks/useIsomorphicLayoutEffect.test.d.ts +1 -0
- package/build/importer/hooks/useRect.test.d.ts +1 -0
- package/build/importer/hooks/useWindowSize.test.d.ts +1 -0
- package/build/{bundled/importer → importer}/providers/Theme.d.ts +3 -3
- package/build/{bundled/importer → importer}/providers/index.d.ts +3 -3
- package/build/{preact/importer → importer}/providers/types/index.d.ts +1 -1
- package/build/importer/services/api.d.ts +1 -0
- package/build/importer/services/mapping.test.d.ts +1 -0
- package/build/importer/services/transformation.test.d.ts +1 -0
- package/build/importer/settings/theme/index.d.ts +2 -0
- package/build/{preact/importer → importer}/stores/theme.d.ts +3 -3
- package/build/{preact/importer → importer}/theme/runtime.d.ts +4 -0
- package/build/importer/utils/colorUtils.test.d.ts +1 -0
- package/build/importer/utils/errorAnalysis.test.d.ts +1 -0
- package/build/{bundled/importer → importer}/utils/getStringLengthOfChildren.d.ts +1 -1
- package/build/importer/utils/getStringLengthOfChildren.test.d.ts +1 -0
- package/build/importer/utils/stringSimilarity.test.d.ts +1 -0
- package/build/{bundled/importer → importer}/utils/template.d.ts +1 -1
- package/build/importer/utils/template.test.d.ts +1 -0
- package/build/{preact/importer → importer}/utils/themeUtils.d.ts +4 -1
- package/build/importer/utils/themeUtils.test.d.ts +1 -0
- package/build/importer/utils/utils.test.d.ts +1 -0
- package/build/index.d.ts +10 -0
- package/build/index.dev.d.ts +1 -0
- package/build/js.d.ts +57 -0
- package/build/preact/index.esm.js +7219 -4047
- package/build/preact/index.esm.js.map +1 -1
- package/build/preact/index.js +58 -31
- package/build/preact/index.js.map +1 -1
- package/build/react/index.esm.js +7226 -4051
- package/build/react/index.esm.js.map +1 -1
- package/build/react/index.js +58 -31
- package/build/react/index.js.map +1 -1
- package/build/services/api.d.ts +50 -0
- package/build/services/apiClient.d.ts +55 -0
- package/build/{bundled/settings → settings}/defaults.d.ts +1 -1
- package/build/shims/react-compat-shim.d.ts +43 -0
- package/build/shims/react-hooks-shim.d.ts +2 -0
- package/build/test/helpers.d.ts +28 -0
- package/build/test/mocks/api.d.ts +8 -0
- package/build/test/mocks/localStorage.d.ts +6 -0
- package/build/test/setup.d.ts +1 -0
- package/build/{bundled/types → types}/index.d.ts +8 -3
- package/build/{bundled/utils → utils}/cn.d.ts +1 -1
- package/build/utils/cn.test.d.ts +1 -0
- package/package.json +35 -10
- package/build/bundled/components/CSVImporter/index.d.ts +0 -5
- package/build/bundled/components/Modal/index.d.ts +0 -12
- package/build/bundled/importer/components/Box/index.d.ts +0 -2
- package/build/bundled/importer/components/Box/types/index.d.ts +0 -5
- package/build/bundled/importer/components/Checkbox/index.d.ts +0 -2
- package/build/bundled/importer/components/Checkbox/types/index.d.ts +0 -4
- package/build/bundled/importer/components/Input/types/index.d.ts +0 -18
- package/build/bundled/importer/components/Root/index.d.ts +0 -10
- package/build/bundled/importer/components/Stepper/hooks/useStepper.d.ts +0 -2
- package/build/bundled/importer/components/Stepper/index.d.ts +0 -2
- package/build/bundled/importer/components/ToggleFilter/index.d.ts +0 -3
- package/build/bundled/importer/components/Tooltip/types/index.d.ts +0 -11
- package/build/bundled/importer/components/UploaderWrapper/UploaderWrapper.d.ts +0 -2
- package/build/bundled/importer/components/VirtualTable/index.d.ts +0 -17
- package/build/bundled/importer/components/ui/alert.d.ts +0 -13
- package/build/bundled/importer/components/ui/card.d.ts +0 -19
- package/build/bundled/importer/components/ui/checkbox.d.ts +0 -7
- package/build/bundled/importer/components/ui/dialog.d.ts +0 -38
- package/build/bundled/importer/components/ui/flex.d.ts +0 -23
- package/build/bundled/importer/components/ui/input.d.ts +0 -6
- package/build/bundled/importer/components/ui/select.d.ts +0 -13
- package/build/bundled/importer/components/ui/switch.d.ts +0 -7
- package/build/bundled/importer/components/ui/toast.d.ts +0 -22
- package/build/bundled/importer/components/ui/toaster.d.ts +0 -1
- package/build/bundled/importer/components/ui/tooltip.d.ts +0 -24
- package/build/bundled/importer/components/ui/use-toast.d.ts +0 -46
- package/build/bundled/importer/features/complete/index.d.ts +0 -2
- package/build/bundled/importer/features/main/hooks/useStepNavigation.d.ts +0 -17
- package/build/bundled/importer/features/main/index.d.ts +0 -2
- package/build/bundled/importer/features/map-columns/index.d.ts +0 -2
- package/build/bundled/importer/features/row-selection/types/index.d.ts +0 -8
- package/build/bundled/importer/features/uploader/hooks/useTemplateTable.d.ts +0 -10
- package/build/bundled/importer/features/validation/Validation.d.ts +0 -2
- package/build/bundled/importer/providers/types/index.d.ts +0 -10
- package/build/bundled/importer/settings/theme/index.d.ts +0 -2
- package/build/bundled/importer/stores/theme.d.ts +0 -17
- package/build/bundled/importer/theme/runtime.d.ts +0 -62
- package/build/bundled/importer/utils/themeUtils.d.ts +0 -21
- package/build/bundled/index.d.ts +0 -5
- package/build/bundled/js.d.ts +0 -12
- package/build/preact/bundled-styles.d.ts +0 -1
- package/build/preact/components/CSVImporter/index.d.ts +0 -5
- package/build/preact/i18n/de.d.ts +0 -32
- package/build/preact/i18n/es.d.ts +0 -32
- package/build/preact/i18n/fr.d.ts +0 -32
- package/build/preact/i18n/i18n.d.ts +0 -6
- package/build/preact/i18n/it.d.ts +0 -32
- package/build/preact/i18n/useTranslation.d.ts +0 -9
- package/build/preact/importer/components/Box/index.d.ts +0 -2
- package/build/preact/importer/components/Checkbox/index.d.ts +0 -2
- package/build/preact/importer/components/Checkbox/types/index.d.ts +0 -4
- package/build/preact/importer/components/Errors/index.d.ts +0 -4
- package/build/preact/importer/components/Input/index.d.ts +0 -2
- package/build/preact/importer/components/Input/types/index.d.ts +0 -18
- package/build/preact/importer/components/Root/index.d.ts +0 -10
- package/build/preact/importer/components/StepLayout/index.d.ts +0 -18
- package/build/preact/importer/components/Stepper/hooks/useStepper.d.ts +0 -2
- package/build/preact/importer/components/Stepper/index.d.ts +0 -2
- package/build/preact/importer/components/Stepper/types/index.d.ts +0 -14
- package/build/preact/importer/components/Table/index.d.ts +0 -9
- package/build/preact/importer/components/Table/types/index.d.ts +0 -42
- package/build/preact/importer/components/ToggleFilter/index.d.ts +0 -3
- package/build/preact/importer/components/ToggleFilter/types/index.d.ts +0 -11
- package/build/preact/importer/components/Tooltip/index.d.ts +0 -2
- package/build/preact/importer/components/UploaderWrapper/NativeDropzone.d.ts +0 -11
- package/build/preact/importer/components/UploaderWrapper/UploaderWrapper.d.ts +0 -2
- package/build/preact/importer/components/UploaderWrapper/types/index.d.ts +0 -2
- package/build/preact/importer/components/ui/alert.d.ts +0 -13
- package/build/preact/importer/components/ui/button.d.ts +0 -12
- package/build/preact/importer/components/ui/card.d.ts +0 -19
- package/build/preact/importer/components/ui/checkbox.d.ts +0 -7
- package/build/preact/importer/components/ui/dialog.d.ts +0 -38
- package/build/preact/importer/components/ui/flex.d.ts +0 -23
- package/build/preact/importer/components/ui/input.d.ts +0 -6
- package/build/preact/importer/components/ui/select.d.ts +0 -13
- package/build/preact/importer/components/ui/switch.d.ts +0 -7
- package/build/preact/importer/components/ui/toast.d.ts +0 -22
- package/build/preact/importer/components/ui/toaster.d.ts +0 -1
- package/build/preact/importer/components/ui/tooltip.d.ts +0 -24
- package/build/preact/importer/features/complete/index.d.ts +0 -2
- package/build/preact/importer/features/complete/types/index.d.ts +0 -5
- package/build/preact/importer/features/configure-import/index.d.ts +0 -13
- package/build/preact/importer/features/configure-import/types/index.d.ts +0 -13
- package/build/preact/importer/features/main/hooks/useMutableLocalStorage.d.ts +0 -1
- package/build/preact/importer/features/main/index.d.ts +0 -2
- package/build/preact/importer/features/main/types/index.d.ts +0 -16
- package/build/preact/importer/features/map-columns/components/DropDownFields.d.ts +0 -21
- package/build/preact/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +0 -16
- package/build/preact/importer/features/map-columns/index.d.ts +0 -2
- package/build/preact/importer/features/map-columns/types/index.d.ts +0 -16
- package/build/preact/importer/features/row-selection/index.d.ts +0 -2
- package/build/preact/importer/features/uploader/hooks/useTemplateTable.d.ts +0 -10
- package/build/preact/importer/features/uploader/index.d.ts +0 -2
- package/build/preact/importer/features/uploader/types/index.d.ts +0 -9
- package/build/preact/importer/features/validation/Validation.d.ts +0 -2
- package/build/preact/importer/features/validation/components/TransformModal.d.ts +0 -18
- package/build/preact/importer/features/validation/components/TransformPanel.d.ts +0 -18
- package/build/preact/importer/features/validation/index.d.ts +0 -1
- package/build/preact/importer/features/validation/types.d.ts +0 -32
- package/build/preact/importer/hooks/useClickOutside.d.ts +0 -1
- package/build/preact/importer/hooks/useCustomStyles.d.ts +0 -1
- package/build/preact/importer/hooks/useEventListener.d.ts +0 -4
- package/build/preact/importer/hooks/useIsomorphicLayoutEffect.d.ts +0 -3
- package/build/preact/importer/hooks/useRect.d.ts +0 -12
- package/build/preact/importer/hooks/useWindowSize.d.ts +0 -1
- package/build/preact/importer/providers/Theme.d.ts +0 -10
- package/build/preact/importer/providers/index.d.ts +0 -5
- package/build/preact/importer/services/mapping.d.ts +0 -31
- package/build/preact/importer/services/transformation.d.ts +0 -70
- package/build/preact/importer/settings/theme/colors.d.ts +0 -4
- package/build/preact/importer/settings/theme/index.d.ts +0 -2
- package/build/preact/importer/settings/theme/sizes.d.ts +0 -7
- package/build/preact/importer/theme/index.d.ts +0 -8
- package/build/preact/importer/theme/presets.d.ts +0 -314
- package/build/preact/importer/theme/styles.d.ts +0 -120
- package/build/preact/importer/types/index.d.ts +0 -9
- package/build/preact/importer/utils/colorUtils.d.ts +0 -48
- package/build/preact/importer/utils/errorAnalysis.d.ts +0 -25
- package/build/preact/importer/utils/getStringLengthOfChildren.d.ts +0 -2
- package/build/preact/importer/utils/stringSimilarity.d.ts +0 -1
- package/build/preact/importer/utils/template.d.ts +0 -2
- package/build/preact/importer/utils/utils.d.ts +0 -19
- package/build/preact/index.d.ts +0 -5
- package/build/preact/js.d.ts +0 -12
- package/build/preact/settings/defaults.d.ts +0 -3
- package/build/preact/styles.d.ts +0 -1
- package/build/preact/types/index.d.ts +0 -132
- package/build/preact/types/theme.d.ts +0 -153
- package/build/preact/utils/cn.d.ts +0 -6
- package/build/preact/validation/transformationStages.d.ts +0 -26
- package/build/preact/validation/transformer.d.ts +0 -17
- package/build/preact/validation/validator.d.ts +0 -23
- /package/build/{bundled/bundled-styles.d.ts → bundled-styles.d.ts} +0 -0
- /package/build/{bundled/importer/services/api.d.ts → components/CSVImporter/index.test.d.ts} +0 -0
- /package/build/{preact/importer/services/api.d.ts → components/__tests__/CSVImporterHeadless.test.d.ts} +0 -0
- /package/build/{bundled/i18n → i18n}/de.d.ts +0 -0
- /package/build/{bundled/i18n → i18n}/es.d.ts +0 -0
- /package/build/{bundled/i18n → i18n}/fr.d.ts +0 -0
- /package/build/{bundled/i18n → i18n}/i18n.d.ts +0 -0
- /package/build/{bundled/i18n → i18n}/it.d.ts +0 -0
- /package/build/{bundled/i18n → i18n}/useTranslation.d.ts +0 -0
- /package/build/{bundled/importer → importer}/components/ToggleFilter/types/index.d.ts +0 -0
- /package/build/{bundled/importer → importer}/features/complete/types/index.d.ts +0 -0
- /package/build/{bundled/importer → importer}/features/configure-import/types/index.d.ts +0 -0
- /package/build/{bundled/importer → importer}/features/main/hooks/useMutableLocalStorage.d.ts +0 -0
- /package/build/{bundled/importer → importer}/features/main/types/index.d.ts +0 -0
- /package/build/{bundled/importer → importer}/features/validation/index.d.ts +0 -0
- /package/build/{bundled/importer → importer}/hooks/useClickOutside.d.ts +0 -0
- /package/build/{bundled/importer → importer}/hooks/useCustomStyles.d.ts +0 -0
- /package/build/{bundled/importer → importer}/hooks/useRect.d.ts +0 -0
- /package/build/{bundled/importer → importer}/hooks/useWindowSize.d.ts +0 -0
- /package/build/{bundled/importer → importer}/services/mapping.d.ts +0 -0
- /package/build/{bundled/importer → importer}/services/transformation.d.ts +0 -0
- /package/build/{bundled/importer → importer}/settings/theme/colors.d.ts +0 -0
- /package/build/{bundled/importer → importer}/settings/theme/sizes.d.ts +0 -0
- /package/build/{bundled/importer → importer}/theme/index.d.ts +0 -0
- /package/build/{bundled/importer → importer}/theme/presets.d.ts +0 -0
- /package/build/{bundled/importer → importer}/theme/styles.d.ts +0 -0
- /package/build/{bundled/importer → importer}/types/index.d.ts +0 -0
- /package/build/{bundled/importer → importer}/utils/colorUtils.d.ts +0 -0
- /package/build/{bundled/importer → importer}/utils/errorAnalysis.d.ts +0 -0
- /package/build/{bundled/importer → importer}/utils/stringSimilarity.d.ts +0 -0
- /package/build/{bundled/importer → importer}/utils/utils.d.ts +0 -0
- /package/build/{bundled/styles.d.ts → styles.d.ts} +0 -0
- /package/build/{bundled/types → types}/theme.d.ts +0 -0
- /package/build/{bundled/validation → validation}/transformationStages.d.ts +0 -0
- /package/build/{bundled/validation → validation}/transformer.d.ts +0 -0
- /package/build/{bundled/validation → validation}/validator.d.ts +0 -0
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { h, JSX } from 'preact';
|
|
2
|
-
export interface ToastProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
variant?: 'default' | 'destructive';
|
|
4
|
-
onClose?: () => void;
|
|
5
|
-
}
|
|
6
|
-
declare const Toast: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<ToastProps> & {
|
|
7
|
-
ref?: import('preact').Ref<HTMLDivElement> | undefined;
|
|
8
|
-
}>;
|
|
9
|
-
declare const ToastAction: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLButtonElement>> & {
|
|
10
|
-
ref?: import('preact').Ref<HTMLButtonElement> | undefined;
|
|
11
|
-
}>;
|
|
12
|
-
declare const ToastClose: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLButtonElement>> & {
|
|
13
|
-
ref?: import('preact').Ref<HTMLButtonElement> | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
declare const ToastTitle: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLDivElement>> & {
|
|
16
|
-
ref?: import('preact').Ref<HTMLDivElement> | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
declare const ToastDescription: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLDivElement>> & {
|
|
19
|
-
ref?: import('preact').Ref<HTMLDivElement> | undefined;
|
|
20
|
-
}>;
|
|
21
|
-
type ToastActionElement = JSX.Element<typeof ToastAction>;
|
|
22
|
-
export { Toast, ToastAction, ToastClose, ToastTitle, ToastDescription, type ToastActionElement, };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function Toaster(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ComponentChildren } from 'preact';
|
|
2
|
-
interface TooltipProps {
|
|
3
|
-
content: ComponentChildren;
|
|
4
|
-
children: ComponentChildren;
|
|
5
|
-
delayDuration?: number;
|
|
6
|
-
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const Tooltip: ({ content, children, delayDuration, side, className }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare const TooltipProvider: ({ children }: {
|
|
11
|
-
children: ComponentChildren;
|
|
12
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
declare const TooltipRoot: ({ content, children, delayDuration, side, className }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare const TooltipTrigger: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement> & {
|
|
15
|
-
asChild?: boolean | undefined;
|
|
16
|
-
}> & {
|
|
17
|
-
ref?: import('preact').Ref<HTMLDivElement> | undefined;
|
|
18
|
-
}>;
|
|
19
|
-
declare const TooltipContent: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement> & {
|
|
20
|
-
sideOffset?: number | undefined;
|
|
21
|
-
}> & {
|
|
22
|
-
ref?: import('preact').Ref<HTMLDivElement> | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
export { Tooltip, TooltipRoot, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ComponentChildren } from 'preact';
|
|
2
|
-
import { ToastActionElement, ToastProps } from './toast';
|
|
3
|
-
type ToasterToast = ToastProps & {
|
|
4
|
-
id: string;
|
|
5
|
-
title?: ComponentChildren;
|
|
6
|
-
description?: ComponentChildren;
|
|
7
|
-
action?: ToastActionElement;
|
|
8
|
-
open?: boolean;
|
|
9
|
-
onOpenChange?: (open: boolean) => void;
|
|
10
|
-
};
|
|
11
|
-
declare const actionTypes: {
|
|
12
|
-
readonly ADD_TOAST: "ADD_TOAST";
|
|
13
|
-
readonly UPDATE_TOAST: "UPDATE_TOAST";
|
|
14
|
-
readonly DISMISS_TOAST: "DISMISS_TOAST";
|
|
15
|
-
readonly REMOVE_TOAST: "REMOVE_TOAST";
|
|
16
|
-
};
|
|
17
|
-
type ActionType = typeof actionTypes;
|
|
18
|
-
type Action = {
|
|
19
|
-
type: ActionType["ADD_TOAST"];
|
|
20
|
-
toast: ToasterToast;
|
|
21
|
-
} | {
|
|
22
|
-
type: ActionType["UPDATE_TOAST"];
|
|
23
|
-
toast: Partial<ToasterToast>;
|
|
24
|
-
} | {
|
|
25
|
-
type: ActionType["DISMISS_TOAST"];
|
|
26
|
-
toastId?: ToasterToast["id"];
|
|
27
|
-
} | {
|
|
28
|
-
type: ActionType["REMOVE_TOAST"];
|
|
29
|
-
toastId?: ToasterToast["id"];
|
|
30
|
-
};
|
|
31
|
-
interface State {
|
|
32
|
-
toasts: ToasterToast[];
|
|
33
|
-
}
|
|
34
|
-
export declare const reducer: (state: State, action: Action) => State;
|
|
35
|
-
type Toast = Omit<ToasterToast, "id">;
|
|
36
|
-
declare function toast({ ...props }: Toast): {
|
|
37
|
-
id: string;
|
|
38
|
-
dismiss: () => void;
|
|
39
|
-
update: () => void;
|
|
40
|
-
};
|
|
41
|
-
declare function useToast(): {
|
|
42
|
-
toast: typeof toast;
|
|
43
|
-
dismiss: (toastId?: string) => void;
|
|
44
|
-
toasts: ToasterToast[];
|
|
45
|
-
};
|
|
46
|
-
export { useToast, toast };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const StepEnum: {
|
|
2
|
-
Upload: number;
|
|
3
|
-
RowSelection: number;
|
|
4
|
-
MapColumns: number;
|
|
5
|
-
Validation: number;
|
|
6
|
-
Complete: number;
|
|
7
|
-
};
|
|
8
|
-
declare function useStepNavigation(initialStep: number, skipHeader: boolean, isDemoMode?: boolean): {
|
|
9
|
-
currentStep: any;
|
|
10
|
-
setStep: (newStep: number) => void;
|
|
11
|
-
goBack: (backStep?: number) => void;
|
|
12
|
-
goNext: (nextStep?: number) => void;
|
|
13
|
-
stepper: import('../../../components/Stepper/types').StepperProps;
|
|
14
|
-
stepId: string | number | undefined;
|
|
15
|
-
setStorageStep: any;
|
|
16
|
-
};
|
|
17
|
-
export default useStepNavigation;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { MapColumnsProps } from './types';
|
|
2
|
-
export default function MapColumns({ columns, data, columnMapping, selectedHeaderRow, skipHeaderRowSelection, onSuccess, onCancel, isSubmitting, importerKey, backendUrl, }: MapColumnsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Column } from '../../../../types';
|
|
2
|
-
export default function useTemplateTable(fields?: Column[]): {
|
|
3
|
-
[x: string]: string | {
|
|
4
|
-
raw: string;
|
|
5
|
-
content: import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
} | {
|
|
7
|
-
raw: number;
|
|
8
|
-
content: import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
};
|
|
10
|
-
}[];
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { ValidationProps } from './types';
|
|
2
|
-
export default function Validation({ columns, data: fileData, columnMapping, selectedHeaderRow, onSuccess, onCancel, isSubmitting, backendUrl, importerKey, filterInvalidRows, disableOnInvalidRows, }: ValidationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
type Theme = "dark" | "light";
|
|
2
|
-
type themeStoreType = {
|
|
3
|
-
theme: Theme;
|
|
4
|
-
setTheme: (theme?: Theme) => void;
|
|
5
|
-
};
|
|
6
|
-
declare const useThemeStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<themeStoreType>, "persist"> & {
|
|
7
|
-
persist: {
|
|
8
|
-
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<themeStoreType, themeStoreType>>) => void;
|
|
9
|
-
clearStorage: () => void;
|
|
10
|
-
rehydrate: () => void | Promise<void>;
|
|
11
|
-
hasHydrated: () => boolean;
|
|
12
|
-
onHydrate: (fn: (state: themeStoreType) => void) => () => void;
|
|
13
|
-
onFinishHydration: (fn: (state: themeStoreType) => void) => () => void;
|
|
14
|
-
getOptions: () => Partial<import('zustand/middleware').PersistOptions<themeStoreType, themeStoreType>>;
|
|
15
|
-
};
|
|
16
|
-
}>;
|
|
17
|
-
export default useThemeStore;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { styles } from './styles';
|
|
2
|
-
export interface SimpleTheme {
|
|
3
|
-
colors?: {
|
|
4
|
-
primary?: string;
|
|
5
|
-
primaryHover?: string;
|
|
6
|
-
background?: string;
|
|
7
|
-
foreground?: string;
|
|
8
|
-
border?: string;
|
|
9
|
-
error?: string;
|
|
10
|
-
success?: string;
|
|
11
|
-
warning?: string;
|
|
12
|
-
};
|
|
13
|
-
typography?: {
|
|
14
|
-
fontFamily?: string;
|
|
15
|
-
fontSize?: {
|
|
16
|
-
base?: string;
|
|
17
|
-
small?: string;
|
|
18
|
-
large?: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
spacing?: {
|
|
22
|
-
compact?: boolean;
|
|
23
|
-
scale?: number;
|
|
24
|
-
};
|
|
25
|
-
components?: {
|
|
26
|
-
button?: {
|
|
27
|
-
variant?: 'solid' | 'outline' | 'ghost';
|
|
28
|
-
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
29
|
-
};
|
|
30
|
-
table?: {
|
|
31
|
-
striped?: boolean;
|
|
32
|
-
bordered?: boolean;
|
|
33
|
-
compact?: boolean;
|
|
34
|
-
};
|
|
35
|
-
modal?: {
|
|
36
|
-
blur?: boolean;
|
|
37
|
-
shadow?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
38
|
-
};
|
|
39
|
-
input?: {
|
|
40
|
-
variant?: 'outline' | 'filled' | 'underline';
|
|
41
|
-
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Apply a theme to the importer
|
|
47
|
-
* Can accept preset name, theme object, or partial overrides
|
|
48
|
-
*/
|
|
49
|
-
export declare function applyTheme(container: HTMLElement, theme: string | SimpleTheme | typeof styles): void;
|
|
50
|
-
/**
|
|
51
|
-
* Get the current theme from a container
|
|
52
|
-
*/
|
|
53
|
-
export declare function getCurrentTheme(container: HTMLElement): string | null;
|
|
54
|
-
/**
|
|
55
|
-
* Reset theme to default
|
|
56
|
-
*/
|
|
57
|
-
export declare function resetTheme(container: HTMLElement): void;
|
|
58
|
-
/**
|
|
59
|
-
* Create a theme from a primary color
|
|
60
|
-
* Generates a full theme based on a single color
|
|
61
|
-
*/
|
|
62
|
-
export declare function createThemeFromColor(primaryColor: string): SimpleTheme;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ThemeConfig } from '../../types/theme';
|
|
2
|
-
/**
|
|
3
|
-
* Deep merge two theme configurations
|
|
4
|
-
*/
|
|
5
|
-
export declare function mergeThemes(base: ThemeConfig, override: ThemeConfig): ThemeConfig;
|
|
6
|
-
/**
|
|
7
|
-
* Generate CSS variables from theme configuration
|
|
8
|
-
*/
|
|
9
|
-
export declare function generateThemeVariables(theme: ThemeConfig): Record<string, string>;
|
|
10
|
-
/**
|
|
11
|
-
* Apply CSS variables to an HTML element
|
|
12
|
-
*/
|
|
13
|
-
export declare function applyThemeToElement(element: HTMLElement, variables: Record<string, string>): void;
|
|
14
|
-
/**
|
|
15
|
-
* Get computed theme value with fallback
|
|
16
|
-
*/
|
|
17
|
-
export declare function getThemeValue(element: HTMLElement, variable: string, fallback?: string): string;
|
|
18
|
-
/**
|
|
19
|
-
* Create a theme from partial configuration
|
|
20
|
-
*/
|
|
21
|
-
export declare function createTheme(partial: Partial<ThemeConfig>): ThemeConfig;
|
package/build/bundled/index.d.ts
DELETED
package/build/bundled/js.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CSVImporterProps } from './types';
|
|
2
|
-
type CreateImporterProps = CSVImporterProps & {
|
|
3
|
-
domElement?: Element;
|
|
4
|
-
};
|
|
5
|
-
export declare function createCSVImporter(props: CreateImporterProps): {
|
|
6
|
-
instance: (import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<CSVImporterProps> & {
|
|
7
|
-
ref?: import('preact').Ref<unknown> | undefined;
|
|
8
|
-
}> & HTMLDialogElement) | null;
|
|
9
|
-
showModal: () => void;
|
|
10
|
-
closeModal: () => void;
|
|
11
|
-
};
|
|
12
|
-
export {};
|