@solfacil/girassol 0.2.10 → 0.3.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.
Files changed (26) hide show
  1. package/dist/girassol.es.js +340 -317
  2. package/dist/girassol.umd.js +2 -2
  3. package/dist/style.css +1 -1
  4. package/dist/theme/solfacil/miscs.d.ts +7 -0
  5. package/dist/theme/solfacil/spacing.d.ts +3 -0
  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/radio/index.d.ts +2 -2
  17. package/dist/types/components/forms/radio/{Radio.vue.d.ts → radio/Radio.vue.d.ts} +8 -8
  18. package/dist/types/components/forms/radio/{radio.spec.d.ts → radio/radio.spec.d.ts} +0 -0
  19. package/dist/types/components/forms/radio/{RadioGroup.vue.d.ts → radio-group/RadioGroup.vue.d.ts} +14 -14
  20. package/dist/types/components/forms/radio/{radio-group.spec.d.ts → radio-group/radio-group.spec.d.ts} +0 -0
  21. package/dist/types/components/forms/radio/{radio-type.d.ts → types.d.ts} +0 -0
  22. package/dist/types/components/menus/menu-item/menu-item-link/MenuItemLink.vue.d.ts +4 -0
  23. package/dist/types/components/menus/menu-item/menu-item-link/types.d.ts +1 -0
  24. package/dist/types/index.d.ts +108 -84
  25. package/package.json +20 -18
  26. package/theme/solfacil/spacing.ts +2 -1
@@ -1,4 +1,4 @@
1
- import type { Checkbox } from './checkbox-type';
1
+ import type { Checkbox } from '@forms/checkbox/type';
2
2
  declare const _default: {
3
3
  new (...args: any[]): {
4
4
  $: import("vue").ComponentInternalInstance;
@@ -10,8 +10,9 @@ declare const _default: {
10
10
  label: Checkbox['label'];
11
11
  checked?: Checkbox['checked'];
12
12
  class?: Checkbox['class'];
13
+ indeterminate?: boolean | undefined;
13
14
  }>>> & {
14
- onChange?: ((value: import("./checkbox-type").CheckboxValue) => any) | undefined;
15
+ onChange?: ((value: import("@forms/checkbox/type").CheckboxValue) => any) | undefined;
15
16
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
16
17
  $attrs: {
17
18
  [x: string]: unknown;
@@ -24,7 +25,7 @@ declare const _default: {
24
25
  }>;
25
26
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
26
27
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
27
- $emit: (event: "change", value: import("./checkbox-type").CheckboxValue) => void;
28
+ $emit: (event: "change", value: import("@forms/checkbox/type").CheckboxValue) => void;
28
29
  $el: any;
29
30
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
30
31
  id: Checkbox['id'];
@@ -33,10 +34,11 @@ declare const _default: {
33
34
  label: Checkbox['label'];
34
35
  checked?: Checkbox['checked'];
35
36
  class?: Checkbox['class'];
37
+ indeterminate?: boolean | undefined;
36
38
  }>>> & {
37
- onChange?: ((value: import("./checkbox-type").CheckboxValue) => any) | undefined;
39
+ onChange?: ((value: import("@forms/checkbox/type").CheckboxValue) => any) | undefined;
38
40
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
- change: (value: import("./checkbox-type").CheckboxValue) => void;
41
+ change: (value: import("@forms/checkbox/type").CheckboxValue) => void;
40
42
  }, string, {}> & {
41
43
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
42
44
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -64,8 +66,9 @@ declare const _default: {
64
66
  label: Checkbox['label'];
65
67
  checked?: Checkbox['checked'];
66
68
  class?: Checkbox['class'];
69
+ indeterminate?: boolean | undefined;
67
70
  }>>> & {
68
- onChange?: ((value: import("./checkbox-type").CheckboxValue) => any) | undefined;
71
+ onChange?: ((value: import("@forms/checkbox/type").CheckboxValue) => any) | undefined;
69
72
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
70
73
  __isFragment?: undefined;
71
74
  __isTeleport?: undefined;
@@ -77,10 +80,11 @@ declare const _default: {
77
80
  label: Checkbox['label'];
78
81
  checked?: Checkbox['checked'];
79
82
  class?: Checkbox['class'];
83
+ indeterminate?: boolean | undefined;
80
84
  }>>> & {
81
- onChange?: ((value: import("./checkbox-type").CheckboxValue) => any) | undefined;
85
+ onChange?: ((value: import("@forms/checkbox/type").CheckboxValue) => any) | undefined;
82
86
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
83
- change: (value: import("./checkbox-type").CheckboxValue) => void;
87
+ change: (value: import("@forms/checkbox/type").CheckboxValue) => void;
84
88
  }, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
85
89
  $slots: {};
86
90
  });
@@ -1,4 +1,4 @@
1
- import type { Checkbox as CheckboxType } from './checkbox-type';
1
+ import type { Checkbox as CheckboxType } from '@forms/checkbox/type';
2
2
  declare const _default: {
3
3
  new (...args: any[]): {
4
4
  $: import("vue").ComponentInternalInstance;
@@ -13,13 +13,13 @@ declare const _default: {
13
13
  hint?: string | undefined;
14
14
  error?: string | undefined;
15
15
  checkboxes: CheckboxType[];
16
- modelValue?: import("./checkbox-type").CheckboxValue[] | undefined;
16
+ modelValue?: import("@forms/checkbox/type").CheckboxValue[] | undefined;
17
17
  direction?: "row" | "column" | undefined;
18
18
  }>, {
19
19
  direction: string;
20
20
  hideTitle: boolean;
21
21
  }>>> & {
22
- onChange?: ((value: import("./checkbox-type").CheckboxValue) => any) | undefined;
22
+ onChange?: ((value: import("@forms/checkbox/type").CheckboxValue) => any) | undefined;
23
23
  "onUpdate:modelValue"?: ((a: any) => any) | undefined;
24
24
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "hideTitle" | "direction">;
25
25
  $attrs: {
@@ -33,7 +33,7 @@ declare const _default: {
33
33
  }>;
34
34
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
35
35
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
36
- $emit: ((event: "update:modelValue", a: any) => void) & ((event: "change", value: import("./checkbox-type").CheckboxValue) => void);
36
+ $emit: ((event: "update:modelValue", a: any) => void) & ((event: "change", value: import("@forms/checkbox/type").CheckboxValue) => void);
37
37
  $el: any;
38
38
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
39
39
  id: string;
@@ -42,16 +42,16 @@ declare const _default: {
42
42
  hint?: string | undefined;
43
43
  error?: string | undefined;
44
44
  checkboxes: CheckboxType[];
45
- modelValue?: import("./checkbox-type").CheckboxValue[] | undefined;
45
+ modelValue?: import("@forms/checkbox/type").CheckboxValue[] | undefined;
46
46
  direction?: "row" | "column" | undefined;
47
47
  }>, {
48
48
  direction: string;
49
49
  hideTitle: boolean;
50
50
  }>>> & {
51
- onChange?: ((value: import("./checkbox-type").CheckboxValue) => any) | undefined;
51
+ onChange?: ((value: import("@forms/checkbox/type").CheckboxValue) => any) | undefined;
52
52
  "onUpdate:modelValue"?: ((a: any) => any) | undefined;
53
53
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
54
- change: (value: import("./checkbox-type").CheckboxValue) => void;
54
+ change: (value: import("@forms/checkbox/type").CheckboxValue) => void;
55
55
  } & {
56
56
  "update:modelValue": (a: any) => void;
57
57
  }, string, {
@@ -84,13 +84,13 @@ declare const _default: {
84
84
  hint?: string | undefined;
85
85
  error?: string | undefined;
86
86
  checkboxes: CheckboxType[];
87
- modelValue?: import("./checkbox-type").CheckboxValue[] | undefined;
87
+ modelValue?: import("@forms/checkbox/type").CheckboxValue[] | undefined;
88
88
  direction?: "row" | "column" | undefined;
89
89
  }>, {
90
90
  direction: string;
91
91
  hideTitle: boolean;
92
92
  }>>> & {
93
- onChange?: ((value: import("./checkbox-type").CheckboxValue) => any) | undefined;
93
+ onChange?: ((value: import("@forms/checkbox/type").CheckboxValue) => any) | undefined;
94
94
  "onUpdate:modelValue"?: ((a: any) => any) | undefined;
95
95
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
96
96
  __isFragment?: undefined;
@@ -103,16 +103,16 @@ declare const _default: {
103
103
  hint?: string | undefined;
104
104
  error?: string | undefined;
105
105
  checkboxes: CheckboxType[];
106
- modelValue?: import("./checkbox-type").CheckboxValue[] | undefined;
106
+ modelValue?: import("@forms/checkbox/type").CheckboxValue[] | undefined;
107
107
  direction?: "row" | "column" | undefined;
108
108
  }>, {
109
109
  direction: string;
110
110
  hideTitle: boolean;
111
111
  }>>> & {
112
- onChange?: ((value: import("./checkbox-type").CheckboxValue) => any) | undefined;
112
+ onChange?: ((value: import("@forms/checkbox/type").CheckboxValue) => any) | undefined;
113
113
  "onUpdate:modelValue"?: ((a: any) => any) | undefined;
114
114
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
115
- change: (value: import("./checkbox-type").CheckboxValue) => void;
115
+ change: (value: import("@forms/checkbox/type").CheckboxValue) => void;
116
116
  } & {
117
117
  "update:modelValue": (a: any) => void;
118
118
  }, string, {
@@ -1,3 +1,3 @@
1
- import SolCheckbox from './Checkbox.vue';
2
- import SolCheckboxGroup from './CheckboxGroup.vue';
1
+ import SolCheckbox from './checkbox/Checkbox.vue';
2
+ import SolCheckboxGroup from './checkbox-group/CheckboxGroup.vue';
3
3
  export { SolCheckbox, SolCheckboxGroup, };
@@ -6,4 +6,5 @@ export interface Checkbox {
6
6
  label: string;
7
7
  checked?: boolean;
8
8
  class?: string | Record<string, boolean>;
9
+ indeterminate?: boolean;
9
10
  }
@@ -1,3 +1,3 @@
1
- import SolRadio from './Radio.vue';
2
- import SolRadioGroup from './RadioGroup.vue';
1
+ import SolRadio from './radio/Radio.vue';
2
+ import SolRadioGroup from './radio-group/RadioGroup.vue';
3
3
  export { SolRadio, SolRadioGroup, };
@@ -1,4 +1,4 @@
1
- import type { Radio } from './radio-type';
1
+ import type { Radio } from '../types';
2
2
  declare const _default: {
3
3
  new (...args: any[]): {
4
4
  $: import("vue").ComponentInternalInstance;
@@ -11,7 +11,7 @@ declare const _default: {
11
11
  checked?: Radio['checked'];
12
12
  class?: Radio['class'];
13
13
  }>>> & {
14
- onChange?: ((value: import("./radio-type").RadioValue) => any) | undefined;
14
+ onChange?: ((value: import("../types").RadioValue) => any) | undefined;
15
15
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
16
16
  $attrs: {
17
17
  [x: string]: unknown;
@@ -24,7 +24,7 @@ declare const _default: {
24
24
  }>;
25
25
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
26
26
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
27
- $emit: (event: "change", value: import("./radio-type").RadioValue) => void;
27
+ $emit: (event: "change", value: import("../types").RadioValue) => void;
28
28
  $el: any;
29
29
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
30
30
  id: Radio['id'];
@@ -34,9 +34,9 @@ declare const _default: {
34
34
  checked?: Radio['checked'];
35
35
  class?: Radio['class'];
36
36
  }>>> & {
37
- onChange?: ((value: import("./radio-type").RadioValue) => any) | undefined;
37
+ onChange?: ((value: import("../types").RadioValue) => any) | undefined;
38
38
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
- change: (value: import("./radio-type").RadioValue) => void;
39
+ change: (value: import("../types").RadioValue) => void;
40
40
  }, string, {}> & {
41
41
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
42
42
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -65,7 +65,7 @@ declare const _default: {
65
65
  checked?: Radio['checked'];
66
66
  class?: Radio['class'];
67
67
  }>>> & {
68
- onChange?: ((value: import("./radio-type").RadioValue) => any) | undefined;
68
+ onChange?: ((value: import("../types").RadioValue) => any) | undefined;
69
69
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
70
70
  __isFragment?: undefined;
71
71
  __isTeleport?: undefined;
@@ -78,9 +78,9 @@ declare const _default: {
78
78
  checked?: Radio['checked'];
79
79
  class?: Radio['class'];
80
80
  }>>> & {
81
- onChange?: ((value: import("./radio-type").RadioValue) => any) | undefined;
81
+ onChange?: ((value: import("../types").RadioValue) => any) | undefined;
82
82
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
83
- change: (value: import("./radio-type").RadioValue) => void;
83
+ change: (value: import("../types").RadioValue) => void;
84
84
  }, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
85
85
  $slots: {};
86
86
  });
@@ -1,4 +1,4 @@
1
- import type { Radio as RadioType } from './radio-type';
1
+ import type { Radio as RadioType } from '../types';
2
2
  declare const _default: {
3
3
  new (...args: any[]): {
4
4
  $: import("vue").ComponentInternalInstance;
@@ -19,8 +19,8 @@ declare const _default: {
19
19
  direction: string;
20
20
  hideTitle: boolean;
21
21
  }>>> & {
22
- onChange?: ((value: import("./radio-type").RadioValue) => any) | undefined;
23
- "onUpdate:modelValue"?: ((value: import("./radio-type").RadioValue) => any) | undefined;
22
+ onChange?: ((value: import("../types").RadioValue) => any) | undefined;
23
+ "onUpdate:modelValue"?: ((value: import("../types").RadioValue) => any) | undefined;
24
24
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "hideTitle" | "direction">;
25
25
  $attrs: {
26
26
  [x: string]: unknown;
@@ -33,7 +33,7 @@ declare const _default: {
33
33
  }>;
34
34
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
35
35
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
36
- $emit: ((event: "update:modelValue", value: import("./radio-type").RadioValue) => void) & ((event: "change", value: import("./radio-type").RadioValue) => void);
36
+ $emit: ((event: "update:modelValue", value: import("../types").RadioValue) => void) & ((event: "change", value: import("../types").RadioValue) => void);
37
37
  $el: any;
38
38
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
39
39
  id: string;
@@ -48,12 +48,12 @@ declare const _default: {
48
48
  direction: string;
49
49
  hideTitle: boolean;
50
50
  }>>> & {
51
- onChange?: ((value: import("./radio-type").RadioValue) => any) | undefined;
52
- "onUpdate:modelValue"?: ((value: import("./radio-type").RadioValue) => any) | undefined;
51
+ onChange?: ((value: import("../types").RadioValue) => any) | undefined;
52
+ "onUpdate:modelValue"?: ((value: import("../types").RadioValue) => any) | undefined;
53
53
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
54
- change: (value: import("./radio-type").RadioValue) => void;
54
+ change: (value: import("../types").RadioValue) => void;
55
55
  } & {
56
- "update:modelValue": (value: import("./radio-type").RadioValue) => void;
56
+ "update:modelValue": (value: import("../types").RadioValue) => void;
57
57
  }, string, {
58
58
  hideTitle: boolean;
59
59
  direction: 'row' | 'column';
@@ -90,8 +90,8 @@ declare const _default: {
90
90
  direction: string;
91
91
  hideTitle: boolean;
92
92
  }>>> & {
93
- onChange?: ((value: import("./radio-type").RadioValue) => any) | undefined;
94
- "onUpdate:modelValue"?: ((value: import("./radio-type").RadioValue) => any) | undefined;
93
+ onChange?: ((value: import("../types").RadioValue) => any) | undefined;
94
+ "onUpdate:modelValue"?: ((value: import("../types").RadioValue) => any) | undefined;
95
95
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
96
96
  __isFragment?: undefined;
97
97
  __isTeleport?: undefined;
@@ -109,12 +109,12 @@ declare const _default: {
109
109
  direction: string;
110
110
  hideTitle: boolean;
111
111
  }>>> & {
112
- onChange?: ((value: import("./radio-type").RadioValue) => any) | undefined;
113
- "onUpdate:modelValue"?: ((value: import("./radio-type").RadioValue) => any) | undefined;
112
+ onChange?: ((value: import("../types").RadioValue) => any) | undefined;
113
+ "onUpdate:modelValue"?: ((value: import("../types").RadioValue) => any) | undefined;
114
114
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
115
- change: (value: import("./radio-type").RadioValue) => void;
115
+ change: (value: import("../types").RadioValue) => void;
116
116
  } & {
117
- "update:modelValue": (value: import("./radio-type").RadioValue) => void;
117
+ "update:modelValue": (value: import("../types").RadioValue) => void;
118
118
  }, string, {
119
119
  hideTitle: boolean;
120
120
  direction: 'row' | 'column';
@@ -5,6 +5,7 @@ declare const _default: {
5
5
  $data: {};
6
6
  $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
7
  id: string;
8
+ linkId?: string | undefined;
8
9
  text?: LinkData['text'];
9
10
  link?: LinkData['link'];
10
11
  active?: LinkData['active'];
@@ -27,6 +28,7 @@ declare const _default: {
27
28
  $el: any;
28
29
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
29
30
  id: string;
31
+ linkId?: string | undefined;
30
32
  text?: LinkData['text'];
31
33
  link?: LinkData['link'];
32
34
  active?: LinkData['active'];
@@ -57,6 +59,7 @@ declare const _default: {
57
59
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
58
60
  } & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
59
61
  id: string;
62
+ linkId?: string | undefined;
60
63
  text?: LinkData['text'];
61
64
  link?: LinkData['link'];
62
65
  active?: LinkData['active'];
@@ -69,6 +72,7 @@ declare const _default: {
69
72
  __isSuspense?: undefined;
70
73
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
71
74
  id: string;
75
+ linkId?: string | undefined;
72
76
  text?: LinkData['text'];
73
77
  link?: LinkData['link'];
74
78
  active?: LinkData['active'];
@@ -1,4 +1,5 @@
1
1
  export interface LinkData {
2
+ id?: string;
2
3
  text?: string;
3
4
  link?: string;
4
5
  active?: boolean;