earthnut 0.0.0 → 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.
Files changed (88) hide show
  1. package/BackgroundRipple/index.cjs +1 -0
  2. package/BackgroundRipple/index.mjs +1 -0
  3. package/LICENSE +25 -0
  4. package/Layout/index.cjs +1 -0
  5. package/Layout/index.mjs +1 -0
  6. package/README.md +9 -5
  7. package/components/button/button.d.ts +5 -0
  8. package/components/button/index.d.ts +3 -0
  9. package/components/button/style/index.d.ts +1 -0
  10. package/components/index.d.ts +3 -0
  11. package/components/layout/content.d.ts +11 -0
  12. package/components/layout/footer.d.ts +16 -0
  13. package/components/layout/header.d.ts +18 -0
  14. package/components/layout/index.d.ts +2 -0
  15. package/components/layout/layout.d.ts +50 -0
  16. package/components/layout/sideBar.d.ts +24 -0
  17. package/components/layout/types.d.ts +71 -0
  18. package/components/menu/index.d.ts +0 -0
  19. package/components/menu/menu.d.ts +0 -0
  20. package/components/menu/style/index.d.ts +0 -0
  21. package/components/ripples/RipplesEle.d.ts +36 -0
  22. package/components/ripples/index.d.ts +4 -0
  23. package/components/ripples/style/index.d.ts +0 -0
  24. package/components/ripples/types.d.ts +11 -0
  25. package/components/ripples/useOptionUpdate.d.ts +5 -0
  26. package/customHooks/index.d.ts +5 -0
  27. package/customHooks/useAnimationFrame.d.ts +42 -0
  28. package/customHooks/useInputIsComposing.d.ts +46 -0
  29. package/customHooks/useRipples/buildBackground/default-background/_createImageData.d.ts +7 -0
  30. package/customHooks/useRipples/buildBackground/default-background/circleDataList.d.ts +18 -0
  31. package/customHooks/useRipples/buildBackground/default-background/createCanvasElementBySize.d.ts +2 -0
  32. package/customHooks/useRipples/buildBackground/default-background/createDefault.d.ts +2 -0
  33. package/customHooks/useRipples/buildBackground/default-background/index.d.ts +10 -0
  34. package/customHooks/useRipples/buildBackground/loadImage.d.ts +13 -0
  35. package/customHooks/useRipples/buildBackground/runSide.d.ts +9 -0
  36. package/customHooks/useRipples/buildBackground/type.d.ts +27 -0
  37. package/customHooks/useRipples/buildBackground/utils/bindImage.d.ts +3 -0
  38. package/customHooks/useRipples/buildBackground/utils/createCanvasElement.d.ts +3 -0
  39. package/customHooks/useRipples/buildBackground/utils/createImageBySrc.d.ts +2 -0
  40. package/customHooks/useRipples/buildBackground/utils/getBackgroundStyle.d.ts +3 -0
  41. package/customHooks/useRipples/buildBackground/utils/hideCssBackground.d.ts +10 -0
  42. package/customHooks/useRipples/buildBackground/utils/restore-css-background.d.ts +7 -0
  43. package/customHooks/useRipples/callback/destroy.d.ts +3 -0
  44. package/customHooks/useRipples/callback/drop.d.ts +3 -0
  45. package/customHooks/useRipples/callback/fade.d.ts +3 -0
  46. package/customHooks/useRipples/callback/reload-background.d.ts +6 -0
  47. package/customHooks/useRipples/callback/scale.d.ts +2 -0
  48. package/customHooks/useRipples/index.d.ts +40 -0
  49. package/customHooks/useRipples/init/index.d.ts +5 -0
  50. package/customHooks/useRipples/init/initEvent.d.ts +5 -0
  51. package/customHooks/useRipples/init/initShaders.d.ts +7 -0
  52. package/customHooks/useRipples/init/initTexture.d.ts +7 -0
  53. package/customHooks/useRipples/render/computeTextureBoundaries.d.ts +3 -0
  54. package/customHooks/useRipples/render/draw.d.ts +7 -0
  55. package/customHooks/useRipples/render/drawQuad.d.ts +7 -0
  56. package/customHooks/useRipples/render/dropAtPointer.d.ts +7 -0
  57. package/customHooks/useRipples/render/index.d.ts +6 -0
  58. package/customHooks/useRipples/render/swapBufferIndices.d.ts +5 -0
  59. package/customHooks/useRipples/render/update.d.ts +5 -0
  60. package/customHooks/useRipples/rippersData/defaultData.d.ts +5 -0
  61. package/customHooks/useRipples/rippersData/fadeData.d.ts +29 -0
  62. package/customHooks/useRipples/rippersData/index.d.ts +40 -0
  63. package/customHooks/useRipples/rippersData/loadConfig.d.ts +19 -0
  64. package/customHooks/useRipples/rippersData/renderData.d.ts +72 -0
  65. package/customHooks/useRipples/rippersData/useOptions.d.ts +81 -0
  66. package/customHooks/useRipples/rippersData/vertexSource.d.ts +28 -0
  67. package/customHooks/useRipples/ripple.html.d.ts +6 -0
  68. package/customHooks/useRipples/ripplesClass.d.ts +51 -0
  69. package/customHooks/useRipples/tools.d.ts +31 -0
  70. package/customHooks/useRipples/types.d.ts +192 -0
  71. package/customHooks/useTimeId.d.ts +55 -0
  72. package/dog.d.ts +3 -0
  73. package/index.cjs +1 -0
  74. package/index.d.ts +5 -0
  75. package/index.js.LICENSE.txt +79 -0
  76. package/index.mjs +1 -0
  77. package/package.json +87 -14
  78. package/styles/common.css +360 -0
  79. package/styles/common.scss +444 -0
  80. package/useAnimationFrame/index.cjs +1 -0
  81. package/useAnimationFrame/index.mjs +1 -0
  82. package/useInputIsComposing/index.cjs +1 -0
  83. package/useInputIsComposing/index.mjs +1 -0
  84. package/useRipples/index.cjs +1 -0
  85. package/useRipples/index.mjs +1 -0
  86. package/useTimeId/index.cjs +1 -0
  87. package/useTimeId/index.mjs +1 -0
  88. package/index.js +0 -1
@@ -0,0 +1,360 @@
1
+ @charset "UTF-8";
2
+ :root {
3
+ --primary-white: #ffffff;
4
+ --primary-black: #1b1b1b;
5
+ --primary-dust: #6f6f6f;
6
+ --primary-red: #d30038;
7
+ --primary-green: #007936;
8
+ --primary-blue: #0069c2;
9
+ --primary-yellow: #746a00;
10
+ --primary-super-yellow: #ffff00;
11
+ --text-primary: #1b1b1b;
12
+ --text-secondary: #4e4e4e;
13
+ --text-invert: var(--primary-white);
14
+ --text-muted: var(--primary-dust);
15
+ --text-link: #0069c2;
16
+ --text-visited: #551a8b;
17
+ --text-hover: var(--primary-red);
18
+ --text-visited: #551a8b;
19
+ --text-active: #858585;
20
+ --text-inactive: #9e9e9ea6;
21
+ --background-primary: var(--primary-white);
22
+ --background-tab-level-1: var(--primary-black);
23
+ --background-tab-level-2: var(--primary-dust);
24
+ --background-tab-transparent: #6666;
25
+ --table-border-color: #000;
26
+ --curriculum-shadow: 4px 4px 8px 0 #b3b3b32e, -4px 4px 8px 0 #b3b3b326;
27
+ --curriculum-shadow-landing-about-ul: 0 4px 10px 0 #e3642a0f, 0 -2px 4px 0 #b25c350f;
28
+ --box-shadow: 1px 1px 12px #6666;
29
+ --box-shadow-primary: 1px 1px 12px #6666;
30
+ --box-shadow-primary-small: 1px 1px 3px #6666;
31
+ --box-shadow-primary-large: 1px 1px 24px #6666;
32
+ color-scheme: light;
33
+ }
34
+
35
+ @media (prefers-color-scheme: light) {
36
+ :root:not(.en-light):not(.en-dark) {
37
+ --primary-white: #ffffff;
38
+ --primary-black: #1b1b1b;
39
+ --primary-dust: #6f6f6f;
40
+ --primary-red: #d30038;
41
+ --primary-green: #007936;
42
+ --primary-blue: #0069c2;
43
+ --primary-yellow: #746a00;
44
+ --primary-super-yellow: #ffff00;
45
+ --text-primary: #1b1b1b;
46
+ --text-secondary: #4e4e4e;
47
+ --text-invert: var(--primary-white);
48
+ --text-muted: var(--primary-dust);
49
+ --text-link: #0069c2;
50
+ --text-visited: #551a8b;
51
+ --text-hover: var(--primary-red);
52
+ --text-visited: #551a8b;
53
+ --text-active: #858585;
54
+ --text-inactive: #9e9e9ea6;
55
+ --background-primary: var(--primary-white);
56
+ --background-tab-level-1: var(--primary-black);
57
+ --background-tab-level-2: var(--primary-dust);
58
+ --background-tab-transparent: #6666;
59
+ --table-border-color: #000;
60
+ --curriculum-shadow: 4px 4px 8px 0 #b3b3b32e, -4px 4px 8px 0 #b3b3b326;
61
+ --curriculum-shadow-landing-about-ul: 0 4px 10px 0 #e3642a0f, 0 -2px 4px 0 #b25c350f;
62
+ --box-shadow: 1px 1px 12px #6666;
63
+ --box-shadow-primary: 1px 1px 12px #6666;
64
+ --box-shadow-primary-small: 1px 1px 3px #6666;
65
+ --box-shadow-primary-large: 1px 1px 24px #6666;
66
+ color-scheme: light;
67
+ }
68
+ }
69
+ @media (prefers-color-scheme: dark) {
70
+ :root:not(.en-light):not(.en-dark) {
71
+ --primary-white: #ffffff;
72
+ --primary-black: #1b1b1b;
73
+ --primary-dust: #858585;
74
+ --primary-red: #ff97a0;
75
+ --primary-green: #00d061;
76
+ --primary-blue: #8cb4ff;
77
+ --primary-yellow: #c7b700;
78
+ --text-primary: #fff;
79
+ --text-secondary: #cdcdcd;
80
+ --text-invert: var(--primary-black);
81
+ --text-muted: var(--primary-dust);
82
+ --text-link: #8cb4ff;
83
+ --text-visited: #ffadff;
84
+ --text-hover: var(--primary-red);
85
+ --text-active: #858585;
86
+ --text-inactive: #cdcdcda6;
87
+ --background-primary: var(--primary-black);
88
+ --background-tab-level-1: #666666;
89
+ --background-tab-level-2: var(--primary-dust);
90
+ --background-tab-transparent: #6666;
91
+ --table-border-color: #ff3663;
92
+ --box-shadow: 1px 1px 12px #6666;
93
+ --box-shadow-primary: 1px 1px 12px #6666;
94
+ --box-shadow-primary-small: 1px 1px 3px #6666;
95
+ --box-shadow-primary-large: 1px 1px 24px #6666;
96
+ color-scheme: dark;
97
+ }
98
+ }
99
+ .en-light {
100
+ --primary-white: #ffffff;
101
+ --primary-black: #1b1b1b;
102
+ --primary-dust: #6f6f6f;
103
+ --primary-red: #d30038;
104
+ --primary-green: #007936;
105
+ --primary-blue: #0069c2;
106
+ --primary-yellow: #746a00;
107
+ --primary-super-yellow: #ffff00;
108
+ --text-primary: #1b1b1b;
109
+ --text-secondary: #4e4e4e;
110
+ --text-invert: var(--primary-white);
111
+ --text-muted: var(--primary-dust);
112
+ --text-link: #0069c2;
113
+ --text-visited: #551a8b;
114
+ --text-hover: var(--primary-red);
115
+ --text-visited: #551a8b;
116
+ --text-active: #858585;
117
+ --text-inactive: #9e9e9ea6;
118
+ --background-primary: var(--primary-white);
119
+ --background-tab-level-1: var(--primary-black);
120
+ --background-tab-level-2: var(--primary-dust);
121
+ --background-tab-transparent: #6666;
122
+ --table-border-color: #000;
123
+ --curriculum-shadow: 4px 4px 8px 0 #b3b3b32e, -4px 4px 8px 0 #b3b3b326;
124
+ --curriculum-shadow-landing-about-ul: 0 4px 10px 0 #e3642a0f, 0 -2px 4px 0 #b25c350f;
125
+ --box-shadow: 1px 1px 12px #6666;
126
+ --box-shadow-primary: 1px 1px 12px #6666;
127
+ --box-shadow-primary-small: 1px 1px 3px #6666;
128
+ --box-shadow-primary-large: 1px 1px 24px #6666;
129
+ color-scheme: light;
130
+ }
131
+
132
+ .en-dark {
133
+ --primary-white: #ffffff;
134
+ --primary-black: #1b1b1b;
135
+ --primary-dust: #858585;
136
+ --primary-red: #ff97a0;
137
+ --primary-green: #00d061;
138
+ --primary-blue: #8cb4ff;
139
+ --primary-yellow: #c7b700;
140
+ --text-primary: #fff;
141
+ --text-secondary: #cdcdcd;
142
+ --text-invert: var(--primary-black);
143
+ --text-muted: var(--primary-dust);
144
+ --text-link: #8cb4ff;
145
+ --text-visited: #ffadff;
146
+ --text-hover: var(--primary-red);
147
+ --text-active: #858585;
148
+ --text-inactive: #cdcdcda6;
149
+ --background-primary: var(--primary-black);
150
+ --background-tab-level-1: #666666;
151
+ --background-tab-level-2: var(--primary-dust);
152
+ --background-tab-transparent: #6666;
153
+ --table-border-color: #ff3663;
154
+ --box-shadow: 1px 1px 12px #6666;
155
+ --box-shadow-primary: 1px 1px 12px #6666;
156
+ --box-shadow-primary-small: 1px 1px 3px #6666;
157
+ --box-shadow-primary-large: 1px 1px 24px #6666;
158
+ color-scheme: dark;
159
+ }
160
+
161
+ .en-center {
162
+ position: absolute;
163
+ left: 50%;
164
+ top: 50%;
165
+ transform: translate(-50%, -50%);
166
+ }
167
+
168
+ /** 文本显示一行,超出点点点 */
169
+ .en-text-in-one-line {
170
+ white-space: nowrap;
171
+ text-overflow: ellipsis;
172
+ overflow: hidden;
173
+ word-break: break-all;
174
+ }
175
+
176
+ .en-text-in-one-line-hide {
177
+ white-space: nowrap;
178
+ text-overflow: clip;
179
+ overflow: hidden;
180
+ word-break: break-all;
181
+ }
182
+
183
+ /** 文本显示两行,超出点点点 */
184
+ .en-text-in-two-line {
185
+ overflow: hidden;
186
+ text-overflow: ellipsis;
187
+ display: -webkit-box;
188
+ -webkit-line-clamp: 2;
189
+ line-clamp: 2;
190
+ -webkit-box-orient: vertical;
191
+ }
192
+
193
+ /* 彩色字 */
194
+ .en-color-text {
195
+ color: transparent;
196
+ background-image: linear-gradient(45deg, #ff0, #0f0, #f00, #0ff, #00f, #f0f, #ff0);
197
+ background-position: 0% 0%;
198
+ background-size: 400% 200%;
199
+ background-clip: text;
200
+ animation: 6s ease-in 0s infinite colorText alternate;
201
+ }
202
+
203
+ .en-red-bg {
204
+ background-color: #f12;
205
+ }
206
+
207
+ .en-float-left {
208
+ float: left;
209
+ }
210
+
211
+ .en-float-right,
212
+ .en-float {
213
+ float: right;
214
+ }
215
+
216
+ .en-clear-float,
217
+ .en-clear {
218
+ clear: both;
219
+ }
220
+
221
+ .en-loading {
222
+ position: relative;
223
+ width: 100%;
224
+ height: 100%;
225
+ background-color: transparent;
226
+ background-image: radial-gradient(#f00, #f00 50%, transparent 50%, transparent), radial-gradient(#af1, #af1 50%, transparent 50%, transparent), radial-gradient(#0ff, #0ff 50%, transparent 50%, transparent), radial-gradient(#f0f, #f0f 50%, transparent 50%, transparent);
227
+ background-repeat: no-repeat;
228
+ animation: 2.4s ease-in-out 0s infinite loading;
229
+ }
230
+
231
+ .en-text-center {
232
+ text-align: center;
233
+ }
234
+
235
+ .en-text-right {
236
+ text-align: end;
237
+ }
238
+
239
+ .en-text-small {
240
+ font-size: 0.6rem;
241
+ }
242
+
243
+ @keyframes loading {
244
+ 100%, 0% {
245
+ background-size: 10% 10%, 10% 10%, 10% 10%, 10% 10%;
246
+ background-position: 25% 45%, 41.7% 45%, 58.3% 45%, 75% 45%;
247
+ }
248
+ 20%, 80% {
249
+ background-size: 2.5% 2.5%;
250
+ background-position: 25% 45%;
251
+ }
252
+ 22% {
253
+ background-size: 3.75% 3.75%, 2.5% 2.5%, 2.5% 2.5%, 2.5% 2.5%;
254
+ background-position: 25.85% 38.53%, 25% 45%, 25% 45%, 25% 45%;
255
+ }
256
+ 24% {
257
+ background-size: 5% 5%, 2.5% 2.5%, 2.5% 2.5%, 2.5% 2.5%;
258
+ background-position: 28.35% 32.5%, 25% 45%, 25% 45%, 25% 45%;
259
+ }
260
+ 26% {
261
+ background-size: 6.25% 6.25%, 2.5% 2.5%, 2.5% 2.5%, 2.5% 2.5%;
262
+ background-position: 32.32% 27.32%, 25% 45%, 25% 45%, 25% 45%;
263
+ }
264
+ 28% {
265
+ background-size: 7.5% 7.5%, 3.75% 3.75%, 2.5% 2.5%, 2.5% 2.5%;
266
+ background-position: 37.5% 23.35%, 25.85% 38.53%, 25% 45%, 25% 45%;
267
+ }
268
+ 30% {
269
+ background-size: 8.75% 8.75%, 5% 5%, 2.5% 2.5%, 2.5% 2.5%;
270
+ background-position: 43.53% 20.85%, 28.35% 32.5%, 25% 45%, 25% 45%;
271
+ }
272
+ 32% {
273
+ background-size: 10% 10%, 6.25% 6.25%, 3.75% 3.75%, 2.5% 2.5%;
274
+ background-position: 50% 20%, 32.32% 27.32%, 25.85% 38.53%, 25% 45%;
275
+ }
276
+ 34% {
277
+ background-size: 10% 10%, 7.5% 7.5%, 5% 5%, 2.5% 2.5%;
278
+ background-position: 56.47% 20.85%, 37.32% 23.35%, 28.35% 32.5%, 25.85% 38.53%;
279
+ }
280
+ 36% {
281
+ background-position: 62.4999992265% 23.3493644588%, 43.5295233332% 20.8518544873%, 32.3223302335% 27.3223307072%, 25.8518543139% 38.5295239803%;
282
+ }
283
+ 38% {
284
+ background-position: 67.6776688192% 27.3223297598%, 49.9999993301% 20%, 37.4999996132% 23.3493651287%, 28.3493647937% 32.5000001934%;
285
+ }
286
+ 40% {
287
+ background-position: 71.6506345364% 32.4999990331%, 56.4704753727% 20.8518541405%, 43.5295233332% 20.8518544873%, 32.3223302335% 27.3223307072%;
288
+ }
289
+ 42% {
290
+ background-position: 74.1481453394% 38.5295226862%, 62.4999992265% 23.3493644588%, 49.9999993301% 20%, 37.4999996132% 23.3493651287%;
291
+ }
292
+ 44% {
293
+ background-position: 75% 44.9999986603%, 67.6776688192% 27.3223297598%, 56.4704753727% 20.8518541405%, 43.5295233332% 20.8518544873%;
294
+ }
295
+ 46% {
296
+ background-position: 74.1481460329% 51.4704747256%, 71.6506345364% 32.4999990331%, 62.4999992265% 23.3493644588%, 49.9999993301% 20%;
297
+ }
298
+ 48% {
299
+ background-position: 71.6506358761% 57.4999986464%, 74.1481453394% 38.5295226862%, 67.6776688192% 27.3223297598%, 56.4704753727% 20.8518541405%;
300
+ }
301
+ 50% {
302
+ background-position: 67.6776707138% 62.6776683455%, 75% 44.9999986603%, 71.6506345364% 32.4999990331%, 62.4999992265% 23.3493644588%;
303
+ }
304
+ 52% {
305
+ background-position: 62.500001547% 66.6506342014%, 74.1481460329% 51.4704747256%, 74.1481453394% 38.5295226862%, 67.6776688192% 27.3223297598%;
306
+ }
307
+ 54% {
308
+ background-position: 56.4704779609% 69.148145166%, 71.6506358761% 57.4999986464%, 75% 44.9999986603%, 71.6506345364% 32.4999990331%;
309
+ }
310
+ 56% {
311
+ background-position: 50.0000020096% 70%, 67.6776707138% 62.6776683455%, 74.1481460329% 51.4704747256%, 74.1481453394% 38.5295226862%;
312
+ }
313
+ 58% {
314
+ background-position: 43.5295259214% 69.1481462062%, 62.500001547% 66.6506342014%, 71.6506358761% 57.4999986464%, 75% 44.9999986603%;
315
+ }
316
+ 60% {
317
+ background-position: 37.5000019338% 66.6506362111%, 56.4704779609% 69.148145166%, 67.6776707138% 62.6776683455%, 74.1481460329% 51.4704747256%;
318
+ }
319
+ 62% {
320
+ background-position: 32.3223321282% 62.6776711875%, 50.0000020096% 70%, 62.500001547% 66.6506342014%, 71.6506358761% 57.4999986464%;
321
+ }
322
+ 64% {
323
+ background-position: 28.3493661335% 57.5000021271%, 43.5295259214% 69.1481462062%, 56.4704779609% 69.148145166%, 67.6776707138% 62.6776683455%;
324
+ }
325
+ 66% {
326
+ background-position: 25.8518550074% 51.4704786079%, 37.5000019338% 66.6506362111%, 50.0000020096% 70%, 62.500001547% 66.6506342014%;
327
+ }
328
+ 68% {
329
+ background-size: 10% 10%, 7.5% 7.5%, 5% 5%, 2.5% 2.5%;
330
+ background-position: 25% 45%, 28.35% 57.45%, 37.45% 66.65%, 48% 70%;
331
+ }
332
+ 70% {
333
+ background-size: 8.75% 8.75%, 7.5% 7.5%, 5% 5%, 2.5% 2.5%;
334
+ background-position: 25% 45%, 25.85% 51.47%, 32.32% 62.68%, 43.53% 69.15%;
335
+ }
336
+ 72% {
337
+ background-size: 7.5% 7.5%, 7.5% 7.5%, 5% 5%, 2.5% 2.5%;
338
+ background-position: 25% 45%, 25% 45%, 28.35% 57.45%, 37.45% 66.65%;
339
+ }
340
+ 74% {
341
+ background-size: 6.25% 6.25%, 6.25% 6.25%, 5% 5%, 2.5% 2.5%;
342
+ background-position: 25% 45%, 25% 45%, 25.85% 51.47%, 32.32% 62.68%;
343
+ }
344
+ 76% {
345
+ background-size: 5% 5%, 5% 5%, 5% 5%, 2.5% 2.5%;
346
+ background-position: 25% 45%, 25% 45%, 25% 45%, 28.35% 57.45%;
347
+ }
348
+ 78% {
349
+ background-size: 3.75% 3.75%, 3.75% 3.75%, 3.75% 3.75%, 2.5% 2.5%;
350
+ background-position: 25% 45%, 25% 45%, 25% 45%, 25.85% 51.47%;
351
+ }
352
+ }
353
+ @keyframes colorText {
354
+ 0% {
355
+ background-position: 400% 0%;
356
+ }
357
+ 100% {
358
+ background-position: 0% 0%;
359
+ }
360
+ }