@shopgate/pwa-ui-shared 7.30.0-alpha.8 → 7.30.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AccordionContainer/index.js +17 -11
- package/AccordionContainer/spec.js +12 -3
- package/ActionButton/index.js +51 -32
- package/ActionButton/spec.js +13 -5
- package/AddToCartButton/index.js +44 -33
- package/AddToCartButton/mock.js +20 -8
- package/AddToCartButton/spec.js +29 -14
- package/Availability/index.js +5 -3
- package/Availability/spec.js +6 -5
- package/Button/index.js +73 -58
- package/Button/spec.js +16 -10
- package/ButtonLink/index.js +20 -12
- package/ButtonLink/spec.js +5 -3
- package/Card/index.js +5 -3
- package/CardList/components/Item/index.js +5 -3
- package/CardList/index.js +21 -12
- package/CartTotalLine/components/Amount/index.js +10 -8
- package/CartTotalLine/components/Hint/index.js +7 -5
- package/CartTotalLine/components/Label/index.js +12 -10
- package/CartTotalLine/components/Spacer/index.js +5 -3
- package/CartTotalLine/index.js +5 -3
- package/Checkbox/index.js +6 -5
- package/Chip/index.js +28 -22
- package/Chip/spec.js +9 -6
- package/ContextMenu/ContextMenuProvider.js +5 -3
- package/ContextMenu/components/Item/index.js +14 -11
- package/ContextMenu/components/Position/index.js +20 -12
- package/ContextMenu/index.js +54 -44
- package/ContextMenu/spec.js +31 -20
- package/Dialog/components/HtmlContentDialog/index.js +9 -7
- package/Dialog/components/HtmlContentDialog/spec.js +9 -6
- package/Dialog/components/PipelineErrorDialog/index.js +106 -47
- package/Dialog/components/PipelineErrorDialog/spec.js +5 -4
- package/Dialog/components/TextMessageDialog/index.js +9 -7
- package/Dialog/components/TextMessageDialog/spec.js +9 -6
- package/Dialog/components/VariantSelectModal/index.js +7 -5
- package/Dialog/components/VariantSelectModal/spec.js +6 -3
- package/Dialog/index.js +12 -8
- package/Dialog/spec.js +7 -6
- package/DiscountBadge/index.js +10 -8
- package/DiscountBadge/spec.js +3 -2
- package/FavoritesButton/index.js +40 -31
- package/FavoritesButton/spec.js +7 -3
- package/Form/Builder/classes/ActionListener/index.js +400 -401
- package/Form/Builder/components/CheckboxElement.js +13 -5
- package/Form/Builder/components/CountryElement.js +13 -5
- package/Form/Builder/components/ProvinceElement.js +13 -5
- package/Form/Builder/components/RadioElement.js +19 -11
- package/Form/Builder/components/SelectElement.js +26 -16
- package/Form/Builder/components/TextElement.js +13 -5
- package/Form/Builder/index.js +70 -60
- package/Form/Builder/spec.js +27 -18
- package/Form/Checkbox/index.js +31 -21
- package/Form/InfoField/index.js +19 -12
- package/Form/InfoField/spec.js +4 -1
- package/Form/Password/index.js +22 -15
- package/Form/Password/spec.js +10 -5
- package/Form/RadioGroup/components/Item/index.js +34 -25
- package/Form/RadioGroup/index.js +37 -28
- package/Form/RadioGroup/spec.js +45 -31
- package/Form/Select/index.js +52 -43
- package/Form/Select/spec.js +5 -2
- package/Form/SelectContextChoices/index.js +26 -22
- package/Form/SelectContextChoices/spec.js +4 -1
- package/Form/TextField/index.js +40 -27
- package/Form/TextField/spec.js +34 -21
- package/Form/index.js +23 -15
- package/FormElement/components/ErrorText/index.js +7 -5
- package/FormElement/components/Label/index.js +6 -4
- package/FormElement/components/Placeholder/index.js +7 -5
- package/FormElement/components/Underline/index.js +8 -6
- package/FormElement/index.js +62 -46
- package/FormElement/spec.js +10 -9
- package/Glow/index.js +30 -22
- package/Glow/spec.js +6 -1
- package/IndicatorCircle/index.js +10 -8
- package/IndicatorCircle/spec.js +3 -2
- package/LoadingIndicator/index.js +8 -6
- package/Manufacturer/index.js +9 -7
- package/MessageBar/index.js +20 -17
- package/MessageBar/spec.js +6 -5
- package/NoResults/components/Icon/index.js +134 -110
- package/NoResults/index.js +27 -21
- package/Placeholder/index.js +13 -5
- package/PlaceholderLabel/index.js +2 -1
- package/PlaceholderLabel/spec.js +13 -6
- package/PlaceholderParagraph/index.js +13 -12
- package/PlaceholderParagraph/spec.js +13 -6
- package/Price/index.js +46 -28
- package/PriceInfo/index.js +2 -1
- package/PriceStriked/index.js +41 -29
- package/ProductProperties/index.js +13 -10
- package/ProgressBar/index.js +28 -19
- package/ProgressBar/spec.js +2 -1
- package/RadioButton/index.js +6 -5
- package/RadioButton/spec.js +3 -2
- package/RatingNumber/index.js +2 -1
- package/RatingStars/index.js +50 -34
- package/RatingStars/spec.js +7 -6
- package/Ripple/components/RippleAnimation/index.js +48 -52
- package/Ripple/index.js +72 -62
- package/RippleButton/index.js +44 -27
- package/RippleButton/spec.js +20 -13
- package/ScannerOverlay/components/CameraOverlay/index.js +8 -5
- package/ScannerOverlay/components/CameraOverlay/style.js +0 -1
- package/ScannerOverlay/components/ScannerBar/components/FlashlightButton/index.js +25 -21
- package/ScannerOverlay/components/ScannerBar/components/ScannerInstructions/index.js +7 -5
- package/ScannerOverlay/components/ScannerBar/index.js +17 -12
- package/ScannerOverlay/index.js +24 -15
- package/Sheet/components/Header/components/SearchBar/index.js +35 -28
- package/Sheet/components/Header/components/SearchBar/spec.js +2 -1
- package/Sheet/components/Header/index.js +47 -34
- package/Sheet/components/Header/spec.js +2 -1
- package/Sheet/index.js +80 -65
- package/Sheet/spec.js +27 -14
- package/TaxDisclaimer/index.js +13 -10
- package/TaxDisclaimer/spec.js +3 -2
- package/TextField/components/ErrorText/index.js +7 -5
- package/TextField/components/FormElement/index.js +4 -3
- package/TextField/components/Hint/index.js +7 -5
- package/TextField/components/Label/index.js +6 -4
- package/TextField/components/Underline/index.js +8 -6
- package/TextField/index.js +102 -85
- package/TextField/spec.js +37 -23
- package/ToggleIcon/index.js +23 -15
- package/ToggleIcon/spec.js +12 -8
- package/icons/AccountBoxIcon.js +5 -4
- package/icons/AddMoreIcon.js +5 -4
- package/icons/ArrowDropIcon.js +5 -4
- package/icons/ArrowIcon.js +5 -4
- package/icons/BarcodeScannerIcon.js +5 -4
- package/icons/BoxIcon.js +5 -4
- package/icons/BrowseIcon.js +5 -4
- package/icons/BurgerIcon.js +5 -4
- package/icons/CalendarIcon.js +5 -5
- package/icons/CartCouponIcon.js +5 -4
- package/icons/CartIcon.js +5 -4
- package/icons/CartPlusIcon.js +5 -4
- package/icons/CheckIcon.js +5 -4
- package/icons/CheckedIcon.js +5 -4
- package/icons/ChevronIcon.js +5 -4
- package/icons/CreditCardIcon.js +5 -4
- package/icons/CrossIcon.js +5 -4
- package/icons/DescriptionIcon.js +5 -4
- package/icons/FilterIcon.js +5 -4
- package/icons/FlashDisabledIcon.js +5 -4
- package/icons/FlashEnabledIcon.js +5 -4
- package/icons/GridIcon.js +5 -4
- package/icons/HeartIcon.js +5 -4
- package/icons/HeartOutlineIcon.js +5 -4
- package/icons/HeartPlusIcon.js +5 -4
- package/icons/HeartPlusOutlineIcon.js +5 -4
- package/icons/HomeIcon.js +5 -4
- package/icons/InfoIcon.js +5 -4
- package/icons/InfoOutlineIcon.js +5 -4
- package/icons/ListIcon.js +5 -4
- package/icons/LocalShippingIcon.js +5 -4
- package/icons/LocationIcon.js +5 -4
- package/icons/LocatorIcon.js +5 -4
- package/icons/LockIcon.js +5 -4
- package/icons/LogoutIcon.js +5 -4
- package/icons/MagnifierIcon.js +5 -4
- package/icons/MapMarkerIcon.js +5 -4
- package/icons/MoreIcon.js +5 -4
- package/icons/MoreVertIcon.js +5 -4
- package/icons/NotificationIcon.js +5 -4
- package/icons/PersonIcon.js +5 -4
- package/icons/PhoneIcon.js +5 -4
- package/icons/PlaceholderIcon.js +5 -4
- package/icons/RadioCheckedIcon.js +5 -4
- package/icons/RadioUncheckedIcon.js +5 -4
- package/icons/SecurityIcon.js +5 -4
- package/icons/ShippingMethodIcon.js +5 -4
- package/icons/ShoppingCartIcon.js +5 -4
- package/icons/SortIcon.js +5 -4
- package/icons/StarHalfIcon.js +5 -4
- package/icons/StarIcon.js +5 -4
- package/icons/StarOutlineIcon.js +5 -4
- package/icons/StopIcon.js +5 -4
- package/icons/TickIcon.js +5 -4
- package/icons/TimeIcon.js +5 -4
- package/icons/TrashIcon.js +5 -4
- package/icons/TrashOutlineIcon.js +5 -4
- package/icons/UncheckedIcon.js +5 -4
- package/icons/ViewListIcon.js +5 -4
- package/icons/VisibilityIcon.js +5 -4
- package/icons/VisibilityOffIcon.js +5 -4
- package/icons/WarningIcon.js +5 -4
- package/package.json +7 -8
package/ToggleIcon/index.js
CHANGED
|
@@ -1,48 +1,54 @@
|
|
|
1
|
+
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
|
|
1
2
|
import React, { Component } from 'react';
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* No operational default handler
|
|
6
7
|
*/
|
|
8
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
9
|
const noop = () => {};
|
|
8
10
|
|
|
9
11
|
/**
|
|
10
12
|
* An toggle icon with toggle handlers.
|
|
11
13
|
*/
|
|
12
|
-
|
|
14
|
+
let ToggleIcon = /*#__PURE__*/function (_Component) {
|
|
13
15
|
/**
|
|
14
16
|
* @param {Object} props The component properties.
|
|
15
17
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
function ToggleIcon(props) {
|
|
19
|
+
var _this;
|
|
20
|
+
_this = _Component.call(this, props) || this;
|
|
18
21
|
/**
|
|
19
22
|
* Toggle icon
|
|
20
23
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
_this.handleToggle = () => {
|
|
25
|
+
_this.setState(({
|
|
23
26
|
on
|
|
24
27
|
}) => ({
|
|
25
28
|
on: !on
|
|
26
|
-
}), () =>
|
|
29
|
+
}), () => _this.props.toggleHandler(_this.state.on));
|
|
27
30
|
};
|
|
28
|
-
|
|
31
|
+
_this.state = {
|
|
29
32
|
on: props.on
|
|
30
33
|
};
|
|
34
|
+
return _this;
|
|
31
35
|
}
|
|
32
36
|
|
|
33
37
|
/**
|
|
34
38
|
* Reset state to received props
|
|
35
39
|
* @param {Object} nextProps next props
|
|
36
40
|
*/
|
|
37
|
-
|
|
41
|
+
_inheritsLoose(ToggleIcon, _Component);
|
|
42
|
+
var _proto = ToggleIcon.prototype;
|
|
43
|
+
_proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
38
44
|
this.setState({
|
|
39
45
|
on: nextProps.on
|
|
40
46
|
});
|
|
41
|
-
}
|
|
47
|
+
};
|
|
42
48
|
/**
|
|
43
49
|
* @return {*}
|
|
44
50
|
*/
|
|
45
|
-
render() {
|
|
51
|
+
_proto.render = function render() {
|
|
46
52
|
const {
|
|
47
53
|
onIcon,
|
|
48
54
|
offIcon
|
|
@@ -50,13 +56,15 @@ class ToggleIcon extends Component {
|
|
|
50
56
|
const {
|
|
51
57
|
on
|
|
52
58
|
} = this.state;
|
|
53
|
-
return /*#__PURE__*/
|
|
59
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
54
60
|
className: "ui-shared__toggle-icon",
|
|
55
61
|
onClick: this.handleToggle,
|
|
56
|
-
"aria-hidden": true
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
62
|
+
"aria-hidden": true,
|
|
63
|
+
children: [on && onIcon, !on && offIcon]
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
return ToggleIcon;
|
|
67
|
+
}(Component);
|
|
60
68
|
ToggleIcon.defaultProps = {
|
|
61
69
|
on: true,
|
|
62
70
|
toggleHandler: noop
|
package/ToggleIcon/spec.js
CHANGED
|
@@ -1,33 +1,37 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { mount } from 'enzyme';
|
|
4
3
|
import ToggleIcon from "./index";
|
|
5
4
|
import VisibilityIcon from "../icons/VisibilityIcon";
|
|
6
5
|
import VisibilityOffIcon from "../icons/VisibilityOffIcon";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const inputProps = {
|
|
8
|
-
onIcon: /*#__PURE__*/
|
|
9
|
-
offIcon: /*#__PURE__*/
|
|
8
|
+
onIcon: /*#__PURE__*/_jsx(VisibilityIcon, {}),
|
|
9
|
+
offIcon: /*#__PURE__*/_jsx(VisibilityOffIcon, {})
|
|
10
10
|
};
|
|
11
11
|
describe('<ToggleIcon>', () => {
|
|
12
12
|
it('should render a toggle icon', () => {
|
|
13
|
-
const wrapper = mount(/*#__PURE__*/
|
|
13
|
+
const wrapper = mount(/*#__PURE__*/_jsx(ToggleIcon, {
|
|
14
|
+
...inputProps
|
|
15
|
+
}));
|
|
14
16
|
expect(wrapper).toMatchSnapshot();
|
|
15
17
|
expect(wrapper.find('VisibilityIcon').length).toBe(1);
|
|
16
18
|
expect(wrapper.find('VisibilityOffIcon').length).toBe(0);
|
|
17
19
|
});
|
|
18
20
|
it('should render a toggle icon with false as default', () => {
|
|
19
|
-
const wrapper = mount(/*#__PURE__*/
|
|
21
|
+
const wrapper = mount(/*#__PURE__*/_jsx(ToggleIcon, {
|
|
22
|
+
...inputProps,
|
|
20
23
|
on: false
|
|
21
|
-
}))
|
|
24
|
+
}));
|
|
22
25
|
expect(wrapper).toMatchSnapshot();
|
|
23
26
|
expect(wrapper.find('VisibilityIcon').length).toBe(0);
|
|
24
27
|
expect(wrapper.find('VisibilityOffIcon').length).toBe(1);
|
|
25
28
|
});
|
|
26
29
|
it('should trigger the toggleHandler callback', () => {
|
|
27
30
|
const mockToggleHandler = jest.fn();
|
|
28
|
-
const wrapper = mount(/*#__PURE__*/
|
|
31
|
+
const wrapper = mount(/*#__PURE__*/_jsx(ToggleIcon, {
|
|
32
|
+
...inputProps,
|
|
29
33
|
toggleHandler: mockToggleHandler
|
|
30
|
-
}))
|
|
34
|
+
}));
|
|
31
35
|
wrapper.find('div').simulate('click');
|
|
32
36
|
expect(wrapper).toMatchSnapshot();
|
|
33
37
|
expect(mockToggleHandler.mock.calls.length).toBe(1);
|
package/icons/AccountBoxIcon.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const AccountBox = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.accountBox,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default AccountBox;
|
package/icons/AddMoreIcon.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const AddMore = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.addMore,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default AddMore;
|
package/icons/ArrowDropIcon.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const ArrowDrop = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.arrowDrop,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default ArrowDrop;
|
package/icons/ArrowIcon.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
4
3
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
@@ -10,14 +9,16 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
10
9
|
* @param {boolean} props.shadow Whether to show a shadow under the arrow.
|
|
11
10
|
* @returns {JSX}
|
|
12
11
|
*/
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
const ArrowIcon = ({
|
|
14
14
|
shadow,
|
|
15
15
|
...props
|
|
16
16
|
}) => {
|
|
17
17
|
const content = shadow ? themeConfig.icons.arrowShadowed : themeConfig.icons.arrow;
|
|
18
|
-
return /*#__PURE__*/
|
|
19
|
-
content: content
|
|
20
|
-
|
|
18
|
+
return /*#__PURE__*/_jsx(Icon, {
|
|
19
|
+
content: content,
|
|
20
|
+
...props
|
|
21
|
+
});
|
|
21
22
|
};
|
|
22
23
|
ArrowIcon.defaultProps = {
|
|
23
24
|
shadow: false
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const BarcodeScanner = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.barcodeScanner,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default BarcodeScanner;
|
package/icons/BoxIcon.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const Box = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.box,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default Box;
|
package/icons/BrowseIcon.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const Browse = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.browse,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default Browse;
|
package/icons/BurgerIcon.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const Burger = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.burger,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default Burger;
|
package/icons/CalendarIcon.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
|
|
5
4
|
// SVG Content
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
const content = '<path d="M21.706 6.146c1.116 0 2.02-.898 2.02-2.016V2.02c0-1.119-.903-2.02-2.02-2.02s-2.019.9-2.019 2.02v2.111a2.014 2.014 0 002.019 2.015z"/><path d="M28.882 3.494h-4.066v1.027a3.078 3.078 0 01-3.075 3.076 3.076 3.076 0 01-3.074-3.076V3.494h-8.205v1.027c0 1.695-1.379 3.076-3.076 3.076s-3.075-1.38-3.075-3.076V3.494L.208 3.443v25.678h26.656l2.049-.006-.031-25.621zm-2.02 23.582H2.26V10.672h24.604v16.404h-.002z"/><path d="M7.354 6.146A2.016 2.016 0 009.375 4.13V2.02C9.375.9 8.47 0 7.354 0S5.336.9 5.336 2.02v2.111c0 1.117.901 2.015 2.018 2.015zM10.468 12.873h3.231v2.852h-3.231zM15.692 12.873h3.234v2.852h-3.234zM20.537 12.873h3.231v2.852h-3.231zM10.468 17.609h3.231v2.85h-3.231zM15.692 17.609h3.234v2.85h-3.234zM20.537 17.609h3.231v2.85h-3.231zM10.468 22.439h3.231v2.85h-3.231zM5.336 17.609h3.229v2.85H5.336zM5.336 22.439h3.229v2.85H5.336zM15.692 22.439h3.234v2.85h-3.234zM20.537 22.439h3.231v2.85h-3.231z"/>';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -10,9 +10,9 @@ const content = '<path d="M21.706 6.146c1.116 0 2.02-.898 2.02-2.016V2.02c0-1.11
|
|
|
10
10
|
* @param {Object} props The component properties.
|
|
11
11
|
* @returns {JSX}
|
|
12
12
|
*/
|
|
13
|
-
const Calendar = props => /*#__PURE__*/
|
|
14
|
-
content: content
|
|
15
|
-
|
|
13
|
+
const Calendar = props => /*#__PURE__*/_jsx(Icon, {
|
|
14
|
+
content: content,
|
|
15
|
+
...props,
|
|
16
16
|
viewBox: "0 0 29.121 29.121"
|
|
17
|
-
})
|
|
17
|
+
});
|
|
18
18
|
export default Calendar;
|
package/icons/CartCouponIcon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
4
|
const content = `
|
|
5
5
|
<defs>
|
|
6
6
|
<style>
|
|
@@ -68,8 +68,9 @@ const content = `
|
|
|
68
68
|
* @param {Object} props .
|
|
69
69
|
* @returns {JSX}
|
|
70
70
|
*/
|
|
71
|
-
const CartCouponIcon = props => /*#__PURE__*/
|
|
71
|
+
const CartCouponIcon = props => /*#__PURE__*/_jsx(Icon, {
|
|
72
72
|
content: content,
|
|
73
|
-
viewBox: "3548 7826 45.999 46"
|
|
74
|
-
|
|
73
|
+
viewBox: "3548 7826 45.999 46",
|
|
74
|
+
...props
|
|
75
|
+
});
|
|
75
76
|
export default CartCouponIcon;
|
package/icons/CartIcon.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const CartIcon = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.cart,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default CartIcon;
|
package/icons/CartPlusIcon.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const CartPlus = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.cartPlus,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default CartPlus;
|
package/icons/CheckIcon.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const Check = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.check,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default Check;
|
package/icons/CheckedIcon.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const Checked = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.checked,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default Checked;
|
package/icons/ChevronIcon.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const Chevron = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.chevron,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default Chevron;
|
package/icons/CreditCardIcon.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const CreditCard = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.creditCard,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default CreditCard;
|
package/icons/CrossIcon.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const Cross = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.cross,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default Cross;
|
package/icons/DescriptionIcon.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const Description = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.description,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default Description;
|
package/icons/FilterIcon.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const Filter = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.filter,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default Filter;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const FlashDisabled = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.flashDisabled,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default FlashDisabled;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const FlashEnabled = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.flashEnabled,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default FlashEnabled;
|
package/icons/GridIcon.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const Grid = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.grid,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default Grid;
|
package/icons/HeartIcon.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const Heart = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.heart,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default Heart;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
@@ -8,7 +7,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
8
7
|
* @param {Object} props The icon component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const HeartOutline = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.heartOutline,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default HeartOutline;
|
package/icons/HeartPlusIcon.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
const fallback = '<path d="M12 18C12 19 12.25 19.92 12.67 20.74L12 21.35L10.55 20.03C5.4 15.36 2 12.27 2 8.5C2 5.41 4.42 3 7.5 3C9.24 3 10.91 3.81 12 5.08C13.09 3.81 14.76 3 16.5 3C19.58 3 22 5.41 22 8.5C22 9.93 21.5 11.26 20.62 12.61C19.83 12.23 18.94 12 18 12C14.69 12 12 14.69 12 18M19 14H17V17H14V19H17V22H19V19H22V17H19V14Z" />';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -9,7 +9,8 @@ const fallback = '<path d="M12 18C12 19 12.25 19.92 12.67 20.74L12 21.35L10.55 2
|
|
|
9
9
|
* @param {Object} props The icon component properties.
|
|
10
10
|
* @returns {JSX}
|
|
11
11
|
*/
|
|
12
|
-
const HeartPlus = props => /*#__PURE__*/
|
|
13
|
-
content: themeConfig.icons.heartPlus || fallback
|
|
14
|
-
|
|
12
|
+
const HeartPlus = props => /*#__PURE__*/_jsx(Icon, {
|
|
13
|
+
content: themeConfig.icons.heartPlus || fallback,
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
15
16
|
export default HeartPlus;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
const fallback = '<path d="M12.67 20.74L12 21.35L10.55 20.03C5.4 15.36 2 12.27 2 8.5C2 5.41 4.42 3 7.5 3C9.24 3 10.91 3.81 12 5.08C13.09 3.81 14.76 3 16.5 3C19.58 3 22 5.41 22 8.5C22 9.93 21.5 11.26 20.62 12.61C20 12.31 19.31 12.11 18.59 12.04C19.5 10.8 20 9.65 20 8.5C20 6.5 18.5 5 16.5 5C14.96 5 13.46 6 12.93 7.36H11.07C10.54 6 9.04 5 7.5 5C5.5 5 4 6.5 4 8.5C4 11.39 7.14 14.24 11.89 18.55L12 18.65L12.04 18.61C12.12 19.37 12.34 20.09 12.67 20.74M17 14V17H14V19H17V22H19V19H22V17H19V14H17Z" />';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -9,7 +9,8 @@ const fallback = '<path d="M12.67 20.74L12 21.35L10.55 20.03C5.4 15.36 2 12.27 2
|
|
|
9
9
|
* @param {Object} props The icon component properties.
|
|
10
10
|
* @returns {JSX}
|
|
11
11
|
*/
|
|
12
|
-
const HeartPlusOutline = props => /*#__PURE__*/
|
|
13
|
-
content: themeConfig.icons.heartPlusOutline || fallback
|
|
14
|
-
|
|
12
|
+
const HeartPlusOutline = props => /*#__PURE__*/_jsx(Icon, {
|
|
13
|
+
content: themeConfig.icons.heartPlusOutline || fallback,
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
15
16
|
export default HeartPlusOutline;
|