@jetshop/template-trend 5.16.2 → 5.17.0-alpha.08e0c644
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/.eslintrc +9 -1
- package/.linaria-cache/packages/template-trend/src/components/Cart/CartFlyout.linaria.css +1 -1
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/AddToCart/ProductToast.linaria.css +1 -1
- package/.linaria-cache/packages/template-trend/src/components/ui/Button.linaria.css +3 -3
- package/package.json +8 -7
- package/src/components/StartPage/Content/StartPageCampaign.js +3 -1
- package/src/components/ui/Button.js +2 -1
package/.eslintrc
CHANGED
|
@@ -3,7 +3,15 @@
|
|
|
3
3
|
"plugins": ["react-hooks"],
|
|
4
4
|
"rules": {
|
|
5
5
|
"react-hooks/rules-of-hooks": "error",
|
|
6
|
-
"react-hooks/exhaustive-deps": "warn"
|
|
6
|
+
"react-hooks/exhaustive-deps": "warn",
|
|
7
|
+
"no-unused-vars": [
|
|
8
|
+
"warn",
|
|
9
|
+
{
|
|
10
|
+
"argsIgnorePattern": "^_",
|
|
11
|
+
"varsIgnorePattern": "^_",
|
|
12
|
+
"caughtErrorsIgnorePattern": "^_"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
7
15
|
},
|
|
8
16
|
"globals": {
|
|
9
17
|
"cy": true,
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
.CartItems_c1nb87j9{background:#fafafa;padding:1rem;}
|
|
5
5
|
.Summary_sy6ohs1{background:#fff;padding:1rem;}.Summary_sy6ohs1 a{width:100%;color:white;}.Summary_sy6ohs1 a:hover{color:white;}.Summary_sy6ohs1 h2{font-weight:bold;font-size:1.2em;}.Summary_sy6ohs1 .discounts{margin-bottom:1em;}.Summary_sy6ohs1 .discounts h2{margin-bottom:1em;}.Summary_sy6ohs1 .cart-total{padding-top:1em;border-top:1px solid #E8E8E8;}.Summary_sy6ohs1 .cart-total > * + *{margin-top:0.5em;}.Summary_sy6ohs1 .cart-total .shipping,.Summary_sy6ohs1 .cart-total .total,.Summary_sy6ohs1 .cart-total .vat{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.Summary_sy6ohs1 .cart-total .total{font-size:1.25rem;font-weight:600;color:#000000;}
|
|
6
6
|
.Flex_f923q7u{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}
|
|
7
|
-
.Checkout_c15tvczc{background-color
|
|
7
|
+
.Checkout_c15tvczc{background-color:pink;border-color:#146DE1;color:white;font-size:16px;border-radius:4px;padding:0.5rem 1rem;height:54px;width:100%;-webkit-text-decoration:none;text-decoration:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:white;}.Checkout_c15tvczc span{margin-right:12px;}.Checkout_c15tvczc svg{fill:white;height:1em;width:1em;margin-right:1em;}@media (min-width:50rem){.Checkout_c15tvczc{max-width:100%;}}.Checkout_c15tvczc:disabled{border:1px solid #dedede;opacity:0.5;}.Checkout_c15tvczc.secondary{background-color:white;border:1px solid #333;color:#333;}.Checkout_c15tvczc.secondary circle.path{stroke:black;}.Checkout_c15tvczc.Checkout_c15tvczc:hover{color:white;-webkit-text-decoration:none;text-decoration:none;}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.Container_cq75ys6{background-color:#FFFFFF;}@media (min-width:40rem){.Container_cq75ys6{width:320px;}}@media (max-width:39.99rem){.Container_cq75ys6{width:100%;}}
|
|
2
|
-
.CheckoutButton_c1a8mzsf{background-color
|
|
2
|
+
.CheckoutButton_c1a8mzsf{background-color:pink;border-color:#146DE1;color:white;font-size:16px;border-radius:4px;padding:0.5rem 1rem;height:54px;padding:16px;margin:8px;text-align:center;background:#146DE1;color:white;}.CheckoutButton_c1a8mzsf span{margin-right:12px;}.CheckoutButton_c1a8mzsf svg{fill:white;height:1em;width:1em;margin-right:1em;}@media (min-width:50rem){.CheckoutButton_c1a8mzsf{max-width:100%;}}.CheckoutButton_c1a8mzsf:disabled{border:1px solid #dedede;opacity:0.5;}.CheckoutButton_c1a8mzsf.secondary{background-color:white;border:1px solid #333;color:#333;}.CheckoutButton_c1a8mzsf.secondary circle.path{stroke:black;}
|
|
3
3
|
.ProductImageWrapper_p1i58doo{width:5rem;margin-right:1rem;}
|
|
4
4
|
.ProductCheckoutContainer_pjx0jqi{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%;width:100%;}.ProductCheckoutContainer_pjx0jqi a{-webkit-text-decoration:none;text-decoration:none;}.ProductCheckoutContainer_pjx0jqi a:hover{opacity:0.8;-webkit-text-decoration:none;text-decoration:none;color:white;}
|
|
5
5
|
.Product_p3e3eyv{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;margin:16px;}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.Button_bsyf8ar{background-color
|
|
2
|
-
.TrendABase_t168987g{background-color
|
|
3
|
-
.TrendLinkBase_t15bfm3m{background-color
|
|
1
|
+
.Button_bsyf8ar{background-color:pink;border-color:#146DE1;color:white;font-size:16px;border-radius:4px;padding:0.5rem 1rem;height:54px;}.Button_bsyf8ar span{margin-right:12px;}.Button_bsyf8ar svg{fill:white;height:1em;width:1em;margin-right:1em;}@media (min-width:50rem){.Button_bsyf8ar{max-width:100%;}}.Button_bsyf8ar:disabled{border:1px solid #dedede;opacity:0.5;}.Button_bsyf8ar.secondary{background-color:white;border:1px solid #333;color:#333;}.Button_bsyf8ar.secondary circle.path{stroke:black;}
|
|
2
|
+
.TrendABase_t168987g{background-color:pink;border-color:#146DE1;color:white;font-size:16px;border-radius:4px;padding:0.5rem 1rem;height:54px;-webkit-text-decoration:none;text-decoration:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:54px;color:pink;}.TrendABase_t168987g span{margin-right:12px;}.TrendABase_t168987g svg{fill:white;height:1em;width:1em;margin-right:1em;}@media (min-width:50rem){.TrendABase_t168987g{max-width:100%;}}.TrendABase_t168987g:disabled{border:1px solid #dedede;opacity:0.5;}.TrendABase_t168987g.secondary{background-color:white;border:1px solid #333;color:#333;}.TrendABase_t168987g.secondary circle.path{stroke:black;}
|
|
3
|
+
.TrendLinkBase_t15bfm3m{background-color:pink;border-color:#146DE1;color:white;font-size:16px;border-radius:4px;padding:0.5rem 1rem;height:54px;-webkit-text-decoration:none;text-decoration:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:54px;}.TrendLinkBase_t15bfm3m span{margin-right:12px;}.TrendLinkBase_t15bfm3m svg{fill:white;height:1em;width:1em;margin-right:1em;}@media (min-width:50rem){.TrendLinkBase_t15bfm3m{max-width:100%;}}.TrendLinkBase_t15bfm3m:disabled{border:1px solid #dedede;opacity:0.5;}.TrendLinkBase_t15bfm3m.secondary{background-color:white;border:1px solid #333;color:#333;}.TrendLinkBase_t15bfm3m.secondary circle.path{stroke:black;}
|
|
4
4
|
.StyledSpinner_s1yqqynf.Spinner_s281cpt{height:25px;}.StyledSpinner_s1yqqynf.Spinner_s281cpt circle.path{stroke:white;}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetshop/template-trend",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.17.0-alpha.08e0c644",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "react-scripts build",
|
|
@@ -45,15 +45,16 @@
|
|
|
45
45
|
]
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@jetshop/core": "^5.
|
|
48
|
+
"@jetshop/core": "^5.17.0-alpha.08e0c644",
|
|
49
49
|
"@jetshop/flight-shortcodes": "^2.0.10",
|
|
50
|
-
"@jetshop/intl": "^5.
|
|
51
|
-
"@jetshop/react-scripts": "^5.
|
|
52
|
-
"@jetshop/ui": "^5.
|
|
50
|
+
"@jetshop/intl": "^5.17.0-alpha.08e0c644",
|
|
51
|
+
"@jetshop/react-scripts": "^5.17.0-alpha.08e0c644",
|
|
52
|
+
"@jetshop/ui": "^5.17.0-alpha.08e0c644",
|
|
53
53
|
"@react-google-maps/api": "~1.7.0",
|
|
54
54
|
"prop-types": "^15.6.2",
|
|
55
|
-
"react": "^
|
|
56
|
-
"react-
|
|
55
|
+
"react": "^18",
|
|
56
|
+
"react-apollo": "^3.1.5",
|
|
57
|
+
"react-dom": "^18",
|
|
57
58
|
"react-modal": "^3.4.5",
|
|
58
59
|
"react-slider": "^1.1.4",
|
|
59
60
|
"striptags": "^3.1.1"
|
|
@@ -127,7 +127,9 @@ const CampaignContent = ({
|
|
|
127
127
|
<TextColumn className={className}>
|
|
128
128
|
<Title>{header.value}</Title>
|
|
129
129
|
<Description>{text.value}</Description>
|
|
130
|
-
|
|
130
|
+
{buttonLink.value && (
|
|
131
|
+
<StyledButton to={buttonLink.value}>{buttonText.value}</StyledButton>
|
|
132
|
+
)}
|
|
131
133
|
</TextColumn>
|
|
132
134
|
);
|
|
133
135
|
|
|
@@ -8,7 +8,7 @@ import { theme } from '../Theme';
|
|
|
8
8
|
import { isRelativeUrl } from '@jetshop/core/helpers/isRelativeUrl';
|
|
9
9
|
|
|
10
10
|
export const baseStyles = `
|
|
11
|
-
background-color:
|
|
11
|
+
background-color: pink;
|
|
12
12
|
border-color: ${theme.colors.blue};
|
|
13
13
|
color: white;
|
|
14
14
|
font-size: 16px;
|
|
@@ -55,6 +55,7 @@ const TrendABase = styled('a')`
|
|
|
55
55
|
justify-content: center;
|
|
56
56
|
align-items: center;
|
|
57
57
|
height: 54px;
|
|
58
|
+
color: pink;
|
|
58
59
|
`;
|
|
59
60
|
|
|
60
61
|
const TrendLinkBase = styled(Link)`
|