ordering-ui-external 8.0.0 → 8.0.1
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/_bundles/{7.ordering-ui.b7a675443a571059b9df.js → 7.ordering-ui.3242caad59e9f3bc9c35.js} +1 -1
- package/_bundles/{ordering-ui.b7a675443a571059b9df.js → ordering-ui.3242caad59e9f3bc9c35.js} +2 -2
- package/_modules/themes/five/src/components/CardForm/index.js +1 -3
- package/_modules/themes/six/src/components/OrderTypeSelectorHeader/index.js +7 -7
- package/package.json +2 -2
- package/src/themes/five/src/components/CardForm/index.js +0 -2
- package/src/themes/six/src/components/OrderTypeSelectorHeader/index.js +7 -7
- /package/_bundles/{0.ordering-ui.b7a675443a571059b9df.js → 0.ordering-ui.3242caad59e9f3bc9c35.js} +0 -0
- /package/_bundles/{1.ordering-ui.b7a675443a571059b9df.js → 1.ordering-ui.3242caad59e9f3bc9c35.js} +0 -0
- /package/_bundles/{2.ordering-ui.b7a675443a571059b9df.js → 2.ordering-ui.3242caad59e9f3bc9c35.js} +0 -0
- /package/_bundles/{4.ordering-ui.b7a675443a571059b9df.js → 4.ordering-ui.3242caad59e9f3bc9c35.js} +0 -0
- /package/_bundles/{5.ordering-ui.b7a675443a571059b9df.js → 5.ordering-ui.3242caad59e9f3bc9c35.js} +0 -0
- /package/_bundles/{6.ordering-ui.b7a675443a571059b9df.js → 6.ordering-ui.3242caad59e9f3bc9c35.js} +0 -0
- /package/_bundles/{7.ordering-ui.b7a675443a571059b9df.js.LICENSE.txt → 7.ordering-ui.3242caad59e9f3bc9c35.js.LICENSE.txt} +0 -0
- /package/_bundles/{8.ordering-ui.b7a675443a571059b9df.js → 8.ordering-ui.3242caad59e9f3bc9c35.js} +0 -0
- /package/_bundles/{9.ordering-ui.b7a675443a571059b9df.js → 9.ordering-ui.3242caad59e9f3bc9c35.js} +0 -0
- /package/_bundles/{ordering-ui.b7a675443a571059b9df.js.LICENSE.txt → ordering-ui.3242caad59e9f3bc9c35.js.LICENSE.txt} +0 -0
|
@@ -86,9 +86,7 @@ var CardFormUI = function CardFormUI(props) {
|
|
|
86
86
|
name: "zipcode",
|
|
87
87
|
placeholder: "".concat(t('ZIPCODE', 'Zipcode')).concat(zipCodeRequired ? '*' : ''),
|
|
88
88
|
options: CARD_ELEMENT_OPTIONS,
|
|
89
|
-
onChange: handleChange
|
|
90
|
-
pattern: "[0-9]",
|
|
91
|
-
type: "number"
|
|
89
|
+
onChange: handleChange
|
|
92
90
|
}), errorZipcode && /*#__PURE__*/_react.default.createElement(_styles.ErrorMessage, null, t('ZIPCODE_IS_INCOMPLETED', 'The zipcode is incompleted.'))))), /*#__PURE__*/_react.default.createElement(_styles.FormActions, null, /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
93
91
|
color: "primary",
|
|
94
92
|
type: "submit",
|
|
@@ -109,31 +109,31 @@ var OrderTypeSelectorHeader = function OrderTypeSelectorHeader(props) {
|
|
|
109
109
|
content: /*#__PURE__*/_react.default.createElement(_styles.Option, null, /*#__PURE__*/_react.default.createElement(_MdcTruckDeliveryOutline.default, null), /*#__PURE__*/_react.default.createElement(_styles.ContentOption, null, t('DELIVERY', 'Delivery'))),
|
|
110
110
|
showOnSelected: /*#__PURE__*/_react.default.createElement(_styles.Option, null, /*#__PURE__*/_react.default.createElement(_MdcTruckDeliveryOutline.default, null), /*#__PURE__*/_react.default.createElement(_styles.SelectedOption, null, t('DELIVERY', 'Delivery'))),
|
|
111
111
|
itemcontent: /*#__PURE__*/_react.default.createElement(_styles.OrderType, null, /*#__PURE__*/_react.default.createElement(_MdcTruckDeliveryOutline.default, null), /*#__PURE__*/_react.default.createElement(_styles.ItemContent, null, t('DELIVERY', 'Delivery'))),
|
|
112
|
-
itemdescription: /*#__PURE__*/_react.default.createElement(_styles.OrderDescription, null, t('
|
|
112
|
+
itemdescription: /*#__PURE__*/_react.default.createElement(_styles.OrderDescription, null, t('ORDERTYPE_DESCRIPTION_DELIVERY', 'Delivery description'))
|
|
113
113
|
}, {
|
|
114
114
|
value: 2,
|
|
115
115
|
content: /*#__PURE__*/_react.default.createElement(_styles.Option, null, /*#__PURE__*/_react.default.createElement(_FaTruckPickup.default, null), /*#__PURE__*/_react.default.createElement(_styles.ContentOption, null, t('PICKUP', 'Pickup'))),
|
|
116
116
|
showOnSelected: /*#__PURE__*/_react.default.createElement(_styles.Option, null, /*#__PURE__*/_react.default.createElement(_FaTruckPickup.default, null), /*#__PURE__*/_react.default.createElement(_styles.SelectedOption, null, t('PICKUP', 'Pickup'))),
|
|
117
117
|
itemcontent: /*#__PURE__*/_react.default.createElement(_styles.OrderType, null, /*#__PURE__*/_react.default.createElement(_FaTruckPickup.default, null), /*#__PURE__*/_react.default.createElement(_styles.ItemContent, null, t('PICKUP', 'Pickup'))),
|
|
118
|
-
itemdescription: /*#__PURE__*/_react.default.createElement(_styles.OrderDescription, null, t('
|
|
118
|
+
itemdescription: /*#__PURE__*/_react.default.createElement(_styles.OrderDescription, null, t('ORDERTYPE_DESCRIPTION_PICKUP', 'Pickup description'))
|
|
119
119
|
}, {
|
|
120
120
|
value: 3,
|
|
121
121
|
content: /*#__PURE__*/_react.default.createElement(_styles.Option, null, /*#__PURE__*/_react.default.createElement(_AiFillShop.default, null), /*#__PURE__*/_react.default.createElement(_styles.ContentOption, null, t('EAT_IN', 'Eat in'))),
|
|
122
122
|
showOnSelected: /*#__PURE__*/_react.default.createElement(_styles.Option, null, /*#__PURE__*/_react.default.createElement(_AiFillShop.default, null), /*#__PURE__*/_react.default.createElement(_styles.SelectedOption, null, t('EAT_IN', 'Eat in'))),
|
|
123
123
|
itemcontent: /*#__PURE__*/_react.default.createElement(_styles.OrderType, null, /*#__PURE__*/_react.default.createElement(_AiFillShop.default, null), /*#__PURE__*/_react.default.createElement(_styles.ItemContent, null, t('EAT_IN', 'Eat in'))),
|
|
124
|
-
itemdescription: /*#__PURE__*/_react.default.createElement(_styles.OrderDescription, null, t('
|
|
124
|
+
itemdescription: /*#__PURE__*/_react.default.createElement(_styles.OrderDescription, null, t('ORDERTYPE_DESCRIPTION_EATIN', 'Eat in description'))
|
|
125
125
|
}, {
|
|
126
126
|
value: 4,
|
|
127
127
|
content: /*#__PURE__*/_react.default.createElement(_styles.Option, null, /*#__PURE__*/_react.default.createElement(_GiFoodTruck.default, null), /*#__PURE__*/_react.default.createElement(_styles.ContentOption, null, t('CURBSIDE', 'Curbside'))),
|
|
128
128
|
showOnSelected: /*#__PURE__*/_react.default.createElement(_styles.Option, null, /*#__PURE__*/_react.default.createElement(_GiFoodTruck.default, null), /*#__PURE__*/_react.default.createElement(_styles.SelectedOption, null, t('CURBSIDE', 'Curbside'))),
|
|
129
|
-
itemcontent: /*#__PURE__*/_react.default.createElement(_styles.OrderType, null, /*#__PURE__*/_react.default.createElement(_FaCarSide.default, null), /*#__PURE__*/_react.default.createElement(_styles.ItemContent, null, t('
|
|
130
|
-
itemdescription: /*#__PURE__*/_react.default.createElement(_styles.OrderDescription, null, t('
|
|
129
|
+
itemcontent: /*#__PURE__*/_react.default.createElement(_styles.OrderType, null, /*#__PURE__*/_react.default.createElement(_FaCarSide.default, null), /*#__PURE__*/_react.default.createElement(_styles.ItemContent, null, t('CURBSIDE', 'Curbside'))),
|
|
130
|
+
itemdescription: /*#__PURE__*/_react.default.createElement(_styles.OrderDescription, null, t('ORDERTYPE_DESCRIPTION_CURBSIDE', 'Curbside description'))
|
|
131
131
|
}, {
|
|
132
132
|
value: 5,
|
|
133
133
|
content: /*#__PURE__*/_react.default.createElement(_styles.Option, null, /*#__PURE__*/_react.default.createElement(_FaCarSide.default, null), /*#__PURE__*/_react.default.createElement(_styles.ContentOption, null, t('DRIVE_THRU', 'Drive thru'))),
|
|
134
134
|
showOnSelected: /*#__PURE__*/_react.default.createElement(_styles.Option, null, /*#__PURE__*/_react.default.createElement(_FaCarSide.default, null), /*#__PURE__*/_react.default.createElement(_styles.SelectedOption, null, t('DRIVE_THRU', 'Drive thru'))),
|
|
135
|
-
itemcontent: /*#__PURE__*/_react.default.createElement(_styles.OrderType, null, /*#__PURE__*/_react.default.createElement(_GiFoodTruck.default, null), /*#__PURE__*/_react.default.createElement(_styles.ItemContent, null, t('
|
|
136
|
-
itemdescription: /*#__PURE__*/_react.default.createElement(_styles.OrderDescription, null, t('
|
|
135
|
+
itemcontent: /*#__PURE__*/_react.default.createElement(_styles.OrderType, null, /*#__PURE__*/_react.default.createElement(_GiFoodTruck.default, null), /*#__PURE__*/_react.default.createElement(_styles.ItemContent, null, t('DRIVE_THRU', 'Drive thru'))),
|
|
136
|
+
itemdescription: /*#__PURE__*/_react.default.createElement(_styles.OrderDescription, null, t('ORDERTYPE_DESCRIPTION_DRIVETHRU', 'Drive Thru description'))
|
|
137
137
|
}]
|
|
138
138
|
});
|
|
139
139
|
return /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.OrderTypeControl, orderTypeProps);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-external",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "Ordering UI Components",
|
|
5
5
|
"main": "./_modules/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"lodash": "^4.17.19",
|
|
88
88
|
"moment": "^2.29.4",
|
|
89
89
|
"nanoid": "^4.0.0",
|
|
90
|
-
"ordering-components-external": "7.0.
|
|
90
|
+
"ordering-components-external": "7.0.1",
|
|
91
91
|
"payment": "^2.4.6",
|
|
92
92
|
"polished": "^3.6.6",
|
|
93
93
|
"react-bootstrap-icons": "^1.7.2",
|
|
@@ -106,8 +106,6 @@ const CardFormUI = (props) => {
|
|
|
106
106
|
placeholder={`${t('ZIPCODE', 'Zipcode')}${zipCodeRequired ? '*' : ''}`}
|
|
107
107
|
options={CARD_ELEMENT_OPTIONS}
|
|
108
108
|
onChange={handleChange}
|
|
109
|
-
pattern='[0-9]'
|
|
110
|
-
type='number'
|
|
111
109
|
/>
|
|
112
110
|
{errorZipcode && (
|
|
113
111
|
<ErrorMessage>{t('ZIPCODE_IS_INCOMPLETED', 'The zipcode is incompleted.')}</ErrorMessage>
|
|
@@ -115,35 +115,35 @@ export const OrderTypeSelectorHeader = (props) => {
|
|
|
115
115
|
content: <Option><MdcTruckDeliveryOutline /><ContentOption>{t('DELIVERY', 'Delivery')}</ContentOption></Option>,
|
|
116
116
|
showOnSelected: <Option><MdcTruckDeliveryOutline /><SelectedOption>{t('DELIVERY', 'Delivery')}</SelectedOption></Option>,
|
|
117
117
|
itemcontent: <OrderType><MdcTruckDeliveryOutline /><ItemContent>{t('DELIVERY', 'Delivery')}</ItemContent></OrderType>,
|
|
118
|
-
itemdescription: <OrderDescription>{t('
|
|
118
|
+
itemdescription: <OrderDescription>{t('ORDERTYPE_DESCRIPTION_DELIVERY', 'Delivery description')}</OrderDescription>
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
121
|
value: 2,
|
|
122
122
|
content: <Option><FaTruckPickup /><ContentOption>{t('PICKUP', 'Pickup')}</ContentOption></Option>,
|
|
123
123
|
showOnSelected: <Option><FaTruckPickup /><SelectedOption>{t('PICKUP', 'Pickup')}</SelectedOption></Option>,
|
|
124
124
|
itemcontent: <OrderType><FaTruckPickup /><ItemContent>{t('PICKUP', 'Pickup')}</ItemContent></OrderType>,
|
|
125
|
-
itemdescription: <OrderDescription>{t('
|
|
125
|
+
itemdescription: <OrderDescription>{t('ORDERTYPE_DESCRIPTION_PICKUP', 'Pickup description')}</OrderDescription>
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
value: 3,
|
|
129
129
|
content: <Option><AiFillShop /><ContentOption>{t('EAT_IN', 'Eat in')}</ContentOption></Option>,
|
|
130
130
|
showOnSelected: <Option><AiFillShop /><SelectedOption>{t('EAT_IN', 'Eat in')}</SelectedOption></Option>,
|
|
131
131
|
itemcontent: <OrderType><AiFillShop /><ItemContent>{t('EAT_IN', 'Eat in')}</ItemContent></OrderType>,
|
|
132
|
-
itemdescription: <OrderDescription>{t('
|
|
132
|
+
itemdescription: <OrderDescription>{t('ORDERTYPE_DESCRIPTION_EATIN', 'Eat in description')}</OrderDescription>
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
value: 4,
|
|
136
136
|
content: <Option><GiFoodTruck /><ContentOption>{t('CURBSIDE', 'Curbside')}</ContentOption></Option>,
|
|
137
137
|
showOnSelected: <Option><GiFoodTruck /><SelectedOption>{t('CURBSIDE', 'Curbside')}</SelectedOption></Option>,
|
|
138
|
-
itemcontent: <OrderType><FaCarSide /><ItemContent>{t('
|
|
139
|
-
itemdescription: <OrderDescription>{t('
|
|
138
|
+
itemcontent: <OrderType><FaCarSide /><ItemContent>{t('CURBSIDE', 'Curbside')}</ItemContent></OrderType>,
|
|
139
|
+
itemdescription: <OrderDescription>{t('ORDERTYPE_DESCRIPTION_CURBSIDE', 'Curbside description')}</OrderDescription>
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
value: 5,
|
|
143
143
|
content: <Option><FaCarSide /><ContentOption>{t('DRIVE_THRU', 'Drive thru')}</ContentOption></Option>,
|
|
144
144
|
showOnSelected: <Option><FaCarSide /><SelectedOption>{t('DRIVE_THRU', 'Drive thru')}</SelectedOption></Option>,
|
|
145
|
-
itemcontent: <OrderType><GiFoodTruck /><ItemContent>{t('
|
|
146
|
-
itemdescription: <OrderDescription>{t('
|
|
145
|
+
itemcontent: <OrderType><GiFoodTruck /><ItemContent>{t('DRIVE_THRU', 'Drive thru')}</ItemContent></OrderType>,
|
|
146
|
+
itemdescription: <OrderDescription>{t('ORDERTYPE_DESCRIPTION_DRIVETHRU', 'Drive Thru description')}</OrderDescription>
|
|
147
147
|
}
|
|
148
148
|
]
|
|
149
149
|
}
|
/package/_bundles/{0.ordering-ui.b7a675443a571059b9df.js → 0.ordering-ui.3242caad59e9f3bc9c35.js}
RENAMED
|
File without changes
|
/package/_bundles/{1.ordering-ui.b7a675443a571059b9df.js → 1.ordering-ui.3242caad59e9f3bc9c35.js}
RENAMED
|
File without changes
|
/package/_bundles/{2.ordering-ui.b7a675443a571059b9df.js → 2.ordering-ui.3242caad59e9f3bc9c35.js}
RENAMED
|
File without changes
|
/package/_bundles/{4.ordering-ui.b7a675443a571059b9df.js → 4.ordering-ui.3242caad59e9f3bc9c35.js}
RENAMED
|
File without changes
|
/package/_bundles/{5.ordering-ui.b7a675443a571059b9df.js → 5.ordering-ui.3242caad59e9f3bc9c35.js}
RENAMED
|
File without changes
|
/package/_bundles/{6.ordering-ui.b7a675443a571059b9df.js → 6.ordering-ui.3242caad59e9f3bc9c35.js}
RENAMED
|
File without changes
|
|
File without changes
|
/package/_bundles/{8.ordering-ui.b7a675443a571059b9df.js → 8.ordering-ui.3242caad59e9f3bc9c35.js}
RENAMED
|
File without changes
|
/package/_bundles/{9.ordering-ui.b7a675443a571059b9df.js → 9.ordering-ui.3242caad59e9f3bc9c35.js}
RENAMED
|
File without changes
|