delivapp-ordering 0.0.178 → 0.0.185
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 +13 -13
- 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 +48 -48
- 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 +17 -17
- 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 +2 -2
- package/dist/cjs/types/helpers/mediaUrl.d.ts +28 -28
- 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 +13 -13
- 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 +48 -48
- 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 +17 -17
- 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 +2 -2
- package/dist/esm/types/helpers/mediaUrl.d.ts +28 -28
- 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 +670 -670
- package/package.json +77 -77
package/dist/index.d.ts
CHANGED
|
@@ -2,724 +2,724 @@
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { ReactNode, HTMLProps, InputHTMLAttributes, ReactElement, ChangeEvent, FC } from 'react';
|
|
4
4
|
|
|
5
|
-
declare enum CROP_MODE {
|
|
6
|
-
'fill' = 0,
|
|
7
|
-
'pad' = 1,
|
|
8
|
-
'fit' = 2,
|
|
9
|
-
'mfit' = 3,
|
|
10
|
-
'scale' = 4,
|
|
11
|
-
'limit' = 5,
|
|
12
|
-
'lpad' = 6,
|
|
13
|
-
'mpad' = 7,
|
|
14
|
-
'crop' = 8,
|
|
15
|
-
'fill_pad' = 9,
|
|
16
|
-
'thumb' = 10
|
|
17
|
-
}
|
|
18
|
-
declare enum GRAVITY_MODE {
|
|
19
|
-
'center' = 0,
|
|
20
|
-
'north_east' = 1,
|
|
21
|
-
'north' = 2,
|
|
22
|
-
'north_west' = 3,
|
|
23
|
-
'west' = 4,
|
|
24
|
-
'south_west' = 5,
|
|
25
|
-
'south' = 6,
|
|
26
|
-
'south_east' = 7,
|
|
27
|
-
'east' = 8,
|
|
28
|
-
'liquid' = 9,
|
|
29
|
-
'auto' = 10
|
|
30
|
-
}
|
|
31
|
-
declare enum QUALITY_MODE {
|
|
32
|
-
best = 1,
|
|
33
|
-
good = 2,
|
|
34
|
-
eco = 3,
|
|
35
|
-
low = 4,
|
|
36
|
-
custom = 5
|
|
37
|
-
}
|
|
38
|
-
declare enum CURRENCY {
|
|
39
|
-
'USD' = "$",
|
|
40
|
-
'EUR' = "\u20AC",
|
|
41
|
-
'GBP' = "\u00A3",
|
|
42
|
-
'UAH' = "\u20B4",
|
|
43
|
-
'AED' = "\u062F.",
|
|
44
|
-
'ILS' = "\u20AA",
|
|
45
|
-
'JPY' = "\u00A5",
|
|
46
|
-
'KZT' = "\u20B8",
|
|
47
|
-
'RUB' = "\u20BD"
|
|
48
|
-
}
|
|
49
|
-
declare enum DISCOUNT_TYPE {
|
|
50
|
-
common = 0,
|
|
51
|
-
bonus = 1
|
|
52
|
-
}
|
|
53
|
-
declare enum DELIVERY_TYPE {
|
|
54
|
-
delivery = 1,
|
|
55
|
-
takeAway = 2,
|
|
56
|
-
virtualVenue = 3,
|
|
57
|
-
dinein = 4
|
|
58
|
-
}
|
|
59
|
-
declare enum DISCOUNT_TARGET {
|
|
60
|
-
products = 0,
|
|
61
|
-
delivery = 1
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
interface BagesPaymentsOrderSummaryProps {
|
|
65
|
-
accumulatedPurchaseBonus?: number;
|
|
66
|
-
discount?: number;
|
|
67
|
-
finalDeliveryPrice?: number;
|
|
68
|
-
currency: CURRENCY;
|
|
69
|
-
}
|
|
5
|
+
declare enum CROP_MODE {
|
|
6
|
+
'fill' = 0,
|
|
7
|
+
'pad' = 1,
|
|
8
|
+
'fit' = 2,
|
|
9
|
+
'mfit' = 3,
|
|
10
|
+
'scale' = 4,
|
|
11
|
+
'limit' = 5,
|
|
12
|
+
'lpad' = 6,
|
|
13
|
+
'mpad' = 7,
|
|
14
|
+
'crop' = 8,
|
|
15
|
+
'fill_pad' = 9,
|
|
16
|
+
'thumb' = 10
|
|
17
|
+
}
|
|
18
|
+
declare enum GRAVITY_MODE {
|
|
19
|
+
'center' = 0,
|
|
20
|
+
'north_east' = 1,
|
|
21
|
+
'north' = 2,
|
|
22
|
+
'north_west' = 3,
|
|
23
|
+
'west' = 4,
|
|
24
|
+
'south_west' = 5,
|
|
25
|
+
'south' = 6,
|
|
26
|
+
'south_east' = 7,
|
|
27
|
+
'east' = 8,
|
|
28
|
+
'liquid' = 9,
|
|
29
|
+
'auto' = 10
|
|
30
|
+
}
|
|
31
|
+
declare enum QUALITY_MODE {
|
|
32
|
+
best = 1,
|
|
33
|
+
good = 2,
|
|
34
|
+
eco = 3,
|
|
35
|
+
low = 4,
|
|
36
|
+
custom = 5
|
|
37
|
+
}
|
|
38
|
+
declare enum CURRENCY {
|
|
39
|
+
'USD' = "$",
|
|
40
|
+
'EUR' = "\u20AC",
|
|
41
|
+
'GBP' = "\u00A3",
|
|
42
|
+
'UAH' = "\u20B4",
|
|
43
|
+
'AED' = "\u062F.",
|
|
44
|
+
'ILS' = "\u20AA",
|
|
45
|
+
'JPY' = "\u00A5",
|
|
46
|
+
'KZT' = "\u20B8",
|
|
47
|
+
'RUB' = "\u20BD"
|
|
48
|
+
}
|
|
49
|
+
declare enum DISCOUNT_TYPE {
|
|
50
|
+
common = 0,
|
|
51
|
+
bonus = 1
|
|
52
|
+
}
|
|
53
|
+
declare enum DELIVERY_TYPE {
|
|
54
|
+
delivery = 1,
|
|
55
|
+
takeAway = 2,
|
|
56
|
+
virtualVenue = 3,
|
|
57
|
+
dinein = 4
|
|
58
|
+
}
|
|
59
|
+
declare enum DISCOUNT_TARGET {
|
|
60
|
+
products = 0,
|
|
61
|
+
delivery = 1
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
interface BagesPaymentsOrderSummaryProps {
|
|
65
|
+
accumulatedPurchaseBonus?: number;
|
|
66
|
+
discount?: number;
|
|
67
|
+
finalDeliveryPrice?: number;
|
|
68
|
+
currency: CURRENCY;
|
|
69
|
+
}
|
|
70
70
|
declare const BagesPaymentsOrderSummary: ({ accumulatedPurchaseBonus, discount, finalDeliveryPrice, currency, }: BagesPaymentsOrderSummaryProps) => React__default.JSX.Element;
|
|
71
71
|
|
|
72
|
-
interface OrderSummaryProps extends BagesPaymentsOrderSummaryProps {
|
|
73
|
-
customConfirmButton?: string;
|
|
74
|
-
discountType?: DISCOUNT_TYPE;
|
|
75
|
-
offerType: number;
|
|
76
|
-
offerName: string;
|
|
77
|
-
coupon: string;
|
|
78
|
-
finalPrice: number;
|
|
79
|
-
disabledConfirm: boolean;
|
|
80
|
-
fullPrice: number;
|
|
81
|
-
deliveryPrice: number;
|
|
82
|
-
serviceFee: number;
|
|
83
|
-
topupToMinimum: number;
|
|
84
|
-
minimum: number;
|
|
85
|
-
driverTip: number;
|
|
86
|
-
hideCoupon: boolean;
|
|
87
|
-
finalCharge: number;
|
|
88
|
-
discounts: {
|
|
89
|
-
discount_type: DISCOUNT_TYPE;
|
|
90
|
-
offer_type: number;
|
|
91
|
-
discount: number;
|
|
92
|
-
offer_name: string;
|
|
93
|
-
coupon: string | null;
|
|
94
|
-
offer_id: string;
|
|
95
|
-
[key: string]: string | number;
|
|
96
|
-
}[];
|
|
97
|
-
weightAdjustmentPriceBuffer: number;
|
|
98
|
-
canceledOfferIds?: string[];
|
|
99
|
-
customFields: {
|
|
100
|
-
label: string;
|
|
101
|
-
value: string | number;
|
|
102
|
-
}[];
|
|
103
|
-
paymentBalance: number | null;
|
|
104
|
-
deliveryType: DELIVERY_TYPE;
|
|
105
|
-
onConfirm: () => void;
|
|
106
|
-
setCoupon: (s: string) => void;
|
|
107
|
-
customDiscount: boolean;
|
|
108
|
-
customDiscountValue: string | number;
|
|
109
|
-
setCustomDiscountValue: (v: string) => void;
|
|
110
|
-
toggleOffer: (v: string) => void;
|
|
111
|
-
recalculateDiscounts: boolean;
|
|
112
|
-
showRecalculateDiscounts: boolean;
|
|
113
|
-
disableRecalculateDiscounts: boolean;
|
|
114
|
-
onChangeRecalculateDiscounts: (v: boolean) => void;
|
|
115
|
-
canManageDiscount: boolean;
|
|
116
|
-
debounce: number;
|
|
117
|
-
autofocus?: boolean;
|
|
118
|
-
bonusCard?: {
|
|
119
|
-
bonus: number;
|
|
120
|
-
name: string;
|
|
121
|
-
expiration: Date;
|
|
122
|
-
checkoutLimitPercent: number;
|
|
123
|
-
currency: CURRENCY;
|
|
124
|
-
} | null;
|
|
125
|
-
}
|
|
72
|
+
interface OrderSummaryProps extends BagesPaymentsOrderSummaryProps {
|
|
73
|
+
customConfirmButton?: string;
|
|
74
|
+
discountType?: DISCOUNT_TYPE;
|
|
75
|
+
offerType: number;
|
|
76
|
+
offerName: string;
|
|
77
|
+
coupon: string;
|
|
78
|
+
finalPrice: number;
|
|
79
|
+
disabledConfirm: boolean;
|
|
80
|
+
fullPrice: number;
|
|
81
|
+
deliveryPrice: number;
|
|
82
|
+
serviceFee: number;
|
|
83
|
+
topupToMinimum: number;
|
|
84
|
+
minimum: number;
|
|
85
|
+
driverTip: number;
|
|
86
|
+
hideCoupon: boolean;
|
|
87
|
+
finalCharge: number;
|
|
88
|
+
discounts: {
|
|
89
|
+
discount_type: DISCOUNT_TYPE;
|
|
90
|
+
offer_type: number;
|
|
91
|
+
discount: number;
|
|
92
|
+
offer_name: string;
|
|
93
|
+
coupon: string | null;
|
|
94
|
+
offer_id: string;
|
|
95
|
+
[key: string]: string | number;
|
|
96
|
+
}[];
|
|
97
|
+
weightAdjustmentPriceBuffer: number;
|
|
98
|
+
canceledOfferIds?: string[];
|
|
99
|
+
customFields: {
|
|
100
|
+
label: string;
|
|
101
|
+
value: string | number;
|
|
102
|
+
}[];
|
|
103
|
+
paymentBalance: number | null;
|
|
104
|
+
deliveryType: DELIVERY_TYPE;
|
|
105
|
+
onConfirm: () => void;
|
|
106
|
+
setCoupon: (s: string) => void;
|
|
107
|
+
customDiscount: boolean;
|
|
108
|
+
customDiscountValue: string | number;
|
|
109
|
+
setCustomDiscountValue: (v: string) => void;
|
|
110
|
+
toggleOffer: (v: string) => void;
|
|
111
|
+
recalculateDiscounts: boolean;
|
|
112
|
+
showRecalculateDiscounts: boolean;
|
|
113
|
+
disableRecalculateDiscounts: boolean;
|
|
114
|
+
onChangeRecalculateDiscounts: (v: boolean) => void;
|
|
115
|
+
canManageDiscount: boolean;
|
|
116
|
+
debounce: number;
|
|
117
|
+
autofocus?: boolean;
|
|
118
|
+
bonusCard?: {
|
|
119
|
+
bonus: number;
|
|
120
|
+
name: string;
|
|
121
|
+
expiration: Date;
|
|
122
|
+
checkoutLimitPercent: number;
|
|
123
|
+
currency: CURRENCY;
|
|
124
|
+
} | null;
|
|
125
|
+
}
|
|
126
126
|
declare const OrderSummary: ({ customConfirmButton, accumulatedPurchaseBonus, discount, minimum, finalDeliveryPrice, currency, offerType, coupon, fullPrice, discounts, deliveryType, deliveryPrice, serviceFee, topupToMinimum, driverTip, hideCoupon, paymentBalance, weightAdjustmentPriceBuffer, finalPrice, setCoupon, disabledConfirm, onConfirm, customDiscount, customDiscountValue, setCustomDiscountValue, customFields, finalCharge, canceledOfferIds, toggleOffer, recalculateDiscounts, disableRecalculateDiscounts, showRecalculateDiscounts, onChangeRecalculateDiscounts, canManageDiscount, autofocus, bonusCard, }: OrderSummaryProps) => React__default.JSX.Element;
|
|
127
127
|
|
|
128
|
-
interface CheckoutFormItemProps {
|
|
129
|
-
label: string;
|
|
130
|
-
data: string | string[] | number | number[] | ReactNode | ReactNode[];
|
|
131
|
-
changeInLabel?: boolean;
|
|
132
|
-
hideChange?: boolean;
|
|
133
|
-
onChangeClick: () => void;
|
|
134
|
-
}
|
|
128
|
+
interface CheckoutFormItemProps {
|
|
129
|
+
label: string;
|
|
130
|
+
data: string | string[] | number | number[] | ReactNode | ReactNode[];
|
|
131
|
+
changeInLabel?: boolean;
|
|
132
|
+
hideChange?: boolean;
|
|
133
|
+
onChangeClick: () => void;
|
|
134
|
+
}
|
|
135
135
|
declare const CheckoutFormItem: ({ label, data, changeInLabel, hideChange, onChangeClick, }: CheckoutFormItemProps) => React__default.JSX.Element;
|
|
136
136
|
|
|
137
|
-
interface CounterButtonProps {
|
|
138
|
-
count: number;
|
|
139
|
-
isAddDisable: boolean;
|
|
140
|
-
isRemoveDisable: boolean;
|
|
141
|
-
disabled?: boolean;
|
|
142
|
-
onAdd: () => void;
|
|
143
|
-
onRemove: () => void;
|
|
144
|
-
onChangeQuantity: (v: number) => void;
|
|
145
|
-
}
|
|
137
|
+
interface CounterButtonProps {
|
|
138
|
+
count: number;
|
|
139
|
+
isAddDisable: boolean;
|
|
140
|
+
isRemoveDisable: boolean;
|
|
141
|
+
disabled?: boolean;
|
|
142
|
+
onAdd: () => void;
|
|
143
|
+
onRemove: () => void;
|
|
144
|
+
onChangeQuantity: (v: number) => void;
|
|
145
|
+
}
|
|
146
146
|
declare const CounterButton: ({ count, isRemoveDisable, isAddDisable, disabled, onAdd, onRemove, onChangeQuantity, }: CounterButtonProps) => React__default.JSX.Element;
|
|
147
147
|
|
|
148
|
-
interface CutleryButtonProps {
|
|
149
|
-
cutlery: number;
|
|
150
|
-
onAdd: (c: number) => void;
|
|
151
|
-
onRemove: (c: number) => void;
|
|
152
|
-
}
|
|
148
|
+
interface CutleryButtonProps {
|
|
149
|
+
cutlery: number;
|
|
150
|
+
onAdd: (c: number) => void;
|
|
151
|
+
onRemove: (c: number) => void;
|
|
152
|
+
}
|
|
153
153
|
declare const CutleryButton: ({ cutlery, onAdd, onRemove }: CutleryButtonProps) => React__default.JSX.Element;
|
|
154
154
|
|
|
155
|
-
interface DeliveryControlProps {
|
|
156
|
-
type: DELIVERY_TYPE;
|
|
157
|
-
disableTakeAway: boolean;
|
|
158
|
-
disableDelivery: boolean;
|
|
159
|
-
disableDinein: boolean;
|
|
160
|
-
showDinein: boolean;
|
|
161
|
-
showVirtualVenue: boolean;
|
|
162
|
-
showDelivery: boolean;
|
|
163
|
-
disableVirtualVenue: boolean;
|
|
164
|
-
onChange: (v: DELIVERY_TYPE) => void;
|
|
165
|
-
}
|
|
155
|
+
interface DeliveryControlProps {
|
|
156
|
+
type: DELIVERY_TYPE;
|
|
157
|
+
disableTakeAway: boolean;
|
|
158
|
+
disableDelivery: boolean;
|
|
159
|
+
disableDinein: boolean;
|
|
160
|
+
showDinein: boolean;
|
|
161
|
+
showVirtualVenue: boolean;
|
|
162
|
+
showDelivery: boolean;
|
|
163
|
+
disableVirtualVenue: boolean;
|
|
164
|
+
onChange: (v: DELIVERY_TYPE) => void;
|
|
165
|
+
}
|
|
166
166
|
declare const DeliveryControl: ({ type, onChange, disableDelivery, disableDinein, showDinein, disableTakeAway, showVirtualVenue, disableVirtualVenue, showDelivery }: DeliveryControlProps) => React__default.JSX.Element;
|
|
167
167
|
|
|
168
|
-
type IconProps = Omit<Partial<HTMLProps<SVGElement>>, 'size'> & {
|
|
169
|
-
size?: 'big' | 'small' | 'default' | number | string;
|
|
170
|
-
};
|
|
171
|
-
declare const IconTrash: {
|
|
172
|
-
(props: IconProps): React__default.JSX.Element;
|
|
173
|
-
displayName: string;
|
|
174
|
-
};
|
|
175
|
-
declare const IconStar: {
|
|
176
|
-
(props: IconProps): React__default.JSX.Element;
|
|
177
|
-
displayName: string;
|
|
178
|
-
};
|
|
179
|
-
declare const IconStarBorder: {
|
|
180
|
-
(props: IconProps): React__default.JSX.Element;
|
|
181
|
-
displayName: string;
|
|
182
|
-
};
|
|
183
|
-
declare const IconVegan: {
|
|
184
|
-
(props: IconProps): React__default.JSX.Element;
|
|
185
|
-
displayName: string;
|
|
186
|
-
};
|
|
187
|
-
declare const IconSpicy: {
|
|
188
|
-
(props: IconProps): React__default.JSX.Element;
|
|
189
|
-
displayName: string;
|
|
190
|
-
};
|
|
191
|
-
declare const IconNoGluten: {
|
|
192
|
-
(props: IconProps): React__default.JSX.Element;
|
|
193
|
-
displayName: string;
|
|
194
|
-
};
|
|
195
|
-
declare const IconSearch: {
|
|
196
|
-
(props: IconProps): React__default.JSX.Element;
|
|
197
|
-
displayName: string;
|
|
198
|
-
};
|
|
199
|
-
declare const IconCart: {
|
|
200
|
-
(props: IconProps): React__default.JSX.Element;
|
|
201
|
-
displayName: string;
|
|
202
|
-
};
|
|
203
|
-
declare const IconBicycle: {
|
|
204
|
-
(props: IconProps): React__default.JSX.Element;
|
|
205
|
-
displayName: string;
|
|
206
|
-
};
|
|
207
|
-
declare const IconClockAfternoon: {
|
|
208
|
-
(props: IconProps): React__default.JSX.Element;
|
|
209
|
-
displayName: string;
|
|
210
|
-
};
|
|
211
|
-
declare const IconClose: {
|
|
212
|
-
(props: IconProps): React__default.JSX.Element;
|
|
213
|
-
displayName: string;
|
|
214
|
-
};
|
|
215
|
-
declare const IconMapPin: {
|
|
216
|
-
(props: IconProps): React__default.JSX.Element;
|
|
217
|
-
displayName: string;
|
|
218
|
-
};
|
|
219
|
-
declare const IconPersonSimpleWalk: {
|
|
220
|
-
(props: IconProps): React__default.JSX.Element;
|
|
221
|
-
displayName: string;
|
|
222
|
-
};
|
|
223
|
-
declare const IconSparkle: {
|
|
224
|
-
(props: IconProps): React__default.JSX.Element;
|
|
225
|
-
displayName: string;
|
|
226
|
-
};
|
|
227
|
-
declare const IconPlay: {
|
|
228
|
-
(props: IconProps): React__default.JSX.Element;
|
|
229
|
-
displayName: string;
|
|
230
|
-
};
|
|
231
|
-
declare const IconPause: {
|
|
232
|
-
(props: IconProps): React__default.JSX.Element;
|
|
233
|
-
displayName: string;
|
|
234
|
-
};
|
|
235
|
-
declare const IconMute: {
|
|
236
|
-
(props: IconProps): React__default.JSX.Element;
|
|
237
|
-
displayName: string;
|
|
238
|
-
};
|
|
239
|
-
declare const IconUnmute: {
|
|
240
|
-
(props: IconProps): React__default.JSX.Element;
|
|
241
|
-
displayName: string;
|
|
242
|
-
};
|
|
243
|
-
declare const IconPlus: {
|
|
244
|
-
(props: IconProps): React__default.JSX.Element;
|
|
245
|
-
displayName: string;
|
|
246
|
-
};
|
|
247
|
-
declare const IconMinus: {
|
|
248
|
-
(props: IconProps): React__default.JSX.Element;
|
|
249
|
-
displayName: string;
|
|
250
|
-
};
|
|
251
|
-
declare const IconWarning: {
|
|
252
|
-
(props: IconProps): React__default.JSX.Element;
|
|
253
|
-
displayName: string;
|
|
254
|
-
};
|
|
255
|
-
declare const IconGift: {
|
|
256
|
-
(props: IconProps): React__default.JSX.Element;
|
|
257
|
-
displayName: string;
|
|
258
|
-
};
|
|
259
|
-
declare const IconPercent: {
|
|
260
|
-
(props: IconProps): React__default.JSX.Element;
|
|
261
|
-
displayName: string;
|
|
262
|
-
};
|
|
263
|
-
declare const IconMoto: {
|
|
264
|
-
(props: IconProps): React__default.JSX.Element;
|
|
265
|
-
displayName: string;
|
|
266
|
-
};
|
|
267
|
-
declare const IconDone: {
|
|
268
|
-
(props: IconProps): React__default.JSX.Element;
|
|
269
|
-
displayName: string;
|
|
270
|
-
};
|
|
271
|
-
declare const IconCutlery: {
|
|
272
|
-
(props: IconProps): React__default.JSX.Element;
|
|
273
|
-
displayName: string;
|
|
274
|
-
};
|
|
275
|
-
declare const IconEditPen: {
|
|
276
|
-
(props: IconProps): React__default.JSX.Element;
|
|
277
|
-
displayName: string;
|
|
278
|
-
};
|
|
279
|
-
declare const IconWeighted: {
|
|
280
|
-
(props: IconProps): React__default.JSX.Element;
|
|
281
|
-
displayName: string;
|
|
282
|
-
};
|
|
283
|
-
declare const IconImportant: {
|
|
284
|
-
(props: IconProps): React__default.JSX.Element;
|
|
285
|
-
displayName: string;
|
|
286
|
-
};
|
|
287
|
-
declare const IconDinein: {
|
|
288
|
-
(props: IconProps): React__default.JSX.Element;
|
|
289
|
-
displayName: string;
|
|
290
|
-
};
|
|
291
|
-
declare const IconLeftOption: {
|
|
292
|
-
(props: IconProps): React__default.JSX.Element;
|
|
293
|
-
displayName: string;
|
|
294
|
-
};
|
|
295
|
-
declare const IconRightOption: {
|
|
296
|
-
(props: IconProps): React__default.JSX.Element;
|
|
297
|
-
displayName: string;
|
|
298
|
-
};
|
|
299
|
-
declare const IconWholeOption: {
|
|
300
|
-
(props: IconProps): React__default.JSX.Element;
|
|
301
|
-
displayName: string;
|
|
302
|
-
};
|
|
303
|
-
declare const IconGiftCard: {
|
|
304
|
-
(props: IconProps): React__default.JSX.Element;
|
|
305
|
-
displayName: string;
|
|
306
|
-
};
|
|
307
|
-
declare const IconMan: {
|
|
308
|
-
(props: IconProps): React__default.JSX.Element;
|
|
309
|
-
displayName: string;
|
|
310
|
-
};
|
|
311
|
-
declare const IconCarbonScooter: {
|
|
312
|
-
(props: IconProps): React__default.JSX.Element;
|
|
313
|
-
displayName: string;
|
|
314
|
-
};
|
|
315
|
-
declare const IconShare: {
|
|
316
|
-
(props: IconProps): React__default.JSX.Element;
|
|
317
|
-
displayName: string;
|
|
318
|
-
};
|
|
319
|
-
declare const IconClearCart: {
|
|
320
|
-
(props: IconProps): React__default.JSX.Element;
|
|
321
|
-
displayName: string;
|
|
322
|
-
};
|
|
323
|
-
declare const IconCopy: {
|
|
324
|
-
(props: IconProps): React__default.JSX.Element;
|
|
325
|
-
displayName: string;
|
|
326
|
-
};
|
|
327
|
-
declare const IconCategorySelected: {
|
|
328
|
-
(props: IconProps): React__default.JSX.Element;
|
|
329
|
-
displayName: string;
|
|
330
|
-
};
|
|
331
|
-
declare const IconCoupon: {
|
|
332
|
-
(props: IconProps): React__default.JSX.Element;
|
|
333
|
-
displayName: string;
|
|
334
|
-
};
|
|
335
|
-
declare const IconVoucher: {
|
|
336
|
-
(props: IconProps): React__default.JSX.Element;
|
|
337
|
-
displayName: string;
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
interface Ingredient {
|
|
341
|
-
name: string;
|
|
342
|
-
id: string;
|
|
343
|
-
quantity?: number;
|
|
344
|
-
}
|
|
345
|
-
interface IngredientsSelectorProps {
|
|
346
|
-
ingredients: Ingredient[];
|
|
347
|
-
onSelect: (id: number) => void;
|
|
348
|
-
}
|
|
168
|
+
type IconProps = Omit<Partial<HTMLProps<SVGElement>>, 'size'> & {
|
|
169
|
+
size?: 'big' | 'small' | 'default' | number | string;
|
|
170
|
+
};
|
|
171
|
+
declare const IconTrash: {
|
|
172
|
+
(props: IconProps): React__default.JSX.Element;
|
|
173
|
+
displayName: string;
|
|
174
|
+
};
|
|
175
|
+
declare const IconStar: {
|
|
176
|
+
(props: IconProps): React__default.JSX.Element;
|
|
177
|
+
displayName: string;
|
|
178
|
+
};
|
|
179
|
+
declare const IconStarBorder: {
|
|
180
|
+
(props: IconProps): React__default.JSX.Element;
|
|
181
|
+
displayName: string;
|
|
182
|
+
};
|
|
183
|
+
declare const IconVegan: {
|
|
184
|
+
(props: IconProps): React__default.JSX.Element;
|
|
185
|
+
displayName: string;
|
|
186
|
+
};
|
|
187
|
+
declare const IconSpicy: {
|
|
188
|
+
(props: IconProps): React__default.JSX.Element;
|
|
189
|
+
displayName: string;
|
|
190
|
+
};
|
|
191
|
+
declare const IconNoGluten: {
|
|
192
|
+
(props: IconProps): React__default.JSX.Element;
|
|
193
|
+
displayName: string;
|
|
194
|
+
};
|
|
195
|
+
declare const IconSearch: {
|
|
196
|
+
(props: IconProps): React__default.JSX.Element;
|
|
197
|
+
displayName: string;
|
|
198
|
+
};
|
|
199
|
+
declare const IconCart: {
|
|
200
|
+
(props: IconProps): React__default.JSX.Element;
|
|
201
|
+
displayName: string;
|
|
202
|
+
};
|
|
203
|
+
declare const IconBicycle: {
|
|
204
|
+
(props: IconProps): React__default.JSX.Element;
|
|
205
|
+
displayName: string;
|
|
206
|
+
};
|
|
207
|
+
declare const IconClockAfternoon: {
|
|
208
|
+
(props: IconProps): React__default.JSX.Element;
|
|
209
|
+
displayName: string;
|
|
210
|
+
};
|
|
211
|
+
declare const IconClose: {
|
|
212
|
+
(props: IconProps): React__default.JSX.Element;
|
|
213
|
+
displayName: string;
|
|
214
|
+
};
|
|
215
|
+
declare const IconMapPin: {
|
|
216
|
+
(props: IconProps): React__default.JSX.Element;
|
|
217
|
+
displayName: string;
|
|
218
|
+
};
|
|
219
|
+
declare const IconPersonSimpleWalk: {
|
|
220
|
+
(props: IconProps): React__default.JSX.Element;
|
|
221
|
+
displayName: string;
|
|
222
|
+
};
|
|
223
|
+
declare const IconSparkle: {
|
|
224
|
+
(props: IconProps): React__default.JSX.Element;
|
|
225
|
+
displayName: string;
|
|
226
|
+
};
|
|
227
|
+
declare const IconPlay: {
|
|
228
|
+
(props: IconProps): React__default.JSX.Element;
|
|
229
|
+
displayName: string;
|
|
230
|
+
};
|
|
231
|
+
declare const IconPause: {
|
|
232
|
+
(props: IconProps): React__default.JSX.Element;
|
|
233
|
+
displayName: string;
|
|
234
|
+
};
|
|
235
|
+
declare const IconMute: {
|
|
236
|
+
(props: IconProps): React__default.JSX.Element;
|
|
237
|
+
displayName: string;
|
|
238
|
+
};
|
|
239
|
+
declare const IconUnmute: {
|
|
240
|
+
(props: IconProps): React__default.JSX.Element;
|
|
241
|
+
displayName: string;
|
|
242
|
+
};
|
|
243
|
+
declare const IconPlus: {
|
|
244
|
+
(props: IconProps): React__default.JSX.Element;
|
|
245
|
+
displayName: string;
|
|
246
|
+
};
|
|
247
|
+
declare const IconMinus: {
|
|
248
|
+
(props: IconProps): React__default.JSX.Element;
|
|
249
|
+
displayName: string;
|
|
250
|
+
};
|
|
251
|
+
declare const IconWarning: {
|
|
252
|
+
(props: IconProps): React__default.JSX.Element;
|
|
253
|
+
displayName: string;
|
|
254
|
+
};
|
|
255
|
+
declare const IconGift: {
|
|
256
|
+
(props: IconProps): React__default.JSX.Element;
|
|
257
|
+
displayName: string;
|
|
258
|
+
};
|
|
259
|
+
declare const IconPercent: {
|
|
260
|
+
(props: IconProps): React__default.JSX.Element;
|
|
261
|
+
displayName: string;
|
|
262
|
+
};
|
|
263
|
+
declare const IconMoto: {
|
|
264
|
+
(props: IconProps): React__default.JSX.Element;
|
|
265
|
+
displayName: string;
|
|
266
|
+
};
|
|
267
|
+
declare const IconDone: {
|
|
268
|
+
(props: IconProps): React__default.JSX.Element;
|
|
269
|
+
displayName: string;
|
|
270
|
+
};
|
|
271
|
+
declare const IconCutlery: {
|
|
272
|
+
(props: IconProps): React__default.JSX.Element;
|
|
273
|
+
displayName: string;
|
|
274
|
+
};
|
|
275
|
+
declare const IconEditPen: {
|
|
276
|
+
(props: IconProps): React__default.JSX.Element;
|
|
277
|
+
displayName: string;
|
|
278
|
+
};
|
|
279
|
+
declare const IconWeighted: {
|
|
280
|
+
(props: IconProps): React__default.JSX.Element;
|
|
281
|
+
displayName: string;
|
|
282
|
+
};
|
|
283
|
+
declare const IconImportant: {
|
|
284
|
+
(props: IconProps): React__default.JSX.Element;
|
|
285
|
+
displayName: string;
|
|
286
|
+
};
|
|
287
|
+
declare const IconDinein: {
|
|
288
|
+
(props: IconProps): React__default.JSX.Element;
|
|
289
|
+
displayName: string;
|
|
290
|
+
};
|
|
291
|
+
declare const IconLeftOption: {
|
|
292
|
+
(props: IconProps): React__default.JSX.Element;
|
|
293
|
+
displayName: string;
|
|
294
|
+
};
|
|
295
|
+
declare const IconRightOption: {
|
|
296
|
+
(props: IconProps): React__default.JSX.Element;
|
|
297
|
+
displayName: string;
|
|
298
|
+
};
|
|
299
|
+
declare const IconWholeOption: {
|
|
300
|
+
(props: IconProps): React__default.JSX.Element;
|
|
301
|
+
displayName: string;
|
|
302
|
+
};
|
|
303
|
+
declare const IconGiftCard: {
|
|
304
|
+
(props: IconProps): React__default.JSX.Element;
|
|
305
|
+
displayName: string;
|
|
306
|
+
};
|
|
307
|
+
declare const IconMan: {
|
|
308
|
+
(props: IconProps): React__default.JSX.Element;
|
|
309
|
+
displayName: string;
|
|
310
|
+
};
|
|
311
|
+
declare const IconCarbonScooter: {
|
|
312
|
+
(props: IconProps): React__default.JSX.Element;
|
|
313
|
+
displayName: string;
|
|
314
|
+
};
|
|
315
|
+
declare const IconShare: {
|
|
316
|
+
(props: IconProps): React__default.JSX.Element;
|
|
317
|
+
displayName: string;
|
|
318
|
+
};
|
|
319
|
+
declare const IconClearCart: {
|
|
320
|
+
(props: IconProps): React__default.JSX.Element;
|
|
321
|
+
displayName: string;
|
|
322
|
+
};
|
|
323
|
+
declare const IconCopy: {
|
|
324
|
+
(props: IconProps): React__default.JSX.Element;
|
|
325
|
+
displayName: string;
|
|
326
|
+
};
|
|
327
|
+
declare const IconCategorySelected: {
|
|
328
|
+
(props: IconProps): React__default.JSX.Element;
|
|
329
|
+
displayName: string;
|
|
330
|
+
};
|
|
331
|
+
declare const IconCoupon: {
|
|
332
|
+
(props: IconProps): React__default.JSX.Element;
|
|
333
|
+
displayName: string;
|
|
334
|
+
};
|
|
335
|
+
declare const IconVoucher: {
|
|
336
|
+
(props: IconProps): React__default.JSX.Element;
|
|
337
|
+
displayName: string;
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
interface Ingredient {
|
|
341
|
+
name: string;
|
|
342
|
+
id: string;
|
|
343
|
+
quantity?: number;
|
|
344
|
+
}
|
|
345
|
+
interface IngredientsSelectorProps {
|
|
346
|
+
ingredients: Ingredient[];
|
|
347
|
+
onSelect: (id: number) => void;
|
|
348
|
+
}
|
|
349
349
|
declare const IngredientsSelector: ({ ingredients, onSelect }: IngredientsSelectorProps) => React__default.JSX.Element;
|
|
350
350
|
|
|
351
|
-
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> {
|
|
352
|
-
debounce?: number;
|
|
353
|
-
icon?: ReactElement;
|
|
354
|
-
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
355
|
-
value: (string | number | readonly string[]) & (string | number);
|
|
356
|
-
}
|
|
351
|
+
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> {
|
|
352
|
+
debounce?: number;
|
|
353
|
+
icon?: ReactElement;
|
|
354
|
+
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
355
|
+
value: (string | number | readonly string[]) & (string | number);
|
|
356
|
+
}
|
|
357
357
|
declare const Input: FC<InputProps>;
|
|
358
358
|
|
|
359
|
-
interface MediaSettings {
|
|
360
|
-
quality_mode: QUALITY_MODE;
|
|
361
|
-
gravity_mode: GRAVITY_MODE;
|
|
362
|
-
crop_mode: CROP_MODE;
|
|
363
|
-
quality: number;
|
|
364
|
-
}
|
|
365
|
-
interface MediaProp {
|
|
366
|
-
settings?: MediaSettings;
|
|
367
|
-
src?: string;
|
|
368
|
-
alt?: string;
|
|
369
|
-
id?: string;
|
|
370
|
-
scale?: number;
|
|
371
|
-
controls?: boolean;
|
|
372
|
-
autoPlay?: boolean;
|
|
373
|
-
onEnd?: () => void;
|
|
374
|
-
onStart?: () => void;
|
|
375
|
-
}
|
|
359
|
+
interface MediaSettings {
|
|
360
|
+
quality_mode: QUALITY_MODE;
|
|
361
|
+
gravity_mode: GRAVITY_MODE;
|
|
362
|
+
crop_mode: CROP_MODE;
|
|
363
|
+
quality: number;
|
|
364
|
+
}
|
|
365
|
+
interface MediaProp {
|
|
366
|
+
settings?: MediaSettings;
|
|
367
|
+
src?: string;
|
|
368
|
+
alt?: string;
|
|
369
|
+
id?: string;
|
|
370
|
+
scale?: number;
|
|
371
|
+
controls?: boolean;
|
|
372
|
+
autoPlay?: boolean;
|
|
373
|
+
onEnd?: () => void;
|
|
374
|
+
onStart?: () => void;
|
|
375
|
+
}
|
|
376
376
|
declare const Media: FC<MediaProp>;
|
|
377
377
|
|
|
378
|
-
declare const TranslationUIProvider: React.Provider<{
|
|
379
|
-
[key: string]: ITranslation;
|
|
380
|
-
}>;
|
|
381
|
-
interface ITranslation {
|
|
382
|
-
[key: string]: string;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
declare const INGREDIENTS = "#INGREDIENTS";
|
|
386
|
-
declare enum HALF_OPTION {
|
|
387
|
-
none = 0,
|
|
388
|
-
left = 1,
|
|
389
|
-
right = 2
|
|
390
|
-
}
|
|
391
|
-
declare const prepareHalfOptions: (halfOptions: IOption[], isHalf: boolean) => IOption[];
|
|
392
|
-
declare const convertToServerModelOptions: (options: IOption[]) => {
|
|
393
|
-
id: string;
|
|
394
|
-
name: string;
|
|
395
|
-
suboptions: {
|
|
396
|
-
id: string;
|
|
397
|
-
name: string;
|
|
398
|
-
price: number;
|
|
399
|
-
quantity: number;
|
|
400
|
-
half_option: HALF_OPTION;
|
|
401
|
-
}[];
|
|
402
|
-
}[];
|
|
403
|
-
declare const checkRespectTo: (option: IOption, options: IOption[]) => boolean;
|
|
404
|
-
interface IProductSaved {
|
|
405
|
-
product: {
|
|
406
|
-
id: string;
|
|
407
|
-
name: string;
|
|
408
|
-
quantity: number;
|
|
409
|
-
ingredients: string[];
|
|
410
|
-
options: {
|
|
411
|
-
id: string;
|
|
412
|
-
name: string;
|
|
413
|
-
suboptions: {
|
|
414
|
-
id: string;
|
|
415
|
-
name: string;
|
|
416
|
-
price: number;
|
|
417
|
-
quantity: number;
|
|
418
|
-
half_option: HALF_OPTION;
|
|
419
|
-
}[];
|
|
420
|
-
}[];
|
|
421
|
-
price: number;
|
|
422
|
-
full_price: number;
|
|
423
|
-
name_on_box: string;
|
|
424
|
-
comment: string;
|
|
425
|
-
};
|
|
426
|
-
full_price: number;
|
|
427
|
-
}
|
|
428
|
-
declare const mergeProduct: (product: IProductSaved, allOptionsTemplate: IOption[], ingredients: Ingredient[]) => {
|
|
429
|
-
comments: string;
|
|
430
|
-
nameOnBox: string;
|
|
431
|
-
finalPrice: number;
|
|
432
|
-
quantity: number;
|
|
433
|
-
ingredients: any[];
|
|
434
|
-
options: any[];
|
|
435
|
-
optionsHalf: any[];
|
|
436
|
-
isHalf: boolean;
|
|
437
|
-
};
|
|
378
|
+
declare const TranslationUIProvider: React.Provider<{
|
|
379
|
+
[key: string]: ITranslation;
|
|
380
|
+
}>;
|
|
381
|
+
interface ITranslation {
|
|
382
|
+
[key: string]: string;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
declare const INGREDIENTS = "#INGREDIENTS";
|
|
386
|
+
declare enum HALF_OPTION {
|
|
387
|
+
none = 0,
|
|
388
|
+
left = 1,
|
|
389
|
+
right = 2
|
|
390
|
+
}
|
|
391
|
+
declare const prepareHalfOptions: (halfOptions: IOption[], isHalf: boolean) => IOption[];
|
|
392
|
+
declare const convertToServerModelOptions: (options: IOption[]) => {
|
|
393
|
+
id: string;
|
|
394
|
+
name: string;
|
|
395
|
+
suboptions: {
|
|
396
|
+
id: string;
|
|
397
|
+
name: string;
|
|
398
|
+
price: number;
|
|
399
|
+
quantity: number;
|
|
400
|
+
half_option: HALF_OPTION;
|
|
401
|
+
}[];
|
|
402
|
+
}[];
|
|
403
|
+
declare const checkRespectTo: (option: IOption, options: IOption[]) => boolean;
|
|
404
|
+
interface IProductSaved {
|
|
405
|
+
product: {
|
|
406
|
+
id: string;
|
|
407
|
+
name: string;
|
|
408
|
+
quantity: number;
|
|
409
|
+
ingredients: string[];
|
|
410
|
+
options: {
|
|
411
|
+
id: string;
|
|
412
|
+
name: string;
|
|
413
|
+
suboptions: {
|
|
414
|
+
id: string;
|
|
415
|
+
name: string;
|
|
416
|
+
price: number;
|
|
417
|
+
quantity: number;
|
|
418
|
+
half_option: HALF_OPTION;
|
|
419
|
+
}[];
|
|
420
|
+
}[];
|
|
421
|
+
price: number;
|
|
422
|
+
full_price: number;
|
|
423
|
+
name_on_box: string;
|
|
424
|
+
comment: string;
|
|
425
|
+
};
|
|
426
|
+
full_price: number;
|
|
427
|
+
}
|
|
428
|
+
declare const mergeProduct: (product: IProductSaved, allOptionsTemplate: IOption[], ingredients: Ingredient[]) => {
|
|
429
|
+
comments: string;
|
|
430
|
+
nameOnBox: string;
|
|
431
|
+
finalPrice: number;
|
|
432
|
+
quantity: number;
|
|
433
|
+
ingredients: any[];
|
|
434
|
+
options: any[];
|
|
435
|
+
optionsHalf: any[];
|
|
436
|
+
isHalf: boolean;
|
|
437
|
+
};
|
|
438
438
|
declare const mergeOption: (option: IOption, productToCart: IProductSaved) => IOption;
|
|
439
439
|
|
|
440
|
-
/**
|
|
441
|
-
* Builds a delivery URL from the one the API gave us, keeping its host.
|
|
442
|
-
*
|
|
443
|
-
* The host is the routing decision. A tenant is moved from Cloudinary to the DelivApp media service
|
|
444
|
-
* one at a time, and the server substitutes the host when it returns the record — so a component
|
|
445
|
-
* that rebuilds the URL from a cloud name silently ignores that and keeps asking Cloudinary for
|
|
446
|
-
* assets that may not be there.
|
|
447
|
-
*
|
|
448
|
-
* That is what this package did: it split the URL on '/' and handed the pieces to
|
|
449
|
-
* `@cloudinary/url-gen`, which treated the whole `https://cdn.delivapp.com/...` string as a public
|
|
450
|
-
* id and rebuilt the URL against `res.cloudinary.com`. Honouring the given host instead means no
|
|
451
|
-
* cloud name has to reach the browser at all.
|
|
452
|
-
*
|
|
453
|
-
* The delivery URL syntax is identical on both hosts, which is the whole point of the replacement,
|
|
454
|
-
* so the same transformation string works either way:
|
|
455
|
-
*
|
|
456
|
-
* https://res.cloudinary.com/{cloud}/image/upload/{transformation}/{version}/{publicId}.{ext}
|
|
457
|
-
* https://cdn.delivapp.com/{cloud}/image/upload/{transformation}/{version}/{publicId}.{ext}
|
|
458
|
-
*/
|
|
459
|
-
interface MediaTransform {
|
|
460
|
-
width?: number;
|
|
461
|
-
height?: number;
|
|
462
|
-
crop?: string;
|
|
463
|
-
gravity?: string;
|
|
464
|
-
quality?: string | number;
|
|
465
|
-
format?: string;
|
|
466
|
-
}
|
|
440
|
+
/**
|
|
441
|
+
* Builds a delivery URL from the one the API gave us, keeping its host.
|
|
442
|
+
*
|
|
443
|
+
* The host is the routing decision. A tenant is moved from Cloudinary to the DelivApp media service
|
|
444
|
+
* one at a time, and the server substitutes the host when it returns the record — so a component
|
|
445
|
+
* that rebuilds the URL from a cloud name silently ignores that and keeps asking Cloudinary for
|
|
446
|
+
* assets that may not be there.
|
|
447
|
+
*
|
|
448
|
+
* That is what this package did: it split the URL on '/' and handed the pieces to
|
|
449
|
+
* `@cloudinary/url-gen`, which treated the whole `https://cdn.delivapp.com/...` string as a public
|
|
450
|
+
* id and rebuilt the URL against `res.cloudinary.com`. Honouring the given host instead means no
|
|
451
|
+
* cloud name has to reach the browser at all.
|
|
452
|
+
*
|
|
453
|
+
* The delivery URL syntax is identical on both hosts, which is the whole point of the replacement,
|
|
454
|
+
* so the same transformation string works either way:
|
|
455
|
+
*
|
|
456
|
+
* https://res.cloudinary.com/{cloud}/image/upload/{transformation}/{version}/{publicId}.{ext}
|
|
457
|
+
* https://cdn.delivapp.com/{cloud}/image/upload/{transformation}/{version}/{publicId}.{ext}
|
|
458
|
+
*/
|
|
459
|
+
interface MediaTransform {
|
|
460
|
+
width?: number;
|
|
461
|
+
height?: number;
|
|
462
|
+
crop?: string;
|
|
463
|
+
gravity?: string;
|
|
464
|
+
quality?: string | number;
|
|
465
|
+
format?: string;
|
|
466
|
+
}
|
|
467
467
|
declare const buildMediaUrl: (source: string, transform: MediaTransform) => string;
|
|
468
468
|
|
|
469
|
-
interface ISuboption {
|
|
470
|
-
name: string;
|
|
471
|
-
max: number;
|
|
472
|
-
id: string;
|
|
473
|
-
enabled: boolean;
|
|
474
|
-
quantity?: number;
|
|
475
|
-
price?: number;
|
|
476
|
-
description?: string;
|
|
477
|
-
fullPrice?: number;
|
|
478
|
-
full_price?: number;
|
|
479
|
-
halfOption?: HALF_OPTION;
|
|
480
|
-
image?: string;
|
|
481
|
-
image_settings?: MediaSettings;
|
|
482
|
-
image_scale?: number;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
interface SuboptionMultiSelectorProps {
|
|
486
|
-
currency: CURRENCY;
|
|
487
|
-
limitByMax: boolean;
|
|
488
|
-
freeBudget: number;
|
|
489
|
-
freeLabel: string;
|
|
490
|
-
max: number;
|
|
491
|
-
suboptions: ISuboption[];
|
|
492
|
-
onChangeQuantity: (id: string, operation: number) => void;
|
|
493
|
-
}
|
|
469
|
+
interface ISuboption {
|
|
470
|
+
name: string;
|
|
471
|
+
max: number;
|
|
472
|
+
id: string;
|
|
473
|
+
enabled: boolean;
|
|
474
|
+
quantity?: number;
|
|
475
|
+
price?: number;
|
|
476
|
+
description?: string;
|
|
477
|
+
fullPrice?: number;
|
|
478
|
+
full_price?: number;
|
|
479
|
+
halfOption?: HALF_OPTION;
|
|
480
|
+
image?: string;
|
|
481
|
+
image_settings?: MediaSettings;
|
|
482
|
+
image_scale?: number;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
interface SuboptionMultiSelectorProps {
|
|
486
|
+
currency: CURRENCY;
|
|
487
|
+
limitByMax: boolean;
|
|
488
|
+
freeBudget: number;
|
|
489
|
+
freeLabel: string;
|
|
490
|
+
max: number;
|
|
491
|
+
suboptions: ISuboption[];
|
|
492
|
+
onChangeQuantity: (id: string, operation: number) => void;
|
|
493
|
+
}
|
|
494
494
|
declare const SuboptionMultiSelector: ({ suboptions, onChangeQuantity, currency, limitByMax, freeLabel, max, freeBudget, }: SuboptionMultiSelectorProps) => React__default.JSX.Element;
|
|
495
495
|
|
|
496
|
-
interface SuboptionRadioSelectorProps {
|
|
497
|
-
currency: CURRENCY;
|
|
498
|
-
freeLabel: string;
|
|
499
|
-
ingredients: ISuboption[];
|
|
500
|
-
freeBudget: number | null;
|
|
501
|
-
max: number;
|
|
502
|
-
onSelect: (id: string, quantity: number) => void;
|
|
503
|
-
}
|
|
496
|
+
interface SuboptionRadioSelectorProps {
|
|
497
|
+
currency: CURRENCY;
|
|
498
|
+
freeLabel: string;
|
|
499
|
+
ingredients: ISuboption[];
|
|
500
|
+
freeBudget: number | null;
|
|
501
|
+
max: number;
|
|
502
|
+
onSelect: (id: string, quantity: number) => void;
|
|
503
|
+
}
|
|
504
504
|
declare const SuboptionRadioSelector: ({ max, freeLabel, ingredients, onSelect, currency, freeBudget }: SuboptionRadioSelectorProps) => React__default.JSX.Element;
|
|
505
505
|
|
|
506
|
-
interface IConstructorOrder {
|
|
507
|
-
extraOrder: number;
|
|
508
|
-
extraIndex: number;
|
|
509
|
-
optionOrder: number;
|
|
510
|
-
optionIndex: number;
|
|
511
|
-
}
|
|
512
|
-
interface IOption {
|
|
513
|
-
name?: string;
|
|
514
|
-
min: number;
|
|
515
|
-
max: number;
|
|
516
|
-
freeBudget: number;
|
|
517
|
-
respectTo: string | null;
|
|
518
|
-
withHalfOption: boolean;
|
|
519
|
-
id: string;
|
|
520
|
-
enabled: boolean;
|
|
521
|
-
limitSuboptionsByMax: boolean;
|
|
522
|
-
allowSuboptionQuantity: boolean;
|
|
523
|
-
half: HALF_OPTION;
|
|
524
|
-
pizzaOption: boolean;
|
|
525
|
-
suboptions: ISuboption[];
|
|
526
|
-
description?: string;
|
|
527
|
-
constructorOrder?: IConstructorOrder;
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
interface ProductConstructorProps {
|
|
531
|
-
tag?: string;
|
|
532
|
-
disableAutoScroll: boolean;
|
|
533
|
-
savedProduct: IProductSaved;
|
|
534
|
-
id: string;
|
|
535
|
-
name?: string;
|
|
536
|
-
media?: MediaProp;
|
|
537
|
-
currency: CURRENCY;
|
|
538
|
-
price: number;
|
|
539
|
-
oldPrice: number;
|
|
540
|
-
totalPrice: number;
|
|
541
|
-
description?: string;
|
|
542
|
-
max?: number;
|
|
543
|
-
quantity?: number;
|
|
544
|
-
weighed: boolean;
|
|
545
|
-
unit_weight: number;
|
|
546
|
-
weight_range: number;
|
|
547
|
-
amountDiff: number;
|
|
548
|
-
allowComments: boolean;
|
|
549
|
-
isHalf: boolean;
|
|
550
|
-
isLoading: boolean;
|
|
551
|
-
nameOnBox: string;
|
|
552
|
-
comments: string;
|
|
553
|
-
summaryOpen: boolean;
|
|
554
|
-
ingredients: Ingredient[];
|
|
555
|
-
options: IOption[];
|
|
556
|
-
optionsHalf: IOption[];
|
|
557
|
-
onClose?: () => void;
|
|
558
|
-
onChangeIngredients: (id: number) => void;
|
|
559
|
-
onChangeQuantity: (quantity: number) => void;
|
|
560
|
-
onChangeOption: (parentId: string, id: string, quantity: number, suboption: ISuboption) => void;
|
|
561
|
-
onChangeOptionHalf: (parentId: string, id: string, half: HALF_OPTION, quantity: number) => void;
|
|
562
|
-
onChangeNameOnBox: (v: string) => void;
|
|
563
|
-
onChangeComment: (v: string) => void;
|
|
564
|
-
onAdd: () => void;
|
|
565
|
-
onRemove: () => void;
|
|
566
|
-
onAddToCart: () => void;
|
|
567
|
-
onChangeIsHalf: (v: boolean) => void;
|
|
568
|
-
updateOptionOfActualData: (option: IOption) => IOption;
|
|
569
|
-
}
|
|
506
|
+
interface IConstructorOrder {
|
|
507
|
+
extraOrder: number;
|
|
508
|
+
extraIndex: number;
|
|
509
|
+
optionOrder: number;
|
|
510
|
+
optionIndex: number;
|
|
511
|
+
}
|
|
512
|
+
interface IOption {
|
|
513
|
+
name?: string;
|
|
514
|
+
min: number;
|
|
515
|
+
max: number;
|
|
516
|
+
freeBudget: number;
|
|
517
|
+
respectTo: string | null;
|
|
518
|
+
withHalfOption: boolean;
|
|
519
|
+
id: string;
|
|
520
|
+
enabled: boolean;
|
|
521
|
+
limitSuboptionsByMax: boolean;
|
|
522
|
+
allowSuboptionQuantity: boolean;
|
|
523
|
+
half: HALF_OPTION;
|
|
524
|
+
pizzaOption: boolean;
|
|
525
|
+
suboptions: ISuboption[];
|
|
526
|
+
description?: string;
|
|
527
|
+
constructorOrder?: IConstructorOrder;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
interface ProductConstructorProps {
|
|
531
|
+
tag?: string;
|
|
532
|
+
disableAutoScroll: boolean;
|
|
533
|
+
savedProduct: IProductSaved;
|
|
534
|
+
id: string;
|
|
535
|
+
name?: string;
|
|
536
|
+
media?: MediaProp;
|
|
537
|
+
currency: CURRENCY;
|
|
538
|
+
price: number;
|
|
539
|
+
oldPrice: number;
|
|
540
|
+
totalPrice: number;
|
|
541
|
+
description?: string;
|
|
542
|
+
max?: number;
|
|
543
|
+
quantity?: number;
|
|
544
|
+
weighed: boolean;
|
|
545
|
+
unit_weight: number;
|
|
546
|
+
weight_range: number;
|
|
547
|
+
amountDiff: number;
|
|
548
|
+
allowComments: boolean;
|
|
549
|
+
isHalf: boolean;
|
|
550
|
+
isLoading: boolean;
|
|
551
|
+
nameOnBox: string;
|
|
552
|
+
comments: string;
|
|
553
|
+
summaryOpen: boolean;
|
|
554
|
+
ingredients: Ingredient[];
|
|
555
|
+
options: IOption[];
|
|
556
|
+
optionsHalf: IOption[];
|
|
557
|
+
onClose?: () => void;
|
|
558
|
+
onChangeIngredients: (id: number) => void;
|
|
559
|
+
onChangeQuantity: (quantity: number) => void;
|
|
560
|
+
onChangeOption: (parentId: string, id: string, quantity: number, suboption: ISuboption) => void;
|
|
561
|
+
onChangeOptionHalf: (parentId: string, id: string, half: HALF_OPTION, quantity: number) => void;
|
|
562
|
+
onChangeNameOnBox: (v: string) => void;
|
|
563
|
+
onChangeComment: (v: string) => void;
|
|
564
|
+
onAdd: () => void;
|
|
565
|
+
onRemove: () => void;
|
|
566
|
+
onAddToCart: () => void;
|
|
567
|
+
onChangeIsHalf: (v: boolean) => void;
|
|
568
|
+
updateOptionOfActualData: (option: IOption) => IOption;
|
|
569
|
+
}
|
|
570
570
|
declare const ProductConstructor: FC<ProductConstructorProps>;
|
|
571
571
|
|
|
572
|
-
interface ProductTagsProps {
|
|
573
|
-
vegan?: boolean;
|
|
574
|
-
vegetarian?: boolean;
|
|
575
|
-
isNew?: boolean;
|
|
576
|
-
spicy?: number;
|
|
577
|
-
glutenFree?: boolean;
|
|
578
|
-
}
|
|
572
|
+
interface ProductTagsProps {
|
|
573
|
+
vegan?: boolean;
|
|
574
|
+
vegetarian?: boolean;
|
|
575
|
+
isNew?: boolean;
|
|
576
|
+
spicy?: number;
|
|
577
|
+
glutenFree?: boolean;
|
|
578
|
+
}
|
|
579
579
|
declare const ProductTags: FC<ProductTagsProps>;
|
|
580
580
|
|
|
581
|
-
interface ProductPreviewProp extends ProductTagsProps {
|
|
582
|
-
name: string;
|
|
583
|
-
id: string;
|
|
584
|
-
description: string;
|
|
585
|
-
price: number;
|
|
586
|
-
oldPrice?: number;
|
|
587
|
-
image?: MediaProp;
|
|
588
|
-
currency: CURRENCY;
|
|
589
|
-
trashIcon?: boolean;
|
|
590
|
-
quantity?: number;
|
|
591
|
-
weight?: number;
|
|
592
|
-
onClick?: (id: string) => void;
|
|
593
|
-
onClickTrash?: (id: string) => void;
|
|
594
|
-
}
|
|
581
|
+
interface ProductPreviewProp extends ProductTagsProps {
|
|
582
|
+
name: string;
|
|
583
|
+
id: string;
|
|
584
|
+
description: string;
|
|
585
|
+
price: number;
|
|
586
|
+
oldPrice?: number;
|
|
587
|
+
image?: MediaProp;
|
|
588
|
+
currency: CURRENCY;
|
|
589
|
+
trashIcon?: boolean;
|
|
590
|
+
quantity?: number;
|
|
591
|
+
weight?: number;
|
|
592
|
+
onClick?: (id: string) => void;
|
|
593
|
+
onClickTrash?: (id: string) => void;
|
|
594
|
+
}
|
|
595
595
|
declare const ProductPreview: FC<ProductPreviewProp>;
|
|
596
596
|
|
|
597
|
-
interface ProductPreviewListProps {
|
|
598
|
-
categories: {
|
|
599
|
-
name: string;
|
|
600
|
-
id: string;
|
|
601
|
-
products: ProductPreviewProp[];
|
|
602
|
-
}[];
|
|
603
|
-
onClickProduct?: (categoryId: string, productId: string) => void;
|
|
604
|
-
}
|
|
597
|
+
interface ProductPreviewListProps {
|
|
598
|
+
categories: {
|
|
599
|
+
name: string;
|
|
600
|
+
id: string;
|
|
601
|
+
products: ProductPreviewProp[];
|
|
602
|
+
}[];
|
|
603
|
+
onClickProduct?: (categoryId: string, productId: string) => void;
|
|
604
|
+
}
|
|
605
605
|
declare const ProductPreviewList: FC<ProductPreviewListProps>;
|
|
606
606
|
|
|
607
|
-
interface RestaurantTagsProps {
|
|
608
|
-
score?: number;
|
|
609
|
-
isNew?: boolean;
|
|
610
|
-
kosher?: boolean;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
interface RestaurantBenefitsProps {
|
|
614
|
-
dontHide?: boolean;
|
|
615
|
-
minimum?: number;
|
|
616
|
-
isPickUp?: boolean;
|
|
617
|
-
withTitle?: boolean;
|
|
618
|
-
estimationRangeMin?: number;
|
|
619
|
-
estimationRangeMax?: number;
|
|
620
|
-
estimationTime?: string;
|
|
621
|
-
distance?: boolean;
|
|
622
|
-
deliveryPrice?: number;
|
|
623
|
-
currency?: CURRENCY;
|
|
624
|
-
deliveryToLocation?: number;
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
interface RestaurantHeaderProps extends RestaurantTagsProps, RestaurantBenefitsProps {
|
|
628
|
-
name: string;
|
|
629
|
-
isFavorite: boolean;
|
|
630
|
-
cartAmount?: number;
|
|
631
|
-
currency?: CURRENCY;
|
|
632
|
-
alternativeView?: boolean;
|
|
633
|
-
searchValue?: string;
|
|
634
|
-
onSearch?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
635
|
-
onCartClick?: () => void;
|
|
636
|
-
}
|
|
607
|
+
interface RestaurantTagsProps {
|
|
608
|
+
score?: number;
|
|
609
|
+
isNew?: boolean;
|
|
610
|
+
kosher?: boolean;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
interface RestaurantBenefitsProps {
|
|
614
|
+
dontHide?: boolean;
|
|
615
|
+
minimum?: number;
|
|
616
|
+
isPickUp?: boolean;
|
|
617
|
+
withTitle?: boolean;
|
|
618
|
+
estimationRangeMin?: number;
|
|
619
|
+
estimationRangeMax?: number;
|
|
620
|
+
estimationTime?: string;
|
|
621
|
+
distance?: boolean;
|
|
622
|
+
deliveryPrice?: number;
|
|
623
|
+
currency?: CURRENCY;
|
|
624
|
+
deliveryToLocation?: number;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
interface RestaurantHeaderProps extends RestaurantTagsProps, RestaurantBenefitsProps {
|
|
628
|
+
name: string;
|
|
629
|
+
isFavorite: boolean;
|
|
630
|
+
cartAmount?: number;
|
|
631
|
+
currency?: CURRENCY;
|
|
632
|
+
alternativeView?: boolean;
|
|
633
|
+
searchValue?: string;
|
|
634
|
+
onSearch?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
635
|
+
onCartClick?: () => void;
|
|
636
|
+
}
|
|
637
637
|
declare const RestaurantHeader: FC<RestaurantHeaderProps>;
|
|
638
638
|
|
|
639
|
-
interface StepProps {
|
|
640
|
-
name: string;
|
|
641
|
-
component: ReactNode;
|
|
642
|
-
shouldHideHeader?: boolean;
|
|
643
|
-
stepDescription: ReactNode;
|
|
644
|
-
}
|
|
645
|
-
interface StepperProps {
|
|
646
|
-
steps: StepProps[];
|
|
647
|
-
currentStep: number;
|
|
648
|
-
}
|
|
639
|
+
interface StepProps {
|
|
640
|
+
name: string;
|
|
641
|
+
component: ReactNode;
|
|
642
|
+
shouldHideHeader?: boolean;
|
|
643
|
+
stepDescription: ReactNode;
|
|
644
|
+
}
|
|
645
|
+
interface StepperProps {
|
|
646
|
+
steps: StepProps[];
|
|
647
|
+
currentStep: number;
|
|
648
|
+
}
|
|
649
649
|
declare const Stepper: ({ steps, currentStep }: StepperProps) => React__default.JSX.Element;
|
|
650
650
|
|
|
651
|
-
interface WarningProps {
|
|
652
|
-
message: string;
|
|
653
|
-
}
|
|
651
|
+
interface WarningProps {
|
|
652
|
+
message: string;
|
|
653
|
+
}
|
|
654
654
|
declare const Warning: ({ message }: WarningProps) => React__default.JSX.Element;
|
|
655
655
|
|
|
656
|
-
interface GiftControlProps {
|
|
657
|
-
isGift: boolean;
|
|
658
|
-
name: string;
|
|
659
|
-
phone: string;
|
|
660
|
-
greeting: string;
|
|
661
|
-
isReadonly: boolean;
|
|
662
|
-
onToggleGift: () => void;
|
|
663
|
-
onChange: (form: Pick<GiftControlProps, 'name' | 'phone' | 'greeting'>) => void;
|
|
664
|
-
}
|
|
656
|
+
interface GiftControlProps {
|
|
657
|
+
isGift: boolean;
|
|
658
|
+
name: string;
|
|
659
|
+
phone: string;
|
|
660
|
+
greeting: string;
|
|
661
|
+
isReadonly: boolean;
|
|
662
|
+
onToggleGift: () => void;
|
|
663
|
+
onChange: (form: Pick<GiftControlProps, 'name' | 'phone' | 'greeting'>) => void;
|
|
664
|
+
}
|
|
665
665
|
declare const GiftControl: ({ isGift, onChange, name, phone, greeting, isReadonly, onToggleGift }: GiftControlProps) => React__default.JSX.Element;
|
|
666
666
|
|
|
667
|
-
interface Product {
|
|
668
|
-
id: string;
|
|
669
|
-
quantity: number;
|
|
670
|
-
price: number;
|
|
671
|
-
name: string;
|
|
672
|
-
full_price: number;
|
|
673
|
-
description: string;
|
|
674
|
-
min: number;
|
|
675
|
-
max: number;
|
|
676
|
-
image?: MediaProp;
|
|
677
|
-
}
|
|
678
|
-
interface OrderSummaryWithProductsBaseProps extends OrderSummaryProps {
|
|
679
|
-
products: Product[];
|
|
680
|
-
onChangeQuantity: (v: number, product: Product, index: number) => void;
|
|
681
|
-
onClickProduct: (index: number) => void;
|
|
682
|
-
onRemove: (v: number) => void;
|
|
683
|
-
header: string;
|
|
684
|
-
disableQuantityControls?: boolean;
|
|
685
|
-
isKiosk?: boolean;
|
|
686
|
-
}
|
|
687
|
-
interface OrderSummaryWithProductsVissibleShareProps extends OrderSummaryWithProductsBaseProps {
|
|
688
|
-
showShareControls: true;
|
|
689
|
-
onShare: () => void;
|
|
690
|
-
onClearCart: () => void;
|
|
691
|
-
useCopyIcon?: boolean;
|
|
692
|
-
}
|
|
693
|
-
interface OrderSummaryWithProductsHiddenShareProps extends OrderSummaryWithProductsBaseProps {
|
|
694
|
-
showShareControls: false;
|
|
695
|
-
}
|
|
696
|
-
type OrderSummaryWithProductsProps = OrderSummaryWithProductsVissibleShareProps | OrderSummaryWithProductsHiddenShareProps;
|
|
667
|
+
interface Product {
|
|
668
|
+
id: string;
|
|
669
|
+
quantity: number;
|
|
670
|
+
price: number;
|
|
671
|
+
name: string;
|
|
672
|
+
full_price: number;
|
|
673
|
+
description: string;
|
|
674
|
+
min: number;
|
|
675
|
+
max: number;
|
|
676
|
+
image?: MediaProp;
|
|
677
|
+
}
|
|
678
|
+
interface OrderSummaryWithProductsBaseProps extends OrderSummaryProps {
|
|
679
|
+
products: Product[];
|
|
680
|
+
onChangeQuantity: (v: number, product: Product, index: number) => void;
|
|
681
|
+
onClickProduct: (index: number) => void;
|
|
682
|
+
onRemove: (v: number) => void;
|
|
683
|
+
header: string;
|
|
684
|
+
disableQuantityControls?: boolean;
|
|
685
|
+
isKiosk?: boolean;
|
|
686
|
+
}
|
|
687
|
+
interface OrderSummaryWithProductsVissibleShareProps extends OrderSummaryWithProductsBaseProps {
|
|
688
|
+
showShareControls: true;
|
|
689
|
+
onShare: () => void;
|
|
690
|
+
onClearCart: () => void;
|
|
691
|
+
useCopyIcon?: boolean;
|
|
692
|
+
}
|
|
693
|
+
interface OrderSummaryWithProductsHiddenShareProps extends OrderSummaryWithProductsBaseProps {
|
|
694
|
+
showShareControls: false;
|
|
695
|
+
}
|
|
696
|
+
type OrderSummaryWithProductsProps = OrderSummaryWithProductsVissibleShareProps | OrderSummaryWithProductsHiddenShareProps;
|
|
697
697
|
declare const OrderSummaryWithProducts: (props: OrderSummaryWithProductsProps) => React__default.JSX.Element;
|
|
698
698
|
|
|
699
|
-
interface TabsControlProps<T> {
|
|
700
|
-
type: T;
|
|
701
|
-
disabled?: boolean;
|
|
702
|
-
items: {
|
|
703
|
-
type: T;
|
|
704
|
-
disabled: boolean;
|
|
705
|
-
text: string;
|
|
706
|
-
icon?: any;
|
|
707
|
-
}[];
|
|
708
|
-
onChange: (v: T) => void;
|
|
709
|
-
}
|
|
699
|
+
interface TabsControlProps<T> {
|
|
700
|
+
type: T;
|
|
701
|
+
disabled?: boolean;
|
|
702
|
+
items: {
|
|
703
|
+
type: T;
|
|
704
|
+
disabled: boolean;
|
|
705
|
+
text: string;
|
|
706
|
+
icon?: any;
|
|
707
|
+
}[];
|
|
708
|
+
onChange: (v: T) => void;
|
|
709
|
+
}
|
|
710
710
|
declare const TabsControl: ({ type, onChange, disabled, items }: TabsControlProps<string | number | boolean>) => React__default.JSX.Element;
|
|
711
711
|
|
|
712
|
-
interface CheckboxProps {
|
|
713
|
-
value: boolean;
|
|
714
|
-
onChange: (v: boolean) => void;
|
|
715
|
-
disabled: boolean;
|
|
716
|
-
}
|
|
712
|
+
interface CheckboxProps {
|
|
713
|
+
value: boolean;
|
|
714
|
+
onChange: (v: boolean) => void;
|
|
715
|
+
disabled: boolean;
|
|
716
|
+
}
|
|
717
717
|
declare const Checkbox: ({ value, disabled, onChange }: CheckboxProps) => React__default.JSX.Element;
|
|
718
718
|
|
|
719
|
-
interface QuantityDescriptionProps {
|
|
720
|
-
max: number;
|
|
721
|
-
free_budget: number;
|
|
722
|
-
}
|
|
719
|
+
interface QuantityDescriptionProps {
|
|
720
|
+
max: number;
|
|
721
|
+
free_budget: number;
|
|
722
|
+
}
|
|
723
723
|
declare const QuantityDescription: ({ free_budget, max }: QuantityDescriptionProps) => React__default.JSX.Element;
|
|
724
724
|
|
|
725
725
|
export { BagesPaymentsOrderSummary, BagesPaymentsOrderSummaryProps, CROP_MODE, CURRENCY, Checkbox, CheckboxProps, CheckoutFormItem, CheckoutFormItemProps, CounterButton, CounterButtonProps, CutleryButton, CutleryButtonProps, DELIVERY_TYPE, DISCOUNT_TARGET, DISCOUNT_TYPE, DeliveryControl, DeliveryControlProps, GRAVITY_MODE, GiftControl, GiftControlProps, HALF_OPTION, INGREDIENTS, IOption, IProductSaved, ISuboption, IconBicycle, IconCarbonScooter, IconCart, IconCategorySelected, IconClearCart, IconClockAfternoon, IconClose, IconCopy, IconCoupon, IconCutlery, IconDinein, IconDone, IconEditPen, IconGift, IconGiftCard, IconImportant, IconLeftOption, IconMan, IconMapPin, IconMinus, IconMoto, IconMute, IconNoGluten, IconPause, IconPercent, IconPersonSimpleWalk, IconPlay, IconPlus, IconProps, IconRightOption, IconSearch, IconShare, IconSparkle, IconSpicy, IconStar, IconStarBorder, IconTrash, IconUnmute, IconVegan, IconVoucher, IconWarning, IconWeighted, IconWholeOption, IngredientsSelector, IngredientsSelectorProps, Input, InputProps, Media, MediaProp, MediaTransform, OrderSummary, OrderSummaryProps, OrderSummaryWithProducts, OrderSummaryWithProductsProps, ProductConstructor, ProductConstructorProps, ProductPreview, ProductPreviewList, ProductPreviewListProps, ProductPreviewProp, ProductTags, ProductTagsProps, QUALITY_MODE, QuantityDescription, QuantityDescriptionProps, RestaurantHeader, RestaurantHeaderProps, Stepper, StepperProps, SuboptionMultiSelector, SuboptionMultiSelectorProps, SuboptionRadioSelector, SuboptionRadioSelectorProps, TabsControl, TabsControlProps, TranslationUIProvider, Warning, WarningProps, buildMediaUrl, checkRespectTo, convertToServerModelOptions, mergeOption, mergeProduct, prepareHalfOptions };
|