@importcsv/react 0.2.14 → 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.
Files changed (314) hide show
  1. package/README.md +2 -0
  2. package/build/App.d.ts +2 -0
  3. package/build/bundled/index.esm.js +6815 -3493
  4. package/build/bundled/index.esm.js.map +1 -1
  5. package/build/bundled/index.js +32 -31
  6. package/build/bundled/index.js.map +1 -1
  7. package/build/bundled/index.umd.js +32 -31
  8. package/build/bundled/index.umd.js.map +1 -1
  9. package/build/components/CSVImporter/index.d.ts +55 -0
  10. package/build/components/CSVImporterHeadless.d.ts +46 -0
  11. package/build/components/ColumnMapper.d.ts +28 -0
  12. package/build/{preact/components → components}/Modal/index.d.ts +1 -1
  13. package/build/components/Uploader.d.ts +27 -0
  14. package/build/components/Validator.d.ts +28 -0
  15. package/build/components/__tests__/ColumnMapper.test.d.ts +1 -0
  16. package/build/components/__tests__/Uploader.test.d.ts +1 -0
  17. package/build/components/__tests__/Validator.test.d.ts +1 -0
  18. package/build/components/index.d.ts +3 -0
  19. package/build/config/index.d.ts +5 -0
  20. package/build/headless/__tests__/integration.test.d.ts +10 -0
  21. package/build/headless/__tests__/root.test.d.ts +1 -0
  22. package/build/headless/__tests__/root.types.test-d.d.ts +1 -0
  23. package/build/headless/__tests__/slot-components.test.d.ts +1 -0
  24. package/build/headless/__tests__/validator.test.d.ts +1 -0
  25. package/build/headless/back-button.d.ts +29 -0
  26. package/build/headless/index.d.ts +45 -0
  27. package/build/headless/next-button.d.ts +29 -0
  28. package/build/headless/root.d.ts +40 -0
  29. package/build/headless/submit-button.d.ts +29 -0
  30. package/build/headless/types.d.ts +52 -0
  31. package/build/headless/upload-trigger.d.ts +29 -0
  32. package/build/headless/utils/slot.d.ts +20 -0
  33. package/build/headless/utils/zodSchemaToColumns.d.ts +25 -0
  34. package/build/headless/utils/zodSchemaToColumns.test.d.ts +1 -0
  35. package/build/headless/validator.d.ts +28 -0
  36. package/build/importer/components/Box/index.d.ts +2 -0
  37. package/build/importer/components/Box/index.test.d.ts +1 -0
  38. package/build/{preact/importer → importer}/components/Box/types/index.d.ts +1 -0
  39. package/build/importer/components/Checkbox/index.d.ts +3 -0
  40. package/build/importer/components/Checkbox/index.test.d.ts +1 -0
  41. package/build/importer/components/Checkbox/types/index.d.ts +8 -0
  42. package/build/{bundled/importer → importer}/components/Errors/index.d.ts +1 -1
  43. package/build/{bundled/importer → importer}/components/Input/index.d.ts +2 -2
  44. package/build/importer/components/Input/index.test.d.ts +1 -0
  45. package/build/importer/components/Input/types/index.d.ts +24 -0
  46. package/build/importer/components/Root/index.d.ts +2 -0
  47. package/build/{bundled/importer → importer}/components/StepLayout/index.d.ts +3 -2
  48. package/build/importer/components/Stepper/hooks/useStepper.d.ts +4 -0
  49. package/build/importer/components/Stepper/hooks/useStepper.test.d.ts +1 -0
  50. package/build/importer/components/Stepper/index.d.ts +2 -0
  51. package/build/importer/components/Stepper/index.test.d.ts +1 -0
  52. package/build/{bundled/importer → importer}/components/Stepper/types/index.d.ts +3 -3
  53. package/build/{bundled/importer → importer}/components/Table/index.d.ts +2 -2
  54. package/build/{bundled/importer → importer}/components/Table/types/index.d.ts +6 -5
  55. package/build/importer/components/ToggleFilter/index.d.ts +3 -0
  56. package/build/{bundled/importer → importer}/components/Tooltip/index.d.ts +2 -2
  57. package/build/{preact/importer → importer}/components/Tooltip/types/index.d.ts +3 -3
  58. package/build/{bundled/importer → importer}/components/UploaderWrapper/NativeDropzone.d.ts +3 -2
  59. package/build/importer/components/UploaderWrapper/UploaderWrapper.d.ts +2 -0
  60. package/build/{bundled/importer → importer}/components/UploaderWrapper/types/index.d.ts +1 -1
  61. package/build/{preact/importer → importer}/components/VirtualTable/index.d.ts +3 -3
  62. package/build/importer/components/VirtualTable/index.test.d.ts +1 -0
  63. package/build/importer/components/ui/alert.d.ts +15 -0
  64. package/build/{bundled/importer → importer}/components/ui/button.d.ts +8 -5
  65. package/build/importer/components/ui/card.d.ts +20 -0
  66. package/build/importer/components/ui/checkbox.d.ts +10 -0
  67. package/build/importer/components/ui/dialog.d.ts +39 -0
  68. package/build/importer/components/ui/flex.d.ts +24 -0
  69. package/build/importer/components/ui/input.d.ts +8 -0
  70. package/build/importer/components/ui/select.d.ts +17 -0
  71. package/build/importer/components/ui/switch.d.ts +11 -0
  72. package/build/importer/components/ui/toast.d.ts +22 -0
  73. package/build/importer/components/ui/toaster.d.ts +2 -0
  74. package/build/importer/components/ui/tooltip.d.ts +25 -0
  75. package/build/{preact/importer → importer}/components/ui/use-toast.d.ts +2 -2
  76. package/build/importer/features/complete/index.d.ts +2 -0
  77. package/build/{bundled/importer → importer}/features/configure-import/index.d.ts +2 -1
  78. package/build/importer/features/main/hooks/useMutableLocalStorage.test.d.ts +1 -0
  79. package/build/{preact/importer → importer}/features/main/hooks/useStepNavigation.d.ts +1 -1
  80. package/build/importer/features/main/hooks/useStepNavigation.test.d.ts +1 -0
  81. package/build/importer/features/main/index.d.ts +2 -0
  82. package/build/{bundled/importer → importer}/features/map-columns/components/DropDownFields.d.ts +3 -2
  83. package/build/{bundled/importer → importer}/features/map-columns/hooks/useMapColumnsTable.d.ts +6 -5
  84. package/build/importer/features/map-columns/index.d.ts +3 -0
  85. package/build/{bundled/importer → importer}/features/map-columns/types/index.d.ts +2 -2
  86. package/build/{bundled/importer → importer}/features/row-selection/index.d.ts +3 -2
  87. package/build/{preact/importer → importer}/features/row-selection/types/index.d.ts +1 -1
  88. package/build/importer/features/uploader/hooks/useTemplateTable.d.ts +10 -0
  89. package/build/{bundled/importer → importer}/features/uploader/index.d.ts +2 -2
  90. package/build/{bundled/importer → importer}/features/uploader/types/index.d.ts +3 -3
  91. package/build/importer/features/validation/Validation.d.ts +3 -0
  92. package/build/importer/features/validation/__tests__/Validation.zod.test.d.ts +1 -0
  93. package/build/{bundled/importer → importer}/features/validation/components/TransformModal.d.ts +2 -1
  94. package/build/{bundled/importer → importer}/features/validation/components/TransformPanel.d.ts +2 -1
  95. package/build/{bundled/importer → importer}/features/validation/types.d.ts +5 -3
  96. package/build/importer/hooks/useClickOutside.test.d.ts +1 -0
  97. package/build/importer/hooks/useCustomStyles.test.d.ts +1 -0
  98. package/build/{bundled/importer → importer}/hooks/useEventListener.d.ts +1 -1
  99. package/build/importer/hooks/useEventListener.test.d.ts +1 -0
  100. package/build/{bundled/importer → importer}/hooks/useIsomorphicLayoutEffect.d.ts +1 -1
  101. package/build/importer/hooks/useIsomorphicLayoutEffect.test.d.ts +1 -0
  102. package/build/importer/hooks/useRect.test.d.ts +1 -0
  103. package/build/importer/hooks/useWindowSize.test.d.ts +1 -0
  104. package/build/{bundled/importer → importer}/providers/Theme.d.ts +3 -3
  105. package/build/{bundled/importer → importer}/providers/index.d.ts +3 -3
  106. package/build/{preact/importer → importer}/providers/types/index.d.ts +1 -1
  107. package/build/importer/services/api.d.ts +1 -0
  108. package/build/importer/services/mapping.test.d.ts +1 -0
  109. package/build/importer/services/transformation.test.d.ts +1 -0
  110. package/build/importer/settings/theme/index.d.ts +2 -0
  111. package/build/{preact/importer → importer}/stores/theme.d.ts +3 -3
  112. package/build/{preact/importer → importer}/theme/runtime.d.ts +4 -0
  113. package/build/importer/utils/colorUtils.test.d.ts +1 -0
  114. package/build/importer/utils/errorAnalysis.test.d.ts +1 -0
  115. package/build/{bundled/importer → importer}/utils/getStringLengthOfChildren.d.ts +1 -1
  116. package/build/importer/utils/getStringLengthOfChildren.test.d.ts +1 -0
  117. package/build/importer/utils/stringSimilarity.test.d.ts +1 -0
  118. package/build/{bundled/importer → importer}/utils/template.d.ts +1 -1
  119. package/build/importer/utils/template.test.d.ts +1 -0
  120. package/build/{preact/importer → importer}/utils/themeUtils.d.ts +4 -1
  121. package/build/importer/utils/themeUtils.test.d.ts +1 -0
  122. package/build/importer/utils/utils.test.d.ts +1 -0
  123. package/build/index.d.ts +10 -0
  124. package/build/index.dev.d.ts +1 -0
  125. package/build/js.d.ts +57 -0
  126. package/build/preact/index.esm.js +6484 -3161
  127. package/build/preact/index.esm.js.map +1 -1
  128. package/build/preact/index.js +30 -29
  129. package/build/preact/index.js.map +1 -1
  130. package/build/react/index.esm.js +6489 -3163
  131. package/build/react/index.esm.js.map +1 -1
  132. package/build/react/index.js +30 -29
  133. package/build/react/index.js.map +1 -1
  134. package/build/services/api.d.ts +50 -0
  135. package/build/services/apiClient.d.ts +55 -0
  136. package/build/{bundled/settings → settings}/defaults.d.ts +1 -1
  137. package/build/shims/react-compat-shim.d.ts +43 -0
  138. package/build/shims/react-hooks-shim.d.ts +2 -0
  139. package/build/test/helpers.d.ts +28 -0
  140. package/build/test/mocks/api.d.ts +8 -0
  141. package/build/test/mocks/localStorage.d.ts +6 -0
  142. package/build/test/setup.d.ts +1 -0
  143. package/build/{bundled/types → types}/index.d.ts +8 -3
  144. package/build/{bundled/utils → utils}/cn.d.ts +1 -1
  145. package/build/utils/cn.test.d.ts +1 -0
  146. package/package.json +28 -7
  147. package/build/bundled/components/CSVImporter/index.d.ts +0 -5
  148. package/build/bundled/components/Modal/index.d.ts +0 -12
  149. package/build/bundled/importer/components/Box/index.d.ts +0 -2
  150. package/build/bundled/importer/components/Box/types/index.d.ts +0 -5
  151. package/build/bundled/importer/components/Checkbox/index.d.ts +0 -2
  152. package/build/bundled/importer/components/Checkbox/types/index.d.ts +0 -4
  153. package/build/bundled/importer/components/Input/types/index.d.ts +0 -18
  154. package/build/bundled/importer/components/Root/index.d.ts +0 -10
  155. package/build/bundled/importer/components/Stepper/hooks/useStepper.d.ts +0 -2
  156. package/build/bundled/importer/components/Stepper/index.d.ts +0 -2
  157. package/build/bundled/importer/components/ToggleFilter/index.d.ts +0 -3
  158. package/build/bundled/importer/components/Tooltip/types/index.d.ts +0 -11
  159. package/build/bundled/importer/components/UploaderWrapper/UploaderWrapper.d.ts +0 -2
  160. package/build/bundled/importer/components/VirtualTable/index.d.ts +0 -17
  161. package/build/bundled/importer/components/ui/alert.d.ts +0 -13
  162. package/build/bundled/importer/components/ui/card.d.ts +0 -19
  163. package/build/bundled/importer/components/ui/checkbox.d.ts +0 -7
  164. package/build/bundled/importer/components/ui/dialog.d.ts +0 -38
  165. package/build/bundled/importer/components/ui/flex.d.ts +0 -23
  166. package/build/bundled/importer/components/ui/input.d.ts +0 -6
  167. package/build/bundled/importer/components/ui/select.d.ts +0 -13
  168. package/build/bundled/importer/components/ui/switch.d.ts +0 -7
  169. package/build/bundled/importer/components/ui/toast.d.ts +0 -22
  170. package/build/bundled/importer/components/ui/toaster.d.ts +0 -1
  171. package/build/bundled/importer/components/ui/tooltip.d.ts +0 -24
  172. package/build/bundled/importer/components/ui/use-toast.d.ts +0 -46
  173. package/build/bundled/importer/features/complete/index.d.ts +0 -2
  174. package/build/bundled/importer/features/main/hooks/useStepNavigation.d.ts +0 -17
  175. package/build/bundled/importer/features/main/index.d.ts +0 -2
  176. package/build/bundled/importer/features/map-columns/index.d.ts +0 -2
  177. package/build/bundled/importer/features/row-selection/types/index.d.ts +0 -8
  178. package/build/bundled/importer/features/uploader/hooks/useTemplateTable.d.ts +0 -10
  179. package/build/bundled/importer/features/validation/Validation.d.ts +0 -2
  180. package/build/bundled/importer/providers/types/index.d.ts +0 -10
  181. package/build/bundled/importer/settings/theme/index.d.ts +0 -2
  182. package/build/bundled/importer/stores/theme.d.ts +0 -17
  183. package/build/bundled/importer/theme/runtime.d.ts +0 -62
  184. package/build/bundled/importer/utils/themeUtils.d.ts +0 -21
  185. package/build/bundled/index.d.ts +0 -5
  186. package/build/bundled/js.d.ts +0 -12
  187. package/build/preact/bundled-styles.d.ts +0 -1
  188. package/build/preact/components/CSVImporter/index.d.ts +0 -5
  189. package/build/preact/i18n/de.d.ts +0 -32
  190. package/build/preact/i18n/es.d.ts +0 -32
  191. package/build/preact/i18n/fr.d.ts +0 -32
  192. package/build/preact/i18n/i18n.d.ts +0 -6
  193. package/build/preact/i18n/it.d.ts +0 -32
  194. package/build/preact/i18n/useTranslation.d.ts +0 -9
  195. package/build/preact/importer/components/Box/index.d.ts +0 -2
  196. package/build/preact/importer/components/Checkbox/index.d.ts +0 -2
  197. package/build/preact/importer/components/Checkbox/types/index.d.ts +0 -4
  198. package/build/preact/importer/components/Errors/index.d.ts +0 -4
  199. package/build/preact/importer/components/Input/index.d.ts +0 -2
  200. package/build/preact/importer/components/Input/types/index.d.ts +0 -18
  201. package/build/preact/importer/components/Root/index.d.ts +0 -10
  202. package/build/preact/importer/components/StepLayout/index.d.ts +0 -18
  203. package/build/preact/importer/components/Stepper/hooks/useStepper.d.ts +0 -2
  204. package/build/preact/importer/components/Stepper/index.d.ts +0 -2
  205. package/build/preact/importer/components/Stepper/types/index.d.ts +0 -14
  206. package/build/preact/importer/components/Table/index.d.ts +0 -9
  207. package/build/preact/importer/components/Table/types/index.d.ts +0 -42
  208. package/build/preact/importer/components/ToggleFilter/index.d.ts +0 -3
  209. package/build/preact/importer/components/ToggleFilter/types/index.d.ts +0 -11
  210. package/build/preact/importer/components/Tooltip/index.d.ts +0 -2
  211. package/build/preact/importer/components/UploaderWrapper/NativeDropzone.d.ts +0 -11
  212. package/build/preact/importer/components/UploaderWrapper/UploaderWrapper.d.ts +0 -2
  213. package/build/preact/importer/components/UploaderWrapper/types/index.d.ts +0 -2
  214. package/build/preact/importer/components/ui/alert.d.ts +0 -13
  215. package/build/preact/importer/components/ui/button.d.ts +0 -12
  216. package/build/preact/importer/components/ui/card.d.ts +0 -19
  217. package/build/preact/importer/components/ui/checkbox.d.ts +0 -7
  218. package/build/preact/importer/components/ui/dialog.d.ts +0 -38
  219. package/build/preact/importer/components/ui/flex.d.ts +0 -23
  220. package/build/preact/importer/components/ui/input.d.ts +0 -6
  221. package/build/preact/importer/components/ui/select.d.ts +0 -13
  222. package/build/preact/importer/components/ui/switch.d.ts +0 -7
  223. package/build/preact/importer/components/ui/toast.d.ts +0 -22
  224. package/build/preact/importer/components/ui/toaster.d.ts +0 -1
  225. package/build/preact/importer/components/ui/tooltip.d.ts +0 -24
  226. package/build/preact/importer/features/complete/index.d.ts +0 -2
  227. package/build/preact/importer/features/complete/types/index.d.ts +0 -5
  228. package/build/preact/importer/features/configure-import/index.d.ts +0 -13
  229. package/build/preact/importer/features/configure-import/types/index.d.ts +0 -13
  230. package/build/preact/importer/features/main/hooks/useMutableLocalStorage.d.ts +0 -1
  231. package/build/preact/importer/features/main/index.d.ts +0 -2
  232. package/build/preact/importer/features/main/types/index.d.ts +0 -16
  233. package/build/preact/importer/features/map-columns/components/DropDownFields.d.ts +0 -21
  234. package/build/preact/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +0 -16
  235. package/build/preact/importer/features/map-columns/index.d.ts +0 -2
  236. package/build/preact/importer/features/map-columns/types/index.d.ts +0 -16
  237. package/build/preact/importer/features/row-selection/index.d.ts +0 -2
  238. package/build/preact/importer/features/uploader/hooks/useTemplateTable.d.ts +0 -10
  239. package/build/preact/importer/features/uploader/index.d.ts +0 -2
  240. package/build/preact/importer/features/uploader/types/index.d.ts +0 -9
  241. package/build/preact/importer/features/validation/Validation.d.ts +0 -2
  242. package/build/preact/importer/features/validation/components/TransformModal.d.ts +0 -18
  243. package/build/preact/importer/features/validation/components/TransformPanel.d.ts +0 -18
  244. package/build/preact/importer/features/validation/index.d.ts +0 -1
  245. package/build/preact/importer/features/validation/types.d.ts +0 -32
  246. package/build/preact/importer/hooks/useClickOutside.d.ts +0 -1
  247. package/build/preact/importer/hooks/useCustomStyles.d.ts +0 -1
  248. package/build/preact/importer/hooks/useEventListener.d.ts +0 -4
  249. package/build/preact/importer/hooks/useIsomorphicLayoutEffect.d.ts +0 -3
  250. package/build/preact/importer/hooks/useRect.d.ts +0 -12
  251. package/build/preact/importer/hooks/useWindowSize.d.ts +0 -1
  252. package/build/preact/importer/providers/Theme.d.ts +0 -10
  253. package/build/preact/importer/providers/index.d.ts +0 -5
  254. package/build/preact/importer/services/mapping.d.ts +0 -31
  255. package/build/preact/importer/services/transformation.d.ts +0 -70
  256. package/build/preact/importer/settings/theme/colors.d.ts +0 -4
  257. package/build/preact/importer/settings/theme/index.d.ts +0 -2
  258. package/build/preact/importer/settings/theme/sizes.d.ts +0 -7
  259. package/build/preact/importer/theme/index.d.ts +0 -8
  260. package/build/preact/importer/theme/presets.d.ts +0 -314
  261. package/build/preact/importer/theme/styles.d.ts +0 -120
  262. package/build/preact/importer/types/index.d.ts +0 -9
  263. package/build/preact/importer/utils/colorUtils.d.ts +0 -48
  264. package/build/preact/importer/utils/errorAnalysis.d.ts +0 -25
  265. package/build/preact/importer/utils/getStringLengthOfChildren.d.ts +0 -2
  266. package/build/preact/importer/utils/stringSimilarity.d.ts +0 -1
  267. package/build/preact/importer/utils/template.d.ts +0 -2
  268. package/build/preact/importer/utils/utils.d.ts +0 -19
  269. package/build/preact/index.d.ts +0 -5
  270. package/build/preact/js.d.ts +0 -12
  271. package/build/preact/settings/defaults.d.ts +0 -3
  272. package/build/preact/styles.d.ts +0 -1
  273. package/build/preact/types/index.d.ts +0 -132
  274. package/build/preact/types/theme.d.ts +0 -153
  275. package/build/preact/utils/cn.d.ts +0 -6
  276. package/build/preact/validation/transformationStages.d.ts +0 -26
  277. package/build/preact/validation/transformer.d.ts +0 -17
  278. package/build/preact/validation/validator.d.ts +0 -23
  279. /package/build/{bundled/bundled-styles.d.ts → bundled-styles.d.ts} +0 -0
  280. /package/build/{bundled/importer/services/api.d.ts → components/CSVImporter/index.test.d.ts} +0 -0
  281. /package/build/{preact/importer/services/api.d.ts → components/__tests__/CSVImporterHeadless.test.d.ts} +0 -0
  282. /package/build/{bundled/i18n → i18n}/de.d.ts +0 -0
  283. /package/build/{bundled/i18n → i18n}/es.d.ts +0 -0
  284. /package/build/{bundled/i18n → i18n}/fr.d.ts +0 -0
  285. /package/build/{bundled/i18n → i18n}/i18n.d.ts +0 -0
  286. /package/build/{bundled/i18n → i18n}/it.d.ts +0 -0
  287. /package/build/{bundled/i18n → i18n}/useTranslation.d.ts +0 -0
  288. /package/build/{bundled/importer → importer}/components/ToggleFilter/types/index.d.ts +0 -0
  289. /package/build/{bundled/importer → importer}/features/complete/types/index.d.ts +0 -0
  290. /package/build/{bundled/importer → importer}/features/configure-import/types/index.d.ts +0 -0
  291. /package/build/{bundled/importer → importer}/features/main/hooks/useMutableLocalStorage.d.ts +0 -0
  292. /package/build/{bundled/importer → importer}/features/main/types/index.d.ts +0 -0
  293. /package/build/{bundled/importer → importer}/features/validation/index.d.ts +0 -0
  294. /package/build/{bundled/importer → importer}/hooks/useClickOutside.d.ts +0 -0
  295. /package/build/{bundled/importer → importer}/hooks/useCustomStyles.d.ts +0 -0
  296. /package/build/{bundled/importer → importer}/hooks/useRect.d.ts +0 -0
  297. /package/build/{bundled/importer → importer}/hooks/useWindowSize.d.ts +0 -0
  298. /package/build/{bundled/importer → importer}/services/mapping.d.ts +0 -0
  299. /package/build/{bundled/importer → importer}/services/transformation.d.ts +0 -0
  300. /package/build/{bundled/importer → importer}/settings/theme/colors.d.ts +0 -0
  301. /package/build/{bundled/importer → importer}/settings/theme/sizes.d.ts +0 -0
  302. /package/build/{bundled/importer → importer}/theme/index.d.ts +0 -0
  303. /package/build/{bundled/importer → importer}/theme/presets.d.ts +0 -0
  304. /package/build/{bundled/importer → importer}/theme/styles.d.ts +0 -0
  305. /package/build/{bundled/importer → importer}/types/index.d.ts +0 -0
  306. /package/build/{bundled/importer → importer}/utils/colorUtils.d.ts +0 -0
  307. /package/build/{bundled/importer → importer}/utils/errorAnalysis.d.ts +0 -0
  308. /package/build/{bundled/importer → importer}/utils/stringSimilarity.d.ts +0 -0
  309. /package/build/{bundled/importer → importer}/utils/utils.d.ts +0 -0
  310. /package/build/{bundled/styles.d.ts → styles.d.ts} +0 -0
  311. /package/build/{bundled/types → types}/theme.d.ts +0 -0
  312. /package/build/{bundled/validation → validation}/transformationStages.d.ts +0 -0
  313. /package/build/{bundled/validation → validation}/transformer.d.ts +0 -0
  314. /package/build/{bundled/validation → validation}/validator.d.ts +0 -0
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,6 @@
1
- import { JSX } from 'preact';
2
- import { ThemeProps } from './types';
3
- import { ThemeConfig, presetThemes } from '../../types/theme';
1
+ import type { JSX } from 'preact';
2
+ import { ThemeProps } from "./types";
3
+ import { ThemeConfig, presetThemes } from "../../types/theme";
4
4
  export interface ThemeProviderProps extends ThemeProps {
5
5
  theme?: ThemeConfig | keyof typeof presetThemes;
6
6
  primaryColor?: string;
@@ -1,5 +1,5 @@
1
- import { ProvidersProps } from './types';
2
- import { ThemeProviderProps } from './Theme';
1
+ import { ProvidersProps } from "./types";
2
+ import { ThemeProviderProps } from "./Theme";
3
3
  export interface ProvidersWithThemeProps extends ProvidersProps, ThemeProviderProps {
4
4
  }
5
- export default function Providers({ children, theme, primaryColor, customStyles, targetElement }: ProvidersWithThemeProps): import("react/jsx-runtime").JSX.Element;
5
+ export default function Providers({ children, theme, primaryColor, customStyles, targetElement }: ProvidersWithThemeProps): import("preact").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ComponentChildren } from 'preact';
1
+ import type { ComponentChildren } from 'preact';
2
2
  export type ProvidersProps = {
3
3
  children: ComponentChildren;
4
4
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from "./colors";
2
+ export * from "./sizes";
@@ -3,15 +3,15 @@ type themeStoreType = {
3
3
  theme: Theme;
4
4
  setTheme: (theme?: Theme) => void;
5
5
  };
6
- declare const useThemeStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<themeStoreType>, "persist"> & {
6
+ declare const useThemeStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<themeStoreType>, "persist"> & {
7
7
  persist: {
8
- setOptions: (options: Partial<import('zustand/middleware').PersistOptions<themeStoreType, themeStoreType>>) => void;
8
+ setOptions: (options: Partial<import("zustand/middleware").PersistOptions<themeStoreType, themeStoreType>>) => void;
9
9
  clearStorage: () => void;
10
10
  rehydrate: () => void | Promise<void>;
11
11
  hasHydrated: () => boolean;
12
12
  onHydrate: (fn: (state: themeStoreType) => void) => () => void;
13
13
  onFinishHydration: (fn: (state: themeStoreType) => void) => () => void;
14
- getOptions: () => Partial<import('zustand/middleware').PersistOptions<themeStoreType, themeStoreType>>;
14
+ getOptions: () => Partial<import("zustand/middleware").PersistOptions<themeStoreType, themeStoreType>>;
15
15
  };
16
16
  }>;
17
17
  export default useThemeStore;
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Runtime theme utilities for dynamic styling
3
+ * Allows changing themes without re-rendering components
4
+ */
1
5
  import { styles } from './styles';
2
6
  export interface SimpleTheme {
3
7
  colors?: {
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1,2 @@
1
- import { ComponentChildren } from 'preact';
1
+ import type { ComponentChildren } from 'preact';
2
2
  export default function getStringLengthOfChildren(children: ComponentChildren): number;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1,2 @@
1
- import { Template } from '../types';
1
+ import { Template } from "../types";
2
2
  export declare function convertRawTemplate(rawTemplate?: Record<string, unknown> | string): [Template | null, string | null];
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,7 @@
1
- import { ThemeConfig } from '../../types/theme';
1
+ /**
2
+ * Theme utility functions for the CSV Importer
3
+ */
4
+ import { ThemeConfig } from "../../types/theme";
2
5
  /**
3
6
  * Deep merge two theme configurations
4
7
  */
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import "./index.css";
2
+ import CSVImporter from "./components/CSVImporter";
3
+ export { CSVImporter };
4
+ export default CSVImporter;
5
+ export { Uploader } from "./components/Uploader";
6
+ export { ColumnMapper } from "./components/ColumnMapper";
7
+ export * as CSV from "./headless";
8
+ export { importcsvStyles } from "./styles";
9
+ export type { Column, Validator, Transformer } from "./types";
10
+ export type { Column as HeadlessColumn, ValidationError, CSVContextValue, RootProps, ValidatorProps } from "./headless/types";
@@ -0,0 +1 @@
1
+ export {};
package/build/js.d.ts ADDED
@@ -0,0 +1,57 @@
1
+ import { CSVImporterProps } from "./types";
2
+ type CreateImporterProps = CSVImporterProps & {
3
+ domElement?: Element;
4
+ };
5
+ export declare function createCSVImporter(props: CreateImporterProps): {
6
+ instance: ((<TSchema = any>(props: {
7
+ schema?: import("zod").ZodType<TSchema, import("zod").ZodTypeDef, TSchema> | undefined;
8
+ columns?: import("./types").Column[] | undefined;
9
+ importerKey?: string | undefined;
10
+ onComplete?: ((data: TSchema[]) => void) | undefined;
11
+ backendUrl?: string | undefined;
12
+ user?: Record<string, any> | undefined;
13
+ metadata?: Record<string, any> | undefined;
14
+ theme?: "default" | "minimal" | "modern" | "compact" | "dark" | import("./types/theme").ThemeConfig | undefined;
15
+ darkMode?: boolean | undefined;
16
+ primaryColor?: string | undefined;
17
+ className?: string | undefined;
18
+ customStyles?: string | Record<string, string> | undefined;
19
+ classNames?: {
20
+ root?: string | undefined;
21
+ modal?: string | undefined;
22
+ header?: string | undefined;
23
+ stepper?: string | undefined;
24
+ content?: string | undefined;
25
+ footer?: string | undefined;
26
+ button?: string | undefined;
27
+ input?: string | undefined;
28
+ table?: string | undefined;
29
+ dropzone?: string | undefined;
30
+ } | undefined;
31
+ showDownloadTemplateButton?: boolean | undefined;
32
+ skipHeaderRowSelection?: boolean | undefined;
33
+ waitOnComplete?: boolean | undefined;
34
+ invalidRowHandling?: "include" | "exclude" | "block" | undefined;
35
+ includeUnmatchedColumns?: boolean | undefined;
36
+ language?: string | undefined;
37
+ customTranslations?: {
38
+ [language: string]: {
39
+ [key: string]: string;
40
+ };
41
+ } | undefined;
42
+ demoData?: {
43
+ fileName: string;
44
+ csvContent: string;
45
+ } | undefined;
46
+ } & {
47
+ isModal?: boolean | undefined;
48
+ modalIsOpen?: boolean | undefined;
49
+ modalOnCloseTriggered?: (() => void) | undefined;
50
+ modalCloseOnOutsideClick?: boolean | undefined;
51
+ } & {
52
+ ref?: any;
53
+ }) => import("preact").JSX.Element) & HTMLDialogElement) | null;
54
+ showModal: () => void;
55
+ closeModal: () => void;
56
+ };
57
+ export {};