@shopgate/engage 7.32.0-beta.7 → 7.32.0-beta.9

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.
Files changed (188) hide show
  1. package/account/components/Profile/Profile.provider.d.ts +1 -1
  2. package/account/components/Profile/ProfileAddressBook.d.ts.map +1 -1
  3. package/account/components/Profile/ProfileAddressBook.js +13 -22
  4. package/account/components/Profile/ProfileAddressCard.d.ts.map +1 -1
  5. package/account/components/Profile/ProfileAddressCard.js +8 -18
  6. package/account/components/Profile/ProfileForm.d.ts.map +1 -1
  7. package/account/components/Profile/ProfileForm.js +15 -42
  8. package/account/components/ProfileContact/ProfileContact.js +13 -21
  9. package/admin-preview/components/FrontendSettingsPreviewBridge/FrontendSettingsPreviewBridge.d.ts.map +1 -1
  10. package/admin-preview/components/FrontendSettingsPreviewBridge/FrontendSettingsPreviewBridge.js +41 -7
  11. package/admin-preview/components/FrontendSettingsPreviewBridge/types.d.ts +7 -0
  12. package/admin-preview/components/FrontendSettingsPreviewBridge/types.d.ts.map +1 -1
  13. package/admin-preview/initialization/_internal/initialFrontendSettings.d.ts +32 -0
  14. package/admin-preview/initialization/_internal/initialFrontendSettings.d.ts.map +1 -0
  15. package/admin-preview/initialization/_internal/initialFrontendSettings.js +43 -0
  16. package/admin-preview/initialization/awaitInitialFrontendSettings.d.ts +22 -0
  17. package/admin-preview/initialization/awaitInitialFrontendSettings.d.ts.map +1 -0
  18. package/admin-preview/initialization/awaitInitialFrontendSettings.js +84 -0
  19. package/back-in-stock/components/BackInStockButton/index.js +5 -5
  20. package/cart/components/CartItem/CartItemProductLayout.js +1 -0
  21. package/cart/components/CartItem/CartItemProductLayoutWideRemoveItem.js +7 -14
  22. package/cart/components/CartItem/CartItemQuantityPicker.js +1 -0
  23. package/cart/components/CartItems/CartItemCardReservationLabelChangeStore.js +6 -24
  24. package/cart/components/CartSummaryWide/CartSummaryWide.js +2 -2
  25. package/cart/components/CartSummaryWide/CartSummaryWideCheckoutButton.js +9 -23
  26. package/cart/components/PaymentBar/PaymentBarCheckoutButton.js +8 -30
  27. package/cart/components/PaymentBar/testUtils/mockFactories.js +4 -11
  28. package/category/components/CategoryImage/index.js +13 -2
  29. package/checkout/components/AddressBook/AddressList.js +14 -23
  30. package/checkout/components/Checkout/CheckoutActions.js +4 -3
  31. package/checkout/components/Checkout/CheckoutAddress.js +8 -0
  32. package/checkout/components/Checkout/CheckoutSection.js +6 -2
  33. package/checkout/components/CheckoutConfirmation/CheckoutConfirmation.js +6 -7
  34. package/checkout/components/ResponsiveBackButton/ResponsiveBackButton.js +7 -17
  35. package/components/Badge/spec.js +6 -29
  36. package/components/Card/Card.js +1 -1
  37. package/components/ChipLayout/index.js +2 -4
  38. package/components/NavigationHandler/connector.js +1 -1
  39. package/components/NavigationHandler/index.d.ts +2 -2
  40. package/components/NavigationHandler/spec.js +10 -1
  41. package/components/Paper/Paper.d.ts +1 -2
  42. package/components/Paper/Paper.d.ts.map +1 -1
  43. package/components/Paper/spec.js +5 -22
  44. package/components/Tabs/components/Tab.d.ts.map +1 -1
  45. package/components/Tabs/components/Tab.js +14 -16
  46. package/components/Typography/Typography.d.ts +1 -1
  47. package/components/v2/Button/Button.d.ts +24 -13
  48. package/components/v2/Button/Button.d.ts.map +1 -1
  49. package/components/v2/Button/Button.js +139 -41
  50. package/components/v2/ButtonBase/ButtonBase.d.ts +50 -10
  51. package/components/v2/ButtonBase/ButtonBase.d.ts.map +1 -1
  52. package/components/v2/ButtonBase/ButtonBase.js +192 -17
  53. package/components/v2/ButtonBase/hooks.d.ts +0 -1
  54. package/components/v2/ButtonBase/hooks.d.ts.map +1 -1
  55. package/components/v2/ButtonBase/hooks.js +36 -12
  56. package/components/v2/ButtonGroup/ButtonGroup.d.ts +11 -5
  57. package/components/v2/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  58. package/components/v2/ButtonGroup/ButtonGroup.js +49 -26
  59. package/components/v2/CircularProgress/CircularProgress.d.ts.map +1 -1
  60. package/components/v2/CircularProgress/CircularProgress.js +10 -5
  61. package/core/hooks/useNavigation.d.ts +10 -2
  62. package/core/hooks/useNavigation.d.ts.map +1 -1
  63. package/core/hooks/useNavigation.js +1 -2
  64. package/core/initialization/index.d.ts.map +1 -1
  65. package/core/initialization/index.js +24 -5
  66. package/core/router/conductor.d.ts +9 -0
  67. package/core/router/helpers.d.ts +28 -15
  68. package/core/router/helpers.d.ts.map +1 -1
  69. package/core/router/helpers.js +8 -8
  70. package/development/components/DevelopmentSettings/DevelopmentSettings.js +3 -3
  71. package/favorites/components/FavoriteButtonWide/FavoriteButtonWide.js +7 -17
  72. package/favorites/components/List/List.d.ts.map +1 -1
  73. package/favorites/components/List/List.js +0 -1
  74. package/favorites/components/List/ListContent.js +4 -5
  75. package/favorites/components/Lists/Lists.js +4 -5
  76. package/filter/components/FilterPageContent/components/ApplyButton/index.js +8 -10
  77. package/filter/components/FilterPageContent/components/ResetButton/index.js +8 -6
  78. package/locations/components/ChangeLocationButton/ChangeLocationButton.js +10 -14
  79. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotDialog.js +4 -8
  80. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcher.js +1 -1
  81. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherBar.js +8 -13
  82. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherDefault.js +10 -10
  83. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherBar.js +8 -14
  84. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherDefault.js +9 -10
  85. package/locations/components/ReserveForm/ReserveForm.js +6 -7
  86. package/locations/components/StoreDetails/components/GetDirectionsButton.js +2 -4
  87. package/locations/components/StoreDetails/components/StoreDetails.js +5 -10
  88. package/locations/components/StoreDetails/components/StoresNearbyListItem.js +13 -21
  89. package/locations/components/StoreFinder/StoreFinderSelectLocationButton.js +5 -11
  90. package/locations/components/StoreFinder/StoreFinderStoreInfoButton.js +5 -11
  91. package/locations/components/StoreList/StoreListSearch.js +1 -0
  92. package/locations/components/StoreList/StoreSelectLocationButton.js +5 -11
  93. package/login/components/ForgotPassword/ForgotPassword.js +11 -23
  94. package/orders/components/OrderDetails/OrderDetailsAuthenticate.js +5 -7
  95. package/package.json +7 -7
  96. package/page/components/NotFound.d.ts.map +1 -1
  97. package/page/components/NotFound.js +7 -6
  98. package/page/components/ResponsiveWidgetImage/ResponsiveWidgetImage.d.ts +1 -1
  99. package/page/components/ResponsiveWidgetImage/ResponsiveWidgetImage.js +2 -2
  100. package/page/components/WidgetVideo/WidgetVideo.d.ts +1 -1
  101. package/page/components/WidgetVideo/WidgetVideo.d.ts.map +1 -1
  102. package/page/helpers/index.d.ts +5 -2
  103. package/page/helpers/index.d.ts.map +1 -1
  104. package/page/helpers/index.js +8 -5
  105. package/page/widgets/Button/Button.js +2 -3
  106. package/page/widgets/NestedCategoryFilter/NestedCategoryFilter.js +8 -8
  107. package/page/widgets/ProductList/ProductList.js +18 -14
  108. package/page/widgets/Video/hooks.d.ts +2 -2
  109. package/product/components/ProductCard/index.js +7 -1
  110. package/product/components/ProductGrid/components/Item/components/ItemDetails/index.js +6 -1
  111. package/product/components/ProductGrid/components/Item/components/ItemImage/index.js +1 -11
  112. package/product/components/ProductGrid/components/Item/index.js +3 -2
  113. package/product/components/ProductGrid/components/Layout/index.js +2 -1
  114. package/product/components/ProductGridPrice/index.js +0 -1
  115. package/product/components/ProductImage/ProductImage.d.ts.map +1 -1
  116. package/product/components/ProductImage/ProductImage.js +7 -2
  117. package/product/components/ProductImage/ProductImagePlaceholder.js +3 -3
  118. package/product/components/ProductSlider/index.js +1 -1
  119. package/product/components/UnitQuantityPicker/UnitQuantityPicker.d.ts.map +1 -1
  120. package/product/components/UnitQuantityPicker/UnitQuantityPicker.js +15 -33
  121. package/push-opt-in/components/PushOptInModal/index.js +4 -4
  122. package/registration/components/Registration/RegistrationFormActions.js +4 -4
  123. package/reviews/components/Reviews/components/AllReviewsLink/index.js +6 -6
  124. package/reviews/components/Reviews/components/Header/components/WriteReviewLink/index.js +4 -3
  125. package/reviews/components/Reviews/components/Header/components/WriteReviewLink/spec.js +28 -22
  126. package/reviews/components/Reviews/spec.js +5 -6
  127. package/settings/reducers/appSettings.d.ts.map +1 -1
  128. package/settings/reducers/appSettings.js +18 -2
  129. package/settings/selectors/appSettings.d.ts +37 -2
  130. package/settings/selectors/appSettings.d.ts.map +1 -1
  131. package/settings/selectors/appSettings.js +30 -1
  132. package/settings/types/appSettings.d.ts +42 -2
  133. package/settings/types/appSettings.d.ts.map +1 -1
  134. package/settings/types/appSettings.js +124 -1
  135. package/styles/helpers/index.d.ts +1 -0
  136. package/styles/helpers/index.js +1 -0
  137. package/styles/helpers/loadFontCss.d.ts +22 -0
  138. package/styles/helpers/loadFontCss.d.ts.map +1 -0
  139. package/styles/helpers/loadFontCss.js +138 -0
  140. package/styles/helpers/loadThemeCss.d.ts.map +1 -1
  141. package/styles/helpers/loadThemeCss.js +11 -0
  142. package/styles/index.d.ts +1 -1
  143. package/styles/index.d.ts.map +1 -1
  144. package/styles/theme/createDefaultThemeOptions/index.d.ts.map +1 -1
  145. package/styles/theme/createDefaultThemeOptions/index.js +94 -3
  146. package/styles/theme/createTheme/createComponents.types.d.ts +25 -0
  147. package/styles/theme/createTheme/createComponents.types.d.ts.map +1 -1
  148. package/styles/theme/createTheme/createComponents.types.js +28 -3
  149. package/styles/theme/createTheme/createShape.d.ts +2 -3
  150. package/styles/theme/createTheme/createShape.d.ts.map +1 -1
  151. package/styles/theme/createTheme/createShape.js +1 -2
  152. package/styles/theme/createTheme/createThemeFromColorScheme.d.ts +3 -1
  153. package/styles/theme/createTheme/createThemeFromColorScheme.d.ts.map +1 -1
  154. package/styles/theme/createTheme/createThemeFromColorScheme.js +4 -2
  155. package/styles/theme/createTheme/createTypography.d.ts +2 -1
  156. package/styles/theme/createTheme/createTypography.js +58 -18
  157. package/styles/theme/createTheme/index.d.ts +2 -2
  158. package/styles/theme/createTheme/index.d.ts.map +1 -1
  159. package/styles/theme/createTheme/index.js +2 -2
  160. package/styles/theme/createTheme/types.d.ts +9 -2
  161. package/styles/theme/createTheme/types.d.ts.map +1 -1
  162. package/styles/theme/createTheme/types.js +6 -0
  163. package/styles/theme/hooks/useColorScheme.d.ts +2 -2
  164. package/styles/theme/hooks/useColorScheme.d.ts.map +1 -1
  165. package/styles/theme/hooks/useColorScheme.js +1 -1
  166. package/styles/theme/hooks/useMediaQuery.d.ts +7 -0
  167. package/styles/theme/hooks/useMediaQuery.d.ts.map +1 -1
  168. package/styles/theme/hooks/useMediaQuery.js +5 -5
  169. package/styles/theme/hooks/useTheme.js +1 -1
  170. package/styles/theme/index.d.ts +3 -1
  171. package/styles/theme/index.d.ts.map +1 -1
  172. package/styles/theme/providers/ColorSchemeContext.d.ts +30 -9
  173. package/styles/theme/providers/ColorSchemeContext.d.ts.map +1 -1
  174. package/styles/theme/providers/ColorSchemeContext.js +8 -0
  175. package/styles/theme/providers/ThemeContext.d.ts +3 -0
  176. package/styles/theme/providers/ThemeContext.d.ts.map +1 -0
  177. package/styles/theme/providers/ThemeContext.js +2 -0
  178. package/styles/theme/providers/ThemeProvider.d.ts +2 -2
  179. package/styles/theme/providers/ThemeProvider.d.ts.map +1 -1
  180. package/styles/theme/providers/ThemeProvider.js +58 -16
  181. package/styles/theme/utils/color.d.ts +12 -12
  182. package/styles/theme/utils/color.d.ts.map +1 -1
  183. package/tracking/components/CookieConsentModal/index.js +3 -4
  184. package/tracking/components/PrivacySettings/index.js +3 -3
  185. package/cart/components/PaymentBar/PaymentBarReserveButton.connector.js +0 -6
  186. package/cart/components/PaymentBar/PaymentBarReserveButton.js +0 -71
  187. package/locations/components/StoreFinder/StoreFinderGetDirectionsButton.connector.js +0 -16
  188. package/locations/components/StoreFinder/StoreFinderGetDirectionsButton.js +0 -52
@@ -1,7 +1,8 @@
1
1
  import React, { useCallback, useState } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { makeStyles, responsiveMediaQuery } from '@shopgate/engage/styles';
4
- import { RippleButton, I18n, ArrowIcon, Typography } from '@shopgate/engage/components';
4
+ import { I18n, ArrowIcon, Typography } from '@shopgate/engage/components';
5
+ import { Button } from '@shopgate/engage/components/v2';
5
6
  import { StylePresets } from '@shopgate/engage/components/Form';
6
7
  import TextField from '@shopgate/pwa-ui-shared/TextField';
7
8
  import { i18n, EUSERNOTFOUND } from '@shopgate/engage/core';
@@ -41,9 +42,6 @@ const useStyles = makeStyles()(theme => ({
41
42
  paddingTop: theme.spacing(4),
42
43
  paddingBottom: theme.spacing(3)
43
44
  },
44
- button: {
45
- width: '100%'
46
- },
47
45
  input: {
48
46
  ' .label': {
49
47
  color: theme.palette.text.secondary
@@ -67,21 +65,11 @@ const useStyles = makeStyles()(theme => ({
67
65
  goBackButtonContainer: {
68
66
  padding: theme.spacing(2, 0)
69
67
  },
70
- goBackButton: {
71
- fontSize: `${theme.typography.body2.fontSize} !important`,
72
- padding: '0 !important',
73
- ' > div ': {
74
- padding: 0,
75
- display: 'flex'
76
- }
77
- },
78
68
  goBackButtonIcon: {
79
69
  display: 'inline-block',
80
- fontSize: `${theme.components.icon.medium} !important`,
70
+ fontSize: theme.components.icon.medium,
81
71
  alignSelf: 'center',
82
- marginRight: theme.spacing(0.5),
83
- marginLeft: -3,
84
- marginTop: -2
72
+ marginRight: theme.spacing(0.5)
85
73
  }
86
74
  }));
87
75
 
@@ -156,9 +144,10 @@ const ForgotPassword = ({
156
144
  errorText: validationError
157
145
  }), /*#__PURE__*/_jsx("div", {
158
146
  className: classes.buttonContainer,
159
- children: /*#__PURE__*/_jsx(RippleButton, {
160
- className: classes.button,
161
- type: "secondary",
147
+ children: /*#__PURE__*/_jsx(Button, {
148
+ type: "submit",
149
+ color: "primary",
150
+ fullWidth: true,
162
151
  disabled: loading,
163
152
  children: /*#__PURE__*/_jsx(I18n.Text, {
164
153
  string: "common.submit"
@@ -180,10 +169,9 @@ const ForgotPassword = ({
180
169
  })
181
170
  }), /*#__PURE__*/_jsx("div", {
182
171
  className: classes.goBackButtonContainer,
183
- children: /*#__PURE__*/_jsxs(RippleButton, {
184
- flat: true,
185
- className: classes.goBackButton,
186
- type: "secondary",
172
+ children: /*#__PURE__*/_jsxs(Button, {
173
+ variant: "text",
174
+ color: "primary",
187
175
  onClick: handleBackToLogin,
188
176
  children: [/*#__PURE__*/_jsx(ArrowIcon, {
189
177
  className: classes.goBackButtonIcon
@@ -1,6 +1,7 @@
1
1
  import React, { useMemo, useCallback } from 'react';
2
2
  import { makeStyles, responsiveMediaQuery } from '@shopgate/engage/styles';
3
- import { FormBuilder, I18n, Link, RippleButton, MessageBar, ResponsiveContainer } from '@shopgate/engage/components';
3
+ import { FormBuilder, I18n, Link, MessageBar, ResponsiveContainer } from '@shopgate/engage/components';
4
+ import { Button } from '@shopgate/engage/components/v2';
4
5
  import { LOGIN_PATH, useRoute, i18n } from '@shopgate/engage/core';
5
6
  import { StylePresets } from '@shopgate/engage/components/Form';
6
7
  import generateFormConfig from "./OrderDetailsAuthenticateForm.config";
@@ -21,9 +22,6 @@ const useStyles = makeStyles()(theme => ({
21
22
  form: {
22
23
  ...StylePresets.getOutlinedFormFields(theme)
23
24
  },
24
- submitButton: {
25
- width: '100%'
26
- },
27
25
  loginLink: {
28
26
  color: theme.palette.primary.main,
29
27
  ':hover': {
@@ -129,11 +127,11 @@ const OrderDetailsAuthenticate = () => {
129
127
  handleUpdate: handleUpdate,
130
128
  onSubmit: handleSubmit
131
129
  }), /*#__PURE__*/_jsx("div", {
132
- children: /*#__PURE__*/_jsx(RippleButton, {
133
- type: "secondary",
130
+ children: /*#__PURE__*/_jsx(Button, {
131
+ color: "primary",
132
+ fullWidth: true,
134
133
  onClick: handleSubmit,
135
134
  disabled: isLoading,
136
- className: classes.submitButton,
137
135
  children: i18n.text('common.submit')
138
136
  })
139
137
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopgate/engage",
3
- "version": "7.32.0-beta.7",
3
+ "version": "7.32.0-beta.9",
4
4
  "description": "Shopgate's ENGAGE library.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Shopgate <support@shopgate.com>",
@@ -18,12 +18,12 @@
18
18
  "dependencies": {
19
19
  "@emotion/react": "^11.14.0",
20
20
  "@shopgate/native-modules": "1.0.0-beta.34",
21
- "@shopgate/pwa-common": "7.32.0-beta.7",
22
- "@shopgate/pwa-common-commerce": "7.32.0-beta.7",
23
- "@shopgate/pwa-core": "7.32.0-beta.7",
24
- "@shopgate/pwa-ui-ios": "7.32.0-beta.7",
25
- "@shopgate/pwa-ui-material": "7.32.0-beta.7",
26
- "@shopgate/pwa-ui-shared": "7.32.0-beta.7",
21
+ "@shopgate/pwa-common": "7.32.0-beta.9",
22
+ "@shopgate/pwa-common-commerce": "7.32.0-beta.9",
23
+ "@shopgate/pwa-core": "7.32.0-beta.9",
24
+ "@shopgate/pwa-ui-ios": "7.32.0-beta.9",
25
+ "@shopgate/pwa-ui-material": "7.32.0-beta.9",
26
+ "@shopgate/pwa-ui-shared": "7.32.0-beta.9",
27
27
  "@stripe/react-stripe-js": "^1.16.5",
28
28
  "@stripe/stripe-js": "^1.44.1",
29
29
  "@virtuous/conductor": "~2.5.0",
@@ -1 +1 @@
1
- {"version":3,"file":"NotFound.d.ts","sourceRoot":"","sources":["../../../page/components/NotFound.tsx"],"names":[],"mappings":"AA+BA;;;GAGG;AACH,QAAA,MAAM,QAAQ,mCA2Bb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"NotFound.d.ts","sourceRoot":"","sources":["../../../page/components/NotFound.tsx"],"names":[],"mappings":"AA8BA;;;GAGG;AACH,QAAA,MAAM,QAAQ,mCA2Bb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { useCallback } from 'react';
2
2
  import { useDispatch } from 'react-redux';
3
- import RippleButton from '@shopgate/pwa-ui-shared/RippleButton';
4
3
  import { I18n, Typography } from '@shopgate/engage/components';
4
+ import { Button } from '@shopgate/engage/components/v2';
5
5
  import { makeStyles } from '@shopgate/engage/styles';
6
6
  import { historyPop, historyResetTo } from '@shopgate/pwa-common/actions/router';
7
7
  import { i18n, INDEX_PATH } from "../../core";
@@ -16,7 +16,6 @@ const useStyles = makeStyles()(theme => ({
16
16
  paddingTop: theme.spacing(8)
17
17
  },
18
18
  button: {
19
- width: '100%',
20
19
  maxWidth: 250
21
20
  },
22
21
  buttonContainer: {
@@ -55,17 +54,19 @@ const NotFound = () => {
55
54
  })
56
55
  }), /*#__PURE__*/_jsxs("div", {
57
56
  className: classes.buttonContainer,
58
- children: [/*#__PURE__*/_jsx(RippleButton, {
57
+ children: [/*#__PURE__*/_jsx(Button, {
59
58
  onClick: handleBack,
59
+ color: "primary",
60
+ fullWidth: true,
60
61
  className: classes.button,
61
- type: "secondary",
62
62
  children: /*#__PURE__*/_jsx(I18n.Text, {
63
63
  string: "common.back"
64
64
  })
65
- }), /*#__PURE__*/_jsx(RippleButton, {
65
+ }), /*#__PURE__*/_jsx(Button, {
66
66
  onClick: handleHome,
67
+ color: "primary",
68
+ fullWidth: true,
67
69
  className: classes.button,
68
- type: "secondary",
69
70
  children: /*#__PURE__*/_jsx(I18n.Text, {
70
71
  string: "navigation.back",
71
72
  params: {
@@ -8,7 +8,7 @@ export type CustomResponsiveImageProps = {
8
8
  /**
9
9
  * The border radius to apply to the image.
10
10
  */
11
- borderRadius?: number | undefined;
11
+ borderRadius?: string | number | undefined;
12
12
  /**
13
13
  * The breakpoint from which on a higher resolution image should
14
14
  * be loaded.
@@ -13,7 +13,7 @@ import { parseImageUrl } from "../../helpers";
13
13
  /**
14
14
  * @typedef {Object} CustomResponsiveImageProps
15
15
  * @property {boolean} [enableParallax] Whether to enable the parallax effect.
16
- * @property {number} [borderRadius] The border radius to apply to the image.
16
+ * @property {number|string} [borderRadius] The border radius to apply to the image.
17
17
  * @property {Breakpoint} [breakpoint] The breakpoint from which on a higher resolution image should
18
18
  * be loaded.
19
19
  * @property {boolean} [isBanner] Whether the image is used as a banner (full width and height of
@@ -129,7 +129,7 @@ const ResponsiveWidgetImage = ({
129
129
  [classes.container]: !isBanner
130
130
  }),
131
131
  style: {
132
- borderRadius: `${borderRadius}px`,
132
+ borderRadius,
133
133
  ...(!isBanner && enableParallax ? {
134
134
  aspectRatio: containerRatio
135
135
  } : {})
@@ -29,7 +29,7 @@ export interface WidgetVideoProps {
29
29
  /**
30
30
  * The border radius value.
31
31
  */
32
- borderRadius?: number;
32
+ borderRadius?: number | string;
33
33
  /**
34
34
  * The link URL.
35
35
  */
@@ -1 +1 @@
1
- {"version":3,"file":"WidgetVideo.d.ts","sourceRoot":"","sources":["../../../../page/components/WidgetVideo/WidgetVideo.tsx"],"names":[],"mappings":"AAsDA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED;;GAEG;AACH,QAAA,MAAM,WAAW,GAAI,yEASlB,gBAAgB,uCAsFlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"WidgetVideo.d.ts","sourceRoot":"","sources":["../../../../page/components/WidgetVideo/WidgetVideo.tsx"],"names":[],"mappings":"AAsDA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED;;GAEG;AACH,QAAA,MAAM,WAAW,GAAI,yEASlB,gBAAgB,uCAsFlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -67,12 +67,15 @@ interface BorderRadiusParams {
67
67
  }
68
68
  /**
69
69
  * Retrieves the border radius based on the widget config.
70
+ *
71
+ * `default` follows the app wide corner style, so it is returned as a reference to the theme's
72
+ * shape variable rather than a resolved length.
70
73
  * @param params The helper parameters.
71
74
  * @param params.borderRadius The border radius option.
72
75
  * @param params.borderRadiusCustom The custom border radius value.
73
- * @returns The resolved border radius.
76
+ * @returns The resolved border radius as a CSS length.
74
77
  */
75
- export declare const resolveBorderRadiusFromWidgetConfig: ({ borderRadius, borderRadiusCustom }: BorderRadiusParams) => number;
78
+ export declare const resolveBorderRadiusFromWidgetConfig: ({ borderRadius, borderRadiusCustom }: BorderRadiusParams) => string;
76
79
  /**
77
80
  * Validator factory for regular expressions.
78
81
  * @param regex The regular expression to match.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../page/helpers/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B;;OAEG;IACH,mBAAmB,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,wDAAwD;IACvE;;OAEG;IACH,kBAAkB,EAAE,YAAY,GAAG,OAAO,GAAG,UAAU,GAAG,YAAY,CAAC;IACvE;;;OAGG;IACH,mBAAmB,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACxC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,6CAA6C,GACxD,WAAU,OAAO,CAAC,yBAAyB,CAAM,KAChD,wDAyBF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,EAAE,aAAa,OAAO,KAAG,MAQjE,CAAC;AAEF;;GAEG;AACH,UAAU,kBAAkB;IAC1B;;OAEG;IACH,YAAY,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;IACxD;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mCAAmC,GAC9C,sCAAsC,kBAAkB,KACvD,MAKF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,MAAM,KAAK,MAAM,KAAG,OAAkC,CAAC;AAEjG;;;;GAIG;AACH,eAAO,MAAM,UAAU,QAP8B,MAAM,KAAG,OAOgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../page/helpers/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B;;OAEG;IACH,mBAAmB,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,wDAAwD;IACvE;;OAEG;IACH,kBAAkB,EAAE,YAAY,GAAG,OAAO,GAAG,UAAU,GAAG,YAAY,CAAC;IACvE;;;OAGG;IACH,mBAAmB,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACxC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,6CAA6C,GACxD,WAAU,OAAO,CAAC,yBAAyB,CAAM,KAChD,wDAyBF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,EAAE,aAAa,OAAO,KAAG,MAQjE,CAAC;AAEF;;GAEG;AACH,UAAU,kBAAkB;IAC1B;;OAEG;IACH,YAAY,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;IACxD;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,mCAAmC,GAC9C,sCAAsC,kBAAkB,KACvD,MAKF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,MAAM,KAAK,MAAM,KAAG,OAAkC,CAAC;AAEjG;;;;GAIG;AACH,eAAO,MAAM,UAAU,QAP8B,MAAM,KAAG,OAOgB,CAAC"}
@@ -51,19 +51,22 @@ export const parseImageUrl = (url, useHighRes) => {
51
51
 
52
52
  /**
53
53
  * Retrieves the border radius based on the widget config.
54
+ *
55
+ * `default` follows the app wide corner style, so it is returned as a reference to the theme's
56
+ * shape variable rather than a resolved length.
54
57
  * @param params The helper parameters.
55
58
  * @param params.borderRadius The border radius option.
56
59
  * @param params.borderRadiusCustom The custom border radius value.
57
- * @returns The resolved border radius.
60
+ * @returns The resolved border radius as a CSS length.
58
61
  */
59
62
  export const resolveBorderRadiusFromWidgetConfig = ({
60
63
  borderRadius,
61
64
  borderRadiusCustom
62
65
  }) => {
63
- if (borderRadius === 'none') return 0;
64
- if (borderRadius === 'rounded') return 16;
65
- if (borderRadius === 'custom' && typeof borderRadiusCustom === 'number') return borderRadiusCustom;
66
- return 0;
66
+ if (borderRadius === 'none') return '0';
67
+ if (borderRadius === 'rounded') return '16px';
68
+ if (borderRadius === 'custom' && typeof borderRadiusCustom === 'number') return `${borderRadiusCustom}px`;
69
+ return 'var(--sg-shape-borderRadius)';
67
70
  };
68
71
 
69
72
  /**
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback } from 'react';
2
- import { Button } from '@shopgate/engage/components';
2
+ import { Button } from '@shopgate/engage/components/v2';
3
3
  import { useWidget } from '@shopgate/engage/page/hooks';
4
4
  import { makeStyles } from '@shopgate/engage/styles';
5
5
  import { useNavigation } from '@shopgate/engage/core';
@@ -46,9 +46,8 @@ const ButtonWidget = () => {
46
46
  return /*#__PURE__*/_jsx("div", {
47
47
  className: classes.root,
48
48
  children: /*#__PURE__*/_jsx(Button, {
49
- type: "secondary",
49
+ color: "primary",
50
50
  onClick: handleClick,
51
- wrapContent: false,
52
51
  children: /*#__PURE__*/_jsx("span", {
53
52
  className: classes.text,
54
53
  children: text
@@ -1,8 +1,9 @@
1
1
  import React, { useCallback, useEffect, useMemo, useState } from 'react';
2
- import { I18n, ButtonLink } from '@shopgate/engage/components';
2
+ import { I18n } from '@shopgate/engage/components';
3
3
  import { bin2hex } from '@shopgate/engage/core/helpers';
4
4
  import { CATEGORY_PATH } from '@shopgate/engage/category';
5
5
  import { makeStyles } from '@shopgate/engage/styles';
6
+ import { Button } from '@shopgate/engage/components/v2';
6
7
  import { useRoute, usePrevious, useLocalStorage } from '@shopgate/engage/core/hooks';
7
8
  import { router } from '@virtuous/conductor';
8
9
  import CategoryPicker from "./components/Picker";
@@ -16,10 +17,8 @@ const useStyles = makeStyles()(theme => ({
16
17
  paddingBottom: theme.spacing(2)
17
18
  },
18
19
  buttonContainer: {
19
- padding: theme.spacing(0, 2)
20
- },
21
- button: {
22
- width: '100%'
20
+ padding: theme.spacing(0, 2),
21
+ margin: theme.spacing(1, 0)
23
22
  }
24
23
  }));
25
24
 
@@ -142,11 +141,12 @@ const NestedCategoryFilter = () => {
142
141
  className: "widget__nested-category-filter__headline"
143
142
  }) : null, categoryPickers, /*#__PURE__*/_jsx("div", {
144
143
  className: cx(classes.buttonContainer, 'widget__nested-category-filter__button-container'),
145
- children: /*#__PURE__*/_jsx(ButtonLink, {
146
- className: cx(classes.button, 'widget__nested-category-filter__CTA-button'),
144
+ children: /*#__PURE__*/_jsx(Button, {
147
145
  href: `${CATEGORY_PATH}/${bin2hex(state.buttonCategoryId)}`,
146
+ color: "primary",
147
+ fullWidth: true,
148
+ className: "widget__nested-category-filter__CTA-button",
148
149
  disabled: !state.buttonCategoryId,
149
- flat: false,
150
150
  children: /*#__PURE__*/_jsx(I18n.Text, {
151
151
  string: "common.show_products",
152
152
  className: "widget__nested-category-filter__CTA-button__text"
@@ -1,23 +1,27 @@
1
1
  import "core-js/modules/es.regexp.flags.js";
2
2
  import React, { useCallback } from 'react';
3
- import { ActionButton, I18n } from '@shopgate/engage/components';
3
+ import { I18n } from '@shopgate/engage/components';
4
+ import { Button } from '@shopgate/engage/components/v2';
4
5
  import { ProductGrid } from '@shopgate/engage/product/components';
5
6
  import { useWidgetProducts } from '@shopgate/engage/page/hooks';
6
7
  import { makeStyles } from '@shopgate/engage/styles';
7
8
  import { useProductListWidget } from "./hooks";
8
9
  import WidgetHeadline from "../../components/WidgetHeadline";
9
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
- const useStyles = makeStyles()({
11
+ const useStyles = makeStyles()(theme => ({
11
12
  root: {
12
- // Prevent that the ActionButton margin messes with the layout of the sibling widgets
13
13
  overflow: 'hidden'
14
14
  },
15
+ loadMore: {
16
+ textAlign: 'center',
17
+ margin: theme.spacing(1, 0)
18
+ },
15
19
  grid: {
16
20
  '&&': {
17
21
  marginTop: 0
18
22
  }
19
23
  }
20
- });
24
+ }));
21
25
 
22
26
  /**
23
27
  * The ProductListWidget is used to display product lists.
@@ -66,16 +70,16 @@ const ProductListWidget = () => {
66
70
  scope: "widgets",
67
71
  infiniteLoad: false,
68
72
  className: classes.grid
69
- }), hasNext && showLoadMore && /*#__PURE__*/_jsx(ActionButton, {
70
- loading: isFetching,
71
- onClick: handleFetchNext
72
- // Disable click delay in preview mode to enable stopping of propagation.
73
- ,
74
- ...(isPreview && {
75
- disableClickDelay: true
76
- }),
77
- children: /*#__PURE__*/_jsx(I18n.Text, {
78
- string: "common.load_more"
73
+ }), hasNext && showLoadMore && /*#__PURE__*/_jsx("div", {
74
+ className: classes.loadMore,
75
+ children: /*#__PURE__*/_jsx(Button, {
76
+ variant: "text",
77
+ color: "secondary",
78
+ loading: isFetching,
79
+ onClick: handleFetchNext,
80
+ children: /*#__PURE__*/_jsx(I18n.Text, {
81
+ string: "common.load_more"
82
+ })
79
83
  })
80
84
  })]
81
85
  });
@@ -41,9 +41,9 @@ export interface VideoWidgetConfig {
41
41
  */
42
42
  export interface UseVideoWidgetResult extends Pick<VideoWidgetConfig, 'url' | 'muted' | 'loop' | 'controls' | 'autoplay' | 'link'> {
43
43
  /**
44
- * The resolved border radius value in pixels.
44
+ * The resolved border radius as a CSS length.
45
45
  */
46
- borderRadius: number;
46
+ borderRadius: string;
47
47
  }
48
48
  /**
49
49
  * Hook to access the Video widget configuration and data.
@@ -19,7 +19,13 @@ const useStyles = makeStyles()(theme => ({
19
19
  padding: theme.components.productCard.imagePadding
20
20
  },
21
21
  details: {
22
- padding: theme.components.productCard.textPadding
22
+ display: 'flex',
23
+ flexDirection: 'column',
24
+ gap: 4,
25
+ padding: theme.components.productCard.textPadding,
26
+ '& div:empty': {
27
+ display: 'none'
28
+ }
23
29
  },
24
30
  title: {
25
31
  fontSize: theme.typography.body2.fontSize,
@@ -11,6 +11,9 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
11
11
  const useStyles = makeStyles()(theme => ({
12
12
  root: {
13
13
  lineHeight: 1.2,
14
+ display: 'flex',
15
+ flexDirection: 'column',
16
+ gap: theme.spacing(0.5),
14
17
  ':not(:empty)': {
15
18
  padding: theme.components.tiles.textPadding,
16
19
  // Floored at the favorites button overhang so a small configured inner padding
@@ -19,7 +22,9 @@ const useStyles = makeStyles()(theme => ({
19
22
  }
20
23
  },
21
24
  quantityHint: {
22
- paddingTop: 8
25
+ ':empty': {
26
+ display: 'none'
27
+ }
23
28
  }
24
29
  }));
25
30
 
@@ -3,27 +3,18 @@ import PropTypes from 'prop-types';
3
3
  import { SurroundPortals } from '@shopgate/engage/components';
4
4
  import { PRODUCT_ITEM_IMAGE } from '@shopgate/engage/category/constants';
5
5
  import { ProductImage } from '@shopgate/engage/product';
6
- import { makeStyles } from '@shopgate/engage/styles';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- const useStyles = makeStyles()(theme => ({
9
- image: {
10
- background: theme.palette.background.surface
11
- }
12
- }));
13
6
 
14
7
  /**
15
8
  * The item image component.
16
9
  * @param {Object} props The component props.
17
10
  * @returns {JSX.Element}
18
11
  */
12
+ import { jsx as _jsx } from "react/jsx-runtime";
19
13
  const ItemImage = ({
20
14
  productId,
21
15
  name,
22
16
  imageUrl
23
17
  }) => {
24
- const {
25
- classes
26
- } = useStyles();
27
18
  const portalProps = useMemo(() => ({
28
19
  productId
29
20
  }), [productId]);
@@ -31,7 +22,6 @@ const ItemImage = ({
31
22
  portalName: PRODUCT_ITEM_IMAGE,
32
23
  portalProps: portalProps,
33
24
  children: /*#__PURE__*/_jsx(ProductImage, {
34
- className: classes.image,
35
25
  alt: name,
36
26
  src: imageUrl,
37
27
  context: "list",
@@ -18,9 +18,10 @@ const useStyles = makeStyles()((theme, {
18
18
  display: 'flex',
19
19
  flexDirection: 'column',
20
20
  height: '100%',
21
- overflow: 'hidden',
22
21
  padding: theme.components.tiles.padding,
23
- background: theme.components.tiles.backgroundColor
22
+ background: theme.components.tiles.backgroundColor,
23
+ border: theme.components.tiles.border,
24
+ borderRadius: theme.components.tiles.borderRadius
24
25
  },
25
26
  image: {
26
27
  display: 'block',
@@ -9,7 +9,8 @@ const useStyles = makeStyles()((theme, {
9
9
  root: {
10
10
  padding: '0 16px',
11
11
  ':not(:empty)': {
12
- marginTop: 16
12
+ marginTop: 16,
13
+ marginBottom: 16
13
14
  },
14
15
  ...(columns <= 2 ? {
15
16
  rowGap: 16,
@@ -7,7 +7,6 @@ import { makeStyles } from '@shopgate/engage/styles';
7
7
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
8
8
  const useStyles = makeStyles()(theme => ({
9
9
  priceWrapper: {
10
- marginTop: 4,
11
10
  alignItems: 'center'
12
11
  },
13
12
  strikedPrice: {
@@ -1 +1 @@
1
- {"version":3,"file":"ProductImage.d.ts","sourceRoot":"","sources":["../../../../product/components/ProductImage/ProductImage.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAMxE,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,6CAA6C,CAAC;AA0BrD;;;GAGG;AACH,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,UAAU,EAAE,iBAAiB,GAAG,aAAa,CAAC;IAC5F;;;OAGG;IACH,OAAO,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,EAAE,CAAC;CACjC;AAmCD;;;;;;GAMG;AACH,QAAA,MAAM,YAAY,GAAI,OAAO,iBAAiB,gCA0E7C,CAAC;AAEF,OAAO,EAAE,YAAY,IAAI,qBAAqB,EAAE,CAAC;oEAOX,iBAAiB;AAOvD,wBAA2C"}
1
+ {"version":3,"file":"ProductImage.d.ts","sourceRoot":"","sources":["../../../../product/components/ProductImage/ProductImage.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAMxE,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,6CAA6C,CAAC;AA0BrD;;;GAGG;AACH,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,UAAU,EAAE,iBAAiB,GAAG,aAAa,CAAC;IAC5F;;;OAGG;IACH,OAAO,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,EAAE,CAAC;CACjC;AAuCD;;;;;;GAMG;AACH,QAAA,MAAM,YAAY,GAAI,OAAO,iBAAiB,gCA4E7C,CAAC;AAEF,OAAO,EAAE,YAAY,IAAI,qBAAqB,EAAE,CAAC;oEAOX,iBAAiB;AAOvD,wBAA2C"}
@@ -28,6 +28,10 @@ const DEFAULT_PRODUCT_IMAGE_CONTEXT = 'list';
28
28
  */
29
29
 
30
30
  const useStyles = makeStyles()(theme => ({
31
+ rounded: {
32
+ borderRadius: theme.components.productImage.borderRadius,
33
+ overflow: 'hidden'
34
+ },
31
35
  placeholderContent: {
32
36
  position: 'absolute',
33
37
  width: '100%',
@@ -100,6 +104,7 @@ const ProductImage = props => {
100
104
  } = useStyles();
101
105
  const theme = useTheme();
102
106
  const showInnerShadow = useProductImageShadow();
107
+ const isRounded = (context || DEFAULT_PRODUCT_IMAGE_CONTEXT) === 'list';
103
108
 
104
109
  // Image decides when to show this.
105
110
  const placeholder = placeholderSrc ? /*#__PURE__*/_jsx(ProductImagePlaceholder, {
@@ -122,14 +127,14 @@ const ProductImage = props => {
122
127
  ratio: resolved.ratio
123
128
  } : undefined,
124
129
  children: /*#__PURE__*/_jsx("div", {
125
- className: cx(className, 'engage__product__product-image'),
130
+ className: cx(isRounded && classes.rounded, className, 'engage__product__product-image'),
126
131
  children: /*#__PURE__*/_jsx(Image, {
127
132
  ...props,
128
133
  resolutions: resolved.resolutions,
129
134
  ratio: resolved.ratio,
130
135
  placeholder: placeholder,
131
136
  className: showInnerShadow ? classes.innerShadow : '',
132
- backgroundColor: noBackground ? 'transparent' : theme.palette.background.surface,
137
+ backgroundColor: noBackground ? 'transparent' : theme.palette.common.white,
133
138
  "aria-hidden": !alt
134
139
  })
135
140
  })
@@ -65,14 +65,14 @@ const ProductImagePlaceholder = props => {
65
65
  backgroundSize: 'contain',
66
66
  backgroundRepeat: 'no-repeat',
67
67
  backgroundPosition: 'center',
68
- backgroundColor: noBackground ? 'transparent' : theme.palette.background.surface,
68
+ backgroundColor: noBackground ? 'transparent' : theme.palette.common.white,
69
69
  position: 'absolute'
70
70
  };
71
71
  }
72
72
  return {
73
- backgroundColor: noBackground ? 'transparent' : theme.palette.background.surface
73
+ backgroundColor: noBackground ? 'transparent' : theme.palette.common.white
74
74
  };
75
- }, [srcLoaded, noBackground, theme.palette.background.surface, src]);
75
+ }, [srcLoaded, noBackground, theme.palette.common.white, src]);
76
76
  const contentClasses = cx(classes.placeholderContent, {
77
77
  [classes.innerShadow]: showInnerShadow
78
78
  });
@@ -9,7 +9,7 @@ import { WIDGET_ID } from "./constants";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  const useStyles = makeStyles()({
11
11
  container: {
12
- padding: '8px 9px 16px !important'
12
+ padding: '8px 0 16px !important'
13
13
  }
14
14
  });
15
15
  const items = {
@@ -1 +1 @@
1
- {"version":3,"file":"UnitQuantityPicker.d.ts","sourceRoot":"","sources":["../../../../product/components/UnitQuantityPicker/UnitQuantityPicker.jsx"],"names":[],"mappings":";AA0GA;;;GAGG;AACH;;;;;;;;;;;;;;;;;IAFa,GAAG,CAAC,OAAO,CAmNvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA5TqB,YAAY"}
1
+ {"version":3,"file":"UnitQuantityPicker.d.ts","sourceRoot":"","sources":["../../../../product/components/UnitQuantityPicker/UnitQuantityPicker.jsx"],"names":[],"mappings":";AA8FA;;;GAGG;AACH;;;;;;;;;;;;;;;;;IAFa,GAAG,CAAC,OAAO,CAqMvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAlSqB,YAAY"}