@vaadin/vaadin-lumo-styles 25.0.0-alpha5 → 25.0.0-alpha7

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 (223) hide show
  1. package/components/accordion-heading.css +14 -0
  2. package/components/accordion-panel.css +15 -0
  3. package/components/accordion.css +7 -0
  4. package/components/app-layout.css +11 -0
  5. package/components/avatar-group.css +31 -0
  6. package/components/avatar.css +17 -0
  7. package/components/button.css +12 -0
  8. package/components/card.css +50 -0
  9. package/components/charts.css +11 -0
  10. package/components/checkbox-group.css +23 -0
  11. package/components/checkbox.css +14 -0
  12. package/components/combo-box.css +47 -0
  13. package/components/confirm-dialog.css +17 -0
  14. package/components/context-menu.css +32 -0
  15. package/components/crud.css +40 -0
  16. package/components/custom-field.css +20 -0
  17. package/components/dashboard.css +34 -0
  18. package/components/date-picker.css +49 -0
  19. package/components/date-time-picker.css +28 -0
  20. package/components/details-summary.css +11 -0
  21. package/components/details.css +12 -0
  22. package/components/dialog.css +16 -0
  23. package/components/drawer-toggle.css +14 -0
  24. package/components/email-field.css +25 -0
  25. package/components/field-highlighter.css +22 -0
  26. package/components/form-item.css +11 -0
  27. package/components/form-layout.css +11 -0
  28. package/components/grid-filter-column.css +6 -0
  29. package/components/grid-filter.css +12 -0
  30. package/components/grid-pro-edit-column.css +48 -0
  31. package/components/grid-pro.css +14 -0
  32. package/components/grid-selection-column.css +6 -0
  33. package/components/grid-sort-column.css +6 -0
  34. package/components/grid-sorter.css +19 -0
  35. package/components/grid-tree-column.css +6 -0
  36. package/components/grid-tree-toggle.css +11 -0
  37. package/components/grid.css +11 -0
  38. package/components/horizontal-layout.css +11 -0
  39. package/components/icon.css +11 -0
  40. package/components/input-container.css +11 -0
  41. package/components/integer-field.css +25 -0
  42. package/components/item.css +11 -0
  43. package/components/list-box.css +11 -0
  44. package/components/login-form.css +14 -0
  45. package/components/login.css +15 -0
  46. package/components/map.css +11 -0
  47. package/components/master-detail-layout.css +11 -0
  48. package/components/menu-bar.css +47 -0
  49. package/components/message-input.css +13 -0
  50. package/components/message-list.css +6 -0
  51. package/components/message.css +12 -0
  52. package/components/multi-select-combo-box.css +61 -0
  53. package/components/notification.css +15 -0
  54. package/components/number-field.css +25 -0
  55. package/components/overlay.css +11 -0
  56. package/components/password-field.css +32 -0
  57. package/components/popover.css +14 -0
  58. package/components/progress-bar.css +11 -0
  59. package/components/radio-button.css +14 -0
  60. package/components/radio-group.css +23 -0
  61. package/components/rich-text-editor.css +26 -0
  62. package/components/scroller.css +11 -0
  63. package/components/select.css +48 -0
  64. package/components/side-nav-item.css +14 -0
  65. package/components/side-nav.css +12 -0
  66. package/components/split-layout.css +11 -0
  67. package/components/tab.css +11 -0
  68. package/components/tabs.css +12 -0
  69. package/components/tabsheet.css +19 -0
  70. package/components/text-area.css +25 -0
  71. package/components/text-field.css +23 -0
  72. package/components/time-picker.css +43 -0
  73. package/components/tooltip.css +14 -0
  74. package/components/upload.css +28 -0
  75. package/components/vertical-layout.css +11 -0
  76. package/components.css +71 -0
  77. package/font-icons.js +28 -26
  78. package/global.css +14 -0
  79. package/lumo.css +8 -0
  80. package/mixins/input-field-shared.js +1 -2
  81. package/mixins/menu-overlay.js +0 -2
  82. package/package.json +8 -6
  83. package/props.css +12 -0
  84. package/src/components/accordion-heading.css +42 -0
  85. package/src/components/accordion-panel.css +38 -0
  86. package/src/components/app-layout.css +193 -0
  87. package/src/components/avatar-group-menu-item.css +22 -0
  88. package/src/components/avatar-group-overlay.css +15 -0
  89. package/src/components/avatar-group.css +67 -0
  90. package/src/components/avatar.css +110 -0
  91. package/src/components/button.css +335 -0
  92. package/src/components/card.css +38 -0
  93. package/src/components/chart.css +88 -0
  94. package/src/components/checkbox-group.css +18 -0
  95. package/src/components/checkbox.css +341 -0
  96. package/src/components/combo-box-item.css +18 -0
  97. package/src/components/combo-box-overlay.css +15 -0
  98. package/src/components/combo-box.css +14 -0
  99. package/src/components/confirm-dialog-overlay.css +59 -0
  100. package/src/components/context-menu-item.css +39 -0
  101. package/src/components/context-menu-list-box.css +40 -0
  102. package/src/components/context-menu-overlay.css +41 -0
  103. package/src/components/crud-dialog-overlay.css +57 -0
  104. package/src/components/crud-edit.css +30 -0
  105. package/src/components/crud.css +157 -0
  106. package/src/components/custom-field.css +102 -0
  107. package/src/components/dashboard-layout.css +94 -0
  108. package/src/components/dashboard-section.css +113 -0
  109. package/src/components/dashboard-widget.css +224 -0
  110. package/src/components/dashboard.css +23 -0
  111. package/src/components/date-picker-month-calendar.css +192 -0
  112. package/src/components/date-picker-overlay-content.css +161 -0
  113. package/src/components/date-picker-overlay.css +60 -0
  114. package/src/components/date-picker-year.css +35 -0
  115. package/src/components/date-picker.css +41 -0
  116. package/src/components/date-time-picker.css +36 -0
  117. package/src/components/details-summary.css +131 -0
  118. package/src/components/details.css +37 -0
  119. package/src/components/dialog-overlay.css +173 -0
  120. package/src/components/drawer-toggle.css +51 -0
  121. package/src/components/email-field.css +26 -0
  122. package/src/components/field-outline.css +51 -0
  123. package/src/components/form-item.css +36 -0
  124. package/src/components/form-layout.css +11 -0
  125. package/src/components/grid-filter.css +16 -0
  126. package/src/components/grid-pro-edit-select.css +19 -0
  127. package/src/components/grid-pro.css +84 -0
  128. package/src/components/grid-sorter.css +70 -0
  129. package/src/components/grid-tree-toggle.css +104 -0
  130. package/src/components/grid.css +755 -0
  131. package/src/components/horizontal-layout.css +38 -0
  132. package/src/components/icon.css +47 -0
  133. package/src/components/input-container.css +230 -0
  134. package/src/components/item.css +94 -0
  135. package/src/components/list-box.css +31 -0
  136. package/src/components/login-form-wrapper.css +128 -0
  137. package/src/components/login-overlay-wrapper.css +179 -0
  138. package/src/components/map.css +437 -0
  139. package/src/components/master-detail-layout.css +26 -0
  140. package/src/components/menu-bar-button.css +128 -0
  141. package/src/components/menu-bar-item.css +24 -0
  142. package/src/components/menu-bar-overlay.css +10 -0
  143. package/src/components/menu-bar.css +31 -0
  144. package/src/components/message-input.css +30 -0
  145. package/src/components/message.css +82 -0
  146. package/src/components/multi-select-combo-box-chip.css +113 -0
  147. package/src/components/multi-select-combo-box-container.css +20 -0
  148. package/src/components/multi-select-combo-box-item.css +13 -0
  149. package/src/components/multi-select-combo-box-overlay.css +18 -0
  150. package/src/components/multi-select-combo-box.css +98 -0
  151. package/src/components/notification-card.css +228 -0
  152. package/src/components/notification-container.css +53 -0
  153. package/src/components/number-field.css +53 -0
  154. package/src/components/password-field-button.css +19 -0
  155. package/src/components/password-field.css +24 -0
  156. package/src/components/popover-overlay.css +162 -0
  157. package/src/components/progress-bar.css +295 -0
  158. package/src/components/radio-button.css +156 -0
  159. package/src/components/radio-group.css +18 -0
  160. package/src/components/rich-text-editor-popup-overlay.css +27 -0
  161. package/src/components/rich-text-editor.css +485 -0
  162. package/src/components/scroller.css +40 -0
  163. package/src/components/select-overlay.css +54 -0
  164. package/src/components/select-value-button.css +57 -0
  165. package/src/components/select.css +56 -0
  166. package/src/components/side-nav-item.css +170 -0
  167. package/src/components/side-nav.css +102 -0
  168. package/src/components/split-layout.css +132 -0
  169. package/src/components/tab.css +246 -0
  170. package/src/components/tabs.css +285 -0
  171. package/src/components/tabsheet.css +59 -0
  172. package/src/components/text-area.css +116 -0
  173. package/src/components/time-picker-overlay.css +15 -0
  174. package/src/components/time-picker.css +36 -0
  175. package/src/components/tooltip-overlay.css +53 -0
  176. package/src/components/upload-file-list.css +24 -0
  177. package/src/components/upload-file.css +133 -0
  178. package/src/components/upload-icon.css +14 -0
  179. package/src/components/upload.css +56 -0
  180. package/src/components/user-tag.css +48 -0
  181. package/src/components/user-tags-overlay.css +67 -0
  182. package/src/components/vertical-layout.css +38 -0
  183. package/src/global/badge.css +167 -0
  184. package/src/global/dark.css +93 -0
  185. package/src/global/style.css +93 -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 +253 -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 +113 -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/utility.css +17 -0
  223. package/vaadin-iconset.js +2 -0
@@ -0,0 +1,173 @@
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_dialog-overlay {
7
+ [part='header'],
8
+ [part='header-content'],
9
+ [part='footer'] {
10
+ display: flex;
11
+ align-items: center;
12
+ flex-wrap: wrap;
13
+ flex: none;
14
+ pointer-events: none;
15
+ z-index: 1;
16
+ gap: var(--lumo-space-xs) var(--lumo-space-s);
17
+ line-height: var(--lumo-line-height-s);
18
+ }
19
+
20
+ [part='header'] {
21
+ flex-wrap: nowrap;
22
+ padding: var(--lumo-space-m);
23
+ background-color: var(--lumo-base-color);
24
+ border-radius: var(--lumo-border-radius-l) var(--lumo-border-radius-l) 0 0; /* Needed for Safari */
25
+ }
26
+
27
+ [part='footer'] {
28
+ padding: var(--lumo-space-s) var(--lumo-space-m);
29
+ background-color: var(--lumo-contrast-5pct);
30
+ border-radius: 0 0 var(--lumo-border-radius-l) var(--lumo-border-radius-l); /* Needed for Safari */
31
+ }
32
+
33
+ [part='title'] {
34
+ font-size: var(--lumo-font-size-xl);
35
+ font-weight: 600;
36
+ color: var(--lumo-header-text-color);
37
+ margin-inline-start: calc(var(--lumo-space-l) - var(--lumo-space-m));
38
+ }
39
+
40
+ ::slotted([slot='header-content']),
41
+ ::slotted([slot='title']),
42
+ ::slotted([slot='footer']) {
43
+ display: contents;
44
+ pointer-events: auto;
45
+ }
46
+
47
+ ::slotted([slot='title']) {
48
+ font: inherit !important;
49
+ overflow-wrap: anywhere;
50
+ }
51
+
52
+ [part='header-content'] {
53
+ flex: 1;
54
+ }
55
+
56
+ :host([has-title]) [part='header-content'],
57
+ [part='footer'] {
58
+ justify-content: flex-end;
59
+ }
60
+
61
+ :host(:not([has-title]):not([has-header])) [part='header'],
62
+ :host(:not([has-header])) [part='header-content'],
63
+ :host(:not([has-title])) [part='title'],
64
+ :host(:not([has-footer])) [part='footer'] {
65
+ display: none !important;
66
+ }
67
+
68
+ :host(:is([has-title], [has-header], [has-footer])) [part='content'] {
69
+ height: auto;
70
+ }
71
+
72
+ @media (min-height: 320px) {
73
+ :host(:is([has-title], [has-header], [has-footer])) .resizer-container {
74
+ overflow: hidden;
75
+ display: flex;
76
+ flex-direction: column;
77
+ }
78
+
79
+ :host(:is([has-title], [has-header], [has-footer])) [part='content'] {
80
+ flex: 1;
81
+ overflow: auto;
82
+ }
83
+ }
84
+
85
+ /*
86
+ NOTE(platosha): Make some min-width to prevent collapsing of the content
87
+ taking the parent width, e. g., <vaadin-grid> and such.
88
+ */
89
+ [part='content'] {
90
+ min-width: 12em; /* matches the default <vaadin-text-field> width */
91
+ padding: var(--lumo-space-l);
92
+ }
93
+
94
+ :host([has-bounds-set]) [part='overlay'] {
95
+ max-width: none;
96
+ }
97
+
98
+ /* Optical centering */
99
+ :host::before,
100
+ :host::after {
101
+ content: '';
102
+ flex-basis: 0;
103
+ flex-grow: 1;
104
+ }
105
+
106
+ :host::after {
107
+ flex-grow: 1.1;
108
+ }
109
+
110
+ [part='overlay'] {
111
+ border-radius: var(--lumo-border-radius-l);
112
+ box-shadow:
113
+ 0 0 0 1px var(--lumo-shade-5pct),
114
+ var(--lumo-box-shadow-xl);
115
+ background-image: none;
116
+ outline: none;
117
+ -webkit-tap-highlight-color: transparent;
118
+ }
119
+
120
+ :host(:is([has-header], [has-title])) [part='header'] + [part='content'] {
121
+ padding-top: 0;
122
+ }
123
+
124
+ /* No padding */
125
+ :host([theme~='no-padding']) [part='content'] {
126
+ padding: 0 !important;
127
+ }
128
+
129
+ @media (min-height: 320px) {
130
+ :host([overflow~='top']) [part='header'] {
131
+ box-shadow: 0 1px 0 0 var(--lumo-contrast-10pct);
132
+ }
133
+ }
134
+
135
+ /* Animations */
136
+
137
+ :host([opening]),
138
+ :host([closing]) {
139
+ animation: 0.25s lumo-overlay-dummy-animation;
140
+ }
141
+
142
+ :host([opening]) [part='overlay'] {
143
+ animation: 0.12s 0.05s vaadin-dialog-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
144
+ }
145
+
146
+ @keyframes vaadin-dialog-enter {
147
+ 0% {
148
+ opacity: 0;
149
+ transform: scale(0.95);
150
+ }
151
+ }
152
+
153
+ :host([closing]) [part='overlay'] {
154
+ animation: 0.1s 0.03s vaadin-dialog-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
155
+ }
156
+
157
+ :host([closing]) [part='backdrop'] {
158
+ animation-delay: 0.05s;
159
+ }
160
+
161
+ @keyframes vaadin-dialog-exit {
162
+ 100% {
163
+ opacity: 0;
164
+ transform: scale(1.02);
165
+ }
166
+ }
167
+
168
+ @media (forced-colors: active) {
169
+ [part='overlay'] {
170
+ outline: 3px solid !important;
171
+ }
172
+ }
173
+ }
@@ -0,0 +1,51 @@
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_drawer-toggle {
7
+ :host {
8
+ display: inline-flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ cursor: default;
12
+ position: relative;
13
+ outline: none;
14
+ width: var(--lumo-size-l);
15
+ height: var(--lumo-size-l);
16
+ min-width: auto;
17
+ margin: 0 var(--lumo-space-s);
18
+ padding: 0;
19
+ background: transparent;
20
+ }
21
+
22
+ [part='icon'],
23
+ [part='icon']::after,
24
+ [part='icon']::before {
25
+ position: inherit;
26
+ height: auto;
27
+ width: auto;
28
+ background: transparent;
29
+ top: auto;
30
+ }
31
+
32
+ [part='icon']::after,
33
+ [part='icon']::before {
34
+ content: '';
35
+ }
36
+
37
+ [part='icon']::after {
38
+ top: 6px;
39
+ }
40
+
41
+ [part='icon']::before {
42
+ top: 12px;
43
+ font-family: lumo-icons;
44
+ font-size: var(--lumo-icon-size-m);
45
+ content: var(--lumo-icons-menu);
46
+ }
47
+
48
+ :host([slot~='navbar']) {
49
+ color: var(--lumo-secondary-text-color);
50
+ }
51
+ }
@@ -0,0 +1,26 @@
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_components_email-field {
8
+ /* See https://github.com/vaadin/vaadin-text-field/issues/466 */
9
+
10
+ :host([dir='rtl']) [part='input-field'] {
11
+ direction: ltr;
12
+ }
13
+
14
+ :host([dir='rtl']) [part='input-field'] ::slotted(input) {
15
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
16
+ }
17
+
18
+ :host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
19
+ direction: rtl;
20
+ text-align: left;
21
+ }
22
+
23
+ :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
24
+ --_lumo-text-field-overflow-mask-image: none;
25
+ }
26
+ }
@@ -0,0 +1,51 @@
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_field-outline {
7
+ :host {
8
+ display: block;
9
+ box-sizing: border-box;
10
+ position: absolute;
11
+ inset: 0;
12
+ width: 100%;
13
+ height: 100%;
14
+ pointer-events: none;
15
+ user-select: none;
16
+ opacity: 0;
17
+ --_active-user-color: transparent;
18
+ transition: opacity 0.3s;
19
+ mask-image: none !important;
20
+ }
21
+
22
+ :host([has-active-user]) {
23
+ opacity: 1;
24
+ }
25
+
26
+ :host::before {
27
+ content: '';
28
+ position: absolute;
29
+ inset: 0;
30
+ box-shadow: 0 0 0 2px var(--_active-user-color);
31
+ border-radius: var(--lumo-border-radius-s);
32
+ transition: box-shadow 0.3s;
33
+ }
34
+
35
+ :host([context$='checkbox'])::before {
36
+ box-shadow:
37
+ 0 0 0 2px var(--lumo-base-color),
38
+ 0 0 0 4px var(--_active-user-color);
39
+ }
40
+
41
+ :host([context$='radio-button'])::before {
42
+ border-radius: 50%;
43
+ box-shadow:
44
+ 0 0 0 3px var(--lumo-base-color),
45
+ 0 0 0 5px var(--_active-user-color);
46
+ }
47
+
48
+ :host([context$='item'])::before {
49
+ box-shadow: inset 0 0 0 2px var(--_active-user-color);
50
+ }
51
+ }
@@ -0,0 +1,36 @@
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_form-item {
7
+ [part='label'] {
8
+ /* font-weight, margin-bottom, transition and line-height same as for part label in text-field */
9
+ color: var(--lumo-secondary-text-color);
10
+ font-family: var(--lumo-font-family);
11
+ font-size: var(--lumo-font-size-s);
12
+ font-weight: 500;
13
+ margin-top: var(--lumo-space-m);
14
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
15
+ margin-bottom: var(--lumo-space-xs);
16
+ line-height: 1.333;
17
+ }
18
+
19
+ [part='required-indicator']::after {
20
+ content: var(--lumo-required-field-indicator, '\2022');
21
+ transition: opacity 0.2s;
22
+ opacity: 0;
23
+ color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
24
+ position: relative;
25
+ width: 1em;
26
+ text-align: center;
27
+ }
28
+
29
+ :host([required]) [part='required-indicator']::after {
30
+ opacity: 1;
31
+ }
32
+
33
+ :host([invalid]) [part='required-indicator']::after {
34
+ color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
35
+ }
36
+ }
@@ -0,0 +1,11 @@
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_form-layout {
7
+ :host {
8
+ --vaadin-form-layout-column-spacing: var(--lumo-space-l);
9
+ --vaadin-form-layout-row-spacing: 0;
10
+ }
11
+ }
@@ -0,0 +1,16 @@
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_grid-filter {
7
+ :host {
8
+ display: inline-flex;
9
+ max-width: 100%;
10
+ }
11
+
12
+ ::slotted(*) {
13
+ width: 100%;
14
+ box-sizing: border-box;
15
+ }
16
+ }
@@ -0,0 +1,19 @@
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_grid-pro-edit-select {
7
+ :host([theme~='grid-pro-editor']) [part='toggle-button'] {
8
+ margin-right: var(--lumo-space-xs);
9
+ }
10
+
11
+ :host([theme~='grid-pro-editor']) [part='input-field'] ::slotted([slot='value']) {
12
+ box-sizing: border-box;
13
+ padding: 0 var(--lumo-space-m);
14
+ font-size: var(--lumo-font-size-m);
15
+ /* prevent selection on editor focus */
16
+ -webkit-user-select: none;
17
+ user-select: none;
18
+ }
19
+ }
@@ -0,0 +1,84 @@
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_grid-pro {
7
+ :host([navigating]) [part~='cell']:active::before {
8
+ content: '';
9
+ position: absolute;
10
+ inset: 0;
11
+ pointer-events: none;
12
+ box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
13
+ }
14
+
15
+ [part~='editable-cell'],
16
+ [part~='editable-cell'] ::slotted(vaadin-grid-cell-content) {
17
+ cursor: var(--lumo-clickable-cursor);
18
+ }
19
+
20
+ [part~='editable-cell']:hover,
21
+ [part~='editable-cell']:focus {
22
+ background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
23
+ }
24
+
25
+ /* Indicate editable cells */
26
+
27
+ :host([theme~='highlight-editable-cells']) [part~='editable-cell'] {
28
+ background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
29
+ }
30
+
31
+ :host([theme~='highlight-editable-cells']) [part~='editable-cell']:hover,
32
+ :host([theme~='highlight-editable-cells']) [part~='editable-cell']:focus {
33
+ background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-10pct), var(--lumo-contrast-10pct));
34
+ }
35
+
36
+ /* Indicate read-only cells */
37
+
38
+ /* prettier-ignore */
39
+ :host([theme~='highlight-read-only-cells']) [tabindex]:not([part~='editable-cell']):not([part~='header-cell']):not([part~='footer-cell']) {
40
+ background-image: repeating-linear-gradient(
41
+ 135deg,
42
+ transparent,
43
+ transparent 6px,
44
+ var(--lumo-contrast-5pct) 6px,
45
+ var(--lumo-contrast-5pct) 14px
46
+ );
47
+ }
48
+
49
+ /* Loading editor cell styles are used by Flow GridPro */
50
+ :host([loading-editor]) [part~='focused-cell']::before {
51
+ content: '';
52
+ position: absolute;
53
+ inset: 0;
54
+ pointer-events: none;
55
+ box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
56
+ animation: vaadin-grid-pro-loading-editor 1.4s infinite;
57
+ opacity: 0;
58
+ }
59
+
60
+ @keyframes vaadin-grid-pro-loading-editor {
61
+ 50% {
62
+ opacity: 1;
63
+ }
64
+ }
65
+
66
+ [part~='updating-cell']::after {
67
+ content: '';
68
+ position: absolute;
69
+ inset: var(--_cell-padding);
70
+ margin: var(--_focus-ring-width);
71
+ border-radius: 4px;
72
+ background-size: max(4em, 50%);
73
+ background-repeat: no-repeat;
74
+ background-position: min(-200%, -4em) 0;
75
+ background-image: linear-gradient(90deg, transparent, var(--lumo-contrast-10pct), transparent);
76
+ animation: vaadin-grid-pro-updating-cell 1.3s ease-out infinite;
77
+ }
78
+
79
+ @keyframes vaadin-grid-pro-updating-cell {
80
+ 100% {
81
+ background-position: max(300%, 8em) 0;
82
+ }
83
+ }
84
+ }
@@ -0,0 +1,70 @@
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_grid-sorter {
7
+ :host {
8
+ display: inline-flex;
9
+ max-width: 100%;
10
+ justify-content: flex-start;
11
+ align-items: baseline;
12
+ -webkit-user-select: none;
13
+ user-select: none;
14
+ cursor: var(--lumo-clickable-cursor);
15
+ }
16
+
17
+ [part='content'] {
18
+ flex: 1 1 auto;
19
+ display: inline-block;
20
+ overflow: hidden;
21
+ text-overflow: ellipsis;
22
+ }
23
+
24
+ [part='indicators'] {
25
+ position: relative;
26
+ align-self: center;
27
+ flex: none;
28
+ margin-left: var(--lumo-space-s);
29
+ }
30
+
31
+ [part='order'] {
32
+ display: inline;
33
+ vertical-align: super;
34
+ font-size: var(--lumo-font-size-xxs);
35
+ line-height: 1;
36
+ }
37
+
38
+ [part='indicators']::before {
39
+ font-family: 'vaadin-grid-sorter-icons';
40
+ display: inline-block;
41
+ transform: scale(0.8);
42
+ }
43
+
44
+ :host(:not([direction])) [part='indicators']::before {
45
+ content: '\e901';
46
+ }
47
+
48
+ :host([direction='asc']) [part='indicators']::before {
49
+ content: '\e900';
50
+ }
51
+
52
+ :host([direction='desc']) [part='indicators']::before {
53
+ content: '\e902';
54
+ }
55
+
56
+ :host(:not([direction]):not(:hover)) [part='indicators'] {
57
+ color: var(--lumo-tertiary-text-color);
58
+ }
59
+
60
+ :host([direction]) {
61
+ color: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
62
+ }
63
+
64
+ /* RTL specific styles */
65
+
66
+ :host([dir='rtl']) [part='indicators'] {
67
+ margin-right: var(--lumo-space-s);
68
+ margin-left: 0;
69
+ }
70
+ }
@@ -0,0 +1,104 @@
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_grid-tree-toggle {
7
+ :host {
8
+ --vaadin-grid-tree-toggle-level-offset: 2em;
9
+ display: inline-flex;
10
+ max-width: 100%;
11
+ align-items: center;
12
+ vertical-align: middle;
13
+ transform: translateX(calc(var(--lumo-space-s) * -1));
14
+ -webkit-tap-highlight-color: transparent;
15
+ }
16
+
17
+ :host([hidden]) {
18
+ display: none !important;
19
+ }
20
+
21
+ :host(:not([leaf])) {
22
+ cursor: default;
23
+ }
24
+
25
+ #level-spacer,
26
+ [part='toggle'] {
27
+ flex: none;
28
+ }
29
+
30
+ #level-spacer {
31
+ display: inline-block;
32
+ width: calc(var(--_level, '0') * var(--vaadin-grid-tree-toggle-level-offset));
33
+ }
34
+
35
+ [part='toggle']::before {
36
+ line-height: 1em; /* make icon font metrics not affect baseline */
37
+ font-family: 'lumo-icons';
38
+ display: inline-block;
39
+ height: 100%;
40
+ }
41
+
42
+ :host(:not([expanded])) [part='toggle']::before {
43
+ content: var(--lumo-icons-angle-right);
44
+ }
45
+
46
+ :host([expanded]) [part='toggle']::before {
47
+ content: var(--lumo-icons-angle-right);
48
+ transform: rotate(90deg);
49
+ }
50
+
51
+ :host([leaf]) [part='toggle'] {
52
+ visibility: hidden;
53
+ }
54
+
55
+ slot {
56
+ display: block;
57
+ overflow: hidden;
58
+ text-overflow: ellipsis;
59
+ }
60
+
61
+ [part='toggle'] {
62
+ display: inline-block;
63
+ font-size: 1.5em;
64
+ line-height: 1;
65
+ width: 1em;
66
+ height: 1em;
67
+ text-align: center;
68
+ color: var(--lumo-contrast-50pct);
69
+ cursor: var(--lumo-clickable-cursor);
70
+ /* Increase touch target area */
71
+ padding: calc(1em / 3);
72
+ margin: calc(1em / -3);
73
+ }
74
+
75
+ :host(:not([dir='rtl'])) [part='toggle'] {
76
+ margin-right: 0;
77
+ }
78
+
79
+ @media (hover: hover) {
80
+ :host(:hover) [part='toggle'] {
81
+ color: var(--lumo-contrast-80pct);
82
+ }
83
+ }
84
+
85
+ /* RTL specific styles */
86
+
87
+ :host([dir='rtl']) {
88
+ margin-left: 0;
89
+ margin-right: calc(var(--lumo-space-s) * -1);
90
+ }
91
+
92
+ :host([dir='rtl']) [part='toggle'] {
93
+ margin-left: 0;
94
+ }
95
+
96
+ :host([dir='rtl'][expanded]) [part='toggle']::before {
97
+ transform: rotate(-90deg);
98
+ }
99
+
100
+ :host([dir='rtl']:not([expanded])) [part='toggle']::before,
101
+ :host([dir='rtl'][expanded]) [part='toggle']::before {
102
+ content: var(--lumo-icons-angle-left);
103
+ }
104
+ }