@importcsv/react 0.2.1 → 0.2.4
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 +100 -427
- package/build/App.d.ts +2 -0
- package/build/bundled/bundled-styles.d.ts +1 -0
- package/build/bundled/components/CSVImporter/index.d.ts +5 -0
- package/build/bundled/i18n/de.d.ts +32 -0
- package/build/bundled/i18n/es.d.ts +32 -0
- package/build/bundled/i18n/fr.d.ts +32 -0
- package/build/bundled/i18n/i18n.d.ts +6 -0
- package/build/bundled/i18n/it.d.ts +32 -0
- package/build/bundled/i18n/useTranslation.d.ts +9 -0
- package/build/bundled/importer/components/Box/index.d.ts +2 -0
- package/build/bundled/importer/components/Box/types/index.d.ts +5 -0
- package/build/bundled/importer/components/Checkbox/index.d.ts +2 -0
- package/build/bundled/importer/components/Checkbox/types/index.d.ts +4 -0
- package/build/bundled/importer/components/Errors/index.d.ts +4 -0
- package/build/bundled/importer/components/Input/index.d.ts +2 -0
- package/build/bundled/importer/components/Input/types/index.d.ts +18 -0
- package/build/bundled/importer/components/Root/index.d.ts +10 -0
- package/build/bundled/importer/components/StepLayout/index.d.ts +18 -0
- package/build/bundled/importer/components/Stepper/hooks/useStepper.d.ts +2 -0
- package/build/bundled/importer/components/Stepper/index.d.ts +2 -0
- package/build/bundled/importer/components/Stepper/types/index.d.ts +14 -0
- package/build/bundled/importer/components/Table/index.d.ts +9 -0
- package/build/bundled/importer/components/ToggleFilter/index.d.ts +3 -0
- package/build/bundled/importer/components/ToggleFilter/types/index.d.ts +11 -0
- package/build/bundled/importer/components/Tooltip/index.d.ts +2 -0
- package/build/bundled/importer/components/Tooltip/types/index.d.ts +11 -0
- package/build/bundled/importer/components/UploaderWrapper/NativeDropzone.d.ts +11 -0
- package/build/bundled/importer/components/UploaderWrapper/UploaderWrapper.d.ts +2 -0
- package/build/bundled/importer/components/UploaderWrapper/types/index.d.ts +2 -0
- package/build/bundled/importer/components/VirtualTable/index.d.ts +17 -0
- package/build/bundled/importer/components/ui/alert.d.ts +10 -0
- package/build/bundled/importer/components/ui/button.d.ts +12 -0
- package/build/bundled/importer/components/ui/card.d.ts +19 -0
- package/build/bundled/importer/components/ui/checkbox.d.ts +7 -0
- package/build/bundled/importer/components/ui/dialog.d.ts +38 -0
- package/build/bundled/importer/components/ui/flex.d.ts +23 -0
- package/build/bundled/importer/components/ui/input.d.ts +6 -0
- package/build/bundled/importer/components/ui/select.d.ts +13 -0
- package/build/bundled/importer/components/ui/switch.d.ts +7 -0
- package/build/bundled/importer/components/ui/toast.d.ts +22 -0
- package/build/bundled/importer/components/ui/toaster.d.ts +1 -0
- package/build/bundled/importer/components/ui/tooltip.d.ts +20 -0
- package/build/bundled/importer/components/ui/use-toast.d.ts +46 -0
- package/build/bundled/importer/features/complete/index.d.ts +2 -0
- package/build/bundled/importer/features/complete/types/index.d.ts +5 -0
- package/build/bundled/importer/features/configure-import/index.d.ts +13 -0
- package/build/bundled/importer/features/configure-import/types/index.d.ts +13 -0
- package/build/bundled/importer/features/main/hooks/useMutableLocalStorage.d.ts +1 -0
- package/build/bundled/importer/features/main/hooks/useStepNavigation.d.ts +17 -0
- package/build/bundled/importer/features/main/index.d.ts +2 -0
- package/build/bundled/importer/features/main/types/index.d.ts +16 -0
- package/build/bundled/importer/features/map-columns/components/DropDownFields.d.ts +21 -0
- package/build/bundled/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +16 -0
- package/build/bundled/importer/features/map-columns/index.d.ts +2 -0
- package/build/bundled/importer/features/map-columns/types/index.d.ts +16 -0
- package/build/bundled/importer/features/row-selection/index.d.ts +2 -0
- package/build/bundled/importer/features/row-selection/types/index.d.ts +8 -0
- package/build/bundled/importer/features/uploader/hooks/useTemplateTable.d.ts +10 -0
- package/build/bundled/importer/features/uploader/index.d.ts +2 -0
- package/build/bundled/importer/features/uploader/types/index.d.ts +9 -0
- package/build/bundled/importer/features/validation/Validation.d.ts +2 -0
- package/build/bundled/importer/features/validation/components/TransformModal.d.ts +18 -0
- package/build/bundled/importer/features/validation/components/TransformPanel.d.ts +18 -0
- package/build/bundled/importer/features/validation/index.d.ts +1 -0
- package/build/bundled/importer/features/validation/types.d.ts +32 -0
- package/build/bundled/importer/hooks/useClickOutside.d.ts +1 -0
- package/build/bundled/importer/hooks/useCustomStyles.d.ts +1 -0
- package/build/bundled/importer/hooks/useEventListener.d.ts +4 -0
- package/build/bundled/importer/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/build/bundled/importer/hooks/useRect.d.ts +12 -0
- package/build/bundled/importer/hooks/useWindowSize.d.ts +1 -0
- package/build/bundled/importer/providers/Theme.d.ts +10 -0
- package/build/bundled/importer/providers/index.d.ts +5 -0
- package/build/bundled/importer/providers/types/index.d.ts +10 -0
- package/build/bundled/importer/services/api.d.ts +1 -0
- package/build/bundled/importer/services/mapping.d.ts +31 -0
- package/build/bundled/importer/services/transformation.d.ts +70 -0
- package/build/bundled/importer/settings/theme/colors.d.ts +4 -0
- package/build/bundled/importer/settings/theme/index.d.ts +2 -0
- package/build/bundled/importer/settings/theme/sizes.d.ts +7 -0
- package/build/bundled/importer/stores/theme.d.ts +17 -0
- package/build/bundled/importer/theme/index.d.ts +8 -0
- package/build/bundled/importer/theme/presets.d.ts +314 -0
- package/build/bundled/importer/theme/runtime.d.ts +62 -0
- package/build/bundled/importer/theme/styles.d.ts +120 -0
- package/build/bundled/importer/types/index.d.ts +9 -0
- package/build/bundled/importer/utils/colorUtils.d.ts +48 -0
- package/build/bundled/importer/utils/errorAnalysis.d.ts +25 -0
- package/build/bundled/importer/utils/getStringLengthOfChildren.d.ts +2 -0
- package/build/bundled/importer/utils/stringSimilarity.d.ts +1 -0
- package/build/bundled/importer/utils/template.d.ts +2 -0
- package/build/bundled/importer/utils/themeUtils.d.ts +21 -0
- package/build/bundled/importer/utils/utils.d.ts +19 -0
- package/build/bundled/index.d.ts +4 -0
- package/build/bundled/index.esm.js +8189 -0
- package/build/bundled/index.esm.js.map +1 -0
- package/build/bundled/index.js +112 -0
- package/build/bundled/index.js.map +1 -0
- package/build/bundled/index.umd.js +112 -0
- package/build/bundled/index.umd.js.map +1 -0
- package/build/bundled/js.d.ts +12 -0
- package/build/bundled/settings/defaults.d.ts +3 -0
- package/build/bundled/styles.d.ts +1 -0
- package/build/bundled/types/index.d.ts +132 -0
- package/build/bundled/types/theme.d.ts +153 -0
- package/build/bundled/utils/cn.d.ts +6 -0
- package/build/bundled/utils/injectStyles.d.ts +14 -0
- package/build/bundled/validation/transformationStages.d.ts +26 -0
- package/build/bundled/validation/transformer.d.ts +17 -0
- package/build/bundled/validation/validator.d.ts +23 -0
- package/build/bundled-styles.d.ts +1 -1
- package/build/components/CSVImporter/index.d.ts +8 -31
- package/build/components/Modal/index.d.ts +12 -0
- package/build/config/index.d.ts +5 -0
- package/build/importer/components/Box/index.d.ts +1 -1
- package/build/importer/components/Box/types/index.d.ts +1 -2
- package/build/importer/components/Checkbox/index.d.ts +1 -1
- package/build/importer/components/Checkbox/types/index.d.ts +1 -1
- package/build/importer/components/Input/index.d.ts +1 -1
- package/build/importer/components/Input/types/index.d.ts +1 -1
- package/build/importer/components/Root/index.d.ts +10 -0
- package/build/importer/components/StepLayout/index.d.ts +18 -0
- package/build/importer/components/Stepper/hooks/useStepper.d.ts +1 -1
- package/build/importer/components/Stepper/index.d.ts +1 -1
- package/build/importer/components/Table/index.d.ts +3 -3
- package/build/importer/components/ToggleFilter/index.d.ts +1 -1
- package/build/importer/components/Tooltip/index.d.ts +1 -1
- package/build/importer/components/Tooltip/types/index.d.ts +4 -4
- package/build/importer/components/UploaderWrapper/NativeDropzone.d.ts +11 -0
- package/build/importer/components/UploaderWrapper/UploaderWrapper.d.ts +1 -1
- package/build/importer/components/UploaderWrapper/types/index.d.ts +1 -1
- package/build/importer/components/VirtualTable/index.d.ts +17 -0
- package/build/importer/components/ui/alert.d.ts +9 -7
- package/build/importer/components/ui/button.d.ts +6 -6
- package/build/importer/components/ui/card.d.ts +18 -7
- package/build/importer/components/ui/checkbox.d.ts +6 -3
- package/build/importer/components/ui/dialog.d.ts +32 -12
- package/build/importer/components/ui/flex.d.ts +16 -7
- package/build/importer/components/ui/input.d.ts +4 -3
- package/build/importer/components/ui/select.d.ts +13 -13
- package/build/importer/components/ui/switch.d.ts +6 -3
- package/build/importer/components/ui/toast.d.ts +23 -15
- package/build/importer/components/ui/tooltip.d.ts +16 -9
- package/build/importer/components/ui/use-toast.d.ts +7 -5
- package/build/importer/features/complete/index.d.ts +1 -1
- package/build/importer/features/main/hooks/useStepNavigation.d.ts +1 -1
- package/build/importer/features/main/index.d.ts +1 -1
- package/build/importer/features/map-columns/components/DropDownFields.d.ts +1 -1
- package/build/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +4 -4
- package/build/importer/features/map-columns/index.d.ts +1 -1
- package/build/importer/features/map-columns/types/index.d.ts +2 -2
- package/build/importer/features/row-selection/index.d.ts +1 -1
- package/build/importer/features/row-selection/types/index.d.ts +1 -1
- package/build/importer/features/uploader/hooks/useTemplateTable.d.ts +1 -1
- package/build/importer/features/uploader/index.d.ts +1 -1
- package/build/importer/features/uploader/types/index.d.ts +2 -2
- package/build/importer/features/validation/components/TransformPanel.d.ts +18 -0
- package/build/importer/features/validation/types.d.ts +3 -3
- package/build/importer/hooks/useEventListener.d.ts +1 -1
- package/build/importer/hooks/useIsomorphicLayoutEffect.d.ts +1 -1
- package/build/importer/providers/Theme.d.ts +7 -2
- package/build/importer/providers/index.d.ts +4 -4
- package/build/importer/providers/types/index.d.ts +10 -4
- package/build/importer/settings/theme/index.d.ts +2 -2
- package/build/importer/stores/theme.d.ts +3 -3
- package/build/importer/theme/index.d.ts +8 -0
- package/build/importer/theme/presets.d.ts +314 -0
- package/build/importer/theme/runtime.d.ts +66 -0
- package/build/importer/theme/styles.d.ts +120 -0
- package/build/importer/utils/errorAnalysis.d.ts +25 -0
- package/build/importer/utils/getStringLengthOfChildren.d.ts +2 -2
- package/build/importer/utils/template.d.ts +1 -1
- package/build/importer/utils/themeUtils.d.ts +24 -0
- package/build/index.d.ts +5 -3
- package/build/index.dev.d.ts +1 -0
- package/build/js.d.ts +4 -31
- package/build/preact/bundled-styles.d.ts +1 -0
- package/build/preact/components/CSVImporter/index.d.ts +5 -0
- package/build/preact/i18n/de.d.ts +32 -0
- package/build/preact/i18n/es.d.ts +32 -0
- package/build/preact/i18n/fr.d.ts +32 -0
- package/build/preact/i18n/i18n.d.ts +6 -0
- package/build/preact/i18n/it.d.ts +32 -0
- package/build/preact/i18n/useTranslation.d.ts +9 -0
- package/build/preact/importer/components/Box/index.d.ts +2 -0
- package/build/preact/importer/components/Box/types/index.d.ts +5 -0
- package/build/preact/importer/components/Checkbox/index.d.ts +2 -0
- package/build/preact/importer/components/Checkbox/types/index.d.ts +4 -0
- package/build/preact/importer/components/Errors/index.d.ts +4 -0
- package/build/preact/importer/components/Input/index.d.ts +2 -0
- package/build/preact/importer/components/Input/types/index.d.ts +18 -0
- package/build/preact/importer/components/Root/index.d.ts +10 -0
- package/build/preact/importer/components/StepLayout/index.d.ts +18 -0
- package/build/preact/importer/components/Stepper/hooks/useStepper.d.ts +2 -0
- package/build/preact/importer/components/Stepper/index.d.ts +2 -0
- package/build/preact/importer/components/Stepper/types/index.d.ts +14 -0
- package/build/preact/importer/components/Table/index.d.ts +9 -0
- package/build/preact/importer/components/ToggleFilter/index.d.ts +3 -0
- package/build/preact/importer/components/ToggleFilter/types/index.d.ts +11 -0
- package/build/preact/importer/components/Tooltip/index.d.ts +2 -0
- package/build/preact/importer/components/Tooltip/types/index.d.ts +11 -0
- package/build/preact/importer/components/UploaderWrapper/NativeDropzone.d.ts +11 -0
- package/build/preact/importer/components/UploaderWrapper/UploaderWrapper.d.ts +2 -0
- package/build/preact/importer/components/UploaderWrapper/types/index.d.ts +2 -0
- package/build/preact/importer/components/VirtualTable/index.d.ts +17 -0
- package/build/preact/importer/components/ui/alert.d.ts +10 -0
- package/build/preact/importer/components/ui/button.d.ts +12 -0
- package/build/preact/importer/components/ui/card.d.ts +19 -0
- package/build/preact/importer/components/ui/checkbox.d.ts +7 -0
- package/build/preact/importer/components/ui/dialog.d.ts +38 -0
- package/build/preact/importer/components/ui/flex.d.ts +23 -0
- package/build/preact/importer/components/ui/input.d.ts +6 -0
- package/build/preact/importer/components/ui/select.d.ts +13 -0
- package/build/preact/importer/components/ui/switch.d.ts +7 -0
- package/build/preact/importer/components/ui/toast.d.ts +22 -0
- package/build/preact/importer/components/ui/toaster.d.ts +1 -0
- package/build/preact/importer/components/ui/tooltip.d.ts +20 -0
- package/build/preact/importer/components/ui/use-toast.d.ts +46 -0
- package/build/preact/importer/features/complete/index.d.ts +2 -0
- package/build/preact/importer/features/complete/types/index.d.ts +5 -0
- package/build/preact/importer/features/configure-import/index.d.ts +13 -0
- package/build/preact/importer/features/configure-import/types/index.d.ts +13 -0
- package/build/preact/importer/features/main/hooks/useMutableLocalStorage.d.ts +1 -0
- package/build/preact/importer/features/main/hooks/useStepNavigation.d.ts +17 -0
- package/build/preact/importer/features/main/index.d.ts +2 -0
- package/build/preact/importer/features/main/types/index.d.ts +16 -0
- package/build/preact/importer/features/map-columns/components/DropDownFields.d.ts +21 -0
- package/build/preact/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +16 -0
- package/build/preact/importer/features/map-columns/index.d.ts +2 -0
- package/build/preact/importer/features/map-columns/types/index.d.ts +16 -0
- package/build/preact/importer/features/row-selection/index.d.ts +2 -0
- package/build/preact/importer/features/row-selection/types/index.d.ts +8 -0
- package/build/preact/importer/features/uploader/hooks/useTemplateTable.d.ts +10 -0
- package/build/preact/importer/features/uploader/index.d.ts +2 -0
- package/build/preact/importer/features/uploader/types/index.d.ts +9 -0
- package/build/preact/importer/features/validation/Validation.d.ts +2 -0
- package/build/preact/importer/features/validation/components/TransformModal.d.ts +18 -0
- package/build/preact/importer/features/validation/components/TransformPanel.d.ts +18 -0
- package/build/preact/importer/features/validation/index.d.ts +1 -0
- package/build/preact/importer/features/validation/types.d.ts +32 -0
- package/build/preact/importer/hooks/useClickOutside.d.ts +1 -0
- package/build/preact/importer/hooks/useCustomStyles.d.ts +1 -0
- package/build/preact/importer/hooks/useEventListener.d.ts +4 -0
- package/build/preact/importer/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/build/preact/importer/hooks/useRect.d.ts +12 -0
- package/build/preact/importer/hooks/useWindowSize.d.ts +1 -0
- package/build/preact/importer/providers/Theme.d.ts +10 -0
- package/build/preact/importer/providers/index.d.ts +5 -0
- package/build/preact/importer/providers/types/index.d.ts +10 -0
- package/build/preact/importer/services/api.d.ts +1 -0
- package/build/preact/importer/services/mapping.d.ts +31 -0
- package/build/preact/importer/services/transformation.d.ts +70 -0
- package/build/preact/importer/settings/theme/colors.d.ts +4 -0
- package/build/preact/importer/settings/theme/index.d.ts +2 -0
- package/build/preact/importer/settings/theme/sizes.d.ts +7 -0
- package/build/preact/importer/stores/theme.d.ts +17 -0
- package/build/preact/importer/theme/index.d.ts +8 -0
- package/build/preact/importer/theme/presets.d.ts +314 -0
- package/build/preact/importer/theme/runtime.d.ts +62 -0
- package/build/preact/importer/theme/styles.d.ts +120 -0
- package/build/preact/importer/types/index.d.ts +9 -0
- package/build/preact/importer/utils/colorUtils.d.ts +48 -0
- package/build/preact/importer/utils/errorAnalysis.d.ts +25 -0
- package/build/preact/importer/utils/getStringLengthOfChildren.d.ts +2 -0
- package/build/preact/importer/utils/stringSimilarity.d.ts +1 -0
- package/build/preact/importer/utils/template.d.ts +2 -0
- package/build/preact/importer/utils/themeUtils.d.ts +21 -0
- package/build/preact/importer/utils/utils.d.ts +19 -0
- package/build/preact/index.d.ts +4 -0
- package/build/preact/index.esm.js +7370 -0
- package/build/preact/index.esm.js.map +1 -0
- package/build/preact/index.js +112 -0
- package/build/preact/index.js.map +1 -0
- package/build/preact/js.d.ts +12 -0
- package/build/preact/settings/defaults.d.ts +3 -0
- package/build/preact/styles.d.ts +1 -0
- package/build/preact/types/index.d.ts +132 -0
- package/build/preact/types/theme.d.ts +153 -0
- package/build/preact/utils/cn.d.ts +6 -0
- package/build/preact/utils/injectStyles.d.ts +14 -0
- package/build/preact/validation/transformationStages.d.ts +26 -0
- package/build/preact/validation/transformer.d.ts +17 -0
- package/build/preact/validation/validator.d.ts +23 -0
- package/build/react/bundled-styles.d.ts +1 -0
- package/build/react/components/CSVImporter/index.d.ts +5 -0
- package/build/react/components/Modal/index.d.ts +12 -0
- package/build/react/i18n/de.d.ts +32 -0
- package/build/react/i18n/es.d.ts +32 -0
- package/build/react/i18n/fr.d.ts +32 -0
- package/build/react/i18n/i18n.d.ts +6 -0
- package/build/react/i18n/it.d.ts +32 -0
- package/build/react/i18n/useTranslation.d.ts +9 -0
- package/build/react/importer/components/Box/index.d.ts +2 -0
- package/build/react/importer/components/Box/types/index.d.ts +5 -0
- package/build/react/importer/components/Checkbox/index.d.ts +2 -0
- package/build/react/importer/components/Checkbox/types/index.d.ts +4 -0
- package/build/react/importer/components/Errors/index.d.ts +4 -0
- package/build/react/importer/components/Input/index.d.ts +2 -0
- package/build/react/importer/components/Input/types/index.d.ts +18 -0
- package/build/react/importer/components/Root/index.d.ts +10 -0
- package/build/react/importer/components/StepLayout/index.d.ts +18 -0
- package/build/react/importer/components/Stepper/hooks/useStepper.d.ts +2 -0
- package/build/react/importer/components/Stepper/index.d.ts +2 -0
- package/build/react/importer/components/Stepper/types/index.d.ts +14 -0
- package/build/react/importer/components/Table/index.d.ts +9 -0
- package/build/{importer → react/importer}/components/Table/types/index.d.ts +2 -2
- package/build/react/importer/components/ToggleFilter/index.d.ts +3 -0
- package/build/react/importer/components/ToggleFilter/types/index.d.ts +11 -0
- package/build/react/importer/components/Tooltip/index.d.ts +2 -0
- package/build/react/importer/components/Tooltip/types/index.d.ts +11 -0
- package/build/react/importer/components/UploaderWrapper/NativeDropzone.d.ts +11 -0
- package/build/react/importer/components/UploaderWrapper/UploaderWrapper.d.ts +2 -0
- package/build/react/importer/components/UploaderWrapper/types/index.d.ts +2 -0
- package/build/react/importer/components/VirtualTable/index.d.ts +17 -0
- package/build/react/importer/components/ui/alert.d.ts +13 -0
- package/build/react/importer/components/ui/button.d.ts +12 -0
- package/build/react/importer/components/ui/card.d.ts +19 -0
- package/build/react/importer/components/ui/checkbox.d.ts +7 -0
- package/build/react/importer/components/ui/dialog.d.ts +38 -0
- package/build/react/importer/components/ui/flex.d.ts +23 -0
- package/build/react/importer/components/ui/input.d.ts +6 -0
- package/build/react/importer/components/ui/select.d.ts +13 -0
- package/build/react/importer/components/ui/switch.d.ts +7 -0
- package/build/react/importer/components/ui/toast.d.ts +22 -0
- package/build/react/importer/components/ui/toaster.d.ts +1 -0
- package/build/react/importer/components/ui/tooltip.d.ts +24 -0
- package/build/react/importer/components/ui/use-toast.d.ts +46 -0
- package/build/react/importer/features/complete/index.d.ts +2 -0
- package/build/react/importer/features/complete/types/index.d.ts +5 -0
- package/build/react/importer/features/configure-import/index.d.ts +13 -0
- package/build/react/importer/features/configure-import/types/index.d.ts +13 -0
- package/build/react/importer/features/main/hooks/useMutableLocalStorage.d.ts +1 -0
- package/build/react/importer/features/main/hooks/useStepNavigation.d.ts +17 -0
- package/build/react/importer/features/main/index.d.ts +2 -0
- package/build/react/importer/features/main/types/index.d.ts +16 -0
- package/build/react/importer/features/map-columns/components/DropDownFields.d.ts +21 -0
- package/build/react/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +16 -0
- package/build/react/importer/features/map-columns/index.d.ts +2 -0
- package/build/react/importer/features/map-columns/types/index.d.ts +16 -0
- package/build/react/importer/features/row-selection/index.d.ts +2 -0
- package/build/react/importer/features/row-selection/types/index.d.ts +8 -0
- package/build/react/importer/features/uploader/hooks/useTemplateTable.d.ts +10 -0
- package/build/react/importer/features/uploader/index.d.ts +2 -0
- package/build/react/importer/features/uploader/types/index.d.ts +9 -0
- package/build/react/importer/features/validation/Validation.d.ts +2 -0
- package/build/react/importer/features/validation/components/TransformModal.d.ts +18 -0
- package/build/react/importer/features/validation/components/TransformPanel.d.ts +18 -0
- package/build/react/importer/features/validation/index.d.ts +1 -0
- package/build/react/importer/features/validation/types.d.ts +32 -0
- package/build/react/importer/hooks/useClickOutside.d.ts +1 -0
- package/build/react/importer/hooks/useCustomStyles.d.ts +1 -0
- package/build/react/importer/hooks/useEventListener.d.ts +4 -0
- package/build/react/importer/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/build/react/importer/hooks/useRect.d.ts +12 -0
- package/build/react/importer/hooks/useWindowSize.d.ts +1 -0
- package/build/react/importer/providers/Theme.d.ts +10 -0
- package/build/react/importer/providers/index.d.ts +5 -0
- package/build/react/importer/providers/types/index.d.ts +10 -0
- package/build/react/importer/services/api.d.ts +1 -0
- package/build/react/importer/services/mapping.d.ts +31 -0
- package/build/react/importer/services/transformation.d.ts +70 -0
- package/build/react/importer/settings/theme/colors.d.ts +4 -0
- package/build/react/importer/settings/theme/index.d.ts +2 -0
- package/build/react/importer/settings/theme/sizes.d.ts +7 -0
- package/build/react/importer/stores/theme.d.ts +17 -0
- package/build/react/importer/theme/index.d.ts +8 -0
- package/build/react/importer/theme/presets.d.ts +314 -0
- package/build/react/importer/theme/runtime.d.ts +62 -0
- package/build/react/importer/theme/styles.d.ts +120 -0
- package/build/react/importer/types/index.d.ts +9 -0
- package/build/react/importer/utils/colorUtils.d.ts +48 -0
- package/build/react/importer/utils/errorAnalysis.d.ts +25 -0
- package/build/react/importer/utils/getStringLengthOfChildren.d.ts +2 -0
- package/build/react/importer/utils/stringSimilarity.d.ts +1 -0
- package/build/react/importer/utils/template.d.ts +2 -0
- package/build/react/importer/utils/themeUtils.d.ts +21 -0
- package/build/react/importer/utils/utils.d.ts +19 -0
- package/build/react/index.d.ts +5 -0
- package/build/react/index.esm.js +7541 -0
- package/build/react/index.esm.js.map +1 -0
- package/build/react/index.js +112 -0
- package/build/react/index.js.map +1 -0
- package/build/react/js.d.ts +12 -0
- package/build/react/settings/defaults.d.ts +3 -0
- package/build/react/styles.d.ts +1 -0
- package/build/react/types/index.d.ts +132 -0
- package/build/react/types/theme.d.ts +153 -0
- package/build/react/utils/cn.d.ts +6 -0
- package/build/react/validation/transformationStages.d.ts +26 -0
- package/build/react/validation/transformer.d.ts +17 -0
- package/build/react/validation/validator.d.ts +23 -0
- package/build/services/api.d.ts +50 -0
- package/build/services/apiClient.d.ts +55 -0
- package/build/settings/defaults.d.ts +1 -1
- package/build/shims/react-compat-shim.d.ts +2 -0
- package/build/shims/react-hooks-shim.d.ts +2 -0
- package/build/types/index.d.ts +27 -0
- package/build/types/theme.d.ts +153 -0
- package/build/utils/cn.d.ts +1 -1
- package/build/validation/transformationStages.d.ts +26 -0
- package/build/validation/transformer.d.ts +10 -26
- package/package.json +64 -32
- package/build/bundle.css +0 -1
- package/build/importer/components/IframeWrapper/index.d.ts +0 -25
- package/build/importer/components/ImporterLayout.d.ts +0 -15
- package/build/importer/hooks/useDemoData.d.ts +0 -16
- package/build/importer/hooks/useImporterSchema.d.ts +0 -21
- package/build/importer/services/dataProcessor.d.ts +0 -38
- package/build/index.esm.js +0 -14394
- package/build/index.esm.js.map +0 -1
- package/build/index.js +0 -327
- package/build/index.js.map +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, InputHTMLAttributes, ReactElement } from '../../../../shims/react-hooks-shim.js';
|
|
2
|
+
export type inputTypes = "date" | "datetime-local" | "email" | "file" | "month" | "number" | "password" | "search" | "tel" | "text" | "time" | "url" | "week";
|
|
3
|
+
export type InputVariants = "fluid" | "small";
|
|
4
|
+
export type InputOption = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
5
|
+
required?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type InputProps = InputHTMLAttributes<HTMLInputElement> & InputHTMLAttributes<HTMLSelectElement> & InputHTMLAttributes<HTMLTextAreaElement> & {
|
|
8
|
+
as?: "input" | "textarea";
|
|
9
|
+
label?: string | ReactElement;
|
|
10
|
+
icon?: ReactElement;
|
|
11
|
+
iconAfter?: ReactElement;
|
|
12
|
+
error?: string;
|
|
13
|
+
options?: {
|
|
14
|
+
[key: string]: InputOption;
|
|
15
|
+
};
|
|
16
|
+
variants?: InputVariants[];
|
|
17
|
+
type?: inputTypes;
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentChildren } from '../../../../react';
|
|
2
|
+
interface RootProps {
|
|
3
|
+
children?: ComponentChildren;
|
|
4
|
+
className?: string;
|
|
5
|
+
primaryColor?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<RootProps> & {
|
|
8
|
+
ref?: import('../../../../react').Ref<HTMLDivElement> | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentChildren } from '../../../../react';
|
|
2
|
+
interface StepLayoutProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
children: ComponentChildren;
|
|
6
|
+
headerContent?: ComponentChildren;
|
|
7
|
+
footerContent?: ComponentChildren;
|
|
8
|
+
showHeader?: boolean;
|
|
9
|
+
showFooter?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
contentClassName?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Consistent layout wrapper for all importer steps
|
|
15
|
+
* Ensures uniform spacing, typography, and structure
|
|
16
|
+
*/
|
|
17
|
+
export default function StepLayout({ title, subtitle, children, headerContent, footerContent, showHeader, showFooter, className, contentClassName, }: StepLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type Step = {
|
|
2
|
+
label: string;
|
|
3
|
+
id?: string | number;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type StepperProps = {
|
|
7
|
+
steps: Step[];
|
|
8
|
+
current: number;
|
|
9
|
+
setCurrent: (step: number) => void;
|
|
10
|
+
step: Step;
|
|
11
|
+
clickable?: boolean;
|
|
12
|
+
skipHeader: boolean;
|
|
13
|
+
hide?: boolean;
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JSX } from '../../../../react';
|
|
2
|
+
import { TableProps } from './types';
|
|
3
|
+
export default function Table({ data, // An array of objects with the data to be displayed
|
|
4
|
+
keyAsId, // Has to be a unique property in the data array to be used as key
|
|
5
|
+
theme, // A CSS module object to style the table
|
|
6
|
+
mergeThemes, // Should 'theme' be the only style applied (false) or be merged with the default style (true)
|
|
7
|
+
highlightColumns, // Columns that should use the highlighted style
|
|
8
|
+
hideColumns, // Array of columns to be hidden in the display
|
|
9
|
+
emptyState, heading, background, columnWidths, columnAlignments, fixHeader, onRowClick, }: TableProps): JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JSX } from '../../../../../react';
|
|
2
2
|
type Style = {
|
|
3
3
|
readonly [key: string]: string;
|
|
4
4
|
};
|
|
5
5
|
type Primitive = string | number | boolean | null | undefined;
|
|
6
6
|
export type TableComposite = {
|
|
7
7
|
raw: Primitive;
|
|
8
|
-
content: Primitive |
|
|
8
|
+
content: Primitive | JSX.Element;
|
|
9
9
|
tooltip?: string;
|
|
10
10
|
captionInfo?: string;
|
|
11
11
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from '../../../../shims/react-hooks-shim.js';
|
|
2
|
+
export type AsMap = {
|
|
3
|
+
div: JSX.HTMLAttributes<HTMLDivElement>;
|
|
4
|
+
span: JSX.HTMLAttributes<HTMLSpanElement>;
|
|
5
|
+
p: JSX.HTMLAttributes<HTMLParagraphElement>;
|
|
6
|
+
};
|
|
7
|
+
export type TooltipProps<T extends keyof AsMap = "span"> = {
|
|
8
|
+
as?: T;
|
|
9
|
+
title?: string | ReactNode;
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
} & AsMap[T];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentChildren } from '../../../../react';
|
|
2
|
+
interface NativeDropzoneProps {
|
|
3
|
+
onFileSelect: (file: File) => void;
|
|
4
|
+
accept?: Record<string, string[]>;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
children?: ComponentChildren;
|
|
9
|
+
}
|
|
10
|
+
export default function NativeDropzone({ onFileSelect, accept, disabled, loading, className, children }: NativeDropzoneProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { JSX } from '../../../../react';
|
|
2
|
+
import { FileRow } from '../../features/main/types';
|
|
3
|
+
interface VirtualTableProps {
|
|
4
|
+
headers: string[];
|
|
5
|
+
rows: FileRow[];
|
|
6
|
+
renderCell: (row: FileRow, colIdx: number, actualRowIdx: number) => JSX.Element;
|
|
7
|
+
onCellEdit?: (rowIdx: number, colIdx: number, value: string) => void;
|
|
8
|
+
rowHeight?: number;
|
|
9
|
+
overscan?: number;
|
|
10
|
+
stickyHeader?: boolean;
|
|
11
|
+
stickyFirstColumn?: boolean;
|
|
12
|
+
getRowClassName?: (row: FileRow, actualRowIdx: number) => string;
|
|
13
|
+
headerRowIndex?: number;
|
|
14
|
+
includedColumns: number[];
|
|
15
|
+
}
|
|
16
|
+
export default function VirtualTable({ headers, rows, renderCell, rowHeight, overscan, stickyHeader, stickyFirstColumn, getRowClassName, headerRowIndex, includedColumns, }: VirtualTableProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
declare const Alert: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
3
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string>> & {
|
|
5
|
+
ref?: import('../../../../react').Ref<HTMLDivElement> | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
declare const AlertTitle: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<JSX.HTMLAttributes<HTMLHeadingElement>> & {
|
|
8
|
+
ref?: import('../../../../react').Ref<HTMLParagraphElement> | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
declare const AlertDescription: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<JSX.HTMLAttributes<HTMLParagraphElement>> & {
|
|
11
|
+
ref?: import('../../../../react').Ref<HTMLParagraphElement> | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
export { Alert, AlertTitle, AlertDescription };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
declare const buttonVariants: (props?: ({
|
|
3
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
4
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
6
|
+
export interface ButtonProps extends JSX.HTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const Button: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<ButtonProps> & {
|
|
10
|
+
ref?: import('../../../../react').Ref<HTMLButtonElement> | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const Card: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement>> & {
|
|
2
|
+
ref?: import('../../../../react').Ref<HTMLDivElement> | undefined;
|
|
3
|
+
}>;
|
|
4
|
+
declare const CardHeader: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement>> & {
|
|
5
|
+
ref?: import('../../../../react').Ref<HTMLDivElement> | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
declare const CardTitle: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<JSX.HTMLAttributes<HTMLHeadingElement>> & {
|
|
8
|
+
ref?: import('../../../../react').Ref<HTMLParagraphElement> | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
declare const CardDescription: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<JSX.HTMLAttributes<HTMLParagraphElement>> & {
|
|
11
|
+
ref?: import('../../../../react').Ref<HTMLParagraphElement> | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
declare const CardContent: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement>> & {
|
|
14
|
+
ref?: import('../../../../react').Ref<HTMLDivElement> | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
declare const CardFooter: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement>> & {
|
|
17
|
+
ref?: import('../../../../react').Ref<HTMLDivElement> | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface CheckboxProps extends JSX.HTMLAttributes<HTMLInputElement> {
|
|
2
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
3
|
+
}
|
|
4
|
+
declare const Checkbox: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<CheckboxProps> & {
|
|
5
|
+
ref?: import('../../../../react').Ref<HTMLInputElement> | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
export { Checkbox };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { h, ComponentChildren, JSX } from '../../../../react';
|
|
2
|
+
interface DialogProps {
|
|
3
|
+
open?: boolean;
|
|
4
|
+
onOpenChange?: (open: boolean) => void;
|
|
5
|
+
children: ComponentChildren;
|
|
6
|
+
}
|
|
7
|
+
declare const Dialog: ({ open, onOpenChange, children }: DialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const DialogTrigger: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLButtonElement>> & {
|
|
9
|
+
ref?: import('../../../../react').Ref<HTMLButtonElement> | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
interface DialogContentProps extends JSX.HTMLAttributes<HTMLDialogElement> {
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
}
|
|
14
|
+
declare const DialogContent: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<DialogContentProps> & {
|
|
15
|
+
ref?: import('../../../../react').Ref<HTMLDialogElement> | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
declare const DialogHeader: {
|
|
18
|
+
({ className, ...props }: JSX.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
21
|
+
declare const DialogFooter: {
|
|
22
|
+
({ className, ...props }: JSX.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
25
|
+
declare const DialogTitle: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLHeadingElement>> & {
|
|
26
|
+
ref?: import('../../../../react').Ref<HTMLHeadingElement> | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
declare const DialogDescription: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLParagraphElement>> & {
|
|
29
|
+
ref?: import('../../../../react').Ref<HTMLParagraphElement> | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
declare const DialogPortal: ({ children }: {
|
|
32
|
+
children: ComponentChildren;
|
|
33
|
+
}) => ComponentChildren;
|
|
34
|
+
declare const DialogOverlay: () => null;
|
|
35
|
+
declare const DialogClose: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLButtonElement>> & {
|
|
36
|
+
ref?: import('../../../../react').Ref<HTMLButtonElement> | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
interface FlexProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
direction?: "row" | "column" | "row-reverse" | "column-reverse";
|
|
3
|
+
align?: "start" | "center" | "end" | "stretch" | "baseline";
|
|
4
|
+
justify?: "start" | "center" | "end" | "between" | "around" | "evenly";
|
|
5
|
+
wrap?: boolean;
|
|
6
|
+
gap?: number | string;
|
|
7
|
+
}
|
|
8
|
+
declare const Flex: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<FlexProps> & {
|
|
9
|
+
ref?: import('../../../../react').Ref<HTMLDivElement> | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
declare const Box: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement>> & {
|
|
12
|
+
ref?: import('../../../../react').Ref<HTMLDivElement> | undefined;
|
|
13
|
+
}>;
|
|
14
|
+
declare const HStack: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<Omit<FlexProps, "direction">> & {
|
|
15
|
+
ref?: import('../../../../react').Ref<HTMLDivElement> | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
declare const VStack: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<Omit<FlexProps, "direction">> & {
|
|
18
|
+
ref?: import('../../../../react').Ref<HTMLDivElement> | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
declare const Text: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement>> & {
|
|
21
|
+
ref?: import('../../../../react').Ref<HTMLDivElement> | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
export { Flex, Box, HStack, VStack, Text };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface InputProps extends JSX.HTMLAttributes<HTMLInputElement> {
|
|
2
|
+
}
|
|
3
|
+
declare const Input: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<InputProps> & {
|
|
4
|
+
ref?: import('../../../../react').Ref<HTMLInputElement> | undefined;
|
|
5
|
+
}>;
|
|
6
|
+
export { Input };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface SelectProps extends JSX.SelectHTMLAttributes<HTMLSelectElement> {
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
options?: Array<{
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}>;
|
|
8
|
+
onValueChange?: (value: string) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const Select: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<SelectProps> & {
|
|
11
|
+
ref?: import('../../../../react').Ref<HTMLSelectElement> | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
export { Select };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface SwitchProps extends Omit<JSX.HTMLAttributes<HTMLInputElement>, 'type'> {
|
|
2
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
3
|
+
}
|
|
4
|
+
declare const Switch: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<SwitchProps> & {
|
|
5
|
+
ref?: import('../../../../react').Ref<HTMLInputElement> | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
export { Switch };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { h, JSX } from '../../../../react';
|
|
2
|
+
export interface ToastProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
variant?: 'default' | 'destructive';
|
|
4
|
+
onClose?: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare const Toast: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<ToastProps> & {
|
|
7
|
+
ref?: import('../../../../react').Ref<HTMLDivElement> | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
declare const ToastAction: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLButtonElement>> & {
|
|
10
|
+
ref?: import('../../../../react').Ref<HTMLButtonElement> | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
declare const ToastClose: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLButtonElement>> & {
|
|
13
|
+
ref?: import('../../../../react').Ref<HTMLButtonElement> | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
declare const ToastTitle: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLDivElement>> & {
|
|
16
|
+
ref?: import('../../../../react').Ref<HTMLDivElement> | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
declare const ToastDescription: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLDivElement>> & {
|
|
19
|
+
ref?: import('../../../../react').Ref<HTMLDivElement> | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
type ToastActionElement = JSX.Element<typeof ToastAction>;
|
|
22
|
+
export { Toast, ToastAction, ToastClose, ToastTitle, ToastDescription, type ToastActionElement, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Toaster(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentChildren } from '../../../../react';
|
|
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('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement> & {
|
|
15
|
+
asChild?: boolean | undefined;
|
|
16
|
+
}> & {
|
|
17
|
+
ref?: import('../../../../react').Ref<HTMLDivElement> | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
declare const TooltipContent: import('../../../../react').FunctionalComponent<import('../../../../react').PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement> & {
|
|
20
|
+
sideOffset?: number | undefined;
|
|
21
|
+
}> & {
|
|
22
|
+
ref?: import('../../../../react').Ref<HTMLDivElement> | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
export { Tooltip, TooltipRoot, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ComponentChildren } from '../../../../react';
|
|
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 };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Column, ColumnMappingDictionary } from '../../../types';
|
|
2
|
+
interface ConfigureImportProps {
|
|
3
|
+
columns?: Column[];
|
|
4
|
+
data: any;
|
|
5
|
+
onSuccess: (mapping: ColumnMappingDictionary, headerRow: number) => void;
|
|
6
|
+
onCancel?: () => void;
|
|
7
|
+
isSubmitting?: boolean;
|
|
8
|
+
importerKey?: string;
|
|
9
|
+
backendUrl?: string;
|
|
10
|
+
isDemoMode?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export default function ConfigureImport({ columns, data, onSuccess, onCancel, isSubmitting, importerKey, backendUrl, isDemoMode, }: ConfigureImportProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Template } from '../../../types';
|
|
2
|
+
import { ColumnMapping, ColumnMappingDictionary } from '../../../../types';
|
|
3
|
+
export interface ConfigureImportProps {
|
|
4
|
+
template: Template;
|
|
5
|
+
data: any;
|
|
6
|
+
onSuccess: (mapping: ColumnMappingDictionary, headerRow: number) => void;
|
|
7
|
+
onCancel?: () => void;
|
|
8
|
+
isSubmitting?: boolean;
|
|
9
|
+
importerKey?: string;
|
|
10
|
+
backendUrl?: string;
|
|
11
|
+
isDemoMode?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type { ColumnMapping, ColumnMappingDictionary };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useMutableLocalStorage(key: string, initialValue: any): any[];
|
|
@@ -0,0 +1,17 @@
|
|
|
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;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum Steps {
|
|
2
|
+
Upload = "upload",
|
|
3
|
+
RowSelection = "row-selection",
|
|
4
|
+
MapColumns = "map-columns",
|
|
5
|
+
Validation = "validation"
|
|
6
|
+
}
|
|
7
|
+
export type FileRow = {
|
|
8
|
+
index: number;
|
|
9
|
+
values: string[];
|
|
10
|
+
};
|
|
11
|
+
export type FileData = {
|
|
12
|
+
fileName: string;
|
|
13
|
+
rows: FileRow[];
|
|
14
|
+
sheetList: string[];
|
|
15
|
+
errors: string[];
|
|
16
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { InputOption } from '../../../components/Input/types';
|
|
2
|
+
type DropdownFieldsProps = {
|
|
3
|
+
options: {
|
|
4
|
+
[key: string]: InputOption;
|
|
5
|
+
};
|
|
6
|
+
value: string;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
onChange: (value: string) => void;
|
|
9
|
+
selectedValues: {
|
|
10
|
+
id?: string;
|
|
11
|
+
key?: string;
|
|
12
|
+
selected: boolean | undefined;
|
|
13
|
+
}[];
|
|
14
|
+
updateSelectedValues: (updatedValues: {
|
|
15
|
+
id?: string;
|
|
16
|
+
key?: string;
|
|
17
|
+
selected: boolean | undefined;
|
|
18
|
+
}[]) => void;
|
|
19
|
+
};
|
|
20
|
+
export default function DropdownFields({ options, value, placeholder, onChange, selectedValues, updateSelectedValues }: DropdownFieldsProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UploadColumn } from '../../../types';
|
|
2
|
+
import { Column } from '../../../../types';
|
|
3
|
+
import { TemplateColumnMapping } from '../types';
|
|
4
|
+
export default function useMapColumnsTable(uploadColumns: UploadColumn[], templateColumns: Column[] | undefined, columnsValues: {
|
|
5
|
+
[uploadColumnIndex: number]: TemplateColumnMapping;
|
|
6
|
+
}, isLoading?: boolean, importerKey?: string, backendUrl?: string): {
|
|
7
|
+
rows: {
|
|
8
|
+
[x: string]: {
|
|
9
|
+
raw: string | boolean;
|
|
10
|
+
content: string | import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
};
|
|
12
|
+
}[];
|
|
13
|
+
formValues: {
|
|
14
|
+
[key: number]: import('../types').ColumnMapping;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
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;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Column, ColumnMapping, ColumnMappingDictionary } from '../../../../types';
|
|
2
|
+
import { FileData } from '../../main/types';
|
|
3
|
+
export type { ColumnMapping, ColumnMappingDictionary };
|
|
4
|
+
export type TemplateColumnMapping = ColumnMapping;
|
|
5
|
+
export type MapColumnsProps = {
|
|
6
|
+
columns?: Column[];
|
|
7
|
+
data: FileData;
|
|
8
|
+
columnMapping: ColumnMappingDictionary;
|
|
9
|
+
selectedHeaderRow: number | null;
|
|
10
|
+
skipHeaderRowSelection?: boolean;
|
|
11
|
+
onSuccess: (columnMapping: ColumnMappingDictionary) => void;
|
|
12
|
+
onCancel: () => void;
|
|
13
|
+
isSubmitting: boolean;
|
|
14
|
+
importerKey?: string;
|
|
15
|
+
backendUrl?: string;
|
|
16
|
+
};
|