@shopgate/pwa-ui-shared 7.32.0-beta.1 → 7.32.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ActionButton/index.js +4 -0
- package/AddToCartButton/index.js +4 -1
- package/Button/index.js +10 -3
- package/ButtonLink/index.js +4 -0
- package/Card/index.js +13 -34
- package/CardList/components/Item/index.js +26 -20
- package/CardList/index.js +2 -1
- package/CartTotalLine/index.js +1 -1
- package/Dialog/components/PipelineErrorDialog/index.js +2 -1
- package/Glow/index.js +4 -3
- package/NoResults/index.js +1 -1
- package/RatingStars/index.js +16 -5
- package/RippleButton/index.js +5 -1
- package/ScannerOverlay/components/ScannerBar/index.js +1 -1
- package/Sheet/components/Header/index.js +3 -4
- package/Sheet/index.js +15 -6
- package/TaxDisclaimer/index.js +0 -1
- package/icons/AccountBoxIcon.d.ts +1 -1
- package/icons/AccountBoxIcon.d.ts.map +1 -1
- package/icons/AddMoreIcon.d.ts +1 -1
- package/icons/AddMoreIcon.d.ts.map +1 -1
- package/icons/ArrowDropIcon.d.ts +1 -1
- package/icons/ArrowDropIcon.d.ts.map +1 -1
- package/icons/ArrowIcon.d.ts +1 -1
- package/icons/ArrowIcon.d.ts.map +1 -1
- package/icons/BarcodeScannerIcon.d.ts +1 -1
- package/icons/BarcodeScannerIcon.d.ts.map +1 -1
- package/icons/BoxIcon.d.ts +1 -1
- package/icons/BoxIcon.d.ts.map +1 -1
- package/icons/BrowseIcon.d.ts +2 -1
- package/icons/BrowseIcon.d.ts.map +1 -1
- package/icons/BurgerIcon.d.ts +1 -1
- package/icons/BurgerIcon.d.ts.map +1 -1
- package/icons/CalendarIcon.d.ts +2 -1
- package/icons/CalendarIcon.d.ts.map +1 -1
- package/icons/CartCouponIcon.d.ts +2 -1
- package/icons/CartCouponIcon.d.ts.map +1 -1
- package/icons/CartIcon.d.ts +2 -1
- package/icons/CartIcon.d.ts.map +1 -1
- package/icons/CartPlusIcon.d.ts +2 -1
- package/icons/CartPlusIcon.d.ts.map +1 -1
- package/icons/CheckIcon.d.ts +2 -1
- package/icons/CheckIcon.d.ts.map +1 -1
- package/icons/CheckedIcon.d.ts +1 -1
- package/icons/CheckedIcon.d.ts.map +1 -1
- package/icons/ChevronIcon.d.ts +2 -1
- package/icons/ChevronIcon.d.ts.map +1 -1
- package/icons/CreditCardIcon.d.ts +2 -1
- package/icons/CreditCardIcon.d.ts.map +1 -1
- package/icons/CrossIcon.d.ts +2 -1
- package/icons/CrossIcon.d.ts.map +1 -1
- package/icons/DescriptionIcon.d.ts +2 -1
- package/icons/DescriptionIcon.d.ts.map +1 -1
- package/icons/FilterIcon.d.ts +2 -1
- package/icons/FilterIcon.d.ts.map +1 -1
- package/icons/FlashDisabledIcon.d.ts +2 -1
- package/icons/FlashDisabledIcon.d.ts.map +1 -1
- package/icons/FlashEnabledIcon.d.ts +2 -1
- package/icons/FlashEnabledIcon.d.ts.map +1 -1
- package/icons/GridIcon.d.ts +2 -1
- package/icons/GridIcon.d.ts.map +1 -1
- package/icons/HeartIcon.d.ts +2 -1
- package/icons/HeartIcon.d.ts.map +1 -1
- package/icons/HeartOutlineIcon.d.ts +2 -1
- package/icons/HeartOutlineIcon.d.ts.map +1 -1
- package/icons/HeartPlusIcon.d.ts +2 -1
- package/icons/HeartPlusIcon.d.ts.map +1 -1
- package/icons/HeartPlusOutlineIcon.d.ts +2 -1
- package/icons/HeartPlusOutlineIcon.d.ts.map +1 -1
- package/icons/HomeIcon.d.ts +2 -1
- package/icons/HomeIcon.d.ts.map +1 -1
- package/icons/InfoIcon.d.ts +2 -1
- package/icons/InfoIcon.d.ts.map +1 -1
- package/icons/InfoOutlineIcon.d.ts +2 -1
- package/icons/InfoOutlineIcon.d.ts.map +1 -1
- package/icons/ListIcon.d.ts +2 -1
- package/icons/ListIcon.d.ts.map +1 -1
- package/icons/LocalShippingIcon.d.ts +2 -1
- package/icons/LocalShippingIcon.d.ts.map +1 -1
- package/icons/LocationIcon.d.ts +2 -1
- package/icons/LocationIcon.d.ts.map +1 -1
- package/icons/LocatorIcon.d.ts +2 -1
- package/icons/LocatorIcon.d.ts.map +1 -1
- package/icons/LockIcon.d.ts +2 -1
- package/icons/LockIcon.d.ts.map +1 -1
- package/icons/LogoutIcon.d.ts +2 -1
- package/icons/LogoutIcon.d.ts.map +1 -1
- package/icons/MagnifierIcon.d.ts +2 -1
- package/icons/MagnifierIcon.d.ts.map +1 -1
- package/icons/MapMarkerIcon.d.ts +2 -1
- package/icons/MapMarkerIcon.d.ts.map +1 -1
- package/icons/MoreIcon.d.ts +2 -1
- package/icons/MoreIcon.d.ts.map +1 -1
- package/icons/MoreVertIcon.d.ts +2 -1
- package/icons/MoreVertIcon.d.ts.map +1 -1
- package/icons/NotificationIcon.d.ts +2 -1
- package/icons/NotificationIcon.d.ts.map +1 -1
- package/icons/PersonIcon.d.ts +2 -1
- package/icons/PersonIcon.d.ts.map +1 -1
- package/icons/PhoneIcon.d.ts +2 -1
- package/icons/PhoneIcon.d.ts.map +1 -1
- package/icons/PlaceholderIcon.d.ts +2 -1
- package/icons/PlaceholderIcon.d.ts.map +1 -1
- package/icons/RadioCheckedIcon.d.ts +2 -1
- package/icons/RadioCheckedIcon.d.ts.map +1 -1
- package/icons/RadioUncheckedIcon.d.ts +2 -1
- package/icons/RadioUncheckedIcon.d.ts.map +1 -1
- package/icons/SecurityIcon.d.ts +2 -1
- package/icons/SecurityIcon.d.ts.map +1 -1
- package/icons/ShippingMethodIcon.d.ts +2 -1
- package/icons/ShippingMethodIcon.d.ts.map +1 -1
- package/icons/ShoppingCartIcon.d.ts +2 -1
- package/icons/ShoppingCartIcon.d.ts.map +1 -1
- package/icons/SortIcon.d.ts +2 -1
- package/icons/SortIcon.d.ts.map +1 -1
- package/icons/StarHalfIcon.d.ts +2 -1
- package/icons/StarHalfIcon.d.ts.map +1 -1
- package/icons/StarIcon.d.ts +2 -1
- package/icons/StarIcon.d.ts.map +1 -1
- package/icons/StarOutlineIcon.d.ts +2 -1
- package/icons/StarOutlineIcon.d.ts.map +1 -1
- package/icons/StopIcon.d.ts +2 -1
- package/icons/StopIcon.d.ts.map +1 -1
- package/icons/TickIcon.d.ts +2 -1
- package/icons/TickIcon.d.ts.map +1 -1
- package/icons/TimeIcon.d.ts +2 -1
- package/icons/TimeIcon.d.ts.map +1 -1
- package/icons/TrashIcon.d.ts +1 -1
- package/icons/TrashIcon.d.ts.map +1 -1
- package/icons/TrashOutlineIcon.d.ts +2 -1
- package/icons/TrashOutlineIcon.d.ts.map +1 -1
- package/icons/UncheckedIcon.d.ts +2 -1
- package/icons/UncheckedIcon.d.ts.map +1 -1
- package/icons/ViewListIcon.d.ts +2 -1
- package/icons/ViewListIcon.d.ts.map +1 -1
- package/icons/VisibilityIcon.d.ts +2 -1
- package/icons/VisibilityIcon.d.ts.map +1 -1
- package/icons/VisibilityOffIcon.d.ts +2 -1
- package/icons/VisibilityOffIcon.d.ts.map +1 -1
- package/icons/WarningIcon.d.ts +2 -1
- package/icons/WarningIcon.d.ts.map +1 -1
- package/package.json +5 -5
- package/AccordionContainer/spec.js +0 -35
- package/ActionButton/spec.js +0 -66
- package/AddToCartButton/spec.js +0 -68
- package/Availability/spec.js +0 -42
- package/Button/spec.js +0 -38
- package/ButtonLink/spec.js +0 -29
- package/Chip/spec.js +0 -27
- package/ContextMenu/spec.js +0 -113
- package/Dialog/components/HtmlContentDialog/spec.js +0 -107
- package/Dialog/components/PipelineErrorDialog/spec.js +0 -89
- package/Dialog/components/TextMessageDialog/spec.js +0 -62
- package/Dialog/components/VariantSelectModal/spec.js +0 -55
- package/Dialog/spec.js +0 -84
- package/DiscountBadge/spec.js +0 -20
- package/FavoritesButton/spec.js +0 -131
- package/Form/Builder/classes/ActionListener/spec.js +0 -323
- package/Form/Builder/spec.js +0 -309
- package/Form/InfoField/spec.js +0 -12
- package/Form/Password/spec.js +0 -39
- package/Form/RadioGroup/spec.js +0 -97
- package/Form/Select/spec.js +0 -39
- package/Form/SelectContextChoices/spec.js +0 -36
- package/Form/TextField/spec.js +0 -124
- package/FormElement/spec.js +0 -68
- package/Glow/spec.js +0 -14
- package/IndicatorCircle/spec.js +0 -26
- package/PlaceholderLabel/spec.js +0 -26
- package/PlaceholderParagraph/spec.js +0 -26
- package/ProgressBar/spec.js +0 -14
- package/RadioButton/spec.js +0 -22
- package/RatingStars/spec.js +0 -91
- package/RippleButton/spec.js +0 -58
- package/Sheet/components/Header/components/SearchBar/spec.js +0 -22
- package/Sheet/components/Header/spec.js +0 -17
- package/Sheet/spec.js +0 -100
- package/TaxDisclaimer/spec.js +0 -44
- package/TextField/spec.js +0 -146
- package/ToggleIcon/spec.js +0 -39
- package/tsconfig.build.json +0 -16
- package/tsconfig.json +0 -3
package/ActionButton/index.js
CHANGED
|
@@ -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
|
*/
|
package/AddToCartButton/index.js
CHANGED
|
@@ -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
|
*/
|
package/ButtonLink/index.js
CHANGED
|
@@ -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
|
|
3
|
-
import {
|
|
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
|
-
*
|
|
18
|
-
* @param {Object} props The component
|
|
6
|
+
* @deprecated Use `import { Card } from '@shopgate/engage/components'` instead.
|
|
7
|
+
* @param {Object} props The component props.
|
|
19
8
|
* @returns {JSX}
|
|
20
9
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
37
|
-
className: '',
|
|
38
|
-
id: null
|
|
39
|
-
};
|
|
40
|
-
export default Card;
|
|
19
|
+
export default DeprecatedCard;
|
|
@@ -1,42 +1,48 @@
|
|
|
1
|
-
import 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()(
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
16
|
-
* @
|
|
17
|
-
* @return {JSX}
|
|
19
|
+
* The ListItem component.
|
|
20
|
+
* @returns {JSX}
|
|
18
21
|
*/
|
|
19
|
-
const
|
|
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(
|
|
32
|
-
className: cx(classes.
|
|
33
|
-
|
|
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
|
-
|
|
38
|
-
children: null,
|
|
42
|
+
ListItem.defaultProps = {
|
|
39
43
|
className: null,
|
|
40
|
-
|
|
44
|
+
children: null,
|
|
45
|
+
isSelected: false,
|
|
46
|
+
role: null
|
|
41
47
|
};
|
|
42
|
-
export default
|
|
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:
|
|
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;
|
package/CartTotalLine/index.js
CHANGED
|
@@ -33,7 +33,8 @@ const PipelineErrorDialog = ({
|
|
|
33
33
|
params,
|
|
34
34
|
message
|
|
35
35
|
}) => {
|
|
36
|
-
|
|
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:
|
|
84
|
+
color: null,
|
|
84
85
|
className: null,
|
|
85
86
|
forwardedRef: null,
|
|
86
87
|
disabled: false,
|
package/NoResults/index.js
CHANGED
|
@@ -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, '
|
|
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'),
|
package/RatingStars/index.js
CHANGED
|
@@ -15,7 +15,7 @@ const ICON_SIZES = {
|
|
|
15
15
|
const useStyles = makeStyles()(theme => ({
|
|
16
16
|
container: {
|
|
17
17
|
position: 'relative',
|
|
18
|
-
display: 'inline-
|
|
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))
|
|
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,
|
package/RippleButton/index.js
CHANGED
|
@@ -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:
|
|
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:
|
|
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:
|
|
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:
|
|
25
|
-
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 - ${
|
|
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) - ${
|
|
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) - ${
|
|
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: [
|
|
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', {
|
package/TaxDisclaimer/index.js
CHANGED
|
@@ -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
|
|
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,
|
|
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"}
|
package/icons/AddMoreIcon.d.ts
CHANGED
|
@@ -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
|
|
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,
|
|
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"}
|
package/icons/ArrowDropIcon.d.ts
CHANGED
|
@@ -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
|
|
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,
|
|
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"}
|
package/icons/ArrowIcon.d.ts
CHANGED
|
@@ -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
|
|
8
|
+
declare const ArrowIcon: ({ shadow, ...props }: ArrowIconProps) => import("react").JSX.Element;
|
|
9
9
|
export default ArrowIcon;
|
|
10
10
|
//# sourceMappingURL=ArrowIcon.d.ts.map
|
package/icons/ArrowIcon.d.ts.map
CHANGED
|
@@ -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,
|
|
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
|
|
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,
|
|
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"}
|
package/icons/BoxIcon.d.ts
CHANGED
|
@@ -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
|
|
5
|
+
declare const Box: (props: Omit<IconProps, "content">) => import("react").JSX.Element;
|
|
6
6
|
export default Box;
|
|
7
7
|
//# sourceMappingURL=BoxIcon.d.ts.map
|
package/icons/BoxIcon.d.ts.map
CHANGED
|
@@ -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,
|
|
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"}
|
package/icons/BrowseIcon.d.ts
CHANGED
|
@@ -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">) =>
|
|
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":"
|
|
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"}
|
package/icons/BurgerIcon.d.ts
CHANGED
|
@@ -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
|
|
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,
|
|
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"}
|
package/icons/CalendarIcon.d.ts
CHANGED
|
@@ -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">) =>
|
|
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":"
|
|
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">) =>
|
|
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":"
|
|
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"}
|
package/icons/CartIcon.d.ts
CHANGED
|
@@ -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">) =>
|
|
6
|
+
declare const CartIcon: (props: Omit<IconProps, "content">) => React.JSX.Element;
|
|
6
7
|
export default CartIcon;
|
|
7
8
|
//# sourceMappingURL=CartIcon.d.ts.map
|
package/icons/CartIcon.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CartIcon.d.ts","sourceRoot":"","sources":["../../icons/CartIcon.tsx"],"names":[],"mappings":"
|
|
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"}
|
package/icons/CartPlusIcon.d.ts
CHANGED
|
@@ -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">) =>
|
|
6
|
+
declare const CartPlus: (props: Omit<IconProps, "content">) => React.JSX.Element;
|
|
6
7
|
export default CartPlus;
|
|
7
8
|
//# sourceMappingURL=CartPlusIcon.d.ts.map
|