@importcsv/react 0.2.7 → 0.2.9

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 (332) hide show
  1. package/build/react/index.esm.js +388 -386
  2. package/build/react/index.esm.js.map +1 -1
  3. package/build/react/index.js +23 -23
  4. package/build/react/index.js.map +1 -1
  5. package/package.json +4 -2
  6. package/build/App.d.ts +0 -2
  7. package/build/bundled/bundled-styles.d.ts +0 -1
  8. package/build/bundled/components/CSVImporter/index.d.ts +0 -5
  9. package/build/bundled/i18n/de.d.ts +0 -32
  10. package/build/bundled/i18n/es.d.ts +0 -32
  11. package/build/bundled/i18n/fr.d.ts +0 -32
  12. package/build/bundled/i18n/i18n.d.ts +0 -6
  13. package/build/bundled/i18n/it.d.ts +0 -32
  14. package/build/bundled/i18n/useTranslation.d.ts +0 -9
  15. package/build/bundled/importer/components/Box/index.d.ts +0 -2
  16. package/build/bundled/importer/components/Box/types/index.d.ts +0 -5
  17. package/build/bundled/importer/components/Checkbox/index.d.ts +0 -2
  18. package/build/bundled/importer/components/Checkbox/types/index.d.ts +0 -4
  19. package/build/bundled/importer/components/Errors/index.d.ts +0 -4
  20. package/build/bundled/importer/components/Input/index.d.ts +0 -2
  21. package/build/bundled/importer/components/Input/types/index.d.ts +0 -18
  22. package/build/bundled/importer/components/Root/index.d.ts +0 -10
  23. package/build/bundled/importer/components/StepLayout/index.d.ts +0 -18
  24. package/build/bundled/importer/components/Stepper/hooks/useStepper.d.ts +0 -2
  25. package/build/bundled/importer/components/Stepper/index.d.ts +0 -2
  26. package/build/bundled/importer/components/Stepper/types/index.d.ts +0 -14
  27. package/build/bundled/importer/components/Table/index.d.ts +0 -9
  28. package/build/bundled/importer/components/ToggleFilter/index.d.ts +0 -3
  29. package/build/bundled/importer/components/ToggleFilter/types/index.d.ts +0 -11
  30. package/build/bundled/importer/components/Tooltip/index.d.ts +0 -2
  31. package/build/bundled/importer/components/Tooltip/types/index.d.ts +0 -11
  32. package/build/bundled/importer/components/UploaderWrapper/NativeDropzone.d.ts +0 -11
  33. package/build/bundled/importer/components/UploaderWrapper/UploaderWrapper.d.ts +0 -2
  34. package/build/bundled/importer/components/UploaderWrapper/types/index.d.ts +0 -2
  35. package/build/bundled/importer/components/VirtualTable/index.d.ts +0 -17
  36. package/build/bundled/importer/components/ui/alert.d.ts +0 -10
  37. package/build/bundled/importer/components/ui/button.d.ts +0 -12
  38. package/build/bundled/importer/components/ui/card.d.ts +0 -19
  39. package/build/bundled/importer/components/ui/checkbox.d.ts +0 -7
  40. package/build/bundled/importer/components/ui/dialog.d.ts +0 -38
  41. package/build/bundled/importer/components/ui/flex.d.ts +0 -23
  42. package/build/bundled/importer/components/ui/input.d.ts +0 -6
  43. package/build/bundled/importer/components/ui/select.d.ts +0 -13
  44. package/build/bundled/importer/components/ui/switch.d.ts +0 -7
  45. package/build/bundled/importer/components/ui/toast.d.ts +0 -22
  46. package/build/bundled/importer/components/ui/toaster.d.ts +0 -1
  47. package/build/bundled/importer/components/ui/tooltip.d.ts +0 -20
  48. package/build/bundled/importer/components/ui/use-toast.d.ts +0 -46
  49. package/build/bundled/importer/features/complete/index.d.ts +0 -2
  50. package/build/bundled/importer/features/complete/types/index.d.ts +0 -5
  51. package/build/bundled/importer/features/configure-import/index.d.ts +0 -13
  52. package/build/bundled/importer/features/configure-import/types/index.d.ts +0 -13
  53. package/build/bundled/importer/features/main/hooks/useMutableLocalStorage.d.ts +0 -1
  54. package/build/bundled/importer/features/main/hooks/useStepNavigation.d.ts +0 -17
  55. package/build/bundled/importer/features/main/index.d.ts +0 -2
  56. package/build/bundled/importer/features/main/types/index.d.ts +0 -16
  57. package/build/bundled/importer/features/map-columns/components/DropDownFields.d.ts +0 -21
  58. package/build/bundled/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +0 -16
  59. package/build/bundled/importer/features/map-columns/index.d.ts +0 -2
  60. package/build/bundled/importer/features/map-columns/types/index.d.ts +0 -16
  61. package/build/bundled/importer/features/row-selection/index.d.ts +0 -2
  62. package/build/bundled/importer/features/row-selection/types/index.d.ts +0 -8
  63. package/build/bundled/importer/features/uploader/hooks/useTemplateTable.d.ts +0 -10
  64. package/build/bundled/importer/features/uploader/index.d.ts +0 -2
  65. package/build/bundled/importer/features/uploader/types/index.d.ts +0 -9
  66. package/build/bundled/importer/features/validation/Validation.d.ts +0 -2
  67. package/build/bundled/importer/features/validation/components/TransformModal.d.ts +0 -18
  68. package/build/bundled/importer/features/validation/components/TransformPanel.d.ts +0 -18
  69. package/build/bundled/importer/features/validation/index.d.ts +0 -1
  70. package/build/bundled/importer/features/validation/types.d.ts +0 -32
  71. package/build/bundled/importer/hooks/useClickOutside.d.ts +0 -1
  72. package/build/bundled/importer/hooks/useCustomStyles.d.ts +0 -1
  73. package/build/bundled/importer/hooks/useEventListener.d.ts +0 -4
  74. package/build/bundled/importer/hooks/useIsomorphicLayoutEffect.d.ts +0 -3
  75. package/build/bundled/importer/hooks/useRect.d.ts +0 -12
  76. package/build/bundled/importer/hooks/useWindowSize.d.ts +0 -1
  77. package/build/bundled/importer/providers/Theme.d.ts +0 -10
  78. package/build/bundled/importer/providers/index.d.ts +0 -5
  79. package/build/bundled/importer/providers/types/index.d.ts +0 -10
  80. package/build/bundled/importer/services/api.d.ts +0 -1
  81. package/build/bundled/importer/services/mapping.d.ts +0 -31
  82. package/build/bundled/importer/services/transformation.d.ts +0 -70
  83. package/build/bundled/importer/settings/theme/colors.d.ts +0 -4
  84. package/build/bundled/importer/settings/theme/index.d.ts +0 -2
  85. package/build/bundled/importer/settings/theme/sizes.d.ts +0 -7
  86. package/build/bundled/importer/stores/theme.d.ts +0 -17
  87. package/build/bundled/importer/theme/index.d.ts +0 -8
  88. package/build/bundled/importer/theme/presets.d.ts +0 -314
  89. package/build/bundled/importer/theme/runtime.d.ts +0 -62
  90. package/build/bundled/importer/theme/styles.d.ts +0 -120
  91. package/build/bundled/importer/types/index.d.ts +0 -9
  92. package/build/bundled/importer/utils/colorUtils.d.ts +0 -48
  93. package/build/bundled/importer/utils/errorAnalysis.d.ts +0 -25
  94. package/build/bundled/importer/utils/getStringLengthOfChildren.d.ts +0 -2
  95. package/build/bundled/importer/utils/stringSimilarity.d.ts +0 -1
  96. package/build/bundled/importer/utils/template.d.ts +0 -2
  97. package/build/bundled/importer/utils/themeUtils.d.ts +0 -21
  98. package/build/bundled/importer/utils/utils.d.ts +0 -19
  99. package/build/bundled/index.d.ts +0 -4
  100. package/build/bundled/index.esm.js +0 -8189
  101. package/build/bundled/index.esm.js.map +0 -1
  102. package/build/bundled/index.js +0 -112
  103. package/build/bundled/index.js.map +0 -1
  104. package/build/bundled/index.umd.js +0 -112
  105. package/build/bundled/index.umd.js.map +0 -1
  106. package/build/bundled/js.d.ts +0 -12
  107. package/build/bundled/settings/defaults.d.ts +0 -3
  108. package/build/bundled/styles.d.ts +0 -1
  109. package/build/bundled/types/index.d.ts +0 -132
  110. package/build/bundled/types/theme.d.ts +0 -153
  111. package/build/bundled/utils/cn.d.ts +0 -6
  112. package/build/bundled/utils/injectStyles.d.ts +0 -14
  113. package/build/bundled/validation/transformationStages.d.ts +0 -26
  114. package/build/bundled/validation/transformer.d.ts +0 -17
  115. package/build/bundled/validation/validator.d.ts +0 -23
  116. package/build/bundled-styles.d.ts +0 -1
  117. package/build/components/CSVImporter/index.d.ts +0 -9
  118. package/build/components/Modal/index.d.ts +0 -12
  119. package/build/config/index.d.ts +0 -5
  120. package/build/i18n/de.d.ts +0 -32
  121. package/build/i18n/es.d.ts +0 -32
  122. package/build/i18n/fr.d.ts +0 -32
  123. package/build/i18n/i18n.d.ts +0 -6
  124. package/build/i18n/it.d.ts +0 -32
  125. package/build/i18n/useTranslation.d.ts +0 -9
  126. package/build/importer/components/Box/index.d.ts +0 -2
  127. package/build/importer/components/Box/types/index.d.ts +0 -5
  128. package/build/importer/components/Checkbox/index.d.ts +0 -2
  129. package/build/importer/components/Checkbox/types/index.d.ts +0 -4
  130. package/build/importer/components/Errors/index.d.ts +0 -4
  131. package/build/importer/components/Input/index.d.ts +0 -2
  132. package/build/importer/components/Input/types/index.d.ts +0 -18
  133. package/build/importer/components/Root/index.d.ts +0 -10
  134. package/build/importer/components/StepLayout/index.d.ts +0 -18
  135. package/build/importer/components/Stepper/hooks/useStepper.d.ts +0 -2
  136. package/build/importer/components/Stepper/index.d.ts +0 -2
  137. package/build/importer/components/Stepper/types/index.d.ts +0 -14
  138. package/build/importer/components/Table/index.d.ts +0 -9
  139. package/build/importer/components/ToggleFilter/index.d.ts +0 -3
  140. package/build/importer/components/ToggleFilter/types/index.d.ts +0 -11
  141. package/build/importer/components/Tooltip/index.d.ts +0 -2
  142. package/build/importer/components/Tooltip/types/index.d.ts +0 -11
  143. package/build/importer/components/UploaderWrapper/NativeDropzone.d.ts +0 -11
  144. package/build/importer/components/UploaderWrapper/UploaderWrapper.d.ts +0 -2
  145. package/build/importer/components/UploaderWrapper/types/index.d.ts +0 -2
  146. package/build/importer/components/VirtualTable/index.d.ts +0 -17
  147. package/build/importer/components/ui/alert.d.ts +0 -10
  148. package/build/importer/components/ui/button.d.ts +0 -12
  149. package/build/importer/components/ui/card.d.ts +0 -19
  150. package/build/importer/components/ui/checkbox.d.ts +0 -7
  151. package/build/importer/components/ui/dialog.d.ts +0 -39
  152. package/build/importer/components/ui/flex.d.ts +0 -23
  153. package/build/importer/components/ui/input.d.ts +0 -6
  154. package/build/importer/components/ui/select.d.ts +0 -13
  155. package/build/importer/components/ui/switch.d.ts +0 -7
  156. package/build/importer/components/ui/toast.d.ts +0 -23
  157. package/build/importer/components/ui/toaster.d.ts +0 -1
  158. package/build/importer/components/ui/tooltip.d.ts +0 -20
  159. package/build/importer/components/ui/use-toast.d.ts +0 -46
  160. package/build/importer/features/complete/index.d.ts +0 -2
  161. package/build/importer/features/complete/types/index.d.ts +0 -5
  162. package/build/importer/features/configure-import/index.d.ts +0 -13
  163. package/build/importer/features/configure-import/types/index.d.ts +0 -13
  164. package/build/importer/features/main/hooks/useMutableLocalStorage.d.ts +0 -1
  165. package/build/importer/features/main/hooks/useStepNavigation.d.ts +0 -17
  166. package/build/importer/features/main/index.d.ts +0 -2
  167. package/build/importer/features/main/types/index.d.ts +0 -16
  168. package/build/importer/features/map-columns/components/DropDownFields.d.ts +0 -21
  169. package/build/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +0 -16
  170. package/build/importer/features/map-columns/index.d.ts +0 -2
  171. package/build/importer/features/map-columns/types/index.d.ts +0 -16
  172. package/build/importer/features/row-selection/index.d.ts +0 -2
  173. package/build/importer/features/row-selection/types/index.d.ts +0 -8
  174. package/build/importer/features/uploader/hooks/useTemplateTable.d.ts +0 -10
  175. package/build/importer/features/uploader/index.d.ts +0 -2
  176. package/build/importer/features/uploader/types/index.d.ts +0 -9
  177. package/build/importer/features/validation/Validation.d.ts +0 -2
  178. package/build/importer/features/validation/components/TransformModal.d.ts +0 -18
  179. package/build/importer/features/validation/components/TransformPanel.d.ts +0 -18
  180. package/build/importer/features/validation/index.d.ts +0 -1
  181. package/build/importer/features/validation/types.d.ts +0 -32
  182. package/build/importer/hooks/useClickOutside.d.ts +0 -1
  183. package/build/importer/hooks/useCustomStyles.d.ts +0 -1
  184. package/build/importer/hooks/useEventListener.d.ts +0 -4
  185. package/build/importer/hooks/useIsomorphicLayoutEffect.d.ts +0 -3
  186. package/build/importer/hooks/useRect.d.ts +0 -12
  187. package/build/importer/hooks/useWindowSize.d.ts +0 -1
  188. package/build/importer/providers/Theme.d.ts +0 -10
  189. package/build/importer/providers/index.d.ts +0 -5
  190. package/build/importer/providers/types/index.d.ts +0 -10
  191. package/build/importer/services/api.d.ts +0 -1
  192. package/build/importer/services/mapping.d.ts +0 -31
  193. package/build/importer/services/transformation.d.ts +0 -70
  194. package/build/importer/settings/theme/colors.d.ts +0 -4
  195. package/build/importer/settings/theme/index.d.ts +0 -2
  196. package/build/importer/settings/theme/sizes.d.ts +0 -7
  197. package/build/importer/stores/theme.d.ts +0 -17
  198. package/build/importer/theme/index.d.ts +0 -8
  199. package/build/importer/theme/presets.d.ts +0 -314
  200. package/build/importer/theme/runtime.d.ts +0 -66
  201. package/build/importer/theme/styles.d.ts +0 -120
  202. package/build/importer/types/index.d.ts +0 -9
  203. package/build/importer/utils/colorUtils.d.ts +0 -48
  204. package/build/importer/utils/errorAnalysis.d.ts +0 -25
  205. package/build/importer/utils/getStringLengthOfChildren.d.ts +0 -2
  206. package/build/importer/utils/stringSimilarity.d.ts +0 -1
  207. package/build/importer/utils/template.d.ts +0 -2
  208. package/build/importer/utils/themeUtils.d.ts +0 -24
  209. package/build/importer/utils/utils.d.ts +0 -19
  210. package/build/index.d.ts +0 -6
  211. package/build/index.dev.d.ts +0 -1
  212. package/build/js.d.ts +0 -12
  213. package/build/preact/bundled-styles.d.ts +0 -1
  214. package/build/preact/components/CSVImporter/index.d.ts +0 -5
  215. package/build/preact/components/Modal/index.d.ts +0 -12
  216. package/build/preact/i18n/de.d.ts +0 -32
  217. package/build/preact/i18n/es.d.ts +0 -32
  218. package/build/preact/i18n/fr.d.ts +0 -32
  219. package/build/preact/i18n/i18n.d.ts +0 -6
  220. package/build/preact/i18n/it.d.ts +0 -32
  221. package/build/preact/i18n/useTranslation.d.ts +0 -9
  222. package/build/preact/importer/components/Box/index.d.ts +0 -2
  223. package/build/preact/importer/components/Box/types/index.d.ts +0 -5
  224. package/build/preact/importer/components/Checkbox/index.d.ts +0 -2
  225. package/build/preact/importer/components/Checkbox/types/index.d.ts +0 -4
  226. package/build/preact/importer/components/Errors/index.d.ts +0 -4
  227. package/build/preact/importer/components/Input/index.d.ts +0 -2
  228. package/build/preact/importer/components/Input/types/index.d.ts +0 -18
  229. package/build/preact/importer/components/Root/index.d.ts +0 -10
  230. package/build/preact/importer/components/StepLayout/index.d.ts +0 -18
  231. package/build/preact/importer/components/Stepper/hooks/useStepper.d.ts +0 -2
  232. package/build/preact/importer/components/Stepper/index.d.ts +0 -2
  233. package/build/preact/importer/components/Stepper/types/index.d.ts +0 -14
  234. package/build/preact/importer/components/Table/index.d.ts +0 -9
  235. package/build/preact/importer/components/Table/types/index.d.ts +0 -42
  236. package/build/preact/importer/components/ToggleFilter/index.d.ts +0 -3
  237. package/build/preact/importer/components/ToggleFilter/types/index.d.ts +0 -11
  238. package/build/preact/importer/components/Tooltip/index.d.ts +0 -2
  239. package/build/preact/importer/components/Tooltip/types/index.d.ts +0 -11
  240. package/build/preact/importer/components/UploaderWrapper/NativeDropzone.d.ts +0 -11
  241. package/build/preact/importer/components/UploaderWrapper/UploaderWrapper.d.ts +0 -2
  242. package/build/preact/importer/components/UploaderWrapper/types/index.d.ts +0 -2
  243. package/build/preact/importer/components/VirtualTable/index.d.ts +0 -17
  244. package/build/preact/importer/components/ui/alert.d.ts +0 -13
  245. package/build/preact/importer/components/ui/button.d.ts +0 -12
  246. package/build/preact/importer/components/ui/card.d.ts +0 -19
  247. package/build/preact/importer/components/ui/checkbox.d.ts +0 -7
  248. package/build/preact/importer/components/ui/dialog.d.ts +0 -38
  249. package/build/preact/importer/components/ui/flex.d.ts +0 -23
  250. package/build/preact/importer/components/ui/input.d.ts +0 -6
  251. package/build/preact/importer/components/ui/select.d.ts +0 -13
  252. package/build/preact/importer/components/ui/switch.d.ts +0 -7
  253. package/build/preact/importer/components/ui/toast.d.ts +0 -22
  254. package/build/preact/importer/components/ui/toaster.d.ts +0 -1
  255. package/build/preact/importer/components/ui/tooltip.d.ts +0 -24
  256. package/build/preact/importer/components/ui/use-toast.d.ts +0 -46
  257. package/build/preact/importer/features/complete/index.d.ts +0 -2
  258. package/build/preact/importer/features/complete/types/index.d.ts +0 -5
  259. package/build/preact/importer/features/configure-import/index.d.ts +0 -13
  260. package/build/preact/importer/features/configure-import/types/index.d.ts +0 -13
  261. package/build/preact/importer/features/main/hooks/useMutableLocalStorage.d.ts +0 -1
  262. package/build/preact/importer/features/main/hooks/useStepNavigation.d.ts +0 -17
  263. package/build/preact/importer/features/main/index.d.ts +0 -2
  264. package/build/preact/importer/features/main/types/index.d.ts +0 -16
  265. package/build/preact/importer/features/map-columns/components/DropDownFields.d.ts +0 -21
  266. package/build/preact/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +0 -16
  267. package/build/preact/importer/features/map-columns/index.d.ts +0 -2
  268. package/build/preact/importer/features/map-columns/types/index.d.ts +0 -16
  269. package/build/preact/importer/features/row-selection/index.d.ts +0 -2
  270. package/build/preact/importer/features/row-selection/types/index.d.ts +0 -8
  271. package/build/preact/importer/features/uploader/hooks/useTemplateTable.d.ts +0 -10
  272. package/build/preact/importer/features/uploader/index.d.ts +0 -2
  273. package/build/preact/importer/features/uploader/types/index.d.ts +0 -9
  274. package/build/preact/importer/features/validation/Validation.d.ts +0 -2
  275. package/build/preact/importer/features/validation/components/TransformModal.d.ts +0 -18
  276. package/build/preact/importer/features/validation/components/TransformPanel.d.ts +0 -18
  277. package/build/preact/importer/features/validation/index.d.ts +0 -1
  278. package/build/preact/importer/features/validation/types.d.ts +0 -32
  279. package/build/preact/importer/hooks/useClickOutside.d.ts +0 -1
  280. package/build/preact/importer/hooks/useCustomStyles.d.ts +0 -1
  281. package/build/preact/importer/hooks/useEventListener.d.ts +0 -4
  282. package/build/preact/importer/hooks/useIsomorphicLayoutEffect.d.ts +0 -3
  283. package/build/preact/importer/hooks/useRect.d.ts +0 -12
  284. package/build/preact/importer/hooks/useWindowSize.d.ts +0 -1
  285. package/build/preact/importer/providers/Theme.d.ts +0 -10
  286. package/build/preact/importer/providers/index.d.ts +0 -5
  287. package/build/preact/importer/providers/types/index.d.ts +0 -10
  288. package/build/preact/importer/services/api.d.ts +0 -1
  289. package/build/preact/importer/services/mapping.d.ts +0 -31
  290. package/build/preact/importer/services/transformation.d.ts +0 -70
  291. package/build/preact/importer/settings/theme/colors.d.ts +0 -4
  292. package/build/preact/importer/settings/theme/index.d.ts +0 -2
  293. package/build/preact/importer/settings/theme/sizes.d.ts +0 -7
  294. package/build/preact/importer/stores/theme.d.ts +0 -17
  295. package/build/preact/importer/theme/index.d.ts +0 -8
  296. package/build/preact/importer/theme/presets.d.ts +0 -314
  297. package/build/preact/importer/theme/runtime.d.ts +0 -62
  298. package/build/preact/importer/theme/styles.d.ts +0 -120
  299. package/build/preact/importer/types/index.d.ts +0 -9
  300. package/build/preact/importer/utils/colorUtils.d.ts +0 -48
  301. package/build/preact/importer/utils/errorAnalysis.d.ts +0 -25
  302. package/build/preact/importer/utils/getStringLengthOfChildren.d.ts +0 -2
  303. package/build/preact/importer/utils/stringSimilarity.d.ts +0 -1
  304. package/build/preact/importer/utils/template.d.ts +0 -2
  305. package/build/preact/importer/utils/themeUtils.d.ts +0 -21
  306. package/build/preact/importer/utils/utils.d.ts +0 -19
  307. package/build/preact/index.d.ts +0 -5
  308. package/build/preact/index.esm.js +0 -7541
  309. package/build/preact/index.esm.js.map +0 -1
  310. package/build/preact/index.js +0 -112
  311. package/build/preact/index.js.map +0 -1
  312. package/build/preact/js.d.ts +0 -12
  313. package/build/preact/settings/defaults.d.ts +0 -3
  314. package/build/preact/styles.d.ts +0 -1
  315. package/build/preact/types/index.d.ts +0 -132
  316. package/build/preact/types/theme.d.ts +0 -153
  317. package/build/preact/utils/cn.d.ts +0 -6
  318. package/build/preact/validation/transformationStages.d.ts +0 -26
  319. package/build/preact/validation/transformer.d.ts +0 -17
  320. package/build/preact/validation/validator.d.ts +0 -23
  321. package/build/services/api.d.ts +0 -50
  322. package/build/services/apiClient.d.ts +0 -55
  323. package/build/settings/defaults.d.ts +0 -3
  324. package/build/shims/react-compat-shim.d.ts +0 -2
  325. package/build/shims/react-hooks-shim.d.ts +0 -2
  326. package/build/styles.d.ts +0 -1
  327. package/build/types/index.d.ts +0 -132
  328. package/build/types/theme.d.ts +0 -153
  329. package/build/utils/cn.d.ts +0 -6
  330. package/build/validation/transformationStages.d.ts +0 -26
  331. package/build/validation/transformer.d.ts +0 -17
  332. package/build/validation/validator.d.ts +0 -23
@@ -1,2 +0,0 @@
1
- import { RowSelectionProps } from './types';
2
- export default function RowSelection({ data, onSuccess, onCancel, selectedHeaderRow, setSelectedHeaderRow }: RowSelectionProps): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { FileData } from '../../main/types';
2
- export type RowSelectionProps = {
3
- data: FileData;
4
- onSuccess: () => void;
5
- onCancel: () => void;
6
- selectedHeaderRow: number | null;
7
- setSelectedHeaderRow: (id: number) => void;
8
- };
@@ -1,10 +0,0 @@
1
- import { Column } from '../../../../types';
2
- export default function useTemplateTable(fields?: Column[]): {
3
- [x: string]: string | {
4
- raw: string;
5
- content: import("react/jsx-runtime").JSX.Element;
6
- } | {
7
- raw: number;
8
- content: import("react/jsx-runtime").JSX.Element;
9
- };
10
- }[];
@@ -1,2 +0,0 @@
1
- import { UploaderProps } from './types';
2
- export default function Uploader({ columns, skipHeaderRowSelection, onSuccess, showDownloadTemplateButton, setDataError }: UploaderProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- import { Column } from '../../../../types';
2
- import { Dispatch, SetStateAction } from 'preact/hooks';
3
- export type UploaderProps = {
4
- columns?: Column[];
5
- skipHeaderRowSelection: boolean;
6
- onSuccess: (file: File) => void;
7
- showDownloadTemplateButton?: boolean;
8
- setDataError: Dispatch<SetStateAction<string | null>>;
9
- };
@@ -1,2 +0,0 @@
1
- import { ValidationProps } from './types';
2
- export default function Validation({ columns, data: fileData, columnMapping, selectedHeaderRow, onSuccess, onCancel, isSubmitting, backendUrl, importerKey, filterInvalidRows, disableOnInvalidRows, }: ValidationProps): import("react/jsx-runtime").JSX.Element;
@@ -1,18 +0,0 @@
1
- import { TransformationChange } from '../../../services/transformation';
2
- interface TransformModalProps {
3
- isOpen: boolean;
4
- onClose: () => void;
5
- data: any[];
6
- columnMapping: Record<string, any>;
7
- backendUrl: string;
8
- importerKey: string;
9
- validationErrors?: Array<{
10
- rowIndex: number;
11
- columnKey: string;
12
- message: string;
13
- value?: any;
14
- }>;
15
- onApplyTransformations: (changes: TransformationChange[]) => void;
16
- }
17
- export default function TransformModal({ isOpen, onClose, data, columnMapping, backendUrl, importerKey, validationErrors, onApplyTransformations }: TransformModalProps): import("react/jsx-runtime").JSX.Element;
18
- export {};
@@ -1,18 +0,0 @@
1
- import { TransformationChange } from '../../../services/transformation';
2
- interface TransformPanelProps {
3
- isOpen: boolean;
4
- onClose: () => void;
5
- data: any[];
6
- columnMapping: Record<string, any>;
7
- backendUrl: string;
8
- importerKey: string;
9
- validationErrors?: Array<{
10
- rowIndex: number;
11
- columnKey: string;
12
- message: string;
13
- value?: any;
14
- }>;
15
- onApplyTransformations: (changes: TransformationChange[]) => void;
16
- }
17
- export default function TransformPanel({ isOpen, onClose, data, columnMapping, backendUrl, importerKey, validationErrors, onApplyTransformations }: TransformPanelProps): import("react/jsx-runtime").JSX.Element | null;
18
- export {};
@@ -1 +0,0 @@
1
- export { default } from './Validation';
@@ -1,32 +0,0 @@
1
- import { FileData } from '../main/types';
2
- import { TemplateColumnMapping } from '../map-columns/types';
3
- import { Column } from '../../../types';
4
- export interface ValidationError {
5
- rowIndex: number;
6
- columnIndex: number;
7
- message: string;
8
- value: string | number;
9
- }
10
- export interface ValidationProps {
11
- columns?: Column[];
12
- data: FileData;
13
- columnMapping: {
14
- [index: number]: TemplateColumnMapping;
15
- };
16
- selectedHeaderRow: number | null;
17
- onSuccess: (validData: any) => void;
18
- onCancel: () => void;
19
- isSubmitting: boolean;
20
- backendUrl?: string;
21
- importerKey?: string;
22
- filterInvalidRows?: boolean;
23
- disableOnInvalidRows?: boolean;
24
- }
25
- export interface ValidationState {
26
- errors: ValidationError[];
27
- editedValues: {
28
- [rowIndex: number]: {
29
- [columnIndex: number]: string | number;
30
- };
31
- };
32
- }
@@ -1 +0,0 @@
1
- export default function useClickOutside(ref: any | null, callback: (...args: any[]) => any): void;
@@ -1 +0,0 @@
1
- export default function useCustomStyles(customStyles?: string, targetElement?: HTMLElement | null): void;
@@ -1,4 +0,0 @@
1
- import { RefObject } from 'preact/hooks';
2
- declare function useEventListener<K extends keyof WindowEventMap>(eventName: K, handler: (event: WindowEventMap[K]) => void): void;
3
- declare function useEventListener<K extends keyof HTMLElementEventMap, T extends HTMLElement = HTMLDivElement>(eventName: K, handler: (event: HTMLElementEventMap[K]) => void, element: RefObject<T>): void;
4
- export default useEventListener;
@@ -1,3 +0,0 @@
1
- import { useEffect } from 'preact/hooks';
2
- declare const useIsomorphicLayoutEffect: typeof useEffect;
3
- export default useIsomorphicLayoutEffect;
@@ -1,12 +0,0 @@
1
- type Size = {
2
- x: number;
3
- y: number;
4
- width: number;
5
- height: number;
6
- top: number;
7
- right: number;
8
- bottom: number;
9
- left: number;
10
- };
11
- declare function useRect<T extends HTMLElement = HTMLDivElement>(): [(node: T | null) => void, Size, Function];
12
- export default useRect;
@@ -1 +0,0 @@
1
- export default function useWindowSize(): number[];
@@ -1,10 +0,0 @@
1
- import { JSX } from 'preact';
2
- import { ThemeProps } from './types';
3
- import { ThemeConfig, presetThemes } from '../../types/theme';
4
- export interface ThemeProviderProps extends ThemeProps {
5
- theme?: ThemeConfig | keyof typeof presetThemes;
6
- primaryColor?: string;
7
- customStyles?: Record<string, string> | string;
8
- targetElement?: HTMLElement;
9
- }
10
- export default function ThemeProvider({ children, theme, primaryColor, customStyles, targetElement }: ThemeProviderProps): JSX.Element;
@@ -1,5 +0,0 @@
1
- import { ProvidersProps } from './types';
2
- import { ThemeProviderProps } from './Theme';
3
- export interface ProvidersWithThemeProps extends ProvidersProps, ThemeProviderProps {
4
- }
5
- export default function Providers({ children, theme, primaryColor, customStyles, targetElement }: ProvidersWithThemeProps): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- import { ComponentChildren } from 'preact';
2
- export type ProvidersProps = {
3
- children: ComponentChildren;
4
- };
5
- export type QueriesProps = {
6
- children: ComponentChildren;
7
- };
8
- export type ThemeProps = {
9
- children: ComponentChildren;
10
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,31 +0,0 @@
1
- /**
2
- * Column mapping service with optional LLM enhancement
3
- */
4
- export interface MappingSuggestion {
5
- uploadIndex: number;
6
- templateKey: string;
7
- confidence: number;
8
- }
9
- /**
10
- * Get enhanced column mapping suggestions from the backend
11
- *
12
- * @param uploadColumns - Array of upload columns with name and sample_data
13
- * @param templateColumns - Array of Column objects with id, label, and validators
14
- * @param backendUrl - Backend API URL
15
- * @param importerKey - Importer key for authentication
16
- * @returns Array of mapping suggestions or empty array on error
17
- */
18
- export declare function getMappingSuggestions(uploadColumns: any[], templateColumns: any[], backendUrl?: string, importerKey?: string): Promise<MappingSuggestion[]>;
19
- /**
20
- * Apply mapping suggestions to the current state
21
- * Only applies high-confidence suggestions that don't conflict
22
- *
23
- * @param suggestions - Array of mapping suggestions
24
- * @param currentValues - Current mapping values
25
- * @param usedTemplateKeys - Set of already used template keys
26
- * @param handleTemplateChange - Function to update a column mapping
27
- * @returns Number of mappings applied
28
- */
29
- export declare function applyMappingSuggestions(suggestions: MappingSuggestion[], currentValues: {
30
- [key: number]: any;
31
- }, usedTemplateKeys: Set<string>, handleTemplateChange: (uploadIndex: number, templateKey: string) => void): number;
@@ -1,70 +0,0 @@
1
- /**
2
- * Natural language data transformation service
3
- */
4
- export interface TransformationChange {
5
- rowIndex: number;
6
- columnKey: string;
7
- columnIndex?: number;
8
- oldValue: any;
9
- newValue: any;
10
- confidence: number;
11
- selected: boolean;
12
- }
13
- export interface TransformationResponse {
14
- success: boolean;
15
- changes: TransformationChange[];
16
- summary: string;
17
- error?: string;
18
- tokensUsed?: number;
19
- }
20
- export interface ValidationError {
21
- rowIndex: number;
22
- columnKey: string;
23
- message: string;
24
- value?: any;
25
- }
26
- export interface TransformationRequest {
27
- prompt: string;
28
- data: any[];
29
- columnMapping: Record<string, any>;
30
- targetColumns?: string[];
31
- validationErrors?: ValidationError[];
32
- }
33
- /**
34
- * Generate data transformations based on natural language prompt
35
- *
36
- * @param prompt - Natural language description of the transformation
37
- * @param data - Current data rows
38
- * @param columnMapping - Mapping of columns
39
- * @param backendUrl - Backend API URL
40
- * @param importerKey - Importer key for authentication
41
- * @param targetColumns - Optional specific columns to transform
42
- * @param validationErrors - Optional validation errors for context
43
- * @returns Transformation preview with changes
44
- */
45
- export declare function generateTransformations(prompt: string, data: any[], columnMapping: Record<string, any>, backendUrl: string, importerKey: string, targetColumns?: string[], validationErrors?: ValidationError[]): Promise<TransformationResponse>;
46
- /**
47
- * Apply selected transformations to the data
48
- *
49
- * @param data - Original data rows
50
- * @param changes - List of transformation changes
51
- * @param onlySelected - Whether to apply only selected changes
52
- * @returns Modified data with transformations applied
53
- */
54
- export declare function applyTransformations(data: any[], changes: TransformationChange[], onlySelected?: boolean): any[];
55
- /**
56
- * Count selected changes
57
- */
58
- export declare function countSelectedChanges(changes: TransformationChange[]): number;
59
- /**
60
- * Toggle selection for a specific change
61
- */
62
- export declare function toggleChangeSelection(changes: TransformationChange[], index: number): TransformationChange[];
63
- /**
64
- * Select or deselect all changes
65
- */
66
- export declare function setAllChangesSelection(changes: TransformationChange[], selected: boolean): TransformationChange[];
67
- /**
68
- * Common transformation prompts for quick access
69
- */
70
- export declare const COMMON_PROMPTS: string[];
@@ -1,4 +0,0 @@
1
- export declare const colors: {
2
- primary: string;
3
- error: string;
4
- };
@@ -1,2 +0,0 @@
1
- export * from './colors';
2
- export * from './sizes';
@@ -1,7 +0,0 @@
1
- export declare const sizes: {
2
- icon: {
3
- small: string;
4
- medium: string;
5
- large: string;
6
- };
7
- };
@@ -1,17 +0,0 @@
1
- type Theme = "dark" | "light";
2
- type themeStoreType = {
3
- theme: Theme;
4
- setTheme: (theme?: Theme) => void;
5
- };
6
- declare const useThemeStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<themeStoreType>, "persist"> & {
7
- persist: {
8
- setOptions: (options: Partial<import('zustand/middleware').PersistOptions<themeStoreType, themeStoreType>>) => void;
9
- clearStorage: () => void;
10
- rehydrate: () => void | Promise<void>;
11
- hasHydrated: () => boolean;
12
- onHydrate: (fn: (state: themeStoreType) => void) => () => void;
13
- onFinishHydration: (fn: (state: themeStoreType) => void) => () => void;
14
- getOptions: () => Partial<import('zustand/middleware').PersistOptions<themeStoreType, themeStoreType>>;
15
- };
16
- }>;
17
- export default useThemeStore;
@@ -1,8 +0,0 @@
1
- /**
2
- * Theme module exports
3
- * Central export point for all theme-related functionality
4
- */
5
- export { styles, designTokens, cssVariables } from './styles';
6
- export { presets } from './presets';
7
- export { applyTheme, getCurrentTheme, resetTheme, createThemeFromColor, type SimpleTheme } from './runtime';
8
- export { styles as default } from './styles';
@@ -1,314 +0,0 @@
1
- /**
2
- * Pre-built theme presets for the CSV Importer
3
- * Use these as starting points or use them directly
4
- */
5
- export declare const presets: {
6
- default: {
7
- typography: {
8
- title: string;
9
- subtitle: string;
10
- label: string;
11
- body: string;
12
- caption: string;
13
- };
14
- spacing: {
15
- page: string;
16
- header: string;
17
- content: string;
18
- footer: string;
19
- section: string;
20
- };
21
- layout: {
22
- header: string;
23
- subHeader: string;
24
- content: string;
25
- footer: string;
26
- container: string;
27
- };
28
- colors: {
29
- borderDefault: string;
30
- bgPrimary: string;
31
- bgSecondary: string;
32
- bgHover: string;
33
- textPrimary: string;
34
- textSecondary: string;
35
- textMuted: string;
36
- };
37
- components: {
38
- card: string;
39
- input: string;
40
- table: string;
41
- tableHeader: string;
42
- tableRow: string;
43
- };
44
- buttons: {
45
- primary: string;
46
- secondary: string;
47
- outline: string;
48
- };
49
- };
50
- minimal: {
51
- typography: {
52
- title: string;
53
- subtitle: string;
54
- label: string;
55
- body: string;
56
- caption: string;
57
- };
58
- colors: {
59
- borderDefault: string;
60
- bgPrimary: string;
61
- bgSecondary: string;
62
- bgHover: string;
63
- textPrimary: string;
64
- textSecondary: string;
65
- textMuted: string;
66
- };
67
- buttons: {
68
- primary: string;
69
- secondary: string;
70
- outline: string;
71
- };
72
- spacing: {
73
- page: string;
74
- header: string;
75
- content: string;
76
- footer: string;
77
- section: string;
78
- };
79
- layout: {
80
- header: string;
81
- subHeader: string;
82
- content: string;
83
- footer: string;
84
- container: string;
85
- };
86
- components: {
87
- card: string;
88
- input: string;
89
- table: string;
90
- tableHeader: string;
91
- tableRow: string;
92
- };
93
- };
94
- modern: {
95
- typography: {
96
- title: string;
97
- subtitle: string;
98
- label: string;
99
- body: string;
100
- caption: string;
101
- };
102
- components: {
103
- card: string;
104
- input: string;
105
- table: string;
106
- tableHeader: string;
107
- tableRow: string;
108
- };
109
- buttons: {
110
- primary: string;
111
- secondary: string;
112
- outline: string;
113
- };
114
- spacing: {
115
- page: string;
116
- header: string;
117
- content: string;
118
- footer: string;
119
- section: string;
120
- };
121
- layout: {
122
- header: string;
123
- subHeader: string;
124
- content: string;
125
- footer: string;
126
- container: string;
127
- };
128
- colors: {
129
- borderDefault: string;
130
- bgPrimary: string;
131
- bgSecondary: string;
132
- bgHover: string;
133
- textPrimary: string;
134
- textSecondary: string;
135
- textMuted: string;
136
- };
137
- };
138
- compact: {
139
- spacing: {
140
- page: string;
141
- header: string;
142
- content: string;
143
- footer: string;
144
- section: string;
145
- };
146
- typography: {
147
- title: string;
148
- subtitle: string;
149
- label: string;
150
- body: string;
151
- caption: string;
152
- };
153
- components: {
154
- input: string;
155
- card: string;
156
- table: string;
157
- tableHeader: string;
158
- tableRow: string;
159
- };
160
- layout: {
161
- header: string;
162
- subHeader: string;
163
- content: string;
164
- footer: string;
165
- container: string;
166
- };
167
- colors: {
168
- borderDefault: string;
169
- bgPrimary: string;
170
- bgSecondary: string;
171
- bgHover: string;
172
- textPrimary: string;
173
- textSecondary: string;
174
- textMuted: string;
175
- };
176
- buttons: {
177
- primary: string;
178
- secondary: string;
179
- outline: string;
180
- };
181
- };
182
- dark: {
183
- typography: {
184
- title: string;
185
- subtitle: string;
186
- label: string;
187
- body: string;
188
- caption: string;
189
- };
190
- spacing: {
191
- page: string;
192
- header: string;
193
- content: string;
194
- footer: string;
195
- section: string;
196
- };
197
- layout: {
198
- header: string;
199
- subHeader: string;
200
- content: string;
201
- footer: string;
202
- container: string;
203
- };
204
- colors: {
205
- borderDefault: string;
206
- bgPrimary: string;
207
- bgSecondary: string;
208
- bgHover: string;
209
- textPrimary: string;
210
- textSecondary: string;
211
- textMuted: string;
212
- };
213
- components: {
214
- card: string;
215
- input: string;
216
- table: string;
217
- tableHeader: string;
218
- tableRow: string;
219
- };
220
- buttons: {
221
- primary: string;
222
- secondary: string;
223
- outline: string;
224
- };
225
- };
226
- corporate: {
227
- typography: {
228
- title: string;
229
- subtitle: string;
230
- label: string;
231
- body: string;
232
- caption: string;
233
- };
234
- colors: {
235
- borderDefault: string;
236
- bgPrimary: string;
237
- bgSecondary: string;
238
- bgHover: string;
239
- textPrimary: string;
240
- textSecondary: string;
241
- textMuted: string;
242
- };
243
- buttons: {
244
- primary: string;
245
- secondary: string;
246
- outline: string;
247
- };
248
- spacing: {
249
- page: string;
250
- header: string;
251
- content: string;
252
- footer: string;
253
- section: string;
254
- };
255
- layout: {
256
- header: string;
257
- subHeader: string;
258
- content: string;
259
- footer: string;
260
- container: string;
261
- };
262
- components: {
263
- card: string;
264
- input: string;
265
- table: string;
266
- tableHeader: string;
267
- tableRow: string;
268
- };
269
- };
270
- playful: {
271
- typography: {
272
- title: string;
273
- subtitle: string;
274
- label: string;
275
- body: string;
276
- caption: string;
277
- };
278
- components: {
279
- card: string;
280
- input: string;
281
- table: string;
282
- tableHeader: string;
283
- tableRow: string;
284
- };
285
- buttons: {
286
- primary: string;
287
- secondary: string;
288
- outline: string;
289
- };
290
- spacing: {
291
- page: string;
292
- header: string;
293
- content: string;
294
- footer: string;
295
- section: string;
296
- };
297
- layout: {
298
- header: string;
299
- subHeader: string;
300
- content: string;
301
- footer: string;
302
- container: string;
303
- };
304
- colors: {
305
- borderDefault: string;
306
- bgPrimary: string;
307
- bgSecondary: string;
308
- bgHover: string;
309
- textPrimary: string;
310
- textSecondary: string;
311
- textMuted: string;
312
- };
313
- };
314
- };