vunor 0.0.15 → 0.0.29

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.
Files changed (42) hide show
  1. package/dist/nuxt.mjs +13 -3
  2. package/dist/theme.d.ts +20 -27
  3. package/dist/theme.mjs +415 -285
  4. package/dist/utils.d.ts +15 -1
  5. package/dist/utils.mjs +17 -10
  6. package/dist/vunor.d.ts +121 -0
  7. package/dist/vunor.mjs +158 -0
  8. package/package.json +46 -30
  9. package/src/components/AppToasts/AppToasts.vue +76 -0
  10. package/src/components/AppToasts/app-toasts.ts +43 -0
  11. package/src/components/AppToasts/shortcuts.ts +26 -0
  12. package/src/components/Calendar/Calendar.vue +70 -0
  13. package/src/components/Calendar/shortcuts.ts +38 -0
  14. package/src/components/Card/Card.vue +1 -1
  15. package/src/components/Card/CardHeader.vue +1 -1
  16. package/src/components/Card/pi.ts +1 -2
  17. package/src/components/Checkbox/Checkbox.vue +1 -1
  18. package/src/components/Combobox/Combobox.vue +17 -5
  19. package/src/components/DatePicker/DatePicker.vue +31 -0
  20. package/src/components/DatePicker/DatePickerBase.vue +139 -0
  21. package/src/components/DatePicker/DatePickerInner.vue +27 -0
  22. package/src/components/DatePicker/DatePickerPopup.vue +84 -0
  23. package/src/components/Dialog/DelayedSwitch.vue +51 -0
  24. package/src/components/Dialog/Dialog.vue +199 -0
  25. package/src/components/Dialog/shortcuts.ts +17 -0
  26. package/src/components/Input/Input.vue +9 -7
  27. package/src/components/Input/InputBase.vue +3 -3
  28. package/src/components/Input/index.ts +0 -1
  29. package/src/components/Input/pi.ts +2 -2
  30. package/src/components/Input/utils.ts +55 -2
  31. package/src/components/Loading/InnerLoading.vue +14 -0
  32. package/src/components/Loading/LoadingIndicator.vue +1 -1
  33. package/src/components/Loading/shortcuts.ts +2 -0
  34. package/src/components/OverflowContainer/OverflowContainer.vue +1 -1
  35. package/src/components/ProgressBar/ProgressBar.vue +22 -0
  36. package/src/components/ProgressBar/shortcuts.ts +25 -0
  37. package/src/components/Select/Select.vue +2 -2
  38. package/src/components/Select/shortcuts.ts +1 -1
  39. package/src/components/shortcuts.ts +11 -0
  40. package/src/components/utils/index.ts +1 -0
  41. package/src/components/utils/merge-class.ts +31 -0
  42. package/src/components/Input/types.ts +0 -54
package/dist/nuxt.mjs CHANGED
@@ -1,31 +1,41 @@
1
1
  import { defineNuxtModule as a, addComponent as r } from "@nuxt/kit";
2
- var u = [
2
+ var i = [
3
3
  "AppLayout",
4
+ "AppToasts",
4
5
  "Button",
5
6
  "ButtonBase",
7
+ "Calendar",
6
8
  "Card",
7
9
  "CardHeader",
8
10
  "CardInner",
9
11
  "Checkbox",
10
12
  "Combobox",
13
+ "DatePicker",
14
+ "DatePickerBase",
15
+ "DatePickerInner",
16
+ "DatePickerPopup",
11
17
  "DevTools",
18
+ "DelayedSwitch",
19
+ "Dialog",
12
20
  "Icon",
13
21
  "Input",
14
22
  "InputBase",
15
23
  "Label",
24
+ "InnerLoading",
16
25
  "LoadingIndicator",
17
26
  "Menu",
18
27
  "MenuItem",
19
28
  "OverflowContainer",
20
29
  "Pagination",
21
30
  "Popover",
31
+ "ProgressBar",
22
32
  "RadioGroup",
23
33
  "Select",
24
34
  "SelectBase",
25
35
  "Slider",
26
36
  "Tabs"
27
37
  ];
28
- const n = u, d = a({
38
+ const n = i, s = a({
29
39
  meta: {
30
40
  name: "vunor/nuxt",
31
41
  configKey: "vunor",
@@ -50,5 +60,5 @@ const n = u, d = a({
50
60
  }
51
61
  });
52
62
  export {
53
- d as default
63
+ s as default
54
64
  };
package/dist/theme.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import { PresetFactory } from 'unocss';
2
2
  import { Theme } from '@unocss/preset-mini';
3
+ import { TVunorPaletteColor as TVunorPaletteColor_2 } from './palitra';
4
+ import { TVunorSurfaceConfig as TVunorSurfaceConfig_2 } from './palitra';
3
5
 
4
6
  export declare const defineShortcuts: (sc: TVunorShortcut) => TVunorShortcut;
5
7
 
@@ -30,24 +32,23 @@ declare const themeFactory: (opts: Required<TVunorUnoPresetOpts> & {
30
32
  palette?: TVunorPaletteOptions;
31
33
  }) => {
32
34
  paletteOpts: Required<TVunorPaletteOptions & {
33
- colors: TVunorPaletteColor;
35
+ colors: TVunorPaletteColor_2;
34
36
  }>;
35
37
  theme: {
36
38
  colors: {
37
- [x: string]: string;
39
+ [x: string]: string | undefined;
38
40
  };
39
- surfaces: Record<string, TVunorSurfaceConfig>;
40
- borderColor: string;
41
- reverseLightLayers: boolean;
42
- reverseDarkLayers: boolean;
41
+ surfaces: Record<string, TVunorSurfaceConfig_2>;
42
+ reverseLightLayers: boolean | undefined;
43
+ reverseDarkLayers: boolean | undefined;
43
44
  lineHeight: {
44
45
  fingertip: string;
45
46
  'fingertip-half': string;
46
- 'fingertip-xs': string;
47
- 'fingertip-s': string;
48
- 'fingertip-m': string;
49
- 'fingertip-l': string;
50
- 'fingertip-xl': string;
47
+ 'fingertip-xs': string | undefined;
48
+ 'fingertip-s': string | undefined;
49
+ 'fingertip-m': string | undefined;
50
+ 'fingertip-l': string | undefined;
51
+ 'fingertip-xl': string | undefined;
51
52
  };
52
53
  spacing: Record<string, string>;
53
54
  fontWeight: Record<string, string>;
@@ -67,22 +68,9 @@ declare const themeFactory: (opts: Required<TVunorUnoPresetOpts> & {
67
68
  base: string;
68
69
  };
69
70
  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
- };
71
+ durations?: Record<string, string>;
72
+ animation?: Record<string, string>;
73
+ keyframes?: Record<string, string>;
86
74
  };
87
75
  };
88
76
  };
@@ -331,6 +319,11 @@ declare interface TVunorUnoPresetOpts {
331
319
  xl?: string;
332
320
  };
333
321
  baseRadius?: string;
322
+ animation?: {
323
+ durations?: Record<string, string>;
324
+ animation?: Record<string, string>;
325
+ keyframes?: Record<string, string>;
326
+ };
334
327
  }
335
328
 
336
329
  /**