themelia-react-ui 2.0.2 → 2.0.4

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 (435) hide show
  1. package/CHANGELOG.md +67 -7
  2. package/README.md +70 -37
  3. package/THIRD_PARTY_NOTICES.md +6 -12
  4. package/dist/{accordion-Cjb6sx0G.js → accordion-96o0pN62.js} +5 -5
  5. package/dist/{accordion-Cjb6sx0G.js.map → accordion-96o0pN62.js.map} +1 -1
  6. package/dist/action-menu-CHgs8vmj.js +281 -0
  7. package/dist/action-menu-CHgs8vmj.js.map +1 -0
  8. package/dist/{affordance-geometry.generated-tF36bREk.js → affordance-geometry.generated-B8yGOr8-.js} +7 -1
  9. package/dist/affordance-geometry.generated-B8yGOr8-.js.map +1 -0
  10. package/dist/{ai-artifact-DvTwDVyL.js → ai-artifact-BZUGwBq6.js} +277 -276
  11. package/dist/ai-artifact-BZUGwBq6.js.map +1 -0
  12. package/dist/{app-shell-C4FhvCqF.js → app-shell-D63ATkIK.js} +84 -83
  13. package/dist/app-shell-D63ATkIK.js.map +1 -0
  14. package/dist/{attachment-BxDfL2mw.js → attachment-DkoqHPPl.js} +7 -7
  15. package/dist/{attachment-BxDfL2mw.js.map → attachment-DkoqHPPl.js.map} +1 -1
  16. package/dist/{auth-ax2BqjrI.js → auth-D2FVZ1MH.js} +10 -10
  17. package/dist/{auth-ax2BqjrI.js.map → auth-D2FVZ1MH.js.map} +1 -1
  18. package/dist/{avatar-DAPlDvhJ.js → avatar-DWO_HHhB.js} +5 -5
  19. package/dist/{avatar-DAPlDvhJ.js.map → avatar-DWO_HHhB.js.map} +1 -1
  20. package/dist/{badge-HpFqoqSY.js → badge-DErMA7ul.js} +4 -4
  21. package/dist/{badge-HpFqoqSY.js.map → badge-DErMA7ul.js.map} +1 -1
  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 +3 -3
  31. package/dist/base/cascader.js +13 -13
  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 +2 -2
  36. package/dist/base/command.js +1 -1
  37. package/dist/base/copyable.js +1 -1
  38. package/dist/base/date-pickers.js +2 -2
  39. package/dist/base/display.js +6 -6
  40. package/dist/base/feedback.js +3 -3
  41. package/dist/base/forms-numeric.js +1 -1
  42. package/dist/base/forms.js +3 -3
  43. package/dist/base/inline-edit.js +10 -10
  44. package/dist/base/item.js +1 -1
  45. package/dist/base/media-gallery.js +1 -1
  46. package/dist/base/metadata-list.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 +9 -9
  52. package/dist/base/sheet.js +1 -1
  53. package/dist/base/sidebar.js +1 -1
  54. package/dist/base/signature-pad.js +6 -6
  55. package/dist/base/skeleton.js +1 -1
  56. package/dist/base/spinner.js +4 -4
  57. package/dist/base/structure.js +1 -1
  58. package/dist/base/table.js +1 -1
  59. package/dist/base/text-inputs.js +2 -2
  60. package/dist/base/toaster.js +3 -3
  61. package/dist/base/tree.js +1 -1
  62. package/dist/base/upload-queue.js +1 -1
  63. package/dist/base/upload.js +3 -3
  64. package/dist/base/value-inputs.js +1 -1
  65. package/dist/{batch-action-bar-DnUJ21NQ.js → batch-action-bar-CdfIkCsV.js} +4 -4
  66. package/dist/{batch-action-bar-DnUJ21NQ.js.map → batch-action-bar-CdfIkCsV.js.map} +1 -1
  67. package/dist/blocks/admin.js +20 -20
  68. package/dist/blocks/admin.js.map +1 -1
  69. package/dist/blocks/ai.js +15 -15
  70. package/dist/blocks/analytics/usage-card.js +1 -1
  71. package/dist/blocks/analytics.js +17 -17
  72. package/dist/blocks/analytics.js.map +1 -1
  73. package/dist/blocks/collaboration.js +1 -1
  74. package/dist/blocks/commerce/receipt.js +1 -1
  75. package/dist/blocks/commerce.js +570 -567
  76. package/dist/blocks/commerce.js.map +1 -1
  77. package/dist/blocks/data-display.js +2 -2
  78. package/dist/blocks/onboarding.js +5 -5
  79. package/dist/blocks/planning.js +11 -11
  80. package/dist/blocks/timelines.js +1 -1
  81. package/dist/{breadcrumbs-C-oqs1sQ.js → breadcrumbs-B-WFKecD.js} +4 -4
  82. package/dist/{breadcrumbs-C-oqs1sQ.js.map → breadcrumbs-B-WFKecD.js.map} +1 -1
  83. package/dist/{button-DVzspB_G.js → button-DkmK-z8E.js} +2 -2
  84. package/dist/{button-DVzspB_G.js.map → button-DkmK-z8E.js.map} +1 -1
  85. package/dist/{buttons-DPZekJFu.js → buttons-BbfzgczK.js} +8 -8
  86. package/dist/{buttons-DPZekJFu.js.map → buttons-BbfzgczK.js.map} +1 -1
  87. package/dist/{cards-BaBZR-AU.js → cards-4JTWqvVe.js} +10 -10
  88. package/dist/cards-4JTWqvVe.js.map +1 -0
  89. package/dist/{chart-ZOYyK2xG.js → chart-C19flDQb.js} +4 -4
  90. package/dist/{chart-ZOYyK2xG.js.map → chart-C19flDQb.js.map} +1 -1
  91. package/dist/{checkbox-AWIhNhmo.js → checkbox-CzYUTPeJ.js} +9 -5
  92. package/dist/checkbox-CzYUTPeJ.js.map +1 -0
  93. package/dist/{choice-inputs-CNHvARCJ.js → choice-inputs-JLtij2y4.js} +182 -176
  94. package/dist/choice-inputs-JLtij2y4.js.map +1 -0
  95. package/dist/{code-block-DeneBJR_.js → code-block-CGNaUtAE.js} +7 -7
  96. package/dist/{code-block-DeneBJR_.js.map → code-block-CGNaUtAE.js.map} +1 -1
  97. package/dist/{collapsible-C-_l4hpy.js → collapsible-Do4G0zcC.js} +3 -3
  98. package/dist/{collapsible-C-_l4hpy.js.map → collapsible-Do4G0zcC.js.map} +1 -1
  99. package/dist/{collection-content-By56pLog.js → collection-content-C0e8SsTm.js} +3 -3
  100. package/dist/{collection-content-By56pLog.js.map → collection-content-C0e8SsTm.js.map} +1 -1
  101. package/dist/{combobox-C0EQW6dr.js → combobox-CBJDs6w_.js} +349 -347
  102. package/dist/combobox-CBJDs6w_.js.map +1 -0
  103. package/dist/{combobox-xCQ2RMNE.js → combobox-hbhSS18O.js} +158 -112
  104. package/dist/combobox-hbhSS18O.js.map +1 -0
  105. package/dist/{command-C25VMRII.js → command-D8NrBj-b.js} +7 -7
  106. package/dist/{command-C25VMRII.js.map → command-D8NrBj-b.js.map} +1 -1
  107. package/dist/{comments-BYYlTA8E.js → comments-Di4w0H_S.js} +383 -382
  108. package/dist/comments-Di4w0H_S.js.map +1 -0
  109. package/dist/components/base/action-menu/action-menu.d.ts +2 -0
  110. package/dist/components/base/cards/card.recipes.d.ts +12 -5
  111. package/dist/components/base/cards/smart-card.types.d.ts +12 -7
  112. package/dist/components/base/choice-inputs/checkbox.d.ts +7 -2
  113. package/dist/components/base/choice-inputs/switch-card.d.ts +7 -0
  114. package/dist/components/base/choice-inputs/toggle-field.d.ts +7 -0
  115. package/dist/components/base/combobox/combobox-field.d.ts +16 -0
  116. package/dist/components/base/date-pickers/datepicker.types.d.ts +7 -0
  117. package/dist/components/base/forms/controlled-form-field.d.ts +6 -6
  118. package/dist/components/base/forms/form-field.d.ts +5 -3
  119. package/dist/components/base/forms/index.d.ts +1 -0
  120. package/dist/components/base/forms/server-errors.d.ts +16 -0
  121. package/dist/components/base/forms/workflow.d.ts +5 -2
  122. package/dist/components/base/metadata-list/metadata-list.d.ts +3 -1
  123. package/dist/components/base/navigation/page-header/page-header.d.ts +4 -2
  124. package/dist/components/base/structure/composition.recipes.d.ts +17 -0
  125. package/dist/components/base/text-inputs/hooks/use-form-field-state.d.ts +7 -2
  126. package/dist/components/base/text-inputs/input.d.ts +4 -2
  127. package/dist/components/base/text-inputs/textarea.d.ts +4 -2
  128. package/dist/components/base/value-inputs/date-time-input.d.ts +2 -1
  129. package/dist/components/base/value-inputs/slider.d.ts +5 -1
  130. package/dist/components/base/value-inputs/tags-input.d.ts +5 -1
  131. package/dist/components/typography/text.styles.d.ts +26 -1
  132. package/dist/components/ui/combobox-dismiss.d.ts +16 -0
  133. package/dist/components/ui/combobox.d.ts +11 -6
  134. package/dist/components/ui/dialog.d.ts +1 -1
  135. package/dist/components/ui/popover.d.ts +1 -1
  136. package/dist/components/ui/sheet.d.ts +1 -1
  137. package/dist/composition.recipes-COdiFhxB.js +19 -0
  138. package/dist/composition.recipes-COdiFhxB.js.map +1 -0
  139. package/dist/containers-CRmHf7GP.js +104 -0
  140. package/dist/containers-CRmHf7GP.js.map +1 -0
  141. package/dist/{copyable-ClBuk_UK.js → copyable-CnGCZdX4.js} +4 -4
  142. package/dist/{copyable-ClBuk_UK.js.map → copyable-CnGCZdX4.js.map} +1 -1
  143. package/dist/{data-display-DT_khPl_.js → data-display-D4oujtx0.js} +239 -238
  144. package/dist/data-display-D4oujtx0.js.map +1 -0
  145. package/dist/{date-DCrsDTZc.js → date-Q7jnXxpk.js} +5 -5
  146. package/dist/{date-DCrsDTZc.js.map → date-Q7jnXxpk.js.map} +1 -1
  147. package/dist/{date-picker-ay0Pha_a.js → date-picker-zOt1oNss.js} +102 -90
  148. package/dist/date-picker-zOt1oNss.js.map +1 -0
  149. package/dist/date-pickers-cj8IXbDC.js +179 -0
  150. package/dist/date-pickers-cj8IXbDC.js.map +1 -0
  151. package/dist/{display-hAc1HjpI.js → display-BB4BL_-K.js} +8 -8
  152. package/dist/{display-hAc1HjpI.js.map → display-BB4BL_-K.js.map} +1 -1
  153. package/dist/{dropdown-menu-Cl4X7L5S.js → dropdown-menu-CjY8Vt7W.js} +8 -8
  154. package/dist/{dropdown-menu-Cl4X7L5S.js.map → dropdown-menu-CjY8Vt7W.js.map} +1 -1
  155. package/dist/features/activities.js +11 -11
  156. package/dist/features/ai-chat.js +9 -9
  157. package/dist/features/appointment-calendar.js +222 -220
  158. package/dist/features/appointment-calendar.js.map +1 -1
  159. package/dist/features/async-preview.js +8 -8
  160. package/dist/features/combobox.js +1 -1
  161. package/dist/features/comments.js +1 -1
  162. package/dist/features/data-view.js +10 -10
  163. package/dist/features/email-composer.js +275 -274
  164. package/dist/features/email-composer.js.map +1 -1
  165. package/dist/features/event-calendar.js +199 -198
  166. package/dist/features/event-calendar.js.map +1 -1
  167. package/dist/features/filters.js +1 -1
  168. package/dist/features/global-search.js +12 -12
  169. package/dist/features/kanban.js +4 -4
  170. package/dist/features/map.js +7 -7
  171. package/dist/features/media-library.js +623 -622
  172. package/dist/features/media-library.js.map +1 -1
  173. package/dist/features/mentions.js +1 -1
  174. package/dist/features/overlays.js +1 -1
  175. package/dist/features/products.js +973 -969
  176. package/dist/features/products.js.map +1 -1
  177. package/dist/features/questionnaire.js +12 -12
  178. package/dist/features/resource-assignment.js +8 -8
  179. package/dist/features/resource.js +113 -112
  180. package/dist/features/resource.js.map +1 -1
  181. package/dist/features/rich-text-editor.js +2 -2
  182. package/dist/features/schema-form.js +254 -253
  183. package/dist/features/schema-form.js.map +1 -1
  184. package/dist/features/suggestions.js +3 -3
  185. package/dist/features/sync.js +3 -3
  186. package/dist/features/table.js +1 -1
  187. package/dist/features/theme-tweaker.js +19 -19
  188. package/dist/features/theme-tweaker.js.map +1 -1
  189. package/dist/{feedback-BYIhtitP.js → feedback-DZNL5Lg1.js} +9 -9
  190. package/dist/{feedback-BYIhtitP.js.map → feedback-DZNL5Lg1.js.map} +1 -1
  191. package/dist/{field-affordance-recipes-DZhnIL_Y.js → field-affordance-recipes-DjwGx8eM.js} +2 -2
  192. package/dist/{field-affordance-recipes-DZhnIL_Y.js.map → field-affordance-recipes-DjwGx8eM.js.map} +1 -1
  193. package/dist/{filters-BGfvjP4d.js → filters-BcT-uoFy.js} +19 -19
  194. package/dist/{filters-BGfvjP4d.js.map → filters-BcT-uoFy.js.map} +1 -1
  195. package/dist/{form-field-CwH9y77i.js → form-field-CsgRmdit.js} +14 -8
  196. package/dist/form-field-CsgRmdit.js.map +1 -0
  197. package/dist/{form-sizing-BdP_Mf5p.js → form-sizing-NXgjkmBG.js} +3 -3
  198. package/dist/{form-sizing-BdP_Mf5p.js.map → form-sizing-NXgjkmBG.js.map} +1 -1
  199. package/dist/{forms-B9G_xwzi.js → forms-BV5m5aQF.js} +83 -65
  200. package/dist/forms-BV5m5aQF.js.map +1 -0
  201. package/dist/{forms-numeric-B_jraJaQ.js → forms-numeric-Cd33AKbD.js} +288 -288
  202. package/dist/forms-numeric-Cd33AKbD.js.map +1 -0
  203. package/dist/{header-CGXuhcRm.js → header-BA697l4a.js} +14 -14
  204. package/dist/{header-CGXuhcRm.js.map → header-BA697l4a.js.map} +1 -1
  205. package/dist/hooks/useFormErrors.d.ts +1 -1
  206. package/dist/{hooks-Dkz0K2WT.js → hooks-BQ-L7Uu2.js} +2 -2
  207. package/dist/{hooks-Dkz0K2WT.js.map → hooks-BQ-L7Uu2.js.map} +1 -1
  208. package/dist/{icon-badge-DYKIwvOV.js → icon-badge-COWbCCWu.js} +3 -3
  209. package/dist/{icon-badge-DYKIwvOV.js.map → icon-badge-COWbCCWu.js.map} +1 -1
  210. package/dist/index.js +2 -2
  211. package/dist/input-Cdw4k0fb.js +289 -0
  212. package/dist/input-Cdw4k0fb.js.map +1 -0
  213. package/dist/{input-CZw8iU99.js → input-DOPL5_QE.js} +3 -3
  214. package/dist/{input-CZw8iU99.js.map → input-DOPL5_QE.js.map} +1 -1
  215. package/dist/item-BvZ2DR_x.js +277 -0
  216. package/dist/item-BvZ2DR_x.js.map +1 -0
  217. package/dist/layout/app-shell.js +1 -1
  218. package/dist/layout/auth.js +1 -1
  219. package/dist/layout/containers.js +1 -1
  220. package/dist/layout/header.js +1 -1
  221. package/dist/layout/hooks.js +1 -1
  222. package/dist/layout/navigation.js +1 -1
  223. package/dist/layout/page.js +1 -1
  224. package/dist/layout/settings.js +1 -1
  225. package/dist/layout/sidebar.js +2 -2
  226. package/dist/layout/workspace.js +1 -1
  227. package/dist/layout.js +10 -10
  228. package/dist/lib/affordance-geometry.generated.d.ts +6 -0
  229. package/dist/lib/ui-provider/types.d.ts +1 -1
  230. package/dist/lib/use-popup-focus-recovery.d.ts +8 -0
  231. package/dist/lib/utils.js +1 -1
  232. package/dist/{media-gallery-3zIVLMWH.js → media-gallery-CSl5W1Fy.js} +6 -6
  233. package/dist/{media-gallery-3zIVLMWH.js.map → media-gallery-CSl5W1Fy.js.map} +1 -1
  234. package/dist/{mentions-utuUvH1K.js → mentions-RKOQaaIB.js} +8 -8
  235. package/dist/{mentions-utuUvH1K.js.map → mentions-RKOQaaIB.js.map} +1 -1
  236. package/dist/{message-DZ_ruyUV.js → message-INU2xsxu.js} +4 -4
  237. package/dist/{message-DZ_ruyUV.js.map → message-INU2xsxu.js.map} +1 -1
  238. package/dist/metadata-list-qVV7AVxa.js +443 -0
  239. package/dist/metadata-list-qVV7AVxa.js.map +1 -0
  240. package/dist/{navigation-BzhHI3lo.js → navigation-BQNcg1jT.js} +8 -8
  241. package/dist/{navigation-BzhHI3lo.js.map → navigation-BQNcg1jT.js.map} +1 -1
  242. package/dist/{navigation-Bnotn4AQ.js → navigation-DLF3E1IC.js} +7 -7
  243. package/dist/{navigation-Bnotn4AQ.js.map → navigation-DLF3E1IC.js.map} +1 -1
  244. package/dist/{navigation-row-recipes-BFLCk_Aq.js → navigation-row-recipes-WZEs-hYo.js} +2 -2
  245. package/dist/{navigation-row-recipes-BFLCk_Aq.js.map → navigation-row-recipes-WZEs-hYo.js.map} +1 -1
  246. package/dist/{number-DbV1Dija.js → number-E_OiIfJz.js} +5 -5
  247. package/dist/{number-DbV1Dija.js.map → number-E_OiIfJz.js.map} +1 -1
  248. package/dist/{overflow-tab-bar-CWY7Nogn.js → overflow-tab-bar-CrbqMteP.js} +107 -105
  249. package/dist/overflow-tab-bar-CrbqMteP.js.map +1 -0
  250. package/dist/{overlays-DNWmZrJ4.js → overlays-BlKynmde.js} +322 -319
  251. package/dist/overlays-BlKynmde.js.map +1 -0
  252. package/dist/page-CIwNUtGr.js +227 -0
  253. package/dist/page-CIwNUtGr.js.map +1 -0
  254. package/dist/page-header-commands-DFMlNYzN.js +128 -0
  255. package/dist/page-header-commands-DFMlNYzN.js.map +1 -0
  256. package/dist/{pagination-BL25hu2s.js → pagination-Ch8X_47u.js} +5 -5
  257. package/dist/{pagination-BL25hu2s.js.map → pagination-Ch8X_47u.js.map} +1 -1
  258. package/dist/{popover-menu-B9WWygpa.js → popover-menu-BYaCdFhf.js} +6 -6
  259. package/dist/{popover-menu-B9WWygpa.js.map → popover-menu-BYaCdFhf.js.map} +1 -1
  260. package/dist/{popover-7_m66eYW.js → popover-uwzX2vo7.js} +65 -63
  261. package/dist/popover-uwzX2vo7.js.map +1 -0
  262. package/dist/{primitives-BFK08r9M.js → primitives-Du64iDbb.js} +6 -6
  263. package/dist/{primitives-BFK08r9M.js.map → primitives-Du64iDbb.js.map} +1 -1
  264. package/dist/primitives.js +4 -4
  265. package/dist/{progress-B1VnCT0K.js → progress-BvF2oCdV.js} +5 -5
  266. package/dist/{progress-B1VnCT0K.js.map → progress-BvF2oCdV.js.map} +1 -1
  267. package/dist/{receipt-BVSOH3Xo.js → receipt-D789Jwyy.js} +6 -6
  268. package/dist/{receipt-BVSOH3Xo.js.map → receipt-D789Jwyy.js.map} +1 -1
  269. package/dist/{rich-text-GOUyKQ-s.js → rich-text-CLJEf76s.js} +4 -4
  270. package/dist/{rich-text-GOUyKQ-s.js.map → rich-text-CLJEf76s.js.map} +1 -1
  271. package/dist/{rich-text-editor-cRLC-eBK.js → rich-text-editor-Cm1dpUpQ.js} +10 -10
  272. package/dist/{rich-text-editor-cRLC-eBK.js.map → rich-text-editor-Cm1dpUpQ.js.map} +1 -1
  273. package/dist/{rich-text-editor-toolbar-DfXg0-VC.js → rich-text-editor-toolbar-L__e4x47.js} +4 -4
  274. package/dist/{rich-text-editor-toolbar-DfXg0-VC.js.map → rich-text-editor-toolbar-L__e4x47.js.map} +1 -1
  275. package/dist/{scroll-area-DcI-M1UT.js → scroll-area-La5RXsEk.js} +2 -2
  276. package/dist/{scroll-area-DcI-M1UT.js.map → scroll-area-La5RXsEk.js.map} +1 -1
  277. package/dist/{separator-Bom7NsGO.js → separator-DAEV0w65.js} +2 -2
  278. package/dist/{separator-Bom7NsGO.js.map → separator-DAEV0w65.js.map} +1 -1
  279. package/dist/{separator-BDV-Y648.js → separator-GNfPG-90.js} +3 -3
  280. package/dist/{separator-BDV-Y648.js.map → separator-GNfPG-90.js.map} +1 -1
  281. package/dist/services/actions.js +1 -1
  282. package/dist/settings-BA2iboic.js +174 -0
  283. package/dist/settings-BA2iboic.js.map +1 -0
  284. package/dist/{sheet-CGpB3omz.js → sheet-DoAxTb2J.js} +75 -73
  285. package/dist/sheet-DoAxTb2J.js.map +1 -0
  286. package/dist/{sidebar-A0ElHINE.js → sidebar-ByqKR_W5.js} +13 -13
  287. package/dist/{sidebar-A0ElHINE.js.map → sidebar-ByqKR_W5.js.map} +1 -1
  288. package/dist/{sidebar-CPx_7YBa.js → sidebar-D2iSnGJ7.js} +11 -11
  289. package/dist/{sidebar-CPx_7YBa.js.map → sidebar-D2iSnGJ7.js.map} +1 -1
  290. package/dist/{skeleton-Byjnt7qr.js → skeleton-CUj8O5Bd.js} +3 -3
  291. package/dist/{skeleton-Byjnt7qr.js.map → skeleton-CUj8O5Bd.js.map} +1 -1
  292. package/dist/smart-card-CqkzQsK-.js +614 -0
  293. package/dist/smart-card-CqkzQsK-.js.map +1 -0
  294. package/dist/{structure-BmisBK-3.js → structure-C0V0_Fyf.js} +3 -3
  295. package/dist/{structure-BmisBK-3.js.map → structure-C0V0_Fyf.js.map} +1 -1
  296. package/dist/{structure.recipes-EPz60cU8.js → structure.recipes-BB4-n58V.js} +2 -2
  297. package/dist/{structure.recipes-EPz60cU8.js.map → structure.recipes-BB4-n58V.js.map} +1 -1
  298. package/dist/style.css +1 -1
  299. package/dist/{table-DsfzoUia.js → table-CpvnzJn9.js} +3 -3
  300. package/dist/{table-DsfzoUia.js.map → table-CpvnzJn9.js.map} +1 -1
  301. package/dist/{table-BweFy_P9.js → table-DH7rozUv.js} +19 -19
  302. package/dist/{table-BweFy_P9.js.map → table-DH7rozUv.js.map} +1 -1
  303. package/dist/{tabs-CDocW5D1.js → tabs-eqVsJZWO.js} +7 -7
  304. package/dist/{tabs-CDocW5D1.js.map → tabs-eqVsJZWO.js.map} +1 -1
  305. package/dist/{text-inputs-f9Ia-aCi.js → text-inputs-DXItiR0O.js} +101 -98
  306. package/dist/text-inputs-DXItiR0O.js.map +1 -0
  307. package/dist/{text.styles-g4He6UIW.js → text.styles-B64My8RZ.js} +25 -10
  308. package/dist/text.styles-B64My8RZ.js.map +1 -0
  309. package/dist/theme.css +152 -112
  310. package/dist/{timelines-CwM_9IhD.js → timelines-DmtztAY_.js} +10 -10
  311. package/dist/{timelines-CwM_9IhD.js.map → timelines-DmtztAY_.js.map} +1 -1
  312. package/dist/{tooltip-yiRJUFjp.js → tooltip-B4hjKtoV.js} +3 -3
  313. package/dist/{tooltip-yiRJUFjp.js.map → tooltip-B4hjKtoV.js.map} +1 -1
  314. package/dist/{tree-WnKQzwbq.js → tree-CV11PURP.js} +8 -8
  315. package/dist/{tree-WnKQzwbq.js.map → tree-CV11PURP.js.map} +1 -1
  316. package/dist/typography/rich-text.js +1 -1
  317. package/dist/typography-CSyJrh28.js +117 -0
  318. package/dist/typography-CSyJrh28.js.map +1 -0
  319. package/dist/typography.js +1 -1
  320. package/dist/{ui-provider-C_U0Xma4.js → ui-provider-CQCuCBcy.js} +3 -3
  321. package/dist/ui-provider-CQCuCBcy.js.map +1 -0
  322. package/dist/ui-provider.js +1 -1
  323. package/dist/{upload-CXyxmQBP.js → upload-C9SA0X-8.js} +11 -11
  324. package/dist/{upload-CXyxmQBP.js.map → upload-C9SA0X-8.js.map} +1 -1
  325. package/dist/{upload-queue-Boscubn9.js → upload-queue-DhQJiSRc.js} +9 -9
  326. package/dist/{upload-queue-Boscubn9.js.map → upload-queue-DhQJiSRc.js.map} +1 -1
  327. package/dist/{usage-card-BhO5eqkX.js → usage-card-DVTRDmGz.js} +134 -133
  328. package/dist/usage-card-DVTRDmGz.js.map +1 -0
  329. package/dist/use-popup-focus-recovery-C0QPvgOR.js +36 -0
  330. package/dist/use-popup-focus-recovery-C0QPvgOR.js.map +1 -0
  331. package/dist/{utils-BRhFDwuU.js → utils-CF3c95Io.js} +68 -5
  332. package/dist/utils-CF3c95Io.js.map +1 -0
  333. package/dist/value-inputs-C0o70p-U.js +980 -0
  334. package/dist/value-inputs-C0o70p-U.js.map +1 -0
  335. package/dist/{value-typography-BP8OG6h5.js → value-typography-ClupF0Gz.js} +2 -2
  336. package/dist/{value-typography-BP8OG6h5.js.map → value-typography-ClupF0Gz.js.map} +1 -1
  337. package/dist/workspace-9EFVXUyk.js +410 -0
  338. package/dist/workspace-9EFVXUyk.js.map +1 -0
  339. package/docs/consumer-skill/SKILL.md +14 -129
  340. package/docs/consumer-skill/examples/app-layout.tsx +22 -12
  341. package/docs/consumer-skill/examples/authentication.tsx +77 -0
  342. package/docs/consumer-skill/examples/edit.tsx +30 -38
  343. package/docs/consumer-skill/examples/manifest.json +51 -1
  344. package/docs/consumer-skill/examples/rhf-bindings.tsx +86 -0
  345. package/docs/consumer-skill/examples/rhf-edit-page.tsx +141 -0
  346. package/docs/consumer-skill/examples/rhf-overlay-form.tsx +92 -0
  347. package/docs/consumer-skill/examples/rhf-transport.tsx +28 -0
  348. package/docs/consumer-skill/references/agents-md.md +17 -7
  349. package/docs/consumer-skill/references/authentication.md +42 -0
  350. package/docs/consumer-skill/references/component-contracts.json +319824 -0
  351. package/docs/consumer-skill/references/composition-mapping.md +92 -0
  352. package/docs/consumer-skill/references/composition.md +43 -19
  353. package/docs/consumer-skill/references/design-contract.md +32 -0
  354. package/docs/consumer-skill/references/discovery.md +84 -7
  355. package/docs/consumer-skill/references/installation.md +45 -35
  356. package/docs/consumer-skill/references/integration.md +6 -2
  357. package/docs/consumer-skill/references/public-api.json +1520 -66
  358. package/docs/consumer-skill/references/review.md +9 -4
  359. package/docs/consumer-skill/references/rhf-workflows.md +86 -0
  360. package/docs/consumer-skill/references/screen-archetypes.md +22 -0
  361. package/docs/consumer-skill/references/theming.md +8 -9
  362. package/docs/consumer-skill/references/tokens.json +12 -3
  363. package/docs/consumer-skill/references/workflows.md +7 -5
  364. package/docs/consumer-skill/scripts/composition-schema.d.mts +2 -0
  365. package/docs/consumer-skill/scripts/composition-schema.mjs +32 -0
  366. package/docs/consumer-skill/scripts/composition.mjs +198 -0
  367. package/docs/consumer-skill/scripts/discovery.mjs +42 -10
  368. package/docs/consumer-skill/scripts/inspect-component.mjs +11 -0
  369. package/docs/consumer-skill/scripts/inspect-tokens.mjs +11 -0
  370. package/docs/consumer-skill/scripts/inspection.mjs +138 -0
  371. package/docs/consumer-skill/scripts/map-composition.mjs +12 -0
  372. package/docs/consumer-skill/scripts/setup-skills.mjs +76 -0
  373. package/docs/consumer-skills/themelia-components/SKILL.md +30 -0
  374. package/docs/consumer-skills/themelia-composition/SKILL.md +35 -0
  375. package/docs/consumer-skills/themelia-forms/SKILL.md +12 -0
  376. package/docs/consumer-skills/themelia-foundation/SKILL.md +14 -0
  377. package/docs/consumer-skills/themelia-tokenization/SKILL.md +35 -0
  378. package/package.json +6 -4
  379. package/templates/README.md +39 -0
  380. package/templates/admin-shell-template.tsx +382 -0
  381. package/templates/analytics-operations-template.tsx +376 -0
  382. package/templates/customers-template.tsx +509 -0
  383. package/templates/index.ts +29 -0
  384. package/templates/orders-template.tsx +1102 -0
  385. package/templates/products-template.tsx +834 -0
  386. package/templates/user-permissions-template.tsx +450 -0
  387. package/dist/action-menu-CllU52Mm.js +0 -280
  388. package/dist/action-menu-CllU52Mm.js.map +0 -1
  389. package/dist/affordance-geometry.generated-tF36bREk.js.map +0 -1
  390. package/dist/ai-artifact-DvTwDVyL.js.map +0 -1
  391. package/dist/app-shell-C4FhvCqF.js.map +0 -1
  392. package/dist/cards-BaBZR-AU.js.map +0 -1
  393. package/dist/checkbox-AWIhNhmo.js.map +0 -1
  394. package/dist/choice-inputs-CNHvARCJ.js.map +0 -1
  395. package/dist/combobox-C0EQW6dr.js.map +0 -1
  396. package/dist/combobox-xCQ2RMNE.js.map +0 -1
  397. package/dist/comments-BYYlTA8E.js.map +0 -1
  398. package/dist/containers-Mu1LMGV1.js +0 -103
  399. package/dist/containers-Mu1LMGV1.js.map +0 -1
  400. package/dist/data-display-DT_khPl_.js.map +0 -1
  401. package/dist/date-picker-ay0Pha_a.js.map +0 -1
  402. package/dist/date-pickers-Ccw8DL2b.js +0 -175
  403. package/dist/date-pickers-Ccw8DL2b.js.map +0 -1
  404. package/dist/form-field-CwH9y77i.js.map +0 -1
  405. package/dist/forms-B9G_xwzi.js.map +0 -1
  406. package/dist/forms-numeric-B_jraJaQ.js.map +0 -1
  407. package/dist/input-DQdEd0YD.js +0 -263
  408. package/dist/input-DQdEd0YD.js.map +0 -1
  409. package/dist/item-K5_ghvze.js +0 -275
  410. package/dist/item-K5_ghvze.js.map +0 -1
  411. package/dist/metadata-list-8N16ZMW_.js +0 -405
  412. package/dist/metadata-list-8N16ZMW_.js.map +0 -1
  413. package/dist/overflow-tab-bar-CWY7Nogn.js.map +0 -1
  414. package/dist/overlays-DNWmZrJ4.js.map +0 -1
  415. package/dist/page-Bgl1F560.js +0 -224
  416. package/dist/page-Bgl1F560.js.map +0 -1
  417. package/dist/page-header-commands-DOb6WsfD.js +0 -126
  418. package/dist/page-header-commands-DOb6WsfD.js.map +0 -1
  419. package/dist/popover-7_m66eYW.js.map +0 -1
  420. package/dist/settings-ybnjVwbd.js +0 -171
  421. package/dist/settings-ybnjVwbd.js.map +0 -1
  422. package/dist/sheet-CGpB3omz.js.map +0 -1
  423. package/dist/smart-card-DiC5aac3.js +0 -604
  424. package/dist/smart-card-DiC5aac3.js.map +0 -1
  425. package/dist/text-inputs-f9Ia-aCi.js.map +0 -1
  426. package/dist/text.styles-g4He6UIW.js.map +0 -1
  427. package/dist/typography-UTnveOEy.js +0 -117
  428. package/dist/typography-UTnveOEy.js.map +0 -1
  429. package/dist/ui-provider-C_U0Xma4.js.map +0 -1
  430. package/dist/usage-card-BhO5eqkX.js.map +0 -1
  431. package/dist/utils-BRhFDwuU.js.map +0 -1
  432. package/dist/value-inputs-DXPDjvBU.js +0 -963
  433. package/dist/value-inputs-DXPDjvBU.js.map +0 -1
  434. package/dist/workspace-Cdrg7k9f.js +0 -408
  435. package/dist/workspace-Cdrg7k9f.js.map +0 -1
@@ -1,24 +1,70 @@
1
1
  "use client";
2
- import { s as e, v as t } from "./ui-provider-C_U0Xma4.js";
2
+ import { s as e, v as t } from "./ui-provider-CQCuCBcy.js";
3
3
  import { useStrings as n } from "./lib/strings.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";
4
+ import { t as r } from "./utils-CF3c95Io.js";
5
+ import { n as i } from "./buttons-BbfzgczK.js";
6
+ import { c as a, o } from "./typography-CSyJrh28.js";
7
+ import { t as s } from "./structure-C0V0_Fyf.js";
8
8
  import { n as c } from "./tone-recipes-BPsRAvhu.js";
9
- import { t as l } from "./feedback-BYIhtitP.js";
9
+ import { t as l } from "./feedback-DZNL5Lg1.js";
10
10
  import { t as u } from "./layer-recipes-CCpklYME.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 ee, h as v, m as y, o as b, p as x, t as S, u as C, v as w, x as T } from "./combobox-xCQ2RMNE.js";
13
- import { l as E, u as D } from "./form-sizing-BdP_Mf5p.js";
14
- import { t as O } from "./input-DQdEd0YD.js";
15
- import { t as k } from "./scroll-area-DcI-M1UT.js";
16
- import { t as A } from "./use-debounced-callback-Cx1h-hdv.js";
17
- import * as j from "react";
18
- import { useCallback as M, useEffect as N, useMemo as P, useRef as F, useState as I } from "react";
19
- import { Fragment as L, jsx as R, jsxs as z } from "react/jsx-runtime";
20
- import { ChevronDownIcon as B, Loader2 as V, PlusIcon as te, XIcon as H } from "lucide-react";
11
+ import { n as d, r as f } from "./field-affordance-recipes-DjwGx8eM.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-hbhSS18O.js";
13
+ import { l as O, u as k } from "./form-sizing-NXgjkmBG.js";
14
+ import { t as A } from "./input-Cdw4k0fb.js";
15
+ import { t as ee } from "./scroll-area-La5RXsEk.js";
16
+ import { t as j } from "./use-debounced-callback-Cx1h-hdv.js";
17
+ import * as M from "react";
18
+ import { useCallback as N, useEffect as P, useMemo as F, useRef as I, useState as L } from "react";
19
+ import { Fragment as 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
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
69
  var W = {
24
70
  placeholder: "Search...",
@@ -47,7 +93,7 @@ function J(e) {
47
93
  }
48
94
  //#endregion
49
95
  //#region src/components/features/combobox/components/loading-more.tsx
50
- function ne({ loading: e, text: t, className: n }) {
96
+ function Y({ loading: e, text: t, className: n }) {
51
97
  return e ? /* @__PURE__ */ z(s, {
52
98
  direction: "horizontal",
53
99
  gap: "sm",
@@ -56,7 +102,7 @@ function ne({ loading: e, text: t, className: n }) {
56
102
  className: r("loading-more--component", "px-control py-space-xs text-xs text-muted-foreground", n),
57
103
  role: "status",
58
104
  "aria-live": "polite",
59
- children: [/* @__PURE__ */ R(V, {
105
+ children: [/* @__PURE__ */ R(ne, {
60
106
  className: "size-icon-sm animate-spin",
61
107
  "aria-hidden": "true"
62
108
  }), /* @__PURE__ */ R(a, {
@@ -68,10 +114,10 @@ function ne({ loading: e, text: t, className: n }) {
68
114
  })]
69
115
  }) : null;
70
116
  }
71
- ne.displayName = "LoadingMore";
117
+ Y.displayName = "LoadingMore";
72
118
  //#endregion
73
119
  //#region src/components/features/combobox/components/status-content.tsx
74
- function Y({ children: e }) {
120
+ function X({ children: e }) {
75
121
  return /* @__PURE__ */ R(a, {
76
122
  tag: "span",
77
123
  size: "inherit",
@@ -80,90 +126,90 @@ function Y({ children: e }) {
80
126
  children: e
81
127
  });
82
128
  }
83
- function X({ loading: e, searchValue: t, minSearchLength: n, itemCount: r, strings: i }) {
129
+ function ie({ loading: e, searchValue: t, minSearchLength: n, itemCount: r, strings: i }) {
84
130
  let a = t.trim();
85
- if (e) return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(V, { className: "size-icon-sm animate-spin" }), /* @__PURE__ */ R(Y, { children: i.searching })] });
86
- if (a === "") return i.typeToSearch.includes("{min}") ? /* @__PURE__ */ R(Y, { children: i.typeToSearch.replace("{min}", String(n)) }) : /* @__PURE__ */ R(Y, { 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 });
87
133
  if (a.length < n) {
88
134
  let e = n - a.length;
89
- return i.typeMore.includes("{remaining}") || i.typeMore.includes("{s}") ? /* @__PURE__ */ R(Y, { children: i.typeMore.replace("{remaining}", String(e)).replace("{s}", e === 1 ? "" : "s") }) : /* @__PURE__ */ R(Y, { 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 });
90
136
  }
91
137
  return null;
92
138
  }
93
- X.displayName = "StatusContent";
139
+ ie.displayName = "StatusContent";
94
140
  //#endregion
95
141
  //#region src/components/features/combobox/components/combobox-dropdown.tsx
96
- var Z = {
142
+ var ae = {
97
143
  sm: "sm",
98
144
  md: "md",
99
145
  lg: "lg"
100
- }, re = {
146
+ }, oe = {
101
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",
102
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",
103
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"
104
150
  };
105
- function ie({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearchLength: l, items: d, groupedItems: f, createOptionItem: y, renderItemContent: x, getItemReactKey: S, getItemDisabled: C, renderGroupLabel: E, loadingMore: D, strings: O, size: A = "md", portalContainer: j, listRef: M, anchor: N, applyFooter: P }) {
106
- let F = j == null ? void 0 : u.nestedOverlay, I = Z[A];
107
- if (!(t || n || d.length > 0 || D || P)) return null;
108
- let B = /* @__PURE__ */ R(m, {
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, {
109
155
  anchor: N,
110
156
  className: F,
111
- children: /* @__PURE__ */ z(b, {
157
+ children: /* @__PURE__ */ z(x, {
112
158
  "aria-busy": e || void 0,
113
159
  className: r("combobox-dropdown--popup"),
114
160
  children: [
115
- !!t && /* @__PURE__ */ R(p, {
161
+ !!t && /* @__PURE__ */ R(E, {
116
162
  className: "gap-space-sm px-control py-space-xs text-xs text-muted-foreground",
117
- children: /* @__PURE__ */ R(X, {
163
+ children: /* @__PURE__ */ R(ie, {
118
164
  loading: e,
119
165
  searchValue: c,
120
166
  minSearchLength: l,
121
167
  itemCount: d.length,
122
- strings: O
168
+ strings: k
123
169
  })
124
170
  }),
125
- !!n && /* @__PURE__ */ R(ee, {
126
- className: re[A],
171
+ !!n && /* @__PURE__ */ R(v, {
172
+ className: oe[A],
127
173
  children: /* @__PURE__ */ R(a, {
128
174
  tag: "span",
129
175
  size: "inherit",
130
176
  type: "secondary",
131
177
  className: "text-inherit",
132
- children: O.noResults
178
+ children: k.noResults
133
179
  })
134
180
  }),
135
- /* @__PURE__ */ R(k, {
181
+ /* @__PURE__ */ R(ee, {
136
182
  viewportRef: M,
137
183
  className: "max-h-[min(20rem,var(--available-height))]",
138
184
  children: /* @__PURE__ */ R(_, {
139
185
  className: "combobox-dropdown--list max-h-none overflow-visible",
140
- children: f ? /* @__PURE__ */ z(L, { children: [Array.from(f.entries()).map(([e, t]) => {
141
- let n = typeof E == "function" ? E(e) : e;
186
+ children: f ? /* @__PURE__ */ z(te, { children: [Array.from(f.entries()).map(([e, t]) => {
187
+ let n = typeof D == "function" ? D(e) : e;
142
188
  return /* @__PURE__ */ z(h, {
143
189
  className: "combobox-dropdown--group p-0",
144
190
  items: t,
145
- children: [/* @__PURE__ */ R(w, { children: typeof n == "string" || typeof n == "number" || typeof n == "bigint" ? /* @__PURE__ */ R(o, { children: n }) : n }), /* @__PURE__ */ R(v, { children: (e) => /* @__PURE__ */ R(g, {
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, {
146
192
  value: e,
147
193
  size: I,
148
- disabled: C?.(e),
149
- children: x(e)
150
- }, S(e)) })]
194
+ disabled: w?.(e),
195
+ children: S(e)
196
+ }, C(e)) })]
151
197
  }, e);
152
- }), y != null && /* @__PURE__ */ R(g, {
153
- value: y,
198
+ }), b != null && /* @__PURE__ */ R(g, {
199
+ value: b,
154
200
  size: I,
155
- children: x(y)
156
- }, S(y))] }) : /* @__PURE__ */ R(v, { children: (e) => /* @__PURE__ */ R(g, {
201
+ children: S(b)
202
+ }, C(b))] }) : /* @__PURE__ */ R(y, { children: (e) => /* @__PURE__ */ R(g, {
157
203
  value: e,
158
204
  size: I,
159
- disabled: C?.(e),
160
- children: x(e)
161
- }, S(e)) })
205
+ disabled: w?.(e),
206
+ children: S(e)
207
+ }, C(e)) })
162
208
  })
163
209
  }),
164
- /* @__PURE__ */ R(ne, {
165
- loading: !!D,
166
- text: O.loadingMore
210
+ /* @__PURE__ */ R(Y, {
211
+ loading: !!O,
212
+ text: k.loadingMore
167
213
  }),
168
214
  !!P && /* @__PURE__ */ z(s, {
169
215
  direction: "horizontal",
@@ -191,15 +237,15 @@ function ie({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearch
191
237
  ]
192
238
  })
193
239
  });
194
- return j ? /* @__PURE__ */ R(T, {
240
+ return j ? /* @__PURE__ */ R(m, {
195
241
  container: j,
196
- children: B
197
- }) : /* @__PURE__ */ R(T, { children: B });
242
+ children: L
243
+ }) : /* @__PURE__ */ R(m, { children: L });
198
244
  }
199
- ie.displayName = "ComboboxDropdown";
245
+ se.displayName = "ComboboxDropdown";
200
246
  //#endregion
201
247
  //#region src/components/features/combobox/components/error-message.tsx
202
- function ae({ error: e, size: t, className: n }) {
248
+ function ce({ error: e, size: t, className: n }) {
203
249
  return e ? /* @__PURE__ */ R(a, {
204
250
  tag: "p",
205
251
  size: "xs",
@@ -210,13 +256,13 @@ function ae({ error: e, size: t, className: n }) {
210
256
  children: e
211
257
  }) : null;
212
258
  }
213
- ae.displayName = "ErrorMessage";
259
+ ce.displayName = "ErrorMessage";
214
260
  //#endregion
215
261
  //#region src/components/features/combobox/components/highlighted-text.tsx
216
- function oe(e) {
262
+ function le(e) {
217
263
  return e.replace(/[$()*+.?[\\\]^{|}]/g, "\\$&");
218
264
  }
219
- function se({ text: e, highlight: t, highlightClassName: n = c.match }) {
265
+ function ue({ text: e, highlight: t, highlightClassName: n = c.match }) {
220
266
  if (!t.trim()) return /* @__PURE__ */ R(a, {
221
267
  tag: "span",
222
268
  size: "inherit",
@@ -224,7 +270,7 @@ function se({ text: e, highlight: t, highlightClassName: n = c.match }) {
224
270
  className: "text-inherit",
225
271
  children: e
226
272
  });
227
- let r = RegExp(`(${oe(t)})`, "gi"), i = e.split(r), o = 0;
273
+ let r = RegExp(`(${le(t)})`, "gi"), i = e.split(r), o = 0;
228
274
  return /* @__PURE__ */ R(a, {
229
275
  tag: "span",
230
276
  size: "inherit",
@@ -235,18 +281,18 @@ function se({ text: e, highlight: t, highlightClassName: n = c.match }) {
235
281
  return o += e.length, r ? /* @__PURE__ */ R("mark", {
236
282
  className: n,
237
283
  children: e
238
- }, i) : /* @__PURE__ */ R(j.Fragment, { children: e }, i);
284
+ }, i) : /* @__PURE__ */ R(M.Fragment, { children: e }, i);
239
285
  })
240
286
  });
241
287
  }
242
- se.displayName = "HighlightedText";
288
+ ue.displayName = "HighlightedText";
243
289
  //#endregion
244
290
  //#region src/components/features/combobox/hooks/use-debounced-search.ts
245
- function ce({ searchValue: e, onSearch: t, debounceMs: n = 300, minSearchLength: r = 3 }) {
246
- let i = A((e) => {
291
+ function de({ searchValue: e, onSearch: t, debounceMs: n = 300, minSearchLength: r = 3 }) {
292
+ let i = j((e) => {
247
293
  t?.(e);
248
294
  }, n);
249
- N(() => {
295
+ P(() => {
250
296
  let t = e.trim();
251
297
  if (!(t.length < r)) return i(t), i.cancel;
252
298
  }, [
@@ -257,8 +303,8 @@ function ce({ searchValue: e, onSearch: t, debounceMs: n = 300, minSearchLength:
257
303
  }
258
304
  //#endregion
259
305
  //#region src/components/features/combobox/hooks/use-grouped-items.ts
260
- function le({ items: e, getItemGroup: t }) {
261
- return P(() => {
306
+ function fe({ items: e, getItemGroup: t }) {
307
+ return F(() => {
262
308
  if (!t) return null;
263
309
  let n = /* @__PURE__ */ new Map();
264
310
  for (let r of e) {
@@ -270,15 +316,15 @@ function le({ items: e, getItemGroup: t }) {
270
316
  }
271
317
  //#endregion
272
318
  //#region src/components/features/combobox/hooks/use-load-more.ts
273
- function ue({ hasMore: e, onLoadMore: t, loadingMore: n }) {
274
- let r = F(!1), i = F(null), a = A(() => {
319
+ function pe({ hasMore: e, onLoadMore: t, loadingMore: n }) {
320
+ let r = I(!1), i = I(null), a = j(() => {
275
321
  r.current = !0, t?.(), i.current && clearTimeout(i.current), i.current = setTimeout(() => {
276
322
  r.current = !1, i.current = null;
277
323
  }, 500);
278
324
  }, 100);
279
- return N(() => () => {
325
+ return P(() => () => {
280
326
  i.current && clearTimeout(i.current);
281
- }, []), { handleScroll: M((i) => {
327
+ }, []), { handleScroll: N((i) => {
282
328
  if (!e || !t || n || r.current) return;
283
329
  let { scrollHeight: o, scrollTop: s, clientHeight: c } = i.target;
284
330
  (s + c) / o >= .8 && a();
@@ -291,87 +337,87 @@ function ue({ hasMore: e, onLoadMore: t, loadingMore: n }) {
291
337
  }
292
338
  //#endregion
293
339
  //#region src/components/features/combobox/hooks/use-combobox-core.tsx
294
- function de(e) {
340
+ function me(e) {
295
341
  return n(W, e);
296
342
  }
297
- function fe(e, t, n) {
343
+ function he(e, t, n) {
298
344
  let r = t.toLowerCase();
299
345
  return e.some((e) => n(e).toLowerCase() === r);
300
346
  }
301
- function pe({ 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: ee, highlightMatch: v, ensuredItems: y = [] }) {
302
- let b = de(l), x = i ?? n, S = F(null), C = t.trim(), w = s && (o || C.length < c);
303
- ce({
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({
304
350
  searchValue: t,
305
351
  onSearch: d,
306
352
  debounceMs: f,
307
353
  minSearchLength: c
308
354
  });
309
- let { handleScroll: T } = ue({
310
- hasMore: s && !w ? g : !1,
355
+ let { handleScroll: E } = pe({
356
+ hasMore: s && !T ? g : !1,
311
357
  onLoadMore: _,
312
- loadingMore: ee
358
+ loadingMore: v
313
359
  });
314
- N(() => {
315
- let e = S.current;
316
- if (s && !w && e && g && _) return e.addEventListener("scroll", T), () => e.removeEventListener("scroll", T);
360
+ P(() => {
361
+ let e = C.current;
362
+ if (s && !T && e && g && _) return e.addEventListener("scroll", E), () => e.removeEventListener("scroll", E);
317
363
  }, [
318
- T,
364
+ E,
319
365
  g,
320
366
  _,
321
367
  s,
322
- w
368
+ T
323
369
  ]);
324
- let E = P(() => {
325
- if (!s || w) return [];
326
- if (y.length === 0) return e;
327
- let t = [...y];
370
+ let D = F(() => {
371
+ if (!s || T) return [];
372
+ if (b.length === 0) return e;
373
+ let t = [...b];
328
374
  return e.forEach((e) => {
329
- let n = x(e);
330
- y.some((e) => x(e) === n) || t.push(e);
375
+ let n = S(e);
376
+ b.some((e) => S(e) === n) || t.push(e);
331
377
  }), t;
332
378
  }, [
333
379
  e,
334
- y,
335
- x,
380
+ b,
381
+ S,
336
382
  s,
337
- w
338
- ]), D = le({
339
- items: E,
383
+ T
384
+ ]), O = fe({
385
+ items: D,
340
386
  getItemGroup: h
341
- }), O = P(() => !s || w || !p || !m || C.length < c ? !1 : !fe(E, C, n), [
387
+ }), k = F(() => !s || T || !p || !m || w.length < c ? !1 : !he(D, w, n), [
342
388
  p,
343
389
  m,
344
- C,
390
+ w,
345
391
  c,
346
- E,
392
+ D,
347
393
  n,
348
394
  s,
349
- w
350
- ]), k = P(() => O ? J(C) : null, [O, C]);
395
+ T
396
+ ]), A = F(() => k ? J(w) : null, [k, w]);
351
397
  return {
352
- strings: b,
353
- getKey: x,
354
- trimmedSearch: C,
355
- listRef: S,
356
- baseItems: E,
357
- allItems: P(() => k ? [...E, k] : E, [E, k]),
358
- groupedItems: D,
359
- createOptionItem: k,
360
- showStatus: w,
361
- showEmpty: s && !o && C.length >= c && e.length === 0 && !O,
362
- showCreateOption: O,
363
- renderItemContent: M((e) => {
398
+ strings: x,
399
+ getKey: S,
400
+ trimmedSearch: w,
401
+ listRef: C,
402
+ baseItems: D,
403
+ allItems: F(() => A ? [...D, A] : D, [D, A]),
404
+ groupedItems: O,
405
+ createOptionItem: A,
406
+ showStatus: T,
407
+ showEmpty: s && !o && w.length >= c && e.length === 0 && !k,
408
+ showCreateOption: k,
409
+ renderItemContent: N((e) => {
364
410
  if (K(e)) {
365
411
  let t = q(e);
366
412
  return /* @__PURE__ */ z("span", {
367
413
  className: r("combobox-core--component", "flex items-center gap-space-sm"),
368
- children: [/* @__PURE__ */ R(te, { className: "size-icon-sm" }), b.createNew.includes("{value}") ? /* @__PURE__ */ R(a, {
414
+ children: [/* @__PURE__ */ R(V, { className: "size-icon-sm" }), x.createNew.includes("{value}") ? /* @__PURE__ */ R(a, {
369
415
  tag: "span",
370
416
  size: "inherit",
371
417
  weight: "medium",
372
418
  lineHeight: "tight",
373
419
  className: "text-inherit",
374
- children: b.createNew.replace("{value}", t)
420
+ children: x.createNew.replace("{value}", t)
375
421
  }) : /* @__PURE__ */ z("span", {
376
422
  className: "inline-flex items-center gap-space-sm",
377
423
  children: [/* @__PURE__ */ R(a, {
@@ -380,7 +426,7 @@ function pe({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
380
426
  weight: "medium",
381
427
  lineHeight: "tight",
382
428
  className: "text-inherit",
383
- children: b.createNew
429
+ children: x.createNew
384
430
  }), /* @__PURE__ */ R(a, {
385
431
  tag: "span",
386
432
  size: "inherit",
@@ -394,9 +440,9 @@ function pe({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
394
440
  }
395
441
  if (u) return u(e);
396
442
  let t = n(e);
397
- return v && C ? /* @__PURE__ */ R(se, {
443
+ return y && w ? /* @__PURE__ */ R(ue, {
398
444
  text: t,
399
- highlight: C
445
+ highlight: w
400
446
  }) : /* @__PURE__ */ R(a, {
401
447
  tag: "span",
402
448
  size: "inherit",
@@ -406,76 +452,32 @@ function pe({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
406
452
  children: t
407
453
  });
408
454
  }, [
409
- b.createNew,
455
+ x.createNew,
410
456
  u,
411
457
  n,
412
- v,
413
- C
458
+ y,
459
+ w
414
460
  ]),
415
- itemToStringLabel: M((e) => K(e) ? q(e) : n(e), [n]),
416
- getItemReactKey: M((e) => K(e) ? `__create__:${q(e)}` : String(x(e)), [x]),
417
- handleScroll: T
461
+ itemToStringLabel: N((e) => K(e) ? q(e) : n(e), [n]),
462
+ getItemReactKey: N((e) => K(e) ? `__create__:${q(e)}` : String(S(e)), [S]),
463
+ handleScroll: E
418
464
  };
419
465
  }
420
466
  //#endregion
421
467
  //#region src/components/features/combobox/combobox.tsx
422
- function me(e, n) {
468
+ function _e(e, n) {
423
469
  return t(e, n, "md");
424
470
  }
425
- var he = {
471
+ var ve = {
426
472
  sm: "sm",
427
473
  md: "md",
428
474
  lg: "lg"
429
475
  };
430
- function ge(e) {
476
+ function ye(e) {
431
477
  return e;
432
478
  }
433
- function _e({ placeholder: e, clearLabel: t, toggleLabel: n, size: a, error: o, required: s, disabled: c, clearable: l = !0, className: u, onBlur: p }) {
434
- return /* @__PURE__ */ z("div", {
435
- className: "relative",
436
- children: [/* @__PURE__ */ R(U.Input, {
437
- render: /* @__PURE__ */ R(O, {
438
- size: a,
439
- invalid: o,
440
- className: r(l ? f.clearPadding[a] : f.padding[a], u)
441
- }),
442
- placeholder: e,
443
- "aria-invalid": o || void 0,
444
- "aria-required": s,
445
- disabled: c,
446
- onBlur: p
447
- }), /* @__PURE__ */ z("div", {
448
- className: r("absolute inset-y-0 flex items-center gap-space-xs text-muted-foreground", f.track[a]),
449
- children: [l ? /* @__PURE__ */ R(U.Clear, { render: /* @__PURE__ */ R(i, {
450
- type: "button",
451
- tone: "secondary",
452
- buttonStyle: "ghost",
453
- size: "sm",
454
- iconOnly: !0,
455
- className: r(d.target, d.focus, d.clear),
456
- "aria-label": t,
457
- children: /* @__PURE__ */ R(H, {
458
- className: d.icon,
459
- "aria-hidden": "true"
460
- })
461
- }) }) : null, /* @__PURE__ */ R(U.Trigger, { render: /* @__PURE__ */ R(i, {
462
- type: "button",
463
- tone: "secondary",
464
- buttonStyle: "ghost",
465
- size: "sm",
466
- iconOnly: !0,
467
- className: r(d.target, d.focus, d.toggle),
468
- "aria-label": n,
469
- children: /* @__PURE__ */ R(B, {
470
- className: r("shrink-0", f.icon[a]),
471
- "aria-hidden": "true"
472
- })
473
- }) })]
474
- })]
475
- });
476
- }
477
- function ve({ 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: ee, name: v, invalid: y, error: b, required: x, onBlur: S, onSearch: w, debounceMs: T, creatable: E, onCreate: D, getItemGroup: O, renderGroupLabel: k, hasMore: A, onLoadMore: j, loadingMore: N, getItemDisabled: P, highlightMatch: F, size: L, open: B, onOpenChange: V }) {
478
- let { defaultScale: te } = e(), H = me(L, te), U = ge(H), W = y || !!b, G = pe({
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({
479
481
  items: t,
480
482
  searchValue: a,
481
483
  onSearchValueChange: o,
@@ -486,44 +488,44 @@ function ve({ items: t, selectedValue: n, onSelectedValueChange: r, clearSearchO
486
488
  minSearchLength: f,
487
489
  strings: p,
488
490
  renderItem: _,
489
- onSearch: w,
490
- debounceMs: T,
491
- creatable: E,
492
- onCreate: D,
493
- getItemGroup: O,
494
- hasMore: A,
491
+ onSearch: T,
492
+ debounceMs: E,
493
+ creatable: D,
494
+ onCreate: O,
495
+ getItemGroup: k,
496
+ hasMore: ee,
495
497
  onLoadMore: j,
496
- loadingMore: N,
498
+ loadingMore: M,
497
499
  highlightMatch: F,
498
- size: H,
500
+ size: V,
499
501
  ensuredItems: n ? [n] : []
500
- }), [J, ne] = I(!1), Y = M((e) => {
501
- ne(e), !e && i && o(""), V?.(e);
502
+ }), [G, J] = L(!1), Y = N((e) => {
503
+ J(e), !e && i && o(""), B?.(e);
502
504
  }, [
503
505
  i,
504
- V,
506
+ B,
505
507
  o
506
- ]), X = J ? a : n ? G.itemToStringLabel(n) : "", Z = M((e) => {
508
+ ]), X = G ? a : n ? W.itemToStringLabel(n) : "", ie = N((e) => {
507
509
  if (e && K(e)) {
508
510
  let t = q(e);
509
- D?.(t);
511
+ O?.(t);
510
512
  return;
511
513
  }
512
514
  r(e);
513
- }, [r, D]);
515
+ }, [r, O]);
514
516
  return /* @__PURE__ */ z(s, {
515
517
  gap: "dense",
516
518
  className: "combobox--component",
517
- children: [/* @__PURE__ */ z(C, {
518
- dismissLabel: G.strings.dismiss,
519
- items: G.allItems,
519
+ children: [/* @__PURE__ */ z(w, {
520
+ dismissLabel: W.strings.dismiss,
521
+ items: W.allItems,
520
522
  value: n,
521
523
  onValueChange: (e, t) => {
522
524
  if (t.reason === "escape-key") {
523
525
  t.allowPropagation();
524
526
  return;
525
527
  }
526
- Z(e);
528
+ ie(e);
527
529
  },
528
530
  inputValue: X,
529
531
  onInputValueChange: (e, t) => {
@@ -538,57 +540,57 @@ function ve({ items: t, selectedValue: n, onSelectedValueChange: r, clearSearchO
538
540
  }
539
541
  o(e);
540
542
  },
541
- itemToStringLabel: G.itemToStringLabel,
543
+ itemToStringLabel: W.itemToStringLabel,
542
544
  disabled: m,
543
545
  filter: null,
544
- name: v,
545
- required: x,
546
- open: B,
546
+ name: y,
547
+ required: S,
548
+ open: te,
547
549
  onOpenChange: Y,
548
- children: [/* @__PURE__ */ R(_e, {
549
- placeholder: G.strings.placeholder,
550
- clearLabel: G.strings.clear,
551
- toggleLabel: G.strings.toggle,
550
+ children: [/* @__PURE__ */ R(re, {
551
+ placeholder: W.strings.placeholder,
552
+ clearLabel: W.strings.clear,
553
+ toggleLabel: W.strings.toggle,
552
554
  className: h,
553
- size: U,
554
- error: W,
555
- required: x,
555
+ size: H,
556
+ error: U,
557
+ required: S,
556
558
  disabled: m,
557
559
  clearable: g,
558
- onBlur: S
559
- }), /* @__PURE__ */ R(ie, {
560
+ onBlur: C
561
+ }), /* @__PURE__ */ R(se, {
560
562
  loading: u,
561
- showStatus: G.showStatus,
562
- showEmpty: G.showEmpty,
563
+ showStatus: W.showStatus,
564
+ showEmpty: W.showEmpty,
563
565
  searchValue: a,
564
566
  minSearchLength: f,
565
- items: G.allItems,
566
- groupedItems: G.groupedItems,
567
- createOptionItem: G.createOptionItem,
568
- renderItemContent: G.renderItemContent,
569
- getItemReactKey: G.getItemReactKey,
567
+ items: W.allItems,
568
+ groupedItems: W.groupedItems,
569
+ createOptionItem: W.createOptionItem,
570
+ renderItemContent: W.renderItemContent,
571
+ getItemReactKey: W.getItemReactKey,
570
572
  getItemDisabled: P,
571
- renderGroupLabel: k,
572
- loadingMore: d && !G.showStatus ? N : !1,
573
- strings: G.strings,
574
- size: H,
575
- portalContainer: ee,
576
- listRef: G.listRef
573
+ renderGroupLabel: A,
574
+ loadingMore: d && !W.showStatus ? M : !1,
575
+ strings: W.strings,
576
+ size: V,
577
+ portalContainer: v,
578
+ listRef: W.listRef
577
579
  })]
578
- }), /* @__PURE__ */ R(ae, {
579
- error: b,
580
- size: H
580
+ }), /* @__PURE__ */ R(ce, {
581
+ error: x,
582
+ size: V
581
583
  })]
582
584
  });
583
585
  }
584
- function ye({ 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: ee, name: v, invalid: b, error: w, required: T, onBlur: O, onSearch: k, debounceMs: A, creatable: j, onCreate: P, getItemGroup: L, renderGroupLabel: B, hasMore: V, onLoadMore: te, loadingMore: H, getItemDisabled: U, highlightMatch: G, size: J, open: ne, onOpenChange: Y, closeOnSelect: X = !1, applyButton: Z = !1, onApply: re, onCancel: oe }) {
585
- let { defaultScale: se } = e(), ce = me(J, se), le = ge(ce), ue = he[ce], de = b || !!w, fe = F(null), _e = u ?? l, [ve, ye] = I(n), [be, xe] = I(!1), Se = ne !== void 0, Ce = Se ? ne : be;
586
- N(() => {
587
- Z && ye(n);
588
- }, [Z, n]);
589
- let Q = M((e) => {
590
- Se || xe(e), Y?.(e);
591
- }, [Se, Y]), $ = pe({
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;
588
+ P(() => {
589
+ X && Z(n);
590
+ }, [X, n]);
591
+ let Q = N((e) => {
592
+ Se || xe(e), J?.(e);
593
+ }, [Se, J]), $ = ge({
592
594
  items: t,
593
595
  searchValue: o,
594
596
  onSearchValueChange: c,
@@ -599,49 +601,49 @@ function ye({ items: t, selectedValues: n, onSelectedValuesChange: i, searchValu
599
601
  minSearchLength: p,
600
602
  strings: m,
601
603
  renderItem: _,
602
- onSearch: k,
603
- debounceMs: A,
604
+ onSearch: A,
605
+ debounceMs: ee,
604
606
  creatable: j,
605
- onCreate: P,
606
- getItemGroup: L,
607
- hasMore: V,
608
- onLoadMore: te,
609
- loadingMore: H,
610
- highlightMatch: G,
611
- size: ce,
607
+ onCreate: M,
608
+ getItemGroup: F,
609
+ hasMore: B,
610
+ onLoadMore: ne,
611
+ loadingMore: V,
612
+ highlightMatch: U,
613
+ size: le,
612
614
  ensuredItems: n
613
- }), we = M((e) => {
615
+ }), we = N((e) => {
614
616
  let t = [], n = null;
615
617
  for (let r of e) K(r) ? n = q(r) : t.push(r);
616
- n && P?.(n);
618
+ n && M?.(n);
617
619
  let r = t.length !== e.length || !n ? t : null;
618
- r && (Z ? ye(r) : i(r)), X && Q(!1);
620
+ r && (X ? Z(r) : i(r)), Y && Q(!1);
619
621
  }, [
620
622
  i,
621
- P,
622
- Z,
623
+ M,
623
624
  X,
625
+ Y,
624
626
  Q
625
- ]), Te = M(() => {
626
- Z && i(ve), re?.(), Q(!1);
627
+ ]), Te = N(() => {
628
+ X && i(he), ie?.(), Q(!1);
627
629
  }, [
628
- Z,
629
- ve,
630
- re,
630
+ X,
631
+ he,
632
+ ie,
631
633
  i,
632
634
  Q
633
- ]), Ee = M(() => {
634
- Z && ye(n), oe?.(), Q(!1);
635
+ ]), Ee = N(() => {
636
+ X && Z(n), ae?.(), Q(!1);
635
637
  }, [
636
- Z,
638
+ X,
637
639
  n,
638
- oe,
640
+ ae,
639
641
  Q
640
- ]), De = Z ? ve : n, Oe = De.length > 0 ? void 0 : $.strings.placeholder;
642
+ ]), De = X ? he : n, Oe = De.length > 0 ? void 0 : $.strings.placeholder;
641
643
  return /* @__PURE__ */ z(s, {
642
644
  gap: "dense",
643
645
  className: "combobox--component",
644
- children: [/* @__PURE__ */ z(C, {
646
+ children: [/* @__PURE__ */ z(w, {
645
647
  dismissLabel: $.strings.dismiss,
646
648
  items: $.allItems,
647
649
  multiple: !0,
@@ -669,18 +671,18 @@ function ye({ items: t, selectedValues: n, onSelectedValuesChange: i, searchValu
669
671
  itemToStringLabel: $.itemToStringLabel,
670
672
  disabled: h,
671
673
  filter: null,
672
- name: v,
673
- required: T,
674
+ name: y,
675
+ required: E,
674
676
  open: Ce,
675
677
  onOpenChange: (e) => {
676
- !e && Z && ye(n), Q(e);
678
+ !e && X && Z(n), Q(e);
677
679
  },
678
- children: [/* @__PURE__ */ z(x, {
679
- ref: fe,
680
- className: r(E[le], D[le], le === "sm" ? "text-pxs" : "text-sm", "bg-transparent !shadow-none", g),
681
- size: ue,
682
- error: de,
683
- children: [De.map((e) => /* @__PURE__ */ R(S, {
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, {
684
686
  strings: { remove: ($.strings.removeSelection ?? W.removeSelection)(l(e)) },
685
687
  children: /* @__PURE__ */ R(a, {
686
688
  tag: "span",
@@ -690,13 +692,13 @@ function ye({ items: t, selectedValues: n, onSelectedValuesChange: i, searchValu
690
692
  className: "combobox--chip-label text-inherit",
691
693
  children: l(e)
692
694
  })
693
- }, _e(e))), /* @__PURE__ */ R(y, {
695
+ }, me(e))), /* @__PURE__ */ R(b, {
694
696
  placeholder: Oe,
695
- "aria-invalid": de || void 0,
696
- "aria-required": T,
697
- onBlur: O
697
+ "aria-invalid": fe || void 0,
698
+ "aria-required": E,
699
+ onBlur: D
698
700
  })]
699
- }), /* @__PURE__ */ R(ie, {
701
+ }), /* @__PURE__ */ R(se, {
700
702
  loading: d,
701
703
  showStatus: $.showStatus,
702
704
  showEmpty: $.showEmpty,
@@ -707,84 +709,84 @@ function ye({ items: t, selectedValues: n, onSelectedValuesChange: i, searchValu
707
709
  createOptionItem: $.createOptionItem,
708
710
  renderItemContent: $.renderItemContent,
709
711
  getItemReactKey: $.getItemReactKey,
710
- getItemDisabled: U,
711
- renderGroupLabel: B,
712
- loadingMore: f && !$.showStatus ? H : !1,
712
+ getItemDisabled: H,
713
+ renderGroupLabel: te,
714
+ loadingMore: f && !$.showStatus ? V : !1,
713
715
  strings: $.strings,
714
- size: ce,
715
- portalContainer: ee,
716
+ size: le,
717
+ portalContainer: v,
716
718
  listRef: $.listRef,
717
- anchor: fe,
718
- applyFooter: f && Z ? {
719
+ anchor: pe,
720
+ applyFooter: f && X ? {
719
721
  applyLabel: $.strings.apply,
720
722
  cancelLabel: $.strings.cancel,
721
723
  onApply: Te,
722
724
  onCancel: Ee
723
725
  } : void 0
724
726
  })]
725
- }), /* @__PURE__ */ R(ae, {
726
- error: w,
727
- size: ce
727
+ }), /* @__PURE__ */ R(ce, {
728
+ error: T,
729
+ size: le
728
730
  })]
729
731
  });
730
732
  }
731
- ve.displayName = "Combobox", ye.displayName = "MultiCombobox";
733
+ Z.displayName = "Combobox", be.displayName = "MultiCombobox";
732
734
  //#endregion
733
735
  //#region src/components/features/combobox/async-resource-combobox.tsx
734
- var be = {
736
+ var xe = {
735
737
  ...W,
736
738
  error: "Unable to load options.",
737
739
  retry: "Retry"
738
740
  };
739
- function xe(e) {
741
+ function Se(e) {
740
742
  return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
741
743
  }
742
- function Se({ 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: ee = !0, minSearchLength: v = 0, errorMessage: y, renderError: b, strings: x, disabled: S, size: C, ...w }) {
743
- let T = n(be, x), E = t !== void 0, [D, O] = I(i), k = E ? t : D, [j, L] = I(""), [B, V] = I([]), [te, H] = I(!1), [U, W] = I(null), [G, K] = I(0), q = F(0), J = j.trim(), ne = M((e) => {
744
- E || O(e), o?.(e);
745
- }, [E, o]), Y = A((t, n) => {
746
- H(!0), W(null), e(n).then((e) => {
747
- n.signal?.aborted || q.current !== t || (V(e), c?.(e, 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) => {
748
+ V(!0), U(null), e(n).then((e) => {
749
+ n.signal?.aborted || G.current !== t || (B(e), c?.(e, n));
748
750
  }).catch((e) => {
749
- n.signal?.aborted || q.current !== t || (V([]), W({
751
+ n.signal?.aborted || G.current !== t || (B([]), U({
750
752
  error: e,
751
753
  query: n.query
752
754
  }), u?.(e, n));
753
755
  }).finally(() => {
754
- !n.signal?.aborted && q.current === t && H(!1);
756
+ !n.signal?.aborted && G.current === t && V(!1);
755
757
  });
756
758
  }, _);
757
- N(() => {
758
- if (S) return;
759
- if (!(J.length > 0 ? J.length >= v : ee)) {
760
- V([]), H(!1), W(null);
759
+ P(() => {
760
+ if (C) return;
761
+ if (!(K.length > 0 ? K.length >= y : v)) {
762
+ B([]), V(!1), U(null);
761
763
  return;
762
764
  }
763
- let e = q.current + 1;
764
- q.current = e;
765
+ let e = G.current + 1;
766
+ G.current = e;
765
767
  let t = new AbortController();
766
- return Y(e, {
767
- query: J,
768
+ return J(e, {
769
+ query: K,
768
770
  limit: g,
769
771
  signal: t.signal
770
772
  }), () => {
771
- Y.cancel(), t.abort();
773
+ J.cancel(), t.abort();
772
774
  };
773
775
  }, [
774
- S,
776
+ C,
775
777
  g,
778
+ y,
776
779
  v,
777
- ee,
778
- G,
779
- Y,
780
- J
780
+ re,
781
+ J,
782
+ K
781
783
  ]);
782
- let X = M(() => {
783
- U && (L(U.query), K((e) => e + 1));
784
- }, [U]), Z = M((e) => {
784
+ let Y = N(() => {
785
+ H && (M(H.query), W((e) => e + 1));
786
+ }, [H]), X = N((e) => {
785
787
  if (h) return h(e, {
786
- query: J,
787
- isSelected: k ? d(k) === d(e) : !1
788
+ query: K,
789
+ isSelected: A ? d(A) === d(e) : !1
788
790
  });
789
791
  let t = p?.(e), n = m?.(e);
790
792
  return /* @__PURE__ */ z(s, {
@@ -796,19 +798,19 @@ function Se({ fetcher: e, value: t, defaultValue: i = null, onValueChange: o, on
796
798
  children: [/* @__PURE__ */ R(a, {
797
799
  type: "inherit",
798
800
  tag: "span",
799
- size: C === "sm" ? "pxs" : void 0,
801
+ size: w === "sm" ? "pxs" : void 0,
800
802
  weight: "medium",
801
803
  className: "min-w-0 shrink truncate",
802
804
  children: f(e)
803
805
  }), (!!t || !!n) && /* @__PURE__ */ z("span", {
804
806
  className: "inline-flex min-w-0 flex-1 items-center gap-space-sm overflow-hidden text-muted-foreground",
805
- children: [!!t && (xe(t) ? /* @__PURE__ */ R(a, {
807
+ children: [!!t && (Se(t) ? /* @__PURE__ */ R(a, {
806
808
  tag: "span",
807
809
  size: "xs",
808
810
  type: "secondary",
809
811
  className: "min-w-0 truncate",
810
812
  children: t
811
- }) : t), !!n && (xe(n) ? /* @__PURE__ */ R(a, {
813
+ }) : t), !!n && (Se(n) ? /* @__PURE__ */ R(a, {
812
814
  tag: "span",
813
815
  size: "xs",
814
816
  type: "secondary",
@@ -823,53 +825,53 @@ function Se({ fetcher: e, value: t, defaultValue: i = null, onValueChange: o, on
823
825
  f,
824
826
  m,
825
827
  h,
826
- k,
827
- C,
828
- J
829
- ]), re = P(() => {
830
- if (U) return y ?? T.error;
828
+ A,
829
+ w,
830
+ K
831
+ ]), ie = F(() => {
832
+ if (H) return b ?? E.error;
831
833
  }, [
832
- y,
833
- U,
834
- T.error
835
- ]), ie = U !== null, ae = U ? b?.({
836
- error: U.error,
837
- query: U.query,
838
- retry: X
834
+ b,
835
+ H,
836
+ E.error
837
+ ]), ae = H !== null, oe = H ? x?.({
838
+ error: H.error,
839
+ query: H.query,
840
+ retry: Y
839
841
  }) ?? /* @__PURE__ */ R(l, {
840
842
  variant: "inline",
841
- title: re,
842
- onRetry: X,
843
- retryLabel: T.retry,
843
+ title: ie,
844
+ onRetry: Y,
845
+ retryLabel: E.retry,
844
846
  className: "async-resource-combobox--error mt-space-sm"
845
847
  }) : null;
846
848
  return /* @__PURE__ */ z("div", {
847
849
  "data-component": "async-resource-combobox",
848
850
  "data-slot": "async-resource-combobox",
849
- className: r("async-resource-combobox--component", w.className),
850
- children: [/* @__PURE__ */ R(ve, {
851
- ...w,
851
+ className: r("async-resource-combobox--component", T.className),
852
+ children: [/* @__PURE__ */ R(Z, {
853
+ ...T,
852
854
  className: void 0,
853
- disabled: S,
854
- size: C,
855
- items: B,
856
- selectedValue: k ?? null,
857
- onSelectedValueChange: ne,
855
+ disabled: C,
856
+ size: w,
857
+ items: te,
858
+ selectedValue: A ?? null,
859
+ onSelectedValueChange: q,
858
860
  clearSearchOnClose: !1,
859
- searchValue: j,
860
- onSearchValueChange: L,
861
+ searchValue: ee,
862
+ onSearchValueChange: M,
861
863
  getItemLabel: f,
862
864
  getItemKey: d,
863
- loading: !ie && te,
864
- showListContent: !ie,
865
- minSearchLength: v,
866
- strings: T,
867
- renderItem: Z
868
- }), ae]
865
+ loading: !ae && ne,
866
+ showListContent: !ae,
867
+ minSearchLength: y,
868
+ strings: E,
869
+ renderItem: X
870
+ }), oe]
869
871
  });
870
872
  }
871
- Se.displayName = "AsyncResourceCombobox";
873
+ Ce.displayName = "AsyncResourceCombobox";
872
874
  //#endregion
873
- export { pe as a, ye as i, be as n, W as o, ve 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 };
874
876
 
875
- //# sourceMappingURL=combobox-C0EQW6dr.js.map
877
+ //# sourceMappingURL=combobox-CBJDs6w_.js.map