@mkbabb/glass-ui 10.1.5 → 11.0.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 (214) hide show
  1. package/MIGRATION.md +1024 -1461
  2. package/README.md +2 -2
  3. package/dist/DialogContent-DG5kseRQ.js +159 -0
  4. package/dist/DropdownMenuTrigger-uhSXgEfK.js +76 -0
  5. package/dist/{Surface-1nPoabc3.js → Surface-C7wq2j0A.js} +3 -0
  6. package/dist/aurora.css +1 -0
  7. package/dist/aurora.js +246 -2472
  8. package/dist/auroraImageSource-xNLDUjcy.js +30 -0
  9. package/dist/axes.js +8 -8
  10. package/dist/blob.css +1 -0
  11. package/dist/blob.js +57 -54
  12. package/dist/budget-CJfhLIIV.js +13 -0
  13. package/dist/button-CAKhiOZy.js +113 -0
  14. package/dist/button.js +1 -1
  15. package/dist/{card-ByyqRBvK.js → card-D_uXphvL.js} +4 -1
  16. package/dist/card.js +1 -1
  17. package/dist/carousel.js +3 -2
  18. package/dist/{checkbox-B1qn65se.js → checkbox-COLnvULu.js} +1 -0
  19. package/dist/checkbox.css +1 -0
  20. package/dist/checkbox.js +1 -1
  21. package/dist/{collapsible-DFzK29Oh.js → collapsible-Bd4Et730.js} +1 -0
  22. package/dist/collapsible.css +1 -0
  23. package/dist/collapsible.js +1 -1
  24. package/dist/color-HkUaTAJj.js +270 -0
  25. package/dist/{color.glsl-DTJhdekG.js → color.glsl-bFJm8k5R.js} +4 -16
  26. package/dist/color.wgsl-B-qDJ_OM.js +4 -0
  27. package/dist/{command-CatrAsrl.js → command-BsFOGZwB.js} +3 -2
  28. package/dist/command.css +1 -0
  29. package/dist/command.js +1 -1
  30. package/dist/component-styles.css +0 -1
  31. package/dist/components/_shared/axes.d.ts +7 -0
  32. package/dist/components/_shared/feedback/dot-ring.css +1 -1
  33. package/dist/components/_shared/overlay/focus-return.d.ts +9 -0
  34. package/dist/components/_shared/overlay/index.d.ts +3 -0
  35. package/dist/components/_shared/overlay/root-scroll-lock.d.ts +4 -0
  36. package/dist/components/_shared/overlay/sheet-width.d.ts +2 -0
  37. package/dist/components/_shared/shape/useBarShape.d.ts +4 -0
  38. package/dist/components/aurora/composables/auroraFallbackGround.d.ts +12 -0
  39. package/dist/components/aurora/constants/presets.d.ts +21 -0
  40. package/dist/components/aurora/index.d.ts +2 -2
  41. package/dist/components/button/styles.css +1 -1
  42. package/dist/components/dark-mode-toggle/dark-mode-toggle.css +1 -1
  43. package/dist/components/dialog/DialogContent.vue.d.ts +2 -2
  44. package/dist/components/dialog/ModalOverlay.vue.d.ts +2 -2
  45. package/dist/components/dialog/ModalScrim.vue.d.ts +26 -0
  46. package/dist/components/dialog/styles.css +1 -1
  47. package/dist/components/dock/GlassDock.vue.d.ts +4 -1
  48. package/dist/components/dock/composables/useDockShellProps.d.ts +34 -2
  49. package/dist/components/dock/composables/useDockState.d.ts +5 -0
  50. package/dist/components/dock/index.d.ts +1 -2
  51. package/dist/components/dock/styles/controls/icon-button.css +1 -1
  52. package/dist/components/dock/styles/controls/tab-button.css +1 -1
  53. package/dist/components/dock/styles/morph.css +1 -1
  54. package/dist/components/dock/styles/run.css +1 -1
  55. package/dist/components/dock/styles/shell.css +1 -1
  56. package/dist/components/dock/trigger.d.ts +1 -0
  57. package/dist/components/expandable-container/ExpandableContainer.vue.d.ts +30 -29
  58. package/dist/components/menu/ContextMenu.vue.d.ts +27 -0
  59. package/dist/components/menu/DropdownMenu.vue.d.ts +5 -23
  60. package/dist/components/menu/context.d.ts +18 -5
  61. package/dist/components/menu/family-click.d.ts +2 -0
  62. package/dist/components/menu/family-context.d.ts +2 -0
  63. package/dist/components/menu/index.d.ts +1 -1
  64. package/dist/components/sheet/SheetContent.vue.d.ts +2 -2
  65. package/dist/components/sortable-list/styles.css +1 -0
  66. package/dist/components/surface/Surface.vue.d.ts +4 -1
  67. package/dist/components/tabs/composables/useTabDragMorph.d.ts +4 -7
  68. package/dist/components/tabs/styles/segmented.css +1 -1
  69. package/dist/components/tabs/types.d.ts +7 -8
  70. package/dist/composables/glass/fieldPaint.d.ts +4 -0
  71. package/dist/composables/glass/useGlassBackdropLuminance.d.ts +7 -6
  72. package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +8 -0
  73. package/dist/composables/motion/core/motionTempo.d.ts +2 -1
  74. package/dist/composables/motion/morph/useDragMorph.d.ts +2 -2
  75. package/dist/composables/motion/morph/useSelectionGroup.d.ts +6 -25
  76. package/dist/composables/motion/morph/useSelectionIndicator.d.ts +8 -54
  77. package/dist/composables/motion/spring/useLiquidFlex.d.ts +3 -5
  78. package/dist/composables/motion/spring/useSpringMount.d.ts +0 -9
  79. package/dist/{configurator-Dl10mc3L.js → configurator-C1ZKEf1b.js} +7 -5
  80. package/dist/configurator.css +1 -0
  81. package/dist/configurator.js +1 -1
  82. package/dist/constants-DfrO-IaH.js +8 -0
  83. package/dist/constellation.css +1 -0
  84. package/dist/constellation.js +2 -1
  85. package/dist/control.css +1 -0
  86. package/dist/{control.css_vue_type_style_index_0_src_true_lang-BIdufaDG.js → control.css_vue_type_style_index_0_src_true_lang-D2hdtjs4.js} +1 -0
  87. package/dist/{createCanvasLifecycle-hJHobVTn.js → createCanvasLifecycle-DS0vEs_G.js} +76 -75
  88. package/dist/dark-mode-toggle.js +1 -1
  89. package/dist/{data-table-8y6fbyOB.js → data-table-CunuMkZ3.js} +1 -0
  90. package/dist/data-table.css +1 -0
  91. package/dist/data-table.js +1 -1
  92. package/dist/{deck-Cm_VmyNL.js → deck-Bc-2mEKE.js} +1 -0
  93. package/dist/deck.js +1 -1
  94. package/dist/dialog.js +1 -1
  95. package/dist/dock-trigger.d.ts +1 -0
  96. package/dist/dock-trigger.js +88 -0
  97. package/dist/dock.js +685 -729
  98. package/dist/easing.js +4 -4
  99. package/dist/expandable-container-wS1awXGd.js +135 -0
  100. package/dist/expandable-container.css +1 -0
  101. package/dist/expandable-container.js +1 -1
  102. package/dist/{fading-scroll-ClCPooXb.js → fading-scroll-D3Y20ibL.js} +1 -1
  103. package/dist/fading-scroll.js +1 -1
  104. package/dist/fieldPaint-Ci77oajZ.js +7 -0
  105. package/dist/fourier-field.css +1 -0
  106. package/dist/fourier-field.js +15 -13
  107. package/dist/glSetup-DMaDgrEj.js +577 -0
  108. package/dist/glass-ui.js +66 -65
  109. package/dist/handmark.css +1 -0
  110. package/dist/handmark.js +82 -71
  111. package/dist/index.css +1 -0
  112. package/dist/index.d.ts +1 -1
  113. package/dist/{input-eLZ_AU7l.js → input-BLF2pMHE.js} +1 -1
  114. package/dist/input.js +1 -1
  115. package/dist/{label-CE03H1KL.js → label-ryNPL7e6.js} +1 -0
  116. package/dist/label.css +1 -0
  117. package/dist/label.js +1 -1
  118. package/dist/labeled-field.css +1 -0
  119. package/dist/labeled-field.js +5 -4
  120. package/dist/{menu-DaYAZiVW.js → menu-C_l2Sslf.js} +162 -112
  121. package/dist/menu.js +3 -3
  122. package/dist/metric.js +1 -0
  123. package/dist/motion-core.js +138 -44
  124. package/dist/motion-lHDAQHEE.js +91 -0
  125. package/dist/motion.js +5 -5
  126. package/dist/motionTempo-DXdVbCWr.js +13 -0
  127. package/dist/music-staff.js +1 -0
  128. package/dist/{number-field-RP89046a.js → number-field-BXFUP49Z.js} +3 -2
  129. package/dist/number-field.css +1 -0
  130. package/dist/number-field.js +1 -1
  131. package/dist/pager-dots.css +1 -0
  132. package/dist/pager-dots.js +3 -2
  133. package/dist/participation-C5y5VZTN.js +52 -0
  134. package/dist/{popover-BdpoE4Ar.js → popover-DQUmwuAa.js} +3 -2
  135. package/dist/popover.js +1 -1
  136. package/dist/{progress-eVa-mc7J.js → progress-BUn0Bw7Z.js} +1 -0
  137. package/dist/progress.css +1 -0
  138. package/dist/progress.js +1 -1
  139. package/dist/{radio-group-B58Bz16F.js → radio-group-xdEy2tdi.js} +1 -0
  140. package/dist/radio-group.css +1 -0
  141. package/dist/radio-group.js +1 -1
  142. package/dist/root-scroll-lock-DJFrQhMa.js +22 -0
  143. package/dist/select-Dt5dXm87.js +309 -0
  144. package/dist/select.js +1 -1
  145. package/dist/{separator-D4EZM10u.js → separator-C4y9p_ky.js} +1 -0
  146. package/dist/separator.css +1 -0
  147. package/dist/separator.js +1 -1
  148. package/dist/sheet-DLqNUIZl.js +347 -0
  149. package/dist/sheet-width-DgXgJNa5.js +18 -0
  150. package/dist/sheet.js +2 -2
  151. package/dist/{slider-Dg3Qqdyo.js → slider-B4w12E_u.js} +8 -8
  152. package/dist/slider.js +1 -1
  153. package/dist/sortable-list.js +2 -1
  154. package/dist/{status-dot-W4LFiJps.js → status-dot-BDZKcRxy.js} +2 -1
  155. package/dist/status-dot.css +1 -0
  156. package/dist/status-dot.js +1 -1
  157. package/dist/styles/components.css +1 -1
  158. package/dist/styles/glass/glass-capsule.css +1 -1
  159. package/dist/styles/glass/glass-chip.css +1 -1
  160. package/dist/styles/glass/mark.css +1 -1
  161. package/dist/styles/glass/overlay-plate.css +1 -1
  162. package/dist/styles/glass/surface-axis.css +1 -1
  163. package/dist/styles/index.css +1 -1
  164. package/dist/styles/theme/radius.css +1 -1
  165. package/dist/styles/tokens/color-radius.css +1 -1
  166. package/dist/styles/tokens/manifest.d.ts +1 -1
  167. package/dist/styles/tokens/scale-paper.css +1 -1
  168. package/dist/styles/utilities/base-misc.css +1 -1
  169. package/dist/surface.js +1 -1
  170. package/dist/{switch-BYUZ6g9G.js → switch-DLfGYU35.js} +1 -0
  171. package/dist/switch.css +1 -0
  172. package/dist/switch.js +1 -1
  173. package/dist/tabs-NgTRPGZx.js +229 -0
  174. package/dist/tabs.js +1 -1
  175. package/dist/textarea.js +1 -1
  176. package/dist/timeline.css +1 -0
  177. package/dist/timeline.js +4 -3
  178. package/dist/toggle-group-DgXcJGD6.js +129 -0
  179. package/dist/toggle-group.css +1 -0
  180. package/dist/toggle-group.js +1 -1
  181. package/dist/tokens.js +2 -0
  182. package/dist/{tooltip-CZVubnJf.js → tooltip-Do3qCw0r.js} +1 -1
  183. package/dist/tooltip.js +1 -1
  184. package/dist/typewriter.css +1 -0
  185. package/dist/typewriter.js +1 -0
  186. package/dist/uniformBridge-CJyy7NOn.js +150 -0
  187. package/dist/useBarShape-CmP35Z8o.js +24 -0
  188. package/dist/{useCanvas2D-CQRElMyE.js → useCanvas2D-Bhpwua98.js} +1 -1
  189. package/dist/{useDockCtaReceive-BSSgD6mu.js → useDockCtaReceive-Dn_-paqP.js} +1 -1
  190. package/dist/{useDragMorph-B363RUbF.js → useDragMorph-BEI74U0t.js} +51 -40
  191. package/dist/{color.wgsl-BTszLY39.js → useGpuSubstrate-Y5XAdU8d.js} +7 -7
  192. package/dist/{useLiquidPress-h1scrPtP.js → useLiquidPress-D5mjZC6U.js} +2 -2
  193. package/dist/useScrollChrome-DMP6kDI9.js +67 -0
  194. package/dist/useSelectionGroup-DAQv5Lb5.js +186 -0
  195. package/dist/{useSpring-9u2_shxV.js → useSpring-Aof0nTRt.js} +1 -1
  196. package/dist/useSpringMount-jgNkymRl.js +73 -0
  197. package/dist/wgpuSetup-CFuqd_RP.js +1278 -0
  198. package/package.json +8 -1
  199. package/dist/DialogContent-CwIBvou_.js +0 -157
  200. package/dist/DropdownMenuTrigger-CKRnhDSQ.js +0 -93
  201. package/dist/button-BOFTUPyU.js +0 -110
  202. package/dist/composables/motion/morph/eyeglass.d.ts +0 -141
  203. package/dist/expandable-container-CZUj9BzY.js +0 -142
  204. package/dist/glass-ui.css +0 -2
  205. package/dist/motion-BvV1_24p.js +0 -61
  206. package/dist/motionTempo-tscp92Nm.js +0 -7
  207. package/dist/participation-B7UFdgXB.js +0 -55
  208. package/dist/select-BiF0FCZf.js +0 -292
  209. package/dist/sheet-DmJxgAHc.js +0 -345
  210. package/dist/tabs-C5sC0fBE.js +0 -269
  211. package/dist/toggle-group-CC5b3o1R.js +0 -125
  212. package/dist/useScrollChrome-BJbWV32F.js +0 -162
  213. package/dist/useSelectionGroup-zsEwitF6.js +0 -291
  214. package/dist/useSpringMount-OA-0mTNv.js +0 -73
package/dist/handmark.js CHANGED
@@ -1,7 +1,9 @@
1
- import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { n as t } from "./constants-Dk96HZHu.js";
3
- import { n, t as r } from "./prng-2uS6J_A1.js";
4
- import { Fragment as i, computed as a, createElementBlock as o, createElementVNode as s, defineComponent as c, nextTick as l, normalizeClass as u, normalizeStyle as d, onBeforeUnmount as f, onMounted as p, openBlock as m, ref as h, renderList as g, renderSlot as _, unref as v, useId as ee, watch as y } from "vue";
1
+ import "./handmark.css";
2
+ import { t as e } from "./useIntersectionPause-CzKR3EyP.js";
3
+ import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
4
+ import { n } from "./constants-Dk96HZHu.js";
5
+ import { n as r, t as i } from "./prng-2uS6J_A1.js";
6
+ import { Fragment as a, computed as o, createElementBlock as s, createElementVNode as c, defineComponent as l, nextTick as u, normalizeClass as d, normalizeStyle as f, onBeforeUnmount as p, onMounted as m, openBlock as h, ref as g, renderList as _, renderSlot as v, unref as y, useId as ee, watch as te } from "vue";
5
7
  //#region src/components/handmark/stroke.ts
6
8
  var b = [
7
9
  "underline",
@@ -12,7 +14,7 @@ var b = [
12
14
  O * .9115 * 1.055 * 1.036;
13
15
  var A = (e) => Math.round(e * 1e3) / 1e3, j = (e) => e * Math.PI / 180;
14
16
  function M(e) {
15
- let t = n(e >>> 0);
17
+ let t = r(e >>> 0);
16
18
  return {
17
19
  next: t,
18
20
  span: (e, n) => e + t() * (n - e),
@@ -58,7 +60,7 @@ function R(e, t) {
58
60
  b: O * (S * t / 2 + .08 * t)
59
61
  };
60
62
  }
61
- function te(e, t) {
63
+ function ne(e, t) {
62
64
  return R(e, t).a - e.width / 2;
63
65
  }
64
66
  function z(e, t) {
@@ -121,29 +123,29 @@ function W(e, t) {
121
123
  }
122
124
  return `${U(i.concat(a.reverse()))} Z`;
123
125
  }
124
- function ne(e) {
126
+ function G(e) {
125
127
  return e.length ? `${U(e)} Z` : "";
126
128
  }
127
129
  function re(e, t) {
128
- return (r(e) ^ t * 2654435761) >>> 0;
130
+ return (i(e) ^ t * 2654435761) >>> 0;
129
131
  }
130
132
  //#endregion
131
133
  //#region src/components/handmark/HandMark.vue?vue&type=script&setup=true&lang.ts
132
- var ie = ["data-shape"], ae = { key: 0 }, oe = { key: 1 }, se = ["width", "height"], G = [
134
+ var ie = ["data-shape"], ae = { key: 0 }, oe = { key: 1 }, se = ["width", "height"], ce = [
133
135
  "id",
134
136
  "x",
135
137
  "y",
136
138
  "width",
137
139
  "height"
138
- ], ce = [
140
+ ], le = [
139
141
  "data-i",
140
142
  "d",
141
143
  "stroke-width"
142
- ], le = [
144
+ ], ue = [
143
145
  "d",
144
146
  "fill",
145
147
  "mask"
146
- ], K = /*#__PURE__*/ e(/* @__PURE__ */ c({
148
+ ], K = /*#__PURE__*/ t(/* @__PURE__ */ l({
147
149
  __name: "HandMark",
148
150
  props: {
149
151
  shape: { default: "underline" },
@@ -155,11 +157,11 @@ var ie = ["data-shape"], ae = { key: 0 }, oe = { key: 1 }, se = ["width", "heigh
155
157
  default: !0
156
158
  }
157
159
  },
158
- setup(e, { expose: n }) {
159
- let r = e, c = (e) => Math.ceil(e * 1e3) / 1e3, b = (e) => Math.floor(e * 1e3) / 1e3, x = ee().replace(/[^a-zA-Z0-9_-]/g, ""), S = h(null), C = h([]), T = h([]), E = h(0), D = h(1), O = h(0), k = h(!1), A = a(() => {
160
- let e = Number(r.color);
160
+ setup(t, { expose: r }) {
161
+ let i = t, l = (e) => Math.ceil(e * 1e3) / 1e3, b = (e) => Math.floor(e * 1e3) / 1e3, x = ee().replace(/[^a-zA-Z0-9_-]/g, ""), S = g(null), C = g([]), T = g([]), E = g(0), D = g(1), O = g(0), k = g(!1), A = o(() => {
162
+ let e = Number(i.color);
161
163
  return Number.isFinite(e) ? e : 78;
162
- }), j = a(() => r.shape === "highlight" ? "var(--hm-band)" : r.color), M = a(() => ({
164
+ }), j = o(() => i.shape === "highlight" ? "var(--hm-band)" : i.color), M = o(() => ({
163
165
  "--hm-h": `${A.value}`,
164
166
  "--hm-reserve": E.value ? `${E.value}px` : "0px"
165
167
  }));
@@ -174,13 +176,13 @@ var ie = ["data-shape"], ae = { key: 0 }, oe = { key: 1 }, se = ["width", "heigh
174
176
  return t ?? document.body;
175
177
  }
176
178
  function V(e, t) {
177
- let n = R(e), i = Array.from(n.querySelectorAll(`.hm[data-shape="${r.shape}"]`)), a = /* @__PURE__ */ new Set();
179
+ let n = R(e), r = Array.from(n.querySelectorAll(`.hm[data-shape="${i.shape}"]`)), a = /* @__PURE__ */ new Set();
178
180
  for (let e of Array.from(n.querySelectorAll(".hm"))) {
179
181
  let n = e.getBoundingClientRect();
180
182
  n.height > 0 && n.top < t - 1 && a.add(Math.round(n.top));
181
183
  }
182
184
  return {
183
- index: Math.max(0, i.indexOf(e)),
185
+ index: Math.max(0, r.indexOf(e)),
184
186
  line: a.size
185
187
  };
186
188
  }
@@ -207,16 +209,16 @@ var ie = ["data-shape"], ae = { key: 0 }, oe = { key: 1 }, se = ["width", "heigh
207
209
  return n.detach?.(), r.sort((e, t) => e.y - t.y || e.x - t.x);
208
210
  }
209
211
  function K(e, t) {
210
- let n = t / 2 + 1, r = (e) => b(Math.min(...e) - n), i = (e) => c(Math.max(...e) + n), a = e.map((e) => e.x), o = e.map((e) => e.y), s = r(a), l = r(o);
212
+ let n = t / 2 + 1, r = (e) => b(Math.min(...e) - n), i = (e) => l(Math.max(...e) + n), a = e.map((e) => e.x), o = e.map((e) => e.y), s = r(a), c = r(o);
211
213
  return {
212
214
  x: s,
213
- y: l,
214
- width: c(i(a) - s),
215
- height: c(i(o) - l)
215
+ y: c,
216
+ width: l(i(a) - s),
217
+ height: l(i(o) - c)
216
218
  };
217
219
  }
218
- function ue(e, t, n) {
219
- if (r.shape === "highlight") {
220
+ function de(e, t, n) {
221
+ if (i.shape === "highlight") {
220
222
  let r = B(e, {
221
223
  fs: t,
222
224
  seed: n
@@ -228,78 +230,78 @@ var ie = ["data-shape"], ae = { key: 0 }, oe = { key: 1 }, se = ["width", "heigh
228
230
  y: (r[i - 1].y + r[i].y) / 2
229
231
  }], o = w * t * 1.6;
230
232
  return {
231
- ink: ne(r),
233
+ ink: G(r),
232
234
  guide: U(a),
233
235
  length: I(a),
234
236
  stroke: o,
235
237
  window: K(r.concat(a), o)
236
238
  };
237
239
  }
238
- let i = N(r.weight * D.value, t), a = r.shape === "circle" ? z(e, {
240
+ let r = N(i.weight * D.value, t), a = i.shape === "circle" ? z(e, {
239
241
  fs: t,
240
242
  seed: n
241
243
  }) : L(e, {
242
244
  fs: t,
243
245
  seed: n,
244
- kind: r.shape === "strike" ? "strike" : "underline"
246
+ kind: i.shape === "strike" ? "strike" : "underline"
245
247
  });
246
248
  return {
247
- ink: W(a, i),
249
+ ink: W(a, r),
248
250
  guide: U(a),
249
251
  length: I(a),
250
- stroke: i * 1.6,
251
- window: K(a, i * 1.6)
252
+ stroke: r * 1.6,
253
+ window: K(a, r * 1.6)
252
254
  };
253
255
  }
254
256
  function q() {
255
257
  let e = S.value;
256
258
  if (!e) return;
257
- let n = H(e);
258
- if (n.length === 0) return;
259
- let i = parseFloat(getComputedStyle(e).fontSize) || 16, a = (C.value[0] ?? e).getBoundingClientRect(), { index: o, line: s } = V(e, n[0].y), l = r.seed ?? re((e.textContent ?? "").trim(), o), u = s * 4 * t, d = [];
260
- for (let e of n) {
259
+ let t = H(e);
260
+ if (t.length === 0) return;
261
+ let r = parseFloat(getComputedStyle(e).fontSize) || 16, a = (C.value[0] ?? e).getBoundingClientRect(), { index: o, line: s } = V(e, t[0].y), c = i.seed ?? re((e.textContent ?? "").trim(), o), u = s * 4 * n, d = [];
262
+ for (let e of t) {
261
263
  let t = {
262
264
  x: e.x - a.left,
263
265
  y: e.y - a.top,
264
266
  width: e.width,
265
267
  height: e.height
266
- }, n = ue(t, i, l + d.length), r = P(n.length);
268
+ }, n = de(t, r, c + d.length), i = P(n.length);
267
269
  d.push({
268
270
  ink: n.ink,
269
271
  guide: n.guide,
270
272
  stroke: n.stroke,
271
273
  window: n.window,
272
274
  box: {
273
- width: c(t.width),
274
- height: c(t.height)
275
+ width: l(t.width),
276
+ height: l(t.height)
275
277
  },
276
278
  delay: u,
277
- duration: r
278
- }), u += r;
279
+ duration: i
280
+ }), u += i;
279
281
  }
280
- T.value = d, E.value = r.shape === "circle" ? Math.max(0, te({
282
+ T.value = d, E.value = i.shape === "circle" ? Math.max(0, ne({
281
283
  x: 0,
282
284
  y: 0,
283
- width: n[0].width,
284
- height: n[0].height
285
- }, i)) : 0;
285
+ width: t[0].width,
286
+ height: t[0].height
287
+ }, r)) : 0;
286
288
  }
287
289
  function J(e = 0) {
288
290
  if (typeof document > "u" || !S.value) return;
289
- let t = window.matchMedia?.("(prefers-reduced-motion: reduce)")?.matches ?? !1, n = getComputedStyle(S.value).getPropertyValue("--spring-press").trim(), i = e > 0 && n ? n : F();
291
+ let t = window.matchMedia?.("(prefers-reduced-motion: reduce)")?.matches ?? !1, n = getComputedStyle(S.value).getPropertyValue("--spring-press").trim(), r = e > 0 && n ? n : F();
290
292
  for (let n of Array.from(S.value.querySelectorAll(".hm-guide"))) {
291
293
  let a = n.getTotalLength?.() ?? 0;
292
294
  if (!a) continue;
293
295
  let o = T.value[Number(n.dataset.i ?? 0)];
294
- n.style.strokeDasharray = `${a}`, n.style.strokeDashoffset = "0", !(!r.draw || t || typeof n.animate != "function") && n.animate([{ strokeDashoffset: a * (1 - e) }, { strokeDashoffset: 0 }], {
296
+ n.style.strokeDasharray = `${a}`, n.style.strokeDashoffset = "0", !(!i.draw || t || typeof n.animate != "function") && n.animate([{ strokeDashoffset: a * (1 - e) }, { strokeDashoffset: 0 }], {
295
297
  duration: e > 0 ? 220 : o?.duration ?? 400,
296
298
  delay: e > 0 ? 0 : o?.delay ?? 0,
297
- easing: i,
299
+ easing: r,
298
300
  fill: "both"
299
301
  });
300
302
  }
301
303
  }
302
- function de() {
304
+ function fe() {
303
305
  J(0);
304
306
  }
305
307
  function Y() {
@@ -316,50 +318,59 @@ var ie = ["data-shape"], ae = { key: 0 }, oe = { key: 1 }, se = ["width", "heigh
316
318
  k.value = !0, O.value = 0;
317
319
  }, 90);
318
320
  }
321
+ let pe = {
322
+ capture: !0,
323
+ passive: !0
324
+ };
325
+ e(S, {
326
+ resume: () => {
327
+ S.value && (Z = S.value.getBoundingClientRect().top), document.addEventListener("scroll", Q, pe);
328
+ },
329
+ pause: () => {
330
+ document.removeEventListener("scroll", Q, { capture: !0 }), X !== null && window.clearTimeout(X), X = null, k.value = !0, O.value = 0;
331
+ }
332
+ });
319
333
  let $ = null;
320
- return p(() => {
321
- q(), l(() => {
334
+ return m(() => {
335
+ q(), u(() => {
322
336
  q(), J(0);
323
337
  }), document.fonts?.ready?.then(() => {
324
338
  q(), J(0);
325
- }), typeof ResizeObserver < "u" && S.value && ($ = new ResizeObserver(() => q()), $.observe(S.value)), Z = S.value?.getBoundingClientRect().top ?? 0, document.addEventListener("scroll", Q, {
326
- capture: !0,
327
- passive: !0
328
- });
329
- }), f(() => {
339
+ }), typeof ResizeObserver < "u" && S.value && ($ = new ResizeObserver(() => q()), $.observe(S.value)), Z = S.value?.getBoundingClientRect().top ?? 0;
340
+ }), p(() => {
330
341
  $?.disconnect(), X !== null && window.clearTimeout(X), document.removeEventListener("scroll", Q, { capture: !0 });
331
- }), y(() => [
332
- r.shape,
333
- r.weight,
334
- r.seed
335
- ], () => q()), n({ play: de }), (t, n) => (m(), o("span", {
342
+ }), te(() => [
343
+ i.shape,
344
+ i.weight,
345
+ i.seed
346
+ ], () => q()), r({ play: fe }), (e, n) => (h(), s("span", {
336
347
  class: "hm",
337
348
  ref_key: "root",
338
349
  ref: S,
339
- "data-shape": e.shape,
340
- style: d(M.value),
350
+ "data-shape": t.shape,
351
+ style: f(M.value),
341
352
  onPointerenter: Y,
342
353
  onPointerdown: Y,
343
354
  onFocusin: Y
344
- }, [e.shape === "strike" ? (m(), o("del", ae, [_(t.$slots, "default", {}, void 0, !0)])) : e.shape === "highlight" ? (m(), o("mark", oe, [_(t.$slots, "default", {}, void 0, !0)])) : _(t.$slots, "default", {}, void 0, !0, 2), (m(!0), o(i, null, g(T.value, (e, t) => (m(), o("svg", {
355
+ }, [t.shape === "strike" ? (h(), s("del", ae, [v(e.$slots, "default", {}, void 0, !0)])) : t.shape === "highlight" ? (h(), s("mark", oe, [v(e.$slots, "default", {}, void 0, !0)])) : v(e.$slots, "default", {}, void 0, !0, 2), (h(!0), s(a, null, _(T.value, (e, t) => (h(), s("svg", {
345
356
  key: t,
346
357
  ref_for: !0,
347
358
  ref_key: "frames",
348
359
  ref: C,
349
- class: u(["hm-mark", { "hm-mark--settling": k.value }]),
360
+ class: d(["hm-mark", { "hm-mark--settling": k.value }]),
350
361
  width: e.box.width,
351
362
  height: e.box.height,
352
- style: d({ transform: `translateY(${-O.value}px)` }),
363
+ style: f({ transform: `translateY(${-O.value}px)` }),
353
364
  "aria-hidden": "true",
354
365
  focusable: "false"
355
- }, [s("defs", null, [s("mask", {
356
- id: `${v(x)}-${t}`,
366
+ }, [c("defs", null, [c("mask", {
367
+ id: `${y(x)}-${t}`,
357
368
  maskUnits: "userSpaceOnUse",
358
369
  x: e.window.x,
359
370
  y: e.window.y,
360
371
  width: e.window.width,
361
372
  height: e.window.height
362
- }, [s("path", {
373
+ }, [c("path", {
363
374
  class: "hm-guide",
364
375
  "data-i": t,
365
376
  d: e.guide,
@@ -368,13 +379,13 @@ var ie = ["data-shape"], ae = { key: 0 }, oe = { key: 1 }, se = ["width", "heigh
368
379
  "stroke-width": e.stroke,
369
380
  "stroke-linecap": "round",
370
381
  "stroke-linejoin": "round"
371
- }, null, 8, ce)], 8, G)]), s("path", {
382
+ }, null, 8, le)], 8, ce)]), c("path", {
372
383
  class: "hm-ink",
373
384
  d: e.ink,
374
385
  fill: j.value,
375
- mask: `url(#${v(x)}-${t})`
376
- }, null, 8, le)], 14, se))), 128))], 44, ie));
386
+ mask: `url(#${y(x)}-${t})`
387
+ }, null, 8, ue)], 14, se))), 128))], 44, ie));
377
388
  }
378
- }), [["__scopeId", "data-v-0e9beb0b"]]);
389
+ }), [["__scopeId", "data-v-742c788a"]]);
379
390
  //#endregion
380
391
  export { K as HandMark, b as SHAPES, B as handBand, L as handLine, z as handRing, P as markDuration, F as minJerk, U as serialize, W as strokeRibbon };
package/dist/index.css ADDED
@@ -0,0 +1 @@
1
+ @layer theme, base, components, utilities;@layer components{.avatar{--avatar-size:var(--control-h-md);inline-size:var(--avatar-size);block-size:var(--avatar-size);vertical-align:middle;isolation:isolate;display:inline-grid;position:relative}.avatar[data-size=md]{--avatar-size:calc(var(--control-h-md) * 1.618)}.avatar[data-size=lg]{--avatar-size:calc(var(--control-h-md) * 2.618)}.avatar__identity,.avatar__image,.avatar__fallback{block-size:100%;inline-size:100%}.avatar__identity{border:1px solid oklch(from var(--foreground) l c h / var(--ink-edge));background:var(--glass-plate-wash);color:var(--foreground);box-shadow:var(--glass-material-rim), var(--shadow-sm);place-items:center;display:grid;overflow:hidden}.avatar__image,.avatar__fallback{grid-area:1/1}.avatar__image{object-fit:cover}.avatar__fallback{background:color-mix(in srgb, var(--secondary) 82%, transparent);font-size:var(--type-caption);font-weight:var(--font-weight-semibold);letter-spacing:var(--tracking-tight);-webkit-user-select:none;user-select:none;place-items:center;line-height:1;display:grid}.avatar[data-size=md] .avatar__fallback{font-size:var(--type-subheading)}.avatar[data-size=lg] .avatar__fallback{font-size:var(--type-display-2)}.avatar__status{z-index:1;font-size:calc(var(--avatar-size) / 2);background:var(--background);box-shadow:0 0 0 1px oklch(from var(--foreground) l c h / var(--ink-edge));place-items:center;display:grid;position:absolute;inset-block-end:-.125rem;inset-inline-end:-.125rem}.avatar[data-shape=circle] .avatar__identity{border-radius:var(--radius-circle)}.avatar[data-shape=square] .avatar__identity{border-radius:var(--radius-media)}.avatar__status{border-radius:var(--radius-circle)}}
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ export { Collapsible, CollapsibleContent, CollapsibleTrigger, type CollapsibleCo
9
9
  export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type ComboboxEmptyProps, type ComboboxGroupProps, type ComboboxInputEmits, type ComboboxInputProps, type ComboboxItemEmits, type ComboboxItemProps, type ComboboxListEmits, type ComboboxSeparatorProps, type ComboboxValue, type CommandDialogEmits, type CommandDialogProps, type CommandEmits, type CommandListProps, type CommandProps, } from "./components/command/index.js";
10
10
  export { DataTable, type DataTableColumn, type DataTableProps, type DataTableRowAttrs, type DataTableRowIndex, type DataTableRowRef, type DataTableSort, type DataTableStatus, } from "./components/data-table/index.js";
11
11
  export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, type DialogContentProps, type DialogDescriptionProps, type DialogDismiss, type DialogProps, type DialogTitleProps, } from "./components/dialog/index.js";
12
- export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownMenuCheckboxItemEmits, type DropdownMenuCheckboxItemProps, type DropdownMenuContentEmits, type DropdownMenuContentProps, type DropdownMenuEmits, type DropdownMenuGroupProps, type DropdownMenuItemEmits, type DropdownMenuItemProps, type DropdownMenuLabelProps, type DropdownMenuProps, type DropdownMenuRadioGroupEmits, type DropdownMenuRadioGroupProps, type DropdownMenuRadioItemEmits, type DropdownMenuRadioItemProps, type DropdownMenuSeparatorProps, type DropdownMenuShortcutProps, type DropdownMenuSubContentEmits, type DropdownMenuSubContentProps, type DropdownMenuSubEmits, type DropdownMenuSubProps, type DropdownMenuSubTriggerProps, type DropdownMenuTriggerAction, type DropdownMenuTriggerProps, type MenuTrigger, } from "./components/menu/index.js";
12
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownMenuCheckboxItemEmits, type DropdownMenuCheckboxItemProps, type DropdownMenuContentEmits, type DropdownMenuContentProps, type DropdownMenuEmits, type DropdownMenuGroupProps, type DropdownMenuItemEmits, type DropdownMenuItemProps, type DropdownMenuLabelProps, type DropdownMenuProps, type DropdownMenuRadioGroupEmits, type DropdownMenuRadioGroupProps, type DropdownMenuRadioItemEmits, type DropdownMenuRadioItemProps, type DropdownMenuSeparatorProps, type DropdownMenuShortcutProps, type DropdownMenuSubContentEmits, type DropdownMenuSubContentProps, type DropdownMenuSubEmits, type DropdownMenuSubProps, type DropdownMenuSubTriggerProps, type DropdownMenuTriggerAction, type DropdownMenuTriggerProps, ContextMenu, type ContextMenuEmits, type ContextMenuProps, } from "./components/menu/index.js";
13
13
  export { Label, type LabelProps, type LabelRequirement } from "./components/label/index.js";
14
14
  export { NumberField, NumberFieldInput, NumberFieldStep, type NumberFieldProps, type NumberFieldStepProps, } from "./components/number-field/index.js";
15
15
  export { Popover, PopoverContent, PopoverTrigger, type PopoverContentEmits, type PopoverContentProps, type PopoverEmits, type PopoverProps, type PopoverTriggerMode, type PopoverTriggerProps, } from "./components/popover/index.js";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./class-names-FlXcvRRT.js";
2
- import { n as t } from "./control.css_vue_type_style_index_0_src_true_lang-BIdufaDG.js";
2
+ import { n as t } from "./control.css_vue_type_style_index_0_src_true_lang-D2hdtjs4.js";
3
3
  import { createElementBlock as n, defineComponent as r, mergeModels as i, mergeProps as a, openBlock as o, unref as s, useAttrs as c, useModel as l, vModelDynamic as u, withDirectives as d } from "vue";
4
4
  //#region src/components/input/Input.vue?vue&type=script&setup=true&lang.ts
5
5
  var f = [
package/dist/input.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./input-eLZ_AU7l.js";
1
+ import { t as e } from "./input-BLF2pMHE.js";
2
2
  export { e as Input };
@@ -1,3 +1,4 @@
1
+ import "./label.css";
1
2
  import { t as e } from "./class-names-FlXcvRRT.js";
2
3
  import { t } from "./primitive-B2t2jdqM.js";
3
4
  import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
package/dist/label.css ADDED
@@ -0,0 +1 @@
1
+ @layer theme, base, components, utilities;@layer components{.label[data-v-fa2ffe4d]{color:var(--foreground);font-family:var(--font-text);font-size:var(--control-label);font-weight:500;line-height:var(--type-leading-small)}.label[data-disabled][data-v-fa2ffe4d]{cursor:not-allowed;color:oklch(from var(--foreground) l 0 h / .45)}.label-requirement[data-v-fa2ffe4d]{color:var(--muted-foreground);font-size:var(--type-caption);margin-inline-start:4px;font-weight:400}}
package/dist/label.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./label-CE03H1KL.js";
1
+ import { t as e } from "./label-ryNPL7e6.js";
2
2
  export { e as Label };
@@ -0,0 +1 @@
1
+ @layer theme, base, components, utilities;@layer components{.labeled-field[data-v-ea78fd3a],.labeled-field-copy[data-v-ea78fd3a],.labeled-field-control[data-v-ea78fd3a]{min-inline-size:0;display:grid}.labeled-field[data-v-ea78fd3a]{gap:var(--space-atom);inline-size:100%}.labeled-field-copy[data-v-ea78fd3a],.labeled-field-control[data-v-ea78fd3a]{gap:var(--space-residue)}.labeled-field-description[data-v-ea78fd3a],.labeled-field-error[data-v-ea78fd3a]{font-size:var(--type-small);line-height:var(--type-leading-small);margin:0}.labeled-field-description[data-v-ea78fd3a]{color:var(--muted-foreground)}.labeled-field-error[data-v-ea78fd3a]{color:var(--destructive)}.labeled-field[data-layout=horizontal][data-v-ea78fd3a]{gap:var(--space-body);grid-template-columns:minmax(8rem,.382fr) minmax(0,1fr);align-items:start}@media (width<=36rem){.labeled-field[data-layout=horizontal][data-v-ea78fd3a]{gap:var(--space-atom);grid-template-columns:minmax(0,1fr)}}}
@@ -1,8 +1,9 @@
1
+ import "./labeled-field.css";
1
2
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { t } from "./label-CE03H1KL.js";
3
- import { t as n } from "./slider-Dg3Qqdyo.js";
4
- import { t as r } from "./switch-BYUZ6g9G.js";
5
- import { t as i } from "./input-eLZ_AU7l.js";
3
+ import { t } from "./label-ryNPL7e6.js";
4
+ import { t as n } from "./slider-B4w12E_u.js";
5
+ import { t as r } from "./switch-DLfGYU35.js";
6
+ import { t as i } from "./input-BLF2pMHE.js";
6
7
  import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, defineComponent as p, mergeProps as m, openBlock as h, renderSlot as g, toDisplayString as _, unref as v, useId as y, useSlots as b, withCtx as x } from "vue";
7
8
  //#region src/components/labeled-field/LabeledField.vue?vue&type=script&setup=true&lang.ts
8
9
  var S = [