@shopgate/engage 7.31.4-beta.1 → 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 +9 -8
- 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
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { connect } from 'react-redux';
|
|
3
3
|
import defaultsDeep from 'lodash/defaultsDeep';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
+
import { Typography } from '@shopgate/engage/components';
|
|
5
6
|
import { makeStyles, useTheme } from '@shopgate/engage/styles';
|
|
6
7
|
import { makeGetLocationInventory } from "../../selectors";
|
|
7
8
|
import { getThemeSettings } from "../../../core";
|
|
@@ -16,7 +17,6 @@ const useStyles = makeStyles()((theme, {
|
|
|
16
17
|
}) => ({
|
|
17
18
|
defaultClassName: {
|
|
18
19
|
color: availabilityTextColor,
|
|
19
|
-
fontSize: '0.75rem',
|
|
20
20
|
margin: 0,
|
|
21
21
|
':not(:empty) ~ *': {
|
|
22
22
|
marginLeft: 14
|
|
@@ -73,7 +73,9 @@ const StockInfoUnwrapped = ({
|
|
|
73
73
|
return /*#__PURE__*/_jsx(SurroundPortals, {
|
|
74
74
|
portalName: PRODUCT_LOCATION_STOCK_INFO,
|
|
75
75
|
portalProps: portalProps,
|
|
76
|
-
children: /*#__PURE__*/_jsx(
|
|
76
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
|
77
|
+
variant: "caption",
|
|
78
|
+
component: "span",
|
|
77
79
|
className: cx(classes.defaultClassName, className),
|
|
78
80
|
children: /*#__PURE__*/_jsx(StockInfoInventory, {
|
|
79
81
|
availabilityText: availabilityText,
|
|
@@ -4,7 +4,7 @@ import PlaceholderLabel from '@shopgate/pwa-ui-shared/PlaceholderLabel';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
6
6
|
import { getPreferredLocation, makeGetLocationInventory } from "../../selectors";
|
|
7
|
-
import { I18n, SurroundPortals } from "../../../components";
|
|
7
|
+
import { I18n, SurroundPortals, Typography } from "../../../components";
|
|
8
8
|
import { StockInfo } from "../StockInfo";
|
|
9
9
|
import { PRODUCT_LOCATION_STOCK_INFO_LIST } from "../../constants/Portals";
|
|
10
10
|
import { showInventoryInLists } from "../../helpers/showInventoryInLists";
|
|
@@ -26,8 +26,7 @@ const makeMapStateToProps = () => {
|
|
|
26
26
|
const useStyles = makeStyles()({
|
|
27
27
|
wrapper: {
|
|
28
28
|
flexDirection: 'row',
|
|
29
|
-
alignItems: 'flex-end'
|
|
30
|
-
fontSize: '0.65rem'
|
|
29
|
+
alignItems: 'flex-end'
|
|
31
30
|
},
|
|
32
31
|
text: {
|
|
33
32
|
margin: '0 !important'
|
|
@@ -59,13 +58,13 @@ const StockInfoLists = ({
|
|
|
59
58
|
location: preferredLocation,
|
|
60
59
|
product
|
|
61
60
|
};
|
|
62
|
-
/* eslint-disable jsx-a11y/aria-role */
|
|
63
61
|
return /*#__PURE__*/_jsx(SurroundPortals, {
|
|
64
62
|
portalName: PRODUCT_LOCATION_STOCK_INFO_LIST,
|
|
65
63
|
portalProps: portalProps,
|
|
66
|
-
children: /*#__PURE__*/_jsx(
|
|
64
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
|
65
|
+
variant: "caption",
|
|
66
|
+
component: "div",
|
|
67
67
|
className: classes.wrapper,
|
|
68
|
-
role: "text",
|
|
69
68
|
children: /*#__PURE__*/_jsxs(PlaceholderLabel, {
|
|
70
69
|
ready: !!inventory,
|
|
71
70
|
children: [/*#__PURE__*/_jsx(StockInfo, {
|
|
@@ -84,7 +83,6 @@ const StockInfoLists = ({
|
|
|
84
83
|
})
|
|
85
84
|
})
|
|
86
85
|
});
|
|
87
|
-
/* eslint-enable jsx-a11y/aria-role */
|
|
88
86
|
};
|
|
89
87
|
StockInfoLists.defaultProps = {
|
|
90
88
|
inventory: null,
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { i18n } from '@shopgate/engage/core/helpers';
|
|
3
|
-
import { MagnifierIcon, LocatorIcon, Link } from '@shopgate/engage/components';
|
|
3
|
+
import { MagnifierIcon, LocatorIcon, Link, Typography } from '@shopgate/engage/components';
|
|
4
4
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
5
|
-
import { themeColors } from '@shopgate/pwa-common/helpers/config';
|
|
6
5
|
import { STORE_FINDER_PATTERN } from "../../../constants";
|
|
7
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
const useStyles = makeStyles()({
|
|
7
|
+
const useStyles = makeStyles()(theme => ({
|
|
9
8
|
container: {
|
|
10
9
|
margin: '16px 0px'
|
|
11
10
|
},
|
|
12
11
|
title: {
|
|
13
|
-
fontSize: '20px',
|
|
14
|
-
fontWeight: '500',
|
|
15
|
-
color: 'var(--color-primary)',
|
|
16
12
|
marginBottom: '8px'
|
|
17
13
|
},
|
|
18
14
|
inputCell: {
|
|
@@ -20,8 +16,8 @@ const useStyles = makeStyles()({
|
|
|
20
16
|
},
|
|
21
17
|
inputContainer: {
|
|
22
18
|
position: 'relative',
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
border: `1px solid ${theme.components.border.light}`,
|
|
20
|
+
background: theme.components.input.background,
|
|
25
21
|
borderRadius: 4,
|
|
26
22
|
display: 'flex',
|
|
27
23
|
alignItems: 'center',
|
|
@@ -30,8 +26,8 @@ const useStyles = makeStyles()({
|
|
|
30
26
|
inputIcon: {
|
|
31
27
|
padding: 0,
|
|
32
28
|
margin: '0 8px',
|
|
33
|
-
color:
|
|
34
|
-
fontSize:
|
|
29
|
+
color: theme.palette.grey.dark,
|
|
30
|
+
fontSize: theme.components.icon.small,
|
|
35
31
|
flexShrink: 0,
|
|
36
32
|
outline: 0
|
|
37
33
|
},
|
|
@@ -48,7 +44,7 @@ const useStyles = makeStyles()({
|
|
|
48
44
|
height: '100%',
|
|
49
45
|
width: '100%'
|
|
50
46
|
}
|
|
51
|
-
});
|
|
47
|
+
}));
|
|
52
48
|
|
|
53
49
|
/**
|
|
54
50
|
* Find more stores component.
|
|
@@ -60,7 +56,10 @@ const FindMoreStores = () => {
|
|
|
60
56
|
} = useStyles();
|
|
61
57
|
return /*#__PURE__*/_jsxs("div", {
|
|
62
58
|
className: classes.container,
|
|
63
|
-
children: [/*#__PURE__*/_jsx(
|
|
59
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
60
|
+
variant: "h3",
|
|
61
|
+
component: "div",
|
|
62
|
+
color: "primary",
|
|
64
63
|
className: classes.title,
|
|
65
64
|
"aria-hidden": true,
|
|
66
65
|
children: i18n.text('location.findMoreStores')
|
|
@@ -6,12 +6,11 @@ import { generateGoogleMapsDirectionsUrl, i18n } from '@shopgate/engage/core';
|
|
|
6
6
|
import { useDispatch } from 'react-redux';
|
|
7
7
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
const useStyles = makeStyles()({
|
|
10
|
-
container: {},
|
|
9
|
+
const useStyles = makeStyles()(theme => ({
|
|
11
10
|
buttonText: {
|
|
12
|
-
color:
|
|
11
|
+
color: theme.palette.primary.main
|
|
13
12
|
}
|
|
14
|
-
});
|
|
13
|
+
}));
|
|
15
14
|
|
|
16
15
|
/**
|
|
17
16
|
* @param {Object} props The component props
|
|
@@ -39,7 +38,6 @@ const GetDirectionsButton = ({
|
|
|
39
38
|
}));
|
|
40
39
|
};
|
|
41
40
|
return /*#__PURE__*/_jsx("div", {
|
|
42
|
-
className: classes.container,
|
|
43
41
|
children: /*#__PURE__*/_jsx(Button, {
|
|
44
42
|
onClick: handleClick,
|
|
45
43
|
role: "button",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useContext, useMemo } from 'react';
|
|
2
|
-
import { LocationIcon, Button, Link, ConditionalWrapper } from '@shopgate/engage/components';
|
|
2
|
+
import { LocationIcon, Button, Link, ConditionalWrapper, Typography } from '@shopgate/engage/components';
|
|
3
3
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
4
4
|
import { getWeekDaysOrder } from '@shopgate/engage/core';
|
|
5
5
|
import { i18n } from '@shopgate/engage/core/helpers';
|
|
@@ -7,24 +7,20 @@ import moment from 'moment';
|
|
|
7
7
|
import { StoreDetailsContext } from "../../../providers/StoreDetailsContext";
|
|
8
8
|
import GetDirectionsButton from "./GetDirectionsButton";
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
|
-
const useStyles = makeStyles()({
|
|
10
|
+
const useStyles = makeStyles()(theme => ({
|
|
11
11
|
headerWrapper: {
|
|
12
12
|
display: 'flex'
|
|
13
13
|
},
|
|
14
14
|
headerIcon: {
|
|
15
|
-
color:
|
|
16
|
-
fontSize:
|
|
15
|
+
color: theme.palette.primary.main,
|
|
16
|
+
fontSize: theme.components.icon.small,
|
|
17
17
|
alignContent: 'center',
|
|
18
18
|
marginRight: 4
|
|
19
19
|
},
|
|
20
20
|
header: {
|
|
21
|
-
color:
|
|
22
|
-
fontWeight: '600',
|
|
23
|
-
fontSize: 20
|
|
21
|
+
color: theme.palette.primary.main
|
|
24
22
|
},
|
|
25
23
|
locationName: {
|
|
26
|
-
fontSize: 20,
|
|
27
|
-
fontWeight: '600',
|
|
28
24
|
marginBottom: 8
|
|
29
25
|
},
|
|
30
26
|
locationRow: {
|
|
@@ -44,29 +40,21 @@ const useStyles = makeStyles()({
|
|
|
44
40
|
minWidth: '250px',
|
|
45
41
|
maxWidth: '455px'
|
|
46
42
|
},
|
|
47
|
-
storeHours: {
|
|
48
|
-
fontSize: 17,
|
|
49
|
-
fontWeight: '600'
|
|
50
|
-
},
|
|
51
43
|
storeHoursLine: {},
|
|
52
44
|
storeHoursWeekday: {
|
|
53
45
|
textAlign: 'left'
|
|
54
46
|
},
|
|
55
47
|
bold: {
|
|
56
|
-
fontWeight:
|
|
48
|
+
fontWeight: theme.typography.fontWeightBold
|
|
57
49
|
},
|
|
58
50
|
storeHoursOpeningTime: {
|
|
59
51
|
textAlign: 'right'
|
|
60
52
|
},
|
|
61
|
-
phone: {
|
|
62
|
-
fontSize: 17,
|
|
63
|
-
fontWeight: '600'
|
|
64
|
-
},
|
|
65
53
|
phoneNumber: {
|
|
66
54
|
textDecoration: 'underline'
|
|
67
55
|
},
|
|
68
56
|
makeMyStoreButton: {
|
|
69
|
-
color:
|
|
57
|
+
color: theme.palette.primary.main
|
|
70
58
|
},
|
|
71
59
|
comingSoon: {
|
|
72
60
|
fontStyle: 'italic'
|
|
@@ -78,7 +66,7 @@ const useStyles = makeStyles()({
|
|
|
78
66
|
flexWrap: 'wrap',
|
|
79
67
|
margin: '8px 0'
|
|
80
68
|
}
|
|
81
|
-
});
|
|
69
|
+
}));
|
|
82
70
|
|
|
83
71
|
/**
|
|
84
72
|
* Store details component.
|
|
@@ -123,12 +111,18 @@ const StoreDetails = () => {
|
|
|
123
111
|
className: classes.icon,
|
|
124
112
|
size: 20
|
|
125
113
|
})
|
|
126
|
-
}), /*#__PURE__*/_jsx(
|
|
114
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
115
|
+
variant: "h3",
|
|
116
|
+
component: "div",
|
|
117
|
+
fontWeight: "bold",
|
|
127
118
|
className: classes.header,
|
|
128
119
|
children: isRouteLocationPreferred ? i18n.text('location.myStore') : i18n.text('location.makeMyStore')
|
|
129
120
|
})]
|
|
130
121
|
})
|
|
131
|
-
}), /*#__PURE__*/_jsx(
|
|
122
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
123
|
+
variant: "h3",
|
|
124
|
+
component: "div",
|
|
125
|
+
fontWeight: "bold",
|
|
132
126
|
className: classes.locationName,
|
|
133
127
|
children: routeLocation.name
|
|
134
128
|
}), /*#__PURE__*/_jsxs("div", {
|
|
@@ -162,8 +156,10 @@ const StoreDetails = () => {
|
|
|
162
156
|
children: i18n.text('location.comingSoon')
|
|
163
157
|
})]
|
|
164
158
|
}), address?.phoneNumber && /*#__PURE__*/_jsxs(_Fragment, {
|
|
165
|
-
children: [/*#__PURE__*/_jsx(
|
|
166
|
-
|
|
159
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
160
|
+
variant: "h4",
|
|
161
|
+
component: "div",
|
|
162
|
+
fontWeight: "bold",
|
|
167
163
|
children: `${i18n.text('location.phone')}: `
|
|
168
164
|
}), /*#__PURE__*/_jsx("div", {
|
|
169
165
|
className: classes.phoneNumber,
|
|
@@ -179,8 +175,10 @@ const StoreDetails = () => {
|
|
|
179
175
|
})]
|
|
180
176
|
}), hasOpeningHours && /*#__PURE__*/_jsxs("div", {
|
|
181
177
|
className: classes.storeHoursColumn,
|
|
182
|
-
children: [/*#__PURE__*/_jsx(
|
|
183
|
-
|
|
178
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
179
|
+
variant: "h4",
|
|
180
|
+
component: "div",
|
|
181
|
+
fontWeight: "bold",
|
|
184
182
|
children: `${i18n.text('location.storeHours')}:`
|
|
185
183
|
}), /*#__PURE__*/_jsx("table", {
|
|
186
184
|
children: /*#__PURE__*/_jsx("tbody", {
|
|
@@ -12,7 +12,7 @@ import { historyPush } from '@shopgate/engage/core';
|
|
|
12
12
|
import { MAP_RADIUS_KM } from "../../../constants";
|
|
13
13
|
import { StoreDetailsContext } from "../../../providers/StoreDetailsContext";
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
-
const useStyles = makeStyles()({
|
|
15
|
+
const useStyles = makeStyles()(theme => ({
|
|
16
16
|
container: {
|
|
17
17
|
height: '100%',
|
|
18
18
|
width: '100%'
|
|
@@ -21,11 +21,11 @@ const useStyles = makeStyles()({
|
|
|
21
21
|
' svg': {
|
|
22
22
|
height: 40,
|
|
23
23
|
width: 40,
|
|
24
|
-
fontSize:
|
|
25
|
-
color:
|
|
24
|
+
fontSize: theme.components.icon.medium,
|
|
25
|
+
color: theme.palette.primary.main
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
});
|
|
28
|
+
}));
|
|
29
29
|
Leaflet.Map.addInitHook('addHandler', 'gestureHandling', GestureHandling);
|
|
30
30
|
|
|
31
31
|
/**
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { i18n } from '@shopgate/engage/core/helpers';
|
|
3
|
+
import { Typography } from '@shopgate/engage/components';
|
|
3
4
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
4
5
|
import StoresNearbyListItem from "./StoresNearbyListItem";
|
|
5
6
|
import { StoreDetailsContext } from "../../../providers/StoreDetailsContext";
|
|
6
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
8
|
const useStyles = makeStyles()({
|
|
8
9
|
title: {
|
|
9
|
-
fontSize: 20,
|
|
10
|
-
fontWeight: '600',
|
|
11
10
|
marginBottom: 12
|
|
12
11
|
},
|
|
13
12
|
table: {
|
|
@@ -27,7 +26,10 @@ const StoresNearby = () => {
|
|
|
27
26
|
nearbyLocations
|
|
28
27
|
} = useContext(StoreDetailsContext);
|
|
29
28
|
return /*#__PURE__*/_jsxs("div", {
|
|
30
|
-
children: [/*#__PURE__*/_jsx(
|
|
29
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
30
|
+
variant: "h3",
|
|
31
|
+
component: "div",
|
|
32
|
+
fontWeight: "bold",
|
|
31
33
|
className: classes.title,
|
|
32
34
|
children: i18n.text('location.storesNearby')
|
|
33
35
|
}), nearbyLocations.length > 0 && /*#__PURE__*/_jsx("table", {
|
|
@@ -2,21 +2,20 @@ import React, { useContext } from 'react';
|
|
|
2
2
|
import { useDispatch } from 'react-redux';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
5
|
-
import { Button } from '@shopgate/engage/components';
|
|
5
|
+
import { Button, Typography } from '@shopgate/engage/components';
|
|
6
6
|
import { i18n } from '@shopgate/engage/core/helpers';
|
|
7
7
|
import { historyPush } from '@shopgate/engage/core';
|
|
8
8
|
import formatDistance from "../../../helpers/formatDistance";
|
|
9
9
|
import { STORE_DETAILS_PATH } from "../../../constants";
|
|
10
10
|
import { StoreDetailsContext } from "../../../providers/StoreDetailsContext";
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
const useStyles = makeStyles()({
|
|
12
|
+
const useStyles = makeStyles()(theme => ({
|
|
13
13
|
button: {
|
|
14
|
-
fontSize: '14px !important',
|
|
15
14
|
padding: '0px !important'
|
|
16
15
|
},
|
|
17
16
|
locationRow: {
|
|
18
|
-
borderBottom:
|
|
19
|
-
borderTop:
|
|
17
|
+
borderBottom: `1px solid ${theme.components.border.light}`,
|
|
18
|
+
borderTop: `1px solid ${theme.components.border.light}`,
|
|
20
19
|
'> td:first-of-type > div': {
|
|
21
20
|
paddingLeft: 0
|
|
22
21
|
},
|
|
@@ -28,7 +27,7 @@ const useStyles = makeStyles()({
|
|
|
28
27
|
textWrapMode: 'nowrap',
|
|
29
28
|
alignContent: 'center',
|
|
30
29
|
verticalAlign: 'middle',
|
|
31
|
-
fontWeight:
|
|
30
|
+
fontWeight: theme.typography.fontWeightMedium
|
|
32
31
|
},
|
|
33
32
|
makeMyStore: {
|
|
34
33
|
textWrapMode: 'nowrap',
|
|
@@ -56,7 +55,7 @@ const useStyles = makeStyles()({
|
|
|
56
55
|
flexWrap: 'wrap',
|
|
57
56
|
justifyContent: 'flex-end'
|
|
58
57
|
}
|
|
59
|
-
});
|
|
58
|
+
}));
|
|
60
59
|
|
|
61
60
|
/**
|
|
62
61
|
* Shows a location in a row
|
|
@@ -129,7 +128,12 @@ const StoresNearbyListItem = ({
|
|
|
129
128
|
flat: true,
|
|
130
129
|
disabled: isPreferredLocation,
|
|
131
130
|
wrapContent: false,
|
|
132
|
-
children:
|
|
131
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
|
132
|
+
variant: "body2",
|
|
133
|
+
component: "span",
|
|
134
|
+
fontWeight: "bold",
|
|
135
|
+
children: `${i18n.text('location.makeMyStore')}`
|
|
136
|
+
})
|
|
133
137
|
}), isComingSoon && /*#__PURE__*/_jsx(Button, {
|
|
134
138
|
className: classes.button,
|
|
135
139
|
role: "button",
|
|
@@ -137,7 +141,12 @@ const StoresNearbyListItem = ({
|
|
|
137
141
|
flat: true,
|
|
138
142
|
disabled: true,
|
|
139
143
|
wrapContent: false,
|
|
140
|
-
children:
|
|
144
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
|
145
|
+
variant: "body2",
|
|
146
|
+
component: "span",
|
|
147
|
+
fontWeight: "bold",
|
|
148
|
+
children: i18n.text('location.comingSoon')
|
|
149
|
+
})
|
|
141
150
|
})]
|
|
142
151
|
}), /*#__PURE__*/_jsx("div", {
|
|
143
152
|
className: classes.storeInfo,
|
|
@@ -148,7 +157,12 @@ const StoresNearbyListItem = ({
|
|
|
148
157
|
flat: true,
|
|
149
158
|
onClick: () => openStoreDetails(code),
|
|
150
159
|
wrapContent: false,
|
|
151
|
-
children:
|
|
160
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
|
161
|
+
variant: "body2",
|
|
162
|
+
component: "span",
|
|
163
|
+
fontWeight: "bold",
|
|
164
|
+
children: i18n.text('locations.details')
|
|
165
|
+
})
|
|
152
166
|
})
|
|
153
167
|
})]
|
|
154
168
|
})
|
|
@@ -5,15 +5,15 @@ import { makeStyles } from '@shopgate/engage/styles';
|
|
|
5
5
|
import { RippleButton } from '@shopgate/engage/components';
|
|
6
6
|
import connect from "./StoreFinderGetDirectionsButton.connector";
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
const useStyles = makeStyles()({
|
|
8
|
+
const useStyles = makeStyles()(theme => ({
|
|
9
9
|
container: {},
|
|
10
10
|
button: {
|
|
11
11
|
width: '100%',
|
|
12
|
-
background:
|
|
13
|
-
color:
|
|
14
|
-
fontSize:
|
|
12
|
+
background: `${theme.palette.primary.main} !important`,
|
|
13
|
+
color: `${theme.palette.primary.contrastText} !important`,
|
|
14
|
+
fontSize: `${theme.typography.body2.fontSize} !important`
|
|
15
15
|
}
|
|
16
|
-
});
|
|
16
|
+
}));
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* @param {Object} props The component props
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import _isEmpty from "lodash/isEmpty";
|
|
2
2
|
import _every from "lodash/every";
|
|
3
3
|
import React, { useContext } from 'react';
|
|
4
|
+
import { Typography } from '@shopgate/engage/components';
|
|
4
5
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
5
|
-
import { themeColors } from '@shopgate/pwa-common/helpers/config';
|
|
6
6
|
import { StoreContext } from "./Store.context";
|
|
7
7
|
import { StoreOpeningHours } from "../StoreList/StoreOpeningHours";
|
|
8
8
|
import { Accordion, I18n } from "../../../components";
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
const useStyles = makeStyles()({
|
|
10
|
+
const useStyles = makeStyles()(theme => ({
|
|
11
11
|
accordionHeader: {
|
|
12
|
-
borderTop: `1px solid ${
|
|
12
|
+
borderTop: `1px solid ${theme.components.border.light}`,
|
|
13
13
|
cursor: 'pointer',
|
|
14
14
|
' svg': {
|
|
15
15
|
display: 'inline'
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
accordionContent: {
|
|
19
|
-
fontSize: '0.875rem',
|
|
20
19
|
' > div': {
|
|
21
20
|
padding: 0
|
|
22
21
|
}
|
|
23
22
|
}
|
|
24
|
-
});
|
|
23
|
+
}));
|
|
25
24
|
|
|
26
25
|
/**
|
|
27
26
|
* @returns {JSX}
|
|
@@ -41,7 +40,9 @@ const StoreFinderLocationDetails = () => {
|
|
|
41
40
|
renderLabel: () => /*#__PURE__*/_jsx(I18n.Text, {
|
|
42
41
|
string: "locations.details"
|
|
43
42
|
}),
|
|
44
|
-
children: /*#__PURE__*/_jsx(
|
|
43
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
|
44
|
+
variant: "body2",
|
|
45
|
+
component: "div",
|
|
45
46
|
className: classes.accordionContent,
|
|
46
47
|
children: /*#__PURE__*/_jsx(StoreOpeningHours, {
|
|
47
48
|
hours: operationHours,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useContext, useMemo } from 'react';
|
|
2
|
-
import { Grid, LocationIcon } from '@shopgate/engage/components';
|
|
2
|
+
import { Grid, LocationIcon, Typography } from '@shopgate/engage/components';
|
|
3
3
|
import { i18n } from '@shopgate/engage/core/helpers';
|
|
4
4
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
5
5
|
import { StoreContext } from "./Store.context";
|
|
@@ -14,7 +14,6 @@ const useStyles = makeStyles()(theme => ({
|
|
|
14
14
|
padding: theme.spacing(2),
|
|
15
15
|
display: 'flex',
|
|
16
16
|
flexDirection: 'column',
|
|
17
|
-
color: theme.palette.text.secondary,
|
|
18
17
|
' > *': {
|
|
19
18
|
margin: 0
|
|
20
19
|
},
|
|
@@ -25,11 +24,9 @@ const useStyles = makeStyles()(theme => ({
|
|
|
25
24
|
paddingTop: 0
|
|
26
25
|
},
|
|
27
26
|
' a': {
|
|
28
|
-
color:
|
|
27
|
+
color: theme.palette.primary.main,
|
|
29
28
|
textDecoration: 'underline'
|
|
30
29
|
},
|
|
31
|
-
fontSize: '0.875rem',
|
|
32
|
-
lineHeight: '1.5rem',
|
|
33
30
|
' > *:not(:last-child)': {
|
|
34
31
|
paddingBottom: theme.spacing(0.5),
|
|
35
32
|
paddingTop: 0
|
|
@@ -45,23 +42,13 @@ const useStyles = makeStyles()(theme => ({
|
|
|
45
42
|
paddingTop: 0
|
|
46
43
|
}
|
|
47
44
|
},
|
|
48
|
-
storeName: {
|
|
49
|
-
fontSize: '1rem',
|
|
50
|
-
fontWeight: 500,
|
|
51
|
-
color: theme.palette.text.primary
|
|
52
|
-
},
|
|
53
45
|
myStoreWrapper: {
|
|
54
46
|
display: 'flex',
|
|
55
47
|
alignItems: 'center'
|
|
56
48
|
},
|
|
57
|
-
myStore: {
|
|
58
|
-
color: 'var(--color-primary)',
|
|
59
|
-
fontSize: '1rem',
|
|
60
|
-
fontWeight: 500
|
|
61
|
-
},
|
|
62
49
|
myStoreIcon: {
|
|
63
50
|
' svg': {
|
|
64
|
-
color:
|
|
51
|
+
color: theme.palette.primary.main
|
|
65
52
|
},
|
|
66
53
|
marginRight: '4px'
|
|
67
54
|
},
|
|
@@ -100,7 +87,10 @@ const StoreFinderLocationHeader = () => {
|
|
|
100
87
|
selectedLocation
|
|
101
88
|
} = useContext(StoreFinderContext);
|
|
102
89
|
const isSelectedLocation = useMemo(() => selectedLocation?.code === store?.code, [selectedLocation, store]);
|
|
103
|
-
return /*#__PURE__*/_jsxs(
|
|
90
|
+
return /*#__PURE__*/_jsxs(Typography, {
|
|
91
|
+
variant: "body2",
|
|
92
|
+
component: "div",
|
|
93
|
+
color: "textSecondary",
|
|
104
94
|
className: classes.container,
|
|
105
95
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
106
96
|
className: classes.clickable,
|
|
@@ -109,8 +99,11 @@ const StoreFinderLocationHeader = () => {
|
|
|
109
99
|
grow: 1,
|
|
110
100
|
children: /*#__PURE__*/_jsxs("div", {
|
|
111
101
|
className: classes.storeNameWrapper,
|
|
112
|
-
children: [/*#__PURE__*/_jsx(
|
|
113
|
-
|
|
102
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
103
|
+
variant: "body1",
|
|
104
|
+
component: "div",
|
|
105
|
+
color: "textPrimary",
|
|
106
|
+
fontWeight: "medium",
|
|
114
107
|
children: name
|
|
115
108
|
}), isSelectedLocation && /*#__PURE__*/_jsxs("div", {
|
|
116
109
|
className: classes.myStoreWrapper,
|
|
@@ -119,8 +112,11 @@ const StoreFinderLocationHeader = () => {
|
|
|
119
112
|
children: /*#__PURE__*/_jsx(LocationIcon, {
|
|
120
113
|
size: 20
|
|
121
114
|
})
|
|
122
|
-
}), /*#__PURE__*/_jsx(
|
|
123
|
-
|
|
115
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
116
|
+
variant: "body1",
|
|
117
|
+
component: "div",
|
|
118
|
+
color: "primary",
|
|
119
|
+
fontWeight: "medium",
|
|
124
120
|
children: i18n.text('location.myStore')
|
|
125
121
|
})]
|
|
126
122
|
})]
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import React, { useContext, forwardRef } from 'react';
|
|
2
2
|
import { CardList } from '@shopgate/engage/components';
|
|
3
3
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
4
|
-
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
5
4
|
import { StoreFinderContext } from "../../locations.context";
|
|
6
5
|
import { StoreContext } from "./Store.context";
|
|
7
6
|
import StoreFinderLocation from "./StoreFinderLocation";
|
|
8
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
const {
|
|
10
|
-
colors
|
|
11
|
-
} = themeConfig;
|
|
12
8
|
const useStyles = makeStyles()(theme => ({
|
|
13
9
|
container: {
|
|
14
10
|
paddingTop: 2,
|
|
@@ -20,8 +16,8 @@ const useStyles = makeStyles()(theme => ({
|
|
|
20
16
|
paddingTop: 0
|
|
21
17
|
},
|
|
22
18
|
card: {
|
|
23
|
-
background:
|
|
24
|
-
border: `1px solid ${
|
|
19
|
+
background: theme.palette.background.surface,
|
|
20
|
+
border: `1px solid ${theme.components.border.light}`,
|
|
25
21
|
boxSizing: 'border-box',
|
|
26
22
|
boxShadow: '0px 1px 2px rgba(0, 0, 0, 0.25)',
|
|
27
23
|
borderRadius: 3,
|
|
@@ -11,10 +11,10 @@ const useStyles = makeStyles()(theme => ({
|
|
|
11
11
|
},
|
|
12
12
|
selectLocationButton: {
|
|
13
13
|
width: '100%',
|
|
14
|
-
fontSize:
|
|
14
|
+
fontSize: `${theme.typography.body2.fontSize} !important`,
|
|
15
15
|
':not(:disabled)': {
|
|
16
|
-
background:
|
|
17
|
-
color:
|
|
16
|
+
background: `${theme.palette.primary.main} !important`,
|
|
17
|
+
color: `${theme.palette.primary.contrastText} !important`
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
}));
|
|
@@ -12,10 +12,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
12
12
|
const useStyles = makeStyles()(theme => ({
|
|
13
13
|
showStoreInfoButton: {
|
|
14
14
|
width: '100%',
|
|
15
|
-
fontSize:
|
|
15
|
+
fontSize: `${theme.typography.body2.fontSize} !important`,
|
|
16
16
|
':not(:disabled)': {
|
|
17
|
-
background:
|
|
18
|
-
color:
|
|
17
|
+
background: `${theme.palette.primary.main} !important`,
|
|
18
|
+
color: `${theme.palette.primary.contrastText} !important`
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
showStoreInfoButtonWrapper: {
|
|
@@ -11,12 +11,12 @@ const useStyles = makeStyles()(theme => ({
|
|
|
11
11
|
container: {
|
|
12
12
|
display: 'flex',
|
|
13
13
|
flexFlow: 'row nowrap',
|
|
14
|
-
color:
|
|
14
|
+
color: theme.palette.text.secondary,
|
|
15
15
|
marginBottom: 4
|
|
16
16
|
},
|
|
17
17
|
addressIcon: {
|
|
18
|
-
color:
|
|
19
|
-
fontSize:
|
|
18
|
+
color: theme.palette.text.secondary,
|
|
19
|
+
fontSize: theme.components.icon.medium,
|
|
20
20
|
padding: theme.spacing(0.5, 2, 0, 0)
|
|
21
21
|
},
|
|
22
22
|
stockInfoContainer: {
|