@astryx-vue/core 0.1.3 → 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 (183) 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-EiGyPFbA.js} +2 -2
  5. package/dist/AvatarGroup/index.d.ts +1 -1
  6. package/dist/Banner/index.d.ts +1 -1
  7. package/dist/Button/index.d.ts +1 -1
  8. package/dist/ButtonGroup/index.d.ts +1 -1
  9. package/dist/Calendar/index.js +1 -1
  10. package/dist/{Calendar-CYhGDT6f.js → Calendar-BG7wEsro.js} +1 -1
  11. package/dist/Carousel/index.d.ts +2 -0
  12. package/dist/Carousel/index.js +2 -0
  13. package/dist/Carousel-BTtHkKea.js +363 -0
  14. package/dist/Chat/index.js +1 -1
  15. package/dist/{Chat-C1aWl5V3.js → Chat-DjNxw5gv.js} +2 -2
  16. package/dist/CheckboxInput/index.d.ts +1 -1
  17. package/dist/CheckboxList/index.d.ts +1 -1
  18. package/dist/Citation/index.js +1 -1
  19. package/dist/{Citation-C1X0Rde8.js → Citation-DijdbUUu.js} +2 -2
  20. package/dist/ClickableCard/index.d.ts +1 -1
  21. package/dist/Code/index.d.ts +3 -2
  22. package/dist/Code/index.js +4 -2
  23. package/dist/Code-yb_KOFtJ.js +299 -0
  24. package/dist/{CodeBlock-BQdooQy2.js → CodeBlock-CxTb6j9_.js} +8 -2
  25. package/dist/Collapsible/index.js +1 -1
  26. package/dist/{Collapsible-BS9ctCQV.js → Collapsible-9MC08X39.js} +1 -1
  27. package/dist/CommandPalette/index.js +1 -1
  28. package/dist/{CommandPalette-u5h_E05P.js → CommandPalette-BD2iODF5.js} +1 -1
  29. package/dist/ComplexSelector/index.d.ts +1 -1
  30. package/dist/ComplexSelector/index.js +1 -1
  31. package/dist/{ComplexSelector-BHmGWml0.js → ComplexSelector-D9iXd5cH.js} +2 -2
  32. package/dist/ContextMenu/index.js +1 -1
  33. package/dist/{ContextMenu-dA-ppaRQ.js → ContextMenu-HS_WqYIg.js} +1 -1
  34. package/dist/DateInput/index.d.ts +1 -1
  35. package/dist/DateInput/index.js +1 -1
  36. package/dist/{DateInput-D2ErjXYO.js → DateInput-DE2TN1Rq.js} +2 -2
  37. package/dist/DateRangeInput/index.d.ts +1 -1
  38. package/dist/DateRangeInput/index.js +1 -1
  39. package/dist/{DateRangeInput-fmQlr_A7.js → DateRangeInput-1bhPGG2s.js} +2 -2
  40. package/dist/DateTimeInput/index.d.ts +1 -1
  41. package/dist/DateTimeInput/index.js +1 -1
  42. package/dist/{DateTimeInput-Bs1JmcIp.js → DateTimeInput-SnPdgk6P.js} +3 -3
  43. package/dist/Divider/index.d.ts +1 -1
  44. package/dist/DropdownMenu/index.js +1 -1
  45. package/dist/{DropdownMenu-B0gogrvG.js → DropdownMenu-UJGych6v.js} +1 -1
  46. package/dist/EmptyState/index.js +1 -1
  47. package/dist/{EmptyState-Bhlqgsg4.js → EmptyState-CUJdTYKV.js} +1 -1
  48. package/dist/FileInput/index.d.ts +1 -1
  49. package/dist/FileInput/index.js +1 -1
  50. package/dist/{FileInput-CmAfOpkA.js → FileInput-BQiwE-GB.js} +2 -2
  51. package/dist/Icon/index.d.ts +3 -0
  52. package/dist/Icon/index.js +2 -0
  53. package/dist/{Icon-5MdZQ18k.js → Icon-Dfr4k6-S.js} +1 -1
  54. package/dist/Lightbox/index.d.ts +2 -0
  55. package/dist/Lightbox/index.js +2 -0
  56. package/dist/Lightbox-CshKoB0r.js +384 -0
  57. package/dist/Link/index.d.ts +1 -1
  58. package/dist/Markdown/index.js +1 -1
  59. package/dist/{Markdown-CwtLr3f_.js → Markdown-D-Ua055V.js} +2 -2
  60. package/dist/MetadataList/index.js +1 -1
  61. package/dist/{MetadataList-DlXQTLog.js → MetadataList-sYph_d8Q.js} +1 -1
  62. package/dist/MobileNav/index.js +1 -1
  63. package/dist/{MobileNavToggle-CgQamG6E.js → MobileNavToggle-DD9D01aj.js} +1 -1
  64. package/dist/MoreMenu/index.d.ts +1 -1
  65. package/dist/MoreMenu/index.js +1 -1
  66. package/dist/{MoreMenu-BXL6Dqsu.js → MoreMenu-BVrK5kkk.js} +1 -1
  67. package/dist/MultiSelector/index.d.ts +1 -1
  68. package/dist/MultiSelector/index.js +1 -1
  69. package/dist/{MultiSelector-DT8ZccMI.js → MultiSelector-DiYov9sF.js} +2 -2
  70. package/dist/NavMenu/index.d.ts +1 -1
  71. package/dist/NavMenu/index.js +1 -1
  72. package/dist/{NavMenuItem-mzNQESpB.js → NavMenuItem-B-k7olt5.js} +2 -1
  73. package/dist/NumberInput/index.d.ts +1 -1
  74. package/dist/NumberInput/index.js +1 -1
  75. package/dist/{NumberInput-DspJO6z6.js → NumberInput-CTYiQxHq.js} +1 -1
  76. package/dist/Outline/index.d.ts +2 -0
  77. package/dist/Outline/index.js +2 -0
  78. package/dist/Outline-DQfEBxlc.js +325 -0
  79. package/dist/OverflowList/index.d.ts +1 -1
  80. package/dist/OverflowList/index.js +1 -1
  81. package/dist/{OverflowList-zXg3g6fy.js → OverflowList-BU5VCntl.js} +2 -2
  82. package/dist/Pagination/index.js +1 -1
  83. package/dist/{Pagination-DXfgMUKJ.js → Pagination-HdhtykeF.js} +2 -2
  84. package/dist/Popover/index.d.ts +1 -1
  85. package/dist/Radio/index.d.ts +1 -1
  86. package/dist/RadioList/index.d.ts +1 -1
  87. package/dist/Resizable/index.js +1 -1
  88. package/dist/{Resizable-BuGKvU9I.js → Resizable-BhSMfO5B.js} +1 -1
  89. package/dist/ScrollableArea/index.d.ts +1 -1
  90. package/dist/SelectableCard/index.d.ts +1 -1
  91. package/dist/Selector/index.d.ts +1 -1
  92. package/dist/Selector/index.js +1 -1
  93. package/dist/{Selector-DlZpQh42.js → Selector-Da-2BO3q.js} +1 -1
  94. package/dist/SideNav/index.d.ts +1 -1
  95. package/dist/SideNav/index.js +1 -1
  96. package/dist/{SideNav-Cdrigq2A.js → SideNav-B-Om6Bz3.js} +2 -2
  97. package/dist/Stepper/index.js +1 -1
  98. package/dist/{Stepper-DxmLfh8O.js → Stepper-BZ_8SEZt.js} +1 -1
  99. package/dist/Switch/index.d.ts +1 -1
  100. package/dist/TabList/index.js +1 -1
  101. package/dist/{TabList-C411uNQU.js → TabList-Cnc2Hs1H.js} +1 -1
  102. package/dist/Table/index.js +1 -1
  103. package/dist/{Table-7qRmlIQd.js → Table-D-LhAy_J.js} +4 -4
  104. package/dist/Text/index.d.ts +3 -2
  105. package/dist/Text/index.js +1 -1
  106. package/dist/{Text-CKd7e3gK.js → Text-BHVghsWo.js} +12 -2
  107. package/dist/TextArea/index.d.ts +1 -1
  108. package/dist/TextInput/index.d.ts +1 -1
  109. package/dist/Theme/index.d.ts +2 -0
  110. package/dist/Theme/index.js +2 -0
  111. package/dist/Theme-BuUiiJNr.js +429 -0
  112. package/dist/Thumbnail/index.js +1 -1
  113. package/dist/{Thumbnail-BWVzLLyI.js → Thumbnail-Dc1UpykG.js} +2 -2
  114. package/dist/{TimeField-l3QzU6vC.js → TimeField-C7t9Knq9.js} +2 -2
  115. package/dist/TimeInput/index.d.ts +1 -1
  116. package/dist/TimeInput/index.js +1 -1
  117. package/dist/{TimeInput-OkgX-xbQ.js → TimeInput-BXxCOY98.js} +1 -1
  118. package/dist/Timer/index.d.ts +2 -0
  119. package/dist/Timer/index.js +2 -0
  120. package/dist/Timer-B7GV6hqd.js +134 -0
  121. package/dist/Timestamp/index.d.ts +1 -1
  122. package/dist/Timestamp/index.js +1 -1
  123. package/dist/{Timestamp-DUoP9ari.js → Timestamp-DlZSmgCJ.js} +3 -3
  124. package/dist/ToggleButton/index.d.ts +1 -1
  125. package/dist/Token/index.d.ts +1 -1
  126. package/dist/Token/index.js +1 -1
  127. package/dist/{Token-C4KD0fZD.js → Token-wt4e80IM.js} +1 -1
  128. package/dist/Tokenizer/index.d.ts +1 -1
  129. package/dist/Tokenizer/index.js +1 -1
  130. package/dist/{Tokenizer-BA8sTMPZ.js → Tokenizer-nmTqdS9n.js} +2 -2
  131. package/dist/Toolbar/index.d.ts +1 -1
  132. package/dist/TopNav/index.d.ts +1 -1
  133. package/dist/TopNav/index.js +1 -1
  134. package/dist/{TopNav-CZokS7E_.js → TopNav-notp-mJx.js} +4 -4
  135. package/dist/TreeList/index.js +1 -1
  136. package/dist/{TreeList-CIbAGOMf.js → TreeList-s1xBQ0qq.js} +2 -2
  137. package/dist/Typeahead/index.d.ts +1 -1
  138. package/dist/Typeahead/index.js +1 -1
  139. package/dist/{Typeahead-DIw-K4aa.js → Typeahead-VAuiCurV.js} +2 -2
  140. package/dist/{context-D6ECRdc5.js → context-Dbo22sck.js} +54 -0
  141. package/dist/context-O2Vb8cJl.js +57 -0
  142. package/dist/index-1AZ4KZhg.d.ts +96 -0
  143. package/dist/{index-FEy8qFSD.d.ts → index-BHqRH7QW.d.ts} +2 -2
  144. package/dist/index-BMrggCw-.d.ts +52 -0
  145. package/dist/index-Bainr_3n.d.ts +31 -0
  146. package/dist/{index-DXDGk38y.d.ts → index-Bn_odHQ9.d.ts} +1 -1
  147. package/dist/{index-C6RecznD.d.ts → index-BtPZKO20.d.ts} +2 -2
  148. package/dist/{index-CjtAH60j.d.ts → index-Bu0Zd1uw.d.ts} +1 -1
  149. package/dist/{index-CX97hlld.d.ts → index-C59PdX9L.d.ts} +2 -19
  150. package/dist/{index-Df2YvC8o.d.ts → index-C6iJwTL0.d.ts} +38 -31
  151. package/dist/{index-B4OOtNP8.d.ts → index-C7mxUcDR.d.ts} +2 -2
  152. package/dist/index-CRizexSC.d.ts +147 -0
  153. package/dist/index-Cm_TiLXU.d.ts +22 -0
  154. package/dist/index-Cn-sSds-.d.ts +68 -0
  155. package/dist/index-CsVS37na.d.ts +81 -0
  156. package/dist/{index-CT8KEpec.d.ts → index-D0TlUOtG.d.ts} +1 -1
  157. package/dist/{index-DGNqi2za.d.ts → index-DOUEn7V0.d.ts} +3 -3
  158. package/dist/{index-DYChvBOM.d.ts → index-DoFCm2Q2.d.ts} +29 -0
  159. package/dist/{index-mQ6EPmaG.d.ts → index-DsyKhauk.d.ts} +78 -9
  160. package/dist/{index-ZJyk8RtQ.d.ts → index-DtjAdYEc.d.ts} +1 -1
  161. package/dist/{index-Byar3h1e.d.ts → index-HV6W3xCx.d.ts} +1 -1
  162. package/dist/{index-2u4l3wq8.d.ts → index-NzLDrOkk.d.ts} +1 -1
  163. package/dist/{index-Bqb_Fyju.d.ts → index-jdjcb3Js.d.ts} +2 -2
  164. package/dist/index.d.ts +71 -62
  165. package/dist/index.js +100 -92
  166. package/dist/locale/index.d.ts +1 -1
  167. package/dist/locale/index.js +1 -1
  168. package/dist/syntaxTheme-Bcs1YMF7.d.ts +38 -0
  169. package/dist/syntaxTheme-ClpWALZX.js +75 -0
  170. package/dist/types-Bt-lSgYX.d.ts +65 -0
  171. package/dist/types-DZoEm_DG.d.ts +97 -0
  172. package/package.json +25 -1
  173. package/styles/carousel.css +120 -0
  174. package/styles/heading.css +6 -2
  175. package/styles/lightbox.css +144 -0
  176. package/styles/media-theme.css +51 -0
  177. package/styles/outline.css +124 -0
  178. package/styles/text.css +63 -14
  179. package/styles/theme.css +29 -0
  180. package/styles/timer.css +34 -0
  181. package/styles.css +6 -0
  182. package/dist/index-BzqRns96.d.ts +0 -64
  183. package/dist/{index-4FM5lQdV.d.ts → index-BUXNRekN.d.ts} +1 -1
@@ -0,0 +1,325 @@
1
+ import { t as useListFocus } from "./useListFocus-D0iOJl39.js";
2
+ import { a as useAstryxMessages } from "./context-Dbo22sck.js";
3
+ import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, toDisplayString, toRef, unref, watch } from "vue";
4
+ import "../styles/outline.css";
5
+ //#region src/Outline/scrollGeometry.ts
6
+ function getScrollableAncestor(element) {
7
+ let current = element?.parentElement ?? null;
8
+ while (current != null) {
9
+ const overflowY = getComputedStyle(current).overflowY;
10
+ if ((overflowY === "auto" || overflowY === "scroll" || overflowY === "overlay") && current.scrollHeight > current.clientHeight) return current;
11
+ current = current.parentElement;
12
+ }
13
+ return null;
14
+ }
15
+ function getScrollMarginTop(element) {
16
+ return Number.parseFloat(getComputedStyle(element).scrollMarginTop) || 0;
17
+ }
18
+ function getRootTop(scrollRoot) {
19
+ return scrollRoot != null ? scrollRoot.getBoundingClientRect().top : 0;
20
+ }
21
+ function getRestingTop(target, scrollRoot, offset) {
22
+ return getRootTop(scrollRoot) + offset + getScrollMarginTop(target);
23
+ }
24
+ function scrollToTarget(target, scrollRoot, scrollTarget, offset) {
25
+ const behavior = typeof window !== "undefined" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth";
26
+ if (offset === 0) {
27
+ target.scrollIntoView({
28
+ behavior,
29
+ block: "start"
30
+ });
31
+ return;
32
+ }
33
+ const delta = target.getBoundingClientRect().top - getRestingTop(target, scrollRoot, offset);
34
+ scrollTarget.scrollBy({
35
+ top: delta,
36
+ behavior
37
+ });
38
+ }
39
+ function resolveActiveId(items, scrollRoot, offset) {
40
+ if (items.length === 0) return void 0;
41
+ if (scrollRoot != null ? scrollRoot.scrollTop + scrollRoot.clientHeight >= scrollRoot.scrollHeight - 2 : window.innerHeight + window.scrollY >= document.documentElement.scrollHeight - 2) return items[items.length - 1].id;
42
+ let activeId = items[0].id;
43
+ for (const item of items) {
44
+ const element = document.getElementById(item.id);
45
+ if (element == null) continue;
46
+ if (element.getBoundingClientRect().top <= getRestingTop(element, scrollRoot, offset) + 1) activeId = item.id;
47
+ else break;
48
+ }
49
+ return activeId;
50
+ }
51
+ /** Heading levels 1 and 2 share the first indent. Levels 5 and 6 share the fourth. */
52
+ function indentLevel(level) {
53
+ return Math.max(1, Math.min(4, level - 1 || 1));
54
+ }
55
+ //#endregion
56
+ //#region src/Outline/useIndicator.ts
57
+ /** Place the sliding bar on the active link, measured against the track. */
58
+ function useOutlineIndicator(root, activeId) {
59
+ let frame = 0;
60
+ let observer = null;
61
+ function place() {
62
+ const nav = root.value;
63
+ const track = nav?.querySelector(".astryx-outline__track");
64
+ const active = nav?.querySelector("[aria-current=\"location\"]");
65
+ if (nav == null || track == null || active == null) return;
66
+ const trackRect = track.getBoundingClientRect();
67
+ const activeRect = active.getBoundingClientRect();
68
+ nav.style.setProperty("--astryx-outline-indicator-top", `${activeRect.top - trackRect.top}px`);
69
+ nav.style.setProperty("--astryx-outline-indicator-height", `${activeRect.height}px`);
70
+ }
71
+ function schedule() {
72
+ if (typeof requestAnimationFrame !== "function") {
73
+ place();
74
+ return;
75
+ }
76
+ if (frame !== 0) cancelAnimationFrame(frame);
77
+ frame = requestAnimationFrame(() => {
78
+ frame = 0;
79
+ place();
80
+ });
81
+ }
82
+ onMounted(() => {
83
+ schedule();
84
+ observer = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(schedule);
85
+ if (root.value != null) observer?.observe(root.value);
86
+ window.addEventListener("resize", schedule);
87
+ });
88
+ onBeforeUnmount(() => {
89
+ observer?.disconnect();
90
+ window.removeEventListener("resize", schedule);
91
+ if (frame !== 0 && typeof cancelAnimationFrame === "function") cancelAnimationFrame(frame);
92
+ });
93
+ watch(activeId, schedule);
94
+ }
95
+ //#endregion
96
+ //#region src/Outline/useScrollSpy.ts
97
+ const SCROLL_SETTLE_TIMEOUT_MS = 1200;
98
+ const SCROLL_KEYS = /* @__PURE__ */ new Set([
99
+ "ArrowUp",
100
+ "ArrowDown",
101
+ "PageUp",
102
+ "PageDown",
103
+ "Home",
104
+ "End",
105
+ " ",
106
+ "Spacebar"
107
+ ]);
108
+ function useScrollSpy(options) {
109
+ const isControlled = computed(() => options.activeId.value !== void 0);
110
+ const uncontrolledId = ref(options.items.value[0]?.id);
111
+ const resolvedId = computed(() => isControlled.value ? options.activeId.value : uncontrolledId.value);
112
+ const suppressed = ref(false);
113
+ let navigation = null;
114
+ function scrollRoot() {
115
+ const explicit = options.scrollContainer.value;
116
+ if (explicit) return explicit;
117
+ return getScrollableAncestor(options.root.value);
118
+ }
119
+ function sync() {
120
+ if (isControlled.value || suppressed.value) return;
121
+ const next = resolveActiveId(options.items.value, scrollRoot(), options.offset.value);
122
+ if (next != null && next !== uncontrolledId.value) {
123
+ uncontrolledId.value = next;
124
+ options.onActive(next);
125
+ }
126
+ }
127
+ function scrollTo(id) {
128
+ const target = typeof document === "undefined" ? null : document.getElementById(id);
129
+ if (target == null) return false;
130
+ navigation?.supersede();
131
+ options.onNavigateStart?.(id);
132
+ if (isControlled.value) options.onActive(id);
133
+ else suppressed.value = true;
134
+ const root = scrollRoot();
135
+ const targetScroller = root ?? window;
136
+ let settled = false;
137
+ let timer = 0;
138
+ function cleanup() {
139
+ targetScroller.removeEventListener("scrollend", onSettle);
140
+ targetScroller.removeEventListener("wheel", onManual);
141
+ targetScroller.removeEventListener("touchmove", onManual);
142
+ window.removeEventListener("keydown", onKeyDown);
143
+ if (timer !== 0) clearTimeout(timer);
144
+ navigation = null;
145
+ }
146
+ function finish(didArrive, shouldResume = true) {
147
+ if (settled) return;
148
+ settled = true;
149
+ cleanup();
150
+ if (!isControlled.value) {
151
+ suppressed.value = false;
152
+ if (didArrive) {
153
+ uncontrolledId.value = id;
154
+ options.onActive(id);
155
+ } else if (shouldResume) sync();
156
+ }
157
+ options.onNavigateEnd?.(id);
158
+ }
159
+ function onSettle() {
160
+ finish(true);
161
+ }
162
+ function onManual() {
163
+ finish(false);
164
+ }
165
+ function onKeyDown(event) {
166
+ if (!event.defaultPrevented && SCROLL_KEYS.has(event.key)) finish(false);
167
+ }
168
+ if (options.hasScrollOnClick.value) {
169
+ targetScroller.addEventListener("scrollend", onSettle);
170
+ targetScroller.addEventListener("wheel", onManual, { passive: true });
171
+ targetScroller.addEventListener("touchmove", onManual, { passive: true });
172
+ window.addEventListener("keydown", onKeyDown);
173
+ timer = window.setTimeout(onSettle, SCROLL_SETTLE_TIMEOUT_MS);
174
+ navigation = { supersede: () => finish(false, false) };
175
+ scrollToTarget(target, root, targetScroller, options.offset.value);
176
+ } else finish(true);
177
+ return true;
178
+ }
179
+ let listened = null;
180
+ onMounted(() => {
181
+ sync();
182
+ listened = scrollRoot() ?? window;
183
+ listened.addEventListener("scroll", sync, { passive: true });
184
+ window.addEventListener("resize", sync);
185
+ });
186
+ onBeforeUnmount(() => {
187
+ listened?.removeEventListener("scroll", sync);
188
+ window.removeEventListener("resize", sync);
189
+ navigation?.supersede();
190
+ });
191
+ watch(() => options.items.value.map((item) => item.id).join("\n"), () => {
192
+ if (!isControlled.value && (uncontrolledId.value == null || !options.items.value.some((item) => item.id === uncontrolledId.value))) uncontrolledId.value = options.items.value[0]?.id;
193
+ sync();
194
+ });
195
+ return {
196
+ resolvedId,
197
+ scrollTo
198
+ };
199
+ }
200
+ //#endregion
201
+ //#region src/Outline/Outline.vue
202
+ const _hoisted_1 = ["aria-label", "data-density"];
203
+ const _hoisted_2 = [
204
+ "href",
205
+ "data-level",
206
+ "data-active",
207
+ "aria-current",
208
+ "onClick",
209
+ "onKeydown"
210
+ ];
211
+ const _hoisted_3 = { class: "astryx-outline__label" };
212
+ const _sfc_main = /*@__PURE__*/ defineComponent({
213
+ name: "AstryxOutline",
214
+ inheritAttrs: false,
215
+ __name: "Outline",
216
+ props: {
217
+ items: {},
218
+ activeId: {},
219
+ label: {},
220
+ density: { default: "default" },
221
+ offset: { default: 0 },
222
+ scrollContainer: { default: null },
223
+ hasScrollOnClick: {
224
+ type: Boolean,
225
+ default: true
226
+ }
227
+ },
228
+ emits: [
229
+ "navigateEnd",
230
+ "navigateStart",
231
+ "update:activeId"
232
+ ],
233
+ setup(__props, { emit: __emit }) {
234
+ const props = __props;
235
+ const emit = __emit;
236
+ const messages = useAstryxMessages();
237
+ const root = ref(null);
238
+ const regionLabel = computed(() => props.label ?? messages.value.outline.label);
239
+ const { resolvedId, scrollTo } = useScrollSpy({
240
+ activeId: toRef(props, "activeId"),
241
+ items: toRef(props, "items"),
242
+ root,
243
+ offset: toRef(props, "offset"),
244
+ scrollContainer: toRef(props, "scrollContainer"),
245
+ hasScrollOnClick: toRef(props, "hasScrollOnClick"),
246
+ onActive: (id) => emit("update:activeId", id),
247
+ onNavigateStart: (id) => emit("navigateStart", id),
248
+ onNavigateEnd: (id) => emit("navigateEnd", id)
249
+ });
250
+ const { handleFocus, handleKeyDown, listRef } = useListFocus({
251
+ hasRovingTabIndex: true,
252
+ itemSelector: "a[href]",
253
+ orientation: "vertical"
254
+ });
255
+ function seatTabStop() {
256
+ const list = listRef.value;
257
+ if (list == null || document.activeElement != null && list.contains(document.activeElement)) return;
258
+ const links = [...list.querySelectorAll("a[href]")];
259
+ const active = links.find((link) => link.getAttribute("aria-current") === "location");
260
+ if (active == null) return;
261
+ for (const link of links) link.tabIndex = link === active ? 0 : -1;
262
+ }
263
+ watch(resolvedId, () => {
264
+ nextTick(seatTabStop);
265
+ });
266
+ useOutlineIndicator(root, resolvedId);
267
+ function hasModifier(event) {
268
+ return event.metaKey || event.altKey || event.ctrlKey || event.shiftKey;
269
+ }
270
+ function navigate(id) {
271
+ if (scrollTo(id)) window.history.pushState(null, "", `#${id}`);
272
+ }
273
+ function onClick(id, event) {
274
+ if (event.defaultPrevented || hasModifier(event)) return;
275
+ if (document.getElementById(id) == null) return;
276
+ event.preventDefault();
277
+ navigate(id);
278
+ }
279
+ function onItemKeyDown(id, event) {
280
+ if (event.key !== " " && event.key !== "Spacebar") return;
281
+ if (event.defaultPrevented || hasModifier(event)) return;
282
+ event.preventDefault();
283
+ navigate(id);
284
+ }
285
+ return (_ctx, _cache) => {
286
+ return openBlock(), createElementBlock("nav", {
287
+ ref_key: "root",
288
+ ref: root,
289
+ class: normalizeClass(["astryx-outline", _ctx.$attrs.class]),
290
+ style: normalizeStyle(_ctx.$attrs.style),
291
+ "aria-label": regionLabel.value,
292
+ "data-density": __props.density,
293
+ "data-component": "outline"
294
+ }, [
295
+ createCommentVNode(" eslint-disable-next-line vue-a11y/no-static-element-interactions -- 方向键在链接之间移动焦点,列表本身不是另一个控件。 "),
296
+ createElementVNode("ul", {
297
+ ref_key: "listRef",
298
+ ref: listRef,
299
+ class: "astryx-outline__list",
300
+ onKeydown: _cache[0] || (_cache[0] = (...args) => unref(handleKeyDown) && unref(handleKeyDown)(...args)),
301
+ onFocus: _cache[1] || (_cache[1] = (...args) => unref(handleFocus) && unref(handleFocus)(...args))
302
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
303
+ return openBlock(), createElementBlock("li", {
304
+ key: item.id,
305
+ class: "astryx-outline__item"
306
+ }, [createElementVNode("a", {
307
+ class: "astryx-outline__link",
308
+ href: `#${item.id}`,
309
+ "data-level": unref(indentLevel)(item.level),
310
+ "data-active": item.id === unref(resolvedId) || void 0,
311
+ "aria-current": item.id === unref(resolvedId) ? "location" : void 0,
312
+ onClick: ($event) => onClick(item.id, $event),
313
+ onKeydown: ($event) => onItemKeyDown(item.id, $event)
314
+ }, [createElementVNode("span", _hoisted_3, toDisplayString(item.label), 1)], 40, _hoisted_2)]);
315
+ }), 128))], 544),
316
+ _cache[2] || (_cache[2] = createElementVNode("div", {
317
+ class: "astryx-outline__track",
318
+ "aria-hidden": "true"
319
+ }, [createElementVNode("span", { class: "astryx-outline__line" }), createElementVNode("span", { class: "astryx-outline__indicator" })], -1))
320
+ ], 14, _hoisted_1);
321
+ };
322
+ }
323
+ });
324
+ //#endregion
325
+ export { _sfc_main as t };
@@ -1,2 +1,2 @@
1
- import { Cn as _default, En as OverflowListProps, Tn as OverflowListItem, wn as OverflowListEmits } from "../index-Df2YvC8o.js";
1
+ import { Cn as _default, En as OverflowListProps, Tn as OverflowListItem, wn as OverflowListEmits } from "../index-C6iJwTL0.js";
2
2
  export { _default as OverflowList, type OverflowListEmits, type OverflowListItem, type OverflowListProps };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../OverflowList-zXg3g6fy.js";
1
+ import { t as _sfc_main } from "../OverflowList-BU5VCntl.js";
2
2
  export { _sfc_main as OverflowList };
@@ -1,8 +1,8 @@
1
1
  import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
2
- import { a as useAstryxMessages } from "./context-D6ECRdc5.js";
2
+ import { a as useAstryxMessages } from "./context-Dbo22sck.js";
3
3
  import { n as resolveNavRoot } from "./link-CdcUSxAj.js";
4
4
  import { t as _sfc_main$2 } from "./NavDisclosure-DHrSNRDR.js";
5
- import { n as _sfc_main$3, t as _sfc_main$4 } from "./NavMenuItem-mzNQESpB.js";
5
+ import { n as _sfc_main$3, t as _sfc_main$4 } from "./NavMenuItem-B-k7olt5.js";
6
6
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, withCtx } from "vue";
7
7
  import "../styles/overflow-list.css";
8
8
  //#region src/OverflowList/OverflowMore.vue
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Pagination-DXfgMUKJ.js";
1
+ import { t as _sfc_main } from "../Pagination-HdhtykeF.js";
2
2
  export { _sfc_main as Pagination };
@@ -1,5 +1,5 @@
1
- import { a as useAstryxMessages } from "./context-D6ECRdc5.js";
2
- import { t as _sfc_main$1 } from "./Selector-DlZpQh42.js";
1
+ import { a as useAstryxMessages } from "./context-Dbo22sck.js";
2
+ import { t as _sfc_main$1 } from "./Selector-Da-2BO3q.js";
3
3
  import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, vShow, withDirectives } from "vue";
4
4
  import "../styles/pagination.css";
5
5
  /**
@@ -1,3 +1,3 @@
1
1
  import { a as PopoverRole, i as PopoverProps, n as PopoverPadding, r as PopoverPlacement, t as PopoverAlignment } from "../types-Db3Owy8Q.js";
2
- import { t as _default } from "../index-CjtAH60j.js";
2
+ import { t as _default } from "../index-Bu0Zd1uw.js";
3
3
  export { _default as Popover, type PopoverAlignment, type PopoverPadding, type PopoverPlacement, type PopoverProps, type PopoverRole };
@@ -1,2 +1,2 @@
1
- import { Sn as RadioValue, _n as RadioProps, bn as RadioStatus, cn as _default$1, dn as RadioGroupEmits, fn as RadioGroupProps, gn as RadioOrientation, hn as RadioOption, ln as _default, pn as RadioGroupSlots, un as RadioChangeEvent, vn as RadioSize, xn as RadioStatusType, yn as RadioSlots } from "../index-Df2YvC8o.js";
1
+ import { Sn as RadioValue, _n as RadioProps, bn as RadioStatus, cn as _default$1, dn as RadioGroupEmits, fn as RadioGroupProps, gn as RadioOrientation, hn as RadioOption, ln as _default, pn as RadioGroupSlots, un as RadioChangeEvent, vn as RadioSize, xn as RadioStatusType, yn as RadioSlots } from "../index-C6iJwTL0.js";
2
2
  export { _default as Radio, type RadioChangeEvent, _default$1 as RadioGroup, type RadioGroupEmits, type RadioGroupProps, type RadioGroupSlots, type RadioOption, type RadioOrientation, type RadioProps, type RadioSize, type RadioSlots, type RadioStatus, type RadioStatusType, type RadioValue };
@@ -1,2 +1,2 @@
1
- import { an as _default$1, mn as RadioListProps, on as RadioListItemProps, sn as _default } from "../index-Df2YvC8o.js";
1
+ import { an as _default$1, mn as RadioListProps, on as RadioListItemProps, sn as _default } from "../index-C6iJwTL0.js";
2
2
  export { _default as RadioList, _default$1 as RadioListItem, type RadioListItemProps, type RadioListProps };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Resizable-BuGKvU9I.js";
1
+ import { t as _sfc_main } from "../Resizable-BhSMfO5B.js";
2
2
  export { _sfc_main as ResizeHandle };
@@ -1,4 +1,4 @@
1
- import { a as useAstryxMessages } from "./context-D6ECRdc5.js";
1
+ import { a as useAstryxMessages } from "./context-Dbo22sck.js";
2
2
  import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, onBeforeUnmount, openBlock, ref, renderSlot, useAttrs, useTemplateRef } from "vue";
3
3
  import "../styles/resize-handle.css";
4
4
  //#region src/Resizable/ResizeHandle.vue
@@ -1,2 +1,2 @@
1
- import { in as ScrollableAreaSlots, nn as _default, rn as ScrollableAreaProps } from "../index-Df2YvC8o.js";
1
+ import { in as ScrollableAreaSlots, nn as _default, rn as ScrollableAreaProps } from "../index-C6iJwTL0.js";
2
2
  export { _default as ScrollableArea, type ScrollableAreaProps, type ScrollableAreaSlots };
@@ -1,2 +1,2 @@
1
- import { $t as SelectableCardEmits, Qt as _default, en as SelectableCardProps, tn as SelectableCardSlots } from "../index-Df2YvC8o.js";
1
+ import { $t as SelectableCardEmits, Qt as _default, en as SelectableCardProps, tn as SelectableCardSlots } from "../index-C6iJwTL0.js";
2
2
  export { _default as SelectableCard, _default as default, type SelectableCardEmits, type SelectableCardProps, type SelectableCardSlots };
@@ -1,2 +1,2 @@
1
- import { a as SelectorSize, i as SelectorProps, n as SelectorEmits, o as SelectorSlots, r as SelectorOption, s as SelectorStatus, t as _default } from "../index-C6RecznD.js";
1
+ import { a as SelectorSize, i as SelectorProps, n as SelectorEmits, o as SelectorSlots, r as SelectorOption, s as SelectorStatus, t as _default } from "../index-BtPZKO20.js";
2
2
  export { _default as Selector, type SelectorEmits, type SelectorOption, type SelectorProps, type SelectorSize, type SelectorSlots, type SelectorStatus };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Selector-DlZpQh42.js";
1
+ import { t as _sfc_main } from "../Selector-Da-2BO3q.js";
2
2
  export { _sfc_main as Selector };
@@ -1,6 +1,6 @@
1
1
  import { t as useCombobox } from "./useCombobox-CTo5C-gc.js";
2
2
  import { t as useDismiss } from "./useDismiss-CAiHU6QD.js";
3
- import { a as useAstryxMessages } from "./context-D6ECRdc5.js";
3
+ import { a as useAstryxMessages } from "./context-Dbo22sck.js";
4
4
  import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
5
5
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useId, useSlots, useTemplateRef, vShow, watch, withDirectives, withKeys, withModifiers } from "vue";
6
6
  import "../styles/visually-hidden-utility.css";
@@ -1,2 +1,2 @@
1
- import { Bt as _default$1, Gt as SideNavHeadingProps, Ht as SideNavCollapseButtonProps, Jt as SideNavProps, Kt as SideNavItemEmits, Lt as _default$4, Rt as _default$3, Ut as SideNavCollapsible, Vt as _default, Wt as SideNavEmits, Xt as SideNavCollapseContext, Yt as SideNavSectionProps, Zt as useSideNavCollapse, qt as SideNavItemProps, zt as _default$2 } from "../index-Df2YvC8o.js";
1
+ import { Bt as _default$1, Gt as SideNavHeadingProps, Ht as SideNavCollapseButtonProps, Jt as SideNavProps, Kt as SideNavItemEmits, Lt as _default$4, Rt as _default$3, Ut as SideNavCollapsible, Vt as _default, Wt as SideNavEmits, Xt as SideNavCollapseContext, Yt as SideNavSectionProps, Zt as useSideNavCollapse, qt as SideNavItemProps, zt as _default$2 } from "../index-C6iJwTL0.js";
2
2
  export { _default as SideNav, _default$1 as SideNavCollapseButton, type SideNavCollapseButtonProps, type SideNavCollapseContext, type SideNavCollapsible, type SideNavEmits, _default$2 as SideNavHeading, type SideNavHeadingProps, _default$3 as SideNavItem, type SideNavItemEmits, type SideNavItemProps, type SideNavProps, _default$4 as SideNavSection, type SideNavSectionProps, useSideNavCollapse };
@@ -1,3 +1,3 @@
1
1
  import { r as useSideNavCollapse } from "../context-BjNya0v8.js";
2
- import { a as _sfc_main$1, i as _sfc_main, n as _sfc_main$3, r as _sfc_main$2, t as _sfc_main$4 } from "../SideNav-Cdrigq2A.js";
2
+ import { a as _sfc_main$1, i as _sfc_main, n as _sfc_main$3, r as _sfc_main$2, t as _sfc_main$4 } from "../SideNav-B-Om6Bz3.js";
3
3
  export { _sfc_main as SideNav, _sfc_main$1 as SideNavCollapseButton, _sfc_main$2 as SideNavHeading, _sfc_main$3 as SideNavItem, _sfc_main$4 as SideNavSection, useSideNavCollapse };
@@ -1,7 +1,7 @@
1
1
  import { t as useHotkeys } from "./useHotkeys-dABSK1o9.js";
2
- import { a as useAstryxMessages } from "./context-D6ECRdc5.js";
2
+ import { a as useAstryxMessages } from "./context-Dbo22sck.js";
3
3
  import { i as useSideNavRenderMode, r as useSideNavCollapse, t as sideNavCollapseKey } from "./context-BjNya0v8.js";
4
- import { t as _sfc_main$5 } from "./Icon-5MdZQ18k.js";
4
+ import { t as _sfc_main$5 } from "./Icon-Dfr4k6-S.js";
5
5
  import { n as resolveNavRoot } from "./link-CdcUSxAj.js";
6
6
  import { t as _sfc_main$6 } from "./NavItem-FFOisITc.js";
7
7
  import { t as _sfc_main$7 } from "./NavDisclosure-DHrSNRDR.js";
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, t as _sfc_main$1 } from "../Stepper-DxmLfh8O.js";
1
+ import { n as _sfc_main, t as _sfc_main$1 } from "../Stepper-BZ_8SEZt.js";
2
2
  export { _sfc_main as Step, _sfc_main$1 as Stepper };
@@ -1,5 +1,5 @@
1
1
  import { t as _sfc_main$3 } from "./VisuallyHidden-C7NN3VEP.js";
2
- import { a as useAstryxMessages } from "./context-D6ECRdc5.js";
2
+ import { a as useAstryxMessages } from "./context-Dbo22sck.js";
3
3
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, onMounted, onUnmounted, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useTemplateRef, watch, withCtx } from "vue";
4
4
  import "../styles/stepper.css";
5
5
  //#region src/Stepper/context.ts
@@ -1,2 +1,2 @@
1
- import { At as SwitchChangeEvent, Ft as SwitchStatus, It as SwitchStatusType, Mt as SwitchProps, Nt as SwitchSize, Ot as _default, Pt as SwitchSlots, jt as SwitchEmits, kt as SwitchChangeAction } from "../index-Df2YvC8o.js";
1
+ import { At as SwitchChangeEvent, Ft as SwitchStatus, It as SwitchStatusType, Mt as SwitchProps, Nt as SwitchSize, Ot as _default, Pt as SwitchSlots, jt as SwitchEmits, kt as SwitchChangeAction } from "../index-C6iJwTL0.js";
2
2
  export { _default as Switch, type SwitchChangeAction, type SwitchChangeEvent, type SwitchEmits, type SwitchProps, type SwitchSize, type SwitchSlots, type SwitchStatus, type SwitchStatusType };
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main$1, r as _sfc_main, t as _sfc_main$2 } from "../TabList-C411uNQU.js";
1
+ import { n as _sfc_main$1, r as _sfc_main, t as _sfc_main$2 } from "../TabList-Cnc2Hs1H.js";
2
2
  export { _sfc_main as Tab, _sfc_main$1 as TabList, _sfc_main$2 as TabMenu };
@@ -1,6 +1,6 @@
1
1
  import { t as useDismiss } from "./useDismiss-CAiHU6QD.js";
2
2
  import { t as useListFocus } from "./useListFocus-D0iOJl39.js";
3
- import { t as _sfc_main$3 } from "./Icon-5MdZQ18k.js";
3
+ import { t as _sfc_main$3 } from "./Icon-Dfr4k6-S.js";
4
4
  import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
5
5
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, nextTick, normalizeClass, normalizeStyle, onMounted, onUnmounted, openBlock, provide, reactive, ref, renderList, renderSlot, toDisplayString, unref, useId, watch } from "vue";
6
6
  import "../styles/tab-list.css";
@@ -1,2 +1,2 @@
1
- import { C as paginateData, D as sortRows, E as resolveColumnWidths, S as generateColumns, T as proportional, _ as useTableColumnSettings, a as _sfc_main$3, b as capitalize, c as _sfc_main, d as useTableSelection, f as useTableSelectionState, g as useTableFiltering, h as useTableFilterState, i as _sfc_main$4, l as useTableSortable, m as applyTableFilters, n as _sfc_main$6, o as _sfc_main$2, p as useTablePagination, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main$7, u as useTableSortableState, v as useTableColumnSettingsState, w as pixel, x as cellText, y as useTableColumnResize } from "../Table-7qRmlIQd.js";
1
+ import { C as paginateData, D as sortRows, E as resolveColumnWidths, S as generateColumns, T as proportional, _ as useTableColumnSettings, a as _sfc_main$3, b as capitalize, c as _sfc_main, d as useTableSelection, f as useTableSelectionState, g as useTableFiltering, h as useTableFilterState, i as _sfc_main$4, l as useTableSortable, m as applyTableFilters, n as _sfc_main$6, o as _sfc_main$2, p as useTablePagination, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main$7, u as useTableSortableState, v as useTableColumnSettingsState, w as pixel, x as cellText, y as useTableColumnResize } from "../Table-D-LhAy_J.js";
2
2
  export { _sfc_main as Table, _sfc_main$1 as TableBody, _sfc_main$2 as TableCell, _sfc_main$3 as TableFooter, _sfc_main$4 as TableHeader, _sfc_main$5 as TableHeaderCell, _sfc_main$6 as TableRow, _sfc_main$7 as TableSelectionToolbar, applyTableFilters, capitalize, cellText, generateColumns, paginateData, paginateData as paginateTableData, pixel, proportional, resolveColumnWidths, sortRows, useTableColumnResize, useTableColumnSettings, useTableColumnSettingsState, useTableFilterState, useTableFiltering, useTablePagination, useTableSelection, useTableSelectionState, useTableSortable, useTableSortableState };
@@ -1,11 +1,11 @@
1
1
  import { t as _sfc_main$10 } from "./Button-DrqeomlE.js";
2
- import { a as useAstryxMessages } from "./context-D6ECRdc5.js";
2
+ import { a as useAstryxMessages } from "./context-Dbo22sck.js";
3
3
  import { t as _sfc_main$11 } from "./IconButton-BNQuz9W_.js";
4
- import { t as _sfc_main$12 } from "./Icon-5MdZQ18k.js";
4
+ import { t as _sfc_main$12 } from "./Icon-Dfr4k6-S.js";
5
5
  import { t as _sfc_main$13 } from "./CheckboxInput-CMsEE1_4.js";
6
6
  import { t as _sfc_main$14 } from "./Popover-Crhk9PNP.js";
7
- import { t as _sfc_main$15 } from "./Pagination-DXfgMUKJ.js";
8
- import { t as _sfc_main$16 } from "./Selector-DlZpQh42.js";
7
+ import { t as _sfc_main$15 } from "./Pagination-HdhtykeF.js";
8
+ import { t as _sfc_main$16 } from "./Selector-Da-2BO3q.js";
9
9
  import { t as _sfc_main$17 } from "./TextInput-BasnjVvy.js";
10
10
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, h, normalizeClass, normalizeStyle, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, watch, withCtx } from "vue";
11
11
  import "../styles/table.css";
@@ -1,2 +1,3 @@
1
- import { a as TextProps, c as TextWeight, i as TextDisplay, n as TextAs, o as TextSize, r as TextColor, s as TextType, t as _default } from "../index-BzqRns96.js";
2
- export { _default as Text, type TextAs, type TextColor, type TextDisplay, type TextProps, type TextSize, type TextType, type TextWeight };
1
+ import { a as TextSize, c as TextWordBreak, i as TextProps, l as TextWrap, n as TextColor, o as TextType, r as TextDisplay, s as TextWeight, t as TextAs } from "../types-Bt-lSgYX.js";
2
+ import { t as _default } from "../index-Cm_TiLXU.js";
3
+ export { _default as Text, type TextAs, type TextColor, type TextDisplay, type TextProps, type TextSize, type TextType, type TextWeight, type TextWordBreak, type TextWrap };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Text-CKd7e3gK.js";
1
+ import { t as _sfc_main } from "../Text-BHVghsWo.js";
2
2
  export { _sfc_main as Text };
@@ -8,19 +8,29 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
8
8
  size: {},
9
9
  color: { default: "primary" },
10
10
  weight: {},
11
+ textWrap: {},
12
+ wordBreak: {},
13
+ hasStrikethrough: { type: Boolean },
14
+ hasTabularNumbers: { type: Boolean },
11
15
  display: { default: "inline" },
12
16
  as: { default: "span" },
13
17
  maxLines: { default: 0 }
14
18
  },
15
19
  setup(__props) {
16
20
  const props = __props;
21
+ const weight = computed(() => props.weight === "normal" ? "regular" : props.weight);
22
+ const isBlock = computed(() => props.display === "block" || props.maxLines > 0);
17
23
  const classes = computed(() => [
18
24
  "astryx-text",
19
25
  `astryx-text--type-${props.type}`,
20
26
  props.size && `astryx-text--size-${props.size}`,
21
27
  `astryx-text--color-${props.color}`,
22
- props.weight && `astryx-text--weight-${props.weight}`,
23
- props.display === "block" && "astryx-text--block",
28
+ weight.value && `astryx-text--weight-${weight.value}`,
29
+ props.textWrap && `astryx-text--wrap-${props.textWrap}`,
30
+ props.wordBreak && `astryx-text--word-${props.wordBreak}`,
31
+ props.hasStrikethrough && "astryx-text--strike",
32
+ props.hasTabularNumbers && "astryx-text--tabular",
33
+ isBlock.value && "astryx-text--block",
24
34
  props.maxLines === 1 && "astryx-text--truncate-single",
25
35
  props.maxLines > 1 && "astryx-text--truncate-multi"
26
36
  ]);
@@ -1,2 +1,2 @@
1
- import { Ct as TextAreaSize, Dt as TextAreaWrap, Et as TextAreaStatusType, St as TextAreaResize, Tt as TextAreaStatus, _t as _default, bt as TextAreaEmits, vt as TextAreaChangeAction, wt as TextAreaSlots, xt as TextAreaProps, yt as TextAreaChangeEvent } from "../index-Df2YvC8o.js";
1
+ import { Ct as TextAreaSize, Dt as TextAreaWrap, Et as TextAreaStatusType, St as TextAreaResize, Tt as TextAreaStatus, _t as _default, bt as TextAreaEmits, vt as TextAreaChangeAction, wt as TextAreaSlots, xt as TextAreaProps, yt as TextAreaChangeEvent } from "../index-C6iJwTL0.js";
2
2
  export { _default as TextArea, type TextAreaChangeAction, type TextAreaChangeEvent, type TextAreaEmits, type TextAreaProps, type TextAreaResize, type TextAreaSize, type TextAreaSlots, type TextAreaStatus, type TextAreaStatusType, type TextAreaWrap };
@@ -1,2 +1,2 @@
1
- import { ct as TextInputChangeAction, dt as TextInputProps, ft as TextInputSize, gt as TextInputType, ht as TextInputStatusType, lt as TextInputChangeEvent, mt as TextInputStatus, pt as TextInputSlots, st as _default, ut as TextInputEmits } from "../index-Df2YvC8o.js";
1
+ import { ct as TextInputChangeAction, dt as TextInputProps, ft as TextInputSize, gt as TextInputType, ht as TextInputStatusType, lt as TextInputChangeEvent, mt as TextInputStatus, pt as TextInputSlots, st as _default, ut as TextInputEmits } from "../index-C6iJwTL0.js";
2
2
  export { _default as TextInput, type TextInputChangeAction, type TextInputChangeEvent, type TextInputEmits, type TextInputProps, type TextInputSize, type TextInputSlots, type TextInputStatus, type TextInputStatusType, type TextInputType };
@@ -0,0 +1,2 @@
1
+ import { _ as ThemeSurfaceInput, a as _default$1, c as isDefinedTheme, d as DefineThemeInput, f as MediaThemeMode, g as ThemeProps, h as ThemeMode, i as useMediaTheme, l as neutralTheme, m as ThemeDefinition, n as useTheme, o as _default, p as MediaThemeProps, r as UseMediaThemeReturn, s as defineTheme, t as UseThemeReturn, u as normalizeTokenName, v as ThemeTokenValue, y as ThemeTokens } from "../index-CRizexSC.js";
2
+ export { type DefineThemeInput, _default as MediaTheme, type MediaThemeMode, type MediaThemeProps, _default$1 as Theme, type ThemeDefinition, type ThemeMode, type ThemeProps, type ThemeSurfaceInput, type ThemeTokenValue, type ThemeTokens, type UseMediaThemeReturn, type UseThemeReturn, defineTheme, isDefinedTheme, neutralTheme, normalizeTokenName, useMediaTheme, useTheme };
@@ -0,0 +1,2 @@
1
+ import { a as defineTheme, c as normalizeTokenName, i as _sfc_main, n as useMediaTheme, o as isDefinedTheme, r as _sfc_main$1, s as neutralTheme, t as useTheme } from "../Theme-BuUiiJNr.js";
2
+ export { _sfc_main as MediaTheme, _sfc_main$1 as Theme, defineTheme, isDefinedTheme, neutralTheme, normalizeTokenName, useMediaTheme, useTheme };