@orangesk/orange-design-system 1.10.6 → 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/app.css +1 -1
- package/build/app.css.map +1 -1
- package/build/app.js +1 -1
- package/build/app.js.map +1 -1
- package/build/asset-manifest.json +1 -1
- package/build/components/CarouselPromotions/index.js +1 -1
- package/build/components/CarouselPromotions/index.js.map +1 -1
- package/build/components/CarouselPromotions/style.css +1 -1
- package/build/components/CarouselPromotions/style.css.map +1 -1
- package/build/components/Forms/Field/style.css +1 -1
- package/build/components/Forms/Field/style.css.map +1 -1
- package/build/components/Forms/TextArea/style.css +1 -1
- package/build/components/Forms/TextArea/style.css.map +1 -1
- package/build/components/Forms/style.css +1 -1
- package/build/components/Forms/style.css.map +1 -1
- package/build/components/index.js +1 -1
- package/build/components/index.js.map +1 -1
- package/build/components/style.css +1 -1
- package/build/components/style.css.map +1 -1
- package/build/index.css +1 -1
- package/build/index.css.map +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/lib/components.css +1 -1
- package/build/lib/components.css.map +1 -1
- package/build/lib/scripts.js +1 -1
- package/build/lib/style.css +1 -1
- package/build/lib/style.css.map +1 -1
- package/build/{precache-manifest.6ead0695f63a9b75a511c1b917e4a543.js → precache-manifest.d2263c4c50409296e89d80b99f93c1e5.js} +10 -10
- package/build/{precache-manifest.41fe7ee664de69b19f27337151b2be8b.js → precache-manifest.fe9d47172d662d74780b6e8d4ff660f6.js} +12 -12
- package/build/service-worker.js +1 -1
- package/build/static.js +1 -1
- package/package.json +1 -1
- package/src/components/CarouselPromotions/CarouselPromotions.mdx +39 -53
- package/src/components/CarouselPromotions/CarouselPromotionsItem.js +8 -2
- package/src/components/CarouselPromotions/styles/mixins.scss +10 -50
- package/src/components/CarouselPromotions/styles/style.scss +0 -21
- package/src/components/Forms/TextArea/TextArea.mdx +1 -1
- package/src/components/Forms/TextArea/styles/config.scss +1 -0
- package/src/components/Forms/TextInput/TextInput.mdx +1 -1
package/package.json
CHANGED
|
@@ -14,65 +14,47 @@ import phones from '../../assets/images/developers/phones.png';
|
|
|
14
14
|
import { defaultConfig } from './CarouselPromotions.static.js';
|
|
15
15
|
import Icon from '../Icon';
|
|
16
16
|
|
|
17
|
-
export const SlideExample = ({
|
|
18
|
-
<
|
|
19
|
-
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
subtitle="Orange je tu, aby ste mohli používať internet bezpečne a bez obáv."
|
|
25
|
-
/>
|
|
26
|
-
) : (
|
|
27
|
-
<CarouselPromotionsItem
|
|
28
|
-
{...props}
|
|
29
|
-
image={<Image src={phones} alt="iPhone image" />}
|
|
30
|
-
title="Online ochrana pre váš digitálny svet"
|
|
31
|
-
subtitle="Orange je tu, aby ste mohli používať internet bezpečne a bez obáv."
|
|
32
|
-
/>
|
|
33
|
-
)}
|
|
34
|
-
</React.Fragment>
|
|
17
|
+
export const SlideExample = ({ ...props }) => (
|
|
18
|
+
<CarouselPromotionsItem
|
|
19
|
+
{...props}
|
|
20
|
+
image={<Image src={phones} alt="Two phones" />}
|
|
21
|
+
title="Online ochrana pre váš digitálny svet"
|
|
22
|
+
subtitle="Orange je tu, aby ste mohli používať internet bezpečne a bez obáv."
|
|
23
|
+
/>
|
|
35
24
|
);
|
|
36
25
|
|
|
37
26
|
export const SlideExamplePictureTag = ({ num, ...props }) => (
|
|
38
|
-
<
|
|
39
|
-
{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}}
|
|
48
|
-
alt="Two phones"
|
|
49
|
-
/>
|
|
50
|
-
}
|
|
51
|
-
title="Online ochrana pre váš digitálny svet"
|
|
52
|
-
subtitle="Orange je tu, aby ste mohli používať internet bezpečne a bez obáv."
|
|
27
|
+
<CarouselPromotionsItem
|
|
28
|
+
{...props}
|
|
29
|
+
image={
|
|
30
|
+
<Image
|
|
31
|
+
src={{
|
|
32
|
+
default: phones,
|
|
33
|
+
lg: phones,
|
|
34
|
+
}}
|
|
35
|
+
alt="Two phones"
|
|
53
36
|
/>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
<Image
|
|
59
|
-
src={{
|
|
60
|
-
default: phones,
|
|
61
|
-
lg: phones,
|
|
62
|
-
}}
|
|
63
|
-
alt="iPhone image"
|
|
64
|
-
/>
|
|
65
|
-
}
|
|
66
|
-
title="Končí vám viazanosť. Čas na nový telefón!"
|
|
67
|
-
subtitle="Vyberte si nové zariadenie s bonusom až do 440 €. "
|
|
68
|
-
/>
|
|
69
|
-
)}
|
|
70
|
-
</React.Fragment>
|
|
37
|
+
}
|
|
38
|
+
title="Online ochrana pre váš digitálny svet"
|
|
39
|
+
subtitle="Orange je tu, aby ste mohli používať internet bezpečne a bez obáv."
|
|
40
|
+
/>
|
|
71
41
|
);
|
|
72
42
|
|
|
73
43
|
export const imageItems = Array(4)
|
|
74
44
|
.fill()
|
|
75
|
-
.map((_, index) =>
|
|
45
|
+
.map((_, index) => (
|
|
46
|
+
<SlideExample
|
|
47
|
+
key={index.toString()}
|
|
48
|
+
num={index}
|
|
49
|
+
color={index === 0 && 'black'}
|
|
50
|
+
/>
|
|
51
|
+
));
|
|
52
|
+
|
|
53
|
+
export const imageDarkItems = Array(4)
|
|
54
|
+
.fill()
|
|
55
|
+
.map((_, index) => (
|
|
56
|
+
<SlideExample key={index.toString()} color={index === 0 && 'black'} />
|
|
57
|
+
));
|
|
76
58
|
|
|
77
59
|
export const imageItemsWithHref = Array(4)
|
|
78
60
|
.fill()
|
|
@@ -81,13 +63,17 @@ export const imageItemsWithHref = Array(4)
|
|
|
81
63
|
key={index.toString()}
|
|
82
64
|
num={index}
|
|
83
65
|
href={'#carousel-for-promotions'}
|
|
66
|
+
color={index === 0 && 'black'}
|
|
84
67
|
/>
|
|
85
68
|
));
|
|
86
69
|
|
|
87
70
|
export const imageItemsWithPicture = Array(4)
|
|
88
71
|
.fill()
|
|
89
72
|
.map((_, index) => (
|
|
90
|
-
<SlideExamplePictureTag
|
|
73
|
+
<SlideExamplePictureTag
|
|
74
|
+
key={index.toString()}
|
|
75
|
+
color={index === 0 && 'black'}
|
|
76
|
+
/>
|
|
91
77
|
));
|
|
92
78
|
|
|
93
79
|
# Carousel for promotions
|
|
@@ -102,7 +88,7 @@ export const imageItemsWithPicture = Array(4)
|
|
|
102
88
|
|
|
103
89
|
<Preview>
|
|
104
90
|
<CarouselPromotions isInverse id="carousel-dark">
|
|
105
|
-
{
|
|
91
|
+
{imageDarkItems}
|
|
106
92
|
</CarouselPromotions>
|
|
107
93
|
</Preview>
|
|
108
94
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cx from 'classnames';
|
|
3
|
-
import { element, string, node } from 'prop-types';
|
|
3
|
+
import { element, string, node, oneOf } from 'prop-types';
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
CLASS_SLIDE,
|
|
@@ -17,6 +17,7 @@ const propTypes = {
|
|
|
17
17
|
image: element,
|
|
18
18
|
subtitle: string,
|
|
19
19
|
title: string,
|
|
20
|
+
color: oneOf(['black']),
|
|
20
21
|
};
|
|
21
22
|
|
|
22
23
|
const CarouselPromotionsItem = ({
|
|
@@ -26,9 +27,14 @@ const CarouselPromotionsItem = ({
|
|
|
26
27
|
image,
|
|
27
28
|
title,
|
|
28
29
|
subtitle,
|
|
30
|
+
color,
|
|
29
31
|
...other
|
|
30
32
|
}) => {
|
|
31
|
-
const classes = cx(
|
|
33
|
+
const classes = cx(
|
|
34
|
+
CLASS_ROOT,
|
|
35
|
+
{ [`${CLASS_ROOT}--black`]: color === 'black' },
|
|
36
|
+
className
|
|
37
|
+
);
|
|
32
38
|
|
|
33
39
|
const Tag = href ? 'a' : 'div';
|
|
34
40
|
|
|
@@ -95,14 +95,12 @@
|
|
|
95
95
|
|
|
96
96
|
@mixin slide-base {
|
|
97
97
|
display: flex;
|
|
98
|
-
gap: space.get('small');
|
|
99
98
|
max-width: 100%;
|
|
100
99
|
flex: 0 0 auto;
|
|
101
|
-
padding: space.get('small');
|
|
102
100
|
user-select: none;
|
|
103
101
|
background-color: color.$white;
|
|
104
102
|
|
|
105
|
-
|
|
103
|
+
&--black {
|
|
106
104
|
background-color: color.$black;
|
|
107
105
|
color: color.$white !important;
|
|
108
106
|
}
|
|
@@ -112,16 +110,10 @@
|
|
|
112
110
|
}
|
|
113
111
|
|
|
114
112
|
@include breakpoint.get('md') {
|
|
115
|
-
padding: space.get('medium') convert.to-rem(50px) space.get('medium')
|
|
116
|
-
space.get('medium');
|
|
117
113
|
flex-direction: row-reverse;
|
|
118
114
|
justify-content: space-between;
|
|
119
115
|
}
|
|
120
116
|
|
|
121
|
-
@include breakpoint.get('lg') {
|
|
122
|
-
padding-right: convert.to-rem(100px);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
117
|
&:is(a) {
|
|
126
118
|
cursor: pointer;
|
|
127
119
|
&,
|
|
@@ -134,11 +126,11 @@
|
|
|
134
126
|
}
|
|
135
127
|
|
|
136
128
|
@mixin slide-base-inverse {
|
|
137
|
-
|
|
129
|
+
color: color.$black !important;
|
|
138
130
|
|
|
139
|
-
|
|
140
|
-
background-color: color.$
|
|
141
|
-
color: color.$
|
|
131
|
+
&--black {
|
|
132
|
+
background-color: color.$black;
|
|
133
|
+
color: color.$white !important;
|
|
142
134
|
}
|
|
143
135
|
}
|
|
144
136
|
|
|
@@ -147,6 +139,7 @@
|
|
|
147
139
|
height: convert.to-rem(100px);
|
|
148
140
|
display: flex;
|
|
149
141
|
flex-shrink: 0;
|
|
142
|
+
margin: space.get('small');
|
|
150
143
|
|
|
151
144
|
picture,
|
|
152
145
|
img {
|
|
@@ -168,6 +161,7 @@
|
|
|
168
161
|
background-color: unset;
|
|
169
162
|
justify-content: end;
|
|
170
163
|
position: relative;
|
|
164
|
+
margin: 0 convert.to-rem(50px) 0 0;
|
|
171
165
|
|
|
172
166
|
img,
|
|
173
167
|
picture {
|
|
@@ -180,6 +174,7 @@
|
|
|
180
174
|
@include breakpoint.get('lg') {
|
|
181
175
|
width: convert.to-rem(200px);
|
|
182
176
|
height: convert.to-rem(200px);
|
|
177
|
+
margin-right: convert.to-rem(100px);
|
|
183
178
|
|
|
184
179
|
img,
|
|
185
180
|
picture {
|
|
@@ -215,6 +210,7 @@
|
|
|
215
210
|
display: flex;
|
|
216
211
|
flex-direction: column;
|
|
217
212
|
align-items: flex-start;
|
|
213
|
+
padding: space.get('small') space.get('small') space.get('small') 0;
|
|
218
214
|
|
|
219
215
|
> *:last-child {
|
|
220
216
|
margin-bottom: 0;
|
|
@@ -224,46 +220,10 @@
|
|
|
224
220
|
height: 100%;
|
|
225
221
|
max-width: convert.to-rem(545px);
|
|
226
222
|
justify-content: space-between;
|
|
223
|
+
padding: space.get('medium');
|
|
227
224
|
}
|
|
228
225
|
}
|
|
229
226
|
|
|
230
|
-
@mixin button-base {
|
|
231
|
-
@include button-mixins.base(button-config.$base);
|
|
232
|
-
@include button-mixins.style(config.$button);
|
|
233
|
-
@include button-mixins.square-base();
|
|
234
|
-
@include button-mixins.square-size('default');
|
|
235
|
-
|
|
236
|
-
position: absolute;
|
|
237
|
-
top: 50%;
|
|
238
|
-
z-index: 10;
|
|
239
|
-
margin: 0;
|
|
240
|
-
border-radius: 100%;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
@mixin button-slide-inverted {
|
|
244
|
-
color: color.$white;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
@mixin button-slide-inverted-inverse {
|
|
248
|
-
color: color.$black;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
@mixin button-next {
|
|
252
|
-
width: config.$button-size !important;
|
|
253
|
-
height: config.$button-size !important;
|
|
254
|
-
right: space.get('small');
|
|
255
|
-
border: 0 !important;
|
|
256
|
-
transform: translateY(-50%);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
@mixin button-disabled {
|
|
260
|
-
@include generate.css-map(sass-map.get(button-config.$base, 'disabled'));
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
@mixin button-inverse {
|
|
264
|
-
@include button-mixins.style(config.$button-inverse);
|
|
265
|
-
}
|
|
266
|
-
|
|
267
227
|
@mixin pagination {
|
|
268
228
|
user-select: none;
|
|
269
229
|
display: flex;
|
|
@@ -35,27 +35,6 @@
|
|
|
35
35
|
@include mixins.slide-content;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
&__next {
|
|
39
|
-
@include mixins.button-next;
|
|
40
|
-
@include mixins.button-base;
|
|
41
|
-
|
|
42
|
-
&.is-disabled {
|
|
43
|
-
@include mixins.button-disabled;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.bg-black &__next {
|
|
48
|
-
@include mixins.button-inverse;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&--slide-inverted &__next {
|
|
52
|
-
@include mixins.button-slide-inverted;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&--slide-inverted.bg-black &__next {
|
|
56
|
-
@include mixins.button-slide-inverted-inverse;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
38
|
&__pagination {
|
|
60
39
|
@include mixins.pagination;
|
|
61
40
|
}
|