@solfacil/girassol 0.5.0 → 0.7.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 (58) hide show
  1. package/README.md +32 -13
  2. package/dist/components.d.ts +3 -1
  3. package/dist/components.json +1 -1
  4. package/dist/girassol.es.js +2287 -1936
  5. package/dist/girassol.umd.js +5 -5
  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/select/Select.vue.d.ts +4 -4
  23. package/dist/types/components/forms/switch/Switch.vue.d.ts +3 -0
  24. package/dist/types/components/modal/Modal.vue.d.ts +209 -0
  25. package/dist/types/components/modal/index.d.ts +2 -0
  26. package/dist/types/components/modal/modal.spec.d.ts +1 -0
  27. package/dist/types/components/modal/types.d.ts +16 -0
  28. package/dist/types/components/overlay/Overlay.vue.d.ts +2 -0
  29. package/dist/types/composables/use-filters/index.d.ts +8 -0
  30. package/{cli/build/types/cli.d.ts → dist/types/composables/use-filters/use-filters.spec.d.ts} +0 -0
  31. package/dist/types/composables/use-modal/index.d.ts +4 -0
  32. package/dist/types/index.d.ts +686 -214
  33. package/package.json +9 -4
  34. package/theme/solfacil/borders.ts +0 -1
  35. package/theme/solfacil/effects.ts +4 -4
  36. package/theme/solfacil/index.ts +2 -1
  37. package/theme/solfacil/screens.ts +16 -5
  38. package/theme/solfacil/utilities.ts +26 -1
  39. package/vite.config.ts +5 -0
  40. package/windi.config.ts +1 -14
  41. package/cli/build/cli.js +0 -68
  42. package/cli/build/commands/create:component.js +0 -124
  43. package/cli/build/commands/generate:plugin.js +0 -89
  44. package/cli/build/commands/generate:types.js +0 -76
  45. package/cli/build/commands/girassol-cli.js +0 -52
  46. package/cli/build/extensions/cli-extension.js +0 -17
  47. package/cli/build/templates/components.d.ts.ejs +0 -1
  48. package/cli/build/templates/nuxt-plugin.ejs +0 -8
  49. package/cli/build/templates/vue-plugin.ejs +0 -5
  50. package/cli/build/templates/windi.config.ts.ejs +0 -3
  51. package/cli/build/types/commands/create:component.d.ts +0 -1
  52. package/cli/build/types/commands/generate:plugin.d.ts +0 -1
  53. package/cli/build/types/commands/generate:types.d.ts +0 -7
  54. package/cli/build/types/commands/girassol-cli.d.ts +0 -1
  55. package/cli/build/types/extensions/cli-extension.d.ts +0 -1
  56. package/cli/build/types/types.d.ts +0 -0
  57. package/cli/build/types.js +0 -2
  58. package/dist/types/components/informations/chip/index.d.ts +0 -2
@@ -0,0 +1,125 @@
1
+ import type { SelectableChip } from './types';
2
+ declare const _default: {
3
+ new (...args: any[]): {
4
+ $: import("vue").ComponentInternalInstance;
5
+ $data: {};
6
+ $props: Partial<{
7
+ size: "small" | "medium";
8
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ id: SelectableChip['id'];
10
+ label?: SelectableChip['label'];
11
+ selected?: SelectableChip['selected'];
12
+ value: SelectableChip['value'];
13
+ disabled?: SelectableChip['disabled'];
14
+ size?: SelectableChip['size'];
15
+ }>, {
16
+ size: string;
17
+ }>>> & {
18
+ onChange?: ((v: unknown) => any) | undefined;
19
+ "onUpdate:selected"?: ((v: boolean) => any) | undefined;
20
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size">;
21
+ $attrs: {
22
+ [x: string]: unknown;
23
+ };
24
+ $refs: {
25
+ [x: string]: unknown;
26
+ };
27
+ $slots: Readonly<{
28
+ [name: string]: import("vue").Slot | undefined;
29
+ }>;
30
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
31
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
32
+ $emit: ((event: "update:selected", v: boolean) => void) & ((event: "change", v: unknown) => void);
33
+ $el: any;
34
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
35
+ id: SelectableChip['id'];
36
+ label?: SelectableChip['label'];
37
+ selected?: SelectableChip['selected'];
38
+ value: SelectableChip['value'];
39
+ disabled?: SelectableChip['disabled'];
40
+ size?: SelectableChip['size'];
41
+ }>, {
42
+ size: string;
43
+ }>>> & {
44
+ onChange?: ((v: unknown) => any) | undefined;
45
+ "onUpdate:selected"?: ((v: boolean) => any) | undefined;
46
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
47
+ "update:selected": (v: boolean) => void;
48
+ } & {
49
+ change: (v: unknown) => void;
50
+ }, string, {
51
+ size: "small" | "medium";
52
+ }> & {
53
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
54
+ created?: ((() => void) | (() => void)[]) | undefined;
55
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
56
+ mounted?: ((() => void) | (() => void)[]) | undefined;
57
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
58
+ updated?: ((() => void) | (() => void)[]) | undefined;
59
+ activated?: ((() => void) | (() => void)[]) | undefined;
60
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
61
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
62
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
63
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
64
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
65
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
66
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
67
+ 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;
68
+ };
69
+ $forceUpdate: () => void;
70
+ $nextTick: typeof import("vue").nextTick;
71
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
72
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
73
+ id: SelectableChip['id'];
74
+ label?: SelectableChip['label'];
75
+ selected?: SelectableChip['selected'];
76
+ value: SelectableChip['value'];
77
+ disabled?: SelectableChip['disabled'];
78
+ size?: SelectableChip['size'];
79
+ }>, {
80
+ size: string;
81
+ }>>> & {
82
+ onChange?: ((v: unknown) => any) | undefined;
83
+ "onUpdate:selected"?: ((v: boolean) => any) | undefined;
84
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
85
+ __isFragment?: undefined;
86
+ __isTeleport?: undefined;
87
+ __isSuspense?: undefined;
88
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
89
+ id: SelectableChip['id'];
90
+ label?: SelectableChip['label'];
91
+ selected?: SelectableChip['selected'];
92
+ value: SelectableChip['value'];
93
+ disabled?: SelectableChip['disabled'];
94
+ size?: SelectableChip['size'];
95
+ }>, {
96
+ size: string;
97
+ }>>> & {
98
+ onChange?: ((v: unknown) => any) | undefined;
99
+ "onUpdate:selected"?: ((v: boolean) => any) | undefined;
100
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
101
+ "update:selected": (v: boolean) => void;
102
+ } & {
103
+ change: (v: unknown) => void;
104
+ }, string, {
105
+ size: "small" | "medium";
106
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
107
+ $slots: {
108
+ default: (_: {}) => any;
109
+ };
110
+ });
111
+ export default _default;
112
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
113
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
114
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
115
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
116
+ } : {
117
+ type: import('vue').PropType<T[K]>;
118
+ required: true;
119
+ };
120
+ };
121
+ declare type __VLS_WithDefaults<P, D> = {
122
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
123
+ default: D[K];
124
+ } : P[K];
125
+ };
@@ -0,0 +1,2 @@
1
+ import SolSelectableChip from './SelectableChip.vue';
2
+ export { SolSelectableChip, };
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,5 @@
1
+ import type { Chip } from '../types';
2
+ export interface SelectableChip extends Chip {
3
+ value: string;
4
+ selected?: boolean;
5
+ }
@@ -0,0 +1,6 @@
1
+ export interface Chip {
2
+ id: string;
3
+ label?: string;
4
+ disabled?: boolean;
5
+ size?: 'small' | 'medium';
6
+ }
@@ -11,7 +11,7 @@ declare const _default: {
11
11
  loading?: boolean | undefined;
12
12
  onColor?: boolean | undefined;
13
13
  disabled?: boolean | undefined;
14
- size?: "small" | "large" | "medium" | undefined;
14
+ size?: "small" | "medium" | "large" | undefined;
15
15
  variant?: "primary" | "secondary" | "tertiary" | undefined;
16
16
  }>, {
17
17
  variant: string;
@@ -36,7 +36,7 @@ declare const _default: {
36
36
  loading?: boolean | undefined;
37
37
  onColor?: boolean | undefined;
38
38
  disabled?: boolean | undefined;
39
- size?: "small" | "large" | "medium" | undefined;
39
+ size?: "small" | "medium" | "large" | undefined;
40
40
  variant?: "primary" | "secondary" | "tertiary" | undefined;
41
41
  }>, {
42
42
  variant: string;
@@ -71,7 +71,7 @@ declare const _default: {
71
71
  loading?: boolean | undefined;
72
72
  onColor?: boolean | undefined;
73
73
  disabled?: boolean | undefined;
74
- size?: "small" | "large" | "medium" | undefined;
74
+ size?: "small" | "medium" | "large" | undefined;
75
75
  variant?: "primary" | "secondary" | "tertiary" | undefined;
76
76
  }>, {
77
77
  variant: string;
@@ -86,7 +86,7 @@ declare const _default: {
86
86
  loading?: boolean | undefined;
87
87
  onColor?: boolean | undefined;
88
88
  disabled?: boolean | undefined;
89
- size?: "small" | "large" | "medium" | undefined;
89
+ size?: "small" | "medium" | "large" | undefined;
90
90
  variant?: "primary" | "secondary" | "tertiary" | undefined;
91
91
  }>, {
92
92
  variant: string;
@@ -2,11 +2,16 @@ declare const _default: {
2
2
  new (...args: any[]): {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
- $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
+ $props: Partial<{
6
+ hideIcon: boolean;
7
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
8
  id: string;
7
9
  size: 'small' | 'medium' | 'large';
8
10
  loading?: boolean | undefined;
9
- }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
11
+ hideIcon?: boolean | undefined;
12
+ }>, {
13
+ hideIcon: boolean;
14
+ }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "hideIcon">;
10
15
  $attrs: {
11
16
  [x: string]: unknown;
12
17
  };
@@ -20,11 +25,16 @@ declare const _default: {
20
25
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
21
26
  $emit: (event: string, ...args: any[]) => void;
22
27
  $el: any;
23
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
28
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
24
29
  id: string;
25
30
  size: 'small' | 'medium' | 'large';
26
31
  loading?: boolean | undefined;
27
- }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}> & {
32
+ hideIcon?: boolean | undefined;
33
+ }>, {
34
+ hideIcon: boolean;
35
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
36
+ hideIcon: boolean;
37
+ }> & {
28
38
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
29
39
  created?: ((() => void) | (() => void)[]) | undefined;
30
40
  beforeMount?: ((() => void) | (() => void)[]) | undefined;
@@ -44,19 +54,27 @@ declare const _default: {
44
54
  $forceUpdate: () => void;
45
55
  $nextTick: typeof import("vue").nextTick;
46
56
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
47
- } & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
57
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
48
58
  id: string;
49
59
  size: 'small' | 'medium' | 'large';
50
60
  loading?: boolean | undefined;
61
+ hideIcon?: boolean | undefined;
62
+ }>, {
63
+ hideIcon: boolean;
51
64
  }>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
52
65
  __isFragment?: undefined;
53
66
  __isTeleport?: undefined;
54
67
  __isSuspense?: undefined;
55
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
68
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
56
69
  id: string;
57
70
  size: 'small' | 'medium' | 'large';
58
71
  loading?: boolean | undefined;
59
- }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
72
+ hideIcon?: boolean | undefined;
73
+ }>, {
74
+ hideIcon: boolean;
75
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
76
+ hideIcon: boolean;
77
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
60
78
  $slots: {
61
79
  default: (_: {}) => any;
62
80
  };
@@ -71,3 +89,8 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
71
89
  required: true;
72
90
  };
73
91
  };
92
+ declare type __VLS_WithDefaults<P, D> = {
93
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
94
+ default: D[K];
95
+ } : P[K];
96
+ };
@@ -4,10 +4,10 @@ declare const _default: {
4
4
  $: import("vue").ComponentInternalInstance;
5
5
  $data: {};
6
6
  $props: Partial<{
7
+ placeholder: string;
7
8
  size: import("./types").Size;
8
9
  loading: boolean;
9
10
  error: string | null;
10
- placeholder: string;
11
11
  options: Select['options'];
12
12
  searchable: boolean;
13
13
  closeOnSelect: boolean;
@@ -53,7 +53,7 @@ declare const _default: {
53
53
  "onUpdate:selected"?: ((value: Option | Option[] | undefined) => any) | undefined;
54
54
  onSearch?: ((value: string) => any) | undefined;
55
55
  onCloseDropdown?: (() => any) | undefined;
56
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "loading" | "error" | "placeholder" | "options" | "searchable" | "closeOnSelect" | "fetchOnSearch" | "searchPlaceholder">;
56
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placeholder" | "size" | "loading" | "error" | "options" | "searchable" | "closeOnSelect" | "fetchOnSearch" | "searchPlaceholder">;
57
57
  $attrs: {
58
58
  [x: string]: unknown;
59
59
  };
@@ -114,10 +114,10 @@ declare const _default: {
114
114
  } & {
115
115
  "update:selected": (value: Option | Option[] | undefined) => void;
116
116
  }, string, {
117
+ placeholder: string;
117
118
  size: import("./types").Size;
118
119
  loading: boolean;
119
120
  error: string | null;
120
- placeholder: string;
121
121
  options: Select['options'];
122
122
  searchable: boolean;
123
123
  closeOnSelect: boolean;
@@ -234,10 +234,10 @@ declare const _default: {
234
234
  } & {
235
235
  "update:selected": (value: Option | Option[] | undefined) => void;
236
236
  }, string, {
237
+ placeholder: string;
237
238
  size: import("./types").Size;
238
239
  loading: boolean;
239
240
  error: string | null;
240
- placeholder: string;
241
241
  options: Select['options'];
242
242
  searchable: boolean;
243
243
  closeOnSelect: boolean;
@@ -13,6 +13,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
13
13
  stretchLabel: boolean;
14
14
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
15
  change: (value: string | boolean) => void;
16
+ } & {
17
+ "update:checked": (value: boolean) => void;
16
18
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
19
  id: string;
18
20
  name: string;
@@ -28,6 +30,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
28
30
  stretchLabel: boolean;
29
31
  }>>> & {
30
32
  onChange?: ((value: string | boolean) => any) | undefined;
33
+ "onUpdate:checked"?: ((value: boolean) => any) | undefined;
31
34
  }, {
32
35
  textDirection: 'left' | 'right';
33
36
  stretchLabel: boolean;
@@ -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;
@@ -0,0 +1,8 @@
1
+ export interface Parameters {
2
+ initialValues?: string[] | number[];
3
+ }
4
+ export declare function useSelectableChip({ initialValues }?: Parameters): {
5
+ selectedFilters: import("vue").Ref<unknown[]>;
6
+ isSelected: (value: unknown) => boolean;
7
+ setSelectedFilter: (value: unknown) => void;
8
+ };
@@ -0,0 +1,4 @@
1
+ export declare function useModal(): {
2
+ openModal: (modal: any) => void;
3
+ closeModal: (modal: any) => void;
4
+ };