@applemusic-like-lyrics/react-full 0.4.1 → 0.5.0
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/README.md +2 -0
- package/dist/amll-react-framework.cjs +366 -269
- package/dist/amll-react-framework.cjs.map +1 -1
- package/dist/amll-react-framework.d.cts +281 -254
- package/dist/amll-react-framework.d.mts +281 -255
- package/dist/amll-react-framework.mjs +315 -225
- package/dist/amll-react-framework.mjs.map +1 -1
- package/dist/style.css +62 -60
- package/package.json +13 -13
package/dist/style.css
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
&:before {
|
|
40
40
|
content: "";
|
|
41
41
|
opacity: .2;
|
|
42
|
-
border-image-source: url("data:image/svg+xml,%3Csvg%
|
|
42
|
+
border-image-source: url("data:image/svg+xml,%3Csvg%0A%09width%3D%2236%22%0A%09height%3D%2236%22%0A%09viewBox%3D%220%200%2036%2036%22%0A%09fill%3D%22none%22%0A%09xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%3E%0A%09%3Cpath%0A%09%09d%3D%22M19.5%200C25.573%200%2028.6095%200%2030.8862%201.27504C32.4953%202.17617%2033.8238%203.50471%2034.725%205.11379C36%207.39054%2036%2010.427%2036%2016.5V19.5C36%2025.573%2036%2028.6095%2034.725%2030.8862C33.8238%2032.4953%2032.4953%2033.8238%2030.8862%2034.725C28.6095%2036%2025.573%2036%2019.5%2036H16.5C10.427%2036%207.39054%2036%205.11379%2034.725C3.50471%2033.8238%202.17617%2032.4953%201.27504%2030.8862C0%2028.6095%200%2025.573%200%2019.5L0%2016.5C0%2010.427%200%207.39054%201.27504%205.11379C2.17617%203.50471%203.50471%202.17617%205.11379%201.27504C7.39054%200%2010.427%200%2016.5%200L19.5%200Z%22%0A%09%09fill%3D%22white%22%0A%09%2F%3E%0A%3C%2Fsvg%3E%0A");
|
|
43
43
|
border-image-slice: 15 fill;
|
|
44
44
|
border-image-width: 8.5px;
|
|
45
45
|
width: 100%;
|
|
@@ -172,30 +172,31 @@
|
|
|
172
172
|
display: flex;
|
|
173
173
|
position: relative;
|
|
174
174
|
|
|
175
|
+
& > * {
|
|
176
|
+
transform-origin: center;
|
|
177
|
+
transition: transform .5s;
|
|
178
|
+
}
|
|
179
|
+
|
|
175
180
|
&:hover {
|
|
176
181
|
background-color: #fff2;
|
|
177
182
|
}
|
|
178
183
|
|
|
184
|
+
&._7JvWRa_animate > * {
|
|
185
|
+
animation-composition: accumulate;
|
|
186
|
+
animation: .7s _7JvWRa_pressed-animation;
|
|
187
|
+
}
|
|
188
|
+
|
|
179
189
|
&:active {
|
|
180
190
|
background-color: #fff2;
|
|
181
191
|
|
|
182
192
|
& * {
|
|
183
|
-
animation-name: none
|
|
193
|
+
animation-name: none;
|
|
184
194
|
}
|
|
185
195
|
}
|
|
186
|
-
|
|
187
|
-
& > * {
|
|
188
|
-
transform-origin: center;
|
|
189
|
-
transition: transform .5s;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
&._7JvWRa_animate > * {
|
|
193
|
-
animation-composition: accumulate;
|
|
194
|
-
animation: .7s _7JvWRa_pressed-animation;
|
|
195
|
-
}
|
|
196
196
|
}
|
|
197
197
|
.GOs7HW_menuButton {
|
|
198
198
|
aspect-ratio: 1;
|
|
199
|
+
background: #ffffff15;
|
|
199
200
|
border: none;
|
|
200
201
|
border-radius: 50%;
|
|
201
202
|
justify-content: center;
|
|
@@ -206,7 +207,6 @@
|
|
|
206
207
|
padding: 0;
|
|
207
208
|
display: flex;
|
|
208
209
|
position: relative;
|
|
209
|
-
background: #ffffff15 !important;
|
|
210
210
|
|
|
211
211
|
& svg {
|
|
212
212
|
color: #fff;
|
|
@@ -251,9 +251,9 @@
|
|
|
251
251
|
user-select: text;
|
|
252
252
|
letter-spacing: .4px;
|
|
253
253
|
opacity: .9;
|
|
254
|
+
mix-blend-mode: normal;
|
|
254
255
|
min-width: 0;
|
|
255
256
|
font-weight: 500;
|
|
256
|
-
mix-blend-mode: normal !important;
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
.XWzuDW_artists, .XWzuDW_album {
|
|
@@ -305,48 +305,6 @@
|
|
|
305
305
|
top: 0;
|
|
306
306
|
left: 0;
|
|
307
307
|
}
|
|
308
|
-
.-DaA0W_horizontalLayout {
|
|
309
|
-
--hide-lyric-left: 61.1111%;
|
|
310
|
-
grid-template-rows: [-DaA0W_drag-area] minmax(30px, .45fr)[-DaA0W_thumb] auto[-DaA0W_cover] auto[-DaA0W_music-info] 3fr[-DaA0W_buttom-controls] 0fr .3fr;
|
|
311
|
-
grid-template-columns: [-DaA0W_info-side] .45fr[-DaA0W_player-side] .55fr[-DaA0W_side-controls] 0fr;
|
|
312
|
-
gap: 8px;
|
|
313
|
-
width: 100%;
|
|
314
|
-
height: 100%;
|
|
315
|
-
transition: all .5s ease-in-out;
|
|
316
|
-
display: grid;
|
|
317
|
-
position: relative;
|
|
318
|
-
left: 0%;
|
|
319
|
-
|
|
320
|
-
& .-DaA0W_thumb, & .-DaA0W_cover, & .-DaA0W_controls {
|
|
321
|
-
transition: left .5s cubic-bezier(.5, 0, .5, 1);
|
|
322
|
-
left: 0%;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
&.-DaA0W_hideLyric {
|
|
326
|
-
& .-DaA0W_lyric {
|
|
327
|
-
opacity: 0;
|
|
328
|
-
pointer-events: none;
|
|
329
|
-
transition: opacity .25s cubic-bezier(.5, 0, .5, 1), transform .5s cubic-bezier(.5, 0, .5, 1);
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
& .-DaA0W_thumb, & .-DaA0W_cover, & .-DaA0W_controls {
|
|
333
|
-
left: var(--hide-lyric-left);
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
--horizontal-layout-max-width: min(50vh, 38vw);
|
|
338
|
-
|
|
339
|
-
@media screen and (height <= 1000px) {
|
|
340
|
-
--horizontal-layout-max-width: min(45vh, 38vw);
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
@media screen and (height <= 768px) {
|
|
344
|
-
grid-template-rows: [-DaA0W_drag-area] minmax(30px, .45fr)[-DaA0W_thumb] auto[-DaA0W_cover] auto[-DaA0W_music-info] 3fr[-DaA0W_buttom-controls] 0fr .2fr;
|
|
345
|
-
gap: 2px;
|
|
346
|
-
font-size: .8em;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
|
|
350
308
|
.-DaA0W_thumb {
|
|
351
309
|
will-change: transform;
|
|
352
310
|
mix-blend-mode: plus-lighter;
|
|
@@ -411,6 +369,48 @@
|
|
|
411
369
|
padding-right: 2em;
|
|
412
370
|
}
|
|
413
371
|
}
|
|
372
|
+
|
|
373
|
+
.-DaA0W_horizontalLayout {
|
|
374
|
+
--hide-lyric-left: 61.1111%;
|
|
375
|
+
grid-template-rows: [-DaA0W_drag-area] minmax(30px, .45fr)[-DaA0W_thumb] auto[-DaA0W_cover] auto[-DaA0W_music-info] 3fr[-DaA0W_buttom-controls] 0fr .3fr;
|
|
376
|
+
grid-template-columns: [-DaA0W_info-side] .45fr[-DaA0W_player-side] .55fr[-DaA0W_side-controls] 0fr;
|
|
377
|
+
gap: 8px;
|
|
378
|
+
width: 100%;
|
|
379
|
+
height: 100%;
|
|
380
|
+
transition: all .5s ease-in-out;
|
|
381
|
+
display: grid;
|
|
382
|
+
position: relative;
|
|
383
|
+
left: 0%;
|
|
384
|
+
|
|
385
|
+
& .-DaA0W_thumb, & .-DaA0W_cover, & .-DaA0W_controls {
|
|
386
|
+
transition: left .5s cubic-bezier(.5, 0, .5, 1);
|
|
387
|
+
left: 0%;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
&.-DaA0W_hideLyric {
|
|
391
|
+
& .-DaA0W_lyric {
|
|
392
|
+
opacity: 0;
|
|
393
|
+
pointer-events: none;
|
|
394
|
+
transition: opacity .25s cubic-bezier(.5, 0, .5, 1), transform .5s cubic-bezier(.5, 0, .5, 1);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
& .-DaA0W_thumb, & .-DaA0W_cover, & .-DaA0W_controls {
|
|
398
|
+
left: var(--hide-lyric-left);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
--horizontal-layout-max-width: min(50vh, 38vw);
|
|
403
|
+
|
|
404
|
+
@media screen and (height <= 1000px) {
|
|
405
|
+
--horizontal-layout-max-width: min(45vh, 38vw);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
@media screen and (height <= 768px) {
|
|
409
|
+
grid-template-rows: [-DaA0W_drag-area] minmax(30px, .45fr)[-DaA0W_thumb] auto[-DaA0W_cover] auto[-DaA0W_music-info] 3fr[-DaA0W_buttom-controls] 0fr .2fr;
|
|
410
|
+
gap: 2px;
|
|
411
|
+
font-size: .8em;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
414
|
.SqBoeq_verticalLayout {
|
|
415
415
|
grid-template-rows: [SqBoeq_drag-area] 30px[SqBoeq_thumb] 30px[SqBoeq_main-view] 1fr[SqBoeq_control] 0fr;
|
|
416
416
|
gap: 2px;
|
|
@@ -713,7 +713,9 @@
|
|
|
713
713
|
overflow: hidden;
|
|
714
714
|
|
|
715
715
|
@media screen and (height <= 1000px) {
|
|
716
|
-
|
|
716
|
+
&.UjzbJG_horizontalControls {
|
|
717
|
+
padding: 0 0;
|
|
718
|
+
}
|
|
717
719
|
}
|
|
718
720
|
|
|
719
721
|
@media screen and (height >= 1000px) {
|
|
@@ -823,8 +825,8 @@
|
|
|
823
825
|
}
|
|
824
826
|
|
|
825
827
|
.UjzbJG_bigControls > button {
|
|
826
|
-
width: 10vh
|
|
827
|
-
height: 10vh
|
|
828
|
+
width: 10vh;
|
|
829
|
+
height: 10vh;
|
|
828
830
|
|
|
829
831
|
&:nth-child(2) > svg {
|
|
830
832
|
scale: 1.75;
|
|
@@ -877,8 +879,8 @@
|
|
|
877
879
|
transition: transform .5s .3s var(--info-timing-func-out),
|
|
878
880
|
opacity .3s .3s var(--info-timing-func-out);
|
|
879
881
|
opacity: 1;
|
|
882
|
+
font-size: clamp(1em, 2vh, 1.25em);
|
|
880
883
|
transform: translateY(0);
|
|
881
|
-
font-size: clamp(1em, 2vh, 1.25em) !important;
|
|
882
884
|
}
|
|
883
885
|
|
|
884
886
|
.UjzbJG_smallMusicInfo.UjzbJG_hideLyric {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applemusic-like-lyrics/react-full",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "AMLL 组件库的 React 绑定,但是更加完备且高度灵活",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/amll-dev/applemusic-like-lyrics.git",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"dist"
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@ungap/structured-clone": "^1.3.
|
|
50
|
+
"@ungap/structured-clone": "^1.3.3",
|
|
51
51
|
"classnames": "^2.5.1",
|
|
52
52
|
"corner-smoothing": "^0.1.5",
|
|
53
|
-
"framer-motion": "^
|
|
53
|
+
"framer-motion": "^13.0.0",
|
|
54
54
|
"react-toastify": "^11.0.5",
|
|
55
|
-
"@applemusic-like-lyrics/core": "^0.
|
|
56
|
-
"@applemusic-like-lyrics/react": "^0.
|
|
55
|
+
"@applemusic-like-lyrics/core": "^0.6.0",
|
|
56
|
+
"@applemusic-like-lyrics/react": "^0.6.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"jotai": "^2",
|
|
@@ -61,20 +61,20 @@
|
|
|
61
61
|
"react-dom": "^19"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@biomejs/biome": "^2.
|
|
64
|
+
"@biomejs/biome": "^2.5.7",
|
|
65
65
|
"@rolldown/plugin-babel": "^0.2.3",
|
|
66
66
|
"@svgr/core": "^8.1.0",
|
|
67
67
|
"@svgr/plugin-jsx": "^8.1.0",
|
|
68
|
-
"@tsdown/css": "^0.
|
|
69
|
-
"@types/react": "^19.2.
|
|
70
|
-
"@types/react-dom": "^19.2.
|
|
68
|
+
"@tsdown/css": "^0.22.14",
|
|
69
|
+
"@types/react": "^19.2.18",
|
|
70
|
+
"@types/react-dom": "^19.2.4",
|
|
71
71
|
"@types/ungap__structured-clone": "^1.2.0",
|
|
72
72
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
73
|
-
"jotai-babel": "^0.
|
|
73
|
+
"jotai-babel": "^0.3.0",
|
|
74
74
|
"react-compiler-runtime": "^1.0.0",
|
|
75
|
-
"tsdown": "^0.
|
|
76
|
-
"typedoc": "^0.28.
|
|
77
|
-
"typedoc-plugin-markdown": "^4.
|
|
75
|
+
"tsdown": "^0.22.14",
|
|
76
|
+
"typedoc": "^0.28.20",
|
|
77
|
+
"typedoc-plugin-markdown": "^4.12.0"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"build:docs": "typedoc --plugin typedoc-plugin-markdown --out docs src/index.ts",
|