@shopgate/pwa-ui-shared 7.30.4-beta.1 → 7.31.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ActionButton/index.js +66 -67
- package/AddToCartButton/index.js +217 -185
- package/AddToCartButton/style.js +8 -0
- package/Availability/index.js +24 -6
- package/Button/index.js +105 -82
- package/Button/spec.js +3 -4
- package/Card/index.js +26 -7
- package/CardList/components/Item/index.js +15 -3
- package/CartTotalLine/components/Amount/index.js +13 -4
- package/CartTotalLine/components/Hint/index.js +13 -4
- package/CartTotalLine/components/Label/index.js +23 -10
- package/CartTotalLine/index.js +41 -7
- package/Checkbox/index.js +41 -17
- package/Chip/index.js +82 -7
- package/ContextMenu/components/Item/index.js +38 -20
- package/ContextMenu/components/Position/index.js +38 -56
- package/ContextMenu/index.js +64 -28
- package/Dialog/components/BasicDialog/index.js +1 -0
- package/Dialog/components/HtmlContentDialog/spec.js +39 -0
- package/Dialog/components/PipelineErrorDialog/index.js +108 -157
- package/Dialog/components/PipelineErrorDialog/spec.js +12 -18
- package/Dialog/components/TextMessageDialog/index.js +1 -1
- package/Dialog/components/VariantSelectModal/index.js +1 -1
- package/Dialog/index.js +1 -1
- package/DiscountBadge/index.js +48 -15
- package/FavoritesButton/index.js +95 -100
- package/FavoritesButton/spec.js +5 -2
- package/Form/Builder/classes/ActionListener/index.js +1 -0
- package/Form/Checkbox/index.js +64 -56
- package/Form/InfoField/index.js +18 -6
- package/Form/Password/index.js +39 -52
- package/Form/RadioGroup/components/Item/index.js +72 -56
- package/Form/RadioGroup/index.js +79 -90
- package/Form/Select/index.js +108 -130
- package/Form/SelectContextChoices/index.js +30 -8
- package/Form/TextField/index.js +106 -82
- package/Form/TextField/spec.js +4 -3
- package/FormElement/components/ErrorText/index.js +32 -14
- package/FormElement/components/Label/index.js +56 -6
- package/FormElement/components/Placeholder/index.js +44 -11
- package/FormElement/components/Underline/index.js +63 -12
- package/FormElement/index.js +62 -85
- package/Glow/index.js +73 -83
- package/IndicatorCircle/index.js +73 -17
- package/IndicatorCircle/spec.js +2 -5
- package/LoadingIndicator/index.js +34 -12
- package/Manufacturer/index.js +21 -10
- package/MessageBar/index.js +12 -38
- package/NoResults/components/Icon/index.js +30 -14
- package/NoResults/index.js +35 -7
- package/Placeholder/index.js +34 -23
- package/PlaceholderLabel/index.js +17 -3
- package/Price/index.js +34 -21
- package/PriceInfo/index.js +23 -9
- package/PriceStriked/index.js +67 -77
- package/ProgressBar/index.js +112 -77
- package/RadioButton/index.js +29 -11
- package/RatingStars/index.js +122 -137
- package/Ripple/components/RippleAnimation/index.js +13 -3
- package/Ripple/index.js +158 -212
- package/RippleButton/index.js +63 -60
- package/RippleButton/spec.js +15 -9
- package/ScannerOverlay/components/CameraOverlay/index.js +54 -10
- package/ScannerOverlay/components/ScannerBar/components/FlashlightButton/index.js +53 -27
- package/ScannerOverlay/components/ScannerBar/index.js +50 -26
- package/Sheet/components/Header/components/SearchBar/index.js +54 -10
- package/Sheet/components/Header/index.js +96 -76
- package/Sheet/index.js +295 -157
- package/Sheet/spec.js +8 -6
- package/TaxDisclaimer/index.js +17 -4
- package/TaxDisclaimer/spec.js +16 -5
- package/TextField/components/ErrorText/index.js +35 -14
- package/TextField/components/FormElement/index.js +29 -4
- package/TextField/components/Hint/index.js +39 -10
- package/TextField/components/Label/index.js +43 -6
- package/TextField/components/Underline/index.js +64 -13
- package/TextField/index.js +157 -171
- package/TextField/spec.js +5 -3
- package/icons/AccountBoxIcon.d.ts +7 -0
- package/icons/AccountBoxIcon.d.ts.map +1 -0
- package/icons/AccountBoxIcon.js +1 -4
- package/icons/AddMoreIcon.d.ts +7 -0
- package/icons/AddMoreIcon.d.ts.map +1 -0
- package/icons/AddMoreIcon.js +0 -3
- package/icons/ArrowDropIcon.d.ts +7 -0
- package/icons/ArrowDropIcon.d.ts.map +1 -0
- package/icons/ArrowDropIcon.js +0 -3
- package/icons/ArrowIcon.d.ts +10 -0
- package/icons/ArrowIcon.d.ts.map +1 -0
- package/icons/ArrowIcon.js +2 -11
- package/icons/BarcodeScannerIcon.d.ts +7 -0
- package/icons/BarcodeScannerIcon.d.ts.map +1 -0
- package/icons/BarcodeScannerIcon.js +0 -3
- package/icons/BoxIcon.d.ts +7 -0
- package/icons/BoxIcon.d.ts.map +1 -0
- package/icons/BoxIcon.js +0 -3
- package/icons/BrowseIcon.d.ts +7 -0
- package/icons/BrowseIcon.d.ts.map +1 -0
- package/icons/BrowseIcon.js +1 -3
- package/icons/BurgerIcon.d.ts +7 -0
- package/icons/BurgerIcon.d.ts.map +1 -0
- package/icons/BurgerIcon.js +0 -3
- package/icons/CalendarIcon.d.ts +7 -0
- package/icons/CalendarIcon.d.ts.map +1 -0
- package/icons/CalendarIcon.js +0 -2
- package/icons/CartCouponIcon.d.ts +7 -0
- package/icons/CartCouponIcon.d.ts.map +1 -0
- package/icons/CartCouponIcon.js +0 -2
- package/icons/CartIcon.d.ts +7 -0
- package/icons/CartIcon.d.ts.map +1 -0
- package/icons/CartIcon.js +0 -2
- package/icons/CartPlusIcon.d.ts +7 -0
- package/icons/CartPlusIcon.d.ts.map +1 -0
- package/icons/CartPlusIcon.js +0 -2
- package/icons/CheckIcon.d.ts +7 -0
- package/icons/CheckIcon.d.ts.map +1 -0
- package/icons/CheckIcon.js +0 -2
- package/icons/CheckedIcon.d.ts +7 -0
- package/icons/CheckedIcon.d.ts.map +1 -0
- package/icons/CheckedIcon.js +0 -3
- package/icons/ChevronIcon.d.ts +7 -0
- package/icons/ChevronIcon.d.ts.map +1 -0
- package/icons/ChevronIcon.js +0 -2
- package/icons/CreditCardIcon.d.ts +7 -0
- package/icons/CreditCardIcon.d.ts.map +1 -0
- package/icons/CreditCardIcon.js +0 -2
- package/icons/CrossIcon.d.ts +7 -0
- package/icons/CrossIcon.d.ts.map +1 -0
- package/icons/CrossIcon.js +0 -2
- package/icons/DescriptionIcon.d.ts +7 -0
- package/icons/DescriptionIcon.d.ts.map +1 -0
- package/icons/DescriptionIcon.js +0 -2
- package/icons/FilterIcon.d.ts +7 -0
- package/icons/FilterIcon.d.ts.map +1 -0
- package/icons/FilterIcon.js +0 -2
- package/icons/FlashDisabledIcon.d.ts +7 -0
- package/icons/FlashDisabledIcon.d.ts.map +1 -0
- package/icons/FlashDisabledIcon.js +0 -2
- package/icons/FlashEnabledIcon.d.ts +7 -0
- package/icons/FlashEnabledIcon.d.ts.map +1 -0
- package/icons/FlashEnabledIcon.js +0 -2
- package/icons/GridIcon.d.ts +7 -0
- package/icons/GridIcon.d.ts.map +1 -0
- package/icons/GridIcon.js +1 -3
- package/icons/HeartIcon.d.ts +7 -0
- package/icons/HeartIcon.d.ts.map +1 -0
- package/icons/HeartIcon.js +0 -2
- package/icons/HeartOutlineIcon.d.ts +7 -0
- package/icons/HeartOutlineIcon.d.ts.map +1 -0
- package/icons/HeartOutlineIcon.js +1 -3
- package/icons/HeartPlusIcon.d.ts +7 -0
- package/icons/HeartPlusIcon.d.ts.map +1 -0
- package/icons/HeartPlusIcon.js +1 -3
- package/icons/HeartPlusOutlineIcon.d.ts +7 -0
- package/icons/HeartPlusOutlineIcon.d.ts.map +1 -0
- package/icons/HeartPlusOutlineIcon.js +1 -3
- package/icons/HomeIcon.d.ts +7 -0
- package/icons/HomeIcon.d.ts.map +1 -0
- package/icons/HomeIcon.js +0 -2
- package/icons/InfoIcon.d.ts +7 -0
- package/icons/InfoIcon.d.ts.map +1 -0
- package/icons/InfoIcon.js +0 -2
- package/icons/InfoOutlineIcon.d.ts +7 -0
- package/icons/InfoOutlineIcon.d.ts.map +1 -0
- package/icons/InfoOutlineIcon.js +0 -2
- package/icons/ListIcon.d.ts +7 -0
- package/icons/ListIcon.d.ts.map +1 -0
- package/icons/ListIcon.js +0 -2
- package/icons/LocalShippingIcon.d.ts +7 -0
- package/icons/LocalShippingIcon.d.ts.map +1 -0
- package/icons/LocalShippingIcon.js +0 -2
- package/icons/LocationIcon.d.ts +7 -0
- package/icons/LocationIcon.d.ts.map +1 -0
- package/icons/LocationIcon.js +1 -4
- package/icons/LocatorIcon.d.ts +7 -0
- package/icons/LocatorIcon.d.ts.map +1 -0
- package/icons/LocatorIcon.js +1 -3
- package/icons/LockIcon.d.ts +9 -0
- package/icons/LockIcon.d.ts.map +1 -0
- package/icons/LockIcon.js +1 -2
- package/icons/LogoutIcon.d.ts +7 -0
- package/icons/LogoutIcon.d.ts.map +1 -0
- package/icons/LogoutIcon.js +0 -2
- package/icons/MagnifierIcon.d.ts +7 -0
- package/icons/MagnifierIcon.d.ts.map +1 -0
- package/icons/MagnifierIcon.js +0 -2
- package/icons/MapMarkerIcon.d.ts +7 -0
- package/icons/MapMarkerIcon.d.ts.map +1 -0
- package/icons/MapMarkerIcon.js +1 -3
- package/icons/MoreIcon.d.ts +7 -0
- package/icons/MoreIcon.d.ts.map +1 -0
- package/icons/MoreIcon.js +1 -3
- package/icons/MoreVertIcon.d.ts +7 -0
- package/icons/MoreVertIcon.d.ts.map +1 -0
- package/icons/MoreVertIcon.js +1 -3
- package/icons/NotificationIcon.d.ts +7 -0
- package/icons/NotificationIcon.d.ts.map +1 -0
- package/icons/NotificationIcon.js +1 -3
- package/icons/PersonIcon.d.ts +9 -0
- package/icons/PersonIcon.d.ts.map +1 -0
- package/icons/PersonIcon.js +0 -3
- package/icons/PhoneIcon.d.ts +7 -0
- package/icons/PhoneIcon.d.ts.map +1 -0
- package/icons/PhoneIcon.js +1 -4
- package/icons/PlaceholderIcon.d.ts +7 -0
- package/icons/PlaceholderIcon.d.ts.map +1 -0
- package/icons/PlaceholderIcon.js +0 -2
- package/icons/RadioCheckedIcon.d.ts +10 -0
- package/icons/RadioCheckedIcon.d.ts.map +1 -0
- package/icons/RadioCheckedIcon.js +0 -2
- package/icons/RadioUncheckedIcon.d.ts +10 -0
- package/icons/RadioUncheckedIcon.d.ts.map +1 -0
- package/icons/RadioUncheckedIcon.js +0 -2
- package/icons/SecurityIcon.d.ts +7 -0
- package/icons/SecurityIcon.d.ts.map +1 -0
- package/icons/SecurityIcon.js +0 -2
- package/icons/ShippingMethodIcon.d.ts +7 -0
- package/icons/ShippingMethodIcon.d.ts.map +1 -0
- package/icons/ShippingMethodIcon.js +0 -2
- package/icons/ShoppingCartIcon.d.ts +7 -0
- package/icons/ShoppingCartIcon.d.ts.map +1 -0
- package/icons/ShoppingCartIcon.js +0 -2
- package/icons/SortIcon.d.ts +7 -0
- package/icons/SortIcon.d.ts.map +1 -0
- package/icons/SortIcon.js +0 -2
- package/icons/StarHalfIcon.d.ts +7 -0
- package/icons/StarHalfIcon.d.ts.map +1 -0
- package/icons/StarHalfIcon.js +0 -9
- package/icons/StarIcon.d.ts +7 -0
- package/icons/StarIcon.d.ts.map +1 -0
- package/icons/StarIcon.js +0 -9
- package/icons/StarOutlineIcon.d.ts +7 -0
- package/icons/StarOutlineIcon.d.ts.map +1 -0
- package/icons/StarOutlineIcon.js +0 -2
- package/icons/StopIcon.d.ts +7 -0
- package/icons/StopIcon.d.ts.map +1 -0
- package/icons/StopIcon.js +0 -2
- package/icons/TickIcon.d.ts +7 -0
- package/icons/TickIcon.d.ts.map +1 -0
- package/icons/TickIcon.js +0 -2
- package/icons/TimeIcon.d.ts +7 -0
- package/icons/TimeIcon.d.ts.map +1 -0
- package/icons/TimeIcon.js +0 -2
- package/icons/TrashIcon.d.ts +7 -0
- package/icons/TrashIcon.d.ts.map +1 -0
- package/icons/TrashIcon.js +0 -3
- package/icons/TrashOutlineIcon.d.ts +8 -0
- package/icons/TrashOutlineIcon.d.ts.map +1 -0
- package/icons/TrashOutlineIcon.js +0 -2
- package/icons/UncheckedIcon.d.ts +7 -0
- package/icons/UncheckedIcon.d.ts.map +1 -0
- package/icons/UncheckedIcon.js +0 -2
- package/icons/ViewListIcon.d.ts +7 -0
- package/icons/ViewListIcon.d.ts.map +1 -0
- package/icons/ViewListIcon.js +0 -2
- package/icons/VisibilityIcon.d.ts +8 -0
- package/icons/VisibilityIcon.d.ts.map +1 -0
- package/icons/VisibilityIcon.js +2 -4
- package/icons/VisibilityOffIcon.d.ts +8 -0
- package/icons/VisibilityOffIcon.d.ts.map +1 -0
- package/icons/VisibilityOffIcon.js +2 -4
- package/icons/WarningIcon.d.ts +7 -0
- package/icons/WarningIcon.d.ts.map +1 -0
- package/icons/WarningIcon.js +1 -3
- package/package.json +5 -5
- package/tsconfig.build.json +16 -0
- package/tsconfig.json +3 -0
- package/ActionButton/style.js +0 -22
- package/Availability/style.js +0 -19
- package/Button/style.js +0 -155
- package/Card/style.js +0 -11
- package/CardList/components/Item/style.js +0 -7
- package/CartTotalLine/components/Amount/style.js +0 -8
- package/CartTotalLine/components/Hint/style.js +0 -12
- package/CartTotalLine/components/Label/style.js +0 -17
- package/CartTotalLine/style.js +0 -31
- package/Checkbox/style.js +0 -18
- package/Chip/style.js +0 -78
- package/ContextMenu/components/Item/style.js +0 -34
- package/ContextMenu/components/Position/style.js +0 -11
- package/ContextMenu/style.js +0 -45
- package/DiscountBadge/style.js +0 -36
- package/FavoritesButton/style.js +0 -26
- package/Form/Checkbox/style.js +0 -25
- package/Form/InfoField/style.js +0 -11
- package/Form/Password/style.js +0 -11
- package/Form/RadioGroup/components/Item/style.js +0 -32
- package/Form/RadioGroup/style.js +0 -20
- package/Form/Select/style.js +0 -27
- package/Form/SelectContextChoices/style.js +0 -23
- package/Form/TextField/style.js +0 -70
- package/FormElement/components/ErrorText/style.js +0 -13
- package/FormElement/components/Label/style.js +0 -89
- package/FormElement/components/Placeholder/style.js +0 -56
- package/FormElement/components/Underline/style.js +0 -60
- package/FormElement/style.js +0 -14
- package/Glow/style.js +0 -18
- package/IndicatorCircle/style.js +0 -65
- package/LoadingIndicator/style.js +0 -20
- package/Manufacturer/style.js +0 -5
- package/MessageBar/spec.js +0 -80
- package/MessageBar/style.js +0 -38
- package/NoResults/components/Icon/style.js +0 -17
- package/NoResults/style.js +0 -31
- package/Placeholder/style.js +0 -11
- package/PlaceholderLabel/style.js +0 -12
- package/Price/style.js +0 -22
- package/PriceInfo/style.js +0 -5
- package/PriceStriked/style.js +0 -36
- package/ProgressBar/style.js +0 -85
- package/RadioButton/style.js +0 -21
- package/RatingStars/style.js +0 -53
- package/Ripple/style.js +0 -18
- package/ScannerOverlay/components/CameraOverlay/style.js +0 -40
- package/ScannerOverlay/components/ScannerBar/components/FlashlightButton/style.js +0 -28
- package/ScannerOverlay/components/ScannerBar/style.js +0 -20
- package/Sheet/components/Header/components/SearchBar/style.js +0 -47
- package/Sheet/components/Header/style.js +0 -50
- package/Sheet/style.js +0 -143
- package/TaxDisclaimer/style.js +0 -9
- package/TextField/components/ErrorText/style.js +0 -27
- package/TextField/components/FormElement/style.js +0 -34
- package/TextField/components/Hint/style.js +0 -46
- package/TextField/components/Label/style.js +0 -80
- package/TextField/components/Underline/style.js +0 -60
- package/TextField/style.js +0 -35
package/icons/StarIcon.js
CHANGED
|
@@ -1,22 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
4
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* The star icon component
|
|
8
|
-
* @param {Object} props The icon component properties.
|
|
9
|
-
* @returns {JSX}
|
|
10
7
|
*/
|
|
11
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
9
|
const Star = props => /*#__PURE__*/_jsx(Icon, {
|
|
13
10
|
content: themeConfig.icons.star,
|
|
14
11
|
...props
|
|
15
12
|
});
|
|
16
|
-
Star.defaultProps = {
|
|
17
|
-
className: '',
|
|
18
|
-
color: null,
|
|
19
|
-
viewBox: '0 0 24 24',
|
|
20
|
-
size: 'inherit'
|
|
21
|
-
};
|
|
22
13
|
export default Star;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IconProps } from '@shopgate/pwa-common/components/Icon';
|
|
2
|
+
/**
|
|
3
|
+
* The star-outline icon component.
|
|
4
|
+
*/
|
|
5
|
+
declare const StarOutline: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default StarOutline;
|
|
7
|
+
//# sourceMappingURL=StarOutlineIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StarOutlineIcon.d.ts","sourceRoot":"","sources":["../../icons/StarOutlineIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,WAAW,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACQ,CAAC;AAE/D,eAAe,WAAW,CAAC"}
|
package/icons/StarOutlineIcon.js
CHANGED
|
@@ -4,8 +4,6 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The star-outline icon component.
|
|
7
|
-
* @param {Object} props The icon component properties.
|
|
8
|
-
* @returns {JSX}
|
|
9
7
|
*/
|
|
10
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
9
|
const StarOutline = props => /*#__PURE__*/_jsx(Icon, {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IconProps } from '@shopgate/pwa-common/components/Icon';
|
|
2
|
+
/**
|
|
3
|
+
* The stop icon component.
|
|
4
|
+
*/
|
|
5
|
+
declare const StopIcon: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default StopIcon;
|
|
7
|
+
//# sourceMappingURL=StopIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StopIcon.d.ts","sourceRoot":"","sources":["../../icons/StopIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,QAAQ,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACI,CAAC;AAExD,eAAe,QAAQ,CAAC"}
|
package/icons/StopIcon.js
CHANGED
|
@@ -4,8 +4,6 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The stop icon component.
|
|
7
|
-
* @param {Object} props The icon component properties.
|
|
8
|
-
* @returns {JSX}
|
|
9
7
|
*/
|
|
10
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
9
|
const StopIcon = props => /*#__PURE__*/_jsx(Icon, {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IconProps } from '@shopgate/pwa-common/components/Icon';
|
|
2
|
+
/**
|
|
3
|
+
* The tick icon component.
|
|
4
|
+
*/
|
|
5
|
+
declare const Tick: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default Tick;
|
|
7
|
+
//# sourceMappingURL=TickIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TickIcon.d.ts","sourceRoot":"","sources":["../../icons/TickIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,IAAI,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACQ,CAAC;AAExD,eAAe,IAAI,CAAC"}
|
package/icons/TickIcon.js
CHANGED
|
@@ -4,8 +4,6 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The tick icon component.
|
|
7
|
-
* @param {Object} props The icon component properties.
|
|
8
|
-
* @returns {JSX}
|
|
9
7
|
*/
|
|
10
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
9
|
const Tick = props => /*#__PURE__*/_jsx(Icon, {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IconProps } from '@shopgate/pwa-common/components/Icon';
|
|
2
|
+
/**
|
|
3
|
+
* The time icon component.
|
|
4
|
+
*/
|
|
5
|
+
declare const TimeIcon: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default TimeIcon;
|
|
7
|
+
//# sourceMappingURL=TimeIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeIcon.d.ts","sourceRoot":"","sources":["../../icons/TimeIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAMtE;;GAEG;AACH,QAAA,MAAM,QAAQ,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACe,CAAC;AAEnE,eAAe,QAAQ,CAAC"}
|
package/icons/TimeIcon.js
CHANGED
|
@@ -8,8 +8,6 @@ const content = '<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 2
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* The time icon component.
|
|
11
|
-
* @param {Object} props The component properties.
|
|
12
|
-
* @returns {JSX}
|
|
13
11
|
*/
|
|
14
12
|
const TimeIcon = props => /*#__PURE__*/_jsx(Icon, {
|
|
15
13
|
content: themeConfig.icons.time || content,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IconProps } from '@shopgate/pwa-common/components/Icon';
|
|
2
|
+
/**
|
|
3
|
+
* The trash icon component.
|
|
4
|
+
*/
|
|
5
|
+
declare const Trash: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default Trash;
|
|
7
|
+
//# sourceMappingURL=TrashIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TrashIcon.d.ts","sourceRoot":"","sources":["../../icons/TrashIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,KAAK,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACQ,CAAC;AAEzD,eAAe,KAAK,CAAC"}
|
package/icons/TrashIcon.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import Icon from '@shopgate/pwa-common/components/Icon';
|
|
3
2
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* The trash icon component.
|
|
7
|
-
* @param {Object} props The icon component properties.
|
|
8
|
-
* @returns {JSX}
|
|
9
6
|
*/
|
|
10
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
8
|
const Trash = props => /*#__PURE__*/_jsx(Icon, {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IconProps } from '@shopgate/pwa-common/components/Icon';
|
|
2
|
+
/**
|
|
3
|
+
* The trash outline icon component.
|
|
4
|
+
* @link https://fonts.google.com/icons?selected=Material+Icons:delete_outline:&icon.query=trash
|
|
5
|
+
*/
|
|
6
|
+
declare const TrashOutline: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default TrashOutline;
|
|
8
|
+
//# sourceMappingURL=TrashOutlineIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TrashOutlineIcon.d.ts","sourceRoot":"","sources":["../../icons/TrashOutlineIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAKtE;;;GAGG;AACH,QAAA,MAAM,YAAY,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CAGrD,CAAC;AAEH,eAAe,YAAY,CAAC"}
|
|
@@ -7,8 +7,6 @@ const fallback = '<path d="M0 0h24v24H0V0z" fill="none"/><path d="M6 19c0 1.1.9
|
|
|
7
7
|
/**
|
|
8
8
|
* The trash outline icon component.
|
|
9
9
|
* @link https://fonts.google.com/icons?selected=Material+Icons:delete_outline:&icon.query=trash
|
|
10
|
-
* @param {Object} props The icon component properties.
|
|
11
|
-
* @returns {JSX}
|
|
12
10
|
*/
|
|
13
11
|
const TrashOutline = props => /*#__PURE__*/_jsx(Icon, {
|
|
14
12
|
content: themeConfig.icons.trashOutline || fallback,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IconProps } from '@shopgate/pwa-common/components/Icon';
|
|
2
|
+
/**
|
|
3
|
+
* The unchecked icon component.
|
|
4
|
+
*/
|
|
5
|
+
declare const Unchecked: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default Unchecked;
|
|
7
|
+
//# sourceMappingURL=UncheckedIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UncheckedIcon.d.ts","sourceRoot":"","sources":["../../icons/UncheckedIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,SAAS,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACQ,CAAC;AAE7D,eAAe,SAAS,CAAC"}
|
package/icons/UncheckedIcon.js
CHANGED
|
@@ -4,8 +4,6 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The unchecked icon component.
|
|
7
|
-
* @param {Object} props The icon component properties.
|
|
8
|
-
* @returns {JSX}
|
|
9
7
|
*/
|
|
10
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
9
|
const Unchecked = props => /*#__PURE__*/_jsx(Icon, {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IconProps } from '@shopgate/pwa-common/components/Icon';
|
|
2
|
+
/**
|
|
3
|
+
* The view list icon component.
|
|
4
|
+
*/
|
|
5
|
+
declare const ViewList: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default ViewList;
|
|
7
|
+
//# sourceMappingURL=ViewListIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewListIcon.d.ts","sourceRoot":"","sources":["../../icons/ViewListIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,QAAQ,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACQ,CAAC;AAE5D,eAAe,QAAQ,CAAC"}
|
package/icons/ViewListIcon.js
CHANGED
|
@@ -4,8 +4,6 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The view list icon component.
|
|
7
|
-
* @param {Object} props The icon component properties.
|
|
8
|
-
* @returns {JSX}
|
|
9
7
|
*/
|
|
10
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
9
|
const ViewList = props => /*#__PURE__*/_jsx(Icon, {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IconProps } from '@shopgate/pwa-common/components/Icon';
|
|
2
|
+
/**
|
|
3
|
+
* The visibility icon component.
|
|
4
|
+
* https://material.io/tools/icons/?icon=visibility&style=baseline
|
|
5
|
+
*/
|
|
6
|
+
declare const VisibilityIcon: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default VisibilityIcon;
|
|
8
|
+
//# sourceMappingURL=VisibilityIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisibilityIcon.d.ts","sourceRoot":"","sources":["../../icons/VisibilityIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;;GAGG;AACH,QAAA,MAAM,cAAc,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACI,CAAC;AAE9D,eAAe,cAAc,CAAC"}
|
package/icons/VisibilityIcon.js
CHANGED
|
@@ -3,10 +3,8 @@ import Icon from '@shopgate/pwa-common/components/Icon';
|
|
|
3
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* @param {Object} props The icon component properties.
|
|
9
|
-
* @returns {JSX}
|
|
6
|
+
* The visibility icon component.
|
|
7
|
+
* https://material.io/tools/icons/?icon=visibility&style=baseline
|
|
10
8
|
*/
|
|
11
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
10
|
const VisibilityIcon = props => /*#__PURE__*/_jsx(Icon, {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IconProps } from '@shopgate/pwa-common/components/Icon';
|
|
2
|
+
/**
|
|
3
|
+
* The visibility off icon component.
|
|
4
|
+
* https://material.io/tools/icons/?icon=visibility_off&style=baseline
|
|
5
|
+
*/
|
|
6
|
+
declare const VisibilityOffIcon: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default VisibilityOffIcon;
|
|
8
|
+
//# sourceMappingURL=VisibilityOffIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisibilityOffIcon.d.ts","sourceRoot":"","sources":["../../icons/VisibilityOffIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;;GAGG;AACH,QAAA,MAAM,iBAAiB,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACI,CAAC;AAEjE,eAAe,iBAAiB,CAAC"}
|
|
@@ -3,10 +3,8 @@ import Icon from '@shopgate/pwa-common/components/Icon';
|
|
|
3
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* @param {Object} props The icon component properties.
|
|
9
|
-
* @returns {JSX}
|
|
6
|
+
* The visibility off icon component.
|
|
7
|
+
* https://material.io/tools/icons/?icon=visibility_off&style=baseline
|
|
10
8
|
*/
|
|
11
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
10
|
const VisibilityOffIcon = props => /*#__PURE__*/_jsx(Icon, {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IconProps } from '@shopgate/pwa-common/components/Icon';
|
|
2
|
+
/**
|
|
3
|
+
* The warning icon component.
|
|
4
|
+
*/
|
|
5
|
+
declare const WarningIcon: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default WarningIcon;
|
|
7
|
+
//# sourceMappingURL=WarningIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WarningIcon.d.ts","sourceRoot":"","sources":["../../icons/WarningIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,WAAW,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACI,CAAC;AAE3D,eAAe,WAAW,CAAC"}
|
package/icons/WarningIcon.js
CHANGED
|
@@ -3,9 +3,7 @@ import Icon from '@shopgate/pwa-common/components/Icon';
|
|
|
3
3
|
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* The
|
|
7
|
-
* @param {Object} props The icon component properties.
|
|
8
|
-
* @returns {JSX}
|
|
6
|
+
* The warning icon component.
|
|
9
7
|
*/
|
|
10
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
9
|
const WarningIcon = props => /*#__PURE__*/_jsx(Icon, {
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/pwa-ui-shared",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.31.0-alpha.2",
|
|
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.
|
|
9
|
-
"@shopgate/pwa-ui-material": "7.
|
|
8
|
+
"@shopgate/pwa-ui-ios": "7.31.0-alpha.2",
|
|
9
|
+
"@shopgate/pwa-ui-material": "7.31.0-alpha.2"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@shopgate/pwa-common": "7.
|
|
13
|
-
"@shopgate/pwa-common-commerce": "7.
|
|
12
|
+
"@shopgate/pwa-common": "7.31.0-alpha.2",
|
|
13
|
+
"@shopgate/pwa-common-commerce": "7.31.0-alpha.2",
|
|
14
14
|
"classnames": "2.5.1",
|
|
15
15
|
"react": "^17.0.2"
|
|
16
16
|
},
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "@shopgate/engage/tsconfig.build.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "./dist",
|
|
5
|
+
"rootDir": "."
|
|
6
|
+
},
|
|
7
|
+
"include": ["**/*.ts", "**/*.tsx"],
|
|
8
|
+
"exclude": [
|
|
9
|
+
"dist",
|
|
10
|
+
"node_modules",
|
|
11
|
+
"**/*.spec.*",
|
|
12
|
+
"**/__tests__/**",
|
|
13
|
+
"**/__snapshots__/**",
|
|
14
|
+
"coverage"
|
|
15
|
+
]
|
|
16
|
+
}
|
package/tsconfig.json
ADDED
package/ActionButton/style.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { css } from 'glamor';
|
|
2
|
-
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
3
|
-
const halfGapBig = themeConfig.variables.gap.big / 2;
|
|
4
|
-
const containerBase = {
|
|
5
|
-
textAlign: 'center'
|
|
6
|
-
};
|
|
7
|
-
const container = css({
|
|
8
|
-
...containerBase,
|
|
9
|
-
margin: `${halfGapBig}px 0`
|
|
10
|
-
}).toString();
|
|
11
|
-
const noGapContainer = css({
|
|
12
|
-
...containerBase
|
|
13
|
-
}).toString();
|
|
14
|
-
const containerCircle = css({
|
|
15
|
-
...containerBase,
|
|
16
|
-
margin: `${halfGapBig + 5}px 0`
|
|
17
|
-
}).toString();
|
|
18
|
-
export default {
|
|
19
|
-
container,
|
|
20
|
-
containerCircle,
|
|
21
|
-
noGapContainer
|
|
22
|
-
};
|
package/Availability/style.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { css } from 'glamor';
|
|
2
|
-
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
3
|
-
const stateOk = css({
|
|
4
|
-
fontSize: '0.875rem',
|
|
5
|
-
color: `var(--color-state-ok, ${themeConfig.colors.success})`
|
|
6
|
-
}).toString();
|
|
7
|
-
const stateWarning = css({
|
|
8
|
-
fontSize: '0.875rem',
|
|
9
|
-
color: `var(--color-state-warning, ${themeConfig.colors.warning})`
|
|
10
|
-
}).toString();
|
|
11
|
-
const stateAlert = css({
|
|
12
|
-
fontSize: '0.875rem',
|
|
13
|
-
color: `var(--color-state-alert, ${themeConfig.colors.error})`
|
|
14
|
-
}).toString();
|
|
15
|
-
export default {
|
|
16
|
-
stateOk,
|
|
17
|
-
stateWarning,
|
|
18
|
-
stateAlert
|
|
19
|
-
};
|
package/Button/style.js
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { css } from 'glamor';
|
|
2
|
-
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
3
|
-
const {
|
|
4
|
-
colors
|
|
5
|
-
} = themeConfig;
|
|
6
|
-
const buttonPadding = `0 ${themeConfig.variables.gap.big}px 0`;
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Creates the button style.
|
|
10
|
-
* @param {string} text The text color.
|
|
11
|
-
* @param {string|null} background The fill color.
|
|
12
|
-
* @return {Object} The button style.
|
|
13
|
-
*/
|
|
14
|
-
const button = (text, background) => ({
|
|
15
|
-
position: 'relative',
|
|
16
|
-
display: 'inline-block',
|
|
17
|
-
outline: 0,
|
|
18
|
-
color: text,
|
|
19
|
-
backgroundColor: background,
|
|
20
|
-
minWidth: 64,
|
|
21
|
-
overflow: 'hidden',
|
|
22
|
-
':disabled': {
|
|
23
|
-
cursor: 'not-allowed'
|
|
24
|
-
},
|
|
25
|
-
...themeConfig.variables.buttonBase
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* The basic content wrapper styles.
|
|
30
|
-
*/
|
|
31
|
-
const contentWrapper = css({
|
|
32
|
-
padding: buttonPadding
|
|
33
|
-
}).toString();
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Creates the button styles object.
|
|
37
|
-
* @param {string} textColor The text color.
|
|
38
|
-
* @param {string|null} fillColor The fill color.
|
|
39
|
-
* @return {Object} The styles object.
|
|
40
|
-
*/
|
|
41
|
-
const createButtonStyles = (textColor, fillColor) => {
|
|
42
|
-
const buttonStyle = {
|
|
43
|
-
...button(textColor, fillColor)
|
|
44
|
-
};
|
|
45
|
-
const contentStyle = {
|
|
46
|
-
padding: buttonPadding,
|
|
47
|
-
color: buttonStyle.color
|
|
48
|
-
};
|
|
49
|
-
return {
|
|
50
|
-
button: css(buttonStyle).toString(),
|
|
51
|
-
content: css(contentStyle).toString()
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Creates a plain button style object without any styling.
|
|
57
|
-
* @return {Object}
|
|
58
|
-
*/
|
|
59
|
-
const plain = () => ({
|
|
60
|
-
button: css({
|
|
61
|
-
padding: 0,
|
|
62
|
-
outline: 0,
|
|
63
|
-
border: 0,
|
|
64
|
-
textAlign: 'left'
|
|
65
|
-
}).toString(),
|
|
66
|
-
content: ''
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Creates a simple button style object.
|
|
71
|
-
* @param {boolean} disabled Whether this button is disabled.
|
|
72
|
-
* @return {Object}
|
|
73
|
-
*/
|
|
74
|
-
const simple = disabled => {
|
|
75
|
-
if (disabled) {
|
|
76
|
-
// simple disabled button style.
|
|
77
|
-
return createButtonStyles(themeConfig.colors.shade4, themeConfig.colors.shade7);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// simple enabled button style.
|
|
81
|
-
return createButtonStyles(themeConfig.colors.dark, themeConfig.colors.shade7);
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* The regular flat button style.
|
|
86
|
-
* @param {boolean} disabled Whether this button is disabled.
|
|
87
|
-
* @return {Object} An object of style definitions.
|
|
88
|
-
*/
|
|
89
|
-
const regular = disabled => {
|
|
90
|
-
if (disabled) {
|
|
91
|
-
// Flat disabled button style.
|
|
92
|
-
return createButtonStyles(colors.shade4, null);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// Flat enabled button style.
|
|
96
|
-
return createButtonStyles(colors.dark, null);
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* The primary button style.
|
|
101
|
-
* @param {boolean} disabled Whether this button is disabled.
|
|
102
|
-
* @param {boolean} flat Whether this button should be rendered flat.
|
|
103
|
-
* @return {Object} An object of style definitions.
|
|
104
|
-
*/
|
|
105
|
-
const primary = (disabled, flat) => {
|
|
106
|
-
if (!flat) {
|
|
107
|
-
if (disabled) {
|
|
108
|
-
// Regular disabled button style.
|
|
109
|
-
return createButtonStyles(colors.shade4, colors.shade7);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// Regular enabled button style.
|
|
113
|
-
return createButtonStyles(`var(--color-secondary-contrast, ${colors.accentContrast})`, `var(--color-secondary, ${colors.accent})`);
|
|
114
|
-
}
|
|
115
|
-
if (disabled) {
|
|
116
|
-
// Flat disabled button style.
|
|
117
|
-
return createButtonStyles(colors.shade4, null);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// Flat enabled button style.
|
|
121
|
-
return createButtonStyles(`var(--color-secondary, ${colors.accent})`, null);
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* The secondary button style.
|
|
126
|
-
* @param {boolean} disabled Whether this button is disabled.
|
|
127
|
-
* @param {boolean} flat Whether this button should be rendered flat.
|
|
128
|
-
* @return {Object} An object of style definitions.
|
|
129
|
-
*/
|
|
130
|
-
const secondary = (disabled, flat) => {
|
|
131
|
-
if (!flat) {
|
|
132
|
-
if (disabled) {
|
|
133
|
-
// Regular disabled button style.
|
|
134
|
-
return createButtonStyles(colors.shade4, colors.shade7);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// Regular enabled button style.
|
|
138
|
-
return createButtonStyles(`var(--color-primary-contrast, ${colors.primaryContrast})`, `var(--color-primary, ${colors.primary})`);
|
|
139
|
-
}
|
|
140
|
-
if (disabled) {
|
|
141
|
-
// Flat disabled button style.
|
|
142
|
-
return createButtonStyles(colors.shade4, null);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// Flat enabled button style.
|
|
146
|
-
return createButtonStyles(`var(--color-primary, ${colors.primary})`, null);
|
|
147
|
-
};
|
|
148
|
-
export default {
|
|
149
|
-
plain,
|
|
150
|
-
regular,
|
|
151
|
-
simple,
|
|
152
|
-
primary,
|
|
153
|
-
secondary,
|
|
154
|
-
contentWrapper
|
|
155
|
-
};
|
package/Card/style.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { css } from 'glamor';
|
|
2
|
-
import { themeConfig, themeName } from '@shopgate/pwa-common/helpers/config';
|
|
3
|
-
const isIOS = themeName.includes('ios');
|
|
4
|
-
export default css({
|
|
5
|
-
boxShadow: themeConfig.shadows.productCard,
|
|
6
|
-
margin: '5px 5px 10px',
|
|
7
|
-
borderRadius: isIOS ? 10 : 2,
|
|
8
|
-
background: themeConfig.colors.light,
|
|
9
|
-
overflow: 'hidden',
|
|
10
|
-
position: 'relative'
|
|
11
|
-
}).toString();
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { css } from 'glamor';
|
|
2
|
-
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
3
|
-
const {
|
|
4
|
-
variables
|
|
5
|
-
} = themeConfig;
|
|
6
|
-
const hint = css({
|
|
7
|
-
paddingLeft: variables.gap.small,
|
|
8
|
-
order: 5
|
|
9
|
-
}).toString();
|
|
10
|
-
export default {
|
|
11
|
-
hint
|
|
12
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { css } from 'glamor';
|
|
2
|
-
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
3
|
-
const {
|
|
4
|
-
variables
|
|
5
|
-
} = themeConfig;
|
|
6
|
-
const label = css({
|
|
7
|
-
flexGrow: 1,
|
|
8
|
-
paddingRight: variables.gap.small,
|
|
9
|
-
order: 3
|
|
10
|
-
}).toString();
|
|
11
|
-
const labelWithSuffix = css({
|
|
12
|
-
paddingRight: variables.gap.small
|
|
13
|
-
});
|
|
14
|
-
export default {
|
|
15
|
-
label,
|
|
16
|
-
labelWithSuffix
|
|
17
|
-
};
|
package/CartTotalLine/style.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { css } from 'glamor';
|
|
2
|
-
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
3
|
-
const {
|
|
4
|
-
colors
|
|
5
|
-
} = themeConfig;
|
|
6
|
-
const disabled = css({
|
|
7
|
-
color: `${colors.shade4} !important`
|
|
8
|
-
}).toString();
|
|
9
|
-
const base = css({
|
|
10
|
-
color: colors.shade9
|
|
11
|
-
}).toString();
|
|
12
|
-
const subTotal = css({
|
|
13
|
-
color: `${colors.dark}`
|
|
14
|
-
}).toString();
|
|
15
|
-
const grandTotal = css({
|
|
16
|
-
color: `${colors.dark}`,
|
|
17
|
-
fontSize: '1rem !important'
|
|
18
|
-
}).toString();
|
|
19
|
-
const line = css({
|
|
20
|
-
display: 'flex',
|
|
21
|
-
justifyContent: 'space-between',
|
|
22
|
-
fontSize: '0.875rem',
|
|
23
|
-
alignItems: 'baseline'
|
|
24
|
-
}).toString();
|
|
25
|
-
export default {
|
|
26
|
-
subTotal,
|
|
27
|
-
grandTotal,
|
|
28
|
-
base,
|
|
29
|
-
line,
|
|
30
|
-
disabled
|
|
31
|
-
};
|
package/Checkbox/style.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { css } from 'glamor';
|
|
2
|
-
import { themeConfig } from '@shopgate/pwa-common/helpers/config';
|
|
3
|
-
const icon = css({
|
|
4
|
-
width: 24,
|
|
5
|
-
height: 24,
|
|
6
|
-
flexShrink: 0
|
|
7
|
-
}).toString();
|
|
8
|
-
const checkedIcon = css({
|
|
9
|
-
color: `var(--color-secondary, ${themeConfig.colors.accent})`
|
|
10
|
-
}).toString();
|
|
11
|
-
const uncheckedIcon = css({
|
|
12
|
-
color: themeConfig.colors.shade6
|
|
13
|
-
}).toString();
|
|
14
|
-
export default {
|
|
15
|
-
icon,
|
|
16
|
-
checkedIcon,
|
|
17
|
-
uncheckedIcon
|
|
18
|
-
};
|