pangea-lib 2.11.472 → 2.11.474

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.
@@ -0,0 +1,15 @@
1
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ isEnabled: boolean;
3
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
+ isEnabled: boolean;
5
+ }>>>, {}, {}>;
6
+ export default _default;
7
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
8
+ type __VLS_TypePropsToRuntimeProps<T> = {
9
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
10
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
11
+ } : {
12
+ type: import('vue').PropType<T[K]>;
13
+ required: true;
14
+ };
15
+ };
@@ -1,27 +1,72 @@
1
- import { Size } from 'pangea-lib';
1
+ import { Image, ImageSource, Size } from '../../types';
2
2
 
3
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
- image: string;
5
- source?: string;
6
- size?: Size;
7
- height?: Size;
8
- width?: Size;
9
- borderRadius?: Size;
10
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
11
- image: string;
12
- source?: string;
13
- size?: Size;
14
- height?: Size;
15
- width?: Size;
16
- borderRadius?: Size;
17
- }>>>, {}, {}>;
3
+ declare const _default: import('vue').DefineComponent<{
4
+ modelValue: import('vue').PropType<string>;
5
+ source: {
6
+ type: import('vue').PropType<ImageSource>;
7
+ default: string;
8
+ };
9
+ image: {
10
+ type: import('vue').PropType<string>;
11
+ };
12
+ size: {
13
+ type: import('vue').PropType<Size>;
14
+ };
15
+ borderRadius: {
16
+ type: import('vue').PropType<Size>;
17
+ };
18
+ width: {
19
+ type: import('vue').PropType<Size>;
20
+ };
21
+ height: {
22
+ type: import('vue').PropType<Size>;
23
+ };
24
+ defaultImage: {
25
+ type: import('vue').PropType<string>;
26
+ };
27
+ uploadFn: {
28
+ type: import('vue').PropType<(file: File) => Promise<Image>>;
29
+ };
30
+ deleteFn: {
31
+ type: import('vue').PropType<() => Promise<void>>;
32
+ };
33
+ rounded: {
34
+ type: import('vue').PropType<boolean>;
35
+ };
36
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
37
+ modelValue: import('vue').PropType<string>;
38
+ source: {
39
+ type: import('vue').PropType<ImageSource>;
40
+ default: string;
41
+ };
42
+ image: {
43
+ type: import('vue').PropType<string>;
44
+ };
45
+ size: {
46
+ type: import('vue').PropType<Size>;
47
+ };
48
+ borderRadius: {
49
+ type: import('vue').PropType<Size>;
50
+ };
51
+ width: {
52
+ type: import('vue').PropType<Size>;
53
+ };
54
+ height: {
55
+ type: import('vue').PropType<Size>;
56
+ };
57
+ defaultImage: {
58
+ type: import('vue').PropType<string>;
59
+ };
60
+ uploadFn: {
61
+ type: import('vue').PropType<(file: File) => Promise<Image>>;
62
+ };
63
+ deleteFn: {
64
+ type: import('vue').PropType<() => Promise<void>>;
65
+ };
66
+ rounded: {
67
+ type: import('vue').PropType<boolean>;
68
+ };
69
+ }>>, {
70
+ source: ImageSource;
71
+ }, {}>;
18
72
  export default _default;
19
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
- type __VLS_TypePropsToRuntimeProps<T> = {
21
- [K in keyof T]-?: {} extends Pick<T, K> ? {
22
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
23
- } : {
24
- type: import('vue').PropType<T[K]>;
25
- required: true;
26
- };
27
- };
@@ -2,6 +2,7 @@ export { default as PgaBadge } from './PgaBadge.vue';
2
2
  export { default as PgaDropdown } from './PgaDropdown.vue';
3
3
  export { default as PgaIcon } from './PgaIcon.vue';
4
4
  export { default as PgaInfoCardFullPage } from './PgaInfoCardFullPage.vue';
5
+ export { default as PgaIsEnabled } from './PgaIsEnabled.vue';
5
6
  export { default as PgaItemSelected } from './PgaItemSelected.vue';
6
7
  export { default as PgaModal } from './PgaModal.vue';
7
8
  export { default as PgaSeparator } from './PgaSeparator.vue';
@@ -24,7 +24,8 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
24
24
  };
25
25
  };
26
26
  image: {
27
- source: string;
27
+ staticUrl: string;
28
+ dynamicUrl: string;
28
29
  };
29
30
  }>;
30
31
  notificationsOptions: import('vue').ComputedRef<{
@@ -51,7 +52,8 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
51
52
  };
52
53
  }>;
53
54
  imageOptions: import('vue').ComputedRef<{
54
- source: string;
55
+ staticUrl: string;
56
+ dynamicUrl: string;
55
57
  }>;
56
58
  }, "options">>, Pick<{
57
59
  options: import('vue').Ref<{
@@ -79,7 +81,8 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
79
81
  };
80
82
  };
81
83
  image: {
82
- source: string;
84
+ staticUrl: string;
85
+ dynamicUrl: string;
83
86
  };
84
87
  }>;
85
88
  notificationsOptions: import('vue').ComputedRef<{
@@ -106,7 +109,8 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
106
109
  };
107
110
  }>;
108
111
  imageOptions: import('vue').ComputedRef<{
109
- source: string;
112
+ staticUrl: string;
113
+ dynamicUrl: string;
110
114
  }>;
111
115
  }, "notificationsOptions" | "buttonOptions" | "formOptions" | "imageOptions">, Pick<{
112
116
  options: import('vue').Ref<{
@@ -134,7 +138,8 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
134
138
  };
135
139
  };
136
140
  image: {
137
- source: string;
141
+ staticUrl: string;
142
+ dynamicUrl: string;
138
143
  };
139
144
  }>;
140
145
  notificationsOptions: import('vue').ComputedRef<{
@@ -161,6 +166,7 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
161
166
  };
162
167
  }>;
163
168
  imageOptions: import('vue').ComputedRef<{
164
- source: string;
169
+ staticUrl: string;
170
+ dynamicUrl: string;
165
171
  }>;
166
172
  }, never>>;
@@ -28,7 +28,8 @@ export type OptionsStore = {
28
28
  };
29
29
  };
30
30
  image: {
31
- source: string;
31
+ staticUrl: string;
32
+ dynamicUrl: string;
32
33
  };
33
34
  };
34
35
  export type Options = OptionsStore & {
@@ -1,5 +1,2 @@
1
- import { ImageExtension } from './file';
2
-
3
- export type Image = `${string}.${ImageExtension}`;
4
- export type ImagesFolder = 'coins' | 'wallets';
5
- export type ImageSize = 'xs' | 's' | 'm' | 'l' | 'xl';
1
+ export type Image = string;
2
+ export type ImageSource = 'static' | 'dynamic';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "2.11.472",
4
+ "version": "2.11.474",
5
5
  "author": "Gianfranco Raselli",
6
6
  "license": "ISC",
7
7
  "homepage": "https://github.com/GianfrancoRaselli/pangea#readme",