@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,109 @@
1
+ import React from 'react';
2
+ export interface FilterProps {
3
+ title?: string;
4
+ onReset?: () => void;
5
+ resetLabel?: string;
6
+ showReset?: boolean;
7
+ onApply?: () => void;
8
+ applyLabel?: string;
9
+ children: React.ReactNode;
10
+ className?: string;
11
+ }
12
+ export declare function Filter({ title, onReset, resetLabel, showReset, onApply, applyLabel, children, className }: FilterProps): React.JSX.Element;
13
+ export interface FilterGroupProps {
14
+ title: string;
15
+ defaultOpen?: boolean;
16
+ searchable?: boolean;
17
+ searchPlaceholder?: string;
18
+ searchValue?: string;
19
+ onSearchChange?: (val: string) => void;
20
+ onClear?: () => void;
21
+ clearLabel?: string;
22
+ children: React.ReactNode;
23
+ className?: string;
24
+ }
25
+ export declare function FilterGroup({ title, defaultOpen, searchable, searchPlaceholder, searchValue, onSearchChange, onClear, clearLabel, children, className }: FilterGroupProps): React.JSX.Element;
26
+ export interface FilterRangeProps {
27
+ min: number;
28
+ max: number;
29
+ value: [number, number];
30
+ onChange: (value: [number, number]) => void;
31
+ step?: number;
32
+ currencyPrefix?: string;
33
+ }
34
+ export declare function FilterRange({ min, max, value, onChange, step, currencyPrefix }: FilterRangeProps): React.JSX.Element;
35
+ export interface FilterRadioOption {
36
+ label: string;
37
+ value: string;
38
+ }
39
+ export interface FilterRadioProps {
40
+ options: FilterRadioOption[];
41
+ value: string;
42
+ onChange: (value: string) => void;
43
+ className?: string;
44
+ }
45
+ export declare function FilterRadio({ options, value, onChange, className }: FilterRadioProps): React.JSX.Element;
46
+ export interface FilterCheckboxOption {
47
+ label: React.ReactNode;
48
+ value: string | number;
49
+ }
50
+ export interface FilterCheckboxProps {
51
+ options: FilterCheckboxOption[];
52
+ selectedValues: (string | number)[];
53
+ onChange: (values: (string | number)[]) => void;
54
+ maxVisible?: number;
55
+ className?: string;
56
+ showMoreLabel?: (count: number) => string;
57
+ showLessLabel?: string;
58
+ }
59
+ export declare function FilterCheckbox({ options, selectedValues, onChange, maxVisible, className, showMoreLabel, showLessLabel }: FilterCheckboxProps): React.JSX.Element;
60
+ export interface FilterTreeNode {
61
+ id: string | number;
62
+ label: string;
63
+ children?: FilterTreeNode[];
64
+ }
65
+ export interface FilterTreeProps {
66
+ data: FilterTreeNode[];
67
+ selectedIds: (string | number)[];
68
+ onChange: (ids: (string | number)[]) => void;
69
+ className?: string;
70
+ }
71
+ export declare function FilterTree({ data, selectedIds, onChange, className }: FilterTreeProps): React.JSX.Element;
72
+ export interface FilterColorOption {
73
+ label: string;
74
+ value: string;
75
+ colorHex: string;
76
+ }
77
+ export interface FilterColorProps {
78
+ options: FilterColorOption[];
79
+ selectedValues: string[];
80
+ onChange: (values: string[]) => void;
81
+ size?: 'xs' | 'sm' | 'md' | 'lg';
82
+ className?: string;
83
+ }
84
+ export declare function FilterColor({ options, selectedValues, onChange, size, className }: FilterColorProps): React.JSX.Element;
85
+ export interface FilterPillsProps {
86
+ options: {
87
+ label: string;
88
+ value: string;
89
+ }[];
90
+ selectedValues: string[];
91
+ onChange: (values: string[]) => void;
92
+ size?: 'xs' | 'sm' | 'md' | 'lg';
93
+ className?: string;
94
+ }
95
+ export declare function FilterPills({ options, selectedValues, onChange, size, className }: FilterPillsProps): React.JSX.Element;
96
+ export interface FilterActiveTag {
97
+ label: string;
98
+ value: string | number;
99
+ group: string;
100
+ groupLabel?: string;
101
+ }
102
+ export interface FilterActiveTagsProps {
103
+ tags: FilterActiveTag[];
104
+ onRemove: (tag: FilterActiveTag) => void;
105
+ onClearAll?: () => void;
106
+ clearAllLabel?: string;
107
+ className?: string;
108
+ }
109
+ export declare function FilterActiveTags({ tags, onRemove, onClearAll, clearAllLabel, className }: FilterActiveTagsProps): React.JSX.Element | null;
@@ -0,0 +1,89 @@
1
+ import * as React from 'react';
2
+ export type HeroVariant = 'split-image' | 'split-carousel' | 'centered' | 'countdown' | 'search' | 'full-bleed';
3
+ export interface HeroAction {
4
+ label: string;
5
+ href?: string;
6
+ onClick?: (e: React.MouseEvent<HTMLElement>) => void;
7
+ variant?: 'solid' | 'outline' | 'ghost' | 'soft';
8
+ color?: 'primary' | 'secondary' | 'accent' | 'neutral';
9
+ icon?: any;
10
+ iconPosition?: 'left' | 'right';
11
+ className?: string;
12
+ }
13
+ export interface HeroSlideItem {
14
+ id: string | number;
15
+ image: string;
16
+ title?: string;
17
+ tag?: string;
18
+ price?: string;
19
+ badge?: string;
20
+ }
21
+ export interface HeroProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
22
+ /** Mode varian arsitektur Hero (default: 'split-image' atau 'centered' tergantung props) */
23
+ variant?: HeroVariant;
24
+ /** Judul utama H1 -- mendukung string atau JSX (font styling khusus) */
25
+ headline?: React.ReactNode;
26
+ /** Alias headline untuk kompatibilitas ke belakang */
27
+ title?: React.ReactNode;
28
+ /** Paragraf sub-copy di bawah headline */
29
+ description?: React.ReactNode;
30
+ /** Label / Capsule badge kecil di atas headline */
31
+ eyebrow?: React.ReactNode | {
32
+ text: string;
33
+ icon?: any;
34
+ color?: 'primary' | 'secondary' | 'accent' | 'neutral';
35
+ variant?: 'solid' | 'soft' | 'outline';
36
+ };
37
+ /** Alias eyebrow untuk kompatibilitas ke belakang */
38
+ badge?: React.ReactNode;
39
+ /** Tombol aksi utama (Primary CTA) */
40
+ primaryAction?: HeroAction;
41
+ /** Tombol aksi kedua (Secondary CTA) */
42
+ secondaryAction?: HeroAction;
43
+ /** Kompatibilitas slot tombol bebas */
44
+ actions?: React.ReactNode;
45
+ /** Skema visual surface: 'light' | 'dark' | 'brand' | 'transparent' */
46
+ tone?: 'light' | 'dark' | 'brand' | 'transparent';
47
+ /** Lebar maksimum kontainer: 'normal' (1200px), 'wide' (1400px), 'full' (100%) */
48
+ maxWidth?: 'normal' | 'wide' | 'full';
49
+ /** Konfigurasi gambar/video untuk varian split-image & full-bleed */
50
+ media?: {
51
+ src: string;
52
+ alt?: string;
53
+ aspectRatio?: '16/9' | '16/10' | '4/3' | '1/1' | 'auto';
54
+ overlayOpacity?: number;
55
+ };
56
+ /** Konfigurasi slide untuk varian split-carousel */
57
+ carousel?: {
58
+ slides: HeroSlideItem[];
59
+ autoplay?: boolean;
60
+ interval?: number;
61
+ indicator?: 'bar' | 'dot' | 'number';
62
+ };
63
+ /** Konfigurasi hitung mundur untuk varian countdown */
64
+ countdown?: {
65
+ targetDate: string | Date;
66
+ urgencyText?: string;
67
+ onExpire?: () => void;
68
+ };
69
+ /** Tombol pil navigasi kategori cepat */
70
+ categoryPills?: Array<{
71
+ id: string | number;
72
+ label: string;
73
+ icon?: any;
74
+ href?: string;
75
+ badgeCount?: number;
76
+ }>;
77
+ /** Elemen pembuktian sosial (Rating bintang & tumpukan avatar) */
78
+ socialProof?: {
79
+ rating?: number;
80
+ reviewCount?: number;
81
+ avatars?: string[];
82
+ caption?: string;
83
+ };
84
+ /** Slot kustom bebas (misal search input, form lead gen B2B) */
85
+ actionSlot?: React.ReactNode;
86
+ /** Slot kustom untuk visual sisi kanan pada varian split (misal Bento grid, floating badges, mockup) */
87
+ mediaSlot?: React.ReactNode;
88
+ }
89
+ export declare const Hero: React.ForwardRefExoticComponent<HeroProps & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,36 @@
1
+ import * as React from 'react';
2
+ import { type LocalizeItem } from '../../lib/localize/data';
3
+ export interface LocalizeOption extends Omit<Partial<LocalizeItem>, 'label' | 'flag'> {
4
+ label: string | React.ReactNode;
5
+ value: string;
6
+ flag?: React.ReactNode;
7
+ }
8
+ export interface LocalizeProps {
9
+ /** Nilai bahasa yang sedang aktif */
10
+ languageValue?: string;
11
+ /** Callback saat bahasa berubah */
12
+ onLanguageChange?: (value: string) => void;
13
+ /** Opsi custom bahasa */
14
+ languageOptions?: LocalizeOption[];
15
+ /** Nilai mata uang yang sedang aktif */
16
+ currencyValue?: string;
17
+ /** Callback saat mata uang berubah */
18
+ onCurrencyChange?: (value: string) => void;
19
+ /** Opsi custom mata uang */
20
+ currencyOptions?: LocalizeOption[];
21
+ /** Tampilkan ikon bendera/simbol jika ada */
22
+ showFlag?: boolean;
23
+ /** Ukuran segmented control */
24
+ size?: 'sm' | 'normal' | 'lg';
25
+ className?: string;
26
+ }
27
+ export declare function LocalizeDropdown({ value, onChange, options, showFlag, size, align, alignOffset }: {
28
+ value: string;
29
+ onChange: (val: string) => void;
30
+ options: LocalizeOption[];
31
+ showFlag: boolean;
32
+ size: 'sm' | 'normal' | 'lg';
33
+ align?: 'start' | 'end';
34
+ alignOffset?: number;
35
+ }): React.JSX.Element;
36
+ export declare function Localize({ languageValue, onLanguageChange, languageOptions, currencyValue, onCurrencyChange, currencyOptions, showFlag, size, className }: LocalizeProps): React.JSX.Element;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ export interface LogoProps {
3
+ type?: 'media' | 'text' | 'svg';
4
+ src?: string;
5
+ srcDark?: string;
6
+ iconSrc?: string;
7
+ iconSrcDark?: string;
8
+ showIconOnly?: boolean;
9
+ text?: string;
10
+ altText?: string;
11
+ title?: string;
12
+ headingLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
13
+ forceTheme?: 'light' | 'dark';
14
+ svgContent?: React.ReactNode;
15
+ maxWidth?: string;
16
+ iconMaxWidth?: string;
17
+ height?: string;
18
+ shrinkOnScroll?: boolean;
19
+ tagline?: string;
20
+ href?: string;
21
+ align?: 'start' | 'center';
22
+ className?: string;
23
+ }
24
+ export declare function Logo({ type, src, srcDark, iconSrc, iconSrcDark, showIconOnly, text, altText, title, headingLevel, forceTheme, svgContent, maxWidth, iconMaxWidth, height, shrinkOnScroll, tagline, href, align, className }: LogoProps): React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export type MegamenuWidth = 'full' | 'wrapper' | 'auto' | 'custom';
3
+ export interface MegamenuProps {
4
+ width?: MegamenuWidth;
5
+ customWidth?: string;
6
+ columns?: number;
7
+ children: React.ReactNode;
8
+ className?: string;
9
+ }
10
+ export declare function Megamenu({ width, customWidth, columns, children, className }: MegamenuProps): React.JSX.Element;
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+ export * from './megamenu';
3
+ export interface NavbarLink {
4
+ label: React.ReactNode;
5
+ href?: string;
6
+ icon?: React.ReactNode;
7
+ iconPosition?: 'left' | 'right';
8
+ iconAlign?: 'start' | 'center';
9
+ tagline?: string;
10
+ badge?: React.ReactNode;
11
+ animation?: 'default' | 'fade' | 'slide' | 'bounce' | 'zoom' | 'none';
12
+ animationDuration?: number;
13
+ children?: NavbarLink[];
14
+ megamenu?: React.ReactNode;
15
+ }
16
+ export interface NavbarProps {
17
+ /** Komponen logo kustom (jika kosong akan tampil teks default) */
18
+ logo?: React.ReactNode;
19
+ /** Daftar tautan navigasi */
20
+ links?: NavbarLink[];
21
+ /** Elemen tambahan di sisi (misal: tombol Login/Get Started/Search/Cart) */
22
+ sideElement?: React.ReactNode;
23
+ /** Arah layout untuk mendukung mode RTL (Right-to-Left) */
24
+ dir?: 'ltr' | 'rtl';
25
+ /** Tipe struktur template (default: Logo dan Links di sisi awal, sideElement di sisi akhir) */
26
+ template?: 'default' | 'center-logo' | 'split';
27
+ /** Apakah navbar harus menempel di atas layar saat discroll? */
28
+ sticky?: boolean;
29
+ /** Class tambahan untuk modifikasi tampilan container luar */
30
+ className?: string;
31
+ /** Mode trigger untuk dropdown menu (default: 'click') */
32
+ dropdownTrigger?: 'click' | 'hover';
33
+ /** Efek animasi dropdown (default: 'default') */
34
+ animation?: 'default' | 'fade' | 'slide' | 'bounce' | 'zoom' | 'none';
35
+ /** Durasi animasi dropdown top-level (fallback jika link.animationDuration tidak diset) --
36
+ * sudah dipakai sebagai fallback global di seluruh file, sebelumnya cuma tidak
37
+ * dideklarasikan di interface (gap 2026-08-13). */
38
+ animationDuration?: number;
39
+ /** Pengaturan vertical alignment menu desktop (default: 'center') */
40
+ itemsAlign?: 'start' | 'center' | 'end' | 'baseline' | 'stretch';
41
+ }
42
+ export declare function Navbar({ logo, links, sideElement, dir, template, sticky, className, dropdownTrigger, animation, animationDuration, itemsAlign }: NavbarProps): React.JSX.Element;
@@ -0,0 +1,58 @@
1
+ import * as React from 'react';
2
+ import type { DropdownAnimationType } from '../ui/dropdown-animation';
3
+ export interface NotificationItem {
4
+ id: string | number;
5
+ title: string;
6
+ time: string;
7
+ icon?: React.ReactNode | string;
8
+ isRead?: boolean;
9
+ onClick?: () => void;
10
+ onDismissItem?: (id: string | number) => void;
11
+ /** Label grup (mis. "Penting", "Hari ini") */
12
+ group?: string;
13
+ }
14
+ export interface NotificationDropdownProps {
15
+ /** Daftar notifikasi */
16
+ items: NotificationItem[];
17
+ /** Jumlah notifikasi yang belum dibaca (untuk badge merah) */
18
+ unreadCount?: number;
19
+ /** Label judul header */
20
+ title?: React.ReactNode;
21
+ /** Batas jumlah notifikasi yang ditampilkan, sisanya disembunyikan */
22
+ limit?: number;
23
+ /** Callback ketika tombol setting diklik */
24
+ onSettingsClick?: () => void;
25
+ /** Callback ketika tombol "Clear all notifications" diklik */
26
+ onClearAll?: () => void;
27
+ /** Callback ketika tombol "Lihat semua" diklik (jika item melebihi limit) */
28
+ /** Callback ketika tombol "Lihat semua" diklik (jika item melebihi limit) */
29
+ onViewAll?: () => void;
30
+ /** Aktifkan fitur swipe-to-dismiss (default: false) */
31
+ interactive?: boolean;
32
+ /** Animasi buka/tutup dropdown */
33
+ animation?: DropdownAnimationType;
34
+ /** Ukuran tombol */
35
+ size?: 'sm' | 'md' | 'lg';
36
+ className?: string;
37
+ }
38
+ export interface NotificationButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'title'> {
39
+ /** Jumlah notifikasi yang belum dibaca */
40
+ unreadCount?: number;
41
+ /** Ukuran tombol */
42
+ size?: 'sm' | 'md' | 'lg';
43
+ /** Varian tombol (default: 'outline') */
44
+ variant?: 'outline' | 'ghost' | 'soft' | 'solid';
45
+ /** Tipe indikator: dot standar atau angka */
46
+ badgeType?: 'dot' | 'number';
47
+ }
48
+ export declare const NotificationButton: React.ForwardRefExoticComponent<NotificationButtonProps & React.RefAttributes<HTMLButtonElement>>;
49
+ export declare function NotificationDropdown({ items, unreadCount, title, limit, onSettingsClick, onClearAll, onViewAll, interactive, animation, size, variant, badgeType, className }: NotificationDropdownProps & {
50
+ variant?: 'outline' | 'ghost' | 'soft' | 'solid';
51
+ badgeType?: 'dot' | 'number';
52
+ }): React.JSX.Element;
53
+ export declare function SwipeableNotificationItem({ item, onDismiss, isClearingAll, clearDelay }: {
54
+ item: NotificationItem;
55
+ onDismiss?: (id: string | number) => void;
56
+ isClearingAll?: boolean;
57
+ clearDelay?: number;
58
+ }): React.JSX.Element;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ export interface PriceProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /** The main selling price */
4
+ price: number;
5
+ /** The original price before discount (will be crossed out) */
6
+ originalPrice?: number;
7
+ /** ISO 4217 Currency Code (default: IDR) */
8
+ currency?: string;
9
+ /** BCP 47 Language Tag (default: id-ID) */
10
+ locale?: string;
11
+ /** Template style: horizontal (side-by-side) or vertical (original price on top) */
12
+ template?: 'horizontal' | 'vertical';
13
+ /** Text size variant */
14
+ size?: 'sm' | 'md' | 'lg' | 'xl';
15
+ /** Show currency code instead of symbol (e.g. IDR instead of Rp) */
16
+ showCurrencyCode?: boolean;
17
+ /** Whether to show the discount badge next to original price */
18
+ showDiscount?: boolean;
19
+ /** Label for the discount badge, e.g. "Hemat" or "Diskon" */
20
+ discountLabel?: string;
21
+ /** Format of the discount: percentage (e.g. 30%) or amount (e.g. Rp 5.000) */
22
+ discountFormat?: 'percent' | 'amount';
23
+ /** Custom suffix for percent format, default is '%' */
24
+ discountSymbol?: string;
25
+ }
26
+ export declare function Price({ price, originalPrice, currency, locale, template, size, showCurrencyCode, showDiscount, discountLabel, discountFormat, discountSymbol, className, ...props }: PriceProps): React.JSX.Element;
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+ import { Button } from '../ui/button';
3
+ export interface PricingProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ }
5
+ export declare const Pricing: React.ForwardRefExoticComponent<PricingProps & React.RefAttributes<HTMLDivElement>>;
6
+ export interface PricingCardProps extends React.HTMLAttributes<HTMLDivElement> {
7
+ title: string;
8
+ description?: string;
9
+ price: string | number;
10
+ period?: string;
11
+ highlighted?: boolean;
12
+ badge?: string;
13
+ buttonText?: string;
14
+ buttonProps?: React.ComponentProps<typeof Button>;
15
+ onButtonClick?: () => void;
16
+ }
17
+ export declare const PricingCard: React.ForwardRefExoticComponent<PricingCardProps & React.RefAttributes<HTMLDivElement>>;
18
+ export interface PricingFeatureProps extends React.LiHTMLAttributes<HTMLLIElement> {
19
+ included?: boolean;
20
+ }
21
+ export declare const PricingFeature: React.ForwardRefExoticComponent<PricingFeatureProps & React.RefAttributes<HTMLLIElement>>;
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import { type ProductData, type ProductVariant } from './catalogue';
3
+ export interface ProductDetailData extends ProductData {
4
+ images?: string[];
5
+ sizes?: string[];
6
+ tabs?: {
7
+ id: string;
8
+ title: React.ReactNode;
9
+ content: React.ReactNode;
10
+ }[];
11
+ }
12
+ export interface ProductProps {
13
+ product: ProductDetailData;
14
+ onAddToCart?: (qty: number, variant?: ProductVariant) => void;
15
+ onBuyNow?: (qty: number, variant?: ProductVariant) => void;
16
+ onFavoriteToggle?: (isFav: boolean) => void;
17
+ isFavorite?: boolean;
18
+ className?: string;
19
+ locale?: string;
20
+ imageFit?: 'cover' | 'contain' | 'auto';
21
+ imageAspectRatio?: 'square' | 'video' | 'auto';
22
+ template?: 'carousel' | 'masonry';
23
+ columns?: 1 | 2;
24
+ imageColumnWidth?: number;
25
+ tabsPosition?: 'bottom' | 'info';
26
+ qtyRadius?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
27
+ labels?: {
28
+ readMore?: string;
29
+ showLess?: string;
30
+ };
31
+ }
32
+ export declare function Product({ product, onAddToCart, onBuyNow, onFavoriteToggle, isFavorite, className, locale, imageFit, imageAspectRatio, template, columns, imageColumnWidth, tabsPosition, qtyRadius, labels }: ProductProps): React.JSX.Element;
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ export interface RatingProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /** The current rating value (e.g. 4.8) */
4
+ value?: number;
5
+ /** Maximum rating value for rendering stars (default: 5) */
6
+ maxValue?: number;
7
+ /** Total number of reviews */
8
+ reviews?: number;
9
+ /** Visual template: compact (1 star + text) or stars (multiple stars) */
10
+ template?: 'compact' | 'stars';
11
+ /** Custom icon name from icon library (default: 'star') */
12
+ icon?: string;
13
+ /** ClassName for the icon, usually to set color (default: text-amber-500 fill-current) */
14
+ iconClassName?: string;
15
+ /** Formatting style for review count: exact (1.250), compact (1.2k), or k */
16
+ reviewsFormat?: 'exact' | 'compact' | 'k';
17
+ /** Locale for number formatting (default: 'id-ID') */
18
+ locale?: string;
19
+ /** Text label after the review count (default: 'ulasan') */
20
+ reviewsLabel?: string;
21
+ /** Hide the review count entirely */
22
+ hideReviews?: boolean;
23
+ /** Layout alignment: start (default, with separator dot) or between (space-between, rating on left and sold count on right) */
24
+ justify?: 'start' | 'between';
25
+ }
26
+ export declare function Rating({ value, maxValue, reviews, template, icon, iconClassName, reviewsFormat, locale, reviewsLabel, hideReviews, justify, className, ...props }: RatingProps): React.JSX.Element | null;
27
+ export interface RatingInputProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
28
+ value: number;
29
+ onChange: (rating: number) => void;
30
+ maxRating?: number;
31
+ size?: number;
32
+ activeColor?: string;
33
+ inactiveColor?: string;
34
+ icon?: string;
35
+ }
36
+ export declare function RatingInput({ value, onChange, maxRating, size, activeColor, inactiveColor, icon, className, ...props }: RatingInputProps): React.JSX.Element;
@@ -0,0 +1,54 @@
1
+ import React from 'react';
2
+ export interface ReviewFormProps extends Omit<React.FormHTMLAttributes<HTMLFormElement>, 'onChange'> {
3
+ productName?: string;
4
+ productImage?: string;
5
+ onSubmitReview?: (data: {
6
+ rating: number;
7
+ content: string;
8
+ media: File[];
9
+ }) => Promise<void> | void;
10
+ isSubmitting?: boolean;
11
+ onCancel?: () => void;
12
+ initialRating?: number;
13
+ /** Controlled rating value */
14
+ rating?: number;
15
+ /** Callback for when rating changes */
16
+ onRatingChange?: (rating: number) => void;
17
+ maxMediaSizeMB?: number;
18
+ maxMediaFiles?: number;
19
+ hideFooter?: boolean;
20
+ labels?: {
21
+ productSubtitle?: string;
22
+ ratingLabel?: string;
23
+ contentLabel?: string;
24
+ contentPlaceholder?: string;
25
+ mediaLabel?: string;
26
+ submit?: string;
27
+ submitting?: string;
28
+ cancel?: string;
29
+ errorMaxFiles?: string;
30
+ errorMaxSize?: string;
31
+ errorInvalidType?: string;
32
+ };
33
+ }
34
+ export declare function ReviewForm({ productName, productImage, onSubmitReview, isSubmitting, onCancel, initialRating, rating: controlledRating, onRatingChange, maxMediaSizeMB, maxMediaFiles, hideFooter, labels: customLabels, className, ...props }: ReviewFormProps): React.JSX.Element;
35
+ export interface ReviewFormModalProps extends Omit<ReviewFormProps, 'onSubmitReview'> {
36
+ isOpen: boolean;
37
+ onClose: () => void;
38
+ onSubmitReview?: (data: {
39
+ rating: number;
40
+ content: string;
41
+ media: File[];
42
+ }) => Promise<void> | void;
43
+ modalTitle?: string;
44
+ }
45
+ export declare function ReviewFormModal({ isOpen, onClose, onSubmitReview, initialRating, modalTitle, ...props }: ReviewFormModalProps): React.JSX.Element;
46
+ export interface QuickReviewProps extends React.HTMLAttributes<HTMLDivElement> {
47
+ productName?: string;
48
+ productImage?: string;
49
+ onStarClick?: (rating: number) => void;
50
+ labels?: {
51
+ title?: string;
52
+ };
53
+ }
54
+ export declare function QuickReview({ productName, productImage, onStarClick, labels, className, ...props }: QuickReviewProps): React.JSX.Element;
@@ -0,0 +1,119 @@
1
+ import React from 'react';
2
+ export interface ReviewFilterChip {
3
+ id: string;
4
+ label: string;
5
+ count?: number;
6
+ }
7
+ export interface ReviewSummaryProps extends React.HTMLAttributes<HTMLDivElement> {
8
+ rating: number;
9
+ maxRating?: number;
10
+ filters?: ReviewFilterChip[];
11
+ activeFilter?: string;
12
+ onFilterChange?: (id: string) => void;
13
+ locale?: string;
14
+ }
15
+ export declare function ReviewSummary({ rating, maxRating, filters, activeFilter, onFilterChange, locale, className, ...props }: ReviewSummaryProps): React.JSX.Element;
16
+ export interface ReviewMedia {
17
+ id: string;
18
+ url: string;
19
+ type?: 'image' | 'video';
20
+ }
21
+ export interface ReviewItemData {
22
+ id: string;
23
+ authorName: string;
24
+ authorAvatar?: string;
25
+ date: string | Date;
26
+ rating: number;
27
+ content?: string;
28
+ media?: ReviewMedia[];
29
+ sellerReply?: {
30
+ content: string;
31
+ date?: string | Date;
32
+ authorName?: string;
33
+ };
34
+ helpfulCount?: number;
35
+ notHelpfulCount?: number;
36
+ }
37
+ export interface ReviewItemProps extends React.HTMLAttributes<HTMLDivElement> {
38
+ review: ReviewItemData;
39
+ locale?: string;
40
+ /** Handler ketika media diklik (biasanya untuk membuka Lightbox global) */
41
+ onMediaClick?: (url: string) => void;
42
+ /** Format tanggal */
43
+ dateFormat?: 'relative' | 'exact';
44
+ /** Tampilkan tombol Membantu / Tidak Membantu */
45
+ showHelpfulButtons?: boolean;
46
+ /** Handler ketika tombol membantu diklik */
47
+ onHelpfulClick?: (reviewId: string, type: 'helpful' | 'notHelpful') => void;
48
+ /** Label untuk i18n */
49
+ labels?: {
50
+ helpful?: string;
51
+ notHelpful?: string;
52
+ sellerReply?: string;
53
+ };
54
+ }
55
+ export declare function ReviewItem({ review, locale, onMediaClick, dateFormat, showHelpfulButtons, onHelpfulClick, labels, className, ...props }: ReviewItemProps): React.JSX.Element;
56
+ export interface ReviewListProps extends React.HTMLAttributes<HTMLDivElement> {
57
+ summary?: React.ReactNode;
58
+ reviews: ReviewItemData[];
59
+ emptyMessage?: string;
60
+ locale?: string;
61
+ /** Mode memuat data selanjutnya */
62
+ paginationMode?: 'pagination' | 'loadMore' | 'none';
63
+ /** Halaman saat ini (aktif) */
64
+ currentPage?: number;
65
+ /** Total seluruh halaman (untuk mode pagination) */
66
+ totalPages?: number;
67
+ /** Indikator loading saat mengambil data ulasan baru */
68
+ isLoadingNext?: boolean;
69
+ /** Aksi saat halaman berpindah atau Load More diklik */
70
+ onPageChange?: (page: number) => void;
71
+ /** Teks kustom untuk tombol Load More (default: "Muat Lebih Banyak") */
72
+ loadMoreLabel?: string;
73
+ /** Format tanggal: 'relative' (2 hari lalu) atau 'exact' (12 Agt 2026) */
74
+ dateFormat?: 'relative' | 'exact';
75
+ /** Tampilkan tombol Membantu / Tidak Membantu di tiap ulasan */
76
+ showHelpfulButtons?: boolean;
77
+ /** Handler ketika tombol membantu diklik */
78
+ onHelpfulClick?: (reviewId: string, type: 'helpful' | 'notHelpful') => void;
79
+ /** Label teks kustom untuk i18n */
80
+ labels?: {
81
+ emptyMessage?: string;
82
+ loadMore?: string;
83
+ loading?: string;
84
+ prev?: string;
85
+ next?: string;
86
+ pageInfo?: (current: number, total: number) => React.ReactNode;
87
+ helpful?: string;
88
+ notHelpful?: string;
89
+ sellerReply?: string;
90
+ };
91
+ }
92
+ export declare function ReviewList({ summary, reviews, emptyMessage, locale, paginationMode, currentPage, totalPages, isLoadingNext, onPageChange, loadMoreLabel, dateFormat, labels, className, ...props }: ReviewListProps): React.JSX.Element;
93
+ export interface ReviewCardData {
94
+ id: string;
95
+ authorName: string;
96
+ authorRole?: string;
97
+ authorAvatar?: string;
98
+ rating: number;
99
+ content: string;
100
+ badge?: string;
101
+ }
102
+ export interface ReviewCardProps extends React.HTMLAttributes<HTMLDivElement> {
103
+ review: ReviewCardData;
104
+ radius?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
105
+ }
106
+ /**
107
+ * Kartu testimoni/ulasan ringkas untuk Home Page & Landing Page Showcase.
108
+ * Generik, memakai semantic design tokens penuh (@deweb/ui-kit).
109
+ */
110
+ export declare function ReviewCard({ review, radius, className, ...props }: ReviewCardProps): React.JSX.Element;
111
+ export interface ReviewGridProps extends React.HTMLAttributes<HTMLDivElement> {
112
+ reviews: ReviewCardData[];
113
+ columns?: 2 | 3 | 4;
114
+ radius?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
115
+ }
116
+ /**
117
+ * Grid kartu testimoni siap pakai untuk Home Page / Landing Page.
118
+ */
119
+ export declare function ReviewGrid({ reviews, columns, radius, className, ...props }: ReviewGridProps): React.JSX.Element;