vunor 0.0.27 → 0.0.30

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/theme.d.ts CHANGED
@@ -34,19 +34,19 @@ declare const themeFactory: (opts: Required<TVunorUnoPresetOpts> & {
34
34
  }>;
35
35
  theme: {
36
36
  colors: {
37
- [x: string]: string;
37
+ [x: string]: string | undefined;
38
38
  };
39
39
  surfaces: Record<string, TVunorSurfaceConfig>;
40
- reverseLightLayers: boolean;
41
- reverseDarkLayers: boolean;
40
+ reverseLightLayers: boolean | undefined;
41
+ reverseDarkLayers: boolean | undefined;
42
42
  lineHeight: {
43
43
  fingertip: string;
44
44
  'fingertip-half': string;
45
- 'fingertip-xs': string;
46
- 'fingertip-s': string;
47
- 'fingertip-m': string;
48
- 'fingertip-l': string;
49
- 'fingertip-xl': string;
45
+ 'fingertip-xs': string | undefined;
46
+ 'fingertip-s': string | undefined;
47
+ 'fingertip-m': string | undefined;
48
+ 'fingertip-l': string | undefined;
49
+ 'fingertip-xl': string | undefined;
50
50
  };
51
51
  spacing: Record<string, string>;
52
52
  fontWeight: Record<string, string>;
package/dist/theme.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import N, { defu as F } from "defu";
2
- import { presetWind as R } from "unocss";
3
- import { palitra as w, color as z } from "@prostojs/palitra";
4
- const u = (r) => r, A = u({
1
+ import V, { defu as w } from "defu";
2
+ import { presetWind as L } from "unocss";
3
+ import { palitra as v, color as x } from "@prostojs/palitra";
4
+ const u = (r) => r, N = u({
5
5
  "toasts-viewport": "[--viewport-padding:_25px] fixed bottom-0 left-0 flex flex-col p-[var(--viewport-padding)] gap-[10px] w-[390px] max-h-50vh max-w-[100vw] m-0 list-none z-[2147483647] outline-none",
6
6
  "toast-root": {
7
7
  "": [
@@ -23,7 +23,7 @@ const u = (r) => r, A = u({
23
23
  "data-[swipe=left]:": "[--toast-out-x:calc(-100%-var(--viewport-padding))]",
24
24
  "data-[swipe=right]:": "[--toast-out-x:calc(100%+var(--viewport-padding))]"
25
25
  }
26
- }), D = u({
26
+ }), R = u({
27
27
  btn: {
28
28
  "": "h-fingertip flex items-center justify-center px-$m gap-$xs select-none fw-bold tracking-wide relative",
29
29
  "[&.btn-round]:": "px-fingertip-half rounded-fingertip-half",
@@ -48,7 +48,7 @@ const u = (r) => r, A = u({
48
48
  "group-[.btn-square]/btn:": "font-size-1.5em m-0!",
49
49
  "group-[.btn-round.btn-square]/btn:": "m-0!"
50
50
  }
51
- }), H = u({
51
+ }), A = u({
52
52
  "calendar-root": "inline-block",
53
53
  "calendar-header": "flex items-center justify-between mb-$s fw-$bold",
54
54
  "calendar-grid-row": "grid grid-cols-7 text-body-s",
@@ -79,7 +79,7 @@ const u = (r) => r, A = u({
79
79
  "focus:": "text-current/100 animate-blinking animate-count-infinite"
80
80
  }
81
81
  }
82
- }), C = [
82
+ }), D = [
83
83
  "h1",
84
84
  "h2",
85
85
  "h3",
@@ -91,9 +91,9 @@ const u = (r) => r, A = u({
91
91
  "body",
92
92
  "body-s",
93
93
  "callout"
94
- ], T = u({
95
- card: `data-[rounded=true]:rounded-$card-spacing data-[dense=true]:card-dense! ${C.map((r) => `data-[level=${r}]:card-${r}`).join(" ")}`
96
- }), X = u({
94
+ ], H = u({
95
+ card: `data-[rounded=true]:rounded-$card-spacing data-[dense=true]:card-dense! ${D.map((r) => `data-[level=${r}]:card-${r}`).join(" ")}`
96
+ }), C = u({
97
97
  "checkbox-root": {
98
98
  "": "text-body select-none flex gap-$m cursor-default current-bg-scope-color-500 current-border-scope-color-500",
99
99
  "data-[error=true]:": "current-border-error-500",
@@ -116,7 +116,7 @@ const u = (r) => r, A = u({
116
116
  "checkbox-label": {
117
117
  "": "select-none text-body lh-1.5em"
118
118
  }
119
- }), q = u({
119
+ }), T = u({
120
120
  "combobox-multi-input": "i8-input relative flex items-center",
121
121
  "combobox-multi-items": "text-ellipsis overflow-hidden whitespace-nowrap absolute max-w-full pr-$m lh-1em",
122
122
  "combobox-embedded-input": "text-left outline-0 outline-offset-0",
@@ -124,7 +124,7 @@ const u = (r) => r, A = u({
124
124
  "": "hover:current-icon-scope-color-500 hover:icon-current cursor-pointer",
125
125
  "group-[[aria-expanded=true]]/i8:": "-scale-100"
126
126
  }
127
- }), M = u({
127
+ }), X = u({
128
128
  "dialog-overlay": {
129
129
  "": "bg-black/55 fixed inset-0 z-30 animate-dialog-overlay-in",
130
130
  "data-[closing]": "animate-dialog-overlay-out opacity-0"
@@ -137,17 +137,17 @@ const u = (r) => r, A = u({
137
137
  "dialog-title": "text-mb-0",
138
138
  "dialog-close": "absolute right-$card-spacing top-$card-spacing hover:bg-grey-500/10 rounded p-$xxs",
139
139
  "dialog-footer": "flex-shrink-0 flex gap-$s justify-end border-t px-$card-spacing py-$m"
140
- }), I = u({
140
+ }), q = u({
141
141
  "loading-indicator": "cursor-wait",
142
142
  "loading-indicator-ring": {
143
143
  "": "animate-spin animate-duration-1500",
144
144
  "[&>circle]:": "animate-loading-dashoffset animate-count-infinite animate-duration-2500"
145
145
  },
146
146
  "inner-loading": "bg-white/50 dark:bg-black/50 flex items-center justify-center absolute left-0 top-0 right-0 bottom-0 z-5 cursor-wait"
147
- }), B = u({
147
+ }), M = u({
148
148
  "menu-root": "flex flex-col overflow-hidden",
149
149
  "menu-item": "justify-start c8-flat gap-$m w-full fw-400"
150
- }), E = u({
150
+ }), I = u({
151
151
  "progress-track": {
152
152
  "": "relative overflow-hidden bg-grey-500/20 rounded",
153
153
  "data-[loading]:after:": [
@@ -169,7 +169,7 @@ const u = (r) => r, A = u({
169
169
  "": "bg-scope-color-400 rounded w-full h-full transition-transform duration-[660ms]",
170
170
  "dark:": "bg-scope-color-600"
171
171
  }
172
- }), Y = u({
172
+ }), B = u({
173
173
  "rb-container": {
174
174
  "": "flex flex-col gap-$s text-body"
175
175
  },
@@ -199,7 +199,7 @@ const u = (r) => r, A = u({
199
199
  "": "select-none px-$s text-body leading-none lh-1.25em",
200
200
  "aria-[disabled=true]:": "scope-grey opacity-50 cursor-not-allowed"
201
201
  }
202
- }), U = u({
202
+ }), E = u({
203
203
  "select-content": {
204
204
  "": "min-w-[60px] rounded-base surface-0 bg-current overflow-hidden shadow-popup z-[100] current-border-grey-400 border-current/20 ",
205
205
  "data-[design=round]:": "rounded-fingertip-half",
@@ -225,7 +225,7 @@ const u = (r) => r, A = u({
225
225
  "[&>span]:data-[state=checked]:": "text-scope-color-500 fw-700!"
226
226
  },
227
227
  "select-separator": "h-[1px] bg-grey-500/10 mx-$s"
228
- }), J = u({
228
+ }), Y = u({
229
229
  slider: {
230
230
  "": "relative flex items-center select-none touch-none min-w-2em min-h-2em"
231
231
  },
@@ -245,28 +245,28 @@ const u = (r) => r, A = u({
245
245
  "focus:": "outline-[0.5em]"
246
246
  }
247
247
  }
248
- }), G = u({
248
+ }), U = u({
249
249
  "tabs-indicator": "absolute left-0 h-[2px] bottom-0 w-[--radix-tabs-indicator-size] translate-x-[--radix-tabs-indicator-position] rounded-full transition-all duration-200 bg-scope-color-500",
250
250
  tab: "h-fingertip rounded flex items-center justify-center px-$m gap-$m select-none"
251
- }), K = [
252
- T,
251
+ }), J = [
252
+ H,
253
+ M,
254
+ R,
255
+ C,
253
256
  B,
254
- D,
255
- X,
257
+ E,
258
+ T,
256
259
  Y,
257
- U,
258
260
  q,
259
- J,
260
- I,
261
- G,
262
- M,
263
- H,
264
- E,
261
+ U,
262
+ X,
265
263
  A,
264
+ I,
265
+ N,
266
266
  {
267
267
  "shadow-popup": "shadow-[0_0_10px_rgba(0,0,0,0.1),0_4px_20px_rgba(0,0,0,0.15)]"
268
268
  }
269
- ], Q = u({
269
+ ], G = u({
270
270
  // FILLED
271
271
  "c8-filled": {
272
272
  "": "current-bg-scope-color-500 rounded-base current-text-white current-icon-white icon-current/100 bg-current text-current",
@@ -338,7 +338,7 @@ const u = (r) => r, A = u({
338
338
  "c8-light-active": {
339
339
  "not-([disabled]):": "bg-current/20"
340
340
  }
341
- }), Z = u({
341
+ }), K = u({
342
342
  i8: {
343
343
  "": "h-fingertip min-w-3em flex items-center select-none relative icon-current content-box",
344
344
  "data-[type=textarea]:": "min-h-fingertip h-auto items-start",
@@ -478,22 +478,22 @@ const u = (r) => r, A = u({
478
478
  function h(r) {
479
479
  let t = "";
480
480
  for (const [e, o] of Object.entries(r)) {
481
- const i = V(o);
482
- t += `${i.map((a) => `${e}${a}`).join(" ")} `;
481
+ const i = W(o);
482
+ t += `${i.map((c) => `${e}${c}`).join(" ")} `;
483
483
  }
484
484
  return t.trim();
485
485
  }
486
- function V(r) {
486
+ function W(r) {
487
487
  if (typeof r == "string")
488
488
  return r.split(" ");
489
489
  if (Array.isArray(r))
490
490
  return r;
491
491
  const t = [];
492
492
  for (const [e, o] of Object.entries(r))
493
- t.push(...V(o).map((i) => `${e}${i}`));
493
+ t.push(...W(o).map((i) => `${e}${i}`));
494
494
  return t;
495
495
  }
496
- const ee = (r, t) => {
496
+ const Q = (r, t) => {
497
497
  const e = {}, o = /* @__PURE__ */ new Set([...Object.keys(t), ...Object.keys(r)]);
498
498
  for (const i of Array.from(o))
499
499
  if (!Object.prototype.hasOwnProperty.call(t, i))
@@ -501,11 +501,11 @@ const ee = (r, t) => {
501
501
  else if (!Object.prototype.hasOwnProperty.call(r, i))
502
502
  e[i] = t[i];
503
503
  else {
504
- let a = t[i], c = r[i];
505
- Array.isArray(a) && (a = a.join(" ")), Array.isArray(c) && (c = c.join(" ")), typeof a == "string" && typeof c == "string" ? e[i] = `${c} ${a}` : typeof a == "object" && typeof c == "string" ? e[i] = `${c} ${h(a)}` : typeof a == "string" && typeof c == "object" ? e[i] = `${h(c)} ${a}` : typeof a == "object" && typeof c == "object" && (e[i] = `${h(c)} ${h(a)}`);
504
+ let c = t[i], a = r[i];
505
+ Array.isArray(c) && (c = c.join(" ")), Array.isArray(a) && (a = a.join(" ")), typeof c == "string" && typeof a == "string" ? e[i] = `${a} ${c}` : typeof c == "object" && typeof a == "string" ? e[i] = `${a} ${h(c)}` : typeof c == "string" && typeof a == "object" ? e[i] = `${h(a)} ${c}` : typeof c == "object" && typeof a == "object" && (e[i] = `${h(a)} ${h(c)}`);
506
506
  }
507
507
  return e;
508
- }, L = (r) => r.reduce((t, e) => ee(t, e), {}), re = {
508
+ }, _ = (r) => r.reduce((t, e) => Q(t, e), {}), Z = {
509
509
  colors: {
510
510
  primary: { color: "#004eaf", preserveInputColor: !0, saturate: { dark: -0.2, light: -0.2 } },
511
511
  grey: { color: "#858892", saturate: { dark: 0, light: 0 } },
@@ -656,35 +656,34 @@ const ee = (r, t) => {
656
656
  ]
657
657
  }
658
658
  };
659
- function te(r) {
660
- var d, f, v, $, k, x, y;
661
- const t = (r == null ? void 0 : r.colors) || {};
662
- for (const S of Object.keys(t)) {
663
- const j = (d = r == null ? void 0 : r.colors) == null ? void 0 : d[S];
664
- typeof j == "string" && (t[S] = { color: j });
659
+ function ee(r) {
660
+ const t = r?.colors || {};
661
+ for (const d of Object.keys(t)) {
662
+ const f = r?.colors?.[d];
663
+ typeof f == "string" && (t[d] = { color: f });
665
664
  }
666
- const e = N({ ...r, colors: t }, re), o = {
665
+ const e = V({ ...r, colors: t }, Z), o = {
667
666
  count: 5,
668
667
  preserveInputColor: !1,
669
668
  luminance: {
670
- dark: ((f = e.layerPalette.luminance) == null ? void 0 : f.dark) ?? e.darkest,
671
- light: ((v = e.layerPalette.luminance) == null ? void 0 : v.light) ?? e.darkest + e.layersDepth,
669
+ dark: e.layerPalette.luminance?.dark ?? e.darkest,
670
+ light: e.layerPalette.luminance?.light ?? e.darkest + e.layersDepth,
672
671
  useMiddle: !1
673
672
  },
674
673
  saturate: e.layerPalette.saturate,
675
674
  vivid: e.layerPalette.vivid,
676
675
  suffixes: ["dark-0", "dark-1", "dark-2", "dark-3", "dark-4"]
677
- }, i = w(
678
- W(e.colors, e.layerPalette.desaturate),
676
+ }, i = v(
677
+ z(e.colors, e.layerPalette.desaturate),
679
678
  o
680
679
  ).toStrings();
681
680
  o.suffixes = ["light-0", "light-1", "light-2", "light-3", "light-4"].reverse();
682
- const a = o.luminance.light - o.luminance.dark;
683
- o.luminance = { dark: 1 - a, light: 1, useMiddle: !1 };
684
- const c = w(
685
- W(e.colors, e.layerPalette.desaturate),
681
+ const c = o.luminance.light - o.luminance.dark;
682
+ o.luminance = { dark: 1 - c, light: 1, useMiddle: !1 };
683
+ const a = v(
684
+ z(e.colors, e.layerPalette.desaturate),
686
685
  o
687
- ).toStrings(), l = w(
686
+ ).toStrings(), l = v(
688
687
  {
689
688
  primary: e.colors.primary,
690
689
  grey: e.colors.grey,
@@ -698,10 +697,10 @@ function te(r) {
698
697
  count: 10,
699
698
  preserveInputColor: e.mainPalette.preserveInputColor,
700
699
  luminance: {
701
- dark: (($ = e.mainPalette.luminance) == null ? void 0 : $.dark) ?? e.darkest + e.layersDepth + 0.02,
702
- light: ((k = e.mainPalette.luminance) == null ? void 0 : k.light) ?? e.lightest,
703
- useMiddle: (x = e.mainPalette.luminance) == null ? void 0 : x.useMiddle,
704
- middle: (y = e.mainPalette.luminance) == null ? void 0 : y.middle
700
+ dark: e.mainPalette.luminance?.dark ?? e.darkest + e.layersDepth + 0.02,
701
+ light: e.mainPalette.luminance?.light ?? e.lightest,
702
+ useMiddle: e.mainPalette.luminance?.useMiddle,
703
+ middle: e.mainPalette.luminance?.middle
705
704
  },
706
705
  saturate: e.mainPalette.saturate,
707
706
  vivid: e.mainPalette.vivid
@@ -711,24 +710,24 @@ function te(r) {
711
710
  opts: e,
712
711
  colors: {
713
712
  ...i,
714
- ...c,
713
+ ...a,
715
714
  ...l
716
715
  },
717
716
  surfaces: e.surfaces
718
717
  };
719
718
  }
720
- function W(r, t = 0.5) {
719
+ function z(r, t = 0.5) {
721
720
  const e = {};
722
721
  for (const [o, i] of Object.entries(r)) {
723
- const a = typeof i == "string" ? i : i.color;
724
- if (a) {
725
- const [c, l, d] = z(a).hsl();
726
- e[o] = z(c, l * t, d, "hsl").hex();
722
+ const c = typeof i == "string" ? i : i.color;
723
+ if (c) {
724
+ const [a, l, d] = x(c).hsl();
725
+ e[o] = x(a, l * t, d, "hsl").hex();
727
726
  }
728
727
  }
729
728
  return e;
730
729
  }
731
- function oe() {
730
+ function re() {
732
731
  const r = (t, e) => e ? 4 - t : t;
733
732
  return [
734
733
  [
@@ -745,9 +744,9 @@ function oe() {
745
744
  [
746
745
  /^(bg|text|current-text|current-bg|current-icon|current-border|current-outline|current-caret|current-hl|i8-bg|i8-border|i8-outline)-layer-([0-4])$/,
747
746
  ([, t, e], { theme: o }) => {
748
- const i = r(Number(e), o.reverseDarkLayers), a = r(Number(e), o.reverseLightLayers);
747
+ const i = r(Number(e), o.reverseDarkLayers), c = r(Number(e), o.reverseLightLayers);
749
748
  return h({
750
- "": `${t}-scope-light-${a}`,
749
+ "": `${t}-scope-light-${c}`,
751
750
  "dark:": `${t}-scope-dark-${i}`,
752
751
  "[&.dark]:": `${t}-scope-dark-${i}`
753
752
  });
@@ -771,11 +770,10 @@ function g(r, t = 0) {
771
770
  return Math.round(r * e) / e;
772
771
  }
773
772
  function m(r, t, e = 3) {
774
- var a;
775
- const o = Number.parseFloat(r), i = ((a = /(px|em|rem|%)$/.exec(r)) == null ? void 0 : a[1]) || "";
773
+ const o = Number.parseFloat(r), i = /(px|em|rem|%)$/.exec(r)?.[1] || "";
776
774
  return `${g(o * t, e)}${i}`;
777
775
  }
778
- const ie = {
776
+ const te = {
779
777
  getCSS: ({ theme: r }) => `${b("body", r.fontSize.body) + // renderFontCss('label', theme.fontSize.label) +
780
778
  b("figcaption", r.fontSize.caption) + b("h1", r.fontSize.h1) + b("h2", r.fontSize.h2) + b("h3", r.fontSize.h3) + b("h4", r.fontSize.h4) + b("h5", r.fontSize.h5) + b("h6", r.fontSize.h6)}
781
779
  :root {
@@ -829,10 +827,10 @@ function b(r, t) {
829
827
  `;
830
828
  }
831
829
  function s(r) {
832
- const [t, e, o, i] = z(r).rgba();
830
+ const [t, e, o, i] = x(r).rgba();
833
831
  return `${t} ${e} ${o}`;
834
832
  }
835
- function O(r) {
833
+ function S(r) {
836
834
  return {
837
835
  bg: "--un-bg-opacity",
838
836
  text: "--un-text-opacity",
@@ -846,7 +844,7 @@ function O(r) {
846
844
  ring: "--un-ring-opacity"
847
845
  }[r];
848
846
  }
849
- function P(r) {
847
+ function j(r) {
850
848
  return {
851
849
  bg: "background-color",
852
850
  text: "color",
@@ -860,7 +858,7 @@ function P(r) {
860
858
  ring: "--un-ring-color"
861
859
  }[r];
862
860
  }
863
- const ae = [
861
+ const oe = [
864
862
  [
865
863
  /^current-(text|bg|icon|border|outline|caret|hl)-(.+)$/,
866
864
  (r, { theme: t }) => {
@@ -885,7 +883,7 @@ const ae = [
885
883
  [
886
884
  /^(text|bg|icon|border|outline|caret|fill|shadow|ring)-current(-text|-bg|-icon|-border|-outline|-caret|-hl)?(\/\d{1,3})?$/,
887
885
  (r, { theme: t }) => {
888
- const e = r[1], o = r[2] || `-${e}`, i = O(e), a = P(e), c = r[3], l = c ? Number(c.slice(1)) / 100 : 1, d = l === 1 ? `var(${i})` : l;
886
+ const e = r[1], o = r[2] || `-${e}`, i = S(e), c = j(e), a = r[3], l = a ? Number(a.slice(1)) / 100 : 1, d = l === 1 ? `var(${i})` : l;
889
887
  return e === "icon" ? {
890
888
  [i]: l,
891
889
  "--current-icon": o === "-hl" ? `var(--current${o})` : void 0
@@ -894,7 +892,7 @@ const ae = [
894
892
  [`--un-${e}-color`]: `rgb(var(--current-border) / ${d})`
895
893
  } : {
896
894
  [i]: l,
897
- [a]: `rgb(var(--current${o}) / ${d})`
895
+ [c]: `rgb(var(--current${o}) / ${d})`
898
896
  };
899
897
  }
900
898
  ],
@@ -932,9 +930,9 @@ const ae = [
932
930
  [
933
931
  /^(bg|text|fill|stroke|border|outline|icon|caret)-scope-((?:color|dark|light|text|bg|white|black|icon)(?:-\d+)?)(\/\d{1,3})?$/,
934
932
  (r, { theme: t }) => {
935
- const e = P(r[1]), o = O(r[1]), i = r[2], a = r[3], c = a ? Number(a.slice(1)) / 100 : 1, l = i.startsWith("color") ? `grey-${i.slice(6)}` : `grey-${i}`, d = c === 1 ? `var(${o})` : c;
933
+ const e = j(r[1]), o = S(r[1]), i = r[2], c = r[3], a = c ? Number(c.slice(1)) / 100 : 1, l = i.startsWith("color") ? `grey-${i.slice(6)}` : `grey-${i}`, d = a === 1 ? `var(${o})` : a;
936
934
  return {
937
- [o]: c,
935
+ [o]: a,
938
936
  [e]: `rgb(var(--scope-${i}, ${t.colors[l] || ""}) / ${d})`
939
937
  };
940
938
  }
@@ -975,7 +973,7 @@ const ae = [
975
973
  height: "var(--icon-size, 1em)"
976
974
  })
977
975
  ]
978
- ], ce = [
976
+ ], ie = [
979
977
  [
980
978
  /^i8-(border|outline|bg)-(.+)$/,
981
979
  (r, { theme: t }) => {
@@ -997,21 +995,21 @@ const ae = [
997
995
  return {
998
996
  [`--i8-${e}-color`]: s(String(i.DEFAULT || i))
999
997
  };
1000
- const a = t.spacing[o];
1001
- if (a)
998
+ const c = t.spacing[o];
999
+ if (c)
1002
1000
  return {
1003
- [`--i8-${e}-width`]: a
1001
+ [`--i8-${e}-width`]: c
1004
1002
  };
1005
1003
  if (o.endsWith("px") || o.endsWith("em") || o.endsWith("rem"))
1006
1004
  return {
1007
1005
  [`--i8-${e}-width`]: o
1008
1006
  };
1009
1007
  if (o.startsWith("[") && o.endsWith("]")) {
1010
- const c = o.slice(1, -1);
1011
- return c.endsWith("px") || c.endsWith("em") || c.endsWith("rem") ? {
1012
- [`--i8-${e}-width`]: c
1008
+ const a = o.slice(1, -1);
1009
+ return a.endsWith("px") || a.endsWith("em") || a.endsWith("rem") ? {
1010
+ [`--i8-${e}-width`]: a
1013
1011
  } : {
1014
- [`--i8-${e}-color`]: c
1012
+ [`--i8-${e}-color`]: a
1015
1013
  };
1016
1014
  }
1017
1015
  }
@@ -1036,36 +1034,36 @@ const ae = [
1036
1034
  border: "--i8-border-color, var(--current-border)",
1037
1035
  outline: "--i8-outline-color, var(--current-outline)",
1038
1036
  bg: "--i8-bg-color, var(--current-bg)"
1039
- }[e], a = {
1037
+ }[e], c = {
1040
1038
  border: "--i8-border-opacity, 0.2",
1041
1039
  outline: "--i8-outline-opacity, 0.5",
1042
1040
  bg: "--i8-bg-opacity, 1"
1043
1041
  }[e];
1044
1042
  return e === "bg" ? {
1045
- [o]: `rgb(var(${i}) / var(${a}))`
1043
+ [o]: `rgb(var(${i}) / var(${c}))`
1046
1044
  } : {
1047
- [o]: `rgb(var(${i}) / var(${a}))`,
1045
+ [o]: `rgb(var(${i}) / var(${c}))`,
1048
1046
  [`${e}-width`]: `var(--i8-${e}-width, ${e === "border" ? 1 : 2}px)`
1049
1047
  };
1050
1048
  }
1051
1049
  ]
1052
- ], ne = [
1050
+ ], ae = [
1053
1051
  [
1054
1052
  // special text margin (vertical) that compensates
1055
1053
  // the line height
1056
1054
  /^text-m([bty])?-(.*)$/,
1057
1055
  (r, { theme: t }) => {
1058
- const e = r[1], o = r[2], i = e ? { y: ["top", "bottom"], t: ["top"], b: ["bottom"] }[e] : ["top", "bottom", "left", "right"], a = {};
1056
+ const e = r[1], o = r[2], i = e ? { y: ["top", "bottom"], t: ["top"], b: ["bottom"] }[e] : ["top", "bottom", "left", "right"], c = {};
1059
1057
  if (t.spacing[o]) {
1060
- for (const c of i)
1061
- a[`margin-${c}`] = ["left", "right"].includes(c) ? t.spacing[o] : `calc(${t.spacing[o]} + var(--font-${c === "top" ? "tc" : "bc"}))`;
1062
- return a;
1058
+ for (const a of i)
1059
+ c[`margin-${a}`] = ["left", "right"].includes(a) ? t.spacing[o] : `calc(${t.spacing[o]} + var(--font-${a === "top" ? "tc" : "bc"}))`;
1060
+ return c;
1063
1061
  } else if (/^\d+(em|rem|px)?$/.test(o)) {
1064
- let c = o;
1065
- /^[\d.]+$/.test(o) && (c = `${Number(o) * 0.25}rem`);
1062
+ let a = o;
1063
+ /^[\d.]+$/.test(o) && (a = `${Number(o) * 0.25}rem`);
1066
1064
  for (const l of i)
1067
- a[`margin-${l}`] = ["left", "right"].includes(l) ? c : `calc(${c} + var(--font-${l === "top" ? "tc" : "bc"}))`;
1068
- return a;
1065
+ c[`margin-${l}`] = ["left", "right"].includes(l) ? a : `calc(${a} + var(--font-${l === "top" ? "tc" : "bc"}))`;
1066
+ return c;
1069
1067
  }
1070
1068
  },
1071
1069
  { layer: "utilities" }
@@ -1123,10 +1121,10 @@ const ae = [
1123
1121
  };
1124
1122
  }
1125
1123
  ]
1126
- ], le = [
1127
- ...ne,
1124
+ ], ce = [
1128
1125
  ...ae,
1129
- ...ce
1126
+ ...oe,
1127
+ ...ie
1130
1128
  ];
1131
1129
  function n(r, t = 1) {
1132
1130
  return t * 1.618 ** r;
@@ -1140,7 +1138,7 @@ function p(r, t, e, o, i) {
1140
1138
  spacing: i
1141
1139
  };
1142
1140
  }
1143
- const se = {
1141
+ const ne = {
1144
1142
  h1: (
1145
1143
  /* */
1146
1144
  p(
@@ -1296,11 +1294,11 @@ const se = {
1296
1294
  )
1297
1295
  )
1298
1296
  };
1299
- function de(r, t, e, o, i, a = 1, c = 0.5) {
1300
- const l = r * a, f = (o * r - l) / r, v = l / 2, $ = l * c - v + f / 2, k = l * (1 - c) - v + f / 2, x = g($, 4), y = g(k, 4);
1297
+ function le(r, t, e, o, i, c = 1, a = 0.5) {
1298
+ const l = r * c, f = (o * r - l) / r, y = l / 2, O = l * a - y + f / 2, P = l * (1 - a) - y + f / 2, $ = g(O, 4), k = g(P, 4);
1301
1299
  return {
1302
- mt: x,
1303
- mb: y,
1300
+ mt: $,
1301
+ mb: k,
1304
1302
  size: r,
1305
1303
  correctedSize: l,
1306
1304
  theme: [
@@ -1309,8 +1307,8 @@ function de(r, t, e, o, i, a = 1, c = 0.5) {
1309
1307
  "--font-bold": e,
1310
1308
  "--font-size": `${r}em`,
1311
1309
  "--font-corrected": `${l}em`,
1312
- "--font-bc": `${-y}em`,
1313
- "--font-tc": `${-x}em`,
1310
+ "--font-bc": `${-k}em`,
1311
+ "--font-tc": `${-$}em`,
1314
1312
  "font-weight": t,
1315
1313
  "line-height": `${o}em`,
1316
1314
  "letter-spacing": `${i}em`
@@ -1322,7 +1320,7 @@ function de(r, t, e, o, i, a = 1, c = 0.5) {
1322
1320
  ]
1323
1321
  };
1324
1322
  }
1325
- const ue = (r) => {
1323
+ const se = (r) => {
1326
1324
  const t = {
1327
1325
  // canonical
1328
1326
  $xxs: `${g(1 / r.spacingFactor ** 3, 3)}em`,
@@ -1364,7 +1362,7 @@ const ue = (r) => {
1364
1362
  base: r.baseRadius
1365
1363
  }, i = {
1366
1364
  $bold: "var(--font-bold)"
1367
- }, a = {
1365
+ }, c = {
1368
1366
  "card-header": [
1369
1367
  "var(--card-heading-size)",
1370
1368
  {
@@ -1380,8 +1378,8 @@ const ue = (r) => {
1380
1378
  ]
1381
1379
  };
1382
1380
  for (const [l, d] of Object.entries(r.typography))
1383
- if (d != null && d.size) {
1384
- const f = de(
1381
+ if (d?.size) {
1382
+ const f = le(
1385
1383
  d.size || 1,
1386
1384
  d.weight || 400,
1387
1385
  d.boldWeight || 700,
@@ -1390,14 +1388,14 @@ const ue = (r) => {
1390
1388
  d.actualHeightFactor || r.actualFontHeightFactor,
1391
1389
  d.actualHeightTopBottomRatio || r.actualFontHeightTopBottomRatio
1392
1390
  );
1393
- a[l] = f.theme, t[l] = `${f.size}em`;
1391
+ c[l] = f.theme, t[l] = `${f.size}em`;
1394
1392
  }
1395
- const c = te(r.palette);
1393
+ const a = ee(r.palette);
1396
1394
  return {
1397
- paletteOpts: c.opts,
1395
+ paletteOpts: a.opts,
1398
1396
  theme: {
1399
- colors: c.colors,
1400
- surfaces: c.surfaces,
1397
+ colors: a.colors,
1398
+ surfaces: a.surfaces,
1401
1399
  // borderColor: ,
1402
1400
  reverseLightLayers: r.layers.reverseLight,
1403
1401
  reverseDarkLayers: r.layers.reverseDark,
@@ -1406,7 +1404,7 @@ const ue = (r) => {
1406
1404
  fontWeight: i,
1407
1405
  actualFontHeightFactor: r.actualFontHeightFactor,
1408
1406
  cardSpacingFactor: r.cardSpacingFactor,
1409
- fontSize: a,
1407
+ fontSize: c,
1410
1408
  width: t,
1411
1409
  height: t,
1412
1410
  maxWidth: t,
@@ -1418,10 +1416,10 @@ const ue = (r) => {
1418
1416
  }
1419
1417
  };
1420
1418
  };
1421
- function _(r, t = 1) {
1419
+ function F(r, t = 1) {
1422
1420
  return t * Math.sqrt(1.618) ** r;
1423
1421
  }
1424
- const pe = {
1422
+ const de = {
1425
1423
  spacingFactor: 1.618,
1426
1424
  actualFontHeightFactor: 1,
1427
1425
  actualFontHeightTopBottomRatio: 0.52,
@@ -1429,14 +1427,14 @@ const pe = {
1429
1427
  regular: 1,
1430
1428
  dense: 0.6
1431
1429
  },
1432
- typography: se,
1430
+ typography: ne,
1433
1431
  layers: {
1434
1432
  reverseDark: !1,
1435
1433
  reverseLight: !1
1436
1434
  },
1437
1435
  fingertip: {
1438
- xs: `${g(_(-2, 3), 3)}em`,
1439
- s: `${g(_(-1, 3), 3)}em`,
1436
+ xs: `${g(F(-2, 3), 3)}em`,
1437
+ s: `${g(F(-1, 3), 3)}em`,
1440
1438
  m: "3em",
1441
1439
  l: "3.5em",
1442
1440
  xl: "4em"
@@ -1508,10 +1506,10 @@ const pe = {
1508
1506
  }`
1509
1507
  }
1510
1508
  }
1511
- }, xe = (r) => {
1512
- const t = F(r, pe), e = ge();
1513
- e.preflights || (e.preflights = []), e.preflights.push(ie), e.rules || (e.rules = []), e.rules.push(...le);
1514
- const o = oe(), i = ue(t);
1509
+ }, me = (r) => {
1510
+ const t = w(r, de), e = ue();
1511
+ e.preflights || (e.preflights = []), e.preflights.push(te), e.rules || (e.rules = []), e.rules.push(...ce);
1512
+ const o = re(), i = se(t);
1515
1513
  return e.preflights.push({
1516
1514
  getCSS: () => `__vunor_palette_options {background-image: url("data:image/gif;base64,${Buffer.from(
1517
1515
  JSON.stringify({ ...i.paletteOpts, surfaces: void 0 })
@@ -1519,7 +1517,7 @@ const pe = {
1519
1517
  }), {
1520
1518
  ...e,
1521
1519
  name: "vunor",
1522
- theme: F(i.theme, e.theme),
1520
+ theme: w(i.theme, e.theme),
1523
1521
  shortcuts: o,
1524
1522
  layers: {
1525
1523
  preflights: 0,
@@ -1529,26 +1527,25 @@ const pe = {
1529
1527
  }
1530
1528
  };
1531
1529
  };
1532
- function ge() {
1533
- var t;
1534
- const r = R();
1535
- return (t = r.rules) == null || t.forEach((e) => {
1536
- e[0] instanceof RegExp && (e[0].source.startsWith("^m-") || e[0].source.startsWith("^ma?") || e[0].source.startsWith("^p-?") || e[0].source.startsWith("^pa?")) && (e[2] = e[2] || {}, e[2].layer = "utilities");
1530
+ function ue() {
1531
+ const r = L();
1532
+ return r.rules?.forEach((t) => {
1533
+ t[0] instanceof RegExp && (t[0].source.startsWith("^m-") || t[0].source.startsWith("^ma?") || t[0].source.startsWith("^p-?") || t[0].source.startsWith("^pa?")) && (t[2] = t[2] || {}, t[2].layer = "utilities");
1537
1534
  }), r;
1538
1535
  }
1539
- const fe = [Z, Q, ...K], be = L(fe);
1540
- function ye(r, t = be) {
1541
- const e = r ? L([t, r]) : t;
1536
+ const pe = [K, G, ...J], ge = _(pe);
1537
+ function ve(r, t = ge) {
1538
+ const e = r ? _([t, r]) : t;
1542
1539
  for (const [o, i] of Object.entries(e))
1543
1540
  e[o] = typeof i == "string" ? i : h(i);
1544
1541
  return e;
1545
1542
  }
1546
1543
  export {
1547
1544
  u as defineShortcuts,
1548
- L as mergeVunorShortcuts,
1549
- be as mergedVunorShortcuts,
1550
- xe as presetVunor,
1551
- fe as rawVunorShortcuts,
1545
+ _ as mergeVunorShortcuts,
1546
+ ge as mergedVunorShortcuts,
1547
+ me as presetVunor,
1548
+ pe as rawVunorShortcuts,
1552
1549
  h as toUnoShortcut,
1553
- ye as vunorShortcuts
1550
+ ve as vunorShortcuts
1554
1551
  };
package/dist/utils.d.ts CHANGED
@@ -19,7 +19,7 @@ export declare type TVueCssClass = string | string[] | Record<string, boolean |
19
19
 
20
20
  export declare const useProvideInject: <PA extends any[], IA extends any[], PR, INJ>(key: string, init: () => TProvideInjectBody<PA, IA, PR, INJ>) => {
21
21
  provide: (...args: PA) => PR;
22
- inject: (...args: IA) => INJ;
22
+ inject: (...args: IA) => INJ | undefined;
23
23
  };
24
24
 
25
25
  export { }
package/dist/utils.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { provide as s, inject as c } from "vue";
1
+ import { inject as s, provide as c } from "vue";
2
2
  function u(...r) {
3
3
  const t = {};
4
4
  for (const e of r)
@@ -8,10 +8,10 @@ function u(...r) {
8
8
  const j = (r, t) => ({
9
9
  provide: (...e) => {
10
10
  const { _provide: n, _inject: o } = t(), i = n(...e);
11
- return s(r, o), i;
11
+ return c(r, o), i;
12
12
  },
13
13
  inject: (...e) => {
14
- const n = c(r);
14
+ const n = s(r);
15
15
  if (n)
16
16
  return n(...e);
17
17
  }
package/dist/vunor.d.ts CHANGED
@@ -76,25 +76,25 @@ export declare function useAppToasts(): {
76
76
  toasts: Ref_2< {
77
77
  title: string;
78
78
  message: string;
79
- duration?: number;
80
- icon?: string;
81
- class?: string;
79
+ duration?: number | undefined;
80
+ icon?: string | undefined;
81
+ class?: string | undefined;
82
82
  actions?: {
83
83
  text: string;
84
84
  action: () => void;
85
- }[];
85
+ }[] | undefined;
86
86
  open: boolean;
87
87
  id: number;
88
88
  }[], TToastInternal[] | {
89
89
  title: string;
90
90
  message: string;
91
- duration?: number;
92
- icon?: string;
93
- class?: string;
91
+ duration?: number | undefined;
92
+ icon?: string | undefined;
93
+ class?: string | undefined;
94
94
  actions?: {
95
95
  text: string;
96
96
  action: () => void;
97
- }[];
97
+ }[] | undefined;
98
98
  open: boolean;
99
99
  id: number;
100
100
  }[]>;
@@ -108,10 +108,10 @@ export declare function useHtmlInputAttrs(): ComputedRef_2<TInputAttrs> | undefi
108
108
  export declare function useInputBaseProps(): ComputedRef_2<TInputBaseProps> | undefined;
109
109
 
110
110
  export declare function useInputDataAttrs(): ComputedRef_2<{
111
- 'data-has-label': string;
112
- 'data-has-placeholder': string;
111
+ 'data-has-label': string | undefined;
112
+ 'data-has-placeholder': string | undefined;
113
113
  'data-type': string;
114
- 'aria-disabled': boolean;
114
+ 'aria-disabled': boolean | undefined;
115
115
  }>;
116
116
 
117
117
  export declare const useInputPi: () => any;
package/dist/vunor.mjs CHANGED
@@ -1,41 +1,40 @@
1
- import { ref as d, getCurrentInstance as a, onMounted as v, watch as f, computed as l, onUnmounted as h } from "vue";
2
- import { useProvideInject as u } from "vunor/utils";
3
- const t = d([]);
4
- function b() {
1
+ import { ref as i, getCurrentInstance as p, onMounted as u, watch as v, computed as l, onUnmounted as f } from "vue";
2
+ import { useProvideInject as c } from "vunor/utils";
3
+ const r = i([]);
4
+ function g() {
5
5
  function o(n) {
6
- const r = Math.random();
7
- return t.value.push({ ...n, open: !0, id: r }), () => {
8
- e(r);
6
+ const t = Math.random();
7
+ return r.value.push({ ...n, open: !0, id: t }), () => {
8
+ e(t);
9
9
  };
10
10
  }
11
11
  function e(n) {
12
- const r = t.value.findIndex((p) => p.id === n);
13
- r >= 0 && (t.value[r].open = !1), setTimeout(() => {
14
- t.value = t.value.filter((p) => p.id !== n);
12
+ const t = r.value.findIndex((a) => a.id === n);
13
+ t >= 0 && (r.value[t].open = !1), setTimeout(() => {
14
+ r.value = r.value.filter((a) => a.id !== n);
15
15
  }, 200);
16
16
  }
17
17
  return {
18
18
  create: o,
19
- toasts: t,
19
+ toasts: r,
20
20
  close: e
21
21
  };
22
22
  }
23
- const s = (o) => o && /^h[1-6]$/.test(o) ? o : "", C = () => u("__vunor_card_PI", () => {
24
- const o = d("");
23
+ const s = (o) => o && /^h[1-6]$/.test(o) ? o : "", b = () => c("__vunor_card_PI", () => {
24
+ const o = i("");
25
25
  function e(n) {
26
26
  n && (o.value = n);
27
27
  }
28
28
  return {
29
29
  _provide: () => ({ headerLevel: o }),
30
30
  _inject: () => {
31
- const n = a();
31
+ const n = p();
32
32
  if (n) {
33
- const r = n.props.level || s(n.props.as);
34
- r ? e(r) : v(() => {
35
- var c;
36
- const p = n.props.level || s(n.props.as), i = (c = n.vnode.el) == null ? void 0 : c.tagName.toLowerCase();
37
- e(p || s(i) ? i : "");
38
- }), f(
33
+ const t = n.props.level || s(n.props.as);
34
+ t ? e(t) : u(() => {
35
+ const a = n.props.level || s(n.props.as), d = n.vnode.el?.tagName.toLowerCase();
36
+ e(a || s(d) ? d : "");
37
+ }), v(
39
38
  () => [n.props.level, n.props.as],
40
39
  () => {
41
40
  e(n.props.level || n.props.as);
@@ -44,19 +43,19 @@ const s = (o) => o && /^h[1-6]$/.test(o) ? o : "", C = () => u("__vunor_card_PI"
44
43
  }
45
44
  }
46
45
  };
47
- }), k = () => u("__vunor_input_PI", () => {
48
- const o = l(() => !!e.value.some((n) => n.value)), e = d([]);
46
+ }), C = () => c("__vunor_input_PI", () => {
47
+ const o = l(() => !!e.value.some((n) => n.value)), e = i([]);
49
48
  return {
50
49
  _provide: () => ({ focused: o }),
51
50
  _inject: (n) => {
52
- e.value.push(n), h(() => {
53
- e.value = e.value.filter((r) => r !== n);
51
+ e.value.push(n), f(() => {
52
+ e.value = e.value.filter((t) => t !== n);
54
53
  });
55
54
  }
56
55
  };
57
56
  });
58
- function y() {
59
- const o = a();
57
+ function k() {
58
+ const o = p();
60
59
  if (o) {
61
60
  const e = o.props;
62
61
  return l(() => ({
@@ -74,8 +73,8 @@ function y() {
74
73
  }));
75
74
  }
76
75
  }
77
- function A() {
78
- const o = a();
76
+ function y() {
77
+ const o = p();
79
78
  if (o) {
80
79
  const e = o.props;
81
80
  return l(() => ({
@@ -110,8 +109,8 @@ function A() {
110
109
  }));
111
110
  }
112
111
  }
113
- function P() {
114
- const o = a();
112
+ function A() {
113
+ const o = p();
115
114
  if (o) {
116
115
  const e = o.props;
117
116
  return l(() => ({
@@ -139,21 +138,21 @@ function P() {
139
138
  }));
140
139
  }
141
140
  }
142
- function I() {
143
- const o = a();
141
+ function P() {
142
+ const o = p();
144
143
  return l(() => ({
145
- "data-has-label": o != null && o.props.label ? "" : void 0,
146
- "data-has-placeholder": o != null && o.props.placeholder ? "" : void 0,
147
- "data-type": (o == null ? void 0 : o.props.type) ?? "text",
148
- "aria-disabled": o != null && o.props.disabled ? !0 : void 0
144
+ "data-has-label": o?.props.label ? "" : void 0,
145
+ "data-has-placeholder": o?.props.placeholder ? "" : void 0,
146
+ "data-type": o?.props.type ?? "text",
147
+ "aria-disabled": o?.props.disabled ? !0 : void 0
149
148
  }));
150
149
  }
151
150
  export {
152
- b as useAppToasts,
153
- C as useCardPI,
154
- y as useHtmlInputAttrs,
155
- P as useInputBaseProps,
156
- I as useInputDataAttrs,
157
- k as useInputPi,
158
- A as useInputProps
151
+ g as useAppToasts,
152
+ b as useCardPI,
153
+ k as useHtmlInputAttrs,
154
+ A as useInputBaseProps,
155
+ P as useInputDataAttrs,
156
+ C as useInputPi,
157
+ y as useInputProps
159
158
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vunor",
3
- "version": "0.0.27",
3
+ "version": "0.0.30",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -12,14 +12,13 @@
12
12
  "type-check": "vue-tsc --build --force"
13
13
  },
14
14
  "dependencies": {
15
- "@internationalized/date": "^3.5.5",
15
+ "@internationalized/date": "^3.11.0",
16
16
  "@prostojs/palitra": "^0.0.3",
17
- "@unocss/preset-mini": "^0.60.4",
17
+ "@unocss/preset-mini": "^66.6.0",
18
18
  "defu": "^6.1.4",
19
- "radix-vue": "^1.9.5",
20
- "unocss": "^0.60.4",
21
- "vue": "^3.4.27",
22
- "vue-router": "^4.3.2"
19
+ "radix-vue": "^1.9.17",
20
+ "unocss": "^66.6.0",
21
+ "vue": "^3.5.28"
23
22
  },
24
23
  "files": [
25
24
  "dist",
@@ -82,27 +81,28 @@
82
81
  "./Tabs.vue": "./src/components/Tabs/Tabs.vue"
83
82
  },
84
83
  "devDependencies": {
85
- "@iconify/utils": "^2.1.23",
86
- "@nuxt/kit": "^3.12.4",
87
- "@nuxt/schema": "^3.12.4",
84
+ "@iconify/utils": "^3.1.0",
85
+ "@nuxt/kit": "^3.21.1",
86
+ "@nuxt/schema": "^3.21.1",
88
87
  "@prostojs/palitra": "^0.0.3",
89
- "@tsconfig/node20": "^20.1.4",
90
- "@types/node": "^20.12.5",
91
- "@unocss/preset-icons": "^0.59.4",
92
- "@unocss/preset-mini": "^0.59.4",
93
- "@unocss/preset-wind": "^0.59.4",
94
- "@unocss/reset": "^0.59.4",
95
- "@vitejs/plugin-vue": "^5.0.4",
96
- "@vue/tsconfig": "^0.5.1",
97
- "@vueuse/core": "^10.10.0",
98
- "typescript": "~5.4.5",
99
- "unocss": "^0.60.4",
100
- "unocss-preset-scrollbar": "^0.3.1",
101
- "unplugin-auto-import": "^0.17.6",
102
- "unplugin-vue-components": "^0.27.0",
103
- "vite": "^5.3.5",
104
- "vite-plugin-dts": "3.8.3",
105
- "vitest": "^1.6.0",
106
- "vue-tsc": "^2.0.11"
88
+ "@tsconfig/node22": "^22.0.5",
89
+ "@types/node": "^22.19.11",
90
+ "@unocss/preset-icons": "^66.6.0",
91
+ "@unocss/preset-mini": "^66.6.0",
92
+ "@unocss/preset-wind": "^66.6.0",
93
+ "@unocss/reset": "^66.6.0",
94
+ "@vitejs/plugin-vue": "^6.0.4",
95
+ "@vue/tsconfig": "^0.7.0",
96
+ "@vueuse/core": "^13.9.0",
97
+ "typescript": "^5.9.3",
98
+ "unocss": "^66.6.0",
99
+ "unocss-preset-scrollbar": "^3.2.0",
100
+ "unplugin-auto-import": "^19.3.0",
101
+ "unplugin-vue-components": "^28.8.0",
102
+ "vite": "^7.3.1",
103
+ "vite-plugin-dts": "4.5.4",
104
+ "vitest": "^3.2.4",
105
+ "vue-router": "^4.6.4",
106
+ "vue-tsc": "^2.2.12"
107
107
  }
108
108
  }
@@ -4,7 +4,7 @@ import VuInput from '../Input/Input.vue'
4
4
  import { type TInputProps, useInputProps } from '../Input/utils'
5
5
  import type { DateValue } from '@internationalized/date'
6
6
  import VuDatePickerBase from './DatePickerBase.vue'
7
- import type { TVueCssClass } from '../utils/merge-class'
7
+ import type { TVueCssClass } from 'vunor/utils'
8
8
 
9
9
  const props = defineProps<
10
10
  DatePickerRootProps & {
@@ -8,7 +8,7 @@ import { type ComponentPublicInstance, computed } from 'vue'
8
8
  import { type TInputProps, useInputProps } from '../Input/utils'
9
9
  import type { DateValue } from '@internationalized/date'
10
10
  import { ref, watch, nextTick } from 'vue'
11
- import type { TVueCssClass } from '../utils/merge-class'
11
+ import type { TVueCssClass } from 'vunor/utils'
12
12
 
13
13
  const props = defineProps<
14
14
  DatePickerRootProps & {
@@ -17,7 +17,7 @@ import {
17
17
  } from 'radix-vue'
18
18
  import VuCard from '../Card/Card.vue'
19
19
  import VuButton from '../Button/Button.vue'
20
- import type { TVueCssClass } from '../utils/merge-class'
20
+ import type { TVueCssClass } from 'vunor/utils'
21
21
 
22
22
  const props = defineProps<{
23
23
  popupRounded?: boolean