@5even7/dlc-ui 0.2.11 → 0.2.13
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/CHANGELOG.md +48 -42
- package/LICENSE +21 -21
- package/README.md +258 -255
- package/dist/capsule.cjs +307 -71
- package/dist/capsule.mjs +828 -604
- package/dist/color.cjs +338 -82
- package/dist/color.mjs +879 -631
- package/dist/index.cjs +997 -253
- package/dist/index.mjs +2704 -1976
- package/dist/index.umd.js +997 -253
- package/dist/index.umd.min.js +1 -1
- package/dist/progress.cjs +632 -172
- package/dist/progress.mjs +1827 -1379
- package/dist/vue2.cjs +1141 -266
- package/dist/vue2.mjs +2893 -2056
- package/dist/vue3.cjs +1141 -266
- package/dist/vue3.mjs +2893 -2056
- package/package.json +118 -118
- package/styles/base.css +32 -32
- package/styles/color.css +18 -18
- package/styles/progress.css +53 -50
- package/types/capsule.d.ts +15 -13
- package/types/color.d.ts +15 -13
- package/types/index.d.ts +204 -116
- package/types/progress.d.ts +16 -14
- package/types/vue3.d.ts +38 -22
package/package.json
CHANGED
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@5even7/dlc-ui",
|
|
3
|
-
"version": "0.2.
|
|
1
|
+
{
|
|
2
|
+
"name": "@5even7/dlc-ui",
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
7
7
|
},
|
|
8
|
-
"description": "DLC 星云胶囊组件(WebGL2 实时渲染,Canvas2D 自动降级),供 H5 / Vue2 / Vue3 使用。",
|
|
9
|
-
"type": "module",
|
|
10
|
-
"repository": {
|
|
11
|
-
"type": "git",
|
|
12
|
-
"url": "https://gitee.com/K_a1/cosmic-capsules.git"
|
|
13
|
-
},
|
|
14
|
-
"main": "./dist/index.cjs",
|
|
15
|
-
"module": "./dist/index.mjs",
|
|
16
|
-
"types": "./types/index.d.ts",
|
|
17
|
-
"unpkg": "./dist/index.umd.min.js",
|
|
18
|
-
"jsdelivr": "./dist/index.umd.min.js",
|
|
19
|
-
"exports": {
|
|
20
|
-
".": {
|
|
21
|
-
"types": "./types/index.d.ts",
|
|
22
|
-
"import": "./dist/index.mjs",
|
|
23
|
-
"require": "./dist/index.cjs",
|
|
24
|
-
"default": "./dist/index.mjs"
|
|
25
|
-
},
|
|
26
|
-
"./capsule": {
|
|
27
|
-
"types": "./types/capsule.d.ts",
|
|
28
|
-
"import": "./dist/capsule.mjs",
|
|
29
|
-
"require": "./dist/capsule.cjs",
|
|
30
|
-
"default": "./dist/capsule.mjs"
|
|
31
|
-
},
|
|
32
|
-
"./progress": {
|
|
33
|
-
"types": "./types/progress.d.ts",
|
|
34
|
-
"import": "./dist/progress.mjs",
|
|
35
|
-
"require": "./dist/progress.cjs",
|
|
36
|
-
"default": "./dist/progress.mjs"
|
|
37
|
-
},
|
|
38
|
-
"./color": {
|
|
39
|
-
"types": "./types/color.d.ts",
|
|
40
|
-
"import": "./dist/color.mjs",
|
|
41
|
-
"require": "./dist/color.cjs",
|
|
42
|
-
"default": "./dist/color.mjs"
|
|
43
|
-
},
|
|
44
|
-
"./vue3": {
|
|
45
|
-
"types": "./types/vue3.d.ts",
|
|
46
|
-
"import": "./dist/vue3.mjs",
|
|
47
|
-
"require": "./dist/vue3.cjs",
|
|
48
|
-
"default": "./dist/vue3.mjs"
|
|
49
|
-
},
|
|
50
|
-
"./vue2": {
|
|
51
|
-
"types": "./types/vue2.d.ts",
|
|
52
|
-
"import": "./dist/vue2.mjs",
|
|
53
|
-
"require": "./dist/vue2.cjs",
|
|
54
|
-
"default": "./dist/vue2.mjs"
|
|
55
|
-
},
|
|
56
|
-
"./style.css": "./styles/theme.css",
|
|
57
|
-
"./capsule/style.css": "./styles/capsule.css",
|
|
58
|
-
"./progress/style.css": "./styles/progress.css",
|
|
59
|
-
"./color/style.css": "./styles/color.css",
|
|
60
|
-
"./package.json": "./package.json"
|
|
61
|
-
},
|
|
62
|
-
"files": [
|
|
63
|
-
"dist",
|
|
64
|
-
"styles",
|
|
65
|
-
"types",
|
|
66
|
-
"README.md",
|
|
67
|
-
"LICENSE",
|
|
68
|
-
"CHANGELOG.md"
|
|
69
|
-
],
|
|
70
|
-
"peerDependencies": {
|
|
71
|
-
"vue": ">=2.7.0"
|
|
72
|
-
},
|
|
73
|
-
"peerDependenciesMeta": {
|
|
74
|
-
"vue": {
|
|
75
|
-
"optional": true
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"sideEffects": [
|
|
79
|
-
"./styles
|
|
80
|
-
],
|
|
81
|
-
"scripts": {
|
|
82
|
-
"build": "rollup -c && node scripts/copy-css.mjs",
|
|
83
|
-
"test": "node --test",
|
|
84
|
-
"serve": "node scripts/serve.mjs",
|
|
85
|
-
"demo:h5": "node scripts/serve.mjs",
|
|
86
|
-
"demo:vue3": "npm --prefix examples/vue3 run dev",
|
|
87
|
-
"demo:vue2": "npm --prefix examples/vue2 run dev",
|
|
88
|
-
"prepublishOnly": "npm run build && npm test"
|
|
89
|
-
},
|
|
90
|
-
"keywords": [
|
|
91
|
-
"capsule",
|
|
92
|
-
"progress",
|
|
93
|
-
"webgl",
|
|
94
|
-
"canvas",
|
|
95
|
-
"nebula",
|
|
96
|
-
"background",
|
|
97
|
-
"color",
|
|
98
|
-
"vue",
|
|
99
|
-
"vue2",
|
|
100
|
-
"vue3",
|
|
101
|
-
"h5",
|
|
102
|
-
"component"
|
|
103
|
-
],
|
|
104
|
-
"license": "MIT",
|
|
105
|
-
"engines": {
|
|
106
|
-
"node": ">=18"
|
|
107
|
-
},
|
|
108
|
-
"devDependencies": {
|
|
109
|
-
"@babel/core": "^7.26.0",
|
|
110
|
-
"@babel/preset-env": "^7.26.0",
|
|
111
|
-
"@rollup/plugin-babel": "^6.0.4",
|
|
112
|
-
"@rollup/plugin-commonjs": "^28.0.1",
|
|
113
|
-
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
114
|
-
"@rollup/plugin-terser": "^0.4.4",
|
|
115
|
-
"intersection-observer": "^0.12.2",
|
|
116
|
-
"jsdom": "^24.1.0",
|
|
117
|
-
"pepjs": "^0.5.3",
|
|
118
|
-
"resize-observer-polyfill": "^1.5.1",
|
|
119
|
-
"rollup": "^4.24.0",
|
|
120
|
-
"vue": "^3.4.0"
|
|
121
|
-
}
|
|
122
|
-
}
|
|
8
|
+
"description": "DLC 星云胶囊组件(WebGL2 实时渲染,Canvas2D 自动降级),供 H5 / Vue2 / Vue3 使用。",
|
|
9
|
+
"type": "module",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://gitee.com/K_a1/cosmic-capsules.git"
|
|
13
|
+
},
|
|
14
|
+
"main": "./dist/index.cjs",
|
|
15
|
+
"module": "./dist/index.mjs",
|
|
16
|
+
"types": "./types/index.d.ts",
|
|
17
|
+
"unpkg": "./dist/index.umd.min.js",
|
|
18
|
+
"jsdelivr": "./dist/index.umd.min.js",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./types/index.d.ts",
|
|
22
|
+
"import": "./dist/index.mjs",
|
|
23
|
+
"require": "./dist/index.cjs",
|
|
24
|
+
"default": "./dist/index.mjs"
|
|
25
|
+
},
|
|
26
|
+
"./capsule": {
|
|
27
|
+
"types": "./types/capsule.d.ts",
|
|
28
|
+
"import": "./dist/capsule.mjs",
|
|
29
|
+
"require": "./dist/capsule.cjs",
|
|
30
|
+
"default": "./dist/capsule.mjs"
|
|
31
|
+
},
|
|
32
|
+
"./progress": {
|
|
33
|
+
"types": "./types/progress.d.ts",
|
|
34
|
+
"import": "./dist/progress.mjs",
|
|
35
|
+
"require": "./dist/progress.cjs",
|
|
36
|
+
"default": "./dist/progress.mjs"
|
|
37
|
+
},
|
|
38
|
+
"./color": {
|
|
39
|
+
"types": "./types/color.d.ts",
|
|
40
|
+
"import": "./dist/color.mjs",
|
|
41
|
+
"require": "./dist/color.cjs",
|
|
42
|
+
"default": "./dist/color.mjs"
|
|
43
|
+
},
|
|
44
|
+
"./vue3": {
|
|
45
|
+
"types": "./types/vue3.d.ts",
|
|
46
|
+
"import": "./dist/vue3.mjs",
|
|
47
|
+
"require": "./dist/vue3.cjs",
|
|
48
|
+
"default": "./dist/vue3.mjs"
|
|
49
|
+
},
|
|
50
|
+
"./vue2": {
|
|
51
|
+
"types": "./types/vue2.d.ts",
|
|
52
|
+
"import": "./dist/vue2.mjs",
|
|
53
|
+
"require": "./dist/vue2.cjs",
|
|
54
|
+
"default": "./dist/vue2.mjs"
|
|
55
|
+
},
|
|
56
|
+
"./style.css": "./styles/theme.css",
|
|
57
|
+
"./capsule/style.css": "./styles/capsule.css",
|
|
58
|
+
"./progress/style.css": "./styles/progress.css",
|
|
59
|
+
"./color/style.css": "./styles/color.css",
|
|
60
|
+
"./package.json": "./package.json"
|
|
61
|
+
},
|
|
62
|
+
"files": [
|
|
63
|
+
"dist",
|
|
64
|
+
"styles",
|
|
65
|
+
"types",
|
|
66
|
+
"README.md",
|
|
67
|
+
"LICENSE",
|
|
68
|
+
"CHANGELOG.md"
|
|
69
|
+
],
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"vue": ">=2.7.0"
|
|
72
|
+
},
|
|
73
|
+
"peerDependenciesMeta": {
|
|
74
|
+
"vue": {
|
|
75
|
+
"optional": true
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"sideEffects": [
|
|
79
|
+
"./styles/*.css"
|
|
80
|
+
],
|
|
81
|
+
"scripts": {
|
|
82
|
+
"build": "rollup -c && node scripts/copy-css.mjs",
|
|
83
|
+
"test": "node --test",
|
|
84
|
+
"serve": "node scripts/serve.mjs",
|
|
85
|
+
"demo:h5": "node scripts/serve.mjs",
|
|
86
|
+
"demo:vue3": "npm --prefix examples/vue3 run dev",
|
|
87
|
+
"demo:vue2": "npm --prefix examples/vue2 run dev",
|
|
88
|
+
"prepublishOnly": "npm run build && npm test"
|
|
89
|
+
},
|
|
90
|
+
"keywords": [
|
|
91
|
+
"capsule",
|
|
92
|
+
"progress",
|
|
93
|
+
"webgl",
|
|
94
|
+
"canvas",
|
|
95
|
+
"nebula",
|
|
96
|
+
"background",
|
|
97
|
+
"color",
|
|
98
|
+
"vue",
|
|
99
|
+
"vue2",
|
|
100
|
+
"vue3",
|
|
101
|
+
"h5",
|
|
102
|
+
"component"
|
|
103
|
+
],
|
|
104
|
+
"license": "MIT",
|
|
105
|
+
"engines": {
|
|
106
|
+
"node": ">=18"
|
|
107
|
+
},
|
|
108
|
+
"devDependencies": {
|
|
109
|
+
"@babel/core": "^7.26.0",
|
|
110
|
+
"@babel/preset-env": "^7.26.0",
|
|
111
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
112
|
+
"@rollup/plugin-commonjs": "^28.0.1",
|
|
113
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
114
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
115
|
+
"intersection-observer": "^0.12.2",
|
|
116
|
+
"jsdom": "^24.1.0",
|
|
117
|
+
"pepjs": "^0.5.3",
|
|
118
|
+
"resize-observer-polyfill": "^1.5.1",
|
|
119
|
+
"rollup": "^4.24.0",
|
|
120
|
+
"vue": "^3.4.0"
|
|
121
|
+
}
|
|
122
|
+
}
|
package/styles/base.css
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @5even7/dlc-ui — shared base styles.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
.hj-capsule-root {
|
|
6
|
-
--hj-radius: 999px;
|
|
7
|
-
--hj-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
8
|
-
"PingFang SC", "Microsoft YaHei", sans-serif;
|
|
9
|
-
--hj-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
1
|
+
/*
|
|
2
|
+
* @5even7/dlc-ui — shared base styles.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.hj-capsule-root {
|
|
6
|
+
--hj-radius: 999px;
|
|
7
|
+
--hj-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
8
|
+
"PingFang SC", "Microsoft YaHei", sans-serif;
|
|
9
|
+
--hj-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
10
10
|
--hj-bg: #faf8f2;
|
|
11
11
|
--hj-ink: #20231f;
|
|
12
12
|
--hj-muted: #77786f;
|
|
@@ -19,31 +19,31 @@
|
|
|
19
19
|
--hj-copy-left: 30px;
|
|
20
20
|
--hj-value-right: 30px;
|
|
21
21
|
--hj-copy-max-width: 54%;
|
|
22
|
-
|
|
23
|
-
position: relative;
|
|
24
|
-
display: block;
|
|
25
|
-
overflow: hidden;
|
|
26
|
-
box-sizing: border-box;
|
|
27
|
-
border-radius: var(--hj-radius);
|
|
28
|
-
background: var(--hj-bg);
|
|
29
|
-
isolation: isolate;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.hj-capsule-root *,
|
|
33
|
-
.hj-capsule-root *::before,
|
|
34
|
-
.hj-capsule-root *::after {
|
|
35
|
-
box-sizing: border-box;
|
|
36
|
-
}
|
|
37
|
-
|
|
22
|
+
|
|
23
|
+
position: relative;
|
|
24
|
+
display: block;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
border-radius: var(--hj-radius);
|
|
28
|
+
background: var(--hj-bg);
|
|
29
|
+
isolation: isolate;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.hj-capsule-root *,
|
|
33
|
+
.hj-capsule-root *::before,
|
|
34
|
+
.hj-capsule-root *::after {
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
38
|
.hj-capsule-canvas,
|
|
39
39
|
.hj-progress-canvas {
|
|
40
|
-
position: absolute;
|
|
41
|
-
inset: 0;
|
|
42
|
-
z-index: 1;
|
|
43
|
-
display: block;
|
|
44
|
-
width: 100%;
|
|
45
|
-
height: 100%;
|
|
46
|
-
border-radius: inherit;
|
|
40
|
+
position: absolute;
|
|
41
|
+
inset: 0;
|
|
42
|
+
z-index: 1;
|
|
43
|
+
display: block;
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: 100%;
|
|
46
|
+
border-radius: inherit;
|
|
47
47
|
pointer-events: none;
|
|
48
48
|
}
|
|
49
49
|
|
package/styles/color.css
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/* dlc-color: nebula background layer (same renderer as CosmicCapsule). */
|
|
2
|
-
|
|
3
|
-
.dlc-color-layer {
|
|
4
|
-
position: absolute;
|
|
5
|
-
inset: 0;
|
|
6
|
-
z-index: var(--dlc-color-layer-z, -1);
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
border-radius: inherit;
|
|
9
|
-
pointer-events: none;
|
|
10
|
-
background: var(--dlc-color-bg, transparent);
|
|
11
|
-
opacity: var(--dlc-color-opacity, 1);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.dlc-color-canvas {
|
|
15
|
-
display: block;
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: 100%;
|
|
18
|
-
}
|
|
1
|
+
/* dlc-color: nebula background layer (same renderer as CosmicCapsule). */
|
|
2
|
+
|
|
3
|
+
.dlc-color-layer {
|
|
4
|
+
position: absolute;
|
|
5
|
+
inset: 0;
|
|
6
|
+
z-index: var(--dlc-color-layer-z, -1);
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
border-radius: inherit;
|
|
9
|
+
pointer-events: none;
|
|
10
|
+
background: var(--dlc-color-bg, transparent);
|
|
11
|
+
opacity: var(--dlc-color-opacity, 1);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.dlc-color-canvas {
|
|
15
|
+
display: block;
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
}
|
package/styles/progress.css
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/* ---------- Progress capsule ---------- */
|
|
2
|
-
|
|
3
|
-
.hj-progress-root {
|
|
4
|
-
--hj-bg: #202126;
|
|
5
|
-
border: 1px solid rgba(0, 0, 0, 0.34);
|
|
6
|
-
color: #ffffff;
|
|
7
|
-
box-shadow: var(--hj-shadow);
|
|
8
|
-
cursor: ew-resize;
|
|
9
|
-
touch-action: none;
|
|
10
|
-
user-select: none;
|
|
11
|
-
}
|
|
12
|
-
|
|
1
|
+
/* ---------- Progress capsule ---------- */
|
|
2
|
+
|
|
3
|
+
.hj-progress-root {
|
|
4
|
+
--hj-bg: #202126;
|
|
5
|
+
border: 1px solid rgba(0, 0, 0, 0.34);
|
|
6
|
+
color: #ffffff;
|
|
7
|
+
box-shadow: var(--hj-shadow);
|
|
8
|
+
cursor: ew-resize;
|
|
9
|
+
touch-action: none;
|
|
10
|
+
user-select: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
13
|
.hj-progress-root[data-draggable="false"] {
|
|
14
14
|
cursor: default;
|
|
15
15
|
}
|
|
@@ -28,26 +28,30 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.hj-progress-root:focus-visible {
|
|
31
|
-
outline: 2px solid rgba(255, 255, 255, 0.8);
|
|
32
|
-
outline-offset: 4px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.hj-progress-canvas {
|
|
36
|
-
transition: filter 180ms ease, opacity 160ms ease;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.hj-progress-overlay {
|
|
40
|
-
z-index: 2;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.hj-progress-root
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.hj-progress-root.
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
31
|
+
outline: 2px solid rgba(255, 255, 255, 0.8);
|
|
32
|
+
outline-offset: 4px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.hj-progress-canvas {
|
|
36
|
+
transition: filter 180ms ease, opacity 160ms ease;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.hj-progress-overlay {
|
|
40
|
+
z-index: 2;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.hj-progress-root[data-direction="rtl"] > .hj-progress-canvas {
|
|
44
|
+
transform: scaleX(-1);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.hj-progress-root.has-webgl-progress > .hj-progress-canvas:not(.hj-progress-overlay) {
|
|
48
|
+
opacity: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.hj-progress-root.is-dragging .hj-progress-canvas {
|
|
52
|
+
filter: saturate(1.15) brightness(1.08);
|
|
53
|
+
}
|
|
54
|
+
|
|
51
55
|
/* Text slot container: geometry only (same convention as capsule). */
|
|
52
56
|
.hj-progress-text {
|
|
53
57
|
position: absolute;
|
|
@@ -73,21 +77,20 @@
|
|
|
73
77
|
z-index: 3;
|
|
74
78
|
pointer-events: none;
|
|
75
79
|
}
|
|
76
|
-
|
|
77
|
-
.hj-progress-value {
|
|
78
|
-
position: absolute;
|
|
79
|
-
top: 50%;
|
|
80
|
-
right: var(--hj-value-right);
|
|
81
|
-
z-index: 5;
|
|
82
|
-
min-width: 24%;
|
|
83
|
-
color: #ffffff;
|
|
84
|
-
font-size: 44px;
|
|
85
|
-
font-weight: 480;
|
|
86
|
-
line-height: 1;
|
|
87
|
-
text-align: right;
|
|
88
|
-
letter-spacing: -0.045em;
|
|
89
|
-
text-shadow: 0 2px 12px rgba(0, 0, 0, 0.24);
|
|
90
|
-
transform: translateY(-50%);
|
|
91
|
-
pointer-events: none;
|
|
92
|
-
}
|
|
93
|
-
|
|
80
|
+
|
|
81
|
+
.hj-progress-value {
|
|
82
|
+
position: absolute;
|
|
83
|
+
top: 50%;
|
|
84
|
+
right: var(--hj-value-right);
|
|
85
|
+
z-index: 5;
|
|
86
|
+
min-width: 24%;
|
|
87
|
+
color: #ffffff;
|
|
88
|
+
font-size: 44px;
|
|
89
|
+
font-weight: 480;
|
|
90
|
+
line-height: 1;
|
|
91
|
+
text-align: right;
|
|
92
|
+
letter-spacing: -0.045em;
|
|
93
|
+
text-shadow: 0 2px 12px rgba(0, 0, 0, 0.24);
|
|
94
|
+
transform: translateY(-50%);
|
|
95
|
+
pointer-events: none;
|
|
96
|
+
}
|
package/types/capsule.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
export {
|
|
2
|
-
CapsuleOptions,
|
|
3
|
-
CapsuleController,
|
|
4
|
-
CapsulePreset,
|
|
5
|
-
Quality,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
export {
|
|
2
|
+
CapsuleOptions,
|
|
3
|
+
CapsuleController,
|
|
4
|
+
CapsulePreset,
|
|
5
|
+
Quality,
|
|
6
|
+
PowerPreference,
|
|
7
|
+
createCapsule,
|
|
8
|
+
parseSize,
|
|
9
|
+
dprCapFor,
|
|
10
|
+
effectiveDprCap,
|
|
11
|
+
QUALITY_TIERS,
|
|
12
|
+
hexToRgb01,
|
|
13
|
+
hexToRgba,
|
|
14
|
+
validateColors
|
|
15
|
+
} from './index.js';
|
package/types/color.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
export {
|
|
2
|
-
ColorBackgroundOptions,
|
|
3
|
-
ColorBackgroundController,
|
|
4
|
-
CapsulePreset,
|
|
5
|
-
Quality,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
export {
|
|
2
|
+
ColorBackgroundOptions,
|
|
3
|
+
ColorBackgroundController,
|
|
4
|
+
CapsulePreset,
|
|
5
|
+
Quality,
|
|
6
|
+
PowerPreference,
|
|
7
|
+
createColorBackground,
|
|
8
|
+
parseSize,
|
|
9
|
+
dprCapFor,
|
|
10
|
+
effectiveDprCap,
|
|
11
|
+
QUALITY_TIERS,
|
|
12
|
+
hexToRgb01,
|
|
13
|
+
hexToRgba,
|
|
14
|
+
validateColors
|
|
15
|
+
} from './index.js';
|