ordering-ui-external 1.0.1 → 1.1.0
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/{0.ordering-ui.f64ae9230411e0edb7d6.js → 0.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
- package/_bundles/{1.ordering-ui.f64ae9230411e0edb7d6.js → 1.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
- package/_bundles/{3.ordering-ui.f64ae9230411e0edb7d6.js → 3.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
- package/_bundles/{4.ordering-ui.f64ae9230411e0edb7d6.js → 4.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
- package/_bundles/{5.ordering-ui.f64ae9230411e0edb7d6.js → 5.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
- package/_bundles/{6.ordering-ui.f64ae9230411e0edb7d6.js → 6.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
- package/_bundles/{7.ordering-ui.f64ae9230411e0edb7d6.js → 7.ordering-ui.f3d1068d8ea119f4e4f2.js} +2 -2
- package/_bundles/{7.ordering-ui.f64ae9230411e0edb7d6.js.LICENSE.txt → 7.ordering-ui.f3d1068d8ea119f4e4f2.js.LICENSE.txt} +0 -0
- package/_bundles/{8.ordering-ui.f64ae9230411e0edb7d6.js → 8.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
- package/_bundles/{9.ordering-ui.f64ae9230411e0edb7d6.js → 9.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
- package/_bundles/ordering-ui.f3d1068d8ea119f4e4f2.js +2 -0
- package/_bundles/{ordering-ui.f64ae9230411e0edb7d6.js.LICENSE.txt → ordering-ui.f3d1068d8ea119f4e4f2.js.LICENSE.txt} +0 -0
- package/_modules/components/BusinessBasicInformation/index.js +17 -7
- package/_modules/components/BusinessProductsList/index.js +9 -9
- package/_modules/components/BusinessProductsList/layouts/groceries/index.js +9 -9
- package/_modules/components/Checkout/index.js +2 -1
- package/_modules/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/components/LoginForm/index.js +4 -1
- package/_modules/components/OrderDetails/index.js +30 -13
- package/_modules/components/PaymentOptionSquare/index.js +6 -4
- package/_modules/components/PaymentOptionSquare/styles.js +13 -6
- package/_modules/components/PaymentOptions/index.js +6 -3
- package/_modules/components/ProductItemAccordion/index.js +7 -2
- package/_modules/components/RenderProductsLayout/SearchProducts/index.js +6 -2
- package/_modules/components/RenderProductsLayout/index.js +24 -34
- package/_modules/components/SignUpForm/index.js +4 -1
- package/_modules/components/SingleProductCard/index.js +2 -2
- package/_modules/components/TaxInformation/index.js +3 -5
- package/_modules/components/UserFormDetails/index.js +23 -7
- package/_modules/components/UserProfileForm/ProfileOptions/index.js +19 -1
- package/_modules/components/UserProfileForm/index.js +28 -6
- package/_modules/components/UserProfileForm/styles.js +1 -1
- package/_modules/hooks/useCountdownTimer.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/BusinessProductsList/layouts/groceries/styles.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/BusinessProductsList/styles.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/themes/callcenterOriginal/src/components/LoginForm/index.js +4 -1
- package/_modules/themes/callcenterOriginal/src/components/SignUpBusiness/index.js +4 -1
- package/_modules/themes/callcenterOriginal/src/components/SignUpForm/index.js +4 -1
- package/_modules/themes/callcenterOriginal/src/components/UserFormDetails/index.js +4 -1
- package/_modules/themes/eight/src/components/BusinessProductsList/index.js +9 -9
- package/_modules/themes/eight/src/components/LoginForm/index.js +4 -1
- package/_modules/themes/eight/src/components/SignUpForm/index.js +4 -1
- package/_modules/themes/eight/src/components/SingleProductCard/index.js +2 -2
- package/_modules/themes/five/index.js +50 -2
- package/_modules/themes/five/src/components/AddressDetails/index.js +2 -20
- package/_modules/themes/five/src/components/AddressForm/index.js +18 -6
- package/_modules/themes/five/src/components/AddressForm/styles.js +1 -1
- package/_modules/themes/five/src/components/AddressList/index.js +24 -11
- package/_modules/themes/five/src/components/AddressList/styles.js +11 -7
- package/_modules/themes/five/src/components/BusinessInformation/index.js +11 -4
- package/_modules/themes/five/src/components/BusinessItemAccordion/index.js +19 -4
- package/_modules/themes/five/src/components/BusinessItemAccordion/styles.js +30 -4
- package/_modules/themes/five/src/components/BusinessListingSearch/index.js +64 -3
- package/_modules/themes/five/src/components/BusinessPreorder/index.js +5 -3
- package/_modules/themes/five/src/components/BusinessPreorder/styles.js +1 -1
- package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +87 -54
- package/_modules/themes/five/src/components/BusinessProductsCategories/styles.js +1 -1
- package/_modules/themes/five/src/components/BusinessProductsList/layouts/groceries/index.js +2 -1
- package/_modules/themes/five/src/components/BusinessProductsList/layouts/groceries/styles.js +13 -10
- package/_modules/themes/five/src/components/BusinessProductsList/styles.js +3 -3
- package/_modules/themes/five/src/components/BusinessReviews/index.js +24 -30
- package/_modules/themes/five/src/components/BusinessesListing/index.js +22 -5
- package/_modules/themes/five/src/components/BusinessesListing/layouts/AppointmentsBusinessListing/index.js +23 -5
- package/_modules/themes/five/src/components/BusinessesListing/layouts/AppointmentsBusinessListing/styles.js +3 -3
- package/_modules/themes/five/src/components/Cart/index.js +28 -9
- package/_modules/themes/five/src/components/Cart/styles.js +4 -4
- package/_modules/themes/five/src/components/CartContent/index.js +11 -24
- package/_modules/themes/five/src/components/CartPopover/index.js +44 -4
- package/_modules/themes/five/src/components/CartPopover/styles.js +13 -3
- package/_modules/themes/five/src/components/Checkout/index.js +81 -30
- package/_modules/themes/five/src/components/Header/index.js +1 -5
- package/_modules/themes/five/src/components/HomeHero/layouts/KioskHomeHero/index.js +2 -1
- package/_modules/themes/five/src/components/HomeHero/layouts/KioskHomeHero/styles.js +1 -1
- package/_modules/themes/five/src/components/HorizontalOrdersLayout/index.js +4 -6
- package/_modules/themes/five/src/components/HorizontalOrdersLayout/styles.js +5 -5
- package/_modules/themes/five/src/components/LoginForm/styles.js +29 -29
- package/_modules/themes/five/src/components/Modal/index.js +5 -0
- package/_modules/themes/five/src/components/Modal/styles.js +20 -15
- package/_modules/themes/five/src/components/MomentControl/Layouts/CustomLayout/styles.js +4 -4
- package/_modules/themes/five/src/components/NotNetworkConnectivity/index.js +70 -5
- package/_modules/themes/five/src/components/OrderDetails/ActionsSection.js +5 -3
- package/_modules/themes/five/src/components/OrderDetails/OrderBillSection.js +3 -1
- package/_modules/themes/five/src/components/OrderDetails/index.js +121 -39
- package/_modules/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +8 -4
- package/_modules/themes/five/src/components/OrderDetails/styles.js +26 -18
- package/_modules/themes/five/src/components/OrderProgress/index.js +1 -0
- package/_modules/themes/five/src/components/OrdersOption/index.js +6 -0
- package/_modules/themes/five/src/components/OrdersOption/styles.js +13 -13
- package/_modules/themes/five/src/components/PaymentOptionWallet/index.js +6 -2
- package/_modules/themes/five/src/components/PaymentOptions/index.js +25 -3
- package/_modules/themes/five/src/components/PhoneAutocomplete/index.js +1 -1
- package/_modules/themes/five/src/components/ProductForm/index.js +108 -43
- package/_modules/themes/five/src/components/ProductForm/styles.js +19 -21
- package/_modules/themes/five/src/components/ProductItemAccordion/index.js +11 -3
- package/_modules/themes/five/src/components/ProductOption/index.js +3 -1
- package/_modules/themes/five/src/components/ProductOption/styles.js +1 -1
- package/_modules/themes/five/src/components/ProfessionalProfile/styles.js +1 -1
- package/_modules/themes/five/src/components/ReviewDriver/index.js +330 -0
- package/_modules/themes/five/src/components/ReviewDriver/styles.js +137 -0
- package/_modules/themes/five/src/components/ReviewOrder/index.js +342 -0
- package/_modules/themes/five/src/components/ReviewOrder/styles.js +141 -0
- package/_modules/themes/five/src/components/ReviewProduct/index.js +329 -0
- package/_modules/themes/five/src/components/ReviewProduct/styles.js +111 -0
- package/_modules/themes/five/src/components/ReviewTrigger/index.js +130 -0
- package/_modules/themes/five/src/components/ReviewTrigger/styles.js +84 -0
- package/_modules/themes/five/src/components/SearchBar/index.js +4 -1
- package/_modules/themes/five/src/components/SearchProducts/index.js +1 -0
- package/_modules/themes/five/src/components/ServiceForm/index.js +93 -26
- package/_modules/themes/five/src/components/ServiceForm/styles.js +38 -14
- package/_modules/themes/five/src/components/SignUpBusiness/index.js +4 -1
- package/_modules/themes/five/src/components/SignUpDriver/index.js +4 -1
- package/_modules/themes/five/src/components/SignUpForm/styles.js +12 -12
- package/_modules/themes/five/src/components/SingleOrderCard/index.js +216 -26
- package/_modules/themes/five/src/components/SingleOrderCard/styles.js +7 -3
- package/_modules/themes/five/src/components/TaxInformation/index.js +3 -5
- package/_modules/themes/five/src/components/UserDetails/index.js +132 -9
- package/_modules/themes/five/src/components/UserDetails/styles.js +3 -3
- package/_modules/themes/five/src/components/UserFormDetails/index.js +69 -20
- package/_modules/themes/five/src/components/UserPopover/index.js +13 -7
- package/_modules/themes/five/src/components/UserProfileForm/ProfileOptions/index.js +19 -1
- package/_modules/themes/five/src/components/UserProfileForm/index.js +119 -23
- package/_modules/themes/five/src/components/VerifyCodeForm/index.js +86 -0
- package/_modules/themes/five/src/components/VerifyCodeForm/styles.js +32 -0
- package/_modules/themes/four/src/components/AccordionDropdown/index.js +46 -0
- package/_modules/themes/four/src/components/AccordionDropdown/styles.js +31 -0
- package/_modules/themes/four/src/components/BusinessBasicInformation/index.js +2 -5
- package/_modules/themes/four/src/components/BusinessProductsCategories/index.js +2 -1
- package/_modules/themes/four/src/components/BusinessProductsCategories/layouts/groceries/index.js +128 -0
- package/_modules/themes/four/src/components/BusinessProductsCategories/layouts/groceries/styles.js +43 -0
- package/_modules/themes/four/src/components/BusinessProductsList/layouts/groceries/index.js +235 -0
- package/_modules/themes/four/src/components/BusinessProductsList/layouts/groceries/styles.js +52 -0
- package/_modules/themes/four/src/components/BusinessProductsListing/index.js +131 -108
- package/_modules/themes/four/src/components/BusinessProductsListing/styles.js +8 -33
- package/_modules/themes/four/src/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/themes/four/src/components/LoginForm/index.js +4 -1
- package/_modules/themes/four/src/components/NotFoundSource/index.js +63 -0
- package/_modules/themes/four/src/components/NotFoundSource/styles.js +22 -0
- package/_modules/themes/four/src/components/RenderProductsLayout/index.js +301 -0
- package/_modules/themes/four/src/components/RenderProductsLayout/styles.js +68 -0
- package/_modules/themes/four/src/components/SignUpForm/index.js +4 -1
- package/_modules/themes/four/src/components/SingleProductCard/index.js +15 -5
- package/_modules/themes/four/src/components/UserFormDetails/index.js +4 -1
- package/_modules/themes/franchise/src/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/themes/franchise/src/components/LoginForm/index.js +4 -1
- package/_modules/themes/franchise/src/components/SignUpForm/index.js +4 -1
- package/_modules/themes/franchise/src/components/UserFormDetails/index.js +4 -1
- package/_modules/themes/orderAndPay/src/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/themes/orderAndPay/src/components/LoginForm/index.js +4 -1
- package/_modules/themes/orderAndPay/src/components/SignUpForm/index.js +4 -1
- package/_modules/themes/orderAndPay/src/components/UserFormDetails/index.js +4 -1
- package/_modules/themes/pwa/src/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/themes/pwa/src/components/LoginForm/index.js +4 -1
- package/_modules/themes/pwa/src/components/SignUpForm/index.js +4 -1
- package/_modules/themes/pwa/src/components/UserFormDetails/index.js +4 -1
- package/_modules/themes/seven/index.js +4 -4
- package/_modules/themes/seven/src/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/themes/seven/src/components/LoginForm/index.js +4 -1
- package/_modules/themes/seven/src/components/SignUpForm/index.js +4 -1
- package/_modules/themes/seven/src/components/SignUpForm/styles.js +1 -1
- package/_modules/themes/seven/src/components/UserFormDetails/index.js +4 -1
- package/_modules/themes/six/index.js +3 -3
- package/_modules/themes/six/src/components/AddressForm/index.js +3 -3
- package/_modules/themes/six/src/components/BusinessBasicInformation/index.js +16 -7
- package/_modules/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +6 -2
- package/_modules/themes/six/src/components/BusinessProductsListing/index.js +21 -27
- package/_modules/themes/six/src/components/DriverTips/index.js +2 -2
- package/_modules/themes/six/src/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/themes/six/src/components/LoginForm/index.js +7 -4
- package/_modules/themes/six/src/components/PaymentOptionCash/index.js +2 -2
- package/_modules/themes/six/src/components/ProductForm/index.js +2 -2
- package/_modules/themes/six/src/components/SearchBar/index.js +2 -2
- package/_modules/themes/six/src/components/SignUpForm/index.js +8 -5
- package/_modules/themes/six/src/components/UserFormDetails/index.js +8 -5
- package/_modules/themes/three/src/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/themes/three/src/components/LoginForm/index.js +4 -1
- package/_modules/themes/three/src/components/SignUpForm/index.js +4 -1
- package/_modules/themes/two/src/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/themes/two/src/components/LoginForm/index.js +4 -1
- package/_modules/themes/two/src/components/SignUpForm/index.js +4 -1
- package/package.json +3 -3
- package/src/components/BusinessBasicInformation/index.js +64 -41
- package/src/components/BusinessProductsList/index.js +3 -3
- package/src/components/BusinessProductsList/layouts/groceries/index.js +3 -3
- package/src/components/Checkout/index.js +1 -0
- package/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/components/Header/index.js +1 -1
- package/src/components/LoginForm/index.js +30 -28
- package/src/components/OrderDetails/index.js +101 -58
- package/src/components/PaymentOptionSquare/index.js +4 -8
- package/src/components/PaymentOptionSquare/styles.js +4 -1
- package/src/components/PaymentOptions/index.js +3 -0
- package/src/components/ProductItemAccordion/index.js +5 -3
- package/src/components/RenderProductsLayout/SearchProducts/index.js +3 -2
- package/src/components/RenderProductsLayout/index.js +13 -25
- package/src/components/SignUpForm/index.js +4 -2
- package/src/components/SingleProductCard/index.js +3 -3
- package/src/components/TaxInformation/index.js +1 -1
- package/src/components/UserFormDetails/index.js +35 -26
- package/src/components/UserProfileForm/ProfileOptions/index.js +12 -1
- package/src/components/UserProfileForm/index.js +70 -41
- package/src/components/UserProfileForm/styles.js +3 -1
- package/src/hooks/useCountdownTimer.js +9 -9
- package/src/themes/callcenterOriginal/src/components/BusinessProductsList/layouts/groceries/styles.js +1 -0
- package/src/themes/callcenterOriginal/src/components/BusinessProductsList/styles.js +4 -0
- package/src/themes/callcenterOriginal/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/themes/callcenterOriginal/src/components/LoginForm/index.js +3 -1
- package/src/themes/callcenterOriginal/src/components/SignUpBusiness/index.js +3 -1
- package/src/themes/callcenterOriginal/src/components/SignUpForm/index.js +3 -1
- package/src/themes/callcenterOriginal/src/components/UserFormDetails/index.js +21 -19
- package/src/themes/eight/src/components/BusinessProductsList/index.js +3 -3
- package/src/themes/eight/src/components/LoginForm/index.js +34 -32
- package/src/themes/eight/src/components/SignUpForm/index.js +4 -2
- package/src/themes/eight/src/components/SingleProductCard/index.js +3 -3
- package/src/themes/five/index.js +15 -2
- package/src/themes/five/src/components/AddressDetails/index.js +0 -10
- package/src/themes/five/src/components/AddressForm/index.js +58 -45
- package/src/themes/five/src/components/AddressForm/styles.js +1 -1
- package/src/themes/five/src/components/AddressList/index.js +52 -28
- package/src/themes/five/src/components/AddressList/styles.js +9 -2
- package/src/themes/five/src/components/BusinessInformation/index.js +52 -37
- package/src/themes/five/src/components/BusinessItemAccordion/index.js +36 -3
- package/src/themes/five/src/components/BusinessItemAccordion/styles.js +46 -0
- package/src/themes/five/src/components/BusinessListingSearch/index.js +39 -1
- package/src/themes/five/src/components/BusinessPreorder/index.js +8 -4
- package/src/themes/five/src/components/BusinessPreorder/styles.js +1 -0
- package/src/themes/five/src/components/BusinessProductsCategories/index.js +89 -58
- package/src/themes/five/src/components/BusinessProductsCategories/styles.js +1 -1
- package/src/themes/five/src/components/BusinessProductsList/layouts/groceries/index.js +1 -1
- package/src/themes/five/src/components/BusinessProductsList/layouts/groceries/styles.js +7 -1
- package/src/themes/five/src/components/BusinessProductsList/styles.js +8 -3
- package/src/themes/five/src/components/BusinessReviews/index.js +84 -56
- package/src/themes/five/src/components/BusinessesListing/index.js +8 -7
- package/src/themes/five/src/components/BusinessesListing/layouts/AppointmentsBusinessListing/index.js +9 -3
- package/src/themes/five/src/components/BusinessesListing/layouts/AppointmentsBusinessListing/styles.js +8 -2
- package/src/themes/five/src/components/Cart/index.js +15 -4
- package/src/themes/five/src/components/Cart/styles.js +6 -0
- package/src/themes/five/src/components/CartContent/index.js +10 -23
- package/src/themes/five/src/components/CartPopover/index.js +50 -12
- package/src/themes/five/src/components/CartPopover/styles.js +27 -0
- package/src/themes/five/src/components/Checkout/index.js +38 -3
- package/src/themes/five/src/components/Header/index.js +2 -3
- package/src/themes/five/src/components/HomeHero/layouts/KioskHomeHero/index.js +1 -1
- package/src/themes/five/src/components/HomeHero/layouts/KioskHomeHero/styles.js +1 -1
- package/src/themes/five/src/components/HorizontalOrdersLayout/index.js +2 -2
- package/src/themes/five/src/components/HorizontalOrdersLayout/styles.js +18 -0
- package/src/themes/five/src/components/LoginForm/styles.js +4 -1
- package/src/themes/five/src/components/Modal/index.js +5 -0
- package/src/themes/five/src/components/Modal/styles.js +36 -0
- package/src/themes/five/src/components/MomentControl/Layouts/CustomLayout/styles.js +22 -0
- package/src/themes/five/src/components/NotNetworkConnectivity/index.js +28 -2
- package/src/themes/five/src/components/OrderDetails/ActionsSection.js +14 -10
- package/src/themes/five/src/components/OrderDetails/OrderBillSection.js +1 -1
- package/src/themes/five/src/components/OrderDetails/index.js +102 -61
- package/src/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +6 -5
- package/src/themes/five/src/components/OrderDetails/styles.js +64 -1
- package/src/themes/five/src/components/OrderProgress/index.js +1 -0
- package/src/themes/five/src/components/OrdersOption/index.js +3 -2
- package/src/themes/five/src/components/OrdersOption/styles.js +25 -0
- package/src/themes/five/src/components/PaymentOptionWallet/index.js +41 -41
- package/src/themes/five/src/components/PaymentOptions/index.js +23 -2
- package/src/themes/five/src/components/PhoneAutocomplete/index.js +1 -1
- package/src/themes/five/src/components/ProductForm/index.js +147 -100
- package/src/themes/five/src/components/ProductForm/styles.js +68 -12
- package/src/themes/five/src/components/ProductItemAccordion/index.js +9 -5
- package/src/themes/five/src/components/ProductOption/index.js +1 -1
- package/src/themes/five/src/components/ProductOption/styles.js +5 -1
- package/src/themes/five/src/components/ProfessionalProfile/styles.js +1 -0
- package/src/themes/five/src/components/ReviewDriver/index.js +253 -0
- package/src/themes/five/src/components/ReviewDriver/styles.js +233 -0
- package/src/themes/five/src/components/ReviewOrder/index.js +241 -0
- package/src/themes/five/src/components/ReviewOrder/styles.js +253 -0
- package/src/themes/five/src/components/ReviewProduct/index.js +251 -0
- package/src/themes/five/src/components/ReviewProduct/styles.js +158 -0
- package/src/themes/five/src/components/ReviewTrigger/index.js +86 -0
- package/src/themes/five/src/components/ReviewTrigger/styles.js +121 -0
- package/src/themes/five/src/components/SearchBar/index.js +1 -0
- package/src/themes/five/src/components/SearchProducts/index.js +2 -0
- package/src/themes/five/src/components/ServiceForm/index.js +93 -22
- package/src/themes/five/src/components/ServiceForm/styles.js +43 -2
- package/src/themes/five/src/components/SignUpBusiness/index.js +5 -3
- package/src/themes/five/src/components/SignUpDriver/index.js +5 -3
- package/src/themes/five/src/components/SignUpForm/styles.js +33 -0
- package/src/themes/five/src/components/SingleOrderCard/index.js +118 -22
- package/src/themes/five/src/components/SingleOrderCard/styles.js +5 -0
- package/src/themes/five/src/components/TaxInformation/index.js +1 -1
- package/src/themes/five/src/components/UserDetails/index.js +122 -19
- package/src/themes/five/src/components/UserDetails/styles.js +7 -0
- package/src/themes/five/src/components/UserFormDetails/index.js +108 -63
- package/src/themes/five/src/components/UserPopover/index.js +6 -6
- package/src/themes/five/src/components/UserProfileForm/ProfileOptions/index.js +12 -1
- package/src/themes/five/src/components/UserProfileForm/index.js +130 -38
- package/src/themes/five/src/components/VerifyCodeForm/index.js +64 -0
- package/src/themes/five/src/components/VerifyCodeForm/styles.js +82 -0
- package/src/themes/four/src/components/AccordionDropdown/index.js +47 -0
- package/src/themes/four/src/components/AccordionDropdown/styles.js +25 -0
- package/src/themes/four/src/components/BusinessBasicInformation/index.js +16 -22
- package/src/themes/four/src/components/BusinessProductsCategories/index.js +1 -1
- package/src/themes/four/src/components/BusinessProductsCategories/layouts/groceries/index.js +125 -0
- package/src/themes/four/src/components/BusinessProductsCategories/layouts/groceries/styles.js +52 -0
- package/src/themes/four/src/components/BusinessProductsList/layouts/groceries/index.js +237 -0
- package/src/themes/four/src/components/BusinessProductsList/layouts/groceries/styles.js +62 -0
- package/src/themes/four/src/components/BusinessProductsListing/index.js +69 -113
- package/src/themes/four/src/components/BusinessProductsListing/styles.js +1 -71
- package/src/themes/four/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/themes/four/src/components/LoginForm/index.js +48 -46
- package/src/themes/four/src/components/NotFoundSource/index.js +66 -0
- package/src/themes/four/src/components/NotFoundSource/styles.js +27 -0
- package/src/themes/four/src/components/RenderProductsLayout/index.js +306 -0
- package/src/themes/four/src/components/RenderProductsLayout/styles.js +177 -0
- package/src/themes/four/src/components/SignUpForm/index.js +4 -2
- package/src/themes/four/src/components/SingleProductCard/index.js +35 -23
- package/src/themes/four/src/components/UserFormDetails/index.js +21 -19
- package/src/themes/franchise/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/themes/franchise/src/components/LoginForm/index.js +32 -30
- package/src/themes/franchise/src/components/SignUpForm/index.js +3 -1
- package/src/themes/franchise/src/components/UserFormDetails/index.js +21 -19
- package/src/themes/orderAndPay/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/themes/orderAndPay/src/components/LoginForm/index.js +33 -31
- package/src/themes/orderAndPay/src/components/SignUpForm/index.js +11 -9
- package/src/themes/orderAndPay/src/components/UserFormDetails/index.js +21 -19
- package/src/themes/pwa/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/themes/pwa/src/components/LoginForm/index.js +32 -30
- package/src/themes/pwa/src/components/SignUpForm/index.js +3 -1
- package/src/themes/pwa/src/components/UserFormDetails/index.js +3 -1
- package/src/themes/seven/index.js +4 -4
- package/src/themes/seven/src/components/CouponControl/index.js +0 -1
- package/src/themes/seven/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/themes/seven/src/components/LoginForm/index.js +5 -3
- package/src/themes/seven/src/components/OrderDetails/index.js +1 -1
- package/src/themes/seven/src/components/SignUpForm/index.js +3 -1
- package/src/themes/seven/src/components/SignUpForm/styles.js +1 -0
- package/src/themes/seven/src/components/UserFormDetails/index.js +3 -1
- package/src/themes/six/index.js +3 -3
- package/src/themes/six/src/components/AddressForm/index.js +1 -1
- package/src/themes/six/src/components/BusinessBasicInformation/index.js +57 -34
- package/src/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +3 -2
- package/src/themes/six/src/components/BusinessProductsListing/index.js +7 -13
- package/src/themes/six/src/components/DriverTips/index.js +1 -1
- package/src/themes/six/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/themes/six/src/components/LoginForm/index.js +33 -31
- package/src/themes/six/src/components/PaymentOptionCash/index.js +1 -1
- package/src/themes/six/src/components/ProductForm/index.js +1 -1
- package/src/themes/six/src/components/SearchBar/index.js +1 -1
- package/src/themes/six/src/components/SignUpForm/index.js +4 -2
- package/src/themes/six/src/components/UserFormDetails/index.js +22 -20
- package/src/themes/three/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/themes/three/src/components/LoginForm/index.js +52 -50
- package/src/themes/three/src/components/SignUpForm/index.js +10 -8
- package/src/themes/two/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/themes/two/src/components/LoginForm/index.js +42 -40
- package/src/themes/two/src/components/SignUpForm/index.js +10 -8
- package/template/components/ListenPageChanges/index.js +1 -1
- package/template/pages/Checkout/index.js +0 -1
- package/template/pages/Home/styles.js +0 -14
- package/_bundles/ordering-ui.f64ae9230411e0edb7d6.js +0 -2
- package/_modules/themes/five/src/components/FavoriteBusinesses/index.js +0 -268
- package/_modules/themes/five/src/components/FavoriteBusinesses/styles.js +0 -53
- package/_modules/themes/five/src/components/FavoriteOrders/index.js +0 -353
- package/_modules/themes/five/src/components/FavoriteOrders/styles.js +0 -53
- package/_modules/themes/five/src/components/FavoriteProducts/index.js +0 -190
- package/_modules/themes/five/src/components/FavoriteProducts/styles.js +0 -53
- package/src/themes/five/src/components/FavoriteBusinesses/index.js +0 -217
- package/src/themes/five/src/components/FavoriteBusinesses/styles.js +0 -85
- package/src/themes/five/src/components/FavoriteOrders/index.js +0 -225
- package/src/themes/five/src/components/FavoriteOrders/styles.js +0 -87
- package/src/themes/five/src/components/FavoriteProducts/index.js +0 -165
- package/src/themes/five/src/components/FavoriteProducts/styles.js +0 -87
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import React, { useState } from 'react'
|
|
2
|
+
import { useTheme } from 'styled-components'
|
|
3
|
+
import { useLanguage, useConfig, useUtils } from 'ordering-components-external'
|
|
4
|
+
import AiOutlineShoppingCart from '@meronex/icons/ai/AiOutlineShoppingCart'
|
|
5
|
+
|
|
6
|
+
import { BusinessBasicInformation } from '../BusinessBasicInformation'
|
|
7
|
+
import { BusinessProductsCategories } from '../BusinessProductsCategories'
|
|
8
|
+
import { BusinessProductsList } from '../BusinessProductsList'
|
|
9
|
+
import { BusinessProductsCategories as CategoriesLayoutGroceries } from '../BusinessProductsCategories/layouts/groceries'
|
|
10
|
+
import { BusinessProductsList as ProductListLayoutGroceries } from '../BusinessProductsList/layouts/groceries'
|
|
11
|
+
import { Modal } from '../../../../../components/Modal'
|
|
12
|
+
import { Cart } from '../Cart'
|
|
13
|
+
import { NotFoundSource } from '../NotFoundSource'
|
|
14
|
+
import { Button } from '../../styles/Buttons'
|
|
15
|
+
import {
|
|
16
|
+
Title,
|
|
17
|
+
WrappLayout,
|
|
18
|
+
WrapContent,
|
|
19
|
+
BusinessCategoryProductWrapper,
|
|
20
|
+
BusinessCategoriesContainer,
|
|
21
|
+
BusinessCartContent,
|
|
22
|
+
EmptyCart,
|
|
23
|
+
EmptyBtnWrapper
|
|
24
|
+
} from './styles'
|
|
25
|
+
|
|
26
|
+
const layoutOne = 'groceries'
|
|
27
|
+
|
|
28
|
+
export const RenderProductsLayout = (props) => {
|
|
29
|
+
const {
|
|
30
|
+
errors,
|
|
31
|
+
isError,
|
|
32
|
+
isLoading,
|
|
33
|
+
business,
|
|
34
|
+
categoryId,
|
|
35
|
+
searchValue,
|
|
36
|
+
sortByValue,
|
|
37
|
+
currentCart,
|
|
38
|
+
businessState,
|
|
39
|
+
categoryState,
|
|
40
|
+
categorySelected,
|
|
41
|
+
openCategories,
|
|
42
|
+
openBusinessInformation,
|
|
43
|
+
isCartOnProductsList,
|
|
44
|
+
handleChangeSortBy,
|
|
45
|
+
errorQuantityProducts,
|
|
46
|
+
handler,
|
|
47
|
+
onClickCategory,
|
|
48
|
+
featuredProducts,
|
|
49
|
+
onProductClick,
|
|
50
|
+
handleSearchRedirect,
|
|
51
|
+
handleChangeSearch,
|
|
52
|
+
setOpenBusinessInformation,
|
|
53
|
+
handleCartOpen,
|
|
54
|
+
productToIdLoading
|
|
55
|
+
} = props
|
|
56
|
+
|
|
57
|
+
const theme = useTheme()
|
|
58
|
+
const [, t] = useLanguage()
|
|
59
|
+
const [{ configs }] = useConfig()
|
|
60
|
+
const [{ parsePrice }] = useUtils()
|
|
61
|
+
const [isCartModal, setisCartModal] = useState(false)
|
|
62
|
+
|
|
63
|
+
const isUseParentCategory = configs?.use_parent_category?.value === 'true' || configs?.use_parent_category?.value === '1'
|
|
64
|
+
|
|
65
|
+
const frontLayout = business?.front_layout
|
|
66
|
+
const businessLayout = {
|
|
67
|
+
layoutOne: frontLayout === layoutOne && isUseParentCategory
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const BusinessLayout = (props) => {
|
|
71
|
+
const components = {
|
|
72
|
+
categories: businessLayout.layoutOne
|
|
73
|
+
? CategoriesLayoutGroceries
|
|
74
|
+
: BusinessProductsCategories,
|
|
75
|
+
products_list: businessLayout.layoutOne
|
|
76
|
+
? ProductListLayoutGroceries
|
|
77
|
+
: BusinessProductsList
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const ComponentToRender = props?.component && components[props?.component]
|
|
81
|
+
|
|
82
|
+
return (
|
|
83
|
+
props?.component && (
|
|
84
|
+
<ComponentToRender {...props} />
|
|
85
|
+
)
|
|
86
|
+
)
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return (
|
|
90
|
+
<>
|
|
91
|
+
{!isLoading && business?.id && (
|
|
92
|
+
<WrappLayout
|
|
93
|
+
isLayoutOne={businessLayout.layoutOne}
|
|
94
|
+
isCartOnProductsList={isCartOnProductsList}
|
|
95
|
+
>
|
|
96
|
+
{!businessLayout.layoutOne && (
|
|
97
|
+
<>
|
|
98
|
+
<div className='bp-list'>
|
|
99
|
+
<BusinessBasicInformation
|
|
100
|
+
businessState={businessState}
|
|
101
|
+
categoryState={categoryState}
|
|
102
|
+
searchValue={searchValue}
|
|
103
|
+
sortByValue={sortByValue}
|
|
104
|
+
handleChangeSearch={handleChangeSearch}
|
|
105
|
+
handleChangeSortBy={handleChangeSortBy}
|
|
106
|
+
errorQuantityProducts={errorQuantityProducts}
|
|
107
|
+
setOpenBusinessInformation={setOpenBusinessInformation}
|
|
108
|
+
openBusinessInformation={openBusinessInformation}
|
|
109
|
+
/>
|
|
110
|
+
{!errorQuantityProducts ? (
|
|
111
|
+
<WrapContent>
|
|
112
|
+
<BusinessCategoriesContainer>
|
|
113
|
+
{!(business?.categories?.length === 0 && !categoryId) && (
|
|
114
|
+
<BusinessProductsCategories
|
|
115
|
+
categories={[{ id: null, name: t('ALL', theme?.defaultLanguages?.ALL || 'All') }, { id: 'featured', name: t('FEATURED', theme?.defaultLanguages?.FEATURED || 'Featured') }, ...business?.categories.sort((a, b) => a.rank - b.rank)]}
|
|
116
|
+
categorySelected={categorySelected}
|
|
117
|
+
onClickCategory={onClickCategory}
|
|
118
|
+
featured={featuredProducts}
|
|
119
|
+
openBusinessInformation={openBusinessInformation}
|
|
120
|
+
/>
|
|
121
|
+
)}
|
|
122
|
+
</BusinessCategoriesContainer>
|
|
123
|
+
<BusinessCategoryProductWrapper>
|
|
124
|
+
<BusinessProductsList
|
|
125
|
+
categories={[
|
|
126
|
+
{ id: null, name: t('ALL', theme?.defaultLanguages?.ALL || 'All') },
|
|
127
|
+
{ id: 'featured', name: t('FEATURED', theme?.defaultLanguages?.FEATURED || 'Featured') },
|
|
128
|
+
...business?.categories.sort((a, b) => a.rank - b.rank)
|
|
129
|
+
]}
|
|
130
|
+
category={categorySelected}
|
|
131
|
+
categoryState={categoryState}
|
|
132
|
+
businessId={business.id}
|
|
133
|
+
errors={errors}
|
|
134
|
+
onProductClick={onProductClick}
|
|
135
|
+
handleSearchRedirect={handleSearchRedirect}
|
|
136
|
+
featured={featuredProducts}
|
|
137
|
+
searchValue={searchValue}
|
|
138
|
+
isCartOnProductsList={isCartOnProductsList && currentCart?.products?.length > 0}
|
|
139
|
+
handleClearSearch={handleChangeSearch}
|
|
140
|
+
errorQuantityProducts={errorQuantityProducts}
|
|
141
|
+
currentCart={currentCart}
|
|
142
|
+
productToIdLoading={productToIdLoading}
|
|
143
|
+
/>
|
|
144
|
+
</BusinessCategoryProductWrapper>
|
|
145
|
+
</WrapContent>
|
|
146
|
+
) : (
|
|
147
|
+
<NotFoundSource
|
|
148
|
+
content={t('ERROR_NOT_FOUND_PRODUCTS_TIME', 'No products found at this time')}
|
|
149
|
+
btnTitle={t('SEARCH_REDIRECT', 'Go to Businesses')}
|
|
150
|
+
onClickButton={() => handleSearchRedirect()}
|
|
151
|
+
/>
|
|
152
|
+
)}
|
|
153
|
+
</div>
|
|
154
|
+
{isCartOnProductsList && currentCart?.products?.length > 0 && (
|
|
155
|
+
<Cart
|
|
156
|
+
isForceOpenCart
|
|
157
|
+
cart={currentCart}
|
|
158
|
+
isCartPending={currentCart?.status === 2}
|
|
159
|
+
isProducts={currentCart.products.length}
|
|
160
|
+
isCartOnProductsList={isCartOnProductsList && currentCart?.products?.length > 0}
|
|
161
|
+
handleCartOpen={(val) => handleCartOpen(val)}
|
|
162
|
+
/>
|
|
163
|
+
)}
|
|
164
|
+
</>
|
|
165
|
+
)}
|
|
166
|
+
|
|
167
|
+
{businessLayout.layoutOne && (
|
|
168
|
+
<>
|
|
169
|
+
<BusinessBasicInformation
|
|
170
|
+
businessState={businessState}
|
|
171
|
+
categoryState={categoryState}
|
|
172
|
+
searchValue={searchValue}
|
|
173
|
+
sortByValue={sortByValue}
|
|
174
|
+
handleChangeSearch={handleChangeSearch}
|
|
175
|
+
handleChangeSortBy={handleChangeSortBy}
|
|
176
|
+
errorQuantityProducts={errorQuantityProducts}
|
|
177
|
+
setOpenBusinessInformation={setOpenBusinessInformation}
|
|
178
|
+
openBusinessInformation={openBusinessInformation}
|
|
179
|
+
/>
|
|
180
|
+
{!errorQuantityProducts ? (
|
|
181
|
+
<>
|
|
182
|
+
<WrapContent>
|
|
183
|
+
<BusinessCategoriesContainer>
|
|
184
|
+
{!(business?.categories?.length === 0 && !categoryId) && (
|
|
185
|
+
<BusinessLayout
|
|
186
|
+
component='categories'
|
|
187
|
+
categories={[
|
|
188
|
+
{ id: null, name: t('ALL', theme?.defaultLanguages?.ALL || 'All') },
|
|
189
|
+
{ id: 'featured', name: t('FEATURED', theme?.defaultLanguages?.FEATURED || 'Featured') },
|
|
190
|
+
...business?.categories.sort((a, b) => a.rank - b.rank)
|
|
191
|
+
]}
|
|
192
|
+
categorySelected={categorySelected}
|
|
193
|
+
onClickCategory={onClickCategory}
|
|
194
|
+
featured={featuredProducts}
|
|
195
|
+
openBusinessInformation={openBusinessInformation}
|
|
196
|
+
openCategories={openCategories}
|
|
197
|
+
business={business}
|
|
198
|
+
/>
|
|
199
|
+
)}
|
|
200
|
+
</BusinessCategoriesContainer>
|
|
201
|
+
<BusinessCategoryProductWrapper>
|
|
202
|
+
<BusinessLayout
|
|
203
|
+
component='products_list'
|
|
204
|
+
categories={[
|
|
205
|
+
{ id: null, name: t('ALL', theme?.defaultLanguages?.ALL || 'All') },
|
|
206
|
+
{ id: 'featured', name: t('FEATURED', theme?.defaultLanguages?.FEATURED || 'Featured') },
|
|
207
|
+
...business?.categories.sort((a, b) => a.rank - b.rank)
|
|
208
|
+
]}
|
|
209
|
+
category={categorySelected}
|
|
210
|
+
onClickCategory={onClickCategory}
|
|
211
|
+
categoriesState={props.categoriesState}
|
|
212
|
+
categoryState={categoryState}
|
|
213
|
+
businessId={business?.id}
|
|
214
|
+
errors={errors}
|
|
215
|
+
onProductClick={onProductClick}
|
|
216
|
+
handleSearchRedirect={handleSearchRedirect}
|
|
217
|
+
featured={featuredProducts}
|
|
218
|
+
searchValue={searchValue}
|
|
219
|
+
isCartOnProductsList={isCartOnProductsList && currentCart?.products?.length > 0}
|
|
220
|
+
handleClearSearch={handleChangeSearch}
|
|
221
|
+
errorQuantityProducts={errorQuantityProducts}
|
|
222
|
+
business={business}
|
|
223
|
+
currentCart={currentCart}
|
|
224
|
+
/>
|
|
225
|
+
</BusinessCategoryProductWrapper>
|
|
226
|
+
</WrapContent>
|
|
227
|
+
</>
|
|
228
|
+
) : (
|
|
229
|
+
<NotFoundSource
|
|
230
|
+
content={t('ERROR_NOT_FOUND_PRODUCTS_TIME', 'No products found at this time')}
|
|
231
|
+
btnTitle={t('SEARCH_REDIRECT', 'Go to Businesses')}
|
|
232
|
+
onClickButton={() => handleSearchRedirect()}
|
|
233
|
+
/>
|
|
234
|
+
)}
|
|
235
|
+
</>
|
|
236
|
+
)}
|
|
237
|
+
</WrappLayout>
|
|
238
|
+
)}
|
|
239
|
+
|
|
240
|
+
{isLoading && !isError && (
|
|
241
|
+
<>
|
|
242
|
+
<BusinessBasicInformation
|
|
243
|
+
isSkeleton
|
|
244
|
+
handler={handler}
|
|
245
|
+
businessState={{ business: {}, loading: true }}
|
|
246
|
+
openBusinessInformation={openBusinessInformation}
|
|
247
|
+
/>
|
|
248
|
+
<WrapContent>
|
|
249
|
+
<BusinessCategoriesContainer>
|
|
250
|
+
<BusinessProductsCategories
|
|
251
|
+
isSkeleton
|
|
252
|
+
categories={[]}
|
|
253
|
+
openBusinessInformation={openBusinessInformation}
|
|
254
|
+
/>
|
|
255
|
+
</BusinessCategoriesContainer>
|
|
256
|
+
<BusinessCategoryProductWrapper>
|
|
257
|
+
<BusinessProductsList
|
|
258
|
+
categories={[]}
|
|
259
|
+
category={categorySelected}
|
|
260
|
+
categoryState={categoryState}
|
|
261
|
+
isBusinessLoading={isLoading}
|
|
262
|
+
errorQuantityProducts={errorQuantityProducts}
|
|
263
|
+
productToIdLoading={productToIdLoading}
|
|
264
|
+
/>
|
|
265
|
+
</BusinessCategoryProductWrapper>
|
|
266
|
+
</WrapContent>
|
|
267
|
+
</>
|
|
268
|
+
)}
|
|
269
|
+
<Modal
|
|
270
|
+
width='40%'
|
|
271
|
+
open={isCartModal}
|
|
272
|
+
onClose={() => setisCartModal(false)}
|
|
273
|
+
padding='0'
|
|
274
|
+
>
|
|
275
|
+
<BusinessCartContent isModal>
|
|
276
|
+
<Title style={{ textAlign: 'center', marginTop: '5px' }}>{t('YOUR_CART', 'Your cart')}</Title>
|
|
277
|
+
{currentCart?.products?.length > 0 ? (
|
|
278
|
+
<>
|
|
279
|
+
<Cart
|
|
280
|
+
isStore
|
|
281
|
+
isCustomMode
|
|
282
|
+
isForceOpenCart
|
|
283
|
+
cart={currentCart}
|
|
284
|
+
isCartPending={currentCart?.status === 2}
|
|
285
|
+
isProducts={currentCart.products.length}
|
|
286
|
+
isCartOnProductsList={isCartOnProductsList}
|
|
287
|
+
handleCartOpen={handleCartOpen}
|
|
288
|
+
/>
|
|
289
|
+
</>
|
|
290
|
+
) : (
|
|
291
|
+
<EmptyCart>
|
|
292
|
+
<div className='empty-content'>
|
|
293
|
+
<AiOutlineShoppingCart />
|
|
294
|
+
<p>{t('ADD_PRODUCTS_IN_YOUR_CART', 'Add products in your cart')}</p>
|
|
295
|
+
</div>
|
|
296
|
+
<EmptyBtnWrapper>
|
|
297
|
+
<span>{parsePrice(0)}</span>
|
|
298
|
+
<Button>{t('EMPTY_CART', 'Empty cart')}</Button>
|
|
299
|
+
</EmptyBtnWrapper>
|
|
300
|
+
</EmptyCart>
|
|
301
|
+
)}
|
|
302
|
+
</BusinessCartContent>
|
|
303
|
+
</Modal>
|
|
304
|
+
</>
|
|
305
|
+
)
|
|
306
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const Title = styled.h1`
|
|
4
|
+
font-weight: 600;
|
|
5
|
+
font-size: 20px;
|
|
6
|
+
color: ${props => props.theme.colors.darkTextColor};
|
|
7
|
+
margin-bottom: 18px;
|
|
8
|
+
`
|
|
9
|
+
|
|
10
|
+
export const WrappLayout = styled.div`
|
|
11
|
+
${({ isCartOnProductsList }) => isCartOnProductsList && css`
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
width: 100%;
|
|
15
|
+
|
|
16
|
+
.bp-list,
|
|
17
|
+
.cart {
|
|
18
|
+
width: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@media (min-width: 870px) {
|
|
22
|
+
flex-direction: row;
|
|
23
|
+
.bp-list {
|
|
24
|
+
width: 55%;
|
|
25
|
+
}
|
|
26
|
+
.cart {
|
|
27
|
+
width: calc(45% - 20px);
|
|
28
|
+
margin-left: 20px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@media (min-width: 1024px) {
|
|
33
|
+
.bp-list {
|
|
34
|
+
width: 60%;
|
|
35
|
+
}
|
|
36
|
+
.cart {
|
|
37
|
+
width: calc(40% - 20px);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@media (min-width: 1200px) {
|
|
42
|
+
.bp-list {
|
|
43
|
+
width: 70%;
|
|
44
|
+
}
|
|
45
|
+
.cart {
|
|
46
|
+
width: calc(30% - 20px);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
`}
|
|
50
|
+
`
|
|
51
|
+
export const WrapContent = styled.div`
|
|
52
|
+
background: ${props => props.theme.colors.backgroundPage};
|
|
53
|
+
margin: 0 auto;
|
|
54
|
+
width: 91%;
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
|
|
57
|
+
@media (min-width: 768px ){
|
|
58
|
+
width: 85%;
|
|
59
|
+
display: flex;
|
|
60
|
+
justify-content: space-between;
|
|
61
|
+
padding: 20px 0;
|
|
62
|
+
}
|
|
63
|
+
`
|
|
64
|
+
export const BusinessCategoryProductWrapper = styled.div`
|
|
65
|
+
width: 100%;
|
|
66
|
+
|
|
67
|
+
/* Hide scrollbar for Chrome, Safari and Opera */
|
|
68
|
+
.category-lists::-webkit-scrollbar {
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Hide scrollbar for IE, Edge and Firefox */
|
|
73
|
+
.category-lists {
|
|
74
|
+
-ms-overflow-style: none;
|
|
75
|
+
scrollbar-width: none;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@media (min-width: 1024px) {
|
|
79
|
+
width: 70%;
|
|
80
|
+
}
|
|
81
|
+
`
|
|
82
|
+
|
|
83
|
+
export const BusinessCategoriesContainer = styled.div`
|
|
84
|
+
margin: 0;
|
|
85
|
+
width: 100%;
|
|
86
|
+
|
|
87
|
+
@media (min-width: 768px) {
|
|
88
|
+
width: 30%;
|
|
89
|
+
|
|
90
|
+
${props => props.theme?.rlt ? css`
|
|
91
|
+
padding-left: 25px;
|
|
92
|
+
` : css`
|
|
93
|
+
padding-right: 25px;
|
|
94
|
+
`}
|
|
95
|
+
}
|
|
96
|
+
`
|
|
97
|
+
|
|
98
|
+
export const BusinessCartContainer = styled(BusinessCategoriesContainer)`
|
|
99
|
+
display: none;
|
|
100
|
+
|
|
101
|
+
@media (min-width: 500px) {
|
|
102
|
+
display: block;
|
|
103
|
+
}
|
|
104
|
+
`
|
|
105
|
+
|
|
106
|
+
export const BusinessCartContent = styled.div`
|
|
107
|
+
background: white;
|
|
108
|
+
padding: 30px;
|
|
109
|
+
position: relative;
|
|
110
|
+
|
|
111
|
+
.product.accordion {
|
|
112
|
+
margin: 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.accordion.active {
|
|
116
|
+
padding: 10px 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
${({ isModal }) => !isModal && css`
|
|
120
|
+
border: 1px solid #E9ECEF;
|
|
121
|
+
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);
|
|
122
|
+
border-radius: 7.6px;
|
|
123
|
+
`}
|
|
124
|
+
|
|
125
|
+
@media (min-width: 1200px) {
|
|
126
|
+
position: sticky;
|
|
127
|
+
top: 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@media (min-width: 768px) {
|
|
131
|
+
padding: 35px 30px;
|
|
132
|
+
}
|
|
133
|
+
`
|
|
134
|
+
|
|
135
|
+
export const EmptyCart = styled.div`
|
|
136
|
+
.empty-content {
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
align-items: center;
|
|
140
|
+
|
|
141
|
+
svg {
|
|
142
|
+
font-size: 45px;
|
|
143
|
+
color: #B1BCCC;
|
|
144
|
+
margin-top: 10px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
p {
|
|
148
|
+
font-size: 14px;
|
|
149
|
+
color: #B1BCCC;
|
|
150
|
+
margin: 23px 0 0 0;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
`
|
|
154
|
+
|
|
155
|
+
export const EmptyBtnWrapper = styled.div`
|
|
156
|
+
display: flex;
|
|
157
|
+
align-items: center;
|
|
158
|
+
justify-content: space-between;
|
|
159
|
+
margin-top: 20px;
|
|
160
|
+
|
|
161
|
+
span {
|
|
162
|
+
font-weight: 600;
|
|
163
|
+
font-size: 16px;
|
|
164
|
+
color: ${props => props.theme.colors.darkTextColor};
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
button {
|
|
168
|
+
color: #748194;
|
|
169
|
+
background: #F8F9FA;
|
|
170
|
+
border: 1px solid #F8F9FA;
|
|
171
|
+
border-radius: 7.6px;
|
|
172
|
+
height: 44px;
|
|
173
|
+
font-size: 14px;
|
|
174
|
+
padding-left: 25px;
|
|
175
|
+
padding-right: 25px;
|
|
176
|
+
}
|
|
177
|
+
`
|
|
@@ -160,7 +160,9 @@ const SignUpFormUI = (props) => {
|
|
|
160
160
|
const handleChangeInputEmail = (e) => {
|
|
161
161
|
handleChangeInput({ target: { name: 'email', value: e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '') } })
|
|
162
162
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''))
|
|
163
|
-
emailInput
|
|
163
|
+
if (emailInput?.current) {
|
|
164
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '')
|
|
165
|
+
}
|
|
164
166
|
}
|
|
165
167
|
|
|
166
168
|
useEffect(() => {
|
|
@@ -376,7 +378,7 @@ const SignUpFormUI = (props) => {
|
|
|
376
378
|
<>
|
|
377
379
|
{Object.keys(configs).length > 0 ? (
|
|
378
380
|
<SocialButtons isPopup={isPopup}>
|
|
379
|
-
{
|
|
381
|
+
{isFacebookLogin && configs?.facebook_id?.value && (
|
|
380
382
|
<FacebookLoginButton
|
|
381
383
|
appId={configs?.facebook_id?.value}
|
|
382
384
|
handleSuccessFacebookLogin={handleSuccessFacebook}
|
|
@@ -20,7 +20,11 @@ export const SingleProductCard = (props) => {
|
|
|
20
20
|
isSoldOut,
|
|
21
21
|
isSkeleton,
|
|
22
22
|
onProductClick,
|
|
23
|
-
isCartOnProductsList
|
|
23
|
+
isCartOnProductsList,
|
|
24
|
+
useCustomFunctionality,
|
|
25
|
+
onCustomClick,
|
|
26
|
+
customText,
|
|
27
|
+
customStyle
|
|
24
28
|
} = props
|
|
25
29
|
|
|
26
30
|
const [, t] = useLanguage()
|
|
@@ -54,31 +58,39 @@ export const SingleProductCard = (props) => {
|
|
|
54
58
|
<BeforeComponent key={i} {...props} />))}
|
|
55
59
|
<CardContainer
|
|
56
60
|
soldOut={isSoldOut || maxProductQuantity <= 0}
|
|
57
|
-
onClick={() => !isSkeleton && onProductClick(product)}
|
|
61
|
+
onClick={() => (((!isSkeleton && !useCustomFunctionality && onProductClick && onProductClick(product)) || useCustomFunctionality) && onCustomClick && onCustomClick())}
|
|
58
62
|
isCartOnProductsList={isCartOnProductsList}
|
|
63
|
+
style={useCustomFunctionality && customStyle}
|
|
59
64
|
>
|
|
60
|
-
{!
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
{!useCustomFunctionality && (
|
|
66
|
+
<>
|
|
67
|
+
{!isSkeleton ? (
|
|
68
|
+
<WrapLogo>
|
|
69
|
+
<CardLogo
|
|
70
|
+
className='image'
|
|
71
|
+
soldOut={isSoldOut || maxProductQuantity <= 0}
|
|
72
|
+
bgimage={optimizeImage(product?.images || theme.images?.dummies?.product, 'h_200,c_limit')}
|
|
73
|
+
/>
|
|
74
|
+
</WrapLogo>
|
|
75
|
+
) : (
|
|
76
|
+
<Skeleton height={150} width={150} />
|
|
77
|
+
)}
|
|
78
|
+
<CardInfo soldOut={isSoldOut || maxProductQuantity <= 0}>
|
|
79
|
+
{!isSkeleton ? (
|
|
80
|
+
<span>{parsePrice(product?.price)}</span>
|
|
81
|
+
) : (
|
|
82
|
+
<Skeleton width={100} />
|
|
83
|
+
)}
|
|
84
|
+
{!isSkeleton ? (<h1>{product?.name}</h1>) : (<Skeleton width={100} />)}
|
|
85
|
+
{!isSkeleton ? (<p>{product?.description}</p>) : (<Skeleton width={100} />)}
|
|
86
|
+
</CardInfo>
|
|
87
|
+
{(isSoldOut || maxProductQuantity <= 0) && <SoldOut>{t('SOLD_OUT', 'SOLD OUT')}</SoldOut>}
|
|
88
|
+
{cartAmount > 0 && <CartAmount>{cartAmount}</CartAmount>}
|
|
89
|
+
</>
|
|
90
|
+
)}
|
|
91
|
+
{useCustomFunctionality && customText && (
|
|
92
|
+
<span style={{ fontSize: 16, fontWeight: 500 }}>{customText}</span>
|
|
70
93
|
)}
|
|
71
|
-
<CardInfo soldOut={isSoldOut || maxProductQuantity <= 0}>
|
|
72
|
-
{!isSkeleton ? (
|
|
73
|
-
<span>{parsePrice(product?.price)}</span>
|
|
74
|
-
) : (
|
|
75
|
-
<Skeleton width={100} />
|
|
76
|
-
)}
|
|
77
|
-
{!isSkeleton ? (<h1>{product?.name}</h1>) : (<Skeleton width={100} />)}
|
|
78
|
-
{!isSkeleton ? (<p>{product?.description}</p>) : (<Skeleton width={100} />)}
|
|
79
|
-
</CardInfo>
|
|
80
|
-
{(isSoldOut || maxProductQuantity <= 0) && <SoldOut>{t('SOLD_OUT', 'SOLD OUT')}</SoldOut>}
|
|
81
|
-
{cartAmount > 0 && <CartAmount>{cartAmount}</CartAmount>}
|
|
82
94
|
</CardContainer>
|
|
83
95
|
{props.afterComponents?.map((AfterComponent, i) => (
|
|
84
96
|
<AfterComponent key={i} {...props} />))}
|
|
@@ -150,7 +150,9 @@ export const UserFormDetailsUI = (props) => {
|
|
|
150
150
|
const handleChangeInputEmail = (e) => {
|
|
151
151
|
handleChangeInput({ target: { name: 'email', value: e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '') } })
|
|
152
152
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''))
|
|
153
|
-
emailInput
|
|
153
|
+
if (emailInput?.current) {
|
|
154
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '')
|
|
155
|
+
}
|
|
154
156
|
}
|
|
155
157
|
|
|
156
158
|
useEffect(() => {
|
|
@@ -220,14 +222,14 @@ export const UserFormDetailsUI = (props) => {
|
|
|
220
222
|
{!validationFields?.loading ? (
|
|
221
223
|
<>
|
|
222
224
|
{
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
props.beforeMidElements?.map((BeforeMidElements, i) => (
|
|
226
|
+
<React.Fragment key={i}>
|
|
227
|
+
{BeforeMidElements}
|
|
228
|
+
</React.Fragment>))
|
|
227
229
|
}
|
|
228
230
|
{
|
|
229
|
-
|
|
230
|
-
|
|
231
|
+
props.beforeMidComponents?.map((BeforeMidComponents, i) => (
|
|
232
|
+
<BeforeMidComponents key={i} {...props} />))
|
|
231
233
|
}
|
|
232
234
|
{sortInputFields({ values: validationFields?.fields?.checkout }).map(field =>
|
|
233
235
|
showField && showField(field.code) && (
|
|
@@ -241,9 +243,9 @@ export const UserFormDetailsUI = (props) => {
|
|
|
241
243
|
disabled={!isEdit}
|
|
242
244
|
placeholder={t(field.code.toUpperCase(), field?.name)}
|
|
243
245
|
defaultValue={
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
246
|
+
formState?.result?.result
|
|
247
|
+
? formState?.result?.result[field.code]
|
|
248
|
+
: formState?.changes[field.code] ?? (user && user[field.code]) ?? ''
|
|
247
249
|
}
|
|
248
250
|
onChange={handleChangeInputEmail}
|
|
249
251
|
ref={(e) => {
|
|
@@ -260,9 +262,9 @@ export const UserFormDetailsUI = (props) => {
|
|
|
260
262
|
disabled={!isEdit}
|
|
261
263
|
placeholder={t(field.code.toUpperCase(), field?.name)}
|
|
262
264
|
defaultValue={
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
265
|
+
formState?.result?.result
|
|
266
|
+
? formState?.result?.result[field.code]
|
|
267
|
+
: formState?.changes[field.code] ?? (user && user[field.code]) ?? ''
|
|
266
268
|
}
|
|
267
269
|
onChange={handleChangeInput}
|
|
268
270
|
ref={formMethods.register({
|
|
@@ -306,14 +308,14 @@ export const UserFormDetailsUI = (props) => {
|
|
|
306
308
|
/>
|
|
307
309
|
)}
|
|
308
310
|
{
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
311
|
+
props.afterMidElements?.map((MidElement, i) => (
|
|
312
|
+
<React.Fragment key={i}>
|
|
313
|
+
{MidElement}
|
|
314
|
+
</React.Fragment>))
|
|
313
315
|
}
|
|
314
316
|
{
|
|
315
|
-
|
|
316
|
-
|
|
317
|
+
props.afterMidComponents?.map((MidComponent, i) => (
|
|
318
|
+
<MidComponent key={i} {...props} />))
|
|
317
319
|
}
|
|
318
320
|
<ActionsForm>
|
|
319
321
|
{onCancel && (
|
|
@@ -48,7 +48,9 @@ const ForgotPasswordUI = (props) => {
|
|
|
48
48
|
const handleChangeInputEmail = (e) => {
|
|
49
49
|
hanldeChangeInput({ target: { name: 'email', value: e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '') } })
|
|
50
50
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''))
|
|
51
|
-
emailInput
|
|
51
|
+
if (emailInput?.current) {
|
|
52
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '')
|
|
53
|
+
}
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
useEffect(() => {
|