@solfacil/girassol 0.5.0 → 0.7.0-beta-pagination.1

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 (74) hide show
  1. package/README.md +32 -13
  2. package/dist/components.d.ts +4 -1
  3. package/dist/components.json +1 -1
  4. package/dist/girassol.es.js +2742 -2263
  5. package/dist/girassol.umd.js +6 -6
  6. package/dist/style.css +1 -1
  7. package/dist/theme/solfacil/borders.d.ts +0 -1
  8. package/dist/theme/solfacil/index.d.ts +1 -0
  9. package/dist/theme/solfacil/screens.d.ts +17 -5
  10. package/dist/theme/solfacil/utilities.d.ts +1 -0
  11. package/dist/types/components/{informations/chip/Chip.vue.d.ts → filters/chip/removable-chip/RemovableChip.vue.d.ts} +37 -37
  12. package/dist/types/components/filters/chip/removable-chip/index.d.ts +2 -0
  13. package/dist/types/components/{informations/chip/chip.spec.d.ts → filters/chip/removable-chip/removable-chip.spec.d.ts} +0 -0
  14. package/dist/types/components/filters/chip/removable-chip/types.d.ts +4 -0
  15. package/dist/types/components/filters/chip/selectable-chip/SelectableChip.vue.d.ts +125 -0
  16. package/dist/types/components/filters/chip/selectable-chip/index.d.ts +2 -0
  17. package/dist/types/components/filters/chip/selectable-chip/selectable-chip.spec.d.ts +1 -0
  18. package/dist/types/components/filters/chip/selectable-chip/types.d.ts +5 -0
  19. package/dist/types/components/filters/chip/types.d.ts +6 -0
  20. package/dist/types/components/forms/button/button/Button.vue.d.ts +4 -4
  21. package/dist/types/components/forms/button/button-destructive/ButtonDestructive.vue.d.ts +30 -7
  22. package/dist/types/components/forms/checkbox/checkbox/Checkbox.vue.d.ts +81 -13
  23. package/dist/types/components/forms/checkbox/checkbox-group/CheckboxGroup.vue.d.ts +4 -20
  24. package/dist/types/components/forms/inputs/input-core/Input.vue.d.ts +91 -15
  25. package/dist/types/components/forms/inputs/input-password/InputPassword.vue.d.ts +107 -21
  26. package/dist/types/components/forms/inputs/input-textarea/InputTextarea.vue.d.ts +121 -33
  27. package/dist/types/components/forms/radio/radio/Radio.vue.d.ts +78 -12
  28. package/dist/types/components/forms/radio/radio-group/RadioGroup.vue.d.ts +4 -20
  29. package/dist/types/components/forms/select/ListOption.vue.d.ts +16 -60
  30. package/dist/types/components/forms/select/Select.vue.d.ts +26 -24
  31. package/dist/types/components/forms/select/types.d.ts +2 -2
  32. package/dist/types/components/forms/switch/Switch.vue.d.ts +108 -18
  33. package/dist/types/components/loader/CircleLoader.vue.d.ts +72 -10
  34. package/dist/types/components/modal/Modal.vue.d.ts +209 -0
  35. package/dist/types/components/modal/index.d.ts +2 -0
  36. package/dist/types/components/modal/modal.spec.d.ts +1 -0
  37. package/dist/types/components/modal/types.d.ts +16 -0
  38. package/dist/types/components/overlay/Overlay.vue.d.ts +2 -0
  39. package/dist/types/components/pagination/Pagination.vue.d.ts +190 -0
  40. package/dist/types/components/pagination/index.d.ts +2 -0
  41. package/dist/types/components/pagination/pagination.spec.d.ts +1 -0
  42. package/dist/types/components/pagination/types.d.ts +14 -0
  43. package/dist/types/composables/use-filters/index.d.ts +8 -0
  44. package/{cli/build/types/cli.d.ts → dist/types/composables/use-filters/use-filters.spec.d.ts} +0 -0
  45. package/dist/types/composables/use-modal/index.d.ts +4 -0
  46. package/dist/types/composables/use-validate-field/index.d.ts +3 -3
  47. package/dist/types/composables/use-validate-field/types.d.ts +4 -8
  48. package/dist/types/index.d.ts +2381 -993
  49. package/package.json +31 -20
  50. package/theme/solfacil/borders.ts +0 -1
  51. package/theme/solfacil/effects.ts +4 -4
  52. package/theme/solfacil/index.ts +2 -1
  53. package/theme/solfacil/screens.ts +16 -5
  54. package/theme/solfacil/utilities.ts +26 -1
  55. package/vite.config.ts +5 -0
  56. package/windi.config.ts +1 -14
  57. package/cli/build/cli.js +0 -68
  58. package/cli/build/commands/create:component.js +0 -124
  59. package/cli/build/commands/generate:plugin.js +0 -89
  60. package/cli/build/commands/generate:types.js +0 -76
  61. package/cli/build/commands/girassol-cli.js +0 -52
  62. package/cli/build/extensions/cli-extension.js +0 -17
  63. package/cli/build/templates/components.d.ts.ejs +0 -1
  64. package/cli/build/templates/nuxt-plugin.ejs +0 -8
  65. package/cli/build/templates/vue-plugin.ejs +0 -5
  66. package/cli/build/templates/windi.config.ts.ejs +0 -3
  67. package/cli/build/types/commands/create:component.d.ts +0 -1
  68. package/cli/build/types/commands/generate:plugin.d.ts +0 -1
  69. package/cli/build/types/commands/generate:types.d.ts +0 -7
  70. package/cli/build/types/commands/girassol-cli.d.ts +0 -1
  71. package/cli/build/types/extensions/cli-extension.d.ts +0 -1
  72. package/cli/build/types/types.d.ts +0 -0
  73. package/cli/build/types.js +0 -2
  74. package/dist/types/components/informations/chip/index.d.ts +0 -2
@@ -4,11 +4,13 @@ declare const _default: {
4
4
  $: import("vue").ComponentInternalInstance;
5
5
  $data: {};
6
6
  $props: Partial<{
7
+ multiple: boolean;
8
+ placeholder: string;
7
9
  size: import("./types").Size;
8
10
  loading: boolean;
9
11
  error: string | null;
10
- placeholder: string;
11
12
  options: Select['options'];
13
+ dropdownPosition: 'bottom' | 'top' | 'dynamic';
12
14
  searchable: boolean;
13
15
  closeOnSelect: boolean;
14
16
  fetchOnSearch: boolean;
@@ -18,6 +20,7 @@ declare const _default: {
18
20
  label?: Select['label'];
19
21
  ariaLabel?: Select['ariaLabel'];
20
22
  name: Select['name'];
23
+ dropdownPosition?: "bottom" | "top" | "dynamic" | undefined;
21
24
  selected?: Select['selected'];
22
25
  options: Select['options'];
23
26
  required?: Select['required'];
@@ -33,13 +36,10 @@ declare const _default: {
33
36
  searchPlaceholder?: Select['searchPlaceholder'];
34
37
  error?: string | null | undefined;
35
38
  useField?: typeof import("vee-validate").useField | undefined;
36
- rules?: (string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
37
- validate(value: unknown, options: Record<string, any>): Promise<unknown>;
38
- } | undefined) | import("vue").Ref<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
39
- validate(value: unknown, options: Record<string, any>): Promise<unknown>;
40
- } | undefined>;
39
+ rules?: import("vee-validate").RuleExpression<unknown> | import("vue").Ref<import("vee-validate").RuleExpression<unknown>>;
41
40
  opts?: Partial<import("vee-validate").FieldOptions<Option>> | undefined;
42
41
  }>, {
42
+ dropdownPosition: string;
43
43
  error: null;
44
44
  size: string;
45
45
  placeholder: string;
@@ -48,12 +48,13 @@ declare const _default: {
48
48
  closeOnSelect: boolean;
49
49
  fetchOnSearch: boolean;
50
50
  searchable: boolean;
51
+ multiple: boolean;
51
52
  options: () => never[];
52
53
  }>>> & {
53
54
  "onUpdate:selected"?: ((value: Option | Option[] | undefined) => any) | undefined;
54
55
  onSearch?: ((value: string) => any) | undefined;
55
56
  onCloseDropdown?: (() => any) | undefined;
56
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "loading" | "error" | "placeholder" | "options" | "searchable" | "closeOnSelect" | "fetchOnSearch" | "searchPlaceholder">;
57
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "multiple" | "placeholder" | "size" | "loading" | "error" | "options" | "dropdownPosition" | "searchable" | "closeOnSelect" | "fetchOnSearch" | "searchPlaceholder">;
57
58
  $attrs: {
58
59
  [x: string]: unknown;
59
60
  };
@@ -72,6 +73,7 @@ declare const _default: {
72
73
  label?: Select['label'];
73
74
  ariaLabel?: Select['ariaLabel'];
74
75
  name: Select['name'];
76
+ dropdownPosition?: "bottom" | "top" | "dynamic" | undefined;
75
77
  selected?: Select['selected'];
76
78
  options: Select['options'];
77
79
  required?: Select['required'];
@@ -87,13 +89,10 @@ declare const _default: {
87
89
  searchPlaceholder?: Select['searchPlaceholder'];
88
90
  error?: string | null | undefined;
89
91
  useField?: typeof import("vee-validate").useField | undefined;
90
- rules?: (string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
91
- validate(value: unknown, options: Record<string, any>): Promise<unknown>;
92
- } | undefined) | import("vue").Ref<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
93
- validate(value: unknown, options: Record<string, any>): Promise<unknown>;
94
- } | undefined>;
92
+ rules?: import("vee-validate").RuleExpression<unknown> | import("vue").Ref<import("vee-validate").RuleExpression<unknown>>;
95
93
  opts?: Partial<import("vee-validate").FieldOptions<Option>> | undefined;
96
94
  }>, {
95
+ dropdownPosition: string;
97
96
  error: null;
98
97
  size: string;
99
98
  placeholder: string;
@@ -102,6 +101,7 @@ declare const _default: {
102
101
  closeOnSelect: boolean;
103
102
  fetchOnSearch: boolean;
104
103
  searchable: boolean;
104
+ multiple: boolean;
105
105
  options: () => never[];
106
106
  }>>> & {
107
107
  "onUpdate:selected"?: ((value: Option | Option[] | undefined) => any) | undefined;
@@ -114,11 +114,13 @@ declare const _default: {
114
114
  } & {
115
115
  "update:selected": (value: Option | Option[] | undefined) => void;
116
116
  }, string, {
117
+ multiple: boolean;
118
+ placeholder: string;
117
119
  size: import("./types").Size;
118
120
  loading: boolean;
119
121
  error: string | null;
120
- placeholder: string;
121
122
  options: Select['options'];
123
+ dropdownPosition: 'bottom' | 'top' | 'dynamic';
122
124
  searchable: boolean;
123
125
  closeOnSelect: boolean;
124
126
  fetchOnSearch: boolean;
@@ -148,6 +150,7 @@ declare const _default: {
148
150
  label?: Select['label'];
149
151
  ariaLabel?: Select['ariaLabel'];
150
152
  name: Select['name'];
153
+ dropdownPosition?: "bottom" | "top" | "dynamic" | undefined;
151
154
  selected?: Select['selected'];
152
155
  options: Select['options'];
153
156
  required?: Select['required'];
@@ -163,13 +166,10 @@ declare const _default: {
163
166
  searchPlaceholder?: Select['searchPlaceholder'];
164
167
  error?: string | null | undefined;
165
168
  useField?: typeof import("vee-validate").useField | undefined;
166
- rules?: (string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
167
- validate(value: unknown, options: Record<string, any>): Promise<unknown>;
168
- } | undefined) | import("vue").Ref<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
169
- validate(value: unknown, options: Record<string, any>): Promise<unknown>;
170
- } | undefined>;
169
+ rules?: import("vee-validate").RuleExpression<unknown> | import("vue").Ref<import("vee-validate").RuleExpression<unknown>>;
171
170
  opts?: Partial<import("vee-validate").FieldOptions<Option>> | undefined;
172
171
  }>, {
172
+ dropdownPosition: string;
173
173
  error: null;
174
174
  size: string;
175
175
  placeholder: string;
@@ -178,6 +178,7 @@ declare const _default: {
178
178
  closeOnSelect: boolean;
179
179
  fetchOnSearch: boolean;
180
180
  searchable: boolean;
181
+ multiple: boolean;
181
182
  options: () => never[];
182
183
  }>>> & {
183
184
  "onUpdate:selected"?: ((value: Option | Option[] | undefined) => any) | undefined;
@@ -192,6 +193,7 @@ declare const _default: {
192
193
  label?: Select['label'];
193
194
  ariaLabel?: Select['ariaLabel'];
194
195
  name: Select['name'];
196
+ dropdownPosition?: "bottom" | "top" | "dynamic" | undefined;
195
197
  selected?: Select['selected'];
196
198
  options: Select['options'];
197
199
  required?: Select['required'];
@@ -207,13 +209,10 @@ declare const _default: {
207
209
  searchPlaceholder?: Select['searchPlaceholder'];
208
210
  error?: string | null | undefined;
209
211
  useField?: typeof import("vee-validate").useField | undefined;
210
- rules?: (string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
211
- validate(value: unknown, options: Record<string, any>): Promise<unknown>;
212
- } | undefined) | import("vue").Ref<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
213
- validate(value: unknown, options: Record<string, any>): Promise<unknown>;
214
- } | undefined>;
212
+ rules?: import("vee-validate").RuleExpression<unknown> | import("vue").Ref<import("vee-validate").RuleExpression<unknown>>;
215
213
  opts?: Partial<import("vee-validate").FieldOptions<Option>> | undefined;
216
214
  }>, {
215
+ dropdownPosition: string;
217
216
  error: null;
218
217
  size: string;
219
218
  placeholder: string;
@@ -222,6 +221,7 @@ declare const _default: {
222
221
  closeOnSelect: boolean;
223
222
  fetchOnSearch: boolean;
224
223
  searchable: boolean;
224
+ multiple: boolean;
225
225
  options: () => never[];
226
226
  }>>> & {
227
227
  "onUpdate:selected"?: ((value: Option | Option[] | undefined) => any) | undefined;
@@ -234,11 +234,13 @@ declare const _default: {
234
234
  } & {
235
235
  "update:selected": (value: Option | Option[] | undefined) => void;
236
236
  }, string, {
237
+ multiple: boolean;
238
+ placeholder: string;
237
239
  size: import("./types").Size;
238
240
  loading: boolean;
239
241
  error: string | null;
240
- placeholder: string;
241
242
  options: Select['options'];
243
+ dropdownPosition: 'bottom' | 'top' | 'dynamic';
242
244
  searchable: boolean;
243
245
  closeOnSelect: boolean;
244
246
  fetchOnSearch: boolean;
@@ -1,7 +1,7 @@
1
1
  export declare type Size = 'small' | 'medium';
2
2
  export declare type Option = {
3
- name: string;
4
- value: string;
3
+ name: string | number;
4
+ value: string | number;
5
5
  };
6
6
  export interface Select {
7
7
  id: string;
@@ -1,19 +1,104 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- id: string;
3
- name: string;
4
- value?: string | undefined;
5
- label: string;
6
- checked?: boolean | undefined;
7
- class?: string | Record<string, boolean> | undefined;
8
- textDirection?: "left" | "right" | undefined;
9
- hideLabel?: boolean | undefined;
10
- stretchLabel?: boolean | undefined;
11
- }>, {
12
- textDirection: string;
13
- stretchLabel: boolean;
14
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
- change: (value: string | boolean) => void;
16
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{
6
+ textDirection: 'left' | 'right';
7
+ stretchLabel: boolean;
8
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ id: string;
10
+ name: string;
11
+ value?: string | undefined;
12
+ label: string;
13
+ checked?: boolean | undefined;
14
+ class?: string | Record<string, boolean> | undefined;
15
+ textDirection?: "left" | "right" | undefined;
16
+ hideLabel?: boolean | undefined;
17
+ stretchLabel?: boolean | undefined;
18
+ }>, {
19
+ textDirection: string;
20
+ stretchLabel: boolean;
21
+ }>>> & {
22
+ onChange?: ((value: string | boolean) => any) | undefined;
23
+ "onUpdate:checked"?: ((value: boolean) => any) | undefined;
24
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "textDirection" | "stretchLabel">;
25
+ $attrs: {
26
+ [x: string]: unknown;
27
+ };
28
+ $refs: {
29
+ [x: string]: unknown;
30
+ };
31
+ $slots: Readonly<{
32
+ [name: string]: import("vue").Slot | undefined;
33
+ }>;
34
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
35
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
36
+ $emit: ((event: "change", value: string | boolean) => void) & ((event: "update:checked", value: boolean) => void);
37
+ $el: any;
38
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
39
+ id: string;
40
+ name: string;
41
+ value?: string | undefined;
42
+ label: string;
43
+ checked?: boolean | undefined;
44
+ class?: string | Record<string, boolean> | undefined;
45
+ textDirection?: "left" | "right" | undefined;
46
+ hideLabel?: boolean | undefined;
47
+ stretchLabel?: boolean | undefined;
48
+ }>, {
49
+ textDirection: string;
50
+ stretchLabel: boolean;
51
+ }>>> & {
52
+ onChange?: ((value: string | boolean) => any) | undefined;
53
+ "onUpdate:checked"?: ((value: boolean) => any) | undefined;
54
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
55
+ change: (value: string | boolean) => void;
56
+ } & {
57
+ "update:checked": (value: boolean) => void;
58
+ }, string, {
59
+ textDirection: 'left' | 'right';
60
+ stretchLabel: boolean;
61
+ }> & {
62
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
63
+ created?: ((() => void) | (() => void)[]) | undefined;
64
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
65
+ mounted?: ((() => void) | (() => void)[]) | undefined;
66
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
67
+ updated?: ((() => void) | (() => void)[]) | undefined;
68
+ activated?: ((() => void) | (() => void)[]) | undefined;
69
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
70
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
71
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
72
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
73
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
74
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
75
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
76
+ 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;
77
+ };
78
+ $forceUpdate: () => void;
79
+ $nextTick: typeof import("vue").nextTick;
80
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
81
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
82
+ id: string;
83
+ name: string;
84
+ value?: string | undefined;
85
+ label: string;
86
+ checked?: boolean | undefined;
87
+ class?: string | Record<string, boolean> | undefined;
88
+ textDirection?: "left" | "right" | undefined;
89
+ hideLabel?: boolean | undefined;
90
+ stretchLabel?: boolean | undefined;
91
+ }>, {
92
+ textDirection: string;
93
+ stretchLabel: boolean;
94
+ }>>> & {
95
+ onChange?: ((value: string | boolean) => any) | undefined;
96
+ "onUpdate:checked"?: ((value: boolean) => any) | undefined;
97
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
98
+ __isFragment?: undefined;
99
+ __isTeleport?: undefined;
100
+ __isSuspense?: undefined;
101
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
102
  id: string;
18
103
  name: string;
19
104
  value?: string | undefined;
@@ -28,10 +113,15 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
28
113
  stretchLabel: boolean;
29
114
  }>>> & {
30
115
  onChange?: ((value: string | boolean) => any) | undefined;
31
- }, {
116
+ "onUpdate:checked"?: ((value: boolean) => any) | undefined;
117
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
118
+ change: (value: string | boolean) => void;
119
+ } & {
120
+ "update:checked": (value: boolean) => void;
121
+ }, string, {
32
122
  textDirection: 'left' | 'right';
33
123
  stretchLabel: boolean;
34
- }>;
124
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
35
125
  export default _default;
36
126
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
37
127
  declare type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,21 +1,83 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{
6
+ title: string;
7
+ size: 'small' | 'medium' | 'large';
8
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ size: 'small' | 'medium' | 'large';
10
+ dark?: boolean | undefined;
11
+ title?: string | undefined;
12
+ }>, {
13
+ size: string;
14
+ title: string;
15
+ }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "size">;
16
+ $attrs: {
17
+ [x: string]: unknown;
18
+ };
19
+ $refs: {
20
+ [x: string]: unknown;
21
+ };
22
+ $slots: Readonly<{
23
+ [name: string]: import("vue").Slot | undefined;
24
+ }>;
25
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
26
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
27
+ $emit: (event: string, ...args: any[]) => void;
28
+ $el: any;
29
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
30
+ size: 'small' | 'medium' | 'large';
31
+ dark?: boolean | undefined;
32
+ title?: string | undefined;
33
+ }>, {
34
+ size: string;
35
+ title: string;
36
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
37
+ title: string;
38
+ size: 'small' | 'medium' | 'large';
39
+ }> & {
40
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
41
+ created?: ((() => void) | (() => void)[]) | undefined;
42
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
43
+ mounted?: ((() => void) | (() => void)[]) | undefined;
44
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
45
+ updated?: ((() => void) | (() => void)[]) | undefined;
46
+ activated?: ((() => void) | (() => void)[]) | undefined;
47
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
48
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
49
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
50
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
51
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
52
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
53
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
54
+ 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;
55
+ };
56
+ $forceUpdate: () => void;
57
+ $nextTick: typeof import("vue").nextTick;
58
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
59
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
60
+ size: 'small' | 'medium' | 'large';
61
+ dark?: boolean | undefined;
62
+ title?: string | undefined;
63
+ }>, {
64
+ size: string;
65
+ title: string;
66
+ }>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
67
+ __isFragment?: undefined;
68
+ __isTeleport?: undefined;
69
+ __isSuspense?: undefined;
70
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
71
  size: 'small' | 'medium' | 'large';
3
72
  dark?: boolean | undefined;
4
73
  title?: string | undefined;
5
74
  }>, {
6
75
  size: string;
7
76
  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: 'small' | 'medium' | 'large';
10
- dark?: boolean | undefined;
11
- title?: string | undefined;
12
- }>, {
13
- size: string;
14
- title: string;
15
- }>>>, {
77
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
16
78
  title: string;
17
79
  size: 'small' | 'medium' | 'large';
18
- }>;
80
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
19
81
  export default _default;
20
82
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
83
  declare type __VLS_TypePropsToRuntimeProps<T> = {
@@ -0,0 +1,209 @@
1
+ import type { Modal } from './types';
2
+ declare const _default: {
3
+ new (...args: any[]): {
4
+ $: import("vue").ComponentInternalInstance;
5
+ $data: {};
6
+ $props: Partial<{
7
+ title: Modal['title'];
8
+ target: string;
9
+ size: Modal['size'];
10
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
+ id: Modal['id'];
12
+ size?: import("./types").Size | undefined;
13
+ title?: string | undefined;
14
+ isOpen?: Modal['isOpen'];
15
+ target?: Modal['target'];
16
+ actionPrimaryText?: Modal['actionPrimaryText'];
17
+ actionSecondaryText?: Modal['actionSecondaryText'];
18
+ actionTertiaryText?: Modal['actionTertiaryText'];
19
+ }>, {
20
+ target: string;
21
+ title: string;
22
+ size: () => {
23
+ desktop: string;
24
+ mobile: string;
25
+ };
26
+ }>>> & {
27
+ onClose?: (() => any) | undefined;
28
+ onOpen?: (() => any) | undefined;
29
+ "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
30
+ "onAction:primary"?: (() => any) | undefined;
31
+ "onAction:secondary"?: (() => any) | undefined;
32
+ "onAction:tertiary"?: (() => any) | undefined;
33
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "target" | "size">;
34
+ $attrs: {
35
+ [x: string]: unknown;
36
+ };
37
+ $refs: {
38
+ [x: string]: unknown;
39
+ };
40
+ $slots: Readonly<{
41
+ [name: string]: import("vue").Slot | undefined;
42
+ }>;
43
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
44
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
45
+ $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);
46
+ $el: any;
47
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
48
+ id: Modal['id'];
49
+ size?: import("./types").Size | undefined;
50
+ title?: string | undefined;
51
+ isOpen?: Modal['isOpen'];
52
+ target?: Modal['target'];
53
+ actionPrimaryText?: Modal['actionPrimaryText'];
54
+ actionSecondaryText?: Modal['actionSecondaryText'];
55
+ actionTertiaryText?: Modal['actionTertiaryText'];
56
+ }>, {
57
+ target: string;
58
+ title: string;
59
+ size: () => {
60
+ desktop: string;
61
+ mobile: string;
62
+ };
63
+ }>>> & {
64
+ onClose?: (() => any) | undefined;
65
+ onOpen?: (() => any) | undefined;
66
+ "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
67
+ "onAction:primary"?: (() => any) | undefined;
68
+ "onAction:secondary"?: (() => any) | undefined;
69
+ "onAction:tertiary"?: (() => any) | undefined;
70
+ }, {
71
+ close: () => void;
72
+ open: () => void;
73
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
74
+ close: () => void;
75
+ } & {
76
+ open: () => void;
77
+ } & {
78
+ "update:isOpen": (value: boolean) => void;
79
+ } & {
80
+ "action:primary": () => void;
81
+ } & {
82
+ "action:secondary": () => void;
83
+ } & {
84
+ "action:tertiary": () => void;
85
+ }, string, {
86
+ title: Modal['title'];
87
+ target: string;
88
+ size: Modal['size'];
89
+ }> & {
90
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
91
+ created?: ((() => void) | (() => void)[]) | undefined;
92
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
93
+ mounted?: ((() => void) | (() => void)[]) | undefined;
94
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
95
+ updated?: ((() => void) | (() => void)[]) | undefined;
96
+ activated?: ((() => void) | (() => void)[]) | undefined;
97
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
98
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
99
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
100
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
101
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
102
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
103
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
104
+ 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;
105
+ };
106
+ $forceUpdate: () => void;
107
+ $nextTick: typeof import("vue").nextTick;
108
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
109
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
110
+ id: Modal['id'];
111
+ size?: import("./types").Size | undefined;
112
+ title?: string | undefined;
113
+ isOpen?: Modal['isOpen'];
114
+ target?: Modal['target'];
115
+ actionPrimaryText?: Modal['actionPrimaryText'];
116
+ actionSecondaryText?: Modal['actionSecondaryText'];
117
+ actionTertiaryText?: Modal['actionTertiaryText'];
118
+ }>, {
119
+ target: string;
120
+ title: string;
121
+ size: () => {
122
+ desktop: string;
123
+ mobile: string;
124
+ };
125
+ }>>> & {
126
+ onClose?: (() => any) | undefined;
127
+ onOpen?: (() => any) | undefined;
128
+ "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
129
+ "onAction:primary"?: (() => any) | undefined;
130
+ "onAction:secondary"?: (() => any) | undefined;
131
+ "onAction:tertiary"?: (() => any) | undefined;
132
+ } & import("vue").ShallowUnwrapRef<{
133
+ close: () => void;
134
+ open: () => void;
135
+ }> & {} & import("vue").ComponentCustomProperties;
136
+ __isFragment?: undefined;
137
+ __isTeleport?: undefined;
138
+ __isSuspense?: undefined;
139
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
140
+ id: Modal['id'];
141
+ size?: import("./types").Size | undefined;
142
+ title?: string | undefined;
143
+ isOpen?: Modal['isOpen'];
144
+ target?: Modal['target'];
145
+ actionPrimaryText?: Modal['actionPrimaryText'];
146
+ actionSecondaryText?: Modal['actionSecondaryText'];
147
+ actionTertiaryText?: Modal['actionTertiaryText'];
148
+ }>, {
149
+ target: string;
150
+ title: string;
151
+ size: () => {
152
+ desktop: string;
153
+ mobile: string;
154
+ };
155
+ }>>> & {
156
+ onClose?: (() => any) | undefined;
157
+ onOpen?: (() => any) | undefined;
158
+ "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
159
+ "onAction:primary"?: (() => any) | undefined;
160
+ "onAction:secondary"?: (() => any) | undefined;
161
+ "onAction:tertiary"?: (() => any) | undefined;
162
+ }, {
163
+ close: () => void;
164
+ open: () => void;
165
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
166
+ close: () => void;
167
+ } & {
168
+ open: () => void;
169
+ } & {
170
+ "update:isOpen": (value: boolean) => void;
171
+ } & {
172
+ "action:primary": () => void;
173
+ } & {
174
+ "action:secondary": () => void;
175
+ } & {
176
+ "action:tertiary": () => void;
177
+ }, string, {
178
+ title: Modal['title'];
179
+ target: string;
180
+ size: Modal['size'];
181
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
182
+ $slots: {
183
+ default: (_: {}) => any;
184
+ 'action-tertiary': (_: {
185
+ id: string;
186
+ }) => any;
187
+ 'action-secondary': (_: {
188
+ id: string;
189
+ }) => any;
190
+ 'action-primary': (_: {
191
+ id: string;
192
+ }) => any;
193
+ };
194
+ });
195
+ export default _default;
196
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
197
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
198
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
199
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
200
+ } : {
201
+ type: import('vue').PropType<T[K]>;
202
+ required: true;
203
+ };
204
+ };
205
+ declare type __VLS_WithDefaults<P, D> = {
206
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
207
+ default: D[K];
208
+ } : P[K];
209
+ };
@@ -0,0 +1,2 @@
1
+ import SolModal from './Modal.vue';
2
+ export { SolModal, };
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,16 @@
1
+ export declare type DesktopSize = 'small' | 'medium' | 'large' | 'extra-large' | 'full';
2
+ export declare type MobileSize = 'bottom-sheet' | 'full';
3
+ export declare type Size = {
4
+ desktop?: DesktopSize;
5
+ mobile?: MobileSize;
6
+ };
7
+ export interface Modal {
8
+ id: string;
9
+ size: Size;
10
+ title: string;
11
+ isOpen?: boolean;
12
+ target?: string;
13
+ actionPrimaryText?: string;
14
+ actionSecondaryText?: string;
15
+ actionTertiaryText?: string;
16
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;