@astryx-vue/core 0.1.3 → 0.2.1

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 (269) 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.js +1 -1
  4. package/dist/{AppShell-b0PWt9Fz.js → AppShell-1wNIEtK_.js} +2 -2
  5. package/dist/Avatar/index.d.ts +1 -1
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/Avatar-jmHInHwj.js +244 -0
  8. package/dist/AvatarGroup/index.d.ts +1 -1
  9. package/dist/AvatarGroup/index.js +1 -1
  10. package/dist/{AvatarGroup-CZcgAMjM.js → AvatarGroup-QyzSrpYA.js} +8 -7
  11. package/dist/Badge/index.d.ts +1 -1
  12. package/dist/Badge/index.js +1 -1
  13. package/dist/Badge-CjDQPF5g.js +30 -0
  14. package/dist/Banner/index.d.ts +1 -1
  15. package/dist/Breadcrumbs/index.d.ts +2 -2
  16. package/dist/Breadcrumbs/index.js +1 -1
  17. package/dist/{Breadcrumbs-C3YZFQ9w.js → Breadcrumbs-C97HmjkC.js} +45 -11
  18. package/dist/Button/index.d.ts +1 -1
  19. package/dist/ButtonGroup/index.d.ts +1 -1
  20. package/dist/Calendar/index.d.ts +2 -2
  21. package/dist/Calendar/index.js +1 -1
  22. package/dist/Calendar-DqC3EDN1.js +352 -0
  23. package/dist/Card/index.d.ts +1 -1
  24. package/dist/Carousel/index.d.ts +2 -0
  25. package/dist/Carousel/index.js +2 -0
  26. package/dist/Carousel-BGUnskjo.js +363 -0
  27. package/dist/Chat/index.js +1 -1
  28. package/dist/{Chat-C1aWl5V3.js → Chat-DCjXRiOF.js} +8 -8
  29. package/dist/CheckboxInput/index.d.ts +1 -1
  30. package/dist/CheckboxList/index.d.ts +1 -1
  31. package/dist/CheckboxList/index.js +1 -1
  32. package/dist/Citation/index.js +1 -1
  33. package/dist/{Citation-C1X0Rde8.js → Citation-DunoAqVH.js} +2 -2
  34. package/dist/ClickableCard/index.d.ts +1 -1
  35. package/dist/Code/index.d.ts +3 -2
  36. package/dist/Code/index.js +4 -2
  37. package/dist/Code-yb_KOFtJ.js +299 -0
  38. package/dist/{CodeBlock-BQdooQy2.js → CodeBlock-CAF-VJnh.js} +8 -2
  39. package/dist/Collapsible/index.js +1 -1
  40. package/dist/{Collapsible-BS9ctCQV.js → Collapsible-DvMiYJp7.js} +1 -1
  41. package/dist/CommandPalette/index.js +1 -1
  42. package/dist/{CommandPalette-u5h_E05P.js → CommandPalette-xfm9ldUI.js} +1 -1
  43. package/dist/ComplexSelector/index.d.ts +1 -1
  44. package/dist/ComplexSelector/index.js +1 -1
  45. package/dist/{ComplexSelector-BHmGWml0.js → ComplexSelector-B6lBTRhP.js} +2 -2
  46. package/dist/ContextMenu/index.d.ts +2 -2
  47. package/dist/ContextMenu/index.js +1 -1
  48. package/dist/{ContextMenu-dA-ppaRQ.js → ContextMenu-DUkED3Z3.js} +101 -63
  49. package/dist/DateInput/index.d.ts +2 -2
  50. package/dist/DateInput/index.js +1 -1
  51. package/dist/DateInput-Crcg-CCj.js +376 -0
  52. package/dist/DateRangeInput/index.d.ts +1 -1
  53. package/dist/DateRangeInput/index.js +1 -1
  54. package/dist/{DateRangeInput-fmQlr_A7.js → DateRangeInput-e9KSxBBK.js} +2 -2
  55. package/dist/DateTimeInput/index.d.ts +1 -1
  56. package/dist/DateTimeInput/index.js +1 -1
  57. package/dist/{DateTimeInput-Bs1JmcIp.js → DateTimeInput-fSOfuLex.js} +5 -3
  58. package/dist/DropdownMenu/index.d.ts +3 -2
  59. package/dist/DropdownMenu/index.js +3 -2
  60. package/dist/{DropdownMenu-B0gogrvG.js → DropdownMenu-8G0B1UND.js} +63 -16
  61. package/dist/DropdownMenu-XvW4BJob.js +164 -0
  62. package/dist/EmptyState/index.js +1 -1
  63. package/dist/{EmptyState-Bhlqgsg4.js → EmptyState-CUJdTYKV.js} +1 -1
  64. package/dist/FileInput/index.d.ts +1 -1
  65. package/dist/FileInput/index.js +1 -1
  66. package/dist/{FileInput-CmAfOpkA.js → FileInput-D-fchyQH.js} +2 -2
  67. package/dist/Icon/index.d.ts +4 -0
  68. package/dist/Icon/index.js +3 -0
  69. package/dist/Icon/plugin.d.ts +45 -0
  70. package/dist/Icon/plugin.js +177 -0
  71. package/dist/Icon-Bku25g_K.js +193 -0
  72. package/dist/Lightbox/index.d.ts +2 -0
  73. package/dist/Lightbox/index.js +2 -0
  74. package/dist/Lightbox-uuVGgHxW.js +384 -0
  75. package/dist/Link/index.d.ts +1 -1
  76. package/dist/Link/index.js +1 -1
  77. package/dist/Link-DqdQZ37C.js +141 -0
  78. package/dist/List/index.d.ts +1 -1
  79. package/dist/Markdown/index.js +1 -1
  80. package/dist/{Markdown-CwtLr3f_.js → Markdown-DLICa3db.js} +3 -3
  81. package/dist/MetadataList/index.d.ts +1 -1
  82. package/dist/MetadataList/index.js +1 -1
  83. package/dist/{MetadataList-DlXQTLog.js → MetadataList-h492rqEN.js} +1 -1
  84. package/dist/MobileNav/index.js +1 -1
  85. package/dist/{MobileNavToggle-CgQamG6E.js → MobileNavToggle-BMj3Wtuq.js} +1 -1
  86. package/dist/MoreMenu/index.d.ts +1 -1
  87. package/dist/MoreMenu/index.js +1 -1
  88. package/dist/{MoreMenu-BXL6Dqsu.js → MoreMenu-DkYi5az5.js} +2 -2
  89. package/dist/MultiSelector/index.d.ts +1 -1
  90. package/dist/MultiSelector/index.js +1 -1
  91. package/dist/{MultiSelector-DT8ZccMI.js → MultiSelector-C2IS-EaU.js} +2 -2
  92. package/dist/NavItem/index.d.ts +1 -1
  93. package/dist/NavMenu/index.d.ts +1 -1
  94. package/dist/NavMenu/index.js +1 -1
  95. package/dist/{NavMenuItem-mzNQESpB.js → NavMenuItem-B-k7olt5.js} +2 -1
  96. package/dist/NumberInput/index.d.ts +2 -2
  97. package/dist/NumberInput/index.js +1 -1
  98. package/dist/NumberInput-CjfAsFwj.js +210 -0
  99. package/dist/Outline/index.d.ts +2 -0
  100. package/dist/Outline/index.js +2 -0
  101. package/dist/Outline-BTmrtvXR.js +325 -0
  102. package/dist/OverflowList/index.d.ts +1 -1
  103. package/dist/OverflowList/index.js +1 -1
  104. package/dist/{OverflowList-zXg3g6fy.js → OverflowList-CRE8BE7V.js} +2 -2
  105. package/dist/Overlay/index.d.ts +1 -1
  106. package/dist/Pagination/index.d.ts +2 -2
  107. package/dist/Pagination/index.js +1 -1
  108. package/dist/{Pagination-DXfgMUKJ.js → Pagination-BpGXPmc7.js} +76 -22
  109. package/dist/Popover/index.d.ts +1 -1
  110. package/dist/ProgressBar/index.d.ts +1 -1
  111. package/dist/ProgressBar/index.js +1 -1
  112. package/dist/{ProgressBar-ChDp-7oe.js → ProgressBar-DO9Chic6.js} +31 -11
  113. package/dist/Radio/index.d.ts +1 -1
  114. package/dist/RadioList/index.d.ts +1 -1
  115. package/dist/Resizable/index.js +1 -1
  116. package/dist/{Resizable-BuGKvU9I.js → Resizable-CE8XQDL2.js} +1 -1
  117. package/dist/ScrollableArea/index.d.ts +1 -1
  118. package/dist/SegmentedControl/index.d.ts +1 -1
  119. package/dist/SelectableCard/index.d.ts +1 -1
  120. package/dist/Selector/index.d.ts +2 -2
  121. package/dist/Selector/index.js +1 -1
  122. package/dist/Selector-DkJOLZSR.js +468 -0
  123. package/dist/SideNav/index.d.ts +1 -1
  124. package/dist/SideNav/index.js +1 -1
  125. package/dist/{SideNav-Cdrigq2A.js → SideNav-DcDWBnXJ.js} +17 -17
  126. package/dist/Stepper/index.d.ts +1 -1
  127. package/dist/Stepper/index.js +1 -1
  128. package/dist/{Stepper-DxmLfh8O.js → Stepper-DZKaqEoz.js} +1 -1
  129. package/dist/Switch/index.d.ts +1 -1
  130. package/dist/TabList/index.d.ts +1 -1
  131. package/dist/TabList/index.js +1 -1
  132. package/dist/{TabList-C411uNQU.js → TabList-hm06QPiW.js} +10 -3
  133. package/dist/Table/index.js +1 -1
  134. package/dist/{Table-7qRmlIQd.js → Table-DwehtMap.js} +4 -4
  135. package/dist/Text/index.d.ts +3 -2
  136. package/dist/Text/index.js +1 -1
  137. package/dist/{Text-CKd7e3gK.js → Text-BHVghsWo.js} +12 -2
  138. package/dist/TextArea/index.d.ts +1 -1
  139. package/dist/TextArea/index.js +1 -1
  140. package/dist/{TextArea-Cv9UVbzS.js → TextArea-CPwSytdO.js} +12 -6
  141. package/dist/TextInput/index.d.ts +1 -1
  142. package/dist/Theme/index.d.ts +2 -0
  143. package/dist/Theme/index.js +2 -0
  144. package/dist/Theme-BuUiiJNr.js +429 -0
  145. package/dist/Thumbnail/index.js +1 -1
  146. package/dist/{Thumbnail-BWVzLLyI.js → Thumbnail-CAOYds8t.js} +11 -11
  147. package/dist/{TimeField-l3QzU6vC.js → TimeField-BGbxCoKU.js} +2 -2
  148. package/dist/TimeInput/index.d.ts +1 -1
  149. package/dist/TimeInput/index.js +1 -1
  150. package/dist/{TimeInput-OkgX-xbQ.js → TimeInput-DJP3l4ZS.js} +1 -1
  151. package/dist/Timer/index.d.ts +2 -0
  152. package/dist/Timer/index.js +2 -0
  153. package/dist/Timer-B7GV6hqd.js +134 -0
  154. package/dist/Timestamp/index.d.ts +1 -1
  155. package/dist/Timestamp/index.js +2 -1
  156. package/dist/{Timestamp-DUoP9ari.js → Timestamp-BzRp8uWc.js} +5 -122
  157. package/dist/Toast/index.d.ts +2 -2
  158. package/dist/Toast/index.js +1 -1
  159. package/dist/{Toast-BKXPvEMp.js → Toast-C2ML-bmi.js} +37 -7
  160. package/dist/ToggleButton/index.d.ts +1 -1
  161. package/dist/Token/index.d.ts +1 -1
  162. package/dist/Token/index.js +1 -1
  163. package/dist/{Token-C4KD0fZD.js → Token-CjocuhzE.js} +1 -1
  164. package/dist/Tokenizer/index.d.ts +1 -1
  165. package/dist/Tokenizer/index.js +1 -1
  166. package/dist/{Tokenizer-BA8sTMPZ.js → Tokenizer-mYES5SPM.js} +2 -2
  167. package/dist/Toolbar/index.d.ts +1 -1
  168. package/dist/TopNav/index.d.ts +1 -1
  169. package/dist/TopNav/index.js +1 -1
  170. package/dist/{TopNav-CZokS7E_.js → TopNav-C2t6JkZb.js} +4 -4
  171. package/dist/TreeList/index.d.ts +1 -1
  172. package/dist/TreeList/index.js +1 -1
  173. package/dist/{TreeList-CIbAGOMf.js → TreeList-THJ0KamE.js} +3 -3
  174. package/dist/Typeahead/index.d.ts +1 -1
  175. package/dist/Typeahead/index.js +1 -1
  176. package/dist/{Typeahead-DIw-K4aa.js → Typeahead-D7VnvRpK.js} +2 -2
  177. package/dist/{context-D6ECRdc5.js → context-DzcK4T_C.js} +58 -2
  178. package/dist/context-O2Vb8cJl.js +57 -0
  179. package/dist/formatInstant-BDWUIxS7.js +119 -0
  180. package/dist/index-1AZ4KZhg.d.ts +96 -0
  181. package/dist/index-3p2BDVHq.d.ts +31 -0
  182. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  183. package/dist/{index-FEy8qFSD.d.ts → index-BHqRH7QW.d.ts} +2 -2
  184. package/dist/{index-CTolyeii.d.ts → index-BLOEjvaM.d.ts} +16 -2
  185. package/dist/index-BMrggCw-.d.ts +52 -0
  186. package/dist/{index-z4p2k9VR.d.ts → index-Bgv4ZmBl.d.ts} +20 -2
  187. package/dist/{index-BoRIw-bP.d.ts → index-Bt7ewoz2.d.ts} +32 -2
  188. package/dist/{index-CjtAH60j.d.ts → index-Bu0Zd1uw.d.ts} +1 -1
  189. package/dist/{index-uQrLBZfF.d.ts → index-Bu3oXIIS.d.ts} +24 -0
  190. package/dist/{index-CX97hlld.d.ts → index-CBym0hSq.d.ts} +2 -19
  191. package/dist/index-CJlBAXwj.d.ts +100 -0
  192. package/dist/{index-DT9S92sh.d.ts → index-CNjbOgty.d.ts} +15 -0
  193. package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
  194. package/dist/index-CRizexSC.d.ts +147 -0
  195. package/dist/{index-DYChvBOM.d.ts → index-Clmz00IK.d.ts} +31 -0
  196. package/dist/index-Cm_TiLXU.d.ts +22 -0
  197. package/dist/index-Cn-sSds-.d.ts +68 -0
  198. package/dist/index-CsVS37na.d.ts +81 -0
  199. package/dist/{index-DRmb-oUa.d.ts → index-CuFLztiI.d.ts} +6 -1
  200. package/dist/{index-CT8KEpec.d.ts → index-D0TlUOtG.d.ts} +1 -1
  201. package/dist/{index-fa72tWIU.d.ts → index-D2bSSSBP.d.ts} +1 -1
  202. package/dist/{index-2u4l3wq8.d.ts → index-DAiGhkNZ.d.ts} +15 -2
  203. package/dist/{index-DGNqi2za.d.ts → index-DQAnGHu7.d.ts} +5 -5
  204. package/dist/{index-BfOtLyNH.d.ts → index-D_nYxnNv.d.ts} +1 -1
  205. package/dist/{index-Df2YvC8o.d.ts → index-DeOftUMq.d.ts} +191 -75
  206. package/dist/{index-DXDGk38y.d.ts → index-Dg3ZmwEg.d.ts} +11 -0
  207. package/dist/{index-BiMGXtD-.d.ts → index-DimuSES0.d.ts} +14 -1
  208. package/dist/{index-C_2Z65Rp.d.ts → index-DnEh-HA0.d.ts} +1 -1
  209. package/dist/{index-D-ZuubCK.d.ts → index-DnSrjbjP.d.ts} +1 -1
  210. package/dist/{index-mQ6EPmaG.d.ts → index-DsyKhauk.d.ts} +78 -9
  211. package/dist/{index-C6RecznD.d.ts → index-I4J7gwa1.d.ts} +51 -9
  212. package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
  213. package/dist/{index-B4OOtNP8.d.ts → index-Z_onS2lR.d.ts} +1 -1
  214. package/dist/{index-CVn0GBdB.d.ts → index-cG1E0U2s.d.ts} +1 -1
  215. package/dist/{index-DEeJowZf.d.ts → index-cGagYM1g.d.ts} +15 -2
  216. package/dist/{index-Ck8qy6Rf.d.ts → index-c_TaW8mM.d.ts} +24 -2
  217. package/dist/{index-Bqb_Fyju.d.ts → index-jdjcb3Js.d.ts} +2 -2
  218. package/dist/index.d.ts +78 -68
  219. package/dist/index.js +107 -96
  220. package/dist/locale/index.d.ts +1 -1
  221. package/dist/locale/index.js +1 -1
  222. package/dist/registry-B1ObuP--.d.ts +45 -0
  223. package/dist/registry-C7OZb0PJ.js +135 -0
  224. package/dist/syntaxTheme-Bcs1YMF7.d.ts +38 -0
  225. package/dist/syntaxTheme-ClpWALZX.js +75 -0
  226. package/dist/types-BKcxXW--.d.ts +114 -0
  227. package/dist/types-Bt-lSgYX.d.ts +65 -0
  228. package/dist/{index-B8MbfMwV.d.ts → types-DDAAT1Xd.d.ts} +36 -82
  229. package/package.json +30 -1
  230. package/styles/avatar.css +14 -0
  231. package/styles/badge.css +8 -0
  232. package/styles/breadcrumbs.css +6 -1
  233. package/styles/button.css +13 -0
  234. package/styles/calendar.css +16 -0
  235. package/styles/card.css +2 -0
  236. package/styles/carousel.css +120 -0
  237. package/styles/chat.css +5 -2
  238. package/styles/dropdown-menu.css +11 -0
  239. package/styles/heading.css +6 -2
  240. package/styles/icon.css +38 -8
  241. package/styles/lightbox.css +144 -0
  242. package/styles/link.css +5 -0
  243. package/styles/media-theme.css +51 -0
  244. package/styles/number-input.css +22 -0
  245. package/styles/outline.css +124 -0
  246. package/styles/pagination.css +45 -1
  247. package/styles/progress-bar.css +4 -0
  248. package/styles/selector.css +58 -0
  249. package/styles/tab-list.css +15 -0
  250. package/styles/text-area.css +17 -0
  251. package/styles/text-input.css +5 -0
  252. package/styles/text.css +63 -14
  253. package/styles/theme.css +29 -0
  254. package/styles/timer.css +34 -0
  255. package/styles/toast.css +7 -0
  256. package/styles/toolbar.css +11 -0
  257. package/styles.css +6 -0
  258. package/dist/Avatar-5s3HSrtN.js +0 -136
  259. package/dist/Badge-Ba0EwsTj.js +0 -19
  260. package/dist/Calendar-CYhGDT6f.js +0 -277
  261. package/dist/DateInput-D2ErjXYO.js +0 -250
  262. package/dist/Icon-5MdZQ18k.js +0 -86
  263. package/dist/Link-CprjOuTI.js +0 -92
  264. package/dist/NumberInput-DspJO6z6.js +0 -147
  265. package/dist/Selector-DlZpQh42.js +0 -325
  266. package/dist/index-BzqRns96.d.ts +0 -64
  267. package/dist/index-ZJyk8RtQ.d.ts +0 -68
  268. package/dist/{CheckboxList-EsIEXjK_.js → CheckboxList-BbCPiend.js} +1 -1
  269. package/dist/{index-4FM5lQdV.d.ts → index-BUXNRekN.d.ts} +1 -1
@@ -1,5 +1,12 @@
1
+ import { Component } from "vue";
1
2
  //#region src/Toast/types.d.ts
2
3
  type ToastType = 'info' | 'success' | 'warning' | 'error';
4
+ /**
5
+ * What happens when a new toast reuses a `uniqueID` that is already on screen.
6
+ *
7
+ * `overwrite` replaces that toast in place. `ignore` drops the new toast.
8
+ */
9
+ type ToastCollisionBehavior = 'ignore' | 'overwrite';
3
10
  interface ToastOptions {
4
11
  /**
5
12
  * Visual type of the toast.
@@ -20,9 +27,31 @@ interface ToastOptions {
20
27
  * @default 5000
21
28
  */
22
29
  duration?: number;
30
+ /**
31
+ * Identity shared by toasts that should collapse into one. A later toast with
32
+ * the same id overwrites the visible one, unless `collisionBehavior` is
33
+ * `ignore`.
34
+ */
35
+ uniqueID?: string;
36
+ /**
37
+ * How a `uniqueID` clash is resolved.
38
+ * @default 'overwrite'
39
+ */
40
+ collisionBehavior?: ToastCollisionBehavior;
41
+ /**
42
+ * Trailing action rendered after the message, such as an undo button.
43
+ * Pass a component; for a one-off render, pass a function component.
44
+ */
45
+ endContent?: Component;
23
46
  }
24
- interface ToastItem extends Required<ToastOptions> {
47
+ interface ToastItem {
25
48
  id: string;
49
+ type: ToastType;
50
+ body: string;
51
+ autoClose: boolean;
52
+ duration: number;
53
+ uniqueID?: string;
54
+ endContent?: Component;
26
55
  /**
27
56
  * True once the toast has been asked to close. The toast stays mounted so it
28
57
  * can play its exit transition, then leaves the store.
@@ -41,6 +70,7 @@ type __VLS_Props$1 = ToastOptions & {
41
70
  };
42
71
  type __VLS_Slots = {
43
72
  default: () => unknown;
73
+ end: () => unknown;
44
74
  };
45
75
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props$1, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
46
76
  close: () => any;
@@ -86,4 +116,4 @@ interface UseToastReturn {
86
116
  }
87
117
  declare function useToast(): UseToastReturn;
88
118
  //#endregion
89
- export { ToastOptions as a, ToastItem as i, _default as n, ToastPlacement as o, _default$1 as r, ToastType as s, useToast as t };
119
+ export { ToastItem as a, ToastType as c, ToastCollisionBehavior as i, _default as n, ToastOptions as o, _default$1 as r, ToastPlacement as s, useToast as t };
@@ -18,8 +18,8 @@ declare const __VLS_base: import("vue").DefineComponent<PopoverProps, {}, {}, {}
18
18
  isOpen: boolean;
19
19
  placement: LayerPlacement;
20
20
  alignment: LayerAlignment;
21
- hasAutoFocus: boolean;
22
21
  isEnabled: boolean;
22
+ hasAutoFocus: boolean;
23
23
  role: PopoverRole;
24
24
  isModal: boolean;
25
25
  hasCloseButton: boolean;
@@ -32,6 +32,25 @@ interface AvatarProps {
32
32
  * The primary image source for the avatar.
33
33
  */
34
34
  src?: string;
35
+ /**
36
+ * When set, the avatar renders as a link.
37
+ */
38
+ href?: string;
39
+ /**
40
+ * HTML target for the link. Only applies when `href` is set.
41
+ */
42
+ target?: string;
43
+ /**
44
+ * HTML rel for the link. `noopener noreferrer` is added when `target` is `_blank`.
45
+ */
46
+ rel?: string;
47
+ /**
48
+ * Hover and focus tooltip.
49
+ *
50
+ * `true` (default) shows `name`. A string shows that text instead. `false` turns the tooltip off.
51
+ * @default true
52
+ */
53
+ tooltip?: boolean | string;
35
54
  }
36
55
  type AvatarStatusDotVariant = 'neutral' | 'info' | 'success' | 'warning' | 'error';
37
56
  interface AvatarStatusDotProps {
@@ -40,6 +59,10 @@ interface AvatarStatusDotProps {
40
59
  * @default 'neutral'
41
60
  */
42
61
  variant?: AvatarStatusDotVariant;
62
+ /**
63
+ * Accessible name for the status. When omitted the dot is hidden from assistive technology.
64
+ */
65
+ label?: string;
43
66
  }
44
67
  //#endregion
45
68
  //#region src/Avatar/Avatar.vue.d.ts
@@ -53,6 +76,7 @@ declare const __VLS_base: import("vue").DefineComponent<AvatarProps, {}, {}, {},
53
76
  onError?: ((event: Event) => any) | undefined;
54
77
  }>, {
55
78
  size: AvatarSize;
79
+ tooltip: string | boolean;
56
80
  shape: AvatarShape;
57
81
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
58
82
  declare const __VLS_export$1: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,25 +1,8 @@
1
1
  import { s as ButtonSize } from "./types-WlmsNL1I.js";
2
2
  import { l as FieldStatusVariant, o as FieldStatusInput } from "./types-3eXh_5os.js";
3
+ import { t as ExtendedIconName } from "./types-BKcxXW--.js";
3
4
  import { r as PopoverPlacement, t as PopoverAlignment } from "./types-Db3Owy8Q.js";
4
- import { Component, Ref, VNode, VNodeChild } from "vue";
5
- //#region src/Icon/types.d.ts
6
- /**
7
- * The semantic names of the artwork astryx-vue keeps for its own chrome.
8
- *
9
- * A name describes what the icon is for, not one particular drawing, so a theme
10
- * can replace the artwork with one declaration. Applications never pass these
11
- * names: the artwork is a library implementation detail, and a `icon` prop or
12
- * slot takes a CSS icon class or the application's own component instead.
13
- */
14
- type IconName = 'chevronDown' | 'chevronLeft' | 'chevronRight' | 'check' | 'moreHorizontal' | 'copy' | 'calendar' | 'clock' | 'upload' | 'arrowUp' | 'arrowDown' | 'close' | 'funnel' | 'image';
15
- /**
16
- * A built-in name, or any other string.
17
- *
18
- * The `(string & {})` intersection keeps the built-in names available for
19
- * autocomplete while allowing keys contributed by a component or application.
20
- */
21
- type ExtendedIconName = IconName | (string & {});
22
- //#endregion
5
+ import { Component, Ref, VNode } from "vue";
23
6
  //#region src/ComplexSelector/types.d.ts
24
7
  interface ComplexSelectorState {
25
8
  isOpen: boolean;
@@ -0,0 +1,100 @@
1
+ import { n as LayerPlacement, t as LayerAlignment } from "./position-DFW5ymAF.js";
2
+ import { _ as DropdownMenuSubMenuProps, a as DropdownMenuGroupSlots, c as DropdownMenuItemProps, f as DropdownMenuPresentation, g as DropdownMenuSlots, h as DropdownMenuSize, i as DropdownMenuGroupProps, l as DropdownMenuItemSlots, p as DropdownMenuProps, t as DropdownMenuButtonProps, u as DropdownMenuItemVariant, v as DropdownMenuSubMenuSlots } from "./types-DDAAT1Xd.js";
3
+ import { ComputedRef, InjectionKey } from "vue";
4
+ //#region src/DropdownMenu/context.d.ts
5
+ /**
6
+ * What a `DropdownMenu` tells the rows inside it.
7
+ *
8
+ * `menuSize` is a computed ref rather than a plain value: a row reads it after
9
+ * mount, so a snapshot would leave every row stuck at the size the trigger had
10
+ * when the menu was created.
11
+ */
12
+ interface DropdownMenuContextValue {
13
+ /** Closes the menu and returns focus to the trigger. */
14
+ closeMenu: () => void;
15
+ /** Whether the root menu is open. Nested flyouts close with it. */
16
+ isOpen: ComputedRef<boolean>;
17
+ /** Size of the menu, derived from the trigger button's size. */
18
+ menuSize: ComputedRef<DropdownMenuSize>;
19
+ }
20
+ /** The surrounding menu, or `undefined` when a row stands alone. */
21
+ declare function useDropdownMenuContext(): DropdownMenuContextValue | undefined;
22
+ //#endregion
23
+ //#region src/DropdownMenu/DropdownMenu.vue.d.ts
24
+ type __VLS_Props = DropdownMenuProps;
25
+ type __VLS_Slots$3 = DropdownMenuSlots;
26
+ type __VLS_ModelProps = {
27
+ 'isMenuOpen'?: boolean | undefined;
28
+ };
29
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
30
+ declare const __VLS_base$3: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
+ click: () => any;
32
+ openChange: (isOpen: boolean) => any;
33
+ "update:isMenuOpen": (...args: unknown[]) => any;
34
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
35
+ onClick?: (() => any) | undefined;
36
+ onOpenChange?: ((isOpen: boolean) => any) | undefined;
37
+ "onUpdate:isMenuOpen"?: ((...args: unknown[]) => any) | undefined;
38
+ }>, {
39
+ button: DropdownMenuButtonProps;
40
+ placement: LayerPlacement;
41
+ alignment: LayerAlignment;
42
+ presentation: DropdownMenuPresentation;
43
+ hasChevron: boolean;
44
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
+ declare const __VLS_export$4: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
46
+ declare const _default$4: typeof __VLS_export$4;
47
+ type __VLS_WithSlots$3<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
52
+ //#endregion
53
+ //#region src/DropdownMenu/DropdownMenuDivider.vue.d.ts
54
+ declare const __VLS_export$3: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
55
+ declare const _default$3: typeof __VLS_export$3;
56
+ //#endregion
57
+ //#region src/DropdownMenu/DropdownMenuGroup.vue.d.ts
58
+ type __VLS_Slots$2 = DropdownMenuGroupSlots;
59
+ declare const __VLS_base$2: import("vue").DefineComponent<DropdownMenuGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DropdownMenuGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
60
+ declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
61
+ declare const _default$2: typeof __VLS_export$2;
62
+ type __VLS_WithSlots$2<T, S> = T & {
63
+ new (): {
64
+ $slots: S;
65
+ };
66
+ };
67
+ //#endregion
68
+ //#region src/DropdownMenu/DropdownMenuItem.vue.d.ts
69
+ type __VLS_Slots$1 = DropdownMenuItemSlots;
70
+ declare const __VLS_base$1: import("vue").DefineComponent<DropdownMenuItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
71
+ click: (event: MouseEvent) => any;
72
+ }, string, import("vue").PublicProps, Readonly<DropdownMenuItemProps> & Readonly<{
73
+ onClick?: ((event: MouseEvent) => any) | undefined;
74
+ }>, {
75
+ isDisabled: boolean;
76
+ variant: DropdownMenuItemVariant;
77
+ hasCloseOnSelect: boolean;
78
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
79
+ declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
80
+ declare const _default$1: typeof __VLS_export$1;
81
+ type __VLS_WithSlots$1<T, S> = T & {
82
+ new (): {
83
+ $slots: S;
84
+ };
85
+ };
86
+ //#endregion
87
+ //#region src/DropdownMenu/DropdownMenuSubMenu.vue.d.ts
88
+ type __VLS_Slots = DropdownMenuSubMenuSlots;
89
+ declare const __VLS_base: import("vue").DefineComponent<DropdownMenuSubMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DropdownMenuSubMenuProps> & Readonly<{}>, {
90
+ isDisabled: boolean;
91
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
92
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
93
+ declare const _default: typeof __VLS_export;
94
+ type __VLS_WithSlots<T, S> = T & {
95
+ new (): {
96
+ $slots: S;
97
+ };
98
+ };
99
+ //#endregion
100
+ export { _default$4 as a, _default$3 as i, _default$1 as n, DropdownMenuContextValue as o, _default$2 as r, useDropdownMenuContext as s, _default as t };
@@ -2,6 +2,7 @@ import { ComputedRef, Ref } from "vue";
2
2
  //#region src/TabList/types.d.ts
3
3
  type TabListSize = 'sm' | 'md' | 'lg';
4
4
  type TabListLayout = 'hug' | 'fill';
5
+ type TabListEdgeCompensation = 'inline';
5
6
  interface TabListProps {
6
7
  /**
7
8
  * Currently selected tab value.
@@ -22,6 +23,19 @@ interface TabListProps {
22
23
  * @default false
23
24
  */
24
25
  hasDivider?: boolean;
26
+ /**
27
+ * Stretch the strip to the container's inline content edges, cancelling
28
+ * `--container-padding-inline-*`, while the first and last labels stay on
29
+ * the content inset. `edgeCompensation="inline"` is the same mode and wins
30
+ * when both are set.
31
+ * @default false
32
+ */
33
+ isFullBleed?: boolean;
34
+ /**
35
+ * Canonical name for the inline bleed. `isFullBleed` selects the same mode
36
+ * when this is omitted.
37
+ */
38
+ edgeCompensation?: TabListEdgeCompensation;
25
39
  }
26
40
  interface TabMenuOption {
27
41
  value: string;
@@ -93,6 +107,7 @@ declare const __VLS_base: import("vue").DefineComponent<TabListProps, {}, {}, {}
93
107
  onChange?: ((value: string) => any) | undefined;
94
108
  }>, {
95
109
  size: TabListSize;
110
+ isFullBleed: boolean;
96
111
  hasDivider: boolean;
97
112
  layout: TabListLayout;
98
113
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -125,8 +125,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps, {
125
125
  onChange?: ((value: string) => any) | undefined;
126
126
  "onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
127
127
  }>, {
128
- size: SegmentedControlSize;
129
128
  isDisabled: boolean;
129
+ size: SegmentedControlSize;
130
130
  layout: SegmentedControlLayout;
131
131
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
132
132
  declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
@@ -0,0 +1,147 @@
1
+ import { n as SyntaxThemeDefinition } from "./syntaxTheme-Bcs1YMF7.js";
2
+ import { ComputedRef } from "vue";
3
+ //#region src/Theme/types.d.ts
4
+ /** Color mode for a theme subtree. `system` follows the page and the OS. */
5
+ type ThemeMode = 'light' | 'dark' | 'system';
6
+ /**
7
+ * A token value.
8
+ *
9
+ * A string is used as written. A two-item tuple is the light stop, then the
10
+ * dark stop, and becomes `light-dark()`.
11
+ */
12
+ type ThemeTokenValue = string | readonly [string, string];
13
+ /** CSS custom properties for a theme. Keys may omit the `--astryx-` prefix. */
14
+ type ThemeTokens = Record<string, ThemeTokenValue>;
15
+ /** Token overrides for one inverted surface. */
16
+ interface ThemeSurfaceInput {
17
+ tokens?: ThemeTokens;
18
+ }
19
+ interface DefineThemeInput {
20
+ /** Theme name. Used as `data-astryx-theme`. */
21
+ name: string;
22
+ /** Semantic token overrides for this theme. */
23
+ tokens?: ThemeTokens;
24
+ /** Another theme to start from. This theme's own values win. */
25
+ extends?: ThemeDefinition;
26
+ /** Syntax colors for code in this subtree, unless a SyntaxTheme is closer. */
27
+ syntax?: SyntaxThemeDefinition;
28
+ /** Extra tokens for content on a dark surface. */
29
+ onDark?: ThemeSurfaceInput;
30
+ /** Extra tokens for content on a light surface. */
31
+ onLight?: ThemeSurfaceInput;
32
+ }
33
+ interface ThemeDefinition {
34
+ name: string;
35
+ /** Token values already written as CSS. */
36
+ tokens: Readonly<Record<string, string>>;
37
+ /** Extra tokens applied by MediaTheme when the surface is dark. */
38
+ onDark: Readonly<Record<string, string>>;
39
+ /** Extra tokens applied by MediaTheme when the surface is light. */
40
+ onLight: Readonly<Record<string, string>>;
41
+ syntax?: SyntaxThemeDefinition;
42
+ readonly __astryxTheme: true;
43
+ }
44
+ interface ThemeProps {
45
+ /** Theme from `defineTheme()`. */
46
+ theme: ThemeDefinition;
47
+ /**
48
+ * Color mode for this subtree.
49
+ * @default 'system'
50
+ */
51
+ mode?: ThemeMode;
52
+ }
53
+ /** Surface luminance, `auto` to measure it, or `off` to leave the page theme. */
54
+ type MediaThemeMode = 'dark' | 'light' | 'auto' | 'off';
55
+ interface MediaThemeProps {
56
+ /**
57
+ * Which surface the children sit on.
58
+ * `auto` measures the parent. `off` keeps the surrounding theme.
59
+ */
60
+ mode: MediaThemeMode;
61
+ /**
62
+ * Side used by `auto` before the surface can be measured, and when it cannot.
63
+ * @default 'dark'
64
+ */
65
+ fallback?: 'dark' | 'light';
66
+ }
67
+ //#endregion
68
+ //#region src/Theme/defineTheme.d.ts
69
+ declare function isDefinedTheme(value: unknown): value is ThemeDefinition;
70
+ /** Accept `--color-accent`, `--astryx-color-accent`, or `color-accent`. */
71
+ declare function normalizeTokenName(name: string): string;
72
+ /**
73
+ * Create a theme object that `Theme` can apply to a subtree.
74
+ *
75
+ * Token names are the upstream names (`--color-accent`) or this package's
76
+ * prefixed names (`--astryx-color-accent`). A `[light, dark]` tuple becomes
77
+ * `light-dark()`.
78
+ */
79
+ declare function defineTheme(input: DefineThemeInput): ThemeDefinition;
80
+ /** Neutral, with no token overrides. Colors come from `@astryx-vue/themes/neutral.css`. */
81
+ declare const neutralTheme: ThemeDefinition;
82
+ //#endregion
83
+ //#region src/Theme/MediaTheme.vue.d.ts
84
+ declare var __VLS_1$1: {};
85
+ type __VLS_Slots$1 = {} & {
86
+ default?: (props: typeof __VLS_1$1) => any;
87
+ };
88
+ declare const __VLS_base$1: import("vue").DefineComponent<MediaThemeProps, {
89
+ element: Readonly<import("vue").ShallowRef<HTMLElement | null>>;
90
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MediaThemeProps> & Readonly<{}>, {
91
+ fallback: "dark" | "light";
92
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
93
+ declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
94
+ declare const _default$1: typeof __VLS_export$1;
95
+ type __VLS_WithSlots$1<T, S> = T & {
96
+ new (): {
97
+ $slots: S;
98
+ };
99
+ };
100
+ //#endregion
101
+ //#region src/Theme/Theme.vue.d.ts
102
+ declare var __VLS_1: {};
103
+ type __VLS_Slots = {} & {
104
+ default?: (props: typeof __VLS_1) => any;
105
+ };
106
+ declare const __VLS_base: import("vue").DefineComponent<ThemeProps, {
107
+ element: Readonly<import("vue").ShallowRef<HTMLElement | null>>;
108
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ThemeProps> & Readonly<{}>, {
109
+ mode: ThemeMode;
110
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
111
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
112
+ declare const _default: typeof __VLS_export;
113
+ type __VLS_WithSlots<T, S> = T & {
114
+ new (): {
115
+ $slots: S;
116
+ };
117
+ };
118
+ //#endregion
119
+ //#region src/Theme/useMediaTheme.d.ts
120
+ interface UseMediaThemeReturn {
121
+ /** Resolved surface. `off` means the children keep the surrounding theme. */
122
+ mode: ComputedRef<'dark' | 'light' | 'off'>;
123
+ }
124
+ /** Read the nearest MediaTheme. Outside one, the mode is `off`. */
125
+ declare function useMediaTheme(): UseMediaThemeReturn;
126
+ //#endregion
127
+ //#region src/Theme/colorMode.d.ts
128
+ type ResolvedColorMode = 'light' | 'dark';
129
+ //#endregion
130
+ //#region src/Theme/useTheme.d.ts
131
+ interface UseThemeReturn {
132
+ /** Name of the nearest theme, or `neutral` when no theme is present. */
133
+ name: ComputedRef<string>;
134
+ /** Effective light or dark mode. `system` is resolved. */
135
+ mode: ComputedRef<ResolvedColorMode>;
136
+ /** Resolve one token for the effective mode. */
137
+ token: (name: string) => string;
138
+ /** Tokens declared by the nearest theme, resolved for the effective mode. */
139
+ tokens: ComputedRef<Record<string, string>>;
140
+ }
141
+ /**
142
+ * Read the nearest theme. Outside a `Theme`, the name is `neutral` and tokens
143
+ * are read from the document's custom properties.
144
+ */
145
+ declare function useTheme(): UseThemeReturn;
146
+ //#endregion
147
+ export { ThemeSurfaceInput as _, _default as a, isDefinedTheme as c, DefineThemeInput as d, MediaThemeMode as f, ThemeProps as g, ThemeMode as h, useMediaTheme as i, neutralTheme as l, ThemeDefinition as m, useTheme as n, _default$1 as o, MediaThemeProps as p, UseMediaThemeReturn as r, defineTheme as s, UseThemeReturn as t, normalizeTokenName as u, ThemeTokenValue as v, ThemeTokens as y };
@@ -9,6 +9,14 @@ interface CalendarMessages {
9
9
  nextMonth: string;
10
10
  }
11
11
  //#endregion
12
+ //#region src/locale/messages/carousel.d.ts
13
+ interface CarouselMessages {
14
+ label: string;
15
+ scrollLeft: string;
16
+ scrollRight: string;
17
+ slide: (current: number, total: number) => string;
18
+ }
19
+ //#endregion
12
20
  //#region src/locale/messages/chat.d.ts
13
21
  interface ChatMessages {
14
22
  log: string;
@@ -100,6 +108,19 @@ interface LayoutMessages {
100
108
  mobileNavigation: string;
101
109
  }
102
110
  //#endregion
111
+ //#region src/locale/messages/lightbox.d.ts
112
+ interface LightboxMessages {
113
+ close: string;
114
+ previous: string;
115
+ next: string;
116
+ mediaViewer: string;
117
+ zoom: string;
118
+ zoomedIn: string;
119
+ zoomedOut: string;
120
+ imagePosition: (index: number, total: number) => string;
121
+ mediaPosition: (alt: string, index: number, total: number) => string;
122
+ }
123
+ //#endregion
103
124
  //#region src/locale/messages/markdown.d.ts
104
125
  interface MarkdownMessages {
105
126
  headingLink: (title: string) => string;
@@ -148,6 +169,11 @@ interface NumberInputMessages {
148
169
  decrement: (label?: string) => string;
149
170
  }
150
171
  //#endregion
172
+ //#region src/locale/messages/outline.d.ts
173
+ interface OutlineMessages {
174
+ label: string;
175
+ }
176
+ //#endregion
151
177
  //#region src/locale/messages/pagination.d.ts
152
178
  interface PaginationMessages {
153
179
  nav: string;
@@ -160,6 +186,8 @@ interface PaginationMessages {
160
186
  total: (total: number, from: number, to: number) => string;
161
187
  /** 窄容器里代替页码按钮的「当前页 / 总页数」。 */
162
188
  compact: (page: number, totalPages: number) => string;
189
+ /** compact 变体的「Page X of Y」。 */
190
+ pageOf: (page: number, totalPages: number) => string;
163
191
  }
164
192
  //#endregion
165
193
  //#region src/locale/messages/selector.d.ts
@@ -268,6 +296,7 @@ interface TypeaheadMessages {
268
296
  //#region src/locale/messages.d.ts
269
297
  interface AstryxMessages {
270
298
  calendar: CalendarMessages;
299
+ carousel: CarouselMessages;
271
300
  chat: ChatMessages;
272
301
  citation: CitationMessages;
273
302
  commandPalette: CommandPaletteMessages;
@@ -276,11 +305,13 @@ interface AstryxMessages {
276
305
  dateTimeInput: DateTimeInputMessages;
277
306
  fileInput: FileInputMessages;
278
307
  layout: LayoutMessages;
308
+ lightbox: LightboxMessages;
279
309
  markdown: MarkdownMessages;
280
310
  metadataList: MetadataListMessages;
281
311
  multiSelector: MultiSelectorMessages;
282
312
  nav: NavMessages;
283
313
  numberInput: NumberInputMessages;
314
+ outline: OutlineMessages;
284
315
  pagination: PaginationMessages;
285
316
  selector: SelectorMessages;
286
317
  stepper: StepperMessages;
@@ -0,0 +1,22 @@
1
+ import { i as TextProps, n as TextColor, o as TextType, r as TextDisplay, t as TextAs } from "./types-Bt-lSgYX.js";
2
+ //#region src/Text/Text.vue.d.ts
3
+ declare var __VLS_7: {};
4
+ type __VLS_Slots = {} & {
5
+ default?: (props: typeof __VLS_7) => any;
6
+ };
7
+ declare const __VLS_base: import("vue").DefineComponent<TextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextProps> & Readonly<{}>, {
8
+ type: TextType;
9
+ as: TextAs;
10
+ color: TextColor;
11
+ display: TextDisplay;
12
+ maxLines: number;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
+ declare const _default: typeof __VLS_export;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
21
+ //#endregion
22
+ export { _default as t };
@@ -0,0 +1,68 @@
1
+ //#region src/Outline/types.d.ts
2
+ interface OutlineItem {
3
+ /** Matches the target heading element's id. */
4
+ id: string;
5
+ label: string;
6
+ /** Heading level from 1 to 6. Indentation uses levels 1–4. */
7
+ level: number;
8
+ }
9
+ type OutlineDensity = 'default' | 'compact';
10
+ interface OutlineProps {
11
+ /** Ordered heading items. */
12
+ items: OutlineItem[];
13
+ /**
14
+ * Controlled active heading id. When set, built-in scroll-spy stays off.
15
+ */
16
+ activeId?: string;
17
+ /**
18
+ * Accessible name of the nav landmark.
19
+ * @default 'Table of contents' (localized)
20
+ */
21
+ label?: string;
22
+ /**
23
+ * Item padding. `compact` is for dense sidebars.
24
+ * @default 'default'
25
+ */
26
+ density?: OutlineDensity;
27
+ /**
28
+ * Height in pixels of a fixed header covering the top of the scroll root.
29
+ * Shifts both the activation line and the scroll landing by the same amount,
30
+ * on top of each heading's own `scroll-margin-top`.
31
+ * @default 0
32
+ */
33
+ offset?: number;
34
+ /**
35
+ * Scroll container to track. Omit it to use the nearest scrollable ancestor,
36
+ * or the viewport when there is none.
37
+ */
38
+ scrollContainer?: HTMLElement | null;
39
+ /**
40
+ * Whether activating an item smooth-scrolls to it.
41
+ * @default true
42
+ */
43
+ hasScrollOnClick?: boolean;
44
+ }
45
+ interface OutlineEmits {
46
+ 'navigateEnd': [id: string];
47
+ 'navigateStart': [id: string];
48
+ 'update:activeId': [id: string];
49
+ }
50
+ //#endregion
51
+ //#region src/Outline/Outline.vue.d.ts
52
+ declare const __VLS_export: import("vue").DefineComponent<OutlineProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
53
+ navigateEnd: (id: string) => any;
54
+ navigateStart: (id: string) => any;
55
+ "update:activeId": (id: string) => any;
56
+ }, string, import("vue").PublicProps, Readonly<OutlineProps> & Readonly<{
57
+ onNavigateEnd?: ((id: string) => any) | undefined;
58
+ onNavigateStart?: ((id: string) => any) | undefined;
59
+ "onUpdate:activeId"?: ((id: string) => any) | undefined;
60
+ }>, {
61
+ density: OutlineDensity;
62
+ offset: number;
63
+ scrollContainer: HTMLElement | null;
64
+ hasScrollOnClick: boolean;
65
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
66
+ declare const _default: typeof __VLS_export;
67
+ //#endregion
68
+ export { OutlineProps as a, OutlineItem as i, OutlineDensity as n, OutlineEmits as r, _default as t };