@shopgate/engage 7.32.0-beta.6 → 7.32.0-beta.8

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 (205) hide show
  1. package/account/components/Profile/ProfileAddressBook.d.ts.map +1 -1
  2. package/account/components/Profile/ProfileAddressBook.js +13 -22
  3. package/account/components/Profile/ProfileAddressCard.d.ts.map +1 -1
  4. package/account/components/Profile/ProfileAddressCard.js +9 -18
  5. package/account/components/Profile/ProfileForm.d.ts.map +1 -1
  6. package/account/components/Profile/ProfileForm.js +15 -42
  7. package/account/components/ProfileContact/ProfileContact.js +13 -21
  8. package/admin-preview/components/FrontendSettingsPreviewBridge/FrontendSettingsPreviewBridge.d.ts.map +1 -1
  9. package/admin-preview/components/FrontendSettingsPreviewBridge/FrontendSettingsPreviewBridge.js +40 -6
  10. package/admin-preview/components/FrontendSettingsPreviewBridge/types.d.ts +9 -2
  11. package/admin-preview/components/FrontendSettingsPreviewBridge/types.d.ts.map +1 -1
  12. package/admin-preview/initialization/_internal/initialFrontendSettings.d.ts +32 -0
  13. package/admin-preview/initialization/_internal/initialFrontendSettings.d.ts.map +1 -0
  14. package/admin-preview/initialization/_internal/initialFrontendSettings.js +43 -0
  15. package/admin-preview/initialization/awaitInitialFrontendSettings.d.ts +22 -0
  16. package/admin-preview/initialization/awaitInitialFrontendSettings.d.ts.map +1 -0
  17. package/admin-preview/initialization/awaitInitialFrontendSettings.js +84 -0
  18. package/back-in-stock/components/BackInStockButton/index.js +5 -5
  19. package/cart/components/CartItem/CartItemProductLayout.js +1 -0
  20. package/cart/components/CartItem/CartItemProductLayoutWideRemoveItem.js +7 -14
  21. package/cart/components/CartItems/CartItemCardReservationLabelChangeStore.js +6 -24
  22. package/cart/components/CartItems/CartItems.js +8 -10
  23. package/cart/components/CartItems/CartItemsSubstitution.js +3 -2
  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/Card/Card.d.ts +27 -0
  36. package/components/Card/Card.d.ts.map +1 -0
  37. package/components/Card/Card.js +57 -0
  38. package/components/Card/index.d.ts +4 -0
  39. package/components/Card/index.d.ts.map +1 -0
  40. package/components/Card/index.js +2 -0
  41. package/components/Card/spec.d.ts +2 -0
  42. package/components/Card/spec.d.ts.map +1 -0
  43. package/components/Card/spec.js +128 -0
  44. package/components/Card/useCardAppearance.d.ts +11 -0
  45. package/components/Card/useCardAppearance.d.ts.map +1 -0
  46. package/components/Card/useCardAppearance.js +22 -0
  47. package/components/ChipLayout/index.js +2 -4
  48. package/components/NavigationHandler/connector.js +1 -1
  49. package/components/NavigationHandler/spec.js +10 -1
  50. package/components/Paper/Paper.d.ts +48 -0
  51. package/components/Paper/Paper.d.ts.map +1 -0
  52. package/components/Paper/Paper.js +64 -0
  53. package/components/Paper/index.d.ts +3 -0
  54. package/components/Paper/index.d.ts.map +1 -0
  55. package/components/Paper/index.js +1 -0
  56. package/components/Paper/spec.d.ts +2 -0
  57. package/components/Paper/spec.d.ts.map +1 -0
  58. package/components/Paper/spec.js +131 -0
  59. package/components/RadioCard/RadioCard.d.ts.map +1 -1
  60. package/components/RadioCard/RadioCard.js +2 -1
  61. package/components/Tabs/components/Tab.d.ts.map +1 -1
  62. package/components/Tabs/components/Tab.js +14 -16
  63. package/components/Typography/Typography.d.ts +1 -1
  64. package/components/index.d.ts +4 -1
  65. package/components/index.d.ts.map +1 -1
  66. package/components/index.js +3 -2
  67. package/components/v2/Button/Button.d.ts +24 -13
  68. package/components/v2/Button/Button.d.ts.map +1 -1
  69. package/components/v2/Button/Button.js +89 -37
  70. package/components/v2/ButtonBase/ButtonBase.d.ts +50 -10
  71. package/components/v2/ButtonBase/ButtonBase.d.ts.map +1 -1
  72. package/components/v2/ButtonBase/ButtonBase.js +153 -16
  73. package/components/v2/ButtonBase/hooks.d.ts +0 -1
  74. package/components/v2/ButtonBase/hooks.d.ts.map +1 -1
  75. package/components/v2/ButtonBase/hooks.js +36 -12
  76. package/components/v2/ButtonGroup/ButtonGroup.d.ts +11 -5
  77. package/components/v2/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  78. package/components/v2/ButtonGroup/ButtonGroup.js +30 -18
  79. package/components/v2/CircularProgress/CircularProgress.d.ts.map +1 -1
  80. package/components/v2/CircularProgress/CircularProgress.js +10 -5
  81. package/core/hooks/useNavigation.d.ts +10 -2
  82. package/core/hooks/useNavigation.d.ts.map +1 -1
  83. package/core/hooks/useNavigation.js +1 -2
  84. package/core/initialization/index.d.ts.map +1 -1
  85. package/core/initialization/index.js +24 -5
  86. package/core/router/conductor.d.ts +9 -0
  87. package/core/router/helpers.d.ts +28 -15
  88. package/core/router/helpers.d.ts.map +1 -1
  89. package/core/router/helpers.js +8 -8
  90. package/development/components/DevelopmentSettings/DevelopmentSettings.js +3 -3
  91. package/favorites/components/FavoriteButtonWide/FavoriteButtonWide.js +7 -17
  92. package/favorites/components/Item/Item.d.ts +1 -1
  93. package/favorites/components/List/List.d.ts.map +1 -1
  94. package/favorites/components/List/List.js +0 -1
  95. package/favorites/components/List/ListContent.js +4 -5
  96. package/favorites/components/Lists/Lists.js +4 -5
  97. package/filter/components/FilterPageContent/components/ApplyButton/index.js +8 -10
  98. package/filter/components/FilterPageContent/components/ResetButton/index.js +8 -6
  99. package/locations/components/ChangeLocationButton/ChangeLocationButton.js +10 -14
  100. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotDialog.js +4 -8
  101. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcher.js +1 -1
  102. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherBar.js +8 -13
  103. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherDefault.js +10 -10
  104. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherBar.js +8 -14
  105. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherDefault.js +9 -10
  106. package/locations/components/ReserveForm/ReserveForm.js +6 -7
  107. package/locations/components/StoreDetails/components/GetDirectionsButton.js +2 -4
  108. package/locations/components/StoreDetails/components/StoreDetails.js +5 -10
  109. package/locations/components/StoreDetails/components/StoresNearbyListItem.js +13 -21
  110. package/locations/components/StoreFinder/StoreFinderSelectLocationButton.js +5 -11
  111. package/locations/components/StoreFinder/StoreFinderStoreInfoButton.js +5 -11
  112. package/locations/components/StoreList/StoreSelectLocationButton.js +5 -11
  113. package/login/components/ForgotPassword/ForgotPassword.js +11 -23
  114. package/orders/components/OrderDetails/OrderDetailsAuthenticate.js +5 -7
  115. package/orders/components/OrderHistory/OrderHistoryList.d.ts.map +1 -1
  116. package/orders/components/OrderHistory/OrderHistoryList.js +8 -9
  117. package/orders/components/OrderHistory/OrderHistoryTable.d.ts.map +1 -1
  118. package/orders/components/OrderHistory/OrderHistoryTable.js +4 -0
  119. package/package.json +7 -7
  120. package/page/components/NotFound.d.ts.map +1 -1
  121. package/page/components/NotFound.js +7 -6
  122. package/page/components/ResponsiveWidgetImage/ResponsiveWidgetImage.d.ts +1 -1
  123. package/page/components/ResponsiveWidgetImage/ResponsiveWidgetImage.js +2 -2
  124. package/page/components/WidgetVideo/WidgetVideo.d.ts +1 -1
  125. package/page/components/WidgetVideo/WidgetVideo.d.ts.map +1 -1
  126. package/page/helpers/index.d.ts +5 -2
  127. package/page/helpers/index.d.ts.map +1 -1
  128. package/page/helpers/index.js +8 -5
  129. package/page/widgets/Button/Button.js +2 -3
  130. package/page/widgets/NestedCategoryFilter/NestedCategoryFilter.js +8 -8
  131. package/page/widgets/ProductList/ProductList.js +18 -14
  132. package/page/widgets/Video/hooks.d.ts +2 -2
  133. package/product/components/ProductCard/index.js +27 -14
  134. package/product/components/ProductGrid/components/Item/components/ItemDetails/index.js +6 -3
  135. package/product/components/ProductGrid/components/Item/components/ItemImage/index.js +1 -11
  136. package/product/components/ProductGrid/components/Item/components/ItemName/index.js +5 -1
  137. package/product/components/ProductGrid/components/Item/components/ItemName/spec.js +19 -1
  138. package/product/components/ProductGrid/components/Item/index.js +10 -1
  139. package/product/components/ProductImage/ProductImage.d.ts.map +1 -1
  140. package/product/components/ProductImage/ProductImage.js +7 -2
  141. package/product/components/ProductImage/ProductImagePlaceholder.js +3 -3
  142. package/product/components/ProductSlider/index.js +4 -2
  143. package/product/components/RelationsSlider/RelationsSliderContent.js +3 -2
  144. package/product/components/RelationsSlider/constants.d.ts +3 -0
  145. package/product/components/RelationsSlider/constants.d.ts.map +1 -0
  146. package/product/components/RelationsSlider/constants.js +2 -1
  147. package/product/components/RelationsSlider/hooks.d.ts +6 -0
  148. package/product/components/RelationsSlider/hooks.d.ts.map +1 -0
  149. package/product/components/RelationsSlider/hooks.js +34 -0
  150. package/product/components/UnitQuantityPicker/UnitQuantityPicker.d.ts.map +1 -1
  151. package/product/components/UnitQuantityPicker/UnitQuantityPicker.js +14 -33
  152. package/push-opt-in/components/PushOptInModal/index.js +4 -4
  153. package/registration/components/Registration/RegistrationFormActions.js +4 -4
  154. package/reviews/components/Reviews/components/AllReviewsLink/index.js +6 -6
  155. package/reviews/components/Reviews/components/Header/components/WriteReviewLink/index.js +4 -3
  156. package/reviews/components/Reviews/components/Header/components/WriteReviewLink/spec.js +28 -22
  157. package/reviews/components/Reviews/spec.js +5 -6
  158. package/settings/action-creators/appSettings.d.ts +3 -3
  159. package/settings/action-creators/appSettings.d.ts.map +1 -1
  160. package/settings/reducers/appSettings.d.ts.map +1 -1
  161. package/settings/reducers/appSettings.js +40 -18
  162. package/settings/reducers/index.d.ts +1 -1
  163. package/settings/selectors/appSettings.d.ts +48 -0
  164. package/settings/selectors/appSettings.d.ts.map +1 -1
  165. package/settings/selectors/appSettings.js +31 -1
  166. package/settings/types/appSettings.d.ts +69 -0
  167. package/settings/types/appSettings.d.ts.map +1 -1
  168. package/styles/helpers/index.d.ts +1 -0
  169. package/styles/helpers/index.js +1 -0
  170. package/styles/helpers/loadFontCss.d.ts +22 -0
  171. package/styles/helpers/loadFontCss.d.ts.map +1 -0
  172. package/styles/helpers/loadFontCss.js +138 -0
  173. package/styles/helpers/loadThemeCss.d.ts.map +1 -1
  174. package/styles/helpers/loadThemeCss.js +11 -0
  175. package/styles/index.d.ts +1 -1
  176. package/styles/index.d.ts.map +1 -1
  177. package/styles/theme/createTheme/createComponents.types.d.ts +75 -0
  178. package/styles/theme/createTheme/createComponents.types.d.ts.map +1 -1
  179. package/styles/theme/createTheme/createComponents.types.js +75 -0
  180. package/styles/theme/createTheme/createCssVarsForColorSchemeThemes.d.ts.map +1 -1
  181. package/styles/theme/createTheme/createCssVarsForColorSchemeThemes.js +5 -1
  182. package/styles/theme/createTheme/createPalette.types.d.ts +4 -0
  183. package/styles/theme/createTheme/createPalette.types.d.ts.map +1 -1
  184. package/styles/theme/createTheme/createPalette.types.js +5 -1
  185. package/styles/theme/createTheme/createShape.d.ts +3 -0
  186. package/styles/theme/createTheme/createShape.d.ts.map +1 -1
  187. package/styles/theme/createTheme/createThemeFromColorScheme.d.ts +3 -1
  188. package/styles/theme/createTheme/createThemeFromColorScheme.d.ts.map +1 -1
  189. package/styles/theme/createTheme/createThemeFromColorScheme.js +6 -3
  190. package/styles/theme/createTheme/createTypography.d.ts +2 -1
  191. package/styles/theme/createTheme/createTypography.js +58 -18
  192. package/styles/theme/createTheme/index.js +1 -1
  193. package/styles/theme/createTheme/shadows.d.ts +11 -1
  194. package/styles/theme/createTheme/shadows.d.ts.map +1 -1
  195. package/styles/theme/createTheme/shadows.js +41 -7
  196. package/styles/theme/createTheme/types.d.ts +5 -1
  197. package/styles/theme/createTheme/types.d.ts.map +1 -1
  198. package/styles/theme/index.d.ts +2 -0
  199. package/styles/theme/index.d.ts.map +1 -1
  200. package/tracking/components/CookieConsentModal/index.js +3 -4
  201. package/tracking/components/PrivacySettings/index.js +3 -3
  202. package/cart/components/PaymentBar/PaymentBarReserveButton.connector.js +0 -6
  203. package/cart/components/PaymentBar/PaymentBarReserveButton.js +0 -71
  204. package/locations/components/StoreFinder/StoreFinderGetDirectionsButton.connector.js +0 -16
  205. package/locations/components/StoreFinder/StoreFinderGetDirectionsButton.js +0 -52
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { RippleButton, I18n, Typography } from '@shopgate/engage/components';
3
+ import { I18n, Typography } from '@shopgate/engage/components';
4
+ import { Button } from '@shopgate/engage/components/v2';
4
5
  import { i18n } from '@shopgate/engage/core/helpers';
5
6
  import { makeStyles } from '@shopgate/engage/styles';
6
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -15,12 +16,8 @@ const useStyles = makeStyles()(theme => ({
15
16
  color: theme.palette.text.primary
16
17
  },
17
18
  button: {
18
- fontSize: `${theme.typography.caption.fontSize} !important`,
19
- letterSpacing: '0.05em',
20
- padding: `${theme.spacing(0.375, 0)} !important`,
21
- ' *': {
22
- padding: '0 !important'
23
- }
19
+ textTransform: 'none',
20
+ marginLeft: theme.spacing(1)
24
21
  }
25
22
  }));
26
23
 
@@ -49,12 +46,14 @@ const GlobalLocationSwitcherDefault = ({
49
46
  fontWeight: "medium",
50
47
  className: classes.name,
51
48
  children: locationName
52
- }), /*#__PURE__*/_jsx(RippleButton, {
49
+ }), /*#__PURE__*/_jsx(Button, {
50
+ variant: "link",
51
+ color: "primary",
52
+ size: "small",
53
+ dense: true,
53
54
  onClick: handleChange,
54
- type: "secondary",
55
55
  className: classes.button,
56
56
  disabled: !editable,
57
- flat: true,
58
57
  children: /*#__PURE__*/_jsx(I18n.Text, {
59
58
  string: "locations.your_current_location.change"
60
59
  })
@@ -1,7 +1,8 @@
1
1
  import 'react-phone-number-input/style.css';
2
2
  import React, { useState, useContext, useMemo, useRef, useLayoutEffect, useCallback } from 'react';
3
3
  import { makeStyles } from '@shopgate/engage/styles';
4
- import { TextField, RippleButton, RadioGroup, RadioGroupItem, ProgressBar, Typography } from '@shopgate/engage/components';
4
+ import { TextField, RadioGroup, RadioGroupItem, ProgressBar, Typography } from '@shopgate/engage/components';
5
+ import { Button } from '@shopgate/engage/components/v2';
5
6
  import { i18n } from '@shopgate/engage/core/helpers';
6
7
  import { useFormState } from "../../../core/hooks/useFormState";
7
8
  import { FulfillmentContext } from "../../locations.context";
@@ -35,9 +36,6 @@ const useStyles = makeStyles()(theme => ({
35
36
  paddingRight: 0
36
37
  }
37
38
  },
38
- button: {
39
- width: '100%'
40
- },
41
39
  progressBar: {
42
40
  height: '4px',
43
41
  position: 'relative'
@@ -239,10 +237,11 @@ function ReserveFormUnwrapped() {
239
237
  className: classes.formField,
240
238
  errorText: i18n.text(validationErrors.email2)
241
239
  })]
242
- }), /*#__PURE__*/_jsx(RippleButton, {
243
- type: "secondary",
240
+ }), /*#__PURE__*/_jsx(Button, {
241
+ type: "submit",
242
+ color: "primary",
243
+ fullWidth: true,
244
244
  disabled: changed || valid === false || isSubmitting,
245
- className: classes.button,
246
245
  children: i18n.text('locations.place_reservation')
247
246
  })]
248
247
  })]
@@ -1,7 +1,7 @@
1
1
  import React, { useMemo } from 'react';
2
2
  import { historyPush } from '@shopgate/pwa-common/actions/router';
3
3
  import PropTypes from 'prop-types';
4
- import { Button } from '@shopgate/engage/components';
4
+ import { ButtonBase } from '@shopgate/engage/components/v2';
5
5
  import { generateGoogleMapsDirectionsUrl, i18n } from '@shopgate/engage/core';
6
6
  import { useDispatch } from 'react-redux';
7
7
  import { makeStyles } from '@shopgate/engage/styles';
@@ -38,10 +38,8 @@ const GetDirectionsButton = ({
38
38
  }));
39
39
  };
40
40
  return /*#__PURE__*/_jsx("div", {
41
- children: /*#__PURE__*/_jsx(Button, {
41
+ children: /*#__PURE__*/_jsx(ButtonBase, {
42
42
  onClick: handleClick,
43
- role: "button",
44
- type: "plain",
45
43
  children: /*#__PURE__*/_jsx("span", {
46
44
  className: classes.buttonText,
47
45
  children: i18n.text('location.getDirections')
@@ -1,5 +1,6 @@
1
1
  import React, { useContext, useMemo } from 'react';
2
- import { LocationIcon, Button, Link, ConditionalWrapper, Typography } from '@shopgate/engage/components';
2
+ import { LocationIcon, Link, ConditionalWrapper, Typography } from '@shopgate/engage/components';
3
+ import { Button, ButtonBase } from '@shopgate/engage/components/v2';
3
4
  import { makeStyles } from '@shopgate/engage/styles';
4
5
  import { getWeekDaysOrder } from '@shopgate/engage/core';
5
6
  import { i18n } from '@shopgate/engage/core/helpers';
@@ -53,9 +54,6 @@ const useStyles = makeStyles()(theme => ({
53
54
  phoneNumber: {
54
55
  textDecoration: 'underline'
55
56
  },
56
- makeMyStoreButton: {
57
- color: theme.palette.primary.main
58
- },
59
57
  comingSoon: {
60
58
  fontStyle: 'italic'
61
59
  },
@@ -97,10 +95,8 @@ const StoreDetails = () => {
97
95
  return /*#__PURE__*/_jsxs("div", {
98
96
  children: [/*#__PURE__*/_jsx(ConditionalWrapper, {
99
97
  condition: !isRouteLocationPreferred,
100
- wrapper: children => /*#__PURE__*/_jsx(Button, {
98
+ wrapper: children => /*#__PURE__*/_jsx(ButtonBase, {
101
99
  onClick: () => selectLocation(routeLocation, true),
102
- role: "button",
103
- type: "plain",
104
100
  children: children
105
101
  }),
106
102
  children: /*#__PURE__*/_jsxs("div", {
@@ -144,10 +140,9 @@ const StoreDetails = () => {
144
140
  children: [/*#__PURE__*/_jsx(GetDirectionsButton, {
145
141
  address: address
146
142
  }), !isComingSoon && !isRouteLocationPreferred && /*#__PURE__*/_jsx(Button, {
143
+ variant: "text",
144
+ color: "primary",
147
145
  onClick: () => selectLocation(routeLocation, true),
148
- role: "button",
149
- type: "plain",
150
- className: classes.makeMyStoreButton,
151
146
  children: /*#__PURE__*/_jsx("span", {
152
147
  children: i18n.text('location.makeMyStore')
153
148
  })
@@ -2,7 +2,8 @@ import React, { useContext } from 'react';
2
2
  import { useDispatch } from 'react-redux';
3
3
  import PropTypes from 'prop-types';
4
4
  import { makeStyles } from '@shopgate/engage/styles';
5
- import { Button, Typography } from '@shopgate/engage/components';
5
+ import { Typography } from '@shopgate/engage/components';
6
+ import { Button } from '@shopgate/engage/components/v2';
6
7
  import { i18n } from '@shopgate/engage/core/helpers';
7
8
  import { historyPush } from '@shopgate/engage/core';
8
9
  import formatDistance from "../../../helpers/formatDistance";
@@ -10,9 +11,6 @@ import { STORE_DETAILS_PATH } from "../../../constants";
10
11
  import { StoreDetailsContext } from "../../../providers/StoreDetailsContext";
11
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
13
  const useStyles = makeStyles()(theme => ({
13
- button: {
14
- padding: '0px !important'
15
- },
16
14
  locationRow: {
17
15
  borderBottom: `1px solid ${theme.components.border.light}`,
18
16
  borderTop: `1px solid ${theme.components.border.light}`,
@@ -43,7 +41,7 @@ const useStyles = makeStyles()(theme => ({
43
41
  textAlign: 'start'
44
42
  },
45
43
  cellContainer: {
46
- padding: '8px',
44
+ padding: 6,
47
45
  textAlign: 'end'
48
46
  },
49
47
  cell: {
@@ -51,7 +49,7 @@ const useStyles = makeStyles()(theme => ({
51
49
  },
52
50
  buttonContainer: {
53
51
  display: 'flex',
54
- gap: '4px 16px',
52
+ gap: '0 16px',
55
53
  flexWrap: 'wrap',
56
54
  justifyContent: 'flex-end'
57
55
  }
@@ -121,13 +119,11 @@ const StoresNearbyListItem = ({
121
119
  children: [/*#__PURE__*/_jsxs("div", {
122
120
  className: classes.makeMyStore,
123
121
  children: [!isComingSoon && /*#__PURE__*/_jsx(Button, {
124
- className: classes.button,
122
+ variant: "link",
123
+ color: "secondary",
124
+ size: "small",
125
125
  onClick: () => selectLocation(location, true),
126
- role: "button",
127
- type: "primary",
128
- flat: true,
129
126
  disabled: isPreferredLocation,
130
- wrapContent: false,
131
127
  children: /*#__PURE__*/_jsx(Typography, {
132
128
  variant: "body2",
133
129
  component: "span",
@@ -135,12 +131,10 @@ const StoresNearbyListItem = ({
135
131
  children: `${i18n.text('location.makeMyStore')}`
136
132
  })
137
133
  }), isComingSoon && /*#__PURE__*/_jsx(Button, {
138
- className: classes.button,
139
- role: "button",
140
- type: "primary",
141
- flat: true,
134
+ variant: "link",
135
+ color: "secondary",
136
+ size: "small",
142
137
  disabled: true,
143
- wrapContent: false,
144
138
  children: /*#__PURE__*/_jsx(Typography, {
145
139
  variant: "body2",
146
140
  component: "span",
@@ -151,12 +145,10 @@ const StoresNearbyListItem = ({
151
145
  }), /*#__PURE__*/_jsx("div", {
152
146
  className: classes.storeInfo,
153
147
  children: /*#__PURE__*/_jsx(Button, {
154
- className: classes.button,
155
- role: "button",
156
- type: "primary",
157
- flat: true,
148
+ variant: "link",
149
+ color: "secondary",
150
+ size: "small",
158
151
  onClick: () => openStoreDetails(code),
159
- wrapContent: false,
160
152
  children: /*#__PURE__*/_jsx(Typography, {
161
153
  variant: "body2",
162
154
  component: "span",
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback, useContext, useMemo } from 'react';
2
- import { RippleButton } from '@shopgate/engage/components';
2
+ import { Button } from '@shopgate/engage/components/v2';
3
3
  import { makeStyles } from '@shopgate/engage/styles';
4
4
  import { StoreContext } from "./Store.context";
5
5
  import { i18n } from "../../../core/helpers";
@@ -8,14 +8,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
8
8
  const useStyles = makeStyles()(theme => ({
9
9
  selectLocationButtonWrapper: {
10
10
  padding: theme.spacing(0, 2, 1, 2)
11
- },
12
- selectLocationButton: {
13
- width: '100%',
14
- fontSize: `${theme.typography.body2.fontSize} !important`,
15
- ':not(:disabled)': {
16
- background: `${theme.palette.primary.main} !important`,
17
- color: `${theme.palette.primary.contrastText} !important`
18
- }
19
11
  }
20
12
  }));
21
13
 
@@ -41,9 +33,11 @@ export const StoreFinderSelectLocationButton = () => {
41
33
  const isSelected = useMemo(() => selectedLocation?.code === store?.code, [selectedLocation, store]);
42
34
  return /*#__PURE__*/_jsx("div", {
43
35
  className: classes.selectLocationButtonWrapper,
44
- children: /*#__PURE__*/_jsx(RippleButton, {
36
+ children: /*#__PURE__*/_jsx(Button, {
37
+ color: "primary",
38
+ size: "small",
39
+ fullWidth: true,
45
40
  onClick: handleClick,
46
- className: classes.selectLocationButton,
47
41
  disabled: isLoading || store?.isComingSoon || isSelected,
48
42
  children: i18n.text(store?.isComingSoon ? 'location.comingSoon' : 'locations.select_location')
49
43
  })
@@ -1,6 +1,6 @@
1
1
  import React, { useCallback, useContext } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { RippleButton } from '@shopgate/engage/components';
3
+ import { Button } from '@shopgate/engage/components/v2';
4
4
  import { historyPush } from '@shopgate/engage/core';
5
5
  import { connect } from 'react-redux';
6
6
  import { makeStyles } from '@shopgate/engage/styles';
@@ -10,14 +10,6 @@ import { StoreFinderContext } from "../../locations.context";
10
10
  import { STORE_DETAILS_PATH } from "../../constants";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
12
  const useStyles = makeStyles()(theme => ({
13
- showStoreInfoButton: {
14
- width: '100%',
15
- fontSize: `${theme.typography.body2.fontSize} !important`,
16
- ':not(:disabled)': {
17
- background: `${theme.palette.primary.main} !important`,
18
- color: `${theme.palette.primary.contrastText} !important`
19
- }
20
- },
21
13
  showStoreInfoButtonWrapper: {
22
14
  padding: theme.spacing(0, 2, 1, 2)
23
15
  }
@@ -54,9 +46,11 @@ const StoreFinderStoreInfoButton = ({
54
46
  }, [openStoreDetail, store]);
55
47
  return /*#__PURE__*/_jsx("div", {
56
48
  className: classes.showStoreInfoButtonWrapper,
57
- children: /*#__PURE__*/_jsx(RippleButton, {
49
+ children: /*#__PURE__*/_jsx(Button, {
50
+ color: "primary",
51
+ size: "small",
52
+ fullWidth: true,
58
53
  onClick: handleClick,
59
- className: classes.showStoreInfoButton,
60
54
  disabled: isLoading,
61
55
  children: i18n.text('locations.store_info')
62
56
  })
@@ -1,5 +1,5 @@
1
1
  import React, { useContext, useCallback } from 'react';
2
- import { RippleButton } from '@shopgate/engage/components';
2
+ import { Button } from '@shopgate/engage/components/v2';
3
3
  import PropTypes from 'prop-types';
4
4
  import { makeStyles } from '@shopgate/engage/styles';
5
5
  import { isProductAvailable } from "../../helpers";
@@ -11,14 +11,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
11
11
  const useStyles = makeStyles()(theme => ({
12
12
  selectLocationButtonWrapper: {
13
13
  padding: theme.spacing(0, 2, 1, 2)
14
- },
15
- selectLocationButton: {
16
- width: '100%',
17
- fontSize: `${theme.typography.body2.fontSize} !important`,
18
- ':not(:disabled)': {
19
- background: theme.palette.primary.main,
20
- color: theme.palette.primary.contrastText
21
- }
22
14
  }
23
15
  }));
24
16
 
@@ -54,9 +46,11 @@ const StoreSelectLocationButton = ({
54
46
  }, [isAvailable, noInventory, product, selectLocation, setPostalCode, setUserSearchZipLocationFromSelection, store]);
55
47
  return /*#__PURE__*/_jsx("div", {
56
48
  className: classes.selectLocationButtonWrapper,
57
- children: /*#__PURE__*/_jsx(RippleButton, {
49
+ children: /*#__PURE__*/_jsx(Button, {
50
+ color: "primary",
51
+ size: "small",
52
+ fullWidth: true,
58
53
  onClick: handleClick,
59
- className: classes.selectLocationButton,
60
54
  disabled: isLoading || store?.isComingSoon || !noInventory && !isAvailable,
61
55
  children: i18n.text(store?.isComingSoon ? 'location.comingSoon' : 'locations.select_location')
62
56
  })
@@ -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
  })]
@@ -1 +1 @@
1
- {"version":3,"file":"OrderHistoryList.d.ts","sourceRoot":"","sources":["../../../../orders/components/OrderHistory/OrderHistoryList.jsx"],"names":[],"mappings":"AA6CO,2BAHI,MAAM,GACJ,GAAG,CAkDf;;;;;;;;;;;;AAiBM,mCAHI,MAAM,GACJ,GAAG,CAUf;;;;;;;sBArHqB,YAAY"}
1
+ {"version":3,"file":"OrderHistoryList.d.ts","sourceRoot":"","sources":["../../../../orders/components/OrderHistory/OrderHistoryList.jsx"],"names":[],"mappings":"AA4CO,2BAHI,MAAM,GACJ,GAAG,CAuDf;;;;;;;;;;;;AAiBM,mCAHI,MAAM,GACJ,GAAG,CAUf;;;;;;;sBAzHqB,YAAY"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { I18n, CardList, Link } from '@shopgate/engage/components';
3
+ import { I18n, Card, Link } from '@shopgate/engage/components';
4
4
  import { makeStyles } from '@shopgate/engage/styles';
5
5
  import { i18n } from '@shopgate/engage/core/helpers';
6
6
  import { getTranslatedOrderStatus } from "../../helpers";
@@ -31,10 +31,7 @@ const useStyles = makeStyles()(theme => ({
31
31
  ':last-of-type': {
32
32
  marginBottom: 0
33
33
  },
34
- background: theme.palette.background.surface,
35
- boxSizing: 'border-box',
36
- boxShadow: '0 4px 8px rgba(0,0,0,0.16)',
37
- borderRadius: 10
34
+ boxSizing: 'border-box'
38
35
  }
39
36
  }));
40
37
 
@@ -47,9 +44,10 @@ export const Row = props => {
47
44
  const {
48
45
  classes
49
46
  } = useStyles();
50
- return /*#__PURE__*/_jsx(CardList.Item, {
47
+ return /*#__PURE__*/_jsx(Card, {
51
48
  className: classes.card,
52
49
  onClick: props.openDetails,
50
+ component: "li",
53
51
  children: /*#__PURE__*/_jsxs(Link, {
54
52
  className: classes.cardContent,
55
53
  href: getOrderDetailsRoute(props.orderNumber),
@@ -99,10 +97,11 @@ export const List = ({
99
97
  children
100
98
  }) => {
101
99
  const {
102
- classes
100
+ classes,
101
+ cx
103
102
  } = useStyles();
104
- return /*#__PURE__*/_jsx(CardList, {
105
- className: classes.list,
103
+ return /*#__PURE__*/_jsx("ul", {
104
+ className: cx(classes.list, 'engage__orders__order-history-list'),
106
105
  children: children
107
106
  });
108
107
  };
@@ -1 +1 @@
1
- {"version":3,"file":"OrderHistoryTable.d.ts","sourceRoot":"","sources":["../../../../orders/components/OrderHistory/OrderHistoryTable.jsx"],"names":[],"mappings":"AAmCO,gCAHI,MAAM,GACJ,GAAG,CAkCf;;;;;;;;;;;;AAiBM,oCAHI,MAAM,GACJ,GAAG,CAuBf;;;;;;;sBAxGqB,YAAY"}
1
+ {"version":3,"file":"OrderHistoryTable.d.ts","sourceRoot":"","sources":["../../../../orders/components/OrderHistory/OrderHistoryTable.jsx"],"names":[],"mappings":"AAsCO,gCAHI,MAAM,GACJ,GAAG,CAkCf;;;;;;;;;;;;AAiBM,oCAHI,MAAM,GACJ,GAAG,CAuBf;;;;;;;sBA3GqB,YAAY"}
@@ -6,6 +6,9 @@ import { i18n } from '@shopgate/engage/core/helpers';
6
6
  import { getTranslatedOrderStatus } from "../../helpers";
7
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  const useStyles = makeStyles()(theme => ({
9
+ card: {
10
+ margin: '5px 5px 10px'
11
+ },
9
12
  tableHeader: {
10
13
  '& > th': {
11
14
  padding: theme.spacing(2),
@@ -79,6 +82,7 @@ export const Table = ({
79
82
  classes
80
83
  } = useStyles();
81
84
  return /*#__PURE__*/_jsx(Card, {
85
+ className: classes.card,
82
86
  children: /*#__PURE__*/_jsxs("table", {
83
87
  children: [/*#__PURE__*/_jsx("thead", {
84
88
  children: /*#__PURE__*/_jsxs("tr", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopgate/engage",
3
- "version": "7.32.0-beta.6",
3
+ "version": "7.32.0-beta.8",
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.6",
22
- "@shopgate/pwa-common-commerce": "7.32.0-beta.6",
23
- "@shopgate/pwa-core": "7.32.0-beta.6",
24
- "@shopgate/pwa-ui-ios": "7.32.0-beta.6",
25
- "@shopgate/pwa-ui-material": "7.32.0-beta.6",
26
- "@shopgate/pwa-ui-shared": "7.32.0-beta.6",
21
+ "@shopgate/pwa-common": "7.32.0-beta.8",
22
+ "@shopgate/pwa-common-commerce": "7.32.0-beta.8",
23
+ "@shopgate/pwa-core": "7.32.0-beta.8",
24
+ "@shopgate/pwa-ui-ios": "7.32.0-beta.8",
25
+ "@shopgate/pwa-ui-material": "7.32.0-beta.8",
26
+ "@shopgate/pwa-ui-shared": "7.32.0-beta.8",
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.