@shopgate/engage 7.32.0-beta.2 → 7.32.0-beta.20
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/account/components/Profile/Profile.provider.d.ts +1 -1
- package/account/components/Profile/ProfileAddressBook.d.ts.map +1 -1
- package/account/components/Profile/ProfileAddressBook.js +13 -22
- package/account/components/Profile/ProfileAddressCard.d.ts.map +1 -1
- package/account/components/Profile/ProfileAddressCard.js +9 -18
- package/account/components/Profile/ProfileForm.d.ts.map +1 -1
- package/account/components/Profile/ProfileForm.js +15 -42
- package/account/components/ProfileContact/ProfileContact.js +13 -21
- package/admin-preview/components/FrontendSettingsPreviewBridge/FrontendSettingsPreviewBridge.d.ts +2 -1
- package/admin-preview/components/FrontendSettingsPreviewBridge/FrontendSettingsPreviewBridge.d.ts.map +1 -1
- package/admin-preview/components/FrontendSettingsPreviewBridge/FrontendSettingsPreviewBridge.js +61 -5
- package/admin-preview/components/FrontendSettingsPreviewBridge/helpers.d.ts +7 -1
- package/admin-preview/components/FrontendSettingsPreviewBridge/helpers.d.ts.map +1 -1
- package/admin-preview/components/FrontendSettingsPreviewBridge/helpers.js +14 -2
- package/admin-preview/components/FrontendSettingsPreviewBridge/types.d.ts +15 -2
- package/admin-preview/components/FrontendSettingsPreviewBridge/types.d.ts.map +1 -1
- package/admin-preview/constants/index.d.ts +9 -22
- package/admin-preview/constants/index.d.ts.map +1 -1
- package/admin-preview/constants/index.js +10 -27
- package/admin-preview/{detection.d.ts → helpers/_internal/detection.d.ts} +12 -8
- package/admin-preview/helpers/_internal/detection.d.ts.map +1 -0
- package/admin-preview/helpers/_internal/detection.js +93 -0
- package/admin-preview/helpers/_internal/origins.d.ts +20 -0
- package/admin-preview/helpers/_internal/origins.d.ts.map +1 -0
- package/admin-preview/helpers/_internal/origins.js +72 -0
- package/admin-preview/helpers/index.d.ts +20 -0
- package/admin-preview/helpers/index.d.ts.map +1 -1
- package/admin-preview/helpers/index.js +26 -2
- package/admin-preview/hooks/index.d.ts +9 -7
- package/admin-preview/hooks/index.d.ts.map +1 -1
- package/admin-preview/hooks/index.js +21 -18
- package/admin-preview/initialization/_internal/initialFrontendSettings.d.ts +32 -0
- package/admin-preview/initialization/_internal/initialFrontendSettings.d.ts.map +1 -0
- package/admin-preview/initialization/_internal/initialFrontendSettings.js +43 -0
- package/admin-preview/initialization/awaitInitialFrontendSettings.d.ts +23 -0
- package/admin-preview/initialization/awaitInitialFrontendSettings.d.ts.map +1 -0
- package/admin-preview/initialization/awaitInitialFrontendSettings.js +88 -0
- package/back-in-stock/components/BackInStockButton/index.js +5 -5
- package/back-in-stock/components/Subscriptions/components/Subscription/index.js +2 -5
- package/cart/components/CartItem/CartItemProductLayout.js +2 -1
- package/cart/components/CartItem/CartItemProductLayoutWide.js +2 -2
- package/cart/components/CartItem/CartItemProductLayoutWideRemoveItem.js +7 -14
- package/cart/components/CartItem/CartItemQuantityPicker.js +3 -2
- package/cart/components/CartItems/CartItemCardReservationLabelChangeStore.js +6 -24
- package/cart/components/CartItems/CartItems.js +8 -10
- package/cart/components/CartItems/CartItemsSubstitution.js +3 -2
- package/cart/components/CartSummaryWide/CartSummaryWide.js +2 -2
- package/cart/components/CartSummaryWide/CartSummaryWideCheckoutButton.js +9 -23
- package/cart/components/PaymentBar/PaymentBarCheckoutButton.js +8 -30
- package/cart/components/PaymentBar/testUtils/mockFactories.js +4 -11
- package/category/components/CategoryImage/index.js +24 -17
- package/checkout/components/AddressBook/AddressList.js +14 -23
- package/checkout/components/Checkout/CheckoutActions.js +4 -3
- package/checkout/components/Checkout/CheckoutAddress.js +8 -0
- package/checkout/components/Checkout/CheckoutSection.js +6 -2
- package/checkout/components/CheckoutConfirmation/CheckoutConfirmation.js +6 -7
- package/checkout/components/ResponsiveBackButton/ResponsiveBackButton.js +7 -17
- package/components/Badge/Badge.d.ts +30 -0
- package/components/Badge/Badge.d.ts.map +1 -0
- package/components/Badge/Badge.js +49 -0
- package/components/Badge/index.d.ts +3 -0
- package/components/Badge/index.d.ts.map +1 -0
- package/components/Badge/index.js +1 -0
- package/components/Card/Card.d.ts +27 -0
- package/components/Card/Card.d.ts.map +1 -0
- package/components/Card/Card.js +57 -0
- package/components/Card/index.d.ts +4 -0
- package/components/Card/index.d.ts.map +1 -0
- package/components/Card/index.js +2 -0
- package/components/Card/useCardAppearance.d.ts +11 -0
- package/components/Card/useCardAppearance.d.ts.map +1 -0
- package/components/Card/useCardAppearance.js +22 -0
- package/components/ChipLayout/index.js +2 -4
- package/components/NavigationHandler/connector.js +1 -1
- package/components/NavigationHandler/index.d.ts +2 -2
- package/components/Paper/Paper.d.ts +48 -0
- package/components/Paper/Paper.d.ts.map +1 -0
- package/components/Paper/Paper.js +64 -0
- package/components/Paper/index.d.ts +3 -0
- package/components/Paper/index.d.ts.map +1 -0
- package/components/Paper/index.js +1 -0
- package/components/RadioCard/RadioCard.d.ts.map +1 -1
- package/components/RadioCard/RadioCard.js +2 -1
- package/components/SheetList/components/Item/index.js +8 -8
- package/components/Tabs/components/Tab.d.ts.map +1 -1
- package/components/Tabs/components/Tab.js +14 -16
- package/components/Typography/Typography.d.ts +1 -1
- package/components/Typography/Typography.d.ts.map +1 -1
- package/components/Typography/Typography.js +2 -0
- package/components/View/components/Content/index.d.ts.map +1 -1
- package/components/View/components/Content/index.js +4 -1
- package/components/constants.d.ts +6 -0
- package/components/constants.d.ts.map +1 -0
- package/components/index.d.ts +6 -1
- package/components/index.d.ts.map +1 -1
- package/components/index.js +6 -2
- package/components/v2/Button/Button.d.ts +24 -13
- package/components/v2/Button/Button.d.ts.map +1 -1
- package/components/v2/Button/Button.js +139 -41
- package/components/v2/ButtonBase/ButtonBase.d.ts +50 -10
- package/components/v2/ButtonBase/ButtonBase.d.ts.map +1 -1
- package/components/v2/ButtonBase/ButtonBase.js +192 -17
- package/components/v2/ButtonBase/hooks.d.ts +0 -1
- package/components/v2/ButtonBase/hooks.d.ts.map +1 -1
- package/components/v2/ButtonBase/hooks.js +36 -12
- package/components/v2/ButtonGroup/ButtonGroup.d.ts +11 -5
- package/components/v2/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/components/v2/ButtonGroup/ButtonGroup.js +49 -26
- package/components/v2/CircularProgress/CircularProgress.d.ts.map +1 -1
- package/components/v2/CircularProgress/CircularProgress.js +10 -5
- package/components/v2/IconButton/IconButton.d.ts +72 -0
- package/components/v2/IconButton/IconButton.d.ts.map +1 -0
- package/components/v2/IconButton/IconButton.js +169 -0
- package/components/v2/IconButton/index.d.ts +3 -0
- package/components/v2/IconButton/index.d.ts.map +1 -0
- package/components/v2/IconButton/index.js +1 -0
- package/components/v2/index.d.ts +1 -0
- package/components/v2/index.d.ts.map +1 -1
- package/components/v2/index.js +1 -0
- package/core/helpers/getFullImageSource.d.ts +5 -1
- package/core/helpers/getFullImageSource.d.ts.map +1 -1
- package/core/helpers/getFullImageSource.js +30 -14
- package/core/helpers/i18n.d.ts +4 -0
- package/core/helpers/i18n.d.ts.map +1 -1
- package/core/helpers/i18n.js +3 -0
- package/core/hooks/events/appEvents.d.ts +31 -46
- package/core/hooks/events/appEvents.d.ts.map +1 -0
- package/core/hooks/events/appEvents.js +26 -29
- package/core/hooks/events/index.d.ts +4 -4
- package/core/hooks/events/index.d.ts.map +1 -1
- package/core/hooks/events/useLongPress.d.ts +55 -58
- package/core/hooks/events/useLongPress.d.ts.map +1 -0
- package/core/hooks/events/useLongPress.js +23 -16
- package/core/hooks/events/usePressHandler.d.ts +32 -21
- package/core/hooks/events/usePressHandler.d.ts.map +1 -1
- package/core/hooks/events/usePressHandler.js +12 -10
- package/core/hooks/events/useScrollDirectionChange.d.ts +72 -61
- package/core/hooks/events/useScrollDirectionChange.d.ts.map +1 -0
- package/core/hooks/events/useScrollDirectionChange.js +36 -43
- package/core/hooks/html/useLoadImage.d.ts +3 -3
- package/core/hooks/html/useLoadImage.d.ts.map +1 -1
- package/core/hooks/html/useLoadImage.js +2 -2
- package/core/hooks/useLocalStorage.d.ts +8 -0
- package/core/hooks/useLocalStorage.d.ts.map +1 -1
- package/core/hooks/useLocalStorage.js +22 -15
- package/core/hooks/useNavigation.d.ts +10 -2
- package/core/hooks/useNavigation.d.ts.map +1 -1
- package/core/hooks/useNavigation.js +1 -2
- package/core/initialization/fetchSettings.d.ts +12 -0
- package/core/initialization/fetchSettings.d.ts.map +1 -0
- package/core/initialization/fetchSettings.js +134 -0
- package/core/initialization/index.d.ts +33 -2
- package/core/initialization/index.d.ts.map +1 -1
- package/core/initialization/index.js +44 -103
- package/core/router/conductor.d.ts +9 -0
- package/core/router/helpers.d.ts +28 -15
- package/core/router/helpers.d.ts.map +1 -1
- package/core/router/helpers.js +8 -8
- package/development/action-creators/index.d.ts +3 -0
- package/development/action-creators/index.d.ts.map +1 -0
- package/development/action-creators/settings.d.ts +45 -0
- package/development/action-creators/settings.d.ts.map +1 -0
- package/development/action-creators/settings.js +21 -10
- package/development/action-creators/storage.d.ts +17 -0
- package/development/action-creators/storage.d.ts.map +1 -0
- package/development/action-creators/storage.js +7 -4
- package/development/components/ClientInformation/ClientInformation.d.ts +6 -0
- package/development/components/ClientInformation/ClientInformation.d.ts.map +1 -0
- package/development/components/ClientInformation/ClientInformation.js +7 -4
- package/development/components/ClientInformation/actions.d.ts +6 -0
- package/development/components/ClientInformation/actions.d.ts.map +1 -0
- package/development/components/ClientInformation/actions.js +1 -1
- package/development/components/ClientInformation/index.d.ts +2 -0
- package/development/components/ClientInformation/index.d.ts.map +1 -0
- package/development/components/DevelopmentSettings/DevelopmentSettings.d.ts +16 -0
- package/development/components/DevelopmentSettings/DevelopmentSettings.d.ts.map +1 -0
- package/development/components/DevelopmentSettings/DevelopmentSettings.js +43 -30
- package/development/components/DevelopmentSettings/index.d.ts +2 -0
- package/development/components/DevelopmentSettings/index.d.ts.map +1 -0
- package/development/components/DevelopmentTools/DevelopmentTools.d.ts +10 -0
- package/development/components/DevelopmentTools/DevelopmentTools.d.ts.map +1 -0
- package/development/components/DevelopmentTools/DevelopmentTools.js +8 -8
- package/development/components/DevelopmentTools/Shortcuts.d.ts +6 -0
- package/development/components/DevelopmentTools/Shortcuts.d.ts.map +1 -0
- package/development/components/DevelopmentTools/Shortcuts.js +0 -1
- package/development/components/DevelopmentTools/hooks.d.ts +8 -0
- package/development/components/DevelopmentTools/hooks.d.ts.map +1 -0
- package/development/components/DevelopmentTools/hooks.js +2 -3
- package/development/components/DevelopmentTools/index.d.ts +2 -0
- package/development/components/DevelopmentTools/index.d.ts.map +1 -0
- package/development/components/SimulatedInsets/SimulatedInsetBottom.d.ts +7 -0
- package/development/components/SimulatedInsets/SimulatedInsetBottom.d.ts.map +1 -0
- package/development/components/SimulatedInsets/SimulatedInsetBottom.js +1 -6
- package/development/components/SimulatedInsets/SimulatedInsetTop.d.ts +7 -0
- package/development/components/SimulatedInsets/SimulatedInsetTop.d.ts.map +1 -0
- package/development/components/SimulatedInsets/SimulatedInsetTop.js +2 -7
- package/development/components/SimulatedInsets/SimulatedInsets.d.ts +13 -0
- package/development/components/SimulatedInsets/SimulatedInsets.d.ts.map +1 -0
- package/development/components/SimulatedInsets/SimulatedInsets.js +2 -7
- package/development/components/SimulatedInsets/index.d.ts +2 -0
- package/development/components/SimulatedInsets/index.d.ts.map +1 -0
- package/development/components/SimulatedInsets/types.d.ts +15 -0
- package/development/components/SimulatedInsets/types.d.ts.map +1 -0
- package/development/components/SimulatedInsets/types.js +1 -0
- package/development/components/index.d.ts +3 -0
- package/development/components/index.d.ts.map +1 -0
- package/development/constants/actionTypes.d.ts +6 -0
- package/development/constants/actionTypes.d.ts.map +1 -0
- package/development/constants/actionTypes.js +2 -1
- package/development/constants/index.d.ts +2 -0
- package/development/constants/index.d.ts.map +1 -0
- package/development/reducers/index.d.ts +24 -0
- package/development/reducers/index.d.ts.map +1 -0
- package/development/reducers/settings.d.ts +17 -0
- package/development/reducers/settings.d.ts.map +1 -0
- package/development/reducers/settings.js +48 -35
- package/development/reducers/storage.d.ts +17 -0
- package/development/reducers/storage.d.ts.map +1 -0
- package/development/reducers/storage.js +24 -24
- package/development/selectors/index.d.ts +3 -0
- package/development/selectors/index.d.ts.map +1 -0
- package/development/selectors/settings.d.ts +52 -0
- package/development/selectors/settings.d.ts.map +1 -0
- package/development/selectors/settings.js +21 -11
- package/development/selectors/storage.d.ts +10 -0
- package/development/selectors/storage.d.ts.map +1 -0
- package/development/selectors/storage.js +6 -18
- package/development/streams/index.d.ts +2 -0
- package/development/streams/index.d.ts.map +1 -0
- package/development/streams/insets.d.ts +8 -0
- package/development/streams/insets.d.ts.map +1 -0
- package/development/streams/insets.js +1 -3
- package/development/subscriptions/index.d.ts +15 -0
- package/development/subscriptions/index.d.ts.map +1 -0
- package/development/subscriptions/index.js +6 -2
- package/development/types/development.d.ts +68 -0
- package/development/types/development.d.ts.map +1 -0
- package/development/types/development.js +1 -0
- package/development/types/index.d.ts +2 -0
- package/development/types/index.d.ts.map +1 -0
- package/development/types/index.js +1 -0
- package/favorites/components/FavoriteButtonWide/FavoriteButtonWide.js +7 -17
- package/favorites/components/Item/Item.d.ts +1 -1
- package/favorites/components/Item/Item.d.ts.map +1 -1
- package/favorites/components/Item/Item.js +2 -5
- package/favorites/components/List/List.d.ts +1 -1
- package/favorites/components/List/List.d.ts.map +1 -1
- package/favorites/components/List/List.js +0 -1
- package/favorites/components/List/ListContent.js +4 -5
- package/favorites/components/Lists/Lists.js +4 -5
- package/filter/components/FilterItem/index.js +12 -2
- package/filter/components/FilterPageContent/components/ApplyButton/index.d.ts +21 -0
- package/filter/components/FilterPageContent/components/ApplyButton/index.d.ts.map +1 -0
- package/filter/components/FilterPageContent/components/ApplyButton/index.js +27 -56
- package/filter/components/FilterPageContent/components/FilterButtonBar/index.d.ts +8 -0
- package/filter/components/FilterPageContent/components/FilterButtonBar/index.d.ts.map +1 -0
- package/filter/components/FilterPageContent/components/FilterButtonBar/index.js +63 -0
- package/filter/components/FilterPageContent/components/ResetButton/index.d.ts +17 -0
- package/filter/components/FilterPageContent/components/ResetButton/index.d.ts.map +1 -0
- package/filter/components/FilterPageContent/components/ResetButton/index.js +26 -46
- package/filter/components/FilterPageContent/components/Selector/components/Selected/index.d.ts +19 -0
- package/filter/components/FilterPageContent/components/Selector/components/Selected/index.d.ts.map +1 -0
- package/filter/components/FilterPageContent/components/Selector/components/Selected/index.js +25 -46
- package/filter/components/FilterPageContent/components/Selector/components/Toggle/index.d.ts +14 -0
- package/filter/components/FilterPageContent/components/Selector/components/Toggle/index.d.ts.map +1 -0
- package/filter/components/FilterPageContent/components/Selector/components/Toggle/index.js +13 -46
- package/filter/components/FilterPageContent/components/Selector/components/ValueCheckbox/index.d.ts +25 -0
- package/filter/components/FilterPageContent/components/Selector/components/ValueCheckbox/index.d.ts.map +1 -0
- package/filter/components/FilterPageContent/components/Selector/components/ValueCheckbox/index.js +77 -0
- package/filter/components/FilterPageContent/components/Selector/index.d.ts +43 -0
- package/filter/components/FilterPageContent/components/Selector/index.d.ts.map +1 -0
- package/filter/components/FilterPageContent/components/Selector/index.js +52 -40
- package/filter/components/FilterPageContent/index.d.ts +16 -0
- package/filter/components/FilterPageContent/index.d.ts.map +1 -0
- package/filter/components/FilterPageContent/index.js +51 -57
- package/filter/components/PriceSlider/components/Label/index.js +86 -94
- package/filter/components/PriceSlider/index.js +43 -30
- package/filter/helpers/buildFilterParamsForFetchFiltersRequest.d.ts +8 -0
- package/filter/helpers/buildFilterParamsForFetchFiltersRequest.d.ts.map +1 -0
- package/filter/helpers/buildInitialFilters.d.ts +7 -0
- package/filter/helpers/buildInitialFilters.d.ts.map +1 -0
- package/filter/helpers/buildUpdatedFilters.d.ts +7 -0
- package/filter/helpers/buildUpdatedFilters.d.ts.map +1 -0
- package/filter/helpers/index.d.ts +5 -0
- package/filter/helpers/index.d.ts.map +1 -0
- package/filter/helpers/translateFilterLabel.d.ts +8 -0
- package/filter/helpers/translateFilterLabel.d.ts.map +1 -0
- package/filter/providers/FilterPageProvider.context.d.ts +157 -0
- package/filter/providers/FilterPageProvider.context.d.ts.map +1 -0
- package/filter/providers/FilterPageProvider.d.ts +24 -0
- package/filter/providers/FilterPageProvider.d.ts.map +1 -0
- package/filter/providers/FilterPageProvider.js +77 -132
- package/locations/components/ChangeLocationButton/ChangeLocationButton.js +10 -14
- package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotDialog.js +4 -8
- package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcher.js +1 -1
- package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherBar.js +8 -13
- package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherDefault.js +10 -10
- package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherBar.js +12 -16
- package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherDefault.js +9 -10
- package/locations/components/ReserveForm/ReserveForm.js +6 -7
- package/locations/components/StoreDetails/components/GetDirectionsButton.js +2 -4
- package/locations/components/StoreDetails/components/StoreDetails.js +5 -10
- package/locations/components/StoreDetails/components/StoresNearbyListItem.js +13 -21
- package/locations/components/StoreFinder/StoreFinderSelectLocationButton.js +5 -11
- package/locations/components/StoreFinder/StoreFinderStoreInfoButton.js +5 -11
- package/locations/components/StoreList/StoreListProduct.js +2 -3
- package/locations/components/StoreList/StoreListSearch.js +1 -0
- package/locations/components/StoreList/StoreSelectLocationButton.js +5 -11
- package/login/components/ForgotPassword/ForgotPassword.js +11 -23
- package/mocks/date.js +31 -0
- package/mocks/index.js +3 -0
- package/mocks/pipelineRequest.js +1 -0
- package/mocks/subscriptions.js +1 -0
- package/orders/components/OrderDetails/OrderDetailsAuthenticate.js +5 -7
- package/orders/components/OrderHistory/OrderHistoryList.d.ts.map +1 -1
- package/orders/components/OrderHistory/OrderHistoryList.js +8 -9
- package/orders/components/OrderHistory/OrderHistoryTable.d.ts.map +1 -1
- package/orders/components/OrderHistory/OrderHistoryTable.js +4 -0
- package/package.json +9 -9
- package/page/components/NotFound.d.ts +7 -0
- package/page/components/NotFound.d.ts.map +1 -0
- package/page/components/NotFound.js +8 -8
- package/page/components/ResponsiveWidgetImage/ResponsiveWidgetImage.d.ts +52 -0
- package/page/components/ResponsiveWidgetImage/ResponsiveWidgetImage.d.ts.map +1 -0
- package/page/components/ResponsiveWidgetImage/ResponsiveWidgetImage.js +4 -4
- package/page/components/ResponsiveWidgetImage/index.d.ts +2 -0
- package/page/components/ResponsiveWidgetImage/index.d.ts.map +1 -0
- package/page/components/WidgetRichText/WidgetRichText.d.ts +25 -0
- package/page/components/WidgetRichText/WidgetRichText.d.ts.map +1 -0
- package/page/components/WidgetRichText/index.d.ts +2 -0
- package/page/components/WidgetRichText/index.d.ts.map +1 -0
- package/page/components/WidgetVideo/WidgetVideo.d.ts +43 -0
- package/page/components/WidgetVideo/WidgetVideo.d.ts.map +1 -0
- package/page/components/WidgetVideo/WidgetVideo.js +33 -39
- package/page/components/WidgetVideo/index.d.ts +2 -0
- package/page/components/WidgetVideo/index.d.ts.map +1 -0
- package/page/components/Widgets/Overlay.d.ts +17 -0
- package/page/components/Widgets/Overlay.d.ts.map +1 -0
- package/page/components/Widgets/Overlay.js +24 -38
- package/page/components/Widgets/Tooltip.d.ts +20 -0
- package/page/components/Widgets/Tooltip.d.ts.map +1 -0
- package/page/components/Widgets/Tooltip.js +6 -10
- package/page/components/Widgets/Widget.d.ts +32 -0
- package/page/components/Widgets/Widget.d.ts.map +1 -0
- package/page/components/Widgets/Widget.js +14 -28
- package/page/components/Widgets/WidgetContext.d.ts +32 -38
- package/page/components/Widgets/WidgetContext.d.ts.map +1 -0
- package/page/components/Widgets/WidgetContext.js +2 -8
- package/page/components/Widgets/WidgetProvider.d.ts +29 -0
- package/page/components/Widgets/WidgetProvider.d.ts.map +1 -0
- package/page/components/Widgets/WidgetProvider.js +8 -15
- package/page/components/Widgets/Widgets.d.ts +16 -0
- package/page/components/Widgets/Widgets.d.ts.map +1 -0
- package/page/components/Widgets/Widgets.js +5 -12
- package/page/components/Widgets/WidgetsPreviewContext.d.ts +21 -0
- package/page/components/Widgets/WidgetsPreviewContext.d.ts.map +1 -0
- package/page/components/Widgets/WidgetsPreviewContext.js +5 -7
- package/page/components/Widgets/WidgetsPreviewProvider.d.ts +18 -0
- package/page/components/Widgets/WidgetsPreviewProvider.d.ts.map +1 -0
- package/page/components/Widgets/WidgetsPreviewProvider.js +5 -6
- package/page/components/Widgets/constants.d.ts +18 -0
- package/page/components/Widgets/constants.d.ts.map +1 -0
- package/page/components/Widgets/constants.js +24 -2
- package/page/components/Widgets/events.d.ts +38 -0
- package/page/components/Widgets/events.d.ts.map +1 -0
- package/page/components/Widgets/events.js +8 -12
- package/page/components/Widgets/helpers.d.ts +69 -0
- package/page/components/Widgets/helpers.d.ts.map +1 -0
- package/page/components/Widgets/helpers.js +58 -13
- package/page/components/Widgets/hooks.d.ts +13 -0
- package/page/components/Widgets/hooks.d.ts.map +1 -0
- package/page/components/Widgets/hooks.js +18 -12
- package/page/components/Widgets/index.d.ts +3 -0
- package/page/components/Widgets/index.d.ts.map +1 -0
- package/page/components/Widgets/types.d.ts +138 -114
- package/page/components/Widgets/types.d.ts.map +1 -0
- package/page/components/Widgets/types.js +1 -0
- package/page/components/index.d.ts +5 -0
- package/page/components/index.d.ts.map +1 -0
- package/page/constants/actionTypes.d.ts +4 -0
- package/page/constants/actionTypes.d.ts.map +1 -0
- package/page/constants/index.d.ts +25 -0
- package/page/constants/index.d.ts.map +1 -0
- package/page/constants/index.js +5 -3
- package/page/helpers/index.d.ts +70 -62
- package/page/helpers/index.d.ts.map +1 -0
- package/page/helpers/index.js +31 -29
- package/page/hooks/index.d.ts +54 -53
- package/page/hooks/index.d.ts.map +1 -0
- package/page/hooks/index.js +20 -15
- package/page/selectors/index.d.ts +32 -0
- package/page/selectors/index.d.ts.map +1 -0
- package/page/widget.config.schema.json +54 -0
- package/page/widgets/Button/Button.js +2 -3
- package/page/widgets/CategoryList/CategoryList.js +2 -1
- package/page/widgets/HeroBanner/config.json +6 -0
- package/page/widgets/Image/config.json +6 -0
- package/page/widgets/ImageRow/config.json +6 -0
- package/page/widgets/ImageSlider/config.json +6 -0
- package/page/widgets/ImageSlider/hooks.js +4 -2
- package/page/widgets/NestedCategoryFilter/NestedCategoryFilter.js +8 -8
- package/page/widgets/ProductList/ProductList.js +18 -14
- package/page/widgets/ProductSlider/ProductSlider.js +1 -15
- package/page/widgets/README.md +92 -0
- package/page/widgets/Video/Video.d.ts +6 -0
- package/page/widgets/Video/Video.d.ts.map +1 -0
- package/page/widgets/Video/Video.js +0 -2
- package/page/widgets/Video/config.json +6 -0
- package/page/widgets/Video/hooks.d.ts +53 -0
- package/page/widgets/Video/hooks.d.ts.map +1 -0
- package/page/widgets/Video/hooks.js +4 -12
- package/page/widgets/Video/index.d.ts +2 -0
- package/page/widgets/Video/index.d.ts.map +1 -0
- package/product/components/Description/index.js +0 -2
- package/product/components/FilterBar/components/Content/components/FilterButton/index.js +38 -46
- package/product/components/FilterBar/components/Content/components/FilterChips/components/FilterChip/index.d.ts +38 -0
- package/product/components/FilterBar/components/Content/components/FilterChips/components/FilterChip/index.d.ts.map +1 -0
- package/product/components/FilterBar/components/Content/components/FilterChips/components/FilterChip/index.js +88 -0
- package/product/components/FilterBar/components/Content/components/FilterChips/index.js +54 -35
- package/product/components/FilterBar/components/Content/components/Sort/index.js +1 -1
- package/product/components/FilterBar/components/Content/index.js +7 -3
- package/product/components/FilterBar/index.js +11 -22
- package/product/components/Media/FeaturedMedia.js +7 -1
- package/product/components/Media/MediaImage.js +24 -23
- package/product/components/Media/MediaPlaceholder.js +4 -7
- package/product/components/MediaSlider/components/MediaImage/index.js +6 -2
- package/product/components/MediaSlider/constants.js +1 -12
- package/product/components/OrderQuantityHint/index.js +16 -1
- package/product/components/ProductCard/index.js +36 -23
- package/product/components/ProductFilters/index.js +2 -6
- package/product/components/ProductGrid/components/Item/components/ItemDetails/index.js +12 -4
- package/product/components/ProductGrid/components/Item/components/ItemFavoritesButton/index.js +0 -1
- package/product/components/ProductGrid/components/Item/components/ItemImage/index.js +3 -6
- package/product/components/ProductGrid/components/Item/components/ItemName/index.js +6 -1
- package/product/components/ProductGrid/components/Item/index.js +10 -2
- package/product/components/ProductGrid/components/Layout/index.js +19 -4
- package/product/components/ProductGrid/constants.d.ts +2 -0
- package/product/components/ProductGrid/constants.d.ts.map +1 -0
- package/product/components/ProductGrid/constants.js +1 -0
- package/product/components/ProductGrid/hooks.d.ts +11 -0
- package/product/components/ProductGrid/hooks.d.ts.map +1 -0
- package/product/components/ProductGrid/hooks.js +48 -0
- package/product/components/ProductGrid/index.js +3 -6
- package/product/components/ProductGridPrice/index.js +0 -6
- package/product/components/ProductImage/ProductImage.d.ts +42 -0
- package/product/components/ProductImage/ProductImage.d.ts.map +1 -0
- package/product/components/ProductImage/ProductImage.js +158 -0
- package/product/components/ProductImage/ProductImagePlaceholder.d.ts +23 -0
- package/product/components/ProductImage/ProductImagePlaceholder.d.ts.map +1 -0
- package/product/components/ProductImage/ProductImagePlaceholder.js +12 -17
- package/product/components/ProductImage/constants.d.ts +7 -0
- package/product/components/ProductImage/constants.d.ts.map +1 -0
- package/product/components/ProductImage/constants.js +6 -0
- package/product/components/ProductImage/hooks.d.ts +8 -0
- package/product/components/ProductImage/hooks.d.ts.map +1 -0
- package/product/components/ProductImage/hooks.js +32 -0
- package/product/components/ProductImage/index.d.ts +3 -0
- package/product/components/ProductImage/index.d.ts.map +1 -0
- package/product/components/ProductImage/index.js +1 -201
- package/product/components/ProductList/components/Item/index.js +5 -3
- package/product/components/ProductList/components/Layout/index.js +8 -20
- package/product/components/ProductRatingStars/ProductRatingStars.d.ts.map +1 -1
- package/product/components/ProductRatingStars/ProductRatingStars.js +4 -17
- package/product/components/ProductSlider/constants.d.ts +3 -0
- package/product/components/ProductSlider/constants.d.ts.map +1 -0
- package/product/components/ProductSlider/constants.js +2 -0
- package/product/components/ProductSlider/hooks.d.ts +7 -0
- package/product/components/ProductSlider/hooks.d.ts.map +1 -0
- package/product/components/ProductSlider/hooks.js +40 -0
- package/product/components/ProductSlider/index.js +8 -8
- package/product/components/Rating/index.js +12 -21
- package/product/components/RelationsSlider/RelationsSliderContent.js +3 -2
- package/product/components/RelationsSlider/constants.d.ts +3 -0
- package/product/components/RelationsSlider/constants.d.ts.map +1 -0
- package/product/components/RelationsSlider/constants.js +2 -1
- package/product/components/RelationsSlider/hooks.d.ts +6 -0
- package/product/components/RelationsSlider/hooks.d.ts.map +1 -0
- package/product/components/RelationsSlider/hooks.js +34 -0
- package/product/components/UnitQuantityPicker/UnitQuantityPicker.d.ts.map +1 -1
- package/product/components/UnitQuantityPicker/UnitQuantityPicker.js +15 -33
- package/product/helpers/index.js +29 -11
- package/product/hooks/index.js +3 -1
- package/product/hooks/useLoadProductImage.js +4 -2
- package/product/hooks/useShowEmptyRatingStars.d.ts +7 -0
- package/product/hooks/useShowEmptyRatingStars.d.ts.map +1 -0
- package/product/hooks/useShowEmptyRatingStars.js +21 -0
- package/product/index.js +0 -1
- package/product/selectors/mocks/productProperties.mock.js +49 -0
- package/push-opt-in/components/PushOptInModal/index.js +4 -4
- package/registration/components/Registration/RegistrationFormActions.js +4 -4
- package/reviews/components/Reviews/components/AllReviewsLink/index.js +6 -6
- package/reviews/components/Reviews/components/Header/components/WriteReviewLink/index.js +4 -3
- package/settings/action-creators/appSettings.d.ts +3 -3
- package/settings/action-creators/appSettings.d.ts.map +1 -1
- package/settings/constants/appSettings.d.ts +3 -0
- package/settings/constants/appSettings.d.ts.map +1 -1
- package/settings/constants/appSettings.js +6 -1
- package/settings/constants/imageSettings.d.ts +52 -0
- package/settings/constants/imageSettings.d.ts.map +1 -0
- package/settings/constants/imageSettings.js +69 -0
- package/settings/helpers/index.d.ts +3 -0
- package/settings/helpers/index.d.ts.map +1 -0
- package/settings/helpers/index.js +1 -0
- package/settings/helpers/resolveImageSettings.d.ts +70 -0
- package/settings/helpers/resolveImageSettings.d.ts.map +1 -0
- package/settings/helpers/resolveImageSettings.js +171 -0
- package/settings/helpers/toImageQuality.d.ts +7 -0
- package/settings/helpers/toImageQuality.d.ts.map +1 -0
- package/settings/helpers/toImageQuality.js +44 -0
- package/settings/helpers/toThumborColor.d.ts +15 -0
- package/settings/helpers/toThumborColor.d.ts.map +1 -0
- package/settings/helpers/toThumborColor.js +51 -0
- package/settings/hooks/index.d.ts +2 -0
- package/settings/hooks/index.d.ts.map +1 -0
- package/settings/hooks/index.js +1 -0
- package/settings/hooks/useImageSettings.d.ts +28 -0
- package/settings/hooks/useImageSettings.d.ts.map +1 -0
- package/settings/hooks/useImageSettings.js +39 -0
- package/settings/reducers/appSettings.d.ts.map +1 -1
- package/settings/reducers/appSettings.js +123 -8
- package/settings/reducers/index.d.ts +3 -3
- package/settings/selectors/appSettings.d.ts +122 -1
- package/settings/selectors/appSettings.d.ts.map +1 -1
- package/settings/selectors/appSettings.js +80 -1
- package/settings/types/appSettings.d.ts +279 -0
- package/settings/types/appSettings.d.ts.map +1 -1
- package/settings/types/appSettings.js +133 -1
- package/styles/helpers/index.d.ts +2 -0
- package/styles/helpers/index.js +2 -0
- package/styles/helpers/loadFontCss.d.ts +22 -0
- package/styles/helpers/loadFontCss.d.ts.map +1 -0
- package/styles/helpers/loadFontCss.js +138 -0
- package/styles/helpers/loadThemeCss.d.ts +14 -0
- package/styles/helpers/loadThemeCss.d.ts.map +1 -0
- package/styles/helpers/loadThemeCss.js +123 -0
- package/styles/index.d.ts +1 -1
- package/styles/index.d.ts.map +1 -1
- package/styles/reset/root.js +23 -4
- package/styles/reset/typographyCustomProps.d.ts +12 -0
- package/styles/reset/typographyCustomProps.d.ts.map +1 -0
- package/styles/reset/typographyCustomProps.js +11 -0
- package/styles/theme/createDefaultThemeOptions/index.d.ts +11 -1
- package/styles/theme/createDefaultThemeOptions/index.d.ts.map +1 -1
- package/styles/theme/createDefaultThemeOptions/index.js +129 -10
- package/styles/theme/createTheme/createComponents.types.d.ts +118 -4
- package/styles/theme/createTheme/createComponents.types.d.ts.map +1 -1
- package/styles/theme/createTheme/createComponents.types.js +122 -8
- package/styles/theme/createTheme/createCssVarsForColorSchemeThemes.d.ts.map +1 -1
- package/styles/theme/createTheme/createCssVarsForColorSchemeThemes.js +13 -3
- package/styles/theme/createTheme/createPalette.types.d.ts +5 -0
- package/styles/theme/createTheme/createPalette.types.d.ts.map +1 -1
- package/styles/theme/createTheme/createPalette.types.js +7 -2
- package/styles/theme/createTheme/createShape.d.ts +3 -0
- package/styles/theme/createTheme/createShape.d.ts.map +1 -1
- package/styles/theme/createTheme/createThemeFromColorScheme.d.ts +3 -1
- package/styles/theme/createTheme/createThemeFromColorScheme.d.ts.map +1 -1
- package/styles/theme/createTheme/createThemeFromColorScheme.js +6 -3
- package/styles/theme/createTheme/createTypography.d.ts +4 -2
- package/styles/theme/createTheme/createTypography.js +60 -18
- package/styles/theme/createTheme/helpers/cssVarsParser.d.ts.map +1 -1
- package/styles/theme/createTheme/helpers/cssVarsParser.js +10 -3
- package/styles/theme/createTheme/index.d.ts +2 -1
- package/styles/theme/createTheme/index.d.ts.map +1 -1
- package/styles/theme/createTheme/index.js +3 -1
- package/styles/theme/createTheme/shadows.d.ts +11 -1
- package/styles/theme/createTheme/shadows.d.ts.map +1 -1
- package/styles/theme/createTheme/shadows.js +41 -7
- package/styles/theme/createTheme/types.d.ts +16 -5
- package/styles/theme/createTheme/types.d.ts.map +1 -1
- package/styles/theme/createTheme/types.js +8 -3
- package/styles/theme/hooks/useColorScheme.d.ts +4 -3
- package/styles/theme/hooks/useColorScheme.d.ts.map +1 -1
- package/styles/theme/hooks/useColorScheme.js +4 -3
- package/styles/theme/hooks/useMediaQuery.d.ts +7 -0
- package/styles/theme/hooks/useMediaQuery.d.ts.map +1 -1
- package/styles/theme/hooks/useMediaQuery.js +5 -5
- package/styles/theme/hooks/useTheme.js +1 -1
- package/styles/theme/index.d.ts +4 -1
- package/styles/theme/index.d.ts.map +1 -1
- package/styles/theme/providers/ColorSchemeContext.d.ts +40 -0
- package/styles/theme/providers/ColorSchemeContext.d.ts.map +1 -0
- package/styles/theme/providers/ColorSchemeContext.js +14 -0
- package/styles/theme/providers/ThemeContext.d.ts +3 -0
- package/styles/theme/providers/ThemeContext.d.ts.map +1 -0
- package/styles/theme/providers/ThemeContext.js +2 -0
- package/styles/theme/providers/ThemeProvider.d.ts +3 -13
- package/styles/theme/providers/ThemeProvider.d.ts.map +1 -1
- package/styles/theme/providers/ThemeProvider.js +86 -13
- package/styles/theme/utils/color.d.ts +12 -12
- package/styles/theme/utils/color.d.ts.map +1 -1
- package/tracking/components/CookieConsentModal/index.js +3 -4
- package/tracking/components/PrivacySettings/index.js +3 -3
- package/admin-preview/detection.d.ts.map +0 -1
- package/admin-preview/detection.js +0 -166
- package/cart/components/PaymentBar/PaymentBarReserveButton.connector.js +0 -6
- package/cart/components/PaymentBar/PaymentBarReserveButton.js +0 -71
- package/components/ChipLayout/spec.js +0 -41
- package/components/Logo/spec.js +0 -12
- package/components/NavigationHandler/spec.js +0 -84
- package/components/Picker/spec.js +0 -94
- package/components/PickerUtilize/spec.js +0 -35
- package/components/RangeSlider/spec.js +0 -190
- package/components/SheetList/components/Item/spec.js +0 -101
- package/components/SheetList/spec.js +0 -43
- package/components/TimeBoundary/spec.js +0 -83
- package/filter/components/FilterItem/spec.js +0 -14
- package/filter/components/FilterPageContent/components/ApplyButton/spec.js +0 -46
- package/filter/components/FilterPageContent/components/ResetButton/spec.js +0 -29
- package/filter/components/FilterPageContent/components/Selector/components/Selected/spec.js +0 -26
- package/filter/components/FilterPageContent/components/Selector/components/Toggle/spec.js +0 -34
- package/filter/components/FilterPageContent/components/Selector/components/ValueButton/index.js +0 -69
- package/filter/components/FilterPageContent/components/Selector/components/ValueButton/spec.js +0 -32
- package/filter/components/FilterPageContent/components/Selector/spec.js +0 -33
- package/filter/components/PriceSlider/components/Label/spec.js +0 -26
- package/filter/components/PriceSlider/spec.js +0 -30
- package/locations/components/StoreFinder/StoreFinderGetDirectionsButton.connector.js +0 -16
- package/locations/components/StoreFinder/StoreFinderGetDirectionsButton.js +0 -52
- package/product/collections/index.js +0 -1
- package/product/components/EffectivityDates/constants.d.ts +0 -3
- package/product/components/EffectivityDates/constants.d.ts.map +0 -1
- package/product/components/EffectivityDates/helpers.d.ts +0 -6
- package/product/components/EffectivityDates/helpers.d.ts.map +0 -1
- package/product/components/FilterBar/components/Content/components/FilterChips/connector.js +0 -22
- package/product/components/FilterBar/components/Content/spec.js +0 -136
- package/product/components/Header/Shipping/spec.js +0 -36
- package/product/components/Header/Tiers/components/Tier/spec.js +0 -48
- package/product/components/Header/Tiers/spec.js +0 -64
- package/product/components/Media/helpers.d.ts +0 -2
- package/product/components/Media/helpers.d.ts.map +0 -1
- package/product/components/Options/components/Content/spec.js +0 -73
- package/product/components/Options/components/TextOption/components/OptionInfo/spec.js +0 -72
- package/product/components/ProductDiscountBadge/spec.js +0 -58
- package/product/components/ProductGrid/components/Item/components/ItemDetails/spec.js +0 -73
- package/product/components/ProductGrid/components/Item/components/ItemFavoritesButton/spec.js +0 -33
- package/product/components/ProductGrid/components/Item/components/ItemImage/spec.js +0 -16
- package/product/components/ProductGrid/components/Item/components/ItemName/spec.js +0 -21
- package/product/components/ProductGrid/components/Item/components/ItemPrice/spec.js +0 -37
- package/product/components/ProductGrid/spec.js +0 -52
- package/product/components/ProductImage/connector.js +0 -12
- package/product/components/ProductImage/spec.js +0 -87
- package/product/components/ProductSlider/spec.js +0 -37
- package/product/components/Rating/connector.js +0 -26
- package/product/components/Rating/spec.js +0 -58
- package/product/helpers/index.d.ts +0 -13
- package/product/helpers/index.d.ts.map +0 -1
- package/product/helpers/redirects.d.ts +0 -2
- package/product/helpers/redirects.d.ts.map +0 -1
- package/product/selectors/helpers/filterProperties.d.ts +0 -8
- package/product/selectors/helpers/filterProperties.d.ts.map +0 -1
- package/product/selectors/helpers/index.d.ts +0 -3
- package/product/selectors/helpers/index.d.ts.map +0 -1
- package/product/selectors/helpers/wrapMemoizedSelector.d.ts +0 -2
- package/product/selectors/helpers/wrapMemoizedSelector.d.ts.map +0 -1
- package/product/selectors/product.d.ts +0 -112
- package/product/selectors/product.d.ts.map +0 -1
- package/reviews/components/Reviews/components/Header/components/WriteReviewLink/spec.js +0 -52
- package/reviews/components/Reviews/components/Header/spec.js +0 -78
- package/reviews/components/Reviews/components/List/spec.js +0 -108
- package/reviews/components/Reviews/components/RatingCount/spec.js +0 -38
- package/reviews/components/Reviews/spec.js +0 -101
- package/tsconfig.build.json +0 -26
- package/tsconfig.json +0 -19
|
@@ -26,8 +26,8 @@ const useStyles = makeStyles()((theme, _params, classes) => ({
|
|
|
26
26
|
},
|
|
27
27
|
image: {
|
|
28
28
|
background: theme.palette.background.emphasized,
|
|
29
|
+
borderRadius: theme.shape.borderRadius,
|
|
29
30
|
marginBottom: theme.spacing(1.25),
|
|
30
|
-
height: leftColumnWidth,
|
|
31
31
|
width: leftColumnWidth
|
|
32
32
|
},
|
|
33
33
|
content: {
|
|
@@ -218,6 +218,7 @@ export function CartItemProductLayout() {
|
|
|
218
218
|
portalName: CART_ITEM_IMAGE,
|
|
219
219
|
portalProps: portalProps,
|
|
220
220
|
children: /*#__PURE__*/_jsx(ProductImage, {
|
|
221
|
+
context: "list",
|
|
221
222
|
src: product.featuredImageBaseUrl || product.featuredImageUrl
|
|
222
223
|
})
|
|
223
224
|
})
|
|
@@ -22,7 +22,6 @@ const useStyles = makeStyles()((theme, _params, classes) => ({
|
|
|
22
22
|
},
|
|
23
23
|
imageColumn: {
|
|
24
24
|
width: 120,
|
|
25
|
-
height: 120,
|
|
26
25
|
marginRight: theme.spacing(1),
|
|
27
26
|
flexShrink: 0,
|
|
28
27
|
flexGrow: 0
|
|
@@ -163,7 +162,8 @@ const CartItemProductLayoutWide = () => {
|
|
|
163
162
|
children: [/*#__PURE__*/_jsx("div", {
|
|
164
163
|
className: classes.imageColumn,
|
|
165
164
|
children: /*#__PURE__*/_jsx(ProductImage, {
|
|
166
|
-
src: product.featuredImageBaseUrl || product.featuredImageUrl
|
|
165
|
+
src: product.featuredImageBaseUrl || product.featuredImageUrl,
|
|
166
|
+
context: "list"
|
|
167
167
|
})
|
|
168
168
|
}), /*#__PURE__*/_jsxs("div", {
|
|
169
169
|
className: classes.detailsColumn,
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { I18n } from '@shopgate/engage/components';
|
|
3
|
+
import { Button } from '@shopgate/engage/components/v2';
|
|
3
4
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
4
5
|
import { useCartItemProduct } from "./CartItem.hooks";
|
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
7
|
const useStyles = makeStyles()(theme => ({
|
|
7
8
|
button: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
padding: `${theme.spacing(2, 0)} !important`,
|
|
11
|
-
' *': {
|
|
12
|
-
padding: '0 !important'
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
ripple: {
|
|
16
|
-
padding: 0
|
|
9
|
+
marginTop: theme.spacing(2),
|
|
10
|
+
textTransform: 'none'
|
|
17
11
|
}
|
|
18
12
|
}));
|
|
19
13
|
|
|
@@ -27,12 +21,11 @@ const CartItemProductLayoutWideRemoveItem = () => {
|
|
|
27
21
|
const {
|
|
28
22
|
handleRemove
|
|
29
23
|
} = useCartItemProduct();
|
|
30
|
-
return /*#__PURE__*/_jsx(
|
|
24
|
+
return /*#__PURE__*/_jsx(Button, {
|
|
25
|
+
variant: "text",
|
|
26
|
+
color: "primary",
|
|
31
27
|
onClick: handleRemove,
|
|
32
28
|
className: classes.button,
|
|
33
|
-
rippleClassName: classes.ripple,
|
|
34
|
-
type: "secondary",
|
|
35
|
-
flat: true,
|
|
36
29
|
children: /*#__PURE__*/_jsx(I18n.Text, {
|
|
37
30
|
string: "cart.remove_item"
|
|
38
31
|
})
|
|
@@ -7,14 +7,15 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
7
7
|
const useStyles = makeStyles()(theme => ({
|
|
8
8
|
inputStyle: {
|
|
9
9
|
border: 'none',
|
|
10
|
-
background: theme.
|
|
10
|
+
background: theme.components.input.background,
|
|
11
|
+
color: theme.components.input.text,
|
|
11
12
|
display: 'block',
|
|
12
13
|
fontSize: theme.typography.caption.fontSize,
|
|
13
14
|
textAlign: 'center',
|
|
14
15
|
padding: theme.spacing(0.75, 1),
|
|
15
16
|
outline: 0,
|
|
16
17
|
width: '100%',
|
|
17
|
-
borderRadius:
|
|
18
|
+
borderRadius: theme.shape.borderRadius
|
|
18
19
|
}
|
|
19
20
|
}));
|
|
20
21
|
|
|
@@ -1,29 +1,13 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { I18n } from '@shopgate/engage/components';
|
|
3
|
+
import { Button } from '@shopgate/engage/components/v2';
|
|
4
4
|
import { useCartItem } from "../CartItem";
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
const useStyles = makeStyles()(theme => ({
|
|
7
|
-
button: {
|
|
8
|
-
fontSize: `${theme.typography.body2.fontSize} !important`,
|
|
9
|
-
letterSpacing: '0.05em',
|
|
10
|
-
padding: '0px !important',
|
|
11
|
-
' *': {
|
|
12
|
-
padding: '0px !important'
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
ripple: {
|
|
16
|
-
padding: 0
|
|
17
|
-
}
|
|
18
|
-
}));
|
|
19
5
|
|
|
20
6
|
/**
|
|
21
7
|
* @returns {JSX}
|
|
22
8
|
*/
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
10
|
const CartItemCardReservationLabelChangeStore = () => {
|
|
24
|
-
const {
|
|
25
|
-
classes
|
|
26
|
-
} = useStyles();
|
|
27
11
|
const {
|
|
28
12
|
invokeFulfillmentAction,
|
|
29
13
|
cartItem
|
|
@@ -39,12 +23,10 @@ const CartItemCardReservationLabelChangeStore = () => {
|
|
|
39
23
|
} = cartItem;
|
|
40
24
|
invokeFulfillmentAction('changeLocation', method);
|
|
41
25
|
}, [cartItem, invokeFulfillmentAction]);
|
|
42
|
-
return /*#__PURE__*/_jsx(
|
|
26
|
+
return /*#__PURE__*/_jsx(Button, {
|
|
27
|
+
variant: "link",
|
|
28
|
+
color: "primary",
|
|
43
29
|
onClick: handleChangeLocationClick,
|
|
44
|
-
className: classes.button,
|
|
45
|
-
rippleClassName: classes.ripple,
|
|
46
|
-
type: "secondary",
|
|
47
|
-
flat: true,
|
|
48
30
|
children: /*#__PURE__*/_jsx(I18n.Text, {
|
|
49
31
|
string: "locations.change_location"
|
|
50
32
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ResponsiveContainer, Card } from '@shopgate/engage/components';
|
|
3
3
|
import { FulfillmentSlotSwitcher } from '@shopgate/engage/locations';
|
|
4
4
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
@@ -14,15 +14,11 @@ const useStyles = makeStyles()(theme => ({
|
|
|
14
14
|
marginBottom: theme.spacing(-1.5)
|
|
15
15
|
},
|
|
16
16
|
card: {
|
|
17
|
-
background: theme.palette.background.surface,
|
|
18
17
|
marginBottom: theme.spacing(1.5),
|
|
19
18
|
':last-of-type': {
|
|
20
19
|
marginBottom: 0
|
|
21
20
|
},
|
|
22
|
-
|
|
23
|
-
boxSizing: 'border-box',
|
|
24
|
-
boxShadow: '0px 4px 2px rgba(0, 0, 0, 0.05)',
|
|
25
|
-
borderRadius: 5
|
|
21
|
+
boxSizing: 'border-box'
|
|
26
22
|
}
|
|
27
23
|
}));
|
|
28
24
|
|
|
@@ -54,7 +50,8 @@ const CartItems = ({
|
|
|
54
50
|
isDirectShipOnly
|
|
55
51
|
}) => {
|
|
56
52
|
const {
|
|
57
|
-
classes
|
|
53
|
+
classes,
|
|
54
|
+
cx
|
|
58
55
|
} = useStyles();
|
|
59
56
|
if (!cartItems || cartItems.length === 0) {
|
|
60
57
|
return null;
|
|
@@ -69,8 +66,8 @@ const CartItems = ({
|
|
|
69
66
|
isDirectShipOnly: isDirectShipOnly,
|
|
70
67
|
isCheckoutConfirmation: isCheckoutConfirmation
|
|
71
68
|
})
|
|
72
|
-
}), /*#__PURE__*/_jsxs(
|
|
73
|
-
className: classes.items,
|
|
69
|
+
}), /*#__PURE__*/_jsxs("ul", {
|
|
70
|
+
className: cx('ui-shared__card-list', classes.items),
|
|
74
71
|
children: [!isOrderDetails ? /*#__PURE__*/_jsx(ResponsiveContainer, {
|
|
75
72
|
appAlways: true,
|
|
76
73
|
breakpoint: "<=xs",
|
|
@@ -87,8 +84,9 @@ const CartItems = ({
|
|
|
87
84
|
wrapCard: true,
|
|
88
85
|
className: classes.card
|
|
89
86
|
})
|
|
90
|
-
}), cartItems.map(item => /*#__PURE__*/_jsx(
|
|
87
|
+
}), cartItems.map(item => /*#__PURE__*/_jsx(Card, {
|
|
91
88
|
className: classes.card,
|
|
89
|
+
component: "li",
|
|
92
90
|
children: /*#__PURE__*/_jsx(CartItemProvider, {
|
|
93
91
|
cartItem: item,
|
|
94
92
|
isEditable: editable,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useMemo, useCallback } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { i18n } from '@shopgate/engage/core/helpers';
|
|
4
|
-
import {
|
|
4
|
+
import { Card } from '@shopgate/engage/components';
|
|
5
5
|
import Substitution, { SubstitutionWrapper } from "../Substitution";
|
|
6
6
|
import connect from "./CartItemsSubscription.connector";
|
|
7
7
|
|
|
@@ -24,8 +24,9 @@ const CartItemsSubstitution = ({
|
|
|
24
24
|
}))), [allAllowed, cartItems, updateProductsInCart]);
|
|
25
25
|
if (wrapCard) {
|
|
26
26
|
return /*#__PURE__*/_jsx(SubstitutionWrapper, {
|
|
27
|
-
children: /*#__PURE__*/_jsx(
|
|
27
|
+
children: /*#__PURE__*/_jsx(Card, {
|
|
28
28
|
className: className,
|
|
29
|
+
component: "li",
|
|
29
30
|
children: /*#__PURE__*/_jsx(Substitution, {
|
|
30
31
|
id: "substitution-all",
|
|
31
32
|
label: i18n.text('cart.allow_substitution_all'),
|
|
@@ -25,12 +25,12 @@ const useStyles = makeStyles()(theme => ({
|
|
|
25
25
|
padding: theme.spacing(2)
|
|
26
26
|
},
|
|
27
27
|
total: {
|
|
28
|
-
fontSize: theme.typography.
|
|
28
|
+
fontSize: theme.typography.body2.fontSize,
|
|
29
29
|
padding: theme.spacing(1, 0),
|
|
30
30
|
color: theme.palette.text.primary
|
|
31
31
|
},
|
|
32
32
|
grandTotal: {
|
|
33
|
-
fontSize:
|
|
33
|
+
fontSize: theme.typography.h4.fontSize,
|
|
34
34
|
fontWeight: theme.typography.fontWeightMedium,
|
|
35
35
|
borderTop: `1px solid ${theme.components.border.medium}`,
|
|
36
36
|
padding: theme.spacing(1, 0),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useContext, useMemo } from 'react';
|
|
2
|
-
import { SurroundPortals, I18n
|
|
2
|
+
import { SurroundPortals, I18n } from '@shopgate/engage/components';
|
|
3
3
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
4
4
|
import { CART_CHECKOUT_BUTTON } from '@shopgate/pwa-common-commerce/cart/constants/Portals';
|
|
5
|
-
import
|
|
5
|
+
import { Button } from '@shopgate/engage/components/v2';
|
|
6
6
|
import { CHECKOUT_PATH } from '@shopgate/pwa-common/constants/RoutePaths';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { CartContext } from "../../cart.context";
|
|
@@ -14,15 +14,7 @@ const useStyles = makeStyles()(theme => ({
|
|
|
14
14
|
flexDirection: 'column'
|
|
15
15
|
},
|
|
16
16
|
button: {
|
|
17
|
-
width: '100%',
|
|
18
|
-
background: theme.components.ctaButton.background,
|
|
19
|
-
color: `${theme.contrastColor(theme.components.ctaButton.background)}!important`,
|
|
20
|
-
borderRadius: 4,
|
|
21
17
|
margin: theme.spacing(2, 0)
|
|
22
|
-
},
|
|
23
|
-
disabledButton: {
|
|
24
|
-
background: theme.palette.action.disabledBackground,
|
|
25
|
-
color: `${theme.contrastColor(theme.palette.action.disabledBackground)}!important`
|
|
26
18
|
}
|
|
27
19
|
}));
|
|
28
20
|
|
|
@@ -35,16 +27,12 @@ const CartSummaryWideCheckoutButton = ({
|
|
|
35
27
|
isOrderable
|
|
36
28
|
}) => {
|
|
37
29
|
const {
|
|
38
|
-
classes
|
|
39
|
-
cx
|
|
30
|
+
classes
|
|
40
31
|
} = useStyles();
|
|
41
32
|
const {
|
|
42
33
|
isLoading
|
|
43
34
|
} = useContext(CartContext);
|
|
44
35
|
const isActive = useMemo(() => isOrderable && !isLoading, [isLoading, isOrderable]);
|
|
45
|
-
const buttonClassName = cx(classes.button, {
|
|
46
|
-
[classes.disabledButton]: !isActive
|
|
47
|
-
});
|
|
48
36
|
return /*#__PURE__*/_jsx("div", {
|
|
49
37
|
className: classes.container,
|
|
50
38
|
children: /*#__PURE__*/_jsx(SurroundPortals, {
|
|
@@ -52,16 +40,14 @@ const CartSummaryWideCheckoutButton = ({
|
|
|
52
40
|
portalProps: {
|
|
53
41
|
isActive
|
|
54
42
|
},
|
|
55
|
-
children: /*#__PURE__*/_jsx(
|
|
43
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
56
44
|
href: CHECKOUT_PATH,
|
|
45
|
+
color: "cta",
|
|
46
|
+
fullWidth: true,
|
|
57
47
|
disabled: !isActive,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
className: buttonClassName,
|
|
62
|
-
children: /*#__PURE__*/_jsx(I18n.Text, {
|
|
63
|
-
string: "cart.checkout"
|
|
64
|
-
})
|
|
48
|
+
className: classes.button,
|
|
49
|
+
children: /*#__PURE__*/_jsx(I18n.Text, {
|
|
50
|
+
string: "cart.checkout"
|
|
65
51
|
})
|
|
66
52
|
})
|
|
67
53
|
})
|
|
@@ -1,37 +1,21 @@
|
|
|
1
1
|
import React, { useContext, useMemo } from 'react';
|
|
2
|
-
import { I18n,
|
|
3
|
-
import { makeStyles } from '@shopgate/engage/styles';
|
|
2
|
+
import { I18n, SurroundPortals } from '@shopgate/engage/components';
|
|
4
3
|
import { CART_CHECKOUT_BUTTON } from '@shopgate/pwa-common-commerce/cart/constants/Portals';
|
|
5
|
-
import
|
|
4
|
+
import { Button } from '@shopgate/engage/components/v2';
|
|
6
5
|
import { CHECKOUT_PATH } from '@shopgate/pwa-common/constants/RoutePaths';
|
|
7
6
|
import PropTypes from 'prop-types';
|
|
8
7
|
import { CartContext } from "../../cart.context";
|
|
9
8
|
import connect from "./PaymentBarCheckoutButton.connector";
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
const useStyles = makeStyles()(theme => ({
|
|
12
|
-
button: {
|
|
13
|
-
width: '100%',
|
|
14
|
-
background: theme.components.ctaButton.background,
|
|
15
|
-
color: `${theme.contrastColor(theme.components.ctaButton.background)}!important`
|
|
16
|
-
},
|
|
17
|
-
disabledButton: {
|
|
18
|
-
width: '100%',
|
|
19
|
-
background: theme.palette.action.disabledBackground,
|
|
20
|
-
color: `${theme.contrastColor(theme.palette.action.disabledBackground)}!important`
|
|
21
|
-
}
|
|
22
|
-
}));
|
|
23
9
|
|
|
24
10
|
/**
|
|
25
11
|
* Renders the cart payment bar checkout button.
|
|
26
12
|
* @param {boolean} isOrderable Whether the cart is orderable.
|
|
27
13
|
* @return {JSX.Element}
|
|
28
14
|
*/
|
|
15
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
16
|
const PaymentBarCheckoutButton = ({
|
|
30
17
|
isOrderable
|
|
31
18
|
}) => {
|
|
32
|
-
const {
|
|
33
|
-
classes
|
|
34
|
-
} = useStyles();
|
|
35
19
|
const {
|
|
36
20
|
isLoading
|
|
37
21
|
} = useContext(CartContext);
|
|
@@ -41,19 +25,13 @@ const PaymentBarCheckoutButton = ({
|
|
|
41
25
|
portalProps: {
|
|
42
26
|
isActive
|
|
43
27
|
},
|
|
44
|
-
children: /*#__PURE__*/_jsx(
|
|
28
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
45
29
|
href: CHECKOUT_PATH,
|
|
30
|
+
color: "cta",
|
|
31
|
+
fullWidth: true,
|
|
46
32
|
disabled: !isActive,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"aria-disabled": !isActive,
|
|
50
|
-
children: /*#__PURE__*/_jsx(RippleButton, {
|
|
51
|
-
disabled: !isActive,
|
|
52
|
-
type: "regular",
|
|
53
|
-
className: isActive ? classes.button : classes.disabledButton,
|
|
54
|
-
children: /*#__PURE__*/_jsx(I18n.Text, {
|
|
55
|
-
string: "cart.checkout"
|
|
56
|
-
})
|
|
33
|
+
children: /*#__PURE__*/_jsx(I18n.Text, {
|
|
34
|
+
string: "cart.checkout"
|
|
57
35
|
})
|
|
58
36
|
})
|
|
59
37
|
});
|
|
@@ -38,27 +38,20 @@ const createCartTotalLineMock = () => {
|
|
|
38
38
|
};
|
|
39
39
|
return CartTotalLine;
|
|
40
40
|
};
|
|
41
|
-
const
|
|
41
|
+
const createButtonMock = () => function Button(props) {
|
|
42
42
|
return /*#__PURE__*/_jsx("button", {
|
|
43
43
|
type: "button",
|
|
44
44
|
className: props.className,
|
|
45
45
|
disabled: props.disabled,
|
|
46
|
+
"data-color": props.color,
|
|
47
|
+
"data-href": props.href,
|
|
46
48
|
children: props.children
|
|
47
49
|
});
|
|
48
50
|
};
|
|
49
|
-
const createStylesMock = () => ({
|
|
50
|
-
makeStyles: () => () => () => ({
|
|
51
|
-
classes: {
|
|
52
|
-
button: 'button',
|
|
53
|
-
disabledButton: 'disabledButton'
|
|
54
|
-
}
|
|
55
|
-
})
|
|
56
|
-
});
|
|
57
51
|
module.exports = {
|
|
58
52
|
createSurroundPortalsMock,
|
|
59
53
|
createCartTotalLineMock,
|
|
60
|
-
|
|
61
|
-
createStylesMock
|
|
54
|
+
createButtonMock
|
|
62
55
|
};
|
|
63
56
|
|
|
64
57
|
/* eslint-enable react/prop-types, require-jsdoc */
|
|
@@ -1,37 +1,44 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Image } from '@shopgate/engage/components';
|
|
4
|
+
import { makeStyles } from '@shopgate/engage/styles';
|
|
4
5
|
import connect from "./connector";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const useStyles = makeStyles()(theme => ({
|
|
8
|
+
root: {
|
|
9
|
+
borderRadius: theme.shape.borderRadius,
|
|
10
|
+
overflow: 'hidden'
|
|
11
|
+
}
|
|
12
|
+
}));
|
|
5
13
|
|
|
6
14
|
/**
|
|
7
15
|
* The CategoryImage component
|
|
8
16
|
* @param {Object} props The component props.
|
|
9
17
|
* @returns {JSX.Element}
|
|
10
18
|
*/
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
19
|
const CategoryImage = ({
|
|
13
20
|
className,
|
|
14
21
|
src,
|
|
15
22
|
placeholderSrc
|
|
16
23
|
}) => {
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
if (!
|
|
22
|
-
return /*#__PURE__*/_jsx(Image, {
|
|
23
|
-
className: className,
|
|
24
|
-
src: src,
|
|
25
|
-
onError: onImageError
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
if (!placeholderSrc) {
|
|
24
|
+
const {
|
|
25
|
+
classes,
|
|
26
|
+
cx
|
|
27
|
+
} = useStyles();
|
|
28
|
+
if (!src && !placeholderSrc) {
|
|
29
29
|
return null;
|
|
30
30
|
}
|
|
31
31
|
return /*#__PURE__*/_jsx(Image, {
|
|
32
|
-
className: className,
|
|
33
|
-
src:
|
|
34
|
-
|
|
32
|
+
className: cx(classes.root, className),
|
|
33
|
+
src: src
|
|
34
|
+
// Unwrapped, so the fallback renders into the container the outer Image already provides
|
|
35
|
+
// rather than nesting a second aspect ratio box inside it.
|
|
36
|
+
,
|
|
37
|
+
placeholder: placeholderSrc ? /*#__PURE__*/_jsx(Image, {
|
|
38
|
+
unwrapped: true,
|
|
39
|
+
src: placeholderSrc
|
|
40
|
+
}) : null
|
|
41
|
+
});
|
|
35
42
|
};
|
|
36
43
|
CategoryImage.defaultProps = {
|
|
37
44
|
src: null,
|
|
@@ -6,7 +6,8 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import { getCheckoutBillingAddress, getCheckoutShippingAddress } from '@shopgate/engage/checkout/selectors/order';
|
|
7
7
|
import { i18n, historyPush } from '@shopgate/engage/core';
|
|
8
8
|
import { makeStyles, responsiveMediaQuery } from '@shopgate/engage/styles';
|
|
9
|
-
import {
|
|
9
|
+
import { ResponsiveContainer, Typography } from '@shopgate/engage/components';
|
|
10
|
+
import { Button } from '@shopgate/engage/components/v2';
|
|
10
11
|
import { ResponsiveBackButton } from "../ResponsiveBackButton";
|
|
11
12
|
import AddressCard from "../../../account/components/Profile/ProfileAddressCard";
|
|
12
13
|
import { useProfileContext } from "../../../account/components/Profile/Profile.provider";
|
|
@@ -30,12 +31,11 @@ const mapStateToProps = state => ({
|
|
|
30
31
|
const mapDispatchToProps = dispatch => ({
|
|
31
32
|
push: props => dispatch(historyPush(props))
|
|
32
33
|
});
|
|
33
|
-
const useStyles = makeStyles()(
|
|
34
|
+
const useStyles = makeStyles()(() => ({
|
|
34
35
|
container: {
|
|
35
36
|
display: 'flex',
|
|
36
37
|
flexDirection: 'row',
|
|
37
38
|
flexWrap: 'wrap',
|
|
38
|
-
margin: -4,
|
|
39
39
|
padding: 16
|
|
40
40
|
},
|
|
41
41
|
headline: {
|
|
@@ -43,25 +43,16 @@ const useStyles = makeStyles()(theme => ({
|
|
|
43
43
|
margin: 0
|
|
44
44
|
},
|
|
45
45
|
button: {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
[responsiveMediaQuery('<md', {
|
|
55
|
-
webOnly: false
|
|
56
|
-
})]: {
|
|
57
|
-
width: '100%',
|
|
58
|
-
marginRight: 0
|
|
59
|
-
}
|
|
46
|
+
marginTop: 8,
|
|
47
|
+
marginRight: 16,
|
|
48
|
+
textTransform: 'none',
|
|
49
|
+
[responsiveMediaQuery('<md', {
|
|
50
|
+
webOnly: false
|
|
51
|
+
})]: {
|
|
52
|
+
width: '100%',
|
|
53
|
+
marginRight: 0
|
|
60
54
|
}
|
|
61
55
|
},
|
|
62
|
-
ripple: {
|
|
63
|
-
padding: '8px 16px'
|
|
64
|
-
},
|
|
65
56
|
actions: {
|
|
66
57
|
display: 'flex',
|
|
67
58
|
justifyContent: 'flex-end',
|
|
@@ -131,10 +122,10 @@ const AddressList = ({
|
|
|
131
122
|
}, contact.id))
|
|
132
123
|
}), /*#__PURE__*/_jsx("div", {
|
|
133
124
|
className: classes.actions,
|
|
134
|
-
children: /*#__PURE__*/_jsx(
|
|
125
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
126
|
+
color: "primary",
|
|
127
|
+
size: "small",
|
|
135
128
|
className: classes.button,
|
|
136
|
-
rippleClassName: classes.ripple,
|
|
137
|
-
type: "primary",
|
|
138
129
|
onClick: () => push({
|
|
139
130
|
pathname: `${CHECKOUT_ADDRESS_BOOK_CONTACT_PATTERN}`.replace(':type', type)
|
|
140
131
|
}),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { i18n } from '@shopgate/engage/core/helpers';
|
|
3
|
-
import {
|
|
3
|
+
import { SurroundPortals } from '@shopgate/engage/components';
|
|
4
|
+
import { Button } from '@shopgate/engage/components/v2';
|
|
4
5
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
5
6
|
import { useCheckoutContext } from "../../hooks/common";
|
|
6
7
|
import { SupplementalContent } from "../SupplementalContent";
|
|
@@ -30,8 +31,8 @@ const Actions = () => {
|
|
|
30
31
|
paymentButton: PaymentButton,
|
|
31
32
|
isButtonLocked
|
|
32
33
|
} = useCheckoutContext();
|
|
33
|
-
const originalButton = /*#__PURE__*/_jsx(
|
|
34
|
-
|
|
34
|
+
const originalButton = /*#__PURE__*/_jsx(Button, {
|
|
35
|
+
color: "primary",
|
|
35
36
|
onClick: handleSubmitOrder,
|
|
36
37
|
disabled: isButtonLocked,
|
|
37
38
|
children: i18n.text('checkout.submit_order')
|
|
@@ -95,29 +95,37 @@ const CheckoutAddress = ({
|
|
|
95
95
|
children: address ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
96
96
|
children: [/*#__PURE__*/_jsx(Typography, {
|
|
97
97
|
component: "span",
|
|
98
|
+
variant: "body2",
|
|
98
99
|
children: address.middleName?.length ? `${address.firstName} ${address.middleName} ${address.lastName}` : `${address.firstName} ${address.lastName}`
|
|
99
100
|
}), type === ADDRESS_TYPE_BILLING && isGuestCheckout && orderReserveOnly && /*#__PURE__*/_jsxs(_Fragment, {
|
|
100
101
|
children: [/*#__PURE__*/_jsx(Typography, {
|
|
101
102
|
component: "span",
|
|
103
|
+
variant: "body2",
|
|
102
104
|
children: address.emailAddress
|
|
103
105
|
}), /*#__PURE__*/_jsx(Typography, {
|
|
104
106
|
component: "span",
|
|
107
|
+
variant: "body2",
|
|
105
108
|
children: address.mobile
|
|
106
109
|
})]
|
|
107
110
|
}), /*#__PURE__*/_jsx(Typography, {
|
|
108
111
|
component: "span",
|
|
112
|
+
variant: "body2",
|
|
109
113
|
children: address.address1
|
|
110
114
|
}), address.address2?.length ? /*#__PURE__*/_jsx(Typography, {
|
|
111
115
|
component: "span",
|
|
116
|
+
variant: "body2",
|
|
112
117
|
children: address.address2
|
|
113
118
|
}) : null, address.address3?.length ? /*#__PURE__*/_jsx(Typography, {
|
|
114
119
|
component: "span",
|
|
120
|
+
variant: "body2",
|
|
115
121
|
children: address.address3
|
|
116
122
|
}) : null, address.address4?.length ? /*#__PURE__*/_jsx(Typography, {
|
|
117
123
|
component: "span",
|
|
124
|
+
variant: "body2",
|
|
118
125
|
children: address.address4
|
|
119
126
|
}) : null, address.postalCode || address.region || address.city || address.country ? /*#__PURE__*/_jsx(Typography, {
|
|
120
127
|
component: "span",
|
|
128
|
+
variant: "body2",
|
|
121
129
|
children: i18n.text(`checkout.${type}.address`, {
|
|
122
130
|
postalCode: address.postalCode || '',
|
|
123
131
|
region: iso3166?.[address.country]?.divisions?.[address.region] || address.region || '',
|
|
@@ -14,7 +14,7 @@ const useStyles = makeStyles()(theme => ({
|
|
|
14
14
|
card: {
|
|
15
15
|
display: 'flex',
|
|
16
16
|
flexDirection: 'row',
|
|
17
|
-
fontSize: theme.typography.
|
|
17
|
+
fontSize: theme.typography.body2.fontSize,
|
|
18
18
|
width: '100%',
|
|
19
19
|
overflow: 'inherit !important',
|
|
20
20
|
marginBottom: theme.spacing(2),
|
|
@@ -43,7 +43,9 @@ const useStyles = makeStyles()(theme => ({
|
|
|
43
43
|
' tr:last-of-type td': {
|
|
44
44
|
paddingTop: 8,
|
|
45
45
|
borderTop: `1px solid ${theme.components.border.medium}`,
|
|
46
|
-
|
|
46
|
+
'& span': {
|
|
47
|
+
fontWeight: `${theme.typography.fontWeightBold} !important`
|
|
48
|
+
}
|
|
47
49
|
}
|
|
48
50
|
},
|
|
49
51
|
actionsContainer: {
|
|
@@ -116,6 +118,7 @@ const CheckoutSection = ({
|
|
|
116
118
|
children: [/*#__PURE__*/_jsxs("td", {
|
|
117
119
|
children: [/*#__PURE__*/_jsx(Typography, {
|
|
118
120
|
component: "span",
|
|
121
|
+
variant: "body2",
|
|
119
122
|
className: cx({
|
|
120
123
|
[classes.labelWithInfoIcon]: !!info
|
|
121
124
|
}),
|
|
@@ -126,6 +129,7 @@ const CheckoutSection = ({
|
|
|
126
129
|
}), /*#__PURE__*/_jsx("td", {
|
|
127
130
|
children: typeof text === 'string' ? /*#__PURE__*/_jsx(Typography, {
|
|
128
131
|
component: "span",
|
|
132
|
+
variant: "body2",
|
|
129
133
|
children: text
|
|
130
134
|
}) : text
|
|
131
135
|
})]
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useMemo, useEffect, useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { ResponsiveContainer,
|
|
3
|
+
import { ResponsiveContainer, Typography } from '@shopgate/engage/components';
|
|
4
|
+
import { Button } from '@shopgate/engage/components/v2';
|
|
4
5
|
import { makeStyles, responsiveMediaQuery } from '@shopgate/engage/styles';
|
|
5
6
|
import { CartItems } from '@shopgate/engage/cart';
|
|
6
7
|
import { useRoute } from '@shopgate/engage/core';
|
|
@@ -72,9 +73,8 @@ const useStyles = makeStyles()(theme => ({
|
|
|
72
73
|
border: 0
|
|
73
74
|
},
|
|
74
75
|
button: {
|
|
75
|
-
flex: '0 0 auto
|
|
76
|
-
|
|
77
|
-
minWidth: '50% !important',
|
|
76
|
+
flex: '0 0 auto',
|
|
77
|
+
minWidth: '50%',
|
|
78
78
|
[responsiveMediaQuery('<md')]: {
|
|
79
79
|
width: '100%'
|
|
80
80
|
}
|
|
@@ -218,9 +218,8 @@ const CheckoutConfirmation = ({
|
|
|
218
218
|
})]
|
|
219
219
|
}), /*#__PURE__*/_jsx("div", {
|
|
220
220
|
className: classes.buttonWrapper,
|
|
221
|
-
children: /*#__PURE__*/_jsx(
|
|
222
|
-
|
|
223
|
-
disabled: false,
|
|
221
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
222
|
+
color: "primary",
|
|
224
223
|
className: classes.button,
|
|
225
224
|
onClick: onContinueShopping,
|
|
226
225
|
children: i18n.text('checkout.success.continue')
|