oops-ui 0.0.13 → 1.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 (172) hide show
  1. package/LICENSE +13 -1
  2. package/README.md +143 -0
  3. package/client.mjs +10 -0
  4. package/client.mjs.map +1 -0
  5. package/index.mjs +3 -0
  6. package/layoutUtil.mjs +10 -0
  7. package/layoutUtil.mjs.map +1 -0
  8. package/package.json +59 -108
  9. package/server.mjs +8 -0
  10. package/server.mjs.map +1 -0
  11. package/styles/common.css +1 -0
  12. package/styles/common.scss +143 -0
  13. package/styles/flex.scss +38 -0
  14. package/styles/header.scss +54 -0
  15. package/styles/image.scss +10 -0
  16. package/styles/input.scss +131 -0
  17. package/styles/loading-keyframes.scss +242 -0
  18. package/styles/reset.css +1 -0
  19. package/styles/reset.scss +90 -0
  20. package/styles/respond.scss +54 -0
  21. package/styles/root-normal-dark.scss +85 -0
  22. package/styles/root-normal-light.scss +83 -0
  23. package/styles/root-weird-dark.scss +1 -0
  24. package/styles/root.scss +326 -0
  25. package/styles/text.scss +111 -0
  26. package/styles/vars-color.scss +295 -0
  27. package/styles/vars-size.scss +6 -0
  28. package/type/components/ThemeContext/index.d.ts +25 -0
  29. package/type/components/ThemeContext/types.d.ts +28 -0
  30. package/type/components/button/button.d.ts +10 -0
  31. package/type/components/button/index.d.ts +9 -0
  32. package/type/components/image/index.d.ts +11 -0
  33. package/type/components/image/types.d.ts +13 -0
  34. package/type/components/image/useSrcChange.d.ts +11 -0
  35. package/type/components/layout/content.d.ts +17 -0
  36. package/type/components/layout/footer.d.ts +21 -0
  37. package/type/components/layout/get-value.d.ts +10 -0
  38. package/type/components/layout/header.d.ts +23 -0
  39. package/type/components/layout/index.d.ts +8 -0
  40. package/type/components/layout/is-fragment.d.ts +9 -0
  41. package/type/components/layout/layout.d.ts +55 -0
  42. package/type/components/layout/sidebar.d.ts +29 -0
  43. package/type/components/layout/types.d.ts +101 -0
  44. package/type/components/marquee/MarqueeEle.d.ts +15 -0
  45. package/type/components/marquee/index.d.ts +7 -0
  46. package/type/components/marquee/type.d.ts +9 -0
  47. package/type/components/menu/index.d.ts +6 -0
  48. package/type/components/menu/menu.d.ts +6 -0
  49. package/type/components/ripples/Content.d.ts +8 -0
  50. package/type/components/ripples/LazyRippleEle.d.ts +42 -0
  51. package/type/components/ripples/RipplesEle.d.ts +42 -0
  52. package/type/components/ripples/index.d.ts +11 -0
  53. package/type/components/ripples/types.d.ts +17 -0
  54. package/type/components/ripples/useOptionUpdate.d.ts +12 -0
  55. package/type/components/shared/EnLayoutContent/index.d.ts +19 -0
  56. package/type/components/shared/EnLayoutContent/types.d.ts +17 -0
  57. package/type/components/switch/SwitchContainer.d.ts +7 -0
  58. package/type/components/switch/SwitchContent.d.ts +10 -0
  59. package/type/components/switch/SwitchLabel.d.ts +9 -0
  60. package/type/components/switch/index.d.ts +14 -0
  61. package/type/customHooks/use-xcn/index.d.ts +14 -0
  62. package/type/customHooks/useAnimationFrame.d.ts +58 -0
  63. package/type/customHooks/useInputIsComposing.d.ts +44 -0
  64. package/type/customHooks/useRipples/buildBackground/create-background-color.d.ts +9 -0
  65. package/type/customHooks/useRipples/buildBackground/create-linear-gradient.d.ts +9 -0
  66. package/type/customHooks/useRipples/buildBackground/default-background/_createImageData.d.ts +13 -0
  67. package/type/customHooks/useRipples/buildBackground/default-background/circleDataList.d.ts +24 -0
  68. package/type/customHooks/useRipples/buildBackground/default-background/createCanvasElementBySize.d.ts +8 -0
  69. package/type/customHooks/useRipples/buildBackground/default-background/createDefault.d.ts +8 -0
  70. package/type/customHooks/useRipples/buildBackground/default-background/index.d.ts +18 -0
  71. package/type/customHooks/useRipples/buildBackground/load-image.d.ts +19 -0
  72. package/type/customHooks/useRipples/buildBackground/run-side.d.ts +15 -0
  73. package/type/customHooks/useRipples/buildBackground/type.d.ts +37 -0
  74. package/type/customHooks/useRipples/buildBackground/utils/bind-image.d.ts +10 -0
  75. package/type/customHooks/useRipples/buildBackground/utils/create-canvas-element.d.ts +9 -0
  76. package/type/customHooks/useRipples/buildBackground/utils/create-image-by-src.d.ts +8 -0
  77. package/type/customHooks/useRipples/buildBackground/utils/get-background-style.d.ts +9 -0
  78. package/type/customHooks/useRipples/buildBackground/utils/hide-css-background.d.ts +16 -0
  79. package/type/customHooks/useRipples/buildBackground/utils/restore-css-background.d.ts +13 -0
  80. package/type/customHooks/useRipples/callback/can-side.d.ts +14 -0
  81. package/type/customHooks/useRipples/callback/destroy.d.ts +9 -0
  82. package/type/customHooks/useRipples/callback/drop.d.ts +9 -0
  83. package/type/customHooks/useRipples/callback/extract-url.d.ts +8 -0
  84. package/type/customHooks/useRipples/callback/fade.d.ts +9 -0
  85. package/type/customHooks/useRipples/callback/get-new-image.d.ts +14 -0
  86. package/type/customHooks/useRipples/callback/reload-background.d.ts +12 -0
  87. package/type/customHooks/useRipples/callback/scale.d.ts +8 -0
  88. package/type/customHooks/useRipples/index.d.ts +45 -0
  89. package/type/customHooks/useRipples/init/index.d.ts +11 -0
  90. package/type/customHooks/useRipples/init/initEvent.d.ts +11 -0
  91. package/type/customHooks/useRipples/init/initShaders.d.ts +13 -0
  92. package/type/customHooks/useRipples/init/initTexture.d.ts +13 -0
  93. package/type/customHooks/useRipples/render/computeTextureBoundaries.d.ts +9 -0
  94. package/type/customHooks/useRipples/render/draw.d.ts +13 -0
  95. package/type/customHooks/useRipples/render/drawQuad.d.ts +13 -0
  96. package/{dist/types → type}/customHooks/useRipples/render/dropAtPointer.d.ts +8 -2
  97. package/type/customHooks/useRipples/render/index.d.ts +12 -0
  98. package/type/customHooks/useRipples/render/swapBufferIndices.d.ts +11 -0
  99. package/type/customHooks/useRipples/render/update.d.ts +11 -0
  100. package/type/customHooks/useRipples/rippersData/defaultData.d.ts +11 -0
  101. package/type/customHooks/useRipples/rippersData/fadeData.d.ts +51 -0
  102. package/{dist/types → type}/customHooks/useRipples/rippersData/index.d.ts +24 -18
  103. package/{dist/types → type}/customHooks/useRipples/rippersData/loadConfig.d.ts +12 -2
  104. package/type/customHooks/useRipples/rippersData/renderData.d.ts +80 -0
  105. package/type/customHooks/useRipples/rippersData/useOptions.d.ts +91 -0
  106. package/{dist/types → type}/customHooks/useRipples/rippersData/vertexSource.d.ts +17 -11
  107. package/type/customHooks/useRipples/ripple.html.d.ts +12 -0
  108. package/type/customHooks/useRipples/ripplesClass.d.ts +57 -0
  109. package/{dist/types → type}/customHooks/useRipples/tools.d.ts +18 -8
  110. package/type/customHooks/useRipples/types.d.ts +209 -0
  111. package/type/customHooks/useRipples/use-lazy-ripple.d.ts +15 -0
  112. package/{dist/types → type}/customHooks/useTimeId.d.ts +10 -6
  113. package/type/dog.d.ts +8 -0
  114. package/type/index.client.d.ts +20 -0
  115. package/type/index.d.ts +8 -0
  116. package/type/index.server.d.ts +8 -0
  117. package/type/storage/main-logic .d.ts +26 -0
  118. package/type/storage/storage-store.d.ts +14 -0
  119. package/type/utilities/cookie.d.ts +21 -0
  120. package/type/utilities/sys.d.ts +41 -0
  121. package/ReadMe.md +0 -17
  122. package/dist/BackgroundRipple/index.cjs +0 -1
  123. package/dist/BackgroundRipple/index.mjs +0 -1
  124. package/dist/index.cjs +0 -1
  125. package/dist/index.js +0 -1
  126. package/dist/index.mjs +0 -1
  127. package/dist/styles/common.css +0 -353
  128. package/dist/styles/common.scss +0 -504
  129. package/dist/types/components/button/button.d.ts +0 -2
  130. package/dist/types/components/button/index.d.ts +0 -3
  131. package/dist/types/components/button/style/index.d.ts +0 -1
  132. package/dist/types/components/index.d.ts +0 -1
  133. package/dist/types/components/layout/header.d.ts +0 -4
  134. package/dist/types/components/layout/index.d.ts +0 -0
  135. package/dist/types/components/layout/interface.d.ts +0 -8
  136. package/dist/types/components/layout/layout.d.ts +0 -14
  137. package/dist/types/components/menu/index.d.ts +0 -0
  138. package/dist/types/components/menu/menu.d.ts +0 -0
  139. package/dist/types/components/menu/style/index.d.ts +0 -0
  140. package/dist/types/components/ripples/RipplesEle.d.ts +0 -33
  141. package/dist/types/components/ripples/index.d.ts +0 -2
  142. package/dist/types/components/ripples/style/index.d.ts +0 -0
  143. package/dist/types/customHooks/index.d.ts +0 -5
  144. package/dist/types/customHooks/useAnimationFrame.d.ts +0 -41
  145. package/dist/types/customHooks/useInputIsComposing.d.ts +0 -45
  146. package/dist/types/customHooks/useRipples/defaultData.d.ts +0 -5
  147. package/dist/types/customHooks/useRipples/index.d.ts +0 -46
  148. package/dist/types/customHooks/useRipples/init/hideCssBackground.d.ts +0 -9
  149. package/dist/types/customHooks/useRipples/init/initEvent.d.ts +0 -5
  150. package/dist/types/customHooks/useRipples/init/initGL.d.ts +0 -5
  151. package/dist/types/customHooks/useRipples/init/initShaders.d.ts +0 -7
  152. package/dist/types/customHooks/useRipples/init/initTexture.d.ts +0 -7
  153. package/dist/types/customHooks/useRipples/init/loadImage.d.ts +0 -13
  154. package/dist/types/customHooks/useRipples/render/computeTextureBoundaries.d.ts +0 -7
  155. package/dist/types/customHooks/useRipples/render/drawQuad.d.ts +0 -7
  156. package/dist/types/customHooks/useRipples/render/render.d.ts +0 -7
  157. package/dist/types/customHooks/useRipples/render/step.d.ts +0 -6
  158. package/dist/types/customHooks/useRipples/render/swapBufferIndices.d.ts +0 -2
  159. package/dist/types/customHooks/useRipples/render/update.d.ts +0 -2
  160. package/dist/types/customHooks/useRipples/rippersData/createImageData.d.ts +0 -4
  161. package/dist/types/customHooks/useRipples/rippersData/renderData.d.ts +0 -85
  162. package/dist/types/customHooks/useRipples/ripple.html.d.ts +0 -3
  163. package/dist/types/customHooks/useRipples/ripplesClass.d.ts +0 -120
  164. package/dist/types/index.d.ts +0 -3
  165. package/dist/useAnimationFrame/index.cjs +0 -1
  166. package/dist/useAnimationFrame/index.mjs +0 -1
  167. package/dist/useInputIsComposing/index.cjs +0 -1
  168. package/dist/useInputIsComposing/index.mjs +0 -1
  169. package/dist/useRipples/index.cjs +0 -1
  170. package/dist/useRipples/index.mjs +0 -1
  171. package/dist/useTimeId/index.cjs +0 -1
  172. package/dist/useTimeId/index.mjs +0 -1
@@ -1,504 +0,0 @@
1
- :root {
2
- --box-shadow: 0 5px 13px 0 rgba(10, 15, 71, 0.2);
3
- --font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono",
4
- "Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace;
5
- --mi-white: #ffffff;
6
- --mi-mi-white: #f0f2e6;
7
- --mi-dark-blue: #465e65;
8
- --mi-mi-yellow: #c2c6ae;
9
- --mi-orange: #fa0;
10
- --mi-green: #0b8;
11
- --mi-red: #f16;
12
- /** */
13
- --mi-orange-yellow: #c99e8c;
14
- /*(橘红)*/
15
- --mi-orange-red: #900022;
16
- --mi-light-red: #d80010;
17
- --mi-dark-ash: #6c8650;
18
- --mi-mi-pretty: #b2b6b6;
19
- --mi-light-black: #777;
20
- --mi-black: #000;
21
- --mi-dust: #999;
22
- }
23
-
24
- *,
25
- a,
26
- body,
27
- abbr,
28
- address,
29
- area,
30
- div,
31
- img,
32
- input,
33
- p,
34
- mark,
35
- html,
36
- span {
37
- position: relative;
38
- left: auto;
39
- top: auto;
40
- box-sizing: border-box;
41
-
42
- font: inherit;
43
- vertical-align: baseline;
44
- -webkit-user-drag: none;
45
- // user-drag: none;
46
- -webkit-user-select: none;
47
- user-select: none;
48
- }
49
-
50
- body,
51
- html {
52
- font-size: 14px;
53
- line-height: 1.4rem;
54
- margin: 0;
55
- padding: 0;
56
- border: 0;
57
- }
58
-
59
- a {
60
- text-decoration: none;
61
- }
62
-
63
- ol,
64
- ul {
65
- list-style: none;
66
- }
67
-
68
- blockquote::before,
69
- blockquote::after,
70
- q::before,
71
- q::after {
72
- content: "";
73
- content: none;
74
- }
75
-
76
- table {
77
- border-collapse: collapse;
78
- border-spacing: 0;
79
- }
80
-
81
- input:focus-visible {
82
- outline: none;
83
- }
84
-
85
- input[type="button"],
86
- .cursor-pointer {
87
- cursor: pointer;
88
- }
89
-
90
- /** 输入框 */
91
- input[type="text"] {
92
- width: 200px;
93
- border-radius: 10px;
94
- background-color: #000;
95
- color: #0f9;
96
-
97
- &::placeholder {
98
- color: #aff9;
99
- }
100
-
101
- &:focus::placeholder {
102
- color: transparent;
103
- }
104
- }
105
-
106
- input[type="radio"] {
107
- width: 0;
108
- height: 0;
109
- overflow: hidden;
110
-
111
- + label {
112
- padding-left: 15px;
113
-
114
- &::before,
115
- &::after {
116
- content: "";
117
- position: absolute;
118
- border-radius: 50%;
119
- top: 50%;
120
- transform: translate(0, -50%);
121
- overflow: hidden;
122
- }
123
-
124
- &::before {
125
- left: 0px;
126
- height: 8px;
127
- width: 8px;
128
-
129
- box-shadow: 1px 1px 3px #000;
130
- z-index: 1;
131
- }
132
-
133
- &::after {
134
- font-size: 8px;
135
- line-height: 8px;
136
- z-index: 2;
137
- left: 0px;
138
- height: 8px;
139
- width: 8px;
140
- color: #fff;
141
- background-color: #000;
142
- clip-path: circle(0%);
143
- transition: all 0.3s;
144
- }
145
- }
146
-
147
- &:checked {
148
- color: #f00;
149
-
150
- & + label {
151
- color: #0a3;
152
-
153
- &::before {
154
- box-shadow:
155
- 1px 1px 3px #0f3,
156
- -1px -1px 3px #0f3;
157
- }
158
-
159
- &::after {
160
- background-color: #0a3;
161
- clip-path: circle(100%);
162
- transition: all 0.8s;
163
- }
164
- }
165
- }
166
- }
167
-
168
- input[type="image"] {
169
- -webkit-user-select: none;
170
- user-select: none;
171
- }
172
-
173
- .center {
174
- position: absolute;
175
- left: 50%;
176
- top: 50%;
177
- transform: translate(-50%, -50%);
178
- }
179
-
180
- img {
181
- -webkit-touch-callout: none;
182
- -webkit-user-select: none;
183
- -khtml-user-select: none;
184
- -moz-user-select: none;
185
- -ms-user-select: none;
186
- user-select: none;
187
- }
188
-
189
- /** 文本显示一行,超出点点点 */
190
- .textInOneLine {
191
- white-space: nowrap;
192
- text-overflow: ellipsis;
193
- overflow: hidden;
194
- word-break: break-all;
195
- }
196
-
197
- .textInOneLineHide {
198
- white-space: nowrap;
199
- text-overflow: clip;
200
- overflow: hidden;
201
- word-break: break-all;
202
- }
203
-
204
- /** 文本显示两行,超出点点点 */
205
- .textInTwoLine {
206
- overflow: hidden;
207
- text-overflow: ellipsis;
208
- display: -webkit-box;
209
- -webkit-line-clamp: 2;
210
- line-clamp: 2;
211
- -webkit-box-orient: vertical;
212
- }
213
-
214
- /* 彩色字 */
215
- .colorText {
216
- color: transparent;
217
- background-image: linear-gradient(45deg, #ff0, #0f0, #f00, #0ff, #00f, #f0f, #ff0);
218
- background-position: 0% 0%;
219
- background-size: 400% 200%;
220
- background-clip: text;
221
- animation: 6s ease-in 0s infinite colorText alternate;
222
- }
223
-
224
- .redB {
225
- background-color: #f12;
226
- }
227
-
228
- .floatLeft {
229
- float: left;
230
- }
231
-
232
- .floatRight,
233
- .float {
234
- float: right;
235
- }
236
-
237
- .clear {
238
- clear: both;
239
- }
240
- .loading {
241
- position: relative;
242
- width: 100%;
243
- height: 100%;
244
- background-color: transparent;
245
- background-image: radial-gradient(#f00, #f00 50%, transparent 50%, transparent),
246
- radial-gradient(#af1, #af1 50%, transparent 50%, transparent),
247
- radial-gradient(#0ff, #0ff 50%, transparent 50%, transparent),
248
- radial-gradient(#f0f, #f0f 50%, transparent 50%, transparent);
249
- background-repeat: no-repeat;
250
- animation: 2.4s ease-in-out 0s infinite loading;
251
- }
252
-
253
- @keyframes loading {
254
- // 45 - 25 * Math.sin((Math.PI * 5) / 12)
255
- // 位置公式 35 - 25 * Math.cos((Math.PI * 5) / 12)
256
-
257
- 100%,
258
- 0% {
259
- background-size:
260
- 10% 10%,
261
- 10% 10%,
262
- 10% 10%,
263
- 10% 10%;
264
- background-position:
265
- 25% 45%,
266
- 41.7% 45%,
267
- 58.3% 45%,
268
- 75% 45%;
269
- }
270
-
271
- 20%,
272
- 80% {
273
- background-size: 2.5% 2.5%;
274
- background-position: 25% 45%;
275
- }
276
-
277
- 22% {
278
- background-size:
279
- 3.75% 3.75%,
280
- 2.5% 2.5%,
281
- 2.5% 2.5%,
282
- 2.5% 2.5%;
283
- background-position:
284
- // 位置 1
285
- 25.85% 38.53%,
286
- 25% 45%,
287
- 25% 45%,
288
- 25% 45%;
289
- }
290
-
291
- 24% {
292
- background-size:
293
- 5% 5%,
294
- 2.5% 2.5%,
295
- 2.5% 2.5%,
296
- 2.5% 2.5%;
297
- background-position:
298
- // 位置 2
299
- 28.35% 32.5%,
300
- 25% 45%,
301
- 25% 45%,
302
- 25% 45%;
303
- }
304
-
305
- 26% {
306
- background-size:
307
- 6.25% 6.25%,
308
- 2.5% 2.5%,
309
- 2.5% 2.5%,
310
- 2.5% 2.5%;
311
- background-position:
312
- // 位置 3
313
- 32.32% 27.32%,
314
- 25% 45%,
315
- 25% 45%,
316
- 25% 45%;
317
- }
318
-
319
- 28% {
320
- background-size:
321
- 7.5% 7.5%,
322
- 3.75% 3.75%,
323
- 2.5% 2.5%,
324
- 2.5% 2.5%;
325
- background-position:
326
- // 位置 4
327
- 37.5% 23.35%,
328
- // 位置 1
329
- 25.85% 38.53%,
330
- 25% 45%,
331
- 25% 45%;
332
- }
333
-
334
- 30% {
335
- background-size:
336
- 8.75% 8.75%,
337
- 5% 5%,
338
- 2.5% 2.5%,
339
- 2.5% 2.5%;
340
- background-position:
341
- // 位置 5
342
- 43.53% 20.85%,
343
- // 位置 2
344
- 28.35% 32.5%,
345
- 25% 45%,
346
- 25% 45%;
347
- }
348
-
349
- 32% {
350
- background-size:
351
- 10% 10%,
352
- 6.25% 6.25%,
353
- 3.75% 3.75%,
354
- 2.5% 2.5%;
355
- background-position:
356
- // 位置 6
357
- 50% 20%,
358
- // 位置 3
359
- 32.32% 27.32%,
360
- // 位置 1
361
- 25.85% 38.53%,
362
- 25% 45%;
363
- }
364
-
365
- 34% {
366
- background-size:
367
- 10% 10%,
368
- 7.5% 7.5%,
369
- 5% 5%,
370
- 2.5% 2.5%;
371
- background-position:
372
- // 位置 7
373
- 56.47% 20.85%,
374
- // 位置 4
375
- 37.32% 23.35%,
376
- // 位置 2
377
- 28.35% 32.5%,
378
- // 位置 1
379
- 25.85% 38.53%;
380
- }
381
-
382
- $Pi: 3.1415926;
383
-
384
- @for $i from 18 through 33 {
385
- #{calc($i / 50 * 100%)} {
386
- background-position:
387
- #{(50 - (25 * cos(($Pi * ($i - 10)) / 12))) * 1%} #{(45 - 25 * sin(($Pi * ($i - 10)) / 12)) * 1%},
388
- #{(50 - (25 * cos(($Pi * ($i - 13)) / 12))) * 1%} #{(45 - 25 * sin(($Pi * ($i - 13)) / 12)) * 1%},
389
- #{(50 - (25 * cos(($Pi * ($i - 15)) / 12))) * 1%} #{(45 - 25 * sin(($Pi * ($i - 15)) / 12)) * 1%},
390
- #{(50 - (25 * cos(($Pi * ($i - 17)) / 12))) * 1%} #{(45 - 25 * sin(($Pi * ($i - 17)) / 12)) * 1%};
391
- }
392
- }
393
-
394
- 68% {
395
- background-size:
396
- 10% 10%,
397
- 7.5% 7.5%,
398
- 5% 5%,
399
- 2.5% 2.5%;
400
- background-position:
401
- // 位置 0
402
- 25% 45%,
403
- // 位置 22
404
- 28.35% 57.45%,
405
- // 位置 20
406
- 37.45% 66.65%,
407
- // 位置 18
408
- 48% 70%;
409
- }
410
-
411
- 70% {
412
- background-size:
413
- 8.75% 8.75%,
414
- 7.5% 7.5%,
415
- 5% 5%,
416
- 2.5% 2.5%;
417
- background-position:
418
- // 位置 0
419
- 25% 45%,
420
- // 位置 23
421
- 25.85% 51.47%,
422
- // 位置 21
423
- 32.32% 62.68%,
424
- // 位置 19
425
- 43.53% 69.15%;
426
- }
427
-
428
- 72% {
429
- background-size:
430
- 7.5% 7.5%,
431
- 7.5% 7.5%,
432
- 5% 5%,
433
- 2.5% 2.5%;
434
- background-position:
435
- // 位置 0
436
- 25% 45%,
437
- // 位置 0
438
- 25% 45%,
439
- // 位置 22
440
- 28.35% 57.45%,
441
- // 位置 20
442
- 37.45% 66.65%;
443
- }
444
- 74% {
445
- background-size:
446
- 6.25% 6.25%,
447
- 6.25% 6.25%,
448
- 5% 5%,
449
- 2.5% 2.5%;
450
- background-position:
451
- // 位置 0
452
- 25% 45%,
453
- // 位置 0
454
- 25% 45%,
455
- // 位置 23
456
- 25.85% 51.47%,
457
- // 位置 21
458
- 32.32% 62.68%;
459
- }
460
-
461
- 76% {
462
- background-size:
463
- 5% 5%,
464
- 5% 5%,
465
- 5% 5%,
466
- 2.5% 2.5%;
467
- background-position:
468
- // 位置 0
469
- 25% 45%,
470
- // 位置 0
471
- 25% 45%,
472
- // 位置 0
473
- 25% 45%,
474
- // 位置 22
475
- 28.35% 57.45%;
476
- }
477
-
478
- 78% {
479
- background-size:
480
- 3.75% 3.75%,
481
- 3.75% 3.75%,
482
- 3.75% 3.75%,
483
- 2.5% 2.5%;
484
- background-position:
485
- // 位置 0
486
- 25% 45%,
487
- // 位置 0
488
- 25% 45%,
489
- // 位置 0
490
- 25% 45%,
491
- // 位置 23
492
- 25.85% 51.47%;
493
- }
494
- }
495
-
496
- @keyframes colorText {
497
- 0% {
498
- background-position: 400% 0%;
499
- }
500
-
501
- 100% {
502
- background-position: 0% 0%;
503
- }
504
- }
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export default function Button(): React.JSX.Element;
@@ -1,3 +0,0 @@
1
- import Button from './button';
2
- export { Button };
3
- export default Button;
@@ -1 +0,0 @@
1
- import './index.scss';
@@ -1 +0,0 @@
1
- export { BackgroundRipple } from './ripples';
@@ -1,4 +0,0 @@
1
- /**************************
2
- * 标题
3
- **************************/
4
- export declare function OHeader(): void;
File without changes
@@ -1,8 +0,0 @@
1
- /****************************************************************************
2
- * @Author lmssee
3
- * @Email lmssee@outlook.com
4
- * @ProjectName react-ripples
5
- * @FileName interface.ts
6
- * @CreateDate 周三 12/18/2024
7
- * @Description
8
- ****************************************************************************/
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- export default function OLayout(): React.JSX.Element;
3
- /**************************
4
- * 侧栏
5
- **************************/
6
- export declare function OSidebar(): void;
7
- /**************************
8
- * 页脚
9
- **************************/
10
- export declare function OFooter(): void;
11
- /**************************
12
- * 内容区
13
- **************************/
14
- export declare function OContent(): void;
File without changes
File without changes
File without changes
@@ -1,33 +0,0 @@
1
- import React from 'react';
2
- import { BackgroundRipplesProps } from 'customHooks/useRipples/types';
3
- /**************************************
4
- *
5
- * ### 一个 ripple 背景组件
6
- *
7
- *
8
- * *需要为该组件或父组件设置背景,否则即便的渲染了,效果不明显*
9
- *
10
- * 参数 props 属性:
11
- * - children 内嵌的 ReactNode
12
- * - style 更改显示的样式
13
- * - option 初始化 ripples 的原始数据
14
- * @param props 使用参数
15
- * @version 0.0.1
16
- * @see https://lmssee.com/oops-ui/background-ripple
17
- * @example
18
- * 使用:
19
- *
20
- * ```ts
21
- * import { BackgroundRipple } from 'oops-ui/BackgroundRipple';
22
- * // 也可以全量导入
23
- * // import { BackgroundRipple } from 'oops-ui';
24
- * ...
25
- * const animationFrameId = useAnimationFrame();
26
- *
27
- * return <BackgroundRipple>
28
- * ...
29
- * </BackgroundRipple>
30
- * ```
31
- *
32
- **************************************/
33
- export declare function BackgroundRipple(props: BackgroundRipplesProps): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- export { BackgroundRipple } from './RipplesEle';
2
- export type { Ripples, BackgroundRipplesProps, RipplesOptions, } from '../../customHooks/useRipples/index';
File without changes
@@ -1,5 +0,0 @@
1
- export { useInputIsComposing } from './useInputIsComposing';
2
- export { useTimeId } from './useTimeId';
3
- export { useAnimationFrameId } from './useAnimationFrame';
4
- export { useRipples } from './useRipples/index';
5
- export type { Ripples, BackgroundRipplesProps, RipplesOptions } from './useRipples/index';
@@ -1,41 +0,0 @@
1
- /****************************************************************************
2
- * @Author lmssee
3
- * @Email lmssee@outlook.com
4
- * @ProjectName oops-ui
5
- * @FileName useAnimationFrame.ts
6
- * @CreateDate 周二 01/07/2025
7
- * @Description 使用 animationFrame
8
- ****************************************************************************/
9
- /**************************************
10
- *
11
- * ### 导出一个使用 `useRef` 创建的 `number`
12
- *
13
- * @description 一个接收 `window.requestAnimationFrame` 的返回值的 `ref`
14
- * @important 该数值在组件卸载时会自动调用 `window.cancelAnimationFrame` 清理
15
- * @returns <React.RefObject: number>
16
- * @version 0.0.3
17
- * @see https://lmssee.com/oops-ui/use-animation-frame
18
- * @example
19
- * 使用:
20
- *
21
- * ```ts
22
- * import { useAnimationFrame } from 'oops-ui/useAnimationFrame';
23
- * // 也可以全量导入
24
- * // import { useAnimationFrame } from 'oops-ui';
25
- * ...
26
- * const animationFrameId = useAnimationFrame();
27
- *
28
- * function performAction(time?: number){
29
- * useAnimationFrame.current = window.requestAnimationFrame(performAction);
30
- * ...
31
- * }
32
- *
33
- * useEffect(()=>{
34
- * animationFrameId.current = window.requestAnimationFrame(performAction);
35
- * });
36
- * ...
37
- *
38
- * ```
39
- *
40
- **************************************/
41
- export declare function useAnimationFrameId(): React.RefObject<number>;
@@ -1,45 +0,0 @@
1
- /****************************************************************************
2
- * @Author lmssee
3
- * @Email lmssee@outlook.com
4
- * @ProjectName oops-ui
5
- * @FileName useInputIsComposing.ts
6
- * @CreateDate 周二 01/07/2025
7
- * @Description 使用输入框是否完成输入状态
8
- ****************************************************************************/
9
- /**************************************
10
- *
11
- * ### 导出一个使用 `useRef` 创建的 `boolean`
12
- *
13
- * @description 用于判断当前的输入状态是否结束
14
- * @important *由于是包裹在 React.RefObject 之中,判断时务必使用 `isComposing.current` 进行判断*
15
- * @param inputRef [React.RefObject<HTMLInputElement | HTMLTextAreaElement>] 输入框的 ref
16
- * @returns React.RefObject<boolean>
17
- * @version 0.0.4
18
- * @see https://lmssee.com/oops-ui/use-input-is-composing
19
- * @example
20
- *
21
- * 使用:
22
- *
23
- * ```ts
24
- * import { useInputIsComposing } from 'oops-ui/useInputIsComposing';
25
- * // 也可以全量导入
26
- * // import { useInputIsComposing } from 'oops-ui';
27
- * ...
28
- * const inputRef = useRef<HTMLInputElement>(null);
29
- *
30
- * const inputIsComposing = useInputIsComposing(inputRef);
31
- * ...
32
- * function enterDown()(e: React.KeyboardEvent<HTMLInputElement>) {
33
- * if (e.key === 'Enter') {
34
- * if (isComposing.current) {
35
- * console.log("此时此景,按回车键说明为了从候选词中挑选");
36
- * } else
37
- * console.log("输入完毕,敲回车是为了看一些开发者是否绑定了其他事件");
38
- * }
39
- * }
40
- * ...
41
- * <input type="text" onKeyDown={enterDown} />
42
- * ...
43
- * ```
44
- **************************************/
45
- export declare function useInputIsComposing(inputRef: React.RefObject<HTMLInputElement | HTMLTextAreaElement | null>): React.RefObject<boolean>;
@@ -1,5 +0,0 @@
1
- import { RipplesDefaultData } from './types';
2
- /**************************
3
- * 默认值
4
- **************************/
5
- export declare const defaultData: RipplesDefaultData;