@roku-ui/vue 0.29.0 → 0.30.0

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 (50) hide show
  1. package/dist/components/AppShell.vue.d.ts +0 -3
  2. package/dist/components/AppShellAside.vue.d.ts +26 -0
  3. package/dist/components/AppShellFooter.vue.d.ts +26 -0
  4. package/dist/components/AppShellHeader.vue.d.ts +26 -0
  5. package/dist/components/AppShellMain.vue.d.ts +26 -0
  6. package/dist/components/AppShellNavbar.vue.d.ts +26 -0
  7. package/dist/components/Avatar.vue.d.ts +0 -3
  8. package/dist/components/Btn.vue.d.ts +0 -2
  9. package/dist/components/BtnGroup.vue.d.ts +2 -1
  10. package/dist/components/Calendar.vue.d.ts +0 -5
  11. package/dist/components/ColorInput.vue.d.ts +1 -1
  12. package/dist/components/Menu.vue.d.ts +10 -2
  13. package/dist/components/Notification.vue.d.ts +2 -5
  14. package/dist/components/NotificationSystem.vue.d.ts +1 -1
  15. package/dist/components/NumberField.vue.d.ts +49 -0
  16. package/dist/components/Paper.vue.d.ts +2 -1
  17. package/dist/components/PinInput.vue.d.ts +9 -4
  18. package/dist/components/Popover.vue.d.ts +2 -0
  19. package/dist/components/Rating.vue.d.ts +16 -14
  20. package/dist/components/Step.vue.d.ts +4 -2
  21. package/dist/components/Switch.vue.d.ts +0 -2
  22. package/dist/components/TextField.vue.d.ts +14 -1
  23. package/dist/components/TreeList.vue.d.ts +1 -21
  24. package/dist/components/index.d.ts +6 -0
  25. package/dist/composables/index.d.ts +8 -9
  26. package/dist/index.css +2 -1
  27. package/dist/index.d.ts +2 -1
  28. package/dist/index.js +10035 -9632
  29. package/dist/index.umd.cjs +4 -4
  30. package/dist/shared/color-helpers.d.ts +9 -0
  31. package/dist/shared/color-system.d.ts +10 -61
  32. package/dist/shared/constants.d.ts +79 -21
  33. package/dist/shared/container-styles.d.ts +8 -0
  34. package/dist/shared/style-recipes.d.ts +20 -0
  35. package/dist/shared/theme.d.ts +40 -36
  36. package/dist/test/demo/CSSVarDemo.vue.d.ts +2 -0
  37. package/dist/test/demo/MenuDemo.vue.d.ts +2 -0
  38. package/dist/test/demo/NumberFieldDemo.vue.d.ts +2 -0
  39. package/dist/test/demoPages.d.ts +140 -0
  40. package/dist/test/router.d.ts +3 -0
  41. package/dist/test.d.ts +0 -1
  42. package/dist/types/index.d.ts +25 -3
  43. package/dist/utils/index.d.ts +17 -7
  44. package/dist/utils/modals.d.ts +0 -5
  45. package/dist/utils/notifications.d.ts +2 -1
  46. package/dist/utils/symbols.d.ts +0 -1
  47. package/dist/utils/tailwindPalettes.d.ts +22 -0
  48. package/dist/vite/index.d.ts +11 -0
  49. package/package.json +23 -21
  50. package/dist/vite.svg +0 -1
@@ -0,0 +1,9 @@
1
+ import { Color as CuloriColor } from 'culori';
2
+ /**
3
+ * Safely format a Culori color to hex; returns fallback when color is undefined
4
+ */
5
+ export declare function safeHex(c: CuloriColor | undefined, fallback?: string): string;
6
+ /**
7
+ * Safely format a Culori color with alpha override to hex8; returns fallback when color is undefined
8
+ */
9
+ export declare function safeHex8(c: CuloriColor | undefined, alpha: number, fallback?: string): string;
@@ -1,35 +1,6 @@
1
1
  import { Color as CuloriColor } from 'culori';
2
2
  import { MaybeRef } from 'vue';
3
3
  import { Color, InputVariant } from '../types';
4
- export declare const primaryColors: import('vue').ComputedRef<{
5
- mode: "hsl";
6
- h: number | undefined;
7
- s: number;
8
- l: number;
9
- alpha: number | undefined;
10
- }[]>;
11
- export declare const secondaryColors: import('vue').ComputedRef<{
12
- mode: "hsl";
13
- h: number | undefined;
14
- s: number;
15
- l: number;
16
- alpha: number | undefined;
17
- }[]>;
18
- export declare const tertiaryColors: import('vue').ComputedRef<{
19
- mode: "hsl";
20
- h: number | undefined;
21
- s: number;
22
- l: number;
23
- alpha: number | undefined;
24
- }[]>;
25
- export declare const errorColors: import('vue').ComputedRef<{
26
- mode: "hsl";
27
- h: number | undefined;
28
- s: number;
29
- l: number;
30
- alpha: number | undefined;
31
- }[]>;
32
- export declare const surfaceColors: import('vue').ComputedRef<any[]>;
33
4
  export declare function useColors(color: MaybeRef<Color>, lightnessMap?: number[]): import('vue').ComputedRef<CuloriColor[]>;
34
5
  export declare function useSurfaceColors(): import('vue').ComputedRef<any[]>;
35
6
  export declare function useTextCS(color: MaybeRef<Color>): import('vue').ComputedRef<CS>;
@@ -38,50 +9,28 @@ export type CSIndex = number | {
38
9
  dark: number;
39
10
  light: number;
40
11
  };
12
+ export type CSAlpha = number | {
13
+ dark?: number;
14
+ light?: number;
15
+ };
41
16
  export interface CSOptions {
42
17
  color: MaybeRef<Color | 'surface'>;
43
18
  type: CSType;
44
19
  index: CSIndex;
45
- alpha?: number;
20
+ alpha?: CSAlpha;
46
21
  }
47
22
  export interface CS {
48
23
  style: Record<string, string>;
49
24
  class: string[] | string;
50
25
  }
51
- export declare function getCSInner(colors: CuloriColor[], type: CSType, darkIndex: number, lightIndex: number, alpha?: number): CS;
26
+ export declare function getCSInner(colors: CuloriColor[], type: CSType, darkIndex: number, lightIndex: number, alpha?: CSAlpha): CS;
52
27
  export declare function useCS(cs: CSOptions): import('vue').ComputedRef<CS>;
53
- export declare function useColorCS(color: MaybeRef<Color>, type: CSType, index: CSIndex, alpha?: number): import('vue').ComputedRef<CS>;
54
- export declare function useSurfaceCS(type: CSType, index: CSIndex, alpha?: number): import('vue').ComputedRef<CS>;
28
+ export declare function useColorCS(color: MaybeRef<Color>, type: CSType, index: CSIndex, alpha?: CSAlpha): import('vue').ComputedRef<CS>;
29
+ export declare function useSurfaceCS(type: CSType, index: CSIndex, alpha?: CSAlpha): import('vue').ComputedRef<CS>;
55
30
  export declare function useOutlineCS(color: MaybeRef<Color>): import('vue').ComputedRef<CS>;
56
- export declare function useMergedCS(...cs: ReturnType<typeof useCS>[]): import('vue').ComputedRef<{
31
+ export declare function useMergedCS(csList: ReturnType<typeof useCS>[], extraClass?: string[]): import('vue').ComputedRef<{
57
32
  style: Record<string, string>;
58
33
  class: string[];
59
34
  }>;
60
35
  export declare const borderCS: import('vue').ComputedRef<CS>;
61
- export declare function useInputColorStyle(color: MaybeRef<string>, variant?: MaybeRef<InputVariant>): import('vue').ComputedRef<{
62
- '--d-bg': string;
63
- '--d-border-f': string;
64
- '--d-border': string;
65
- '--d-placeholder': string;
66
- '--d-text': string;
67
- '--l-bg': string;
68
- '--l-border-f': string;
69
- '--l-border': string;
70
- '--l-placeholder': string;
71
- '--l-text': string;
72
- '--d-bg-h'?: undefined;
73
- '--l-bg-h'?: undefined;
74
- } | {
75
- '--d-bg': string;
76
- '--d-bg-h': string;
77
- '--d-border': string;
78
- '--l-bg': string;
79
- '--l-bg-h': string;
80
- '--l-border': string;
81
- '--d-border-f'?: undefined;
82
- '--d-placeholder'?: undefined;
83
- '--d-text'?: undefined;
84
- '--l-border-f'?: undefined;
85
- '--l-placeholder'?: undefined;
86
- '--l-text'?: undefined;
87
- }>;
36
+ export declare function useInputColorStyle(color: MaybeRef<string>, variant?: MaybeRef<InputVariant>): import('vue').ComputedRef<Record<string, string>>;
@@ -1,21 +1,79 @@
1
- export declare const darkSurfaceBgIndex = 9;
2
- export declare const darkSurfaceBgVariant1Index = 8;
3
- export declare const darkSurfaceBgVariant2Index = 7;
4
- export declare const darkBorderIndex = 7;
5
- export declare const darkBorderVariantIndex = 7;
6
- export declare const darkTextIndex = 3;
7
- export declare const darkTextVariantIndex = 6;
8
- export declare const darkBgIndex = 5;
9
- export declare const darkBgVariantIndex = 6;
10
- export declare const lightBorderIndex = 3;
11
- export declare const lightBorderVariantIndex = 4;
12
- export declare const darkOpacity = 0.25;
13
- export declare const darkOpacityVariant = 0.3;
14
- export declare const lightSurfaceBgIndex = 1;
15
- export declare const lightSurfaceBgVariantIndex = 2;
16
- export declare const lightTextIndex = 6;
17
- export declare const lightTextVariantIndex = 5;
18
- export declare const lightBgIndex = 4;
19
- export declare const lightBgVariantIndex = 5;
20
- export declare const lightOpacity = 0.08;
21
- export declare const lightOpacityVariant = 0.15;
1
+ export declare const SURFACE_BG: {
2
+ readonly base: {
3
+ readonly dark: 9;
4
+ readonly light: 0;
5
+ };
6
+ readonly container: {
7
+ readonly dark: 8;
8
+ readonly light: 0;
9
+ };
10
+ readonly containerHover: {
11
+ readonly dark: 7;
12
+ readonly light: 1;
13
+ };
14
+ readonly inverted: {
15
+ readonly dark: 1;
16
+ readonly light: 9;
17
+ };
18
+ };
19
+ export declare const SURFACE_BORDER: {
20
+ readonly base: {
21
+ readonly dark: 7;
22
+ readonly light: 3;
23
+ };
24
+ readonly subtle: {
25
+ readonly dark: 6;
26
+ readonly light: 4;
27
+ };
28
+ readonly inverted: {
29
+ readonly dark: 2;
30
+ readonly light: 7;
31
+ };
32
+ };
33
+ export declare const SURFACE_TEXT: {
34
+ readonly muted: {
35
+ readonly dark: 6;
36
+ readonly light: 5;
37
+ };
38
+ readonly inverted: {
39
+ readonly dark: 9;
40
+ readonly light: 0;
41
+ };
42
+ };
43
+ export declare const COLOR_BG: {
44
+ readonly solid: {
45
+ readonly dark: 7;
46
+ readonly light: 6;
47
+ };
48
+ readonly hover: {
49
+ readonly dark: 6;
50
+ readonly light: 5;
51
+ };
52
+ };
53
+ export declare const COLOR_BORDER: {
54
+ readonly solid: {
55
+ readonly dark: 7;
56
+ readonly light: 3;
57
+ };
58
+ };
59
+ export declare const COLOR_TEXT: {
60
+ readonly solid: {
61
+ readonly dark: 4;
62
+ readonly light: 6;
63
+ };
64
+ readonly hover: {
65
+ readonly dark: 2;
66
+ readonly light: 5;
67
+ };
68
+ };
69
+ export declare const COLOR_TINT_INDEX = 3;
70
+ export declare const OPACITY_SCALE: {
71
+ readonly dark: {
72
+ readonly tint: 0.15;
73
+ readonly tintHover: 0.3;
74
+ };
75
+ readonly light: {
76
+ readonly tint: 0.1;
77
+ readonly tintHover: 0.15;
78
+ };
79
+ };
@@ -24,3 +24,11 @@ export declare function useContainerLightCS(color: MaybeRef<Color>): import('vue
24
24
  style: Record<string, string>;
25
25
  class: string[];
26
26
  }>;
27
+ export declare function useContainerOutlineCS(color: MaybeRef<Color>): import('vue').ComputedRef<{
28
+ style: Record<string, string>;
29
+ class: string[];
30
+ }>;
31
+ export declare function useContainerInvertedCS(): import('vue').ComputedRef<{
32
+ style: Record<string, string>;
33
+ class: string[];
34
+ }>;
@@ -0,0 +1,20 @@
1
+ import { Color as CuloriColor } from 'culori';
2
+ export interface PaletteCollection {
3
+ color: CuloriColor[];
4
+ [key: string]: CuloriColor[];
5
+ }
6
+ interface PaletteTokenConfig {
7
+ palette?: string;
8
+ index: number;
9
+ format?: 'hex' | 'hex8';
10
+ alpha?: number;
11
+ fallback?: string;
12
+ }
13
+ interface LiteralTokenConfig {
14
+ source: 'literal';
15
+ value: string;
16
+ }
17
+ export type VariantTokenConfig = PaletteTokenConfig | LiteralTokenConfig;
18
+ export type VariantStyleConfig = Record<string, VariantTokenConfig>;
19
+ export declare function buildVariantStyles(config: VariantStyleConfig, palettes: PaletteCollection): Record<string, string>;
20
+ export {};
@@ -1,102 +1,106 @@
1
1
  import { ComputedRef } from 'vue';
2
- import { Rounded } from '../types';
2
+ import { Color, Rounded, Size } from '../types';
3
+ export type ThemeColorValue = string | readonly [string, ...string[]];
3
4
  export interface ThemeColors {
4
- primary?: string;
5
- secondary?: string;
6
- tertiary?: string;
7
- error?: string;
8
- surface?: string;
5
+ primary?: ThemeColorValue;
6
+ secondary?: ThemeColorValue;
7
+ tertiary?: ThemeColorValue;
8
+ success?: ThemeColorValue;
9
+ info?: ThemeColorValue;
10
+ warning?: ThemeColorValue;
11
+ error?: ThemeColorValue;
12
+ surface?: ThemeColorValue;
9
13
  }
10
14
  export interface ComponentDefaults {
11
15
  Btn?: {
12
- size?: 'sm' | 'md' | 'lg';
16
+ size?: Size;
13
17
  variant?: import('../types').BtnVariant;
14
18
  color?: string;
15
19
  rounded?: Rounded;
16
20
  pressEffect?: 'translate' | 'scale';
17
21
  };
18
22
  TextField?: {
19
- size?: 'sm' | 'md' | 'lg';
20
- color?: 'primary' | 'secondary' | 'tertiary' | 'error';
23
+ size?: Size;
24
+ color?: Color;
21
25
  rounded?: Rounded;
22
26
  };
23
27
  Switch?: {
24
- size?: 'sm' | 'md' | 'lg';
25
- color?: 'primary' | 'secondary' | 'tertiary' | 'error';
28
+ size?: Size;
29
+ color?: Color;
26
30
  };
27
31
  Select?: {
28
- size?: 'sm' | 'md' | 'lg';
29
- color?: 'primary' | 'secondary' | 'tertiary' | 'error';
32
+ size?: Size;
33
+ color?: Color;
30
34
  rounded?: Rounded;
31
35
  };
32
36
  Checkbox?: {
33
- size?: 'sm' | 'md' | 'lg';
34
- color?: 'primary' | 'secondary' | 'tertiary' | 'error';
37
+ size?: Size;
38
+ color?: Color;
35
39
  rounded?: Rounded;
36
40
  };
37
41
  Paper?: {
38
42
  variant?: import('../types').ContainerVariant;
39
- color?: string;
43
+ color?: Color;
40
44
  rounded?: Rounded;
41
45
  };
42
46
  Progress?: {
43
- size?: 'sm' | 'md' | 'lg';
44
- color?: 'primary' | 'secondary' | 'tertiary' | 'error';
47
+ size?: Size;
48
+ color?: Color;
45
49
  };
46
50
  Rating?: {
47
- size?: 'sm' | 'md' | 'lg';
48
- color?: 'primary' | 'secondary' | 'tertiary' | 'error';
51
+ size?: Size;
52
+ color?: Color;
49
53
  };
50
54
  Slider?: {
51
- size?: 'sm' | 'md' | 'lg';
52
- color?: 'primary' | 'secondary' | 'tertiary' | 'error';
55
+ size?: Size;
56
+ color?: Color;
53
57
  };
54
58
  Avatar?: {
55
- size?: 'sm' | 'md' | 'lg';
56
- color?: string;
59
+ size?: Size;
60
+ color?: Color;
57
61
  rounded?: Rounded;
58
62
  };
59
63
  Tag?: {
60
- size?: 'sm' | 'md' | 'lg';
64
+ size?: Size;
61
65
  variant?: import('../types').ContainerVariant;
62
66
  color?: string;
63
67
  rounded?: Rounded;
64
68
  };
65
69
  Chip?: {
66
- size?: 'sm' | 'md' | 'lg';
70
+ size?: Size;
67
71
  variant?: import('../types').ContainerVariant;
68
72
  color?: string;
69
73
  rounded?: Rounded;
70
74
  };
71
75
  Modal?: {
72
- size?: 'sm' | 'md' | 'lg';
76
+ size?: Size;
73
77
  rounded?: Rounded;
74
78
  };
75
79
  Drawer?: {
76
- size?: 'sm' | 'md' | 'lg';
80
+ size?: Size;
77
81
  };
78
82
  Notification?: {
79
- color?: 'primary' | 'secondary' | 'tertiary' | 'error';
83
+ color?: Color;
80
84
  rounded?: Rounded;
81
85
  };
82
86
  ColorInput?: {
83
- size?: 'sm' | 'md' | 'lg';
87
+ size?: Size;
84
88
  rounded?: Rounded;
85
89
  };
86
90
  CalendarInput?: {
87
- size?: 'sm' | 'md' | 'lg';
91
+ size?: Size;
88
92
  rounded?: Rounded;
89
93
  };
90
94
  PinInput?: {
91
- size?: 'sm' | 'md' | 'lg';
95
+ size?: Size;
92
96
  rounded?: Rounded;
93
97
  };
94
98
  Dropzone?: {
95
99
  rounded?: Rounded;
96
100
  };
97
101
  Step?: {
98
- size?: 'sm' | 'md' | 'lg';
99
- color?: 'primary' | 'secondary' | 'tertiary' | 'error';
102
+ size?: Size;
103
+ color?: Color;
100
104
  direction?: 'horizontal' | 'vertical';
101
105
  type?: 'default' | 'navigation' | 'dot' | 'simple';
102
106
  };
@@ -105,8 +109,8 @@ export interface ThemeData {
105
109
  withBorder: boolean;
106
110
  rounded: Rounded;
107
111
  colors: ThemeColors;
108
- defaultSize: 'sm' | 'md' | 'lg';
109
- defaultColor: 'primary' | 'secondary' | 'tertiary' | 'error';
112
+ defaultSize: Size;
113
+ defaultColor: Color;
110
114
  componentDefaults?: ComponentDefaults;
111
115
  }
112
116
  export declare const defaultThemeData: ThemeData;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ export default _default;
@@ -0,0 +1,140 @@
1
+ export declare const demoPages: readonly [{
2
+ readonly key: "CSSVars";
3
+ readonly title: "CSS Variables";
4
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
5
+ }, {
6
+ readonly key: "AppShell";
7
+ readonly title: "App Shell";
8
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
9
+ }, {
10
+ readonly key: "Avatar";
11
+ readonly title: "Avatar";
12
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
13
+ }, {
14
+ readonly key: "Button";
15
+ readonly title: "Button";
16
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
17
+ }, {
18
+ readonly key: "Calendar";
19
+ readonly title: "Calendar";
20
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
21
+ }, {
22
+ readonly key: "CalendarInput";
23
+ readonly title: "Calendar Input";
24
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
25
+ }, {
26
+ readonly key: "Chat";
27
+ readonly title: "Chat";
28
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
29
+ }, {
30
+ readonly key: "ComponentDefaults";
31
+ readonly title: "Component Defaults";
32
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
33
+ }, {
34
+ readonly key: "Form";
35
+ readonly title: "Form Controls";
36
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
37
+ }, {
38
+ readonly key: "Layout";
39
+ readonly title: "Layout";
40
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
41
+ }, {
42
+ readonly key: "Media";
43
+ readonly title: "Media & Colors";
44
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
45
+ }, {
46
+ readonly key: "Menu";
47
+ readonly title: "Menu";
48
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
49
+ }, {
50
+ readonly key: "Modal";
51
+ readonly title: "Modal & Drawer";
52
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
53
+ }, {
54
+ readonly key: "NumberField";
55
+ readonly title: "NumberField";
56
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
57
+ }, {
58
+ readonly key: "ModernColor";
59
+ readonly title: "Modern Color System";
60
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
61
+ }, {
62
+ readonly key: "Navigation";
63
+ readonly title: "Navigation";
64
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
65
+ }, {
66
+ readonly key: "Notification";
67
+ readonly title: "Notification";
68
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
69
+ }, {
70
+ readonly key: "PartialColors";
71
+ readonly title: "Partial Colors";
72
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
73
+ }, {
74
+ readonly key: "Popover";
75
+ readonly title: "Popover";
76
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
77
+ }, {
78
+ readonly key: "Progress";
79
+ readonly title: "Progress";
80
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
81
+ }, {
82
+ readonly key: "Rating";
83
+ readonly title: "Rating";
84
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
85
+ }, {
86
+ readonly key: "Select";
87
+ readonly title: "Select";
88
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
89
+ }, {
90
+ readonly key: "SelectArea";
91
+ readonly title: "Select Area";
92
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
93
+ areaRef: HTMLDivElement;
94
+ }, HTMLDivElement>;
95
+ }, {
96
+ readonly key: "Step";
97
+ readonly title: "Step";
98
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
99
+ }, {
100
+ readonly key: "Tags";
101
+ readonly title: "Tags";
102
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
103
+ }, {
104
+ readonly key: "TextField";
105
+ readonly title: "TextField";
106
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
107
+ }, {
108
+ readonly key: "ThemeManager";
109
+ readonly title: "Theme Manager";
110
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
111
+ }, {
112
+ readonly key: "Tooltip";
113
+ readonly title: "Tooltip";
114
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
115
+ }, {
116
+ readonly key: "Waterfall";
117
+ readonly title: "Waterfall";
118
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
119
+ }, {
120
+ readonly key: "Slider";
121
+ readonly title: "Slider";
122
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
123
+ }, {
124
+ readonly key: "Switch";
125
+ readonly title: "Switch";
126
+ readonly component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
127
+ }];
128
+ export type DemoRouteName = typeof demoPages[number]['key'];
129
+ export declare const demoRoutes: {
130
+ path: string;
131
+ name: "AppShell" | "Avatar" | "Calendar" | "CalendarInput" | "Menu" | "Modal" | "Notification" | "NumberField" | "Popover" | "Progress" | "Rating" | "Select" | "SelectArea" | "Slider" | "Step" | "Switch" | "TextField" | "Tooltip" | "Waterfall" | "CSSVars" | "Button" | "Chat" | "ComponentDefaults" | "Form" | "Layout" | "Media" | "ModernColor" | "Navigation" | "PartialColors" | "Tags" | "ThemeManager";
132
+ component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
133
+ areaRef: HTMLDivElement;
134
+ }, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
135
+ meta: {
136
+ title: "Avatar" | "Calendar" | "Menu" | "Notification" | "NumberField" | "Popover" | "Progress" | "Rating" | "Select" | "Slider" | "Step" | "Switch" | "TextField" | "Tooltip" | "Waterfall" | "CSS Variables" | "App Shell" | "Button" | "Calendar Input" | "Chat" | "Component Defaults" | "Form Controls" | "Layout" | "Media & Colors" | "Modal & Drawer" | "Modern Color System" | "Navigation" | "Partial Colors" | "Select Area" | "Tags" | "Theme Manager";
137
+ };
138
+ }[];
139
+ export declare const defaultDemoRouteName: "CSSVars";
140
+ export declare function isDemoRouteName(value: string | null | undefined): value is DemoRouteName;
@@ -0,0 +1,3 @@
1
+ export declare const router: import('vue-router').Router;
2
+ export type { DemoRouteName } from './demoPages';
3
+ export { demoRoutes } from './demoPages';
package/dist/test.d.ts CHANGED
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +1,35 @@
1
- export type BtnVariant = 'filled' | 'default' | 'light' | 'outline' | 'subtle' | 'transparent' | 'contrast' | 'white';
2
- export type ContainerVariant = 'filled' | 'default' | 'light' | 'outline' | 'white';
1
+ import { Component } from 'vue';
2
+ export type ContainerVariant = 'filled' | 'default' | 'light' | 'outline' | 'inverted';
3
+ export type BtnVariant = ContainerVariant | 'subtle' | 'transparent' | 'contrast';
3
4
  export type InputVariant = 'default' | 'filled';
4
5
  export type CalendarMode = 'single' | 'multiple' | 'range';
5
- export type Color = 'primary' | 'secondary' | 'tertiary' | 'error' | 'surface' | string;
6
+ export type DefinedColor = 'primary' | 'secondary' | 'tertiary' | 'success' | 'error' | 'info' | 'warning';
7
+ export type Color = DefinedColor | string;
6
8
  export type Size = 'sm' | 'md' | 'lg';
7
9
  export type Rounded = 'none' | 'sm' | 'md' | 'lg' | 'full' | string | number;
10
+ export type IconSource = string | Component;
8
11
  export interface Area {
9
12
  left: number;
10
13
  top: number;
11
14
  right: number;
12
15
  bottom: number;
13
16
  }
17
+ export interface TreeListLeafData {
18
+ icon?: IconSource;
19
+ title: string;
20
+ value: string;
21
+ attrs?: Record<string, any>;
22
+ is?: string | Component;
23
+ }
24
+ export interface TreeListHeaderData {
25
+ icon?: IconSource;
26
+ title: string;
27
+ }
28
+ export interface TreeListCollapseData {
29
+ title: string;
30
+ icon?: IconSource;
31
+ value?: string;
32
+ children?: TreeListItemData[];
33
+ open?: boolean;
34
+ }
35
+ export type TreeListItemData = TreeListLeafData | TreeListHeaderData | TreeListCollapseData;