@solfacil/girassol 0.2.0 → 0.2.4
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 +1 -0
- package/dist/components.json +1 -1
- package/dist/girassol.es.js +1334 -1546
- package/dist/girassol.umd.js +6 -5
- package/dist/style.css +1 -1
- package/dist/theme/safelist.d.ts +14 -0
- package/dist/theme/solfacil/colors.d.ts +6 -0
- package/dist/theme/solfacil/effects.d.ts +3 -3
- package/dist/theme/solfacil/index.d.ts +1 -0
- package/dist/theme/solfacil/spacing.d.ts +3 -0
- package/dist/theme/solfacil/typography.d.ts +2 -1
- package/dist/theme/solfacil/utilities.d.ts +1 -0
- package/dist/types/components/forms/button/Button.vue.d.ts +38 -30
- 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/index.d.ts +162 -43
- package/package.json +9 -9
- package/theme/safelist.ts +104 -0
- package/theme/solfacil/colors.ts +14 -5
- package/theme/solfacil/effects.ts +5 -5
- package/theme/solfacil/index.ts +2 -1
- package/theme/solfacil/spacing.ts +3 -0
- package/theme/solfacil/typography.ts +8 -7
- package/theme/solfacil/utilities.ts +201 -3
- package/vite.config.ts +1 -0
- package/windi.config.ts +9 -26
|
@@ -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
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { App } from 'vue';
|
|
2
|
-
import { SolButton } from './components/forms/button';
|
|
2
|
+
import { SolButton, SolButtonDestructive } from './components/forms/button';
|
|
3
3
|
import { SolInput } from './components/forms/input';
|
|
4
4
|
import { SolTextfield, SolTextfieldPassword } from './components/forms/textfield';
|
|
5
5
|
import { SolTextarea } from './components/forms/textarea';
|
|
@@ -21,30 +21,36 @@ export declare const components: {
|
|
|
21
21
|
$: import("vue").ComponentInternalInstance;
|
|
22
22
|
$data: {};
|
|
23
23
|
$props: Partial<{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
size: "small" | "large" | "medium";
|
|
25
|
+
onColor: boolean;
|
|
26
|
+
variant: "primary" | "secondary" | "tertiary";
|
|
27
27
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
28
28
|
id: {
|
|
29
29
|
type: import("vue").PropType<string>;
|
|
30
30
|
required: true;
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
disabled: {
|
|
33
33
|
type: import("vue").PropType<boolean>;
|
|
34
|
-
} & {
|
|
35
|
-
default: boolean;
|
|
36
34
|
};
|
|
37
|
-
|
|
38
|
-
type: import("vue").PropType<
|
|
35
|
+
loading: {
|
|
36
|
+
type: import("vue").PropType<boolean>;
|
|
37
|
+
};
|
|
38
|
+
size: {
|
|
39
|
+
type: import("vue").PropType<"small" | "large" | "medium">;
|
|
39
40
|
} & {
|
|
40
41
|
default: string;
|
|
41
42
|
};
|
|
42
|
-
|
|
43
|
+
onColor: {
|
|
43
44
|
type: import("vue").PropType<boolean>;
|
|
44
45
|
} & {
|
|
45
46
|
default: boolean;
|
|
46
47
|
};
|
|
47
|
-
|
|
48
|
+
variant: {
|
|
49
|
+
type: import("vue").PropType<"primary" | "secondary" | "tertiary">;
|
|
50
|
+
} & {
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "onColor" | "variant">;
|
|
48
54
|
$attrs: {
|
|
49
55
|
[x: string]: unknown;
|
|
50
56
|
};
|
|
@@ -63,25 +69,31 @@ export declare const components: {
|
|
|
63
69
|
type: import("vue").PropType<string>;
|
|
64
70
|
required: true;
|
|
65
71
|
};
|
|
66
|
-
|
|
72
|
+
disabled: {
|
|
67
73
|
type: import("vue").PropType<boolean>;
|
|
68
|
-
} & {
|
|
69
|
-
default: boolean;
|
|
70
74
|
};
|
|
71
|
-
|
|
72
|
-
type: import("vue").PropType<
|
|
75
|
+
loading: {
|
|
76
|
+
type: import("vue").PropType<boolean>;
|
|
77
|
+
};
|
|
78
|
+
size: {
|
|
79
|
+
type: import("vue").PropType<"small" | "large" | "medium">;
|
|
73
80
|
} & {
|
|
74
81
|
default: string;
|
|
75
82
|
};
|
|
76
|
-
|
|
83
|
+
onColor: {
|
|
77
84
|
type: import("vue").PropType<boolean>;
|
|
78
85
|
} & {
|
|
79
86
|
default: boolean;
|
|
80
87
|
};
|
|
88
|
+
variant: {
|
|
89
|
+
type: import("vue").PropType<"primary" | "secondary" | "tertiary">;
|
|
90
|
+
} & {
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
81
93
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
94
|
+
size: "small" | "large" | "medium";
|
|
95
|
+
onColor: boolean;
|
|
96
|
+
variant: "primary" | "secondary" | "tertiary";
|
|
85
97
|
}> & {
|
|
86
98
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
87
99
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -107,21 +119,27 @@ export declare const components: {
|
|
|
107
119
|
type: import("vue").PropType<string>;
|
|
108
120
|
required: true;
|
|
109
121
|
};
|
|
110
|
-
|
|
122
|
+
disabled: {
|
|
111
123
|
type: import("vue").PropType<boolean>;
|
|
112
|
-
} & {
|
|
113
|
-
default: boolean;
|
|
114
124
|
};
|
|
115
|
-
|
|
116
|
-
type: import("vue").PropType<
|
|
125
|
+
loading: {
|
|
126
|
+
type: import("vue").PropType<boolean>;
|
|
127
|
+
};
|
|
128
|
+
size: {
|
|
129
|
+
type: import("vue").PropType<"small" | "large" | "medium">;
|
|
117
130
|
} & {
|
|
118
131
|
default: string;
|
|
119
132
|
};
|
|
120
|
-
|
|
133
|
+
onColor: {
|
|
121
134
|
type: import("vue").PropType<boolean>;
|
|
122
135
|
} & {
|
|
123
136
|
default: boolean;
|
|
124
137
|
};
|
|
138
|
+
variant: {
|
|
139
|
+
type: import("vue").PropType<"primary" | "secondary" | "tertiary">;
|
|
140
|
+
} & {
|
|
141
|
+
default: string;
|
|
142
|
+
};
|
|
125
143
|
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
126
144
|
__isFragment?: undefined;
|
|
127
145
|
__isTeleport?: undefined;
|
|
@@ -131,25 +149,31 @@ export declare const components: {
|
|
|
131
149
|
type: import("vue").PropType<string>;
|
|
132
150
|
required: true;
|
|
133
151
|
};
|
|
134
|
-
|
|
152
|
+
disabled: {
|
|
135
153
|
type: import("vue").PropType<boolean>;
|
|
136
|
-
} & {
|
|
137
|
-
default: boolean;
|
|
138
154
|
};
|
|
139
|
-
|
|
140
|
-
type: import("vue").PropType<
|
|
155
|
+
loading: {
|
|
156
|
+
type: import("vue").PropType<boolean>;
|
|
157
|
+
};
|
|
158
|
+
size: {
|
|
159
|
+
type: import("vue").PropType<"small" | "large" | "medium">;
|
|
141
160
|
} & {
|
|
142
161
|
default: string;
|
|
143
162
|
};
|
|
144
|
-
|
|
163
|
+
onColor: {
|
|
145
164
|
type: import("vue").PropType<boolean>;
|
|
146
165
|
} & {
|
|
147
166
|
default: boolean;
|
|
148
167
|
};
|
|
168
|
+
variant: {
|
|
169
|
+
type: import("vue").PropType<"primary" | "secondary" | "tertiary">;
|
|
170
|
+
} & {
|
|
171
|
+
default: string;
|
|
172
|
+
};
|
|
149
173
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
174
|
+
size: "small" | "large" | "medium";
|
|
175
|
+
onColor: boolean;
|
|
176
|
+
variant: "primary" | "secondary" | "tertiary";
|
|
153
177
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
154
178
|
$slots: {
|
|
155
179
|
'icon-left': (_: {}) => any;
|
|
@@ -157,6 +181,101 @@ export declare const components: {
|
|
|
157
181
|
'icon-right': (_: {}) => any;
|
|
158
182
|
};
|
|
159
183
|
});
|
|
184
|
+
SolButtonDestructive: {
|
|
185
|
+
new (...args: any[]): {
|
|
186
|
+
$: import("vue").ComponentInternalInstance;
|
|
187
|
+
$data: {};
|
|
188
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
189
|
+
id: {
|
|
190
|
+
type: import("vue").PropType<string>;
|
|
191
|
+
required: true;
|
|
192
|
+
};
|
|
193
|
+
size: {
|
|
194
|
+
type: import("vue").PropType<"small" | "large" | "medium">;
|
|
195
|
+
required: true;
|
|
196
|
+
};
|
|
197
|
+
loading: {
|
|
198
|
+
type: import("vue").PropType<boolean>;
|
|
199
|
+
};
|
|
200
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
201
|
+
$attrs: {
|
|
202
|
+
[x: string]: unknown;
|
|
203
|
+
};
|
|
204
|
+
$refs: {
|
|
205
|
+
[x: string]: unknown;
|
|
206
|
+
};
|
|
207
|
+
$slots: Readonly<{
|
|
208
|
+
[name: string]: import("vue").Slot | undefined;
|
|
209
|
+
}>;
|
|
210
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
211
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
212
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
213
|
+
$el: any;
|
|
214
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
215
|
+
id: {
|
|
216
|
+
type: import("vue").PropType<string>;
|
|
217
|
+
required: true;
|
|
218
|
+
};
|
|
219
|
+
size: {
|
|
220
|
+
type: import("vue").PropType<"small" | "large" | "medium">;
|
|
221
|
+
required: true;
|
|
222
|
+
};
|
|
223
|
+
loading: {
|
|
224
|
+
type: import("vue").PropType<boolean>;
|
|
225
|
+
};
|
|
226
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
|
|
227
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
228
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
229
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
230
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
231
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
232
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
233
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
234
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
235
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
236
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
237
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
238
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
239
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
240
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
241
|
+
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;
|
|
242
|
+
};
|
|
243
|
+
$forceUpdate: () => void;
|
|
244
|
+
$nextTick: typeof import("vue").nextTick;
|
|
245
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
246
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
247
|
+
id: {
|
|
248
|
+
type: import("vue").PropType<string>;
|
|
249
|
+
required: true;
|
|
250
|
+
};
|
|
251
|
+
size: {
|
|
252
|
+
type: import("vue").PropType<"small" | "large" | "medium">;
|
|
253
|
+
required: true;
|
|
254
|
+
};
|
|
255
|
+
loading: {
|
|
256
|
+
type: import("vue").PropType<boolean>;
|
|
257
|
+
};
|
|
258
|
+
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
259
|
+
__isFragment?: undefined;
|
|
260
|
+
__isTeleport?: undefined;
|
|
261
|
+
__isSuspense?: undefined;
|
|
262
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
263
|
+
id: {
|
|
264
|
+
type: import("vue").PropType<string>;
|
|
265
|
+
required: true;
|
|
266
|
+
};
|
|
267
|
+
size: {
|
|
268
|
+
type: import("vue").PropType<"small" | "large" | "medium">;
|
|
269
|
+
required: true;
|
|
270
|
+
};
|
|
271
|
+
loading: {
|
|
272
|
+
type: import("vue").PropType<boolean>;
|
|
273
|
+
};
|
|
274
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
275
|
+
$slots: {
|
|
276
|
+
default: (_: {}) => any;
|
|
277
|
+
};
|
|
278
|
+
});
|
|
160
279
|
SolInput: {
|
|
161
280
|
new (...args: any[]): {
|
|
162
281
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -287,7 +406,7 @@ export declare const components: {
|
|
|
287
406
|
$props: Partial<{
|
|
288
407
|
label: string;
|
|
289
408
|
modelValue: string;
|
|
290
|
-
resize: "
|
|
409
|
+
resize: "none" | "both" | "horizontal" | "vertical";
|
|
291
410
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
292
411
|
label: {
|
|
293
412
|
type: import("vue").PropType<string>;
|
|
@@ -316,7 +435,7 @@ export declare const components: {
|
|
|
316
435
|
type: import("vue").PropType<string>;
|
|
317
436
|
};
|
|
318
437
|
resize: {
|
|
319
|
-
type: import("vue").PropType<"
|
|
438
|
+
type: import("vue").PropType<"none" | "both" | "horizontal" | "vertical">;
|
|
320
439
|
} & {
|
|
321
440
|
default: string;
|
|
322
441
|
};
|
|
@@ -364,7 +483,7 @@ export declare const components: {
|
|
|
364
483
|
type: import("vue").PropType<string>;
|
|
365
484
|
};
|
|
366
485
|
resize: {
|
|
367
|
-
type: import("vue").PropType<"
|
|
486
|
+
type: import("vue").PropType<"none" | "both" | "horizontal" | "vertical">;
|
|
368
487
|
} & {
|
|
369
488
|
default: string;
|
|
370
489
|
};
|
|
@@ -375,7 +494,7 @@ export declare const components: {
|
|
|
375
494
|
}, string, {
|
|
376
495
|
label: string;
|
|
377
496
|
modelValue: string;
|
|
378
|
-
resize: "
|
|
497
|
+
resize: "none" | "both" | "horizontal" | "vertical";
|
|
379
498
|
}> & {
|
|
380
499
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
381
500
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -424,7 +543,7 @@ export declare const components: {
|
|
|
424
543
|
type: import("vue").PropType<string>;
|
|
425
544
|
};
|
|
426
545
|
resize: {
|
|
427
|
-
type: import("vue").PropType<"
|
|
546
|
+
type: import("vue").PropType<"none" | "both" | "horizontal" | "vertical">;
|
|
428
547
|
} & {
|
|
429
548
|
default: string;
|
|
430
549
|
};
|
|
@@ -462,7 +581,7 @@ export declare const components: {
|
|
|
462
581
|
type: import("vue").PropType<string>;
|
|
463
582
|
};
|
|
464
583
|
resize: {
|
|
465
|
-
type: import("vue").PropType<"
|
|
584
|
+
type: import("vue").PropType<"none" | "both" | "horizontal" | "vertical">;
|
|
466
585
|
} & {
|
|
467
586
|
default: string;
|
|
468
587
|
};
|
|
@@ -473,7 +592,7 @@ export declare const components: {
|
|
|
473
592
|
}, string, {
|
|
474
593
|
label: string;
|
|
475
594
|
modelValue: string;
|
|
476
|
-
resize: "
|
|
595
|
+
resize: "none" | "both" | "horizontal" | "vertical";
|
|
477
596
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
478
597
|
$slots: {
|
|
479
598
|
label: (_: {}) => any;
|
|
@@ -2737,4 +2856,4 @@ export declare const components: {
|
|
|
2737
2856
|
});
|
|
2738
2857
|
};
|
|
2739
2858
|
export declare function install(App: App): void;
|
|
2740
|
-
export { SolButton, SolInput, SolTextarea, SolTextfield, SolTextfieldPassword, SolRadio, SolRadioGroup, SolCheckbox, SolCheckboxGroup, SolSwitch, SolDropdown, SolSelect, SolChip, SolAccordion, };
|
|
2859
|
+
export { SolButton, SolButtonDestructive, SolInput, SolTextarea, SolTextfield, SolTextfieldPassword, SolRadio, SolRadioGroup, SolCheckbox, SolCheckboxGroup, SolSwitch, SolDropdown, SolSelect, SolChip, SolAccordion, };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solfacil/girassol",
|
|
3
3
|
"description": "Girassol design system",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.4",
|
|
5
5
|
"authors": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Kevin Martin",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"pre-commit": "./.husky/run-staged-tests.js"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@vueuse/core": "^
|
|
60
|
+
"@vueuse/core": "^9.0.0",
|
|
61
61
|
"gluegun": "latest",
|
|
62
62
|
"vue": "^3.2.37"
|
|
63
63
|
},
|
|
@@ -67,12 +67,12 @@
|
|
|
67
67
|
"@babel/preset-env": "^7.18.6",
|
|
68
68
|
"@commitlint/cli": "^17.0.3",
|
|
69
69
|
"@commitlint/config-conventional": "^17.0.3",
|
|
70
|
-
"@iconify/json": "^2.1.
|
|
70
|
+
"@iconify/json": "^2.1.84",
|
|
71
71
|
"@storybook/addon-a11y": "^6.5.9",
|
|
72
72
|
"@storybook/addon-actions": "^6.5.9",
|
|
73
73
|
"@storybook/addon-essentials": "^6.5.9",
|
|
74
74
|
"@storybook/addon-links": "^6.5.9",
|
|
75
|
-
"@storybook/builder-vite": "^0.
|
|
75
|
+
"@storybook/builder-vite": "^0.2.2",
|
|
76
76
|
"@storybook/theming": "^6.5.9",
|
|
77
77
|
"@storybook/vue3": "^6.5.9",
|
|
78
78
|
"@testing-library/jest-dom": "^5.16.4",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@types/node": "^17.0.41",
|
|
83
83
|
"@typescript-eslint/eslint-plugin": "^5.30.0",
|
|
84
84
|
"@typescript-eslint/parser": "^5.30.0",
|
|
85
|
-
"@vitejs/plugin-vue": "^
|
|
85
|
+
"@vitejs/plugin-vue": "^3.0.1",
|
|
86
86
|
"babel-loader": "^8.2.5",
|
|
87
87
|
"c8": "^7.11.3",
|
|
88
88
|
"cli-spinner": "^0.2.10",
|
|
@@ -107,12 +107,12 @@
|
|
|
107
107
|
"ts-node": "^10.8.1",
|
|
108
108
|
"typescript": "^4.7.4",
|
|
109
109
|
"unplugin-icons": "^0.14.7",
|
|
110
|
-
"vite": "^
|
|
110
|
+
"vite": "^3.0.3",
|
|
111
111
|
"vite-plugin-inspect": "^0.5.1",
|
|
112
|
-
"vite-plugin-windicss": "^1.8.
|
|
113
|
-
"vitest": "^0.
|
|
112
|
+
"vite-plugin-windicss": "^1.8.7",
|
|
113
|
+
"vitest": "^0.19.1",
|
|
114
114
|
"vue-loader": "^17.0.0",
|
|
115
|
-
"vue-tsc": "^0.
|
|
115
|
+
"vue-tsc": "^0.39.2",
|
|
116
116
|
"windicss": "^3.5.6"
|
|
117
117
|
},
|
|
118
118
|
"repository": {
|