@solfacil/girassol 0.4.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 +1877 -1602
- package/dist/girassol.umd.js +6 -6
- package/dist/style.css +1 -1
- package/dist/theme/solfacil/borders.d.ts +0 -1
- package/dist/theme/solfacil/effects.d.ts +1 -0
- 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/inputs/input-core/Input.vue.d.ts +1 -1
- package/dist/types/components/forms/inputs/input-text/InputText.vue.d.ts +3 -3
- package/dist/types/components/forms/inputs/input-textarea/InputTextarea.vue.d.ts +3 -3
- package/dist/types/components/forms/inputs/types.d.ts +1 -1
- package/dist/types/components/forms/select/types.d.ts +1 -1
- package/dist/types/components/forms/switch/Switch.vue.d.ts +3 -0
- package/dist/types/components/loader/CircleLoader.vue.d.ts +3 -3
- 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/composables/use-toast/Toast.vue.d.ts +29 -25
- package/dist/types/composables/use-toast/index.d.ts +11 -6
- package/dist/types/composables/use-toast/types.d.ts +31 -4
- package/dist/types/index.d.ts +316 -17
- package/package.json +9 -4
- package/theme/solfacil/borders.ts +0 -1
- package/theme/solfacil/effects.ts +6 -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
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
|
};
|
|
@@ -294,7 +321,7 @@ export declare const components: {
|
|
|
294
321
|
type: import("vue").PropType<string>;
|
|
295
322
|
};
|
|
296
323
|
size: {
|
|
297
|
-
type: import("vue").PropType<"
|
|
324
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
298
325
|
} & {
|
|
299
326
|
default: string;
|
|
300
327
|
};
|
|
@@ -351,7 +378,7 @@ export declare const components: {
|
|
|
351
378
|
type: import("vue").PropType<string>;
|
|
352
379
|
};
|
|
353
380
|
size: {
|
|
354
|
-
type: import("vue").PropType<"
|
|
381
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
355
382
|
} & {
|
|
356
383
|
default: string;
|
|
357
384
|
};
|
|
@@ -394,7 +421,7 @@ export declare const components: {
|
|
|
394
421
|
}>> & {
|
|
395
422
|
"onUpdate:modelValue"?: ((event: string) => any) | undefined;
|
|
396
423
|
}, {
|
|
397
|
-
size: "
|
|
424
|
+
size: "small" | "medium";
|
|
398
425
|
error: string | null;
|
|
399
426
|
resize: "none" | "both" | "horizontal" | "vertical";
|
|
400
427
|
}>;
|
|
@@ -403,7 +430,7 @@ export declare const components: {
|
|
|
403
430
|
$: import("vue").ComponentInternalInstance;
|
|
404
431
|
$data: {};
|
|
405
432
|
$props: Partial<{
|
|
406
|
-
size: "
|
|
433
|
+
size: "small" | "medium";
|
|
407
434
|
error: string | null;
|
|
408
435
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
409
436
|
label: {
|
|
@@ -426,7 +453,7 @@ export declare const components: {
|
|
|
426
453
|
type: import("vue").PropType<string>;
|
|
427
454
|
};
|
|
428
455
|
size: {
|
|
429
|
-
type: import("vue").PropType<"
|
|
456
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
430
457
|
} & {
|
|
431
458
|
default: string;
|
|
432
459
|
};
|
|
@@ -510,7 +537,7 @@ export declare const components: {
|
|
|
510
537
|
type: import("vue").PropType<string>;
|
|
511
538
|
};
|
|
512
539
|
size: {
|
|
513
|
-
type: import("vue").PropType<"
|
|
540
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
514
541
|
} & {
|
|
515
542
|
default: string;
|
|
516
543
|
};
|
|
@@ -562,7 +589,7 @@ export declare const components: {
|
|
|
562
589
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
563
590
|
"update:modelValue": (event: string) => void;
|
|
564
591
|
}, string, {
|
|
565
|
-
size: "
|
|
592
|
+
size: "small" | "medium";
|
|
566
593
|
error: string | null;
|
|
567
594
|
}> & {
|
|
568
595
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -605,7 +632,7 @@ export declare const components: {
|
|
|
605
632
|
type: import("vue").PropType<string>;
|
|
606
633
|
};
|
|
607
634
|
size: {
|
|
608
|
-
type: import("vue").PropType<"
|
|
635
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
609
636
|
} & {
|
|
610
637
|
default: string;
|
|
611
638
|
};
|
|
@@ -679,7 +706,7 @@ export declare const components: {
|
|
|
679
706
|
type: import("vue").PropType<string>;
|
|
680
707
|
};
|
|
681
708
|
size: {
|
|
682
|
-
type: import("vue").PropType<"
|
|
709
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
683
710
|
} & {
|
|
684
711
|
default: string;
|
|
685
712
|
};
|
|
@@ -731,7 +758,7 @@ export declare const components: {
|
|
|
731
758
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
732
759
|
"update:modelValue": (event: string) => void;
|
|
733
760
|
}, string, {
|
|
734
|
-
size: "
|
|
761
|
+
size: "small" | "medium";
|
|
735
762
|
error: string | null;
|
|
736
763
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
737
764
|
$slots: {
|
|
@@ -755,7 +782,7 @@ export declare const components: {
|
|
|
755
782
|
default: boolean;
|
|
756
783
|
};
|
|
757
784
|
size: {
|
|
758
|
-
type: import("vue").PropType<"
|
|
785
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
759
786
|
};
|
|
760
787
|
name: {
|
|
761
788
|
type: import("vue").PropType<string>;
|
|
@@ -807,7 +834,7 @@ export declare const components: {
|
|
|
807
834
|
default: boolean;
|
|
808
835
|
};
|
|
809
836
|
size: {
|
|
810
|
-
type: import("vue").PropType<"
|
|
837
|
+
type: import("vue").PropType<"small" | "medium">;
|
|
811
838
|
};
|
|
812
839
|
name: {
|
|
813
840
|
type: import("vue").PropType<string>;
|
|
@@ -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",
|
|
@@ -6,12 +6,14 @@ export default {
|
|
|
6
6
|
intense: 0.6,
|
|
7
7
|
medium: 0.32,
|
|
8
8
|
light: 0.16,
|
|
9
|
+
|
|
10
|
+
none: 0,
|
|
9
11
|
},
|
|
10
12
|
|
|
11
13
|
boxShadow: {
|
|
12
|
-
weak: '0px 4px 8px rgba(
|
|
13
|
-
moderate: '0px
|
|
14
|
-
intense: '0px
|
|
15
|
-
strong: '0px
|
|
14
|
+
weak: '0px 0px 4px rgba(0, 0, 0, 0.08), 0px 4px 8px rgba(0, 0, 0, 0.08)',
|
|
15
|
+
moderate: '0px 0px 4px rgba(0, 0, 0, 0.08), 0px 6px 12px rgba(0, 0, 0, 0.12)',
|
|
16
|
+
intense: '0px 0px 4px rgba(0, 0, 0, 0.08), 0px 8px 16px rgba(0, 0, 0, 0.16)',
|
|
17
|
+
strong: '0px 0px 4px rgba(0, 0, 0, 0.08), 0px 12px 20px rgba(0, 0, 0, 0.2)',
|
|
16
18
|
},
|
|
17
19
|
}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
export const screens = {
|
|
2
|
-
xsm: { max: '767px' },
|
|
3
|
-
sm: { min: '768px' },
|
|
4
|
-
md: { min: '1024px' },
|
|
5
|
-
lg: { min: '1366px' },
|
|
6
|
-
xl: { min: '1440px' },
|
|
2
|
+
// xsm: { max: '767px' },
|
|
3
|
+
// sm: { min: '768px' },
|
|
4
|
+
// md: { min: '1024px' },
|
|
5
|
+
// lg: { min: '1366px' },
|
|
6
|
+
// xl: { min: '1440px' },
|
|
7
|
+
|
|
8
|
+
'xsm:site': { max: '767px' },
|
|
9
|
+
'sm:site': { min: '768px' },
|
|
10
|
+
'md:site': { min: '1024px' },
|
|
11
|
+
'lg:site': { min: '1180px' },
|
|
12
|
+
'xlg:site': { min: '1440px' },
|
|
13
|
+
|
|
14
|
+
'xsm:system': { max: '767px' },
|
|
15
|
+
'sm:system': { min: '768px' },
|
|
16
|
+
'md:system': { min: '1024px' },
|
|
17
|
+
'lg:system': { min: '1366px' },
|
|
7
18
|
}
|
package/vite.config.ts
CHANGED
|
@@ -73,7 +73,12 @@ export default defineConfig({
|
|
|
73
73
|
environment: 'jsdom',
|
|
74
74
|
include: ['src/components/**/*.spec.ts', 'src/composables/**/*.spec.ts'],
|
|
75
75
|
coverage: {
|
|
76
|
+
provider: 'c8',
|
|
76
77
|
extension: 'vue',
|
|
78
|
+
lines: 90,
|
|
79
|
+
branches: 90,
|
|
80
|
+
statements: 90,
|
|
81
|
+
functions: 90,
|
|
77
82
|
},
|
|
78
83
|
deps: {
|
|
79
84
|
inline: ['@vue', '@vueuse'],
|
package/cli/build/cli.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
var gluegun_1 = require("gluegun");
|
|
40
|
-
/**
|
|
41
|
-
* Create the cli and kick it off
|
|
42
|
-
*/
|
|
43
|
-
function run(argv) {
|
|
44
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
45
|
-
var cli, toolbox;
|
|
46
|
-
return __generator(this, function (_a) {
|
|
47
|
-
switch (_a.label) {
|
|
48
|
-
case 0:
|
|
49
|
-
cli = (0, gluegun_1.build)()
|
|
50
|
-
.brand('girassol-cli')
|
|
51
|
-
.src(__dirname)
|
|
52
|
-
.plugins('../node_modules', { matching: 'girassol-cli*', hidden: true })
|
|
53
|
-
.help() // provides default for help, h, --help, -h
|
|
54
|
-
.version() // provides default for version, v, --version, -v
|
|
55
|
-
.create();
|
|
56
|
-
return [4 /*yield*/, cli.run(argv)
|
|
57
|
-
// send it back (for testing, mostly)
|
|
58
|
-
];
|
|
59
|
-
case 1:
|
|
60
|
-
toolbox = _a.sent();
|
|
61
|
-
// send it back (for testing, mostly)
|
|
62
|
-
return [2 /*return*/, toolbox];
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
module.exports = { run: run };
|
|
68
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NsaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLG1DQUErQjtBQUUvQjs7R0FFRztBQUNILFNBQWUsR0FBRyxDQUFDLElBQVM7Ozs7OztvQkFFcEIsR0FBRyxHQUFHLElBQUEsZUFBSyxHQUFFO3lCQUNoQixLQUFLLENBQUMsY0FBYyxDQUFDO3lCQUNyQixHQUFHLENBQUMsU0FBUyxDQUFDO3lCQUNkLE9BQU8sQ0FBQyxpQkFBaUIsRUFBRSxFQUFFLFFBQVEsRUFBRSxlQUFlLEVBQUUsTUFBTSxFQUFFLElBQUksRUFBRSxDQUFDO3lCQUN2RSxJQUFJLEVBQUUsQ0FBQywyQ0FBMkM7eUJBQ2xELE9BQU8sRUFBRSxDQUFDLGlEQUFpRDt5QkFDM0QsTUFBTSxFQUFFLENBQUE7b0JBS0sscUJBQU0sR0FBRyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUM7d0JBRW5DLHFDQUFxQztzQkFGRjs7b0JBQTdCLE9BQU8sR0FBRyxTQUFtQjtvQkFFbkMscUNBQXFDO29CQUNyQyxzQkFBTyxPQUFPLEVBQUE7Ozs7Q0FDZjtBQUVELE1BQU0sQ0FBQyxPQUFPLEdBQUcsRUFBRSxHQUFHLEtBQUEsRUFBRSxDQUFBIn0=
|