@solfacil/girassol 0.5.0 → 0.6.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.
- package/README.md +32 -13
- package/dist/components.d.ts +1 -0
- package/dist/components.json +1 -1
- package/dist/girassol.es.js +2013 -1766
- package/dist/girassol.umd.js +5 -5
- package/dist/style.css +1 -1
- package/dist/theme/solfacil/borders.d.ts +0 -1
- package/dist/theme/solfacil/screens.d.ts +17 -5
- package/dist/types/components/forms/button/button-destructive/ButtonDestructive.vue.d.ts +30 -7
- package/dist/types/components/forms/switch/Switch.vue.d.ts +3 -0
- package/dist/types/components/modal/Modal.vue.d.ts +209 -0
- package/dist/types/components/modal/index.d.ts +2 -0
- package/dist/types/components/modal/modal.spec.d.ts +1 -0
- package/dist/types/components/modal/types.d.ts +16 -0
- package/dist/types/components/overlay/Overlay.vue.d.ts +2 -0
- package/dist/types/composables/use-modal/index.d.ts +4 -0
- package/dist/types/index.d.ts +304 -5
- package/package.json +9 -4
- package/theme/solfacil/borders.ts +0 -1
- package/theme/solfacil/effects.ts +4 -4
- package/theme/solfacil/screens.ts +16 -5
- package/vite.config.ts +5 -0
- package/cli/build/cli.js +0 -68
- package/cli/build/commands/create:component.js +0 -124
- package/cli/build/commands/generate:plugin.js +0 -89
- package/cli/build/commands/generate:types.js +0 -76
- package/cli/build/commands/girassol-cli.js +0 -52
- package/cli/build/extensions/cli-extension.js +0 -17
- package/cli/build/templates/components.d.ts.ejs +0 -1
- package/cli/build/templates/nuxt-plugin.ejs +0 -8
- package/cli/build/templates/vue-plugin.ejs +0 -5
- package/cli/build/templates/windi.config.ts.ejs +0 -3
- package/cli/build/types/cli.d.ts +0 -1
- package/cli/build/types/commands/create:component.d.ts +0 -1
- package/cli/build/types/commands/generate:plugin.d.ts +0 -1
- package/cli/build/types/commands/generate:types.d.ts +0 -7
- package/cli/build/types/commands/girassol-cli.d.ts +0 -1
- package/cli/build/types/extensions/cli-extension.d.ts +0 -1
- package/cli/build/types/types.d.ts +0 -0
- package/cli/build/types.js +0 -2
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import type { Modal } from './types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): {
|
|
4
|
+
$: import("vue").ComponentInternalInstance;
|
|
5
|
+
$data: {};
|
|
6
|
+
$props: Partial<{
|
|
7
|
+
title: Modal['title'];
|
|
8
|
+
size: Modal['size'];
|
|
9
|
+
target: string;
|
|
10
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
11
|
+
id: Modal['id'];
|
|
12
|
+
size?: import("./types").Size | undefined;
|
|
13
|
+
title?: string | undefined;
|
|
14
|
+
isOpen?: Modal['isOpen'];
|
|
15
|
+
target?: Modal['target'];
|
|
16
|
+
actionPrimaryText?: Modal['actionPrimaryText'];
|
|
17
|
+
actionSecondaryText?: Modal['actionSecondaryText'];
|
|
18
|
+
actionTertiaryText?: Modal['actionTertiaryText'];
|
|
19
|
+
}>, {
|
|
20
|
+
target: string;
|
|
21
|
+
title: string;
|
|
22
|
+
size: () => {
|
|
23
|
+
desktop: string;
|
|
24
|
+
mobile: string;
|
|
25
|
+
};
|
|
26
|
+
}>>> & {
|
|
27
|
+
onClose?: (() => any) | undefined;
|
|
28
|
+
onOpen?: (() => any) | undefined;
|
|
29
|
+
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
30
|
+
"onAction:primary"?: (() => any) | undefined;
|
|
31
|
+
"onAction:secondary"?: (() => any) | undefined;
|
|
32
|
+
"onAction:tertiary"?: (() => any) | undefined;
|
|
33
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "size" | "target">;
|
|
34
|
+
$attrs: {
|
|
35
|
+
[x: string]: unknown;
|
|
36
|
+
};
|
|
37
|
+
$refs: {
|
|
38
|
+
[x: string]: unknown;
|
|
39
|
+
};
|
|
40
|
+
$slots: Readonly<{
|
|
41
|
+
[name: string]: import("vue").Slot | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
44
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
45
|
+
$emit: ((event: "close") => void) & ((event: "open") => void) & ((event: "update:isOpen", value: boolean) => void) & ((event: "action:primary") => void) & ((event: "action:secondary") => void) & ((event: "action:tertiary") => void);
|
|
46
|
+
$el: any;
|
|
47
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
48
|
+
id: Modal['id'];
|
|
49
|
+
size?: import("./types").Size | undefined;
|
|
50
|
+
title?: string | undefined;
|
|
51
|
+
isOpen?: Modal['isOpen'];
|
|
52
|
+
target?: Modal['target'];
|
|
53
|
+
actionPrimaryText?: Modal['actionPrimaryText'];
|
|
54
|
+
actionSecondaryText?: Modal['actionSecondaryText'];
|
|
55
|
+
actionTertiaryText?: Modal['actionTertiaryText'];
|
|
56
|
+
}>, {
|
|
57
|
+
target: string;
|
|
58
|
+
title: string;
|
|
59
|
+
size: () => {
|
|
60
|
+
desktop: string;
|
|
61
|
+
mobile: string;
|
|
62
|
+
};
|
|
63
|
+
}>>> & {
|
|
64
|
+
onClose?: (() => any) | undefined;
|
|
65
|
+
onOpen?: (() => any) | undefined;
|
|
66
|
+
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
67
|
+
"onAction:primary"?: (() => any) | undefined;
|
|
68
|
+
"onAction:secondary"?: (() => any) | undefined;
|
|
69
|
+
"onAction:tertiary"?: (() => any) | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
close: () => void;
|
|
72
|
+
open: () => void;
|
|
73
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
74
|
+
close: () => void;
|
|
75
|
+
} & {
|
|
76
|
+
open: () => void;
|
|
77
|
+
} & {
|
|
78
|
+
"update:isOpen": (value: boolean) => void;
|
|
79
|
+
} & {
|
|
80
|
+
"action:primary": () => void;
|
|
81
|
+
} & {
|
|
82
|
+
"action:secondary": () => void;
|
|
83
|
+
} & {
|
|
84
|
+
"action:tertiary": () => void;
|
|
85
|
+
}, string, {
|
|
86
|
+
title: Modal['title'];
|
|
87
|
+
size: Modal['size'];
|
|
88
|
+
target: string;
|
|
89
|
+
}> & {
|
|
90
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
91
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
92
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
93
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
94
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
95
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
96
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
97
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
98
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
99
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
100
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
101
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
102
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
103
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
104
|
+
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;
|
|
105
|
+
};
|
|
106
|
+
$forceUpdate: () => void;
|
|
107
|
+
$nextTick: typeof import("vue").nextTick;
|
|
108
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
109
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
110
|
+
id: Modal['id'];
|
|
111
|
+
size?: import("./types").Size | undefined;
|
|
112
|
+
title?: string | undefined;
|
|
113
|
+
isOpen?: Modal['isOpen'];
|
|
114
|
+
target?: Modal['target'];
|
|
115
|
+
actionPrimaryText?: Modal['actionPrimaryText'];
|
|
116
|
+
actionSecondaryText?: Modal['actionSecondaryText'];
|
|
117
|
+
actionTertiaryText?: Modal['actionTertiaryText'];
|
|
118
|
+
}>, {
|
|
119
|
+
target: string;
|
|
120
|
+
title: string;
|
|
121
|
+
size: () => {
|
|
122
|
+
desktop: string;
|
|
123
|
+
mobile: string;
|
|
124
|
+
};
|
|
125
|
+
}>>> & {
|
|
126
|
+
onClose?: (() => any) | undefined;
|
|
127
|
+
onOpen?: (() => any) | undefined;
|
|
128
|
+
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
129
|
+
"onAction:primary"?: (() => any) | undefined;
|
|
130
|
+
"onAction:secondary"?: (() => any) | undefined;
|
|
131
|
+
"onAction:tertiary"?: (() => any) | undefined;
|
|
132
|
+
} & import("vue").ShallowUnwrapRef<{
|
|
133
|
+
close: () => void;
|
|
134
|
+
open: () => void;
|
|
135
|
+
}> & {} & import("vue").ComponentCustomProperties;
|
|
136
|
+
__isFragment?: undefined;
|
|
137
|
+
__isTeleport?: undefined;
|
|
138
|
+
__isSuspense?: undefined;
|
|
139
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
140
|
+
id: Modal['id'];
|
|
141
|
+
size?: import("./types").Size | undefined;
|
|
142
|
+
title?: string | undefined;
|
|
143
|
+
isOpen?: Modal['isOpen'];
|
|
144
|
+
target?: Modal['target'];
|
|
145
|
+
actionPrimaryText?: Modal['actionPrimaryText'];
|
|
146
|
+
actionSecondaryText?: Modal['actionSecondaryText'];
|
|
147
|
+
actionTertiaryText?: Modal['actionTertiaryText'];
|
|
148
|
+
}>, {
|
|
149
|
+
target: string;
|
|
150
|
+
title: string;
|
|
151
|
+
size: () => {
|
|
152
|
+
desktop: string;
|
|
153
|
+
mobile: string;
|
|
154
|
+
};
|
|
155
|
+
}>>> & {
|
|
156
|
+
onClose?: (() => any) | undefined;
|
|
157
|
+
onOpen?: (() => any) | undefined;
|
|
158
|
+
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
159
|
+
"onAction:primary"?: (() => any) | undefined;
|
|
160
|
+
"onAction:secondary"?: (() => any) | undefined;
|
|
161
|
+
"onAction:tertiary"?: (() => any) | undefined;
|
|
162
|
+
}, {
|
|
163
|
+
close: () => void;
|
|
164
|
+
open: () => void;
|
|
165
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
166
|
+
close: () => void;
|
|
167
|
+
} & {
|
|
168
|
+
open: () => void;
|
|
169
|
+
} & {
|
|
170
|
+
"update:isOpen": (value: boolean) => void;
|
|
171
|
+
} & {
|
|
172
|
+
"action:primary": () => void;
|
|
173
|
+
} & {
|
|
174
|
+
"action:secondary": () => void;
|
|
175
|
+
} & {
|
|
176
|
+
"action:tertiary": () => void;
|
|
177
|
+
}, string, {
|
|
178
|
+
title: Modal['title'];
|
|
179
|
+
size: Modal['size'];
|
|
180
|
+
target: string;
|
|
181
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
182
|
+
$slots: {
|
|
183
|
+
default: (_: {}) => any;
|
|
184
|
+
'action-tertiary': (_: {
|
|
185
|
+
id: string;
|
|
186
|
+
}) => any;
|
|
187
|
+
'action-secondary': (_: {
|
|
188
|
+
id: string;
|
|
189
|
+
}) => any;
|
|
190
|
+
'action-primary': (_: {
|
|
191
|
+
id: string;
|
|
192
|
+
}) => any;
|
|
193
|
+
};
|
|
194
|
+
});
|
|
195
|
+
export default _default;
|
|
196
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
197
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
198
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
199
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
200
|
+
} : {
|
|
201
|
+
type: import('vue').PropType<T[K]>;
|
|
202
|
+
required: true;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
206
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
207
|
+
default: D[K];
|
|
208
|
+
} : P[K];
|
|
209
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare type DesktopSize = 'small' | 'medium' | 'large' | 'extra-large' | 'full';
|
|
2
|
+
export declare type MobileSize = 'bottom-sheet' | 'full';
|
|
3
|
+
export declare type Size = {
|
|
4
|
+
desktop?: DesktopSize;
|
|
5
|
+
mobile?: MobileSize;
|
|
6
|
+
};
|
|
7
|
+
export interface Modal {
|
|
8
|
+
id: string;
|
|
9
|
+
size: Size;
|
|
10
|
+
title: string;
|
|
11
|
+
isOpen?: boolean;
|
|
12
|
+
target?: string;
|
|
13
|
+
actionPrimaryText?: string;
|
|
14
|
+
actionSecondaryText?: string;
|
|
15
|
+
actionTertiaryText?: string;
|
|
16
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { SolList } from './components/list/';
|
|
|
13
13
|
import { SolMenu } from './components/menus/menu';
|
|
14
14
|
import { SolMenuItemLink } from './components/menus/menu-item/menu-item-link/';
|
|
15
15
|
import { SolMenuNavigationLinks } from './components/menus/menu-navigation-links';
|
|
16
|
+
import { SolModal } from './components/modal';
|
|
16
17
|
import 'virtual:windi-base.css';
|
|
17
18
|
import 'virtual:windi-components.css';
|
|
18
19
|
import 'virtual:windi-utilities.css';
|
|
@@ -188,7 +189,9 @@ export declare const components: {
|
|
|
188
189
|
new (...args: any[]): {
|
|
189
190
|
$: import("vue").ComponentInternalInstance;
|
|
190
191
|
$data: {};
|
|
191
|
-
$props: Partial<{
|
|
192
|
+
$props: Partial<{
|
|
193
|
+
hideIcon: boolean;
|
|
194
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
192
195
|
id: {
|
|
193
196
|
type: import("vue").PropType<string>;
|
|
194
197
|
required: true;
|
|
@@ -200,7 +203,12 @@ export declare const components: {
|
|
|
200
203
|
loading: {
|
|
201
204
|
type: import("vue").PropType<boolean>;
|
|
202
205
|
};
|
|
203
|
-
|
|
206
|
+
hideIcon: {
|
|
207
|
+
type: import("vue").PropType<boolean>;
|
|
208
|
+
} & {
|
|
209
|
+
default: boolean;
|
|
210
|
+
};
|
|
211
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "hideIcon">;
|
|
204
212
|
$attrs: {
|
|
205
213
|
[x: string]: unknown;
|
|
206
214
|
};
|
|
@@ -226,7 +234,14 @@ export declare const components: {
|
|
|
226
234
|
loading: {
|
|
227
235
|
type: import("vue").PropType<boolean>;
|
|
228
236
|
};
|
|
229
|
-
|
|
237
|
+
hideIcon: {
|
|
238
|
+
type: import("vue").PropType<boolean>;
|
|
239
|
+
} & {
|
|
240
|
+
default: boolean;
|
|
241
|
+
};
|
|
242
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
243
|
+
hideIcon: boolean;
|
|
244
|
+
}> & {
|
|
230
245
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
231
246
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
232
247
|
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -258,6 +273,11 @@ export declare const components: {
|
|
|
258
273
|
loading: {
|
|
259
274
|
type: import("vue").PropType<boolean>;
|
|
260
275
|
};
|
|
276
|
+
hideIcon: {
|
|
277
|
+
type: import("vue").PropType<boolean>;
|
|
278
|
+
} & {
|
|
279
|
+
default: boolean;
|
|
280
|
+
};
|
|
261
281
|
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
262
282
|
__isFragment?: undefined;
|
|
263
283
|
__isTeleport?: undefined;
|
|
@@ -274,7 +294,14 @@ export declare const components: {
|
|
|
274
294
|
loading: {
|
|
275
295
|
type: import("vue").PropType<boolean>;
|
|
276
296
|
};
|
|
277
|
-
|
|
297
|
+
hideIcon: {
|
|
298
|
+
type: import("vue").PropType<boolean>;
|
|
299
|
+
} & {
|
|
300
|
+
default: boolean;
|
|
301
|
+
};
|
|
302
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
303
|
+
hideIcon: boolean;
|
|
304
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
278
305
|
$slots: {
|
|
279
306
|
default: (_: {}) => any;
|
|
280
307
|
};
|
|
@@ -1582,6 +1609,8 @@ export declare const components: {
|
|
|
1582
1609
|
};
|
|
1583
1610
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1584
1611
|
change: (value: string | boolean) => void;
|
|
1612
|
+
} & {
|
|
1613
|
+
"update:checked": (value: boolean) => void;
|
|
1585
1614
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1586
1615
|
label: {
|
|
1587
1616
|
type: import("vue").PropType<string>;
|
|
@@ -1619,6 +1648,7 @@ export declare const components: {
|
|
|
1619
1648
|
};
|
|
1620
1649
|
}>> & {
|
|
1621
1650
|
onChange?: ((value: string | boolean) => any) | undefined;
|
|
1651
|
+
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
1622
1652
|
}, {
|
|
1623
1653
|
textDirection: "left" | "right";
|
|
1624
1654
|
stretchLabel: boolean;
|
|
@@ -3353,6 +3383,275 @@ export declare const components: {
|
|
|
3353
3383
|
}) => any;
|
|
3354
3384
|
};
|
|
3355
3385
|
});
|
|
3386
|
+
SolModal: {
|
|
3387
|
+
new (...args: any[]): {
|
|
3388
|
+
$: import("vue").ComponentInternalInstance;
|
|
3389
|
+
$data: {};
|
|
3390
|
+
$props: Partial<{
|
|
3391
|
+
title: string;
|
|
3392
|
+
size: import("./components/modal/types").Size;
|
|
3393
|
+
target: string;
|
|
3394
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
3395
|
+
title: {
|
|
3396
|
+
type: import("vue").PropType<string>;
|
|
3397
|
+
} & {
|
|
3398
|
+
default: string;
|
|
3399
|
+
};
|
|
3400
|
+
id: {
|
|
3401
|
+
type: import("vue").PropType<string>;
|
|
3402
|
+
required: true;
|
|
3403
|
+
};
|
|
3404
|
+
size: {
|
|
3405
|
+
type: import("vue").PropType<import("./components/modal/types").Size>;
|
|
3406
|
+
} & {
|
|
3407
|
+
default: () => {
|
|
3408
|
+
desktop: string;
|
|
3409
|
+
mobile: string;
|
|
3410
|
+
};
|
|
3411
|
+
};
|
|
3412
|
+
target: {
|
|
3413
|
+
type: import("vue").PropType<string>;
|
|
3414
|
+
} & {
|
|
3415
|
+
default: string;
|
|
3416
|
+
};
|
|
3417
|
+
isOpen: {
|
|
3418
|
+
type: import("vue").PropType<boolean>;
|
|
3419
|
+
};
|
|
3420
|
+
actionPrimaryText: {
|
|
3421
|
+
type: import("vue").PropType<string>;
|
|
3422
|
+
};
|
|
3423
|
+
actionSecondaryText: {
|
|
3424
|
+
type: import("vue").PropType<string>;
|
|
3425
|
+
};
|
|
3426
|
+
actionTertiaryText: {
|
|
3427
|
+
type: import("vue").PropType<string>;
|
|
3428
|
+
};
|
|
3429
|
+
}>> & {
|
|
3430
|
+
onClose?: (() => any) | undefined;
|
|
3431
|
+
onOpen?: (() => any) | undefined;
|
|
3432
|
+
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
3433
|
+
"onAction:primary"?: (() => any) | undefined;
|
|
3434
|
+
"onAction:secondary"?: (() => any) | undefined;
|
|
3435
|
+
"onAction:tertiary"?: (() => any) | undefined;
|
|
3436
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "size" | "target">;
|
|
3437
|
+
$attrs: {
|
|
3438
|
+
[x: string]: unknown;
|
|
3439
|
+
};
|
|
3440
|
+
$refs: {
|
|
3441
|
+
[x: string]: unknown;
|
|
3442
|
+
};
|
|
3443
|
+
$slots: Readonly<{
|
|
3444
|
+
[name: string]: import("vue").Slot | undefined;
|
|
3445
|
+
}>;
|
|
3446
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
3447
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
3448
|
+
$emit: ((event: "close") => void) & ((event: "open") => void) & ((event: "update:isOpen", value: boolean) => void) & ((event: "action:primary") => void) & ((event: "action:secondary") => void) & ((event: "action:tertiary") => void);
|
|
3449
|
+
$el: any;
|
|
3450
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
3451
|
+
title: {
|
|
3452
|
+
type: import("vue").PropType<string>;
|
|
3453
|
+
} & {
|
|
3454
|
+
default: string;
|
|
3455
|
+
};
|
|
3456
|
+
id: {
|
|
3457
|
+
type: import("vue").PropType<string>;
|
|
3458
|
+
required: true;
|
|
3459
|
+
};
|
|
3460
|
+
size: {
|
|
3461
|
+
type: import("vue").PropType<import("./components/modal/types").Size>;
|
|
3462
|
+
} & {
|
|
3463
|
+
default: () => {
|
|
3464
|
+
desktop: string;
|
|
3465
|
+
mobile: string;
|
|
3466
|
+
};
|
|
3467
|
+
};
|
|
3468
|
+
target: {
|
|
3469
|
+
type: import("vue").PropType<string>;
|
|
3470
|
+
} & {
|
|
3471
|
+
default: string;
|
|
3472
|
+
};
|
|
3473
|
+
isOpen: {
|
|
3474
|
+
type: import("vue").PropType<boolean>;
|
|
3475
|
+
};
|
|
3476
|
+
actionPrimaryText: {
|
|
3477
|
+
type: import("vue").PropType<string>;
|
|
3478
|
+
};
|
|
3479
|
+
actionSecondaryText: {
|
|
3480
|
+
type: import("vue").PropType<string>;
|
|
3481
|
+
};
|
|
3482
|
+
actionTertiaryText: {
|
|
3483
|
+
type: import("vue").PropType<string>;
|
|
3484
|
+
};
|
|
3485
|
+
}>> & {
|
|
3486
|
+
onClose?: (() => any) | undefined;
|
|
3487
|
+
onOpen?: (() => any) | undefined;
|
|
3488
|
+
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
3489
|
+
"onAction:primary"?: (() => any) | undefined;
|
|
3490
|
+
"onAction:secondary"?: (() => any) | undefined;
|
|
3491
|
+
"onAction:tertiary"?: (() => any) | undefined;
|
|
3492
|
+
}, {
|
|
3493
|
+
close: () => void;
|
|
3494
|
+
open: () => void;
|
|
3495
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3496
|
+
close: () => void;
|
|
3497
|
+
} & {
|
|
3498
|
+
open: () => void;
|
|
3499
|
+
} & {
|
|
3500
|
+
"update:isOpen": (value: boolean) => void;
|
|
3501
|
+
} & {
|
|
3502
|
+
"action:primary": () => void;
|
|
3503
|
+
} & {
|
|
3504
|
+
"action:secondary": () => void;
|
|
3505
|
+
} & {
|
|
3506
|
+
"action:tertiary": () => void;
|
|
3507
|
+
}, string, {
|
|
3508
|
+
title: string;
|
|
3509
|
+
size: import("./components/modal/types").Size;
|
|
3510
|
+
target: string;
|
|
3511
|
+
}> & {
|
|
3512
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
3513
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
3514
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
3515
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
3516
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
3517
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
3518
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
3519
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
3520
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
3521
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
3522
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
3523
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
3524
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
3525
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
3526
|
+
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;
|
|
3527
|
+
};
|
|
3528
|
+
$forceUpdate: () => void;
|
|
3529
|
+
$nextTick: typeof import("vue").nextTick;
|
|
3530
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
3531
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
3532
|
+
title: {
|
|
3533
|
+
type: import("vue").PropType<string>;
|
|
3534
|
+
} & {
|
|
3535
|
+
default: string;
|
|
3536
|
+
};
|
|
3537
|
+
id: {
|
|
3538
|
+
type: import("vue").PropType<string>;
|
|
3539
|
+
required: true;
|
|
3540
|
+
};
|
|
3541
|
+
size: {
|
|
3542
|
+
type: import("vue").PropType<import("./components/modal/types").Size>;
|
|
3543
|
+
} & {
|
|
3544
|
+
default: () => {
|
|
3545
|
+
desktop: string;
|
|
3546
|
+
mobile: string;
|
|
3547
|
+
};
|
|
3548
|
+
};
|
|
3549
|
+
target: {
|
|
3550
|
+
type: import("vue").PropType<string>;
|
|
3551
|
+
} & {
|
|
3552
|
+
default: string;
|
|
3553
|
+
};
|
|
3554
|
+
isOpen: {
|
|
3555
|
+
type: import("vue").PropType<boolean>;
|
|
3556
|
+
};
|
|
3557
|
+
actionPrimaryText: {
|
|
3558
|
+
type: import("vue").PropType<string>;
|
|
3559
|
+
};
|
|
3560
|
+
actionSecondaryText: {
|
|
3561
|
+
type: import("vue").PropType<string>;
|
|
3562
|
+
};
|
|
3563
|
+
actionTertiaryText: {
|
|
3564
|
+
type: import("vue").PropType<string>;
|
|
3565
|
+
};
|
|
3566
|
+
}>> & {
|
|
3567
|
+
onClose?: (() => any) | undefined;
|
|
3568
|
+
onOpen?: (() => any) | undefined;
|
|
3569
|
+
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
3570
|
+
"onAction:primary"?: (() => any) | undefined;
|
|
3571
|
+
"onAction:secondary"?: (() => any) | undefined;
|
|
3572
|
+
"onAction:tertiary"?: (() => any) | undefined;
|
|
3573
|
+
} & import("vue").ShallowUnwrapRef<{
|
|
3574
|
+
close: () => void;
|
|
3575
|
+
open: () => void;
|
|
3576
|
+
}> & {} & import("vue").ComponentCustomProperties;
|
|
3577
|
+
__isFragment?: undefined;
|
|
3578
|
+
__isTeleport?: undefined;
|
|
3579
|
+
__isSuspense?: undefined;
|
|
3580
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
3581
|
+
title: {
|
|
3582
|
+
type: import("vue").PropType<string>;
|
|
3583
|
+
} & {
|
|
3584
|
+
default: string;
|
|
3585
|
+
};
|
|
3586
|
+
id: {
|
|
3587
|
+
type: import("vue").PropType<string>;
|
|
3588
|
+
required: true;
|
|
3589
|
+
};
|
|
3590
|
+
size: {
|
|
3591
|
+
type: import("vue").PropType<import("./components/modal/types").Size>;
|
|
3592
|
+
} & {
|
|
3593
|
+
default: () => {
|
|
3594
|
+
desktop: string;
|
|
3595
|
+
mobile: string;
|
|
3596
|
+
};
|
|
3597
|
+
};
|
|
3598
|
+
target: {
|
|
3599
|
+
type: import("vue").PropType<string>;
|
|
3600
|
+
} & {
|
|
3601
|
+
default: string;
|
|
3602
|
+
};
|
|
3603
|
+
isOpen: {
|
|
3604
|
+
type: import("vue").PropType<boolean>;
|
|
3605
|
+
};
|
|
3606
|
+
actionPrimaryText: {
|
|
3607
|
+
type: import("vue").PropType<string>;
|
|
3608
|
+
};
|
|
3609
|
+
actionSecondaryText: {
|
|
3610
|
+
type: import("vue").PropType<string>;
|
|
3611
|
+
};
|
|
3612
|
+
actionTertiaryText: {
|
|
3613
|
+
type: import("vue").PropType<string>;
|
|
3614
|
+
};
|
|
3615
|
+
}>> & {
|
|
3616
|
+
onClose?: (() => any) | undefined;
|
|
3617
|
+
onOpen?: (() => any) | undefined;
|
|
3618
|
+
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
3619
|
+
"onAction:primary"?: (() => any) | undefined;
|
|
3620
|
+
"onAction:secondary"?: (() => any) | undefined;
|
|
3621
|
+
"onAction:tertiary"?: (() => any) | undefined;
|
|
3622
|
+
}, {
|
|
3623
|
+
close: () => void;
|
|
3624
|
+
open: () => void;
|
|
3625
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3626
|
+
close: () => void;
|
|
3627
|
+
} & {
|
|
3628
|
+
open: () => void;
|
|
3629
|
+
} & {
|
|
3630
|
+
"update:isOpen": (value: boolean) => void;
|
|
3631
|
+
} & {
|
|
3632
|
+
"action:primary": () => void;
|
|
3633
|
+
} & {
|
|
3634
|
+
"action:secondary": () => void;
|
|
3635
|
+
} & {
|
|
3636
|
+
"action:tertiary": () => void;
|
|
3637
|
+
}, string, {
|
|
3638
|
+
title: string;
|
|
3639
|
+
size: import("./components/modal/types").Size;
|
|
3640
|
+
target: string;
|
|
3641
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
3642
|
+
$slots: {
|
|
3643
|
+
default: (_: {}) => any;
|
|
3644
|
+
'action-tertiary': (_: {
|
|
3645
|
+
id: string;
|
|
3646
|
+
}) => any;
|
|
3647
|
+
'action-secondary': (_: {
|
|
3648
|
+
id: string;
|
|
3649
|
+
}) => any;
|
|
3650
|
+
'action-primary': (_: {
|
|
3651
|
+
id: string;
|
|
3652
|
+
}) => any;
|
|
3653
|
+
};
|
|
3654
|
+
});
|
|
3356
3655
|
};
|
|
3357
3656
|
export declare function install(App: App): void;
|
|
3358
|
-
export { SolButton, SolButtonDestructive, SolInputTextarea, SolInputText, SolInputTextPassword, SolRadio, SolRadioGroup, SolCheckbox, SolCheckboxGroup, SolSwitch, SolSelect, SolChip, SolTag, SolAlert, SolAccordion, SolList, SolMenu, SolMenuItemLink, SolMenuNavigationLinks, };
|
|
3657
|
+
export { SolButton, SolButtonDestructive, SolInputTextarea, SolInputText, SolInputTextPassword, SolRadio, SolRadioGroup, SolCheckbox, SolCheckboxGroup, SolSwitch, SolSelect, SolChip, SolTag, SolAlert, SolAccordion, SolList, SolMenu, SolMenuItemLink, SolMenuNavigationLinks, SolModal, };
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solfacil/girassol",
|
|
3
3
|
"description": "Girassol design system",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
|
+
"license": "MIT",
|
|
5
6
|
"authors": [
|
|
6
7
|
{
|
|
7
8
|
"name": "Kevin Martin",
|
|
@@ -57,11 +58,11 @@
|
|
|
57
58
|
"pre-commit": "./.husky/run-staged-tests.js"
|
|
58
59
|
},
|
|
59
60
|
"dependencies": {
|
|
60
|
-
"@vueuse/core": "^9.
|
|
61
|
+
"@vueuse/core": "^9.3.0",
|
|
61
62
|
"gluegun": "latest",
|
|
62
63
|
"maska": "^1.5.0",
|
|
63
64
|
"vee-validate": "^4.6.6",
|
|
64
|
-
"vue": "^3.2.
|
|
65
|
+
"vue": "^3.2.40"
|
|
65
66
|
},
|
|
66
67
|
"devDependencies": {
|
|
67
68
|
"@antfu/eslint-config": "^0.26.1",
|
|
@@ -116,13 +117,17 @@
|
|
|
116
117
|
"vite-plugin-windicss": "^1.8.7",
|
|
117
118
|
"vitest": "^0.23.2",
|
|
118
119
|
"vue-loader": "^17.0.0",
|
|
119
|
-
"vue-tsc": "^0.40.
|
|
120
|
+
"vue-tsc": "^0.40.13",
|
|
120
121
|
"windicss": "^3.5.6"
|
|
121
122
|
},
|
|
123
|
+
"resolutions": {
|
|
124
|
+
"ejs": "^3.1.7"
|
|
125
|
+
},
|
|
122
126
|
"repository": {
|
|
123
127
|
"type": "git",
|
|
124
128
|
"url": "https://github.com/solfacil/girassol"
|
|
125
129
|
},
|
|
130
|
+
"homepage": "http://girassol.solfacil.tech/",
|
|
126
131
|
"keywords": [
|
|
127
132
|
"vue 3",
|
|
128
133
|
"Components",
|