ordering-ui-react-native 0.16.14 → 0.16.15
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 +1 -1
- package/src/navigators/CheckoutNavigator.tsx +6 -0
- package/src/navigators/HomeNavigator.tsx +6 -0
- package/src/pages/MultiCheckout.tsx +31 -0
- package/src/pages/MultiOrdersDetails.tsx +27 -0
- package/themes/original/index.tsx +6 -0
- package/themes/original/src/components/BusinessItemAccordion/index.tsx +3 -2
- package/themes/original/src/components/BusinessItemAccordion/styles.tsx +0 -2
- package/themes/original/src/components/BusinessProductsListing/index.tsx +14 -7
- package/themes/original/src/components/Cart/index.tsx +17 -8
- package/themes/original/src/components/MultiCartsPaymethodsAndWallets/index.tsx +243 -0
- package/themes/original/src/components/MultiCartsPaymethodsAndWallets/styles.tsx +46 -0
- package/themes/original/src/components/MultiCheckout/index.tsx +291 -0
- package/themes/original/src/components/MultiCheckout/styles.tsx +59 -0
- package/themes/original/src/components/MultiOrdersDetails/SingleOrderCard.tsx +370 -0
- package/themes/original/src/components/MultiOrdersDetails/index.tsx +250 -0
- package/themes/original/src/components/MultiOrdersDetails/styles.tsx +50 -0
- package/themes/original/src/components/MyOrders/index.tsx +120 -32
- package/themes/original/src/components/MyOrders/styles.tsx +8 -1
- package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/index.tsx +150 -0
- package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/styles.tsx +6 -0
- package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/index.tsx +51 -0
- package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/styles.tsx +6 -0
- package/themes/original/src/components/OrdersOption/index.tsx +102 -28
- package/themes/original/src/components/OrdersOption/styles.tsx +4 -1
- package/themes/original/src/components/StripeElementsForm/index.tsx +10 -2
- package/themes/original/src/components/StripeElementsForm/naked.tsx +2 -2
- package/themes/original/src/components/UserDetails/index.tsx +1 -1
- package/themes/original/src/types/index.tsx +43 -19
|
@@ -138,7 +138,7 @@ const UserDetailsUI = (props: any) => {
|
|
|
138
138
|
{!(validationFields.loading || formState.loading) && (
|
|
139
139
|
<UDContainer>
|
|
140
140
|
<UDHeader>
|
|
141
|
-
<OText size={16} lineHeight={24} weight={'500'}>
|
|
141
|
+
<OText size={16} lineHeight={24} weight={'500'} color={theme.colors.textNormal}>
|
|
142
142
|
{t('CUSTOMER_DETAILS', 'Customer Details')}
|
|
143
143
|
</OText>
|
|
144
144
|
{cartStatus !== 2 && (
|
|
@@ -18,10 +18,10 @@ export interface LoginParams {
|
|
|
18
18
|
handleCheckPhoneCode?: any;
|
|
19
19
|
notificationState?: any;
|
|
20
20
|
handleReCaptcha?: any;
|
|
21
|
-
|
|
21
|
+
enableReCaptcha?: any;
|
|
22
22
|
otpType?: string,
|
|
23
|
-
setOtpType: (type
|
|
24
|
-
generateOtpCode: (values
|
|
23
|
+
setOtpType: (type: string) => void,
|
|
24
|
+
generateOtpCode: (values?: any) => void,
|
|
25
25
|
useLoginOtpEmail?: boolean,
|
|
26
26
|
useLoginOtpCellphone?: boolean,
|
|
27
27
|
useLoginOtp?: boolean
|
|
@@ -265,9 +265,9 @@ export interface BusinessProductsListParams {
|
|
|
265
265
|
setCategoriesLayout?: any,
|
|
266
266
|
currentCart?: any,
|
|
267
267
|
setSubcategoriesSelected?: any,
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
268
|
+
subcategoriesSelected?: any,
|
|
269
|
+
onClickCategory?: any,
|
|
270
|
+
lazyLoadProductsRecommended?: boolean,
|
|
271
271
|
isFiltMode?: boolean,
|
|
272
272
|
handleUpdateProducts?: any
|
|
273
273
|
}
|
|
@@ -313,6 +313,7 @@ export interface OrdersOptionParams {
|
|
|
313
313
|
orderList?: any,
|
|
314
314
|
franchiseId?: any,
|
|
315
315
|
activeOrders?: boolean,
|
|
316
|
+
pastOrders?: boolean,
|
|
316
317
|
pagination?: any,
|
|
317
318
|
titleContent?: string,
|
|
318
319
|
customArray?: Array<any>,
|
|
@@ -331,8 +332,15 @@ export interface OrdersOptionParams {
|
|
|
331
332
|
setOpenMessges?: any,
|
|
332
333
|
loadMoreStatus?: boolean,
|
|
333
334
|
refreshOrders?: boolean,
|
|
334
|
-
setRefreshOrders?: (value
|
|
335
|
-
handleUpdateOrderList?: (orderId: number, changes: any) => {}
|
|
335
|
+
setRefreshOrders?: (value: boolean) => void,
|
|
336
|
+
handleUpdateOrderList?: (orderId: number, changes: any) => {},
|
|
337
|
+
isBusiness?: boolean,
|
|
338
|
+
isProducts?: boolean,
|
|
339
|
+
businessOrderIds?: any,
|
|
340
|
+
products?: any,
|
|
341
|
+
businessesSearchList?: any,
|
|
342
|
+
hideOrders?: boolean,
|
|
343
|
+
BusinessControllerSkeletons?: any,
|
|
336
344
|
}
|
|
337
345
|
export interface ActiveOrdersParams {
|
|
338
346
|
orders?: any,
|
|
@@ -520,7 +528,7 @@ export interface OrderTypeSelectParams {
|
|
|
520
528
|
defaultValue?: number;
|
|
521
529
|
configTypes?: Array<any>;
|
|
522
530
|
orderTypes: Array<any>;
|
|
523
|
-
setOrderTypeValue?: (value
|
|
531
|
+
setOrderTypeValue?: (value: number) => any
|
|
524
532
|
}
|
|
525
533
|
export interface UpsellingProductsParams {
|
|
526
534
|
isCustomMode?: boolean;
|
|
@@ -613,26 +621,26 @@ export interface PlaceSpotParams {
|
|
|
613
621
|
|
|
614
622
|
export interface PromotionParams {
|
|
615
623
|
navigation: any,
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
624
|
+
offersState: any,
|
|
625
|
+
handleSearchValue: any,
|
|
626
|
+
searchValue: string,
|
|
627
|
+
offerSelected: any,
|
|
628
|
+
setOfferSelected: any,
|
|
621
629
|
loadOffers: any
|
|
622
630
|
}
|
|
623
631
|
export interface SessionsParams {
|
|
624
632
|
navigation: any,
|
|
625
633
|
sessionsList: any,
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
634
|
+
actionState: any,
|
|
635
|
+
handleDeleteSession: any,
|
|
636
|
+
handleDeleteAllSessions: any
|
|
629
637
|
}
|
|
630
638
|
|
|
631
639
|
export interface otpParams {
|
|
632
640
|
willVerifyOtpState: boolean,
|
|
633
|
-
setWillVerifyOtpState: (val
|
|
641
|
+
setWillVerifyOtpState: (val: boolean) => void,
|
|
634
642
|
onSubmit: () => void,
|
|
635
|
-
handleLoginOtp: (code
|
|
643
|
+
handleLoginOtp: (code: string) => void,
|
|
636
644
|
setAlertState: any
|
|
637
645
|
}
|
|
638
646
|
|
|
@@ -661,3 +669,19 @@ export interface SingleOrderCardParams {
|
|
|
661
669
|
isMessageView?: any,
|
|
662
670
|
handleClickOrder: (value: any) => {}
|
|
663
671
|
}
|
|
672
|
+
|
|
673
|
+
export interface PreviousBusinessOrderedParams {
|
|
674
|
+
navigation?: any,
|
|
675
|
+
businessesList?: any,
|
|
676
|
+
setBusinessLoading?: any,
|
|
677
|
+
businessId?: number,
|
|
678
|
+
onNavigationRedirect?: any,
|
|
679
|
+
isBusinessesSearchList?: any,
|
|
680
|
+
businessLoading?: boolean
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
export interface PreviousProductsOrderedParams {
|
|
684
|
+
products?: any,
|
|
685
|
+
onProductClick?: any,
|
|
686
|
+
isBusinessesSearchList?: boolean
|
|
687
|
+
}
|