@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { i18n } from '@shopgate/engage/core/helpers';
|
|
4
|
-
import { Image } from '@shopgate/engage/components';
|
|
4
|
+
import { Image, Typography } from '@shopgate/engage/components';
|
|
5
5
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
6
6
|
import { useCheckoutContext } from '@shopgate/engage/checkout/hooks/common';
|
|
7
7
|
import ShippingMethodIcon from '@shopgate/pwa-ui-shared/icons/ShippingMethodIcon';
|
|
@@ -9,8 +9,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
9
9
|
const useStyles = makeStyles()({
|
|
10
10
|
root: {
|
|
11
11
|
display: 'flex',
|
|
12
|
-
alignItems: 'center'
|
|
13
|
-
fontSize: 15
|
|
12
|
+
alignItems: 'center'
|
|
14
13
|
},
|
|
15
14
|
imageContainer: {
|
|
16
15
|
width: 32,
|
|
@@ -63,10 +62,12 @@ const ShippingMethod = ({
|
|
|
63
62
|
})
|
|
64
63
|
}), /*#__PURE__*/_jsxs("div", {
|
|
65
64
|
className: classes.label,
|
|
66
|
-
children: [/*#__PURE__*/_jsx(
|
|
65
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
66
|
+
component: "span",
|
|
67
67
|
className: classes.name,
|
|
68
68
|
children: serviceLevel?.name
|
|
69
|
-
}), /*#__PURE__*/_jsx(
|
|
69
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
70
|
+
component: "span",
|
|
70
71
|
children: serviceLevel?.cost ? i18n.price(serviceLevel?.cost, currencyCode, 2) : i18n.text('shipping.free_short')
|
|
71
72
|
})]
|
|
72
73
|
})]
|
|
@@ -5,7 +5,7 @@ import sortBy from 'lodash/sortBy';
|
|
|
5
5
|
import uniqBy from 'lodash/uniqBy';
|
|
6
6
|
import { i18n } from '@shopgate/engage/core/helpers';
|
|
7
7
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
8
|
-
import { RadioGroupV2 as RadioGroup, RadioCard, MessageBar } from '@shopgate/engage/components';
|
|
8
|
+
import { RadioGroupV2 as RadioGroup, RadioCard, MessageBar, Typography } from '@shopgate/engage/components';
|
|
9
9
|
import { useCheckoutContext } from '@shopgate/engage/checkout/hooks/common';
|
|
10
10
|
import ShippingMethod from "./ShippingMethod";
|
|
11
11
|
import connect from "./connector";
|
|
@@ -35,17 +35,14 @@ const useStyles = makeStyles()(theme => ({
|
|
|
35
35
|
padding: theme.spacing(0, 2, 4)
|
|
36
36
|
},
|
|
37
37
|
headline: {
|
|
38
|
-
fontSize: '1.25rem',
|
|
39
|
-
fontWeight: 'normal',
|
|
40
38
|
padding: theme.spacing(0, 1, 0, 0),
|
|
41
39
|
margin: theme.spacing(0, 0, 1, 0),
|
|
42
|
-
color: theme.palette.text.primary,
|
|
43
40
|
textTransform: 'none'
|
|
44
41
|
},
|
|
45
42
|
container: {
|
|
46
|
-
border:
|
|
43
|
+
border: `1px solid ${theme.components.border.light}`,
|
|
47
44
|
' li:nth-of-type(2n)': {
|
|
48
|
-
background:
|
|
45
|
+
background: theme.palette.background.emphasized
|
|
49
46
|
}
|
|
50
47
|
},
|
|
51
48
|
containerSingle: {
|
|
@@ -168,7 +165,10 @@ const ShippingMethods = ({
|
|
|
168
165
|
if (shippingMethods.length === 0) {
|
|
169
166
|
return /*#__PURE__*/_jsxs("div", {
|
|
170
167
|
className: classes.root,
|
|
171
|
-
children: [/*#__PURE__*/_jsx(
|
|
168
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
169
|
+
variant: "h3",
|
|
170
|
+
color: "textPrimary",
|
|
171
|
+
fontWeight: "regular",
|
|
172
172
|
className: classes.headline,
|
|
173
173
|
children: i18n.text('checkout.shippingMethod.title')
|
|
174
174
|
}), /*#__PURE__*/_jsx(MessageBar, {
|
|
@@ -185,7 +185,10 @@ const ShippingMethods = ({
|
|
|
185
185
|
}
|
|
186
186
|
return /*#__PURE__*/_jsxs("div", {
|
|
187
187
|
className: classes.root,
|
|
188
|
-
children: [/*#__PURE__*/_jsx(
|
|
188
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
189
|
+
variant: "h3",
|
|
190
|
+
color: "textPrimary",
|
|
191
|
+
fontWeight: "regular",
|
|
189
192
|
className: classes.headline,
|
|
190
193
|
children: i18n.text('checkout.shippingMethod.title')
|
|
191
194
|
}), shippingMethods.length === 1 ? /*#__PURE__*/_jsx("div", {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { connect } from 'react-redux';
|
|
2
|
-
import { makeGetShopSettingByKey
|
|
2
|
+
import { makeGetShopSettingByKey } from '@shopgate/engage/settings/selectors/shopSettings';
|
|
3
|
+
import { SHOP_SETTING_ORDER_SUPPLEMENTAL_CONTENT } from '@shopgate/engage/settings/constants/shopSettings';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Creates the mapStateToProps connector function.
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
+
import { Typography } from '@shopgate/engage/components';
|
|
3
4
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
4
5
|
import connect from "./SupplementalContent.connector";
|
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
7
|
const useStyles = makeStyles()(theme => ({
|
|
7
8
|
wrapper: {
|
|
8
9
|
display: 'block',
|
|
9
|
-
color: theme.palette.text.secondary,
|
|
10
|
-
fontSize: 12,
|
|
11
10
|
lineHeight: 'unset',
|
|
12
11
|
padding: theme.spacing(2, 0),
|
|
13
12
|
'> *:first-child/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */': {
|
|
@@ -25,7 +24,7 @@ const useStyles = makeStyles()(theme => ({
|
|
|
25
24
|
},
|
|
26
25
|
' a': {
|
|
27
26
|
textDecoration: 'underline',
|
|
28
|
-
color:
|
|
27
|
+
color: theme.palette.primary.main
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
30
|
}));
|
|
@@ -46,15 +45,15 @@ const SupplementalContent = ({
|
|
|
46
45
|
if (!text) {
|
|
47
46
|
return null;
|
|
48
47
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
return /*#__PURE__*/_jsx(Typography, {
|
|
49
|
+
variant: "caption",
|
|
50
|
+
component: "div",
|
|
51
|
+
color: "textSecondary",
|
|
52
52
|
className: cx(classes.wrapper, className),
|
|
53
53
|
dangerouslySetInnerHTML: {
|
|
54
54
|
__html: text
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
|
-
/* eslint-enable react/no-danger */
|
|
58
57
|
};
|
|
59
58
|
SupplementalContent.defaultProps = {
|
|
60
59
|
text: null,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useContext, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
2
|
import { connect, useStore } from 'react-redux';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
+
import { Typography } from '@shopgate/engage/components';
|
|
4
5
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
5
6
|
import { getPaymentMethods } from "../selectors/payment";
|
|
6
7
|
import { getCheckoutOrder } from "../selectors/order";
|
|
@@ -34,12 +35,9 @@ const mapDispatchToProps = dispatch => ({
|
|
|
34
35
|
});
|
|
35
36
|
const useStyles = makeStyles()(theme => ({
|
|
36
37
|
headline: {
|
|
37
|
-
fontSize: '1.25rem',
|
|
38
|
-
fontWeight: 'normal',
|
|
39
38
|
margin: theme.spacing(0, 0, 1, 0),
|
|
40
39
|
marginLeft: 16,
|
|
41
40
|
marginRight: 8,
|
|
42
|
-
color: theme.palette.text.primary,
|
|
43
41
|
textTransform: 'none'
|
|
44
42
|
},
|
|
45
43
|
section: {
|
|
@@ -160,7 +158,10 @@ const PaymentMethodProvider = ({
|
|
|
160
158
|
value: paymentMethodApi,
|
|
161
159
|
children: /*#__PURE__*/_jsxs("div", {
|
|
162
160
|
className: classes.section,
|
|
163
|
-
children: [/*#__PURE__*/_jsx(
|
|
161
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
162
|
+
variant: "h3",
|
|
163
|
+
color: "textPrimary",
|
|
164
|
+
fontWeight: "regular",
|
|
164
165
|
className: classes.headline,
|
|
165
166
|
children: i18n.text('checkout.payment.title')
|
|
166
167
|
}), /*#__PURE__*/_jsx("div", {
|
|
@@ -3,19 +3,17 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
4
4
|
import { getThemeSettings, showModal, MODAL_PIPELINE_ERROR } from '@shopgate/engage/core';
|
|
5
5
|
import { connect } from 'react-redux';
|
|
6
|
+
import { Typography } from '@shopgate/engage/components';
|
|
6
7
|
import { i18n } from "../../../core/helpers/i18n";
|
|
7
8
|
import { useCheckoutContext } from "../../hooks/common";
|
|
8
9
|
import { usePaypal } from "./sdk";
|
|
9
10
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
const useStyles = makeStyles()(
|
|
11
|
+
const useStyles = makeStyles()({
|
|
11
12
|
headline: {
|
|
12
|
-
fontSize: '1.25rem',
|
|
13
|
-
fontWeight: 'normal',
|
|
14
13
|
margin: '12px 0 12px 0',
|
|
15
|
-
color: theme.palette.text.primary,
|
|
16
14
|
textTransform: 'none'
|
|
17
15
|
}
|
|
18
|
-
})
|
|
16
|
+
});
|
|
19
17
|
|
|
20
18
|
/**
|
|
21
19
|
* Paypal Pay button
|
|
@@ -115,7 +113,10 @@ const PaypalPayButton = ({
|
|
|
115
113
|
return null;
|
|
116
114
|
}
|
|
117
115
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
118
|
-
children: [/*#__PURE__*/_jsx(
|
|
116
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
117
|
+
variant: "h3",
|
|
118
|
+
color: "textPrimary",
|
|
119
|
+
fontWeight: "regular",
|
|
119
120
|
className: classes.headline,
|
|
120
121
|
children: i18n.text('checkout.finalizePayment')
|
|
121
122
|
}), /*#__PURE__*/_jsx("div", {
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
|
|
2
2
|
import React, { useContext } from 'react';
|
|
3
|
-
import { themeConfig } from '@shopgate/engage';
|
|
4
3
|
import { i18n } from '@shopgate/engage/core/helpers';
|
|
5
4
|
import { TextField } from '@shopgate/engage/components';
|
|
6
|
-
import {
|
|
5
|
+
import { makeStyles, useTheme } from '@shopgate/engage/styles';
|
|
7
6
|
import { CardNumberElement, CardCvcElement, CardExpiryElement } from '@stripe/react-stripe-js';
|
|
8
7
|
import Section from "../../components/Checkout/CheckoutSection";
|
|
9
8
|
import { useCheckoutContext } from "../../hooks/common";
|
|
10
9
|
import StripeContext from "./StripeProvider.context";
|
|
11
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
const {
|
|
13
|
-
colors
|
|
14
|
-
} = themeConfig;
|
|
15
11
|
const useStyles = makeStyles()(theme => ({
|
|
16
12
|
root: {
|
|
17
13
|
padding: '0 16px',
|
|
@@ -19,12 +15,12 @@ const useStyles = makeStyles()(theme => ({
|
|
|
19
15
|
flexDirection: 'column',
|
|
20
16
|
flex: '0 0 auto',
|
|
21
17
|
' .formElement': {
|
|
22
|
-
background:
|
|
18
|
+
background: theme.palette.background.emphasized,
|
|
23
19
|
padding: 0,
|
|
24
20
|
marginBottom: 38,
|
|
25
21
|
borderTopLeftRadius: 4,
|
|
26
22
|
borderTopRightRadius: 4,
|
|
27
|
-
borderBottom: `1px solid ${
|
|
23
|
+
borderBottom: `1px solid ${theme.components.border.medium}`
|
|
28
24
|
},
|
|
29
25
|
' .formElement label': {
|
|
30
26
|
color: theme.palette.text.secondary,
|
|
@@ -100,6 +96,7 @@ const StripeCreditCard = () => {
|
|
|
100
96
|
const {
|
|
101
97
|
classes
|
|
102
98
|
} = useStyles();
|
|
99
|
+
const theme = useTheme();
|
|
103
100
|
const cardRef = React.useRef();
|
|
104
101
|
const {
|
|
105
102
|
error,
|
|
@@ -126,9 +123,9 @@ const StripeCreditCard = () => {
|
|
|
126
123
|
const textFieldStyles = {
|
|
127
124
|
style: {
|
|
128
125
|
base: {
|
|
129
|
-
color:
|
|
126
|
+
color: theme.palette.text.primary,
|
|
130
127
|
'::placeholder': {
|
|
131
|
-
color:
|
|
128
|
+
color: theme.palette.text.secondary
|
|
132
129
|
}
|
|
133
130
|
}
|
|
134
131
|
}
|
|
@@ -43,16 +43,16 @@ const useStyles = makeStyles()((theme, {
|
|
|
43
43
|
marginLeft: 'auto',
|
|
44
44
|
outline: 0,
|
|
45
45
|
padding: 9,
|
|
46
|
-
fontSize:
|
|
47
|
-
fontWeight:
|
|
46
|
+
fontSize: theme.typography.caption.fontSize,
|
|
47
|
+
fontWeight: theme.typography.fontWeightMedium,
|
|
48
48
|
textTransform: 'uppercase'
|
|
49
49
|
},
|
|
50
50
|
moreButtonInverted: {
|
|
51
51
|
marginLeft: 'auto',
|
|
52
52
|
outline: 0,
|
|
53
53
|
padding: 9,
|
|
54
|
-
fontSize:
|
|
55
|
-
fontWeight:
|
|
54
|
+
fontSize: theme.typography.caption.fontSize,
|
|
55
|
+
fontWeight: theme.typography.fontWeightMedium,
|
|
56
56
|
textTransform: 'uppercase'
|
|
57
57
|
}
|
|
58
58
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElementPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../components/Form/Builder/ElementPhoneNumber.jsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ElementPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../components/Form/Builder/ElementPhoneNumber.jsx"],"names":[],"mappings":";AAyDA;;;;GAIG;AACH,8EAgLG;uBA9OoB,OAAO"}
|
|
@@ -16,14 +16,10 @@ import fr from 'react-phone-number-input/locale/fr';
|
|
|
16
16
|
import pt from 'react-phone-number-input/locale/pt';
|
|
17
17
|
import flags from 'react-phone-number-input/flags';
|
|
18
18
|
import { useCountriesNames } from '@shopgate/engage/i18n';
|
|
19
|
-
import { themeConfig } from '@shopgate/engage';
|
|
20
19
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
21
20
|
import Label from '@shopgate/pwa-ui-shared/TextField/components/Label';
|
|
22
21
|
import FormHelper from "./FormHelper";
|
|
23
22
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
const {
|
|
25
|
-
colors
|
|
26
|
-
} = themeConfig;
|
|
27
23
|
const useStyles = makeStyles()(theme => ({
|
|
28
24
|
phoneField: {
|
|
29
25
|
position: 'relative',
|
|
@@ -32,11 +28,11 @@ const useStyles = makeStyles()(theme => ({
|
|
|
32
28
|
paddingBottom: theme.spacing(2.5),
|
|
33
29
|
' input.PhoneInputInput': {
|
|
34
30
|
outline: 'none',
|
|
35
|
-
fontSize:
|
|
31
|
+
fontSize: theme.typography.body1.fontSize,
|
|
36
32
|
lineHeight: '1.1875rem',
|
|
37
33
|
borderRadius: 0,
|
|
38
34
|
paddingBottom: theme.spacing(0.75),
|
|
39
|
-
borderBottom: `1px solid ${
|
|
35
|
+
borderBottom: `1px solid ${theme.components.border.medium}`,
|
|
40
36
|
'&:focus': {
|
|
41
37
|
borderBottom: `2px solid ${theme.palette.primary.main}`,
|
|
42
38
|
paddingBottom: theme.spacing(0.75) - 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stylePresets.d.ts","sourceRoot":"","sources":["../../../../components/Form/Builder/stylePresets.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stylePresets.d.ts","sourceRoot":"","sources":["../../../../components/Form/Builder/stylePresets.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;EAmBE;AAOK,6CAHI,MAAM,GACJ,MAAM,CA8HjB"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { themeConfig } from '@shopgate/engage';
|
|
2
1
|
import { responsiveMediaQuery } from '@shopgate/engage/styles';
|
|
3
|
-
const {
|
|
4
|
-
colors
|
|
5
|
-
} = themeConfig;
|
|
6
2
|
export const TWO_COLUMN_LAYOUT = {
|
|
7
3
|
[responsiveMediaQuery('>=md', {
|
|
8
4
|
webOnly: false
|
|
@@ -38,9 +34,8 @@ export const getOutlinedFormFields = theme => ({
|
|
|
38
34
|
position: 'relative',
|
|
39
35
|
textOverflow: 'unset',
|
|
40
36
|
whiteSpace: 'unset',
|
|
41
|
-
lineHeight: '15px',
|
|
42
37
|
bottom: 'unset',
|
|
43
|
-
padding: '
|
|
38
|
+
padding: '6px 8px 6px 16px'
|
|
44
39
|
}
|
|
45
40
|
},
|
|
46
41
|
' .formBuilderField': {
|
|
@@ -57,34 +52,34 @@ export const getOutlinedFormFields = theme => ({
|
|
|
57
52
|
},
|
|
58
53
|
' .textField, .formElement:not(.radioGroup):not(.checkbox), .phonePicker': {
|
|
59
54
|
paddingBottom: 8,
|
|
60
|
-
background:
|
|
55
|
+
background: theme.palette.background.emphasized,
|
|
61
56
|
padding: 0,
|
|
62
57
|
marginBottom: 32,
|
|
63
58
|
borderTopLeftRadius: 4,
|
|
64
59
|
borderTopRightRadius: 4,
|
|
65
|
-
borderBottom: `1px solid ${
|
|
60
|
+
borderBottom: `1px solid ${theme.components.border.medium}`
|
|
66
61
|
},
|
|
67
62
|
' .phonePickerError': {
|
|
68
63
|
borderBottom: `2px solid ${theme.palette.error.main}`
|
|
69
64
|
},
|
|
70
65
|
' .phonePickerFocused:not(.phonePickerError)': {
|
|
71
|
-
borderBottom:
|
|
66
|
+
borderBottom: `2px solid ${theme.palette.primary.main}`
|
|
72
67
|
},
|
|
73
68
|
' .formElement:not(.radioGroup) label': {
|
|
74
69
|
paddingLeft: 24,
|
|
75
|
-
color:
|
|
70
|
+
color: theme.palette.text.secondary,
|
|
76
71
|
transform: 'translate3d(0, -18px, 0) scale3d(0.75, 0.75, 0.75)'
|
|
77
72
|
},
|
|
78
73
|
' .textField label': {
|
|
79
74
|
paddingLeft: 17,
|
|
80
|
-
color:
|
|
75
|
+
color: theme.palette.text.secondary,
|
|
81
76
|
'&.floating': {
|
|
82
77
|
transform: 'translate3d(3px, -18px, 0) scale3d(0.75, 0.75, 0.75)'
|
|
83
78
|
}
|
|
84
79
|
},
|
|
85
80
|
' .formElement:not(.radioGroup) select, .formElement .info-field': {
|
|
86
81
|
paddingLeft: 16,
|
|
87
|
-
color:
|
|
82
|
+
color: theme.palette.text.primary
|
|
88
83
|
},
|
|
89
84
|
' .formElement:not(.radioGroup):not(.checkbox) svg': {
|
|
90
85
|
marginTop: 8,
|
|
@@ -92,7 +87,7 @@ export const getOutlinedFormFields = theme => ({
|
|
|
92
87
|
},
|
|
93
88
|
' .formElement:not(.radioGroup) .placeholder': {
|
|
94
89
|
paddingLeft: 20,
|
|
95
|
-
color:
|
|
90
|
+
color: theme.palette.text.secondary
|
|
96
91
|
},
|
|
97
92
|
' .formElement.disabled, .textField.disabled': {
|
|
98
93
|
' input, select, svg': {
|
|
@@ -104,7 +99,7 @@ export const getOutlinedFormFields = theme => ({
|
|
|
104
99
|
},
|
|
105
100
|
' .textField input': {
|
|
106
101
|
paddingLeft: 16,
|
|
107
|
-
color:
|
|
102
|
+
color: theme.palette.text.primary
|
|
108
103
|
},
|
|
109
104
|
' .underline': {
|
|
110
105
|
marginBottom: 0,
|
|
@@ -133,12 +128,12 @@ export const getOutlinedFormFields = theme => ({
|
|
|
133
128
|
},
|
|
134
129
|
' .phonePicker .PhoneInputInput': {
|
|
135
130
|
borderBottom: 'none',
|
|
136
|
-
color:
|
|
131
|
+
color: theme.palette.text.primary,
|
|
137
132
|
'&:focus': {
|
|
138
133
|
borderBottom: 'none'
|
|
139
134
|
},
|
|
140
135
|
'::placeholder': {
|
|
141
|
-
color:
|
|
136
|
+
color: theme.palette.text.secondary
|
|
142
137
|
}
|
|
143
138
|
},
|
|
144
139
|
' .phonePicker .errorText': {
|
|
@@ -154,6 +149,6 @@ export const getOutlinedFormFields = theme => ({
|
|
|
154
149
|
marginBottom: 8
|
|
155
150
|
},
|
|
156
151
|
' .placeholder': {
|
|
157
|
-
color:
|
|
152
|
+
color: theme.palette.grey.medium
|
|
158
153
|
}
|
|
159
154
|
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { connect } from 'react-redux';
|
|
2
|
-
import { hasWebBridge
|
|
2
|
+
import { hasWebBridge } from '@shopgate/engage/core';
|
|
3
|
+
import { makeGetShopSettingByKey } from '@shopgate/engage/settings/selectors/shopSettings';
|
|
4
|
+
import { SHOP_SETTING_SHOW_SHOP_LOGO_IN_APP, SHOP_SETTING_SHOW_SHOP_LOGO_IN_WEB } from '@shopgate/engage/settings/constants/shopSettings';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* Creates the mapStateToProps connector function.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../components/Menu/components/Item/index.jsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../components/Menu/components/Item/index.jsx"],"names":[],"mappings":";AAyBA;;;;GAIG;AACH,wDAHW,MAAM,GACJ,GAAG,CAAC,OAAO,CA+BvB;;;;;;;;;;QAUY,oCAAQ;;QACV,kCAAQ;;;;sBArEG,YAAY"}
|
|
@@ -2,22 +2,17 @@ import React, { useCallback } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import compose from 'lodash/fp/compose';
|
|
4
4
|
import Glow from '@shopgate/pwa-ui-shared/Glow';
|
|
5
|
-
import
|
|
6
|
-
import { makeStyles, getCSSCustomProp } from '@shopgate/engage/styles';
|
|
7
|
-
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
5
|
+
import { makeStyles } from '@shopgate/engage/styles';
|
|
8
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
const useStyles = makeStyles()(
|
|
10
|
-
background
|
|
11
|
-
}) => ({
|
|
7
|
+
const useStyles = makeStyles()(theme => ({
|
|
12
8
|
item: {
|
|
13
9
|
position: 'relative',
|
|
14
10
|
whiteSpace: 'nowrap',
|
|
15
|
-
padding: theme.spacing(1.
|
|
16
|
-
lineHeight: 1,
|
|
11
|
+
padding: theme.spacing(1.3, 2.75),
|
|
17
12
|
zIndex: 1,
|
|
18
13
|
cursor: 'pointer',
|
|
19
14
|
':hover': {
|
|
20
|
-
background
|
|
15
|
+
background: theme.alpha(theme.palette.primary.main, 0.04)
|
|
21
16
|
}
|
|
22
17
|
}
|
|
23
18
|
}));
|
|
@@ -38,16 +33,9 @@ const Item = ({
|
|
|
38
33
|
closeMenu,
|
|
39
34
|
onClick
|
|
40
35
|
}) => {
|
|
41
|
-
let background = themeConfig.colors.shade8;
|
|
42
|
-
const customPropColor = getCSSCustomProp('--color-primary');
|
|
43
|
-
if (customPropColor) {
|
|
44
|
-
background = Color(customPropColor).alpha(0.04).toString();
|
|
45
|
-
}
|
|
46
36
|
const {
|
|
47
37
|
classes
|
|
48
|
-
} = useStyles(
|
|
49
|
-
background
|
|
50
|
-
});
|
|
38
|
+
} = useStyles();
|
|
51
39
|
const handleClick = compose(onClick, () => setTimeout(closeMenu, CLOSE_DELAY));
|
|
52
40
|
const handleKeyPress = useCallback(event => {
|
|
53
41
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Menu/index.jsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Menu/index.jsx"],"names":[],"mappings":";AA+BA;;;;GAIG;AACH,kEAHW,MAAM,GACJ,GAAG,CAAC,OAAO,CAgDvB;;;;;;;;;;;;;;;;QAeU,kCAAS;;;;iBAzFH,mBAAmB;sBALd,YAAY"}
|
package/components/Menu/index.js
CHANGED
|
@@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
4
4
|
import { ConnectedReactPortal } from '@shopgate/engage/components';
|
|
5
5
|
import Backdrop from '@shopgate/pwa-common/components/Backdrop';
|
|
6
|
-
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
7
6
|
import Position from "./components/Position";
|
|
8
7
|
import Item from "./components/Item";
|
|
9
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -22,9 +21,9 @@ const useStyles = makeStyles()(theme => ({
|
|
|
22
21
|
left: 0,
|
|
23
22
|
padding: theme.spacing(1, 0),
|
|
24
23
|
minWidth: 130,
|
|
25
|
-
background:
|
|
24
|
+
background: theme.palette.background.surface,
|
|
26
25
|
borderRadius: 2,
|
|
27
|
-
boxShadow:
|
|
26
|
+
boxShadow: '0 2px 6px rgba(0, 0, 0, .4)'
|
|
28
27
|
}
|
|
29
28
|
}));
|
|
30
29
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageBar.d.ts","sourceRoot":"","sources":["../../../components/MessageBar/MessageBar.jsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"MessageBar.d.ts","sourceRoot":"","sources":["../../../components/MessageBar/MessageBar.jsx"],"names":[],"mappings":";mDA2IW,MAAM,GAKL,GAAG,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA/ID,YAAY;uBADX,OAAO"}
|