vlite3 1.4.9 → 1.4.10

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.
@@ -28,7 +28,7 @@ const I = { class: "flex items-center justify-center gap-1.5" }, R = { class: "f
28
28
  () => c.value.totals.itemCount ?? c.value.items?.reduce((h, t) => h + (t.quantity || 0), 0) ?? 0
29
29
  );
30
30
  return (h, t) => (a(), s("div", {
31
- class: o(["v-cart v-cart-v2 flex flex-col bg-background text-foreground border border-border max-w-md mx-auto overflow-hidden h-full", [e.containerClass, e.compact ? "rounded-sm" : "rounded-md"]])
31
+ class: o(["v-cart v-cart-v2 flex flex-col bg-background text-foreground border border-border overflow-hidden h-full", [e.containerClass, e.compact ? "rounded-sm" : "rounded-md"]])
32
32
  }, [
33
33
  n("div", {
34
34
  class: o(["text-center border-b border-dashed border-border shrink-0", e.compact ? "p-3" : "p-4"])
@@ -1,4 +1,4 @@
1
- import { defineComponent as q, computed as c, openBlock as a, createElementBlock as i, normalizeClass as r, createElementVNode as m, createVNode as v, toDisplayString as b, createCommentVNode as u, unref as z, createBlock as y, Fragment as B, renderList as N, withCtx as k, createTextVNode as C } from "vue";
1
+ import { defineComponent as q, computed as c, openBlock as o, createElementBlock as i, normalizeClass as r, createElementVNode as m, createVNode as v, toDisplayString as b, createCommentVNode as u, unref as z, createBlock as y, Fragment as B, renderList as N, withCtx as k, createTextVNode as C } from "vue";
2
2
  import D from "../Icon.vue.js";
3
3
  import E from "../Price/Price.vue.js";
4
4
  import w from "../Button.vue.js";
@@ -28,11 +28,11 @@ const T = { class: "flex items-center gap-2 min-w-0" }, A = {
28
28
  },
29
29
  emits: ["update:quantity", "remove", "clear", "apply-coupon", "remove-coupon", "coupon-change", "continue", "continue-shopping"],
30
30
  setup(e, { emit: $ }) {
31
- const p = e, l = $, s = c(() => p.data), g = c(() => p.labels || {}), o = c(() => p.actions || {}), f = c(() => p.features || {}), d = c(() => s.value.empty || !s.value.items || s.value.items.length === 0), S = c(
31
+ const p = e, l = $, s = c(() => p.data), g = c(() => p.labels || {}), n = c(() => p.actions || {}), f = c(() => p.features || {}), d = c(() => s.value.empty || !s.value.items || s.value.items.length === 0), S = c(
32
32
  () => s.value.totals.itemCount ?? s.value.items?.reduce((h, t) => h + (t.quantity || 0), 0) ?? 0
33
33
  );
34
- return (h, t) => (a(), i("div", {
35
- class: r(["v-cart v-cart-v4 flex flex-col bg-background text-foreground border border-border rounded-lg overflow-hidden w-full h-full", [e.containerClass, e.compact ? "max-w-xs" : "max-w-sm"]])
34
+ return (h, t) => (o(), i("div", {
35
+ class: r(["v-cart v-cart-v4 flex flex-col bg-background text-foreground border border-border rounded-lg overflow-hidden w-full h-full", [e.containerClass]])
36
36
  }, [
37
37
  m("div", {
38
38
  class: r(["flex items-center justify-between gap-2 border-b border-border shrink-0", e.compact ? "px-3 py-2" : "px-4 py-2.5"])
@@ -45,9 +45,9 @@ const T = { class: "flex items-center gap-2 min-w-0" }, A = {
45
45
  m("p", {
46
46
  class: r(["font-bold text-foreground truncate", (e.compact, "text-sm")])
47
47
  }, b(s.value.title || g.value.cart || "Cart"), 3),
48
- d.value ? u("", !0) : (a(), i("span", A, b(S.value), 1))
48
+ d.value ? u("", !0) : (o(), i("span", A, b(S.value), 1))
49
49
  ]),
50
- !d.value && !e.compact ? (a(), i("p", F, [
50
+ !d.value && !e.compact ? (o(), i("p", F, [
51
51
  m("span", U, [
52
52
  v(z(E), {
53
53
  value: e.data.totals.grandTotal,
@@ -57,20 +57,20 @@ const T = { class: "flex items-center gap-2 min-w-0" }, A = {
57
57
  ])) : u("", !0)
58
58
  ], 2),
59
59
  m("div", G, [
60
- d.value ? (a(), y(R, {
60
+ d.value ? (o(), y(R, {
61
61
  key: 0,
62
62
  labels: e.labels,
63
63
  compact: !0,
64
- onContinueShopping: t[0] || (t[0] = (n) => l("continue-shopping"))
65
- }, null, 8, ["labels"])) : (a(), i("ul", {
64
+ onContinueShopping: t[0] || (t[0] = (a) => l("continue-shopping"))
65
+ }, null, 8, ["labels"])) : (o(), i("ul", {
66
66
  key: 1,
67
67
  class: r(["divide-y divide-border", e.compact ? "px-3" : "px-4"])
68
68
  }, [
69
- (a(!0), i(B, null, N(e.data.items, (n) => (a(), i("li", {
70
- key: n.id
69
+ (o(!0), i(B, null, N(e.data.items, (a) => (o(), i("li", {
70
+ key: a.id
71
71
  }, [
72
72
  v(L, {
73
- item: n,
73
+ item: a,
74
74
  features: e.features,
75
75
  labels: e.labels,
76
76
  compact: e.compact,
@@ -82,7 +82,7 @@ const T = { class: "flex items-center gap-2 min-w-0" }, A = {
82
82
  ]))), 128))
83
83
  ], 2))
84
84
  ]),
85
- d.value ? u("", !0) : (a(), i("div", {
85
+ d.value ? u("", !0) : (o(), i("div", {
86
86
  key: 0,
87
87
  class: r(["border-t border-border bg-muted/30 shrink-0", e.compact ? "p-3 space-y-2" : "p-4 space-y-3"])
88
88
  }, [
@@ -94,44 +94,44 @@ const T = { class: "flex items-center gap-2 min-w-0" }, A = {
94
94
  coupon: e.data.coupon,
95
95
  variant: "Variant4"
96
96
  }, null, 8, ["totals", "features", "labels", "compact", "coupon"]),
97
- e.features.coupon ? (a(), y(I, {
97
+ e.features.coupon ? (o(), y(I, {
98
98
  key: 0,
99
99
  coupon: e.data.coupon,
100
100
  labels: e.labels,
101
101
  compact: e.compact,
102
102
  readonly: e.data.readonly,
103
- onApply: t[3] || (t[3] = (n) => l("apply-coupon", n)),
104
- onRemove: t[4] || (t[4] = (n) => l("remove-coupon")),
105
- onChange: t[5] || (t[5] = (n) => l("coupon-change", n))
103
+ onApply: t[3] || (t[3] = (a) => l("apply-coupon", a)),
104
+ onRemove: t[4] || (t[4] = (a) => l("remove-coupon")),
105
+ onChange: t[5] || (t[5] = (a) => l("coupon-change", a))
106
106
  }, null, 8, ["coupon", "labels", "compact", "readonly"])) : u("", !0),
107
- o.value.showContinue && f.value.continue || o.value.showContinueShopping && f.value.continueShopping ? (a(), i("div", H, [
108
- o.value.showContinue && f.value.continue ? (a(), y(w, {
107
+ n.value.showContinue && f.value.continue || n.value.showContinueShopping && f.value.continueShopping ? (o(), i("div", H, [
108
+ n.value.showContinue && f.value.continue ? (o(), y(w, {
109
109
  key: 0,
110
110
  variant: "primary",
111
111
  size: e.compact ? "sm" : "md",
112
112
  block: !0,
113
- icon: o.value.continueIcon || "lucide:arrow-right",
114
- disabled: o.value.continueDisabled || d.value,
113
+ icon: n.value.continueIcon || "lucide:arrow-right",
114
+ disabled: n.value.continueDisabled || d.value,
115
115
  class: "w-full",
116
- onClick: t[6] || (t[6] = (n) => l("continue"))
116
+ onClick: t[6] || (t[6] = (a) => l("continue"))
117
117
  }, {
118
118
  default: k(() => [
119
- C(b(o.value.continueLabel || g.value.continue || "Checkout"), 1)
119
+ C(b(n.value.continueLabel || g.value.continue || "Checkout"), 1)
120
120
  ]),
121
121
  _: 1
122
122
  }, 8, ["size", "icon", "disabled"])) : u("", !0),
123
- o.value.showContinueShopping && f.value.continueShopping ? (a(), y(w, {
123
+ n.value.showContinueShopping && f.value.continueShopping ? (o(), y(w, {
124
124
  key: 1,
125
125
  variant: "ghost",
126
126
  size: "sm",
127
127
  block: !0,
128
- icon: o.value.continueShoppingIcon || "lucide:arrow-left",
129
- disabled: o.value.continueShoppingDisabled,
128
+ icon: n.value.continueShoppingIcon || "lucide:arrow-left",
129
+ disabled: n.value.continueShoppingDisabled,
130
130
  class: "w-full",
131
- onClick: t[7] || (t[7] = (n) => l("continue-shopping"))
131
+ onClick: t[7] || (t[7] = (a) => l("continue-shopping"))
132
132
  }, {
133
133
  default: k(() => [
134
- C(b(o.value.continueShoppingLabel || g.value.continueShopping || "Continue shopping"), 1)
134
+ C(b(n.value.continueShoppingLabel || g.value.continueShopping || "Continue shopping"), 1)
135
135
  ]),
136
136
  _: 1
137
137
  }, 8, ["icon", "disabled"])) : u("", !0)
@@ -17,13 +17,13 @@ import "v-datepicker-lite";
17
17
  import "v-datepicker-lite/style.css";
18
18
  import "@jaames/iro";
19
19
  import "@vueuse/core";
20
- /* empty css */
20
+ /* empty css */
21
21
  import qe from "../IconPicker.vue.js";
22
22
  /* empty css */
23
23
  /* empty css */
24
24
  /* empty css */
25
- /* empty css */
26
- /* empty css */
25
+ /* empty css */
26
+ /* empty css */
27
27
  import "../../core/config.js";
28
28
  /* empty css */
29
29
  /* empty css */
@@ -1,5 +1,5 @@
1
- import o from "./ColorIro.vue.js";
2
- /* empty css */
1
+ import o from "./ColorIro.vue2.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -7,8 +7,8 @@ import "../../core/config.js";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  import E from "../Button.vue.js";
10
- import _ from "./ColorIro.vue.js";
11
- /* empty css */
10
+ import _ from "./ColorIro.vue2.js";
11
+ /* empty css */
12
12
  import { useEyeDropper as I } from "@vueuse/core";
13
13
  const N = { class: "absolute left-2.5 top-1/2 -translate-y-1/2 flex items-center justify-center z-20 pointer-events-none" }, j = {
14
14
  key: 0,
@@ -4,7 +4,7 @@ import k from "../Icon.vue.js";
4
4
  import { $t as E } from "../../utils/i18n.js";
5
5
  import { useCommandPaletteItems as Y } from "./useCommandPaletteItems.js";
6
6
  import { useCommandPaletteNav as Z } from "./useCommandPaletteNav.js";
7
- import ee from "./CommandPaletteItem.vue2.js";
7
+ import ee from "./CommandPaletteItem.vue.js";
8
8
  const te = { class: "command-palette-content flex flex-col w-full h-full max-h-[70vh]" }, oe = { class: "flex items-center gap-3 px-4 py-3 border-b border-border/80 shrink-0" }, se = ["placeholder"], ne = ["aria-label"], re = {
9
9
  key: 0,
10
10
  class: "flex flex-col items-center justify-center py-14 px-6 text-center select-none",
@@ -1,5 +1,5 @@
1
1
  import t from "./CommandPaletteItem.vue3.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-66b1ae06"]]);
5
5
  export {
@@ -3,7 +3,7 @@ import L from "./Icon.vue.js";
3
3
  import v from "./Modal.vue.js";
4
4
  import N from "./CommandPalette/CommandPaletteContent.vue.js";
5
5
  import { $t as U } from "../utils/i18n.js";
6
- /* empty css */
6
+ /* empty css */
7
7
  const V = { class: "block truncate -text-fs-1.5" }, S = { class: "ml-auto inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded text-[10px] font-mono font-medium border border-border/80 bg-background text-muted-foreground ml-1" }, A = /* @__PURE__ */ x({
8
8
  __name: "NavbarCommandPalette",
9
9
  props: {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as te, ref as v, shallowRef as ne, watch as oe, computed as h, onMounted as le, onUnmounted as ae, openBlock as C, createElementBlock as L, normalizeClass as re, toDisplayString as I, createCommentVNode as U, createElementVNode as w, createVNode as q, unref as a, normalizeStyle as ie } from "vue";
2
2
  /* empty css */
3
- import se from "./RichTextToolbar.vue.js";
4
- /* empty css */
5
- import de from "./RichTextLinkPopover.vue.js";
6
- /* empty css */
3
+ import se from "./RichTextToolbar.vue2.js";
4
+ /* empty css */
5
+ import de from "./RichTextLinkPopover.vue2.js";
6
+ /* empty css */
7
7
  import { useRichTextImageUpload as ue } from "./composables/useRichTextImageUpload.js";
8
8
  import { useRichTextLinks as ce } from "./composables/useRichTextLinks.js";
9
9
  const fe = ["aria-labelledby", "aria-describedby"], me = ["id", "for"], ve = { class: "rte-wrapper" }, ye = { class: "rte-body-wrap" }, ge = ["id", "contenteditable", "aria-label", "aria-readonly", "aria-disabled", "aria-invalid"], be = ["id"], Se = /* @__PURE__ */ te({
@@ -1,5 +1,5 @@
1
- import o from "./RichTextLinkPopover.vue.js";
2
- /* empty css */
1
+ import o from "./RichTextLinkPopover.vue2.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -1,5 +1,5 @@
1
- import o from "./RichTextToolbar.vue.js";
2
- /* empty css */
1
+ import o from "./RichTextToolbar.vue2.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -15,14 +15,14 @@ import "v-datepicker-lite";
15
15
  import "v-datepicker-lite/style.css";
16
16
  import "@jaames/iro";
17
17
  import "@vueuse/core";
18
- /* empty css */
18
+ /* empty css */
19
19
  import "iconify-icon-picker";
20
20
  import "iconify-icon-picker/style.css";
21
21
  /* empty css */
22
22
  /* empty css */
23
23
  /* empty css */
24
- /* empty css */
25
- /* empty css */
24
+ /* empty css */
25
+ /* empty css */
26
26
  import "../../core/config.js";
27
27
  /* empty css */
28
28
  /* empty css */
@@ -12,5 +12,12 @@ export declare function buildCardOverrideStyles(bg: string, isDark: boolean): st
12
12
  /**
13
13
  * Compute the full theme-styles record from a {@link ThemeProviderProps}.
14
14
  * Pure: no DOM, no Vue. Re-usable from tests and from server-side code.
15
+ *
16
+ * Every value is suffixed with `!important` so the provider's tokens
17
+ * reliably win the cascade against host-app stylesheets that may declare
18
+ * the same custom properties (e.g. an app-level `.dark { --color-primary:
19
+ * #xxx }` rule). The provider is the source of truth for the tokens it
20
+ * generates; `!important` in the value is the correct way to express
21
+ * that without forcing every consumer to re-style the entire app.
15
22
  */
16
23
  export declare function buildThemeVariables(props: ThemeProviderProps): ThemeStyles;
@@ -1,11 +1,11 @@
1
1
  import { hexToHSL as s, mixColorHex as a } from "../../utils/colorUtils.js";
2
- const x = 16, k = 1.25, y = 8, $ = 1440, g = (r, o) => {
2
+ const x = 16, k = 1.25, y = 8, $ = 1440, F = (r) => `${r} !important`, g = (r, o) => {
3
3
  const l = Number(r);
4
4
  return Number.isFinite(l) && l > 0 ? l : o;
5
- }, F = (r, o) => {
5
+ }, w = (r, o) => {
6
6
  const l = Number(r);
7
7
  return Number.isFinite(l) && l >= 0 ? l : o;
8
- }, i = (r) => Number.parseFloat(r.toFixed(8)).toString(), w = [
8
+ }, i = (r) => Number.parseFloat(r.toFixed(8)).toString(), E = [
9
9
  "0.5",
10
10
  "1",
11
11
  "1.5",
@@ -46,7 +46,7 @@ const x = 16, k = 1.25, y = 8, $ = 1440, g = (r, o) => {
46
46
  "19",
47
47
  "19.5",
48
48
  "20"
49
- ], E = {
49
+ ], B = {
50
50
  1: 0.95,
51
51
  "1.5": 0.91,
52
52
  2: 0.85,
@@ -58,7 +58,7 @@ const x = 16, k = 1.25, y = 8, $ = 1440, g = (r, o) => {
58
58
  6: 0.55,
59
59
  7: 0.5,
60
60
  8: 0.45
61
- }, B = {
61
+ }, T = {
62
62
  "0.5": 1,
63
63
  1: 1.03030303,
64
64
  "1.5": 1.06060606,
@@ -99,7 +99,7 @@ const x = 16, k = 1.25, y = 8, $ = 1440, g = (r, o) => {
99
99
  19: 2.95,
100
100
  "19.5": 3,
101
101
  20: 3.05
102
- }, T = [
102
+ }, C = [
103
103
  ["xs", 0.75, 1],
104
104
  ["sm", 0.875, 1.25],
105
105
  ["base", 1, 1.5],
@@ -110,7 +110,7 @@ const x = 16, k = 1.25, y = 8, $ = 1440, g = (r, o) => {
110
110
  ["4xl", 2.25, 2.5],
111
111
  ["5xl", 3, 3],
112
112
  ["6xl", 3.75, 3.75]
113
- ], C = {
113
+ ], L = {
114
114
  "--font-weight-extralight": "200",
115
115
  "--font-weight-light": "300",
116
116
  "--font-weight-normal": "400",
@@ -119,23 +119,23 @@ const x = 16, k = 1.25, y = 8, $ = 1440, g = (r, o) => {
119
119
  "--font-weight-bold": "700",
120
120
  "--font-weight-extrabold": "800",
121
121
  "--font-weight-black": "900"
122
- }, L = (r, o, l) => {
122
+ }, _ = (r, o, l) => {
123
123
  const t = o / x;
124
- r["font-size"] = `${o}px`, r["--font-size-base"] = `${o}px`, T.forEach(([c, e, f]) => {
124
+ r["font-size"] = `${o}px`, r["--font-size-base"] = `${o}px`, C.forEach(([c, e, n]) => {
125
125
  const u = e * t;
126
- r[`--text-${c}`] = `${i(u)}rem`, r[`--text-${c}--line-height`] = f === e ? "1" : `calc(${i(f * t)} / ${i(u)})`;
127
- }), Object.entries(E).forEach(([c, e]) => {
126
+ r[`--text-${c}`] = `${i(u)}rem`, r[`--text-${c}--line-height`] = n === e ? "1" : `calc(${i(n * t)} / ${i(u)})`;
127
+ }), Object.entries(B).forEach(([c, e]) => {
128
128
  r[`--text--fs-${c}`] = `${i(e)}em`;
129
129
  });
130
- const n = l / k;
131
- w.forEach((c) => {
132
- const f = 1 + (B[c] - 1) * n;
133
- r[`--text-fs-${c}`] = `${i(f)}em`;
130
+ const f = l / k;
131
+ E.forEach((c) => {
132
+ const n = 1 + (T[c] - 1) * f;
133
+ r[`--text-fs-${c}`] = `${i(n)}em`;
134
134
  });
135
- }, _ = (r, o) => {
135
+ }, S = (r, o) => {
136
136
  const l = o / x;
137
137
  r["--radius"] = `${i(l)}rem`, r["--radius-sm"] = `${i(l * 0.8)}rem`, r["--radius-md"] = `${i(l)}rem`, r["--radius-lg"] = `${i(l * 1.34)}rem`, r["--radius-xl"] = `${i(l * 1.6)}rem`, r["--radius-2xl"] = `${i(l * 2)}rem`, r["--radius-3xl"] = `${i(l * 3)}rem`;
138
- }, S = (r, o) => {
138
+ }, A = (r, o) => {
139
139
  if (typeof o == "string") {
140
140
  const t = o.trim().toLowerCase();
141
141
  r["--shop-max-width"] = t === "full" || t === "none" ? "none" : o;
@@ -147,7 +147,7 @@ const x = 16, k = 1.25, y = 8, $ = 1440, g = (r, o) => {
147
147
  }
148
148
  const l = g(o ?? void 0, $);
149
149
  r["--shop-max-width"] = `${l}px`;
150
- }, A = {
150
+ }, N = {
151
151
  danger: {
152
152
  light: "#ffeeee",
153
153
  default: "#ff3b30",
@@ -200,7 +200,7 @@ const x = 16, k = 1.25, y = 8, $ = 1440, g = (r, o) => {
200
200
  pink: { subtle: "#fdebf3", subtleFg: "#be185d", subtleBorder: "#f8c6db" },
201
201
  cyan: { subtle: "#E1F8F8", subtleFg: "#0e7490", subtleBorder: "#c2ecf5" },
202
202
  chart: ["#6366f1", "#22c55e", "#f59e0b", "#ef4444", "#3b82f6", "#ec4899"]
203
- }, N = {
203
+ }, D = {
204
204
  danger: {
205
205
  light: "#391413",
206
206
  default: "#7F1D1D",
@@ -253,8 +253,8 @@ const x = 16, k = 1.25, y = 8, $ = 1440, g = (r, o) => {
253
253
  pink: { subtle: "#2a0f1c", subtleFg: "#f472b6", subtleBorder: "#9d174d" },
254
254
  cyan: { subtle: "#0e242a", subtleFg: "#22d3ee", subtleBorder: "#0e7490" },
255
255
  chart: ["#818cf8", "#34d399", "#fbbf24", "#fb7185", "#60a5fa", "#f472b6"]
256
- }, D = (r, o) => {
257
- const l = o ? N : A;
256
+ }, I = (r, o) => {
257
+ const l = o ? D : N;
258
258
  ["danger", "warning", "info", "success"].forEach((c) => {
259
259
  const e = l[c];
260
260
  r[`--color-${c}-light`] = e.light, r[`--color-${c}`] = e.default, r[`--color-${c}-dark`] = e.dark, r[`--color-${c}-fg`] = e.fg, r[`--color-${c}-fg-light`] = e.fgLight, r[`--color-${c}-subtle`] = e.subtle, r[`--color-${c}-subtle-fg`] = e.subtleFg, r[`--color-${c}-subtle-border`] = e.subtleBorder, c === "danger" && (r["--color-destructive"] = e.default, r["--color-destructive-foreground"] = e.fg);
@@ -273,10 +273,10 @@ const x = 16, k = 1.25, y = 8, $ = 1440, g = (r, o) => {
273
273
  r[`--color-chart-${e + 1}`] = c;
274
274
  });
275
275
  };
276
- function O(r, o) {
276
+ function R(r, o) {
277
277
  if (!r) return "";
278
278
  if (o) {
279
- const c = a(r, "#ffffff", 0.07), e = a(r, "#ffffff", 0.12), f = a(r, "#ffffff", 0.1), u = a(r, "#ffffff", 0.14), d = a(r, "#ffffff", 0.13), v = a(r, "#ffffff", 0.16), b = a(r, "#ffffff", 0.07), h = a(r, "#ffffff", 0.11), m = a(r, "#ffffff", 0.1), p = a(r, "#ffffff", 0.14);
279
+ const c = a(r, "#ffffff", 0.07), e = a(r, "#ffffff", 0.12), n = a(r, "#ffffff", 0.1), u = a(r, "#ffffff", 0.14), d = a(r, "#ffffff", 0.13), h = a(r, "#ffffff", 0.16), b = a(r, "#ffffff", 0.07), v = a(r, "#ffffff", 0.11), m = a(r, "#ffffff", 0.1), p = a(r, "#ffffff", 0.14);
280
280
  return `
281
281
  .vlite-theme-provider.dark .bg-card {
282
282
  --color-body: ${c} !important;
@@ -286,23 +286,23 @@ function O(r, o) {
286
286
  background-color: ${c} !important;
287
287
  }
288
288
  .vlite-theme-provider.dark .bg-card .bg-card {
289
- --color-body: ${f} !important;
290
- --color-white: ${f} !important;
289
+ --color-body: ${n} !important;
290
+ --color-white: ${n} !important;
291
291
  --color-mixture-1: ${u} !important;
292
292
  --color-mixture-2: #000000;
293
- background-color: ${f} !important;
293
+ background-color: ${n} !important;
294
294
  }
295
295
  .vlite-theme-provider.dark .bg-card .bg-card .bg-card {
296
296
  --color-body: ${d} !important;
297
297
  --color-white: ${d} !important;
298
- --color-mixture-1: ${v} !important;
298
+ --color-mixture-1: ${h} !important;
299
299
  --color-mixture-2: #000000;
300
300
  background-color: ${d} !important;
301
301
  }
302
302
  .vlite-theme-provider.dark .bg-card-light {
303
303
  --color-body: ${b} !important;
304
304
  --color-white: ${b} !important;
305
- --color-mixture-1: ${h} !important;
305
+ --color-mixture-1: ${v} !important;
306
306
  --color-mixture-2: #ffffff !important;
307
307
  background-color: ${b} !important;
308
308
  }
@@ -315,7 +315,7 @@ function O(r, o) {
315
315
  }
316
316
  `;
317
317
  }
318
- const l = a(r, "#000000", 0.03), t = a(r, "#000000", 0.055), n = a(r, "#000000", 0.09);
318
+ const l = a(r, "#000000", 0.03), t = a(r, "#000000", 0.055), f = a(r, "#000000", 0.09);
319
319
  return `
320
320
  .vlite-theme-provider .bg-card,
321
321
  .vlite-theme-provider .bg-card-light {
@@ -336,37 +336,41 @@ function O(r, o) {
336
336
  }
337
337
  .vlite-theme-provider .bg-card .bg-card .bg-card,
338
338
  .vlite-theme-provider .bg-card-light .bg-card-light .bg-card-light {
339
- --color-body: ${n} !important;
340
- --color-white: ${n} !important;
341
- --color-mixture-1: ${n};
339
+ --color-body: ${f} !important;
340
+ --color-white: ${f} !important;
341
+ --color-mixture-1: ${f};
342
342
  --color-mixture-2: #000000;
343
- background-color: ${n} !important;
343
+ background-color: ${f} !important;
344
344
  }
345
345
  `;
346
346
  }
347
- function R(r) {
347
+ function U(r) {
348
348
  const o = {};
349
349
  if (o["--color-white"] = r.bgColor ?? "#ffffff", o["--color-black"] = "#000000", r.bgColor) {
350
350
  o["--color-background"] = r.bgColor, o["--color-body"] = r.bgColor;
351
- const l = s(r.bgColor).l < 50;
352
- l ? (o["--color-mixture-1"] = "#0c0c0c", o["--color-mixture-2"] = "#ffffff", o["--color-white"] = r.bgColor, o["--color-black"] = "#ffffff", o["--color-gray-50"] = "color-mix(in oklab, var(--color-mixture-1) 96.5%, var(--color-mixture-2))", o["--color-gray-100"] = "color-mix(in oklab, var(--color-mixture-1) 94.5%, var(--color-mixture-2))", o["--color-gray-150"] = "color-mix(in oklab, var(--color-mixture-1) 90.5%, var(--color-mixture-2))", o["--color-gray-200"] = "color-mix(in oklab, var(--color-mixture-1) 86.5%, var(--color-mixture-2))", o["--color-gray-250"] = "color-mix(in oklab, var(--color-mixture-1) 82.5%, var(--color-mixture-2))", o["--color-gray-300"] = "color-mix(in oklab, var(--color-mixture-1) 79.5%, var(--color-mixture-2))", o["--color-gray-350"] = "color-mix(in oklab, var(--color-mixture-1) 70%, var(--color-mixture-2))", o["--color-gray-400"] = "color-mix(in oklab, var(--color-mixture-1) 62%, var(--color-mixture-2))", o["--color-gray-500"] = "color-mix(in oklab, var(--color-mixture-1) 49%, var(--color-mixture-2))", o["--color-gray-600"] = "color-mix(in oklab, var(--color-mixture-1) 39%, var(--color-mixture-2))", o["--color-gray-700"] = "color-mix(in oklab, var(--color-mixture-1) 27%, var(--color-mixture-2))", o["--color-gray-800"] = "color-mix(in oklab, var(--color-mixture-1) 17%, var(--color-mixture-2))", o["--color-gray-850"] = "color-mix(in oklab, var(--color-mixture-1) 10%, var(--color-mixture-2))", o["--color-gray-900"] = "color-mix(in oklab, var(--color-mixture-1) 6%, var(--color-mixture-2))", o["--color-gray-950"] = "var(--color-mixture-2)", o["--color-foreground"] = "var(--color-gray-850)", o["--color-border"] = "color-mix(in oklab, var(--color-background) 74%, #ffffff)", o["--color-input"] = "color-mix(in oklab, var(--color-background) 70%, #ffffff)", o["--color-card"] = "color-mix(in oklab, var(--color-background) 94%, #ffffff)", o["--color-card-light"] = "color-mix(in oklab, var(--color-background) 96%, #ffffff)", o["--color-secondary"] = "color-mix(in oklab, var(--color-background) 87.5%, #ffffff)", o["--color-secondary-foreground"] = "var(--color-foreground)", o["--color-muted"] = "color-mix(in oklab, var(--color-background) 92.5%, #ffffff)", o["--color-muted-light"] = "color-mix(in oklab, var(--color-background) 95%, #ffffff)", o["--color-muted-foreground"] = "var(--color-gray-600)", o["--color-accent"] = "color-mix(in oklab, var(--color-background) 90%, #ffffff)", o["--color-accent-foreground"] = "var(--color-foreground)", o["--color-scrollbar"] = "color-mix(in oklab, var(--color-background) 80%, #ffffff)", o["--color-scrollbar-hover"] = "color-mix(in oklab, var(--color-background) 75%, #ffffff)", o["--shadow-sm"] = "none", o["--shadow-DEFAULT"] = "none", o["--shadow-md"] = "none", o["--shadow-lg"] = "none", o["--shadow-xl"] = "none") : (o["--color-mixture-1"] = "#ffffff", o["--color-mixture-2"] = "#000000", o["--color-gray-50"] = "color-mix(in oklab, var(--color-mixture-1) 98%, var(--color-mixture-2))", o["--color-gray-100"] = "color-mix(in oklab, var(--color-mixture-1) 97%, var(--color-mixture-2))", o["--color-gray-150"] = "color-mix(in oklab, var(--color-mixture-1) 96%, var(--color-mixture-2))", o["--color-gray-200"] = "color-mix(in oklab, var(--color-mixture-1) 94%, var(--color-mixture-2))", o["--color-gray-250"] = "color-mix(in oklab, var(--color-mixture-1) 92%, var(--color-mixture-2))", o["--color-gray-300"] = "color-mix(in oklab, var(--color-mixture-1) 86%, var(--color-mixture-2))", o["--color-gray-350"] = "color-mix(in oklab, var(--color-mixture-1) 80%, var(--color-mixture-2))", o["--color-gray-400"] = "color-mix(in oklab, var(--color-mixture-1) 62%, var(--color-mixture-2))", o["--color-gray-500"] = "color-mix(in oklab, var(--color-mixture-1) 49%, var(--color-mixture-2))", o["--color-gray-600"] = "color-mix(in oklab, var(--color-mixture-1) 39%, var(--color-mixture-2))", o["--color-gray-700"] = "color-mix(in oklab, var(--color-mixture-1) 27%, var(--color-mixture-2))", o["--color-gray-800"] = "color-mix(in oklab, var(--color-mixture-1) 17%, var(--color-mixture-2))", o["--color-gray-850"] = "color-mix(in oklab, var(--color-mixture-1) 10%, var(--color-mixture-2))", o["--color-gray-900"] = "color-mix(in oklab, var(--color-mixture-1) 6%, var(--color-mixture-2))", o["--color-gray-950"] = "var(--color-mixture-2)", o["--color-foreground"] = "var(--color-gray-850)", o["--color-border"] = "color-mix(in oklab, var(--color-background) 88%, #000000)", o["--color-input"] = "color-mix(in oklab, var(--color-background) 87%, #000000)", o["--color-card"] = "color-mix(in oklab, var(--color-background) 96%, #000000)", o["--color-card-light"] = "color-mix(in oklab, var(--color-background) 98%, #000000)", o["--color-secondary"] = "color-mix(in oklab, var(--color-background) 94.8%, #000000)", o["--color-secondary-foreground"] = "var(--color-foreground)", o["--color-muted"] = "color-mix(in oklab, var(--color-background) 94%, #000000)", o["--color-muted-light"] = "color-mix(in oklab, var(--color-background) 97%, #000000)", o["--color-muted-foreground"] = "color-mix(in oklab, var(--color-background) 10%, #000000)", o["--color-accent"] = "color-mix(in oklab, var(--color-background) 95%, #000000)", o["--color-accent-foreground"] = "var(--color-foreground)", o["--color-scrollbar"] = "color-mix(in oklab, var(--color-background) 80%, #000000)", o["--color-scrollbar-hover"] = "color-mix(in oklab, var(--color-background) 75%, #000000)", o["--shadow-sm"] = "rgba(95, 97, 100, 0.07) 0px 15px 90px 0px, rgba(0, 0, 0, 0.02) 0.2px 0.2px 1px 0px", o["--shadow-DEFAULT"] = "rgba(55, 59, 74, 0.074) 0px 10px 55px 3px", o["--shadow-md"] = "var(--shadow-DEFAULT)", o["--shadow-lg"] = "rgba(100, 100, 111, 0.15) 0px 7px 40px -1px", o["--shadow-xl"] = "rgba(0, 0, 0, 0.2) 0px 15px 50px -12px"), D(o, l);
351
+ const t = s(r.bgColor).l < 50;
352
+ t ? (o["--color-mixture-1"] = "#0c0c0c", o["--color-mixture-2"] = "#ffffff", o["--color-white"] = r.bgColor, o["--color-black"] = "#ffffff", o["--color-gray-50"] = "color-mix(in oklab, var(--color-mixture-1) 96.5%, var(--color-mixture-2))", o["--color-gray-100"] = "color-mix(in oklab, var(--color-mixture-1) 94.5%, var(--color-mixture-2))", o["--color-gray-150"] = "color-mix(in oklab, var(--color-mixture-1) 90.5%, var(--color-mixture-2))", o["--color-gray-200"] = "color-mix(in oklab, var(--color-mixture-1) 86.5%, var(--color-mixture-2))", o["--color-gray-250"] = "color-mix(in oklab, var(--color-mixture-1) 82.5%, var(--color-mixture-2))", o["--color-gray-300"] = "color-mix(in oklab, var(--color-mixture-1) 79.5%, var(--color-mixture-2))", o["--color-gray-350"] = "color-mix(in oklab, var(--color-mixture-1) 70%, var(--color-mixture-2))", o["--color-gray-400"] = "color-mix(in oklab, var(--color-mixture-1) 62%, var(--color-mixture-2))", o["--color-gray-500"] = "color-mix(in oklab, var(--color-mixture-1) 49%, var(--color-mixture-2))", o["--color-gray-600"] = "color-mix(in oklab, var(--color-mixture-1) 39%, var(--color-mixture-2))", o["--color-gray-700"] = "color-mix(in oklab, var(--color-mixture-1) 27%, var(--color-mixture-2))", o["--color-gray-800"] = "color-mix(in oklab, var(--color-mixture-1) 17%, var(--color-mixture-2))", o["--color-gray-850"] = "color-mix(in oklab, var(--color-mixture-1) 10%, var(--color-mixture-2))", o["--color-gray-900"] = "color-mix(in oklab, var(--color-mixture-1) 6%, var(--color-mixture-2))", o["--color-gray-950"] = "var(--color-mixture-2)", o["--color-foreground"] = "var(--color-gray-850)", o["--color-border"] = "color-mix(in oklab, var(--color-background) 74%, #ffffff)", o["--color-input"] = "color-mix(in oklab, var(--color-background) 70%, #ffffff)", o["--color-card"] = "color-mix(in oklab, var(--color-background) 94%, #ffffff)", o["--color-card-light"] = "color-mix(in oklab, var(--color-background) 96%, #ffffff)", o["--color-secondary"] = "color-mix(in oklab, var(--color-background) 87.5%, #ffffff)", o["--color-secondary-foreground"] = "var(--color-foreground)", o["--color-muted"] = "color-mix(in oklab, var(--color-background) 92.5%, #ffffff)", o["--color-muted-light"] = "color-mix(in oklab, var(--color-background) 95%, #ffffff)", o["--color-muted-foreground"] = "var(--color-gray-600)", o["--color-accent"] = "color-mix(in oklab, var(--color-background) 90%, #ffffff)", o["--color-accent-foreground"] = "var(--color-foreground)", o["--color-scrollbar"] = "color-mix(in oklab, var(--color-background) 80%, #ffffff)", o["--color-scrollbar-hover"] = "color-mix(in oklab, var(--color-background) 75%, #ffffff)", o["--shadow-sm"] = "none", o["--shadow-DEFAULT"] = "none", o["--shadow-md"] = "none", o["--shadow-lg"] = "none", o["--shadow-xl"] = "none") : (o["--color-mixture-1"] = "#ffffff", o["--color-mixture-2"] = "#000000", o["--color-gray-50"] = "color-mix(in oklab, var(--color-mixture-1) 98%, var(--color-mixture-2))", o["--color-gray-100"] = "color-mix(in oklab, var(--color-mixture-1) 97%, var(--color-mixture-2))", o["--color-gray-150"] = "color-mix(in oklab, var(--color-mixture-1) 96%, var(--color-mixture-2))", o["--color-gray-200"] = "color-mix(in oklab, var(--color-mixture-1) 94%, var(--color-mixture-2))", o["--color-gray-250"] = "color-mix(in oklab, var(--color-mixture-1) 92%, var(--color-mixture-2))", o["--color-gray-300"] = "color-mix(in oklab, var(--color-mixture-1) 86%, var(--color-mixture-2))", o["--color-gray-350"] = "color-mix(in oklab, var(--color-mixture-1) 80%, var(--color-mixture-2))", o["--color-gray-400"] = "color-mix(in oklab, var(--color-mixture-1) 62%, var(--color-mixture-2))", o["--color-gray-500"] = "color-mix(in oklab, var(--color-mixture-1) 49%, var(--color-mixture-2))", o["--color-gray-600"] = "color-mix(in oklab, var(--color-mixture-1) 39%, var(--color-mixture-2))", o["--color-gray-700"] = "color-mix(in oklab, var(--color-mixture-1) 27%, var(--color-mixture-2))", o["--color-gray-800"] = "color-mix(in oklab, var(--color-mixture-1) 17%, var(--color-mixture-2))", o["--color-gray-850"] = "color-mix(in oklab, var(--color-mixture-1) 10%, var(--color-mixture-2))", o["--color-gray-900"] = "color-mix(in oklab, var(--color-mixture-1) 6%, var(--color-mixture-2))", o["--color-gray-950"] = "var(--color-mixture-2)", o["--color-foreground"] = "var(--color-gray-850)", o["--color-border"] = "color-mix(in oklab, var(--color-background) 88%, #000000)", o["--color-input"] = "color-mix(in oklab, var(--color-background) 87%, #000000)", o["--color-card"] = "color-mix(in oklab, var(--color-background) 96%, #000000)", o["--color-card-light"] = "color-mix(in oklab, var(--color-background) 98%, #000000)", o["--color-secondary"] = "color-mix(in oklab, var(--color-background) 94.8%, #000000)", o["--color-secondary-foreground"] = "var(--color-foreground)", o["--color-muted"] = "color-mix(in oklab, var(--color-background) 94%, #000000)", o["--color-muted-light"] = "color-mix(in oklab, var(--color-background) 97%, #000000)", o["--color-muted-foreground"] = "color-mix(in oklab, var(--color-background) 10%, #000000)", o["--color-accent"] = "color-mix(in oklab, var(--color-background) 95%, #000000)", o["--color-accent-foreground"] = "var(--color-foreground)", o["--color-scrollbar"] = "color-mix(in oklab, var(--color-background) 80%, #000000)", o["--color-scrollbar-hover"] = "color-mix(in oklab, var(--color-background) 75%, #000000)", o["--shadow-sm"] = "rgba(95, 97, 100, 0.07) 0px 15px 90px 0px, rgba(0, 0, 0, 0.02) 0.2px 0.2px 1px 0px", o["--shadow-DEFAULT"] = "rgba(55, 59, 74, 0.074) 0px 10px 55px 3px", o["--shadow-md"] = "var(--shadow-DEFAULT)", o["--shadow-lg"] = "rgba(100, 100, 111, 0.15) 0px 7px 40px -1px", o["--shadow-xl"] = "rgba(0, 0, 0, 0.2) 0px 15px 50px -12px"), I(o, t);
353
353
  }
354
354
  if (r.primaryColor) {
355
355
  o["--color-primary"] = r.primaryColor;
356
- const { l } = s(r.primaryColor), t = l > 50 ? "#171717" : "#fafafa";
357
- o["--color-primary-foreground"] = t, o["--color-primary-fg"] = t, o["--color-primary-dark"] = `color-mix(in oklab, ${r.primaryColor} 80%, #000000)`, o["--color-primary-light"] = `color-mix(in oklab, ${t} 92%, ${r.primaryColor})`, o["--color-primary-fg-light"] = o["--color-primary-dark"];
356
+ const { l: t } = s(r.primaryColor), f = t > 50 ? "#171717" : "#fafafa";
357
+ o["--color-primary-foreground"] = f, o["--color-primary-fg"] = f, o["--color-primary-dark"] = `color-mix(in oklab, ${r.primaryColor} 80%, #000000)`, o["--color-primary-light"] = `color-mix(in oklab, ${f} 92%, ${r.primaryColor})`, o["--color-primary-fg-light"] = o["--color-primary-dark"];
358
358
  }
359
- return r.footerBgColor && (o["--color-footer"] = r.footerBgColor), o["--spacing"] = "0.25rem", Object.assign(o, C), L(
359
+ r.footerBgColor && (o["--color-footer"] = r.footerBgColor), o["--spacing"] = "0.25rem", Object.assign(o, L), _(
360
360
  o,
361
361
  g(r.baseFontSize, x),
362
362
  g(r.headingScale, k)
363
- ), _(o, F(r.borderRadius, y)), S(o, r.maxWidth), o["--tooltip-bg"] = "var(--color-background)", o["--tooltip-text"] = "var(--color-foreground)", o["--tooltip-border"] = "color-mix(in oklab, var(--color-mixture-1) 90%, var(--color-mixture-2))", o["--tooltip-radius"] = "var(--radius)", o["--tooltip-shadow"] = "var(--shadow-DEFAULT)", o["--tooltip-arrow-size"] = "0.5em", o["--tooltip-z-index"] = "50", o["--date-picker-border"] = "var(--color-border)", o["--date-picker-radius"] = "var(--radius)", o["--timer-picker-bg"] = "var(--color-background)", o["--iconPicker-border"] = "var(--color-border)", o;
363
+ ), S(o, w(r.borderRadius, y)), A(o, r.maxWidth), o["--tooltip-bg"] = "var(--color-background)", o["--tooltip-text"] = "var(--color-foreground)", o["--tooltip-border"] = "color-mix(in oklab, var(--color-mixture-1) 90%, var(--color-mixture-2))", o["--tooltip-radius"] = "var(--radius)", o["--tooltip-shadow"] = "var(--shadow-DEFAULT)", o["--tooltip-arrow-size"] = "0.5em", o["--tooltip-z-index"] = "50", o["--date-picker-border"] = "var(--color-border)", o["--date-picker-radius"] = "var(--radius)", o["--timer-picker-bg"] = "var(--color-background)", o["--iconPicker-border"] = "var(--color-border)";
364
+ const l = {};
365
+ for (const t of Object.keys(o))
366
+ l[t] = F(o[t]);
367
+ return l;
364
368
  }
365
369
  export {
366
370
  x as DEFAULT_BASE_FONT_SIZE,
367
371
  y as DEFAULT_BORDER_RADIUS,
368
372
  k as DEFAULT_HEADING_SCALE,
369
373
  $ as DEFAULT_MAX_WIDTH,
370
- O as buildCardOverrideStyles,
371
- R as buildThemeVariables
374
+ R as buildCardOverrideStyles,
375
+ U as buildThemeVariables
372
376
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "private": false,
4
4
  "description": "A Vue 3 UI component library built with Tailwind CSS.",
5
5
  "license": "MIT",
6
- "version": "1.4.9",
6
+ "version": "1.4.10",
7
7
  "type": "module",
8
8
  "main": "index.js",
9
9
  "module": "index.js",