@open-tender/utils 0.0.6 → 0.0.7

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.
@@ -19,397 +19,8 @@ export declare const objRemsToPixels: <T extends Partial<ConfigThemeLayout & {
19
19
  xSmall: string;
20
20
  xxBig: string;
21
21
  xxSmall: string;
22
- }>>(object: T, responsive?: boolean) => Record<string, string>;
22
+ }>>(object: T, responsive?: boolean) => Partial<T>;
23
23
  export declare const pixelsToInt: (pixels: string) => string | number;
24
24
  export declare const pixelsToFloat: (pixels: string) => string | number;
25
- export declare const decorateTheme: (theme: ConfigTheme) => {
26
- fonts: {
27
- headline: {
28
- letterSpacing: string;
29
- lineHeights: {};
30
- color: string;
31
- family: string;
32
- fontMobile: string;
33
- fontSmoothing: string;
34
- lineHeight: number;
35
- textTransform: string;
36
- url: string;
37
- weight: string;
38
- fontSize?: string | undefined;
39
- } | {
40
- fontSize: string;
41
- lineHeight: string;
42
- letterSpacing: string;
43
- lineHeights: {};
44
- color: string;
45
- family: string;
46
- fontMobile: string;
47
- fontSmoothing: string;
48
- textTransform: string;
49
- url: string;
50
- weight: string;
51
- };
52
- headings: {
53
- letterSpacing: string;
54
- lineHeights: {};
55
- color: string;
56
- family: string;
57
- fontMobile: string;
58
- fontSmoothing: string;
59
- lineHeight: number;
60
- textTransform: string;
61
- url: string;
62
- weight: string;
63
- fontSize?: string | undefined;
64
- } | {
65
- fontSize: string;
66
- lineHeight: string;
67
- letterSpacing: string;
68
- lineHeights: {};
69
- color: string;
70
- family: string;
71
- fontMobile: string;
72
- fontSmoothing: string;
73
- textTransform: string;
74
- url: string;
75
- weight: string;
76
- };
77
- body: {
78
- letterSpacing: string;
79
- lineHeights: {};
80
- color: string;
81
- family: string;
82
- fontMobile: string;
83
- fontSmoothing: string;
84
- lineHeight: number;
85
- textTransform: string;
86
- url: string;
87
- weight: string;
88
- fontSize?: string | undefined;
89
- } | {
90
- fontSize: string;
91
- lineHeight: string;
92
- letterSpacing: string;
93
- lineHeights: {};
94
- color: string;
95
- family: string;
96
- fontMobile: string;
97
- fontSmoothing: string;
98
- textTransform: string;
99
- url: string;
100
- weight: string;
101
- };
102
- preface: {
103
- letterSpacing: string;
104
- lineHeights: {};
105
- color: string;
106
- family: string;
107
- fontMobile: string;
108
- fontSmoothing: string;
109
- lineHeight: number;
110
- textTransform: string;
111
- url: string;
112
- weight: string;
113
- fontSize?: string | undefined;
114
- } | {
115
- fontSize: string;
116
- lineHeight: string;
117
- letterSpacing: string;
118
- lineHeights: {};
119
- color: string;
120
- family: string;
121
- fontMobile: string;
122
- fontSmoothing: string;
123
- textTransform: string;
124
- url: string;
125
- weight: string;
126
- };
127
- sizes: Record<string, string>;
128
- lineHeights: {};
129
- };
130
- lineHeight: string;
131
- layout: Record<string, string>;
132
- buttons: {
133
- sizes: {};
134
- colors: {
135
- cart: import("@open-tender/types").ButtonColor;
136
- cartHover: import("@open-tender/types").ButtonColor;
137
- header: import("@open-tender/types").ButtonColor;
138
- headerHover: import("@open-tender/types").ButtonColor;
139
- large: import("@open-tender/types").ButtonColor & {
140
- iconColor: string;
141
- subtitleColor: string;
142
- };
143
- largeHover: import("@open-tender/types").ButtonColor & {
144
- iconColor: string;
145
- subtitleColor: string;
146
- };
147
- light: import("@open-tender/types").ButtonColor;
148
- lightHover: import("@open-tender/types").ButtonColor;
149
- primary: import("@open-tender/types").ButtonColor;
150
- primaryHover: import("@open-tender/types").ButtonColor;
151
- secondary: import("@open-tender/types").ButtonColor;
152
- secondaryHover: import("@open-tender/types").ButtonColor;
153
- };
154
- };
155
- border: {
156
- radius: string;
157
- radiusSmall: string;
158
- width: string;
159
- widthApp: string;
160
- color: string;
161
- };
162
- inputs: {
163
- lineHeight: string;
164
- letterSpacing: string;
165
- fontSize: string;
166
- radius: string;
167
- borderWidth: string;
168
- borderWidthApp: string;
169
- padding: string;
170
- paddingHorizontal: string;
171
- paddingVertical: string;
172
- paddingTop: string;
173
- paddingTopActive: string;
174
- paddingBottom: string;
175
- paddingBottomActive: string;
176
- label: {
177
- fontSize: string;
178
- lineHeight: string;
179
- offset: string;
180
- padding: string;
181
- top: string;
182
- left: string;
183
- };
184
- bgColor: string;
185
- bgColorFocus: string;
186
- borderColor: string;
187
- borderColorFocus: string;
188
- borderStyle: string;
189
- bottomBorderOnly: boolean;
190
- boxShadow: string;
191
- color: string;
192
- colorFocus: string;
193
- family: string;
194
- fontMobile: string;
195
- fontSizeMobile: string;
196
- fontSmoothing: string;
197
- iconLeft: string;
198
- iconPadding: string;
199
- placeholderColor: string;
200
- selectPaddingBottom: string;
201
- selectSize: string;
202
- selectSizeMobile: string;
203
- showIcon: boolean;
204
- showLabel: boolean;
205
- showOutline: boolean;
206
- textTransform: string;
207
- weight: string;
208
- };
209
- counts: {
210
- alerts: {
211
- borderWidth: string;
212
- borderWidthApp: string;
213
- fontSize: string;
214
- fontSizeMobile: string;
215
- paddingBottom: string;
216
- paddingTop: string;
217
- bgColor?: string | undefined;
218
- borderColor?: string | undefined;
219
- color?: string | undefined;
220
- family?: string | undefined;
221
- fontMobile?: string | undefined;
222
- fontSmoothing?: string | undefined;
223
- weight?: string | undefined;
224
- };
225
- quantity: {
226
- fontSize: string;
227
- fontSizeMobile: string;
228
- paddingBottom: string;
229
- paddingTop: string;
230
- bgColor?: string | undefined;
231
- borderColor?: string | undefined;
232
- borderWidth?: string | undefined;
233
- borderWidthApp?: string | undefined;
234
- color?: string | undefined;
235
- family?: string | undefined;
236
- fontMobile?: string | undefined;
237
- fontSmoothing?: string | undefined;
238
- weight?: string | undefined;
239
- };
240
- };
241
- cards: {
242
- default: {
243
- borderWidth: string;
244
- borderWidthApp: string;
245
- borderRadius: string;
246
- bgColor?: string | undefined;
247
- borderColor?: string | undefined;
248
- boxShadow?: string | undefined;
249
- caloriesColor?: string | undefined;
250
- overrideFontColors?: boolean | undefined;
251
- priceColor?: string | undefined;
252
- priceSize?: string | undefined;
253
- priceSizeMobile?: string | undefined;
254
- textColor?: string | undefined;
255
- titleColor?: string | undefined;
256
- titleSize?: string | undefined;
257
- titleSizeMobile?: string | undefined;
258
- };
259
- form: {
260
- borderWidth: string;
261
- borderWidthApp: string;
262
- borderRadius: string;
263
- bgColor?: string | undefined;
264
- borderColor?: string | undefined;
265
- boxShadow?: string | undefined;
266
- caloriesColor?: string | undefined;
267
- overrideFontColors?: boolean | undefined;
268
- priceColor?: string | undefined;
269
- priceSize?: string | undefined;
270
- priceSizeMobile?: string | undefined;
271
- textColor?: string | undefined;
272
- titleColor?: string | undefined;
273
- titleSize?: string | undefined;
274
- titleSizeMobile?: string | undefined;
275
- };
276
- menuItem: {
277
- borderWidth: string;
278
- borderWidthApp: string;
279
- borderRadius: string;
280
- bgColor?: string | undefined;
281
- borderColor?: string | undefined;
282
- boxShadow?: string | undefined;
283
- caloriesColor?: string | undefined;
284
- overrideFontColors?: boolean | undefined;
285
- priceColor?: string | undefined;
286
- priceSize?: string | undefined;
287
- priceSizeMobile?: string | undefined;
288
- textColor?: string | undefined;
289
- titleColor?: string | undefined;
290
- titleSize?: string | undefined;
291
- titleSizeMobile?: string | undefined;
292
- };
293
- modifier: {
294
- borderWidth: string;
295
- borderWidthApp: string;
296
- borderRadius: string;
297
- bgColor?: string | undefined;
298
- borderColor?: string | undefined;
299
- boxShadow?: string | undefined;
300
- caloriesColor?: string | undefined;
301
- overrideFontColors?: boolean | undefined;
302
- priceColor?: string | undefined;
303
- priceSize?: string | undefined;
304
- priceSizeMobile?: string | undefined;
305
- textColor?: string | undefined;
306
- titleColor?: string | undefined;
307
- titleSize?: string | undefined;
308
- titleSizeMobile?: string | undefined;
309
- };
310
- };
311
- welcome: {
312
- textAlign: string | undefined;
313
- marginTop: string;
314
- marginBottom: string;
315
- titleMarginLeft: string;
316
- titleSize: string;
317
- titleLineHeight: string;
318
- subtitleSize: string;
319
- subtitleLineHeight: string;
320
- subtitleMarginTop: string;
321
- };
322
- item: {
323
- padding: string;
324
- imagePadding: string;
325
- maxWidth: string;
326
- imageMinHeight: string;
327
- imageMaxHeight: string;
328
- desktop: import("@open-tender/types").ConfigItem;
329
- mobile: import("@open-tender/types").ConfigItem;
330
- };
331
- alert: {
332
- bgColor: string;
333
- color: string;
334
- };
335
- bgColors: {
336
- alert: string;
337
- allergens: string;
338
- dark: string;
339
- error: string;
340
- highlight: string;
341
- light: string;
342
- primary: string;
343
- secondary: string;
344
- success: string;
345
- tertiary: string;
346
- toast: string;
347
- };
348
- boldWeight: string;
349
- boxShadow: {
350
- appBig: string;
351
- appSmall: string;
352
- inset: string;
353
- outer: string;
354
- };
355
- breakpoints: {
356
- laptop: string;
357
- mobile: string;
358
- narrow: string;
359
- tablet: string;
360
- };
361
- colors: {
362
- alert: string;
363
- allergens: string;
364
- dark: string;
365
- error: string;
366
- light: string;
367
- primary: string;
368
- secondary: string;
369
- success: string;
370
- tags: string;
371
- tertiary: string;
372
- title: string;
373
- toast: string;
374
- };
375
- error: {
376
- bgColor: string;
377
- color: string;
378
- };
379
- favorite: {
380
- iconSize: string;
381
- size: string;
382
- };
383
- header: {
384
- primary: string;
385
- stuck: string;
386
- };
387
- icons: {
388
- strokeWidth: number;
389
- };
390
- links: {
391
- customize: import("@open-tender/types").ConfigLink;
392
- dark: import("@open-tender/types").ConfigLink;
393
- light: import("@open-tender/types").ConfigLink;
394
- primary: import("@open-tender/types").ConfigLink;
395
- textDecoration: string;
396
- transition: string;
397
- };
398
- overlay: {
399
- alert: string;
400
- dark: string;
401
- light: string;
402
- primary: string;
403
- secondary: string;
404
- tertiary: string;
405
- };
406
- success: {
407
- bgColor: string;
408
- color: string;
409
- };
410
- toast: {
411
- bgColor: string;
412
- color: string;
413
- };
414
- };
25
+ export declare const decorateTheme: (theme: ConfigTheme) => ConfigTheme;
415
26
  export declare const hexToRgbA: (hex: string, opacity: number) => string | null;
@@ -161,16 +161,8 @@ const decorateTheme = (theme) => {
161
161
  const cards = makeCards(theme.cards);
162
162
  const welcome = makeWelcome(theme.welcome);
163
163
  const item = makeItem(theme.item);
164
- return Object.assign(Object.assign({}, theme), { fonts,
165
- lineHeight,
166
- layout,
167
- buttons,
168
- border,
169
- inputs,
170
- counts,
171
- cards,
172
- welcome,
173
- item });
164
+ return Object.assign(Object.assign({}, theme), { fonts: fonts, lineHeight, layout: layout, buttons: buttons, border, inputs: inputs, counts,
165
+ cards, welcome: welcome, item });
174
166
  };
175
167
  exports.decorateTheme = decorateTheme;
176
168
  const hexToRgbA = (hex, opacity) => {
@@ -19,397 +19,8 @@ export declare const objRemsToPixels: <T extends Partial<ConfigThemeLayout & {
19
19
  xSmall: string;
20
20
  xxBig: string;
21
21
  xxSmall: string;
22
- }>>(object: T, responsive?: boolean) => Record<string, string>;
22
+ }>>(object: T, responsive?: boolean) => Partial<T>;
23
23
  export declare const pixelsToInt: (pixels: string) => string | number;
24
24
  export declare const pixelsToFloat: (pixels: string) => string | number;
25
- export declare const decorateTheme: (theme: ConfigTheme) => {
26
- fonts: {
27
- headline: {
28
- letterSpacing: string;
29
- lineHeights: {};
30
- color: string;
31
- family: string;
32
- fontMobile: string;
33
- fontSmoothing: string;
34
- lineHeight: number;
35
- textTransform: string;
36
- url: string;
37
- weight: string;
38
- fontSize?: string | undefined;
39
- } | {
40
- fontSize: string;
41
- lineHeight: string;
42
- letterSpacing: string;
43
- lineHeights: {};
44
- color: string;
45
- family: string;
46
- fontMobile: string;
47
- fontSmoothing: string;
48
- textTransform: string;
49
- url: string;
50
- weight: string;
51
- };
52
- headings: {
53
- letterSpacing: string;
54
- lineHeights: {};
55
- color: string;
56
- family: string;
57
- fontMobile: string;
58
- fontSmoothing: string;
59
- lineHeight: number;
60
- textTransform: string;
61
- url: string;
62
- weight: string;
63
- fontSize?: string | undefined;
64
- } | {
65
- fontSize: string;
66
- lineHeight: string;
67
- letterSpacing: string;
68
- lineHeights: {};
69
- color: string;
70
- family: string;
71
- fontMobile: string;
72
- fontSmoothing: string;
73
- textTransform: string;
74
- url: string;
75
- weight: string;
76
- };
77
- body: {
78
- letterSpacing: string;
79
- lineHeights: {};
80
- color: string;
81
- family: string;
82
- fontMobile: string;
83
- fontSmoothing: string;
84
- lineHeight: number;
85
- textTransform: string;
86
- url: string;
87
- weight: string;
88
- fontSize?: string | undefined;
89
- } | {
90
- fontSize: string;
91
- lineHeight: string;
92
- letterSpacing: string;
93
- lineHeights: {};
94
- color: string;
95
- family: string;
96
- fontMobile: string;
97
- fontSmoothing: string;
98
- textTransform: string;
99
- url: string;
100
- weight: string;
101
- };
102
- preface: {
103
- letterSpacing: string;
104
- lineHeights: {};
105
- color: string;
106
- family: string;
107
- fontMobile: string;
108
- fontSmoothing: string;
109
- lineHeight: number;
110
- textTransform: string;
111
- url: string;
112
- weight: string;
113
- fontSize?: string | undefined;
114
- } | {
115
- fontSize: string;
116
- lineHeight: string;
117
- letterSpacing: string;
118
- lineHeights: {};
119
- color: string;
120
- family: string;
121
- fontMobile: string;
122
- fontSmoothing: string;
123
- textTransform: string;
124
- url: string;
125
- weight: string;
126
- };
127
- sizes: Record<string, string>;
128
- lineHeights: {};
129
- };
130
- lineHeight: string;
131
- layout: Record<string, string>;
132
- buttons: {
133
- sizes: {};
134
- colors: {
135
- cart: import("@open-tender/types").ButtonColor;
136
- cartHover: import("@open-tender/types").ButtonColor;
137
- header: import("@open-tender/types").ButtonColor;
138
- headerHover: import("@open-tender/types").ButtonColor;
139
- large: import("@open-tender/types").ButtonColor & {
140
- iconColor: string;
141
- subtitleColor: string;
142
- };
143
- largeHover: import("@open-tender/types").ButtonColor & {
144
- iconColor: string;
145
- subtitleColor: string;
146
- };
147
- light: import("@open-tender/types").ButtonColor;
148
- lightHover: import("@open-tender/types").ButtonColor;
149
- primary: import("@open-tender/types").ButtonColor;
150
- primaryHover: import("@open-tender/types").ButtonColor;
151
- secondary: import("@open-tender/types").ButtonColor;
152
- secondaryHover: import("@open-tender/types").ButtonColor;
153
- };
154
- };
155
- border: {
156
- radius: string;
157
- radiusSmall: string;
158
- width: string;
159
- widthApp: string;
160
- color: string;
161
- };
162
- inputs: {
163
- lineHeight: string;
164
- letterSpacing: string;
165
- fontSize: string;
166
- radius: string;
167
- borderWidth: string;
168
- borderWidthApp: string;
169
- padding: string;
170
- paddingHorizontal: string;
171
- paddingVertical: string;
172
- paddingTop: string;
173
- paddingTopActive: string;
174
- paddingBottom: string;
175
- paddingBottomActive: string;
176
- label: {
177
- fontSize: string;
178
- lineHeight: string;
179
- offset: string;
180
- padding: string;
181
- top: string;
182
- left: string;
183
- };
184
- bgColor: string;
185
- bgColorFocus: string;
186
- borderColor: string;
187
- borderColorFocus: string;
188
- borderStyle: string;
189
- bottomBorderOnly: boolean;
190
- boxShadow: string;
191
- color: string;
192
- colorFocus: string;
193
- family: string;
194
- fontMobile: string;
195
- fontSizeMobile: string;
196
- fontSmoothing: string;
197
- iconLeft: string;
198
- iconPadding: string;
199
- placeholderColor: string;
200
- selectPaddingBottom: string;
201
- selectSize: string;
202
- selectSizeMobile: string;
203
- showIcon: boolean;
204
- showLabel: boolean;
205
- showOutline: boolean;
206
- textTransform: string;
207
- weight: string;
208
- };
209
- counts: {
210
- alerts: {
211
- borderWidth: string;
212
- borderWidthApp: string;
213
- fontSize: string;
214
- fontSizeMobile: string;
215
- paddingBottom: string;
216
- paddingTop: string;
217
- bgColor?: string | undefined;
218
- borderColor?: string | undefined;
219
- color?: string | undefined;
220
- family?: string | undefined;
221
- fontMobile?: string | undefined;
222
- fontSmoothing?: string | undefined;
223
- weight?: string | undefined;
224
- };
225
- quantity: {
226
- fontSize: string;
227
- fontSizeMobile: string;
228
- paddingBottom: string;
229
- paddingTop: string;
230
- bgColor?: string | undefined;
231
- borderColor?: string | undefined;
232
- borderWidth?: string | undefined;
233
- borderWidthApp?: string | undefined;
234
- color?: string | undefined;
235
- family?: string | undefined;
236
- fontMobile?: string | undefined;
237
- fontSmoothing?: string | undefined;
238
- weight?: string | undefined;
239
- };
240
- };
241
- cards: {
242
- default: {
243
- borderWidth: string;
244
- borderWidthApp: string;
245
- borderRadius: string;
246
- bgColor?: string | undefined;
247
- borderColor?: string | undefined;
248
- boxShadow?: string | undefined;
249
- caloriesColor?: string | undefined;
250
- overrideFontColors?: boolean | undefined;
251
- priceColor?: string | undefined;
252
- priceSize?: string | undefined;
253
- priceSizeMobile?: string | undefined;
254
- textColor?: string | undefined;
255
- titleColor?: string | undefined;
256
- titleSize?: string | undefined;
257
- titleSizeMobile?: string | undefined;
258
- };
259
- form: {
260
- borderWidth: string;
261
- borderWidthApp: string;
262
- borderRadius: string;
263
- bgColor?: string | undefined;
264
- borderColor?: string | undefined;
265
- boxShadow?: string | undefined;
266
- caloriesColor?: string | undefined;
267
- overrideFontColors?: boolean | undefined;
268
- priceColor?: string | undefined;
269
- priceSize?: string | undefined;
270
- priceSizeMobile?: string | undefined;
271
- textColor?: string | undefined;
272
- titleColor?: string | undefined;
273
- titleSize?: string | undefined;
274
- titleSizeMobile?: string | undefined;
275
- };
276
- menuItem: {
277
- borderWidth: string;
278
- borderWidthApp: string;
279
- borderRadius: string;
280
- bgColor?: string | undefined;
281
- borderColor?: string | undefined;
282
- boxShadow?: string | undefined;
283
- caloriesColor?: string | undefined;
284
- overrideFontColors?: boolean | undefined;
285
- priceColor?: string | undefined;
286
- priceSize?: string | undefined;
287
- priceSizeMobile?: string | undefined;
288
- textColor?: string | undefined;
289
- titleColor?: string | undefined;
290
- titleSize?: string | undefined;
291
- titleSizeMobile?: string | undefined;
292
- };
293
- modifier: {
294
- borderWidth: string;
295
- borderWidthApp: string;
296
- borderRadius: string;
297
- bgColor?: string | undefined;
298
- borderColor?: string | undefined;
299
- boxShadow?: string | undefined;
300
- caloriesColor?: string | undefined;
301
- overrideFontColors?: boolean | undefined;
302
- priceColor?: string | undefined;
303
- priceSize?: string | undefined;
304
- priceSizeMobile?: string | undefined;
305
- textColor?: string | undefined;
306
- titleColor?: string | undefined;
307
- titleSize?: string | undefined;
308
- titleSizeMobile?: string | undefined;
309
- };
310
- };
311
- welcome: {
312
- textAlign: string | undefined;
313
- marginTop: string;
314
- marginBottom: string;
315
- titleMarginLeft: string;
316
- titleSize: string;
317
- titleLineHeight: string;
318
- subtitleSize: string;
319
- subtitleLineHeight: string;
320
- subtitleMarginTop: string;
321
- };
322
- item: {
323
- padding: string;
324
- imagePadding: string;
325
- maxWidth: string;
326
- imageMinHeight: string;
327
- imageMaxHeight: string;
328
- desktop: import("@open-tender/types").ConfigItem;
329
- mobile: import("@open-tender/types").ConfigItem;
330
- };
331
- alert: {
332
- bgColor: string;
333
- color: string;
334
- };
335
- bgColors: {
336
- alert: string;
337
- allergens: string;
338
- dark: string;
339
- error: string;
340
- highlight: string;
341
- light: string;
342
- primary: string;
343
- secondary: string;
344
- success: string;
345
- tertiary: string;
346
- toast: string;
347
- };
348
- boldWeight: string;
349
- boxShadow: {
350
- appBig: string;
351
- appSmall: string;
352
- inset: string;
353
- outer: string;
354
- };
355
- breakpoints: {
356
- laptop: string;
357
- mobile: string;
358
- narrow: string;
359
- tablet: string;
360
- };
361
- colors: {
362
- alert: string;
363
- allergens: string;
364
- dark: string;
365
- error: string;
366
- light: string;
367
- primary: string;
368
- secondary: string;
369
- success: string;
370
- tags: string;
371
- tertiary: string;
372
- title: string;
373
- toast: string;
374
- };
375
- error: {
376
- bgColor: string;
377
- color: string;
378
- };
379
- favorite: {
380
- iconSize: string;
381
- size: string;
382
- };
383
- header: {
384
- primary: string;
385
- stuck: string;
386
- };
387
- icons: {
388
- strokeWidth: number;
389
- };
390
- links: {
391
- customize: import("@open-tender/types").ConfigLink;
392
- dark: import("@open-tender/types").ConfigLink;
393
- light: import("@open-tender/types").ConfigLink;
394
- primary: import("@open-tender/types").ConfigLink;
395
- textDecoration: string;
396
- transition: string;
397
- };
398
- overlay: {
399
- alert: string;
400
- dark: string;
401
- light: string;
402
- primary: string;
403
- secondary: string;
404
- tertiary: string;
405
- };
406
- success: {
407
- bgColor: string;
408
- color: string;
409
- };
410
- toast: {
411
- bgColor: string;
412
- color: string;
413
- };
414
- };
25
+ export declare const decorateTheme: (theme: ConfigTheme) => ConfigTheme;
415
26
  export declare const hexToRgbA: (hex: string, opacity: number) => string | null;
@@ -152,16 +152,8 @@ export const decorateTheme = (theme) => {
152
152
  const cards = makeCards(theme.cards);
153
153
  const welcome = makeWelcome(theme.welcome);
154
154
  const item = makeItem(theme.item);
155
- return Object.assign(Object.assign({}, theme), { fonts,
156
- lineHeight,
157
- layout,
158
- buttons,
159
- border,
160
- inputs,
161
- counts,
162
- cards,
163
- welcome,
164
- item });
155
+ return Object.assign(Object.assign({}, theme), { fonts: fonts, lineHeight, layout: layout, buttons: buttons, border, inputs: inputs, counts,
156
+ cards, welcome: welcome, item });
165
157
  };
166
158
  export const hexToRgbA = (hex, opacity) => {
167
159
  let c;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/utils",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "A library of utils for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",