@orangesk/orange-design-system 2.0.0-beta.14 → 2.0.0-beta.16
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/components/index.js +2 -2
- package/build/components/index.js.map +1 -1
- package/build/components/tsconfig.tsbuildinfo +1 -1
- package/build/components/types/index.d.ts +11 -8
- package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.d.ts +1 -1
- package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.static.d.ts +1 -0
- package/build/components/types/src/components/BodyBanner/BodyBanner.d.ts +1 -1
- package/build/components/types/src/components/Button/index.d.ts +3 -4
- package/build/components/types/src/components/FeatureAccordion/FeatureAccordion.d.ts +1 -1
- package/build/components/types/src/components/Forms/Select/index.d.ts +1 -1
- package/build/components/types/src/components/Grid/GridCol.d.ts +1 -1
- package/build/components/types/src/components/Icon/IconSearch.d.ts +2 -2
- package/build/components/types/src/components/Icon/IconSearchWrapper.d.ts +1 -1
- package/build/components/types/src/components/Link/Link.d.ts +2 -0
- package/build/components/types/src/components/Megamenu/Megamenu.d.ts +1 -1
- package/build/components/types/src/components/Megamenu/MegamenuBlog.d.ts +1 -1
- package/build/components/types/src/components/Pagination/Separator.d.ts +2 -2
- package/build/components/types/src/components/Preview/Preview.d.ts +1 -1
- package/build/components/types/src/components/Preview/index.d.ts +1 -1
- package/build/components/types/src/components/PromoBanner/PromoBanner.d.ts +1 -1
- package/build/components/types/src/components/Table/Row.d.ts +1 -2
- package/build/components/types/src/components/Tooltip/tests/BaseWrapper.d.ts +1 -1
- package/build/components/types/src/docs/utils/SpacePreview.d.ts +1 -2
- package/build/components/types/src/scripts/modules/SameHeight.d.ts +3 -0
- package/build/components/types/src/styles/export/color.d.ts +23 -0
- package/build/lib/after-components.css +1 -1
- package/build/lib/after-components.css.map +1 -1
- package/build/lib/before-components.css +1 -1
- package/build/lib/before-components.css.map +1 -1
- package/build/lib/components.css +1 -1
- package/build/lib/components.css.map +1 -1
- package/build/lib/megamenu.css +1 -1
- package/build/lib/megamenu.css.map +1 -1
- package/build/lib/scripts.js +3 -3
- package/build/lib/scripts.js.map +1 -1
- package/build/lib/style.css +1 -1
- package/build/lib/style.css.map +1 -1
- package/build/lib/tsconfig.tsbuildinfo +1 -1
- package/build/sprite.svg +1 -1
- package/package.json +13 -13
- package/src/assets/icons/play.svg +4 -1
- package/src/components/Accordion/AccordionItem.tsx +1 -0
- package/src/components/Accordion/styles/config.scss +3 -2
- package/src/components/Accordion/styles/mixins.scss +2 -1
- package/src/components/Alert/styles/config.scss +1 -1
- package/src/components/AnchorNavigation/AnchorNavigation.static.ts +49 -7
- package/src/components/Bar/styles/mixins.scss +11 -11
- package/src/components/BodyBanner/styles/mixins.scss +5 -1
- package/src/components/Button/styles/config.scss +0 -1
- package/src/components/Button/styles/mixins.scss +1 -1
- package/src/components/Buttons/styles/mixins.scss +1 -1
- package/src/components/Card/styles/config.scss +1 -1
- package/src/components/Carousel/styles/mixins.scss +1 -1
- package/src/components/CarouselHero/styles/mixins.scss +1 -1
- package/src/components/CarouselPromotions/styles/mixins.scss +3 -3
- package/src/components/DocumentationSidebar/styles/style.scss +3 -3
- package/src/components/Expander/styles/style.scss +2 -2
- package/src/components/FeatureAccordion/tests/FeatureAccordion.conformance.test.js +1 -0
- package/src/components/Forms/Field/styles/config.scss +8 -8
- package/src/components/Forms/Fieldset/styles/mixins.scss +3 -3
- package/src/components/Gauge/styles/style.scss +1 -1
- package/src/components/IconList/styles/mixins.scss +5 -5
- package/src/components/Image/styles/mixins.scss +2 -2
- package/src/components/Link/Link.tsx +4 -0
- package/src/components/Link/styles/style.scss +8 -1
- package/src/components/List/styles/config.scss +12 -12
- package/src/components/List/styles/mixins.scss +16 -9
- package/src/components/Pagination/styles/mixins.scss +1 -1
- package/src/components/Progress/styles/config.scss +4 -4
- package/src/components/PromotionCard/styles/mixins.scss +1 -1
- package/src/components/Stepbar/styles/mixins.scss +1 -1
- package/src/components/Table/styles/mixins.scss +1 -1
- package/src/components/Tabs/styles/mixins.scss +1 -1
- package/src/components/Tag/styles/config.scss +18 -22
- package/src/components/Tag/styles/style.scss +1 -1
- package/src/styles/base/globals-forms.scss +8 -0
- package/src/styles/base/globals.scss +8 -1
- package/src/styles/export/color.js +1 -1
- package/src/styles/tokens/color.scss +1 -1
- package/src/styles/tokens/tag-colors.scss +20 -0
- package/src/styles/typography/config.scss +1 -1
- package/src/styles/typography/mixins.scss +5 -5
- package/src/styles/utilities/horizontal-scroll.scss +1 -1
- package/src/styles/utilities/layout.scss +1 -2
- package/build/components/index.css +0 -2
- package/build/components/index.css.map +0 -1
- package/build/lib/scripts.css +0 -2
- package/build/lib/scripts.css.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
|
-
@use
|
|
3
|
-
@use
|
|
4
|
-
@use
|
|
5
|
-
@use
|
|
2
|
+
@use "../../../styles/tokens/space";
|
|
3
|
+
@use "../../../styles/tools/generate";
|
|
4
|
+
@use "../../../styles/typography/mixins" as typoMixins;
|
|
5
|
+
@use "./config";
|
|
6
6
|
|
|
7
7
|
@mixin list-base($border: config.$border) {
|
|
8
8
|
@include typoMixins.list-unstyled;
|
|
9
9
|
|
|
10
|
-
margin-bottom: space.get();
|
|
10
|
+
margin-bottom: space.get("large");
|
|
11
11
|
|
|
12
12
|
> * {
|
|
13
13
|
border-top: $border;
|
|
@@ -52,6 +52,13 @@
|
|
|
52
52
|
@mixin enclosed-item($spacing: config.$enclosed-spacing) {
|
|
53
53
|
padding-left: $spacing;
|
|
54
54
|
padding-right: $spacing;
|
|
55
|
+
|
|
56
|
+
&:first-child {
|
|
57
|
+
border-top-width: 0;
|
|
58
|
+
}
|
|
59
|
+
&:last-child {
|
|
60
|
+
border-bottom-width: 0;
|
|
61
|
+
}
|
|
55
62
|
}
|
|
56
63
|
|
|
57
64
|
@mixin control($config: config.$control-states) {
|
|
@@ -60,18 +67,18 @@
|
|
|
60
67
|
width: 100%;
|
|
61
68
|
text-align: left;
|
|
62
69
|
|
|
63
|
-
@include generate.css-map($config,
|
|
70
|
+
@include generate.css-map($config, "default");
|
|
64
71
|
|
|
65
72
|
&:hover {
|
|
66
|
-
@include generate.css-map($config,
|
|
73
|
+
@include generate.css-map($config, "hover");
|
|
67
74
|
}
|
|
68
75
|
|
|
69
76
|
&:focus {
|
|
70
|
-
@include generate.css-map($config,
|
|
77
|
+
@include generate.css-map($config, "hover");
|
|
71
78
|
}
|
|
72
79
|
|
|
73
80
|
&::before {
|
|
74
|
-
content:
|
|
81
|
+
content: "";
|
|
75
82
|
position: absolute;
|
|
76
83
|
top: 0;
|
|
77
84
|
left: 0;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
1
|
+
@use "../../../styles/tokens/color";
|
|
2
|
+
@use "../../../styles/tokens/space";
|
|
3
3
|
|
|
4
4
|
$layout: (
|
|
5
|
-
margin-bottom: space.get(),
|
|
5
|
+
margin-bottom: space.get("large"),
|
|
6
6
|
);
|
|
7
7
|
|
|
8
8
|
$bar: (
|
|
9
|
-
height: space.get(
|
|
9
|
+
height: space.get("small"),
|
|
10
10
|
background-color: var(--color-fill-moderate),
|
|
11
11
|
);
|
|
12
12
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use "../../../styles/tokens/space";
|
|
2
|
-
@use "../../../styles/tokens/color";
|
|
3
2
|
@use "../../../styles/tools/convert";
|
|
4
3
|
@use "sass:map";
|
|
5
4
|
|
|
@@ -46,43 +45,40 @@ $colors: (
|
|
|
46
45
|
color: var(--color-text-default),
|
|
47
46
|
),
|
|
48
47
|
"orange": (
|
|
49
|
-
background-color:
|
|
50
|
-
color:
|
|
48
|
+
background-color: var(--tag-orange),
|
|
49
|
+
color: var(--tag-text-dark),
|
|
51
50
|
),
|
|
52
51
|
"black": (
|
|
53
|
-
background-color:
|
|
54
|
-
color:
|
|
52
|
+
background-color: var(--tag-black),
|
|
53
|
+
color: var(--tag-text-light),
|
|
55
54
|
),
|
|
56
55
|
"yellow": (
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
color: color.$black,
|
|
56
|
+
background-color: var(--tag-yellow),
|
|
57
|
+
color: var(--tag-text-dark),
|
|
60
58
|
),
|
|
61
59
|
"green": (
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
color: color.$black,
|
|
60
|
+
background-color: var(--tag-green),
|
|
61
|
+
color: var(--tag-text-dark),
|
|
65
62
|
),
|
|
66
63
|
"blue": (
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
color: color.$black,
|
|
64
|
+
background-color: var(--tag-blue),
|
|
65
|
+
color: var(--tag-text-dark),
|
|
70
66
|
),
|
|
71
67
|
"success": (
|
|
72
|
-
background-color:
|
|
73
|
-
color:
|
|
68
|
+
background-color: var(--tag-success),
|
|
69
|
+
color: var(--tag-text-light),
|
|
74
70
|
),
|
|
75
71
|
"danger": (
|
|
76
|
-
background-color:
|
|
77
|
-
color:
|
|
72
|
+
background-color: var(--tag-danger),
|
|
73
|
+
color: var(--tag-text-light),
|
|
78
74
|
),
|
|
79
75
|
"info": (
|
|
80
|
-
background-color:
|
|
81
|
-
color:
|
|
76
|
+
background-color: var(--tag-info),
|
|
77
|
+
color: var(--tag-text-light),
|
|
82
78
|
),
|
|
83
79
|
"warning": (
|
|
84
|
-
background-color:
|
|
85
|
-
color:
|
|
80
|
+
background-color: var(--tag-warning),
|
|
81
|
+
color: var(--tag-text-dark),
|
|
86
82
|
),
|
|
87
83
|
"transparent": (
|
|
88
84
|
background-color: transparent,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use "../tokens/base";
|
|
2
2
|
@use "../tokens/space";
|
|
3
3
|
@use "../tokens/color";
|
|
4
|
+
@use "../tokens/tag-colors";
|
|
4
5
|
|
|
5
6
|
// Consider to add more conditions for light and dark themes
|
|
6
7
|
:root,
|
|
@@ -15,6 +16,9 @@
|
|
|
15
16
|
@each $name, $value in color.$colors-light {
|
|
16
17
|
--color-#{$name}: #{$value};
|
|
17
18
|
}
|
|
19
|
+
@each $name, $value in tag-colors.$tag-colors-light {
|
|
20
|
+
--#{$name}: #{$value};
|
|
21
|
+
}
|
|
18
22
|
color: var(--color-text-default);
|
|
19
23
|
}
|
|
20
24
|
|
|
@@ -28,6 +32,9 @@
|
|
|
28
32
|
@each $name, $value in color.$colors-dark {
|
|
29
33
|
--color-#{$name}: #{$value};
|
|
30
34
|
}
|
|
35
|
+
@each $name, $value in tag-colors.$tag-colors-dark {
|
|
36
|
+
--#{$name}: #{$value};
|
|
37
|
+
}
|
|
31
38
|
color: var(--color-text-default);
|
|
32
39
|
}
|
|
33
40
|
|
|
@@ -162,7 +169,7 @@ table {
|
|
|
162
169
|
}
|
|
163
170
|
|
|
164
171
|
blockquote {
|
|
165
|
-
margin: 0 0 space.get("
|
|
172
|
+
margin: 0 0 space.get("large") 0;
|
|
166
173
|
}
|
|
167
174
|
|
|
168
175
|
th {
|
|
@@ -124,7 +124,7 @@ $gray-300: map.get($colors-light, surface-subtle);
|
|
|
124
124
|
$gray-400: #ddd; // fallback
|
|
125
125
|
$gray-500: map.get($colors-light, surface-moderate);
|
|
126
126
|
$gray-600: #999; // fallback
|
|
127
|
-
$gray-700:
|
|
127
|
+
$gray-700: map.get($colors-light, text-secondary); // fallback
|
|
128
128
|
$gray-800: #595959; // fallback
|
|
129
129
|
$gray-900: #333; // fallback
|
|
130
130
|
$success: map.get($colors-light, fill-positive);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Tag-specific color palette for variants that exist outside the main semantic system.
|
|
2
|
+
// Tags intentionally keep the same colors in both light and dark themes, so we expose
|
|
3
|
+
// a shared palette that is applied regardless of theme context.
|
|
4
|
+
|
|
5
|
+
$tag-shared-tag-colors: (
|
|
6
|
+
tag-orange: #ffc48f,
|
|
7
|
+
tag-black: #333333,
|
|
8
|
+
tag-yellow: #fff6b6,
|
|
9
|
+
tag-green: #b8ebd6,
|
|
10
|
+
tag-blue: #b5e8f7,
|
|
11
|
+
tag-success: #228722,
|
|
12
|
+
tag-danger: #cd3c14,
|
|
13
|
+
tag-info: #4170d8,
|
|
14
|
+
tag-warning: #ffcc00,
|
|
15
|
+
tag-text-dark: #000000,
|
|
16
|
+
tag-text-light: #ffffff,
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
$tag-colors-light: $tag-shared-tag-colors;
|
|
20
|
+
$tag-colors-dark: $tag-shared-tag-colors;
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
@mixin body-text($config) {
|
|
47
47
|
p {
|
|
48
48
|
margin-top: 0;
|
|
49
|
-
margin-bottom: space.get();
|
|
49
|
+
margin-bottom: space.get("large");
|
|
50
50
|
// Default štýly pre všetky p elementy
|
|
51
51
|
@include generate.responsive-css-map($config);
|
|
52
52
|
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
hr {
|
|
81
|
-
margin-top: space.get();
|
|
82
|
-
margin-bottom: space.get();
|
|
81
|
+
margin-top: space.get("large");
|
|
82
|
+
margin-bottom: space.get("large");
|
|
83
83
|
border: 0;
|
|
84
84
|
border-top: 1px solid var(--color-border-subtle);
|
|
85
85
|
}
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
@mixin list-base() {
|
|
115
|
-
margin: 0 0 space.get() 0;
|
|
115
|
+
margin: 0 0 space.get("large") 0;
|
|
116
116
|
padding-left: space.get("large");
|
|
117
117
|
@include text-readable;
|
|
118
118
|
// Apply the same font styles as paragraphs
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
}
|
|
195
195
|
dd {
|
|
196
196
|
margin-left: 0;
|
|
197
|
-
margin-bottom:
|
|
197
|
+
margin-bottom: space.get("large");
|
|
198
198
|
|
|
199
199
|
&:last-child {
|
|
200
200
|
margin-bottom: 0;
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
|
|
192
192
|
.fullwidth-xs-only {
|
|
193
193
|
@include breakpoint.get("xs", "only") {
|
|
194
|
-
|
|
194
|
+
width: 100% !important;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
|
|
@@ -207,7 +207,6 @@
|
|
|
207
207
|
|
|
208
208
|
@include block-classes();
|
|
209
209
|
|
|
210
|
-
|
|
211
210
|
@mixin position-classes {
|
|
212
211
|
.relative {
|
|
213
212
|
position: relative !important;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
:export{orange:#f15e00;orange-dark:#f15e00;black:#000;white:#fff;blue:#4bb4e6;green:#50be87;pink:#ffb4e6;violet:#a885d8;yellow:#ffd200;gray-300:#eee;gray-400:#ddd;gray-500:#ddd;gray-600:#999;gray-700:#666;gray-800:#595959;gray-900:#333;success:rgba(34,135,34,.078);danger:rgba(205,60,20,.078);info:rgba(65,112,216,.078);warning:rgba(255,204,0,.078)}
|
|
2
|
-
/*# sourceMappingURL=index.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["color.scss"],"names":[],"mappings":"AAAA,QACE,cAAe,CACf,mBAAoB,CACpB,UAAc,CACd,UAAc,CACd,YAAa,CACb,aAAc,CACd,YAAa,CACb,cAAe,CACf,cAAe,CACf,aAAiB,CACjB,aAAc,CACd,aAAiB,CACjB,aAAc,CACd,aAAc,CACd,gBAAiB,CACjB,aAAc,CACd,4BAAwC,CACxC,2BAAuC,CACvC,0BAAsC,CACtC,4BACF","file":"index.css","sourcesContent":[":export {\n orange: #f15e00;\n orange-dark: #f15e00;\n black: #000000;\n white: #ffffff;\n blue: #4bb4e6;\n green: #50be87;\n pink: #ffb4e6;\n violet: #a885d8;\n yellow: #ffd200;\n gray-300: #eeeeee;\n gray-400: #ddd;\n gray-500: #dddddd;\n gray-600: #999;\n gray-700: #666;\n gray-800: #595959;\n gray-900: #333;\n success: rgba(34, 135, 34, 0.0784313725);\n danger: rgba(205, 60, 20, 0.0784313725);\n info: rgba(65, 112, 216, 0.0784313725);\n warning: rgba(255, 204, 0, 0.0784313725);\n}"]}
|
package/build/lib/scripts.css
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
:export{orange:#f15e00;orange-dark:#f15e00;black:#000;white:#fff;blue:#4bb4e6;green:#50be87;pink:#ffb4e6;violet:#a885d8;yellow:#ffd200;gray-300:#eee;gray-400:#ddd;gray-500:#ddd;gray-600:#999;gray-700:#666;gray-800:#595959;gray-900:#333;success:rgba(34,135,34,.078);danger:rgba(205,60,20,.078);info:rgba(65,112,216,.078);warning:rgba(255,204,0,.078)}
|
|
2
|
-
/*# sourceMappingURL=scripts.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["color.scss"],"names":[],"mappings":"AAAA,QACE,cAAe,CACf,mBAAoB,CACpB,UAAc,CACd,UAAc,CACd,YAAa,CACb,aAAc,CACd,YAAa,CACb,cAAe,CACf,cAAe,CACf,aAAiB,CACjB,aAAc,CACd,aAAiB,CACjB,aAAc,CACd,aAAc,CACd,gBAAiB,CACjB,aAAc,CACd,4BAAwC,CACxC,2BAAuC,CACvC,0BAAsC,CACtC,4BACF","file":"scripts.css","sourcesContent":[":export {\n orange: #f15e00;\n orange-dark: #f15e00;\n black: #000000;\n white: #ffffff;\n blue: #4bb4e6;\n green: #50be87;\n pink: #ffb4e6;\n violet: #a885d8;\n yellow: #ffd200;\n gray-300: #eeeeee;\n gray-400: #ddd;\n gray-500: #dddddd;\n gray-600: #999;\n gray-700: #666;\n gray-800: #595959;\n gray-900: #333;\n success: rgba(34, 135, 34, 0.0784313725);\n danger: rgba(205, 60, 20, 0.0784313725);\n info: rgba(65, 112, 216, 0.0784313725);\n warning: rgba(255, 204, 0, 0.0784313725);\n}"]}
|