@popmenu/common-ui 0.26.0 → 0.28.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popmenu/common-ui",
3
- "version": "0.26.0",
3
+ "version": "0.28.1",
4
4
  "license": "MIT",
5
5
  "author": "Popmenu Design System Team",
6
6
  "description": "React components for all Popmenu apps on the web.",
@@ -29,5 +29,6 @@
29
29
  "devDependencies": {
30
30
  "@types/classnames": "^2.3.1"
31
31
  },
32
- "sideEffects": false
32
+ "sideEffects": false,
33
+ "gitHead": "e62689769771eb3496a84c791750bf29ebbf7ea0"
33
34
  }
package/CHANGELOG.md DELETED
@@ -1,415 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [0.26.0](https://github.com/Popmenu/component-library/compare/v0.25.1...v0.26.0) (2022-06-22)
7
-
8
- **Note:** Version bump only for package @popmenu/common-ui
9
-
10
-
11
-
12
-
13
-
14
- ## [0.25.1](https://github.com/Popmenu/component-library/compare/v0.25.0...v0.25.1) (2022-06-15)
15
-
16
- **Note:** Version bump only for package @popmenu/common-ui
17
-
18
-
19
-
20
-
21
-
22
- # [0.25.0](https://github.com/Popmenu/component-library/compare/v0.24.1...v0.25.0) (2022-06-14)
23
-
24
-
25
- ### Features
26
-
27
- * tabs and pages ([7f3bfc8](https://github.com/Popmenu/component-library/commit/7f3bfc8811f38e94c368a1ed0712f5b3b42d7b63))
28
-
29
-
30
-
31
-
32
-
33
- # [0.24.0](https://github.com/Popmenu/component-library/compare/v0.23.0...v0.24.0) (2022-05-04)
34
-
35
-
36
- ### Features
37
-
38
- * added weight prop to Typography ([01d3a59](https://github.com/Popmenu/component-library/commit/01d3a593b65ed4e92cee8918eec72f6e44514582))
39
-
40
-
41
-
42
-
43
-
44
- # [0.23.0](https://github.com/Popmenu/component-library/compare/v0.22.0...v0.23.0) (2022-05-03)
45
-
46
- **Note:** Version bump only for package @popmenu/common-ui
47
-
48
-
49
-
50
-
51
-
52
- # [0.22.0](https://github.com/Popmenu/component-library/compare/v0.21.1...v0.22.0) (2022-04-25)
53
-
54
-
55
- ### Features
56
-
57
- * init NumberField component ([6bc4094](https://github.com/Popmenu/component-library/commit/6bc4094b61ce7c390d246609c7f8c37690029f62))
58
-
59
-
60
-
61
-
62
-
63
- # [0.21.0](https://github.com/Popmenu/component-library/compare/v0.20.0...v0.21.0) (2022-03-17)
64
-
65
- **Note:** Version bump only for package @popmenu/common-ui
66
-
67
-
68
-
69
-
70
-
71
- # [0.20.0](https://github.com/Popmenu/component-library/compare/v0.19.5...v0.20.0) (2022-03-16)
72
-
73
- **Note:** Version bump only for package @popmenu/common-ui
74
-
75
-
76
-
77
-
78
-
79
- ## [0.19.5](https://github.com/Popmenu/component-library/compare/v0.19.4...v0.19.5) (2022-03-07)
80
-
81
- **Note:** Version bump only for package @popmenu/common-ui
82
-
83
-
84
-
85
-
86
-
87
- ## [0.19.4](https://github.com/Popmenu/component-library/compare/v0.19.3...v0.19.4) (2022-02-23)
88
-
89
- **Note:** Version bump only for package @popmenu/common-ui
90
-
91
-
92
-
93
-
94
-
95
- ## [0.19.2](https://github.com/Popmenu/component-library/compare/v0.19.1...v0.19.2) (2022-02-15)
96
-
97
- **Note:** Version bump only for package @popmenu/common-ui
98
-
99
-
100
-
101
-
102
-
103
- ## [0.19.1](https://github.com/Popmenu/component-library/compare/v0.19.0...v0.19.1) (2022-02-14)
104
-
105
- **Note:** Version bump only for package @popmenu/common-ui
106
-
107
-
108
-
109
-
110
-
111
- # [0.19.0](https://github.com/Popmenu/component-library/compare/v0.19.0-alpha.0...v0.19.0) (2022-02-11)
112
-
113
- **Note:** Version bump only for package @popmenu/common-ui
114
-
115
-
116
-
117
-
118
-
119
- ## [0.18.4-alpha.4](https://github.com/Popmenu/component-library/compare/v0.18.4-alpha.3...v0.18.4-alpha.4) (2022-02-10)
120
-
121
- **Note:** Version bump only for package @popmenu/common-ui
122
-
123
-
124
-
125
-
126
-
127
- ## [0.18.4-alpha.2](https://github.com/Popmenu/component-library/compare/v0.18.4-alpha.1...v0.18.4-alpha.2) (2022-02-10)
128
-
129
- **Note:** Version bump only for package @popmenu/common-ui
130
-
131
-
132
-
133
-
134
-
135
- ## [0.18.4-alpha.1](https://github.com/Popmenu/component-library/compare/v0.18.4-alpha.0...v0.18.4-alpha.1) (2022-02-09)
136
-
137
- **Note:** Version bump only for package @popmenu/common-ui
138
-
139
-
140
-
141
-
142
-
143
- ## [0.18.4-alpha.0](https://github.com/Popmenu/component-library/compare/v0.18.3...v0.18.4-alpha.0) (2022-02-09)
144
-
145
- **Note:** Version bump only for package @popmenu/common-ui
146
-
147
-
148
-
149
-
150
-
151
- ## [0.18.3](https://github.com/Popmenu/component-library/compare/v0.18.3-alpha.1...v0.18.3) (2022-02-08)
152
-
153
- **Note:** Version bump only for package @popmenu/common-ui
154
-
155
-
156
-
157
-
158
-
159
- ## [0.18.3-alpha.1](https://github.com/Popmenu/component-library/compare/v0.18.3-alpha.0...v0.18.3-alpha.1) (2022-02-07)
160
-
161
- **Note:** Version bump only for package @popmenu/common-ui
162
-
163
-
164
-
165
-
166
-
167
- ## [0.18.3-alpha.0](https://github.com/Popmenu/component-library/compare/v0.18.2...v0.18.3-alpha.0) (2022-02-07)
168
-
169
- **Note:** Version bump only for package @popmenu/common-ui
170
-
171
-
172
-
173
-
174
-
175
- ## [0.18.2](https://github.com/Popmenu/component-library/compare/v0.18.1...v0.18.2) (2022-02-07)
176
-
177
- **Note:** Version bump only for package @popmenu/common-ui
178
-
179
-
180
-
181
-
182
-
183
- ## [0.18.1](https://github.com/Popmenu/component-library/compare/v0.18.0...v0.18.1) (2022-02-03)
184
-
185
-
186
- ### Bug Fixes
187
-
188
- * **Box:** rollback ([53c538b](https://github.com/Popmenu/component-library/commit/53c538b97dc08c25d86555e3483d7a3a0dedf003))
189
-
190
-
191
-
192
-
193
-
194
- # [0.18.0](https://github.com/Popmenu/component-library/compare/v0.17.0...v0.18.0) (2022-02-02)
195
-
196
-
197
- ### Bug Fixes
198
-
199
- * **audioplayer:** audioPlayer resets after complete playthrough ([580ec73](https://github.com/Popmenu/component-library/commit/580ec73dc413dab6aaa5f19a1d5e06b59efd38fc))
200
-
201
-
202
- ### Features
203
-
204
- * **table:** added tertiary action, enableMinHeightProp ([b9d143d](https://github.com/Popmenu/component-library/commit/b9d143dc1601459df7e47c525e5eef555a032789))
205
-
206
-
207
-
208
-
209
-
210
- # [0.17.0](https://github.com/Popmenu/component-library/compare/v0.16.0...v0.17.0) (2022-02-01)
211
-
212
-
213
- ### Features
214
-
215
- * init AudioPlayer ([86223d7](https://github.com/Popmenu/component-library/commit/86223d7ea4fa46ebbd9bb4bc62350d2bced3c260))
216
-
217
-
218
-
219
-
220
-
221
- # [0.16.0](https://github.com/Popmenu/component-library/compare/v0.15.0...v0.16.0) (2022-01-26)
222
-
223
-
224
- ### Features
225
-
226
- * added batch of as-is material-ui exports ([3bbb0a0](https://github.com/Popmenu/component-library/commit/3bbb0a0d8243734a6f632505d64390f30e82e9b3))
227
- * init tables ([bee5ed8](https://github.com/Popmenu/component-library/commit/bee5ed8f2114f980e0ad793e02e49e23b060c650))
228
-
229
-
230
-
231
-
232
-
233
- # [0.16.0-alpha.0](https://github.com/Popmenu/component-library/compare/v0.15.0...v0.16.0-alpha.0) (2022-01-25)
234
-
235
-
236
- ### Features
237
-
238
- * init table component ([755238f](https://github.com/Popmenu/component-library/commit/755238fa522e24bea34d4cb78529dbac97bea506))
239
- * **table:** init table ([f3afdba](https://github.com/Popmenu/component-library/commit/f3afdba4263085d25718d1d797e466d2b9658d19))
240
-
241
-
242
-
243
- ## [0.1.4](https://github.com/Popmenu/component-library/compare/v0.1.4-alpha.4...v0.1.4) (2021-07-26)
244
-
245
-
246
-
247
-
248
-
249
- # [0.15.0](https://github.com/Popmenu/component-library/compare/v0.14.0...v0.15.0) (2022-01-11)
250
-
251
- ### Features
252
-
253
- - add gap prop ([5855b75](https://github.com/Popmenu/component-library/commit/5855b7544bceaab9f578f56347d0ab118f4ddd25))
254
-
255
- # [0.14.0](https://github.com/Popmenu/component-library/compare/v0.13.1...v0.14.0) (2022-01-07)
256
-
257
- ### Features
258
-
259
- - add PaperContent ([7ca28bf](https://github.com/Popmenu/component-library/commit/7ca28bf87a251779060a283ef21ca4056a485cb3))
260
-
261
- ## [0.13.1](https://github.com/Popmenu/component-library/compare/v0.13.0...v0.13.1) (2022-01-07)
262
-
263
- ### Bug Fixes
264
-
265
- - match legacy styles for paper component ([0632488](https://github.com/Popmenu/component-library/commit/0632488df95d3b0ec3c848b0e07058c9820da326))
266
- - match legacyStyles for paper component ([00be6c4](https://github.com/Popmenu/component-library/commit/00be6c4f5f9a6e902f856dab20a0d9a56b2437f8))
267
-
268
- # [0.13.0](https://github.com/Popmenu/component-library/compare/v0.12.0...v0.13.0) (2022-01-07)
269
-
270
- ### Features
271
-
272
- - added legacyStyles prop ([#31](https://github.com/Popmenu/component-library/issues/31)) ([97d8691](https://github.com/Popmenu/component-library/commit/97d869113d7701df9ad879e4d77a7ac69fa4e7cb))
273
-
274
- # [0.12.0](https://github.com/Popmenu/component-library/compare/v0.11.1...v0.12.0) (2021-12-10)
275
-
276
- ### Features
277
-
278
- - add default styles for Paper ([f71a565](https://github.com/Popmenu/component-library/commit/f71a565c2b93b220619c113f432ee09d29ba918d))
279
-
280
- ## [0.11.1](https://github.com/Popmenu/component-library/compare/v0.11.0...v0.11.1) (2021-12-07)
281
-
282
- **Note:** Version bump only for package @popmenu/common-ui
283
-
284
- # [0.11.0](https://github.com/Popmenu/component-library/compare/v0.10.2...v0.11.0) (2021-11-22)
285
-
286
- ### Features
287
-
288
- - prepare Icon for adoption ([d94311a](https://github.com/Popmenu/component-library/commit/d94311ac9f1c2f41e4aa8136c9e60131c26ce181))
289
-
290
- # [0.10.0](https://github.com/Popmenu/component-library/compare/v0.9.0...v0.10.0) (2021-11-01)
291
-
292
- ### Features
293
-
294
- - init new Icon component ([19c6d8c](https://github.com/Popmenu/component-library/commit/19c6d8cff6229563361de4c537377abe35f75907))
295
-
296
- # [0.9.0](https://github.com/Popmenu/component-library/compare/v0.8.0...v0.9.0) (2021-10-21)
297
-
298
- ### Features
299
-
300
- - Init icons packages ([#23](https://github.com/Popmenu/component-library/issues/23)) ([9adfc75](https://github.com/Popmenu/component-library/commit/9adfc75e25dc3e71a179496d2d8803f84a6e0444))
301
-
302
- # [0.8.0](https://github.com/Popmenu/component-library/compare/v0.7.6...v0.8.0) (2021-10-18)
303
-
304
- ### Features
305
-
306
- - init CollapsibleText ([00382ab](https://github.com/Popmenu/component-library/commit/00382abed6c536045291e8b7a159192754bb8b03))
307
- - init Divider ([dc12cdd](https://github.com/Popmenu/component-library/commit/dc12cdd033c7671e58c64b1e093acd1299511b06))
308
-
309
- ## [0.7.6](https://github.com/Popmenu/component-library/compare/v0.7.5...v0.7.6) (2021-10-14)
310
-
311
- ### Bug Fixes
312
-
313
- - solved mui classes key console error ([a07c73d](https://github.com/Popmenu/component-library/commit/a07c73dda7c81039fb56f8587fa86945adc8ccbd))
314
-
315
- ## [0.7.5](https://github.com/Popmenu/component-library/compare/v0.7.4...v0.7.5) (2021-09-14)
316
-
317
- ### Bug Fixes
318
-
319
- - enable extendable classes ([ce9907d](https://github.com/Popmenu/component-library/commit/ce9907d4dc4ed8b1c874069bbd67e993f29b6b30))
320
-
321
- ## [0.7.4](https://github.com/Popmenu/component-library/compare/v0.7.3...v0.7.4) (2021-09-14)
322
-
323
- ### Bug Fixes
324
-
325
- - re add static button class ([cd867ea](https://github.com/Popmenu/component-library/commit/cd867ea7fac3a34d7bcafcdf0cca0d063c36ca9b))
326
-
327
- ## [0.7.2](https://github.com/Popmenu/component-library/compare/v0.7.1...v0.7.2) (2021-09-13)
328
-
329
- **Note:** Version bump only for package @popmenu/common-ui
330
-
331
- ## [0.7.1](https://github.com/Popmenu/component-library/compare/v0.7.0...v0.7.1) (2021-09-13)
332
-
333
- **Note:** Version bump only for package @popmenu/common-ui
334
-
335
- # [0.7.0](https://github.com/Popmenu/component-library/compare/v0.6.4...v0.7.0) (2021-09-10)
336
-
337
- ### Features
338
-
339
- - updated button for popmenu app adoptions ([dff0bff](https://github.com/Popmenu/component-library/commit/dff0bffa8dbf1cde14cc2da864bc1fc8e81fc6e5))
340
-
341
- ## [0.6.4](https://github.com/Popmenu/component-library/compare/v0.6.3...v0.6.4) (2021-09-01)
342
-
343
- ### Bug Fixes
344
-
345
- - enable button props for actions ([f4311c3](https://github.com/Popmenu/component-library/commit/f4311c388f3478686f3eb556c9ea7a7df4c3c023))
346
-
347
- ## [0.6.3](https://github.com/Popmenu/component-library/compare/v0.6.2...v0.6.3) (2021-08-27)
348
-
349
- ### Bug Fixes
350
-
351
- - expand icon set ([73bc2b9](https://github.com/Popmenu/component-library/commit/73bc2b9cc206344bf170ef2dac421e0b60c602b1))
352
-
353
- ## [0.6.2](https://github.com/Popmenu/component-library/compare/v0.6.1...v0.6.2) (2021-08-26)
354
-
355
- ### Bug Fixes
356
-
357
- - expand icon set ([afeb997](https://github.com/Popmenu/component-library/commit/afeb9973145dc138f424cdaed5c929055c59b450))
358
-
359
- ## [0.6.1](https://github.com/Popmenu/component-library/compare/v0.6.0...v0.6.1) (2021-08-25)
360
-
361
- ### Bug Fixes
362
-
363
- - fix typography visual regression ([0bcc157](https://github.com/Popmenu/component-library/commit/0bcc15737e6c3fe811c0f28a812d9b11209c934a))
364
-
365
- # [0.6.0](https://github.com/Popmenu/component-library/compare/v0.5.0...v0.6.0) (2021-08-25)
366
-
367
- ### Bug Fixes
368
-
369
- - export unmodified ListItemIcon component ([8b29cc4](https://github.com/Popmenu/component-library/commit/8b29cc41e9221dbe85756eab0458ac9d144b865f))
370
-
371
- ### Features
372
-
373
- - icon styles ([433d1d2](https://github.com/Popmenu/component-library/commit/433d1d268bf37e84088bbf5d01e2d7d0605453ea))
374
- - typography + icon alignment ([ab7d3e3](https://github.com/Popmenu/component-library/commit/ab7d3e3c8b2e4f29afaf77221955fca1ec1d878a))
375
- - typography styles ([f353798](https://github.com/Popmenu/component-library/commit/f353798bce2a3a109090de929e7340f26a05dab9))
376
-
377
- # [0.5.0](https://github.com/Popmenu/component-library/compare/v0.4.2...v0.5.0) (2021-08-20)
378
-
379
- ### Features
380
-
381
- - listItem sub-components added ([7f1e4e5](https://github.com/Popmenu/component-library/commit/7f1e4e5e95af7093413a33c1eb3660242bc18191))
382
-
383
- ## [0.4.2](https://github.com/Popmenu/component-library/compare/v0.4.1...v0.4.2) (2021-08-17)
384
-
385
- ### Bug Fixes
386
-
387
- - completed drawer export ([3e08437](https://github.com/Popmenu/component-library/commit/3e0843724dc9da43ad3345834460c37b91058a14))
388
-
389
- ## [0.4.1](https://github.com/Popmenu/component-library/compare/v0.4.0...v0.4.1) (2021-08-17)
390
-
391
- **Note:** Version bump only for package @popmenu/common-ui
392
-
393
- # [0.4.0](https://github.com/Popmenu/component-library/compare/v0.3.2...v0.4.0) (2021-08-03)
394
-
395
- ### Features
396
-
397
- - **icon:** add clock and location-pin icons ([#17](https://github.com/Popmenu/component-library/issues/17)) ([aff3dc9](https://github.com/Popmenu/component-library/commit/aff3dc9da98f262d035dd38388ab4405ddbf9db8))
398
-
399
- ## [0.3.1](https://github.com/Popmenu/component-library/compare/v0.3.0...v0.3.1) (2021-07-30)
400
-
401
- **Note:** Version bump only for package @popmenu/common-ui
402
-
403
- # [0.3.0](https://github.com/Popmenu/component-library/compare/v0.2.2...v0.3.0) (2021-07-29)
404
-
405
- ### Features
406
-
407
- - **common:** init SplitInput component ([575ca8a](https://github.com/Popmenu/component-library/commit/575ca8a6e2bdb92a8494dae06ce5c86e8f65d252))
408
-
409
- ## [0.2.1](https://github.com/Popmenu/component-library/compare/v0.2.0...v0.2.1) (2021-07-26)
410
-
411
- **Note:** Version bump only for package @popmenu/common-ui
412
-
413
- # [0.2.0](https://github.com/Popmenu/component-library/compare/v0.1.8...v0.2.0) (2021-07-26)
414
-
415
- **Note:** Version bump only for package @popmenu/common-ui
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { AudioPlayerProps } from './AudioPlayerProps';
3
- export declare const AudioPlayer: FC<AudioPlayerProps>;
@@ -1,10 +0,0 @@
1
- declare type AudioPlayerClasses = 'root' | 'playbackToggle' | 'volumeToggle' | 'volumeSlider' | 'playbackSlider' | 'playbackText' | 'lengthText';
2
- export interface AudioPlayerProps {
3
- /** The URL of the audio to embed. */
4
- src?: string;
5
- /** style classes */
6
- classes?: {
7
- [Key in AudioPlayerClasses]?: string;
8
- };
9
- }
10
- export {};
@@ -1,2 +0,0 @@
1
- export { AudioPlayer as default } from './AudioPlayer';
2
- export { AudioPlayerProps } from './AudioPlayerProps';
@@ -1,11 +0,0 @@
1
- import { PLAYBACK_STATES, CONTROL_LABELS, AudioPlayerState, AudioPlayerEvent, VOLUME_CONTROL_STATES } from './types';
2
- export declare const initialAudioPlayerState: {
3
- playback: PLAYBACK_STATES;
4
- volumeControls: VOLUME_CONTROL_STATES;
5
- context: {
6
- volume: number;
7
- playbackButtonLabel: CONTROL_LABELS;
8
- volumeButtonLabel: CONTROL_LABELS;
9
- };
10
- };
11
- export declare const audioPlayerReducer: (state: AudioPlayerState, event: AudioPlayerEvent) => AudioPlayerState;
@@ -1 +0,0 @@
1
- export declare const formatTime: (time: number, remaning?: boolean) => string;
@@ -1,5 +0,0 @@
1
- export { audioPlayerReducer, initialAudioPlayerState } from './audioPlayerReducer';
2
- export { useVolumeIcon } from './useVolumeIcon';
3
- export { formatTime } from './formatTime';
4
- export { setupAudioRef } from './setupAudioRef';
5
- export * from './types';
@@ -1,8 +0,0 @@
1
- import { RefObject } from 'react';
2
- import { AudioPlayerEvent } from './types';
3
- interface Config {
4
- audioRef: RefObject<HTMLAudioElement>;
5
- send: (event: AudioPlayerEvent) => void;
6
- }
7
- export declare const setupAudioRef: (config: Config) => () => (() => void);
8
- export {};
@@ -1,77 +0,0 @@
1
- import { RefObject } from 'react';
2
- export declare enum AUDIO_PLAYER_EVENT_TYPES {
3
- TOGGLE_PLAYBACK = "TOGGLE_PLAYBACK",
4
- TOGGLE_VOLUME_CONTROL = "TOGGLE_VOLUME_CONTROL",
5
- TOGGLE_MUTE = "TOGGLE_MUTE",
6
- VOLUME_CHANGE = "VOLUME_CHANGE",
7
- TIME_CHANGE = "TIME_CHANGE",
8
- DURATION_CHANGE = "DURATION_CHANGE",
9
- SET_TIME = "SET_TIME",
10
- CAN_PLAY = "CAN_PLAY",
11
- RESET = "RESET"
12
- }
13
- interface SetVolumeEvent {
14
- type: AUDIO_PLAYER_EVENT_TYPES.VOLUME_CHANGE;
15
- context: Pick<AudioPlayerExtendState, 'volume'>;
16
- }
17
- interface TogglePlaybackEvent {
18
- type: AUDIO_PLAYER_EVENT_TYPES.TOGGLE_PLAYBACK;
19
- }
20
- interface ToggleVolumeControlEvent {
21
- type: AUDIO_PLAYER_EVENT_TYPES.TOGGLE_VOLUME_CONTROL;
22
- }
23
- interface TimeChangeEvent {
24
- type: AUDIO_PLAYER_EVENT_TYPES.TIME_CHANGE;
25
- context: {
26
- currentTime: number;
27
- };
28
- }
29
- interface DurationChangeEvent {
30
- type: AUDIO_PLAYER_EVENT_TYPES.DURATION_CHANGE;
31
- context: {
32
- duration: number;
33
- };
34
- }
35
- interface ToggleMuteEvent {
36
- type: AUDIO_PLAYER_EVENT_TYPES.TOGGLE_MUTE;
37
- }
38
- interface SetTimeEvent {
39
- type: AUDIO_PLAYER_EVENT_TYPES.SET_TIME;
40
- context: {
41
- time: number;
42
- };
43
- }
44
- interface CanPlayEvent {
45
- type: AUDIO_PLAYER_EVENT_TYPES.CAN_PLAY;
46
- }
47
- interface ResetEvent {
48
- type: AUDIO_PLAYER_EVENT_TYPES.RESET;
49
- }
50
- export declare type AudioPlayerEvent = TogglePlaybackEvent | ToggleVolumeControlEvent | SetVolumeEvent | TimeChangeEvent | DurationChangeEvent | ToggleMuteEvent | SetTimeEvent | CanPlayEvent | ResetEvent;
51
- export declare enum PLAYBACK_STATES {
52
- NONE = "NONE",
53
- PAUSED = "PAUSED",
54
- PLAYING = "PLAYING"
55
- }
56
- export declare enum CONTROL_LABELS {
57
- PAUSE = "PAUSE",
58
- PLAY = "PLAY",
59
- MUTE = "MUTE",
60
- UNMUTE = "UNMUTE"
61
- }
62
- export declare enum VOLUME_CONTROL_STATES {
63
- SHOW = "SHOW",
64
- HIDE = "HIDE"
65
- }
66
- export interface AudioPlayerExtendState {
67
- volume: number;
68
- audioRef: RefObject<HTMLAudioElement>;
69
- playbackButtonLabel: CONTROL_LABELS;
70
- volumeButtonLabel: CONTROL_LABELS;
71
- }
72
- export interface AudioPlayerState {
73
- playback: PLAYBACK_STATES;
74
- volumeControls: VOLUME_CONTROL_STATES;
75
- context: AudioPlayerExtendState;
76
- }
77
- export {};
@@ -1,2 +0,0 @@
1
- import { AudioPlayerState } from './types';
2
- export declare const useVolumeIcon: (state: AudioPlayerState) => string;