@open-tender/types 0.2.65 → 0.2.66
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.
|
@@ -74,7 +74,7 @@ export interface ThemeButtonSize extends Record<string, string | boolean> {
|
|
|
74
74
|
fontStyle: string;
|
|
75
75
|
letterSpacing: string;
|
|
76
76
|
padding: string;
|
|
77
|
-
textTransform:
|
|
77
|
+
textTransform: ThemeTextTransform;
|
|
78
78
|
weight: string;
|
|
79
79
|
}
|
|
80
80
|
export interface ThemeButtonLargeSize extends ThemeButtonSize {
|
|
@@ -148,6 +148,8 @@ export interface ThemeCards extends Record<string, ThemeCard | ThemeCardItem> {
|
|
|
148
148
|
}
|
|
149
149
|
export declare type ThemeTextAlignment = 'left' | 'right' | 'center' | 'justify';
|
|
150
150
|
export declare type ThemeJustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around';
|
|
151
|
+
export declare type ThemeFlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
152
|
+
export declare type ThemeTextTransform = 'none' | 'uppercase' | 'lowercase' | 'capitalize';
|
|
151
153
|
export declare type ThemeCategoryDisplayType = 'LIST' | 'CARDS' | 'SQUARES';
|
|
152
154
|
export declare type ThemeCategoryLineType = 'none' | 'underline' | 'overline';
|
|
153
155
|
export interface ThemeCategory extends Record<string, string | number | boolean> {
|
|
@@ -236,7 +238,7 @@ export interface ThemeFont extends Record<string, string | ThemeFontSizes | unde
|
|
|
236
238
|
letterSpacing: string;
|
|
237
239
|
lineHeight: number;
|
|
238
240
|
lineHeights?: ThemeFontSizes;
|
|
239
|
-
textTransform:
|
|
241
|
+
textTransform: ThemeTextTransform;
|
|
240
242
|
url?: string;
|
|
241
243
|
weight: string;
|
|
242
244
|
}
|
|
@@ -304,7 +306,7 @@ export interface ThemeInputs extends Record<string, string | boolean | ThemeInpu
|
|
|
304
306
|
showIcon: boolean;
|
|
305
307
|
showLabel: boolean;
|
|
306
308
|
showOutline: boolean;
|
|
307
|
-
textTransform:
|
|
309
|
+
textTransform: ThemeTextTransform;
|
|
308
310
|
weight: string;
|
|
309
311
|
}
|
|
310
312
|
export interface ThemeItemStyles extends Record<string, string | number> {
|
|
@@ -396,6 +398,7 @@ export interface ThemeMenuItemsBox extends Record<string, string | number> {
|
|
|
396
398
|
borderRadius: string;
|
|
397
399
|
borderRadiusMobile: string;
|
|
398
400
|
boxShadow: string;
|
|
401
|
+
boxShadowHover: string;
|
|
399
402
|
margin: string;
|
|
400
403
|
marginMobile: string;
|
|
401
404
|
minWidth: string;
|
|
@@ -436,14 +439,21 @@ export interface ThemeMenuItemsText extends Record<string, string | undefined> {
|
|
|
436
439
|
lineHeight?: string;
|
|
437
440
|
}
|
|
438
441
|
export interface ThemeMenuItemsTags extends ThemeMenuItemsText {
|
|
439
|
-
displayType: 'IMAGE' | 'TEXT' | 'BOTH';
|
|
442
|
+
displayType: 'IMAGE' | 'TEXT' | 'BOTH' | 'HIDDEN';
|
|
440
443
|
gap: string;
|
|
441
444
|
gapMobile: string;
|
|
445
|
+
letterSpacing: string;
|
|
446
|
+
prefix: string;
|
|
447
|
+
textTransform: ThemeTextTransform;
|
|
442
448
|
width: string;
|
|
443
449
|
widthMobile: string;
|
|
444
450
|
}
|
|
445
|
-
export interface
|
|
446
|
-
|
|
451
|
+
export interface ThemeMenuItemsTagsAllergens extends Record<string, string> {
|
|
452
|
+
justifyContent: ThemeJustifyContent;
|
|
453
|
+
flexDirection: ThemeFlexDirection;
|
|
454
|
+
}
|
|
455
|
+
export interface ThemeMenuItems extends Record<string, ThemeMenuItemsText | ThemeMenuItemsContainer | ThemeMenuItemsBox | ThemeMenuItemsImage | ThemeMenuItemsContent | ThemeMenuItemsTags | ThemeMenuItemsTagsAllergens> {
|
|
456
|
+
allergens: ThemeMenuItemsTags;
|
|
447
457
|
box: ThemeMenuItemsBox;
|
|
448
458
|
buttons: ThemeMenuItemsContent;
|
|
449
459
|
calories: ThemeMenuItemsText;
|
|
@@ -452,6 +462,7 @@ export interface ThemeMenuItems extends Record<string, ThemeMenuItemsText | Them
|
|
|
452
462
|
image: ThemeMenuItemsImage;
|
|
453
463
|
price: ThemeMenuItemsText;
|
|
454
464
|
tags: ThemeMenuItemsTags;
|
|
465
|
+
tagsAllergens: ThemeMenuItemsTagsAllergens;
|
|
455
466
|
text: ThemeMenuItemsText;
|
|
456
467
|
title: ThemeMenuItemsText;
|
|
457
468
|
}
|
|
@@ -480,6 +491,7 @@ export interface ThemeTagsBox extends Record<string, string | number> {
|
|
|
480
491
|
borderRadius: string;
|
|
481
492
|
borderRadiusMobile: string;
|
|
482
493
|
boxShadow: string;
|
|
494
|
+
boxShadowHover: string;
|
|
483
495
|
margin: string;
|
|
484
496
|
marginMobile: string;
|
|
485
497
|
minWidth: string;
|
|
@@ -74,7 +74,7 @@ export interface ThemeButtonSize extends Record<string, string | boolean> {
|
|
|
74
74
|
fontStyle: string;
|
|
75
75
|
letterSpacing: string;
|
|
76
76
|
padding: string;
|
|
77
|
-
textTransform:
|
|
77
|
+
textTransform: ThemeTextTransform;
|
|
78
78
|
weight: string;
|
|
79
79
|
}
|
|
80
80
|
export interface ThemeButtonLargeSize extends ThemeButtonSize {
|
|
@@ -148,6 +148,8 @@ export interface ThemeCards extends Record<string, ThemeCard | ThemeCardItem> {
|
|
|
148
148
|
}
|
|
149
149
|
export declare type ThemeTextAlignment = 'left' | 'right' | 'center' | 'justify';
|
|
150
150
|
export declare type ThemeJustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around';
|
|
151
|
+
export declare type ThemeFlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
152
|
+
export declare type ThemeTextTransform = 'none' | 'uppercase' | 'lowercase' | 'capitalize';
|
|
151
153
|
export declare type ThemeCategoryDisplayType = 'LIST' | 'CARDS' | 'SQUARES';
|
|
152
154
|
export declare type ThemeCategoryLineType = 'none' | 'underline' | 'overline';
|
|
153
155
|
export interface ThemeCategory extends Record<string, string | number | boolean> {
|
|
@@ -236,7 +238,7 @@ export interface ThemeFont extends Record<string, string | ThemeFontSizes | unde
|
|
|
236
238
|
letterSpacing: string;
|
|
237
239
|
lineHeight: number;
|
|
238
240
|
lineHeights?: ThemeFontSizes;
|
|
239
|
-
textTransform:
|
|
241
|
+
textTransform: ThemeTextTransform;
|
|
240
242
|
url?: string;
|
|
241
243
|
weight: string;
|
|
242
244
|
}
|
|
@@ -304,7 +306,7 @@ export interface ThemeInputs extends Record<string, string | boolean | ThemeInpu
|
|
|
304
306
|
showIcon: boolean;
|
|
305
307
|
showLabel: boolean;
|
|
306
308
|
showOutline: boolean;
|
|
307
|
-
textTransform:
|
|
309
|
+
textTransform: ThemeTextTransform;
|
|
308
310
|
weight: string;
|
|
309
311
|
}
|
|
310
312
|
export interface ThemeItemStyles extends Record<string, string | number> {
|
|
@@ -396,6 +398,7 @@ export interface ThemeMenuItemsBox extends Record<string, string | number> {
|
|
|
396
398
|
borderRadius: string;
|
|
397
399
|
borderRadiusMobile: string;
|
|
398
400
|
boxShadow: string;
|
|
401
|
+
boxShadowHover: string;
|
|
399
402
|
margin: string;
|
|
400
403
|
marginMobile: string;
|
|
401
404
|
minWidth: string;
|
|
@@ -436,14 +439,21 @@ export interface ThemeMenuItemsText extends Record<string, string | undefined> {
|
|
|
436
439
|
lineHeight?: string;
|
|
437
440
|
}
|
|
438
441
|
export interface ThemeMenuItemsTags extends ThemeMenuItemsText {
|
|
439
|
-
displayType: 'IMAGE' | 'TEXT' | 'BOTH';
|
|
442
|
+
displayType: 'IMAGE' | 'TEXT' | 'BOTH' | 'HIDDEN';
|
|
440
443
|
gap: string;
|
|
441
444
|
gapMobile: string;
|
|
445
|
+
letterSpacing: string;
|
|
446
|
+
prefix: string;
|
|
447
|
+
textTransform: ThemeTextTransform;
|
|
442
448
|
width: string;
|
|
443
449
|
widthMobile: string;
|
|
444
450
|
}
|
|
445
|
-
export interface
|
|
446
|
-
|
|
451
|
+
export interface ThemeMenuItemsTagsAllergens extends Record<string, string> {
|
|
452
|
+
justifyContent: ThemeJustifyContent;
|
|
453
|
+
flexDirection: ThemeFlexDirection;
|
|
454
|
+
}
|
|
455
|
+
export interface ThemeMenuItems extends Record<string, ThemeMenuItemsText | ThemeMenuItemsContainer | ThemeMenuItemsBox | ThemeMenuItemsImage | ThemeMenuItemsContent | ThemeMenuItemsTags | ThemeMenuItemsTagsAllergens> {
|
|
456
|
+
allergens: ThemeMenuItemsTags;
|
|
447
457
|
box: ThemeMenuItemsBox;
|
|
448
458
|
buttons: ThemeMenuItemsContent;
|
|
449
459
|
calories: ThemeMenuItemsText;
|
|
@@ -452,6 +462,7 @@ export interface ThemeMenuItems extends Record<string, ThemeMenuItemsText | Them
|
|
|
452
462
|
image: ThemeMenuItemsImage;
|
|
453
463
|
price: ThemeMenuItemsText;
|
|
454
464
|
tags: ThemeMenuItemsTags;
|
|
465
|
+
tagsAllergens: ThemeMenuItemsTagsAllergens;
|
|
455
466
|
text: ThemeMenuItemsText;
|
|
456
467
|
title: ThemeMenuItemsText;
|
|
457
468
|
}
|
|
@@ -480,6 +491,7 @@ export interface ThemeTagsBox extends Record<string, string | number> {
|
|
|
480
491
|
borderRadius: string;
|
|
481
492
|
borderRadiusMobile: string;
|
|
482
493
|
boxShadow: string;
|
|
494
|
+
boxShadowHover: string;
|
|
483
495
|
margin: string;
|
|
484
496
|
marginMobile: string;
|
|
485
497
|
minWidth: string;
|
package/package.json
CHANGED