themelia-react-ui 2.0.1 → 2.0.3

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 (490) hide show
  1. package/CHANGELOG.md +317 -131
  2. package/README.md +25 -9
  3. package/THIRD_PARTY_NOTICES.md +7 -0
  4. package/dist/{accordion-B6a3vVgA.js → accordion-Cjb6sx0G.js} +14 -13
  5. package/dist/accordion-Cjb6sx0G.js.map +1 -0
  6. package/dist/action-menu-CllU52Mm.js +280 -0
  7. package/dist/action-menu-CllU52Mm.js.map +1 -0
  8. package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
  9. package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
  10. package/dist/ai-artifact-DvTwDVyL.js +1148 -0
  11. package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
  12. package/dist/{app-shell-ZK5RWdo6.js → app-shell-C4FhvCqF.js} +5 -5
  13. package/dist/{app-shell-ZK5RWdo6.js.map → app-shell-C4FhvCqF.js.map} +1 -1
  14. package/dist/attachment-BxDfL2mw.js +246 -0
  15. package/dist/attachment-BxDfL2mw.js.map +1 -0
  16. package/dist/{auth-CYxKfo69.js → auth-BGua8ouh.js} +58 -54
  17. package/dist/auth-BGua8ouh.js.map +1 -0
  18. package/dist/{avatar-BBnEJIx8.js → avatar-DAPlDvhJ.js} +7 -7
  19. package/dist/avatar-DAPlDvhJ.js.map +1 -0
  20. package/dist/{badge-MrKVNzW9.js → badge-HpFqoqSY.js} +40 -40
  21. package/dist/badge-HpFqoqSY.js.map +1 -0
  22. package/dist/base/accordion.js +1 -1
  23. package/dist/base/action-menu.js +1 -1
  24. package/dist/base/attachment.js +1 -1
  25. package/dist/base/avatar.js +1 -1
  26. package/dist/base/badge.js +1 -1
  27. package/dist/base/batch-action-bar.js +1 -1
  28. package/dist/base/buttons.js +1 -1
  29. package/dist/base/cards.js +2 -2
  30. package/dist/base/carousel.js +40 -36
  31. package/dist/base/carousel.js.map +1 -1
  32. package/dist/base/cascader.js +92 -92
  33. package/dist/base/cascader.js.map +1 -1
  34. package/dist/base/chart.js +1 -1
  35. package/dist/base/choice-inputs.js +2 -2
  36. package/dist/base/code-block.js +1 -1
  37. package/dist/base/combobox.js +2 -2
  38. package/dist/base/command.js +1 -1
  39. package/dist/base/copyable.js +1 -1
  40. package/dist/base/date-pickers.js +2 -2
  41. package/dist/base/display.js +6 -6
  42. package/dist/base/feedback.js +3 -3
  43. package/dist/base/forms-numeric.js +1 -1
  44. package/dist/base/forms.js +2 -2
  45. package/dist/base/inline-edit.js +14 -14
  46. package/dist/base/inline-edit.js.map +1 -1
  47. package/dist/base/item.js +1 -1
  48. package/dist/base/media-gallery.js +1 -1
  49. package/dist/base/metadata-list.js +1 -1
  50. package/dist/base/navigation.js +6 -6
  51. package/dist/base/popover-menu.js +1 -1
  52. package/dist/base/popover.js +1 -1
  53. package/dist/base/qr-code.js +1 -1
  54. package/dist/base/repeaters.js +171 -176
  55. package/dist/base/repeaters.js.map +1 -1
  56. package/dist/base/sheet.js +1 -1
  57. package/dist/base/sidebar.js +1 -1
  58. package/dist/base/signature-pad.js +6 -6
  59. package/dist/base/skeleton.js +1 -1
  60. package/dist/base/spinner.js +79 -2
  61. package/dist/base/spinner.js.map +1 -0
  62. package/dist/base/structure.js +1 -1
  63. package/dist/base/table.js +1 -1
  64. package/dist/base/text-inputs.js +2 -2
  65. package/dist/base/toaster.js +46 -45
  66. package/dist/base/toaster.js.map +1 -1
  67. package/dist/base/tree.js +1 -1
  68. package/dist/base/upload-queue.js +1 -1
  69. package/dist/base/upload.js +3 -3
  70. package/dist/base/value-inputs.js +1 -1
  71. package/dist/{batch-action-bar-BZGDG-Si.js → batch-action-bar-DnUJ21NQ.js} +6 -5
  72. package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
  73. package/dist/blocks/admin.js +42 -42
  74. package/dist/blocks/admin.js.map +1 -1
  75. package/dist/blocks/ai.js +260 -240
  76. package/dist/blocks/ai.js.map +1 -1
  77. package/dist/blocks/analytics/usage-card.js +1 -1
  78. package/dist/blocks/analytics.js +620 -585
  79. package/dist/blocks/analytics.js.map +1 -1
  80. package/dist/blocks/collaboration.js +1 -1
  81. package/dist/blocks/commerce/receipt.js +1 -1
  82. package/dist/blocks/commerce.js +1152 -1109
  83. package/dist/blocks/commerce.js.map +1 -1
  84. package/dist/blocks/data-display.js +2 -2
  85. package/dist/blocks/onboarding.js +48 -39
  86. package/dist/blocks/onboarding.js.map +1 -1
  87. package/dist/blocks/planning.js +13 -12
  88. package/dist/blocks/planning.js.map +1 -1
  89. package/dist/blocks/timelines.js +1 -1
  90. package/dist/{breadcrumbs-D5t7I023.js → breadcrumbs-C-oqs1sQ.js} +5 -5
  91. package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
  92. package/dist/{button-QYwiyhD2.js → button-DVzspB_G.js} +2 -2
  93. package/dist/{button-QYwiyhD2.js.map → button-DVzspB_G.js.map} +1 -1
  94. package/dist/{buttons-SbIcm1HJ.js → buttons-DPZekJFu.js} +20 -15
  95. package/dist/buttons-DPZekJFu.js.map +1 -0
  96. package/dist/cards-BaBZR-AU.js +68 -0
  97. package/dist/cards-BaBZR-AU.js.map +1 -0
  98. package/dist/{chart-QfrARkXl.js → chart-ZOYyK2xG.js} +58 -55
  99. package/dist/chart-ZOYyK2xG.js.map +1 -0
  100. package/dist/{checkbox-DhB6K0bK.js → checkbox-AWIhNhmo.js} +2 -2
  101. package/dist/{checkbox-DhB6K0bK.js.map → checkbox-AWIhNhmo.js.map} +1 -1
  102. package/dist/{choice-inputs-t6w3ATNz.js → choice-inputs-CNHvARCJ.js} +49 -45
  103. package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
  104. package/dist/{code-block-Dgbu-CU3.js → code-block-DeneBJR_.js} +8 -8
  105. package/dist/code-block-DeneBJR_.js.map +1 -0
  106. package/dist/{collapsible-D8AEGU1-.js → collapsible-C-_l4hpy.js} +3 -3
  107. package/dist/{collapsible-D8AEGU1-.js.map → collapsible-C-_l4hpy.js.map} +1 -1
  108. package/dist/{collection-content-uK16Grv0.js → collection-content-By56pLog.js} +3 -3
  109. package/dist/{collection-content-uK16Grv0.js.map → collection-content-By56pLog.js.map} +1 -1
  110. package/dist/combobox-DaHESuiL.js +355 -0
  111. package/dist/combobox-DaHESuiL.js.map +1 -0
  112. package/dist/{combobox-DLl0bfiq.js → combobox-Dxo2fAYQ.js} +289 -279
  113. package/dist/combobox-Dxo2fAYQ.js.map +1 -0
  114. package/dist/{command-kNR20o7x.js → command-C25VMRII.js} +7 -7
  115. package/dist/{command-kNR20o7x.js.map → command-C25VMRII.js.map} +1 -1
  116. package/dist/{comments-BpDuCUUu.js → comments-DD0DUPwJ.js} +114 -105
  117. package/dist/comments-DD0DUPwJ.js.map +1 -0
  118. package/dist/components/base/badge/badge.recipes.d.ts +1 -1
  119. package/dist/components/base/buttons/loader-button.d.ts +2 -1
  120. package/dist/components/base/cards/card.recipes.d.ts +2 -3
  121. package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
  122. package/dist/components/base/cards/smart-card.types.d.ts +11 -4
  123. package/dist/components/base/chart/chart.d.ts +2 -5
  124. package/dist/components/base/combobox/combobox-field.d.ts +16 -0
  125. package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
  126. package/dist/components/base/combobox/index.d.ts +30 -4
  127. package/dist/components/base/forms/form-sizing.d.ts +11 -3
  128. package/dist/components/base/navigation/pagination.d.ts +5 -2
  129. package/dist/components/base/popover/popover.recipes.d.ts +15 -1
  130. package/dist/components/base/table/index.d.ts +9 -2
  131. package/dist/components/base/text-inputs/input-group.d.ts +2 -2
  132. package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
  133. package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
  134. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +3 -1
  135. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
  136. package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
  137. package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
  138. package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
  139. package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
  140. package/dist/components/features/appointment-calendar/index.d.ts +3 -0
  141. package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
  142. package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
  143. package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
  144. package/dist/components/features/combobox/types.d.ts +4 -0
  145. package/dist/components/features/media-library/media-library.strings.d.ts +2 -0
  146. package/dist/components/features/rich-text-editor/index.d.ts +1 -1
  147. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +6 -0
  148. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +9 -1
  149. package/dist/components/features/table/table-header.d.ts +1 -1
  150. package/dist/components/features/table/table.strings.d.ts +55 -1
  151. package/dist/components/features/table/table.types.d.ts +17 -4
  152. package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
  153. package/dist/components/primitives/number.d.ts +4 -2
  154. package/dist/components/primitives/value.d.ts +3 -1
  155. package/dist/components/typography/text-link.d.ts +4 -0
  156. package/dist/components/ui/combobox-dismiss.d.ts +16 -0
  157. package/dist/components/ui/combobox.d.ts +16 -7
  158. package/dist/components/ui/dialog.d.ts +1 -1
  159. package/dist/components/ui/item.d.ts +8 -8
  160. package/dist/components/ui/popover.d.ts +1 -1
  161. package/dist/components/ui/sheet.d.ts +1 -1
  162. package/dist/components/ui/tabs.d.ts +1 -1
  163. package/dist/{containers-DmWiJa2I.js → containers-Mu1LMGV1.js} +2 -2
  164. package/dist/{containers-DmWiJa2I.js.map → containers-Mu1LMGV1.js.map} +1 -1
  165. package/dist/{copyable-B3Gwgdqc.js → copyable-ClBuk_UK.js} +4 -4
  166. package/dist/{copyable-B3Gwgdqc.js.map → copyable-ClBuk_UK.js.map} +1 -1
  167. package/dist/{data-display-DafIvCl5.js → data-display-DT_khPl_.js} +98 -87
  168. package/dist/data-display-DT_khPl_.js.map +1 -0
  169. package/dist/{date-BgK3bTdo.js → date-DCrsDTZc.js} +5 -5
  170. package/dist/{date-BgK3bTdo.js.map → date-DCrsDTZc.js.map} +1 -1
  171. package/dist/{date-picker-CF-DtUpF.js → date-picker-B2K3ucWn.js} +594 -593
  172. package/dist/date-picker-B2K3ucWn.js.map +1 -0
  173. package/dist/date-pickers-Ds8gLaoP.js +175 -0
  174. package/dist/date-pickers-Ds8gLaoP.js.map +1 -0
  175. package/dist/{display-DsQTVzMz.js → display-hAc1HjpI.js} +49 -49
  176. package/dist/display-hAc1HjpI.js.map +1 -0
  177. package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
  178. package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
  179. package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
  180. package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
  181. package/dist/features/activities.js +398 -375
  182. package/dist/features/activities.js.map +1 -1
  183. package/dist/features/ai-chat.js +188 -179
  184. package/dist/features/ai-chat.js.map +1 -1
  185. package/dist/features/appointment-calendar.js +683 -0
  186. package/dist/features/appointment-calendar.js.map +1 -0
  187. package/dist/features/async-preview.js +109 -107
  188. package/dist/features/async-preview.js.map +1 -1
  189. package/dist/features/combobox.js +1 -1
  190. package/dist/features/comments.js +1 -1
  191. package/dist/features/data-view.js +137 -137
  192. package/dist/features/data-view.js.map +1 -1
  193. package/dist/features/email-composer.js +255 -255
  194. package/dist/features/email-composer.js.map +1 -1
  195. package/dist/features/event-calendar.js +254 -248
  196. package/dist/features/event-calendar.js.map +1 -1
  197. package/dist/features/filters.js +1 -1
  198. package/dist/features/global-search.js +35 -32
  199. package/dist/features/global-search.js.map +1 -1
  200. package/dist/features/kanban.js +118 -117
  201. package/dist/features/kanban.js.map +1 -1
  202. package/dist/features/map.js +233 -231
  203. package/dist/features/map.js.map +1 -1
  204. package/dist/features/media-library.js +789 -775
  205. package/dist/features/media-library.js.map +1 -1
  206. package/dist/features/mentions.js +1 -1
  207. package/dist/features/overlays.js +1 -1
  208. package/dist/features/products.js +922 -902
  209. package/dist/features/products.js.map +1 -1
  210. package/dist/features/questionnaire.js +28 -24
  211. package/dist/features/questionnaire.js.map +1 -1
  212. package/dist/features/resource-assignment.js +18 -15
  213. package/dist/features/resource-assignment.js.map +1 -1
  214. package/dist/features/resource.js +12 -12
  215. package/dist/features/resource.js.map +1 -1
  216. package/dist/features/rich-text-editor.js +2 -2
  217. package/dist/features/schema-form.js +15 -13
  218. package/dist/features/schema-form.js.map +1 -1
  219. package/dist/features/suggestions.js +3 -3
  220. package/dist/features/sync.js +11 -5
  221. package/dist/features/sync.js.map +1 -1
  222. package/dist/features/table.js +1 -1
  223. package/dist/features/theme-tweaker.js +493 -489
  224. package/dist/features/theme-tweaker.js.map +1 -1
  225. package/dist/feedback-BYIhtitP.js +239 -0
  226. package/dist/feedback-BYIhtitP.js.map +1 -0
  227. package/dist/{field-affordance-recipes-qQeIf4lG.js → field-affordance-recipes-DZhnIL_Y.js} +11 -18
  228. package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
  229. package/dist/{filters-BkHH53uv.js → filters-DJVAveHA.js} +589 -580
  230. package/dist/filters-DJVAveHA.js.map +1 -0
  231. package/dist/{form-field-DUt4UxSV.js → form-field-CwH9y77i.js} +6 -5
  232. package/dist/form-field-CwH9y77i.js.map +1 -0
  233. package/dist/{form-sizing-By94KzXE.js → form-sizing-BdP_Mf5p.js} +39 -44
  234. package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
  235. package/dist/{forms-Bzha-Y3B.js → forms-B9G_xwzi.js} +8 -8
  236. package/dist/{forms-Bzha-Y3B.js.map → forms-B9G_xwzi.js.map} +1 -1
  237. package/dist/{forms-numeric-C0bvjRPZ.js → forms-numeric-B_jraJaQ.js} +309 -309
  238. package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
  239. package/dist/{header-BOefOKd1.js → header-BSfIEWbI.js} +160 -153
  240. package/dist/header-BSfIEWbI.js.map +1 -0
  241. package/dist/{hooks-9k_TtmKh.js → hooks-ClH9thn4.js} +2 -2
  242. package/dist/{hooks-9k_TtmKh.js.map → hooks-ClH9thn4.js.map} +1 -1
  243. package/dist/{icon-badge-CAuKupo9.js → icon-badge-DYKIwvOV.js} +4 -4
  244. package/dist/{icon-badge-CAuKupo9.js.map → icon-badge-DYKIwvOV.js.map} +1 -1
  245. package/dist/index.js +3 -3
  246. package/dist/input-CZw8iU99.js +21 -0
  247. package/dist/input-CZw8iU99.js.map +1 -0
  248. package/dist/input-DQdEd0YD.js +263 -0
  249. package/dist/input-DQdEd0YD.js.map +1 -0
  250. package/dist/{interaction-recipes-CHr0dJUs.js → interaction-recipes-XR9ZpVYL.js} +2 -1
  251. package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
  252. package/dist/item-K5_ghvze.js +275 -0
  253. package/dist/item-K5_ghvze.js.map +1 -0
  254. package/dist/layout/app-shell.js +1 -1
  255. package/dist/layout/auth.js +1 -1
  256. package/dist/layout/containers.js +1 -1
  257. package/dist/layout/header.js +1 -1
  258. package/dist/layout/hooks.js +1 -1
  259. package/dist/layout/navigation.js +1 -1
  260. package/dist/layout/page.js +1 -1
  261. package/dist/layout/settings.js +1 -1
  262. package/dist/layout/sidebar.js +2 -2
  263. package/dist/layout/workspace.js +1 -1
  264. package/dist/layout.js +10 -10
  265. package/dist/lib/affordance-geometry.generated.d.ts +71 -0
  266. package/dist/lib/editable-text-recipe.d.ts +4 -4
  267. package/dist/lib/field-affordance-recipes.d.ts +2 -2
  268. package/dist/lib/interaction-recipes.d.ts +5 -0
  269. package/dist/lib/theme-mode-css.d.ts +7 -0
  270. package/dist/lib/tone-recipes.d.ts +8 -0
  271. package/dist/lib/ui-provider/types.d.ts +2 -2
  272. package/dist/lib/use-popup-focus-recovery.d.ts +8 -0
  273. package/dist/lib/utils.js +1 -1
  274. package/dist/{media-gallery-DcTtAaeC.js → media-gallery-3zIVLMWH.js} +8 -8
  275. package/dist/media-gallery-3zIVLMWH.js.map +1 -0
  276. package/dist/{mentions-D-uyCh01.js → mentions-CGlEJ15c.js} +144 -142
  277. package/dist/mentions-CGlEJ15c.js.map +1 -0
  278. package/dist/{message-CdHgIWKf.js → message-DZ_ruyUV.js} +6 -5
  279. package/dist/message-DZ_ruyUV.js.map +1 -0
  280. package/dist/{metadata-list-X5rYAKSB.js → metadata-list-8N16ZMW_.js} +130 -119
  281. package/dist/metadata-list-8N16ZMW_.js.map +1 -0
  282. package/dist/{navigation-D3KwXmaq.js → navigation-Bnotn4AQ.js} +19 -19
  283. package/dist/navigation-Bnotn4AQ.js.map +1 -0
  284. package/dist/{navigation-HJf5zxlH.js → navigation-BzhHI3lo.js} +36 -35
  285. package/dist/navigation-BzhHI3lo.js.map +1 -0
  286. package/dist/{navigation-row-recipes-BVowojQw.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
  287. package/dist/{navigation-row-recipes-BVowojQw.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
  288. package/dist/{number-DMhe-Vsk.js → number-DbV1Dija.js} +36 -34
  289. package/dist/{number-DMhe-Vsk.js.map → number-DbV1Dija.js.map} +1 -1
  290. package/dist/{overflow-tab-bar-sQHXLlwQ.js → overflow-tab-bar-CWY7Nogn.js} +105 -103
  291. package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
  292. package/dist/{overlays-I0axtYA6.js → overlays-tMkF-VAN.js} +282 -278
  293. package/dist/overlays-tMkF-VAN.js.map +1 -0
  294. package/dist/{page-B5dTH9gE.js → page-CL9YeH_V.js} +8 -8
  295. package/dist/{page-B5dTH9gE.js.map → page-CL9YeH_V.js.map} +1 -1
  296. package/dist/{page-header-commands-DjzFEq3E.js → page-header-commands-DOb6WsfD.js} +5 -5
  297. package/dist/{page-header-commands-DjzFEq3E.js.map → page-header-commands-DOb6WsfD.js.map} +1 -1
  298. package/dist/pagination-BL25hu2s.js +158 -0
  299. package/dist/pagination-BL25hu2s.js.map +1 -0
  300. package/dist/{popover-Di55PyAI.js → popover-gnTOhbFM.js} +69 -66
  301. package/dist/popover-gnTOhbFM.js.map +1 -0
  302. package/dist/popover-menu-Cn9rUkdc.js +100 -0
  303. package/dist/popover-menu-Cn9rUkdc.js.map +1 -0
  304. package/dist/{popover.recipes-Bdyhj2db.js → popover.recipes-D3j8R8Yp.js} +17 -10
  305. package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
  306. package/dist/{primitives-B-CkiEMU.js → primitives-BFK08r9M.js} +45 -44
  307. package/dist/primitives-BFK08r9M.js.map +1 -0
  308. package/dist/primitives.js +4 -4
  309. package/dist/{progress-rnS8-uAW.js → progress-B1VnCT0K.js} +5 -5
  310. package/dist/{progress-rnS8-uAW.js.map → progress-B1VnCT0K.js.map} +1 -1
  311. package/dist/{receipt-D0oswZ0p.js → receipt-BVSOH3Xo.js} +9 -6
  312. package/dist/{receipt-D0oswZ0p.js.map → receipt-BVSOH3Xo.js.map} +1 -1
  313. package/dist/{rich-text-DvGulsNJ.js → rich-text-GOUyKQ-s.js} +3 -3
  314. package/dist/{rich-text-DvGulsNJ.js.map → rich-text-GOUyKQ-s.js.map} +1 -1
  315. package/dist/{rich-text-editor-sMU_Scqm.js → rich-text-editor-cRLC-eBK.js} +418 -426
  316. package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
  317. package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
  318. package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
  319. package/dist/{scroll-area-Bt_vXY2b.js → scroll-area-DcI-M1UT.js} +2 -2
  320. package/dist/{scroll-area-Bt_vXY2b.js.map → scroll-area-DcI-M1UT.js.map} +1 -1
  321. package/dist/{separator-C8DlRGwF.js → separator-BDV-Y648.js} +3 -3
  322. package/dist/{separator-C8DlRGwF.js.map → separator-BDV-Y648.js.map} +1 -1
  323. package/dist/{separator-CYHnjsAb.js → separator-Bom7NsGO.js} +2 -2
  324. package/dist/{separator-CYHnjsAb.js.map → separator-Bom7NsGO.js.map} +1 -1
  325. package/dist/services/actions.js +1 -1
  326. package/dist/{settings-CQW3b-Cu.js → settings-ybnjVwbd.js} +20 -19
  327. package/dist/settings-ybnjVwbd.js.map +1 -0
  328. package/dist/{sheet-4SEvVYzA.js → sheet-ijlsjq-n.js} +76 -73
  329. package/dist/sheet-ijlsjq-n.js.map +1 -0
  330. package/dist/{sidebar-C7WWR29L.js → sidebar-Db6gkh3U.js} +183 -182
  331. package/dist/sidebar-Db6gkh3U.js.map +1 -0
  332. package/dist/{sidebar-d7Dg80ln.js → sidebar-DkTO4VTO.js} +14 -13
  333. package/dist/{sidebar-d7Dg80ln.js.map → sidebar-DkTO4VTO.js.map} +1 -1
  334. package/dist/{skeleton-Cz890JZF.js → skeleton-Byjnt7qr.js} +3 -3
  335. package/dist/{skeleton-Cz890JZF.js.map → skeleton-Byjnt7qr.js.map} +1 -1
  336. package/dist/smart-card-DiC5aac3.js +604 -0
  337. package/dist/smart-card-DiC5aac3.js.map +1 -0
  338. package/dist/{structure-DC2dygdA.js → structure-BmisBK-3.js} +2 -2
  339. package/dist/{structure-DC2dygdA.js.map → structure-BmisBK-3.js.map} +1 -1
  340. package/dist/style.css +1 -1
  341. package/dist/table-BweFy_P9.js +1530 -0
  342. package/dist/table-BweFy_P9.js.map +1 -0
  343. package/dist/{table-CIKyLUsy.js → table-DsfzoUia.js} +75 -63
  344. package/dist/table-DsfzoUia.js.map +1 -0
  345. package/dist/{tabs-DwBJfjxX.js → tabs-CDocW5D1.js} +14 -13
  346. package/dist/tabs-CDocW5D1.js.map +1 -0
  347. package/dist/text-inputs-f9Ia-aCi.js +353 -0
  348. package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
  349. package/dist/theme-mode-css-BB-_RYab.js +14 -0
  350. package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
  351. package/dist/theme-scope-BJ6eE2xt.js +50 -0
  352. package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
  353. package/dist/theme.css +285 -228
  354. package/dist/themes/green.css +16 -12
  355. package/dist/timelines-CwM_9IhD.js +457 -0
  356. package/dist/timelines-CwM_9IhD.js.map +1 -0
  357. package/dist/{tone-recipes-CPoExcTE.js → tone-recipes-BPsRAvhu.js} +5 -2
  358. package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
  359. package/dist/{tooltip-CsfgrfS7.js → tooltip-yiRJUFjp.js} +4 -4
  360. package/dist/{tooltip-CsfgrfS7.js.map → tooltip-yiRJUFjp.js.map} +1 -1
  361. package/dist/{tree-BiKhg8AY.js → tree-WnKQzwbq.js} +9 -9
  362. package/dist/{tree-BiKhg8AY.js.map → tree-WnKQzwbq.js.map} +1 -1
  363. package/dist/typography/rich-text.js +1 -1
  364. package/dist/{typography-DTRkE9zL.js → typography-UTnveOEy.js} +6 -6
  365. package/dist/typography-UTnveOEy.js.map +1 -0
  366. package/dist/typography.js +2 -2
  367. package/dist/{ui-provider-1D_NSYzO.js → ui-provider-C_U0Xma4.js} +3 -3
  368. package/dist/ui-provider-C_U0Xma4.js.map +1 -0
  369. package/dist/ui-provider.js +2 -2
  370. package/dist/{upload-BO8-CLN6.js → upload-CXyxmQBP.js} +13 -12
  371. package/dist/upload-CXyxmQBP.js.map +1 -0
  372. package/dist/{upload-queue-EOC8g1gf.js → upload-queue-Boscubn9.js} +11 -9
  373. package/dist/upload-queue-Boscubn9.js.map +1 -0
  374. package/dist/{usage-card-obRaBskq.js → usage-card-BhO5eqkX.js} +53 -37
  375. package/dist/usage-card-BhO5eqkX.js.map +1 -0
  376. package/dist/use-popup-focus-recovery-C0QPvgOR.js +36 -0
  377. package/dist/use-popup-focus-recovery-C0QPvgOR.js.map +1 -0
  378. package/dist/{utils-l5LpDw2z.js → utils-BRhFDwuU.js} +59 -44
  379. package/dist/utils-BRhFDwuU.js.map +1 -0
  380. package/dist/{value-inputs-TAYMX111.js → value-inputs-TaX4OjNk.js} +268 -252
  381. package/dist/value-inputs-TaX4OjNk.js.map +1 -0
  382. package/dist/{value-typography-b8wpz1eX.js → value-typography-BP8OG6h5.js} +2 -2
  383. package/dist/{value-typography-b8wpz1eX.js.map → value-typography-BP8OG6h5.js.map} +1 -1
  384. package/dist/{workspace-DH0v0KcB.js → workspace-B-OEm3Kf.js} +34 -33
  385. package/dist/workspace-B-OEm3Kf.js.map +1 -0
  386. package/docs/consumer-skill/SKILL.md +3 -3
  387. package/docs/consumer-skill/references/agents-md.md +1 -1
  388. package/docs/consumer-skill/references/composition.md +8 -6
  389. package/docs/consumer-skill/references/installation.md +6 -0
  390. package/docs/consumer-skill/references/integration.md +4 -3
  391. package/docs/consumer-skill/references/public-api.json +105 -2
  392. package/docs/consumer-skill/references/review.md +7 -0
  393. package/docs/consumer-skill/references/theming.md +71 -6
  394. package/docs/consumer-skill/references/tokens.json +1 -1
  395. package/docs/consumer-skill/references/workflows.md +26 -0
  396. package/docs/consumer-skill/scripts/composition-policy.mjs +3 -2
  397. package/docs/consumer-skill/scripts/surface-policy.mjs +11 -0
  398. package/package.json +8 -4
  399. package/dist/accordion-B6a3vVgA.js.map +0 -1
  400. package/dist/action-menu-TzCoSlwL.js +0 -280
  401. package/dist/action-menu-TzCoSlwL.js.map +0 -1
  402. package/dist/affordance-geometry.generated-B5iu-Mkr.js +0 -69
  403. package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +0 -1
  404. package/dist/ai-artifact-BMJdv-6q.js +0 -1115
  405. package/dist/ai-artifact-BMJdv-6q.js.map +0 -1
  406. package/dist/attachment-BtfhGm8i.js +0 -245
  407. package/dist/attachment-BtfhGm8i.js.map +0 -1
  408. package/dist/auth-CYxKfo69.js.map +0 -1
  409. package/dist/avatar-BBnEJIx8.js.map +0 -1
  410. package/dist/badge-MrKVNzW9.js.map +0 -1
  411. package/dist/batch-action-bar-BZGDG-Si.js.map +0 -1
  412. package/dist/breadcrumbs-D5t7I023.js.map +0 -1
  413. package/dist/buttons-SbIcm1HJ.js.map +0 -1
  414. package/dist/cards-CiiHpKYd.js +0 -66
  415. package/dist/cards-CiiHpKYd.js.map +0 -1
  416. package/dist/chart-QfrARkXl.js.map +0 -1
  417. package/dist/choice-inputs-t6w3ATNz.js.map +0 -1
  418. package/dist/code-block-Dgbu-CU3.js.map +0 -1
  419. package/dist/combobox-2Ic8N9bL.js +0 -278
  420. package/dist/combobox-2Ic8N9bL.js.map +0 -1
  421. package/dist/combobox-DLl0bfiq.js.map +0 -1
  422. package/dist/comments-BpDuCUUu.js.map +0 -1
  423. package/dist/data-display-DafIvCl5.js.map +0 -1
  424. package/dist/date-picker-CF-DtUpF.js.map +0 -1
  425. package/dist/date-pickers-BmzxJl5l.js +0 -174
  426. package/dist/date-pickers-BmzxJl5l.js.map +0 -1
  427. package/dist/display-DsQTVzMz.js.map +0 -1
  428. package/dist/dropdown-menu-E2qmdC7o.js +0 -193
  429. package/dist/dropdown-menu-E2qmdC7o.js.map +0 -1
  430. package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
  431. package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
  432. package/dist/feedback-qNuMBtRH.js +0 -233
  433. package/dist/feedback-qNuMBtRH.js.map +0 -1
  434. package/dist/field-affordance-recipes-qQeIf4lG.js.map +0 -1
  435. package/dist/filters-BkHH53uv.js.map +0 -1
  436. package/dist/form-field-DUt4UxSV.js.map +0 -1
  437. package/dist/form-sizing-By94KzXE.js.map +0 -1
  438. package/dist/forms-numeric-C0bvjRPZ.js.map +0 -1
  439. package/dist/header-BOefOKd1.js.map +0 -1
  440. package/dist/input-DWhBBBww.js +0 -262
  441. package/dist/input-DWhBBBww.js.map +0 -1
  442. package/dist/input-Ddi_LSYv.js +0 -20
  443. package/dist/input-Ddi_LSYv.js.map +0 -1
  444. package/dist/interaction-recipes-CHr0dJUs.js.map +0 -1
  445. package/dist/item-DEmDiTlD.js +0 -265
  446. package/dist/item-DEmDiTlD.js.map +0 -1
  447. package/dist/media-gallery-DcTtAaeC.js.map +0 -1
  448. package/dist/mentions-D-uyCh01.js.map +0 -1
  449. package/dist/message-CdHgIWKf.js.map +0 -1
  450. package/dist/metadata-list-X5rYAKSB.js.map +0 -1
  451. package/dist/navigation-D3KwXmaq.js.map +0 -1
  452. package/dist/navigation-HJf5zxlH.js.map +0 -1
  453. package/dist/overflow-tab-bar-sQHXLlwQ.js.map +0 -1
  454. package/dist/overlays-I0axtYA6.js.map +0 -1
  455. package/dist/pagination-3bPA_a6K.js +0 -149
  456. package/dist/pagination-3bPA_a6K.js.map +0 -1
  457. package/dist/popover-Di55PyAI.js.map +0 -1
  458. package/dist/popover-menu-B71Tn2Qz.js +0 -99
  459. package/dist/popover-menu-B71Tn2Qz.js.map +0 -1
  460. package/dist/popover.recipes-Bdyhj2db.js.map +0 -1
  461. package/dist/primitives-B-CkiEMU.js.map +0 -1
  462. package/dist/rich-text-editor-sMU_Scqm.js.map +0 -1
  463. package/dist/rich-text-editor.recipes-CadiF_Uu.js +0 -88
  464. package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +0 -1
  465. package/dist/settings-CQW3b-Cu.js.map +0 -1
  466. package/dist/sheet-4SEvVYzA.js.map +0 -1
  467. package/dist/sidebar-C7WWR29L.js.map +0 -1
  468. package/dist/smart-card-lFKxn5Hu.js +0 -595
  469. package/dist/smart-card-lFKxn5Hu.js.map +0 -1
  470. package/dist/spinner-fa3h1Aif.js +0 -80
  471. package/dist/spinner-fa3h1Aif.js.map +0 -1
  472. package/dist/table-CIKyLUsy.js.map +0 -1
  473. package/dist/table-CrcLN9Io.js +0 -1458
  474. package/dist/table-CrcLN9Io.js.map +0 -1
  475. package/dist/tabs-DwBJfjxX.js.map +0 -1
  476. package/dist/text-inputs-aaK9wcDT.js +0 -326
  477. package/dist/text-inputs-aaK9wcDT.js.map +0 -1
  478. package/dist/theme-scope-kStaAer0.js +0 -39
  479. package/dist/theme-scope-kStaAer0.js.map +0 -1
  480. package/dist/timelines-C_SBwHNP.js +0 -442
  481. package/dist/timelines-C_SBwHNP.js.map +0 -1
  482. package/dist/tone-recipes-CPoExcTE.js.map +0 -1
  483. package/dist/typography-DTRkE9zL.js.map +0 -1
  484. package/dist/ui-provider-1D_NSYzO.js.map +0 -1
  485. package/dist/upload-BO8-CLN6.js.map +0 -1
  486. package/dist/upload-queue-EOC8g1gf.js.map +0 -1
  487. package/dist/usage-card-obRaBskq.js.map +0 -1
  488. package/dist/utils-l5LpDw2z.js.map +0 -1
  489. package/dist/value-inputs-TAYMX111.js.map +0 -1
  490. package/dist/workspace-DH0v0KcB.js.map +0 -1
@@ -1,29 +1,77 @@
1
1
  "use client";
2
- import { s as e, v as t } from "./ui-provider-1D_NSYzO.js";
2
+ import { s as e, v as t } from "./ui-provider-C_U0Xma4.js";
3
3
  import { useStrings as n } from "./lib/strings.js";
4
- import { t as r } from "./utils-l5LpDw2z.js";
5
- import { n as i } from "./buttons-SbIcm1HJ.js";
6
- import { a, s as o } from "./typography-DTRkE9zL.js";
7
- import { t as s } from "./structure-DC2dygdA.js";
8
- import { t as c } from "./tone-recipes-CPoExcTE.js";
9
- import { t as l } from "./feedback-qNuMBtRH.js";
4
+ import { t as r } from "./utils-BRhFDwuU.js";
5
+ import { n as i } from "./buttons-DPZekJFu.js";
6
+ import { c as a, o } from "./typography-UTnveOEy.js";
7
+ import { t as s } from "./structure-BmisBK-3.js";
8
+ import { n as c } from "./tone-recipes-BPsRAvhu.js";
9
+ import { t as l } from "./feedback-BYIhtitP.js";
10
10
  import { t as u } from "./layer-recipes-CCpklYME.js";
11
- import { n as d, r as f } from "./field-affordance-recipes-qQeIf4lG.js";
12
- import { S as p, b as m, d as h, g, h as _, l as v, m as y, n as b, o as x, p as S, r as C, u as w, x as T, y as E } from "./combobox-2Ic8N9bL.js";
13
- import { c as D, l as O } from "./form-sizing-By94KzXE.js";
14
- import { t as k } from "./input-DWhBBBww.js";
15
- import { t as A } from "./scroll-area-Bt_vXY2b.js";
11
+ import { n as d, r as f } from "./field-affordance-recipes-DZhnIL_Y.js";
12
+ import { C as p, S as m, _ as h, a as g, b as _, g as v, h as y, m as b, o as x, p as S, t as C, u as w, v as T, w as E, x as D } from "./combobox-DaHESuiL.js";
13
+ import { l as O, u as k } from "./form-sizing-BdP_Mf5p.js";
14
+ import { t as A } from "./input-DQdEd0YD.js";
15
+ import { t as ee } from "./scroll-area-DcI-M1UT.js";
16
16
  import { t as j } from "./use-debounced-callback-Cx1h-hdv.js";
17
17
  import * as M from "react";
18
18
  import { useCallback as N, useEffect as P, useMemo as F, useRef as I, useState as L } from "react";
19
- import { Fragment as ee, jsx as R, jsxs as z } from "react/jsx-runtime";
20
- import { ChevronDownIcon as te, Loader2 as B, PlusIcon as ne, XIcon as V } from "lucide-react";
21
- import { Combobox as H } from "@base-ui/react/combobox";
19
+ import { Fragment as te, jsx as R, jsxs as z } from "react/jsx-runtime";
20
+ import { ChevronDownIcon as B, Loader2 as ne, PlusIcon as V, XIcon as H } from "lucide-react";
21
+ import { Combobox as U } from "@base-ui/react/combobox";
22
+ //#region src/components/base/combobox/combobox-field.tsx
23
+ function re({ placeholder: e, clearLabel: t, toggleLabel: n, size: a, error: o, required: s, disabled: c, clearable: l = !0, className: u, onBlur: p }) {
24
+ return /* @__PURE__ */ z("div", {
25
+ className: "relative",
26
+ children: [/* @__PURE__ */ R(D, {
27
+ render: /* @__PURE__ */ R(A, {
28
+ size: a,
29
+ invalid: o,
30
+ className: r(l ? f.clearPadding[a] : f.padding[a], u)
31
+ }),
32
+ placeholder: e,
33
+ "aria-invalid": o || void 0,
34
+ "aria-required": s,
35
+ disabled: c,
36
+ onBlur: p
37
+ }), /* @__PURE__ */ z("div", {
38
+ className: r("absolute inset-y-0 flex items-center gap-space-xs text-muted-foreground", f.track[a]),
39
+ children: [l ? /* @__PURE__ */ R(U.Clear, { render: /* @__PURE__ */ R(i, {
40
+ type: "button",
41
+ tone: "secondary",
42
+ buttonStyle: "ghost",
43
+ size: "sm",
44
+ iconOnly: !0,
45
+ className: r(d.target, d.focus, d.clear),
46
+ "aria-label": t,
47
+ children: /* @__PURE__ */ R(H, {
48
+ className: d.icon,
49
+ "aria-hidden": "true"
50
+ })
51
+ }) }) : null, /* @__PURE__ */ R(U.Trigger, { render: /* @__PURE__ */ R(i, {
52
+ type: "button",
53
+ tone: "secondary",
54
+ buttonStyle: "ghost",
55
+ size: "sm",
56
+ iconOnly: !0,
57
+ className: r(d.target, d.focus, d.toggle),
58
+ "aria-label": n,
59
+ children: /* @__PURE__ */ R(B, {
60
+ className: r("shrink-0", f.icon[a]),
61
+ "aria-hidden": "true"
62
+ })
63
+ }) })]
64
+ })]
65
+ });
66
+ }
67
+ //#endregion
22
68
  //#region src/components/features/combobox/combobox.strings.ts
23
- var U = {
69
+ var W = {
24
70
  placeholder: "Search...",
25
71
  clear: "Clear selection",
26
72
  toggle: "Open options",
73
+ dismiss: "Dismiss",
74
+ removeSelection: (e) => `Remove ${e}`,
27
75
  searching: "Loading...",
28
76
  noResults: "No results found.",
29
77
  typeToSearch: "Type at least {min} characters to search...",
@@ -32,20 +80,20 @@ var U = {
32
80
  loadingMore: "Loading...",
33
81
  apply: "Apply",
34
82
  cancel: "Cancel"
35
- }, W = Symbol("combobox-create-option");
36
- function G(e) {
37
- return typeof e == "object" && !!e && W in e;
38
- }
83
+ }, G = Symbol("combobox-create-option");
39
84
  function K(e) {
40
- if (!G(e)) throw Error("Item is not a create option");
41
- return e[W];
85
+ return typeof e == "object" && !!e && G in e;
42
86
  }
43
87
  function q(e) {
44
- return { [W]: e };
88
+ if (!K(e)) throw Error("Item is not a create option");
89
+ return e[G];
90
+ }
91
+ function J(e) {
92
+ return { [G]: e };
45
93
  }
46
94
  //#endregion
47
95
  //#region src/components/features/combobox/components/loading-more.tsx
48
- function re({ loading: e, text: t, className: n }) {
96
+ function Y({ loading: e, text: t, className: n }) {
49
97
  return e ? /* @__PURE__ */ z(s, {
50
98
  direction: "horizontal",
51
99
  gap: "sm",
@@ -54,10 +102,10 @@ function re({ loading: e, text: t, className: n }) {
54
102
  className: r("loading-more--component", "px-control py-space-xs text-xs text-muted-foreground", n),
55
103
  role: "status",
56
104
  "aria-live": "polite",
57
- children: [/* @__PURE__ */ R(B, {
105
+ children: [/* @__PURE__ */ R(ne, {
58
106
  className: "size-icon-sm animate-spin",
59
107
  "aria-hidden": "true"
60
- }), /* @__PURE__ */ R(o, {
108
+ }), /* @__PURE__ */ R(a, {
61
109
  tag: "span",
62
110
  size: "xs",
63
111
  type: "secondary",
@@ -66,11 +114,11 @@ function re({ loading: e, text: t, className: n }) {
66
114
  })]
67
115
  }) : null;
68
116
  }
69
- re.displayName = "LoadingMore";
117
+ Y.displayName = "LoadingMore";
70
118
  //#endregion
71
119
  //#region src/components/features/combobox/components/status-content.tsx
72
- function J({ children: e }) {
73
- return /* @__PURE__ */ R(o, {
120
+ function X({ children: e }) {
121
+ return /* @__PURE__ */ R(a, {
74
122
  tag: "span",
75
123
  size: "inherit",
76
124
  type: "secondary",
@@ -78,41 +126,41 @@ function J({ children: e }) {
78
126
  children: e
79
127
  });
80
128
  }
81
- function Y({ loading: e, searchValue: t, minSearchLength: n, itemCount: r, strings: i }) {
129
+ function ie({ loading: e, searchValue: t, minSearchLength: n, itemCount: r, strings: i }) {
82
130
  let a = t.trim();
83
- if (e) return /* @__PURE__ */ z(ee, { children: [/* @__PURE__ */ R(B, { className: "size-icon-sm animate-spin" }), /* @__PURE__ */ R(J, { children: i.searching })] });
84
- if (a === "") return i.typeToSearch.includes("{min}") ? /* @__PURE__ */ R(J, { children: i.typeToSearch.replace("{min}", String(n)) }) : /* @__PURE__ */ R(J, { children: i.typeToSearch });
131
+ if (e) return /* @__PURE__ */ z(te, { children: [/* @__PURE__ */ R(ne, { className: "size-icon-sm animate-spin" }), /* @__PURE__ */ R(X, { children: i.searching })] });
132
+ if (a === "") return i.typeToSearch.includes("{min}") ? /* @__PURE__ */ R(X, { children: i.typeToSearch.replace("{min}", String(n)) }) : /* @__PURE__ */ R(X, { children: i.typeToSearch });
85
133
  if (a.length < n) {
86
134
  let e = n - a.length;
87
- return i.typeMore.includes("{remaining}") || i.typeMore.includes("{s}") ? /* @__PURE__ */ R(J, { children: i.typeMore.replace("{remaining}", String(e)).replace("{s}", e === 1 ? "" : "s") }) : /* @__PURE__ */ R(J, { children: i.typeMore });
135
+ return i.typeMore.includes("{remaining}") || i.typeMore.includes("{s}") ? /* @__PURE__ */ R(X, { children: i.typeMore.replace("{remaining}", String(e)).replace("{s}", e === 1 ? "" : "s") }) : /* @__PURE__ */ R(X, { children: i.typeMore });
88
136
  }
89
137
  return null;
90
138
  }
91
- Y.displayName = "StatusContent";
139
+ ie.displayName = "StatusContent";
92
140
  //#endregion
93
141
  //#region src/components/features/combobox/components/combobox-dropdown.tsx
94
- var ie = {
142
+ var ae = {
95
143
  sm: "sm",
96
144
  md: "md",
97
145
  lg: "lg"
98
- }, ae = {
146
+ }, oe = {
99
147
  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",
100
148
  md: "flex min-h-control items-center justify-center px-row-x py-row-y text-center text-sm leading-tight text-muted-foreground",
101
149
  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"
102
150
  };
103
- function oe({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearchLength: l, items: d, groupedItems: f, createOptionItem: h, renderItemContent: v, getItemReactKey: x, getItemDisabled: w, renderGroupLabel: D, loadingMore: O, strings: k, size: j = "md", portalContainer: M, listRef: N, anchor: P, applyFooter: F }) {
104
- let I = M == null ? void 0 : u.nestedOverlay, L = ie[j];
105
- if (!(t || n || d.length > 0 || O || F)) return null;
106
- let te = /* @__PURE__ */ R(T, {
107
- anchor: P,
108
- className: I,
109
- children: /* @__PURE__ */ z(C, {
151
+ function se({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearchLength: l, items: d, groupedItems: f, createOptionItem: b, renderItemContent: S, getItemReactKey: C, getItemDisabled: w, renderGroupLabel: D, loadingMore: O, strings: k, size: A = "md", portalContainer: j, listRef: M, anchor: N, applyFooter: P }) {
152
+ let F = j == null ? void 0 : u.nestedOverlay, I = ae[A];
153
+ if (!(t || n || d.length > 0 || O || P)) return null;
154
+ let L = /* @__PURE__ */ R(p, {
155
+ anchor: N,
156
+ className: F,
157
+ children: /* @__PURE__ */ z(x, {
110
158
  "aria-busy": e || void 0,
111
159
  className: r("combobox-dropdown--popup"),
112
160
  children: [
113
- !!t && /* @__PURE__ */ R(p, {
161
+ !!t && /* @__PURE__ */ R(E, {
114
162
  className: "gap-space-sm px-control py-space-xs text-xs text-muted-foreground",
115
- children: /* @__PURE__ */ R(Y, {
163
+ children: /* @__PURE__ */ R(ie, {
116
164
  loading: e,
117
165
  searchValue: c,
118
166
  minSearchLength: l,
@@ -120,9 +168,9 @@ function oe({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearch
120
168
  strings: k
121
169
  })
122
170
  }),
123
- !!n && /* @__PURE__ */ R(y, {
124
- className: ae[j],
125
- children: /* @__PURE__ */ R(o, {
171
+ !!n && /* @__PURE__ */ R(v, {
172
+ className: oe[A],
173
+ children: /* @__PURE__ */ R(a, {
126
174
  tag: "span",
127
175
  size: "inherit",
128
176
  type: "secondary",
@@ -130,40 +178,40 @@ function oe({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearch
130
178
  children: k.noResults
131
179
  })
132
180
  }),
133
- /* @__PURE__ */ R(A, {
134
- viewportRef: N,
181
+ /* @__PURE__ */ R(ee, {
182
+ viewportRef: M,
135
183
  className: "max-h-[min(20rem,var(--available-height))]",
136
- children: /* @__PURE__ */ R(E, {
184
+ children: /* @__PURE__ */ R(_, {
137
185
  className: "combobox-dropdown--list max-h-none overflow-visible",
138
- children: f ? /* @__PURE__ */ z(ee, { children: [Array.from(f.entries()).map(([e, t]) => {
186
+ children: f ? /* @__PURE__ */ z(te, { children: [Array.from(f.entries()).map(([e, t]) => {
139
187
  let n = typeof D == "function" ? D(e) : e;
140
- return /* @__PURE__ */ z(_, {
188
+ return /* @__PURE__ */ z(h, {
141
189
  className: "combobox-dropdown--group p-0",
142
190
  items: t,
143
- children: [/* @__PURE__ */ R(g, { children: typeof n == "string" || typeof n == "number" || typeof n == "bigint" ? /* @__PURE__ */ R(a, { children: n }) : n }), /* @__PURE__ */ R(S, { children: (e) => /* @__PURE__ */ R(b, {
191
+ children: [/* @__PURE__ */ R(T, { children: typeof n == "string" || typeof n == "number" || typeof n == "bigint" ? /* @__PURE__ */ R(o, { children: n }) : n }), /* @__PURE__ */ R(y, { children: (e) => /* @__PURE__ */ R(g, {
144
192
  value: e,
145
- size: L,
193
+ size: I,
146
194
  disabled: w?.(e),
147
- children: v(e)
148
- }, x(e)) })]
195
+ children: S(e)
196
+ }, C(e)) })]
149
197
  }, e);
150
- }), h != null && /* @__PURE__ */ R(b, {
151
- value: h,
152
- size: L,
153
- children: v(h)
154
- }, x(h))] }) : /* @__PURE__ */ R(S, { children: (e) => /* @__PURE__ */ R(b, {
198
+ }), b != null && /* @__PURE__ */ R(g, {
199
+ value: b,
200
+ size: I,
201
+ children: S(b)
202
+ }, C(b))] }) : /* @__PURE__ */ R(y, { children: (e) => /* @__PURE__ */ R(g, {
155
203
  value: e,
156
- size: L,
204
+ size: I,
157
205
  disabled: w?.(e),
158
- children: v(e)
159
- }, x(e)) })
206
+ children: S(e)
207
+ }, C(e)) })
160
208
  })
161
209
  }),
162
- /* @__PURE__ */ R(re, {
210
+ /* @__PURE__ */ R(Y, {
163
211
  loading: !!O,
164
212
  text: k.loadingMore
165
213
  }),
166
- !!F && /* @__PURE__ */ z(s, {
214
+ !!P && /* @__PURE__ */ z(s, {
167
215
  direction: "horizontal",
168
216
  gap: "md",
169
217
  justify: "end",
@@ -174,31 +222,31 @@ function oe({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearch
174
222
  tone: "secondary",
175
223
  buttonStyle: "ghost",
176
224
  onClick: (e) => {
177
- e.preventDefault(), e.stopPropagation(), F.onCancel();
225
+ e.preventDefault(), e.stopPropagation(), P.onCancel();
178
226
  },
179
- children: F.cancelLabel
227
+ children: P.cancelLabel
180
228
  }), /* @__PURE__ */ R(i, {
181
229
  type: "button",
182
230
  tone: "primary",
183
231
  onClick: (e) => {
184
- e.preventDefault(), e.stopPropagation(), F.onApply();
232
+ e.preventDefault(), e.stopPropagation(), P.onApply();
185
233
  },
186
- children: F.applyLabel
234
+ children: P.applyLabel
187
235
  })]
188
236
  })
189
237
  ]
190
238
  })
191
239
  });
192
- return M ? /* @__PURE__ */ R(m, {
193
- container: M,
194
- children: te
195
- }) : /* @__PURE__ */ R(m, { children: te });
240
+ return j ? /* @__PURE__ */ R(m, {
241
+ container: j,
242
+ children: L
243
+ }) : /* @__PURE__ */ R(m, { children: L });
196
244
  }
197
- oe.displayName = "ComboboxDropdown";
245
+ se.displayName = "ComboboxDropdown";
198
246
  //#endregion
199
247
  //#region src/components/features/combobox/components/error-message.tsx
200
- function se({ error: e, size: t, className: n }) {
201
- return e ? /* @__PURE__ */ R(o, {
248
+ function ce({ error: e, size: t, className: n }) {
249
+ return e ? /* @__PURE__ */ R(a, {
202
250
  tag: "p",
203
251
  size: "xs",
204
252
  type: "error",
@@ -208,39 +256,39 @@ function se({ error: e, size: t, className: n }) {
208
256
  children: e
209
257
  }) : null;
210
258
  }
211
- se.displayName = "ErrorMessage";
259
+ ce.displayName = "ErrorMessage";
212
260
  //#endregion
213
261
  //#region src/components/features/combobox/components/highlighted-text.tsx
214
- function ce(e) {
262
+ function le(e) {
215
263
  return e.replace(/[$()*+.?[\\\]^{|}]/g, "\\$&");
216
264
  }
217
- function X({ text: e, highlight: t, highlightClassName: n = c.match }) {
218
- if (!t.trim()) return /* @__PURE__ */ R(o, {
265
+ function ue({ text: e, highlight: t, highlightClassName: n = c.match }) {
266
+ if (!t.trim()) return /* @__PURE__ */ R(a, {
219
267
  tag: "span",
220
268
  size: "inherit",
221
269
  lineHeight: "tight",
222
270
  className: "text-inherit",
223
271
  children: e
224
272
  });
225
- let r = RegExp(`(${ce(t)})`, "gi"), i = e.split(r), a = 0;
226
- return /* @__PURE__ */ R(o, {
273
+ let r = RegExp(`(${le(t)})`, "gi"), i = e.split(r), o = 0;
274
+ return /* @__PURE__ */ R(a, {
227
275
  tag: "span",
228
276
  size: "inherit",
229
277
  lineHeight: "tight",
230
278
  className: "text-inherit",
231
279
  children: i.map((e, t) => {
232
- let r = t % 2 == 1, i = String(a);
233
- return a += e.length, r ? /* @__PURE__ */ R("mark", {
280
+ let r = t % 2 == 1, i = String(o);
281
+ return o += e.length, r ? /* @__PURE__ */ R("mark", {
234
282
  className: n,
235
283
  children: e
236
284
  }, i) : /* @__PURE__ */ R(M.Fragment, { children: e }, i);
237
285
  })
238
286
  });
239
287
  }
240
- X.displayName = "HighlightedText";
288
+ ue.displayName = "HighlightedText";
241
289
  //#endregion
242
290
  //#region src/components/features/combobox/hooks/use-debounced-search.ts
243
- function le({ searchValue: e, onSearch: t, debounceMs: n = 300, minSearchLength: r = 3 }) {
291
+ function de({ searchValue: e, onSearch: t, debounceMs: n = 300, minSearchLength: r = 3 }) {
244
292
  let i = j((e) => {
245
293
  t?.(e);
246
294
  }, n);
@@ -255,7 +303,7 @@ function le({ searchValue: e, onSearch: t, debounceMs: n = 300, minSearchLength:
255
303
  }
256
304
  //#endregion
257
305
  //#region src/components/features/combobox/hooks/use-grouped-items.ts
258
- function ue({ items: e, getItemGroup: t }) {
306
+ function fe({ items: e, getItemGroup: t }) {
259
307
  return F(() => {
260
308
  if (!t) return null;
261
309
  let n = /* @__PURE__ */ new Map();
@@ -268,7 +316,7 @@ function ue({ items: e, getItemGroup: t }) {
268
316
  }
269
317
  //#endregion
270
318
  //#region src/components/features/combobox/hooks/use-load-more.ts
271
- function de({ hasMore: e, onLoadMore: t, loadingMore: n }) {
319
+ function pe({ hasMore: e, onLoadMore: t, loadingMore: n }) {
272
320
  let r = I(!1), i = I(null), a = j(() => {
273
321
  r.current = !0, t?.(), i.current && clearTimeout(i.current), i.current = setTimeout(() => {
274
322
  r.current = !1, i.current = null;
@@ -289,22 +337,22 @@ function de({ hasMore: e, onLoadMore: t, loadingMore: n }) {
289
337
  }
290
338
  //#endregion
291
339
  //#region src/components/features/combobox/hooks/use-combobox-core.tsx
292
- function fe(e) {
293
- return n(U, e);
340
+ function me(e) {
341
+ return n(W, e);
294
342
  }
295
- function pe(e, t, n) {
343
+ function he(e, t, n) {
296
344
  let r = t.toLowerCase();
297
345
  return e.some((e) => n(e).toLowerCase() === r);
298
346
  }
299
- function me({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading: a = !1, showListContent: s = !0, minSearchLength: c = 3, strings: l, renderItem: u, onSearch: d, debounceMs: f = 300, creatable: p, onCreate: m, getItemGroup: h, hasMore: g, onLoadMore: _, loadingMore: v, highlightMatch: y, ensuredItems: b = [] }) {
300
- let x = fe(l), S = i ?? n, C = I(null), w = t.trim(), T = s && (a || w.length < c);
301
- le({
347
+ function ge({ 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 = [] }) {
348
+ let x = me(l), S = i ?? n, C = I(null), w = t.trim(), T = s && (o || w.length < c);
349
+ de({
302
350
  searchValue: t,
303
351
  onSearch: d,
304
352
  debounceMs: f,
305
353
  minSearchLength: c
306
354
  });
307
- let { handleScroll: E } = de({
355
+ let { handleScroll: E } = pe({
308
356
  hasMore: s && !T ? g : !1,
309
357
  onLoadMore: _,
310
358
  loadingMore: v
@@ -333,10 +381,10 @@ function me({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
333
381
  S,
334
382
  s,
335
383
  T
336
- ]), O = ue({
384
+ ]), O = fe({
337
385
  items: D,
338
386
  getItemGroup: h
339
- }), k = F(() => !s || T || !p || !m || w.length < c ? !1 : !pe(D, w, n), [
387
+ }), k = F(() => !s || T || !p || !m || w.length < c ? !1 : !he(D, w, n), [
340
388
  p,
341
389
  m,
342
390
  w,
@@ -345,7 +393,7 @@ function me({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
345
393
  n,
346
394
  s,
347
395
  T
348
- ]), A = F(() => k ? q(w) : null, [k, w]);
396
+ ]), A = F(() => k ? J(w) : null, [k, w]);
349
397
  return {
350
398
  strings: x,
351
399
  getKey: S,
@@ -356,14 +404,14 @@ function me({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
356
404
  groupedItems: O,
357
405
  createOptionItem: A,
358
406
  showStatus: T,
359
- showEmpty: s && !a && w.length >= c && e.length === 0 && !k,
407
+ showEmpty: s && !o && w.length >= c && e.length === 0 && !k,
360
408
  showCreateOption: k,
361
409
  renderItemContent: N((e) => {
362
- if (G(e)) {
363
- let t = K(e);
410
+ if (K(e)) {
411
+ let t = q(e);
364
412
  return /* @__PURE__ */ z("span", {
365
413
  className: r("combobox-core--component", "flex items-center gap-space-sm"),
366
- children: [/* @__PURE__ */ R(ne, { className: "size-icon-sm" }), x.createNew.includes("{value}") ? /* @__PURE__ */ R(o, {
414
+ children: [/* @__PURE__ */ R(V, { className: "size-icon-sm" }), x.createNew.includes("{value}") ? /* @__PURE__ */ R(a, {
367
415
  tag: "span",
368
416
  size: "inherit",
369
417
  weight: "medium",
@@ -372,14 +420,14 @@ function me({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
372
420
  children: x.createNew.replace("{value}", t)
373
421
  }) : /* @__PURE__ */ z("span", {
374
422
  className: "inline-flex items-center gap-space-sm",
375
- children: [/* @__PURE__ */ R(o, {
423
+ children: [/* @__PURE__ */ R(a, {
376
424
  tag: "span",
377
425
  size: "inherit",
378
426
  weight: "medium",
379
427
  lineHeight: "tight",
380
428
  className: "text-inherit",
381
429
  children: x.createNew
382
- }), /* @__PURE__ */ R(o, {
430
+ }), /* @__PURE__ */ R(a, {
383
431
  tag: "span",
384
432
  size: "inherit",
385
433
  weight: "medium",
@@ -392,10 +440,10 @@ function me({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
392
440
  }
393
441
  if (u) return u(e);
394
442
  let t = n(e);
395
- return y && w ? /* @__PURE__ */ R(X, {
443
+ return y && w ? /* @__PURE__ */ R(ue, {
396
444
  text: t,
397
445
  highlight: w
398
- }) : /* @__PURE__ */ R(o, {
446
+ }) : /* @__PURE__ */ R(a, {
399
447
  tag: "span",
400
448
  size: "inherit",
401
449
  weight: "medium",
@@ -410,70 +458,26 @@ function me({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
410
458
  y,
411
459
  w
412
460
  ]),
413
- itemToStringLabel: N((e) => G(e) ? K(e) : n(e), [n]),
414
- getItemReactKey: N((e) => G(e) ? `__create__:${K(e)}` : String(S(e)), [S]),
461
+ itemToStringLabel: N((e) => K(e) ? q(e) : n(e), [n]),
462
+ getItemReactKey: N((e) => K(e) ? `__create__:${q(e)}` : String(S(e)), [S]),
415
463
  handleScroll: E
416
464
  };
417
465
  }
418
466
  //#endregion
419
467
  //#region src/components/features/combobox/combobox.tsx
420
- function he(e, n) {
468
+ function _e(e, n) {
421
469
  return t(e, n, "md");
422
470
  }
423
- var ge = {
471
+ var ve = {
424
472
  sm: "sm",
425
473
  md: "md",
426
474
  lg: "lg"
427
475
  };
428
- function _e(e) {
476
+ function ye(e) {
429
477
  return e;
430
478
  }
431
- function ve({ placeholder: e, clearLabel: t, toggleLabel: n, size: a, error: o, required: s, disabled: c, clearable: l = !0, className: u, onBlur: p }) {
432
- return /* @__PURE__ */ z("div", {
433
- className: "relative",
434
- children: [/* @__PURE__ */ R(H.Input, {
435
- render: /* @__PURE__ */ R(k, {
436
- size: a,
437
- invalid: o,
438
- className: r(l ? f.clearPadding[a] : f.padding[a], u)
439
- }),
440
- placeholder: e,
441
- "aria-invalid": o || void 0,
442
- "aria-required": s,
443
- disabled: c,
444
- onBlur: p
445
- }), /* @__PURE__ */ z("div", {
446
- className: r("absolute inset-y-0 flex items-center gap-space-xs text-muted-foreground", f.track[a]),
447
- children: [l ? /* @__PURE__ */ R(H.Clear, { render: /* @__PURE__ */ R(i, {
448
- type: "button",
449
- tone: "secondary",
450
- buttonStyle: "ghost",
451
- size: "sm",
452
- iconOnly: !0,
453
- className: r(d.target, d.focus, d.clear),
454
- "aria-label": t,
455
- children: /* @__PURE__ */ R(V, {
456
- className: d.icon,
457
- "aria-hidden": "true"
458
- })
459
- }) }) : null, /* @__PURE__ */ R(H.Trigger, { render: /* @__PURE__ */ R(i, {
460
- type: "button",
461
- tone: "secondary",
462
- buttonStyle: "ghost",
463
- size: "sm",
464
- iconOnly: !0,
465
- className: r(d.target, d.focus, d.toggle),
466
- "aria-label": n,
467
- children: /* @__PURE__ */ R(te, {
468
- className: r("shrink-0", f.icon[a]),
469
- "aria-hidden": "true"
470
- })
471
- }) })]
472
- })]
473
- });
474
- }
475
- function Z({ items: t, selectedValue: n, onSelectedValueChange: r, clearSearchOnClose: i = !0, searchValue: a, onSearchValueChange: o, getItemLabel: c, getItemKey: l, loading: u = !1, showListContent: d = !0, minSearchLength: f = 3, strings: p, disabled: m = !1, className: h, clearable: g = !0, renderItem: _, portalContainer: v, name: y, invalid: b, error: S, required: C, onBlur: w, onSearch: T, debounceMs: E, creatable: D, onCreate: O, getItemGroup: k, renderGroupLabel: A, hasMore: j, onLoadMore: M, loadingMore: P, getItemDisabled: F, highlightMatch: I, size: ee, open: te, onOpenChange: B }) {
476
- let { defaultScale: ne } = e(), V = he(ee, ne), H = _e(V), U = b || !!S, W = me({
479
+ function Z({ items: t, selectedValue: n, onSelectedValueChange: r, clearSearchOnClose: i = !0, searchValue: a, onSearchValueChange: o, getItemLabel: c, getItemKey: l, loading: u = !1, showListContent: d = !0, minSearchLength: f = 3, strings: p, disabled: m = !1, className: h, clearable: g = !0, renderItem: _, portalContainer: v, name: y, invalid: b, error: x, required: S, onBlur: C, onSearch: T, debounceMs: E, creatable: D, onCreate: O, getItemGroup: k, renderGroupLabel: A, hasMore: ee, onLoadMore: j, loadingMore: M, getItemDisabled: P, highlightMatch: F, size: I, open: te, onOpenChange: B }) {
480
+ let { defaultScale: ne } = e(), V = _e(I, ne), H = ye(V), U = b || !!x, W = ge({
477
481
  items: t,
478
482
  searchValue: a,
479
483
  onSearchValueChange: o,
@@ -489,21 +493,21 @@ function Z({ items: t, selectedValue: n, onSelectedValueChange: r, clearSearchOn
489
493
  creatable: D,
490
494
  onCreate: O,
491
495
  getItemGroup: k,
492
- hasMore: j,
493
- onLoadMore: M,
494
- loadingMore: P,
495
- highlightMatch: I,
496
+ hasMore: ee,
497
+ onLoadMore: j,
498
+ loadingMore: M,
499
+ highlightMatch: F,
496
500
  size: V,
497
501
  ensuredItems: n ? [n] : []
498
- }), [q, re] = L(!1), J = N((e) => {
499
- re(e), !e && i && o(""), B?.(e);
502
+ }), [G, J] = L(!1), Y = N((e) => {
503
+ J(e), !e && i && o(""), B?.(e);
500
504
  }, [
501
505
  i,
502
506
  B,
503
507
  o
504
- ]), Y = q ? a : n ? W.itemToStringLabel(n) : "", ie = N((e) => {
505
- if (e && G(e)) {
506
- let t = K(e);
508
+ ]), X = G ? a : n ? W.itemToStringLabel(n) : "", ie = N((e) => {
509
+ if (e && K(e)) {
510
+ let t = q(e);
507
511
  O?.(t);
508
512
  return;
509
513
  }
@@ -512,7 +516,8 @@ function Z({ items: t, selectedValue: n, onSelectedValueChange: r, clearSearchOn
512
516
  return /* @__PURE__ */ z(s, {
513
517
  gap: "dense",
514
518
  className: "combobox--component",
515
- children: [/* @__PURE__ */ z(x, {
519
+ children: [/* @__PURE__ */ z(w, {
520
+ dismissLabel: W.strings.dismiss,
516
521
  items: W.allItems,
517
522
  value: n,
518
523
  onValueChange: (e, t) => {
@@ -522,7 +527,7 @@ function Z({ items: t, selectedValue: n, onSelectedValueChange: r, clearSearchOn
522
527
  }
523
528
  ie(e);
524
529
  },
525
- inputValue: Y,
530
+ inputValue: X,
526
531
  onInputValueChange: (e, t) => {
527
532
  let { reason: n } = t;
528
533
  if (n === "escape-key") {
@@ -539,21 +544,21 @@ function Z({ items: t, selectedValue: n, onSelectedValueChange: r, clearSearchOn
539
544
  disabled: m,
540
545
  filter: null,
541
546
  name: y,
542
- required: C,
547
+ required: S,
543
548
  open: te,
544
- onOpenChange: J,
545
- children: [/* @__PURE__ */ R(ve, {
549
+ onOpenChange: Y,
550
+ children: [/* @__PURE__ */ R(re, {
546
551
  placeholder: W.strings.placeholder,
547
552
  clearLabel: W.strings.clear,
548
553
  toggleLabel: W.strings.toggle,
549
554
  className: h,
550
555
  size: H,
551
556
  error: U,
552
- required: C,
557
+ required: S,
553
558
  disabled: m,
554
559
  clearable: g,
555
- onBlur: w
556
- }), /* @__PURE__ */ R(oe, {
560
+ onBlur: C
561
+ }), /* @__PURE__ */ R(se, {
557
562
  loading: u,
558
563
  showStatus: W.showStatus,
559
564
  showEmpty: W.showEmpty,
@@ -564,30 +569,30 @@ function Z({ items: t, selectedValue: n, onSelectedValueChange: r, clearSearchOn
564
569
  createOptionItem: W.createOptionItem,
565
570
  renderItemContent: W.renderItemContent,
566
571
  getItemReactKey: W.getItemReactKey,
567
- getItemDisabled: F,
572
+ getItemDisabled: P,
568
573
  renderGroupLabel: A,
569
- loadingMore: d && !W.showStatus ? P : !1,
574
+ loadingMore: d && !W.showStatus ? M : !1,
570
575
  strings: W.strings,
571
576
  size: V,
572
577
  portalContainer: v,
573
578
  listRef: W.listRef
574
579
  })]
575
- }), /* @__PURE__ */ R(se, {
576
- error: S,
580
+ }), /* @__PURE__ */ R(ce, {
581
+ error: x,
577
582
  size: V
578
583
  })]
579
584
  });
580
585
  }
581
- function ye({ items: t, selectedValues: n, onSelectedValuesChange: i, searchValue: a, onSearchValueChange: c, getItemLabel: l, getItemKey: u, loading: d = !1, showListContent: f = !0, minSearchLength: p = 3, strings: m, disabled: g = !1, className: _, renderItem: y, portalContainer: b, name: S, invalid: C, error: T, required: E, onBlur: k, onSearch: A, debounceMs: j, creatable: M, onCreate: F, getItemGroup: ee, renderGroupLabel: te, hasMore: B, onLoadMore: ne, loadingMore: V, getItemDisabled: H, highlightMatch: U, size: W, open: q, onOpenChange: re, closeOnSelect: J = !1, applyButton: Y = !1, onApply: ie, onCancel: ae }) {
582
- let { defaultScale: ce } = e(), X = he(W, ce), le = _e(X), ue = ge[X], de = C || !!T, fe = I(null), pe = u ?? l, [ve, Z] = L(n), [ye, be] = L(!1), xe = q !== void 0, Se = xe ? q : ye;
586
+ function be({ items: t, selectedValues: n, onSelectedValuesChange: i, searchValue: o, onSearchValueChange: c, getItemLabel: l, getItemKey: u, loading: d = !1, showListContent: f = !0, minSearchLength: p = 3, strings: m, disabled: h = !1, className: g, renderItem: _, portalContainer: v, name: y, invalid: x, error: T, required: E, onBlur: D, onSearch: A, debounceMs: ee, creatable: j, onCreate: M, getItemGroup: F, renderGroupLabel: te, hasMore: B, onLoadMore: ne, loadingMore: V, getItemDisabled: H, highlightMatch: U, size: re, open: G, onOpenChange: J, closeOnSelect: Y = !1, applyButton: X = !1, onApply: ie, onCancel: ae }) {
587
+ let { defaultScale: oe } = e(), le = _e(re, oe), ue = ye(le), de = ve[le], fe = x || !!T, pe = I(null), me = u ?? l, [he, Z] = L(n), [be, xe] = L(!1), Se = G !== void 0, Ce = Se ? G : be;
583
588
  P(() => {
584
- Y && Z(n);
585
- }, [Y, n]);
589
+ X && Z(n);
590
+ }, [X, n]);
586
591
  let Q = N((e) => {
587
- xe || be(e), re?.(e);
588
- }, [xe, re]), $ = me({
592
+ Se || xe(e), J?.(e);
593
+ }, [Se, J]), $ = ge({
589
594
  items: t,
590
- searchValue: a,
595
+ searchValue: o,
591
596
  onSearchValueChange: c,
592
597
  getItemLabel: l,
593
598
  getItemKey: u,
@@ -595,61 +600,62 @@ function ye({ items: t, selectedValues: n, onSelectedValuesChange: i, searchValu
595
600
  showListContent: f,
596
601
  minSearchLength: p,
597
602
  strings: m,
598
- renderItem: y,
603
+ renderItem: _,
599
604
  onSearch: A,
600
- debounceMs: j,
601
- creatable: M,
602
- onCreate: F,
603
- getItemGroup: ee,
605
+ debounceMs: ee,
606
+ creatable: j,
607
+ onCreate: M,
608
+ getItemGroup: F,
604
609
  hasMore: B,
605
610
  onLoadMore: ne,
606
611
  loadingMore: V,
607
612
  highlightMatch: U,
608
- size: X,
613
+ size: le,
609
614
  ensuredItems: n
610
- }), Ce = N((e) => {
615
+ }), we = N((e) => {
611
616
  let t = [], n = null;
612
- for (let r of e) G(r) ? n = K(r) : t.push(r);
613
- n && F?.(n);
617
+ for (let r of e) K(r) ? n = q(r) : t.push(r);
618
+ n && M?.(n);
614
619
  let r = t.length !== e.length || !n ? t : null;
615
- r && (Y ? Z(r) : i(r)), J && Q(!1);
620
+ r && (X ? Z(r) : i(r)), Y && Q(!1);
616
621
  }, [
617
622
  i,
618
- F,
623
+ M,
624
+ X,
619
625
  Y,
620
- J,
621
626
  Q
622
- ]), we = N(() => {
623
- Y && i(ve), ie?.(), Q(!1);
627
+ ]), Te = N(() => {
628
+ X && i(he), ie?.(), Q(!1);
624
629
  }, [
625
- Y,
626
- ve,
630
+ X,
631
+ he,
627
632
  ie,
628
633
  i,
629
634
  Q
630
- ]), Te = N(() => {
631
- Y && Z(n), ae?.(), Q(!1);
635
+ ]), Ee = N(() => {
636
+ X && Z(n), ae?.(), Q(!1);
632
637
  }, [
633
- Y,
638
+ X,
634
639
  n,
635
640
  ae,
636
641
  Q
637
- ]), Ee = Y ? ve : n, De = Ee.length > 0 ? void 0 : $.strings.placeholder;
642
+ ]), De = X ? he : n, Oe = De.length > 0 ? void 0 : $.strings.placeholder;
638
643
  return /* @__PURE__ */ z(s, {
639
644
  gap: "dense",
640
645
  className: "combobox--component",
641
- children: [/* @__PURE__ */ z(x, {
646
+ children: [/* @__PURE__ */ z(w, {
647
+ dismissLabel: $.strings.dismiss,
642
648
  items: $.allItems,
643
649
  multiple: !0,
644
- value: Ee,
650
+ value: De,
645
651
  onValueChange: (e, t) => {
646
652
  if (t.reason === "escape-key") {
647
653
  t.allowPropagation();
648
654
  return;
649
655
  }
650
- Ce(e);
656
+ we(e);
651
657
  },
652
- inputValue: a,
658
+ inputValue: o,
653
659
  onInputValueChange: (e, t) => {
654
660
  let { reason: n } = t;
655
661
  if (n === "escape-key") {
@@ -663,37 +669,40 @@ function ye({ items: t, selectedValues: n, onSelectedValuesChange: i, searchValu
663
669
  c(e);
664
670
  },
665
671
  itemToStringLabel: $.itemToStringLabel,
666
- disabled: g,
672
+ disabled: h,
667
673
  filter: null,
668
- name: S,
674
+ name: y,
669
675
  required: E,
670
- open: Se,
676
+ open: Ce,
671
677
  onOpenChange: (e) => {
672
- !e && Y && Z(n), Q(e);
678
+ !e && X && Z(n), Q(e);
673
679
  },
674
- children: [/* @__PURE__ */ z(w, {
675
- ref: fe,
676
- className: r(D[le], O[le], le === "sm" ? "text-pxs" : "text-sm", "bg-transparent !shadow-none", _),
677
- size: ue,
678
- error: de,
679
- children: [Ee.map((e) => /* @__PURE__ */ R(v, { children: /* @__PURE__ */ R(o, {
680
- tag: "span",
681
- size: "inherit",
682
- weight: "medium",
683
- lineHeight: "tight",
684
- className: "combobox--chip-label text-inherit",
685
- children: l(e)
686
- }) }, pe(e))), /* @__PURE__ */ R(h, {
687
- placeholder: De,
688
- "aria-invalid": de || void 0,
680
+ children: [/* @__PURE__ */ z(S, {
681
+ ref: pe,
682
+ className: r(O[ue], k[ue], ue === "sm" ? "text-pxs" : "text-sm", "bg-transparent !shadow-none", g),
683
+ size: de,
684
+ error: fe,
685
+ children: [De.map((e) => /* @__PURE__ */ R(C, {
686
+ strings: { remove: ($.strings.removeSelection ?? W.removeSelection)(l(e)) },
687
+ children: /* @__PURE__ */ R(a, {
688
+ tag: "span",
689
+ size: "inherit",
690
+ weight: "medium",
691
+ lineHeight: "tight",
692
+ className: "combobox--chip-label text-inherit",
693
+ children: l(e)
694
+ })
695
+ }, me(e))), /* @__PURE__ */ R(b, {
696
+ placeholder: Oe,
697
+ "aria-invalid": fe || void 0,
689
698
  "aria-required": E,
690
- onBlur: k
699
+ onBlur: D
691
700
  })]
692
- }), /* @__PURE__ */ R(oe, {
701
+ }), /* @__PURE__ */ R(se, {
693
702
  loading: d,
694
703
  showStatus: $.showStatus,
695
704
  showEmpty: $.showEmpty,
696
- searchValue: a,
705
+ searchValue: o,
697
706
  minSearchLength: p,
698
707
  items: $.allItems,
699
708
  groupedItems: $.groupedItems,
@@ -704,60 +713,60 @@ function ye({ items: t, selectedValues: n, onSelectedValuesChange: i, searchValu
704
713
  renderGroupLabel: te,
705
714
  loadingMore: f && !$.showStatus ? V : !1,
706
715
  strings: $.strings,
707
- size: X,
708
- portalContainer: b,
716
+ size: le,
717
+ portalContainer: v,
709
718
  listRef: $.listRef,
710
- anchor: fe,
711
- applyFooter: f && Y ? {
719
+ anchor: pe,
720
+ applyFooter: f && X ? {
712
721
  applyLabel: $.strings.apply,
713
722
  cancelLabel: $.strings.cancel,
714
- onApply: we,
715
- onCancel: Te
723
+ onApply: Te,
724
+ onCancel: Ee
716
725
  } : void 0
717
726
  })]
718
- }), /* @__PURE__ */ R(se, {
727
+ }), /* @__PURE__ */ R(ce, {
719
728
  error: T,
720
- size: X
729
+ size: le
721
730
  })]
722
731
  });
723
732
  }
724
- Z.displayName = "Combobox", ye.displayName = "MultiCombobox";
733
+ Z.displayName = "Combobox", be.displayName = "MultiCombobox";
725
734
  //#endregion
726
735
  //#region src/components/features/combobox/async-resource-combobox.tsx
727
- var be = {
728
- ...U,
736
+ var xe = {
737
+ ...W,
729
738
  error: "Unable to load options.",
730
739
  retry: "Retry"
731
740
  };
732
- function xe(e) {
741
+ function Se(e) {
733
742
  return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
734
743
  }
735
- function Se({ fetcher: e, value: t, defaultValue: i = null, onValueChange: a, onAfterFetch: c, onError: u, getKey: d, getLabel: f, getDescription: p, getMeta: m, renderOption: h, limit: g = 10, debounceMs: _ = 300, preload: v = !0, minSearchLength: y = 0, errorMessage: b, renderError: x, strings: S, disabled: C, size: w, ...T }) {
736
- let E = n(be, S), D = t !== void 0, [O, k] = L(i), A = D ? t : O, [M, ee] = L(""), [te, B] = L([]), [ne, V] = L(!1), [H, U] = L(null), [W, G] = L(0), K = I(0), q = M.trim(), re = N((e) => {
737
- D || k(e), a?.(e);
738
- }, [D, a]), J = j((t, n) => {
744
+ function Ce({ fetcher: e, value: t, defaultValue: i = null, onValueChange: o, onAfterFetch: c, onError: u, getKey: d, getLabel: f, getDescription: p, getMeta: m, renderOption: h, limit: g = 10, debounceMs: _ = 300, preload: v = !0, minSearchLength: y = 0, errorMessage: b, renderError: x, strings: S, disabled: C, size: w, ...T }) {
745
+ let E = n(xe, S), D = t !== void 0, [O, k] = L(i), A = D ? t : O, [ee, M] = L(""), [te, B] = L([]), [ne, V] = L(!1), [H, U] = L(null), [re, W] = L(0), G = I(0), K = ee.trim(), q = N((e) => {
746
+ D || k(e), o?.(e);
747
+ }, [D, o]), J = j((t, n) => {
739
748
  V(!0), U(null), e(n).then((e) => {
740
- n.signal?.aborted || K.current !== t || (B(e), c?.(e, n));
749
+ n.signal?.aborted || G.current !== t || (B(e), c?.(e, n));
741
750
  }).catch((e) => {
742
- n.signal?.aborted || K.current !== t || (B([]), U({
751
+ n.signal?.aborted || G.current !== t || (B([]), U({
743
752
  error: e,
744
753
  query: n.query
745
754
  }), u?.(e, n));
746
755
  }).finally(() => {
747
- !n.signal?.aborted && K.current === t && V(!1);
756
+ !n.signal?.aborted && G.current === t && V(!1);
748
757
  });
749
758
  }, _);
750
759
  P(() => {
751
760
  if (C) return;
752
- if (!(q.length > 0 ? q.length >= y : v)) {
761
+ if (!(K.length > 0 ? K.length >= y : v)) {
753
762
  B([]), V(!1), U(null);
754
763
  return;
755
764
  }
756
- let e = K.current + 1;
757
- K.current = e;
765
+ let e = G.current + 1;
766
+ G.current = e;
758
767
  let t = new AbortController();
759
768
  return J(e, {
760
- query: q,
769
+ query: K,
761
770
  limit: g,
762
771
  signal: t.signal
763
772
  }), () => {
@@ -768,15 +777,15 @@ function Se({ fetcher: e, value: t, defaultValue: i = null, onValueChange: a, on
768
777
  g,
769
778
  y,
770
779
  v,
771
- W,
780
+ re,
772
781
  J,
773
- q
782
+ K
774
783
  ]);
775
784
  let Y = N(() => {
776
- H && (ee(H.query), G((e) => e + 1));
777
- }, [H]), ie = N((e) => {
785
+ H && (M(H.query), W((e) => e + 1));
786
+ }, [H]), X = N((e) => {
778
787
  if (h) return h(e, {
779
- query: q,
788
+ query: K,
780
789
  isSelected: A ? d(A) === d(e) : !1
781
790
  });
782
791
  let t = p?.(e), n = m?.(e);
@@ -786,7 +795,8 @@ function Se({ fetcher: e, value: t, defaultValue: i = null, onValueChange: a, on
786
795
  gap: "md",
787
796
  wrap: !1,
788
797
  className: "async-resource-combobox--option leading-tight",
789
- children: [/* @__PURE__ */ R(o, {
798
+ children: [/* @__PURE__ */ R(a, {
799
+ type: "inherit",
790
800
  tag: "span",
791
801
  size: w === "sm" ? "pxs" : void 0,
792
802
  weight: "medium",
@@ -794,17 +804,17 @@ function Se({ fetcher: e, value: t, defaultValue: i = null, onValueChange: a, on
794
804
  children: f(e)
795
805
  }), (!!t || !!n) && /* @__PURE__ */ z("span", {
796
806
  className: "inline-flex min-w-0 flex-1 items-center gap-space-sm overflow-hidden text-muted-foreground",
797
- children: [!!t && (xe(t) ? /* @__PURE__ */ R(o, {
807
+ children: [!!t && (Se(t) ? /* @__PURE__ */ R(a, {
798
808
  tag: "span",
799
809
  size: "xs",
800
810
  type: "secondary",
801
811
  className: "min-w-0 truncate",
802
812
  children: t
803
- }) : t), !!n && (xe(n) ? /* @__PURE__ */ R(o, {
813
+ }) : t), !!n && (Se(n) ? /* @__PURE__ */ R(a, {
804
814
  tag: "span",
805
815
  size: "xs",
806
816
  type: "secondary",
807
- className: "min-w-0 truncate opacity-75",
817
+ className: "min-w-0 truncate",
808
818
  children: n
809
819
  }) : n)]
810
820
  })]
@@ -817,20 +827,20 @@ function Se({ fetcher: e, value: t, defaultValue: i = null, onValueChange: a, on
817
827
  h,
818
828
  A,
819
829
  w,
820
- q
821
- ]), ae = F(() => {
830
+ K
831
+ ]), ie = F(() => {
822
832
  if (H) return b ?? E.error;
823
833
  }, [
824
834
  b,
825
835
  H,
826
836
  E.error
827
- ]), oe = H !== null, se = H ? x?.({
837
+ ]), ae = H !== null, oe = H ? x?.({
828
838
  error: H.error,
829
839
  query: H.query,
830
840
  retry: Y
831
841
  }) ?? /* @__PURE__ */ R(l, {
832
842
  variant: "inline",
833
- title: ae,
843
+ title: ie,
834
844
  onRetry: Y,
835
845
  retryLabel: E.retry,
836
846
  className: "async-resource-combobox--error mt-space-sm"
@@ -846,22 +856,22 @@ function Se({ fetcher: e, value: t, defaultValue: i = null, onValueChange: a, on
846
856
  size: w,
847
857
  items: te,
848
858
  selectedValue: A ?? null,
849
- onSelectedValueChange: re,
859
+ onSelectedValueChange: q,
850
860
  clearSearchOnClose: !1,
851
- searchValue: M,
852
- onSearchValueChange: ee,
861
+ searchValue: ee,
862
+ onSearchValueChange: M,
853
863
  getItemLabel: f,
854
864
  getItemKey: d,
855
- loading: !oe && ne,
856
- showListContent: !oe,
865
+ loading: !ae && ne,
866
+ showListContent: !ae,
857
867
  minSearchLength: y,
858
868
  strings: E,
859
- renderItem: ie
860
- }), se]
869
+ renderItem: X
870
+ }), oe]
861
871
  });
862
872
  }
863
- Se.displayName = "AsyncResourceCombobox";
873
+ Ce.displayName = "AsyncResourceCombobox";
864
874
  //#endregion
865
- export { me as a, ye as i, be as n, U as o, Z as r, Se as t };
875
+ export { ge as a, be as i, xe as n, W as o, Z as r, Ce as t };
866
876
 
867
- //# sourceMappingURL=combobox-DLl0bfiq.js.map
877
+ //# sourceMappingURL=combobox-Dxo2fAYQ.js.map