@solfacil/girassol 0.3.1 → 0.3.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.
Files changed (55) hide show
  1. package/.vscode/settings.json +1 -0
  2. package/dist/components.d.ts +3 -5
  3. package/dist/components.json +1 -1
  4. package/dist/girassol.es.js +3371 -1299
  5. package/dist/girassol.umd.js +14 -6
  6. package/dist/style.css +1 -1
  7. package/dist/theme/solfacil/index.d.ts +1 -0
  8. package/dist/theme/solfacil/utilities.d.ts +1 -0
  9. package/dist/types/components/accordion/Accordion.vue.d.ts +2 -2
  10. package/dist/types/components/forms/button/button/Button.vue.d.ts +2 -2
  11. package/dist/types/components/forms/button/button-destructive/ButtonDestructive.vue.d.ts +2 -2
  12. package/dist/types/components/forms/checkbox/checkbox/Checkbox.vue.d.ts +12 -80
  13. package/dist/types/components/forms/checkbox/checkbox-group/CheckboxGroup.vue.d.ts +55 -16
  14. package/dist/types/components/forms/inputs/index.d.ts +4 -0
  15. package/dist/types/components/forms/inputs/input-core/Input.vue.d.ts +44 -0
  16. package/dist/types/components/forms/{input → inputs/input-core}/input.spec.d.ts +0 -0
  17. package/dist/types/components/forms/inputs/input-password/InputPassword.vue.d.ts +58 -0
  18. package/dist/types/components/{dropdown/dropdown.spec.d.ts → forms/inputs/input-password/input-password.spec.d.ts} +0 -0
  19. package/dist/types/components/forms/{textarea/Textarea.vue.d.ts → inputs/input-text/InputText.vue.d.ts} +92 -52
  20. package/dist/types/components/forms/{textarea/textarea.spec.d.ts → inputs/input-text/input-text.spec.d.ts} +0 -0
  21. package/dist/types/components/forms/inputs/input-textarea/InputTextarea.vue.d.ts +70 -0
  22. package/dist/types/components/forms/{textfield/textfield-password.spec.d.ts → inputs/input-textarea/textarea.spec.d.ts} +0 -0
  23. package/dist/types/components/forms/inputs/types.d.ts +24 -0
  24. package/dist/types/components/forms/radio/radio/Radio.vue.d.ts +11 -77
  25. package/dist/types/components/forms/radio/radio-group/RadioGroup.vue.d.ts +53 -14
  26. package/dist/types/components/forms/select/ListOption.vue.d.ts +4 -9
  27. package/dist/types/components/forms/select/Select.vue.d.ts +139 -184
  28. package/dist/types/components/forms/select/types.d.ts +23 -0
  29. package/dist/types/components/forms/switch/Switch.vue.d.ts +18 -102
  30. package/dist/types/components/informations/chip/Chip.vue.d.ts +5 -5
  31. package/dist/types/components/loader/CircleLoader.vue.d.ts +15 -68
  32. package/dist/types/components/menus/menu/Menu.vue.d.ts +2 -2
  33. package/dist/types/components/menus/menu-navigation-links/MenuNavigationLinks.vue.d.ts +2 -2
  34. package/dist/types/composables/use-mask/index.d.ts +18 -0
  35. package/dist/types/composables/use-toast/Toast.vue.d.ts +2 -2
  36. package/dist/types/composables/use-validate-field/index.d.ts +5 -0
  37. package/dist/types/composables/use-validate-field/types.d.ts +22 -0
  38. package/dist/types/index.d.ts +1183 -1730
  39. package/package.json +7 -5
  40. package/theme/solfacil/colors.ts +1 -1
  41. package/theme/solfacil/index.ts +2 -1
  42. package/theme/solfacil/utilities.ts +27 -0
  43. package/windi.config.ts +12 -11
  44. package/dist/README.md.d.ts +0 -2
  45. package/dist/cli/readme.md.d.ts +0 -2
  46. package/dist/theme/safelist.d.ts +0 -14
  47. package/dist/types/components/dropdown/Dropdown.vue.d.ts +0 -238
  48. package/dist/types/components/dropdown/index.d.ts +0 -2
  49. package/dist/types/components/forms/input/Input.vue.d.ts +0 -93
  50. package/dist/types/components/forms/input/index.d.ts +0 -2
  51. package/dist/types/components/forms/textarea/index.d.ts +0 -2
  52. package/dist/types/components/forms/textfield/Textfield.vue.d.ts +0 -129
  53. package/dist/types/components/forms/textfield/TextfieldPassword.vue.d.ts +0 -93
  54. package/dist/types/components/forms/textfield/index.d.ts +0 -3
  55. package/dist/types/components/forms/textfield/textfield.spec.d.ts +0 -1
@@ -1,74 +1,21 @@
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';
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ size: 'sm' | 'md' | 'lg';
64
3
  dark?: boolean | undefined;
4
+ title?: string | undefined;
65
5
  }>, {
66
6
  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
- });
7
+ title: string;
8
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ size: 'sm' | 'md' | 'lg';
10
+ dark?: boolean | undefined;
11
+ title?: string | undefined;
12
+ }>, {
13
+ size: string;
14
+ title: string;
15
+ }>>>, {
16
+ title: string;
17
+ size: 'sm' | 'md' | 'lg';
18
+ }>;
72
19
  export default _default;
73
20
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
74
21
  declare type __VLS_TypePropsToRuntimeProps<T> = {
@@ -33,7 +33,7 @@ declare const _default: {
33
33
  }>, {
34
34
  label: string;
35
35
  position: string;
36
- }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
36
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
37
37
  label: string;
38
38
  position: ("bottom" | "top") | ("left" | "right");
39
39
  }> & {
@@ -74,7 +74,7 @@ declare const _default: {
74
74
  }>, {
75
75
  label: string;
76
76
  position: string;
77
- }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
77
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
78
78
  label: string;
79
79
  position: ("bottom" | "top") | ("left" | "right");
80
80
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
@@ -25,7 +25,7 @@ declare const _default: {
25
25
  id: string;
26
26
  label?: string | undefined;
27
27
  linkItems: LinkData[];
28
- }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
28
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}> & {
29
29
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
30
30
  created?: ((() => void) | (() => void)[]) | undefined;
31
31
  beforeMount?: ((() => void) | (() => void)[]) | undefined;
@@ -57,7 +57,7 @@ declare const _default: {
57
57
  id: string;
58
58
  label?: string | undefined;
59
59
  linkItems: LinkData[];
60
- }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
60
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
61
61
  $slots: {
62
62
  label: (_: {
63
63
  isOpen: boolean;
@@ -0,0 +1,18 @@
1
+ import { maska } from 'maska';
2
+ export declare const MaskPresets: {
3
+ readonly CPF: "###.###.###-##";
4
+ readonly CNPJ: "##.###.###/#####-##";
5
+ readonly CPF_CNPJ: readonly ["###.###.###-##", "##.###.###/#####-##"];
6
+ readonly MobilePhoneDDD: "(##) # ####-####";
7
+ };
8
+ export declare type Mask = string | string[] | {
9
+ preset: keyof typeof MaskPresets;
10
+ mask?: string;
11
+ tokens?: any;
12
+ preprocessor?: (value: string) => string;
13
+ };
14
+ export declare const vMask: typeof maska;
15
+ export declare function useMask(maskProp?: Mask): {
16
+ vMask: typeof maska;
17
+ maskValue: import("vue").ComputedRef<readonly ["###.###.###-##", "##.###.###/#####-##"] | Mask | undefined>;
18
+ };
@@ -66,7 +66,7 @@ declare const _default: {
66
66
  hideProgressBar: boolean | undefined;
67
67
  offset: number;
68
68
  visible: boolean;
69
- }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
69
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
70
70
  type: ToastType;
71
71
  position: Position;
72
72
  offset: number;
@@ -139,7 +139,7 @@ declare const _default: {
139
139
  hideProgressBar: boolean | undefined;
140
140
  offset: number;
141
141
  visible: boolean;
142
- }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
142
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
143
143
  type: ToastType;
144
144
  position: Position;
145
145
  offset: number;
@@ -0,0 +1,5 @@
1
+ import type { ParentValidation } from './types';
2
+ export declare function useValidateField<T = unknown>(name: string, parentValidation?: ParentValidation<T>): import("vee-validate").FieldContext<T> | {
3
+ value: import("vue").Ref<unknown>;
4
+ errorMessage: import("vue").ComputedRef<string | null> | undefined;
5
+ };
@@ -0,0 +1,22 @@
1
+ import type { useField } from 'vee-validate';
2
+ import type { ComputedRef, Ref } from 'vue';
3
+ declare type Option = {
4
+ name: string;
5
+ value: string;
6
+ };
7
+ declare type Error = ComputedRef<string | null>;
8
+ declare type ComponentType = 'input' | 'select' | 'checkbox' | 'radio';
9
+ export interface ParentValidation<T = unknown> {
10
+ error?: Error;
11
+ modelValue?: T;
12
+ component?: ComponentType;
13
+ selected?: Option | Option[];
14
+ useFieldParent?: typeof useField;
15
+ rules?: Parameters<typeof useField>['1'];
16
+ opts?: Parameters<typeof useField<T>>['2'];
17
+ }
18
+ export declare type ValidateFieldReturn<T = string> = {
19
+ value: Ref<T>;
20
+ errorMessage: ComputedRef<string | null> | undefined;
21
+ };
22
+ export {};