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,31 +1,31 @@
1
1
  "use client";
2
- import { m as e, s as t } from "./ui-provider-1D_NSYzO.js";
2
+ import { m as e, s 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 { t as i } from "./buttons-SbIcm1HJ.js";
6
- import { s as a } from "./typography-DTRkE9zL.js";
4
+ import { t as r } from "./utils-BRhFDwuU.js";
5
+ import { t as i } from "./buttons-DPZekJFu.js";
6
+ import { c as a } from "./typography-UTnveOEy.js";
7
7
  import { a as o } from "./text.styles-g4He6UIW.js";
8
8
  import { t as s } from "./focus-recipes-B653VaLq.js";
9
- import { t as c } from "./structure-DC2dygdA.js";
9
+ import { t as c } from "./structure-BmisBK-3.js";
10
10
  import { t as l } from "./track-recipes-CDcKmndW.js";
11
- import { n as u, t as d } from "./popover.recipes-Bdyhj2db.js";
12
- import { n as f } from "./collection-content-uK16Grv0.js";
13
- import { t as p } from "./badge-MrKVNzW9.js";
11
+ import { n as u, t as d } from "./popover.recipes-D3j8R8Yp.js";
12
+ import { n as f } from "./collection-content-By56pLog.js";
13
+ import { t as p } from "./badge-HpFqoqSY.js";
14
14
  import { t as ee } from "./field-state-recipes-BVA2CWHo.js";
15
- import { n as m, r as h, t as te } from "./field-affordance-recipes-qQeIf4lG.js";
16
- import { t as ne } from "./editable-text-recipe-Bkm6wKHp.js";
17
- import { _ as re, a as g, c as _, f as v, u as ie } from "./form-sizing-By94KzXE.js";
18
- import { t as y } from "./input-DWhBBBww.js";
19
- import { t as b } from "./date-picker-CF-DtUpF.js";
20
- import { o as x, t as ae } from "./popover-Di55PyAI.js";
21
- import { _ as S, d as oe, f as se, g as ce, p as C, v as w } from "./choice-inputs-t6w3ATNz.js";
22
- import * as T from "react";
23
- import { forwardRef as E, memo as D, useCallback as O, useId as le, useMemo as k, useRef as A, useState as j } from "react";
24
- import { jsx as M, jsxs as N } from "react/jsx-runtime";
25
- import { Check as ue } from "lucide-react";
26
- import { Slider as P } from "@base-ui/react/slider";
15
+ import { n as m, r as h, t as te } from "./field-affordance-recipes-DZhnIL_Y.js";
16
+ import { t as ne } from "./editable-text-recipe-Cn61kEcv.js";
17
+ import { d as re, l as g, o as ie, p as ae, y as oe } from "./form-sizing-BdP_Mf5p.js";
18
+ import { t as se } from "./input-DQdEd0YD.js";
19
+ import { t as _ } from "./date-picker-B2K3ucWn.js";
20
+ import { o as v, t as y } from "./popover-gnTOhbFM.js";
21
+ import { _ as ce, d as b, f as x, g as le, p as S, v as C } from "./choice-inputs-CNHvARCJ.js";
22
+ import * as w from "react";
23
+ import { forwardRef as T, memo as E, useCallback as D, useId as O, useMemo as k, useRef as ue, useState as A } from "react";
24
+ import { jsx as j, jsxs as M } from "react/jsx-runtime";
25
+ import { Check as de } from "lucide-react";
26
+ import { Slider as N } from "@base-ui/react/slider";
27
27
  //#region src/components/base/value-inputs/tags-input.tsx
28
- var F = {
28
+ var P = {
29
29
  placeholder: "Add a tag…",
30
30
  emptyRecommendations: "No recommendations found.",
31
31
  clearAll: "Clear all",
@@ -34,21 +34,21 @@ var F = {
34
34
  notAdded: (e) => `Not added: ${e}.`,
35
35
  recommendationsLabel: "Suggested tags"
36
36
  };
37
- function de(e) {
37
+ function F(e) {
38
38
  return e === !0 || e === "true";
39
39
  }
40
- function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby": v, "aria-invalid": ie, "aria-required": y, value: b, defaultValue: S, onValueChange: oe, name: se, placeholder: ce, recommendations: C, maxTags: w, showMaxTags: E = !1, allowDuplicates: D = !1, validate: le, disabled: P = !1, showClearAll: fe = !1, renderTag: pe, delimiter: I = /[\n,]/, addOnBlur: me = !0, minLength: he = 1, maxLength: ge, sortTags: _e = !1, caseSensitive: ve = !1, field: L, invalid: ye, className: R, strings: z }) {
41
- let { defaultTextSize: B } = e(), { defaultScale: be } = t(), V = re(void 0, be), xe = n(F, ce === void 0 ? void 0 : { placeholder: ce }), H = n(xe, z), Se = b !== void 0, [Ce, we] = j(() => S ?? []), U = b ?? Ce, [W, Te] = j(""), [Ee, De] = j(null), [Oe, ke] = j(""), [Ae, G] = j(!1), [je, K] = j(-1), [Me, Ne] = j(null), Pe = A(null), Fe = A(null), Ie = T.useId(), Le = T.useId(), Re = w !== void 0 && U.length >= w, ze = !!C?.length, q = O((e) => {
40
+ function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby": re, "aria-invalid": ae, "aria-required": se, value: _, defaultValue: ce, onValueChange: b, name: x, placeholder: le, recommendations: S, maxTags: C, showMaxTags: T = !1, allowDuplicates: E = !1, validate: O, disabled: N = !1, showClearAll: fe = !1, renderTag: pe, delimiter: I = /[\n,]/, addOnBlur: me = !0, minLength: L = 1, maxLength: he, sortTags: ge = !1, caseSensitive: _e = !1, field: R, invalid: ve, className: ye, strings: be }) {
41
+ let { defaultTextSize: xe } = e(), { defaultScale: z } = t(), B = oe(void 0, z), V = n(P, le === void 0 ? void 0 : { placeholder: le }), H = n(V, be), Se = _ !== void 0, [Ce, we] = A(() => ce ?? []), U = _ ?? Ce, [W, Te] = A(""), [Ee, De] = A(null), [Oe, ke] = A(""), [Ae, G] = A(!1), [je, K] = A(-1), [Me, Ne] = A(null), Pe = ue(null), Fe = ue(null), Ie = w.useId(), Le = w.useId(), Re = C !== void 0 && U.length >= C, ze = !!S?.length, q = D((e) => {
42
42
  if (typeof e == "string") return e;
43
- if (L && typeof e == "object" && e) {
44
- let t = e[L];
43
+ if (R && typeof e == "object" && e) {
44
+ let t = e[R];
45
45
  return typeof t == "string" ? t : t == null ? "" : String(t);
46
46
  }
47
47
  return String(e);
48
- }, [L]), Be = O((e) => L ? { [L]: e } : e, [L]), J = O((e) => ve ? e : e.toLowerCase(), [ve]), Ve = O((e, t) => {
48
+ }, [R]), Be = D((e) => R ? { [R]: e } : e, [R]), J = D((e) => _e ? e : e.toLowerCase(), [_e]), Ve = D((e, t) => {
49
49
  let n = J(e);
50
50
  return t.some((e) => J(q(e)) === n);
51
- }, [J, q]), He = k(() => C ? C.map((e, t) => {
51
+ }, [J, q]), He = k(() => S ? S.map((e, t) => {
52
52
  if (e && typeof e == "object" && "value" in e && "label" in e) {
53
53
  let n = e;
54
54
  return {
@@ -63,51 +63,51 @@ function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby":
63
63
  value: e,
64
64
  label: n
65
65
  };
66
- }) : [], [C, q]), Y = k(() => {
66
+ }) : [], [S, q]), Y = k(() => {
67
67
  if (!He.length) return He;
68
68
  let e = J(W.trim()), t = new Set(U.map((e) => J(q(e))));
69
69
  return He.filter((n) => {
70
70
  let r = J(q(n.value));
71
- return !D && t.has(r) ? !1 : !e || J(n.label).includes(e) || r.includes(e);
71
+ return !E && t.has(r) ? !1 : !e || J(n.label).includes(e) || r.includes(e);
72
72
  });
73
73
  }, [
74
74
  He,
75
75
  W,
76
76
  U,
77
- D,
77
+ E,
78
78
  J,
79
79
  q
80
- ]), X = Ae && !P && ze && !Re, Z = X && je >= 0 && je < Y.length ? je : -1, Ue = O((e) => [...e].sort((e, t) => q(e).localeCompare(q(t))), [q]), We = O((e) => {
81
- Se || we(e), oe?.(e);
82
- }, [Se, oe]), Ge = O((e) => {
80
+ ]), X = Ae && !N && ze && !Re, Z = X && je >= 0 && je < Y.length ? je : -1, Ue = D((e) => [...e].sort((e, t) => q(e).localeCompare(q(t))), [q]), We = D((e) => {
81
+ Se || we(e), b?.(e);
82
+ }, [Se, b]), Ge = D((e) => {
83
83
  let t = [...U], n = [];
84
84
  for (let r of e) {
85
85
  let e = typeof r == "string", i = (e ? r : q(r)).trim();
86
86
  if (!i) continue;
87
87
  let a = e ? Be(i) : r;
88
- if (i.length < he || ge !== void 0 && i.length > ge || w !== void 0 && t.length >= w || !D && Ve(i, t) || le && !le(a)) {
88
+ if (i.length < L || he !== void 0 && i.length > he || C !== void 0 && t.length >= C || !E && Ve(i, t) || O && !O(a)) {
89
89
  n.push(i);
90
90
  continue;
91
91
  }
92
92
  t.push(a);
93
93
  }
94
- return t.length !== U.length && (_e && (t = Ue(t)), We(t)), n;
94
+ return t.length !== U.length && (ge && (t = Ue(t)), We(t)), n;
95
95
  }, [
96
96
  U,
97
97
  q,
98
98
  Be,
99
+ L,
99
100
  he,
100
- ge,
101
- w,
102
- D,
101
+ C,
102
+ E,
103
103
  Ve,
104
- le,
105
- _e,
104
+ O,
105
+ ge,
106
106
  Ue,
107
107
  We
108
- ]), Q = O((e) => {
108
+ ]), Q = D((e) => {
109
109
  let t = Ge(e), n = t.join(typeof I == "string" ? I : ", ");
110
- Te(n), De(n || null), ke(t.length ? (H.notAdded ?? F.notAdded)(t.join(", ")) : ""), G(!1), K(-1);
110
+ Te(n), De(n || null), ke(t.length ? (H.notAdded ?? P.notAdded)(t.join(", ")) : ""), G(!1), K(-1);
111
111
  }, [
112
112
  Ge,
113
113
  I,
@@ -123,18 +123,18 @@ function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby":
123
123
  key: `${r}::${i}`
124
124
  };
125
125
  });
126
- }, [U, q]), $ = k(() => _e ? [...Ke].sort((e, t) => e.display.localeCompare(t.display)) : Ke, [Ke, _e]), qe = O((e) => {
126
+ }, [U, q]), $ = k(() => ge ? [...Ke].sort((e, t) => e.display.localeCompare(t.display)) : Ke, [Ke, ge]), qe = D((e) => {
127
127
  We(U.filter((t, n) => n !== e));
128
- }, [U, We]), Je = O((e) => {
128
+ }, [U, We]), Je = D((e) => {
129
129
  Ne(Math.max(0, $.findIndex((t) => t.index === e))), qe(e);
130
130
  }, [$, qe]);
131
- T.useLayoutEffect(() => {
131
+ w.useLayoutEffect(() => {
132
132
  if (Me === null) return;
133
133
  Ne(null);
134
134
  let e = Fe.current?.querySelectorAll("[data-tag-remove]:not(:disabled)");
135
135
  ((e && e.length > 0 ? e[Math.min(Me, e.length - 1)] : void 0) ?? Pe.current)?.focus();
136
136
  }, [Me]);
137
- let Ye = O((e) => {
137
+ let Ye = D((e) => {
138
138
  let t = e.target.value;
139
139
  if (t.split(I).length > 1) {
140
140
  Q(t.split(I));
@@ -145,10 +145,10 @@ function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby":
145
145
  I,
146
146
  Q,
147
147
  ze
148
- ]), Xe = O((e) => {
149
- P || e.nativeEvent.isComposing || e.keyCode === 229 || (e.key === "Enter" ? (e.preventDefault(), Z >= 0 ? Q([Y[Z].value]) : W.trim() && Q(W.split(I))) : e.key === "ArrowDown" ? X ? (e.preventDefault(), K((e) => e < Y.length - 1 ? e + 1 : e)) : ze && !Re && Y.length > 0 && G(!0) : e.key === "ArrowUp" ? X && (e.preventDefault(), K((e) => e > 0 ? e - 1 : 0)) : e.key === "Escape" ? (G(!1), K(-1)) : e.key === "Backspace" && W === "" && $.length > 0 && (e.preventDefault(), qe($[$.length - 1].index)));
148
+ ]), Xe = D((e) => {
149
+ N || e.nativeEvent.isComposing || e.keyCode === 229 || (e.key === "Enter" ? (e.preventDefault(), Z >= 0 ? Q([Y[Z].value]) : W.trim() && Q(W.split(I))) : e.key === "ArrowDown" ? X ? (e.preventDefault(), K((e) => e < Y.length - 1 ? e + 1 : e)) : ze && !Re && Y.length > 0 && G(!0) : e.key === "ArrowUp" ? X && (e.preventDefault(), K((e) => e > 0 ? e - 1 : 0)) : e.key === "Escape" ? (G(!1), K(-1)) : e.key === "Backspace" && W === "" && $.length > 0 && (e.preventDefault(), qe($[$.length - 1].index)));
150
150
  }, [
151
- P,
151
+ N,
152
152
  Z,
153
153
  Y,
154
154
  Q,
@@ -159,87 +159,87 @@ function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby":
159
159
  Re,
160
160
  $,
161
161
  qe
162
- ]), Ze = O((e) => {
163
- if (P) return;
162
+ ]), Ze = D((e) => {
163
+ if (N) return;
164
164
  let t = e.clipboardData.getData("text");
165
165
  if (!t) return;
166
166
  let n = e.currentTarget.selectionStart ?? W.length, r = e.currentTarget.selectionEnd ?? n, i = `${W.slice(0, n)}${t}${W.slice(r)}`.split(I);
167
167
  i.length <= 1 || (e.preventDefault(), Q(i));
168
168
  }, [
169
- P,
169
+ N,
170
170
  W,
171
171
  I,
172
172
  Q
173
- ]), Qe = O(() => {
174
- G(!1), K(-1), me && !P && W.trim() && W !== Ee && Q(W.split(I));
173
+ ]), Qe = D(() => {
174
+ G(!1), K(-1), me && !N && W.trim() && W !== Ee && Q(W.split(I));
175
175
  }, [
176
176
  me,
177
- P,
177
+ N,
178
178
  W,
179
179
  Ee,
180
180
  I,
181
181
  Q
182
- ]), $e = O(() => {
182
+ ]), $e = D(() => {
183
183
  We([]), Te(""), De(null), ke(""), Pe.current?.focus();
184
- }, [We]), et = H.removeTag ?? F.removeTag, tt = V === "sm" ? "sm" : "md", nt = (e, t, n) => {
184
+ }, [We]), et = H.removeTag ?? P.removeTag, tt = B === "sm" ? "sm" : "md", nt = (e, t, n) => {
185
185
  let i = q(e);
186
- return /* @__PURE__ */ N(p, {
186
+ return /* @__PURE__ */ M(p, {
187
187
  tone: "secondary",
188
188
  size: tt,
189
189
  className: r("tags-input--component tags-input--tag", "max-w-full gap-space-xs pe-space-xs"),
190
- children: [/* @__PURE__ */ M(a, {
190
+ children: [/* @__PURE__ */ j(a, {
191
191
  tag: "span",
192
192
  size: "inherit",
193
193
  weight: "normal",
194
194
  lineHeight: "none",
195
195
  className: "min-w-0 truncate text-inherit",
196
196
  children: i
197
- }), /* @__PURE__ */ M("button", {
197
+ }), /* @__PURE__ */ j("button", {
198
198
  type: "button",
199
199
  "data-tag-remove": "",
200
200
  "aria-label": et(i),
201
201
  className: r("tags-input--tag-remove relative after:absolute after:-inset-space-xs", m.inline, s.edge, m.clear, "disabled:pointer-events-none disabled:cursor-not-allowed"),
202
202
  onClick: () => n(t),
203
- disabled: P,
204
- children: /* @__PURE__ */ M(te, {
203
+ disabled: N,
204
+ children: /* @__PURE__ */ j(te, {
205
205
  className: m.icon,
206
206
  "aria-hidden": "true"
207
207
  })
208
208
  })]
209
209
  });
210
- }, rt = !!ye || de(ie) || Ee !== null, it = w !== void 0 && U.length > w, at = E ? w : void 0, ot = at !== void 0, st = fe && U.length > 0, ct = [v, ot ? Le : void 0].filter(Boolean).join(" ") || void 0;
211
- return /* @__PURE__ */ N(c, {
210
+ }, rt = !!ve || F(ae) || Ee !== null, it = C !== void 0 && U.length > C, at = T ? C : void 0, ot = at !== void 0, st = fe && U.length > 0, ct = [re, ot ? Le : void 0].filter(Boolean).join(" ") || void 0;
211
+ return /* @__PURE__ */ M(c, {
212
212
  gap: "xs",
213
- className: r("tags-input--root w-full relative", R),
213
+ className: r("tags-input--root w-full relative", ye),
214
214
  children: [
215
- /* @__PURE__ */ M("span", {
215
+ /* @__PURE__ */ j("span", {
216
216
  role: "status",
217
217
  "aria-live": "polite",
218
218
  "aria-atomic": "true",
219
219
  className: "tags-input--status sr-only",
220
220
  children: Oe
221
221
  }),
222
- !!se && Ke.map((e) => /* @__PURE__ */ M("input", {
222
+ !!x && Ke.map((e) => /* @__PURE__ */ j("input", {
223
223
  type: "hidden",
224
- name: `${se}[]`,
224
+ name: `${x}[]`,
225
225
  value: e.display,
226
- disabled: P
226
+ disabled: N
227
227
  }, e.key)),
228
- /* @__PURE__ */ N(x, {
228
+ /* @__PURE__ */ M(v, {
229
229
  open: X,
230
230
  onOpenChange: (e, t) => {
231
231
  !e && t.reason === "outside-press" && t.event.target instanceof Node && Fe.current?.contains(t.event.target) || (G(e), e || K(-1));
232
232
  },
233
- children: [/* @__PURE__ */ N("div", {
233
+ children: [/* @__PURE__ */ M("div", {
234
234
  ref: Fe,
235
235
  "data-slot": "tags-input-field",
236
- "data-disabled": P || void 0,
236
+ "data-disabled": N || void 0,
237
237
  "aria-invalid": rt || void 0,
238
238
  onClick: (e) => {
239
239
  e.target instanceof Element && e.target.closest("button, a, input") || Pe.current?.focus();
240
240
  },
241
- className: r("tags-input--field", "box-border flex w-full min-w-0 cursor-text flex-wrap items-center rounded-inner border border-input bg-transparent font-sans text-foreground shadow-none outline-none transition-[color,box-shadow]", _[V], g[V], V === "lg" ? "gap-space-sm" : "gap-space-xs", "py-[calc(0.25rem*var(--density-scale))]", "has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-3 has-[input:focus-visible]:ring-ring/50", "aria-invalid:border-destructive aria-invalid:has-[input:focus-visible]:border-destructive aria-invalid:has-[input:focus-visible]:ring-destructive/30 dark:aria-invalid:has-[input:focus-visible]:ring-destructive/50", "data-disabled:cursor-not-allowed data-disabled:opacity-50"),
242
- children: [$.map((e) => /* @__PURE__ */ M(T.Fragment, { children: pe ? pe(e.tag, e.index, Je) : nt(e.tag, e.index, Je) }, e.key)), /* @__PURE__ */ M("input", {
241
+ className: r("tags-input--field", "box-border flex w-full min-w-0 cursor-text flex-wrap items-center rounded-inner border border-input bg-transparent font-sans text-foreground shadow-none outline-none transition-[color,box-shadow]", g[B], ie[B], B === "lg" ? "gap-space-sm" : "gap-space-xs", "py-[calc(0.25rem*var(--density-scale))]", "has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-3 has-[input:focus-visible]:ring-ring/50", "aria-invalid:border-destructive aria-invalid:has-[input:focus-visible]:border-destructive aria-invalid:has-[input:focus-visible]:ring-destructive/30 dark:aria-invalid:has-[input:focus-visible]:ring-destructive/50", "data-disabled:cursor-not-allowed data-disabled:opacity-50"),
242
+ children: [$.map((e) => /* @__PURE__ */ j(w.Fragment, { children: pe ? pe(e.tag, e.index, Je) : nt(e.tag, e.index, Je) }, e.key)), /* @__PURE__ */ j("input", {
243
243
  ref: Pe,
244
244
  id: l,
245
245
  type: "text",
@@ -248,10 +248,10 @@ function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby":
248
248
  "aria-labelledby": h,
249
249
  "aria-describedby": ct,
250
250
  "aria-invalid": rt || void 0,
251
- "aria-required": y,
252
- role: C ? "combobox" : void 0,
253
- "aria-autocomplete": C ? "list" : void 0,
254
- "aria-expanded": C ? X : void 0,
251
+ "aria-required": se,
252
+ role: S ? "combobox" : void 0,
253
+ "aria-autocomplete": S ? "list" : void 0,
254
+ "aria-expanded": S ? X : void 0,
255
255
  "aria-controls": X ? Ie : void 0,
256
256
  "aria-activedescendant": Z >= 0 ? `${Ie}-${Z}` : void 0,
257
257
  placeholder: U.length === 0 ? H.placeholder : void 0,
@@ -263,11 +263,11 @@ function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby":
263
263
  onFocus: () => {
264
264
  ze && !Re && Y.length > 0 && G(!0);
265
265
  },
266
- disabled: P,
266
+ disabled: N,
267
267
  autoComplete: "off",
268
- className: r("tags-input--input", "box-border min-w-20 flex-1 border-0 bg-transparent p-0 font-sans text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed", ne[V])
268
+ className: r("tags-input--input", "box-border min-w-20 flex-1 border-0 bg-transparent p-0 font-sans text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed", ne[B])
269
269
  })]
270
- }), !!C && /* @__PURE__ */ M(ae, {
270
+ }), !!S && /* @__PURE__ */ j(y, {
271
271
  anchor: Fe,
272
272
  align: "start",
273
273
  type: "menu",
@@ -275,11 +275,11 @@ function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby":
275
275
  finalFocus: !1,
276
276
  role: "listbox",
277
277
  id: Ie,
278
- "aria-label": H.recommendationsLabel ?? F.recommendationsLabel,
278
+ "aria-label": H.recommendationsLabel ?? P.recommendationsLabel,
279
279
  className: "tags-input--recommendations w-(--anchor-width) max-h-[200px]",
280
- children: /* @__PURE__ */ M("div", { children: Y.length > 0 ? Y.map((e, t) => {
280
+ children: /* @__PURE__ */ j("div", { children: Y.length > 0 ? Y.map((e, t) => {
281
281
  let n = U.some((t) => q(t) === q(e.value));
282
- return /* @__PURE__ */ N("button", {
282
+ return /* @__PURE__ */ M("button", {
283
283
  id: `${Ie}-${t}`,
284
284
  role: "option",
285
285
  "aria-selected": Z === t,
@@ -290,10 +290,10 @@ function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby":
290
290
  Q([e.value]), Pe.current?.focus();
291
291
  },
292
292
  onMouseEnter: () => K(t),
293
- className: r(d.interactive, u(), o[B ?? "sm"], "box-border w-full cursor-pointer justify-between border-0 bg-transparent font-sans text-foreground", "hover:bg-accent hover:text-accent-foreground", "focus-visible:outline-none", Z === t && "bg-accent text-accent-foreground"),
294
- children: [/* @__PURE__ */ M(f, { children: e.label }), /* @__PURE__ */ M(ue, { className: r("ml-auto size-icon-sm", n ? "opacity-100" : "opacity-0") })]
293
+ className: r(d.interactive, u(), o[xe ?? "sm"], "box-border w-full cursor-pointer justify-between border-0 bg-transparent font-sans text-foreground", "hover:bg-accent hover:text-accent-foreground", "focus-visible:outline-none", Z === t && "bg-accent text-accent-foreground"),
294
+ children: [/* @__PURE__ */ j(f, { children: e.label }), /* @__PURE__ */ j(de, { className: r("ml-auto size-icon-sm", n ? "opacity-100" : "opacity-0") })]
295
295
  }, e.key);
296
- }) : /* @__PURE__ */ M(a, {
296
+ }) : /* @__PURE__ */ j(a, {
297
297
  tag: "div",
298
298
  size: "xs",
299
299
  type: "secondary",
@@ -302,20 +302,20 @@ function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby":
302
302
  }) })
303
303
  })]
304
304
  }),
305
- (ot || st) && /* @__PURE__ */ N("div", {
305
+ (ot || st) && /* @__PURE__ */ M("div", {
306
306
  className: "tags-input--footer flex items-center justify-between gap-space-sm",
307
- children: [at !== void 0 && /* @__PURE__ */ M(a, {
307
+ children: [at !== void 0 && /* @__PURE__ */ j(a, {
308
308
  id: Le,
309
309
  tag: "span",
310
310
  size: "xs",
311
311
  type: it ? "error" : "secondary",
312
312
  className: "tags-input--count tabular-nums",
313
313
  children: H.summary(U.length, at)
314
- }), !!st && /* @__PURE__ */ M(i, {
314
+ }), !!st && /* @__PURE__ */ j(i, {
315
315
  type: "button",
316
316
  size: "sm",
317
317
  onClick: $e,
318
- disabled: P,
318
+ disabled: N,
319
319
  className: "tags-input--clear ms-auto",
320
320
  children: H.clearAll
321
321
  })]
@@ -549,36 +549,37 @@ var pe = {
549
549
  "IT",
550
550
  "ES",
551
551
  "AU"
552
- ], he = (e) => typeof e == "string" ? I[e.toUpperCase()] ?? null : e, ge = (e) => e.map(he).filter((e) => e !== null), _e = (e, t) => {
552
+ ], L = (e) => typeof e == "string" ? I[e.toUpperCase()] ?? null : e, he = (e) => e.map(L).filter((e) => e !== null), ge = (e, t) => {
553
553
  let n = e.trim().replace(/\s+/g, " ").replace(/[^\d ()+-]/g, "");
554
554
  return t && n.startsWith(t) && (n = n.slice(t.length).replace(/^[\s-]+/, "")), t && n.startsWith("0") && (n = n.slice(1)), n;
555
- }, ve = (e, t) => e ? e.startsWith("+") ? e : I[e.toUpperCase()]?.value ?? e : t[0]?.value ?? "";
556
- function L({ normalizeOnBlur: e = !0, onBlur: i, onChange: o, prefix: s, defaultPrefix: c, prefixes: l = me, onPrefixChange: u, disablePrefixSelector: d = !1, prefixPlaceholder: f, prefixWidth: p = "w-30", showCountryName: m = !0, showPrefixInDropdown: te = !0, invalid: _, disabled: b, className: x, size: ae, strings: T, ...E }, D) {
557
- let { defaultScale: le } = t(), A = re(ae, le), ue = n(pe, T), P = k(() => ge(l), [l]), F = k(() => ve(c, P), [c, P]), [de, fe] = j(F), [he, L] = j(() => {
555
+ }, _e = (e, t) => e ? e.startsWith("+") ? e : I[e.toUpperCase()]?.value ?? e : t[0]?.value ?? "";
556
+ function R({ normalizeOnBlur: e = !0, onBlur: i, onChange: o, prefix: s, defaultPrefix: c, prefixes: l = me, onPrefixChange: u, disablePrefixSelector: d = !1, prefixPlaceholder: f, prefixWidth: p = "w-30", showCountryName: m = !0, showPrefixInDropdown: te = !0, invalid: g, disabled: _, readOnly: v, loading: y, className: w, size: T, strings: E, ...O }, ue) {
557
+ let { defaultScale: de } = t(), N = oe(T, de), P = _ || y, F = P || v, fe = n(pe, E), L = k(() => he(l), [l]), R = k(() => _e(c, L), [c, L]), [ve, ye] = A(R), [be, xe] = A(() => {
558
558
  let e = s ?? c;
559
- return e && !e.startsWith("+") ? e.toUpperCase() : P.find((e) => e.value === F)?.iso;
560
- }), ye = s !== void 0, R = ye ? ve(s, P) : de, z = k(() => {
561
- if (!R || P.some((e) => e.value === R)) return P;
562
- let e = Object.values(I).find((e) => e.value === R);
563
- return e ? [e, ...P] : P;
564
- }, [P, R]), B = k(() => z.find((e) => e.iso === (s && !s.startsWith("+") ? s.toUpperCase() : he) && e.value === R) ?? z.find((e) => e.value === R), [
565
- z,
566
- R,
567
- he,
559
+ return e && !e.startsWith("+") ? e.toUpperCase() : L.find((e) => e.value === R)?.iso;
560
+ }), z = s !== void 0, B = z ? _e(s, L) : ve, V = k(() => {
561
+ if (!B || L.some((e) => e.value === B)) return L;
562
+ let e = Object.values(I).find((e) => e.value === B);
563
+ return e ? [e, ...L] : L;
564
+ }, [L, B]), H = k(() => V.find((e) => e.iso === (s && !s.startsWith("+") ? s.toUpperCase() : be) && e.value === B) ?? V.find((e) => e.value === B), [
565
+ V,
566
+ B,
567
+ be,
568
568
  s
569
- ]), be = O((e) => {
570
- if (e === null) return;
571
- let t = z.find((t) => t.iso === e);
572
- t && (L(t.iso), ye || fe(t.value), u?.(t.value));
569
+ ]), Se = D((e) => {
570
+ if (e === null || F) return;
571
+ let t = V.find((t) => t.iso === e);
572
+ t && (xe(t.iso), z || ye(t.value), u?.(t.value));
573
573
  }, [
574
- ye,
574
+ z,
575
575
  u,
576
- z
577
- ]), V = O((e) => {
578
- if (!o) return;
576
+ V,
577
+ F
578
+ ]), Ce = D((e) => {
579
+ if (F || !o) return;
579
580
  let t = e.target.value;
580
- if (R && t.startsWith(R)) {
581
- let n = t.slice(R.length).replace(/^[\s-]+/, ""), r = n.startsWith("0") ? n.slice(1) : n;
581
+ if (B && t.startsWith(B)) {
582
+ let n = t.slice(B.length).replace(/^[\s-]+/, ""), r = n.startsWith("0") ? n.slice(1) : n;
582
583
  if (r !== t) {
583
584
  o({
584
585
  ...e,
@@ -595,9 +596,13 @@ function L({ normalizeOnBlur: e = !0, onBlur: i, onChange: o, prefix: s, default
595
596
  }
596
597
  }
597
598
  o(e);
598
- }, [o, R]), xe = O((t) => {
599
- if (e && typeof o == "function") {
600
- let e = _e(t.target.value, R);
599
+ }, [
600
+ F,
601
+ o,
602
+ B
603
+ ]), we = D((t) => {
604
+ if (!F && e && typeof o == "function") {
605
+ let e = ge(t.target.value, B);
601
606
  e !== t.target.value && o({
602
607
  ...t,
603
608
  target: {
@@ -612,96 +617,101 @@ function L({ normalizeOnBlur: e = !0, onBlur: i, onChange: o, prefix: s, default
612
617
  }
613
618
  i?.(t);
614
619
  }, [
620
+ F,
615
621
  e,
616
622
  o,
617
623
  i,
618
- R
624
+ B
619
625
  ]);
620
- if (z.length === 0 || d) {
621
- let e = R || c;
622
- return e ? /* @__PURE__ */ N("div", {
626
+ if (V.length === 0 || d) {
627
+ let e = B || c;
628
+ return e ? /* @__PURE__ */ M("div", {
623
629
  className: "flex items-start gap-space-md",
624
- children: [/* @__PURE__ */ M("div", {
625
- "aria-invalid": _ || void 0,
626
- className: r("phone-input--prefix flex shrink-0 items-center justify-center rounded-inner border border-input bg-muted", ie[A], ne[A], g[A], b && "opacity-50", ee.invalid),
627
- children: /* @__PURE__ */ M(a, {
630
+ children: [/* @__PURE__ */ j("div", {
631
+ "aria-invalid": g || void 0,
632
+ className: r("phone-input--prefix flex shrink-0 items-center justify-center rounded-inner border border-input bg-muted", re[N], ne[N], ie[N], P && "opacity-50", ee.invalid),
633
+ children: /* @__PURE__ */ j(a, {
628
634
  tag: "span",
629
635
  size: "inherit",
630
636
  type: "secondary",
631
637
  lineHeight: "tight",
632
638
  children: e
633
639
  })
634
- }), /* @__PURE__ */ M("div", {
640
+ }), /* @__PURE__ */ j("div", {
635
641
  className: "flex-1",
636
- children: /* @__PURE__ */ M(y, {
637
- ref: D,
638
- size: A,
642
+ children: /* @__PURE__ */ j(se, {
643
+ ref: ue,
644
+ size: N,
639
645
  type: "tel",
640
646
  autoComplete: "tel",
641
647
  inputMode: "tel",
642
- onChange: V,
643
- onBlur: xe,
644
- invalid: _,
645
- disabled: b,
646
- className: x,
647
- ...E
648
+ onChange: Ce,
649
+ onBlur: we,
650
+ invalid: g,
651
+ disabled: P,
652
+ readOnly: v,
653
+ loading: y,
654
+ className: w,
655
+ ...O
648
656
  })
649
657
  })]
650
- }) : /* @__PURE__ */ M(y, {
651
- ref: D,
652
- size: A,
658
+ }) : /* @__PURE__ */ j(se, {
659
+ ref: ue,
660
+ size: N,
653
661
  type: "tel",
654
662
  autoComplete: "tel",
655
663
  inputMode: "tel",
656
- onChange: V,
657
- onBlur: xe,
658
- invalid: _,
659
- disabled: b,
660
- className: r("phone-input--component", x),
661
- ...E
664
+ onChange: Ce,
665
+ onBlur: we,
666
+ invalid: g,
667
+ disabled: P,
668
+ readOnly: v,
669
+ loading: y,
670
+ className: r("phone-input--component", w),
671
+ ...O
662
672
  });
663
673
  }
664
- return /* @__PURE__ */ N("div", {
674
+ return /* @__PURE__ */ M("div", {
665
675
  className: "flex items-start gap-space-md",
666
- children: [/* @__PURE__ */ N(ce, {
667
- value: B?.iso ?? null,
668
- onValueChange: (e) => be(e),
669
- disabled: b,
670
- children: [/* @__PURE__ */ M(S, {
671
- "aria-label": ue.prefixAriaLabel,
672
- "aria-invalid": _ || void 0,
673
- iconClassName: h.icon[A],
674
- className: r("phone-input--prefix-trigger", v(A), "shrink-0", p),
675
- children: /* @__PURE__ */ M(w, {
676
- placeholder: /* @__PURE__ */ M(a, {
676
+ children: [/* @__PURE__ */ M(le, {
677
+ value: H?.iso ?? null,
678
+ onValueChange: (e) => Se(e),
679
+ disabled: F,
680
+ children: [/* @__PURE__ */ j(ce, {
681
+ "aria-label": fe.prefixAriaLabel,
682
+ "aria-invalid": g || void 0,
683
+ iconClassName: h.icon[N],
684
+ className: r("phone-input--prefix-trigger", ae(N), "shrink-0", p),
685
+ children: /* @__PURE__ */ j(C, {
686
+ placeholder: /* @__PURE__ */ j(a, {
677
687
  tag: "span",
678
688
  size: "inherit",
679
689
  type: "secondary",
680
690
  lineHeight: "tight",
681
691
  className: "text-inherit",
682
- children: f ?? ue.prefixPlaceholder
692
+ children: f ?? fe.prefixPlaceholder
683
693
  }),
684
- children: !!B && /* @__PURE__ */ M(a, {
694
+ children: !!H && /* @__PURE__ */ j(a, {
685
695
  tag: "span",
686
696
  size: "inherit",
687
697
  lineHeight: "tight",
688
698
  className: "text-inherit",
689
- children: B.value
699
+ children: H.value
690
700
  })
691
701
  })
692
- }), /* @__PURE__ */ M(oe, { children: /* @__PURE__ */ M(se, { children: z.map((e) => /* @__PURE__ */ M(C, {
702
+ }), /* @__PURE__ */ j(b, { children: /* @__PURE__ */ j(x, { children: V.map((e) => /* @__PURE__ */ j(S, {
693
703
  value: e.iso,
694
- size: A,
695
- children: /* @__PURE__ */ N("div", {
704
+ size: N,
705
+ children: /* @__PURE__ */ M("div", {
696
706
  className: "flex items-center gap-space-md",
697
- children: [!!te && /* @__PURE__ */ M(a, {
707
+ children: [!!te && /* @__PURE__ */ j(a, {
698
708
  tag: "span",
699
709
  size: "inherit",
700
710
  weight: "medium",
701
711
  lineHeight: "tight",
702
712
  className: "min-w-13 tabular-nums text-inherit",
703
713
  children: e.value
704
- }), !!m && /* @__PURE__ */ M(a, {
714
+ }), !!m && /* @__PURE__ */ j(a, {
705
715
  tag: "span",
706
716
  size: "inherit",
707
717
  lineHeight: "tight",
@@ -710,53 +720,55 @@ function L({ normalizeOnBlur: e = !0, onBlur: i, onChange: o, prefix: s, default
710
720
  })]
711
721
  })
712
722
  }, e.iso)) }) })]
713
- }), /* @__PURE__ */ M("div", {
723
+ }), /* @__PURE__ */ j("div", {
714
724
  className: "flex-1",
715
- children: /* @__PURE__ */ M(y, {
716
- ref: D,
717
- size: A,
725
+ children: /* @__PURE__ */ j(se, {
726
+ ref: ue,
727
+ size: N,
718
728
  type: "tel",
719
729
  autoComplete: "tel",
720
730
  inputMode: "tel",
721
- onChange: V,
722
- onBlur: xe,
723
- invalid: _,
724
- disabled: b,
725
- className: x,
726
- ...E
731
+ onChange: Ce,
732
+ onBlur: we,
733
+ invalid: g,
734
+ disabled: P,
735
+ readOnly: v,
736
+ loading: y,
737
+ className: w,
738
+ ...O
727
739
  })
728
740
  })]
729
741
  });
730
742
  }
731
- var ye = D(T.forwardRef(L));
732
- ye.displayName = "PhoneInput";
743
+ var ve = E(w.forwardRef(R));
744
+ ve.displayName = "PhoneInput";
733
745
  //#endregion
734
746
  //#region src/components/base/value-inputs/color-input.tsx
735
- var R = { chooseColor: "Choose color" }, z = {
747
+ var ye = { chooseColor: "Choose color" }, be = {
736
748
  sm: "size-control-sm",
737
749
  md: "size-control",
738
750
  lg: "size-control-lg"
739
751
  };
740
- function B(e) {
752
+ function xe(e) {
741
753
  let t = e.trim().toLowerCase();
742
754
  return /^#[0-9a-f]{6}$/.test(t) ? t : /^#[0-9a-f]{3}$/.test(t) ? `#${t.slice(1).split("").map((e) => `${e}${e}`).join("")}` : null;
743
755
  }
744
- function be(e, t) {
756
+ function z(e, t) {
745
757
  let n = Number(e.toFixed(t));
746
758
  return Object.is(n, -0) ? 0 : n;
747
759
  }
748
- function V(e) {
749
- let t = B(e);
760
+ function B(e) {
761
+ let t = xe(e);
750
762
  if (!t) return e;
751
763
  let [n, r, i] = [
752
764
  1,
753
765
  3,
754
766
  5
755
767
  ].map((e) => Number.parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4), a = Math.cbrt(.4122214708 * n + .5363325363 * r + .0514459929 * i), o = Math.cbrt(.2119034982 * n + .6806995451 * r + .1073969566 * i), s = Math.cbrt(.0883024619 * n + .2817188376 * r + .6299787005 * i), c = .2104542553 * a + .793617785 * o - .0040720468 * s, l = 1.9779984951 * a - 2.428592205 * o + .4505937099 * s, u = .0259040371 * a + .7827717662 * o - .808675766 * s, d = Math.hypot(l, u), f = d < 5e-5 ? 0 : Math.atan2(u, l) * 180 / Math.PI + (u < 0 ? 360 : 0);
756
- return `oklch(${be(c, 4)} ${be(d, 4)} ${be(f, 2)})`;
768
+ return `oklch(${z(c, 4)} ${z(d, 4)} ${z(f, 2)})`;
757
769
  }
758
- function xe(e, t) {
759
- let n = window.getComputedStyle(e).backgroundColor, r = B(n);
770
+ function V(e, t) {
771
+ let n = window.getComputedStyle(e).backgroundColor, r = xe(n);
760
772
  if (r) return r;
761
773
  if (typeof CanvasRenderingContext2D > "u") return t;
762
774
  try {
@@ -775,43 +787,44 @@ function xe(e, t) {
775
787
  return t;
776
788
  }
777
789
  }
778
- var H = T.forwardRef(function({ className: e, value: i, defaultValue: a, onChange: o, onValueChange: s, previewValue: l, pickerAriaLabel: u, size: d, disabled: f, readOnly: p, invalid: m, strings: h, inputStrings: te, ...ne }, g) {
779
- let _ = n(R, h), { defaultScale: v } = t(), ie = re(d, v), [b, x] = T.useState(a ?? ""), ae = i ?? b, S = l ?? ae, oe = B(ae) ?? "#000000", [se, ce] = T.useState(oe), C = T.useRef(null);
780
- T.useLayoutEffect(() => {
781
- let e = B(S);
790
+ var H = w.forwardRef(function({ className: e, value: i, defaultValue: a, onChange: o, onValueChange: s, previewValue: l, pickerAriaLabel: u, size: d, disabled: f, readOnly: p, loading: m, invalid: h, strings: te, inputStrings: ne, ...re }, g) {
791
+ let ie = n(ye, te), { defaultScale: ae } = t(), _ = oe(d, ae), v = f || p || m, [y, ce] = w.useState(a ?? ""), b = i ?? y, x = l ?? b, le = xe(b) ?? "#000000", [S, C] = w.useState(le), T = w.useRef(null);
792
+ w.useLayoutEffect(() => {
793
+ let e = xe(x);
782
794
  if (e) {
783
- ce(e);
795
+ C(e);
784
796
  return;
785
797
  }
786
- C.current && typeof window < "u" && ce((e) => xe(C.current, e));
787
- }, [S]);
788
- let w = (e) => {
789
- i === void 0 && x(e.target.value), o?.(e), s?.(e.target.value);
798
+ T.current && typeof window < "u" && C((e) => V(T.current, e));
799
+ }, [x]);
800
+ let E = (e) => {
801
+ i === void 0 && ce(e.target.value), o?.(e), s?.(e.target.value);
790
802
  };
791
- return /* @__PURE__ */ N(c, {
803
+ return /* @__PURE__ */ M(c, {
792
804
  direction: "horizontal",
793
805
  gap: "sm",
794
806
  align: "center",
795
807
  wrap: !1,
796
808
  className: r("color-input--component min-w-0 [&>.input--component]:min-w-0 [&>.input--component]:flex-1", e),
797
- children: [/* @__PURE__ */ N("label", {
798
- "aria-invalid": m || void 0,
799
- className: r("color-input--picker box-border relative shrink-0 cursor-pointer overflow-hidden rounded-inner border border-input bg-background shadow-none outline-none transition-[color,box-shadow]", "has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-3 has-[input:focus-visible]:ring-ring/50", ee.invalid, "aria-invalid:has-[input:focus-visible]:border-destructive aria-invalid:has-[input:focus-visible]:ring-destructive/30 dark:aria-invalid:has-[input:focus-visible]:ring-destructive/50", "data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", z[ie]),
800
- "data-disabled": f || p || void 0,
801
- children: [/* @__PURE__ */ M("span", {
802
- ref: C,
809
+ children: [/* @__PURE__ */ M("label", {
810
+ "aria-invalid": h || void 0,
811
+ className: r("color-input--picker box-border relative shrink-0 cursor-pointer overflow-hidden rounded-inner border border-input bg-background shadow-none outline-none transition-[color,box-shadow]", "has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-3 has-[input:focus-visible]:ring-ring/50", ee.invalid, "aria-invalid:has-[input:focus-visible]:border-destructive aria-invalid:has-[input:focus-visible]:ring-destructive/30 dark:aria-invalid:has-[input:focus-visible]:ring-destructive/50", "data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", be[_]),
812
+ "data-disabled": v || void 0,
813
+ children: [/* @__PURE__ */ j("span", {
814
+ ref: T,
803
815
  "aria-hidden": "true",
804
816
  "data-user-color": !0,
805
817
  className: "color-input--swatch absolute inset-1 rounded-radius-xs",
806
- style: { background: S || "transparent" }
807
- }), /* @__PURE__ */ M("input", {
818
+ style: { background: x || "transparent" }
819
+ }), /* @__PURE__ */ j("input", {
808
820
  type: "color",
809
- value: se,
810
- disabled: f || p,
811
- "aria-label": u ?? _.chooseColor,
821
+ value: S,
822
+ disabled: v,
823
+ "aria-label": u ?? ie.chooseColor,
812
824
  onInput: (e) => {
813
- let t = V(e.currentTarget.value);
814
- i === void 0 && x(t), o && o({
825
+ if (v) return;
826
+ let t = B(e.currentTarget.value);
827
+ i === void 0 && ce(t), o && o({
815
828
  ...e,
816
829
  target: {
817
830
  ...e.currentTarget,
@@ -825,16 +838,17 @@ var H = T.forwardRef(function({ className: e, value: i, defaultValue: a, onChang
825
838
  },
826
839
  className: "color-input--native absolute inset-0 size-full cursor-pointer opacity-0"
827
840
  })]
828
- }), /* @__PURE__ */ M(y, {
829
- ...ne,
841
+ }), /* @__PURE__ */ j(se, {
842
+ ...re,
830
843
  ref: g,
831
- size: ie,
832
- value: ae,
844
+ size: _,
845
+ value: b,
833
846
  disabled: f,
834
847
  readOnly: p,
835
- invalid: m,
836
- onChange: w,
837
- strings: te,
848
+ loading: m,
849
+ invalid: h,
850
+ onChange: E,
851
+ strings: ne,
838
852
  className: "min-w-0 flex-1 font-mono"
839
853
  })]
840
854
  });
@@ -843,85 +857,87 @@ H.displayName = "ColorInput";
843
857
  //#endregion
844
858
  //#region src/components/base/value-inputs/slider.tsx
845
859
  var Se = { ariaLabel: "Value" };
846
- function Ce({ name: e, id: t, "aria-label": i, "aria-labelledby": o, "aria-describedby": s, strings: c, value: u, defaultValue: d, min: f = 0, max: p = 100, step: ee = 1, disabled: m = !1, invalid: h = !1, onChange: te, onValueChange: ne, onValueCommitted: re, showValue: g = !1, formatValue: _, unit: v, className: ie, orientation: y = "horizontal" }, b) {
847
- let x = le(), ae = n(Se, c), S = t ?? `slider-${x}`, oe = e ?? S, se = i ?? ae.ariaLabel, ce = O((e) => {
860
+ function Ce({ name: e, id: t, "aria-label": i, "aria-labelledby": o, "aria-describedby": s, strings: c, value: u, defaultValue: d, min: f = 0, max: p = 100, step: ee = 1, disabled: m = !1, invalid: h = !1, onChange: te, onValueChange: ne, onValueCommitted: re, showValue: g = !1, formatValue: ie, unit: ae, className: oe, orientation: se = "horizontal" }, _) {
861
+ let v = O(), y = n(Se, c), ce = t ?? `slider-${v}`, b = e ?? ce, x = i ?? y.ariaLabel, le = u !== void 0, [S, C] = A(() => d ?? f), w = D((e) => {
848
862
  let t = Array.isArray(e) ? e[0] : e;
849
- ne?.(t), te?.({ target: {
850
- name: oe,
863
+ le || C(t), ne?.(t), te?.({ target: {
864
+ name: b,
851
865
  value: t
852
866
  } });
853
867
  }, [
854
- oe,
868
+ le,
869
+ b,
855
870
  te,
856
871
  ne
857
- ]), C = O((e) => {
872
+ ]), T = D((e) => {
858
873
  let t = Array.isArray(e) ? e[0] : e;
859
874
  re?.(t);
860
- }, [re]), w = k(() => {
875
+ }, [re]), E = k(() => {
861
876
  if (!g) return null;
862
- let e = u ?? d ?? f;
863
- return _ ? _(e) : v ? `${e}${v}` : String(e);
877
+ let e = Math.min(p, Math.max(f, u ?? S));
878
+ return ie ? ie(e) : ae ? `${e}${ae}` : String(e);
864
879
  }, [
865
880
  g,
866
881
  u,
867
- d,
882
+ S,
868
883
  f,
869
- _,
870
- v
871
- ]), T = u === void 0 ? void 0 : [u], E = d === void 0 ? [f] : [d];
872
- return /* @__PURE__ */ N("div", {
873
- className: r("slider--component", "flex items-center gap-space-lg", ie),
874
- children: [/* @__PURE__ */ M(P.Root, {
875
- ref: b,
884
+ p,
885
+ ie,
886
+ ae
887
+ ]), ue = u === void 0 ? void 0 : [u], de = d === void 0 ? [f] : [d];
888
+ return /* @__PURE__ */ M("div", {
889
+ className: r("slider--component", "flex items-center gap-space-lg", oe),
890
+ children: [/* @__PURE__ */ j(N.Root, {
891
+ ref: _,
876
892
  "data-slot": "slider",
877
- id: S,
878
- "aria-label": se,
893
+ id: ce,
894
+ "aria-label": x,
879
895
  "aria-labelledby": o,
880
896
  "aria-describedby": s,
881
- value: T,
882
- defaultValue: E,
897
+ value: ue,
898
+ defaultValue: de,
883
899
  min: f,
884
900
  max: p,
885
901
  step: ee,
886
902
  disabled: m,
887
- orientation: y,
888
- onValueChange: ce,
889
- onValueCommitted: C,
903
+ orientation: se,
904
+ onValueChange: w,
905
+ onValueCommitted: T,
890
906
  "aria-invalid": h || void 0,
891
907
  className: r("box-border data-[orientation=horizontal]:w-full data-[orientation=horizontal]:px-[calc(var(--icon)/2)] data-[orientation=vertical]:h-full", "min-w-0 flex-1", h && "[&_[data-slot=slider-range]]:bg-destructive"),
892
- children: /* @__PURE__ */ N(P.Control, {
908
+ children: /* @__PURE__ */ M(N.Control, {
893
909
  className: "relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-[orientation=horizontal]:min-h-control data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-40 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",
894
- children: [/* @__PURE__ */ M(P.Track, {
910
+ children: [/* @__PURE__ */ j(N.Track, {
895
911
  "data-slot": "slider-track",
896
912
  className: r("relative grow overflow-hidden rounded-full bg-muted select-none data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full", l),
897
- children: /* @__PURE__ */ M(P.Indicator, {
913
+ children: /* @__PURE__ */ j(N.Indicator, {
898
914
  "data-slot": "slider-range",
899
915
  className: "absolute bg-primary select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
900
916
  })
901
- }), /* @__PURE__ */ M(P.Thumb, {
917
+ }), /* @__PURE__ */ j(N.Thumb, {
902
918
  index: 0,
903
919
  "data-slot": "slider-thumb",
904
- getAriaLabel: () => se,
920
+ getAriaLabel: () => x,
905
921
  className: r("block size-icon shrink-0 rounded-full border border-primary bg-background shadow-sm transition-[color,box-shadow] select-none", "has-[:focus-visible]:outline-hidden has-[:focus-visible]:ring-3 has-[:focus-visible]:ring-ring/50 data-disabled:pointer-events-none", h && "border-destructive has-[:focus-visible]:ring-destructive/30 dark:has-[:focus-visible]:ring-destructive/50")
906
922
  })]
907
923
  })
908
- }), !!g && w !== null && /* @__PURE__ */ M(a, {
924
+ }), !!g && E !== null && /* @__PURE__ */ j(a, {
909
925
  tag: "span",
910
926
  type: h ? "error" : "secondary",
911
927
  className: "min-w-8 shrink-0 text-right tabular-nums",
912
- children: w
928
+ children: E
913
929
  })]
914
930
  });
915
931
  }
916
- var we = T.forwardRef(Ce);
932
+ var we = w.forwardRef(Ce);
917
933
  we.displayName = "SliderField";
918
934
  //#endregion
919
935
  //#region src/components/base/value-inputs/date-time-input.tsx
920
- var U = E(function({ value: e, onValueChange: t, placeholder: n, readableFormat: r = "dd-MM-yyyy HH:mm", stepMinutes: i = 30, modal: a = !0, invalid: o, disabled: s, id: c }, l) {
921
- let u = e ? new Date(e) : void 0, d = O((e) => {
936
+ var U = T(function({ value: e, onValueChange: t, placeholder: n, readableFormat: r = "dd-MM-yyyy HH:mm", stepMinutes: i = 30, modal: a = !0, invalid: o, disabled: s, id: c }, l) {
937
+ let u = e ? new Date(e) : void 0, d = D((e) => {
922
938
  t?.(e.date ? e.date.toISOString() : void 0);
923
939
  }, [t]);
924
- return /* @__PURE__ */ M(b, {
940
+ return /* @__PURE__ */ j(_, {
925
941
  ref: l,
926
942
  className: "date-time-input--component",
927
943
  id: c,
@@ -942,6 +958,6 @@ var U = E(function({ value: e, onValueChange: t, placeholder: n, readableFormat:
942
958
  });
943
959
  U.displayName = "DateTimeInput";
944
960
  //#endregion
945
- export { R as a, ye as c, F as d, H as i, pe as l, we as n, I as o, Se as r, me as s, U as t, fe as u };
961
+ export { ye as a, ve as c, P as d, H as i, pe as l, we as n, I as o, Se as r, me as s, U as t, fe as u };
946
962
 
947
- //# sourceMappingURL=value-inputs-TAYMX111.js.map
963
+ //# sourceMappingURL=value-inputs-TaX4OjNk.js.map