@mkbabb/glass-ui 2.1.0 → 3.1.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/dist/{CardFooter-Yi0xtLLd.js → CardFooter-CSGcJkqa.js} +1 -1
- package/dist/{CommandShortcut-_INFUMu6.js → CommandShortcut-DWT19a2Y.js} +3 -3
- package/dist/{ContextMenuSubContent-DCkweFW9.js → ContextMenuSubContent-gAFxJ-qi.js} +1 -1
- package/dist/{DataTable-Ce00dbHD.js → DataTable-R8-Zidms.js} +3 -3
- package/dist/{DialogContent-CmCijgX9.js → DialogContent-2fALDSvc.js} +3 -3
- package/dist/{DialogFooter-DRdaCok0.js → DialogFooter-ClrNEOVU.js} +2 -2
- package/dist/{DiscoGlyph-wRA02zAJ.js → DiscoGlyph-C3JfMnRV.js} +1 -1
- package/dist/{GlyphFace-BnPMUZ16.js → GlyphFace-BRS8vUb7.js} +1 -1
- package/dist/HoverPopover-CWFCfLx3.js +96 -0
- package/dist/{IconTooltip-ge_mBSWR.js → IconTooltip-BkaA7tZ2.js} +1 -1
- package/dist/{Input-CbakTe3B.js → Input-DDpFn568.js} +3 -5
- package/dist/Label-DJty89bp.js +36 -0
- package/dist/{MetricBadge-DRBB18Xq.js → MetricBadge-DmAihkXd.js} +1 -1
- package/dist/{Notification-DrI1DT2v.js → Notification-OqIpADml.js} +2 -2
- package/dist/NumberFieldContent-DTH9gb_N.js +141 -0
- package/dist/{PopoverContent-BCH4eYs8.js → PopoverContent-EiklFrna.js} +1 -1
- package/dist/{Progress-CCH-2UBR.js → Progress-FApA9fm_.js} +1 -1
- package/dist/{ScrollingText-7P8skg5W.js → ScrollingText-BFd0i2zJ.js} +2 -2
- package/dist/{SelectScrollDownButton-yu8EYUnu.js → SelectScrollDownButton-Dth8-wXQ.js} +2 -2
- package/dist/{Toaster-DY8_jtHv.js → Toaster-Bjlunvq4.js} +69 -58
- package/dist/UnderlineTabs-DAWMLmJG.js +37 -0
- package/dist/animated-digit.js +2 -2
- package/dist/api/index.d.ts +2 -0
- package/dist/api.js +1 -1
- package/dist/aurora.js +103 -90
- package/dist/badge.js +1 -1
- package/dist/{button-BlOW34DT.js → button-C0aHmBbt.js} +2 -0
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.js +1 -1
- package/dist/collapsible.js +1 -1
- package/dist/command.js +1 -1
- package/dist/components/custom/aurora/composables/runtime.d.ts +24 -1
- package/dist/components/custom/dialog-native/GlassDialogNative.vue.d.ts +57 -0
- package/dist/components/custom/dialog-native/index.d.ts +1 -0
- package/dist/components/custom/dock/composables/useLayerTransition.d.ts +20 -10
- package/dist/components/custom/hover-popover/HoverPopover.vue.d.ts +26 -4
- package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +16 -2
- package/dist/components/custom/labeled-field/LabeledInput.vue.d.ts +17 -1
- package/dist/components/custom/labeled-field/LabeledSelect.vue.d.ts +2 -0
- package/dist/components/custom/labeled-field/LabeledSlider.vue.d.ts +2 -0
- package/dist/components/custom/labeled-field/LabeledSwitch.vue.d.ts +2 -0
- package/dist/components/custom/toggle-chip/ToggleChip.vue.d.ts +6 -4
- package/dist/components/ui/input/Input.vue.d.ts +10 -7
- package/dist/components/ui/label/Label.vue.d.ts +8 -0
- package/dist/components/ui/textarea/Textarea.vue.d.ts +45 -8
- package/dist/components/ui/toast/Toaster.vue.d.ts +7 -1
- package/dist/components/ui/toast/index.d.ts +1 -0
- package/dist/composables/dark/index.d.ts +1 -0
- package/dist/composables/dom/index.d.ts +2 -0
- package/dist/composables/dom/useIdleReady.d.ts +63 -0
- package/dist/composables/dom/useUserInvalidAria.d.ts +32 -0
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/motion/core/index.d.ts +8 -0
- package/dist/composables/motion/index.d.ts +0 -7
- package/dist/composables/motion/supportsCssTimeline.d.ts +8 -0
- package/dist/composables/motion/useRAFLoop.d.ts +7 -0
- package/dist/composables/motion/useScrollProgress.d.ts +6 -2
- package/dist/composables/motion/useStaggerReveal.d.ts +6 -0
- package/dist/composables/motion/useViewTransition.d.ts +31 -0
- package/dist/composables/motion/useYieldToMain.d.ts +29 -0
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +2 -2
- package/dist/constants-DwBwnG8N.js +13 -0
- package/dist/context-menu.js +2 -2
- package/dist/controls.js +2 -2
- package/dist/dark.d.ts +1 -1
- package/dist/dark.js +13 -2
- package/dist/data-table.js +1 -1
- package/dist/dialog.js +2 -2
- package/dist/disco-glyph.js +1 -1
- package/dist/dock.js +195 -176
- package/dist/dom.js +5 -4
- package/dist/{dropdown-menu-2K-SGkZU.js → dropdown-menu-BvRUamNs.js} +2 -2
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +3 -3
- package/dist/forms.d.ts +1 -0
- package/dist/forms.js +47 -42
- package/dist/glass-carousel.js +1 -1
- package/dist/glass-panel.js +2 -2
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +156 -275
- package/dist/glyph-face.js +2 -2
- package/dist/header-ribbon.js +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/hover-popover.js +1 -1
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/instrument-chassis.js +1 -1
- package/dist/instrument-rail.js +1 -1
- package/dist/keyboard.js +1 -1
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +96 -57
- package/dist/metric-badge.js +1 -1
- package/dist/metric-stack.js +1 -1
- package/dist/motion-core.d.ts +1 -0
- package/dist/motion-core.js +229 -0
- package/dist/motion.js +26 -228
- package/dist/notification.js +1 -1
- package/dist/number-field.d.ts +1 -0
- package/dist/number-field.js +2 -0
- package/dist/paper-backdrop.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/progress.js +1 -1
- package/dist/pulse.js +1 -1
- package/dist/reactive.js +2 -2
- package/dist/responsive-tabs.js +3 -3
- package/dist/scrolling-text.js +1 -1
- package/dist/search.js +6 -6
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/{sheet-CLVkb3AO.js → sheet-CukNDezz.js} +53 -53
- package/dist/sheet.js +1 -1
- package/dist/{slider-BQaLYFLh.js → slider-DJvHkTRe.js} +3 -3
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +2 -2
- package/dist/styles/animations.css +77 -0
- package/dist/styles/cards.css +6 -2
- package/dist/styles/dock.css +109 -109
- package/dist/styles/drawer.css +2 -2
- package/dist/styles/glass.css +89 -6
- package/dist/styles/index.css +10 -1
- package/dist/styles/instrument-chassis.css +28 -1
- package/dist/styles/scroll-driven.css +72 -0
- package/dist/styles/theme.css +6 -0
- package/dist/styles/tokens.css +345 -289
- package/dist/styles/typography.css +65 -131
- package/dist/styles/utilities.css +199 -81
- package/dist/styles/view-transition.css +62 -0
- package/dist/switch.d.ts +1 -0
- package/dist/switch.js +2 -0
- package/dist/tabs.js +40 -36
- package/dist/timeline.js +2 -2
- package/dist/toast.js +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{useAnimatedNumber-DcvTR9B4.js → useAnimatedNumber-DKQYVB7s.js} +9 -20
- package/dist/{useConfiguratorState-BlaevW0S.js → useConfiguratorState-BR5vUDL8.js} +5 -5
- package/dist/{useBreakpoint-BHlX-MhR.js → useIdleReady-Cmkhm03v.js} +30 -2
- package/dist/{useTouchGate-BhhEMlwJ.js → useTouchGate-D9Zvrzyc.js} +1 -1
- package/dist/useUserInvalidAria-DVu1eTXG.js +29 -0
- package/dist/useViewTransition-DYIK6Gzb.js +16 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/moveBefore.d.ts +15 -0
- package/package.json +27 -6
- package/src/styles/animations.css +77 -0
- package/src/styles/cards.css +6 -2
- package/src/styles/dock.css +109 -109
- package/src/styles/drawer.css +2 -2
- package/src/styles/glass.css +89 -6
- package/src/styles/index.css +10 -1
- package/src/styles/instrument-chassis.css +28 -1
- package/src/styles/scroll-driven.css +72 -0
- package/src/styles/theme.css +6 -0
- package/src/styles/tokens.css +345 -289
- package/src/styles/typography.css +65 -131
- package/src/styles/utilities.css +199 -81
- package/src/styles/view-transition.css +62 -0
- package/dist/HoverPopover-Btv4RQfv.js +0 -80
- package/dist/Label-C8QMJSsf.js +0 -32
- package/dist/UnderlineTabs-BtrUcXn-.js +0 -64
- package/dist/composables/motion/useSpringOrchestrator.d.ts +0 -15
- /package/dist/{CollapsibleContent-DHRuXE3P.js → CollapsibleContent-CVMOcYlV.js} +0 -0
- /package/dist/{ContextMenuContent-CvXfU5qz.js → ContextMenuContent-otjFIu8v.js} +0 -0
- /package/dist/{HoverCardContent-4nN5-5bz.js → HoverCardContent-DaGrgJBO.js} +0 -0
- /package/dist/{InstrumentChassis-DOaVYyWq.js → InstrumentChassis-CnHTMxds.js} +0 -0
- /package/dist/{InstrumentRail-jHDqXj70.js → InstrumentRail-C6dEbi8E.js} +0 -0
- /package/dist/{ModalOverlay-DKLVY-cj.js → ModalOverlay-iWiAgbYH.js} +0 -0
- /package/dist/{PaperBackdrop-Bc2drCqJ.js → PaperBackdrop-CeZ-w0R0.js} +0 -0
- /package/dist/{SelectGroup-O69GTQ77.js → SelectGroup-DdR4tdDY.js} +0 -0
- /package/dist/{SelectSeparator-GTHxKO0a.js → SelectSeparator-CXm_hlqA.js} +0 -0
- /package/dist/{Separator-_NCypg_C.js → Separator-D8AUMhxY.js} +0 -0
- /package/dist/{Switch-CL0uxu8F.js → Switch-Cr1t_F_U.js} +0 -0
- /package/dist/{ToggleGroupItem-BYG_8M9M.js → ToggleGroupItem-OesUouE7.js} +0 -0
- /package/dist/{TooltipProvider-C5QLSPto.js → TooltipProvider-DE78vbEP.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-n-_DRHWS.js → _plugin-vue_export-helper-Dq1MygBL.js} +0 -0
- /package/dist/{badge-BbxVKZfw.js → badge-x46my_Fo.js} +0 -0
- /package/dist/composables/{motion → dark}/installDarkModeSync.d.ts +0 -0
- /package/dist/{dockContext-BDGSrwsV.js → dockContext-D5NZCWJs.js} +0 -0
- /package/dist/{keys-DVkcUktU.js → keys-CaTQS-vx.js} +0 -0
- /package/dist/{menuItemVariants-B2nDL7zH.js → menuItemVariants-BsbGNq9C.js} +0 -0
- /package/dist/{presets-BMzCDrmR.js → presets-a-D93K1S.js} +0 -0
- /package/dist/{search-ocd8tmL9.js → search-DBAiUABx.js} +0 -0
- /package/dist/{useGlassRenderer-DMDdMH55.js → useGlassRenderer-Ds-nmrGz.js} +0 -0
- /package/dist/{useGlobalDark-PMiP5Jku.js → useGlobalDark-B0WvLJE3.js} +0 -0
- /package/dist/{useIntersectionPause-CXYfYg_C.js → useIntersectionPause-IY2CwPQb.js} +0 -0
- /package/dist/{useInterval-COlTCeVa.js → useInterval-DVgGUf_y.js} +0 -0
- /package/dist/{useKeyboardShortcuts-B1ev1YEC.js → useKeyboardShortcuts-Dpw_RUcB.js} +0 -0
- /package/dist/{useResizeObserver-F4aRR4Cj.js → useResizeObserver-Cg9npuM3.js} +0 -0
- /package/dist/{useSortable-Ck0rBJ4g.js → useSortable-Cq2Y1JLO.js} +0 -0
- /package/dist/{useSpringMount-BTRBNzXP.js → useSpringMount-Cfk1XK1R.js} +0 -0
- /package/dist/{useTimer-lp5NlH4w.js → useTimer-NAaj9zNq.js} +0 -0
- /package/dist/{x-cdWAmO-q.js → x-q7pJa83X.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./x-
|
|
3
|
-
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, mergeProps as d,
|
|
4
|
-
import { ToastAction as
|
|
2
|
+
import { t } from "./x-q7pJa83X.js";
|
|
3
|
+
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, openBlock as p, ref as m, renderList as h, renderSlot as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
|
|
4
|
+
import { ToastAction as b, ToastClose as x, ToastDescription as S, ToastProvider as C, ToastRoot as w, ToastTitle as T, ToastViewport as E } from "reka-ui";
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/components/ui/toast/Toast.vue
|
|
7
|
-
var
|
|
7
|
+
var D = /* @__PURE__ */ u({
|
|
8
8
|
__name: "Toast",
|
|
9
9
|
props: {
|
|
10
10
|
class: { type: [
|
|
@@ -39,9 +39,9 @@ var E = /* @__PURE__ */ u({
|
|
|
39
39
|
let { class: e, variant: t, ...n } = a;
|
|
40
40
|
return n;
|
|
41
41
|
});
|
|
42
|
-
return (n, r) => (
|
|
43
|
-
default:
|
|
44
|
-
class:
|
|
42
|
+
return (n, r) => (p(), i(v(C), null, {
|
|
43
|
+
default: y(() => [l(v(w), d(s.value, {
|
|
44
|
+
class: v(e)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-panel border p-6 pr-8 shadow-modal transition-[opacity,transform] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--reka-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--reka-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full", {
|
|
45
45
|
"bg-background text-foreground border": t.variant === "default",
|
|
46
46
|
"bg-destructive text-destructive-foreground border-destructive": t.variant === "destructive"
|
|
47
47
|
}, a.class),
|
|
@@ -52,13 +52,13 @@ var E = /* @__PURE__ */ u({
|
|
|
52
52
|
onSwipeEnd: r[4] ||= (e) => o("swipeEnd", e),
|
|
53
53
|
onSwipeCancel: r[5] ||= (e) => o("swipeCancel", e)
|
|
54
54
|
}), {
|
|
55
|
-
default:
|
|
55
|
+
default: y(() => [g(n.$slots, "default")]),
|
|
56
56
|
_: 3
|
|
57
|
-
}, 16, ["class"]), l(
|
|
57
|
+
}, 16, ["class"]), l(v(E))]),
|
|
58
58
|
_: 3
|
|
59
59
|
}));
|
|
60
60
|
}
|
|
61
|
-
}),
|
|
61
|
+
}), O = /* @__PURE__ */ u({
|
|
62
62
|
__name: "ToastAction",
|
|
63
63
|
props: {
|
|
64
64
|
class: { type: [
|
|
@@ -77,12 +77,12 @@ var E = /* @__PURE__ */ u({
|
|
|
77
77
|
let { class: e, ...t } = n;
|
|
78
78
|
return t;
|
|
79
79
|
});
|
|
80
|
-
return (t, r) => (
|
|
81
|
-
default:
|
|
80
|
+
return (t, r) => (p(), i(v(b), d(a.value, { class: v(e)("focus-ring inline-flex h-8 shrink-0 items-center justify-center rounded-button border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary disabled:pointer-events-none disabled:opacity-disabled group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground", n.class) }), {
|
|
81
|
+
default: y(() => [g(t.$slots, "default")]),
|
|
82
82
|
_: 3
|
|
83
83
|
}, 16, ["class"]));
|
|
84
84
|
}
|
|
85
|
-
}),
|
|
85
|
+
}), k = /* @__PURE__ */ u({
|
|
86
86
|
__name: "ToastClose",
|
|
87
87
|
props: {
|
|
88
88
|
class: { type: [
|
|
@@ -100,12 +100,12 @@ var E = /* @__PURE__ */ u({
|
|
|
100
100
|
let { class: e, ...t } = a;
|
|
101
101
|
return t;
|
|
102
102
|
});
|
|
103
|
-
return (n, r) => (
|
|
104
|
-
default:
|
|
103
|
+
return (n, r) => (p(), i(v(x), d(o.value, { class: v(e)("focus-ring absolute right-2 top-2 rounded-button p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50", a.class) }), {
|
|
104
|
+
default: y(() => [l(v(t), { class: "h-4 w-4" })]),
|
|
105
105
|
_: 1
|
|
106
106
|
}, 16, ["class"]));
|
|
107
107
|
}
|
|
108
|
-
}),
|
|
108
|
+
}), A = /* @__PURE__ */ u({
|
|
109
109
|
__name: "ToastDescription",
|
|
110
110
|
props: {
|
|
111
111
|
class: { type: [
|
|
@@ -123,12 +123,12 @@ var E = /* @__PURE__ */ u({
|
|
|
123
123
|
let { class: e, ...t } = n;
|
|
124
124
|
return t;
|
|
125
125
|
});
|
|
126
|
-
return (t, r) => (
|
|
127
|
-
default:
|
|
126
|
+
return (t, r) => (p(), i(v(S), d(a.value, { class: v(e)("text-sm opacity-90", n.class) }), {
|
|
127
|
+
default: y(() => [g(t.$slots, "default")]),
|
|
128
128
|
_: 3
|
|
129
129
|
}, 16, ["class"]));
|
|
130
130
|
}
|
|
131
|
-
}),
|
|
131
|
+
}), j = /* @__PURE__ */ u({
|
|
132
132
|
__name: "ToastTitle",
|
|
133
133
|
props: {
|
|
134
134
|
class: { type: [
|
|
@@ -146,65 +146,65 @@ var E = /* @__PURE__ */ u({
|
|
|
146
146
|
let { class: e, ...t } = n;
|
|
147
147
|
return t;
|
|
148
148
|
});
|
|
149
|
-
return (t, r) => (
|
|
150
|
-
default:
|
|
149
|
+
return (t, r) => (p(), i(v(T), d(a.value, { class: v(e)("text-sm font-semibold", n.class) }), {
|
|
150
|
+
default: y(() => [g(t.$slots, "default")]),
|
|
151
151
|
_: 3
|
|
152
152
|
}, 16, ["class"]));
|
|
153
153
|
}
|
|
154
|
-
}),
|
|
155
|
-
function
|
|
156
|
-
if (
|
|
154
|
+
}), M = 5, N = 1e6, P = /* @__PURE__ */ new Map();
|
|
155
|
+
function F(e) {
|
|
156
|
+
if (P.has(e)) return;
|
|
157
157
|
let t = setTimeout(() => {
|
|
158
|
-
|
|
158
|
+
P.delete(e), L({
|
|
159
159
|
type: "REMOVE_TOAST",
|
|
160
160
|
toastId: e
|
|
161
161
|
});
|
|
162
|
-
},
|
|
163
|
-
|
|
162
|
+
}, N);
|
|
163
|
+
P.set(e, t);
|
|
164
164
|
}
|
|
165
|
-
var
|
|
166
|
-
function
|
|
165
|
+
var I = m([]);
|
|
166
|
+
function L(e) {
|
|
167
167
|
switch (e.type) {
|
|
168
168
|
case "ADD_TOAST":
|
|
169
|
-
|
|
169
|
+
I.value = [e.toast, ...I.value].slice(0, M);
|
|
170
170
|
break;
|
|
171
171
|
case "UPDATE_TOAST":
|
|
172
|
-
|
|
172
|
+
I.value = I.value.map((t) => t.id === e.toast.id ? {
|
|
173
173
|
...t,
|
|
174
174
|
...e.toast
|
|
175
175
|
} : t);
|
|
176
176
|
break;
|
|
177
177
|
case "DISMISS_TOAST": {
|
|
178
178
|
let { toastId: t } = e;
|
|
179
|
-
t ?
|
|
180
|
-
|
|
181
|
-
}),
|
|
179
|
+
t ? F(t) : I.value.forEach((e) => {
|
|
180
|
+
F(e.id);
|
|
181
|
+
}), I.value = I.value.map((e) => e.id === t || t === void 0 ? {
|
|
182
182
|
...e,
|
|
183
183
|
open: !1
|
|
184
184
|
} : e);
|
|
185
185
|
break;
|
|
186
186
|
}
|
|
187
187
|
case "REMOVE_TOAST":
|
|
188
|
-
e.toastId === void 0 ?
|
|
188
|
+
e.toastId === void 0 ? I.value = [] : I.value = I.value.filter((t) => t.id !== e.toastId);
|
|
189
189
|
break;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
var
|
|
193
|
-
function
|
|
194
|
-
return
|
|
192
|
+
var R = 0;
|
|
193
|
+
function z() {
|
|
194
|
+
return R = (R + 1) % Number.MAX_VALUE, R.toString();
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
let t =
|
|
196
|
+
function B(e) {
|
|
197
|
+
let t = z(), n = (e) => L({
|
|
198
198
|
type: "UPDATE_TOAST",
|
|
199
199
|
toast: {
|
|
200
200
|
...e,
|
|
201
201
|
id: t
|
|
202
202
|
}
|
|
203
|
-
}), r = () =>
|
|
203
|
+
}), r = () => L({
|
|
204
204
|
type: "DISMISS_TOAST",
|
|
205
205
|
toastId: t
|
|
206
206
|
});
|
|
207
|
-
return
|
|
207
|
+
return L({
|
|
208
208
|
type: "ADD_TOAST",
|
|
209
209
|
toast: {
|
|
210
210
|
...e,
|
|
@@ -220,11 +220,11 @@ function z(e) {
|
|
|
220
220
|
update: n
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function V() {
|
|
224
224
|
return {
|
|
225
|
-
toasts: r(() =>
|
|
226
|
-
toast:
|
|
227
|
-
dismiss: (e) =>
|
|
225
|
+
toasts: r(() => I.value),
|
|
226
|
+
toast: B,
|
|
227
|
+
dismiss: (e) => L({
|
|
228
228
|
type: "DISMISS_TOAST",
|
|
229
229
|
toastId: e
|
|
230
230
|
})
|
|
@@ -232,24 +232,35 @@ function B() {
|
|
|
232
232
|
}
|
|
233
233
|
//#endregion
|
|
234
234
|
//#region src/components/ui/toast/Toaster.vue?vue&type=script&setup=true&lang.ts
|
|
235
|
-
var
|
|
235
|
+
var H = { class: "grid gap-1" }, U = "fixed top-0 z-toast flex max-h-screen w-full", W = "p-4", G = "md:max-w-[420px]", K = /* @__PURE__ */ u({
|
|
236
236
|
__name: "Toaster",
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
237
|
+
props: { position: { default: "bottom-right" } },
|
|
238
|
+
setup(t) {
|
|
239
|
+
let u = t, { toasts: m } = V(), g = {
|
|
240
|
+
"bottom-right": ["flex-col-reverse", "sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col"],
|
|
241
|
+
"bottom-left": ["flex-col-reverse", "sm:bottom-0 sm:left-0 sm:top-auto sm:flex-col"],
|
|
242
|
+
"bottom-center": ["flex-col-reverse", "sm:bottom-0 sm:left-1/2 sm:top-auto sm:-translate-x-1/2 sm:flex-col"],
|
|
243
|
+
"top-right": ["right-0 flex-col", ""],
|
|
244
|
+
"top-left": ["left-0 flex-col", ""],
|
|
245
|
+
"top-center": ["left-1/2 -translate-x-1/2 flex-col", ""]
|
|
246
|
+
}, b = r(() => {
|
|
247
|
+
let [t, n] = g[u.position];
|
|
248
|
+
return e(U, t, W, n, G);
|
|
249
|
+
});
|
|
250
|
+
return (e, t) => (p(), i(v(C), null, {
|
|
251
|
+
default: y(() => [(p(!0), o(n, null, h(v(m), (e) => (p(), i(D, d({ key: e.id }, { ref_for: !0 }, e), {
|
|
252
|
+
default: y(() => [s("div", H, [e.title ? (p(), i(j, { key: 0 }, {
|
|
253
|
+
default: y(() => [c(_(e.title), 1)]),
|
|
243
254
|
_: 2
|
|
244
|
-
}, 1024)) : a("", !0), e.description ? (
|
|
245
|
-
default:
|
|
255
|
+
}, 1024)) : a("", !0), e.description ? (p(), i(A, { key: 1 }, {
|
|
256
|
+
default: y(() => [c(_(e.description), 1)]),
|
|
246
257
|
_: 2
|
|
247
|
-
}, 1024)) : a("", !0)]), l(
|
|
258
|
+
}, 1024)) : a("", !0)]), l(k)]),
|
|
248
259
|
_: 2
|
|
249
|
-
}, 1040))), 128)), l(
|
|
260
|
+
}, 1040))), 128)), l(v(E), { class: f(b.value) }, null, 8, ["class"])]),
|
|
250
261
|
_: 1
|
|
251
262
|
}));
|
|
252
263
|
}
|
|
253
264
|
});
|
|
254
265
|
//#endregion
|
|
255
|
-
export {
|
|
266
|
+
export { A as a, D as c, j as i, B as n, k as o, V as r, O as s, K as t };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
3
|
+
import { Fragment as n, createElementBlock as r, defineComponent as i, normalizeClass as a, openBlock as o, renderList as s, toDisplayString as c, unref as l } from "vue";
|
|
4
|
+
//#region src/components/custom/tabs/UnderlineTabs.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var u = ["aria-selected", "onClick"], d = /* @__PURE__ */ t(/* @__PURE__ */ i({
|
|
6
|
+
__name: "UnderlineTabs",
|
|
7
|
+
props: {
|
|
8
|
+
options: {},
|
|
9
|
+
modelValue: {},
|
|
10
|
+
class: { type: [
|
|
11
|
+
Boolean,
|
|
12
|
+
null,
|
|
13
|
+
String,
|
|
14
|
+
Object,
|
|
15
|
+
Array
|
|
16
|
+
] }
|
|
17
|
+
},
|
|
18
|
+
emits: ["update:modelValue"],
|
|
19
|
+
setup(t, { emit: i }) {
|
|
20
|
+
let d = t, f = i;
|
|
21
|
+
function p(e) {
|
|
22
|
+
f("update:modelValue", e);
|
|
23
|
+
}
|
|
24
|
+
return (i, f) => (o(), r("div", {
|
|
25
|
+
role: "tablist",
|
|
26
|
+
class: a(l(e)("underline-tabs", d.class))
|
|
27
|
+
}, [(o(!0), r(n, null, s(t.options, (e) => (o(), r("button", {
|
|
28
|
+
key: e.value,
|
|
29
|
+
class: "underline-tab",
|
|
30
|
+
role: "tab",
|
|
31
|
+
"aria-selected": t.modelValue === e.value ? "true" : "false",
|
|
32
|
+
onClick: (t) => p(e.value)
|
|
33
|
+
}, c(e.label), 9, u))), 128))], 2));
|
|
34
|
+
}
|
|
35
|
+
}), [["__scopeId", "data-v-93401bfa"]]);
|
|
36
|
+
//#endregion
|
|
37
|
+
export { d as t };
|
package/dist/animated-digit.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./_plugin-vue_export-helper-
|
|
3
|
-
import { t as n } from "./useAnimatedNumber-
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
3
|
+
import { t as n } from "./useAnimatedNumber-DKQYVB7s.js";
|
|
4
4
|
import { computed as r, createElementBlock as i, defineComponent as a, normalizeClass as o, normalizeStyle as s, openBlock as c, toDisplayString as l, unref as u } from "vue";
|
|
5
5
|
//#region src/components/custom/animated-digit/AnimatedDigit.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var d = ["data-is-animating"], f = /* @__PURE__ */ t(/* @__PURE__ */ a({
|
package/dist/api/index.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ export type { FuzzySearchState, SearchableItem, SearchIndex, SearchResult, UseFu
|
|
|
20
20
|
export type { GlassPanelProps } from "../components/custom/glass-panel";
|
|
21
21
|
export type { ToastType } from "../components/ui/toast";
|
|
22
22
|
export type { UseClipboardOptions, UseClipboardReturn, } from "../composables/dom/useClipboard";
|
|
23
|
+
export type { UseUserInvalidAriaOptions, UseUserInvalidAriaReturn, } from "../composables/dom/useUserInvalidAria";
|
|
24
|
+
export type { ViewTransitionResult } from "../composables/motion/useViewTransition";
|
|
23
25
|
export type { HeaderRibbonPosition, HeaderRibbonProps, } from "../components/custom/header-ribbon";
|
|
24
26
|
export type { MetricCellAppearance, MetricCellProps, } from "../components/custom/metric-cell";
|
|
25
27
|
export type { MetricRowProps, MetricStackProps, } from "../components/custom/metric-stack";
|
package/dist/api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./presets-
|
|
1
|
+
import { n as e, r as t, t as n } from "./presets-a-D93K1S.js";
|
|
2
2
|
export { n as DEFAULT_AURORA_CONFIG, e as MAX_NUCLEI, t as MAX_STOPS };
|