themelia-react-ui 0.0.0-stage → 1.0.1

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 (1367) hide show
  1. package/CHANGELOG.md +116 -0
  2. package/LICENSE +21 -0
  3. package/README.md +282 -2
  4. package/THIRD_PARTY_NOTICES.md +65 -0
  5. package/dist/accordion-B-5Focs8.js +205 -0
  6. package/dist/accordion-B-5Focs8.js.map +1 -0
  7. package/dist/action-menu-Cx3SdfbN.js +265 -0
  8. package/dist/action-menu-Cx3SdfbN.js.map +1 -0
  9. package/dist/action-presentation.js +11 -0
  10. package/dist/action-presentation.js.map +1 -0
  11. package/dist/affordance-geometry.generated-D8Jcfb0G.js +32 -0
  12. package/dist/affordance-geometry.generated-D8Jcfb0G.js.map +1 -0
  13. package/dist/ai-artifact-B5tPpXnS.js +1121 -0
  14. package/dist/ai-artifact-B5tPpXnS.js.map +1 -0
  15. package/dist/anchored-positioning-DPnKTvNs.js +6 -0
  16. package/dist/anchored-positioning-DPnKTvNs.js.map +1 -0
  17. package/dist/app-shell-at8Kt4l_.js +235 -0
  18. package/dist/app-shell-at8Kt4l_.js.map +1 -0
  19. package/dist/attachment-BO2R47wn.js +244 -0
  20. package/dist/attachment-BO2R47wn.js.map +1 -0
  21. package/dist/auth-OFwWSAap.js +704 -0
  22. package/dist/auth-OFwWSAap.js.map +1 -0
  23. package/dist/avatar-Bpzty83c.js +178 -0
  24. package/dist/avatar-Bpzty83c.js.map +1 -0
  25. package/dist/badge-BZXZT9wd.js +92 -0
  26. package/dist/badge-BZXZT9wd.js.map +1 -0
  27. package/dist/base/accordion.js +3 -0
  28. package/dist/base/action-menu.js +3 -0
  29. package/dist/base/attachment.js +3 -0
  30. package/dist/base/avatar.js +3 -0
  31. package/dist/base/badge.js +3 -0
  32. package/dist/base/buttons.js +3 -0
  33. package/dist/base/cards.js +4 -0
  34. package/dist/base/carousel.js +251 -0
  35. package/dist/base/carousel.js.map +1 -0
  36. package/dist/base/cascader.js +361 -0
  37. package/dist/base/cascader.js.map +1 -0
  38. package/dist/base/chart.js +3 -0
  39. package/dist/base/choice-inputs.js +4 -0
  40. package/dist/base/code-block.js +3 -0
  41. package/dist/base/combobox.js +3 -0
  42. package/dist/base/command.js +3 -0
  43. package/dist/base/copyable.js +3 -0
  44. package/dist/base/date-pickers.js +4 -0
  45. package/dist/base/display.js +8 -0
  46. package/dist/base/feedback.js +5 -0
  47. package/dist/base/forms-numeric.js +3 -0
  48. package/dist/base/forms.js +4 -0
  49. package/dist/base/inline-edit.js +236 -0
  50. package/dist/base/inline-edit.js.map +1 -0
  51. package/dist/base/item.js +3 -0
  52. package/dist/base/media-gallery.js +3 -0
  53. package/dist/base/navigation.js +8 -0
  54. package/dist/base/popover-menu.js +3 -0
  55. package/dist/base/popover.js +3 -0
  56. package/dist/base/qr-code.js +63 -0
  57. package/dist/base/qr-code.js.map +1 -0
  58. package/dist/base/repeaters.js +620 -0
  59. package/dist/base/repeaters.js.map +1 -0
  60. package/dist/base/sheet.js +3 -0
  61. package/dist/base/sidebar.js +3 -0
  62. package/dist/base/signature-pad.js +364 -0
  63. package/dist/base/signature-pad.js.map +1 -0
  64. package/dist/base/skeleton.js +3 -0
  65. package/dist/base/spinner.js +3 -0
  66. package/dist/base/structure.js +3 -0
  67. package/dist/base/table.js +3 -0
  68. package/dist/base/text-inputs.js +4 -0
  69. package/dist/base/toaster.js +102 -0
  70. package/dist/base/toaster.js.map +1 -0
  71. package/dist/base/tree.js +3 -0
  72. package/dist/base/upload-queue.js +3 -0
  73. package/dist/base/upload.js +5 -0
  74. package/dist/base/value-inputs.js +3 -0
  75. package/dist/blocks/admin.js +478 -0
  76. package/dist/blocks/admin.js.map +1 -0
  77. package/dist/blocks/ai.js +1021 -0
  78. package/dist/blocks/ai.js.map +1 -0
  79. package/dist/blocks/analytics/usage-card.js +3 -0
  80. package/dist/blocks/analytics.js +1500 -0
  81. package/dist/blocks/analytics.js.map +1 -0
  82. package/dist/blocks/collaboration.js +3 -0
  83. package/dist/blocks/commerce/receipt.js +3 -0
  84. package/dist/blocks/commerce.js +3393 -0
  85. package/dist/blocks/commerce.js.map +1 -0
  86. package/dist/blocks/data-display.js +3 -0
  87. package/dist/blocks/onboarding.js +128 -0
  88. package/dist/blocks/onboarding.js.map +1 -0
  89. package/dist/blocks/planning.js +311 -0
  90. package/dist/blocks/planning.js.map +1 -0
  91. package/dist/blocks/timelines.js +3 -0
  92. package/dist/breadcrumbs-DdQ_I5ra.js +127 -0
  93. package/dist/breadcrumbs-DdQ_I5ra.js.map +1 -0
  94. package/dist/button-BS6l5JUw.js +47 -0
  95. package/dist/button-BS6l5JUw.js.map +1 -0
  96. package/dist/buttons-Co6GavvM.js +674 -0
  97. package/dist/buttons-Co6GavvM.js.map +1 -0
  98. package/dist/cards-Cum56XOF.js +66 -0
  99. package/dist/cards-Cum56XOF.js.map +1 -0
  100. package/dist/chart-DVfcwQu6.js +149 -0
  101. package/dist/chart-DVfcwQu6.js.map +1 -0
  102. package/dist/checkbox-BavDRjF7.js +34 -0
  103. package/dist/checkbox-BavDRjF7.js.map +1 -0
  104. package/dist/choice-inputs-CC7XqPQO.js +619 -0
  105. package/dist/choice-inputs-CC7XqPQO.js.map +1 -0
  106. package/dist/code-block-xHKbAJDj.js +183 -0
  107. package/dist/code-block-xHKbAJDj.js.map +1 -0
  108. package/dist/collapsible-DsnktFNv.js +81 -0
  109. package/dist/collapsible-DsnktFNv.js.map +1 -0
  110. package/dist/collection-content-C4fthJV_.js +53 -0
  111. package/dist/collection-content-C4fthJV_.js.map +1 -0
  112. package/dist/combobox-DEbdr-3u.js +273 -0
  113. package/dist/combobox-DEbdr-3u.js.map +1 -0
  114. package/dist/combobox-xv3yJbzl.js +850 -0
  115. package/dist/combobox-xv3yJbzl.js.map +1 -0
  116. package/dist/command-C0xe7u9B.js +421 -0
  117. package/dist/command-C0xe7u9B.js.map +1 -0
  118. package/dist/comments-DviPLnwy.js +1132 -0
  119. package/dist/comments-DviPLnwy.js.map +1 -0
  120. package/dist/component-vocabulary.js +26 -0
  121. package/dist/component-vocabulary.js.map +1 -0
  122. package/dist/components/base/accordion/accordion-variants.d.ts +36 -0
  123. package/dist/components/base/accordion/accordion.d.ts +20 -0
  124. package/dist/components/base/accordion/accordion.strings.d.ts +15 -0
  125. package/dist/components/base/accordion/accordion.types.d.ts +74 -0
  126. package/dist/components/base/accordion/index.d.ts +4 -0
  127. package/dist/components/base/accordion/smart-accordion.d.ts +7 -0
  128. package/dist/components/base/action-menu/action-menu.d.ts +147 -0
  129. package/dist/components/base/action-menu/action-menu.strings.d.ts +4 -0
  130. package/dist/components/base/action-menu/index.d.ts +11 -0
  131. package/dist/components/base/attachment/attachment.d.ts +17 -0
  132. package/dist/components/base/attachment/attachment.types.d.ts +49 -0
  133. package/dist/components/base/attachment/index.d.ts +2 -0
  134. package/dist/components/base/avatar/avatar.d.ts +24 -0
  135. package/dist/components/base/avatar/index.d.ts +14 -0
  136. package/dist/components/base/avatar/stacked-avatars.d.ts +39 -0
  137. package/dist/components/base/badge/badge.d.ts +22 -0
  138. package/dist/components/base/badge/badge.recipes.d.ts +20 -0
  139. package/dist/components/base/badge/index.d.ts +2 -0
  140. package/dist/components/base/buttons/base-button.d.ts +24 -0
  141. package/dist/components/base/buttons/button-group.d.ts +28 -0
  142. package/dist/components/base/buttons/button-group.recipes.d.ts +6 -0
  143. package/dist/components/base/buttons/button.d.ts +47 -0
  144. package/dist/components/base/buttons/button.recipes.d.ts +23 -0
  145. package/dist/components/base/buttons/button.variants.d.ts +8 -0
  146. package/dist/components/base/buttons/index.d.ts +7 -0
  147. package/dist/components/base/buttons/loader-button.d.ts +40 -0
  148. package/dist/components/base/buttons/text-button.d.ts +19 -0
  149. package/dist/components/base/buttons/tooltip-button.d.ts +7 -0
  150. package/dist/components/base/cards/card-actions.d.ts +41 -0
  151. package/dist/components/base/cards/card.recipes.d.ts +28 -0
  152. package/dist/components/base/cards/index.d.ts +5 -0
  153. package/dist/components/base/cards/partials/card-primitives.d.ts +21 -0
  154. package/dist/components/base/cards/partials/has-renderable-content.d.ts +8 -0
  155. package/dist/components/base/cards/partials/smart-card-actions-menu.d.ts +8 -0
  156. package/dist/components/base/cards/partials/smart-card-alert.d.ts +20 -0
  157. package/dist/components/base/cards/partials/smart-card-header-row.d.ts +33 -0
  158. package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +16 -0
  159. package/dist/components/base/cards/smart-card.d.ts +9 -0
  160. package/dist/components/base/cards/smart-card.strings.d.ts +18 -0
  161. package/dist/components/base/cards/smart-card.tokens.d.ts +44 -0
  162. package/dist/components/base/cards/smart-card.types.d.ts +146 -0
  163. package/dist/components/base/carousel/carousel.d.ts +105 -0
  164. package/dist/components/base/carousel/carousel.strings.d.ts +6 -0
  165. package/dist/components/base/carousel/index.d.ts +2 -0
  166. package/dist/components/base/cascader/cascader.d.ts +2 -0
  167. package/dist/components/base/cascader/cascader.types.d.ts +57 -0
  168. package/dist/components/base/cascader/index.d.ts +2 -0
  169. package/dist/components/base/chart/chart.d.ts +99 -0
  170. package/dist/components/base/chart/index.d.ts +9 -0
  171. package/dist/components/base/choice-inputs/card-checkbox-group.d.ts +27 -0
  172. package/dist/components/base/choice-inputs/card-radio-group.d.ts +19 -0
  173. package/dist/components/base/choice-inputs/checkbox.d.ts +17 -0
  174. package/dist/components/base/choice-inputs/choice-types.d.ts +57 -0
  175. package/dist/components/base/choice-inputs/index.d.ts +28 -0
  176. package/dist/components/base/choice-inputs/list-radio-group.d.ts +13 -0
  177. package/dist/components/base/choice-inputs/pill-radio-group.d.ts +27 -0
  178. package/dist/components/base/choice-inputs/select-popup.d.ts +26 -0
  179. package/dist/components/base/choice-inputs/select.d.ts +94 -0
  180. package/dist/components/base/choice-inputs/switch-card.d.ts +36 -0
  181. package/dist/components/base/choice-inputs/switch.d.ts +38 -0
  182. package/dist/components/base/choice-inputs/toggle-field.d.ts +41 -0
  183. package/dist/components/base/code-block/code-block.d.ts +3 -0
  184. package/dist/components/base/code-block/code-block.types.d.ts +46 -0
  185. package/dist/components/base/code-block/index.d.ts +2 -0
  186. package/dist/components/base/code-block/use-code-copy.d.ts +6 -0
  187. package/dist/components/base/combobox/index.d.ts +27 -0
  188. package/dist/components/base/command/command.d.ts +73 -0
  189. package/dist/components/base/command/index.d.ts +1 -0
  190. package/dist/components/base/copyable/copyable.d.ts +36 -0
  191. package/dist/components/base/copyable/index.d.ts +1 -0
  192. package/dist/components/base/date-pickers/date-picker-footer.d.ts +14 -0
  193. package/dist/components/base/date-pickers/date-picker-header.d.ts +10 -0
  194. package/dist/components/base/date-pickers/date-picker-helpers.d.ts +87 -0
  195. package/dist/components/base/date-pickers/date-picker-internals.d.ts +10 -0
  196. package/dist/components/base/date-pickers/date-picker-multiple.d.ts +20 -0
  197. package/dist/components/base/date-pickers/date-picker-range.d.ts +15 -0
  198. package/dist/components/base/date-pickers/date-picker-single.d.ts +15 -0
  199. package/dist/components/base/date-pickers/date-picker.d.ts +3 -0
  200. package/dist/components/base/date-pickers/date-picker.recipes.d.ts +18 -0
  201. package/dist/components/base/date-pickers/date-pickers.strings.d.ts +14 -0
  202. package/dist/components/base/date-pickers/datepicker.types.d.ts +285 -0
  203. package/dist/components/base/date-pickers/index.d.ts +7 -0
  204. package/dist/components/base/date-pickers/month-year-picker.d.ts +4 -0
  205. package/dist/components/base/date-pickers/time-picker.d.ts +70 -0
  206. package/dist/components/base/display/alert-dialog.d.ts +25 -0
  207. package/dist/components/base/display/boolean-indicator.d.ts +25 -0
  208. package/dist/components/base/display/collapsible.d.ts +21 -0
  209. package/dist/components/base/display/content-block.d.ts +73 -0
  210. package/dist/components/base/display/content-block.strings.d.ts +5 -0
  211. package/dist/components/base/display/date-block.d.ts +70 -0
  212. package/dist/components/base/display/dialog.d.ts +35 -0
  213. package/dist/components/base/display/icon-badge/icon-badge.d.ts +45 -0
  214. package/dist/components/base/display/icon-badge/index.d.ts +1 -0
  215. package/dist/components/base/display/icon-size.d.ts +5 -0
  216. package/dist/components/base/display/index.d.ts +31 -0
  217. package/dist/components/base/display/placeholder-pattern.d.ts +7 -0
  218. package/dist/components/base/display/scroll-area.d.ts +12 -0
  219. package/dist/components/base/display/separator.d.ts +10 -0
  220. package/dist/components/base/display/surface-title.d.ts +10 -0
  221. package/dist/components/base/display/tooltip.d.ts +28 -0
  222. package/dist/components/base/display/visually-hidden.d.ts +14 -0
  223. package/dist/components/base/feedback/alert.d.ts +49 -0
  224. package/dist/components/base/feedback/empty.d.ts +48 -0
  225. package/dist/components/base/feedback/index.d.ts +27 -0
  226. package/dist/components/base/feedback/progress.d.ts +81 -0
  227. package/dist/components/base/feedback/progress.strings.d.ts +5 -0
  228. package/dist/components/base/feedback/state-display.d.ts +39 -0
  229. package/dist/components/base/forms/controlled-form-field.d.ts +32 -0
  230. package/dist/components/base/forms/controlled-form-field.strings.d.ts +7 -0
  231. package/dist/components/base/forms/form-field.d.ts +38 -0
  232. package/dist/components/base/forms/form-sizing.d.ts +86 -0
  233. package/dist/components/base/forms/index.d.ts +4 -0
  234. package/dist/components/base/forms/operation-password-form.d.ts +16 -0
  235. package/dist/components/base/forms/workflow.d.ts +68 -0
  236. package/dist/components/base/forms-numeric/coordinates-input.d.ts +47 -0
  237. package/dist/components/base/forms-numeric/currency-input.d.ts +44 -0
  238. package/dist/components/base/forms-numeric/decimal-input.d.ts +53 -0
  239. package/dist/components/base/forms-numeric/dimensions-input.d.ts +79 -0
  240. package/dist/components/base/forms-numeric/index.d.ts +21 -0
  241. package/dist/components/base/forms-numeric/money-input.d.ts +67 -0
  242. package/dist/components/base/forms-numeric/money-input.strings.d.ts +6 -0
  243. package/dist/components/base/forms-numeric/percentage-input.d.ts +8 -0
  244. package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +12 -0
  245. package/dist/components/base/forms-numeric/weight-input.d.ts +54 -0
  246. package/dist/components/base/inline-edit/index.d.ts +2 -0
  247. package/dist/components/base/inline-edit/inline-edit.d.ts +81 -0
  248. package/dist/components/base/inline-edit/inline-edit.recipes.d.ts +6 -0
  249. package/dist/components/base/item/index.d.ts +2 -0
  250. package/dist/components/base/item/item.d.ts +12 -0
  251. package/dist/components/base/item/item.types.d.ts +100 -0
  252. package/dist/components/base/media-gallery/index.d.ts +2 -0
  253. package/dist/components/base/media-gallery/media-gallery.d.ts +45 -0
  254. package/dist/components/base/navigation/breadcrumbs.d.ts +37 -0
  255. package/dist/components/base/navigation/dropdown-menu.d.ts +45 -0
  256. package/dist/components/base/navigation/index.d.ts +21 -0
  257. package/dist/components/base/navigation/language-switcher.d.ts +12 -0
  258. package/dist/components/base/navigation/navigation-tabs.d.ts +40 -0
  259. package/dist/components/base/navigation/overflow-tab-bar.d.ts +43 -0
  260. package/dist/components/base/navigation/page-header/index.d.ts +1 -0
  261. package/dist/components/base/navigation/page-header/page-header.d.ts +88 -0
  262. package/dist/components/base/navigation/pagination.d.ts +61 -0
  263. package/dist/components/base/navigation/tab-scroll-viewport.d.ts +12 -0
  264. package/dist/components/base/navigation/tabs.d.ts +23 -0
  265. package/dist/components/base/popover/collection-content.d.ts +22 -0
  266. package/dist/components/base/popover/index.d.ts +1 -0
  267. package/dist/components/base/popover/popover.d.ts +54 -0
  268. package/dist/components/base/popover/popover.recipes.d.ts +29 -0
  269. package/dist/components/base/popover-menu/index.d.ts +3 -0
  270. package/dist/components/base/popover-menu/popover-menu.d.ts +82 -0
  271. package/dist/components/base/popover-menu/popover-menu.types.d.ts +30 -0
  272. package/dist/components/base/qr-code/index.d.ts +8 -0
  273. package/dist/components/base/qr-code/qr-code.d.ts +13 -0
  274. package/dist/components/base/repeaters/index.d.ts +21 -0
  275. package/dist/components/base/repeaters/key-value-editor.d.ts +27 -0
  276. package/dist/components/base/repeaters/localized-object-field.d.ts +35 -0
  277. package/dist/components/base/repeaters/localized-string-field.d.ts +25 -0
  278. package/dist/components/base/repeaters/localized-string-repeater.d.ts +44 -0
  279. package/dist/components/base/repeaters/object-repeater.d.ts +66 -0
  280. package/dist/components/base/repeaters/repeater.d.ts +87 -0
  281. package/dist/components/base/repeaters/repeaters.strings.d.ts +16 -0
  282. package/dist/components/base/repeaters/string-repeater.d.ts +65 -0
  283. package/dist/components/base/repeaters/string-repeater.utils.d.ts +2 -0
  284. package/dist/components/base/sheet/index.d.ts +1 -0
  285. package/dist/components/base/sheet/sheet.d.ts +35 -0
  286. package/dist/components/base/sidebar/index.d.ts +6 -0
  287. package/dist/components/base/sidebar/sidebar.d.ts +135 -0
  288. package/dist/components/base/signature-pad/index.d.ts +4 -0
  289. package/dist/components/base/signature-pad/signature-pad.d.ts +4 -0
  290. package/dist/components/base/signature-pad/signature-pad.types.d.ts +66 -0
  291. package/dist/components/base/signature-pad/signature-pad.utils.d.ts +8 -0
  292. package/dist/components/base/skeleton/index.d.ts +14 -0
  293. package/dist/components/base/skeleton/skeleton.d.ts +54 -0
  294. package/dist/components/base/spinner/index.d.ts +1 -0
  295. package/dist/components/base/spinner/spinner.d.ts +32 -0
  296. package/dist/components/base/structure/adaptive-grid.d.ts +3 -0
  297. package/dist/components/base/structure/grid-cell.d.ts +3 -0
  298. package/dist/components/base/structure/grid.d.ts +3 -0
  299. package/dist/components/base/structure/index.d.ts +5 -0
  300. package/dist/components/base/structure/stack.d.ts +3 -0
  301. package/dist/components/base/structure/structure.context.d.ts +6 -0
  302. package/dist/components/base/structure/structure.recipes.d.ts +33 -0
  303. package/dist/components/base/structure/structure.responsive.d.ts +5 -0
  304. package/dist/components/base/structure/structure.types.d.ts +51 -0
  305. package/dist/components/base/table/index.d.ts +18 -0
  306. package/dist/components/base/text-inputs/hooks/index.d.ts +1 -0
  307. package/dist/components/base/text-inputs/hooks/use-form-field-state.d.ts +48 -0
  308. package/dist/components/base/text-inputs/index.d.ts +21 -0
  309. package/dist/components/base/text-inputs/input-group.d.ts +46 -0
  310. package/dist/components/base/text-inputs/input.d.ts +45 -0
  311. package/dist/components/base/text-inputs/password-input.d.ts +28 -0
  312. package/dist/components/base/text-inputs/slug-field.d.ts +21 -0
  313. package/dist/components/base/text-inputs/textarea.d.ts +37 -0
  314. package/dist/components/base/toaster/index.d.ts +1 -0
  315. package/dist/components/base/toaster/toaster.d.ts +6 -0
  316. package/dist/components/base/tree/hierarchy.d.ts +11 -0
  317. package/dist/components/base/tree/index.d.ts +2 -0
  318. package/dist/components/base/tree/tree.d.ts +3 -0
  319. package/dist/components/base/tree/tree.types.d.ts +47 -0
  320. package/dist/components/base/upload/avatar-upload.d.ts +39 -0
  321. package/dist/components/base/upload/dropzone.d.ts +40 -0
  322. package/dist/components/base/upload/file-picker-input.d.ts +15 -0
  323. package/dist/components/base/upload/file-upload.d.ts +9 -0
  324. package/dist/components/base/upload/file-upload.strings.d.ts +18 -0
  325. package/dist/components/base/upload/file-upload.types.d.ts +68 -0
  326. package/dist/components/base/upload/file-upload.validation.d.ts +21 -0
  327. package/dist/components/base/upload/image-upload.d.ts +57 -0
  328. package/dist/components/base/upload/index.d.ts +26 -0
  329. package/dist/components/base/upload/use-file-drop-target.d.ts +22 -0
  330. package/dist/components/base/upload-queue/index.d.ts +3 -0
  331. package/dist/components/base/upload-queue/upload-progress-list.d.ts +55 -0
  332. package/dist/components/base/upload-queue/upload-tray.d.ts +46 -0
  333. package/dist/components/base/value-inputs/color-input.d.ts +26 -0
  334. package/dist/components/base/value-inputs/date-time-input.d.ts +19 -0
  335. package/dist/components/base/value-inputs/index.d.ts +25 -0
  336. package/dist/components/base/value-inputs/phone-input.d.ts +48 -0
  337. package/dist/components/base/value-inputs/slider.d.ts +59 -0
  338. package/dist/components/base/value-inputs/tags-input.d.ts +67 -0
  339. package/dist/components/blocks/admin/action-surfaces/index.d.ts +127 -0
  340. package/dist/components/blocks/admin/admin.strings.d.ts +11 -0
  341. package/dist/components/blocks/admin/api-key-list/api-key-list.d.ts +2 -0
  342. package/dist/components/blocks/admin/api-key-list/api-key-list.strings.d.ts +16 -0
  343. package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +58 -0
  344. package/dist/components/blocks/admin/api-key-list/index.d.ts +3 -0
  345. package/dist/components/blocks/admin/index.d.ts +4 -0
  346. package/dist/components/blocks/admin/role-permission/index.d.ts +2 -0
  347. package/dist/components/blocks/admin/role-permission/role-permission.d.ts +5 -0
  348. package/dist/components/blocks/admin/role-permission/types.d.ts +26 -0
  349. package/dist/components/blocks/ai/ai-agent/ai-agent.d.ts +5 -0
  350. package/dist/components/blocks/ai/ai-agent/index.d.ts +2 -0
  351. package/dist/components/blocks/ai/ai-agent/types.d.ts +30 -0
  352. package/dist/components/blocks/ai/ai-artifact/ai-artifact.d.ts +5 -0
  353. package/dist/components/blocks/ai/ai-artifact/index.d.ts +2 -0
  354. package/dist/components/blocks/ai/ai-artifact/types.d.ts +50 -0
  355. package/dist/components/blocks/ai/ai-attachment/ai-attachment.d.ts +5 -0
  356. package/dist/components/blocks/ai/ai-attachment/index.d.ts +2 -0
  357. package/dist/components/blocks/ai/ai-attachment/types.d.ts +35 -0
  358. package/dist/components/blocks/ai/ai-chain-of-thought/ai-chain-of-thought.d.ts +5 -0
  359. package/dist/components/blocks/ai/ai-chain-of-thought/index.d.ts +2 -0
  360. package/dist/components/blocks/ai/ai-chain-of-thought/types.d.ts +36 -0
  361. package/dist/components/blocks/ai/ai-citation/ai-citation.d.ts +5 -0
  362. package/dist/components/blocks/ai/ai-citation/index.d.ts +2 -0
  363. package/dist/components/blocks/ai/ai-citation/types.d.ts +38 -0
  364. package/dist/components/blocks/ai/ai-classification/ai-classification.d.ts +2 -0
  365. package/dist/components/blocks/ai/ai-classification/index.d.ts +2 -0
  366. package/dist/components/blocks/ai/ai-classification/types.d.ts +27 -0
  367. package/dist/components/blocks/ai/ai-code-block/ai-code-block.d.ts +6 -0
  368. package/dist/components/blocks/ai/ai-code-block/index.d.ts +2 -0
  369. package/dist/components/blocks/ai/ai-code-block/types.d.ts +38 -0
  370. package/dist/components/blocks/ai/ai-confidence/ai-confidence.d.ts +5 -0
  371. package/dist/components/blocks/ai/ai-confidence/index.d.ts +2 -0
  372. package/dist/components/blocks/ai/ai-confidence/types.d.ts +25 -0
  373. package/dist/components/blocks/ai/ai-confirmation/ai-confirmation.d.ts +5 -0
  374. package/dist/components/blocks/ai/ai-confirmation/index.d.ts +2 -0
  375. package/dist/components/blocks/ai/ai-confirmation/types.d.ts +40 -0
  376. package/dist/components/blocks/ai/ai-feedback/ai-feedback.d.ts +5 -0
  377. package/dist/components/blocks/ai/ai-feedback/index.d.ts +2 -0
  378. package/dist/components/blocks/ai/ai-feedback/types.d.ts +24 -0
  379. package/dist/components/blocks/ai/ai-file-tree/ai-file-tree.d.ts +5 -0
  380. package/dist/components/blocks/ai/ai-file-tree/index.d.ts +2 -0
  381. package/dist/components/blocks/ai/ai-file-tree/types.d.ts +59 -0
  382. package/dist/components/blocks/ai/ai-inline-citation/ai-inline-citation.d.ts +5 -0
  383. package/dist/components/blocks/ai/ai-inline-citation/index.d.ts +2 -0
  384. package/dist/components/blocks/ai/ai-inline-citation/types.d.ts +22 -0
  385. package/dist/components/blocks/ai/ai-message-bubble/ai-message-bubble.d.ts +6 -0
  386. package/dist/components/blocks/ai/ai-message-bubble/index.d.ts +2 -0
  387. package/dist/components/blocks/ai/ai-message-bubble/types.d.ts +35 -0
  388. package/dist/components/blocks/ai/ai-package-info/ai-package-info.d.ts +5 -0
  389. package/dist/components/blocks/ai/ai-package-info/index.d.ts +2 -0
  390. package/dist/components/blocks/ai/ai-package-info/types.d.ts +39 -0
  391. package/dist/components/blocks/ai/ai-prompt-suggestions/ai-prompt-suggestions.d.ts +5 -0
  392. package/dist/components/blocks/ai/ai-prompt-suggestions/index.d.ts +2 -0
  393. package/dist/components/blocks/ai/ai-prompt-suggestions/types.d.ts +26 -0
  394. package/dist/components/blocks/ai/ai-reasoning/ai-reasoning.d.ts +5 -0
  395. package/dist/components/blocks/ai/ai-reasoning/index.d.ts +2 -0
  396. package/dist/components/blocks/ai/ai-reasoning/types.d.ts +32 -0
  397. package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +5 -0
  398. package/dist/components/blocks/ai/ai-shimmer/index.d.ts +2 -0
  399. package/dist/components/blocks/ai/ai-shimmer/types.d.ts +11 -0
  400. package/dist/components/blocks/ai/ai-sources/ai-sources.d.ts +5 -0
  401. package/dist/components/blocks/ai/ai-sources/index.d.ts +2 -0
  402. package/dist/components/blocks/ai/ai-sources/types.d.ts +44 -0
  403. package/dist/components/blocks/ai/ai-summary/ai-summary.d.ts +2 -0
  404. package/dist/components/blocks/ai/ai-summary/index.d.ts +2 -0
  405. package/dist/components/blocks/ai/ai-summary/types.d.ts +32 -0
  406. package/dist/components/blocks/ai/ai-task/ai-task.d.ts +5 -0
  407. package/dist/components/blocks/ai/ai-task/index.d.ts +2 -0
  408. package/dist/components/blocks/ai/ai-task/types.d.ts +38 -0
  409. package/dist/components/blocks/ai/ai-token-usage/ai-token-usage.d.ts +5 -0
  410. package/dist/components/blocks/ai/ai-token-usage/index.d.ts +2 -0
  411. package/dist/components/blocks/ai/ai-token-usage/types.d.ts +22 -0
  412. package/dist/components/blocks/ai/ai-tool-call/ai-tool-call.d.ts +5 -0
  413. package/dist/components/blocks/ai/ai-tool-call/index.d.ts +2 -0
  414. package/dist/components/blocks/ai/ai-tool-call/types.d.ts +38 -0
  415. package/dist/components/blocks/ai/ai.strings.d.ts +36 -0
  416. package/dist/components/blocks/ai/index.d.ts +24 -0
  417. package/dist/components/blocks/ai/use-copy-feedback.d.ts +6 -0
  418. package/dist/components/blocks/analytics/activity-heatmap/activity-heatmap.d.ts +5 -0
  419. package/dist/components/blocks/analytics/activity-heatmap/index.d.ts +2 -0
  420. package/dist/components/blocks/analytics/activity-heatmap/types.d.ts +20 -0
  421. package/dist/components/blocks/analytics/analytics.strings.d.ts +35 -0
  422. package/dist/components/blocks/analytics/atoms/metric-skeleton.d.ts +13 -0
  423. package/dist/components/blocks/analytics/atoms/metric-sparkline.d.ts +15 -0
  424. package/dist/components/blocks/analytics/atoms/metric-trend-chip.d.ts +15 -0
  425. package/dist/components/blocks/analytics/chart-card/chart-card.d.ts +42 -0
  426. package/dist/components/blocks/analytics/chart-card/index.d.ts +1 -0
  427. package/dist/components/blocks/analytics/format-metric-value.d.ts +8 -0
  428. package/dist/components/blocks/analytics/index.d.ts +35 -0
  429. package/dist/components/blocks/analytics/metric/index.d.ts +1 -0
  430. package/dist/components/blocks/analytics/metric/metric.d.ts +28 -0
  431. package/dist/components/blocks/analytics/metric-bar/index.d.ts +1 -0
  432. package/dist/components/blocks/analytics/metric-bar/metric-bar.d.ts +22 -0
  433. package/dist/components/blocks/analytics/metric-comparison/index.d.ts +1 -0
  434. package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +26 -0
  435. package/dist/components/blocks/analytics/metric-gradient/index.d.ts +1 -0
  436. package/dist/components/blocks/analytics/metric-gradient/metric-gradient.d.ts +19 -0
  437. package/dist/components/blocks/analytics/metric-grid/index.d.ts +1 -0
  438. package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +33 -0
  439. package/dist/components/blocks/analytics/metric-micro-grid/index.d.ts +1 -0
  440. package/dist/components/blocks/analytics/metric-micro-grid/metric-micro-grid.d.ts +23 -0
  441. package/dist/components/blocks/analytics/time-ruler/index.d.ts +2 -0
  442. package/dist/components/blocks/analytics/time-ruler/time-ruler.d.ts +5 -0
  443. package/dist/components/blocks/analytics/time-ruler/types.d.ts +32 -0
  444. package/dist/components/blocks/analytics/types.d.ts +83 -0
  445. package/dist/components/blocks/analytics/usage-card/index.d.ts +3 -0
  446. package/dist/components/blocks/analytics/usage-card/types.d.ts +52 -0
  447. package/dist/components/blocks/analytics/usage-card/usage-card.d.ts +6 -0
  448. package/dist/components/blocks/analytics/usage-card/usage-card.data.d.ts +19 -0
  449. package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +22 -0
  450. package/dist/components/blocks/collaboration/index.d.ts +1 -0
  451. package/dist/components/blocks/collaboration/message/index.d.ts +2 -0
  452. package/dist/components/blocks/collaboration/message/message.d.ts +8 -0
  453. package/dist/components/blocks/collaboration/message/message.types.d.ts +30 -0
  454. package/dist/components/blocks/commerce/address-card/address-card.d.ts +5 -0
  455. package/dist/components/blocks/commerce/address-card/index.d.ts +2 -0
  456. package/dist/components/blocks/commerce/address-card/types.d.ts +43 -0
  457. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +12 -0
  458. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +36 -0
  459. package/dist/components/blocks/commerce/booking-calendar-event-card/index.d.ts +2 -0
  460. package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +5 -0
  461. package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -0
  462. package/dist/components/blocks/commerce/cart-summary/types.d.ts +53 -0
  463. package/dist/components/blocks/commerce/coupon-input/coupon-input.d.ts +5 -0
  464. package/dist/components/blocks/commerce/coupon-input/index.d.ts +2 -0
  465. package/dist/components/blocks/commerce/coupon-input/types.d.ts +35 -0
  466. package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +5 -0
  467. package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -0
  468. package/dist/components/blocks/commerce/discount-stack/types.d.ts +27 -0
  469. package/dist/components/blocks/commerce/format-signed-amount.d.ts +22 -0
  470. package/dist/components/blocks/commerce/giftcard-card/giftcard-card.d.ts +62 -0
  471. package/dist/components/blocks/commerce/giftcard-card/index.d.ts +2 -0
  472. package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-compact.d.ts +10 -0
  473. package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-copy-button.d.ts +9 -0
  474. package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-dark.d.ts +7 -0
  475. package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-full.d.ts +11 -0
  476. package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-illustrated.d.ts +10 -0
  477. package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-minimal.d.ts +10 -0
  478. package/dist/components/blocks/commerce/giftcard-card/types.d.ts +83 -0
  479. package/dist/components/blocks/commerce/index.d.ts +34 -0
  480. package/dist/components/blocks/commerce/inventory-level/index.d.ts +3 -0
  481. package/dist/components/blocks/commerce/inventory-level/inventory-level.d.ts +5 -0
  482. package/dist/components/blocks/commerce/inventory-level/inventory-level.strings.d.ts +10 -0
  483. package/dist/components/blocks/commerce/inventory-level/types.d.ts +20 -0
  484. package/dist/components/blocks/commerce/inventory-section/index.d.ts +2 -0
  485. package/dist/components/blocks/commerce/inventory-section/inventory-section.d.ts +5 -0
  486. package/dist/components/blocks/commerce/inventory-section/types.d.ts +105 -0
  487. package/dist/components/blocks/commerce/invoice-header/index.d.ts +2 -0
  488. package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +5 -0
  489. package/dist/components/blocks/commerce/invoice-header/types.d.ts +51 -0
  490. package/dist/components/blocks/commerce/invoice-line-items/index.d.ts +2 -0
  491. package/dist/components/blocks/commerce/invoice-line-items/invoice-line-items.d.ts +5 -0
  492. package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +64 -0
  493. package/dist/components/blocks/commerce/invoice-mini/index.d.ts +2 -0
  494. package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +5 -0
  495. package/dist/components/blocks/commerce/invoice-mini/types.d.ts +28 -0
  496. package/dist/components/blocks/commerce/loyalty-points/index.d.ts +2 -0
  497. package/dist/components/blocks/commerce/loyalty-points/loyalty-points.d.ts +5 -0
  498. package/dist/components/blocks/commerce/loyalty-points/types.d.ts +32 -0
  499. package/dist/components/blocks/commerce/order-status/index.d.ts +2 -0
  500. package/dist/components/blocks/commerce/order-status/order-status.d.ts +5 -0
  501. package/dist/components/blocks/commerce/order-status/types.d.ts +35 -0
  502. package/dist/components/blocks/commerce/order-timeline/index.d.ts +2 -0
  503. package/dist/components/blocks/commerce/order-timeline/order-timeline.d.ts +5 -0
  504. package/dist/components/blocks/commerce/order-timeline/types.d.ts +22 -0
  505. package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -0
  506. package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +5 -0
  507. package/dist/components/blocks/commerce/payment-method/types.d.ts +33 -0
  508. package/dist/components/blocks/commerce/payment-timeline/index.d.ts +2 -0
  509. package/dist/components/blocks/commerce/payment-timeline/payment-timeline.d.ts +5 -0
  510. package/dist/components/blocks/commerce/payment-timeline/types.d.ts +15 -0
  511. package/dist/components/blocks/commerce/receipt/index.d.ts +3 -0
  512. package/dist/components/blocks/commerce/receipt/receipt-items.d.ts +2 -0
  513. package/dist/components/blocks/commerce/receipt/receipt.d.ts +3 -0
  514. package/dist/components/blocks/commerce/receipt/types.d.ts +42 -0
  515. package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -0
  516. package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +5 -0
  517. package/dist/components/blocks/commerce/refund-status/types.d.ts +37 -0
  518. package/dist/components/blocks/commerce/seo-listing/index.d.ts +3 -0
  519. package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +5 -0
  520. package/dist/components/blocks/commerce/seo-listing/seo-listing-score.d.ts +5 -0
  521. package/dist/components/blocks/commerce/seo-listing/types.d.ts +92 -0
  522. package/dist/components/blocks/commerce/shipment-tracking/index.d.ts +2 -0
  523. package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +5 -0
  524. package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +44 -0
  525. package/dist/components/blocks/commerce/subscription-summary/index.d.ts +2 -0
  526. package/dist/components/blocks/commerce/subscription-summary/subscription-summary.d.ts +5 -0
  527. package/dist/components/blocks/commerce/subscription-summary/types.d.ts +39 -0
  528. package/dist/components/blocks/commerce/tax-breakdown/index.d.ts +2 -0
  529. package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +5 -0
  530. package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +34 -0
  531. package/dist/components/blocks/commerce/upcoming-booking/index.d.ts +2 -0
  532. package/dist/components/blocks/commerce/upcoming-booking/types.d.ts +29 -0
  533. package/dist/components/blocks/commerce/upcoming-booking/upcoming-booking.d.ts +5 -0
  534. package/dist/components/blocks/commerce/vendor-profile/index.d.ts +3 -0
  535. package/dist/components/blocks/commerce/vendor-profile/types.d.ts +86 -0
  536. package/dist/components/blocks/commerce/vendor-profile/vendor-profile.d.ts +2 -0
  537. package/dist/components/blocks/commerce/voucher-entry/index.d.ts +2 -0
  538. package/dist/components/blocks/commerce/voucher-entry/types.d.ts +33 -0
  539. package/dist/components/blocks/commerce/voucher-entry/voucher-entry.d.ts +5 -0
  540. package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +6 -0
  541. package/dist/components/blocks/data-display/dense-info-card/helpers.d.ts +19 -0
  542. package/dist/components/blocks/data-display/dense-info-card/index.d.ts +7 -0
  543. package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-classification.d.ts +5 -0
  544. package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-dashboard.d.ts +5 -0
  545. package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-financial.d.ts +5 -0
  546. package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-project.d.ts +5 -0
  547. package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-score.d.ts +5 -0
  548. package/dist/components/blocks/data-display/dense-info-card/types.d.ts +183 -0
  549. package/dist/components/blocks/data-display/empty-state/empty-state.d.ts +2 -0
  550. package/dist/components/blocks/data-display/empty-state/empty-state.strings.d.ts +19 -0
  551. package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +86 -0
  552. package/dist/components/blocks/data-display/empty-state/index.d.ts +5 -0
  553. package/dist/components/blocks/data-display/empty-state/partials/illustrations/document-stack.d.ts +9 -0
  554. package/dist/components/blocks/data-display/empty-state/partials/illustrations/inbox-clean.d.ts +9 -0
  555. package/dist/components/blocks/data-display/empty-state/partials/illustrations/index.d.ts +25 -0
  556. package/dist/components/blocks/data-display/empty-state/partials/illustrations/search-glass.d.ts +9 -0
  557. package/dist/components/blocks/data-display/empty-state/partials/illustrations/stacked-cards.d.ts +11 -0
  558. package/dist/components/blocks/data-display/empty-state/partials/illustrations/types.d.ts +4 -0
  559. package/dist/components/blocks/data-display/empty-state/partials/illustrations/users-circle.d.ts +9 -0
  560. package/dist/components/blocks/data-display/index.d.ts +6 -0
  561. package/dist/components/blocks/data-display/inline-stat/index.d.ts +1 -0
  562. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +35 -0
  563. package/dist/components/blocks/data-display/metadata/index.d.ts +4 -0
  564. package/dist/components/blocks/data-display/metadata/metadata-list.d.ts +78 -0
  565. package/dist/components/blocks/data-display/metadata/metadata-list.strings.d.ts +18 -0
  566. package/dist/components/blocks/data-display/metadata/metadata-value.d.ts +142 -0
  567. package/dist/components/blocks/data-display/relationship-card-frame.d.ts +40 -0
  568. package/dist/components/blocks/onboarding/checklist/checklist.d.ts +2 -0
  569. package/dist/components/blocks/onboarding/checklist/checklist.strings.d.ts +15 -0
  570. package/dist/components/blocks/onboarding/checklist/checklist.types.d.ts +64 -0
  571. package/dist/components/blocks/onboarding/checklist/index.d.ts +4 -0
  572. package/dist/components/blocks/onboarding/checklist/partials/step-status-indicator.d.ts +12 -0
  573. package/dist/components/blocks/onboarding/index.d.ts +7 -0
  574. package/dist/components/blocks/planning/index.d.ts +3 -0
  575. package/dist/components/blocks/planning/task-card.d.ts +3 -0
  576. package/dist/components/blocks/planning/task-card.strings.d.ts +15 -0
  577. package/dist/components/blocks/planning/task-card.types.d.ts +66 -0
  578. package/dist/components/blocks/timelines/changelog/changelog-timeline.d.ts +5 -0
  579. package/dist/components/blocks/timelines/changelog/index.d.ts +2 -0
  580. package/dist/components/blocks/timelines/changelog/types.d.ts +33 -0
  581. package/dist/components/blocks/timelines/index.d.ts +5 -0
  582. package/dist/components/blocks/timelines/milestones/index.d.ts +2 -0
  583. package/dist/components/blocks/timelines/milestones/milestones-timeline.d.ts +5 -0
  584. package/dist/components/blocks/timelines/milestones/types.d.ts +32 -0
  585. package/dist/components/blocks/timelines/shared/index.d.ts +1 -0
  586. package/dist/components/blocks/timelines/shared/timeline.d.ts +40 -0
  587. package/dist/components/blocks/timelines/steps-card/index.d.ts +2 -0
  588. package/dist/components/blocks/timelines/steps-card/steps-card.d.ts +9 -0
  589. package/dist/components/blocks/timelines/steps-card/types.d.ts +38 -0
  590. package/dist/components/features/activities/activities-feed.d.ts +5 -0
  591. package/dist/components/features/activities/activities.config.d.ts +6 -0
  592. package/dist/components/features/activities/activities.strings.d.ts +38 -0
  593. package/dist/components/features/activities/activities.types.d.ts +431 -0
  594. package/dist/components/features/activities/activity-event-adapter.d.ts +38 -0
  595. package/dist/components/features/activities/activity-log.d.ts +6 -0
  596. package/dist/components/features/activities/hooks/index.d.ts +2 -0
  597. package/dist/components/features/activities/hooks/use-activity-feed.d.ts +44 -0
  598. package/dist/components/features/activities/hooks/use-activity-resources.d.ts +22 -0
  599. package/dist/components/features/activities/index.d.ts +8 -0
  600. package/dist/components/features/activities/partials/activity-actions-menu.d.ts +11 -0
  601. package/dist/components/features/activities/partials/activity-changes.d.ts +8 -0
  602. package/dist/components/features/activities/partials/activity-date-label.d.ts +9 -0
  603. package/dist/components/features/activities/partials/activity-empty-state.d.ts +9 -0
  604. package/dist/components/features/activities/partials/activity-headline.d.ts +20 -0
  605. package/dist/components/features/activities/partials/activity-marker.d.ts +25 -0
  606. package/dist/components/features/activities/partials/activity-resource-tag.d.ts +11 -0
  607. package/dist/components/features/activities/partials/activity-row.d.ts +68 -0
  608. package/dist/components/features/activities/partials/index.d.ts +8 -0
  609. package/dist/components/features/activities/partials/tone-tokens.d.ts +25 -0
  610. package/dist/components/features/ai-chat/ai-chat.d.ts +81 -0
  611. package/dist/components/features/ai-chat/ai-chat.strings.d.ts +56 -0
  612. package/dist/components/features/ai-chat/ai-chat.types.d.ts +170 -0
  613. package/dist/components/features/ai-chat/hooks/index.d.ts +1 -0
  614. package/dist/components/features/ai-chat/hooks/use-ai-chat-scroll.d.ts +15 -0
  615. package/dist/components/features/ai-chat/index.d.ts +5 -0
  616. package/dist/components/features/ai-chat/partials/ai-chat-attachments-strip.d.ts +15 -0
  617. package/dist/components/features/ai-chat/partials/ai-chat-conversation.d.ts +28 -0
  618. package/dist/components/features/ai-chat/partials/ai-chat-empty-state.d.ts +22 -0
  619. package/dist/components/features/ai-chat/partials/ai-chat-message.d.ts +21 -0
  620. package/dist/components/features/ai-chat/partials/ai-chat-prompt-input.d.ts +59 -0
  621. package/dist/components/features/ai-chat/partials/ai-chat-queue.d.ts +19 -0
  622. package/dist/components/features/ai-chat/partials/ai-chat-suggestions-row.d.ts +18 -0
  623. package/dist/components/features/ai-chat/partials/index.d.ts +7 -0
  624. package/dist/components/features/async-preview/async-preview.d.ts +84 -0
  625. package/dist/components/features/async-preview/async-preview.strings.d.ts +14 -0
  626. package/dist/components/features/async-preview/async-preview.types.d.ts +133 -0
  627. package/dist/components/features/async-preview/hooks/index.d.ts +1 -0
  628. package/dist/components/features/async-preview/hooks/use-async-preview.d.ts +8 -0
  629. package/dist/components/features/async-preview/index.d.ts +6 -0
  630. package/dist/components/features/async-preview/partials/index.d.ts +1 -0
  631. package/dist/components/features/async-preview/preview-trigger-cell.d.ts +45 -0
  632. package/dist/components/features/combobox/async-resource-combobox.d.ts +94 -0
  633. package/dist/components/features/combobox/combobox.d.ts +20 -0
  634. package/dist/components/features/combobox/combobox.strings.d.ts +14 -0
  635. package/dist/components/features/combobox/components/combobox-dropdown.d.ts +57 -0
  636. package/dist/components/features/combobox/components/error-message.d.ts +15 -0
  637. package/dist/components/features/combobox/components/highlighted-text.d.ts +14 -0
  638. package/dist/components/features/combobox/components/index.d.ts +13 -0
  639. package/dist/components/features/combobox/components/loading-more.d.ts +15 -0
  640. package/dist/components/features/combobox/components/status-content.d.ts +21 -0
  641. package/dist/components/features/combobox/constants.d.ts +19 -0
  642. package/dist/components/features/combobox/hooks/index.d.ts +2 -0
  643. package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +30 -0
  644. package/dist/components/features/combobox/hooks/use-debounced-search.d.ts +10 -0
  645. package/dist/components/features/combobox/hooks/use-grouped-items.d.ts +9 -0
  646. package/dist/components/features/combobox/hooks/use-load-more.d.ts +12 -0
  647. package/dist/components/features/combobox/index.d.ts +13 -0
  648. package/dist/components/features/combobox/types.d.ts +184 -0
  649. package/dist/components/features/comments/comments-provider.d.ts +15 -0
  650. package/dist/components/features/comments/comments.d.ts +2 -0
  651. package/dist/components/features/comments/comments.strings.d.ts +91 -0
  652. package/dist/components/features/comments/comments.types.d.ts +369 -0
  653. package/dist/components/features/comments/hooks/index.d.ts +4 -0
  654. package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +28 -0
  655. package/dist/components/features/comments/hooks/use-comments.d.ts +34 -0
  656. package/dist/components/features/comments/index.d.ts +8 -0
  657. package/dist/components/features/comments/partials/comment-attachment-chip.d.ts +23 -0
  658. package/dist/components/features/comments/partials/comment-composer.d.ts +12 -0
  659. package/dist/components/features/comments/partials/comment-content.d.ts +13 -0
  660. package/dist/components/features/comments/partials/comment-empty.d.ts +12 -0
  661. package/dist/components/features/comments/partials/comment-item.d.ts +3 -0
  662. package/dist/components/features/comments/partials/comment-timeline.d.ts +3 -0
  663. package/dist/components/features/comments/partials/index.d.ts +9 -0
  664. package/dist/components/features/data-view/data-view-filtering.d.ts +3 -0
  665. package/dist/components/features/data-view/data-view.d.ts +7 -0
  666. package/dist/components/features/data-view/data-view.strings.d.ts +9 -0
  667. package/dist/components/features/data-view/data-view.types.d.ts +191 -0
  668. package/dist/components/features/data-view/hooks/index.d.ts +1 -0
  669. package/dist/components/features/data-view/hooks/use-data-view.d.ts +2 -0
  670. package/dist/components/features/data-view/index.d.ts +4 -0
  671. package/dist/components/features/email-composer/document.d.ts +8 -0
  672. package/dist/components/features/email-composer/email-composer.d.ts +2 -0
  673. package/dist/components/features/email-composer/email-html.d.ts +5 -0
  674. package/dist/components/features/email-composer/engine.d.ts +18 -0
  675. package/dist/components/features/email-composer/http.d.ts +6 -0
  676. package/dist/components/features/email-composer/index.d.ts +6 -0
  677. package/dist/components/features/email-composer/partials/body-editor.d.ts +11 -0
  678. package/dist/components/features/email-composer/partials/data-status.d.ts +8 -0
  679. package/dist/components/features/email-composer/partials/html-preview.d.ts +6 -0
  680. package/dist/components/features/email-composer/partials/recipients.d.ts +14 -0
  681. package/dist/components/features/email-composer/partials/variables.d.ts +11 -0
  682. package/dist/components/features/email-composer/strings.d.ts +79 -0
  683. package/dist/components/features/email-composer/types.d.ts +195 -0
  684. package/dist/components/features/email-composer/use-composer.d.ts +119 -0
  685. package/dist/components/features/event-calendar/colors.d.ts +29 -0
  686. package/dist/components/features/event-calendar/event-calendar-day-cell.d.ts +5 -0
  687. package/dist/components/features/event-calendar/event-calendar-event-badge.d.ts +5 -0
  688. package/dist/components/features/event-calendar/event-calendar-event-card.d.ts +16 -0
  689. package/dist/components/features/event-calendar/event-calendar-header.d.ts +8 -0
  690. package/dist/components/features/event-calendar/event-calendar-legend.d.ts +5 -0
  691. package/dist/components/features/event-calendar/event-calendar.d.ts +5 -0
  692. package/dist/components/features/event-calendar/event-calendar.types.d.ts +350 -0
  693. package/dist/components/features/event-calendar/index.d.ts +11 -0
  694. package/dist/components/features/event-calendar/use-event-calendar-data.d.ts +15 -0
  695. package/dist/components/features/event-calendar/use-event-calendar.d.ts +24 -0
  696. package/dist/components/features/filters/facets/async-select-facet.d.ts +28 -0
  697. package/dist/components/features/filters/facets/date-facet.d.ts +18 -0
  698. package/dist/components/features/filters/facets/range-facet.d.ts +30 -0
  699. package/dist/components/features/filters/facets/search-facet.d.ts +27 -0
  700. package/dist/components/features/filters/facets/select-facet.d.ts +19 -0
  701. package/dist/components/features/filters/facets/tags-facet.d.ts +27 -0
  702. package/dist/components/features/filters/filter-context.d.ts +61 -0
  703. package/dist/components/features/filters/filter-layout.d.ts +16 -0
  704. package/dist/components/features/filters/filter-query.d.ts +21 -0
  705. package/dist/components/features/filters/filters.strings.d.ts +103 -0
  706. package/dist/components/features/filters/filters.types.d.ts +222 -0
  707. package/dist/components/features/filters/hooks/index.d.ts +3 -0
  708. package/dist/components/features/filters/hooks/use-async-options.d.ts +16 -0
  709. package/dist/components/features/filters/hooks/use-filter-groups.d.ts +16 -0
  710. package/dist/components/features/filters/index.d.ts +42 -0
  711. package/dist/components/features/filters/operator-options.d.ts +9 -0
  712. package/dist/components/features/filters/partials/active-filter-item.d.ts +37 -0
  713. package/dist/components/features/filters/partials/async-filter-content.d.ts +21 -0
  714. package/dist/components/features/filters/partials/date-filter-content.d.ts +14 -0
  715. package/dist/components/features/filters/partials/filter-error-boundary.d.ts +9 -0
  716. package/dist/components/features/filters/partials/filter-list-content.d.ts +24 -0
  717. package/dist/components/features/filters/partials/filter-list-item.d.ts +19 -0
  718. package/dist/components/features/filters/partials/filter-operator-select.d.ts +22 -0
  719. package/dist/components/features/filters/partials/filter-pill.d.ts +26 -0
  720. package/dist/components/features/filters/partials/filter-popover-content.d.ts +36 -0
  721. package/dist/components/features/filters/partials/filter-tabs.d.ts +14 -0
  722. package/dist/components/features/filters/partials/filter-value-display.d.ts +21 -0
  723. package/dist/components/features/filters/partials/filters-button.d.ts +32 -0
  724. package/dist/components/features/filters/partials/index.d.ts +14 -0
  725. package/dist/components/features/filters/partials/regular-filter-content.d.ts +28 -0
  726. package/dist/components/features/filters/partials/search-filters-list.d.ts +25 -0
  727. package/dist/components/features/filters/partials/tags-filter-content.d.ts +28 -0
  728. package/dist/components/features/filters/utils/filter-utils.d.ts +37 -0
  729. package/dist/components/features/filters/validators.d.ts +63 -0
  730. package/dist/components/features/global-search/global-search-dialog.d.ts +13 -0
  731. package/dist/components/features/global-search/global-search.d.ts +52 -0
  732. package/dist/components/features/global-search/global-search.strings.d.ts +36 -0
  733. package/dist/components/features/global-search/global-search.types.d.ts +105 -0
  734. package/dist/components/features/global-search/hooks/index.d.ts +2 -0
  735. package/dist/components/features/global-search/hooks/use-global-search.d.ts +33 -0
  736. package/dist/components/features/global-search/index.d.ts +9 -0
  737. package/dist/components/features/global-search/partials/global-search-empty-state.d.ts +7 -0
  738. package/dist/components/features/global-search/partials/global-search-footer.d.ts +13 -0
  739. package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +12 -0
  740. package/dist/components/features/global-search/partials/global-search-input.d.ts +17 -0
  741. package/dist/components/features/global-search/partials/global-search-result-row.d.ts +16 -0
  742. package/dist/components/features/global-search/partials/global-search-tabs.d.ts +13 -0
  743. package/dist/components/features/global-search/partials/index.d.ts +12 -0
  744. package/dist/components/features/global-search/partials/tone-palettes.d.ts +8 -0
  745. package/dist/components/features/kanban/hooks/index.d.ts +1 -0
  746. package/dist/components/features/kanban/hooks/use-kanban.d.ts +32 -0
  747. package/dist/components/features/kanban/index.d.ts +5 -0
  748. package/dist/components/features/kanban/kanban-context.d.ts +25 -0
  749. package/dist/components/features/kanban/kanban-keyboard.d.ts +10 -0
  750. package/dist/components/features/kanban/kanban.d.ts +38 -0
  751. package/dist/components/features/kanban/kanban.strings.d.ts +24 -0
  752. package/dist/components/features/kanban/kanban.types.d.ts +168 -0
  753. package/dist/components/features/map/index.d.ts +13 -0
  754. package/dist/components/features/map/map.d.ts +166 -0
  755. package/dist/components/features/map/place-autocomplete.d.ts +97 -0
  756. package/dist/components/features/map/public-leaflet.types.d.ts +71 -0
  757. package/dist/components/features/map/use-map-color-scheme.d.ts +2 -0
  758. package/dist/components/features/media-library/hooks/index.d.ts +1 -0
  759. package/dist/components/features/media-library/hooks/use-media-library.d.ts +5 -0
  760. package/dist/components/features/media-library/index.d.ts +6 -0
  761. package/dist/components/features/media-library/media-library.d.ts +3 -0
  762. package/dist/components/features/media-library/media-library.strings.d.ts +124 -0
  763. package/dist/components/features/media-library/media-library.types.d.ts +568 -0
  764. package/dist/components/features/media-library/media-resource-gallery.d.ts +2 -0
  765. package/dist/components/features/media-library/partials/index.d.ts +1 -0
  766. package/dist/components/features/media-library/partials/media-library-partials.d.ts +10 -0
  767. package/dist/components/features/mentions/hooks/index.d.ts +2 -0
  768. package/dist/components/features/mentions/hooks/use-mentions-search.d.ts +41 -0
  769. package/dist/components/features/mentions/hooks/use-mentions.d.ts +35 -0
  770. package/dist/components/features/mentions/index.d.ts +5 -0
  771. package/dist/components/features/mentions/mentions.strings.d.ts +26 -0
  772. package/dist/components/features/mentions/mentions.types.d.ts +100 -0
  773. package/dist/components/features/mentions/partials/index.d.ts +4 -0
  774. package/dist/components/features/mentions/partials/mention-chip.d.ts +29 -0
  775. package/dist/components/features/mentions/partials/mention-content.d.ts +22 -0
  776. package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +36 -0
  777. package/dist/components/features/mentions/partials/mention-picker.d.ts +31 -0
  778. package/dist/components/features/mentions/utils/build-mention-html.d.ts +24 -0
  779. package/dist/components/features/mentions/utils/index.d.ts +3 -0
  780. package/dist/components/features/mentions/utils/parse-mentions-from-html.d.ts +13 -0
  781. package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +16 -0
  782. package/dist/components/features/overlays/alert-dialog.d.ts +4 -0
  783. package/dist/components/features/overlays/dialog.d.ts +4 -0
  784. package/dist/components/features/overlays/drawer.d.ts +4 -0
  785. package/dist/components/features/overlays/hooks/index.d.ts +2 -0
  786. package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +24 -0
  787. package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +36 -0
  788. package/dist/components/features/overlays/index.d.ts +6 -0
  789. package/dist/components/features/overlays/overlays.strings.d.ts +19 -0
  790. package/dist/components/features/overlays/overlays.types.d.ts +169 -0
  791. package/dist/components/features/products/components/index.d.ts +17 -0
  792. package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
  793. package/dist/components/features/products/components/product-details-card.d.ts +5 -0
  794. package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
  795. package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
  796. package/dist/components/features/products/components/product-options-matrix.d.ts +5 -0
  797. package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
  798. package/dist/components/features/products/components/product-overview.d.ts +5 -0
  799. package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
  800. package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
  801. package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
  802. package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
  803. package/dist/components/features/products/components/product-variant-action-menu.d.ts +5 -0
  804. package/dist/components/features/products/components/product-variant-details.d.ts +5 -0
  805. package/dist/components/features/products/components/product-variant-editor.d.ts +5 -0
  806. package/dist/components/features/products/components/product-variants-bulk-table.d.ts +5 -0
  807. package/dist/components/features/products/components/product-variants-manager.d.ts +5 -0
  808. package/dist/components/features/products/components/product-variants-table.d.ts +5 -0
  809. package/dist/components/features/products/index.d.ts +3 -0
  810. package/dist/components/features/products/partials/index.d.ts +7 -0
  811. package/dist/components/features/products/partials/product-actions.d.ts +10 -0
  812. package/dist/components/features/products/partials/product-empty-state.d.ts +10 -0
  813. package/dist/components/features/products/partials/product-metric-tile.d.ts +4 -0
  814. package/dist/components/features/products/partials/product-rows.d.ts +35 -0
  815. package/dist/components/features/products/partials/product-tone.d.ts +8 -0
  816. package/dist/components/features/products/partials/product-values.d.ts +1 -0
  817. package/dist/components/features/products/partials/product-variant-table-parts.d.ts +28 -0
  818. package/dist/components/features/products/products.strings.d.ts +308 -0
  819. package/dist/components/features/products/products.types.d.ts +906 -0
  820. package/dist/components/features/questionnaire/index.d.ts +3 -0
  821. package/dist/components/features/questionnaire/questionnaire-control.d.ts +3 -0
  822. package/dist/components/features/questionnaire/questionnaire.d.ts +2 -0
  823. package/dist/components/features/questionnaire/questionnaire.types.d.ts +98 -0
  824. package/dist/components/features/questionnaire/questionnaire.utils.d.ts +5 -0
  825. package/dist/components/features/resource/index.d.ts +3 -0
  826. package/dist/components/features/resource/resource.d.ts +8 -0
  827. package/dist/components/features/resource/resource.strings.d.ts +12 -0
  828. package/dist/components/features/resource/resource.types.d.ts +161 -0
  829. package/dist/components/features/resource-assignment/hooks/index.d.ts +2 -0
  830. package/dist/components/features/resource-assignment/hooks/use-shared-resource-card.d.ts +32 -0
  831. package/dist/components/features/resource-assignment/index.d.ts +6 -0
  832. package/dist/components/features/resource-assignment/partials/default-shared-resource-partials.d.ts +31 -0
  833. package/dist/components/features/resource-assignment/partials/index.d.ts +1 -0
  834. package/dist/components/features/resource-assignment/resource-assignment.d.ts +12 -0
  835. package/dist/components/features/resource-assignment/resource-assignment.strings.d.ts +17 -0
  836. package/dist/components/features/resource-assignment/resource-assignment.types.d.ts +193 -0
  837. package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts +6 -0
  838. package/dist/components/features/rich-text-editor/index.d.ts +5 -0
  839. package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +28 -0
  840. package/dist/components/features/rich-text-editor/partials/counts-footer.d.ts +32 -0
  841. package/dist/components/features/rich-text-editor/partials/html-helpers.d.ts +7 -0
  842. package/dist/components/features/rich-text-editor/partials/index.d.ts +7 -0
  843. package/dist/components/features/rich-text-editor/partials/rich-text-editor-fallback.d.ts +8 -0
  844. package/dist/components/features/rich-text-editor/partials/rich-text-editor-tiptap.d.ts +3 -0
  845. package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +33 -0
  846. package/dist/components/features/rich-text-editor/rich-text-editor.d.ts +3 -0
  847. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +6 -0
  848. package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +32 -0
  849. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +111 -0
  850. package/dist/components/features/schema-form/hooks/index.d.ts +1 -0
  851. package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +23 -0
  852. package/dist/components/features/schema-form/index.d.ts +5 -0
  853. package/dist/components/features/schema-form/partials/index.d.ts +3 -0
  854. package/dist/components/features/schema-form/partials/schema-form-actions.d.ts +23 -0
  855. package/dist/components/features/schema-form/partials/schema-form-empty.d.ts +12 -0
  856. package/dist/components/features/schema-form/partials/schema-form-field.d.ts +12 -0
  857. package/dist/components/features/schema-form/schema-form.d.ts +5 -0
  858. package/dist/components/features/schema-form/schema-form.strings.d.ts +11 -0
  859. package/dist/components/features/schema-form/schema-form.types.d.ts +271 -0
  860. package/dist/components/features/schema-form/schema-form.utils.d.ts +18 -0
  861. package/dist/components/features/suggestions/hooks/index.d.ts +1 -0
  862. package/dist/components/features/suggestions/hooks/use-suggestions.d.ts +9 -0
  863. package/dist/components/features/suggestions/index.d.ts +4 -0
  864. package/dist/components/features/suggestions/suggestions.d.ts +5 -0
  865. package/dist/components/features/suggestions/suggestions.strings.d.ts +16 -0
  866. package/dist/components/features/suggestions/suggestions.types.d.ts +79 -0
  867. package/dist/components/features/sync/index.d.ts +3 -0
  868. package/dist/components/features/sync/sync-range-dialog-form.d.ts +5 -0
  869. package/dist/components/features/sync/sync.strings.d.ts +18 -0
  870. package/dist/components/features/sync/sync.types.d.ts +44 -0
  871. package/dist/components/features/table/column-visibility-toggle.d.ts +5 -0
  872. package/dist/components/features/table/data-table.d.ts +6 -0
  873. package/dist/components/features/table/filter-bar.d.ts +5 -0
  874. package/dist/components/features/table/hooks.d.ts +47 -0
  875. package/dist/components/features/table/index.d.ts +16 -0
  876. package/dist/components/features/table/pagination.d.ts +5 -0
  877. package/dist/components/features/table/partials/cell-renderers.d.ts +141 -0
  878. package/dist/components/features/table/partials/cell-value.d.ts +121 -0
  879. package/dist/components/features/table/partials/fullscreen-toggle.d.ts +16 -0
  880. package/dist/components/features/table/partials/resource-cell.d.ts +63 -0
  881. package/dist/components/features/table/partials/table-link.d.ts +3 -0
  882. package/dist/components/features/table/table-actions.d.ts +5 -0
  883. package/dist/components/features/table/table-body.d.ts +5 -0
  884. package/dist/components/features/table/table-header.d.ts +6 -0
  885. package/dist/components/features/table/table-helpers.d.ts +39 -0
  886. package/dist/components/features/table/table-toolbar.d.ts +5 -0
  887. package/dist/components/features/table/table.strings.d.ts +3 -0
  888. package/dist/components/features/table/table.types.d.ts +489 -0
  889. package/dist/components/features/theme-tweaker/admin-ui-theme-provider.d.ts +6 -0
  890. package/dist/components/features/theme-tweaker/index.d.ts +10 -0
  891. package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +49 -0
  892. package/dist/components/features/theme-tweaker/theme-scope.d.ts +7 -0
  893. package/dist/components/features/theme-tweaker/theme-tweaker.d.ts +2 -0
  894. package/dist/components/features/theme-tweaker/theme-tweaker.fields.d.ts +7 -0
  895. package/dist/components/features/theme-tweaker/theme-tweaker.recipes.d.ts +25 -0
  896. package/dist/components/features/theme-tweaker/theme-tweaker.strings.d.ts +75 -0
  897. package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +161 -0
  898. package/dist/components/features/theme-tweaker/theme-tweaker.utils.d.ts +23 -0
  899. package/dist/components/features/theme-tweaker/use-applied-theme.d.ts +11 -0
  900. package/dist/components/layout/app-shell/app-layout.d.ts +12 -0
  901. package/dist/components/layout/app-shell/app-shell.types.d.ts +151 -0
  902. package/dist/components/layout/app-shell/index.d.ts +6 -0
  903. package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +2 -0
  904. package/dist/components/layout/app-shell/stacked-layout.d.ts +2 -0
  905. package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +2 -0
  906. package/dist/components/layout/auth/auth-card.d.ts +2 -0
  907. package/dist/components/layout/auth/auth-footer-links.d.ts +2 -0
  908. package/dist/components/layout/auth/auth-form.d.ts +11 -0
  909. package/dist/components/layout/auth/auth-hooks.d.ts +4 -0
  910. package/dist/components/layout/auth/auth-method-switch.d.ts +4 -0
  911. package/dist/components/layout/auth/auth-shell.d.ts +2 -0
  912. package/dist/components/layout/auth/auth-social-providers.d.ts +3 -0
  913. package/dist/components/layout/auth/auth-split-panel.d.ts +2 -0
  914. package/dist/components/layout/auth/auth.strings.d.ts +21 -0
  915. package/dist/components/layout/auth/auth.types.d.ts +282 -0
  916. package/dist/components/layout/auth/index.d.ts +10 -0
  917. package/dist/components/layout/containers/container.recipes.d.ts +5 -0
  918. package/dist/components/layout/containers/containers.types.d.ts +17 -0
  919. package/dist/components/layout/containers/content-container.d.ts +3 -0
  920. package/dist/components/layout/containers/index.d.ts +5 -0
  921. package/dist/components/layout/containers/page-viewport.d.ts +3 -0
  922. package/dist/components/layout/containers/section.d.ts +3 -0
  923. package/dist/components/layout/containers/two-column-layout.d.ts +27 -0
  924. package/dist/components/layout/header/header.d.ts +2 -0
  925. package/dist/components/layout/header/header.types.d.ts +198 -0
  926. package/dist/components/layout/header/index.d.ts +9 -0
  927. package/dist/components/layout/header/partials/header-breadcrumbs.d.ts +4 -0
  928. package/dist/components/layout/header/partials/header-global-search-trigger.d.ts +2 -0
  929. package/dist/components/layout/header/partials/header-notifications.d.ts +2 -0
  930. package/dist/components/layout/header/partials/header-search.d.ts +2 -0
  931. package/dist/components/layout/header/partials/header-tool-button.d.ts +4 -0
  932. package/dist/components/layout/header/partials/header-tool-popover.d.ts +2 -0
  933. package/dist/components/layout/header/partials/header-user-menu.d.ts +2 -0
  934. package/dist/components/layout/hooks/index.d.ts +3 -0
  935. package/dist/components/layout/hooks/use-active-path.d.ts +1 -0
  936. package/dist/components/layout/hooks/use-command-shortcut.d.ts +7 -0
  937. package/dist/components/layout/hooks/use-layout-link.d.ts +2 -0
  938. package/dist/components/layout/index.d.ts +24 -0
  939. package/dist/components/layout/layout.types.d.ts +91 -0
  940. package/dist/components/layout/navigation/breadcrumb-progress/breadcrumb-progress.d.ts +5 -0
  941. package/dist/components/layout/navigation/breadcrumb-progress/index.d.ts +2 -0
  942. package/dist/components/layout/navigation/breadcrumb-progress/types.d.ts +24 -0
  943. package/dist/components/layout/navigation/category-nav/category-nav.d.ts +5 -0
  944. package/dist/components/layout/navigation/category-nav/index.d.ts +2 -0
  945. package/dist/components/layout/navigation/category-nav/types.d.ts +22 -0
  946. package/dist/components/layout/navigation/index.d.ts +17 -0
  947. package/dist/components/layout/navigation/section-nav/index.d.ts +1 -0
  948. package/dist/components/layout/navigation/section-nav/section-nav.d.ts +29 -0
  949. package/dist/components/layout/navigation/side-nav.d.ts +58 -0
  950. package/dist/components/layout/page/index.d.ts +4 -0
  951. package/dist/components/layout/page/page.d.ts +3 -0
  952. package/dist/components/layout/page/page.types.d.ts +138 -0
  953. package/dist/components/layout/page/partials/page-actions.d.ts +2 -0
  954. package/dist/components/layout/page/partials/page-header.d.ts +2 -0
  955. package/dist/components/layout/settings/index.d.ts +1 -0
  956. package/dist/components/layout/settings/settings.d.ts +65 -0
  957. package/dist/components/layout/sidebar/app-sidebar.d.ts +7 -0
  958. package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +4 -0
  959. package/dist/components/layout/sidebar/components/sidebar-logo.d.ts +10 -0
  960. package/dist/components/layout/sidebar/components/sidebar-navigation-footer.d.ts +2 -0
  961. package/dist/components/layout/sidebar/components/sidebar-navigation-user.d.ts +23 -0
  962. package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +4 -0
  963. package/dist/components/layout/sidebar/components/sidebar-workspace-dropdown.d.ts +2 -0
  964. package/dist/components/layout/sidebar/index.d.ts +11 -0
  965. package/dist/components/layout/sidebar/sidebar.context.d.ts +17 -0
  966. package/dist/components/layout/sidebar/sidebar.d.ts +9 -0
  967. package/dist/components/layout/sidebar/sidebar.types.d.ts +218 -0
  968. package/dist/components/layout/sidebar/sidebar.utils.d.ts +29 -0
  969. package/dist/components/layout/workspace/index.d.ts +3 -0
  970. package/dist/components/layout/workspace/workspace.d.ts +6 -0
  971. package/dist/components/layout/workspace/workspace.strings.d.ts +18 -0
  972. package/dist/components/layout/workspace/workspace.types.d.ts +141 -0
  973. package/dist/components/primitives/date.d.ts +63 -0
  974. package/dist/components/primitives/dimensions.d.ts +30 -0
  975. package/dist/components/primitives/duration.d.ts +23 -0
  976. package/dist/components/primitives/file-size.d.ts +23 -0
  977. package/dist/components/primitives/index.d.ts +11 -0
  978. package/dist/components/primitives/initials-format.d.ts +21 -0
  979. package/dist/components/primitives/initials.d.ts +16 -0
  980. package/dist/components/primitives/link.d.ts +28 -0
  981. package/dist/components/primitives/money.d.ts +79 -0
  982. package/dist/components/primitives/name.d.ts +16 -0
  983. package/dist/components/primitives/number.d.ts +23 -0
  984. package/dist/components/primitives/value.d.ts +23 -0
  985. package/dist/components/typography/content-typography.d.ts +4 -0
  986. package/dist/components/typography/display-label.d.ts +5 -0
  987. package/dist/components/typography/heading.d.ts +16 -0
  988. package/dist/components/typography/index.d.ts +10 -0
  989. package/dist/components/typography/label.d.ts +8 -0
  990. package/dist/components/typography/rich-text/index.d.ts +2 -0
  991. package/dist/components/typography/rich-text/rich-text.d.ts +6 -0
  992. package/dist/components/typography/text-link.d.ts +7 -0
  993. package/dist/components/typography/text.d.ts +17 -0
  994. package/dist/components/typography/text.styles.d.ts +50 -0
  995. package/dist/components/ui/accordion.d.ts +6 -0
  996. package/dist/components/ui/alert-dialog.d.ts +21 -0
  997. package/dist/components/ui/avatar.d.ts +11 -0
  998. package/dist/components/ui/badge.d.ts +5 -0
  999. package/dist/components/ui/breadcrumb.d.ts +11 -0
  1000. package/dist/components/ui/button-group.d.ts +12 -0
  1001. package/dist/components/ui/button.d.ts +12 -0
  1002. package/dist/components/ui/calendar.d.ts +10 -0
  1003. package/dist/components/ui/card.d.ts +11 -0
  1004. package/dist/components/ui/checkbox.d.ts +6 -0
  1005. package/dist/components/ui/collapsible.d.ts +9 -0
  1006. package/dist/components/ui/combobox.d.ts +40 -0
  1007. package/dist/components/ui/command.d.ts +50 -0
  1008. package/dist/components/ui/dialog.d.ts +26 -0
  1009. package/dist/components/ui/disclosure-panel.d.ts +14 -0
  1010. package/dist/components/ui/empty.d.ts +11 -0
  1011. package/dist/components/ui/input-group.d.ts +18 -0
  1012. package/dist/components/ui/input.d.ts +3 -0
  1013. package/dist/components/ui/item.d.ts +22 -0
  1014. package/dist/components/ui/overlay.recipes.d.ts +2 -0
  1015. package/dist/components/ui/pagination.d.ts +17 -0
  1016. package/dist/components/ui/popover.d.ts +22 -0
  1017. package/dist/components/ui/select.d.ts +18 -0
  1018. package/dist/components/ui/separator.d.ts +3 -0
  1019. package/dist/components/ui/sheet.d.ts +25 -0
  1020. package/dist/components/ui/sidebar.d.ts +64 -0
  1021. package/dist/components/ui/skeleton.d.ts +2 -0
  1022. package/dist/components/ui/slot.d.ts +6 -0
  1023. package/dist/components/ui/sonner.d.ts +3 -0
  1024. package/dist/components/ui/switch.d.ts +5 -0
  1025. package/dist/components/ui/table.d.ts +13 -0
  1026. package/dist/components/ui/tabs.d.ts +10 -0
  1027. package/dist/components/ui/textarea.d.ts +3 -0
  1028. package/dist/components/ui/toggle-group.d.ts +12 -0
  1029. package/dist/components/ui/toggle.d.ts +8 -0
  1030. package/dist/components/ui/tooltip.d.ts +13 -0
  1031. package/dist/containers-6s-ucRQQ.js +125 -0
  1032. package/dist/containers-6s-ucRQQ.js.map +1 -0
  1033. package/dist/content-typography-CnwgMJ37.js +6 -0
  1034. package/dist/content-typography-CnwgMJ37.js.map +1 -0
  1035. package/dist/copyable-B7SBXJMr.js +65 -0
  1036. package/dist/copyable-B7SBXJMr.js.map +1 -0
  1037. package/dist/data-display-cWIRdeaf.js +1129 -0
  1038. package/dist/data-display-cWIRdeaf.js.map +1 -0
  1039. package/dist/date-BFNMnrS5.js +140 -0
  1040. package/dist/date-BFNMnrS5.js.map +1 -0
  1041. package/dist/date-picker-CA6ogMQB.js +1521 -0
  1042. package/dist/date-picker-CA6ogMQB.js.map +1 -0
  1043. package/dist/date-pickers-BPIKLdsD.js +224 -0
  1044. package/dist/date-pickers-BPIKLdsD.js.map +1 -0
  1045. package/dist/disclosure-panel-B0HFNZ9x.js +35 -0
  1046. package/dist/disclosure-panel-B0HFNZ9x.js.map +1 -0
  1047. package/dist/display-CFM5myut.js +343 -0
  1048. package/dist/display-CFM5myut.js.map +1 -0
  1049. package/dist/dropdown-menu-BlnyHr-9.js +186 -0
  1050. package/dist/dropdown-menu-BlnyHr-9.js.map +1 -0
  1051. package/dist/editable-text-recipe-Bkm6wKHp.js +10 -0
  1052. package/dist/editable-text-recipe-Bkm6wKHp.js.map +1 -0
  1053. package/dist/favicon.svg +1 -0
  1054. package/dist/features/activities.js +1360 -0
  1055. package/dist/features/activities.js.map +1 -0
  1056. package/dist/features/ai-chat.js +567 -0
  1057. package/dist/features/ai-chat.js.map +1 -0
  1058. package/dist/features/async-preview.js +478 -0
  1059. package/dist/features/async-preview.js.map +1 -0
  1060. package/dist/features/combobox.js +3 -0
  1061. package/dist/features/comments.js +3 -0
  1062. package/dist/features/data-view.js +519 -0
  1063. package/dist/features/data-view.js.map +1 -0
  1064. package/dist/features/email-composer/engine.js +2 -0
  1065. package/dist/features/email-composer.js +1099 -0
  1066. package/dist/features/email-composer.js.map +1 -0
  1067. package/dist/features/event-calendar.js +711 -0
  1068. package/dist/features/event-calendar.js.map +1 -0
  1069. package/dist/features/filters.js +3 -0
  1070. package/dist/features/global-search.js +593 -0
  1071. package/dist/features/global-search.js.map +1 -0
  1072. package/dist/features/kanban.js +425 -0
  1073. package/dist/features/kanban.js.map +1 -0
  1074. package/dist/features/map/images/layers-2x.png +0 -0
  1075. package/dist/features/map/images/layers.png +0 -0
  1076. package/dist/features/map/images/marker-icon-2x.png +0 -0
  1077. package/dist/features/map/images/marker-icon.png +0 -0
  1078. package/dist/features/map/images/marker-shadow.png +0 -0
  1079. package/dist/features/map/images/spritesheet-2x.png +0 -0
  1080. package/dist/features/map/images/spritesheet.png +0 -0
  1081. package/dist/features/map/images/spritesheet.svg +156 -0
  1082. package/dist/features/map/style.css +809 -0
  1083. package/dist/features/map.js +1052 -0
  1084. package/dist/features/map.js.map +1 -0
  1085. package/dist/features/media-library.js +2007 -0
  1086. package/dist/features/media-library.js.map +1 -0
  1087. package/dist/features/mentions.js +3 -0
  1088. package/dist/features/overlays.js +3 -0
  1089. package/dist/features/products.js +3077 -0
  1090. package/dist/features/products.js.map +1 -0
  1091. package/dist/features/questionnaire.js +366 -0
  1092. package/dist/features/questionnaire.js.map +1 -0
  1093. package/dist/features/resource-assignment.js +317 -0
  1094. package/dist/features/resource-assignment.js.map +1 -0
  1095. package/dist/features/resource.js +254 -0
  1096. package/dist/features/resource.js.map +1 -0
  1097. package/dist/features/rich-text-editor.js +23 -0
  1098. package/dist/features/rich-text-editor.js.map +1 -0
  1099. package/dist/features/schema-form.js +744 -0
  1100. package/dist/features/schema-form.js.map +1 -0
  1101. package/dist/features/suggestions.js +149 -0
  1102. package/dist/features/suggestions.js.map +1 -0
  1103. package/dist/features/sync.js +136 -0
  1104. package/dist/features/sync.js.map +1 -0
  1105. package/dist/features/table.js +3 -0
  1106. package/dist/features/theme-tweaker.js +2083 -0
  1107. package/dist/features/theme-tweaker.js.map +1 -0
  1108. package/dist/feedback-DWUkgEjR.js +233 -0
  1109. package/dist/feedback-DWUkgEjR.js.map +1 -0
  1110. package/dist/field-affordance-recipes-IjzPrCTw.js +17 -0
  1111. package/dist/field-affordance-recipes-IjzPrCTw.js.map +1 -0
  1112. package/dist/field-state-recipes-CBTRt9Bt.js +11 -0
  1113. package/dist/field-state-recipes-CBTRt9Bt.js.map +1 -0
  1114. package/dist/filters-BhsUtsxW.js +2203 -0
  1115. package/dist/filters-BhsUtsxW.js.map +1 -0
  1116. package/dist/form-field-Bn7ZH1rA.js +48 -0
  1117. package/dist/form-field-Bn7ZH1rA.js.map +1 -0
  1118. package/dist/form-sizing-BWs70_a2.js +100 -0
  1119. package/dist/form-sizing-BWs70_a2.js.map +1 -0
  1120. package/dist/format-iamDSqs2.js +110 -0
  1121. package/dist/format-iamDSqs2.js.map +1 -0
  1122. package/dist/forms-B7pzS25o.js +194 -0
  1123. package/dist/forms-B7pzS25o.js.map +1 -0
  1124. package/dist/forms-numeric-BUBxELBv.js +867 -0
  1125. package/dist/forms-numeric-BUBxELBv.js.map +1 -0
  1126. package/dist/header-C59QZyxV.js +452 -0
  1127. package/dist/header-C59QZyxV.js.map +1 -0
  1128. package/dist/hooks/use-debounce.d.ts +1 -0
  1129. package/dist/hooks/use-debounced-callback.d.ts +40 -0
  1130. package/dist/hooks/use-files.d.ts +48 -0
  1131. package/dist/hooks/use-mobile.d.ts +2 -0
  1132. package/dist/hooks/useFormErrors.d.ts +7 -0
  1133. package/dist/hooks-CM1Vp9Pe.js +88 -0
  1134. package/dist/hooks-CM1Vp9Pe.js.map +1 -0
  1135. package/dist/http-CLTVJc5I.js +331 -0
  1136. package/dist/http-CLTVJc5I.js.map +1 -0
  1137. package/dist/icon-badge-Dv0RYQwj.js +53 -0
  1138. package/dist/icon-badge-Dv0RYQwj.js.map +1 -0
  1139. package/dist/icon-size-B6PVwjbC.js +18 -0
  1140. package/dist/icon-size-B6PVwjbC.js.map +1 -0
  1141. package/dist/index.d.ts +14 -0
  1142. package/dist/index.js +7 -0
  1143. package/dist/initials-format-CDoQEOd_.js +35 -0
  1144. package/dist/initials-format-CDoQEOd_.js.map +1 -0
  1145. package/dist/input-WwYQZJzG.js +202 -0
  1146. package/dist/input-WwYQZJzG.js.map +1 -0
  1147. package/dist/input-ci9fIgFH.js +20 -0
  1148. package/dist/input-ci9fIgFH.js.map +1 -0
  1149. package/dist/item-pJ0GsOiJ.js +257 -0
  1150. package/dist/item-pJ0GsOiJ.js.map +1 -0
  1151. package/dist/layout/app-shell.js +3 -0
  1152. package/dist/layout/auth.js +3 -0
  1153. package/dist/layout/containers.js +3 -0
  1154. package/dist/layout/header.js +3 -0
  1155. package/dist/layout/hooks.js +3 -0
  1156. package/dist/layout/navigation.js +3 -0
  1157. package/dist/layout/page.js +3 -0
  1158. package/dist/layout/settings.js +3 -0
  1159. package/dist/layout/sidebar.js +4 -0
  1160. package/dist/layout/workspace.js +3 -0
  1161. package/dist/layout.js +13 -0
  1162. package/dist/layout.types-Cn7aUzJp.js +20 -0
  1163. package/dist/layout.types-Cn7aUzJp.js.map +1 -0
  1164. package/dist/lib/action-presentation.d.ts +15 -0
  1165. package/dist/lib/affordance-geometry.generated.d.ts +27 -0
  1166. package/dist/lib/anchored-positioning.d.ts +5 -0
  1167. package/dist/lib/command-filter.d.ts +1 -0
  1168. package/dist/lib/component-vocabulary.d.ts +12 -0
  1169. package/dist/lib/editable-text-recipe.d.ts +6 -0
  1170. package/dist/lib/email-composer.d.ts +6 -0
  1171. package/dist/lib/field-affordance-recipes.d.ts +20 -0
  1172. package/dist/lib/field-state-recipes.d.ts +10 -0
  1173. package/dist/lib/format.d.ts +53 -0
  1174. package/dist/lib/motion-recipes.d.ts +8 -0
  1175. package/dist/lib/navigation-row-recipes.d.ts +26 -0
  1176. package/dist/lib/overlay-anatomy-recipes.d.ts +8 -0
  1177. package/dist/lib/row-recipes.d.ts +3 -0
  1178. package/dist/lib/sanitize-html.d.ts +8 -0
  1179. package/dist/lib/strings.d.ts +16 -0
  1180. package/dist/lib/strings.js +32 -0
  1181. package/dist/lib/strings.js.map +1 -0
  1182. package/dist/lib/surface-recipes.d.ts +27 -0
  1183. package/dist/lib/theme-scope.d.ts +31 -0
  1184. package/dist/lib/token-merge.generated.d.ts +2 -0
  1185. package/dist/lib/track-recipes.d.ts +4 -0
  1186. package/dist/lib/ui-provider/defaults.d.ts +12 -0
  1187. package/dist/lib/ui-provider/hooks.d.ts +13 -0
  1188. package/dist/lib/ui-provider/index.d.ts +28 -0
  1189. package/dist/lib/ui-provider/provider.d.ts +15 -0
  1190. package/dist/lib/ui-provider/scale.d.ts +5 -0
  1191. package/dist/lib/ui-provider/store.d.ts +11 -0
  1192. package/dist/lib/ui-provider/types.d.ts +157 -0
  1193. package/dist/lib/utils.d.ts +2 -0
  1194. package/dist/lib/utils.js +2 -0
  1195. package/dist/map-demo-tile.svg +1 -0
  1196. package/dist/media-gallery-DhDRgnVZ.js +200 -0
  1197. package/dist/media-gallery-DhDRgnVZ.js.map +1 -0
  1198. package/dist/mentions-B8Ko-fhS.js +563 -0
  1199. package/dist/mentions-B8Ko-fhS.js.map +1 -0
  1200. package/dist/message-COsdEvXT.js +108 -0
  1201. package/dist/message-COsdEvXT.js.map +1 -0
  1202. package/dist/motion-recipes-B6jKXEcN.js +27 -0
  1203. package/dist/motion-recipes-B6jKXEcN.js.map +1 -0
  1204. package/dist/navigation-BUIn2Qxx.js +265 -0
  1205. package/dist/navigation-BUIn2Qxx.js.map +1 -0
  1206. package/dist/navigation-DBEu4POU.js +267 -0
  1207. package/dist/navigation-DBEu4POU.js.map +1 -0
  1208. package/dist/navigation-row-recipes-GVh11KiT.js +29 -0
  1209. package/dist/navigation-row-recipes-GVh11KiT.js.map +1 -0
  1210. package/dist/number-BNT_BIzJ.js +269 -0
  1211. package/dist/number-BNT_BIzJ.js.map +1 -0
  1212. package/dist/overlay.recipes-BxW5FIfK.js +6 -0
  1213. package/dist/overlay.recipes-BxW5FIfK.js.map +1 -0
  1214. package/dist/overlays-B11wZka6.js +982 -0
  1215. package/dist/overlays-B11wZka6.js.map +1 -0
  1216. package/dist/page-BV6ioQg3.js +202 -0
  1217. package/dist/page-BV6ioQg3.js.map +1 -0
  1218. package/dist/page-header-DQRa0jug.js +112 -0
  1219. package/dist/page-header-DQRa0jug.js.map +1 -0
  1220. package/dist/pagination-C29vvt3I.js +149 -0
  1221. package/dist/pagination-C29vvt3I.js.map +1 -0
  1222. package/dist/popover-CoLDEg19.js +194 -0
  1223. package/dist/popover-CoLDEg19.js.map +1 -0
  1224. package/dist/popover-menu-GLIQTJTx.js +99 -0
  1225. package/dist/popover-menu-GLIQTJTx.js.map +1 -0
  1226. package/dist/popover.recipes-zgBhMlUu.js +34 -0
  1227. package/dist/popover.recipes-zgBhMlUu.js.map +1 -0
  1228. package/dist/primitives-DKPOGVpj.js +330 -0
  1229. package/dist/primitives-DKPOGVpj.js.map +1 -0
  1230. package/dist/primitives.js +7 -0
  1231. package/dist/progress-BOe8l_FZ.js +168 -0
  1232. package/dist/progress-BOe8l_FZ.js.map +1 -0
  1233. package/dist/receipt-BM8xsGFy.js +113 -0
  1234. package/dist/receipt-BM8xsGFy.js.map +1 -0
  1235. package/dist/rich-text-B7sBAdDG.js +32 -0
  1236. package/dist/rich-text-B7sBAdDG.js.map +1 -0
  1237. package/dist/rich-text-editor-CoVrTiSv.js +575 -0
  1238. package/dist/rich-text-editor-CoVrTiSv.js.map +1 -0
  1239. package/dist/rich-text-editor.recipes-DxvOE0Lp.js +72 -0
  1240. package/dist/rich-text-editor.recipes-DxvOE0Lp.js.map +1 -0
  1241. package/dist/rich-text-editor.strings-BpnIQgMl.js +25 -0
  1242. package/dist/rich-text-editor.strings-BpnIQgMl.js.map +1 -0
  1243. package/dist/row-recipes-DL8n7t_b.js +10 -0
  1244. package/dist/row-recipes-DL8n7t_b.js.map +1 -0
  1245. package/dist/sanitize-html-BG9FGe-j.js +64 -0
  1246. package/dist/sanitize-html-BG9FGe-j.js.map +1 -0
  1247. package/dist/scroll-area-BheMQ270.js +47 -0
  1248. package/dist/scroll-area-BheMQ270.js.map +1 -0
  1249. package/dist/select-B2mb-qN2.js +108 -0
  1250. package/dist/select-B2mb-qN2.js.map +1 -0
  1251. package/dist/separator-DO0EbCEm.js +17 -0
  1252. package/dist/separator-DO0EbCEm.js.map +1 -0
  1253. package/dist/separator-Gk_WXH-l.js +21 -0
  1254. package/dist/separator-Gk_WXH-l.js.map +1 -0
  1255. package/dist/services/actions/action-adapters.d.ts +77 -0
  1256. package/dist/services/actions/action-overlay-outlet.d.ts +3 -0
  1257. package/dist/services/actions/action-provider.d.ts +7 -0
  1258. package/dist/services/actions/action-scope.d.ts +3 -0
  1259. package/dist/services/actions/action-store.d.ts +55 -0
  1260. package/dist/services/actions/actions.strings.d.ts +2 -0
  1261. package/dist/services/actions/actions.types.d.ts +322 -0
  1262. package/dist/services/actions/hooks.d.ts +8 -0
  1263. package/dist/services/actions/index.d.ts +8 -0
  1264. package/dist/services/actions.js +811 -0
  1265. package/dist/services/actions.js.map +1 -0
  1266. package/dist/settings-BnCyyPOJ.js +160 -0
  1267. package/dist/settings-BnCyyPOJ.js.map +1 -0
  1268. package/dist/sheet-B-q914Ad.js +205 -0
  1269. package/dist/sheet-B-q914Ad.js.map +1 -0
  1270. package/dist/sidebar-C_2p3Tfj.js +501 -0
  1271. package/dist/sidebar-C_2p3Tfj.js.map +1 -0
  1272. package/dist/sidebar-DPR7fmqN.js +598 -0
  1273. package/dist/sidebar-DPR7fmqN.js.map +1 -0
  1274. package/dist/skeleton-CmT1ppqb.js +264 -0
  1275. package/dist/skeleton-CmT1ppqb.js.map +1 -0
  1276. package/dist/slot-CLF9kLrS.js +16 -0
  1277. package/dist/slot-CLF9kLrS.js.map +1 -0
  1278. package/dist/smart-card-CYLn46e6.js +578 -0
  1279. package/dist/smart-card-CYLn46e6.js.map +1 -0
  1280. package/dist/spinner-BY9HbUEh.js +78 -0
  1281. package/dist/spinner-BY9HbUEh.js.map +1 -0
  1282. package/dist/structure-MvKVq-oL.js +95 -0
  1283. package/dist/structure-MvKVq-oL.js.map +1 -0
  1284. package/dist/structure.recipes-Bqhf9oIh.js +548 -0
  1285. package/dist/structure.recipes-Bqhf9oIh.js.map +1 -0
  1286. package/dist/style.css +3 -0
  1287. package/dist/surface-recipes-CQfRr-VL.js +27 -0
  1288. package/dist/surface-recipes-CQfRr-VL.js.map +1 -0
  1289. package/dist/table-BS39xnlq.js +1424 -0
  1290. package/dist/table-BS39xnlq.js.map +1 -0
  1291. package/dist/table-DnlAJ-xR.js +146 -0
  1292. package/dist/table-DnlAJ-xR.js.map +1 -0
  1293. package/dist/tabs-B5cNMWiP.js +187 -0
  1294. package/dist/tabs-B5cNMWiP.js.map +1 -0
  1295. package/dist/text-inputs-Dh9XGyiS.js +331 -0
  1296. package/dist/text-inputs-Dh9XGyiS.js.map +1 -0
  1297. package/dist/text.styles-BwB7vAF2.js +64 -0
  1298. package/dist/text.styles-BwB7vAF2.js.map +1 -0
  1299. package/dist/theme-scope-kStaAer0.js +39 -0
  1300. package/dist/theme-scope-kStaAer0.js.map +1 -0
  1301. package/dist/theme.css +872 -0
  1302. package/dist/timelines-B9ICkQcV.js +446 -0
  1303. package/dist/timelines-B9ICkQcV.js.map +1 -0
  1304. package/dist/track-recipes-LLPNVwFg.js +10 -0
  1305. package/dist/track-recipes-LLPNVwFg.js.map +1 -0
  1306. package/dist/tree-BdWSaoFT.js +185 -0
  1307. package/dist/tree-BdWSaoFT.js.map +1 -0
  1308. package/dist/types/index.d.ts +11 -0
  1309. package/dist/types/locale.types.d.ts +7 -0
  1310. package/dist/types/pagination.types.d.ts +24 -0
  1311. package/dist/typography/rich-text.js +3 -0
  1312. package/dist/typography-Cv8MT-82.js +96 -0
  1313. package/dist/typography-Cv8MT-82.js.map +1 -0
  1314. package/dist/typography.js +3 -0
  1315. package/dist/ui-provider-CftIB6TY.js +128 -0
  1316. package/dist/ui-provider-CftIB6TY.js.map +1 -0
  1317. package/dist/ui-provider.js +4 -0
  1318. package/dist/upload-D8Za5x_c.js +849 -0
  1319. package/dist/upload-D8Za5x_c.js.map +1 -0
  1320. package/dist/upload-queue-hIIYBLS7.js +410 -0
  1321. package/dist/upload-queue-hIIYBLS7.js.map +1 -0
  1322. package/dist/usage-card-DnmnJ58D.js +458 -0
  1323. package/dist/usage-card-DnmnJ58D.js.map +1 -0
  1324. package/dist/use-debounce-DZ_1ZBPa.js +18 -0
  1325. package/dist/use-debounce-DZ_1ZBPa.js.map +1 -0
  1326. package/dist/use-debounced-callback-Cx1h-hdv.js +30 -0
  1327. package/dist/use-debounced-callback-Cx1h-hdv.js.map +1 -0
  1328. package/dist/use-file-drop-target-BX7GnhoQ.js +39 -0
  1329. package/dist/use-file-drop-target-BX7GnhoQ.js.map +1 -0
  1330. package/dist/use-mobile-vaLKwgyf.js +15 -0
  1331. package/dist/use-mobile-vaLKwgyf.js.map +1 -0
  1332. package/dist/utils-C2EKeIw3.js +72 -0
  1333. package/dist/utils-C2EKeIw3.js.map +1 -0
  1334. package/dist/value-inputs-DX2dbxjj.js +824 -0
  1335. package/dist/value-inputs-DX2dbxjj.js.map +1 -0
  1336. package/dist/workspace-C1PZmk8L.js +402 -0
  1337. package/dist/workspace-C1PZmk8L.js.map +1 -0
  1338. package/docs/consumer-skill/SKILL.md +135 -0
  1339. package/docs/consumer-skill/examples/app-layout.tsx +31 -0
  1340. package/docs/consumer-skill/examples/composition.tsx +37 -0
  1341. package/docs/consumer-skill/examples/content-workflow.tsx +13 -0
  1342. package/docs/consumer-skill/examples/destructive-confirm.tsx +42 -0
  1343. package/docs/consumer-skill/examples/detail.tsx +27 -0
  1344. package/docs/consumer-skill/examples/edit.tsx +61 -0
  1345. package/docs/consumer-skill/examples/email-composer.tsx +25 -0
  1346. package/docs/consumer-skill/examples/hierarchy-capture.tsx +25 -0
  1347. package/docs/consumer-skill/examples/index-table.tsx +36 -0
  1348. package/docs/consumer-skill/examples/manifest.json +108 -0
  1349. package/docs/consumer-skill/examples/planning-usage-edit.tsx +29 -0
  1350. package/docs/consumer-skill/examples/receipt.tsx +19 -0
  1351. package/docs/consumer-skill/examples/scoped-directory.tsx +77 -0
  1352. package/docs/consumer-skill/references/composition.md +273 -0
  1353. package/docs/consumer-skill/references/design-contract.md +146 -0
  1354. package/docs/consumer-skill/references/discovery.md +50 -0
  1355. package/docs/consumer-skill/references/installation.md +83 -0
  1356. package/docs/consumer-skill/references/integration.md +69 -0
  1357. package/docs/consumer-skill/references/public-api.json +17750 -0
  1358. package/docs/consumer-skill/references/review.md +74 -0
  1359. package/docs/consumer-skill/references/theming.md +56 -0
  1360. package/docs/consumer-skill/references/tokens.json +422 -0
  1361. package/docs/consumer-skill/references/workflows.md +135 -0
  1362. package/docs/consumer-skill/scripts/check-composition.mjs +31 -0
  1363. package/docs/consumer-skill/scripts/composition-policy.mjs +155 -0
  1364. package/docs/consumer-skill/scripts/discovery.mjs +84 -0
  1365. package/docs/consumer-skill/scripts/find-components.mjs +11 -0
  1366. package/docs/consumer-skill/scripts/surface-policy.mjs +22 -0
  1367. package/package.json +642 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-queue-hIIYBLS7.js","names":["_Fragment","resolveComponentScale","useDensityConfig","cn","Button","Stack","SecondaryValue","FileSize","Badge","useFileDropTarget","AttachmentFileIcon","AttachmentTitle","AttachmentDescription","AttachmentActions","AttachmentMedia","AttachmentContent","AttachmentProgress","Attachment","Fragment$1","FilePickerInput","forwardRef","props","handleClick","event","onClick","handleChange","files","onFiles","className","defaultDropzoneStrings","SIZE_CHROME","assignInputRef","forwardedRef","node","DropzoneImpl","sizeProp","stringsProp","strings","useStrings","generatedId","useId","inputId","inputProps","onDrop","chrome","defaultScale","dropTargetProps","disabled","invalid","isDragging","icon","UploadCloud","Text","children","Dropzone","defaultUploadProgressListStrings","STATUS_TONE","Clock","Check","AlertCircle","X","UploadProgressList","statusLabel","items","tone","item","Icon","pct","showProgress","onPreview","Eye","onDownload","Download","onCancel","onRetry","RefreshCw","onRemove","defaultUploadTrayStrings","countStatus","completed","failed","uploading","queued","UploadTray","handleDrop","useCallback","onAddFiles","hasItems","dropzone","onClearAll","listStrings"],"sources":["../src/components/base/upload/file-picker-input.tsx","../src/components/base/upload/dropzone.tsx","../src/components/base/upload-queue/upload-progress-list.tsx","../src/components/base/upload-queue/upload-tray.tsx"],"sourcesContent":["import {\n\tforwardRef,\n\ttype ChangeEvent,\n\ttype InputHTMLAttributes,\n\ttype MouseEvent,\n} from 'react';\n\nimport { cn } from '../../../lib/utils';\n\ntype DataAttributes = {\n\t[key: `data-${string}`]: string | number | boolean | undefined;\n};\n\nexport type FilePickerNativeInputProps = Omit<\n\tInputHTMLAttributes<HTMLInputElement>,\n\t'type' | 'value' | 'defaultValue' | 'onChange' | 'children'\n> & DataAttributes;\n\nexport type FilePickerInputProps = FilePickerNativeInputProps & {\n\t/** Return `false` when the native FileList must be cleared (for example, after rejection). */\n\tonFiles: (files: File[]) => boolean | void;\n};\n\n/** Shared native-input plumbing for FileUpload and Dropzone. Not a public export. */\nexport const FilePickerInput = forwardRef<HTMLInputElement, FilePickerInputProps>(\n\tfunction FilePickerInput(\n\t\t{ className, onFiles, onClick, ...props },\n\t\tref,\n\t) {\n\t\tconst handleClick = (event: MouseEvent<HTMLInputElement>) => {\n\t\t\tevent.stopPropagation();\n\t\t\tonClick?.(event);\n\t\t\tif (!event.defaultPrevented) {\n\t\t\t\t// Clearing before the picker opens makes choosing the same file again\n\t\t\t\t// observable without retaining an opaque native FileList as state.\n\t\t\t\tevent.currentTarget.value = '';\n\t\t\t}\n\t\t};\n\n\t\tconst handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n\t\t\tconst files = event.currentTarget.files;\n\t\t\tif (files?.length && onFiles(Array.from(files)) === false) {\n\t\t\t\tevent.currentTarget.value = '';\n\t\t\t}\n\t\t};\n\n\t\treturn (\n\t\t\t<input\n\t\t\t\t{...props}\n\t\t\t\tref={ref}\n\t\t\t\ttype=\"file\"\n\t\t\t\tdata-slot=\"file-picker-input\"\n\t\t\t\tclassName={cn('file-picker-input--component sr-only', className)}\n\t\t\t\tonClick={handleClick}\n\t\t\t\tonChange={handleChange}\n\t\t\t/>\n\t\t);\n\t},\n);\n\nFilePickerInput.displayName = 'FilePickerInput';\n","/**\n * Dropzone — accessible drag-and-drop chrome with a native file-input fallback.\n * It owns no validation or file state; consumers receive local `File` values.\n */\nimport { forwardRef, useId, type ForwardedRef, type ReactNode } from 'react';\nimport { UploadCloud } from 'lucide-react';\n\nimport { Text } from '../../typography';\nimport { useStrings, type StringsProp } from '../../../lib/strings';\nimport { useDensityConfig, type ComponentScale } from '../../../lib/ui-provider';\nimport { resolveComponentScale } from '../../../lib/ui-provider/scale';\nimport { cn } from '../../../lib/utils';\n\nimport {\n\tFilePickerInput,\n\ttype FilePickerNativeInputProps,\n} from './file-picker-input';\nimport { useFileDropTarget } from './use-file-drop-target';\n\nexport type DropzoneSize = ComponentScale;\n\nexport interface DropzoneStrings {\n\tinstruction: string;\n\thelper: string;\n\tdragOver: string;\n}\n\nexport const defaultDropzoneStrings: DropzoneStrings = {\n\tinstruction: 'Drag files here or click to browse',\n\thelper: '',\n\tdragOver: 'Release to select',\n};\n\nexport type DropzoneInputProps = Omit<\n\tFilePickerNativeInputProps,\n\t'accept' | 'disabled' | 'multiple'\n>;\n\nexport interface DropzoneProps {\n\tonDrop: (files: File[]) => void;\n\t/** Accepted MIME types or extensions. */\n\taccept?: string;\n\t/** Allows more than one file to be dropped. */\n\tmultiple?: boolean;\n\t/** Disables the control and blocks drops. */\n\tdisabled?: boolean;\n\t/** Applies the invalid styling. */\n\tinvalid?: boolean;\n\t/** Height preset for the drop target. */\n\tsize?: DropzoneSize;\n\t/** Glyph shown inside the drop target. */\n\ticon?: ReactNode;\n\tclassName?: string;\n\t/** Native form, ARIA, data, and event attributes forwarded to the file input. */\n\tinputProps?: DropzoneInputProps;\n\t/** Optional action rendered outside the input label, so nested controls remain valid. */\n\tchildren?: ReactNode;\n\t/** Overrides the prompt and constraint copy. */\n\tstrings?: StringsProp<DropzoneStrings>;\n}\n\nconst SIZE_CHROME: Record<\n\tDropzoneSize,\n\t{ padding: string; minHeight: string; iconBox: string; iconSize: string }\n> = {\n\tsm: {\n\t\tpadding: 'p-surface-xs',\n\t\tminHeight: 'min-h-24',\n\t\ticonBox: 'size-avatar-lg',\n\t\ticonSize: 'size-icon',\n\t},\n\tmd: {\n\t\tpadding: 'p-surface',\n\t\tminHeight: 'min-h-32',\n\t\ticonBox: 'size-avatar-lg',\n\t\ticonSize: 'size-icon-lg',\n\t},\n\tlg: {\n\t\tpadding: 'p-surface-lg',\n\t\tminHeight: 'min-h-40',\n\t\ticonBox: 'size-upload-avatar-small',\n\t\ticonSize: 'size-icon-lg',\n\t},\n};\n\nfunction assignInputRef(\n\tnode: HTMLInputElement | null,\n\tforwardedRef: ForwardedRef<HTMLInputElement>,\n) {\n\tif (typeof forwardedRef === 'function') forwardedRef(node);\n\telse if (forwardedRef) forwardedRef.current = node;\n}\n\nfunction DropzoneImpl(\n\t{\n\t\tonDrop,\n\t\taccept,\n\t\tmultiple = false,\n\t\tdisabled = false,\n\t\tinvalid = false,\n\t\tsize: sizeProp,\n\t\ticon,\n\t\tclassName,\n\t\tinputProps,\n\t\tchildren,\n\t\tstrings: stringsProp,\n\t}: DropzoneProps,\n\tforwardedRef: ForwardedRef<HTMLInputElement>,\n) {\n\tconst { defaultScale } = useDensityConfig();\n\tconst strings = useStrings(defaultDropzoneStrings, stringsProp);\n\tconst generatedId = useId();\n\tconst inputId = inputProps?.id ?? `dropzone-${generatedId}`;\n\tconst { isDragging, dropTargetProps } = useFileDropTarget({\n\t\tdisabled,\n\t\tonFiles: onDrop,\n\t});\n\tconst resolvedSize = resolveComponentScale(sizeProp, defaultScale);\n\tconst chrome = SIZE_CHROME[resolvedSize];\n\n\treturn (\n\t\t<div\n\t\t\t{...dropTargetProps}\n\t\t\tdata-disabled={disabled || undefined}\n\t\t\tdata-invalid={invalid || undefined}\n\t\t\tdata-dragging={isDragging || undefined}\n\t\t\tclassName={cn(\n\t\t\t\t'dropzone--component relative flex flex-col items-center justify-center gap-space-md rounded-radius-lg border border-dashed text-center transition-colors duration-150',\n\t\t\t\t'has-[[data-slot=file-picker-input]:focus-visible]:ring-2 has-[[data-slot=file-picker-input]:focus-visible]:ring-ring/50 has-[[data-slot=file-picker-input]:focus-visible]:ring-offset-2',\n\t\t\t\tchrome.minHeight,\n\t\t\t\tchrome.padding,\n\t\t\t\tinvalid ? 'border-destructive' : 'border-muted-foreground/40',\n\t\t\t\tinvalid\n\t\t\t\t\t? !disabled && 'hover:bg-destructive/5'\n\t\t\t\t\t: !disabled && 'hover:border-primary hover:bg-primary/5',\n\t\t\t\tdisabled && 'cursor-not-allowed opacity-50',\n\t\t\t\t!disabled && isDragging && (\n\t\t\t\t\tinvalid\n\t\t\t\t\t\t? 'border-destructive bg-destructive/5'\n\t\t\t\t\t\t: 'border-primary bg-primary/10'\n\t\t\t\t),\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t>\n\t\t\t<FilePickerInput\n\t\t\t\t{...inputProps}\n\t\t\t\tref={(node) => assignInputRef(node, forwardedRef)}\n\t\t\t\tid={inputId}\n\t\t\t\taccept={accept}\n\t\t\t\tmultiple={multiple}\n\t\t\t\tdisabled={disabled}\n\t\t\t\taria-invalid={invalid || undefined}\n\t\t\t\tclassName={cn('dropzone--input', inputProps?.className)}\n\t\t\t\tonFiles={onDrop}\n\t\t\t/>\n\n\t\t\t<label\n\t\t\t\thtmlFor={disabled ? undefined : inputId}\n\t\t\t\taria-disabled={disabled || undefined}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'dropzone--trigger flex w-full flex-1 cursor-pointer flex-col items-center justify-center gap-space-md',\n\t\t\t\t\tdisabled && 'cursor-not-allowed',\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t<span\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t'dropzone--icon inline-flex items-center justify-center rounded-full bg-primary/10 text-primary-accent',\n\t\t\t\t\t\tchrome.iconBox,\n\t\t\t\t\t)}\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t>\n\t\t\t\t\t{icon ?? <UploadCloud className={chrome.iconSize} />}\n\t\t\t\t</span>\n\n\t\t\t\t<span className=\"dropzone--copy grid gap-normal text-center [&_p]:text-center\">\n\t\t\t\t\t<Text\n\t\t\t\t\t\ttag=\"span\"\n\t\t\t\t\t\t\t\t\t\t\t\tweight=\"medium\"\n\t\t\t\t\t\tclassName=\"dropzone--instruction\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{isDragging ? strings.dragOver : strings.instruction}\n\t\t\t\t\t</Text>\n\t\t\t\t\t{!!strings.helper && (\n\t\t\t\t\t\t<Text\n\t\t\t\t\t\t\ttag=\"span\"\n\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\ttype=\"secondary\"\n\t\t\t\t\t\t\tclassName=\"dropzone--helper\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{strings.helper}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t)}\n\t\t\t\t</span>\n\t\t\t</label>\n\n\t\t\t{!!children && <div className=\"dropzone--action\">{children}</div>}\n\t\t</div>\n\t);\n}\n\nconst Dropzone = forwardRef<HTMLInputElement, DropzoneProps>(DropzoneImpl);\nDropzone.displayName = 'Dropzone';\n\nexport { Dropzone };\n","/**\n * UploadProgressList — render-only list of in-flight uploads. Each row shows\n * a status icon (queued / uploading / done / error / cancelled), filename,\n * size, a progress bar driven by `progress` (0–100), and an action button\n * that maps to the row's status (cancel while uploading, retry on error,\n * remove when done). Pair with FileUpload / MediaGallery / Dropzone — those\n * components emit raw `File` instances; this one displays the upload UI\n * once the consumer has wired them to its API.\n *\n * Strings overridable for i18n.\n */\nimport { AlertCircle, Check, Clock, RefreshCw, UploadCloud, X, Eye, Download } from 'lucide-react';\nimport { Button } from '../buttons';\nimport { Stack } from '../structure';\nimport { SecondaryValue } from '../../primitives';\nimport { Attachment, AttachmentMedia, AttachmentContent, AttachmentTitle, AttachmentDescription, AttachmentActions, AttachmentProgress, AttachmentFileIcon, type AttachmentKind } from '../attachment';\nimport { FileSize } from '../../primitives';\nimport { Text } from '../../typography';\nimport { useStrings, type StringsProp } from '../../../lib/strings';\nimport { cn } from '../../../lib/utils';\n\nexport type UploadStatus = 'queued' | 'uploading' | 'done' | 'error' | 'cancelled';\n\nexport interface UploadItem {\n\t/** Stable identity for this entry. */\n\tid: string;\n\t/** Displayed file name. */\n\tname: string;\n\t/** Pre-formatted size string (e.g. \"2.4 MB\"). */\n\tsize?: string;\n\t/** Numeric file size used when the formatted size is absent. */\n\tbytes?: number;\n\tkind?: AttachmentKind;\n\t/** Upload progress 0–100. Omit for an indeterminate transfer. Ignored when status is `done`/`error`/`cancelled`. */\n\tprogress?: number;\n\tstatus: UploadStatus;\n\t/** Error message rendered under the row when status is `error`. */\n\terror?: string;\n\t/**\n\t * Optional thumbnail URL, shown in place of the status icon.\n\t * The status remains visible beside the file name.\n\t */\n\tpreview?: string;\n}\n\nexport interface UploadProgressListStrings {\n\tqueued: string;\n\tuploading: string;\n\tdone: string;\n\terror: string;\n\tcancelled: string;\n\tcancel: string;\n\tretry: string;\n\tremove: string;\n\tpreview?: string;\n\tdownload?: string;\n}\n\nexport const defaultUploadProgressListStrings: UploadProgressListStrings = {\n\tqueued: 'Queued',\n\tuploading: 'Uploading',\n\tdone: 'Uploaded',\n\terror: 'Failed',\n\tcancelled: 'Cancelled',\n\tcancel: 'Cancel',\n\tretry: 'Retry',\n\tremove: 'Remove',\n\tpreview: 'Preview',\n\tdownload: 'Download',\n};\n\nexport interface UploadProgressListProps {\n\t/** Entries to render, in order. */\n\titems: UploadItem[];\n\t/** File preview action; consumers own the effect. */\n\tonPreview?: (id: string) => void;\n\t/** Download action for completed files. Receives the stable item identity. */\n\tonDownload?: (id: string) => void;\n\tonCancel?: (id: string) => void;\n\tonRetry?: (id: string) => void;\n\tonRemove?: (id: string) => void;\n\tclassName?: string;\n\t/** Overrides this surface's own copy. */\n\tstrings?: StringsProp<UploadProgressListStrings>;\n}\n\nconst STATUS_TONE: Record<UploadStatus, { icon: typeof Check; fg: string }> = {\n\tqueued: { icon: Clock, fg: 'text-muted-foreground' },\n\tuploading: { icon: UploadCloud, fg: 'text-primary-accent' },\n\tdone: { icon: Check, fg: 'text-success' },\n\terror: { icon: AlertCircle, fg: 'text-destructive' },\n\tcancelled: { icon: X, fg: 'text-muted-foreground' },\n};\n\nexport function UploadProgressList({\n\titems,\n\tonPreview,\n\tonDownload,\n\tonCancel,\n\tonRetry,\n\tonRemove,\n\tclassName,\n\tstrings: stringsProp,\n}: UploadProgressListProps) {\n\tconst strings = useStrings(defaultUploadProgressListStrings, stringsProp);\n\tconst statusLabel: Record<UploadStatus, string> = {\n\t\tqueued: strings.queued,\n\t\tuploading: strings.uploading,\n\t\tdone: strings.done,\n\t\terror: strings.error,\n\t\tcancelled: strings.cancelled,\n\t};\n\n\tif (items.length === 0) return null;\n\n\treturn (\n\t\t<Stack render={<ul />} gap=\"sm\" className={cn('upload-progress-list--component', className)}>\n\t\t\t{items.map((item) => {\n\t\t\t\tconst tone = STATUS_TONE[item.status];\n\t\t\t\tconst Icon = tone.icon;\n\t\t\t\tconst pct = item.progress === undefined ? null : Number.isFinite(item.progress) ? Math.max(0, Math.min(100, item.progress ?? 0)) : 0;\n\t\t\t\tconst showProgress = item.status === 'uploading' || item.status === 'queued';\n\t\t\t\treturn (\n\t\t\t\t\t<Attachment key={item.id} render={<li />} variant=\"outline\" className=\"upload-progress-list--item flex-nowrap bg-card text-card-foreground\">\n\t\t\t\t\t\t<AttachmentMedia variant={item.preview ? 'image' : 'icon'} className={cn('upload-progress-list--media self-center group-has-data-[slot=item-description]/item:self-center', tone.fg)}>\n\t\t\t\t\t\t\t{item.preview ? <img src={item.preview} alt=\"\" /> : item.status === 'done' ? <AttachmentFileIcon name={item.name} kind={item.kind} /> : <Icon aria-hidden=\"true\" className={cn('size-icon', item.status === 'uploading' && 'animate-pulse motion-reduce:animate-none')} />}\n\t\t\t\t\t\t</AttachmentMedia>\n\t\t\t\t\t\t<AttachmentContent className=\"min-w-0 gap-space-xs\">\n\t\t\t\t\t\t\t<Stack direction=\"horizontal\" align=\"baseline\" justify=\"between\" gap=\"md\" wrap>\n\t\t\t\t\t\t\t\t<AttachmentTitle className=\"min-w-0 max-w-full\" title={item.name}><Text tag=\"span\" weight=\"medium\" className=\"truncate\">{item.name}</Text></AttachmentTitle>\n\t\t\t\t\t\t\t\t<SecondaryValue size=\"xs\" className=\"shrink-0 tabular-nums\">{item.size ?? (item.bytes !== undefined ? <FileSize value={item.bytes} size=\"xs\" type=\"secondary\" /> : null)}</SecondaryValue>\n\t\t\t\t\t\t\t</Stack>\n\t\t\t\t\t\t\t<AttachmentDescription clamp=\"none\"><Text tag=\"span\" size=\"xs\" lineHeight=\"tight\" type={item.status === 'error' ? 'error' : 'secondary'} role={item.status === 'error' ? 'alert' : undefined}>{`${statusLabel[item.status]}${item.status === 'error' && item.error ? ` — ${item.error}` : ''}`}</Text></AttachmentDescription>\n\t\t\t\t\t\t\t{showProgress && <AttachmentProgress value={item.status === 'queued' && pct === null ? 0 : pct} aria-label={item.name} size=\"sm\" tone={item.status === 'queued' ? 'neutral' : 'primary'} className=\"upload-progress-list--progress\" />}\n\t\t\t\t\t\t</AttachmentContent>\n\t\t\t\t\t\t<AttachmentActions className=\"shrink-0\">\n {!!onPreview && <Button type=\"button\" tone=\"secondary\" buttonStyle=\"ghost\" size=\"sm\" iconOnly aria-label={`${strings.preview ?? 'Preview'} ${item.name}`} onClick={() => onPreview(item.id)}><Eye aria-hidden=\"true\" className=\"size-icon-md\" /></Button>}\n {!!onDownload && item.status === 'done' && <Button type=\"button\" tone=\"secondary\" buttonStyle=\"ghost\" size=\"sm\" iconOnly aria-label={`${strings.download ?? 'Download'} ${item.name}`} onClick={() => onDownload(item.id)}><Download aria-hidden=\"true\" className=\"size-icon-md\" /></Button>}\n\n\t\t\t\t\t\t\t\t{(item.status === 'uploading' || item.status === 'queued') && !!onCancel && (\n\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\t\t\ttone=\"secondary\"\n\t\t\t\t\t\t\t\t\t\tbuttonStyle=\"ghost\"\n\t\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\t\ticonOnly\n\t\t\t\t\t\t\t\t\t\taria-label={`${strings.cancel} ${item.name}`}\n\t\t\t\t\t\t\t\t\t\tonClick={() => onCancel(item.id)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<X className=\"size-icon-md\" />\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t{item.status === 'error' && !!onRetry && (\n\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\t\t\ttone=\"secondary\"\n\t\t\t\t\t\t\t\t\t\tbuttonStyle=\"ghost\"\n\t\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\t\ticonOnly\n\t\t\t\t\t\t\t\t\t\taria-label={`${strings.retry} ${item.name}`}\n\t\t\t\t\t\t\t\t\t\tonClick={() => onRetry(item.id)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<RefreshCw className=\"size-icon-md\" />\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t{(item.status === 'done' || item.status === 'error' || item.status === 'cancelled' || (item.status === 'queued' && !onCancel)) && !!onRemove && (\n\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\t\t\ttone=\"secondary\"\n\t\t\t\t\t\t\t\t\t\tbuttonStyle=\"ghost\"\n\t\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\t\ticonOnly\n\t\t\t\t\t\t\t\t\t\taria-label={`${strings.remove} ${item.name}`}\n\t\t\t\t\t\t\t\t\t\tonClick={() => onRemove(item.id)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<X className=\"size-icon-md\" />\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</AttachmentActions>\n\t\t\t\t\t</Attachment>\n\t\t\t\t);\n\t\t\t})}\n\t\t</Stack>\n\t);\n}\n\nUploadProgressList.displayName = 'UploadProgressList';\n","/**\n * UploadTray — the canonical \"drag-and-drop area + per-file progress\n * rows + summary toolbar\" surface. Composes:\n *\n * - `Dropzone` — drag/drop chrome + click-to-browse\n * - `UploadProgressList` — per-file row with status icon + progress\n * bar + cancel/retry/remove actions\n * - `Badge` — status counters in the toolbar\n * - `Button` — \"Clear all\" action\n *\n * Framework-agnostic. Every action is callback-driven — the library\n * doesn't perform the upload; it surfaces the UX. The consumer wires\n * the actual transfer (XHR, fetch, S3 multipart, …) and feeds back\n * `progress` / `status` updates by mutating the `items` array.\n *\n * Pair with `useFiles` (the existing client-side validation hook) at\n * the call site if you want pre-flight size/type rejection.\n */\nimport { forwardRef, useCallback } from 'react';\n\nimport { Badge } from '../badge';\nimport { Button } from '../buttons';\nimport { Stack } from '../structure';\nimport { Text } from '../../typography';\nimport { useStrings, type StringsProp } from '../../../lib/strings';\nimport { cn } from '../../../lib/utils';\n\nimport { Dropzone, type DropzoneProps } from '../upload/dropzone';\nimport { UploadProgressList, type UploadItem, type UploadProgressListStrings } from './upload-progress-list';\n\nexport interface UploadTrayStrings {\n\theading: string;\n\tcompletedLabel: string;\n\tfailedLabel: string;\n\tuploadingLabel: string;\n\tqueuedLabel: string;\n\tclearAll: string;\n}\n\nexport const defaultUploadTrayStrings: UploadTrayStrings = {\n\theading: 'Upload progress',\n\tcompletedLabel: 'Completed',\n\tfailedLabel: 'Failed',\n\tuploadingLabel: 'Uploading',\n\tqueuedLabel: 'Queued',\n\tclearAll: 'Clear all',\n};\n\nexport interface UploadTrayProps {\n\t/** Files currently in the tray (queued / uploading / done / error / cancelled). */\n\titems: UploadItem[];\n\t/**\n\t * Fires when the user drops or browses files. The library does NOT\n\t * write to the items array — the consumer turns these into queued\n\t * `UploadItem`s, kicks off the actual transfer, and updates progress.\n\t */\n\tonAddFiles: (files: File[]) => void;\n\t/** Preview callback forwarded with the item identity. */\n\tonPreview?: (id: string) => void;\n\t/** Download callback for completed files, forwarded with the item identity. */\n\tonDownload?: (id: string) => void;\n\t/** Per-row cancel handler (passed through to UploadProgressList). */\n\tonCancel?: (id: string) => void;\n\t/** Per-row retry handler. */\n\tonRetry?: (id: string) => void;\n\t/** Per-row remove handler. */\n\tonRemove?: (id: string) => void;\n\t/**\n\t * Clears the entire tray. When omitted, the \"Clear all\" button is\n\t * hidden — useful for surfaces where in-flight uploads can't be\n\t * cancelled in bulk.\n\t */\n\tonClearAll?: () => void;\n\t/** Forwarded to the inner `<Dropzone>`. Only the meaningful subset. */\n\tdropzone?: Pick<DropzoneProps, 'accept' | 'multiple' | 'size' | 'disabled' | 'invalid' | 'strings'>;\n\tclassName?: string;\n\t/** Overrides this surface's own copy. */\n\tstrings?: StringsProp<UploadTrayStrings>;\n\t/** Strings forwarded to the inner `<UploadProgressList>`. */\n\tlistStrings?: StringsProp<UploadProgressListStrings>;\n}\n\nfunction countStatus(items: UploadItem[]) {\n\tlet completed = 0;\n\tlet failed = 0;\n\tlet uploading = 0;\n\tlet queued = 0;\n\tfor (const item of items) {\n\t\tif (item.status === 'done') completed += 1;\n\t\telse if (item.status === 'error') failed += 1;\n\t\telse if (item.status === 'uploading') uploading += 1;\n\t\telse if (item.status === 'queued') queued += 1;\n\t}\n\treturn { completed, failed, uploading, queued };\n}\n\nexport const UploadTray = forwardRef<HTMLDivElement, UploadTrayProps>(function UploadTray(\n\t{\n\t\titems,\n\t\tonAddFiles,\n\t\tonPreview,\n\t\tonDownload,\n\t\tonCancel,\n\t\tonRetry,\n\t\tonRemove,\n\t\tonClearAll,\n\t\tdropzone,\n\t\tclassName,\n\t\tstrings: stringsProp,\n\t\tlistStrings,\n\t},\n\tref,\n) {\n\tconst strings = useStrings(defaultUploadTrayStrings, stringsProp);\n\tconst { completed, failed, uploading, queued } = countStatus(items);\n\n\tconst handleDrop = useCallback(\n\t\t(files: File[]) => {\n\t\t\tif (files.length > 0) onAddFiles(files);\n\t\t},\n\t\t[onAddFiles],\n\t);\n\n\tconst hasItems = items.length > 0;\n\n\treturn (\n\t\t<Stack ref={ref} gap=\"md\" className={cn('upload-tray--component', className)}>\n\t\t\t<Dropzone\n\t\t\t\tonDrop={handleDrop}\n\t\t\t\taccept={dropzone?.accept}\n\t\t\t\tmultiple={dropzone?.multiple}\n\t\t\t\tsize={dropzone?.size}\n\t\t\t\tdisabled={dropzone?.disabled}\n\t\t\t\tinvalid={dropzone?.invalid}\n\t\t\t\tstrings={dropzone?.strings}\n\t\t\t/>\n\n\t\t\t{!!hasItems && (\n\t\t\t\t<>\n\t\t\t\t\t<Stack direction=\"horizontal\" wrap align=\"center\" justify=\"between\" gap=\"md\">\n\t\t\t\t\t\t<Stack direction=\"horizontal\" wrap align=\"center\" gap=\"md\">\n\t\t\t\t\t\t\t<Text tag=\"span\" weight=\"semibold\">\n\t\t\t\t\t\t\t\t{strings.heading}\n\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t\t{completed > 0 && (\n\t\t\t\t\t\t\t\t<Badge tone=\"success\">\n\t\t\t\t\t\t\t\t\t{strings.completedLabel}: {completed}\n\t\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{failed > 0 && (\n\t\t\t\t\t\t\t\t<Badge tone=\"destructive\">\n\t\t\t\t\t\t\t\t\t{strings.failedLabel}: {failed}\n\t\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{uploading > 0 && (\n\t\t\t\t\t\t\t\t<Badge tone=\"info\">\n\t\t\t\t\t\t\t\t\t{strings.uploadingLabel}: {uploading}\n\t\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{queued > 0 && (\n\t\t\t\t\t\t\t\t<Badge tone=\"secondary\">\n\t\t\t\t\t\t\t\t\t{strings.queuedLabel}: {queued}\n\t\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</Stack>\n\t\t\t\t\t\t{!!onClearAll && (\n\t\t\t\t\t\t\t<Button type=\"button\" tone=\"secondary\" buttonStyle=\"ghost\" onClick={onClearAll}>\n\t\t\t\t\t\t\t\t{strings.clearAll}\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Stack>\n\n\t\t\t\t\t<UploadProgressList\n\t\t\t\t\t\titems={items}\n\t\t\t\t\t\tonPreview={onPreview}\n\t\t\t\t\t\tonDownload={onDownload}\n\t\t\t\t\t\tonCancel={onCancel}\n\t\t\t\t\t\tonRetry={onRetry}\n\t\t\t\t\t\tonRemove={onRemove}\n\t\t\t\t\t\tstrings={listStrings}\n\t\t\t\t\t/>\n\t\t\t\t</>\n\t\t\t)}\n\t\t</Stack>\n\t);\n});\n\nUploadT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kBAAC0B,GAAD;GACC,QAAQ8B;GACR,QAAQI,GAAU;GAClB,UAAUA,GAAU;GACpB,MAAMA,GAAU;GAChB,UAAUA,GAAU;GACpB,SAASA,GAAU;GACnB,SAASA,GAAU;EACnB,CAAA,GAEA,CAAC,CAACD,KACF,kBAAAvF,GAAA,EAAA,UAAA,CACC,kBAACK,GAAD;GAAO,WAAU;GAAa,MAAA;GAAK,OAAM;GAAS,SAAQ;GAAU,KAAI;GAAxE,UAAA,CACC,kBAACA,GAAD;IAAO,WAAU;IAAa,MAAA;IAAK,OAAM;IAAS,KAAI;IAAtD,UAAA;KACC,kBAAC+C,GAAD;MAAM,KAAI;MAAO,QAAO;MACtB,UAAAf,EAAQ;KACJ,CAAA;KACL0C,IAAY,KACZ,kBAACvE,GAAD;MAAO,MAAK;MAAZ,UAAA;OACE6B,EAAQ;OAAe;OAAG0C;MACrB;;KAEPC,IAAS,KACT,kBAACxE,GAAD;MAAO,MAAK;MAAZ,UAAA;OACE6B,EAAQ;OAAY;OAAG2C;MAClB;;KAEPC,IAAY,KACZ,kBAACzE,GAAD;MAAO,MAAK;MAAZ,UAAA;OACE6B,EAAQ;OAAe;OAAG4C;MACrB;;KAEPC,IAAS,KACT,kBAAC1E,GAAD;MAAO,MAAK;MAAZ,UAAA;OACE6B,EAAQ;OAAY;OAAG6C;MAClB;;IAEF;GACN,CAAA,GAAA,CAAC,CAACO,KACF,kBAACrF,GAAD;IAAQ,MAAK;IAAS,MAAK;IAAY,aAAY;IAAQ,SAASqF;IAClE,UAAApD,EAAQ;GACF,CAAA,CAEH;EAEP,CAAA,GAAA,kBAACwB,GAAD;GACQ;GACI;GACC;GACF;GACD;GACC;GACV,SAAS6B;EACT,CAAA,CACA,EAAA,CAAA,CAEG;;AAET,CAAC;AAED,EAAW,cAAc"}
@@ -0,0 +1,458 @@
1
+ "use client";
2
+ import { c as e } from "./ui-provider-CftIB6TY.js";
3
+ import { useStrings as t } from "./lib/strings.js";
4
+ import { t as n } from "./utils-C2EKeIw3.js";
5
+ import { n as r } from "./buttons-Co6GavvM.js";
6
+ import { a as i, r as a } from "./typography-Cv8MT-82.js";
7
+ import { r as o, t as s } from "./structure-MvKVq-oL.js";
8
+ import { t as c } from "./smart-card-CYLn46e6.js";
9
+ import { i as l, t as u } from "./progress-BOe8l_FZ.js";
10
+ import { n as d, t as f } from "./number-BNT_BIzJ.js";
11
+ import { i as p, n as m, r as h, t as g } from "./tabs-B5cNMWiP.js";
12
+ import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
13
+ //#region src/components/blocks/analytics/usage-card/usage-card.data.ts
14
+ function b(e) {
15
+ return typeof e == "number" && Number.isFinite(e) && e >= 0 ? e : null;
16
+ }
17
+ function x(e, t, n = 1) {
18
+ if (b(e) === null || b(t) === null) return !0;
19
+ let r = Math.max(e, t) * 2 ** -52 * Math.max(1, n);
20
+ return e - t > r;
21
+ }
22
+ function S(e, t) {
23
+ let n = b(e), r = b(t), i = n === null ? "unavailable" : t === null ? "unlimited" : r === null ? "unavailable" : "limited", a = n !== null && r !== null && r > 0 ? n / r * 100 : n === 0 && r === 0 ? 0 : null;
24
+ return {
25
+ kind: i,
26
+ used: n,
27
+ limit: r,
28
+ percent: a !== null && Number.isFinite(a) ? a : null,
29
+ progress: i === "limited" ? r === 0 ? n === 0 ? 0 : 100 : Math.min(100, a ?? 0) : null,
30
+ remaining: i === "limited" ? Math.max(0, (r ?? 0) - (n ?? 0)) : null,
31
+ excess: i === "limited" ? Math.max(0, (n ?? 0) - (r ?? 0)) : null
32
+ };
33
+ }
34
+ function C(e) {
35
+ let t = e.map((e) => b(e.value)), n = t.length > 0 && t.every((e) => e !== null), r = t.reduce((e, t) => Math.max(e, t ?? 0), 0);
36
+ return {
37
+ values: t,
38
+ average: n ? t.reduce((e, n) => e + (n ?? 0) / t.length, 0) : null,
39
+ maximum: r > 0 ? r : 1
40
+ };
41
+ }
42
+ //#endregion
43
+ //#region src/components/blocks/analytics/usage-card/usage-card.strings.ts
44
+ var w = {
45
+ title: "Usage",
46
+ usage: "Usage",
47
+ used: "used",
48
+ of: "of",
49
+ unlimited: "Unlimited",
50
+ unavailable: "Unavailable",
51
+ remaining: "remaining",
52
+ overLimit: "over limit",
53
+ breakdown: "Usage breakdown",
54
+ inconsistentBreakdown: "Category totals exceed reported usage.",
55
+ daily: "Daily usage",
56
+ average: "Average",
57
+ perDay: "per day",
58
+ resources: "Resources",
59
+ periods: "Usage period",
60
+ loading: "Loading usage",
61
+ error: "Unable to load usage",
62
+ empty: "No usage data",
63
+ retry: "Retry"
64
+ }, T = [
65
+ "bg-chart-1",
66
+ "bg-chart-2",
67
+ "bg-chart-3",
68
+ "bg-chart-4",
69
+ "bg-chart-5"
70
+ ];
71
+ function E(e, t) {
72
+ return T[(e.color === void 0 ? t : e.color - 1) % T.length];
73
+ }
74
+ function D({ quota: e, strings: t, prominent: n = !1 }) {
75
+ let r = S(e.used, e.limit);
76
+ return /* @__PURE__ */ y(s, {
77
+ gap: "dense",
78
+ className: "usage-card--quota",
79
+ children: [
80
+ /* @__PURE__ */ y(s, {
81
+ direction: "horizontal",
82
+ gap: "xs",
83
+ align: "baseline",
84
+ children: [
85
+ /* @__PURE__ */ v(f, {
86
+ value: r.used,
87
+ emptyLabel: t.unavailable,
88
+ size: n ? "xl" : void 0,
89
+ weight: n ? "semibold" : "medium",
90
+ align: "left"
91
+ }),
92
+ !n && r.kind === "limited" && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(i, {
93
+ tag: "span",
94
+ type: "secondary",
95
+ children: t.of
96
+ }), /* @__PURE__ */ v(f, {
97
+ value: r.limit,
98
+ type: "secondary",
99
+ align: "left"
100
+ })] }),
101
+ e.unit && /* @__PURE__ */ v(i, {
102
+ tag: "span",
103
+ type: "secondary",
104
+ children: e.unit
105
+ }),
106
+ n && r.used !== null && /* @__PURE__ */ v(i, {
107
+ tag: "span",
108
+ size: "xs",
109
+ type: "secondary",
110
+ children: t.used
111
+ })
112
+ ]
113
+ }),
114
+ n && r.kind === "limited" && /* @__PURE__ */ y(s, {
115
+ direction: "horizontal",
116
+ gap: "xs",
117
+ align: "baseline",
118
+ children: [/* @__PURE__ */ v(i, {
119
+ tag: "span",
120
+ size: "xs",
121
+ type: "secondary",
122
+ children: t.of
123
+ }), /* @__PURE__ */ v(f, {
124
+ value: r.limit,
125
+ size: "xs",
126
+ type: "secondary",
127
+ align: "left"
128
+ })]
129
+ }),
130
+ r.kind === "unlimited" && /* @__PURE__ */ v(i, {
131
+ tag: "span",
132
+ size: "xs",
133
+ type: "secondary",
134
+ children: t.unlimited
135
+ }),
136
+ r.kind === "unavailable" && r.used !== null && /* @__PURE__ */ v(i, {
137
+ tag: "span",
138
+ size: "xs",
139
+ type: "secondary",
140
+ children: t.unavailable
141
+ })
142
+ ]
143
+ });
144
+ }
145
+ function O({ quota: t, label: r, strings: i, categories: a }) {
146
+ let o = S(t.used, t.limit), s = e();
147
+ if (o.kind !== "limited") return null;
148
+ let c = a?.reduce((e, t) => e + (b(t.value) ?? 0), 0) ?? 0, d = !!a?.length && a.every((e) => b(e.value) !== null) && !x(c, o.used ?? 0, a.length), f = Math.max(o.limit ?? 0, o.used ?? 0), p = f > 0 ? f : 1, m = x(o.used ?? 0, c, a?.length) ? (o.used ?? 0) - c : 0, h = new Intl.NumberFormat(s.locale);
149
+ return /* @__PURE__ */ v(u, {
150
+ value: o.progress ?? 0,
151
+ "aria-label": r,
152
+ getAriaValueText: () => `${h.format(o.used ?? 0)} ${i.of} ${h.format(o.limit ?? 0)} ${t.unit ?? ""} ${i.used}`,
153
+ tone: o.excess ? "destructive" : "primary",
154
+ trackSlot: d ? /* @__PURE__ */ y(l, { children: [a?.map((e, t) => /* @__PURE__ */ v("span", {
155
+ "aria-hidden": "true",
156
+ className: n("h-full shrink-0", E(e, t)),
157
+ style: { width: `${(e.value ?? 0) / p * 100}%` }
158
+ }, e.id)), m > 0 && /* @__PURE__ */ v("span", {
159
+ "aria-hidden": "true",
160
+ className: "h-full shrink-0 bg-primary",
161
+ style: { width: `${m / p * 100}%` }
162
+ })] }) : void 0
163
+ });
164
+ }
165
+ function k({ days: e, unit: t, strings: n }) {
166
+ let r = C(e);
167
+ return /* @__PURE__ */ y(s, {
168
+ gap: "sm",
169
+ className: "usage-card--daily",
170
+ children: [
171
+ /* @__PURE__ */ y(s, {
172
+ direction: "horizontal",
173
+ justify: "between",
174
+ align: "baseline",
175
+ gap: "sm",
176
+ children: [/* @__PURE__ */ v(a, { children: n.daily }), /* @__PURE__ */ y(s, {
177
+ direction: "horizontal",
178
+ gap: "xs",
179
+ align: "baseline",
180
+ children: [
181
+ /* @__PURE__ */ v(i, {
182
+ tag: "span",
183
+ size: "xs",
184
+ type: "secondary",
185
+ children: n.average
186
+ }),
187
+ /* @__PURE__ */ v(f, {
188
+ value: r.average,
189
+ emptyLabel: n.unavailable,
190
+ options: { maximumFractionDigits: 0 },
191
+ weight: "medium"
192
+ }),
193
+ /* @__PURE__ */ v(i, {
194
+ tag: "span",
195
+ size: "xs",
196
+ type: "secondary",
197
+ children: n.perDay
198
+ })
199
+ ]
200
+ })]
201
+ }),
202
+ e.length > 0 && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("svg", {
203
+ viewBox: `0 0 ${e.length * 10} 40`,
204
+ preserveAspectRatio: "none",
205
+ "aria-hidden": "true",
206
+ className: "usage-card--daily-chart h-control-lg w-full overflow-visible",
207
+ children: r.values.map((e, t) => e === null ? null : /* @__PURE__ */ v("rect", {
208
+ x: t * 10 + 1,
209
+ y: 40 - e / r.maximum * 40,
210
+ width: 8,
211
+ height: e / r.maximum * 40,
212
+ className: "fill-chart-1"
213
+ }, t))
214
+ }), /* @__PURE__ */ y(s, {
215
+ direction: "horizontal",
216
+ justify: "between",
217
+ gap: "sm",
218
+ "aria-hidden": "true",
219
+ children: [/* @__PURE__ */ v(i, {
220
+ size: "xs",
221
+ type: "secondary",
222
+ children: e[0]?.label
223
+ }), e.length > 1 && /* @__PURE__ */ v(i, {
224
+ size: "xs",
225
+ type: "secondary",
226
+ children: e[e.length - 1]?.label
227
+ })]
228
+ })] }),
229
+ /* @__PURE__ */ v("ol", {
230
+ className: "sr-only",
231
+ "aria-label": n.daily,
232
+ children: e.map((e, r) => /* @__PURE__ */ y("li", { children: [
233
+ e.label,
234
+ ": ",
235
+ /* @__PURE__ */ v(f, {
236
+ value: b(e.value),
237
+ emptyLabel: n.unavailable
238
+ }),
239
+ " ",
240
+ t
241
+ ] }, r))
242
+ })
243
+ ]
244
+ });
245
+ }
246
+ function A({ data: e, strings: t }) {
247
+ let r = S(e.used, e.limit), c = e.categories?.reduce((e, t) => e + (b(t.value) ?? 0), 0) ?? 0, l = r.used !== null && x(c, r.used, e.categories?.length);
248
+ return /* @__PURE__ */ y(s, {
249
+ gap: "lg",
250
+ children: [
251
+ /* @__PURE__ */ y(s, {
252
+ gap: "md",
253
+ className: "usage-card--summary",
254
+ children: [
255
+ /* @__PURE__ */ y(s, {
256
+ direction: "horizontal",
257
+ justify: "between",
258
+ align: "start",
259
+ gap: "sm",
260
+ children: [/* @__PURE__ */ v(D, {
261
+ quota: e,
262
+ strings: t,
263
+ prominent: !0
264
+ }), r.percent !== null && /* @__PURE__ */ v(d, {
265
+ value: r.percent,
266
+ scaled: !0,
267
+ size: "lg",
268
+ weight: "medium",
269
+ type: "secondary",
270
+ options: { maximumFractionDigits: 0 }
271
+ })]
272
+ }),
273
+ /* @__PURE__ */ v(O, {
274
+ quota: e,
275
+ label: t.usage,
276
+ strings: t,
277
+ categories: e.categories
278
+ }),
279
+ !!e.categories?.length && /* @__PURE__ */ v(o, {
280
+ render: /* @__PURE__ */ v("ul", { "aria-label": t.breakdown }),
281
+ columns: 3,
282
+ gap: "sm",
283
+ className: "usage-card--categories grid-cols-[minmax(0,1fr)_auto_minmax(5ch,max-content)]",
284
+ children: e.categories.map((e, a) => {
285
+ let o = b(e.value), c = r.used === null || o === null || l ? null : r.used === 0 ? 0 : o / r.used;
286
+ return /* @__PURE__ */ y("li", {
287
+ className: "usage-card--category col-span-full grid grid-cols-subgrid items-baseline",
288
+ children: [
289
+ /* @__PURE__ */ y(s, {
290
+ direction: "horizontal",
291
+ gap: "sm",
292
+ align: "center",
293
+ wrap: !1,
294
+ className: "min-w-0",
295
+ children: [/* @__PURE__ */ v("span", {
296
+ "aria-hidden": "true",
297
+ className: n("size-icon-sm shrink-0 rounded-full", E(e, a))
298
+ }), /* @__PURE__ */ v(i, {
299
+ tag: "span",
300
+ className: "break-words",
301
+ children: e.label
302
+ })]
303
+ }),
304
+ /* @__PURE__ */ v(f, {
305
+ value: o,
306
+ emptyLabel: t.unavailable,
307
+ weight: "medium",
308
+ className: "usage-card--category-value"
309
+ }),
310
+ /* @__PURE__ */ v(d, {
311
+ value: c,
312
+ emptyLabel: t.unavailable,
313
+ type: "secondary",
314
+ options: { maximumFractionDigits: 0 },
315
+ className: "usage-card--category-share"
316
+ })
317
+ ]
318
+ }, e.id);
319
+ })
320
+ }),
321
+ l && /* @__PURE__ */ v(i, {
322
+ size: "xs",
323
+ type: "secondary",
324
+ children: t.inconsistentBreakdown
325
+ })
326
+ ]
327
+ }),
328
+ e.daily && /* @__PURE__ */ v(k, {
329
+ days: e.daily,
330
+ unit: e.unit,
331
+ strings: t
332
+ }),
333
+ !!e.resources?.length && /* @__PURE__ */ y(s, {
334
+ gap: "sm",
335
+ children: [/* @__PURE__ */ v(a, { children: t.resources }), /* @__PURE__ */ v(o, {
336
+ columns: 1,
337
+ gap: "md",
338
+ className: "usage-card--resources @sm/card:grid-cols-3",
339
+ children: e.resources.map((e) => /* @__PURE__ */ y(s, {
340
+ gap: "sm",
341
+ className: "usage-card--resource min-w-0",
342
+ role: "group",
343
+ "aria-label": e.label,
344
+ children: [
345
+ /* @__PURE__ */ v(i, {
346
+ tag: "span",
347
+ weight: "medium",
348
+ children: e.label
349
+ }),
350
+ /* @__PURE__ */ v(D, {
351
+ quota: e,
352
+ strings: t
353
+ }),
354
+ /* @__PURE__ */ v(O, {
355
+ quota: e,
356
+ label: e.label,
357
+ strings: t
358
+ })
359
+ ]
360
+ }, e.id))
361
+ })]
362
+ })
363
+ ]
364
+ });
365
+ }
366
+ function j({ data: e, status: a = "ready", periods: o, period: l, onPeriodChange: u, onRetry: d, loadingSlot: _, errorSlot: b, emptySlot: x, footerAction: C, strings: T, ...E }) {
367
+ let D = t(w, T), O = a === "ready" && !!e, k = O ? S(e.used, e.limit) : null, j = l ?? o?.[0]?.value ?? "", M = !!o?.length, N;
368
+ N = a === "loading" ? /* @__PURE__ */ v("div", {
369
+ role: "status",
370
+ children: _ ?? /* @__PURE__ */ v(i, {
371
+ type: "secondary",
372
+ children: D.loading
373
+ })
374
+ }) : a === "error" ? /* @__PURE__ */ y(s, {
375
+ role: "alert",
376
+ gap: "sm",
377
+ children: [b ?? /* @__PURE__ */ v(i, { children: D.error }), d && /* @__PURE__ */ v(r, {
378
+ tone: "secondary",
379
+ onClick: d,
380
+ children: D.retry
381
+ })]
382
+ }) : O ? /* @__PURE__ */ v(A, {
383
+ data: e,
384
+ strings: D
385
+ }) : /* @__PURE__ */ v("div", { children: x ?? /* @__PURE__ */ v(i, {
386
+ type: "secondary",
387
+ children: D.empty
388
+ }) });
389
+ let P = (k?.kind === "limited" || C) && /* @__PURE__ */ y(s, {
390
+ direction: "horizontal",
391
+ justify: "between",
392
+ align: "center",
393
+ gap: "md",
394
+ children: [k?.kind === "limited" && /* @__PURE__ */ y(s, {
395
+ direction: "horizontal",
396
+ gap: "xs",
397
+ align: "baseline",
398
+ children: [
399
+ /* @__PURE__ */ v(f, {
400
+ value: k.excess ? k.excess : k.remaining,
401
+ weight: "medium"
402
+ }),
403
+ e?.unit && /* @__PURE__ */ v(i, {
404
+ tag: "span",
405
+ type: "secondary",
406
+ children: e.unit
407
+ }),
408
+ /* @__PURE__ */ v(i, {
409
+ tag: "span",
410
+ type: "secondary",
411
+ children: k.excess ? D.overLimit : D.remaining
412
+ })
413
+ ]
414
+ }), C]
415
+ }), F = /* @__PURE__ */ v(c, {
416
+ ...E,
417
+ title: E.title ?? D.title,
418
+ className: n("usage-card--component min-w-0", E.className),
419
+ "data-component": "usage-card",
420
+ "data-slot": "usage-card",
421
+ "aria-busy": a === "loading" || void 0,
422
+ headerClassName: M ? "@sm/card:flex-col @lg/card:flex-row" : void 0,
423
+ headerAction: M ? /* @__PURE__ */ y(s, {
424
+ direction: "horizontal",
425
+ gap: "sm",
426
+ align: "center",
427
+ className: "usage-card--header-actions max-w-full",
428
+ children: [/* @__PURE__ */ v(h, {
429
+ "aria-label": D.periods,
430
+ className: "max-w-full flex-wrap",
431
+ children: o.map((e) => /* @__PURE__ */ v(p, {
432
+ value: e.value,
433
+ disabled: e.disabled || !u,
434
+ children: e.label
435
+ }, e.value))
436
+ }), E.headerAction]
437
+ }) : E.headerAction,
438
+ footerSlot: P,
439
+ footerDivider: !!P,
440
+ children: M ? /* @__PURE__ */ v(m, {
441
+ value: j,
442
+ children: N
443
+ }) : N
444
+ });
445
+ return M ? /* @__PURE__ */ v(g, {
446
+ value: j,
447
+ onValueChange: (e) => {
448
+ typeof e == "string" && u?.(e);
449
+ },
450
+ className: "min-w-0",
451
+ children: F
452
+ }) : F;
453
+ }
454
+ j.displayName = "UsageCard";
455
+ //#endregion
456
+ export { w as n, j as t };
457
+
458
+ //# sourceMappingURL=usage-card-DnmnJ58D.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-card-DnmnJ58D.js","names":["NumberValue","_Fragment","useFormattingConfig","cn","Button","Text","DisplayLabel","Grid","Stack","Card","ProgressTrack","Progress","Percent","Number$1","TabsTrigger","TabsContent","TabsList","Tabs","validUsage","value","usageExceeds","actual","expected","tolerance","terms","quotaSummary","used","usedValue","limit","limitValue","kind","ratio","dailySummary","values","days","day","complete","maximum","max","sum","defaultUsageCardStrings","chartColors","categoryColor","category","index","QuotaValue","summary","quota","strings","prominent","Fragment","QuotaProgress","formatting","categories","total","segmented","denominator","unclassified","format","label","DailyUsage","unit","UsageBody","data","categoryTotal","inconsistent","percent","resource","UsageCard","stringsProp","cardProps","useStrings","ready","status","selectedPeriod","period","periods","hasPeriods","body","loadingSlot","errorSlot","onRetry","emptySlot","footer","footerAction","card","item","onPeriodChange"],"sources":["../src/components/blocks/analytics/usage-card/usage-card.data.ts","../src/components/blocks/analytics/usage-card/usage-card.strings.ts","../src/components/blocks/analytics/usage-card/usage-card.tsx"],"sourcesContent":["import type { UsageCardDay } from './types';\n\nexport function validUsage(value: number | null | undefined): number | null {\n\treturn typeof value === 'number' && Number.isFinite(value) && value >= 0 ? value : null;\n}\n\n/** Account only for rounding accumulated by positive finite category additions. */\nexport function usageExceeds(actual: number, expected: number, terms = 1): boolean {\n\tif (validUsage(actual) === null || validUsage(expected) === null) return true;\n\tconst magnitude = Math.max(actual, expected);\n\tconst tolerance = magnitude * Number.EPSILON * Math.max(1, terms);\n\treturn actual - expected > tolerance;\n}\n\n/** Retain actual numbers; cap only geometry. Zero quota has no finite percentage. */\nexport function quotaSummary(usedValue: number | null, limitValue: number | null | undefined) {\n\tconst used = validUsage(usedValue);\n\tconst limit = validUsage(limitValue);\n\tconst kind = used === null ? 'unavailable' : limitValue === null ? 'unlimited' : limit === null ? 'unavailable' : 'limited';\n\tconst ratio = used !== null && limit !== null && limit > 0 ? used / limit * 100 : used === 0 && limit === 0 ? 0 : null;\n\tconst percent = ratio !== null && Number.isFinite(ratio) ? ratio : null;\n\treturn {\n\t\tkind, used, limit, percent,\n\t\tprogress: kind === 'limited' ? limit === 0 ? used === 0 ? 0 : 100 : Math.min(100, ratio ?? 0) : null,\n\t\tremaining: kind === 'limited' ? Math.max(0, (limit ?? 0) - (used ?? 0)) : null,\n\t\texcess: kind === 'limited' ? Math.max(0, (used ?? 0) - (limit ?? 0)) : null,\n\t} as const;\n}\n\nexport function dailySummary(days: readonly UsageCardDay[]) {\n\tconst values = days.map(day => validUsage(day.value));\n\tconst complete = values.length > 0 && values.every(value => value !== null);\n\tconst maximum = values.reduce<number>((max, value) => Math.max(max, value ?? 0), 0);\n\treturn {\n\t\tvalues,\n\t\t// Dividing before summing avoids overflow for finite, very large values.\n\t\taverage: complete ? values.reduce<number>((sum, value) => sum + (value ?? 0) / values.length, 0) : null,\n\t\tmaximum: maximum > 0 ? maximum : 1,\n\t};\n}\n","export interface UsageCardStrings {\n\ttitle: string;\n\tusage: string;\n\tused: string;\n\tof: string;\n\tunlimited: string;\n\tunavailable: string;\n\tremaining: string;\n\toverLimit: string;\n\tbreakdown: string;\n\tinconsistentBreakdown: string;\n\tdaily: string;\n\taverage: string;\n\tperDay: string;\n\tresources: string;\n\tperiods: string;\n\tloading: string;\n\terror: string;\n\tempty: string;\n\tretry: string;\n}\nexport const defaultUsageCardStrings: UsageCardStrings = {\n\ttitle: 'Usage', usage: 'Usage', used: 'used', of: 'of', unlimited: 'Unlimited',\n\tunavailable: 'Unavailable', remaining: 'remaining', overLimit: 'over limit',\n\tbreakdown: 'Usage breakdown', inconsistentBreakdown: 'Category totals exceed reported usage.',\n\tdaily: 'Daily usage', average: 'Average', perDay: 'per day', resources: 'Resources',\n\tperiods: 'Usage period', loading: 'Loading usage', error: 'Unable to load usage',\n\tempty: 'No usage data', retry: 'Retry',\n};\n","import type { ReactNode } from 'react';\n\nimport { Button } from '../../../base/buttons';\nimport { Card } from '../../../base/cards';\nimport { Progress, ProgressTrack } from '../../../base/feedback';\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from '../../../base/navigation';\nimport { Grid, Stack } from '../../../base/structure';\nimport { Number as NumberValue, Percent } from '../../../primitives';\nimport { DisplayLabel, Text } from '../../../typography';\nimport { useStrings } from '../../../../lib/strings';\nimport { useFormattingConfig } from '../../../../lib/ui-provider';\nimport { cn } from '../../../../lib/utils';\n\nimport { dailySummary, quotaSummary, usageExceeds, validUsage } from './usage-card.data';\nimport { defaultUsageCardStrings, type UsageCardStrings } from './usage-card.strings';\nimport type { UsageCardCategory, UsageCardData, UsageCardDay, UsageCardProps, UsageCardQuota } from './types';\n\nconst chartColors = ['bg-chart-1', 'bg-chart-2', 'bg-chart-3', 'bg-chart-4', 'bg-chart-5'] as const;\nfunction categoryColor(category: UsageCardCategory, index: number) {\n\treturn chartColors[(category.color === undefined ? index : category.color - 1) % chartColors.length];\n}\n\nfunction QuotaValue({ quota, strings, prominent = false }: { quota: UsageCardQuota; strings: UsageCardStrings; prominent?: boolean }) {\n\tconst summary = quotaSummary(quota.used, quota.limit);\n\treturn <Stack gap=\"dense\" className=\"usage-card--quota\">\n\t\t<Stack direction=\"horizontal\" gap=\"xs\" align=\"baseline\">\n\t\t\t<NumberValue value={summary.used} emptyLabel={strings.unavailable} size={prominent ? 'xl' : undefined} weight={prominent ? 'semibold' : 'medium'} align=\"left\" />\n\t\t\t{!prominent && summary.kind === 'limited' && <>\n\t\t\t\t<Text tag=\"span\" type=\"secondary\">{strings.of}</Text>\n\t\t\t\t<NumberValue value={summary.limit} type=\"secondary\" align=\"left\" />\n\t\t\t</>}\n\t\t\t{quota.unit && <Text tag=\"span\" type=\"secondary\">{quota.unit}</Text>}\n\t\t\t{prominent && summary.used !== null && <Text tag=\"span\" size=\"xs\" type=\"secondary\">{strings.used}</Text>}\n\t\t</Stack>\n\t\t{prominent && summary.kind === 'limited' && <Stack direction=\"horizontal\" gap=\"xs\" align=\"baseline\">\n\t\t\t<Text tag=\"span\" size=\"xs\" type=\"secondary\">{strings.of}</Text>\n\t\t\t<NumberValue value={summary.limit} size=\"xs\" type=\"secondary\" align=\"left\" />\n\t\t</Stack>}\n\t\t{summary.kind === 'unlimited' && <Text tag=\"span\" size=\"xs\" type=\"secondary\">{strings.unlimited}</Text>}\n\t\t{summary.kind === 'unavailable' && summary.used !== null && <Text tag=\"span\" size=\"xs\" type=\"secondary\">{strings.unavailable}</Text>}\n\t</Stack>;\n}\n\nfunction QuotaProgress({ quota, label, strings, categories }: { quota: UsageCardQuota; label: string; strings: UsageCardStrings; categories?: readonly UsageCardCategory[] }) {\n\tconst summary = quotaSummary(quota.used, quota.limit);\n\tconst formatting = useFormattingConfig();\n\tif (summary.kind !== 'limited') return null;\n\tconst sum = categories?.reduce((total, category) => total + (validUsage(category.value) ?? 0), 0) ?? 0;\n\tconst segmented = !!categories?.length && categories.every(category => validUsage(category.value) !== null) && !usageExceeds(sum, summary.used ?? 0, categories.length);\n\tconst maximum = Math.max(summary.limit ?? 0, summary.used ?? 0);\n\tconst denominator = maximum > 0 ? maximum : 1;\n\tconst unclassified = usageExceeds(summary.used ?? 0, sum, categories?.length) ? (summary.used ?? 0) - sum : 0;\n\tconst format = new Intl.NumberFormat(formatting.locale);\n\treturn <Progress\n\t\tvalue={summary.progress ?? 0}\n\t\taria-label={label}\n\t\tgetAriaValueText={() => `${format.format(summary.used ?? 0)} ${strings.of} ${format.format(summary.limit ?? 0)} ${quota.unit ?? ''} ${strings.used}`}\n\t\ttone={summary.excess ? 'destructive' : 'primary'}\n\t\ttrackSlot={segmented ? <ProgressTrack>\n\t\t\t{categories?.map((category, index) => <span key={category.id} aria-hidden=\"true\" className={cn('h-full shrink-0', categoryColor(category, index))} style={{ width: `${(category.value ?? 0) / denominator * 100}%` }} />)}\n\t\t\t{unclassified > 0 && <span aria-hidden=\"true\" className=\"h-full shrink-0 bg-primary\" style={{ width: `${unclassified / denominator * 100}%` }} />}\n\t\t</ProgressTrack> : undefined}\n\t/>;\n}\n\nfunction DailyUsage({ days, unit, strings }: { days: readonly UsageCardDay[]; unit?: string; strings: UsageCardStrings }) {\n\tconst summary = dailySummary(days);\n\treturn <Stack gap=\"sm\" className=\"usage-card--daily\">\n\t\t<Stack direction=\"horizontal\" justify=\"between\" align=\"baseline\" gap=\"sm\">\n\t\t\t<DisplayLabel>{strings.daily}</DisplayLabel>\n\t\t\t<Stack direction=\"horizontal\" gap=\"xs\" align=\"baseline\">\n\t\t\t\t<Text tag=\"span\" size=\"xs\" type=\"secondary\">{strings.average}</Text>\n\t\t\t\t<NumberValue value={summary.average} emptyLabel={strings.unavailable} options={{ maximumFractionDigits: 0 }} weight=\"medium\" />\n\t\t\t\t<Text tag=\"span\" size=\"xs\" type=\"secondary\">{strings.perDay}</Text>\n\t\t\t</Stack>\n\t\t</Stack>\n\t\t{days.length > 0 && <>\n\t\t\t<svg viewBox={`0 0 ${days.length * 10} 40`} preserveAspectRatio=\"none\" aria-hidden=\"true\" className=\"usage-card--daily-chart h-control-lg w-full overflow-visible\">\n\t\t\t\t{summary.values.map((value, index) => value === null ? null : <rect key={index} x={index * 10 + 1} y={40 - value / summary.maximum * 40} width={8} height={value / summary.maximum * 40} className=\"fill-chart-1\" />)}\n\t\t\t</svg>\n\t\t\t<Stack direction=\"horizontal\" justify=\"between\" gap=\"sm\" aria-hidden=\"true\">\n\t\t\t\t<Text size=\"xs\" type=\"secondary\">{days[0]?.label}</Text>\n\t\t\t\t{days.length > 1 && <Text size=\"xs\" type=\"secondary\">{days[days.length - 1]?.label}</Text>}\n\t\t\t</Stack>\n\t\t</>}\n\t\t<ol className=\"sr-only\" aria-label={strings.daily}>\n\t\t\t{days.map((day, index) => <li key={index}>{day.label}: <NumberValue value={validUsage(day.value)} emptyLabel={strings.unavailable} /> {unit}</li>)}\n\t\t</ol>\n\t</Stack>;\n}\n\nfunction UsageBody({ data, strings }: { data: UsageCardData; strings: UsageCardStrings }) {\n\tconst summary = quotaSummary(data.used, data.limit);\n\tconst categoryTotal = data.categories?.reduce((total, category) => total + (validUsage(category.value) ?? 0), 0) ?? 0;\n\tconst inconsistent = summary.used !== null && usageExceeds(categoryTotal, summary.used, data.categories?.length);\n\treturn <Stack gap=\"lg\">\n\t\t<Stack gap=\"md\" className=\"usage-card--summary\">\n\t\t\t<Stack direction=\"horizontal\" justify=\"between\" align=\"start\" gap=\"sm\">\n\t\t\t\t<QuotaValue quota={data} strings={strings} prominent />\n\t\t\t\t{summary.percent !== null && <Percent value={summary.percent} scaled size=\"lg\" weight=\"medium\" type=\"secondary\" options={{ maximumFractionDigits: 0 }} />}\n\t\t\t</Stack>\n\t\t\t<QuotaProgress quota={data} label={strings.usage} strings={strings} categories={data.categories} />\n\t\t\t{!!data.categories?.length && <Grid render={<ul aria-label={strings.breakdown} />} columns={3} gap=\"sm\" className=\"usage-card--categories grid-cols-[minmax(0,1fr)_auto_minmax(5ch,max-content)]\">\n\t\t\t\t{data.categories.map((category, index) => {\n\t\t\t\t\tconst value = validUsage(category.value);\n\t\t\t\t\tconst percent = summary.used === null || value === null || inconsistent ? null : summary.used === 0 ? 0 : value / summary.used;\n\t\t\t\t\treturn <li key={category.id} className=\"usage-card--category col-span-full grid grid-cols-subgrid items-baseline\">\n\t\t\t\t\t\t<Stack direction=\"horizontal\" gap=\"sm\" align=\"center\" wrap={false} className=\"min-w-0\">\n\t\t\t\t\t\t\t<span aria-hidden=\"true\" className={cn('size-icon-sm shrink-0 rounded-full', categoryColor(category, index))} />\n\t\t\t\t\t\t\t<Text tag=\"span\" className=\"break-words\">{category.label}</Text>\n\t\t\t\t\t\t</Stack>\n\t\t\t\t\t\t<NumberValue value={value} emptyLabel={strings.unavailable} weight=\"medium\" className=\"usage-card--category-value\" />\n\t\t\t\t\t\t<Percent value={percent} emptyLabel={strings.unavailable} type=\"secondary\" options={{ maximumFractionDigits: 0 }} className=\"usage-card--category-share\" />\n\t\t\t\t\t</li>;\n\t\t\t\t})}\n\t\t\t</Grid>}\n\t\t\t{inconsistent && <Text size=\"xs\" type=\"secondary\">{strings.inconsistentBreakdown}</Text>}\n\t\t</Stack>\n\t\t{data.daily && <DailyUsage days={data.daily} unit={data.unit} strings={strings} />}\n\t\t{!!data.resources?.length && <Stack gap=\"sm\">\n\t\t\t<DisplayLabel>{strings.resources}</DisplayLabel>\n\t\t\t<Grid columns={1} gap=\"md\" className=\"usage-card--resources @sm/card:grid-cols-3\">\n\t\t\t\t{data.resources.map(resource => <Stack key={resource.id} gap=\"sm\" className=\"usage-card--resource min-w-0\" role=\"group\" aria-label={resource.label}>\n\t\t\t\t\t<Text tag=\"span\" weight=\"medium\">{resource.label}</Text>\n\t\t\t\t\t<QuotaValue quota={resource} strings={strings} />\n\t\t\t\t\t<QuotaProgress quota={resource} label={resource.label} strings={strings} />\n\t\t\t\t</Stack>)}\n\t\t\t</Grid>\n\t\t</Stack>}\n\t</Stack>;\n}\n\n/** App-owned usage data and period callbacks in the canonical Card composition. */\nexport function UsageCard({ data, status = 'ready', periods, period, onPeriodChange, onRetry, loadingSlot, errorSlot, emptySlot, footerAction, strings: stringsProp, ...cardProps }: UsageCardProps) {\n\tconst strings = useStrings(defaultUsageCardStrings, stringsProp);\n\tconst ready = status === 'ready' && !!data;\n\tconst summary = ready ? quotaSummary(data.used, data.limit) : null;\n\tconst selectedPeriod = period ?? periods?.[0]?.value ?? '';\n\tconst hasPeriods = !!periods?.length;\n\tlet body: ReactNode;\n\tif (status === 'loading') body = <div role=\"status\">{loadingSlot ?? <Text type=\"secondary\">{strings.loading}</Text>}</div>;\n\telse if (status === 'error') body = <Stack role=\"alert\" gap=\"sm\">{errorSlot ?? <Text>{strings.error}</Text>}{onRetry && <Button tone=\"secondary\" onClick={onRetry}>{strings.retry}</Button>}</Stack>;\n\telse if (!ready) body = <div>{emptySlot ?? <Text type=\"secondary\">{strings.empty}</Text>}</div>;\n\telse body = <UsageBody data={data} strings={strings} />;\n\tconst footer = (summary?.kind === 'limited' || footerAction) && <Stack direction=\"horizontal\" justify=\"between\" align=\"center\" gap=\"md\">\n\t\t{summary?.kind === 'limited' && <Stack direction=\"horizontal\" gap=\"xs\" align=\"baseline\">\n\t\t\t<NumberValue value={summary.excess ? summary.excess : summary.remaining} weight=\"medium\" />\n\t\t\t{data?.unit && <Text tag=\"span\" type=\"secondary\">{data.unit}</Text>}\n\t\t\t<Text tag=\"span\" type=\"secondary\">{summary.excess ? strings.overLimit : strings.remaining}</Text>\n\t\t</Stack>}\n\t\t{footerAction}\n\t</Stack>;\n\tconst card = <Card\n\t\t{...cardProps}\n\t\ttitle={cardProps.title ?? strings.title}\n\t\tclassName={cn('usage-card--component min-w-0', cardProps.className)}\n\t\tdata-component=\"usage-card\"\n\t\tdata-slot=\"usage-card\"\n\t\taria-busy={status === 'loading' || undefined}\n\t\theaderClassName={hasPeriods ? '@sm/card:flex-col @lg/card:flex-row' : undefined}\n\t\theaderAction={hasPeriods ? <Stack direction=\"horizontal\" gap=\"sm\" align=\"center\" className=\"usage-card--header-actions max-w-full\">\n\t\t\t<TabsList aria-label={strings.periods} className=\"max-w-full flex-wrap\">\n\t\t\t\t{periods.map(item => <TabsTrigger key={item.value} value={item.value} disabled={item.disabled || !onPeriodChange}>{item.label}</TabsTrigger>)}\n\t\t\t</TabsList>\n\t\t\t{cardProps.headerAction}\n\t\t</Stack> : cardProps.headerAction}\n\t\tfooterSlot={footer}\n\t\tfooterDivider={!!footer}\n\t>\n\t\t{hasPeriods ? <TabsContent value={selectedPeriod}>{body}</TabsContent> : body}\n\t</Card>;\n\treturn hasPeriods ? <Tabs value={selectedPeriod} onValueChange={value => { if (typeof value === 'string') onPeriodChange?.(value); }} className=\"min-w-0\">{card}</Tabs> : card;\n}\n\nUsageCard.displayName = 'UsageCard';\n"],"mappings":";;;;;;;;;;;;;AAEA,SAAgBkB,EAAW,GAAiD;CAC3E,OAAO,OAAOC,KAAU,YAAY,OAAO,SAASA,CAAK,KAAKA,KAAS,IAAIA,IAAQ;AACpF;AAGA,SAAgBC,EAAa,GAAgB,GAAkB,IAAQ,GAAY;CAClF,IAAIF,EAAWG,CAAM,MAAM,QAAQH,EAAWI,CAAQ,MAAM,MAAM,OAAO;CAEzE,IAAMC,IADY,KAAK,IAAIF,GAAQC,CACjB,eAA6B,KAAK,IAAI,GAAGE,CAAK;CAChE,OAAOH,IAASC,IAAWC;AAC5B;AAGA,SAAgBE,EAAa,GAA0B,GAAuC;CAC7F,IAAMC,IAAOR,EAAWS,CAAS,GAC3BC,IAAQV,EAAWW,CAAU,GAC7BC,IAAOJ,MAAS,OAAO,gBAAgBG,MAAe,OAAO,cAAcD,MAAU,OAAO,gBAAgB,WAC5GG,IAAQL,MAAS,QAAQE,MAAU,QAAQA,IAAQ,IAAIF,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,iBAAiBI,IAAa,wCAAwC,KAAA;EACtE,cAAcA,IAAa,kBAACrE,GAAD;GAAO,WAAU;GAAa,KAAI;GAAK,OAAM;GAAS,WAAU;GAAhE,UAAA,CAC1B,kBAACQ,GAAD;IAAU,cAAYgC,EAAQ;IAAS,WAAU;IAC/C,UAAA4B,EAAQ,KAAI,MAAQ,kBAAC9D,GAAD;KAA8B,OAAOwE,EAAK;KAAO,UAAUA,EAAK,YAAY,CAACC;KAAiB,UAAAD,EAAK;IAAmB,GAApGA,EAAK,KAA+F,CAAC;GACnI,CAAA,GACThB,EAAU,YACL;EAAI,CAAA,IAAAA,EAAU;EACrB,YAAYa;EACZ,eAAe,CAAC,CAACA;EAEhB,UAAAN,IAAa,kBAAC9D,GAAD;GAAa,OAAO2D;GAAiB,UAAAI;EAAkB,CAAA,IAAIA;CACpE,CAAA;CACN,OAAOD,IAAa,kBAAC5D,GAAD;EAAM,OAAOyD;EAAgB,gBAAe,MAAS;GAAE,AAAI,OAAOvD,KAAU,YAAUoE,IAAiBpE,CAAK;EAAG;EAAG,WAAU;EAAW,UAAAkE;CAAW,CAAA,IAAIA;AAC3K;AAEA,EAAU,cAAc"}
@@ -0,0 +1,18 @@
1
+ "use client";
2
+ import { useEffect as e, useState as t } from "react";
3
+ //#region src/hooks/use-debounce.ts
4
+ function n(n, r = 500) {
5
+ let [i, a] = t(n);
6
+ return e(() => {
7
+ let e = setTimeout(() => {
8
+ a(n);
9
+ }, r);
10
+ return () => {
11
+ clearTimeout(e);
12
+ };
13
+ }, [n, r]), i;
14
+ }
15
+ //#endregion
16
+ export { n as t };
17
+
18
+ //# sourceMappingURL=use-debounce-DZ_1ZBPa.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-debounce-DZ_1ZBPa.js","names":["useDebounce","debouncedValue","setDebouncedValue","useState","value","useEffect","handler","delay"],"sources":["../src/hooks/use-debounce.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nexport function useDebounce<T>(value: T, delay: number = 500): T {\n\tconst [debouncedValue, setDebouncedValue] = useState<T>(value);\n\n\tuseEffect(() => {\n\t\tconst handler = setTimeout(() => {\n\t\t\tsetDebouncedValue(value);\n\t\t}, delay);\n\n\t\treturn () => {\n\t\t\tclearTimeout(handler);\n\t\t};\n\t}, [value, delay]);\n\n\treturn debouncedValue;\n}"],"mappings":";;;AAEA,SAAgBA,EAAe,GAAU,IAAgB,KAAQ;CAChE,IAAM,CAACC,GAAgBC,KAAqBC,EAAYC,CAAK;CAY7D,OAVAC,QAAgB;EACf,IAAMC,IAAU,iBAAiB;GAChC,EAAkBF,CAAK;EACxB,GAAGG,CAAK;EAER,aAAa;GACZ,aAAaD,CAAO;EACrB;CACD,GAAG,CAACF,GAAOG,CAAK,CAAC,GAEVN;AACR"}
@@ -0,0 +1,30 @@
1
+ "use client";
2
+ import { useCallback as e, useEffect as t, useMemo as n, useRef as r } from "react";
3
+ function i(i, a = 300) {
4
+ let o = r(i), s = r(a), c = r(null), l = r(null);
5
+ t(() => {
6
+ o.current = i, s.current = a;
7
+ }, [i, a]);
8
+ let u = e(() => {
9
+ c.current !== null && (clearTimeout(c.current), c.current = null), l.current = null;
10
+ }, []), d = e(() => {
11
+ let e = l.current;
12
+ l.current = null, c.current = null, e && o.current(...e);
13
+ }, []), f = e(() => {
14
+ c.current !== null && (clearTimeout(c.current), d());
15
+ }, [d]);
16
+ return t(() => u, [u]), n(() => {
17
+ let e = ((...e) => {
18
+ l.current = e, c.current !== null && clearTimeout(c.current), c.current = setTimeout(d, s.current);
19
+ });
20
+ return e.cancel = u, e.flush = f, e;
21
+ }, [
22
+ u,
23
+ f,
24
+ d
25
+ ]);
26
+ }
27
+ //#endregion
28
+ export { i as t };
29
+
30
+ //# sourceMappingURL=use-debounced-callback-Cx1h-hdv.js.map