pangea-lib 2.9.2 → 2.9.4

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.
@@ -1,10 +1,11 @@
1
1
  import { AppColorNameProp } from '../../colors';
2
- import { Icon, TextProp, Size } from '../../types';
2
+ import { Icon, TextProp, Size, ButtonStyle } from '../../types';
3
3
 
4
4
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
5
  icon?: Icon;
6
6
  text?: TextProp;
7
7
  type?: AppColorNameProp;
8
+ style?: ButtonStyle;
8
9
  size?: Size;
9
10
  isLoading?: boolean;
10
11
  numberToDisplay?: number;
@@ -15,6 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
15
16
  icon?: Icon;
16
17
  text?: TextProp;
17
18
  type?: AppColorNameProp;
19
+ style?: ButtonStyle;
18
20
  size?: Size;
19
21
  isLoading?: boolean;
20
22
  numberToDisplay?: number;
@@ -1,7 +1,7 @@
1
1
  import { App } from 'vue';
2
- import { PangeaOptions } from './pangea-options/pangea-options.types';
2
+ import { UserOptions } from './options/options.types';
3
3
 
4
- declare const _default: (app: App, userOptions?: PangeaOptions) => void;
4
+ declare const _default: (app: App, userOptions?: UserOptions) => void;
5
5
  export default _default;
6
6
  export * from './colors';
7
7
  export * from './helpers';
@@ -0,0 +1,3 @@
1
+ import { Options } from './options.types';
2
+
3
+ export declare const allOptions: Options;
@@ -0,0 +1,246 @@
1
+ import { Options } from './options.types';
2
+
3
+ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-options", import('pinia')._UnwrapAll<Pick<{
4
+ options: import('vue').Ref<{
5
+ theme: import('../colors').Theme;
6
+ colors: {
7
+ textFirst: {
8
+ light: import('../colors').Color;
9
+ dark: import('../colors').Color;
10
+ };
11
+ textSecond: {
12
+ light: import('../colors').Color;
13
+ dark: import('../colors').Color;
14
+ };
15
+ textThird: {
16
+ light: import('../colors').Color;
17
+ dark: import('../colors').Color;
18
+ };
19
+ backgroundFirst: {
20
+ light: import('../colors').Color;
21
+ dark: import('../colors').Color;
22
+ };
23
+ backgroundSecond: {
24
+ light: import('../colors').Color;
25
+ dark: import('../colors').Color;
26
+ };
27
+ backgroundThird: {
28
+ light: import('../colors').Color;
29
+ dark: import('../colors').Color;
30
+ };
31
+ primary: {
32
+ main: import('../colors').Color;
33
+ contrast: import('../colors').Color;
34
+ };
35
+ secondary: {
36
+ main: import('../colors').Color;
37
+ contrast: import('../colors').Color;
38
+ };
39
+ success: {
40
+ main: import('../colors').Color;
41
+ contrast: import('../colors').Color;
42
+ };
43
+ warning: {
44
+ main: import('../colors').Color;
45
+ contrast: import('../colors').Color;
46
+ };
47
+ danger: {
48
+ main: import('../colors').Color;
49
+ contrast: import('../colors').Color;
50
+ };
51
+ dark: {
52
+ main: import('../colors').Color;
53
+ contrast: import('../colors').Color;
54
+ };
55
+ light: {
56
+ main: import('../colors').Color;
57
+ contrast: import('../colors').Color;
58
+ };
59
+ red: {
60
+ main: import('../colors').Color;
61
+ contrast: import('../colors').Color;
62
+ };
63
+ purple: {
64
+ main: import('../colors').Color;
65
+ contrast: import('../colors').Color;
66
+ };
67
+ sky: {
68
+ main: import('../colors').Color;
69
+ contrast: import('../colors').Color;
70
+ };
71
+ beige: {
72
+ main: import('../colors').Color;
73
+ contrast: import('../colors').Color;
74
+ };
75
+ info: import('../colors').Color;
76
+ link: import('../colors').Color;
77
+ error: import('../colors').Color;
78
+ };
79
+ button: {
80
+ style: import('../types').ButtonStyle;
81
+ };
82
+ }>;
83
+ setOptions: (newOptions: Options) => void;
84
+ }, "options">>, Pick<{
85
+ options: import('vue').Ref<{
86
+ theme: import('../colors').Theme;
87
+ colors: {
88
+ textFirst: {
89
+ light: import('../colors').Color;
90
+ dark: import('../colors').Color;
91
+ };
92
+ textSecond: {
93
+ light: import('../colors').Color;
94
+ dark: import('../colors').Color;
95
+ };
96
+ textThird: {
97
+ light: import('../colors').Color;
98
+ dark: import('../colors').Color;
99
+ };
100
+ backgroundFirst: {
101
+ light: import('../colors').Color;
102
+ dark: import('../colors').Color;
103
+ };
104
+ backgroundSecond: {
105
+ light: import('../colors').Color;
106
+ dark: import('../colors').Color;
107
+ };
108
+ backgroundThird: {
109
+ light: import('../colors').Color;
110
+ dark: import('../colors').Color;
111
+ };
112
+ primary: {
113
+ main: import('../colors').Color;
114
+ contrast: import('../colors').Color;
115
+ };
116
+ secondary: {
117
+ main: import('../colors').Color;
118
+ contrast: import('../colors').Color;
119
+ };
120
+ success: {
121
+ main: import('../colors').Color;
122
+ contrast: import('../colors').Color;
123
+ };
124
+ warning: {
125
+ main: import('../colors').Color;
126
+ contrast: import('../colors').Color;
127
+ };
128
+ danger: {
129
+ main: import('../colors').Color;
130
+ contrast: import('../colors').Color;
131
+ };
132
+ dark: {
133
+ main: import('../colors').Color;
134
+ contrast: import('../colors').Color;
135
+ };
136
+ light: {
137
+ main: import('../colors').Color;
138
+ contrast: import('../colors').Color;
139
+ };
140
+ red: {
141
+ main: import('../colors').Color;
142
+ contrast: import('../colors').Color;
143
+ };
144
+ purple: {
145
+ main: import('../colors').Color;
146
+ contrast: import('../colors').Color;
147
+ };
148
+ sky: {
149
+ main: import('../colors').Color;
150
+ contrast: import('../colors').Color;
151
+ };
152
+ beige: {
153
+ main: import('../colors').Color;
154
+ contrast: import('../colors').Color;
155
+ };
156
+ info: import('../colors').Color;
157
+ link: import('../colors').Color;
158
+ error: import('../colors').Color;
159
+ };
160
+ button: {
161
+ style: import('../types').ButtonStyle;
162
+ };
163
+ }>;
164
+ setOptions: (newOptions: Options) => void;
165
+ }, never>, Pick<{
166
+ options: import('vue').Ref<{
167
+ theme: import('../colors').Theme;
168
+ colors: {
169
+ textFirst: {
170
+ light: import('../colors').Color;
171
+ dark: import('../colors').Color;
172
+ };
173
+ textSecond: {
174
+ light: import('../colors').Color;
175
+ dark: import('../colors').Color;
176
+ };
177
+ textThird: {
178
+ light: import('../colors').Color;
179
+ dark: import('../colors').Color;
180
+ };
181
+ backgroundFirst: {
182
+ light: import('../colors').Color;
183
+ dark: import('../colors').Color;
184
+ };
185
+ backgroundSecond: {
186
+ light: import('../colors').Color;
187
+ dark: import('../colors').Color;
188
+ };
189
+ backgroundThird: {
190
+ light: import('../colors').Color;
191
+ dark: import('../colors').Color;
192
+ };
193
+ primary: {
194
+ main: import('../colors').Color;
195
+ contrast: import('../colors').Color;
196
+ };
197
+ secondary: {
198
+ main: import('../colors').Color;
199
+ contrast: import('../colors').Color;
200
+ };
201
+ success: {
202
+ main: import('../colors').Color;
203
+ contrast: import('../colors').Color;
204
+ };
205
+ warning: {
206
+ main: import('../colors').Color;
207
+ contrast: import('../colors').Color;
208
+ };
209
+ danger: {
210
+ main: import('../colors').Color;
211
+ contrast: import('../colors').Color;
212
+ };
213
+ dark: {
214
+ main: import('../colors').Color;
215
+ contrast: import('../colors').Color;
216
+ };
217
+ light: {
218
+ main: import('../colors').Color;
219
+ contrast: import('../colors').Color;
220
+ };
221
+ red: {
222
+ main: import('../colors').Color;
223
+ contrast: import('../colors').Color;
224
+ };
225
+ purple: {
226
+ main: import('../colors').Color;
227
+ contrast: import('../colors').Color;
228
+ };
229
+ sky: {
230
+ main: import('../colors').Color;
231
+ contrast: import('../colors').Color;
232
+ };
233
+ beige: {
234
+ main: import('../colors').Color;
235
+ contrast: import('../colors').Color;
236
+ };
237
+ info: import('../colors').Color;
238
+ link: import('../colors').Color;
239
+ error: import('../colors').Color;
240
+ };
241
+ button: {
242
+ style: import('../types').ButtonStyle;
243
+ };
244
+ }>;
245
+ setOptions: (newOptions: Options) => void;
246
+ }, "setOptions">>;
@@ -0,0 +1,16 @@
1
+ import { Theme } from '../colors/theme.store';
2
+ import { AppColors } from '../colors/colors.types';
3
+ import { ButtonStyle } from '../types/button';
4
+
5
+ export type Options = {
6
+ theme: Theme;
7
+ colors: AppColors;
8
+ button: {
9
+ style: ButtonStyle;
10
+ };
11
+ };
12
+ type DeepPartial<T> = {
13
+ [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
14
+ };
15
+ export type UserOptions = DeepPartial<Options>;
16
+ export {};
@@ -0,0 +1 @@
1
+ export type ButtonStyle = 'filled' | 'outlined';
@@ -1,3 +1,4 @@
1
+ export * from './button';
1
2
  export * from './chart';
2
3
  export * from './icon';
3
4
  export * from './image';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "2.9.2",
4
+ "version": "2.9.4",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -1,4 +0,0 @@
1
- import { PangeaOptions } from './pangea-options.types';
2
-
3
- declare const pangeaOptions: PangeaOptions;
4
- export default pangeaOptions;
@@ -1 +0,0 @@
1
- export declare const usePangeaOptionsStore: import('pinia').StoreDefinition<"pga-pangea-options", {}, {}, {}>;
@@ -1,7 +0,0 @@
1
- import { Theme } from '../colors/theme.store';
2
- import { AppColors } from '../colors/colors.types';
3
-
4
- export type PangeaOptions = {
5
- theme?: Theme;
6
- colors?: Partial<AppColors>;
7
- };