@orangesk/orange-design-system 2.0.0-beta.19 → 2.0.0-beta.20

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 (168) hide show
  1. package/README.md +346 -19
  2. package/build/components/Accordion/style.css +1 -1
  3. package/build/components/Accordion/style.css.map +1 -1
  4. package/build/components/Alert/style.css +1 -1
  5. package/build/components/Alert/style.css.map +1 -1
  6. package/build/components/AnchorNavigation/style.css +1 -1
  7. package/build/components/AnchorNavigation/style.css.map +1 -1
  8. package/build/components/BlockAction/style.css +1 -1
  9. package/build/components/BlockAction/style.css.map +1 -1
  10. package/build/components/CarouselPromotions/style.css +1 -1
  11. package/build/components/CarouselPromotions/style.css.map +1 -1
  12. package/build/components/FeatureAccordion/style.css +1 -1
  13. package/build/components/FeatureAccordion/style.css.map +1 -1
  14. package/build/components/Footer/style.css +1 -1
  15. package/build/components/Footer/style.css.map +1 -1
  16. package/build/components/Hero/style.css +1 -1
  17. package/build/components/Hero/style.css.map +1 -1
  18. package/build/components/Megamenu/style.css +1 -1
  19. package/build/components/Megamenu/style.css.map +1 -1
  20. package/build/components/Modal/style.css +1 -1
  21. package/build/components/Modal/style.css.map +1 -1
  22. package/build/components/Progress/style.css +1 -1
  23. package/build/components/Progress/style.css.map +1 -1
  24. package/build/components/PromoBanner/style.css +1 -1
  25. package/build/components/PromoBanner/style.css.map +1 -1
  26. package/build/components/PromotionCard/style.css +1 -1
  27. package/build/components/PromotionCard/style.css.map +1 -1
  28. package/build/components/Tag/style.css +1 -1
  29. package/build/components/Tag/style.css.map +1 -1
  30. package/build/components/Tile/style.css +1 -1
  31. package/build/components/Tile/style.css.map +1 -1
  32. package/build/components/index.js +1 -1
  33. package/build/components/index.js.map +1 -1
  34. package/build/components/tsconfig.tsbuildinfo +1 -1
  35. package/build/components/types/index.d.ts +5 -40
  36. package/build/components/types/src/components/Alert/Alert.d.ts +0 -2
  37. package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.d.ts +1 -2
  38. package/build/components/types/src/components/BlockAction/BlockAction.d.ts +2 -0
  39. package/build/components/types/src/components/BlockAction/Context.d.ts +2 -0
  40. package/build/components/types/src/components/Breadcrumbs/Breadcrumbs.d.ts +0 -2
  41. package/build/components/types/src/components/Button/Button.d.ts +0 -1
  42. package/build/components/types/src/components/Card/index.d.ts +1 -0
  43. package/build/components/types/src/components/Carousel/Carousel.d.ts +0 -2
  44. package/build/components/types/src/components/CarouselHero/CarouselHero.d.ts +0 -1
  45. package/build/components/types/src/components/CarouselPromotions/CarouselPromotions.d.ts +0 -1
  46. package/build/components/types/src/components/Controls/Controls.d.ts +0 -1
  47. package/build/components/types/src/components/Expander/Expander.d.ts +0 -3
  48. package/build/components/types/src/components/FeatureAccordion/FeatureAccordion.d.ts +0 -2
  49. package/build/components/types/src/components/Forms/InputStepper/InputStepper.d.ts +0 -1
  50. package/build/components/types/src/components/Hero/Hero.d.ts +0 -3
  51. package/build/components/types/src/components/Icon/iconSearchTags.d.ts +167 -166
  52. package/build/components/types/src/components/Link/Link.d.ts +0 -2
  53. package/build/components/types/src/components/Megamenu/static.d.ts +2 -3
  54. package/build/components/types/src/components/Modal/Modal.d.ts +0 -2
  55. package/build/components/types/src/components/Pagination/Pagination.d.ts +0 -2
  56. package/build/components/types/src/components/Pill/Pill.d.ts +0 -1
  57. package/build/components/types/src/components/Progress/Progress.d.ts +0 -1
  58. package/build/components/types/src/components/PromoBanner/PromoBanner.d.ts +1 -2
  59. package/build/components/types/src/components/PromotionCard/PromotionCard.d.ts +2 -2
  60. package/build/components/types/src/components/Stepbar/Stepbar.d.ts +0 -2
  61. package/build/components/types/src/components/Table/Table.d.ts +0 -2
  62. package/build/components/types/src/components/Tabs/Tabs.d.ts +0 -2
  63. package/build/components/types/src/components/Tooltip/Tooltip.d.ts +0 -1
  64. package/build/components/types/src/scripts/index.d.ts +2 -3
  65. package/build/components/types/src/styles/export/color.d.ts +102 -20
  66. package/build/lib/base.css +1 -1
  67. package/build/lib/base.css.map +1 -1
  68. package/build/lib/components.css +1 -1
  69. package/build/lib/components.css.map +1 -1
  70. package/build/lib/footer.css +1 -1
  71. package/build/lib/footer.css.map +1 -1
  72. package/build/lib/megamenu.css +1 -1
  73. package/build/lib/megamenu.css.map +1 -1
  74. package/build/lib/megamenu.js +1 -1
  75. package/build/lib/megamenu.js.map +1 -1
  76. package/build/lib/scripts.js +1 -1
  77. package/build/lib/scripts.js.map +1 -1
  78. package/build/lib/style.css +1 -1
  79. package/build/lib/style.css.map +1 -1
  80. package/build/lib/tsconfig.tsbuildinfo +1 -1
  81. package/build/lib/utilities.css +1 -1
  82. package/build/lib/utilities.css.map +1 -1
  83. package/build/sprite.svg +1 -1
  84. package/package.json +13 -13
  85. package/src/assets/icons/quote.svg +4 -0
  86. package/src/components/Accordion/styles/mixins.scss +2 -0
  87. package/src/components/Alert/Alert.tsx +0 -6
  88. package/src/components/Alert/styles/mixins.scss +3 -1
  89. package/src/components/Alert/tests/Alert.test.js +0 -14
  90. package/src/components/AnchorNavigation/AnchorNavigation.tsx +1 -10
  91. package/src/components/AnchorNavigation/tests/AnchorNavigation.conformance.test.js +0 -9
  92. package/src/components/BlockAction/BlockAction.tsx +10 -3
  93. package/src/components/BlockAction/Context.tsx +4 -0
  94. package/src/components/BlockAction/styles/mixins.scss +6 -0
  95. package/src/components/BlockAction/styles/style.scss +5 -0
  96. package/src/components/Breadcrumbs/BreadcrumbItem.tsx +16 -7
  97. package/src/components/Breadcrumbs/Breadcrumbs.tsx +4 -12
  98. package/src/components/Breadcrumbs/tests/BreadcrumbItem.unit.test.js +14 -8
  99. package/src/components/Breadcrumbs/tests/Breadcrumbs.integration.test.js +14 -37
  100. package/src/components/Breadcrumbs/tests/Breadcrumbs.unit.test.js +19 -23
  101. package/src/components/Button/Button.tsx +0 -4
  102. package/src/components/Button/tests/Button.test.js +0 -10
  103. package/src/components/Card/index.ts +1 -0
  104. package/src/components/Carousel/Carousel.static.ts +5 -0
  105. package/src/components/Carousel/Carousel.tsx +0 -5
  106. package/src/components/Carousel/tests/Carousel.unit.test.js +0 -21
  107. package/src/components/CarouselHero/CarouselHero.tsx +1 -9
  108. package/src/components/CarouselHero/tests/CarouselHero.conformance.test.js +0 -1
  109. package/src/components/CarouselHero/tests/CarouselHero.unit.test.js +0 -14
  110. package/src/components/CarouselPromotions/CarouselPromotions.tsx +1 -6
  111. package/src/components/CarouselPromotions/styles/mixins.scss +6 -3
  112. package/src/components/CarouselPromotions/tests/CarouselPromotions.unit.test.js +0 -17
  113. package/src/components/Controls/Controls.tsx +2 -7
  114. package/src/components/Controls/tests/Controls.test.js +0 -23
  115. package/src/components/Expander/Expander.tsx +0 -6
  116. package/src/components/Expander/tests/Expander.conformance.test.js +8 -12
  117. package/src/components/Expander/tests/Expander.unit.test.js +37 -47
  118. package/src/components/FeatureAccordion/FeatureAccordion.tsx +2 -12
  119. package/src/components/FeatureAccordion/styles/mixins.scss +6 -14
  120. package/src/components/FeatureAccordion/styles/style.scss +2 -4
  121. package/src/components/FeatureAccordion/tests/FeatureAccordion.unit.test.js +0 -5
  122. package/src/components/Footer/styles/mixins.scss +1 -0
  123. package/src/components/Forms/InputStepper/InputStepper.tsx +0 -4
  124. package/src/components/Forms/Label/styles/config.scss +3 -0
  125. package/src/components/Hero/Hero.tsx +2 -16
  126. package/src/components/Hero/styles/style.scss +0 -14
  127. package/src/components/Hero/tests/Hero.unit.test.js +109 -119
  128. package/src/components/Icon/iconSearchTags.ts +167 -166
  129. package/src/components/Link/Link.tsx +0 -5
  130. package/src/components/Link/tests/Link.conformance.test.js +1 -7
  131. package/src/components/Link/tests/Link.unit.test.js +0 -20
  132. package/src/components/Megamenu/static.ts +5 -2
  133. package/src/components/Modal/Modal.tsx +0 -5
  134. package/src/components/Modal/styles/mixins.scss +7 -0
  135. package/src/components/Modal/styles/style.scss +1 -0
  136. package/src/components/Modal/tests/Modal.unit.test.js +0 -22
  137. package/src/components/Pagination/Pagination.tsx +1 -11
  138. package/src/components/Pill/Pill.tsx +0 -4
  139. package/src/components/Pill/tests/Pill.conformance.test.js +0 -4
  140. package/src/components/Pill/tests/Pill.unit.test.js +0 -18
  141. package/src/components/Progress/Progress.tsx +1 -13
  142. package/src/components/Progress/styles/mixins.scss +9 -7
  143. package/src/components/PromoBanner/PromoBanner.tsx +1 -10
  144. package/src/components/PromoBanner/styles/mixins.scss +0 -3
  145. package/src/components/PromoBanner/tests/PromoBanner.conformance.test.js +0 -30
  146. package/src/components/PromoBanner/tests/PromoBanner.unit.test.js +1 -33
  147. package/src/components/PromotionCard/PromotionCard.tsx +4 -6
  148. package/src/components/PromotionCard/styles/mixins.scss +1 -0
  149. package/src/components/PromotionCard/tests/PromotionCard.conformance.test.js +18 -19
  150. package/src/components/PromotionCard/tests/PromotionCard.unit.test.js +12 -74
  151. package/src/components/Stepbar/Stepbar.tsx +0 -5
  152. package/src/components/Table/Table.tsx +0 -5
  153. package/src/components/Table/tests/Table.unit.test.js +0 -31
  154. package/src/components/Tabs/Tabs.tsx +0 -5
  155. package/src/components/Tabs/tests/Tabs.unit.test.js +0 -8
  156. package/src/components/Tag/styles/config.scss +1 -1
  157. package/src/components/Tag/styles/style.scss +10 -9
  158. package/src/components/Tile/styles/mixins.scss +1 -0
  159. package/src/components/Tooltip/Tooltip.tsx +1 -10
  160. package/src/components/Tooltip/tests/Tooltip.unit.test.js +0 -29
  161. package/src/styles/base/globals.scss +9 -0
  162. package/src/styles/base/styleguide.scss +6 -2
  163. package/src/styles/export/color.js +102 -20
  164. package/src/styles/export/color.scss +10 -20
  165. package/src/styles/typography/config.scss +83 -37
  166. package/src/styles/typography/mixins.scss +3 -3
  167. package/src/styles/utilities/text.scss +26 -2
  168. package/src/components/Pagination/tests/utils.js +0 -12
@@ -4,35 +4,75 @@
4
4
 
5
5
  $body-text: (
6
6
  small: (
7
- font-size: convert.to-rem(16px),
8
- line-height: convert.to-rem(24px),
9
- font-weight: 400,
10
- letter-spacing: convert.to-rem(-0.1px),
7
+ default: (
8
+ font-size: convert.to-rem(14px),
9
+ line-height: convert.to-rem(14px),
10
+ font-weight: 400,
11
+ letter-spacing: convert.to-rem(0px),
12
+ ),
13
+ md: (
14
+ font-size: convert.to-rem(16px),
15
+ line-height: convert.to-rem(24px),
16
+ font-weight: 400,
17
+ letter-spacing: convert.to-rem(-0.1px),
18
+ ),
19
+ lg: (
20
+ font-size: convert.to-rem(16px),
21
+ line-height: convert.to-rem(24px),
22
+ font-weight: 400,
23
+ letter-spacing: convert.to-rem(-0.1px),
24
+ ),
11
25
  ),
12
26
  default: (
13
- font-size: convert.to-rem(18px),
14
- line-height: convert.to-rem(26px),
15
- font-weight: 400,
16
- letter-spacing: convert.to-rem(-0.2px),
27
+ default: (
28
+ font-size: convert.to-rem(16px),
29
+ line-height: convert.to-rem(24px),
30
+ font-weight: 400,
31
+ letter-spacing: convert.to-rem(-0.1px),
32
+ ),
33
+ md: (
34
+ font-size: convert.to-rem(18px),
35
+ line-height: convert.to-rem(26px),
36
+ font-weight: 400,
37
+ letter-spacing: convert.to-rem(-0.2px),
38
+ ),
39
+ lg: (
40
+ font-size: convert.to-rem(18px),
41
+ line-height: convert.to-rem(26px),
42
+ font-weight: 400,
43
+ letter-spacing: convert.to-rem(-0.2px),
44
+ ),
17
45
  ),
18
46
  large: (
19
- font-size: convert.to-rem(20px),
20
- line-height: convert.to-rem(30px),
21
- font-weight: 400,
22
- letter-spacing: convert.to-rem(-0.2px),
47
+ default: (
48
+ font-size: convert.to-rem(18px),
49
+ line-height: convert.to-rem(26px),
50
+ font-weight: 400,
51
+ letter-spacing: convert.to-rem(-0.2px),
52
+ ),
53
+ md: (
54
+ font-size: convert.to-rem(20px),
55
+ line-height: convert.to-rem(30px),
56
+ font-weight: 400,
57
+ letter-spacing: convert.to-rem(-0.2px),
58
+ ),
59
+ lg: (
60
+ font-size: convert.to-rem(20px),
61
+ line-height: convert.to-rem(30px),
62
+ font-weight: 400,
63
+ letter-spacing: convert.to-rem(-0.2px),
64
+ ),
23
65
  ),
24
66
  );
25
67
 
26
68
  $heading-base: (
27
69
  margin-top: 0,
28
- margin-bottom: space.get("large"),
29
- font-weight: bold,
70
+ margin-bottom: space.get("large"), // font-weight: bold,
30
71
  );
31
72
 
32
73
  $display-base: (
33
74
  margin-top: 0,
34
- margin-bottom: space.get("large"),
35
- font-weight: bold,
75
+ margin-bottom: space.get("large"), // font-weight: bold,
36
76
  );
37
77
 
38
78
  $headings: (
@@ -40,19 +80,19 @@ $headings: (
40
80
  default: (
41
81
  font-size: convert.to-rem(34px),
42
82
  line-height: convert.to-rem(40px),
43
- font-weight: 700,
83
+ font-weight: 300,
44
84
  letter-spacing: convert.to-rem(-0.4px),
45
85
  ),
46
86
  md: (
47
87
  font-size: convert.to-rem(40px),
48
88
  line-height: convert.to-rem(46px),
49
- font-weight: 700,
89
+ font-weight: 300,
50
90
  letter-spacing: convert.to-rem(-0.6px),
51
91
  ),
52
92
  xl: (
53
93
  font-size: convert.to-rem(50px),
54
94
  line-height: convert.to-rem(56px),
55
- font-weight: 700,
95
+ font-weight: 300,
56
96
  letter-spacing: convert.to-rem(-0.6px),
57
97
  ),
58
98
  ),
@@ -60,19 +100,19 @@ $headings: (
60
100
  default: (
61
101
  font-size: convert.to-rem(28px),
62
102
  line-height: convert.to-rem(32px),
63
- font-weight: 700,
103
+ font-weight: 300,
64
104
  letter-spacing: convert.to-rem(-0.2px),
65
105
  ),
66
106
  md: (
67
107
  font-size: convert.to-rem(34px),
68
108
  line-height: convert.to-rem(40px),
69
- font-weight: 700,
109
+ font-weight: 300,
70
110
  letter-spacing: convert.to-rem(-0.4px),
71
111
  ),
72
112
  xl: (
73
113
  font-size: convert.to-rem(40px),
74
114
  line-height: convert.to-rem(46px),
75
- font-weight: 700,
115
+ font-weight: 300,
76
116
  letter-spacing: convert.to-rem(-0.6px),
77
117
  ),
78
118
  ),
@@ -80,27 +120,27 @@ $headings: (
80
120
  default: (
81
121
  font-size: convert.to-rem(24px),
82
122
  line-height: convert.to-rem(28px),
83
- font-weight: 700,
123
+ font-weight: 300,
84
124
  letter-spacing: convert.to-rem(-0.6px),
85
125
  ),
86
126
  md: (
87
127
  font-size: convert.to-rem(28px),
88
128
  line-height: convert.to-rem(32px),
89
- font-weight: 700,
129
+ font-weight: 300,
90
130
  letter-spacing: convert.to-rem(-0.6px),
91
131
  ),
92
132
  ),
93
133
  4: (
94
134
  default: (
95
- font-size: convert.to-rem(16px),
96
- line-height: convert.to-rem(20px),
97
- font-weight: 700,
135
+ font-size: convert.to-rem(18px),
136
+ line-height: convert.to-rem(22px),
137
+ font-weight: 300,
98
138
  letter-spacing: convert.to-rem(-0.1px),
99
139
  ),
100
140
  md: (
101
141
  font-size: convert.to-rem(24px),
102
142
  line-height: convert.to-rem(28px),
103
- font-weight: 700,
143
+ font-weight: 300,
104
144
  letter-spacing: convert.to-rem(-0.4px),
105
145
  ),
106
146
  ),
@@ -108,18 +148,24 @@ $headings: (
108
148
  default: (
109
149
  font-size: convert.to-rem(16px),
110
150
  line-height: convert.to-rem(20px),
111
- font-weight: 700,
151
+ font-weight: 300,
112
152
  letter-spacing: convert.to-rem(-0.1px),
113
153
  ),
114
154
  md: (
115
155
  font-size: convert.to-rem(18px),
116
156
  line-height: convert.to-rem(22px),
117
- font-weight: 700,
157
+ font-weight: 300,
118
158
  letter-spacing: convert.to-rem(-0.2px),
119
159
  ),
120
160
  ),
121
161
  6: (
122
162
  default: (
163
+ font-size: convert.to-rem(16px),
164
+ line-height: convert.to-rem(24px),
165
+ font-weight: 400,
166
+ letter-spacing: convert.to-rem(-0.1px),
167
+ ),
168
+ md: (
123
169
  font-size: convert.to-rem(18px),
124
170
  line-height: convert.to-rem(26px),
125
171
  font-weight: 400,
@@ -133,13 +179,13 @@ $displays: (
133
179
  default: (
134
180
  font-size: convert.to-rem(40px),
135
181
  line-height: convert.to-rem(46px),
136
- font-weight: 700,
182
+ font-weight: 300,
137
183
  letter-spacing: convert.to-rem(-0.6px),
138
184
  ),
139
185
  xl: (
140
186
  font-size: convert.to-rem(140px),
141
187
  line-height: convert.to-rem(158px),
142
- font-weight: 700,
188
+ font-weight: 300,
143
189
  letter-spacing: convert.to-rem(-2.6px),
144
190
  ),
145
191
  ),
@@ -147,13 +193,13 @@ $displays: (
147
193
  default: (
148
194
  font-size: convert.to-rem(40px),
149
195
  line-height: convert.to-rem(46px),
150
- font-weight: 700,
196
+ font-weight: 300,
151
197
  letter-spacing: convert.to-rem(-0.6px),
152
198
  ),
153
199
  md: (
154
200
  font-size: convert.to-rem(80px),
155
201
  line-height: convert.to-rem(92px),
156
- font-weight: 700,
202
+ font-weight: 300,
157
203
  letter-spacing: convert.to-rem(-1.4px),
158
204
  ),
159
205
  ),
@@ -161,21 +207,21 @@ $displays: (
161
207
  default: (
162
208
  font-size: convert.to-rem(40px),
163
209
  line-height: convert.to-rem(46px),
164
- font-weight: 700,
210
+ font-weight: 300,
165
211
  letter-spacing: convert.to-rem(-0.6px),
166
212
  ),
167
213
 
168
214
  md: (
169
215
  font-size: convert.to-rem(50px),
170
216
  line-height: convert.to-rem(56px),
171
- font-weight: 700,
217
+ font-weight: 300,
172
218
  letter-spacing: convert.to-rem(-0.6px),
173
219
  ),
174
220
 
175
221
  xl: (
176
222
  font-size: convert.to-rem(60px),
177
223
  line-height: convert.to-rem(68px),
178
- font-weight: 700,
224
+ font-weight: 300,
179
225
  letter-spacing: convert.to-rem(-1px),
180
226
  ),
181
227
  ),
@@ -48,7 +48,7 @@
48
48
  margin-top: 0;
49
49
  margin-bottom: space.get("large");
50
50
  // Default štýly pre všetky p elementy
51
- @include generate.responsive-css-map($config);
51
+ @include generate.responsive-css-map(map.get($config, "default"));
52
52
 
53
53
  a {
54
54
  text-decoration: underline !important;
@@ -116,7 +116,7 @@
116
116
  padding-left: space.get("large");
117
117
  @include text-readable;
118
118
  // Apply the same font styles as paragraphs
119
- @include generate.responsive-css-map(config.$body-text);
119
+ @include generate.responsive-css-map(map.get(config.$body-text, "default"));
120
120
  }
121
121
 
122
122
  @mixin list-spacing($space, $config: config.$list-spacing) {
@@ -185,7 +185,7 @@
185
185
 
186
186
  @mixin description-list() {
187
187
  @include text-readable;
188
- @include generate.responsive-css-map(config.$body-text);
188
+ @include generate.responsive-css-map(map.get(config.$body-text, "default"));
189
189
  padding-left: 0;
190
190
 
191
191
  dt {
@@ -6,6 +6,7 @@
6
6
  @use "../tokens/color";
7
7
  @use "../tokens/base";
8
8
  @use "../tokens/breakpoint";
9
+ @use "sass:map";
9
10
 
10
11
  @layer utilities {
11
12
  strong,
@@ -50,11 +51,15 @@
50
51
 
51
52
  small,
52
53
  .small {
53
- @include generate.css-map(typographyConfig.$body-text, "small");
54
+ @include generate.responsive-css-map(
55
+ map.get(typographyConfig.$body-text, "small")
56
+ );
54
57
  }
55
58
 
56
59
  .large {
57
- @include generate.css-map(typographyConfig.$body-text, "large");
60
+ @include generate.responsive-css-map(
61
+ map.get(typographyConfig.$body-text, "large")
62
+ );
58
63
  }
59
64
 
60
65
  .text-nowrap {
@@ -112,6 +117,25 @@
112
117
  vertical-align: baseline !important;
113
118
  }
114
119
 
120
+ @each $name, $width in breakpoint.$map {
121
+ @if $name != "xs" {
122
+ @include breakpoint.get($name) {
123
+ .align-middle--#{$name} {
124
+ vertical-align: middle !important;
125
+ }
126
+ .align-top--#{$name} {
127
+ vertical-align: top !important;
128
+ }
129
+ .align-bottom--#{$name} {
130
+ vertical-align: bottom !important;
131
+ }
132
+ .align-baseline--#{$name} {
133
+ vertical-align: baseline !important;
134
+ }
135
+ }
136
+ }
137
+ }
138
+
115
139
  .reset-font-weight {
116
140
  font-weight: normal !important;
117
141
  }
@@ -1,12 +0,0 @@
1
- export const getItems = (count = 10, current = 0) =>
2
- [
3
- ...Array(count)
4
- .fill('')
5
- .map((_, i) => i + 1),
6
- ].map(n => ({
7
- label: `${n}`,
8
- ariaLabel: `Strana ${n}`,
9
- href: `/?page=${n}`,
10
- key: n.toString(),
11
- ...(current === n ? { isActive: true } : {}),
12
- }));