@astryx-vue/core 0.30.1 → 0.31.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 (166) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-B_p1yL3k.js → AlertDialog-CvNtu0Jd.js} +2 -2
  3. package/dist/AppShell/index.d.ts +1 -1
  4. package/dist/AppShell/index.js +1 -1
  5. package/dist/{AppShell-D3KZSLvb.js → AppShell-BmX6wqba.js} +3 -3
  6. package/dist/AvatarGroup/index.d.ts +1 -1
  7. package/dist/Banner/index.d.ts +1 -1
  8. package/dist/BottomSheet/index.d.ts +1 -1
  9. package/dist/BottomSheet/index.js +2 -2
  10. package/dist/{BottomSheet-CQGtoh2x.js → BottomSheet-B8_znPYE.js} +1 -1
  11. package/dist/{BottomSheet-Btf8Yn8k.js → BottomSheet-BZ_yFoKC.js} +2 -2
  12. package/dist/Breadcrumbs/index.js +2 -2
  13. package/dist/{Breadcrumbs-D6825HQI.js → Breadcrumbs-CJpvbZsf.js} +1 -1
  14. package/dist/Button/index.d.ts +1 -1
  15. package/dist/ButtonGroup/index.d.ts +1 -1
  16. package/dist/Calendar/index.d.ts +1 -1
  17. package/dist/Card/index.d.ts +1 -1
  18. package/dist/Carousel/index.d.ts +1 -1
  19. package/dist/Chat/index.d.ts +1 -1
  20. package/dist/CheckboxInput/index.d.ts +1 -1
  21. package/dist/CheckboxList/index.d.ts +1 -1
  22. package/dist/ClickableCard/index.d.ts +1 -1
  23. package/dist/Code/index.d.ts +1 -1
  24. package/dist/Code/index.js +1 -1
  25. package/dist/{Code-5rZyPwty.js → Code-_PngYOKp.js} +2 -0
  26. package/dist/Collapsible/index.d.ts +1 -1
  27. package/dist/Collapsible/index.js +1 -1
  28. package/dist/{Collapsible-CfTN722D.js → Collapsible-DXl9RRaX.js} +2 -2
  29. package/dist/ComplexSelector/index.d.ts +1 -1
  30. package/dist/ComplexSelector/index.js +1 -1
  31. package/dist/{ComplexSelector-DqWJVx7H.js → ComplexSelector-vna5wtig.js} +1 -1
  32. package/dist/ContextMenu/index.d.ts +1 -1
  33. package/dist/ContextMenu/index.js +2 -2
  34. package/dist/{ContextMenu-C9dJGu3M.js → ContextMenu-CE-FnLI6.js} +3 -3
  35. package/dist/DateInput/index.d.ts +1 -1
  36. package/dist/DateInput/index.js +1 -1
  37. package/dist/{DateInput-CGKaozkw.js → DateInput-BCasoeIj.js} +2 -2
  38. package/dist/DateRangeInput/index.d.ts +1 -1
  39. package/dist/DateRangeInput/index.js +1 -1
  40. package/dist/{DateRangeInput-BVHXgzXz.js → DateRangeInput-Bi97pjDX.js} +1 -1
  41. package/dist/DateTimeInput/index.d.ts +1 -1
  42. package/dist/DateTimeInput/index.js +1 -1
  43. package/dist/{DateTimeInput-DRm3lekJ.js → DateTimeInput-CKnvjLhi.js} +3 -3
  44. package/dist/Dialog/index.d.ts +1 -1
  45. package/dist/Drawer/index.d.ts +1 -1
  46. package/dist/DropdownMenu/index.js +3 -3
  47. package/dist/{DropdownMenu-C9bvYZPt.js → DropdownMenu-B_KDdI8P.js} +2 -2
  48. package/dist/{DropdownMenu-_lQQyQCn.js → DropdownMenu-aYOIh9gZ.js} +3 -3
  49. package/dist/Heading/index.d.ts +1 -1
  50. package/dist/Indicator/index.d.ts +2 -2
  51. package/dist/InfoTip/index.d.ts +1 -1
  52. package/dist/Link/index.d.ts +1 -1
  53. package/dist/List/index.d.ts +1 -1
  54. package/dist/{MediaTheme-UM8oOqwX.js → MediaTheme-CBkEmVe4.js} +1 -1
  55. package/dist/MoreMenu/index.d.ts +1 -1
  56. package/dist/MoreMenu/index.js +1 -1
  57. package/dist/{MoreMenu-MmvMRWv5.js → MoreMenu-CXshllJj.js} +1 -1
  58. package/dist/MultiSelector/index.d.ts +1 -1
  59. package/dist/MultiSelector/index.js +1 -1
  60. package/dist/{MultiSelector-DXrKQLmq.js → MultiSelector-Bs3Imw6k.js} +2 -2
  61. package/dist/NavItem/index.d.ts +1 -1
  62. package/dist/NumberInput/index.d.ts +1 -1
  63. package/dist/Outline/index.js +1 -1
  64. package/dist/{Outline-DlO_97b4.js → Outline-CnSt_KvS.js} +3 -2
  65. package/dist/OverflowList/index.d.ts +1 -1
  66. package/dist/Pagination/index.d.ts +1 -1
  67. package/dist/Pagination/index.js +1 -1
  68. package/dist/{Pagination-DM_W9Ue-.js → Pagination-kJhH6sPF.js} +1 -1
  69. package/dist/Popover/index.d.ts +2 -2
  70. package/dist/Popover/index.js +1 -1
  71. package/dist/{Popover-CxReY-4u.js → Popover-CqL_AXQB.js} +4 -4
  72. package/dist/PowerSearch/index.d.ts +1 -1
  73. package/dist/PowerSearch/index.js +1 -1
  74. package/dist/{PowerSearch-BwUWZG3p.js → PowerSearch-Ff2n7eJ2.js} +8 -8
  75. package/dist/ProgressBar/index.d.ts +1 -1
  76. package/dist/Radio/index.d.ts +1 -1
  77. package/dist/RadioList/index.d.ts +1 -1
  78. package/dist/ScrollableArea/index.d.ts +1 -1
  79. package/dist/SelectableCard/index.d.ts +1 -1
  80. package/dist/Selector/index.d.ts +1 -1
  81. package/dist/Selector/index.js +1 -1
  82. package/dist/{Selector-bH99g1vj.js → Selector-DgzSGUul.js} +2 -2
  83. package/dist/SideNav/index.d.ts +1 -1
  84. package/dist/SideNav/index.js +2 -2
  85. package/dist/{SideNav-C1ZxusAB.js → SideNav-DNQZ8l6b.js} +3 -3
  86. package/dist/Stepper/index.d.ts +1 -1
  87. package/dist/Switch/index.d.ts +1 -1
  88. package/dist/TabList/index.d.ts +1 -1
  89. package/dist/Table/index.d.ts +1 -1
  90. package/dist/Table/index.js +1 -1
  91. package/dist/{Table-ClHIgsKO.js → Table-CqAV7l7W.js} +8 -8
  92. package/dist/Text/index.d.ts +1 -1
  93. package/dist/TextArea/index.d.ts +1 -1
  94. package/dist/TextInput/index.d.ts +1 -1
  95. package/dist/Theme/index.d.ts +4 -3
  96. package/dist/Theme/index.js +4 -3
  97. package/dist/{Theme-BmTbbiAD.js → Theme-CwruhtLu.js} +290 -62
  98. package/dist/{TimeField-i5ESA500.js → TimeField-ojhX2ZOj.js} +1 -1
  99. package/dist/TimeInput/index.d.ts +1 -1
  100. package/dist/TimeInput/index.js +1 -1
  101. package/dist/{TimeInput-frnKZo1M.js → TimeInput-CfeDP72M.js} +1 -1
  102. package/dist/Timestamp/index.d.ts +1 -1
  103. package/dist/Toast/index.js +1 -1
  104. package/dist/{Toast-tAq4S96S.js → Toast-yUVFaZiJ.js} +26 -2
  105. package/dist/ToggleButton/index.d.ts +1 -1
  106. package/dist/Tokenizer/index.d.ts +1 -1
  107. package/dist/Tokenizer/index.js +1 -1
  108. package/dist/{Tokenizer-iFZAuIwu.js → Tokenizer-nSEekhN1.js} +2 -2
  109. package/dist/Toolbar/index.d.ts +1 -1
  110. package/dist/TopNav/index.d.ts +1 -1
  111. package/dist/TreeList/index.js +1 -1
  112. package/dist/{TreeList-Da_OKrv_.js → TreeList-CsgXzBdm.js} +2 -2
  113. package/dist/Typeahead/index.d.ts +1 -1
  114. package/dist/{adaptationTypes-Cn_pfrsw.d.ts → adaptationTypes-D874ONPJ.d.ts} +28 -6
  115. package/dist/{animator-CEHDYTfQ.js → animator-C0kqgDUJ.js} +3 -2
  116. package/dist/{assertOptions-CJgNig1l.js → assertOptions-DHfonaBU.js} +1 -1
  117. package/dist/{batch-D2a2MsSW.js → batch-DPlrpYU6.js} +3 -2
  118. package/dist/compactDefinition-BeFUKEFg.js +29 -0
  119. package/dist/compactDefinition-CMTR5KqU.d.ts +19 -0
  120. package/dist/composables/index.js +1 -1
  121. package/dist/{composables-Bs0O_SRd.js → composables-CVvk9709.js} +2 -2
  122. package/dist/{context-NKb_prrS.js → context-ZWA02GaM.js} +1 -1
  123. package/dist/{edge-tj-cLZYh.js → edge-DFaE6rUg.js} +1 -1
  124. package/dist/{edgeRide-DcUqLXE2.js → edgeRide-UdNxbwxY.js} +2 -2
  125. package/dist/{index-DVS4jM-l.d.ts → index-0RIgvtdm.d.ts} +1 -1
  126. package/dist/{index-D14kSf-g.d.ts → index-AgTJRqUY.d.ts} +3 -3
  127. package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
  128. package/dist/{index-Cw4CUe06.d.ts → index-CG6dbyeb.d.ts} +5 -5
  129. package/dist/{index-YKCx03zD.d.ts → index-COgrQZIL.d.ts} +2 -2
  130. package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
  131. package/dist/{index-C6IcBhAn.d.ts → index-C_iTVOHQ.d.ts} +4 -4
  132. package/dist/{index-FeZXsFO-.d.ts → index-CbA8rR_b.d.ts} +2 -2
  133. package/dist/{index-Bzi3A980.d.ts → index-ChqMaV6N.d.ts} +1 -1
  134. package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
  135. package/dist/{index-DGe-ApvN.d.ts → index-CuW4AQ7M.d.ts} +3 -3
  136. package/dist/{index-T5bzxQ30.d.ts → index-DCyYldjP.d.ts} +1 -1
  137. package/dist/{index-3qz8Qztx.d.ts → index-DH_xZI84.d.ts} +5 -5
  138. package/dist/{index-JE1HrzdJ.d.ts → index-DVX2jlTQ.d.ts} +2 -2
  139. package/dist/{index-668zPVsH.d.ts → index-DkYOGpsC.d.ts} +1 -1
  140. package/dist/{index-m3DOxOw6.d.ts → index-Dp6MmjIo.d.ts} +68 -68
  141. package/dist/{index-BIqW3_GP.d.ts → index-DtY_R6Oh.d.ts} +2 -2
  142. package/dist/{index-CTXG-KKT.d.ts → index-EUzmHHm6.d.ts} +2 -1
  143. package/dist/{index-B-3EGjfQ.d.ts → index-Q1oG9yIT.d.ts} +2 -2
  144. package/dist/{index-Bu4R0WZA.d.ts → index-QC9FDUDA.d.ts} +2 -2
  145. package/dist/{index-DIw5D3zj.d.ts → index-ZKBj_1nu.d.ts} +2 -2
  146. package/dist/{index-Ea2V_FSK.d.ts → index-aHC2C89h.d.ts} +4 -4
  147. package/dist/{index-Cm36VS1A.d.ts → index-mK1ICsVg.d.ts} +2 -2
  148. package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
  149. package/dist/index.d.ts +28 -27
  150. package/dist/index.js +34 -33
  151. package/dist/{landing-Bi7X7w_7.js → landing-CSCE9afT.js} +1 -1
  152. package/dist/{lazyBottomSheet-BVZ1yH8g.js → lazyBottomSheet-CbU1Pnfk.js} +1 -1
  153. package/dist/{linearEasing-ScK9LqAY.js → linearEasing-BiRVC8Mq.js} +1 -22
  154. package/dist/{presentationHold-7IkbR4d8.js → presentationHold-B4tK68sd.js} +3 -29
  155. package/dist/reducedMotionMark-CYSyfURo.js +34 -0
  156. package/dist/{resolveMotion-1cwESYvK.js → resolveMotion-B9NDPeUz.js} +1 -1
  157. package/dist/{themeTiming-NUkH9HsU.js → themeTiming-D1U0redl.js} +1 -111
  158. package/dist/tokenReferences-sKpv-7_O.js +167 -0
  159. package/dist/{types-BA1veIoa.d.ts → types-D97oBk6c.d.ts} +1 -1
  160. package/dist/{useHeldPresentation-7MH-RlSF.js → useHeldPresentation-BF5vGVUn.js} +1 -1
  161. package/dist/{useMenuDrillIn-Cj6MM77J.js → useMenuDrillIn-CMsgOcDP.js} +2 -1
  162. package/package.json +1 -1
  163. package/reset.css +1 -1
  164. package/styles/chat.css +5 -5
  165. package/styles/drawer.css +9 -0
  166. package/dist/motionTokenDefaults-EFzpiAF5.js +0 -38
@@ -0,0 +1,167 @@
1
+ //#region src/Theme/motionTokenDefaults.ts
2
+ /**
3
+ * @file motionTokenDefaults.ts
4
+ * @input Nothing: the values `@astryx-vue/themes` declares on `:root`
5
+ * @output durationDefaults and easeDefaults, keyed by the theme vocabulary's
6
+ * unprefixed names, and their name types
7
+ * @position Theme utility with no imports. The neutral theme stylesheet
8
+ * (`packages/themes/neutral/base.css`) declares these values as
9
+ * `--astryx-duration-*` and `--astryx-ease-*`; motionTokenDefaults.test.ts
10
+ * keeps the two equal. Motion tokens a theme generates (`tempo`,
11
+ * `character`) start from these values, and the motion foundation falls
12
+ * back to them where no stylesheet applies. Pure; safe on the server.
13
+ */
14
+ const durationDefaults = {
15
+ "--duration-fast-min": "95ms",
16
+ "--duration-fast": "125ms",
17
+ "--duration-fast-max": "165ms",
18
+ "--duration-medium-min": "225ms",
19
+ "--duration-medium": "300ms",
20
+ "--duration-medium-max": "400ms",
21
+ "--duration-slow-min": "525ms",
22
+ "--duration-slow": "700ms",
23
+ "--duration-slow-max": "935ms",
24
+ /** The standard dismissal duration. */
25
+ "--duration-exit": "var(--duration-fast)"
26
+ };
27
+ const easeDefaults = {
28
+ /** Decelerates: state changes. */
29
+ "--ease-standard": "cubic-bezier(0.24, 1, 0.4, 1)",
30
+ /** Entrances. A theme's `character` sets it; at `'standard'` it equals `--ease-standard`. */
31
+ "--ease-entrance": "cubic-bezier(0.24, 1, 0.4, 1)",
32
+ /** Moves on screen. A theme's `character` sets it; at `'standard'` it equals `--ease-standard`. */
33
+ "--ease-move": "cubic-bezier(0.24, 1, 0.4, 1)",
34
+ /** Accelerates: things leaving. */
35
+ "--ease-exit": "cubic-bezier(0.3, 0, 0.6, 0.6)"
36
+ };
37
+ //#endregion
38
+ //#region src/Theme/tokenReferences.ts
39
+ /**
40
+ * @file tokenReferences.ts
41
+ * @input A flat map of token names to raw CSS values
42
+ * @output `resolveTokenReferences`, which follows `var(--name[, fallback])`
43
+ * references through the map
44
+ * @position Theme utility with no imports: themeMotion.ts resolves motion
45
+ * tokens written as references on it, and the motion foundation resolves
46
+ * the declared timing defaults on it. Pure; safe on the server.
47
+ */
48
+ /**
49
+ * Call `visit` for each top-level character of a CSS value. A top-level
50
+ * character is outside parentheses and outside quoted strings. In a quoted
51
+ * string, a backslash escapes the next character. The scan stops when `visit`
52
+ * returns true.
53
+ */
54
+ function scanTopLevel(input, visit) {
55
+ let depth = 0;
56
+ let quote = null;
57
+ let isEscaped = false;
58
+ for (let i = 0; i < input.length; i++) {
59
+ const char = input[i];
60
+ if (quote !== null) {
61
+ if (isEscaped) isEscaped = false;
62
+ else if (char === "\\") isEscaped = true;
63
+ else if (char === quote) quote = null;
64
+ continue;
65
+ }
66
+ if (char === "\"" || char === "'") {
67
+ quote = char;
68
+ continue;
69
+ }
70
+ if (char === "(") {
71
+ depth++;
72
+ continue;
73
+ }
74
+ if (char === ")") {
75
+ depth = Math.max(0, depth - 1);
76
+ continue;
77
+ }
78
+ if (depth === 0 && visit(i)) return;
79
+ }
80
+ }
81
+ /**
82
+ * Split a CSS value on the whitespace between its components. Whitespace
83
+ * inside parentheses or quotes belongs to one component, so
84
+ * `clamp(8px, 2vw, 16px)` and `var(--gap, 1px 2px)` each stay whole. An
85
+ * empty value has no components.
86
+ */
87
+ function splitTopLevelWhitespace(input) {
88
+ const parts = [];
89
+ let start = 0;
90
+ scanTopLevel(input, (i) => {
91
+ if (/\s/.test(input[i] ?? "")) {
92
+ if (i > start) parts.push(input.slice(start, i));
93
+ start = i + 1;
94
+ }
95
+ return false;
96
+ });
97
+ if (input.length > start) parts.push(input.slice(start));
98
+ return parts;
99
+ }
100
+ /**
101
+ * Split the arguments of a CSS function body on the first top-level comma.
102
+ * Handles nested functions such as rgba(), color-mix(), var(), and quoted strings.
103
+ */
104
+ function splitTopLevelComma(input) {
105
+ let split = null;
106
+ scanTopLevel(input, (i) => {
107
+ if (input[i] !== ",") return false;
108
+ split = [input.slice(0, i).trim(), input.slice(i + 1).trim()];
109
+ return true;
110
+ });
111
+ return split;
112
+ }
113
+ /** Index of the `)` matching the `(` at `openIndex`, or -1 when unbalanced. */
114
+ function findMatchingParen(input, openIndex) {
115
+ let depth = 0;
116
+ for (let i = openIndex; i < input.length; i++) {
117
+ const char = input[i];
118
+ if (char === "(") depth++;
119
+ else if (char === ")") {
120
+ depth--;
121
+ if (depth === 0) return i;
122
+ }
123
+ }
124
+ return -1;
125
+ }
126
+ /**
127
+ * Resolves every value in `raw` to a concrete one: each `var(--name[,
128
+ * fallback])` is replaced by `name`'s resolved value, or by its fallback when
129
+ * `raw` has no `name`, and is kept as written when neither exists or the
130
+ * references form a cycle.
131
+ */
132
+ function resolveTokenReferences(raw) {
133
+ const cache = {};
134
+ const substitute = (expr, seen) => {
135
+ const start = expr.indexOf("var(");
136
+ if (start === -1) return expr;
137
+ const openIndex = start + 3;
138
+ const closeIndex = findMatchingParen(expr, openIndex);
139
+ if (closeIndex === -1) return expr;
140
+ const inner = expr.slice(openIndex + 1, closeIndex);
141
+ const commaSplit = splitTopLevelComma(inner);
142
+ const name = (commaSplit ? commaSplit[0] : inner).trim();
143
+ const fallback = commaSplit ? commaSplit[1] : null;
144
+ let replacement;
145
+ if (seen.has(name)) replacement = expr.slice(start, closeIndex + 1);
146
+ else if (name in raw) {
147
+ seen.add(name);
148
+ replacement = reference(name, seen);
149
+ seen.delete(name);
150
+ } else if (fallback !== null) replacement = substitute(fallback.trim(), seen);
151
+ else replacement = expr.slice(start, closeIndex + 1);
152
+ const rest = substitute(expr.slice(closeIndex + 1), seen);
153
+ return expr.slice(0, start) + replacement + rest;
154
+ };
155
+ const reference = (name, seen) => {
156
+ if (name in cache) return cache[name];
157
+ const value = raw[name];
158
+ if (value === void 0) return "";
159
+ const resolved = value.includes("var(") ? substitute(value, seen) : value;
160
+ cache[name] = resolved;
161
+ return resolved;
162
+ };
163
+ for (const name of Object.keys(raw)) reference(name, /* @__PURE__ */ new Set());
164
+ return cache;
165
+ }
166
+ //#endregion
167
+ export { easeDefaults as i, splitTopLevelWhitespace as n, durationDefaults as r, resolveTokenReferences as t };
@@ -1,5 +1,5 @@
1
1
  import { n as LayerPlacement, t as LayerAlignment } from "./position-DFW5ymAF.js";
2
- import "./adaptationTypes-Cn_pfrsw.js";
2
+ import "./compactDefinition-CMTR5KqU.js";
3
3
  import { ComputedRef, MaybeRefOrGetter } from "vue";
4
4
  //#region src/composables/internal/presentation.d.ts
5
5
  type AdaptivePresentation = 'popover' | 'bottom-sheet' | 'adaptive';
@@ -1,4 +1,4 @@
1
- import { i as useAdaptivePresentation, n as usePresentationHold } from "./presentationHold-7IkbR4d8.js";
1
+ import { i as useAdaptivePresentation, n as usePresentationHold } from "./presentationHold-B4tK68sd.js";
2
2
  import { computed, toValue, watch } from "vue";
3
3
  //#region src/layer/useHeldPresentation.ts
4
4
  function useHeldPresentation(presentation, isOpen) {
@@ -3,7 +3,8 @@ import { t as _sfc_main$4 } from "./Icon-Dk0jccgU.js";
3
3
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
4
4
  import { t as _sfc_main$5 } from "./Item-C9u_kQUO.js";
5
5
  import { t as _sfc_main$6 } from "./CheckboxIndicator-fH4d-JE1.js";
6
- import { a as useCompactDefinition, r as readCompactTouch } from "./presentationHold-7IkbR4d8.js";
6
+ import { r as useCompactDefinition } from "./compactDefinition-BeFUKEFg.js";
7
+ import { r as readCompactTouch } from "./presentationHold-B4tK68sd.js";
7
8
  import { t as dropdownMenuMessages } from "./dropdown-menu-BDu4gWwQ.js";
8
9
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useAttrs, useModel, useSlots, watch, withCtx } from "vue";
9
10
  import "../styles/dropdown-menu.css";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astryx-vue/core",
3
3
  "type": "module",
4
- "version": "0.30.1",
4
+ "version": "0.31.0",
5
5
  "description": "Vue 3 components for the unofficial astryx-vue port of Astryx. Not affiliated with Meta.",
6
6
  "author": "ShenQingchuan",
7
7
  "license": "MIT",
package/reset.css CHANGED
@@ -236,7 +236,7 @@
236
236
  */
237
237
  :where(input, textarea)::placeholder {
238
238
  opacity: 1;
239
- color: var(--astryx-color-text-secondary, light-dark(#474747, #9e9e9e));
239
+ color: var(--astryx-color-text-secondary, light-dark(#474747, #a8a8a8));
240
240
  }
241
241
 
242
242
  /*
package/styles/chat.css CHANGED
@@ -872,7 +872,7 @@
872
872
  box-sizing: border-box;
873
873
  width: 100%;
874
874
  min-width: 0;
875
- --_chat-composer-radius: var(--astryx-radius-chat, 28px);
875
+ --_chat-composer-radius: var(--astryx-radius-chat, var(--astryx-radius-container, 0.75rem));
876
876
  --_chat-composer-padding: var(--astryx-spacing-3, 12px);
877
877
  --astryx-button-radius: max(
878
878
  var(--astryx-radius-element, 0.625rem),
@@ -1151,12 +1151,12 @@
1151
1151
  padding-inline: var(--astryx-spacing-4, 16px);
1152
1152
  padding-block-start: var(--astryx-spacing-3, 12px);
1153
1153
  /* 抽屉塞在输入区正文后面一个圆角的高度,顶部圆角和这段塞入量都跟着输入区自己的圆角;单独使用时取聊天圆角。 */
1154
- padding-block-end: calc(var(--astryx-spacing-3, 12px) + var(--_chat-composer-radius, var(--astryx-radius-chat, 28px)));
1155
- margin-block-end: calc(-1 * var(--_chat-composer-radius, var(--astryx-radius-chat, 28px)));
1154
+ padding-block-end: calc(var(--astryx-spacing-3, 12px) + var(--_chat-composer-radius, var(--astryx-radius-chat, var(--astryx-radius-container, 0.75rem))));
1155
+ margin-block-end: calc(-1 * var(--_chat-composer-radius, var(--astryx-radius-chat, var(--astryx-radius-container, 0.75rem))));
1156
1156
  background-color: var(--astryx-color-background-surface);
1157
1157
  background-image: linear-gradient(var(--astryx-color-background-muted), var(--astryx-color-background-muted));
1158
- border-start-start-radius: var(--_chat-composer-radius, var(--astryx-radius-chat, 28px));
1159
- border-start-end-radius: var(--_chat-composer-radius, var(--astryx-radius-chat, 28px));
1158
+ border-start-start-radius: var(--_chat-composer-radius, var(--astryx-radius-chat, var(--astryx-radius-container, 0.75rem)));
1159
+ border-start-end-radius: var(--_chat-composer-radius, var(--astryx-radius-chat, var(--astryx-radius-container, 0.75rem)));
1160
1160
  }
1161
1161
 
1162
1162
  .astryx-chat-drawer__toggle {
package/styles/drawer.css CHANGED
@@ -22,6 +22,15 @@
22
22
  padding-block-end: env(safe-area-inset-bottom, 0px);
23
23
  }
24
24
 
25
+ /*
26
+ * 主题给抽屉写的内边距走 `--astryx-drawer-padding`,没写就沿用对话框的。
27
+ * 对话框内层读的是 `--_dialog-padding`(组件自己的 padding 属性)和
28
+ * `--astryx-dialog-padding`,这里在它们之间插入抽屉自己的那一层。
29
+ */
30
+ .astryx-drawer .astryx-dialog__inner {
31
+ --_dialog-pad-block-start: var(--_dialog-padding, var(--astryx-drawer-padding, var(--astryx-dialog-padding, var(--astryx-spacing-4, 1rem))));
32
+ }
33
+
25
34
  .astryx-drawer[open] {
26
35
  animation: astryx-drawer-slide-in var(--astryx-duration-medium, 200ms) var(--astryx-ease-standard, ease-out) both;
27
36
  }
@@ -1,38 +0,0 @@
1
- //#region src/Theme/motionTokenDefaults.ts
2
- /**
3
- * @file motionTokenDefaults.ts
4
- * @input Nothing: the values `@astryx-vue/themes` declares on `:root`
5
- * @output durationDefaults and easeDefaults, keyed by the theme vocabulary's
6
- * unprefixed names, and their name types
7
- * @position Theme utility with no imports. The neutral theme stylesheet
8
- * (`packages/themes/neutral/base.css`) declares these values as
9
- * `--astryx-duration-*` and `--astryx-ease-*`; motionTokenDefaults.test.ts
10
- * keeps the two equal. Motion tokens a theme generates (`tempo`,
11
- * `character`) start from these values, and the motion foundation falls
12
- * back to them where no stylesheet applies. Pure; safe on the server.
13
- */
14
- const durationDefaults = {
15
- "--duration-fast-min": "95ms",
16
- "--duration-fast": "125ms",
17
- "--duration-fast-max": "165ms",
18
- "--duration-medium-min": "225ms",
19
- "--duration-medium": "300ms",
20
- "--duration-medium-max": "400ms",
21
- "--duration-slow-min": "525ms",
22
- "--duration-slow": "700ms",
23
- "--duration-slow-max": "935ms",
24
- /** The standard dismissal duration. */
25
- "--duration-exit": "var(--duration-fast)"
26
- };
27
- const easeDefaults = {
28
- /** Decelerates: state changes. */
29
- "--ease-standard": "cubic-bezier(0.24, 1, 0.4, 1)",
30
- /** Entrances. A theme's `character` sets it; at `'standard'` it equals `--ease-standard`. */
31
- "--ease-entrance": "cubic-bezier(0.24, 1, 0.4, 1)",
32
- /** Moves on screen. A theme's `character` sets it; at `'standard'` it equals `--ease-standard`. */
33
- "--ease-move": "cubic-bezier(0.24, 1, 0.4, 1)",
34
- /** Accelerates: things leaving. */
35
- "--ease-exit": "cubic-bezier(0.3, 0, 0.6, 0.6)"
36
- };
37
- //#endregion
38
- export { easeDefaults as n, durationDefaults as t };