@vaadin/vaadin-lumo-styles 25.0.0-alpha18 → 25.0.0-alpha19

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 (47) hide show
  1. package/all-imports.d.ts +0 -8
  2. package/all-imports.js +0 -18
  3. package/mixins/field-button.js +3 -4
  4. package/mixins/helper.js +3 -4
  5. package/mixins/input-field-shared.js +3 -6
  6. package/mixins/loader.js +3 -2
  7. package/mixins/menu-overlay.js +3 -2
  8. package/mixins/overlay.js +3 -4
  9. package/mixins/required-field.js +3 -4
  10. package/package.json +7 -8
  11. package/presets/compact.css +31 -0
  12. package/src/mixins/overlay.css +9 -0
  13. package/auto-complete.css +0 -2512
  14. package/badge-global.js +0 -9
  15. package/badge.d.ts +0 -3
  16. package/badge.js +0 -178
  17. package/color-global.js +0 -9
  18. package/color.d.ts +0 -5
  19. package/color.js +0 -221
  20. package/font-icons.js +0 -71
  21. package/global.js +0 -5
  22. package/presets/compact.js +0 -40
  23. package/sizing.d.ts +0 -3
  24. package/sizing.js +0 -29
  25. package/spacing.d.ts +0 -3
  26. package/spacing.js +0 -37
  27. package/style.d.ts +0 -3
  28. package/style.js +0 -31
  29. package/typography-global.js +0 -13
  30. package/typography.d.ts +0 -7
  31. package/typography.js +0 -129
  32. package/user-colors.d.ts +0 -8
  33. package/user-colors.js +0 -33
  34. package/utilities/accessibility.js +0 -21
  35. package/utilities/background.js +0 -156
  36. package/utilities/border.js +0 -147
  37. package/utilities/filter.js +0 -34
  38. package/utilities/flexbox-grid.js +0 -619
  39. package/utilities/layout.js +0 -504
  40. package/utilities/shadows.js +0 -28
  41. package/utilities/sizing.js +0 -121
  42. package/utilities/spacing.js +0 -542
  43. package/utilities/transition.js +0 -50
  44. package/utilities/typography.js +0 -344
  45. package/utility-global.js +0 -9
  46. package/utility.d.ts +0 -3
  47. package/utility.js +0 -34
@@ -1,344 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import { css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
7
-
8
- export const typography = css`
9
- /* === Font size === */
10
- .text-2xs {
11
- font-size: var(--lumo-font-size-xxs);
12
- }
13
- .text-xs {
14
- font-size: var(--lumo-font-size-xs);
15
- }
16
- .text-s {
17
- font-size: var(--lumo-font-size-s);
18
- }
19
- .text-m {
20
- font-size: var(--lumo-font-size-m);
21
- }
22
- .text-l {
23
- font-size: var(--lumo-font-size-l);
24
- }
25
- .text-xl {
26
- font-size: var(--lumo-font-size-xl);
27
- }
28
- .text-2xl {
29
- font-size: var(--lumo-font-size-xxl);
30
- }
31
- .text-3xl {
32
- font-size: var(--lumo-font-size-xxxl);
33
- }
34
-
35
- /* === Font weight === */
36
- .font-thin {
37
- font-weight: 100;
38
- }
39
- .font-extralight {
40
- font-weight: 200;
41
- }
42
- .font-light {
43
- font-weight: 300;
44
- }
45
- .font-normal {
46
- font-weight: 400;
47
- }
48
- .font-medium {
49
- font-weight: 500;
50
- }
51
- .font-semibold {
52
- font-weight: 600;
53
- }
54
- .font-bold {
55
- font-weight: 700;
56
- }
57
- .font-extrabold {
58
- font-weight: 800;
59
- }
60
- .font-black {
61
- font-weight: 900;
62
- }
63
-
64
- /* === Line clamp === */
65
- [class*='line-clamp-'] {
66
- display: -webkit-box;
67
- overflow: hidden;
68
- -webkit-box-orient: vertical;
69
- }
70
- .line-clamp-1 {
71
- -webkit-line-clamp: 1;
72
- }
73
- .line-clamp-2 {
74
- -webkit-line-clamp: 2;
75
- }
76
- .line-clamp-3 {
77
- -webkit-line-clamp: 3;
78
- }
79
- .line-clamp-4 {
80
- -webkit-line-clamp: 4;
81
- }
82
- .line-clamp-5 {
83
- -webkit-line-clamp: 5;
84
- }
85
- .line-clamp-6 {
86
- -webkit-line-clamp: 6;
87
- }
88
-
89
- /* === Line height === */
90
- .leading-none {
91
- line-height: 1;
92
- }
93
- .leading-xs {
94
- line-height: var(--lumo-line-height-xs);
95
- }
96
- .leading-s {
97
- line-height: var(--lumo-line-height-s);
98
- }
99
- .leading-m {
100
- line-height: var(--lumo-line-height-m);
101
- }
102
-
103
- /* === List style type === */
104
- .list-none {
105
- list-style-type: none;
106
- }
107
-
108
- /* === Text alignment === */
109
- .text-left {
110
- text-align: left;
111
- }
112
- .text-center {
113
- text-align: center;
114
- }
115
- .text-right {
116
- text-align: right;
117
- }
118
- .text-justify {
119
- text-align: justify;
120
- }
121
-
122
- /* === Text color === */
123
- .text-header {
124
- color: var(--lumo-header-text-color);
125
- }
126
- .text-body {
127
- color: var(--lumo-body-text-color);
128
- }
129
- .text-secondary {
130
- color: var(--lumo-secondary-text-color);
131
- }
132
- .text-tertiary {
133
- color: var(--lumo-tertiary-text-color);
134
- }
135
- .text-disabled {
136
- color: var(--lumo-disabled-text-color);
137
- }
138
- .text-primary {
139
- color: var(--lumo-primary-text-color);
140
- }
141
- .text-primary-contrast {
142
- color: var(--lumo-primary-contrast-color);
143
- }
144
- .text-error {
145
- color: var(--lumo-error-text-color);
146
- }
147
- .text-error-contrast {
148
- color: var(--lumo-error-contrast-color);
149
- }
150
- .text-success {
151
- color: var(--lumo-success-text-color);
152
- }
153
- .text-success-contrast {
154
- color: var(--lumo-success-contrast-color);
155
- }
156
- .text-warning {
157
- color: var(--lumo-warning-text-color);
158
- }
159
- .text-warning-contrast {
160
- color: var(--lumo-warning-contrast-color);
161
- }
162
-
163
- /* == Text decoration === */
164
- .line-through {
165
- text-decoration-line: line-through;
166
- }
167
- .no-underline {
168
- text-decoration-line: none;
169
- }
170
- .underline {
171
- text-decoration-line: underline;
172
- }
173
-
174
- /* === Text overflow === */
175
- .overflow-clip {
176
- text-overflow: clip;
177
- }
178
- .overflow-ellipsis {
179
- text-overflow: ellipsis;
180
- }
181
-
182
- /* === Text transform === */
183
- .capitalize {
184
- text-transform: capitalize;
185
- }
186
- .lowercase {
187
- text-transform: lowercase;
188
- }
189
- .uppercase {
190
- text-transform: uppercase;
191
- }
192
-
193
- /* === Whitespace === */
194
- .whitespace-normal {
195
- white-space: normal;
196
- }
197
- .whitespace-break-spaces {
198
- white-space: normal;
199
- }
200
- .whitespace-nowrap {
201
- white-space: nowrap;
202
- }
203
- .whitespace-pre {
204
- white-space: pre;
205
- }
206
- .whitespace-pre-line {
207
- white-space: pre-line;
208
- }
209
- .whitespace-pre-wrap {
210
- white-space: pre-wrap;
211
- }
212
-
213
- /* === Responsive design === */
214
- @media (min-width: 640px) {
215
- .sm\\:text-2xs {
216
- font-size: var(--lumo-font-size-xxs);
217
- }
218
- .sm\\:text-xs {
219
- font-size: var(--lumo-font-size-xs);
220
- }
221
- .sm\\:text-s {
222
- font-size: var(--lumo-font-size-s);
223
- }
224
- .sm\\:text-m {
225
- font-size: var(--lumo-font-size-m);
226
- }
227
- .sm\\:text-l {
228
- font-size: var(--lumo-font-size-l);
229
- }
230
- .sm\\:text-xl {
231
- font-size: var(--lumo-font-size-xl);
232
- }
233
- .sm\\:text-2xl {
234
- font-size: var(--lumo-font-size-xxl);
235
- }
236
- .sm\\:text-3xl {
237
- font-size: var(--lumo-font-size-xxxl);
238
- }
239
- }
240
- @media (min-width: 768px) {
241
- .md\\:text-2xs {
242
- font-size: var(--lumo-font-size-xxs);
243
- }
244
- .md\\:text-xs {
245
- font-size: var(--lumo-font-size-xs);
246
- }
247
- .md\\:text-s {
248
- font-size: var(--lumo-font-size-s);
249
- }
250
- .md\\:text-m {
251
- font-size: var(--lumo-font-size-m);
252
- }
253
- .md\\:text-l {
254
- font-size: var(--lumo-font-size-l);
255
- }
256
- .md\\:text-xl {
257
- font-size: var(--lumo-font-size-xl);
258
- }
259
- .md\\:text-2xl {
260
- font-size: var(--lumo-font-size-xxl);
261
- }
262
- .md\\:text-3xl {
263
- font-size: var(--lumo-font-size-xxxl);
264
- }
265
- }
266
- @media (min-width: 1024px) {
267
- .lg\\:text-2xs {
268
- font-size: var(--lumo-font-size-xxs);
269
- }
270
- .lg\\:text-xs {
271
- font-size: var(--lumo-font-size-xs);
272
- }
273
- .lg\\:text-s {
274
- font-size: var(--lumo-font-size-s);
275
- }
276
- .lg\\:text-m {
277
- font-size: var(--lumo-font-size-m);
278
- }
279
- .lg\\:text-l {
280
- font-size: var(--lumo-font-size-l);
281
- }
282
- .lg\\:text-xl {
283
- font-size: var(--lumo-font-size-xl);
284
- }
285
- .lg\\:text-2xl {
286
- font-size: var(--lumo-font-size-xxl);
287
- }
288
- .lg\\:text-3xl {
289
- font-size: var(--lumo-font-size-xxxl);
290
- }
291
- }
292
- @media (min-width: 1280px) {
293
- .xl\\:text-2xs {
294
- font-size: var(--lumo-font-size-xxs);
295
- }
296
- .xl\\:text-xs {
297
- font-size: var(--lumo-font-size-xs);
298
- }
299
- .xl\\:text-s {
300
- font-size: var(--lumo-font-size-s);
301
- }
302
- .xl\\:text-m {
303
- font-size: var(--lumo-font-size-m);
304
- }
305
- .xl\\:text-l {
306
- font-size: var(--lumo-font-size-l);
307
- }
308
- .xl\\:text-xl {
309
- font-size: var(--lumo-font-size-xl);
310
- }
311
- .xl\\:text-2xl {
312
- font-size: var(--lumo-font-size-xxl);
313
- }
314
- .xl\\:text-3xl {
315
- font-size: var(--lumo-font-size-xxxl);
316
- }
317
- }
318
- @media (min-width: 1536px) {
319
- .\\32xl\\:text-2xs {
320
- font-size: var(--lumo-font-size-xxs);
321
- }
322
- .\\32xl\\:text-xs {
323
- font-size: var(--lumo-font-size-xs);
324
- }
325
- .\\32xl\\:text-s {
326
- font-size: var(--lumo-font-size-s);
327
- }
328
- .\\32xl\\:text-m {
329
- font-size: var(--lumo-font-size-m);
330
- }
331
- .\\32xl\\:text-l {
332
- font-size: var(--lumo-font-size-l);
333
- }
334
- .\\32xl\\:text-xl {
335
- font-size: var(--lumo-font-size-xl);
336
- }
337
- .\\32xl\\:text-2xl {
338
- font-size: var(--lumo-font-size-xxl);
339
- }
340
- .\\32xl\\:text-3xl {
341
- font-size: var(--lumo-font-size-xxxl);
342
- }
343
- }
344
- `;
package/utility-global.js DELETED
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import { addLumoGlobalStyles } from './global.js';
7
- import { utility } from './utility.js';
8
-
9
- addLumoGlobalStyles('utility', utility);
package/utility.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import type { CSSResult } from 'lit';
2
-
3
- export const utility: CSSResult;
package/utility.js DELETED
@@ -1,34 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/register-styles.js';
7
- import { accessibility } from './utilities/accessibility.js';
8
- import { background } from './utilities/background.js';
9
- import { border } from './utilities/border.js';
10
- import { filter } from './utilities/filter.js';
11
- import { flexboxAndGrid } from './utilities/flexbox-grid.js';
12
- import { layout } from './utilities/layout.js';
13
- import { shadows } from './utilities/shadows.js';
14
- import { sizing } from './utilities/sizing.js';
15
- import { spacing } from './utilities/spacing.js';
16
- import { transition } from './utilities/transition.js';
17
- import { typography } from './utilities/typography.js';
18
-
19
- /* prettier-ignore */
20
- export const utility = css`
21
- ${accessibility}
22
- ${background}
23
- ${border}
24
- ${filter}
25
- ${flexboxAndGrid}
26
- ${layout}
27
- ${shadows}
28
- ${sizing}
29
- ${spacing}
30
- ${transition}
31
- ${typography}
32
- `;
33
-
34
- registerStyles('', utility, { moduleId: 'lumo-utility' });