@shopgate/pwa-ui-shared 7.32.0-beta.1 → 7.32.0-beta.11

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 (182) hide show
  1. package/ActionButton/index.js +4 -0
  2. package/AddToCartButton/index.js +4 -1
  3. package/Button/index.js +10 -3
  4. package/ButtonLink/index.js +4 -0
  5. package/Card/index.js +13 -34
  6. package/CardList/components/Item/index.js +26 -20
  7. package/CardList/index.js +2 -1
  8. package/CartTotalLine/index.js +1 -1
  9. package/Dialog/components/PipelineErrorDialog/index.js +2 -1
  10. package/Glow/index.js +4 -3
  11. package/NoResults/index.js +1 -1
  12. package/RatingStars/index.js +16 -5
  13. package/RippleButton/index.js +5 -1
  14. package/ScannerOverlay/components/ScannerBar/index.js +1 -1
  15. package/Sheet/components/Header/index.js +3 -4
  16. package/Sheet/index.js +15 -6
  17. package/TaxDisclaimer/index.js +0 -1
  18. package/icons/AccountBoxIcon.d.ts +1 -1
  19. package/icons/AccountBoxIcon.d.ts.map +1 -1
  20. package/icons/AddMoreIcon.d.ts +1 -1
  21. package/icons/AddMoreIcon.d.ts.map +1 -1
  22. package/icons/ArrowDropIcon.d.ts +1 -1
  23. package/icons/ArrowDropIcon.d.ts.map +1 -1
  24. package/icons/ArrowIcon.d.ts +1 -1
  25. package/icons/ArrowIcon.d.ts.map +1 -1
  26. package/icons/BarcodeScannerIcon.d.ts +1 -1
  27. package/icons/BarcodeScannerIcon.d.ts.map +1 -1
  28. package/icons/BoxIcon.d.ts +1 -1
  29. package/icons/BoxIcon.d.ts.map +1 -1
  30. package/icons/BrowseIcon.d.ts +2 -1
  31. package/icons/BrowseIcon.d.ts.map +1 -1
  32. package/icons/BurgerIcon.d.ts +1 -1
  33. package/icons/BurgerIcon.d.ts.map +1 -1
  34. package/icons/CalendarIcon.d.ts +2 -1
  35. package/icons/CalendarIcon.d.ts.map +1 -1
  36. package/icons/CartCouponIcon.d.ts +2 -1
  37. package/icons/CartCouponIcon.d.ts.map +1 -1
  38. package/icons/CartIcon.d.ts +2 -1
  39. package/icons/CartIcon.d.ts.map +1 -1
  40. package/icons/CartPlusIcon.d.ts +2 -1
  41. package/icons/CartPlusIcon.d.ts.map +1 -1
  42. package/icons/CheckIcon.d.ts +2 -1
  43. package/icons/CheckIcon.d.ts.map +1 -1
  44. package/icons/CheckedIcon.d.ts +1 -1
  45. package/icons/CheckedIcon.d.ts.map +1 -1
  46. package/icons/ChevronIcon.d.ts +2 -1
  47. package/icons/ChevronIcon.d.ts.map +1 -1
  48. package/icons/CreditCardIcon.d.ts +2 -1
  49. package/icons/CreditCardIcon.d.ts.map +1 -1
  50. package/icons/CrossIcon.d.ts +2 -1
  51. package/icons/CrossIcon.d.ts.map +1 -1
  52. package/icons/DescriptionIcon.d.ts +2 -1
  53. package/icons/DescriptionIcon.d.ts.map +1 -1
  54. package/icons/FilterIcon.d.ts +2 -1
  55. package/icons/FilterIcon.d.ts.map +1 -1
  56. package/icons/FlashDisabledIcon.d.ts +2 -1
  57. package/icons/FlashDisabledIcon.d.ts.map +1 -1
  58. package/icons/FlashEnabledIcon.d.ts +2 -1
  59. package/icons/FlashEnabledIcon.d.ts.map +1 -1
  60. package/icons/GridIcon.d.ts +2 -1
  61. package/icons/GridIcon.d.ts.map +1 -1
  62. package/icons/HeartIcon.d.ts +2 -1
  63. package/icons/HeartIcon.d.ts.map +1 -1
  64. package/icons/HeartOutlineIcon.d.ts +2 -1
  65. package/icons/HeartOutlineIcon.d.ts.map +1 -1
  66. package/icons/HeartPlusIcon.d.ts +2 -1
  67. package/icons/HeartPlusIcon.d.ts.map +1 -1
  68. package/icons/HeartPlusOutlineIcon.d.ts +2 -1
  69. package/icons/HeartPlusOutlineIcon.d.ts.map +1 -1
  70. package/icons/HomeIcon.d.ts +2 -1
  71. package/icons/HomeIcon.d.ts.map +1 -1
  72. package/icons/InfoIcon.d.ts +2 -1
  73. package/icons/InfoIcon.d.ts.map +1 -1
  74. package/icons/InfoOutlineIcon.d.ts +2 -1
  75. package/icons/InfoOutlineIcon.d.ts.map +1 -1
  76. package/icons/ListIcon.d.ts +2 -1
  77. package/icons/ListIcon.d.ts.map +1 -1
  78. package/icons/LocalShippingIcon.d.ts +2 -1
  79. package/icons/LocalShippingIcon.d.ts.map +1 -1
  80. package/icons/LocationIcon.d.ts +2 -1
  81. package/icons/LocationIcon.d.ts.map +1 -1
  82. package/icons/LocatorIcon.d.ts +2 -1
  83. package/icons/LocatorIcon.d.ts.map +1 -1
  84. package/icons/LockIcon.d.ts +2 -1
  85. package/icons/LockIcon.d.ts.map +1 -1
  86. package/icons/LogoutIcon.d.ts +2 -1
  87. package/icons/LogoutIcon.d.ts.map +1 -1
  88. package/icons/MagnifierIcon.d.ts +2 -1
  89. package/icons/MagnifierIcon.d.ts.map +1 -1
  90. package/icons/MapMarkerIcon.d.ts +2 -1
  91. package/icons/MapMarkerIcon.d.ts.map +1 -1
  92. package/icons/MoreIcon.d.ts +2 -1
  93. package/icons/MoreIcon.d.ts.map +1 -1
  94. package/icons/MoreVertIcon.d.ts +2 -1
  95. package/icons/MoreVertIcon.d.ts.map +1 -1
  96. package/icons/NotificationIcon.d.ts +2 -1
  97. package/icons/NotificationIcon.d.ts.map +1 -1
  98. package/icons/PersonIcon.d.ts +2 -1
  99. package/icons/PersonIcon.d.ts.map +1 -1
  100. package/icons/PhoneIcon.d.ts +2 -1
  101. package/icons/PhoneIcon.d.ts.map +1 -1
  102. package/icons/PlaceholderIcon.d.ts +2 -1
  103. package/icons/PlaceholderIcon.d.ts.map +1 -1
  104. package/icons/RadioCheckedIcon.d.ts +2 -1
  105. package/icons/RadioCheckedIcon.d.ts.map +1 -1
  106. package/icons/RadioUncheckedIcon.d.ts +2 -1
  107. package/icons/RadioUncheckedIcon.d.ts.map +1 -1
  108. package/icons/SecurityIcon.d.ts +2 -1
  109. package/icons/SecurityIcon.d.ts.map +1 -1
  110. package/icons/ShippingMethodIcon.d.ts +2 -1
  111. package/icons/ShippingMethodIcon.d.ts.map +1 -1
  112. package/icons/ShoppingCartIcon.d.ts +2 -1
  113. package/icons/ShoppingCartIcon.d.ts.map +1 -1
  114. package/icons/SortIcon.d.ts +2 -1
  115. package/icons/SortIcon.d.ts.map +1 -1
  116. package/icons/StarHalfIcon.d.ts +2 -1
  117. package/icons/StarHalfIcon.d.ts.map +1 -1
  118. package/icons/StarIcon.d.ts +2 -1
  119. package/icons/StarIcon.d.ts.map +1 -1
  120. package/icons/StarOutlineIcon.d.ts +2 -1
  121. package/icons/StarOutlineIcon.d.ts.map +1 -1
  122. package/icons/StopIcon.d.ts +2 -1
  123. package/icons/StopIcon.d.ts.map +1 -1
  124. package/icons/TickIcon.d.ts +2 -1
  125. package/icons/TickIcon.d.ts.map +1 -1
  126. package/icons/TimeIcon.d.ts +2 -1
  127. package/icons/TimeIcon.d.ts.map +1 -1
  128. package/icons/TrashIcon.d.ts +1 -1
  129. package/icons/TrashIcon.d.ts.map +1 -1
  130. package/icons/TrashOutlineIcon.d.ts +2 -1
  131. package/icons/TrashOutlineIcon.d.ts.map +1 -1
  132. package/icons/UncheckedIcon.d.ts +2 -1
  133. package/icons/UncheckedIcon.d.ts.map +1 -1
  134. package/icons/ViewListIcon.d.ts +2 -1
  135. package/icons/ViewListIcon.d.ts.map +1 -1
  136. package/icons/VisibilityIcon.d.ts +2 -1
  137. package/icons/VisibilityIcon.d.ts.map +1 -1
  138. package/icons/VisibilityOffIcon.d.ts +2 -1
  139. package/icons/VisibilityOffIcon.d.ts.map +1 -1
  140. package/icons/WarningIcon.d.ts +2 -1
  141. package/icons/WarningIcon.d.ts.map +1 -1
  142. package/package.json +5 -5
  143. package/AccordionContainer/spec.js +0 -35
  144. package/ActionButton/spec.js +0 -66
  145. package/AddToCartButton/spec.js +0 -68
  146. package/Availability/spec.js +0 -42
  147. package/Button/spec.js +0 -38
  148. package/ButtonLink/spec.js +0 -29
  149. package/Chip/spec.js +0 -27
  150. package/ContextMenu/spec.js +0 -113
  151. package/Dialog/components/HtmlContentDialog/spec.js +0 -107
  152. package/Dialog/components/PipelineErrorDialog/spec.js +0 -89
  153. package/Dialog/components/TextMessageDialog/spec.js +0 -62
  154. package/Dialog/components/VariantSelectModal/spec.js +0 -55
  155. package/Dialog/spec.js +0 -84
  156. package/DiscountBadge/spec.js +0 -20
  157. package/FavoritesButton/spec.js +0 -131
  158. package/Form/Builder/classes/ActionListener/spec.js +0 -323
  159. package/Form/Builder/spec.js +0 -309
  160. package/Form/InfoField/spec.js +0 -12
  161. package/Form/Password/spec.js +0 -39
  162. package/Form/RadioGroup/spec.js +0 -97
  163. package/Form/Select/spec.js +0 -39
  164. package/Form/SelectContextChoices/spec.js +0 -36
  165. package/Form/TextField/spec.js +0 -124
  166. package/FormElement/spec.js +0 -68
  167. package/Glow/spec.js +0 -14
  168. package/IndicatorCircle/spec.js +0 -26
  169. package/PlaceholderLabel/spec.js +0 -26
  170. package/PlaceholderParagraph/spec.js +0 -26
  171. package/ProgressBar/spec.js +0 -14
  172. package/RadioButton/spec.js +0 -22
  173. package/RatingStars/spec.js +0 -91
  174. package/RippleButton/spec.js +0 -58
  175. package/Sheet/components/Header/components/SearchBar/spec.js +0 -22
  176. package/Sheet/components/Header/spec.js +0 -17
  177. package/Sheet/spec.js +0 -100
  178. package/TaxDisclaimer/spec.js +0 -44
  179. package/TextField/spec.js +0 -146
  180. package/ToggleIcon/spec.js +0 -39
  181. package/tsconfig.build.json +0 -16
  182. package/tsconfig.json +0 -3
@@ -21,6 +21,10 @@ const CLICK_DELAY = 300;
21
21
 
22
22
  /**
23
23
  * The action button component.
24
+ * @deprecated Use `Button` from `@shopgate/engage/components/v2` instead. It defaults to
25
+ * `variant="contained"`, so pass `variant="text"` to match this component's `flat` default. Map
26
+ * `type="secondary"` to `color="primary"`, and `type="primary"` or the default to
27
+ * `color="secondary"`.
24
28
  * @param {Object} props Props.
25
29
  * @returns {JSX.Element}
26
30
  */
@@ -49,7 +49,10 @@ const useStyles = makeStyles()(theme => ({
49
49
  icon: {
50
50
  transition: 'opacity 450ms cubic-bezier(0.4, 0.0, 0.2, 1)',
51
51
  opacity: 1,
52
- position: 'absolute'
52
+ position: 'absolute',
53
+ display: 'flex',
54
+ left: '50%',
55
+ marginLeft: '-0.5em'
53
56
  },
54
57
  spinnerIcon: {
55
58
  left: '50%',
package/Button/index.js CHANGED
@@ -7,9 +7,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
7
7
  /**
8
8
  * @param {string} text Text color.
9
9
  * @param {string|null} background Fill color.
10
+ * @param {Object} theme Theme with button border radius.
10
11
  * @returns {Object} JSS for root button.
11
12
  */
12
- const baseButton = (text, background) => ({
13
+ const baseButton = (text, background, theme) => ({
13
14
  position: 'relative',
14
15
  display: 'inline-block',
15
16
  outline: 0,
@@ -20,7 +21,9 @@ const baseButton = (text, background) => ({
20
21
  ':disabled': {
21
22
  cursor: 'not-allowed'
22
23
  },
23
- ...themeConfig.variables.buttonBase
24
+ ...themeConfig.variables.buttonBase,
25
+ borderRadius: theme.components.button.borderRadius,
26
+ ...theme.typography.button
24
27
  });
25
28
 
26
29
  /**
@@ -30,7 +33,7 @@ const baseButton = (text, background) => ({
30
33
  * @returns {Object} Object with `button` and `content` style maps.
31
34
  */
32
35
  const pairFromColors = (textColor, fillColor, theme) => ({
33
- button: baseButton(textColor, fillColor),
36
+ button: baseButton(textColor, fillColor, theme),
34
37
  content: {
35
38
  padding: theme.spacing(0, 2, 0),
36
39
  color: textColor
@@ -71,6 +74,10 @@ const useStyles = makeStyles()((theme, {
71
74
 
72
75
  /**
73
76
  * The basic button component.
77
+ * @deprecated Use `Button` from `@shopgate/engage/components/v2` instead. Map `flat` to
78
+ * `variant="text"` and omit it for `variant="contained"`. The colors are named differently:
79
+ * `type="secondary"` becomes `color="primary"`, while `type="primary"` and the default become
80
+ * `color="secondary"`. `type="plain"` is unstyled — use `ButtonBase` for it.
74
81
  * @param {Object} props Props.
75
82
  * @returns {JSX.Element}
76
83
  */
@@ -44,6 +44,10 @@ let ButtonLink = /*#__PURE__*/function (_Component) {
44
44
  };
45
45
  return ButtonLink;
46
46
  }(Component);
47
+ /**
48
+ * @deprecated Use `Button` from `@shopgate/engage/components/v2` with `variant="link"` and
49
+ * `color="primary"` instead. It takes the same `href` and routes through the app router itself.
50
+ */
47
51
  ButtonLink.defaultProps = {
48
52
  disabled: false,
49
53
  className: '',
package/Card/index.js CHANGED
@@ -1,40 +1,19 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import { makeStyles } from '@shopgate/engage/styles';
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- const useStyles = makeStyles()(theme => ({
6
- root: {
7
- boxShadow: '0 4px 8px rgba(0,0,0,0.16)',
8
- margin: '5px 5px 10px',
9
- borderRadius: 10,
10
- background: theme.palette.background.surface,
11
- overflow: 'hidden',
12
- position: 'relative'
13
- }
14
- }));
1
+ import React, { useEffect } from 'react';
2
+ import { logger } from '@shopgate/engage/core/helpers';
3
+ import { Card } from '@shopgate/engage/components';
15
4
 
16
5
  /**
17
- * Renders the card component.
18
- * @param {Object} props The component properties.
6
+ * @deprecated Use `import { Card } from '@shopgate/engage/components'` instead.
7
+ * @param {Object} props The component props.
19
8
  * @returns {JSX}
20
9
  */
21
- const Card = ({
22
- className,
23
- children,
24
- id
25
- }) => {
26
- const {
27
- classes,
28
- cx
29
- } = useStyles();
30
- return /*#__PURE__*/_jsx("div", {
31
- className: cx('ui-shared__card', classes.root, className),
32
- id: id,
33
- children: children
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ const DeprecatedCard = props => {
12
+ useEffect(() => {
13
+ logger.warn('===== Card deprecated =====\n' + 'The Card component ' + '(@shopgate/pwa-ui-shared/Card) is deprecated.\n' + 'Please use: import { Card } from \'@shopgate/engage/components\'.\n' + '===================================');
14
+ }, []);
15
+ return /*#__PURE__*/_jsx(Card, {
16
+ ...props
34
17
  });
35
18
  };
36
- Card.defaultProps = {
37
- className: '',
38
- id: null
39
- };
40
- export default Card;
19
+ export default DeprecatedCard;
@@ -1,42 +1,48 @@
1
- import React, { Children } from 'react';
1
+ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import ListItem from '@shopgate/pwa-common/components/List/components/Item';
4
3
  import { makeStyles } from '@shopgate/engage/styles';
5
4
  import { jsx as _jsx } from "react/jsx-runtime";
6
- const useStyles = makeStyles()(theme => ({
7
- root: {
8
- background: theme.palette.background.surface,
9
- marginBottom: theme.spacing(0.5),
5
+ const useStyles = makeStyles()({
6
+ item: {
7
+ display: 'block',
10
8
  position: 'relative'
9
+ },
10
+ unselected: {
11
+ zIndex: 1
12
+ },
13
+ selected: {
14
+ zIndex: 2
11
15
  }
12
- }));
16
+ });
13
17
 
14
18
  /**
15
- * The Card List Item component implemented as class so that ref prop is available.
16
- * @param {Object} props The component props.
17
- * @return {JSX}
19
+ * The ListItem component.
20
+ * @returns {JSX}
18
21
  */
19
- const Item = ({
22
+ const ListItem = ({
20
23
  children,
21
24
  className,
22
- isSelected
25
+ isSelected,
26
+ role
23
27
  }) => {
24
28
  const {
25
29
  classes,
26
30
  cx
27
31
  } = useStyles();
28
- if (!Children.count(children)) {
32
+ if (!React.Children.count(children)) {
29
33
  return null;
30
34
  }
31
- return /*#__PURE__*/_jsx(ListItem, {
32
- className: cx(classes.root, className),
33
- isSelected: isSelected,
35
+ return /*#__PURE__*/_jsx("li", {
36
+ className: cx(classes.item, className, 'common__list__list-item', isSelected ? classes.selected : classes.unselected),
37
+ "data-test-id": "listItem",
38
+ role: role,
34
39
  children: children
35
40
  });
36
41
  };
37
- Item.defaultProps = {
38
- children: null,
42
+ ListItem.defaultProps = {
39
43
  className: null,
40
- isSelected: false
44
+ children: null,
45
+ isSelected: false,
46
+ role: null
41
47
  };
42
- export default Item;
48
+ export default ListItem;
package/CardList/index.js CHANGED
@@ -2,6 +2,7 @@ import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
2
2
  import React, { Component, Children, isValidElement } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import List from '@shopgate/pwa-common/components/List';
5
+ import { cx } from '@shopgate/engage/styles';
5
6
  import Item from "./components/Item";
6
7
 
7
8
  /**
@@ -27,7 +28,7 @@ let CardList = /*#__PURE__*/function (_Component) {
27
28
  return null;
28
29
  }
29
30
  return /*#__PURE__*/_jsx(List, {
30
- className: `ui-shared__card-list ${className}`,
31
+ className: cx('ui-shared__card-list', className),
31
32
  children: Children.map(children, child => {
32
33
  if (! /*#__PURE__*/isValidElement(child)) {
33
34
  return null;
@@ -24,7 +24,7 @@ const useStyles = makeStyles()(theme => ({
24
24
  },
25
25
  grandTotal: {
26
26
  color: theme.palette.text.primary,
27
- fontSize: `${theme.typography.body1.fontSize} !important`
27
+ fontSize: theme.typography.body1.fontSize
28
28
  }
29
29
  }));
30
30
 
@@ -33,7 +33,8 @@ const PipelineErrorDialog = ({
33
33
  params,
34
34
  message
35
35
  }) => {
36
- const [devMode, setDevMode] = useState(false);
36
+ // May be opened directly in developer detail mode (e.g. via long-pressing an error toast).
37
+ const [devMode, setDevMode] = useState(!!params.openWithDetails);
37
38
  const tapTimeoutRef = useRef(null);
38
39
  const tapCounterRef = useRef(0);
39
40
  const handleTapTimeout = useCallback(() => {
package/Glow/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import React, { useState, useRef, useEffect, useCallback } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { withForwardedRef } from '@shopgate/engage/core';
4
- import { makeStyles } from '@shopgate/engage/styles';
4
+ import { makeStyles, useTheme } from '@shopgate/engage/styles';
5
5
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
6
  const useStyles = makeStyles()({
7
7
  container: {
@@ -41,6 +41,7 @@ const Glow = ({
41
41
  classes,
42
42
  cx
43
43
  } = useStyles();
44
+ const theme = useTheme();
44
45
  const [hover, setHover] = useState(false);
45
46
  const timeoutRef = useRef(null);
46
47
  useEffect(() => () => {
@@ -58,7 +59,7 @@ const Glow = ({
58
59
  const innerInlineStyles = hover ? {
59
60
  ...propStyles.glow,
60
61
  ...propStyles.hover,
61
- background: color
62
+ background: color || theme?.palette?.action?.pressed
62
63
  } : {
63
64
  ...propStyles.glow
64
65
  };
@@ -80,7 +81,7 @@ const Glow = ({
80
81
  jsx-a11y/click-events-have-key-events */
81
82
  };
82
83
  Glow.defaultProps = {
83
- color: 'var(--sg-palette-grey-light)',
84
+ color: null,
84
85
  className: null,
85
86
  forwardedRef: null,
86
87
  disabled: false,
@@ -48,7 +48,7 @@ const NoResults = props => {
48
48
  } = useStyles();
49
49
  const imageSRC = useMemo(() => svgToDataUrl(noResultsImage), []);
50
50
  return /*#__PURE__*/_jsxs("div", {
51
- className: cx(classes.wrapper, props.className, ' ui-shared__no-results'),
51
+ className: cx(classes.wrapper, props.className, 'ui-shared__no-results'),
52
52
  "data-test-id": "noResults",
53
53
  children: [/*#__PURE__*/_jsx("div", {
54
54
  className: cx(classes.icon, 'no-results__image'),
@@ -15,7 +15,7 @@ const ICON_SIZES = {
15
15
  const useStyles = makeStyles()(theme => ({
16
16
  container: {
17
17
  position: 'relative',
18
- display: 'inline-block',
18
+ display: 'inline-flex',
19
19
  verticalAlign: 'middle',
20
20
  maxWidth: '100%'
21
21
  },
@@ -43,6 +43,11 @@ const useStyles = makeStyles()(theme => ({
43
43
  position: 'absolute',
44
44
  left: 0,
45
45
  top: 0,
46
+ // Purely decorative overlay: let every pointer event fall through to the
47
+ // empty-star buttons underneath, which span all slots and handle selection.
48
+ // Without this, the invisible spacers/half-stars cover the higher-index
49
+ // buttons and swallow clicks in selectable mode.
50
+ pointerEvents: 'none',
46
51
  color: theme.components.ratingStars.filled,
47
52
  display: 'inline-flex',
48
53
  alignItems: 'center',
@@ -107,10 +112,10 @@ const RatingStars = ({
107
112
  const starProps = {
108
113
  className: iconClassName,
109
114
  key: numStars + pos,
115
+ // Decorative duplicate of the underlying empty-star button; hidden from
116
+ // assistive tech and non-interactive (the empty layer handles clicks).
110
117
  ...(isSelectable && {
111
- 'aria-hidden': true,
112
- role: 'button',
113
- onClick: e => handleSelection(e, pos)
118
+ 'aria-hidden': true
114
119
  })
115
120
  };
116
121
  return /*#__PURE__*/_jsx("div", {
@@ -124,7 +129,13 @@ const RatingStars = ({
124
129
  children: /*#__PURE__*/_jsx(StarHalfIcon, {
125
130
  size: size
126
131
  })
127
- }, i + numFullStars))), [iconClassName, numFullStars, numHalfStars, size, handleSelection, isSelectable]);
132
+ }, i + numFullStars)), times(Math.max(numStars - numFullStars - numHalfStars, 0), i => /*#__PURE__*/_jsx("div", {
133
+ className: iconClassName,
134
+ style: {
135
+ width: size
136
+ },
137
+ "aria-hidden": true
138
+ }, `placeholder-${i}`))), [iconClassName, numFullStars, numHalfStars, size, isSelectable]);
128
139
  return /*#__PURE__*/_jsxs("div", {
129
140
  role: isSelectable ? undefined : 'img',
130
141
  className: rootClassName,
@@ -14,6 +14,10 @@ const useStyles = makeStyles()(theme => ({
14
14
  /**
15
15
  * The ripple button component is a special derivation of the basic button component
16
16
  * that adds a ripple effect when clicked.
17
+ * @deprecated Use `Button` from `@shopgate/engage/components/v2` instead — it ripples by default,
18
+ * so `rippleClassName` and `rippleSize` are gone and `disableRipple` turns the effect off. Map
19
+ * `flat` to `variant="text"`, `type="secondary"` to `color="primary"`, and `type="primary"` or the
20
+ * default to `color="secondary"`.
17
21
  * @param {Object} props Props.
18
22
  * @returns {JSX.Element}
19
23
  */
@@ -34,7 +38,7 @@ const RippleButton = ({
34
38
  classes
35
39
  } = useStyles();
36
40
  const buttonProps = {
37
- className: `${className} ui-shared__ripple-button`,
41
+ className: cx(className, 'ui-shared__ripple-button'),
38
42
  disabled,
39
43
  onClick,
40
44
  flat,
@@ -14,7 +14,7 @@ const useStyles = makeStyles()(theme => ({
14
14
  boxShadow: '0 0 0 1px rgba(0, 0, 0, 0.1)',
15
15
  fontSize: theme.typography.body2.fontSize,
16
16
  alignItems: 'center',
17
- paddingBottom: 'var(--safe-area-inset-bottom)'
17
+ paddingBottom: theme.layout.safeArea.bottom
18
18
  },
19
19
  column: {
20
20
  margin: theme.spacing(2),
@@ -2,7 +2,6 @@ import React, { memo } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import Grid from '@shopgate/pwa-common/components/Grid';
4
4
  import { i18n } from '@shopgate/engage/core/helpers';
5
- import { themeConfig } from '@shopgate/pwa-common/helpers/config';
6
5
  import { Typography } from '@shopgate/engage/components';
7
6
  import { makeStyles } from '@shopgate/engage/styles';
8
7
  import Ripple from "../../../Ripple";
@@ -15,14 +14,14 @@ const useStyles = makeStyles()(theme => ({
15
14
  zIndex: 2
16
15
  },
17
16
  closePlaceholder: {
18
- height: themeConfig.variables.navigator.height,
17
+ height: theme.components.navigator.height,
19
18
  padding: 0
20
19
  },
21
20
  closeButton: {
22
21
  outline: 0,
23
22
  padding: 0,
24
- minWidth: themeConfig.variables.navigator.height,
25
- height: themeConfig.variables.navigator.height,
23
+ minWidth: theme.components.navigator.height,
24
+ height: theme.components.navigator.height,
26
25
  position: 'relative',
27
26
  zIndex: 2,
28
27
  color: theme.palette.text.primary
package/Sheet/index.js CHANGED
@@ -4,7 +4,6 @@ import throttle from 'lodash/throttle';
4
4
  import UIEvents from '@shopgate/pwa-core/emitters/ui';
5
5
  import Backdrop from '@shopgate/pwa-common/components/Backdrop';
6
6
  import Drawer from '@shopgate/pwa-common/components/Drawer';
7
- import { themeConfig } from '@shopgate/pwa-common/helpers/config';
8
7
  import { makeStyles, keyframes, responsiveMediaQuery } from '@shopgate/engage/styles';
9
8
  import ProgressBar from "../ProgressBar";
10
9
  import Header from "./components/Header";
@@ -90,7 +89,7 @@ const useStyles = makeStyles()(theme => ({
90
89
  }
91
90
  },
92
91
  containerFullScreen: {
93
- height: [`calc(100vh - ${themeConfig.variables.navigator.height}px - 51px)`, `calc(100vh - ${themeConfig.variables.navigator.height}px - 51px - var(--safe-area-inset-top))`]
92
+ height: [`calc(100vh - ${theme.components.navigator.height} - 51px)`, `calc(100vh - ${theme.components.navigator.height} - 51px - ${theme.layout.safeArea.top})`]
94
93
  },
95
94
  progressBarContainer: {
96
95
  position: 'relative'
@@ -99,15 +98,25 @@ const useStyles = makeStyles()(theme => ({
99
98
  boxShadow: '0 -2px 4px rgba(0, 0, 0, 0.1)'
100
99
  },
101
100
  content: {
102
- maxHeight: [`calc(var(--vh-100, 100vh) - ${themeConfig.variables.navigator.height}px)`, `calc(var(--vh-100, 100vh) - ${themeConfig.variables.navigator.height}px - var(--safe-area-inset-top))`],
101
+ maxHeight: [`calc(var(--vh-100, 100vh) - ${theme.components.navigator.height})`, `calc(var(--vh-100, 100vh) - ${theme.components.navigator.height} - ${theme.layout.safeArea.top})`],
103
102
  [responsiveMediaQuery('>sm', {
104
103
  webOnly: true
105
104
  })]: {
106
- maxHeight: [`calc(var(--vh-80, 80vh) - ${themeConfig.variables.navigator.height}px)`, `calc(var(--vh-80, 80vh) - ${themeConfig.variables.navigator.height}px - var(--safe-area-inset-top))`]
105
+ maxHeight: [`calc(var(--vh-80, 80vh) - ${theme.components.navigator.height})`, `calc(var(--vh-80, 80vh) - ${theme.components.navigator.height} - ${theme.layout.safeArea.top})`]
107
106
  },
108
- paddingBottom: ['var(--safe-area-inset-bottom)'],
107
+ paddingBottom: [theme.layout.safeArea.bottom],
109
108
  overflowY: 'scroll',
110
- WebkitOverflowScrolling: 'touch'
109
+ WebkitOverflowScrolling: 'touch',
110
+ '@media (hover: hover) and (pointer: fine)': {
111
+ '::-webkit-scrollbar': {
112
+ width: 6,
113
+ background: 'transparent'
114
+ },
115
+ '::-webkit-scrollbar-thumb': {
116
+ background: theme.components.border.medium,
117
+ borderRadius: 4
118
+ }
119
+ }
111
120
  },
112
121
  drawerAnimIn: {
113
122
  [responsiveMediaQuery('<=sm', {
@@ -8,7 +8,6 @@ import { makeStyles } from '@shopgate/engage/styles';
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  const useStyles = makeStyles()(theme => ({
10
10
  text: {
11
- background: theme.palette.background.surface,
12
11
  padding: theme.spacing(2.5, 2)
13
12
  }
14
13
  }));
@@ -2,6 +2,6 @@ import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
2
  /**
3
3
  * The account box icon component.
4
4
  */
5
- declare const AccountBox: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
5
+ declare const AccountBox: (props: Omit<IconProps, "content">) => import("react").JSX.Element;
6
6
  export default AccountBox;
7
7
  //# sourceMappingURL=AccountBoxIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AccountBoxIcon.d.ts","sourceRoot":"","sources":["../../icons/AccountBoxIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,UAAU,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACQ,CAAC;AAE9D,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"AccountBoxIcon.d.ts","sourceRoot":"","sources":["../../icons/AccountBoxIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,UAAU,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,gCACQ,CAAC;AAE9D,eAAe,UAAU,CAAC"}
@@ -2,6 +2,6 @@ import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
2
  /**
3
3
  * The add more icon component.
4
4
  */
5
- declare const AddMore: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
5
+ declare const AddMore: (props: Omit<IconProps, "content">) => import("react").JSX.Element;
6
6
  export default AddMore;
7
7
  //# sourceMappingURL=AddMoreIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AddMoreIcon.d.ts","sourceRoot":"","sources":["../../icons/AddMoreIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,OAAO,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACQ,CAAC;AAE3D,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"AddMoreIcon.d.ts","sourceRoot":"","sources":["../../icons/AddMoreIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,OAAO,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,gCACQ,CAAC;AAE3D,eAAe,OAAO,CAAC"}
@@ -2,6 +2,6 @@ import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
2
  /**
3
3
  * The arrow-drop icon component.
4
4
  */
5
- declare const ArrowDrop: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
5
+ declare const ArrowDrop: (props: Omit<IconProps, "content">) => import("react").JSX.Element;
6
6
  export default ArrowDrop;
7
7
  //# sourceMappingURL=ArrowDropIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ArrowDropIcon.d.ts","sourceRoot":"","sources":["../../icons/ArrowDropIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,SAAS,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACQ,CAAC;AAE7D,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"ArrowDropIcon.d.ts","sourceRoot":"","sources":["../../icons/ArrowDropIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,SAAS,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,gCACQ,CAAC;AAE7D,eAAe,SAAS,CAAC"}
@@ -5,6 +5,6 @@ export interface ArrowIconProps extends Omit<IconProps, 'content'> {
5
5
  /**
6
6
  * The arrow icon component.
7
7
  */
8
- declare const ArrowIcon: ({ shadow, ...props }: ArrowIconProps) => import("react/jsx-runtime").JSX.Element;
8
+ declare const ArrowIcon: ({ shadow, ...props }: ArrowIconProps) => import("react").JSX.Element;
9
9
  export default ArrowIcon;
10
10
  //# sourceMappingURL=ArrowIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ArrowIcon.d.ts","sourceRoot":"","sources":["../../icons/ArrowIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAGtE,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;IAChE,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,QAAA,MAAM,SAAS,GAAI,sBAA8B,cAAc,4CAG9D,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"ArrowIcon.d.ts","sourceRoot":"","sources":["../../icons/ArrowIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAGtE,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;IAChE,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,QAAA,MAAM,SAAS,GAAI,sBAA8B,cAAc,gCAG9D,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -2,6 +2,6 @@ import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
2
  /**
3
3
  * The barcode icon component.
4
4
  */
5
- declare const BarcodeScanner: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
5
+ declare const BarcodeScanner: (props: Omit<IconProps, "content">) => import("react").JSX.Element;
6
6
  export default BarcodeScanner;
7
7
  //# sourceMappingURL=BarcodeScannerIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BarcodeScannerIcon.d.ts","sourceRoot":"","sources":["../../icons/BarcodeScannerIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,cAAc,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACQ,CAAC;AAElE,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"BarcodeScannerIcon.d.ts","sourceRoot":"","sources":["../../icons/BarcodeScannerIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,cAAc,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,gCACQ,CAAC;AAElE,eAAe,cAAc,CAAC"}
@@ -2,6 +2,6 @@ import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
2
  /**
3
3
  * The box icon component.
4
4
  */
5
- declare const Box: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
5
+ declare const Box: (props: Omit<IconProps, "content">) => import("react").JSX.Element;
6
6
  export default Box;
7
7
  //# sourceMappingURL=BoxIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BoxIcon.d.ts","sourceRoot":"","sources":["../../icons/BoxIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAGtE;;GAEG;AACH,QAAA,MAAM,GAAG,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CAE7C,CAAC;AAEF,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"BoxIcon.d.ts","sourceRoot":"","sources":["../../icons/BoxIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAGtE;;GAEG;AACH,QAAA,MAAM,GAAG,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,gCAE7C,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
3
  /**
3
4
  * The browse icon component.
4
5
  */
5
- declare const Browse: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
6
+ declare const Browse: (props: Omit<IconProps, "content">) => React.JSX.Element;
6
7
  export default Browse;
7
8
  //# sourceMappingURL=BrowseIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BrowseIcon.d.ts","sourceRoot":"","sources":["../../icons/BrowseIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,MAAM,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACQ,CAAC;AAE1D,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"BrowseIcon.d.ts","sourceRoot":"","sources":["../../icons/BrowseIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,MAAM,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,sBACQ,CAAC;AAE1D,eAAe,MAAM,CAAC"}
@@ -2,6 +2,6 @@ import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
2
  /**
3
3
  * The burger icon component.
4
4
  */
5
- declare const Burger: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
5
+ declare const Burger: (props: Omit<IconProps, "content">) => import("react").JSX.Element;
6
6
  export default Burger;
7
7
  //# sourceMappingURL=BurgerIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BurgerIcon.d.ts","sourceRoot":"","sources":["../../icons/BurgerIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,MAAM,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACQ,CAAC;AAE1D,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"BurgerIcon.d.ts","sourceRoot":"","sources":["../../icons/BurgerIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,MAAM,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,gCACQ,CAAC;AAE1D,eAAe,MAAM,CAAC"}
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
3
  /**
3
4
  * The calendar icon component.
4
5
  */
5
- declare const Calendar: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
6
+ declare const Calendar: (props: Omit<IconProps, "content">) => React.JSX.Element;
6
7
  export default Calendar;
7
8
  //# sourceMappingURL=CalendarIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarIcon.d.ts","sourceRoot":"","sources":["../../icons/CalendarIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAMtE;;GAEG;AACH,QAAA,MAAM,QAAQ,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACiB,CAAC;AAErE,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"CalendarIcon.d.ts","sourceRoot":"","sources":["../../icons/CalendarIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAMtE;;GAEG;AACH,QAAA,MAAM,QAAQ,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,sBACiB,CAAC;AAErE,eAAe,QAAQ,CAAC"}
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
3
  /**
3
4
  * Cart discount default icon
4
5
  */
5
- declare const CartCouponIcon: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
6
+ declare const CartCouponIcon: (props: Omit<IconProps, "content">) => React.JSX.Element;
6
7
  export default CartCouponIcon;
7
8
  //# sourceMappingURL=CartCouponIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CartCouponIcon.d.ts","sourceRoot":"","sources":["../../icons/CartCouponIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAgEtE;;GAEG;AACH,QAAA,MAAM,cAAc,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CAIvD,CAAC;AAEH,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"CartCouponIcon.d.ts","sourceRoot":"","sources":["../../icons/CartCouponIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAgEtE;;GAEG;AACH,QAAA,MAAM,cAAc,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,sBAIvD,CAAC;AAEH,eAAe,cAAc,CAAC"}
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
3
  /**
3
4
  * The cart icon component.
4
5
  */
5
- declare const CartIcon: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
6
+ declare const CartIcon: (props: Omit<IconProps, "content">) => React.JSX.Element;
6
7
  export default CartIcon;
7
8
  //# sourceMappingURL=CartIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CartIcon.d.ts","sourceRoot":"","sources":["../../icons/CartIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,QAAQ,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACI,CAAC;AAExD,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"CartIcon.d.ts","sourceRoot":"","sources":["../../icons/CartIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,QAAQ,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,sBACI,CAAC;AAExD,eAAe,QAAQ,CAAC"}
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
3
  /**
3
4
  * The cart plus icon component.
4
5
  */
5
- declare const CartPlus: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
6
+ declare const CartPlus: (props: Omit<IconProps, "content">) => React.JSX.Element;
6
7
  export default CartPlus;
7
8
  //# sourceMappingURL=CartPlusIcon.d.ts.map