@brumaombra/ui-vintage 0.3.0 → 0.4.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/{BackgroundGrid-Cxvbtefm.js → BackgroundGrid-BJDDcLzF.js} +1 -1
- package/dist/{Busy-1BeD2TRH.js → Busy-D1u_LUYu.js} +1 -1
- package/dist/{CalendarPrevButton.vue_vue_type_script_setup_true_lang-BklOxtD-.js → CalendarPrevButton.vue_vue_type_script_setup_true_lang-BA4Aw_Sl.js} +2 -2
- package/dist/{DialogTitle.vue_vue_type_script_setup_true_lang-BMXrxvBF.js → DialogTitle.vue_vue_type_script_setup_true_lang-BG4dvMRo.js} +4 -18
- package/dist/{DialogTrigger-CjJ8QNL_.js → DialogTrigger-BQbSAHMb.js} +33 -3
- package/dist/{HugeiconsIcon.vue-BJ-_Wtmk.js → HugeiconsIcon.vue-CurGbgrJ.js} +4 -3
- package/dist/MessageToast-C1L25W2l.js +76 -0
- package/dist/{NativeSelectOption.vue_vue_type_script_setup_true_lang-Ce5VmA0n.js → NativeSelectOption.vue_vue_type_script_setup_true_lang-COnFRt8g.js} +1 -1
- package/dist/{SheetTitle.vue_vue_type_script_setup_true_lang-Csr3nKnG.js → SheetTitle.vue_vue_type_script_setup_true_lang-BQbpsE2c.js} +2 -14
- package/dist/alert-dialog.js +1 -2
- package/dist/background-grid.js +1 -1
- package/dist/busy-indicator.js +1 -1
- package/dist/busy.js +1 -1
- package/dist/calendar.js +1 -1
- package/dist/command.js +2 -2
- package/dist/components/landing/index.d.ts +6 -0
- package/dist/components/landing/landing-content/LandingContent.vue.d.ts +22 -0
- package/dist/components/landing/landing-content/index.d.ts +2 -0
- package/dist/components/landing/landing-footer/LandingFooter.vue.d.ts +44 -0
- package/dist/components/landing/landing-footer/index.d.ts +3 -0
- package/dist/components/landing/landing-navbar/LandingNavbar.vue.d.ts +25 -0
- package/dist/components/landing/landing-navbar/index.d.ts +2 -0
- package/dist/components/landing/landing-shell/LandingShell.vue.d.ts +32 -0
- package/dist/components/landing/landing-shell/index.d.ts +2 -0
- package/dist/components/message-toast/MessageToast.vue.d.ts +2 -0
- package/dist/components/message-toast/index.d.ts +2 -0
- package/dist/components/message-toast/message-toast-state.d.ts +18 -0
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +1 -4
- package/dist/confirm-dialog.js +1 -1
- package/dist/dashboard-shell.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/dialog.js +5 -17
- package/dist/error-page.js +2 -2
- package/dist/landing.js +239 -0
- package/dist/message-dialog.js +1 -1
- package/dist/message-toast.js +103 -0
- package/dist/native-select.js +1 -1
- package/dist/select.js +1 -1
- package/dist/sheet.js +2 -3
- package/dist/sidebar.js +2 -2
- package/dist/style.css +218 -59
- package/package.json +9 -1
- package/dist/DialogClose-DDtZ0Em0.js +0 -36
package/dist/dialog.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { _, a, b, c, d, e } from "./DialogTitle.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createElementBlock, normalizeClass, createVNode, createTextVNode, createCommentVNode
|
|
3
|
-
import { D as DialogClose_default } from "./
|
|
1
|
+
import { _, a, b, c, d, e } from "./DialogTitle.vue_vue_type_script_setup_true_lang-BG4dvMRo.js";
|
|
2
|
+
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createElementBlock, normalizeClass, createVNode, createTextVNode, createCommentVNode } from "vue";
|
|
3
|
+
import { D as DialogClose_default, a as DialogTrigger_default } from "./DialogTrigger-BQbSAHMb.js";
|
|
4
4
|
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
5
5
|
import { Button as _sfc_main$4 } from "./button.js";
|
|
6
|
-
import { H as HugeiconsIcon, a as dp } from "./HugeiconsIcon.vue-BJ-_Wtmk.js";
|
|
7
6
|
import { u as useForwardPropsEmits } from "./useForwardPropsEmits-DmumnZO5.js";
|
|
8
7
|
import { D as DialogOverlay_default, a as DialogContent_default } from "./DialogTitle-CLuntLBB.js";
|
|
9
8
|
import { D as DialogPortal_default } from "./DialogPortal-D81oXsCY.js";
|
|
10
9
|
import { r as reactiveOmit } from "./index-qGMU40e1.js";
|
|
11
|
-
import { D as DialogTrigger_default } from "./DialogTrigger-CjJ8QNL_.js";
|
|
12
10
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
13
11
|
__name: "DialogClose",
|
|
14
12
|
props: {
|
|
@@ -38,7 +36,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
38
36
|
return (_ctx, _cache) => {
|
|
39
37
|
return openBlock(), createElementBlock("div", {
|
|
40
38
|
"data-slot": "dialog-footer",
|
|
41
|
-
class: normalizeClass(unref(cn)("flex flex-col-reverse gap-3 border-t border-border
|
|
39
|
+
class: normalizeClass(unref(cn)("flex flex-col-reverse gap-3 border-t border-border pt-4 sm:flex-row-reverse", props.class))
|
|
42
40
|
}, [
|
|
43
41
|
renderSlot(_ctx.$slots, "default"),
|
|
44
42
|
_ctx.showCloseButton ? (openBlock(), createBlock(unref(DialogClose_default), {
|
|
@@ -97,17 +95,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
97
95
|
})
|
|
98
96
|
}), {
|
|
99
97
|
default: withCtx(() => [
|
|
100
|
-
renderSlot(_ctx.$slots, "default")
|
|
101
|
-
createVNode(unref(DialogClose_default), { class: "absolute top-4 right-4 rounded border border-border bg-card p-1 text-muted-foreground transition-all duration-200 hover:bg-accent hover:text-foreground" }, {
|
|
102
|
-
default: withCtx(() => [
|
|
103
|
-
createVNode(unref(HugeiconsIcon), {
|
|
104
|
-
icon: unref(dp),
|
|
105
|
-
class: "size-4"
|
|
106
|
-
}, null, 8, ["icon"]),
|
|
107
|
-
_cache[1] || (_cache[1] = createElementVNode("span", { class: "sr-only" }, "Close", -1))
|
|
108
|
-
]),
|
|
109
|
-
_: 1
|
|
110
|
-
})
|
|
98
|
+
renderSlot(_ctx.$slots, "default")
|
|
111
99
|
]),
|
|
112
100
|
_: 3
|
|
113
101
|
}, 16, ["class"])
|
package/dist/error-page.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, createBlock, createCommentVNode, createElementVNode, renderSlot, createVNode, withCtx, toDisplayString, createTextVNode } from "vue";
|
|
2
|
-
import { H as HugeiconsIcon, m as mn } from "./HugeiconsIcon.vue-
|
|
3
|
-
import { B as BackgroundGrid } from "./BackgroundGrid-
|
|
2
|
+
import { H as HugeiconsIcon, m as mn } from "./HugeiconsIcon.vue-CurGbgrJ.js";
|
|
3
|
+
import { B as BackgroundGrid } from "./BackgroundGrid-BJDDcLzF.js";
|
|
4
4
|
import { Button as _sfc_main$4 } from "./button.js";
|
|
5
5
|
import { _ as _sfc_main$1 } from "./Card.vue_vue_type_script_setup_true_lang-6ol3rxy1.js";
|
|
6
6
|
import { _ as _sfc_main$2, a as _sfc_main$3 } from "./CardFooter.vue_vue_type_script_setup_true_lang-B1eS9wge.js";
|
package/dist/landing.js
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, useSlots, computed, createBlock, createCommentVNode, Fragment, toDisplayString, renderList, resolveDynamicComponent, mergeProps, withCtx, createTextVNode } from "vue";
|
|
2
|
+
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
3
|
+
import { B as BackgroundGrid } from "./BackgroundGrid-BJDDcLzF.js";
|
|
4
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "LandingNavbar",
|
|
6
|
+
props: {
|
|
7
|
+
class: {},
|
|
8
|
+
containerClass: {},
|
|
9
|
+
leftClass: {},
|
|
10
|
+
rightClass: {}
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
return openBlock(), createElementBlock("header", {
|
|
16
|
+
class: normalizeClass(unref(cn)("z-30 flex h-20 w-full flex-wrap sm:flex-nowrap sm:justify-start", props.class))
|
|
17
|
+
}, [
|
|
18
|
+
createElementVNode("nav", {
|
|
19
|
+
class: normalizeClass(unref(cn)("mx-auto flex max-w-6xl basis-full items-center justify-between px-3 sm:px-6 lg:px-8", props.containerClass))
|
|
20
|
+
}, [
|
|
21
|
+
createElementVNode("div", {
|
|
22
|
+
class: normalizeClass(unref(cn)("flex items-center", props.leftClass))
|
|
23
|
+
}, [
|
|
24
|
+
renderSlot(_ctx.$slots, "left")
|
|
25
|
+
], 2),
|
|
26
|
+
createElementVNode("div", {
|
|
27
|
+
class: normalizeClass(unref(cn)("flex items-center justify-end gap-3", props.rightClass))
|
|
28
|
+
}, [
|
|
29
|
+
renderSlot(_ctx.$slots, "right")
|
|
30
|
+
], 2)
|
|
31
|
+
], 2)
|
|
32
|
+
], 2);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
37
|
+
__name: "LandingContent",
|
|
38
|
+
props: {
|
|
39
|
+
class: {},
|
|
40
|
+
containerClass: {}
|
|
41
|
+
},
|
|
42
|
+
setup(__props) {
|
|
43
|
+
const props = __props;
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
return openBlock(), createElementBlock("main", {
|
|
46
|
+
class: normalizeClass(unref(cn)("relative z-10 flex-1", props.class))
|
|
47
|
+
}, [
|
|
48
|
+
createElementVNode("div", {
|
|
49
|
+
class: normalizeClass(unref(cn)("mx-auto w-full max-w-6xl px-3 py-6 sm:px-6 lg:px-8 lg:py-14", props.containerClass))
|
|
50
|
+
}, [
|
|
51
|
+
renderSlot(_ctx.$slots, "default")
|
|
52
|
+
], 2)
|
|
53
|
+
], 2);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
58
|
+
__name: "LandingShell",
|
|
59
|
+
props: {
|
|
60
|
+
showBackground: { type: Boolean, default: true },
|
|
61
|
+
rootClass: {},
|
|
62
|
+
navbarClass: {},
|
|
63
|
+
mainClass: {},
|
|
64
|
+
contentContainerClass: {},
|
|
65
|
+
footerClass: {}
|
|
66
|
+
},
|
|
67
|
+
setup(__props) {
|
|
68
|
+
const props = __props;
|
|
69
|
+
const slots = useSlots();
|
|
70
|
+
const hasStructuredSlots = computed(() => {
|
|
71
|
+
return Boolean(slots.navbar || slots.content || slots.footer);
|
|
72
|
+
});
|
|
73
|
+
return (_ctx, _cache) => {
|
|
74
|
+
return openBlock(), createElementBlock("div", {
|
|
75
|
+
class: normalizeClass(unref(cn)("relative flex min-h-screen flex-col bg-background text-foreground", props.rootClass))
|
|
76
|
+
}, [
|
|
77
|
+
props.showBackground ? (openBlock(), createBlock(BackgroundGrid, { key: 0 })) : createCommentVNode("", true),
|
|
78
|
+
hasStructuredSlots.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
79
|
+
createElementVNode("header", {
|
|
80
|
+
class: normalizeClass(unref(cn)("relative z-10", props.navbarClass))
|
|
81
|
+
}, [
|
|
82
|
+
renderSlot(_ctx.$slots, "navbar")
|
|
83
|
+
], 2),
|
|
84
|
+
createElementVNode("main", {
|
|
85
|
+
class: normalizeClass(unref(cn)("relative z-10 flex-1", props.mainClass))
|
|
86
|
+
}, [
|
|
87
|
+
createElementVNode("div", {
|
|
88
|
+
class: normalizeClass(unref(cn)("mx-auto w-full max-w-6xl px-3 py-6 sm:px-6 lg:px-8 lg:py-14", props.contentContainerClass))
|
|
89
|
+
}, [
|
|
90
|
+
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
91
|
+
renderSlot(_ctx.$slots, "default")
|
|
92
|
+
])
|
|
93
|
+
], 2)
|
|
94
|
+
], 2),
|
|
95
|
+
createElementVNode("footer", {
|
|
96
|
+
class: normalizeClass(unref(cn)("relative z-10", props.footerClass))
|
|
97
|
+
}, [
|
|
98
|
+
renderSlot(_ctx.$slots, "footer")
|
|
99
|
+
], 2)
|
|
100
|
+
], 64)) : renderSlot(_ctx.$slots, "default", { key: 2 })
|
|
101
|
+
], 2);
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
const _hoisted_1 = { class: "grid grid-cols-1 gap-8 md:grid-cols-4" };
|
|
106
|
+
const _hoisted_2 = { class: "mb-4 text-lg font-semibold tracking-tight text-foreground" };
|
|
107
|
+
const _hoisted_3 = {
|
|
108
|
+
key: 0,
|
|
109
|
+
class: "max-w-sm text-sm leading-relaxed text-muted-foreground"
|
|
110
|
+
};
|
|
111
|
+
const _hoisted_4 = { class: "md:text-right" };
|
|
112
|
+
const _hoisted_5 = { class: "mb-4 font-semibold text-foreground" };
|
|
113
|
+
const _hoisted_6 = { class: "space-y-3 text-sm" };
|
|
114
|
+
const _hoisted_7 = { class: "mb-4 font-semibold text-foreground" };
|
|
115
|
+
const _hoisted_8 = { class: "space-y-3 text-sm" };
|
|
116
|
+
const _hoisted_9 = { key: 0 };
|
|
117
|
+
const _hoisted_10 = ["href"];
|
|
118
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
119
|
+
__name: "LandingFooter",
|
|
120
|
+
props: {
|
|
121
|
+
appName: {},
|
|
122
|
+
appDescription: { default: "" },
|
|
123
|
+
sections: { default: () => [] },
|
|
124
|
+
linkComponent: { default: "a" },
|
|
125
|
+
copyrightName: { default: "" },
|
|
126
|
+
allRightsReservedText: { default: "All rights reserved." },
|
|
127
|
+
madeByText: { default: "" },
|
|
128
|
+
madeByName: { default: "" },
|
|
129
|
+
madeByLink: { default: "" },
|
|
130
|
+
year: { default: () => (/* @__PURE__ */ new Date()).getFullYear() },
|
|
131
|
+
showBottomBar: { type: Boolean, default: true },
|
|
132
|
+
class: {},
|
|
133
|
+
containerClass: {},
|
|
134
|
+
brandClass: {},
|
|
135
|
+
sectionsClass: {},
|
|
136
|
+
bottomBarClass: {}
|
|
137
|
+
},
|
|
138
|
+
setup(__props) {
|
|
139
|
+
const props = __props;
|
|
140
|
+
const resolvedCopyrightName = computed(() => props.copyrightName || props.appName);
|
|
141
|
+
const getLinkProps = (link) => {
|
|
142
|
+
const sharedProps = link.newTab ? { target: "_blank", rel: "noopener noreferrer" } : {};
|
|
143
|
+
if (props.linkComponent === "a") {
|
|
144
|
+
return {
|
|
145
|
+
href: link.href ?? "#",
|
|
146
|
+
...sharedProps
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
return {
|
|
150
|
+
to: link.to ?? link.href ?? "/",
|
|
151
|
+
...sharedProps
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
return (_ctx, _cache) => {
|
|
155
|
+
var _a, _b, _c;
|
|
156
|
+
return openBlock(), createElementBlock("footer", {
|
|
157
|
+
class: normalizeClass(unref(cn)("relative z-10 border-t border-border bg-card", props.class))
|
|
158
|
+
}, [
|
|
159
|
+
createElementVNode("div", {
|
|
160
|
+
class: normalizeClass(unref(cn)("mx-auto max-w-7xl px-4 py-12 sm:px-6 lg:px-8", props.containerClass))
|
|
161
|
+
}, [
|
|
162
|
+
createElementVNode("div", _hoisted_1, [
|
|
163
|
+
createElementVNode("div", {
|
|
164
|
+
class: normalizeClass(unref(cn)("col-span-1 md:col-span-2", props.brandClass))
|
|
165
|
+
}, [
|
|
166
|
+
createElementVNode("div", _hoisted_2, toDisplayString(props.appName), 1),
|
|
167
|
+
props.appDescription ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(props.appDescription), 1)) : createCommentVNode("", true)
|
|
168
|
+
], 2),
|
|
169
|
+
((_a = props.sections) == null ? void 0 : _a.length) === 1 ? (openBlock(), createElementBlock("div", {
|
|
170
|
+
key: 0,
|
|
171
|
+
class: normalizeClass(unref(cn)("min-w-0 md:col-span-2 md:flex md:justify-end", props.sectionsClass))
|
|
172
|
+
}, [
|
|
173
|
+
createElementVNode("div", _hoisted_4, [
|
|
174
|
+
createElementVNode("h3", _hoisted_5, toDisplayString((_b = props.sections[0]) == null ? void 0 : _b.title), 1),
|
|
175
|
+
createElementVNode("ul", _hoisted_6, [
|
|
176
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList((_c = props.sections[0]) == null ? void 0 : _c.links, (link) => {
|
|
177
|
+
return openBlock(), createElementBlock("li", {
|
|
178
|
+
key: link.id
|
|
179
|
+
}, [
|
|
180
|
+
(openBlock(), createBlock(resolveDynamicComponent(props.linkComponent), mergeProps({ ref_for: true }, getLinkProps(link), { class: "text-muted-foreground transition-colors duration-200 hover:text-foreground" }), {
|
|
181
|
+
default: withCtx(() => [
|
|
182
|
+
createTextVNode(toDisplayString(link.label), 1)
|
|
183
|
+
]),
|
|
184
|
+
_: 2
|
|
185
|
+
}, 1040))
|
|
186
|
+
]);
|
|
187
|
+
}), 128))
|
|
188
|
+
])
|
|
189
|
+
])
|
|
190
|
+
], 2)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(props.sections, (section) => {
|
|
191
|
+
return openBlock(), createElementBlock("div", {
|
|
192
|
+
key: section.id,
|
|
193
|
+
class: normalizeClass(unref(cn)("min-w-0", props.sectionsClass))
|
|
194
|
+
}, [
|
|
195
|
+
createElementVNode("h3", _hoisted_7, toDisplayString(section.title), 1),
|
|
196
|
+
createElementVNode("ul", _hoisted_8, [
|
|
197
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(section.links, (link) => {
|
|
198
|
+
return openBlock(), createElementBlock("li", {
|
|
199
|
+
key: link.id
|
|
200
|
+
}, [
|
|
201
|
+
(openBlock(), createBlock(resolveDynamicComponent(props.linkComponent), mergeProps({ ref_for: true }, getLinkProps(link), { class: "text-muted-foreground transition-colors duration-200 hover:text-foreground" }), {
|
|
202
|
+
default: withCtx(() => [
|
|
203
|
+
createTextVNode(toDisplayString(link.label), 1)
|
|
204
|
+
]),
|
|
205
|
+
_: 2
|
|
206
|
+
}, 1040))
|
|
207
|
+
]);
|
|
208
|
+
}), 128))
|
|
209
|
+
])
|
|
210
|
+
], 2);
|
|
211
|
+
}), 128))
|
|
212
|
+
]),
|
|
213
|
+
props.showBottomBar ? (openBlock(), createElementBlock("div", {
|
|
214
|
+
key: 0,
|
|
215
|
+
class: normalizeClass(unref(cn)("mt-12 flex flex-col items-center justify-between gap-4 border-t border-border pt-8 text-sm text-muted-foreground md:flex-row", props.bottomBarClass))
|
|
216
|
+
}, [
|
|
217
|
+
createElementVNode("div", null, " © " + toDisplayString(props.year) + " " + toDisplayString(resolvedCopyrightName.value) + ". " + toDisplayString(props.allRightsReservedText), 1),
|
|
218
|
+
props.madeByText && props.madeByName && props.madeByLink ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
219
|
+
createTextVNode(toDisplayString(props.madeByText) + " ", 1),
|
|
220
|
+
createElementVNode("a", {
|
|
221
|
+
href: props.madeByLink,
|
|
222
|
+
target: "_blank",
|
|
223
|
+
rel: "noopener noreferrer",
|
|
224
|
+
class: "font-medium text-foreground hover:underline"
|
|
225
|
+
}, toDisplayString(props.madeByName), 9, _hoisted_10)
|
|
226
|
+
])) : createCommentVNode("", true)
|
|
227
|
+
], 2)) : createCommentVNode("", true)
|
|
228
|
+
], 2)
|
|
229
|
+
], 2);
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
export {
|
|
234
|
+
_sfc_main$2 as LandingContent,
|
|
235
|
+
_sfc_main as LandingFooter,
|
|
236
|
+
_sfc_main$3 as LandingNavbar,
|
|
237
|
+
_sfc_main$1 as LandingShell,
|
|
238
|
+
_sfc_main$3 as default
|
|
239
|
+
};
|
package/dist/message-dialog.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reactive, render, h, markRaw, defineComponent, computed, openBlock, createBlock, unref, withCtx, createElementVNode, normalizeClass, resolveDynamicComponent, createVNode, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import { A as AE, $ as $o, T as TWr, H as HugeiconsIcon } from "./HugeiconsIcon.vue-
|
|
2
|
+
import { A as AE, $ as $o, T as TWr, H as HugeiconsIcon } from "./HugeiconsIcon.vue-CurGbgrJ.js";
|
|
3
3
|
import { _ as _sfc_main$1, a as _sfc_main$2, b as _sfc_main$3, c as _sfc_main$4, d as _sfc_main$5, e as _sfc_main$6 } from "./AlertDialogTitle.vue_vue_type_script_setup_true_lang-Ca0g2mVz.js";
|
|
4
4
|
import { Button as _sfc_main$7 } from "./button.js";
|
|
5
5
|
const messageDialogQueue = [];
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { reactive, render, h } from "vue";
|
|
2
|
+
const TOAST_CLOSE_DURATION_MS = 300;
|
|
3
|
+
const DEFAULT_TOAST_DURATION_MS = 5e3;
|
|
4
|
+
const MESSAGE_TOAST_ROOT_ID = "ui-vintage-message-toast-root";
|
|
5
|
+
let dismissTimer = null;
|
|
6
|
+
let clearTimer = null;
|
|
7
|
+
let messageToastMountPromise = null;
|
|
8
|
+
let openFrame = null;
|
|
9
|
+
let activeToastId = 0;
|
|
10
|
+
const messageToastState = reactive({
|
|
11
|
+
current: null,
|
|
12
|
+
isOpen: false
|
|
13
|
+
});
|
|
14
|
+
const ensureMessageToastMounted = () => {
|
|
15
|
+
if (typeof document === "undefined") {
|
|
16
|
+
return Promise.resolve();
|
|
17
|
+
}
|
|
18
|
+
const existingRoot = document.getElementById(MESSAGE_TOAST_ROOT_ID);
|
|
19
|
+
if (existingRoot) {
|
|
20
|
+
return Promise.resolve();
|
|
21
|
+
}
|
|
22
|
+
if (messageToastMountPromise) {
|
|
23
|
+
return messageToastMountPromise;
|
|
24
|
+
}
|
|
25
|
+
messageToastMountPromise = (async () => {
|
|
26
|
+
const { default: MessageToast } = await import("./MessageToast-C1L25W2l.js");
|
|
27
|
+
if (document.getElementById(MESSAGE_TOAST_ROOT_ID)) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const container = document.createElement("div");
|
|
31
|
+
container.id = MESSAGE_TOAST_ROOT_ID;
|
|
32
|
+
document.body.appendChild(container);
|
|
33
|
+
render(h(MessageToast), container);
|
|
34
|
+
})().finally(() => {
|
|
35
|
+
messageToastMountPromise = null;
|
|
36
|
+
});
|
|
37
|
+
return messageToastMountPromise;
|
|
38
|
+
};
|
|
39
|
+
const clearMessageToastTimers = () => {
|
|
40
|
+
if (dismissTimer) {
|
|
41
|
+
clearTimeout(dismissTimer);
|
|
42
|
+
dismissTimer = null;
|
|
43
|
+
}
|
|
44
|
+
if (clearTimer) {
|
|
45
|
+
clearTimeout(clearTimer);
|
|
46
|
+
clearTimer = null;
|
|
47
|
+
}
|
|
48
|
+
if (openFrame !== null && typeof cancelAnimationFrame !== "undefined") {
|
|
49
|
+
cancelAnimationFrame(openFrame);
|
|
50
|
+
openFrame = null;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const clearCurrentMessageToast = () => {
|
|
54
|
+
messageToastState.current = null;
|
|
55
|
+
};
|
|
56
|
+
const scheduleCloseMessageToast = () => {
|
|
57
|
+
if (!messageToastState.current || !messageToastState.isOpen) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
messageToastState.isOpen = false;
|
|
61
|
+
clearTimer = setTimeout(() => {
|
|
62
|
+
clearTimer = null;
|
|
63
|
+
clearCurrentMessageToast();
|
|
64
|
+
}, TOAST_CLOSE_DURATION_MS);
|
|
65
|
+
};
|
|
66
|
+
const closeMessageToast = () => {
|
|
67
|
+
clearMessageToastTimers();
|
|
68
|
+
scheduleCloseMessageToast();
|
|
69
|
+
};
|
|
70
|
+
const showMessageToast = (options) => {
|
|
71
|
+
clearMessageToastTimers();
|
|
72
|
+
activeToastId += 1;
|
|
73
|
+
const toastId = activeToastId;
|
|
74
|
+
const duration = options.duration ?? DEFAULT_TOAST_DURATION_MS;
|
|
75
|
+
messageToastState.current = {
|
|
76
|
+
message: options.message,
|
|
77
|
+
status: options.status ?? "success"
|
|
78
|
+
};
|
|
79
|
+
messageToastState.isOpen = false;
|
|
80
|
+
void ensureMessageToastMounted().then(() => {
|
|
81
|
+
if (toastId !== activeToastId || !messageToastState.current || typeof requestAnimationFrame === "undefined") {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
openFrame = requestAnimationFrame(() => {
|
|
85
|
+
openFrame = null;
|
|
86
|
+
if (toastId !== activeToastId || !messageToastState.current) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
messageToastState.isOpen = true;
|
|
90
|
+
if (duration > 0) {
|
|
91
|
+
dismissTimer = setTimeout(() => {
|
|
92
|
+
dismissTimer = null;
|
|
93
|
+
scheduleCloseMessageToast();
|
|
94
|
+
}, duration);
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
export {
|
|
100
|
+
closeMessageToast,
|
|
101
|
+
messageToastState,
|
|
102
|
+
showMessageToast
|
|
103
|
+
};
|
package/dist/native-select.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _, a } from "./NativeSelectOption.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _, a } from "./NativeSelectOption.vue_vue_type_script_setup_true_lang-COnFRt8g.js";
|
|
2
2
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
3
3
|
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
package/dist/select.js
CHANGED
|
@@ -16,7 +16,7 @@ import { u as useForwardExpose } from "./useForwardExpose-BiRQH8eO.js";
|
|
|
16
16
|
import { P as Primitive } from "./Primitive-D3IcFg81.js";
|
|
17
17
|
import { i as injectConfigProviderContext } from "./ConfigProvider-D2O0Jles.js";
|
|
18
18
|
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
19
|
-
import { H as HugeiconsIcon, T as TWr, d as dn, C as CC } from "./HugeiconsIcon.vue-
|
|
19
|
+
import { H as HugeiconsIcon, T as TWr, d as dn, C as CC } from "./HugeiconsIcon.vue-CurGbgrJ.js";
|
|
20
20
|
import { r as reactiveOmit } from "./index-qGMU40e1.js";
|
|
21
21
|
function useNonce(nonce) {
|
|
22
22
|
const context = injectConfigProviderContext({ nonce: ref() });
|
package/dist/sheet.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { _, a, b, c, d } from "./SheetTitle.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _, a, b, c, d } from "./SheetTitle.vue_vue_type_script_setup_true_lang-BQbpsE2c.js";
|
|
2
2
|
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createElementBlock, normalizeClass } from "vue";
|
|
3
|
-
import { D as DialogClose_default } from "./
|
|
3
|
+
import { D as DialogClose_default, a as DialogTrigger_default } from "./DialogTrigger-BQbSAHMb.js";
|
|
4
4
|
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
5
|
-
import { D as DialogTrigger_default } from "./DialogTrigger-CjJ8QNL_.js";
|
|
6
5
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
7
6
|
__name: "SheetClose",
|
|
8
7
|
props: {
|
package/dist/sidebar.js
CHANGED
|
@@ -2,7 +2,7 @@ var _a;
|
|
|
2
2
|
import { c as cva } from "./index-FpH8cK6B.js";
|
|
3
3
|
import { defineComponent, openBlock, createElementBlock, mergeProps, unref, renderSlot, createBlock, withCtx, createVNode, normalizeStyle, createTextVNode, createElementVNode, normalizeClass, normalizeProps, guardReactiveProps, Fragment, toDisplayString, resolveDynamicComponent, computed, createCommentVNode, ref } from "vue";
|
|
4
4
|
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
5
|
-
import { _ as _sfc_main$o, a as _sfc_main$p, c as _sfc_main$q, d as _sfc_main$r, b as _sfc_main$s } from "./SheetTitle.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as _sfc_main$o, a as _sfc_main$p, c as _sfc_main$q, d as _sfc_main$r, b as _sfc_main$s } from "./SheetTitle.vue_vue_type_script_setup_true_lang-BQbpsE2c.js";
|
|
6
6
|
import { c as createContext } from "./useForwardPropsEmits-DmumnZO5.js";
|
|
7
7
|
import { P as Primitive } from "./Primitive-D3IcFg81.js";
|
|
8
8
|
import { _ as _sfc_main$t } from "./Input.vue_vue_type_script_setup_true_lang-6SfPeT8d.js";
|
|
@@ -10,7 +10,7 @@ import { _ as _sfc_main$u, b as _sfc_main$v, a as _sfc_main$w, T as TooltipProvi
|
|
|
10
10
|
import { _ as _sfc_main$x } from "./Skeleton.vue_vue_type_script_setup_true_lang-BSbVyZz7.js";
|
|
11
11
|
import { f as useMediaQuery, u as useVModel, b as useEventListener, g as defaultDocument } from "./index-Cq9Ekgtb.js";
|
|
12
12
|
import { _ as _sfc_main$y } from "./Separator.vue_vue_type_script_setup_true_lang-CMRkdntA.js";
|
|
13
|
-
import { H as HugeiconsIcon,
|
|
13
|
+
import { H as HugeiconsIcon, e as m7 } from "./HugeiconsIcon.vue-CurGbgrJ.js";
|
|
14
14
|
import { Button as _sfc_main$z } from "./button.js";
|
|
15
15
|
import { r as reactiveOmit } from "./index-qGMU40e1.js";
|
|
16
16
|
const SIDEBAR_COOKIE_NAME = "sidebar_state";
|