ordering-ui-external 1.0.1 → 1.1.2
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.61d857607dc95f3ab08c.js} +1 -1
- package/_bundles/{1.ordering-ui.f64ae9230411e0edb7d6.js → 1.ordering-ui.61d857607dc95f3ab08c.js} +1 -1
- package/_bundles/{3.ordering-ui.f64ae9230411e0edb7d6.js → 3.ordering-ui.61d857607dc95f3ab08c.js} +1 -1
- package/_bundles/{4.ordering-ui.f64ae9230411e0edb7d6.js → 4.ordering-ui.61d857607dc95f3ab08c.js} +1 -1
- package/_bundles/{5.ordering-ui.f64ae9230411e0edb7d6.js → 5.ordering-ui.61d857607dc95f3ab08c.js} +1 -1
- package/_bundles/{6.ordering-ui.f64ae9230411e0edb7d6.js → 6.ordering-ui.61d857607dc95f3ab08c.js} +1 -1
- package/_bundles/{7.ordering-ui.f64ae9230411e0edb7d6.js → 7.ordering-ui.61d857607dc95f3ab08c.js} +2 -2
- package/_bundles/{7.ordering-ui.f64ae9230411e0edb7d6.js.LICENSE.txt → 7.ordering-ui.61d857607dc95f3ab08c.js.LICENSE.txt} +0 -0
- package/_bundles/{8.ordering-ui.f64ae9230411e0edb7d6.js → 8.ordering-ui.61d857607dc95f3ab08c.js} +1 -1
- package/_bundles/{9.ordering-ui.f64ae9230411e0edb7d6.js → 9.ordering-ui.61d857607dc95f3ab08c.js} +1 -1
- package/_bundles/ordering-ui.61d857607dc95f3ab08c.js +2 -0
- package/_bundles/{ordering-ui.f64ae9230411e0edb7d6.js.LICENSE.txt → ordering-ui.61d857607dc95f3ab08c.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/index.js +78 -0
- 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/index.js +28 -2
- 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
|
@@ -4,9 +4,8 @@ import {
|
|
|
4
4
|
Pencil,
|
|
5
5
|
Trash
|
|
6
6
|
} from 'react-bootstrap-icons'
|
|
7
|
-
import { useUtils, useLanguage, useOrder } from 'ordering-components-external'
|
|
7
|
+
import { useUtils, useLanguage, useOrder, useOrderingTheme } from 'ordering-components-external'
|
|
8
8
|
import { useWindowSize } from '../../../../../hooks/useWindowSize'
|
|
9
|
-
|
|
10
9
|
import {
|
|
11
10
|
AccordionSection,
|
|
12
11
|
Accordion,
|
|
@@ -39,13 +38,15 @@ export const ProductItemAccordion = (props) => {
|
|
|
39
38
|
offsetDisabled,
|
|
40
39
|
onDeleteProduct,
|
|
41
40
|
onEditProduct,
|
|
42
|
-
isCheckout
|
|
41
|
+
isCheckout,
|
|
42
|
+
isStore,
|
|
43
|
+
isConfirmationPage
|
|
43
44
|
} = props
|
|
44
45
|
const [, t] = useLanguage()
|
|
45
46
|
const [orderState] = useOrder()
|
|
46
47
|
const [{ parsePrice }] = useUtils()
|
|
47
48
|
const windowSize = useWindowSize()
|
|
48
|
-
|
|
49
|
+
const [orderingTheme] = useOrderingTheme()
|
|
49
50
|
const [setActive, setActiveState] = useState('')
|
|
50
51
|
const [setHeight, setHeightState] = useState('0px')
|
|
51
52
|
const [setRotate, setRotateState] = useState('accordion__icon')
|
|
@@ -55,6 +56,9 @@ export const ProductItemAccordion = (props) => {
|
|
|
55
56
|
const productActionsEdit = useRef(null)
|
|
56
57
|
const productActionsDelete = useRef(null)
|
|
57
58
|
|
|
59
|
+
const viewString = isConfirmationPage ? 'confirmation' : isStore ? 'business_view' : 'header'
|
|
60
|
+
const showProductImage = !orderingTheme?.theme?.[viewString]?.components?.cart?.components?.products?.components?.image?.hidden
|
|
61
|
+
|
|
58
62
|
const productInfo = () => {
|
|
59
63
|
if (isCartProduct) {
|
|
60
64
|
const ingredients = JSON.parse(JSON.stringify(Object.values(product.ingredients ?? {})))
|
|
@@ -113,7 +117,7 @@ export const ProductItemAccordion = (props) => {
|
|
|
113
117
|
onClick={(e) => toggleAccordion(e)}
|
|
114
118
|
>
|
|
115
119
|
<ProductInfo className='info'>
|
|
116
|
-
{product?.images && (
|
|
120
|
+
{product?.images && showProductImage && (
|
|
117
121
|
<WrapperProductImage>
|
|
118
122
|
<ProductImage bgimage={product?.images} />
|
|
119
123
|
</WrapperProductImage>
|
|
@@ -35,7 +35,7 @@ const ProductOptionUI = (props) => {
|
|
|
35
35
|
</React.Fragment>))}
|
|
36
36
|
{props.beforeComponents?.map((BeforeComponent, i) => (
|
|
37
37
|
<BeforeComponent key={i} {...props} />))}
|
|
38
|
-
<Container>
|
|
38
|
+
<Container id={`id_${option?.id}`}>
|
|
39
39
|
<WrapHeader>
|
|
40
40
|
<TitleContainer>
|
|
41
41
|
{option.image && option.image !== '-' && (
|
|
@@ -20,13 +20,17 @@ export const TitleContainer = styled.div`
|
|
|
20
20
|
text-overflow: ellipsis;
|
|
21
21
|
overflow: hidden;
|
|
22
22
|
white-space: nowrap;
|
|
23
|
-
width:
|
|
23
|
+
width: 60%;
|
|
24
24
|
display: flex;
|
|
25
25
|
align-items: center;
|
|
26
26
|
|
|
27
27
|
*:first-child {
|
|
28
28
|
margin-right: 8px;
|
|
29
29
|
}
|
|
30
|
+
|
|
31
|
+
@media (min-width: 576px) {
|
|
32
|
+
width: 70%;
|
|
33
|
+
}
|
|
30
34
|
`
|
|
31
35
|
|
|
32
36
|
export const Title = styled.h3`
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import React, { useState, useEffect } from 'react'
|
|
2
|
+
import { useForm } from 'react-hook-form'
|
|
3
|
+
import { useLanguage, useUtils, ReviewDriver as ReviewDriverController } from 'ordering-components-external'
|
|
4
|
+
import MdClose from '@meronex/icons/md/MdClose'
|
|
5
|
+
import FaUserAlt from '@meronex/icons/fa/FaUserAlt'
|
|
6
|
+
|
|
7
|
+
import { Alert } from '../Confirm'
|
|
8
|
+
import { TextArea } from '../../styles/Inputs'
|
|
9
|
+
import { Button } from '../../styles/Buttons'
|
|
10
|
+
import { useTheme } from 'styled-components'
|
|
11
|
+
|
|
12
|
+
import {
|
|
13
|
+
ReviewDriverContainer,
|
|
14
|
+
Comments,
|
|
15
|
+
ActionBtnWrapper,
|
|
16
|
+
DriverPhoto,
|
|
17
|
+
WrapperDriverPhoto,
|
|
18
|
+
ReviewsProgressWrapper,
|
|
19
|
+
ReviewsProgressContent,
|
|
20
|
+
ReviewsProgressBar,
|
|
21
|
+
ReviewsMarkPoint,
|
|
22
|
+
LogoAndReviewWrapper,
|
|
23
|
+
CommentsList,
|
|
24
|
+
DriverInfoBlock,
|
|
25
|
+
CommentButton
|
|
26
|
+
} from './styles'
|
|
27
|
+
import { reviewCommentList } from '../../../../../utils'
|
|
28
|
+
|
|
29
|
+
const ReviewDriverUI = (props) => {
|
|
30
|
+
const {
|
|
31
|
+
dirverReviews,
|
|
32
|
+
order,
|
|
33
|
+
formState,
|
|
34
|
+
setDriverReviews,
|
|
35
|
+
closeReviewDriver,
|
|
36
|
+
setIsDriverReviewed,
|
|
37
|
+
handleSendDriverReview
|
|
38
|
+
} = props
|
|
39
|
+
|
|
40
|
+
const theme = useTheme()
|
|
41
|
+
const [, t] = useLanguage()
|
|
42
|
+
const [{ optimizeImage }] = useUtils()
|
|
43
|
+
const { handleSubmit, errors } = useForm()
|
|
44
|
+
const [comments, setComments] = useState([])
|
|
45
|
+
const [extraComment, setExtraComment] = useState('')
|
|
46
|
+
const [alertState, setAlertState] = useState({ open: false, content: [], success: false })
|
|
47
|
+
|
|
48
|
+
const commentsList = reviewCommentList('driver')
|
|
49
|
+
|
|
50
|
+
const qualificationList = [
|
|
51
|
+
{ key: 1, text: t('TERRIBLE', 'Terrible'), middleNode: false, left: 0, right: 'initial' },
|
|
52
|
+
{ key: 2, text: t('BAD', 'Bad'), middleNode: true, left: '25%', right: '75%' },
|
|
53
|
+
{ key: 3, text: t('OKAY', 'Okay'), middleNode: true, left: '50%', right: '50%' },
|
|
54
|
+
{ key: 4, text: t('GOOD', 'Good'), middleNode: true, left: '75%', right: '25%' },
|
|
55
|
+
{ key: 5, text: t('GREAT', 'Great'), middleNode: false, left: 'initial', right: 0 }
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
const handleChangeReviews = (index) => {
|
|
59
|
+
if (index) setDriverReviews({ ...dirverReviews, qualification: index, comment: '' })
|
|
60
|
+
setComments([])
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const onSubmit = values => {
|
|
64
|
+
if (dirverReviews?.qualification === 0) {
|
|
65
|
+
setAlertState({
|
|
66
|
+
open: true,
|
|
67
|
+
content: [`${t('REVIEW_QUALIFICATION_REQUIRED', 'Review qualification is required')}`]
|
|
68
|
+
})
|
|
69
|
+
return
|
|
70
|
+
}
|
|
71
|
+
setAlertState({ ...alertState, success: true })
|
|
72
|
+
handleSendDriverReview()
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const handleChangeComment = (commentItem) => {
|
|
76
|
+
const found = comments.find((comment) => comment?.key === commentItem.key)
|
|
77
|
+
if (found) {
|
|
78
|
+
const _comments = comments.filter((comment) => comment?.key !== commentItem.key)
|
|
79
|
+
setComments(_comments)
|
|
80
|
+
} else {
|
|
81
|
+
setComments([...comments, commentItem])
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const closeAlert = () => {
|
|
86
|
+
setAlertState({
|
|
87
|
+
open: false,
|
|
88
|
+
content: []
|
|
89
|
+
})
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const isSelectedComment = (commentKey) => {
|
|
93
|
+
const found = comments.find((comment) => comment?.key === commentKey)
|
|
94
|
+
return found
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
useEffect(() => {
|
|
98
|
+
if (!formState.loading && formState.result?.error) {
|
|
99
|
+
setAlertState({
|
|
100
|
+
open: true,
|
|
101
|
+
success: false,
|
|
102
|
+
content: formState.result?.result || [t('ERROR', 'Error')]
|
|
103
|
+
})
|
|
104
|
+
}
|
|
105
|
+
if (!formState.loading && !formState.result?.error && alertState.success) {
|
|
106
|
+
setIsDriverReviewed && setIsDriverReviewed(true)
|
|
107
|
+
closeReviewDriver && closeReviewDriver()
|
|
108
|
+
}
|
|
109
|
+
}, [formState])
|
|
110
|
+
|
|
111
|
+
useEffect(() => {
|
|
112
|
+
if (Object.keys(errors).length > 0) {
|
|
113
|
+
setAlertState({
|
|
114
|
+
open: true,
|
|
115
|
+
success: false,
|
|
116
|
+
content: Object.values(errors).map(error => error.message)
|
|
117
|
+
})
|
|
118
|
+
}
|
|
119
|
+
}, [errors])
|
|
120
|
+
|
|
121
|
+
useEffect(() => {
|
|
122
|
+
let _comments = ''
|
|
123
|
+
if (comments.length > 0) {
|
|
124
|
+
comments.map(comment => (_comments += comment.content + '. '))
|
|
125
|
+
}
|
|
126
|
+
const _comment = _comments + extraComment
|
|
127
|
+
setDriverReviews({ ...dirverReviews, comment: _comment })
|
|
128
|
+
}, [comments, extraComment])
|
|
129
|
+
|
|
130
|
+
return (
|
|
131
|
+
<>
|
|
132
|
+
{props.beforeElements?.map((BeforeElement, i) => (
|
|
133
|
+
<React.Fragment key={i}>
|
|
134
|
+
{BeforeElement}
|
|
135
|
+
</React.Fragment>))}
|
|
136
|
+
{props.beforeComponents?.map((BeforeComponent, i) => (
|
|
137
|
+
<BeforeComponent key={i} {...props} />))}
|
|
138
|
+
<>
|
|
139
|
+
<LogoAndReviewWrapper>
|
|
140
|
+
<WrapperDriverPhoto>
|
|
141
|
+
{(order?.driver?.photo) ? (
|
|
142
|
+
<DriverPhoto bgimage={optimizeImage(order?.driver?.photo, 'h_200,c_limit')} />
|
|
143
|
+
) : <FaUserAlt />}
|
|
144
|
+
</WrapperDriverPhoto>
|
|
145
|
+
{
|
|
146
|
+
order?.driver?.name && (
|
|
147
|
+
<DriverInfoBlock>{order?.driver?.name}</DriverInfoBlock>
|
|
148
|
+
)
|
|
149
|
+
}
|
|
150
|
+
<ReviewsProgressWrapper>
|
|
151
|
+
<p>{t('HOW_WAS_YOUR_DRIVER', 'How was your driver?')}</p>
|
|
152
|
+
<ReviewsProgressContent>
|
|
153
|
+
<ReviewsProgressBar style={{ width: `${(dirverReviews?.qualification === 0 ? 0 : (dirverReviews?.qualification - 1) / 4) * 100}%` }} />
|
|
154
|
+
{
|
|
155
|
+
qualificationList?.map(qualification => (
|
|
156
|
+
<ReviewsMarkPoint
|
|
157
|
+
key={qualification?.key}
|
|
158
|
+
style={{
|
|
159
|
+
left: theme.rtl ? (qualification?.middleNode ? 'initial' : qualification?.right) : qualification?.left,
|
|
160
|
+
right: theme?.rtl ? qualification?.left : (qualification?.middleNode ? 'initial' : qualification?.right)
|
|
161
|
+
}}
|
|
162
|
+
active={dirverReviews?.qualification === qualification?.key}
|
|
163
|
+
pass={dirverReviews?.qualification >= qualification?.key}
|
|
164
|
+
className={qualification?.middleNode ? 'mark-point' : ''}
|
|
165
|
+
onClick={() => handleChangeReviews(qualification?.key)}
|
|
166
|
+
>
|
|
167
|
+
<span>{qualification?.text}<span /></span>
|
|
168
|
+
</ReviewsMarkPoint>
|
|
169
|
+
))
|
|
170
|
+
}
|
|
171
|
+
</ReviewsProgressContent>
|
|
172
|
+
</ReviewsProgressWrapper>
|
|
173
|
+
<CommentsList>
|
|
174
|
+
<p>{commentsList[dirverReviews?.qualification || 1]?.title}</p>
|
|
175
|
+
{
|
|
176
|
+
commentsList[dirverReviews?.qualification || 1]?.list?.map((commentItem, i) => (
|
|
177
|
+
<CommentButton
|
|
178
|
+
key={i}
|
|
179
|
+
active={isSelectedComment(commentItem.key)}
|
|
180
|
+
onClick={() => handleChangeComment(commentItem)}
|
|
181
|
+
initialIcon
|
|
182
|
+
>
|
|
183
|
+
{commentItem.content}
|
|
184
|
+
{
|
|
185
|
+
isSelectedComment(commentItem.key) && <MdClose />
|
|
186
|
+
}
|
|
187
|
+
</CommentButton>
|
|
188
|
+
))
|
|
189
|
+
}
|
|
190
|
+
</CommentsList>
|
|
191
|
+
</LogoAndReviewWrapper>
|
|
192
|
+
<ReviewDriverContainer onSubmit={handleSubmit(onSubmit)}>
|
|
193
|
+
<Comments>
|
|
194
|
+
<p>{t('DO_YOU_WANT_TO_ADD_SOMETHING', 'Do you want to add something?')}</p>
|
|
195
|
+
<TextArea
|
|
196
|
+
name='comment'
|
|
197
|
+
value={extraComment}
|
|
198
|
+
onChange={(e) => setExtraComment(e.target.value)}
|
|
199
|
+
autoComplete='off'
|
|
200
|
+
/>
|
|
201
|
+
</Comments>
|
|
202
|
+
{
|
|
203
|
+
props.afterMidElements?.map((MidElement, i) => (
|
|
204
|
+
<React.Fragment key={i}>
|
|
205
|
+
{MidElement}
|
|
206
|
+
</React.Fragment>))
|
|
207
|
+
}
|
|
208
|
+
{
|
|
209
|
+
props.afterMidComponents?.map((MidComponent, i) => (
|
|
210
|
+
<MidComponent key={i} {...props} />))
|
|
211
|
+
}
|
|
212
|
+
<ActionBtnWrapper>
|
|
213
|
+
<Button
|
|
214
|
+
color={!formState.loading ? 'primary' : 'secondary'}
|
|
215
|
+
type='submit'
|
|
216
|
+
disabled={formState.loading}
|
|
217
|
+
className='review-sent'
|
|
218
|
+
>
|
|
219
|
+
{!formState.loading ? (
|
|
220
|
+
t('SEND_REVIEW', 'Send review')
|
|
221
|
+
) : t('LOADING', 'Loading')}
|
|
222
|
+
</Button>
|
|
223
|
+
</ActionBtnWrapper>
|
|
224
|
+
<Alert
|
|
225
|
+
title={t('DRIVER_REVIEW', 'Driver Review')}
|
|
226
|
+
content={alertState.content}
|
|
227
|
+
acceptText={t('ACCEPT', 'Accept')}
|
|
228
|
+
open={alertState.open}
|
|
229
|
+
onClose={() => closeAlert()}
|
|
230
|
+
onAccept={() => closeAlert()}
|
|
231
|
+
closeOnBackdrop={false}
|
|
232
|
+
/>
|
|
233
|
+
</ReviewDriverContainer>
|
|
234
|
+
</>
|
|
235
|
+
{props.afterComponents?.map((AfterComponent, i) => (
|
|
236
|
+
<AfterComponent key={i} {...props} />))}
|
|
237
|
+
{props.afterElements?.map((AfterElement, i) => (
|
|
238
|
+
<React.Fragment key={i}>
|
|
239
|
+
{AfterElement}
|
|
240
|
+
</React.Fragment>))}
|
|
241
|
+
</>
|
|
242
|
+
)
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export const ReviewDriver = (props) => {
|
|
246
|
+
const reviewDriverProps = {
|
|
247
|
+
...props,
|
|
248
|
+
UIComponent: ReviewDriverUI,
|
|
249
|
+
isToast: true
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
return <ReviewDriverController {...reviewDriverProps} />
|
|
253
|
+
}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import styled, { css } from 'styled-components'
|
|
3
|
+
import { Button } from '../../styles/Buttons'
|
|
4
|
+
|
|
5
|
+
export const ReviewDriverContainer = styled.form`
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
align-items: center;
|
|
9
|
+
width: 100%;
|
|
10
|
+
`
|
|
11
|
+
|
|
12
|
+
export const Comments = styled.div`
|
|
13
|
+
display: flex;
|
|
14
|
+
width: 100%;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
margin-top: 10px;
|
|
17
|
+
|
|
18
|
+
p {
|
|
19
|
+
margin-top: 0;
|
|
20
|
+
margin-bottom: 10px;
|
|
21
|
+
font-size: 15px;
|
|
22
|
+
color: ${props => props.theme?.colors.darkTextColor};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
textarea {
|
|
26
|
+
min-height: 104px;
|
|
27
|
+
}
|
|
28
|
+
`
|
|
29
|
+
export const ActionBtnWrapper = styled.div`
|
|
30
|
+
margin-top: 30px;
|
|
31
|
+
width: 100%;
|
|
32
|
+
|
|
33
|
+
button {
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
padding: 6px 20px;
|
|
36
|
+
width: 100%;
|
|
37
|
+
}
|
|
38
|
+
`
|
|
39
|
+
|
|
40
|
+
const DriverPhotoStyled = styled.div`
|
|
41
|
+
display: flex;
|
|
42
|
+
width: 124px;
|
|
43
|
+
height: 124px;
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
position: relative;
|
|
46
|
+
background-repeat: no-repeat, repeat;
|
|
47
|
+
background-size: cover;
|
|
48
|
+
object-fit: cover;
|
|
49
|
+
background-position: center;
|
|
50
|
+
min-height: 124px;
|
|
51
|
+
border-radius: 7.6px;
|
|
52
|
+
|
|
53
|
+
@media (min-width: 481px){
|
|
54
|
+
width: 100%;
|
|
55
|
+
height: 100%;
|
|
56
|
+
min-height: 124px;
|
|
57
|
+
}
|
|
58
|
+
`
|
|
59
|
+
|
|
60
|
+
export const DriverPhoto = (props) => {
|
|
61
|
+
const style = {}
|
|
62
|
+
if (props.bgimage) {
|
|
63
|
+
style.backgroundImage = `url(${props.bgimage})`
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return (
|
|
67
|
+
<DriverPhotoStyled {...props} style={style}>
|
|
68
|
+
{props.children}
|
|
69
|
+
</DriverPhotoStyled>
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export const WrapperDriverPhoto = styled.div`
|
|
74
|
+
align-self: center;
|
|
75
|
+
width: 124px;
|
|
76
|
+
height: 124px;
|
|
77
|
+
min-height: 124px;
|
|
78
|
+
max-width: 124px;
|
|
79
|
+
box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);
|
|
80
|
+
border-radius: 7.6px;
|
|
81
|
+
|
|
82
|
+
svg {
|
|
83
|
+
width: 124px;
|
|
84
|
+
height: 124px;
|
|
85
|
+
}
|
|
86
|
+
`
|
|
87
|
+
|
|
88
|
+
export const ReviewsProgressWrapper = styled.div`
|
|
89
|
+
width: 100%;
|
|
90
|
+
margin-top: 50px;
|
|
91
|
+
margin-bottom: 35px;
|
|
92
|
+
|
|
93
|
+
p {
|
|
94
|
+
margin-top: 0;
|
|
95
|
+
margin-bottom: 17px;
|
|
96
|
+
font-size: 15px;
|
|
97
|
+
color: ${props => props.theme?.colors.darkTextColor};
|
|
98
|
+
}
|
|
99
|
+
`
|
|
100
|
+
|
|
101
|
+
export const ReviewsProgressContent = styled.div`
|
|
102
|
+
background: #E9ECEF;
|
|
103
|
+
border-radius: 50px;
|
|
104
|
+
width: 100%;
|
|
105
|
+
height: 6px;
|
|
106
|
+
position: relative;
|
|
107
|
+
margin-bottom: 30px;
|
|
108
|
+
`
|
|
109
|
+
|
|
110
|
+
export const ReviewsProgressBar = styled.div`
|
|
111
|
+
height: 6px;
|
|
112
|
+
border-radius: 50px;
|
|
113
|
+
background: #344050;
|
|
114
|
+
transition: all 0.2s linear;
|
|
115
|
+
`
|
|
116
|
+
|
|
117
|
+
export const ReviewsMarkPoint = styled.div`
|
|
118
|
+
position: absolute;
|
|
119
|
+
top: 15px;
|
|
120
|
+
font-size: 12px;
|
|
121
|
+
color: #CED4DA;
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
|
|
124
|
+
${({ active }) => active && css`
|
|
125
|
+
> span {
|
|
126
|
+
color: #344050;
|
|
127
|
+
}
|
|
128
|
+
`}
|
|
129
|
+
|
|
130
|
+
&.mark-point {
|
|
131
|
+
span {
|
|
132
|
+
position: relative;
|
|
133
|
+
margin-left: -50%;
|
|
134
|
+
${props => props.theme?.rtl && css`
|
|
135
|
+
margin-right: -50%;
|
|
136
|
+
margin-left: 0;
|
|
137
|
+
`}
|
|
138
|
+
|
|
139
|
+
> span {
|
|
140
|
+
position: absolute;
|
|
141
|
+
height: 6px;
|
|
142
|
+
top: -15px;
|
|
143
|
+
width: 2px;
|
|
144
|
+
background: #CED4DA;
|
|
145
|
+
transition: all 0.3s;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
${({ pass }) => pass && css`
|
|
151
|
+
span {
|
|
152
|
+
> span {
|
|
153
|
+
background: transparent !important;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
`}
|
|
157
|
+
`
|
|
158
|
+
|
|
159
|
+
export const LogoAndReviewWrapper = styled.div`
|
|
160
|
+
width: 100%;
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
`
|
|
164
|
+
|
|
165
|
+
export const CommentsList = styled.div`
|
|
166
|
+
p {
|
|
167
|
+
margin-top: 0;
|
|
168
|
+
margin-bottom: 10px;
|
|
169
|
+
font-size: 15px;
|
|
170
|
+
color: ${props => props.theme?.colors.darkTextColor};
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
button {
|
|
174
|
+
border-radius: 50px;
|
|
175
|
+
margin-bottom: 18px;
|
|
176
|
+
margin-right: 40px;
|
|
177
|
+
|
|
178
|
+
${props => props.theme?.rtl && css`
|
|
179
|
+
margin-left: 40px;
|
|
180
|
+
margin-right: 0;
|
|
181
|
+
`}
|
|
182
|
+
|
|
183
|
+
svg {
|
|
184
|
+
vertical-align: middle;
|
|
185
|
+
margin-left: 5px;
|
|
186
|
+
|
|
187
|
+
${props => props.theme?.rtl && css`
|
|
188
|
+
margin-right: 5px;
|
|
189
|
+
margin-left: 0;
|
|
190
|
+
`}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
`
|
|
194
|
+
|
|
195
|
+
export const DriverInfoBlock = styled.p`
|
|
196
|
+
margin-top: 16px;
|
|
197
|
+
margin-bottom: 0;
|
|
198
|
+
font-size: 14px;
|
|
199
|
+
text-align: center;
|
|
200
|
+
color: #344050;
|
|
201
|
+
`
|
|
202
|
+
|
|
203
|
+
export const CommentButton = styled(Button)`
|
|
204
|
+
border-radius: 50px;
|
|
205
|
+
margin-bottom: 18px;
|
|
206
|
+
margin-right: 18px;
|
|
207
|
+
font-size: 13px;
|
|
208
|
+
color: #414954;
|
|
209
|
+
background: #E9ECEF;
|
|
210
|
+
border: 1px solid #E9ECEF;
|
|
211
|
+
transition: all 0.3s linear;
|
|
212
|
+
|
|
213
|
+
${props => props.theme?.rtl && css`
|
|
214
|
+
margin-left: 18px;
|
|
215
|
+
margin-right: 0;
|
|
216
|
+
`}
|
|
217
|
+
|
|
218
|
+
svg {
|
|
219
|
+
vertical-align: middle;
|
|
220
|
+
margin-left: 5px;
|
|
221
|
+
|
|
222
|
+
${props => props.theme?.rtl && css`
|
|
223
|
+
margin-right: 5px;
|
|
224
|
+
margin-left: 0;
|
|
225
|
+
`}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
${({ active }) => active && css`
|
|
229
|
+
background: ${props => props.theme?.colors.primary};
|
|
230
|
+
border: 1px solid ${props => props.theme?.colors.primary};
|
|
231
|
+
color: white;
|
|
232
|
+
`}
|
|
233
|
+
`
|