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 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: #f2f2f2;
250
- --rm-audio-player-volume-panel-border: #ccc;
251
- --rm-audio-player-volume-thumb: #e5e5e5;
252
- --rm-audio-player-volume-fill: rgba(0, 0, 0, 0.5);
253
- --rm-audio-player-volume-track: #ababab;
254
- --rm-audio-player-track-current-time: #0072F5;
255
- --rm-audio-player-track-duration: #8c8c8c;
256
- --rm-audio-player-progress-bar: #0072F5;
257
- --rm-audio-player-progress-bar-background: #D1D1D1;
258
- --rm-audio-player-waveform-cursor: var(--spectrum-alias-text-color);
259
- --rm-audio-player-waveform-background: var(--rm-audio-player-progress-bar-background);
260
- --rm-audio-player-waveform-bar: var(--rm-audio-player-progress-bar);
261
- --rm-audio-player-sortable-list-button-active: #0072F5;
262
- --rm-audio-player-selected-list-item-background: var(--spectrum-alias-border-color);
263
-
264
- // ...spectrim theme palette and so on... //
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****