@astryx-vue/core 0.1.1 → 0.2.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 (291) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-BylcA4vV.js → AlertDialog-ovx4cBjM.js} +1 -1
  3. package/dist/AppShell/index.d.ts +2 -0
  4. package/dist/AppShell/index.js +2 -0
  5. package/dist/AppShell-EiGyPFbA.js +249 -0
  6. package/dist/AspectRatio/index.d.ts +2 -0
  7. package/dist/AspectRatio/index.js +2 -0
  8. package/dist/AspectRatio-Bij7e-tq.js +40 -0
  9. package/dist/AvatarGroup/index.d.ts +1 -1
  10. package/dist/Banner/index.d.ts +1 -1
  11. package/dist/BottomSheet/index.d.ts +1 -1
  12. package/dist/Button/index.d.ts +1 -1
  13. package/dist/ButtonGroup/index.d.ts +1 -1
  14. package/dist/Calendar/index.js +1 -1
  15. package/dist/{Calendar-BEyrkUtr.js → Calendar-BG7wEsro.js} +1 -1
  16. package/dist/Carousel/index.d.ts +2 -0
  17. package/dist/Carousel/index.js +2 -0
  18. package/dist/Carousel-BTtHkKea.js +363 -0
  19. package/dist/Chat/index.js +1 -1
  20. package/dist/{Chat-CO3mCs9A.js → Chat-DjNxw5gv.js} +2 -2
  21. package/dist/CheckboxInput/index.d.ts +1 -1
  22. package/dist/CheckboxInput/index.js +1 -1
  23. package/dist/{CheckboxInput-C86o3XoG.js → CheckboxInput-CMsEE1_4.js} +4 -2
  24. package/dist/CheckboxList/index.d.ts +1 -1
  25. package/dist/CheckboxList/index.js +1 -1
  26. package/dist/{CheckboxList-BL2sDOWK.js → CheckboxList-EsIEXjK_.js} +2 -2
  27. package/dist/Citation/index.js +1 -1
  28. package/dist/{Citation-BqwJvw7o.js → Citation-DijdbUUu.js} +2 -2
  29. package/dist/ClickableCard/index.d.ts +2 -0
  30. package/dist/ClickableCard/index.js +2 -0
  31. package/dist/ClickableCard-Bhds4RRe.js +112 -0
  32. package/dist/Code/index.d.ts +3 -2
  33. package/dist/Code/index.js +4 -2
  34. package/dist/Code-yb_KOFtJ.js +299 -0
  35. package/dist/{CodeBlock-BQdooQy2.js → CodeBlock-CxTb6j9_.js} +8 -2
  36. package/dist/Collapsible/index.d.ts +2 -2
  37. package/dist/Collapsible/index.js +2 -2
  38. package/dist/Collapsible-9MC08X39.js +192 -0
  39. package/dist/CommandPalette/index.d.ts +2 -0
  40. package/dist/CommandPalette/index.js +2 -0
  41. package/dist/CommandPalette-BD2iODF5.js +489 -0
  42. package/dist/ComplexSelector/index.d.ts +2 -0
  43. package/dist/ComplexSelector/index.js +2 -0
  44. package/dist/ComplexSelector-D9iXd5cH.js +293 -0
  45. package/dist/ContextMenu/index.d.ts +1 -1
  46. package/dist/ContextMenu/index.js +1 -1
  47. package/dist/{ContextMenu-dA-ppaRQ.js → ContextMenu-HS_WqYIg.js} +1 -1
  48. package/dist/DateInput/index.d.ts +1 -1
  49. package/dist/DateInput/index.js +1 -1
  50. package/dist/{DateInput-BOIb0zAp.js → DateInput-DE2TN1Rq.js} +2 -2
  51. package/dist/DateRangeInput/index.d.ts +1 -1
  52. package/dist/DateRangeInput/index.js +1 -1
  53. package/dist/{DateRangeInput-DLcbgUBi.js → DateRangeInput-1bhPGG2s.js} +4 -4
  54. package/dist/DateTimeInput/index.d.ts +1 -1
  55. package/dist/DateTimeInput/index.js +1 -1
  56. package/dist/{DateTimeInput-RitYX_Yx.js → DateTimeInput-SnPdgk6P.js} +4 -4
  57. package/dist/Divider/index.d.ts +1 -1
  58. package/dist/DropdownMenu/index.js +1 -1
  59. package/dist/{DropdownMenu-B0gogrvG.js → DropdownMenu-UJGych6v.js} +1 -1
  60. package/dist/EmptyState/index.js +1 -1
  61. package/dist/{EmptyState-Bhlqgsg4.js → EmptyState-CUJdTYKV.js} +1 -1
  62. package/dist/Field/index.js +2 -2
  63. package/dist/{Field-VlTBsIEo.js → Field-8zRxzDHE.js} +11 -3
  64. package/dist/{FieldLabel-B1NRyQlS.js → FieldLabel-DmmJyX7w.js} +6 -1
  65. package/dist/FileInput/index.d.ts +1 -1
  66. package/dist/FileInput/index.js +1 -1
  67. package/dist/{FileInput-CYvEV503.js → FileInput-BQiwE-GB.js} +3 -3
  68. package/dist/FormLayout/index.d.ts +2 -0
  69. package/dist/FormLayout/index.js +2 -0
  70. package/dist/FormLayout-D47FjiOq.js +40 -0
  71. package/dist/HoverCard/index.d.ts +1 -1
  72. package/dist/Icon/index.d.ts +3 -0
  73. package/dist/Icon/index.js +2 -0
  74. package/dist/{Icon-5MdZQ18k.js → Icon-Dfr4k6-S.js} +1 -1
  75. package/dist/Layout/index.d.ts +2 -0
  76. package/dist/Layout/index.js +3 -0
  77. package/dist/Layout-Bed3kP0M.js +56 -0
  78. package/dist/LayoutPanel-C34uOq3e.js +358 -0
  79. package/dist/Lightbox/index.d.ts +2 -0
  80. package/dist/Lightbox/index.js +2 -0
  81. package/dist/Lightbox-CshKoB0r.js +384 -0
  82. package/dist/Link/index.d.ts +1 -1
  83. package/dist/List/index.d.ts +1 -1
  84. package/dist/Markdown/index.d.ts +1 -1
  85. package/dist/Markdown/index.js +1 -1
  86. package/dist/{Markdown-Dnlp8cVx.js → Markdown-D-Ua055V.js} +2 -2
  87. package/dist/MetadataList/index.js +1 -1
  88. package/dist/{MetadataList-DIsqS1Qb.js → MetadataList-sYph_d8Q.js} +1 -1
  89. package/dist/MobileNav/index.d.ts +1 -1
  90. package/dist/MobileNav/index.js +1 -1
  91. package/dist/{MobileNavToggle-aUZiDwHm.js → MobileNavToggle-DD9D01aj.js} +19 -12
  92. package/dist/MoreMenu/index.d.ts +1 -1
  93. package/dist/MoreMenu/index.js +1 -1
  94. package/dist/{MoreMenu-BXL6Dqsu.js → MoreMenu-BVrK5kkk.js} +1 -1
  95. package/dist/MultiSelector/index.d.ts +1 -1
  96. package/dist/MultiSelector/index.js +1 -1
  97. package/dist/{MultiSelector-Bh8or2S6.js → MultiSelector-DiYov9sF.js} +3 -3
  98. package/dist/NavItem/index.d.ts +1 -1
  99. package/dist/NavMenu/index.d.ts +1 -1
  100. package/dist/NavMenu/index.js +1 -1
  101. package/dist/{NavMenuItem-mzNQESpB.js → NavMenuItem-B-k7olt5.js} +2 -1
  102. package/dist/NumberInput/index.d.ts +1 -1
  103. package/dist/NumberInput/index.js +1 -1
  104. package/dist/{NumberInput-C3S-4dIu.js → NumberInput-CTYiQxHq.js} +1 -1
  105. package/dist/Outline/index.d.ts +2 -0
  106. package/dist/Outline/index.js +2 -0
  107. package/dist/Outline-DQfEBxlc.js +325 -0
  108. package/dist/OverflowList/index.d.ts +1 -1
  109. package/dist/OverflowList/index.js +1 -1
  110. package/dist/{OverflowList-Kr4iJrNV.js → OverflowList-BU5VCntl.js} +2 -2
  111. package/dist/Overlay/index.d.ts +1 -1
  112. package/dist/Pagination/index.js +1 -1
  113. package/dist/{Pagination-BRStpeSB.js → Pagination-HdhtykeF.js} +2 -2
  114. package/dist/Popover/index.d.ts +2 -1
  115. package/dist/Radio/index.d.ts +1 -1
  116. package/dist/Radio/index.js +1 -1
  117. package/dist/{RadioGroup-DS6oTV_j.js → RadioGroup-BqjdSCfJ.js} +1 -1
  118. package/dist/RadioList/index.d.ts +1 -1
  119. package/dist/RadioList/index.js +1 -1
  120. package/dist/{RadioList-pwr93I-z.js → RadioList-DI8ujXcT.js} +1 -1
  121. package/dist/Resizable/index.d.ts +2 -0
  122. package/dist/Resizable/index.js +2 -0
  123. package/dist/Resizable-BhSMfO5B.js +261 -0
  124. package/dist/ScrollableArea/index.d.ts +2 -0
  125. package/dist/ScrollableArea/index.js +2 -0
  126. package/dist/ScrollableArea-DQDYjnxO.js +78 -0
  127. package/dist/Section/index.d.ts +2 -0
  128. package/dist/Section/index.js +2 -0
  129. package/dist/Section-C48Wqfc7.js +68 -0
  130. package/dist/SelectableCard/index.d.ts +2 -0
  131. package/dist/SelectableCard/index.js +2 -0
  132. package/dist/SelectableCard-Bj5s_tIN.js +108 -0
  133. package/dist/Selector/index.d.ts +1 -1
  134. package/dist/Selector/index.js +1 -1
  135. package/dist/{Selector-DvEUIVEC.js → Selector-Da-2BO3q.js} +1 -1
  136. package/dist/SideNav/index.d.ts +1 -1
  137. package/dist/SideNav/index.js +2 -1
  138. package/dist/{SideNav-B7LX4RcP.js → SideNav-B-Om6Bz3.js} +49 -27
  139. package/dist/Slider/index.js +1 -1
  140. package/dist/{Slider-DTnWxtnb.js → Slider-D8h_RKcF.js} +1 -1
  141. package/dist/Stepper/index.d.ts +2 -0
  142. package/dist/Stepper/index.js +2 -0
  143. package/dist/Stepper-BZ_8SEZt.js +423 -0
  144. package/dist/Switch/index.d.ts +1 -1
  145. package/dist/Switch/index.js +1 -1
  146. package/dist/{Switch-CNdnr5TP.js → Switch-SesQzPGZ.js} +4 -2
  147. package/dist/TabList/index.d.ts +2 -2
  148. package/dist/TabList/index.js +2 -2
  149. package/dist/TabList-Cnc2Hs1H.js +380 -0
  150. package/dist/Table/index.d.ts +2 -1
  151. package/dist/Table/index.js +1 -1
  152. package/dist/{Table-D5zWaITo.js → Table-D-LhAy_J.js} +6 -6
  153. package/dist/Text/index.d.ts +3 -2
  154. package/dist/Text/index.js +1 -1
  155. package/dist/{Text-CKd7e3gK.js → Text-BHVghsWo.js} +12 -2
  156. package/dist/TextArea/index.d.ts +1 -1
  157. package/dist/TextArea/index.js +1 -1
  158. package/dist/{TextArea-BL0NuB99.js → TextArea-Cv9UVbzS.js} +5 -3
  159. package/dist/TextInput/index.d.ts +1 -1
  160. package/dist/TextInput/index.js +1 -1
  161. package/dist/{TextInput-B0IKC7g5.js → TextInput-BasnjVvy.js} +5 -3
  162. package/dist/Theme/index.d.ts +2 -0
  163. package/dist/Theme/index.js +2 -0
  164. package/dist/Theme-BuUiiJNr.js +429 -0
  165. package/dist/Thumbnail/index.js +1 -1
  166. package/dist/{Thumbnail-DMOgWncm.js → Thumbnail-Dc1UpykG.js} +2 -2
  167. package/dist/{TimeField-DeQ1ukHl.js → TimeField-C7t9Knq9.js} +2 -2
  168. package/dist/TimeInput/index.d.ts +1 -1
  169. package/dist/TimeInput/index.js +1 -1
  170. package/dist/{TimeInput-jb1nLqZk.js → TimeInput-BXxCOY98.js} +2 -2
  171. package/dist/Timer/index.d.ts +2 -0
  172. package/dist/Timer/index.js +2 -0
  173. package/dist/Timer-B7GV6hqd.js +134 -0
  174. package/dist/Timestamp/index.d.ts +1 -1
  175. package/dist/Timestamp/index.js +1 -1
  176. package/dist/{Timestamp-DrWwVQBL.js → Timestamp-DlZSmgCJ.js} +3 -3
  177. package/dist/ToggleButton/index.d.ts +1 -1
  178. package/dist/Token/index.d.ts +1 -1
  179. package/dist/Token/index.js +1 -1
  180. package/dist/{Token-CV2J94bn.js → Token-wt4e80IM.js} +1 -1
  181. package/dist/Tokenizer/index.d.ts +1 -1
  182. package/dist/Tokenizer/index.js +1 -1
  183. package/dist/{Tokenizer-DF9r4hTW.js → Tokenizer-nmTqdS9n.js} +3 -3
  184. package/dist/Toolbar/index.d.ts +1 -1
  185. package/dist/Tooltip/index.d.ts +1 -1
  186. package/dist/TopNav/index.d.ts +1 -1
  187. package/dist/TopNav/index.js +1 -1
  188. package/dist/{TopNav-BH_s3uap.js → TopNav-notp-mJx.js} +58 -32
  189. package/dist/TreeList/index.js +1 -1
  190. package/dist/{TreeList-D9cR-w7r.js → TreeList-s1xBQ0qq.js} +2 -2
  191. package/dist/Typeahead/index.d.ts +1 -1
  192. package/dist/Typeahead/index.js +1 -1
  193. package/dist/{Typeahead-s4DC1Qem.js → Typeahead-VAuiCurV.js} +3 -3
  194. package/dist/composables/index.d.ts +3 -2
  195. package/dist/composables/index.js +5 -2
  196. package/dist/composables-CVfjp9h4.js +502 -0
  197. package/dist/context-BjNya0v8.js +19 -0
  198. package/dist/context-Cfjh8te1.js +29 -0
  199. package/dist/{context-BshXcNYX.js → context-Dbo22sck.js} +138 -0
  200. package/dist/context-O2Vb8cJl.js +57 -0
  201. package/dist/index-1AZ4KZhg.d.ts +96 -0
  202. package/dist/index-1uRMrk63.d.ts +54 -0
  203. package/dist/{index-FEy8qFSD.d.ts → index-BHqRH7QW.d.ts} +2 -2
  204. package/dist/index-BMrggCw-.d.ts +52 -0
  205. package/dist/{index-BlWLperN.d.ts → index-BUXNRekN.d.ts} +2 -2
  206. package/dist/index-Bainr_3n.d.ts +31 -0
  207. package/dist/index-Be1czg3M.d.ts +167 -0
  208. package/dist/{index-Dbmgcm8a.d.ts → index-BeR-1LgF.d.ts} +2 -0
  209. package/dist/{index-DXDGk38y.d.ts → index-Bn_odHQ9.d.ts} +1 -1
  210. package/dist/index-BrJzFA5X.d.ts +38 -0
  211. package/dist/{index-AkMWQ97a.d.ts → index-BtPZKO20.d.ts} +3 -3
  212. package/dist/index-Bu0Zd1uw.d.ts +38 -0
  213. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  214. package/dist/index-By2mSzUA.d.ts +67 -0
  215. package/dist/index-C59PdX9L.d.ts +141 -0
  216. package/dist/{index-BkIgRYGz.d.ts → index-C5p2NeCr.d.ts} +2 -2
  217. package/dist/{index-CQ9F1f_F.d.ts → index-C6iJwTL0.d.ts} +324 -145
  218. package/dist/{index-B4OOtNP8.d.ts → index-C7mxUcDR.d.ts} +2 -2
  219. package/dist/{index-BSRk8MFK.d.ts → index-C8wDPDcP.d.ts} +1 -1
  220. package/dist/index-CDdRQQF3.d.ts +170 -0
  221. package/dist/index-COqjznX0.d.ts +47 -0
  222. package/dist/index-CRizexSC.d.ts +147 -0
  223. package/dist/{index-Bc0dgVM5.d.ts → index-CTolyeii.d.ts} +4 -4
  224. package/dist/index-CVn0GBdB.d.ts +115 -0
  225. package/dist/index-Cm_TiLXU.d.ts +22 -0
  226. package/dist/index-Cn-sSds-.d.ts +68 -0
  227. package/dist/index-CsVS37na.d.ts +81 -0
  228. package/dist/{index-5R_pi3eT.d.ts → index-D-ZuubCK.d.ts} +3 -3
  229. package/dist/{index-g03bmR4K.d.ts → index-D0TlUOtG.d.ts} +2 -2
  230. package/dist/index-DA52oIdw.d.ts +171 -0
  231. package/dist/{index-D3V7yRUP.d.ts → index-DOUEn7V0.d.ts} +4 -4
  232. package/dist/{index-CCA4R0Mf.d.ts → index-DT9S92sh.d.ts} +31 -6
  233. package/dist/{index-CR6sUmRT.d.ts → index-DXSs3rwa.d.ts} +3 -107
  234. package/dist/{index--dh0s8Li.d.ts → index-DfgHJE7H.d.ts} +1 -1
  235. package/dist/{index-CNcQmDrK.d.ts → index-DoFCm2Q2.d.ts} +71 -0
  236. package/dist/{index-mQ6EPmaG.d.ts → index-DsyKhauk.d.ts} +78 -9
  237. package/dist/{index-12ObcW99.d.ts → index-DtjAdYEc.d.ts} +2 -2
  238. package/dist/{index-Byar3h1e.d.ts → index-HV6W3xCx.d.ts} +1 -1
  239. package/dist/{index-CsJpQElv.d.ts → index-NzLDrOkk.d.ts} +2 -2
  240. package/dist/{index-BnNh5Iml.d.ts → index-SMh42NI8.d.ts} +99 -2
  241. package/dist/{index-Q4gqBSIZ.d.ts → index-fa72tWIU.d.ts} +1 -1
  242. package/dist/{index-Bqb_Fyju.d.ts → index-jdjcb3Js.d.ts} +2 -2
  243. package/dist/{index-BhYFxnjV.d.ts → index-kaKBOZSU.d.ts} +2 -2
  244. package/dist/index-nKlTsNfV.d.ts +42 -0
  245. package/dist/index.d.ts +84 -63
  246. package/dist/index.js +118 -91
  247. package/dist/locale/index.d.ts +1 -1
  248. package/dist/locale/index.js +1 -1
  249. package/dist/size-BuTzpgnR.d.ts +14 -0
  250. package/dist/size-xcIqExkS.js +79 -0
  251. package/dist/syntaxTheme-Bcs1YMF7.d.ts +38 -0
  252. package/dist/syntaxTheme-ClpWALZX.js +75 -0
  253. package/dist/types-Bt-lSgYX.d.ts +65 -0
  254. package/dist/types-DZoEm_DG.d.ts +97 -0
  255. package/dist/{index-Bovw9_8d.d.ts → types-Db3Owy8Q.d.ts} +1 -36
  256. package/dist/types-JktRxujg.d.ts +107 -0
  257. package/dist/useAppShellMobile-DTsyuAJ4.js +19 -0
  258. package/dist/useClickableContainer-DyNpnSEa.js +112 -0
  259. package/dist/useResizable-CeESZS1v.d.ts +72 -0
  260. package/dist/useScrollableArea-DDk_CluT.js +172 -0
  261. package/package.json +73 -1
  262. package/styles/app-shell.css +151 -0
  263. package/styles/aspect-ratio.css +49 -0
  264. package/styles/card.css +5 -1
  265. package/styles/carousel.css +120 -0
  266. package/styles/clickable-card.css +101 -0
  267. package/styles/collapsible.css +37 -0
  268. package/styles/command-palette.css +183 -0
  269. package/styles/complex-selector.css +114 -0
  270. package/styles/field.css +12 -0
  271. package/styles/form-layout.css +31 -0
  272. package/styles/heading.css +25 -19
  273. package/styles/layout.css +280 -0
  274. package/styles/lightbox.css +144 -0
  275. package/styles/media-theme.css +51 -0
  276. package/styles/outline.css +124 -0
  277. package/styles/resize-handle.css +128 -0
  278. package/styles/scrollable-area.css +50 -0
  279. package/styles/section.css +60 -0
  280. package/styles/side-nav.css +26 -0
  281. package/styles/stepper.css +357 -0
  282. package/styles/tab-menu.css +91 -0
  283. package/styles/text.css +63 -14
  284. package/styles/theme.css +29 -0
  285. package/styles/timer.css +34 -0
  286. package/styles.css +18 -0
  287. package/dist/Collapsible-BYg9soTk.js +0 -102
  288. package/dist/TabList-LV1U4ZD6.js +0 -184
  289. package/dist/composables-Dq9RS33w.js +0 -111
  290. package/dist/index-BzqRns96.d.ts +0 -64
  291. package/dist/index-TnaIHsCS.d.ts +0 -87
@@ -1,25 +1,14 @@
1
1
  import { t as useHotkeys } from "./useHotkeys-dABSK1o9.js";
2
- import { a as useAstryxMessages } from "./context-BshXcNYX.js";
3
- import { t as _sfc_main$5 } from "./Icon-5MdZQ18k.js";
2
+ import { a as useAstryxMessages } from "./context-Dbo22sck.js";
3
+ import { i as useSideNavRenderMode, r as useSideNavCollapse, t as sideNavCollapseKey } from "./context-BjNya0v8.js";
4
+ import { t as _sfc_main$5 } from "./Icon-Dfr4k6-S.js";
4
5
  import { n as resolveNavRoot } from "./link-CdcUSxAj.js";
5
6
  import { t as _sfc_main$6 } from "./NavItem-FFOisITc.js";
6
7
  import { t as _sfc_main$7 } from "./NavDisclosure-DHrSNRDR.js";
7
8
  import { t as _sfc_main$8 } from "./Tooltip-mp0NMh_Y.js";
8
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, normalizeClass, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, useSlots, watch, withCtx, withModifiers } from "vue";
9
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, getCurrentInstance, normalizeClass, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, useSlots, watch, withCtx, withModifiers } from "vue";
9
10
  import "../styles/visually-hidden.css";
10
11
  import "../styles/side-nav.css";
11
- //#region src/SideNav/context.ts
12
- const sideNavCollapseKey = Symbol("astryx-side-nav-collapse");
13
- const fallbackCollapse = {
14
- isCollapsed: ref(false),
15
- isCollapsible: ref(false),
16
- navId: "",
17
- toggle: () => {}
18
- };
19
- function useSideNavCollapse() {
20
- return inject(sideNavCollapseKey, fallbackCollapse);
21
- }
22
- //#endregion
23
12
  //#region src/SideNav/SideNavCollapseButton.vue
24
13
  const _hoisted_1$4 = [
25
14
  "aria-label",
@@ -76,17 +65,22 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
76
65
  });
77
66
  //#endregion
78
67
  //#region src/SideNav/SideNav.vue
79
- const _hoisted_1$3 = ["aria-label", "data-collapsed"];
68
+ const _hoisted_1$3 = {
69
+ key: 0,
70
+ class: "astryx-side-nav astryx-side-nav--topbar",
71
+ "data-mode": "topbar"
72
+ };
80
73
  const _hoisted_2$3 = {
81
74
  key: 0,
82
- class: "astryx-side-nav__top"
75
+ class: "astryx-side-nav__topbar-icons"
83
76
  };
84
77
  const _hoisted_3$3 = {
85
- key: 0,
86
- class: "astryx-side-nav__heading-row"
78
+ key: 1,
79
+ class: "astryx-side-nav astryx-side-nav--drawer",
80
+ "data-mode": "drawer"
87
81
  };
88
82
  const _hoisted_4$3 = {
89
- key: 1,
83
+ key: 0,
90
84
  class: "astryx-side-nav__top-content"
91
85
  };
92
86
  const _hoisted_5$2 = { class: "astryx-side-nav__body" };
@@ -98,6 +92,28 @@ const _hoisted_7$2 = {
98
92
  key: 0,
99
93
  class: "astryx-side-nav__footer-icons"
100
94
  };
95
+ const _hoisted_8$2 = ["aria-label", "data-collapsed"];
96
+ const _hoisted_9$1 = {
97
+ key: 0,
98
+ class: "astryx-side-nav__top"
99
+ };
100
+ const _hoisted_10$1 = {
101
+ key: 0,
102
+ class: "astryx-side-nav__heading-row"
103
+ };
104
+ const _hoisted_11$1 = {
105
+ key: 1,
106
+ class: "astryx-side-nav__top-content"
107
+ };
108
+ const _hoisted_12$1 = { class: "astryx-side-nav__body" };
109
+ const _hoisted_13$1 = {
110
+ key: 1,
111
+ class: "astryx-side-nav__bottom"
112
+ };
113
+ const _hoisted_14$1 = {
114
+ key: 0,
115
+ class: "astryx-side-nav__footer-icons"
116
+ };
101
117
  const _sfc_main$3 = /*@__PURE__*/ defineComponent({
102
118
  name: "AstryxSideNav",
103
119
  __name: "SideNav",
@@ -132,6 +148,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
132
148
  const hasTop = computed(() => slots.header != null || slots.top != null || showButton.value);
133
149
  const hasBottom = computed(() => slots.footer != null || slots.footerIcons != null);
134
150
  const label = computed(() => props.label || messages.value.nav.sideNav);
151
+ const renderMode = useSideNavRenderMode();
135
152
  watch(() => config.value.defaultIsCollapsed, (value) => {
136
153
  if (value != null && props.isCollapsed === void 0 && config.value.isCollapsed === void 0) localCollapsed.value = value;
137
154
  }, { immediate: true });
@@ -159,19 +176,24 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
159
176
  toggle
160
177
  });
161
178
  return (_ctx, _cache) => {
162
- return openBlock(), createElementBlock("nav", {
179
+ return unref(renderMode) === "topbar" ? (openBlock(), createElementBlock("div", _hoisted_1$3, [renderSlot(_ctx.$slots, "header"), slots.footerIcons ? (openBlock(), createElementBlock("div", _hoisted_2$3, [renderSlot(_ctx.$slots, "footerIcons")])) : createCommentVNode("v-if", true)])) : unref(renderMode) === "drawer" || unref(renderMode) === "drawer-content" ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
180
+ slots.top ? (openBlock(), createElementBlock("div", _hoisted_4$3, [renderSlot(_ctx.$slots, "top")])) : createCommentVNode("v-if", true),
181
+ createElementVNode("div", _hoisted_5$2, [renderSlot(_ctx.$slots, "default")]),
182
+ hasBottom.value ? (openBlock(), createElementBlock("div", _hoisted_6$2, [renderSlot(_ctx.$slots, "footer"), slots.footerIcons ? (openBlock(), createElementBlock("div", _hoisted_7$2, [renderSlot(_ctx.$slots, "footerIcons")])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)
183
+ ])) : (openBlock(), createElementBlock("nav", {
184
+ key: 2,
163
185
  id: navId,
164
186
  class: normalizeClass(["astryx-side-nav", { "astryx-side-nav--collapsed": isCollapsed.value }]),
165
187
  "aria-label": label.value,
166
188
  "data-collapsed": isCollapsed.value || void 0
167
189
  }, [
168
- hasTop.value ? (openBlock(), createElementBlock("div", _hoisted_2$3, [slots.header || showButton.value ? (openBlock(), createElementBlock("div", _hoisted_3$3, [renderSlot(_ctx.$slots, "header"), showButton.value ? (openBlock(), createBlock(_sfc_main$4, {
190
+ hasTop.value ? (openBlock(), createElementBlock("div", _hoisted_9$1, [slots.header || showButton.value ? (openBlock(), createElementBlock("div", _hoisted_10$1, [renderSlot(_ctx.$slots, "header"), showButton.value ? (openBlock(), createBlock(_sfc_main$4, {
169
191
  key: 0,
170
192
  label: config.value.buttonLabel
171
- }, null, 8, ["label"])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true), slots.top ? (openBlock(), createElementBlock("div", _hoisted_4$3, [renderSlot(_ctx.$slots, "top")])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true),
172
- createElementVNode("div", _hoisted_5$2, [renderSlot(_ctx.$slots, "default")]),
173
- hasBottom.value ? (openBlock(), createElementBlock("div", _hoisted_6$2, [renderSlot(_ctx.$slots, "footer"), slots.footerIcons ? (openBlock(), createElementBlock("div", _hoisted_7$2, [renderSlot(_ctx.$slots, "footerIcons")])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)
174
- ], 10, _hoisted_1$3);
193
+ }, null, 8, ["label"])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true), slots.top ? (openBlock(), createElementBlock("div", _hoisted_11$1, [renderSlot(_ctx.$slots, "top")])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true),
194
+ createElementVNode("div", _hoisted_12$1, [renderSlot(_ctx.$slots, "default")]),
195
+ hasBottom.value ? (openBlock(), createElementBlock("div", _hoisted_13$1, [renderSlot(_ctx.$slots, "footer"), slots.footerIcons ? (openBlock(), createElementBlock("div", _hoisted_14$1, [renderSlot(_ctx.$slots, "footerIcons")])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)
196
+ ], 10, _hoisted_8$2));
175
197
  };
176
198
  }
177
199
  });
@@ -774,4 +796,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
774
796
  }
775
797
  });
776
798
  //#endregion
777
- export { _sfc_main$4 as a, _sfc_main$3 as i, _sfc_main$1 as n, useSideNavCollapse as o, _sfc_main$2 as r, _sfc_main as t };
799
+ export { _sfc_main$4 as a, _sfc_main$3 as i, _sfc_main$1 as n, _sfc_main$2 as r, _sfc_main as t };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Slider-DTnWxtnb.js";
1
+ import { t as _sfc_main } from "../Slider-D8h_RKcF.js";
2
2
  export { _sfc_main as Slider };
@@ -1,7 +1,7 @@
1
1
  import { t as _sfc_main$2 } from "./VisuallyHidden-C7NN3VEP.js";
2
2
  import { n as useButtonTooltip } from "./Button-DrqeomlE.js";
3
3
  import { t as _sfc_main$3 } from "./ButtonTooltip-nWWrth8j.js";
4
- import { t as _sfc_main$4 } from "./Field-VlTBsIEo.js";
4
+ import { t as _sfc_main$4 } from "./Field-8zRxzDHE.js";
5
5
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeStyle, openBlock, renderList, renderSlot, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx, withKeys } from "vue";
6
6
  import "../styles/button.css";
7
7
  import "../styles/slider.css";
@@ -0,0 +1,2 @@
1
+ import { a as StepProps, c as StepperCollapsedVariant, d as StepperIndicatorPosition, f as StepperOrientation, i as StepProgress, l as StepperDensity, m as StepperSlots, n as _default, o as StepSlots, p as StepperProps, r as StepIndicator, s as StepStatus, t as _default$1, u as StepperHorizontalOptions } from "../index-CVn0GBdB.js";
2
+ export { _default as Step, type StepIndicator, type StepProgress, type StepProps, type StepSlots, type StepStatus, _default$1 as Stepper, type StepperCollapsedVariant, type StepperDensity, type StepperHorizontalOptions, type StepperIndicatorPosition, type StepperOrientation, type StepperProps, type StepperSlots };
@@ -0,0 +1,2 @@
1
+ import { n as _sfc_main, t as _sfc_main$1 } from "../Stepper-BZ_8SEZt.js";
2
+ export { _sfc_main as Step, _sfc_main$1 as Stepper };
@@ -0,0 +1,423 @@
1
+ import { t as _sfc_main$3 } from "./VisuallyHidden-C7NN3VEP.js";
2
+ import { a as useAstryxMessages } from "./context-Dbo22sck.js";
3
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, onMounted, onUnmounted, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useTemplateRef, watch, withCtx } from "vue";
4
+ import "../styles/stepper.css";
5
+ //#region src/Stepper/context.ts
6
+ const stepperContextKey = Symbol("stepper");
7
+ function shouldCollapseStepper(width, count, minimumStepWidth, orientation) {
8
+ if (orientation !== "horizontal" || count < 1) return false;
9
+ return width < count * (minimumStepWidth ?? 112);
10
+ }
11
+ function resolveStepGlyph(options) {
12
+ if (options.status === "warning") return "warning";
13
+ if (options.status === "error") return "error";
14
+ if (options.status === "success" || options.status == null && options.progress === "completed" && options.indicator === "auto") return "check";
15
+ if (options.indicator === "none") return "none";
16
+ if (options.indicator === "number" || options.indicator === "auto" && options.progress === "not-started") return "number";
17
+ if (options.indicator === "auto" && options.progress === "in-progress") return "ring";
18
+ return "none";
19
+ }
20
+ //#endregion
21
+ //#region src/Stepper/StepMarker.vue
22
+ const _hoisted_1$2 = ["data-glyph"];
23
+ const _hoisted_2$2 = {
24
+ key: 0,
25
+ viewBox: "0 0 16 16"
26
+ };
27
+ const _hoisted_3$2 = {
28
+ key: 1,
29
+ viewBox: "0 0 16 16"
30
+ };
31
+ const _hoisted_4$2 = {
32
+ key: 2,
33
+ viewBox: "0 0 16 16"
34
+ };
35
+ const _hoisted_5$2 = {
36
+ key: 3,
37
+ viewBox: "0 0 16 16"
38
+ };
39
+ const _hoisted_6$2 = { key: 4 };
40
+ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
41
+ name: "AstryxStepMarker",
42
+ __name: "StepMarker",
43
+ props: {
44
+ glyph: {},
45
+ numberLabel: {}
46
+ },
47
+ setup(__props) {
48
+ return (_ctx, _cache) => {
49
+ return __props.glyph !== "none" ? (openBlock(), createElementBlock("span", {
50
+ key: 0,
51
+ class: "astryx-step-indicator",
52
+ "data-glyph": __props.glyph,
53
+ "aria-hidden": "true"
54
+ }, [__props.glyph === "warning" ? (openBlock(), createElementBlock("svg", _hoisted_2$2, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
55
+ d: "M8 1.8 14.5 14H1.5L8 1.8z",
56
+ fill: "none",
57
+ stroke: "currentColor",
58
+ "stroke-width": "1.5"
59
+ }, null, -1), createElementVNode("path", {
60
+ d: "M8 6.2v4.2",
61
+ stroke: "currentColor",
62
+ "stroke-linecap": "round"
63
+ }, null, -1)])])) : __props.glyph === "error" ? (openBlock(), createElementBlock("svg", _hoisted_3$2, [..._cache[1] || (_cache[1] = [createElementVNode("circle", {
64
+ cx: "8",
65
+ cy: "8",
66
+ r: "6",
67
+ fill: "none",
68
+ stroke: "currentColor",
69
+ "stroke-width": "1.5"
70
+ }, null, -1), createElementVNode("path", {
71
+ d: "M5.5 5.5l5 5M10.5 5.5l-5 5",
72
+ stroke: "currentColor",
73
+ "stroke-linecap": "round"
74
+ }, null, -1)])])) : __props.glyph === "check" ? (openBlock(), createElementBlock("svg", _hoisted_4$2, [..._cache[2] || (_cache[2] = [createElementVNode("circle", {
75
+ cx: "8",
76
+ cy: "8",
77
+ r: "8",
78
+ fill: "currentColor"
79
+ }, null, -1), createElementVNode("path", {
80
+ d: "M4.4 8.2 6.7 10.5 11.7 5.5",
81
+ fill: "none",
82
+ stroke: "var(--astryx-color-background-surface, #fff)",
83
+ "stroke-linecap": "round",
84
+ "stroke-linejoin": "round",
85
+ "stroke-width": "1.6"
86
+ }, null, -1)])])) : __props.glyph === "ring" ? (openBlock(), createElementBlock("svg", _hoisted_5$2, [..._cache[3] || (_cache[3] = [createElementVNode("circle", {
87
+ cx: "8",
88
+ cy: "8",
89
+ r: "5.25",
90
+ fill: "none",
91
+ stroke: "currentColor",
92
+ "stroke-width": "1.5"
93
+ }, null, -1), createElementVNode("circle", {
94
+ cx: "8",
95
+ cy: "8",
96
+ r: "2.25",
97
+ fill: "currentColor"
98
+ }, null, -1)])])) : (openBlock(), createElementBlock("span", _hoisted_6$2, toDisplayString(__props.numberLabel), 1))], 8, _hoisted_1$2)) : createCommentVNode("v-if", true);
99
+ };
100
+ }
101
+ });
102
+ //#endregion
103
+ //#region src/Stepper/Step.vue
104
+ const _hoisted_1$1 = [
105
+ "aria-current",
106
+ "data-density",
107
+ "data-indicator-position",
108
+ "data-orientation",
109
+ "data-progress",
110
+ "data-status"
111
+ ];
112
+ const _hoisted_2$1 = ["data-filled"];
113
+ const _hoisted_3$1 = {
114
+ key: 1,
115
+ class: "astryx-step-rail"
116
+ };
117
+ const _hoisted_4$1 = ["data-filled"];
118
+ const _hoisted_5$1 = ["data-filled"];
119
+ const _hoisted_6$1 = ["data-glyph"];
120
+ const _hoisted_7$1 = { class: "astryx-step-copy" };
121
+ const _hoisted_8$1 = { class: "astryx-step-label-row" };
122
+ const _hoisted_9$1 = { class: "astryx-step-label" };
123
+ const _hoisted_10 = {
124
+ key: 1,
125
+ class: "astryx-step-optional"
126
+ };
127
+ const _hoisted_11 = {
128
+ key: 0,
129
+ class: "astryx-step-description"
130
+ };
131
+ const _hoisted_12 = {
132
+ key: 2,
133
+ class: "astryx-step-content"
134
+ };
135
+ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
136
+ name: "AstryxStep",
137
+ __name: "Step",
138
+ props: {
139
+ step: {},
140
+ label: {},
141
+ description: {},
142
+ status: {},
143
+ isDisabled: {
144
+ type: Boolean,
145
+ default: false
146
+ },
147
+ isOptional: {
148
+ type: Boolean,
149
+ default: false
150
+ },
151
+ indicator: { default: "auto" },
152
+ density: {}
153
+ },
154
+ setup(__props) {
155
+ const props = __props;
156
+ const stepper = inject(stepperContextKey);
157
+ const messages = useAstryxMessages();
158
+ const progress = computed(() => {
159
+ const active = stepper?.activeStep.value ?? 0;
160
+ if (props.step === active) return "in-progress";
161
+ if (props.step < active) return "completed";
162
+ return "not-started";
163
+ });
164
+ const density = computed(() => props.density ?? stepper?.density.value ?? "balanced");
165
+ const orientation = computed(() => stepper?.orientation.value ?? "horizontal");
166
+ const indicatorPosition = computed(() => stepper?.indicatorPosition.value ?? "separated");
167
+ const isClickable = computed(() => stepper?.isNonLinear.value === true && !props.isDisabled);
168
+ const numberLabel = computed(() => String(props.step + 1));
169
+ const glyph = computed(() => resolveStepGlyph({
170
+ progress: progress.value,
171
+ indicator: props.indicator,
172
+ status: props.status
173
+ }));
174
+ const collapsed = computed(() => stepper?.collapsed.value === true);
175
+ const leadFilled = computed(() => props.step <= (stepper?.activeStep.value ?? 0));
176
+ const trailFilled = computed(() => props.step < (stepper?.activeStep.value ?? 0));
177
+ const accessibleName = computed(() => {
178
+ const stepNumber = props.step + 1;
179
+ const status = props.status === "error" ? messages.value.stepper.status.error : props.status === "warning" ? messages.value.stepper.status.warning : progress.value === "completed" ? messages.value.stepper.status.completed : null;
180
+ if (status == null) return messages.value.stepper.goToStep(stepNumber);
181
+ return messages.value.stepper.goToStepWithStatus(stepNumber, status);
182
+ });
183
+ const hiddenStatus = computed(() => {
184
+ if (progress.value === "in-progress") return null;
185
+ if (props.status === "error") return messages.value.stepper.status.error;
186
+ if (props.status === "warning") return messages.value.stepper.status.warning;
187
+ if (props.status === "success" || progress.value === "completed") return messages.value.stepper.status.completed;
188
+ return null;
189
+ });
190
+ function activate() {
191
+ if (!isClickable.value) return;
192
+ stepper?.select.value?.(props.step);
193
+ }
194
+ if (stepper) {
195
+ const context = stepper;
196
+ watch(() => ({
197
+ step: props.step,
198
+ label: props.label,
199
+ description: props.description,
200
+ indicator: props.indicator,
201
+ status: props.status,
202
+ isDisabled: props.isDisabled
203
+ }), (record) => context.register(record), { immediate: true });
204
+ onUnmounted(() => context.unregister(props.step));
205
+ }
206
+ return (_ctx, _cache) => {
207
+ return openBlock(), createElementBlock("li", {
208
+ class: "astryx-step",
209
+ "aria-current": progress.value === "in-progress" ? "step" : void 0,
210
+ "data-density": density.value,
211
+ "data-indicator-position": indicatorPosition.value,
212
+ "data-orientation": orientation.value,
213
+ "data-progress": progress.value,
214
+ "data-status": __props.status
215
+ }, [
216
+ indicatorPosition.value === "separated" || collapsed.value ? (openBlock(), createElementBlock("span", {
217
+ key: 0,
218
+ class: "astryx-step-bar",
219
+ "data-filled": leadFilled.value || void 0
220
+ }, null, 8, _hoisted_2$1)) : (openBlock(), createElementBlock("span", _hoisted_3$1, [createElementVNode("span", {
221
+ class: "astryx-step-connector astryx-step-connector-lead",
222
+ "data-filled": leadFilled.value || void 0
223
+ }, null, 8, _hoisted_4$1), createElementVNode("span", {
224
+ class: "astryx-step-connector astryx-step-connector-trail",
225
+ "data-filled": trailFilled.value || void 0
226
+ }, null, 8, _hoisted_5$1)])),
227
+ (openBlock(), createBlock(resolveDynamicComponent(isClickable.value ? "button" : "div"), {
228
+ class: "astryx-step-control",
229
+ "aria-label": isClickable.value ? accessibleName.value : void 0,
230
+ type: isClickable.value ? "button" : void 0,
231
+ onClick: activate
232
+ }, {
233
+ default: withCtx(() => [_ctx.$slots.icon ? (openBlock(), createElementBlock("span", {
234
+ key: 0,
235
+ class: "astryx-step-indicator",
236
+ "data-glyph": glyph.value,
237
+ "aria-hidden": "true"
238
+ }, [renderSlot(_ctx.$slots, "icon")], 8, _hoisted_6$1)) : (openBlock(), createBlock(_sfc_main$2, {
239
+ key: 1,
240
+ glyph: glyph.value,
241
+ "number-label": numberLabel.value
242
+ }, null, 8, ["glyph", "number-label"])), createElementVNode("span", _hoisted_7$1, [createElementVNode("span", _hoisted_8$1, [
243
+ createElementVNode("span", _hoisted_9$1, toDisplayString(__props.label), 1),
244
+ hiddenStatus.value ? (openBlock(), createBlock(_sfc_main$3, { key: 0 }, {
245
+ default: withCtx(() => [createTextVNode(toDisplayString(hiddenStatus.value), 1)]),
246
+ _: 1
247
+ })) : createCommentVNode("v-if", true),
248
+ __props.isOptional ? (openBlock(), createElementBlock("span", _hoisted_10, "• " + toDisplayString(unref(messages).stepper.optional), 1)) : createCommentVNode("v-if", true),
249
+ renderSlot(_ctx.$slots, "end")
250
+ ]), __props.description ? (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(__props.description), 1)) : createCommentVNode("v-if", true)])]),
251
+ _: 3
252
+ }, 8, ["aria-label", "type"])),
253
+ _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_12, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("v-if", true)
254
+ ], 8, _hoisted_1$1);
255
+ };
256
+ }
257
+ });
258
+ //#endregion
259
+ //#region src/Stepper/Stepper.vue
260
+ const _hoisted_1 = ["data-collapsed"];
261
+ const _hoisted_2 = [
262
+ "aria-label",
263
+ "data-collapsible",
264
+ "data-indicator-position",
265
+ "data-orientation"
266
+ ];
267
+ const _hoisted_3 = {
268
+ key: 0,
269
+ class: "astryx-stepper-summary"
270
+ };
271
+ const _hoisted_4 = ["aria-label", "disabled"];
272
+ const _hoisted_5 = { class: "astryx-stepper-summary-body" };
273
+ const _hoisted_6 = { class: "astryx-stepper-summary-row" };
274
+ const _hoisted_7 = { class: "astryx-step-label" };
275
+ const _hoisted_8 = {
276
+ key: 0,
277
+ class: "astryx-step-description"
278
+ };
279
+ const _hoisted_9 = ["aria-label", "disabled"];
280
+ const _sfc_main = /*@__PURE__*/ defineComponent({
281
+ name: "AstryxStepper",
282
+ __name: "Stepper",
283
+ props: {
284
+ activeStep: {},
285
+ orientation: { default: "horizontal" },
286
+ onStepClick: {},
287
+ label: {},
288
+ density: { default: "balanced" },
289
+ indicatorPosition: { default: "separated" },
290
+ hasCollapsibleLabels: {
291
+ type: Boolean,
292
+ default: false
293
+ },
294
+ horizontalOptions: {}
295
+ },
296
+ setup(__props) {
297
+ const props = __props;
298
+ const messages = useAstryxMessages();
299
+ const root = useTemplateRef("root");
300
+ const width = ref(Number.POSITIVE_INFINITY);
301
+ const steps = ref([]);
302
+ const activeStep = computed(() => props.activeStep);
303
+ const orientation = computed(() => props.orientation);
304
+ const density = computed(() => props.density);
305
+ const indicatorPosition = computed(() => props.indicatorPosition);
306
+ const hasCollapsibleLabels = computed(() => props.hasCollapsibleLabels && props.orientation === "horizontal");
307
+ const select = computed(() => props.onStepClick ?? null);
308
+ const isNonLinear = computed(() => select.value != null);
309
+ const collapsed = computed(() => shouldCollapseStepper(width.value, steps.value.length, props.horizontalOptions?.minimumStepWidth, props.orientation));
310
+ const collapsedVariant = computed(() => props.horizontalOptions?.collapsedVariant ?? "withLabelAndControls");
311
+ const orderedSteps = computed(() => [...steps.value].sort((left, right) => left.step - right.step));
312
+ const current = computed(() => steps.value.find((step) => step.step === props.activeStep) ?? null);
313
+ const showSummary = computed(() => collapsed.value && current.value != null && collapsedVariant.value !== "hiddenLabel");
314
+ const showControls = computed(() => showSummary.value && collapsedVariant.value === "withLabelAndControls" && select.value != null);
315
+ const currentGlyph = computed(() => {
316
+ const step = current.value;
317
+ if (step == null) return "none";
318
+ return resolveStepGlyph({
319
+ progress: "in-progress",
320
+ indicator: step.indicator,
321
+ status: step.status
322
+ });
323
+ });
324
+ function register(record) {
325
+ if (steps.value.findIndex((step) => step.step === record.step) === -1) steps.value = [...steps.value, record];
326
+ else steps.value = steps.value.map((step) => step.step === record.step ? record : step);
327
+ }
328
+ function unregister(step) {
329
+ steps.value = steps.value.filter((item) => item.step !== step);
330
+ }
331
+ function neighbor(delta) {
332
+ const ordered = orderedSteps.value;
333
+ let cursor = ordered.findIndex((step) => step.step === props.activeStep) + delta;
334
+ while (cursor >= 0 && cursor < ordered.length && ordered[cursor]?.isDisabled) cursor += delta;
335
+ if (cursor < 0 || cursor >= ordered.length) return null;
336
+ return ordered[cursor]?.step ?? null;
337
+ }
338
+ function move(delta) {
339
+ const next = neighbor(delta);
340
+ if (next == null) return;
341
+ select.value?.(next);
342
+ }
343
+ let observer;
344
+ onMounted(() => {
345
+ const node = root.value;
346
+ if (node == null || typeof ResizeObserver === "undefined") return;
347
+ observer = new ResizeObserver((entries) => {
348
+ width.value = entries[0]?.contentRect.width ?? node.clientWidth;
349
+ });
350
+ observer.observe(node);
351
+ });
352
+ onUnmounted(() => observer?.disconnect());
353
+ provide(stepperContextKey, {
354
+ activeStep,
355
+ collapsed,
356
+ density,
357
+ hasCollapsibleLabels,
358
+ indicatorPosition,
359
+ isNonLinear,
360
+ orientation,
361
+ register,
362
+ select,
363
+ unregister
364
+ });
365
+ return (_ctx, _cache) => {
366
+ return openBlock(), createElementBlock("div", {
367
+ ref_key: "root",
368
+ ref: root,
369
+ class: "astryx-stepper-root",
370
+ "data-collapsed": collapsed.value || void 0
371
+ }, [createElementVNode("ol", {
372
+ class: "astryx-stepper",
373
+ "aria-label": __props.label || unref(messages).stepper.progress,
374
+ "data-collapsible": hasCollapsibleLabels.value || void 0,
375
+ "data-indicator-position": indicatorPosition.value,
376
+ "data-orientation": orientation.value
377
+ }, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_2), showSummary.value && current.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
378
+ showControls.value ? (openBlock(), createElementBlock("button", {
379
+ key: 0,
380
+ class: "astryx-stepper-nav",
381
+ type: "button",
382
+ "aria-label": unref(messages).stepper.previous,
383
+ disabled: neighbor(-1) == null,
384
+ onClick: _cache[0] || (_cache[0] = ($event) => move(-1))
385
+ }, [..._cache[2] || (_cache[2] = [createElementVNode("svg", {
386
+ viewBox: "0 0 16 16",
387
+ "aria-hidden": "true"
388
+ }, [createElementVNode("path", {
389
+ d: "M10 3.5 5.5 8 10 12.5",
390
+ fill: "none",
391
+ stroke: "currentColor",
392
+ "stroke-linecap": "round",
393
+ "stroke-linejoin": "round",
394
+ "stroke-width": "1.5"
395
+ })], -1)])], 8, _hoisted_4)) : createCommentVNode("v-if", true),
396
+ createElementVNode("span", _hoisted_5, [createElementVNode("span", _hoisted_6, [createVNode(_sfc_main$2, {
397
+ glyph: currentGlyph.value,
398
+ "number-label": String(activeStep.value + 1)
399
+ }, null, 8, ["glyph", "number-label"]), createElementVNode("span", _hoisted_7, toDisplayString(current.value.label), 1)]), current.value.description ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(current.value.description), 1)) : createCommentVNode("v-if", true)]),
400
+ showControls.value ? (openBlock(), createElementBlock("button", {
401
+ key: 1,
402
+ class: "astryx-stepper-nav",
403
+ type: "button",
404
+ "aria-label": unref(messages).stepper.next,
405
+ disabled: neighbor(1) == null,
406
+ onClick: _cache[1] || (_cache[1] = ($event) => move(1))
407
+ }, [..._cache[3] || (_cache[3] = [createElementVNode("svg", {
408
+ viewBox: "0 0 16 16",
409
+ "aria-hidden": "true"
410
+ }, [createElementVNode("path", {
411
+ d: "M6 3.5 10.5 8 6 12.5",
412
+ fill: "none",
413
+ stroke: "currentColor",
414
+ "stroke-linecap": "round",
415
+ "stroke-linejoin": "round",
416
+ "stroke-width": "1.5"
417
+ })], -1)])], 8, _hoisted_9)) : createCommentVNode("v-if", true)
418
+ ])) : createCommentVNode("v-if", true)], 8, _hoisted_1);
419
+ };
420
+ }
421
+ });
422
+ //#endregion
423
+ export { _sfc_main$1 as n, _sfc_main as t };
@@ -1,2 +1,2 @@
1
- import { At as SwitchChangeEvent, Ft as SwitchStatus, It as SwitchStatusType, Mt as SwitchProps, Nt as SwitchSize, Ot as _default, Pt as SwitchSlots, jt as SwitchEmits, kt as SwitchChangeAction } from "../index-CQ9F1f_F.js";
1
+ import { At as SwitchChangeEvent, Ft as SwitchStatus, It as SwitchStatusType, Mt as SwitchProps, Nt as SwitchSize, Ot as _default, Pt as SwitchSlots, jt as SwitchEmits, kt as SwitchChangeAction } from "../index-C6iJwTL0.js";
2
2
  export { _default as Switch, type SwitchChangeAction, type SwitchChangeEvent, type SwitchEmits, type SwitchProps, type SwitchSize, type SwitchSlots, type SwitchStatus, type SwitchStatusType };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Switch-CNdnr5TP.js";
1
+ import { t as _sfc_main } from "../Switch-SesQzPGZ.js";
2
2
  export { _sfc_main as Switch };
@@ -1,7 +1,8 @@
1
1
  import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
2
2
  import { n as useButtonTooltip } from "./Button-DrqeomlE.js";
3
3
  import { t as _sfc_main$2 } from "./ButtonTooltip-nWWrth8j.js";
4
- import { t as _sfc_main$3 } from "./FieldLabel-B1NRyQlS.js";
4
+ import { i as useAriaRequired } from "./context-Cfjh8te1.js";
5
+ import { t as _sfc_main$3 } from "./FieldLabel-DmmJyX7w.js";
5
6
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onUpdated, openBlock, renderSlot, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
6
7
  import "../styles/switch.css";
7
8
  //#region src/Switch/useSwitchAction.ts
@@ -128,6 +129,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
128
129
  setup(__props, { expose: __expose, emit: __emit }) {
129
130
  const props = __props;
130
131
  const emit = __emit;
132
+ const ariaRequired = useAriaRequired(props);
131
133
  const model = useModel(__props, "modelValue");
132
134
  const attrs = useAttrs();
133
135
  const input = useTemplateRef("input");
@@ -246,7 +248,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
246
248
  "aria-disabled": showsDisabledMessage.value || void 0,
247
249
  "aria-readonly": __props.isReadOnly || void 0,
248
250
  "aria-busy": busy.value || void 0,
249
- "aria-required": __props.isRequired && !__props.isOptional || void 0,
251
+ "aria-required": unref(ariaRequired),
250
252
  "aria-invalid": __props.status?.type === "error" ? true : inputAttrs()["aria-invalid"],
251
253
  onClick: click,
252
254
  onChange: change,
@@ -1,2 +1,2 @@
1
- import { a as TabListSize, i as TabListProps, n as _default, o as TabListTab, r as TabListLayout, s as TabProps, t as _default$1 } from "../index-CCA4R0Mf.js";
2
- export { _default as Tab, _default$1 as TabList, type TabListLayout, type TabListProps, type TabListSize, type TabListTab, type TabProps };
1
+ import { a as TabListProps, c as TabMenuOption, i as TabListLayout, l as TabMenuProps, n as _default$1, o as TabListSize, r as _default, s as TabListTab, t as _default$2, u as TabProps } from "../index-DT9S92sh.js";
2
+ export { _default as Tab, _default$1 as TabList, type TabListLayout, type TabListProps, type TabListSize, type TabListTab, _default$2 as TabMenu, type TabMenuOption, type TabMenuProps, type TabProps };
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, t as _sfc_main$1 } from "../TabList-LV1U4ZD6.js";
2
- export { _sfc_main as Tab, _sfc_main$1 as TabList };
1
+ import { n as _sfc_main$1, r as _sfc_main, t as _sfc_main$2 } from "../TabList-Cnc2Hs1H.js";
2
+ export { _sfc_main as Tab, _sfc_main$1 as TabList, _sfc_main$2 as TabMenu };