@zyzgroup/core-web 0.1.86 → 0.1.88
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/dist/css/better.css +349 -0
- package/dist/{font.css → css/font.css} +42 -35
- package/dist/css/media.css +65 -0
- package/dist/css/theme.css +224 -0
- package/dist/fonts/D-DINExp/D-DINExp-Bold-number.ttf +0 -0
- package/dist/fonts/D-DINExp/D-DINExp-Bold.ttf +0 -0
- package/dist/fonts/D-DINExp/D-DINExp-number-with-money.ttf +0 -0
- package/dist/fonts/D-DINExp/D-DINExp-number.ttf +0 -0
- package/dist/fonts/HYYouYuan/HYYouYuan-55W.ttf +0 -0
- package/dist/fonts/HYYouYuan/HYYouYuan-75W.ttf +0 -0
- package/dist/fonts/IosevkaCurly/iosevka-curly-bold.woff2 +0 -0
- package/dist/fonts/IosevkaCurly/iosevka-curly-medium.woff2 +0 -0
- package/dist/zyzgroup_core_web.iife.js +33 -33
- package/dist/zyzgroup_core_web.iife.js.map +1 -1
- package/dist/zyzgroup_core_web.js +10318 -9824
- package/dist/zyzgroup_core_web.js.map +1 -1
- package/dist/zyzgroup_core_web.umd.cjs +33 -33
- package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
- package/package.json +7 -6
- package/types/Context.d.ts +4 -4
- package/types/Context.d.ts.map +1 -1
- package/types/DeviceFingerprint.d.ts +4 -0
- package/types/DeviceFingerprint.d.ts.map +1 -0
- package/types/Pagination.d.ts.map +1 -1
- package/types/WebMonitor.d.ts +15 -0
- package/types/WebMonitor.d.ts.map +1 -0
- package/types/WebSocketClient.d.ts.map +1 -1
- package/types/ajax.d.ts.map +1 -1
- package/types/animate/schedule.d.ts +3 -0
- package/types/animate/schedule.d.ts.map +1 -1
- package/types/animate/tween/Easing.d.ts +42 -39
- package/types/animate/tween/Easing.d.ts.map +1 -1
- package/types/animate/tween/index.d.ts +41 -38
- package/types/animate/tween/index.d.ts.map +1 -1
- package/types/color.d.ts +1 -0
- package/types/color.d.ts.map +1 -1
- package/types/env.d.ts +4 -10
- package/types/env.d.ts.map +1 -1
- package/types/file.d.ts +12 -4
- package/types/file.d.ts.map +1 -1
- package/types/hooks/useAttribute.d.ts +0 -1
- package/types/hooks/useAttribute.d.ts.map +1 -1
- package/types/hooks/useCookie.d.ts +3 -3
- package/types/hooks/useCookie.d.ts.map +1 -1
- package/types/hooks/useDraw/DrawContext.d.ts.map +1 -1
- package/types/hooks/useDraw/Shape.d.ts.map +1 -1
- package/types/hooks/useDraw/canvas/YZCanvasContext.d.ts +1 -0
- package/types/hooks/useDraw/canvas/YZCanvasContext.d.ts.map +1 -1
- package/types/hooks/useDraw/line/PathD.d.ts.map +1 -1
- package/types/hooks/useElement.d.ts +19 -4
- package/types/hooks/useElement.d.ts.map +1 -1
- package/types/hooks/useElementEventBus.d.ts.map +1 -1
- package/types/hooks/useElementEvents.d.ts +87 -23
- package/types/hooks/useElementEvents.d.ts.map +1 -1
- package/types/hooks/useEventListener.d.ts +21 -8
- package/types/hooks/useEventListener.d.ts.map +1 -1
- package/types/hooks/useFeRouteChange.d.ts +23 -1
- package/types/hooks/useFeRouteChange.d.ts.map +1 -1
- package/types/hooks/useFetch.d.ts.map +1 -1
- package/types/hooks/useLocalStorage.d.ts +3 -6
- package/types/hooks/useLocalStorage.d.ts.map +1 -1
- package/types/hooks/useSessionStorage.d.ts +3 -6
- package/types/hooks/useSessionStorage.d.ts.map +1 -1
- package/types/hooks/useStyle.d.ts +19 -1
- package/types/hooks/useStyle.d.ts.map +1 -1
- package/types/hooks/useTheme.d.ts +2 -1
- package/types/hooks/useTheme.d.ts.map +1 -1
- package/types/hooks/useVnode.d.ts.map +1 -1
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/types/math/Matrix.d.ts.map +1 -1
- package/types/signature.d.ts.map +1 -1
- package/types/threejs.d.ts +2 -0
- package/types/threejs.d.ts.map +1 -0
- package/types/vnode.d.ts.map +1 -1
- package/dist/better.css +0 -425
- package/dist/theme.css +0 -28
- package/types/axios.d.ts +0 -35
- package/types/axios.d.ts.map +0 -1
- /package/dist/{animate.css → css/animate.css} +0 -0
- /package/dist/{animate.min.css → css/animate.min.css} +0 -0
- /package/dist/{animate_ce.css → css/animate_ce.css} +0 -0
- /package/dist/{effects.css → css/effects.css} +0 -0
- /package/dist/{flex.css → css/flex.css} +0 -0
- /package/dist/{grid.css → css/grid.css} +0 -0
- /package/dist/{rem_1080.css → css/rem_1080.css} +0 -0
- /package/dist/{rem_1920.css → css/rem_1920.css} +0 -0
- /package/dist/{rem_640.css → css/rem_640.css} +0 -0
- /package/dist/{rem_720.css → css/rem_720.css} +0 -0
- /package/dist/{rem_750.css → css/rem_750.css} +0 -0
- /package/dist/{tailwind.css → css/tailwind.css} +0 -0
- /package/dist/{D-DINCondensed-number.ttf → fonts/D-DINExp/D-DINCondensed-number.ttf} +0 -0
- /package/dist/{D-DINExp.ttf → fonts/D-DINExp/D-DINExp.ttf} +0 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
:host {
|
|
3
|
+
/* 配合 rem.js */
|
|
4
|
+
--yz-min-font-size: 0;
|
|
5
|
+
--yz-max-font-size: 100;
|
|
6
|
+
--yz-viewport-min: 0;
|
|
7
|
+
--yz-viewport-max: 750;
|
|
8
|
+
--yz-font-size: clamp(
|
|
9
|
+
var(--yz-min-font-size) * 1px,
|
|
10
|
+
calc(
|
|
11
|
+
var(--yz-min-font-size) * 1px +
|
|
12
|
+
(var(--yz-max-font-size) - var(--yz-min-font-size)) *
|
|
13
|
+
(100vw /* or 100cqw */ - var(--yz-viewport-min) * 1px) /
|
|
14
|
+
(var(--yz-viewport-max) - var(--yz-viewport-min))
|
|
15
|
+
),
|
|
16
|
+
var(--yz-max-font-size) * 1px
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
/* 预定义大小 */
|
|
20
|
+
--yz-gap-horizontal: 5px;
|
|
21
|
+
--yz-padding-horizontal: 15px;
|
|
22
|
+
--yz-padding-vertical: 10px;
|
|
23
|
+
--yz-padding-vertical-double: 20px;
|
|
24
|
+
|
|
25
|
+
--yz-font-size: 16px; /* 1.4 line-height gap = 3 */
|
|
26
|
+
--yz-font-size-secondary: 14px; /* 1.4 line-height gap = 3 */
|
|
27
|
+
|
|
28
|
+
--yz-disabled-alpha: 0.4;
|
|
29
|
+
|
|
30
|
+
--yz-button-height: 44px;
|
|
31
|
+
--yz-button-padding-horizontal: 20px;
|
|
32
|
+
--yz-button-border-radius: 4px;
|
|
33
|
+
|
|
34
|
+
--yz-button-height-secondary: 32px;
|
|
35
|
+
--yz-button-padding-horizontal-secondary: 16px;
|
|
36
|
+
--yz-button-border-radius-secondary: 4px;
|
|
37
|
+
|
|
38
|
+
--yz-button-height-tertiary: 24px;
|
|
39
|
+
--yz-button-padding-horizontal-tertiary: 8px;
|
|
40
|
+
--yz-button-border-radius-tertiary: 4px;
|
|
41
|
+
|
|
42
|
+
--yz-dialog-border-radius: 12px;
|
|
43
|
+
|
|
44
|
+
--yz-input-height: 44px;
|
|
45
|
+
--yz-input-border-radius: 4px;
|
|
46
|
+
|
|
47
|
+
/* 组件:颜色反向 */
|
|
48
|
+
--yz-foreground-reverse: #ffffff;
|
|
49
|
+
--yz-foreground-border-reverse: #e6e6e6;
|
|
50
|
+
--yz-panel-reverse: #f5f5f5;
|
|
51
|
+
--yz-panel-border-reverse: #b3b3b3;
|
|
52
|
+
--yz-gap-reverse: #cccccc;
|
|
53
|
+
--yz-placeholder-reverse: #8f8f8f;
|
|
54
|
+
--yz-font-reverse: #333333;
|
|
55
|
+
--yz-font-secondary-reverse: #666666;
|
|
56
|
+
--yz-font-tertiary-reverse: #999999;
|
|
57
|
+
|
|
58
|
+
/* 组件:颜色加深 */
|
|
59
|
+
--yz-foreground-common: #ffffff;
|
|
60
|
+
--yz-foreground-border-common: #e6e6e6;
|
|
61
|
+
--yz-panel-common: #f5f5f5;
|
|
62
|
+
--yz-panel-border-common: #b3b3b3;
|
|
63
|
+
--yz-gap-common: #cccccc;
|
|
64
|
+
--yz-placeholder-common: #8f8f8f;
|
|
65
|
+
--yz-font-common: #333333;
|
|
66
|
+
--yz-font-secondary-common: #666666;
|
|
67
|
+
--yz-font-tertiary-common: #999999;
|
|
68
|
+
|
|
69
|
+
/* 预定义颜色:颜色加深 */
|
|
70
|
+
--yz-xg-blue: #5a82f0;
|
|
71
|
+
--yz-xg-blue-secondary: #e6f0ff;
|
|
72
|
+
/* --yz-xg-blue-secondary: #e3eeff; */
|
|
73
|
+
--yz-xg-blue-secondary-border: #a0b4f0;
|
|
74
|
+
--yz-xg-blue-gradient: #66b3ff;
|
|
75
|
+
|
|
76
|
+
--yz-xg-red: #fa503c;
|
|
77
|
+
--yz-xg-red-secondary: #fff5f5;
|
|
78
|
+
--yz-xg-red-secondary-border: #fac8c8;
|
|
79
|
+
--yz-xg-red-gradient: #fa8c78;
|
|
80
|
+
|
|
81
|
+
--yz-xg-yellow: #fa8c00;
|
|
82
|
+
--yz-xg-yellow-gradient: #ffb400;
|
|
83
|
+
|
|
84
|
+
--yz-xg-green: #00be5a;
|
|
85
|
+
--yz-xg-green-gradient: #00e678;
|
|
86
|
+
|
|
87
|
+
--yz-ks-green: #328a8c;
|
|
88
|
+
--yz-ks-green-secondary: #ebf4f4;
|
|
89
|
+
|
|
90
|
+
--yz-yz-green: #29c999;
|
|
91
|
+
--yz-yz-green-secondary: #eef8f8;
|
|
92
|
+
|
|
93
|
+
/* xg-blue:信鸽蓝 */
|
|
94
|
+
--yz-pattern-xg-blue-primary: var(--yz-xg-blue, #5a82f0);
|
|
95
|
+
--yz-pattern-xg-blue-secondary: var(--yz-xg-blue-secondary);
|
|
96
|
+
--yz-pattern-xg-blue-secondary-border: var(--yz-xg-blue-secondary-border);
|
|
97
|
+
--yz-pattern-xg-blue-gradient: var(--yz-xg-blue-gradient);
|
|
98
|
+
--yz-pattern-xg-blue-foreground: var(--yz-foreground-common);
|
|
99
|
+
--yz-pattern-xg-blue-foreground-border: var(--yz-foreground-border-common);
|
|
100
|
+
--yz-pattern-xg-blue-panel: var(--yz-panel-common);
|
|
101
|
+
--yz-pattern-xg-blue-panel-border: var(--yz-panel-border-common);
|
|
102
|
+
--yz-pattern-xg-blue-gap: var(--yz-gap-common);
|
|
103
|
+
--yz-pattern-xg-blue-placeholder: var(--yz-placeholder-common);
|
|
104
|
+
--yz-pattern-xg-blue-font: var(--yz-font-common);
|
|
105
|
+
--yz-pattern-xg-blue-font-secondary: var(--yz-font-secondary-common);
|
|
106
|
+
--yz-pattern-xg-blue-font-tertiary: var(--yz-font-tertiary-common);
|
|
107
|
+
|
|
108
|
+
/* xg-red:信鸽红 */
|
|
109
|
+
--yz-pattern-xg-red-primary: var(--yz-xg-red);
|
|
110
|
+
--yz-pattern-xg-red-gradient: var(--yz-xg-red-gradient);
|
|
111
|
+
--yz-pattern-xg-red-foreground: var(--yz-foreground-common);
|
|
112
|
+
--yz-pattern-xg-red-foreground-border: var(--yz-foreground-border-common);
|
|
113
|
+
--yz-pattern-xg-red-panel: var(--yz-panel-common);
|
|
114
|
+
--yz-pattern-xg-red-panel-border: var(--yz-panel-border-common);
|
|
115
|
+
--yz-pattern-xg-red-gap: var(--yz-gap-common);
|
|
116
|
+
--yz-pattern-xg-red-placeholder: var(--yz-placeholder-common);
|
|
117
|
+
--yz-pattern-xg-red-font: var(--yz-font-common);
|
|
118
|
+
--yz-pattern-xg-red-font-secondary: var(--yz-font-secondary-common);
|
|
119
|
+
--yz-pattern-xg-red-font-tertiary: var(--yz-font-tertiary-common);
|
|
120
|
+
|
|
121
|
+
/* xg-green:信鸽绿 */
|
|
122
|
+
--yz-pattern-xg-green-primary: var(--yz-xg-green);
|
|
123
|
+
--yz-pattern-xg-green-foreground: var(--yz-foreground-common);
|
|
124
|
+
--yz-pattern-xg-green-foreground-border: var(--yz-foreground-border-common);
|
|
125
|
+
--yz-pattern-xg-green-panel: var(--yz-panel-common);
|
|
126
|
+
--yz-pattern-xg-green-panel-border: var(--yz-panel-border-common);
|
|
127
|
+
--yz-pattern-xg-green-gap: var(--yz-gap-common);
|
|
128
|
+
--yz-pattern-xg-green-placeholder: var(--yz-placeholder-common);
|
|
129
|
+
--yz-pattern-xg-green-font: var(--yz-font-common);
|
|
130
|
+
--yz-pattern-xg-green-font-secondary: var(--yz-font-secondary-common);
|
|
131
|
+
--yz-pattern-xg-green-font-tertiary: var(--yz-font-tertiary-common);
|
|
132
|
+
|
|
133
|
+
/* ks-green:昆山绿 */
|
|
134
|
+
--yz-pattern-ks-green-primary: var(--yz-ks-green);
|
|
135
|
+
--yz-pattern-ks-green-secondary: var(--yz-ks-green-secondary);
|
|
136
|
+
--yz-pattern-ks-green-gradient: var(--yz-ks-green);
|
|
137
|
+
--yz-pattern-ks-green-foreground: var(--yz-foreground-common);
|
|
138
|
+
--yz-pattern-ks-green-foreground-border: var(--yz-foreground-border-common);
|
|
139
|
+
--yz-pattern-ks-green-panel: var(--yz-panel-common);
|
|
140
|
+
--yz-pattern-ks-green-panel-border: var(--yz-panel-border-common);
|
|
141
|
+
--yz-pattern-ks-green-gap: var(--yz-gap-common);
|
|
142
|
+
--yz-pattern-ks-green-placeholder: var(--yz-placeholder-common);
|
|
143
|
+
--yz-pattern-ks-green-font: var(--yz-font-common);
|
|
144
|
+
--yz-pattern-ks-green-font-secondary: var(--yz-font-secondary-common);
|
|
145
|
+
--yz-pattern-ks-green-font-tertiary: var(--yz-font-tertiary-common);
|
|
146
|
+
|
|
147
|
+
/* yz-green:扬州绿 */
|
|
148
|
+
--yz-pattern-yz-green-primary: var(--yz-yz-green);
|
|
149
|
+
--yz-pattern-yz-green-secondary: var(--yz-yz-green-secondary);
|
|
150
|
+
--yz-pattern-yz-green-gradient: var(--yz-yz-green);
|
|
151
|
+
--yz-pattern-yz-green-foreground: var(--yz-foreground-common);
|
|
152
|
+
--yz-pattern-yz-green-foreground-border: var(--yz-foreground-border-common);
|
|
153
|
+
--yz-pattern-yz-green-panel: var(--yz-panel-common);
|
|
154
|
+
--yz-pattern-yz-green-panel-border: var(--yz-panel-border-common);
|
|
155
|
+
--yz-pattern-yz-green-gap: var(--yz-gap-common);
|
|
156
|
+
--yz-pattern-yz-green-placeholder: var(--yz-placeholder-common);
|
|
157
|
+
--yz-pattern-yz-green-font: var(--yz-font-common);
|
|
158
|
+
--yz-pattern-yz-green-font-secondary: var(--yz-font-secondary-common);
|
|
159
|
+
--yz-pattern-yz-green-font-tertiary: var(--yz-font-tertiary-common);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* 浅色模式 */
|
|
163
|
+
/* @media (prefers-color-scheme: light) {
|
|
164
|
+
:root,
|
|
165
|
+
:host {
|
|
166
|
+
}
|
|
167
|
+
} */
|
|
168
|
+
html[data-theme="light"]:root,
|
|
169
|
+
html[data-theme="light"]:host {
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* 深色模式 */
|
|
173
|
+
/* @media (prefers-color-scheme: dark) {
|
|
174
|
+
:root,
|
|
175
|
+
:host {
|
|
176
|
+
}
|
|
177
|
+
} */
|
|
178
|
+
html[data-theme="dark"]:root,
|
|
179
|
+
html[data-theme="dark"]:host {
|
|
180
|
+
/* 组件:颜色反向 */
|
|
181
|
+
--yz-foreground-reverse: #1d1d1d;
|
|
182
|
+
--yz-foreground-border-reverse: #333333;
|
|
183
|
+
--yz-panel-reverse: #242424;
|
|
184
|
+
--yz-panel-border-reverse: #555555;
|
|
185
|
+
--yz-gap-reverse: #444444;
|
|
186
|
+
--yz-placeholder-reverse: #707070;
|
|
187
|
+
--yz-font-reverse: #cdcdcd;
|
|
188
|
+
--yz-font-secondary-reverse: #8d8d8d;
|
|
189
|
+
--yz-font-tertiary-reverse: #5d5d5d;
|
|
190
|
+
|
|
191
|
+
/* 组件:颜色加深 */
|
|
192
|
+
--yz-foreground-common: #eeeeee;
|
|
193
|
+
--yz-foreground-border-common: #dddddd;
|
|
194
|
+
--yz-panel-common: #e5e5e5;
|
|
195
|
+
--yz-panel-border-common: #bbbbbb;
|
|
196
|
+
--yz-gap-common: #aaaaaa;
|
|
197
|
+
--yz-placeholder-common: #646464;
|
|
198
|
+
--yz-font-common: #1a1a1a;
|
|
199
|
+
--yz-font-secondary-common: #4d4d4d;
|
|
200
|
+
--yz-font-tertiary-common: #7f7f7f;
|
|
201
|
+
|
|
202
|
+
/* 预定义颜色:颜色加深 */
|
|
203
|
+
--yz-xg-blue: #4a6ed7;
|
|
204
|
+
--yz-xg-blue-secondary: #aec6d9;
|
|
205
|
+
--yz-xg-blue-secondary-border: #6e7ccf;
|
|
206
|
+
--yz-xg-blue-gradient: #4c99cc;
|
|
207
|
+
|
|
208
|
+
--yz-xg-red: #d94e37;
|
|
209
|
+
--yz-xg-red-secondary: #f4d1d1;
|
|
210
|
+
--yz-xg-red-secondary-border: #f1a6a6;
|
|
211
|
+
--yz-xg-red-gradient: #d97362;
|
|
212
|
+
|
|
213
|
+
--yz-xg-yellow: #e67e00;
|
|
214
|
+
--yz-xg-yellow-gradient: #e68a00;
|
|
215
|
+
|
|
216
|
+
--yz-xg-green: #009c4d;
|
|
217
|
+
--yz-xg-green-gradient: #00b36b;
|
|
218
|
+
|
|
219
|
+
--yz-ks-green: #27706a;
|
|
220
|
+
--yz-ks-green-secondary: #3a7f7d;
|
|
221
|
+
|
|
222
|
+
--yz-yz-green: #1f9f86;
|
|
223
|
+
--yz-yz-green-secondary: #3a8c8a;
|
|
224
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|