@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
package/dist/index.js CHANGED
@@ -1,13 +1,15 @@
1
- import { t as _sfc_main$139 } from "./VisuallyHidden-C7NN3VEP.js";
2
- import { t as _sfc_main$11 } from "./Button-DrqeomlE.js";
1
+ import { t as _sfc_main$172 } from "./VisuallyHidden-C7NN3VEP.js";
2
+ import { t as _sfc_main$13 } from "./Button-DrqeomlE.js";
3
3
  import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
4
4
  import { t as useAnnounce } from "./announce-Cnio10Wk.js";
5
+ import { n as useAppShellMobile, t as appShellMobileKey } from "./useAppShellMobile-DTsyuAJ4.js";
5
6
  import { n as useAsyncSource, t as createStaticSource } from "./useAsyncSource-Gk0VtE7_.js";
6
7
  import { n as CHAT_MESSAGE_CLASS, r as useChatNewMessages, t as useChatStreamScroll } from "./useChatStreamScroll-oDfybEos.js";
8
+ import { n as useClickableContainer, t as INTERACTIVE_SELECTORS } from "./useClickableContainer-DyNpnSEa.js";
7
9
  import { t as useClipboard } from "./useClipboard-BDfbEsWd.js";
8
10
  import { a as parseISOTime, c as useCoarsePointer, i as parseDisplayTime, n as formatISOTime, o as resolveTimeSurface, r as isTimeInRange, s as shiftTime, t as formatDisplayTime } from "./useTimeValue-DWk6oTAZ.js";
9
11
  import { t as useCombobox } from "./useCombobox-CTo5C-gc.js";
10
- import { n as useStreamingText, r as useControllableState, t as snapToGraphemeBoundary } from "./composables-Dq9RS33w.js";
12
+ import { a as useResizable, i as percent, n as useStreamingText, o as useControllableState, r as useScrollOverflow, t as snapToGraphemeBoundary } from "./composables-CVfjp9h4.js";
11
13
  import { a as todayISODate, c as formatDateRange, d as isSameRange, f as orderRange, i as toISODate, l as isDayOutsideSpan, m as spanDays, n as buildMonthGrid, o as applyRangeClick, p as resolveWeekStart, r as parseISODate, s as compareISODate, t as addMonths, u as isRangeWithinSpan } from "./useMonthGrid-CmJsZTcB.js";
12
14
  import { t as useDismiss } from "./useDismiss-CAiHU6QD.js";
13
15
  import { n as selectFiles, t as formatFileSize } from "./useFileSelection-BPtaegqK.js";
@@ -18,122 +20,147 @@ import { t as useListFocus } from "./useListFocus-D0iOJl39.js";
18
20
  import { t as useLongPress } from "./useLongPress-Cyxwa73s.js";
19
21
  import { t as useNumberField } from "./useNumberField-DL-Radsp.js";
20
22
  import { n as useOverflow, t as computeOverflow } from "./useOverflow-VrwF5oek.js";
23
+ import { t as useScrollableArea } from "./useScrollableArea-DDk_CluT.js";
21
24
  import { t as useScrollLock } from "./scrollLock-BzIvIimL.js";
22
25
  import { t as useTypeahead } from "./useTypeahead-PAK8lMYz.js";
23
- import { t as _sfc_main$43 } from "./Dialog-rfUt3y8P.js";
24
- import { t as _sfc_main$58 } from "./Heading-Dugosn6j.js";
25
- import { t as _sfc_main$101 } from "./Stack-gGcYdOAh.js";
26
- import { t as _sfc_main$115 } from "./Text-CKd7e3gK.js";
27
- import { n as _sfc_main, t as useImperativeAlertDialog } from "./AlertDialog-BylcA4vV.js";
28
- import { n as _sfc_main$1, t as _sfc_main$4 } from "./Avatar-5s3HSrtN.js";
29
- import { n as _sfc_main$2, t as _sfc_main$3 } from "./AvatarGroup-CZcgAMjM.js";
30
- import { t as _sfc_main$5 } from "./Badge-Ba0EwsTj.js";
26
+ import { t as _sfc_main$56 } from "./Dialog-rfUt3y8P.js";
27
+ import { t as _sfc_main$72 } from "./Heading-Dugosn6j.js";
28
+ import { t as _sfc_main$128 } from "./Stack-gGcYdOAh.js";
29
+ import { t as _sfc_main$146 } from "./Text-BHVghsWo.js";
30
+ import { n as _sfc_main, t as useImperativeAlertDialog } from "./AlertDialog-ovx4cBjM.js";
31
+ import { a as _sfc_main$79, n as _sfc_main$82, r as _sfc_main$80, t as _sfc_main$83 } from "./LayoutPanel-C34uOq3e.js";
32
+ import { a as useAstryxMessages, i as useAstryxLocale, n as normalizeLocale, r as provideAstryxLocale } from "./context-Dbo22sck.js";
33
+ import { n as _sfc_main$92, t as _sfc_main$93 } from "./MobileNavToggle-DD9D01aj.js";
34
+ import { r as useSideNavCollapse } from "./context-BjNya0v8.js";
35
+ import { t as _sfc_main$1 } from "./AppShell-EiGyPFbA.js";
36
+ import { t as _sfc_main$2 } from "./AspectRatio-Bij7e-tq.js";
37
+ import { n as _sfc_main$3, t as _sfc_main$6 } from "./Avatar-5s3HSrtN.js";
38
+ import { n as _sfc_main$4, t as _sfc_main$5 } from "./AvatarGroup-CZcgAMjM.js";
39
+ import { t as _sfc_main$7 } from "./Badge-Ba0EwsTj.js";
31
40
  import "./Badge/index.js";
32
- import { t as _sfc_main$60 } from "./IconButton-BNQuz9W_.js";
33
- import { t as _sfc_main$6 } from "./Banner-CJe9Im5a.js";
34
- import { t as _sfc_main$7 } from "./Blockquote-DFqBv_oJ.js";
41
+ import { t as _sfc_main$75 } from "./IconButton-BNQuz9W_.js";
42
+ import { t as _sfc_main$8 } from "./Banner-CJe9Im5a.js";
43
+ import { t as _sfc_main$9 } from "./Blockquote-DFqBv_oJ.js";
35
44
  import "./Blockquote/index.js";
36
- import { t as _sfc_main$8 } from "./BottomSheet-Dg95HB1s.js";
45
+ import { t as _sfc_main$10 } from "./BottomSheet-Dg95HB1s.js";
37
46
  import "./BottomSheet/index.js";
38
- import { n as _sfc_main$9, t as _sfc_main$10 } from "./Breadcrumbs-C3YZFQ9w.js";
39
- import { n as _sfc_main$12 } from "./ButtonGroup-ySQWanDP.js";
40
- import { t as _sfc_main$13 } from "./Calendar-BEyrkUtr.js";
41
- import { a as useAstryxMessages, i as useAstryxLocale, n as normalizeLocale, r as provideAstryxLocale } from "./context-BshXcNYX.js";
47
+ import { n as _sfc_main$11, t as _sfc_main$12 } from "./Breadcrumbs-C3YZFQ9w.js";
48
+ import { n as _sfc_main$14 } from "./ButtonGroup-ySQWanDP.js";
49
+ import { t as _sfc_main$15 } from "./Calendar-BG7wEsro.js";
42
50
  import "./Calendar/index.js";
43
- import { t as _sfc_main$14 } from "./Card-HAjZQg2s.js";
44
- import { t as _sfc_main$15 } from "./Center-DVaZaTGP.js";
45
- import { a as _sfc_main$22, c as _sfc_main$19, d as useChatLayoutContext, f as useChatListContext, i as _sfc_main$23, l as _sfc_main$18, m as _sfc_main$17, n as _sfc_main$25, o as _sfc_main$21, p as useChatMessageContext, r as _sfc_main$24, s as _sfc_main$20, t as _sfc_main$26, u as _sfc_main$16 } from "./Chat-CO3mCs9A.js";
46
- import { t as _sfc_main$100 } from "./Spinner-9cYUCnDy.js";
47
- import { t as _sfc_main$45 } from "./Divider-BtwnL18I.js";
48
- import { t as _sfc_main$27 } from "./CheckboxIndicator-DdJmksHt.js";
51
+ import { t as _sfc_main$16 } from "./Card-HAjZQg2s.js";
52
+ import "./Card/index.js";
53
+ import { i as isIconGlyph, n as ICON_GLYPHS, r as iconGlyphSlug, t as _sfc_main$74 } from "./Icon-Dfr4k6-S.js";
54
+ import { t as _sfc_main$17 } from "./Carousel-BTtHkKea.js";
55
+ import { t as _sfc_main$18 } from "./Center-DVaZaTGP.js";
56
+ import { a as _sfc_main$25, c as _sfc_main$22, d as useChatLayoutContext, f as useChatListContext, i as _sfc_main$26, l as _sfc_main$21, m as _sfc_main$20, n as _sfc_main$28, o as _sfc_main$24, p as useChatMessageContext, r as _sfc_main$27, s as _sfc_main$23, t as _sfc_main$29, u as _sfc_main$19 } from "./Chat-DjNxw5gv.js";
57
+ import { t as _sfc_main$127 } from "./Spinner-9cYUCnDy.js";
58
+ import { t as _sfc_main$58 } from "./Divider-BtwnL18I.js";
59
+ import { t as _sfc_main$30 } from "./CheckboxIndicator-DdJmksHt.js";
49
60
  import "./CheckboxIndicator/index.js";
50
- import { t as _sfc_main$52 } from "./FieldLabel-B1NRyQlS.js";
51
- import { t as _sfc_main$53 } from "./FieldStatus-MjY19ERl.js";
52
- import { t as _sfc_main$28 } from "./CheckboxInput-C86o3XoG.js";
61
+ import { t as _sfc_main$65 } from "./FieldLabel-DmmJyX7w.js";
62
+ import { t as _sfc_main$66 } from "./FieldStatus-MjY19ERl.js";
63
+ import { t as _sfc_main$31 } from "./CheckboxInput-CMsEE1_4.js";
53
64
  import "./CheckboxInput/index.js";
54
- import { t as _sfc_main$51 } from "./Field-VlTBsIEo.js";
55
- import { i as useListContext, r as useItemDescriptionId, t as _sfc_main$62 } from "./Item-C1z6gXn8.js";
56
- import { n as _sfc_main$65, t as _sfc_main$66 } from "./ListItem-pGxvn6QJ.js";
57
- import { n as _sfc_main$29, t as _sfc_main$30 } from "./CheckboxList-BL2sDOWK.js";
58
- import { t as _sfc_main$31 } from "./Citation-BqwJvw7o.js";
59
- import { a as tokenizeAsync, c as _sfc_main$32, i as tokenize, n as SYNC_TOKENIZE_THRESHOLD, o as HIGHLIGHTED_TOKEN_TYPES, r as flatTokensToLines, s as applyHighlightRanges, t as _sfc_main$33 } from "./CodeBlock-BQdooQy2.js";
60
- import "./Code/index.js";
61
- import { t as _sfc_main$34 } from "./Collapsible-BYg9soTk.js";
62
- import { a as _sfc_main$36, i as _sfc_main$37, n as _sfc_main$39, o as useContextMenu, r as _sfc_main$38, s as useContextMenuSize, t as _sfc_main$35 } from "./ContextMenu-dA-ppaRQ.js";
63
- import { t as _sfc_main$84 } from "./Popover-Crhk9PNP.js";
64
- import { t as _sfc_main$40 } from "./DateInput-BOIb0zAp.js";
65
+ import { t as _sfc_main$64 } from "./Field-8zRxzDHE.js";
66
+ import { i as useListContext, r as useItemDescriptionId, t as _sfc_main$77 } from "./Item-C1z6gXn8.js";
67
+ import { n as _sfc_main$86, t as _sfc_main$87 } from "./ListItem-pGxvn6QJ.js";
68
+ import { n as _sfc_main$32, t as _sfc_main$33 } from "./CheckboxList-EsIEXjK_.js";
69
+ import { t as _sfc_main$34 } from "./Citation-DijdbUUu.js";
70
+ import { n as _sfc_main$35 } from "./ClickableCard-Bhds4RRe.js";
71
+ import { a as tokenizeAsync, c as _sfc_main$36, i as tokenize, n as SYNC_TOKENIZE_THRESHOLD, o as HIGHLIGHTED_TOKEN_TYPES, r as flatTokensToLines, s as applyHighlightRanges, t as _sfc_main$37 } from "./CodeBlock-CxTb6j9_.js";
72
+ import { n as defineSyntaxTheme, r as githubDark, t as SYNTAX_TOKEN_KEYS } from "./syntaxTheme-ClpWALZX.js";
73
+ import { a as catppuccinMocha, c as githubLight, d as nord, f as oneDarkPro, g as tokyoNightLight, h as tokyoNight, i as catppuccinLatte, l as lightSyntaxPresets, m as solarizedLight, n as _sfc_main$134, o as darkSyntaxPresets, p as oneLight, r as allSyntaxPresets, s as dracula, t as useSyntaxTheme, u as monokai } from "./Code-yb_KOFtJ.js";
74
+ import { n as _sfc_main$38, t as _sfc_main$39 } from "./Collapsible-9MC08X39.js";
75
+ import { a as _sfc_main$43, i as _sfc_main$44, n as _sfc_main$46, o as _sfc_main$42, r as _sfc_main$45, s as _sfc_main$41, t as _sfc_main$40 } from "./CommandPalette-BD2iODF5.js";
76
+ import { t as _sfc_main$78 } from "./Kbd-BB-Dw6zE.js";
77
+ import { t as _sfc_main$107 } from "./Popover-Crhk9PNP.js";
78
+ import { n as _sfc_main$47 } from "./ComplexSelector-D9iXd5cH.js";
79
+ import { a as _sfc_main$49, i as _sfc_main$50, n as _sfc_main$52, o as useContextMenu, r as _sfc_main$51, s as useContextMenuSize, t as _sfc_main$48 } from "./ContextMenu-HS_WqYIg.js";
80
+ import { t as _sfc_main$53 } from "./DateInput-DE2TN1Rq.js";
65
81
  import "./DateInput/index.js";
66
- import { t as _sfc_main$41 } from "./DateRangeInput-DLcbgUBi.js";
67
- import { t as _sfc_main$42 } from "./DateTimeInput-RitYX_Yx.js";
68
- import { n as _sfc_main$44, t as useImperativeDialog } from "./Dialog-CvRplBo-.js";
82
+ import { t as _sfc_main$54 } from "./DateRangeInput-1bhPGG2s.js";
83
+ import { t as _sfc_main$55 } from "./DateTimeInput-SnPdgk6P.js";
84
+ import { n as _sfc_main$57, t as useImperativeDialog } from "./Dialog-CvRplBo-.js";
69
85
  import "./Divider/index.js";
70
- import { a as useDropdownMenuContext, i as _sfc_main$47, n as _sfc_main$49, r as _sfc_main$48, t as _sfc_main$46 } from "./DropdownMenu-B0gogrvG.js";
71
- import { t as _sfc_main$50 } from "./EmptyState-Bhlqgsg4.js";
86
+ import { a as useDropdownMenuContext, i as _sfc_main$60, n as _sfc_main$62, r as _sfc_main$61, t as _sfc_main$59 } from "./DropdownMenu-UJGych6v.js";
87
+ import { t as _sfc_main$63 } from "./EmptyState-CUJdTYKV.js";
72
88
  import "./Field/index.js";
73
89
  import "./FieldStatus/index.js";
74
- import { t as _sfc_main$54 } from "./FileInput-CYvEV503.js";
75
- import { n as _sfc_main$55, t as _sfc_main$56 } from "./Grid-D1onTzyC.js";
90
+ import { t as _sfc_main$67 } from "./FileInput-BQiwE-GB.js";
91
+ import { t as _sfc_main$68 } from "./FormLayout-D47FjiOq.js";
92
+ import { n as _sfc_main$69, t as _sfc_main$70 } from "./Grid-D1onTzyC.js";
76
93
  import "./Heading/index.js";
77
- import { t as _sfc_main$59 } from "./HoverCard-EhbWaGOW.js";
94
+ import { t as _sfc_main$73 } from "./HoverCard-EhbWaGOW.js";
78
95
  import "./HoverCard/index.js";
96
+ import "./Icon/index.js";
79
97
  import "./IconButton/index.js";
80
- import { t as _sfc_main$61 } from "./InputGroup-ChrFVxzV.js";
81
- import { t as _sfc_main$63 } from "./Kbd-BB-Dw6zE.js";
82
- import { t as _sfc_main$64 } from "./Link-CprjOuTI.js";
98
+ import { t as _sfc_main$76 } from "./InputGroup-ChrFVxzV.js";
99
+ import "./Kbd/index.js";
100
+ import { t as _sfc_main$81 } from "./Layout-Bed3kP0M.js";
101
+ import { n as _sfc_main$84, t as useLightbox } from "./Lightbox-CshKoB0r.js";
102
+ import { t as _sfc_main$85 } from "./Link-CprjOuTI.js";
83
103
  import "./Link/index.js";
84
104
  import "./List/index.js";
85
- import { i as parseMarkdown, n as slugify, r as uniqueSlug, t as _sfc_main$67 } from "./Markdown-Dnlp8cVx.js";
86
- import { n as _sfc_main$68, t as _sfc_main$69 } from "./MetadataList-DIsqS1Qb.js";
87
- import { n as _sfc_main$70, t as _sfc_main$71 } from "./MobileNavToggle-aUZiDwHm.js";
105
+ import { i as parseMarkdown, n as slugify, r as uniqueSlug, t as _sfc_main$88 } from "./Markdown-D-Ua055V.js";
106
+ import { n as _sfc_main$90, t as _sfc_main$91 } from "./MetadataList-sYph_d8Q.js";
88
107
  import "./MobileNav/index.js";
89
- import { t as _sfc_main$72 } from "./MoreMenu-BXL6Dqsu.js";
90
- import { t as _sfc_main$125 } from "./Token-CV2J94bn.js";
91
- import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main$73 } from "./MultiSelector-Bh8or2S6.js";
108
+ import { t as _sfc_main$94 } from "./MoreMenu-BVrK5kkk.js";
109
+ import { t as _sfc_main$158 } from "./Token-wt4e80IM.js";
110
+ import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main$95 } from "./MultiSelector-DiYov9sF.js";
92
111
  import { n as resolveNavRoot } from "./link-CdcUSxAj.js";
93
- import { t as _sfc_main$75 } from "./NavItem-thEKXyJA.js";
94
- import { t as _sfc_main$76 } from "./NavItem-FFOisITc.js";
95
- import { t as _sfc_main$74 } from "./NavDisclosure-DHrSNRDR.js";
96
- import { n as _sfc_main$77, t as _sfc_main$78 } from "./NavMenuItem-mzNQESpB.js";
112
+ import { t as _sfc_main$97 } from "./NavItem-thEKXyJA.js";
113
+ import { t as _sfc_main$98 } from "./NavItem-FFOisITc.js";
114
+ import { t as _sfc_main$96 } from "./NavDisclosure-DHrSNRDR.js";
115
+ import { n as _sfc_main$99, t as _sfc_main$100 } from "./NavMenuItem-B-k7olt5.js";
97
116
  import "./NavMenu/index.js";
98
- import { t as _sfc_main$79 } from "./NumberInput-C3S-4dIu.js";
99
- import { t as _sfc_main$80 } from "./OverflowList-Kr4iJrNV.js";
100
- import { n as useOverlay, r as _sfc_main$82, t as _sfc_main$81 } from "./Overlay-DKILTHxI.js";
101
- import { t as _sfc_main$83 } from "./Pagination-BRStpeSB.js";
102
- import { t as _sfc_main$92 } from "./Selector-DvEUIVEC.js";
117
+ import { t as _sfc_main$101 } from "./NumberInput-CTYiQxHq.js";
118
+ import { t as _sfc_main$102 } from "./Outline-DQfEBxlc.js";
119
+ import { t as _sfc_main$103 } from "./OverflowList-BU5VCntl.js";
120
+ import { n as useOverlay, r as _sfc_main$105, t as _sfc_main$104 } from "./Overlay-DKILTHxI.js";
121
+ import { t as _sfc_main$106 } from "./Pagination-HdhtykeF.js";
122
+ import { t as _sfc_main$119 } from "./Selector-Da-2BO3q.js";
103
123
  import "./Pagination/index.js";
104
124
  import "./Popover/index.js";
105
- import { t as _sfc_main$85 } from "./ProgressBar-ChDp-7oe.js";
106
- import { n as _sfc_main$86, t as _sfc_main$87 } from "./RadioGroup-DS6oTV_j.js";
125
+ import { t as _sfc_main$108 } from "./ProgressBar-ChDp-7oe.js";
126
+ import { n as _sfc_main$109, t as _sfc_main$110 } from "./RadioGroup-BqjdSCfJ.js";
107
127
  import "./Radio/index.js";
108
- import { n as _sfc_main$88, t as _sfc_main$89 } from "./RadioList-pwr93I-z.js";
109
- import { n as _sfc_main$90, t as _sfc_main$91 } from "./SegmentedControl-ChHmFrrC.js";
128
+ import { n as _sfc_main$111, t as _sfc_main$112 } from "./RadioList-DI8ujXcT.js";
129
+ import { t as _sfc_main$113 } from "./Resizable-BhSMfO5B.js";
130
+ import { t as _sfc_main$114 } from "./ScrollableArea-DQDYjnxO.js";
131
+ import { t as _sfc_main$115 } from "./Section-C48Wqfc7.js";
132
+ import { n as _sfc_main$116, t as _sfc_main$117 } from "./SegmentedControl-ChHmFrrC.js";
133
+ import { n as _sfc_main$118 } from "./SelectableCard-Bj5s_tIN.js";
110
134
  import "./Selector/index.js";
111
- import { a as _sfc_main$94, i as _sfc_main$93, n as _sfc_main$96, o as useSideNavCollapse, r as _sfc_main$95, t as _sfc_main$97 } from "./SideNav-B7LX4RcP.js";
112
- import { t as _sfc_main$128 } from "./Tooltip-mp0NMh_Y.js";
113
- import { t as _sfc_main$98 } from "./Skeleton-CrgWxJgr.js";
135
+ import { a as _sfc_main$121, i as _sfc_main$120, n as _sfc_main$123, r as _sfc_main$122, t as _sfc_main$124 } from "./SideNav-B-Om6Bz3.js";
136
+ import { t as _sfc_main$161 } from "./Tooltip-mp0NMh_Y.js";
137
+ import { t as _sfc_main$125 } from "./Skeleton-CrgWxJgr.js";
114
138
  import "./Skeleton/index.js";
115
- import { t as _sfc_main$99 } from "./Slider-DTnWxtnb.js";
139
+ import { t as _sfc_main$126 } from "./Slider-D8h_RKcF.js";
116
140
  import "./Spinner/index.js";
117
- import { n as _sfc_main$102, r as _sfc_main$57, t as _sfc_main$138 } from "./Stack-iv52y_Jv.js";
118
- import { t as _sfc_main$103 } from "./StatusDot-CaoIapp4.js";
119
- import { t as _sfc_main$104 } from "./Switch-CNdnr5TP.js";
120
- import { C as paginateData, D as sortRows, E as resolveColumnWidths, S as generateColumns, T as proportional, _ as useTableColumnSettings, a as _sfc_main$110, b as capitalize, c as _sfc_main$107, d as useTableSelection, f as useTableSelectionState, g as useTableFiltering, h as useTableFilterState, i as _sfc_main$111, l as useTableSortable, m as applyTableFilters, n as _sfc_main$113, o as _sfc_main$109, p as useTablePagination, r as _sfc_main$112, s as _sfc_main$108, t as _sfc_main$114, u as useTableSortableState, v as useTableColumnSettingsState, w as pixel, x as cellText, y as useTableColumnResize } from "./Table-D5zWaITo.js";
121
- import { t as _sfc_main$117 } from "./TextInput-B0IKC7g5.js";
122
- import { n as _sfc_main$105, t as _sfc_main$106 } from "./TabList-LV1U4ZD6.js";
141
+ import { n as _sfc_main$129, r as _sfc_main$71, t as _sfc_main$171 } from "./Stack-iv52y_Jv.js";
142
+ import { t as _sfc_main$130 } from "./StatusDot-CaoIapp4.js";
143
+ import { n as _sfc_main$131, t as _sfc_main$132 } from "./Stepper-BZ_8SEZt.js";
144
+ import { t as _sfc_main$133 } from "./Switch-SesQzPGZ.js";
145
+ import { C as paginateData, D as sortRows, E as resolveColumnWidths, S as generateColumns, T as proportional, _ as useTableColumnSettings, a as _sfc_main$141, b as capitalize, c as _sfc_main$138, d as useTableSelection, f as useTableSelectionState, g as useTableFiltering, h as useTableFilterState, i as _sfc_main$142, l as useTableSortable, m as applyTableFilters, n as _sfc_main$144, o as _sfc_main$140, p as useTablePagination, r as _sfc_main$143, s as _sfc_main$139, t as _sfc_main$145, u as useTableSortableState, v as useTableColumnSettingsState, w as pixel, x as cellText, y as useTableColumnResize } from "./Table-D-LhAy_J.js";
146
+ import { t as _sfc_main$148 } from "./TextInput-BasnjVvy.js";
147
+ import { n as _sfc_main$136, r as _sfc_main$135, t as _sfc_main$137 } from "./TabList-Cnc2Hs1H.js";
123
148
  import "./Text/index.js";
124
- import { t as _sfc_main$116 } from "./TextArea-BL0NuB99.js";
149
+ import { t as _sfc_main$147 } from "./TextArea-Cv9UVbzS.js";
125
150
  import "./TextInput/index.js";
126
- import { t as _sfc_main$118 } from "./Thumbnail-DMOgWncm.js";
127
- import { t as _sfc_main$119 } from "./TimeInput-jb1nLqZk.js";
128
- import { i as formatInstant, n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main$120 } from "./Timestamp-DrWwVQBL.js";
129
- import { n as _sfc_main$122, r as _sfc_main$121, t as useToast } from "./Toast-BKXPvEMp.js";
130
- import { n as _sfc_main$124, r as _sfc_main$123 } from "./ToggleButton-BB_I8EdM.js";
151
+ import { a as defineTheme, c as normalizeTokenName, i as _sfc_main$89, n as useMediaTheme, o as isDefinedTheme, r as _sfc_main$149, s as neutralTheme, t as useTheme } from "./Theme-BuUiiJNr.js";
152
+ import { t as _sfc_main$150 } from "./Thumbnail-Dc1UpykG.js";
153
+ import { t as _sfc_main$151 } from "./TimeInput-BXxCOY98.js";
154
+ import { n as getPresentation, t as _sfc_main$152 } from "./Timer-B7GV6hqd.js";
155
+ import { i as formatInstant, n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main$153 } from "./Timestamp-DlZSmgCJ.js";
156
+ import { n as _sfc_main$155, r as _sfc_main$154, t as useToast } from "./Toast-BKXPvEMp.js";
157
+ import { n as _sfc_main$157, r as _sfc_main$156 } from "./ToggleButton-BB_I8EdM.js";
131
158
  import { t as TOKEN_COLORS } from "./Token-BdRzlXzm.js";
132
- import { t as _sfc_main$126 } from "./Tokenizer-DF9r4hTW.js";
133
- import { t as _sfc_main$127 } from "./Toolbar-BrgvvTCk.js";
159
+ import { t as _sfc_main$159 } from "./Tokenizer-nmTqdS9n.js";
160
+ import { t as _sfc_main$160 } from "./Toolbar-BrgvvTCk.js";
134
161
  import "./Tooltip/index.js";
135
- import { a as _sfc_main$131, i as _sfc_main$132, n as _sfc_main$134, o as _sfc_main$130, r as _sfc_main$133, s as _sfc_main$129, t as _sfc_main$135 } from "./TopNav-BH_s3uap.js";
136
- import { n as useTreeFocus, t as _sfc_main$136 } from "./TreeList-D9cR-w7r.js";
137
- import { t as _sfc_main$137 } from "./Typeahead-s4DC1Qem.js";
162
+ import { a as _sfc_main$164, i as _sfc_main$165, n as _sfc_main$167, o as _sfc_main$163, r as _sfc_main$166, s as _sfc_main$162, t as _sfc_main$168 } from "./TopNav-notp-mJx.js";
163
+ import { n as useTreeFocus, t as _sfc_main$169 } from "./TreeList-s1xBQ0qq.js";
164
+ import { t as _sfc_main$170 } from "./Typeahead-VAuiCurV.js";
138
165
  import "./VisuallyHidden/index.js";
139
- export { _sfc_main as AlertDialog, _sfc_main$1 as Avatar, _sfc_main$2 as AvatarGroup, _sfc_main$3 as AvatarGroupOverflow, _sfc_main$4 as AvatarStatusDot, _sfc_main$5 as Badge, _sfc_main$6 as Banner, _sfc_main$7 as Blockquote, _sfc_main$8 as BottomSheet, _sfc_main$9 as BreadcrumbItem, _sfc_main$10 as Breadcrumbs, _sfc_main$11 as Button, _sfc_main$12 as ButtonGroup, CHAT_MESSAGE_CLASS, _sfc_main$13 as Calendar, _sfc_main$14 as Card, _sfc_main$15 as Center, _sfc_main$16 as ChatLayout, _sfc_main$17 as ChatLayoutScrollButton, _sfc_main$18 as ChatMessage, _sfc_main$19 as ChatMessageBubble, _sfc_main$20 as ChatMessageList, _sfc_main$21 as ChatMessageMetadata, _sfc_main$22 as ChatReasoning, _sfc_main$23 as ChatSystemMessage, _sfc_main$24 as ChatToolCalls, _sfc_main$25 as ChatTypingIndicator, _sfc_main$26 as ChatUnreadDivider, _sfc_main$27 as CheckboxIndicator, _sfc_main$28 as CheckboxInput, _sfc_main$29 as CheckboxList, _sfc_main$30 as CheckboxListItem, _sfc_main$31 as Citation, _sfc_main$32 as Code, _sfc_main$33 as CodeBlock, _sfc_main$34 as Collapsible, _sfc_main$35 as ContextMenu, _sfc_main$36 as ContextMenuDivider, _sfc_main$37 as ContextMenuGroup, _sfc_main$38 as ContextMenuItem, _sfc_main$39 as ContextMenuSubMenu, _sfc_main$40 as DateInput, _sfc_main$41 as DateRangeInput, _sfc_main$42 as DateTimeInput, _sfc_main$43 as Dialog, _sfc_main$44 as DialogHeader, _sfc_main$45 as Divider, _sfc_main$46 as DropdownMenu, _sfc_main$47 as DropdownMenuDivider, _sfc_main$48 as DropdownMenuGroup, _sfc_main$49 as DropdownMenuItem, _sfc_main$50 as EmptyState, _sfc_main$51 as Field, _sfc_main$52 as FieldLabel, _sfc_main$53 as FieldStatus, _sfc_main$54 as FileInput, _sfc_main$55 as Grid, _sfc_main$56 as GridSpan, HIGHLIGHTED_TOKEN_TYPES, _sfc_main$57 as HStack, _sfc_main$58 as Heading, _sfc_main$59 as HoverCard, _sfc_main$60 as IconButton, _sfc_main$61 as InputGroup, _sfc_main$62 as Item, _sfc_main$63 as Kbd, _sfc_main$64 as Link, _sfc_main$65 as List, _sfc_main$66 as ListItem, _sfc_main$67 as Markdown, _sfc_main$68 as MetadataList, _sfc_main$69 as MetadataListItem, _sfc_main$70 as MobileNav, _sfc_main$71 as MobileNavToggle, _sfc_main$72 as MoreMenu, _sfc_main$73 as MultiSelector, _sfc_main$74 as NavDisclosure, _sfc_main$75 as NavIcon, _sfc_main$76 as NavItem, _sfc_main$77 as NavMenu, _sfc_main$78 as NavMenuItem, _sfc_main$79 as NumberInput, _sfc_main$80 as OverflowList, _sfc_main$81 as Overlay, _sfc_main$82 as OverlayScrim, _sfc_main$83 as Pagination, _sfc_main$84 as Popover, _sfc_main$85 as ProgressBar, _sfc_main$86 as Radio, _sfc_main$87 as RadioGroup, _sfc_main$88 as RadioList, _sfc_main$89 as RadioListItem, SELECT_ALL_VALUE, SYNC_TOKENIZE_THRESHOLD, _sfc_main$90 as SegmentedControl, _sfc_main$91 as SegmentedControlItem, _sfc_main$92 as Selector, _sfc_main$93 as SideNav, _sfc_main$94 as SideNavCollapseButton, _sfc_main$95 as SideNavHeading, _sfc_main$96 as SideNavItem, _sfc_main$97 as SideNavSection, _sfc_main$98 as Skeleton, _sfc_main$99 as Slider, _sfc_main$100 as Spinner, _sfc_main$101 as Stack, _sfc_main$102 as StackItem, _sfc_main$103 as StatusDot, _sfc_main$104 as Switch, TOKEN_COLORS, _sfc_main$105 as Tab, _sfc_main$106 as TabList, _sfc_main$107 as Table, _sfc_main$108 as TableBody, _sfc_main$109 as TableCell, _sfc_main$110 as TableFooter, _sfc_main$111 as TableHeader, _sfc_main$112 as TableHeaderCell, _sfc_main$113 as TableRow, _sfc_main$114 as TableSelectionToolbar, _sfc_main$115 as Text, _sfc_main$116 as TextArea, _sfc_main$117 as TextInput, _sfc_main$118 as Thumbnail, _sfc_main$119 as TimeInput, _sfc_main$120 as Timestamp, _sfc_main$121 as Toast, _sfc_main$122 as ToastViewport, _sfc_main$123 as ToggleButton, _sfc_main$124 as ToggleButtonGroup, _sfc_main$125 as Token, _sfc_main$126 as Tokenizer, _sfc_main$127 as Toolbar, _sfc_main$128 as Tooltip, _sfc_main$129 as TopNav, _sfc_main$130 as TopNavHeading, _sfc_main$131 as TopNavItem, _sfc_main$132 as TopNavMegaMenu, _sfc_main$133 as TopNavMegaMenuFeaturedCard, _sfc_main$134 as TopNavMegaMenuItem, _sfc_main$135 as TopNavMenu, _sfc_main$136 as TreeList, _sfc_main$137 as Typeahead, _sfc_main$138 as VStack, _sfc_main$139 as VisuallyHidden, addMonths, applyHighlightRanges, applyRangeClick, applyTableFilters, buildMonthGrid, capitalize, cellText, compareISODate, computeOverflow, createStaticSource, flatTokensToLines, flattenOptions, formatDateRange, formatDisplayTime, formatFileSize, formatISOTime, formatInstant, formatRelativeTime, formatTooltipLines, generateColumns, isDayOutsideSpan, isRangeWithinSpan, isSameRange, isTimeInRange, normalizeLocale, orderRange, paginateData, paginateData as paginateTableData, parseDisplayTime, parseISODate, parseISOTime, parseMarkdown, pixel, proportional, provideAstryxLocale, resolveColumnWidths, resolveNavRoot, resolveTimeSurface, resolveWeekStart, selectFiles, shiftTime, slugify, snapToGraphemeBoundary, sortRows, spanDays, toISODate, todayISODate, tokenize, tokenizeAsync, uniqueSlug, useAnnounce, useAstryxLocale, useAstryxMessages, useAsyncSource, useChatLayoutContext, useChatListContext, useChatMessageContext, useChatNewMessages, useChatStreamScroll, useClipboard, useClipboard as useCopyToClipboard, useCoarsePointer, useCombobox, useContextMenu, useContextMenuSize, useControllableState, useDismiss, useDropdownMenuContext, useFocusTrap, useGridRovingFocus, useHotkeys, useImperativeAlertDialog, useImperativeDialog, useItemDescriptionId, useListContext, useListFocus, useLongPress, useMediaQuery, useNumberField, useOverflow, useOverlay, useRestoreFocus, useScrollLock, useSideNavCollapse, useStreamingText, useTableColumnResize, useTableColumnSettings, useTableColumnSettingsState, useTableFilterState, useTableFiltering, useTablePagination, useTableSelection, useTableSelectionState, useTableSortable, useTableSortableState, useToast, useTreeFocus, useTypeahead };
166
+ export { _sfc_main as AlertDialog, _sfc_main$1 as AppShell, _sfc_main$2 as AspectRatio, _sfc_main$3 as Avatar, _sfc_main$4 as AvatarGroup, _sfc_main$5 as AvatarGroupOverflow, _sfc_main$6 as AvatarStatusDot, _sfc_main$7 as Badge, _sfc_main$8 as Banner, _sfc_main$9 as Blockquote, _sfc_main$10 as BottomSheet, _sfc_main$11 as BreadcrumbItem, _sfc_main$12 as Breadcrumbs, _sfc_main$13 as Button, _sfc_main$14 as ButtonGroup, CHAT_MESSAGE_CLASS, _sfc_main$15 as Calendar, _sfc_main$16 as Card, _sfc_main$17 as Carousel, _sfc_main$18 as Center, _sfc_main$19 as ChatLayout, _sfc_main$20 as ChatLayoutScrollButton, _sfc_main$21 as ChatMessage, _sfc_main$22 as ChatMessageBubble, _sfc_main$23 as ChatMessageList, _sfc_main$24 as ChatMessageMetadata, _sfc_main$25 as ChatReasoning, _sfc_main$26 as ChatSystemMessage, _sfc_main$27 as ChatToolCalls, _sfc_main$28 as ChatTypingIndicator, _sfc_main$29 as ChatUnreadDivider, _sfc_main$30 as CheckboxIndicator, _sfc_main$31 as CheckboxInput, _sfc_main$32 as CheckboxList, _sfc_main$33 as CheckboxListItem, _sfc_main$34 as Citation, _sfc_main$35 as ClickableCard, _sfc_main$36 as Code, _sfc_main$37 as CodeBlock, _sfc_main$38 as Collapsible, _sfc_main$39 as CollapsibleGroup, _sfc_main$40 as CommandPalette, _sfc_main$41 as CommandPaletteEmpty, _sfc_main$42 as CommandPaletteFooter, _sfc_main$43 as CommandPaletteGroup, _sfc_main$44 as CommandPaletteInput, _sfc_main$45 as CommandPaletteItem, _sfc_main$46 as CommandPaletteList, _sfc_main$47 as ComplexSelector, _sfc_main$48 as ContextMenu, _sfc_main$49 as ContextMenuDivider, _sfc_main$50 as ContextMenuGroup, _sfc_main$51 as ContextMenuItem, _sfc_main$52 as ContextMenuSubMenu, _sfc_main$53 as DateInput, _sfc_main$54 as DateRangeInput, _sfc_main$55 as DateTimeInput, _sfc_main$56 as Dialog, _sfc_main$57 as DialogHeader, _sfc_main$58 as Divider, _sfc_main$59 as DropdownMenu, _sfc_main$60 as DropdownMenuDivider, _sfc_main$61 as DropdownMenuGroup, _sfc_main$62 as DropdownMenuItem, _sfc_main$63 as EmptyState, _sfc_main$64 as Field, _sfc_main$65 as FieldLabel, _sfc_main$66 as FieldStatus, _sfc_main$67 as FileInput, _sfc_main$68 as FormLayout, _sfc_main$69 as Grid, _sfc_main$70 as GridSpan, HIGHLIGHTED_TOKEN_TYPES, _sfc_main$71 as HStack, _sfc_main$72 as Heading, _sfc_main$73 as HoverCard, ICON_GLYPHS, INTERACTIVE_SELECTORS, _sfc_main$74 as Icon, _sfc_main$75 as IconButton, _sfc_main$76 as InputGroup, _sfc_main$77 as Item, _sfc_main$78 as Kbd, _sfc_main$79 as Layout, _sfc_main$80 as LayoutContent, _sfc_main$81 as LayoutFooter, _sfc_main$82 as LayoutHeader, _sfc_main$83 as LayoutPanel, _sfc_main$84 as Lightbox, _sfc_main$85 as Link, _sfc_main$86 as List, _sfc_main$87 as ListItem, _sfc_main$88 as Markdown, _sfc_main$89 as MediaTheme, _sfc_main$90 as MetadataList, _sfc_main$91 as MetadataListItem, _sfc_main$92 as MobileNav, _sfc_main$93 as MobileNavToggle, _sfc_main$94 as MoreMenu, _sfc_main$95 as MultiSelector, _sfc_main$96 as NavDisclosure, _sfc_main$97 as NavIcon, _sfc_main$98 as NavItem, _sfc_main$99 as NavMenu, _sfc_main$100 as NavMenuItem, _sfc_main$101 as NumberInput, _sfc_main$102 as Outline, _sfc_main$103 as OverflowList, _sfc_main$104 as Overlay, _sfc_main$105 as OverlayScrim, _sfc_main$106 as Pagination, _sfc_main$107 as Popover, _sfc_main$108 as ProgressBar, _sfc_main$109 as Radio, _sfc_main$110 as RadioGroup, _sfc_main$111 as RadioList, _sfc_main$112 as RadioListItem, _sfc_main$113 as ResizeHandle, SELECT_ALL_VALUE, SYNC_TOKENIZE_THRESHOLD, SYNTAX_TOKEN_KEYS, _sfc_main$114 as ScrollableArea, _sfc_main$115 as Section, _sfc_main$116 as SegmentedControl, _sfc_main$117 as SegmentedControlItem, _sfc_main$118 as SelectableCard, _sfc_main$119 as Selector, _sfc_main$120 as SideNav, _sfc_main$121 as SideNavCollapseButton, _sfc_main$122 as SideNavHeading, _sfc_main$123 as SideNavItem, _sfc_main$124 as SideNavSection, _sfc_main$125 as Skeleton, _sfc_main$126 as Slider, _sfc_main$127 as Spinner, _sfc_main$128 as Stack, _sfc_main$129 as StackItem, _sfc_main$130 as StatusDot, _sfc_main$131 as Step, _sfc_main$132 as Stepper, _sfc_main$133 as Switch, _sfc_main$134 as SyntaxTheme, TOKEN_COLORS, _sfc_main$135 as Tab, _sfc_main$136 as TabList, _sfc_main$137 as TabMenu, _sfc_main$138 as Table, _sfc_main$139 as TableBody, _sfc_main$140 as TableCell, _sfc_main$141 as TableFooter, _sfc_main$142 as TableHeader, _sfc_main$143 as TableHeaderCell, _sfc_main$144 as TableRow, _sfc_main$145 as TableSelectionToolbar, _sfc_main$146 as Text, _sfc_main$147 as TextArea, _sfc_main$148 as TextInput, _sfc_main$149 as Theme, _sfc_main$150 as Thumbnail, _sfc_main$151 as TimeInput, _sfc_main$152 as Timer, _sfc_main$153 as Timestamp, _sfc_main$154 as Toast, _sfc_main$155 as ToastViewport, _sfc_main$156 as ToggleButton, _sfc_main$157 as ToggleButtonGroup, _sfc_main$158 as Token, _sfc_main$159 as Tokenizer, _sfc_main$160 as Toolbar, _sfc_main$161 as Tooltip, _sfc_main$162 as TopNav, _sfc_main$163 as TopNavHeading, _sfc_main$164 as TopNavItem, _sfc_main$165 as TopNavMegaMenu, _sfc_main$166 as TopNavMegaMenuFeaturedCard, _sfc_main$167 as TopNavMegaMenuItem, _sfc_main$168 as TopNavMenu, _sfc_main$169 as TreeList, _sfc_main$170 as Typeahead, _sfc_main$171 as VStack, _sfc_main$172 as VisuallyHidden, addMonths, allSyntaxPresets, appShellMobileKey, applyHighlightRanges, applyRangeClick, applyTableFilters, buildMonthGrid, capitalize, catppuccinLatte, catppuccinMocha, cellText, compareISODate, computeOverflow, createStaticSource, darkSyntaxPresets, defineSyntaxTheme, defineTheme, dracula, flatTokensToLines, flattenOptions, formatDateRange, formatDisplayTime, formatFileSize, formatISOTime, formatInstant, formatRelativeTime, formatTooltipLines, generateColumns, getPresentation, githubDark, githubLight, iconGlyphSlug, isDayOutsideSpan, isDefinedTheme, isIconGlyph, isRangeWithinSpan, isSameRange, isTimeInRange, lightSyntaxPresets, monokai, neutralTheme, nord, normalizeLocale, normalizeTokenName, oneDarkPro, oneLight, orderRange, paginateData, paginateData as paginateTableData, parseDisplayTime, parseISODate, parseISOTime, parseMarkdown, percent, pixel, proportional, provideAstryxLocale, resolveColumnWidths, resolveNavRoot, resolveTimeSurface, resolveWeekStart, selectFiles, shiftTime, slugify, snapToGraphemeBoundary, solarizedLight, sortRows, spanDays, toISODate, todayISODate, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, uniqueSlug, useAnnounce, useAppShellMobile, useAstryxLocale, useAstryxMessages, useAsyncSource, useChatLayoutContext, useChatListContext, useChatMessageContext, useChatNewMessages, useChatStreamScroll, useClickableContainer, useClipboard, useClipboard as useCopyToClipboard, useCoarsePointer, useCombobox, useContextMenu, useContextMenuSize, useControllableState, useDismiss, useDropdownMenuContext, useFocusTrap, useGridRovingFocus, useHotkeys, useImperativeAlertDialog, useImperativeDialog, useItemDescriptionId, useLightbox, useListContext, useListFocus, useLongPress, useMediaQuery, useMediaTheme, useNumberField, useOverflow, useOverlay, useResizable, useRestoreFocus, useScrollLock, useScrollOverflow, useScrollableArea, useSideNavCollapse, useStreamingText, useSyntaxTheme, useTableColumnResize, useTableColumnSettings, useTableColumnSettingsState, useTableFilterState, useTableFiltering, useTablePagination, useTableSelection, useTableSelectionState, useTableSortable, useTableSortableState, useTheme, useToast, useTreeFocus, useTypeahead };
@@ -1,2 +1,2 @@
1
- import { a as provideAstryxLocale, c as AstryxMessages, i as normalizeLocale, l as AstryxLocale, n as weekdayNames, o as useAstryxLocale, r as astryxLocaleKey, s as useAstryxMessages, t as formatCalendarMonth } from "../index-CNcQmDrK.js";
1
+ import { a as provideAstryxLocale, c as AstryxMessages, i as normalizeLocale, l as AstryxLocale, n as weekdayNames, o as useAstryxLocale, r as astryxLocaleKey, s as useAstryxMessages, t as formatCalendarMonth } from "../index-DoFCm2Q2.js";
2
2
  export { type AstryxLocale, type AstryxMessages, astryxLocaleKey, formatCalendarMonth, normalizeLocale, provideAstryxLocale, useAstryxLocale, useAstryxMessages, weekdayNames };
@@ -1,3 +1,3 @@
1
+ import { a as useAstryxMessages, i as useAstryxLocale, n as normalizeLocale, r as provideAstryxLocale, t as astryxLocaleKey } from "../context-Dbo22sck.js";
1
2
  import { n as weekdayNames, t as formatCalendarMonth } from "../locale-Cpk_nrLA.js";
2
- import { a as useAstryxMessages, i as useAstryxLocale, n as normalizeLocale, r as provideAstryxLocale, t as astryxLocaleKey } from "../context-BshXcNYX.js";
3
3
  export { astryxLocaleKey, formatCalendarMonth, normalizeLocale, provideAstryxLocale, useAstryxLocale, useAstryxMessages, weekdayNames };
@@ -0,0 +1,14 @@
1
+ import { n as SpacingStep } from "./types-D7QNSqoN.js";
2
+ //#region src/layout/size.d.ts
3
+ type SizeValue = number | string;
4
+ interface PaddingInput {
5
+ padding?: SpacingStep;
6
+ paddingInline?: SpacingStep;
7
+ paddingInlineStart?: SpacingStep;
8
+ paddingInlineEnd?: SpacingStep;
9
+ paddingBlock?: SpacingStep;
10
+ paddingBlockStart?: SpacingStep;
11
+ paddingBlockEnd?: SpacingStep;
12
+ }
13
+ //#endregion
14
+ export { SizeValue as n, PaddingInput as t };
@@ -0,0 +1,79 @@
1
+ //#region src/layout/size.ts
2
+ /** 间距刻度对应的 CSS 变量。数字是没有主题时的回退像素。 */
3
+ const SPACING_VARIABLES = {
4
+ 0: "var(--astryx-spacing-0, 0px)",
5
+ .5: "var(--astryx-spacing-0-5, 2px)",
6
+ 1: "var(--astryx-spacing-1, 4px)",
7
+ 1.5: "var(--astryx-spacing-1-5, 6px)",
8
+ 2: "var(--astryx-spacing-2, 8px)",
9
+ 3: "var(--astryx-spacing-3, 12px)",
10
+ 4: "var(--astryx-spacing-4, 16px)",
11
+ 5: "var(--astryx-spacing-5, 20px)",
12
+ 6: "var(--astryx-spacing-6, 24px)",
13
+ 8: "var(--astryx-spacing-8, 32px)",
14
+ 10: "var(--astryx-spacing-10, 40px)"
15
+ };
16
+ function formatSize(value) {
17
+ if (value == null) return void 0;
18
+ return typeof value === "number" ? `${value}px` : value;
19
+ }
20
+ function spacingVariable(step) {
21
+ return step == null ? void 0 : SPACING_VARIABLES[step];
22
+ }
23
+ /**
24
+ * 把统一内边距和各边覆盖收成四条边。
25
+ * 什么都没传时返回 null,调用方继续用主题默认值。
26
+ */
27
+ function resolvePadding(input, fallback) {
28
+ const base = input.padding ?? fallback;
29
+ if (base == null && input.paddingInline == null && input.paddingInlineStart == null && input.paddingInlineEnd == null && input.paddingBlock == null && input.paddingBlockStart == null && input.paddingBlockEnd == null) return null;
30
+ const inline = input.paddingInline ?? base;
31
+ const block = input.paddingBlock ?? base;
32
+ return {
33
+ inlineStart: input.paddingInlineStart ?? inline ?? 0,
34
+ inlineEnd: input.paddingInlineEnd ?? inline ?? 0,
35
+ blockStart: input.paddingBlockStart ?? block ?? 0,
36
+ blockEnd: input.paddingBlockEnd ?? block ?? 0
37
+ };
38
+ }
39
+ /**
40
+ * 只写出被覆盖的边。没写的边继续用样式表里的默认值。
41
+ * 优先级和原版一样:单边 > 轴向 > 统一 padding。
42
+ */
43
+ function spacingEdgeVars(prefix, input) {
44
+ const style = {};
45
+ const set = (edge, step) => {
46
+ if (step != null) style[`${prefix}-${edge}`] = SPACING_VARIABLES[step];
47
+ };
48
+ if (input.padding != null) {
49
+ set("inline-start", input.padding);
50
+ set("inline-end", input.padding);
51
+ set("block-start", input.padding);
52
+ set("block-end", input.padding);
53
+ }
54
+ if (input.paddingInline != null) {
55
+ set("inline-start", input.paddingInline);
56
+ set("inline-end", input.paddingInline);
57
+ }
58
+ if (input.paddingBlock != null) {
59
+ set("block-start", input.paddingBlock);
60
+ set("block-end", input.paddingBlock);
61
+ }
62
+ set("inline-start", input.paddingInlineStart);
63
+ set("inline-end", input.paddingInlineEnd);
64
+ set("block-start", input.paddingBlockStart);
65
+ set("block-end", input.paddingBlockEnd);
66
+ return style;
67
+ }
68
+ /**
69
+ * 百分比和内在宽度没法参与 contentWidth 的居中减法,走约束宽度那条路。
70
+ * 裸的 var() 也走这条路,因为解析结果可能不是长度。
71
+ */
72
+ function supportsInternalContentWidth(width) {
73
+ if (width == null || typeof width === "number") return true;
74
+ const value = width.trim().toLowerCase();
75
+ if (value.includes("%")) return false;
76
+ return value === "0" || /^-?(?:\d+(?:\.\d+)?|\.\d+)[a-z]+$/.test(value) || /^(?:calc|min|max|clamp)\(/.test(value);
77
+ }
78
+ //#endregion
79
+ export { supportsInternalContentWidth as a, spacingVariable as i, resolvePadding as n, spacingEdgeVars as r, formatSize as t };
@@ -0,0 +1,38 @@
1
+ //#region src/Code/syntaxTheme.d.ts
2
+ declare const SYNTAX_TOKEN_KEYS: readonly ["keyword", "string", "comment", "number", "function", "type", "variable", "operator", "constant", "tag", "attribute", "property", "punctuation", "background"];
3
+ type SyntaxTokenKey = (typeof SYNTAX_TOKEN_KEYS)[number];
4
+ interface SyntaxThemeTokens {
5
+ keyword: string;
6
+ string: string;
7
+ comment: string;
8
+ number: string;
9
+ function: string;
10
+ type: string;
11
+ variable: string;
12
+ operator: string;
13
+ constant: string;
14
+ tag: string;
15
+ attribute: string;
16
+ property: string;
17
+ punctuation: string;
18
+ background: string;
19
+ }
20
+ /** A string is used as written. A tuple is the light stop, then the dark stop. */
21
+ type SyntaxTokenValue = string | readonly [string, string];
22
+ interface SyntaxThemeDefinition {
23
+ name: string;
24
+ tokens: SyntaxThemeTokens;
25
+ }
26
+ interface SyntaxThemeInput {
27
+ name: string;
28
+ tokens: { [K in keyof SyntaxThemeTokens]: SyntaxTokenValue; };
29
+ }
30
+ /**
31
+ * Create a syntax theme. All 14 tokens are required.
32
+ * `[light, dark]` tuples are stored as `light-dark()`.
33
+ */
34
+ declare function defineSyntaxTheme(theme: SyntaxThemeInput): SyntaxThemeDefinition;
35
+ /** GitHub Dark (GitHub Primer team), MIT. */
36
+ declare const githubDark: SyntaxThemeDefinition;
37
+ //#endregion
38
+ export { SyntaxTokenKey as a, githubDark as c, SyntaxThemeTokens as i, SyntaxThemeDefinition as n, SyntaxTokenValue as o, SyntaxThemeInput as r, defineSyntaxTheme as s, SYNTAX_TOKEN_KEYS as t };
@@ -0,0 +1,75 @@
1
+ //#region src/Code/syntaxTheme.ts
2
+ const SYNTAX_TOKEN_KEYS = [
3
+ "keyword",
4
+ "string",
5
+ "comment",
6
+ "number",
7
+ "function",
8
+ "type",
9
+ "variable",
10
+ "operator",
11
+ "constant",
12
+ "tag",
13
+ "attribute",
14
+ "property",
15
+ "punctuation",
16
+ "background"
17
+ ];
18
+ function resolveSyntaxToken(value) {
19
+ if (typeof value === "string") return value;
20
+ return `light-dark(${value[0]}, ${value[1]})`;
21
+ }
22
+ /**
23
+ * Create a syntax theme. All 14 tokens are required.
24
+ * `[light, dark]` tuples are stored as `light-dark()`.
25
+ */
26
+ function defineSyntaxTheme(theme) {
27
+ const missing = SYNTAX_TOKEN_KEYS.filter((key) => theme.tokens[key] == null);
28
+ if (missing.length > 0 && typeof console !== "undefined") console.warn(`[Astryx] defineSyntaxTheme("${theme.name}"): missing tokens: ${missing.join(", ")}. All 14 syntax tokens are required.`);
29
+ const tokens = {};
30
+ for (const key of SYNTAX_TOKEN_KEYS) {
31
+ const value = theme.tokens[key];
32
+ if (value != null) tokens[key] = resolveSyntaxToken(value);
33
+ }
34
+ return {
35
+ name: theme.name,
36
+ tokens
37
+ };
38
+ }
39
+ /** GitHub Dark (GitHub Primer team), MIT. */
40
+ const githubDark = defineSyntaxTheme({
41
+ name: "github-dark",
42
+ tokens: {
43
+ keyword: "#ff7b72",
44
+ string: "#a5d6ff",
45
+ comment: "#8b949e",
46
+ number: "#79c0ff",
47
+ function: "#d2a8ff",
48
+ type: "#ffa657",
49
+ variable: "#e6edf3",
50
+ operator: "#ff7b72",
51
+ constant: "#79c0ff",
52
+ tag: "#7ee787",
53
+ attribute: "#79c0ff",
54
+ property: "#79c0ff",
55
+ punctuation: "#c9d1d9",
56
+ background: "#0d1117"
57
+ }
58
+ });
59
+ function syntaxThemeStyle(theme) {
60
+ const style = { "--astryx-code-block-background": theme.tokens.background };
61
+ const channels = theme.tokens.background.replace("#", "");
62
+ const expanded = channels.length === 3 ? channels.split("").map((part) => part + part).join("") : channels;
63
+ const value = Number.parseInt(expanded, 16);
64
+ const red = value >> 16 & 255;
65
+ const green = value >> 8 & 255;
66
+ const blue = value & 255;
67
+ if ((red * 299 + green * 587 + blue * 114) / 1e3 < 140) style["--astryx-code-block-border"] = "rgb(255 255 255 / 12%)";
68
+ for (const [key, color] of Object.entries(theme.tokens)) {
69
+ if (key === "background") continue;
70
+ style[`--astryx-code-syntax-${key}`] = color;
71
+ }
72
+ return style;
73
+ }
74
+ //#endregion
75
+ export { syntaxThemeStyle as i, defineSyntaxTheme as n, githubDark as r, SYNTAX_TOKEN_KEYS as t };
@@ -0,0 +1,65 @@
1
+ //#region src/Text/types.d.ts
2
+ type TextType = 'body' | 'large' | 'label' | 'supporting' | 'code' | 'display-1' | 'display-2' | 'display-3';
3
+ type TextSize = 'sm' | 'md' | 'lg' | 'xl';
4
+ type TextColor = 'primary' | 'secondary' | 'accent' | 'disabled' | 'placeholder' | 'inherit';
5
+ type TextWeight = 'regular' | 'normal' | 'medium' | 'semibold' | 'bold';
6
+ type TextWrap = 'wrap' | 'nowrap' | 'balance' | 'pretty';
7
+ type TextWordBreak = 'normal' | 'break-word' | 'break-all';
8
+ type TextDisplay = 'block' | 'inline';
9
+ type TextAs = 'span' | 'p' | 'div' | 'label';
10
+ interface TextProps {
11
+ /**
12
+ * Semantic text type. Determines size, weight, and line-height.
13
+ * @default 'body'
14
+ */
15
+ type?: TextType;
16
+ /**
17
+ * Explicit font size override.
18
+ */
19
+ size?: TextSize;
20
+ /**
21
+ * Text color.
22
+ * @default 'primary'
23
+ */
24
+ color?: TextColor;
25
+ /**
26
+ * Font weight override. `normal` is the same weight as `regular`.
27
+ */
28
+ weight?: TextWeight;
29
+ /**
30
+ * CSS `text-wrap` behavior.
31
+ */
32
+ textWrap?: TextWrap;
33
+ /**
34
+ * How long unbroken strings break inside a constrained width.
35
+ */
36
+ wordBreak?: TextWordBreak;
37
+ /**
38
+ * Draws a line through the text.
39
+ * @default false
40
+ */
41
+ hasStrikethrough?: boolean;
42
+ /**
43
+ * Uses tabular figures so digits line up across rows.
44
+ * @default false
45
+ */
46
+ hasTabularNumbers?: boolean;
47
+ /**
48
+ * Display type.
49
+ * @default 'inline'
50
+ */
51
+ display?: TextDisplay;
52
+ /**
53
+ * HTML element to render.
54
+ * @default 'span'
55
+ */
56
+ as?: TextAs;
57
+ /**
58
+ * Maximum lines before truncation. 0 means no truncation.
59
+ * A positive value forces block layout so the ellipsis has a width.
60
+ * @default 0
61
+ */
62
+ maxLines?: number;
63
+ }
64
+ //#endregion
65
+ export { TextSize as a, TextWordBreak as c, TextProps as i, TextWrap as l, TextColor as n, TextType as o, TextDisplay as r, TextWeight as s, TextAs as t };