@solfacil/girassol 0.2.1 → 0.2.5
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/components.d.ts +3 -0
- package/dist/components.json +1 -1
- package/dist/girassol.es.js +962 -708
- package/dist/girassol.umd.js +6 -5
- package/dist/style.css +1 -1
- package/dist/theme/solfacil/miscs.d.ts +124 -0
- package/dist/theme/solfacil/spacing.d.ts +58 -44
- package/dist/types/components/forms/button/Button.vue.d.ts +8 -4
- package/dist/types/components/forms/button/ButtonDestructive.vue.d.ts +73 -0
- package/dist/types/components/forms/button/index.d.ts +2 -1
- package/dist/types/components/forms/textarea/Textarea.vue.d.ts +4 -4
- package/dist/types/components/loader/CircleLoader.vue.d.ts +86 -0
- package/dist/types/components/menu/Menu.vue.d.ts +112 -0
- package/dist/types/components/menu/index.d.ts +2 -0
- package/dist/types/components/menu/menu.spec.d.ts +1 -0
- package/dist/types/components/menu-item/MenuItemLink.vue.d.ts +87 -0
- package/dist/types/components/menu-item/index.d.ts +2 -0
- package/dist/types/composables/use-navigate/index.d.ts +20 -0
- package/dist/types/composables/use-navigate/types.d.ts +19 -0
- package/dist/types/composables/use-toast/Toast.vue.d.ts +4 -4
- package/dist/types/index.d.ts +388 -29
- package/package.json +1 -1
- package/theme/safelist.ts +2 -0
- package/theme/solfacil/miscs.ts +12 -1
- package/theme/solfacil/spacing.ts +27 -50
- package/theme/solfacil/utilities.ts +59 -97
- package/windi.config.ts +3 -1
|
@@ -3,20 +3,21 @@ declare const _default: {
|
|
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
|
4
4
|
$data: {};
|
|
5
5
|
$props: Partial<{
|
|
6
|
-
onColor: boolean;
|
|
7
6
|
size: 'small' | 'medium' | 'large';
|
|
7
|
+
onColor: boolean;
|
|
8
8
|
variant: 'primary' | 'secondary' | 'tertiary';
|
|
9
9
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
10
|
id: string;
|
|
11
11
|
loading?: boolean | undefined;
|
|
12
12
|
onColor?: boolean | undefined;
|
|
13
|
+
disabled?: boolean | undefined;
|
|
13
14
|
size?: "small" | "large" | "medium" | undefined;
|
|
14
15
|
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
15
16
|
}>, {
|
|
16
17
|
variant: string;
|
|
17
18
|
size: string;
|
|
18
19
|
onColor: boolean;
|
|
19
|
-
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
20
|
+
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "onColor" | "variant">;
|
|
20
21
|
$attrs: {
|
|
21
22
|
[x: string]: unknown;
|
|
22
23
|
};
|
|
@@ -34,6 +35,7 @@ declare const _default: {
|
|
|
34
35
|
id: string;
|
|
35
36
|
loading?: boolean | undefined;
|
|
36
37
|
onColor?: boolean | undefined;
|
|
38
|
+
disabled?: boolean | undefined;
|
|
37
39
|
size?: "small" | "large" | "medium" | undefined;
|
|
38
40
|
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
39
41
|
}>, {
|
|
@@ -41,8 +43,8 @@ declare const _default: {
|
|
|
41
43
|
size: string;
|
|
42
44
|
onColor: boolean;
|
|
43
45
|
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
44
|
-
onColor: boolean;
|
|
45
46
|
size: 'small' | 'medium' | 'large';
|
|
47
|
+
onColor: boolean;
|
|
46
48
|
variant: 'primary' | 'secondary' | 'tertiary';
|
|
47
49
|
}> & {
|
|
48
50
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -68,6 +70,7 @@ declare const _default: {
|
|
|
68
70
|
id: string;
|
|
69
71
|
loading?: boolean | undefined;
|
|
70
72
|
onColor?: boolean | undefined;
|
|
73
|
+
disabled?: boolean | undefined;
|
|
71
74
|
size?: "small" | "large" | "medium" | undefined;
|
|
72
75
|
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
73
76
|
}>, {
|
|
@@ -82,6 +85,7 @@ declare const _default: {
|
|
|
82
85
|
id: string;
|
|
83
86
|
loading?: boolean | undefined;
|
|
84
87
|
onColor?: boolean | undefined;
|
|
88
|
+
disabled?: boolean | undefined;
|
|
85
89
|
size?: "small" | "large" | "medium" | undefined;
|
|
86
90
|
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
87
91
|
}>, {
|
|
@@ -89,8 +93,8 @@ declare const _default: {
|
|
|
89
93
|
size: string;
|
|
90
94
|
onColor: boolean;
|
|
91
95
|
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
92
|
-
onColor: boolean;
|
|
93
96
|
size: 'small' | 'medium' | 'large';
|
|
97
|
+
onColor: boolean;
|
|
94
98
|
variant: 'primary' | 'secondary' | 'tertiary';
|
|
95
99
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
96
100
|
$slots: {
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
id: string;
|
|
7
|
+
size: 'small' | 'medium' | 'large';
|
|
8
|
+
loading?: boolean | undefined;
|
|
9
|
+
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
10
|
+
$attrs: {
|
|
11
|
+
[x: string]: unknown;
|
|
12
|
+
};
|
|
13
|
+
$refs: {
|
|
14
|
+
[x: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
$slots: Readonly<{
|
|
17
|
+
[name: string]: import("vue").Slot | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
20
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
21
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
22
|
+
$el: any;
|
|
23
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
24
|
+
id: string;
|
|
25
|
+
size: 'small' | 'medium' | 'large';
|
|
26
|
+
loading?: boolean | undefined;
|
|
27
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
|
|
28
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
29
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
30
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
41
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
42
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
43
|
+
};
|
|
44
|
+
$forceUpdate: () => void;
|
|
45
|
+
$nextTick: typeof import("vue").nextTick;
|
|
46
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
47
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
48
|
+
id: string;
|
|
49
|
+
size: 'small' | 'medium' | 'large';
|
|
50
|
+
loading?: boolean | undefined;
|
|
51
|
+
}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
52
|
+
__isFragment?: undefined;
|
|
53
|
+
__isTeleport?: undefined;
|
|
54
|
+
__isSuspense?: undefined;
|
|
55
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
56
|
+
id: string;
|
|
57
|
+
size: 'small' | 'medium' | 'large';
|
|
58
|
+
loading?: boolean | undefined;
|
|
59
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
60
|
+
$slots: {
|
|
61
|
+
default: (_: {}) => any;
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
export default _default;
|
|
65
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
66
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
67
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
68
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
69
|
+
} : {
|
|
70
|
+
type: import('vue').PropType<T[K]>;
|
|
71
|
+
required: true;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
label?: string | undefined;
|
|
14
14
|
hint?: string | undefined;
|
|
15
15
|
invert?: boolean | undefined;
|
|
16
|
-
resize?: "
|
|
16
|
+
resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
|
|
17
17
|
error?: string | undefined;
|
|
18
18
|
}>, {
|
|
19
19
|
modelValue: string;
|
|
@@ -42,7 +42,7 @@ declare const _default: {
|
|
|
42
42
|
label?: string | undefined;
|
|
43
43
|
hint?: string | undefined;
|
|
44
44
|
invert?: boolean | undefined;
|
|
45
|
-
resize?: "
|
|
45
|
+
resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
|
|
46
46
|
error?: string | undefined;
|
|
47
47
|
}>, {
|
|
48
48
|
modelValue: string;
|
|
@@ -83,7 +83,7 @@ declare const _default: {
|
|
|
83
83
|
label?: string | undefined;
|
|
84
84
|
hint?: string | undefined;
|
|
85
85
|
invert?: boolean | undefined;
|
|
86
|
-
resize?: "
|
|
86
|
+
resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
|
|
87
87
|
error?: string | undefined;
|
|
88
88
|
}>, {
|
|
89
89
|
modelValue: string;
|
|
@@ -102,7 +102,7 @@ declare const _default: {
|
|
|
102
102
|
label?: string | undefined;
|
|
103
103
|
hint?: string | undefined;
|
|
104
104
|
invert?: boolean | undefined;
|
|
105
|
-
resize?: "
|
|
105
|
+
resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
|
|
106
106
|
error?: string | undefined;
|
|
107
107
|
}>, {
|
|
108
108
|
modelValue: string;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{
|
|
6
|
+
size: 'small' | 'medium' | 'large';
|
|
7
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
size: 'small' | 'medium' | 'large';
|
|
9
|
+
dark?: boolean | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
size: string;
|
|
12
|
+
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size">;
|
|
13
|
+
$attrs: {
|
|
14
|
+
[x: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
$refs: {
|
|
17
|
+
[x: string]: unknown;
|
|
18
|
+
};
|
|
19
|
+
$slots: Readonly<{
|
|
20
|
+
[name: string]: import("vue").Slot | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
23
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
24
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
25
|
+
$el: any;
|
|
26
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
27
|
+
size: 'small' | 'medium' | 'large';
|
|
28
|
+
dark?: boolean | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
size: string;
|
|
31
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
32
|
+
size: 'small' | 'medium' | 'large';
|
|
33
|
+
}> & {
|
|
34
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
43
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
44
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
45
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
46
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
47
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
48
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
49
|
+
};
|
|
50
|
+
$forceUpdate: () => void;
|
|
51
|
+
$nextTick: typeof import("vue").nextTick;
|
|
52
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
53
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
54
|
+
size: 'small' | 'medium' | 'large';
|
|
55
|
+
dark?: boolean | undefined;
|
|
56
|
+
}>, {
|
|
57
|
+
size: string;
|
|
58
|
+
}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
59
|
+
__isFragment?: undefined;
|
|
60
|
+
__isTeleport?: undefined;
|
|
61
|
+
__isSuspense?: undefined;
|
|
62
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
63
|
+
size: 'small' | 'medium' | 'large';
|
|
64
|
+
dark?: boolean | undefined;
|
|
65
|
+
}>, {
|
|
66
|
+
size: string;
|
|
67
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
68
|
+
size: 'small' | 'medium' | 'large';
|
|
69
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
70
|
+
$slots: {};
|
|
71
|
+
});
|
|
72
|
+
export default _default;
|
|
73
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
74
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
75
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
76
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
77
|
+
} : {
|
|
78
|
+
type: import('vue').PropType<T[K]>;
|
|
79
|
+
required: true;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
83
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
84
|
+
default: D[K];
|
|
85
|
+
} : P[K];
|
|
86
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{
|
|
6
|
+
label: string;
|
|
7
|
+
position: ("top" | "bottom") | ("right" | "left");
|
|
8
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
id: string;
|
|
10
|
+
label?: string | undefined;
|
|
11
|
+
position?: (("top" | "bottom") | ("right" | "left")) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
label: string;
|
|
14
|
+
position: string;
|
|
15
|
+
}>>> & {
|
|
16
|
+
onChange?: ((value: string) => any) | undefined;
|
|
17
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "label" | "position">;
|
|
18
|
+
$attrs: {
|
|
19
|
+
[x: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
$refs: {
|
|
22
|
+
[x: string]: unknown;
|
|
23
|
+
};
|
|
24
|
+
$slots: Readonly<{
|
|
25
|
+
[name: string]: import("vue").Slot | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
28
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
29
|
+
$emit: (event: "change", value: string) => void;
|
|
30
|
+
$el: any;
|
|
31
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
32
|
+
id: string;
|
|
33
|
+
label?: string | undefined;
|
|
34
|
+
position?: (("top" | "bottom") | ("right" | "left")) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
label: string;
|
|
37
|
+
position: string;
|
|
38
|
+
}>>> & {
|
|
39
|
+
onChange?: ((value: string) => any) | undefined;
|
|
40
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
|
+
change: (value: string) => void;
|
|
42
|
+
}, string, {
|
|
43
|
+
label: string;
|
|
44
|
+
position: ("top" | "bottom") | ("right" | "left");
|
|
45
|
+
}> & {
|
|
46
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
47
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
48
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
49
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
50
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
51
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
52
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
53
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
54
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
55
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
56
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
57
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
58
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
59
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
60
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
61
|
+
};
|
|
62
|
+
$forceUpdate: () => void;
|
|
63
|
+
$nextTick: typeof import("vue").nextTick;
|
|
64
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
65
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
66
|
+
id: string;
|
|
67
|
+
label?: string | undefined;
|
|
68
|
+
position?: (("top" | "bottom") | ("right" | "left")) | undefined;
|
|
69
|
+
}>, {
|
|
70
|
+
label: string;
|
|
71
|
+
position: string;
|
|
72
|
+
}>>> & {
|
|
73
|
+
onChange?: ((value: string) => any) | undefined;
|
|
74
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
75
|
+
__isFragment?: undefined;
|
|
76
|
+
__isTeleport?: undefined;
|
|
77
|
+
__isSuspense?: undefined;
|
|
78
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
79
|
+
id: string;
|
|
80
|
+
label?: string | undefined;
|
|
81
|
+
position?: (("top" | "bottom") | ("right" | "left")) | undefined;
|
|
82
|
+
}>, {
|
|
83
|
+
label: string;
|
|
84
|
+
position: string;
|
|
85
|
+
}>>> & {
|
|
86
|
+
onChange?: ((value: string) => any) | undefined;
|
|
87
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
88
|
+
change: (value: string) => void;
|
|
89
|
+
}, string, {
|
|
90
|
+
label: string;
|
|
91
|
+
position: ("top" | "bottom") | ("right" | "left");
|
|
92
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
93
|
+
$slots: {
|
|
94
|
+
label: (_: {}) => any;
|
|
95
|
+
default: (_: {}) => any;
|
|
96
|
+
};
|
|
97
|
+
});
|
|
98
|
+
export default _default;
|
|
99
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
100
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
101
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
102
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
103
|
+
} : {
|
|
104
|
+
type: import('vue').PropType<T[K]>;
|
|
105
|
+
required: true;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
109
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
110
|
+
default: D[K];
|
|
111
|
+
} : P[K];
|
|
112
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
id: string;
|
|
7
|
+
text?: string | undefined;
|
|
8
|
+
link?: string | undefined;
|
|
9
|
+
active?: boolean | undefined;
|
|
10
|
+
external?: boolean | undefined;
|
|
11
|
+
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
12
|
+
$attrs: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
$refs: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
};
|
|
18
|
+
$slots: Readonly<{
|
|
19
|
+
[name: string]: import("vue").Slot | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
22
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
23
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
24
|
+
$el: any;
|
|
25
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
26
|
+
id: string;
|
|
27
|
+
text?: string | undefined;
|
|
28
|
+
link?: string | undefined;
|
|
29
|
+
active?: boolean | undefined;
|
|
30
|
+
external?: boolean | undefined;
|
|
31
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
|
|
32
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
43
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
44
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
45
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
46
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
47
|
+
};
|
|
48
|
+
$forceUpdate: () => void;
|
|
49
|
+
$nextTick: typeof import("vue").nextTick;
|
|
50
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
51
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
52
|
+
id: string;
|
|
53
|
+
text?: string | undefined;
|
|
54
|
+
link?: string | undefined;
|
|
55
|
+
active?: boolean | undefined;
|
|
56
|
+
external?: boolean | undefined;
|
|
57
|
+
}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
58
|
+
__isFragment?: undefined;
|
|
59
|
+
__isTeleport?: undefined;
|
|
60
|
+
__isSuspense?: undefined;
|
|
61
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
62
|
+
id: string;
|
|
63
|
+
text?: string | undefined;
|
|
64
|
+
link?: string | undefined;
|
|
65
|
+
active?: boolean | undefined;
|
|
66
|
+
external?: boolean | undefined;
|
|
67
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
68
|
+
$slots: {
|
|
69
|
+
default: (_: {
|
|
70
|
+
id: string;
|
|
71
|
+
active: boolean | undefined;
|
|
72
|
+
link: string | undefined;
|
|
73
|
+
text: string | undefined;
|
|
74
|
+
external: boolean | undefined;
|
|
75
|
+
}) => any;
|
|
76
|
+
};
|
|
77
|
+
});
|
|
78
|
+
export default _default;
|
|
79
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
80
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
81
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
82
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
83
|
+
} : {
|
|
84
|
+
type: import('vue').PropType<T[K]>;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Args, Codes, UseNavigateArgs } from './types';
|
|
2
|
+
export declare function useNavigate(codes: Codes, args?: UseNavigateArgs): {
|
|
3
|
+
navigate: ({ code }: KeyboardEvent) => void;
|
|
4
|
+
};
|
|
5
|
+
export declare function useNavigateProvider({ target, query }: Args): {
|
|
6
|
+
elementFocus: {
|
|
7
|
+
id: string;
|
|
8
|
+
index: number;
|
|
9
|
+
};
|
|
10
|
+
isItemFocused: (arg: {
|
|
11
|
+
index?: number;
|
|
12
|
+
id?: string;
|
|
13
|
+
}) => boolean;
|
|
14
|
+
resetStateFocus: () => void;
|
|
15
|
+
focusListItem: (index?: number) => void;
|
|
16
|
+
focusOnPreviousItem: () => void;
|
|
17
|
+
focusOnNextItem: (dataLength: number) => void;
|
|
18
|
+
focusOnFirstItem: () => void;
|
|
19
|
+
focusOnLastItem: (dataLength: number) => void;
|
|
20
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Ref, VNodeRef } from "vue";
|
|
2
|
+
declare type Arrows = 'ArrowUp' | 'ArrowDown' | 'ArrowLeft' | 'ArrowRight';
|
|
3
|
+
declare type Commands = 'Home' | 'End' | 'Space' | 'Enter' | 'NumpadEnter' | 'Escape' | 'Tab' | 'Delete' | 'Backspace';
|
|
4
|
+
declare type Numbers = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9';
|
|
5
|
+
declare type Alphabetic = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'U' | 'T' | 'W' | 'X' | 'Y' | 'Z';
|
|
6
|
+
declare type DigitNumbers = `Digit${Numbers}`;
|
|
7
|
+
declare type NumpadNumbers = `Numpad${Numbers}`;
|
|
8
|
+
declare type KeyLetters = `Key${Alphabetic}`;
|
|
9
|
+
export declare type Code = Commands | Arrows | KeyLetters | DigitNumbers | NumpadNumbers;
|
|
10
|
+
export declare type Codes = Partial<Record<Code, () => void>>;
|
|
11
|
+
export declare type UseNavigateArgs = {
|
|
12
|
+
fallback: () => void;
|
|
13
|
+
exclude?: Code | Code[];
|
|
14
|
+
};
|
|
15
|
+
export declare type Args = {
|
|
16
|
+
target: Ref<VNodeRef> | undefined;
|
|
17
|
+
query?: string;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -5,8 +5,8 @@ declare const _default: {
|
|
|
5
5
|
$data: {};
|
|
6
6
|
$props: Partial<{
|
|
7
7
|
type: ToastType;
|
|
8
|
-
offset: number;
|
|
9
8
|
position: Position;
|
|
9
|
+
offset: number;
|
|
10
10
|
visible: boolean;
|
|
11
11
|
hideProgressBar: boolean;
|
|
12
12
|
showIcon: boolean;
|
|
@@ -31,7 +31,7 @@ declare const _default: {
|
|
|
31
31
|
hideProgressBar: boolean | undefined;
|
|
32
32
|
offset: number;
|
|
33
33
|
visible: boolean;
|
|
34
|
-
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "
|
|
34
|
+
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "position" | "offset" | "visible" | "hideProgressBar" | "showIcon">;
|
|
35
35
|
$attrs: {
|
|
36
36
|
[x: string]: unknown;
|
|
37
37
|
};
|
|
@@ -68,8 +68,8 @@ declare const _default: {
|
|
|
68
68
|
visible: boolean;
|
|
69
69
|
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
70
70
|
type: ToastType;
|
|
71
|
-
offset: number;
|
|
72
71
|
position: Position;
|
|
72
|
+
offset: number;
|
|
73
73
|
visible: boolean;
|
|
74
74
|
hideProgressBar: boolean;
|
|
75
75
|
showIcon: boolean;
|
|
@@ -141,8 +141,8 @@ declare const _default: {
|
|
|
141
141
|
visible: boolean;
|
|
142
142
|
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
143
143
|
type: ToastType;
|
|
144
|
-
offset: number;
|
|
145
144
|
position: Position;
|
|
145
|
+
offset: number;
|
|
146
146
|
visible: boolean;
|
|
147
147
|
hideProgressBar: boolean;
|
|
148
148
|
showIcon: boolean;
|