ordering-ui-react-native 0.14.22-release → 0.14.25

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.
Files changed (30) hide show
  1. package/package.json +2 -2
  2. package/src/components/ProductForm/index.tsx +15 -13
  3. package/themes/doordash/src/components/ProductForm/index.tsx +16 -14
  4. package/themes/instacart/src/components/BusinessProductsList/styles.tsx +1 -1
  5. package/themes/instacart/src/components/ProductForm/index.tsx +15 -13
  6. package/themes/instacart/src/components/SingleProductCard/index.tsx +24 -19
  7. package/themes/instacart/src/components/SingleProductCard/styles.tsx +4 -6
  8. package/themes/kiosk/src/components/ProductForm/index.tsx +15 -13
  9. package/themes/original/index.tsx +4 -0
  10. package/themes/original/src/components/BusinessItemAccordion/index.tsx +2 -1
  11. package/themes/original/src/components/BusinessesListing/index.tsx +25 -19
  12. package/themes/original/src/components/Cart/index.tsx +27 -9
  13. package/themes/original/src/components/CartContent/index.tsx +1 -0
  14. package/themes/original/src/components/Checkout/index.tsx +15 -4
  15. package/themes/original/src/components/Checkout/styles.tsx +5 -1
  16. package/themes/original/src/components/Help/index.tsx +2 -2
  17. package/themes/original/src/components/OrderDetails/index.tsx +54 -0
  18. package/themes/original/src/components/OrderProgress/index.tsx +2 -2
  19. package/themes/original/src/components/OrderSummary/index.tsx +21 -3
  20. package/themes/original/src/components/PaymentOptionWallet/index.tsx +163 -0
  21. package/themes/original/src/components/PaymentOptionWallet/styles.tsx +38 -0
  22. package/themes/original/src/components/ProductForm/index.tsx +21 -19
  23. package/themes/original/src/components/UserProfile/index.tsx +5 -0
  24. package/themes/original/src/components/WalletTransactionItem/index.tsx +68 -0
  25. package/themes/original/src/components/WalletTransactionItem/styles.tsx +37 -0
  26. package/themes/original/src/components/Wallets/index.tsx +204 -0
  27. package/themes/original/src/components/Wallets/styles.tsx +43 -0
  28. package/themes/original/src/types/index.tsx +4 -2
  29. package/themes/single-business/src/components/ProductForm/index.tsx +29 -28
  30. package/themes/uber-eats/src/components/ProductForm/index.tsx +15 -13
@@ -129,6 +129,7 @@ export interface BusinessesListingParams {
129
129
  businessTypes?: any;
130
130
  defaultBusinessType?: any;
131
131
  franchiseId?: any;
132
+ businessId?: any;
132
133
  }
133
134
  export interface HighestRatedBusinessesParams {
134
135
  businessesList: { businesses: Array<any>, loading: boolean, error: null | string };
@@ -344,8 +345,8 @@ export interface MessagesParams {
344
345
  onClose?: () => void,
345
346
  isMeesageListing?: boolean,
346
347
  setCanRead?: any,
347
- business: boolean,
348
- driver: boolean,
348
+ business?: boolean,
349
+ driver?: boolean,
349
350
  onMessages?: any
350
351
  }
351
352
  export interface ViewInterface {
@@ -455,6 +456,7 @@ export interface GoogleMapsParams {
455
456
 
456
457
  export interface HelpParams {
457
458
  navigation: any;
459
+ businessId?: any;
458
460
  }
459
461
 
460
462
  export interface LastOrdersParams {
@@ -527,34 +527,35 @@ export const ProductOptionsUI = (props: any) => {
527
527
  );
528
528
  }))}
529
529
  </View>
530
-
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>
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
- <ProductComment>
331
- <SectionTitle>
332
- <OText size={16}>{t('SPECIAL_COMMENT', 'Special comment')}</OText>
333
- </SectionTitle>
334
- <OInput
335
- multiline
336
- placeholder={t('SPECIAL_COMMENT', 'Special comment')}
337
- value={productCart.comment}
338
- onChange={(val: string) => handleChangeCommentState({ target: { value: val } })}
339
- isDisabled={!(productCart && !isSoldOut && maxProductQuantity)}
340
- style={styles.comment}
341
- />
342
- </ProductComment>
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>