@vaadin/vaadin-lumo-styles 24.8.4 → 25.0.0-alpha10

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 (226) hide show
  1. package/auto-complete.css +3 -73
  2. package/components/accordion-heading.css +14 -0
  3. package/components/accordion-panel.css +15 -0
  4. package/components/accordion.css +7 -0
  5. package/components/app-layout.css +11 -0
  6. package/components/avatar-group.css +31 -0
  7. package/components/avatar.css +17 -0
  8. package/components/button.css +12 -0
  9. package/components/card.css +50 -0
  10. package/components/charts.css +11 -0
  11. package/components/checkbox-group.css +23 -0
  12. package/components/checkbox.css +14 -0
  13. package/components/combo-box.css +47 -0
  14. package/components/confirm-dialog.css +17 -0
  15. package/components/context-menu.css +32 -0
  16. package/components/crud.css +40 -0
  17. package/components/custom-field.css +20 -0
  18. package/components/dashboard.css +34 -0
  19. package/components/date-picker.css +49 -0
  20. package/components/date-time-picker.css +28 -0
  21. package/components/details-summary.css +11 -0
  22. package/components/details.css +12 -0
  23. package/components/dialog.css +16 -0
  24. package/components/drawer-toggle.css +14 -0
  25. package/components/email-field.css +25 -0
  26. package/components/field-highlighter.css +22 -0
  27. package/components/form-item.css +11 -0
  28. package/components/form-layout.css +11 -0
  29. package/components/grid-filter-column.css +6 -0
  30. package/components/grid-filter.css +12 -0
  31. package/components/grid-pro-edit-column.css +48 -0
  32. package/components/grid-pro.css +14 -0
  33. package/components/grid-selection-column.css +6 -0
  34. package/components/grid-sort-column.css +6 -0
  35. package/components/grid-sorter.css +19 -0
  36. package/components/grid-tree-column.css +6 -0
  37. package/components/grid-tree-toggle.css +11 -0
  38. package/components/grid.css +11 -0
  39. package/components/horizontal-layout.css +11 -0
  40. package/components/icon.css +11 -0
  41. package/components/input-container.css +11 -0
  42. package/components/integer-field.css +25 -0
  43. package/components/item.css +11 -0
  44. package/components/list-box.css +11 -0
  45. package/components/login-form.css +14 -0
  46. package/components/login.css +15 -0
  47. package/components/map.css +11 -0
  48. package/components/master-detail-layout.css +19 -0
  49. package/components/menu-bar.css +47 -0
  50. package/components/message-input.css +13 -0
  51. package/components/message-list.css +6 -0
  52. package/components/message.css +12 -0
  53. package/components/multi-select-combo-box.css +61 -0
  54. package/components/notification.css +15 -0
  55. package/components/number-field.css +25 -0
  56. package/components/overlay.css +11 -0
  57. package/components/password-field.css +32 -0
  58. package/components/popover.css +14 -0
  59. package/components/progress-bar.css +11 -0
  60. package/components/radio-button.css +14 -0
  61. package/components/radio-group.css +23 -0
  62. package/components/rich-text-editor.css +26 -0
  63. package/components/scroller.css +11 -0
  64. package/components/select.css +48 -0
  65. package/components/side-nav-item.css +14 -0
  66. package/components/side-nav.css +12 -0
  67. package/components/split-layout.css +11 -0
  68. package/components/tab.css +11 -0
  69. package/components/tabs.css +12 -0
  70. package/components/tabsheet.css +19 -0
  71. package/components/text-area.css +25 -0
  72. package/components/text-field.css +23 -0
  73. package/components/time-picker.css +43 -0
  74. package/components/tooltip.css +14 -0
  75. package/components/upload.css +28 -0
  76. package/components/vertical-layout.css +11 -0
  77. package/components.css +71 -0
  78. package/font-icons.js +28 -26
  79. package/global.css +8 -0
  80. package/lumo.css +8 -0
  81. package/mixins/input-field-shared.js +1 -2
  82. package/mixins/menu-overlay.js +0 -2
  83. package/mixins/required-field.js +0 -1
  84. package/package.json +17 -15
  85. package/props.css +12 -0
  86. package/src/components/accordion-heading.css +42 -0
  87. package/src/components/accordion-panel.css +38 -0
  88. package/src/components/app-layout.css +193 -0
  89. package/src/components/avatar-group-menu-item.css +22 -0
  90. package/src/components/avatar-group-overlay.css +15 -0
  91. package/src/components/avatar-group.css +67 -0
  92. package/src/components/avatar.css +86 -0
  93. package/src/components/button.css +334 -0
  94. package/src/components/card.css +38 -0
  95. package/src/components/chart.css +85 -0
  96. package/src/components/checkbox-group.css +18 -0
  97. package/src/components/checkbox.css +341 -0
  98. package/src/components/combo-box-item.css +18 -0
  99. package/src/components/combo-box-overlay.css +15 -0
  100. package/src/components/combo-box.css +14 -0
  101. package/src/components/confirm-dialog-overlay.css +59 -0
  102. package/src/components/context-menu-item.css +39 -0
  103. package/src/components/context-menu-list-box.css +40 -0
  104. package/src/components/context-menu-overlay.css +41 -0
  105. package/src/components/crud-dialog-overlay.css +57 -0
  106. package/src/components/crud-edit.css +30 -0
  107. package/src/components/crud.css +157 -0
  108. package/src/components/custom-field.css +102 -0
  109. package/src/components/dashboard-layout.css +94 -0
  110. package/src/components/dashboard-section.css +113 -0
  111. package/src/components/dashboard-widget.css +224 -0
  112. package/src/components/dashboard.css +23 -0
  113. package/src/components/date-picker-month-calendar.css +192 -0
  114. package/src/components/date-picker-overlay-content.css +161 -0
  115. package/src/components/date-picker-overlay.css +60 -0
  116. package/src/components/date-picker-year.css +35 -0
  117. package/src/components/date-picker.css +41 -0
  118. package/src/components/date-time-picker.css +36 -0
  119. package/src/components/details-summary.css +131 -0
  120. package/src/components/details.css +37 -0
  121. package/src/components/dialog-overlay.css +173 -0
  122. package/src/components/drawer-toggle.css +51 -0
  123. package/src/components/email-field.css +26 -0
  124. package/src/components/field-outline.css +51 -0
  125. package/src/components/form-item.css +36 -0
  126. package/src/components/form-layout.css +12 -0
  127. package/src/components/grid-filter.css +16 -0
  128. package/src/components/grid-pro-edit-select.css +19 -0
  129. package/src/components/grid-pro.css +84 -0
  130. package/src/components/grid-sorter.css +70 -0
  131. package/src/components/grid-tree-toggle.css +104 -0
  132. package/src/components/grid.css +755 -0
  133. package/src/components/horizontal-layout.css +34 -0
  134. package/src/components/icon.css +11 -0
  135. package/src/components/input-container.css +228 -0
  136. package/src/components/item.css +94 -0
  137. package/src/components/list-box.css +31 -0
  138. package/src/components/login-form-wrapper.css +113 -0
  139. package/src/components/login-overlay-wrapper.css +189 -0
  140. package/src/components/map.css +182 -0
  141. package/src/components/menu-bar-button.css +128 -0
  142. package/src/components/menu-bar-item.css +23 -0
  143. package/src/components/menu-bar-overlay.css +10 -0
  144. package/src/components/menu-bar.css +31 -0
  145. package/src/components/message-input.css +30 -0
  146. package/src/components/message.css +82 -0
  147. package/src/components/multi-select-combo-box-chip.css +113 -0
  148. package/src/components/multi-select-combo-box-container.css +20 -0
  149. package/src/components/multi-select-combo-box-item.css +13 -0
  150. package/src/components/multi-select-combo-box-overlay.css +18 -0
  151. package/src/components/multi-select-combo-box.css +102 -0
  152. package/src/components/notification-card.css +228 -0
  153. package/src/components/notification-container.css +60 -0
  154. package/src/components/number-field.css +53 -0
  155. package/src/components/password-field-button.css +19 -0
  156. package/src/components/password-field.css +24 -0
  157. package/src/components/popover-overlay.css +156 -0
  158. package/src/components/progress-bar.css +295 -0
  159. package/src/components/radio-button.css +156 -0
  160. package/src/components/radio-group.css +18 -0
  161. package/src/components/rich-text-editor-popup-overlay.css +27 -0
  162. package/src/components/rich-text-editor.css +485 -0
  163. package/src/components/scroller.css +40 -0
  164. package/src/components/select-overlay.css +54 -0
  165. package/src/components/select-value-button.css +57 -0
  166. package/src/components/select.css +60 -0
  167. package/src/components/side-nav-item.css +170 -0
  168. package/src/components/side-nav.css +102 -0
  169. package/src/components/split-layout.css +131 -0
  170. package/src/components/tab.css +246 -0
  171. package/src/components/tabs.css +285 -0
  172. package/src/components/tabsheet.css +59 -0
  173. package/src/components/text-area.css +116 -0
  174. package/src/components/time-picker-overlay.css +15 -0
  175. package/src/components/time-picker.css +36 -0
  176. package/src/components/tooltip-overlay.css +50 -0
  177. package/src/components/upload-file-list.css +24 -0
  178. package/src/components/upload-file.css +133 -0
  179. package/src/components/upload-icon.css +20 -0
  180. package/src/components/upload.css +56 -0
  181. package/src/components/user-tag.css +48 -0
  182. package/src/components/user-tags-overlay.css +64 -0
  183. package/src/components/vertical-layout.css +34 -0
  184. package/src/global/badge.css +167 -0
  185. package/src/global/color-scheme.css +99 -0
  186. package/src/global/typography.css +113 -0
  187. package/src/mixins/checkable-field.css +67 -0
  188. package/src/mixins/combo-box-loader.css +14 -0
  189. package/src/mixins/combo-box-overlay.css +30 -0
  190. package/src/mixins/dashboard-item.css +252 -0
  191. package/src/mixins/field-base.css +187 -0
  192. package/src/mixins/field-button.css +46 -0
  193. package/src/mixins/field-error-message.css +36 -0
  194. package/src/mixins/field-helper.css +62 -0
  195. package/src/mixins/field-label.css +62 -0
  196. package/src/mixins/field-required.css +26 -0
  197. package/src/mixins/grid-pro-editor.css +35 -0
  198. package/src/mixins/group-field.css +58 -0
  199. package/src/mixins/loader.css +48 -0
  200. package/src/mixins/menu-overlay-core.css +36 -0
  201. package/src/mixins/menu-overlay-ext.css +63 -0
  202. package/src/mixins/overlay.css +121 -0
  203. package/src/mixins/resizable-overlay.css +99 -0
  204. package/src/props/color.css +98 -0
  205. package/src/props/icons.css +61 -0
  206. package/src/props/reset.css +11 -0
  207. package/src/props/sizing.css +19 -0
  208. package/src/props/spacing.css +27 -0
  209. package/src/props/style.css +21 -0
  210. package/src/props/typography.css +24 -0
  211. package/src/utilities/accessibility.css +17 -0
  212. package/src/utilities/background.css +189 -0
  213. package/src/utilities/border.css +173 -0
  214. package/src/utilities/filter.css +37 -0
  215. package/src/utilities/flexbox-grid.css +781 -0
  216. package/src/utilities/layout.css +629 -0
  217. package/src/utilities/shadows.css +29 -0
  218. package/src/utilities/sizing.css +142 -0
  219. package/src/utilities/spacing.css +682 -0
  220. package/src/utilities/transition.css +46 -0
  221. package/src/utilities/typography.css +424 -0
  222. package/style.d.ts +0 -2
  223. package/style.js +1 -89
  224. package/utilities/transition.js +3 -2
  225. package/utility.css +17 -0
  226. package/vaadin-iconset.js +2 -0
@@ -0,0 +1,113 @@
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
+ :where(body, :host) {
7
+ font-family: var(--lumo-font-family);
8
+ font-size: var(--lumo-font-size-m);
9
+ line-height: var(--lumo-line-height-m);
10
+ -webkit-text-size-adjust: 100%;
11
+ -webkit-font-smoothing: antialiased;
12
+ -moz-osx-font-smoothing: grayscale;
13
+ }
14
+
15
+ small,
16
+ [theme~='font-size-s'] {
17
+ font-size: var(--lumo-font-size-s);
18
+ line-height: var(--lumo-line-height-s);
19
+ }
20
+
21
+ [theme~='font-size-xs'] {
22
+ font-size: var(--lumo-font-size-xs);
23
+ line-height: var(--lumo-line-height-xs);
24
+ }
25
+
26
+ :where(h1, h2, h3, h4, h5, h6) {
27
+ font-weight: 600;
28
+ line-height: var(--lumo-line-height-xs);
29
+ color: var(--lumo-header-text-color);
30
+ margin-block: 0;
31
+ }
32
+
33
+ :where(h1) {
34
+ font-size: var(--lumo-font-size-xxxl);
35
+ }
36
+
37
+ :where(h2) {
38
+ font-size: var(--lumo-font-size-xxl);
39
+ }
40
+
41
+ :where(h3) {
42
+ font-size: var(--lumo-font-size-xl);
43
+ }
44
+
45
+ :where(h4) {
46
+ font-size: var(--lumo-font-size-l);
47
+ }
48
+
49
+ :where(h5) {
50
+ font-size: var(--lumo-font-size-m);
51
+ }
52
+
53
+ :where(h6) {
54
+ font-size: var(--lumo-font-size-xs);
55
+ text-transform: uppercase;
56
+ letter-spacing: 0.03em;
57
+ }
58
+
59
+ p,
60
+ blockquote {
61
+ margin-top: 0.5em;
62
+ margin-bottom: 0.75em;
63
+ }
64
+
65
+ a {
66
+ text-decoration: none;
67
+ }
68
+
69
+ a:where(:any-link) {
70
+ color: var(--lumo-primary-text-color);
71
+ }
72
+
73
+ a:where(:any-link):hover {
74
+ text-decoration: underline;
75
+ }
76
+
77
+ a:not(:any-link) {
78
+ color: var(--lumo-disabled-text-color);
79
+ }
80
+
81
+ hr {
82
+ display: block;
83
+ align-self: stretch;
84
+ height: 1px;
85
+ border: 0;
86
+ padding: 0;
87
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
88
+ background-color: var(--lumo-contrast-10pct);
89
+ }
90
+
91
+ b,
92
+ strong {
93
+ font-weight: 600;
94
+ }
95
+
96
+ code,
97
+ pre {
98
+ border-radius: var(--lumo-border-radius-m);
99
+ }
100
+
101
+ pre code {
102
+ background: transparent;
103
+ }
104
+
105
+ blockquote {
106
+ border-left: 2px solid var(--lumo-contrast-30pct);
107
+ color: var(--lumo-secondary-text-color);
108
+ }
109
+
110
+ blockquote[dir='rtl'] {
111
+ border-left: none;
112
+ border-right: 2px solid var(--lumo-contrast-30pct);
113
+ }
@@ -0,0 +1,67 @@
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_mixins_checkable-field {
7
+ :host {
8
+ display: inline-block;
9
+ }
10
+
11
+ :host([hidden]) {
12
+ display: none !important;
13
+ }
14
+
15
+ :host([disabled]) {
16
+ -webkit-tap-highlight-color: transparent;
17
+ }
18
+
19
+ .vaadin-checkbox-container,
20
+ .vaadin-radio-button-container {
21
+ display: grid;
22
+ grid-template-columns: auto 1fr;
23
+ align-items: baseline;
24
+ }
25
+
26
+ [part='checkbox'],
27
+ [part='radio'],
28
+ [part='label'],
29
+ ::slotted(input),
30
+ ::slotted(label) {
31
+ grid-row: 1;
32
+ }
33
+
34
+ [part='checkbox'],
35
+ [part='radio'],
36
+ ::slotted(input) {
37
+ grid-column: 1;
38
+ }
39
+
40
+ /* Control container (checkbox, radio button) */
41
+ [part='checkbox'],
42
+ [part='radio'] {
43
+ width: var(--_input-size, 1em);
44
+ height: var(--_input-size, 1em);
45
+ --_input-border-width: var(--vaadin-input-field-border-width, 0);
46
+ --_input-border-color: var(--vaadin-input-field-border-color, transparent);
47
+ box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
48
+ }
49
+
50
+ [part='checkbox']::before,
51
+ [part='radio']::before {
52
+ display: block;
53
+ content: '\202F';
54
+ line-height: var(--_input-size, 1em);
55
+ contain: paint;
56
+ }
57
+
58
+ /* visually hidden */
59
+ ::slotted(input) {
60
+ cursor: inherit;
61
+ margin: 0;
62
+ align-self: stretch;
63
+ appearance: none;
64
+ width: initial;
65
+ height: initial;
66
+ }
67
+ }
@@ -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_mixins_combo-box-loader {
7
+ [part='loader'] {
8
+ position: absolute;
9
+ z-index: 1;
10
+ inset-inline: var(--lumo-space-s);
11
+ top: var(--lumo-space-s);
12
+ margin-inline: auto 0;
13
+ }
14
+ }
@@ -0,0 +1,30 @@
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_mixins_combo-box-overlay {
7
+ [part='content'] {
8
+ display: flex;
9
+ flex-direction: column;
10
+ height: 100%;
11
+ padding: 0;
12
+ }
13
+
14
+ /* When items are empty, the spinner needs some room */
15
+ :host(:not([closing])) [part='content'] {
16
+ min-height: calc(2 * var(--lumo-space-s) + var(--lumo-icon-size-s));
17
+ }
18
+
19
+ [part='overlay'] {
20
+ position: relative;
21
+ }
22
+
23
+ :host([top-aligned]) [part='overlay'] {
24
+ margin-top: var(--lumo-space-xs);
25
+ }
26
+
27
+ :host([bottom-aligned]) [part='overlay'] {
28
+ margin-bottom: var(--lumo-space-xs);
29
+ }
30
+ }
@@ -0,0 +1,252 @@
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
+
7
+ @media lumo_mixins_dashboard-item {
8
+ :host {
9
+ box-sizing: border-box;
10
+ --_widget-background: var(--vaadin-dashboard-widget-background, var(--lumo-base-color));
11
+ --_widget-border-radius: var(--vaadin-dashboard-widget-border-radius, var(--lumo-border-radius-l));
12
+ --_widget-border-width: var(--vaadin-dashboard-widget-border-width, 1px);
13
+ --_widget-border-color: var(--vaadin-dashboard-widget-border-color, var(--lumo-contrast-20pct));
14
+ --_widget-shadow: var(--vaadin-dashboard-widget-shadow, 0 0 0 0 transparent);
15
+ --_widget-editable-shadow: var(--lumo-box-shadow-s);
16
+ --_widget-selected-shadow:
17
+ 0 2px 4px -1px var(--lumo-primary-color-10pct), 0 3px 12px -1px var(--lumo-primary-color-50pct);
18
+ --_drop-target-background-color: var(
19
+ --vaadin-dashboard-drop-target-background-color,
20
+ var(--lumo-primary-color-10pct)
21
+ );
22
+ --_drop-target-border: var(--vaadin-dashboard-drop-target-border, 1px dashed var(--lumo-primary-color-50pct));
23
+
24
+ color: var(--lumo-body-text-color);
25
+ font-family: var(--lumo-font-family);
26
+ font-size: var(--lumo-font-size-m);
27
+ line-height: var(--lumo-line-height-m);
28
+ --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
29
+ --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
30
+ --_icon-color: var(--lumo-contrast-60pct);
31
+ opacity: var(--_widget-opacity);
32
+ filter: var(--_widget-filter);
33
+ }
34
+
35
+ :host([dragging]) * {
36
+ visibility: hidden;
37
+ }
38
+
39
+ :host(:not([editable])) [part~='move-button'],
40
+ :host(:not([editable])) [part~='remove-button'],
41
+ :host(:not([editable])) #focus-button,
42
+ :host(:not([editable])) #focus-button-wrapper,
43
+ :host(:not([editable])) .mode-controls {
44
+ display: none;
45
+ }
46
+
47
+ #focustrap {
48
+ display: contents;
49
+ }
50
+
51
+ #focus-button-wrapper,
52
+ #focus-button {
53
+ position: absolute;
54
+ inset: 0;
55
+ opacity: 0;
56
+ }
57
+
58
+ #focus-button {
59
+ pointer-events: none;
60
+ padding: 0;
61
+ border: none;
62
+ }
63
+
64
+ .mode-controls {
65
+ position: absolute;
66
+ inset: 0;
67
+ z-index: 2;
68
+ }
69
+
70
+ .mode-controls[hidden] {
71
+ display: none;
72
+ }
73
+
74
+ /* Move-mode buttons */
75
+ [part~='move-backward-button'],
76
+ [part~='move-forward-button'],
77
+ [part~='move-apply-button'] {
78
+ position: absolute;
79
+ top: 50%;
80
+ }
81
+
82
+ [part~='move-backward-button'] {
83
+ inset-inline-start: 0;
84
+ transform: translateY(-50%);
85
+ }
86
+
87
+ [part~='move-forward-button'] {
88
+ inset-inline-end: 0;
89
+ transform: translateY(-50%);
90
+ }
91
+
92
+ [part~='move-apply-button'] {
93
+ left: 50%;
94
+ transform: translate(-50%, -50%);
95
+ --icon: var(--lumo-icons-checkmark);
96
+ font-size: var(--lumo-icon-size-m);
97
+ }
98
+
99
+ :host([first-child]) [part~='move-backward-button'],
100
+ :host([last-child]) [part~='move-forward-button'] {
101
+ display: none;
102
+ }
103
+
104
+ /* Resize-mode buttons */
105
+ [part~='resize-shrink-width-button'],
106
+ [part~='resize-shrink-height-button'],
107
+ [part~='resize-grow-width-button'],
108
+ [part~='resize-grow-height-button'],
109
+ [part~='resize-apply-button'] {
110
+ position: absolute;
111
+ }
112
+
113
+ [part~='resize-shrink-width-button'] {
114
+ inset-inline-end: 0;
115
+ top: 50%;
116
+ }
117
+
118
+ :host(:not([dir='rtl'])) [part~='resize-shrink-width-button'] {
119
+ transform: translateY(-50%) translateX(-100%);
120
+ }
121
+
122
+ :host([dir='rtl']) [part~='resize-shrink-width-button'] {
123
+ transform: translateY(-50%) translateX(100%);
124
+ }
125
+
126
+ .mode-controls:has([part~='resize-grow-width-button'][hidden]) [part~='resize-shrink-width-button'] {
127
+ transform: translateY(-50%);
128
+ }
129
+
130
+ [part~='resize-grow-width-button'] {
131
+ inset-inline-start: 100%;
132
+ top: 50%;
133
+ }
134
+
135
+ :host(:not([dir='rtl'])) [part~='resize-grow-width-button'] {
136
+ transform: translateY(-50%) translateX(-100%);
137
+ }
138
+
139
+ :host([dir='rtl']) [part~='resize-grow-width-button'] {
140
+ transform: translateY(-50%) translateX(100%);
141
+ }
142
+
143
+ [part~='resize-shrink-height-button'] {
144
+ bottom: 0;
145
+ left: 50%;
146
+ transform: translateX(-50%) translateY(-100%);
147
+ }
148
+
149
+ [part~='resize-grow-height-button'] {
150
+ top: 100%;
151
+ left: 50%;
152
+ transform: translateX(-50%) translateY(-100%);
153
+ }
154
+
155
+ [part~='resize-apply-button'] {
156
+ left: 50%;
157
+ top: 50%;
158
+
159
+ transform: translate(-50%, -50%);
160
+ }
161
+
162
+ :host([focused]) {
163
+ z-index: 1;
164
+ }
165
+
166
+ header {
167
+ overflow: hidden;
168
+ display: flex;
169
+ align-items: start;
170
+ box-sizing: border-box;
171
+ justify-content: space-between;
172
+ }
173
+
174
+ [part='title'] {
175
+ flex: 1;
176
+ color: var(--lumo-header-text-color);
177
+ white-space: var(--vaadin-dashboard-widget-title-wrap, wrap);
178
+ text-overflow: ellipsis;
179
+ overflow: hidden;
180
+ line-height: var(--lumo-line-height-s);
181
+ margin: 0 0 1px;
182
+ align-self: safe center;
183
+ }
184
+
185
+ vaadin-dashboard-button {
186
+ font-family: 'lumo-icons';
187
+ font-size: var(--lumo-icon-size-m);
188
+ margin: 0;
189
+ z-index: 1;
190
+ }
191
+
192
+ vaadin-dashboard-button .icon::before {
193
+ display: block;
194
+ content: var(--icon);
195
+ }
196
+
197
+ /* Common styles for non-mode edit buttons */
198
+ [part='move-button'],
199
+ [part='resize-button'],
200
+ [part='remove-button'] {
201
+ color: var(--_icon-color);
202
+ padding-inline: 0;
203
+ }
204
+
205
+ :where([part='move-button'], [part='resize-button'], [part='remove-button']):hover {
206
+ --_icon-color: var(--lumo-primary-text-color);
207
+ }
208
+
209
+ :host([selected]) {
210
+ opacity: 1;
211
+ z-index: 1;
212
+ --_icon-color: var(--lumo-primary-text-color);
213
+ }
214
+
215
+ :host(:is([move-mode], [resize-mode])) {
216
+ --_icon-color: var(--lumo-disabled-text-color);
217
+ }
218
+
219
+ /* Drag handle */
220
+ [part~='move-button'] {
221
+ cursor: move;
222
+ --icon: var(--lumo-icons-drag-handle);
223
+ }
224
+
225
+ /* Remove button */
226
+ [part~='remove-button'] {
227
+ cursor: pointer;
228
+ --icon: var(--lumo-icons-cross);
229
+ margin-inline-start: var(--lumo-space-xs);
230
+ }
231
+
232
+ /* Mode controls */
233
+ .mode-controls vaadin-dashboard-button[focused] {
234
+ z-index: 3;
235
+ }
236
+
237
+ /* Move mode */
238
+
239
+ :host(:not([dir='rtl'])) [part~='move-backward-button'],
240
+ :host([dir='rtl']) [part~='move-forward-button'] {
241
+ border-top-left-radius: 0;
242
+ border-bottom-left-radius: 0;
243
+ --icon: var(--lumo-icons-angle-left);
244
+ }
245
+
246
+ :host(:not([dir='rtl'])) [part~='move-forward-button'],
247
+ :host([dir='rtl']) [part~='move-backward-button'] {
248
+ border-top-right-radius: 0;
249
+ border-bottom-right-radius: 0;
250
+ --icon: var(--lumo-icons-angle-right);
251
+ }
252
+ }
@@ -0,0 +1,187 @@
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_mixins_field-base {
7
+ :host {
8
+ display: inline-flex;
9
+ outline: none;
10
+ --lumo-text-field-size: var(--lumo-size-m);
11
+ color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
12
+ font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
13
+ font-family: var(--lumo-font-family);
14
+ -webkit-font-smoothing: antialiased;
15
+ -moz-osx-font-smoothing: grayscale;
16
+ -webkit-tap-highlight-color: transparent;
17
+ padding: var(--lumo-space-xs) 0;
18
+ --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
19
+ --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
20
+ --_input-height: var(--vaadin-input-field-height, var(--lumo-text-field-size));
21
+ --_disabled-value-color: var(--vaadin-input-field-disabled-value-color, var(--lumo-disabled-text-color));
22
+ }
23
+
24
+ :host::before {
25
+ content: '\2003';
26
+ width: 0;
27
+ /* Size and position this element on the same vertical position as the input-field element
28
+ to make vertical align for the host element work as expected */
29
+ height: var(--_input-height);
30
+ box-sizing: border-box;
31
+ display: inline-flex;
32
+ align-items: center;
33
+ }
34
+
35
+ [class$='container'] {
36
+ display: flex;
37
+ flex-direction: column;
38
+ min-width: 100%;
39
+ max-width: 100%;
40
+ width: var(--vaadin-field-default-width, 12em);
41
+ }
42
+
43
+ :host([hidden]) {
44
+ display: none !important;
45
+ }
46
+
47
+ :host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
48
+ mask-image: none;
49
+ }
50
+
51
+ ::slotted(:is(input, textarea):placeholder-shown) {
52
+ color: var(--vaadin-input-field-placeholder-color, var(--lumo-secondary-text-color));
53
+ }
54
+
55
+ /* Hover */
56
+ :host(:hover:not([readonly]):not([focused]):not([disabled])) [part='input-field']::after {
57
+ opacity: var(--vaadin-input-field-hover-highlight-opacity, 0.1);
58
+ }
59
+
60
+ /* Touch device adjustment */
61
+ @media (pointer: coarse) {
62
+ :host(:hover:not([readonly]):not([focused]):not([disabled])) [part='input-field']::after {
63
+ opacity: 0;
64
+ }
65
+
66
+ :host(:active:not([readonly]):not([focused]):not([disabled])) [part='input-field']::after {
67
+ opacity: 0.2;
68
+ }
69
+ }
70
+
71
+ /* Trigger when not focusing using the keyboard */
72
+ :host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
73
+ transform: scaleX(0);
74
+ transition-duration: 0.15s, 1s;
75
+ }
76
+
77
+ /* Opt-in focus-ring when using pointer devices */
78
+ /* This applies a focus-ring as box-shadow when the element is focused, but
79
+ the ring is only visible / has a width when the respective CSS property is
80
+ "enabled" using a value of 1 */
81
+ :host([focused]) [part='input-field'] {
82
+ /* Borders are implemented using box-shadows as well. To avoid overriding
83
+ the border on focus, even if the pointer focus-ring is disabled, we need to:
84
+ - Duplicate the border box shadow for this rule
85
+ - Remove the border (by using width of 0) when the focus-ring is visible,
86
+ which is the same behavior as for the keyboard focus-ring below
87
+ - Apply the border when the focus ring is not visible
88
+ */
89
+ --_pointer-focus-visible: clamp(0, var(--lumo-input-field-pointer-focus-visible, 0), 1);
90
+ --_conditional-border-width: calc(calc(1 - var(--_pointer-focus-visible)) * var(--_input-border-width));
91
+ --_conditional-focus-ring-width: calc(var(--_pointer-focus-visible) * var(--_focus-ring-width));
92
+ box-shadow:
93
+ inset 0 0 0 var(--_conditional-border-width) var(--_input-border-color),
94
+ 0 0 0 var(--_conditional-focus-ring-width) var(--_focus-ring-color);
95
+ }
96
+
97
+ /* Focus-ring when using keyboard navigation */
98
+ :host([focus-ring]) [part='input-field'] {
99
+ box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
100
+ }
101
+
102
+ /* Read-only and disabled */
103
+ :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
104
+ opacity: 0;
105
+ }
106
+
107
+ /* Read-only style */
108
+ :host([readonly]) {
109
+ --vaadin-input-field-border-color: transparent;
110
+ }
111
+
112
+ /* Disabled style */
113
+ :host([disabled]) {
114
+ pointer-events: none;
115
+ --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
116
+ }
117
+
118
+ :host([disabled]) [part='label'],
119
+ :host([disabled]) [part='input-field'] ::slotted([slot$='fix']) {
120
+ color: var(--lumo-disabled-text-color);
121
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
122
+ }
123
+
124
+ :host([disabled]) [part='input-field'] ::slotted(:not([slot$='fix'])) {
125
+ color: var(--_disabled-value-color);
126
+ -webkit-text-fill-color: var(--_disabled-value-color);
127
+ }
128
+
129
+ /* Invalid style */
130
+ :host([invalid]) {
131
+ --vaadin-input-field-border-color: var(--lumo-error-color);
132
+ --_focus-ring-color: var(--lumo-error-color-50pct);
133
+ }
134
+
135
+ :host([input-prevented]) [part='input-field'] {
136
+ animation: shake 0.15s infinite;
137
+ }
138
+
139
+ @keyframes shake {
140
+ 25% {
141
+ transform: translateX(4px);
142
+ }
143
+
144
+ 75% {
145
+ transform: translateX(-4px);
146
+ }
147
+ }
148
+
149
+ /* Small theme */
150
+ :host([theme~='small']) {
151
+ font-size: var(--lumo-font-size-s);
152
+ --lumo-text-field-size: var(--lumo-size-s);
153
+ }
154
+
155
+ :host([theme~='small']) [part='label'] {
156
+ font-size: var(--lumo-font-size-xs);
157
+ }
158
+
159
+ :host([theme~='small']) [part='error-message'] {
160
+ font-size: var(--lumo-font-size-xxs);
161
+ }
162
+
163
+ /* Slotted content */
164
+ [part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
165
+ color: var(--lumo-secondary-text-color);
166
+ font-weight: 400;
167
+ }
168
+
169
+ [part='clear-button']::before {
170
+ content: var(--lumo-icons-cross);
171
+ }
172
+
173
+ @media (forced-colors: active) {
174
+ :host(:not([readonly])) [part='input-field'] {
175
+ outline: 1px solid;
176
+ outline-offset: -1px;
177
+ }
178
+
179
+ :host([focused]) [part='input-field'] {
180
+ outline-width: 2px;
181
+ }
182
+
183
+ :host([disabled]) [part='input-field'] {
184
+ outline-color: GrayText;
185
+ }
186
+ }
187
+ }
@@ -0,0 +1,46 @@
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_mixins_field-button {
7
+ [part$='button'] {
8
+ flex: none;
9
+ width: 1em;
10
+ height: 1em;
11
+ line-height: 1;
12
+ font-size: var(--lumo-icon-size-m);
13
+ text-align: center;
14
+ color: var(--lumo-contrast-60pct);
15
+ transition: 0.2s color;
16
+ cursor: var(--lumo-clickable-cursor);
17
+ }
18
+
19
+ [part$='button']:hover {
20
+ color: var(--lumo-contrast-90pct);
21
+ }
22
+
23
+ :host([disabled]) [part$='button'],
24
+ :host([readonly]) [part$='button'] {
25
+ color: var(--lumo-contrast-20pct);
26
+ cursor: default;
27
+ }
28
+
29
+ [part$='button']::before {
30
+ font-family: 'lumo-icons';
31
+ display: block;
32
+ }
33
+
34
+ [part='clear-button'] {
35
+ display: none;
36
+ cursor: default;
37
+ }
38
+
39
+ [part='clear-button']::before {
40
+ content: '\2715';
41
+ }
42
+
43
+ :host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
44
+ display: block;
45
+ }
46
+ }