@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.
Files changed (413) hide show
  1. package/README.md +100 -427
  2. package/build/App.d.ts +2 -0
  3. package/build/bundled/bundled-styles.d.ts +1 -0
  4. package/build/bundled/components/CSVImporter/index.d.ts +5 -0
  5. package/build/bundled/i18n/de.d.ts +32 -0
  6. package/build/bundled/i18n/es.d.ts +32 -0
  7. package/build/bundled/i18n/fr.d.ts +32 -0
  8. package/build/bundled/i18n/i18n.d.ts +6 -0
  9. package/build/bundled/i18n/it.d.ts +32 -0
  10. package/build/bundled/i18n/useTranslation.d.ts +9 -0
  11. package/build/bundled/importer/components/Box/index.d.ts +2 -0
  12. package/build/bundled/importer/components/Box/types/index.d.ts +5 -0
  13. package/build/bundled/importer/components/Checkbox/index.d.ts +2 -0
  14. package/build/bundled/importer/components/Checkbox/types/index.d.ts +4 -0
  15. package/build/bundled/importer/components/Errors/index.d.ts +4 -0
  16. package/build/bundled/importer/components/Input/index.d.ts +2 -0
  17. package/build/bundled/importer/components/Input/types/index.d.ts +18 -0
  18. package/build/bundled/importer/components/Root/index.d.ts +10 -0
  19. package/build/bundled/importer/components/StepLayout/index.d.ts +18 -0
  20. package/build/bundled/importer/components/Stepper/hooks/useStepper.d.ts +2 -0
  21. package/build/bundled/importer/components/Stepper/index.d.ts +2 -0
  22. package/build/bundled/importer/components/Stepper/types/index.d.ts +14 -0
  23. package/build/bundled/importer/components/Table/index.d.ts +9 -0
  24. package/build/bundled/importer/components/ToggleFilter/index.d.ts +3 -0
  25. package/build/bundled/importer/components/ToggleFilter/types/index.d.ts +11 -0
  26. package/build/bundled/importer/components/Tooltip/index.d.ts +2 -0
  27. package/build/bundled/importer/components/Tooltip/types/index.d.ts +11 -0
  28. package/build/bundled/importer/components/UploaderWrapper/NativeDropzone.d.ts +11 -0
  29. package/build/bundled/importer/components/UploaderWrapper/UploaderWrapper.d.ts +2 -0
  30. package/build/bundled/importer/components/UploaderWrapper/types/index.d.ts +2 -0
  31. package/build/bundled/importer/components/VirtualTable/index.d.ts +17 -0
  32. package/build/bundled/importer/components/ui/alert.d.ts +10 -0
  33. package/build/bundled/importer/components/ui/button.d.ts +12 -0
  34. package/build/bundled/importer/components/ui/card.d.ts +19 -0
  35. package/build/bundled/importer/components/ui/checkbox.d.ts +7 -0
  36. package/build/bundled/importer/components/ui/dialog.d.ts +38 -0
  37. package/build/bundled/importer/components/ui/flex.d.ts +23 -0
  38. package/build/bundled/importer/components/ui/input.d.ts +6 -0
  39. package/build/bundled/importer/components/ui/select.d.ts +13 -0
  40. package/build/bundled/importer/components/ui/switch.d.ts +7 -0
  41. package/build/bundled/importer/components/ui/toast.d.ts +22 -0
  42. package/build/bundled/importer/components/ui/toaster.d.ts +1 -0
  43. package/build/bundled/importer/components/ui/tooltip.d.ts +20 -0
  44. package/build/bundled/importer/components/ui/use-toast.d.ts +46 -0
  45. package/build/bundled/importer/features/complete/index.d.ts +2 -0
  46. package/build/bundled/importer/features/complete/types/index.d.ts +5 -0
  47. package/build/bundled/importer/features/configure-import/index.d.ts +13 -0
  48. package/build/bundled/importer/features/configure-import/types/index.d.ts +13 -0
  49. package/build/bundled/importer/features/main/hooks/useMutableLocalStorage.d.ts +1 -0
  50. package/build/bundled/importer/features/main/hooks/useStepNavigation.d.ts +17 -0
  51. package/build/bundled/importer/features/main/index.d.ts +2 -0
  52. package/build/bundled/importer/features/main/types/index.d.ts +16 -0
  53. package/build/bundled/importer/features/map-columns/components/DropDownFields.d.ts +21 -0
  54. package/build/bundled/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +16 -0
  55. package/build/bundled/importer/features/map-columns/index.d.ts +2 -0
  56. package/build/bundled/importer/features/map-columns/types/index.d.ts +16 -0
  57. package/build/bundled/importer/features/row-selection/index.d.ts +2 -0
  58. package/build/bundled/importer/features/row-selection/types/index.d.ts +8 -0
  59. package/build/bundled/importer/features/uploader/hooks/useTemplateTable.d.ts +10 -0
  60. package/build/bundled/importer/features/uploader/index.d.ts +2 -0
  61. package/build/bundled/importer/features/uploader/types/index.d.ts +9 -0
  62. package/build/bundled/importer/features/validation/Validation.d.ts +2 -0
  63. package/build/bundled/importer/features/validation/components/TransformModal.d.ts +18 -0
  64. package/build/bundled/importer/features/validation/components/TransformPanel.d.ts +18 -0
  65. package/build/bundled/importer/features/validation/index.d.ts +1 -0
  66. package/build/bundled/importer/features/validation/types.d.ts +32 -0
  67. package/build/bundled/importer/hooks/useClickOutside.d.ts +1 -0
  68. package/build/bundled/importer/hooks/useCustomStyles.d.ts +1 -0
  69. package/build/bundled/importer/hooks/useEventListener.d.ts +4 -0
  70. package/build/bundled/importer/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
  71. package/build/bundled/importer/hooks/useRect.d.ts +12 -0
  72. package/build/bundled/importer/hooks/useWindowSize.d.ts +1 -0
  73. package/build/bundled/importer/providers/Theme.d.ts +10 -0
  74. package/build/bundled/importer/providers/index.d.ts +5 -0
  75. package/build/bundled/importer/providers/types/index.d.ts +10 -0
  76. package/build/bundled/importer/services/api.d.ts +1 -0
  77. package/build/bundled/importer/services/mapping.d.ts +31 -0
  78. package/build/bundled/importer/services/transformation.d.ts +70 -0
  79. package/build/bundled/importer/settings/theme/colors.d.ts +4 -0
  80. package/build/bundled/importer/settings/theme/index.d.ts +2 -0
  81. package/build/bundled/importer/settings/theme/sizes.d.ts +7 -0
  82. package/build/bundled/importer/stores/theme.d.ts +17 -0
  83. package/build/bundled/importer/theme/index.d.ts +8 -0
  84. package/build/bundled/importer/theme/presets.d.ts +314 -0
  85. package/build/bundled/importer/theme/runtime.d.ts +62 -0
  86. package/build/bundled/importer/theme/styles.d.ts +120 -0
  87. package/build/bundled/importer/types/index.d.ts +9 -0
  88. package/build/bundled/importer/utils/colorUtils.d.ts +48 -0
  89. package/build/bundled/importer/utils/errorAnalysis.d.ts +25 -0
  90. package/build/bundled/importer/utils/getStringLengthOfChildren.d.ts +2 -0
  91. package/build/bundled/importer/utils/stringSimilarity.d.ts +1 -0
  92. package/build/bundled/importer/utils/template.d.ts +2 -0
  93. package/build/bundled/importer/utils/themeUtils.d.ts +21 -0
  94. package/build/bundled/importer/utils/utils.d.ts +19 -0
  95. package/build/bundled/index.d.ts +4 -0
  96. package/build/bundled/index.esm.js +8189 -0
  97. package/build/bundled/index.esm.js.map +1 -0
  98. package/build/bundled/index.js +112 -0
  99. package/build/bundled/index.js.map +1 -0
  100. package/build/bundled/index.umd.js +112 -0
  101. package/build/bundled/index.umd.js.map +1 -0
  102. package/build/bundled/js.d.ts +12 -0
  103. package/build/bundled/settings/defaults.d.ts +3 -0
  104. package/build/bundled/styles.d.ts +1 -0
  105. package/build/bundled/types/index.d.ts +132 -0
  106. package/build/bundled/types/theme.d.ts +153 -0
  107. package/build/bundled/utils/cn.d.ts +6 -0
  108. package/build/bundled/utils/injectStyles.d.ts +14 -0
  109. package/build/bundled/validation/transformationStages.d.ts +26 -0
  110. package/build/bundled/validation/transformer.d.ts +17 -0
  111. package/build/bundled/validation/validator.d.ts +23 -0
  112. package/build/bundled-styles.d.ts +1 -1
  113. package/build/components/CSVImporter/index.d.ts +8 -31
  114. package/build/components/Modal/index.d.ts +12 -0
  115. package/build/config/index.d.ts +5 -0
  116. package/build/importer/components/Box/index.d.ts +1 -1
  117. package/build/importer/components/Box/types/index.d.ts +1 -2
  118. package/build/importer/components/Checkbox/index.d.ts +1 -1
  119. package/build/importer/components/Checkbox/types/index.d.ts +1 -1
  120. package/build/importer/components/Input/index.d.ts +1 -1
  121. package/build/importer/components/Input/types/index.d.ts +1 -1
  122. package/build/importer/components/Root/index.d.ts +10 -0
  123. package/build/importer/components/StepLayout/index.d.ts +18 -0
  124. package/build/importer/components/Stepper/hooks/useStepper.d.ts +1 -1
  125. package/build/importer/components/Stepper/index.d.ts +1 -1
  126. package/build/importer/components/Table/index.d.ts +3 -3
  127. package/build/importer/components/ToggleFilter/index.d.ts +1 -1
  128. package/build/importer/components/Tooltip/index.d.ts +1 -1
  129. package/build/importer/components/Tooltip/types/index.d.ts +4 -4
  130. package/build/importer/components/UploaderWrapper/NativeDropzone.d.ts +11 -0
  131. package/build/importer/components/UploaderWrapper/UploaderWrapper.d.ts +1 -1
  132. package/build/importer/components/UploaderWrapper/types/index.d.ts +1 -1
  133. package/build/importer/components/VirtualTable/index.d.ts +17 -0
  134. package/build/importer/components/ui/alert.d.ts +9 -7
  135. package/build/importer/components/ui/button.d.ts +6 -6
  136. package/build/importer/components/ui/card.d.ts +18 -7
  137. package/build/importer/components/ui/checkbox.d.ts +6 -3
  138. package/build/importer/components/ui/dialog.d.ts +32 -12
  139. package/build/importer/components/ui/flex.d.ts +16 -7
  140. package/build/importer/components/ui/input.d.ts +4 -3
  141. package/build/importer/components/ui/select.d.ts +13 -13
  142. package/build/importer/components/ui/switch.d.ts +6 -3
  143. package/build/importer/components/ui/toast.d.ts +23 -15
  144. package/build/importer/components/ui/tooltip.d.ts +16 -9
  145. package/build/importer/components/ui/use-toast.d.ts +7 -5
  146. package/build/importer/features/complete/index.d.ts +1 -1
  147. package/build/importer/features/main/hooks/useStepNavigation.d.ts +1 -1
  148. package/build/importer/features/main/index.d.ts +1 -1
  149. package/build/importer/features/map-columns/components/DropDownFields.d.ts +1 -1
  150. package/build/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +4 -4
  151. package/build/importer/features/map-columns/index.d.ts +1 -1
  152. package/build/importer/features/map-columns/types/index.d.ts +2 -2
  153. package/build/importer/features/row-selection/index.d.ts +1 -1
  154. package/build/importer/features/row-selection/types/index.d.ts +1 -1
  155. package/build/importer/features/uploader/hooks/useTemplateTable.d.ts +1 -1
  156. package/build/importer/features/uploader/index.d.ts +1 -1
  157. package/build/importer/features/uploader/types/index.d.ts +2 -2
  158. package/build/importer/features/validation/components/TransformPanel.d.ts +18 -0
  159. package/build/importer/features/validation/types.d.ts +3 -3
  160. package/build/importer/hooks/useEventListener.d.ts +1 -1
  161. package/build/importer/hooks/useIsomorphicLayoutEffect.d.ts +1 -1
  162. package/build/importer/providers/Theme.d.ts +7 -2
  163. package/build/importer/providers/index.d.ts +4 -4
  164. package/build/importer/providers/types/index.d.ts +10 -4
  165. package/build/importer/settings/theme/index.d.ts +2 -2
  166. package/build/importer/stores/theme.d.ts +3 -3
  167. package/build/importer/theme/index.d.ts +8 -0
  168. package/build/importer/theme/presets.d.ts +314 -0
  169. package/build/importer/theme/runtime.d.ts +66 -0
  170. package/build/importer/theme/styles.d.ts +120 -0
  171. package/build/importer/utils/errorAnalysis.d.ts +25 -0
  172. package/build/importer/utils/getStringLengthOfChildren.d.ts +2 -2
  173. package/build/importer/utils/template.d.ts +1 -1
  174. package/build/importer/utils/themeUtils.d.ts +24 -0
  175. package/build/index.d.ts +5 -3
  176. package/build/index.dev.d.ts +1 -0
  177. package/build/js.d.ts +4 -31
  178. package/build/preact/bundled-styles.d.ts +1 -0
  179. package/build/preact/components/CSVImporter/index.d.ts +5 -0
  180. package/build/preact/i18n/de.d.ts +32 -0
  181. package/build/preact/i18n/es.d.ts +32 -0
  182. package/build/preact/i18n/fr.d.ts +32 -0
  183. package/build/preact/i18n/i18n.d.ts +6 -0
  184. package/build/preact/i18n/it.d.ts +32 -0
  185. package/build/preact/i18n/useTranslation.d.ts +9 -0
  186. package/build/preact/importer/components/Box/index.d.ts +2 -0
  187. package/build/preact/importer/components/Box/types/index.d.ts +5 -0
  188. package/build/preact/importer/components/Checkbox/index.d.ts +2 -0
  189. package/build/preact/importer/components/Checkbox/types/index.d.ts +4 -0
  190. package/build/preact/importer/components/Errors/index.d.ts +4 -0
  191. package/build/preact/importer/components/Input/index.d.ts +2 -0
  192. package/build/preact/importer/components/Input/types/index.d.ts +18 -0
  193. package/build/preact/importer/components/Root/index.d.ts +10 -0
  194. package/build/preact/importer/components/StepLayout/index.d.ts +18 -0
  195. package/build/preact/importer/components/Stepper/hooks/useStepper.d.ts +2 -0
  196. package/build/preact/importer/components/Stepper/index.d.ts +2 -0
  197. package/build/preact/importer/components/Stepper/types/index.d.ts +14 -0
  198. package/build/preact/importer/components/Table/index.d.ts +9 -0
  199. package/build/preact/importer/components/ToggleFilter/index.d.ts +3 -0
  200. package/build/preact/importer/components/ToggleFilter/types/index.d.ts +11 -0
  201. package/build/preact/importer/components/Tooltip/index.d.ts +2 -0
  202. package/build/preact/importer/components/Tooltip/types/index.d.ts +11 -0
  203. package/build/preact/importer/components/UploaderWrapper/NativeDropzone.d.ts +11 -0
  204. package/build/preact/importer/components/UploaderWrapper/UploaderWrapper.d.ts +2 -0
  205. package/build/preact/importer/components/UploaderWrapper/types/index.d.ts +2 -0
  206. package/build/preact/importer/components/VirtualTable/index.d.ts +17 -0
  207. package/build/preact/importer/components/ui/alert.d.ts +10 -0
  208. package/build/preact/importer/components/ui/button.d.ts +12 -0
  209. package/build/preact/importer/components/ui/card.d.ts +19 -0
  210. package/build/preact/importer/components/ui/checkbox.d.ts +7 -0
  211. package/build/preact/importer/components/ui/dialog.d.ts +38 -0
  212. package/build/preact/importer/components/ui/flex.d.ts +23 -0
  213. package/build/preact/importer/components/ui/input.d.ts +6 -0
  214. package/build/preact/importer/components/ui/select.d.ts +13 -0
  215. package/build/preact/importer/components/ui/switch.d.ts +7 -0
  216. package/build/preact/importer/components/ui/toast.d.ts +22 -0
  217. package/build/preact/importer/components/ui/toaster.d.ts +1 -0
  218. package/build/preact/importer/components/ui/tooltip.d.ts +20 -0
  219. package/build/preact/importer/components/ui/use-toast.d.ts +46 -0
  220. package/build/preact/importer/features/complete/index.d.ts +2 -0
  221. package/build/preact/importer/features/complete/types/index.d.ts +5 -0
  222. package/build/preact/importer/features/configure-import/index.d.ts +13 -0
  223. package/build/preact/importer/features/configure-import/types/index.d.ts +13 -0
  224. package/build/preact/importer/features/main/hooks/useMutableLocalStorage.d.ts +1 -0
  225. package/build/preact/importer/features/main/hooks/useStepNavigation.d.ts +17 -0
  226. package/build/preact/importer/features/main/index.d.ts +2 -0
  227. package/build/preact/importer/features/main/types/index.d.ts +16 -0
  228. package/build/preact/importer/features/map-columns/components/DropDownFields.d.ts +21 -0
  229. package/build/preact/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +16 -0
  230. package/build/preact/importer/features/map-columns/index.d.ts +2 -0
  231. package/build/preact/importer/features/map-columns/types/index.d.ts +16 -0
  232. package/build/preact/importer/features/row-selection/index.d.ts +2 -0
  233. package/build/preact/importer/features/row-selection/types/index.d.ts +8 -0
  234. package/build/preact/importer/features/uploader/hooks/useTemplateTable.d.ts +10 -0
  235. package/build/preact/importer/features/uploader/index.d.ts +2 -0
  236. package/build/preact/importer/features/uploader/types/index.d.ts +9 -0
  237. package/build/preact/importer/features/validation/Validation.d.ts +2 -0
  238. package/build/preact/importer/features/validation/components/TransformModal.d.ts +18 -0
  239. package/build/preact/importer/features/validation/components/TransformPanel.d.ts +18 -0
  240. package/build/preact/importer/features/validation/index.d.ts +1 -0
  241. package/build/preact/importer/features/validation/types.d.ts +32 -0
  242. package/build/preact/importer/hooks/useClickOutside.d.ts +1 -0
  243. package/build/preact/importer/hooks/useCustomStyles.d.ts +1 -0
  244. package/build/preact/importer/hooks/useEventListener.d.ts +4 -0
  245. package/build/preact/importer/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
  246. package/build/preact/importer/hooks/useRect.d.ts +12 -0
  247. package/build/preact/importer/hooks/useWindowSize.d.ts +1 -0
  248. package/build/preact/importer/providers/Theme.d.ts +10 -0
  249. package/build/preact/importer/providers/index.d.ts +5 -0
  250. package/build/preact/importer/providers/types/index.d.ts +10 -0
  251. package/build/preact/importer/services/api.d.ts +1 -0
  252. package/build/preact/importer/services/mapping.d.ts +31 -0
  253. package/build/preact/importer/services/transformation.d.ts +70 -0
  254. package/build/preact/importer/settings/theme/colors.d.ts +4 -0
  255. package/build/preact/importer/settings/theme/index.d.ts +2 -0
  256. package/build/preact/importer/settings/theme/sizes.d.ts +7 -0
  257. package/build/preact/importer/stores/theme.d.ts +17 -0
  258. package/build/preact/importer/theme/index.d.ts +8 -0
  259. package/build/preact/importer/theme/presets.d.ts +314 -0
  260. package/build/preact/importer/theme/runtime.d.ts +62 -0
  261. package/build/preact/importer/theme/styles.d.ts +120 -0
  262. package/build/preact/importer/types/index.d.ts +9 -0
  263. package/build/preact/importer/utils/colorUtils.d.ts +48 -0
  264. package/build/preact/importer/utils/errorAnalysis.d.ts +25 -0
  265. package/build/preact/importer/utils/getStringLengthOfChildren.d.ts +2 -0
  266. package/build/preact/importer/utils/stringSimilarity.d.ts +1 -0
  267. package/build/preact/importer/utils/template.d.ts +2 -0
  268. package/build/preact/importer/utils/themeUtils.d.ts +21 -0
  269. package/build/preact/importer/utils/utils.d.ts +19 -0
  270. package/build/preact/index.d.ts +4 -0
  271. package/build/preact/index.esm.js +7370 -0
  272. package/build/preact/index.esm.js.map +1 -0
  273. package/build/preact/index.js +112 -0
  274. package/build/preact/index.js.map +1 -0
  275. package/build/preact/js.d.ts +12 -0
  276. package/build/preact/settings/defaults.d.ts +3 -0
  277. package/build/preact/styles.d.ts +1 -0
  278. package/build/preact/types/index.d.ts +132 -0
  279. package/build/preact/types/theme.d.ts +153 -0
  280. package/build/preact/utils/cn.d.ts +6 -0
  281. package/build/preact/utils/injectStyles.d.ts +14 -0
  282. package/build/preact/validation/transformationStages.d.ts +26 -0
  283. package/build/preact/validation/transformer.d.ts +17 -0
  284. package/build/preact/validation/validator.d.ts +23 -0
  285. package/build/react/bundled-styles.d.ts +1 -0
  286. package/build/react/components/CSVImporter/index.d.ts +5 -0
  287. package/build/react/components/Modal/index.d.ts +12 -0
  288. package/build/react/i18n/de.d.ts +32 -0
  289. package/build/react/i18n/es.d.ts +32 -0
  290. package/build/react/i18n/fr.d.ts +32 -0
  291. package/build/react/i18n/i18n.d.ts +6 -0
  292. package/build/react/i18n/it.d.ts +32 -0
  293. package/build/react/i18n/useTranslation.d.ts +9 -0
  294. package/build/react/importer/components/Box/index.d.ts +2 -0
  295. package/build/react/importer/components/Box/types/index.d.ts +5 -0
  296. package/build/react/importer/components/Checkbox/index.d.ts +2 -0
  297. package/build/react/importer/components/Checkbox/types/index.d.ts +4 -0
  298. package/build/react/importer/components/Errors/index.d.ts +4 -0
  299. package/build/react/importer/components/Input/index.d.ts +2 -0
  300. package/build/react/importer/components/Input/types/index.d.ts +18 -0
  301. package/build/react/importer/components/Root/index.d.ts +10 -0
  302. package/build/react/importer/components/StepLayout/index.d.ts +18 -0
  303. package/build/react/importer/components/Stepper/hooks/useStepper.d.ts +2 -0
  304. package/build/react/importer/components/Stepper/index.d.ts +2 -0
  305. package/build/react/importer/components/Stepper/types/index.d.ts +14 -0
  306. package/build/react/importer/components/Table/index.d.ts +9 -0
  307. package/build/{importer → react/importer}/components/Table/types/index.d.ts +2 -2
  308. package/build/react/importer/components/ToggleFilter/index.d.ts +3 -0
  309. package/build/react/importer/components/ToggleFilter/types/index.d.ts +11 -0
  310. package/build/react/importer/components/Tooltip/index.d.ts +2 -0
  311. package/build/react/importer/components/Tooltip/types/index.d.ts +11 -0
  312. package/build/react/importer/components/UploaderWrapper/NativeDropzone.d.ts +11 -0
  313. package/build/react/importer/components/UploaderWrapper/UploaderWrapper.d.ts +2 -0
  314. package/build/react/importer/components/UploaderWrapper/types/index.d.ts +2 -0
  315. package/build/react/importer/components/VirtualTable/index.d.ts +17 -0
  316. package/build/react/importer/components/ui/alert.d.ts +13 -0
  317. package/build/react/importer/components/ui/button.d.ts +12 -0
  318. package/build/react/importer/components/ui/card.d.ts +19 -0
  319. package/build/react/importer/components/ui/checkbox.d.ts +7 -0
  320. package/build/react/importer/components/ui/dialog.d.ts +38 -0
  321. package/build/react/importer/components/ui/flex.d.ts +23 -0
  322. package/build/react/importer/components/ui/input.d.ts +6 -0
  323. package/build/react/importer/components/ui/select.d.ts +13 -0
  324. package/build/react/importer/components/ui/switch.d.ts +7 -0
  325. package/build/react/importer/components/ui/toast.d.ts +22 -0
  326. package/build/react/importer/components/ui/toaster.d.ts +1 -0
  327. package/build/react/importer/components/ui/tooltip.d.ts +24 -0
  328. package/build/react/importer/components/ui/use-toast.d.ts +46 -0
  329. package/build/react/importer/features/complete/index.d.ts +2 -0
  330. package/build/react/importer/features/complete/types/index.d.ts +5 -0
  331. package/build/react/importer/features/configure-import/index.d.ts +13 -0
  332. package/build/react/importer/features/configure-import/types/index.d.ts +13 -0
  333. package/build/react/importer/features/main/hooks/useMutableLocalStorage.d.ts +1 -0
  334. package/build/react/importer/features/main/hooks/useStepNavigation.d.ts +17 -0
  335. package/build/react/importer/features/main/index.d.ts +2 -0
  336. package/build/react/importer/features/main/types/index.d.ts +16 -0
  337. package/build/react/importer/features/map-columns/components/DropDownFields.d.ts +21 -0
  338. package/build/react/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +16 -0
  339. package/build/react/importer/features/map-columns/index.d.ts +2 -0
  340. package/build/react/importer/features/map-columns/types/index.d.ts +16 -0
  341. package/build/react/importer/features/row-selection/index.d.ts +2 -0
  342. package/build/react/importer/features/row-selection/types/index.d.ts +8 -0
  343. package/build/react/importer/features/uploader/hooks/useTemplateTable.d.ts +10 -0
  344. package/build/react/importer/features/uploader/index.d.ts +2 -0
  345. package/build/react/importer/features/uploader/types/index.d.ts +9 -0
  346. package/build/react/importer/features/validation/Validation.d.ts +2 -0
  347. package/build/react/importer/features/validation/components/TransformModal.d.ts +18 -0
  348. package/build/react/importer/features/validation/components/TransformPanel.d.ts +18 -0
  349. package/build/react/importer/features/validation/index.d.ts +1 -0
  350. package/build/react/importer/features/validation/types.d.ts +32 -0
  351. package/build/react/importer/hooks/useClickOutside.d.ts +1 -0
  352. package/build/react/importer/hooks/useCustomStyles.d.ts +1 -0
  353. package/build/react/importer/hooks/useEventListener.d.ts +4 -0
  354. package/build/react/importer/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
  355. package/build/react/importer/hooks/useRect.d.ts +12 -0
  356. package/build/react/importer/hooks/useWindowSize.d.ts +1 -0
  357. package/build/react/importer/providers/Theme.d.ts +10 -0
  358. package/build/react/importer/providers/index.d.ts +5 -0
  359. package/build/react/importer/providers/types/index.d.ts +10 -0
  360. package/build/react/importer/services/api.d.ts +1 -0
  361. package/build/react/importer/services/mapping.d.ts +31 -0
  362. package/build/react/importer/services/transformation.d.ts +70 -0
  363. package/build/react/importer/settings/theme/colors.d.ts +4 -0
  364. package/build/react/importer/settings/theme/index.d.ts +2 -0
  365. package/build/react/importer/settings/theme/sizes.d.ts +7 -0
  366. package/build/react/importer/stores/theme.d.ts +17 -0
  367. package/build/react/importer/theme/index.d.ts +8 -0
  368. package/build/react/importer/theme/presets.d.ts +314 -0
  369. package/build/react/importer/theme/runtime.d.ts +62 -0
  370. package/build/react/importer/theme/styles.d.ts +120 -0
  371. package/build/react/importer/types/index.d.ts +9 -0
  372. package/build/react/importer/utils/colorUtils.d.ts +48 -0
  373. package/build/react/importer/utils/errorAnalysis.d.ts +25 -0
  374. package/build/react/importer/utils/getStringLengthOfChildren.d.ts +2 -0
  375. package/build/react/importer/utils/stringSimilarity.d.ts +1 -0
  376. package/build/react/importer/utils/template.d.ts +2 -0
  377. package/build/react/importer/utils/themeUtils.d.ts +21 -0
  378. package/build/react/importer/utils/utils.d.ts +19 -0
  379. package/build/react/index.d.ts +5 -0
  380. package/build/react/index.esm.js +7541 -0
  381. package/build/react/index.esm.js.map +1 -0
  382. package/build/react/index.js +112 -0
  383. package/build/react/index.js.map +1 -0
  384. package/build/react/js.d.ts +12 -0
  385. package/build/react/settings/defaults.d.ts +3 -0
  386. package/build/react/styles.d.ts +1 -0
  387. package/build/react/types/index.d.ts +132 -0
  388. package/build/react/types/theme.d.ts +153 -0
  389. package/build/react/utils/cn.d.ts +6 -0
  390. package/build/react/validation/transformationStages.d.ts +26 -0
  391. package/build/react/validation/transformer.d.ts +17 -0
  392. package/build/react/validation/validator.d.ts +23 -0
  393. package/build/services/api.d.ts +50 -0
  394. package/build/services/apiClient.d.ts +55 -0
  395. package/build/settings/defaults.d.ts +1 -1
  396. package/build/shims/react-compat-shim.d.ts +2 -0
  397. package/build/shims/react-hooks-shim.d.ts +2 -0
  398. package/build/types/index.d.ts +27 -0
  399. package/build/types/theme.d.ts +153 -0
  400. package/build/utils/cn.d.ts +1 -1
  401. package/build/validation/transformationStages.d.ts +26 -0
  402. package/build/validation/transformer.d.ts +10 -26
  403. package/package.json +64 -32
  404. package/build/bundle.css +0 -1
  405. package/build/importer/components/IframeWrapper/index.d.ts +0 -25
  406. package/build/importer/components/ImporterLayout.d.ts +0 -15
  407. package/build/importer/hooks/useDemoData.d.ts +0 -16
  408. package/build/importer/hooks/useImporterSchema.d.ts +0 -21
  409. package/build/importer/services/dataProcessor.d.ts +0 -38
  410. package/build/index.esm.js +0 -14394
  411. package/build/index.esm.js.map +0 -1
  412. package/build/index.js +0 -327
  413. package/build/index.js.map +0 -1
@@ -1,32 +1,9 @@
1
- import { default as React } from 'react';
2
- declare const CSVImporter: React.ForwardRefExoticComponent<{
3
- columns?: import('../../types').Column[] | undefined;
4
- importerKey?: string | undefined;
5
- onComplete?: ((data: any) => void) | undefined;
6
- backendUrl?: string | undefined;
7
- user?: Record<string, any> | undefined;
8
- metadata?: Record<string, any> | undefined;
9
- darkMode?: boolean | undefined;
10
- primaryColor?: string | undefined;
11
- className?: string | undefined;
12
- customStyles?: string | Record<string, string> | undefined;
13
- showDownloadTemplateButton?: boolean | undefined;
14
- skipHeaderRowSelection?: boolean | undefined;
15
- waitOnComplete?: boolean | undefined;
16
- language?: string | undefined;
17
- customTranslations?: {
18
- [language: string]: {
19
- [key: string]: string;
20
- };
21
- } | undefined;
22
- demoData?: {
23
- fileName: string;
24
- csvContent: string;
25
- } | undefined;
26
- } & {
27
- isModal?: boolean | undefined;
28
- modalIsOpen?: boolean | undefined;
29
- modalOnCloseTriggered?: (() => void) | undefined;
30
- modalCloseOnOutsideClick?: boolean | undefined;
31
- } & React.RefAttributes<unknown>>;
1
+ import { CSVImporterProps } from "../../types";
2
+ import "../../index.css";
3
+ import "./style/csv-importer.css";
4
+ import "./style/dark-mode.css";
5
+ import "../Modal/style.css";
6
+ declare const CSVImporter: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<CSVImporterProps> & {
7
+ ref?: import("preact").Ref<unknown> | undefined;
8
+ }>;
32
9
  export default CSVImporter;
@@ -0,0 +1,12 @@
1
+ import { ComponentChildren } from 'preact';
2
+ interface ModalProps {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ children: ComponentChildren;
6
+ closeOnOutsideClick?: boolean;
7
+ className?: string;
8
+ overlayClassName?: string;
9
+ contentClassName?: string;
10
+ }
11
+ declare const Modal: ({ isOpen, onClose, children, closeOnOutsideClick, className, overlayClassName, contentClassName }: ModalProps) => import("preact").VNode<any> | null;
12
+ export default Modal;
@@ -0,0 +1,5 @@
1
+ export function getApiBaseUrl(backendUrl: string): string;
2
+ declare namespace _default {
3
+ export { getApiBaseUrl };
4
+ }
5
+ export default _default;
@@ -1,2 +1,2 @@
1
- import { BoxProps } from './types';
1
+ import { BoxProps } from "./types";
2
2
  export default function Box({ className, variants, ...props }: BoxProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  export type BoxVariant = "fluid" | "mid" | "wide" | "space-l" | "space-mid" | "space-none" | "bg-shade";
3
- export type BoxProps = React.HTMLAttributes<HTMLDivElement> & {
2
+ export type BoxProps = JSX.HTMLAttributes<HTMLDivElement> & {
4
3
  variants?: BoxVariant[];
5
4
  };
6
5
  export declare const boxVariants: BoxVariant[];
@@ -1,2 +1,2 @@
1
- import { CheckboxProps } from './types';
1
+ import { CheckboxProps } from "./types";
2
2
  export default function Checkbox({ label, className, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { InputHTMLAttributes, ReactElement } from 'react';
1
+ import { InputHTMLAttributes, ReactElement } from "preact/hooks";
2
2
  export type CheckboxProps = InputHTMLAttributes<HTMLInputElement> & {
3
3
  label?: string | ReactElement;
4
4
  };
@@ -1,2 +1,2 @@
1
- import { InputProps } from './types';
1
+ import { InputProps } from "./types";
2
2
  export default function Input({ as, label, icon, iconAfter, error, options, className, variants, children, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ButtonHTMLAttributes, InputHTMLAttributes, ReactElement } from 'react';
1
+ import { ButtonHTMLAttributes, InputHTMLAttributes, ReactElement } from "preact/hooks";
2
2
  export type inputTypes = "date" | "datetime-local" | "email" | "file" | "month" | "number" | "password" | "search" | "tel" | "text" | "time" | "url" | "week";
3
3
  export type InputVariants = "fluid" | "small";
4
4
  export type InputOption = ButtonHTMLAttributes<HTMLButtonElement> & {
@@ -0,0 +1,10 @@
1
+ import type { ComponentChildren } from 'preact';
2
+ interface RootProps {
3
+ children?: ComponentChildren;
4
+ className?: string;
5
+ primaryColor?: string;
6
+ }
7
+ declare const _default: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<RootProps> & {
8
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
9
+ }>;
10
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import type { ComponentChildren } from 'preact';
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 {};
@@ -1,2 +1,2 @@
1
- import { Step, StepperProps } from '../types';
1
+ import { Step, StepperProps } from "../types";
2
2
  export default function useStepper(steps: Step[], initialStep: number | undefined, skipHeader: boolean): StepperProps;
@@ -1,2 +1,2 @@
1
- import { StepperProps } from './types';
1
+ import { StepperProps } from "./types";
2
2
  export default function Stepper({ steps, current, hide, skipHeader }: StepperProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,9 +1,9 @@
1
- import { default as React } from 'react';
2
- import { TableProps } from './types';
1
+ import type { JSX } from 'preact';
2
+ import { TableProps } from "./types";
3
3
  export default function Table({ data, // An array of objects with the data to be displayed
4
4
  keyAsId, // Has to be a unique property in the data array to be used as key
5
5
  theme, // A CSS module object to style the table
6
6
  mergeThemes, // Should 'theme' be the only style applied (false) or be merged with the default style (true)
7
7
  highlightColumns, // Columns that should use the highlighted style
8
8
  hideColumns, // Array of columns to be hidden in the display
9
- emptyState, heading, background, columnWidths, columnAlignments, fixHeader, onRowClick, }: TableProps): React.ReactElement;
9
+ emptyState, heading, background, columnWidths, columnAlignments, fixHeader, onRowClick, }: TableProps): JSX.Element;
@@ -1,3 +1,3 @@
1
- import { ToggleFilterProps } from './types';
1
+ import { ToggleFilterProps } from "./types";
2
2
  declare function ToggleFilter({ options, onChange, className }: ToggleFilterProps): import("react/jsx-runtime").JSX.Element;
3
3
  export default ToggleFilter;
@@ -1,2 +1,2 @@
1
- import { AsMap, TooltipProps } from './types';
1
+ import { AsMap, TooltipProps } from "./types";
2
2
  export default function Tooltip<T extends keyof AsMap>({ as, className, title, children, icon, ...props }: TooltipProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode } from "preact/hooks";
2
2
  export type AsMap = {
3
- div: React.HTMLProps<HTMLDivElement>;
4
- span: React.HTMLProps<HTMLSpanElement>;
5
- p: React.HTMLProps<HTMLParagraphElement>;
3
+ div: JSX.HTMLAttributes<HTMLDivElement>;
4
+ span: JSX.HTMLAttributes<HTMLSpanElement>;
5
+ p: JSX.HTMLAttributes<HTMLParagraphElement>;
6
6
  };
7
7
  export type TooltipProps<T extends keyof AsMap = "span"> = {
8
8
  as?: T;
@@ -0,0 +1,11 @@
1
+ import type { ComponentChildren } from 'preact';
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 {};
@@ -1,2 +1,2 @@
1
- import { UploaderWrapperProps } from './types';
1
+ import { UploaderWrapperProps } from "./types";
2
2
  export default function UploaderWrapper({ onSuccess, setDataError, ...props }: UploaderWrapperProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { UploaderProps } from '../../../features/uploader/types';
1
+ import { UploaderProps } from "../../../features/uploader/types";
2
2
  export type UploaderWrapperProps = Omit<UploaderProps, "template"> & {};
@@ -0,0 +1,17 @@
1
+ import type { JSX } from 'preact';
2
+ import type { 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 {};
@@ -1,8 +1,10 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import * as React from "react";
3
- declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
4
- variant?: "default" | "destructive" | null | undefined;
5
- } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
6
- declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
7
- declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
1
+ declare const Alert: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<any> & {
2
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
3
+ }>;
4
+ declare const AlertTitle: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<JSX.HTMLAttributes<HTMLHeadingElement>> & {
5
+ ref?: import("preact").Ref<HTMLParagraphElement> | undefined;
6
+ }>;
7
+ declare const AlertDescription: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<JSX.HTMLAttributes<HTMLParagraphElement>> & {
8
+ ref?: import("preact").Ref<HTMLParagraphElement> | undefined;
9
+ }>;
8
10
  export { Alert, AlertTitle, AlertDescription };
@@ -1,12 +1,12 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import * as React from "react";
1
+ import { type VariantProps } from "class-variance-authority";
3
2
  declare const buttonVariants: (props?: ({
4
3
  variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
5
4
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
6
- } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
7
- export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
- asChild?: boolean;
5
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
+ export interface ButtonProps extends JSX.HTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
9
7
  isLoading?: boolean;
10
8
  }
11
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
9
+ declare const Button: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<ButtonProps> & {
10
+ ref?: import("preact").Ref<HTMLButtonElement> | undefined;
11
+ }>;
12
12
  export { Button, buttonVariants };
@@ -1,8 +1,19 @@
1
- import * as React from "react";
2
- declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
3
- declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
4
- declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
5
- declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
6
- declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
7
- declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
1
+ declare const Card: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement>> & {
2
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
3
+ }>;
4
+ declare const CardHeader: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement>> & {
5
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
6
+ }>;
7
+ declare const CardTitle: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<JSX.HTMLAttributes<HTMLHeadingElement>> & {
8
+ ref?: import("preact").Ref<HTMLParagraphElement> | undefined;
9
+ }>;
10
+ declare const CardDescription: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<JSX.HTMLAttributes<HTMLParagraphElement>> & {
11
+ ref?: import("preact").Ref<HTMLParagraphElement> | undefined;
12
+ }>;
13
+ declare const CardContent: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement>> & {
14
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
15
+ }>;
16
+ declare const CardFooter: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement>> & {
17
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
18
+ }>;
8
19
  export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
@@ -1,4 +1,7 @@
1
- import * as React from "react";
2
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
3
- declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
1
+ export interface CheckboxProps extends JSX.HTMLAttributes<HTMLInputElement> {
2
+ onCheckedChange?: (checked: boolean) => void;
3
+ }
4
+ declare const Checkbox: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<CheckboxProps> & {
5
+ ref?: import("preact").Ref<HTMLInputElement> | undefined;
6
+ }>;
4
7
  export { Checkbox };
@@ -1,19 +1,39 @@
1
- import * as React from "react";
2
- import * as DialogPrimitive from "@radix-ui/react-dialog";
3
- declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
4
- declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
- declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
6
- declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
- declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1
+ import { h } from 'preact';
2
+ import type { ComponentChildren, JSX } from 'preact';
3
+ interface DialogProps {
4
+ open?: boolean;
5
+ onOpenChange?: (open: boolean) => void;
6
+ children: ComponentChildren;
7
+ }
8
+ declare const Dialog: ({ open, onOpenChange, children }: DialogProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const DialogTrigger: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<h.JSX.HTMLAttributes<HTMLButtonElement>> & {
10
+ ref?: import("preact").Ref<HTMLButtonElement> | undefined;
11
+ }>;
12
+ interface DialogContentProps extends JSX.HTMLAttributes<HTMLDialogElement> {
13
+ onClose?: () => void;
14
+ }
15
+ declare const DialogContent: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<DialogContentProps> & {
16
+ ref?: import("preact").Ref<HTMLDialogElement> | undefined;
17
+ }>;
9
18
  declare const DialogHeader: {
10
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
19
+ ({ className, ...props }: JSX.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
11
20
  displayName: string;
12
21
  };
13
22
  declare const DialogFooter: {
14
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
23
+ ({ className, ...props }: JSX.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
15
24
  displayName: string;
16
25
  };
17
- declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
18
- declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
26
+ declare const DialogTitle: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<h.JSX.HTMLAttributes<HTMLHeadingElement>> & {
27
+ ref?: import("preact").Ref<HTMLHeadingElement> | undefined;
28
+ }>;
29
+ declare const DialogDescription: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<h.JSX.HTMLAttributes<HTMLParagraphElement>> & {
30
+ ref?: import("preact").Ref<HTMLParagraphElement> | undefined;
31
+ }>;
32
+ declare const DialogPortal: ({ children }: {
33
+ children: ComponentChildren;
34
+ }) => ComponentChildren;
35
+ declare const DialogOverlay: () => null;
36
+ declare const DialogClose: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<h.JSX.HTMLAttributes<HTMLButtonElement>> & {
37
+ ref?: import("preact").Ref<HTMLButtonElement> | undefined;
38
+ }>;
19
39
  export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
@@ -1,14 +1,23 @@
1
- import * as React from "react";
2
- interface FlexProps extends React.HTMLAttributes<HTMLDivElement> {
1
+ interface FlexProps extends JSX.HTMLAttributes<HTMLDivElement> {
3
2
  direction?: "row" | "column" | "row-reverse" | "column-reverse";
4
3
  align?: "start" | "center" | "end" | "stretch" | "baseline";
5
4
  justify?: "start" | "center" | "end" | "between" | "around" | "evenly";
6
5
  wrap?: boolean;
7
6
  gap?: number | string;
8
7
  }
9
- declare const Flex: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLDivElement>>;
10
- declare const Box: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
11
- declare const HStack: React.ForwardRefExoticComponent<Omit<FlexProps, "direction"> & React.RefAttributes<HTMLDivElement>>;
12
- declare const VStack: React.ForwardRefExoticComponent<Omit<FlexProps, "direction"> & React.RefAttributes<HTMLDivElement>>;
13
- declare const Text: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const Flex: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<FlexProps> & {
9
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
10
+ }>;
11
+ declare const Box: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement>> & {
12
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
13
+ }>;
14
+ declare const HStack: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<Omit<FlexProps, "direction">> & {
15
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
16
+ }>;
17
+ declare const VStack: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<Omit<FlexProps, "direction">> & {
18
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
19
+ }>;
20
+ declare const Text: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<JSX.HTMLAttributes<HTMLDivElement>> & {
21
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
22
+ }>;
14
23
  export { Flex, Box, HStack, VStack, Text };
@@ -1,5 +1,6 @@
1
- import * as React from "react";
2
- export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
1
+ export interface InputProps extends JSX.HTMLAttributes<HTMLInputElement> {
3
2
  }
4
- declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
3
+ declare const Input: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<InputProps> & {
4
+ ref?: import("preact").Ref<HTMLInputElement> | undefined;
5
+ }>;
5
6
  export { Input };
@@ -1,13 +1,13 @@
1
- import * as React from "react";
2
- import * as SelectPrimitive from "@radix-ui/react-select";
3
- declare const Select: React.FC<SelectPrimitive.SelectProps>;
4
- declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
5
- declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
6
- declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
- declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
- declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
- declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
- declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
- declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
- export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, };
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("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<SelectProps> & {
11
+ ref?: import("preact").Ref<HTMLSelectElement> | undefined;
12
+ }>;
13
+ export { Select };
@@ -1,4 +1,7 @@
1
- import * as React from "react";
2
- import * as SwitchPrimitives from "@radix-ui/react-switch";
3
- declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
1
+ export interface SwitchProps extends Omit<JSX.HTMLAttributes<HTMLInputElement>, 'type'> {
2
+ onCheckedChange?: (checked: boolean) => void;
3
+ }
4
+ declare const Switch: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<SwitchProps> & {
5
+ ref?: import("preact").Ref<HTMLInputElement> | undefined;
6
+ }>;
4
7
  export { Switch };
@@ -1,15 +1,23 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import * as React from "react";
3
- import * as ToastPrimitives from "@radix-ui/react-toast";
4
- declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
5
- declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
6
- declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
7
- variant?: "default" | "destructive" | null | undefined;
8
- } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLLIElement>>;
9
- declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
10
- declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
11
- declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
- declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
- type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
14
- type ToastActionElement = React.ReactElement<typeof ToastAction>;
15
- export { type ToastProps, type ToastActionElement, ToastProvider, ToastViewport, Toast, ToastTitle, ToastDescription, ToastClose, ToastAction, };
1
+ import { h } from 'preact';
2
+ import type { JSX } from 'preact';
3
+ export interface ToastProps extends JSX.HTMLAttributes<HTMLDivElement> {
4
+ variant?: 'default' | 'destructive';
5
+ onClose?: () => void;
6
+ }
7
+ declare const Toast: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<ToastProps> & {
8
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
9
+ }>;
10
+ declare const ToastAction: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<h.JSX.HTMLAttributes<HTMLButtonElement>> & {
11
+ ref?: import("preact").Ref<HTMLButtonElement> | undefined;
12
+ }>;
13
+ declare const ToastClose: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<h.JSX.HTMLAttributes<HTMLButtonElement>> & {
14
+ ref?: import("preact").Ref<HTMLButtonElement> | undefined;
15
+ }>;
16
+ declare const ToastTitle: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<h.JSX.HTMLAttributes<HTMLDivElement>> & {
17
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
18
+ }>;
19
+ declare const ToastDescription: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<h.JSX.HTMLAttributes<HTMLDivElement>> & {
20
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
21
+ }>;
22
+ type ToastActionElement = JSX.Element<typeof ToastAction>;
23
+ export { Toast, ToastAction, ToastClose, ToastTitle, ToastDescription, type ToastActionElement, };
@@ -1,13 +1,20 @@
1
- import * as React from "react";
2
- import * as TooltipPrimitive from "@radix-ui/react-tooltip";
3
- declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
4
- declare const TooltipRoot: React.FC<TooltipPrimitive.TooltipProps>;
5
- declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
- declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1
+ import type { ComponentChildren } from 'preact';
7
2
  interface TooltipProps {
8
- content: React.ReactNode;
9
- children: React.ReactNode;
3
+ content: ComponentChildren;
4
+ children: ComponentChildren;
10
5
  delayDuration?: number;
6
+ side?: 'top' | 'bottom' | 'left' | 'right';
7
+ className?: string;
11
8
  }
12
- declare const Tooltip: ({ content, children, delayDuration }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const Tooltip: ({ content, children, delayDuration, side, className }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
10
+ declare const TooltipProvider: ({ children }: {
11
+ children: ComponentChildren;
12
+ }) => import("react/jsx-runtime").JSX.Element;
13
+ declare const TooltipRoot: ({ content, children, delayDuration, side, className }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
14
+ declare const TooltipTrigger: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<any> & {
15
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
16
+ }>;
17
+ declare const TooltipContent: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<any> & {
18
+ ref?: import("preact").Ref<HTMLDivElement> | undefined;
19
+ }>;
13
20
  export { Tooltip, TooltipRoot, TooltipTrigger, TooltipContent, TooltipProvider };
@@ -1,10 +1,12 @@
1
- import { ToastActionElement, ToastProps } from './toast';
2
- import * as React from "react";
1
+ import type { ComponentChildren } from 'preact';
2
+ import type { ToastActionElement, ToastProps } from "./toast";
3
3
  type ToasterToast = ToastProps & {
4
4
  id: string;
5
- title?: React.ReactNode;
6
- description?: React.ReactNode;
5
+ title?: ComponentChildren;
6
+ description?: ComponentChildren;
7
7
  action?: ToastActionElement;
8
+ open?: boolean;
9
+ onOpenChange?: (open: boolean) => void;
8
10
  };
9
11
  declare const actionTypes: {
10
12
  readonly ADD_TOAST: "ADD_TOAST";
@@ -34,7 +36,7 @@ type Toast = Omit<ToasterToast, "id">;
34
36
  declare function toast({ ...props }: Toast): {
35
37
  id: string;
36
38
  dismiss: () => void;
37
- update: (props: ToasterToast) => void;
39
+ update: () => void;
38
40
  };
39
41
  declare function useToast(): {
40
42
  toast: typeof toast;
@@ -1,2 +1,2 @@
1
- import { CompleteProps } from './types';
1
+ import { CompleteProps } from "./types";
2
2
  export default function Complete({ reload, close, isModal }: CompleteProps): import("react/jsx-runtime").JSX.Element;
@@ -10,7 +10,7 @@ declare function useStepNavigation(initialStep: number, skipHeader: boolean, isD
10
10
  setStep: (newStep: number) => void;
11
11
  goBack: (backStep?: number) => void;
12
12
  goNext: (nextStep?: number) => void;
13
- stepper: import('../../../components/Stepper/types').StepperProps;
13
+ stepper: import("../../../components/Stepper/types").StepperProps;
14
14
  stepId: string | number | undefined;
15
15
  setStorageStep: any;
16
16
  };
@@ -1,2 +1,2 @@
1
- import { CSVImporterProps } from '../../../types';
1
+ import { CSVImporterProps } from "../../../types";
2
2
  export default function Main(props: CSVImporterProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { InputOption } from '../../../components/Input/types';
1
+ import { InputOption } from "../../../components/Input/types";
2
2
  type DropdownFieldsProps = {
3
3
  options: {
4
4
  [key: string]: InputOption;
@@ -1,6 +1,6 @@
1
- import { UploadColumn } from '../../../types';
2
- import { Column } from '../../../../types';
3
- import { TemplateColumnMapping } from '../types';
1
+ import { UploadColumn } from "../../../types";
2
+ import { Column } from "../../../../types";
3
+ import { TemplateColumnMapping } from "../types";
4
4
  export default function useMapColumnsTable(uploadColumns: UploadColumn[], templateColumns: Column[] | undefined, columnsValues: {
5
5
  [uploadColumnIndex: number]: TemplateColumnMapping;
6
6
  }, isLoading?: boolean, importerKey?: string, backendUrl?: string): {
@@ -11,6 +11,6 @@ export default function useMapColumnsTable(uploadColumns: UploadColumn[], templa
11
11
  };
12
12
  }[];
13
13
  formValues: {
14
- [key: number]: import('../types').ColumnMapping;
14
+ [key: number]: import("../types").ColumnMapping;
15
15
  };
16
16
  };