@startdownnotez404/ui 1.0.0 → 1.3.5

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 (439) hide show
  1. package/README.md +110 -0
  2. package/dist/AutocompleteField-ZKNU2IRR.mjs +181 -0
  3. package/dist/AutocompleteField-ZKNU2IRR.mjs.map +1 -0
  4. package/dist/AvatarField-SAODT3CZ.mjs +275 -0
  5. package/dist/AvatarField-SAODT3CZ.mjs.map +1 -0
  6. package/dist/CodeEditor-JF55ZNVD.mjs +34 -0
  7. package/dist/CodeEditor-JF55ZNVD.mjs.map +1 -0
  8. package/dist/DateField-ZYMZFHL4.mjs +82 -0
  9. package/dist/DateField-ZYMZFHL4.mjs.map +1 -0
  10. package/dist/DateTimeField-TPTJ7YIZ.mjs +65 -0
  11. package/dist/DateTimeField-TPTJ7YIZ.mjs.map +1 -0
  12. package/dist/FileUploadField-NTMWBJER.mjs +78 -0
  13. package/dist/FileUploadField-NTMWBJER.mjs.map +1 -0
  14. package/dist/JSONEditorField-TMRWGXVR.mjs +64 -0
  15. package/dist/JSONEditorField-TMRWGXVR.mjs.map +1 -0
  16. package/dist/PopperMenu-LJ36RPBW.mjs +416 -0
  17. package/dist/PopperMenu-LJ36RPBW.mjs.map +1 -0
  18. package/dist/TelField-LOGRVZ4I.mjs +88 -0
  19. package/dist/TelField-LOGRVZ4I.mjs.map +1 -0
  20. package/dist/alert.d.mts +202 -0
  21. package/dist/alert.d.ts +202 -0
  22. package/dist/alert.js +784 -0
  23. package/dist/alert.js.map +1 -0
  24. package/dist/alert.mjs +47 -0
  25. package/dist/alert.mjs.map +1 -0
  26. package/dist/appBar.d.mts +21 -0
  27. package/dist/appBar.d.ts +21 -0
  28. package/dist/appBar.js +64 -0
  29. package/dist/appBar.js.map +1 -0
  30. package/dist/appBar.mjs +12 -0
  31. package/dist/appBar.mjs.map +1 -0
  32. package/dist/autocomplete.d.mts +121 -0
  33. package/dist/autocomplete.d.ts +121 -0
  34. package/dist/autocomplete.js +2052 -0
  35. package/dist/autocomplete.js.map +1 -0
  36. package/dist/autocomplete.mjs +21 -0
  37. package/dist/autocomplete.mjs.map +1 -0
  38. package/dist/avatar.d.mts +253 -0
  39. package/dist/avatar.d.ts +253 -0
  40. package/dist/avatar.js +992 -0
  41. package/dist/avatar.js.map +1 -0
  42. package/dist/avatar.mjs +41 -0
  43. package/dist/avatar.mjs.map +1 -0
  44. package/dist/badge.d.mts +123 -0
  45. package/dist/badge.d.ts +123 -0
  46. package/dist/badge.js +151 -0
  47. package/dist/badge.js.map +1 -0
  48. package/dist/badge.mjs +10 -0
  49. package/dist/badge.mjs.map +1 -0
  50. package/dist/box.d.mts +36 -0
  51. package/dist/box.d.ts +36 -0
  52. package/dist/box.js +199 -0
  53. package/dist/box.js.map +1 -0
  54. package/dist/box.mjs +14 -0
  55. package/dist/box.mjs.map +1 -0
  56. package/dist/button.d.mts +230 -52
  57. package/dist/button.d.ts +230 -52
  58. package/dist/button.js +392 -60
  59. package/dist/button.js.map +1 -1
  60. package/dist/button.mjs +14 -8
  61. package/dist/card.d.mts +47 -0
  62. package/dist/card.d.ts +47 -0
  63. package/dist/card.js +135 -0
  64. package/dist/card.js.map +1 -0
  65. package/dist/card.mjs +24 -0
  66. package/dist/card.mjs.map +1 -0
  67. package/dist/chart.d.mts +40 -0
  68. package/dist/chart.d.ts +40 -0
  69. package/dist/chart.js +1234 -0
  70. package/dist/chart.js.map +1 -0
  71. package/dist/chart.mjs +10 -0
  72. package/dist/chart.mjs.map +1 -0
  73. package/dist/checkbox.d.mts +62 -0
  74. package/dist/checkbox.d.ts +62 -0
  75. package/dist/checkbox.js +299 -0
  76. package/dist/checkbox.js.map +1 -0
  77. package/dist/checkbox.mjs +14 -0
  78. package/dist/checkbox.mjs.map +1 -0
  79. package/dist/chip.d.mts +96 -0
  80. package/dist/chip.d.ts +96 -0
  81. package/dist/chip.js +112 -0
  82. package/dist/chip.js.map +1 -0
  83. package/dist/chip.mjs +10 -0
  84. package/dist/chip.mjs.map +1 -0
  85. package/dist/chunk-24XDGNJ6.mjs +1450 -0
  86. package/dist/chunk-24XDGNJ6.mjs.map +1 -0
  87. package/dist/chunk-27KYFU7R.mjs +30 -0
  88. package/dist/chunk-27KYFU7R.mjs.map +1 -0
  89. package/dist/chunk-2FFLT5VP.mjs +7 -0
  90. package/dist/chunk-2FFLT5VP.mjs.map +1 -0
  91. package/dist/chunk-2ZZJTBTE.mjs +148 -0
  92. package/dist/chunk-2ZZJTBTE.mjs.map +1 -0
  93. package/dist/chunk-3DQINB57.mjs +15 -0
  94. package/dist/chunk-3DQINB57.mjs.map +1 -0
  95. package/dist/chunk-3VUAM2GY.mjs +52 -0
  96. package/dist/chunk-3VUAM2GY.mjs.map +1 -0
  97. package/dist/chunk-4Q54P737.mjs +19 -0
  98. package/dist/chunk-4Q54P737.mjs.map +1 -0
  99. package/dist/chunk-4RPFRNXG.mjs +62 -0
  100. package/dist/chunk-4RPFRNXG.mjs.map +1 -0
  101. package/dist/chunk-56TI2ZBT.mjs +114 -0
  102. package/dist/chunk-56TI2ZBT.mjs.map +1 -0
  103. package/dist/chunk-6REEQBJI.mjs +62 -0
  104. package/dist/chunk-6REEQBJI.mjs.map +1 -0
  105. package/dist/chunk-AAH2O24U.mjs +325 -0
  106. package/dist/chunk-AAH2O24U.mjs.map +1 -0
  107. package/dist/chunk-B7DAB22K.mjs +16 -0
  108. package/dist/chunk-B7DAB22K.mjs.map +1 -0
  109. package/dist/chunk-BGB7JHIU.mjs +222 -0
  110. package/dist/chunk-BGB7JHIU.mjs.map +1 -0
  111. package/dist/chunk-CRYIEYZZ.mjs +756 -0
  112. package/dist/chunk-CRYIEYZZ.mjs.map +1 -0
  113. package/dist/chunk-CWFWRZWU.mjs +23 -0
  114. package/dist/chunk-CWFWRZWU.mjs.map +1 -0
  115. package/dist/chunk-DELCADNF.mjs +1926 -0
  116. package/dist/chunk-DELCADNF.mjs.map +1 -0
  117. package/dist/chunk-E3I2VDHZ.mjs +292 -0
  118. package/dist/chunk-E3I2VDHZ.mjs.map +1 -0
  119. package/dist/chunk-EEH7HACG.mjs +249 -0
  120. package/dist/chunk-EEH7HACG.mjs.map +1 -0
  121. package/dist/chunk-EKPULYPU.mjs +497 -0
  122. package/dist/chunk-EKPULYPU.mjs.map +1 -0
  123. package/dist/chunk-EW4DTFH3.mjs +69 -0
  124. package/dist/chunk-EW4DTFH3.mjs.map +1 -0
  125. package/dist/chunk-FJ6ZGZIA.mjs +43 -0
  126. package/dist/chunk-FJ6ZGZIA.mjs.map +1 -0
  127. package/dist/chunk-HE7MY3RT.mjs +23 -0
  128. package/dist/chunk-HE7MY3RT.mjs.map +1 -0
  129. package/dist/chunk-HR3A4H4E.mjs +1289 -0
  130. package/dist/chunk-HR3A4H4E.mjs.map +1 -0
  131. package/dist/chunk-I5JWS4Z7.mjs +91 -0
  132. package/dist/chunk-I5JWS4Z7.mjs.map +1 -0
  133. package/dist/chunk-IN3O4R7Q.mjs +932 -0
  134. package/dist/chunk-IN3O4R7Q.mjs.map +1 -0
  135. package/dist/chunk-JIU5GVM7.mjs +414 -0
  136. package/dist/chunk-JIU5GVM7.mjs.map +1 -0
  137. package/dist/chunk-JWANK42G.mjs +170 -0
  138. package/dist/chunk-JWANK42G.mjs.map +1 -0
  139. package/dist/chunk-MDAUF7IL.mjs +9 -0
  140. package/dist/chunk-MDAUF7IL.mjs.map +1 -0
  141. package/dist/chunk-MI64T62E.mjs +26 -0
  142. package/dist/chunk-MI64T62E.mjs.map +1 -0
  143. package/dist/chunk-NJYNJLT7.mjs +172 -0
  144. package/dist/chunk-NJYNJLT7.mjs.map +1 -0
  145. package/dist/chunk-NLBDBJ3R.mjs +97 -0
  146. package/dist/chunk-NLBDBJ3R.mjs.map +1 -0
  147. package/dist/chunk-OGNGPI3M.mjs +333 -0
  148. package/dist/chunk-OGNGPI3M.mjs.map +1 -0
  149. package/dist/chunk-OJV6V7YZ.mjs +552 -0
  150. package/dist/chunk-OJV6V7YZ.mjs.map +1 -0
  151. package/dist/chunk-ONQMRE2G.mjs +26 -0
  152. package/dist/chunk-ONQMRE2G.mjs.map +1 -0
  153. package/dist/chunk-OP6LKXPA.mjs +75 -0
  154. package/dist/chunk-OP6LKXPA.mjs.map +1 -0
  155. package/dist/chunk-QFF3HTHL.mjs +14 -0
  156. package/dist/chunk-QFF3HTHL.mjs.map +1 -0
  157. package/dist/chunk-QKGCW37O.mjs +1175 -0
  158. package/dist/chunk-QKGCW37O.mjs.map +1 -0
  159. package/dist/chunk-R5MKQN6D.mjs +227 -0
  160. package/dist/chunk-R5MKQN6D.mjs.map +1 -0
  161. package/dist/chunk-RXBQ7KXF.mjs +652 -0
  162. package/dist/chunk-RXBQ7KXF.mjs.map +1 -0
  163. package/dist/chunk-S6EZVRZC.mjs +161 -0
  164. package/dist/chunk-S6EZVRZC.mjs.map +1 -0
  165. package/dist/chunk-SGCUDWO3.mjs +396 -0
  166. package/dist/chunk-SGCUDWO3.mjs.map +1 -0
  167. package/dist/chunk-SRWPHN2N.mjs +188 -0
  168. package/dist/chunk-SRWPHN2N.mjs.map +1 -0
  169. package/dist/chunk-T34IULP5.mjs +242 -0
  170. package/dist/chunk-T34IULP5.mjs.map +1 -0
  171. package/dist/chunk-T4X375IG.mjs +100 -0
  172. package/dist/chunk-T4X375IG.mjs.map +1 -0
  173. package/dist/chunk-T6AMRENK.mjs +376 -0
  174. package/dist/chunk-T6AMRENK.mjs.map +1 -0
  175. package/dist/chunk-TDRA5EZI.mjs +325 -0
  176. package/dist/chunk-TDRA5EZI.mjs.map +1 -0
  177. package/dist/chunk-UDREPVEY.mjs +356 -0
  178. package/dist/chunk-UDREPVEY.mjs.map +1 -0
  179. package/dist/chunk-UGMRJMFZ.mjs +172 -0
  180. package/dist/chunk-UGMRJMFZ.mjs.map +1 -0
  181. package/dist/chunk-UMJ5SCIQ.mjs +438 -0
  182. package/dist/chunk-UMJ5SCIQ.mjs.map +1 -0
  183. package/dist/chunk-UTVSYS6S.mjs +270 -0
  184. package/dist/chunk-UTVSYS6S.mjs.map +1 -0
  185. package/dist/chunk-V26V2S3W.mjs +197 -0
  186. package/dist/chunk-V26V2S3W.mjs.map +1 -0
  187. package/dist/chunk-VYD3PDBB.mjs +38 -0
  188. package/dist/chunk-VYD3PDBB.mjs.map +1 -0
  189. package/dist/chunk-WYYP3Y34.mjs +55 -0
  190. package/dist/chunk-WYYP3Y34.mjs.map +1 -0
  191. package/dist/chunk-XIMFP6RB.mjs +161 -0
  192. package/dist/chunk-XIMFP6RB.mjs.map +1 -0
  193. package/dist/chunk-XJ2SXC2Q.mjs +558 -0
  194. package/dist/chunk-XJ2SXC2Q.mjs.map +1 -0
  195. package/dist/chunk-Y74ALKBL.mjs +565 -0
  196. package/dist/chunk-Y74ALKBL.mjs.map +1 -0
  197. package/dist/chunk-ZG3NQI77.mjs +353 -0
  198. package/dist/chunk-ZG3NQI77.mjs.map +1 -0
  199. package/dist/chunk-ZVFYOXDE.mjs +297 -0
  200. package/dist/chunk-ZVFYOXDE.mjs.map +1 -0
  201. package/dist/collapse.d.mts +10 -0
  202. package/dist/collapse.d.ts +10 -0
  203. package/dist/collapse.js +53 -0
  204. package/dist/collapse.js.map +1 -0
  205. package/dist/collapse.mjs +10 -0
  206. package/dist/collapse.mjs.map +1 -0
  207. package/dist/datePicker.d.mts +133 -0
  208. package/dist/datePicker.d.ts +133 -0
  209. package/dist/datePicker.js +482 -0
  210. package/dist/datePicker.js.map +1 -0
  211. package/dist/datePicker.mjs +29 -0
  212. package/dist/datePicker.mjs.map +1 -0
  213. package/dist/displayFile.d.mts +95 -0
  214. package/dist/displayFile.d.ts +95 -0
  215. package/dist/displayFile.js +357 -0
  216. package/dist/displayFile.js.map +1 -0
  217. package/dist/displayFile.mjs +19 -0
  218. package/dist/displayFile.mjs.map +1 -0
  219. package/dist/divider.d.mts +9 -0
  220. package/dist/divider.d.ts +9 -0
  221. package/dist/divider.js +52 -0
  222. package/dist/divider.js.map +1 -0
  223. package/dist/divider.mjs +10 -0
  224. package/dist/divider.mjs.map +1 -0
  225. package/dist/fileUploader.d.mts +86 -0
  226. package/dist/fileUploader.d.ts +86 -0
  227. package/dist/fileUploader.js +722 -0
  228. package/dist/fileUploader.js.map +1 -0
  229. package/dist/fileUploader.mjs +16 -0
  230. package/dist/fileUploader.mjs.map +1 -0
  231. package/dist/flowMap.d.mts +353 -0
  232. package/dist/flowMap.d.ts +353 -0
  233. package/dist/flowMap.js +94806 -0
  234. package/dist/flowMap.js.map +1 -0
  235. package/dist/flowMap.mjs +94585 -0
  236. package/dist/flowMap.mjs.map +1 -0
  237. package/dist/form.d.mts +84 -0
  238. package/dist/form.d.ts +84 -0
  239. package/dist/form.js +144 -0
  240. package/dist/form.js.map +1 -0
  241. package/dist/form.mjs +24 -0
  242. package/dist/form.mjs.map +1 -0
  243. package/dist/icons.d.mts +160 -0
  244. package/dist/icons.d.ts +160 -0
  245. package/dist/icons.js +540 -0
  246. package/dist/icons.js.map +1 -0
  247. package/dist/icons.mjs +306 -0
  248. package/dist/icons.mjs.map +1 -0
  249. package/dist/image.d.mts +49 -0
  250. package/dist/image.d.ts +49 -0
  251. package/dist/image.js +1348 -0
  252. package/dist/image.js.map +1 -0
  253. package/dist/image.mjs +19 -0
  254. package/dist/image.mjs.map +1 -0
  255. package/dist/index.d.ts +46 -0
  256. package/dist/index.js +20198 -0
  257. package/dist/index.js.map +1 -0
  258. package/dist/index.mjs +912 -0
  259. package/dist/index.mjs.map +1 -0
  260. package/dist/input.d.mts +195 -0
  261. package/dist/input.d.ts +195 -0
  262. package/dist/input.js +1101 -0
  263. package/dist/input.js.map +1 -0
  264. package/dist/input.mjs +32 -0
  265. package/dist/input.mjs.map +1 -0
  266. package/dist/jsonEditor.d.mts +13 -0
  267. package/dist/jsonEditor.d.ts +13 -0
  268. package/dist/jsonEditor.js +247 -0
  269. package/dist/jsonEditor.js.map +1 -0
  270. package/dist/jsonEditor.mjs +9 -0
  271. package/dist/jsonEditor.mjs.map +1 -0
  272. package/dist/list.d.mts +83 -0
  273. package/dist/list.d.ts +83 -0
  274. package/dist/list.js +564 -0
  275. package/dist/list.js.map +1 -0
  276. package/dist/list.mjs +39 -0
  277. package/dist/list.mjs.map +1 -0
  278. package/dist/loading.d.mts +48 -0
  279. package/dist/loading.d.ts +48 -0
  280. package/dist/loading.js +383 -0
  281. package/dist/loading.js.map +1 -0
  282. package/dist/loading.mjs +23 -0
  283. package/dist/loading.mjs.map +1 -0
  284. package/dist/markdown.d.mts +14 -0
  285. package/dist/markdown.d.ts +14 -0
  286. package/dist/markdown.js +25927 -0
  287. package/dist/markdown.js.map +1 -0
  288. package/dist/markdown.mjs +25623 -0
  289. package/dist/markdown.mjs.map +1 -0
  290. package/dist/menu.d.mts +368 -0
  291. package/dist/menu.d.ts +368 -0
  292. package/dist/menu.js +1571 -0
  293. package/dist/menu.js.map +1 -0
  294. package/dist/menu.mjs +43 -0
  295. package/dist/menu.mjs.map +1 -0
  296. package/dist/modal.d.mts +90 -0
  297. package/dist/modal.d.ts +90 -0
  298. package/dist/modal.js +883 -0
  299. package/dist/modal.js.map +1 -0
  300. package/dist/modal.mjs +25 -0
  301. package/dist/modal.mjs.map +1 -0
  302. package/dist/overlay.d.mts +2 -0
  303. package/dist/overlay.d.ts +2 -0
  304. package/dist/overlay.js +46 -0
  305. package/dist/overlay.js.map +1 -0
  306. package/dist/overlay.mjs +10 -0
  307. package/dist/overlay.mjs.map +1 -0
  308. package/dist/paper.d.mts +38 -0
  309. package/dist/paper.d.ts +38 -0
  310. package/dist/paper.js +90 -0
  311. package/dist/paper.js.map +1 -0
  312. package/dist/paper.mjs +12 -0
  313. package/dist/paper.mjs.map +1 -0
  314. package/dist/patterns.d.mts +133 -0
  315. package/dist/patterns.d.ts +133 -0
  316. package/dist/patterns.js +483 -0
  317. package/dist/patterns.js.map +1 -0
  318. package/dist/patterns.mjs +46 -0
  319. package/dist/patterns.mjs.map +1 -0
  320. package/dist/process.d.mts +125 -0
  321. package/dist/process.d.ts +125 -0
  322. package/dist/process.js +1471 -0
  323. package/dist/process.js.map +1 -0
  324. package/dist/process.mjs +30 -0
  325. package/dist/process.mjs.map +1 -0
  326. package/dist/progress.d.mts +44 -0
  327. package/dist/progress.d.ts +44 -0
  328. package/dist/progress.js +94 -0
  329. package/dist/progress.js.map +1 -0
  330. package/dist/progress.mjs +14 -0
  331. package/dist/progress.mjs.map +1 -0
  332. package/dist/resizablePanel.d.mts +297 -0
  333. package/dist/resizablePanel.d.ts +297 -0
  334. package/dist/resizablePanel.js +122 -0
  335. package/dist/resizablePanel.js.map +1 -0
  336. package/dist/resizablePanel.mjs +22 -0
  337. package/dist/resizablePanel.mjs.map +1 -0
  338. package/dist/scrollToLoad.d.mts +41 -0
  339. package/dist/scrollToLoad.d.ts +41 -0
  340. package/dist/scrollToLoad.js +256 -0
  341. package/dist/scrollToLoad.js.map +1 -0
  342. package/dist/scrollToLoad.mjs +16 -0
  343. package/dist/scrollToLoad.mjs.map +1 -0
  344. package/dist/select.d.mts +50 -0
  345. package/dist/select.d.ts +50 -0
  346. package/dist/select.js +426 -0
  347. package/dist/select.js.map +1 -0
  348. package/dist/select.mjs +24 -0
  349. package/dist/select.mjs.map +1 -0
  350. package/dist/skeleton.d.mts +13 -0
  351. package/dist/skeleton.d.ts +13 -0
  352. package/dist/skeleton.js +68 -0
  353. package/dist/skeleton.js.map +1 -0
  354. package/dist/skeleton.mjs +11 -0
  355. package/dist/skeleton.mjs.map +1 -0
  356. package/dist/slider.d.mts +65 -0
  357. package/dist/slider.d.ts +65 -0
  358. package/dist/slider.js +106 -0
  359. package/dist/slider.js.map +1 -0
  360. package/dist/slider.mjs +10 -0
  361. package/dist/slider.mjs.map +1 -0
  362. package/dist/stepper.d.mts +98 -0
  363. package/dist/stepper.d.ts +98 -0
  364. package/dist/stepper.js +313 -0
  365. package/dist/stepper.js.map +1 -0
  366. package/dist/stepper.mjs +38 -0
  367. package/dist/stepper.mjs.map +1 -0
  368. package/dist/switch.d.mts +151 -0
  369. package/dist/switch.d.ts +151 -0
  370. package/dist/switch.js +289 -0
  371. package/dist/switch.js.map +1 -0
  372. package/dist/switch.mjs +17 -0
  373. package/dist/switch.mjs.map +1 -0
  374. package/dist/tab.d.mts +182 -0
  375. package/dist/tab.d.ts +182 -0
  376. package/dist/tab.js +1418 -0
  377. package/dist/tab.js.map +1 -0
  378. package/dist/tab.mjs +34 -0
  379. package/dist/tab.mjs.map +1 -0
  380. package/dist/table.d.mts +720 -0
  381. package/dist/table.d.ts +720 -0
  382. package/dist/table.js +10882 -0
  383. package/dist/table.js.map +1 -0
  384. package/dist/table.mjs +63 -0
  385. package/dist/table.mjs.map +1 -0
  386. package/dist/theme.d.mts +30 -4
  387. package/dist/theme.d.ts +30 -4
  388. package/dist/theme.js +3210 -170
  389. package/dist/theme.js.map +1 -1
  390. package/dist/theme.mjs +52 -230
  391. package/dist/theme.mjs.map +1 -1
  392. package/dist/timeline.d.mts +30 -0
  393. package/dist/timeline.d.ts +30 -0
  394. package/dist/timeline.js +273 -0
  395. package/dist/timeline.js.map +1 -0
  396. package/dist/timeline.mjs +14 -0
  397. package/dist/timeline.mjs.map +1 -0
  398. package/dist/toggleButtonGroup.d.mts +125 -0
  399. package/dist/toggleButtonGroup.d.ts +125 -0
  400. package/dist/toggleButtonGroup.js +190 -0
  401. package/dist/toggleButtonGroup.js.map +1 -0
  402. package/dist/toggleButtonGroup.mjs +15 -0
  403. package/dist/toggleButtonGroup.mjs.map +1 -0
  404. package/dist/tooltip.d.mts +13 -0
  405. package/dist/tooltip.d.ts +13 -0
  406. package/dist/tooltip.js +56 -0
  407. package/dist/tooltip.js.map +1 -0
  408. package/dist/tooltip.mjs +10 -0
  409. package/dist/tooltip.mjs.map +1 -0
  410. package/dist/typography.d.mts +21 -23
  411. package/dist/typography.d.ts +21 -23
  412. package/dist/typography.js +37 -63
  413. package/dist/typography.js.map +1 -1
  414. package/dist/typography.mjs +2 -1
  415. package/dist/useForm.d.mts +588 -0
  416. package/dist/useForm.d.ts +588 -0
  417. package/dist/useForm.js +8743 -0
  418. package/dist/useForm.js.map +1 -0
  419. package/dist/useForm.mjs +45 -0
  420. package/dist/useForm.mjs.map +1 -0
  421. package/dist/useSearch.d.mts +126 -0
  422. package/dist/useSearch.d.ts +126 -0
  423. package/dist/useSearch.js +1125 -0
  424. package/dist/useSearch.js.map +1 -0
  425. package/dist/useSearch.mjs +42 -0
  426. package/dist/useSearch.mjs.map +1 -0
  427. package/dist/variablesRenderer.d.mts +45 -0
  428. package/dist/variablesRenderer.d.ts +45 -0
  429. package/dist/variablesRenderer.js +511 -0
  430. package/dist/variablesRenderer.js.map +1 -0
  431. package/dist/variablesRenderer.mjs +21 -0
  432. package/dist/variablesRenderer.mjs.map +1 -0
  433. package/package.json +109 -15
  434. package/dist/chunk-PKADXEAD.mjs +0 -116
  435. package/dist/chunk-PKADXEAD.mjs.map +0 -1
  436. package/dist/chunk-YGBJCPUS.mjs +0 -88
  437. package/dist/chunk-YGBJCPUS.mjs.map +0 -1
  438. package/dist/theme.css +0 -44
  439. package/dist/theme.css.map +0 -1
@@ -0,0 +1,652 @@
1
+ import {
2
+ default as default8
3
+ } from "./chunk-EW4DTFH3.mjs";
4
+ import {
5
+ ReactDropzone_default
6
+ } from "./chunk-XIMFP6RB.mjs";
7
+ import {
8
+ IconButton_default
9
+ } from "./chunk-JIU5GVM7.mjs";
10
+ import {
11
+ default106 as default6,
12
+ default108 as default7,
13
+ default69 as default5
14
+ } from "./chunk-ZVFYOXDE.mjs";
15
+ import {
16
+ default as default4
17
+ } from "./chunk-4RPFRNXG.mjs";
18
+ import {
19
+ default as default2,
20
+ default2 as default3,
21
+ mergeSx
22
+ } from "./chunk-S6EZVRZC.mjs";
23
+
24
+ // src/components/elemental/Image/src/MuiImageList/MuiImageList.tsx
25
+ import ImageList from "@mui/material/ImageList";
26
+ import ImageListItem from "@mui/material/ImageListItem";
27
+ import { jsx } from "react/jsx-runtime";
28
+ var MuiImageList = ({ imageList, cols = 3, rowHeight = 164, width = "100%", height = "auto" }) => {
29
+ return /* @__PURE__ */ jsx(ImageList, { sx: { width, height }, cols, rowHeight, children: imageList.map((item) => /* @__PURE__ */ jsx(ImageListItem, { children: /* @__PURE__ */ jsx(
30
+ "img",
31
+ {
32
+ src: `${item.url}?w=${rowHeight * 2}&h=${rowHeight * 2}&fit=crop&auto=format`,
33
+ alt: item.title ?? "",
34
+ loading: "lazy",
35
+ width: rowHeight,
36
+ height: rowHeight,
37
+ style: { objectFit: "cover" }
38
+ }
39
+ ) }, item.id)) });
40
+ };
41
+ var MuiImageList_default = MuiImageList;
42
+
43
+ // src/components/elemental/Image/src/Cropper/Cropper.tsx
44
+ import "react-image-crop/dist/ReactCrop.css";
45
+
46
+ // src/components/elemental/Image/src/Cropper/theme.ts
47
+ var cropperRootSx = {
48
+ "--image-border-radius": "var(--mui-shape-borderRadius)",
49
+ "--image-border": "2px solid var(--mui-palette-secondary-main)",
50
+ // react-image-crop selection theming
51
+ "--rc-border-color": "var(--mui-palette-border-1)",
52
+ "--rc-focus-color": "var(--mui-palette-primary-main)",
53
+ "--rc-drag-handle-bg-colour": "var(--mui-palette-focus-1)",
54
+ "& .ReactCrop__crop-selection:not(.ReactCrop--no-animate .ReactCrop__crop-selection)": {
55
+ "--animated-dash-light-color": "var(--mui-palette-border-1)",
56
+ "--animated-dash-dark-color": "var(--mui-palette-grey-300)",
57
+ backgroundImage: `
58
+ linear-gradient(to right,var(--animated-dash-light-color) 50%,var(--animated-dash-dark-color) 50%),
59
+ linear-gradient(to right,var(--animated-dash-light-color) 50%,var(--animated-dash-dark-color) 50%),
60
+ linear-gradient(to bottom,var(--animated-dash-light-color) 50%,var(--animated-dash-dark-color) 50%),
61
+ linear-gradient(to bottom,var(--animated-dash-light-color) 50%,var(--animated-dash-dark-color) 50%)`
62
+ },
63
+ [`& .ReactCrop__rule-of-thirds-vt:before,
64
+ .ReactCrop__rule-of-thirds-vt:after,
65
+ .ReactCrop__rule-of-thirds-hz:before,
66
+ .ReactCrop__rule-of-thirds-hz:after`]: {
67
+ background: "#fff6"
68
+ }
69
+ };
70
+
71
+ // src/components/elemental/Image/src/Cropper/layout/CropperLayout.tsx
72
+ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
73
+ function CropperLayout({
74
+ left,
75
+ right,
76
+ leftFooter,
77
+ footer
78
+ }) {
79
+ return /* @__PURE__ */ jsx2(default2, { sx: mergeSx({ display: "flex", flexDirection: "column", gap: 2, height: "100%" }, cropperRootSx), children: /* @__PURE__ */ jsxs(
80
+ default2,
81
+ {
82
+ sx: {
83
+ // stack children vertically on small screens, switch to two‑column grid at md
84
+ display: { xs: "table-row-group", md: "grid" },
85
+ flexDirection: { xs: "column", md: void 0 },
86
+ gridTemplateColumns: { xs: "1fr", md: "1fr 280px" },
87
+ gap: 2,
88
+ alignItems: "start",
89
+ minHeight: 0,
90
+ flex: "1 1 auto",
91
+ overflow: "auto"
92
+ },
93
+ children: [
94
+ /* @__PURE__ */ jsxs(default2, { sx: { display: "flex", flexDirection: "column", justifyContent: "space-between", minHeight: 0, height: "100%", alignItems: "center", width: "-webkit-fill-available" }, children: [
95
+ left,
96
+ leftFooter
97
+ ] }),
98
+ /* @__PURE__ */ jsxs(default2, { sx: { display: "flex", flexDirection: "column", justifyContent: "space-between", minHeight: 0, height: "100%" }, children: [
99
+ right,
100
+ footer
101
+ ] })
102
+ ]
103
+ }
104
+ ) });
105
+ }
106
+
107
+ // src/components/elemental/Image/src/Cropper/sections/CropperSourceSection.tsx
108
+ import ReactCrop from "react-image-crop";
109
+ import { jsx as jsx3 } from "react/jsx-runtime";
110
+ function CropperSourceSection({
111
+ activeBlobUrl,
112
+ crop,
113
+ setCrop,
114
+ setCompletedCrop,
115
+ circularCrop,
116
+ defaultRatio,
117
+ resizeCropEnabled,
118
+ rotate,
119
+ scale,
120
+ imageRef,
121
+ onImageLoad
122
+ }) {
123
+ return /* @__PURE__ */ jsx3(
124
+ default2,
125
+ {
126
+ sx: {
127
+ minHeight: 0,
128
+ overflow: "hidden",
129
+ display: "flex",
130
+ alignItems: "center",
131
+ justifyContent: "center",
132
+ "& .ReactCrop": {
133
+ borderRadius: "var(--image-border-radius)",
134
+ border: "var(--image-border)"
135
+ }
136
+ },
137
+ children: !!activeBlobUrl && /* @__PURE__ */ jsx3(
138
+ ReactCrop,
139
+ {
140
+ crop,
141
+ onChange: (nextCrop) => setCrop(nextCrop),
142
+ onComplete: (nextCrop) => setCompletedCrop(nextCrop),
143
+ circularCrop,
144
+ aspect: defaultRatio,
145
+ keepSelection: true,
146
+ ruleOfThirds: true,
147
+ disabled: !resizeCropEnabled,
148
+ style: { maxWidth: "100%", maxHeight: 420, overflow: "hidden" },
149
+ children: /* @__PURE__ */ jsx3(
150
+ "img",
151
+ {
152
+ ref: imageRef,
153
+ alt: "Crop source",
154
+ src: activeBlobUrl,
155
+ style: {
156
+ display: "block",
157
+ width: "100%",
158
+ maxWidth: "100%",
159
+ maxHeight: 420,
160
+ objectFit: "contain",
161
+ transform: `rotate(${rotate}deg) scale(${scale})`,
162
+ transformOrigin: "center center"
163
+ },
164
+ onLoad: onImageLoad
165
+ }
166
+ )
167
+ }
168
+ )
169
+ }
170
+ );
171
+ }
172
+
173
+ // src/components/elemental/Image/src/Cropper/sections/CropperControlsSection.tsx
174
+ import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
175
+ var scaleMarks = [
176
+ { value: 0.5, label: "0.5x" },
177
+ { value: 1, label: "1x" },
178
+ { value: 1.5, label: "1.5x" },
179
+ { value: 2, label: "2x" },
180
+ { value: 2.5, label: "2.5x" },
181
+ { value: 3, label: "3x" }
182
+ ];
183
+ var rotationMarks = [
184
+ { value: -180, label: "-180\xB0" },
185
+ { value: -90, label: "-90\xB0" },
186
+ { value: 0, label: "0\xB0" },
187
+ { value: 90, label: "90\xB0" },
188
+ { value: 180, label: "180\xB0" }
189
+ ];
190
+ function CropperControlsSection({
191
+ PreviewRenderer,
192
+ canvasRef,
193
+ rotate,
194
+ setRotate,
195
+ scale,
196
+ setScale
197
+ }) {
198
+ return /* @__PURE__ */ jsxs2(default3, { spacing: 2, sx: { minWidth: 0, px: 2 }, children: [
199
+ /* @__PURE__ */ jsx4(default2, { display: "flex", justifyContent: "center", children: PreviewRenderer ? /* @__PURE__ */ jsx4(PreviewRenderer, { ref: canvasRef }) : /* @__PURE__ */ jsx4(
200
+ "canvas",
201
+ {
202
+ ref: canvasRef,
203
+ style: {
204
+ width: "100%",
205
+ maxWidth: 260,
206
+ border: "var(--image-border)",
207
+ borderRadius: "var(--image-border-radius)"
208
+ }
209
+ }
210
+ ) }),
211
+ /* @__PURE__ */ jsxs2(default2, { children: [
212
+ /* @__PURE__ */ jsxs2(default4, { variant: "body2", sx: { mb: 1 }, children: [
213
+ "Rotation (",
214
+ rotate,
215
+ "\xB0)"
216
+ ] }),
217
+ /* @__PURE__ */ jsx4(
218
+ default8,
219
+ {
220
+ min: -180,
221
+ max: 180,
222
+ step: 1,
223
+ marks: rotationMarks,
224
+ value: rotate,
225
+ onChange: (_, value) => setRotate(Array.isArray(value) ? value[0] : value)
226
+ }
227
+ )
228
+ ] }),
229
+ /* @__PURE__ */ jsxs2(default2, { children: [
230
+ /* @__PURE__ */ jsxs2(default4, { variant: "body2", sx: { mb: 1 }, children: [
231
+ "Resize scale (",
232
+ scale.toFixed(2),
233
+ "x)"
234
+ ] }),
235
+ /* @__PURE__ */ jsx4(
236
+ default8,
237
+ {
238
+ min: 0.5,
239
+ max: 3,
240
+ step: 0.05,
241
+ marks: scaleMarks,
242
+ value: scale,
243
+ onChange: (_, value) => setScale(Array.isArray(value) ? value[0] : value)
244
+ }
245
+ )
246
+ ] })
247
+ ] });
248
+ }
249
+
250
+ // src/components/elemental/Image/src/Cropper/sections/CropperActionSection.tsx
251
+ import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
252
+ function CropperActionSection({
253
+ onSave,
254
+ onResetTransforms,
255
+ onClear,
256
+ saveDisabled
257
+ }) {
258
+ return /* @__PURE__ */ jsx5(
259
+ default2,
260
+ {
261
+ sx: {
262
+ display: "flex",
263
+ alignItems: "center",
264
+ justifyContent: "flex-end",
265
+ gap: 1,
266
+ flexWrap: "wrap"
267
+ },
268
+ children: /* @__PURE__ */ jsxs3(default2, { sx: { display: "flex", alignItems: "center", gap: 1, flexWrap: "wrap" }, children: [
269
+ /* @__PURE__ */ jsx5(IconButton_default, { onClick: onResetTransforms, title: "Reset Scale & Rotation", children: /* @__PURE__ */ jsx5(default6, { fontSize: "small" }) }),
270
+ /* @__PURE__ */ jsx5(IconButton_default, { onClick: onClear, color: "error", title: "Remove image", children: /* @__PURE__ */ jsx5(default7, { fontSize: "small" }) }),
271
+ /* @__PURE__ */ jsx5(IconButton_default, { onClick: onSave, color: "success", disabled: saveDisabled, title: "Save", children: /* @__PURE__ */ jsx5(default5, { fontSize: "small" }) })
272
+ ] })
273
+ }
274
+ );
275
+ }
276
+
277
+ // src/components/elemental/Image/src/Cropper/sections/CropperFileSelector.tsx
278
+ import React from "react";
279
+ import { jsx as jsx6 } from "react/jsx-runtime";
280
+ function CropperFileSelector({ accept = "image/*", buttonLabel = "Select Image", onPick }) {
281
+ const [files, setFiles] = React.useState([]);
282
+ React.useEffect(() => {
283
+ }, [files]);
284
+ const lastForwardedRef = React.useRef(null);
285
+ React.useEffect(() => {
286
+ if (!files.length) {
287
+ if (lastForwardedRef.current) {
288
+ lastForwardedRef.current = null;
289
+ onPick?.(null);
290
+ }
291
+ return;
292
+ }
293
+ const pf = files[0];
294
+ if (!pf.blobUrl) return;
295
+ if (lastForwardedRef.current === pf.blobUrl) {
296
+ return;
297
+ }
298
+ let cancelled = false;
299
+ (async () => {
300
+ try {
301
+ const res = await fetch(pf.blobUrl);
302
+ const blob = await res.blob();
303
+ const file = new File([blob], pf.filename || "file", { type: pf.mimeType || void 0 });
304
+ if (!cancelled) {
305
+ lastForwardedRef.current = pf.blobUrl;
306
+ onPick?.(file);
307
+ }
308
+ } catch {
309
+ }
310
+ })();
311
+ return () => {
312
+ cancelled = true;
313
+ };
314
+ }, [files, onPick]);
315
+ const acceptProp = typeof accept === "string" ? { [accept]: [] } : accept;
316
+ return /* @__PURE__ */ jsx6(default2, { sx: { display: "flex", alignItems: "center", pt: 0, width: "100%", justifyContent: "center" }, children: /* @__PURE__ */ jsx6(ReactDropzone_default, { filesProps: [files, setFiles], accept: acceptProp, maxFiles: 1, dropzoneType: "button", label: buttonLabel }) });
317
+ }
318
+
319
+ // src/components/elemental/Image/src/Cropper/hooks/useCropperState.ts
320
+ import React2 from "react";
321
+ import {
322
+ centerCrop,
323
+ convertToPixelCrop,
324
+ makeAspectCrop
325
+ } from "react-image-crop";
326
+ function toRad(degrees) {
327
+ return degrees * Math.PI / 180;
328
+ }
329
+ function defaultCrop() {
330
+ return {
331
+ unit: "%",
332
+ x: 10,
333
+ y: 10,
334
+ width: 80,
335
+ height: 80
336
+ };
337
+ }
338
+ function makeCenteredAspectCrop(mediaWidth, mediaHeight, aspect) {
339
+ return centerCrop(
340
+ makeAspectCrop(
341
+ {
342
+ unit: "%",
343
+ width: 90
344
+ },
345
+ aspect,
346
+ mediaWidth,
347
+ mediaHeight
348
+ ),
349
+ mediaWidth,
350
+ mediaHeight
351
+ );
352
+ }
353
+ function initialCrop(mediaWidth, mediaHeight, defaultRatio, cropConfig) {
354
+ if (defaultRatio) {
355
+ return makeCenteredAspectCrop(mediaWidth, mediaHeight, defaultRatio);
356
+ }
357
+ return { ...defaultCrop(), ...cropConfig };
358
+ }
359
+ function drawPreviewToCanvas(image, canvas, crop, scale, rotate, circularCrop) {
360
+ const context = canvas.getContext("2d");
361
+ if (!context) return;
362
+ if (!crop.width || !crop.height) return;
363
+ const scaleX = image.naturalWidth / image.width;
364
+ const scaleY = image.naturalHeight / image.height;
365
+ const pixelRatio = window.devicePixelRatio || 1;
366
+ canvas.width = Math.floor(crop.width * scaleX * pixelRatio);
367
+ canvas.height = Math.floor(crop.height * scaleY * pixelRatio);
368
+ context.setTransform(pixelRatio, 0, 0, pixelRatio, 0, 0);
369
+ context.imageSmoothingQuality = "high";
370
+ context.clearRect(0, 0, canvas.width, canvas.height);
371
+ const cropX = crop.x * scaleX;
372
+ const cropY = crop.y * scaleY;
373
+ const rotateRads = toRad(rotate);
374
+ const centerX = image.naturalWidth / 2;
375
+ const centerY = image.naturalHeight / 2;
376
+ context.save();
377
+ if (circularCrop) {
378
+ const width = crop.width * scaleX;
379
+ const height = crop.height * scaleY;
380
+ const radius = Math.min(width, height) / 2;
381
+ context.beginPath();
382
+ context.arc(width / 2, height / 2, radius, 0, Math.PI * 2);
383
+ context.closePath();
384
+ context.clip();
385
+ }
386
+ context.translate(-cropX, -cropY);
387
+ context.translate(centerX, centerY);
388
+ context.rotate(rotateRads);
389
+ context.scale(scale, scale);
390
+ context.translate(-centerX, -centerY);
391
+ context.drawImage(
392
+ image,
393
+ 0,
394
+ 0,
395
+ image.naturalWidth,
396
+ image.naturalHeight,
397
+ 0,
398
+ 0,
399
+ image.naturalWidth,
400
+ image.naturalHeight
401
+ );
402
+ context.restore();
403
+ }
404
+ function useCropperState({
405
+ blobUrl,
406
+ onSave,
407
+ setImgNull,
408
+ circularCrop,
409
+ defaultRatio,
410
+ cropConfig
411
+ }) {
412
+ const imageRef = React2.useRef(null);
413
+ const canvasRef = React2.useRef(null);
414
+ const cropConfigRef = React2.useRef(cropConfig);
415
+ cropConfigRef.current = cropConfig;
416
+ const scaleRef = React2.useRef(1);
417
+ const rotateRef = React2.useRef(0);
418
+ const [activeBlobUrl, setActiveBlobUrl] = React2.useState(blobUrl);
419
+ const [crop, setCrop] = React2.useState({ ...defaultCrop(), ...cropConfig });
420
+ const [completedCrop, setCompletedCrop] = React2.useState();
421
+ const [scale, setScale] = React2.useState(1);
422
+ const [rotate, setRotate] = React2.useState(0);
423
+ scaleRef.current = scale;
424
+ rotateRef.current = rotate;
425
+ const applyCropFromImage = React2.useCallback((image) => {
426
+ const { width, height } = image;
427
+ if (!width || !height) return;
428
+ const nextCrop = initialCrop(width, height, defaultRatio, cropConfigRef.current);
429
+ const pixelCrop = convertToPixelCrop(nextCrop, width, height);
430
+ if (!pixelCrop.width || !pixelCrop.height) return;
431
+ setCrop(nextCrop);
432
+ setCompletedCrop(pixelCrop);
433
+ const canvas = canvasRef.current;
434
+ if (canvas) {
435
+ drawPreviewToCanvas(
436
+ image,
437
+ canvas,
438
+ pixelCrop,
439
+ scaleRef.current,
440
+ rotateRef.current,
441
+ circularCrop
442
+ );
443
+ }
444
+ }, [circularCrop, defaultRatio]);
445
+ React2.useEffect(() => {
446
+ setActiveBlobUrl(blobUrl);
447
+ }, [blobUrl]);
448
+ React2.useLayoutEffect(() => {
449
+ if (!activeBlobUrl) {
450
+ setCrop({ ...defaultCrop(), ...cropConfigRef.current });
451
+ setCompletedCrop(void 0);
452
+ setScale(1);
453
+ setRotate(0);
454
+ return;
455
+ }
456
+ setScale(1);
457
+ setRotate(0);
458
+ const tryApply = () => {
459
+ const image = imageRef.current;
460
+ if (image?.complete && image.width > 0 && image.height > 0) {
461
+ applyCropFromImage(image);
462
+ return true;
463
+ }
464
+ return false;
465
+ };
466
+ if (tryApply()) return;
467
+ const frame = requestAnimationFrame(() => {
468
+ tryApply();
469
+ });
470
+ return () => cancelAnimationFrame(frame);
471
+ }, [activeBlobUrl, applyCropFromImage]);
472
+ React2.useEffect(() => {
473
+ if (!completedCrop || !imageRef.current || !canvasRef.current) return;
474
+ drawPreviewToCanvas(
475
+ imageRef.current,
476
+ canvasRef.current,
477
+ completedCrop,
478
+ scale,
479
+ rotate,
480
+ circularCrop
481
+ );
482
+ }, [completedCrop, scale, rotate, circularCrop]);
483
+ const onImageLoad = (e) => {
484
+ applyCropFromImage(e.currentTarget);
485
+ };
486
+ const handleCompletedCrop = (nextCrop) => {
487
+ if (!nextCrop.width || !nextCrop.height) return;
488
+ setCompletedCrop(nextCrop);
489
+ };
490
+ const handleSave = async () => {
491
+ if (!completedCrop || !imageRef.current) return;
492
+ const previewCanvas = document.createElement("canvas");
493
+ drawPreviewToCanvas(
494
+ imageRef.current,
495
+ previewCanvas,
496
+ completedCrop,
497
+ scale,
498
+ rotate,
499
+ circularCrop
500
+ );
501
+ const blob = await new Promise((resolve) => {
502
+ previewCanvas.toBlob((nextBlob) => resolve(nextBlob), "image/png");
503
+ });
504
+ if (!blob) return;
505
+ const resultUrl = URL.createObjectURL(blob);
506
+ await onSave(resultUrl);
507
+ };
508
+ const handleClear = () => {
509
+ setActiveBlobUrl("");
510
+ setImgNull();
511
+ imageRef.current = null;
512
+ const canvas = canvasRef.current;
513
+ if (canvas) {
514
+ const context = canvas.getContext("2d");
515
+ if (context) {
516
+ context.clearRect(0, 0, canvas.width, canvas.height);
517
+ }
518
+ }
519
+ setCrop({ ...defaultCrop(), ...cropConfigRef.current });
520
+ setScale(1);
521
+ setRotate(0);
522
+ setCompletedCrop(void 0);
523
+ };
524
+ const handleResetTransforms = () => {
525
+ setScale(1);
526
+ setRotate(0);
527
+ };
528
+ return {
529
+ imageRef,
530
+ canvasRef,
531
+ activeBlobUrl,
532
+ crop,
533
+ setCrop,
534
+ completedCrop,
535
+ setCompletedCrop: handleCompletedCrop,
536
+ scale,
537
+ setScale,
538
+ rotate,
539
+ setRotate,
540
+ onImageLoad,
541
+ handleSave,
542
+ handleClear,
543
+ handleResetTransforms
544
+ };
545
+ }
546
+
547
+ // src/components/elemental/Image/src/Cropper/Cropper.tsx
548
+ import { Fragment, jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
549
+ var Cropper = ({
550
+ blobUrl,
551
+ onSave,
552
+ setImgNull,
553
+ onClear,
554
+ // optional parent callback when the image is removed
555
+ circularCrop = false,
556
+ defaultRatio,
557
+ resizeCropEnabled = true,
558
+ cropConfig,
559
+ PreviewRenderer,
560
+ footerExtra,
561
+ showFileSelector = false,
562
+ fileSelectorAccept = "image/*",
563
+ fileSelectorButtonLabel = "Select Image",
564
+ onFileSelect
565
+ }) => {
566
+ const {
567
+ imageRef,
568
+ canvasRef,
569
+ activeBlobUrl,
570
+ crop,
571
+ setCrop,
572
+ completedCrop,
573
+ setCompletedCrop,
574
+ scale,
575
+ setScale,
576
+ rotate,
577
+ setRotate,
578
+ onImageLoad,
579
+ handleSave,
580
+ handleClear,
581
+ handleResetTransforms
582
+ } = useCropperState({
583
+ blobUrl,
584
+ onSave,
585
+ setImgNull,
586
+ circularCrop,
587
+ defaultRatio,
588
+ cropConfig
589
+ });
590
+ return /* @__PURE__ */ jsx7(
591
+ CropperLayout,
592
+ {
593
+ left: /* @__PURE__ */ jsx7(
594
+ CropperSourceSection,
595
+ {
596
+ activeBlobUrl,
597
+ crop,
598
+ setCrop,
599
+ setCompletedCrop,
600
+ circularCrop,
601
+ defaultRatio,
602
+ resizeCropEnabled,
603
+ rotate,
604
+ scale,
605
+ imageRef,
606
+ onImageLoad
607
+ }
608
+ ),
609
+ right: /* @__PURE__ */ jsx7(
610
+ CropperControlsSection,
611
+ {
612
+ PreviewRenderer,
613
+ canvasRef,
614
+ rotate,
615
+ setRotate,
616
+ scale,
617
+ setScale
618
+ }
619
+ ),
620
+ leftFooter: /* @__PURE__ */ jsxs4(Fragment, { children: [
621
+ footerExtra,
622
+ showFileSelector && /* @__PURE__ */ jsx7(
623
+ CropperFileSelector,
624
+ {
625
+ accept: fileSelectorAccept,
626
+ buttonLabel: fileSelectorButtonLabel,
627
+ onPick: (f) => onFileSelect?.(f)
628
+ }
629
+ )
630
+ ] }),
631
+ footer: /* @__PURE__ */ jsx7(
632
+ CropperActionSection,
633
+ {
634
+ onSave: handleSave,
635
+ onResetTransforms: handleResetTransforms,
636
+ onClear: () => {
637
+ handleClear();
638
+ onClear?.();
639
+ },
640
+ saveDisabled: !completedCrop || !activeBlobUrl
641
+ }
642
+ )
643
+ }
644
+ );
645
+ };
646
+ var Cropper_default = Cropper;
647
+
648
+ export {
649
+ MuiImageList_default,
650
+ Cropper_default
651
+ };
652
+ //# sourceMappingURL=chunk-RXBQ7KXF.mjs.map