@solfacil/girassol 0.23.0 → 0.24.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.
@@ -1,4 +1,5 @@
1
+ import SolInputCurrency from './input-currency/InputCurrency.vue';
1
2
  import SolInputText from './input-text/InputText.vue';
2
3
  import SolInputTextPassword from './input-password/InputPassword.vue';
3
4
  import SolInputTextarea from './input-textarea/InputTextarea.vue';
4
- export { SolInputText, SolInputTextPassword, SolInputTextarea, };
5
+ export { SolInputCurrency, SolInputText, SolInputTextPassword, SolInputTextarea, };
@@ -0,0 +1,77 @@
1
+ import type { InputText } from '../types';
2
+ import type { ParentValidation } from '../../../../composables/use-validate-field/types';
3
+ type ParentValidationInput = ParentValidation<string>;
4
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
+ id: InputText['id'];
6
+ name: InputText['name'];
7
+ class?: InputText['class'];
8
+ label?: InputText['label'];
9
+ helperText?: InputText['helperText'];
10
+ successText?: InputText['successText'];
11
+ loadingText?: InputText['loadingText'];
12
+ required?: InputText['required'];
13
+ disabled?: InputText['disabled'];
14
+ isSuccess?: InputText['isSuccess'];
15
+ isLoading?: InputText['isLoading'];
16
+ size?: InputText['size'];
17
+ error?: string | null | undefined;
18
+ modelValue?: string | undefined;
19
+ placeholder?: string | undefined;
20
+ useField?: ParentValidationInput['useFieldParent'];
21
+ rules?: ParentValidationInput['rules'];
22
+ opts?: ParentValidationInput['opts'];
23
+ }>, {
24
+ size: string;
25
+ error: null;
26
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
+ "update:modelValue": (event: number) => void;
28
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
29
+ id: InputText['id'];
30
+ name: InputText['name'];
31
+ class?: InputText['class'];
32
+ label?: InputText['label'];
33
+ helperText?: InputText['helperText'];
34
+ successText?: InputText['successText'];
35
+ loadingText?: InputText['loadingText'];
36
+ required?: InputText['required'];
37
+ disabled?: InputText['disabled'];
38
+ isSuccess?: InputText['isSuccess'];
39
+ isLoading?: InputText['isLoading'];
40
+ size?: InputText['size'];
41
+ error?: string | null | undefined;
42
+ modelValue?: string | undefined;
43
+ placeholder?: string | undefined;
44
+ useField?: ParentValidationInput['useFieldParent'];
45
+ rules?: ParentValidationInput['rules'];
46
+ opts?: ParentValidationInput['opts'];
47
+ }>, {
48
+ size: string;
49
+ error: null;
50
+ }>>> & {
51
+ "onUpdate:modelValue"?: ((event: number) => any) | undefined;
52
+ }, {
53
+ size: "small" | "medium";
54
+ error: string | null;
55
+ }>, {
56
+ icon: (_: {}) => any;
57
+ }>;
58
+ export default _default;
59
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
60
+ type __VLS_TypePropsToRuntimeProps<T> = {
61
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
62
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
63
+ } : {
64
+ type: import('vue').PropType<T[K]>;
65
+ required: true;
66
+ };
67
+ };
68
+ type __VLS_WithDefaults<P, D> = {
69
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
70
+ default: D[K];
71
+ } : P[K];
72
+ };
73
+ type __VLS_WithTemplateSlots<T, S> = T & {
74
+ new (): {
75
+ $slots: S;
76
+ };
77
+ };
@@ -1,6 +1,6 @@
1
1
  import type { App } from 'vue';
2
2
  import { SolButton, SolButtonDestructive } from './components/buttons';
3
- import { SolInputText, SolInputTextPassword, SolInputTextarea } from './components/forms/inputs';
3
+ import { SolInputCurrency, SolInputText, SolInputTextPassword, SolInputTextarea } from './components/forms/inputs';
4
4
  import { SolSwitch } from './components/forms/switch';
5
5
  import { SolRadio, SolRadioGroup } from './components/forms/radio';
6
6
  import { SolCheckbox, SolCheckboxGroup } from './components/forms/checkbox';
@@ -444,6 +444,326 @@ export declare const components: {
444
444
  error: string | null;
445
445
  resize: "none" | "vertical" | "horizontal" | "both";
446
446
  }>;
447
+ SolInputCurrency: {
448
+ new (...args: any[]): {
449
+ $: import("vue").ComponentInternalInstance;
450
+ $data: {};
451
+ $props: Partial<{
452
+ size: "small" | "medium";
453
+ error: string | null;
454
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
455
+ id: {
456
+ type: import("vue").PropType<string>;
457
+ required: true;
458
+ };
459
+ disabled: {
460
+ type: import("vue").PropType<boolean>;
461
+ };
462
+ required: {
463
+ type: import("vue").PropType<boolean>;
464
+ };
465
+ class: {
466
+ type: import("vue").PropType<string>;
467
+ };
468
+ label: {
469
+ type: import("vue").PropType<string>;
470
+ };
471
+ size: {
472
+ type: import("vue").PropType<"small" | "medium">;
473
+ } & {
474
+ default: string;
475
+ };
476
+ error: {
477
+ type: import("vue").PropType<string | null>;
478
+ } & {
479
+ default: null;
480
+ };
481
+ name: {
482
+ type: import("vue").PropType<string>;
483
+ required: true;
484
+ };
485
+ placeholder: {
486
+ type: import("vue").PropType<string>;
487
+ };
488
+ modelValue: {
489
+ type: import("vue").PropType<string>;
490
+ };
491
+ helperText: {
492
+ type: import("vue").PropType<string>;
493
+ };
494
+ successText: {
495
+ type: import("vue").PropType<string>;
496
+ };
497
+ loadingText: {
498
+ type: import("vue").PropType<string>;
499
+ };
500
+ isSuccess: {
501
+ type: import("vue").PropType<boolean>;
502
+ };
503
+ isLoading: {
504
+ type: import("vue").PropType<boolean>;
505
+ };
506
+ useField: {
507
+ type: import("vue").PropType<typeof import("vee-validate").useField>;
508
+ };
509
+ rules: {
510
+ type: import("vue").PropType<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
511
+ validate(value: unknown, options: Record<string, any>): Promise<unknown>;
512
+ } | import("vue").Ref<import("vee-validate").RuleExpression<unknown>>>;
513
+ };
514
+ opts: {
515
+ type: import("vue").PropType<Partial<import("vee-validate").FieldOptions<string>>>;
516
+ };
517
+ }>> & {
518
+ "onUpdate:modelValue"?: ((event: number) => any) | undefined;
519
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "error">;
520
+ $attrs: {
521
+ [x: string]: unknown;
522
+ };
523
+ $refs: {
524
+ [x: string]: unknown;
525
+ };
526
+ $slots: Readonly<{
527
+ [name: string]: import("vue").Slot | undefined;
528
+ }>;
529
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
530
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
531
+ $emit: (event: "update:modelValue", event: number) => void;
532
+ $el: any;
533
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
534
+ id: {
535
+ type: import("vue").PropType<string>;
536
+ required: true;
537
+ };
538
+ disabled: {
539
+ type: import("vue").PropType<boolean>;
540
+ };
541
+ required: {
542
+ type: import("vue").PropType<boolean>;
543
+ };
544
+ class: {
545
+ type: import("vue").PropType<string>;
546
+ };
547
+ label: {
548
+ type: import("vue").PropType<string>;
549
+ };
550
+ size: {
551
+ type: import("vue").PropType<"small" | "medium">;
552
+ } & {
553
+ default: string;
554
+ };
555
+ error: {
556
+ type: import("vue").PropType<string | null>;
557
+ } & {
558
+ default: null;
559
+ };
560
+ name: {
561
+ type: import("vue").PropType<string>;
562
+ required: true;
563
+ };
564
+ placeholder: {
565
+ type: import("vue").PropType<string>;
566
+ };
567
+ modelValue: {
568
+ type: import("vue").PropType<string>;
569
+ };
570
+ helperText: {
571
+ type: import("vue").PropType<string>;
572
+ };
573
+ successText: {
574
+ type: import("vue").PropType<string>;
575
+ };
576
+ loadingText: {
577
+ type: import("vue").PropType<string>;
578
+ };
579
+ isSuccess: {
580
+ type: import("vue").PropType<boolean>;
581
+ };
582
+ isLoading: {
583
+ type: import("vue").PropType<boolean>;
584
+ };
585
+ useField: {
586
+ type: import("vue").PropType<typeof import("vee-validate").useField>;
587
+ };
588
+ rules: {
589
+ type: import("vue").PropType<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
590
+ validate(value: unknown, options: Record<string, any>): Promise<unknown>;
591
+ } | import("vue").Ref<import("vee-validate").RuleExpression<unknown>>>;
592
+ };
593
+ opts: {
594
+ type: import("vue").PropType<Partial<import("vee-validate").FieldOptions<string>>>;
595
+ };
596
+ }>> & {
597
+ "onUpdate:modelValue"?: ((event: number) => any) | undefined;
598
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
599
+ "update:modelValue": (event: number) => void;
600
+ }, string, {
601
+ size: "small" | "medium";
602
+ error: string | null;
603
+ }, {}, string> & {
604
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
605
+ created?: ((() => void) | (() => void)[]) | undefined;
606
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
607
+ mounted?: ((() => void) | (() => void)[]) | undefined;
608
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
609
+ updated?: ((() => void) | (() => void)[]) | undefined;
610
+ activated?: ((() => void) | (() => void)[]) | undefined;
611
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
612
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
613
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
614
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
615
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
616
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
617
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
618
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
619
+ };
620
+ $forceUpdate: () => void;
621
+ $nextTick: typeof import("vue").nextTick;
622
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
623
+ } & Readonly<import("vue").ExtractPropTypes<{
624
+ id: {
625
+ type: import("vue").PropType<string>;
626
+ required: true;
627
+ };
628
+ disabled: {
629
+ type: import("vue").PropType<boolean>;
630
+ };
631
+ required: {
632
+ type: import("vue").PropType<boolean>;
633
+ };
634
+ class: {
635
+ type: import("vue").PropType<string>;
636
+ };
637
+ label: {
638
+ type: import("vue").PropType<string>;
639
+ };
640
+ size: {
641
+ type: import("vue").PropType<"small" | "medium">;
642
+ } & {
643
+ default: string;
644
+ };
645
+ error: {
646
+ type: import("vue").PropType<string | null>;
647
+ } & {
648
+ default: null;
649
+ };
650
+ name: {
651
+ type: import("vue").PropType<string>;
652
+ required: true;
653
+ };
654
+ placeholder: {
655
+ type: import("vue").PropType<string>;
656
+ };
657
+ modelValue: {
658
+ type: import("vue").PropType<string>;
659
+ };
660
+ helperText: {
661
+ type: import("vue").PropType<string>;
662
+ };
663
+ successText: {
664
+ type: import("vue").PropType<string>;
665
+ };
666
+ loadingText: {
667
+ type: import("vue").PropType<string>;
668
+ };
669
+ isSuccess: {
670
+ type: import("vue").PropType<boolean>;
671
+ };
672
+ isLoading: {
673
+ type: import("vue").PropType<boolean>;
674
+ };
675
+ useField: {
676
+ type: import("vue").PropType<typeof import("vee-validate").useField>;
677
+ };
678
+ rules: {
679
+ type: import("vue").PropType<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
680
+ validate(value: unknown, options: Record<string, any>): Promise<unknown>;
681
+ } | import("vue").Ref<import("vee-validate").RuleExpression<unknown>>>;
682
+ };
683
+ opts: {
684
+ type: import("vue").PropType<Partial<import("vee-validate").FieldOptions<string>>>;
685
+ };
686
+ }>> & {
687
+ "onUpdate:modelValue"?: ((event: number) => any) | undefined;
688
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
689
+ __isFragment?: undefined;
690
+ __isTeleport?: undefined;
691
+ __isSuspense?: undefined;
692
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
693
+ id: {
694
+ type: import("vue").PropType<string>;
695
+ required: true;
696
+ };
697
+ disabled: {
698
+ type: import("vue").PropType<boolean>;
699
+ };
700
+ required: {
701
+ type: import("vue").PropType<boolean>;
702
+ };
703
+ class: {
704
+ type: import("vue").PropType<string>;
705
+ };
706
+ label: {
707
+ type: import("vue").PropType<string>;
708
+ };
709
+ size: {
710
+ type: import("vue").PropType<"small" | "medium">;
711
+ } & {
712
+ default: string;
713
+ };
714
+ error: {
715
+ type: import("vue").PropType<string | null>;
716
+ } & {
717
+ default: null;
718
+ };
719
+ name: {
720
+ type: import("vue").PropType<string>;
721
+ required: true;
722
+ };
723
+ placeholder: {
724
+ type: import("vue").PropType<string>;
725
+ };
726
+ modelValue: {
727
+ type: import("vue").PropType<string>;
728
+ };
729
+ helperText: {
730
+ type: import("vue").PropType<string>;
731
+ };
732
+ successText: {
733
+ type: import("vue").PropType<string>;
734
+ };
735
+ loadingText: {
736
+ type: import("vue").PropType<string>;
737
+ };
738
+ isSuccess: {
739
+ type: import("vue").PropType<boolean>;
740
+ };
741
+ isLoading: {
742
+ type: import("vue").PropType<boolean>;
743
+ };
744
+ useField: {
745
+ type: import("vue").PropType<typeof import("vee-validate").useField>;
746
+ };
747
+ rules: {
748
+ type: import("vue").PropType<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
749
+ validate(value: unknown, options: Record<string, any>): Promise<unknown>;
750
+ } | import("vue").Ref<import("vee-validate").RuleExpression<unknown>>>;
751
+ };
752
+ opts: {
753
+ type: import("vue").PropType<Partial<import("vee-validate").FieldOptions<string>>>;
754
+ };
755
+ }>> & {
756
+ "onUpdate:modelValue"?: ((event: number) => any) | undefined;
757
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
758
+ "update:modelValue": (event: number) => void;
759
+ }, string, {
760
+ size: "small" | "medium";
761
+ error: string | null;
762
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
763
+ $slots: {
764
+ icon: (_: {}) => any;
765
+ };
766
+ });
447
767
  SolInputText: {
448
768
  new (...args: any[]): {
449
769
  $: import("vue").ComponentInternalInstance;
@@ -5495,4 +5815,4 @@ export declare const components: {
5495
5815
  });
5496
5816
  };
5497
5817
  export declare function install(App: App): void;
5498
- export { SolButton, SolButtonDestructive, SolInputTextarea, SolInputText, SolInputTextPassword, SolRadio, SolRadioGroup, SolCheckbox, SolCheckboxGroup, SolSwitch, SolSelect, SolRemovableChip, SolSelectableChip, SolTag, SolAlert, SolAccordion, SolList, SolTabs, SolMenu, SolMenuItem, SolMenuItemLink, SolMenuNavigationLinks, SolModal, SolOnboarding, SolPagination, SolEmptyState, SolSearch, SolDatePicker, SolCollapsible, SolSteps, SolTextValue, SolFileUpload, SolMenuItemSeparator, SolBreadcrumb, SolDivider, SolLink, };
5818
+ export { SolButton, SolButtonDestructive, SolInputTextarea, SolInputCurrency, SolInputText, SolInputTextPassword, SolRadio, SolRadioGroup, SolCheckbox, SolCheckboxGroup, SolSwitch, SolSelect, SolRemovableChip, SolSelectableChip, SolTag, SolAlert, SolAccordion, SolList, SolTabs, SolMenu, SolMenuItem, SolMenuItemLink, SolMenuNavigationLinks, SolModal, SolOnboarding, SolPagination, SolEmptyState, SolSearch, SolDatePicker, SolCollapsible, SolSteps, SolTextValue, SolFileUpload, SolMenuItemSeparator, SolBreadcrumb, SolDivider, SolLink, };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@solfacil/girassol",
3
3
  "description": "Girassol design system",
4
- "version": "0.23.0",
4
+ "version": "0.24.0",
5
5
  "license": "MIT",
6
6
  "authors": [
7
7
  {
@@ -69,7 +69,8 @@
69
69
  "gluegun": "latest",
70
70
  "maska": "^1.5.2",
71
71
  "vee-validate": "^4.7.3",
72
- "vue": "^3.2.45"
72
+ "vue": "^3.2.45",
73
+ "vue-currency-input": "^3.0.3"
73
74
  },
74
75
  "devDependencies": {
75
76
  "@antfu/eslint-config": "^0.34.1",
@@ -77,7 +78,7 @@
77
78
  "@babel/preset-env": "^7.20.2",
78
79
  "@commitlint/cli": "^17.3.0",
79
80
  "@commitlint/config-conventional": "^17.3.0",
80
- "@iconify/json": "^2.2.8",
81
+ "@iconify/json": "2.2.8",
81
82
  "@semantic-release/changelog": "^6.0.2",
82
83
  "@semantic-release/git": "^10.0.1",
83
84
  "@semantic-release/npm": "^9.0.2",
package/vite.config.ts CHANGED
@@ -83,10 +83,10 @@ export default defineConfig({
83
83
  coverage: {
84
84
  provider: 'c8',
85
85
  extension: 'vue',
86
- lines: 90,
87
- branches: 90,
88
- statements: 90,
89
- functions: 90,
86
+ lines: 70,
87
+ branches: 70,
88
+ statements: 70,
89
+ functions: 70,
90
90
  },
91
91
  deps: {
92
92
  inline: ['@vue', '@vueuse'],