@vaadin/component-base 25.0.0-alpha11 → 25.0.0-alpha13
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/package.json +5 -5
- package/src/define.js +1 -1
- package/src/polylit-mixin.js +2 -4
- package/src/styles/style-props.js +11 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/component-base",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-alpha13",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
35
35
|
"@vaadin/vaadin-development-mode-detector": "^2.0.0",
|
|
36
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-
|
|
36
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha13",
|
|
37
37
|
"@vaadin/vaadin-usage-statistics": "^2.1.0",
|
|
38
38
|
"lit": "^3.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
42
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
41
|
+
"@vaadin/chai-plugins": "25.0.0-alpha13",
|
|
42
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha13",
|
|
43
43
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
44
44
|
"sinon": "^18.0.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "182de596226343392135468f021bbce9e6402011"
|
|
47
47
|
}
|
package/src/define.js
CHANGED
|
@@ -13,7 +13,7 @@ function dashToCamelCase(dash) {
|
|
|
13
13
|
|
|
14
14
|
const experimentalMap = {};
|
|
15
15
|
|
|
16
|
-
export function defineCustomElement(CustomElement, version = '25.0.0-
|
|
16
|
+
export function defineCustomElement(CustomElement, version = '25.0.0-alpha13') {
|
|
17
17
|
Object.defineProperty(CustomElement, 'version', {
|
|
18
18
|
get() {
|
|
19
19
|
return version;
|
package/src/polylit-mixin.js
CHANGED
|
@@ -249,10 +249,8 @@ const PolylitMixinImplementation = (superclass) => {
|
|
|
249
249
|
this.$ = {};
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
|
|
253
|
-
node.
|
|
254
|
-
this.$[node.id] = node;
|
|
255
|
-
});
|
|
252
|
+
this.renderRoot.querySelectorAll('[id]').forEach((node) => {
|
|
253
|
+
this.$[node.id] = node;
|
|
256
254
|
});
|
|
257
255
|
}
|
|
258
256
|
|
|
@@ -23,12 +23,8 @@ addGlobalThemeStyles(
|
|
|
23
23
|
);
|
|
24
24
|
|
|
25
25
|
/* Border colors */
|
|
26
|
-
--vaadin-border-color: color-mix(in oklch, var(--vaadin-color) 24%, transparent);
|
|
27
|
-
--vaadin-border-color
|
|
28
|
-
in oklch,
|
|
29
|
-
var(--vaadin-color) 48%,
|
|
30
|
-
transparent
|
|
31
|
-
); /* Above 3:1 contrast */
|
|
26
|
+
--vaadin-border-color-subtle: color-mix(in oklch, var(--vaadin-color) 24%, transparent);
|
|
27
|
+
--vaadin-border-color: color-mix(in oklch, var(--vaadin-color) 48%, transparent); /* Above 3:1 contrast */
|
|
32
28
|
|
|
33
29
|
/* Text colors */
|
|
34
30
|
--vaadin-color-disabled: color-mix(in oklch, var(--vaadin-color) 48%, transparent); /* Above 3:1 contrast */
|
|
@@ -36,18 +32,22 @@ addGlobalThemeStyles(
|
|
|
36
32
|
--vaadin-color: light-dark(#1f1f1f, white); /* Above 7:1 contrast */
|
|
37
33
|
|
|
38
34
|
/* Padding */
|
|
39
|
-
--vaadin-padding:
|
|
40
|
-
--vaadin-padding-
|
|
35
|
+
--vaadin-padding-xs: 6px;
|
|
36
|
+
--vaadin-padding-s: 8px;
|
|
37
|
+
--vaadin-padding-m: 12px;
|
|
38
|
+
--vaadin-padding-l: 16px;
|
|
39
|
+
--vaadin-padding-xl: 24px;
|
|
40
|
+
--vaadin-padding-container: var(--vaadin-padding-xs) var(--vaadin-padding-s);
|
|
41
41
|
|
|
42
42
|
/* Gap/spacing */
|
|
43
|
-
--vaadin-gap-
|
|
44
|
-
--vaadin-gap-
|
|
43
|
+
--vaadin-gap-s: 8px;
|
|
44
|
+
--vaadin-gap-m: 12px;
|
|
45
|
+
--vaadin-gap-l: 16px;
|
|
45
46
|
|
|
46
47
|
/* Border radius */
|
|
47
48
|
--vaadin-radius-s: 3px;
|
|
48
49
|
--vaadin-radius-m: 6px;
|
|
49
50
|
--vaadin-radius-l: 12px;
|
|
50
|
-
--vaadin-radius-full: 999px;
|
|
51
51
|
|
|
52
52
|
/* Focus outline */
|
|
53
53
|
--vaadin-focus-ring-width: 2px;
|