ordering-ui-react-native 0.14.20 → 0.14.22
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/package.json +2 -2
- package/src/components/ProductForm/index.tsx +15 -13
- package/themes/doordash/src/components/ProductForm/index.tsx +16 -14
- package/themes/instacart/src/components/ProductForm/index.tsx +15 -13
- package/themes/kiosk/src/components/ProductForm/index.tsx +15 -13
- package/themes/original/src/components/ProductForm/index.tsx +21 -19
- package/themes/single-business/src/components/ProductForm/index.tsx +29 -28
- package/themes/uber-eats/src/components/ProductForm/index.tsx +15 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-react-native",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.22",
|
|
4
4
|
"description": "Reusable components made in react native",
|
|
5
5
|
"main": "src/index.tsx",
|
|
6
6
|
"author": "ordering.inc",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@types/styled-components": "^5.1.3",
|
|
56
56
|
"axios": "^0.21.0",
|
|
57
57
|
"moment": "^2.29.1",
|
|
58
|
-
"ordering-components": "github:Ordering-Inc/ordering-components#
|
|
58
|
+
"ordering-components": "github:Ordering-Inc/ordering-components#development",
|
|
59
59
|
"patch-package": "^6.4.7",
|
|
60
60
|
"postinstall-postinstall": "^2.1.0",
|
|
61
61
|
"prop-types": "^15.7.2",
|
|
@@ -232,19 +232,21 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
232
232
|
</React.Fragment>
|
|
233
233
|
)
|
|
234
234
|
}))}
|
|
235
|
-
|
|
236
|
-
<
|
|
237
|
-
<
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
235
|
+
{!product?.hide_special_instructions && (
|
|
236
|
+
<ProductComment>
|
|
237
|
+
<SectionTitle>
|
|
238
|
+
<OText size={16}>{t('SPECIAL_COMMENT', 'Special comment')}</OText>
|
|
239
|
+
</SectionTitle>
|
|
240
|
+
<OInput
|
|
241
|
+
multiline
|
|
242
|
+
placeholder={t('SPECIAL_COMMENT', 'Special comment')}
|
|
243
|
+
value={productCart.comment}
|
|
244
|
+
onChange={(val: string) => handleChangeCommentState({ target: { value: val } })}
|
|
245
|
+
isDisabled={!(productCart && !isSoldOut && maxProductQuantity)}
|
|
246
|
+
style={styles.comment}
|
|
247
|
+
/>
|
|
248
|
+
</ProductComment>
|
|
249
|
+
)}
|
|
248
250
|
</ProductEditions>
|
|
249
251
|
)}
|
|
250
252
|
</WrapContent>
|
|
@@ -287,20 +287,22 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
287
287
|
</React.Fragment>
|
|
288
288
|
)
|
|
289
289
|
}))}
|
|
290
|
-
|
|
291
|
-
<
|
|
292
|
-
<
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
290
|
+
{!product?.hide_special_instructions && (
|
|
291
|
+
<ProductComment onLayout={(e: any) => setCommentY(e.nativeEvent.layout.y + e.nativeEvent.layout.height)}>
|
|
292
|
+
<SectionTitle>
|
|
293
|
+
<OText style={theme.labels.middle as TextStyle}>{t('SPECIAL_COMMENT', 'Special comment')}</OText>
|
|
294
|
+
</SectionTitle>
|
|
295
|
+
<OInput
|
|
296
|
+
multiline
|
|
297
|
+
placeholder={t('SPECIAL_COMMENT', 'Special comment')}
|
|
298
|
+
value={productCart.comment}
|
|
299
|
+
onChange={(val: string) => handleChangeCommentState({ target: { value: val } })}
|
|
300
|
+
isDisabled={!(productCart && !isSoldOut && maxProductQuantity)}
|
|
301
|
+
style={styles.comment}
|
|
302
|
+
inputStyle={{ fontSize: 12, paddingBottom: 7, paddingTop: 17 }}
|
|
303
|
+
/>
|
|
304
|
+
</ProductComment>
|
|
305
|
+
)}
|
|
304
306
|
{productCart && !isSoldOut && maxProductQuantity > 0 && (
|
|
305
307
|
<View style={{ paddingVertical: 4, marginBottom: 10 }}>
|
|
306
308
|
<SectionTitle>
|
|
@@ -235,19 +235,21 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
235
235
|
</React.Fragment>
|
|
236
236
|
)
|
|
237
237
|
}))}
|
|
238
|
-
|
|
239
|
-
<
|
|
240
|
-
<
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
238
|
+
{!product?.hide_special_instructions && (
|
|
239
|
+
<ProductComment>
|
|
240
|
+
<SectionTitle>
|
|
241
|
+
<OText style={theme.labels.middle}>{t('SPECIAL_COMMENT', 'Special comment')}</OText>
|
|
242
|
+
</SectionTitle>
|
|
243
|
+
<OInput
|
|
244
|
+
multiline
|
|
245
|
+
placeholder={t('SPECIAL_COMMENT', 'Special comment')}
|
|
246
|
+
value={productCart.comment}
|
|
247
|
+
onChange={(val: string) => handleChangeCommentState({ target: { value: val } })}
|
|
248
|
+
isDisabled={!(productCart && !isSoldOut && maxProductQuantity)}
|
|
249
|
+
style={{ ...styles.comment, borderColor: theme.colors.border }}
|
|
250
|
+
/>
|
|
251
|
+
</ProductComment>
|
|
252
|
+
)}
|
|
251
253
|
</ProductEditions>
|
|
252
254
|
)}
|
|
253
255
|
</WrapContent>
|
|
@@ -438,19 +438,21 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
438
438
|
</React.Fragment>
|
|
439
439
|
)
|
|
440
440
|
}))}
|
|
441
|
-
|
|
442
|
-
<
|
|
443
|
-
<
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
441
|
+
{!product?.hide_special_instructions && (
|
|
442
|
+
<ProductComment>
|
|
443
|
+
<SectionTitle>
|
|
444
|
+
<OText size={28} weight="bold">{t('SPECIAL_COMMENT', 'Special comment')}</OText>
|
|
445
|
+
</SectionTitle>
|
|
446
|
+
<OInput
|
|
447
|
+
multiline
|
|
448
|
+
placeholder={t('SPECIAL_COMMENT', 'Special comment')}
|
|
449
|
+
value={productCart.comment}
|
|
450
|
+
onChange={(val: string) => handleChangeCommentState({ target: { value: val } })}
|
|
451
|
+
isDisabled={!(productCart && !isSoldOut && maxProductQuantity)}
|
|
452
|
+
style={styles.comment}
|
|
453
|
+
/>
|
|
454
|
+
</ProductComment>
|
|
455
|
+
)}
|
|
454
456
|
</ProductEditions>
|
|
455
457
|
</WrapContent>
|
|
456
458
|
</View>
|
|
@@ -663,25 +663,27 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
663
663
|
)}
|
|
664
664
|
</>
|
|
665
665
|
)}
|
|
666
|
-
|
|
667
|
-
<
|
|
668
|
-
<
|
|
669
|
-
{
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
666
|
+
{!product?.hide_special_instructions && (
|
|
667
|
+
<ProductComment>
|
|
668
|
+
<SectionTitle>
|
|
669
|
+
<OText size={16} weight={'600'} lineHeight={24}>
|
|
670
|
+
{t('SPECIAL_COMMENT', 'Special comment')}
|
|
671
|
+
</OText>
|
|
672
|
+
</SectionTitle>
|
|
673
|
+
<OInput
|
|
674
|
+
multiline
|
|
675
|
+
placeholder={t('SPECIAL_COMMENT', 'Special comment')}
|
|
676
|
+
value={productCart.comment}
|
|
677
|
+
onChange={(val: string) =>
|
|
678
|
+
handleChangeCommentState({ target: { value: val } })
|
|
679
|
+
}
|
|
680
|
+
isDisabled={
|
|
681
|
+
!(productCart && !isSoldOut && maxProductQuantity)
|
|
682
|
+
}
|
|
683
|
+
style={styles.comment}
|
|
684
|
+
/>
|
|
685
|
+
</ProductComment>
|
|
686
|
+
)}
|
|
685
687
|
</ProductEditions>
|
|
686
688
|
)}
|
|
687
689
|
</WrapContent>
|
|
@@ -527,34 +527,35 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
527
527
|
);
|
|
528
528
|
}))}
|
|
529
529
|
</View>
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
530
|
+
{!product?.hide_special_instructions && (
|
|
531
|
+
<ProductComment>
|
|
532
|
+
<SectionTitle>
|
|
533
|
+
<OText size={16} weight={'600'} lineHeight={24}>
|
|
534
|
+
{t('SPECIAL_COMMENT', 'Special comment')}
|
|
535
|
+
</OText>
|
|
536
|
+
</SectionTitle>
|
|
537
|
+
<OInput
|
|
538
|
+
multiline={true}
|
|
539
|
+
numberOfLines={10}
|
|
540
|
+
placeholder={t('SPECIAL_COMMENT', 'Special comment')}
|
|
541
|
+
value={productCart.comment}
|
|
542
|
+
onChange={(val: string) =>
|
|
543
|
+
handleChangeCommentState({ target: { value: val } })
|
|
544
|
+
}
|
|
545
|
+
isDisabled={
|
|
546
|
+
!(productCart && !isSoldOut && maxProductQuantity)
|
|
547
|
+
}
|
|
548
|
+
style={{
|
|
549
|
+
height: 100,
|
|
550
|
+
justifyContent: "flex-end",
|
|
551
|
+
alignItems: 'flex-start',
|
|
552
|
+
borderWidth: 1,
|
|
553
|
+
borderRadius: 8,
|
|
554
|
+
borderColor: theme.colors.border,
|
|
555
|
+
}}
|
|
556
|
+
/>
|
|
557
|
+
</ProductComment>
|
|
558
|
+
)}
|
|
558
559
|
</ProductEditions>
|
|
559
560
|
)}
|
|
560
561
|
</WrapContent>
|
|
@@ -327,19 +327,21 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
327
327
|
</React.Fragment>
|
|
328
328
|
)
|
|
329
329
|
}))}
|
|
330
|
-
|
|
331
|
-
<
|
|
332
|
-
<
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
330
|
+
{!product?.hide_special_instructions && (
|
|
331
|
+
<ProductComment>
|
|
332
|
+
<SectionTitle>
|
|
333
|
+
<OText size={16}>{t('SPECIAL_COMMENT', 'Special comment')}</OText>
|
|
334
|
+
</SectionTitle>
|
|
335
|
+
<OInput
|
|
336
|
+
multiline
|
|
337
|
+
placeholder={t('SPECIAL_COMMENT', 'Special comment')}
|
|
338
|
+
value={productCart.comment}
|
|
339
|
+
onChange={(val: string) => handleChangeCommentState({ target: { value: val } })}
|
|
340
|
+
isDisabled={!(productCart && !isSoldOut && maxProductQuantity)}
|
|
341
|
+
style={styles.comment}
|
|
342
|
+
/>
|
|
343
|
+
</ProductComment>
|
|
344
|
+
)}
|
|
343
345
|
</ProductEditions>
|
|
344
346
|
)}
|
|
345
347
|
</WrapContent>
|