@vaadin/vaadin-themable-mixin 25.0.0-rc1 → 25.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/vaadin-themable-mixin",
3
- "version": "25.0.0-rc1",
3
+ "version": "25.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -33,15 +33,15 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@open-wc/dedupe-mixin": "^1.3.0",
36
- "@vaadin/component-base": "25.0.0-rc1",
36
+ "@vaadin/component-base": "~25.0.1",
37
37
  "lit": "^3.0.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@polymer/polymer": "^3.0.0",
41
- "@vaadin/chai-plugins": "25.0.0-rc1",
42
- "@vaadin/test-runner-commands": "25.0.0-rc1",
41
+ "@vaadin/chai-plugins": "~25.0.1",
42
+ "@vaadin/test-runner-commands": "~25.0.1",
43
43
  "@vaadin/testing-helpers": "^2.0.0",
44
44
  "sinon": "^21.0.0"
45
45
  },
46
- "gitHead": "cea5e86ad18824e5631b63c11150b4d7701869c5"
46
+ "gitHead": "ced28c07a8abee586510349b312452c8a555fd10"
47
47
  }
@@ -1,9 +1,6 @@
1
- import type { CSSResultGroup } from 'lit';
2
-
3
1
  /**
4
2
  * @license
5
3
  * Copyright (c) 2017 - 2025 Vaadin Ltd.
6
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7
5
  */
8
6
  export { registerStyles, css, unsafeCSS } from './vaadin-themable-mixin.js';
9
- export const addGlobalThemeStyles: (id: string, ...styles: CSSResultGroup[]) => void;
@@ -4,20 +4,3 @@
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  export { registerStyles, css, unsafeCSS } from './vaadin-themable-mixin.js';
7
-
8
- /**
9
- * This is for use internally by Lumo and Material styles.
10
- *
11
- * @param {string} id the id to set on the created element, only for informational purposes
12
- * @param {CSSResultGroup[]} styles the styles to add
13
- */
14
- export const addGlobalThemeStyles = (id, ...styles) => {
15
- const styleTag = document.createElement('style');
16
- styleTag.id = id;
17
- styleTag.textContent = styles
18
- .map((style) => style.toString())
19
- .join('\n')
20
- .replace(':host', 'html');
21
-
22
- document.head.insertAdjacentElement('afterbegin', styleTag);
23
- };