@shopgate/pwa-ui-shared 7.30.0-alpha.10 → 7.30.0-alpha.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.
- package/AccordionContainer/index.js +17 -11
- package/AccordionContainer/spec.js +12 -3
- package/ActionButton/index.js +47 -33
- package/ActionButton/spec.js +5 -1
- package/AddToCartButton/index.js +44 -33
- package/AddToCartButton/mock.js +20 -8
- package/AddToCartButton/spec.js +4 -3
- 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 +10 -9
- 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 +12 -10
- 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/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/icons/MapMarkerIcon.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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';
|
|
5
4
|
|
|
6
5
|
// SVG Content
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const content = `
|
|
8
8
|
<g>
|
|
9
9
|
<defs>
|
|
@@ -21,7 +21,8 @@ const content = `
|
|
|
21
21
|
* @param {Object} props The component properties.
|
|
22
22
|
* @returns {JSX}
|
|
23
23
|
*/
|
|
24
|
-
const MapMarkerIcon = props => /*#__PURE__*/
|
|
25
|
-
content: themeConfig.icons.mapMarker || content
|
|
26
|
-
|
|
24
|
+
const MapMarkerIcon = props => /*#__PURE__*/_jsx(Icon, {
|
|
25
|
+
content: themeConfig.icons.mapMarker || content,
|
|
26
|
+
...props
|
|
27
|
+
});
|
|
27
28
|
export default MapMarkerIcon;
|
package/icons/MoreIcon.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 More = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.more,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default More;
|
package/icons/MoreVertIcon.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 MoreVert = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.moreVert,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default MoreVert;
|
|
@@ -1,9 +1,9 @@
|
|
|
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';
|
|
5
4
|
|
|
6
5
|
// SVG Content
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const content = '<path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"/>';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -11,7 +11,8 @@ const content = '<path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07
|
|
|
11
11
|
* @param {Object} props The icon component properties.
|
|
12
12
|
* @returns {JSX}
|
|
13
13
|
*/
|
|
14
|
-
const Notification = props => /*#__PURE__*/
|
|
15
|
-
content: themeConfig.icons.notification || content
|
|
16
|
-
|
|
14
|
+
const Notification = props => /*#__PURE__*/_jsx(Icon, {
|
|
15
|
+
content: themeConfig.icons.notification || content,
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
17
18
|
export default Notification;
|
package/icons/PersonIcon.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="M0 0h24v24H0z" fill="none"/><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -12,7 +12,8 @@ const fallback = '<path d="M0 0h24v24H0z" fill="none"/><path d="M12 12c2.21 0 4-
|
|
|
12
12
|
* @param {Object} props - Icon component props.
|
|
13
13
|
* @returns {JSX.Element}
|
|
14
14
|
*/
|
|
15
|
-
const PersonIcon = props => /*#__PURE__*/
|
|
16
|
-
content: themeConfig.icons.person || fallback
|
|
17
|
-
|
|
15
|
+
const PersonIcon = props => /*#__PURE__*/_jsx(Icon, {
|
|
16
|
+
content: themeConfig.icons.person || fallback,
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
18
19
|
export default PersonIcon;
|
package/icons/PhoneIcon.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 fill="none" d="M0 0h24v24H0z"/><path d="M7 11c1 3 3 5 6 6l2-2h1l4 1 1 1v3l-1 1C11 21 3 13 3 4l1-1h4l1 1v5l-2 2z"/>';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -10,7 +10,8 @@ const content = '<path fill="none" d="M0 0h24v24H0z"/><path d="M7 11c1 3 3 5 6 6
|
|
|
10
10
|
* @param {Object} props The component properties.
|
|
11
11
|
* @returns {JSX}
|
|
12
12
|
*/
|
|
13
|
-
const Phone = props => /*#__PURE__*/
|
|
14
|
-
content: content
|
|
15
|
-
|
|
13
|
+
const Phone = props => /*#__PURE__*/_jsx(Icon, {
|
|
14
|
+
content: content,
|
|
15
|
+
...props
|
|
16
|
+
});
|
|
16
17
|
export default Phone;
|
package/icons/PlaceholderIcon.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 Placeholder = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.placeholder,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default Placeholder;
|
|
@@ -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';
|
|
@@ -11,7 +10,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
11
10
|
* @param {Object} props The icon component properties.
|
|
12
11
|
* @returns {JSX}
|
|
13
12
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
const RadioChecked = props => /*#__PURE__*/_jsx(Icon, {
|
|
15
|
+
content: themeConfig.icons.radioChecked,
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
17
18
|
export default RadioChecked;
|
|
@@ -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';
|
|
@@ -11,7 +10,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
11
10
|
* @param {Object} props The icon component properties.
|
|
12
11
|
* @returns {JSX}
|
|
13
12
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
const RadioUnchecked = props => /*#__PURE__*/_jsx(Icon, {
|
|
15
|
+
content: themeConfig.icons.radioUnchecked,
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
17
18
|
export default RadioUnchecked;
|
package/icons/SecurityIcon.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 Security = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.security,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default Security;
|
|
@@ -1,9 +1,9 @@
|
|
|
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';
|
|
5
4
|
|
|
6
5
|
// SVG Content
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const content = `
|
|
8
8
|
<g fill="none" fill-rule="evenodd" transform="translate(0,4.5)">
|
|
9
9
|
<path d="M-1-4h24v24H-1z"/>
|
|
@@ -15,7 +15,8 @@ const content = `
|
|
|
15
15
|
* @param {Object} props The component properties.
|
|
16
16
|
* @returns {JSX}
|
|
17
17
|
*/
|
|
18
|
-
const ShippingMethodIcon = props => /*#__PURE__*/
|
|
19
|
-
content: themeConfig.icons.shippingMethod || content
|
|
20
|
-
|
|
18
|
+
const ShippingMethodIcon = props => /*#__PURE__*/_jsx(Icon, {
|
|
19
|
+
content: themeConfig.icons.shippingMethod || content,
|
|
20
|
+
...props
|
|
21
|
+
});
|
|
21
22
|
export default ShippingMethodIcon;
|
|
@@ -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 ShoppingCart = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.shoppingCart,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default ShoppingCart;
|
package/icons/SortIcon.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 component properties.
|
|
9
8
|
* @returns {JSX}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const Sort = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.sort,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default Sort;
|
package/icons/StarHalfIcon.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';
|
|
@@ -9,9 +8,11 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
9
8
|
* @param {Object} props The icon component properties.
|
|
10
9
|
* @returns {JSX}
|
|
11
10
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
const StarHalfIcon = props => /*#__PURE__*/_jsx(Icon, {
|
|
13
|
+
content: themeConfig.icons.starHalf,
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
15
16
|
StarHalfIcon.defaultProps = {
|
|
16
17
|
className: '',
|
|
17
18
|
color: null,
|
package/icons/StarIcon.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';
|
|
@@ -9,9 +8,11 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
9
8
|
* @param {Object} props The icon component properties.
|
|
10
9
|
* @returns {JSX}
|
|
11
10
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
const Star = props => /*#__PURE__*/_jsx(Icon, {
|
|
13
|
+
content: themeConfig.icons.star,
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
15
16
|
Star.defaultProps = {
|
|
16
17
|
className: '',
|
|
17
18
|
color: null,
|
package/icons/StarOutlineIcon.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 StarOutline = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.starOutline,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default StarOutline;
|
package/icons/StopIcon.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 StopIcon = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.stop,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default StopIcon;
|
package/icons/TickIcon.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 Tick = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.tick,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default Tick;
|
package/icons/TimeIcon.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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';
|
|
5
4
|
|
|
6
5
|
// SVG Content
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const content = '<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/><path d="M0 0h24v24H0z" fill="none"/><path d="M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"/>\n';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -11,7 +11,8 @@ const content = '<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 2
|
|
|
11
11
|
* @param {Object} props The component properties.
|
|
12
12
|
* @returns {JSX}
|
|
13
13
|
*/
|
|
14
|
-
const TimeIcon = props => /*#__PURE__*/
|
|
15
|
-
content: themeConfig.icons.time || content
|
|
16
|
-
|
|
14
|
+
const TimeIcon = props => /*#__PURE__*/_jsx(Icon, {
|
|
15
|
+
content: themeConfig.icons.time || content,
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
17
18
|
export default TimeIcon;
|
package/icons/TrashIcon.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 Trash = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.trash,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default Trash;
|
|
@@ -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="M0 0h24v24H0V0z" fill="none"/><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5l-1-1h-5l-1 1H5v2h14V4z"/>';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -10,7 +10,8 @@ const fallback = '<path d="M0 0h24v24H0V0z" fill="none"/><path d="M6 19c0 1.1.9
|
|
|
10
10
|
* @param {Object} props The icon component properties.
|
|
11
11
|
* @returns {JSX}
|
|
12
12
|
*/
|
|
13
|
-
const TrashOutline = props => /*#__PURE__*/
|
|
14
|
-
content: themeConfig.icons.trashOutline || fallback
|
|
15
|
-
|
|
13
|
+
const TrashOutline = props => /*#__PURE__*/_jsx(Icon, {
|
|
14
|
+
content: themeConfig.icons.trashOutline || fallback,
|
|
15
|
+
...props
|
|
16
|
+
});
|
|
16
17
|
export default TrashOutline;
|
package/icons/UncheckedIcon.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 Unchecked = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.unchecked,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default Unchecked;
|
package/icons/ViewListIcon.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 ViewList = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.viewList,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default ViewList;
|
package/icons/VisibilityIcon.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';
|
|
@@ -9,7 +8,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
9
8
|
* @param {Object} props The icon component properties.
|
|
10
9
|
* @returns {JSX}
|
|
11
10
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
const VisibilityIcon = props => /*#__PURE__*/_jsx(Icon, {
|
|
13
|
+
content: themeConfig.icons.visibility,
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
15
16
|
export default VisibilityIcon;
|
|
@@ -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';
|
|
@@ -9,7 +8,9 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
9
8
|
* @param {Object} props The icon component properties.
|
|
10
9
|
* @returns {JSX}
|
|
11
10
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
const VisibilityOffIcon = props => /*#__PURE__*/_jsx(Icon, {
|
|
13
|
+
content: themeConfig.icons.visibilityOff,
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
15
16
|
export default VisibilityOffIcon;
|
package/icons/WarningIcon.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 WarningIcon = props => /*#__PURE__*/_jsx(Icon, {
|
|
12
|
+
content: themeConfig.icons.warning,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
export default WarningIcon;
|
package/package.json
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/pwa-ui-shared",
|
|
3
|
-
"version": "7.30.0-alpha.
|
|
3
|
+
"version": "7.30.0-alpha.11",
|
|
4
4
|
"description": "Shopgate's shared UI components.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@shopgate/pwa-ui-ios": "7.30.0-alpha.
|
|
9
|
-
"@shopgate/pwa-ui-material": "7.30.0-alpha.
|
|
10
|
-
"react-day-picker": "^7.4.8"
|
|
8
|
+
"@shopgate/pwa-ui-ios": "7.30.0-alpha.11",
|
|
9
|
+
"@shopgate/pwa-ui-material": "7.30.0-alpha.11"
|
|
11
10
|
},
|
|
12
11
|
"devDependencies": {
|
|
13
|
-
"@shopgate/pwa-common": "7.30.0-alpha.
|
|
14
|
-
"@shopgate/pwa-common-commerce": "7.30.0-alpha.
|
|
12
|
+
"@shopgate/pwa-common": "7.30.0-alpha.11",
|
|
13
|
+
"@shopgate/pwa-common-commerce": "7.30.0-alpha.11",
|
|
15
14
|
"classnames": "2.5.1",
|
|
16
|
-
"react": "
|
|
15
|
+
"react": "^17.0.2"
|
|
17
16
|
},
|
|
18
17
|
"peerDependencies": {
|
|
19
|
-
"react": "
|
|
18
|
+
"react": "^17.0.2"
|
|
20
19
|
}
|
|
21
20
|
}
|