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 +7 -5
- package/dist/theme.d.ts +54 -49
- package/dist/theme.mjs +312 -300
- package/package.json +1 -1
- package/src/components/DevTools/DevTools.vue +374 -0
- package/src/components/Tabs/Tabs.vue +42 -0
- package/src/components/Tabs/shortcuts.ts +7 -0
- package/src/components/shortcuts.ts +2 -0
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
|
|
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(
|
|
39
|
-
if (
|
|
40
|
-
const t = Array.isArray(
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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;
|