@vaadin/vaadin-lumo-styles 25.0.0-alpha2 → 25.0.0-alpha20

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 (263) hide show
  1. package/all-imports.d.ts +0 -8
  2. package/all-imports.js +0 -18
  3. package/components/accordion-heading.css +14 -0
  4. package/components/accordion-panel.css +15 -0
  5. package/{user-colors.d.ts → components/accordion.css} +2 -3
  6. package/components/app-layout.css +11 -0
  7. package/components/avatar-group.css +31 -0
  8. package/components/avatar.css +17 -0
  9. package/components/button.css +11 -0
  10. package/components/card.css +50 -0
  11. package/components/charts.css +11 -0
  12. package/components/checkbox-group.css +23 -0
  13. package/components/checkbox.css +14 -0
  14. package/components/combo-box.css +47 -0
  15. package/components/confirm-dialog.css +17 -0
  16. package/components/context-menu.css +32 -0
  17. package/components/crud.css +40 -0
  18. package/components/custom-field.css +20 -0
  19. package/components/dashboard.css +34 -0
  20. package/components/date-picker.css +49 -0
  21. package/components/date-time-picker.css +28 -0
  22. package/components/details-summary.css +11 -0
  23. package/components/details.css +12 -0
  24. package/components/dialog.css +16 -0
  25. package/components/drawer-toggle.css +14 -0
  26. package/components/email-field.css +25 -0
  27. package/components/field-highlighter.css +22 -0
  28. package/components/form-item.css +11 -0
  29. package/components/form-layout.css +11 -0
  30. package/components/grid-filter-column.css +6 -0
  31. package/components/grid-filter.css +12 -0
  32. package/components/grid-pro-edit-column.css +48 -0
  33. package/components/grid-pro.css +14 -0
  34. package/components/grid-selection-column.css +6 -0
  35. package/components/grid-sort-column.css +6 -0
  36. package/components/grid-sorter.css +19 -0
  37. package/components/grid-tree-column.css +6 -0
  38. package/components/grid-tree-toggle.css +11 -0
  39. package/components/grid.css +11 -0
  40. package/components/horizontal-layout.css +11 -0
  41. package/components/icon.css +11 -0
  42. package/components/index.css +71 -0
  43. package/components/input-container.css +11 -0
  44. package/components/integer-field.css +25 -0
  45. package/components/item.css +11 -0
  46. package/components/list-box.css +11 -0
  47. package/components/login-form.css +14 -0
  48. package/components/login.css +15 -0
  49. package/components/map.css +11 -0
  50. package/components/master-detail-layout.css +19 -0
  51. package/components/menu-bar.css +47 -0
  52. package/components/message-input-button.css +11 -0
  53. package/components/message-input.css +13 -0
  54. package/components/message-list.css +6 -0
  55. package/components/message.css +12 -0
  56. package/components/multi-select-combo-box.css +61 -0
  57. package/components/notification.css +15 -0
  58. package/components/number-field.css +25 -0
  59. package/components/overlay.css +11 -0
  60. package/components/password-field.css +32 -0
  61. package/components/popover.css +14 -0
  62. package/components/progress-bar.css +11 -0
  63. package/components/radio-button.css +14 -0
  64. package/components/radio-group.css +23 -0
  65. package/components/rich-text-editor.css +26 -0
  66. package/components/scroller.css +11 -0
  67. package/components/select.css +48 -0
  68. package/components/side-nav-item.css +14 -0
  69. package/components/side-nav.css +12 -0
  70. package/components/split-layout.css +11 -0
  71. package/components/tab.css +11 -0
  72. package/components/tabs.css +12 -0
  73. package/components/tabsheet.css +19 -0
  74. package/components/text-area.css +25 -0
  75. package/components/text-field.css +23 -0
  76. package/components/time-picker.css +43 -0
  77. package/components/tooltip.css +14 -0
  78. package/components/upload.css +31 -0
  79. package/components/vertical-layout.css +11 -0
  80. package/dist/lumo.css +41 -0
  81. package/dist/presets/compact.css +1 -0
  82. package/dist/utility.css +1 -0
  83. package/{color-global.js → global.css} +3 -4
  84. package/{badge-global.js → lumo.css} +3 -4
  85. package/mixins/field-button.js +3 -4
  86. package/mixins/helper.js +3 -4
  87. package/mixins/input-field-shared.js +5 -9
  88. package/mixins/loader.js +3 -2
  89. package/mixins/menu-overlay.js +3 -4
  90. package/mixins/overlay.js +3 -4
  91. package/mixins/required-field.js +3 -4
  92. package/package.json +23 -14
  93. package/postcss.config.js +11 -0
  94. package/presets/compact.css +31 -0
  95. package/props.css +12 -0
  96. package/src/components/accordion-heading.css +42 -0
  97. package/src/components/accordion-panel.css +38 -0
  98. package/src/components/app-layout.css +193 -0
  99. package/src/components/avatar-group-menu-item.css +22 -0
  100. package/src/components/avatar-group-overlay.css +11 -0
  101. package/src/components/avatar-group.css +67 -0
  102. package/src/components/avatar.css +86 -0
  103. package/src/components/button.css +334 -0
  104. package/src/components/card.css +38 -0
  105. package/src/components/chart.css +86 -0
  106. package/src/components/checkbox-group.css +18 -0
  107. package/src/components/checkbox.css +340 -0
  108. package/src/components/combo-box-item.css +18 -0
  109. package/src/components/combo-box-overlay.css +15 -0
  110. package/src/components/combo-box.css +14 -0
  111. package/src/components/confirm-dialog-overlay.css +55 -0
  112. package/src/components/context-menu-item.css +39 -0
  113. package/src/components/context-menu-list-box.css +40 -0
  114. package/src/components/context-menu-overlay.css +62 -0
  115. package/src/components/crud-dialog-overlay.css +57 -0
  116. package/src/components/crud-edit.css +30 -0
  117. package/src/components/crud.css +157 -0
  118. package/src/components/custom-field.css +102 -0
  119. package/src/components/dashboard-layout.css +28 -0
  120. package/src/components/dashboard-section.css +85 -0
  121. package/src/components/dashboard-widget.css +140 -0
  122. package/src/components/dashboard.css +14 -0
  123. package/src/components/date-picker-month-calendar.css +192 -0
  124. package/src/components/date-picker-overlay-content.css +127 -0
  125. package/src/components/date-picker-overlay.css +48 -0
  126. package/src/components/date-picker-year.css +35 -0
  127. package/src/components/date-picker.css +41 -0
  128. package/src/components/date-time-picker.css +36 -0
  129. package/src/components/details-summary.css +131 -0
  130. package/src/components/details.css +37 -0
  131. package/src/components/dialog-overlay.css +164 -0
  132. package/src/components/drawer-toggle.css +51 -0
  133. package/src/components/email-field.css +26 -0
  134. package/src/components/field-outline.css +51 -0
  135. package/src/components/form-item.css +36 -0
  136. package/src/components/form-layout.css +12 -0
  137. package/src/components/grid-filter.css +16 -0
  138. package/src/components/grid-pro-edit-select.css +19 -0
  139. package/src/components/grid-pro.css +90 -0
  140. package/src/components/grid-sorter.css +70 -0
  141. package/src/components/grid-tree-toggle.css +104 -0
  142. package/src/components/grid.css +755 -0
  143. package/src/components/horizontal-layout.css +34 -0
  144. package/src/components/icon.css +11 -0
  145. package/src/components/input-container.css +228 -0
  146. package/src/components/item.css +94 -0
  147. package/src/components/list-box.css +31 -0
  148. package/src/components/login-form-wrapper.css +113 -0
  149. package/src/components/login-overlay-wrapper.css +189 -0
  150. package/src/components/map.css +182 -0
  151. package/src/components/menu-bar-button.css +128 -0
  152. package/src/components/menu-bar-item.css +23 -0
  153. package/{utility-global.js → src/components/menu-bar-overlay.css} +5 -4
  154. package/src/components/menu-bar.css +31 -0
  155. package/src/components/message-input.css +30 -0
  156. package/src/components/message.css +57 -0
  157. package/src/components/multi-select-combo-box-chip.css +113 -0
  158. package/src/components/multi-select-combo-box-container.css +20 -0
  159. package/src/components/multi-select-combo-box-item.css +13 -0
  160. package/src/components/multi-select-combo-box-overlay.css +18 -0
  161. package/src/components/multi-select-combo-box.css +102 -0
  162. package/src/components/notification-card.css +228 -0
  163. package/src/components/notification-container.css +60 -0
  164. package/src/components/number-field.css +53 -0
  165. package/src/components/password-field-button.css +19 -0
  166. package/src/components/password-field.css +24 -0
  167. package/src/components/popover-overlay.css +20 -0
  168. package/src/components/progress-bar.css +295 -0
  169. package/src/components/radio-button.css +156 -0
  170. package/src/components/radio-group.css +18 -0
  171. package/src/components/rich-text-editor-popup-overlay.css +27 -0
  172. package/src/components/rich-text-editor.css +383 -0
  173. package/src/components/scroller.css +21 -0
  174. package/src/components/select-overlay.css +54 -0
  175. package/src/components/select-value-button.css +57 -0
  176. package/src/components/select.css +73 -0
  177. package/src/components/side-nav-item.css +183 -0
  178. package/src/components/side-nav.css +102 -0
  179. package/src/components/split-layout.css +53 -0
  180. package/src/components/tab.css +246 -0
  181. package/src/components/tabs.css +285 -0
  182. package/src/components/tabsheet.css +63 -0
  183. package/src/components/text-area.css +116 -0
  184. package/src/components/time-picker-overlay.css +15 -0
  185. package/src/components/time-picker.css +36 -0
  186. package/src/components/tooltip-overlay.css +50 -0
  187. package/src/components/upload-file.css +99 -0
  188. package/src/components/upload-icon.css +20 -0
  189. package/src/components/upload.css +56 -0
  190. package/src/components/user-tag.css +48 -0
  191. package/src/components/user-tags-overlay.css +64 -0
  192. package/src/components/vertical-layout.css +34 -0
  193. package/src/global/badge.css +167 -0
  194. package/src/global/color-scheme.css +99 -0
  195. package/src/global/typography.css +113 -0
  196. package/src/mixins/checkable-field.css +67 -0
  197. package/src/mixins/combo-box-loader.css +14 -0
  198. package/src/mixins/combo-box-overlay.css +30 -0
  199. package/src/mixins/dashboard-item.css +121 -0
  200. package/src/mixins/field-base.css +187 -0
  201. package/src/mixins/field-button.css +46 -0
  202. package/src/mixins/field-error-message.css +36 -0
  203. package/src/mixins/field-helper.css +62 -0
  204. package/src/mixins/field-label.css +62 -0
  205. package/src/mixins/field-required.css +26 -0
  206. package/src/mixins/grid-pro-editor.css +35 -0
  207. package/src/mixins/group-field.css +58 -0
  208. package/src/mixins/loader.css +48 -0
  209. package/src/mixins/menu-overlay-core.css +36 -0
  210. package/src/mixins/menu-overlay-ext.css +63 -0
  211. package/src/mixins/overlay.css +130 -0
  212. package/src/mixins/resizable-overlay.css +100 -0
  213. package/src/props/color.css +98 -0
  214. package/src/props/icons.css +63 -0
  215. package/src/props/reset.css +11 -0
  216. package/src/props/sizing.css +19 -0
  217. package/src/props/spacing.css +27 -0
  218. package/src/props/style.css +21 -0
  219. package/src/props/typography.css +24 -0
  220. package/src/utilities/accessibility.css +17 -0
  221. package/src/utilities/background.css +189 -0
  222. package/src/utilities/border.css +173 -0
  223. package/src/utilities/filter.css +37 -0
  224. package/src/utilities/flexbox-grid.css +781 -0
  225. package/src/utilities/layout.css +629 -0
  226. package/src/utilities/shadows.css +29 -0
  227. package/src/utilities/sizing.css +142 -0
  228. package/src/utilities/spacing.css +682 -0
  229. package/src/utilities/transition.css +46 -0
  230. package/src/utilities/typography.css +424 -0
  231. package/utility.css +16 -0
  232. package/vaadin-iconset.js +4 -0
  233. package/auto-complete.css +0 -2582
  234. package/badge.d.ts +0 -3
  235. package/badge.js +0 -178
  236. package/color.d.ts +0 -5
  237. package/color.js +0 -221
  238. package/font-icons.js +0 -67
  239. package/global.js +0 -5
  240. package/presets/compact.js +0 -40
  241. package/sizing.d.ts +0 -3
  242. package/sizing.js +0 -29
  243. package/spacing.d.ts +0 -3
  244. package/spacing.js +0 -37
  245. package/style.d.ts +0 -5
  246. package/style.js +0 -119
  247. package/typography-global.js +0 -13
  248. package/typography.d.ts +0 -7
  249. package/typography.js +0 -129
  250. package/user-colors.js +0 -33
  251. package/utilities/accessibility.js +0 -21
  252. package/utilities/background.js +0 -156
  253. package/utilities/border.js +0 -147
  254. package/utilities/filter.js +0 -34
  255. package/utilities/flexbox-grid.js +0 -619
  256. package/utilities/layout.js +0 -504
  257. package/utilities/shadows.js +0 -28
  258. package/utilities/sizing.js +0 -121
  259. package/utilities/spacing.js +0 -542
  260. package/utilities/transition.js +0 -49
  261. package/utilities/typography.js +0 -344
  262. package/utility.d.ts +0 -3
  263. package/utility.js +0 -34
@@ -0,0 +1,340 @@
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
+ @media lumo_components_checkbox {
7
+ :host {
8
+ color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
9
+ font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
10
+ font-family: var(--lumo-font-family);
11
+ line-height: var(--lumo-line-height-s);
12
+ -webkit-font-smoothing: antialiased;
13
+ -moz-osx-font-smoothing: grayscale;
14
+ -webkit-tap-highlight-color: transparent;
15
+ -webkit-user-select: none;
16
+ user-select: none;
17
+ cursor: default;
18
+ outline: none;
19
+ --_checkbox-size: var(--vaadin-checkbox-size, calc(var(--lumo-size-m) / 2));
20
+ --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
21
+ --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
22
+ --_selection-color: var(--vaadin-selection-color, var(--lumo-primary-color));
23
+ --_invalid-background: var(--vaadin-input-field-invalid-background, var(--lumo-error-color-10pct));
24
+ --_disabled-checkmark-color: var(--vaadin-checkbox-disabled-checkmark-color, var(--lumo-contrast-30pct));
25
+ }
26
+
27
+ [part='label'] {
28
+ display: flex;
29
+ position: relative;
30
+ max-width: max-content;
31
+ }
32
+
33
+ :host([has-label]) ::slotted(label) {
34
+ padding: var(
35
+ --vaadin-checkbox-label-padding,
36
+ var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs) var(--lumo-space-xs)
37
+ );
38
+ }
39
+
40
+ :host([dir='rtl'][has-label]) ::slotted(label) {
41
+ padding: var(--lumo-space-xs) var(--lumo-space-xs) var(--lumo-space-xs) var(--lumo-space-s);
42
+ }
43
+
44
+ :host([has-label][required]) ::slotted(label) {
45
+ padding-inline-end: var(--lumo-space-m);
46
+ }
47
+
48
+ [part='checkbox'] {
49
+ --_input-size: var(--_checkbox-size);
50
+ margin: var(--lumo-space-xs);
51
+ position: relative;
52
+ border-radius: var(--vaadin-checkbox-border-radius, var(--lumo-border-radius-s));
53
+ background: var(--vaadin-checkbox-background, var(--lumo-contrast-20pct));
54
+ transition:
55
+ transform 0.2s cubic-bezier(0.12, 0.32, 0.54, 2),
56
+ background-color 0.15s;
57
+ cursor: var(--lumo-clickable-cursor);
58
+ /* Default field border color */
59
+ --_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
60
+ }
61
+
62
+ :host([indeterminate]),
63
+ :host([checked]) {
64
+ --vaadin-input-field-border-color: transparent;
65
+ }
66
+
67
+ :host([indeterminate]) [part='checkbox'],
68
+ :host([checked]) [part='checkbox'] {
69
+ background-color: var(--_selection-color);
70
+ }
71
+
72
+ /* Used for activation "halo" */
73
+ [part='checkbox']::before {
74
+ pointer-events: none;
75
+ color: transparent;
76
+ width: 100%;
77
+ height: 100%;
78
+ border-radius: inherit;
79
+ background-color: inherit;
80
+ transform: scale(1.4);
81
+ opacity: 0;
82
+ transition:
83
+ transform 0.1s,
84
+ opacity 0.8s;
85
+ }
86
+
87
+ /* Checkmark */
88
+ [part='checkbox']::after {
89
+ pointer-events: none;
90
+ font-family: 'lumo-icons';
91
+ content: var(--vaadin-checkbox-checkmark-char, var(--lumo-icons-checkmark));
92
+ color: var(--vaadin-checkbox-checkmark-color, var(--lumo-primary-contrast-color));
93
+ font-size: var(--vaadin-checkbox-checkmark-size, calc(var(--_checkbox-size) + 2px));
94
+ line-height: 1;
95
+ position: absolute;
96
+ top: -1px;
97
+ left: -1px;
98
+ contain: content;
99
+ opacity: 0;
100
+ }
101
+
102
+ :host([checked]) [part='checkbox']::after {
103
+ opacity: 1;
104
+ }
105
+
106
+ :host([readonly]:not([checked]):not([indeterminate])) {
107
+ color: var(--lumo-secondary-text-color);
108
+ }
109
+
110
+ :host([readonly]:not([checked]):not([indeterminate])) [part='checkbox'] {
111
+ background: transparent;
112
+ box-shadow: none;
113
+ }
114
+
115
+ :host([readonly]:not([checked]):not([indeterminate])) [part='checkbox']::after {
116
+ content: '';
117
+ box-sizing: border-box;
118
+ width: 100%;
119
+ height: 100%;
120
+ border-radius: inherit;
121
+ top: 0;
122
+ left: 0;
123
+ opacity: 1;
124
+ border: var(--vaadin-input-field-readonly-border, 1px dashed var(--lumo-contrast-50pct));
125
+ }
126
+
127
+ /* Indeterminate checkmark */
128
+ :host([indeterminate]) [part='checkbox']::after {
129
+ content: var(--vaadin-checkbox-checkmark-char-indeterminate, '');
130
+ opacity: 1;
131
+ top: 45%;
132
+ height: 10%;
133
+ left: 22%;
134
+ right: 22%;
135
+ width: auto;
136
+ border: 0;
137
+ background-color: var(--lumo-primary-contrast-color);
138
+ }
139
+
140
+ /* Focus ring */
141
+ :host([focus-ring]) [part='checkbox'] {
142
+ box-shadow:
143
+ 0 0 0 1px var(--lumo-base-color),
144
+ 0 0 0 calc(var(--_focus-ring-width) + 1px) var(--_focus-ring-color),
145
+ inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
146
+ }
147
+
148
+ :host([focus-ring][readonly]:not([checked]):not([indeterminate])) [part='checkbox'] {
149
+ box-shadow:
150
+ 0 0 0 1px var(--lumo-base-color),
151
+ 0 0 0 calc(var(--_focus-ring-width) + 1px) var(--_focus-ring-color);
152
+ }
153
+
154
+ /* Disabled */
155
+ :host([disabled]) {
156
+ pointer-events: none;
157
+ --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
158
+ }
159
+
160
+ :host([disabled]) ::slotted(label) {
161
+ color: inherit;
162
+ }
163
+
164
+ :host([disabled]) [part='checkbox'] {
165
+ background-color: var(--vaadin-checkbox-disabled-background, var(--lumo-contrast-10pct));
166
+ }
167
+
168
+ :host([disabled]) [part='checkbox']::after {
169
+ color: var(--_disabled-checkmark-color);
170
+ }
171
+
172
+ :host([disabled]) [part='label'],
173
+ :host([disabled]) [part='helper-text'] {
174
+ color: var(--lumo-disabled-text-color);
175
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
176
+ }
177
+
178
+ :host([indeterminate][disabled]) [part='checkbox']::after {
179
+ background-color: var(--_disabled-checkmark-color);
180
+ }
181
+
182
+ :host([readonly][checked]:not([disabled])) [part='checkbox'],
183
+ :host([readonly][indeterminate]:not([disabled])) [part='checkbox'] {
184
+ background-color: var(--vaadin-checkbox-readonly-checked-background, var(--lumo-contrast-70pct));
185
+ }
186
+
187
+ /* Hover */
188
+ :host(:not([checked]):not([indeterminate]):not([disabled]):not([readonly]):not([invalid]):hover) [part='checkbox'] {
189
+ background: var(--vaadin-checkbox-background-hover, var(--lumo-contrast-30pct));
190
+ }
191
+
192
+ /* Disable hover for touch devices */
193
+ @media (pointer: coarse) {
194
+ :host(:not([checked]):not([indeterminate]):not([disabled]):not([readonly]):not([invalid]):hover) [part='checkbox'] {
195
+ background: var(--vaadin-checkbox-background, var(--lumo-contrast-20pct));
196
+ }
197
+ }
198
+
199
+ /* Active */
200
+ :host([active]) [part='checkbox'] {
201
+ transform: scale(0.9);
202
+ transition-duration: 0.05s;
203
+ }
204
+
205
+ :host([active][checked]) [part='checkbox'] {
206
+ transform: scale(1.1);
207
+ }
208
+
209
+ :host([active]:not([checked])) [part='checkbox']::before {
210
+ transition-duration: 0.01s, 0.01s;
211
+ transform: scale(0);
212
+ opacity: 0.4;
213
+ }
214
+
215
+ /* Required */
216
+ :host([required]) [part='required-indicator'] {
217
+ position: absolute;
218
+ top: var(--lumo-space-xs);
219
+ right: var(--lumo-space-xs);
220
+ }
221
+
222
+ :host([required][dir='rtl']) [part='required-indicator'] {
223
+ right: auto;
224
+ left: var(--lumo-space-xs);
225
+ }
226
+
227
+ :host([required]) [part='required-indicator']::after {
228
+ content: var(--lumo-required-field-indicator, '\2022');
229
+ transition: opacity 0.2s;
230
+ color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
231
+ width: 1em;
232
+ text-align: center;
233
+ }
234
+
235
+ :host(:not([has-label])) [part='required-indicator'] {
236
+ display: none;
237
+ }
238
+
239
+ /* Invalid */
240
+ :host([invalid]) {
241
+ --vaadin-input-field-border-color: var(--lumo-error-color);
242
+ }
243
+
244
+ :host([invalid]) [part='checkbox'] {
245
+ background-color: var(--_invalid-background);
246
+ background-image: linear-gradient(var(--_invalid-background) 0%, var(--_invalid-background) 100%);
247
+ }
248
+
249
+ :host([invalid]:hover) [part='checkbox'] {
250
+ background-image:
251
+ linear-gradient(var(--_invalid-background) 0%, var(--_invalid-background) 100%),
252
+ linear-gradient(var(--_invalid-background) 0%, var(--_invalid-background) 100%);
253
+ }
254
+
255
+ :host([invalid][focus-ring]) {
256
+ --_focus-ring-color: var(--lumo-error-color-50pct);
257
+ }
258
+
259
+ :host([invalid]) [part='required-indicator']::after {
260
+ color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
261
+ }
262
+
263
+ /* Error message */
264
+ [part='error-message'] {
265
+ font-size: var(--vaadin-input-field-error-font-size, var(--lumo-font-size-xs));
266
+ line-height: var(--lumo-line-height-xs);
267
+ font-weight: var(--vaadin-input-field-error-font-weight, 400);
268
+ color: var(--vaadin-input-field-error-color, var(--lumo-error-text-color));
269
+ will-change: max-height;
270
+ transition: 0.4s max-height;
271
+ max-height: 5em;
272
+ padding-inline-start: var(--lumo-space-xs);
273
+ }
274
+
275
+ [part='helper-text'],
276
+ [part='error-message'] {
277
+ grid-column: 2;
278
+ }
279
+
280
+ :host(:not([has-helper])) [part='helper-text'],
281
+ :host(:not([has-error-message])) [part='error-message'] {
282
+ display: none;
283
+ }
284
+
285
+ :host([has-error-message]) [part='error-message']::after,
286
+ :host([has-helper]) [part='helper-text']::after {
287
+ content: '';
288
+ display: block;
289
+ height: 0.4em;
290
+ }
291
+
292
+ :host(:not([invalid])) [part='error-message'] {
293
+ max-height: 0;
294
+ overflow: hidden;
295
+ }
296
+
297
+ /* Helper */
298
+ [part='helper-text'] {
299
+ display: block;
300
+ color: var(--vaadin-input-field-helper-color, var(--lumo-secondary-text-color));
301
+ font-size: var(--vaadin-input-field-helper-font-size, var(--lumo-font-size-xs));
302
+ line-height: var(--lumo-line-height-xs);
303
+ font-weight: var(--vaadin-input-field-helper-font-weight, 400);
304
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
305
+ transition: color 0.2s;
306
+ padding-inline-start: var(--lumo-space-xs);
307
+ }
308
+
309
+ :host(:hover:not([readonly])) [part='helper-text'] {
310
+ color: var(--lumo-body-text-color);
311
+ }
312
+
313
+ :host([has-error-message]) ::slotted(label),
314
+ :host([has-helper]) ::slotted(label) {
315
+ padding-bottom: 0;
316
+ }
317
+
318
+ @media (forced-colors: active) {
319
+ [part='checkbox'] {
320
+ outline: 1px solid;
321
+ outline-offset: -1px;
322
+ }
323
+
324
+ :host([disabled]) [part='checkbox'],
325
+ :host([disabled]) [part='checkbox']::after {
326
+ outline-color: GrayText;
327
+ }
328
+
329
+ :host(:is([checked], [indeterminate])) [part='checkbox']::after {
330
+ outline: 1px solid;
331
+ outline-offset: -1px;
332
+ border-radius: inherit;
333
+ }
334
+
335
+ :host([focused]) [part='checkbox'],
336
+ :host([focused]) [part='checkbox']::after {
337
+ outline-width: 2px;
338
+ }
339
+ }
340
+ }
@@ -0,0 +1,18 @@
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
+ @media lumo_components_combo-box-item {
7
+ :host {
8
+ transition: background-color 100ms;
9
+ overflow: hidden;
10
+ --_lumo-item-selected-icon-display: block;
11
+ --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
12
+ --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
13
+ }
14
+
15
+ :host([focused]:not([disabled])) {
16
+ box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
17
+ }
18
+ }
@@ -0,0 +1,15 @@
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
+ @media lumo_components_combo-box-overlay {
7
+ :host {
8
+ --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
9
+ --_vaadin-combo-box-items-container-border-style: solid;
10
+ }
11
+
12
+ #overlay {
13
+ width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
14
+ }
15
+ }
@@ -0,0 +1,14 @@
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
+ @media lumo_components_combo-box {
7
+ :host([opened]) {
8
+ pointer-events: auto;
9
+ }
10
+
11
+ [part~='toggle-button']::before {
12
+ content: var(--lumo-icons-dropdown);
13
+ }
14
+ }
@@ -0,0 +1,55 @@
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
+ @media lumo_components_confirm-dialog-overlay {
7
+ [part='header'] {
8
+ pointer-events: auto;
9
+ margin-inline-start: calc(var(--lumo-space-l) - var(--lumo-space-m));
10
+ font-weight: 600;
11
+ line-height: var(--lumo-line-height-xs);
12
+ font-size: var(--lumo-font-size-xl);
13
+ color: var(--lumo-header-text-color);
14
+ }
15
+
16
+ ::slotted([slot='header']) {
17
+ display: contents !important;
18
+ font: inherit !important;
19
+ color: inherit !important;
20
+ }
21
+
22
+ /* Make buttons clickable */
23
+ [part='footer'] > * {
24
+ pointer-events: all;
25
+ }
26
+
27
+ [part='message'] {
28
+ width: 25em;
29
+ min-width: 100%;
30
+ max-width: 100%;
31
+ }
32
+
33
+ ::slotted([slot$='button'][theme~='tertiary']) {
34
+ padding-left: var(--lumo-space-s);
35
+ padding-right: var(--lumo-space-s);
36
+ }
37
+
38
+ [part='cancel-button'] {
39
+ flex-grow: 1;
40
+ }
41
+
42
+ @media (max-width: 360px) {
43
+ [part='footer'] {
44
+ flex-direction: column-reverse;
45
+ align-items: stretch;
46
+ padding: var(--lumo-space-s) var(--lumo-space-l);
47
+ gap: var(--lumo-space-s);
48
+ }
49
+
50
+ ::slotted([slot$='button']) {
51
+ width: 100%;
52
+ margin: 0;
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,39 @@
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
+ @media lumo_components_context-menu-item {
7
+ /* :hover needed to workaround https://github.com/vaadin/web-components/issues/3133 */
8
+ :host(:hover) {
9
+ user-select: none;
10
+ -webkit-user-select: none;
11
+ }
12
+
13
+ :host([role='menuitem'][menu-item-checked]) [part='checkmark']::before {
14
+ opacity: 1;
15
+ }
16
+
17
+ :host([aria-haspopup='true'])::after {
18
+ font-family: lumo-icons;
19
+ font-size: var(--lumo-icon-size-xs);
20
+ content: var(--lumo-icons-angle-right);
21
+ color: var(--lumo-tertiary-text-color);
22
+ }
23
+
24
+ :host(:not([dir='rtl'])[aria-haspopup='true'])::after {
25
+ margin-right: calc(var(--lumo-space-m) * -1);
26
+ padding-left: var(--lumo-space-m);
27
+ }
28
+
29
+ :host([expanded]) {
30
+ background-color: var(--lumo-primary-color-10pct);
31
+ }
32
+
33
+ /* RTL styles */
34
+ :host([dir='rtl'][aria-haspopup='true'])::after {
35
+ content: var(--lumo-icons-angle-left);
36
+ margin-left: calc(var(--lumo-space-m) * -1);
37
+ padding-right: var(--lumo-space-m);
38
+ }
39
+ }
@@ -0,0 +1,40 @@
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
+ @media lumo_components_context-menu-list-box {
7
+ :host {
8
+ --_lumo-list-box-item-selected-icon-display: block;
9
+ }
10
+
11
+ /* Normal item */
12
+ [part='items'] ::slotted([role='menuitem']) {
13
+ -webkit-tap-highlight-color: var(--lumo-primary-color-10pct);
14
+ cursor: default;
15
+ outline: none;
16
+ border-radius: var(--lumo-border-radius-m);
17
+ padding-left: calc(var(--lumo-border-radius-m) / 4);
18
+ padding-right: calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4);
19
+ }
20
+
21
+ /* Hovered item */
22
+ /* TODO a workaround until we have "focus-follows-mouse". After that, use the hover style for focus-ring as well */
23
+ [part='items'] ::slotted([role='menuitem']:hover:not([disabled])),
24
+ [part='items'] ::slotted([role='menuitem'][expanded]:not([disabled])) {
25
+ background-color: var(--lumo-primary-color-10pct);
26
+ }
27
+
28
+ /* RTL styles */
29
+ :host([dir='rtl']) [part='items'] ::slotted([role='menuitem']) {
30
+ padding-left: calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4);
31
+ padding-right: calc(var(--lumo-border-radius-m) / 4);
32
+ }
33
+
34
+ /* Focused item */
35
+ @media (pointer: coarse) {
36
+ [part='items'] ::slotted([role='menuitem']:hover:not([expanded]):not([disabled])) {
37
+ background-color: transparent;
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,62 @@
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
+ @media lumo_components_context-menu-overlay {
7
+ :host {
8
+ align-items: flex-start;
9
+ justify-content: flex-start;
10
+ --_default-offset: var(--lumo-space-xs);
11
+ /* TODO These style overrides should not be needed.
12
+ We should instead offer a way to have non-selectable items inside the context menu. */
13
+ --_lumo-list-box-item-selected-icon-display: none;
14
+ --_lumo-list-box-item-padding-left: calc(var(--lumo-space-m) + var(--lumo-border-radius-m) / 4);
15
+ }
16
+
17
+ :host([right-aligned]),
18
+ :host([end-aligned]) {
19
+ align-items: flex-end;
20
+ }
21
+
22
+ :host([bottom-aligned]) {
23
+ justify-content: flex-end;
24
+ }
25
+
26
+ [part='overlay'] {
27
+ background-color: #fff;
28
+ outline: none;
29
+ }
30
+
31
+ :host([phone]) {
32
+ inset: 0 0 var(--vaadin-overlay-viewport-bottom, 0) 0 !important;
33
+ align-items: stretch;
34
+ justify-content: flex-end;
35
+ }
36
+
37
+ @media (forced-colors: active) {
38
+ [part='overlay'] {
39
+ outline: 3px solid !important;
40
+ }
41
+ }
42
+
43
+ :host([position^='top'][top-aligned]) [part='overlay'],
44
+ :host([position^='bottom'][top-aligned]) [part='overlay'] {
45
+ margin-top: var(--vaadin-context-menu-offset-top, var(--_default-offset));
46
+ }
47
+
48
+ :host([position^='top'][bottom-aligned]) [part='overlay'],
49
+ :host([position^='bottom'][bottom-aligned]) [part='overlay'] {
50
+ margin-bottom: var(--vaadin-context-menu-offset-bottom, var(--_default-offset));
51
+ }
52
+
53
+ :host([position^='start'][start-aligned]) [part='overlay'],
54
+ :host([position^='end'][start-aligned]) [part='overlay'] {
55
+ margin-inline-start: var(--vaadin-context-menu-offset-start, var(--_default-offset));
56
+ }
57
+
58
+ :host([position^='start'][end-aligned]) [part='overlay'],
59
+ :host([position^='end'][end-aligned]) [part='overlay'] {
60
+ margin-inline-end: var(--vaadin-context-menu-offset-end, var(--_default-offset));
61
+ }
62
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ @media lumo_components_crud-dialog-overlay {
7
+ [part='overlay'] {
8
+ max-width: 54em;
9
+ min-width: 20em;
10
+ display: flex;
11
+ }
12
+
13
+ .resizer-container {
14
+ display: flex;
15
+ flex-direction: column;
16
+ flex-grow: 1;
17
+ }
18
+
19
+ [part='footer'] {
20
+ justify-content: flex-start;
21
+ flex-direction: row-reverse;
22
+ }
23
+
24
+ /* Make buttons clickable */
25
+ [part='footer'] ::slotted(:not([disabled])) {
26
+ pointer-events: all;
27
+ }
28
+
29
+ :host([fullscreen]) {
30
+ inset: 0;
31
+ padding: 0;
32
+ }
33
+
34
+ :host([fullscreen]) [part='overlay'] {
35
+ height: 100vh;
36
+ width: 100vw;
37
+ border-radius: 0 !important;
38
+ }
39
+
40
+ :host([fullscreen]) [part='content'] {
41
+ flex: 1;
42
+ }
43
+
44
+ [part='header'] ::slotted(h3) {
45
+ margin-top: 0 !important;
46
+ margin-bottom: 0 !important;
47
+ margin-inline-start: var(--lumo-space-s);
48
+ }
49
+
50
+ :host(:not([dir='rtl'])) ::slotted([slot='delete-button']) {
51
+ margin-right: auto;
52
+ }
53
+
54
+ :host([dir='rtl']) ::slotted([slot='delete-button']) {
55
+ margin-left: auto;
56
+ }
57
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ @media lumo_components_crud-edit {
7
+ :host {
8
+ display: block;
9
+ min-width: auto;
10
+ margin: 0;
11
+ font-family: 'lumo-icons', var(--lumo-font-family);
12
+ font-size: var(--lumo-icon-size-m);
13
+ line-height: 1;
14
+ position: relative;
15
+ width: var(--lumo-size-s);
16
+ height: var(--lumo-size-s);
17
+ outline: none;
18
+ }
19
+
20
+ [part='icon']::before {
21
+ content: var(--lumo-icons-edit);
22
+ width: var(--lumo-size-m);
23
+ height: var(--lumo-size-m);
24
+ line-height: var(--lumo-size-m);
25
+ text-align: center;
26
+ position: absolute;
27
+ top: calc((var(--lumo-size-m) - var(--lumo-size-s)) / -2);
28
+ left: calc((var(--lumo-size-m) - var(--lumo-size-s)) / -2);
29
+ }
30
+ }