@vaadin/vaadin-lumo-styles 25.0.0-alpha17 → 25.0.0-alpha19
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.
- package/all-imports.d.ts +0 -8
- package/all-imports.js +0 -18
- package/components/upload.css +6 -3
- package/mixins/field-button.js +3 -4
- package/mixins/helper.js +3 -4
- package/mixins/input-field-shared.js +3 -6
- package/mixins/loader.js +3 -2
- package/mixins/menu-overlay.js +3 -2
- package/mixins/overlay.js +3 -4
- package/mixins/required-field.js +3 -4
- package/package.json +7 -8
- package/presets/compact.css +31 -0
- package/src/components/context-menu-overlay.css +21 -0
- package/src/components/upload-file.css +4 -3
- package/src/mixins/overlay.css +9 -0
- package/utility.css +0 -1
- package/auto-complete.css +0 -2512
- package/badge-global.js +0 -9
- package/badge.d.ts +0 -3
- package/badge.js +0 -178
- package/color-global.js +0 -9
- package/color.d.ts +0 -5
- package/color.js +0 -221
- package/font-icons.js +0 -71
- package/global.js +0 -5
- package/presets/compact.js +0 -40
- package/sizing.d.ts +0 -3
- package/sizing.js +0 -29
- package/spacing.d.ts +0 -3
- package/spacing.js +0 -37
- package/src/components/upload-file-list.css +0 -24
- package/style.d.ts +0 -3
- package/style.js +0 -31
- package/typography-global.js +0 -13
- package/typography.d.ts +0 -7
- package/typography.js +0 -129
- package/user-colors.d.ts +0 -8
- package/user-colors.js +0 -33
- package/utilities/accessibility.js +0 -21
- package/utilities/background.js +0 -156
- package/utilities/border.js +0 -147
- package/utilities/filter.js +0 -34
- package/utilities/flexbox-grid.js +0 -619
- package/utilities/layout.js +0 -504
- package/utilities/shadows.js +0 -28
- package/utilities/sizing.js +0 -121
- package/utilities/spacing.js +0 -542
- package/utilities/transition.js +0 -50
- package/utilities/typography.js +0 -344
- package/utility-global.js +0 -9
- package/utility.d.ts +0 -3
- package/utility.js +0 -34
package/all-imports.d.ts
CHANGED
|
@@ -2,11 +2,3 @@ export * from './mixins/field-button.js';
|
|
|
2
2
|
export * from './mixins/menu-overlay.js';
|
|
3
3
|
export * from './mixins/overlay.js';
|
|
4
4
|
export * from './mixins/required-field.js';
|
|
5
|
-
export * from './badge.js';
|
|
6
|
-
export * from './color.js';
|
|
7
|
-
export * from './sizing.js';
|
|
8
|
-
export * from './spacing.js';
|
|
9
|
-
export * from './style.js';
|
|
10
|
-
export * from './typography.js';
|
|
11
|
-
export * from './user-colors.js';
|
|
12
|
-
export * from './utility.js';
|
package/all-imports.js
CHANGED
|
@@ -11,22 +11,4 @@ import './mixins/overlay.js';
|
|
|
11
11
|
export * from './mixins/overlay.js';
|
|
12
12
|
import './mixins/required-field.js';
|
|
13
13
|
export * from './mixins/required-field.js';
|
|
14
|
-
import './badge.js';
|
|
15
|
-
export * from './badge.js';
|
|
16
|
-
import './color.js';
|
|
17
|
-
export * from './color.js';
|
|
18
|
-
import './font-icons.js';
|
|
19
|
-
export * from './font-icons.js';
|
|
20
|
-
import './sizing.js';
|
|
21
|
-
export * from './sizing.js';
|
|
22
|
-
import './spacing.js';
|
|
23
|
-
export * from './spacing.js';
|
|
24
|
-
import './style.js';
|
|
25
|
-
export * from './style.js';
|
|
26
|
-
import './typography.js';
|
|
27
|
-
export * from './typography.js';
|
|
28
|
-
import './user-colors.js';
|
|
29
|
-
export * from './user-colors.js';
|
|
30
|
-
import './utility.js';
|
|
31
|
-
export * from './utility.js';
|
|
32
14
|
import './vaadin-iconset.js';
|
package/components/upload.css
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
@import '../src/mixins/field-button.css';
|
|
7
|
-
@import '../src/components/upload-file-list.css';
|
|
8
7
|
@import '../src/components/upload-file.css';
|
|
9
8
|
@import '../src/components/upload-icon.css';
|
|
10
9
|
@import '../src/components/upload.css';
|
|
@@ -22,7 +21,11 @@
|
|
|
22
21
|
--vaadin-upload-file-lumo-inject-modules:
|
|
23
22
|
lumo_mixins_field-button,
|
|
24
23
|
lumo_components_upload-file;
|
|
24
|
+
}
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
--vaadin-upload-
|
|
26
|
+
:where(:root, :host) {
|
|
27
|
+
--vaadin-upload-gap: 0;
|
|
28
|
+
--vaadin-upload-file-list-border-color: var(
|
|
29
|
+
--lumo-contrast-10pct
|
|
30
|
+
);
|
|
28
31
|
}
|
package/mixins/field-button.js
CHANGED
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import '
|
|
7
|
-
import '../font-icons.js';
|
|
8
|
-
import '../sizing.js';
|
|
9
|
-
import '../style.js';
|
|
6
|
+
import { issueWarning } from '@vaadin/component-base/src/warnings.js';
|
|
10
7
|
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
11
8
|
|
|
9
|
+
issueWarning('Lumo .js mixins are deprecated and will be removed in V26');
|
|
10
|
+
|
|
12
11
|
const fieldButton = css`
|
|
13
12
|
[part$='button'] {
|
|
14
13
|
flex: none;
|
package/mixins/helper.js
CHANGED
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import '
|
|
7
|
-
import '../sizing.js';
|
|
8
|
-
import '../style.js';
|
|
9
|
-
import '../typography.js';
|
|
6
|
+
import { issueWarning } from '@vaadin/component-base/src/warnings.js';
|
|
10
7
|
import { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
11
8
|
|
|
9
|
+
issueWarning('Lumo .js mixins are deprecated and will be removed in V26');
|
|
10
|
+
|
|
12
11
|
export const helper = css`
|
|
13
12
|
:host {
|
|
14
13
|
--_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
|
|
@@ -3,17 +3,14 @@
|
|
|
3
3
|
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import '
|
|
7
|
-
import '../font-icons.js';
|
|
8
|
-
import '../sizing.js';
|
|
9
|
-
import '../spacing.js';
|
|
10
|
-
import '../style.js';
|
|
11
|
-
import '../typography.js';
|
|
6
|
+
import { issueWarning } from '@vaadin/component-base/src/warnings.js';
|
|
12
7
|
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
13
8
|
import { fieldButton } from './field-button.js';
|
|
14
9
|
import { helper } from './helper.js';
|
|
15
10
|
import { requiredField } from './required-field.js';
|
|
16
11
|
|
|
12
|
+
issueWarning('Lumo .js mixins are deprecated and will be removed in V26');
|
|
13
|
+
|
|
17
14
|
const inputField = css`
|
|
18
15
|
:host {
|
|
19
16
|
--lumo-text-field-size: var(--lumo-size-m);
|
package/mixins/loader.js
CHANGED
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
* Copyright (c) 2022 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import '
|
|
7
|
-
import '../sizing.js';
|
|
6
|
+
import { issueWarning } from '@vaadin/component-base/src/warnings.js';
|
|
8
7
|
import { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
9
8
|
|
|
9
|
+
issueWarning('Lumo .js mixins are deprecated and will be removed in V26');
|
|
10
|
+
|
|
10
11
|
const loader = css`
|
|
11
12
|
[part~='loader'] {
|
|
12
13
|
box-sizing: border-box;
|
package/mixins/menu-overlay.js
CHANGED
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import '
|
|
7
|
-
import '../style.js';
|
|
6
|
+
import { issueWarning } from '@vaadin/component-base/src/warnings.js';
|
|
8
7
|
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
9
8
|
import { overlay } from './overlay.js';
|
|
10
9
|
|
|
10
|
+
issueWarning('Lumo .js mixins are deprecated and will be removed in V26');
|
|
11
|
+
|
|
11
12
|
const menuOverlayCore = css`
|
|
12
13
|
:host([opening]),
|
|
13
14
|
:host([closing]) {
|
package/mixins/overlay.js
CHANGED
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import '
|
|
7
|
-
import '../spacing.js';
|
|
8
|
-
import '../style.js';
|
|
9
|
-
import '../typography.js';
|
|
6
|
+
import { issueWarning } from '@vaadin/component-base/src/warnings.js';
|
|
10
7
|
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
11
8
|
|
|
9
|
+
issueWarning('Lumo .js mixins are deprecated and will be removed in V26');
|
|
10
|
+
|
|
12
11
|
const overlay = css`
|
|
13
12
|
:host {
|
|
14
13
|
top: var(--lumo-space-m);
|
package/mixins/required-field.js
CHANGED
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import '
|
|
7
|
-
import '../spacing.js';
|
|
8
|
-
import '../style.js';
|
|
9
|
-
import '../typography.js';
|
|
6
|
+
import { issueWarning } from '@vaadin/component-base/src/warnings.js';
|
|
10
7
|
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
11
8
|
|
|
9
|
+
issueWarning('Lumo .js mixins are deprecated and will be removed in V26');
|
|
10
|
+
|
|
12
11
|
const requiredField = css`
|
|
13
12
|
[part='label'] {
|
|
14
13
|
align-self: flex-start;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/vaadin-lumo-styles",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-alpha19",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -30,9 +30,8 @@
|
|
|
30
30
|
"components/*.css",
|
|
31
31
|
"mixins/*.d.ts",
|
|
32
32
|
"mixins/*.js",
|
|
33
|
-
"presets
|
|
34
|
-
"src"
|
|
35
|
-
"utilities/*.js"
|
|
33
|
+
"presets",
|
|
34
|
+
"src"
|
|
36
35
|
],
|
|
37
36
|
"keywords": [
|
|
38
37
|
"vaadin",
|
|
@@ -42,9 +41,9 @@
|
|
|
42
41
|
"web-component"
|
|
43
42
|
],
|
|
44
43
|
"dependencies": {
|
|
45
|
-
"@vaadin/component-base": "25.0.0-
|
|
46
|
-
"@vaadin/icon": "25.0.0-
|
|
47
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-
|
|
44
|
+
"@vaadin/component-base": "25.0.0-alpha19",
|
|
45
|
+
"@vaadin/icon": "25.0.0-alpha19",
|
|
46
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha19"
|
|
48
47
|
},
|
|
49
48
|
"devDependencies": {
|
|
50
49
|
"gulp": "^5.0.1",
|
|
@@ -54,5 +53,5 @@
|
|
|
54
53
|
"imagemin": "^9.0.0",
|
|
55
54
|
"imagemin-svgo": "^10.0.1"
|
|
56
55
|
},
|
|
57
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "1f9af1ce5f0bae8daff044176c8a8df697763881"
|
|
58
57
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
/* Use a stronger selector than `:where()` used by other Lumo CSS */
|
|
8
|
+
:is(:root, :host) {
|
|
9
|
+
--lumo-size-xl: 3rem;
|
|
10
|
+
--lumo-size-l: 2.5rem;
|
|
11
|
+
--lumo-size-m: 2rem;
|
|
12
|
+
--lumo-size-s: 1.75rem;
|
|
13
|
+
--lumo-size-xs: 1.5rem;
|
|
14
|
+
--lumo-font-size: 1rem;
|
|
15
|
+
--lumo-font-size-xxxl: 1.75rem;
|
|
16
|
+
--lumo-font-size-xxl: 1.375rem;
|
|
17
|
+
--lumo-font-size-xl: 1.125rem;
|
|
18
|
+
--lumo-font-size-l: 1rem;
|
|
19
|
+
--lumo-font-size-m: 0.875rem;
|
|
20
|
+
--lumo-font-size-s: 0.8125rem;
|
|
21
|
+
--lumo-font-size-xs: 0.75rem;
|
|
22
|
+
--lumo-font-size-xxs: 0.6875rem;
|
|
23
|
+
--lumo-line-height-m: 1.4;
|
|
24
|
+
--lumo-line-height-s: 1.2;
|
|
25
|
+
--lumo-line-height-xs: 1.1;
|
|
26
|
+
--lumo-space-xl: 1.875rem;
|
|
27
|
+
--lumo-space-l: 1.25rem;
|
|
28
|
+
--lumo-space-m: 0.625rem;
|
|
29
|
+
--lumo-space-s: 0.3125rem;
|
|
30
|
+
--lumo-space-xs: 0.1875rem;
|
|
31
|
+
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
:host {
|
|
8
8
|
align-items: flex-start;
|
|
9
9
|
justify-content: flex-start;
|
|
10
|
+
--_default-offset: var(--lumo-space-xs);
|
|
10
11
|
/* TODO These style overrides should not be needed.
|
|
11
12
|
We should instead offer a way to have non-selectable items inside the context menu. */
|
|
12
13
|
--_lumo-list-box-item-selected-icon-display: none;
|
|
@@ -38,4 +39,24 @@
|
|
|
38
39
|
outline: 3px solid !important;
|
|
39
40
|
}
|
|
40
41
|
}
|
|
42
|
+
|
|
43
|
+
:host([position^='top'][top-aligned]) [part='overlay'],
|
|
44
|
+
:host([position^='bottom'][top-aligned]) [part='overlay'] {
|
|
45
|
+
margin-top: var(--vaadin-context-menu-offset-top, var(--_default-offset));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host([position^='top'][bottom-aligned]) [part='overlay'],
|
|
49
|
+
:host([position^='bottom'][bottom-aligned]) [part='overlay'] {
|
|
50
|
+
margin-bottom: var(--vaadin-context-menu-offset-bottom, var(--_default-offset));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:host([position^='start'][start-aligned]) [part='overlay'],
|
|
54
|
+
:host([position^='end'][start-aligned]) [part='overlay'] {
|
|
55
|
+
margin-inline-start: var(--vaadin-context-menu-offset-start, var(--_default-offset));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:host([position^='start'][end-aligned]) [part='overlay'],
|
|
59
|
+
:host([position^='end'][end-aligned]) [part='overlay'] {
|
|
60
|
+
margin-inline-end: var(--vaadin-context-menu-offset-end, var(--_default-offset));
|
|
61
|
+
}
|
|
41
62
|
}
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
:host(:focus-visible) {
|
|
15
|
-
outline: none;
|
|
16
15
|
border-radius: var(--lumo-border-radius-s);
|
|
17
|
-
|
|
16
|
+
outline: var(--_focus-ring-width) solid var(--_focus-ring-color);
|
|
17
|
+
outline-offset: calc(var(--_focus-ring-width) * -1);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
[part='status'],
|
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
[part$='button']:focus {
|
|
52
|
-
|
|
52
|
+
outline: var(--_focus-ring-width) solid var(--_focus-ring-color);
|
|
53
|
+
outline-offset: calc(var(--_focus-ring-width) * -1);
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
/* Vertically align icons / buttons with the first line of text */
|
package/src/mixins/overlay.css
CHANGED
|
@@ -65,13 +65,22 @@
|
|
|
65
65
|
box-shadow:
|
|
66
66
|
0 0 0 1px var(--lumo-shade-5pct),
|
|
67
67
|
var(--lumo-box-shadow-m);
|
|
68
|
+
|
|
69
|
+
/* CSS reset for font styles */
|
|
68
70
|
color: var(--lumo-body-text-color);
|
|
69
71
|
font-family: var(--lumo-font-family);
|
|
70
72
|
font-size: var(--lumo-font-size-m);
|
|
73
|
+
font-style: normal;
|
|
71
74
|
font-weight: 400;
|
|
75
|
+
font-variant: normal;
|
|
72
76
|
line-height: var(--lumo-line-height-m);
|
|
73
77
|
letter-spacing: 0;
|
|
78
|
+
text-align: initial;
|
|
79
|
+
text-decoration: none;
|
|
80
|
+
text-indent: initial;
|
|
74
81
|
text-transform: none;
|
|
82
|
+
white-space: initial;
|
|
83
|
+
word-spacing: initial;
|
|
75
84
|
-webkit-text-size-adjust: 100%;
|
|
76
85
|
-webkit-font-smoothing: antialiased;
|
|
77
86
|
-moz-osx-font-smoothing: grayscale;
|
package/utility.css
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
@import './props.css';
|
|
7
6
|
@import './src/utilities/accessibility.css';
|
|
8
7
|
@import './src/utilities/background.css';
|
|
9
8
|
@import './src/utilities/border.css';
|