dubc-client-global-css 0.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.
@@ -0,0 +1,2 @@
1
+ export declare function getCSS(): CSSStyleSheet;
2
+ export declare function setCSS(sheet: CSSStyleSheet): void;
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ let css = new CSSStyleSheet();
2
+ export function getCSS() {
3
+ return css;
4
+ }
5
+ export function setCSS(sheet) {
6
+ css = sheet;
7
+ }
8
+ //# sourceMappingURL=index.js.map
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "dubc-client-global-css",
3
+ "type": "module",
4
+ "version": "0.0.1",
5
+ "description": "Tiny module to keep track of a global style sheet for web components.",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "README.md",
10
+ "dist/index.js",
11
+ "dist/index.d.ts"
12
+ ],
13
+ "scripts": {
14
+ "build": "tsc",
15
+ "prepare": "tsc",
16
+ "test": "vitest --coverage"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/p-jack/dubc.git"
21
+ },
22
+ "author": "Paul Jack",
23
+ "license": "BSD-3-Clause",
24
+ "bugs": {
25
+ "url": "https://github.com/p-jack/dubc/issues"
26
+ },
27
+ "homepage": "https://github.com/p-jack/dubc#readme",
28
+ "devDependencies": {
29
+ "@vitest/coverage-v8": "^4.1.7",
30
+ "jsdom": "^29.1.1",
31
+ "typescript": "^6.0.3",
32
+ "vitest": "^4.1.7"
33
+ }
34
+ }