@importcsv/react 0.2.13 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/build/App.d.ts +2 -0
- package/build/bundled/index.esm.js +6815 -3493
- package/build/bundled/index.esm.js.map +1 -1
- package/build/bundled/index.js +32 -31
- package/build/bundled/index.js.map +1 -1
- package/build/bundled/index.umd.js +32 -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 +6484 -3161
- package/build/preact/index.esm.js.map +1 -1
- package/build/preact/index.js +30 -29
- package/build/preact/index.js.map +1 -1
- package/build/{preact/types → react}/index.d.ts +45 -24
- package/build/react/index.esm.js +6489 -3163
- package/build/react/index.esm.js.map +1 -1
- package/build/react/index.js +30 -29
- 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 +29 -8
- 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/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,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Color utility functions for theme customization
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Validate hex color format
|
|
6
|
-
*/
|
|
7
|
-
export declare function isValidColor(color: string): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Convert hex color to RGB
|
|
10
|
-
*/
|
|
11
|
-
export declare function hexToRgb(hex: string): {
|
|
12
|
-
r: number;
|
|
13
|
-
g: number;
|
|
14
|
-
b: number;
|
|
15
|
-
} | null;
|
|
16
|
-
/**
|
|
17
|
-
* Convert RGB to hex color
|
|
18
|
-
*/
|
|
19
|
-
export declare function rgbToHex(r: number, g: number, b: number): string;
|
|
20
|
-
/**
|
|
21
|
-
* Lighten a color by a percentage
|
|
22
|
-
*/
|
|
23
|
-
export declare function lightenColor(hex: string, percent: number): string;
|
|
24
|
-
/**
|
|
25
|
-
* Darken a color by a percentage
|
|
26
|
-
*/
|
|
27
|
-
export declare function darkenColor(hex: string, percent: number): string;
|
|
28
|
-
/**
|
|
29
|
-
* Generate color palette from a base color
|
|
30
|
-
*/
|
|
31
|
-
export declare function generateColorPalette(baseColor: string): {
|
|
32
|
-
50: string;
|
|
33
|
-
100: string;
|
|
34
|
-
200: string;
|
|
35
|
-
300: string;
|
|
36
|
-
400: string;
|
|
37
|
-
500: string;
|
|
38
|
-
600: string;
|
|
39
|
-
700: string;
|
|
40
|
-
800: string;
|
|
41
|
-
900: string;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Apply color palette to CSS variables
|
|
45
|
-
* @param primaryColor - The primary color to generate palette from
|
|
46
|
-
* @param targetElement - The element to apply styles to (defaults to a scoped container, not document root)
|
|
47
|
-
*/
|
|
48
|
-
export declare function applyColorPalette(primaryColor: string, targetElement?: HTMLElement): void;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface ValidationError {
|
|
2
|
-
rowIndex: number;
|
|
3
|
-
columnKey: string;
|
|
4
|
-
message: string;
|
|
5
|
-
value?: any;
|
|
6
|
-
}
|
|
7
|
-
export interface ErrorGroup {
|
|
8
|
-
type: string;
|
|
9
|
-
title: string;
|
|
10
|
-
description: string;
|
|
11
|
-
count: number;
|
|
12
|
-
columns: string[];
|
|
13
|
-
errors: ValidationError[];
|
|
14
|
-
example?: {
|
|
15
|
-
before: string;
|
|
16
|
-
after: string;
|
|
17
|
-
};
|
|
18
|
-
selected: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare function analyzeValidationErrors(errors: ValidationError[]): ErrorGroup[];
|
|
21
|
-
export declare function getErrorSummary(groups: ErrorGroup[]): string;
|
|
22
|
-
export declare function getSelectedErrors(groups: ErrorGroup[]): ValidationError[];
|
|
23
|
-
export declare function toggleErrorGroup(groups: ErrorGroup[], type: string): ErrorGroup[];
|
|
24
|
-
export declare function setAllErrorGroups(groups: ErrorGroup[], selected: boolean): ErrorGroup[];
|
|
25
|
-
export declare function countSelectedErrors(groups: ErrorGroup[]): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function stringsSimilarity(s1: string, s2: string): number;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Parse JSON input that can be either an object or a string
|
|
3
|
-
* @param param - The parameter to parse (object or JSON string)
|
|
4
|
-
* @param options - Options for parsing
|
|
5
|
-
* @returns Parsed object or stringified JSON based on options
|
|
6
|
-
*/
|
|
7
|
-
export declare function parseJSON<T extends 'object' | 'string' = 'object'>(param?: Record<string, unknown> | string, options?: {
|
|
8
|
-
returnType?: T;
|
|
9
|
-
escapePercent?: boolean;
|
|
10
|
-
}): T extends 'string' ? string : Record<string, unknown>;
|
|
11
|
-
export declare const parseObjectOrStringJSON: (name: string, param?: Record<string, unknown> | string) => string;
|
|
12
|
-
export declare const parseObjectOrStringJSONToRecord: (name: string, param?: Record<string, unknown> | string) => Record<string, unknown>;
|
|
13
|
-
export declare const validateJSON: (str: string, paramName: string) => string;
|
|
14
|
-
export declare const sanitizeKey: (input: string) => string;
|
|
15
|
-
export declare const parseOptionalBoolean: (val?: boolean) => "true" | "false" | "";
|
|
16
|
-
export declare const strToBoolean: (str: string) => boolean;
|
|
17
|
-
export declare const strToOptionalBoolean: (str: string) => boolean | undefined;
|
|
18
|
-
export declare const strToDefaultBoolean: (str: string, defaultValue: boolean) => boolean;
|
|
19
|
-
export { isValidColor, darkenColor } from './colorUtils';
|
package/build/preact/index.d.ts
DELETED
package/build/preact/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 {};
|
package/build/preact/styles.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const importcsvStyles: string;
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Theme configuration types for CSV Importer
|
|
3
|
-
*/
|
|
4
|
-
export interface ThemeConfig {
|
|
5
|
-
colors?: {
|
|
6
|
-
primary?: string;
|
|
7
|
-
primaryHover?: string;
|
|
8
|
-
primaryForeground?: string;
|
|
9
|
-
secondary?: string;
|
|
10
|
-
secondaryHover?: string;
|
|
11
|
-
secondaryForeground?: string;
|
|
12
|
-
background?: string;
|
|
13
|
-
foreground?: string;
|
|
14
|
-
card?: string;
|
|
15
|
-
cardForeground?: string;
|
|
16
|
-
border?: string;
|
|
17
|
-
input?: string;
|
|
18
|
-
ring?: string;
|
|
19
|
-
muted?: string;
|
|
20
|
-
mutedForeground?: string;
|
|
21
|
-
accent?: string;
|
|
22
|
-
accentForeground?: string;
|
|
23
|
-
destructive?: string;
|
|
24
|
-
destructiveForeground?: string;
|
|
25
|
-
success?: string;
|
|
26
|
-
successForeground?: string;
|
|
27
|
-
warning?: string;
|
|
28
|
-
warningForeground?: string;
|
|
29
|
-
info?: string;
|
|
30
|
-
infoForeground?: string;
|
|
31
|
-
};
|
|
32
|
-
typography?: {
|
|
33
|
-
fontFamily?: string;
|
|
34
|
-
fontFamilyMono?: string;
|
|
35
|
-
fontSize?: {
|
|
36
|
-
xs?: string;
|
|
37
|
-
sm?: string;
|
|
38
|
-
base?: string;
|
|
39
|
-
lg?: string;
|
|
40
|
-
xl?: string;
|
|
41
|
-
'2xl'?: string;
|
|
42
|
-
'3xl'?: string;
|
|
43
|
-
};
|
|
44
|
-
fontWeight?: {
|
|
45
|
-
light?: number;
|
|
46
|
-
normal?: number;
|
|
47
|
-
medium?: number;
|
|
48
|
-
semibold?: number;
|
|
49
|
-
bold?: number;
|
|
50
|
-
};
|
|
51
|
-
lineHeight?: {
|
|
52
|
-
tight?: string;
|
|
53
|
-
normal?: string;
|
|
54
|
-
relaxed?: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
spacing?: {
|
|
58
|
-
xs?: string;
|
|
59
|
-
sm?: string;
|
|
60
|
-
md?: string;
|
|
61
|
-
lg?: string;
|
|
62
|
-
xl?: string;
|
|
63
|
-
'2xl'?: string;
|
|
64
|
-
'3xl'?: string;
|
|
65
|
-
};
|
|
66
|
-
borders?: {
|
|
67
|
-
radius?: {
|
|
68
|
-
none?: string;
|
|
69
|
-
sm?: string;
|
|
70
|
-
md?: string;
|
|
71
|
-
lg?: string;
|
|
72
|
-
xl?: string;
|
|
73
|
-
full?: string;
|
|
74
|
-
};
|
|
75
|
-
width?: {
|
|
76
|
-
none?: string;
|
|
77
|
-
thin?: string;
|
|
78
|
-
medium?: string;
|
|
79
|
-
thick?: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
components?: {
|
|
83
|
-
button?: {
|
|
84
|
-
padding?: string;
|
|
85
|
-
fontSize?: string;
|
|
86
|
-
fontWeight?: string;
|
|
87
|
-
borderRadius?: string;
|
|
88
|
-
height?: string;
|
|
89
|
-
minWidth?: string;
|
|
90
|
-
};
|
|
91
|
-
input?: {
|
|
92
|
-
padding?: string;
|
|
93
|
-
fontSize?: string;
|
|
94
|
-
borderRadius?: string;
|
|
95
|
-
borderWidth?: string;
|
|
96
|
-
height?: string;
|
|
97
|
-
background?: string;
|
|
98
|
-
};
|
|
99
|
-
modal?: {
|
|
100
|
-
width?: string;
|
|
101
|
-
maxWidth?: string;
|
|
102
|
-
maxHeight?: string;
|
|
103
|
-
padding?: string;
|
|
104
|
-
borderRadius?: string;
|
|
105
|
-
backdropOpacity?: string;
|
|
106
|
-
};
|
|
107
|
-
table?: {
|
|
108
|
-
headerBackground?: string;
|
|
109
|
-
headerForeground?: string;
|
|
110
|
-
rowHoverBackground?: string;
|
|
111
|
-
borderColor?: string;
|
|
112
|
-
cellPadding?: string;
|
|
113
|
-
};
|
|
114
|
-
stepper?: {
|
|
115
|
-
activeColor?: string;
|
|
116
|
-
inactiveColor?: string;
|
|
117
|
-
completedColor?: string;
|
|
118
|
-
lineColor?: string;
|
|
119
|
-
dotSize?: string;
|
|
120
|
-
};
|
|
121
|
-
dropzone?: {
|
|
122
|
-
borderStyle?: string;
|
|
123
|
-
borderColor?: string;
|
|
124
|
-
borderColorHover?: string;
|
|
125
|
-
backgroundColor?: string;
|
|
126
|
-
backgroundColorHover?: string;
|
|
127
|
-
padding?: string;
|
|
128
|
-
borderRadius?: string;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
shadows?: {
|
|
132
|
-
sm?: string;
|
|
133
|
-
md?: string;
|
|
134
|
-
lg?: string;
|
|
135
|
-
xl?: string;
|
|
136
|
-
};
|
|
137
|
-
animations?: {
|
|
138
|
-
duration?: {
|
|
139
|
-
fast?: string;
|
|
140
|
-
normal?: string;
|
|
141
|
-
slow?: string;
|
|
142
|
-
};
|
|
143
|
-
easing?: string;
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
export declare const defaultTheme: ThemeConfig;
|
|
147
|
-
export declare const presetThemes: {
|
|
148
|
-
default: ThemeConfig;
|
|
149
|
-
minimal: ThemeConfig;
|
|
150
|
-
modern: ThemeConfig;
|
|
151
|
-
compact: ThemeConfig;
|
|
152
|
-
dark: ThemeConfig;
|
|
153
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Transformation stage definitions for smart auto-detection
|
|
3
|
-
*
|
|
4
|
-
* Pre-validation transformations clean and normalize data before validation rules are applied.
|
|
5
|
-
* Post-validation transformations enrich and format data after validation passes.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Transformations that should run BEFORE validation
|
|
9
|
-
* These typically clean or normalize input to prepare it for validation
|
|
10
|
-
*/
|
|
11
|
-
export declare const PRE_VALIDATION_TRANSFORMS: readonly ["trim", "uppercase", "lowercase", "remove_special_chars", "normalize_phone", "normalize_date"];
|
|
12
|
-
/**
|
|
13
|
-
* Transformations that should run AFTER validation
|
|
14
|
-
* These typically format, enrich, or provide defaults for valid data
|
|
15
|
-
*/
|
|
16
|
-
export declare const POST_VALIDATION_TRANSFORMS: readonly ["default", "capitalize", "replace", "custom"];
|
|
17
|
-
export type PreValidationTransform = typeof PRE_VALIDATION_TRANSFORMS[number];
|
|
18
|
-
export type PostValidationTransform = typeof POST_VALIDATION_TRANSFORMS[number];
|
|
19
|
-
/**
|
|
20
|
-
* Check if a transformation type should run before validation
|
|
21
|
-
*/
|
|
22
|
-
export declare function isPreValidationTransform(type: string): boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Check if a transformation type should run after validation
|
|
25
|
-
*/
|
|
26
|
-
export declare function isPostValidationTransform(type: string): boolean;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Transformer } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Apply transformations to a value
|
|
4
|
-
* @param value The value to transform
|
|
5
|
-
* @param transformations Array of transformations to apply
|
|
6
|
-
* @returns Transformed value
|
|
7
|
-
*/
|
|
8
|
-
export declare function applyTransformations(value: any, transformations?: Transformer[]): any;
|
|
9
|
-
/**
|
|
10
|
-
* Categorize transformations into pre-validation and post-validation stages
|
|
11
|
-
* @param transformations Array of transformations to categorize
|
|
12
|
-
* @returns Object with pre and post transformation arrays
|
|
13
|
-
*/
|
|
14
|
-
export declare function categorizeTransformations(transformations?: Transformer[]): {
|
|
15
|
-
pre: Transformer[];
|
|
16
|
-
post: Transformer[];
|
|
17
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Column } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Validates a single value against a column's validators
|
|
4
|
-
* @param value The value to validate
|
|
5
|
-
* @param column The column definition with validators
|
|
6
|
-
* @returns Error message if validation fails, null if valid
|
|
7
|
-
*/
|
|
8
|
-
export declare function validateColumn(value: any, column: Column): string | null;
|
|
9
|
-
/**
|
|
10
|
-
* Validates uniqueness across all rows for a column
|
|
11
|
-
* @param rows All data rows
|
|
12
|
-
* @param columnIndex The column index to check
|
|
13
|
-
* @param column The column definition
|
|
14
|
-
* @returns Array of row indices that have duplicate values
|
|
15
|
-
*/
|
|
16
|
-
export declare function validateUniqueness(rows: any[][], columnIndex: number, column: Column): number[];
|
|
17
|
-
/**
|
|
18
|
-
* Batch validation for all rows
|
|
19
|
-
* @param rows Data rows to validate
|
|
20
|
-
* @param columns Column definitions
|
|
21
|
-
* @returns Validation results with errors per cell
|
|
22
|
-
*/
|
|
23
|
-
export declare function validateBatch(rows: any[][], columns: Column[]): Map<string, string>;
|
|
File without changes
|
/package/build/{bundled/importer/services/api.d.ts → components/CSVImporter/index.test.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/{bundled/importer → importer}/features/main/hooks/useMutableLocalStorage.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|