@machinerd/js-module 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (433) hide show
  1. package/README.md +132 -63
  2. package/dist/align-CdK8Ar2w.mjs +1 -0
  3. package/dist/align-Dp4avXIm.cjs +1 -0
  4. package/dist/{api-client-C3o2pO0q.cjs → api-client-BXH8Rm-J.cjs} +1 -1
  5. package/dist/{api-client-C0sbSOQf.mjs → api-client-xK3Ua3Gr.mjs} +1 -1
  6. package/dist/basic-image-D26zahpC.mjs +1 -0
  7. package/dist/basic-image-Wl0IBgOX.cjs +1 -0
  8. package/dist/country-flag-8HG6HZPi.cjs +1 -0
  9. package/dist/country-flag-Bypgu_rR.mjs +1 -0
  10. package/dist/custom-heading-By14y5ug.cjs +1 -0
  11. package/dist/custom-heading-eGRLcDQZ.mjs +1 -0
  12. package/dist/dnd-CeWNVM-V.mjs +1 -0
  13. package/dist/dnd-DHNRwFj8.cjs +1 -0
  14. package/dist/editor/extensions/align/index.cjs +1 -0
  15. package/dist/editor/extensions/align/index.d.cts +2 -0
  16. package/dist/editor/extensions/align/index.d.mts +2 -0
  17. package/dist/editor/extensions/align/index.mjs +1 -0
  18. package/dist/editor/extensions/table-controls/index.cjs +1 -0
  19. package/dist/editor/extensions/table-controls/index.d.cts +2 -0
  20. package/dist/editor/extensions/table-controls/index.d.mts +2 -0
  21. package/dist/editor/extensions/table-controls/index.mjs +1 -0
  22. package/dist/editor/extensions/table-resize/index.cjs +1 -0
  23. package/dist/editor/extensions/table-resize/index.d.cts +2 -0
  24. package/dist/editor/extensions/table-resize/index.d.mts +2 -0
  25. package/dist/editor/extensions/table-resize/index.mjs +1 -0
  26. package/dist/editor/index.cjs +1 -1
  27. package/dist/editor/index.d.cts +51 -73
  28. package/dist/editor/index.d.mts +51 -73
  29. package/dist/editor/index.mjs +1 -1
  30. package/dist/editor/nodes/basic-image/index.cjs +1 -0
  31. package/dist/editor/nodes/basic-image/index.d.cts +4 -0
  32. package/dist/editor/nodes/basic-image/index.d.mts +4 -0
  33. package/dist/editor/nodes/basic-image/index.mjs +1 -0
  34. package/dist/editor/nodes/custom-heading/index.cjs +1 -0
  35. package/dist/editor/nodes/custom-heading/index.d.cts +2 -0
  36. package/dist/editor/nodes/custom-heading/index.d.mts +2 -0
  37. package/dist/editor/nodes/custom-heading/index.mjs +1 -0
  38. package/dist/editor/nodes/menu-wrapper/index.cjs +1 -0
  39. package/dist/editor/nodes/menu-wrapper/index.d.cts +54 -0
  40. package/dist/editor/nodes/menu-wrapper/index.d.mts +54 -0
  41. package/dist/editor/nodes/menu-wrapper/index.mjs +1 -0
  42. package/dist/editor/nodes/node-resize/index.cjs +1 -0
  43. package/dist/editor/nodes/node-resize/index.d.cts +27 -0
  44. package/dist/editor/nodes/node-resize/index.d.mts +27 -0
  45. package/dist/editor/nodes/node-resize/index.mjs +1 -0
  46. package/dist/editor/nodes/node-size/index.cjs +1 -0
  47. package/dist/editor/nodes/node-size/index.d.cts +3 -0
  48. package/dist/editor/nodes/node-size/index.d.mts +3 -0
  49. package/dist/editor/nodes/node-size/index.mjs +1 -0
  50. package/dist/editor/nodes/node-view-context/index.cjs +1 -0
  51. package/dist/editor/nodes/node-view-context/index.d.cts +2 -0
  52. package/dist/editor/nodes/node-view-context/index.d.mts +2 -0
  53. package/dist/editor/nodes/node-view-context/index.mjs +1 -0
  54. package/dist/editor/nodes/subset-image/index.cjs +1 -0
  55. package/dist/editor/nodes/subset-image/index.d.cts +5 -0
  56. package/dist/editor/nodes/subset-image/index.d.mts +5 -0
  57. package/dist/editor/nodes/subset-image/index.mjs +1 -0
  58. package/dist/editor/nodes/table/index.cjs +1 -0
  59. package/dist/editor/nodes/table/index.d.cts +2 -0
  60. package/dist/editor/nodes/table/index.d.mts +2 -0
  61. package/dist/editor/nodes/table/index.mjs +1 -0
  62. package/dist/editor/nodes/tabs/index.cjs +1 -0
  63. package/dist/editor/nodes/tabs/index.d.cts +2 -0
  64. package/dist/editor/nodes/tabs/index.d.mts +2 -0
  65. package/dist/editor/nodes/tabs/index.mjs +1 -0
  66. package/dist/editor-CHuJTM4H.mjs +1 -0
  67. package/dist/editor-DvLUotoh.cjs +1 -0
  68. package/dist/{file-B-UJkabO.mjs → file-CapBKYce.mjs} +1 -1
  69. package/dist/file-DeZ1OKdy.cjs +1 -0
  70. package/dist/hooks/use-delay-unmount/index.cjs +1 -0
  71. package/dist/hooks/use-delay-unmount/index.d.cts +4 -0
  72. package/dist/hooks/use-delay-unmount/index.d.mts +4 -0
  73. package/dist/hooks/use-delay-unmount/index.mjs +1 -0
  74. package/dist/hooks/use-dialog-stack/index.cjs +1 -0
  75. package/dist/hooks/use-dialog-stack/index.d.cts +4 -0
  76. package/dist/hooks/use-dialog-stack/index.d.mts +4 -0
  77. package/dist/hooks/use-dialog-stack/index.mjs +1 -0
  78. package/dist/hooks/use-drag-resize/index.cjs +1 -0
  79. package/dist/hooks/use-drag-resize/index.d.cts +2 -0
  80. package/dist/hooks/use-drag-resize/index.d.mts +2 -0
  81. package/dist/hooks/use-drag-resize/index.mjs +1 -0
  82. package/dist/hooks/use-drag-scroll/index.cjs +1 -0
  83. package/dist/hooks/use-drag-scroll/index.d.cts +13 -0
  84. package/dist/hooks/use-drag-scroll/index.d.mts +13 -0
  85. package/dist/hooks/use-drag-scroll/index.mjs +1 -0
  86. package/dist/hooks/use-effect-once/index.cjs +1 -0
  87. package/dist/hooks/use-effect-once/index.d.cts +7 -0
  88. package/dist/hooks/use-effect-once/index.d.mts +7 -0
  89. package/dist/hooks/use-effect-once/index.mjs +1 -0
  90. package/dist/hooks/use-outside-click/index.cjs +1 -0
  91. package/dist/hooks/use-outside-click/index.d.cts +13 -0
  92. package/dist/hooks/use-outside-click/index.d.mts +13 -0
  93. package/dist/hooks/use-outside-click/index.mjs +1 -0
  94. package/dist/hooks/use-scroll-lock/index.cjs +1 -0
  95. package/dist/hooks/use-scroll-lock/index.d.cts +12 -0
  96. package/dist/hooks/use-scroll-lock/index.d.mts +12 -0
  97. package/dist/hooks/use-scroll-lock/index.mjs +1 -0
  98. package/dist/hooks/use-scroll-top/index.cjs +1 -0
  99. package/dist/hooks/use-scroll-top/index.d.cts +17 -0
  100. package/dist/hooks/use-scroll-top/index.d.mts +17 -0
  101. package/dist/hooks/use-scroll-top/index.mjs +1 -0
  102. package/dist/hooks/use-snackbar/index.cjs +1 -0
  103. package/dist/hooks/{use-snackbar.d.cts → use-snackbar/index.d.cts} +1 -1
  104. package/dist/hooks/{use-snackbar.d.mts → use-snackbar/index.d.mts} +1 -1
  105. package/dist/hooks/use-sticky/index.cjs +1 -0
  106. package/dist/hooks/use-sticky/index.d.cts +9 -0
  107. package/dist/hooks/use-sticky/index.d.mts +9 -0
  108. package/dist/hooks/use-sticky/index.mjs +1 -0
  109. package/dist/hooks/use-subset-image/index.cjs +1 -0
  110. package/dist/hooks/use-subset-image/index.d.cts +2 -0
  111. package/dist/hooks/use-subset-image/index.d.mts +2 -0
  112. package/dist/hooks/use-subset-image/index.mjs +1 -0
  113. package/dist/hooks/use-window-size/index.cjs +1 -0
  114. package/dist/hooks/use-window-size/index.d.cts +6 -0
  115. package/dist/hooks/use-window-size/index.d.mts +6 -0
  116. package/dist/hooks/use-window-size/index.mjs +1 -0
  117. package/dist/image-CAEWHuaM.mjs +1 -0
  118. package/dist/image-kIL2PjTS.cjs +1 -0
  119. package/dist/index-90Zl6qBK.d.cts +17 -0
  120. package/dist/index-BD2sHM7a.d.cts +34 -0
  121. package/dist/index-BJgz2hkX.d.cts +56 -0
  122. package/dist/index-BKqI0jBF.d.mts +43 -0
  123. package/dist/index-BMZtFPh-.d.cts +43 -0
  124. package/dist/index-BT7Y7xkm.d.cts +7 -0
  125. package/dist/index-BTUIpavj.d.mts +34 -0
  126. package/dist/index-BlQhHmTa.d.cts +31 -0
  127. package/dist/index-BoJg4HO3.d.mts +56 -0
  128. package/dist/{util/fetcher.d.cts → index-Bpp6ufv-.d.cts} +2 -2
  129. package/dist/index-BxqkZ148.d.cts +18 -0
  130. package/dist/index-C3wA7a3i.d.mts +7 -0
  131. package/dist/index-CLxl-tUO.d.cts +41 -0
  132. package/dist/index-CV-nhdHd.d.mts +43 -0
  133. package/dist/{util/fetcher.d.mts → index-C_5zGF-K.d.mts} +2 -2
  134. package/dist/index-C_YTuhwX.d.mts +11 -0
  135. package/dist/index-CcpFy_mT.d.mts +17 -0
  136. package/dist/{index-B1YNV_Vm.d.cts → index-CqZGdObz.d.mts} +47 -15
  137. package/dist/index-Cxc49Lmr.d.mts +19 -0
  138. package/dist/index-D-NPxMFr.d.cts +11 -0
  139. package/dist/index-D0Uuydfo.d.cts +6 -0
  140. package/dist/index-D5uh7klO.d.mts +18 -0
  141. package/dist/{index-C8chDULk.d.mts → index-DCzaZKG0.d.cts} +47 -15
  142. package/dist/index-DDG8MvPD.d.mts +31 -0
  143. package/dist/index-DEolXbf5.d.cts +26 -0
  144. package/dist/index-DHXj3w9p.d.mts +40 -0
  145. package/dist/{use-subset-image-Dygkyw-W.d.mts → index-DHyXKIBX.d.cts} +1 -1
  146. package/dist/index-DSVr-P8y.d.mts +45 -0
  147. package/dist/index-DTtrJ-ei.d.cts +10 -0
  148. package/dist/index-D_Hfb-z2.d.cts +45 -0
  149. package/dist/index-DeXwS1TW.d.mts +10 -0
  150. package/dist/index-Dhkwd0rJ.d.cts +19 -0
  151. package/dist/index-DrUJZDtK.d.cts +43 -0
  152. package/dist/index-DvEtYdm4.d.cts +40 -0
  153. package/dist/{use-subset-image-bDB5TSd4.d.cts → index-DxW8JBva.d.mts} +1 -1
  154. package/dist/index-X2XMkoEC.d.mts +26 -0
  155. package/dist/index-aA4ojwuQ.d.mts +6 -0
  156. package/dist/index-wiRVGgrx.d.mts +41 -0
  157. package/dist/index.cjs +1 -1
  158. package/dist/index.d.cts +2 -2
  159. package/dist/index.d.mts +2 -2
  160. package/dist/index.mjs +1 -1
  161. package/dist/label-DeEAgKAc.mjs +1 -0
  162. package/dist/label-jZuNIGyF.cjs +1 -0
  163. package/dist/node-resize-Cs4wR_HY.mjs +1 -0
  164. package/dist/node-resize-dantnBzP.cjs +1 -0
  165. package/dist/node-size-BQQGo7t7.cjs +1 -0
  166. package/dist/node-size-Bg-g2Png.mjs +1 -0
  167. package/dist/node-view-context-D-1j5isf.mjs +1 -0
  168. package/dist/node-view-context-YTl_1gGD.cjs +1 -0
  169. package/dist/providers/api-client/index.cjs +1 -1
  170. package/dist/providers/api-client/index.d.cts +3 -3
  171. package/dist/providers/api-client/index.d.mts +3 -3
  172. package/dist/providers/api-client/index.mjs +1 -1
  173. package/dist/providers/editor/index.cjs +1 -0
  174. package/dist/providers/editor/index.d.cts +21 -0
  175. package/dist/providers/editor/index.d.mts +21 -0
  176. package/dist/providers/editor/index.mjs +1 -0
  177. package/dist/providers/noti-stack/index.cjs +1 -1
  178. package/dist/providers/noti-stack/index.d.cts +2 -2
  179. package/dist/providers/noti-stack/index.mjs +1 -1
  180. package/dist/select-field-CoNJTWRb.cjs +1 -0
  181. package/dist/select-field-DeyQlWxq.mjs +1 -0
  182. package/dist/skeleton-7P1IZD3G.cjs +1 -0
  183. package/dist/skeleton-D4Q9wT-o.mjs +1 -0
  184. package/dist/src-BB55dPBE.mjs +1 -0
  185. package/dist/src-Dz1mULYA.cjs +1 -0
  186. package/dist/styles/admin.css +2424 -0
  187. package/dist/styles/editor.css +2917 -63
  188. package/dist/styles/index.css +788 -184
  189. package/dist/subset-image-AaZA0RuB.cjs +1 -0
  190. package/dist/subset-image-Co0fWefj.mjs +1 -0
  191. package/dist/subset-image-DnZ2TqZY.mjs +1 -0
  192. package/dist/subset-image-P2NQM0-3.cjs +0 -0
  193. package/dist/switch-BDdSF3lu.cjs +1 -0
  194. package/dist/switch-DTQt7BzY.mjs +1 -0
  195. package/dist/table-CKVL_ezW.mjs +1 -0
  196. package/dist/table-DmwOZtdl.cjs +1 -0
  197. package/dist/table-controls-CQmqnc4R.cjs +1 -0
  198. package/dist/table-controls-CpCGiLvR.mjs +1 -0
  199. package/dist/table-resize-DI2Pf2Mi.cjs +1 -0
  200. package/dist/table-resize-w9EsReKV.mjs +1 -0
  201. package/dist/tabs-DQ1db_eg.mjs +1 -0
  202. package/dist/tabs-DiryrHZ7.cjs +1 -0
  203. package/dist/text-field-CTxoUkAg.cjs +1 -0
  204. package/dist/text-field-D2x9nugT.mjs +1 -0
  205. package/dist/ui/admin/async-select-field/index.cjs +1 -0
  206. package/dist/ui/admin/async-select-field/index.d.cts +35 -0
  207. package/dist/ui/admin/async-select-field/index.d.mts +35 -0
  208. package/dist/ui/admin/async-select-field/index.mjs +1 -0
  209. package/dist/ui/admin/country-select/index.cjs +1 -0
  210. package/dist/ui/admin/country-select/index.d.cts +47 -0
  211. package/dist/ui/admin/country-select/index.d.mts +47 -0
  212. package/dist/ui/admin/country-select/index.mjs +1 -0
  213. package/dist/ui/admin/dropzone-field/index.cjs +1 -0
  214. package/dist/ui/admin/dropzone-field/index.d.cts +110 -0
  215. package/dist/ui/admin/dropzone-field/index.d.mts +110 -0
  216. package/dist/ui/admin/dropzone-field/index.mjs +1 -0
  217. package/dist/ui/admin/email-field/index.cjs +1 -0
  218. package/dist/ui/admin/email-field/index.d.cts +9 -0
  219. package/dist/ui/admin/email-field/index.d.mts +9 -0
  220. package/dist/ui/admin/email-field/index.mjs +1 -0
  221. package/dist/ui/admin/file-field/index.cjs +1 -0
  222. package/dist/ui/admin/file-field/index.d.cts +36 -0
  223. package/dist/ui/admin/file-field/index.d.mts +36 -0
  224. package/dist/ui/admin/file-field/index.mjs +1 -0
  225. package/dist/ui/admin/image-list-field/index.cjs +1 -0
  226. package/dist/ui/admin/image-list-field/index.d.cts +53 -0
  227. package/dist/ui/admin/image-list-field/index.d.mts +53 -0
  228. package/dist/ui/admin/image-list-field/index.mjs +1 -0
  229. package/dist/ui/admin/label/index.cjs +1 -0
  230. package/dist/ui/admin/label/index.d.cts +2 -0
  231. package/dist/ui/admin/label/index.d.mts +2 -0
  232. package/dist/ui/admin/label/index.mjs +1 -0
  233. package/dist/ui/admin/priority-field/index.cjs +1 -0
  234. package/dist/ui/admin/priority-field/index.d.cts +19 -0
  235. package/dist/ui/admin/priority-field/index.d.mts +19 -0
  236. package/dist/ui/admin/priority-field/index.mjs +1 -0
  237. package/dist/ui/admin/select-field/index.cjs +1 -0
  238. package/dist/ui/admin/select-field/index.d.cts +3 -0
  239. package/dist/ui/admin/select-field/index.d.mts +3 -0
  240. package/dist/ui/admin/select-field/index.mjs +1 -0
  241. package/dist/ui/admin/series-field/index.cjs +1 -0
  242. package/dist/ui/admin/series-field/index.d.cts +37 -0
  243. package/dist/ui/admin/series-field/index.d.mts +37 -0
  244. package/dist/ui/admin/series-field/index.mjs +1 -0
  245. package/dist/ui/admin/sns-field/index.cjs +1 -0
  246. package/dist/ui/admin/sns-field/index.d.cts +50 -0
  247. package/dist/ui/admin/sns-field/index.d.mts +50 -0
  248. package/dist/ui/admin/sns-field/index.mjs +1 -0
  249. package/dist/ui/admin/source-field/index.cjs +1 -0
  250. package/dist/ui/admin/source-field/index.d.cts +34 -0
  251. package/dist/ui/admin/source-field/index.d.mts +34 -0
  252. package/dist/ui/admin/source-field/index.mjs +1 -0
  253. package/dist/ui/admin/text-area-field/index.cjs +1 -0
  254. package/dist/ui/admin/text-area-field/index.d.cts +20 -0
  255. package/dist/ui/admin/text-area-field/index.d.mts +20 -0
  256. package/dist/ui/admin/text-area-field/index.mjs +1 -0
  257. package/dist/ui/admin/text-field/index.cjs +1 -0
  258. package/dist/ui/admin/text-field/index.d.cts +3 -0
  259. package/dist/ui/admin/text-field/index.d.mts +3 -0
  260. package/dist/ui/admin/text-field/index.mjs +1 -0
  261. package/dist/ui/admin/url-field/index.cjs +1 -0
  262. package/dist/ui/admin/url-field/index.d.cts +9 -0
  263. package/dist/ui/admin/url-field/index.d.mts +9 -0
  264. package/dist/ui/admin/url-field/index.mjs +1 -0
  265. package/dist/ui/admin/video-field/index.cjs +1 -0
  266. package/dist/ui/admin/video-field/index.d.cts +24 -0
  267. package/dist/ui/admin/video-field/index.d.mts +24 -0
  268. package/dist/ui/admin/video-field/index.mjs +1 -0
  269. package/dist/ui/admin/with-extra-field/index.cjs +1 -0
  270. package/dist/ui/admin/with-extra-field/index.d.cts +19 -0
  271. package/dist/ui/admin/with-extra-field/index.d.mts +19 -0
  272. package/dist/ui/admin/with-extra-field/index.mjs +1 -0
  273. package/dist/ui/bottom-app-bar/index.cjs +1 -0
  274. package/dist/ui/bottom-app-bar/index.d.cts +21 -0
  275. package/dist/ui/bottom-app-bar/index.d.mts +21 -0
  276. package/dist/ui/bottom-app-bar/index.mjs +1 -0
  277. package/dist/ui/button/index.cjs +1 -0
  278. package/dist/{button-DHvx-GAg.d.cts → ui/button/index.d.cts} +11 -11
  279. package/dist/{button-DRIyBtEB.d.mts → ui/button/index.d.mts} +13 -13
  280. package/dist/ui/button/index.mjs +1 -0
  281. package/dist/ui/carousel/index.cjs +1 -1
  282. package/dist/ui/carousel/index.d.cts +9 -9
  283. package/dist/ui/carousel/index.mjs +1 -1
  284. package/dist/ui/conditional-wrapper/index.cjs +1 -0
  285. package/dist/ui/conditional-wrapper/index.d.cts +29 -0
  286. package/dist/ui/conditional-wrapper/index.d.mts +29 -0
  287. package/dist/ui/conditional-wrapper/index.mjs +1 -0
  288. package/dist/ui/country-flag/index.cjs +1 -0
  289. package/dist/ui/country-flag/index.d.cts +13 -0
  290. package/dist/ui/country-flag/index.d.mts +13 -0
  291. package/dist/ui/country-flag/index.mjs +1 -0
  292. package/dist/ui/dialog/index.cjs +1 -1
  293. package/dist/ui/dialog/index.d.cts +5 -5
  294. package/dist/ui/dialog/index.d.mts +7 -7
  295. package/dist/ui/dialog/index.mjs +1 -1
  296. package/dist/ui/dnd/index.cjs +1 -1
  297. package/dist/ui/dnd/index.d.cts +2 -2
  298. package/dist/ui/dnd/index.mjs +1 -1
  299. package/dist/ui/dropdown/index.cjs +1 -1
  300. package/dist/ui/dropdown/index.d.cts +16 -44
  301. package/dist/ui/dropdown/index.d.mts +16 -44
  302. package/dist/ui/dropdown/index.mjs +1 -1
  303. package/dist/ui/image/index.cjs +1 -1
  304. package/dist/ui/image/index.d.cts +3 -45
  305. package/dist/ui/image/index.d.mts +3 -45
  306. package/dist/ui/image/index.mjs +1 -1
  307. package/dist/ui/input/index.cjs +1 -0
  308. package/dist/ui/input/index.d.cts +22 -0
  309. package/dist/ui/input/index.d.mts +22 -0
  310. package/dist/ui/input/index.mjs +1 -0
  311. package/dist/ui/motion-dialog/index.cjs +1 -1
  312. package/dist/ui/motion-dialog/index.mjs +1 -1
  313. package/dist/ui/radius-handler/index.cjs +1 -0
  314. package/dist/ui/radius-handler/index.d.cts +17 -0
  315. package/dist/ui/radius-handler/index.d.mts +17 -0
  316. package/dist/ui/radius-handler/index.mjs +1 -0
  317. package/dist/ui/sheet/index.cjs +1 -1
  318. package/dist/ui/sheet/index.d.cts +2 -2
  319. package/dist/ui/sheet/index.d.mts +2 -2
  320. package/dist/ui/sheet/index.mjs +1 -1
  321. package/dist/ui/skeleton/index.cjs +1 -0
  322. package/dist/ui/skeleton/index.d.cts +26 -0
  323. package/dist/ui/skeleton/index.d.mts +26 -0
  324. package/dist/ui/skeleton/index.mjs +1 -0
  325. package/dist/ui/stable-text/index.cjs +1 -0
  326. package/dist/ui/stable-text/index.d.cts +13 -0
  327. package/dist/ui/stable-text/index.d.mts +13 -0
  328. package/dist/ui/stable-text/index.mjs +1 -0
  329. package/dist/ui/switch/index.cjs +1 -1
  330. package/dist/ui/switch/index.d.cts +1 -15
  331. package/dist/ui/switch/index.d.mts +1 -15
  332. package/dist/ui/switch/index.mjs +1 -1
  333. package/dist/ui/tooltip/index.cjs +1 -1
  334. package/dist/ui/tooltip/index.d.cts +2 -2
  335. package/dist/ui/tooltip/index.d.mts +2 -2
  336. package/dist/ui/tooltip/index.mjs +1 -1
  337. package/dist/use-delay-unmount-CNNJXNX5.cjs +1 -0
  338. package/dist/use-delay-unmount-_wzkutyv.mjs +1 -0
  339. package/dist/use-drag-resize--3PrrhJj.mjs +1 -0
  340. package/dist/use-drag-resize-BO3zANv3.cjs +1 -0
  341. package/dist/use-outside-click-BS2UOXoV.cjs +1 -0
  342. package/dist/use-outside-click-tsaJo3cz.mjs +1 -0
  343. package/dist/use-subset-image-B9ZSiVjx.mjs +1 -0
  344. package/dist/use-subset-image-BUurDItP.cjs +1 -0
  345. package/dist/util/browser/index.cjs +1 -0
  346. package/dist/util/{browser.d.cts → browser/index.d.cts} +1 -1
  347. package/dist/util/{browser.d.mts → browser/index.d.mts} +1 -1
  348. package/dist/util/common/index.cjs +1 -0
  349. package/dist/util/{common.d.cts → common/index.d.cts} +5 -5
  350. package/dist/util/{common.d.mts → common/index.d.mts} +5 -5
  351. package/dist/{common-ZUMpASnc.mjs → util/common/index.mjs} +1 -1
  352. package/dist/util/date/index.cjs +1 -0
  353. package/dist/util/{date.d.cts → date/index.d.cts} +1 -1
  354. package/dist/util/{date.d.mts → date/index.d.mts} +1 -1
  355. package/dist/util/editor/index.cjs +1 -0
  356. package/dist/util/editor/index.d.cts +55 -0
  357. package/dist/util/editor/index.d.mts +55 -0
  358. package/dist/util/editor/index.mjs +1 -0
  359. package/dist/util/fetcher/index.d.cts +2 -0
  360. package/dist/util/fetcher/index.d.mts +2 -0
  361. package/dist/util/file/index.cjs +1 -0
  362. package/dist/util/{file.d.mts → file/index.d.cts} +2 -2
  363. package/dist/util/{file.d.cts → file/index.d.mts} +2 -2
  364. package/dist/util/file/index.mjs +1 -0
  365. package/dist/util/format/index.cjs +1 -0
  366. package/dist/util/format/index.d.cts +6 -0
  367. package/dist/util/format/index.d.mts +6 -0
  368. package/dist/util/format/index.mjs +1 -0
  369. package/dist/util/generator/index.cjs +1 -0
  370. package/dist/util/{generator.d.cts → generator/index.d.cts} +1 -1
  371. package/dist/util/{generator.d.mts → generator/index.d.mts} +1 -1
  372. package/dist/util/phone/index.cjs +1 -0
  373. package/dist/util/{phone.d.cts → phone/index.d.cts} +1 -1
  374. package/dist/util/{phone.d.mts → phone/index.d.mts} +1 -1
  375. package/package.json +151 -108
  376. package/dist/button-CQZuaIU7.mjs +0 -1
  377. package/dist/button-ChX3XGbR.cjs +0 -1
  378. package/dist/common-B8HXyhZa.cjs +0 -1
  379. package/dist/common-CWHkXe0F.mjs +0 -1
  380. package/dist/common-D4sUwkFd.cjs +0 -1
  381. package/dist/file-5mweNdAM.cjs +0 -1
  382. package/dist/format-1_RTNUQv.mjs +0 -1
  383. package/dist/format-DEuImTYJ.cjs +0 -1
  384. package/dist/hooks/common/index.cjs +0 -1
  385. package/dist/hooks/common/index.d.cts +0 -72
  386. package/dist/hooks/common/index.d.mts +0 -72
  387. package/dist/hooks/common/index.mjs +0 -1
  388. package/dist/hooks/use-snackbar.cjs +0 -1
  389. package/dist/skeleton-B5ZccRFX.cjs +0 -1
  390. package/dist/skeleton-Y22bmaaB.mjs +0 -1
  391. package/dist/src-6KfzqI9Z.cjs +0 -1
  392. package/dist/src-CIMlbgv1.mjs +0 -1
  393. package/dist/ui/index.cjs +0 -1
  394. package/dist/ui/index.d.cts +0 -92
  395. package/dist/ui/index.d.mts +0 -92
  396. package/dist/ui/index.mjs +0 -1
  397. package/dist/ui/preserve-focus-button/index.cjs +0 -1
  398. package/dist/ui/preserve-focus-button/index.d.cts +0 -12
  399. package/dist/ui/preserve-focus-button/index.d.mts +0 -12
  400. package/dist/ui/preserve-focus-button/index.mjs +0 -1
  401. package/dist/ui-Bs9PP9eC.cjs +0 -1
  402. package/dist/ui-D2DoC_0E.mjs +0 -1
  403. package/dist/use-drag-resize-BdeLdulk.mjs +0 -1
  404. package/dist/use-drag-resize-DEgcua2U.d.cts +0 -48
  405. package/dist/use-drag-resize-DRHPv5RK.d.mts +0 -48
  406. package/dist/use-drag-resize-DeDqPC4h.cjs +0 -1
  407. package/dist/use-subset-image-Df2fCrtH.mjs +0 -1
  408. package/dist/use-subset-image-o_gmC1HL.cjs +0 -1
  409. package/dist/util/browser.cjs +0 -1
  410. package/dist/util/common.cjs +0 -1
  411. package/dist/util/common.mjs +0 -1
  412. package/dist/util/date.cjs +0 -1
  413. package/dist/util/editor.cjs +0 -1
  414. package/dist/util/editor.d.cts +0 -21
  415. package/dist/util/editor.d.mts +0 -21
  416. package/dist/util/editor.mjs +0 -1
  417. package/dist/util/file.cjs +0 -1
  418. package/dist/util/file.mjs +0 -1
  419. package/dist/util/format.cjs +0 -1
  420. package/dist/util/format.d.cts +0 -34
  421. package/dist/util/format.d.mts +0 -34
  422. package/dist/util/format.mjs +0 -1
  423. package/dist/util/generator.cjs +0 -1
  424. package/dist/util/phone.cjs +0 -1
  425. /package/dist/hooks/{use-snackbar.mjs → use-snackbar/index.mjs} +0 -0
  426. /package/dist/{use-dialog-stack-YiLs-sNf.cjs → use-dialog-stack-CH2nhH1Q.cjs} +0 -0
  427. /package/dist/{use-dialog-stack-Crj8YWJl.mjs → use-dialog-stack-nI1GTvfl.mjs} +0 -0
  428. /package/dist/util/{browser.mjs → browser/index.mjs} +0 -0
  429. /package/dist/util/{date.mjs → date/index.mjs} +0 -0
  430. /package/dist/util/{fetcher.cjs → fetcher/index.cjs} +0 -0
  431. /package/dist/util/{fetcher.mjs → fetcher/index.mjs} +0 -0
  432. /package/dist/util/{generator.mjs → generator/index.mjs} +0 -0
  433. /package/dist/util/{phone.mjs → phone/index.mjs} +0 -0
@@ -0,0 +1,13 @@
1
+ import * as react0 from "react";
2
+
3
+ //#region src/hooks/use-drag-scroll/index.d.ts
4
+ declare function useDragScroll(speed?: number): {
5
+ ref: react0.RefObject<HTMLDivElement>;
6
+ onMouseDown: (e: React.MouseEvent) => void;
7
+ onMouseLeave: () => void;
8
+ onMouseUp: () => void;
9
+ onMouseMove: (e: React.MouseEvent) => void;
10
+ onClickCapture: (e: React.MouseEvent) => void;
11
+ };
12
+ //#endregion
13
+ export { useDragScroll };
@@ -0,0 +1 @@
1
+ "use client";import{useRef as e,useState as t}from"react";function n(n=1){let r=e(null),[i,a]=t(!1),[o,s]=t(0),[c,l]=t(0),u=e(!1);return{ref:r,onMouseDown:e=>{r.current&&(a(!0),u.current=!1,s(e.pageX-r.current.offsetLeft),l(r.current.scrollLeft))},onMouseLeave:()=>a(!1),onMouseUp:()=>a(!1),onMouseMove:e=>{if(!i||!r.current)return;e.preventDefault();let t=(e.pageX-r.current.offsetLeft-o)*n;Math.abs(t)>10&&(u.current=!0),r.current.scrollLeft=c-t},onClickCapture:e=>{u.current&&(e.stopPropagation(),e.preventDefault())}}}export{n as useDragScroll};
@@ -0,0 +1 @@
1
+ "use client";const e=require(`../../chunk-Bmb41Sf3.cjs`);let t=require(`react`);const n=Symbol(`useEffectOnce.skip`);function r(e,r){let i=(0,t.useRef)(!1);(0,t.useEffect)(()=>{if(i.current)return;let t=e();if(t!==n&&(i.current=!0,typeof t==`function`))return t},r)}exports.SKIP=n,exports.useEffectOnce=r;
@@ -0,0 +1,7 @@
1
+ import { DependencyList, EffectCallback } from "react";
2
+
3
+ //#region src/hooks/use-effect-once/index.d.ts
4
+ declare const SKIP: unique symbol;
5
+ declare function useEffectOnce(effect: () => ReturnType<EffectCallback> | typeof SKIP, deps?: DependencyList): void;
6
+ //#endregion
7
+ export { SKIP, useEffectOnce };
@@ -0,0 +1,7 @@
1
+ import { DependencyList, EffectCallback } from "react";
2
+
3
+ //#region src/hooks/use-effect-once/index.d.ts
4
+ declare const SKIP: unique symbol;
5
+ declare function useEffectOnce(effect: () => ReturnType<EffectCallback> | typeof SKIP, deps?: DependencyList): void;
6
+ //#endregion
7
+ export { SKIP, useEffectOnce };
@@ -0,0 +1 @@
1
+ "use client";import{useEffect as e,useRef as t}from"react";const n=Symbol(`useEffectOnce.skip`);function r(r,i){let a=t(!1);e(()=>{if(a.current)return;let e=r();if(e!==n&&(a.current=!0,typeof e==`function`))return e},i)}export{n as SKIP,r as useEffectOnce};
@@ -0,0 +1 @@
1
+ "use client";const e=require(`../../use-outside-click-BS2UOXoV.cjs`);exports.useOutsideClick=e.t;
@@ -0,0 +1,13 @@
1
+ import { Dispatch, RefObject, SetStateAction } from "react";
2
+
3
+ //#region src/hooks/use-outside-click/index.d.ts
4
+ interface UseOutsideClickProps {
5
+ ref: RefObject<HTMLElement | null>;
6
+ setOpen: Dispatch<SetStateAction<boolean>>;
7
+ }
8
+ declare function useOutsideClick({
9
+ ref,
10
+ setOpen
11
+ }: UseOutsideClickProps): void;
12
+ //#endregion
13
+ export { UseOutsideClickProps, useOutsideClick };
@@ -0,0 +1,13 @@
1
+ import { Dispatch, RefObject, SetStateAction } from "react";
2
+
3
+ //#region src/hooks/use-outside-click/index.d.ts
4
+ interface UseOutsideClickProps {
5
+ ref: RefObject<HTMLElement | null>;
6
+ setOpen: Dispatch<SetStateAction<boolean>>;
7
+ }
8
+ declare function useOutsideClick({
9
+ ref,
10
+ setOpen
11
+ }: UseOutsideClickProps): void;
12
+ //#endregion
13
+ export { UseOutsideClickProps, useOutsideClick };
@@ -0,0 +1 @@
1
+ "use client";import{t as e}from"../../use-outside-click-tsaJo3cz.mjs";export{e as useOutsideClick};
@@ -0,0 +1 @@
1
+ "use client";const e=require(`../../chunk-Bmb41Sf3.cjs`);let t=require(`react`);const n=[`mouse`,`touch`];let r=0,i;function a(){r===0&&(i=document.body.style.overflow,document.body.style.overflow=`hidden`),r+=1}function o(){r=Math.max(0,r-1),r===0&&(document.body.style.overflow=i||`unset`,i=void 0)}function s({open:e,type:r=n}){let i=(0,t.useCallback)(e=>{e.preventDefault()},[]),s=(0,t.useCallback)(e=>{e.preventDefault()},[]);(0,t.useEffect)(()=>{let t=e&&r.includes(`mouse`),n=e&&r.includes(`touch`);return t&&(a(),document.addEventListener(`wheel`,s,{passive:!1})),n&&document.addEventListener(`touchmove`,i,{passive:!1}),()=>{t&&(o(),document.removeEventListener(`wheel`,s)),n&&document.removeEventListener(`touchmove`,i)}},[e,r,i,s])}exports.useScrollLock=s;
@@ -0,0 +1,12 @@
1
+ //#region src/hooks/use-scroll-lock/index.d.ts
2
+ type ScrollLockType = 'mouse' | 'touch';
3
+ interface UseScrollLockProps {
4
+ open: boolean;
5
+ type?: readonly ScrollLockType[];
6
+ }
7
+ declare function useScrollLock({
8
+ open,
9
+ type
10
+ }: UseScrollLockProps): void;
11
+ //#endregion
12
+ export { UseScrollLockProps, useScrollLock };
@@ -0,0 +1,12 @@
1
+ //#region src/hooks/use-scroll-lock/index.d.ts
2
+ type ScrollLockType = 'mouse' | 'touch';
3
+ interface UseScrollLockProps {
4
+ open: boolean;
5
+ type?: readonly ScrollLockType[];
6
+ }
7
+ declare function useScrollLock({
8
+ open,
9
+ type
10
+ }: UseScrollLockProps): void;
11
+ //#endregion
12
+ export { UseScrollLockProps, useScrollLock };
@@ -0,0 +1 @@
1
+ "use client";import{useCallback as e,useEffect as t}from"react";const n=[`mouse`,`touch`];let r=0,i;function a(){r===0&&(i=document.body.style.overflow,document.body.style.overflow=`hidden`),r+=1}function o(){r=Math.max(0,r-1),r===0&&(document.body.style.overflow=i||`unset`,i=void 0)}function s({open:r,type:i=n}){let s=e(e=>{e.preventDefault()},[]),c=e(e=>{e.preventDefault()},[]);t(()=>{let e=r&&i.includes(`mouse`),t=r&&i.includes(`touch`);return e&&(a(),document.addEventListener(`wheel`,c,{passive:!1})),t&&document.addEventListener(`touchmove`,s,{passive:!1}),()=>{e&&(o(),document.removeEventListener(`wheel`,c)),t&&document.removeEventListener(`touchmove`,s)}},[r,i,s,c])}export{s as useScrollLock};
@@ -0,0 +1 @@
1
+ "use client";const e=require(`../../chunk-Bmb41Sf3.cjs`);let t=require(`react`);function n({enabled:e=!0,behavior:n=`smooth`}={}){let[r,i]=(0,t.useState)(!1),a=(0,t.useRef)(null),o=(0,t.useCallback)(()=>{window.scrollTo({top:0,behavior:n})},[n]);return(0,t.useEffect)(()=>{let t=a.current;if(!t||!e){i(!1);return}let n=new IntersectionObserver(e=>{let t=e[0];t&&i(!t.isIntersecting)},{root:null,rootMargin:`0px`,threshold:0});return n.observe(t),()=>n.disconnect()},[e]),{isVisible:r,handleScrolToTop:o,ref:a}}exports.useScrollTop=n;
@@ -0,0 +1,17 @@
1
+ import * as react0 from "react";
2
+
3
+ //#region src/hooks/use-scroll-top/index.d.ts
4
+ interface UseScrollTopProps {
5
+ enabled?: boolean;
6
+ behavior?: ScrollBehavior;
7
+ }
8
+ declare function useScrollTop({
9
+ enabled,
10
+ behavior
11
+ }?: UseScrollTopProps): {
12
+ isVisible: boolean;
13
+ handleScrolToTop: () => void;
14
+ ref: react0.RefObject<HTMLDivElement>;
15
+ };
16
+ //#endregion
17
+ export { UseScrollTopProps, useScrollTop };
@@ -0,0 +1,17 @@
1
+ import * as react2 from "react";
2
+
3
+ //#region src/hooks/use-scroll-top/index.d.ts
4
+ interface UseScrollTopProps {
5
+ enabled?: boolean;
6
+ behavior?: ScrollBehavior;
7
+ }
8
+ declare function useScrollTop({
9
+ enabled,
10
+ behavior
11
+ }?: UseScrollTopProps): {
12
+ isVisible: boolean;
13
+ handleScrolToTop: () => void;
14
+ ref: react2.RefObject<HTMLDivElement>;
15
+ };
16
+ //#endregion
17
+ export { UseScrollTopProps, useScrollTop };
@@ -0,0 +1 @@
1
+ "use client";import{useCallback as e,useEffect as t,useRef as n,useState as r}from"react";function i({enabled:i=!0,behavior:a=`smooth`}={}){let[o,s]=r(!1),c=n(null),l=e(()=>{window.scrollTo({top:0,behavior:a})},[a]);return t(()=>{let e=c.current;if(!e||!i){s(!1);return}let t=new IntersectionObserver(e=>{let t=e[0];t&&s(!t.isIntersecting)},{root:null,rootMargin:`0px`,threshold:0});return t.observe(e),()=>t.disconnect()},[i]),{isVisible:o,handleScrolToTop:l,ref:c}}export{i as useScrollTop};
@@ -0,0 +1 @@
1
+ "use client";const e=require(`../../chunk-Bmb41Sf3.cjs`);let t=require(`notistack`);function n(){let{enqueueSnackbar:e}=(0,t.useSnackbar)();return{enqueueSnackbar:e,successSnackbar:t=>{e(t,{variant:`success`,autoHideDuration:2e3,anchorOrigin:{horizontal:`left`,vertical:`bottom`}})},errSnackbar:t=>{e(t,{variant:`error`,autoHideDuration:2e3,anchorOrigin:{horizontal:`left`,vertical:`bottom`}})}}}exports.useSnackbar=n;
@@ -1,6 +1,6 @@
1
1
  import * as notistack0 from "notistack";
2
2
 
3
- //#region src/hooks/use-snackbar.d.ts
3
+ //#region src/hooks/use-snackbar/index.d.ts
4
4
  declare function useSnackbar(): {
5
5
  enqueueSnackbar: notistack0.EnqueueSnackbar;
6
6
  successSnackbar: (msg: string) => void;
@@ -1,6 +1,6 @@
1
1
  import * as notistack0 from "notistack";
2
2
 
3
- //#region src/hooks/use-snackbar.d.ts
3
+ //#region src/hooks/use-snackbar/index.d.ts
4
4
  declare function useSnackbar(): {
5
5
  enqueueSnackbar: notistack0.EnqueueSnackbar;
6
6
  successSnackbar: (msg: string) => void;
@@ -0,0 +1 @@
1
+ "use client";const e=require(`../../chunk-Bmb41Sf3.cjs`);let t=require(`react`);function n(e){if(!e)return null;let t=e.parentElement;for(;t;){let{overflowY:e,overflow:n}=getComputedStyle(t);if(e===`auto`||e===`scroll`||n===`auto`||n===`scroll`)return t;t=t.parentElement}return null}function r(){let[e,r]=(0,t.useState)(null),[i,a]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{if(!e)return;let t=n(e),r=new IntersectionObserver(([e])=>{let t=e.rootBounds?.top??0,n=e.boundingClientRect.top<t;a(!e.isIntersecting&&n)},{root:t,threshold:0,rootMargin:`0px`});return r.observe(e),()=>r.disconnect()},[e]),{sentinelRef:r,isStuck:i}}exports.useSticky=r;
@@ -0,0 +1,9 @@
1
+ import * as react1 from "react";
2
+
3
+ //#region src/hooks/use-sticky/index.d.ts
4
+ declare function useSticky(): {
5
+ sentinelRef: react1.Dispatch<react1.SetStateAction<HTMLDivElement | null>>;
6
+ isStuck: boolean;
7
+ };
8
+ //#endregion
9
+ export { useSticky };
@@ -0,0 +1,9 @@
1
+ import * as react0 from "react";
2
+
3
+ //#region src/hooks/use-sticky/index.d.ts
4
+ declare function useSticky(): {
5
+ sentinelRef: react0.Dispatch<react0.SetStateAction<HTMLDivElement | null>>;
6
+ isStuck: boolean;
7
+ };
8
+ //#endregion
9
+ export { useSticky };
@@ -0,0 +1 @@
1
+ "use client";import{useEffect as e,useState as t}from"react";function n(e){if(!e)return null;let t=e.parentElement;for(;t;){let{overflowY:e,overflow:n}=getComputedStyle(t);if(e===`auto`||e===`scroll`||n===`auto`||n===`scroll`)return t;t=t.parentElement}return null}function r(){let[r,i]=t(null),[a,o]=t(!1);return e(()=>{if(!r)return;let e=n(r),t=new IntersectionObserver(([e])=>{let t=e.rootBounds?.top??0,n=e.boundingClientRect.top<t;o(!e.isIntersecting&&n)},{root:e,threshold:0,rootMargin:`0px`});return t.observe(r),()=>t.disconnect()},[r]),{sentinelRef:i,isStuck:a}}export{r as useSticky};
@@ -0,0 +1 @@
1
+ "use client";require(`../../src-Dz1mULYA.cjs`),require(`../../file-DeZ1OKdy.cjs`),require(`../../api-client-BXH8Rm-J.cjs`);const e=require(`../../use-subset-image-BUurDItP.cjs`);exports.SUBSETS=e.t,exports.useSubsetImage=e.n;
@@ -0,0 +1,2 @@
1
+ import { a as useSubsetImage, i as UseSubsetImageProps, n as Folder, r as SUBSETS, t as BaseProps } from "../../index-DHyXKIBX.cjs";
2
+ export { BaseProps, Folder, SUBSETS, UseSubsetImageProps, useSubsetImage };
@@ -0,0 +1,2 @@
1
+ import { a as useSubsetImage, i as UseSubsetImageProps, n as Folder, r as SUBSETS, t as BaseProps } from "../../index-DxW8JBva.mjs";
2
+ export { BaseProps, Folder, SUBSETS, UseSubsetImageProps, useSubsetImage };
@@ -0,0 +1 @@
1
+ "use client";import"../../src-BB55dPBE.mjs";import"../../file-CapBKYce.mjs";import"../../api-client-xK3Ua3Gr.mjs";import{n as e,t}from"../../use-subset-image-B9ZSiVjx.mjs";export{t as SUBSETS,e as useSubsetImage};
@@ -0,0 +1 @@
1
+ "use client";const e=require(`../../chunk-Bmb41Sf3.cjs`);let t=require(`react`),n=require(`lodash-es`);function r(e=1280){let[r,i]=(0,t.useState)(e);return(0,t.useEffect)(()=>{let e=(0,n.throttle)(()=>{let e=window.innerWidth;i(e)},200);return window.addEventListener(`resize`,e),e(),()=>window.removeEventListener(`resize`,e)},[]),{windowSize:r}}exports.useWindowSize=r;
@@ -0,0 +1,6 @@
1
+ //#region src/hooks/use-window-size/index.d.ts
2
+ declare function useWindowSize(defaultWidth?: number): {
3
+ windowSize: number;
4
+ };
5
+ //#endregion
6
+ export { useWindowSize };
@@ -0,0 +1,6 @@
1
+ //#region src/hooks/use-window-size/index.d.ts
2
+ declare function useWindowSize(defaultWidth?: number): {
3
+ windowSize: number;
4
+ };
5
+ //#endregion
6
+ export { useWindowSize };
@@ -0,0 +1 @@
1
+ "use client";import{useEffect as e,useState as t}from"react";import{throttle as n}from"lodash-es";function r(r=1280){let[i,a]=t(r);return e(()=>{let e=n(()=>{let e=window.innerWidth;a(e)},200);return window.addEventListener(`resize`,e),e(),()=>window.removeEventListener(`resize`,e)},[]),{windowSize:i}}export{r as useWindowSize};
@@ -0,0 +1 @@
1
+ import{n as e}from"./use-subset-image-B9ZSiVjx.mjs";import{t}from"./skeleton-D4Q9wT-o.mjs";import{cva as n}from"class-variance-authority";import{forwardRef as r}from"react";import i from"clsx";import{Fragment as a,jsx as o,jsxs as s}from"react/jsx-runtime";const c=n(``,{variants:{fill:{true:`komc:w-full komc:h-full komc:absolute komc:inset-0`,false:``}},defaultVariants:{fill:!1}}),l=r(({...t},n)=>{let{ref:r,imageProps:i}=e({ref:n,...t});return o(`img`,{ref:r,...i})}),u=r(({skeleton:n=!0,layout:r=`stretch`,fallbackSrc:l,className:u,emptyNode:f,emptyNodeClassName:p,skeletonClassName:m,...h},g)=>{let{ref:_,isLoad:v,isError:y,imageProps:b}=e({ref:g,fallbackSrc:l,forceLoad:!n,...h}),x=!h.fill&&r===`intrinsic`?{width:`${h.width}px`,height:`${h.height}px`}:void 0,S=i(`komc:flex komc:justify-center komc:items-center komc:relative komc:min-h-0`,!h.fill&&r===`stretch`&&`komc:w-full komc:h-full`);return!l&&y&&f?h.fill?o(d,{className:p,children:f}):o(`div`,{"data-komc":!0,style:x,className:S,children:o(d,{className:p,children:f})}):h.fill?s(a,{children:[o(`img`,{ref:_,...b,className:i(`komc:w-full komc:h-full komc:absolute komc:inset-0`,n&&!v?`komc:invisible`:`komc:visible`,u)}),o(`div`,{"data-komc":!0,className:i(`komc:w-full komc:h-full komc:absolute komc:inset-0`,n&&!v?`komc:block`:`komc:hidden`),children:o(t,{size:`full`,className:m})})]}):s(`div`,{"data-komc":!0,style:x,className:S,children:[o(`img`,{ref:_,...b,className:i(c({fill:h.fill,className:u}),n&&!v?`komc:invisible`:`komc:visible`)}),o(`div`,{className:i(`komc:w-full komc:h-full komc:absolute komc:inset-0`,n&&!v?`komc:block`:`komc:hidden`),children:o(t,{size:`full`,className:m})})]})}),d=({children:e,className:t})=>o(`div`,{"data-komc":!0,role:`alert`,className:i(`komc:flex komc:justify-center komc:items-center komc:w-full komc:h-full komc:bg-gray-100 komc:absolute komc:inset-0 komc:p-1`,t),children:e});var f=u;export{d as n,f as r,l as t};
@@ -0,0 +1 @@
1
+ const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./use-subset-image-BUurDItP.cjs`),n=require(`./skeleton-7P1IZD3G.cjs`);let r=require(`class-variance-authority`),i=require(`react`),a=require(`clsx`);a=e.t(a);let o=require(`react/jsx-runtime`);const s=(0,r.cva)(``,{variants:{fill:{true:`komc:w-full komc:h-full komc:absolute komc:inset-0`,false:``}},defaultVariants:{fill:!1}}),c=(0,i.forwardRef)(({...e},n)=>{let{ref:r,imageProps:i}=t.n({ref:n,...e});return(0,o.jsx)(`img`,{ref:r,...i})}),l=(0,i.forwardRef)(({skeleton:e=!0,layout:r=`stretch`,fallbackSrc:i,className:c,emptyNode:l,emptyNodeClassName:d,skeletonClassName:f,...p},m)=>{let{ref:h,isLoad:g,isError:_,imageProps:v}=t.n({ref:m,fallbackSrc:i,forceLoad:!e,...p}),y=!p.fill&&r===`intrinsic`?{width:`${p.width}px`,height:`${p.height}px`}:void 0,b=(0,a.default)(`komc:flex komc:justify-center komc:items-center komc:relative komc:min-h-0`,!p.fill&&r===`stretch`&&`komc:w-full komc:h-full`);return!i&&_&&l?p.fill?(0,o.jsx)(u,{className:d,children:l}):(0,o.jsx)(`div`,{"data-komc":!0,style:y,className:b,children:(0,o.jsx)(u,{className:d,children:l})}):p.fill?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(`img`,{ref:h,...v,className:(0,a.default)(`komc:w-full komc:h-full komc:absolute komc:inset-0`,e&&!g?`komc:invisible`:`komc:visible`,c)}),(0,o.jsx)(`div`,{"data-komc":!0,className:(0,a.default)(`komc:w-full komc:h-full komc:absolute komc:inset-0`,e&&!g?`komc:block`:`komc:hidden`),children:(0,o.jsx)(n.t,{size:`full`,className:f})})]}):(0,o.jsxs)(`div`,{"data-komc":!0,style:y,className:b,children:[(0,o.jsx)(`img`,{ref:h,...v,className:(0,a.default)(s({fill:p.fill,className:c}),e&&!g?`komc:invisible`:`komc:visible`)}),(0,o.jsx)(`div`,{className:(0,a.default)(`komc:w-full komc:h-full komc:absolute komc:inset-0`,e&&!g?`komc:block`:`komc:hidden`),children:(0,o.jsx)(n.t,{size:`full`,className:f})})]})}),u=({children:e,className:t})=>(0,o.jsx)(`div`,{"data-komc":!0,role:`alert`,className:(0,a.default)(`komc:flex komc:justify-center komc:items-center komc:w-full komc:h-full komc:bg-gray-100 komc:absolute komc:inset-0 komc:p-1`,t),children:e});var d=l;Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+
3
+ //#region src/ui/switch/switch.d.ts
4
+ type LabelPlacement = 'end' | 'start' | 'top' | 'bottom';
5
+ interface SwitchProps {
6
+ label?: string;
7
+ placement?: LabelPlacement;
8
+ checked?: boolean;
9
+ disabled?: boolean;
10
+ 'aria-label'?: string;
11
+ onChange?(checked: boolean): void;
12
+ }
13
+ /** @deprecated Use `SwitchProps`. */
14
+ type SwtichProps = SwitchProps;
15
+ declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
16
+ //#endregion
17
+ export { SwtichProps as i, Switch as n, SwitchProps as r, LabelPlacement as t };
@@ -0,0 +1,34 @@
1
+ import { n as AlignType } from "./index-BxqkZ148.cjs";
2
+ import { n as NodeViewPlugin } from "./index-DvEtYdm4.cjs";
3
+ import { r as NodeSizePluginOptions } from "./index-BMZtFPh-.cjs";
4
+ import * as _tiptap_core4 from "@tiptap/core";
5
+ import * as react_jsx_runtime20 from "react/jsx-runtime";
6
+ import { Node as Node$1, NodeViewProps as NodeViewProps$1 } from "@tiptap/react";
7
+
8
+ //#region src/editor/nodes/subset-image/subset-image.d.ts
9
+ declare const SUBSET_IMAGE: {
10
+ name: string;
11
+ tag: string;
12
+ };
13
+ type SubsetImagePosition = AlignType;
14
+ interface SubsetImageAttrs {
15
+ src: string;
16
+ alt: string;
17
+ width: number;
18
+ height: number;
19
+ imagePosition: AlignType;
20
+ imageRadius: number;
21
+ originalWidth: number;
22
+ }
23
+ declare const imageNodePlugins: (size?: NodeSizePluginOptions) => NodeViewPlugin[];
24
+ declare const IMAGE_NODE_PLUGINS: NodeViewPlugin[];
25
+ declare const SubsetImageNodeView: ({
26
+ node
27
+ }: NodeViewProps$1) => react_jsx_runtime20.JSX.Element;
28
+ declare const subsetImageNodeView: (plugins?: NodeViewPlugin[], size?: NodeSizePluginOptions) => _tiptap_core4.NodeViewRenderer;
29
+ declare const SubsetImage: Node$1<{
30
+ plugins: NodeViewPlugin[];
31
+ size?: NodeSizePluginOptions;
32
+ }, any>;
33
+ //#endregion
34
+ export { SubsetImageNodeView as a, subsetImageNodeView as c, SubsetImageAttrs as i, SUBSET_IMAGE as n, SubsetImagePosition as o, SubsetImage as r, imageNodePlugins as s, IMAGE_NODE_PLUGINS as t };
@@ -0,0 +1,56 @@
1
+ import { n as LabelProps } from "./index-DrUJZDtK.cjs";
2
+ import * as react29 from "react";
3
+ import { ComponentProps } from "react";
4
+ import { VariantProps } from "class-variance-authority";
5
+ import * as class_variance_authority_types4 from "class-variance-authority/types";
6
+ import { IconProp } from "@fortawesome/fontawesome-svg-core";
7
+
8
+ //#region src/ui/admin/text-field/text-field.d.ts
9
+ type TextFieldFileVariantColor = 'green' | 'blue' | 'red';
10
+ declare const classes: (props?: ({
11
+ size?: "xs" | "sm" | "lg" | "md" | null | undefined;
12
+ invalid?: boolean | null | undefined;
13
+ shadow?: boolean | null | undefined;
14
+ disabled?: boolean | null | undefined;
15
+ } & class_variance_authority_types4.ClassProp) | undefined) => string;
16
+ interface BaseProps extends Omit<ComponentProps<'input'>, 'size' | 'ref' | 'color'>, VariantProps<typeof classes> {
17
+ label?: Omit<LabelProps, 'children'>;
18
+ disabled?: boolean;
19
+ dateIcon?: IconProp;
20
+ handleDateClear?: never;
21
+ }
22
+ interface DefaultProps extends BaseProps {
23
+ variant?: 'default';
24
+ }
25
+ interface SearchProps extends BaseProps {
26
+ variant: 'search';
27
+ searchIcon: IconProp;
28
+ }
29
+ interface FileProps extends BaseProps {
30
+ variant: 'file';
31
+ path: string;
32
+ color?: TextFieldFileVariantColor;
33
+ fileIcon: IconProp;
34
+ }
35
+ interface PrefixTextProps extends BaseProps {
36
+ variant: 'prefix-text';
37
+ prefix: string;
38
+ id?: string;
39
+ }
40
+ interface SuffixTextProps extends BaseProps {
41
+ variant: 'suffix-text';
42
+ suffix: string;
43
+ id?: string;
44
+ }
45
+ interface SuffixDateProps extends Omit<BaseProps, 'handleDateClear'> {
46
+ variant: 'select-date';
47
+ handleDateClear: () => void;
48
+ clearIcon: IconProp;
49
+ inputlabel?: string;
50
+ min?: string | number;
51
+ max?: string | number;
52
+ }
53
+ type TextFieldProps = DefaultProps | FileProps | SearchProps | PrefixTextProps | SuffixTextProps | SuffixDateProps;
54
+ declare const TextField: react29.ForwardRefExoticComponent<TextFieldProps & react29.RefAttributes<HTMLInputElement>>;
55
+ //#endregion
56
+ export { TextFieldFileVariantColor as n, TextFieldProps as r, TextField as t };
@@ -0,0 +1,43 @@
1
+ import { VariantProps } from "class-variance-authority";
2
+ import { ReactNode } from "react";
3
+ import * as react_jsx_runtime8 from "react/jsx-runtime";
4
+ import * as class_variance_authority_types1 from "class-variance-authority/types";
5
+ import { IconProp } from "@fortawesome/fontawesome-svg-core";
6
+
7
+ //#region src/ui/admin/label/label.d.ts
8
+ declare const classes: (props?: ({
9
+ required?: boolean | null | undefined;
10
+ gap?: "sm" | "lg" | "md" | "xl" | null | undefined;
11
+ } & class_variance_authority_types1.ClassProp) | undefined) => string;
12
+ declare const helpClasses: (props?: ({
13
+ helpTextColor?: "default" | "primary" | "warning" | "error" | null | undefined;
14
+ } & class_variance_authority_types1.ClassProp) | undefined) => string;
15
+ interface LabelProps extends VariantProps<typeof classes>, VariantProps<typeof helpClasses> {
16
+ text?: string;
17
+ actions?: ReactNode | null;
18
+ defaultCollapsed?: boolean;
19
+ helpText?: string;
20
+ helpTextPrefixIcon?: IconProp | null;
21
+ collapse?: (collapsed: boolean) => IconProp;
22
+ className?: string;
23
+ htmlFor?: string;
24
+ id?: string;
25
+ children?: ReactNode;
26
+ }
27
+ declare const Label: ({
28
+ htmlFor,
29
+ id,
30
+ text,
31
+ actions,
32
+ collapse,
33
+ defaultCollapsed,
34
+ helpText,
35
+ helpTextPrefixIcon,
36
+ helpTextColor,
37
+ children,
38
+ required,
39
+ className,
40
+ gap
41
+ }: LabelProps) => react_jsx_runtime8.JSX.Element;
42
+ //#endregion
43
+ export { LabelProps as n, Label as t };
@@ -0,0 +1,43 @@
1
+ import { n as NodeViewPlugin } from "./index-DvEtYdm4.cjs";
2
+ import * as react_jsx_runtime29 from "react/jsx-runtime";
3
+
4
+ //#region src/editor/nodes/node-size/node-size.d.ts
5
+ interface NodeSizeProps {
6
+ width?: number;
7
+ height?: number;
8
+ edit?: boolean;
9
+ setEdit?: (edit: boolean) => void;
10
+ onChange?: (size: {
11
+ width: number;
12
+ height: number;
13
+ }) => void;
14
+ onExitEdit?: () => void;
15
+ minWidth?: number;
16
+ minHeight?: number;
17
+ maxWidth?: number;
18
+ maxHeight?: number;
19
+ className?: string;
20
+ }
21
+ declare const NodeSize: ({
22
+ width,
23
+ height,
24
+ edit,
25
+ setEdit,
26
+ onChange,
27
+ onExitEdit,
28
+ minWidth,
29
+ minHeight,
30
+ maxWidth,
31
+ maxHeight,
32
+ className
33
+ }: NodeSizeProps) => react_jsx_runtime29.JSX.Element;
34
+ interface NodeSizePluginOptions {
35
+ minWidth?: number;
36
+ minHeight?: number;
37
+ maxWidth?: number;
38
+ maxHeight?: number;
39
+ }
40
+ declare const nodeSize: (options?: NodeSizePluginOptions) => NodeViewPlugin;
41
+ declare const NodeSizePlugin: NodeViewPlugin;
42
+ //#endregion
43
+ export { nodeSize as a, NodeSizeProps as i, NodeSizePlugin as n, NodeSizePluginOptions as r, NodeSize as t };
@@ -0,0 +1,7 @@
1
+ import * as _tiptap_core0 from "@tiptap/core";
2
+ import * as _tiptap_extension_heading0 from "@tiptap/extension-heading";
3
+
4
+ //#region src/editor/nodes/custom-heading/custom-heading.d.ts
5
+ declare const CustomHeading: _tiptap_core0.Node<_tiptap_extension_heading0.HeadingOptions, any>;
6
+ //#endregion
7
+ export { CustomHeading as t };
@@ -0,0 +1,34 @@
1
+ import { n as AlignType } from "./index-D5uh7klO.mjs";
2
+ import { n as NodeViewPlugin } from "./index-DHXj3w9p.mjs";
3
+ import { r as NodeSizePluginOptions } from "./index-CV-nhdHd.mjs";
4
+ import * as _tiptap_core4 from "@tiptap/core";
5
+ import { Node as Node$1, NodeViewProps as NodeViewProps$1 } from "@tiptap/react";
6
+ import * as react_jsx_runtime48 from "react/jsx-runtime";
7
+
8
+ //#region src/editor/nodes/subset-image/subset-image.d.ts
9
+ declare const SUBSET_IMAGE: {
10
+ name: string;
11
+ tag: string;
12
+ };
13
+ type SubsetImagePosition = AlignType;
14
+ interface SubsetImageAttrs {
15
+ src: string;
16
+ alt: string;
17
+ width: number;
18
+ height: number;
19
+ imagePosition: AlignType;
20
+ imageRadius: number;
21
+ originalWidth: number;
22
+ }
23
+ declare const imageNodePlugins: (size?: NodeSizePluginOptions) => NodeViewPlugin[];
24
+ declare const IMAGE_NODE_PLUGINS: NodeViewPlugin[];
25
+ declare const SubsetImageNodeView: ({
26
+ node
27
+ }: NodeViewProps$1) => react_jsx_runtime48.JSX.Element;
28
+ declare const subsetImageNodeView: (plugins?: NodeViewPlugin[], size?: NodeSizePluginOptions) => _tiptap_core4.NodeViewRenderer;
29
+ declare const SubsetImage: Node$1<{
30
+ plugins: NodeViewPlugin[];
31
+ size?: NodeSizePluginOptions;
32
+ }, any>;
33
+ //#endregion
34
+ export { SubsetImageNodeView as a, subsetImageNodeView as c, SubsetImageAttrs as i, SUBSET_IMAGE as n, SubsetImagePosition as o, SubsetImage as r, imageNodePlugins as s, IMAGE_NODE_PLUGINS as t };
@@ -0,0 +1,31 @@
1
+ import { n as LabelProps } from "./index-DrUJZDtK.cjs";
2
+ import * as react_jsx_runtime50 from "react/jsx-runtime";
3
+ import { ComponentProps } from "react";
4
+ import { VariantProps } from "class-variance-authority";
5
+ import Select, { ClassNamesConfig, GroupBase } from "react-select";
6
+ import * as class_variance_authority_types8 from "class-variance-authority/types";
7
+
8
+ //#region src/ui/admin/select-field/select-field.d.ts
9
+ declare const controlClasses: (props?: ({
10
+ rounded?: "sm" | "lg" | "md" | "xl" | null | undefined;
11
+ } & class_variance_authority_types8.ClassProp) | undefined) => string;
12
+ declare const valueContainerClasses: (props?: ({
13
+ size?: "none" | "sm" | "lg" | "md" | null | undefined;
14
+ } & class_variance_authority_types8.ClassProp) | undefined) => string;
15
+ interface SelectFieldProps<T, F extends boolean = false> extends ComponentProps<typeof Select<T, F>>, VariantProps<typeof valueContainerClasses>, VariantProps<typeof controlClasses> {
16
+ label?: Omit<LabelProps, 'children'>;
17
+ }
18
+ declare const baseClassNames: <T, F extends boolean = false>({
19
+ size,
20
+ rounded
21
+ }: VariantProps<typeof valueContainerClasses> & VariantProps<typeof controlClasses>) => ClassNamesConfig<T, F, GroupBase<T>>;
22
+ declare const SelectField: <T, F extends boolean = false>({
23
+ label,
24
+ size,
25
+ rounded,
26
+ isMulti,
27
+ className,
28
+ ...props
29
+ }: SelectFieldProps<T, F>) => react_jsx_runtime50.JSX.Element;
30
+ //#endregion
31
+ export { valueContainerClasses as a, controlClasses as i, SelectFieldProps as n, baseClassNames as r, SelectField as t };
@@ -0,0 +1,56 @@
1
+ import { n as LabelProps } from "./index-BKqI0jBF.mjs";
2
+ import { VariantProps } from "class-variance-authority";
3
+ import * as react44 from "react";
4
+ import { ComponentProps } from "react";
5
+ import * as class_variance_authority_types10 from "class-variance-authority/types";
6
+ import { IconProp } from "@fortawesome/fontawesome-svg-core";
7
+
8
+ //#region src/ui/admin/text-field/text-field.d.ts
9
+ type TextFieldFileVariantColor = 'green' | 'blue' | 'red';
10
+ declare const classes: (props?: ({
11
+ size?: "xs" | "sm" | "lg" | "md" | null | undefined;
12
+ invalid?: boolean | null | undefined;
13
+ shadow?: boolean | null | undefined;
14
+ disabled?: boolean | null | undefined;
15
+ } & class_variance_authority_types10.ClassProp) | undefined) => string;
16
+ interface BaseProps extends Omit<ComponentProps<'input'>, 'size' | 'ref' | 'color'>, VariantProps<typeof classes> {
17
+ label?: Omit<LabelProps, 'children'>;
18
+ disabled?: boolean;
19
+ dateIcon?: IconProp;
20
+ handleDateClear?: never;
21
+ }
22
+ interface DefaultProps extends BaseProps {
23
+ variant?: 'default';
24
+ }
25
+ interface SearchProps extends BaseProps {
26
+ variant: 'search';
27
+ searchIcon: IconProp;
28
+ }
29
+ interface FileProps extends BaseProps {
30
+ variant: 'file';
31
+ path: string;
32
+ color?: TextFieldFileVariantColor;
33
+ fileIcon: IconProp;
34
+ }
35
+ interface PrefixTextProps extends BaseProps {
36
+ variant: 'prefix-text';
37
+ prefix: string;
38
+ id?: string;
39
+ }
40
+ interface SuffixTextProps extends BaseProps {
41
+ variant: 'suffix-text';
42
+ suffix: string;
43
+ id?: string;
44
+ }
45
+ interface SuffixDateProps extends Omit<BaseProps, 'handleDateClear'> {
46
+ variant: 'select-date';
47
+ handleDateClear: () => void;
48
+ clearIcon: IconProp;
49
+ inputlabel?: string;
50
+ min?: string | number;
51
+ max?: string | number;
52
+ }
53
+ type TextFieldProps = DefaultProps | FileProps | SearchProps | PrefixTextProps | SuffixTextProps | SuffixDateProps;
54
+ declare const TextField: react44.ForwardRefExoticComponent<TextFieldProps & react44.RefAttributes<HTMLInputElement>>;
55
+ //#endregion
56
+ export { TextFieldFileVariantColor as n, TextFieldProps as r, TextField as t };
@@ -1,4 +1,4 @@
1
- //#region src/util/fetcher.d.ts
1
+ //#region src/util/fetcher/index.d.ts
2
2
  interface BaseInput<Filter extends Record<string, any> = Record<string, any>> {
3
3
  filter?: Filter;
4
4
  page: number;
@@ -12,4 +12,4 @@ declare const createSdkFetcher: <TQuery extends Record<string, {
12
12
  input: TInput;
13
13
  }) => Promise<TQuery>, key: TKey, customInput?: Partial<TInput>) => (input: TInput) => Promise<TQuery[TKey]>;
14
14
  //#endregion
15
- export { BaseInput, createSdkFetcher };
15
+ export { createSdkFetcher as n, BaseInput as t };
@@ -0,0 +1,18 @@
1
+ import { Extension } from "@tiptap/core";
2
+
3
+ //#region src/editor/extensions/align/align.d.ts
4
+ type AlignType = 'left' | 'center' | 'right';
5
+ declare module '@tiptap/core' {
6
+ interface Commands<ReturnType> {
7
+ align: {
8
+ setAlign: (align: AlignType) => ReturnType;
9
+ unsetAlign: () => ReturnType;
10
+ };
11
+ }
12
+ }
13
+ declare const Align: Extension<{
14
+ types: string[];
15
+ defaultAlign: AlignType;
16
+ }, any>;
17
+ //#endregion
18
+ export { AlignType as n, Align as t };
@@ -0,0 +1,7 @@
1
+ import * as _tiptap_core3 from "@tiptap/core";
2
+ import * as _tiptap_extension_heading0 from "@tiptap/extension-heading";
3
+
4
+ //#region src/editor/nodes/custom-heading/custom-heading.d.ts
5
+ declare const CustomHeading: _tiptap_core3.Node<_tiptap_extension_heading0.HeadingOptions, any>;
6
+ //#endregion
7
+ export { CustomHeading as t };