@astryx-vue/core 0.16.4 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-C8W-FjkH.js → AlertDialog-CNb0dkY9.js} +4 -4
  3. package/dist/AppShell/index.d.ts +1 -1
  4. package/dist/Avatar/index.js +1 -1
  5. package/dist/{Avatar-dMLeTLRs.js → Avatar-D85dSNpq.js} +1 -1
  6. package/dist/AvatarGroup/index.d.ts +1 -1
  7. package/dist/Banner/index.d.ts +1 -1
  8. package/dist/Banner/index.js +1 -1
  9. package/dist/{Banner-CJgIpZby.js → Banner-BXITu2pn.js} +1 -1
  10. package/dist/BottomSheet/index.d.ts +1 -1
  11. package/dist/Breadcrumbs/index.js +1 -1
  12. package/dist/{Breadcrumbs-oyT1pLaR.js → Breadcrumbs-DXzBkpkd.js} +1 -1
  13. package/dist/Button/index.d.ts +1 -1
  14. package/dist/Button/index.js +1 -1
  15. package/dist/{Button-OfqvSU1j.js → Button-BZtim0B-.js} +1 -2
  16. package/dist/ButtonGroup/index.d.ts +1 -1
  17. package/dist/Calendar/index.d.ts +1 -1
  18. package/dist/Card/index.d.ts +1 -1
  19. package/dist/Carousel/index.d.ts +1 -1
  20. package/dist/Carousel/index.js +1 -1
  21. package/dist/{Carousel-DN_gn5t4.js → Carousel-BaCXqtKK.js} +1 -1
  22. package/dist/Center/index.d.ts +1 -1
  23. package/dist/Chat/index.d.ts +1 -1
  24. package/dist/Chat/index.js +1 -1
  25. package/dist/{Chat-DzxOPova.js → Chat-Wq7e98zS.js} +3 -3
  26. package/dist/CheckboxInput/index.d.ts +1 -1
  27. package/dist/CheckboxInput/index.js +1 -1
  28. package/dist/{CheckboxInput-CWfobjQ1.js → CheckboxInput-3ONBl1AY.js} +1 -1
  29. package/dist/CheckboxList/index.d.ts +1 -1
  30. package/dist/CheckboxList/index.js +1 -1
  31. package/dist/{CheckboxList-CEFhwHbk.js → CheckboxList-CbRX5YDA.js} +3 -3
  32. package/dist/ClickableCard/index.d.ts +1 -1
  33. package/dist/Code/index.d.ts +1 -1
  34. package/dist/Code/index.js +1 -1
  35. package/dist/{CodeBlock-DFq81dwg.js → CodeBlock-CLVXVlB7.js} +2 -2
  36. package/dist/Collapsible/index.d.ts +1 -1
  37. package/dist/CommandPalette/index.d.ts +1 -1
  38. package/dist/CommandPalette/index.js +1 -1
  39. package/dist/{CommandPalette-urnqxaZR.js → CommandPalette-CECjNvGB.js} +2 -2
  40. package/dist/ComplexSelector/index.d.ts +1 -1
  41. package/dist/ComplexSelector/index.js +1 -1
  42. package/dist/{ComplexSelector-Bb9Tietz.js → ComplexSelector-Dmaag1wm.js} +7 -3
  43. package/dist/ContextMenu/index.d.ts +1 -1
  44. package/dist/DateInput/index.d.ts +1 -1
  45. package/dist/DateInput/index.js +1 -1
  46. package/dist/{DateInput-UGCRWpCu.js → DateInput-BitZfGEY.js} +2 -2
  47. package/dist/DateRangeInput/index.d.ts +1 -1
  48. package/dist/DateRangeInput/index.js +1 -1
  49. package/dist/{DateRangeInput-CbFNAXhb.js → DateRangeInput-kxXBsUTU.js} +3 -3
  50. package/dist/DateTimeInput/index.d.ts +1 -1
  51. package/dist/DateTimeInput/index.js +1 -1
  52. package/dist/{DateTimeInput-DsB9quGn.js → DateTimeInput-Cfkuec_h.js} +4 -4
  53. package/dist/Dialog/index.d.ts +1 -1
  54. package/dist/Dialog/index.js +3 -3
  55. package/dist/{Dialog-CvRMUDsx.js → Dialog-BQ5OBB1d.js} +1 -1
  56. package/dist/{Dialog-BoV6-sZg.js → Dialog-DgdbRn2l.js} +25 -6
  57. package/dist/{DialogHeader-Dz-7FLep.js → DialogHeader-D8234o9F.js} +7 -3
  58. package/dist/Drawer/index.d.ts +1 -1
  59. package/dist/Drawer/index.js +1 -1
  60. package/dist/{Drawer-EuUM3b5t.js → Drawer-Dqus7kUc.js} +2 -2
  61. package/dist/DropdownMenu/index.js +2 -2
  62. package/dist/{DropdownMenu-BvTeXvbu.js → DropdownMenu-BC_zB9le.js} +1 -1
  63. package/dist/{DropdownMenu-DF56Xz8n.js → DropdownMenu-LQsXd-_V.js} +1 -1
  64. package/dist/EmptyState/index.js +1 -1
  65. package/dist/{EmptyState-D2ENfW7V.js → EmptyState-Bw0kWfMi.js} +3 -3
  66. package/dist/Field/index.js +3 -3
  67. package/dist/{Field-BE1CuxSu.js → Field-BXkGR8H0.js} +1 -1
  68. package/dist/{FieldInfoTip-CSXfFcdR.js → FieldInfoTip-DzpUxMDh.js} +1 -1
  69. package/dist/{FieldLabel-CvPYOohI.js → FieldLabel-DI7Yqdhf.js} +1 -1
  70. package/dist/FileInput/index.d.ts +1 -1
  71. package/dist/FileInput/index.js +1 -1
  72. package/dist/{FileInput-dYwavUsk.js → FileInput-BNHjbyQY.js} +2 -2
  73. package/dist/Heading/index.d.ts +1 -1
  74. package/dist/Heading/index.js +1 -1
  75. package/dist/{Heading-CNOg6iq5.js → Heading-Oph-5DDq.js} +1 -1
  76. package/dist/HoverCard/index.d.ts +1 -1
  77. package/dist/HoverCard/index.js +1 -1
  78. package/dist/{HoverCard-DafCEtWH.js → HoverCard-DVPLeccv.js} +22 -10
  79. package/dist/IconButton/index.js +1 -1
  80. package/dist/{IconButton-Cn3iSGRd.js → IconButton-Du2XBBAX.js} +1 -1
  81. package/dist/Indicator/index.d.ts +2 -2
  82. package/dist/InfoTip/index.d.ts +1 -1
  83. package/dist/InfoTip/index.js +1 -1
  84. package/dist/{InfoTip-BnGk9nr_.js → InfoTip-Bjw1ithP.js} +1 -1
  85. package/dist/{InputClearButton-h4GQJMqr.js → InputClearButton-CED-zP2y.js} +1 -1
  86. package/dist/InputGroup/index.js +1 -1
  87. package/dist/{InputGroup-BX4cdWQW.js → InputGroup-D5PoL4cU.js} +1 -1
  88. package/dist/InternationalizationProvider/index.d.ts +1 -1
  89. package/dist/InternationalizationProvider/index.js +1 -1
  90. package/dist/{InternationalizationProvider-7rA65NO7.js → InternationalizationProvider-Dr5GE6f0.js} +1 -1
  91. package/dist/LayerProvider/index.d.ts +1 -1
  92. package/dist/Lightbox/index.js +1 -1
  93. package/dist/{Lightbox-3y6Gzumf.js → Lightbox-RN_f7zRw.js} +3 -2
  94. package/dist/Link/index.d.ts +1 -1
  95. package/dist/Link/index.js +1 -1
  96. package/dist/{Link-wft8544N.js → Link-CQ-Ztuo_.js} +1 -1
  97. package/dist/List/index.d.ts +1 -1
  98. package/dist/Markdown/index.js +1 -1
  99. package/dist/{Markdown-rtBS8dBv.js → Markdown-DnnWjJGX.js} +3 -3
  100. package/dist/MoreMenu/index.d.ts +1 -1
  101. package/dist/MoreMenu/index.js +1 -1
  102. package/dist/{MoreMenu-BfaD8buF.js → MoreMenu-i80Ey9vR.js} +2 -2
  103. package/dist/MultiSelector/index.d.ts +1 -1
  104. package/dist/MultiSelector/index.js +1 -1
  105. package/dist/{MultiSelector-BqsGkkNQ.js → MultiSelector-BK6nZweN.js} +28 -16
  106. package/dist/NavItem/index.d.ts +1 -1
  107. package/dist/NumberInput/index.d.ts +1 -1
  108. package/dist/NumberInput/index.js +1 -1
  109. package/dist/{NumberInput-CKXqM4cC.js → NumberInput-BPeesTRv.js} +3 -3
  110. package/dist/OverflowList/index.d.ts +1 -1
  111. package/dist/Pagination/index.d.ts +1 -1
  112. package/dist/Pagination/index.js +1 -1
  113. package/dist/{Pagination-BYbqhFXF.js → Pagination-DFQNX_Mb.js} +1 -1
  114. package/dist/Popover/index.d.ts +1 -1
  115. package/dist/Popover/index.js +1 -1
  116. package/dist/{Popover-BepO8m2B.js → Popover-CmAEizH-.js} +3 -3
  117. package/dist/PowerSearch/index.d.ts +1 -1
  118. package/dist/PowerSearch/index.js +1 -1
  119. package/dist/{PowerSearch-UclIfhPU.js → PowerSearch-BAOqpQag.js} +16 -16
  120. package/dist/ProgressBar/index.d.ts +1 -1
  121. package/dist/ProgressBar/index.js +1 -1
  122. package/dist/{ProgressBar-CHdyTMyH.js → ProgressBar-DgyPRxV0.js} +1 -1
  123. package/dist/Radio/index.d.ts +1 -1
  124. package/dist/Radio/index.js +1 -1
  125. package/dist/{RadioGroup-BvoO922B.js → RadioGroup-FhoQMqg5.js} +2 -2
  126. package/dist/RadioList/index.d.ts +1 -1
  127. package/dist/RadioList/index.js +1 -1
  128. package/dist/{RadioList-LmcRXW-R.js → RadioList-DK2uXQ5S.js} +1 -1
  129. package/dist/ScrollableArea/index.d.ts +1 -1
  130. package/dist/SelectableCard/index.d.ts +1 -1
  131. package/dist/Selector/index.d.ts +1 -1
  132. package/dist/Selector/index.js +1 -1
  133. package/dist/{Selector-CTzIfy5D.js → Selector-Bo7qkt1P.js} +158 -63
  134. package/dist/SideNav/index.d.ts +1 -1
  135. package/dist/SideNav/index.js +1 -1
  136. package/dist/{SideNav-BFDgU7Ul.js → SideNav-CcZLUd7G.js} +2 -2
  137. package/dist/Slider/index.js +1 -1
  138. package/dist/{Slider-JoQDr9bl.js → Slider-DIgb8ogt.js} +1 -1
  139. package/dist/StatusDot/index.js +1 -1
  140. package/dist/{StatusDot-DdR_DF-k.js → StatusDot-Cxm-uhTD.js} +1 -1
  141. package/dist/Switch/index.d.ts +1 -1
  142. package/dist/Switch/index.js +1 -1
  143. package/dist/{Switch-CijkvpAA.js → Switch-5toeiELX.js} +1 -1
  144. package/dist/TabList/index.d.ts +1 -1
  145. package/dist/Table/index.d.ts +1 -1
  146. package/dist/Table/index.js +1 -1
  147. package/dist/{Table-0D-DE9wZ.js → Table-CRKljXg4.js} +12 -12
  148. package/dist/Text/index.d.ts +1 -1
  149. package/dist/Text/index.js +1 -1
  150. package/dist/{Text-DKlvc1pK.js → Text-CiSw2pOi.js} +1 -1
  151. package/dist/TextArea/index.d.ts +1 -1
  152. package/dist/TextArea/index.js +1 -1
  153. package/dist/{TextArea-B2uVGYED.js → TextArea-B82oXF-m.js} +4 -4
  154. package/dist/TextInput/index.d.ts +1 -1
  155. package/dist/TextInput/index.js +1 -1
  156. package/dist/{TextInput-7_aLlg3G.js → TextInput-_SIiqVOY.js} +4 -4
  157. package/dist/Theme/index.d.ts +3 -3
  158. package/dist/Theme/index.js +1 -1
  159. package/dist/{Theme-8bDq2nud.js → Theme-iqi6AvU_.js} +363 -39
  160. package/dist/Thumbnail/index.js +1 -1
  161. package/dist/{Thumbnail-B1E4wEei.js → Thumbnail-BlueoqOH.js} +2 -2
  162. package/dist/{TimeField-EMXQhof_.js → TimeField-CBWgdA1Y.js} +1 -1
  163. package/dist/TimeInput/index.d.ts +1 -1
  164. package/dist/TimeInput/index.js +1 -1
  165. package/dist/{TimeInput-Cy1ikWWy.js → TimeInput-8ASOMV3B.js} +2 -2
  166. package/dist/Timer/index.js +1 -1
  167. package/dist/{Timer-DOs3NhSX.js → Timer-C8evnsTE.js} +1 -1
  168. package/dist/Timestamp/index.d.ts +1 -1
  169. package/dist/Timestamp/index.js +1 -1
  170. package/dist/{Timestamp-Dw5CyS_N.js → Timestamp-CgvZe6vH.js} +3 -3
  171. package/dist/Toast/index.d.ts +2 -2
  172. package/dist/Toast/index.js +1 -1
  173. package/dist/{Toast-DhWuBX-f.js → Toast-CzbqvHDN.js} +107 -34
  174. package/dist/ToggleButton/index.d.ts +1 -1
  175. package/dist/ToggleButton/index.js +1 -1
  176. package/dist/{ToggleButton-DcLaKPDT.js → ToggleButton-CO0XWWc0.js} +1 -1
  177. package/dist/Token/index.d.ts +1 -1
  178. package/dist/Tokenizer/index.d.ts +1 -1
  179. package/dist/Tokenizer/index.js +1 -1
  180. package/dist/{Tokenizer-DGW3Nurz.js → Tokenizer-CsFiYUJ_.js} +173 -105
  181. package/dist/Toolbar/index.d.ts +1 -1
  182. package/dist/Tooltip/index.js +2 -2
  183. package/dist/{Tooltip-vUyPDqhh.js → Tooltip-DQipgW1R.js} +1 -1
  184. package/dist/TopNav/index.d.ts +1 -1
  185. package/dist/Typeahead/index.d.ts +2 -1
  186. package/dist/Typeahead/index.js +2 -2
  187. package/dist/{Typeahead-BuVI6J9T.js → Typeahead--kEp21ut.js} +160 -72
  188. package/dist/{useKeyboardHighlight-CGCf1O57.js → assertOptions-CK_gJ0d3.js} +12 -1
  189. package/dist/composables/index.d.ts +3 -3
  190. package/dist/composables/index.js +7 -7
  191. package/dist/composables-BKHcPgN0.js +5730 -0
  192. package/dist/{index-BZ_lOqjE.d.ts → index-85RFPeV0.d.ts} +6 -6
  193. package/dist/{index-rzkX36wM.d.ts → index-9tZJgo0R.d.ts} +1 -1
  194. package/dist/{index-s0Ezq3U-.d.ts → index-B0iRA00v.d.ts} +5 -5
  195. package/dist/{index-B00KlO-P.d.ts → index-B95VIgRl.d.ts} +66 -66
  196. package/dist/{index-ZbNwGVkS.d.ts → index-BKnyTWPM.d.ts} +1 -1
  197. package/dist/{index-BTK7aStw.d.ts → index-BaK0mywG.d.ts} +1 -1
  198. package/dist/{index-Bfm6mF-r.d.ts → index-BfoazhEu.d.ts} +1 -1
  199. package/dist/{index-BOCb89V9.d.ts → index-BxWCX2pJ.d.ts} +1 -1
  200. package/dist/{index-CQ1bsxLC.d.ts → index-C1qJlC65.d.ts} +1 -1
  201. package/dist/{index-CL8JvxHW.d.ts → index-C1zwvxPH.d.ts} +2 -2
  202. package/dist/{index-Dc9_kBrU.d.ts → index-CH-xSiJz.d.ts} +10 -3
  203. package/dist/{index-YKCx03zD.d.ts → index-COgrQZIL.d.ts} +2 -2
  204. package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
  205. package/dist/{index-FeZXsFO-.d.ts → index-CbA8rR_b.d.ts} +2 -2
  206. package/dist/{index-Bzi3A980.d.ts → index-ChqMaV6N.d.ts} +1 -1
  207. package/dist/{index-B0R5CLPF.d.ts → index-CsYDrQ9R.d.ts} +1 -1
  208. package/dist/{index-BhxqUt3y.d.ts → index-CuW4AQ7M.d.ts} +2 -2
  209. package/dist/{index-rnFsCdJ7.d.ts → index-Cy1rEWC-.d.ts} +1 -1
  210. package/dist/{index-BSlzqFzV.d.ts → index-CyMStZq4.d.ts} +5 -5
  211. package/dist/{index-C2cH8OLC.d.ts → index-D31bgBoy.d.ts} +1 -1
  212. package/dist/index-DGXCnzOL.d.ts +69 -0
  213. package/dist/{index-nNUT4Etk.d.ts → index-DK0Wdo9N.d.ts} +5 -5
  214. package/dist/{index--tm6L1ot.d.ts → index-DofC9Rll.d.ts} +2 -2
  215. package/dist/{index-Dy746dfn.d.ts → index-Qdbssopn.d.ts} +1 -1
  216. package/dist/{index-DE1genab.d.ts → index-QnlWyUxN.d.ts} +2 -2
  217. package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
  218. package/dist/{index-D7XRtUTY.d.ts → index-bk5kfP_c.d.ts} +5 -1
  219. package/dist/{index-C5e2rZML.d.ts → index-dWlCpnua.d.ts} +2 -2
  220. package/dist/{index-DS9SzqqJ.d.ts → index-lmd9LZKB.d.ts} +2 -2
  221. package/dist/{index-CtYlR9Cu.d.ts → index-rdwI-mcm.d.ts} +1 -1
  222. package/dist/{index-BXDqyk2_.d.ts → index-tuNsmJxw.d.ts} +169 -2
  223. package/dist/{index-BEZ4ezJk.d.ts → index-wY6dKz6c.d.ts} +2 -2
  224. package/dist/{index-C89cIh4E.d.ts → index-waTkqxTz.d.ts} +1 -1
  225. package/dist/index.d.ts +40 -39
  226. package/dist/index.js +75 -75
  227. package/dist/{layerFocusReturn-13azEIdn.js → layerFocusReturn-B8Hp14ZG.js} +1 -1
  228. package/dist/{loadCatalog-DFyDz_4e.d.ts → loadCatalog-BJwcyX8i.d.ts} +2 -0
  229. package/dist/{loadCatalog-C3MSknfx.js → loadCatalog-C1kms5sO.js} +5 -1
  230. package/dist/locale/index.d.ts +2 -2
  231. package/dist/locale/index.js +3 -3
  232. package/dist/{locale-OCGw4bi6.js → locale-CHhsd9Mq.js} +1 -1
  233. package/dist/tooltipFocusRules-D4cJ08fk.js +67 -0
  234. package/dist/{useLayer-CzyH9KXY.js → tooltipTriggerRules-PBxqztvn.js} +10 -1
  235. package/dist/{typeahead-RkZw0Ktn.js → typeahead-BgfLP7vR.js} +2 -0
  236. package/dist/{types-BRfVvZTH.d.ts → types-Bc_G8h4i.d.ts} +2 -0
  237. package/dist/{index-BzViSe8D.d.ts → types-C1ydeFiu.d.ts} +43 -65
  238. package/dist/{types-uWxXh1Jm.d.ts → types-fRasDCe4.d.ts} +47 -6
  239. package/dist/{useAsyncSource-Gk0VtE7_.js → useAsyncSource-7GTcK8ep.js} +31 -1
  240. package/dist/{useAsyncSource-aGzrvRkI.d.ts → useAsyncSource-DbG2FSuI.d.ts} +19 -2
  241. package/dist/{useCombobox-D374_pT8.js → useCombobox-DIR9yoEu.js} +150 -3
  242. package/dist/{useInputStatusIcon-CwCNWBnG.js → useInputStatusIcon-ne9V7ZQC.js} +1 -1
  243. package/dist/{useTooltip-frKBHzqr.js → useTooltip-C7gHRGEO.js} +9 -44
  244. package/dist/{useTruncationTooltip-DUkkZgmO.js → useTruncationTooltip-DwUQN7fD.js} +3 -3
  245. package/dist/{useTypeaheadAnnouncement-CSikDlpK.js → useTypeaheadMenuConfig--4f7jR6G.js} +264 -20
  246. package/package.json +1 -1
  247. package/styles/dialog-header.css +19 -4
  248. package/styles/dialog.css +4 -0
  249. package/styles/hover-card.css +6 -0
  250. package/styles/motion.css +10 -0
  251. package/styles/selector.css +10 -0
  252. package/styles/toast.css +19 -0
  253. package/styles/tooltip.css +6 -0
  254. package/dist/composables-CCsHfpCS.js +0 -1256
  255. package/dist/tooltipTriggerRules-9zkDe8_b.js +0 -10
  256. package/dist/useHoverLayerDismiss-CFGjvYi4.js +0 -27
  257. package/dist/{index-J6YRJ7Ul.d.ts → index-D8lv2BiD.d.ts} +1 -1
@@ -1,5 +1,5 @@
1
1
  import { t as _sfc_main$16 } from "./Icon-BCHo7W0x.js";
2
- import { i as _sfc_main$18, r as useCutTextOnKeyboardFocus, t as _sfc_main$17 } from "./Button-OfqvSU1j.js";
2
+ import { i as _sfc_main$18, r as useCutTextOnKeyboardFocus, t as _sfc_main$17 } from "./Button-BZtim0B-.js";
3
3
  import { n as useLayerTeleportTarget } from "./useLayerMountTarget-BmZyeKWE.js";
4
4
  import { t as _sfc_main$19 } from "./VisuallyHidden-cpmsV-0M.js";
5
5
  import { n as firstCharacter } from "./characters-wTnzjkkR.js";
@@ -7,20 +7,20 @@ import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
7
7
  import { n as isFocusDetached } from "./focusReturn-D7Y7Pwwb.js";
8
8
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
9
9
  import { t as useScrollableArea } from "./useScrollableArea-BaHkGWbX.js";
10
- import { t as _sfc_main$20 } from "./Tooltip-vUyPDqhh.js";
10
+ import { t as _sfc_main$20 } from "./Tooltip-DQipgW1R.js";
11
11
  import { n as observeResize } from "./sharedResizeObserver-BekhnB3E.js";
12
12
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
13
- import { t as _sfc_main$21 } from "./CheckboxInput-CWfobjQ1.js";
13
+ import { t as _sfc_main$21 } from "./CheckboxInput-3ONBl1AY.js";
14
14
  import { t as _sfc_main$22 } from "./ComponentIcon-BRXBBKeG.js";
15
- import { t as _sfc_main$23 } from "./Popover-BepO8m2B.js";
16
- import { t as _sfc_main$24 } from "./DateInput-UGCRWpCu.js";
17
- import { s as tableMessages } from "./loadCatalog-C3MSknfx.js";
18
- import { r as useCollator } from "./locale-OCGw4bi6.js";
19
- import { t as _sfc_main$25 } from "./MultiSelector-BqsGkkNQ.js";
20
- import { t as _sfc_main$26 } from "./NumberInput-CKXqM4cC.js";
21
- import { t as _sfc_main$27 } from "./Pagination-BYbqhFXF.js";
22
- import { t as _sfc_main$28 } from "./Selector-CTzIfy5D.js";
23
- import { t as _sfc_main$29 } from "./TextInput-7_aLlg3G.js";
15
+ import { t as _sfc_main$23 } from "./Popover-CmAEizH-.js";
16
+ import { t as _sfc_main$24 } from "./DateInput-BitZfGEY.js";
17
+ import { s as tableMessages } from "./loadCatalog-C1kms5sO.js";
18
+ import { r as useCollator } from "./locale-CHhsd9Mq.js";
19
+ import { t as _sfc_main$25 } from "./MultiSelector-BK6nZweN.js";
20
+ import { t as _sfc_main$26 } from "./NumberInput-BPeesTRv.js";
21
+ import { t as _sfc_main$27 } from "./Pagination-DFQNX_Mb.js";
22
+ import { t as _sfc_main$28 } from "./Selector-Bo7qkt1P.js";
23
+ import { t as _sfc_main$29 } from "./TextInput-_SIiqVOY.js";
24
24
  import { t as _sfc_main$30 } from "./Toolbar-BH_E0F0G.js";
25
25
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, getCurrentInstance, h, inject, isVNode, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, onUpdated, openBlock, provide, reactive, ref, renderList, renderSlot, shallowRef, toDisplayString, toValue, unref, useAttrs, useId, watch, withCtx, withModifiers } from "vue";
26
26
  import "../styles/layer.css";
@@ -1,3 +1,3 @@
1
1
  import { a as TextProps, c as TextType, d as TextWrap, i as TextJustify, l as TextWeight, n as TextColor, o as TextSize, r as TextDisplay, s as TextTruncateTooltip, t as TextAs, u as TextWordBreak } from "../types-B8suOGP8.js";
2
- import { n as useTruncation, r as _default, t as Truncation } from "../index-CtYlR9Cu.js";
2
+ import { n as useTruncation, r as _default, t as Truncation } from "../index-rdwI-mcm.js";
3
3
  export { _default as Text, type TextAs, type TextColor, type TextDisplay, type TextJustify, type TextProps, type TextSize, type TextTruncateTooltip, type TextType, type TextWeight, type TextWordBreak, type TextWrap, type Truncation, useTruncation };
@@ -1,3 +1,3 @@
1
1
  import { n as useTruncation } from "../useTruncation-C4pdlaXa.js";
2
- import { t as _sfc_main } from "../Text-DKlvc1pK.js";
2
+ import { t as _sfc_main } from "../Text-CiSw2pOi.js";
3
3
  export { _sfc_main as Text, useTruncation };
@@ -1,5 +1,5 @@
1
1
  import { n as readLayerScoped } from "./scopedProvide-C-Df7c15.js";
2
- import { n as _sfc_main$1, t as useTruncationTooltip } from "./useTruncationTooltip-DUkkZgmO.js";
2
+ import { n as _sfc_main$1, t as useTruncationTooltip } from "./useTruncationTooltip-DwUQN7fD.js";
3
3
  import { t as TextClampContext } from "./textClampContext-o3-nLErq.js";
4
4
  import { computed, createBlock, createCommentVNode, defineComponent, mergeProps, openBlock, provide, renderSlot, resolveDynamicComponent, unref, useAttrs, withCtx } from "vue";
5
5
  import "../styles/text.css";
@@ -1,2 +1,2 @@
1
- import { Ct as TextAreaSlots, Et as TextAreaWrap, St as TextAreaSize, Tt as TextAreaStatusType, _t as TextAreaChangeAction, bt as TextAreaProps, gt as _default, vt as TextAreaChangeEvent, wt as TextAreaStatus, xt as TextAreaResize, yt as TextAreaEmits } from "../index-B00KlO-P.js";
1
+ import { Ct as TextAreaSlots, Et as TextAreaWrap, St as TextAreaSize, Tt as TextAreaStatusType, _t as TextAreaChangeAction, bt as TextAreaProps, gt as _default, vt as TextAreaChangeEvent, wt as TextAreaStatus, xt as TextAreaResize, yt as TextAreaEmits } from "../index-B95VIgRl.js";
2
2
  export { _default as TextArea, type TextAreaChangeAction, type TextAreaChangeEvent, type TextAreaEmits, type TextAreaProps, type TextAreaResize, type TextAreaSize, type TextAreaSlots, type TextAreaStatus, type TextAreaStatusType, type TextAreaWrap };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../TextArea-B2uVGYED.js";
1
+ import { t as _sfc_main } from "../TextArea-B82oXF-m.js";
2
2
  export { _sfc_main as TextArea };
@@ -1,21 +1,21 @@
1
1
  import { t as _sfc_main$1 } from "./Icon-BCHo7W0x.js";
2
2
  import { i as useSize } from "./SizeContext-BbaF-SEx.js";
3
- import { n as _sfc_main$2 } from "./Button-OfqvSU1j.js";
3
+ import { n as _sfc_main$2 } from "./Button-BZtim0B-.js";
4
4
  import { t as _sfc_main$3 } from "./VisuallyHidden-cpmsV-0M.js";
5
5
  import { t as _sfc_main$4 } from "./ButtonTooltip-CNKOQHYR.js";
6
6
  import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
7
7
  import { t as characterCount } from "./characters-wTnzjkkR.js";
8
8
  import { t as useAnnounce } from "./announce-GU01Oix2.js";
9
9
  import { t as useInputContainer } from "./useInputContainer-CLhsKYZ6.js";
10
- import { t as _sfc_main$5 } from "./FieldInfoTip-CSXfFcdR.js";
10
+ import { t as _sfc_main$5 } from "./FieldInfoTip-DzpUxMDh.js";
11
11
  import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
12
12
  import { i as useAriaRequired } from "./context-DsNhYm5O.js";
13
- import { t as _sfc_main$6 } from "./Field-BE1CuxSu.js";
13
+ import { t as _sfc_main$6 } from "./Field-BXkGR8H0.js";
14
14
  import { t as useFieldPartStyling } from "./fieldParts-CbWvZLhH.js";
15
15
  import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
16
16
  import { t as textAreaMessages } from "./text-area-CsnUYtMk.js";
17
17
  import { t as textInputMessages } from "./text-input-Bs3LFP5a.js";
18
- import { t as _sfc_main$7 } from "./InputClearButton-h4GQJMqr.js";
18
+ import { t as _sfc_main$7 } from "./InputClearButton-CED-zP2y.js";
19
19
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
20
20
  import "../styles/text-area.css";
21
21
  //#region src/TextArea/useTextAreaAction.ts
@@ -1,2 +1,2 @@
1
- import { ct as TextInputChangeEvent, dt as TextInputSize, ft as TextInputSlots, ht as TextInputType, lt as TextInputEmits, mt as TextInputStatusType, ot as _default, pt as TextInputStatus, st as TextInputChangeAction, ut as TextInputProps } from "../index-B00KlO-P.js";
1
+ import { ct as TextInputChangeEvent, dt as TextInputSize, ft as TextInputSlots, ht as TextInputType, lt as TextInputEmits, mt as TextInputStatusType, ot as _default, pt as TextInputStatus, st as TextInputChangeAction, ut as TextInputProps } from "../index-B95VIgRl.js";
2
2
  export { _default as TextInput, type TextInputChangeAction, type TextInputChangeEvent, type TextInputEmits, type TextInputProps, type TextInputSize, type TextInputSlots, type TextInputStatus, type TextInputStatusType, type TextInputType };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../TextInput-7_aLlg3G.js";
1
+ import { t as _sfc_main } from "../TextInput-_SIiqVOY.js";
2
2
  export { _sfc_main as TextInput };
@@ -1,18 +1,18 @@
1
1
  import { r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
2
2
  import { i as useSize } from "./SizeContext-BbaF-SEx.js";
3
- import { n as _sfc_main$1 } from "./Button-OfqvSU1j.js";
3
+ import { n as _sfc_main$1 } from "./Button-BZtim0B-.js";
4
4
  import { t as _sfc_main$2 } from "./VisuallyHidden-cpmsV-0M.js";
5
5
  import { t as _sfc_main$3 } from "./ButtonTooltip-CNKOQHYR.js";
6
6
  import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
7
7
  import { t as useInputContainer } from "./useInputContainer-CLhsKYZ6.js";
8
- import { t as useInputStatusIcon } from "./useInputStatusIcon-CwCNWBnG.js";
8
+ import { t as useInputStatusIcon } from "./useInputStatusIcon-ne9V7ZQC.js";
9
9
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
10
10
  import { i as useAriaRequired } from "./context-DsNhYm5O.js";
11
- import { t as _sfc_main$4 } from "./Field-BE1CuxSu.js";
11
+ import { t as _sfc_main$4 } from "./Field-BXkGR8H0.js";
12
12
  import { t as useFieldPartStyling } from "./fieldParts-CbWvZLhH.js";
13
13
  import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
14
14
  import { t as textInputMessages } from "./text-input-Bs3LFP5a.js";
15
- import { t as _sfc_main$5 } from "./InputClearButton-h4GQJMqr.js";
15
+ import { t as _sfc_main$5 } from "./InputClearButton-CED-zP2y.js";
16
16
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, openBlock, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
17
17
  import "../styles/text-input.css";
18
18
  //#region src/TextInput/useTextInputAction.ts
@@ -1,3 +1,3 @@
1
- import { A as expandMotionScale, C as WidthBreakpointName, D as RadiusScaleConfig, E as expandTypeScale, M as expandColorScale, O as expandRadiusScale, S as WIDTH_BREAKPOINT_NAMES, T as TypeScaleConfig, _ as ThemeAdaptationRule, a as StyleOverrides, b as ThemeAdaptationWidthCondition, c as ThemeMode, d as ThemeTokenValue, f as ThemeTokens, g as ThemeAdaptationCondition, h as DEFAULT_WIDTH_BREAKPOINTS, i as MediaThemeProps, j as ColorScaleConfig, k as MotionScaleConfig, l as ThemeProps, m as TypographyRole, n as DefineThemeInput, o as ThemeDefinition, p as TypographyConfig, r as MediaThemeMode, t as ComponentStyleMap, u as ThemeSurfaceInput, v as ThemeAdaptationTypographyConfig, w as WidthBreakpoints, x as ThemeAdaptations, y as ThemeAdaptationValue } from "../types-uWxXh1Jm.js";
2
- import { a as _default$1, c as defineTheme, d as normalizeTokenName, f as DATA_TOKEN_DEFAULTS, i as useMediaTheme, l as isDefinedTheme, n as useTheme, o as STATUS_COLOR_DEFAULTS, p as DataTokenName, r as UseMediaThemeReturn, s as _default, t as UseThemeReturn, u as neutralTheme } from "../index-Bfm6mF-r.js";
3
- export { type ColorScaleConfig, type ComponentStyleMap, DATA_TOKEN_DEFAULTS, DEFAULT_WIDTH_BREAKPOINTS, type DataTokenName, type DefineThemeInput, _default as MediaTheme, type MediaThemeMode, type MediaThemeProps, type MotionScaleConfig, type RadiusScaleConfig, STATUS_COLOR_DEFAULTS, type StyleOverrides, _default$1 as Theme, type ThemeAdaptationCondition, type ThemeAdaptationRule, type ThemeAdaptationTypographyConfig, type ThemeAdaptationValue, type ThemeAdaptationWidthCondition, type ThemeAdaptations, type ThemeDefinition, type ThemeMode, type ThemeProps, type ThemeSurfaceInput, type ThemeTokenValue, type ThemeTokens, type TypeScaleConfig, type TypographyConfig, type TypographyRole, type UseMediaThemeReturn, type UseThemeReturn, WIDTH_BREAKPOINT_NAMES, type WidthBreakpointName, type WidthBreakpoints, defineTheme, expandColorScale, expandMotionScale, expandRadiusScale, expandTypeScale, isDefinedTheme, neutralTheme, normalizeTokenName, useMediaTheme, useTheme };
1
+ import { A as RadiusScaleConfig, C as WidthBreakpointName, D as ThemeMotionKnobs, E as MotionCharacter, F as expandColorScale, M as MotionScaleConfig, N as expandMotionScale, O as TypeScaleConfig, P as ColorScaleConfig, S as WIDTH_BREAKPOINT_NAMES, T as ThemeMotionConfig, _ as ThemeAdaptationRule, a as StyleOverrides, b as ThemeAdaptationWidthCondition, c as ThemeMode, d as ThemeTokenValue, f as ThemeTokens, g as ThemeAdaptationCondition, h as DEFAULT_WIDTH_BREAKPOINTS, i as MediaThemeProps, j as expandRadiusScale, k as expandTypeScale, l as ThemeProps, m as TypographyRole, n as DefineThemeInput, o as ThemeDefinition, p as TypographyConfig, r as MediaThemeMode, t as ComponentStyleMap, u as ThemeSurfaceInput, v as ThemeAdaptationTypographyConfig, w as WidthBreakpoints, x as ThemeAdaptations, y as ThemeAdaptationValue } from "../types-fRasDCe4.js";
2
+ import { a as _default$1, c as defineTheme, d as normalizeTokenName, f as DATA_TOKEN_DEFAULTS, i as useMediaTheme, l as isDefinedTheme, n as useTheme, o as STATUS_COLOR_DEFAULTS, p as DataTokenName, r as UseMediaThemeReturn, s as _default, t as UseThemeReturn, u as neutralTheme } from "../index-BfoazhEu.js";
3
+ export { type ColorScaleConfig, type ComponentStyleMap, DATA_TOKEN_DEFAULTS, DEFAULT_WIDTH_BREAKPOINTS, type DataTokenName, type DefineThemeInput, _default as MediaTheme, type MediaThemeMode, type MediaThemeProps, type MotionCharacter, type MotionScaleConfig, type RadiusScaleConfig, STATUS_COLOR_DEFAULTS, type StyleOverrides, _default$1 as Theme, type ThemeAdaptationCondition, type ThemeAdaptationRule, type ThemeAdaptationTypographyConfig, type ThemeAdaptationValue, type ThemeAdaptationWidthCondition, type ThemeAdaptations, type ThemeDefinition, type ThemeMode, type ThemeMotionConfig, type ThemeMotionKnobs, type ThemeProps, type ThemeSurfaceInput, type ThemeTokenValue, type ThemeTokens, type TypeScaleConfig, type TypographyConfig, type TypographyRole, type UseMediaThemeReturn, type UseThemeReturn, WIDTH_BREAKPOINT_NAMES, type WidthBreakpointName, type WidthBreakpoints, defineTheme, expandColorScale, expandMotionScale, expandRadiusScale, expandTypeScale, isDefinedTheme, neutralTheme, normalizeTokenName, useMediaTheme, useTheme };
@@ -1,3 +1,3 @@
1
- import { a as neutralTheme, c as expandRadiusScale, d as DEFAULT_WIDTH_BREAKPOINTS, f as WIDTH_BREAKPOINT_NAMES, i as isDefinedTheme, l as expandMotionScale, n as _sfc_main$1, o as STATUS_COLOR_DEFAULTS, r as defineTheme, s as expandTypeScale, t as useMediaTheme, u as expandColorScale } from "../Theme-8bDq2nud.js";
1
+ import { a as neutralTheme, c as expandMotionScale, d as DEFAULT_WIDTH_BREAKPOINTS, f as WIDTH_BREAKPOINT_NAMES, i as isDefinedTheme, l as expandRadiusScale, n as _sfc_main$1, o as STATUS_COLOR_DEFAULTS, r as defineTheme, s as expandTypeScale, t as useMediaTheme, u as expandColorScale } from "../Theme-iqi6AvU_.js";
2
2
  import { a as normalizeTokenName, d as DATA_TOKEN_DEFAULTS, n as useTheme, t as _sfc_main } from "../MediaTheme-Bkj-_DFN.js";
3
3
  export { DATA_TOKEN_DEFAULTS, DEFAULT_WIDTH_BREAKPOINTS, _sfc_main as MediaTheme, STATUS_COLOR_DEFAULTS, _sfc_main$1 as Theme, WIDTH_BREAKPOINT_NAMES, defineTheme, expandColorScale, expandMotionScale, expandRadiusScale, expandTypeScale, isDefinedTheme, neutralTheme, normalizeTokenName, useMediaTheme, useTheme };
@@ -523,6 +523,64 @@ function expandColorScale(config = {}) {
523
523
  };
524
524
  }
525
525
  //#endregion
526
+ //#region src/Theme/expandRadiusScale.ts
527
+ function assertRadius(config) {
528
+ if (!Number.isFinite(config.base) || config.base < 0) throw new Error("Theme radius base must be a non-negative number of pixels.");
529
+ if (!Number.isFinite(config.multiplier) || config.multiplier < 0) throw new Error("Theme radius multiplier must be a non-negative number.");
530
+ }
531
+ /** `--radius-*` tokens. Names are unprefixed; `defineTheme()` adds `--astryx-`. */
532
+ function expandRadiusScale(config) {
533
+ assertRadius(config);
534
+ const { base, multiplier } = config;
535
+ const step = (factor) => `${Math.round(base * factor * multiplier)}px`;
536
+ return {
537
+ "--radius-none": "0px",
538
+ "--radius-inner": step(1),
539
+ "--radius-element": step(2),
540
+ "--radius-container": step(3),
541
+ "--radius-page": step(7),
542
+ "--radius-chat": step(7),
543
+ "--radius-full": "9999px"
544
+ };
545
+ }
546
+ //#endregion
547
+ //#region src/Theme/motionTokenDefaults.ts
548
+ /**
549
+ * @file motionTokenDefaults.ts
550
+ * @input Nothing: the values `@astryx-vue/themes` declares on `:root`
551
+ * @output durationDefaults and easeDefaults, keyed by the theme vocabulary's
552
+ * unprefixed names, and their name types
553
+ * @position Theme utility with no imports. The neutral theme stylesheet
554
+ * (`packages/themes/neutral/base.css`) declares these values as
555
+ * `--astryx-duration-*` and `--astryx-ease-*`; motionTokenDefaults.test.ts
556
+ * keeps the two equal. Motion tokens a theme generates (`tempo`,
557
+ * `character`) start from these values, and the motion foundation falls
558
+ * back to them where no stylesheet applies. Pure; safe on the server.
559
+ */
560
+ const durationDefaults = {
561
+ "--duration-fast-min": "95ms",
562
+ "--duration-fast": "125ms",
563
+ "--duration-fast-max": "165ms",
564
+ "--duration-medium-min": "225ms",
565
+ "--duration-medium": "300ms",
566
+ "--duration-medium-max": "400ms",
567
+ "--duration-slow-min": "525ms",
568
+ "--duration-slow": "700ms",
569
+ "--duration-slow-max": "935ms",
570
+ /** The standard dismissal duration. */
571
+ "--duration-exit": "var(--duration-fast)"
572
+ };
573
+ const easeDefaults = {
574
+ /** Decelerates: state changes. */
575
+ "--ease-standard": "cubic-bezier(0.24, 1, 0.4, 1)",
576
+ /** Entrances. A theme's `character` sets it; at `'standard'` it equals `--ease-standard`. */
577
+ "--ease-entrance": "cubic-bezier(0.24, 1, 0.4, 1)",
578
+ /** Moves on screen. A theme's `character` sets it; at `'standard'` it equals `--ease-standard`. */
579
+ "--ease-move": "cubic-bezier(0.24, 1, 0.4, 1)",
580
+ /** Accelerates: things leaving. */
581
+ "--ease-exit": "cubic-bezier(0.3, 0, 0.6, 0.6)"
582
+ };
583
+ //#endregion
526
584
  //#region src/Theme/expandMotionScale.ts
527
585
  function assertMotion(config) {
528
586
  for (const [label, value] of [
@@ -560,25 +618,206 @@ function expandMotionScale(config) {
560
618
  return tokens;
561
619
  }
562
620
  //#endregion
563
- //#region src/Theme/expandRadiusScale.ts
564
- function assertRadius(config) {
565
- if (!Number.isFinite(config.base) || config.base < 0) throw new Error("Theme radius base must be a non-negative number of pixels.");
566
- if (!Number.isFinite(config.multiplier) || config.multiplier < 0) throw new Error("Theme radius multiplier must be a non-negative number.");
621
+ //#region src/Theme/motionKnobs.ts
622
+ /** The range `tempo` is clamped to. */
623
+ const TEMPO_RANGE = {
624
+ min: .75,
625
+ max: 1.5
626
+ };
627
+ const CHARACTERS = [
628
+ "crisp",
629
+ "standard",
630
+ "expressive"
631
+ ];
632
+ /** The knobs of `config`, defaults filled in, `tempo` clamped. */
633
+ function resolveKnobs(config) {
634
+ const given = config?.tempo;
635
+ const tempoIsSet = typeof given === "number" && Number.isFinite(given);
636
+ return {
637
+ tempo: tempoIsSet ? Math.min(TEMPO_RANGE.max, Math.max(TEMPO_RANGE.min, given)) : 1,
638
+ character: config?.character != null && CHARACTERS.includes(config.character) ? config.character : "standard",
639
+ reducedMotion: "system",
640
+ tempoIsSet
641
+ };
567
642
  }
568
- /** `--radius-*` tokens. Names are unprefixed; `defineTheme()` adds `--astryx-`. */
569
- function expandRadiusScale(config) {
570
- assertRadius(config);
571
- const { base, multiplier } = config;
572
- const step = (factor) => `${Math.round(base * factor * multiplier)}px`;
643
+ //#endregion
644
+ //#region src/Theme/themeMotion.ts
645
+ /**
646
+ * The entrance and move curve at each character. `'standard'` is the theme's
647
+ * `--ease-standard`, so a theme that overrides that easing keeps its entrances
648
+ * on it.
649
+ */
650
+ const CHARACTER_EASE = {
651
+ crisp: "cubic-bezier(0, 0, 0.2, 1)",
652
+ standard: null,
653
+ expressive: "cubic-bezier(0.3, 1.2, 0.5, 1)"
654
+ };
655
+ /** The knobs of `config`, defaults filled in, `tempo` clamped. */
656
+ function resolveMotionKnobs(config) {
657
+ return resolveKnobs(config);
658
+ }
659
+ function isScaleConfig(config) {
660
+ return "fast" in config && "medium" in config && "ratio" in config;
661
+ }
662
+ /**
663
+ * The private custom property a theme with a `tempo` writes beside its
664
+ * duration tokens. A layer whose durations come from a duration scale alone
665
+ * writes 1. The animator's springs read it (motion/themeTempo.ts), and so can
666
+ * a style that scales a clock of its own.
667
+ */
668
+ const MOTION_TEMPO_PROPERTY = "--_astryx-motion-tempo";
669
+ /**
670
+ * A reference such as `--duration-exit` follows the token it names, so tempo
671
+ * writes no value for it.
672
+ */
673
+ const TIMED_DURATION_DEFAULTS = Object.entries(durationDefaults).filter(([, value]) => !value.startsWith("var("));
674
+ /** The duration tokens at `tempo`: the declared values times it, to the ms. */
675
+ function durationTokensAt(tempo) {
676
+ const tokens = {};
677
+ for (const [name, value] of TIMED_DURATION_DEFAULTS) tokens[name] = `${Math.round(Number.parseFloat(value) * tempo)}ms`;
678
+ return tokens;
679
+ }
680
+ /**
681
+ * The private custom property holding a duration token's value before
682
+ * `tempo` scaled it (`--duration-slow` → `--_astryx-pre-tempo-duration-slow`).
683
+ * Busy loops read it, falling back to the token, so their timing follows a
684
+ * duration scale or an explicit token but never `tempo`. A name that is not a
685
+ * duration token comes back unchanged.
686
+ */
687
+ function preTempoName(token) {
688
+ return token.replace(/^--(?:astryx-)?duration-/, "--_astryx-pre-tempo-duration-");
689
+ }
690
+ /**
691
+ * The motion tokens `config` generates: `--duration-*` times `tempo`, with a
692
+ * `MotionScaleConfig`'s own durations winning, and the job-named
693
+ * `--ease-entrance` and `--ease-move` at the theme's character. A knob the
694
+ * config leaves out writes nothing, so a theme extending another keeps the
695
+ * base's value for it; a knob it sets is written even at its default, so a
696
+ * child can set a base's tempo back to 1.
697
+ */
698
+ function expandThemeMotion(config) {
699
+ const knobs = resolveMotionKnobs(config);
700
+ const tokens = {};
701
+ if (knobs.tempoIsSet) {
702
+ Object.assign(tokens, durationTokensAt(knobs.tempo));
703
+ for (const [name, value] of TIMED_DURATION_DEFAULTS) tokens[preTempoName(name)] = value;
704
+ tokens[MOTION_TEMPO_PROPERTY] = String(knobs.tempo);
705
+ }
706
+ const scaleEasing = isScaleConfig(config) && config.easing != null ? config.easing : null;
707
+ if (isScaleConfig(config)) {
708
+ const scale = expandMotionScale(config);
709
+ Object.assign(tokens, scale);
710
+ if (knobs.tempoIsSet) {
711
+ for (const [name, value] of Object.entries(scale)) if (name.startsWith("--duration-")) tokens[preTempoName(name)] = value;
712
+ }
713
+ }
714
+ const ease = CHARACTER_EASE[knobs.character] ?? (config.character != null ? scaleEasing ?? easeDefaults["--ease-standard"] : scaleEasing);
715
+ if (ease != null) {
716
+ tokens["--ease-entrance"] = ease;
717
+ tokens["--ease-move"] = ease;
718
+ }
719
+ return tokens;
720
+ }
721
+ //#endregion
722
+ //#region src/Theme/motionLayerTokens.ts
723
+ function assertFinite(value, path) {
724
+ if (!Number.isFinite(value)) throw new Error(`${path} must be a finite number.`);
725
+ }
726
+ /**
727
+ * An adaptation rule's motion, completed from the theme's: the knobs it
728
+ * leaves out are the theme's, and a rule that writes a duration scale, or
729
+ * whose theme has one, completes `fast`, `medium` and `ratio` from it. A
730
+ * rule with knobs only, over a theme with no scale, keeps knobs only.
731
+ */
732
+ function completeMotion(root, rule, path) {
733
+ if (rule.reducedMotion !== void 0) throw new Error(`${path}.reducedMotion is a theme-wide setting: set it on the theme's own motion, not in an adaptation rule.`);
734
+ const tempo = rule.tempo ?? root?.tempo;
735
+ const character = rule.character ?? root?.character;
736
+ const knobs = {
737
+ ...tempo !== void 0 ? { tempo } : {},
738
+ ...character !== void 0 ? { character } : {}
739
+ };
740
+ if (knobs.tempo !== void 0) assertFinite(knobs.tempo, `${path}.tempo`);
741
+ const rootScale = root != null && "fast" in root ? root : {};
742
+ if (!(rule.fast !== void 0 || rule.medium !== void 0 || rule.ratio !== void 0 || rule.slow !== void 0 || rule.easing !== void 0) && rootScale.fast === void 0) return knobs;
743
+ const fast = rule.fast ?? rootScale.fast;
744
+ const medium = rule.medium ?? rootScale.medium;
745
+ const ratio = rule.ratio ?? rootScale.ratio;
746
+ if (fast === void 0 || medium === void 0 || ratio === void 0) throw new Error(`${path} must supply \`fast\`, \`medium\`, and \`ratio\` unless each missing field exists on the root theme's motion.`);
747
+ assertFinite(fast, `${path}.fast`);
748
+ assertFinite(medium, `${path}.medium`);
749
+ assertFinite(ratio, `${path}.ratio`);
750
+ const slow = rule.slow ?? rootScale.slow;
751
+ if (slow !== void 0) assertFinite(slow, `${path}.slow`);
752
+ const easing = rule.easing ?? rootScale.easing;
573
753
  return {
574
- "--radius-none": "0px",
575
- "--radius-inner": step(1),
576
- "--radius-element": step(2),
577
- "--radius-container": step(3),
578
- "--radius-page": step(7),
579
- "--radius-chat": step(7),
580
- "--radius-full": "9999px"
754
+ fast,
755
+ medium,
756
+ ratio,
757
+ ...slow !== void 0 ? { slow } : {},
758
+ ...easing !== void 0 ? { easing } : {},
759
+ ...knobs
760
+ };
761
+ }
762
+ const isPrivate = (name) => name.startsWith("--_");
763
+ /**
764
+ * The motion tokens one layer generates. Shared names are unprefixed
765
+ * (`--duration-fast`), for the token map to prefix; private properties
766
+ * (`--_astryx-*`) are written as named. A layer that writes durations also
767
+ * writes the pre-tempo copies busy loops read, so an enclosing theme's tempo
768
+ * copies never stand in for its own: without a tempo of its own, they are its
769
+ * durations. Such a layer also writes a tempo of 1, so its springs keep the
770
+ * pace of its durations inside a theme with a tempo.
771
+ */
772
+ function motionLayerTokens(config) {
773
+ const shared = {};
774
+ const own = {};
775
+ if (config == null) return {
776
+ shared,
777
+ private: own
581
778
  };
779
+ const motion = expandThemeMotion(config);
780
+ let writesDurations = false;
781
+ for (const [name, value] of Object.entries(motion)) {
782
+ if (isPrivate(name)) {
783
+ own[name] = value;
784
+ continue;
785
+ }
786
+ shared[name] = value;
787
+ const preTempo = preTempoName(name);
788
+ if (preTempo !== name) {
789
+ writesDurations = true;
790
+ if (!(preTempo in motion)) own[preTempo] = value;
791
+ }
792
+ }
793
+ if (writesDurations && !("--_astryx-motion-tempo" in motion)) own[MOTION_TEMPO_PROPERTY] = "1";
794
+ return {
795
+ shared,
796
+ private: own
797
+ };
798
+ }
799
+ /**
800
+ * The motion writes that follow a layer's explicit tokens, made on `tokens`
801
+ * (the layer's prefixed token map). An explicit duration beats tempo, so a
802
+ * busy loop reading the pre-tempo value reads it too. At `'standard'`,
803
+ * `--ease-entrance` and `--ease-move` equal the resolved `--ease-standard`:
804
+ * the layer's own, else the one beneath it. A layer that sets them itself, or
805
+ * whose character, its own or the one it inherits, picks its own curve,
806
+ * keeps them.
807
+ */
808
+ function settleMotionTokens(tokens, input, context = {}) {
809
+ const explicit = new Set(Object.keys(input.tokens ?? {}).filter((name) => input.tokens?.[name] != null).map(normalizeTokenName));
810
+ for (const name of explicit) {
811
+ const preTempo = preTempoName(name);
812
+ if (preTempo !== name && tokens[name] !== void 0) tokens[preTempo] = tokens[name];
813
+ }
814
+ const ownCharacter = input.motion != null && "character" in input.motion ? input.motion.character : void 0;
815
+ const character = ownCharacter ?? context.inheritedCharacter;
816
+ const standardName = normalizeTokenName("--ease-standard");
817
+ if (ownCharacter === "standard" || explicit.has(standardName) && (character === void 0 || character === "standard")) {
818
+ const standard = tokens[standardName] ?? context.standardBeneath ?? easeDefaults["--ease-standard"];
819
+ for (const name of ["--ease-entrance", "--ease-move"].map(normalizeTokenName)) if (!explicit.has(name)) tokens[name] = standard;
820
+ }
582
821
  }
583
822
  //#endregion
584
823
  //#region src/Theme/expandTypeScale.ts
@@ -926,20 +1165,25 @@ function mergeComponentMaps(base, next) {
926
1165
  /**
927
1166
  * Expand the generator axes, then lay explicit `tokens` over the result.
928
1167
  * Explicit tokens win token by token. Authored component styles win over
929
- * the generated type-scale rules property by property.
1168
+ * the generated type-scale rules property by property. `motion` reads what
1169
+ * lies beneath the layer from `context` (motionLayerTokens.ts).
930
1170
  */
931
- function resolveThemeValues(input, location) {
1171
+ function resolveThemeValues(input, location, context) {
932
1172
  const typography = resolveTypography(input.typography);
1173
+ const motion = motionLayerTokens(input.motion);
1174
+ const tokens = {
1175
+ ...resolveTokenMap({
1176
+ ...input.color ? expandColorScale(input.color) : {},
1177
+ ...typography.tokens,
1178
+ ...input.radius ? expandRadiusScale(input.radius) : {},
1179
+ ...motion.shared
1180
+ }, `${location}generated`),
1181
+ ...motion.private,
1182
+ ...resolveTokenMap(input.tokens, `${location}tokens`)
1183
+ };
1184
+ settleMotionTokens(tokens, input, context);
933
1185
  return {
934
- tokens: {
935
- ...resolveTokenMap({
936
- ...input.color ? expandColorScale(input.color) : {},
937
- ...typography.tokens,
938
- ...input.radius ? expandRadiusScale(input.radius) : {},
939
- ...input.motion ? expandMotionScale(input.motion) : {}
940
- }, `${location}generated`),
941
- ...resolveTokenMap(input.tokens, `${location}tokens`)
942
- },
1186
+ tokens,
943
1187
  components: mergeComponentMaps(typography.components, input.components)
944
1188
  };
945
1189
  }
@@ -1230,11 +1474,7 @@ function ruleInput(value, axes, path) {
1230
1474
  ...value.color
1231
1475
  } : void 0,
1232
1476
  radius: value.radius ? completeNumbers(axes.radius, value.radius, ["base", "multiplier"], `${path}.radius`) : void 0,
1233
- motion: value.motion ? completeNumbers(axes.motion, value.motion, [
1234
- "fast",
1235
- "medium",
1236
- "ratio"
1237
- ], `${path}.motion`) : void 0,
1477
+ motion: value.motion ? completeMotion(axes.motion, value.motion, `${path}.motion`) : void 0,
1238
1478
  tokens: value.tokens,
1239
1479
  components: value.components
1240
1480
  };
@@ -1313,7 +1553,10 @@ function resolveThemeAdaptationRules(themeName, adaptations, axes, root) {
1313
1553
  const resolved = adaptations.rules.map((rule, index) => {
1314
1554
  const path = `defineTheme("${themeName}").adaptations.rules[${index}]`;
1315
1555
  const input = ruleInput(rule.value, axes, `${path}.value`);
1316
- const values = resolveThemeValues(input, `${path}.value.`);
1556
+ const values = resolveThemeValues(input, `${path}.value.`, {
1557
+ inheritedCharacter: axes.motion?.character,
1558
+ standardBeneath: root.tokens["--astryx-ease-standard"]
1559
+ });
1317
1560
  for (const name of Object.keys(rule.value.tokens ?? {})) if (root.localTokens && Object.hasOwn(root.localTokens, name)) throw new Error(`${path}.value.tokens["${name}"] is a theme-local token; write it through value.localTokens.`);
1318
1561
  const localTokens = resolveAdaptationLocalTokens(`${path}.value.localTokens`, rule.value.localTokens, root.localTokens);
1319
1562
  return {
@@ -1645,6 +1888,56 @@ function tokenRule(selector, tokens, location) {
1645
1888
  return body ? [`${selector} {\n${body}\n}`] : [];
1646
1889
  }
1647
1890
  //#endregion
1891
+ //#region src/Theme/rootMotion.ts
1892
+ /** The slow band's duration tokens. */
1893
+ const SLOW_BAND = [
1894
+ "--duration-slow-min",
1895
+ "--duration-slow",
1896
+ "--duration-slow-max"
1897
+ ];
1898
+ /**
1899
+ * The base's tokens for the duration-scale fields a child leaves unset: a
1900
+ * child that sets no `slow` of its own regenerates only the fast and medium
1901
+ * bands, so an inherited slow band stays as the base's tokens hold it, at the
1902
+ * ratio it was made with; and a child that sets no `easing` keeps the base's
1903
+ * `--ease-standard`, an explicit one included.
1904
+ */
1905
+ function inheritedScaleTokens(base, baseMotion, own) {
1906
+ const names = [..."slow" in baseMotion && !("slow" in own) ? SLOW_BAND : [], ..."easing" in baseMotion && !("easing" in own) ? ["--ease-standard"] : []];
1907
+ const tokens = {};
1908
+ for (const name of names) {
1909
+ const value = base.tokens[normalizeTokenName(name)];
1910
+ if (value !== void 0) tokens[name] = value;
1911
+ }
1912
+ return Object.keys(tokens).length > 0 ? tokens : void 0;
1913
+ }
1914
+ /**
1915
+ * Refuses a duration scale that is missing `fast`, `medium` or `ratio` after
1916
+ * inheritance. The scale applies only when all three are present, so a partial
1917
+ * one beside a knob (`{ fast: 100, tempo: 1.2 }`) would otherwise be dropped
1918
+ * silently, though its fields win over `tempo`. Adaptation rules refuse the
1919
+ * same in `completeMotion`.
1920
+ */
1921
+ function assertCompleteMotionScale(motion, themeName) {
1922
+ const scale = motion;
1923
+ if ((scale.fast !== void 0 || scale.medium !== void 0 || scale.ratio !== void 0 || scale.slow !== void 0 || scale.easing !== void 0) && (scale.fast === void 0 || scale.medium === void 0 || scale.ratio === void 0)) throw new Error(`defineTheme("${themeName}"): \`motion\` sets a duration scale field, so it must supply \`fast\`, \`medium\`, and \`ratio\` unless each missing field is inherited from \`extends\`.`);
1924
+ }
1925
+ /** The motion a theme generates from, and the base tokens its inherited scale fields keep. */
1926
+ function resolveRootMotion(themeName, own, base) {
1927
+ if (own == null) return {};
1928
+ const baseMotion = base?.axes?.motion;
1929
+ const motion = baseMotion != null ? {
1930
+ ...baseMotion,
1931
+ ...own
1932
+ } : own;
1933
+ assertCompleteMotionScale(motion, themeName);
1934
+ const inheritedTokens = base != null && baseMotion != null ? inheritedScaleTokens(base, baseMotion, own) : void 0;
1935
+ return {
1936
+ motion,
1937
+ ...inheritedTokens ? { inheritedTokens } : {}
1938
+ };
1939
+ }
1940
+ //#endregion
1648
1941
  //#region src/Theme/statusColor.ts
1649
1942
  const WHITE$1 = {
1650
1943
  r: 255,
@@ -2617,19 +2910,36 @@ function scoped(themeName, rules) {
2617
2910
  * `Theme` that wraps one part of a page does not recolor the rest of it.
2618
2911
  */
2619
2912
  const TOKEN_SCOPE = ":scope.astryx-theme";
2913
+ const DURATION_FAST = "--astryx-duration-fast";
2914
+ const DURATION_EXIT = "--astryx-duration-exit";
2915
+ /**
2916
+ * `--astryx-duration-exit` is a reference to `--astryx-duration-fast`, and a
2917
+ * custom property's reference resolves where it is declared. A scope that
2918
+ * sets its own fast duration (a `tempo`, a duration scale, or an explicit
2919
+ * token) declares the reference again, so its dismissals follow that
2920
+ * duration. A theme that sets the exit duration itself keeps its value, in
2921
+ * its adaptation rules too.
2922
+ */
2923
+ function withExitReference(tokens, theme = tokens) {
2924
+ if (tokens[DURATION_FAST] === void 0 || tokens[DURATION_EXIT] !== void 0 || theme[DURATION_EXIT] !== void 0) return { ...tokens };
2925
+ return {
2926
+ ...tokens,
2927
+ [DURATION_EXIT]: `var(${DURATION_FAST})`
2928
+ };
2929
+ }
2620
2930
  /** Root token values: semantic tokens with their aliases, locals, syntax. */
2621
2931
  function rootTokens(source) {
2622
2932
  const tokens = {
2623
- ...bridgeComponentTokens(source.tokens),
2933
+ ...bridgeComponentTokens(withExitReference(source.tokens)),
2624
2934
  ...source.localTokens
2625
2935
  };
2626
2936
  if (source.syntax) Object.assign(tokens, syntaxThemeStyle(source.syntax));
2627
2937
  return readerTextSizeTokens(tokens);
2628
2938
  }
2629
2939
  /** Token values one adaptation rule rewrites. */
2630
- function adaptedTokens(rule) {
2940
+ function adaptedTokens(rule, source) {
2631
2941
  return readerTextSizeTokens({
2632
- ...bridgeComponentTokens(rule.tokens),
2942
+ ...bridgeComponentTokens(withExitReference(rule.tokens, source.tokens)),
2633
2943
  ...rule.localTokens
2634
2944
  });
2635
2945
  }
@@ -2645,7 +2955,7 @@ function adaptationBlocks(source) {
2645
2955
  const blocks = [];
2646
2956
  for (const [index, rule] of rules.entries()) {
2647
2957
  const location = `adaptations[${index}].`;
2648
- const inner = [...tokenRule(TOKEN_SCOPE, adaptedTokens(rule), `${location}tokens`), ...compileComponentRules(rule.components, location)];
2958
+ const inner = [...tokenRule(TOKEN_SCOPE, adaptedTokens(rule, source), `${location}tokens`), ...compileComponentRules(rule.components, location)];
2649
2959
  if (inner.length > 0) blocks.push(`@media ${rule.query} {\n${scoped(source.name, inner)}\n}`);
2650
2960
  }
2651
2961
  if (!rules.some((rule) => touchesGuardedTargets(rule.components))) return blocks;
@@ -2746,7 +3056,21 @@ function defineTheme(input) {
2746
3056
  assertTargets(input.onDark?.components);
2747
3057
  assertTargets(input.onLight?.components);
2748
3058
  const base = input.extends;
2749
- const own = resolveThemeValues(input, "");
3059
+ const { motion, inheritedTokens } = resolveRootMotion(input.name, input.motion, base);
3060
+ const own = resolveThemeValues(inheritedTokens ? {
3061
+ ...input,
3062
+ motion,
3063
+ tokens: {
3064
+ ...inheritedTokens,
3065
+ ...input.tokens
3066
+ }
3067
+ } : {
3068
+ ...input,
3069
+ motion
3070
+ }, "", {
3071
+ inheritedCharacter: base?.axes?.motion?.character,
3072
+ standardBeneath: base?.tokens["--astryx-ease-standard"]
3073
+ });
2750
3074
  const authoredTokens = {
2751
3075
  ...authoredBaseTokens(base),
2752
3076
  ...own.tokens
@@ -3051,4 +3375,4 @@ function useMediaTheme() {
3051
3375
  return { mode: inject(mediaThemeKey, null) ?? computed(() => "off") };
3052
3376
  }
3053
3377
  //#endregion
3054
- export { neutralTheme as a, expandRadiusScale as c, DEFAULT_WIDTH_BREAKPOINTS as d, WIDTH_BREAKPOINT_NAMES as f, isDefinedTheme as i, expandMotionScale as l, _sfc_main as n, STATUS_COLOR_DEFAULTS as o, defineTheme as r, expandTypeScale as s, useMediaTheme as t, expandColorScale as u };
3378
+ export { neutralTheme as a, expandMotionScale as c, DEFAULT_WIDTH_BREAKPOINTS as d, WIDTH_BREAKPOINT_NAMES as f, isDefinedTheme as i, expandRadiusScale as l, _sfc_main as n, STATUS_COLOR_DEFAULTS as o, defineTheme as r, expandTypeScale as s, useMediaTheme as t, expandColorScale as u };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Thumbnail-B1E4wEei.js";
1
+ import { t as _sfc_main } from "../Thumbnail-BlueoqOH.js";
2
2
  export { _sfc_main as Thumbnail };