@mkbabb/glass-ui 10.1.4 → 11.0.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.
- package/MIGRATION.md +1024 -1461
- package/README.md +2 -2
- package/dist/DialogContent-DG5kseRQ.js +159 -0
- package/dist/DropdownMenuTrigger-uhSXgEfK.js +76 -0
- package/dist/{Surface-1nPoabc3.js → Surface-C7wq2j0A.js} +3 -0
- package/dist/aurora.css +1 -0
- package/dist/aurora.js +246 -2472
- package/dist/auroraImageSource-xNLDUjcy.js +30 -0
- package/dist/axes.js +8 -8
- package/dist/blob.css +1 -0
- package/dist/blob.js +57 -54
- package/dist/budget-CJfhLIIV.js +13 -0
- package/dist/button-CAKhiOZy.js +113 -0
- package/dist/button.js +1 -1
- package/dist/{card-ByyqRBvK.js → card-D_uXphvL.js} +4 -1
- package/dist/card.js +1 -1
- package/dist/carousel.js +3 -2
- package/dist/{checkbox-B1qn65se.js → checkbox-COLnvULu.js} +1 -0
- package/dist/checkbox.css +1 -0
- package/dist/checkbox.js +1 -1
- package/dist/{collapsible-DFzK29Oh.js → collapsible-Bd4Et730.js} +1 -0
- package/dist/collapsible.css +1 -0
- package/dist/collapsible.js +1 -1
- package/dist/color-HkUaTAJj.js +270 -0
- package/dist/{color.glsl-DTJhdekG.js → color.glsl-bFJm8k5R.js} +4 -16
- package/dist/color.wgsl-B-qDJ_OM.js +4 -0
- package/dist/{command-CatrAsrl.js → command-BsFOGZwB.js} +3 -2
- package/dist/command.css +1 -0
- package/dist/command.js +1 -1
- package/dist/component-styles.css +0 -1
- package/dist/components/_shared/axes.d.ts +7 -0
- package/dist/components/_shared/feedback/dot-ring.css +1 -1
- package/dist/components/_shared/overlay/focus-return.d.ts +9 -0
- package/dist/components/_shared/overlay/index.d.ts +3 -0
- package/dist/components/_shared/overlay/root-scroll-lock.d.ts +4 -0
- package/dist/components/_shared/overlay/sheet-width.d.ts +2 -0
- package/dist/components/_shared/shape/useBarShape.d.ts +4 -0
- package/dist/components/aurora/composables/auroraFallbackGround.d.ts +12 -0
- package/dist/components/aurora/constants/presets.d.ts +21 -0
- package/dist/components/aurora/index.d.ts +2 -2
- package/dist/components/button/styles.css +1 -1
- package/dist/components/dark-mode-toggle/dark-mode-toggle.css +1 -1
- package/dist/components/dialog/DialogContent.vue.d.ts +2 -2
- package/dist/components/dialog/ModalOverlay.vue.d.ts +2 -2
- package/dist/components/dialog/ModalScrim.vue.d.ts +26 -0
- package/dist/components/dialog/styles.css +1 -1
- package/dist/components/dock/GlassDock.vue.d.ts +4 -1
- package/dist/components/dock/composables/useDockClickIntegrity.d.ts +4 -0
- package/dist/components/dock/composables/useDockShellProps.d.ts +34 -2
- package/dist/components/dock/composables/useDockState.d.ts +5 -0
- package/dist/components/dock/index.d.ts +1 -2
- package/dist/components/dock/styles/controls/icon-button.css +1 -1
- package/dist/components/dock/styles/controls/tab-button.css +1 -1
- package/dist/components/dock/styles/morph.css +1 -1
- package/dist/components/dock/styles/run.css +1 -1
- package/dist/components/dock/trigger.d.ts +1 -0
- package/dist/components/expandable-container/ExpandableContainer.vue.d.ts +30 -29
- package/dist/components/menu/ContextMenu.vue.d.ts +27 -0
- package/dist/components/menu/DropdownMenu.vue.d.ts +5 -23
- package/dist/components/menu/context.d.ts +18 -5
- package/dist/components/menu/family-click.d.ts +2 -0
- package/dist/components/menu/family-context.d.ts +2 -0
- package/dist/components/menu/index.d.ts +1 -1
- package/dist/components/sheet/SheetContent.vue.d.ts +2 -2
- package/dist/components/sortable-list/styles.css +1 -0
- package/dist/components/surface/Surface.vue.d.ts +4 -1
- package/dist/components/tabs/composables/useTabDragMorph.d.ts +4 -7
- package/dist/components/tabs/styles/segmented.css +1 -1
- package/dist/components/tabs/types.d.ts +7 -8
- package/dist/composables/glass/fieldPaint.d.ts +4 -0
- package/dist/composables/glass/useGlassBackdropLuminance.d.ts +7 -6
- package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +8 -0
- package/dist/composables/motion/core/motionTempo.d.ts +2 -1
- package/dist/composables/motion/morph/useDragMorph.d.ts +2 -2
- package/dist/composables/motion/morph/useSelectionGroup.d.ts +6 -25
- package/dist/composables/motion/morph/useSelectionIndicator.d.ts +8 -54
- package/dist/composables/motion/spring/useLiquidFlex.d.ts +3 -5
- package/dist/composables/motion/spring/useSpringMount.d.ts +0 -9
- package/dist/{configurator-Dl10mc3L.js → configurator-C1ZKEf1b.js} +7 -5
- package/dist/configurator.css +1 -0
- package/dist/configurator.js +1 -1
- package/dist/constants-DfrO-IaH.js +8 -0
- package/dist/constellation.css +1 -0
- package/dist/constellation.js +2 -1
- package/dist/control.css +1 -0
- 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
- package/dist/{createCanvasLifecycle-hJHobVTn.js → createCanvasLifecycle-DS0vEs_G.js} +76 -75
- package/dist/dark-mode-toggle.js +1 -1
- package/dist/{data-table-DQuWkiwL.js → data-table-lDykVYuo.js} +1 -0
- package/dist/data-table.css +1 -0
- package/dist/data-table.js +1 -1
- package/dist/{deck-Cm_VmyNL.js → deck-Bc-2mEKE.js} +1 -0
- package/dist/deck.js +1 -1
- package/dist/dialog.js +1 -1
- package/dist/dock-trigger.d.ts +1 -0
- package/dist/dock-trigger.js +88 -0
- package/dist/dock.js +677 -689
- package/dist/easing.js +4 -4
- package/dist/expandable-container-wS1awXGd.js +135 -0
- package/dist/expandable-container.css +1 -0
- package/dist/expandable-container.js +1 -1
- package/dist/{fading-scroll-ClCPooXb.js → fading-scroll-D3Y20ibL.js} +1 -1
- package/dist/fading-scroll.js +1 -1
- package/dist/fieldPaint-Ci77oajZ.js +7 -0
- package/dist/fourier-field.css +1 -0
- package/dist/fourier-field.js +15 -13
- package/dist/glSetup-DMaDgrEj.js +577 -0
- package/dist/glass-ui.js +66 -65
- package/dist/handmark.css +1 -0
- package/dist/handmark.js +82 -71
- package/dist/index.css +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/{input-eLZ_AU7l.js → input-BLF2pMHE.js} +1 -1
- package/dist/input.js +1 -1
- package/dist/{label-CE03H1KL.js → label-ryNPL7e6.js} +1 -0
- package/dist/label.css +1 -0
- package/dist/label.js +1 -1
- package/dist/labeled-field.css +1 -0
- package/dist/labeled-field.js +5 -4
- package/dist/{menu-DaYAZiVW.js → menu-C_l2Sslf.js} +162 -112
- package/dist/menu.js +3 -3
- package/dist/metric.js +1 -0
- package/dist/motion-core.js +138 -44
- package/dist/motion-lHDAQHEE.js +91 -0
- package/dist/motion.js +5 -5
- package/dist/motionTempo-DXdVbCWr.js +13 -0
- package/dist/music-staff.js +1 -0
- package/dist/{number-field-RP89046a.js → number-field-BXFUP49Z.js} +3 -2
- package/dist/number-field.css +1 -0
- package/dist/number-field.js +1 -1
- package/dist/pager-dots.css +1 -0
- package/dist/pager-dots.js +3 -2
- package/dist/participation-C5y5VZTN.js +52 -0
- package/dist/{popover-BdpoE4Ar.js → popover-DQUmwuAa.js} +3 -2
- package/dist/popover.js +1 -1
- package/dist/{progress-eVa-mc7J.js → progress-BUn0Bw7Z.js} +1 -0
- package/dist/progress.css +1 -0
- package/dist/progress.js +1 -1
- package/dist/{radio-group-B58Bz16F.js → radio-group-xdEy2tdi.js} +1 -0
- package/dist/radio-group.css +1 -0
- package/dist/radio-group.js +1 -1
- package/dist/root-scroll-lock-DJFrQhMa.js +22 -0
- package/dist/select-Dt5dXm87.js +309 -0
- package/dist/select.js +1 -1
- package/dist/{separator-D4EZM10u.js → separator-C4y9p_ky.js} +1 -0
- package/dist/separator.css +1 -0
- package/dist/separator.js +1 -1
- package/dist/sheet-DLqNUIZl.js +347 -0
- package/dist/sheet-width-DgXgJNa5.js +18 -0
- package/dist/sheet.js +2 -2
- package/dist/{slider-5uoY-cLG.js → slider-CZiKrWGg.js} +8 -8
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +2 -1
- package/dist/{status-dot-W4LFiJps.js → status-dot-BDZKcRxy.js} +2 -1
- package/dist/status-dot.css +1 -0
- package/dist/status-dot.js +1 -1
- package/dist/styles/components.css +1 -1
- package/dist/styles/glass/glass-capsule.css +1 -1
- package/dist/styles/glass/glass-chip.css +1 -1
- package/dist/styles/glass/mark.css +1 -1
- package/dist/styles/glass/overlay-plate.css +1 -1
- package/dist/styles/glass/surface-axis.css +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/styles/theme/radius.css +1 -1
- package/dist/styles/tokens/color-radius.css +1 -1
- package/dist/styles/tokens/manifest.d.ts +1 -1
- package/dist/styles/tokens/scale-paper.css +1 -1
- package/dist/styles/utilities/base-misc.css +1 -1
- package/dist/surface.js +1 -1
- package/dist/{switch-BYUZ6g9G.js → switch-DLfGYU35.js} +1 -0
- package/dist/switch.css +1 -0
- package/dist/switch.js +1 -1
- package/dist/tabs-NgTRPGZx.js +229 -0
- package/dist/tabs.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.css +1 -0
- package/dist/timeline.js +4 -3
- package/dist/toggle-group-DgXcJGD6.js +129 -0
- package/dist/toggle-group.css +1 -0
- package/dist/toggle-group.js +1 -1
- package/dist/tokens.js +2 -0
- package/dist/{tooltip-CZVubnJf.js → tooltip-Do3qCw0r.js} +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.css +1 -0
- package/dist/typewriter.js +1 -0
- package/dist/uniformBridge-CJyy7NOn.js +150 -0
- package/dist/useBarShape-CmP35Z8o.js +24 -0
- package/dist/{useCanvas2D-CQRElMyE.js → useCanvas2D-Bhpwua98.js} +1 -1
- package/dist/{useDockCtaReceive-BSSgD6mu.js → useDockCtaReceive-Dn_-paqP.js} +1 -1
- package/dist/{useDragMorph-B363RUbF.js → useDragMorph-BEI74U0t.js} +51 -40
- package/dist/{color.wgsl-BTszLY39.js → useGpuSubstrate-Y5XAdU8d.js} +7 -7
- package/dist/{useLiquidPress-h1scrPtP.js → useLiquidPress-D5mjZC6U.js} +2 -2
- package/dist/useScrollChrome-DMP6kDI9.js +67 -0
- package/dist/useSelectionGroup-DAQv5Lb5.js +186 -0
- package/dist/{useSpring-9u2_shxV.js → useSpring-Aof0nTRt.js} +1 -1
- package/dist/useSpringMount-jgNkymRl.js +73 -0
- package/dist/wgpuSetup-CFuqd_RP.js +1278 -0
- package/package.json +8 -1
- package/dist/DialogContent-CwIBvou_.js +0 -157
- package/dist/DropdownMenuTrigger-CKRnhDSQ.js +0 -93
- package/dist/button-BOFTUPyU.js +0 -110
- package/dist/composables/motion/morph/eyeglass.d.ts +0 -141
- package/dist/expandable-container-CZUj9BzY.js +0 -142
- package/dist/glass-ui.css +0 -2
- package/dist/motion-BvV1_24p.js +0 -61
- package/dist/motionTempo-tscp92Nm.js +0 -7
- package/dist/participation-B7UFdgXB.js +0 -55
- package/dist/select-BiF0FCZf.js +0 -292
- package/dist/sheet-DmJxgAHc.js +0 -345
- package/dist/tabs-C5sC0fBE.js +0 -269
- package/dist/toggle-group-CC5b3o1R.js +0 -125
- package/dist/useScrollChrome-BJbWV32F.js +0 -162
- package/dist/useSelectionGroup-zsEwitF6.js +0 -291
- package/dist/useSpringMount-OA-0mTNv.js +0 -73
package/dist/handmark.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 =
|
|
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
|
|
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
|
|
126
|
+
function G(e) {
|
|
125
127
|
return e.length ? `${U(e)} Z` : "";
|
|
126
128
|
}
|
|
127
129
|
function re(e, t) {
|
|
128
|
-
return (
|
|
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"],
|
|
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
|
-
],
|
|
140
|
+
], le = [
|
|
139
141
|
"data-i",
|
|
140
142
|
"d",
|
|
141
143
|
"stroke-width"
|
|
142
|
-
],
|
|
144
|
+
], ue = [
|
|
143
145
|
"d",
|
|
144
146
|
"fill",
|
|
145
147
|
"mask"
|
|
146
|
-
], K = /*#__PURE__*/
|
|
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(
|
|
159
|
-
let
|
|
160
|
-
let e = Number(
|
|
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 =
|
|
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),
|
|
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,
|
|
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) =>
|
|
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:
|
|
214
|
-
width:
|
|
215
|
-
height:
|
|
215
|
+
y: c,
|
|
216
|
+
width: l(i(a) - s),
|
|
217
|
+
height: l(i(o) - c)
|
|
216
218
|
};
|
|
217
219
|
}
|
|
218
|
-
function
|
|
219
|
-
if (
|
|
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:
|
|
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
|
|
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:
|
|
246
|
+
kind: i.shape === "strike" ? "strike" : "underline"
|
|
245
247
|
});
|
|
246
248
|
return {
|
|
247
|
-
ink: W(a,
|
|
249
|
+
ink: W(a, r),
|
|
248
250
|
guide: U(a),
|
|
249
251
|
length: I(a),
|
|
250
|
-
stroke:
|
|
251
|
-
window: K(a,
|
|
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
|
|
258
|
-
if (
|
|
259
|
-
let
|
|
260
|
-
for (let e of
|
|
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 =
|
|
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:
|
|
274
|
-
height:
|
|
275
|
+
width: l(t.width),
|
|
276
|
+
height: l(t.height)
|
|
275
277
|
},
|
|
276
278
|
delay: u,
|
|
277
|
-
duration:
|
|
278
|
-
}), u +=
|
|
279
|
+
duration: i
|
|
280
|
+
}), u += i;
|
|
279
281
|
}
|
|
280
|
-
T.value = d, E.value =
|
|
282
|
+
T.value = d, E.value = i.shape === "circle" ? Math.max(0, ne({
|
|
281
283
|
x: 0,
|
|
282
284
|
y: 0,
|
|
283
|
-
width:
|
|
284
|
-
height:
|
|
285
|
-
},
|
|
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(),
|
|
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", !(!
|
|
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:
|
|
299
|
+
easing: r,
|
|
298
300
|
fill: "both"
|
|
299
301
|
});
|
|
300
302
|
}
|
|
301
303
|
}
|
|
302
|
-
function
|
|
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
|
|
321
|
-
q(),
|
|
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
|
|
326
|
-
|
|
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
|
-
}),
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
], () => q()),
|
|
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":
|
|
340
|
-
style:
|
|
350
|
+
"data-shape": t.shape,
|
|
351
|
+
style: f(M.value),
|
|
341
352
|
onPointerenter: Y,
|
|
342
353
|
onPointerdown: Y,
|
|
343
354
|
onFocusin: Y
|
|
344
|
-
}, [
|
|
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:
|
|
360
|
+
class: d(["hm-mark", { "hm-mark--settling": k.value }]),
|
|
350
361
|
width: e.box.width,
|
|
351
362
|
height: e.box.height,
|
|
352
|
-
style:
|
|
363
|
+
style: f({ transform: `translateY(${-O.value}px)` }),
|
|
353
364
|
"aria-hidden": "true",
|
|
354
365
|
focusable: "false"
|
|
355
|
-
}, [
|
|
356
|
-
id: `${
|
|
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
|
-
}, [
|
|
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,
|
|
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(#${
|
|
376
|
-
}, null, 8,
|
|
386
|
+
mask: `url(#${y(x)}-${t})`
|
|
387
|
+
}, null, 8, ue)], 14, se))), 128))], 44, ie));
|
|
377
388
|
}
|
|
378
|
-
}), [["__scopeId", "data-v-
|
|
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
|
|
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-
|
|
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-
|
|
1
|
+
import { t as e } from "./input-BLF2pMHE.js";
|
|
2
2
|
export { e as Input };
|
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-
|
|
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)}}}
|
package/dist/labeled-field.js
CHANGED
|
@@ -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-
|
|
3
|
-
import { t as n } from "./slider-
|
|
4
|
-
import { t as r } from "./switch-
|
|
5
|
-
import { t as i } from "./input-
|
|
3
|
+
import { t } from "./label-ryNPL7e6.js";
|
|
4
|
+
import { t as n } from "./slider-CZiKrWGg.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 = [
|