@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.
Files changed (88) hide show
  1. package/build/components/index.js +2 -2
  2. package/build/components/index.js.map +1 -1
  3. package/build/components/tsconfig.tsbuildinfo +1 -1
  4. package/build/components/types/index.d.ts +11 -8
  5. package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.d.ts +1 -1
  6. package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.static.d.ts +1 -0
  7. package/build/components/types/src/components/BodyBanner/BodyBanner.d.ts +1 -1
  8. package/build/components/types/src/components/Button/index.d.ts +3 -4
  9. package/build/components/types/src/components/FeatureAccordion/FeatureAccordion.d.ts +1 -1
  10. package/build/components/types/src/components/Forms/Select/index.d.ts +1 -1
  11. package/build/components/types/src/components/Grid/GridCol.d.ts +1 -1
  12. package/build/components/types/src/components/Icon/IconSearch.d.ts +2 -2
  13. package/build/components/types/src/components/Icon/IconSearchWrapper.d.ts +1 -1
  14. package/build/components/types/src/components/Link/Link.d.ts +2 -0
  15. package/build/components/types/src/components/Megamenu/Megamenu.d.ts +1 -1
  16. package/build/components/types/src/components/Megamenu/MegamenuBlog.d.ts +1 -1
  17. package/build/components/types/src/components/Pagination/Separator.d.ts +2 -2
  18. package/build/components/types/src/components/Preview/Preview.d.ts +1 -1
  19. package/build/components/types/src/components/Preview/index.d.ts +1 -1
  20. package/build/components/types/src/components/PromoBanner/PromoBanner.d.ts +1 -1
  21. package/build/components/types/src/components/Table/Row.d.ts +1 -2
  22. package/build/components/types/src/components/Tooltip/tests/BaseWrapper.d.ts +1 -1
  23. package/build/components/types/src/docs/utils/SpacePreview.d.ts +1 -2
  24. package/build/components/types/src/scripts/modules/SameHeight.d.ts +3 -0
  25. package/build/components/types/src/styles/export/color.d.ts +23 -0
  26. package/build/lib/after-components.css +1 -1
  27. package/build/lib/after-components.css.map +1 -1
  28. package/build/lib/before-components.css +1 -1
  29. package/build/lib/before-components.css.map +1 -1
  30. package/build/lib/components.css +1 -1
  31. package/build/lib/components.css.map +1 -1
  32. package/build/lib/megamenu.css +1 -1
  33. package/build/lib/megamenu.css.map +1 -1
  34. package/build/lib/scripts.js +3 -3
  35. package/build/lib/scripts.js.map +1 -1
  36. package/build/lib/style.css +1 -1
  37. package/build/lib/style.css.map +1 -1
  38. package/build/lib/tsconfig.tsbuildinfo +1 -1
  39. package/build/sprite.svg +1 -1
  40. package/package.json +13 -13
  41. package/src/assets/icons/play.svg +4 -1
  42. package/src/components/Accordion/AccordionItem.tsx +1 -0
  43. package/src/components/Accordion/styles/config.scss +3 -2
  44. package/src/components/Accordion/styles/mixins.scss +2 -1
  45. package/src/components/Alert/styles/config.scss +1 -1
  46. package/src/components/AnchorNavigation/AnchorNavigation.static.ts +49 -7
  47. package/src/components/Bar/styles/mixins.scss +11 -11
  48. package/src/components/BodyBanner/styles/mixins.scss +5 -1
  49. package/src/components/Button/styles/config.scss +0 -1
  50. package/src/components/Button/styles/mixins.scss +1 -1
  51. package/src/components/Buttons/styles/mixins.scss +1 -1
  52. package/src/components/Card/styles/config.scss +1 -1
  53. package/src/components/Carousel/styles/mixins.scss +1 -1
  54. package/src/components/CarouselHero/styles/mixins.scss +1 -1
  55. package/src/components/CarouselPromotions/styles/mixins.scss +3 -3
  56. package/src/components/DocumentationSidebar/styles/style.scss +3 -3
  57. package/src/components/Expander/styles/style.scss +2 -2
  58. package/src/components/FeatureAccordion/tests/FeatureAccordion.conformance.test.js +1 -0
  59. package/src/components/Forms/Field/styles/config.scss +8 -8
  60. package/src/components/Forms/Fieldset/styles/mixins.scss +3 -3
  61. package/src/components/Gauge/styles/style.scss +1 -1
  62. package/src/components/IconList/styles/mixins.scss +5 -5
  63. package/src/components/Image/styles/mixins.scss +2 -2
  64. package/src/components/Link/Link.tsx +4 -0
  65. package/src/components/Link/styles/style.scss +8 -1
  66. package/src/components/List/styles/config.scss +12 -12
  67. package/src/components/List/styles/mixins.scss +16 -9
  68. package/src/components/Pagination/styles/mixins.scss +1 -1
  69. package/src/components/Progress/styles/config.scss +4 -4
  70. package/src/components/PromotionCard/styles/mixins.scss +1 -1
  71. package/src/components/Stepbar/styles/mixins.scss +1 -1
  72. package/src/components/Table/styles/mixins.scss +1 -1
  73. package/src/components/Tabs/styles/mixins.scss +1 -1
  74. package/src/components/Tag/styles/config.scss +18 -22
  75. package/src/components/Tag/styles/style.scss +1 -1
  76. package/src/styles/base/globals-forms.scss +8 -0
  77. package/src/styles/base/globals.scss +8 -1
  78. package/src/styles/export/color.js +1 -1
  79. package/src/styles/tokens/color.scss +1 -1
  80. package/src/styles/tokens/tag-colors.scss +20 -0
  81. package/src/styles/typography/config.scss +1 -1
  82. package/src/styles/typography/mixins.scss +5 -5
  83. package/src/styles/utilities/horizontal-scroll.scss +1 -1
  84. package/src/styles/utilities/layout.scss +1 -2
  85. package/build/components/index.css +0 -2
  86. package/build/components/index.css.map +0 -1
  87. package/build/lib/scripts.css +0 -2
  88. package/build/lib/scripts.css.map +0 -1
@@ -1,13 +1,13 @@
1
1
  @use "sass:map";
2
- @use '../../../styles/tokens/space';
3
- @use '../../../styles/tools/generate';
4
- @use '../../../styles/typography/mixins' as typoMixins;
5
- @use './config';
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, 'default');
70
+ @include generate.css-map($config, "default");
64
71
 
65
72
  &:hover {
66
- @include generate.css-map($config, 'hover');
73
+ @include generate.css-map($config, "hover");
67
74
  }
68
75
 
69
76
  &:focus {
70
- @include generate.css-map($config, 'hover');
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;
@@ -10,7 +10,7 @@
10
10
 
11
11
  display: flex;
12
12
  max-width: none;
13
- margin-bottom: space.get();
13
+ margin-bottom: space.get("large");
14
14
  }
15
15
 
16
16
  @mixin separator() {
@@ -1,12 +1,12 @@
1
- @use '../../../styles/tokens/color';
2
- @use '../../../styles/tokens/space';
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('small'),
9
+ height: space.get("small"),
10
10
  background-color: var(--color-fill-moderate),
11
11
  );
12
12
 
@@ -18,7 +18,7 @@
18
18
 
19
19
  @include breakpoint.get("md") {
20
20
  flex-direction: row !important;
21
- margin: space.get("medium") 0;
21
+ margin: space.get("large") 0;
22
22
  justify-content: space-between;
23
23
  }
24
24
  }
@@ -12,7 +12,7 @@
12
12
  flex-wrap: nowrap;
13
13
  list-style-type: none;
14
14
  padding-left: 0;
15
- margin: 0 0 space.get() 0;
15
+ margin: 0 0 space.get("large") 0;
16
16
  max-width: none;
17
17
  font-weight: bold;
18
18
  }
@@ -5,7 +5,7 @@
5
5
 
6
6
  @mixin base {
7
7
  width: 100%;
8
- margin-bottom: space.get();
8
+ margin-bottom: space.get("large");
9
9
  color: var(--color-text-default);
10
10
  }
11
11
 
@@ -8,7 +8,7 @@
8
8
  display: flex;
9
9
  overflow-x: auto;
10
10
  overflow-y: visible;
11
- margin-bottom: space.get();
11
+ margin-bottom: space.get("large");
12
12
  align-items: stretch;
13
13
 
14
14
  @include generate.css-map($spacing);
@@ -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: map.get(color.$colors-light, icon-accent),
50
- color: color.$black,
48
+ background-color: var(--tag-orange),
49
+ color: var(--tag-text-dark),
51
50
  ),
52
51
  "black": (
53
- background-color: map.get(color.$colors-dark, border-subtle),
54
- color: color.$white,
52
+ background-color: var(--tag-black),
53
+ color: var(--tag-text-light),
55
54
  ),
56
55
  "yellow": (
57
- // TODO add to config
58
- background-color: #fff6b6,
59
- color: color.$black,
56
+ background-color: var(--tag-yellow),
57
+ color: var(--tag-text-dark),
60
58
  ),
61
59
  "green": (
62
- // TODO add to config
63
- background-color: #b8ebd6,
64
- color: color.$black,
60
+ background-color: var(--tag-green),
61
+ color: var(--tag-text-dark),
65
62
  ),
66
63
  "blue": (
67
- // TODO add to config
68
- background-color: #b5e8f7,
69
- color: color.$black,
64
+ background-color: var(--tag-blue),
65
+ color: var(--tag-text-dark),
70
66
  ),
71
67
  "success": (
72
- background-color: map.get(color.$colors-light, icon-positive),
73
- color: color.$white,
68
+ background-color: var(--tag-success),
69
+ color: var(--tag-text-light),
74
70
  ),
75
71
  "danger": (
76
- background-color: map.get(color.$colors-light, icon-negative),
77
- color: color.$white,
72
+ background-color: var(--tag-danger),
73
+ color: var(--tag-text-light),
78
74
  ),
79
75
  "info": (
80
- background-color: map.get(color.$colors-light, icon-information),
81
- color: color.$white,
76
+ background-color: var(--tag-info),
77
+ color: var(--tag-text-light),
82
78
  ),
83
79
  "warning": (
84
- background-color: map.get(color.$colors-light, icon-warning),
85
- color: color.$black,
80
+ background-color: var(--tag-warning),
81
+ color: var(--tag-text-dark),
86
82
  ),
87
83
  "transparent": (
88
84
  background-color: transparent,
@@ -40,7 +40,7 @@
40
40
 
41
41
  &:focus-visible,
42
42
  &:hover {
43
- background-color: color.$gray-600;
43
+ background-color: var(--color-fill-moderate);
44
44
  }
45
45
 
46
46
  &:active,
@@ -1,3 +1,5 @@
1
+ @use "../tokens/color";
2
+
1
3
  button,
2
4
  input,
3
5
  optgroup,
@@ -13,3 +15,9 @@ fieldset {
13
15
  padding: 0;
14
16
  border: 0;
15
17
  }
18
+
19
+ ::placeholder {
20
+ color: color.$gray-700;
21
+ font-weight: normal;
22
+ opacity: 1;
23
+ }
@@ -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("medium") 0;
172
+ margin: 0 0 space.get("large") 0;
166
173
  }
167
174
 
168
175
  th {
@@ -15,7 +15,7 @@ export const exports = {
15
15
  "gray-400": "#ddd",
16
16
  "gray-500": "#dddddd",
17
17
  "gray-600": "#999",
18
- "gray-700": "#666",
18
+ "gray-700": "#666666",
19
19
  "gray-800": "#595959",
20
20
  "gray-900": "#333",
21
21
  "success": "rgba(34, 135, 34, 0.0784313725)",
@@ -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: #666; // fallback
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;
@@ -25,7 +25,7 @@ $body-text: (
25
25
 
26
26
  $heading-base: (
27
27
  margin-top: 0,
28
- margin-bottom: space.get(),
28
+ margin-bottom: space.get("large"),
29
29
  font-weight: bold,
30
30
  );
31
31
 
@@ -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: convert.to-rem(20px);
197
+ margin-bottom: space.get("large");
198
198
 
199
199
  &:last-child {
200
200
  margin-bottom: 0;
@@ -36,7 +36,7 @@
36
36
  flex-wrap: nowrap;
37
37
  overflow-x: auto;
38
38
  -webkit-overflow-scrolling: auto;
39
- margin-bottom: space.get("medium");
39
+ margin-bottom: space.get("large");
40
40
  }
41
41
 
42
42
  &#{generate.variant-name($breakpoint)}-disable {
@@ -191,7 +191,7 @@
191
191
 
192
192
  .fullwidth-xs-only {
193
193
  @include breakpoint.get("xs", "only") {
194
- width: 100% !important;
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}"]}
@@ -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}"]}