@wavelengthusaf/web-components 1.0.0
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 +20 -0
- package/dist/cjs/index.cjs +72166 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/index.d.cts +882 -0
- package/dist/esm/index.d.ts +882 -0
- package/dist/esm/index.js +72166 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/fonts/b612-latin-400-normal.woff +0 -0
- package/dist/fonts/b612-latin-400-normal.woff2 +0 -0
- package/dist/fonts/goldman-latin-400-normal.woff +0 -0
- package/dist/fonts/goldman-latin-400-normal.woff2 +0 -0
- package/dist/styles/fontBase64.tsx +16 -0
- package/dist/styles/fontSheet.tsx +19 -0
- package/package.json +50 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export let fontSheet: CSSStyleSheet | null = null;
|
|
2
|
+
|
|
3
|
+
if (typeof CSSStyleSheet !== "undefined" && "replaceSync" in CSSStyleSheet.prototype) {
|
|
4
|
+
fontSheet = new CSSStyleSheet();
|
|
5
|
+
fontSheet.replaceSync(`
|
|
6
|
+
@font-face {
|
|
7
|
+
font-family: 'Goldman';
|
|
8
|
+
src: url("../fonts/goldman-latin-400-normal.woff2") format("woff2");
|
|
9
|
+
font-weight: 400;
|
|
10
|
+
font-style: normal;
|
|
11
|
+
}
|
|
12
|
+
@font-face {
|
|
13
|
+
font-family: 'B612';
|
|
14
|
+
src: url("../fonts/b612-latin-400-normal.woff2") format("woff2");
|
|
15
|
+
font-weight: 400;
|
|
16
|
+
font-style: normal;
|
|
17
|
+
}
|
|
18
|
+
`);
|
|
19
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wavelengthusaf/web-components",
|
|
3
|
+
"author": "563 EWS - Wavelength",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"description": "Common component library used by Wavelength developers (NATIVE WEB COMPONENTS)",
|
|
7
|
+
"main": "/dist/cjs/index.cjs",
|
|
8
|
+
"module": "/dist/esm/index.js",
|
|
9
|
+
"types": "/dist/esm/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/esm/index.d.ts",
|
|
13
|
+
"import": "./dist/esm/index.js",
|
|
14
|
+
"require": "./dist/cjs/index.cjs"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"type": "module",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist/**/*"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"compile": "tsc",
|
|
23
|
+
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
24
|
+
"test": "jest --runInBand --coverage",
|
|
25
|
+
"build:esm": "tsup src/index.ts --format esm --dts --outDir dist/esm && mkdir -p dist/styles/ dist/fonts && cp -R src/styles/ dist/styles/ && cp -R src/fonts/ dist/fonts/",
|
|
26
|
+
"build:cjs": "tsup src/index.ts --format cjs --outDir dist/cjs && mkdir -p dist/styles/ dist/fonts && cp -R src/styles/ dist/styles/ && cp -R src/fonts/ dist/fonts/",
|
|
27
|
+
"build": "npm run build:esm && npm run build:cjs",
|
|
28
|
+
"watch:esm": "tsup src/index.ts --format esm --dts --outDir dist/esm --watch && tsc --jsx react-jsx --project ./tsconfig.json",
|
|
29
|
+
"watch:cjs": "tsup src/index.ts --format cjs --outDir dist/cjs --watch && tsc --jsx react-jsx --project ./tsconfig.json",
|
|
30
|
+
"watch": "concurrently -k \"npm run watch:esm\" \"npm run watch:cjs\""
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://gitlab.wavelengthusaf.com/common-components/common-components"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"usaf",
|
|
38
|
+
"components"
|
|
39
|
+
],
|
|
40
|
+
"directories": {
|
|
41
|
+
"test": "jest"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"zod": "^4.0.17"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"tsup": "^8.0.1",
|
|
48
|
+
"typescript": "^5.5.2"
|
|
49
|
+
}
|
|
50
|
+
}
|