@broxus/react-uikit 0.8.1 → 0.9.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/dist/cjs/components/Article/Meta.d.ts +1 -1
- package/dist/cjs/components/Article/Title.d.ts +1 -1
- package/dist/cjs/components/Badge/index.d.ts +1 -1
- package/dist/cjs/components/Button/Button.d.ts +4 -4
- package/dist/cjs/components/Button/Button.js +1 -1
- package/dist/cjs/components/Card/Badge.d.ts +1 -1
- package/dist/cjs/components/Card/Body.d.ts +1 -1
- package/dist/cjs/components/Card/Footer.d.ts +1 -1
- package/dist/cjs/components/Card/Header.d.ts +1 -1
- package/dist/cjs/components/Card/Media.d.ts +1 -1
- package/dist/cjs/components/Card/Title.d.ts +1 -1
- package/dist/cjs/components/Control/Select/index.scss +1 -1
- package/dist/cjs/components/Flex/Flex.d.ts +3 -3
- package/dist/cjs/components/Heading/index.d.ts +1 -1
- package/dist/cjs/components/Text/index.d.ts +3 -2
- package/dist/cjs/components/Text/index.js +2 -1
- package/dist/cjs/components/Text/index.scss +315 -0
- package/dist/cjs/styles/text.scss +1 -303
- package/dist/cjs/styles/variables.scss +3 -0
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/cjs/utils/get-breakpoints-config-classes.js +1 -1
- package/dist/esm/components/Article/Meta.d.ts +1 -1
- package/dist/esm/components/Article/Title.d.ts +1 -1
- package/dist/esm/components/Badge/index.d.ts +1 -1
- package/dist/esm/components/Button/Button.d.ts +4 -4
- package/dist/esm/components/Button/Button.js +1 -1
- package/dist/esm/components/Card/Badge.d.ts +1 -1
- package/dist/esm/components/Card/Body.d.ts +1 -1
- package/dist/esm/components/Card/Footer.d.ts +1 -1
- package/dist/esm/components/Card/Header.d.ts +1 -1
- package/dist/esm/components/Card/Media.d.ts +1 -1
- package/dist/esm/components/Card/Title.d.ts +1 -1
- package/dist/esm/components/Control/Select/index.scss +1 -1
- package/dist/esm/components/Flex/Flex.d.ts +3 -3
- package/dist/esm/components/Heading/index.d.ts +1 -1
- package/dist/esm/components/Text/index.d.ts +3 -2
- package/dist/esm/components/Text/index.js +2 -1
- package/dist/esm/components/Text/index.scss +315 -0
- package/dist/esm/styles/text.scss +1 -303
- package/dist/esm/styles/variables.scss +3 -0
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esm/utils/get-breakpoints-config-classes.js +1 -1
- package/package.json +2 -2
|
@@ -1,303 +1 @@
|
|
|
1
|
-
|
|
2
|
-
// Description: Utilities for text
|
|
3
|
-
//
|
|
4
|
-
// Component: `uk-text-*`
|
|
5
|
-
//
|
|
6
|
-
// ========================================================================
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// Variables
|
|
10
|
-
// ========================================================================
|
|
11
|
-
|
|
12
|
-
@import 'variables.scss';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
/* ========================================================================
|
|
16
|
-
Component: Text
|
|
17
|
-
========================================================================== */
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
/* Style modifiers
|
|
21
|
-
========================================================================== */
|
|
22
|
-
|
|
23
|
-
.uk-text-lead {
|
|
24
|
-
color: var(--text-lead-color);
|
|
25
|
-
font-size: var(--text-lead-font-size);
|
|
26
|
-
line-height: var(--text-lead-line-height);
|
|
27
|
-
@if mixin-exists(hook-text-lead) {
|
|
28
|
-
@include hook-text-lead;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.uk-text-meta {
|
|
33
|
-
color: var(--text-meta-color);
|
|
34
|
-
font-size: var(--text-meta-font-size);
|
|
35
|
-
line-height: var(--text-meta-line-height);
|
|
36
|
-
@if mixin-exists(hook-text-meta) {
|
|
37
|
-
@include hook-text-meta;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
/* Size modifiers
|
|
43
|
-
========================================================================== */
|
|
44
|
-
|
|
45
|
-
.uk-text-xsmall {
|
|
46
|
-
font-size: var(--text-xsmall-font-size);
|
|
47
|
-
line-height: var(--text-xsmall-line-height);
|
|
48
|
-
@if mixin-exists(hook-text-xsmall) {
|
|
49
|
-
@include hook-text-xsmall;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.uk-text-small {
|
|
54
|
-
font-size: var(--text-small-font-size);
|
|
55
|
-
line-height: var(--text-small-line-height);
|
|
56
|
-
@if mixin-exists(hook-text-small) {
|
|
57
|
-
@include hook-text-small;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.uk-text-large {
|
|
62
|
-
font-size: var(--text-large-font-size);
|
|
63
|
-
line-height: var(--text-large-line-height);
|
|
64
|
-
@if mixin-exists(hook-text-large) {
|
|
65
|
-
@include hook-text-large;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.uk-text-default {
|
|
70
|
-
font-size: var(--global-font-size);
|
|
71
|
-
line-height: var(--global-line-height);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
/* Weight modifier
|
|
76
|
-
========================================================================== */
|
|
77
|
-
|
|
78
|
-
.uk-text-thin { font-weight: 100; }
|
|
79
|
-
.uk-text-light { font-weight: 300; }
|
|
80
|
-
.uk-text-normal { font-weight: 400; }
|
|
81
|
-
.uk-text-medium { font-weight: 500; }
|
|
82
|
-
.uk-text-semibold { font-weight: 600; }
|
|
83
|
-
.uk-text-bold { font-weight: 700; }
|
|
84
|
-
|
|
85
|
-
.uk-text-lighter { font-weight: lighter; }
|
|
86
|
-
.uk-text-bolder { font-weight: bolder; }
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
/* Style modifier
|
|
90
|
-
========================================================================== */
|
|
91
|
-
|
|
92
|
-
.uk-text-italic { font-style: italic; }
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
/* Transform modifier
|
|
96
|
-
========================================================================== */
|
|
97
|
-
|
|
98
|
-
.uk-text-capitalize { text-transform: capitalize !important; }
|
|
99
|
-
.uk-text-uppercase { text-transform: uppercase !important; }
|
|
100
|
-
.uk-text-lowercase { text-transform: lowercase !important; }
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
/* Decoration modifier
|
|
104
|
-
========================================================================== */
|
|
105
|
-
|
|
106
|
-
.uk-text-decoration-none { text-decoration: none !important; }
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
/* Color modifiers
|
|
110
|
-
========================================================================== */
|
|
111
|
-
|
|
112
|
-
.uk-text-muted { color: var(--text-muted-color) !important; }
|
|
113
|
-
.uk-text-emphasis { color: var(--text-emphasis-color) !important; }
|
|
114
|
-
.uk-text-primary { color: var(--text-primary-color) !important; }
|
|
115
|
-
.uk-text-secondary { color: var(--text-secondary-color) !important; }
|
|
116
|
-
.uk-text-success { color: var(--text-success-color) !important; }
|
|
117
|
-
.uk-text-warning { color: var(--text-warning-color) !important; }
|
|
118
|
-
.uk-text-danger { color: var(--text-danger-color) !important; }
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
/* Background modifier
|
|
122
|
-
========================================================================== */
|
|
123
|
-
|
|
124
|
-
/*
|
|
125
|
-
* 1. The background clips to the foreground text. Works in Chrome, Firefox, Safari, Edge and Opera
|
|
126
|
-
* Default color is set to transparent
|
|
127
|
-
* 2. Container fits the text
|
|
128
|
-
* 3. Fallback color for IE11
|
|
129
|
-
*/
|
|
130
|
-
|
|
131
|
-
.uk-text-background {
|
|
132
|
-
/* 1 */
|
|
133
|
-
-webkit-background-clip: text;
|
|
134
|
-
|
|
135
|
-
/* 3 */
|
|
136
|
-
color: var(--text-background-color) !important;
|
|
137
|
-
|
|
138
|
-
/* 2 */
|
|
139
|
-
display: inline-block;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
@supports (-webkit-background-clip: text) {
|
|
143
|
-
.uk-text-background {
|
|
144
|
-
background-color: var(--text-background-color);
|
|
145
|
-
color: transparent !important;
|
|
146
|
-
@if mixin-exists(hook-text-background) {
|
|
147
|
-
@include hook-text-background;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
/* Alignment modifiers
|
|
154
|
-
========================================================================== */
|
|
155
|
-
|
|
156
|
-
.uk-text-left { text-align: left !important; }
|
|
157
|
-
.uk-text-right { text-align: right !important; }
|
|
158
|
-
.uk-text-center { text-align: center !important; }
|
|
159
|
-
.uk-text-justify { text-align: justify !important; }
|
|
160
|
-
|
|
161
|
-
/* Phone landscape and bigger */
|
|
162
|
-
// noinspection Stylelint
|
|
163
|
-
@media (min-width: $breakpoint-small) {
|
|
164
|
-
|
|
165
|
-
.uk-text-left\@s { text-align: left !important; }
|
|
166
|
-
.uk-text-right\@s { text-align: right !important; }
|
|
167
|
-
.uk-text-center\@s { text-align: center !important; }
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/* Tablet landscape and bigger */
|
|
172
|
-
// noinspection Stylelint
|
|
173
|
-
@media (min-width: $breakpoint-medium) {
|
|
174
|
-
|
|
175
|
-
.uk-text-left\@m { text-align: left !important; }
|
|
176
|
-
.uk-text-right\@m { text-align: right !important; }
|
|
177
|
-
.uk-text-center\@m { text-align: center !important; }
|
|
178
|
-
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/* Desktop and bigger */
|
|
182
|
-
// noinspection Stylelint
|
|
183
|
-
@media (min-width: $breakpoint-large) {
|
|
184
|
-
|
|
185
|
-
.uk-text-left\@l { text-align: left !important; }
|
|
186
|
-
.uk-text-right\@l { text-align: right !important; }
|
|
187
|
-
.uk-text-center\@l { text-align: center !important; }
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/* Large screen and bigger */
|
|
192
|
-
// noinspection Stylelint
|
|
193
|
-
@media (min-width: $breakpoint-xlarge) {
|
|
194
|
-
|
|
195
|
-
.uk-text-left\@xl { text-align: left !important; }
|
|
196
|
-
.uk-text-right\@xl { text-align: right !important; }
|
|
197
|
-
.uk-text-center\@xl { text-align: center !important; }
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/*
|
|
202
|
-
* Vertical
|
|
203
|
-
*/
|
|
204
|
-
|
|
205
|
-
.uk-text-top { vertical-align: top !important; }
|
|
206
|
-
.uk-text-middle { vertical-align: middle !important; }
|
|
207
|
-
.uk-text-bottom { vertical-align: bottom !important; }
|
|
208
|
-
.uk-text-baseline { vertical-align: baseline !important; }
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
/* Wrap modifiers
|
|
212
|
-
========================================================================== */
|
|
213
|
-
|
|
214
|
-
/*
|
|
215
|
-
* Prevent text from wrapping onto multiple lines
|
|
216
|
-
*/
|
|
217
|
-
|
|
218
|
-
.uk-text-nowrap { white-space: nowrap; }
|
|
219
|
-
|
|
220
|
-
/*
|
|
221
|
-
* 1. Make sure a max-width is set after which truncation can occur
|
|
222
|
-
* 2. Prevent text from wrapping onto multiple lines, and truncate with an ellipsis
|
|
223
|
-
* 3. Fix for table cells
|
|
224
|
-
*/
|
|
225
|
-
|
|
226
|
-
.uk-text-truncate {
|
|
227
|
-
/* 1 */
|
|
228
|
-
max-width: 100%;
|
|
229
|
-
|
|
230
|
-
/* 2 */
|
|
231
|
-
overflow: hidden;
|
|
232
|
-
text-overflow: ellipsis;
|
|
233
|
-
white-space: nowrap;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/* 2 */
|
|
237
|
-
th.uk-text-truncate,
|
|
238
|
-
td.uk-text-truncate { max-width: 0; }
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
/*
|
|
242
|
-
* 1. Wrap long words onto the next line and break them if they are too long to fit
|
|
243
|
-
* 2. Legacy `word-wrap` as fallback for `overflow-wrap`
|
|
244
|
-
* 3. Fix `overflow-wrap` which doesn't work with table cells in Chrome, Opera, IE11 and Edge
|
|
245
|
-
* Must use `break-all` to support IE11 and Edge
|
|
246
|
-
* Note: Not using `hyphens: auto;` because it hyphenates text even if not needed
|
|
247
|
-
*/
|
|
248
|
-
|
|
249
|
-
.uk-text-break {
|
|
250
|
-
/* 1 */
|
|
251
|
-
overflow-wrap: break-word;
|
|
252
|
-
|
|
253
|
-
/* 2 */
|
|
254
|
-
word-wrap: break-word;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/* 3 */
|
|
258
|
-
th.uk-text-break,
|
|
259
|
-
td.uk-text-break { word-break: break-all; }
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
// Hooks
|
|
263
|
-
// ========================================================================
|
|
264
|
-
|
|
265
|
-
@if mixin-exists(hook-text-misc) {
|
|
266
|
-
@include hook-text-misc;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
// Vars
|
|
271
|
-
// ========================================================================
|
|
272
|
-
|
|
273
|
-
:root {
|
|
274
|
-
--text-lead-font-size: var(--global-large-font-size);
|
|
275
|
-
--text-lead-line-height: #{$text-lead-line-height};
|
|
276
|
-
--text-lead-color: var(--global-emphasis-color);
|
|
277
|
-
--text-meta-font-size: var(--global-small-font-size);
|
|
278
|
-
--text-meta-line-height: #{$text-meta-line-height};
|
|
279
|
-
--text-meta-color: var(--global-muted-color);
|
|
280
|
-
--text-xsmall-font-size: var(--global-xsmall-font-size);
|
|
281
|
-
--text-xsmall-line-height: #{$text-xsmall-line-height};
|
|
282
|
-
--text-small-font-size: var(--global-small-font-size);
|
|
283
|
-
--text-small-line-height: #{$text-small-line-height};
|
|
284
|
-
--text-large-font-size: var(--global-large-font-size);
|
|
285
|
-
--text-large-line-height: #{$text-large-line-height};
|
|
286
|
-
--text-muted-color: var(--global-muted-color);
|
|
287
|
-
--text-emphasis-color: var(--global-emphasis-color);
|
|
288
|
-
--text-primary-color: var(--global-primary-background);
|
|
289
|
-
--text-secondary-color: var(--global-secondary-background);
|
|
290
|
-
--text-success-color: var(--global-success-background);
|
|
291
|
-
--text-warning-color: var(--global-warning-background);
|
|
292
|
-
--text-danger-color: var(--global-danger-background);
|
|
293
|
-
--text-background-color: var(--global-primary-background);
|
|
294
|
-
|
|
295
|
-
// Inverse
|
|
296
|
-
--inverse-text-lead-color: var(--inverse-global-color);
|
|
297
|
-
--inverse-text-meta-color: var(--inverse-global-muted-color);
|
|
298
|
-
--inverse-text-muted-color: var(--inverse-global-muted-color);
|
|
299
|
-
--inverse-text-emphasis-color: var(--inverse-global-emphasis-color);
|
|
300
|
-
--inverse-text-primary-color: var(--inverse-global-primary-background);
|
|
301
|
-
--inverse-text-secondary-color: var(--inverse-global-primary-background);
|
|
302
|
-
--inverse-text-tertiary-color: var(--inverse-global-primary-background);
|
|
303
|
-
}
|
|
1
|
+
@import '../components/Text/index.scss';
|
|
@@ -1691,6 +1691,9 @@ $inverse-table-hover-row-background: $inverse-table-r
|
|
|
1691
1691
|
// Text
|
|
1692
1692
|
// ========================================================================
|
|
1693
1693
|
|
|
1694
|
+
$text-base-font-size: $global-font-size !default;
|
|
1695
|
+
$text-base-line-height: $global-line-height !default;
|
|
1696
|
+
$text-base-color: $global-color !default;
|
|
1694
1697
|
$text-lead-font-size: $global-large-font-size !default;
|
|
1695
1698
|
$text-lead-line-height: 1.5 !default;
|
|
1696
1699
|
$text-lead-color: $global-emphasis-color !default;
|