@solfacil/girassol 0.2.12 → 0.3.2

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 (36) hide show
  1. package/dist/components.d.ts +2 -3
  2. package/dist/components.json +1 -1
  3. package/dist/girassol.es.js +3010 -985
  4. package/dist/girassol.umd.js +10 -6
  5. package/dist/style.css +1 -1
  6. package/dist/types/components/forms/button/{Button.vue.d.ts → button/Button.vue.d.ts} +0 -0
  7. package/dist/types/components/forms/button/{button.spec.d.ts → button/button.spec.d.ts} +0 -0
  8. package/dist/types/components/forms/button/{ButtonDestructive.vue.d.ts → button-destructive/ButtonDestructive.vue.d.ts} +0 -0
  9. package/dist/types/components/forms/button/index.d.ts +2 -2
  10. package/dist/types/components/forms/checkbox/{Checkbox.vue.d.ts → checkbox/Checkbox.vue.d.ts} +12 -8
  11. package/dist/types/components/forms/checkbox/{checkbox.spec.d.ts → checkbox/checkbox.spec.d.ts} +0 -0
  12. package/dist/types/components/forms/checkbox/{CheckboxGroup.vue.d.ts → checkbox-group/CheckboxGroup.vue.d.ts} +12 -12
  13. package/dist/types/components/forms/checkbox/{checkbox-group.spec.d.ts → checkbox-group/checkbox-group.spec.d.ts} +0 -0
  14. package/dist/types/components/forms/checkbox/index.d.ts +2 -2
  15. package/dist/types/components/forms/checkbox/{checkbox-type.d.ts → type.d.ts} +1 -0
  16. package/dist/types/components/forms/inputs/index.d.ts +3 -0
  17. package/dist/types/components/forms/{input → inputs/input-core}/Input.vue.d.ts +47 -23
  18. package/dist/types/components/forms/{input → inputs/input-core}/input.spec.d.ts +0 -0
  19. package/dist/types/components/forms/{textfield/TextfieldPassword.vue.d.ts → inputs/input-password/InputPassword.vue.d.ts} +76 -23
  20. package/dist/types/components/forms/{textfield/textfield-password.spec.d.ts → inputs/input-password/input-password.spec.d.ts} +0 -0
  21. package/dist/types/components/forms/inputs/input-text/InputText.vue.d.ts +181 -0
  22. package/dist/types/components/forms/{textfield/textfield.spec.d.ts → inputs/input-text/input-text.spec.d.ts} +0 -0
  23. package/dist/types/components/forms/inputs/types.d.ts +24 -0
  24. package/dist/types/components/forms/switch/Switch.vue.d.ts +52 -22
  25. package/dist/types/components/loader/CircleLoader.vue.d.ts +19 -8
  26. package/dist/types/components/menus/menu/Menu.vue.d.ts +7 -7
  27. package/dist/types/composables/use-validate-field/index.d.ts +5 -0
  28. package/dist/types/composables/use-validate-field/types.d.ts +9 -0
  29. package/dist/types/index.d.ts +544 -302
  30. package/package.json +22 -19
  31. package/theme/solfacil/colors.ts +1 -1
  32. package/windi.config.ts +11 -11
  33. package/dist/theme/safelist.d.ts +0 -14
  34. package/dist/types/components/forms/input/index.d.ts +0 -2
  35. package/dist/types/components/forms/textfield/Textfield.vue.d.ts +0 -129
  36. package/dist/types/components/forms/textfield/index.d.ts +0 -3
@@ -3,13 +3,16 @@ declare const _default: {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
5
  $props: Partial<{
6
- size: 'small' | 'medium' | 'large';
6
+ title: string;
7
+ size: 'sm' | 'md' | 'lg';
7
8
  }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
- size: 'small' | 'medium' | 'large';
9
+ size: 'sm' | 'md' | 'lg';
9
10
  dark?: boolean | undefined;
11
+ title?: string | undefined;
10
12
  }>, {
11
13
  size: string;
12
- }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size">;
14
+ title: string;
15
+ }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "size">;
13
16
  $attrs: {
14
17
  [x: string]: unknown;
15
18
  };
@@ -24,12 +27,15 @@ declare const _default: {
24
27
  $emit: (event: string, ...args: any[]) => void;
25
28
  $el: any;
26
29
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
27
- size: 'small' | 'medium' | 'large';
30
+ size: 'sm' | 'md' | 'lg';
28
31
  dark?: boolean | undefined;
32
+ title?: string | undefined;
29
33
  }>, {
30
34
  size: string;
35
+ title: string;
31
36
  }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
32
- size: 'small' | 'medium' | 'large';
37
+ title: string;
38
+ size: 'sm' | 'md' | 'lg';
33
39
  }> & {
34
40
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
35
41
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -51,21 +57,26 @@ declare const _default: {
51
57
  $nextTick: typeof import("vue").nextTick;
52
58
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
53
59
  } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
54
- size: 'small' | 'medium' | 'large';
60
+ size: 'sm' | 'md' | 'lg';
55
61
  dark?: boolean | undefined;
62
+ title?: string | undefined;
56
63
  }>, {
57
64
  size: string;
65
+ title: string;
58
66
  }>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
59
67
  __isFragment?: undefined;
60
68
  __isTeleport?: undefined;
61
69
  __isSuspense?: undefined;
62
70
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
63
- size: 'small' | 'medium' | 'large';
71
+ size: 'sm' | 'md' | 'lg';
64
72
  dark?: boolean | undefined;
73
+ title?: string | undefined;
65
74
  }>, {
66
75
  size: string;
76
+ title: string;
67
77
  }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
68
- size: 'small' | 'medium' | 'large';
78
+ title: string;
79
+ size: 'sm' | 'md' | 'lg';
69
80
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
70
81
  $slots: {};
71
82
  });
@@ -4,11 +4,11 @@ declare const _default: {
4
4
  $data: {};
5
5
  $props: Partial<{
6
6
  label: string;
7
- position: ("bottom" | "top") | ("right" | "left");
7
+ position: ("bottom" | "top") | ("left" | "right");
8
8
  }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
9
  id: string;
10
10
  label?: string | undefined;
11
- position?: (("bottom" | "top") | ("right" | "left")) | undefined;
11
+ position?: (("bottom" | "top") | ("left" | "right")) | undefined;
12
12
  }>, {
13
13
  label: string;
14
14
  position: string;
@@ -29,13 +29,13 @@ declare const _default: {
29
29
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
30
30
  id: string;
31
31
  label?: string | undefined;
32
- position?: (("bottom" | "top") | ("right" | "left")) | undefined;
32
+ position?: (("bottom" | "top") | ("left" | "right")) | undefined;
33
33
  }>, {
34
34
  label: string;
35
35
  position: string;
36
36
  }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
37
37
  label: string;
38
- position: ("bottom" | "top") | ("right" | "left");
38
+ position: ("bottom" | "top") | ("left" | "right");
39
39
  }> & {
40
40
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
41
41
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -59,7 +59,7 @@ declare const _default: {
59
59
  } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
60
60
  id: string;
61
61
  label?: string | undefined;
62
- position?: (("bottom" | "top") | ("right" | "left")) | undefined;
62
+ position?: (("bottom" | "top") | ("left" | "right")) | undefined;
63
63
  }>, {
64
64
  label: string;
65
65
  position: string;
@@ -70,13 +70,13 @@ declare const _default: {
70
70
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
71
71
  id: string;
72
72
  label?: string | undefined;
73
- position?: (("bottom" | "top") | ("right" | "left")) | undefined;
73
+ position?: (("bottom" | "top") | ("left" | "right")) | undefined;
74
74
  }>, {
75
75
  label: string;
76
76
  position: string;
77
77
  }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
78
78
  label: string;
79
- position: ("bottom" | "top") | ("right" | "left");
79
+ position: ("bottom" | "top") | ("left" | "right");
80
80
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
81
81
  $slots: {
82
82
  label: (_: {
@@ -0,0 +1,5 @@
1
+ import type { ParentValidation } from './types';
2
+ export declare function useValidateField(name: string, parentValidation?: ParentValidation): import("vee-validate").FieldContext<string> | {
3
+ value: import("vue").Ref<string>;
4
+ errorMessage: import("vue").ComputedRef<string | null> | undefined;
5
+ };
@@ -0,0 +1,9 @@
1
+ import type { useField } from 'vee-validate';
2
+ import type { ComputedRef } from 'vue';
3
+ export interface ParentValidation {
4
+ error?: ComputedRef<string | null>;
5
+ modelValue?: string;
6
+ useFieldParent?: typeof useField;
7
+ rules?: Parameters<typeof useField>['1'];
8
+ opts?: Parameters<typeof useField<string>>['2'];
9
+ }