@shopgate/engage 7.31.3 → 7.32.0-beta.1
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/Account/Account.d.ts.map +1 -1
- package/account/components/Account/Account.js +4 -3
- package/account/components/Profile/Profile.provider.d.ts +1 -1
- package/account/components/Profile/Profile.provider.js +1 -1
- package/account/components/Profile/ProfileAddressBook.d.ts.map +1 -1
- package/account/components/Profile/ProfileAddressBook.js +9 -11
- package/account/components/Profile/ProfileAddressCard.d.ts.map +1 -1
- package/account/components/Profile/ProfileAddressCard.js +36 -33
- package/account/components/Profile/ProfileForm.js +4 -4
- package/account/components/Profile/ProfileHeader.d.ts.map +1 -1
- package/account/components/Profile/ProfileHeader.js +8 -9
- package/account/components/ProfileContact/ProfileContact.js +4 -3
- package/admin-preview/components/FrontendSettingsPreviewBridge/FrontendSettingsPreviewBridge.d.ts +7 -0
- package/admin-preview/components/FrontendSettingsPreviewBridge/FrontendSettingsPreviewBridge.d.ts.map +1 -0
- package/admin-preview/components/FrontendSettingsPreviewBridge/FrontendSettingsPreviewBridge.js +42 -0
- package/admin-preview/components/FrontendSettingsPreviewBridge/helpers.d.ts +20 -0
- package/admin-preview/components/FrontendSettingsPreviewBridge/helpers.d.ts.map +1 -0
- package/admin-preview/components/FrontendSettingsPreviewBridge/helpers.js +49 -0
- package/admin-preview/components/FrontendSettingsPreviewBridge/index.d.ts +2 -0
- package/admin-preview/components/FrontendSettingsPreviewBridge/index.d.ts.map +1 -0
- package/admin-preview/components/FrontendSettingsPreviewBridge/index.js +1 -0
- package/admin-preview/components/FrontendSettingsPreviewBridge/types.d.ts +14 -0
- package/admin-preview/components/FrontendSettingsPreviewBridge/types.d.ts.map +1 -0
- package/admin-preview/components/FrontendSettingsPreviewBridge/types.js +1 -0
- package/admin-preview/components/index.d.ts +2 -0
- package/admin-preview/components/index.d.ts.map +1 -0
- package/admin-preview/components/index.js +1 -0
- package/admin-preview/constants/index.d.ts +18 -0
- package/admin-preview/constants/index.d.ts.map +1 -0
- package/admin-preview/constants/index.js +22 -0
- package/admin-preview/helpers/index.d.ts +16 -0
- package/admin-preview/helpers/index.d.ts.map +1 -0
- package/admin-preview/helpers/index.js +19 -0
- package/admin-preview/hooks/index.d.ts +36 -0
- package/admin-preview/hooks/index.d.ts.map +1 -0
- package/admin-preview/hooks/index.js +74 -0
- package/back-in-stock/components/BackInStockButton/index.js +16 -19
- package/back-in-stock/components/Subscriptions/components/Subscription/index.js +20 -21
- package/cart/components/CartHeaderWide/CartHeaderWide.js +4 -3
- package/cart/components/CartItem/CartItemCoupon.js +2 -6
- package/cart/components/CartItem/CartItemCouponDelete.js +3 -3
- package/cart/components/CartItem/CartItemCouponLayout.js +1 -1
- package/cart/components/CartItem/CartItemCouponPrice.js +16 -19
- package/cart/components/CartItem/CartItemCouponTitle.js +4 -4
- package/cart/components/CartItem/CartItemProduct.js +2 -6
- package/cart/components/CartItem/CartItemProductLayout.js +4 -8
- package/cart/components/CartItem/CartItemProductLayoutWide.js +19 -14
- package/cart/components/CartItem/CartItemProductLayoutWideFulfillmentLabel.js +5 -3
- package/cart/components/CartItem/CartItemProductLayoutWideOrderDetails.js +18 -12
- package/cart/components/CartItem/CartItemProductLayoutWideRemoveItem.js +1 -1
- package/cart/components/CartItem/CartItemProductOrderDetails.js +2 -2
- package/cart/components/CartItem/CartItemProductPriceCaption.js +5 -4
- package/cart/components/CartItem/CartItemProductPriceList.js +18 -12
- package/cart/components/CartItem/CartItemProductPriceListPromotion.js +7 -7
- package/cart/components/CartItem/CartItemProductTitle.js +2 -3
- package/cart/components/CartItem/CartItemQuantityPicker.js +2 -7
- package/cart/components/CartItem/CartItemSubstitution.js +1 -2
- package/cart/components/CartItems/CartItemCard.js +3 -4
- package/cart/components/CartItems/CartItemCardReservationAccordion.js +9 -10
- package/cart/components/CartItems/CartItemCardReservationLabel.js +11 -11
- package/cart/components/CartItems/CartItemCardReservationLabelChangeStore.js +3 -3
- package/cart/components/CartItems/CartItemGroupReservation.js +4 -3
- package/cart/components/CartItems/CartItemGroupReservationLabel.js +12 -10
- package/cart/components/CartItems/CartItemGroupShipping.js +7 -5
- package/cart/components/CartItems/CartItems.js +2 -4
- package/cart/components/CartItems/CartItemsHeaderWide.js +43 -18
- package/cart/components/CartSummaryWide/CartSummaryWide.js +9 -16
- package/cart/components/CartSummaryWide/CartSummaryWideCheckoutButton.js +4 -8
- package/cart/components/PaymentBar/PaymentBarCheckoutButton.js +6 -10
- package/cart/components/PaymentBar/PaymentBarContent.js +3 -9
- package/cart/components/PaymentBar/PaymentBarPromotionCouponMessages.js +6 -2
- package/cart/components/PaymentBar/PaymentBarPromotionCoupons.js +5 -5
- package/cart/components/PaymentBar/PaymentBarPromotionalText.js +9 -10
- package/cart/components/PaymentBar/PaymentBarReserveButton.js +6 -10
- package/cart/components/PaymentBar/testUtils/mockFactories.js +64 -0
- package/cart/components/Substitution/connector.js +1 -1
- package/cart/components/SupplementalContent/SupplementalContent.connector.js +2 -1
- package/cart/components/SupplementalContent/SupplementalContent.js +6 -7
- package/category/components/CategoryImage/connector.js +1 -1
- package/category/components/CategoryList/index.js +4 -8
- package/checkout/components/AddressBook/AddressList.js +9 -10
- package/checkout/components/AddressBookContact/AddressBookContact.js +6 -6
- package/checkout/components/Checkout/CheckoutAddress.js +25 -15
- package/checkout/components/Checkout/CheckoutHeader.js +9 -11
- package/checkout/components/Checkout/CheckoutPickupContactForm.js +2 -2
- package/checkout/components/Checkout/CheckoutSection.js +22 -15
- package/checkout/components/Checkout/CheckoutSectionInfo.js +14 -17
- package/checkout/components/Checkout/CheckoutSectionMessages.js +5 -4
- package/checkout/components/CheckoutConfirmation/CheckoutConfirmation.js +15 -14
- package/checkout/components/CheckoutConfirmation/CheckoutConfirmationSection.js +44 -62
- package/checkout/components/GuestCheckout/GuestCheckoutPickup.js +7 -4
- package/checkout/components/PaymentMethodButton/PaymentMethodButton.js +3 -3
- package/checkout/components/ResponsiveBackButton/ResponsiveBackButton.js +2 -2
- package/checkout/components/ShippingMethods/ShippingMethod.js +6 -5
- package/checkout/components/ShippingMethods/ShippingMethods.js +11 -8
- package/checkout/components/SupplementalContent/SupplementalContent.connector.js +2 -1
- package/checkout/components/SupplementalContent/SupplementalContent.js +6 -7
- package/checkout/paymentMethods/index.js +5 -4
- package/checkout/paymentMethods/paypal/PaypalPayButton.js +7 -6
- package/checkout/paymentMethods/stripe/StripeCreditCard.js +6 -9
- package/components/ChipLayout/index.js +4 -4
- package/components/Form/Builder/ElementPhoneNumber.d.ts.map +1 -1
- package/components/Form/Builder/ElementPhoneNumber.js +2 -6
- package/components/Form/Builder/stylePresets.d.ts.map +1 -1
- package/components/Form/Builder/stylePresets.js +12 -17
- package/components/Logo/connector.js +3 -1
- package/components/Menu/components/Item/index.d.ts.map +1 -1
- package/components/Menu/components/Item/index.js +5 -17
- package/components/Menu/index.d.ts.map +1 -1
- package/components/Menu/index.js +2 -3
- package/components/MessageBar/MessageBar.d.ts.map +1 -1
- package/components/MessageBar/MessageBar.js +35 -42
- package/components/NavigationHandler/index.d.ts +2 -2
- package/components/Picker/components/Button/index.js +3 -3
- package/components/Picker/components/List/index.js +3 -3
- package/components/Picker/components/Modal/index.d.ts.map +1 -1
- package/components/Picker/components/Modal/index.js +2 -3
- package/components/Picker/spec.js +48 -41
- package/components/PickerUtilize/components/Button/index.d.ts.map +1 -1
- package/components/PickerUtilize/components/Button/index.js +6 -10
- package/components/PickerUtilize/spec.js +6 -3
- package/components/Radio/Radio.js +6 -5
- package/components/ResponsiveContainer/breakpoints.js +2 -2
- package/components/ScrollHeader/index.js +3 -3
- package/components/SheetList/components/Item/index.js +11 -16
- package/components/SheetList/index.d.ts.map +1 -1
- package/components/SheetList/index.js +3 -7
- package/components/SideNavigation/SideNavigationCategories.js +2 -7
- package/components/SideNavigation/SideNavigationCategoriesItem.js +2 -2
- package/components/SideNavigation/SideNavigationContent.js +3 -3
- package/components/SideNavigation/SideNavigationItem.d.ts.map +1 -1
- package/components/SideNavigation/SideNavigationItem.js +3 -4
- package/components/SideNavigation/SideNavigationNestedItem.js +2 -2
- package/components/Switch/index.d.ts.map +1 -1
- package/components/Switch/index.js +6 -7
- package/components/Tabs/components/TabIndicator.js +3 -3
- package/components/TextLink/TextLink.d.ts.map +1 -1
- package/components/TextLink/TextLink.js +8 -26
- package/components/Toggle/index.js +5 -5
- package/components/Typography/Typography.d.ts +87 -124
- package/components/Typography/Typography.d.ts.map +1 -0
- package/components/Typography/Typography.js +72 -57
- package/components/Typography/index.d.ts +2 -1
- package/components/Typography/index.d.ts.map +1 -0
- package/components/View/components/Content/index.js +2 -2
- package/components/View/index.d.ts.map +1 -1
- package/components/View/index.js +1 -5
- package/components/v2/Button/Button.d.ts +1 -1
- package/core/action-creators/merchantSettings.d.ts +1 -1
- package/core/action-creators/merchantSettings.d.ts.map +1 -1
- package/core/action-creators/merchantSettings.js +3 -11
- package/core/action-creators/shopSettings.d.ts +1 -2
- package/core/action-creators/shopSettings.d.ts.map +1 -1
- package/core/action-creators/shopSettings.js +3 -21
- package/core/constants/merchantSettings.d.ts +1 -11
- package/core/constants/merchantSettings.d.ts.map +1 -1
- package/core/constants/merchantSettings.js +3 -11
- package/core/constants/shopSettings.d.ts +1 -27
- package/core/constants/shopSettings.d.ts.map +1 -1
- package/core/constants/shopSettings.js +3 -27
- package/core/helpers/scrollContainer.js +2 -2
- package/core/initialization/index.js +2 -1
- package/core/selectors/merchantSettings.d.ts +1 -20
- package/core/selectors/merchantSettings.d.ts.map +1 -1
- package/core/selectors/merchantSettings.js +3 -33
- package/core/selectors/shopSettings.d.ts +1 -53
- package/core/selectors/shopSettings.d.ts.map +1 -1
- package/core/selectors/shopSettings.js +3 -80
- package/development/components/ClientInformation/ClientInformation.js +5 -3
- package/development/components/DevelopmentSettings/DevelopmentSettings.js +3 -2
- package/development/components/SimulatedInsets/SimulatedInsetTop.js +4 -4
- package/favorites/components/CommentDialog/CommentDialog.js +17 -15
- package/favorites/components/FavoriteButtonWide/FavoriteButtonWide.js +6 -7
- package/favorites/components/Item/Item.d.ts.map +1 -1
- package/favorites/components/Item/Item.js +14 -15
- package/favorites/components/Item/ItemCharacteristics.d.ts.map +1 -1
- package/favorites/components/Item/ItemCharacteristics.js +6 -14
- package/favorites/components/Item/ItemNotes.js +23 -20
- package/favorites/components/Item/ItemQuantity.js +1 -1
- package/favorites/components/List/List.d.ts.map +1 -1
- package/favorites/components/List/List.js +1 -5
- package/favorites/components/ListChooser/ListChooserItem.js +1 -1
- package/favorites/components/Lists/Lists.js +2 -2
- package/favorites/components/Lists/ListsModal.d.ts.map +1 -1
- package/favorites/components/Lists/ListsModal.js +4 -11
- package/favorites/components/RemoveButton/RemoveButton.d.ts.map +1 -1
- package/favorites/components/RemoveButton/RemoveButton.js +1 -2
- package/filter/components/FilterItem/index.js +5 -8
- package/filter/components/FilterItem/spec.js +3 -3
- package/filter/components/FilterPageContent/components/Selector/components/Selected/spec.js +5 -5
- package/filter/components/FilterPageContent/components/Selector/components/Toggle/index.js +3 -3
- package/filter/components/FilterPageContent/components/Selector/components/Toggle/spec.js +5 -5
- package/filter/components/FilterPageContent/components/Selector/components/ValueButton/index.js +4 -5
- package/filter/components/FilterPageContent/components/Selector/spec.js +3 -3
- package/filter/components/PriceSlider/components/Label/index.js +9 -13
- package/filter/components/PriceSlider/components/Label/spec.js +12 -3
- package/filter/components/PriceSlider/index.js +4 -9
- package/filter/components/PriceSlider/spec.js +10 -5
- package/filter/selectors/index.js +2 -2
- package/locations/components/Cart/CartContextMenuChangeFulfillmentContent.js +1 -1
- package/locations/components/ChangeLocationButton/ChangeLocationButton.js +1 -1
- package/locations/components/FulfillmentPath/FulfillmentPathItem.js +1 -7
- package/locations/components/FulfillmentSelector/FulfillmentSelector.connector.js +2 -2
- package/locations/components/FulfillmentSelector/FulfillmentSelectorAlternativeLocation.js +12 -10
- package/locations/components/FulfillmentSelector/FulfillmentSelectorHeader.js +1 -1
- package/locations/components/FulfillmentSelector/FulfillmentSelectorImpossibleError.js +3 -3
- package/locations/components/FulfillmentSelector/FulfillmentSelectorItem.js +4 -4
- package/locations/components/FulfillmentSelector/FulfillmentSelectorLocation.js +18 -15
- package/locations/components/FulfillmentSelector/FulfillmentSelectorLocationMethodNotAvailable.js +3 -3
- package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotDialog.js +22 -21
- package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotProvider.connector.js +1 -1
- package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcher.connector.js +1 -1
- package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcher.js +4 -4
- package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherBar.js +13 -13
- package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherDefault.js +12 -15
- package/locations/components/GlobalLocationSelector/GlobalLocationSelector.js +1 -1
- package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcher.connector.js +1 -1
- package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherBar.js +12 -12
- package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherDefault.js +12 -12
- package/locations/components/ReservationResponses/ReservationError.js +9 -6
- package/locations/components/ReservationResponses/ReservationSuccess.js +14 -9
- package/locations/components/ReserveForm/ReserveForm.js +6 -5
- package/locations/components/ReserveForm/ReserveFormPhone.js +7 -9
- package/locations/components/StockInfo/StockInfo.js +4 -2
- package/locations/components/StockInfoLists/index.js +5 -7
- package/locations/components/StoreDetails/components/FindMoreStores.js +11 -12
- package/locations/components/StoreDetails/components/GetDirectionsButton.js +3 -5
- package/locations/components/StoreDetails/components/StoreDetails.js +24 -26
- package/locations/components/StoreDetails/components/StoreFinderMap.js +4 -4
- package/locations/components/StoreDetails/components/StoresNearby.js +5 -3
- package/locations/components/StoreDetails/components/StoresNearbyListItem.js +24 -10
- package/locations/components/StoreFinder/StoreFinder.js +1 -1
- package/locations/components/StoreFinder/StoreFinderGetDirectionsButton.js +5 -5
- package/locations/components/StoreFinder/StoreFinderLocationDetails.js +7 -6
- package/locations/components/StoreFinder/StoreFinderLocationHeader.js +17 -21
- package/locations/components/StoreFinder/StoreFinderLocations.js +2 -6
- package/locations/components/StoreFinder/StoreFinderSelectLocationButton.js +3 -3
- package/locations/components/StoreFinder/StoreFinderStoreInfoButton.js +3 -3
- package/locations/components/StoreList/StoreAddress.js +3 -3
- package/locations/components/StoreList/StoreAddressShort.js +10 -12
- package/locations/components/StoreList/StoreDetails.js +1 -2
- package/locations/components/StoreList/StoreDetailsLine.js +3 -3
- package/locations/components/StoreList/StoreDistance.js +6 -17
- package/locations/components/StoreList/StoreHeader.js +7 -7
- package/locations/components/StoreList/StoreHoursToday.js +3 -3
- package/locations/components/StoreList/StoreListLocations.js +20 -18
- package/locations/components/StoreList/StoreListProduct.js +2 -3
- package/locations/components/StoreList/StoreListProductInfo.js +9 -6
- package/locations/components/StoreList/StoreListProductName.js +4 -3
- package/locations/components/StoreList/StoreListSearch.js +10 -11
- package/locations/components/StoreList/StoreListSearchRadius.js +4 -5
- package/locations/components/StoreList/StoreOpeningHours.js +10 -12
- package/locations/components/StoreList/StorePhoneNumber.js +10 -12
- package/locations/components/StoreList/StoreSelectLocationButton.js +3 -3
- package/locations/helpers/showInventoryInLists.js +1 -1
- package/locations/providers/FulfillmentProvider.connector.js +1 -1
- package/locations/reducers/index.js +1 -1
- package/locations/selectors/index.js +2 -1
- package/locations/subscriptions.js +2 -2
- package/login/components/ForgotPassword/ForgotPassword.js +16 -16
- package/orders/components/OrderDetails/OrderDetailsAuthenticate.js +1 -1
- package/orders/components/OrderDetails/OrderDetailsContent.js +5 -4
- package/orders/components/OrderDetails/OrderDetailsOrderHeader.js +7 -8
- package/orders/components/OrderDetails/OrderDetailsOrderPickupLocation.js +2 -2
- package/orders/components/OrderHistory/OrderHistoryList.d.ts.map +1 -1
- package/orders/components/OrderHistory/OrderHistoryList.js +4 -8
- package/orders/components/OrderHistory/OrderHistoryTable.js +1 -1
- package/package.json +8 -7
- package/page/components/NotFound.js +8 -7
- package/page/components/WidgetHeadline/WidgetHeadline.js +4 -3
- package/page/components/WidgetRichText/WidgetRichText.js +1 -1
- package/page/components/Widgets/Tooltip.js +7 -8
- package/page/components/Widgets/Widget.js +4 -4
- package/page/components/Widgets/constants.js +0 -5
- package/page/components/Widgets/hooks.js +5 -96
- package/page/constants/index.js +5 -2
- package/page/selectors/index.js +2 -1
- package/page/widgets/HTML/HTML.js +5 -9
- package/page/widgets/NestedCategoryFilter/NestedCategoryFilter.js +0 -5
- package/page/widgets/NestedCategoryFilter/components/Picker/components/SheetItem/index.js +2 -2
- package/page/widgets/NestedCategoryFilter/components/Picker/index.js +7 -9
- package/page/widgets/Placeholder/Placeholder.js +7 -8
- package/product/components/Availability/Availability.js +0 -4
- package/product/components/Characteristics/Characteristic/components/SheetItem/index.js +4 -8
- package/product/components/Characteristics/Characteristic/index.js +9 -12
- package/product/components/Characteristics/Swatch/index.js +3 -7
- package/product/components/Characteristics/transition.js +4 -4
- package/product/components/Description/index.js +6 -7
- package/product/components/EffectivityDates/index.js +23 -17
- package/product/components/FilterBar/components/Content/components/FilterButton/index.js +5 -7
- package/product/components/FilterBar/components/Content/components/Sort/index.js +6 -8
- package/product/components/FilterBar/components/FilterModal/FilterModalContent.js +3 -7
- package/product/components/FilterBar/components/FilterModal/FilterModalTitle.js +13 -12
- package/product/components/FilterBar/index.js +4 -8
- package/product/components/Header/PriceStriked/index.js +4 -8
- package/product/components/Header/Shipping/index.js +3 -3
- package/product/components/Header/Shipping/spec.js +7 -8
- package/product/components/Header/Tiers/components/Tier/index.js +3 -3
- package/product/components/Header/Tiers/components/Tier/spec.js +4 -4
- package/product/components/Header/Tiers/index.js +5 -3
- package/product/components/Header/Tiers/spec.js +7 -7
- package/product/components/MapPriceHint/index.js +8 -7
- package/product/components/Media/MediaImage.js +2 -2
- package/product/components/Media/MediaPlaceholder.js +3 -4
- package/product/components/Options/components/TextOption/components/OptionInfo/index.js +18 -18
- package/product/components/Options/components/TextOption/components/OptionInfo/spec.js +30 -21
- package/product/components/Options/components/TextOption/index.js +8 -11
- package/product/components/OrderQuantityHint/index.js +10 -16
- package/product/components/PriceDifference/index.js +4 -8
- package/product/components/PriceInfo/PriceInfo.connector.js +2 -2
- package/product/components/PriceInfo/PriceInfo.js +3 -4
- package/product/components/ProductCard/index.js +4 -5
- package/product/components/ProductDiscountBadge/index.js +3 -3
- package/product/components/ProductDiscountBadge/spec.js +5 -5
- package/product/components/ProductGrid/components/Item/components/ItemFavoritesButton/index.js +1 -1
- package/product/components/ProductGrid/components/Item/components/ItemFavoritesButton/spec.js +7 -7
- package/product/components/ProductGrid/components/Item/components/ItemImage/spec.js +3 -3
- package/product/components/ProductGrid/components/Item/components/ItemName/index.js +3 -4
- package/product/components/ProductGrid/components/Item/components/ItemName/spec.js +3 -3
- package/product/components/ProductGrid/components/Item/components/ItemPrice/spec.js +4 -4
- package/product/components/ProductGrid/components/Item/index.js +1 -5
- package/product/components/ProductGridPrice/index.js +9 -15
- package/product/components/ProductImage/ProductImagePlaceholder.js +9 -12
- package/product/components/ProductImage/index.js +6 -8
- package/product/components/ProductList/components/Item/index.js +5 -9
- package/product/components/ProductList/components/Layout/index.js +1 -1
- package/product/components/ProductProperties/Content.js +1 -1
- package/product/components/ProductProperties/Group.js +6 -4
- package/product/components/ProductProperties/GroupedProperties.js +1 -1
- package/product/components/ProductProperties/Wrapper.js +4 -2
- package/product/components/ProductSlider/spec.js +5 -5
- package/product/components/Rating/spec.js +9 -8
- package/product/components/RelationsSlider/RelationsSliderContent.js +4 -4
- package/product/components/Swatch/SwatchContent.js +3 -7
- package/product/components/Swatches/Swatches.js +3 -7
- package/product/components/UnitQuantityPicker/ProductUnitQuantityPicker.js +4 -4
- package/product/components/UnitQuantityPicker/UnitQuantityPicker.d.ts.map +1 -1
- package/product/components/UnitQuantityPicker/UnitQuantityPicker.js +9 -12
- package/push-opt-in/components/PushOptInModal/index.js +14 -14
- package/registration/components/GuestRegistration/GuestRegistrationFormPickup.js +2 -2
- package/registration/components/Registration/RegistrationContent.js +2 -1
- package/registration/components/Registration/RegistrationFormBase.config.js +2 -1
- package/registration/providers/GuestRegistrationProvider.actions.js +1 -1
- package/registration/providers/GuestRegistrationProvider.connector.js +3 -2
- package/registration/providers/GuestRegistrationProvider.js +2 -1
- package/registration/providers/RegistrationProvider.actions.js +4 -2
- package/registration/providers/RegistrationProvider.connector.js +2 -2
- package/registration/providers/RegistrationProvider.constraints.js +1 -1
- package/registration/providers/RegistrationProvider.js +2 -1
- package/reviews/components/Reviews/components/Header/components/NoReviews/index.js +1 -1
- package/reviews/components/Reviews/components/Header/components/ReviewsExcerpt/index.js +3 -3
- package/reviews/components/Reviews/components/Header/components/WriteReviewLink/spec.js +43 -26
- package/reviews/components/Reviews/components/Header/spec.js +47 -29
- package/reviews/components/Reviews/components/List/components/Info/index.js +16 -26
- package/reviews/components/Reviews/components/List/components/Text/index.js +4 -2
- package/reviews/components/Reviews/components/List/components/Title/index.js +3 -3
- package/reviews/components/Reviews/components/List/index.js +1 -5
- package/reviews/components/Reviews/components/List/spec.js +68 -29
- package/reviews/components/Reviews/components/RatingCount/index.js +13 -15
- package/reviews/components/Reviews/components/RatingCount/spec.js +25 -5
- package/reviews/components/Reviews/components/ReviewsInfo/index.js +9 -9
- package/reviews/components/Reviews/spec.js +56 -28
- package/settings/action-creators/appSettings.d.ts +12 -0
- package/settings/action-creators/appSettings.d.ts.map +1 -0
- package/settings/action-creators/appSettings.js +10 -0
- package/settings/action-creators/merchantSettings.d.ts +2 -0
- package/settings/action-creators/merchantSettings.d.ts.map +1 -0
- package/settings/action-creators/merchantSettings.js +11 -0
- package/settings/action-creators/shopSettings.d.ts +3 -0
- package/settings/action-creators/shopSettings.d.ts.map +1 -0
- package/settings/action-creators/shopSettings.js +21 -0
- package/settings/constants/appSettings.d.ts +2 -0
- package/settings/constants/appSettings.d.ts.map +1 -0
- package/settings/constants/appSettings.js +1 -0
- package/settings/constants/merchantSettings.d.ts +12 -0
- package/settings/constants/merchantSettings.d.ts.map +1 -0
- package/settings/constants/merchantSettings.js +11 -0
- package/settings/constants/shopSettings.d.ts +28 -0
- package/settings/constants/shopSettings.d.ts.map +1 -0
- package/settings/constants/shopSettings.js +27 -0
- package/settings/reducers/appSettings.d.ts +18 -0
- package/settings/reducers/appSettings.d.ts.map +1 -0
- package/settings/reducers/appSettings.js +42 -0
- package/settings/reducers/index.d.ts +15 -0
- package/settings/reducers/index.d.ts.map +1 -0
- package/{core → settings}/reducers/index.js +4 -3
- package/settings/reducers/merchantSettings.d.ts +18 -0
- package/settings/reducers/merchantSettings.d.ts.map +1 -0
- package/{core → settings}/reducers/merchantSettings.js +9 -3
- package/settings/reducers/shopSettings.d.ts +28 -0
- package/settings/reducers/shopSettings.d.ts.map +1 -0
- package/{core → settings}/reducers/shopSettings.js +10 -4
- package/settings/selectors/appSettings.d.ts +44 -0
- package/settings/selectors/appSettings.d.ts.map +1 -0
- package/settings/selectors/appSettings.js +23 -0
- package/settings/selectors/merchantSettings.d.ts +21 -0
- package/settings/selectors/merchantSettings.d.ts.map +1 -0
- package/settings/selectors/merchantSettings.js +34 -0
- package/settings/selectors/shopSettings.d.ts +54 -0
- package/settings/selectors/shopSettings.d.ts.map +1 -0
- package/settings/selectors/shopSettings.js +81 -0
- package/settings/types/appSettings.d.ts +32 -0
- package/settings/types/appSettings.d.ts.map +1 -0
- package/settings/types/appSettings.js +1 -0
- package/styles/helpers/setPageBackgroundColor.js +2 -2
- package/styles/theme/createDefaultThemeOptions/index.d.ts.map +1 -1
- package/styles/theme/createDefaultThemeOptions/index.js +72 -3
- package/styles/theme/createTheme/createComponents.d.ts +2 -2
- package/styles/theme/createTheme/createComponents.d.ts.map +1 -1
- package/styles/theme/createTheme/createComponents.js +1 -0
- package/styles/theme/createTheme/createComponents.types.d.ts +149 -0
- package/styles/theme/createTheme/createComponents.types.d.ts.map +1 -1
- package/styles/theme/createTheme/createComponents.types.js +149 -0
- package/styles/theme/createTheme/createCssVarsForColorSchemeThemes.d.ts.map +1 -1
- package/styles/theme/createTheme/createCssVarsForColorSchemeThemes.js +28 -2
- package/styles/theme/createTheme/createPalette.types.d.ts +15 -7
- package/styles/theme/createTheme/createPalette.types.d.ts.map +1 -1
- package/styles/theme/createTheme/createPalette.types.js +16 -8
- package/styles/theme/createTheme/createThemeFromColorScheme.d.ts +7 -0
- package/styles/theme/createTheme/createThemeFromColorScheme.d.ts.map +1 -1
- package/styles/theme/createTheme/createThemeFromColorScheme.js +10 -1
- package/styles/theme/createTheme/helpers/cssVarsColorAugmentation.d.ts +2 -1
- package/styles/theme/createTheme/helpers/cssVarsColorAugmentation.d.ts.map +1 -1
- package/styles/theme/createTheme/helpers/cssVarsColorAugmentation.js +84 -6
- package/styles/theme/createTheme/helpers/cssVarsParser.d.ts.map +1 -1
- package/styles/theme/createTheme/helpers/cssVarsParser.js +1 -1
- package/styles/theme/createTheme/index.js +1 -2
- package/styles/theme/createTheme/types.d.ts +8 -2
- package/styles/theme/createTheme/types.d.ts.map +1 -1
- package/styles/theme/providers/ThemeProvider.d.ts.map +1 -1
- package/styles/theme/providers/ThemeProvider.js +5 -3
- package/tracking/components/CookieConsentModal/index.js +12 -12
- package/tracking/components/PrivacySettings/index.js +4 -4
- package/tracking/selectors/cookieConsent.js +2 -2
- package/tsconfig.json +1 -0
|
@@ -3,19 +3,14 @@ import { I18n, ButtonLink } from '@shopgate/engage/components';
|
|
|
3
3
|
import { bin2hex } from '@shopgate/engage/core/helpers';
|
|
4
4
|
import { CATEGORY_PATH } from '@shopgate/engage/category';
|
|
5
5
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
6
|
-
import { themeConfig } from '@shopgate/engage';
|
|
7
6
|
import { useRoute, usePrevious, useLocalStorage } from '@shopgate/engage/core/hooks';
|
|
8
7
|
import { router } from '@virtuous/conductor';
|
|
9
8
|
import CategoryPicker from "./components/Picker";
|
|
10
9
|
import { useNestedCategoryFilterWidget } from "./hooks";
|
|
11
10
|
import WidgetHeadline from "../../components/WidgetHeadline";
|
|
12
11
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
const {
|
|
14
|
-
colors
|
|
15
|
-
} = themeConfig;
|
|
16
12
|
const useStyles = makeStyles()(theme => ({
|
|
17
13
|
container: {
|
|
18
|
-
background: colors.light,
|
|
19
14
|
display: 'flex',
|
|
20
15
|
flexDirection: 'column',
|
|
21
16
|
paddingBottom: theme.spacing(2)
|
|
@@ -11,8 +11,8 @@ const useStyles = makeStyles()(theme => ({
|
|
|
11
11
|
color: theme.palette.text.primary
|
|
12
12
|
},
|
|
13
13
|
buttonSelected: {
|
|
14
|
-
background:
|
|
15
|
-
boxShadow: `${theme.spacing(-2.5)}px 0px 0px
|
|
14
|
+
background: theme.palette.background.emphasized,
|
|
15
|
+
boxShadow: `${theme.spacing(-2.5)}px 0px 0px ${theme.palette.background.emphasized}, ${theme.spacing(2.5)}px 0px 0px ${theme.palette.background.emphasized}`,
|
|
16
16
|
margin: '-1px 0',
|
|
17
17
|
paddingTop: 17,
|
|
18
18
|
paddingBottom: 17
|
|
@@ -2,18 +2,15 @@ import React, { useCallback, useState, useEffect, useMemo } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useSelector, useDispatch } from 'react-redux';
|
|
4
4
|
import { fetchCategoryOrRootCategories } from '@shopgate/engage/category';
|
|
5
|
+
import { Typography } from '@shopgate/engage/components';
|
|
5
6
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
6
|
-
import { themeConfig } from '@shopgate/engage';
|
|
7
7
|
import { i18n } from '@shopgate/engage/core/helpers';
|
|
8
8
|
import Sheet from "./components/Sheet";
|
|
9
9
|
import { getCategoriesById } from "../../../CategoryList/selectors";
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
|
-
const {
|
|
12
|
-
colors
|
|
13
|
-
} = themeConfig;
|
|
14
11
|
const useStyles = makeStyles()(theme => ({
|
|
15
12
|
button: {
|
|
16
|
-
background:
|
|
13
|
+
background: theme.palette.background.emphasized,
|
|
17
14
|
color: theme.palette.text.primary,
|
|
18
15
|
display: 'flex',
|
|
19
16
|
flexDirection: 'column',
|
|
@@ -26,16 +23,15 @@ const useStyles = makeStyles()(theme => ({
|
|
|
26
23
|
cursor: 'pointer'
|
|
27
24
|
},
|
|
28
25
|
buttonDisabled: {
|
|
29
|
-
color:
|
|
26
|
+
color: theme.palette.grey.medium,
|
|
30
27
|
cursor: 'not-allowed'
|
|
31
28
|
},
|
|
32
29
|
label: {
|
|
33
|
-
fontSize: 12,
|
|
34
30
|
marginTop: -2,
|
|
35
31
|
marginBottom: 4
|
|
36
32
|
},
|
|
37
33
|
selection: {
|
|
38
|
-
fontWeight:
|
|
34
|
+
fontWeight: theme.typography.fontWeightMedium,
|
|
39
35
|
lineHeight: 1.125
|
|
40
36
|
}
|
|
41
37
|
}));
|
|
@@ -99,7 +95,9 @@ const CategoryPicker = ({
|
|
|
99
95
|
className: cx(classes.button, {
|
|
100
96
|
[classes.buttonDisabled]: disabled
|
|
101
97
|
}, 'widget__nested-category-filter__category-picker'),
|
|
102
|
-
children: [label && /*#__PURE__*/_jsx(
|
|
98
|
+
children: [label && /*#__PURE__*/_jsx(Typography, {
|
|
99
|
+
variant: "caption",
|
|
100
|
+
component: "div",
|
|
103
101
|
className: classes.label,
|
|
104
102
|
children: label
|
|
105
103
|
}), /*#__PURE__*/_jsx("div", {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
3
|
+
import { Typography } from '@shopgate/engage/components';
|
|
3
4
|
import { usePlaceholderWidget } from "./hooks";
|
|
4
5
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
6
|
const useStyles = makeStyles()(theme => ({
|
|
@@ -7,14 +8,11 @@ const useStyles = makeStyles()(theme => ({
|
|
|
7
8
|
padding: theme.spacing(2),
|
|
8
9
|
minHeight: 200
|
|
9
10
|
},
|
|
10
|
-
name: {
|
|
11
|
-
fontSize: 14
|
|
12
|
-
},
|
|
13
11
|
pre: {
|
|
14
|
-
background:
|
|
15
|
-
border:
|
|
12
|
+
background: theme.palette.background.emphasized,
|
|
13
|
+
border: `1px solid ${theme.components.border.light}`,
|
|
16
14
|
borderRadius: 8,
|
|
17
|
-
color:
|
|
15
|
+
color: theme.contrastColor(theme.palette.background.emphasized),
|
|
18
16
|
fontSize: 10,
|
|
19
17
|
overflowY: 'auto',
|
|
20
18
|
padding: theme.spacing(1)
|
|
@@ -39,8 +37,9 @@ const PlaceholderWidget = () => {
|
|
|
39
37
|
} = usePlaceholderWidget();
|
|
40
38
|
return /*#__PURE__*/_jsxs("div", {
|
|
41
39
|
className: classes.root,
|
|
42
|
-
children: [/*#__PURE__*/_jsx(
|
|
43
|
-
|
|
40
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
41
|
+
variant: "body2",
|
|
42
|
+
component: "div",
|
|
44
43
|
children: name
|
|
45
44
|
}), /*#__PURE__*/_jsx("pre", {
|
|
46
45
|
className: classes.pre,
|
|
@@ -13,9 +13,6 @@ const useStyles = makeStyles()({
|
|
|
13
13
|
width: '70%',
|
|
14
14
|
marginTop: 5,
|
|
15
15
|
marginBottom: 2
|
|
16
|
-
},
|
|
17
|
-
availability: {
|
|
18
|
-
fontSize: '0.875rem'
|
|
19
16
|
}
|
|
20
17
|
});
|
|
21
18
|
|
|
@@ -48,7 +45,6 @@ function Availability({
|
|
|
48
45
|
className: placeholderClasses,
|
|
49
46
|
ready: availability !== null,
|
|
50
47
|
children: availability && /*#__PURE__*/_jsx(AvailableText, {
|
|
51
|
-
className: classes.availability,
|
|
52
48
|
showWhenAvailable: true,
|
|
53
49
|
text: availability.text || '',
|
|
54
50
|
state: availability.state
|
|
@@ -2,12 +2,8 @@ import React, { useCallback, memo } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { withForwardedRef } from '@shopgate/engage/core/hocs';
|
|
4
4
|
import { makeStyles, responsiveMediaQuery } from '@shopgate/engage/styles';
|
|
5
|
-
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
6
5
|
import { CharacteristicsButton } from '@shopgate/engage/back-in-stock/components';
|
|
7
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
const {
|
|
9
|
-
colors
|
|
10
|
-
} = themeConfig;
|
|
11
7
|
const useStyles = makeStyles()(theme => {
|
|
12
8
|
const buttonBase = {
|
|
13
9
|
outline: 0,
|
|
@@ -26,7 +22,7 @@ const useStyles = makeStyles()(theme => {
|
|
|
26
22
|
},
|
|
27
23
|
buttonDisabled: {
|
|
28
24
|
...buttonBase,
|
|
29
|
-
color:
|
|
25
|
+
color: theme.palette.action.disabled
|
|
30
26
|
},
|
|
31
27
|
root: {
|
|
32
28
|
padding: '16px 0',
|
|
@@ -38,12 +34,12 @@ const useStyles = makeStyles()(theme => {
|
|
|
38
34
|
},
|
|
39
35
|
rootSelected: {
|
|
40
36
|
...buttonBase,
|
|
41
|
-
background:
|
|
42
|
-
boxShadow:
|
|
37
|
+
background: theme.palette.background.emphasized,
|
|
38
|
+
boxShadow: `-16px 0 0 ${theme.palette.background.emphasized}, 16px 0 0 ${theme.palette.background.emphasized}`,
|
|
43
39
|
margin: '-1px 0',
|
|
44
40
|
paddingTop: 17,
|
|
45
41
|
paddingBottom: 17,
|
|
46
|
-
fontWeight:
|
|
42
|
+
fontWeight: theme.typography.fontWeightMedium,
|
|
47
43
|
[responsiveMediaQuery('>xs', {
|
|
48
44
|
webOnly: true
|
|
49
45
|
})]: {
|
|
@@ -2,19 +2,15 @@ import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
|
|
|
2
2
|
import React, { PureComponent, Fragment } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import Transition from 'react-transition-group/Transition';
|
|
5
|
-
import { ResponsiveContainer, ArrowDropIcon } from '@shopgate/engage/components';
|
|
5
|
+
import { ResponsiveContainer, ArrowDropIcon, Typography } from '@shopgate/engage/components';
|
|
6
6
|
import { withStyles, cx } from '@shopgate/engage/styles';
|
|
7
|
-
import { themeConfig } from '@shopgate/engage';
|
|
8
7
|
import Sheet from "./components/Sheet";
|
|
9
8
|
import transition from "../transition";
|
|
10
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
|
-
const {
|
|
12
|
-
colors: themeColors
|
|
13
|
-
} = themeConfig;
|
|
14
9
|
|
|
15
10
|
/**
|
|
16
11
|
* A single characteristic.
|
|
17
12
|
*/
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
18
14
|
let Characteristic = /*#__PURE__*/function (_PureComponent) {
|
|
19
15
|
/**
|
|
20
16
|
* @param {Object} props The component props
|
|
@@ -103,7 +99,9 @@ let Characteristic = /*#__PURE__*/function (_PureComponent) {
|
|
|
103
99
|
ref: charRef,
|
|
104
100
|
style: transition[state],
|
|
105
101
|
"data-test-id": label,
|
|
106
|
-
children: [selected && /*#__PURE__*/_jsx(
|
|
102
|
+
children: [selected && /*#__PURE__*/_jsx(Typography, {
|
|
103
|
+
variant: "caption",
|
|
104
|
+
component: "div",
|
|
107
105
|
className: `${classes.label} theme__product__characteristic__label`,
|
|
108
106
|
children: label
|
|
109
107
|
}), /*#__PURE__*/_jsx("div", {
|
|
@@ -183,7 +181,7 @@ Characteristic.defaultProps = {
|
|
|
183
181
|
};
|
|
184
182
|
export default withStyles(Characteristic, theme => ({
|
|
185
183
|
button: {
|
|
186
|
-
background:
|
|
184
|
+
background: theme.palette.background.emphasized,
|
|
187
185
|
color: theme.palette.text.primary,
|
|
188
186
|
position: 'relative',
|
|
189
187
|
cursor: 'pointer',
|
|
@@ -197,20 +195,19 @@ export default withStyles(Characteristic, theme => ({
|
|
|
197
195
|
transition: 'background 250ms ease-in, color 250ms ease-in'
|
|
198
196
|
},
|
|
199
197
|
buttonDisabled: {
|
|
200
|
-
color: `${
|
|
198
|
+
color: `${theme.palette.grey.medium} !important`
|
|
201
199
|
},
|
|
202
200
|
label: {
|
|
203
|
-
fontSize: 12,
|
|
204
201
|
marginTop: -2,
|
|
205
202
|
marginBottom: 4
|
|
206
203
|
},
|
|
207
204
|
selection: {
|
|
208
|
-
fontWeight:
|
|
205
|
+
fontWeight: theme.typography.fontWeightMedium,
|
|
209
206
|
lineHeight: 1.125
|
|
210
207
|
},
|
|
211
208
|
arrow: {
|
|
212
209
|
position: 'absolute',
|
|
213
210
|
right: 32,
|
|
214
|
-
fontSize:
|
|
211
|
+
fontSize: theme.components.icon.small
|
|
215
212
|
}
|
|
216
213
|
}));
|
|
@@ -3,13 +3,9 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import Transition from 'react-transition-group/Transition';
|
|
4
4
|
import { VariantSwatch } from '@shopgate/engage/product/components';
|
|
5
5
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
6
|
-
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
7
6
|
import transition from "../transition";
|
|
8
7
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
const {
|
|
10
|
-
colors
|
|
11
|
-
} = themeConfig;
|
|
12
|
-
const useStyles = makeStyles()(() => ({
|
|
8
|
+
const useStyles = makeStyles()(theme => ({
|
|
13
9
|
label: {
|
|
14
10
|
display: 'flex',
|
|
15
11
|
flexDirection: 'column',
|
|
@@ -18,11 +14,11 @@ const useStyles = makeStyles()(() => ({
|
|
|
18
14
|
outline: 0,
|
|
19
15
|
padding: '12px 16px',
|
|
20
16
|
transition: 'background 250ms ease-in, color 250ms ease-in',
|
|
21
|
-
fontWeight:
|
|
17
|
+
fontWeight: theme.typography.fontWeightMedium,
|
|
22
18
|
lineHeight: 1.125
|
|
23
19
|
},
|
|
24
20
|
labelDisabled: {
|
|
25
|
-
color:
|
|
21
|
+
color: theme.palette.action.disabled
|
|
26
22
|
},
|
|
27
23
|
items: {
|
|
28
24
|
padding: '0 16px',
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
entering: {
|
|
3
|
-
background: 'var(--
|
|
4
|
-
color: 'var(--
|
|
3
|
+
background: 'var(--sg-palette-primary-main)',
|
|
4
|
+
color: 'var(--sg-palette-primary-contrastText)'
|
|
5
5
|
},
|
|
6
6
|
entered: {
|
|
7
|
-
background: 'var(--
|
|
8
|
-
color: 'var(--
|
|
7
|
+
background: 'var(--sg-palette-primary-main)',
|
|
8
|
+
color: 'var(--sg-palette-primary-contrastText)'
|
|
9
9
|
}
|
|
10
10
|
};
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { SurroundPortals, PlaceholderParagraph, HtmlSanitizer, I18n } from '@shopgate/engage/components';
|
|
3
|
+
import { SurroundPortals, PlaceholderParagraph, HtmlSanitizer, I18n, Typography } from '@shopgate/engage/components';
|
|
4
4
|
import { PRODUCT_DESCRIPTION } from '@shopgate/engage/product';
|
|
5
5
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
6
6
|
import connect from "./connector";
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
const useStyles = makeStyles()(theme => ({
|
|
9
9
|
container: {
|
|
10
|
-
fontSize: '0.875rem',
|
|
11
10
|
padding: '0.8125rem 1rem 1rem'
|
|
12
11
|
},
|
|
13
12
|
title: {
|
|
14
|
-
|
|
15
|
-
fontWeight: 500,
|
|
16
|
-
marginBottom: '0.5rem',
|
|
17
|
-
color: theme.palette.text.primary
|
|
13
|
+
marginBottom: '0.5rem'
|
|
18
14
|
},
|
|
19
15
|
content: {
|
|
20
16
|
lineHeight: 1.7,
|
|
@@ -69,8 +65,11 @@ function Description({
|
|
|
69
65
|
},
|
|
70
66
|
children: html !== '' && /*#__PURE__*/_jsxs("div", {
|
|
71
67
|
className: cx(classes.container, 'engage__product__description'),
|
|
72
|
-
children: [/*#__PURE__*/_jsx(
|
|
68
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
69
|
+
variant: "h5",
|
|
70
|
+
component: "div",
|
|
73
71
|
className: cx(classes.title, 'theme__description_heading'),
|
|
72
|
+
color: "textPrimary",
|
|
74
73
|
children: /*#__PURE__*/_jsx(I18n.Text, {
|
|
75
74
|
string: "product.description_heading"
|
|
76
75
|
})
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { isBeta, useWidgetSettings, useWidgetStyles } from '@shopgate/engage/core';
|
|
4
|
+
import { i18n } from '@shopgate/engage/core/helpers';
|
|
4
5
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
5
|
-
import {
|
|
6
|
+
import { TimeBoundary, SurroundPortals, Typography } from '@shopgate/engage/components';
|
|
6
7
|
import { PRODUCT_EFFECTIVITY_DATES } from '@shopgate/pwa-common-commerce/product/constants/Portals';
|
|
7
8
|
import { showExpiringLabel, showScheduledLabel } from "./helpers";
|
|
8
9
|
import connect from "./connector";
|
|
@@ -12,12 +13,10 @@ const useStyles = makeStyles()((theme, {
|
|
|
12
13
|
}) => ({
|
|
13
14
|
hint: {
|
|
14
15
|
color: theme.palette.success.main,
|
|
15
|
-
fontSize: '0.75rem',
|
|
16
16
|
...(hintStyle || {})
|
|
17
17
|
},
|
|
18
18
|
notAvailable: {
|
|
19
|
-
color: theme.palette.error.main
|
|
20
|
-
fontSize: '0.75rem'
|
|
19
|
+
color: theme.palette.error.main
|
|
21
20
|
}
|
|
22
21
|
}));
|
|
23
22
|
|
|
@@ -60,30 +59,37 @@ const EffectivityDates = ({
|
|
|
60
59
|
after
|
|
61
60
|
}) => {
|
|
62
61
|
if (before) {
|
|
63
|
-
return showScheduledLabel(startDate, settings) ? /*#__PURE__*/_jsx(
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
return showScheduledLabel(startDate, settings) ? /*#__PURE__*/_jsx(Typography, {
|
|
63
|
+
variant: "caption",
|
|
64
|
+
component: "span",
|
|
65
|
+
color: "success",
|
|
66
|
+
className: classes.hint,
|
|
67
|
+
children: i18n.text('product.available.at', {
|
|
66
68
|
startDate
|
|
67
|
-
}
|
|
68
|
-
className: classes.hint
|
|
69
|
+
})
|
|
69
70
|
}) : children;
|
|
70
71
|
}
|
|
71
72
|
if (between) {
|
|
72
73
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
73
|
-
children: [children, showExpiringLabel(endDate, settings) && /*#__PURE__*/_jsx(
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
children: [children, showExpiringLabel(endDate, settings) && /*#__PURE__*/_jsx(Typography, {
|
|
75
|
+
variant: "caption",
|
|
76
|
+
component: "span",
|
|
77
|
+
color: "success",
|
|
78
|
+
className: classes.hint,
|
|
79
|
+
children: i18n.text('product.available.until', {
|
|
76
80
|
endDate
|
|
77
|
-
}
|
|
78
|
-
className: classes.hint
|
|
81
|
+
})
|
|
79
82
|
})]
|
|
80
83
|
});
|
|
81
84
|
}
|
|
82
85
|
if (after) {
|
|
83
86
|
productNotAvailable();
|
|
84
|
-
return showExpiringLabel(endDate, settings) ? /*#__PURE__*/_jsx(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
return showExpiringLabel(endDate, settings) ? /*#__PURE__*/_jsx(Typography, {
|
|
88
|
+
variant: "caption",
|
|
89
|
+
component: "span",
|
|
90
|
+
color: "error",
|
|
91
|
+
className: cx(classes.hint, classes.notAvailable),
|
|
92
|
+
children: i18n.text('product.available.not')
|
|
87
93
|
}) : children;
|
|
88
94
|
}
|
|
89
95
|
return children;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
4
4
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
5
|
-
import { Grid, I18n, Ripple, FilterIcon } from '@shopgate/engage/components';
|
|
5
|
+
import { Grid, I18n, Ripple, FilterIcon, Typography } from '@shopgate/engage/components';
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
7
|
const {
|
|
8
8
|
variables
|
|
@@ -10,8 +10,7 @@ const {
|
|
|
10
10
|
const useStyles = makeStyles()(theme => ({
|
|
11
11
|
button: {
|
|
12
12
|
color: 'inherit',
|
|
13
|
-
fontSize:
|
|
14
|
-
lineHeight: 1,
|
|
13
|
+
fontSize: theme.components.icon.medium,
|
|
15
14
|
outline: 0,
|
|
16
15
|
padding: 0,
|
|
17
16
|
minWidth: variables.navigator.height,
|
|
@@ -25,9 +24,6 @@ const useStyles = makeStyles()(theme => ({
|
|
|
25
24
|
},
|
|
26
25
|
filterButtonLabel: {
|
|
27
26
|
alignSelf: 'center',
|
|
28
|
-
fontSize: '0.875rem',
|
|
29
|
-
fontWeight: '500',
|
|
30
|
-
lineHeight: 1,
|
|
31
27
|
paddingRight: theme.spacing(1)
|
|
32
28
|
},
|
|
33
29
|
filterButtonRipple: {
|
|
@@ -66,7 +62,9 @@ function FilterButton({
|
|
|
66
62
|
children: [/*#__PURE__*/_jsx(Grid.Item, {
|
|
67
63
|
className: classes.filterButton,
|
|
68
64
|
component: "div",
|
|
69
|
-
children: /*#__PURE__*/_jsx(
|
|
65
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
|
66
|
+
variant: "subtitle2",
|
|
67
|
+
component: "span",
|
|
70
68
|
className: classes.filterButtonLabel,
|
|
71
69
|
children: /*#__PURE__*/_jsx(I18n.Text, {
|
|
72
70
|
string: "titles.filter"
|
|
@@ -6,7 +6,6 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
6
6
|
import Item from "./components/Item";
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
const {
|
|
9
|
-
shadows,
|
|
10
9
|
variables
|
|
11
10
|
} = themeConfig;
|
|
12
11
|
const useStyles = makeStyles()(theme => ({
|
|
@@ -22,14 +21,13 @@ const useStyles = makeStyles()(theme => ({
|
|
|
22
21
|
whiteSpace: 'nowrap'
|
|
23
22
|
},
|
|
24
23
|
selection: {
|
|
25
|
-
fontSize:
|
|
26
|
-
fontWeight:
|
|
27
|
-
lineHeight: 1,
|
|
24
|
+
fontSize: theme.typography.body2.fontSize,
|
|
25
|
+
fontWeight: theme.typography.fontWeightMedium,
|
|
28
26
|
paddingTop: 1,
|
|
29
27
|
alignSelf: 'center'
|
|
30
28
|
},
|
|
31
29
|
icon: {
|
|
32
|
-
fontSize:
|
|
30
|
+
fontSize: theme.components.icon.medium
|
|
33
31
|
},
|
|
34
32
|
iconOpen: {
|
|
35
33
|
transform: 'rotate(180deg)'
|
|
@@ -40,8 +38,8 @@ const useStyles = makeStyles()(theme => ({
|
|
|
40
38
|
zIndex: 2,
|
|
41
39
|
top: '100%',
|
|
42
40
|
left: 0,
|
|
43
|
-
background:
|
|
44
|
-
boxShadow:
|
|
41
|
+
background: theme.palette.background.emphasized,
|
|
42
|
+
boxShadow: 'rgba(0, 0, 0, 0.16) 0 2px 2px',
|
|
45
43
|
[responsiveMediaQuery('>xs', {
|
|
46
44
|
webOnly: true
|
|
47
45
|
})]: {
|
|
@@ -63,7 +61,7 @@ const useStyles = makeStyles()(theme => ({
|
|
|
63
61
|
}
|
|
64
62
|
},
|
|
65
63
|
selectItemSelected: {
|
|
66
|
-
fontWeight:
|
|
64
|
+
fontWeight: theme.typography.fontWeightMedium
|
|
67
65
|
},
|
|
68
66
|
selectBox: {
|
|
69
67
|
flexGrow: 2
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { themeConfig } from '@shopgate/engage';
|
|
4
3
|
import { makeStyles, responsiveMediaQuery } from '@shopgate/engage/styles';
|
|
5
4
|
import { useFilterPage } from '@shopgate/engage/filter/hooks';
|
|
6
5
|
import FilterPageContent from '@shopgate/engage/filter/components/FilterPageContent';
|
|
7
6
|
import Title from "./FilterModalTitle";
|
|
8
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
const {
|
|
10
|
-
colors
|
|
11
|
-
} = themeConfig;
|
|
12
|
-
const useStyles = makeStyles()({
|
|
8
|
+
const useStyles = makeStyles()(theme => ({
|
|
13
9
|
root: {
|
|
14
10
|
zIndex: 1,
|
|
15
|
-
background:
|
|
11
|
+
background: theme.palette.background.surface,
|
|
16
12
|
borderRadius: 4,
|
|
17
13
|
minWidth: 300,
|
|
18
14
|
[responsiveMediaQuery('>=md')]: {
|
|
@@ -29,7 +25,7 @@ const useStyles = makeStyles()({
|
|
|
29
25
|
overflow: 'auto',
|
|
30
26
|
flex: 1
|
|
31
27
|
}
|
|
32
|
-
});
|
|
28
|
+
}));
|
|
33
29
|
|
|
34
30
|
/**
|
|
35
31
|
* Filter modal content component
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { i18n } from '@shopgate/engage/core/helpers';
|
|
4
|
-
import { Ripple, CrossIcon } from '@shopgate/engage/components';
|
|
4
|
+
import { Ripple, CrossIcon, Typography } from '@shopgate/engage/components';
|
|
5
5
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
const useStyles = makeStyles()({
|
|
7
|
+
const useStyles = makeStyles()(theme => ({
|
|
8
8
|
root: {
|
|
9
9
|
display: 'flex',
|
|
10
10
|
flexDirection: 'row',
|
|
@@ -15,30 +15,29 @@ const useStyles = makeStyles()({
|
|
|
15
15
|
paddingBottom: 16
|
|
16
16
|
},
|
|
17
17
|
title: {
|
|
18
|
-
flex: 1
|
|
19
|
-
fontSize: '1.25rem'
|
|
18
|
+
flex: 1
|
|
20
19
|
},
|
|
21
20
|
closeButton: {
|
|
22
|
-
fontSize:
|
|
21
|
+
fontSize: theme.components.icon.small,
|
|
23
22
|
marginRight: 12,
|
|
24
23
|
cursor: 'pointer',
|
|
25
|
-
color:
|
|
24
|
+
color: theme.palette.primary.main
|
|
26
25
|
},
|
|
27
26
|
actionButton: {
|
|
28
27
|
cursor: 'pointer',
|
|
29
28
|
marginLeft: 16,
|
|
30
|
-
color:
|
|
31
|
-
fontWeight:
|
|
29
|
+
color: theme.palette.primary.main,
|
|
30
|
+
fontWeight: theme.typography.fontWeightBold,
|
|
32
31
|
padding: 8
|
|
33
32
|
},
|
|
34
33
|
actionButtonSecondary: {
|
|
35
34
|
cursor: 'pointer',
|
|
36
35
|
marginLeft: 16,
|
|
37
|
-
color:
|
|
38
|
-
fontWeight:
|
|
36
|
+
color: theme.palette.primary.main,
|
|
37
|
+
fontWeight: theme.typography.fontWeightMedium,
|
|
39
38
|
padding: 8
|
|
40
39
|
}
|
|
41
|
-
});
|
|
40
|
+
}));
|
|
42
41
|
|
|
43
42
|
/**
|
|
44
43
|
* Filter Modal Title
|
|
@@ -59,7 +58,9 @@ const FilterModalTitle = ({
|
|
|
59
58
|
onClick: close,
|
|
60
59
|
className: classes.closeButton,
|
|
61
60
|
children: /*#__PURE__*/_jsx(CrossIcon, {})
|
|
62
|
-
}), /*#__PURE__*/_jsx(
|
|
61
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
62
|
+
variant: "h3",
|
|
63
|
+
component: "span",
|
|
63
64
|
className: classes.title,
|
|
64
65
|
children: i18n.text('titles.filter')
|
|
65
66
|
}), /*#__PURE__*/_jsx(Ripple, {
|
|
@@ -2,16 +2,12 @@ import React, { useState, useMemo, memo, useCallback } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { ResponsiveContainer } from '@shopgate/engage/components';
|
|
4
4
|
import { hasNewServices } from '@shopgate/engage/core/helpers';
|
|
5
|
-
import { themeConfig } from '@shopgate/engage';
|
|
6
5
|
import { SortProvider, SORT_SCOPE_CATEGORY, SORT_SCOPE_SEARCH } from '@shopgate/engage/filter';
|
|
7
6
|
import { makeStyles, useTheme } from '@shopgate/engage/styles';
|
|
8
7
|
import Provider from "./FilterBarProvider";
|
|
9
8
|
import Content from "./components/Content";
|
|
10
9
|
import Modal from "./components/FilterModal";
|
|
11
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
const {
|
|
13
|
-
colors
|
|
14
|
-
} = themeConfig;
|
|
15
11
|
const useStyles = makeStyles()({
|
|
16
12
|
root: {
|
|
17
13
|
transition: 'transform 200ms cubic-bezier(0.25, 0.1, 0.25, 1)'
|
|
@@ -37,11 +33,11 @@ const FilterBar = ({
|
|
|
37
33
|
setActive(count > 0);
|
|
38
34
|
}, []);
|
|
39
35
|
const style = useMemo(() => hasNewServices() ? {
|
|
40
|
-
background:
|
|
41
|
-
color: active ?
|
|
36
|
+
background: theme.palette.background.emphasized,
|
|
37
|
+
color: active ? theme.palette.primary.main : theme.palette.text.primary
|
|
42
38
|
} : {
|
|
43
|
-
background: active ?
|
|
44
|
-
color: active ?
|
|
39
|
+
background: active ? theme.palette.secondary.main : theme.palette.background.emphasized,
|
|
40
|
+
color: active ? theme.palette.secondary.contrastText : theme.palette.text.primary
|
|
45
41
|
}, [active, theme]);
|
|
46
42
|
const sortScope = useMemo(() => categoryId ? SORT_SCOPE_CATEGORY : SORT_SCOPE_SEARCH, [categoryId]);
|
|
47
43
|
return /*#__PURE__*/_jsx("div", {
|
|
@@ -5,12 +5,8 @@ import { PRODUCT_PRICE_STRIKED, PRODUCT_PRICE_STRIKED_AFTER, PRODUCT_PRICE_STRIK
|
|
|
5
5
|
import { withPriceCalculation } from '@shopgate/engage/product/hocs';
|
|
6
6
|
import { useWidgetSettings } from '@shopgate/engage/core/hooks';
|
|
7
7
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
8
|
-
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
9
8
|
import connect from "./connector";
|
|
10
9
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
-
const {
|
|
12
|
-
colors
|
|
13
|
-
} = themeConfig;
|
|
14
10
|
const useStyles = makeStyles()(theme => ({
|
|
15
11
|
placeholder: {
|
|
16
12
|
height: 16,
|
|
@@ -19,13 +15,13 @@ const useStyles = makeStyles()(theme => ({
|
|
|
19
15
|
marginBottom: 2
|
|
20
16
|
},
|
|
21
17
|
msrp: {
|
|
22
|
-
color:
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
color: theme.palette.grey.dark,
|
|
19
|
+
marginRight: theme.spacing(0.5),
|
|
20
|
+
fontSize: theme.typography.body2.fontSize
|
|
25
21
|
},
|
|
26
22
|
msrpStriked: {
|
|
27
23
|
display: 'inline',
|
|
28
|
-
fontSize:
|
|
24
|
+
fontSize: theme.typography.body2.fontSize
|
|
29
25
|
}
|
|
30
26
|
}));
|
|
31
27
|
|