themelia-react-ui 2.0.0 → 2.0.2

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 (707) hide show
  1. package/CHANGELOG.md +527 -0
  2. package/README.md +47 -14
  3. package/THIRD_PARTY_NOTICES.md +13 -0
  4. package/dist/accordion-Cjb6sx0G.js +208 -0
  5. package/dist/accordion-Cjb6sx0G.js.map +1 -0
  6. package/dist/action-menu-CllU52Mm.js +280 -0
  7. package/dist/action-menu-CllU52Mm.js.map +1 -0
  8. package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
  9. package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
  10. package/dist/ai-artifact-DvTwDVyL.js +1148 -0
  11. package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
  12. package/dist/{app-shell-BE_j8-AT.js → app-shell-C4FhvCqF.js} +5 -5
  13. package/dist/{app-shell-BE_j8-AT.js.map → app-shell-C4FhvCqF.js.map} +1 -1
  14. package/dist/attachment-BxDfL2mw.js +246 -0
  15. package/dist/attachment-BxDfL2mw.js.map +1 -0
  16. package/dist/{auth-M3vGMgDR.js → auth-ax2BqjrI.js} +241 -235
  17. package/dist/auth-ax2BqjrI.js.map +1 -0
  18. package/dist/{avatar-djdaaQ_s.js → avatar-DAPlDvhJ.js} +67 -66
  19. package/dist/avatar-DAPlDvhJ.js.map +1 -0
  20. package/dist/badge-HpFqoqSY.js +93 -0
  21. package/dist/badge-HpFqoqSY.js.map +1 -0
  22. package/dist/base/accordion.js +1 -1
  23. package/dist/base/action-menu.js +1 -1
  24. package/dist/base/attachment.js +1 -1
  25. package/dist/base/avatar.js +1 -1
  26. package/dist/base/badge.js +1 -1
  27. package/dist/base/batch-action-bar.js +3 -0
  28. package/dist/base/buttons.js +2 -3
  29. package/dist/base/cards.js +2 -2
  30. package/dist/base/carousel.js +50 -46
  31. package/dist/base/carousel.js.map +1 -1
  32. package/dist/base/cascader.js +69 -81
  33. package/dist/base/cascader.js.map +1 -1
  34. package/dist/base/chart.js +1 -1
  35. package/dist/base/choice-inputs.js +3 -3
  36. package/dist/base/code-block.js +1 -1
  37. package/dist/base/combobox.js +2 -2
  38. package/dist/base/command.js +1 -1
  39. package/dist/base/copyable.js +1 -1
  40. package/dist/base/date-pickers.js +2 -2
  41. package/dist/base/display.js +7 -7
  42. package/dist/base/feedback.js +3 -3
  43. package/dist/base/forms-numeric.js +1 -1
  44. package/dist/base/forms.js +2 -2
  45. package/dist/base/inline-edit.js +20 -20
  46. package/dist/base/inline-edit.js.map +1 -1
  47. package/dist/base/item.js +1 -1
  48. package/dist/base/media-gallery.js +1 -1
  49. package/dist/base/metadata-list.js +3 -0
  50. package/dist/base/navigation.js +7 -7
  51. package/dist/base/popover-menu.js +1 -1
  52. package/dist/base/popover.js +1 -1
  53. package/dist/base/qr-code.js +1 -1
  54. package/dist/base/repeaters.js +216 -220
  55. package/dist/base/repeaters.js.map +1 -1
  56. package/dist/base/sheet.js +1 -1
  57. package/dist/base/sidebar.js +1 -1
  58. package/dist/base/signature-pad.js +147 -137
  59. package/dist/base/signature-pad.js.map +1 -1
  60. package/dist/base/skeleton.js +1 -1
  61. package/dist/base/spinner.js +79 -2
  62. package/dist/base/spinner.js.map +1 -0
  63. package/dist/base/structure.js +1 -1
  64. package/dist/base/table.js +1 -1
  65. package/dist/base/text-inputs.js +2 -2
  66. package/dist/base/toaster.js +46 -45
  67. package/dist/base/toaster.js.map +1 -1
  68. package/dist/base/tree.js +1 -1
  69. package/dist/base/upload-queue.js +1 -1
  70. package/dist/base/upload.js +3 -3
  71. package/dist/base/value-inputs.js +2 -2
  72. package/dist/batch-action-bar-DnUJ21NQ.js +105 -0
  73. package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
  74. package/dist/blocks/admin.js +171 -169
  75. package/dist/blocks/admin.js.map +1 -1
  76. package/dist/blocks/ai.js +308 -285
  77. package/dist/blocks/ai.js.map +1 -1
  78. package/dist/blocks/analytics/usage-card.js +1 -1
  79. package/dist/blocks/analytics.js +626 -589
  80. package/dist/blocks/analytics.js.map +1 -1
  81. package/dist/blocks/collaboration.js +1 -1
  82. package/dist/blocks/commerce/receipt.js +1 -1
  83. package/dist/blocks/commerce.js +2051 -1329
  84. package/dist/blocks/commerce.js.map +1 -1
  85. package/dist/blocks/data-display.js +3 -2
  86. package/dist/blocks/onboarding.js +68 -58
  87. package/dist/blocks/onboarding.js.map +1 -1
  88. package/dist/blocks/planning.js +27 -26
  89. package/dist/blocks/planning.js.map +1 -1
  90. package/dist/blocks/timelines.js +1 -1
  91. package/dist/breadcrumbs-C-oqs1sQ.js +129 -0
  92. package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
  93. package/dist/{button-R9CCoH7A.js → button-DVzspB_G.js} +15 -14
  94. package/dist/button-DVzspB_G.js.map +1 -0
  95. package/dist/{button-BS3KDg00.js → buttons-DPZekJFu.js} +208 -216
  96. package/dist/buttons-DPZekJFu.js.map +1 -0
  97. package/dist/cards-BaBZR-AU.js +68 -0
  98. package/dist/cards-BaBZR-AU.js.map +1 -0
  99. package/dist/{chart-DwYRKKc-.js → chart-ZOYyK2xG.js} +58 -55
  100. package/dist/chart-ZOYyK2xG.js.map +1 -0
  101. package/dist/checkbox-AWIhNhmo.js +36 -0
  102. package/dist/checkbox-AWIhNhmo.js.map +1 -0
  103. package/dist/choice-inputs-CNHvARCJ.js +770 -0
  104. package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
  105. package/dist/code-block-DeneBJR_.js +185 -0
  106. package/dist/code-block-DeneBJR_.js.map +1 -0
  107. package/dist/{collapsible-oMUGM4tr.js → collapsible-C-_l4hpy.js} +4 -4
  108. package/dist/{collapsible-oMUGM4tr.js.map → collapsible-C-_l4hpy.js.map} +1 -1
  109. package/dist/{collection-content-Ys-OZOkY.js → collection-content-By56pLog.js} +3 -3
  110. package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-By56pLog.js.map} +1 -1
  111. package/dist/combobox-C0EQW6dr.js +875 -0
  112. package/dist/combobox-C0EQW6dr.js.map +1 -0
  113. package/dist/combobox-xCQ2RMNE.js +309 -0
  114. package/dist/combobox-xCQ2RMNE.js.map +1 -0
  115. package/dist/{command-kPMPjIxJ.js → command-C25VMRII.js} +7 -7
  116. package/dist/{command-kPMPjIxJ.js.map → command-C25VMRII.js.map} +1 -1
  117. package/dist/{comments-You0Bzbr.js → comments-BYYlTA8E.js} +390 -379
  118. package/dist/comments-BYYlTA8E.js.map +1 -0
  119. package/dist/components/base/action-menu/action-menu.d.ts +21 -4
  120. package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
  121. package/dist/components/base/action-menu/index.d.ts +1 -0
  122. package/dist/components/base/badge/badge.recipes.d.ts +5 -5
  123. package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
  124. package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
  125. package/dist/components/base/batch-action-bar/index.d.ts +8 -0
  126. package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
  127. package/dist/components/base/buttons/button.recipes.d.ts +2 -2
  128. package/dist/components/base/buttons/loader-button.d.ts +2 -1
  129. package/dist/components/base/cards/card.recipes.d.ts +2 -3
  130. package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
  131. package/dist/components/base/cards/smart-card.types.d.ts +11 -4
  132. package/dist/components/base/chart/chart.d.ts +2 -5
  133. package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
  134. package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
  135. package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
  136. package/dist/components/base/combobox/index.d.ts +30 -4
  137. package/dist/components/base/display/alert-dialog.d.ts +6 -5
  138. package/dist/components/base/display/dialog.d.ts +4 -8
  139. package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
  140. package/dist/components/base/forms/form-sizing.d.ts +26 -15
  141. package/dist/components/base/metadata-list/index.d.ts +12 -0
  142. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
  143. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
  144. package/dist/components/base/navigation/index.d.ts +1 -1
  145. package/dist/components/base/navigation/page-header/index.d.ts +1 -0
  146. package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
  147. package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
  148. package/dist/components/base/navigation/pagination.d.ts +5 -2
  149. package/dist/components/base/popover/popover.recipes.d.ts +15 -1
  150. package/dist/components/base/sheet/sheet.d.ts +4 -8
  151. package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
  152. package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
  153. package/dist/components/base/table/index.d.ts +9 -2
  154. package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
  155. package/dist/components/base/text-inputs/input-group.d.ts +2 -2
  156. package/dist/components/base/upload/upload.recipes.d.ts +25 -3
  157. package/dist/components/base/value-inputs/index.d.ts +5 -5
  158. package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
  159. package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
  160. package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
  161. package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
  162. package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
  163. package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
  164. package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
  165. package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
  166. package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
  167. package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
  168. package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
  169. package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
  170. package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
  171. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +45 -0
  172. package/dist/components/blocks/commerce/index.d.ts +13 -5
  173. package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
  174. package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
  175. package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
  176. package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
  177. package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
  178. package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
  179. package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
  180. package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
  181. package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
  182. package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
  183. package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
  184. package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
  185. package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
  186. package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
  187. package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
  188. package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
  189. package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
  190. package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
  191. package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
  192. package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
  193. package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
  194. package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
  195. package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
  196. package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
  197. package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
  198. package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
  199. package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
  200. package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
  201. package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
  202. package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
  203. package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
  204. package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
  205. package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
  206. package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
  207. package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
  208. package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
  209. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
  210. package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
  211. package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
  212. package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
  213. package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
  214. package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
  215. package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
  216. package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
  217. package/dist/components/features/appointment-calendar/index.d.ts +3 -0
  218. package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
  219. package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
  220. package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
  221. package/dist/components/features/combobox/types.d.ts +4 -0
  222. package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
  223. package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
  224. package/dist/components/features/kanban/kanban.d.ts +1 -1
  225. package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
  226. package/dist/components/features/kanban/kanban.types.d.ts +2 -2
  227. package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
  228. package/dist/components/features/media-library/index.d.ts +1 -1
  229. package/dist/components/features/media-library/media-library.d.ts +1 -1
  230. package/dist/components/features/media-library/media-library.strings.d.ts +6 -0
  231. package/dist/components/features/media-library/media-library.types.d.ts +74 -1
  232. package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
  233. package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
  234. package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
  235. package/dist/components/features/overlays/dialog.d.ts +1 -1
  236. package/dist/components/features/overlays/index.d.ts +1 -1
  237. package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
  238. package/dist/components/features/overlays/overlays.types.d.ts +20 -0
  239. package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
  240. package/dist/components/features/products/components/product-details-card.d.ts +5 -0
  241. package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
  242. package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
  243. package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
  244. package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
  245. package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
  246. package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
  247. package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
  248. package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
  249. package/dist/components/features/products/products.types.d.ts +9 -2
  250. package/dist/components/features/resource/index.d.ts +1 -1
  251. package/dist/components/features/resource/resource.d.ts +1 -1
  252. package/dist/components/features/resource/resource.types.d.ts +34 -6
  253. package/dist/components/features/rich-text-editor/index.d.ts +2 -1
  254. package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
  255. package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
  256. package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
  257. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +7 -1
  258. package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
  259. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +54 -1
  260. package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
  261. package/dist/components/features/sync/index.d.ts +26 -3
  262. package/dist/components/features/table/data-table.d.ts +1 -1
  263. package/dist/components/features/table/table-header.d.ts +1 -1
  264. package/dist/components/features/table/table.strings.d.ts +55 -1
  265. package/dist/components/features/table/table.types.d.ts +49 -11
  266. package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
  267. package/dist/components/layout/page/index.d.ts +1 -1
  268. package/dist/components/layout/page/page.types.d.ts +33 -36
  269. package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
  270. package/dist/components/layout/page/partials/page-header.d.ts +1 -1
  271. package/dist/components/layout/settings/settings.d.ts +16 -2
  272. package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
  273. package/dist/components/primitives/number.d.ts +4 -2
  274. package/dist/components/primitives/value.d.ts +3 -1
  275. package/dist/components/typography/rich-text/index.d.ts +1 -1
  276. package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
  277. package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
  278. package/dist/components/typography/text-link.d.ts +8 -3
  279. package/dist/components/ui/checkbox.d.ts +4 -3
  280. package/dist/components/ui/combobox.d.ts +6 -2
  281. package/dist/components/ui/item.d.ts +8 -8
  282. package/dist/components/ui/overlay.recipes.d.ts +0 -9
  283. package/dist/components/ui/switch.d.ts +2 -2
  284. package/dist/components/ui/tabs.d.ts +1 -1
  285. package/dist/{containers-D_L4mTVb.js → containers-Mu1LMGV1.js} +36 -35
  286. package/dist/containers-Mu1LMGV1.js.map +1 -0
  287. package/dist/{copyable-DDjTeW_j.js → copyable-ClBuk_UK.js} +6 -6
  288. package/dist/{copyable-DDjTeW_j.js.map → copyable-ClBuk_UK.js.map} +1 -1
  289. package/dist/data-display-DT_khPl_.js +971 -0
  290. package/dist/data-display-DT_khPl_.js.map +1 -0
  291. package/dist/{date-uf3z37Nm.js → date-DCrsDTZc.js} +5 -5
  292. package/dist/{date-uf3z37Nm.js.map → date-DCrsDTZc.js.map} +1 -1
  293. package/dist/date-picker-ay0Pha_a.js +1530 -0
  294. package/dist/date-picker-ay0Pha_a.js.map +1 -0
  295. package/dist/date-pickers-Ccw8DL2b.js +175 -0
  296. package/dist/date-pickers-Ccw8DL2b.js.map +1 -0
  297. package/dist/display-hAc1HjpI.js +344 -0
  298. package/dist/display-hAc1HjpI.js.map +1 -0
  299. package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
  300. package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
  301. package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
  302. package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
  303. package/dist/features/activities.js +478 -542
  304. package/dist/features/activities.js.map +1 -1
  305. package/dist/features/ai-chat.js +209 -199
  306. package/dist/features/ai-chat.js.map +1 -1
  307. package/dist/features/appointment-calendar.js +683 -0
  308. package/dist/features/appointment-calendar.js.map +1 -0
  309. package/dist/features/async-preview.js +109 -107
  310. package/dist/features/async-preview.js.map +1 -1
  311. package/dist/features/combobox.js +1 -1
  312. package/dist/features/comments.js +1 -1
  313. package/dist/features/data-view.js +30 -29
  314. package/dist/features/data-view.js.map +1 -1
  315. package/dist/features/email-composer/engine.js +1 -1
  316. package/dist/features/email-composer.js +285 -283
  317. package/dist/features/email-composer.js.map +1 -1
  318. package/dist/features/event-calendar.js +282 -273
  319. package/dist/features/event-calendar.js.map +1 -1
  320. package/dist/features/filters.js +1 -1
  321. package/dist/features/global-search.js +318 -318
  322. package/dist/features/global-search.js.map +1 -1
  323. package/dist/features/kanban.js +146 -147
  324. package/dist/features/kanban.js.map +1 -1
  325. package/dist/features/map.js +269 -268
  326. package/dist/features/map.js.map +1 -1
  327. package/dist/features/media-library.js +970 -863
  328. package/dist/features/media-library.js.map +1 -1
  329. package/dist/features/mentions.js +1 -1
  330. package/dist/features/overlays.js +1 -1
  331. package/dist/features/products.js +1137 -1124
  332. package/dist/features/products.js.map +1 -1
  333. package/dist/features/questionnaire.js +206 -194
  334. package/dist/features/questionnaire.js.map +1 -1
  335. package/dist/features/resource-assignment.js +24 -21
  336. package/dist/features/resource-assignment.js.map +1 -1
  337. package/dist/features/resource.js +77 -69
  338. package/dist/features/resource.js.map +1 -1
  339. package/dist/features/rich-text-editor.js +30 -11
  340. package/dist/features/rich-text-editor.js.map +1 -1
  341. package/dist/features/schema-form.js +35 -33
  342. package/dist/features/schema-form.js.map +1 -1
  343. package/dist/features/suggestions.js +3 -3
  344. package/dist/features/sync.js +11 -5
  345. package/dist/features/sync.js.map +1 -1
  346. package/dist/features/table.js +1 -1
  347. package/dist/features/theme-tweaker.js +501 -496
  348. package/dist/features/theme-tweaker.js.map +1 -1
  349. package/dist/feedback-BYIhtitP.js +239 -0
  350. package/dist/feedback-BYIhtitP.js.map +1 -0
  351. package/dist/field-affordance-recipes-DZhnIL_Y.js +41 -0
  352. package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
  353. package/dist/field-state-recipes-BVA2CWHo.js +12 -0
  354. package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
  355. package/dist/{filters-Da-gNPsE.js → filters-BGfvjP4d.js} +483 -472
  356. package/dist/filters-BGfvjP4d.js.map +1 -0
  357. package/dist/focus-recipes-B653VaLq.js +12 -0
  358. package/dist/focus-recipes-B653VaLq.js.map +1 -0
  359. package/dist/{form-field-VZRULhUK.js → form-field-CwH9y77i.js} +6 -5
  360. package/dist/form-field-CwH9y77i.js.map +1 -0
  361. package/dist/{form-sizing-uWP4lzVh.js → form-sizing-BdP_Mf5p.js} +45 -46
  362. package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
  363. package/dist/{forms-DDeEnXSY.js → forms-B9G_xwzi.js} +22 -22
  364. package/dist/{forms-DDeEnXSY.js.map → forms-B9G_xwzi.js.map} +1 -1
  365. package/dist/forms-numeric-B_jraJaQ.js +906 -0
  366. package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
  367. package/dist/{header-2ycNqGOR.js → header-CGXuhcRm.js} +164 -161
  368. package/dist/header-CGXuhcRm.js.map +1 -0
  369. package/dist/{hooks-DQ5SPwZw.js → hooks-Dkz0K2WT.js} +2 -2
  370. package/dist/{hooks-DQ5SPwZw.js.map → hooks-Dkz0K2WT.js.map} +1 -1
  371. package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
  372. package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
  373. package/dist/icon-badge-DYKIwvOV.js +55 -0
  374. package/dist/icon-badge-DYKIwvOV.js.map +1 -0
  375. package/dist/index.js +7 -7
  376. package/dist/input-CZw8iU99.js +21 -0
  377. package/dist/input-CZw8iU99.js.map +1 -0
  378. package/dist/input-DQdEd0YD.js +263 -0
  379. package/dist/input-DQdEd0YD.js.map +1 -0
  380. package/dist/interaction-recipes-XR9ZpVYL.js +25 -0
  381. package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
  382. package/dist/item-K5_ghvze.js +275 -0
  383. package/dist/item-K5_ghvze.js.map +1 -0
  384. package/dist/layer-recipes-CCpklYME.js +13 -0
  385. package/dist/layer-recipes-CCpklYME.js.map +1 -0
  386. package/dist/layout/app-shell.js +1 -1
  387. package/dist/layout/auth.js +1 -1
  388. package/dist/layout/containers.js +1 -1
  389. package/dist/layout/header.js +1 -1
  390. package/dist/layout/hooks.js +1 -1
  391. package/dist/layout/navigation.js +1 -1
  392. package/dist/layout/page.js +1 -1
  393. package/dist/layout/settings.js +1 -1
  394. package/dist/layout/sidebar.js +2 -2
  395. package/dist/layout/workspace.js +1 -1
  396. package/dist/layout.js +10 -10
  397. package/dist/lib/affordance-geometry.generated.d.ts +72 -0
  398. package/dist/lib/editable-text-recipe.d.ts +4 -4
  399. package/dist/lib/field-affordance-recipes.d.ts +8 -3
  400. package/dist/lib/field-state-recipes.d.ts +9 -8
  401. package/dist/lib/focus-recipes.d.ts +24 -0
  402. package/dist/lib/interaction-recipes.d.ts +40 -0
  403. package/dist/lib/layer-recipes.d.ts +19 -0
  404. package/dist/lib/motion-recipes.d.ts +1 -0
  405. package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
  406. package/dist/lib/safe-image-src.d.ts +10 -0
  407. package/dist/lib/sanitize-html.d.ts +15 -3
  408. package/dist/lib/surface-recipes.d.ts +47 -7
  409. package/dist/lib/theme-mode-css.d.ts +7 -0
  410. package/dist/lib/token-merge.generated.d.ts +9 -6
  411. package/dist/lib/tone-recipes.d.ts +87 -0
  412. package/dist/lib/ui-provider/hooks.d.ts +2 -1
  413. package/dist/lib/ui-provider/index.d.ts +2 -2
  414. package/dist/lib/ui-provider/types.d.ts +11 -2
  415. package/dist/lib/utils.js +1 -1
  416. package/dist/media-gallery-3zIVLMWH.js +203 -0
  417. package/dist/media-gallery-3zIVLMWH.js.map +1 -0
  418. package/dist/mentions-utuUvH1K.js +570 -0
  419. package/dist/mentions-utuUvH1K.js.map +1 -0
  420. package/dist/{message-YfFmbXNP.js → message-DZ_ruyUV.js} +7 -6
  421. package/dist/message-DZ_ruyUV.js.map +1 -0
  422. package/dist/metadata-list-8N16ZMW_.js +405 -0
  423. package/dist/metadata-list-8N16ZMW_.js.map +1 -0
  424. package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
  425. package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
  426. package/dist/navigation-Bnotn4AQ.js +145 -0
  427. package/dist/navigation-Bnotn4AQ.js.map +1 -0
  428. package/dist/navigation-BzhHI3lo.js +269 -0
  429. package/dist/navigation-BzhHI3lo.js.map +1 -0
  430. package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
  431. package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
  432. package/dist/{number-CKRBYmZK.js → number-DbV1Dija.js} +36 -34
  433. package/dist/{number-CKRBYmZK.js.map → number-DbV1Dija.js.map} +1 -1
  434. package/dist/overflow-tab-bar-CWY7Nogn.js +282 -0
  435. package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
  436. package/dist/overlay.recipes-8GHqmlb4.js +6 -0
  437. package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
  438. package/dist/overlays-DNWmZrJ4.js +1001 -0
  439. package/dist/overlays-DNWmZrJ4.js.map +1 -0
  440. package/dist/page-Bgl1F560.js +224 -0
  441. package/dist/page-Bgl1F560.js.map +1 -0
  442. package/dist/page-header-commands-DOb6WsfD.js +126 -0
  443. package/dist/page-header-commands-DOb6WsfD.js.map +1 -0
  444. package/dist/pagination-BL25hu2s.js +158 -0
  445. package/dist/pagination-BL25hu2s.js.map +1 -0
  446. package/dist/{popover-Dcv_9jxr.js → popover-7_m66eYW.js} +11 -10
  447. package/dist/popover-7_m66eYW.js.map +1 -0
  448. package/dist/popover-menu-B9WWygpa.js +100 -0
  449. package/dist/popover-menu-B9WWygpa.js.map +1 -0
  450. package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-D3j8R8Yp.js} +18 -11
  451. package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
  452. package/dist/{primitives-BHrwQXFC.js → primitives-BFK08r9M.js} +45 -44
  453. package/dist/primitives-BFK08r9M.js.map +1 -0
  454. package/dist/primitives.js +4 -4
  455. package/dist/{progress-Br9WTFya.js → progress-B1VnCT0K.js} +9 -9
  456. package/dist/{progress-Br9WTFya.js.map → progress-B1VnCT0K.js.map} +1 -1
  457. package/dist/{receipt-CV89q1fs.js → receipt-BVSOH3Xo.js} +9 -6
  458. package/dist/{receipt-CV89q1fs.js.map → receipt-BVSOH3Xo.js.map} +1 -1
  459. package/dist/rich-text-GOUyKQ-s.js +78 -0
  460. package/dist/rich-text-GOUyKQ-s.js.map +1 -0
  461. package/dist/rich-text-editor-cRLC-eBK.js +1196 -0
  462. package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
  463. package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
  464. package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
  465. package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
  466. package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
  467. package/dist/safe-image-src-C6kQSMBZ.js +17 -0
  468. package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
  469. package/dist/sanitize-html-DsQmI48u.js +92 -0
  470. package/dist/sanitize-html-DsQmI48u.js.map +1 -0
  471. package/dist/scroll-area-DcI-M1UT.js +48 -0
  472. package/dist/scroll-area-DcI-M1UT.js.map +1 -0
  473. package/dist/{separator-Do5GWDYi.js → separator-BDV-Y648.js} +3 -3
  474. package/dist/{separator-Do5GWDYi.js.map → separator-BDV-Y648.js.map} +1 -1
  475. package/dist/{separator-BMEvwnSX.js → separator-Bom7NsGO.js} +2 -2
  476. package/dist/{separator-BMEvwnSX.js.map → separator-Bom7NsGO.js.map} +1 -1
  477. package/dist/services/actions/action-adapters.d.ts +18 -0
  478. package/dist/services/actions/index.d.ts +1 -1
  479. package/dist/services/actions.js +16 -4
  480. package/dist/services/actions.js.map +1 -1
  481. package/dist/settings-ybnjVwbd.js +171 -0
  482. package/dist/settings-ybnjVwbd.js.map +1 -0
  483. package/dist/sheet-CGpB3omz.js +211 -0
  484. package/dist/sheet-CGpB3omz.js.map +1 -0
  485. package/dist/{sidebar-Cb8WzOvE.js → sidebar-A0ElHINE.js} +17 -16
  486. package/dist/sidebar-A0ElHINE.js.map +1 -0
  487. package/dist/{sidebar-Crc9M9JV.js → sidebar-CPx_7YBa.js} +205 -203
  488. package/dist/sidebar-CPx_7YBa.js.map +1 -0
  489. package/dist/{skeleton-DVMXr15h.js → skeleton-Byjnt7qr.js} +9 -9
  490. package/dist/{skeleton-DVMXr15h.js.map → skeleton-Byjnt7qr.js.map} +1 -1
  491. package/dist/smart-card-DiC5aac3.js +604 -0
  492. package/dist/smart-card-DiC5aac3.js.map +1 -0
  493. package/dist/{structure-hzCW-XsV.js → structure-BmisBK-3.js} +2 -2
  494. package/dist/{structure-hzCW-XsV.js.map → structure-BmisBK-3.js.map} +1 -1
  495. package/dist/style.css +1 -1
  496. package/dist/surface-recipes-BKRVW8Os.js +43 -0
  497. package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
  498. package/dist/table-BweFy_P9.js +1530 -0
  499. package/dist/table-BweFy_P9.js.map +1 -0
  500. package/dist/table-DsfzoUia.js +175 -0
  501. package/dist/table-DsfzoUia.js.map +1 -0
  502. package/dist/tabs-CDocW5D1.js +191 -0
  503. package/dist/tabs-CDocW5D1.js.map +1 -0
  504. package/dist/text-inputs-f9Ia-aCi.js +353 -0
  505. package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
  506. package/dist/theme-mode-css-BB-_RYab.js +14 -0
  507. package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
  508. package/dist/theme-scope-BJ6eE2xt.js +50 -0
  509. package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
  510. package/dist/theme.css +285 -228
  511. package/dist/themes/green.css +16 -12
  512. package/dist/timelines-CwM_9IhD.js +457 -0
  513. package/dist/timelines-CwM_9IhD.js.map +1 -0
  514. package/dist/tone-recipes-BPsRAvhu.js +73 -0
  515. package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
  516. package/dist/tooltip-yiRJUFjp.js +111 -0
  517. package/dist/tooltip-yiRJUFjp.js.map +1 -0
  518. package/dist/{tree-BotPlyiD.js → tree-WnKQzwbq.js} +69 -67
  519. package/dist/tree-WnKQzwbq.js.map +1 -0
  520. package/dist/typography/rich-text.js +1 -1
  521. package/dist/typography-UTnveOEy.js +117 -0
  522. package/dist/typography-UTnveOEy.js.map +1 -0
  523. package/dist/typography.js +2 -2
  524. package/dist/{ui-provider-D2_TeLqw.js → ui-provider-C_U0Xma4.js} +13 -5
  525. package/dist/ui-provider-C_U0Xma4.js.map +1 -0
  526. package/dist/ui-provider.js +3 -3
  527. package/dist/{upload-B0WHW7ak.js → upload-CXyxmQBP.js} +210 -209
  528. package/dist/upload-CXyxmQBP.js.map +1 -0
  529. package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-Boscubn9.js} +111 -111
  530. package/dist/upload-queue-Boscubn9.js.map +1 -0
  531. package/dist/upload.recipes-BbxTqrCT.js +61 -0
  532. package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
  533. package/dist/{usage-card-U0YBLTNT.js → usage-card-BhO5eqkX.js} +45 -29
  534. package/dist/usage-card-BhO5eqkX.js.map +1 -0
  535. package/dist/{utils-Cospvlj1.js → utils-BRhFDwuU.js} +114 -67
  536. package/dist/utils-BRhFDwuU.js.map +1 -0
  537. package/dist/value-inputs-DXPDjvBU.js +963 -0
  538. package/dist/value-inputs-DXPDjvBU.js.map +1 -0
  539. package/dist/{value-typography-Deb3yQZg.js → value-typography-BP8OG6h5.js} +2 -2
  540. package/dist/{value-typography-Deb3yQZg.js.map → value-typography-BP8OG6h5.js.map} +1 -1
  541. package/dist/workspace-Cdrg7k9f.js +408 -0
  542. package/dist/workspace-Cdrg7k9f.js.map +1 -0
  543. package/docs/consumer-skill/SKILL.md +21 -22
  544. package/docs/consumer-skill/examples/app-layout.tsx +1 -1
  545. package/docs/consumer-skill/examples/composition.tsx +3 -3
  546. package/docs/consumer-skill/examples/detail.tsx +59 -12
  547. package/docs/consumer-skill/examples/edit.tsx +1 -1
  548. package/docs/consumer-skill/examples/receipt.tsx +2 -2
  549. package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
  550. package/docs/consumer-skill/examples/website.tsx +1 -1
  551. package/docs/consumer-skill/references/agents-md.md +33 -0
  552. package/docs/consumer-skill/references/analytics.md +1 -1
  553. package/docs/consumer-skill/references/composition.md +58 -13
  554. package/docs/consumer-skill/references/design-contract.md +12 -3
  555. package/docs/consumer-skill/references/installation.md +11 -1
  556. package/docs/consumer-skill/references/integration.md +4 -3
  557. package/docs/consumer-skill/references/public-api.json +956 -453
  558. package/docs/consumer-skill/references/review.md +32 -5
  559. package/docs/consumer-skill/references/theming.md +78 -9
  560. package/docs/consumer-skill/references/tokens.json +1 -1
  561. package/docs/consumer-skill/references/workflows.md +54 -10
  562. package/docs/consumer-skill/scripts/composition-policy.mjs +42 -11
  563. package/docs/consumer-skill/scripts/surface-policy.mjs +150 -5
  564. package/package.json +17 -5
  565. package/dist/accordion-CQXVcd7Q.js +0 -205
  566. package/dist/accordion-CQXVcd7Q.js.map +0 -1
  567. package/dist/action-menu-BTpyPWJ2.js +0 -264
  568. package/dist/action-menu-BTpyPWJ2.js.map +0 -1
  569. package/dist/affordance-geometry.generated-CCIXb2A1.js +0 -68
  570. package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
  571. package/dist/ai-artifact-2PQ2fItc.js +0 -1112
  572. package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
  573. package/dist/attachment-q69dlt5Y.js +0 -244
  574. package/dist/attachment-q69dlt5Y.js.map +0 -1
  575. package/dist/auth-M3vGMgDR.js.map +0 -1
  576. package/dist/avatar-djdaaQ_s.js.map +0 -1
  577. package/dist/badge-0tATj-tW.js +0 -92
  578. package/dist/badge-0tATj-tW.js.map +0 -1
  579. package/dist/breadcrumbs-BG_FfMK4.js +0 -128
  580. package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
  581. package/dist/button-BS3KDg00.js.map +0 -1
  582. package/dist/button-R9CCoH7A.js.map +0 -1
  583. package/dist/buttons-DS0ZIwJ_.js +0 -99
  584. package/dist/buttons-DS0ZIwJ_.js.map +0 -1
  585. package/dist/cards-QoJ4syG9.js +0 -66
  586. package/dist/cards-QoJ4syG9.js.map +0 -1
  587. package/dist/chart-DwYRKKc-.js.map +0 -1
  588. package/dist/checkbox-B7ygNTYp.js +0 -35
  589. package/dist/checkbox-B7ygNTYp.js.map +0 -1
  590. package/dist/choice-inputs-DrJ17tpL.js +0 -752
  591. package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
  592. package/dist/code-block-CD0B7M93.js +0 -183
  593. package/dist/code-block-CD0B7M93.js.map +0 -1
  594. package/dist/combobox-6dvVny2q.js +0 -272
  595. package/dist/combobox-6dvVny2q.js.map +0 -1
  596. package/dist/combobox-CB7039j7.js +0 -865
  597. package/dist/combobox-CB7039j7.js.map +0 -1
  598. package/dist/comments-You0Bzbr.js.map +0 -1
  599. package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
  600. package/dist/containers-D_L4mTVb.js.map +0 -1
  601. package/dist/data-display-3xWQUnMA.js +0 -1335
  602. package/dist/data-display-3xWQUnMA.js.map +0 -1
  603. package/dist/date-picker-DrDFj8Lo.js +0 -1527
  604. package/dist/date-picker-DrDFj8Lo.js.map +0 -1
  605. package/dist/date-pickers-CnFCb0n2.js +0 -174
  606. package/dist/date-pickers-CnFCb0n2.js.map +0 -1
  607. package/dist/display-DrdvPwF0.js +0 -343
  608. package/dist/display-DrdvPwF0.js.map +0 -1
  609. package/dist/dropdown-menu-CURh59jb.js +0 -193
  610. package/dist/dropdown-menu-CURh59jb.js.map +0 -1
  611. package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
  612. package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
  613. package/dist/feedback-C7nR0UtT.js +0 -232
  614. package/dist/feedback-C7nR0UtT.js.map +0 -1
  615. package/dist/field-affordance-recipes-CkOCdE2y.js +0 -46
  616. package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
  617. package/dist/field-state-recipes-C-MFBX_8.js +0 -11
  618. package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
  619. package/dist/filters-Da-gNPsE.js.map +0 -1
  620. package/dist/form-field-VZRULhUK.js.map +0 -1
  621. package/dist/form-sizing-uWP4lzVh.js.map +0 -1
  622. package/dist/forms-numeric-D3CO60IF.js +0 -905
  623. package/dist/forms-numeric-D3CO60IF.js.map +0 -1
  624. package/dist/header-2ycNqGOR.js.map +0 -1
  625. package/dist/icon-badge-DKlaKXoo.js +0 -53
  626. package/dist/icon-badge-DKlaKXoo.js.map +0 -1
  627. package/dist/input-BoLm9Hks.js +0 -20
  628. package/dist/input-BoLm9Hks.js.map +0 -1
  629. package/dist/input-DhQdBnV3.js +0 -255
  630. package/dist/input-DhQdBnV3.js.map +0 -1
  631. package/dist/item-xzh8Df65.js +0 -264
  632. package/dist/item-xzh8Df65.js.map +0 -1
  633. package/dist/media-gallery-DQUQ0m3O.js +0 -201
  634. package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
  635. package/dist/mentions-DwnO1hh4.js +0 -564
  636. package/dist/mentions-DwnO1hh4.js.map +0 -1
  637. package/dist/message-YfFmbXNP.js.map +0 -1
  638. package/dist/navigation-Cbp5V8gG.js +0 -264
  639. package/dist/navigation-Cbp5V8gG.js.map +0 -1
  640. package/dist/navigation-Cs1npsPm.js +0 -300
  641. package/dist/navigation-Cs1npsPm.js.map +0 -1
  642. package/dist/overlay.recipes-CNO2S9V6.js +0 -34
  643. package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
  644. package/dist/overlays-DhZO7N-I.js +0 -994
  645. package/dist/overlays-DhZO7N-I.js.map +0 -1
  646. package/dist/page-C6R_8jFt.js +0 -325
  647. package/dist/page-C6R_8jFt.js.map +0 -1
  648. package/dist/page-header-hUTzcRZX.js +0 -112
  649. package/dist/page-header-hUTzcRZX.js.map +0 -1
  650. package/dist/pagination-Cm0jqa3I.js +0 -149
  651. package/dist/pagination-Cm0jqa3I.js.map +0 -1
  652. package/dist/popover-Dcv_9jxr.js.map +0 -1
  653. package/dist/popover-menu-DnRFKnHP.js +0 -99
  654. package/dist/popover-menu-DnRFKnHP.js.map +0 -1
  655. package/dist/popover.recipes-wmbvL8Ah.js.map +0 -1
  656. package/dist/primitives-BHrwQXFC.js.map +0 -1
  657. package/dist/rich-text-editor-CF8QYt5p.js +0 -574
  658. package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
  659. package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
  660. package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
  661. package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
  662. package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
  663. package/dist/rich-text-j-FGAeZW.js +0 -32
  664. package/dist/rich-text-j-FGAeZW.js.map +0 -1
  665. package/dist/sanitize-html-BG9FGe-j.js +0 -64
  666. package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
  667. package/dist/scroll-area-DRdr16Pt.js +0 -47
  668. package/dist/scroll-area-DRdr16Pt.js.map +0 -1
  669. package/dist/settings-DHk0L2MF.js +0 -161
  670. package/dist/settings-DHk0L2MF.js.map +0 -1
  671. package/dist/sheet-DRFNY1_D.js +0 -207
  672. package/dist/sheet-DRFNY1_D.js.map +0 -1
  673. package/dist/sidebar-Cb8WzOvE.js.map +0 -1
  674. package/dist/sidebar-Crc9M9JV.js.map +0 -1
  675. package/dist/smart-card-Bek-TwUp.js +0 -599
  676. package/dist/smart-card-Bek-TwUp.js.map +0 -1
  677. package/dist/spinner-CmTAbEp0.js +0 -80
  678. package/dist/spinner-CmTAbEp0.js.map +0 -1
  679. package/dist/surface-recipes-DOdoBXGm.js +0 -28
  680. package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
  681. package/dist/table-D6zKeYQX.js +0 -162
  682. package/dist/table-D6zKeYQX.js.map +0 -1
  683. package/dist/table-Dn4XSrSB.js +0 -1444
  684. package/dist/table-Dn4XSrSB.js.map +0 -1
  685. package/dist/tabs-Dk8E_knt.js +0 -189
  686. package/dist/tabs-Dk8E_knt.js.map +0 -1
  687. package/dist/text-inputs-BFpku0Qd.js +0 -331
  688. package/dist/text-inputs-BFpku0Qd.js.map +0 -1
  689. package/dist/theme-scope-kStaAer0.js +0 -39
  690. package/dist/theme-scope-kStaAer0.js.map +0 -1
  691. package/dist/timelines-CxuAFIc2.js +0 -439
  692. package/dist/timelines-CxuAFIc2.js.map +0 -1
  693. package/dist/tree-BotPlyiD.js.map +0 -1
  694. package/dist/typography-CAr3dQhX.js +0 -116
  695. package/dist/typography-CAr3dQhX.js.map +0 -1
  696. package/dist/ui-provider-D2_TeLqw.js.map +0 -1
  697. package/dist/upload-B0WHW7ak.js.map +0 -1
  698. package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
  699. package/dist/usage-card-U0YBLTNT.js.map +0 -1
  700. package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
  701. package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
  702. package/dist/utils-Cospvlj1.js.map +0 -1
  703. package/dist/value-inputs-CjfzGMsN.js +0 -854
  704. package/dist/value-inputs-CjfzGMsN.js.map +0 -1
  705. package/dist/workspace-YoFjXi6i.js +0 -394
  706. package/dist/workspace-YoFjXi6i.js.map +0 -1
  707. /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
@@ -0,0 +1,906 @@
1
+ "use client";
2
+ import { s as e, u as t } from "./ui-provider-C_U0Xma4.js";
3
+ import { useStrings as n } from "./lib/strings.js";
4
+ import { t as r } from "./utils-BRhFDwuU.js";
5
+ import { a as i, c as a, t as o } from "./typography-UTnveOEy.js";
6
+ import { r as s, t as c } from "./structure-BmisBK-3.js";
7
+ import { h as l, p as u } from "./smart-card-DiC5aac3.js";
8
+ import { t as d } from "./interaction-recipes-XR9ZpVYL.js";
9
+ import { r as f } from "./field-affordance-recipes-DZhnIL_Y.js";
10
+ import { d as p, m, p as h, s as g, y as _ } from "./form-sizing-BdP_Mf5p.js";
11
+ import { t as v } from "./input-DQdEd0YD.js";
12
+ import { t as y } from "./form-field-CwH9y77i.js";
13
+ import { _ as b, d as ee, f as te, g as x, l as S, p as C, v as w } from "./choice-inputs-CNHvARCJ.js";
14
+ import { t as T } from "./control-group-recipes-DBXmfh2E.js";
15
+ import * as E from "react";
16
+ import { forwardRef as D, memo as O, useCallback as k, useEffect as ne, useId as A, useMemo as j, useRef as M, useState as N } from "react";
17
+ import { jsx as P, jsxs as F } from "react/jsx-runtime";
18
+ import { AlertTriangle as I, Minus as L, Plus as R } from "lucide-react";
19
+ //#region src/components/base/forms-numeric/decimal-input.tsx
20
+ var z = {
21
+ decrement: "Decrement",
22
+ increment: "Increment"
23
+ }, B = (e, t, n) => {
24
+ if (!e) return "";
25
+ let r = e;
26
+ if (r = r.replace(/,/g, "."), r = n ? r.replace(/[^\d.-]/g, "") : r.replace(/[^\d.]/g, ""), n && r.includes("-")) {
27
+ let e = r.startsWith("-");
28
+ r = r.replace(/-/g, ""), e && (r = "-" + r);
29
+ }
30
+ let i = r.split(".");
31
+ return i.length > 2 && (r = i[0] + "." + i.slice(1).join("")), i.length === 2 && i[1].length > t && (r = i[0] + "." + i[1].substring(0, t)), r;
32
+ }, V = (e, t, n) => {
33
+ if (!e || e === "-") return !0;
34
+ let r = parseFloat(e);
35
+ return Number.isNaN(r) ? !0 : !(t !== void 0 && r < t || n !== void 0 && r > n);
36
+ };
37
+ function H(e, t, n) {
38
+ let r = 10 ** t, i = e * r;
39
+ switch (n) {
40
+ case "floor": return Math.floor(i) / r;
41
+ case "ceil": return Math.ceil(i) / r;
42
+ case "half-even": {
43
+ let e = Math.floor(i), t = i - e;
44
+ return t > .5 ? (e + 1) / r : t < .5 ? e / r : (e % 2 == 0 ? e : e + 1) / r;
45
+ }
46
+ default: return Math.round(i) / r;
47
+ }
48
+ }
49
+ function U(e, t, n) {
50
+ let r = e;
51
+ return t !== void 0 && (r = Math.max(t, r)), n !== void 0 && (r = Math.min(n, r)), r;
52
+ }
53
+ function re(e, t, n, r, i = "round") {
54
+ let a = r ?? 0, o = (e - a) / n, s = a + ((i === "floor" ? Math.floor(o) : i === "ceil" ? Math.ceil(o) : Math.round(o)) + t) * n;
55
+ return Number(s.toFixed(12));
56
+ }
57
+ function W(e, t) {
58
+ let n = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set;
59
+ n ? n.call(e, t) : e.value = t, e.dispatchEvent(new Event("input", { bubbles: !0 }));
60
+ }
61
+ var G = {
62
+ sm: "w-control-sm",
63
+ md: "w-control",
64
+ lg: "w-control-lg"
65
+ };
66
+ function K({ decimalPlaces: t = 2, min: i, max: a, allowNegative: o = !0, allowEmpty: s = !0, step: c, roundingMode: l = "round", normalizeOnBlur: u = !0, onChange: f, onBlur: m, onKeyDown: h, placeholder: y, className: b, value: ee, defaultValue: te, disabled: x, size: S, strings: C, ...w }, T) {
67
+ let { defaultScale: D } = e(), O = _(S, D), ne = n(z, C), A = Math.min(12, Math.max(0, t)), j = E.useRef(null), M = x || w.loading || w.readOnly, N = k((e) => {
68
+ let t = e.target.value;
69
+ if (!t && s) {
70
+ f?.(e);
71
+ return;
72
+ }
73
+ let n = B(t, A, o);
74
+ if (V(n, i, a)) {
75
+ if (n !== t) {
76
+ let t = {
77
+ ...e,
78
+ target: {
79
+ ...e.target,
80
+ value: n
81
+ },
82
+ currentTarget: {
83
+ ...e.currentTarget,
84
+ value: n
85
+ }
86
+ };
87
+ f?.(t);
88
+ } else f?.(e);
89
+ }
90
+ }, [
91
+ f,
92
+ A,
93
+ o,
94
+ s,
95
+ i,
96
+ a
97
+ ]), I = k((e) => {
98
+ if (m?.(e), !u) return;
99
+ let t = e.target.value;
100
+ if (!t && s) return;
101
+ let n = Number.parseFloat(t.replace(",", "."));
102
+ if (!Number.isFinite(n)) return;
103
+ let r = H(U(n, i, a), A, l).toFixed(A);
104
+ r !== t && j.current && W(j.current, r);
105
+ }, [
106
+ m,
107
+ f,
108
+ u,
109
+ s,
110
+ i,
111
+ a,
112
+ A,
113
+ l
114
+ ]), K = k((e) => {
115
+ if (M || c === void 0) return;
116
+ let t = j.current;
117
+ if (!t) return;
118
+ let n = t.value, r = Number.parseFloat(n.replace(",", "."));
119
+ W(t, H(U(re(Number.isFinite(r) ? r : i ?? 0, e, c, i, l), i, a), A, l).toFixed(A));
120
+ }, [
121
+ M,
122
+ c,
123
+ i,
124
+ a,
125
+ l,
126
+ A,
127
+ f
128
+ ]), q = typeof c == "number" && c > 0, J = k((e) => {
129
+ h?.(e), !e.defaultPrevented && q && (e.key === "ArrowUp" || e.key === "ArrowDown") && (e.preventDefault(), K(e.key === "ArrowUp" ? 1 : -1));
130
+ }, [
131
+ h,
132
+ q,
133
+ K
134
+ ]), Y = y ?? (A > 0 ? `0.${"0".repeat(A)}` : "0");
135
+ return q ? /* @__PURE__ */ F("div", {
136
+ className: r("decimal-input--component", "flex items-stretch overflow-hidden rounded-inner border border-input bg-transparent [&>.input--component]:h-full", p[O], "has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-3 has-[input:focus-visible]:ring-ring/50", "has-[input[aria-invalid=true]]:border-destructive has-[input[aria-invalid=true]]:has-[input:focus-visible]:border-destructive has-[input[aria-invalid=true]]:has-[input:focus-visible]:ring-destructive/30 dark:has-[input[aria-invalid=true]]:has-[input:focus-visible]:ring-destructive/50", "has-[input:read-only:not(:disabled)]:bg-muted", x && "opacity-50 cursor-not-allowed"),
137
+ children: [
138
+ /* @__PURE__ */ P("button", {
139
+ type: "button",
140
+ tabIndex: -1,
141
+ "aria-label": ne.decrement,
142
+ disabled: M,
143
+ onClick: () => K(-1),
144
+ className: r(d.nativeButtonReset, "inline-flex shrink-0 items-center justify-center border-e border-input text-muted-foreground transition-colors", G[O], d.rowHover, "disabled:pointer-events-none disabled:cursor-not-allowed", !x && "disabled:opacity-50"),
145
+ children: /* @__PURE__ */ P(L, {
146
+ "aria-hidden": "true",
147
+ className: g[O]
148
+ })
149
+ }),
150
+ /* @__PURE__ */ P(v, {
151
+ size: O,
152
+ ref: (e) => {
153
+ j.current = e, typeof T == "function" ? T(e) : T && (T.current = e);
154
+ },
155
+ type: "text",
156
+ inputMode: A > 0 ? "decimal" : "numeric",
157
+ placeholder: Y,
158
+ onChange: N,
159
+ onBlur: I,
160
+ onKeyDown: J,
161
+ value: ee,
162
+ defaultValue: te,
163
+ disabled: x,
164
+ className: r("!h-full min-h-0 flex-1 tabular-nums text-center border-0 shadow-none rounded-none bg-transparent read-only:bg-transparent focus-visible:ring-0 focus-visible:border-0 aria-invalid:ring-0 aria-invalid:focus-visible:ring-0 disabled:opacity-100", b),
165
+ ...w
166
+ }),
167
+ /* @__PURE__ */ P("button", {
168
+ type: "button",
169
+ tabIndex: -1,
170
+ "aria-label": ne.increment,
171
+ disabled: M,
172
+ onClick: () => K(1),
173
+ className: r(d.nativeButtonReset, "inline-flex shrink-0 items-center justify-center border-s border-input text-muted-foreground transition-colors", G[O], d.rowHover, "disabled:pointer-events-none disabled:cursor-not-allowed", !x && "disabled:opacity-50"),
174
+ children: /* @__PURE__ */ P(R, {
175
+ "aria-hidden": "true",
176
+ className: g[O]
177
+ })
178
+ })
179
+ ]
180
+ }) : /* @__PURE__ */ P(v, {
181
+ size: O,
182
+ ref: (e) => {
183
+ j.current = e, typeof T == "function" ? T(e) : T && (T.current = e);
184
+ },
185
+ type: "text",
186
+ inputMode: A > 0 ? "decimal" : "numeric",
187
+ placeholder: Y,
188
+ onChange: N,
189
+ onBlur: I,
190
+ onKeyDown: h,
191
+ value: ee,
192
+ defaultValue: te,
193
+ disabled: x,
194
+ className: r("tabular-nums text-end", b),
195
+ ...w
196
+ });
197
+ }
198
+ var q = E.forwardRef(K);
199
+ q.displayName = "DecimalInput";
200
+ //#endregion
201
+ //#region src/components/base/forms-numeric/percentage-input.tsx
202
+ var J = D(function({ decimalPlaces: e = 2, min: t = 0, max: n = 100, step: r, ...i }, a) {
203
+ return /* @__PURE__ */ P(q, {
204
+ className: "percentage-input--component",
205
+ ref: a,
206
+ decimalPlaces: e,
207
+ allowNegative: !1,
208
+ min: t,
209
+ max: n,
210
+ step: r,
211
+ endAddon: "%",
212
+ ...i
213
+ });
214
+ });
215
+ J.displayName = "PercentageInput";
216
+ //#endregion
217
+ //#region src/components/base/forms-numeric/currency-input.tsx
218
+ var Y = {
219
+ ...z,
220
+ currencyAriaLabel: "Currency"
221
+ }, ie = {
222
+ USD: "$",
223
+ EUR: "€",
224
+ GBP: "£",
225
+ BGN: "лв",
226
+ JPY: "¥",
227
+ CNY: "¥",
228
+ CHF: "CHF",
229
+ CAD: "C$",
230
+ AUD: "A$"
231
+ }, X = (e) => !e || e.length === 0 ? [] : e.map((e) => typeof e == "string" ? {
232
+ value: e,
233
+ label: `${ie[e] || e} ${e}`
234
+ } : e);
235
+ function ae({ currency: t, defaultCurrency: o, currencies: s, onCurrencyChange: l, currencyPosition: u = "start", disableCurrencySelector: d = !1, currencyPlaceholder: p, currencyWidth: m = "w-28", currencyLabel: g, strings: v, invalid: y, disabled: S, onConfigError: T, size: E, ...D }, O) {
236
+ let { defaultScale: M } = e(), I = _(E, M), L = n(Y, v), R = A(), z = j(() => X(s), [s]), [B, V] = N(o ?? z[0]?.value ?? ""), H = t !== void 0, U = H ? t : B;
237
+ ne(() => {
238
+ let e = {
239
+ currency: t,
240
+ defaultCurrency: o,
241
+ disableCurrencySelector: d
242
+ };
243
+ d && typeof t == "string" && typeof o == "string" && t.trim() !== "" && o.trim() !== "" && t !== o && T?.("[CurrencyInput] currency/defaultCurrency mismatch while selector is disabled.", e), d && (typeof U != "string" || U.trim().length === 0) && T?.("[CurrencyInput] disableCurrencySelector is enabled but no currency is provided.", e);
244
+ }, [
245
+ t,
246
+ o,
247
+ d,
248
+ T,
249
+ U
250
+ ]);
251
+ let re = k((e) => {
252
+ e !== null && (H || V(e), l?.(e));
253
+ }, [H, l]), W = j(() => r("currency-input--selector-trigger", h(I), m), [I, m]), G = /* @__PURE__ */ F(c, {
254
+ gap: "xs",
255
+ className: "currency-input--selector",
256
+ children: [!!g && /* @__PURE__ */ P(i, {
257
+ htmlFor: R,
258
+ className: r("currency-input--selector-label text-inherit", "leading-6"),
259
+ children: g
260
+ }), /* @__PURE__ */ F(x, {
261
+ value: U,
262
+ onValueChange: (e) => re(e),
263
+ disabled: S || d,
264
+ children: [/* @__PURE__ */ P(b, {
265
+ id: R,
266
+ "aria-label": g || L.currencyAriaLabel,
267
+ "aria-invalid": y || void 0,
268
+ iconClassName: f.icon[I],
269
+ className: W,
270
+ children: /* @__PURE__ */ P(w, { placeholder: p ? /* @__PURE__ */ P(a, {
271
+ tag: "span",
272
+ size: "inherit",
273
+ type: "secondary",
274
+ lineHeight: "tight",
275
+ className: "text-inherit",
276
+ children: p
277
+ }) : void 0 })
278
+ }), /* @__PURE__ */ P(ee, { children: /* @__PURE__ */ P(te, { children: z.map((e) => /* @__PURE__ */ P(C, {
279
+ value: e.value,
280
+ size: I,
281
+ children: /* @__PURE__ */ P(a, {
282
+ tag: "span",
283
+ size: "inherit",
284
+ lineHeight: "tight",
285
+ className: "text-inherit",
286
+ children: e.label
287
+ })
288
+ }, e.value)) }) })]
289
+ })]
290
+ });
291
+ return /* @__PURE__ */ F("div", {
292
+ className: r("currency-input--component", "flex items-end gap-space-md"),
293
+ children: [
294
+ u === "start" && G,
295
+ /* @__PURE__ */ P("div", {
296
+ className: "currency-input--amount min-w-0 flex-1",
297
+ children: /* @__PURE__ */ P(q, {
298
+ ref: O,
299
+ size: I,
300
+ decimalPlaces: 2,
301
+ allowNegative: !1,
302
+ disabled: S,
303
+ invalid: y,
304
+ strings: {
305
+ decrement: L.decrement,
306
+ increment: L.increment
307
+ },
308
+ ...D
309
+ })
310
+ }),
311
+ u === "end" && G
312
+ ]
313
+ });
314
+ }
315
+ var oe = O(D(ae));
316
+ oe.displayName = "CurrencyInput";
317
+ //#endregion
318
+ //#region src/components/base/forms-numeric/money-input.strings.ts
319
+ var se = {
320
+ originalValue: "Original value: {value}",
321
+ conversionWarning: "Currency will be converted from {from} to {to}."
322
+ };
323
+ function ce(e, t) {
324
+ return Object.entries(t).reduce((e, [t, n]) => e.replaceAll(`{${t}}`, n), e);
325
+ }
326
+ //#endregion
327
+ //#region src/components/base/forms-numeric/money-input.tsx
328
+ var le = ["USD", "EUR"];
329
+ function ue(e) {
330
+ let t = String(e ?? "").trim();
331
+ if (!t) return null;
332
+ let n = Number.parseFloat(t.replace(",", "."));
333
+ return Number.isFinite(n) ? n : null;
334
+ }
335
+ function Z(e) {
336
+ return typeof e == "string" ? e.trim() : "";
337
+ }
338
+ function de(e) {
339
+ return typeof e == "string" ? e : e.value;
340
+ }
341
+ var fe = D(function({ currency: e, defaultCurrency: i, currencies: o, onCurrencyChange: s, onChangeData: d, money: f, label: p, hint: m, helperText: h, error: g, required: _, invalid: v, recordCurrency: b, showMigrationWarning: ee = !0, migrationWarningMessage: te, showOriginalHint: x = !0, controlStrings: S, controlClassName: C, strings: w, className: T, onChange: E, value: D, defaultValue: O, ...ne }, A) {
342
+ let L = t(), R = n(se, w), z = i ?? L.defaultCurrency ?? "USD", [B, V] = N(z), H = e ?? B, U = M(null), re = j(() => {
343
+ let e = o?.length ? o : [z, ...le], t = /* @__PURE__ */ new Map();
344
+ for (let n of e) {
345
+ let e = de(n);
346
+ t.has(e) || t.set(e, n);
347
+ }
348
+ let n = Array.from(t.values());
349
+ return t.has(H) ? n : [H, ...n];
350
+ }, [
351
+ H,
352
+ o,
353
+ z
354
+ ]), W = b ?? f?.recordCurrency ?? void 0, G = x ? Z(f?.pair?.formatted) : "", K = !!(W && H && W !== H), q = v ?? !!g, J = k((e) => {
355
+ U.current = e, typeof A == "function" ? A(e) : A && (A.current = e);
356
+ }, [A]), Y = k((e) => {
357
+ E?.(e), d?.({
358
+ amount: ue(e.target.value),
359
+ currency: H
360
+ });
361
+ }, [
362
+ H,
363
+ E,
364
+ d
365
+ ]), ie = k((t) => {
366
+ e === void 0 && V(t), s?.(t), d?.({
367
+ amount: ue(U.current?.value ?? D ?? O),
368
+ currency: t
369
+ });
370
+ }, [
371
+ e,
372
+ O,
373
+ d,
374
+ s,
375
+ D
376
+ ]), X = /* @__PURE__ */ P(oe, {
377
+ ...ne,
378
+ ref: J,
379
+ value: D,
380
+ defaultValue: O,
381
+ currency: H,
382
+ currencies: re,
383
+ onChange: Y,
384
+ onCurrencyChange: ie,
385
+ invalid: q,
386
+ required: _,
387
+ "aria-required": _ ? !0 : ne["aria-required"],
388
+ strings: S,
389
+ className: C
390
+ }), ae = !!(p || m || h || g || _);
391
+ return /* @__PURE__ */ F(c, {
392
+ gap: "sm",
393
+ className: r("money-input--component", T),
394
+ children: [/* @__PURE__ */ F(c, {
395
+ gap: "xs",
396
+ className: "money-input--field",
397
+ children: [ae ? /* @__PURE__ */ P(y, {
398
+ label: p,
399
+ hint: m,
400
+ helperText: h,
401
+ error: g,
402
+ required: _,
403
+ children: X
404
+ }) : X, !!G && !g && /* @__PURE__ */ P(a, {
405
+ tag: "p",
406
+ size: "xs",
407
+ type: "secondary",
408
+ className: "money-input--original",
409
+ children: ce(R.originalValue, { value: G })
410
+ })]
411
+ }), !!K && ee && /* @__PURE__ */ F(u, {
412
+ tone: "warning",
413
+ className: "money-input--warning",
414
+ children: [/* @__PURE__ */ P(I, { "aria-hidden": "true" }), /* @__PURE__ */ P(l, { children: te ?? ce(R.conversionWarning, {
415
+ from: W ?? "",
416
+ to: H
417
+ }) })]
418
+ })]
419
+ });
420
+ });
421
+ fe.displayName = "MoneyInput";
422
+ //#endregion
423
+ //#region src/components/base/forms-numeric/rounding-mode-select.tsx
424
+ var pe = [
425
+ "floor",
426
+ "half_up",
427
+ "ceil"
428
+ ], me = {
429
+ floor: "Round down",
430
+ half_up: "Round half up",
431
+ ceil: "Round up"
432
+ }, he = D(function(e, t) {
433
+ let n = Object.prototype.hasOwnProperty.call(e, "value"), { value: i, onValueChange: a, labels: o, placeholder: s, className: c, ...l } = e, u = j(() => pe.map((e) => ({
434
+ value: e,
435
+ label: o?.[e] ?? me[e] ?? e
436
+ })), [o]), d = k((e) => {
437
+ a?.(e);
438
+ }, [a]);
439
+ return /* @__PURE__ */ P(S, {
440
+ ref: t,
441
+ className: r("rounding-mode-select--component", c),
442
+ options: u,
443
+ ...n ? { value: i } : {},
444
+ onValueChange: d,
445
+ placeholder: s,
446
+ ...l
447
+ });
448
+ });
449
+ he.displayName = "RoundingModeSelect";
450
+ //#endregion
451
+ //#region src/components/base/forms-numeric/dimensions-input.tsx
452
+ var ge = {
453
+ width: "Width",
454
+ height: "Height",
455
+ depth: "Depth",
456
+ unit: "Unit",
457
+ widthPlaceholder: "0.00",
458
+ heightPlaceholder: "0.00",
459
+ depthPlaceholder: "0.00"
460
+ }, _e = [
461
+ {
462
+ value: "mm",
463
+ label: "mm"
464
+ },
465
+ {
466
+ value: "cm",
467
+ label: "cm"
468
+ },
469
+ {
470
+ value: "m",
471
+ label: "m"
472
+ },
473
+ {
474
+ value: "in",
475
+ label: "in"
476
+ },
477
+ {
478
+ value: "ft",
479
+ label: "ft"
480
+ },
481
+ {
482
+ value: "px",
483
+ label: "px"
484
+ }
485
+ ], ve = (e, t) => {
486
+ if (!e) return {
487
+ width: "",
488
+ height: "",
489
+ depth: ""
490
+ };
491
+ if (t === "string" && typeof e == "string") {
492
+ let t = e.split("x").map((e) => e.trim());
493
+ return {
494
+ width: t[0] || "",
495
+ height: t[1] || "",
496
+ depth: t[2] || ""
497
+ };
498
+ }
499
+ return t === "object" && typeof e == "object" ? {
500
+ width: e.width || "",
501
+ height: e.height || "",
502
+ depth: e.depth || ""
503
+ } : {
504
+ width: "",
505
+ height: "",
506
+ depth: ""
507
+ };
508
+ }, ye = (e, t, n, r) => r === "string" ? `${e}x${t}x${n}` : {
509
+ width: e,
510
+ height: t,
511
+ depth: n
512
+ }, be = E.forwardRef(function({ value: t, defaultValue: o, format: s = "string", unit: l, defaultUnit: u = "cm", widthLabel: d, heightLabel: p, depthLabel: g, unitLabel: v, unitPlaceholder: y, widthPlaceholder: S, heightPlaceholder: E, depthPlaceholder: D, onChange: O, onUnitChange: j, decimalPlaces: M = 2, min: I = 0, max: L, showUnitSelector: R = !0, disableUnitSelector: z = !1, layout: B = "horizontal", invalid: V, disabled: H = !1, className: U, size: re, strings: W }, G) {
513
+ let { defaultScale: K } = e(), J = _(re, K), Y = n(ge, W), ie = d ?? Y.width, X = p ?? Y.height, ae = g ?? Y.depth, oe = y ?? Y.unit, se = S ?? Y.widthPlaceholder, ce = E ?? Y.heightPlaceholder, le = D ?? Y.depthPlaceholder, ue = B === "horizontal", Z = B === "vertical", de = R === !0, fe = (v ?? "").length > 0, pe = Z ? ie : "", me = Z ? X : "", he = Z ? ae : "", be = A(), Q = {
514
+ width: `${be}-width`,
515
+ height: `${be}-height`,
516
+ depth: `${be}-depth`,
517
+ unit: `${be}-unit`
518
+ }, xe = r("text-inherit", m), $ = t !== void 0, Se = l !== void 0, Ce = ve($ ? t : o, s), [we, Te] = N(Ce.width), [Ee, De] = N(Ce.height), [Oe, ke] = N(Ce.depth), [Ae, je] = N(l || u), Me = ve(t, s), Ne = $ ? Me.width : we, Pe = $ ? Me.height : Ee, Fe = $ ? Me.depth : Oe, Ie = Se ? l : Ae;
519
+ ne(() => {
520
+ if ($) {
521
+ let e = ve(t, s);
522
+ Te(e.width), De(e.height), ke(e.depth);
523
+ }
524
+ }, [
525
+ t,
526
+ s,
527
+ $
528
+ ]);
529
+ let Le = k((e, t) => {
530
+ let n = Ne, r = Pe, i = Fe;
531
+ e === "width" && (n = t), e === "height" && (r = t), e === "depth" && (i = t), $ || (Te(n), De(r), ke(i));
532
+ let a = ye(n, r, i, s);
533
+ O?.({ target: { value: a } });
534
+ }, [
535
+ Ne,
536
+ Pe,
537
+ Fe,
538
+ $,
539
+ s,
540
+ O
541
+ ]), Re = k((e) => {
542
+ if (e === null) return;
543
+ let t = e;
544
+ Se || je(t), j?.(t);
545
+ }, [Se, j]), ze = /* @__PURE__ */ F(c, {
546
+ gap: "xs",
547
+ children: [!!fe && Z && /* @__PURE__ */ P(i, {
548
+ htmlFor: Q.unit,
549
+ className: xe,
550
+ children: v
551
+ }), /* @__PURE__ */ F(x, {
552
+ value: Ie,
553
+ onValueChange: (e) => Re(e),
554
+ disabled: H || z,
555
+ children: [/* @__PURE__ */ P(b, {
556
+ id: Q.unit,
557
+ "aria-label": v ?? Y.unit,
558
+ "aria-invalid": V || void 0,
559
+ iconClassName: f.icon[J],
560
+ className: r(h(J), B === "vertical" ? "w-full" : "w-full @md/dimensions-input:w-32"),
561
+ children: /* @__PURE__ */ P(w, { placeholder: /* @__PURE__ */ P(a, {
562
+ tag: "span",
563
+ size: "inherit",
564
+ type: "secondary",
565
+ lineHeight: "tight",
566
+ className: "text-inherit",
567
+ children: oe
568
+ }) })
569
+ }), /* @__PURE__ */ P(ee, { children: /* @__PURE__ */ P(te, { children: _e.map((e) => /* @__PURE__ */ P(C, {
570
+ value: e.value,
571
+ size: J,
572
+ children: /* @__PURE__ */ P(a, {
573
+ tag: "span",
574
+ size: "inherit",
575
+ lineHeight: "tight",
576
+ className: "text-inherit",
577
+ children: e.label
578
+ })
579
+ }, e.value)) }) })]
580
+ })]
581
+ });
582
+ return /* @__PURE__ */ P(c, {
583
+ ref: G,
584
+ gap: "md",
585
+ className: r("dimensions-input--component @container/dimensions-input", U),
586
+ children: /* @__PURE__ */ F(c, {
587
+ direction: B === "vertical" ? "vertical" : "horizontal",
588
+ gap: "md",
589
+ align: B === "vertical" ? "stretch" : "start",
590
+ className: "dimensions-input--fields",
591
+ children: [
592
+ /* @__PURE__ */ F(c, {
593
+ gap: "xs",
594
+ className: "min-w-0 flex-1",
595
+ children: [
596
+ !!Z && !!pe && /* @__PURE__ */ P(i, {
597
+ htmlFor: Q.width,
598
+ className: xe,
599
+ children: pe
600
+ }),
601
+ /* @__PURE__ */ P(q, {
602
+ id: Q.width,
603
+ size: J,
604
+ value: Ne,
605
+ onChange: (e) => Le("width", e.target.value),
606
+ placeholder: se,
607
+ decimalPlaces: M,
608
+ min: I,
609
+ max: L,
610
+ disabled: H,
611
+ invalid: V,
612
+ "aria-label": ie
613
+ }),
614
+ !!ue && /* @__PURE__ */ P(a, {
615
+ size: "xs",
616
+ type: "secondary",
617
+ className: "text-center",
618
+ children: ie
619
+ })
620
+ ]
621
+ }),
622
+ B === "horizontal" && /* @__PURE__ */ P("div", {
623
+ "aria-hidden": "true",
624
+ className: r("dimensions-input--separator flex items-center", T[J]),
625
+ children: /* @__PURE__ */ P(a, {
626
+ tag: "span",
627
+ type: "secondary",
628
+ children: "×"
629
+ })
630
+ }),
631
+ /* @__PURE__ */ F(c, {
632
+ gap: "xs",
633
+ className: "min-w-0 flex-1",
634
+ children: [
635
+ !!Z && !!me && /* @__PURE__ */ P(i, {
636
+ htmlFor: Q.height,
637
+ className: xe,
638
+ children: me
639
+ }),
640
+ /* @__PURE__ */ P(q, {
641
+ id: Q.height,
642
+ size: J,
643
+ value: Pe,
644
+ onChange: (e) => Le("height", e.target.value),
645
+ placeholder: ce,
646
+ decimalPlaces: M,
647
+ min: I,
648
+ max: L,
649
+ disabled: H,
650
+ invalid: V,
651
+ "aria-label": X
652
+ }),
653
+ !!ue && /* @__PURE__ */ P(a, {
654
+ size: "xs",
655
+ type: "secondary",
656
+ className: "text-center",
657
+ children: X
658
+ })
659
+ ]
660
+ }),
661
+ B === "horizontal" && /* @__PURE__ */ P("div", {
662
+ "aria-hidden": "true",
663
+ className: r("dimensions-input--separator flex items-center", T[J]),
664
+ children: /* @__PURE__ */ P(a, {
665
+ tag: "span",
666
+ type: "secondary",
667
+ children: "×"
668
+ })
669
+ }),
670
+ /* @__PURE__ */ F(c, {
671
+ gap: "xs",
672
+ className: "min-w-0 flex-1",
673
+ children: [
674
+ !!Z && !!he && /* @__PURE__ */ P(i, {
675
+ htmlFor: Q.depth,
676
+ className: xe,
677
+ children: he
678
+ }),
679
+ /* @__PURE__ */ P(q, {
680
+ id: Q.depth,
681
+ size: J,
682
+ value: Fe,
683
+ onChange: (e) => Le("depth", e.target.value),
684
+ placeholder: le,
685
+ decimalPlaces: M,
686
+ min: I,
687
+ max: L,
688
+ disabled: H,
689
+ invalid: V,
690
+ "aria-label": ae
691
+ }),
692
+ !!ue && /* @__PURE__ */ P(a, {
693
+ size: "xs",
694
+ type: "secondary",
695
+ className: "text-center",
696
+ children: ae
697
+ })
698
+ ]
699
+ }),
700
+ !!de && /* @__PURE__ */ F(c, {
701
+ gap: "xs",
702
+ className: r("dimensions-input--unit", B === "vertical" ? "w-full" : "w-full basis-full pt-0 @md/dimensions-input:w-32 @md/dimensions-input:basis-32 @md/dimensions-input:shrink-0"),
703
+ children: [ze, !!ue && /* @__PURE__ */ P(a, {
704
+ size: "xs",
705
+ type: "secondary",
706
+ className: "text-center",
707
+ children: fe ? v : oe
708
+ })]
709
+ })
710
+ ]
711
+ })
712
+ });
713
+ });
714
+ be.displayName = "DimensionsInput";
715
+ //#endregion
716
+ //#region src/components/base/forms-numeric/weight-input.tsx
717
+ var Q = {
718
+ unitLabel: "",
719
+ unitAriaLabel: "Unit",
720
+ unitPlaceholder: ""
721
+ }, xe = [
722
+ {
723
+ value: "g",
724
+ label: "g"
725
+ },
726
+ {
727
+ value: "kg",
728
+ label: "kg"
729
+ },
730
+ {
731
+ value: "lb",
732
+ label: "lb"
733
+ },
734
+ {
735
+ value: "oz",
736
+ label: "oz"
737
+ }
738
+ ], $ = E.forwardRef(function({ value: t, defaultValue: o, unit: s, defaultUnit: l = "g", onChange: u, onUnitChange: d, decimalPlaces: p = 2, min: m = 0, max: g, showUnitSelector: v = !0, disableUnitSelector: y = !1, unitWidth: S = "w-24", strings: T, invalid: E, disabled: D = !1, size: O, className: ne }, M) {
739
+ let { defaultScale: I } = e(), L = _(O, I), R = n(Q, T), z = t !== void 0, B = s !== void 0, [V, H] = N(o ?? ""), [U, re] = N(s ?? l), W = z ? t ?? "" : V, G = B ? s ?? l : U, K = k((e) => {
740
+ z || H(e.target.value), u?.({ target: { value: e.target.value } });
741
+ }, [z, u]), J = k((e) => {
742
+ if (e === null) return;
743
+ let t = e;
744
+ B || re(t), d?.(t);
745
+ }, [B, d]), Y = j(() => xe, []), ie = R.unitLabel !== "", X = A();
746
+ return /* @__PURE__ */ F("div", {
747
+ ref: M,
748
+ className: r("weight-input--component", "flex items-end gap-space-md", ne),
749
+ children: [/* @__PURE__ */ P("div", {
750
+ className: "flex-1",
751
+ children: /* @__PURE__ */ P(q, {
752
+ size: L,
753
+ value: W,
754
+ onChange: K,
755
+ decimalPlaces: p,
756
+ allowNegative: !1,
757
+ min: m,
758
+ max: g,
759
+ disabled: D,
760
+ invalid: E
761
+ })
762
+ }), !!v && /* @__PURE__ */ F(c, {
763
+ gap: "xs",
764
+ children: [!!ie && /* @__PURE__ */ P(i, {
765
+ htmlFor: X,
766
+ className: r("text-inherit", "leading-6"),
767
+ children: R.unitLabel
768
+ }), /* @__PURE__ */ F(x, {
769
+ value: G,
770
+ onValueChange: (e) => J(e),
771
+ disabled: D || y,
772
+ children: [/* @__PURE__ */ P(b, {
773
+ id: X,
774
+ "aria-label": R.unitLabel || R.unitAriaLabel,
775
+ "aria-invalid": E || void 0,
776
+ iconClassName: f.icon[L],
777
+ className: r(h(L), S),
778
+ children: /* @__PURE__ */ P(w, { placeholder: R.unitPlaceholder ? /* @__PURE__ */ P(a, {
779
+ tag: "span",
780
+ size: "inherit",
781
+ type: "secondary",
782
+ lineHeight: "tight",
783
+ className: "text-inherit",
784
+ children: R.unitPlaceholder
785
+ }) : void 0 })
786
+ }), /* @__PURE__ */ P(ee, { children: /* @__PURE__ */ P(te, { children: Y.map((e) => /* @__PURE__ */ P(C, {
787
+ value: e.value,
788
+ size: L,
789
+ children: /* @__PURE__ */ P(a, {
790
+ tag: "span",
791
+ size: "inherit",
792
+ lineHeight: "tight",
793
+ className: "text-inherit",
794
+ children: e.label
795
+ })
796
+ }, e.value)) }) })]
797
+ })]
798
+ })]
799
+ });
800
+ });
801
+ $.displayName = "WeightInput";
802
+ //#endregion
803
+ //#region src/components/base/forms-numeric/coordinates-input.tsx
804
+ var Se = {
805
+ latLabel: "",
806
+ lngLabel: "",
807
+ latPlaceholder: "",
808
+ lngPlaceholder: "",
809
+ previewLinkLabel: ""
810
+ }, Ce = (e, t) => {
811
+ if (!e) return {
812
+ lat: "",
813
+ lng: ""
814
+ };
815
+ if (t === "string" && typeof e == "string") {
816
+ let [t, n] = e.split(",").map((e) => e.trim());
817
+ return {
818
+ lat: t ?? "",
819
+ lng: n ?? ""
820
+ };
821
+ }
822
+ return t === "object" && typeof e == "object" ? {
823
+ lat: e.lat ?? "",
824
+ lng: e.lng ?? ""
825
+ } : {
826
+ lat: "",
827
+ lng: ""
828
+ };
829
+ }, we = (e, t, n) => n === "string" ? `${e},${t}` : {
830
+ lat: e,
831
+ lng: t
832
+ }, Te = (e, t, n) => {
833
+ if (!e) return !1;
834
+ let r = Number(e);
835
+ return Number.isFinite(r) && r >= t && r <= n;
836
+ }, Ee = E.forwardRef(function({ value: e, defaultValue: t, format: i = "object", onChange: a, decimalPlaces: l = 6, showPreviewLink: u = !0, strings: d, invalid: f, className: p, disabled: m, size: h }, g) {
837
+ let _ = n(Se, d), v = e !== void 0, b = Ce(v ? e : t, i), [ee, te] = N(b.lat), [x, S] = N(b.lng), C = Ce(e, i), w = v ? C.lat : ee, T = v ? C.lng : x;
838
+ ne(() => {
839
+ v && (te(C.lat), S(C.lng));
840
+ }, [
841
+ v,
842
+ C.lat,
843
+ C.lng
844
+ ]);
845
+ let E = k((e, t) => {
846
+ v || (te(e), S(t)), a?.({ target: { value: we(e, t, i) } });
847
+ }, [
848
+ v,
849
+ a,
850
+ i
851
+ ]), D = j(() => {
852
+ let e = Te(w, -90, 90), t = Te(T, -180, 180);
853
+ return !e || !t ? null : `https://www.google.com/maps?q=${encodeURIComponent(`${w},${T}`)}`;
854
+ }, [w, T]);
855
+ return /* @__PURE__ */ F(c, {
856
+ ref: g,
857
+ gap: "lg",
858
+ className: r("coordinates-input--component", p),
859
+ children: [/* @__PURE__ */ F(s, {
860
+ columns: {
861
+ base: 1,
862
+ md: 2
863
+ },
864
+ gap: "lg",
865
+ children: [/* @__PURE__ */ P(y, {
866
+ label: _.latLabel || void 0,
867
+ children: /* @__PURE__ */ P(q, {
868
+ placeholder: _.latPlaceholder || void 0,
869
+ value: w,
870
+ onChange: (e) => E(e.target.value, T),
871
+ decimalPlaces: l,
872
+ allowNegative: !0,
873
+ min: -90,
874
+ max: 90,
875
+ invalid: f,
876
+ disabled: m,
877
+ size: h
878
+ })
879
+ }), /* @__PURE__ */ P(y, {
880
+ label: _.lngLabel || void 0,
881
+ children: /* @__PURE__ */ P(q, {
882
+ placeholder: _.lngPlaceholder || void 0,
883
+ value: T,
884
+ onChange: (e) => E(w, e.target.value),
885
+ decimalPlaces: l,
886
+ allowNegative: !0,
887
+ min: -180,
888
+ max: 180,
889
+ invalid: f,
890
+ disabled: m,
891
+ size: h
892
+ })
893
+ })]
894
+ }), !!u && !!D && !!_.previewLinkLabel && /* @__PURE__ */ P(o, {
895
+ href: D,
896
+ type: "secondary",
897
+ underline: !1,
898
+ children: _.previewLinkLabel
899
+ })]
900
+ });
901
+ });
902
+ Ee.displayName = "CoordinatesInput";
903
+ //#endregion
904
+ export { he as a, oe as c, q as d, be as i, Y as l, $ as n, fe as o, Q as r, se as s, Ee as t, J as u };
905
+
906
+ //# sourceMappingURL=forms-numeric-B_jraJaQ.js.map