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