@orangesk/orange-design-system 1.10.6 → 1.11.0
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.bcec161b6e91c0dcdd3c56db0841babe.js} +10 -10
- package/build/{precache-manifest.41fe7ee664de69b19f27337151b2be8b.js → precache-manifest.bf99fc5050abfcf4f6af584e5a612315.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 +5 -42
- 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
|
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
user-select: none;
|
|
103
103
|
background-color: color.$white;
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
&--black {
|
|
106
106
|
background-color: color.$black;
|
|
107
107
|
color: color.$white !important;
|
|
108
108
|
}
|
|
@@ -134,11 +134,11 @@
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
@mixin slide-base-inverse {
|
|
137
|
-
|
|
137
|
+
color: color.$black !important;
|
|
138
138
|
|
|
139
|
-
|
|
140
|
-
background-color: color.$
|
|
141
|
-
color: color.$
|
|
139
|
+
&--black {
|
|
140
|
+
background-color: color.$black;
|
|
141
|
+
color: color.$white !important;
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
|
|
@@ -227,43 +227,6 @@
|
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
|
|
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
230
|
@mixin pagination {
|
|
268
231
|
user-select: none;
|
|
269
232
|
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
|
}
|