@vaadin/vaadin-lumo-styles 25.0.0-alpha1 → 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 +16 -12
  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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/vaadin-lumo-styles",
3
- "version": "25.0.0-alpha1",
3
+ "version": "25.0.0-alpha10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -20,15 +20,18 @@
20
20
  "module": "all-imports.js",
21
21
  "type": "module",
22
22
  "scripts": {
23
- "icons": "gulp icons --gulpfile gulpfile.cjs"
23
+ "icons": "gulp icons"
24
24
  },
25
25
  "files": [
26
+ "*.css",
26
27
  "*.d.ts",
27
28
  "*.js",
28
- "auto-complete.css",
29
+ "!gulpfile.js",
30
+ "components/*.css",
29
31
  "mixins/*.d.ts",
30
32
  "mixins/*.js",
31
33
  "presets/*.js",
34
+ "src",
32
35
  "utilities/*.js"
33
36
  ],
34
37
  "keywords": [
@@ -39,16 +42,17 @@
39
42
  "web-component"
40
43
  ],
41
44
  "dependencies": {
42
- "@vaadin/component-base": "25.0.0-alpha1",
43
- "@vaadin/icon": "25.0.0-alpha1",
44
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha1"
45
+ "@vaadin/component-base": "25.0.0-alpha10",
46
+ "@vaadin/icon": "25.0.0-alpha10",
47
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha10"
45
48
  },
46
49
  "devDependencies": {
47
- "gulp": "^5.0.0",
48
- "gulp-cli": "^3.0.0",
49
- "gulp-iconfont": "^11.0.0",
50
- "gulp-sort": "^2.0.0",
51
- "gulp-svgmin": "^4.1.0"
50
+ "gulp": "^5.0.1",
51
+ "gulp-cli": "^3.1.0",
52
+ "gulp-iconfont": "^12.0.0",
53
+ "gulp-plugin-extras": "^1.0.0",
54
+ "imagemin": "^9.0.0",
55
+ "imagemin-svgo": "^10.0.1"
52
56
  },
53
- "gitHead": "b8c22a4a0c64156210d0daac96b43ae4e5526d49"
57
+ "gitHead": "6cc6c94079e805fa5b2f0af4dbf3b2a7485e57d0"
54
58
  }
package/props.css ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2017 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ @import './src/props/reset.css';
7
+ @import './src/props/icons.css';
8
+ @import './src/props/style.css';
9
+ @import './src/props/color.css';
10
+ @import './src/props/sizing.css';
11
+ @import './src/props/spacing.css';
12
+ @import './src/props/typography.css';
@@ -0,0 +1,42 @@
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_accordion-heading {
7
+ :host {
8
+ display: block;
9
+ outline: none;
10
+ -webkit-user-select: none;
11
+ user-select: none;
12
+ padding: 0;
13
+ }
14
+
15
+ :host([hidden]) {
16
+ display: none !important;
17
+ }
18
+
19
+ button {
20
+ display: flex;
21
+ align-items: center;
22
+ justify-content: inherit;
23
+ width: 100%;
24
+ margin: 0;
25
+ padding: 0;
26
+ background-color: initial;
27
+ color: inherit;
28
+ border: initial;
29
+ outline: none;
30
+ font: inherit;
31
+ text-align: inherit;
32
+ }
33
+
34
+ [part='content'] {
35
+ padding: var(--lumo-space-s) 0;
36
+ }
37
+
38
+ :host([theme~='filled']) {
39
+ padding-top: 0;
40
+ padding-bottom: 0;
41
+ }
42
+ }
@@ -0,0 +1,38 @@
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_accordion-panel {
7
+ :host {
8
+ display: block;
9
+ margin: 0;
10
+ border-bottom: solid 1px var(--lumo-contrast-10pct);
11
+ }
12
+
13
+ :host([hidden]) {
14
+ display: none !important;
15
+ }
16
+
17
+ [part='content'] {
18
+ display: none;
19
+ overflow: hidden;
20
+ }
21
+
22
+ :host([opened]) [part='content'] {
23
+ display: block;
24
+ overflow: visible;
25
+ }
26
+
27
+ :host(:last-child) {
28
+ border-bottom: none;
29
+ }
30
+
31
+ :host([theme~='filled']) {
32
+ border-bottom: none;
33
+ }
34
+
35
+ :host([theme~='filled']:not(:last-child)) {
36
+ margin-bottom: 2px;
37
+ }
38
+ }
@@ -0,0 +1,193 @@
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_app-layout {
7
+ :host {
8
+ display: block;
9
+ box-sizing: border-box;
10
+ height: 100%;
11
+ --vaadin-app-layout-transition-duration: 200ms;
12
+ transition: padding var(--vaadin-app-layout-transition-duration);
13
+ --_vaadin-app-layout-drawer-width: var(--vaadin-app-layout-drawer-width, 16em);
14
+ --vaadin-app-layout-touch-optimized: false;
15
+ --vaadin-app-layout-navbar-offset-top: var(--_vaadin-app-layout-navbar-offset-size);
16
+ --vaadin-app-layout-navbar-offset-bottom: var(--_vaadin-app-layout-navbar-offset-size-bottom);
17
+ padding-block: var(--vaadin-app-layout-navbar-offset-top) var(--vaadin-app-layout-navbar-offset-bottom);
18
+ padding-inline-start: var(--vaadin-app-layout-navbar-offset-left);
19
+ }
20
+
21
+ :host([hidden]),
22
+ [hidden] {
23
+ display: none !important;
24
+ }
25
+
26
+ :host([no-anim]) {
27
+ --vaadin-app-layout-transition-duration: 0s !important;
28
+ }
29
+
30
+ :host([drawer-opened]) {
31
+ --vaadin-app-layout-drawer-offset-left: var(--_vaadin-app-layout-drawer-offset-size);
32
+ }
33
+
34
+ :host([overlay]) {
35
+ --vaadin-app-layout-drawer-offset-left: 0;
36
+ --vaadin-app-layout-navbar-offset-left: 0;
37
+ }
38
+
39
+ :host(:not([no-scroll])) [content] {
40
+ overflow: auto;
41
+ }
42
+
43
+ [content] {
44
+ height: 100%;
45
+ }
46
+
47
+ @media (pointer: coarse) and (max-width: 800px) and (min-height: 500px) {
48
+ :host {
49
+ --vaadin-app-layout-touch-optimized: true;
50
+ }
51
+ }
52
+
53
+ [part='navbar'] {
54
+ position: fixed;
55
+ display: flex;
56
+ align-items: center;
57
+ top: 0;
58
+ inset-inline: 0;
59
+ transition: inset-inline-start var(--vaadin-app-layout-transition-duration);
60
+ padding-top: var(--safe-area-inset-top);
61
+ padding-left: var(--safe-area-inset-left);
62
+ padding-right: var(--safe-area-inset-right);
63
+ z-index: 1;
64
+ min-height: var(--lumo-size-xl);
65
+ border-bottom: 1px solid var(--lumo-contrast-10pct);
66
+ }
67
+
68
+ :host([primary-section='drawer'][drawer-opened]:not([overlay])) [part='navbar'] {
69
+ inset-inline-start: var(--vaadin-app-layout-drawer-offset-left, 0);
70
+ }
71
+
72
+ :host([primary-section='drawer']) [part='drawer'] {
73
+ top: 0;
74
+ }
75
+
76
+ [part='navbar'][bottom] {
77
+ top: auto;
78
+ bottom: 0;
79
+ padding-bottom: var(--safe-area-inset-bottom);
80
+ border-bottom: none;
81
+ border-top: 1px solid var(--lumo-contrast-10pct);
82
+ }
83
+
84
+ [part='drawer'] {
85
+ overflow: auto;
86
+ position: fixed;
87
+ top: var(--vaadin-app-layout-navbar-offset-top, 0);
88
+ bottom: var(--vaadin-app-layout-navbar-offset-bottom, var(--vaadin-viewport-offset-bottom, 0));
89
+ inset-inline: var(--vaadin-app-layout-navbar-offset-left, 0) auto;
90
+ transition:
91
+ transform var(--vaadin-app-layout-transition-duration),
92
+ visibility var(--vaadin-app-layout-transition-duration);
93
+ transform: translateX(-100%);
94
+ max-width: 90%;
95
+ width: var(--_vaadin-app-layout-drawer-width);
96
+ box-sizing: border-box;
97
+ padding: var(--safe-area-inset-top) 0 var(--safe-area-inset-bottom) var(--safe-area-inset-left);
98
+ outline: none;
99
+ /* The drawer should be inaccessible by the tabbing navigation when it is closed. */
100
+ visibility: hidden;
101
+ display: flex;
102
+ flex-direction: column;
103
+ border-inline-end: 1px solid var(--lumo-contrast-10pct);
104
+ }
105
+
106
+ :host([drawer-opened]) [part='drawer'] {
107
+ /* The drawer should be accessible by the tabbing navigation when it is opened. */
108
+ visibility: visible;
109
+ transform: translateX(0%);
110
+ touch-action: manipulation;
111
+ }
112
+
113
+ [part='backdrop'] {
114
+ background-color: var(--lumo-shade-20pct);
115
+ opacity: 1;
116
+ }
117
+
118
+ :host(:not([drawer-opened])) [part='backdrop'] {
119
+ opacity: 0;
120
+ }
121
+
122
+ :host([overlay]) [part='backdrop'] {
123
+ position: fixed;
124
+ inset: 0;
125
+ pointer-events: none;
126
+ transition: opacity var(--vaadin-app-layout-transition-duration);
127
+ -webkit-tap-highlight-color: transparent;
128
+ }
129
+
130
+ :host([overlay]) [part='drawer'] {
131
+ top: 0;
132
+ bottom: 0;
133
+ border-inline-end: none;
134
+ box-shadow: var(--lumo-box-shadow-s);
135
+ }
136
+
137
+ :host([overlay]) [part='drawer'],
138
+ :host([overlay]) [part='backdrop'] {
139
+ z-index: 2;
140
+ }
141
+
142
+ :host([drawer-opened][overlay]) [part='backdrop'] {
143
+ pointer-events: auto;
144
+ touch-action: manipulation;
145
+ }
146
+
147
+ :host([dir='rtl']) [part='drawer'] {
148
+ transform: translateX(100%);
149
+ }
150
+
151
+ :host([dir='rtl'][drawer-opened]) [part='drawer'] {
152
+ transform: translateX(0%);
153
+ }
154
+
155
+ :host([drawer-opened]:not([overlay])) {
156
+ padding-inline-start: var(--vaadin-app-layout-drawer-offset-left);
157
+ }
158
+
159
+ @media (max-width: 800px), (max-height: 600px) {
160
+ :host {
161
+ --vaadin-app-layout-drawer-overlay: true;
162
+ --_vaadin-app-layout-drawer-width: var(--vaadin-app-layout-drawer-width, 20em);
163
+ }
164
+ }
165
+
166
+ /* If a vaadin-scroller is used in the drawer, allow it to take all remaining space and contain scrolling */
167
+ [part='drawer'] ::slotted(vaadin-scroller) {
168
+ flex: 1;
169
+ overscroll-behavior: contain;
170
+ }
171
+
172
+ [part='navbar'],
173
+ [part='drawer'] {
174
+ background-color: var(--lumo-base-color);
175
+ background-clip: padding-box;
176
+ }
177
+
178
+ :host([primary-section='navbar']) [part='navbar'] {
179
+ border: none;
180
+ background-image: linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
181
+ }
182
+
183
+ :host([primary-section='drawer']:not([overlay])) [part='drawer'] {
184
+ background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
185
+ }
186
+
187
+ [part] ::slotted(h2),
188
+ [part] ::slotted(h3),
189
+ [part] ::slotted(h4) {
190
+ margin-top: var(--lumo-space-xs) !important;
191
+ margin-bottom: var(--lumo-space-xs) !important;
192
+ }
193
+ }
@@ -0,0 +1,22 @@
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_avatar-group-menu-item {
7
+ :host {
8
+ padding: var(--lumo-space-xs);
9
+ padding-inline-end: var(--lumo-space-m);
10
+ }
11
+
12
+ [part='content'] {
13
+ display: flex;
14
+ align-items: center;
15
+ }
16
+
17
+ [part='content'] ::slotted(vaadin-avatar) {
18
+ width: var(--lumo-size-xs);
19
+ height: var(--lumo-size-xs);
20
+ margin-inline-end: var(--lumo-space-s);
21
+ }
22
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2017 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ @media lumo_components_avatar-group-overlay {
7
+ :host {
8
+ --_lumo-list-box-item-selected-icon-display: none;
9
+ --_lumo-list-box-item-padding-left: calc(var(--lumo-space-m) + var(--lumo-border-radius-m) / 4);
10
+ }
11
+
12
+ [part='overlay'] {
13
+ outline: none;
14
+ }
15
+ }
@@ -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_components_avatar-group {
7
+ :host {
8
+ display: block;
9
+ width: 100%; /* prevent collapsing inside non-stretching column flex */
10
+ --vaadin-avatar-size: var(--lumo-size-m);
11
+ --vaadin-avatar-group-overlap: 8px;
12
+ /* Deprecated property name (overlap-border), for backwards compatibility */
13
+ --vaadin-avatar-group-overlap-border: var(--vaadin-avatar-group-gap, 2px);
14
+ }
15
+
16
+ :host([hidden]) {
17
+ display: none !important;
18
+ }
19
+
20
+ [part='container'] {
21
+ display: flex;
22
+ position: relative;
23
+ width: 100%;
24
+ flex-wrap: nowrap;
25
+ }
26
+
27
+ ::slotted(vaadin-avatar:not(:first-of-type)) {
28
+ mask-image: url('data:image/svg+xml;utf8,<svg viewBox=%220 0 300 300%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22><path fill-rule=%22evenodd%22 clip-rule=%22evenodd%22 d=%22M300 0H0V300H300V0ZM150 200C177.614 200 200 177.614 200 150C200 122.386 177.614 100 150 100C122.386 100 100 122.386 100 150C100 177.614 122.386 200 150 200Z%22 fill=%22black%22/></svg>');
29
+ mask-size: calc(300% + var(--vaadin-avatar-group-overlap-border) * 6 - var(--vaadin-avatar-outline-width) * 6);
30
+ }
31
+
32
+ ::slotted(vaadin-avatar:not([dir='rtl']):not(:first-of-type)) {
33
+ margin-left: calc(var(--vaadin-avatar-group-overlap) * -1 - var(--vaadin-avatar-outline-width));
34
+ mask-position: calc(50% - var(--vaadin-avatar-size) + var(--vaadin-avatar-group-overlap));
35
+ }
36
+
37
+ ::slotted(vaadin-avatar[dir='rtl']:not(:first-of-type)) {
38
+ margin-right: calc(var(--vaadin-avatar-group-overlap) * -1);
39
+ mask-position: calc(
40
+ 50% + var(--vaadin-avatar-size) - var(--vaadin-avatar-group-overlap) + var(--vaadin-avatar-outline-width)
41
+ );
42
+ }
43
+
44
+ :host([theme~='xlarge']) {
45
+ --vaadin-avatar-group-overlap: 12px;
46
+ --vaadin-avatar-group-overlap-border: 3px;
47
+ --vaadin-avatar-size: var(--lumo-size-xl);
48
+ }
49
+
50
+ :host([theme~='large']) {
51
+ --vaadin-avatar-group-overlap: 10px;
52
+ --vaadin-avatar-group-overlap-border: 3px;
53
+ --vaadin-avatar-size: var(--lumo-size-l);
54
+ }
55
+
56
+ :host([theme~='small']) {
57
+ --vaadin-avatar-group-overlap: 6px;
58
+ --vaadin-avatar-group-overlap-border: 2px;
59
+ --vaadin-avatar-size: var(--lumo-size-s);
60
+ }
61
+
62
+ :host([theme~='xsmall']) {
63
+ --vaadin-avatar-group-overlap: 4px;
64
+ --vaadin-avatar-group-overlap-border: 2px;
65
+ --vaadin-avatar-size: var(--lumo-size-xs);
66
+ }
67
+ }
@@ -0,0 +1,86 @@
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_avatar {
7
+ :host {
8
+ --vaadin-avatar-outline-width: var(--vaadin-focus-ring-width, 2px);
9
+ border: var(--vaadin-avatar-outline-width) solid transparent;
10
+ margin: calc(var(--vaadin-avatar-outline-width) * -1);
11
+ color: var(--lumo-secondary-text-color);
12
+ background-color: var(--lumo-contrast-10pct);
13
+ outline: none;
14
+ -webkit-font-smoothing: antialiased;
15
+ -moz-osx-font-smoothing: grayscale;
16
+ vertical-align: baseline;
17
+ }
18
+
19
+ [part='icon'] {
20
+ display: flex;
21
+ align-items: center;
22
+ justify-content: center;
23
+ font-size: var(--vaadin-avatar-size, 64px);
24
+ line-height: 1;
25
+ mask: none;
26
+ background: none;
27
+ }
28
+
29
+ [part='icon']::before {
30
+ content: var(--lumo-icons-user);
31
+ font-family: lumo-icons;
32
+ font-size: 0.9em;
33
+ }
34
+
35
+ [part='abbr'] {
36
+ font-family: var(--lumo-font-family);
37
+ font-size: 2.4375em;
38
+ font-weight: 500;
39
+ }
40
+
41
+ :host([has-color-index]) {
42
+ color: var(--lumo-base-color);
43
+ }
44
+
45
+ :host([has-color-index])::before {
46
+ border: none;
47
+ box-shadow: inset 0 0 0 2px var(--vaadin-avatar-user-color);
48
+ }
49
+
50
+ :host([focus-ring]) {
51
+ outline: none;
52
+ border-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
53
+ }
54
+
55
+ :host([theme~='xlarge']) [part='abbr'] {
56
+ font-size: 2.5em;
57
+ }
58
+
59
+ :host([theme~='large']) [part='abbr'] {
60
+ font-size: 2.375em;
61
+ }
62
+
63
+ :host([theme~='small']) [part='abbr'] {
64
+ font-size: 2.75em;
65
+ }
66
+
67
+ :host([theme~='xsmall']) [part='abbr'] {
68
+ font-size: 3em;
69
+ }
70
+
71
+ :host([theme~='xlarge']) {
72
+ --vaadin-avatar-size: var(--lumo-size-xl);
73
+ }
74
+
75
+ :host([theme~='large']) {
76
+ --vaadin-avatar-size: var(--lumo-size-l);
77
+ }
78
+
79
+ :host([theme~='small']) {
80
+ --vaadin-avatar-size: var(--lumo-size-s);
81
+ }
82
+
83
+ :host([theme~='xsmall']) {
84
+ --vaadin-avatar-size: var(--lumo-size-xs);
85
+ }
86
+ }