@shopgate/pwa-ui-shared 7.30.0-alpha.7 → 7.30.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AccordionContainer/index.js +39 -5
- package/AccordionContainer/spec.js +25 -2
- package/ActionButton/index.js +63 -7
- package/ActionButton/spec.js +59 -2
- package/ActionButton/style.js +22 -1
- package/AddToCartButton/index.js +184 -27
- package/AddToCartButton/mock.js +18 -4
- package/AddToCartButton/spec.js +51 -2
- package/AddToCartButton/style.js +127 -11
- package/Availability/index.js +34 -2
- package/Availability/spec.js +41 -1
- package/Availability/style.js +19 -1
- package/Button/index.js +76 -5
- package/Button/spec.js +33 -1
- package/Button/style.js +130 -21
- package/ButtonLink/connector.js +11 -2
- package/ButtonLink/index.js +44 -6
- package/ButtonLink/spec.js +23 -1
- package/Card/index.js +19 -2
- package/Card/style.js +11 -1
- package/CardList/components/Item/index.js +26 -2
- package/CardList/components/Item/style.js +7 -1
- package/CardList/index.js +34 -3
- package/CartTotalLine/components/Amount/index.js +28 -2
- package/CartTotalLine/components/Amount/style.js +8 -1
- package/CartTotalLine/components/Hint/index.js +23 -2
- package/CartTotalLine/components/Hint/style.js +12 -1
- package/CartTotalLine/components/Label/index.js +36 -2
- package/CartTotalLine/components/Label/style.js +17 -1
- package/CartTotalLine/components/Spacer/index.js +16 -2
- package/CartTotalLine/index.js +39 -2
- package/CartTotalLine/style.js +31 -1
- package/Checkbox/index.js +31 -2
- package/Checkbox/style.js +18 -1
- package/Chip/index.js +61 -2
- package/Chip/spec.js +24 -1
- package/Chip/style.js +71 -3
- package/ContextMenu/ContextMenu.hooks.js +6 -2
- package/ContextMenu/ContextMenuProvider.context.js +9 -3
- package/ContextMenu/ContextMenuProvider.js +21 -2
- package/ContextMenu/components/Item/index.js +67 -5
- package/ContextMenu/components/Item/style.js +32 -3
- package/ContextMenu/components/Position/index.js +61 -10
- package/ContextMenu/components/Position/style.js +11 -1
- package/ContextMenu/index.js +124 -3
- package/ContextMenu/spec.js +101 -2
- package/ContextMenu/style.js +45 -1
- package/Dialog/components/BasicDialog/index.js +5 -1
- package/Dialog/components/HtmlContentDialog/index.js +22 -2
- package/Dialog/components/HtmlContentDialog/spec.js +59 -1
- package/Dialog/components/PipelineErrorDialog/index.js +114 -25
- package/Dialog/components/PipelineErrorDialog/spec.js +92 -12
- package/Dialog/components/TextMessageDialog/index.js +28 -2
- package/Dialog/components/TextMessageDialog/spec.js +59 -1
- package/Dialog/components/VariantSelectModal/connector.js +11 -2
- package/Dialog/components/VariantSelectModal/index.js +65 -6
- package/Dialog/components/VariantSelectModal/spec.js +51 -2
- package/Dialog/constants.js +6 -1
- package/Dialog/index.js +114 -7
- package/Dialog/spec.js +81 -3
- package/DiscountBadge/index.js +30 -2
- package/DiscountBadge/spec.js +19 -1
- package/DiscountBadge/style.js +34 -2
- package/FavoritesButton/connector.js +18 -3
- package/FavoritesButton/index.js +118 -15
- package/FavoritesButton/mock.js +50 -4
- package/FavoritesButton/spec.js +120 -2
- package/FavoritesButton/style.js +26 -1
- package/Form/Builder/builders/buildCountryList.js +40 -6
- package/Form/Builder/builders/buildFormDefaults.js +35 -6
- package/Form/Builder/builders/buildFormElements.js +68 -10
- package/Form/Builder/builders/buildProvinceList.js +19 -2
- package/Form/Builder/builders/buildValidationErrorList.js +7 -2
- package/Form/Builder/classes/ActionListener/constants.js +22 -2
- package/Form/Builder/classes/ActionListener/index.js +441 -93
- package/Form/Builder/classes/ActionListener/spec.js +321 -19
- package/Form/Builder/components/CheckboxElement.js +35 -3
- package/Form/Builder/components/CountryElement.js +40 -3
- package/Form/Builder/components/ProvinceElement.js +40 -3
- package/Form/Builder/components/RadioElement.js +41 -3
- package/Form/Builder/components/SelectElement.js +39 -3
- package/Form/Builder/components/TextElement.js +49 -4
- package/Form/Builder/elementTypes.js +11 -1
- package/Form/Builder/index.js +298 -52
- package/Form/Builder/iso-3166-2.js +4943 -1
- package/Form/Builder/spec.js +300 -16
- package/Form/Checkbox/index.js +66 -4
- package/Form/Checkbox/style.js +25 -2
- package/Form/InfoField/index.js +50 -2
- package/Form/InfoField/spec.js +9 -1
- package/Form/InfoField/style.js +11 -1
- package/Form/Password/index.js +51 -6
- package/Form/Password/spec.js +34 -1
- package/Form/Password/style.js +11 -1
- package/Form/RadioGroup/components/Item/index.js +59 -3
- package/Form/RadioGroup/components/Item/style.js +32 -2
- package/Form/RadioGroup/index.js +101 -9
- package/Form/RadioGroup/spec.js +83 -3
- package/Form/RadioGroup/style.js +18 -2
- package/Form/Select/index.js +158 -10
- package/Form/Select/spec.js +36 -5
- package/Form/Select/style.js +27 -1
- package/Form/SelectContextChoices/index.js +77 -3
- package/Form/SelectContextChoices/spec.js +33 -4
- package/Form/SelectContextChoices/style.js +23 -1
- package/Form/TextField/index.js +92 -8
- package/Form/TextField/spec.js +110 -1
- package/Form/TextField/style.js +66 -8
- package/Form/index.js +54 -13
- package/FormElement/components/ErrorText/index.js +31 -2
- package/FormElement/components/ErrorText/style.js +13 -1
- package/FormElement/components/Label/index.js +35 -2
- package/FormElement/components/Label/style.js +76 -8
- package/FormElement/components/Placeholder/index.js +26 -2
- package/FormElement/components/Placeholder/style.js +48 -6
- package/FormElement/components/Underline/index.js +18 -2
- package/FormElement/components/Underline/style.js +51 -4
- package/FormElement/index.js +91 -6
- package/FormElement/spec.js +67 -2
- package/FormElement/style.js +13 -2
- package/Glow/index.js +90 -7
- package/Glow/spec.js +9 -1
- package/Glow/style.js +18 -1
- package/IndicatorCircle/index.js +33 -3
- package/IndicatorCircle/spec.js +28 -1
- package/IndicatorCircle/style.js +57 -3
- package/LoadingIndicator/index.js +29 -2
- package/LoadingIndicator/style.js +20 -1
- package/Manufacturer/index.js +20 -2
- package/Manufacturer/style.js +5 -1
- package/MessageBar/index.js +36 -2
- package/MessageBar/spec.js +79 -1
- package/MessageBar/style.js +38 -1
- package/NoResults/components/Icon/index.js +130 -2
- package/NoResults/components/Icon/style.js +17 -1
- package/NoResults/index.js +46 -2
- package/NoResults/style.js +31 -1
- package/Placeholder/index.js +25 -3
- package/Placeholder/style.js +11 -1
- package/PlaceholderLabel/index.js +27 -2
- package/PlaceholderLabel/spec.js +19 -1
- package/PlaceholderLabel/style.js +12 -1
- package/PlaceholderParagraph/index.js +36 -2
- package/PlaceholderParagraph/spec.js +19 -1
- package/Price/index.js +88 -7
- package/Price/style.js +22 -1
- package/PriceInfo/index.js +20 -2
- package/PriceInfo/style.js +5 -1
- package/PriceStriked/index.js +83 -12
- package/PriceStriked/style.js +33 -3
- package/ProductProperties/index.js +32 -2
- package/ProgressBar/index.js +101 -13
- package/ProgressBar/spec.js +13 -1
- package/ProgressBar/style.js +83 -2
- package/RadioButton/index.js +18 -2
- package/RadioButton/spec.js +21 -1
- package/RadioButton/style.js +21 -1
- package/RatingNumber/index.js +29 -2
- package/RatingStars/constants.js +2 -1
- package/RatingStars/index.js +130 -12
- package/RatingStars/spec.js +90 -3
- package/RatingStars/style.js +51 -2
- package/Ripple/components/RippleAnimation/index.js +88 -6
- package/Ripple/index.js +218 -40
- package/Ripple/style.js +18 -1
- package/RippleButton/index.js +52 -5
- package/RippleButton/spec.js +45 -1
- package/ScannerOverlay/components/CameraOverlay/index.js +13 -2
- package/ScannerOverlay/components/CameraOverlay/style.js +41 -1
- package/ScannerOverlay/components/ScannerBar/components/FlashlightButton/index.js +34 -2
- package/ScannerOverlay/components/ScannerBar/components/FlashlightButton/style.js +28 -1
- package/ScannerOverlay/components/ScannerBar/components/ScannerInstructions/index.js +11 -2
- package/ScannerOverlay/components/ScannerBar/index.js +31 -2
- package/ScannerOverlay/components/ScannerBar/style.js +20 -1
- package/ScannerOverlay/index.js +47 -7
- package/Sheet/components/Header/components/SearchBar/index.js +46 -2
- package/Sheet/components/Header/components/SearchBar/spec.js +21 -3
- package/Sheet/components/Header/components/SearchBar/style.js +47 -1
- package/Sheet/components/Header/index.js +75 -7
- package/Sheet/components/Header/spec.js +14 -1
- package/Sheet/components/Header/style.js +50 -1
- package/Sheet/index.js +170 -17
- package/Sheet/spec.js +85 -5
- package/Sheet/style.js +143 -2
- package/TaxDisclaimer/index.js +34 -4
- package/TaxDisclaimer/spec.js +31 -3
- package/TaxDisclaimer/style.js +9 -1
- package/TextField/components/ErrorText/index.js +33 -2
- package/TextField/components/ErrorText/style.js +25 -3
- package/TextField/components/FormElement/index.js +19 -2
- package/TextField/components/FormElement/style.js +32 -4
- package/TextField/components/Hint/index.js +21 -2
- package/TextField/components/Hint/style.js +40 -5
- package/TextField/components/Label/index.js +32 -3
- package/TextField/components/Label/style.js +68 -8
- package/TextField/components/Underline/index.js +19 -2
- package/TextField/components/Underline/style.js +51 -4
- package/TextField/index.js +189 -27
- package/TextField/spec.js +128 -3
- package/TextField/style.js +34 -4
- package/ToggleIcon/index.js +58 -8
- package/ToggleIcon/spec.js +35 -1
- package/icons/AccountBoxIcon.js +11 -2
- package/icons/AddMoreIcon.js +11 -2
- package/icons/ArrowDropIcon.js +11 -2
- package/icons/ArrowIcon.js +21 -2
- package/icons/BarcodeScannerIcon.js +11 -2
- package/icons/BoxIcon.js +11 -2
- package/icons/BrowseIcon.js +11 -2
- package/icons/BurgerIcon.js +11 -2
- package/icons/CalendarIcon.js +15 -3
- package/icons/CartCouponIcon.js +72 -2
- package/icons/CartIcon.js +11 -2
- package/icons/CartPlusIcon.js +11 -2
- package/icons/CheckIcon.js +11 -2
- package/icons/CheckedIcon.js +11 -2
- package/icons/ChevronIcon.js +11 -2
- package/icons/CreditCardIcon.js +11 -2
- package/icons/CrossIcon.js +11 -2
- package/icons/DescriptionIcon.js +11 -2
- package/icons/FilterIcon.js +11 -2
- package/icons/FlashDisabledIcon.js +11 -2
- package/icons/FlashEnabledIcon.js +11 -2
- package/icons/GridIcon.js +11 -2
- package/icons/HeartIcon.js +11 -2
- package/icons/HeartOutlineIcon.js +11 -2
- package/icons/HeartPlusIcon.js +12 -2
- package/icons/HeartPlusOutlineIcon.js +12 -2
- package/icons/HomeIcon.js +11 -2
- package/icons/InfoIcon.js +11 -2
- package/icons/InfoOutlineIcon.js +11 -2
- package/icons/ListIcon.js +11 -2
- package/icons/LocalShippingIcon.js +11 -2
- package/icons/LocationIcon.js +13 -3
- package/icons/LocatorIcon.js +11 -2
- package/icons/LockIcon.js +11 -2
- package/icons/LogoutIcon.js +11 -2
- package/icons/MagnifierIcon.js +11 -2
- package/icons/MapMarkerIcon.js +24 -3
- package/icons/MoreIcon.js +11 -2
- package/icons/MoreVertIcon.js +11 -2
- package/icons/NotificationIcon.js +14 -3
- package/icons/PersonIcon.js +12 -2
- package/icons/PhoneIcon.js +13 -3
- package/icons/PlaceholderIcon.js +11 -2
- package/icons/RadioCheckedIcon.js +11 -2
- package/icons/RadioUncheckedIcon.js +11 -2
- package/icons/SecurityIcon.js +11 -2
- package/icons/ShippingMethodIcon.js +18 -3
- package/icons/ShoppingCartIcon.js +11 -2
- package/icons/SortIcon.js +11 -2
- package/icons/StarHalfIcon.js +18 -2
- package/icons/StarIcon.js +18 -2
- package/icons/StarOutlineIcon.js +11 -2
- package/icons/StopIcon.js +11 -2
- package/icons/TickIcon.js +11 -2
- package/icons/TimeIcon.js +14 -3
- package/icons/TrashIcon.js +11 -2
- package/icons/TrashOutlineIcon.js +12 -2
- package/icons/UncheckedIcon.js +11 -2
- package/icons/ViewListIcon.js +11 -2
- package/icons/VisibilityIcon.js +11 -2
- package/icons/VisibilityOffIcon.js +11 -2
- package/icons/WarningIcon.js +11 -2
- package/index.js +13 -1
- package/package.json +5 -5
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
|
+
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
5
|
+
|
|
6
|
+
/**
|
|
2
7
|
* The checked radio component.
|
|
3
8
|
*
|
|
4
9
|
* @link https://material.io/tools/icons/?search=rad&icon=radio_button_checked&style=baseline
|
|
5
10
|
*
|
|
6
11
|
* @param {Object} props The icon component properties.
|
|
7
12
|
* @returns {JSX}
|
|
8
|
-
*/
|
|
13
|
+
*/
|
|
14
|
+
const RadioUnchecked = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
15
|
+
content: themeConfig.icons.radioUnchecked
|
|
16
|
+
}, props));
|
|
17
|
+
export default RadioUnchecked;
|
package/icons/SecurityIcon.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
|
+
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
5
|
+
|
|
6
|
+
/**
|
|
2
7
|
* The security icon component.
|
|
3
8
|
* @param {Object} props The icon component properties.
|
|
4
9
|
* @returns {JSX}
|
|
5
|
-
*/
|
|
10
|
+
*/
|
|
11
|
+
const Security = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
12
|
+
content: themeConfig.icons.security
|
|
13
|
+
}, props));
|
|
14
|
+
export default Security;
|
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
|
+
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
5
|
+
|
|
6
|
+
// SVG Content
|
|
7
|
+
const content = `
|
|
8
|
+
<g fill="none" fill-rule="evenodd" transform="translate(0,4.5)">
|
|
9
|
+
<path d="M-1-4h24v24H-1z"/>
|
|
10
|
+
<path d="M18.5 4H16V2c0-1.1-.9-2-2-2H2C.9 0 0 .9 0 2v9c0 1.1.9 2 2 2 0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h1c.55 0 1-.45 1-1V8.67c0-.43-.14-.85-.4-1.2L19.3 4.4c-.19-.25-.49-.4-.8-.4zM5 14c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm13.5-8.5L20.46 8H16V5.5h2.5zM17 14c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z" fill="currentColor" />
|
|
11
|
+
/g>`;
|
|
12
|
+
|
|
13
|
+
/**
|
|
3
14
|
* The shipping method icon component.
|
|
4
15
|
* @param {Object} props The component properties.
|
|
5
16
|
* @returns {JSX}
|
|
6
|
-
*/
|
|
17
|
+
*/
|
|
18
|
+
const ShippingMethodIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
19
|
+
content: themeConfig.icons.shippingMethod || content
|
|
20
|
+
}, props));
|
|
21
|
+
export default ShippingMethodIcon;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
|
+
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
5
|
+
|
|
6
|
+
/**
|
|
2
7
|
* The shopping cart icon component.
|
|
3
8
|
* @param {Object} props The icon component properties.
|
|
4
9
|
* @returns {JSX}
|
|
5
|
-
*/
|
|
10
|
+
*/
|
|
11
|
+
const ShoppingCart = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
12
|
+
content: themeConfig.icons.shoppingCart
|
|
13
|
+
}, props));
|
|
14
|
+
export default ShoppingCart;
|
package/icons/SortIcon.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
|
+
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
5
|
+
|
|
6
|
+
/**
|
|
2
7
|
* The sort icon component.
|
|
3
8
|
* @param {Object} props The component properties.
|
|
4
9
|
* @returns {JSX}
|
|
5
|
-
*/
|
|
10
|
+
*/
|
|
11
|
+
const Sort = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
12
|
+
content: themeConfig.icons.sort
|
|
13
|
+
}, props));
|
|
14
|
+
export default Sort;
|
package/icons/StarHalfIcon.js
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
5
|
+
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
6
|
+
|
|
7
|
+
/**
|
|
2
8
|
* The half-filled star icon component
|
|
3
9
|
* @param {Object} props The icon component properties.
|
|
4
10
|
* @returns {JSX}
|
|
5
|
-
*/
|
|
11
|
+
*/
|
|
12
|
+
const StarHalfIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
13
|
+
content: themeConfig.icons.starHalf
|
|
14
|
+
}, props));
|
|
15
|
+
StarHalfIcon.defaultProps = {
|
|
16
|
+
className: '',
|
|
17
|
+
color: null,
|
|
18
|
+
viewBox: '0 0 24 24',
|
|
19
|
+
size: 'inherit'
|
|
20
|
+
};
|
|
21
|
+
export default StarHalfIcon;
|
package/icons/StarIcon.js
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
5
|
+
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
6
|
+
|
|
7
|
+
/**
|
|
2
8
|
* The star icon component
|
|
3
9
|
* @param {Object} props The icon component properties.
|
|
4
10
|
* @returns {JSX}
|
|
5
|
-
*/
|
|
11
|
+
*/
|
|
12
|
+
const Star = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
13
|
+
content: themeConfig.icons.star
|
|
14
|
+
}, props));
|
|
15
|
+
Star.defaultProps = {
|
|
16
|
+
className: '',
|
|
17
|
+
color: null,
|
|
18
|
+
viewBox: '0 0 24 24',
|
|
19
|
+
size: 'inherit'
|
|
20
|
+
};
|
|
21
|
+
export default Star;
|
package/icons/StarOutlineIcon.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
|
+
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
5
|
+
|
|
6
|
+
/**
|
|
2
7
|
* The star-outline icon component.
|
|
3
8
|
* @param {Object} props The icon component properties.
|
|
4
9
|
* @returns {JSX}
|
|
5
|
-
*/
|
|
10
|
+
*/
|
|
11
|
+
const StarOutline = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
12
|
+
content: themeConfig.icons.starOutline
|
|
13
|
+
}, props));
|
|
14
|
+
export default StarOutline;
|
package/icons/StopIcon.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
|
+
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
5
|
+
|
|
6
|
+
/**
|
|
2
7
|
* The stop icon component.
|
|
3
8
|
* @param {Object} props The icon component properties.
|
|
4
9
|
* @returns {JSX}
|
|
5
|
-
*/
|
|
10
|
+
*/
|
|
11
|
+
const StopIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
12
|
+
content: themeConfig.icons.stop
|
|
13
|
+
}, props));
|
|
14
|
+
export default StopIcon;
|
package/icons/TickIcon.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
|
+
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
5
|
+
|
|
6
|
+
/**
|
|
2
7
|
* The tick icon component.
|
|
3
8
|
* @param {Object} props The icon component properties.
|
|
4
9
|
* @returns {JSX}
|
|
5
|
-
*/
|
|
10
|
+
*/
|
|
11
|
+
const Tick = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
12
|
+
content: themeConfig.icons.tick
|
|
13
|
+
}, props));
|
|
14
|
+
export default Tick;
|
package/icons/TimeIcon.js
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
|
+
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
5
|
+
|
|
6
|
+
// SVG Content
|
|
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
|
+
|
|
9
|
+
/**
|
|
3
10
|
* The time icon component.
|
|
4
11
|
* @param {Object} props The component properties.
|
|
5
12
|
* @returns {JSX}
|
|
6
|
-
*/
|
|
13
|
+
*/
|
|
14
|
+
const TimeIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
15
|
+
content: themeConfig.icons.time || content
|
|
16
|
+
}, props));
|
|
17
|
+
export default TimeIcon;
|
package/icons/TrashIcon.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
|
+
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
5
|
+
|
|
6
|
+
/**
|
|
2
7
|
* The trash icon component.
|
|
3
8
|
* @param {Object} props The icon component properties.
|
|
4
9
|
* @returns {JSX}
|
|
5
|
-
*/
|
|
10
|
+
*/
|
|
11
|
+
const Trash = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
12
|
+
content: themeConfig.icons.trash
|
|
13
|
+
}, props));
|
|
14
|
+
export default Trash;
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
|
+
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
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
|
+
|
|
7
|
+
/**
|
|
2
8
|
* The trash outline icon component.
|
|
3
9
|
* @link https://fonts.google.com/icons?selected=Material+Icons:delete_outline:&icon.query=trash
|
|
4
10
|
* @param {Object} props The icon component properties.
|
|
5
11
|
* @returns {JSX}
|
|
6
|
-
*/
|
|
12
|
+
*/
|
|
13
|
+
const TrashOutline = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
14
|
+
content: themeConfig.icons.trashOutline || fallback
|
|
15
|
+
}, props));
|
|
16
|
+
export default TrashOutline;
|
package/icons/UncheckedIcon.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
|
+
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
5
|
+
|
|
6
|
+
/**
|
|
2
7
|
* The unchecked icon component.
|
|
3
8
|
* @param {Object} props The icon component properties.
|
|
4
9
|
* @returns {JSX}
|
|
5
|
-
*/
|
|
10
|
+
*/
|
|
11
|
+
const Unchecked = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
12
|
+
content: themeConfig.icons.unchecked
|
|
13
|
+
}, props));
|
|
14
|
+
export default Unchecked;
|
package/icons/ViewListIcon.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
|
+
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
5
|
+
|
|
6
|
+
/**
|
|
2
7
|
* The view list icon component.
|
|
3
8
|
* @param {Object} props The icon component properties.
|
|
4
9
|
* @returns {JSX}
|
|
5
|
-
*/
|
|
10
|
+
*/
|
|
11
|
+
const ViewList = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
12
|
+
content: themeConfig.icons.viewList
|
|
13
|
+
}, props));
|
|
14
|
+
export default ViewList;
|
package/icons/VisibilityIcon.js
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
|
+
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
5
|
+
|
|
6
|
+
/**
|
|
2
7
|
* @link https://material.io/tools/icons/?icon=visibility&style=baseline
|
|
3
8
|
*
|
|
4
9
|
* @param {Object} props The icon component properties.
|
|
5
10
|
* @returns {JSX}
|
|
6
|
-
*/
|
|
11
|
+
*/
|
|
12
|
+
const VisibilityIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
13
|
+
content: themeConfig.icons.visibility
|
|
14
|
+
}, props));
|
|
15
|
+
export default VisibilityIcon;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
|
+
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
5
|
+
|
|
6
|
+
/**
|
|
2
7
|
* @link https://material.io/tools/icons/?icon=visibility_off&style=baseline
|
|
3
8
|
*
|
|
4
9
|
* @param {Object} props The icon component properties.
|
|
5
10
|
* @returns {JSX}
|
|
6
|
-
*/
|
|
11
|
+
*/
|
|
12
|
+
const VisibilityOffIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
13
|
+
content: themeConfig.icons.visibilityOff
|
|
14
|
+
}, props));
|
|
15
|
+
export default VisibilityOffIcon;
|
package/icons/WarningIcon.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
|
+
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
5
|
+
|
|
6
|
+
/**
|
|
2
7
|
* The stop icon component.
|
|
3
8
|
* @param {Object} props The icon component properties.
|
|
4
9
|
* @returns {JSX}
|
|
5
|
-
*/
|
|
10
|
+
*/
|
|
11
|
+
const WarningIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
12
|
+
content: themeConfig.icons.warning
|
|
13
|
+
}, props));
|
|
14
|
+
export default WarningIcon;
|
package/index.js
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { default as AccordionContainer } from "./AccordionContainer";
|
|
2
|
+
export { default as Card } from "./Card";
|
|
3
|
+
export { default as ArrowIcon } from "./icons/ArrowIcon";
|
|
4
|
+
export { default as BurgerIcon } from "./icons/BurgerIcon";
|
|
5
|
+
export { default as CartIcon } from "./icons/CartIcon";
|
|
6
|
+
export { default as ChevronIcon } from "./icons/ChevronIcon";
|
|
7
|
+
export { default as CrossIcon } from "./icons/CrossIcon";
|
|
8
|
+
export { default as MagnifierIcon } from "./icons/MagnifierIcon";
|
|
9
|
+
export { default as Placeholder } from "./Placeholder";
|
|
10
|
+
export { default as ProgressBar } from "./ProgressBar";
|
|
11
|
+
export { default as LoadingIndicator } from "./LoadingIndicator";
|
|
12
|
+
export { default as Sheet } from "./Sheet";
|
|
13
|
+
export { default as Checkbox } from "./Checkbox";
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/pwa-ui-shared",
|
|
3
|
-
"version": "7.30.0-alpha.
|
|
3
|
+
"version": "7.30.0-alpha.8",
|
|
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.
|
|
8
|
+
"@shopgate/pwa-ui-ios": "7.30.0-alpha.8",
|
|
9
|
+
"@shopgate/pwa-ui-material": "7.30.0-alpha.8",
|
|
10
10
|
"react-day-picker": "^7.4.8"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@shopgate/pwa-common": "7.30.0-alpha.
|
|
14
|
-
"@shopgate/pwa-common-commerce": "7.30.0-alpha.
|
|
13
|
+
"@shopgate/pwa-common": "7.30.0-alpha.8",
|
|
14
|
+
"@shopgate/pwa-common-commerce": "7.30.0-alpha.8",
|
|
15
15
|
"classnames": "2.5.1",
|
|
16
16
|
"react": "~16.14.0"
|
|
17
17
|
},
|