@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,46 @@
1
+ import * as React from 'react';
2
+ export interface ActionBarItem {
3
+ id: string;
4
+ node: React.ReactNode;
5
+ /** Jika true, item ini tidak akan dipindahkan ke dropdown pada versi mobile (selalu tampil) */
6
+ priority?: boolean;
7
+ /** Node khusus untuk tampilan dalam dropdown */
8
+ dropdownNode?: React.ReactNode;
9
+ /** Label untuk tampilan Dropdown yang rapi (seperti klik kanan) */
10
+ dropdownLabel?: string;
11
+ /** Icon opsional untuk item Dropdown */
12
+ dropdownIcon?: string;
13
+ /** Action onClick saat diklik dari dalam Dropdown */
14
+ onClick?: () => void;
15
+ }
16
+ export type ActionBarItemInput = ActionBarItem | React.ReactNode;
17
+ export interface ActionBarProps extends React.HTMLAttributes<HTMLDivElement> {
18
+ /** Aksi utama dan tambahan (ditampilkan di kiri). Bisa berupa array ActionBarItem, array ReactNode, atau ReactNode tunggal */
19
+ actions?: ActionBarItemInput[] | ActionBarItemInput;
20
+ /** Komponen pencarian (ditampilkan di kiri setelah actions). Otomatis prioritas di mobile. */
21
+ search?: ActionBarItem | ActionBarSearchProps | React.ReactNode;
22
+ /** Filter, Sort, Group (ditampilkan di kanan) */
23
+ filters?: ActionBarItemInput[] | ActionBarItemInput;
24
+ /** Opsi tampilan (List/Grid) (ditampilkan paling kanan) */
25
+ views?: ActionBarItemInput[] | ActionBarItemInput;
26
+ gap?: number;
27
+ /** Ukuran global untuk komponen di dalam ActionBar (default: 'md') */
28
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
29
+ /** Posisi perataan aksi: 'left' | 'center' | 'right' | 'between' (default: 'between') */
30
+ align?: 'left' | 'center' | 'right' | 'between';
31
+ /** Mode sticky/stuck aktif (opsional, otomatis terdeteksi jika berada di dalam header stuck) */
32
+ isStuck?: boolean;
33
+ /** Jika diisi, ActionBar akan dirender ke dalam elemen dengan ID ini menggunakan React Portal */
34
+ portalTargetId?: string;
35
+ /** Konten alternatif jika dipanggil seperti <ActionBar><Button ... /></ActionBar> */
36
+ children?: React.ReactNode;
37
+ }
38
+ export declare const ActionBar: React.ForwardRefExoticComponent<ActionBarProps & React.RefAttributes<HTMLDivElement>>;
39
+ export interface ActionBarSearchProps {
40
+ placeholder?: string;
41
+ value?: string;
42
+ onChange?: (value: string) => void;
43
+ className?: string;
44
+ size?: 'xs' | 'sm' | 'default' | 'md' | 'lg';
45
+ }
46
+ export declare function ActionBarSearch({ placeholder, value, onChange, className, size }: ActionBarSearchProps): React.JSX.Element;
@@ -0,0 +1,25 @@
1
+ import * as React from 'react';
2
+ import type { DewebColor, DewebVariant, DewebShadow, DewebRadius } from '../../lib/theme/types';
3
+ /** Diadaptasi dari Cyclopedia-New/app/components/ui/Alert.tsx. */
4
+ export interface AlertProps {
5
+ color?: DewebColor | 'error' | 'default';
6
+ type?: DewebColor | 'error' | 'default';
7
+ title?: string;
8
+ children?: React.ReactNode;
9
+ className?: string;
10
+ /** Render tombol X (kanan-atas) -- panggil ini saat diklik. */
11
+ onDismiss?: () => void;
12
+ /** Auto-panggil `onDismiss` setelah N milidetik */
13
+ autoDismissMs?: number;
14
+ /** Varian tampilan: 'soft' (default, bg dimmy) atau 'solid' (bg base color). */
15
+ variant?: DewebVariant | 'solid' | 'soft';
16
+ radius?: DewebRadius;
17
+ shadow?: DewebShadow;
18
+ /** Custom icon name dari resolver icon. Gunakan null untuk menonaktifkan icon bawaan. */
19
+ icon?: string | null;
20
+ /** Slot elemen aksi atau tombol di sebelah kanan */
21
+ action?: React.ReactNode;
22
+ /** Ukuran alert: 'xs' | 'sm' | 'md' | 'lg'. Default: 'md'. */
23
+ size?: 'xs' | 'sm' | 'md' | 'lg';
24
+ }
25
+ export declare function Alert({ type, color, title, children, className, onDismiss, autoDismissMs, variant, radius, shadow, icon, action, size, }: AlertProps): React.JSX.Element;
@@ -0,0 +1,41 @@
1
+ import * as React from 'react';
2
+ export type AnimationType = 'zoom' | 'bounce' | 'dip' | 'spin' | 'drop' | 'shake' | 'sparkle' | 'confetti' | 'split' | 'shrink';
3
+ export interface AnimatedProps extends React.HTMLAttributes<HTMLSpanElement> {
4
+ /**
5
+ * Tipe animasi yang akan dimainkan.
6
+ */
7
+ animation?: AnimationType;
8
+ /**
9
+ * Jika true, maka animasi akan dimainkan berdasarkan perubahan prop ini.
10
+ * Sangat berguna untuk state toggle (misal: isFavorited).
11
+ */
12
+ isActive?: boolean;
13
+ /**
14
+ * (Deprecated) Animasi sekarang selalu berjalan saat diklik, prop ini tidak lagi diperlukan.
15
+ */
16
+ triggerOnClick?: boolean;
17
+ /**
18
+ * Durasi animasi dalam milidetik.
19
+ */
20
+ duration?: number;
21
+ /**
22
+ * Komponen atau teks yang dibungkus oleh elemen Animated.
23
+ */
24
+ children?: React.ReactNode;
25
+ /**
26
+ * (Opsional) Ikon yang akan dirender langsung di dalam.
27
+ * Jika digunakan, Animated akan otomatis mengatur pewarnaan state active/inactive dan ukuran default (w-10 h-10).
28
+ */
29
+ icon?: React.ElementType;
30
+ /**
31
+ * Warna tema ikon saat aktif (mengikuti standar DewebColor).
32
+ * Default: 'default' (menyesuaikan warna teks/foreground UI Kit).
33
+ */
34
+ color?: 'danger' | 'primary' | 'success' | 'warning' | 'info' | 'default';
35
+ /**
36
+ * Gaya tampilan (variant) tombol ikon (mengikuti standar DewebVariant).
37
+ * Default: 'solid' (dengan background transparan berwarna saat aktif)
38
+ */
39
+ variant?: 'solid' | 'ghost' | 'outline';
40
+ }
41
+ export declare const Animated: React.ForwardRefExoticComponent<AnimatedProps & React.RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1,53 @@
1
+ import * as React from 'react';
2
+ export interface AppShellProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * Layout varian yang menentukan bentuk dan penempatan Sidebar.
5
+ * - standard: Sidebar di kiri, batas lurus (border-r)
6
+ * - rounded: Konten utama membulat, Sidebar lurus
7
+ * - floating: Sidebar mengambang (rounded) terpisah
8
+ * - rtl: Sidebar di kanan
9
+ */
10
+ variant?: 'standard' | 'rounded' | 'floating' | 'rtl';
11
+ /**
12
+ * Tema sidebar.
13
+ * - light: Sidebar terang, warna teks gelap otomatis disesuaikan
14
+ * - dark: Sidebar gelap
15
+ * - auto: Mengikuti parent/sistem (default)
16
+ */
17
+ theme?: 'light' | 'dark' | 'auto';
18
+ /** Apakah menu sidebar terbuka? (Teks label terlihat) */
19
+ sidebarOpen?: boolean;
20
+ /** Prop untuk mengontrol sidebar dari luar */
21
+ onSidebarToggle?: (open: boolean) => void;
22
+ /** Apakah layar sedang dalam mode mobile/sempit? */
23
+ isMobile?: boolean;
24
+ /** Dipanggil ketika overlay mobile diklik */
25
+ onMobileClose?: () => void;
26
+ /** Apakah sidebar harus disembunyikan sepenuhnya? */
27
+ hideSidebar?: boolean;
28
+ /** Komponen/Elemen untuk dirender di area Logo Sidebar */
29
+ sidebarLogo?: React.ReactNode;
30
+ /** Komponen/Elemen SidebarMenu (atau Nav list) */
31
+ sidebarNav?: React.ReactNode;
32
+ /** Area tambahan di bawah Sidebar Nav (mis. User Profile menu) */
33
+ sidebarFooter?: React.ReactNode;
34
+ /** Apakah ada garis border pemisah di bawah Logo Sidebar? Default: true */
35
+ sidebarLogoBorder?: boolean;
36
+ /** Apakah ada garis border pemisah di atas Footer Sidebar? Default: true */
37
+ sidebarFooterBorder?: boolean;
38
+ /** Konten tambahan di Top Header utama (mis. Breadcrumb, Toggle) */
39
+ headerContent?: React.ReactNode;
40
+ /** Area Kanan Top Header utama (mis. Notification, User Profile jika di atas) */
41
+ headerRightContent?: React.ReactNode;
42
+ /** Class kustom tambahan untuk elemen header utama */
43
+ headerClassName?: string;
44
+ /** Footer tambahan yang dirender di bawah konten utama (bukan sidebar) */
45
+ mainFooter?: React.ReactNode;
46
+ /** Apakah Header utama menempel di atas (sticky)? Default: true */
47
+ headerSticky?: boolean;
48
+ /** Apakah Footer utama menempel di bawah (sticky) atau ikut tergulir? Default: false */
49
+ footerSticky?: boolean;
50
+ /** Komponen untuk merender anak konten utama */
51
+ children?: React.ReactNode;
52
+ }
53
+ export declare function AppShell({ variant, theme, sidebarOpen, onSidebarToggle, isMobile, onMobileClose, hideSidebar, sidebarLogo, sidebarNav, sidebarFooter, sidebarLogoBorder, sidebarFooterBorder, headerClassName, headerContent, headerRightContent, mainFooter, headerSticky, footerSticky, children, className, ...props }: AppShellProps): React.JSX.Element;
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ import type { IconLibraryKey } from '../../lib/icon/config';
3
+ import type { DewebSize } from '../../lib/theme/types';
4
+ type LegacySize = 'default' | 'sm' | 'lg' | 'xl' | '2xl';
5
+ export interface AvatarProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ src?: string | null;
7
+ alt?: string;
8
+ initials?: string;
9
+ size?: DewebSize | LegacySize;
10
+ fallbackIcon?: IconLibraryKey | (string & {});
11
+ }
12
+ export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
13
+ export interface AvatarStackProps extends React.HTMLAttributes<HTMLDivElement> {
14
+ limit?: number;
15
+ size?: DewebSize | LegacySize;
16
+ }
17
+ export declare const AvatarStack: React.ForwardRefExoticComponent<AvatarStackProps & React.RefAttributes<HTMLDivElement>>;
18
+ export {};
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import type { DewebColor, DewebVariant, DewebRadius } from '../../lib/theme/types';
3
+ export type BadgeSize = 'xs' | 'sm' | 'md' | 'lg';
4
+ type LegacyVariant = 'default' | 'primary' | 'secondary' | 'muted' | 'success' | 'warning' | 'danger' | 'info';
5
+ export interface BadgeProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'> {
6
+ color?: DewebColor | 'muted';
7
+ variant?: DewebVariant | LegacyVariant;
8
+ size?: BadgeSize;
9
+ radius?: DewebRadius;
10
+ }
11
+ export declare function Badge({ className, color, variant, size, radius, style, ...props }: BadgeProps): React.JSX.Element;
12
+ export declare function StatusBadge({ status }: {
13
+ status: string;
14
+ }): React.JSX.Element;
15
+ export {};
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+ export interface BreadcrumbItemData {
3
+ label: React.ReactNode;
4
+ href?: string;
5
+ onClick?: () => void;
6
+ }
7
+ export interface BreadcrumbProps {
8
+ items: BreadcrumbItemData[];
9
+ className?: string;
10
+ /** Batasi jumlah item terlihat -- item tengah diringkas jadi "...". Item pertama & 2 terakhir selalu tampil. */
11
+ maxItems?: number;
12
+ /** 'chevron' (default) -- ikon panah kanan. 'slash' -- karakter "/" polos, gaya breadcrumb minimal (mis. "Pages Kit / Overview"). */
13
+ separator?: 'chevron' | 'slash';
14
+ }
15
+ /**
16
+ * Item tengah diringkas via ellipsis statis (bukan dropdown) -- cukup untuk kebutuhan
17
+ * saat ini (path panjang di file manager/nav dalam). Kalau nanti perlu klik ellipsis
18
+ * untuk lihat item tersembunyi, tinggal tambah popover di sini.
19
+ */
20
+ export declare function Breadcrumb({ items, className, maxItems, separator }: BreadcrumbProps): React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { type ButtonProps } from './button';
3
+ import type { IconLibraryKey } from '../../lib/icon/config';
4
+ export interface ButtonIconProps extends Omit<ButtonProps, 'children' | 'size'> {
5
+ icon: IconLibraryKey | (string & {});
6
+ iconSize?: number;
7
+ size?: 'xs' | 'sm' | 'md' | 'default' | 'lg' | 'xl' | 'icon' | 'icon-xs' | 'icon-sm' | 'icon-md' | 'icon-lg' | 'icon-xl';
8
+ }
9
+ export declare const ButtonIcon: React.ForwardRefExoticComponent<ButtonIconProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,37 @@
1
+ import * as React from 'react';
2
+ import type { DewebColor, DewebVariant, DewebSize, DewebRadius, DewebShadow } from '../../lib/theme/types';
3
+ import { type IconComponent } from '../../lib/icon';
4
+ type LegacyVariant = 'default' | 'primary' | 'danger' | 'success' | 'info' | 'warning' | 'muted' | 'secondary' | 'outline' | 'ghost';
5
+ type LegacySize = 'default' | 'icon' | 'icon-xs' | 'icon-sm' | 'icon-md' | 'icon-lg' | 'icon-xl' | 'sm' | 'xs' | 'lg';
6
+ export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color'> {
7
+ color?: DewebColor | 'muted';
8
+ hoverColor?: DewebColor | 'muted';
9
+ variant?: DewebVariant | LegacyVariant;
10
+ size?: DewebSize | LegacySize;
11
+ radius?: DewebRadius;
12
+ shadow?: DewebShadow;
13
+ asChild?: boolean;
14
+ isLoading?: boolean;
15
+ /** Teks pengganti saat loading (misal: "Menyimpan..."). Jika tidak diisi, teks/children default tetap tampil */
16
+ loadingText?: React.ReactNode;
17
+ /** Icon kustom saat loading (default: spinner Lucide 'loader2') */
18
+ loadingIcon?: React.ReactNode;
19
+ /** Icon di sebelah kiri teks (nama icon string seperti 'plus', 'pencil', atau node Icon) */
20
+ icon?: boolean | IconComponent | string | React.ReactNode;
21
+ /** Icon di sebelah kanan teks */
22
+ iconRight?: boolean | IconComponent | string | React.ReactNode;
23
+ isStuck?: boolean;
24
+ }
25
+ export interface ButtonVariantsProps {
26
+ color?: DewebColor | 'muted';
27
+ hoverColor?: DewebColor | 'muted';
28
+ variant?: DewebVariant | LegacyVariant;
29
+ size?: DewebSize | LegacySize;
30
+ radius?: DewebRadius;
31
+ shadow?: DewebShadow;
32
+ className?: string;
33
+ isStuck?: boolean;
34
+ }
35
+ export declare const buttonVariants: ({ color, hoverColor, variant, size, radius, shadow, className, isStuck }?: ButtonVariantsProps) => string;
36
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
37
+ export {};
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ export interface CalendarProps {
3
+ /** Tanggal untuk menentukan bulan yang ditampilkan (default: new Date()) */
4
+ month?: Date;
5
+ /** Komponen untuk dirender di bagian kiri atas (header judul) */
6
+ title?: React.ReactNode;
7
+ /** Class tambahan untuk Card wrapper */
8
+ className?: string;
9
+ /** Fungsi untuk merender isi tiap sel (tanggal kalender) */
10
+ renderDay?: (date: Date) => React.ReactNode;
11
+ /** Hari pertama dalam seminggu (0 = Minggu, 1 = Senin, dst). Default: 0 */
12
+ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
13
+ }
14
+ export declare function Calendar({ month, title, className, renderDay, weekStartsOn }: CalendarProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare const Card: any;
2
+ export { CardHeader, CardTitle, CardDescription, CardContent, CardFooter, CardField } from './card';
@@ -0,0 +1,36 @@
1
+ import * as React from 'react';
2
+ import type { DewebColor, DewebVariant, DewebRadius, DewebShadow } from '../../lib/theme/types';
3
+ export type CardPreset = 'default' | 'compact' | 'sidebar';
4
+ export interface CardContextValue {
5
+ preset: CardPreset;
6
+ }
7
+ export declare const CardContext: React.Context<CardContextValue>;
8
+ export declare const useCardContext: () => CardContextValue;
9
+ export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
10
+ color?: DewebColor;
11
+ variant?: DewebVariant;
12
+ radius?: DewebRadius;
13
+ shadow?: DewebShadow;
14
+ preset?: CardPreset;
15
+ }
16
+ export declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
17
+ export declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
18
+ export declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
19
+ export declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
20
+ export declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
21
+ export interface CardFieldProps extends React.HTMLAttributes<HTMLDivElement> {
22
+ label?: React.ReactNode;
23
+ value?: React.ReactNode;
24
+ isEditing?: boolean;
25
+ input?: React.ReactNode;
26
+ children?: React.ReactNode;
27
+ }
28
+ export declare const CardField: React.ForwardRefExoticComponent<CardFieldProps & React.RefAttributes<HTMLDivElement>>;
29
+ export declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>> & {
30
+ Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
31
+ Title: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
32
+ Description: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
33
+ Content: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
34
+ Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
35
+ Field: React.ForwardRefExoticComponent<CardFieldProps & React.RefAttributes<HTMLDivElement>>;
36
+ };
@@ -0,0 +1,75 @@
1
+ import * as React from 'react';
2
+ export interface UsageChartPoint {
3
+ /** Unix timestamp (detik) atau label sumbu-X apa pun -- cuma dipakai
4
+ * internal buat urutan titik, TIDAK dirender sebagai label sumbu (chart
5
+ * ini sengaja minimalis, tanpa axis/grid -- lihat NodeUsageSparkline). */
6
+ t: number;
7
+ /** Nilai metric (0-100, persen) -- `null` SAH (belum ada data), BUKAN 0. */
8
+ value: number | null;
9
+ }
10
+ export interface NodeUsageSparklineProps extends React.HTMLAttributes<HTMLDivElement> {
11
+ /** Histori titik data, urut waktu (lama -> baru). Minimal 2 titik untuk
12
+ * garis kelihatan -- kurang dari itu, komponen render placeholder. */
13
+ data: UsageChartPoint[];
14
+ /** Warna garis + aksen kartu mengikuti jenis metric -- token Color Engine,
15
+ * BUKAN hex hardcode (auto-adapt light/dark, lihat PORTAL_UI_UX.md §
16
+ * Adaptive Auto-Color). Default 'cpu' kalau tidak diisi. */
17
+ metric?: 'cpu' | 'ram' | 'disk';
18
+ /** Tinggi AREA CHART dalam px (belum termasuk label header) -- default 40
19
+ * (mini sparkline di kartu list). Naikkan untuk konteks detail (mis. 120
20
+ * di halaman detail node). */
21
+ height?: number;
22
+ /** Tampilkan tooltip hover -- default false (kartu list sudah cukup padat
23
+ * dengan value di header). Aktifkan di halaman detail yang punya ruang lebih. */
24
+ showTooltip?: boolean;
25
+ /** Placeholder teks kalau data < 2 titik (misal "Belum ada data usage"). */
26
+ emptyLabel?: string;
27
+ }
28
+ /**
29
+ * NodeUsageSparkline -- kartu NETRAL (border/background standar seperti
30
+ * kartu biasa, BUKAN tinted per metric) berisi 1 metric (CPU/RAM/Disk):
31
+ * label + value TERKINI di header, area chart ber-BORDER SOLID di bawahnya.
32
+ * Dipakai di kartu Grid daftar Node (`deweb-portal-admin` OrchestraNodesPage)
33
+ * dan bisa dipakai ulang di halaman lain yang butuh tren metric ringkas
34
+ * serupa (bukan app-specific, karena itu masuk ui-kit, bukan tinggal di
35
+ * modules/orchestra).
36
+ *
37
+ * Revisi 2026-08-17 (2 putaran feedback desain dari mockup coretan tangan):
38
+ * (1) chart awal polos tanpa frame -- ditambah border+BG, value pindah ke
39
+ * header dalam kartu. (2) SALAH ARAH -- seluruh kartu jadi tinted warna
40
+ * metric (bg+border+teks biru/hijau/kuning), terlalu ramai. FINAL: kartu
41
+ * luar netral, cuma AREA CHART yang dapat border solid tegas (kotak hitam
42
+ * di mockup), dan warna dipakai HANYA untuk garis + value -- itu pun bukan
43
+ * warna tetap per metric, tapi warna LEVEL (hijau aman/oranye warning/merah
44
+ * danger, lihat levelColor()) karena tujuannya nunjukkin seberapa parah
45
+ * levelnya, bukan membedakan jenis metric (itu cukup dari label teks).
46
+ *
47
+ * SATU metric per chart (bukan multi-line CPU+RAM+Disk digabung) -- 3
48
+ * instance terpisah kalau butuh ketiganya sekaligus, lihat NodeUsageChartGroup.
49
+ * Keputusan desain: gabung 3 metric beda skala (CPU/RAM % vs Disk %) dalam
50
+ * SATU sparkline kecil bikin garis saling tumpang tindih dan susah dibaca --
51
+ * terpisah lebih jelas walau makan ruang vertikal sedikit lebih banyak.
52
+ */
53
+ export declare function NodeUsageSparkline({ data, metric, height, showTooltip, emptyLabel, className, ...props }: NodeUsageSparklineProps): React.JSX.Element;
54
+ export interface NodeUsageChartGroupProps {
55
+ /** Histori CPU, urut waktu. */
56
+ cpu: UsageChartPoint[];
57
+ /** Histori RAM, urut waktu. */
58
+ ram: UsageChartPoint[];
59
+ /** Histori Disk, urut waktu -- boleh semua `value: null` kalau node belum
60
+ * pernah kirim metric disk (lihat Monitor/agent.py 2026-08-17). */
61
+ disk: UsageChartPoint[];
62
+ /** Tinggi AREA CHART tiap kartu (belum termasuk header label+value) --
63
+ * default 40. */
64
+ height?: number;
65
+ showTooltip?: boolean;
66
+ }
67
+ /**
68
+ * NodeUsageChartGroup -- 3 NodeUsageSparkline (CPU/RAM/Disk) berdampingan,
69
+ * SATU per metric (bukan digabung) sesuai keputusan desain di
70
+ * NodeUsageSparkline -- label+value TERKINI sudah jadi bagian dari tiap
71
+ * kartu (header internal), tidak perlu badge/label tambahan di luar.
72
+ * Convenience wrapper -- pakai NodeUsageSparkline langsung kalau butuh
73
+ * layout custom (mis. cuma 1-2 metric, atau bukan grid 3-kolom).
74
+ */
75
+ export declare function NodeUsageChartGroup({ cpu, ram, disk, height, showTooltip }: NodeUsageChartGroupProps): React.JSX.Element;
@@ -0,0 +1,74 @@
1
+ import * as React from 'react';
2
+ import type { IconLibraryKey } from '../../lib/icon/config';
3
+ import type { DewebColor } from '../../lib/theme/types';
4
+ export type ChatSenderType = 'user' | 'agent' | 'support' | 'system' | string;
5
+ export interface ChatAttachment {
6
+ id?: string;
7
+ name: string;
8
+ size?: number;
9
+ type?: string;
10
+ url: string;
11
+ isImage?: boolean;
12
+ isPdf?: boolean;
13
+ }
14
+ export interface ChatMessage {
15
+ id: string;
16
+ senderType?: ChatSenderType;
17
+ senderName?: string;
18
+ senderBadge?: string;
19
+ avatarUrl?: string;
20
+ timestamp?: string;
21
+ text: string;
22
+ isSelf?: boolean;
23
+ images?: string[];
24
+ attachments?: ChatAttachment[];
25
+ feedback?: 'thumbs_up' | 'thumbs_down' | null;
26
+ }
27
+ export interface PendingChatAttachment {
28
+ id: string;
29
+ file?: File;
30
+ name: string;
31
+ size: number;
32
+ type: string;
33
+ isImage: boolean;
34
+ previewUrl: string;
35
+ }
36
+ export interface ChatBubbleProps {
37
+ message: ChatMessage;
38
+ isSelf?: boolean;
39
+ onFeedback?: (messageId: string, type: 'thumbs_up' | 'thumbs_down') => void;
40
+ onImageClick?: (images: string[], index: number) => void;
41
+ onAttachmentClick?: (attachment: ChatAttachment) => void;
42
+ showFeedback?: boolean;
43
+ className?: string;
44
+ }
45
+ export declare function ChatBubble({ message, isSelf: isSelfProp, onFeedback, onImageClick, onAttachmentClick, showFeedback, className, }: ChatBubbleProps): React.JSX.Element;
46
+ export interface ChatThreadProps {
47
+ messages: ChatMessage[];
48
+ isSelf?: (message: ChatMessage) => boolean;
49
+ onFeedback?: (messageId: string, type: 'thumbs_up' | 'thumbs_down') => void;
50
+ onAttachmentClick?: (attachment: ChatAttachment) => void;
51
+ onImageClick?: (images: string[], index: number) => void;
52
+ emptyTitle?: string;
53
+ emptyDescription?: string;
54
+ emptyIcon?: IconLibraryKey | string;
55
+ autoScroll?: boolean;
56
+ showFeedback?: boolean;
57
+ className?: string;
58
+ children?: React.ReactNode;
59
+ }
60
+ export declare function ChatThread({ messages, isSelf, onFeedback, onAttachmentClick, onImageClick, emptyTitle, emptyDescription, emptyIcon, autoScroll, showFeedback, className, children, }: ChatThreadProps): React.JSX.Element;
61
+ export interface ChatInputProps {
62
+ value?: string;
63
+ onChange?: (val: string) => void;
64
+ onSend: (text: string, attachments: PendingChatAttachment[]) => void | Promise<void>;
65
+ placeholder?: string;
66
+ disabled?: boolean;
67
+ isLoading?: boolean;
68
+ senderBadge?: string;
69
+ senderBadgeColor?: DewebColor;
70
+ allowAttachments?: boolean;
71
+ acceptedFileTypes?: string;
72
+ className?: string;
73
+ }
74
+ export declare function ChatInput({ value, onChange, onSend, placeholder, disabled, isLoading, senderBadge, senderBadgeColor, allowAttachments, acceptedFileTypes, className, }: ChatInputProps): React.JSX.Element;
@@ -0,0 +1,85 @@
1
+ import * as React from 'react';
2
+ import type { SyntaxErrorItem } from '../code/validator';
3
+ export type CodeMode = 'inline' | 'block' | 'preview' | 'editor';
4
+ export interface CodeFileItem {
5
+ label: string;
6
+ lang?: string;
7
+ code: string;
8
+ downloadFilename?: string;
9
+ }
10
+ export interface CodeProps {
11
+ /** Konten kode (string untuk inline/block, atau ReactNode untuk inline/preview) */
12
+ children?: React.ReactNode;
13
+ /** Mode tampilan terpadu: 'inline' | 'block' | 'preview' | 'editor'. Jika kosong, auto-detect. */
14
+ mode?: CodeMode;
15
+ /** Daftar file untuk mode block multi-tab */
16
+ files?: CodeFileItem[];
17
+ /** Bahasa pemrograman (js, html, css, json, tsx, dll) */
18
+ lang?: string;
19
+ /** Jumlah baris untuk tinggi tetap. Berguna agar ukurannya seragam. */
20
+ rows?: number | string;
21
+ /** Tinggi manual */
22
+ height?: string | number;
23
+ /** Lebar manual */
24
+ width?: string | number;
25
+ /** Kelas kustom untuk wadah (container) */
26
+ className?: string;
27
+ /** Tema syntax highlighter atau editor ('light' | 'dark' | 'auto') */
28
+ theme?: any;
29
+ /** Menampilkan nomor baris di sebelah kiri (default: true) */
30
+ line?: boolean;
31
+ /** Mengaktifkan bungkus teks (wrap) */
32
+ wrap?: boolean;
33
+ /** Mengaktifkan code folding interaktif kurung kurawal/blok (default: true) */
34
+ fold?: boolean;
35
+ /** Jika diisi, akan memunculkan tombol download dengan nama file tersebut */
36
+ downloadFilename?: string;
37
+ /** Menampilkan lencana bahasa (misal: "JSX") */
38
+ languageBadge?: boolean;
39
+ /** Mengizinkan expand/collapse jika baris kode melebihi nilai ini. Jika 0, fitur ini nonaktif (buka semua). */
40
+ expandable?: number;
41
+ /** Controlled expanded state */
42
+ expanded?: boolean;
43
+ onExpandedChange?: (expanded: boolean) => void;
44
+ /** Props khusus mode 'inline' */
45
+ variant?: InlineCodeProps['variant'];
46
+ size?: InlineCodeProps['size'];
47
+ /** Props khusus mode 'editor' */
48
+ value?: string;
49
+ onChange?: (value: string) => void;
50
+ placeholder?: string;
51
+ helpText?: string;
52
+ highlightActiveLine?: boolean;
53
+ readOnly?: boolean;
54
+ showStats?: boolean;
55
+ allowThemeToggle?: boolean;
56
+ allowLanguageSelect?: boolean;
57
+ onValidationChange?: (isValid: boolean, errors: SyntaxErrorItem[]) => void;
58
+ /** Props khusus mode 'preview' */
59
+ id?: string;
60
+ title?: string;
61
+ description?: string;
62
+ reactCode?: string;
63
+ htmlCode?: string;
64
+ jsonCode?: string;
65
+ jsxCode?: string;
66
+ responsive?: boolean;
67
+ numbered?: boolean;
68
+ bleed?: boolean;
69
+ }
70
+ /**
71
+ * `<Code>` — Komponen kode terpadu Deweb UI Kit.
72
+ * Mendukung 4 mode: `inline` (default ringan untuk teks 1 baris), `block` (single atau multi-tab `files`),
73
+ * `preview` (Live Preview + Source Code), dan `editor` (mini-IDE interaktif).
74
+ */
75
+ export declare function Code(props: CodeProps): React.JSX.Element;
76
+ export interface InlineCodeProps extends React.HTMLAttributes<HTMLElement> {
77
+ children?: React.ReactNode;
78
+ variant?: 'subtle' | 'outline' | 'solid';
79
+ size?: 'xs' | 'sm' | 'md';
80
+ }
81
+ /**
82
+ * `<InlineCode>` — Komponen resmi Deweb UI Kit untuk kode ringkas sebaris (inline code).
83
+ * Menjamin kontras tinggi yang aman di mode gelap dan terang tanpa risiko background bertabrakan.
84
+ */
85
+ export declare function InlineCode({ children, className, variant, size, ...props }: InlineCodeProps): React.JSX.Element;
@@ -0,0 +1,21 @@
1
+ import {
2
+ Code2,
3
+ InlineCode2
4
+ } from "../../chunk-es4tgmvr.js";
5
+ import"../../chunk-y71rd8qf.js";
6
+ import {
7
+ __chunks
8
+ } from "../../chunk-zjmt193s.js";
9
+ import"../../chunk-1t1fbbme.js";
10
+ import"../../chunk-h6k57hyd.js";
11
+ import"../../chunk-m3t14v77.js";
12
+ import"../../chunk-kv58555q.js";
13
+ import"../../chunk-k2b698v5.js";
14
+ import"../../chunk-x4pk7vxm.js";
15
+ __chunks(import.meta.url,["csyw5yjj","es4tgmvr","y71rd8qf","zjmt193s","1t1fbbme","h6k57hyd","m3t14v77","kv58555q","k2b698v5","x4pk7vxm","vak164kx","amsyqyh9","czbcw9e1","8jv2g2ne","qmbwp4k7","vpvnvegz","nhhgsdt3","4jrq15v9","je0j5sn4","19jsevr8","dsddmmdk"],[["./code.js",1,2,3,4,5,6,7,8,9],["../../chunk-es4tgmvr.js",9,4,5,2,3],["../../chunk-y71rd8qf.js",6],["../../chunk-zjmt193s.js"],["../../chunk-1t1fbbme.js",9],["../../chunk-h6k57hyd.js",9],["../../chunk-m3t14v77.js",7,8],["../../chunk-kv58555q.js",9,8,12],["../../chunk-k2b698v5.js"],["../../chunk-x4pk7vxm.js"],["../../chunk-vak164kx.js",1,9],["../../chunk-amsyqyh9.js",13,1,2,4,5,14,15,6,16,17,18,19,7,8,20,9],["../../chunk-czbcw9e1.js"],["../../chunk-8jv2g2ne.js",9,2,14,5,1],["../../chunk-qmbwp4k7.js",9,8,16,19,7,15,6,17,18,12],["../../chunk-vpvnvegz.js",8,9,7],["../../chunk-nhhgsdt3.js",9,8,19],["../../chunk-4jrq15v9.js",8,7],["../../chunk-je0j5sn4.js",9,8,20,7,19],["../../chunk-19jsevr8.js",9],["../../chunk-dsddmmdk.js",9]],0);
16
+ export {
17
+ Code2 as Code,
18
+ InlineCode2 as InlineCode
19
+ };
20
+
21
+ //# debugId=5F69FEAFCB52A31564756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "5F69FEAFCB52A31564756E2164756E21",
8
+ "names": []
9
+ }
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ export interface CollapsibleProps {
3
+ /** If true, the state is controlled externally */
4
+ open?: boolean;
5
+ /** Initial state for uncontrolled usage */
6
+ defaultOpen?: boolean;
7
+ /** Callback for when the state changes */
8
+ onOpenChange?: (open: boolean) => void;
9
+ /** Disables the trigger */
10
+ disabled?: boolean;
11
+ className?: string;
12
+ children: React.ReactNode;
13
+ }
14
+ export declare function Collapsible({ open: openProp, defaultOpen, onOpenChange, disabled, className, children, }: CollapsibleProps): React.JSX.Element;
15
+ export interface CollapsibleTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
16
+ asChild?: boolean;
17
+ }
18
+ export declare function CollapsibleTrigger({ asChild, className, children, onClick, ...props }: CollapsibleTriggerProps): React.JSX.Element;
19
+ export interface CollapsibleContentProps {
20
+ children: React.ReactNode;
21
+ className?: string;
22
+ collapsedHeight?: number | string;
23
+ animation?: 'default' | 'slide' | 'bounce' | 'fade';
24
+ }
25
+ export declare function CollapsibleContent({ children, className, collapsedHeight, animation, }: CollapsibleContentProps): React.JSX.Element;