vunor 0.0.10 → 0.0.12

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/nuxt.mjs CHANGED
@@ -8,6 +8,7 @@ var u = [
8
8
  "CardInner",
9
9
  "Checkbox",
10
10
  "Combobox",
11
+ "DevTools",
11
12
  "Icon",
12
13
  "Input",
13
14
  "InputShell",
@@ -21,9 +22,10 @@ var u = [
21
22
  "RadioGroup",
22
23
  "Select",
23
24
  "SelectBase",
24
- "Slider"
25
+ "Slider",
26
+ "Tabs"
25
27
  ];
26
- const o = u, d = a({
28
+ const n = u, d = a({
27
29
  meta: {
28
30
  name: "vunor/nuxt",
29
31
  configKey: "vunor",
@@ -35,9 +37,9 @@ const o = u, d = a({
35
37
  // prefix: '',
36
38
  components: !0
37
39
  },
38
- setup(n) {
39
- if (n.components) {
40
- const t = Array.isArray(n.components) ? o.filter((e) => n.components.includes(e)) : o;
40
+ setup(o) {
41
+ if (o.components) {
42
+ const t = Array.isArray(o.components) ? n.filter((e) => o.components.includes(e)) : n;
41
43
  for (const e of t)
42
44
  r({
43
45
  name: `Vu${e}`,
package/dist/theme.d.ts CHANGED
@@ -29,55 +29,60 @@ export declare const rawVunorShortcuts: TVunorShortcut[];
29
29
  declare const themeFactory: (opts: Required<TVunorUnoPresetOpts> & {
30
30
  palette?: TVunorPaletteOptions;
31
31
  }) => {
32
- colors: {
33
- [x: string]: string;
34
- };
35
- surfaces: Record<string, TVunorSurfaceConfig>;
36
- borderColor: string;
37
- reverseLightLayers: boolean;
38
- reverseDarkLayers: boolean;
39
- lineHeight: {
40
- fingertip: string;
41
- 'fingertip-half': string;
42
- 'fingertip-xs': string;
43
- 'fingertip-s': string;
44
- 'fingertip-m': string;
45
- 'fingertip-l': string;
46
- 'fingertip-xl': string;
47
- };
48
- spacing: Record<string, string>;
49
- fontWeight: Record<string, string>;
50
- actualFontHeightFactor: number;
51
- cardSpacingFactor: {
52
- regular: number;
53
- dense: number;
54
- };
55
- fontSize: Record<string, [TTypographyNames, Record<string, string>]>;
56
- width: Record<string, string>;
57
- height: Record<string, string>;
58
- maxWidth: Record<string, string>;
59
- maxHeight: Record<string, string>;
60
- minWidth: Record<string, string>;
61
- minHeight: Record<string, string>;
62
- borderRadius: {
63
- base: string;
64
- };
65
- animation: {
66
- durations: {
67
- 'slide-down-and-fade': string;
68
- 'slide-left-and-fade': string;
69
- 'slide-up-and-fade': string;
70
- 'slide-right-and-fade': string;
71
- 'zoom-fade-in': string;
32
+ paletteOpts: Required<TVunorPaletteOptions & {
33
+ colors: TVunorPaletteColor;
34
+ }>;
35
+ theme: {
36
+ colors: {
37
+ [x: string]: string;
38
+ };
39
+ surfaces: Record<string, TVunorSurfaceConfig>;
40
+ borderColor: string;
41
+ reverseLightLayers: boolean;
42
+ reverseDarkLayers: boolean;
43
+ lineHeight: {
44
+ fingertip: string;
45
+ 'fingertip-half': string;
46
+ 'fingertip-xs': string;
47
+ 'fingertip-s': string;
48
+ 'fingertip-m': string;
49
+ 'fingertip-l': string;
50
+ 'fingertip-xl': string;
51
+ };
52
+ spacing: Record<string, string>;
53
+ fontWeight: Record<string, string>;
54
+ actualFontHeightFactor: number;
55
+ cardSpacingFactor: {
56
+ regular: number;
57
+ dense: number;
58
+ };
59
+ fontSize: Record<string, [TTypographyNames, Record<string, string>]>;
60
+ width: Record<string, string>;
61
+ height: Record<string, string>;
62
+ maxWidth: Record<string, string>;
63
+ maxHeight: Record<string, string>;
64
+ minWidth: Record<string, string>;
65
+ minHeight: Record<string, string>;
66
+ borderRadius: {
67
+ base: string;
72
68
  };
73
- keyframes: {
74
- 'slide-down-and-fade': string;
75
- 'slide-left-and-fade': string;
76
- 'slide-up-and-fade': string;
77
- 'slide-right-and-fade': string;
78
- 'zoom-fade-in': string;
79
- 'loading-dashoffset': string;
80
- 'cb-appear': string;
69
+ animation: {
70
+ durations: {
71
+ 'slide-down-and-fade': string;
72
+ 'slide-left-and-fade': string;
73
+ 'slide-up-and-fade': string;
74
+ 'slide-right-and-fade': string;
75
+ 'zoom-fade-in': string;
76
+ };
77
+ keyframes: {
78
+ 'slide-down-and-fade': string;
79
+ 'slide-left-and-fade': string;
80
+ 'slide-up-and-fade': string;
81
+ 'slide-right-and-fade': string;
82
+ 'zoom-fade-in': string;
83
+ 'loading-dashoffset': string;
84
+ 'cb-appear': string;
85
+ };
81
86
  };
82
87
  };
83
88
  };
@@ -301,7 +306,7 @@ export declare interface TVunorShortcut {
301
306
  */
302
307
  export declare type TVunorSurfaceConfig = [string, string, string, string, string, string];
303
308
 
304
- export declare type TVunorTheme = ReturnType<typeof themeFactory> & Theme;
309
+ export declare type TVunorTheme = ReturnType<typeof themeFactory>['theme'] & Theme;
305
310
 
306
311
  declare interface TVunorUnoPresetOpts {
307
312
  spacingFactor?: number;