@vaadin/vaadin-lumo-styles 24.0.5 → 24.1.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.
- package/badge-global.js +9 -0
- package/color-global.js +9 -0
- package/color.js +9 -3
- package/global.js +5 -0
- package/mixins/input-field-shared.js +10 -0
- package/package.json +4 -4
- package/sizing.js +2 -3
- package/spacing.js +2 -3
- package/style.js +2 -3
- package/typography-global.js +9 -0
- package/typography.js +2 -4
- package/user-colors.js +2 -4
- package/utility-global.js +9 -0
- package/version.js +1 -1
package/badge-global.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
import { badge } from './badge.js';
|
|
7
|
+
import { addLumoGlobalStyles } from './global.js';
|
|
8
|
+
|
|
9
|
+
addLumoGlobalStyles('badge', badge);
|
package/color-global.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
import { color } from './color.js';
|
|
7
|
+
import { addLumoGlobalStyles } from './global.js';
|
|
8
|
+
|
|
9
|
+
addLumoGlobalStyles('color', color);
|
package/color.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import './version.js';
|
|
7
7
|
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
8
|
+
import { addLumoGlobalStyles } from './global.js';
|
|
8
9
|
|
|
9
10
|
const colorBase = css`
|
|
10
11
|
:host {
|
|
@@ -78,11 +79,16 @@ const colorBase = css`
|
|
|
78
79
|
--lumo-success-text-color: hsl(145, 85%, 25%);
|
|
79
80
|
--lumo-success-contrast-color: #fff;
|
|
80
81
|
}
|
|
82
|
+
|
|
83
|
+
/* forced-colors mode adjustments */
|
|
84
|
+
@media (forced-colors: active) {
|
|
85
|
+
html {
|
|
86
|
+
--lumo-disabled-text-color: GrayText;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
81
89
|
`;
|
|
82
90
|
|
|
83
|
-
|
|
84
|
-
$tpl.innerHTML = `<style>${colorBase.toString().replace(':host', 'html')}</style>`;
|
|
85
|
-
document.head.appendChild($tpl.content);
|
|
91
|
+
addLumoGlobalStyles('color-props', colorBase);
|
|
86
92
|
|
|
87
93
|
const color = css`
|
|
88
94
|
[theme~='dark'] {
|
package/global.js
ADDED
|
@@ -86,9 +86,15 @@ const inputField = css`
|
|
|
86
86
|
opacity: 0;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
/* Read-only style */
|
|
90
|
+
:host([readonly]) {
|
|
91
|
+
--vaadin-input-field-border-color: transparent;
|
|
92
|
+
}
|
|
93
|
+
|
|
89
94
|
/* Disabled style */
|
|
90
95
|
:host([disabled]) {
|
|
91
96
|
pointer-events: none;
|
|
97
|
+
--vaadin-input-field-border-color: var(--lumo-contrast-20pct);
|
|
92
98
|
}
|
|
93
99
|
|
|
94
100
|
:host([disabled]) [part='label'],
|
|
@@ -98,6 +104,10 @@ const inputField = css`
|
|
|
98
104
|
}
|
|
99
105
|
|
|
100
106
|
/* Invalid style */
|
|
107
|
+
:host([invalid]) {
|
|
108
|
+
--vaadin-input-field-border-color: var(--lumo-error-color);
|
|
109
|
+
}
|
|
110
|
+
|
|
101
111
|
:host([invalid][focus-ring]) [part='input-field'] {
|
|
102
112
|
box-shadow: 0 0 0 2px var(--lumo-error-color-50pct);
|
|
103
113
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/vaadin-lumo-styles",
|
|
3
|
-
"version": "24.0
|
|
3
|
+
"version": "24.1.0-alpha10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@polymer/polymer": "^3.0.0",
|
|
44
|
-
"@vaadin/icon": "
|
|
45
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
44
|
+
"@vaadin/icon": "24.1.0-alpha10",
|
|
45
|
+
"@vaadin/vaadin-themable-mixin": "24.1.0-alpha10"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"gulp": "^4.0.2",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"gulp-sort": "^2.0.0",
|
|
52
52
|
"gulp-svgmin": "^4.1.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "12e39be7eb3b49c68708e8ca3de2fb22e91051a1"
|
|
55
55
|
}
|
package/sizing.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import './version.js';
|
|
7
7
|
import { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
8
|
+
import { addLumoGlobalStyles } from './global.js';
|
|
8
9
|
|
|
9
10
|
const sizing = css`
|
|
10
11
|
:host {
|
|
@@ -23,8 +24,6 @@ const sizing = css`
|
|
|
23
24
|
}
|
|
24
25
|
`;
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
$tpl.innerHTML = `<style>${sizing.toString().replace(':host', 'html')}</style>`;
|
|
28
|
-
document.head.appendChild($tpl.content);
|
|
27
|
+
addLumoGlobalStyles('sizing-props', sizing);
|
|
29
28
|
|
|
30
29
|
export { sizing };
|
package/spacing.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import './version.js';
|
|
7
7
|
import { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
8
|
+
import { addLumoGlobalStyles } from './global.js';
|
|
8
9
|
|
|
9
10
|
const spacing = css`
|
|
10
11
|
:host {
|
|
@@ -31,8 +32,6 @@ const spacing = css`
|
|
|
31
32
|
}
|
|
32
33
|
`;
|
|
33
34
|
|
|
34
|
-
|
|
35
|
-
$tpl.innerHTML = `<style>${spacing.toString().replace(':host', 'html')}</style>`;
|
|
36
|
-
document.head.appendChild($tpl.content);
|
|
35
|
+
addLumoGlobalStyles('spacing-props', spacing);
|
|
37
36
|
|
|
38
37
|
export { spacing };
|
package/style.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import './version.js';
|
|
7
7
|
import { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
8
|
+
import { addLumoGlobalStyles } from './global.js';
|
|
8
9
|
|
|
9
10
|
const style = css`
|
|
10
11
|
:host {
|
|
@@ -36,8 +37,6 @@ const globals = css`
|
|
|
36
37
|
}
|
|
37
38
|
`;
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
$tpl.innerHTML = `<style>${style.toString().replace(':host', 'html')}$</style>`;
|
|
41
|
-
document.head.appendChild($tpl.content);
|
|
40
|
+
addLumoGlobalStyles('style-props', style);
|
|
42
41
|
|
|
43
42
|
export { globals, style };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
import { addLumoGlobalStyles } from './global.js';
|
|
7
|
+
import { typography } from './typography.js';
|
|
8
|
+
|
|
9
|
+
addLumoGlobalStyles('typography', typography);
|
package/typography.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import './version.js';
|
|
7
7
|
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
8
|
+
import { addLumoGlobalStyles } from './global.js';
|
|
8
9
|
|
|
9
10
|
const font = css`
|
|
10
11
|
:host {
|
|
@@ -123,9 +124,6 @@ const typography = css`
|
|
|
123
124
|
`;
|
|
124
125
|
|
|
125
126
|
registerStyles('', typography, { moduleId: 'lumo-typography' });
|
|
126
|
-
|
|
127
|
-
const $tpl = document.createElement('template');
|
|
128
|
-
$tpl.innerHTML = `<style>${font.toString().replace(':host', 'html')}</style>`;
|
|
129
|
-
document.head.appendChild($tpl.content);
|
|
127
|
+
addLumoGlobalStyles('typography-props', font);
|
|
130
128
|
|
|
131
129
|
export { font, typography };
|
package/user-colors.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import './version.js';
|
|
7
7
|
import { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
8
|
+
import { addLumoGlobalStyles } from './global.js';
|
|
8
9
|
|
|
9
10
|
const userColors = css`
|
|
10
11
|
:host {
|
|
@@ -28,8 +29,5 @@ const userColors = css`
|
|
|
28
29
|
}
|
|
29
30
|
`;
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
$tpl.innerHTML = `<style>${userColors.toString().replace(':host', 'html')}</style>`;
|
|
33
|
-
document.head.appendChild($tpl.content);
|
|
34
|
-
|
|
32
|
+
addLumoGlobalStyles('user-color-props', userColors);
|
|
35
33
|
export { userColors };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
import { addLumoGlobalStyles } from './global.js';
|
|
7
|
+
import { utility } from './utility.js';
|
|
8
|
+
|
|
9
|
+
addLumoGlobalStyles('utility', utility);
|