@vaadin/vaadin-themable-mixin 23.2.0-dev.8a7678b70 → 23.2.1
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/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A mixin to enable customization of Shadow DOM used by Vaadin components.
|
|
4
4
|
|
|
5
|
-
[Documentation ↗](https://vaadin.com/docs/latest/
|
|
5
|
+
[Documentation ↗](https://vaadin.com/docs/latest/styling/custom-theme/styling-components)
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/@vaadin/vaadin-themable-mixin)
|
|
8
8
|
[](https://discord.gg/PHmkCKC)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/vaadin-themable-mixin",
|
|
3
|
-
"version": "23.2.
|
|
3
|
+
"version": "23.2.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"author": "Vaadin Ltd",
|
|
15
15
|
"homepage": "https://vaadin.com/elements",
|
|
16
16
|
"bugs": {
|
|
17
|
-
"url": "https://github.com/vaadin/
|
|
17
|
+
"url": "https://github.com/vaadin/web-components/issues"
|
|
18
18
|
},
|
|
19
19
|
"main": "vaadin-themable-mixin.js",
|
|
20
20
|
"module": "vaadin-themable-mixin.js",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
41
41
|
"sinon": "^13.0.2"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "a6c314f6927bfd3309fc735eae6c6dc72ab8367a"
|
|
44
44
|
}
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* Copyright (c) 2017 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import { Constructor } from '@open-wc/dedupe-mixin';
|
|
7
|
-
import { CSSResult, CSSResultGroup } from 'lit';
|
|
8
|
-
import { ThemePropertyMixinClass } from './vaadin-theme-property-mixin.js';
|
|
6
|
+
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
7
|
+
import type { CSSResult, CSSResultGroup } from 'lit';
|
|
8
|
+
import type { ThemePropertyMixinClass } from './vaadin-theme-property-mixin.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* A mixin for `nav` elements, facilitating navigation and selection of childNodes.
|
|
12
12
|
*/
|
|
13
13
|
export declare function ThemableMixin<T extends Constructor<HTMLElement>>(
|
|
14
14
|
base: T,
|
|
15
|
-
):
|
|
15
|
+
): Constructor<ThemableMixinClass> & Constructor<ThemePropertyMixinClass> & T;
|
|
16
16
|
|
|
17
17
|
export declare class ThemableMixinClass {
|
|
18
18
|
protected static finalize(): void;
|
|
@@ -30,7 +30,7 @@ type Theme = {
|
|
|
30
30
|
themeFor: string;
|
|
31
31
|
styles: CSSResult[];
|
|
32
32
|
moduleId?: string;
|
|
33
|
-
include?: string | string
|
|
33
|
+
include?: string[] | string;
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
/**
|
package/vaadin-themable-mixin.js
CHANGED
|
@@ -89,9 +89,9 @@ function matchesThemeFor(themeFor, tagName) {
|
|
|
89
89
|
*/
|
|
90
90
|
function getIncludePriority(moduleName = '') {
|
|
91
91
|
let includePriority = 0;
|
|
92
|
-
if (moduleName.
|
|
92
|
+
if (moduleName.startsWith('lumo-') || moduleName.startsWith('material-')) {
|
|
93
93
|
includePriority = 1;
|
|
94
|
-
} else if (moduleName.
|
|
94
|
+
} else if (moduleName.startsWith('vaadin-')) {
|
|
95
95
|
includePriority = 2;
|
|
96
96
|
}
|
|
97
97
|
return includePriority;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Copyright (c) 2017 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import { Constructor } from '@open-wc/dedupe-mixin';
|
|
6
|
+
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
7
7
|
|
|
8
8
|
export declare function ThemePropertyMixin<T extends Constructor<HTMLElement>>(
|
|
9
9
|
base: T,
|
|
10
|
-
):
|
|
10
|
+
): Constructor<ThemePropertyMixinClass> & T;
|
|
11
11
|
|
|
12
12
|
export declare class ThemePropertyMixinClass {
|
|
13
13
|
/**
|
|
@@ -22,7 +22,7 @@ export declare class ThemePropertyMixinClass {
|
|
|
22
22
|
* **NOTE:** Extending the mixin only provides the property for binding,
|
|
23
23
|
* and does not make the propagation alone.
|
|
24
24
|
*
|
|
25
|
-
* See [Styling Components: Sub-components](https://vaadin.com/docs/latest/
|
|
25
|
+
* See [Styling Components: Sub-components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components/#sub-components).
|
|
26
26
|
* page for more information.
|
|
27
27
|
*
|
|
28
28
|
* @deprecated The `theme` property is not supposed for public use and will be dropped in Vaadin 24.
|
|
@@ -43,7 +43,7 @@ export declare class ThemePropertyMixinClass {
|
|
|
43
43
|
* **NOTE:** Extending the mixin only provides the property for binding,
|
|
44
44
|
* and does not make the propagation alone.
|
|
45
45
|
*
|
|
46
|
-
* See [Styling Components: Sub-components](https://vaadin.com/docs/latest/
|
|
46
|
+
* See [Styling Components: Sub-components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components/#sub-components).
|
|
47
47
|
* page for more information.
|
|
48
48
|
*
|
|
49
49
|
* @protected
|
|
@@ -22,7 +22,7 @@ export const ThemePropertyMixin = (superClass) =>
|
|
|
22
22
|
* **NOTE:** Extending the mixin only provides the property for binding,
|
|
23
23
|
* and does not make the propagation alone.
|
|
24
24
|
*
|
|
25
|
-
* See [Styling Components: Sub-components](https://vaadin.com/docs/latest/
|
|
25
|
+
* See [Styling Components: Sub-components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components/#sub-components).
|
|
26
26
|
* page for more information.
|
|
27
27
|
*
|
|
28
28
|
* @deprecated The `theme` property is not supposed for public use and will be dropped in Vaadin 24.
|
|
@@ -47,7 +47,7 @@ export const ThemePropertyMixin = (superClass) =>
|
|
|
47
47
|
* **NOTE:** Extending the mixin only provides the property for binding,
|
|
48
48
|
* and does not make the propagation alone.
|
|
49
49
|
*
|
|
50
|
-
* See [Styling Components: Sub-components](https://vaadin.com/docs/latest/
|
|
50
|
+
* See [Styling Components: Sub-components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components/#sub-components).
|
|
51
51
|
* page for more information.
|
|
52
52
|
*
|
|
53
53
|
* @protected
|