themelia-react-ui 1.0.2 → 2.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 (748) hide show
  1. package/CHANGELOG.md +632 -1
  2. package/README.md +31 -13
  3. package/dist/accordion-B6a3vVgA.js +207 -0
  4. package/dist/accordion-B6a3vVgA.js.map +1 -0
  5. package/dist/action-menu-TzCoSlwL.js +280 -0
  6. package/dist/action-menu-TzCoSlwL.js.map +1 -0
  7. package/dist/{affordance-geometry.generated-CL84ZN9A.js → affordance-geometry.generated-B5iu-Mkr.js} +9 -3
  8. package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
  9. package/dist/{ai-artifact-DLVdK0Py.js → ai-artifact-BMJdv-6q.js} +389 -391
  10. package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
  11. package/dist/{app-shell-C_fKpljx.js → app-shell-ZK5RWdo6.js} +4 -4
  12. package/dist/{app-shell-C_fKpljx.js.map → app-shell-ZK5RWdo6.js.map} +1 -1
  13. package/dist/attachment-BtfhGm8i.js +245 -0
  14. package/dist/attachment-BtfhGm8i.js.map +1 -0
  15. package/dist/{auth-CAQcasMV.js → auth-CYxKfo69.js} +239 -237
  16. package/dist/auth-CYxKfo69.js.map +1 -0
  17. package/dist/{avatar-Bu2HhitA.js → avatar-BBnEJIx8.js} +71 -68
  18. package/dist/avatar-BBnEJIx8.js.map +1 -0
  19. package/dist/badge-MrKVNzW9.js +93 -0
  20. package/dist/badge-MrKVNzW9.js.map +1 -0
  21. package/dist/base/accordion.js +1 -1
  22. package/dist/base/action-menu.js +1 -1
  23. package/dist/base/attachment.js +1 -1
  24. package/dist/base/avatar.js +1 -1
  25. package/dist/base/badge.js +1 -1
  26. package/dist/base/batch-action-bar.js +3 -0
  27. package/dist/base/buttons.js +2 -3
  28. package/dist/base/cards.js +2 -2
  29. package/dist/base/carousel.js +19 -19
  30. package/dist/base/carousel.js.map +1 -1
  31. package/dist/base/cascader.js +234 -224
  32. package/dist/base/cascader.js.map +1 -1
  33. package/dist/base/chart.js +1 -1
  34. package/dist/base/choice-inputs.js +3 -3
  35. package/dist/base/code-block.js +1 -1
  36. package/dist/base/combobox.js +1 -1
  37. package/dist/base/command.js +1 -1
  38. package/dist/base/copyable.js +1 -1
  39. package/dist/base/date-pickers.js +2 -2
  40. package/dist/base/display.js +7 -7
  41. package/dist/base/feedback.js +3 -3
  42. package/dist/base/forms-numeric.js +1 -1
  43. package/dist/base/forms.js +2 -2
  44. package/dist/base/inline-edit.js +81 -76
  45. package/dist/base/inline-edit.js.map +1 -1
  46. package/dist/base/item.js +1 -1
  47. package/dist/base/media-gallery.js +1 -1
  48. package/dist/base/metadata-list.js +3 -0
  49. package/dist/base/navigation.js +7 -7
  50. package/dist/base/popover-menu.js +1 -1
  51. package/dist/base/popover.js +1 -1
  52. package/dist/base/qr-code.js +7 -4
  53. package/dist/base/qr-code.js.map +1 -1
  54. package/dist/base/repeaters.js +175 -174
  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 +148 -138
  59. package/dist/base/signature-pad.js.map +1 -1
  60. package/dist/base/skeleton.js +1 -1
  61. package/dist/base/spinner.js +1 -1
  62. package/dist/base/structure.js +1 -1
  63. package/dist/base/table.js +1 -1
  64. package/dist/base/text-inputs.js +2 -2
  65. package/dist/base/toaster.js +4 -4
  66. package/dist/base/toaster.js.map +1 -1
  67. package/dist/base/tree.js +1 -1
  68. package/dist/base/upload-queue.js +1 -1
  69. package/dist/base/upload.js +3 -3
  70. package/dist/base/value-inputs.js +2 -2
  71. package/dist/batch-action-bar-BZGDG-Si.js +104 -0
  72. package/dist/batch-action-bar-BZGDG-Si.js.map +1 -0
  73. package/dist/blocks/admin.js +264 -253
  74. package/dist/blocks/admin.js.map +1 -1
  75. package/dist/blocks/ai.js +293 -323
  76. package/dist/blocks/ai.js.map +1 -1
  77. package/dist/blocks/analytics/usage-card.js +1 -1
  78. package/dist/blocks/analytics.js +596 -587
  79. package/dist/blocks/analytics.js.map +1 -1
  80. package/dist/blocks/collaboration.js +1 -1
  81. package/dist/blocks/commerce/receipt.js +1 -1
  82. package/dist/blocks/commerce.js +2246 -1693
  83. package/dist/blocks/commerce.js.map +1 -1
  84. package/dist/blocks/data-display.js +3 -2
  85. package/dist/blocks/onboarding.js +50 -49
  86. package/dist/blocks/onboarding.js.map +1 -1
  87. package/dist/blocks/planning.js +82 -91
  88. package/dist/blocks/planning.js.map +1 -1
  89. package/dist/blocks/timelines.js +1 -1
  90. package/dist/breadcrumbs-D5t7I023.js +129 -0
  91. package/dist/breadcrumbs-D5t7I023.js.map +1 -0
  92. package/dist/{button-BZyfTvwm.js → button-QYwiyhD2.js} +15 -14
  93. package/dist/button-QYwiyhD2.js.map +1 -0
  94. package/dist/buttons-SbIcm1HJ.js +661 -0
  95. package/dist/buttons-SbIcm1HJ.js.map +1 -0
  96. package/dist/{cards-qGSErLw_.js → cards-CiiHpKYd.js} +8 -8
  97. package/dist/cards-CiiHpKYd.js.map +1 -0
  98. package/dist/{chart-Bsc5BICK.js → chart-QfrARkXl.js} +17 -15
  99. package/dist/chart-QfrARkXl.js.map +1 -0
  100. package/dist/checkbox-DhB6K0bK.js +36 -0
  101. package/dist/checkbox-DhB6K0bK.js.map +1 -0
  102. package/dist/choice-inputs-t6w3ATNz.js +766 -0
  103. package/dist/choice-inputs-t6w3ATNz.js.map +1 -0
  104. package/dist/code-block-Dgbu-CU3.js +185 -0
  105. package/dist/code-block-Dgbu-CU3.js.map +1 -0
  106. package/dist/{collapsible-ClvC7Bj3.js → collapsible-D8AEGU1-.js} +4 -4
  107. package/dist/{collapsible-ClvC7Bj3.js.map → collapsible-D8AEGU1-.js.map} +1 -1
  108. package/dist/{collection-content-D6S8cv_n.js → collection-content-uK16Grv0.js} +3 -3
  109. package/dist/{collection-content-D6S8cv_n.js.map → collection-content-uK16Grv0.js.map} +1 -1
  110. package/dist/{combobox-BFnbJJp3.js → combobox-2Ic8N9bL.js} +103 -98
  111. package/dist/combobox-2Ic8N9bL.js.map +1 -0
  112. package/dist/combobox-DLl0bfiq.js +867 -0
  113. package/dist/combobox-DLl0bfiq.js.map +1 -0
  114. package/dist/{command-BnmSchli.js → command-kNR20o7x.js} +34 -30
  115. package/dist/command-kNR20o7x.js.map +1 -0
  116. package/dist/{comments-u5L0OGip.js → comments-BpDuCUUu.js} +304 -301
  117. package/dist/comments-BpDuCUUu.js.map +1 -0
  118. package/dist/components/base/accordion/accordion-variants.d.ts +3 -3
  119. package/dist/components/base/action-menu/action-menu.d.ts +27 -5
  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/avatar/stacked-avatars.d.ts +5 -4
  123. package/dist/components/base/badge/badge.d.ts +1 -1
  124. package/dist/components/base/badge/badge.recipes.d.ts +6 -6
  125. package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
  126. package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
  127. package/dist/components/base/batch-action-bar/index.d.ts +8 -0
  128. package/dist/components/base/buttons/base-button.d.ts +7 -0
  129. package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
  130. package/dist/components/base/buttons/button.recipes.d.ts +2 -2
  131. package/dist/components/base/buttons/button.variants.d.ts +1 -0
  132. package/dist/components/base/buttons/loader-button.d.ts +3 -1
  133. package/dist/components/base/buttons/text-button.d.ts +2 -2
  134. package/dist/components/base/carousel/carousel.d.ts +3 -1
  135. package/dist/components/base/chart/chart.d.ts +7 -7
  136. package/dist/components/base/choice-inputs/checkbox.d.ts +6 -7
  137. package/dist/components/base/choice-inputs/choice-types.d.ts +24 -3
  138. package/dist/components/base/choice-inputs/pill-radio-group.d.ts +9 -0
  139. package/dist/components/base/choice-inputs/select-popup.d.ts +9 -1
  140. package/dist/components/base/choice-inputs/switch-card.d.ts +1 -1
  141. package/dist/components/base/date-pickers/date-picker-field.d.ts +23 -0
  142. package/dist/components/base/date-pickers/datepicker.types.d.ts +13 -3
  143. package/dist/components/base/display/alert-dialog.d.ts +10 -3
  144. package/dist/components/base/display/content-block.d.ts +4 -2
  145. package/dist/components/base/display/date-block.d.ts +1 -1
  146. package/dist/components/base/display/dialog.d.ts +8 -5
  147. package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
  148. package/dist/components/base/display/surface-title.d.ts +6 -1
  149. package/dist/components/base/feedback/alert.d.ts +1 -1
  150. package/dist/components/base/feedback/state-display.d.ts +5 -4
  151. package/dist/components/base/forms/form-sizing.d.ts +43 -8
  152. package/dist/components/base/forms/workflow.d.ts +2 -0
  153. package/dist/components/base/forms-numeric/coordinates-input.d.ts +3 -0
  154. package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +4 -1
  155. package/dist/components/base/metadata-list/index.d.ts +12 -0
  156. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
  157. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
  158. package/dist/components/base/navigation/dropdown-menu.d.ts +2 -2
  159. package/dist/components/base/navigation/index.d.ts +1 -1
  160. package/dist/components/base/navigation/language-switcher.d.ts +4 -1
  161. package/dist/components/base/navigation/overflow-tab-bar.d.ts +7 -0
  162. package/dist/components/base/navigation/page-header/index.d.ts +1 -0
  163. package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
  164. package/dist/components/base/navigation/page-header/page-header.d.ts +30 -4
  165. package/dist/components/base/qr-code/qr-code.d.ts +2 -0
  166. package/dist/components/base/sheet/index.d.ts +29 -1
  167. package/dist/components/base/sheet/sheet.d.ts +10 -5
  168. package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
  169. package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
  170. package/dist/components/base/spinner/spinner.d.ts +3 -2
  171. package/dist/components/base/structure/structure.types.d.ts +1 -1
  172. package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
  173. package/dist/components/base/text-inputs/input-group.d.ts +2 -2
  174. package/dist/components/base/upload/upload.recipes.d.ts +33 -0
  175. package/dist/components/base/value-inputs/date-time-input.d.ts +4 -2
  176. package/dist/components/base/value-inputs/index.d.ts +5 -5
  177. package/dist/components/base/value-inputs/tags-input.d.ts +38 -12
  178. package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +1 -1
  179. package/dist/components/blocks/analytics/format-metric-value.d.ts +11 -1
  180. package/dist/components/blocks/analytics/index.d.ts +1 -1
  181. package/dist/components/blocks/analytics/use-metric-format-options.d.ts +3 -0
  182. package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
  183. package/dist/components/blocks/commerce/address-card/types.d.ts +4 -1
  184. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +4 -0
  185. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +2 -2
  186. package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
  187. package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
  188. package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
  189. package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
  190. package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
  191. package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
  192. package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
  193. package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
  194. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +43 -0
  195. package/dist/components/blocks/commerce/index.d.ts +13 -5
  196. package/dist/components/blocks/commerce/inventory-section/types.d.ts +4 -1
  197. package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
  198. package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
  199. package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
  200. package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
  201. package/dist/components/blocks/commerce/loyalty-points/types.d.ts +1 -1
  202. package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
  203. package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
  204. package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
  205. package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
  206. package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
  207. package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
  208. package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
  209. package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
  210. package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
  211. package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
  212. package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
  213. package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
  214. package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
  215. package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
  216. package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
  217. package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
  218. package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
  219. package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
  220. package/dist/components/blocks/commerce/payment-method/types.d.ts +14 -1
  221. package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
  222. package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
  223. package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
  224. package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +1 -1
  225. package/dist/components/blocks/commerce/seo-listing/types.d.ts +3 -1
  226. package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
  227. package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
  228. package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
  229. package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
  230. package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
  231. package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
  232. package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
  233. package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
  234. package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
  235. package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
  236. package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
  237. package/dist/components/blocks/commerce/vendor-profile/types.d.ts +4 -1
  238. package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +4 -1
  239. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +4 -1
  240. package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
  241. package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
  242. package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
  243. package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
  244. package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +1 -1
  245. package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
  246. package/dist/components/features/kanban/kanban.d.ts +1 -1
  247. package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
  248. package/dist/components/features/kanban/kanban.types.d.ts +2 -2
  249. package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
  250. package/dist/components/features/media-library/index.d.ts +1 -1
  251. package/dist/components/features/media-library/media-library.d.ts +1 -1
  252. package/dist/components/features/media-library/media-library.strings.d.ts +4 -0
  253. package/dist/components/features/media-library/media-library.types.d.ts +74 -1
  254. package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
  255. package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
  256. package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
  257. package/dist/components/features/overlays/dialog.d.ts +1 -1
  258. package/dist/components/features/overlays/drawer.d.ts +1 -1
  259. package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +2 -2
  260. package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +11 -4
  261. package/dist/components/features/overlays/index.d.ts +1 -1
  262. package/dist/components/features/overlays/overlay-tone-icon.d.ts +37 -0
  263. package/dist/components/features/overlays/overlays.types.d.ts +62 -19
  264. package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
  265. package/dist/components/features/products/components/product-details-card.d.ts +5 -0
  266. package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
  267. package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
  268. package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
  269. package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
  270. package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
  271. package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
  272. package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
  273. package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
  274. package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
  275. package/dist/components/features/products/partials/index.d.ts +1 -1
  276. package/dist/components/features/products/partials/product-metric-tile.d.ts +6 -0
  277. package/dist/components/features/products/partials/product-tone.d.ts +11 -1
  278. package/dist/components/features/products/products.types.d.ts +11 -3
  279. package/dist/components/features/resource/index.d.ts +1 -1
  280. package/dist/components/features/resource/resource.d.ts +1 -1
  281. package/dist/components/features/resource/resource.types.d.ts +34 -6
  282. package/dist/components/features/rich-text-editor/index.d.ts +2 -1
  283. package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
  284. package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
  285. package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
  286. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
  287. package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
  288. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +45 -0
  289. package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
  290. package/dist/components/features/sync/index.d.ts +26 -3
  291. package/dist/components/features/table/data-table.d.ts +1 -1
  292. package/dist/components/features/table/partials/cell-renderers.d.ts +1 -1
  293. package/dist/components/features/table/table.types.d.ts +32 -7
  294. package/dist/components/layout/page/index.d.ts +1 -1
  295. package/dist/components/layout/page/page.types.d.ts +51 -4
  296. package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
  297. package/dist/components/layout/page/partials/page-header.d.ts +1 -1
  298. package/dist/components/layout/settings/settings.d.ts +16 -2
  299. package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
  300. package/dist/components/primitives/date.d.ts +16 -3
  301. package/dist/components/primitives/dimensions.d.ts +6 -0
  302. package/dist/components/primitives/duration.d.ts +6 -0
  303. package/dist/components/primitives/file-size.d.ts +6 -0
  304. package/dist/components/primitives/index.d.ts +1 -1
  305. package/dist/components/primitives/initials.d.ts +11 -2
  306. package/dist/components/primitives/link.d.ts +7 -0
  307. package/dist/components/primitives/money.d.ts +29 -7
  308. package/dist/components/primitives/number.d.ts +17 -0
  309. package/dist/components/primitives/value-typography.d.ts +54 -0
  310. package/dist/components/primitives/value.d.ts +31 -6
  311. package/dist/components/typography/heading.d.ts +9 -1
  312. package/dist/components/typography/label.d.ts +3 -0
  313. package/dist/components/typography/rich-text/index.d.ts +1 -1
  314. package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
  315. package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
  316. package/dist/components/typography/running-text.d.ts +12 -0
  317. package/dist/components/typography/text-link.d.ts +24 -1
  318. package/dist/components/typography/text.d.ts +12 -0
  319. package/dist/components/typography/text.styles.d.ts +35 -13
  320. package/dist/components/ui/button.d.ts +1 -1
  321. package/dist/components/ui/checkbox.d.ts +6 -0
  322. package/dist/components/ui/overlay.recipes.d.ts +6 -2
  323. package/dist/components/ui/select.d.ts +3 -1
  324. package/dist/components/ui/switch.d.ts +5 -0
  325. package/dist/{containers-DqB-bSYE.js → containers-DmWiJa2I.js} +36 -35
  326. package/dist/containers-DmWiJa2I.js.map +1 -0
  327. package/dist/{copyable-BTSByfmq.js → copyable-B3Gwgdqc.js} +6 -6
  328. package/dist/{copyable-BTSByfmq.js.map → copyable-B3Gwgdqc.js.map} +1 -1
  329. package/dist/data-display-DafIvCl5.js +960 -0
  330. package/dist/data-display-DafIvCl5.js.map +1 -0
  331. package/dist/date-BgK3bTdo.js +144 -0
  332. package/dist/date-BgK3bTdo.js.map +1 -0
  333. package/dist/date-picker-CF-DtUpF.js +1529 -0
  334. package/dist/date-picker-CF-DtUpF.js.map +1 -0
  335. package/dist/date-pickers-BmzxJl5l.js +174 -0
  336. package/dist/date-pickers-BmzxJl5l.js.map +1 -0
  337. package/dist/{display-CS6Hbk18.js → display-DsQTVzMz.js} +88 -87
  338. package/dist/display-DsQTVzMz.js.map +1 -0
  339. package/dist/{dropdown-menu-D-boNgGO.js → dropdown-menu-E2qmdC7o.js} +23 -16
  340. package/dist/dropdown-menu-E2qmdC7o.js.map +1 -0
  341. package/dist/features/activities.js +437 -521
  342. package/dist/features/activities.js.map +1 -1
  343. package/dist/features/ai-chat.js +174 -172
  344. package/dist/features/ai-chat.js.map +1 -1
  345. package/dist/features/async-preview.js +8 -8
  346. package/dist/features/async-preview.js.map +1 -1
  347. package/dist/features/combobox.js +1 -1
  348. package/dist/features/comments.js +1 -1
  349. package/dist/features/data-view.js +139 -138
  350. package/dist/features/data-view.js.map +1 -1
  351. package/dist/features/email-composer/engine.js +1 -1
  352. package/dist/features/email-composer.js +353 -352
  353. package/dist/features/email-composer.js.map +1 -1
  354. package/dist/features/event-calendar.js +262 -269
  355. package/dist/features/event-calendar.js.map +1 -1
  356. package/dist/features/filters.js +1 -1
  357. package/dist/features/global-search.js +307 -310
  358. package/dist/features/global-search.js.map +1 -1
  359. package/dist/features/kanban.js +95 -97
  360. package/dist/features/kanban.js.map +1 -1
  361. package/dist/features/map.js +56 -57
  362. package/dist/features/map.js.map +1 -1
  363. package/dist/features/media-library.js +914 -824
  364. package/dist/features/media-library.js.map +1 -1
  365. package/dist/features/mentions.js +1 -1
  366. package/dist/features/overlays.js +1 -1
  367. package/dist/features/products.js +1272 -1311
  368. package/dist/features/products.js.map +1 -1
  369. package/dist/features/questionnaire.js +204 -194
  370. package/dist/features/questionnaire.js.map +1 -1
  371. package/dist/features/resource-assignment.js +103 -95
  372. package/dist/features/resource-assignment.js.map +1 -1
  373. package/dist/features/resource.js +77 -69
  374. package/dist/features/resource.js.map +1 -1
  375. package/dist/features/rich-text-editor.js +30 -11
  376. package/dist/features/rich-text-editor.js.map +1 -1
  377. package/dist/features/schema-form.js +193 -189
  378. package/dist/features/schema-form.js.map +1 -1
  379. package/dist/features/suggestions.js +3 -3
  380. package/dist/features/sync.js +7 -7
  381. package/dist/features/sync.js.map +1 -1
  382. package/dist/features/table.js +1 -1
  383. package/dist/features/theme-tweaker.js +455 -455
  384. package/dist/features/theme-tweaker.js.map +1 -1
  385. package/dist/feedback-qNuMBtRH.js +233 -0
  386. package/dist/feedback-qNuMBtRH.js.map +1 -0
  387. package/dist/field-affordance-recipes-qQeIf4lG.js +48 -0
  388. package/dist/field-affordance-recipes-qQeIf4lG.js.map +1 -0
  389. package/dist/field-state-recipes-BVA2CWHo.js +12 -0
  390. package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
  391. package/dist/{filters-D6FF8L6s.js → filters-BkHH53uv.js} +414 -412
  392. package/dist/filters-BkHH53uv.js.map +1 -0
  393. package/dist/focus-recipes-B653VaLq.js +12 -0
  394. package/dist/focus-recipes-B653VaLq.js.map +1 -0
  395. package/dist/{form-field-CZwrkP7m.js → form-field-DUt4UxSV.js} +7 -7
  396. package/dist/{form-field-CZwrkP7m.js.map → form-field-DUt4UxSV.js.map} +1 -1
  397. package/dist/form-sizing-By94KzXE.js +130 -0
  398. package/dist/form-sizing-By94KzXE.js.map +1 -0
  399. package/dist/{forms-B5NCbkSC.js → forms-Bzha-Y3B.js} +25 -25
  400. package/dist/forms-Bzha-Y3B.js.map +1 -0
  401. package/dist/forms-numeric-C0bvjRPZ.js +906 -0
  402. package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
  403. package/dist/{header-kxruN3RM.js → header-BOefOKd1.js} +38 -41
  404. package/dist/header-BOefOKd1.js.map +1 -0
  405. package/dist/{hooks-BrlnCwQd.js → hooks-9k_TtmKh.js} +2 -2
  406. package/dist/{hooks-BrlnCwQd.js.map → hooks-9k_TtmKh.js.map} +1 -1
  407. package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
  408. package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
  409. package/dist/icon-badge-CAuKupo9.js +55 -0
  410. package/dist/icon-badge-CAuKupo9.js.map +1 -0
  411. package/dist/index.js +7 -7
  412. package/dist/input-DWhBBBww.js +262 -0
  413. package/dist/input-DWhBBBww.js.map +1 -0
  414. package/dist/{input-vxcaNCYC.js → input-Ddi_LSYv.js} +3 -3
  415. package/dist/{input-vxcaNCYC.js.map → input-Ddi_LSYv.js.map} +1 -1
  416. package/dist/interaction-recipes-CHr0dJUs.js +24 -0
  417. package/dist/interaction-recipes-CHr0dJUs.js.map +1 -0
  418. package/dist/item-DEmDiTlD.js +265 -0
  419. package/dist/item-DEmDiTlD.js.map +1 -0
  420. package/dist/layer-recipes-CCpklYME.js +13 -0
  421. package/dist/layer-recipes-CCpklYME.js.map +1 -0
  422. package/dist/layout/app-shell.js +1 -1
  423. package/dist/layout/auth.js +1 -1
  424. package/dist/layout/containers.js +1 -1
  425. package/dist/layout/header.js +1 -1
  426. package/dist/layout/hooks.js +1 -1
  427. package/dist/layout/navigation.js +1 -1
  428. package/dist/layout/page.js +1 -1
  429. package/dist/layout/settings.js +1 -1
  430. package/dist/layout/sidebar.js +2 -2
  431. package/dist/layout/workspace.js +1 -1
  432. package/dist/layout.js +10 -10
  433. package/dist/lib/affordance-geometry.generated.d.ts +7 -1
  434. package/dist/lib/field-affordance-recipes.d.ts +41 -1
  435. package/dist/lib/field-state-recipes.d.ts +9 -6
  436. package/dist/lib/focus-recipes.d.ts +24 -0
  437. package/dist/lib/format.d.ts +9 -0
  438. package/dist/lib/interaction-recipes.d.ts +35 -0
  439. package/dist/lib/layer-recipes.d.ts +19 -0
  440. package/dist/lib/money-format.d.ts +30 -0
  441. package/dist/lib/motion-recipes.d.ts +1 -0
  442. package/dist/lib/overlay-anatomy-recipes.d.ts +2 -1
  443. package/dist/lib/safe-image-src.d.ts +10 -0
  444. package/dist/lib/sanitize-html.d.ts +15 -3
  445. package/dist/lib/surface-recipes.d.ts +48 -6
  446. package/dist/lib/token-merge.generated.d.ts +17 -14
  447. package/dist/lib/tone-recipes.d.ts +79 -0
  448. package/dist/lib/track-recipes.d.ts +1 -1
  449. package/dist/lib/ui-provider/hooks.d.ts +2 -1
  450. package/dist/lib/ui-provider/index.d.ts +2 -2
  451. package/dist/lib/ui-provider/provider.d.ts +7 -2
  452. package/dist/lib/ui-provider/store.d.ts +6 -2
  453. package/dist/lib/ui-provider/types.d.ts +14 -2
  454. package/dist/lib/utils.js +1 -1
  455. package/dist/media-gallery-DcTtAaeC.js +203 -0
  456. package/dist/media-gallery-DcTtAaeC.js.map +1 -0
  457. package/dist/mentions-D-uyCh01.js +568 -0
  458. package/dist/mentions-D-uyCh01.js.map +1 -0
  459. package/dist/{message-SZUNB1eX.js → message-CdHgIWKf.js} +5 -5
  460. package/dist/{message-SZUNB1eX.js.map → message-CdHgIWKf.js.map} +1 -1
  461. package/dist/metadata-list-X5rYAKSB.js +394 -0
  462. package/dist/metadata-list-X5rYAKSB.js.map +1 -0
  463. package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
  464. package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
  465. package/dist/navigation-D3KwXmaq.js +145 -0
  466. package/dist/navigation-D3KwXmaq.js.map +1 -0
  467. package/dist/navigation-HJf5zxlH.js +268 -0
  468. package/dist/navigation-HJf5zxlH.js.map +1 -0
  469. package/dist/{navigation-row-recipes-DQEXQcqY.js → navigation-row-recipes-BVowojQw.js} +2 -2
  470. package/dist/{navigation-row-recipes-DQEXQcqY.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
  471. package/dist/number-DMhe-Vsk.js +352 -0
  472. package/dist/number-DMhe-Vsk.js.map +1 -0
  473. package/dist/overflow-tab-bar-sQHXLlwQ.js +280 -0
  474. package/dist/overflow-tab-bar-sQHXLlwQ.js.map +1 -0
  475. package/dist/overlay.recipes-8GHqmlb4.js +6 -0
  476. package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
  477. package/dist/overlays-I0axtYA6.js +999 -0
  478. package/dist/overlays-I0axtYA6.js.map +1 -0
  479. package/dist/{page-hGmT4nWK.js → page-B5dTH9gE.js} +79 -68
  480. package/dist/page-B5dTH9gE.js.map +1 -0
  481. package/dist/page-header-commands-DjzFEq3E.js +126 -0
  482. package/dist/page-header-commands-DjzFEq3E.js.map +1 -0
  483. package/dist/{pagination-NLGqRirf.js → pagination-3bPA_a6K.js} +19 -19
  484. package/dist/{pagination-NLGqRirf.js.map → pagination-3bPA_a6K.js.map} +1 -1
  485. package/dist/{popover-CghIYdQf.js → popover-Di55PyAI.js} +8 -8
  486. package/dist/popover-Di55PyAI.js.map +1 -0
  487. package/dist/{popover-menu-B4PoWhRl.js → popover-menu-B71Tn2Qz.js} +6 -6
  488. package/dist/{popover-menu-B4PoWhRl.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
  489. package/dist/{popover.recipes-QlD4JenO.js → popover.recipes-Bdyhj2db.js} +2 -2
  490. package/dist/{popover.recipes-QlD4JenO.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
  491. package/dist/primitives-B-CkiEMU.js +379 -0
  492. package/dist/primitives-B-CkiEMU.js.map +1 -0
  493. package/dist/primitives.js +5 -5
  494. package/dist/{progress-BroqrAyV.js → progress-rnS8-uAW.js} +11 -11
  495. package/dist/progress-rnS8-uAW.js.map +1 -0
  496. package/dist/{receipt-BuJynLgf.js → receipt-D0oswZ0p.js} +6 -6
  497. package/dist/{receipt-BuJynLgf.js.map → receipt-D0oswZ0p.js.map} +1 -1
  498. package/dist/rich-text-DvGulsNJ.js +78 -0
  499. package/dist/rich-text-DvGulsNJ.js.map +1 -0
  500. package/dist/rich-text-editor-sMU_Scqm.js +1204 -0
  501. package/dist/rich-text-editor-sMU_Scqm.js.map +1 -0
  502. package/dist/rich-text-editor.recipes-CadiF_Uu.js +88 -0
  503. package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +1 -0
  504. package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
  505. package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
  506. package/dist/safe-image-src-C6kQSMBZ.js +17 -0
  507. package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
  508. package/dist/sanitize-html-DsQmI48u.js +92 -0
  509. package/dist/sanitize-html-DsQmI48u.js.map +1 -0
  510. package/dist/scroll-area-Bt_vXY2b.js +48 -0
  511. package/dist/scroll-area-Bt_vXY2b.js.map +1 -0
  512. package/dist/{separator-BNIgG3au.js → separator-C8DlRGwF.js} +4 -4
  513. package/dist/separator-C8DlRGwF.js.map +1 -0
  514. package/dist/{separator-BhtFyo4x.js → separator-CYHnjsAb.js} +2 -2
  515. package/dist/{separator-BhtFyo4x.js.map → separator-CYHnjsAb.js.map} +1 -1
  516. package/dist/services/actions/action-adapters.d.ts +22 -0
  517. package/dist/services/actions/index.d.ts +1 -1
  518. package/dist/services/actions.js +23 -6
  519. package/dist/services/actions.js.map +1 -1
  520. package/dist/settings-CQW3b-Cu.js +170 -0
  521. package/dist/settings-CQW3b-Cu.js.map +1 -0
  522. package/dist/sheet-4SEvVYzA.js +210 -0
  523. package/dist/sheet-4SEvVYzA.js.map +1 -0
  524. package/dist/{sidebar-CyR4XKwR.js → sidebar-C7WWR29L.js} +181 -180
  525. package/dist/sidebar-C7WWR29L.js.map +1 -0
  526. package/dist/sidebar-d7Dg80ln.js +511 -0
  527. package/dist/sidebar-d7Dg80ln.js.map +1 -0
  528. package/dist/{skeleton-3F0uhYn3.js → skeleton-Cz890JZF.js} +10 -10
  529. package/dist/skeleton-Cz890JZF.js.map +1 -0
  530. package/dist/smart-card-lFKxn5Hu.js +595 -0
  531. package/dist/smart-card-lFKxn5Hu.js.map +1 -0
  532. package/dist/{spinner-Cpf7oRkF.js → spinner-fa3h1Aif.js} +10 -8
  533. package/dist/spinner-fa3h1Aif.js.map +1 -0
  534. package/dist/{structure-CRdqVawd.js → structure-DC2dygdA.js} +3 -3
  535. package/dist/{structure-CRdqVawd.js.map → structure-DC2dygdA.js.map} +1 -1
  536. package/dist/{structure.recipes-Bqhf9oIh.js → structure.recipes-EPz60cU8.js} +37 -19
  537. package/dist/structure.recipes-EPz60cU8.js.map +1 -0
  538. package/dist/style.css +1 -1
  539. package/dist/surface-recipes-BKRVW8Os.js +43 -0
  540. package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
  541. package/dist/table-CIKyLUsy.js +163 -0
  542. package/dist/table-CIKyLUsy.js.map +1 -0
  543. package/dist/{table-CcRDZiLP.js → table-CrcLN9Io.js} +544 -530
  544. package/dist/table-CrcLN9Io.js.map +1 -0
  545. package/dist/tabs-DwBJfjxX.js +190 -0
  546. package/dist/tabs-DwBJfjxX.js.map +1 -0
  547. package/dist/{text-inputs-DsR56TR-.js → text-inputs-aaK9wcDT.js} +151 -155
  548. package/dist/text-inputs-aaK9wcDT.js.map +1 -0
  549. package/dist/{text.styles-Q4sGAIgA.js → text.styles-g4He6UIW.js} +17 -14
  550. package/dist/text.styles-g4He6UIW.js.map +1 -0
  551. package/dist/theme.css +16 -12
  552. package/dist/themes/green.css +24 -0
  553. package/dist/{timelines-D1pkt3se.js → timelines-C_SBwHNP.js} +154 -164
  554. package/dist/timelines-C_SBwHNP.js.map +1 -0
  555. package/dist/tone-recipes-CPoExcTE.js +70 -0
  556. package/dist/tone-recipes-CPoExcTE.js.map +1 -0
  557. package/dist/tooltip-CsfgrfS7.js +111 -0
  558. package/dist/tooltip-CsfgrfS7.js.map +1 -0
  559. package/dist/track-recipes-CDcKmndW.js +10 -0
  560. package/dist/track-recipes-CDcKmndW.js.map +1 -0
  561. package/dist/{tree-BtmYyMZV.js → tree-BiKhg8AY.js} +72 -70
  562. package/dist/tree-BiKhg8AY.js.map +1 -0
  563. package/dist/typography/rich-text.js +1 -1
  564. package/dist/typography-DTRkE9zL.js +117 -0
  565. package/dist/typography-DTRkE9zL.js.map +1 -0
  566. package/dist/typography.js +2 -2
  567. package/dist/{ui-provider-DRPn3qNl.js → ui-provider-1D_NSYzO.js} +30 -23
  568. package/dist/ui-provider-1D_NSYzO.js.map +1 -0
  569. package/dist/ui-provider.js +3 -3
  570. package/dist/{upload-CDbYw1WN.js → upload-BO8-CLN6.js} +294 -293
  571. package/dist/upload-BO8-CLN6.js.map +1 -0
  572. package/dist/{upload-queue-CNd_hH_a.js → upload-queue-EOC8g1gf.js} +133 -138
  573. package/dist/upload-queue-EOC8g1gf.js.map +1 -0
  574. package/dist/upload.recipes-BbxTqrCT.js +61 -0
  575. package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
  576. package/dist/{usage-card-VyJLUwRr.js → usage-card-obRaBskq.js} +42 -43
  577. package/dist/{usage-card-VyJLUwRr.js.map → usage-card-obRaBskq.js.map} +1 -1
  578. package/dist/{utils-BvH9PSmq.js → utils-l5LpDw2z.js} +264 -62
  579. package/dist/utils-l5LpDw2z.js.map +1 -0
  580. package/dist/value-inputs-TAYMX111.js +947 -0
  581. package/dist/value-inputs-TAYMX111.js.map +1 -0
  582. package/dist/value-typography-b8wpz1eX.js +116 -0
  583. package/dist/value-typography-b8wpz1eX.js.map +1 -0
  584. package/dist/workspace-DH0v0KcB.js +407 -0
  585. package/dist/workspace-DH0v0KcB.js.map +1 -0
  586. package/docs/consumer-skill/SKILL.md +62 -50
  587. package/docs/consumer-skill/examples/app-layout.tsx +3 -5
  588. package/docs/consumer-skill/examples/composition.tsx +3 -3
  589. package/docs/consumer-skill/examples/detail.tsx +59 -13
  590. package/docs/consumer-skill/examples/edit.tsx +2 -2
  591. package/docs/consumer-skill/examples/layout-blocks.tsx +20 -0
  592. package/docs/consumer-skill/examples/manifest.json +28 -6
  593. package/docs/consumer-skill/examples/receipt.tsx +2 -2
  594. package/docs/consumer-skill/examples/scoped-directory.tsx +3 -3
  595. package/docs/consumer-skill/examples/website.tsx +1 -1
  596. package/docs/consumer-skill/references/agents-md.md +33 -0
  597. package/docs/consumer-skill/references/analytics.md +1 -1
  598. package/docs/consumer-skill/references/composition.md +139 -24
  599. package/docs/consumer-skill/references/design-contract.md +12 -3
  600. package/docs/consumer-skill/references/discovery.md +4 -0
  601. package/docs/consumer-skill/references/installation.md +33 -1
  602. package/docs/consumer-skill/references/integration.md +32 -1
  603. package/docs/consumer-skill/references/public-api.json +1051 -610
  604. package/docs/consumer-skill/references/review.md +44 -8
  605. package/docs/consumer-skill/references/theming.md +14 -4
  606. package/docs/consumer-skill/references/tokens.json +5 -2
  607. package/docs/consumer-skill/references/workflows.md +30 -9
  608. package/docs/consumer-skill/scripts/composition-policy.mjs +127 -6
  609. package/docs/consumer-skill/scripts/discovery.mjs +11 -3
  610. package/docs/consumer-skill/scripts/pin-button-defaults.mjs +95 -0
  611. package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
  612. package/package.json +13 -3
  613. package/dist/accordion-BRTcsp8J.js +0 -205
  614. package/dist/accordion-BRTcsp8J.js.map +0 -1
  615. package/dist/action-menu-Drxw_vJk.js +0 -265
  616. package/dist/action-menu-Drxw_vJk.js.map +0 -1
  617. package/dist/affordance-geometry.generated-CL84ZN9A.js.map +0 -1
  618. package/dist/ai-artifact-DLVdK0Py.js.map +0 -1
  619. package/dist/attachment-DbjUWsP0.js +0 -244
  620. package/dist/attachment-DbjUWsP0.js.map +0 -1
  621. package/dist/auth-CAQcasMV.js.map +0 -1
  622. package/dist/avatar-Bu2HhitA.js.map +0 -1
  623. package/dist/badge-CzId1Wlm.js +0 -92
  624. package/dist/badge-CzId1Wlm.js.map +0 -1
  625. package/dist/breadcrumbs-BuYz5SDU.js +0 -128
  626. package/dist/breadcrumbs-BuYz5SDU.js.map +0 -1
  627. package/dist/button-BZDasD04.js +0 -651
  628. package/dist/button-BZDasD04.js.map +0 -1
  629. package/dist/button-BZyfTvwm.js.map +0 -1
  630. package/dist/buttons-D_6KJvEE.js +0 -99
  631. package/dist/buttons-D_6KJvEE.js.map +0 -1
  632. package/dist/cards-qGSErLw_.js.map +0 -1
  633. package/dist/chart-Bsc5BICK.js.map +0 -1
  634. package/dist/checkbox-BQNDjUCh.js +0 -34
  635. package/dist/checkbox-BQNDjUCh.js.map +0 -1
  636. package/dist/choice-inputs-Mk3iWbhr.js +0 -725
  637. package/dist/choice-inputs-Mk3iWbhr.js.map +0 -1
  638. package/dist/code-block-DzHKRybS.js +0 -183
  639. package/dist/code-block-DzHKRybS.js.map +0 -1
  640. package/dist/combobox-BFnbJJp3.js.map +0 -1
  641. package/dist/combobox-hozNwUcc.js +0 -847
  642. package/dist/combobox-hozNwUcc.js.map +0 -1
  643. package/dist/command-BnmSchli.js.map +0 -1
  644. package/dist/comments-u5L0OGip.js.map +0 -1
  645. package/dist/containers-DqB-bSYE.js.map +0 -1
  646. package/dist/data-display-Bihs9Ven.js +0 -1342
  647. package/dist/data-display-Bihs9Ven.js.map +0 -1
  648. package/dist/date-DOKhJPu7.js +0 -140
  649. package/dist/date-DOKhJPu7.js.map +0 -1
  650. package/dist/date-picker-DzP5HQq7.js +0 -1541
  651. package/dist/date-picker-DzP5HQq7.js.map +0 -1
  652. package/dist/date-pickers-BpgGz7S-.js +0 -196
  653. package/dist/date-pickers-BpgGz7S-.js.map +0 -1
  654. package/dist/display-CS6Hbk18.js.map +0 -1
  655. package/dist/dropdown-menu-D-boNgGO.js.map +0 -1
  656. package/dist/feedback-CJkUAapr.js +0 -233
  657. package/dist/feedback-CJkUAapr.js.map +0 -1
  658. package/dist/field-affordance-recipes-uKY4MsZ_.js +0 -25
  659. package/dist/field-affordance-recipes-uKY4MsZ_.js.map +0 -1
  660. package/dist/field-state-recipes-DQQpiLWC.js +0 -11
  661. package/dist/field-state-recipes-DQQpiLWC.js.map +0 -1
  662. package/dist/filters-D6FF8L6s.js.map +0 -1
  663. package/dist/form-sizing-QP8aIRaW.js +0 -103
  664. package/dist/form-sizing-QP8aIRaW.js.map +0 -1
  665. package/dist/format-iamDSqs2.js +0 -110
  666. package/dist/format-iamDSqs2.js.map +0 -1
  667. package/dist/forms-B5NCbkSC.js.map +0 -1
  668. package/dist/forms-numeric-Crrm80Lm.js +0 -867
  669. package/dist/forms-numeric-Crrm80Lm.js.map +0 -1
  670. package/dist/header-kxruN3RM.js.map +0 -1
  671. package/dist/icon-badge-Btc6pQrp.js +0 -53
  672. package/dist/icon-badge-Btc6pQrp.js.map +0 -1
  673. package/dist/input-SX9V0AL3.js +0 -255
  674. package/dist/input-SX9V0AL3.js.map +0 -1
  675. package/dist/item-DE4YnuJx.js +0 -258
  676. package/dist/item-DE4YnuJx.js.map +0 -1
  677. package/dist/media-gallery-DLp3HAz0.js +0 -201
  678. package/dist/media-gallery-DLp3HAz0.js.map +0 -1
  679. package/dist/mentions-Cl0Kt_Pd.js +0 -565
  680. package/dist/mentions-Cl0Kt_Pd.js.map +0 -1
  681. package/dist/navigation-DnQSNMT0.js +0 -276
  682. package/dist/navigation-DnQSNMT0.js.map +0 -1
  683. package/dist/navigation-DyytsLRB.js +0 -265
  684. package/dist/navigation-DyytsLRB.js.map +0 -1
  685. package/dist/number-DasMFWEG.js +0 -269
  686. package/dist/number-DasMFWEG.js.map +0 -1
  687. package/dist/overlay.recipes-BxW5FIfK.js +0 -6
  688. package/dist/overlay.recipes-BxW5FIfK.js.map +0 -1
  689. package/dist/overlays-DUbs1KEi.js +0 -1011
  690. package/dist/overlays-DUbs1KEi.js.map +0 -1
  691. package/dist/page-hGmT4nWK.js.map +0 -1
  692. package/dist/page-header-D8nERkn5.js +0 -112
  693. package/dist/page-header-D8nERkn5.js.map +0 -1
  694. package/dist/popover-CghIYdQf.js.map +0 -1
  695. package/dist/primitives-C7ff0QaI.js +0 -337
  696. package/dist/primitives-C7ff0QaI.js.map +0 -1
  697. package/dist/progress-BroqrAyV.js.map +0 -1
  698. package/dist/rich-text-DlxDOtf4.js +0 -32
  699. package/dist/rich-text-DlxDOtf4.js.map +0 -1
  700. package/dist/rich-text-editor-BKyG7rWz.js +0 -574
  701. package/dist/rich-text-editor-BKyG7rWz.js.map +0 -1
  702. package/dist/rich-text-editor.recipes-B72Nfuze.js +0 -81
  703. package/dist/rich-text-editor.recipes-B72Nfuze.js.map +0 -1
  704. package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
  705. package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
  706. package/dist/sanitize-html-BG9FGe-j.js +0 -64
  707. package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
  708. package/dist/scroll-area-D-pIhEKl.js +0 -47
  709. package/dist/scroll-area-D-pIhEKl.js.map +0 -1
  710. package/dist/separator-BNIgG3au.js.map +0 -1
  711. package/dist/settings-DOTOzeZ2.js +0 -161
  712. package/dist/settings-DOTOzeZ2.js.map +0 -1
  713. package/dist/sheet-BFhrNehm.js +0 -205
  714. package/dist/sheet-BFhrNehm.js.map +0 -1
  715. package/dist/sidebar-CyR4XKwR.js.map +0 -1
  716. package/dist/sidebar-SvGJ0Zwi.js +0 -506
  717. package/dist/sidebar-SvGJ0Zwi.js.map +0 -1
  718. package/dist/skeleton-3F0uhYn3.js.map +0 -1
  719. package/dist/smart-card-DjGVV2xr.js +0 -584
  720. package/dist/smart-card-DjGVV2xr.js.map +0 -1
  721. package/dist/spinner-Cpf7oRkF.js.map +0 -1
  722. package/dist/structure.recipes-Bqhf9oIh.js.map +0 -1
  723. package/dist/surface-recipes-Dd__PD-w.js +0 -28
  724. package/dist/surface-recipes-Dd__PD-w.js.map +0 -1
  725. package/dist/table-CLtJTxoR.js +0 -147
  726. package/dist/table-CLtJTxoR.js.map +0 -1
  727. package/dist/table-CcRDZiLP.js.map +0 -1
  728. package/dist/tabs-BNgu7g0u.js +0 -188
  729. package/dist/tabs-BNgu7g0u.js.map +0 -1
  730. package/dist/text-inputs-DsR56TR-.js.map +0 -1
  731. package/dist/text.styles-Q4sGAIgA.js.map +0 -1
  732. package/dist/timelines-D1pkt3se.js.map +0 -1
  733. package/dist/track-recipes-LLPNVwFg.js +0 -10
  734. package/dist/track-recipes-LLPNVwFg.js.map +0 -1
  735. package/dist/tree-BtmYyMZV.js.map +0 -1
  736. package/dist/typography-BxQgiZyw.js +0 -96
  737. package/dist/typography-BxQgiZyw.js.map +0 -1
  738. package/dist/ui-provider-DRPn3qNl.js.map +0 -1
  739. package/dist/upload-CDbYw1WN.js.map +0 -1
  740. package/dist/upload-queue-CNd_hH_a.js.map +0 -1
  741. package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
  742. package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
  743. package/dist/utils-BvH9PSmq.js.map +0 -1
  744. package/dist/value-inputs-D0KCrfVC.js +0 -840
  745. package/dist/value-inputs-D0KCrfVC.js.map +0 -1
  746. package/dist/workspace-CcR8r-Nt.js +0 -395
  747. package/dist/workspace-CcR8r-Nt.js.map +0 -1
  748. /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
@@ -1,847 +0,0 @@
1
- "use client";
2
- import { _ as e, s as t } from "./ui-provider-DRPn3qNl.js";
3
- import { useStrings as n } from "./lib/strings.js";
4
- import { t as r } from "./utils-BvH9PSmq.js";
5
- import { a as i, r as a } from "./typography-BxQgiZyw.js";
6
- import { t as o } from "./button-BZDasD04.js";
7
- import { t as s } from "./structure-CRdqVawd.js";
8
- import { t as c } from "./feedback-CJkUAapr.js";
9
- import { t as l } from "./field-affordance-recipes-uKY4MsZ_.js";
10
- import { S as u, b as d, d as f, g as p, h as m, l as h, m as g, n as _, o as v, p as y, r as b, u as x, x as S, y as C } from "./combobox-BFnbJJp3.js";
11
- import { c as w, l as T } from "./form-sizing-QP8aIRaW.js";
12
- import { t as E } from "./input-SX9V0AL3.js";
13
- import { t as D } from "./scroll-area-D-pIhEKl.js";
14
- import { t as O } from "./use-debounced-callback-Cx1h-hdv.js";
15
- import * as k from "react";
16
- import { useCallback as A, useEffect as j, useMemo as M, useRef as N, useState as P } from "react";
17
- import { Fragment as ee, jsx as F, jsxs as I } from "react/jsx-runtime";
18
- import { ChevronDownIcon as L, Loader2 as R, PlusIcon as z, XIcon as te } from "lucide-react";
19
- import { Combobox as B } from "@base-ui/react/combobox";
20
- //#region src/components/features/combobox/combobox.strings.ts
21
- var V = {
22
- placeholder: "Search...",
23
- clear: "Clear selection",
24
- toggle: "Open options",
25
- searching: "Loading...",
26
- noResults: "No results found.",
27
- typeToSearch: "Type at least {min} characters to search...",
28
- typeMore: "Type {remaining} more character{s} to search...",
29
- createNew: "Create {value}",
30
- loadingMore: "Loading...",
31
- apply: "Apply",
32
- cancel: "Cancel"
33
- }, H = Symbol("combobox-create-option");
34
- function U(e) {
35
- return typeof e == "object" && !!e && H in e;
36
- }
37
- function W(e) {
38
- if (!U(e)) throw Error("Item is not a create option");
39
- return e[H];
40
- }
41
- function ne(e) {
42
- return { [H]: e };
43
- }
44
- //#endregion
45
- //#region src/components/features/combobox/components/loading-more.tsx
46
- function re({ loading: e, text: t, className: n }) {
47
- return e ? /* @__PURE__ */ I(s, {
48
- direction: "horizontal",
49
- gap: "sm",
50
- justify: "center",
51
- wrap: !1,
52
- className: r("loading-more--component", "px-control py-space-xs text-xs text-muted-foreground", n),
53
- role: "status",
54
- "aria-live": "polite",
55
- children: [/* @__PURE__ */ F(R, {
56
- className: "size-icon-sm animate-spin",
57
- "aria-hidden": "true"
58
- }), /* @__PURE__ */ F(i, {
59
- tag: "span",
60
- size: "xs",
61
- type: "secondary",
62
- className: "text-inherit",
63
- children: t
64
- })]
65
- }) : null;
66
- }
67
- re.displayName = "LoadingMore";
68
- //#endregion
69
- //#region src/components/features/combobox/components/status-content.tsx
70
- function G({ children: e }) {
71
- return /* @__PURE__ */ F(i, {
72
- tag: "span",
73
- size: "inherit",
74
- type: "secondary",
75
- className: "text-inherit",
76
- children: e
77
- });
78
- }
79
- function K({ loading: e, searchValue: t, minSearchLength: n, itemCount: r, strings: i }) {
80
- let a = t.trim();
81
- if (e) return /* @__PURE__ */ I(ee, { children: [/* @__PURE__ */ F(R, { className: "size-icon-sm animate-spin" }), /* @__PURE__ */ F(G, { children: i.searching })] });
82
- if (a === "") return i.typeToSearch.includes("{min}") ? /* @__PURE__ */ F(G, { children: i.typeToSearch.replace("{min}", String(n)) }) : /* @__PURE__ */ F(G, { children: i.typeToSearch });
83
- if (a.length < n) {
84
- let e = n - a.length;
85
- return i.typeMore.includes("{remaining}") || i.typeMore.includes("{s}") ? /* @__PURE__ */ F(G, { children: i.typeMore.replace("{remaining}", String(e)).replace("{s}", e === 1 ? "" : "s") }) : /* @__PURE__ */ F(G, { children: i.typeMore });
86
- }
87
- return null;
88
- }
89
- K.displayName = "StatusContent";
90
- //#endregion
91
- //#region src/components/features/combobox/components/combobox-dropdown.tsx
92
- var ie = {
93
- sm: "sm",
94
- md: "md",
95
- lg: "lg"
96
- }, q = {
97
- sm: "flex min-h-control-sm items-center justify-center px-row-x py-row-y text-center text-pxs leading-tight text-muted-foreground",
98
- md: "flex min-h-control items-center justify-center px-row-x py-row-y text-center text-sm leading-tight text-muted-foreground",
99
- lg: "flex min-h-control-lg items-center justify-center px-row-x py-row-y-lg text-center text-sm leading-tight text-muted-foreground"
100
- };
101
- function ae({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearchLength: l, items: f, groupedItems: h, createOptionItem: v, renderItemContent: x, getItemReactKey: w, getItemDisabled: T, renderGroupLabel: E, loadingMore: O, strings: k, size: A = "md", portalContainer: j, listRef: M, anchor: N, applyFooter: P }) {
102
- let L = j == null ? void 0 : "z-[100]", R = ie[A];
103
- if (!(t || n || f.length > 0 || O || P)) return null;
104
- let z = /* @__PURE__ */ F(S, {
105
- anchor: N,
106
- className: L,
107
- children: /* @__PURE__ */ I(b, {
108
- "aria-busy": e || void 0,
109
- className: r("combobox-dropdown--popup"),
110
- children: [
111
- !!t && /* @__PURE__ */ F(u, {
112
- className: "gap-space-sm px-control py-space-xs text-xs text-muted-foreground",
113
- children: /* @__PURE__ */ F(K, {
114
- loading: e,
115
- searchValue: c,
116
- minSearchLength: l,
117
- itemCount: f.length,
118
- strings: k
119
- })
120
- }),
121
- !!n && /* @__PURE__ */ F(g, {
122
- className: q[A],
123
- children: /* @__PURE__ */ F(i, {
124
- tag: "span",
125
- size: "inherit",
126
- type: "secondary",
127
- className: "text-inherit",
128
- children: k.noResults
129
- })
130
- }),
131
- /* @__PURE__ */ F(D, {
132
- viewportRef: M,
133
- className: "max-h-[min(20rem,var(--available-height))]",
134
- children: /* @__PURE__ */ F(C, {
135
- className: "combobox-dropdown--list max-h-none overflow-visible",
136
- children: h ? /* @__PURE__ */ I(ee, { children: [Array.from(h.entries()).map(([e, t]) => {
137
- let n = typeof E == "function" ? E(e) : e;
138
- return /* @__PURE__ */ I(m, {
139
- className: "combobox-dropdown--group p-0",
140
- items: t,
141
- children: [/* @__PURE__ */ F(p, { children: typeof n == "string" || typeof n == "number" || typeof n == "bigint" ? /* @__PURE__ */ F(a, { children: n }) : n }), /* @__PURE__ */ F(y, { children: (e) => /* @__PURE__ */ F(_, {
142
- value: e,
143
- size: R,
144
- disabled: T?.(e),
145
- children: x(e)
146
- }, w(e)) })]
147
- }, e);
148
- }), v != null && /* @__PURE__ */ F(_, {
149
- value: v,
150
- size: R,
151
- children: x(v)
152
- }, w(v))] }) : /* @__PURE__ */ F(y, { children: (e) => /* @__PURE__ */ F(_, {
153
- value: e,
154
- size: R,
155
- disabled: T?.(e),
156
- children: x(e)
157
- }, w(e)) })
158
- })
159
- }),
160
- /* @__PURE__ */ F(re, {
161
- loading: !!O,
162
- text: k.loadingMore
163
- }),
164
- !!P && /* @__PURE__ */ I(s, {
165
- direction: "horizontal",
166
- gap: "md",
167
- justify: "end",
168
- wrap: !1,
169
- className: "border-t border-border/60 px-control py-space-xs",
170
- children: [/* @__PURE__ */ F(o, {
171
- type: "button",
172
- tone: "secondary",
173
- buttonStyle: "ghost",
174
- onClick: (e) => {
175
- e.preventDefault(), e.stopPropagation(), P.onCancel();
176
- },
177
- children: P.cancelLabel
178
- }), /* @__PURE__ */ F(o, {
179
- type: "button",
180
- tone: "primary",
181
- onClick: (e) => {
182
- e.preventDefault(), e.stopPropagation(), P.onApply();
183
- },
184
- children: P.applyLabel
185
- })]
186
- })
187
- ]
188
- })
189
- });
190
- return j ? /* @__PURE__ */ F(d, {
191
- container: j,
192
- children: z
193
- }) : /* @__PURE__ */ F(d, { children: z });
194
- }
195
- ae.displayName = "ComboboxDropdown";
196
- //#endregion
197
- //#region src/components/features/combobox/components/error-message.tsx
198
- function oe({ error: e, size: t, className: n }) {
199
- return e ? /* @__PURE__ */ F(i, {
200
- tag: "p",
201
- size: "xs",
202
- type: "error",
203
- className: r("error-message--component", n),
204
- role: "alert",
205
- "aria-live": "polite",
206
- children: e
207
- }) : null;
208
- }
209
- oe.displayName = "ErrorMessage";
210
- //#endregion
211
- //#region src/components/features/combobox/components/highlighted-text.tsx
212
- function J(e) {
213
- return e.replace(/[$()*+.?[\\\]^{|}]/g, "\\$&");
214
- }
215
- function Y({ text: e, highlight: t, highlightClassName: n = "rounded-radius-sm bg-warning/20 px-space-2xs text-warning-accent dark:bg-warning/25" }) {
216
- if (!t.trim()) return /* @__PURE__ */ F(i, {
217
- tag: "span",
218
- size: "inherit",
219
- lineHeight: "tight",
220
- className: "text-inherit",
221
- children: e
222
- });
223
- let r = RegExp(`(${J(t)})`, "gi"), a = e.split(r), o = 0;
224
- return /* @__PURE__ */ F(i, {
225
- tag: "span",
226
- size: "inherit",
227
- lineHeight: "tight",
228
- className: "text-inherit",
229
- children: a.map((e, t) => {
230
- let r = t % 2 == 1, i = String(o);
231
- return o += e.length, r ? /* @__PURE__ */ F("mark", {
232
- className: n,
233
- children: e
234
- }, i) : /* @__PURE__ */ F(k.Fragment, { children: e }, i);
235
- })
236
- });
237
- }
238
- Y.displayName = "HighlightedText";
239
- //#endregion
240
- //#region src/components/features/combobox/hooks/use-debounced-search.ts
241
- function se({ searchValue: e, onSearch: t, debounceMs: n = 300, minSearchLength: r = 3 }) {
242
- let i = O((e) => {
243
- t?.(e);
244
- }, n);
245
- j(() => {
246
- let t = e.trim();
247
- if (!(t.length < r)) return i(t), i.cancel;
248
- }, [
249
- e,
250
- r,
251
- i
252
- ]);
253
- }
254
- //#endregion
255
- //#region src/components/features/combobox/hooks/use-grouped-items.ts
256
- function ce({ items: e, getItemGroup: t }) {
257
- return M(() => {
258
- if (!t) return null;
259
- let n = /* @__PURE__ */ new Map();
260
- for (let r of e) {
261
- let e = t(r), i = n.get(e);
262
- i ? i.push(r) : n.set(e, [r]);
263
- }
264
- return n;
265
- }, [e, t]);
266
- }
267
- //#endregion
268
- //#region src/components/features/combobox/hooks/use-load-more.ts
269
- function X({ hasMore: e, onLoadMore: t, loadingMore: n }) {
270
- let r = N(!1), i = N(null), a = O(() => {
271
- r.current = !0, t?.(), i.current && clearTimeout(i.current), i.current = setTimeout(() => {
272
- r.current = !1, i.current = null;
273
- }, 500);
274
- }, 100);
275
- return j(() => () => {
276
- i.current && clearTimeout(i.current);
277
- }, []), { handleScroll: A((i) => {
278
- if (!e || !t || n || r.current) return;
279
- let { scrollHeight: o, scrollTop: s, clientHeight: c } = i.target;
280
- (s + c) / o >= .8 && a();
281
- }, [
282
- e,
283
- t,
284
- n,
285
- a
286
- ]) };
287
- }
288
- //#endregion
289
- //#region src/components/features/combobox/hooks/use-combobox-core.tsx
290
- function le(e) {
291
- return n(V, e);
292
- }
293
- function ue(e, t, n) {
294
- let r = t.toLowerCase();
295
- return e.some((e) => n(e).toLowerCase() === r);
296
- }
297
- function de({ items: e, searchValue: t, getItemLabel: n, getItemKey: a, loading: o = !1, showListContent: s = !0, minSearchLength: c = 3, strings: l, renderItem: u, onSearch: d, debounceMs: f = 300, creatable: p, onCreate: m, getItemGroup: h, hasMore: g, onLoadMore: _, loadingMore: v, highlightMatch: y, ensuredItems: b = [] }) {
298
- let x = le(l), S = a ?? n, C = N(null), w = t.trim(), T = s && (o || w.length < c);
299
- se({
300
- searchValue: t,
301
- onSearch: d,
302
- debounceMs: f,
303
- minSearchLength: c
304
- });
305
- let { handleScroll: E } = X({
306
- hasMore: s && !T ? g : !1,
307
- onLoadMore: _,
308
- loadingMore: v
309
- });
310
- j(() => {
311
- let e = C.current;
312
- if (s && !T && e && g && _) return e.addEventListener("scroll", E), () => e.removeEventListener("scroll", E);
313
- }, [
314
- E,
315
- g,
316
- _,
317
- s,
318
- T
319
- ]);
320
- let D = M(() => {
321
- if (!s || T) return [];
322
- if (b.length === 0) return e;
323
- let t = [...b];
324
- return e.forEach((e) => {
325
- let n = S(e);
326
- b.some((e) => S(e) === n) || t.push(e);
327
- }), t;
328
- }, [
329
- e,
330
- b,
331
- S,
332
- s,
333
- T
334
- ]), O = ce({
335
- items: D,
336
- getItemGroup: h
337
- }), k = M(() => !s || T || !p || !m || w.length < c ? !1 : !ue(D, w, n), [
338
- p,
339
- m,
340
- w,
341
- c,
342
- D,
343
- n,
344
- s,
345
- T
346
- ]), P = M(() => k ? ne(w) : null, [k, w]);
347
- return {
348
- strings: x,
349
- getKey: S,
350
- trimmedSearch: w,
351
- listRef: C,
352
- baseItems: D,
353
- allItems: M(() => P ? [...D, P] : D, [D, P]),
354
- groupedItems: O,
355
- createOptionItem: P,
356
- showStatus: T,
357
- showEmpty: s && !o && w.length >= c && e.length === 0 && !k,
358
- showCreateOption: k,
359
- renderItemContent: A((e) => {
360
- if (U(e)) {
361
- let t = W(e);
362
- return /* @__PURE__ */ I("span", {
363
- className: r("combobox-core--component", "flex items-center gap-space-sm"),
364
- children: [/* @__PURE__ */ F(z, { className: "size-icon-sm" }), x.createNew.includes("{value}") ? /* @__PURE__ */ F(i, {
365
- tag: "span",
366
- size: "inherit",
367
- weight: "medium",
368
- lineHeight: "tight",
369
- className: "text-inherit",
370
- children: x.createNew.replace("{value}", t)
371
- }) : /* @__PURE__ */ I("span", {
372
- className: "inline-flex items-center gap-space-sm",
373
- children: [/* @__PURE__ */ F(i, {
374
- tag: "span",
375
- size: "inherit",
376
- weight: "medium",
377
- lineHeight: "tight",
378
- className: "text-inherit",
379
- children: x.createNew
380
- }), /* @__PURE__ */ F(i, {
381
- tag: "span",
382
- size: "inherit",
383
- weight: "medium",
384
- lineHeight: "tight",
385
- className: "text-inherit",
386
- children: t
387
- })]
388
- })]
389
- });
390
- }
391
- if (u) return u(e);
392
- let t = n(e);
393
- return y && w ? /* @__PURE__ */ F(Y, {
394
- text: t,
395
- highlight: w
396
- }) : /* @__PURE__ */ F(i, {
397
- tag: "span",
398
- size: "inherit",
399
- weight: "medium",
400
- lineHeight: "tight",
401
- className: "text-inherit",
402
- children: t
403
- });
404
- }, [
405
- x.createNew,
406
- u,
407
- n,
408
- y,
409
- w
410
- ]),
411
- itemToStringLabel: A((e) => U(e) ? W(e) : n(e), [n]),
412
- getItemReactKey: A((e) => U(e) ? `__create__:${W(e)}` : String(S(e)), [S]),
413
- handleScroll: E
414
- };
415
- }
416
- //#endregion
417
- //#region src/components/features/combobox/combobox.tsx
418
- function fe(t, n) {
419
- return e(t, n, "md");
420
- }
421
- var pe = {
422
- sm: "pe-control-actions-sm",
423
- md: "pe-control-actions",
424
- lg: "pe-control-actions"
425
- }, me = {
426
- sm: "sm",
427
- md: "md",
428
- lg: "lg"
429
- };
430
- function he(e) {
431
- return e;
432
- }
433
- function ge({ placeholder: e, clearLabel: t, toggleLabel: n, size: i, error: a, required: s, disabled: c, clearable: u = !0, className: d, onBlur: f }) {
434
- return /* @__PURE__ */ I("div", {
435
- className: "relative",
436
- children: [/* @__PURE__ */ F(B.Input, {
437
- render: /* @__PURE__ */ F(E, {
438
- size: i,
439
- invalid: a,
440
- className: r(u ? pe[i] : l.togglePadding, d)
441
- }),
442
- placeholder: e,
443
- "aria-invalid": a || void 0,
444
- "aria-required": s,
445
- disabled: c,
446
- onBlur: f
447
- }), /* @__PURE__ */ I("div", {
448
- className: "absolute inset-y-0 end-space-xs flex items-center gap-space-xs text-muted-foreground",
449
- children: [u ? /* @__PURE__ */ F(B.Clear, { render: /* @__PURE__ */ F(o, {
450
- type: "button",
451
- tone: "secondary",
452
- buttonStyle: "ghost",
453
- size: "sm",
454
- iconOnly: !0,
455
- className: r(l.target, l.focus, l.clear),
456
- "aria-label": t,
457
- children: /* @__PURE__ */ F(te, {
458
- className: l.icon,
459
- "aria-hidden": "true"
460
- })
461
- }) }) : null, /* @__PURE__ */ F(B.Trigger, { render: /* @__PURE__ */ F(o, {
462
- type: "button",
463
- tone: "secondary",
464
- buttonStyle: "ghost",
465
- size: "sm",
466
- iconOnly: !0,
467
- className: r(l.target, l.focus, l.toggle),
468
- "aria-label": n,
469
- children: /* @__PURE__ */ F(L, {
470
- className: l.icon,
471
- "aria-hidden": "true"
472
- })
473
- }) })]
474
- })]
475
- });
476
- }
477
- function _e({ items: e, selectedValue: n, onSelectedValueChange: r, clearSearchOnClose: i = !0, searchValue: a, onSearchValueChange: o, getItemLabel: c, getItemKey: l, loading: u = !1, showListContent: d = !0, minSearchLength: f = 3, strings: p, disabled: m = !1, className: h, clearable: g = !0, renderItem: _, portalContainer: y, name: b, invalid: x, error: S, required: C, onBlur: w, onSearch: T, debounceMs: E, creatable: D, onCreate: O, getItemGroup: k, renderGroupLabel: j, hasMore: M, onLoadMore: N, loadingMore: ee, getItemDisabled: L, highlightMatch: R, size: z, open: te, onOpenChange: B }) {
478
- let { defaultScale: V } = t(), H = fe(z, V), ne = he(H), re = x || !!S, G = de({
479
- items: e,
480
- searchValue: a,
481
- onSearchValueChange: o,
482
- getItemLabel: c,
483
- getItemKey: l,
484
- loading: u,
485
- showListContent: d,
486
- minSearchLength: f,
487
- strings: p,
488
- renderItem: _,
489
- onSearch: T,
490
- debounceMs: E,
491
- creatable: D,
492
- onCreate: O,
493
- getItemGroup: k,
494
- hasMore: M,
495
- onLoadMore: N,
496
- loadingMore: ee,
497
- highlightMatch: R,
498
- size: H,
499
- ensuredItems: n ? [n] : []
500
- }), [K, ie] = P(!1), q = A((e) => {
501
- ie(e), !e && i && o(""), B?.(e);
502
- }, [
503
- i,
504
- B,
505
- o
506
- ]), J = K ? a : n ? G.itemToStringLabel(n) : "", Y = A((e) => {
507
- if (e && U(e)) {
508
- let t = W(e);
509
- O?.(t);
510
- return;
511
- }
512
- r(e);
513
- }, [r, O]);
514
- return /* @__PURE__ */ I(s, {
515
- gap: "dense",
516
- className: "combobox--component",
517
- children: [/* @__PURE__ */ I(v, {
518
- items: G.allItems,
519
- value: n,
520
- onValueChange: Y,
521
- inputValue: J,
522
- onInputValueChange: (e, { reason: t }) => {
523
- if (t === "item-press") {
524
- o("");
525
- return;
526
- }
527
- o(e);
528
- },
529
- itemToStringLabel: G.itemToStringLabel,
530
- disabled: m,
531
- filter: null,
532
- name: b,
533
- required: C,
534
- open: te,
535
- onOpenChange: q,
536
- children: [/* @__PURE__ */ F(ge, {
537
- placeholder: G.strings.placeholder,
538
- clearLabel: G.strings.clear,
539
- toggleLabel: G.strings.toggle,
540
- className: h,
541
- size: ne,
542
- error: re,
543
- required: C,
544
- disabled: m,
545
- clearable: g,
546
- onBlur: w
547
- }), /* @__PURE__ */ F(ae, {
548
- loading: u,
549
- showStatus: G.showStatus,
550
- showEmpty: G.showEmpty,
551
- searchValue: a,
552
- minSearchLength: f,
553
- items: G.allItems,
554
- groupedItems: G.groupedItems,
555
- createOptionItem: G.createOptionItem,
556
- renderItemContent: G.renderItemContent,
557
- getItemReactKey: G.getItemReactKey,
558
- getItemDisabled: L,
559
- renderGroupLabel: j,
560
- loadingMore: d && !G.showStatus ? ee : !1,
561
- strings: G.strings,
562
- size: H,
563
- portalContainer: y,
564
- listRef: G.listRef
565
- })]
566
- }), /* @__PURE__ */ F(oe, {
567
- error: S,
568
- size: H
569
- })]
570
- });
571
- }
572
- function ve({ items: e, selectedValues: n, onSelectedValuesChange: a, searchValue: o, onSearchValueChange: c, getItemLabel: l, getItemKey: u, loading: d = !1, showListContent: p = !0, minSearchLength: m = 3, strings: g, disabled: _ = !1, className: y, renderItem: b, portalContainer: S, name: C, invalid: E, error: D, required: O, onBlur: k, onSearch: M, debounceMs: ee, creatable: L, onCreate: R, getItemGroup: z, renderGroupLabel: te, hasMore: B, onLoadMore: V, loadingMore: H, getItemDisabled: ne, highlightMatch: re, size: G, open: K, onOpenChange: ie, closeOnSelect: q = !1, applyButton: J = !1, onApply: Y, onCancel: se }) {
573
- let { defaultScale: ce } = t(), X = fe(G, ce), le = he(X), ue = me[X], pe = E || !!D, ge = N(null), _e = u ?? l, [ve, Z] = P(n), [ye, be] = P(!1), xe = K !== void 0, Se = xe ? K : ye;
574
- j(() => {
575
- J && Z(n);
576
- }, [J, n]);
577
- let Q = A((e) => {
578
- xe || be(e), ie?.(e);
579
- }, [xe, ie]), $ = de({
580
- items: e,
581
- searchValue: o,
582
- onSearchValueChange: c,
583
- getItemLabel: l,
584
- getItemKey: u,
585
- loading: d,
586
- showListContent: p,
587
- minSearchLength: m,
588
- strings: g,
589
- renderItem: b,
590
- onSearch: M,
591
- debounceMs: ee,
592
- creatable: L,
593
- onCreate: R,
594
- getItemGroup: z,
595
- hasMore: B,
596
- onLoadMore: V,
597
- loadingMore: H,
598
- highlightMatch: re,
599
- size: X,
600
- ensuredItems: n
601
- }), Ce = A((e) => {
602
- let t = [], n = null;
603
- for (let r of e) U(r) ? n = W(r) : t.push(r);
604
- n && R?.(n);
605
- let r = t.length !== e.length || !n ? t : null;
606
- r && (J ? Z(r) : a(r)), q && Q(!1);
607
- }, [
608
- a,
609
- R,
610
- J,
611
- q,
612
- Q
613
- ]), we = A(() => {
614
- J && a(ve), Y?.(), Q(!1);
615
- }, [
616
- J,
617
- ve,
618
- Y,
619
- a,
620
- Q
621
- ]), Te = A(() => {
622
- J && Z(n), se?.(), Q(!1);
623
- }, [
624
- J,
625
- n,
626
- se,
627
- Q
628
- ]), Ee = J ? ve : n, De = Ee.length > 0 ? void 0 : $.strings.placeholder;
629
- return /* @__PURE__ */ I(s, {
630
- gap: "dense",
631
- className: "combobox--component",
632
- children: [/* @__PURE__ */ I(v, {
633
- items: $.allItems,
634
- multiple: !0,
635
- value: Ee,
636
- onValueChange: Ce,
637
- inputValue: o,
638
- onInputValueChange: (e, { reason: t }) => {
639
- if (t === "item-press") {
640
- c("");
641
- return;
642
- }
643
- c(e);
644
- },
645
- itemToStringLabel: $.itemToStringLabel,
646
- disabled: _,
647
- filter: null,
648
- name: C,
649
- required: O,
650
- open: Se,
651
- onOpenChange: (e) => {
652
- !e && J && Z(n), Q(e);
653
- },
654
- children: [/* @__PURE__ */ I(x, {
655
- ref: ge,
656
- className: r(w[le], T[le], le === "sm" ? "text-pxs" : "text-sm", "bg-transparent !shadow-none", y),
657
- size: ue,
658
- error: pe,
659
- children: [Ee.map((e) => /* @__PURE__ */ F(h, { children: /* @__PURE__ */ F(i, {
660
- tag: "span",
661
- size: "inherit",
662
- weight: "medium",
663
- lineHeight: "tight",
664
- className: "combobox--chip-label text-inherit",
665
- children: l(e)
666
- }) }, _e(e))), /* @__PURE__ */ F(f, {
667
- placeholder: De,
668
- "aria-invalid": pe || void 0,
669
- "aria-required": O,
670
- onBlur: k
671
- })]
672
- }), /* @__PURE__ */ F(ae, {
673
- loading: d,
674
- showStatus: $.showStatus,
675
- showEmpty: $.showEmpty,
676
- searchValue: o,
677
- minSearchLength: m,
678
- items: $.allItems,
679
- groupedItems: $.groupedItems,
680
- createOptionItem: $.createOptionItem,
681
- renderItemContent: $.renderItemContent,
682
- getItemReactKey: $.getItemReactKey,
683
- getItemDisabled: ne,
684
- renderGroupLabel: te,
685
- loadingMore: p && !$.showStatus ? H : !1,
686
- strings: $.strings,
687
- size: X,
688
- portalContainer: S,
689
- listRef: $.listRef,
690
- anchor: ge,
691
- applyFooter: p && J ? {
692
- applyLabel: $.strings.apply,
693
- cancelLabel: $.strings.cancel,
694
- onApply: we,
695
- onCancel: Te
696
- } : void 0
697
- })]
698
- }), /* @__PURE__ */ F(oe, {
699
- error: D,
700
- size: X
701
- })]
702
- });
703
- }
704
- _e.displayName = "Combobox", ve.displayName = "MultiCombobox";
705
- //#endregion
706
- //#region src/components/features/combobox/async-resource-combobox.tsx
707
- var Z = {
708
- ...V,
709
- error: "Unable to load options.",
710
- retry: "Retry"
711
- };
712
- function ye(e) {
713
- return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
714
- }
715
- function be({ fetcher: e, value: t, defaultValue: a = null, onValueChange: o, onAfterFetch: l, onError: u, getKey: d, getLabel: f, getDescription: p, getMeta: m, renderOption: h, limit: g = 10, debounceMs: _ = 300, preload: v = !0, minSearchLength: y = 0, errorMessage: b, renderError: x, strings: S, disabled: C, size: w, ...T }) {
716
- let E = n(Z, S), D = t !== void 0, [k, ee] = P(a), L = D ? t : k, [R, z] = P(""), [te, B] = P([]), [V, H] = P(!1), [U, W] = P(null), [ne, re] = P(0), G = N(0), K = R.trim(), ie = A((e) => {
717
- D || ee(e), o?.(e);
718
- }, [D, o]), q = O((t, n) => {
719
- H(!0), W(null), e(n).then((e) => {
720
- n.signal?.aborted || G.current !== t || (B(e), l?.(e, n));
721
- }).catch((e) => {
722
- n.signal?.aborted || G.current !== t || (B([]), W({
723
- error: e,
724
- query: n.query
725
- }), u?.(e, n));
726
- }).finally(() => {
727
- !n.signal?.aborted && G.current === t && H(!1);
728
- });
729
- }, _);
730
- j(() => {
731
- if (C) return;
732
- if (!(K.length > 0 ? K.length >= y : v)) {
733
- B([]), H(!1), W(null);
734
- return;
735
- }
736
- let e = G.current + 1;
737
- G.current = e;
738
- let t = new AbortController();
739
- return q(e, {
740
- query: K,
741
- limit: g,
742
- signal: t.signal
743
- }), () => {
744
- q.cancel(), t.abort();
745
- };
746
- }, [
747
- C,
748
- g,
749
- y,
750
- v,
751
- ne,
752
- q,
753
- K
754
- ]);
755
- let ae = A(() => {
756
- U && (z(U.query), re((e) => e + 1));
757
- }, [U]), oe = A((e) => {
758
- if (h) return h(e, {
759
- query: K,
760
- isSelected: L ? d(L) === d(e) : !1
761
- });
762
- let t = p?.(e), n = m?.(e);
763
- return /* @__PURE__ */ I(s, {
764
- render: /* @__PURE__ */ F("span", {}),
765
- direction: "horizontal",
766
- gap: "md",
767
- wrap: !1,
768
- className: "async-resource-combobox--option leading-tight",
769
- children: [/* @__PURE__ */ F(i, {
770
- tag: "span",
771
- size: w === "sm" ? "pxs" : void 0,
772
- weight: "medium",
773
- className: "min-w-0 shrink truncate",
774
- children: f(e)
775
- }), (!!t || !!n) && /* @__PURE__ */ I("span", {
776
- className: "inline-flex min-w-0 flex-1 items-center gap-space-sm overflow-hidden text-muted-foreground",
777
- children: [!!t && (ye(t) ? /* @__PURE__ */ F(i, {
778
- tag: "span",
779
- size: "xs",
780
- type: "secondary",
781
- className: "min-w-0 truncate",
782
- children: t
783
- }) : t), !!n && (ye(n) ? /* @__PURE__ */ F(i, {
784
- tag: "span",
785
- size: "xs",
786
- type: "secondary",
787
- className: "min-w-0 truncate opacity-75",
788
- children: n
789
- }) : n)]
790
- })]
791
- });
792
- }, [
793
- p,
794
- d,
795
- f,
796
- m,
797
- h,
798
- L,
799
- w,
800
- K
801
- ]), J = M(() => {
802
- if (U) return b ?? E.error;
803
- }, [
804
- b,
805
- U,
806
- E.error
807
- ]), Y = U !== null, se = U ? x?.({
808
- error: U.error,
809
- query: U.query,
810
- retry: ae
811
- }) ?? /* @__PURE__ */ F(c, {
812
- variant: "inline",
813
- title: J,
814
- onRetry: ae,
815
- retryLabel: E.retry,
816
- className: "async-resource-combobox--error mt-space-sm"
817
- }) : null;
818
- return /* @__PURE__ */ I("div", {
819
- "data-component": "async-resource-combobox",
820
- "data-slot": "async-resource-combobox",
821
- className: r("async-resource-combobox--component", T.className),
822
- children: [/* @__PURE__ */ F(_e, {
823
- ...T,
824
- className: void 0,
825
- disabled: C,
826
- size: w,
827
- items: te,
828
- selectedValue: L ?? null,
829
- onSelectedValueChange: ie,
830
- clearSearchOnClose: !1,
831
- searchValue: R,
832
- onSearchValueChange: z,
833
- getItemLabel: f,
834
- getItemKey: d,
835
- loading: !Y && V,
836
- showListContent: !Y,
837
- minSearchLength: y,
838
- strings: E,
839
- renderItem: oe
840
- }), se]
841
- });
842
- }
843
- be.displayName = "AsyncResourceCombobox";
844
- //#endregion
845
- export { de as a, ve as i, Z as n, V as o, _e as r, be as t };
846
-
847
- //# sourceMappingURL=combobox-hozNwUcc.js.map