delivapp-ordering 0.0.166 → 0.0.168
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.
- package/README.md +26 -26
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/types/components/BagesPaymentsOrderSummary/BagesPaymentsOrderSummary.d.ts +10 -10
- package/dist/cjs/types/components/BagesPaymentsOrderSummary/index.d.ts +1 -1
- package/dist/cjs/types/components/Checkbox/Checkbox.d.ts +8 -8
- package/dist/cjs/types/components/Checkbox/index.d.ts +1 -1
- package/dist/cjs/types/components/CheckoutFormItem/CheckoutFormItem.d.ts +10 -10
- package/dist/cjs/types/components/CheckoutFormItem/index.d.ts +1 -1
- package/dist/cjs/types/components/CounterButton/CounterButton.d.ts +12 -12
- package/dist/cjs/types/components/CounterButton/index.d.ts +1 -1
- package/dist/cjs/types/components/CutleryButton/CutleryButton.d.ts +8 -8
- package/dist/cjs/types/components/CutleryButton/index.d.ts +1 -1
- package/dist/cjs/types/components/DeliveryControl/DeliveryControl.d.ts +15 -15
- package/dist/cjs/types/components/DeliveryControl/index.d.ts +1 -1
- package/dist/cjs/types/components/Dropdown/Dropdown.d.ts +12 -12
- package/dist/cjs/types/components/GiftControl/GiftControl.d.ts +12 -12
- package/dist/cjs/types/components/GiftControl/index.d.ts +1 -1
- package/dist/cjs/types/components/HeaderCartButton/HeaderCartButton.d.ts +9 -9
- package/dist/cjs/types/components/HeaderCartButton/index.d.ts +1 -1
- package/dist/cjs/types/components/Icons/IconsPreview.d.ts +3 -3
- package/dist/cjs/types/components/Icons/index.d.ts +173 -173
- package/dist/cjs/types/components/IngredientsSelector/IngredientsSelector.d.ts +12 -12
- package/dist/cjs/types/components/IngredientsSelector/index.d.ts +1 -1
- package/dist/cjs/types/components/Input/Input.d.ts +9 -9
- package/dist/cjs/types/components/Input/index.d.ts +1 -1
- package/dist/cjs/types/components/Loader/Loader.d.ts +3 -3
- package/dist/cjs/types/components/Loader/index.d.ts +1 -1
- package/dist/cjs/types/components/Media/Image.d.ts +12 -12
- package/dist/cjs/types/components/Media/Media.d.ts +21 -21
- package/dist/cjs/types/components/Media/Video.d.ts +16 -16
- package/dist/cjs/types/components/Media/index.d.ts +1 -1
- package/dist/cjs/types/components/OrderSummary/OrderSummary.d.ts +59 -59
- package/dist/cjs/types/components/OrderSummary/index.d.ts +1 -1
- package/dist/cjs/types/components/OrderSummaryWithProducts/OrderSummaryWithProducts.d.ts +36 -36
- package/dist/cjs/types/components/OrderSummaryWithProducts/index.d.ts +1 -1
- package/dist/cjs/types/components/ProductCommentsSection/ProductCommentsSection.d.ts +9 -9
- package/dist/cjs/types/components/ProductCommentsSection/index.d.ts +1 -1
- package/dist/cjs/types/components/ProductConstructor/ProductConstructor.d.ts +47 -47
- package/dist/cjs/types/components/ProductConstructor/index.d.ts +1 -1
- package/dist/cjs/types/components/ProductConstructorFooter/ProductConstructorFooter.d.ts +16 -16
- package/dist/cjs/types/components/ProductConstructorFooter/index.d.ts +1 -1
- package/dist/cjs/types/components/ProductPreview/ProductPreview.d.ts +20 -20
- package/dist/cjs/types/components/ProductPreview/index.d.ts +1 -1
- package/dist/cjs/types/components/ProductPreviewList/ProductPreviewList.d.ts +12 -12
- package/dist/cjs/types/components/ProductPreviewList/index.d.ts +1 -1
- package/dist/cjs/types/components/ProductSummary/ProductSummary.d.ts +13 -13
- package/dist/cjs/types/components/ProductSummary/index.d.ts +1 -1
- package/dist/cjs/types/components/ProductTags/ProductTags.d.ts +10 -10
- package/dist/cjs/types/components/ProductTags/index.d.ts +1 -1
- package/dist/cjs/types/components/QuantityDescription/QuantityDescription.d.ts +7 -7
- package/dist/cjs/types/components/QuantityDescription/index.d.ts +1 -1
- package/dist/cjs/types/components/RestaurantBenefits/RestaurantBenefits.d.ts +17 -17
- package/dist/cjs/types/components/RestaurantBenefits/index.d.ts +1 -1
- package/dist/cjs/types/components/RestaurantHeader/RestaurantHeader.d.ts +16 -16
- package/dist/cjs/types/components/RestaurantHeader/index.d.ts +1 -1
- package/dist/cjs/types/components/RestaurantTags/RestaurantTags.d.ts +8 -8
- package/dist/cjs/types/components/RestaurantTags/index.d.ts +1 -1
- package/dist/cjs/types/components/Stepper/Stepper.d.ts +14 -14
- package/dist/cjs/types/components/Stepper/index.d.ts +1 -1
- package/dist/cjs/types/components/SuboptionPrice/SuboptionPrice.d.ts +9 -9
- package/dist/cjs/types/components/SuboptionPrice/index.d.ts +1 -1
- package/dist/cjs/types/components/SuboptionSelector/IOption.d.ts +25 -25
- package/dist/cjs/types/components/SuboptionSelector/ISuboption.d.ts +16 -16
- package/dist/cjs/types/components/SuboptionSelector/SuboptionCheckboxSelector/SuboptionCheckboxSelector.d.ts +14 -14
- package/dist/cjs/types/components/SuboptionSelector/SuboptionCheckboxSelector/index.d.ts +1 -1
- package/dist/cjs/types/components/SuboptionSelector/SuboptionMultiSelector/SuboptionMultiSelector.d.ts +14 -14
- package/dist/cjs/types/components/SuboptionSelector/SuboptionMultiSelector/index.d.ts +1 -1
- package/dist/cjs/types/components/SuboptionSelector/SuboptionPizzaSelector/SuboptionPizzaSelector.d.ts +12 -12
- package/dist/cjs/types/components/SuboptionSelector/SuboptionPizzaSelector/index.d.ts +1 -1
- package/dist/cjs/types/components/SuboptionSelector/SuboptionRadioSelector/SuboptionRadioSelector.d.ts +13 -13
- package/dist/cjs/types/components/SuboptionSelector/SuboptionRadioSelector/index.d.ts +1 -1
- package/dist/cjs/types/components/SuboptionSelector/index.d.ts +4 -4
- package/dist/cjs/types/components/SuboptionSummary/SuboptionSummary.d.ts +4 -4
- package/dist/cjs/types/components/SuboptionSummary/index.d.ts +1 -1
- package/dist/cjs/types/components/TabsControl/TabsControl.d.ts +14 -14
- package/dist/cjs/types/components/TabsControl/index.d.ts +1 -1
- package/dist/cjs/types/components/Tag/Tag.d.ts +8 -8
- package/dist/cjs/types/components/Tag/index.d.ts +1 -1
- package/dist/cjs/types/components/Warning/Warning.d.ts +6 -6
- package/dist/cjs/types/components/Warning/index.d.ts +1 -1
- package/dist/cjs/types/components/index.d.ts +24 -24
- package/dist/cjs/types/enums/enums.d.ts +58 -58
- package/dist/cjs/types/helpers/context.d.ts +11 -11
- package/dist/cjs/types/helpers/defaultTranslation.d.ts +97 -97
- package/dist/cjs/types/helpers/index.d.ts +1 -1
- package/dist/cjs/types/helpers/productConstructor.d.ts +86 -86
- package/dist/cjs/types/helpers/utils.d.ts +3 -3
- package/dist/cjs/types/index.d.ts +5 -5
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/components/BagesPaymentsOrderSummary/BagesPaymentsOrderSummary.d.ts +10 -10
- package/dist/esm/types/components/BagesPaymentsOrderSummary/index.d.ts +1 -1
- package/dist/esm/types/components/Checkbox/Checkbox.d.ts +8 -8
- package/dist/esm/types/components/Checkbox/index.d.ts +1 -1
- package/dist/esm/types/components/CheckoutFormItem/CheckoutFormItem.d.ts +10 -10
- package/dist/esm/types/components/CheckoutFormItem/index.d.ts +1 -1
- package/dist/esm/types/components/CounterButton/CounterButton.d.ts +12 -12
- package/dist/esm/types/components/CounterButton/index.d.ts +1 -1
- package/dist/esm/types/components/CutleryButton/CutleryButton.d.ts +8 -8
- package/dist/esm/types/components/CutleryButton/index.d.ts +1 -1
- package/dist/esm/types/components/DeliveryControl/DeliveryControl.d.ts +15 -15
- package/dist/esm/types/components/DeliveryControl/index.d.ts +1 -1
- package/dist/esm/types/components/Dropdown/Dropdown.d.ts +12 -12
- package/dist/esm/types/components/GiftControl/GiftControl.d.ts +12 -12
- package/dist/esm/types/components/GiftControl/index.d.ts +1 -1
- package/dist/esm/types/components/HeaderCartButton/HeaderCartButton.d.ts +9 -9
- package/dist/esm/types/components/HeaderCartButton/index.d.ts +1 -1
- package/dist/esm/types/components/Icons/IconsPreview.d.ts +3 -3
- package/dist/esm/types/components/Icons/index.d.ts +173 -173
- package/dist/esm/types/components/IngredientsSelector/IngredientsSelector.d.ts +12 -12
- package/dist/esm/types/components/IngredientsSelector/index.d.ts +1 -1
- package/dist/esm/types/components/Input/Input.d.ts +9 -9
- package/dist/esm/types/components/Input/index.d.ts +1 -1
- package/dist/esm/types/components/Loader/Loader.d.ts +3 -3
- package/dist/esm/types/components/Loader/index.d.ts +1 -1
- package/dist/esm/types/components/Media/Image.d.ts +12 -12
- package/dist/esm/types/components/Media/Media.d.ts +21 -21
- package/dist/esm/types/components/Media/Video.d.ts +16 -16
- package/dist/esm/types/components/Media/index.d.ts +1 -1
- package/dist/esm/types/components/OrderSummary/OrderSummary.d.ts +59 -59
- package/dist/esm/types/components/OrderSummary/index.d.ts +1 -1
- package/dist/esm/types/components/OrderSummaryWithProducts/OrderSummaryWithProducts.d.ts +36 -36
- package/dist/esm/types/components/OrderSummaryWithProducts/index.d.ts +1 -1
- package/dist/esm/types/components/ProductCommentsSection/ProductCommentsSection.d.ts +9 -9
- package/dist/esm/types/components/ProductCommentsSection/index.d.ts +1 -1
- package/dist/esm/types/components/ProductConstructor/ProductConstructor.d.ts +47 -47
- package/dist/esm/types/components/ProductConstructor/index.d.ts +1 -1
- package/dist/esm/types/components/ProductConstructorFooter/ProductConstructorFooter.d.ts +16 -16
- package/dist/esm/types/components/ProductConstructorFooter/index.d.ts +1 -1
- package/dist/esm/types/components/ProductPreview/ProductPreview.d.ts +20 -20
- package/dist/esm/types/components/ProductPreview/index.d.ts +1 -1
- package/dist/esm/types/components/ProductPreviewList/ProductPreviewList.d.ts +12 -12
- package/dist/esm/types/components/ProductPreviewList/index.d.ts +1 -1
- package/dist/esm/types/components/ProductSummary/ProductSummary.d.ts +13 -13
- package/dist/esm/types/components/ProductSummary/index.d.ts +1 -1
- package/dist/esm/types/components/ProductTags/ProductTags.d.ts +10 -10
- package/dist/esm/types/components/ProductTags/index.d.ts +1 -1
- package/dist/esm/types/components/QuantityDescription/QuantityDescription.d.ts +7 -7
- package/dist/esm/types/components/QuantityDescription/index.d.ts +1 -1
- package/dist/esm/types/components/RestaurantBenefits/RestaurantBenefits.d.ts +17 -17
- package/dist/esm/types/components/RestaurantBenefits/index.d.ts +1 -1
- package/dist/esm/types/components/RestaurantHeader/RestaurantHeader.d.ts +16 -16
- package/dist/esm/types/components/RestaurantHeader/index.d.ts +1 -1
- package/dist/esm/types/components/RestaurantTags/RestaurantTags.d.ts +8 -8
- package/dist/esm/types/components/RestaurantTags/index.d.ts +1 -1
- package/dist/esm/types/components/Stepper/Stepper.d.ts +14 -14
- package/dist/esm/types/components/Stepper/index.d.ts +1 -1
- package/dist/esm/types/components/SuboptionPrice/SuboptionPrice.d.ts +9 -9
- package/dist/esm/types/components/SuboptionPrice/index.d.ts +1 -1
- package/dist/esm/types/components/SuboptionSelector/IOption.d.ts +25 -25
- package/dist/esm/types/components/SuboptionSelector/ISuboption.d.ts +16 -16
- package/dist/esm/types/components/SuboptionSelector/SuboptionCheckboxSelector/SuboptionCheckboxSelector.d.ts +14 -14
- package/dist/esm/types/components/SuboptionSelector/SuboptionCheckboxSelector/index.d.ts +1 -1
- package/dist/esm/types/components/SuboptionSelector/SuboptionMultiSelector/SuboptionMultiSelector.d.ts +14 -14
- package/dist/esm/types/components/SuboptionSelector/SuboptionMultiSelector/index.d.ts +1 -1
- package/dist/esm/types/components/SuboptionSelector/SuboptionPizzaSelector/SuboptionPizzaSelector.d.ts +12 -12
- package/dist/esm/types/components/SuboptionSelector/SuboptionPizzaSelector/index.d.ts +1 -1
- package/dist/esm/types/components/SuboptionSelector/SuboptionRadioSelector/SuboptionRadioSelector.d.ts +13 -13
- package/dist/esm/types/components/SuboptionSelector/SuboptionRadioSelector/index.d.ts +1 -1
- package/dist/esm/types/components/SuboptionSelector/index.d.ts +4 -4
- package/dist/esm/types/components/SuboptionSummary/SuboptionSummary.d.ts +4 -4
- package/dist/esm/types/components/SuboptionSummary/index.d.ts +1 -1
- package/dist/esm/types/components/TabsControl/TabsControl.d.ts +14 -14
- package/dist/esm/types/components/TabsControl/index.d.ts +1 -1
- package/dist/esm/types/components/Tag/Tag.d.ts +8 -8
- package/dist/esm/types/components/Tag/index.d.ts +1 -1
- package/dist/esm/types/components/Warning/Warning.d.ts +6 -6
- package/dist/esm/types/components/Warning/index.d.ts +1 -1
- package/dist/esm/types/components/index.d.ts +24 -24
- package/dist/esm/types/enums/enums.d.ts +58 -58
- package/dist/esm/types/helpers/context.d.ts +11 -11
- package/dist/esm/types/helpers/defaultTranslation.d.ts +97 -97
- package/dist/esm/types/helpers/index.d.ts +1 -1
- package/dist/esm/types/helpers/productConstructor.d.ts +86 -86
- package/dist/esm/types/helpers/utils.d.ts +3 -3
- package/dist/esm/types/index.d.ts +5 -5
- package/dist/index.d.ts +641 -641
- package/package.json +79 -79
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const TranslationUIContext: import("react").Context<{
|
|
3
|
-
[key: string]: ITranslation;
|
|
4
|
-
}>;
|
|
5
|
-
export declare const TranslationUIProvider: import("react").Provider<{
|
|
6
|
-
[key: string]: ITranslation;
|
|
7
|
-
}>;
|
|
8
|
-
export interface ITranslation {
|
|
9
|
-
[key: string]: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const useUITranslationContext: (key: string) => ITranslation;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const TranslationUIContext: import("react").Context<{
|
|
3
|
+
[key: string]: ITranslation;
|
|
4
|
+
}>;
|
|
5
|
+
export declare const TranslationUIProvider: import("react").Provider<{
|
|
6
|
+
[key: string]: ITranslation;
|
|
7
|
+
}>;
|
|
8
|
+
export interface ITranslation {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const useUITranslationContext: (key: string) => ITranslation;
|
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
cutlery: {
|
|
3
|
-
addCutlery: string;
|
|
4
|
-
cutlery: string;
|
|
5
|
-
};
|
|
6
|
-
checkoutFormItem: {
|
|
7
|
-
change: string;
|
|
8
|
-
};
|
|
9
|
-
gift: {
|
|
10
|
-
itsGift: string;
|
|
11
|
-
name: string;
|
|
12
|
-
namePlaceholder: string;
|
|
13
|
-
greeting: string;
|
|
14
|
-
greetingPlaceholder: string;
|
|
15
|
-
phone: string;
|
|
16
|
-
phonePlaceholder: string;
|
|
17
|
-
};
|
|
18
|
-
bagesPaymentsOrderSummary: {
|
|
19
|
-
discount: string;
|
|
20
|
-
freeDelivery: string;
|
|
21
|
-
bonuses: string;
|
|
22
|
-
};
|
|
23
|
-
tag: {
|
|
24
|
-
vegan: string;
|
|
25
|
-
vegetarian: string;
|
|
26
|
-
spicy: string;
|
|
27
|
-
freeGluten: string;
|
|
28
|
-
};
|
|
29
|
-
errorConstructor: {
|
|
30
|
-
selectOneOf: string;
|
|
31
|
-
selectAtLeast: string;
|
|
32
|
-
for: string;
|
|
33
|
-
maximumAvailable: string;
|
|
34
|
-
minimumOption: string;
|
|
35
|
-
};
|
|
36
|
-
productConstructor: {
|
|
37
|
-
ingredients: string;
|
|
38
|
-
comments: string;
|
|
39
|
-
addName: string;
|
|
40
|
-
addComment: string;
|
|
41
|
-
addCommentPlaceholder: string;
|
|
42
|
-
addNamePlaceholder: string;
|
|
43
|
-
summary: string;
|
|
44
|
-
toppings: string;
|
|
45
|
-
half: string;
|
|
46
|
-
full: string;
|
|
47
|
-
addToCart: string;
|
|
48
|
-
back: string;
|
|
49
|
-
next: string;
|
|
50
|
-
left: string;
|
|
51
|
-
right: string;
|
|
52
|
-
change: string;
|
|
53
|
-
free: string;
|
|
54
|
-
upToOption: string;
|
|
55
|
-
freeOptions: string;
|
|
56
|
-
portionSizeLabel: string;
|
|
57
|
-
portionSizeLabelWeighed: string;
|
|
58
|
-
selected: string;
|
|
59
|
-
notSelected: string;
|
|
60
|
-
gr: string;
|
|
61
|
-
weightProductAcceptable: string;
|
|
62
|
-
weightAdditionalPayment: string;
|
|
63
|
-
};
|
|
64
|
-
summary: {
|
|
65
|
-
editProduct: string;
|
|
66
|
-
addRemovedOffer: string;
|
|
67
|
-
removedOffer: string;
|
|
68
|
-
bonus: string;
|
|
69
|
-
discount: string;
|
|
70
|
-
coupon: string;
|
|
71
|
-
removeCoupon: string;
|
|
72
|
-
summary: string;
|
|
73
|
-
subtotal: string;
|
|
74
|
-
deliveryCost: string;
|
|
75
|
-
deliveryCostBase: string;
|
|
76
|
-
deliveryCostFinal: string;
|
|
77
|
-
serviceFee: string;
|
|
78
|
-
minimumOrderCharge: string;
|
|
79
|
-
driverTip: string;
|
|
80
|
-
invalidPromocode: string;
|
|
81
|
-
placeholderPromocode: string;
|
|
82
|
-
paymentBalance: string;
|
|
83
|
-
weightAdjustment: string;
|
|
84
|
-
weightAdjustmentTooltip: string;
|
|
85
|
-
total: string;
|
|
86
|
-
confirm: string;
|
|
87
|
-
bonusCardExpiration: string;
|
|
88
|
-
bonusCardTooltip: string;
|
|
89
|
-
};
|
|
90
|
-
deliveryControl: {
|
|
91
|
-
pickUp: string;
|
|
92
|
-
delivery: string;
|
|
93
|
-
dinein: string;
|
|
94
|
-
virtualVenue: string;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
cutlery: {
|
|
3
|
+
addCutlery: string;
|
|
4
|
+
cutlery: string;
|
|
5
|
+
};
|
|
6
|
+
checkoutFormItem: {
|
|
7
|
+
change: string;
|
|
8
|
+
};
|
|
9
|
+
gift: {
|
|
10
|
+
itsGift: string;
|
|
11
|
+
name: string;
|
|
12
|
+
namePlaceholder: string;
|
|
13
|
+
greeting: string;
|
|
14
|
+
greetingPlaceholder: string;
|
|
15
|
+
phone: string;
|
|
16
|
+
phonePlaceholder: string;
|
|
17
|
+
};
|
|
18
|
+
bagesPaymentsOrderSummary: {
|
|
19
|
+
discount: string;
|
|
20
|
+
freeDelivery: string;
|
|
21
|
+
bonuses: string;
|
|
22
|
+
};
|
|
23
|
+
tag: {
|
|
24
|
+
vegan: string;
|
|
25
|
+
vegetarian: string;
|
|
26
|
+
spicy: string;
|
|
27
|
+
freeGluten: string;
|
|
28
|
+
};
|
|
29
|
+
errorConstructor: {
|
|
30
|
+
selectOneOf: string;
|
|
31
|
+
selectAtLeast: string;
|
|
32
|
+
for: string;
|
|
33
|
+
maximumAvailable: string;
|
|
34
|
+
minimumOption: string;
|
|
35
|
+
};
|
|
36
|
+
productConstructor: {
|
|
37
|
+
ingredients: string;
|
|
38
|
+
comments: string;
|
|
39
|
+
addName: string;
|
|
40
|
+
addComment: string;
|
|
41
|
+
addCommentPlaceholder: string;
|
|
42
|
+
addNamePlaceholder: string;
|
|
43
|
+
summary: string;
|
|
44
|
+
toppings: string;
|
|
45
|
+
half: string;
|
|
46
|
+
full: string;
|
|
47
|
+
addToCart: string;
|
|
48
|
+
back: string;
|
|
49
|
+
next: string;
|
|
50
|
+
left: string;
|
|
51
|
+
right: string;
|
|
52
|
+
change: string;
|
|
53
|
+
free: string;
|
|
54
|
+
upToOption: string;
|
|
55
|
+
freeOptions: string;
|
|
56
|
+
portionSizeLabel: string;
|
|
57
|
+
portionSizeLabelWeighed: string;
|
|
58
|
+
selected: string;
|
|
59
|
+
notSelected: string;
|
|
60
|
+
gr: string;
|
|
61
|
+
weightProductAcceptable: string;
|
|
62
|
+
weightAdditionalPayment: string;
|
|
63
|
+
};
|
|
64
|
+
summary: {
|
|
65
|
+
editProduct: string;
|
|
66
|
+
addRemovedOffer: string;
|
|
67
|
+
removedOffer: string;
|
|
68
|
+
bonus: string;
|
|
69
|
+
discount: string;
|
|
70
|
+
coupon: string;
|
|
71
|
+
removeCoupon: string;
|
|
72
|
+
summary: string;
|
|
73
|
+
subtotal: string;
|
|
74
|
+
deliveryCost: string;
|
|
75
|
+
deliveryCostBase: string;
|
|
76
|
+
deliveryCostFinal: string;
|
|
77
|
+
serviceFee: string;
|
|
78
|
+
minimumOrderCharge: string;
|
|
79
|
+
driverTip: string;
|
|
80
|
+
invalidPromocode: string;
|
|
81
|
+
placeholderPromocode: string;
|
|
82
|
+
paymentBalance: string;
|
|
83
|
+
weightAdjustment: string;
|
|
84
|
+
weightAdjustmentTooltip: string;
|
|
85
|
+
total: string;
|
|
86
|
+
confirm: string;
|
|
87
|
+
bonusCardExpiration: string;
|
|
88
|
+
bonusCardTooltip: string;
|
|
89
|
+
};
|
|
90
|
+
deliveryControl: {
|
|
91
|
+
pickUp: string;
|
|
92
|
+
delivery: string;
|
|
93
|
+
dinein: string;
|
|
94
|
+
virtualVenue: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { INGREDIENTS, HALF_OPTION, type IProductSaved, prepareHalfOptions, convertToServerModelOptions, checkRespectTo, mergeProduct, mergeOption, } from './productConstructor';
|
|
1
|
+
export { INGREDIENTS, HALF_OPTION, type IProductSaved, prepareHalfOptions, convertToServerModelOptions, checkRespectTo, mergeProduct, mergeOption, } from './productConstructor';
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import { IOption, ISuboption } from '../components';
|
|
2
|
-
import { Ingredient } from '../components/IngredientsSelector/IngredientsSelector';
|
|
3
|
-
import { ITranslation } from './context';
|
|
4
|
-
import { CURRENCY } from '../enums/enums';
|
|
5
|
-
export declare const INGREDIENTS = "#INGREDIENTS";
|
|
6
|
-
export declare const HALF_SELECTOR = "#HALF_SELECTOR";
|
|
7
|
-
export declare const HALF_SELECTOR_FULL = "#HALF_SELECTOR_FULL";
|
|
8
|
-
export declare const HALF_SELECTOR_HALF = "#HALF_SELECTOR_HALF";
|
|
9
|
-
export declare enum HALF_OPTION {
|
|
10
|
-
none = 0,
|
|
11
|
-
left = 1,
|
|
12
|
-
right = 2
|
|
13
|
-
}
|
|
14
|
-
export declare const prepeareIngredients: (ingredients: any, translations: ITranslation) => IOption;
|
|
15
|
-
export declare const prepeareOptions: (opt: IOption[], optHalf: IOption[], isHalf: any, translations: ITranslation) => any[];
|
|
16
|
-
export declare const getErrorContsructor: (option: any, errorTranslations: ITranslation) => string;
|
|
17
|
-
export declare const prepareHalfOptions: (halfOptions: IOption[], isHalf: boolean) => IOption[];
|
|
18
|
-
export declare const isHalfOption: (id: string) => boolean;
|
|
19
|
-
export declare const isHalfOptionSelected: (id: string) => boolean;
|
|
20
|
-
export declare const getSummaryProduct: (ingredient: IOption, options: IOption[], optionsHalf: IOption[], comments: string | null, wighthOptions: {
|
|
21
|
-
weighed: boolean;
|
|
22
|
-
unit_weight: number;
|
|
23
|
-
weight_range: number;
|
|
24
|
-
quantity: number;
|
|
25
|
-
amountDiff: number;
|
|
26
|
-
currency: CURRENCY;
|
|
27
|
-
}, currency: CURRENCY, translations: ITranslation) => {
|
|
28
|
-
name: string;
|
|
29
|
-
value: string | any;
|
|
30
|
-
index: number;
|
|
31
|
-
weightProduct?: boolean;
|
|
32
|
-
tooltip?: string;
|
|
33
|
-
}[];
|
|
34
|
-
export declare const getSidesName: (option: IOption, translations: ITranslation) => string;
|
|
35
|
-
export declare const convertToServerModelOptions: (options: IOption[]) => {
|
|
36
|
-
id: string;
|
|
37
|
-
name: string;
|
|
38
|
-
suboptions: {
|
|
39
|
-
id: string;
|
|
40
|
-
name: string;
|
|
41
|
-
price: number;
|
|
42
|
-
quantity: number;
|
|
43
|
-
half_option: HALF_OPTION;
|
|
44
|
-
}[];
|
|
45
|
-
}[];
|
|
46
|
-
export declare const checkRespectTo: (option: IOption, options: IOption[]) => boolean;
|
|
47
|
-
export interface IProductSaved {
|
|
48
|
-
product: {
|
|
49
|
-
id: string;
|
|
50
|
-
name: string;
|
|
51
|
-
quantity: number;
|
|
52
|
-
ingredients: string[];
|
|
53
|
-
options: {
|
|
54
|
-
id: string;
|
|
55
|
-
name: string;
|
|
56
|
-
suboptions: {
|
|
57
|
-
id: string;
|
|
58
|
-
name: string;
|
|
59
|
-
price: number;
|
|
60
|
-
quantity: number;
|
|
61
|
-
half_option: HALF_OPTION;
|
|
62
|
-
}[];
|
|
63
|
-
}[];
|
|
64
|
-
price: number;
|
|
65
|
-
full_price: number;
|
|
66
|
-
name_on_box: string;
|
|
67
|
-
comment: string;
|
|
68
|
-
};
|
|
69
|
-
full_price: number;
|
|
70
|
-
}
|
|
71
|
-
export declare const mergeProduct: (product: IProductSaved, allOptionsTemplate: IOption[], ingredients: Ingredient[]) => {
|
|
72
|
-
comments: string;
|
|
73
|
-
nameOnBox: string;
|
|
74
|
-
finalPrice: number;
|
|
75
|
-
quantity: number;
|
|
76
|
-
ingredients: any[];
|
|
77
|
-
options: any[];
|
|
78
|
-
optionsHalf: any[];
|
|
79
|
-
isHalf: boolean;
|
|
80
|
-
};
|
|
81
|
-
export declare const mergeOption: (option: IOption, productToCart: IProductSaved) => IOption;
|
|
82
|
-
export declare const getSuboptionPrice: (freeBudget: number, suboption: ISuboption) => {
|
|
83
|
-
free: boolean;
|
|
84
|
-
amount: number | null;
|
|
85
|
-
};
|
|
86
|
-
export declare const getMinMaxQuantity: (min: number, max: number, freeBudget: number, freeLabel: string) => string;
|
|
1
|
+
import { IOption, ISuboption } from '../components';
|
|
2
|
+
import { Ingredient } from '../components/IngredientsSelector/IngredientsSelector';
|
|
3
|
+
import { ITranslation } from './context';
|
|
4
|
+
import { CURRENCY } from '../enums/enums';
|
|
5
|
+
export declare const INGREDIENTS = "#INGREDIENTS";
|
|
6
|
+
export declare const HALF_SELECTOR = "#HALF_SELECTOR";
|
|
7
|
+
export declare const HALF_SELECTOR_FULL = "#HALF_SELECTOR_FULL";
|
|
8
|
+
export declare const HALF_SELECTOR_HALF = "#HALF_SELECTOR_HALF";
|
|
9
|
+
export declare enum HALF_OPTION {
|
|
10
|
+
none = 0,
|
|
11
|
+
left = 1,
|
|
12
|
+
right = 2
|
|
13
|
+
}
|
|
14
|
+
export declare const prepeareIngredients: (ingredients: any, translations: ITranslation) => IOption;
|
|
15
|
+
export declare const prepeareOptions: (opt: IOption[], optHalf: IOption[], isHalf: any, translations: ITranslation) => any[];
|
|
16
|
+
export declare const getErrorContsructor: (option: any, errorTranslations: ITranslation) => string;
|
|
17
|
+
export declare const prepareHalfOptions: (halfOptions: IOption[], isHalf: boolean) => IOption[];
|
|
18
|
+
export declare const isHalfOption: (id: string) => boolean;
|
|
19
|
+
export declare const isHalfOptionSelected: (id: string) => boolean;
|
|
20
|
+
export declare const getSummaryProduct: (ingredient: IOption, options: IOption[], optionsHalf: IOption[], comments: string | null, wighthOptions: {
|
|
21
|
+
weighed: boolean;
|
|
22
|
+
unit_weight: number;
|
|
23
|
+
weight_range: number;
|
|
24
|
+
quantity: number;
|
|
25
|
+
amountDiff: number;
|
|
26
|
+
currency: CURRENCY;
|
|
27
|
+
}, currency: CURRENCY, translations: ITranslation) => {
|
|
28
|
+
name: string;
|
|
29
|
+
value: string | any;
|
|
30
|
+
index: number;
|
|
31
|
+
weightProduct?: boolean;
|
|
32
|
+
tooltip?: string;
|
|
33
|
+
}[];
|
|
34
|
+
export declare const getSidesName: (option: IOption, translations: ITranslation) => string;
|
|
35
|
+
export declare const convertToServerModelOptions: (options: IOption[]) => {
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
suboptions: {
|
|
39
|
+
id: string;
|
|
40
|
+
name: string;
|
|
41
|
+
price: number;
|
|
42
|
+
quantity: number;
|
|
43
|
+
half_option: HALF_OPTION;
|
|
44
|
+
}[];
|
|
45
|
+
}[];
|
|
46
|
+
export declare const checkRespectTo: (option: IOption, options: IOption[]) => boolean;
|
|
47
|
+
export interface IProductSaved {
|
|
48
|
+
product: {
|
|
49
|
+
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
quantity: number;
|
|
52
|
+
ingredients: string[];
|
|
53
|
+
options: {
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
suboptions: {
|
|
57
|
+
id: string;
|
|
58
|
+
name: string;
|
|
59
|
+
price: number;
|
|
60
|
+
quantity: number;
|
|
61
|
+
half_option: HALF_OPTION;
|
|
62
|
+
}[];
|
|
63
|
+
}[];
|
|
64
|
+
price: number;
|
|
65
|
+
full_price: number;
|
|
66
|
+
name_on_box: string;
|
|
67
|
+
comment: string;
|
|
68
|
+
};
|
|
69
|
+
full_price: number;
|
|
70
|
+
}
|
|
71
|
+
export declare const mergeProduct: (product: IProductSaved, allOptionsTemplate: IOption[], ingredients: Ingredient[]) => {
|
|
72
|
+
comments: string;
|
|
73
|
+
nameOnBox: string;
|
|
74
|
+
finalPrice: number;
|
|
75
|
+
quantity: number;
|
|
76
|
+
ingredients: any[];
|
|
77
|
+
options: any[];
|
|
78
|
+
optionsHalf: any[];
|
|
79
|
+
isHalf: boolean;
|
|
80
|
+
};
|
|
81
|
+
export declare const mergeOption: (option: IOption, productToCart: IProductSaved) => IOption;
|
|
82
|
+
export declare const getSuboptionPrice: (freeBudget: number, suboption: ISuboption) => {
|
|
83
|
+
free: boolean;
|
|
84
|
+
amount: number | null;
|
|
85
|
+
};
|
|
86
|
+
export declare const getMinMaxQuantity: (min: number, max: number, freeBudget: number, freeLabel: string) => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CURRENCY } from '../enums/enums';
|
|
2
|
-
export declare const getKeyByValue: (object: any, value: string | number) => any;
|
|
3
|
-
export declare const getCurrencyIcon: (currency: CURRENCY, amount?: number) => string;
|
|
1
|
+
import { CURRENCY } from '../enums/enums';
|
|
2
|
+
export declare const getKeyByValue: (object: any, value: string | number) => any;
|
|
3
|
+
export declare const getCurrencyIcon: (currency: CURRENCY, amount?: number) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import './core/styles/global.scss';
|
|
2
|
-
export * from './components';
|
|
3
|
-
export * from './helpers';
|
|
4
|
-
export * from './enums/enums';
|
|
5
|
-
export { TranslationUIProvider } from './helpers/context';
|
|
1
|
+
import './core/styles/global.scss';
|
|
2
|
+
export * from './components';
|
|
3
|
+
export * from './helpers';
|
|
4
|
+
export * from './enums/enums';
|
|
5
|
+
export { TranslationUIProvider } from './helpers/context';
|