@vaadin/vaadin-lumo-styles 25.0.0-alpha9 → 25.0.0-beta2

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 (179) hide show
  1. package/all-imports.d.ts +0 -8
  2. package/all-imports.js +0 -18
  3. package/components/accordion-heading.css +4 -3
  4. package/components/accordion-panel.css +4 -3
  5. package/components/app-layout.css +4 -3
  6. package/components/avatar-group.css +10 -9
  7. package/components/avatar.css +6 -4
  8. package/components/button.css +4 -4
  9. package/components/card.css +6 -4
  10. package/components/charts.css +4 -3
  11. package/components/checkbox-group.css +4 -3
  12. package/components/checkbox.css +4 -3
  13. package/components/combo-box.css +8 -7
  14. package/components/confirm-dialog.css +4 -3
  15. package/components/context-menu.css +8 -7
  16. package/components/crud.css +13 -12
  17. package/components/custom-field.css +4 -3
  18. package/components/dashboard.css +12 -11
  19. package/components/date-picker.css +12 -11
  20. package/components/date-time-picker.css +4 -3
  21. package/components/details-summary.css +4 -3
  22. package/components/details.css +4 -3
  23. package/components/dialog.css +4 -3
  24. package/components/drawer-toggle.css +4 -3
  25. package/components/email-field.css +4 -3
  26. package/components/field-highlighter.css +8 -7
  27. package/components/form-item.css +4 -3
  28. package/components/form-layout.css +8 -5
  29. package/components/grid-filter.css +4 -3
  30. package/components/grid-pro-edit-column.css +8 -7
  31. package/components/grid-pro.css +4 -3
  32. package/components/grid-sorter.css +4 -3
  33. package/components/grid-tree-toggle.css +4 -3
  34. package/components/grid.css +4 -3
  35. package/components/horizontal-layout.css +4 -3
  36. package/components/icon.css +4 -3
  37. package/components/index.css +71 -0
  38. package/components/input-container.css +4 -3
  39. package/components/integer-field.css +4 -3
  40. package/components/item.css +4 -3
  41. package/components/list-box.css +4 -3
  42. package/components/login-form.css +4 -3
  43. package/components/login.css +4 -3
  44. package/components/map.css +4 -3
  45. package/components/master-detail-layout.css +2 -1
  46. package/components/menu-bar.css +12 -11
  47. package/components/message-input-button.css +12 -0
  48. package/components/message-input.css +5 -4
  49. package/components/message.css +4 -3
  50. package/components/multi-select-combo-box.css +12 -11
  51. package/components/notification.css +6 -5
  52. package/components/number-field.css +4 -3
  53. package/components/overlay.css +4 -3
  54. package/components/password-field.css +6 -5
  55. package/components/popover.css +4 -3
  56. package/components/progress-bar.css +4 -3
  57. package/components/radio-button.css +4 -3
  58. package/components/radio-group.css +4 -3
  59. package/components/rich-text-editor.css +6 -5
  60. package/components/scroller.css +4 -3
  61. package/components/select.css +12 -11
  62. package/components/side-nav-item.css +4 -3
  63. package/components/side-nav.css +4 -3
  64. package/components/split-layout.css +4 -3
  65. package/components/tab.css +4 -3
  66. package/components/tabs.css +4 -3
  67. package/components/tabsheet.css +6 -5
  68. package/components/text-area.css +4 -3
  69. package/components/text-field.css +4 -3
  70. package/components/time-picker.css +8 -7
  71. package/components/tooltip.css +4 -3
  72. package/components/upload.css +15 -10
  73. package/components/vertical-layout.css +4 -3
  74. package/dist/lumo.css +43 -0
  75. package/dist/presets/compact.css +1 -0
  76. package/dist/utility.css +1 -0
  77. package/lumo.css +8 -3
  78. package/mixins/field-button.js +3 -4
  79. package/mixins/helper.js +3 -4
  80. package/mixins/input-field-shared.js +4 -7
  81. package/mixins/loader.js +3 -2
  82. package/mixins/menu-overlay.js +3 -2
  83. package/mixins/overlay.js +3 -4
  84. package/mixins/required-field.js +3 -4
  85. package/package.json +15 -9
  86. package/presets/compact.css +32 -0
  87. package/src/components/app-layout.css +5 -5
  88. package/src/components/avatar-group-overlay.css +0 -4
  89. package/src/components/chart.css +2 -1
  90. package/src/components/checkbox.css +2 -3
  91. package/src/components/combo-box.css +1 -1
  92. package/src/components/confirm-dialog-overlay.css +0 -4
  93. package/src/components/context-menu-overlay.css +21 -1
  94. package/src/components/dashboard-layout.css +0 -66
  95. package/src/components/dashboard-section.css +3 -31
  96. package/src/components/dashboard-widget.css +1 -85
  97. package/src/components/dashboard.css +0 -9
  98. package/src/components/date-picker-overlay-content.css +6 -40
  99. package/src/components/date-picker-overlay.css +2 -14
  100. package/src/components/date-picker.css +2 -2
  101. package/src/components/dialog-overlay.css +10 -19
  102. package/src/components/grid-pro-edit-select.css +1 -1
  103. package/src/components/grid-pro.css +14 -8
  104. package/src/components/grid.css +0 -7
  105. package/src/components/icon.css +2 -2
  106. package/src/components/menu-bar-button.css +7 -7
  107. package/src/components/message.css +7 -32
  108. package/src/components/multi-select-combo-box.css +2 -2
  109. package/src/components/number-field.css +6 -6
  110. package/src/components/password-field.css +4 -4
  111. package/src/components/popover-overlay.css +2 -138
  112. package/src/components/radio-button.css +1 -1
  113. package/src/components/rich-text-editor.css +40 -142
  114. package/src/components/scroller.css +3 -22
  115. package/src/components/select.css +15 -2
  116. package/src/components/side-nav-item.css +13 -0
  117. package/src/components/split-layout.css +19 -97
  118. package/src/components/tabsheet.css +4 -0
  119. package/src/components/text-area.css +2 -2
  120. package/src/components/time-picker.css +1 -1
  121. package/src/components/tooltip-overlay.css +4 -1
  122. package/src/components/upload-file.css +27 -61
  123. package/src/global/color-scheme.css +2 -1
  124. package/{user-colors.d.ts → src/global/index.css} +3 -3
  125. package/src/global/typography.css +2 -1
  126. package/src/mixins/dashboard-item.css +10 -141
  127. package/src/mixins/field-base.css +1 -1
  128. package/src/mixins/field-button.css +3 -3
  129. package/src/mixins/overlay.css +11 -1
  130. package/src/mixins/resizable-overlay.css +2 -1
  131. package/src/props/color.css +4 -2
  132. package/src/props/icons.css +21 -18
  133. package/src/props/index.css +12 -0
  134. package/src/props/reset.css +2 -1
  135. package/src/props/sizing.css +2 -1
  136. package/src/props/spacing.css +2 -1
  137. package/src/props/style.css +2 -1
  138. package/src/props/typography.css +2 -1
  139. package/utility.css +0 -1
  140. package/vaadin-iconset.js +2 -0
  141. package/auto-complete.css +0 -2512
  142. package/badge-global.js +0 -9
  143. package/badge.d.ts +0 -3
  144. package/badge.js +0 -178
  145. package/color-global.js +0 -9
  146. package/color.d.ts +0 -5
  147. package/color.js +0 -221
  148. package/components.css +0 -71
  149. package/font-icons.js +0 -69
  150. package/global.css +0 -8
  151. package/global.js +0 -5
  152. package/presets/compact.js +0 -40
  153. package/props.css +0 -12
  154. package/sizing.d.ts +0 -3
  155. package/sizing.js +0 -29
  156. package/spacing.d.ts +0 -3
  157. package/spacing.js +0 -37
  158. package/src/components/form-layout.css +0 -12
  159. package/src/components/upload-file-list.css +0 -24
  160. package/style.d.ts +0 -3
  161. package/style.js +0 -31
  162. package/typography-global.js +0 -13
  163. package/typography.d.ts +0 -7
  164. package/typography.js +0 -129
  165. package/user-colors.js +0 -33
  166. package/utilities/accessibility.js +0 -21
  167. package/utilities/background.js +0 -156
  168. package/utilities/border.js +0 -147
  169. package/utilities/filter.js +0 -34
  170. package/utilities/flexbox-grid.js +0 -619
  171. package/utilities/layout.js +0 -504
  172. package/utilities/shadows.js +0 -28
  173. package/utilities/sizing.js +0 -121
  174. package/utilities/spacing.js +0 -542
  175. package/utilities/transition.js +0 -50
  176. package/utilities/typography.js +0 -344
  177. package/utility-global.js +0 -9
  178. package/utility.d.ts +0 -3
  179. 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' });