@brumaombra/ui-vintage 0.6.0 → 0.6.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.
@@ -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-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." : ""));
30
+ const resolvedTitle = computed(() => props.title || (props.titleKey ? t(props.titleKey) : "") || (!hasCustomCopy.value ? t("uiVintage.common.empty.title") : "") || (!hasCustomCopy.value ? "Nothing here yet" : ""));
31
+ const resolvedDescription = computed(() => props.description || (props.descriptionKey ? t(props.descriptionKey) : "") || (!hasCustomCopy.value ? t("uiVintage.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(() => [
@@ -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-vintage.footer.allRightsReserved")), 1),
136
+ createElementVNode("div", null, " © " + toDisplayString(props.year) + " " + toDisplayString(props.appName) + ". " + toDisplayString(unref(t)("uiVintage.footer.allRightsReserved")), 1),
137
137
  props.authorName && props.authorLink ? (openBlock(), createElementBlock("div", _hoisted_10, [
138
- createElementVNode("span", null, toDisplayString(unref(t)("ui-vintage.footer.madeWith")), 1),
138
+ createElementVNode("span", null, toDisplayString(unref(t)("uiVintage.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-vintage.footer.by")), 1),
143
+ createElementVNode("span", null, toDisplayString(unref(t)("uiVintage.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-vintage.buttons.loadMore") || "Load more");
20
- const resolvedLoadingText = computed(() => props.loadingText || t("ui-vintage.buttons.loading") || "Loading");
19
+ const resolvedText = computed(() => props.text || t("uiVintage.buttons.loadMore") || "Load more");
20
+ const resolvedLoadingText = computed(() => props.loadingText || t("uiVintage.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-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.");
26
+ const resolvedTitle = computed(() => props.title || t("uiVintage.common.loading.title") || "Loading...");
27
+ const resolvedDescription = computed(() => props.description || t("uiVintage.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-vintage.buttons.close", "Close"));
15
+ const closeAriaLabel = computed(() => getUiVintageRuntimeMessage("uiVintage.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-602908ae"]]);
76
+ const MessageToast = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f8ab11a2"]]);
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-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";
3
+ import { _ as _sfc_main$2 } from "./EmptyStateCard.vue_vue_type_script_setup_true_lang-D8_ioecl.js";
4
+ import { _ as _sfc_main$3 } from "./LoadMoreButton.vue_vue_type_script_setup_true_lang-DkaLgfxc.js";
5
+ import { _ as _sfc_main$1 } from "./LoadingStateCard.vue_vue_type_script_setup_true_lang-CzLYwrFR.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"
@@ -1,4 +1,4 @@
1
- import { _, _ as _2 } from "./EmptyStateCard.vue_vue_type_script_setup_true_lang-DkCsOraz.js";
1
+ import { _, _ as _2 } from "./EmptyStateCard.vue_vue_type_script_setup_true_lang-D8_ioecl.js";
2
2
  export {
3
3
  _ as EmptyStateCard,
4
4
  _2 as default
@@ -1,5 +1,5 @@
1
1
  declare const _default: {
2
- "ui-vintage": {
2
+ "uiVintage": {
3
3
  "common": {
4
4
  "empty": {
5
5
  "title": "Nothing here yet",
@@ -1,5 +1,5 @@
1
1
  declare const _default: {
2
- "ui-vintage": {
2
+ "uiVintage": {
3
3
  "common": {
4
4
  "empty": {
5
5
  "title": "Non c'è ancora niente qui",
package/dist/i18n.js CHANGED
@@ -1,113 +1,115 @@
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"
1
+ const uiVintage$1 = {
2
+ common: {
3
+ empty: {
4
+ title: "Nothing here yet",
5
+ description: "There is no content to show right now."
39
6
  },
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"
7
+ loading: {
8
+ title: "Loading...",
9
+ description: "Please wait a moment while we load the content."
53
10
  }
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"
54
52
  }
55
53
  };
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"
94
- },
95
- footer: {
96
- madeWith: "Fatto con",
97
- by: "da",
98
- allRightsReserved: "Tutti i diritti riservati."
99
- },
100
- select: {
101
- defaultPlaceholder: "Seleziona un'opzione"
54
+ const en = {
55
+ uiVintage: uiVintage$1
56
+ };
57
+ const uiVintage = {
58
+ common: {
59
+ empty: {
60
+ title: "Non c'è ancora niente qui",
61
+ description: "Al momento non c'è alcun contenuto da mostrare."
102
62
  },
103
- messageDialog: {
104
- error: "Errore",
105
- success: "Successo",
106
- info: "Informazione",
107
- warning: "Attenzione"
63
+ loading: {
64
+ title: "Caricamento...",
65
+ description: "Attendi un momento mentre carichiamo il contenuto."
108
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"
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"
109
108
  }
110
109
  };
110
+ const it = {
111
+ uiVintage
112
+ };
111
113
  const uiVintageMessages = {
112
114
  en,
113
115
  it
@@ -1,4 +1,4 @@
1
- import { _, _ as _2 } from "./LandingFooter.vue_vue_type_script_setup_true_lang-Do7mz0nK.js";
1
+ import { _, _ as _2 } from "./LandingFooter.vue_vue_type_script_setup_true_lang-B8TcoKDG.js";
2
2
  export {
3
3
  _ as LandingFooter,
4
4
  _2 as default
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-Do7mz0nK.js";
4
+ import { _ as _5 } from "./LandingFooter.vue_vue_type_script_setup_true_lang-B8TcoKDG.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-vintage.language.ariaLabel")
100
+ "aria-label": unref(t)("uiVintage.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-vintage.language.title")
127
+ heading: unref(t)("uiVintage.language.title")
128
128
  }, {
129
129
  default: withCtx(() => [
130
130
  (openBlock(true), createElementBlock(Fragment, null, renderList(normalizedLanguages.value, (option) => {
@@ -1,6 +1,6 @@
1
1
  export declare const uiVintageMessages: {
2
2
  readonly en: {
3
- "ui-vintage": {
3
+ uiVintage: {
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-vintage": {
58
+ uiVintage: {
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-vintage": {
114
+ uiVintage: {
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-vintage": {
168
+ uiVintage: {
169
169
  common: {
170
170
  empty: {
171
171
  title: string;
@@ -1,4 +1,4 @@
1
- import { _, _ as _2 } from "./LoadMoreButton.vue_vue_type_script_setup_true_lang-y6FveJPg.js";
1
+ import { _, _ as _2 } from "./LoadMoreButton.vue_vue_type_script_setup_true_lang-DkaLgfxc.js";
2
2
  export {
3
3
  _ as LoadMoreButton,
4
4
  _2 as default
@@ -1,4 +1,4 @@
1
- import { _, _ as _2 } from "./LoadingStateCard.vue_vue_type_script_setup_true_lang-Czptkhu8.js";
1
+ import { _, _ as _2 } from "./LoadingStateCard.vue_vue_type_script_setup_true_lang-CzLYwrFR.js";
2
2
  export {
3
3
  _ as LoadingStateCard,
4
4
  _2 as default
@@ -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-vintage.messageDialog.${current.options.type}`, "");
112
+ return current.options.title || getUiVintageRuntimeMessage(`uiVintage.messageDialog.${current.options.type}`, "");
113
113
  });
114
114
  const resolvedCloseText = computed(() => {
115
115
  const current = currentDialog.value;
116
- if (!current) return getUiVintageRuntimeMessage("ui-vintage.buttons.close", "Close");
117
- return current.options.closeText || getUiVintageRuntimeMessage("ui-vintage.buttons.close", "Close");
116
+ if (!current) return getUiVintageRuntimeMessage("uiVintage.buttons.close", "Close");
117
+ return current.options.closeText || getUiVintageRuntimeMessage("uiVintage.buttons.close", "Close");
118
118
  });
119
119
  const defaultMessageIcon = computed(() => {
120
120
  const current = currentDialog.value;
@@ -23,7 +23,7 @@ const ensureMessageToastMounted = () => {
23
23
  return messageToastMountPromise;
24
24
  }
25
25
  messageToastMountPromise = (async () => {
26
- const { default: MessageToast } = await import("./MessageToast-CDeSPwXN.js");
26
+ const { default: MessageToast } = await import("./MessageToast-Bq8GKXzJ.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-602908ae],
5000
- .toast-leave-active[data-v-602908ae] {
4999
+ .toast-enter-active[data-v-f8ab11a2],
5000
+ .toast-leave-active[data-v-f8ab11a2] {
5001
5001
  transition: all 0.3s ease-in-out;
5002
5002
  }
5003
- .toast-enter-from[data-v-602908ae] {
5003
+ .toast-enter-from[data-v-f8ab11a2] {
5004
5004
  transform: translateY(100%);
5005
5005
  opacity: 0;
5006
5006
  }
5007
- .toast-leave-to[data-v-602908ae] {
5007
+ .toast-leave-to[data-v-f8ab11a2] {
5008
5008
  transform: translateY(8px);
5009
5009
  opacity: 0;
5010
5010
  }
@@ -24,9 +24,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  }
25
25
  };
26
26
  const themes = computed(() => [
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") }
27
+ { id: "light", label: t("uiVintage.theme.light") },
28
+ { id: "dark", label: t("uiVintage.theme.dark") },
29
+ { id: "auto", label: t("uiVintage.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-vintage.theme.ariaLabel")
90
+ "aria-label": unref(t)("uiVintage.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-vintage.theme.title")
115
+ heading: unref(t)("uiVintage.theme.title")
116
116
  }, {
117
117
  default: withCtx(() => [
118
118
  (openBlock(true), createElementBlock(Fragment, null, renderList(themeOptions.value, (option) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brumaombra/ui-vintage",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Vue 3 component library with shadcn-style primitives, app shells, dialogs, and shared theme tokens.",
5
5
  "private": false,
6
6
  "author": "Mauro Brambilla",