@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,20 @@
1
+ import * as React from 'react';
2
+ import type { AccountUser } from './account';
3
+ export interface AccountLayoutMenuItem {
4
+ id: string;
5
+ label: React.ReactNode;
6
+ icon?: React.ReactNode;
7
+ href?: string;
8
+ onClick?: () => void;
9
+ }
10
+ export interface AccountLayoutProps extends React.HTMLAttributes<HTMLDivElement> {
11
+ template?: 'sidebar' | 'tabs';
12
+ isLoggedIn: boolean;
13
+ user?: AccountUser;
14
+ bannerActions?: React.ReactNode;
15
+ menuItems: AccountLayoutMenuItem[];
16
+ activeTabId?: string;
17
+ onTabChange?: (id: string) => void;
18
+ children: React.ReactNode;
19
+ }
20
+ export declare function AccountLayout({ template, isLoggedIn, user, bannerActions, menuItems, activeTabId, onTabChange, children, className, ...props }: AccountLayoutProps): React.JSX.Element;
@@ -0,0 +1,46 @@
1
+ import React from 'react';
2
+ import type { IconLibraryKey } from '../../lib/icon/config';
3
+ export interface AccountMenuItem {
4
+ label: React.ReactNode;
5
+ href?: string;
6
+ icon?: React.ReactNode;
7
+ onClick?: () => void;
8
+ danger?: boolean;
9
+ }
10
+ export interface AccountUser {
11
+ name: string;
12
+ email?: string;
13
+ phone?: string;
14
+ avatar?: string;
15
+ initials?: string;
16
+ isVerified?: boolean | React.ReactNode;
17
+ tier?: {
18
+ name: string;
19
+ icon?: React.ReactNode;
20
+ color?: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info';
21
+ };
22
+ }
23
+ export interface AccountProps {
24
+ isLoggedIn?: boolean;
25
+ user?: AccountUser;
26
+ badge?: number | string;
27
+ greetingFormat?: string | ((name: string) => React.ReactNode);
28
+ icon?: IconLibraryKey | (string & {});
29
+ iconSize?: number;
30
+ loginAction?: 'redirect' | 'modal';
31
+ loginHref?: string;
32
+ onLoginClick?: () => void;
33
+ accountHref?: string;
34
+ menuItems?: AccountMenuItem[];
35
+ className?: string;
36
+ variant?: 'default' | 'secondary' | 'ghost' | 'outline' | 'muted';
37
+ showWelcomeText?: boolean;
38
+ displayMode?: 'dropdown' | 'sidepanel';
39
+ sidePanelPosition?: 'left' | 'right';
40
+ sidePanelClassName?: string;
41
+ bannerActions?: React.ReactNode;
42
+ size?: 'xs' | 'sm' | 'default' | 'lg';
43
+ rounded?: 'inherit' | 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
44
+ customPanelContent?: React.ReactNode;
45
+ }
46
+ export declare function Account({ isLoggedIn, user, badge, greetingFormat, icon, iconSize, loginAction, loginHref, onLoginClick, accountHref, menuItems, className, variant, showWelcomeText, displayMode, sidePanelPosition, sidePanelClassName, bannerActions, size, rounded, customPanelContent }: AccountProps): React.JSX.Element;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import type { SelectGroupOption } from '../ui/form';
3
+ export type AmbientMode = 'slider' | 'step' | 'segment';
4
+ export interface AmbientProps {
5
+ /** Mode tampilan kontrol */
6
+ mode?: AmbientMode;
7
+ /** Nilai Kelvin (1000 - 10000) */
8
+ value?: number;
9
+ /** Default Kelvin saat pertama dimuat */
10
+ defaultValue?: number;
11
+ /** Callback saat nilai berubah */
12
+ onChange?: (kelvin: number) => void;
13
+ /** Opsi spesifik untuk mode 'segment' */
14
+ segmentOptions?: SelectGroupOption[];
15
+ /** Intensitas filter (0 - 1), default 0.4 */
16
+ intensity?: number;
17
+ className?: string;
18
+ }
19
+ export declare function Ambient({ mode, value: controlledValue, defaultValue, onChange, segmentOptions, intensity, className }: AmbientProps): React.JSX.Element;
@@ -0,0 +1,35 @@
1
+ import * as React from 'react';
2
+ export interface AuthSocialProvider {
3
+ id: string;
4
+ name: string;
5
+ icon: React.ReactNode;
6
+ onClick?: () => void;
7
+ }
8
+ export interface AuthProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSubmit' | 'title'> {
9
+ type?: 'login' | 'register' | 'otp' | 'verification' | 'forgot-password';
10
+ template?: 'split' | 'card' | 'minimal';
11
+ mobileFullWidth?: boolean;
12
+ title?: React.ReactNode;
13
+ subtitle?: React.ReactNode;
14
+ logo?: React.ReactNode;
15
+ termsNode?: React.ReactNode;
16
+ coverImage?: string;
17
+ coverContent?: React.ReactNode;
18
+ isLoading?: boolean;
19
+ error?: React.ReactNode;
20
+ errorTitle?: string;
21
+ success?: React.ReactNode;
22
+ successTitle?: string;
23
+ fieldErrors?: Record<string, string>;
24
+ onSubmit?: (e: React.FormEvent) => void;
25
+ onResendOtp?: () => void;
26
+ loginUrl?: string;
27
+ registerUrl?: string;
28
+ forgotPasswordUrl?: string;
29
+ otpLength?: number;
30
+ otpPattern?: RegExp;
31
+ socialProviders?: AuthSocialProvider[];
32
+ submitText?: string;
33
+ children?: React.ReactNode;
34
+ }
35
+ export declare function Auth({ type, template, mobileFullWidth, title, subtitle, logo, termsNode, coverImage, coverContent, isLoading, error, errorTitle, success, successTitle, fieldErrors, onSubmit, onResendOtp, loginUrl, registerUrl, forgotPasswordUrl, otpLength, otpPattern, socialProviders, submitText, children, className, ...props }: AuthProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import type { BlogListProps } from '../blog';
3
+ export declare function BlogListCustom({ posts, columns, limit, className, renderItem, ...props }: BlogListProps): React.JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ import { type BlogListProps } from '../blog';
2
+ export declare function BlogListGallery({ posts, limit, onPostClick, className, ...props }: BlogListProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { type BlogListProps } from '../blog';
2
+ export declare function BlogListGrid({ posts, columns, limit, onPostClick, className, ...props }: BlogListProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { type BlogListProps } from '../blog';
2
+ export declare function BlogListList({ posts, limit, onPostClick, className, ...props }: BlogListProps): import("react").JSX.Element;
@@ -0,0 +1,50 @@
1
+ import * as React from 'react';
2
+ export interface BlogAuthor {
3
+ name: string;
4
+ avatar?: string;
5
+ role?: string;
6
+ }
7
+ export interface BlogStats {
8
+ likes?: number;
9
+ comments?: number;
10
+ views?: number;
11
+ shares?: number;
12
+ }
13
+ export interface BlogItemData {
14
+ id: string;
15
+ title: string;
16
+ excerpt?: string;
17
+ content?: React.ReactNode;
18
+ slug?: string;
19
+ coverImage?: string;
20
+ images?: string[];
21
+ date: string | Date;
22
+ readTime?: string;
23
+ category?: string;
24
+ tags?: string[];
25
+ author?: BlogAuthor;
26
+ stats?: BlogStats;
27
+ attributes?: React.ReactNode;
28
+ }
29
+ export declare function renderBlogStats(stats?: BlogStats): React.JSX.Element | null;
30
+ export interface BlogListProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
31
+ posts: BlogItemData[];
32
+ template?: 'list' | 'grid' | 'gallery' | 'custom' | ((post: BlogItemData, index: number) => React.ReactNode) | (string & {});
33
+ columns?: 1 | 2 | 3 | 4;
34
+ limit?: number;
35
+ hasMore?: boolean;
36
+ onLoadMore?: () => void;
37
+ onPostClick?: (post: BlogItemData) => void;
38
+ /** Custom render function per-item -- diteruskan ke BlogListCustom saat `template` diisi
39
+ * fungsi. Sebelumnya BlogListCustom sudah menerima prop ini tapi tidak pernah
40
+ * dideklarasikan di sini (gap 2026-08-13). */
41
+ renderItem?: (post: BlogItemData, index: number) => React.ReactNode;
42
+ }
43
+ export declare function BlogList({ template, hasMore, onLoadMore, className, ...props }: BlogListProps): React.JSX.Element;
44
+ export type BlogElement = 'header' | 'image' | 'content' | 'tags' | 'author' | 'stats';
45
+ export interface BlogPostProps extends React.HTMLAttributes<HTMLDivElement> {
46
+ post: BlogItemData;
47
+ template?: 'hero' | 'sidebar' | 'minimal' | 'custom';
48
+ templateOrder?: BlogElement[];
49
+ }
50
+ export declare function BlogPost({ post, template, templateOrder, className, ...props }: BlogPostProps): React.JSX.Element | null;
@@ -0,0 +1,58 @@
1
+ import * as React from "react";
2
+ import useEmblaCarousel, { type UseEmblaCarouselType } from "embla-carousel-react";
3
+ type CarouselApi = UseEmblaCarouselType[1];
4
+ type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
5
+ type CarouselOptions = UseCarouselParameters[0];
6
+ type CarouselPlugin = UseCarouselParameters[1];
7
+ type ArrowPosition = 'split-center' | 'bottom-right' | 'bottom-left' | 'bottom-center' | 'top-right' | 'top-left' | 'top-center';
8
+ export type CarouselProps = {
9
+ opts?: CarouselOptions;
10
+ plugins?: CarouselPlugin;
11
+ setApi?: (api: CarouselApi) => void;
12
+ /** Mengaktifkan putaran tanpa akhir */
13
+ loop?: boolean;
14
+ /** Jenis indikator (dots, progress bar, atau angka) */
15
+ indicator?: boolean | 'dot' | 'bar' | 'number';
16
+ /** Array URL gambar untuk thumbnail. Jika ada, akan memunculkan deretan thumbnail klik-able di bawah slider. */
17
+ thumbnails?: string[];
18
+ /** Ukuran thumbnail */
19
+ thumbnailSize?: "sm" | "md" | "lg";
20
+ /** Aspek rasio thumbnail */
21
+ thumbnailAspect?: "video" | "square" | "portrait";
22
+ /** Memunculkan tombol panah */
23
+ arrow?: boolean;
24
+ arrowIconLeft?: React.ReactNode;
25
+ arrowIconRight?: React.ReactNode;
26
+ arrowColor?: string;
27
+ arrowBackground?: string;
28
+ arrowX?: string | number;
29
+ arrowY?: string | number;
30
+ arrowPosition?: ArrowPosition;
31
+ /** Ukuran indikator */
32
+ indicatorSize?: "sm" | "md" | "lg";
33
+ /** Warna indikator (opsional) */
34
+ indicatorColor?: string;
35
+ indicatorPosition?: "bottom-inside" | "bottom-outside" | "top-inside" | "top-outside";
36
+ /** Memunculkan tooltip gambar saat indikator di-hover */
37
+ indicatorPreview?: boolean;
38
+ /** Putar otomatis (Autoplay) */
39
+ autoplay?: boolean;
40
+ autoplayInterval?: number;
41
+ };
42
+ type CarouselContextProps = {
43
+ carouselRef: ReturnType<typeof useEmblaCarousel>[0];
44
+ api: ReturnType<typeof useEmblaCarousel>[1];
45
+ scrollPrev: () => void;
46
+ scrollNext: () => void;
47
+ canScrollPrev: boolean;
48
+ canScrollNext: boolean;
49
+ selectedIndex: number;
50
+ scrollSnaps: number[];
51
+ } & CarouselProps;
52
+ export declare function useCarousel(): CarouselContextProps;
53
+ export declare const Carousel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & CarouselProps & React.RefAttributes<HTMLDivElement>>;
54
+ export declare const CarouselContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
55
+ export declare const CarouselItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
56
+ export declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<import("../..").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
57
+ export declare const CarouselNext: React.ForwardRefExoticComponent<Omit<import("../..").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
58
+ export {};
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import type { IconLibraryKey } from '../../lib/icon/config';
3
+ export interface CartItem {
4
+ id: string | number;
5
+ title: string;
6
+ price: string | number;
7
+ quantity: number;
8
+ image?: string;
9
+ href?: string;
10
+ }
11
+ export interface CartProps {
12
+ icon?: IconLibraryKey | (string & {});
13
+ iconSize?: number;
14
+ badge?: number | string;
15
+ hideIfEmpty?: boolean;
16
+ href?: string;
17
+ items?: CartItem[];
18
+ onViewCartClick?: () => void;
19
+ className?: string;
20
+ variant?: 'default' | 'primary' | 'secondary' | 'ghost' | 'outline' | 'muted';
21
+ viewCartButtonVariant?: 'default' | 'primary' | 'secondary' | 'ghost' | 'outline' | 'muted';
22
+ emptyText?: React.ReactNode;
23
+ viewCartText?: React.ReactNode;
24
+ cartTitleText?: React.ReactNode | ((count: number) => React.ReactNode);
25
+ dropdownAnimation?: 'default' | 'fade' | 'slide' | 'bounce' | 'zoom' | 'none';
26
+ displayMode?: 'dropdown' | 'sidepanel';
27
+ sidePanelPosition?: 'left' | 'right';
28
+ size?: 'xs' | 'sm' | 'default' | 'lg';
29
+ rounded?: 'inherit' | 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
30
+ }
31
+ export declare function Cart({ icon, iconSize, badge, hideIfEmpty, href, items, onViewCartClick, className, variant, viewCartButtonVariant, emptyText, viewCartText, cartTitleText, dropdownAnimation, displayMode, sidePanelPosition, size, rounded }: CartProps): React.JSX.Element | null;
@@ -0,0 +1,81 @@
1
+ import React from 'react';
2
+ export type CatalogueViewLayout = 'inline' | 'stacked';
3
+ export interface CatalogueCategory {
4
+ id: string;
5
+ label: string;
6
+ count?: number;
7
+ barColor?: string;
8
+ }
9
+ export interface CataloguePaginationConfig {
10
+ page: number;
11
+ pageSize: number;
12
+ total: number;
13
+ onPageChange: (newPage: number) => void;
14
+ mode?: 'numbered' | 'simple';
15
+ autoSlice?: boolean;
16
+ }
17
+ export interface CatalogueProps<T> {
18
+ /**
19
+ * Layout mode:
20
+ * - 'inline': Storefront / Editorial style (Gambar 1). Centered or editorial header,
21
+ * with single-row action bar (category pills on left, search on right).
22
+ * - 'stacked': Directory / Utility style (Gambar 2). Split header with title on left
23
+ * and search on right, followed by a dedicated full-width category pills row below.
24
+ */
25
+ layout?: CatalogueViewLayout;
26
+ /** Raw dataset or pre-filtered dataset */
27
+ items: T[];
28
+ /** Polymorphic card renderer */
29
+ renderItem: (item: T, index: number) => React.ReactNode;
30
+ /** Optional unique key extractor for items */
31
+ keyExtractor?: (item: T, index: number) => string | number;
32
+ /** Section Title & Subtitle */
33
+ title?: React.ReactNode;
34
+ subtitle?: React.ReactNode;
35
+ titleAlign?: 'left' | 'center';
36
+ /** Extra action slot next to title or search (e.g. view toggle, sorting, filter drawer button) */
37
+ actionSlot?: React.ReactNode;
38
+ /** Category filter list */
39
+ categories?: CatalogueCategory[];
40
+ activeCategory?: string;
41
+ defaultCategory?: string;
42
+ onCategoryChange?: (categoryId: string) => void;
43
+ /**
44
+ * Key on item T used to match category (for automatic client-side filtering).
45
+ * E.g. 'category' or 'type'.
46
+ */
47
+ categoryKey?: keyof T;
48
+ /**
49
+ * Search input options
50
+ */
51
+ searchable?: boolean;
52
+ searchPlaceholder?: string;
53
+ searchQuery?: string;
54
+ defaultSearchQuery?: string;
55
+ onSearchChange?: (query: string) => void;
56
+ /** Keys on item T to search against (for automatic client-side filtering) */
57
+ searchKeys?: (keyof T)[];
58
+ /**
59
+ * Category grouping divider:
60
+ * When true and activeCategory is 'all' (or not set), groups items into sub-sections
61
+ * with a divider heading e.g. "| Core (46)" as seen in Gambar 2.
62
+ */
63
+ groupByCategory?: boolean;
64
+ /**
65
+ * Grid column layout (responsive defaults provided)
66
+ */
67
+ gridCols?: 2 | 3 | 4 | 5 | 6;
68
+ /**
69
+ * Custom gap class (defaults to gap-4 sm:gap-5)
70
+ */
71
+ gridGap?: string;
72
+ /** Custom Empty State */
73
+ emptyState?: React.ReactNode;
74
+ /** Pagination configuration */
75
+ pagination?: CataloguePaginationConfig;
76
+ /** Extra wrapper className */
77
+ className?: string;
78
+ }
79
+ export type CatalogueViewProps<T> = CatalogueProps<T>;
80
+ export declare function Catalogue<T>({ layout, items, renderItem, keyExtractor, title, subtitle, titleAlign, actionSlot, categories, activeCategory: controlledCategory, defaultCategory, onCategoryChange, categoryKey, searchable, searchPlaceholder, searchQuery: controlledSearch, defaultSearchQuery, onSearchChange, searchKeys, groupByCategory, gridCols, gridGap, emptyState, pagination, className, }: CatalogueViewProps<T>): React.JSX.Element;
81
+ export declare const CatalogueView: typeof Catalogue;
@@ -0,0 +1,96 @@
1
+ import React from 'react';
2
+ export type ProductTemplate = 'grid' | 'list';
3
+ export type ProductVariantStyle = 'detailed' | 'simple';
4
+ export type BadgeVariantType = 'glass' | 'primary' | 'secondary' | 'neutral' | 'accent' | 'danger' | 'warning' | 'success';
5
+ export declare const BADGE_VARIANT_STYLES: Record<BadgeVariantType, string>;
6
+ export interface ProductVariant {
7
+ id: string;
8
+ color: string;
9
+ image?: string;
10
+ name?: string;
11
+ stock?: number;
12
+ imageUrl?: string;
13
+ }
14
+ export interface ProductData {
15
+ id: string | number;
16
+ image: string;
17
+ title: string;
18
+ price: number;
19
+ originalPrice?: number;
20
+ badge?: string;
21
+ badgeVariant?: BadgeVariantType;
22
+ badgeColor?: string;
23
+ brand?: string;
24
+ category?: string;
25
+ rating?: number;
26
+ reviews?: number;
27
+ description?: string;
28
+ variants?: ProductVariant[];
29
+ }
30
+ export interface ProductCardProps {
31
+ product: ProductData;
32
+ template?: ProductTemplate;
33
+ variant?: ProductVariantStyle;
34
+ actionVariant?: 'solid' | 'soft' | 'outline' | 'ghost';
35
+ actionLayout?: 'auto' | 'button' | 'icon';
36
+ badgeVariant?: BadgeVariantType;
37
+ badgeColor?: string;
38
+ className?: string;
39
+ onClick?: () => void;
40
+ onAddToCart?: (product: ProductData, e: React.MouseEvent) => void;
41
+ onFavoriteToggle?: (product: ProductData, isFavorite: boolean, e: React.MouseEvent) => void;
42
+ isFavorite?: boolean;
43
+ locale?: string;
44
+ labels?: {
45
+ sold?: string;
46
+ addToFavorites?: string;
47
+ addToCart?: string;
48
+ };
49
+ showBadge?: boolean;
50
+ showFavorite?: boolean;
51
+ showCategory?: boolean;
52
+ showTitle?: boolean;
53
+ showPrice?: boolean;
54
+ showOriginalPrice?: boolean;
55
+ showAction?: boolean;
56
+ showRating?: boolean;
57
+ showSwatches?: boolean;
58
+ }
59
+ export interface FavoriteButtonProps {
60
+ isFavorite?: boolean;
61
+ defaultFavorite?: boolean;
62
+ onChange?: (isFav: boolean, e: React.MouseEvent) => void;
63
+ size?: 'sm' | 'md' | 'lg';
64
+ variant?: 'floating' | 'subtle' | 'ghost';
65
+ title?: string;
66
+ className?: string;
67
+ }
68
+ export declare function FavoriteButton({ isFavorite, defaultFavorite, onChange, size, variant, title, className }: FavoriteButtonProps): React.JSX.Element;
69
+ export declare function ProductCard({ product, template, variant, actionVariant, actionLayout, badgeVariant, badgeColor, className, onClick, onAddToCart, onFavoriteToggle, isFavorite, locale, labels, showBadge, showFavorite, showCategory, showTitle, showPrice, showOriginalPrice, showAction, showRating, showSwatches, }: ProductCardProps): React.JSX.Element;
70
+ export interface ProductSwatchesProps {
71
+ variants: ProductVariant[];
72
+ activeId?: string;
73
+ onChange?: (variant: ProductVariant) => void;
74
+ maxVisible?: number;
75
+ size?: 'xs' | 'sm' | 'md' | 'lg';
76
+ gap?: string;
77
+ className?: string;
78
+ }
79
+ export declare function ProductSwatches({ variants, activeId, onChange, maxVisible, size, gap, className }: ProductSwatchesProps): React.JSX.Element;
80
+ export interface ProductGridProps {
81
+ children: React.ReactNode;
82
+ columns?: 2 | 3 | 4;
83
+ className?: string;
84
+ }
85
+ export declare function ProductGrid({ children, columns, className }: ProductGridProps): React.JSX.Element;
86
+ export declare function ProductList({ children, className }: {
87
+ children: React.ReactNode;
88
+ className?: string;
89
+ }): React.JSX.Element;
90
+ export interface ProductViewToggleProps {
91
+ view: ProductTemplate;
92
+ onChange: (view: ProductTemplate) => void;
93
+ className?: string;
94
+ }
95
+ export declare function ProductViewToggle({ view, onChange, className }: ProductViewToggleProps): React.JSX.Element;
96
+ export * from './catalogue-view';
@@ -0,0 +1,52 @@
1
+ import * as React from 'react';
2
+ export interface CommentAuthor {
3
+ name: string;
4
+ avatar?: string;
5
+ role?: string;
6
+ }
7
+ export interface CommentItemData {
8
+ id: string;
9
+ author: CommentAuthor;
10
+ date: string | Date;
11
+ content: string;
12
+ isLiked?: boolean;
13
+ isDisliked?: boolean;
14
+ likesCount?: number;
15
+ replies?: CommentItemData[];
16
+ }
17
+ export interface CommentListProps extends React.HTMLAttributes<HTMLDivElement> {
18
+ comments: CommentItemData[];
19
+ onReplySubmit?: (commentId: string, content: string) => void;
20
+ onLikeClick?: (commentId: string, type: 'like' | 'dislike') => void;
21
+ }
22
+ export declare function CommentLikes({ likes, isLiked, isDisliked, onLike, onDislike, onReply, className, ...props }: {
23
+ likes?: number;
24
+ isLiked?: boolean;
25
+ isDisliked?: boolean;
26
+ onLike?: () => void;
27
+ onDislike?: () => void;
28
+ onReply?: () => void;
29
+ } & React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
30
+ export interface CommentItemProps extends React.HTMLAttributes<HTMLDivElement> {
31
+ comment: CommentItemData;
32
+ onReplySubmit?: (commentId: string, content: string) => void;
33
+ onLikeClick?: (id: string, type: 'like' | 'dislike') => void;
34
+ level?: number;
35
+ }
36
+ export declare function CommentItem({ comment, onReplySubmit, onLikeClick, level, className, ...props }: CommentItemProps): React.JSX.Element;
37
+ export declare function CommentsCount({ count, className, ...props }: {
38
+ count: number;
39
+ } & React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
40
+ export declare function CommentSort({ value, onChange, className, ...props }: {
41
+ value?: 'newest' | 'popular';
42
+ onChange?: (val: 'newest' | 'popular') => void;
43
+ } & React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
44
+ export declare function CommentList({ comments, onReplySubmit, onLikeClick, className, ...props }: CommentListProps): React.JSX.Element;
45
+ export interface CommentFormProps extends React.HTMLAttributes<HTMLFormElement> {
46
+ onSubmitComment?: (content: string) => void;
47
+ onCancel?: () => void;
48
+ isReply?: boolean;
49
+ replyToName?: string;
50
+ avatarUrl?: string;
51
+ }
52
+ export declare function CommentForm({ onSubmitComment, onCancel, isReply, replyToName, avatarUrl, className, ...props }: CommentFormProps): React.JSX.Element;
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import { type ThemeToggleProps } from '../ui/theme-toggle';
3
+ export interface EclipseProps extends Omit<ThemeToggleProps, 'value' | 'onChange'> {
4
+ /** Nilai mode tema jika ingin dikontrol dari luar */
5
+ value?: 'light' | 'dark';
6
+ /** Callback jika ingin dikontrol dari luar */
7
+ onChange?: (value: 'light' | 'dark') => void;
8
+ }
9
+ /**
10
+ * Komponen Eclipse untuk website.
11
+ * Dibangun di atas komponen ThemeToggle dari UI kit dasar.
12
+ * Secara bawaan sudah mengurus localStorage dan perubahan class DOM secara otomatis,
13
+ * sehingga bisa langsung dipakai dengan `<Eclipse />`.
14
+ */
15
+ export declare function Eclipse({ className, value, onChange, ...props }: EclipseProps): React.JSX.Element;
@@ -0,0 +1,58 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * FeatureGrid -- pola "judul section + grid N kartu fitur" (icon + title +
4
+ * tagline opsional + description + CTA opsional). Diangkat dari HomePage
5
+ * kit.deweb.id (grid 3 kartu kit: UI/Dev/API) setelah pola yang sama muncul
6
+ * lagi untuk grid Support (icon + title + description + tombol) -- generik
7
+ * untuk landing page marketing mana pun, bukan spesifik kit.deweb.id.
8
+ *
9
+ * <FeatureGrid
10
+ * title="Tiga Kit, Satu Ekosistem"
11
+ * description="Masing-masing berdiri sendiri, dirancang untuk saling nyambung."
12
+ * items={[
13
+ * { icon: <LayoutGrid size={20} />, title: 'UI Kit', tagline: '...', description: '...', href: '/docs/ui' },
14
+ * ...
15
+ * ]}
16
+ * />
17
+ *
18
+ * Item KLIK-ABLE (kartu seluruhnya jadi target klik, mis. navigasi ke
19
+ * halaman detail) lewat `href`/`onClick` di level item -- TIDAK tahu
20
+ * react-router, konsumen suplai handler-nya sendiri (sama prinsip
21
+ * dekopling `Hero`). Item dengan CTA eksplisit (tombol terpisah, bukan
22
+ * seluruh kartu diklik) pakai `actions` per-item alih-alih `href`.
23
+ */
24
+ export interface FeatureGridItem {
25
+ key?: React.Key;
26
+ icon?: React.ReactNode;
27
+ title: React.ReactNode;
28
+ tagline?: React.ReactNode;
29
+ description?: React.ReactNode;
30
+ /** Kartu jadi klik-able penuh, navigasi via `href` -- konsumen yang
31
+ * SPA-routing (react-router, dst) mengoper handler navigasi ke sini,
32
+ * bukan `<a>` native, supaya tidak full page reload. Kosongkan kalau
33
+ * kartu ini pakai `actions` (tombol eksplisit) alih-alih klik seluruh
34
+ * kartu. */
35
+ href?: string;
36
+ onClick?: () => void;
37
+ /** CTA eksplisit (tombol, dst) di bawah description -- alternatif dari
38
+ * `href`/`onClick` untuk kartu yang tombol aksinya terpisah dari klik
39
+ * kartu (mis. grid Support: kartu tidak diklik langsung, ada tombol
40
+ * "Hubungi"/"Ke Docs" sendiri). */
41
+ actions?: React.ReactNode;
42
+ /** Teks link kecil yang muncul (fade-in) di pojok kartu saat di-hover --
43
+ * cuma masuk akal untuk kartu klik-able (`href`/`onClick`), diabaikan
44
+ * kalau keduanya kosong. Default tidak ada (opsional, bukan otomatis
45
+ * ditambahkan) -- konsumen putuskan sendiri per kartu. */
46
+ hoverHint?: React.ReactNode;
47
+ }
48
+ export interface FeatureGridProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
49
+ /** Judul section, opsional -- kosongkan kalau grid ini bagian dari
50
+ * section yang judulnya sudah dirender terpisah oleh konsumen. */
51
+ title?: React.ReactNode;
52
+ description?: React.ReactNode;
53
+ items: FeatureGridItem[];
54
+ /** Jumlah kolom di breakpoint `sm` ke atas -- default 3 (kasus paling
55
+ * umum: 3 kit, 3 fitur). Grid selalu 1 kolom di mobile. */
56
+ columns?: 2 | 3 | 4;
57
+ }
58
+ export declare const FeatureGrid: React.ForwardRefExoticComponent<FeatureGridProps & React.RefAttributes<HTMLDivElement>>;