@meteo28093/equinox-ui 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.
- package/LICENCE.md +99 -0
- package/README.md +92 -0
- package/dist/equinox-ui.0.0.1.esm.js +2575 -0
- package/dist/equinox-ui.0.0.1.global.js +2575 -0
- package/dist/equinox-ui.esm.js +2575 -0
- package/dist/equinox-ui.global.js +2575 -0
- package/equinox.css +67 -0
- package/package.json +58 -0
package/equinox.css
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Automatic version:
|
|
3
|
+
* Uses light theme by default but switches to dark theme
|
|
4
|
+
* if a system-wide theme preference is set on the user's device.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
color-scheme: light dark;
|
|
9
|
+
--radius: 5px;
|
|
10
|
+
--radius-xs: 3px;
|
|
11
|
+
--max-width-body: 1000px;
|
|
12
|
+
--background: light-dark(#fefefe, #121212);
|
|
13
|
+
--font-size: 16px;
|
|
14
|
+
--border: light-dark(#e2e2e2, #303030);
|
|
15
|
+
--links: light-dark(#840023, #ff1755);
|
|
16
|
+
--padding-md: 1.2rem;
|
|
17
|
+
--padding-sm: 0.5rem;
|
|
18
|
+
--background-alt: light-dark(#e2e2e2, #1d1d1d);
|
|
19
|
+
--text: light-dark(#1b1b1b, #e9e9e9);
|
|
20
|
+
--text-muted: light-dark(#1b1b1bb9, #e9e9e9cf);
|
|
21
|
+
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
*, *::before,
|
|
25
|
+
*::after {
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
html {
|
|
30
|
+
padding: 0;
|
|
31
|
+
margin: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
body {
|
|
35
|
+
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
36
|
+
font-size: var(--font-size);
|
|
37
|
+
color: var(--text);
|
|
38
|
+
max-width: var(--max-width-body);
|
|
39
|
+
margin: 0 auto;
|
|
40
|
+
background-color: var(--background);
|
|
41
|
+
padding: var(--padding-md);
|
|
42
|
+
}
|
|
43
|
+
a {
|
|
44
|
+
color: var(--links);
|
|
45
|
+
text-decoration: none;
|
|
46
|
+
border-bottom: 2px dashed var(--links);
|
|
47
|
+
transition: all 0.2s ease;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
a:hover {
|
|
51
|
+
border-bottom-style: solid;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
button {
|
|
55
|
+
background: var(--background-alt);
|
|
56
|
+
color: var(--code);
|
|
57
|
+
font-family: inherit;
|
|
58
|
+
font-size: inherit;
|
|
59
|
+
padding: 0.5em 1em;
|
|
60
|
+
border: none;
|
|
61
|
+
border-radius: 0.25rem;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
transition: filter 0.2s ease;
|
|
64
|
+
}
|
|
65
|
+
button:hover {
|
|
66
|
+
filter: brightness(1.3);
|
|
67
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@meteo28093/equinox-ui",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "A collection of Web Components for building modern UIs",
|
|
5
|
+
"main": "dist/equinox-ui.esm.js",
|
|
6
|
+
"module": "dist/equinox-ui.esm.js",
|
|
7
|
+
"unpkg": "dist/equinox-ui.global.js",
|
|
8
|
+
"jsdelivr": "dist/equinox-ui.global.js",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/equinox-ui.esm.js",
|
|
11
|
+
"dist/equinox-ui.global.js",
|
|
12
|
+
"dist/equinox-ui.*.js",
|
|
13
|
+
"equinox.css",
|
|
14
|
+
"README.md"
|
|
15
|
+
],
|
|
16
|
+
"type": "module",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"import": "./dist/equinox-ui.esm.js",
|
|
20
|
+
"default": "./dist/equinox-ui.esm.js"
|
|
21
|
+
},
|
|
22
|
+
"./global": "./dist/equinox-ui.global.js",
|
|
23
|
+
"./tokens.css": "./src/styles/tokens.css"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
27
|
+
"start": "node server.js",
|
|
28
|
+
"prepublishOnly": "npm run build:lib",
|
|
29
|
+
"build": "npm run build:lib && npm run build:demo",
|
|
30
|
+
"build:demo": "esbuild app.js --bundle --minify --outfile=dist/demo.bundle.js --loader:.css=text",
|
|
31
|
+
"build:lib": "npm run build:lib:esm && npm run build:lib:global && npm run build:lib:versioned",
|
|
32
|
+
"build:lib:esm": "esbuild src/equinox-ui.js --bundle --minify --format=esm --outfile=dist/equinox-ui.esm.js",
|
|
33
|
+
"build:lib:global": "esbuild src/equinox-ui.global.js --bundle --minify --format=iife --global-name=EquinoxUIBundle --outfile=dist/equinox-ui.global.js",
|
|
34
|
+
"build:lib:versioned": "node scripts/build-versioned.mjs",
|
|
35
|
+
"watch": "esbuild app.js --bundle --sourcemap --outfile=dist/demo.bundle.js --loader:.css=text --watch",
|
|
36
|
+
"serve": "browser-sync start --server --files \"dist/demo.bundle.js, **/*.html, **/*.css, !node_modules/**\" --no-notify --port 3000 --single",
|
|
37
|
+
"dev": "npm run build:demo && (npm run watch & npm run serve)",
|
|
38
|
+
"check:style-leakage": "node scripts/check-style-leakage.mjs",
|
|
39
|
+
"check:cdn": "node scripts/check-cdn-build.mjs",
|
|
40
|
+
"verify:compat": "npm run build:lib && npm run check:cdn && npm run check:style-leakage"
|
|
41
|
+
},
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=18"
|
|
44
|
+
},
|
|
45
|
+
"keywords": [
|
|
46
|
+
"web-components",
|
|
47
|
+
"ui",
|
|
48
|
+
"components",
|
|
49
|
+
"custom-elements"
|
|
50
|
+
],
|
|
51
|
+
"author": "",
|
|
52
|
+
"license": "ISC",
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"browser-sync": "^3.0.4",
|
|
55
|
+
"esbuild": "^0.28.0"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {}
|
|
58
|
+
}
|