@brumaombra/ui-vintage 0.5.1 → 0.6.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/{EmptyStateCard.vue_vue_type_script_setup_true_lang-BYKX6WRQ.js → EmptyStateCard.vue_vue_type_script_setup_true_lang-DkCsOraz.js} +2 -2
- package/dist/{LandingFooter.vue_vue_type_script_setup_true_lang-CDy30mYg.js → LandingFooter.vue_vue_type_script_setup_true_lang-Do7mz0nK.js} +4 -4
- package/dist/{LoadMoreButton.vue_vue_type_script_setup_true_lang-CGhFcsF-.js → LoadMoreButton.vue_vue_type_script_setup_true_lang-y6FveJPg.js} +2 -2
- package/dist/{LoadingStateCard.vue_vue_type_script_setup_true_lang-DwyQjtZ3.js → LoadingStateCard.vue_vue_type_script_setup_true_lang-Czptkhu8.js} +2 -2
- package/dist/{MessageToast-uKrMyOZf.js → MessageToast-CDeSPwXN.js} +2 -2
- package/dist/card-grid.js +3 -3
- package/dist/empty-state-card.js +1 -1
- package/dist/i18n/en.json.d.ts +1 -1
- package/dist/i18n/it.json.d.ts +1 -1
- package/dist/i18n.js +102 -104
- package/dist/landing-footer.js +1 -1
- package/dist/landing.js +1 -1
- package/dist/language-selector.js +2 -2
- package/dist/lib/i18n.d.ts +4 -4
- package/dist/load-more-button.js +1 -1
- package/dist/loading-state-card.js +1 -1
- package/dist/message-dialog.js +3 -3
- package/dist/message-toast.js +1 -1
- package/dist/style.css +4 -4
- package/dist/theme-selector.js +5 -5
- package/package.json +1 -1
|
@@ -27,8 +27,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
const props = __props;
|
|
28
28
|
const { t } = useI18n();
|
|
29
29
|
const hasCustomCopy = computed(() => Boolean(props.title || props.description || props.titleKey || props.descriptionKey));
|
|
30
|
-
const resolvedTitle = computed(() => props.title || (props.titleKey ? t(props.titleKey) : "") || (!hasCustomCopy.value ? t("ui.common.empty.title") : "") || (!hasCustomCopy.value ? "Nothing here yet" : ""));
|
|
31
|
-
const resolvedDescription = computed(() => props.description || (props.descriptionKey ? t(props.descriptionKey) : "") || (!hasCustomCopy.value ? t("ui.common.empty.description") : "") || (!hasCustomCopy.value ? "There is no content to show right now." : ""));
|
|
30
|
+
const resolvedTitle = computed(() => props.title || (props.titleKey ? t(props.titleKey) : "") || (!hasCustomCopy.value ? t("ui-vintage.common.empty.title") : "") || (!hasCustomCopy.value ? "Nothing here yet" : ""));
|
|
31
|
+
const resolvedDescription = computed(() => props.description || (props.descriptionKey ? t(props.descriptionKey) : "") || (!hasCustomCopy.value ? t("ui-vintage.common.empty.description") : "") || (!hasCustomCopy.value ? "There is no content to show right now." : ""));
|
|
32
32
|
return (_ctx, _cache) => {
|
|
33
33
|
return openBlock(), createBlock(unref(_sfc_main$1), { class: "flex flex-col items-center justify-center px-4 py-8 text-center md:py-12" }, {
|
|
34
34
|
default: withCtx(() => [
|
|
@@ -67,7 +67,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
67
67
|
class: normalizeClass(unref(cn)("mx-auto max-w-7xl px-4 py-12 sm:px-6 lg:px-8", props.containerClass))
|
|
68
68
|
}, [
|
|
69
69
|
createElementVNode("div", {
|
|
70
|
-
class: normalizeClass(unref(cn)("flex flex-col gap-8
|
|
70
|
+
class: normalizeClass(unref(cn)("flex flex-col gap-8 md:flex-row md:items-start md:justify-between"))
|
|
71
71
|
}, [
|
|
72
72
|
createElementVNode("div", {
|
|
73
73
|
class: normalizeClass(unref(cn)("max-w-md flex-1", props.brandClass))
|
|
@@ -133,14 +133,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
133
133
|
key: 0,
|
|
134
134
|
class: normalizeClass(unref(cn)("mt-12 flex flex-col items-center justify-between gap-4 border-t border-border pt-8 text-xs md:text-sm text-muted-foreground md:flex-row", props.bottomBarClass))
|
|
135
135
|
}, [
|
|
136
|
-
createElementVNode("div", null, " © " + toDisplayString(props.year) + " " + toDisplayString(props.appName) + ". " + toDisplayString(unref(t)("ui.footer.allRightsReserved")), 1),
|
|
136
|
+
createElementVNode("div", null, " © " + toDisplayString(props.year) + " " + toDisplayString(props.appName) + ". " + toDisplayString(unref(t)("ui-vintage.footer.allRightsReserved")), 1),
|
|
137
137
|
props.authorName && props.authorLink ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
138
|
-
createElementVNode("span", null, toDisplayString(unref(t)("ui.footer.madeWith")), 1),
|
|
138
|
+
createElementVNode("span", null, toDisplayString(unref(t)("ui-vintage.footer.madeWith")), 1),
|
|
139
139
|
createVNode(unref(HugeiconsIcon), {
|
|
140
140
|
icon: unref(DB),
|
|
141
141
|
class: "size-4 shrink-0 text-red-700 dark:text-red-400"
|
|
142
142
|
}, null, 8, ["icon"]),
|
|
143
|
-
createElementVNode("span", null, toDisplayString(unref(t)("ui.footer.by")), 1),
|
|
143
|
+
createElementVNode("span", null, toDisplayString(unref(t)("ui-vintage.footer.by")), 1),
|
|
144
144
|
createElementVNode("a", {
|
|
145
145
|
href: props.authorLink,
|
|
146
146
|
target: "_blank",
|
|
@@ -16,8 +16,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
const props = __props;
|
|
17
17
|
const emits = __emit;
|
|
18
18
|
const { t } = useI18n();
|
|
19
|
-
const resolvedText = computed(() => props.text || t("ui.buttons.loadMore") || "Load more");
|
|
20
|
-
const resolvedLoadingText = computed(() => props.loadingText || t("ui.buttons.loading") || "Loading");
|
|
19
|
+
const resolvedText = computed(() => props.text || t("ui-vintage.buttons.loadMore") || "Load more");
|
|
20
|
+
const resolvedLoadingText = computed(() => props.loadingText || t("ui-vintage.buttons.loading") || "Loading");
|
|
21
21
|
const handleClick = () => {
|
|
22
22
|
emits("load-more");
|
|
23
23
|
};
|
|
@@ -23,8 +23,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
23
|
setup(__props) {
|
|
24
24
|
const props = __props;
|
|
25
25
|
const { t } = useI18n();
|
|
26
|
-
const resolvedTitle = computed(() => props.title || t("ui.common.loading.title") || "Loading...");
|
|
27
|
-
const resolvedDescription = computed(() => props.description || t("ui.common.loading.description") || "Please wait a moment while we load the content.");
|
|
26
|
+
const resolvedTitle = computed(() => props.title || t("ui-vintage.common.loading.title") || "Loading...");
|
|
27
|
+
const resolvedDescription = computed(() => props.description || t("ui-vintage.common.loading.description") || "Please wait a moment while we load the content.");
|
|
28
28
|
return (_ctx, _cache) => {
|
|
29
29
|
return openBlock(), createBlock(unref(_sfc_main$1), { class: "flex flex-col items-center justify-center px-4 py-8 text-center md:py-12" }, {
|
|
30
30
|
default: withCtx(() => [
|
|
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
12
|
__name: "MessageToast",
|
|
13
13
|
setup(__props) {
|
|
14
14
|
const currentToast = computed(() => messageToastState.current);
|
|
15
|
-
const closeAriaLabel = computed(() => getUiVintageRuntimeMessage("ui.buttons.close", "Close"));
|
|
15
|
+
const closeAriaLabel = computed(() => getUiVintageRuntimeMessage("ui-vintage.buttons.close", "Close"));
|
|
16
16
|
const toastType = computed(() => {
|
|
17
17
|
var _a;
|
|
18
18
|
return ((_a = currentToast.value) == null ? void 0 : _a.type) ?? "success";
|
|
@@ -73,7 +73,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
|
-
const MessageToast = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
76
|
+
const MessageToast = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-602908ae"]]);
|
|
77
77
|
export {
|
|
78
78
|
MessageToast as default
|
|
79
79
|
};
|
package/dist/card-grid.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createBlock, unref, Fragment, renderList, renderSlot, createVNode, createCommentVNode } from "vue";
|
|
2
2
|
import { u as u7 } from "./index.min-CZ9FIOXr.js";
|
|
3
|
-
import { _ as _sfc_main$2 } from "./EmptyStateCard.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as _sfc_main$3 } from "./LoadMoreButton.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as _sfc_main$1 } from "./LoadingStateCard.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as _sfc_main$2 } from "./EmptyStateCard.vue_vue_type_script_setup_true_lang-DkCsOraz.js";
|
|
4
|
+
import { _ as _sfc_main$3 } from "./LoadMoreButton.vue_vue_type_script_setup_true_lang-y6FveJPg.js";
|
|
5
|
+
import { _ as _sfc_main$1 } from "./LoadingStateCard.vue_vue_type_script_setup_true_lang-Czptkhu8.js";
|
|
6
6
|
const _hoisted_1 = {
|
|
7
7
|
key: 2,
|
|
8
8
|
class: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 md:gap-6 xl:gap-4"
|
package/dist/empty-state-card.js
CHANGED
package/dist/i18n/en.json.d.ts
CHANGED
package/dist/i18n/it.json.d.ts
CHANGED
package/dist/i18n.js
CHANGED
|
@@ -1,115 +1,113 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
const en = {
|
|
2
|
+
"ui-vintage": {
|
|
3
|
+
common: {
|
|
4
|
+
empty: {
|
|
5
|
+
title: "Nothing here yet",
|
|
6
|
+
description: "There is no content to show right now."
|
|
7
|
+
},
|
|
8
|
+
loading: {
|
|
9
|
+
title: "Loading...",
|
|
10
|
+
description: "Please wait a moment while we load the content."
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
buttons: {
|
|
14
|
+
all: "All",
|
|
15
|
+
close: "Close",
|
|
16
|
+
cancel: "Cancel",
|
|
17
|
+
"delete": "Delete",
|
|
18
|
+
confirm: "Confirm",
|
|
19
|
+
filter: "Filter",
|
|
20
|
+
search: "Search",
|
|
21
|
+
apply: "Apply",
|
|
22
|
+
clear: "Clear",
|
|
23
|
+
loading: "Loading",
|
|
24
|
+
loadMore: "Load more",
|
|
25
|
+
save: "Save",
|
|
26
|
+
update: "Update",
|
|
27
|
+
goBack: "Go back"
|
|
28
|
+
},
|
|
29
|
+
theme: {
|
|
30
|
+
light: "Light",
|
|
31
|
+
dark: "Dark",
|
|
32
|
+
auto: "Auto",
|
|
33
|
+
title: "Choose theme",
|
|
34
|
+
ariaLabel: "Toggle theme selector"
|
|
35
|
+
},
|
|
36
|
+
language: {
|
|
37
|
+
title: "Choose language",
|
|
38
|
+
ariaLabel: "Language selector"
|
|
6
39
|
},
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
40
|
+
footer: {
|
|
41
|
+
madeWith: "Made with",
|
|
42
|
+
by: "by",
|
|
43
|
+
allRightsReserved: "All rights reserved."
|
|
44
|
+
},
|
|
45
|
+
select: {
|
|
46
|
+
defaultPlaceholder: "Select an option"
|
|
47
|
+
},
|
|
48
|
+
messageDialog: {
|
|
49
|
+
error: "Error",
|
|
50
|
+
success: "Success",
|
|
51
|
+
info: "Information",
|
|
52
|
+
warning: "Warning"
|
|
10
53
|
}
|
|
11
|
-
},
|
|
12
|
-
buttons: {
|
|
13
|
-
all: "All",
|
|
14
|
-
close: "Close",
|
|
15
|
-
cancel: "Cancel",
|
|
16
|
-
"delete": "Delete",
|
|
17
|
-
confirm: "Confirm",
|
|
18
|
-
filter: "Filter",
|
|
19
|
-
search: "Search",
|
|
20
|
-
apply: "Apply",
|
|
21
|
-
clear: "Clear",
|
|
22
|
-
loading: "Loading",
|
|
23
|
-
loadMore: "Load more",
|
|
24
|
-
save: "Save",
|
|
25
|
-
update: "Update",
|
|
26
|
-
goBack: "Go back"
|
|
27
|
-
},
|
|
28
|
-
theme: {
|
|
29
|
-
light: "Light",
|
|
30
|
-
dark: "Dark",
|
|
31
|
-
auto: "Auto",
|
|
32
|
-
title: "Choose theme",
|
|
33
|
-
ariaLabel: "Toggle theme selector"
|
|
34
|
-
},
|
|
35
|
-
language: {
|
|
36
|
-
title: "Choose language",
|
|
37
|
-
ariaLabel: "Language selector"
|
|
38
|
-
},
|
|
39
|
-
footer: {
|
|
40
|
-
madeWith: "Made with",
|
|
41
|
-
by: "by",
|
|
42
|
-
allRightsReserved: "All rights reserved."
|
|
43
|
-
},
|
|
44
|
-
select: {
|
|
45
|
-
defaultPlaceholder: "Select an option"
|
|
46
|
-
},
|
|
47
|
-
messageDialog: {
|
|
48
|
-
error: "Error",
|
|
49
|
-
success: "Success",
|
|
50
|
-
info: "Information",
|
|
51
|
-
warning: "Warning"
|
|
52
54
|
}
|
|
53
55
|
};
|
|
54
|
-
const
|
|
55
|
-
ui:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
const it = {
|
|
57
|
+
"ui-vintage": {
|
|
58
|
+
common: {
|
|
59
|
+
empty: {
|
|
60
|
+
title: "Non c'è ancora niente qui",
|
|
61
|
+
description: "Al momento non c'è alcun contenuto da mostrare."
|
|
62
|
+
},
|
|
63
|
+
loading: {
|
|
64
|
+
title: "Caricamento...",
|
|
65
|
+
description: "Attendi un momento mentre carichiamo il contenuto."
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
buttons: {
|
|
69
|
+
all: "Tutti",
|
|
70
|
+
close: "Chiudi",
|
|
71
|
+
cancel: "Annulla",
|
|
72
|
+
"delete": "Elimina",
|
|
73
|
+
confirm: "Conferma",
|
|
74
|
+
filter: "Filtra",
|
|
75
|
+
search: "Cerca",
|
|
76
|
+
apply: "Applica",
|
|
77
|
+
clear: "Pulisci",
|
|
78
|
+
loading: "Caricamento",
|
|
79
|
+
loadMore: "Carica altro",
|
|
80
|
+
save: "Salva",
|
|
81
|
+
update: "Aggiorna",
|
|
82
|
+
goBack: "Torna indietro"
|
|
83
|
+
},
|
|
84
|
+
theme: {
|
|
85
|
+
light: "Chiaro",
|
|
86
|
+
dark: "Scuro",
|
|
87
|
+
auto: "Automatico",
|
|
88
|
+
title: "Scegli tema",
|
|
89
|
+
ariaLabel: "Selettore tema"
|
|
90
|
+
},
|
|
91
|
+
language: {
|
|
92
|
+
title: "Scegli lingua",
|
|
93
|
+
ariaLabel: "Selettore lingua"
|
|
62
94
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
95
|
+
footer: {
|
|
96
|
+
madeWith: "Fatto con",
|
|
97
|
+
by: "da",
|
|
98
|
+
allRightsReserved: "Tutti i diritti riservati."
|
|
99
|
+
},
|
|
100
|
+
select: {
|
|
101
|
+
defaultPlaceholder: "Seleziona un'opzione"
|
|
102
|
+
},
|
|
103
|
+
messageDialog: {
|
|
104
|
+
error: "Errore",
|
|
105
|
+
success: "Successo",
|
|
106
|
+
info: "Informazione",
|
|
107
|
+
warning: "Attenzione"
|
|
66
108
|
}
|
|
67
|
-
},
|
|
68
|
-
buttons: {
|
|
69
|
-
all: "Tutti",
|
|
70
|
-
close: "Chiudi",
|
|
71
|
-
cancel: "Annulla",
|
|
72
|
-
"delete": "Elimina",
|
|
73
|
-
confirm: "Conferma",
|
|
74
|
-
filter: "Filtra",
|
|
75
|
-
search: "Cerca",
|
|
76
|
-
apply: "Applica",
|
|
77
|
-
clear: "Pulisci",
|
|
78
|
-
loading: "Caricamento",
|
|
79
|
-
loadMore: "Carica altro",
|
|
80
|
-
save: "Salva",
|
|
81
|
-
update: "Aggiorna",
|
|
82
|
-
goBack: "Torna indietro"
|
|
83
|
-
},
|
|
84
|
-
theme: {
|
|
85
|
-
light: "Chiaro",
|
|
86
|
-
dark: "Scuro",
|
|
87
|
-
auto: "Automatico",
|
|
88
|
-
title: "Scegli tema",
|
|
89
|
-
ariaLabel: "Selettore tema"
|
|
90
|
-
},
|
|
91
|
-
language: {
|
|
92
|
-
title: "Scegli lingua",
|
|
93
|
-
ariaLabel: "Selettore lingua"
|
|
94
|
-
},
|
|
95
|
-
footer: {
|
|
96
|
-
madeWith: "Fatto con",
|
|
97
|
-
by: "da",
|
|
98
|
-
allRightsReserved: "Tutti i diritti riservati."
|
|
99
|
-
},
|
|
100
|
-
select: {
|
|
101
|
-
defaultPlaceholder: "Seleziona un'opzione"
|
|
102
|
-
},
|
|
103
|
-
messageDialog: {
|
|
104
|
-
error: "Errore",
|
|
105
|
-
success: "Successo",
|
|
106
|
-
info: "Informazione",
|
|
107
|
-
warning: "Attenzione"
|
|
108
109
|
}
|
|
109
110
|
};
|
|
110
|
-
const it = {
|
|
111
|
-
ui
|
|
112
|
-
};
|
|
113
111
|
const uiVintageMessages = {
|
|
114
112
|
en,
|
|
115
113
|
it
|
package/dist/landing-footer.js
CHANGED
package/dist/landing.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _, _ as _2 } from "./LandingNavbar.vue_vue_type_script_setup_true_lang-0jX2tmdb.js";
|
|
2
2
|
import { _ as _3 } from "./LandingContent.vue_vue_type_script_setup_true_lang-Wgtl_yeD.js";
|
|
3
3
|
import { _ as _4 } from "./LandingShell.vue_vue_type_script_setup_true_lang-BXwdQR24.js";
|
|
4
|
-
import { _ as _5 } from "./LandingFooter.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as _5 } from "./LandingFooter.vue_vue_type_script_setup_true_lang-Do7mz0nK.js";
|
|
5
5
|
export {
|
|
6
6
|
_3 as LandingContent,
|
|
7
7
|
_5 as LandingFooter,
|
|
@@ -97,7 +97,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
97
97
|
createVNode(unref(_sfc_main$3), {
|
|
98
98
|
variant: "secondary",
|
|
99
99
|
size: "icon",
|
|
100
|
-
"aria-label": unref(t)("ui.language.ariaLabel")
|
|
100
|
+
"aria-label": unref(t)("ui-vintage.language.ariaLabel")
|
|
101
101
|
}, {
|
|
102
102
|
default: withCtx(() => [
|
|
103
103
|
currentFlagComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(currentFlagComponent.value), {
|
|
@@ -124,7 +124,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
124
124
|
createVNode(unref(_sfc_main$6), null, {
|
|
125
125
|
default: withCtx(() => [
|
|
126
126
|
createVNode(unref(_sfc_main$7), {
|
|
127
|
-
heading: unref(t)("ui.language.title")
|
|
127
|
+
heading: unref(t)("ui-vintage.language.title")
|
|
128
128
|
}, {
|
|
129
129
|
default: withCtx(() => [
|
|
130
130
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalizedLanguages.value, (option) => {
|
package/dist/lib/i18n.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const uiVintageMessages: {
|
|
2
2
|
readonly en: {
|
|
3
|
-
ui: {
|
|
3
|
+
"ui-vintage": {
|
|
4
4
|
common: {
|
|
5
5
|
empty: {
|
|
6
6
|
title: string;
|
|
@@ -55,7 +55,7 @@ export declare const uiVintageMessages: {
|
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
57
|
readonly it: {
|
|
58
|
-
ui: {
|
|
58
|
+
"ui-vintage": {
|
|
59
59
|
common: {
|
|
60
60
|
empty: {
|
|
61
61
|
title: string;
|
|
@@ -111,7 +111,7 @@ export declare const uiVintageMessages: {
|
|
|
111
111
|
};
|
|
112
112
|
};
|
|
113
113
|
export declare const getUiVintageMessagesForLocale: (locale: keyof typeof uiVintageMessages) => {
|
|
114
|
-
ui: {
|
|
114
|
+
"ui-vintage": {
|
|
115
115
|
common: {
|
|
116
116
|
empty: {
|
|
117
117
|
title: string;
|
|
@@ -165,7 +165,7 @@ export declare const getUiVintageMessagesForLocale: (locale: keyof typeof uiVint
|
|
|
165
165
|
};
|
|
166
166
|
};
|
|
167
167
|
} | {
|
|
168
|
-
ui: {
|
|
168
|
+
"ui-vintage": {
|
|
169
169
|
common: {
|
|
170
170
|
empty: {
|
|
171
171
|
title: string;
|
package/dist/load-more-button.js
CHANGED
package/dist/message-dialog.js
CHANGED
|
@@ -109,12 +109,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
109
109
|
const resolvedTitle = computed(() => {
|
|
110
110
|
const current = currentDialog.value;
|
|
111
111
|
if (!current) return "";
|
|
112
|
-
return current.options.title || getUiVintageRuntimeMessage(`ui.messageDialog.${current.options.type}`, "");
|
|
112
|
+
return current.options.title || getUiVintageRuntimeMessage(`ui-vintage.messageDialog.${current.options.type}`, "");
|
|
113
113
|
});
|
|
114
114
|
const resolvedCloseText = computed(() => {
|
|
115
115
|
const current = currentDialog.value;
|
|
116
|
-
if (!current) return getUiVintageRuntimeMessage("ui.buttons.close", "Close");
|
|
117
|
-
return current.options.closeText || getUiVintageRuntimeMessage("ui.buttons.close", "Close");
|
|
116
|
+
if (!current) return getUiVintageRuntimeMessage("ui-vintage.buttons.close", "Close");
|
|
117
|
+
return current.options.closeText || getUiVintageRuntimeMessage("ui-vintage.buttons.close", "Close");
|
|
118
118
|
});
|
|
119
119
|
const defaultMessageIcon = computed(() => {
|
|
120
120
|
const current = currentDialog.value;
|
package/dist/message-toast.js
CHANGED
|
@@ -23,7 +23,7 @@ const ensureMessageToastMounted = () => {
|
|
|
23
23
|
return messageToastMountPromise;
|
|
24
24
|
}
|
|
25
25
|
messageToastMountPromise = (async () => {
|
|
26
|
-
const { default: MessageToast } = await import("./MessageToast-
|
|
26
|
+
const { default: MessageToast } = await import("./MessageToast-CDeSPwXN.js");
|
|
27
27
|
if (document.getElementById(MESSAGE_TOAST_ROOT_ID)) {
|
|
28
28
|
return;
|
|
29
29
|
}
|
package/dist/style.css
CHANGED
|
@@ -4996,15 +4996,15 @@ body {
|
|
|
4996
4996
|
}
|
|
4997
4997
|
}
|
|
4998
4998
|
|
|
4999
|
-
.toast-enter-active[data-v-
|
|
5000
|
-
.toast-leave-active[data-v-
|
|
4999
|
+
.toast-enter-active[data-v-602908ae],
|
|
5000
|
+
.toast-leave-active[data-v-602908ae] {
|
|
5001
5001
|
transition: all 0.3s ease-in-out;
|
|
5002
5002
|
}
|
|
5003
|
-
.toast-enter-from[data-v-
|
|
5003
|
+
.toast-enter-from[data-v-602908ae] {
|
|
5004
5004
|
transform: translateY(100%);
|
|
5005
5005
|
opacity: 0;
|
|
5006
5006
|
}
|
|
5007
|
-
.toast-leave-to[data-v-
|
|
5007
|
+
.toast-leave-to[data-v-602908ae] {
|
|
5008
5008
|
transform: translateY(8px);
|
|
5009
5009
|
opacity: 0;
|
|
5010
5010
|
}
|
package/dist/theme-selector.js
CHANGED
|
@@ -24,9 +24,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
const themes = computed(() => [
|
|
27
|
-
{ id: "light", label: t("ui.theme.light") },
|
|
28
|
-
{ id: "dark", label: t("ui.theme.dark") },
|
|
29
|
-
{ id: "auto", label: t("ui.theme.auto") }
|
|
27
|
+
{ id: "light", label: t("ui-vintage.theme.light") },
|
|
28
|
+
{ id: "dark", label: t("ui-vintage.theme.dark") },
|
|
29
|
+
{ id: "auto", label: t("ui-vintage.theme.auto") }
|
|
30
30
|
]);
|
|
31
31
|
const isSystemDarkPreferred = () => {
|
|
32
32
|
return window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
@@ -87,7 +87,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
87
|
createVNode(unref(_sfc_main$3), {
|
|
88
88
|
variant: "secondary",
|
|
89
89
|
size: "icon",
|
|
90
|
-
"aria-label": unref(t)("ui.theme.ariaLabel")
|
|
90
|
+
"aria-label": unref(t)("ui-vintage.theme.ariaLabel")
|
|
91
91
|
}, {
|
|
92
92
|
default: withCtx(() => [
|
|
93
93
|
createVNode(unref(HugeiconsIcon), {
|
|
@@ -112,7 +112,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
112
112
|
createVNode(unref(_sfc_main$6), null, {
|
|
113
113
|
default: withCtx(() => [
|
|
114
114
|
createVNode(unref(_sfc_main$7), {
|
|
115
|
-
heading: unref(t)("ui.theme.title")
|
|
115
|
+
heading: unref(t)("ui-vintage.theme.title")
|
|
116
116
|
}, {
|
|
117
117
|
default: withCtx(() => [
|
|
118
118
|
(openBlock(true), createElementBlock(Fragment, null, renderList(themeOptions.value, (option) => {
|
package/package.json
CHANGED