themelia-react-ui 1.0.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (542) hide show
  1. package/CHANGELOG.md +281 -1
  2. package/README.md +10 -5
  3. package/dist/{accordion-BRTcsp8J.js → accordion-CQXVcd7Q.js} +13 -13
  4. package/dist/accordion-CQXVcd7Q.js.map +1 -0
  5. package/dist/action-menu-BTpyPWJ2.js +264 -0
  6. package/dist/action-menu-BTpyPWJ2.js.map +1 -0
  7. package/dist/{affordance-geometry.generated-CL84ZN9A.js → affordance-geometry.generated-CCIXb2A1.js} +7 -2
  8. package/dist/affordance-geometry.generated-CCIXb2A1.js.map +1 -0
  9. package/dist/{ai-artifact-DLVdK0Py.js → ai-artifact-2PQ2fItc.js} +171 -176
  10. package/dist/ai-artifact-2PQ2fItc.js.map +1 -0
  11. package/dist/{app-shell-C_fKpljx.js → app-shell-BE_j8-AT.js} +4 -4
  12. package/dist/{app-shell-C_fKpljx.js.map → app-shell-BE_j8-AT.js.map} +1 -1
  13. package/dist/{attachment-DbjUWsP0.js → attachment-q69dlt5Y.js} +9 -9
  14. package/dist/{attachment-DbjUWsP0.js.map → attachment-q69dlt5Y.js.map} +1 -1
  15. package/dist/{auth-CAQcasMV.js → auth-M3vGMgDR.js} +42 -42
  16. package/dist/{auth-CAQcasMV.js.map → auth-M3vGMgDR.js.map} +1 -1
  17. package/dist/{avatar-Bu2HhitA.js → avatar-djdaaQ_s.js} +14 -12
  18. package/dist/avatar-djdaaQ_s.js.map +1 -0
  19. package/dist/{badge-CzId1Wlm.js → badge-0tATj-tW.js} +9 -9
  20. package/dist/badge-0tATj-tW.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/buttons.js +2 -2
  27. package/dist/base/cards.js +2 -2
  28. package/dist/base/carousel.js +11 -11
  29. package/dist/base/carousel.js.map +1 -1
  30. package/dist/base/cascader.js +244 -222
  31. package/dist/base/cascader.js.map +1 -1
  32. package/dist/base/chart.js +1 -1
  33. package/dist/base/choice-inputs.js +2 -2
  34. package/dist/base/code-block.js +1 -1
  35. package/dist/base/combobox.js +1 -1
  36. package/dist/base/command.js +1 -1
  37. package/dist/base/copyable.js +1 -1
  38. package/dist/base/date-pickers.js +2 -2
  39. package/dist/base/display.js +6 -6
  40. package/dist/base/feedback.js +3 -3
  41. package/dist/base/forms-numeric.js +1 -1
  42. package/dist/base/forms.js +2 -2
  43. package/dist/base/inline-edit.js +81 -76
  44. package/dist/base/inline-edit.js.map +1 -1
  45. package/dist/base/item.js +1 -1
  46. package/dist/base/media-gallery.js +1 -1
  47. package/dist/base/navigation.js +6 -6
  48. package/dist/base/popover-menu.js +1 -1
  49. package/dist/base/popover.js +1 -1
  50. package/dist/base/qr-code.js +7 -4
  51. package/dist/base/qr-code.js.map +1 -1
  52. package/dist/base/repeaters.js +42 -42
  53. package/dist/base/repeaters.js.map +1 -1
  54. package/dist/base/sheet.js +1 -1
  55. package/dist/base/sidebar.js +1 -1
  56. package/dist/base/signature-pad.js +9 -9
  57. package/dist/base/signature-pad.js.map +1 -1
  58. package/dist/base/skeleton.js +1 -1
  59. package/dist/base/spinner.js +1 -1
  60. package/dist/base/structure.js +1 -1
  61. package/dist/base/table.js +1 -1
  62. package/dist/base/text-inputs.js +2 -2
  63. package/dist/base/toaster.js +4 -4
  64. package/dist/base/toaster.js.map +1 -1
  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 +1 -1
  69. package/dist/blocks/admin.js +229 -220
  70. package/dist/blocks/admin.js.map +1 -1
  71. package/dist/blocks/ai.js +147 -180
  72. package/dist/blocks/ai.js.map +1 -1
  73. package/dist/blocks/analytics/usage-card.js +1 -1
  74. package/dist/blocks/analytics.js +530 -523
  75. package/dist/blocks/analytics.js.map +1 -1
  76. package/dist/blocks/collaboration.js +1 -1
  77. package/dist/blocks/commerce/receipt.js +1 -1
  78. package/dist/blocks/commerce.js +1390 -1516
  79. package/dist/blocks/commerce.js.map +1 -1
  80. package/dist/blocks/data-display.js +1 -1
  81. package/dist/blocks/onboarding.js +5 -5
  82. package/dist/blocks/planning.js +82 -91
  83. package/dist/blocks/planning.js.map +1 -1
  84. package/dist/blocks/timelines.js +1 -1
  85. package/dist/{breadcrumbs-BuYz5SDU.js → breadcrumbs-BG_FfMK4.js} +5 -5
  86. package/dist/{breadcrumbs-BuYz5SDU.js.map → breadcrumbs-BG_FfMK4.js.map} +1 -1
  87. package/dist/{button-BZDasD04.js → button-BS3KDg00.js} +185 -162
  88. package/dist/button-BS3KDg00.js.map +1 -0
  89. package/dist/{button-BZyfTvwm.js → button-R9CCoH7A.js} +2 -2
  90. package/dist/{button-BZyfTvwm.js.map → button-R9CCoH7A.js.map} +1 -1
  91. package/dist/{buttons-D_6KJvEE.js → buttons-DS0ZIwJ_.js} +11 -11
  92. package/dist/buttons-DS0ZIwJ_.js.map +1 -0
  93. package/dist/{cards-qGSErLw_.js → cards-QoJ4syG9.js} +7 -7
  94. package/dist/{cards-qGSErLw_.js.map → cards-QoJ4syG9.js.map} +1 -1
  95. package/dist/{chart-Bsc5BICK.js → chart-DwYRKKc-.js} +17 -15
  96. package/dist/chart-DwYRKKc-.js.map +1 -0
  97. package/dist/checkbox-B7ygNTYp.js +35 -0
  98. package/dist/checkbox-B7ygNTYp.js.map +1 -0
  99. package/dist/choice-inputs-DrJ17tpL.js +752 -0
  100. package/dist/choice-inputs-DrJ17tpL.js.map +1 -0
  101. package/dist/{code-block-DzHKRybS.js → code-block-CD0B7M93.js} +19 -19
  102. package/dist/{code-block-DzHKRybS.js.map → code-block-CD0B7M93.js.map} +1 -1
  103. package/dist/{collapsible-ClvC7Bj3.js → collapsible-oMUGM4tr.js} +3 -3
  104. package/dist/{collapsible-ClvC7Bj3.js.map → collapsible-oMUGM4tr.js.map} +1 -1
  105. package/dist/{collection-content-D6S8cv_n.js → collection-content-Ys-OZOkY.js} +3 -3
  106. package/dist/{collection-content-D6S8cv_n.js.map → collection-content-Ys-OZOkY.js.map} +1 -1
  107. package/dist/{combobox-BFnbJJp3.js → combobox-6dvVny2q.js} +96 -97
  108. package/dist/combobox-6dvVny2q.js.map +1 -0
  109. package/dist/{combobox-hozNwUcc.js → combobox-CB7039j7.js} +326 -308
  110. package/dist/combobox-CB7039j7.js.map +1 -0
  111. package/dist/{command-BnmSchli.js → command-kPMPjIxJ.js} +34 -30
  112. package/dist/command-kPMPjIxJ.js.map +1 -0
  113. package/dist/{comments-u5L0OGip.js → comments-You0Bzbr.js} +349 -348
  114. package/dist/comments-You0Bzbr.js.map +1 -0
  115. package/dist/components/base/accordion/accordion-variants.d.ts +3 -3
  116. package/dist/components/base/action-menu/action-menu.d.ts +7 -2
  117. package/dist/components/base/avatar/stacked-avatars.d.ts +5 -4
  118. package/dist/components/base/badge/badge.d.ts +1 -1
  119. package/dist/components/base/badge/badge.recipes.d.ts +4 -4
  120. package/dist/components/base/buttons/base-button.d.ts +7 -0
  121. package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
  122. package/dist/components/base/buttons/button.variants.d.ts +1 -0
  123. package/dist/components/base/buttons/loader-button.d.ts +3 -1
  124. package/dist/components/base/buttons/text-button.d.ts +2 -2
  125. package/dist/components/base/carousel/carousel.d.ts +3 -1
  126. package/dist/components/base/chart/chart.d.ts +7 -7
  127. package/dist/components/base/choice-inputs/checkbox.d.ts +6 -7
  128. package/dist/components/base/choice-inputs/choice-types.d.ts +10 -1
  129. package/dist/components/base/choice-inputs/pill-radio-group.d.ts +9 -0
  130. package/dist/components/base/choice-inputs/select-popup.d.ts +9 -1
  131. package/dist/components/base/choice-inputs/switch-card.d.ts +1 -1
  132. package/dist/components/base/date-pickers/date-picker-field.d.ts +23 -0
  133. package/dist/components/base/date-pickers/datepicker.types.d.ts +13 -3
  134. package/dist/components/base/display/alert-dialog.d.ts +8 -2
  135. package/dist/components/base/display/content-block.d.ts +4 -2
  136. package/dist/components/base/display/date-block.d.ts +1 -1
  137. package/dist/components/base/display/dialog.d.ts +12 -5
  138. package/dist/components/base/display/surface-title.d.ts +6 -1
  139. package/dist/components/base/feedback/alert.d.ts +1 -1
  140. package/dist/components/base/feedback/state-display.d.ts +5 -4
  141. package/dist/components/base/forms/form-sizing.d.ts +32 -0
  142. package/dist/components/base/forms/workflow.d.ts +2 -0
  143. package/dist/components/base/forms-numeric/coordinates-input.d.ts +3 -0
  144. package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +4 -1
  145. package/dist/components/base/navigation/dropdown-menu.d.ts +2 -2
  146. package/dist/components/base/navigation/language-switcher.d.ts +4 -1
  147. package/dist/components/base/navigation/overflow-tab-bar.d.ts +7 -0
  148. package/dist/components/base/navigation/page-header/page-header.d.ts +4 -1
  149. package/dist/components/base/qr-code/qr-code.d.ts +2 -0
  150. package/dist/components/base/sheet/index.d.ts +29 -1
  151. package/dist/components/base/sheet/sheet.d.ts +14 -5
  152. package/dist/components/base/spinner/spinner.d.ts +3 -2
  153. package/dist/components/base/structure/structure.types.d.ts +1 -1
  154. package/dist/components/base/text-inputs/input-group.d.ts +2 -2
  155. package/dist/components/base/upload/upload.recipes.d.ts +11 -0
  156. package/dist/components/base/value-inputs/date-time-input.d.ts +4 -2
  157. package/dist/components/base/value-inputs/tags-input.d.ts +2 -0
  158. package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +1 -1
  159. package/dist/components/blocks/analytics/format-metric-value.d.ts +11 -1
  160. package/dist/components/blocks/analytics/index.d.ts +1 -1
  161. package/dist/components/blocks/analytics/use-metric-format-options.d.ts +3 -0
  162. package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
  163. package/dist/components/blocks/commerce/address-card/types.d.ts +3 -1
  164. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +4 -0
  165. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +2 -2
  166. package/dist/components/blocks/commerce/discount-stack/types.d.ts +1 -1
  167. package/dist/components/blocks/commerce/inventory-section/types.d.ts +4 -1
  168. package/dist/components/blocks/commerce/loyalty-points/types.d.ts +1 -1
  169. package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
  170. package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +1 -1
  171. package/dist/components/blocks/commerce/payment-method/types.d.ts +3 -1
  172. package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +1 -1
  173. package/dist/components/blocks/commerce/seo-listing/types.d.ts +3 -1
  174. package/dist/components/blocks/commerce/vendor-profile/types.d.ts +4 -1
  175. package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +4 -1
  176. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +4 -1
  177. package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +1 -1
  178. package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
  179. package/dist/components/features/overlays/drawer.d.ts +1 -1
  180. package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +2 -2
  181. package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +11 -4
  182. package/dist/components/features/overlays/overlay-tone-icon.d.ts +37 -0
  183. package/dist/components/features/overlays/overlays.types.d.ts +42 -19
  184. package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
  185. package/dist/components/features/products/partials/index.d.ts +1 -1
  186. package/dist/components/features/products/partials/product-metric-tile.d.ts +6 -0
  187. package/dist/components/features/products/partials/product-tone.d.ts +11 -1
  188. package/dist/components/features/products/products.types.d.ts +2 -1
  189. package/dist/components/features/table/partials/cell-renderers.d.ts +1 -1
  190. package/dist/components/layout/page/index.d.ts +1 -1
  191. package/dist/components/layout/page/page.types.d.ts +53 -3
  192. package/dist/components/layout/page/partials/page-header-commands.d.ts +13 -0
  193. package/dist/components/layout/page/partials/page-header.d.ts +1 -1
  194. package/dist/components/primitives/date.d.ts +16 -3
  195. package/dist/components/primitives/dimensions.d.ts +6 -0
  196. package/dist/components/primitives/duration.d.ts +6 -0
  197. package/dist/components/primitives/file-size.d.ts +6 -0
  198. package/dist/components/primitives/index.d.ts +1 -1
  199. package/dist/components/primitives/initials.d.ts +11 -2
  200. package/dist/components/primitives/link.d.ts +7 -0
  201. package/dist/components/primitives/money.d.ts +29 -7
  202. package/dist/components/primitives/number.d.ts +17 -0
  203. package/dist/components/primitives/value-typography.d.ts +54 -0
  204. package/dist/components/primitives/value.d.ts +31 -6
  205. package/dist/components/typography/heading.d.ts +9 -1
  206. package/dist/components/typography/label.d.ts +3 -0
  207. package/dist/components/typography/running-text.d.ts +12 -0
  208. package/dist/components/typography/text-link.d.ts +23 -1
  209. package/dist/components/typography/text.d.ts +12 -0
  210. package/dist/components/typography/text.styles.d.ts +35 -13
  211. package/dist/components/ui/button.d.ts +1 -1
  212. package/dist/components/ui/checkbox.d.ts +5 -0
  213. package/dist/components/ui/overlay.recipes.d.ts +15 -2
  214. package/dist/components/ui/select.d.ts +3 -1
  215. package/dist/components/ui/switch.d.ts +5 -0
  216. package/dist/{containers-DqB-bSYE.js → containers-D_L4mTVb.js} +3 -3
  217. package/dist/{containers-DqB-bSYE.js.map → containers-D_L4mTVb.js.map} +1 -1
  218. package/dist/{copyable-BTSByfmq.js → copyable-DDjTeW_j.js} +4 -4
  219. package/dist/{copyable-BTSByfmq.js.map → copyable-DDjTeW_j.js.map} +1 -1
  220. package/dist/{data-display-Bihs9Ven.js → data-display-3xWQUnMA.js} +471 -478
  221. package/dist/data-display-3xWQUnMA.js.map +1 -0
  222. package/dist/date-picker-DrDFj8Lo.js +1527 -0
  223. package/dist/date-picker-DrDFj8Lo.js.map +1 -0
  224. package/dist/date-pickers-CnFCb0n2.js +174 -0
  225. package/dist/date-pickers-CnFCb0n2.js.map +1 -0
  226. package/dist/date-uf3z37Nm.js +144 -0
  227. package/dist/date-uf3z37Nm.js.map +1 -0
  228. package/dist/{display-CS6Hbk18.js → display-DrdvPwF0.js} +25 -25
  229. package/dist/display-DrdvPwF0.js.map +1 -0
  230. package/dist/{dropdown-menu-D-boNgGO.js → dropdown-menu-CURh59jb.js} +22 -15
  231. package/dist/dropdown-menu-CURh59jb.js.map +1 -0
  232. package/dist/features/activities.js +38 -35
  233. package/dist/features/activities.js.map +1 -1
  234. package/dist/features/ai-chat.js +36 -35
  235. package/dist/features/ai-chat.js.map +1 -1
  236. package/dist/features/async-preview.js +8 -8
  237. package/dist/features/combobox.js +1 -1
  238. package/dist/features/comments.js +1 -1
  239. package/dist/features/data-view.js +10 -10
  240. package/dist/features/email-composer.js +325 -326
  241. package/dist/features/email-composer.js.map +1 -1
  242. package/dist/features/event-calendar.js +190 -200
  243. package/dist/features/event-calendar.js.map +1 -1
  244. package/dist/features/filters.js +1 -1
  245. package/dist/features/global-search.js +77 -77
  246. package/dist/features/global-search.js.map +1 -1
  247. package/dist/features/kanban.js +4 -4
  248. package/dist/features/map.js +8 -8
  249. package/dist/features/media-library.js +499 -502
  250. package/dist/features/media-library.js.map +1 -1
  251. package/dist/features/mentions.js +1 -1
  252. package/dist/features/overlays.js +1 -1
  253. package/dist/features/products.js +1216 -1248
  254. package/dist/features/products.js.map +1 -1
  255. package/dist/features/questionnaire.js +46 -44
  256. package/dist/features/questionnaire.js.map +1 -1
  257. package/dist/features/resource-assignment.js +96 -88
  258. package/dist/features/resource-assignment.js.map +1 -1
  259. package/dist/features/resource.js +11 -11
  260. package/dist/features/rich-text-editor.js +2 -2
  261. package/dist/features/schema-form.js +188 -184
  262. package/dist/features/schema-form.js.map +1 -1
  263. package/dist/features/suggestions.js +3 -3
  264. package/dist/features/sync.js +7 -7
  265. package/dist/features/sync.js.map +1 -1
  266. package/dist/features/table.js +1 -1
  267. package/dist/features/theme-tweaker.js +469 -470
  268. package/dist/features/theme-tweaker.js.map +1 -1
  269. package/dist/{feedback-CJkUAapr.js → feedback-C7nR0UtT.js} +9 -10
  270. package/dist/feedback-C7nR0UtT.js.map +1 -0
  271. package/dist/field-affordance-recipes-CkOCdE2y.js +46 -0
  272. package/dist/field-affordance-recipes-CkOCdE2y.js.map +1 -0
  273. package/dist/{field-state-recipes-DQQpiLWC.js → field-state-recipes-C-MFBX_8.js} +3 -3
  274. package/dist/field-state-recipes-C-MFBX_8.js.map +1 -0
  275. package/dist/{filters-D6FF8L6s.js → filters-Da-gNPsE.js} +467 -467
  276. package/dist/filters-Da-gNPsE.js.map +1 -0
  277. package/dist/{form-field-CZwrkP7m.js → form-field-VZRULhUK.js} +7 -7
  278. package/dist/{form-field-CZwrkP7m.js.map → form-field-VZRULhUK.js.map} +1 -1
  279. package/dist/form-sizing-uWP4lzVh.js +126 -0
  280. package/dist/form-sizing-uWP4lzVh.js.map +1 -0
  281. package/dist/{forms-B5NCbkSC.js → forms-DDeEnXSY.js} +11 -11
  282. package/dist/forms-DDeEnXSY.js.map +1 -0
  283. package/dist/forms-numeric-D3CO60IF.js +905 -0
  284. package/dist/forms-numeric-D3CO60IF.js.map +1 -0
  285. package/dist/{header-kxruN3RM.js → header-2ycNqGOR.js} +43 -42
  286. package/dist/header-2ycNqGOR.js.map +1 -0
  287. package/dist/{hooks-BrlnCwQd.js → hooks-DQ5SPwZw.js} +2 -2
  288. package/dist/{hooks-BrlnCwQd.js.map → hooks-DQ5SPwZw.js.map} +1 -1
  289. package/dist/{icon-badge-Btc6pQrp.js → icon-badge-DKlaKXoo.js} +3 -3
  290. package/dist/{icon-badge-Btc6pQrp.js.map → icon-badge-DKlaKXoo.js.map} +1 -1
  291. package/dist/index.js +2 -2
  292. package/dist/{input-vxcaNCYC.js → input-BoLm9Hks.js} +3 -3
  293. package/dist/{input-vxcaNCYC.js.map → input-BoLm9Hks.js.map} +1 -1
  294. package/dist/input-DhQdBnV3.js +255 -0
  295. package/dist/{input-SX9V0AL3.js.map → input-DhQdBnV3.js.map} +1 -1
  296. package/dist/item-xzh8Df65.js +264 -0
  297. package/dist/item-xzh8Df65.js.map +1 -0
  298. package/dist/layout/app-shell.js +1 -1
  299. package/dist/layout/auth.js +1 -1
  300. package/dist/layout/containers.js +1 -1
  301. package/dist/layout/header.js +1 -1
  302. package/dist/layout/hooks.js +1 -1
  303. package/dist/layout/navigation.js +1 -1
  304. package/dist/layout/page.js +1 -1
  305. package/dist/layout/settings.js +1 -1
  306. package/dist/layout/sidebar.js +2 -2
  307. package/dist/layout/workspace.js +1 -1
  308. package/dist/layout.js +10 -10
  309. package/dist/lib/affordance-geometry.generated.d.ts +6 -1
  310. package/dist/lib/field-affordance-recipes.d.ts +35 -0
  311. package/dist/lib/field-state-recipes.d.ts +4 -2
  312. package/dist/lib/format.d.ts +9 -0
  313. package/dist/lib/money-format.d.ts +30 -0
  314. package/dist/lib/overlay-anatomy-recipes.d.ts +1 -1
  315. package/dist/lib/surface-recipes.d.ts +8 -6
  316. package/dist/lib/token-merge.generated.d.ts +11 -11
  317. package/dist/lib/track-recipes.d.ts +1 -1
  318. package/dist/lib/ui-provider/provider.d.ts +7 -2
  319. package/dist/lib/ui-provider/store.d.ts +6 -2
  320. package/dist/lib/ui-provider/types.d.ts +5 -2
  321. package/dist/lib/utils.js +1 -1
  322. package/dist/{media-gallery-DLp3HAz0.js → media-gallery-DQUQ0m3O.js} +8 -8
  323. package/dist/media-gallery-DQUQ0m3O.js.map +1 -0
  324. package/dist/{mentions-Cl0Kt_Pd.js → mentions-DwnO1hh4.js} +34 -35
  325. package/dist/{mentions-Cl0Kt_Pd.js.map → mentions-DwnO1hh4.js.map} +1 -1
  326. package/dist/{message-SZUNB1eX.js → message-YfFmbXNP.js} +5 -5
  327. package/dist/{message-SZUNB1eX.js.map → message-YfFmbXNP.js.map} +1 -1
  328. package/dist/{navigation-DyytsLRB.js → navigation-Cbp5V8gG.js} +33 -34
  329. package/dist/navigation-Cbp5V8gG.js.map +1 -0
  330. package/dist/{navigation-DnQSNMT0.js → navigation-Cs1npsPm.js} +111 -87
  331. package/dist/navigation-Cs1npsPm.js.map +1 -0
  332. package/dist/{navigation-row-recipes-DQEXQcqY.js → navigation-row-recipes-DlU-4QYO.js} +2 -2
  333. package/dist/{navigation-row-recipes-DQEXQcqY.js.map → navigation-row-recipes-DlU-4QYO.js.map} +1 -1
  334. package/dist/number-CKRBYmZK.js +352 -0
  335. package/dist/number-CKRBYmZK.js.map +1 -0
  336. package/dist/overlay.recipes-CNO2S9V6.js +34 -0
  337. package/dist/overlay.recipes-CNO2S9V6.js.map +1 -0
  338. package/dist/overlays-DhZO7N-I.js +994 -0
  339. package/dist/overlays-DhZO7N-I.js.map +1 -0
  340. package/dist/page-C6R_8jFt.js +325 -0
  341. package/dist/page-C6R_8jFt.js.map +1 -0
  342. package/dist/{page-header-D8nERkn5.js → page-header-hUTzcRZX.js} +9 -9
  343. package/dist/page-header-hUTzcRZX.js.map +1 -0
  344. package/dist/{pagination-NLGqRirf.js → pagination-Cm0jqa3I.js} +8 -8
  345. package/dist/{pagination-NLGqRirf.js.map → pagination-Cm0jqa3I.js.map} +1 -1
  346. package/dist/{popover-CghIYdQf.js → popover-Dcv_9jxr.js} +6 -6
  347. package/dist/{popover-CghIYdQf.js.map → popover-Dcv_9jxr.js.map} +1 -1
  348. package/dist/{popover-menu-B4PoWhRl.js → popover-menu-DnRFKnHP.js} +6 -6
  349. package/dist/{popover-menu-B4PoWhRl.js.map → popover-menu-DnRFKnHP.js.map} +1 -1
  350. package/dist/{popover.recipes-QlD4JenO.js → popover.recipes-wmbvL8Ah.js} +2 -2
  351. package/dist/{popover.recipes-QlD4JenO.js.map → popover.recipes-wmbvL8Ah.js.map} +1 -1
  352. package/dist/primitives-BHrwQXFC.js +379 -0
  353. package/dist/primitives-BHrwQXFC.js.map +1 -0
  354. package/dist/primitives.js +5 -5
  355. package/dist/{progress-BroqrAyV.js → progress-Br9WTFya.js} +7 -7
  356. package/dist/progress-Br9WTFya.js.map +1 -0
  357. package/dist/{receipt-BuJynLgf.js → receipt-CV89q1fs.js} +6 -6
  358. package/dist/{receipt-BuJynLgf.js.map → receipt-CV89q1fs.js.map} +1 -1
  359. package/dist/{rich-text-editor-BKyG7rWz.js → rich-text-editor-CF8QYt5p.js} +6 -6
  360. package/dist/{rich-text-editor-BKyG7rWz.js.map → rich-text-editor-CF8QYt5p.js.map} +1 -1
  361. package/dist/{rich-text-editor.recipes-B72Nfuze.js → rich-text-editor.recipes-CnrbmTS1.js} +4 -4
  362. package/dist/{rich-text-editor.recipes-B72Nfuze.js.map → rich-text-editor.recipes-CnrbmTS1.js.map} +1 -1
  363. package/dist/{rich-text-DlxDOtf4.js → rich-text-j-FGAeZW.js} +4 -4
  364. package/dist/{rich-text-DlxDOtf4.js.map → rich-text-j-FGAeZW.js.map} +1 -1
  365. package/dist/{scroll-area-D-pIhEKl.js → scroll-area-DRdr16Pt.js} +3 -3
  366. package/dist/scroll-area-DRdr16Pt.js.map +1 -0
  367. package/dist/{separator-BhtFyo4x.js → separator-BMEvwnSX.js} +2 -2
  368. package/dist/{separator-BhtFyo4x.js.map → separator-BMEvwnSX.js.map} +1 -1
  369. package/dist/{separator-BNIgG3au.js → separator-Do5GWDYi.js} +4 -4
  370. package/dist/separator-Do5GWDYi.js.map +1 -0
  371. package/dist/services/actions/action-adapters.d.ts +4 -0
  372. package/dist/services/actions.js +8 -3
  373. package/dist/services/actions.js.map +1 -1
  374. package/dist/{settings-DOTOzeZ2.js → settings-DHk0L2MF.js} +17 -17
  375. package/dist/settings-DHk0L2MF.js.map +1 -0
  376. package/dist/sheet-DRFNY1_D.js +207 -0
  377. package/dist/sheet-DRFNY1_D.js.map +1 -0
  378. package/dist/sidebar-Cb8WzOvE.js +511 -0
  379. package/dist/sidebar-Cb8WzOvE.js.map +1 -0
  380. package/dist/{sidebar-CyR4XKwR.js → sidebar-Crc9M9JV.js} +18 -18
  381. package/dist/sidebar-Crc9M9JV.js.map +1 -0
  382. package/dist/{skeleton-3F0uhYn3.js → skeleton-DVMXr15h.js} +4 -4
  383. package/dist/{skeleton-3F0uhYn3.js.map → skeleton-DVMXr15h.js.map} +1 -1
  384. package/dist/{smart-card-DjGVV2xr.js → smart-card-Bek-TwUp.js} +222 -207
  385. package/dist/smart-card-Bek-TwUp.js.map +1 -0
  386. package/dist/{spinner-Cpf7oRkF.js → spinner-CmTAbEp0.js} +8 -6
  387. package/dist/spinner-CmTAbEp0.js.map +1 -0
  388. package/dist/{structure-CRdqVawd.js → structure-hzCW-XsV.js} +3 -3
  389. package/dist/{structure-CRdqVawd.js.map → structure-hzCW-XsV.js.map} +1 -1
  390. package/dist/{structure.recipes-Bqhf9oIh.js → structure.recipes-EPz60cU8.js} +37 -19
  391. package/dist/structure.recipes-EPz60cU8.js.map +1 -0
  392. package/dist/style.css +1 -1
  393. package/dist/surface-recipes-DOdoBXGm.js +28 -0
  394. package/dist/surface-recipes-DOdoBXGm.js.map +1 -0
  395. package/dist/table-D6zKeYQX.js +162 -0
  396. package/dist/table-D6zKeYQX.js.map +1 -0
  397. package/dist/{table-CcRDZiLP.js → table-Dn4XSrSB.js} +348 -348
  398. package/dist/table-Dn4XSrSB.js.map +1 -0
  399. package/dist/{tabs-BNgu7g0u.js → tabs-Dk8E_knt.js} +14 -13
  400. package/dist/tabs-Dk8E_knt.js.map +1 -0
  401. package/dist/{text-inputs-DsR56TR-.js → text-inputs-BFpku0Qd.js} +150 -149
  402. package/dist/text-inputs-BFpku0Qd.js.map +1 -0
  403. package/dist/{text.styles-Q4sGAIgA.js → text.styles-g4He6UIW.js} +17 -14
  404. package/dist/text.styles-g4He6UIW.js.map +1 -0
  405. package/dist/theme.css +16 -12
  406. package/dist/themes/green.css +24 -0
  407. package/dist/{timelines-D1pkt3se.js → timelines-CxuAFIc2.js} +25 -38
  408. package/dist/timelines-CxuAFIc2.js.map +1 -0
  409. package/dist/track-recipes-CDcKmndW.js +10 -0
  410. package/dist/track-recipes-CDcKmndW.js.map +1 -0
  411. package/dist/{tree-BtmYyMZV.js → tree-BotPlyiD.js} +13 -13
  412. package/dist/{tree-BtmYyMZV.js.map → tree-BotPlyiD.js.map} +1 -1
  413. package/dist/typography/rich-text.js +1 -1
  414. package/dist/typography-CAr3dQhX.js +116 -0
  415. package/dist/typography-CAr3dQhX.js.map +1 -0
  416. package/dist/typography.js +2 -2
  417. package/dist/{ui-provider-DRPn3qNl.js → ui-provider-D2_TeLqw.js} +20 -21
  418. package/dist/ui-provider-D2_TeLqw.js.map +1 -0
  419. package/dist/ui-provider.js +1 -1
  420. package/dist/{upload-CDbYw1WN.js → upload-B0WHW7ak.js} +221 -220
  421. package/dist/upload-B0WHW7ak.js.map +1 -0
  422. package/dist/{upload-queue-CNd_hH_a.js → upload-queue-BHZ_wBfd.js} +59 -62
  423. package/dist/upload-queue-BHZ_wBfd.js.map +1 -0
  424. package/dist/{usage-card-VyJLUwRr.js → usage-card-U0YBLTNT.js} +42 -43
  425. package/dist/{usage-card-VyJLUwRr.js.map → usage-card-U0YBLTNT.js.map} +1 -1
  426. package/dist/{utils-BvH9PSmq.js → utils-Cospvlj1.js} +221 -51
  427. package/dist/utils-Cospvlj1.js.map +1 -0
  428. package/dist/value-inputs-CjfzGMsN.js +854 -0
  429. package/dist/value-inputs-CjfzGMsN.js.map +1 -0
  430. package/dist/value-typography-Deb3yQZg.js +116 -0
  431. package/dist/value-typography-Deb3yQZg.js.map +1 -0
  432. package/dist/{workspace-CcR8r-Nt.js → workspace-YoFjXi6i.js} +44 -45
  433. package/dist/workspace-YoFjXi6i.js.map +1 -0
  434. package/docs/consumer-skill/SKILL.md +51 -38
  435. package/docs/consumer-skill/examples/app-layout.tsx +2 -4
  436. package/docs/consumer-skill/examples/detail.tsx +3 -4
  437. package/docs/consumer-skill/examples/edit.tsx +1 -1
  438. package/docs/consumer-skill/examples/layout-blocks.tsx +20 -0
  439. package/docs/consumer-skill/examples/manifest.json +28 -6
  440. package/docs/consumer-skill/examples/scoped-directory.tsx +2 -2
  441. package/docs/consumer-skill/references/composition.md +89 -17
  442. package/docs/consumer-skill/references/discovery.md +4 -0
  443. package/docs/consumer-skill/references/installation.md +22 -0
  444. package/docs/consumer-skill/references/integration.md +32 -1
  445. package/docs/consumer-skill/references/public-api.json +111 -70
  446. package/docs/consumer-skill/references/review.md +20 -4
  447. package/docs/consumer-skill/references/theming.md +7 -1
  448. package/docs/consumer-skill/references/tokens.json +5 -2
  449. package/docs/consumer-skill/references/workflows.md +4 -2
  450. package/docs/consumer-skill/scripts/composition-policy.mjs +93 -2
  451. package/docs/consumer-skill/scripts/discovery.mjs +11 -3
  452. package/docs/consumer-skill/scripts/pin-button-defaults.mjs +95 -0
  453. package/package.json +5 -3
  454. package/dist/accordion-BRTcsp8J.js.map +0 -1
  455. package/dist/action-menu-Drxw_vJk.js +0 -265
  456. package/dist/action-menu-Drxw_vJk.js.map +0 -1
  457. package/dist/affordance-geometry.generated-CL84ZN9A.js.map +0 -1
  458. package/dist/ai-artifact-DLVdK0Py.js.map +0 -1
  459. package/dist/avatar-Bu2HhitA.js.map +0 -1
  460. package/dist/badge-CzId1Wlm.js.map +0 -1
  461. package/dist/button-BZDasD04.js.map +0 -1
  462. package/dist/buttons-D_6KJvEE.js.map +0 -1
  463. package/dist/chart-Bsc5BICK.js.map +0 -1
  464. package/dist/checkbox-BQNDjUCh.js +0 -34
  465. package/dist/checkbox-BQNDjUCh.js.map +0 -1
  466. package/dist/choice-inputs-Mk3iWbhr.js +0 -725
  467. package/dist/choice-inputs-Mk3iWbhr.js.map +0 -1
  468. package/dist/combobox-BFnbJJp3.js.map +0 -1
  469. package/dist/combobox-hozNwUcc.js.map +0 -1
  470. package/dist/command-BnmSchli.js.map +0 -1
  471. package/dist/comments-u5L0OGip.js.map +0 -1
  472. package/dist/data-display-Bihs9Ven.js.map +0 -1
  473. package/dist/date-DOKhJPu7.js +0 -140
  474. package/dist/date-DOKhJPu7.js.map +0 -1
  475. package/dist/date-picker-DzP5HQq7.js +0 -1541
  476. package/dist/date-picker-DzP5HQq7.js.map +0 -1
  477. package/dist/date-pickers-BpgGz7S-.js +0 -196
  478. package/dist/date-pickers-BpgGz7S-.js.map +0 -1
  479. package/dist/display-CS6Hbk18.js.map +0 -1
  480. package/dist/dropdown-menu-D-boNgGO.js.map +0 -1
  481. package/dist/feedback-CJkUAapr.js.map +0 -1
  482. package/dist/field-affordance-recipes-uKY4MsZ_.js +0 -25
  483. package/dist/field-affordance-recipes-uKY4MsZ_.js.map +0 -1
  484. package/dist/field-state-recipes-DQQpiLWC.js.map +0 -1
  485. package/dist/filters-D6FF8L6s.js.map +0 -1
  486. package/dist/form-sizing-QP8aIRaW.js +0 -103
  487. package/dist/form-sizing-QP8aIRaW.js.map +0 -1
  488. package/dist/format-iamDSqs2.js +0 -110
  489. package/dist/format-iamDSqs2.js.map +0 -1
  490. package/dist/forms-B5NCbkSC.js.map +0 -1
  491. package/dist/forms-numeric-Crrm80Lm.js +0 -867
  492. package/dist/forms-numeric-Crrm80Lm.js.map +0 -1
  493. package/dist/header-kxruN3RM.js.map +0 -1
  494. package/dist/input-SX9V0AL3.js +0 -255
  495. package/dist/item-DE4YnuJx.js +0 -258
  496. package/dist/item-DE4YnuJx.js.map +0 -1
  497. package/dist/media-gallery-DLp3HAz0.js.map +0 -1
  498. package/dist/navigation-DnQSNMT0.js.map +0 -1
  499. package/dist/navigation-DyytsLRB.js.map +0 -1
  500. package/dist/number-DasMFWEG.js +0 -269
  501. package/dist/number-DasMFWEG.js.map +0 -1
  502. package/dist/overlay.recipes-BxW5FIfK.js +0 -6
  503. package/dist/overlay.recipes-BxW5FIfK.js.map +0 -1
  504. package/dist/overlays-DUbs1KEi.js +0 -1011
  505. package/dist/overlays-DUbs1KEi.js.map +0 -1
  506. package/dist/page-hGmT4nWK.js +0 -213
  507. package/dist/page-hGmT4nWK.js.map +0 -1
  508. package/dist/page-header-D8nERkn5.js.map +0 -1
  509. package/dist/primitives-C7ff0QaI.js +0 -337
  510. package/dist/primitives-C7ff0QaI.js.map +0 -1
  511. package/dist/progress-BroqrAyV.js.map +0 -1
  512. package/dist/scroll-area-D-pIhEKl.js.map +0 -1
  513. package/dist/separator-BNIgG3au.js.map +0 -1
  514. package/dist/settings-DOTOzeZ2.js.map +0 -1
  515. package/dist/sheet-BFhrNehm.js +0 -205
  516. package/dist/sheet-BFhrNehm.js.map +0 -1
  517. package/dist/sidebar-CyR4XKwR.js.map +0 -1
  518. package/dist/sidebar-SvGJ0Zwi.js +0 -506
  519. package/dist/sidebar-SvGJ0Zwi.js.map +0 -1
  520. package/dist/smart-card-DjGVV2xr.js.map +0 -1
  521. package/dist/spinner-Cpf7oRkF.js.map +0 -1
  522. package/dist/structure.recipes-Bqhf9oIh.js.map +0 -1
  523. package/dist/surface-recipes-Dd__PD-w.js +0 -28
  524. package/dist/surface-recipes-Dd__PD-w.js.map +0 -1
  525. package/dist/table-CLtJTxoR.js +0 -147
  526. package/dist/table-CLtJTxoR.js.map +0 -1
  527. package/dist/table-CcRDZiLP.js.map +0 -1
  528. package/dist/tabs-BNgu7g0u.js.map +0 -1
  529. package/dist/text-inputs-DsR56TR-.js.map +0 -1
  530. package/dist/text.styles-Q4sGAIgA.js.map +0 -1
  531. package/dist/timelines-D1pkt3se.js.map +0 -1
  532. package/dist/track-recipes-LLPNVwFg.js +0 -10
  533. package/dist/track-recipes-LLPNVwFg.js.map +0 -1
  534. package/dist/typography-BxQgiZyw.js +0 -96
  535. package/dist/typography-BxQgiZyw.js.map +0 -1
  536. package/dist/ui-provider-DRPn3qNl.js.map +0 -1
  537. package/dist/upload-CDbYw1WN.js.map +0 -1
  538. package/dist/upload-queue-CNd_hH_a.js.map +0 -1
  539. package/dist/utils-BvH9PSmq.js.map +0 -1
  540. package/dist/value-inputs-D0KCrfVC.js +0 -840
  541. package/dist/value-inputs-D0KCrfVC.js.map +0 -1
  542. package/dist/workspace-CcR8r-Nt.js.map +0 -1
@@ -1,24 +1,24 @@
1
1
  "use client";
2
- import { _ as e, s as t } from "./ui-provider-DRPn3qNl.js";
2
+ import { _ as e, s as t } from "./ui-provider-D2_TeLqw.js";
3
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";
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";
19
+ import { Combobox as H } from "@base-ui/react/combobox";
20
20
  //#region src/components/features/combobox/combobox.strings.ts
21
- var V = {
21
+ var U = {
22
22
  placeholder: "Search...",
23
23
  clear: "Clear selection",
24
24
  toggle: "Open options",
@@ -30,21 +30,21 @@ var V = {
30
30
  loadingMore: "Loading...",
31
31
  apply: "Apply",
32
32
  cancel: "Cancel"
33
- }, H = Symbol("combobox-create-option");
34
- function U(e) {
35
- return typeof e == "object" && !!e && H in e;
33
+ }, W = Symbol("combobox-create-option");
34
+ function G(e) {
35
+ return typeof e == "object" && !!e && W in e;
36
36
  }
37
- function W(e) {
38
- if (!U(e)) throw Error("Item is not a create option");
39
- return e[H];
37
+ function K(e) {
38
+ if (!G(e)) throw Error("Item is not a create option");
39
+ return e[W];
40
40
  }
41
- function ne(e) {
42
- return { [H]: e };
41
+ function te(e) {
42
+ return { [W]: e };
43
43
  }
44
44
  //#endregion
45
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, {
46
+ function q({ loading: e, text: t, className: n }) {
47
+ return e ? /* @__PURE__ */ R(s, {
48
48
  direction: "horizontal",
49
49
  gap: "sm",
50
50
  justify: "center",
@@ -52,10 +52,10 @@ function re({ loading: e, text: t, className: n }) {
52
52
  className: r("loading-more--component", "px-control py-space-xs text-xs text-muted-foreground", n),
53
53
  role: "status",
54
54
  "aria-live": "polite",
55
- children: [/* @__PURE__ */ F(R, {
55
+ children: [/* @__PURE__ */ L(B, {
56
56
  className: "size-icon-sm animate-spin",
57
57
  "aria-hidden": "true"
58
- }), /* @__PURE__ */ F(i, {
58
+ }), /* @__PURE__ */ L(a, {
59
59
  tag: "span",
60
60
  size: "xs",
61
61
  type: "secondary",
@@ -64,11 +64,11 @@ function re({ loading: e, text: t, className: n }) {
64
64
  })]
65
65
  }) : null;
66
66
  }
67
- re.displayName = "LoadingMore";
67
+ q.displayName = "LoadingMore";
68
68
  //#endregion
69
69
  //#region src/components/features/combobox/components/status-content.tsx
70
- function G({ children: e }) {
71
- return /* @__PURE__ */ F(i, {
70
+ function J({ children: e }) {
71
+ return /* @__PURE__ */ L(a, {
72
72
  tag: "span",
73
73
  size: "inherit",
74
74
  type: "secondary",
@@ -76,51 +76,51 @@ function G({ children: e }) {
76
76
  children: e
77
77
  });
78
78
  }
79
- function K({ loading: e, searchValue: t, minSearchLength: n, itemCount: r, strings: i }) {
79
+ function Y({ loading: e, searchValue: t, minSearchLength: n, itemCount: r, strings: i }) {
80
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 });
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
83
  if (a.length < n) {
84
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 });
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 });
86
86
  }
87
87
  return null;
88
88
  }
89
- K.displayName = "StatusContent";
89
+ Y.displayName = "StatusContent";
90
90
  //#endregion
91
91
  //#region src/components/features/combobox/components/combobox-dropdown.tsx
92
- var ie = {
92
+ var X = {
93
93
  sm: "sm",
94
94
  md: "md",
95
95
  lg: "lg"
96
- }, q = {
96
+ }, Z = {
97
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
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
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
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, {
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
105
  anchor: N,
106
- className: L,
107
- children: /* @__PURE__ */ I(b, {
106
+ className: F,
107
+ children: /* @__PURE__ */ R(x, {
108
108
  "aria-busy": e || void 0,
109
109
  className: r("combobox-dropdown--popup"),
110
110
  children: [
111
- !!t && /* @__PURE__ */ F(u, {
111
+ !!t && /* @__PURE__ */ L(d, {
112
112
  className: "gap-space-sm px-control py-space-xs text-xs text-muted-foreground",
113
- children: /* @__PURE__ */ F(K, {
113
+ children: /* @__PURE__ */ L(Y, {
114
114
  loading: e,
115
115
  searchValue: c,
116
116
  minSearchLength: l,
117
- itemCount: f.length,
117
+ itemCount: u.length,
118
118
  strings: k
119
119
  })
120
120
  }),
121
- !!n && /* @__PURE__ */ F(g, {
122
- className: q[A],
123
- children: /* @__PURE__ */ F(i, {
121
+ !!n && /* @__PURE__ */ L(_, {
122
+ className: Z[A],
123
+ children: /* @__PURE__ */ L(a, {
124
124
  tag: "span",
125
125
  size: "inherit",
126
126
  type: "secondary",
@@ -128,46 +128,46 @@ function ae({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearch
128
128
  children: k.noResults
129
129
  })
130
130
  }),
131
- /* @__PURE__ */ F(D, {
131
+ /* @__PURE__ */ L(O, {
132
132
  viewportRef: M,
133
133
  className: "max-h-[min(20rem,var(--available-height))]",
134
- children: /* @__PURE__ */ F(C, {
134
+ children: /* @__PURE__ */ L(w, {
135
135
  className: "combobox-dropdown--list max-h-none overflow-visible",
136
- children: h ? /* @__PURE__ */ I(ee, { children: [Array.from(h.entries()).map(([e, t]) => {
136
+ children: p ? /* @__PURE__ */ R(I, { children: [Array.from(p.entries()).map(([e, t]) => {
137
137
  let n = typeof E == "function" ? E(e) : e;
138
- return /* @__PURE__ */ I(m, {
138
+ return /* @__PURE__ */ R(h, {
139
139
  className: "combobox-dropdown--group p-0",
140
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(_, {
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, {
142
142
  value: e,
143
- size: R,
143
+ size: z,
144
144
  disabled: T?.(e),
145
- children: x(e)
146
- }, w(e)) })]
145
+ children: y(e)
146
+ }, S(e)) })]
147
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(_, {
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, {
153
153
  value: e,
154
- size: R,
154
+ size: z,
155
155
  disabled: T?.(e),
156
- children: x(e)
157
- }, w(e)) })
156
+ children: y(e)
157
+ }, S(e)) })
158
158
  })
159
159
  }),
160
- /* @__PURE__ */ F(re, {
161
- loading: !!O,
160
+ /* @__PURE__ */ L(q, {
161
+ loading: !!D,
162
162
  text: k.loadingMore
163
163
  }),
164
- !!P && /* @__PURE__ */ I(s, {
164
+ !!P && /* @__PURE__ */ R(s, {
165
165
  direction: "horizontal",
166
166
  gap: "md",
167
167
  justify: "end",
168
168
  wrap: !1,
169
169
  className: "border-t border-border/60 px-control py-space-xs",
170
- children: [/* @__PURE__ */ F(o, {
170
+ children: [/* @__PURE__ */ L(o, {
171
171
  type: "button",
172
172
  tone: "secondary",
173
173
  buttonStyle: "ghost",
@@ -175,7 +175,7 @@ function ae({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearch
175
175
  e.preventDefault(), e.stopPropagation(), P.onCancel();
176
176
  },
177
177
  children: P.cancelLabel
178
- }), /* @__PURE__ */ F(o, {
178
+ }), /* @__PURE__ */ L(o, {
179
179
  type: "button",
180
180
  tone: "primary",
181
181
  onClick: (e) => {
@@ -187,16 +187,16 @@ function ae({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearch
187
187
  ]
188
188
  })
189
189
  });
190
- return j ? /* @__PURE__ */ F(d, {
190
+ return j ? /* @__PURE__ */ L(f, {
191
191
  container: j,
192
- children: z
193
- }) : /* @__PURE__ */ F(d, { children: z });
192
+ children: B
193
+ }) : /* @__PURE__ */ L(f, { children: B });
194
194
  }
195
- ae.displayName = "ComboboxDropdown";
195
+ ne.displayName = "ComboboxDropdown";
196
196
  //#endregion
197
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, {
198
+ function re({ error: e, size: t, className: n }) {
199
+ return e ? /* @__PURE__ */ L(a, {
200
200
  tag: "p",
201
201
  size: "xs",
202
202
  type: "error",
@@ -206,43 +206,43 @@ function oe({ error: e, size: t, className: n }) {
206
206
  children: e
207
207
  }) : null;
208
208
  }
209
- oe.displayName = "ErrorMessage";
209
+ re.displayName = "ErrorMessage";
210
210
  //#endregion
211
211
  //#region src/components/features/combobox/components/highlighted-text.tsx
212
- function J(e) {
212
+ function ie(e) {
213
213
  return e.replace(/[$()*+.?[\\\]^{|}]/g, "\\$&");
214
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, {
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
217
  tag: "span",
218
218
  size: "inherit",
219
219
  lineHeight: "tight",
220
220
  className: "text-inherit",
221
221
  children: e
222
222
  });
223
- let r = RegExp(`(${J(t)})`, "gi"), a = e.split(r), o = 0;
224
- return /* @__PURE__ */ F(i, {
223
+ let r = RegExp(`(${ie(t)})`, "gi"), i = e.split(r), o = 0;
224
+ return /* @__PURE__ */ L(a, {
225
225
  tag: "span",
226
226
  size: "inherit",
227
227
  lineHeight: "tight",
228
228
  className: "text-inherit",
229
- children: a.map((e, t) => {
229
+ children: i.map((e, t) => {
230
230
  let r = t % 2 == 1, i = String(o);
231
- return o += e.length, r ? /* @__PURE__ */ F("mark", {
231
+ return o += e.length, r ? /* @__PURE__ */ L("mark", {
232
232
  className: n,
233
233
  children: e
234
- }, i) : /* @__PURE__ */ F(k.Fragment, { children: e }, i);
234
+ }, i) : /* @__PURE__ */ L(A.Fragment, { children: e }, i);
235
235
  })
236
236
  });
237
237
  }
238
- Y.displayName = "HighlightedText";
238
+ ae.displayName = "HighlightedText";
239
239
  //#endregion
240
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) => {
241
+ function oe({ searchValue: e, onSearch: t, debounceMs: n = 300, minSearchLength: r = 3 }) {
242
+ let i = k((e) => {
243
243
  t?.(e);
244
244
  }, n);
245
- j(() => {
245
+ M(() => {
246
246
  let t = e.trim();
247
247
  if (!(t.length < r)) return i(t), i.cancel;
248
248
  }, [
@@ -253,8 +253,8 @@ function se({ searchValue: e, onSearch: t, debounceMs: n = 300, minSearchLength:
253
253
  }
254
254
  //#endregion
255
255
  //#region src/components/features/combobox/hooks/use-grouped-items.ts
256
- function ce({ items: e, getItemGroup: t }) {
257
- return M(() => {
256
+ function se({ items: e, getItemGroup: t }) {
257
+ return N(() => {
258
258
  if (!t) return null;
259
259
  let n = /* @__PURE__ */ new Map();
260
260
  for (let r of e) {
@@ -266,15 +266,15 @@ function ce({ items: e, getItemGroup: t }) {
266
266
  }
267
267
  //#endregion
268
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(() => {
269
+ function ce({ hasMore: e, onLoadMore: t, loadingMore: n }) {
270
+ let r = P(!1), i = P(null), a = k(() => {
271
271
  r.current = !0, t?.(), i.current && clearTimeout(i.current), i.current = setTimeout(() => {
272
272
  r.current = !1, i.current = null;
273
273
  }, 500);
274
274
  }, 100);
275
- return j(() => () => {
275
+ return M(() => () => {
276
276
  i.current && clearTimeout(i.current);
277
- }, []), { handleScroll: A((i) => {
277
+ }, []), { handleScroll: j((i) => {
278
278
  if (!e || !t || n || r.current) return;
279
279
  let { scrollHeight: o, scrollTop: s, clientHeight: c } = i.target;
280
280
  (s + c) / o >= .8 && a();
@@ -288,26 +288,26 @@ function X({ hasMore: e, onLoadMore: t, loadingMore: n }) {
288
288
  //#endregion
289
289
  //#region src/components/features/combobox/hooks/use-combobox-core.tsx
290
290
  function le(e) {
291
- return n(V, e);
291
+ return n(U, e);
292
292
  }
293
293
  function ue(e, t, n) {
294
294
  let r = t.toLowerCase();
295
295
  return e.some((e) => n(e).toLowerCase() === r);
296
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({
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({
300
300
  searchValue: t,
301
301
  onSearch: d,
302
302
  debounceMs: f,
303
303
  minSearchLength: c
304
304
  });
305
- let { handleScroll: E } = X({
305
+ let { handleScroll: E } = ce({
306
306
  hasMore: s && !T ? g : !1,
307
307
  onLoadMore: _,
308
308
  loadingMore: v
309
309
  });
310
- j(() => {
310
+ M(() => {
311
311
  let e = C.current;
312
312
  if (s && !T && e && g && _) return e.addEventListener("scroll", E), () => e.removeEventListener("scroll", E);
313
313
  }, [
@@ -317,7 +317,7 @@ function de({ items: e, searchValue: t, getItemLabel: n, getItemKey: a, loading:
317
317
  s,
318
318
  T
319
319
  ]);
320
- let D = M(() => {
320
+ let D = N(() => {
321
321
  if (!s || T) return [];
322
322
  if (b.length === 0) return e;
323
323
  let t = [...b];
@@ -331,10 +331,10 @@ function de({ items: e, searchValue: t, getItemLabel: n, getItemKey: a, loading:
331
331
  S,
332
332
  s,
333
333
  T
334
- ]), O = ce({
334
+ ]), O = se({
335
335
  items: D,
336
336
  getItemGroup: h
337
- }), k = M(() => !s || T || !p || !m || w.length < c ? !1 : !ue(D, w, n), [
337
+ }), k = N(() => !s || T || !p || !m || w.length < c ? !1 : !ue(D, w, n), [
338
338
  p,
339
339
  m,
340
340
  w,
@@ -343,41 +343,41 @@ function de({ items: e, searchValue: t, getItemLabel: n, getItemKey: a, loading:
343
343
  n,
344
344
  s,
345
345
  T
346
- ]), P = M(() => k ? ne(w) : null, [k, w]);
346
+ ]), A = N(() => k ? te(w) : null, [k, w]);
347
347
  return {
348
348
  strings: x,
349
349
  getKey: S,
350
350
  trimmedSearch: w,
351
351
  listRef: C,
352
352
  baseItems: D,
353
- allItems: M(() => P ? [...D, P] : D, [D, P]),
353
+ allItems: N(() => A ? [...D, A] : D, [D, A]),
354
354
  groupedItems: O,
355
- createOptionItem: P,
355
+ createOptionItem: A,
356
356
  showStatus: T,
357
357
  showEmpty: s && !o && w.length >= c && e.length === 0 && !k,
358
358
  showCreateOption: k,
359
- renderItemContent: A((e) => {
360
- if (U(e)) {
361
- let t = W(e);
362
- return /* @__PURE__ */ I("span", {
359
+ renderItemContent: j((e) => {
360
+ if (G(e)) {
361
+ let t = K(e);
362
+ return /* @__PURE__ */ R("span", {
363
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, {
364
+ children: [/* @__PURE__ */ L(ee, { className: "size-icon-sm" }), x.createNew.includes("{value}") ? /* @__PURE__ */ L(a, {
365
365
  tag: "span",
366
366
  size: "inherit",
367
367
  weight: "medium",
368
368
  lineHeight: "tight",
369
369
  className: "text-inherit",
370
370
  children: x.createNew.replace("{value}", t)
371
- }) : /* @__PURE__ */ I("span", {
371
+ }) : /* @__PURE__ */ R("span", {
372
372
  className: "inline-flex items-center gap-space-sm",
373
- children: [/* @__PURE__ */ F(i, {
373
+ children: [/* @__PURE__ */ L(a, {
374
374
  tag: "span",
375
375
  size: "inherit",
376
376
  weight: "medium",
377
377
  lineHeight: "tight",
378
378
  className: "text-inherit",
379
379
  children: x.createNew
380
- }), /* @__PURE__ */ F(i, {
380
+ }), /* @__PURE__ */ L(a, {
381
381
  tag: "span",
382
382
  size: "inherit",
383
383
  weight: "medium",
@@ -390,10 +390,10 @@ function de({ items: e, searchValue: t, getItemLabel: n, getItemKey: a, loading:
390
390
  }
391
391
  if (u) return u(e);
392
392
  let t = n(e);
393
- return y && w ? /* @__PURE__ */ F(Y, {
393
+ return y && w ? /* @__PURE__ */ L(ae, {
394
394
  text: t,
395
395
  highlight: w
396
- }) : /* @__PURE__ */ F(i, {
396
+ }) : /* @__PURE__ */ L(a, {
397
397
  tag: "span",
398
398
  size: "inherit",
399
399
  weight: "medium",
@@ -408,8 +408,8 @@ function de({ items: e, searchValue: t, getItemLabel: n, getItemKey: a, loading:
408
408
  y,
409
409
  w
410
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]),
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
413
  handleScroll: E
414
414
  };
415
415
  }
@@ -419,63 +419,59 @@ function fe(t, n) {
419
419
  return e(t, n, "md");
420
420
  }
421
421
  var pe = {
422
- sm: "pe-control-actions-sm",
423
- md: "pe-control-actions",
424
- lg: "pe-control-actions"
425
- }, me = {
426
422
  sm: "sm",
427
423
  md: "md",
428
424
  lg: "lg"
429
425
  };
430
- function he(e) {
426
+ function me(e) {
431
427
  return e;
432
428
  }
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", {
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", {
435
431
  className: "relative",
436
- children: [/* @__PURE__ */ F(B.Input, {
437
- render: /* @__PURE__ */ F(E, {
432
+ children: [/* @__PURE__ */ L(H.Input, {
433
+ render: /* @__PURE__ */ L(D, {
438
434
  size: i,
439
435
  invalid: a,
440
- className: r(u ? pe[i] : l.togglePadding, d)
436
+ className: r(d ? l.clearPadding[i] : l.padding[i], f)
441
437
  }),
442
438
  placeholder: e,
443
439
  "aria-invalid": a || void 0,
444
440
  "aria-required": s,
445
441
  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, {
442
+ 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, {
450
446
  type: "button",
451
447
  tone: "secondary",
452
448
  buttonStyle: "ghost",
453
449
  size: "sm",
454
450
  iconOnly: !0,
455
- className: r(l.target, l.focus, l.clear),
451
+ className: r(u.target, u.focus, u.clear),
456
452
  "aria-label": t,
457
- children: /* @__PURE__ */ F(te, {
458
- className: l.icon,
453
+ children: /* @__PURE__ */ L(V, {
454
+ className: u.icon,
459
455
  "aria-hidden": "true"
460
456
  })
461
- }) }) : null, /* @__PURE__ */ F(B.Trigger, { render: /* @__PURE__ */ F(o, {
457
+ }) }) : null, /* @__PURE__ */ L(H.Trigger, { render: /* @__PURE__ */ L(o, {
462
458
  type: "button",
463
459
  tone: "secondary",
464
460
  buttonStyle: "ghost",
465
461
  size: "sm",
466
462
  iconOnly: !0,
467
- className: r(l.target, l.focus, l.toggle),
463
+ className: r(u.target, u.focus, u.toggle),
468
464
  "aria-label": n,
469
- children: /* @__PURE__ */ F(L, {
470
- className: l.icon,
465
+ children: /* @__PURE__ */ L(z, {
466
+ className: r("shrink-0", l.icon[i]),
471
467
  "aria-hidden": "true"
472
468
  })
473
469
  }) })]
474
470
  })]
475
471
  });
476
472
  }
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({
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({
479
475
  items: e,
480
476
  searchValue: a,
481
477
  onSearchValueChange: o,
@@ -493,150 +489,172 @@ function _e({ items: e, selectedValue: n, onSelectedValueChange: r, clearSearchO
493
489
  getItemGroup: k,
494
490
  hasMore: M,
495
491
  onLoadMore: N,
496
- loadingMore: ee,
497
- highlightMatch: R,
498
- size: H,
492
+ loadingMore: P,
493
+ highlightMatch: z,
494
+ size: U,
499
495
  ensuredItems: n ? [n] : []
500
- }), [K, ie] = P(!1), q = A((e) => {
501
- ie(e), !e && i && o(""), B?.(e);
496
+ }), [J, Y] = F(!1), X = j((e) => {
497
+ Y(e), !e && i && o(""), V?.(e);
502
498
  }, [
503
499
  i,
504
- B,
500
+ V,
505
501
  o
506
- ]), J = K ? a : n ? G.itemToStringLabel(n) : "", Y = A((e) => {
507
- if (e && U(e)) {
508
- let t = W(e);
502
+ ]), Z = J ? a : n ? q.itemToStringLabel(n) : "", ie = j((e) => {
503
+ if (e && G(e)) {
504
+ let t = K(e);
509
505
  O?.(t);
510
506
  return;
511
507
  }
512
508
  r(e);
513
509
  }, [r, O]);
514
- return /* @__PURE__ */ I(s, {
510
+ return /* @__PURE__ */ R(s, {
515
511
  gap: "dense",
516
512
  className: "combobox--component",
517
- children: [/* @__PURE__ */ I(v, {
518
- items: G.allItems,
513
+ children: [/* @__PURE__ */ R(y, {
514
+ items: q.allItems,
519
515
  value: n,
520
- onValueChange: Y,
521
- inputValue: J,
522
- onInputValueChange: (e, { reason: t }) => {
523
- if (t === "item-press") {
516
+ onValueChange: (e, t) => {
517
+ if (t.reason === "escape-key") {
518
+ t.allowPropagation();
519
+ return;
520
+ }
521
+ ie(e);
522
+ },
523
+ inputValue: Z,
524
+ onInputValueChange: (e, t) => {
525
+ let { reason: n } = t;
526
+ if (n === "escape-key") {
527
+ t.allowPropagation();
528
+ return;
529
+ }
530
+ if (n === "item-press") {
524
531
  o("");
525
532
  return;
526
533
  }
527
534
  o(e);
528
535
  },
529
- itemToStringLabel: G.itemToStringLabel,
536
+ itemToStringLabel: q.itemToStringLabel,
530
537
  disabled: m,
531
538
  filter: null,
532
539
  name: b,
533
540
  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,
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,
540
547
  className: h,
541
- size: ne,
542
- error: re,
548
+ size: W,
549
+ error: te,
543
550
  required: C,
544
551
  disabled: m,
545
552
  clearable: g,
546
553
  onBlur: w
547
- }), /* @__PURE__ */ F(ae, {
554
+ }), /* @__PURE__ */ L(ne, {
548
555
  loading: u,
549
- showStatus: G.showStatus,
550
- showEmpty: G.showEmpty,
556
+ showStatus: q.showStatus,
557
+ showEmpty: q.showEmpty,
551
558
  searchValue: a,
552
559
  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
560
+ items: q.allItems,
561
+ groupedItems: q.groupedItems,
562
+ createOptionItem: q.createOptionItem,
563
+ renderItemContent: q.renderItemContent,
564
+ getItemReactKey: q.getItemReactKey,
565
+ getItemDisabled: I,
566
+ renderGroupLabel: A,
567
+ loadingMore: d && !q.showStatus ? P : !1,
568
+ strings: q.strings,
569
+ size: U,
570
+ portalContainer: v,
571
+ listRef: q.listRef
565
572
  })]
566
- }), /* @__PURE__ */ F(oe, {
573
+ }), /* @__PURE__ */ L(re, {
567
574
  error: S,
568
- size: H
575
+ size: U
569
576
  })]
570
577
  });
571
578
  }
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({
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({
580
587
  items: e,
581
588
  searchValue: o,
582
589
  onSearchValueChange: c,
583
590
  getItemLabel: l,
584
591
  getItemKey: u,
585
592
  loading: d,
586
- showListContent: p,
593
+ showListContent: f,
587
594
  minSearchLength: m,
588
- strings: g,
595
+ strings: h,
589
596
  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,
597
+ 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
607
  ensuredItems: n
601
- }), Ce = A((e) => {
608
+ }), Ce = j((e) => {
602
609
  let t = [], n = null;
603
- for (let r of e) U(r) ? n = W(r) : t.push(r);
604
- n && R?.(n);
610
+ for (let r of e) G(r) ? n = K(r) : t.push(r);
611
+ n && z?.(n);
605
612
  let r = t.length !== e.length || !n ? t : null;
606
- r && (J ? Z(r) : a(r)), q && Q(!1);
613
+ r && (Z ? ve(r) : i(r)), X && Q(!1);
607
614
  }, [
608
- a,
609
- R,
610
- J,
611
- q,
615
+ i,
616
+ z,
617
+ Z,
618
+ X,
612
619
  Q
613
- ]), we = A(() => {
614
- J && a(ve), Y?.(), Q(!1);
620
+ ]), we = j(() => {
621
+ Z && i(_e), ie?.(), Q(!1);
615
622
  }, [
616
- J,
617
- ve,
618
- Y,
619
- a,
623
+ Z,
624
+ _e,
625
+ ie,
626
+ i,
620
627
  Q
621
- ]), Te = A(() => {
622
- J && Z(n), se?.(), Q(!1);
628
+ ]), Te = j(() => {
629
+ Z && ve(n), ae?.(), Q(!1);
623
630
  }, [
624
- J,
631
+ Z,
625
632
  n,
626
- se,
633
+ ae,
627
634
  Q
628
- ]), Ee = J ? ve : n, De = Ee.length > 0 ? void 0 : $.strings.placeholder;
629
- return /* @__PURE__ */ I(s, {
635
+ ]), Ee = Z ? _e : n, De = Ee.length > 0 ? void 0 : $.strings.placeholder;
636
+ return /* @__PURE__ */ R(s, {
630
637
  gap: "dense",
631
638
  className: "combobox--component",
632
- children: [/* @__PURE__ */ I(v, {
639
+ children: [/* @__PURE__ */ R(y, {
633
640
  items: $.allItems,
634
641
  multiple: !0,
635
642
  value: Ee,
636
- onValueChange: Ce,
643
+ onValueChange: (e, t) => {
644
+ if (t.reason === "escape-key") {
645
+ t.allowPropagation();
646
+ return;
647
+ }
648
+ Ce(e);
649
+ },
637
650
  inputValue: o,
638
- onInputValueChange: (e, { reason: t }) => {
639
- if (t === "item-press") {
651
+ onInputValueChange: (e, t) => {
652
+ let { reason: n } = t;
653
+ if (n === "escape-key") {
654
+ t.allowPropagation();
655
+ return;
656
+ }
657
+ if (n === "item-press") {
640
658
  c("");
641
659
  return;
642
660
  }
@@ -649,27 +667,27 @@ function ve({ items: e, selectedValues: n, onSelectedValuesChange: a, searchValu
649
667
  required: O,
650
668
  open: Se,
651
669
  onOpenChange: (e) => {
652
- !e && J && Z(n), Q(e);
670
+ !e && Z && ve(n), Q(e);
653
671
  },
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, {
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, {
660
678
  tag: "span",
661
679
  size: "inherit",
662
680
  weight: "medium",
663
681
  lineHeight: "tight",
664
682
  className: "combobox--chip-label text-inherit",
665
683
  children: l(e)
666
- }) }, _e(e))), /* @__PURE__ */ F(f, {
684
+ }) }, ge(e))), /* @__PURE__ */ L(p, {
667
685
  placeholder: De,
668
- "aria-invalid": pe || void 0,
686
+ "aria-invalid": ue || void 0,
669
687
  "aria-required": O,
670
688
  onBlur: k
671
689
  })]
672
- }), /* @__PURE__ */ F(ae, {
690
+ }), /* @__PURE__ */ L(ne, {
673
691
  loading: d,
674
692
  showStatus: $.showStatus,
675
693
  showEmpty: $.showEmpty,
@@ -680,107 +698,107 @@ function ve({ items: e, selectedValues: n, onSelectedValuesChange: a, searchValu
680
698
  createOptionItem: $.createOptionItem,
681
699
  renderItemContent: $.renderItemContent,
682
700
  getItemReactKey: $.getItemReactKey,
683
- getItemDisabled: ne,
684
- renderGroupLabel: te,
685
- loadingMore: p && !$.showStatus ? H : !1,
701
+ getItemDisabled: W,
702
+ renderGroupLabel: ee,
703
+ loadingMore: f && !$.showStatus ? U : !1,
686
704
  strings: $.strings,
687
- size: X,
688
- portalContainer: S,
705
+ size: se,
706
+ portalContainer: x,
689
707
  listRef: $.listRef,
690
- anchor: ge,
691
- applyFooter: p && J ? {
708
+ anchor: he,
709
+ applyFooter: f && Z ? {
692
710
  applyLabel: $.strings.apply,
693
711
  cancelLabel: $.strings.cancel,
694
712
  onApply: we,
695
713
  onCancel: Te
696
714
  } : void 0
697
715
  })]
698
- }), /* @__PURE__ */ F(oe, {
716
+ }), /* @__PURE__ */ L(re, {
699
717
  error: D,
700
- size: X
718
+ size: se
701
719
  })]
702
720
  });
703
721
  }
704
- _e.displayName = "Combobox", ve.displayName = "MultiCombobox";
722
+ ge.displayName = "Combobox", _e.displayName = "MultiCombobox";
705
723
  //#endregion
706
724
  //#region src/components/features/combobox/async-resource-combobox.tsx
707
- var Z = {
708
- ...V,
725
+ var ve = {
726
+ ...U,
709
727
  error: "Unable to load options.",
710
728
  retry: "Retry"
711
729
  };
712
730
  function ye(e) {
713
731
  return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
714
732
  }
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));
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));
721
739
  }).catch((e) => {
722
- n.signal?.aborted || G.current !== t || (B([]), W({
740
+ n.signal?.aborted || q.current !== t || (V([]), G({
723
741
  error: e,
724
742
  query: n.query
725
743
  }), u?.(e, n));
726
744
  }).finally(() => {
727
- !n.signal?.aborted && G.current === t && H(!1);
745
+ !n.signal?.aborted && q.current === t && U(!1);
728
746
  });
729
747
  }, _);
730
- j(() => {
748
+ M(() => {
731
749
  if (C) return;
732
- if (!(K.length > 0 ? K.length >= y : v)) {
733
- B([]), H(!1), W(null);
750
+ if (!(J.length > 0 ? J.length >= y : v)) {
751
+ V([]), U(!1), G(null);
734
752
  return;
735
753
  }
736
- let e = G.current + 1;
737
- G.current = e;
754
+ let e = q.current + 1;
755
+ q.current = e;
738
756
  let t = new AbortController();
739
- return q(e, {
740
- query: K,
757
+ return X(e, {
758
+ query: J,
741
759
  limit: g,
742
760
  signal: t.signal
743
761
  }), () => {
744
- q.cancel(), t.abort();
762
+ X.cancel(), t.abort();
745
763
  };
746
764
  }, [
747
765
  C,
748
766
  g,
749
767
  y,
750
768
  v,
751
- ne,
752
- q,
753
- K
769
+ K,
770
+ X,
771
+ J
754
772
  ]);
755
- let ae = A(() => {
756
- U && (z(U.query), re((e) => e + 1));
757
- }, [U]), oe = A((e) => {
773
+ let Z = j(() => {
774
+ W && (B(W.query), te((e) => e + 1));
775
+ }, [W]), ne = j((e) => {
758
776
  if (h) return h(e, {
759
- query: K,
760
- isSelected: L ? d(L) === d(e) : !1
777
+ query: J,
778
+ isSelected: I ? d(I) === d(e) : !1
761
779
  });
762
780
  let t = p?.(e), n = m?.(e);
763
- return /* @__PURE__ */ I(s, {
764
- render: /* @__PURE__ */ F("span", {}),
781
+ return /* @__PURE__ */ R(s, {
782
+ render: /* @__PURE__ */ L("span", {}),
765
783
  direction: "horizontal",
766
784
  gap: "md",
767
785
  wrap: !1,
768
786
  className: "async-resource-combobox--option leading-tight",
769
- children: [/* @__PURE__ */ F(i, {
787
+ children: [/* @__PURE__ */ L(a, {
770
788
  tag: "span",
771
789
  size: w === "sm" ? "pxs" : void 0,
772
790
  weight: "medium",
773
791
  className: "min-w-0 shrink truncate",
774
792
  children: f(e)
775
- }), (!!t || !!n) && /* @__PURE__ */ I("span", {
793
+ }), (!!t || !!n) && /* @__PURE__ */ R("span", {
776
794
  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, {
795
+ children: [!!t && (ye(t) ? /* @__PURE__ */ L(a, {
778
796
  tag: "span",
779
797
  size: "xs",
780
798
  type: "secondary",
781
799
  className: "min-w-0 truncate",
782
800
  children: t
783
- }) : t), !!n && (ye(n) ? /* @__PURE__ */ F(i, {
801
+ }) : t), !!n && (ye(n) ? /* @__PURE__ */ L(a, {
784
802
  tag: "span",
785
803
  size: "xs",
786
804
  type: "secondary",
@@ -795,53 +813,53 @@ function be({ fetcher: e, value: t, defaultValue: a = null, onValueChange: o, on
795
813
  f,
796
814
  m,
797
815
  h,
798
- L,
816
+ I,
799
817
  w,
800
- K
801
- ]), J = M(() => {
802
- if (U) return b ?? E.error;
818
+ J
819
+ ]), re = N(() => {
820
+ if (W) return b ?? E.error;
803
821
  }, [
804
822
  b,
805
- U,
823
+ W,
806
824
  E.error
807
- ]), Y = U !== null, se = U ? x?.({
808
- error: U.error,
809
- query: U.query,
810
- retry: ae
811
- }) ?? /* @__PURE__ */ F(c, {
825
+ ]), ie = W !== null, ae = W ? x?.({
826
+ error: W.error,
827
+ query: W.query,
828
+ retry: Z
829
+ }) ?? /* @__PURE__ */ L(c, {
812
830
  variant: "inline",
813
- title: J,
814
- onRetry: ae,
831
+ title: re,
832
+ onRetry: Z,
815
833
  retryLabel: E.retry,
816
834
  className: "async-resource-combobox--error mt-space-sm"
817
835
  }) : null;
818
- return /* @__PURE__ */ I("div", {
836
+ return /* @__PURE__ */ R("div", {
819
837
  "data-component": "async-resource-combobox",
820
838
  "data-slot": "async-resource-combobox",
821
839
  className: r("async-resource-combobox--component", T.className),
822
- children: [/* @__PURE__ */ F(_e, {
840
+ children: [/* @__PURE__ */ L(ge, {
823
841
  ...T,
824
842
  className: void 0,
825
843
  disabled: C,
826
844
  size: w,
827
- items: te,
828
- selectedValue: L ?? null,
829
- onSelectedValueChange: ie,
845
+ items: ee,
846
+ selectedValue: I ?? null,
847
+ onSelectedValueChange: Y,
830
848
  clearSearchOnClose: !1,
831
- searchValue: R,
832
- onSearchValueChange: z,
849
+ searchValue: z,
850
+ onSearchValueChange: B,
833
851
  getItemLabel: f,
834
852
  getItemKey: d,
835
- loading: !Y && V,
836
- showListContent: !Y,
853
+ loading: !ie && H,
854
+ showListContent: !ie,
837
855
  minSearchLength: y,
838
856
  strings: E,
839
- renderItem: oe
840
- }), se]
857
+ renderItem: ne
858
+ }), ae]
841
859
  });
842
860
  }
843
861
  be.displayName = "AsyncResourceCombobox";
844
862
  //#endregion
845
- export { de as a, ve as i, Z as n, V as o, _e as r, be as t };
863
+ export { de as a, _e as i, ve as n, U as o, ge as r, be as t };
846
864
 
847
- //# sourceMappingURL=combobox-hozNwUcc.js.map
865
+ //# sourceMappingURL=combobox-CB7039j7.js.map