react-modern-audio-player 1.0.1 → 1.1.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.
- package/README.md +20 -17
- package/dist/index.cjs +68 -158
- package/dist/index.css +1 -1
- package/dist/index.es.js +61 -144
- package/dist/types/components/AudioPlayer/Context/StateContext/element.d.ts +1 -0
- package/dist/types/components/AudioPlayer/Context/StateContext/placement.d.ts +1 -1
- package/dist/types/components/Dropdown/Dropdown.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -88,7 +88,7 @@ Prop | Type | Default
|
|
|
88
88
|
--- | --- | ---
|
|
89
89
|
`playList` | [PlayList](#playlist) | [ ]
|
|
90
90
|
`audioInitialState` | [AudioInitialState](#audioinitialstate) | isPlaying: false </br>repeatType: "ALL" </br>volume: 1
|
|
91
|
-
`activeUI` | [ActiveUI](#activeui) | playButton : true
|
|
91
|
+
`activeUI` | [ActiveUI](#activeui) | playButton : true <br/> volumeSlider: true
|
|
92
92
|
`customIcons` | [CustomIcons](#customicons) | undefined
|
|
93
93
|
`coverImgsCss` | [CoverImgsCss](#coverimgscss) | undefined
|
|
94
94
|
`placement` | [Placement](#placement) | playListPlacement : "bottom" </br>interfacePlacement :[DefaultInterfacePlacement](#default-interface-placement)
|
|
@@ -134,6 +134,7 @@ type ActiveUI = {
|
|
|
134
134
|
playList: PlayListUI;
|
|
135
135
|
prevNnext: boolean;
|
|
136
136
|
volume: boolean;
|
|
137
|
+
volumeSlider: boolean;
|
|
137
138
|
repeatType: boolean;
|
|
138
139
|
trackTime: TrackTimeUI;
|
|
139
140
|
trackInfo: boolean;
|
|
@@ -245,23 +246,25 @@ const defaultInterfacePlacement = {
|
|
|
245
246
|
### color variables
|
|
246
247
|
|
|
247
248
|
```tsx
|
|
249
|
+
--rm-audio-player-interface-container:var(--spectrum-global-color-gray-100);
|
|
248
250
|
--rm-audio-player-volume-background: #ccc;
|
|
249
|
-
--rm-audio-player-volume-panel-background
|
|
250
|
-
--rm-audio-player-volume-panel-border
|
|
251
|
-
--rm-audio-player-volume-thumb: #
|
|
252
|
-
--rm-audio-player-volume-fill:
|
|
253
|
-
--rm-audio-player-volume-track
|
|
254
|
-
--rm-audio-player-track-current-time
|
|
255
|
-
--rm-audio-player-track-duration
|
|
256
|
-
--rm-audio-player-progress-bar
|
|
257
|
-
--rm-audio-player-progress-bar-background
|
|
258
|
-
--rm-audio-player-waveform-cursor:
|
|
259
|
-
--rm-audio-player-waveform-background:
|
|
260
|
-
--rm-audio-player-waveform-bar:
|
|
261
|
-
--rm-audio-player-sortable-list-
|
|
262
|
-
--rm-audio-player-
|
|
263
|
-
|
|
264
|
-
|
|
251
|
+
--rm-audio-player-volume-panel-background:#f2f2f2;
|
|
252
|
+
--rm-audio-player-volume-panel-border:#ccc;
|
|
253
|
+
--rm-audio-player-volume-thumb: #d3d3d3;
|
|
254
|
+
--rm-audio-player-volume-fill:rgba(0, 0, 0, 0.5);
|
|
255
|
+
--rm-audio-player-volume-track:#ababab;
|
|
256
|
+
--rm-audio-player-track-current-time:#0072F5;
|
|
257
|
+
--rm-audio-player-track-duration:#8c8c8c;
|
|
258
|
+
--rm-audio-player-progress-bar:#0072F5;
|
|
259
|
+
--rm-audio-player-progress-bar-background:#D1D1D1;
|
|
260
|
+
--rm-audio-player-waveform-cursor:var(--spectrum-global-color-gray-800);
|
|
261
|
+
--rm-audio-player-waveform-background:var(--rm-audio-player-progress-bar-background);
|
|
262
|
+
--rm-audio-player-waveform-bar:var(--rm-audio-player-progress-bar);
|
|
263
|
+
--rm-audio-player-sortable-list:var(--spectrum-global-color-gray-200);
|
|
264
|
+
--rm-audio-player-sortable-list-button-active:#0072F5;
|
|
265
|
+
--rm-audio-player-selected-list-item-background:var(--spectrum-global-color-gray-500);
|
|
266
|
+
|
|
267
|
+
// ...spectrum theme palette and so on... //
|
|
265
268
|
```
|
|
266
269
|
|
|
267
270
|
# ****Example****
|