themelia-react-ui 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (488) hide show
  1. package/CHANGELOG.md +137 -0
  2. package/README.md +59 -13
  3. package/dist/{accordion-B-5Focs8.js → accordion-BRTcsp8J.js} +8 -8
  4. package/dist/accordion-BRTcsp8J.js.map +1 -0
  5. package/dist/{action-menu-Cx3SdfbN.js → action-menu-Drxw_vJk.js} +36 -36
  6. package/dist/action-menu-Drxw_vJk.js.map +1 -0
  7. package/dist/affordance-geometry.generated-CL84ZN9A.js +63 -0
  8. package/dist/affordance-geometry.generated-CL84ZN9A.js.map +1 -0
  9. package/dist/{ai-artifact-B5tPpXnS.js → ai-artifact-DLVdK0Py.js} +151 -155
  10. package/dist/ai-artifact-DLVdK0Py.js.map +1 -0
  11. package/dist/{app-shell-at8Kt4l_.js → app-shell-C_fKpljx.js} +11 -10
  12. package/dist/app-shell-C_fKpljx.js.map +1 -0
  13. package/dist/{attachment-BO2R47wn.js → attachment-DbjUWsP0.js} +12 -12
  14. package/dist/{attachment-BO2R47wn.js.map → attachment-DbjUWsP0.js.map} +1 -1
  15. package/dist/auth-CAQcasMV.js +723 -0
  16. package/dist/auth-CAQcasMV.js.map +1 -0
  17. package/dist/{avatar-Bpzty83c.js → avatar-Bu2HhitA.js} +6 -6
  18. package/dist/{avatar-Bpzty83c.js.map → avatar-Bu2HhitA.js.map} +1 -1
  19. package/dist/{badge-BZXZT9wd.js → badge-CzId1Wlm.js} +4 -4
  20. package/dist/{badge-BZXZT9wd.js.map → badge-CzId1Wlm.js.map} +1 -1
  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 +3 -2
  27. package/dist/base/cards.js +3 -3
  28. package/dist/base/carousel.js +25 -27
  29. package/dist/base/carousel.js.map +1 -1
  30. package/dist/base/cascader.js +150 -148
  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 +3 -3
  39. package/dist/base/display.js +7 -7
  40. package/dist/base/feedback.js +4 -4
  41. package/dist/base/forms-numeric.js +1 -1
  42. package/dist/base/forms.js +2 -2
  43. package/dist/base/inline-edit.js +40 -43
  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 +1 -1
  51. package/dist/base/repeaters.js +33 -33
  52. package/dist/base/repeaters.js.map +1 -1
  53. package/dist/base/sheet.js +1 -1
  54. package/dist/base/sidebar.js +1 -1
  55. package/dist/base/signature-pad.js +83 -81
  56. package/dist/base/signature-pad.js.map +1 -1
  57. package/dist/base/skeleton.js +1 -1
  58. package/dist/base/spinner.js +1 -1
  59. package/dist/base/structure.js +1 -1
  60. package/dist/base/table.js +1 -1
  61. package/dist/base/text-inputs.js +2 -2
  62. package/dist/base/toaster.js +6 -6
  63. package/dist/base/toaster.js.map +1 -1
  64. package/dist/base/tree.js +1 -1
  65. package/dist/base/upload-queue.js +1 -1
  66. package/dist/base/upload.js +3 -3
  67. package/dist/base/value-inputs.js +1 -1
  68. package/dist/blocks/admin.js +134 -134
  69. package/dist/blocks/admin.js.map +1 -1
  70. package/dist/blocks/ai.js +120 -117
  71. package/dist/blocks/ai.js.map +1 -1
  72. package/dist/blocks/analytics/usage-card.js +1 -1
  73. package/dist/blocks/analytics.js +510 -472
  74. package/dist/blocks/analytics.js.map +1 -1
  75. package/dist/blocks/collaboration.js +2 -2
  76. package/dist/blocks/commerce/receipt.js +1 -1
  77. package/dist/blocks/commerce.js +395 -383
  78. package/dist/blocks/commerce.js.map +1 -1
  79. package/dist/blocks/data-display.js +1 -1
  80. package/dist/blocks/onboarding.js +6 -6
  81. package/dist/blocks/onboarding.js.map +1 -1
  82. package/dist/blocks/planning.js +36 -36
  83. package/dist/blocks/planning.js.map +1 -1
  84. package/dist/blocks/timelines.js +1 -1
  85. package/dist/{breadcrumbs-DdQ_I5ra.js → breadcrumbs-BuYz5SDU.js} +9 -8
  86. package/dist/breadcrumbs-BuYz5SDU.js.map +1 -0
  87. package/dist/button-BZDasD04.js +651 -0
  88. package/dist/button-BZDasD04.js.map +1 -0
  89. package/dist/{button-BS6l5JUw.js → button-BZyfTvwm.js} +3 -3
  90. package/dist/button-BZyfTvwm.js.map +1 -0
  91. package/dist/buttons-D_6KJvEE.js +99 -0
  92. package/dist/buttons-D_6KJvEE.js.map +1 -0
  93. package/dist/{cards-Cum56XOF.js → cards-qGSErLw_.js} +12 -12
  94. package/dist/{cards-Cum56XOF.js.map → cards-qGSErLw_.js.map} +1 -1
  95. package/dist/chart-Bsc5BICK.js +150 -0
  96. package/dist/chart-Bsc5BICK.js.map +1 -0
  97. package/dist/{checkbox-BavDRjF7.js → checkbox-BQNDjUCh.js} +3 -3
  98. package/dist/checkbox-BQNDjUCh.js.map +1 -0
  99. package/dist/choice-inputs-Mk3iWbhr.js +725 -0
  100. package/dist/choice-inputs-Mk3iWbhr.js.map +1 -0
  101. package/dist/{code-block-xHKbAJDj.js → code-block-DzHKRybS.js} +23 -23
  102. package/dist/code-block-DzHKRybS.js.map +1 -0
  103. package/dist/{collapsible-DsnktFNv.js → collapsible-ClvC7Bj3.js} +3 -3
  104. package/dist/{collapsible-DsnktFNv.js.map → collapsible-ClvC7Bj3.js.map} +1 -1
  105. package/dist/{collection-content-C4fthJV_.js → collection-content-D6S8cv_n.js} +3 -3
  106. package/dist/{collection-content-C4fthJV_.js.map → collection-content-D6S8cv_n.js.map} +1 -1
  107. package/dist/{combobox-DEbdr-3u.js → combobox-BFnbJJp3.js} +18 -18
  108. package/dist/combobox-BFnbJJp3.js.map +1 -0
  109. package/dist/{combobox-xv3yJbzl.js → combobox-hozNwUcc.js} +313 -316
  110. package/dist/combobox-hozNwUcc.js.map +1 -0
  111. package/dist/{command-C0xe7u9B.js → command-BnmSchli.js} +9 -9
  112. package/dist/command-BnmSchli.js.map +1 -0
  113. package/dist/comments-u5L0OGip.js +1156 -0
  114. package/dist/comments-u5L0OGip.js.map +1 -0
  115. package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
  116. package/dist/components/base/buttons/button.recipes.d.ts +10 -19
  117. package/dist/components/base/buttons/use-pending-button-focus.d.ts +3 -0
  118. package/dist/components/base/cards/card.recipes.d.ts +13 -5
  119. package/dist/components/base/cards/partials/card-primitives.d.ts +9 -4
  120. package/dist/components/base/cards/smart-card.types.d.ts +1 -1
  121. package/dist/components/base/date-pickers/date-picker.recipes.d.ts +5 -18
  122. package/dist/components/base/date-pickers/datepicker.types.d.ts +3 -0
  123. package/dist/components/base/forms/form-field.d.ts +1 -0
  124. package/dist/components/base/forms/form-sizing.d.ts +3 -3
  125. package/dist/components/base/navigation/tabs.d.ts +3 -5
  126. package/dist/components/base/popover/popover.recipes.d.ts +3 -3
  127. package/dist/components/base/table/index.d.ts +1 -1
  128. package/dist/components/base/text-inputs/clear-native-field.d.ts +2 -0
  129. package/dist/components/base/text-inputs/input-trailing-action.d.ts +3 -0
  130. package/dist/components/blocks/analytics/types.d.ts +1 -1
  131. package/dist/components/blocks/collaboration/message/message.recipes.d.ts +12 -0
  132. package/dist/components/blocks/data-display/empty-state/partials/illustrations/document-stack.d.ts +1 -4
  133. package/dist/components/blocks/data-display/empty-state/partials/illustrations/inbox-clean.d.ts +1 -4
  134. package/dist/components/blocks/data-display/empty-state/partials/illustrations/index.d.ts +3 -3
  135. package/dist/components/blocks/data-display/empty-state/partials/illustrations/stacked-cards.d.ts +1 -6
  136. package/dist/components/features/combobox/components/error-message.d.ts +1 -1
  137. package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +5 -0
  138. package/dist/components/features/filters/facets/search-facet.d.ts +0 -12
  139. package/dist/components/features/filters/facets/tags-facet.d.ts +1 -1
  140. package/dist/components/features/media-library/media-library.d.ts +1 -1
  141. package/dist/components/features/media-library/media-library.types.d.ts +9 -1
  142. package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
  143. package/dist/components/features/overlays/hooks/use-pending-overlay-focus.d.ts +2 -0
  144. package/dist/components/features/overlays/overlays.types.d.ts +5 -4
  145. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +2 -1
  146. package/dist/components/features/table/data-table.d.ts +1 -1
  147. package/dist/components/features/table/table.types.d.ts +1 -1
  148. package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +3 -1
  149. package/dist/components/layout/auth/auth.types.d.ts +1 -0
  150. package/dist/components/layout/page/page.d.ts +0 -1
  151. package/dist/components/layout/page/page.types.d.ts +9 -3
  152. package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -1
  153. package/dist/components/layout/sidebar/sidebar.types.d.ts +4 -0
  154. package/dist/components/layout/workspace/workspace.types.d.ts +3 -0
  155. package/dist/components/typography/heading.d.ts +5 -2
  156. package/dist/components/typography/index.d.ts +1 -1
  157. package/dist/components/typography/text.styles.d.ts +10 -0
  158. package/dist/components/ui/popover.d.ts +1 -1
  159. package/dist/components/ui/sidebar.d.ts +1 -1
  160. package/dist/components/ui/table.d.ts +2 -1
  161. package/dist/container.recipes-D9t8MHR3.js +27 -0
  162. package/dist/container.recipes-D9t8MHR3.js.map +1 -0
  163. package/dist/{containers-6s-ucRQQ.js → containers-DqB-bSYE.js} +33 -56
  164. package/dist/containers-DqB-bSYE.js.map +1 -0
  165. package/dist/control-group-recipes-DBXmfh2E.js +21 -0
  166. package/dist/control-group-recipes-DBXmfh2E.js.map +1 -0
  167. package/dist/{copyable-B7SBXJMr.js → copyable-BTSByfmq.js} +6 -6
  168. package/dist/{copyable-B7SBXJMr.js.map → copyable-BTSByfmq.js.map} +1 -1
  169. package/dist/{data-display-cWIRdeaf.js → data-display-Bihs9Ven.js} +545 -332
  170. package/dist/data-display-Bihs9Ven.js.map +1 -0
  171. package/dist/{date-BFNMnrS5.js → date-DOKhJPu7.js} +4 -4
  172. package/dist/{date-BFNMnrS5.js.map → date-DOKhJPu7.js.map} +1 -1
  173. package/dist/{date-picker-CA6ogMQB.js → date-picker-DzP5HQq7.js} +492 -472
  174. package/dist/date-picker-DzP5HQq7.js.map +1 -0
  175. package/dist/date-pickers-BpgGz7S-.js +196 -0
  176. package/dist/date-pickers-BpgGz7S-.js.map +1 -0
  177. package/dist/{display-CFM5myut.js → display-CS6Hbk18.js} +8 -8
  178. package/dist/{display-CFM5myut.js.map → display-CS6Hbk18.js.map} +1 -1
  179. package/dist/{dropdown-menu-BlnyHr-9.js → dropdown-menu-D-boNgGO.js} +7 -7
  180. package/dist/{dropdown-menu-BlnyHr-9.js.map → dropdown-menu-D-boNgGO.js.map} +1 -1
  181. package/dist/features/activities.js +152 -141
  182. package/dist/features/activities.js.map +1 -1
  183. package/dist/features/ai-chat.js +182 -179
  184. package/dist/features/ai-chat.js.map +1 -1
  185. package/dist/features/async-preview.js +9 -9
  186. package/dist/features/async-preview.js.map +1 -1
  187. package/dist/features/combobox.js +1 -1
  188. package/dist/features/comments.js +1 -1
  189. package/dist/features/data-view.js +25 -23
  190. package/dist/features/data-view.js.map +1 -1
  191. package/dist/features/email-composer/engine.js +1 -1
  192. package/dist/features/email-composer.js +103 -104
  193. package/dist/features/email-composer.js.map +1 -1
  194. package/dist/features/event-calendar.js +375 -373
  195. package/dist/features/event-calendar.js.map +1 -1
  196. package/dist/features/filters.js +1 -1
  197. package/dist/features/global-search.js +222 -224
  198. package/dist/features/global-search.js.map +1 -1
  199. package/dist/features/kanban.js +29 -29
  200. package/dist/features/kanban.js.map +1 -1
  201. package/dist/features/map.js +59 -58
  202. package/dist/features/map.js.map +1 -1
  203. package/dist/features/media-library.js +856 -855
  204. package/dist/features/media-library.js.map +1 -1
  205. package/dist/features/mentions.js +1 -1
  206. package/dist/features/overlays.js +1 -1
  207. package/dist/features/products.js +1209 -1209
  208. package/dist/features/products.js.map +1 -1
  209. package/dist/features/questionnaire.js +52 -52
  210. package/dist/features/questionnaire.js.map +1 -1
  211. package/dist/features/resource-assignment.js +29 -31
  212. package/dist/features/resource-assignment.js.map +1 -1
  213. package/dist/features/resource.js +13 -13
  214. package/dist/features/resource.js.map +1 -1
  215. package/dist/features/rich-text-editor.js +2 -2
  216. package/dist/features/schema-form.js +82 -82
  217. package/dist/features/schema-form.js.map +1 -1
  218. package/dist/features/suggestions.js +3 -3
  219. package/dist/features/sync.js +4 -4
  220. package/dist/features/sync.js.map +1 -1
  221. package/dist/features/table.js +1 -1
  222. package/dist/features/theme-tweaker.js +456 -450
  223. package/dist/features/theme-tweaker.js.map +1 -1
  224. package/dist/{feedback-DWUkgEjR.js → feedback-CJkUAapr.js} +29 -29
  225. package/dist/feedback-CJkUAapr.js.map +1 -0
  226. package/dist/field-affordance-recipes-uKY4MsZ_.js +25 -0
  227. package/dist/field-affordance-recipes-uKY4MsZ_.js.map +1 -0
  228. package/dist/{field-state-recipes-CBTRt9Bt.js → field-state-recipes-DQQpiLWC.js} +3 -3
  229. package/dist/field-state-recipes-DQQpiLWC.js.map +1 -0
  230. package/dist/{filters-BhsUtsxW.js → filters-D6FF8L6s.js} +715 -720
  231. package/dist/filters-D6FF8L6s.js.map +1 -0
  232. package/dist/{form-field-Bn7ZH1rA.js → form-field-CZwrkP7m.js} +17 -9
  233. package/dist/form-field-CZwrkP7m.js.map +1 -0
  234. package/dist/{form-sizing-BWs70_a2.js → form-sizing-QP8aIRaW.js} +8 -5
  235. package/dist/form-sizing-QP8aIRaW.js.map +1 -0
  236. package/dist/{forms-B7pzS25o.js → forms-B5NCbkSC.js} +35 -35
  237. package/dist/{forms-B7pzS25o.js.map → forms-B5NCbkSC.js.map} +1 -1
  238. package/dist/forms-numeric-Crrm80Lm.js +867 -0
  239. package/dist/forms-numeric-Crrm80Lm.js.map +1 -0
  240. package/dist/{header-C59QZyxV.js → header-kxruN3RM.js} +53 -49
  241. package/dist/header-kxruN3RM.js.map +1 -0
  242. package/dist/{hooks-CM1Vp9Pe.js → hooks-BrlnCwQd.js} +2 -2
  243. package/dist/{hooks-CM1Vp9Pe.js.map → hooks-BrlnCwQd.js.map} +1 -1
  244. package/dist/{http-CLTVJc5I.js → http-CdEIHyQf.js} +2 -2
  245. package/dist/http-CdEIHyQf.js.map +1 -0
  246. package/dist/{icon-badge-Dv0RYQwj.js → icon-badge-Btc6pQrp.js} +4 -4
  247. package/dist/{icon-badge-Dv0RYQwj.js.map → icon-badge-Btc6pQrp.js.map} +1 -1
  248. package/dist/index.js +2 -2
  249. package/dist/input-SX9V0AL3.js +255 -0
  250. package/dist/input-SX9V0AL3.js.map +1 -0
  251. package/dist/input-vxcaNCYC.js +20 -0
  252. package/dist/input-vxcaNCYC.js.map +1 -0
  253. package/dist/{item-pJ0GsOiJ.js → item-DE4YnuJx.js} +18 -17
  254. package/dist/item-DE4YnuJx.js.map +1 -0
  255. package/dist/layout/app-shell.js +1 -1
  256. package/dist/layout/auth.js +1 -1
  257. package/dist/layout/containers.js +1 -1
  258. package/dist/layout/header.js +1 -1
  259. package/dist/layout/hooks.js +1 -1
  260. package/dist/layout/navigation.js +1 -1
  261. package/dist/layout/page.js +1 -1
  262. package/dist/layout/settings.js +1 -1
  263. package/dist/layout/sidebar.js +2 -2
  264. package/dist/layout/workspace.js +1 -1
  265. package/dist/layout.js +10 -10
  266. package/dist/lib/affordance-geometry.generated.d.ts +40 -9
  267. package/dist/lib/control-group-recipes.d.ts +22 -0
  268. package/dist/lib/field-affordance-recipes.d.ts +35 -2
  269. package/dist/lib/field-state-recipes.d.ts +2 -2
  270. package/dist/lib/navigation-row-recipes.d.ts +3 -2
  271. package/dist/lib/overlay-anatomy-recipes.d.ts +1 -1
  272. package/dist/lib/surface-recipes.d.ts +5 -2
  273. package/dist/lib/token-merge.generated.d.ts +144 -2
  274. package/dist/lib/ui-provider/types.d.ts +4 -2
  275. package/dist/lib/use-prefers-reduced-motion.d.ts +2 -0
  276. package/dist/lib/utils.js +1 -1
  277. package/dist/{media-gallery-DhDRgnVZ.js → media-gallery-DLp3HAz0.js} +75 -74
  278. package/dist/media-gallery-DLp3HAz0.js.map +1 -0
  279. package/dist/{mentions-B8Ko-fhS.js → mentions-Cl0Kt_Pd.js} +52 -50
  280. package/dist/{mentions-B8Ko-fhS.js.map → mentions-Cl0Kt_Pd.js.map} +1 -1
  281. package/dist/message-SZUNB1eX.js +127 -0
  282. package/dist/message-SZUNB1eX.js.map +1 -0
  283. package/dist/{navigation-DBEu4POU.js → navigation-DnQSNMT0.js} +64 -55
  284. package/dist/navigation-DnQSNMT0.js.map +1 -0
  285. package/dist/{navigation-BUIn2Qxx.js → navigation-DyytsLRB.js} +37 -37
  286. package/dist/navigation-DyytsLRB.js.map +1 -0
  287. package/dist/{navigation-row-recipes-GVh11KiT.js → navigation-row-recipes-DQEXQcqY.js} +3 -3
  288. package/dist/navigation-row-recipes-DQEXQcqY.js.map +1 -0
  289. package/dist/{number-BNT_BIzJ.js → number-DasMFWEG.js} +4 -4
  290. package/dist/{number-BNT_BIzJ.js.map → number-DasMFWEG.js.map} +1 -1
  291. package/dist/overlays-DUbs1KEi.js +1011 -0
  292. package/dist/overlays-DUbs1KEi.js.map +1 -0
  293. package/dist/{page-BV6ioQg3.js → page-hGmT4nWK.js} +75 -64
  294. package/dist/page-hGmT4nWK.js.map +1 -0
  295. package/dist/{page-header-DQRa0jug.js → page-header-D8nERkn5.js} +9 -9
  296. package/dist/page-header-D8nERkn5.js.map +1 -0
  297. package/dist/{pagination-C29vvt3I.js → pagination-NLGqRirf.js} +20 -20
  298. package/dist/pagination-NLGqRirf.js.map +1 -0
  299. package/dist/{popover-CoLDEg19.js → popover-CghIYdQf.js} +23 -22
  300. package/dist/popover-CghIYdQf.js.map +1 -0
  301. package/dist/{popover-menu-GLIQTJTx.js → popover-menu-B4PoWhRl.js} +6 -6
  302. package/dist/{popover-menu-GLIQTJTx.js.map → popover-menu-B4PoWhRl.js.map} +1 -1
  303. package/dist/{popover.recipes-zgBhMlUu.js → popover.recipes-QlD4JenO.js} +5 -5
  304. package/dist/popover.recipes-QlD4JenO.js.map +1 -0
  305. package/dist/{primitives-DKPOGVpj.js → primitives-C7ff0QaI.js} +120 -113
  306. package/dist/primitives-C7ff0QaI.js.map +1 -0
  307. package/dist/primitives.js +3 -3
  308. package/dist/{progress-BOe8l_FZ.js → progress-BroqrAyV.js} +10 -9
  309. package/dist/progress-BroqrAyV.js.map +1 -0
  310. package/dist/{receipt-BM8xsGFy.js → receipt-BuJynLgf.js} +8 -8
  311. package/dist/{receipt-BM8xsGFy.js.map → receipt-BuJynLgf.js.map} +1 -1
  312. package/dist/{rich-text-B7sBAdDG.js → rich-text-DlxDOtf4.js} +4 -4
  313. package/dist/{rich-text-B7sBAdDG.js.map → rich-text-DlxDOtf4.js.map} +1 -1
  314. package/dist/rich-text-editor-BKyG7rWz.js +574 -0
  315. package/dist/rich-text-editor-BKyG7rWz.js.map +1 -0
  316. package/dist/{rich-text-editor.recipes-DxvOE0Lp.js → rich-text-editor.recipes-B72Nfuze.js} +35 -26
  317. package/dist/rich-text-editor.recipes-B72Nfuze.js.map +1 -0
  318. package/dist/{scroll-area-BheMQ270.js → scroll-area-D-pIhEKl.js} +3 -3
  319. package/dist/scroll-area-D-pIhEKl.js.map +1 -0
  320. package/dist/{separator-Gk_WXH-l.js → separator-BNIgG3au.js} +3 -3
  321. package/dist/{separator-Gk_WXH-l.js.map → separator-BNIgG3au.js.map} +1 -1
  322. package/dist/{separator-DO0EbCEm.js → separator-BhtFyo4x.js} +2 -2
  323. package/dist/{separator-DO0EbCEm.js.map → separator-BhtFyo4x.js.map} +1 -1
  324. package/dist/services/actions.js +1 -1
  325. package/dist/{settings-BnCyyPOJ.js → settings-DOTOzeZ2.js} +10 -9
  326. package/dist/{settings-BnCyyPOJ.js.map → settings-DOTOzeZ2.js.map} +1 -1
  327. package/dist/{sheet-B-q914Ad.js → sheet-BFhrNehm.js} +11 -11
  328. package/dist/sheet-BFhrNehm.js.map +1 -0
  329. package/dist/{sidebar-DPR7fmqN.js → sidebar-CyR4XKwR.js} +219 -200
  330. package/dist/sidebar-CyR4XKwR.js.map +1 -0
  331. package/dist/{sidebar-C_2p3Tfj.js → sidebar-SvGJ0Zwi.js} +63 -58
  332. package/dist/sidebar-SvGJ0Zwi.js.map +1 -0
  333. package/dist/{skeleton-CmT1ppqb.js → skeleton-3F0uhYn3.js} +4 -4
  334. package/dist/{skeleton-CmT1ppqb.js.map → skeleton-3F0uhYn3.js.map} +1 -1
  335. package/dist/{smart-card-CYLn46e6.js → smart-card-DjGVV2xr.js} +171 -165
  336. package/dist/smart-card-DjGVV2xr.js.map +1 -0
  337. package/dist/{spinner-BY9HbUEh.js → spinner-Cpf7oRkF.js} +5 -5
  338. package/dist/{spinner-BY9HbUEh.js.map → spinner-Cpf7oRkF.js.map} +1 -1
  339. package/dist/{structure-MvKVq-oL.js → structure-CRdqVawd.js} +2 -2
  340. package/dist/{structure-MvKVq-oL.js.map → structure-CRdqVawd.js.map} +1 -1
  341. package/dist/style.css +1 -1
  342. package/dist/{surface-recipes-CQfRr-VL.js → surface-recipes-Dd__PD-w.js} +4 -3
  343. package/dist/surface-recipes-Dd__PD-w.js.map +1 -0
  344. package/dist/{table-DnlAJ-xR.js → table-CLtJTxoR.js} +17 -16
  345. package/dist/table-CLtJTxoR.js.map +1 -0
  346. package/dist/table-CcRDZiLP.js +1444 -0
  347. package/dist/table-CcRDZiLP.js.map +1 -0
  348. package/dist/tabs-BNgu7g0u.js +188 -0
  349. package/dist/tabs-BNgu7g0u.js.map +1 -0
  350. package/dist/text-inputs-DsR56TR-.js +330 -0
  351. package/dist/text-inputs-DsR56TR-.js.map +1 -0
  352. package/dist/{text.styles-BwB7vAF2.js → text.styles-Q4sGAIgA.js} +18 -10
  353. package/dist/text.styles-Q4sGAIgA.js.map +1 -0
  354. package/dist/theme.css +77 -115
  355. package/dist/{timelines-B9ICkQcV.js → timelines-D1pkt3se.js} +84 -78
  356. package/dist/timelines-D1pkt3se.js.map +1 -0
  357. package/dist/{tree-BdWSaoFT.js → tree-BtmYyMZV.js} +8 -8
  358. package/dist/{tree-BdWSaoFT.js.map → tree-BtmYyMZV.js.map} +1 -1
  359. package/dist/typography/rich-text.js +1 -1
  360. package/dist/typography-BxQgiZyw.js +96 -0
  361. package/dist/typography-BxQgiZyw.js.map +1 -0
  362. package/dist/typography.js +1 -1
  363. package/dist/{ui-provider-CftIB6TY.js → ui-provider-DRPn3qNl.js} +3 -2
  364. package/dist/ui-provider-DRPn3qNl.js.map +1 -0
  365. package/dist/ui-provider.js +1 -1
  366. package/dist/{upload-D8Za5x_c.js → upload-CDbYw1WN.js} +326 -323
  367. package/dist/upload-CDbYw1WN.js.map +1 -0
  368. package/dist/{upload-queue-hIIYBLS7.js → upload-queue-CNd_hH_a.js} +25 -25
  369. package/dist/upload-queue-CNd_hH_a.js.map +1 -0
  370. package/dist/{usage-card-DnmnJ58D.js → usage-card-VyJLUwRr.js} +53 -54
  371. package/dist/usage-card-VyJLUwRr.js.map +1 -0
  372. package/dist/utils-BvH9PSmq.js +4275 -0
  373. package/dist/utils-BvH9PSmq.js.map +1 -0
  374. package/dist/value-inputs-D0KCrfVC.js +840 -0
  375. package/dist/value-inputs-D0KCrfVC.js.map +1 -0
  376. package/dist/{workspace-C1PZmk8L.js → workspace-CcR8r-Nt.js} +115 -122
  377. package/dist/workspace-CcR8r-Nt.js.map +1 -0
  378. package/docs/consumer-skill/SKILL.md +110 -119
  379. package/docs/consumer-skill/examples/analytics.tsx +34 -0
  380. package/docs/consumer-skill/examples/app-layout.tsx +42 -12
  381. package/docs/consumer-skill/examples/detail.tsx +20 -4
  382. package/docs/consumer-skill/examples/manifest.json +13 -1
  383. package/docs/consumer-skill/examples/website.tsx +56 -0
  384. package/docs/consumer-skill/references/analytics.md +70 -0
  385. package/docs/consumer-skill/references/composition.md +116 -2
  386. package/docs/consumer-skill/references/design-contract.md +33 -7
  387. package/docs/consumer-skill/references/discovery.md +76 -5
  388. package/docs/consumer-skill/references/integration.md +14 -0
  389. package/docs/consumer-skill/references/public-api.json +2023 -218
  390. package/docs/consumer-skill/references/review.md +55 -3
  391. package/docs/consumer-skill/references/theming.md +52 -7
  392. package/docs/consumer-skill/references/tokens.json +177 -9
  393. package/docs/consumer-skill/references/workflows.md +32 -0
  394. package/docs/consumer-skill/scripts/check-composition.mjs +1 -1
  395. package/docs/consumer-skill/scripts/composition-policy.mjs +179 -17
  396. package/docs/consumer-skill/scripts/discovery.mjs +61 -9
  397. package/docs/consumer-skill/scripts/surface-policy.mjs +44 -0
  398. package/package.json +7 -4
  399. package/dist/accordion-B-5Focs8.js.map +0 -1
  400. package/dist/action-menu-Cx3SdfbN.js.map +0 -1
  401. package/dist/affordance-geometry.generated-D8Jcfb0G.js +0 -32
  402. package/dist/affordance-geometry.generated-D8Jcfb0G.js.map +0 -1
  403. package/dist/ai-artifact-B5tPpXnS.js.map +0 -1
  404. package/dist/app-shell-at8Kt4l_.js.map +0 -1
  405. package/dist/auth-OFwWSAap.js +0 -704
  406. package/dist/auth-OFwWSAap.js.map +0 -1
  407. package/dist/breadcrumbs-DdQ_I5ra.js.map +0 -1
  408. package/dist/button-BS6l5JUw.js.map +0 -1
  409. package/dist/buttons-Co6GavvM.js +0 -674
  410. package/dist/buttons-Co6GavvM.js.map +0 -1
  411. package/dist/chart-DVfcwQu6.js +0 -149
  412. package/dist/chart-DVfcwQu6.js.map +0 -1
  413. package/dist/checkbox-BavDRjF7.js.map +0 -1
  414. package/dist/choice-inputs-CC7XqPQO.js +0 -619
  415. package/dist/choice-inputs-CC7XqPQO.js.map +0 -1
  416. package/dist/code-block-xHKbAJDj.js.map +0 -1
  417. package/dist/combobox-DEbdr-3u.js.map +0 -1
  418. package/dist/combobox-xv3yJbzl.js.map +0 -1
  419. package/dist/command-C0xe7u9B.js.map +0 -1
  420. package/dist/comments-DviPLnwy.js +0 -1132
  421. package/dist/comments-DviPLnwy.js.map +0 -1
  422. package/dist/containers-6s-ucRQQ.js.map +0 -1
  423. package/dist/data-display-cWIRdeaf.js.map +0 -1
  424. package/dist/date-picker-CA6ogMQB.js.map +0 -1
  425. package/dist/date-pickers-BPIKLdsD.js +0 -224
  426. package/dist/date-pickers-BPIKLdsD.js.map +0 -1
  427. package/dist/feedback-DWUkgEjR.js.map +0 -1
  428. package/dist/field-affordance-recipes-IjzPrCTw.js +0 -17
  429. package/dist/field-affordance-recipes-IjzPrCTw.js.map +0 -1
  430. package/dist/field-state-recipes-CBTRt9Bt.js.map +0 -1
  431. package/dist/filters-BhsUtsxW.js.map +0 -1
  432. package/dist/form-field-Bn7ZH1rA.js.map +0 -1
  433. package/dist/form-sizing-BWs70_a2.js.map +0 -1
  434. package/dist/forms-numeric-BUBxELBv.js +0 -867
  435. package/dist/forms-numeric-BUBxELBv.js.map +0 -1
  436. package/dist/header-C59QZyxV.js.map +0 -1
  437. package/dist/http-CLTVJc5I.js.map +0 -1
  438. package/dist/input-WwYQZJzG.js +0 -202
  439. package/dist/input-WwYQZJzG.js.map +0 -1
  440. package/dist/input-ci9fIgFH.js +0 -20
  441. package/dist/input-ci9fIgFH.js.map +0 -1
  442. package/dist/item-pJ0GsOiJ.js.map +0 -1
  443. package/dist/media-gallery-DhDRgnVZ.js.map +0 -1
  444. package/dist/message-COsdEvXT.js +0 -108
  445. package/dist/message-COsdEvXT.js.map +0 -1
  446. package/dist/navigation-BUIn2Qxx.js.map +0 -1
  447. package/dist/navigation-DBEu4POU.js.map +0 -1
  448. package/dist/navigation-row-recipes-GVh11KiT.js.map +0 -1
  449. package/dist/overlays-B11wZka6.js +0 -982
  450. package/dist/overlays-B11wZka6.js.map +0 -1
  451. package/dist/page-BV6ioQg3.js.map +0 -1
  452. package/dist/page-header-DQRa0jug.js.map +0 -1
  453. package/dist/pagination-C29vvt3I.js.map +0 -1
  454. package/dist/popover-CoLDEg19.js.map +0 -1
  455. package/dist/popover.recipes-zgBhMlUu.js.map +0 -1
  456. package/dist/primitives-DKPOGVpj.js.map +0 -1
  457. package/dist/progress-BOe8l_FZ.js.map +0 -1
  458. package/dist/rich-text-editor-CoVrTiSv.js +0 -575
  459. package/dist/rich-text-editor-CoVrTiSv.js.map +0 -1
  460. package/dist/rich-text-editor.recipes-DxvOE0Lp.js.map +0 -1
  461. package/dist/scroll-area-BheMQ270.js.map +0 -1
  462. package/dist/select-B2mb-qN2.js +0 -108
  463. package/dist/select-B2mb-qN2.js.map +0 -1
  464. package/dist/sheet-B-q914Ad.js.map +0 -1
  465. package/dist/sidebar-C_2p3Tfj.js.map +0 -1
  466. package/dist/sidebar-DPR7fmqN.js.map +0 -1
  467. package/dist/smart-card-CYLn46e6.js.map +0 -1
  468. package/dist/surface-recipes-CQfRr-VL.js.map +0 -1
  469. package/dist/table-BS39xnlq.js +0 -1424
  470. package/dist/table-BS39xnlq.js.map +0 -1
  471. package/dist/table-DnlAJ-xR.js.map +0 -1
  472. package/dist/tabs-B5cNMWiP.js +0 -187
  473. package/dist/tabs-B5cNMWiP.js.map +0 -1
  474. package/dist/text-inputs-Dh9XGyiS.js +0 -331
  475. package/dist/text-inputs-Dh9XGyiS.js.map +0 -1
  476. package/dist/text.styles-BwB7vAF2.js.map +0 -1
  477. package/dist/timelines-B9ICkQcV.js.map +0 -1
  478. package/dist/typography-Cv8MT-82.js +0 -96
  479. package/dist/typography-Cv8MT-82.js.map +0 -1
  480. package/dist/ui-provider-CftIB6TY.js.map +0 -1
  481. package/dist/upload-D8Za5x_c.js.map +0 -1
  482. package/dist/upload-queue-hIIYBLS7.js.map +0 -1
  483. package/dist/usage-card-DnmnJ58D.js.map +0 -1
  484. package/dist/utils-C2EKeIw3.js +0 -72
  485. package/dist/utils-C2EKeIw3.js.map +0 -1
  486. package/dist/value-inputs-DX2dbxjj.js +0 -824
  487. package/dist/value-inputs-DX2dbxjj.js.map +0 -1
  488. package/dist/workspace-C1PZmk8L.js.map +0 -1
@@ -1,24 +1,24 @@
1
1
  "use client";
2
- import { _ as e, s as t } from "./ui-provider-CftIB6TY.js";
2
+ import { _ as e, s as t } from "./ui-provider-DRPn3qNl.js";
3
3
  import { useStrings as n } from "./lib/strings.js";
4
- import { t as r } from "./utils-C2EKeIw3.js";
5
- import { n as i } from "./buttons-Co6GavvM.js";
6
- import { a, r as o } from "./typography-Cv8MT-82.js";
7
- import { t as s } from "./structure-MvKVq-oL.js";
8
- import { t as c } from "./feedback-DWUkgEjR.js";
9
- import { t as l } from "./field-affordance-recipes-IjzPrCTw.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-DEbdr-3u.js";
11
- import { c as w, l as T } from "./form-sizing-BWs70_a2.js";
12
- import { t as E } from "./input-WwYQZJzG.js";
13
- import { t as D } from "./scroll-area-BheMQ270.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
14
  import { t as O } from "./use-debounced-callback-Cx1h-hdv.js";
15
15
  import * as k from "react";
16
16
  import { useCallback as A, useEffect as j, useMemo as M, useRef as N, useState as P } from "react";
17
- import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
18
- import { ChevronDownIcon as R, Loader2 as z, PlusIcon as B, XIcon as ee } from "lucide-react";
19
- import { Combobox as V } from "@base-ui/react/combobox";
17
+ import { Fragment as ee, jsx as F, jsxs as I } from "react/jsx-runtime";
18
+ import { ChevronDownIcon as L, Loader2 as R, PlusIcon as z, XIcon as te } from "lucide-react";
19
+ import { Combobox as B } from "@base-ui/react/combobox";
20
20
  //#region src/components/features/combobox/combobox.strings.ts
21
- var H = {
21
+ var V = {
22
22
  placeholder: "Search...",
23
23
  clear: "Clear selection",
24
24
  toggle: "Open options",
@@ -30,21 +30,21 @@ var H = {
30
30
  loadingMore: "Loading...",
31
31
  apply: "Apply",
32
32
  cancel: "Cancel"
33
- }, U = Symbol("combobox-create-option");
34
- function W(e) {
35
- return typeof e == "object" && !!e && U in e;
33
+ }, H = Symbol("combobox-create-option");
34
+ function U(e) {
35
+ return typeof e == "object" && !!e && H in e;
36
36
  }
37
- function G(e) {
38
- if (!W(e)) throw Error("Item is not a create option");
39
- return e[U];
37
+ function W(e) {
38
+ if (!U(e)) throw Error("Item is not a create option");
39
+ return e[H];
40
40
  }
41
- function te(e) {
42
- return { [U]: e };
41
+ function ne(e) {
42
+ return { [H]: e };
43
43
  }
44
44
  //#endregion
45
45
  //#region src/components/features/combobox/components/loading-more.tsx
46
- function K({ loading: e, text: t, className: n }) {
47
- return e ? /* @__PURE__ */ L(s, {
46
+ function re({ loading: e, text: t, className: n }) {
47
+ return e ? /* @__PURE__ */ I(s, {
48
48
  direction: "horizontal",
49
49
  gap: "sm",
50
50
  justify: "center",
@@ -52,10 +52,10 @@ function K({ 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__ */ I(z, {
55
+ children: [/* @__PURE__ */ F(R, {
56
56
  className: "size-icon-sm animate-spin",
57
57
  "aria-hidden": "true"
58
- }), /* @__PURE__ */ I(a, {
58
+ }), /* @__PURE__ */ F(i, {
59
59
  tag: "span",
60
60
  size: "xs",
61
61
  type: "secondary",
@@ -64,11 +64,11 @@ function K({ loading: e, text: t, className: n }) {
64
64
  })]
65
65
  }) : null;
66
66
  }
67
- K.displayName = "LoadingMore";
67
+ re.displayName = "LoadingMore";
68
68
  //#endregion
69
69
  //#region src/components/features/combobox/components/status-content.tsx
70
- function q({ children: e }) {
71
- return /* @__PURE__ */ I(a, {
70
+ function G({ children: e }) {
71
+ return /* @__PURE__ */ F(i, {
72
72
  tag: "span",
73
73
  size: "inherit",
74
74
  type: "secondary",
@@ -76,41 +76,41 @@ function q({ children: e }) {
76
76
  children: e
77
77
  });
78
78
  }
79
- function J({ loading: e, searchValue: t, minSearchLength: n, itemCount: r, strings: i }) {
79
+ function K({ loading: e, searchValue: t, minSearchLength: n, itemCount: r, strings: i }) {
80
80
  let a = t.trim();
81
- if (e) return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(z, { className: "size-icon-sm animate-spin" }), /* @__PURE__ */ I(q, { children: i.searching })] });
82
- if (a === "") return i.typeToSearch.includes("{min}") ? /* @__PURE__ */ I(q, { children: i.typeToSearch.replace("{min}", String(n)) }) : /* @__PURE__ */ I(q, { children: i.typeToSearch });
81
+ if (e) return /* @__PURE__ */ I(ee, { children: [/* @__PURE__ */ F(R, { className: "size-icon-sm animate-spin" }), /* @__PURE__ */ F(G, { children: i.searching })] });
82
+ if (a === "") return i.typeToSearch.includes("{min}") ? /* @__PURE__ */ F(G, { children: i.typeToSearch.replace("{min}", String(n)) }) : /* @__PURE__ */ F(G, { children: i.typeToSearch });
83
83
  if (a.length < n) {
84
84
  let e = n - a.length;
85
- return i.typeMore.includes("{remaining}") || i.typeMore.includes("{s}") ? /* @__PURE__ */ I(q, { children: i.typeMore.replace("{remaining}", String(e)).replace("{s}", e === 1 ? "" : "s") }) : /* @__PURE__ */ I(q, { children: i.typeMore });
85
+ return i.typeMore.includes("{remaining}") || i.typeMore.includes("{s}") ? /* @__PURE__ */ F(G, { children: i.typeMore.replace("{remaining}", String(e)).replace("{s}", e === 1 ? "" : "s") }) : /* @__PURE__ */ F(G, { children: i.typeMore });
86
86
  }
87
87
  return null;
88
88
  }
89
- J.displayName = "StatusContent";
89
+ K.displayName = "StatusContent";
90
90
  //#endregion
91
91
  //#region src/components/features/combobox/components/combobox-dropdown.tsx
92
- var ne = {
92
+ var ie = {
93
93
  sm: "sm",
94
94
  md: "md",
95
95
  lg: "lg"
96
- }, Y = {
96
+ }, q = {
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 re({ 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 R = j == null ? void 0 : "z-[100]", z = ne[A];
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
103
  if (!(t || n || f.length > 0 || O || P)) return null;
104
- let B = /* @__PURE__ */ I(S, {
104
+ let z = /* @__PURE__ */ F(S, {
105
105
  anchor: N,
106
- className: R,
107
- children: /* @__PURE__ */ L(b, {
106
+ className: L,
107
+ children: /* @__PURE__ */ I(b, {
108
108
  "aria-busy": e || void 0,
109
109
  className: r("combobox-dropdown--popup"),
110
110
  children: [
111
- !!t && /* @__PURE__ */ I(u, {
111
+ !!t && /* @__PURE__ */ F(u, {
112
112
  className: "gap-space-sm px-control py-space-xs text-xs text-muted-foreground",
113
- children: /* @__PURE__ */ I(J, {
113
+ children: /* @__PURE__ */ F(K, {
114
114
  loading: e,
115
115
  searchValue: c,
116
116
  minSearchLength: l,
@@ -118,9 +118,9 @@ function re({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearch
118
118
  strings: k
119
119
  })
120
120
  }),
121
- !!n && /* @__PURE__ */ I(g, {
122
- className: Y[A],
123
- children: /* @__PURE__ */ I(a, {
121
+ !!n && /* @__PURE__ */ F(g, {
122
+ className: q[A],
123
+ children: /* @__PURE__ */ F(i, {
124
124
  tag: "span",
125
125
  size: "inherit",
126
126
  type: "secondary",
@@ -128,46 +128,46 @@ function re({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearch
128
128
  children: k.noResults
129
129
  })
130
130
  }),
131
- /* @__PURE__ */ I(D, {
131
+ /* @__PURE__ */ F(D, {
132
132
  viewportRef: M,
133
133
  className: "max-h-[min(20rem,var(--available-height))]",
134
- children: /* @__PURE__ */ I(C, {
134
+ children: /* @__PURE__ */ F(C, {
135
135
  className: "combobox-dropdown--list max-h-none overflow-visible",
136
- children: h ? /* @__PURE__ */ L(F, { children: [Array.from(h.entries()).map(([e, t]) => {
136
+ children: h ? /* @__PURE__ */ I(ee, { children: [Array.from(h.entries()).map(([e, t]) => {
137
137
  let n = typeof E == "function" ? E(e) : e;
138
- return /* @__PURE__ */ L(m, {
138
+ return /* @__PURE__ */ I(m, {
139
139
  className: "combobox-dropdown--group p-0",
140
140
  items: t,
141
- children: [/* @__PURE__ */ I(p, { children: typeof n == "string" || typeof n == "number" || typeof n == "bigint" ? /* @__PURE__ */ I(o, { children: n }) : n }), /* @__PURE__ */ I(y, { children: (e) => /* @__PURE__ */ I(_, {
141
+ children: [/* @__PURE__ */ F(p, { children: typeof n == "string" || typeof n == "number" || typeof n == "bigint" ? /* @__PURE__ */ F(a, { children: n }) : n }), /* @__PURE__ */ F(y, { children: (e) => /* @__PURE__ */ F(_, {
142
142
  value: e,
143
- size: z,
143
+ size: R,
144
144
  disabled: T?.(e),
145
145
  children: x(e)
146
146
  }, w(e)) })]
147
147
  }, e);
148
- }), v != null && /* @__PURE__ */ I(_, {
148
+ }), v != null && /* @__PURE__ */ F(_, {
149
149
  value: v,
150
- size: z,
150
+ size: R,
151
151
  children: x(v)
152
- }, w(v))] }) : /* @__PURE__ */ I(y, { children: (e) => /* @__PURE__ */ I(_, {
152
+ }, w(v))] }) : /* @__PURE__ */ F(y, { children: (e) => /* @__PURE__ */ F(_, {
153
153
  value: e,
154
- size: z,
154
+ size: R,
155
155
  disabled: T?.(e),
156
156
  children: x(e)
157
157
  }, w(e)) })
158
158
  })
159
159
  }),
160
- /* @__PURE__ */ I(K, {
160
+ /* @__PURE__ */ F(re, {
161
161
  loading: !!O,
162
162
  text: k.loadingMore
163
163
  }),
164
- !!P && /* @__PURE__ */ L(s, {
164
+ !!P && /* @__PURE__ */ I(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__ */ I(i, {
170
+ children: [/* @__PURE__ */ F(o, {
171
171
  type: "button",
172
172
  tone: "secondary",
173
173
  buttonStyle: "ghost",
@@ -175,7 +175,7 @@ function re({ 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__ */ I(i, {
178
+ }), /* @__PURE__ */ F(o, {
179
179
  type: "button",
180
180
  tone: "primary",
181
181
  onClick: (e) => {
@@ -187,63 +187,58 @@ function re({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearch
187
187
  ]
188
188
  })
189
189
  });
190
- return j ? /* @__PURE__ */ I(d, {
190
+ return j ? /* @__PURE__ */ F(d, {
191
191
  container: j,
192
- children: B
193
- }) : /* @__PURE__ */ I(d, { children: B });
192
+ children: z
193
+ }) : /* @__PURE__ */ F(d, { children: z });
194
194
  }
195
- re.displayName = "ComboboxDropdown";
195
+ ae.displayName = "ComboboxDropdown";
196
196
  //#endregion
197
197
  //#region src/components/features/combobox/components/error-message.tsx
198
- var ie = {
199
- sm: "mt-space-sm",
200
- md: "mt-space-md",
201
- lg: "mt-space-lg"
202
- };
203
- function ae({ error: e, size: t, className: n }) {
204
- return e ? /* @__PURE__ */ I(a, {
198
+ function oe({ error: e, size: t, className: n }) {
199
+ return e ? /* @__PURE__ */ F(i, {
205
200
  tag: "p",
206
201
  size: "xs",
207
202
  type: "error",
208
- className: r("error-message--component", ie[t], n),
203
+ className: r("error-message--component", n),
209
204
  role: "alert",
210
205
  "aria-live": "polite",
211
206
  children: e
212
207
  }) : null;
213
208
  }
214
- ae.displayName = "ErrorMessage";
209
+ oe.displayName = "ErrorMessage";
215
210
  //#endregion
216
211
  //#region src/components/features/combobox/components/highlighted-text.tsx
217
- function oe(e) {
212
+ function J(e) {
218
213
  return e.replace(/[$()*+.?[\\\]^{|}]/g, "\\$&");
219
214
  }
220
- function se({ text: e, highlight: t, highlightClassName: n = "rounded-radius-sm bg-warning/20 px-0.5 text-warning-accent dark:bg-warning/25" }) {
221
- if (!t.trim()) return /* @__PURE__ */ I(a, {
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, {
222
217
  tag: "span",
223
218
  size: "inherit",
224
219
  lineHeight: "tight",
225
220
  className: "text-inherit",
226
221
  children: e
227
222
  });
228
- let r = RegExp(`(${oe(t)})`, "gi"), i = e.split(r), o = 0;
229
- return /* @__PURE__ */ I(a, {
223
+ let r = RegExp(`(${J(t)})`, "gi"), a = e.split(r), o = 0;
224
+ return /* @__PURE__ */ F(i, {
230
225
  tag: "span",
231
226
  size: "inherit",
232
227
  lineHeight: "tight",
233
228
  className: "text-inherit",
234
- children: i.map((e, t) => {
229
+ children: a.map((e, t) => {
235
230
  let r = t % 2 == 1, i = String(o);
236
- return o += e.length, r ? /* @__PURE__ */ I("mark", {
231
+ return o += e.length, r ? /* @__PURE__ */ F("mark", {
237
232
  className: n,
238
233
  children: e
239
- }, i) : /* @__PURE__ */ I(k.Fragment, { children: e }, i);
234
+ }, i) : /* @__PURE__ */ F(k.Fragment, { children: e }, i);
240
235
  })
241
236
  });
242
237
  }
243
- se.displayName = "HighlightedText";
238
+ Y.displayName = "HighlightedText";
244
239
  //#endregion
245
240
  //#region src/components/features/combobox/hooks/use-debounced-search.ts
246
- function X({ searchValue: e, onSearch: t, debounceMs: n = 300, minSearchLength: r = 3 }) {
241
+ function se({ searchValue: e, onSearch: t, debounceMs: n = 300, minSearchLength: r = 3 }) {
247
242
  let i = O((e) => {
248
243
  t?.(e);
249
244
  }, n);
@@ -271,7 +266,7 @@ function ce({ items: e, getItemGroup: t }) {
271
266
  }
272
267
  //#endregion
273
268
  //#region src/components/features/combobox/hooks/use-load-more.ts
274
- function le({ hasMore: e, onLoadMore: t, loadingMore: n }) {
269
+ function X({ hasMore: e, onLoadMore: t, loadingMore: n }) {
275
270
  let r = N(!1), i = N(null), a = O(() => {
276
271
  r.current = !0, t?.(), i.current && clearTimeout(i.current), i.current = setTimeout(() => {
277
272
  r.current = !1, i.current = null;
@@ -292,22 +287,22 @@ function le({ hasMore: e, onLoadMore: t, loadingMore: n }) {
292
287
  }
293
288
  //#endregion
294
289
  //#region src/components/features/combobox/hooks/use-combobox-core.tsx
295
- function ue(e) {
296
- return n(H, e);
290
+ function le(e) {
291
+ return n(V, e);
297
292
  }
298
- function de(e, t, n) {
293
+ function ue(e, t, n) {
299
294
  let r = t.toLowerCase();
300
295
  return e.some((e) => n(e).toLowerCase() === r);
301
296
  }
302
- function fe({ 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 = [] }) {
303
- let x = ue(l), S = i ?? n, C = N(null), w = t.trim(), T = s && (o || w.length < c);
304
- X({
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({
305
300
  searchValue: t,
306
301
  onSearch: d,
307
302
  debounceMs: f,
308
303
  minSearchLength: c
309
304
  });
310
- let { handleScroll: E } = le({
305
+ let { handleScroll: E } = X({
311
306
  hasMore: s && !T ? g : !1,
312
307
  onLoadMore: _,
313
308
  loadingMore: v
@@ -339,7 +334,7 @@ function fe({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
339
334
  ]), O = ce({
340
335
  items: D,
341
336
  getItemGroup: h
342
- }), k = M(() => !s || T || !p || !m || w.length < c ? !1 : !de(D, w, n), [
337
+ }), k = M(() => !s || T || !p || !m || w.length < c ? !1 : !ue(D, w, n), [
343
338
  p,
344
339
  m,
345
340
  w,
@@ -348,7 +343,7 @@ function fe({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
348
343
  n,
349
344
  s,
350
345
  T
351
- ]), P = M(() => k ? te(w) : null, [k, w]);
346
+ ]), P = M(() => k ? ne(w) : null, [k, w]);
352
347
  return {
353
348
  strings: x,
354
349
  getKey: S,
@@ -362,27 +357,27 @@ function fe({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
362
357
  showEmpty: s && !o && w.length >= c && e.length === 0 && !k,
363
358
  showCreateOption: k,
364
359
  renderItemContent: A((e) => {
365
- if (W(e)) {
366
- let t = G(e);
367
- return /* @__PURE__ */ L("span", {
360
+ if (U(e)) {
361
+ let t = W(e);
362
+ return /* @__PURE__ */ I("span", {
368
363
  className: r("combobox-core--component", "flex items-center gap-space-sm"),
369
- children: [/* @__PURE__ */ I(B, { className: "size-icon-sm" }), x.createNew.includes("{value}") ? /* @__PURE__ */ I(a, {
364
+ children: [/* @__PURE__ */ F(z, { className: "size-icon-sm" }), x.createNew.includes("{value}") ? /* @__PURE__ */ F(i, {
370
365
  tag: "span",
371
366
  size: "inherit",
372
367
  weight: "medium",
373
368
  lineHeight: "tight",
374
369
  className: "text-inherit",
375
370
  children: x.createNew.replace("{value}", t)
376
- }) : /* @__PURE__ */ L("span", {
371
+ }) : /* @__PURE__ */ I("span", {
377
372
  className: "inline-flex items-center gap-space-sm",
378
- children: [/* @__PURE__ */ I(a, {
373
+ children: [/* @__PURE__ */ F(i, {
379
374
  tag: "span",
380
375
  size: "inherit",
381
376
  weight: "medium",
382
377
  lineHeight: "tight",
383
378
  className: "text-inherit",
384
379
  children: x.createNew
385
- }), /* @__PURE__ */ I(a, {
380
+ }), /* @__PURE__ */ F(i, {
386
381
  tag: "span",
387
382
  size: "inherit",
388
383
  weight: "medium",
@@ -395,10 +390,10 @@ function fe({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
395
390
  }
396
391
  if (u) return u(e);
397
392
  let t = n(e);
398
- return y && w ? /* @__PURE__ */ I(se, {
393
+ return y && w ? /* @__PURE__ */ F(Y, {
399
394
  text: t,
400
395
  highlight: w
401
- }) : /* @__PURE__ */ I(a, {
396
+ }) : /* @__PURE__ */ F(i, {
402
397
  tag: "span",
403
398
  size: "inherit",
404
399
  weight: "medium",
@@ -413,45 +408,45 @@ function fe({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
413
408
  y,
414
409
  w
415
410
  ]),
416
- itemToStringLabel: A((e) => W(e) ? G(e) : n(e), [n]),
417
- getItemReactKey: A((e) => W(e) ? `__create__:${G(e)}` : String(S(e)), [S]),
411
+ itemToStringLabel: A((e) => U(e) ? W(e) : n(e), [n]),
412
+ getItemReactKey: A((e) => U(e) ? `__create__:${W(e)}` : String(S(e)), [S]),
418
413
  handleScroll: E
419
414
  };
420
415
  }
421
416
  //#endregion
422
417
  //#region src/components/features/combobox/combobox.tsx
423
- function pe(t, n) {
418
+ function fe(t, n) {
424
419
  return e(t, n, "md");
425
420
  }
426
- var me = {
421
+ var pe = {
427
422
  sm: "pe-control-actions-sm",
428
423
  md: "pe-control-actions",
429
424
  lg: "pe-control-actions"
430
- }, he = {
425
+ }, me = {
431
426
  sm: "sm",
432
427
  md: "md",
433
428
  lg: "lg"
434
429
  };
435
- function ge(e) {
430
+ function he(e) {
436
431
  return e;
437
432
  }
438
- function _e({ placeholder: e, clearLabel: t, toggleLabel: n, size: a, error: o, required: s, disabled: c, clearable: u = !0, className: d, onBlur: f }) {
439
- return /* @__PURE__ */ L("div", {
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", {
440
435
  className: "relative",
441
- children: [/* @__PURE__ */ I(V.Input, {
442
- render: /* @__PURE__ */ I(E, {
443
- size: a,
444
- invalid: o,
445
- className: r(u ? me[a] : l.togglePadding, d)
436
+ children: [/* @__PURE__ */ F(B.Input, {
437
+ render: /* @__PURE__ */ F(E, {
438
+ size: i,
439
+ invalid: a,
440
+ className: r(u ? pe[i] : l.togglePadding, d)
446
441
  }),
447
442
  placeholder: e,
448
- "aria-invalid": o || void 0,
443
+ "aria-invalid": a || void 0,
449
444
  "aria-required": s,
450
445
  disabled: c,
451
446
  onBlur: f
452
- }), /* @__PURE__ */ L("div", {
447
+ }), /* @__PURE__ */ I("div", {
453
448
  className: "absolute inset-y-0 end-space-xs flex items-center gap-space-xs text-muted-foreground",
454
- children: [u ? /* @__PURE__ */ I(V.Clear, { render: /* @__PURE__ */ I(i, {
449
+ children: [u ? /* @__PURE__ */ F(B.Clear, { render: /* @__PURE__ */ F(o, {
455
450
  type: "button",
456
451
  tone: "secondary",
457
452
  buttonStyle: "ghost",
@@ -459,11 +454,11 @@ function _e({ placeholder: e, clearLabel: t, toggleLabel: n, size: a, error: o,
459
454
  iconOnly: !0,
460
455
  className: r(l.target, l.focus, l.clear),
461
456
  "aria-label": t,
462
- children: /* @__PURE__ */ I(ee, {
457
+ children: /* @__PURE__ */ F(te, {
463
458
  className: l.icon,
464
459
  "aria-hidden": "true"
465
460
  })
466
- }) }) : null, /* @__PURE__ */ I(V.Trigger, { render: /* @__PURE__ */ I(i, {
461
+ }) }) : null, /* @__PURE__ */ F(B.Trigger, { render: /* @__PURE__ */ F(o, {
467
462
  type: "button",
468
463
  tone: "secondary",
469
464
  buttonStyle: "ghost",
@@ -471,7 +466,7 @@ function _e({ placeholder: e, clearLabel: t, toggleLabel: n, size: a, error: o,
471
466
  iconOnly: !0,
472
467
  className: r(l.target, l.focus, l.toggle),
473
468
  "aria-label": n,
474
- children: /* @__PURE__ */ I(R, {
469
+ children: /* @__PURE__ */ F(L, {
475
470
  className: l.icon,
476
471
  "aria-hidden": "true"
477
472
  })
@@ -479,50 +474,51 @@ function _e({ placeholder: e, clearLabel: t, toggleLabel: n, size: a, error: o,
479
474
  })]
480
475
  });
481
476
  }
482
- function Z({ items: e, selectedValue: n, onSelectedValueChange: r, clearSearchOnClose: i = !0, searchValue: a, onSearchValueChange: o, getItemLabel: s, getItemKey: c, loading: l = !1, showListContent: u = !0, minSearchLength: d = 3, strings: f, disabled: p = !1, className: m, clearable: h = !0, renderItem: g, portalContainer: _, name: y, invalid: b, error: x, required: S, onBlur: C, onSearch: w, debounceMs: T, creatable: E, onCreate: D, getItemGroup: O, renderGroupLabel: k, hasMore: j, onLoadMore: M, loadingMore: N, getItemDisabled: F, highlightMatch: R, size: z, open: B, onOpenChange: ee }) {
483
- let { defaultScale: V } = t(), H = pe(z, V), U = ge(H), te = b || !!x, K = fe({
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({
484
479
  items: e,
485
480
  searchValue: a,
486
481
  onSearchValueChange: o,
487
- getItemLabel: s,
488
- getItemKey: c,
489
- loading: l,
490
- showListContent: u,
491
- minSearchLength: d,
492
- strings: f,
493
- renderItem: g,
494
- onSearch: w,
495
- debounceMs: T,
496
- creatable: E,
497
- onCreate: D,
498
- getItemGroup: O,
499
- hasMore: j,
500
- onLoadMore: M,
501
- loadingMore: N,
482
+ getItemLabel: c,
483
+ getItemKey: l,
484
+ loading: u,
485
+ showListContent: d,
486
+ minSearchLength: f,
487
+ strings: p,
488
+ renderItem: _,
489
+ onSearch: T,
490
+ debounceMs: E,
491
+ creatable: D,
492
+ onCreate: O,
493
+ getItemGroup: k,
494
+ hasMore: M,
495
+ onLoadMore: N,
496
+ loadingMore: ee,
502
497
  highlightMatch: R,
503
498
  size: H,
504
499
  ensuredItems: n ? [n] : []
505
- }), [q, J] = P(!1), ne = A((e) => {
506
- J(e), !e && i && o(""), ee?.(e);
500
+ }), [K, ie] = P(!1), q = A((e) => {
501
+ ie(e), !e && i && o(""), B?.(e);
507
502
  }, [
508
503
  i,
509
- ee,
504
+ B,
510
505
  o
511
- ]), Y = q ? a : n ? K.itemToStringLabel(n) : "", ie = A((e) => {
512
- if (e && W(e)) {
513
- let t = G(e);
514
- D?.(t);
506
+ ]), J = K ? a : n ? G.itemToStringLabel(n) : "", Y = A((e) => {
507
+ if (e && U(e)) {
508
+ let t = W(e);
509
+ O?.(t);
515
510
  return;
516
511
  }
517
512
  r(e);
518
- }, [r, D]);
519
- return /* @__PURE__ */ L("div", {
513
+ }, [r, O]);
514
+ return /* @__PURE__ */ I(s, {
515
+ gap: "dense",
520
516
  className: "combobox--component",
521
- children: [/* @__PURE__ */ L(v, {
522
- items: K.allItems,
517
+ children: [/* @__PURE__ */ I(v, {
518
+ items: G.allItems,
523
519
  value: n,
524
- onValueChange: ie,
525
- inputValue: Y,
520
+ onValueChange: Y,
521
+ inputValue: J,
526
522
  onInputValueChange: (e, { reason: t }) => {
527
523
  if (t === "item-press") {
528
524
  o("");
@@ -530,260 +526,261 @@ function Z({ items: e, selectedValue: n, onSelectedValueChange: r, clearSearchOn
530
526
  }
531
527
  o(e);
532
528
  },
533
- itemToStringLabel: K.itemToStringLabel,
534
- disabled: p,
529
+ itemToStringLabel: G.itemToStringLabel,
530
+ disabled: m,
535
531
  filter: null,
536
- name: y,
537
- required: S,
538
- open: B,
539
- onOpenChange: ne,
540
- children: [/* @__PURE__ */ I(_e, {
541
- placeholder: K.strings.placeholder,
542
- clearLabel: K.strings.clear,
543
- toggleLabel: K.strings.toggle,
544
- className: m,
545
- size: U,
546
- error: te,
547
- required: S,
548
- disabled: p,
549
- clearable: h,
550
- onBlur: C
551
- }), /* @__PURE__ */ I(re, {
552
- loading: l,
553
- showStatus: K.showStatus,
554
- showEmpty: K.showEmpty,
532
+ name: b,
533
+ required: C,
534
+ open: te,
535
+ onOpenChange: q,
536
+ children: [/* @__PURE__ */ F(ge, {
537
+ placeholder: G.strings.placeholder,
538
+ clearLabel: G.strings.clear,
539
+ toggleLabel: G.strings.toggle,
540
+ className: h,
541
+ size: ne,
542
+ error: re,
543
+ required: C,
544
+ disabled: m,
545
+ clearable: g,
546
+ onBlur: w
547
+ }), /* @__PURE__ */ F(ae, {
548
+ loading: u,
549
+ showStatus: G.showStatus,
550
+ showEmpty: G.showEmpty,
555
551
  searchValue: a,
556
- minSearchLength: d,
557
- items: K.allItems,
558
- groupedItems: K.groupedItems,
559
- createOptionItem: K.createOptionItem,
560
- renderItemContent: K.renderItemContent,
561
- getItemReactKey: K.getItemReactKey,
562
- getItemDisabled: F,
563
- renderGroupLabel: k,
564
- loadingMore: u && !K.showStatus ? N : !1,
565
- strings: K.strings,
552
+ minSearchLength: f,
553
+ items: G.allItems,
554
+ groupedItems: G.groupedItems,
555
+ createOptionItem: G.createOptionItem,
556
+ renderItemContent: G.renderItemContent,
557
+ getItemReactKey: G.getItemReactKey,
558
+ getItemDisabled: L,
559
+ renderGroupLabel: j,
560
+ loadingMore: d && !G.showStatus ? ee : !1,
561
+ strings: G.strings,
566
562
  size: H,
567
- portalContainer: _,
568
- listRef: K.listRef
563
+ portalContainer: y,
564
+ listRef: G.listRef
569
565
  })]
570
- }), /* @__PURE__ */ I(ae, {
571
- error: x,
566
+ }), /* @__PURE__ */ F(oe, {
567
+ error: S,
572
568
  size: H
573
569
  })]
574
570
  });
575
571
  }
576
- function ve({ items: e, selectedValues: n, onSelectedValuesChange: i, searchValue: o, onSearchValueChange: s, getItemLabel: c, getItemKey: l, loading: u = !1, showListContent: d = !0, minSearchLength: p = 3, strings: m, disabled: g = !1, className: _, renderItem: y, portalContainer: b, name: S, invalid: C, error: E, required: D, onBlur: O, onSearch: k, debounceMs: M, creatable: F, onCreate: R, getItemGroup: z, renderGroupLabel: B, hasMore: ee, onLoadMore: V, loadingMore: H, getItemDisabled: U, highlightMatch: te, size: K, open: q, onOpenChange: J, closeOnSelect: ne = !1, applyButton: Y = !1, onApply: ie, onCancel: oe }) {
577
- let { defaultScale: se } = t(), X = pe(K, se), ce = ge(X), le = he[X], ue = C || !!E, de = N(null), me = l ?? c, [_e, Z] = P(n), [ve, ye] = P(!1), be = q !== void 0, xe = be ? q : ve;
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;
578
574
  j(() => {
579
- Y && Z(n);
580
- }, [Y, n]);
575
+ J && Z(n);
576
+ }, [J, n]);
581
577
  let Q = A((e) => {
582
- be || ye(e), J?.(e);
583
- }, [be, J]), $ = fe({
578
+ xe || be(e), ie?.(e);
579
+ }, [xe, ie]), $ = de({
584
580
  items: e,
585
581
  searchValue: o,
586
- onSearchValueChange: s,
587
- getItemLabel: c,
588
- getItemKey: l,
589
- loading: u,
590
- showListContent: d,
591
- minSearchLength: p,
592
- strings: m,
593
- renderItem: y,
594
- onSearch: k,
595
- debounceMs: M,
596
- creatable: F,
582
+ onSearchValueChange: c,
583
+ getItemLabel: l,
584
+ getItemKey: u,
585
+ loading: d,
586
+ showListContent: p,
587
+ minSearchLength: m,
588
+ strings: g,
589
+ renderItem: b,
590
+ onSearch: M,
591
+ debounceMs: ee,
592
+ creatable: L,
597
593
  onCreate: R,
598
594
  getItemGroup: z,
599
- hasMore: ee,
595
+ hasMore: B,
600
596
  onLoadMore: V,
601
597
  loadingMore: H,
602
- highlightMatch: te,
598
+ highlightMatch: re,
603
599
  size: X,
604
600
  ensuredItems: n
605
- }), Se = A((e) => {
601
+ }), Ce = A((e) => {
606
602
  let t = [], n = null;
607
- for (let r of e) W(r) ? n = G(r) : t.push(r);
603
+ for (let r of e) U(r) ? n = W(r) : t.push(r);
608
604
  n && R?.(n);
609
605
  let r = t.length !== e.length || !n ? t : null;
610
- r && (Y ? Z(r) : i(r)), ne && Q(!1);
606
+ r && (J ? Z(r) : a(r)), q && Q(!1);
611
607
  }, [
612
- i,
608
+ a,
613
609
  R,
614
- Y,
615
- ne,
610
+ J,
611
+ q,
616
612
  Q
617
- ]), Ce = A(() => {
618
- Y && i(_e), ie?.(), Q(!1);
613
+ ]), we = A(() => {
614
+ J && a(ve), Y?.(), Q(!1);
619
615
  }, [
616
+ J,
617
+ ve,
620
618
  Y,
621
- _e,
622
- ie,
623
- i,
619
+ a,
624
620
  Q
625
- ]), we = A(() => {
626
- Y && Z(n), oe?.(), Q(!1);
621
+ ]), Te = A(() => {
622
+ J && Z(n), se?.(), Q(!1);
627
623
  }, [
628
- Y,
624
+ J,
629
625
  n,
630
- oe,
626
+ se,
631
627
  Q
632
- ]), Te = Y ? _e : n, Ee = Te.length > 0 ? void 0 : $.strings.placeholder;
633
- return /* @__PURE__ */ L("div", {
628
+ ]), Ee = J ? ve : n, De = Ee.length > 0 ? void 0 : $.strings.placeholder;
629
+ return /* @__PURE__ */ I(s, {
630
+ gap: "dense",
634
631
  className: "combobox--component",
635
- children: [/* @__PURE__ */ L(v, {
632
+ children: [/* @__PURE__ */ I(v, {
636
633
  items: $.allItems,
637
634
  multiple: !0,
638
- value: Te,
639
- onValueChange: Se,
635
+ value: Ee,
636
+ onValueChange: Ce,
640
637
  inputValue: o,
641
638
  onInputValueChange: (e, { reason: t }) => {
642
639
  if (t === "item-press") {
643
- s("");
640
+ c("");
644
641
  return;
645
642
  }
646
- s(e);
643
+ c(e);
647
644
  },
648
645
  itemToStringLabel: $.itemToStringLabel,
649
- disabled: g,
646
+ disabled: _,
650
647
  filter: null,
651
- name: S,
652
- required: D,
653
- open: xe,
648
+ name: C,
649
+ required: O,
650
+ open: Se,
654
651
  onOpenChange: (e) => {
655
- !e && Y && Z(n), Q(e);
652
+ !e && J && Z(n), Q(e);
656
653
  },
657
- children: [/* @__PURE__ */ L(x, {
658
- ref: de,
659
- className: r(w[ce], T[ce], ce === "sm" ? "text-pxs" : "text-sm", "bg-transparent !shadow-none", _),
660
- size: le,
661
- error: ue,
662
- children: [Te.map((e) => /* @__PURE__ */ I(h, { children: /* @__PURE__ */ I(a, {
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, {
663
660
  tag: "span",
664
661
  size: "inherit",
665
662
  weight: "medium",
666
663
  lineHeight: "tight",
667
664
  className: "combobox--chip-label text-inherit",
668
- children: c(e)
669
- }) }, me(e))), /* @__PURE__ */ I(f, {
670
- placeholder: Ee,
671
- "aria-invalid": ue || void 0,
672
- "aria-required": D,
673
- onBlur: O
665
+ children: l(e)
666
+ }) }, _e(e))), /* @__PURE__ */ F(f, {
667
+ placeholder: De,
668
+ "aria-invalid": pe || void 0,
669
+ "aria-required": O,
670
+ onBlur: k
674
671
  })]
675
- }), /* @__PURE__ */ I(re, {
676
- loading: u,
672
+ }), /* @__PURE__ */ F(ae, {
673
+ loading: d,
677
674
  showStatus: $.showStatus,
678
675
  showEmpty: $.showEmpty,
679
676
  searchValue: o,
680
- minSearchLength: p,
677
+ minSearchLength: m,
681
678
  items: $.allItems,
682
679
  groupedItems: $.groupedItems,
683
680
  createOptionItem: $.createOptionItem,
684
681
  renderItemContent: $.renderItemContent,
685
682
  getItemReactKey: $.getItemReactKey,
686
- getItemDisabled: U,
687
- renderGroupLabel: B,
688
- loadingMore: d && !$.showStatus ? H : !1,
683
+ getItemDisabled: ne,
684
+ renderGroupLabel: te,
685
+ loadingMore: p && !$.showStatus ? H : !1,
689
686
  strings: $.strings,
690
687
  size: X,
691
- portalContainer: b,
688
+ portalContainer: S,
692
689
  listRef: $.listRef,
693
- anchor: de,
694
- applyFooter: d && Y ? {
690
+ anchor: ge,
691
+ applyFooter: p && J ? {
695
692
  applyLabel: $.strings.apply,
696
693
  cancelLabel: $.strings.cancel,
697
- onApply: Ce,
698
- onCancel: we
694
+ onApply: we,
695
+ onCancel: Te
699
696
  } : void 0
700
697
  })]
701
- }), /* @__PURE__ */ I(ae, {
702
- error: E,
698
+ }), /* @__PURE__ */ F(oe, {
699
+ error: D,
703
700
  size: X
704
701
  })]
705
702
  });
706
703
  }
707
- Z.displayName = "Combobox", ve.displayName = "MultiCombobox";
704
+ _e.displayName = "Combobox", ve.displayName = "MultiCombobox";
708
705
  //#endregion
709
706
  //#region src/components/features/combobox/async-resource-combobox.tsx
710
- var ye = {
711
- ...H,
707
+ var Z = {
708
+ ...V,
712
709
  error: "Unable to load options.",
713
710
  retry: "Retry"
714
711
  };
715
- function be(e) {
712
+ function ye(e) {
716
713
  return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
717
714
  }
718
- function xe({ 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 = "md", ...T }) {
719
- let E = n(ye, S), D = t !== void 0, [k, F] = P(i), R = D ? t : k, [z, B] = P(""), [ee, V] = P([]), [H, U] = P(!1), [W, G] = P(null), [te, K] = P(0), q = N(0), J = z.trim(), ne = A((e) => {
720
- D || F(e), o?.(e);
721
- }, [D, o]), Y = O((t, n) => {
722
- U(!0), G(null), e(n).then((e) => {
723
- n.signal?.aborted || q.current !== t || (V(e), l?.(e, n));
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));
724
721
  }).catch((e) => {
725
- n.signal?.aborted || q.current !== t || (V([]), G({
722
+ n.signal?.aborted || G.current !== t || (B([]), W({
726
723
  error: e,
727
724
  query: n.query
728
725
  }), u?.(e, n));
729
726
  }).finally(() => {
730
- !n.signal?.aborted && q.current === t && U(!1);
727
+ !n.signal?.aborted && G.current === t && H(!1);
731
728
  });
732
729
  }, _);
733
730
  j(() => {
734
731
  if (C) return;
735
- if (!(J.length > 0 ? J.length >= y : v)) {
736
- V([]), U(!1), G(null);
732
+ if (!(K.length > 0 ? K.length >= y : v)) {
733
+ B([]), H(!1), W(null);
737
734
  return;
738
735
  }
739
- let e = q.current + 1;
740
- q.current = e;
736
+ let e = G.current + 1;
737
+ G.current = e;
741
738
  let t = new AbortController();
742
- return Y(e, {
743
- query: J,
739
+ return q(e, {
740
+ query: K,
744
741
  limit: g,
745
742
  signal: t.signal
746
743
  }), () => {
747
- Y.cancel(), t.abort();
744
+ q.cancel(), t.abort();
748
745
  };
749
746
  }, [
750
747
  C,
751
748
  g,
752
749
  y,
753
750
  v,
754
- te,
755
- Y,
756
- J
751
+ ne,
752
+ q,
753
+ K
757
754
  ]);
758
- let re = A(() => {
759
- W && (B(W.query), K((e) => e + 1));
760
- }, [W]), ie = A((e) => {
755
+ let ae = A(() => {
756
+ U && (z(U.query), re((e) => e + 1));
757
+ }, [U]), oe = A((e) => {
761
758
  if (h) return h(e, {
762
- query: J,
763
- isSelected: R ? d(R) === d(e) : !1
759
+ query: K,
760
+ isSelected: L ? d(L) === d(e) : !1
764
761
  });
765
762
  let t = p?.(e), n = m?.(e);
766
- return /* @__PURE__ */ L(s, {
767
- render: /* @__PURE__ */ I("span", {}),
763
+ return /* @__PURE__ */ I(s, {
764
+ render: /* @__PURE__ */ F("span", {}),
768
765
  direction: "horizontal",
769
766
  gap: "md",
770
767
  wrap: !1,
771
768
  className: "async-resource-combobox--option leading-tight",
772
- children: [/* @__PURE__ */ I(a, {
769
+ children: [/* @__PURE__ */ F(i, {
773
770
  tag: "span",
774
771
  size: w === "sm" ? "pxs" : void 0,
775
772
  weight: "medium",
776
773
  className: "min-w-0 shrink truncate",
777
774
  children: f(e)
778
- }), (!!t || !!n) && /* @__PURE__ */ L("span", {
775
+ }), (!!t || !!n) && /* @__PURE__ */ I("span", {
779
776
  className: "inline-flex min-w-0 flex-1 items-center gap-space-sm overflow-hidden text-muted-foreground",
780
- children: [!!t && (be(t) ? /* @__PURE__ */ I(a, {
777
+ children: [!!t && (ye(t) ? /* @__PURE__ */ F(i, {
781
778
  tag: "span",
782
779
  size: "xs",
783
780
  type: "secondary",
784
781
  className: "min-w-0 truncate",
785
782
  children: t
786
- }) : t), !!n && (be(n) ? /* @__PURE__ */ I(a, {
783
+ }) : t), !!n && (ye(n) ? /* @__PURE__ */ F(i, {
787
784
  tag: "span",
788
785
  size: "xs",
789
786
  type: "secondary",
@@ -798,53 +795,53 @@ function xe({ fetcher: e, value: t, defaultValue: i = null, onValueChange: o, on
798
795
  f,
799
796
  m,
800
797
  h,
801
- R,
798
+ L,
802
799
  w,
803
- J
804
- ]), ae = M(() => {
805
- if (W) return b ?? E.error;
800
+ K
801
+ ]), J = M(() => {
802
+ if (U) return b ?? E.error;
806
803
  }, [
807
804
  b,
808
- W,
805
+ U,
809
806
  E.error
810
- ]), oe = W !== null, se = W ? x?.({
811
- error: W.error,
812
- query: W.query,
813
- retry: re
814
- }) ?? /* @__PURE__ */ I(c, {
807
+ ]), Y = U !== null, se = U ? x?.({
808
+ error: U.error,
809
+ query: U.query,
810
+ retry: ae
811
+ }) ?? /* @__PURE__ */ F(c, {
815
812
  variant: "inline",
816
- title: ae,
817
- onRetry: re,
813
+ title: J,
814
+ onRetry: ae,
818
815
  retryLabel: E.retry,
819
816
  className: "async-resource-combobox--error mt-space-sm"
820
817
  }) : null;
821
- return /* @__PURE__ */ L("div", {
818
+ return /* @__PURE__ */ I("div", {
822
819
  "data-component": "async-resource-combobox",
823
820
  "data-slot": "async-resource-combobox",
824
821
  className: r("async-resource-combobox--component", T.className),
825
- children: [/* @__PURE__ */ I(Z, {
822
+ children: [/* @__PURE__ */ F(_e, {
826
823
  ...T,
827
824
  className: void 0,
828
825
  disabled: C,
829
826
  size: w,
830
- items: ee,
831
- selectedValue: R ?? null,
832
- onSelectedValueChange: ne,
827
+ items: te,
828
+ selectedValue: L ?? null,
829
+ onSelectedValueChange: ie,
833
830
  clearSearchOnClose: !1,
834
- searchValue: z,
835
- onSearchValueChange: B,
831
+ searchValue: R,
832
+ onSearchValueChange: z,
836
833
  getItemLabel: f,
837
834
  getItemKey: d,
838
- loading: !oe && H,
839
- showListContent: !oe,
835
+ loading: !Y && V,
836
+ showListContent: !Y,
840
837
  minSearchLength: y,
841
838
  strings: E,
842
- renderItem: ie
839
+ renderItem: oe
843
840
  }), se]
844
841
  });
845
842
  }
846
- xe.displayName = "AsyncResourceCombobox";
843
+ be.displayName = "AsyncResourceCombobox";
847
844
  //#endregion
848
- export { fe as a, ve as i, ye as n, H as o, Z as r, xe as t };
845
+ export { de as a, ve as i, Z as n, V as o, _e as r, be as t };
849
846
 
850
- //# sourceMappingURL=combobox-xv3yJbzl.js.map
847
+ //# sourceMappingURL=combobox-hozNwUcc.js.map