@vaadin/vaadin-lumo-styles 25.0.0-beta5 → 25.0.0-beta7

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.
@@ -130,6 +130,7 @@ const inputField = css`
130
130
  25% {
131
131
  transform: translateX(4px);
132
132
  }
133
+
133
134
  75% {
134
135
  transform: translateX(-4px);
135
136
  }
@@ -48,10 +48,7 @@ const menuOverlayExt = css`
48
48
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
49
49
  @media (max-width: 450px), (max-height: 450px) {
50
50
  :host {
51
- top: 0 !important;
52
- right: 0 !important;
53
- bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
54
- left: 0 !important;
51
+ inset: 0 0 var(--vaadin-overlay-viewport-bottom, 0) 0 !important;
55
52
  align-items: stretch !important;
56
53
  justify-content: flex-end !important;
57
54
  }
package/mixins/overlay.js CHANGED
@@ -10,10 +10,7 @@ issueWarning('Lumo .js mixins are deprecated and will be removed in V26');
10
10
 
11
11
  const overlay = css`
12
12
  :host {
13
- top: var(--lumo-space-m);
14
- right: var(--lumo-space-m);
15
- bottom: var(--lumo-space-m);
16
- left: var(--lumo-space-m);
13
+ inset: var(--vaadin-overlay-viewport-inset, var(--lumo-space-m));
17
14
  /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
18
15
  /* stylelint-disable-next-line */
19
16
  outline: 0px solid transparent;
@@ -16,8 +16,7 @@ const requiredField = css`
16
16
  font-size: var(--vaadin-input-field-label-font-size, var(--lumo-font-size-s));
17
17
  transition: color 0.2s;
18
18
  line-height: 1;
19
- padding-inline-start: calc(var(--lumo-border-radius-m) / 4);
20
- padding-inline-end: 1em;
19
+ padding-inline: calc(var(--lumo-border-radius-m) / 4) 1em;
21
20
  padding-bottom: 0.5em;
22
21
  /* As a workaround for diacritics being cut off, add a top padding and a
23
22
  negative margin to compensate */
@@ -63,8 +62,11 @@ const requiredField = css`
63
62
  }
64
63
 
65
64
  :host([required]) [part='required-indicator']::after {
66
- content: var(--lumo-required-field-indicator, '\\2022');
67
- color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
65
+ content: var(--vaadin-input-field-required-indicator, var(--lumo-required-field-indicator, '\2022'));
66
+ color: var(
67
+ --vaadin-input-field-required-indicator-color,
68
+ var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color))
69
+ );
68
70
  position: absolute;
69
71
  right: 0;
70
72
  width: 1em;
@@ -72,7 +74,10 @@ const requiredField = css`
72
74
  }
73
75
 
74
76
  :host([invalid]) [part='required-indicator']::after {
75
- color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
77
+ color: var(
78
+ --vaadin-input-field-required-indicator-color,
79
+ var(--lumo-required-field-indicator-color, var(--lumo-error-text-color))
80
+ );
76
81
  }
77
82
 
78
83
  [part='error-message'] {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/vaadin-lumo-styles",
3
- "version": "25.0.0-beta5",
3
+ "version": "25.0.0-beta7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -44,9 +44,9 @@
44
44
  "web-component"
45
45
  ],
46
46
  "dependencies": {
47
- "@vaadin/component-base": "25.0.0-beta5",
48
- "@vaadin/icon": "25.0.0-beta5",
49
- "@vaadin/vaadin-themable-mixin": "25.0.0-beta5"
47
+ "@vaadin/component-base": "25.0.0-beta7",
48
+ "@vaadin/icon": "25.0.0-beta7",
49
+ "@vaadin/vaadin-themable-mixin": "25.0.0-beta7"
50
50
  },
51
51
  "devDependencies": {
52
52
  "cssnano": "^7.1.1",
@@ -60,5 +60,5 @@
60
60
  "postcss-cli": "^11.0.1",
61
61
  "postcss-import": "^16.1.1"
62
62
  },
63
- "gitHead": "ba59e1404cc4bef2dd685476247f758eb28c9922"
63
+ "gitHead": "f12f14c37d2c0a72f708baff4a95230168d58dcc"
64
64
  }
@@ -225,9 +225,12 @@
225
225
  }
226
226
 
227
227
  :host([required]) [part='required-indicator']::after {
228
- content: var(--lumo-required-field-indicator, '\2022');
228
+ content: var(--vaadin-input-field-required-indicator, var(--lumo-required-field-indicator, '\2022'));
229
229
  transition: opacity 0.2s;
230
- color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
230
+ color: var(
231
+ --vaadin-input-field-required-indicator-color,
232
+ var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color))
233
+ );
231
234
  width: 1em;
232
235
  text-align: center;
233
236
  }
@@ -257,7 +260,10 @@
257
260
  }
258
261
 
259
262
  :host([invalid]) [part='required-indicator']::after {
260
- color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
263
+ color: var(
264
+ --vaadin-input-field-required-indicator-color,
265
+ var(--lumo-required-field-indicator-color, var(--lumo-error-text-color))
266
+ );
261
267
  }
262
268
 
263
269
  /* Error message */
@@ -17,10 +17,13 @@
17
17
  }
18
18
 
19
19
  [part='required-indicator']::after {
20
- content: var(--lumo-required-field-indicator, '\2022');
20
+ content: var(--vaadin-input-field-required-indicator, var(--lumo-required-field-indicator, '\2022'));
21
21
  transition: opacity 0.2s;
22
22
  opacity: 0;
23
- color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
23
+ color: var(
24
+ --vaadin-input-field-required-indicator-color,
25
+ var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color))
26
+ );
24
27
  position: relative;
25
28
  width: 1em;
26
29
  text-align: center;
@@ -31,6 +34,9 @@
31
34
  }
32
35
 
33
36
  :host([invalid]) [part='required-indicator']::after {
34
- color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
37
+ color: var(
38
+ --vaadin-input-field-required-indicator-color,
39
+ var(--lumo-required-field-indicator-color, var(--lumo-error-text-color))
40
+ );
35
41
  }
36
42
  }
@@ -0,0 +1,12 @@
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
+ @font-face {
7
+ font-family: 'vaadin-grid-sorter-icons';
8
+ src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAQwAA0AAAAABuwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAEFAAAABkAAAAcfep+mUdERUYAAAP4AAAAHAAAAB4AJwAOT1MvMgAAAZgAAAA/AAAAYA8TBPpjbWFwAAAB7AAAAFUAAAFeF1fZ4mdhc3AAAAPwAAAACAAAAAgAAAAQZ2x5ZgAAAlgAAABcAAAAnMvguMloZWFkAAABMAAAAC8AAAA2C5Ap72hoZWEAAAFgAAAAHQAAACQGbQPHaG10eAAAAdgAAAAUAAAAHAoAAABsb2NhAAACRAAAABIAAAASAIwAYG1heHAAAAGAAAAAFgAAACAACwAKbmFtZQAAArQAAAECAAACZxWCgKhwb3N0AAADuAAAADUAAABZCrApUXicY2BkYGAA4rDECVrx/DZfGbhZGEDgyqNPOxH0/wNMq5kPALkcDEwgUQBWRA0dAHicY2BkYGA+8P8AAwMLAwgwrWZgZEAFbABY4QM8AAAAeJxjYGRgYOAAQiYGEICQSAAAAi8AFgAAeJxjYGY6yziBgZWBgWkm0xkGBoZ+CM34msGYkZMBFTAKoAkwODAwvmRiPvD/AIMDMxCD1CDJKjAwAgBktQsXAHicY2GAAMZQCM0EwqshbAALxAEKeJxjYGBgZoBgGQZGBhCIAPIYwXwWBhsgzcXAwcAEhIwMCi+Z/v/9/x+sSuElA4T9/4k4K1gHFwMMMILMY2QDYmaoABOQYGJABUA7WBiGNwAAJd4NIQAAAAAAAAAACAAIABAAGAAmAEAATgAAeJyNjLENgDAMBP9tIURJwQCMQccSZgk2i5fIYBDAidJjycXr7x5EPwE2wY8si7jmyBNXGo/bNBerxJNrpxhbO3/fEFpx8ZICpV+ghxJ74fAMe+h7Ox14AbrsHB14nK2QQWrDMBRER4mTkhQK3ZRQKOgCNk7oGQqhhEIX2WSlWEI1BAlkJ5CDdNsj5Ey9Rncdi38ES+jzNJo/HwTgATcoDEthhY3wBHc4CE+pfwsX5F/hGe7Vo/AcK/UhvMSz+mGXKhZU6pww8ISz3oWn1BvhgnwTnuEJf8Jz1OpFeIlX9YULDLdFi4ASHolkSR0iuYdjLak1vAequBhj21D61Nqyi6l3qWybGPjySbPHGScGJl6dP58MYcQRI0bts7mjebBqrFENH7t3qWtj0OuqHnXcW7b0HOTZFnKryRGW2hFX1m0O2vEM3opNMfTau+CS6Z3Vx6veNnEXY6jwDxhsc2gAAHicY2BiwA84GBgYmRiYGJkZmBlZGFkZ2djScyoLMgzZS/MyDQwMwLSrpYEBlIbxjQDrzgsuAAAAAAEAAf//AA94nGNgZGBg4AFiMSBmYmAEQnYgZgHzGAAD6wA2eJxjYGBgZACCKyoz1cD0o087YTQATOcIewAAAA==)
9
+ format('woff');
10
+ font-weight: normal;
11
+ font-style: normal;
12
+ }
@@ -9,8 +9,8 @@
9
9
  font-family: var(--lumo-font-family);
10
10
  font-size: var(--lumo-font-size-m);
11
11
  line-height: var(--lumo-line-height-m);
12
- padding: var(--lumo-space-s) var(--lumo-space-m);
13
- gap: 0;
12
+ padding: var(--vaadin-message-padding, var(--lumo-space-s) var(--lumo-space-m));
13
+ gap: var(--vaadin-message-gap, 0);
14
14
  -moz-osx-font-smoothing: grayscale;
15
15
  -webkit-font-smoothing: antialiased;
16
16
  -webkit-text-size-adjust: 100%;
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  [part='name'] {
30
- color: inherit;
30
+ color: var(--vaadin-message-name-color, inherit);
31
31
  margin-inline-end: var(--lumo-space-s);
32
32
  }
33
33
 
@@ -36,12 +36,12 @@
36
36
  }
37
37
 
38
38
  [part='message'] {
39
- color: inherit;
39
+ color: var(--vaadin-message-text-color, inherit);
40
40
  }
41
41
 
42
42
  [part='time'] {
43
- color: var(--lumo-secondary-text-color);
44
- font-size: var(--lumo-font-size-s);
43
+ color: var(--vaadin-message-time-color, var(--lumo-secondary-text-color));
44
+ font-size: var(--vaadin-message-time-font-size, var(--lumo-font-size-s));
45
45
  }
46
46
 
47
47
  ::slotted([slot='avatar']) {
@@ -5,41 +5,36 @@
5
5
  */
6
6
  @media lumo_components_upload {
7
7
  :host {
8
- display: block;
9
- position: relative;
10
- box-sizing: border-box;
8
+ border: var(--vaadin-upload-border-width, 1px) dashed var(--vaadin-upload-border-color, var(--lumo-contrast-20pct));
9
+ border-radius: var(--vaadin-upload-border-radius, var(--lumo-border-radius-l));
11
10
  line-height: var(--lumo-line-height-m);
12
- }
13
-
14
- :host([hidden]) {
15
- display: none !important;
16
- }
17
-
18
- [hidden] {
19
- display: none !important;
20
- }
21
-
22
- :host(:not([nodrop])) {
23
- overflow: hidden;
24
- border: 1px dashed var(--lumo-contrast-20pct);
25
- border-radius: var(--lumo-border-radius-l);
26
- padding: var(--lumo-space-m);
11
+ padding: var(--vaadin-upload-padding, var(--lumo-space-m));
27
12
  transition:
28
13
  background-color 0.6s,
29
14
  border-color 0.6s;
30
15
  }
31
16
 
17
+ :host([nodrop]) {
18
+ border: none;
19
+ border-radius: 0;
20
+ padding: 0;
21
+ transition: none;
22
+ }
23
+
32
24
  [part='drop-label'] {
33
- display: inline-block;
34
- white-space: normal;
35
- padding: 0 var(--lumo-space-s);
36
- color: var(--lumo-secondary-text-color);
25
+ color: var(--vaadin-upload-drop-label-color, var(--lumo-secondary-text-color));
26
+ gap: var(--vaadin-upload-drop-label-gap, var(--lumo-space-xs));
37
27
  font-family: var(--lumo-font-family);
28
+ padding: 0 var(--lumo-space-s);
29
+ }
30
+
31
+ [part='primary-buttons'] {
32
+ gap: 0;
38
33
  }
39
34
 
40
35
  :host([dragover-valid]) {
41
- border-color: var(--lumo-primary-color-50pct);
42
- background: var(--lumo-primary-color-10pct);
36
+ --vaadin-upload-background: var(--lumo-primary-color-10pct);
37
+ --vaadin-upload-border-color: var(--lumo-primary-color-50pct);
43
38
  transition:
44
39
  background-color 0.1s,
45
40
  border-color 0.1s;
@@ -10,6 +10,7 @@
10
10
  color-scheme: light;
11
11
  }
12
12
 
13
+ :host([theme~='dark']),
13
14
  [theme~='dark'] {
14
15
  /* Base (background) */
15
16
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -5,8 +5,11 @@
5
5
  */
6
6
  @media lumo_mixins_field-required {
7
7
  :host([required]) [part='required-indicator']::after {
8
- content: var(--lumo-required-field-indicator, '\2022');
9
- color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
8
+ content: var(--vaadin-input-field-required-indicator, var(--lumo-required-field-indicator, '\2022'));
9
+ color: var(
10
+ --vaadin-input-field-required-indicator-color,
11
+ var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color))
12
+ );
10
13
  position: absolute;
11
14
  right: 0;
12
15
  width: 1em;
@@ -14,7 +17,10 @@
14
17
  }
15
18
 
16
19
  :host([invalid]) [part='required-indicator']::after {
17
- color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
20
+ color: var(
21
+ --vaadin-input-field-required-indicator-color,
22
+ var(--lumo-required-field-indicator-color, var(--lumo-error-text-color))
23
+ );
18
24
  }
19
25
 
20
26
  /* RTL specific styles */