@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,14 @@
1
+ import type { ColorTone } from './types';
2
+ export declare const tailwindSafelist: string[];
3
+ /**
4
+
5
+
6
+
7
+
8
+
9
+ * ```ts
10
+ * colorClassName('success', 'dimmy') // "bg-[var(--color-success-dimmy)]"
11
+ * colorClassName('success', 'text', 'text') // "text-[var(--color-success-text)]"
12
+ * ```
13
+ */
14
+ export declare function colorClassName(key: string, tone: ColorTone, kind?: 'bg' | 'text' | 'border'): string;
@@ -0,0 +1,82 @@
1
+ /** Brand colors default -- sumber HEX mentah utama yang ditunjuk oleh Theme/Base Color. */
2
+ export declare const DEFAULT_BRAND_COLORS: {
3
+ "color-1": string;
4
+ "color-2": string;
5
+ "color-3": string;
6
+ "color-4": string;
7
+ "color-5": string;
8
+ };
9
+ /** Theme slot default -- tiap key MENUNJUK ke nama salah satu base color ATAU brand color. */
10
+ export declare const DEFAULT_THEME_COLORS: {
11
+ primary: string;
12
+ secondary: string;
13
+ accent: string;
14
+ muted: string;
15
+ success: string;
16
+ warning: string;
17
+ danger: string;
18
+ info: string;
19
+ };
20
+ /** Custom for elements color override */
21
+ export declare const DEFAULT_ELEMENTS_COLORS: {
22
+ foreground: string;
23
+ background: string;
24
+ border: string;
25
+ "border-field-low": string;
26
+ "border-field-normal": string;
27
+ "border-field-high": string;
28
+ "border-hover": string;
29
+ card: string;
30
+ datetime: string;
31
+ filter: string;
32
+ input: string;
33
+ loading: string;
34
+ sidebar: string;
35
+ skeleton: string;
36
+ tab: string;
37
+ tooltip: string;
38
+ };
39
+ /** Components that are dynamically generated or should be hidden from Theme Styler UI */
40
+ export declare const HIDDEN_COMPONENTS: string[];
41
+ /** Gradient presets default -- konfigurasi gradasi 2-stop atau 3-stop */
42
+ export declare const DEFAULT_GRADIENT_COLORS: {
43
+ primary: {
44
+ direction: string;
45
+ from: string;
46
+ to: string;
47
+ };
48
+ aurora: {
49
+ direction: string;
50
+ from: string;
51
+ via: string;
52
+ to: string;
53
+ };
54
+ brand: {
55
+ direction: string;
56
+ from: string;
57
+ via: string;
58
+ to: string;
59
+ };
60
+ sunset: {
61
+ direction: string;
62
+ from: string;
63
+ via: string;
64
+ to: string;
65
+ };
66
+ ocean: {
67
+ direction: string;
68
+ from: string;
69
+ via: string;
70
+ to: string;
71
+ };
72
+ emerald: {
73
+ direction: string;
74
+ from: string;
75
+ to: string;
76
+ };
77
+ subtle: {
78
+ direction: string;
79
+ from: string;
80
+ to: string;
81
+ };
82
+ };
@@ -0,0 +1,221 @@
1
+ /**
2
+ * Color palette -- SATU sumber kebenaran untuk warna presisi di seluruh @deweb/ui-kit
3
+ * (2026-07-29), mirroring pola lib/icon/ (Icon registry) tapi untuk warna. BEDA dari
4
+ * kebanyakan design token (radius/shadow/border-contrast di ui-kit.css) yang murni
5
+ * @theme/build-time: warna di sini SENGAJA dibuat JS-first, bukan CSS-first, karena
6
+ * requirement eksplisit "mau preset warna di-setup lewat UI, ganti realtime, tanpa
7
+ * rebuild". Ini objek JS (bukan @theme) jadi SATU-SATUNYA sumber nilai -- CSS variable
8
+ * di :root di-generate darinya lewat applyColorPalette(), bukan sebaliknya.
9
+ *
10
+ * TIGA TINGKAT (2026-07-29, referensi Bootstrap utk theme color, Tailwind utk base color):
11
+ * 1) BASE COLOR -- warna mentah, 22 nama warna Tailwind (red/orange/amber/yellow/lime/
12
+ * green/emerald/teal/cyan/sky/blue/indigo/violet/purple/fuchsia/pink/rose/slate/gray/
13
+ * zinc/neutral/stone), SATU hex representatif (shade 600) per nama -- dimmy/text
14
+ * DI-DERIVE OTOMATIS dari situ lewat formula HSL, BUKAN diketik manual, BUKAN pula
15
+ * import 242 shade Tailwind penuh.
16
+ * 2) THEME SLOT (success/warning/danger/info -- primary/secondary/dst MENYUSUL di sesi
17
+ * terpisah) -- SLOT FUNGSIONAL yang MENUNJUK (alias) ke salah satu Base Color, BUKAN
18
+ * warna independen sendiri. Ganti target slot -> semua komponen yang baca slot itu
19
+ * ikut berubah, base color lain tidak terganggu (mis. setThemeColor({ success: 'teal' })
20
+ * -- semua "hijau sukses" jadi teal, base color 'green' sendiri tetap hijau).
21
+ * 3) KOMPONEN -- baca dari Theme Color (mis. Badge variant="success") ATAU langsung dari
22
+ * Base Color (mis. tag kategori custom yang sengaja selalu 'blue', lepas dari 'info'
23
+ * lagi menunjuk ke base color apa). Satu API yang sama (colorClassName/getColorPalette)
24
+ * untuk kedua level -- key yang dipakai yang menentukan levelnya.
25
+ *
26
+ * FORMULA BISA DI-SETTING (request eksplisit "value preset dim & text bisa di setting
27
+ * juga") -- ColorFormula GLOBAL (berlaku semua base color) + override PER-WARNA (mis.
28
+ * "orange" butuh darker lebih dalam). Prioritas resolusi: per-warna > global > default.
29
+ *
30
+ * SERIALIZABLE (request eksplisit "disave file confignya, memungkinkan?") --
31
+ * exportColorConfig()/importColorConfig() mengubah seluruh state (base color, theme color,
32
+ * formula global, override per-warna) jadi 1 objek JSON, untuk disimpan/dipulihkan
33
+ * consumer (mis. UI admin "atur warna" yang persist ke file/database).
34
+ *
35
+ * Konsekuensi dari JS-first: TIDAK ada utility class Tailwind otomatis (bg-green tidak
36
+ * ada karena --color-green tidak terdaftar di @theme saat build) -- pakai arbitrary value
37
+ * className via `colorClassName()` (mis. `bg-[var(--color-green)]`), atau baca langsung
38
+ * `getColorPalette().green.base` untuk inline style/JS logic.
39
+ *
40
+ * Kompatibel dengan Icon registry (lib/icon/) -- keduanya independen tapi saling
41
+ * melengkapi lewat CSS variable/className standar, tidak ada coupling:
42
+ * ```tsx
43
+ * <Icon name="statusSuccess" className={colorClassName('success', 'text', 'text')} />
44
+ * ```
45
+ */
46
+ import type { BrandColorKey, ThemeColorKey } from './types';
47
+ export { colorClassName } from './className';
48
+ /** Base color -- 22 nama warna resmi Tailwind, referensi untuk autocomplete/type-check,
49
+ * BUKAN batasan (nama custom baru, mis. 'brand2', tetap diterima lewat setColorPalette). */
50
+ export type TailwindColorKey = 'red' | 'orange' | 'amber' | 'gold' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose' | 'slate' | 'zinc' | 'neutral' | 'stone' | 'gray' | 'mauve' | 'mist' | 'olive' | 'dark' | 'light';
51
+ export interface GradientPreset {
52
+ direction: string;
53
+ from: string;
54
+ via?: string;
55
+ to: string;
56
+ }
57
+ export declare const DEFAULT_GRADIENTS: Record<string, GradientPreset>;
58
+ /** Key apa pun (brand color, base color bawaan/custom, atau theme color) yang bisa di-resolve. */
59
+ export type ColorKey = BrandColorKey | TailwindColorKey | ThemeColorKey | (string & {});
60
+ export interface ColorPaletteEntry {
61
+ lightest: string;
62
+ lighter: string;
63
+ light: string;
64
+ base: string;
65
+ dark: string;
66
+ darker: string;
67
+ dimmy?: string;
68
+ text?: string;
69
+ }
70
+ /** Snapshot lengkap semua warna (base color + theme color, sudah di-derive dimmy/text). */
71
+ export type ColorPalette = Record<string, ColorPaletteEntry>;
72
+ /**
73
+ * Formula derive dimmy/text dari base -- dalam SATUAN LIGHTNESS HSL (0-100), bukan
74
+ * persentase relatif, supaya konsisten dipahami sebagai "posisi lightness", cocok
75
+ * dijadikan slider 0-100 di UI admin.
76
+ * dimmyLightness -- lightness absolut untuk dimmy (default 95 -- sangat pucat).
77
+ * textDarkenBy -- berapa poin lightness DIKURANGI dari base untuk text (default 15).
78
+ * textMinLightness -- batas bawah lightness text, supaya tidak jadi hitam pekat kalau
79
+ * base sudah gelap (default 15).
80
+ */
81
+ export interface ColorFormula {
82
+ dimmyLightness: number;
83
+ textDarkenBy: number;
84
+ textMinLightness: number;
85
+ textMaxLightness: number;
86
+ }
87
+ export interface BoxConfig {
88
+ radiusBase: number;
89
+ shadowIntensity: number;
90
+ borderContrast: number;
91
+ borderSize: number;
92
+ focusRingWidth?: number;
93
+ focusRingOpacity?: number;
94
+ animationSpeed: number;
95
+ transitionEffect: string;
96
+ }
97
+ /** Subscribe ke perubahan status undo/redo (canUndo/canRedo) -- dipakai React consumer
98
+ * (mis. useSyncExternalStore) utk re-render tombol Undo/Redo. Return unsubscribe fn. */
99
+ export declare function subscribeColorHistory(listener: () => void): () => void;
100
+ export declare function canUndoColorPalette(): boolean;
101
+ export declare function canRedoColorPalette(): boolean;
102
+ /** Mundur 1 langkah history sesi ini -- no-op kalau sudah di awal. */
103
+ export declare function undoColorPalette(): void;
104
+ /** Maju 1 langkah history sesi ini -- no-op kalau sudah di akhir. */
105
+ export declare function redoColorPalette(): void;
106
+ export declare function parseColorToHsl(colorStr: string): {
107
+ h: number;
108
+ s: number;
109
+ l: number;
110
+ a: number;
111
+ } | null;
112
+ export declare function getPerceivedBrightness(colorStr: string): number;
113
+ export declare function hslToColorString(h: number, s: number, l: number, a?: number): string;
114
+ /** Resolve pointer 3 lapis: Theme -> Base -> Brand -> HEX */
115
+ export declare function resolveBaseHex(key: string, resolvingAuto?: boolean): string | undefined;
116
+ /**
117
+ * Fungsi utilitas untuk memberikan efek hover (dim/terang) secara adaptif.
118
+ * - Jika warna dasar sudah hampir hitam (Lightness < 15), akan diterangkan sebesar `intensity`.
119
+ * - Jika warna dasar normal/cukup gelap (L >= 15), akan digelapkan sebesar `intensity`.
120
+ */
121
+ export declare function adaptiveDim(baseColor: string, intensity: number): string;
122
+ /** Resolve 1 key (base color ATAU theme color) jadi entry lengkap. */
123
+ export declare function resolveEntry(key: string): ColorPaletteEntry | undefined;
124
+ export declare function applyBoxConfig(config?: BoxConfig): void;
125
+ export declare function setBoxConfig(updates: Partial<BoxConfig>): void;
126
+ export declare function applyColorPalette(): void;
127
+ /**
128
+ * Override base hex 1 atau beberapa BASE COLOR -- realtime, langsung derive dimmy/text
129
+ * lalu inject ke CSS variable :root. Theme slot yang menunjuk ke base color ini ikut
130
+ * berubah otomatis (mis. ganti 'green' -> semua slot yang menunjuk 'green' ikut berubah).
131
+ *
132
+ * ```ts
133
+ * setColorPalette({ green: '#22c55e' }) // dimmy & text otomatis ikut menyesuaikan
134
+ * setColorPalette({ brand2: '#4ade80' }) // base color custom baru
135
+ * ```
136
+ */
137
+ export declare function setColorPalette(overrides: Record<string, string>): void;
138
+ /**
139
+ * Alihkan 1 atau beberapa THEME SLOT ke base color lain -- realtime. Ini yang membuat
140
+ * "ganti primary/success, semua komponen yang baca slot itu ikut berubah" (2026-07-29,
141
+ * request eksplisit "misal primary color pake green ... kalo di Button ambilnya primary
142
+ * color, bukan spesifik ke green").
143
+ *
144
+ * ```ts
145
+ * setThemeColor({ success: 'teal' }) // semua yang baca slot 'success' jadi warna teal
146
+ * setThemeColor({ myBrand: 'blue' }) // slot custom baru
147
+ * ```
148
+ */
149
+ export declare function setThemeColor(overrides: Record<string, TailwindColorKey | string>): void;
150
+ /**
151
+ * Override 1 atau beberapa BRAND COLOR -- realtime.
152
+ */
153
+ export declare function setBrandColor(overrides: Record<string, string>): void;
154
+ /**
155
+ * Set formula GLOBAL (berlaku semua warna yang tidak punya override sendiri) -- realtime,
156
+ * langsung re-derive dimmy/text semua warna & inject ulang ke CSS variable.
157
+ *
158
+ * ```ts
159
+ * setColorFormula({ dimmyLightness: 90, textDarkenBy: 20 })
160
+ * ```
161
+ */
162
+ export declare function setColorFormula(overrides: Partial<ColorFormula>): void;
163
+ /**
164
+ * Set formula KHUSUS 1 key (base color atau theme color), override formula global untuk
165
+ * key itu saja -- realtime. Contoh kasus: "orange" secara visual kurang kontras dengan
166
+ * formula default, butuh textDarkenBy lebih besar tanpa mengubah warna lain.
167
+ *
168
+ * ```ts
169
+ * setColorFormulaFor('orange', { textDarkenBy: 22 })
170
+ * ```
171
+ */
172
+ export declare function setColorFormulaFor(key: string, overrides: Partial<ColorFormula>): void;
173
+ /** Snapshot base hex tiap BASE COLOR (tanpa theme color, tanpa derive dimmy/text) --
174
+ * berguna untuk color picker UI admin yang cuma butuh 1 nilai hex per warna. */
175
+ export declare function getBaseColors(): Record<string, string>;
176
+ /** Snapshot theme color saat ini -- key slot -> nama target yang ditunjuknya. */
177
+ export declare function getThemeColors(): Record<string, string>;
178
+ /** Snapshot brand colors saat ini. */
179
+ export declare function getBrandColors(): Record<string, string>;
180
+ /** Formula global saat ini. */
181
+ export declare function getColorFormula(): ColorFormula;
182
+ /** Formula efektif untuk 1 key (global + override kalau ada) -- berguna untuk pre-fill
183
+ * slider "dim/darker" di UI admin per-warna. */
184
+ export declare function getColorFormulaFor(key: string): ColorFormula;
185
+ /** Snapshot lengkap (dimmy/base/text ter-derive) semua base color + theme color terdaftar. */
186
+ export declare function getColorPalette(): ColorPalette;
187
+ export declare function resetColorPalette(): void;
188
+ /** Bentuk config lengkap yang bisa disimpan (JSON.stringify-able) & dipulihkan utuh --
189
+ * base color, theme color, brand color, formula global, override per-warna. */
190
+ export interface ColorConfig {
191
+ baseColors: Record<string, string>;
192
+ themeColors: Record<string, string>;
193
+ brandColors: Record<string, string>;
194
+ formula: ColorFormula;
195
+ formulaOverrides: Record<string, Partial<ColorFormula>>;
196
+ boxConfig?: BoxConfig;
197
+ gradients?: Record<string, GradientPreset>;
198
+ }
199
+ /**
200
+ * Export seluruh state saat ini jadi 1 objek JSON-serializable -- simpan hasil ini ke
201
+ * file/database dari sisi consumer (mis. setelah user klik "Simpan" di UI admin
202
+ * pengaturan warna).
203
+ *
204
+ * ```ts
205
+ * const config = exportColorConfig()
206
+ * await fetch('/api/theme', { method: 'POST', body: JSON.stringify(config) })
207
+ * ```
208
+ */
209
+ export declare function exportColorConfig(): ColorConfig;
210
+ /**
211
+ * Pulihkan state (base color, theme color, formula global, override per-warna) dari
212
+ * config yang sebelumnya di-export & disimpan -- panggil SEKALI saat app start (mis.
213
+ * setelah fetch config tersimpan dari API), efeknya langsung diterapkan ke CSS variable
214
+ * :root. Partial -- field yang tidak ada di config tetap pakai default/current.
215
+ *
216
+ * ```ts
217
+ * const config = await fetch('/api/theme').then(r => r.json())
218
+ * importColorConfig(config)
219
+ * ```
220
+ */
221
+ export declare function importColorConfig(config: Partial<ColorConfig>): void;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * 1. Complementary (180°) - UI Optimized
3
+ * Menghasilkan: Light Base, Base, Dark Base, Light Complement, Complement.
4
+ */
5
+ export declare function generateComplementary(hexColor: string): string[];
6
+ /**
7
+ * 2. Analogous (30°) - UI Optimized
8
+ * Transisi warna lembut dari satu sisi roda warna ke sisi lain, dengan variasi kecerahan.
9
+ */
10
+ export declare function generateAnalogous(hexColor: string): string[];
11
+ /**
12
+ * 3. Triadic (120°, 240°) - UI Optimized
13
+ * Warna cerah seimbang. Diredam saturasinya agar tidak menyakitkan mata.
14
+ */
15
+ export declare function generateTriadic(hexColor: string): string[];
16
+ /**
17
+ * 4. Split Complementary (150°, 210°) - UI Optimized
18
+ * Aman dan kaya warna.
19
+ */
20
+ export declare function generateSplitComplementary(hexColor: string): string[];
21
+ /**
22
+ * 5. Tetradic / Square (90°, 180°, 270°) - UI Optimized
23
+ * Penuh warna tapi punya dominasi yang jelas agar tidak berantakan.
24
+ */
25
+ export declare function generateTetradic(hexColor: string): string[];
26
+ /**
27
+ * 6. Monochromatic - UI Optimized
28
+ * Sangat elegan. Variasi dari nyaris putih hingga nyaris hitam.
29
+ */
30
+ export declare function generateMonochromatic(hexColor: string): string[];
31
+ /**
32
+ * 7. Accented Analogous (±30° + 180°) - UI Optimized
33
+ * Warna serumpun yang tenang dengan 1 warna komplemen sebagai aksen CTA.
34
+ */
35
+ export declare function generateAccentedAnalogous(hexColor: string): string[];
36
+ /**
37
+ * 8. Double Complementary / Rectangle (60°, 180°, 240°) - UI Optimized
38
+ * Lebih seimbang dan lembut dibanding Tetradic Square.
39
+ */
40
+ export declare function generateDoubleComplementary(hexColor: string): string[];
41
+ /**
42
+ * 9. UI Neutral / Brand Balance - UI Optimized
43
+ * Kombinasi siap pakai untuk SaaS/Dashboard: Brand utama + Navy/Slate gelap + Soft tint.
44
+ */
45
+ export declare function generateUiNeutral(hexColor: string): string[];
@@ -0,0 +1,5 @@
1
+ export * from './engine';
2
+ export * from './className';
3
+ export * from './config';
4
+ export * from './generator';
5
+ export * from './types';
@@ -0,0 +1 @@
1
+ export declare const tailwindSafelist: string[];
@@ -0,0 +1,12 @@
1
+ /** Brand color -- warna dinamis custom per brand (color_1, color_2, dst). */
2
+ export type BrandColorKey = string;
3
+ /** Theme slot -- fungsional, tiap key MENUNJUK (alias) ke salah satu base color ATAU brand color. */
4
+ export type ThemeColorKey = 'primary' | 'primary-foreground' | 'secondary' | 'secondary-foreground' | 'success' | 'success-foreground' | 'warning' | 'warning-foreground' | 'danger' | 'danger-foreground' | 'info' | 'info-foreground' | 'background' | 'foreground' | 'card' | 'card-foreground' | 'border' | 'border-field-low' | 'border-field-normal' | 'border-field-high' | 'border-hover' | 'input' | 'muted' | 'muted-foreground' | 'text-color' | 'accent' | 'accent-foreground' | 'danger' | 'danger-foreground' | 'sidebar' | 'sidebar-foreground' | 'sidebar-border' | 'sidebar-accent' | 'tooltip' | 'tooltip-foreground' | 'loading' | 'loading-foreground' | 'tab' | 'tab-foreground' | 'datetime' | 'datetime-foreground' | 'filter' | 'filter-foreground' | 'skeleton' | 'skeleton-foreground';
5
+ export type ColorTone = 'lightest' | 'lighter' | 'light' | 'base' | 'dark' | 'darker' | 'dimmy' | 'text' | 'safe';
6
+ export interface GradientConfig {
7
+ direction?: string;
8
+ from: string;
9
+ via?: string;
10
+ to: string;
11
+ }
12
+ export type GradientKey = 'primary' | 'aurora' | 'brand' | 'sunset' | 'ocean' | 'emerald' | 'subtle' | (string & {});
@@ -0,0 +1,13 @@
1
+ import type { FontDefinition, FontPreset } from './types';
2
+ /** Brand font slots bawaan (font_1 s/d font_4) */
3
+ export declare const DEFAULT_FONT_BRAND: Record<string, string>;
4
+ /** Skala ukuran bawaan (xs s/d 3xl) */
5
+ export declare const DEFAULT_FONT_SCALES: Record<string, string>;
6
+ /** Skala bobot bawaan (regular s/d extrabold) */
7
+ export declare const DEFAULT_FONT_WEIGHTS: Record<string, string>;
8
+ /** Pemetaan peran tema bawaan (heading, body, accent, mono) */
9
+ export declare const DEFAULT_FONT_THEME: Record<string, string>;
10
+ /** Konfigurasi elemen bawaan */
11
+ export declare const DEFAULT_FONT_ELEMENTS: Record<string, FontDefinition>;
12
+ /** Preset kombinasi font pairing bawaan */
13
+ export declare const DEFAULT_FONT_PRESETS: Record<string, FontPreset>;
@@ -0,0 +1,77 @@
1
+ import * as React from 'react';
2
+ import type { FontElementKey, FontDefinition, FontPreset, FontConfig } from './types';
3
+ export interface FontAssetConfig {
4
+ family: string;
5
+ src: string;
6
+ weight?: string | number;
7
+ style?: 'normal' | 'italic' | string;
8
+ format?: 'woff2' | 'woff' | 'truetype' | 'opentype';
9
+ }
10
+ /**
11
+ * Daftarkan sumber font eksternal/lokal di satu tempat:
12
+ * - File lokal (.ttf, .otf, .woff2, .woff) -> otomatis inject @font-face
13
+ * - Stylesheet Cloud/CDN Font (.css / URL eksternal, mis. Bunny Fonts, Fontshare, CDN custom) -> inject <link rel="stylesheet">
14
+ */
15
+ export declare function registerFontAsset({ family, src, weight, style, format, }: FontAssetConfig): void;
16
+ /**
17
+ * Deteksi apakah runtime saat ini adalah bot pencari, Lighthouse, atau headless audit
18
+ */
19
+ export declare function isBotOrCrawler(): boolean;
20
+ /**
21
+ * Lazy-load Google Fonts secara on-demand khusus untuk pengguna asli.
22
+ * Otomatis di-skip jika yang mengakses adalah bot / Lighthouse audit.
23
+ */
24
+ export declare function loadGoogleFontOnDemand(fontFamilyName?: string): void;
25
+ export declare function resolveFontFamily(familyInput?: string): string;
26
+ /**
27
+ * Resolusi nilai ukuran font:
28
+ * Mendukung skala T-shirt ('xs' s/d '3xl') atau ukuran pixel/rem mentah.
29
+ */
30
+ export declare function resolveFontSize(sizeInput?: string): string;
31
+ /**
32
+ * Resolusi nilai ketebalan (weight) font:
33
+ * Mendukung semantic weight ('regular', 'medium', 'semibold', 'bold') atau angka mentah.
34
+ */
35
+ export declare function resolveFontWeight(weightInput?: string): string;
36
+ /**
37
+ * Mengambil definisi font lengkap yang sudah di-resolve secara menyeluruh.
38
+ */
39
+ export declare function getResolvedFontDefinition(key: FontElementKey): FontDefinition;
40
+ /**
41
+ * Generates dan menginjeksi CSS variables ke :root untuk seluruh sistem tipografi.
42
+ * Menghasilkan:
43
+ * - Brand slots: --font-1, --font-2, --font-3, --font-4
44
+ * - Theme roles: --font-heading, --font-body, --font-accent, --font-mono
45
+ * - Scales: --font-size-xs, --font-size-sm, ..., --font-size-3xl
46
+ * - Elements: --font-[element]-family, --font-[element]-size, --font-[element]-weight
47
+ */
48
+ export declare function applyFontPalette(): void;
49
+ /**
50
+ * Helper untuk menghasilkan inline CSS properties untuk element font atau skala.
51
+ *
52
+ * Contoh:
53
+ * style={fontStyle('h1')} // Heading 1 style
54
+ * style={fontStyle('xs')} // Skala XS
55
+ * style={fontStyle('base')} // Base body text style
56
+ */
57
+ export declare function fontStyle(key: FontElementKey): React.CSSProperties;
58
+ export declare function getFontBrand(): Record<string, string>;
59
+ export declare function setFontBrand(overrides: Record<string, string>): void;
60
+ export declare function getFontTheme(): Record<string, string>;
61
+ export declare function setFontTheme(overrides: Record<string, string>): void;
62
+ export declare function getFontScales(): Record<string, string>;
63
+ export declare function setFontScales(overrides: Record<string, string>): void;
64
+ export declare function getFontWeights(): Record<string, string>;
65
+ export declare function setFontWeights(overrides: Record<string, string>): void;
66
+ export declare function getFontPalette(): Record<string, FontDefinition>;
67
+ export declare function setFontPalette(config: Record<string, FontDefinition>): void;
68
+ export declare function getFontPresets(): Record<string, FontPreset>;
69
+ /**
70
+ * Terapkan preset kombinasi font pairing
71
+ */
72
+ export declare function applyFontPreset(presetKey: string): boolean;
73
+ export declare function exportFontConfig(): FontConfig;
74
+ export declare function importFontConfig(config: Partial<FontConfig> & {
75
+ assets?: FontAssetConfig[];
76
+ }): void;
77
+ export declare function resetFontConfig(): void;
@@ -0,0 +1,3 @@
1
+ export * from './types';
2
+ export * from './config';
3
+ export * from './engine';
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Font Engine Types
3
+ * Mendefinisikan struktur tipografi 4-Tier untuk seluruh sistem Deweb UI Kit.
4
+ */
5
+ export type FontBrandSlot = 'font_1' | 'font_2' | 'font_3' | 'font_4' | (string & {});
6
+ export type FontThemeSlot = 'heading' | 'body' | 'accent' | 'mono' | (string & {});
7
+ export type FontSizeScale = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | (string & {});
8
+ export type FontWeightScale = 'regular' | 'medium' | 'semibold' | 'bold' | 'extrabold' | (string & {});
9
+ export interface FontDefinition {
10
+ family: string;
11
+ size: string;
12
+ weight: string;
13
+ }
14
+ export interface FontPreset {
15
+ name: string;
16
+ brand: Record<string, string>;
17
+ theme: Record<string, string>;
18
+ }
19
+ export interface FontConfig {
20
+ brand: Record<string, string>;
21
+ scales: Record<string, string>;
22
+ weights: Record<string, string>;
23
+ theme: Record<string, string>;
24
+ elements: Record<string, FontDefinition>;
25
+ presets?: Record<string, FontPreset>;
26
+ }
27
+ export type FontElementKey = 'base' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'small-text' | 'large-text' | 'logo' | 'button' | 'quote' | 'pullquote' | 'code' | 'caption' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | (string & {});
@@ -0,0 +1,37 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * Icon registry global -- SATU sumber kebenaran untuk semua icon "chrome" (struktural,
4
+ * bawaan komponen kit -- bukan konten arbitrary yang dipilih consumer per-instance) di
5
+ * seluruh @deweb/ui-kit. Default lucide-react (2026-07-29). Consumer (Panel/Portal) bisa
6
+ * GANTI SEBAGIAN ATAU SELURUH set icon ke library lain (Heroicons, Font Awesome, custom
7
+ * SVG, dst) dengan panggil `setIconLibrary()` SEKALI di entry point (main.tsx), sebelum
8
+ * render pertama -- semua komponen baca dari module-level state ini, tidak perlu bungkus
9
+ * <Provider> di root App.
10
+ *
11
+ * EXTENSIBLE (2026-07-29, request eksplisit "harus luas, dan bisa di custom tambah
12
+ * sendiri"): `IconLibrary` adalah index signature terbuka (`[key: string]: IconComponent`),
13
+ * BUKAN union tertutup -- key bawaan (mail, chevronRight, dst) sudah type-safe lewat
14
+ * `IconLibraryKey` union di bawah (autocomplete jalan), tapi consumer/komponen custom
15
+ * bebas nambah key BARU yang belum pernah didefinisikan kit ini lewat `setIconLibrary({
16
+ * myCustomIcon: MyIcon })` lalu ambil via `getIconLibrary().myCustomIcon` -- tidak perlu
17
+ * ubah file ini untuk nambah icon baru.
18
+ *
19
+ * Kenapa module-level state (bukan React Context): kit ini sudah konsisten pola fungsi/
20
+ * komponen polos tanpa Provider di tempat lain (Select, CalendarInput, dst semua
21
+ * controlled via props) -- nambah 1 Context cuma untuk icon akan jadi satu-satunya
22
+ * pengecualian pola, sementara override icon TIDAK butuh reaktivitas per-render (di-set
23
+ * sekali di awal, tidak pernah berubah runtime di tengah sesi).
24
+ */
25
+ export type IconComponent = React.ComponentType<{
26
+ size?: number;
27
+ className?: string;
28
+ style?: React.CSSProperties;
29
+ }>;
30
+ /** Key bawaan kit -- dipakai internal oleh komponen (Input, Accordion, Breadcrumb, Alert,
31
+ * Toast, Tabs, Modal, dst). Referensi untuk autocomplete/type-check, BUKAN batasan --
32
+ * lihat `IconLibrary` (index signature) untuk key custom di luar daftar ini. */
33
+ export type IconLibraryKey = 'mail' | 'phone' | 'phoneCall' | 'megaphone' | 'link' | 'unlink' | 'lock' | 'hash' | 'text' | 'color' | 'chevronLeft' | 'chevronRight' | 'chevronUp' | 'chevronDown' | 'listFilter' | 'filter' | 'slidersHorizontal' | 'plus' | 'minus' | 'close' | 'check' | 'trash' | 'trash2' | 'trash-2' | 'save' | 'search' | 'moreHorizontal' | 'moreVertical' | 'statusSuccess' | 'heart' | 'thumbsUp' | 'thumbsDown' | 'statusError' | 'statusWarning' | 'statusInfo' | 'rows3' | 'layoutGrid' | 'table2' | 'calendar' | 'listSortAscending' | 'listSortDescending' | 'listSortNeutral' | 'database' | 'lifeBuoy' | 'globe' | 'package' | 'folder' | 'inbox' | 'folderOpen' | 'packageOpen' | 'searchX' | 'zap' | 'cpu' | 'shield' | 'shieldCheck' | 'shieldAlert' | 'shield-alert' | 'externalLink' | 'pause' | 'play' | 'terminal' | 'download' | 'upload' | 'image' | 'video' | 'eye' | 'eyeOff' | 'layout' | 'edit' | 'layers' | 'messageCircle' | 'refreshCw' | 'star' | 'messageSquare' | 'ticket' | 'alertTriangle' | 'checkCircle' | 'info' | 'x' | 'panelTop' | 'panelBottom' | 'panelLeft' | 'panelRight' | 'panelLeftOpen' | 'panelLeftClose' | 'panelRightOpen' | 'panelRightClose' | 'truck' | 'award' | 'badgeCheck' | 'square' | 'alignLeft' | 'alignCenter' | 'alignRight' | 'alignJustify';
34
+ /** Index signature terbuka -- key apa pun (bawaan atau custom) resolve ke IconComponent. */
35
+ export type IconLibrary = Record<IconLibraryKey, IconComponent> & Record<string, IconComponent>;
36
+ export type IconScaleSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
37
+ export declare const ICON_SCALES: Record<IconScaleSize, number>;
@@ -0,0 +1,84 @@
1
+ import * as React from 'react';
2
+ import { type IconComponent, type IconLibrary, type IconScaleSize } from './config';
3
+ /**
4
+ * Mendaftarkan satu icon ke registry -- mendukung komponen React (satuan / tree-shaken)
5
+ * maupun URL string (SVG via CDN / Iconify).
6
+ */
7
+ export declare function registerIcon(key: string, iconOrUrl: IconComponent | string): void;
8
+ /**
9
+ * Mendaftarkan kumpulan icon sekaligus (mixed source, bisa campuran komponen & URL).
10
+ */
11
+ export declare function registerIcons(map: Record<string, IconComponent | string>): void;
12
+ /**
13
+ * Mengambil daftar skala ukuran icon T-Shirt standar (xs: 12px, sm: 14px, ..., 3xl: 40px).
14
+ */
15
+ export declare function getIconScales(): Record<IconScaleSize, number>;
16
+ /**
17
+ * Mengubah input ukuran (nama skala T-shirt atau angka) menjadi nilai pixel numerik.
18
+ */
19
+ export declare function resolveIconScale(size?: number | string): number;
20
+ /**
21
+ * Override icon library global -- partial, key yang tidak di-set tetap pakai default
22
+ * lucide-react. Bisa override key bawaan MAUPUN nambah key baru yang belum ada di
23
+ * `IconLibraryKey` (TypeScript tetap terima lewat index signature `Record<string, ...>`).
24
+ *
25
+ * Contoh ganti icon bawaan ke Heroicons:
26
+ * ```ts
27
+ * import { EnvelopeIcon, ChevronRightIcon } from '@heroicons/react/24/outline'
28
+ * setIconLibrary({ mail: EnvelopeIcon, chevronRight: ChevronRightIcon })
29
+ * ```
30
+ *
31
+ * Contoh nambah icon custom baru (dipakai komponen consumer sendiri, bukan bawaan kit):
32
+ * ```ts
33
+ * import { Rocket } from 'lucide-react'
34
+ * setIconLibrary({ rocket: Rocket })
35
+ * // lalu di mana saja: const RocketIcon = useIcon('rocket')
36
+ * ```
37
+ */
38
+ /**
39
+ * Menerjemahkan nama icon, shorthand (e.g. "heroicons:envelope"), atau URL menjadi URL SVG penuh.
40
+ */
41
+ export declare function resolveIconUrl(nameOrCandidate: string): string | null;
42
+ /**
43
+ * Menyinkronkan variabel CSS untuk icon ke :root (document.documentElement)
44
+ * Memancarkan token:
45
+ * - --icon-size-xs s/d --icon-size-3xl
46
+ * - --icon-[key]: url(...) dan --deweb-icon-[key]: url(...)
47
+ */
48
+ export declare function syncIconCssVariables(): void;
49
+ export declare function setIconLibrary(overrides: Record<string, IconComponent | string>): void;
50
+ export declare function getIconLibrary(): IconLibrary;
51
+ export declare function getRemoteIconRegistry(): Record<string, string>;
52
+ /** Reset ke default lucide-react bawaan kit -- berguna untuk testing/storybook isolation. */
53
+ export declare function resetIconLibrary(): void;
54
+ /**
55
+ * Resolve prop `icon` Base Input jadi IconComponent atau null.
56
+ * - `undefined`/`false` (default) -- tanpa icon.
57
+ * - `true` -- pakai default icon library untuk `key` (mis. InputEmail -> iconLibrary.mail).
58
+ * - `IconComponent` -- custom icon per-instance, prioritas tertinggi (override default & global).
59
+ */
60
+ export declare function resolveIcon(icon: boolean | IconComponent | undefined, key: string): IconComponent | null;
61
+ export type IconColorToken = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'muted' | (string & {});
62
+ export type IconGradientPreset = 'primary' | 'sunset' | 'ocean' | 'emerald';
63
+ export type IconGradient = IconGradientPreset | [string, string] | {
64
+ from: string;
65
+ to: string;
66
+ angle?: number;
67
+ };
68
+ export interface IconProps extends Omit<React.SVGProps<SVGSVGElement>, 'color'> {
69
+ /** Key di icon registry (bawaan seperti 'close'/'chevronRight', atau key custom yang
70
+ * sudah ditambahkan lewat setIconLibrary / registerIcon, atau URL SVG langsung). */
71
+ name: string;
72
+ size?: number | string | IconScaleSize;
73
+ /** Warna solid: token semantik ('primary', 'success', 'danger', dll) atau hex/CSS var. */
74
+ color?: IconColorToken;
75
+ /** Gradasi warna: preset ('primary', 'sunset', 'ocean', 'emerald') atau [from, to]. */
76
+ gradient?: IconGradient;
77
+ /** Mengisi bagian dalam icon SVG outline (cocok untuk star, heart, bookmark). */
78
+ filled?: boolean;
79
+ /** Render URL/CDN SVG sebagai <img> agar warna asli multi-warna tetap utuh (tanpa CSS mask). */
80
+ multicolor?: boolean;
81
+ className?: string;
82
+ style?: React.CSSProperties;
83
+ }
84
+ export declare function Icon({ name, size, color, gradient, filled, multicolor, className, style, ...props }: IconProps): React.JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ export * from './config';
2
+ export * from './presets';
3
+ export * from './engine';