@deweb.id/ui-kit 0.0.0-stage → 0.1.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 (408) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +90 -2
  3. package/css/ui-kit.css +901 -0
  4. package/dist/chunk-028rzptn.js +253 -0
  5. package/dist/chunk-028rzptn.js.map +10 -0
  6. package/dist/chunk-0x0et52k.js +82 -0
  7. package/dist/chunk-0x0et52k.js.map +10 -0
  8. package/dist/chunk-17gmkyd1.js +195 -0
  9. package/dist/chunk-17gmkyd1.js.map +10 -0
  10. package/dist/chunk-19jsevr8.js +17 -0
  11. package/dist/chunk-19jsevr8.js.map +10 -0
  12. package/dist/chunk-1t1fbbme.js +171 -0
  13. package/dist/chunk-1t1fbbme.js.map +10 -0
  14. package/dist/chunk-26ban96z.js +151 -0
  15. package/dist/chunk-26ban96z.js.map +10 -0
  16. package/dist/chunk-39hey5ns.js +2034 -0
  17. package/dist/chunk-39hey5ns.js.map +19 -0
  18. package/dist/chunk-3f0bjycv.js +481 -0
  19. package/dist/chunk-3f0bjycv.js.map +10 -0
  20. package/dist/chunk-3zpf64v4.js +108 -0
  21. package/dist/chunk-3zpf64v4.js.map +10 -0
  22. package/dist/chunk-4jrq15v9.js +919 -0
  23. package/dist/chunk-4jrq15v9.js.map +10 -0
  24. package/dist/chunk-8dacesjp.js +289 -0
  25. package/dist/chunk-8dacesjp.js.map +10 -0
  26. package/dist/chunk-8een770x.js +2546 -0
  27. package/dist/chunk-8een770x.js.map +29 -0
  28. package/dist/chunk-8jv2g2ne.js +371 -0
  29. package/dist/chunk-8jv2g2ne.js.map +10 -0
  30. package/dist/chunk-abdqb4e5.js +156 -0
  31. package/dist/chunk-abdqb4e5.js.map +10 -0
  32. package/dist/chunk-af27xdf2.js +891 -0
  33. package/dist/chunk-af27xdf2.js.map +11 -0
  34. package/dist/chunk-amsyqyh9.js +23 -0
  35. package/dist/chunk-amsyqyh9.js.map +9 -0
  36. package/dist/chunk-czbcw9e1.js +503 -0
  37. package/dist/chunk-czbcw9e1.js.map +11 -0
  38. package/dist/chunk-dar8mz91.js +73 -0
  39. package/dist/chunk-dar8mz91.js.map +10 -0
  40. package/dist/chunk-dsddmmdk.js +136 -0
  41. package/dist/chunk-dsddmmdk.js.map +10 -0
  42. package/dist/chunk-edx7tas6.js +89 -0
  43. package/dist/chunk-edx7tas6.js.map +10 -0
  44. package/dist/chunk-es4tgmvr.js +1686 -0
  45. package/dist/chunk-es4tgmvr.js.map +12 -0
  46. package/dist/chunk-f2aqj672.js +240 -0
  47. package/dist/chunk-f2aqj672.js.map +11 -0
  48. package/dist/chunk-h6k57hyd.js +146 -0
  49. package/dist/chunk-h6k57hyd.js.map +10 -0
  50. package/dist/chunk-hkx78qgj.js +1548 -0
  51. package/dist/chunk-hkx78qgj.js.map +12 -0
  52. package/dist/chunk-hq57r97c.js +770 -0
  53. package/dist/chunk-hq57r97c.js.map +11 -0
  54. package/dist/chunk-jct2e2h1.js +139 -0
  55. package/dist/chunk-jct2e2h1.js.map +10 -0
  56. package/dist/chunk-je0j5sn4.js +246 -0
  57. package/dist/chunk-je0j5sn4.js.map +10 -0
  58. package/dist/chunk-k2b698v5.js +754 -0
  59. package/dist/chunk-k2b698v5.js.map +12 -0
  60. package/dist/chunk-kv58555q.js +267 -0
  61. package/dist/chunk-kv58555q.js.map +11 -0
  62. package/dist/chunk-m0msvrte.js +15 -0
  63. package/dist/chunk-m0msvrte.js.map +10 -0
  64. package/dist/chunk-m3t14v77.js +30 -0
  65. package/dist/chunk-m3t14v77.js.map +10 -0
  66. package/dist/chunk-mctp30cp.js +1466 -0
  67. package/dist/chunk-mctp30cp.js.map +10 -0
  68. package/dist/chunk-n37qb5m5.js +1408 -0
  69. package/dist/chunk-n37qb5m5.js.map +10 -0
  70. package/dist/chunk-nhhgsdt3.js +570 -0
  71. package/dist/chunk-nhhgsdt3.js.map +11 -0
  72. package/dist/chunk-pxydj130.js +28 -0
  73. package/dist/chunk-pxydj130.js.map +10 -0
  74. package/dist/chunk-qmbwp4k7.js +3275 -0
  75. package/dist/chunk-qmbwp4k7.js.map +13 -0
  76. package/dist/chunk-qzxf0aa2.js +149 -0
  77. package/dist/chunk-qzxf0aa2.js.map +10 -0
  78. package/dist/chunk-rbjyp9ff.js +47 -0
  79. package/dist/chunk-rbjyp9ff.js.map +10 -0
  80. package/dist/chunk-rbkc50xg.js +103 -0
  81. package/dist/chunk-rbkc50xg.js.map +10 -0
  82. package/dist/chunk-rn6f0s6x.js +66 -0
  83. package/dist/chunk-rn6f0s6x.js.map +9 -0
  84. package/dist/chunk-rswzbfa2.js +422 -0
  85. package/dist/chunk-rswzbfa2.js.map +10 -0
  86. package/dist/chunk-rzns0reg.js +157 -0
  87. package/dist/chunk-rzns0reg.js.map +10 -0
  88. package/dist/chunk-s851vtje.js +90 -0
  89. package/dist/chunk-s851vtje.js.map +10 -0
  90. package/dist/chunk-vak164kx.js +15 -0
  91. package/dist/chunk-vak164kx.js.map +9 -0
  92. package/dist/chunk-vpvnvegz.js +480 -0
  93. package/dist/chunk-vpvnvegz.js.map +10 -0
  94. package/dist/chunk-x4pk7vxm.js +10 -0
  95. package/dist/chunk-x4pk7vxm.js.map +10 -0
  96. package/dist/chunk-xd2fwgek.js +53 -0
  97. package/dist/chunk-xd2fwgek.js.map +10 -0
  98. package/dist/chunk-y71rd8qf.js +499 -0
  99. package/dist/chunk-y71rd8qf.js.map +10 -0
  100. package/dist/chunk-zjmt193s.js +34 -0
  101. package/dist/chunk-zjmt193s.js.map +9 -0
  102. package/dist/components/blocks/CustomHtmlBlock.d.ts +14 -0
  103. package/dist/components/blocks/LoginFormBlock.d.ts +16 -0
  104. package/dist/components/blocks/SidebarMenuBlock.d.ts +11 -0
  105. package/dist/components/blocks/SliderBlock.d.ts +13 -0
  106. package/dist/components/code/code-editor.d.ts +58 -0
  107. package/dist/components/code/code-preview.d.ts +18 -0
  108. package/dist/components/code/index.d.ts +4 -0
  109. package/dist/components/code/validator.d.ts +10 -0
  110. package/dist/components/code/vsc-themes.d.ts +6 -0
  111. package/dist/components/dashboard/compound/context.d.ts +14 -0
  112. package/dist/components/dashboard/compound/dashboard.d.ts +14 -0
  113. package/dist/components/dashboard/compound/index.d.ts +18 -0
  114. package/dist/components/dashboard/compound/main.d.ts +25 -0
  115. package/dist/components/dashboard/compound/sidebar.d.ts +5 -0
  116. package/dist/components/dashboard/dashboard-head-info.d.ts +38 -0
  117. package/dist/components/dashboard/dashboard-head.d.ts +19 -0
  118. package/dist/components/dashboard/dataview.d.ts +19 -0
  119. package/dist/components/dashboard/detailview.d.ts +1 -0
  120. package/dist/components/dashboard/formview.d.ts +265 -0
  121. package/dist/components/dashboard/pageformview.d.ts +79 -0
  122. package/dist/components/dashboard/styling/background-color-control.d.ts +34 -0
  123. package/dist/components/dashboard/styling/background-control.d.ts +45 -0
  124. package/dist/components/dashboard/styling/border-control.d.ts +14 -0
  125. package/dist/components/dashboard/styling/color-control.d.ts +22 -0
  126. package/dist/components/dashboard/styling/index.d.ts +7 -0
  127. package/dist/components/dashboard/styling/radius-control.d.ts +15 -0
  128. package/dist/components/dashboard/styling/spacing-control.d.ts +17 -0
  129. package/dist/components/dashboard/styling/types.d.ts +50 -0
  130. package/dist/components/document/index.d.ts +25 -0
  131. package/dist/components/ecommerce/commerce-cards.d.ts +37 -0
  132. package/dist/components/effect/action-animation.d.ts +14 -0
  133. package/dist/components/effect/element-animation.d.ts +41 -0
  134. package/dist/components/effect/page-transition.d.ts +10 -0
  135. package/dist/components/layout/BlockPalette.d.ts +14 -0
  136. package/dist/components/layout/DynamicLayout.d.ts +56 -0
  137. package/dist/components/layout/GridRow.d.ts +37 -0
  138. package/dist/components/layout/LayoutBuilder.d.ts +52 -0
  139. package/dist/components/layout/WidgetFieldsForm.d.ts +15 -0
  140. package/dist/components/ui/accordion.d.ts +36 -0
  141. package/dist/components/ui/action-bar.d.ts +46 -0
  142. package/dist/components/ui/alert.d.ts +25 -0
  143. package/dist/components/ui/animated.d.ts +41 -0
  144. package/dist/components/ui/app-shell.d.ts +53 -0
  145. package/dist/components/ui/avatar.d.ts +18 -0
  146. package/dist/components/ui/badge.d.ts +15 -0
  147. package/dist/components/ui/breadcrumb.d.ts +20 -0
  148. package/dist/components/ui/button-icon.d.ts +9 -0
  149. package/dist/components/ui/button.d.ts +37 -0
  150. package/dist/components/ui/calendar.d.ts +14 -0
  151. package/dist/components/ui/card-skeleton-aware.d.ts +2 -0
  152. package/dist/components/ui/card.d.ts +36 -0
  153. package/dist/components/ui/chart.d.ts +75 -0
  154. package/dist/components/ui/chat-bubble.d.ts +74 -0
  155. package/dist/components/ui/code.d.ts +85 -0
  156. package/dist/components/ui/code.js +21 -0
  157. package/dist/components/ui/code.js.map +9 -0
  158. package/dist/components/ui/collapsible.d.ts +25 -0
  159. package/dist/components/ui/control-group.d.ts +39 -0
  160. package/dist/components/ui/dashboard-grid/DashboardDropSlot.d.ts +10 -0
  161. package/dist/components/ui/dashboard-grid/DashboardGrid.d.ts +5 -0
  162. package/dist/components/ui/dashboard-grid/DashboardWidgetCard.d.ts +43 -0
  163. package/dist/components/ui/dashboard-grid/useDashboardDnd.d.ts +36 -0
  164. package/dist/components/ui/data-empty.d.ts +24 -0
  165. package/dist/components/ui/data-list.d.ts +16 -0
  166. package/dist/components/ui/data-table.d.ts +48 -0
  167. package/dist/components/ui/data-view/DataView.d.ts +46 -0
  168. package/dist/components/ui/data-view/DataViewCalendar.d.ts +18 -0
  169. package/dist/components/ui/data-view/DataViewContent.d.ts +5 -0
  170. package/dist/components/ui/data-view/DataViewFilter.d.ts +8 -0
  171. package/dist/components/ui/data-view/DataViewGrid.d.ts +32 -0
  172. package/dist/components/ui/data-view/DataViewHeader.d.ts +22 -0
  173. package/dist/components/ui/data-view/DataViewKanban.d.ts +16 -0
  174. package/dist/components/ui/data-view/DataViewPivot.d.ts +15 -0
  175. package/dist/components/ui/data-view/DataViewTable.d.ts +33 -0
  176. package/dist/components/ui/data-view/index.d.ts +9 -0
  177. package/dist/components/ui/date-time-picker.d.ts +205 -0
  178. package/dist/components/ui/drawer.d.ts +71 -0
  179. package/dist/components/ui/dropdown-animation.d.ts +7 -0
  180. package/dist/components/ui/dropdown.d.ts +71 -0
  181. package/dist/components/ui/error-state.d.ts +15 -0
  182. package/dist/components/ui/filter-bar.d.ts +50 -0
  183. package/dist/components/ui/filter-bar.js +19 -0
  184. package/dist/components/ui/filter-bar.js.map +9 -0
  185. package/dist/components/ui/font.d.ts +24 -0
  186. package/dist/components/ui/form-advanced.d.ts +198 -0
  187. package/dist/components/ui/form-compound.d.ts +58 -0
  188. package/dist/components/ui/form-context.d.ts +19 -0
  189. package/dist/components/ui/form.d.ts +451 -0
  190. package/dist/components/ui/format-currency.d.ts +10 -0
  191. package/dist/components/ui/format-date.d.ts +28 -0
  192. package/dist/components/ui/format-number.d.ts +22 -0
  193. package/dist/components/ui/format-time.d.ts +5 -0
  194. package/dist/components/ui/grid.d.ts +30 -0
  195. package/dist/components/ui/heading.d.ts +9 -0
  196. package/dist/components/ui/indicator.d.ts +17 -0
  197. package/dist/components/ui/initial-icon.d.ts +11 -0
  198. package/dist/components/ui/input-code.d.ts +27 -0
  199. package/dist/components/ui/input-grid.d.ts +54 -0
  200. package/dist/components/ui/input.d.ts +37 -0
  201. package/dist/components/ui/invoice-blocks.d.ts +124 -0
  202. package/dist/components/ui/invoice-document.d.ts +63 -0
  203. package/dist/components/ui/kanban.d.ts +16 -0
  204. package/dist/components/ui/label.d.ts +4 -0
  205. package/dist/components/ui/lazy-load.d.ts +13 -0
  206. package/dist/components/ui/lightbox.d.ts +15 -0
  207. package/dist/components/ui/list.d.ts +33 -0
  208. package/dist/components/ui/loading.d.ts +79 -0
  209. package/dist/components/ui/media-card.d.ts +50 -0
  210. package/dist/components/ui/media-player.d.ts +47 -0
  211. package/dist/components/ui/menu.d.ts +24 -0
  212. package/dist/components/ui/modal.d.ts +233 -0
  213. package/dist/components/ui/page.d.ts +51 -0
  214. package/dist/components/ui/pagination.d.ts +16 -0
  215. package/dist/components/ui/print.d.ts +173 -0
  216. package/dist/components/ui/project-card.d.ts +43 -0
  217. package/dist/components/ui/radius-control.d.ts +36 -0
  218. package/dist/components/ui/rich-text-editor.d.ts +32 -0
  219. package/dist/components/ui/select-card.d.ts +56 -0
  220. package/dist/components/ui/sidebar-logo.d.ts +11 -0
  221. package/dist/components/ui/sidebar-menu.d.ts +82 -0
  222. package/dist/components/ui/sidebar-search.d.ts +7 -0
  223. package/dist/components/ui/skeletons.d.ts +46 -0
  224. package/dist/components/ui/surface.d.ts +13 -0
  225. package/dist/components/ui/table-pivot.d.ts +10 -0
  226. package/dist/components/ui/table.d.ts +258 -0
  227. package/dist/components/ui/tabs.d.ts +79 -0
  228. package/dist/components/ui/task-board.d.ts +29 -0
  229. package/dist/components/ui/terminal.d.ts +51 -0
  230. package/dist/components/ui/text-sensor.d.ts +9 -0
  231. package/dist/components/ui/theme-styler.d.ts +3 -0
  232. package/dist/components/ui/theme-toggle.d.ts +23 -0
  233. package/dist/components/ui/tooltip.d.ts +11 -0
  234. package/dist/components/website/account-banner.d.ts +11 -0
  235. package/dist/components/website/account-layout.d.ts +20 -0
  236. package/dist/components/website/account.d.ts +46 -0
  237. package/dist/components/website/ambient.d.ts +19 -0
  238. package/dist/components/website/auth.d.ts +35 -0
  239. package/dist/components/website/blog/blog-list-custom.d.ts +3 -0
  240. package/dist/components/website/blog/blog-list-gallery.d.ts +2 -0
  241. package/dist/components/website/blog/blog-list-grid.d.ts +2 -0
  242. package/dist/components/website/blog/blog-list-list.d.ts +2 -0
  243. package/dist/components/website/blog.d.ts +50 -0
  244. package/dist/components/website/carousel.d.ts +58 -0
  245. package/dist/components/website/cart.d.ts +31 -0
  246. package/dist/components/website/catalogue-view.d.ts +81 -0
  247. package/dist/components/website/catalogue.d.ts +96 -0
  248. package/dist/components/website/comment.d.ts +52 -0
  249. package/dist/components/website/eclipse.d.ts +15 -0
  250. package/dist/components/website/feature-grid.d.ts +58 -0
  251. package/dist/components/website/filter.d.ts +109 -0
  252. package/dist/components/website/hero.d.ts +89 -0
  253. package/dist/components/website/localize.d.ts +36 -0
  254. package/dist/components/website/logo.d.ts +24 -0
  255. package/dist/components/website/megamenu.d.ts +10 -0
  256. package/dist/components/website/navbar.d.ts +42 -0
  257. package/dist/components/website/notification.d.ts +58 -0
  258. package/dist/components/website/price.d.ts +26 -0
  259. package/dist/components/website/pricing.d.ts +21 -0
  260. package/dist/components/website/product.d.ts +32 -0
  261. package/dist/components/website/rating.d.ts +36 -0
  262. package/dist/components/website/review-form.d.ts +54 -0
  263. package/dist/components/website/reviews.d.ts +119 -0
  264. package/dist/components/website/search.d.ts +30 -0
  265. package/dist/entries/accordion.d.ts +1 -0
  266. package/dist/entries/accordion.js +9 -0
  267. package/dist/entries/accordion.js.map +9 -0
  268. package/dist/entries/alert.d.ts +1 -0
  269. package/dist/entries/alert.js +10 -0
  270. package/dist/entries/alert.js.map +9 -0
  271. package/dist/entries/badge.d.ts +1 -0
  272. package/dist/entries/badge.js +11 -0
  273. package/dist/entries/badge.js.map +9 -0
  274. package/dist/entries/breadcrumb.d.ts +1 -0
  275. package/dist/entries/breadcrumb.js +10 -0
  276. package/dist/entries/breadcrumb.js.map +9 -0
  277. package/dist/entries/button.d.ts +1 -0
  278. package/dist/entries/button.js +12 -0
  279. package/dist/entries/button.js.map +9 -0
  280. package/dist/entries/card.d.ts +1 -0
  281. package/dist/entries/card.js +25 -0
  282. package/dist/entries/card.js.map +9 -0
  283. package/dist/entries/chart.d.ts +1 -0
  284. package/dist/entries/chart.js +130 -0
  285. package/dist/entries/chart.js.map +10 -0
  286. package/dist/entries/components.d.ts +53 -0
  287. package/dist/entries/components.js +643 -0
  288. package/dist/entries/components.js.map +9 -0
  289. package/dist/entries/dashboard/dataview.d.ts +1 -0
  290. package/dist/entries/dashboard/dataview.js +82 -0
  291. package/dist/entries/dashboard/dataview.js.map +10 -0
  292. package/dist/entries/dashboard/pageformview.d.ts +1 -0
  293. package/dist/entries/dashboard/pageformview.js +34 -0
  294. package/dist/entries/dashboard/pageformview.js.map +9 -0
  295. package/dist/entries/data-table.d.ts +1 -0
  296. package/dist/entries/data-table.js +22 -0
  297. package/dist/entries/data-table.js.map +9 -0
  298. package/dist/entries/date-time-picker.d.ts +1 -0
  299. package/dist/entries/date-time-picker.js +28 -0
  300. package/dist/entries/date-time-picker.js.map +9 -0
  301. package/dist/entries/document.d.ts +1 -0
  302. package/dist/entries/document.js +69 -0
  303. package/dist/entries/document.js.map +10 -0
  304. package/dist/entries/drawer.d.ts +1 -0
  305. package/dist/entries/drawer.js +20 -0
  306. package/dist/entries/drawer.js.map +9 -0
  307. package/dist/entries/dropdown.d.ts +1 -0
  308. package/dist/entries/dropdown.js +29 -0
  309. package/dist/entries/dropdown.js.map +9 -0
  310. package/dist/entries/error-state.d.ts +1 -0
  311. package/dist/entries/error-state.js +14 -0
  312. package/dist/entries/error-state.js.map +9 -0
  313. package/dist/entries/favorite-button.d.ts +1 -0
  314. package/dist/entries/favorite-button.js +7 -0
  315. package/dist/entries/favorite-button.js.map +10 -0
  316. package/dist/entries/font.d.ts +1 -0
  317. package/dist/entries/font.js +10 -0
  318. package/dist/entries/font.js.map +9 -0
  319. package/dist/entries/form-advanced.d.ts +1 -0
  320. package/dist/entries/form-advanced.js +39 -0
  321. package/dist/entries/form-advanced.js.map +9 -0
  322. package/dist/entries/form.d.ts +1 -0
  323. package/dist/entries/form.js +74 -0
  324. package/dist/entries/form.js.map +9 -0
  325. package/dist/entries/heading.d.ts +1 -0
  326. package/dist/entries/heading.js +8 -0
  327. package/dist/entries/heading.js.map +9 -0
  328. package/dist/entries/input.d.ts +1 -0
  329. package/dist/entries/input.js +11 -0
  330. package/dist/entries/input.js.map +9 -0
  331. package/dist/entries/layout.d.ts +4 -0
  332. package/dist/entries/layout.js +101 -0
  333. package/dist/entries/layout.js.map +9 -0
  334. package/dist/entries/lazy-load.d.ts +1 -0
  335. package/dist/entries/lazy-load.js +9 -0
  336. package/dist/entries/lazy-load.js.map +9 -0
  337. package/dist/entries/list.d.ts +1 -0
  338. package/dist/entries/list.js +13 -0
  339. package/dist/entries/list.js.map +9 -0
  340. package/dist/entries/loading.d.ts +1 -0
  341. package/dist/entries/loading.js +18 -0
  342. package/dist/entries/loading.js.map +9 -0
  343. package/dist/entries/menu.d.ts +1 -0
  344. package/dist/entries/menu.js +17 -0
  345. package/dist/entries/menu.js.map +9 -0
  346. package/dist/entries/modal.d.ts +1 -0
  347. package/dist/entries/modal.js +33 -0
  348. package/dist/entries/modal.js.map +9 -0
  349. package/dist/entries/product.d.ts +2 -0
  350. package/dist/entries/product.js +10 -0
  351. package/dist/entries/product.js.map +9 -0
  352. package/dist/entries/select-card.d.ts +1 -0
  353. package/dist/entries/select-card.js +13 -0
  354. package/dist/entries/select-card.js.map +9 -0
  355. package/dist/entries/skeletons.d.ts +1 -0
  356. package/dist/entries/skeletons.js +35 -0
  357. package/dist/entries/skeletons.js.map +9 -0
  358. package/dist/entries/surface.d.ts +1 -0
  359. package/dist/entries/surface.js +10 -0
  360. package/dist/entries/surface.js.map +9 -0
  361. package/dist/entries/table.d.ts +1 -0
  362. package/dist/entries/table.js +65 -0
  363. package/dist/entries/table.js.map +9 -0
  364. package/dist/entries/tabs.d.ts +1 -0
  365. package/dist/entries/tabs.js +20 -0
  366. package/dist/entries/tabs.js.map +9 -0
  367. package/dist/entries/theme-styler.d.ts +1 -0
  368. package/dist/entries/theme-styler.js +26 -0
  369. package/dist/entries/theme-styler.js.map +9 -0
  370. package/dist/entries/toast.d.ts +1 -0
  371. package/dist/entries/toast.js +13 -0
  372. package/dist/entries/toast.js.map +9 -0
  373. package/dist/index.d.ts +163 -0
  374. package/dist/index.js +19864 -0
  375. package/dist/index.js.map +92 -0
  376. package/dist/lib/color/className.d.ts +14 -0
  377. package/dist/lib/color/config.d.ts +82 -0
  378. package/dist/lib/color/engine.d.ts +221 -0
  379. package/dist/lib/color/generator.d.ts +45 -0
  380. package/dist/lib/color/index.d.ts +5 -0
  381. package/dist/lib/color/safelist.d.ts +1 -0
  382. package/dist/lib/color/types.d.ts +12 -0
  383. package/dist/lib/font/config.d.ts +13 -0
  384. package/dist/lib/font/engine.d.ts +77 -0
  385. package/dist/lib/font/index.d.ts +3 -0
  386. package/dist/lib/font/types.d.ts +27 -0
  387. package/dist/lib/icon/config.d.ts +37 -0
  388. package/dist/lib/icon/engine.d.ts +84 -0
  389. package/dist/lib/icon/index.d.ts +3 -0
  390. package/dist/lib/icon/presets.d.ts +71 -0
  391. package/dist/lib/layout/config.d.ts +7 -0
  392. package/dist/lib/layout/engine.d.ts +224 -0
  393. package/dist/lib/layout/types.d.ts +151 -0
  394. package/dist/lib/layout/useActiveBreakpoint.d.ts +14 -0
  395. package/dist/lib/layout/useBlockDrag.d.ts +47 -0
  396. package/dist/lib/layout/useSectionDrag.d.ts +30 -0
  397. package/dist/lib/layout/useSpanResize.d.ts +31 -0
  398. package/dist/lib/localize/data.d.ts +9 -0
  399. package/dist/lib/product-utils.d.ts +7 -0
  400. package/dist/lib/sanitize/sanitizeHtml.d.ts +52 -0
  401. package/dist/lib/theme/motion.d.ts +27 -0
  402. package/dist/lib/theme/motion.js +12 -0
  403. package/dist/lib/theme/motion.js.map +9 -0
  404. package/dist/lib/theme/types.d.ts +133 -0
  405. package/dist/lib/useUndoRedo.d.ts +21 -0
  406. package/dist/lib/utils.d.ts +2 -0
  407. package/dist/types/product.d.ts +27 -0
  408. package/package.json +442 -4
@@ -0,0 +1,754 @@
1
+ // src/lib/icon/config.tsx
2
+ var ICON_SCALES2 = {
3
+ xs: 12,
4
+ sm: 14,
5
+ md: 16,
6
+ lg: 20,
7
+ xl: 24,
8
+ "2xl": 32,
9
+ "3xl": 40
10
+ };
11
+
12
+ // src/lib/icon/presets.ts
13
+ import {
14
+ Wifi,
15
+ Sun,
16
+ Moon,
17
+ Mail,
18
+ Phone,
19
+ PhoneCall,
20
+ Megaphone,
21
+ Link as LinkIcon,
22
+ Unlink,
23
+ Lock,
24
+ Hash,
25
+ Type,
26
+ Palette,
27
+ ChevronLeft,
28
+ ChevronRight,
29
+ ChevronUp,
30
+ ChevronDown,
31
+ ArrowLeft,
32
+ ArrowRight,
33
+ ArrowUp,
34
+ ArrowDown,
35
+ Plus,
36
+ Minus,
37
+ X,
38
+ Check,
39
+ Search,
40
+ MoreHorizontal,
41
+ CheckCircle,
42
+ XCircle,
43
+ AlertTriangle,
44
+ Info,
45
+ User,
46
+ Home,
47
+ FileText,
48
+ Settings,
49
+ LogOut,
50
+ Pencil,
51
+ Copy,
52
+ Trash,
53
+ Trash2,
54
+ Folder,
55
+ Rows3,
56
+ Columns3,
57
+ LayoutGrid,
58
+ Table2,
59
+ Calendar,
60
+ MoreVertical,
61
+ ArrowUpRight,
62
+ ArrowDownRight,
63
+ GripVertical,
64
+ Users,
65
+ Repeat,
66
+ ScrollText,
67
+ PanelTop,
68
+ PanelBottom,
69
+ PanelLeft,
70
+ PanelRight,
71
+ PanelLeftOpen,
72
+ PanelLeftClose,
73
+ PanelRightOpen,
74
+ PanelRightClose,
75
+ Bell,
76
+ ChevronsUpDown,
77
+ Pipette,
78
+ RotateCcw,
79
+ RotateCw,
80
+ Undo,
81
+ Redo,
82
+ Monitor,
83
+ Smartphone,
84
+ Sparkles,
85
+ Tablet,
86
+ ShoppingCart,
87
+ Package,
88
+ KeyRound,
89
+ ShieldCheck,
90
+ ShieldAlert,
91
+ Image,
92
+ AppWindow,
93
+ CheckSquare,
94
+ List,
95
+ Server,
96
+ Heart,
97
+ ThumbsUp,
98
+ ThumbsDown,
99
+ ShoppingBag,
100
+ Clock,
101
+ Tag,
102
+ HelpCircle,
103
+ MapPin,
104
+ CreditCard,
105
+ ArrowUpNarrowWide,
106
+ ArrowDownWideNarrow,
107
+ ArrowUpDown,
108
+ ListFilter,
109
+ Database,
110
+ LifeBuoy,
111
+ Globe,
112
+ Zap,
113
+ Cpu,
114
+ Shield,
115
+ Filter,
116
+ SlidersHorizontal,
117
+ Printer,
118
+ Loader2,
119
+ Inbox,
120
+ FolderOpen,
121
+ PackageOpen,
122
+ SearchX,
123
+ ExternalLink,
124
+ Pause,
125
+ Play,
126
+ Terminal,
127
+ Download,
128
+ Upload,
129
+ Eye,
130
+ EyeOff,
131
+ Save,
132
+ Code,
133
+ Paintbrush,
134
+ Brush,
135
+ UserRoundCog,
136
+ Layout,
137
+ Edit,
138
+ Layers,
139
+ MessageCircle,
140
+ RefreshCw,
141
+ Star,
142
+ MessageSquare,
143
+ Ticket,
144
+ Quote,
145
+ Video,
146
+ Box,
147
+ Maximize2,
148
+ GitBranch,
149
+ SquareMenu,
150
+ MessageSquareQuote,
151
+ Truck,
152
+ Award,
153
+ BadgeCheck,
154
+ Square,
155
+ AlignLeft,
156
+ AlignCenter,
157
+ AlignRight,
158
+ AlignJustify
159
+ } from "lucide-react";
160
+ var lucidePreset2 = {
161
+ alignLeft: AlignLeft,
162
+ "align-left": AlignLeft,
163
+ alignCenter: AlignCenter,
164
+ "align-center": AlignCenter,
165
+ alignRight: AlignRight,
166
+ "align-right": AlignRight,
167
+ alignJustify: AlignJustify,
168
+ "align-justify": AlignJustify,
169
+ square: Square,
170
+ squareMenu: SquareMenu,
171
+ "square-menu": SquareMenu,
172
+ menu: SquareMenu,
173
+ messageSquareQuote: MessageSquareQuote,
174
+ "message-square-quote": MessageSquareQuote,
175
+ comments: MessageSquareQuote,
176
+ layout: Layout,
177
+ edit: Edit,
178
+ layers: Layers,
179
+ messageCircle: MessageCircle,
180
+ refreshCw: RefreshCw,
181
+ video: Video,
182
+ box: Box,
183
+ gitBranch: GitBranch,
184
+ sparkles: Sparkles,
185
+ monitor: Monitor,
186
+ tablet: Tablet,
187
+ smartphone: Smartphone,
188
+ star: Star,
189
+ messageSquare: MessageSquare,
190
+ ticket: Ticket,
191
+ checkCircle: CheckCircle,
192
+ checkCircle2: CheckCircle,
193
+ "check-circle-2": CheckCircle,
194
+ alertTriangle: AlertTriangle,
195
+ info: Info,
196
+ x: X,
197
+ save: Save,
198
+ externalLink: ExternalLink,
199
+ pause: Pause,
200
+ play: Play,
201
+ terminal: Terminal,
202
+ download: Download,
203
+ upload: Upload,
204
+ eye: Eye,
205
+ eyeOff: EyeOff,
206
+ printer: Printer,
207
+ loader2: Loader2,
208
+ filter: Filter,
209
+ slidersHorizontal: SlidersHorizontal,
210
+ listFilter: ListFilter,
211
+ wifi: Wifi,
212
+ sun: Sun,
213
+ moon: Moon,
214
+ mail: Mail,
215
+ phone: Phone,
216
+ phoneCall: PhoneCall,
217
+ "phone-call": PhoneCall,
218
+ megaphone: Megaphone,
219
+ link: LinkIcon,
220
+ unlink: Unlink,
221
+ lock: Lock,
222
+ hash: Hash,
223
+ text: Type,
224
+ type: Type,
225
+ quote: Quote,
226
+ color: Palette,
227
+ chevronLeft: ChevronLeft,
228
+ chevronRight: ChevronRight,
229
+ chevronUp: ChevronUp,
230
+ chevronDown: ChevronDown,
231
+ arrowLeft: ArrowLeft,
232
+ "arrow-left": ArrowLeft,
233
+ arrowRight: ArrowRight,
234
+ arrowUp: ArrowUp,
235
+ arrowDown: ArrowDown,
236
+ listSortAscending: ArrowUpNarrowWide,
237
+ listSortDescending: ArrowDownWideNarrow,
238
+ listSortNeutral: ArrowUpDown,
239
+ plus: Plus,
240
+ minus: Minus,
241
+ heart: Heart,
242
+ thumbsUp: ThumbsUp,
243
+ thumbsDown: ThumbsDown,
244
+ shoppingBag: ShoppingBag,
245
+ clock: Clock,
246
+ tag: Tag,
247
+ helpCircle: HelpCircle,
248
+ mapPin: MapPin,
249
+ creditCard: CreditCard,
250
+ close: X,
251
+ check: Check,
252
+ search: Search,
253
+ moreHorizontal: MoreHorizontal,
254
+ statusSuccess: CheckCircle,
255
+ statusError: XCircle,
256
+ statusWarning: AlertTriangle,
257
+ statusInfo: Info,
258
+ user: User,
259
+ home: Home,
260
+ fileText: FileText,
261
+ settings: Settings,
262
+ logOut: LogOut,
263
+ pencil: Pencil,
264
+ copy: Copy,
265
+ trash: Trash2,
266
+ trash2: Trash2,
267
+ "trash-2": Trash2,
268
+ trashSolid: Trash,
269
+ folder: Folder,
270
+ rows3: Rows3,
271
+ table: Rows3,
272
+ layoutGrid: LayoutGrid,
273
+ grid: LayoutGrid,
274
+ columns3: Columns3,
275
+ columns: Columns3,
276
+ kanban: Columns3,
277
+ maximize: Maximize2,
278
+ maximize2: Maximize2,
279
+ table2: Table2,
280
+ pivot: Table2,
281
+ calendar: Calendar,
282
+ list: List,
283
+ moreVertical: MoreVertical,
284
+ arrowUpRight: ArrowUpRight,
285
+ arrowDownRight: ArrowDownRight,
286
+ gripVertical: GripVertical,
287
+ users: Users,
288
+ repeat: Repeat,
289
+ scrollText: ScrollText,
290
+ panelTop: PanelTop,
291
+ panelBottom: PanelBottom,
292
+ "panel-top": PanelTop,
293
+ "panel-bottom": PanelBottom,
294
+ panelLeft: PanelLeft,
295
+ panelRight: PanelRight,
296
+ panelLeftOpen: PanelLeftOpen,
297
+ panelLeftClose: PanelLeftClose,
298
+ panelRightOpen: PanelRightOpen,
299
+ panelRightClose: PanelRightClose,
300
+ "panel-left": PanelLeft,
301
+ "panel-right": PanelRight,
302
+ "panel-left-open": PanelLeftOpen,
303
+ "panel-left-close": PanelLeftClose,
304
+ "panel-right-open": PanelRightOpen,
305
+ "panel-right-close": PanelRightClose,
306
+ bell: Bell,
307
+ chevronsUpDown: ChevronsUpDown,
308
+ pipette: Pipette,
309
+ rotateCcw: RotateCcw,
310
+ rotateCw: RotateCw,
311
+ undo: Undo,
312
+ redo: Redo,
313
+ shoppingCart: ShoppingCart,
314
+ package: Package,
315
+ key: KeyRound,
316
+ shieldCheck: ShieldCheck,
317
+ shieldAlert: ShieldAlert,
318
+ "shield-alert": ShieldAlert,
319
+ image: Image,
320
+ appWindow: AppWindow,
321
+ checkSquare: CheckSquare,
322
+ server: Server,
323
+ database: Database,
324
+ lifeBuoy: LifeBuoy,
325
+ globe: Globe,
326
+ zap: Zap,
327
+ cpu: Cpu,
328
+ shield: Shield,
329
+ inbox: Inbox,
330
+ folderOpen: FolderOpen,
331
+ packageOpen: PackageOpen,
332
+ searchX: SearchX,
333
+ palette: Palette,
334
+ code: Code,
335
+ sliders: SlidersHorizontal,
336
+ customize: Brush,
337
+ brush: Brush,
338
+ paintbrush: Paintbrush,
339
+ userRoundCog: UserRoundCog,
340
+ "user-round-cog": UserRoundCog,
341
+ userCog: UserRoundCog,
342
+ truck: Truck,
343
+ award: Award,
344
+ badgeCheck: BadgeCheck
345
+ };
346
+
347
+ // src/lib/icon/engine.tsx
348
+ import * as React from "react";
349
+ import * as LucideIcons from "lucide-react";
350
+ // src/config/icon.json
351
+ var icon_default = {
352
+ $schema: "./schema/icon.schema.json",
353
+ packs: {
354
+ pack_1: "lucide",
355
+ pack_2: "heroicons",
356
+ pack_3: "fontawesome",
357
+ iconify: "https://api.iconify.design"
358
+ },
359
+ scales: {
360
+ xs: 12,
361
+ sm: 14,
362
+ md: 16,
363
+ lg: 20,
364
+ xl: 24,
365
+ "2xl": 32,
366
+ "3xl": 40
367
+ },
368
+ theme: {
369
+ close: "close",
370
+ add: "plus",
371
+ remove: "minus",
372
+ edit: "pencil",
373
+ delete: "trash",
374
+ copy: "copy",
375
+ search: "search",
376
+ settings: "settings",
377
+ menu: "moreHorizontal",
378
+ user: "user",
379
+ dashboard: "home",
380
+ home: "home",
381
+ document: "fileText",
382
+ folder: "folder",
383
+ logout: "logOut",
384
+ back: "chevronLeft",
385
+ forward: "chevronRight",
386
+ up: "chevronUp",
387
+ down: "chevronDown",
388
+ mail: "mail",
389
+ link: "link",
390
+ lock: "lock",
391
+ success: "statusSuccess",
392
+ error: "statusError",
393
+ warning: "statusWarning",
394
+ info: "statusInfo"
395
+ },
396
+ elements: {
397
+ modalClose: "close",
398
+ sidebarToggle: "forward",
399
+ accordionExpand: "down",
400
+ accordionCollapse: "up",
401
+ alertSuccess: "success",
402
+ alertError: "error",
403
+ alertWarning: "warning",
404
+ alertInfo: "info",
405
+ inputClear: "close",
406
+ inputEmail: "mail",
407
+ inputPassword: "lock",
408
+ inputUrl: "link",
409
+ selectDropdown: "down"
410
+ },
411
+ presets: {
412
+ lucide: {
413
+ name: "Lucide Clean (Bawaan)",
414
+ defaultPack: "lucide",
415
+ theme: {
416
+ mail: "mail",
417
+ link: "link",
418
+ settings: "settings",
419
+ close: "close"
420
+ }
421
+ },
422
+ heroicons_cdn: {
423
+ name: "Heroicons Outline (CDN)",
424
+ defaultPack: "https://api.iconify.design/heroicons",
425
+ theme: {
426
+ mail: "https://api.iconify.design/heroicons:envelope.svg",
427
+ link: "https://api.iconify.design/heroicons:link.svg",
428
+ settings: "https://api.iconify.design/heroicons:cog-6-tooth.svg",
429
+ close: "https://api.iconify.design/heroicons:x-mark.svg"
430
+ }
431
+ },
432
+ mixed_trio: {
433
+ name: "Creative Mixed Trio",
434
+ theme: {
435
+ mail: "https://api.iconify.design/heroicons:envelope.svg",
436
+ link: "https://api.iconify.design/fa6-solid:link.svg",
437
+ settings: "settings",
438
+ close: "close"
439
+ }
440
+ }
441
+ }
442
+ };
443
+
444
+ // src/lib/icon/engine.tsx
445
+ import { jsxDEV, Fragment } from "react/jsx-dev-runtime";
446
+ var iconLibrary = { ...lucidePreset2 };
447
+ var remoteIconRegistry = {};
448
+ function registerIcon2(key, iconOrUrl) {
449
+ if (typeof iconOrUrl === "string") {
450
+ remoteIconRegistry[key] = iconOrUrl;
451
+ } else {
452
+ iconLibrary[key] = iconOrUrl;
453
+ }
454
+ }
455
+ function registerIcons2(map) {
456
+ for (const [k, v] of Object.entries(map)) {
457
+ registerIcon2(k, v);
458
+ }
459
+ }
460
+ function getIconScales2() {
461
+ return ICON_SCALES2;
462
+ }
463
+ function resolveIconScale2(size) {
464
+ if (typeof size === "number")
465
+ return size;
466
+ if (!size)
467
+ return ICON_SCALES2.md;
468
+ if (ICON_SCALES2[size])
469
+ return ICON_SCALES2[size];
470
+ if (/^\d+$/.test(size))
471
+ return Number(size);
472
+ return ICON_SCALES2.md;
473
+ }
474
+ function resolveIconUrl2(nameOrCandidate) {
475
+ if (!nameOrCandidate)
476
+ return null;
477
+ let candidate = remoteIconRegistry[nameOrCandidate] || nameOrCandidate;
478
+ const elements = icon_default.elements || {};
479
+ const theme = icon_default.theme || {};
480
+ if (elements[candidate])
481
+ candidate = elements[candidate];
482
+ if (theme[candidate])
483
+ candidate = theme[candidate];
484
+ if (candidate.startsWith("iconify:")) {
485
+ const iconPath = candidate.replace("iconify:", "").replace(":", "/");
486
+ return `https://api.iconify.design/${iconPath}.svg`;
487
+ }
488
+ if (/^[a-z0-9_-]+:[a-z0-9_/-]+$/i.test(candidate)) {
489
+ return `https://api.iconify.design/${candidate.replace(":", "/")}.svg`;
490
+ }
491
+ if (candidate.startsWith("http://") || candidate.startsWith("https://") || candidate.startsWith("data:image/") || candidate.endsWith(".svg")) {
492
+ return candidate;
493
+ }
494
+ return null;
495
+ }
496
+ function syncIconCssVariables2() {
497
+ if (typeof document === "undefined")
498
+ return;
499
+ const root = document.documentElement;
500
+ for (const [scale, px] of Object.entries(ICON_SCALES2)) {
501
+ root.style.setProperty(`--icon-size-${scale}`, `${px}px`);
502
+ }
503
+ const theme = icon_default.theme || {};
504
+ const elements = icon_default.elements || {};
505
+ for (const [key, val] of Object.entries(theme)) {
506
+ const url = resolveIconUrl2(val);
507
+ if (url) {
508
+ root.style.setProperty(`--icon-${key}`, `url("${url}")`);
509
+ root.style.setProperty(`--deweb-icon-${key}`, `url("${url}")`);
510
+ }
511
+ }
512
+ for (const [key, val] of Object.entries(elements)) {
513
+ const url = resolveIconUrl2(val);
514
+ if (url) {
515
+ root.style.setProperty(`--icon-${key}`, `url("${url}")`);
516
+ root.style.setProperty(`--deweb-icon-${key}`, `url("${url}")`);
517
+ }
518
+ }
519
+ for (const [key, val] of Object.entries(remoteIconRegistry)) {
520
+ const url = resolveIconUrl2(val);
521
+ if (url) {
522
+ root.style.setProperty(`--icon-${key}`, `url("${url}")`);
523
+ root.style.setProperty(`--deweb-icon-${key}`, `url("${url}")`);
524
+ }
525
+ }
526
+ }
527
+ if (typeof document !== "undefined") {
528
+ try {
529
+ syncIconCssVariables2();
530
+ } catch (err) {}
531
+ }
532
+ function setIconLibrary2(overrides) {
533
+ for (const [key, val] of Object.entries(overrides)) {
534
+ registerIcon2(key, val);
535
+ }
536
+ syncIconCssVariables2();
537
+ }
538
+ function getIconLibrary2() {
539
+ return iconLibrary;
540
+ }
541
+ function getRemoteIconRegistry2() {
542
+ return remoteIconRegistry;
543
+ }
544
+ function resetIconLibrary2() {
545
+ iconLibrary = { ...lucidePreset2 };
546
+ remoteIconRegistry = {};
547
+ }
548
+ function resolveIcon2(icon, key) {
549
+ if (!icon)
550
+ return null;
551
+ if (icon === true)
552
+ return iconLibrary[key] ?? null;
553
+ return icon;
554
+ }
555
+ var SEMANTIC_COLOR_MAP = {
556
+ primary: "var(--color-primary)",
557
+ secondary: "var(--color-secondary)",
558
+ success: "var(--color-success)",
559
+ warning: "var(--color-warning)",
560
+ danger: "var(--color-danger)",
561
+ info: "var(--color-info)",
562
+ muted: "var(--color-muted-foreground)"
563
+ };
564
+ var GRADIENT_PRESETS = {
565
+ primary: ["var(--color-primary)", "var(--color-secondary, #8b5cf6)"],
566
+ sunset: ["#f59e0b", "#ef4444"],
567
+ ocean: ["#06b6d4", "#3b82f6"],
568
+ emerald: ["#10b981", "#059669"]
569
+ };
570
+ function resolveIconColorValue(color) {
571
+ if (!color)
572
+ return;
573
+ return SEMANTIC_COLOR_MAP[color] || color;
574
+ }
575
+ function resolveIconGradientValue(gradient) {
576
+ if (!gradient)
577
+ return null;
578
+ if (typeof gradient === "string") {
579
+ const pair = GRADIENT_PRESETS[gradient];
580
+ return pair ? { from: pair[0], to: pair[1], angle: 135 } : null;
581
+ }
582
+ if (Array.isArray(gradient)) {
583
+ return { from: gradient[0], to: gradient[1], angle: 135 };
584
+ }
585
+ return { from: gradient.from, to: gradient.to, angle: gradient.angle ?? 135 };
586
+ }
587
+ var warnedIcons = new Set;
588
+ function getNormalizedNames(raw) {
589
+ if (!raw || typeof raw !== "string") {
590
+ return { camel: "", pascal: "", kebab: "", raw: "" };
591
+ }
592
+ const clean = raw.trim();
593
+ const words = clean.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[-_\s]+/g, " ").trim().toLowerCase().split(" ").filter(Boolean);
594
+ if (words.length === 0) {
595
+ return { camel: clean, pascal: clean, kebab: clean, raw: clean };
596
+ }
597
+ const camel = words[0] + words.slice(1).map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join("");
598
+ const pascal = words.map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join("");
599
+ const kebab = words.join("-");
600
+ return { camel, pascal, kebab, raw: clean };
601
+ }
602
+ function Icon2({ name, size, color, gradient, filled, multicolor, className, style, ...props }) {
603
+ const rawGradId = React.useId();
604
+ if (!name)
605
+ return null;
606
+ const gradId = `deweb-icon-grad-${rawGradId.replace(/:/g, "")}`;
607
+ const resolvedColor = resolveIconColorValue(color);
608
+ const resolvedGradient = resolveIconGradientValue(gradient);
609
+ const elements = icon_default.elements ?? {};
610
+ const theme = icon_default.theme ?? {};
611
+ let targetName = name;
612
+ if (elements[targetName]) {
613
+ targetName = elements[targetName];
614
+ }
615
+ if (theme[targetName]) {
616
+ targetName = theme[targetName];
617
+ }
618
+ const remoteUrl = remoteIconRegistry[targetName] || remoteIconRegistry[name];
619
+ const finalCandidate = remoteUrl || targetName;
620
+ const isShorthand = typeof finalCandidate === "string" && /^[a-z0-9_-]+:[a-z0-9_/-]+$/i.test(finalCandidate);
621
+ const isUrl = typeof finalCandidate === "string" && (finalCandidate.startsWith("http://") || finalCandidate.startsWith("https://") || finalCandidate.startsWith("data:image/") || finalCandidate.endsWith(".svg") || finalCandidate.startsWith("iconify:") || isShorthand);
622
+ const resolvedSize = resolveIconScale2(size);
623
+ let mergedStyle = style;
624
+ if (typeof size === "string" && /[\d.]+(px|rem|em|%|vh|vw)/.test(size)) {
625
+ mergedStyle = { width: size, height: size, ...style };
626
+ }
627
+ if (isUrl) {
628
+ let resolvedUrl = finalCandidate;
629
+ if (resolvedUrl.startsWith("iconify:")) {
630
+ const iconPath = resolvedUrl.replace("iconify:", "").replace(":", "/");
631
+ resolvedUrl = `https://api.iconify.design/${iconPath}.svg`;
632
+ } else if (isShorthand) {
633
+ resolvedUrl = `https://api.iconify.design/${finalCandidate.replace(":", "/")}.svg`;
634
+ }
635
+ const pxVal = `${resolvedSize}px`;
636
+ if (multicolor) {
637
+ return /* @__PURE__ */ jsxDEV("img", {
638
+ src: resolvedUrl,
639
+ alt: name,
640
+ className: className ? `deweb-icon deweb-icon-multicolor ${className}` : "deweb-icon deweb-icon-multicolor",
641
+ style: {
642
+ display: "inline-block",
643
+ flexShrink: 0,
644
+ width: pxVal,
645
+ height: pxVal,
646
+ objectFit: "contain",
647
+ ...mergedStyle
648
+ },
649
+ ...props
650
+ }, undefined, false, undefined, this);
651
+ }
652
+ const maskFillStyle = resolvedGradient ? {
653
+ backgroundColor: "transparent",
654
+ backgroundImage: `linear-gradient(${resolvedGradient.angle}deg, ${resolvedGradient.from}, ${resolvedGradient.to})`
655
+ } : {
656
+ backgroundColor: resolvedColor || "currentColor"
657
+ };
658
+ return /* @__PURE__ */ jsxDEV("span", {
659
+ role: "img",
660
+ "aria-label": name,
661
+ className: className ? `deweb-icon deweb-icon-mask ${className}` : "deweb-icon deweb-icon-mask",
662
+ style: {
663
+ display: "inline-block",
664
+ flexShrink: 0,
665
+ width: pxVal,
666
+ height: pxVal,
667
+ ...maskFillStyle,
668
+ WebkitMaskImage: `url("${resolvedUrl}")`,
669
+ maskImage: `url("${resolvedUrl}")`,
670
+ WebkitMaskRepeat: "no-repeat",
671
+ maskRepeat: "no-repeat",
672
+ WebkitMaskPosition: "center",
673
+ maskPosition: "center",
674
+ WebkitMaskSize: "contain",
675
+ maskSize: "contain",
676
+ ...mergedStyle
677
+ },
678
+ ...props
679
+ }, undefined, false, undefined, this);
680
+ }
681
+ const lib = getIconLibrary2();
682
+ const { camel, pascal, kebab, raw } = getNormalizedNames(targetName);
683
+ let Component = lib[raw] || lib[targetName] || lib[camel] || lib[kebab] || lib[pascal];
684
+ if (!Component) {
685
+ const lucideCandidate = LucideIcons[pascal] || LucideIcons[camel] || LucideIcons[raw];
686
+ if (lucideCandidate && (typeof lucideCandidate === "function" || typeof lucideCandidate === "object")) {
687
+ Component = lucideCandidate;
688
+ lib[targetName] = Component;
689
+ lib[camel] = Component;
690
+ lib[kebab] = Component;
691
+ }
692
+ }
693
+ if (!Component) {
694
+ if (!warnedIcons.has(targetName)) {
695
+ warnedIcons.add(targetName);
696
+ console.warn(`[Deweb UI] Icon "${name}" (target "${targetName}") tidak ditemukan. Menggunakan fallback icon.`);
697
+ }
698
+ Component = lib["helpCircle"] || lib["help-circle"] || lib["square"] || LucideIcons.HelpCircle || LucideIcons.Square;
699
+ }
700
+ if (!Component)
701
+ return null;
702
+ const iconClasses = className ? `deweb-icon ${className}` : "deweb-icon";
703
+ const svgStyle = !resolvedGradient && resolvedColor ? { color: resolvedColor, ...mergedStyle } : mergedStyle;
704
+ if (resolvedGradient) {
705
+ return /* @__PURE__ */ jsxDEV(Fragment, {
706
+ children: [
707
+ /* @__PURE__ */ jsxDEV("svg", {
708
+ width: 0,
709
+ height: 0,
710
+ "aria-hidden": "true",
711
+ style: { position: "absolute", width: 0, height: 0, overflow: "hidden", pointerEvents: "none" },
712
+ children: /* @__PURE__ */ jsxDEV("defs", {
713
+ children: /* @__PURE__ */ jsxDEV("linearGradient", {
714
+ id: gradId,
715
+ x1: "0%",
716
+ y1: "0%",
717
+ x2: "100%",
718
+ y2: "100%",
719
+ children: [
720
+ /* @__PURE__ */ jsxDEV("stop", {
721
+ offset: "0%",
722
+ stopColor: resolvedGradient.from
723
+ }, undefined, false, undefined, this),
724
+ /* @__PURE__ */ jsxDEV("stop", {
725
+ offset: "100%",
726
+ stopColor: resolvedGradient.to
727
+ }, undefined, false, undefined, this)
728
+ ]
729
+ }, undefined, true, undefined, this)
730
+ }, undefined, false, undefined, this)
731
+ }, undefined, false, undefined, this),
732
+ /* @__PURE__ */ jsxDEV(Component, {
733
+ size: resolvedSize,
734
+ className: iconClasses,
735
+ style: svgStyle,
736
+ stroke: `url(#${gradId})`,
737
+ ...filled ? { fill: `url(#${gradId})` } : {},
738
+ ...props
739
+ }, undefined, false, undefined, this)
740
+ ]
741
+ }, undefined, true, undefined, this);
742
+ }
743
+ return /* @__PURE__ */ jsxDEV(Component, {
744
+ size: resolvedSize,
745
+ className: iconClasses,
746
+ style: svgStyle,
747
+ ...filled ? { fill: resolvedColor || "currentColor" } : {},
748
+ ...props
749
+ }, undefined, false, undefined, this);
750
+ }
751
+
752
+ export { ICON_SCALES2, lucidePreset2, registerIcon2, registerIcons2, getIconScales2, resolveIconScale2, resolveIconUrl2, syncIconCssVariables2, setIconLibrary2, getIconLibrary2, getRemoteIconRegistry2, resetIconLibrary2, resolveIcon2, Icon2 };
753
+
754
+ //# debugId=471A849C44C975E064756E2164756E21