@vaadin/vaadin-lumo-styles 25.0.0-alpha6 → 25.0.0-alpha8

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 (221) hide show
  1. package/auto-complete.css +0 -71
  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 +11 -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/global.css +8 -0
  79. package/lumo.css +8 -0
  80. package/package.json +8 -6
  81. package/props.css +12 -0
  82. package/src/components/accordion-heading.css +42 -0
  83. package/src/components/accordion-panel.css +38 -0
  84. package/src/components/app-layout.css +193 -0
  85. package/src/components/avatar-group-menu-item.css +22 -0
  86. package/src/components/avatar-group-overlay.css +15 -0
  87. package/src/components/avatar-group.css +67 -0
  88. package/src/components/avatar.css +86 -0
  89. package/src/components/button.css +334 -0
  90. package/src/components/card.css +38 -0
  91. package/src/components/chart.css +88 -0
  92. package/src/components/checkbox-group.css +18 -0
  93. package/src/components/checkbox.css +341 -0
  94. package/src/components/combo-box-item.css +18 -0
  95. package/src/components/combo-box-overlay.css +15 -0
  96. package/src/components/combo-box.css +14 -0
  97. package/src/components/confirm-dialog-overlay.css +59 -0
  98. package/src/components/context-menu-item.css +39 -0
  99. package/src/components/context-menu-list-box.css +40 -0
  100. package/src/components/context-menu-overlay.css +41 -0
  101. package/src/components/crud-dialog-overlay.css +57 -0
  102. package/src/components/crud-edit.css +30 -0
  103. package/src/components/crud.css +157 -0
  104. package/src/components/custom-field.css +102 -0
  105. package/src/components/dashboard-layout.css +94 -0
  106. package/src/components/dashboard-section.css +113 -0
  107. package/src/components/dashboard-widget.css +224 -0
  108. package/src/components/dashboard.css +23 -0
  109. package/src/components/date-picker-month-calendar.css +192 -0
  110. package/src/components/date-picker-overlay-content.css +161 -0
  111. package/src/components/date-picker-overlay.css +60 -0
  112. package/src/components/date-picker-year.css +35 -0
  113. package/src/components/date-picker.css +41 -0
  114. package/src/components/date-time-picker.css +36 -0
  115. package/src/components/details-summary.css +131 -0
  116. package/src/components/details.css +37 -0
  117. package/src/components/dialog-overlay.css +173 -0
  118. package/src/components/drawer-toggle.css +51 -0
  119. package/src/components/email-field.css +26 -0
  120. package/src/components/field-outline.css +51 -0
  121. package/src/components/form-item.css +36 -0
  122. package/src/components/form-layout.css +11 -0
  123. package/src/components/grid-filter.css +16 -0
  124. package/src/components/grid-pro-edit-select.css +19 -0
  125. package/src/components/grid-pro.css +84 -0
  126. package/src/components/grid-sorter.css +70 -0
  127. package/src/components/grid-tree-toggle.css +104 -0
  128. package/src/components/grid.css +755 -0
  129. package/src/components/horizontal-layout.css +38 -0
  130. package/src/components/icon.css +11 -0
  131. package/src/components/input-container.css +230 -0
  132. package/src/components/item.css +94 -0
  133. package/src/components/list-box.css +31 -0
  134. package/src/components/login-form-wrapper.css +134 -0
  135. package/src/components/login-overlay-wrapper.css +179 -0
  136. package/src/components/map.css +182 -0
  137. package/src/components/master-detail-layout.css +21 -0
  138. package/src/components/menu-bar-button.css +128 -0
  139. package/src/components/menu-bar-item.css +23 -0
  140. package/src/components/menu-bar-overlay.css +10 -0
  141. package/src/components/menu-bar.css +31 -0
  142. package/src/components/message-input.css +30 -0
  143. package/src/components/message.css +82 -0
  144. package/src/components/multi-select-combo-box-chip.css +113 -0
  145. package/src/components/multi-select-combo-box-container.css +20 -0
  146. package/src/components/multi-select-combo-box-item.css +13 -0
  147. package/src/components/multi-select-combo-box-overlay.css +18 -0
  148. package/src/components/multi-select-combo-box.css +98 -0
  149. package/src/components/notification-card.css +228 -0
  150. package/src/components/notification-container.css +53 -0
  151. package/src/components/number-field.css +53 -0
  152. package/src/components/password-field-button.css +19 -0
  153. package/src/components/password-field.css +24 -0
  154. package/src/components/popover-overlay.css +156 -0
  155. package/src/components/progress-bar.css +295 -0
  156. package/src/components/radio-button.css +156 -0
  157. package/src/components/radio-group.css +18 -0
  158. package/src/components/rich-text-editor-popup-overlay.css +27 -0
  159. package/src/components/rich-text-editor.css +485 -0
  160. package/src/components/scroller.css +40 -0
  161. package/src/components/select-overlay.css +54 -0
  162. package/src/components/select-value-button.css +57 -0
  163. package/src/components/select.css +60 -0
  164. package/src/components/side-nav-item.css +170 -0
  165. package/src/components/side-nav.css +102 -0
  166. package/src/components/split-layout.css +131 -0
  167. package/src/components/tab.css +246 -0
  168. package/src/components/tabs.css +285 -0
  169. package/src/components/tabsheet.css +59 -0
  170. package/src/components/text-area.css +116 -0
  171. package/src/components/time-picker-overlay.css +15 -0
  172. package/src/components/time-picker.css +36 -0
  173. package/src/components/tooltip-overlay.css +50 -0
  174. package/src/components/upload-file-list.css +24 -0
  175. package/src/components/upload-file.css +133 -0
  176. package/src/components/upload-icon.css +14 -0
  177. package/src/components/upload.css +56 -0
  178. package/src/components/user-tag.css +48 -0
  179. package/src/components/user-tags-overlay.css +67 -0
  180. package/src/components/vertical-layout.css +38 -0
  181. package/src/global/badge.css +167 -0
  182. package/src/global/color-scheme.css +99 -0
  183. package/src/global/typography.css +113 -0
  184. package/src/mixins/checkable-field.css +67 -0
  185. package/src/mixins/combo-box-loader.css +14 -0
  186. package/src/mixins/combo-box-overlay.css +30 -0
  187. package/src/mixins/dashboard-item.css +253 -0
  188. package/src/mixins/field-base.css +187 -0
  189. package/src/mixins/field-button.css +46 -0
  190. package/src/mixins/field-error-message.css +36 -0
  191. package/src/mixins/field-helper.css +62 -0
  192. package/src/mixins/field-label.css +62 -0
  193. package/src/mixins/field-required.css +26 -0
  194. package/src/mixins/grid-pro-editor.css +35 -0
  195. package/src/mixins/group-field.css +58 -0
  196. package/src/mixins/loader.css +48 -0
  197. package/src/mixins/menu-overlay-core.css +36 -0
  198. package/src/mixins/menu-overlay-ext.css +63 -0
  199. package/src/mixins/overlay.css +121 -0
  200. package/src/mixins/resizable-overlay.css +99 -0
  201. package/src/props/color.css +98 -0
  202. package/src/props/icons.css +61 -0
  203. package/src/props/reset.css +11 -0
  204. package/src/props/sizing.css +19 -0
  205. package/src/props/spacing.css +27 -0
  206. package/src/props/style.css +21 -0
  207. package/src/props/typography.css +24 -0
  208. package/src/utilities/accessibility.css +17 -0
  209. package/src/utilities/background.css +189 -0
  210. package/src/utilities/border.css +173 -0
  211. package/src/utilities/filter.css +37 -0
  212. package/src/utilities/flexbox-grid.css +781 -0
  213. package/src/utilities/layout.css +629 -0
  214. package/src/utilities/shadows.css +29 -0
  215. package/src/utilities/sizing.css +142 -0
  216. package/src/utilities/spacing.css +682 -0
  217. package/src/utilities/transition.css +46 -0
  218. package/src/utilities/typography.css +424 -0
  219. package/style.d.ts +0 -2
  220. package/style.js +1 -89
  221. package/utility.css +17 -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,253 @@
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
+ /* stylelint-disable length-zero-no-unit */
9
+ :host {
10
+ box-sizing: border-box;
11
+ --_widget-background: var(--vaadin-dashboard-widget-background, var(--lumo-base-color));
12
+ --_widget-border-radius: var(--vaadin-dashboard-widget-border-radius, var(--lumo-border-radius-l));
13
+ --_widget-border-width: var(--vaadin-dashboard-widget-border-width, 1px);
14
+ --_widget-border-color: var(--vaadin-dashboard-widget-border-color, var(--lumo-contrast-20pct));
15
+ --_widget-shadow: var(--vaadin-dashboard-widget-shadow, 0 0 0 0 transparent);
16
+ --_widget-editable-shadow: var(--lumo-box-shadow-s);
17
+ --_widget-selected-shadow:
18
+ 0 2px 4px -1px var(--lumo-primary-color-10pct), 0 3px 12px -1px var(--lumo-primary-color-50pct);
19
+ --_drop-target-background-color: var(
20
+ --vaadin-dashboard-drop-target-background-color,
21
+ var(--lumo-primary-color-10pct)
22
+ );
23
+ --_drop-target-border: var(--vaadin-dashboard-drop-target-border, 1px dashed var(--lumo-primary-color-50pct));
24
+
25
+ color: var(--lumo-body-text-color);
26
+ font-family: var(--lumo-font-family);
27
+ font-size: var(--lumo-font-size-m);
28
+ line-height: var(--lumo-line-height-m);
29
+ --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
30
+ --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
31
+ --_icon-color: var(--lumo-contrast-60pct);
32
+ opacity: var(--_widget-opacity);
33
+ filter: var(--_widget-filter);
34
+ }
35
+
36
+ :host([dragging]) * {
37
+ visibility: hidden;
38
+ }
39
+
40
+ :host(:not([editable])) [part~='move-button'],
41
+ :host(:not([editable])) [part~='remove-button'],
42
+ :host(:not([editable])) #focus-button,
43
+ :host(:not([editable])) #focus-button-wrapper,
44
+ :host(:not([editable])) .mode-controls {
45
+ display: none;
46
+ }
47
+
48
+ #focustrap {
49
+ display: contents;
50
+ }
51
+
52
+ #focus-button-wrapper,
53
+ #focus-button {
54
+ position: absolute;
55
+ inset: 0;
56
+ opacity: 0;
57
+ }
58
+
59
+ #focus-button {
60
+ pointer-events: none;
61
+ padding: 0;
62
+ border: none;
63
+ }
64
+
65
+ .mode-controls {
66
+ position: absolute;
67
+ inset: 0;
68
+ z-index: 2;
69
+ }
70
+
71
+ .mode-controls[hidden] {
72
+ display: none;
73
+ }
74
+
75
+ /* Move-mode buttons */
76
+ [part~='move-backward-button'],
77
+ [part~='move-forward-button'],
78
+ [part~='move-apply-button'] {
79
+ position: absolute;
80
+ top: 50%;
81
+ }
82
+
83
+ [part~='move-backward-button'] {
84
+ inset-inline-start: 0;
85
+ transform: translateY(-50%);
86
+ }
87
+
88
+ [part~='move-forward-button'] {
89
+ inset-inline-end: 0;
90
+ transform: translateY(-50%);
91
+ }
92
+
93
+ [part~='move-apply-button'] {
94
+ left: 50%;
95
+ transform: translate(-50%, -50%);
96
+ --icon: var(--lumo-icons-checkmark);
97
+ font-size: var(--lumo-icon-size-m);
98
+ }
99
+
100
+ :host([first-child]) [part~='move-backward-button'],
101
+ :host([last-child]) [part~='move-forward-button'] {
102
+ display: none;
103
+ }
104
+
105
+ /* Resize-mode buttons */
106
+ [part~='resize-shrink-width-button'],
107
+ [part~='resize-shrink-height-button'],
108
+ [part~='resize-grow-width-button'],
109
+ [part~='resize-grow-height-button'],
110
+ [part~='resize-apply-button'] {
111
+ position: absolute;
112
+ }
113
+
114
+ [part~='resize-shrink-width-button'] {
115
+ inset-inline-end: 0;
116
+ top: 50%;
117
+ }
118
+
119
+ :host(:not([dir='rtl'])) [part~='resize-shrink-width-button'] {
120
+ transform: translateY(-50%) translateX(-100%);
121
+ }
122
+
123
+ :host([dir='rtl']) [part~='resize-shrink-width-button'] {
124
+ transform: translateY(-50%) translateX(100%);
125
+ }
126
+
127
+ .mode-controls:has([part~='resize-grow-width-button'][hidden]) [part~='resize-shrink-width-button'] {
128
+ transform: translateY(-50%);
129
+ }
130
+
131
+ [part~='resize-grow-width-button'] {
132
+ inset-inline-start: 100%;
133
+ top: 50%;
134
+ }
135
+
136
+ :host(:not([dir='rtl'])) [part~='resize-grow-width-button'] {
137
+ transform: translateY(-50%) translateX(-100%);
138
+ }
139
+
140
+ :host([dir='rtl']) [part~='resize-grow-width-button'] {
141
+ transform: translateY(-50%) translateX(100%);
142
+ }
143
+
144
+ [part~='resize-shrink-height-button'] {
145
+ bottom: 0;
146
+ left: 50%;
147
+ transform: translateX(-50%) translateY(-100%);
148
+ }
149
+
150
+ [part~='resize-grow-height-button'] {
151
+ top: 100%;
152
+ left: 50%;
153
+ transform: translateX(-50%) translateY(-100%);
154
+ }
155
+
156
+ [part~='resize-apply-button'] {
157
+ left: 50%;
158
+ top: 50%;
159
+
160
+ transform: translate(-50%, -50%);
161
+ }
162
+
163
+ :host([focused]) {
164
+ z-index: 1;
165
+ }
166
+
167
+ header {
168
+ overflow: hidden;
169
+ display: flex;
170
+ align-items: start;
171
+ box-sizing: border-box;
172
+ justify-content: space-between;
173
+ }
174
+
175
+ [part='title'] {
176
+ flex: 1;
177
+ color: var(--lumo-header-text-color);
178
+ white-space: var(--vaadin-dashboard-widget-title-wrap, wrap);
179
+ text-overflow: ellipsis;
180
+ overflow: hidden;
181
+ line-height: var(--lumo-line-height-s);
182
+ margin: 0 0 1px;
183
+ align-self: safe center;
184
+ }
185
+
186
+ vaadin-dashboard-button {
187
+ font-family: 'lumo-icons';
188
+ font-size: var(--lumo-icon-size-m);
189
+ margin: 0;
190
+ z-index: 1;
191
+ }
192
+
193
+ vaadin-dashboard-button .icon::before {
194
+ display: block;
195
+ content: var(--icon);
196
+ }
197
+
198
+ /* Common styles for non-mode edit buttons */
199
+ [part='move-button'],
200
+ [part='resize-button'],
201
+ [part='remove-button'] {
202
+ color: var(--_icon-color);
203
+ padding-inline: 0;
204
+ }
205
+
206
+ :where([part='move-button'], [part='resize-button'], [part='remove-button']):hover {
207
+ --_icon-color: var(--lumo-primary-text-color);
208
+ }
209
+
210
+ :host([selected]) {
211
+ opacity: 1;
212
+ z-index: 1;
213
+ --_icon-color: var(--lumo-primary-text-color);
214
+ }
215
+
216
+ :host(:is([move-mode], [resize-mode])) {
217
+ --_icon-color: var(--lumo-disabled-text-color);
218
+ }
219
+
220
+ /* Drag handle */
221
+ [part~='move-button'] {
222
+ cursor: move;
223
+ --icon: var(--lumo-icons-drag-handle);
224
+ }
225
+
226
+ /* Remove button */
227
+ [part~='remove-button'] {
228
+ cursor: pointer;
229
+ --icon: var(--lumo-icons-cross);
230
+ margin-inline-start: var(--lumo-space-xs);
231
+ }
232
+
233
+ /* Mode controls */
234
+ .mode-controls vaadin-dashboard-button[focused] {
235
+ z-index: 3;
236
+ }
237
+
238
+ /* Move mode */
239
+
240
+ :host(:not([dir='rtl'])) [part~='move-backward-button'],
241
+ :host([dir='rtl']) [part~='move-forward-button'] {
242
+ border-top-left-radius: 0;
243
+ border-bottom-left-radius: 0;
244
+ --icon: var(--lumo-icons-angle-left);
245
+ }
246
+
247
+ :host(:not([dir='rtl'])) [part~='move-forward-button'],
248
+ :host([dir='rtl']) [part~='move-backward-button'] {
249
+ border-top-right-radius: 0;
250
+ border-bottom-right-radius: 0;
251
+ --icon: var(--lumo-icons-angle-right);
252
+ }
253
+ }
@@ -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
+ }