@mkbabb/glass-ui 10.0.1 → 10.1.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.
- package/MIGRATION.md +25 -0
- package/dist/aurora.js +29 -29
- package/dist/{command-C-5xSEJ2.js → command-CTQCaHVA.js} +1 -1
- package/dist/command.js +1 -1
- package/dist/components/_shared/overlay/participation.d.ts +13 -1
- package/dist/components/configurator/Configurator.vue.d.ts +20 -0
- package/dist/components/configurator/ConfiguratorLayer.vue.d.ts +12 -2
- package/dist/components/configurator/index.d.ts +1 -1
- package/dist/components/configurator/styles.css +1 -1
- package/dist/components/dock/GlassDock.vue.d.ts +5 -5
- package/dist/components/dock/composables/dockContext.d.ts +16 -2
- package/dist/components/sheet/styles.css +1 -1
- package/dist/components/skeleton/Skeleton.vue.d.ts +6 -0
- package/dist/{configurator-DiwVN573.js → configurator-CPxIo3q2.js} +85 -71
- package/dist/configurator.js +1 -1
- package/dist/content-BhcJH1bI.js +22 -0
- package/dist/data-table-Cs93-uY7.js +511 -0
- package/dist/data-table.js +1 -1
- package/dist/dock.js +417 -409
- package/dist/easing.js +3 -3
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +9 -9
- package/dist/index.d.ts +1 -1
- package/dist/labeled-field.js +1 -1
- package/dist/{menu-BnmCOa3y.js → menu-DN29N6KR.js} +6 -3
- package/dist/menu.js +1 -1
- package/dist/motion-core.js +11 -11
- package/dist/participation-Cs_UX_Dc.js +55 -0
- package/dist/{popover-DA87hFBx.js → popover-CJpvT2E6.js} +9 -4
- package/dist/popover.js +1 -1
- package/dist/{select-fy3vtArm.js → select-5QMeUAU6.js} +26 -24
- package/dist/select.js +1 -1
- package/dist/{sheet-BQJyER59.js → sheet-DmJxgAHc.js} +1 -1
- package/dist/sheet.js +1 -1
- package/dist/{slider-5ChjjWSR.js → slider-D1zkobtO.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/{tabs-rdRXKXxd.js → tabs-C0PYq3Tb.js} +1 -1
- package/dist/tabs.js +1 -1
- package/dist/{tooltip-DhTHhtJN.js → tooltip-D7j6TsE4.js} +3 -3
- package/dist/tooltip.js +1 -1
- package/package.json +1 -1
- package/dist/content-So3j6SOe.js +0 -18
- package/dist/data-table-Ba_uTfPc.js +0 -493
- package/dist/participation-Di4UHbzk.js +0 -42
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./class-names-FlXcvRRT.js";
|
|
2
2
|
import { t } from "./primitive-B2t2jdqM.js";
|
|
3
3
|
import { t as n } from "./selection-DqIULxRG.js";
|
|
4
|
-
import { t as r } from "./participation-
|
|
4
|
+
import { t as r } from "./participation-Cs_UX_Dc.js";
|
|
5
5
|
import { t as i } from "./rowClass-DYOXwxhO.js";
|
|
6
6
|
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createVNode as d, defineComponent as f, guardReactiveProps as p, mergeProps as m, normalizeClass as h, normalizeProps as g, openBlock as _, renderSlot as v, unref as y, useAttrs as b, withCtx as x } from "vue";
|
|
7
|
-
import { SelectContent as S, SelectGroup as C, SelectIcon as w, SelectItem as T, SelectItemIndicator as E, SelectItemText as D, SelectLabel as O, SelectPortal as k, SelectRoot as A, SelectScrollDownButton as j, SelectScrollUpButton as M, SelectSeparator as N, SelectTrigger as P, SelectValue as F, SelectViewport as I,
|
|
8
|
-
import { ChevronDown as
|
|
7
|
+
import { SelectContent as S, SelectGroup as C, SelectIcon as w, SelectItem as T, SelectItemIndicator as E, SelectItemText as D, SelectLabel as O, SelectPortal as k, SelectRoot as A, SelectScrollDownButton as j, SelectScrollUpButton as M, SelectSeparator as N, SelectTrigger as P, SelectValue as F, SelectViewport as I, injectSelectRootContext as L, useForwardProps as R } from "reka-ui";
|
|
8
|
+
import { ChevronDown as z, ChevronUp as B } from "@lucide/vue";
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/components/select/Select.vue
|
|
11
|
-
var
|
|
11
|
+
var V = /* @__PURE__ */ f({
|
|
12
12
|
name: "Select",
|
|
13
13
|
inheritAttrs: !1,
|
|
14
14
|
__name: "Select",
|
|
@@ -26,7 +26,7 @@ var B = /* @__PURE__ */ f({
|
|
|
26
26
|
},
|
|
27
27
|
emits: ["update:modelValue", "update:open"],
|
|
28
28
|
setup(e, { emit: t }) {
|
|
29
|
-
let r = e, i = t, a =
|
|
29
|
+
let r = e, i = t, a = R(r);
|
|
30
30
|
function s(e) {
|
|
31
31
|
if (!n(e)) throw TypeError("[glass-ui] Select received a non-scalar value.");
|
|
32
32
|
i("update:modelValue", e);
|
|
@@ -39,7 +39,7 @@ var B = /* @__PURE__ */ f({
|
|
|
39
39
|
_: 3
|
|
40
40
|
}, 16));
|
|
41
41
|
}
|
|
42
|
-
}),
|
|
42
|
+
}), H = /* @__PURE__ */ f({
|
|
43
43
|
name: "SelectValue",
|
|
44
44
|
inheritAttrs: !1,
|
|
45
45
|
__name: "SelectValue",
|
|
@@ -64,7 +64,7 @@ var B = /* @__PURE__ */ f({
|
|
|
64
64
|
key: "0"
|
|
65
65
|
} : void 0]), 1040, ["placeholder", "class"]));
|
|
66
66
|
}
|
|
67
|
-
}),
|
|
67
|
+
}), U = /* @__PURE__ */ f({
|
|
68
68
|
name: "SelectTrigger",
|
|
69
69
|
inheritAttrs: !1,
|
|
70
70
|
__name: "SelectTrigger",
|
|
@@ -88,13 +88,13 @@ var B = /* @__PURE__ */ f({
|
|
|
88
88
|
class: y(e)("control-surface glass-control-edge glass-capsule-hover h-(--control-h-md)", "tap-squish focus-ring flex w-full cursor-pointer items-center justify-between rounded-pill px-3 py-2 text-dropdown placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-disabled [&>span]:line-clamp-1 transition-control aria-invalid:border-(--destructive) user-invalid:border-(--destructive) focus-visible:aria-invalid:shadow-(--invalid-ring) focus-visible:user-invalid:shadow-(--invalid-ring)", r.class)
|
|
89
89
|
}), {
|
|
90
90
|
default: x(() => [v(t.$slots, "default"), d(y(w), { "as-child": "" }, {
|
|
91
|
-
default: x(() => [d(y(
|
|
91
|
+
default: x(() => [d(y(z), { class: "transition-disclosure in-data-[state=open]:rotate-180 h-4 w-4 shrink-0 opacity-(--select-chevron-opacity)" })]),
|
|
92
92
|
_: 1
|
|
93
93
|
})]),
|
|
94
94
|
_: 3
|
|
95
95
|
}, 16, ["disabled", "class"]));
|
|
96
96
|
}
|
|
97
|
-
}),
|
|
97
|
+
}), W = /* @__PURE__ */ f({
|
|
98
98
|
name: "SelectScrollButton",
|
|
99
99
|
inheritAttrs: !1,
|
|
100
100
|
__name: "SelectScrollButton",
|
|
@@ -111,14 +111,14 @@ var B = /* @__PURE__ */ f({
|
|
|
111
111
|
setup(n) {
|
|
112
112
|
let r = n, i = b(), s = a(() => t(i)), c = a(() => e("flex min-h-11 cursor-default items-center justify-center", r.class));
|
|
113
113
|
return (e, t) => r.direction === "up" ? (_(), o(y(M), m({ key: 0 }, s.value, { class: c.value }), {
|
|
114
|
-
default: x(() => [v(e.$slots, "default", {}, () => [d(y(
|
|
114
|
+
default: x(() => [v(e.$slots, "default", {}, () => [d(y(B), { class: "h-4 w-4" })])]),
|
|
115
115
|
_: 3
|
|
116
116
|
}, 16, ["class"])) : (_(), o(y(j), m({ key: 1 }, s.value, { class: c.value }), {
|
|
117
|
-
default: x(() => [v(e.$slots, "default", {}, () => [d(y(
|
|
117
|
+
default: x(() => [v(e.$slots, "default", {}, () => [d(y(z), { class: "h-4 w-4" })])]),
|
|
118
118
|
_: 3
|
|
119
119
|
}, 16, ["class"]));
|
|
120
120
|
}
|
|
121
|
-
}),
|
|
121
|
+
}), G = /* @__PURE__ */ f({
|
|
122
122
|
name: "SelectContent",
|
|
123
123
|
inheritAttrs: !1,
|
|
124
124
|
__name: "SelectContent",
|
|
@@ -150,11 +150,13 @@ var B = /* @__PURE__ */ f({
|
|
|
150
150
|
alignOffset: i.alignOffset,
|
|
151
151
|
avoidCollisions: !0,
|
|
152
152
|
collisionPadding: 16
|
|
153
|
-
})), u = r()
|
|
153
|
+
})), u = L(null), f = r({ close: () => {
|
|
154
|
+
u?.open.value && u.onOpenChange(!1);
|
|
155
|
+
} });
|
|
154
156
|
return (t, n) => (_(), o(y(k), null, {
|
|
155
157
|
default: x(() => [d(y(S), m({
|
|
156
158
|
...l.value,
|
|
157
|
-
...y(
|
|
159
|
+
...y(f).portalAttrs.value
|
|
158
160
|
}, {
|
|
159
161
|
"data-reveal": "menu",
|
|
160
162
|
"data-slot": "select-content",
|
|
@@ -164,7 +166,7 @@ var B = /* @__PURE__ */ f({
|
|
|
164
166
|
onPointerDownOutside: n[2] ||= (e) => s("pointerDownOutside", e)
|
|
165
167
|
}), {
|
|
166
168
|
default: x(() => [
|
|
167
|
-
d(
|
|
169
|
+
d(W, { direction: "up" }),
|
|
168
170
|
d(y(I), {
|
|
169
171
|
"data-slot": "select-viewport",
|
|
170
172
|
"data-fade-start": "",
|
|
@@ -174,14 +176,14 @@ var B = /* @__PURE__ */ f({
|
|
|
174
176
|
default: x(() => [v(t.$slots, "default")]),
|
|
175
177
|
_: 3
|
|
176
178
|
}, 8, ["class"]),
|
|
177
|
-
d(
|
|
179
|
+
d(W, { direction: "down" })
|
|
178
180
|
]),
|
|
179
181
|
_: 3
|
|
180
182
|
}, 16, ["class"])]),
|
|
181
183
|
_: 3
|
|
182
184
|
}));
|
|
183
185
|
}
|
|
184
|
-
}),
|
|
186
|
+
}), K = /* @__PURE__ */ f({
|
|
185
187
|
name: "SelectGroup",
|
|
186
188
|
inheritAttrs: !1,
|
|
187
189
|
__name: "SelectGroup",
|
|
@@ -199,11 +201,11 @@ var B = /* @__PURE__ */ f({
|
|
|
199
201
|
_: 3
|
|
200
202
|
}, 16, ["class"]));
|
|
201
203
|
}
|
|
202
|
-
}),
|
|
204
|
+
}), q = {
|
|
203
205
|
key: 0,
|
|
204
206
|
"aria-hidden": "true",
|
|
205
207
|
class: "absolute start-2 flex h-3.5 w-3.5 items-center justify-center"
|
|
206
|
-
},
|
|
208
|
+
}, J = { class: "flex flex-col gap-0.5 min-w-0" }, Y = /* @__PURE__ */ f({
|
|
207
209
|
name: "SelectItem",
|
|
208
210
|
inheritAttrs: !1,
|
|
209
211
|
__name: "SelectItem",
|
|
@@ -234,10 +236,10 @@ var B = /* @__PURE__ */ f({
|
|
|
234
236
|
class: y(e)(y(i)(S.value), u.class),
|
|
235
237
|
onSelect: g
|
|
236
238
|
}), {
|
|
237
|
-
default: x(() => [S.value === "none" ? s("", !0) : (_(), c("span",
|
|
239
|
+
default: x(() => [S.value === "none" ? s("", !0) : (_(), c("span", q, [d(y(E), null, {
|
|
238
240
|
default: x(() => [...n[0] ||= [l("span", { class: "inline-block w-2 h-2 rounded-pill bg-current" }, null, -1)]]),
|
|
239
241
|
_: 1
|
|
240
|
-
})])), l("div",
|
|
242
|
+
})])), l("div", J, [d(y(D), null, {
|
|
241
243
|
default: x(() => [v(t.$slots, "default")]),
|
|
242
244
|
_: 3
|
|
243
245
|
}), v(t.$slots, "description")])]),
|
|
@@ -249,7 +251,7 @@ var B = /* @__PURE__ */ f({
|
|
|
249
251
|
"class"
|
|
250
252
|
]));
|
|
251
253
|
}
|
|
252
|
-
}),
|
|
254
|
+
}), X = /* @__PURE__ */ f({
|
|
253
255
|
name: "SelectLabel",
|
|
254
256
|
inheritAttrs: !1,
|
|
255
257
|
__name: "SelectLabel",
|
|
@@ -270,7 +272,7 @@ var B = /* @__PURE__ */ f({
|
|
|
270
272
|
_: 3
|
|
271
273
|
}, 16, ["class"]));
|
|
272
274
|
}
|
|
273
|
-
}),
|
|
275
|
+
}), Z = /* @__PURE__ */ f({
|
|
274
276
|
name: "SelectSeparator",
|
|
275
277
|
inheritAttrs: !1,
|
|
276
278
|
__name: "SelectSeparator",
|
|
@@ -287,4 +289,4 @@ var B = /* @__PURE__ */ f({
|
|
|
287
289
|
}
|
|
288
290
|
});
|
|
289
291
|
//#endregion
|
|
290
|
-
export {
|
|
292
|
+
export { G as a, H as c, K as i, V as l, X as n, W as o, Y as r, U as s, Z as t };
|
package/dist/select.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./select-
|
|
1
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./select-5QMeUAU6.js";
|
|
2
2
|
export { r as Select, e as SelectContent, n as SelectGroup, o as SelectItem, i as SelectLabel, a as SelectScrollButton, c as SelectSeparator, s as SelectTrigger, t as SelectValue };
|
|
@@ -199,7 +199,7 @@ var K = [
|
|
|
199
199
|
bottom: "border-t",
|
|
200
200
|
left: "border-r",
|
|
201
201
|
right: "border-l"
|
|
202
|
-
}, R = d(() => e(L[_.side], r("floating"), _.class)), z = A();
|
|
202
|
+
}, R = d(() => e("fixed", L[_.side], r("floating"), _.class)), z = A();
|
|
203
203
|
u(() => z.open.value && z.modal.value);
|
|
204
204
|
let B = i({
|
|
205
205
|
open: d(() => !I.value && z.open.value),
|
package/dist/sheet.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as e, r as t, t as n } from "./motion-BvV1_24p.js";
|
|
2
|
-
import { a as r, c as i, i as a, n as o, o as s, r as c, s as l, t as u } from "./sheet-
|
|
2
|
+
import { a as r, c as i, i as a, n as o, o as s, r as c, s as l, t as u } from "./sheet-DmJxgAHc.js";
|
|
3
3
|
export { u as SheetContent, c as nearestRung, a as projectRest, r as resolveRelease, n as scrimDetentOpacity, e as scrimOpacity, s as settleHorizon, t as sheetSlideTransform, l as springOmega, i as throwDistance, o as useSheetDetents };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./useMotionAxis-D-rtIhca.js";
|
|
2
|
-
import { n as t,
|
|
2
|
+
import { n as t, s as n } from "./participation-Cs_UX_Dc.js";
|
|
3
3
|
import { t as r } from "./useDragVelocity-C5BkKiNf.js";
|
|
4
4
|
import { n as i } from "./valueDomain-DXRzfc8l.js";
|
|
5
5
|
import { Fragment as a, Teleport as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, mergeProps as m, nextTick as ee, normalizeClass as te, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, unref as x, useAttrs as ne, useTemplateRef as S, watch as C, withCtx as w } from "vue";
|
package/dist/slider.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./slider-
|
|
1
|
+
import { t as e } from "./slider-D1zkobtO.js";
|
|
2
2
|
export { e as Slider };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./class-names-FlXcvRRT.js";
|
|
2
2
|
import { n as t, r as n } from "./writeVelocityWeight-DoGOCW3e.js";
|
|
3
3
|
import { t as r } from "./useMotionAxis-D-rtIhca.js";
|
|
4
|
-
import { a as i, c as a, l as o, r as s, s as c } from "./select-
|
|
4
|
+
import { a as i, c as a, l as o, r as s, s as c } from "./select-5QMeUAU6.js";
|
|
5
5
|
import { n as l, t as u } from "./useSelectionGroup-zsEwitF6.js";
|
|
6
6
|
import { t as d } from "./useDragMorph-B363RUbF.js";
|
|
7
7
|
import { Fragment as f, computed as p, createBlock as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, mergeModels as b, mergeProps as x, nextTick as S, normalizeClass as C, normalizeStyle as w, onBeforeUnmount as T, onBeforeUpdate as E, onMounted as D, openBlock as O, ref as k, renderList as A, renderSlot as j, toDisplayString as M, unref as N, useModel as P, watch as F, withCtx as I } from "vue";
|
package/dist/tabs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./tabs-
|
|
1
|
+
import { t as e } from "./tabs-C0PYq3Tb.js";
|
|
2
2
|
export { e as SegmentedTabs };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./content-
|
|
2
|
-
import { t } from "./participation-
|
|
1
|
+
import { t as e } from "./content-BhcJH1bI.js";
|
|
2
|
+
import { t } from "./participation-Cs_UX_Dc.js";
|
|
3
3
|
import { computed as n, createBlock as r, createVNode as i, defineComponent as a, mergeProps as o, openBlock as s, renderSlot as c, unref as l, useAttrs as u, withCtx as d } from "vue";
|
|
4
4
|
import { TooltipContent as f, TooltipPortal as p, TooltipProvider as m, TooltipRoot as h, TooltipTrigger as g } from "reka-ui";
|
|
5
5
|
//#endregion
|
|
@@ -69,7 +69,7 @@ var _ = /* @__PURE__ */ a({
|
|
|
69
69
|
role: "hint",
|
|
70
70
|
slot: "tooltip-content",
|
|
71
71
|
dock: b.portalAttrs.value,
|
|
72
|
-
class:
|
|
72
|
+
class: h.class
|
|
73
73
|
}));
|
|
74
74
|
return (e, t) => (s(), r(l(p), null, {
|
|
75
75
|
default: d(() => [i(l(f), o({
|
package/dist/tooltip.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./tooltip-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./tooltip-D7j6TsE4.js";
|
|
2
2
|
export { e as Tooltip, n as TooltipContent, r as TooltipProvider, t as TooltipTrigger };
|
package/package.json
CHANGED
package/dist/content-So3j6SOe.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./class-names-FlXcvRRT.js";
|
|
2
|
-
import { t } from "./resolve-DdrNvBby.js";
|
|
3
|
-
//#region src/components/_shared/overlay/content.ts
|
|
4
|
-
var n = {
|
|
5
|
-
hint: "tooltip",
|
|
6
|
-
menu: "menu",
|
|
7
|
-
panel: "overlay"
|
|
8
|
-
};
|
|
9
|
-
function r(r) {
|
|
10
|
-
return {
|
|
11
|
-
class: e(t("floating"), "glass-overlay-plate glass-reveal", r.class),
|
|
12
|
-
"data-slot": r.slot,
|
|
13
|
-
"data-reveal": n[r.role],
|
|
14
|
-
...r.dock
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
export { r as t };
|