newskit 5.3.0 → 5.4.2

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 (775) hide show
  1. package/cjs/assistive-text/assistive-text.d.ts +1 -2
  2. package/cjs/assistive-text/assistive-text.d.ts.map +1 -1
  3. package/cjs/audio-player/audio-player.d.ts +1 -2
  4. package/cjs/audio-player/audio-player.d.ts.map +1 -1
  5. package/cjs/audio-player-composable/audio-functions.d.ts +7 -6
  6. package/cjs/audio-player-composable/audio-functions.d.ts.map +1 -1
  7. package/cjs/audio-player-composable/audio-functions.js +13 -54
  8. package/cjs/audio-player-composable/audio-functions.js.map +1 -1
  9. package/cjs/audio-player-composable/audio-player-composable.d.ts +1 -1
  10. package/cjs/audio-player-composable/audio-player-composable.d.ts.map +1 -1
  11. package/cjs/audio-player-composable/audio-player-composable.js +116 -38
  12. package/cjs/audio-player-composable/audio-player-composable.js.map +1 -1
  13. package/cjs/audio-player-composable/components/audio-element.d.ts +3 -2
  14. package/cjs/audio-player-composable/components/audio-element.d.ts.map +1 -1
  15. package/cjs/audio-player-composable/components/audio-element.js +3 -5
  16. package/cjs/audio-player-composable/components/audio-element.js.map +1 -1
  17. package/cjs/audio-player-composable/components/forward-button/defaults.d.ts +7 -0
  18. package/cjs/audio-player-composable/components/forward-button/defaults.d.ts.map +1 -0
  19. package/cjs/audio-player-composable/components/forward-button/defaults.js +8 -0
  20. package/cjs/audio-player-composable/components/forward-button/defaults.js.map +1 -0
  21. package/cjs/audio-player-composable/components/forward-button/forward-button.d.ts +3 -0
  22. package/cjs/audio-player-composable/components/forward-button/forward-button.d.ts.map +1 -0
  23. package/cjs/audio-player-composable/components/forward-button/forward-button.js +39 -0
  24. package/cjs/audio-player-composable/components/forward-button/forward-button.js.map +1 -0
  25. package/cjs/audio-player-composable/components/forward-button/index.d.ts +3 -0
  26. package/cjs/audio-player-composable/components/forward-button/index.d.ts.map +1 -0
  27. package/cjs/audio-player-composable/components/forward-button/index.js +15 -0
  28. package/cjs/audio-player-composable/components/forward-button/index.js.map +1 -0
  29. package/cjs/audio-player-composable/components/forward-button/types.d.ts +5 -0
  30. package/cjs/audio-player-composable/components/forward-button/types.d.ts.map +1 -0
  31. package/cjs/audio-player-composable/components/forward-button/types.js +3 -0
  32. package/cjs/audio-player-composable/components/forward-button/types.js.map +1 -0
  33. package/cjs/audio-player-composable/components/play-pause-button/defaults.d.ts +7 -0
  34. package/cjs/audio-player-composable/components/play-pause-button/defaults.d.ts.map +1 -0
  35. package/cjs/audio-player-composable/components/play-pause-button/defaults.js +8 -0
  36. package/cjs/audio-player-composable/components/play-pause-button/defaults.js.map +1 -0
  37. package/cjs/audio-player-composable/components/play-pause-button/play-pause-button.d.ts +1 -3
  38. package/cjs/audio-player-composable/components/play-pause-button/play-pause-button.d.ts.map +1 -1
  39. package/cjs/audio-player-composable/components/play-pause-button/play-pause-button.js +48 -17
  40. package/cjs/audio-player-composable/components/play-pause-button/play-pause-button.js.map +1 -1
  41. package/cjs/audio-player-composable/components/play-pause-button/types.d.ts +2 -6
  42. package/cjs/audio-player-composable/components/play-pause-button/types.d.ts.map +1 -1
  43. package/cjs/audio-player-composable/components/replay-button/defaults.d.ts +7 -0
  44. package/cjs/audio-player-composable/components/replay-button/defaults.d.ts.map +1 -0
  45. package/cjs/audio-player-composable/components/replay-button/defaults.js +8 -0
  46. package/cjs/audio-player-composable/components/replay-button/defaults.js.map +1 -0
  47. package/cjs/audio-player-composable/components/replay-button/index.d.ts +3 -0
  48. package/cjs/audio-player-composable/components/replay-button/index.d.ts.map +1 -0
  49. package/cjs/audio-player-composable/components/replay-button/index.js +15 -0
  50. package/cjs/audio-player-composable/components/replay-button/index.js.map +1 -0
  51. package/cjs/audio-player-composable/components/replay-button/replay-button.d.ts +3 -0
  52. package/cjs/audio-player-composable/components/replay-button/replay-button.d.ts.map +1 -0
  53. package/cjs/audio-player-composable/components/replay-button/replay-button.js +39 -0
  54. package/cjs/audio-player-composable/components/replay-button/replay-button.js.map +1 -0
  55. package/cjs/audio-player-composable/components/replay-button/types.d.ts +5 -0
  56. package/cjs/audio-player-composable/components/replay-button/types.d.ts.map +1 -0
  57. package/cjs/audio-player-composable/components/replay-button/types.js +3 -0
  58. package/cjs/audio-player-composable/components/replay-button/types.js.map +1 -0
  59. package/cjs/audio-player-composable/components/seek-bar/seek-bar.d.ts +2 -3
  60. package/cjs/audio-player-composable/components/seek-bar/seek-bar.d.ts.map +1 -1
  61. package/cjs/audio-player-composable/components/seek-bar/seek-bar.js.map +1 -1
  62. package/cjs/audio-player-composable/components/seek-bar/types.d.ts +1 -1
  63. package/cjs/audio-player-composable/components/seek-bar/types.d.ts.map +1 -1
  64. package/cjs/audio-player-composable/components/skip-next-button/defaults.d.ts +7 -0
  65. package/cjs/audio-player-composable/components/skip-next-button/defaults.d.ts.map +1 -0
  66. package/cjs/audio-player-composable/components/skip-next-button/defaults.js +8 -0
  67. package/cjs/audio-player-composable/components/skip-next-button/defaults.js.map +1 -0
  68. package/cjs/audio-player-composable/components/skip-next-button/index.d.ts +3 -0
  69. package/cjs/audio-player-composable/components/skip-next-button/index.d.ts.map +1 -0
  70. package/cjs/audio-player-composable/components/skip-next-button/index.js +15 -0
  71. package/cjs/audio-player-composable/components/skip-next-button/index.js.map +1 -0
  72. package/cjs/audio-player-composable/components/skip-next-button/skip-next-button.d.ts +2 -0
  73. package/cjs/audio-player-composable/components/skip-next-button/skip-next-button.d.ts.map +1 -0
  74. package/cjs/audio-player-composable/components/skip-next-button/skip-next-button.js +37 -0
  75. package/cjs/audio-player-composable/components/skip-next-button/skip-next-button.js.map +1 -0
  76. package/cjs/audio-player-composable/components/skip-next-button/types.d.ts +3 -0
  77. package/cjs/audio-player-composable/components/skip-next-button/types.d.ts.map +1 -0
  78. package/cjs/audio-player-composable/components/skip-next-button/types.js +3 -0
  79. package/cjs/audio-player-composable/components/skip-next-button/types.js.map +1 -0
  80. package/cjs/audio-player-composable/components/skip-previous-button/defaults.d.ts +7 -0
  81. package/cjs/audio-player-composable/components/skip-previous-button/defaults.d.ts.map +1 -0
  82. package/cjs/audio-player-composable/components/skip-previous-button/defaults.js +8 -0
  83. package/cjs/audio-player-composable/components/skip-previous-button/defaults.js.map +1 -0
  84. package/cjs/audio-player-composable/components/skip-previous-button/index.d.ts +3 -0
  85. package/cjs/audio-player-composable/components/skip-previous-button/index.d.ts.map +1 -0
  86. package/cjs/audio-player-composable/components/skip-previous-button/index.js +15 -0
  87. package/cjs/audio-player-composable/components/skip-previous-button/index.js.map +1 -0
  88. package/cjs/audio-player-composable/components/skip-previous-button/skip-previous-button.d.ts +2 -0
  89. package/cjs/audio-player-composable/components/skip-previous-button/skip-previous-button.d.ts.map +1 -0
  90. package/cjs/audio-player-composable/components/skip-previous-button/skip-previous-button.js +37 -0
  91. package/cjs/audio-player-composable/components/skip-previous-button/skip-previous-button.js.map +1 -0
  92. package/cjs/audio-player-composable/components/skip-previous-button/types.d.ts +3 -0
  93. package/cjs/audio-player-composable/components/skip-previous-button/types.d.ts.map +1 -0
  94. package/cjs/audio-player-composable/components/skip-previous-button/types.js +3 -0
  95. package/cjs/audio-player-composable/components/skip-previous-button/types.js.map +1 -0
  96. package/cjs/audio-player-composable/components/time-display/time-display.d.ts +2 -4
  97. package/cjs/audio-player-composable/components/time-display/time-display.d.ts.map +1 -1
  98. package/cjs/audio-player-composable/components/time-display/time-display.js +26 -5
  99. package/cjs/audio-player-composable/components/time-display/time-display.js.map +1 -1
  100. package/cjs/audio-player-composable/components/time-display/types.d.ts +5 -4
  101. package/cjs/audio-player-composable/components/time-display/types.d.ts.map +1 -1
  102. package/cjs/audio-player-composable/components/time-display/utils.d.ts +2 -2
  103. package/cjs/audio-player-composable/components/time-display/utils.d.ts.map +1 -1
  104. package/cjs/audio-player-composable/components/time-display/utils.js +0 -1
  105. package/cjs/audio-player-composable/components/time-display/utils.js.map +1 -1
  106. package/cjs/audio-player-composable/components/types.d.ts +9 -0
  107. package/cjs/audio-player-composable/components/types.d.ts.map +1 -0
  108. package/cjs/audio-player-composable/components/types.js +3 -0
  109. package/cjs/audio-player-composable/components/types.js.map +1 -0
  110. package/cjs/audio-player-composable/context.d.ts +4 -46
  111. package/cjs/audio-player-composable/context.d.ts.map +1 -1
  112. package/cjs/audio-player-composable/context.js.map +1 -1
  113. package/cjs/audio-player-composable/index.d.ts +8 -6
  114. package/cjs/audio-player-composable/index.d.ts.map +1 -1
  115. package/cjs/audio-player-composable/index.js +10 -10
  116. package/cjs/audio-player-composable/index.js.map +1 -1
  117. package/cjs/audio-player-composable/types.d.ts +44 -13
  118. package/cjs/audio-player-composable/types.d.ts.map +1 -1
  119. package/cjs/audio-player-composable/types.js +1 -1
  120. package/cjs/audio-player-composable/types.js.map +1 -1
  121. package/cjs/audio-player-composable/utils.d.ts +10 -0
  122. package/cjs/audio-player-composable/utils.d.ts.map +1 -1
  123. package/cjs/audio-player-composable/utils.js +33 -1
  124. package/cjs/audio-player-composable/utils.js.map +1 -1
  125. package/cjs/banner/banner.d.ts +1 -2
  126. package/cjs/banner/banner.d.ts.map +1 -1
  127. package/cjs/button/button.d.ts +1 -1
  128. package/cjs/button/button.d.ts.map +1 -1
  129. package/cjs/byline/byline.d.ts +1 -2
  130. package/cjs/byline/byline.d.ts.map +1 -1
  131. package/cjs/caption/caption-inset.d.ts +1 -2
  132. package/cjs/caption/caption-inset.d.ts.map +1 -1
  133. package/cjs/caption/caption.d.ts +1 -2
  134. package/cjs/caption/caption.d.ts.map +1 -1
  135. package/cjs/card/card-inset.d.ts +1 -1
  136. package/cjs/card/card-inset.d.ts.map +1 -1
  137. package/cjs/card/card.d.ts +1 -1
  138. package/cjs/card/card.d.ts.map +1 -1
  139. package/cjs/checkbox/checkbox.d.ts +1 -1
  140. package/cjs/checkbox/checkbox.d.ts.map +1 -1
  141. package/cjs/date-time/date-time.d.ts +1 -2
  142. package/cjs/date-time/date-time.d.ts.map +1 -1
  143. package/cjs/dialog/base-dialog-tests.d.ts.map +1 -1
  144. package/cjs/dialog/base-dialog-tests.js +3 -1
  145. package/cjs/dialog/base-dialog-tests.js.map +1 -1
  146. package/cjs/dialog/types.d.ts +1 -1
  147. package/cjs/dialog/types.d.ts.map +1 -1
  148. package/cjs/divider/divider.d.ts +1 -2
  149. package/cjs/divider/divider.d.ts.map +1 -1
  150. package/cjs/drawer/drawer.d.ts +1 -2
  151. package/cjs/drawer/drawer.d.ts.map +1 -1
  152. package/cjs/fieldset/fieldset.d.ts +1 -2
  153. package/cjs/fieldset/fieldset.d.ts.map +1 -1
  154. package/cjs/flag/flag.d.ts +1 -1
  155. package/cjs/form/form-entry.d.ts.map +1 -1
  156. package/cjs/form/form-entry.js +2 -2
  157. package/cjs/form/form-entry.js.map +1 -1
  158. package/cjs/form/form-input.d.ts +1 -1
  159. package/cjs/form/form-input.d.ts.map +1 -1
  160. package/cjs/form/form-input.js +5 -8
  161. package/cjs/form/form-input.js.map +1 -1
  162. package/cjs/grid/cell.d.ts +1 -2
  163. package/cjs/grid/cell.d.ts.map +1 -1
  164. package/cjs/grid/grid.d.ts +1 -2
  165. package/cjs/grid/grid.d.ts.map +1 -1
  166. package/cjs/grid-layout/styled.d.ts +2 -1
  167. package/cjs/grid-layout/styled.d.ts.map +1 -1
  168. package/cjs/grid-layout/types.d.ts +2 -1
  169. package/cjs/grid-layout/types.d.ts.map +1 -1
  170. package/cjs/headline/headline.d.ts +1 -2
  171. package/cjs/headline/headline.d.ts.map +1 -1
  172. package/cjs/icons/filled/{material/icon-filled-forward10.d.ts → custom/icon-filled-forward-10.d.ts} +1 -1
  173. package/cjs/icons/filled/custom/icon-filled-forward-10.d.ts.map +1 -0
  174. package/cjs/icons/filled/custom/icon-filled-forward-10.js +23 -0
  175. package/cjs/icons/filled/custom/icon-filled-forward-10.js.map +1 -0
  176. package/cjs/icons/filled/custom/icon-filled-forward-15.d.ts +2 -0
  177. package/cjs/icons/filled/custom/icon-filled-forward-15.d.ts.map +1 -0
  178. package/cjs/icons/filled/custom/icon-filled-forward-15.js +23 -0
  179. package/cjs/icons/filled/custom/icon-filled-forward-15.js.map +1 -0
  180. package/cjs/icons/filled/custom/icon-filled-forward-20.d.ts +2 -0
  181. package/cjs/icons/filled/custom/icon-filled-forward-20.d.ts.map +1 -0
  182. package/cjs/icons/filled/custom/icon-filled-forward-20.js +23 -0
  183. package/cjs/icons/filled/custom/icon-filled-forward-20.js.map +1 -0
  184. package/cjs/icons/filled/custom/icon-filled-forward-25.d.ts +2 -0
  185. package/cjs/icons/filled/custom/icon-filled-forward-25.d.ts.map +1 -0
  186. package/cjs/icons/filled/custom/icon-filled-forward-25.js +23 -0
  187. package/cjs/icons/filled/custom/icon-filled-forward-25.js.map +1 -0
  188. package/{esm/icons/filled/material/icon-filled-forward30.d.ts → cjs/icons/filled/custom/icon-filled-forward-30.d.ts} +1 -1
  189. package/cjs/icons/filled/custom/icon-filled-forward-30.d.ts.map +1 -0
  190. package/cjs/icons/filled/custom/icon-filled-forward-30.js +23 -0
  191. package/cjs/icons/filled/custom/icon-filled-forward-30.js.map +1 -0
  192. package/cjs/icons/filled/{material/icon-filled-forward5.d.ts → custom/icon-filled-forward-5.d.ts} +1 -1
  193. package/cjs/icons/filled/custom/icon-filled-forward-5.d.ts.map +1 -0
  194. package/cjs/icons/filled/custom/icon-filled-forward-5.js +23 -0
  195. package/cjs/icons/filled/custom/icon-filled-forward-5.js.map +1 -0
  196. package/{esm/icons/filled/material/icon-filled-replay10.d.ts → cjs/icons/filled/custom/icon-filled-replay-10.d.ts} +1 -1
  197. package/cjs/icons/filled/custom/icon-filled-replay-10.d.ts.map +1 -0
  198. package/cjs/icons/filled/custom/icon-filled-replay-10.js +23 -0
  199. package/cjs/icons/filled/custom/icon-filled-replay-10.js.map +1 -0
  200. package/cjs/icons/filled/custom/icon-filled-replay-15.d.ts +2 -0
  201. package/cjs/icons/filled/custom/icon-filled-replay-15.d.ts.map +1 -0
  202. package/cjs/icons/filled/custom/icon-filled-replay-15.js +23 -0
  203. package/cjs/icons/filled/custom/icon-filled-replay-15.js.map +1 -0
  204. package/cjs/icons/filled/custom/icon-filled-replay-20.d.ts +2 -0
  205. package/cjs/icons/filled/custom/icon-filled-replay-20.d.ts.map +1 -0
  206. package/cjs/icons/filled/custom/icon-filled-replay-20.js +23 -0
  207. package/cjs/icons/filled/custom/icon-filled-replay-20.js.map +1 -0
  208. package/cjs/icons/filled/custom/icon-filled-replay-25.d.ts +2 -0
  209. package/cjs/icons/filled/custom/icon-filled-replay-25.d.ts.map +1 -0
  210. package/cjs/icons/filled/custom/icon-filled-replay-25.js +23 -0
  211. package/cjs/icons/filled/custom/icon-filled-replay-25.js.map +1 -0
  212. package/{esm/icons/filled/material/icon-filled-replay30.d.ts → cjs/icons/filled/custom/icon-filled-replay-30.d.ts} +1 -1
  213. package/cjs/icons/filled/custom/icon-filled-replay-30.d.ts.map +1 -0
  214. package/cjs/icons/filled/custom/icon-filled-replay-30.js +23 -0
  215. package/cjs/icons/filled/custom/icon-filled-replay-30.js.map +1 -0
  216. package/cjs/icons/filled/{material/icon-filled-replay5.d.ts → custom/icon-filled-replay-5.d.ts} +1 -1
  217. package/cjs/icons/filled/custom/icon-filled-replay-5.d.ts.map +1 -0
  218. package/cjs/icons/filled/custom/icon-filled-replay-5.js +23 -0
  219. package/cjs/icons/filled/custom/icon-filled-replay-5.js.map +1 -0
  220. package/cjs/icons/filled/custom/indeterminate-progress-indicator.d.ts +1 -2
  221. package/cjs/icons/filled/custom/indeterminate-progress-indicator.d.ts.map +1 -1
  222. package/cjs/icons/filled/custom/index.d.ts +12 -0
  223. package/cjs/icons/filled/custom/index.d.ts.map +1 -1
  224. package/cjs/icons/filled/custom/index.js +12 -0
  225. package/cjs/icons/filled/custom/index.js.map +1 -1
  226. package/cjs/icons/filled/material/index.d.ts +0 -6
  227. package/cjs/icons/filled/material/index.js +18 -30
  228. package/cjs/icons/outlined/{material/icon-outlined-forward10.d.ts → custom/icon-outlined-forward-10.d.ts} +1 -1
  229. package/cjs/icons/outlined/custom/icon-outlined-forward-10.d.ts.map +1 -0
  230. package/cjs/icons/outlined/custom/icon-outlined-forward-10.js +23 -0
  231. package/cjs/icons/outlined/custom/icon-outlined-forward-10.js.map +1 -0
  232. package/cjs/icons/outlined/custom/icon-outlined-forward-15.d.ts +2 -0
  233. package/cjs/icons/outlined/custom/icon-outlined-forward-15.d.ts.map +1 -0
  234. package/cjs/icons/outlined/custom/icon-outlined-forward-15.js +23 -0
  235. package/cjs/icons/outlined/custom/icon-outlined-forward-15.js.map +1 -0
  236. package/cjs/icons/outlined/custom/icon-outlined-forward-20.d.ts +2 -0
  237. package/cjs/icons/outlined/custom/icon-outlined-forward-20.d.ts.map +1 -0
  238. package/cjs/icons/outlined/custom/icon-outlined-forward-20.js +23 -0
  239. package/cjs/icons/outlined/custom/icon-outlined-forward-20.js.map +1 -0
  240. package/cjs/icons/outlined/custom/icon-outlined-forward-25.d.ts +2 -0
  241. package/cjs/icons/outlined/custom/icon-outlined-forward-25.d.ts.map +1 -0
  242. package/cjs/icons/outlined/custom/icon-outlined-forward-25.js +23 -0
  243. package/cjs/icons/outlined/custom/icon-outlined-forward-25.js.map +1 -0
  244. package/cjs/icons/outlined/{material/icon-outlined-forward30.d.ts → custom/icon-outlined-forward-30.d.ts} +1 -1
  245. package/cjs/icons/outlined/custom/icon-outlined-forward-30.d.ts.map +1 -0
  246. package/cjs/icons/outlined/custom/icon-outlined-forward-30.js +23 -0
  247. package/cjs/icons/outlined/custom/icon-outlined-forward-30.js.map +1 -0
  248. package/cjs/icons/outlined/{material/icon-outlined-forward5.d.ts → custom/icon-outlined-forward-5.d.ts} +1 -1
  249. package/cjs/icons/outlined/custom/icon-outlined-forward-5.d.ts.map +1 -0
  250. package/cjs/icons/outlined/custom/icon-outlined-forward-5.js +23 -0
  251. package/cjs/icons/outlined/custom/icon-outlined-forward-5.js.map +1 -0
  252. package/{esm/icons/outlined/material/icon-outlined-replay10.d.ts → cjs/icons/outlined/custom/icon-outlined-replay-10.d.ts} +1 -1
  253. package/cjs/icons/outlined/custom/icon-outlined-replay-10.d.ts.map +1 -0
  254. package/cjs/icons/outlined/custom/icon-outlined-replay-10.js +23 -0
  255. package/cjs/icons/outlined/custom/icon-outlined-replay-10.js.map +1 -0
  256. package/cjs/icons/outlined/custom/icon-outlined-replay-15.d.ts +2 -0
  257. package/cjs/icons/outlined/custom/icon-outlined-replay-15.d.ts.map +1 -0
  258. package/cjs/icons/outlined/custom/icon-outlined-replay-15.js +23 -0
  259. package/cjs/icons/outlined/custom/icon-outlined-replay-15.js.map +1 -0
  260. package/cjs/icons/outlined/custom/icon-outlined-replay-20.d.ts +2 -0
  261. package/cjs/icons/outlined/custom/icon-outlined-replay-20.d.ts.map +1 -0
  262. package/cjs/icons/outlined/custom/icon-outlined-replay-20.js +23 -0
  263. package/cjs/icons/outlined/custom/icon-outlined-replay-20.js.map +1 -0
  264. package/cjs/icons/outlined/custom/icon-outlined-replay-25.d.ts +2 -0
  265. package/cjs/icons/outlined/custom/icon-outlined-replay-25.d.ts.map +1 -0
  266. package/cjs/icons/outlined/custom/icon-outlined-replay-25.js +23 -0
  267. package/cjs/icons/outlined/custom/icon-outlined-replay-25.js.map +1 -0
  268. package/{esm/icons/outlined/material/icon-outlined-replay30.d.ts → cjs/icons/outlined/custom/icon-outlined-replay-30.d.ts} +1 -1
  269. package/cjs/icons/outlined/custom/icon-outlined-replay-30.d.ts.map +1 -0
  270. package/cjs/icons/outlined/custom/icon-outlined-replay-30.js +23 -0
  271. package/cjs/icons/outlined/custom/icon-outlined-replay-30.js.map +1 -0
  272. package/{esm/icons/outlined/material/icon-outlined-replay5.d.ts → cjs/icons/outlined/custom/icon-outlined-replay-5.d.ts} +1 -1
  273. package/cjs/icons/outlined/custom/icon-outlined-replay-5.d.ts.map +1 -0
  274. package/cjs/icons/outlined/custom/icon-outlined-replay-5.js +23 -0
  275. package/cjs/icons/outlined/custom/icon-outlined-replay-5.js.map +1 -0
  276. package/cjs/icons/outlined/custom/index.d.ts +12 -0
  277. package/cjs/icons/outlined/custom/index.d.ts.map +1 -1
  278. package/cjs/icons/outlined/custom/index.js +12 -0
  279. package/cjs/icons/outlined/custom/index.js.map +1 -1
  280. package/cjs/icons/outlined/material/index.d.ts +0 -6
  281. package/cjs/icons/outlined/material/index.js +18 -30
  282. package/cjs/icons/to-newskit-icon.d.ts.map +1 -1
  283. package/cjs/icons/to-newskit-icon.js.map +1 -1
  284. package/cjs/image/image.d.ts +1 -2
  285. package/cjs/image/image.d.ts.map +1 -1
  286. package/cjs/inline-message/inline-message.d.ts +1 -2
  287. package/cjs/inline-message/inline-message.d.ts.map +1 -1
  288. package/cjs/label/label.d.ts +1 -2
  289. package/cjs/label/label.d.ts.map +1 -1
  290. package/cjs/link/link-inline.d.ts +1 -1
  291. package/cjs/link/link-inline.d.ts.map +1 -1
  292. package/cjs/link/link-standalone.d.ts +1 -1
  293. package/cjs/link/link-standalone.d.ts.map +1 -1
  294. package/cjs/link/link.d.ts +2 -2
  295. package/cjs/link/link.d.ts.map +1 -1
  296. package/cjs/link/utils.d.ts +1 -1
  297. package/cjs/link/utils.d.ts.map +1 -1
  298. package/cjs/menu/menu.d.ts +1 -1
  299. package/cjs/menu/menu.d.ts.map +1 -1
  300. package/cjs/modal/modal.d.ts +1 -2
  301. package/cjs/modal/modal.d.ts.map +1 -1
  302. package/cjs/ordered-list/ordered-list.d.ts +1 -2
  303. package/cjs/ordered-list/ordered-list.d.ts.map +1 -1
  304. package/cjs/overlay/overlay.d.ts +1 -2
  305. package/cjs/overlay/overlay.d.ts.map +1 -1
  306. package/cjs/radio-button/radio-button.d.ts +1 -1
  307. package/cjs/radio-button/radio-button.d.ts.map +1 -1
  308. package/cjs/scroll/scroll.d.ts +1 -1
  309. package/cjs/scroll/scroll.d.ts.map +1 -1
  310. package/cjs/scroll/scroll.js +4 -4
  311. package/cjs/scroll/scroll.js.map +1 -1
  312. package/cjs/scroll/utils.d.ts +2 -0
  313. package/cjs/scroll/utils.d.ts.map +1 -0
  314. package/cjs/scroll/utils.js +5 -0
  315. package/cjs/scroll/utils.js.map +1 -0
  316. package/cjs/select/select.d.ts +1 -1
  317. package/cjs/select/select.d.ts.map +1 -1
  318. package/cjs/share-bar/share-bar.d.ts +1 -1
  319. package/cjs/share-bar/share-bar.d.ts.map +1 -1
  320. package/cjs/slider/slider.d.ts +1 -2
  321. package/cjs/slider/slider.d.ts.map +1 -1
  322. package/cjs/slider/slider.js +2 -2
  323. package/cjs/slider/slider.js.map +1 -1
  324. package/cjs/standfirst/standfirst.d.ts +1 -2
  325. package/cjs/standfirst/standfirst.d.ts.map +1 -1
  326. package/cjs/structured-list/structured-list-item.d.ts +1 -1
  327. package/cjs/structured-list/structured-list-item.d.ts.map +1 -1
  328. package/cjs/structured-list/structured-list.d.ts +1 -1
  329. package/cjs/structured-list/structured-list.d.ts.map +1 -1
  330. package/cjs/tabs/tabs.d.ts +1 -1
  331. package/cjs/tabs/tabs.d.ts.map +1 -1
  332. package/cjs/tag/tag.d.ts +1 -2
  333. package/cjs/tag/tag.d.ts.map +1 -1
  334. package/cjs/text-field/text-field.d.ts +1 -1
  335. package/cjs/text-field/text-field.d.ts.map +1 -1
  336. package/cjs/text-input/text-input.d.ts +4 -1
  337. package/cjs/text-input/text-input.d.ts.map +1 -1
  338. package/cjs/text-input/text-input.js +5 -5
  339. package/cjs/text-input/text-input.js.map +1 -1
  340. package/cjs/theme-checker/scenarios.d.ts.map +1 -1
  341. package/cjs/theme-checker/scenarios.js +32 -0
  342. package/cjs/theme-checker/scenarios.js.map +1 -1
  343. package/cjs/title-bar/title-bar.d.ts +1 -2
  344. package/cjs/title-bar/title-bar.d.ts.map +1 -1
  345. package/cjs/toast/toast.d.ts +1 -2
  346. package/cjs/toast/toast.d.ts.map +1 -1
  347. package/cjs/typography/heading/heading.d.ts +12 -12
  348. package/cjs/typography/paragraph/paragraph.d.ts +2 -2
  349. package/cjs/unordered-list/unordered-list.d.ts +1 -2
  350. package/cjs/unordered-list/unordered-list.d.ts.map +1 -1
  351. package/cjs/utils/get-transition-duration.d.ts.map +1 -1
  352. package/cjs/utils/get-transition-duration.js +17 -0
  353. package/cjs/utils/get-transition-duration.js.map +1 -1
  354. package/cjs/utils/hooks/use-keypress.d.ts +2 -1
  355. package/cjs/utils/hooks/use-keypress.d.ts.map +1 -1
  356. package/cjs/utils/hooks/use-keypress.js +101 -31
  357. package/cjs/utils/hooks/use-keypress.js.map +1 -1
  358. package/cjs/utils/hooks/use-media-query/context.d.ts +2 -1
  359. package/cjs/utils/hooks/use-media-query/context.d.ts.map +1 -1
  360. package/cjs/utils/hooks/use-media-query/context.js.map +1 -1
  361. package/cjs/utils/style/transition-preset.d.ts +1 -1
  362. package/cjs/utils/style/transition-preset.d.ts.map +1 -1
  363. package/cjs/utils/style/transition-preset.js +40 -8
  364. package/cjs/utils/style/transition-preset.js.map +1 -1
  365. package/cjs/utils/types.d.ts +1 -0
  366. package/cjs/utils/types.d.ts.map +1 -1
  367. package/cjs/utils/with-own-theme.d.ts +4 -1
  368. package/cjs/utils/with-own-theme.d.ts.map +1 -1
  369. package/cjs/utils/with-own-theme.js +3 -1
  370. package/cjs/utils/with-own-theme.js.map +1 -1
  371. package/cjs/version-number.json +1 -1
  372. package/cjs/video-player/video-player.d.ts +1 -1
  373. package/cjs/video-player/video-player.d.ts.map +1 -1
  374. package/cjs/volume-control/volume-control.d.ts +1 -2
  375. package/cjs/volume-control/volume-control.d.ts.map +1 -1
  376. package/esm/assistive-text/assistive-text.d.ts +1 -2
  377. package/esm/assistive-text/assistive-text.d.ts.map +1 -1
  378. package/esm/audio-player/audio-player.d.ts +1 -2
  379. package/esm/audio-player/audio-player.d.ts.map +1 -1
  380. package/esm/audio-player-composable/audio-functions.d.ts +7 -6
  381. package/esm/audio-player-composable/audio-functions.d.ts.map +1 -1
  382. package/esm/audio-player-composable/audio-functions.js +13 -54
  383. package/esm/audio-player-composable/audio-functions.js.map +1 -1
  384. package/esm/audio-player-composable/audio-player-composable.d.ts +1 -1
  385. package/esm/audio-player-composable/audio-player-composable.d.ts.map +1 -1
  386. package/esm/audio-player-composable/audio-player-composable.js +117 -39
  387. package/esm/audio-player-composable/audio-player-composable.js.map +1 -1
  388. package/esm/audio-player-composable/components/audio-element.d.ts +3 -2
  389. package/esm/audio-player-composable/components/audio-element.d.ts.map +1 -1
  390. package/esm/audio-player-composable/components/audio-element.js +3 -5
  391. package/esm/audio-player-composable/components/audio-element.js.map +1 -1
  392. package/esm/audio-player-composable/components/forward-button/defaults.d.ts +7 -0
  393. package/esm/audio-player-composable/components/forward-button/defaults.d.ts.map +1 -0
  394. package/esm/audio-player-composable/components/forward-button/defaults.js +6 -0
  395. package/esm/audio-player-composable/components/forward-button/defaults.js.map +1 -0
  396. package/esm/audio-player-composable/components/forward-button/forward-button.d.ts +3 -0
  397. package/esm/audio-player-composable/components/forward-button/forward-button.d.ts.map +1 -0
  398. package/esm/audio-player-composable/components/forward-button/forward-button.js +33 -0
  399. package/esm/audio-player-composable/components/forward-button/forward-button.js.map +1 -0
  400. package/esm/audio-player-composable/components/forward-button/index.d.ts +3 -0
  401. package/esm/audio-player-composable/components/forward-button/index.d.ts.map +1 -0
  402. package/esm/audio-player-composable/components/forward-button/index.js +3 -0
  403. package/esm/audio-player-composable/components/forward-button/index.js.map +1 -0
  404. package/esm/audio-player-composable/components/forward-button/types.d.ts +5 -0
  405. package/esm/audio-player-composable/components/forward-button/types.d.ts.map +1 -0
  406. package/esm/audio-player-composable/components/forward-button/types.js +2 -0
  407. package/esm/audio-player-composable/components/forward-button/types.js.map +1 -0
  408. package/esm/audio-player-composable/components/play-pause-button/defaults.d.ts +7 -0
  409. package/esm/audio-player-composable/components/play-pause-button/defaults.d.ts.map +1 -0
  410. package/esm/audio-player-composable/components/play-pause-button/defaults.js +6 -0
  411. package/esm/audio-player-composable/components/play-pause-button/defaults.js.map +1 -0
  412. package/esm/audio-player-composable/components/play-pause-button/play-pause-button.d.ts +1 -3
  413. package/esm/audio-player-composable/components/play-pause-button/play-pause-button.d.ts.map +1 -1
  414. package/esm/audio-player-composable/components/play-pause-button/play-pause-button.js +30 -18
  415. package/esm/audio-player-composable/components/play-pause-button/play-pause-button.js.map +1 -1
  416. package/esm/audio-player-composable/components/play-pause-button/types.d.ts +2 -6
  417. package/esm/audio-player-composable/components/play-pause-button/types.d.ts.map +1 -1
  418. package/esm/audio-player-composable/components/replay-button/defaults.d.ts +7 -0
  419. package/esm/audio-player-composable/components/replay-button/defaults.d.ts.map +1 -0
  420. package/esm/audio-player-composable/components/replay-button/defaults.js +6 -0
  421. package/esm/audio-player-composable/components/replay-button/defaults.js.map +1 -0
  422. package/esm/audio-player-composable/components/replay-button/index.d.ts +3 -0
  423. package/esm/audio-player-composable/components/replay-button/index.d.ts.map +1 -0
  424. package/esm/audio-player-composable/components/replay-button/index.js +3 -0
  425. package/esm/audio-player-composable/components/replay-button/index.js.map +1 -0
  426. package/esm/audio-player-composable/components/replay-button/replay-button.d.ts +3 -0
  427. package/esm/audio-player-composable/components/replay-button/replay-button.d.ts.map +1 -0
  428. package/esm/audio-player-composable/components/replay-button/replay-button.js +33 -0
  429. package/esm/audio-player-composable/components/replay-button/replay-button.js.map +1 -0
  430. package/esm/audio-player-composable/components/replay-button/types.d.ts +5 -0
  431. package/esm/audio-player-composable/components/replay-button/types.d.ts.map +1 -0
  432. package/esm/audio-player-composable/components/replay-button/types.js +2 -0
  433. package/esm/audio-player-composable/components/replay-button/types.js.map +1 -0
  434. package/esm/audio-player-composable/components/seek-bar/seek-bar.d.ts +2 -3
  435. package/esm/audio-player-composable/components/seek-bar/seek-bar.d.ts.map +1 -1
  436. package/esm/audio-player-composable/components/seek-bar/seek-bar.js.map +1 -1
  437. package/esm/audio-player-composable/components/seek-bar/types.d.ts +1 -1
  438. package/esm/audio-player-composable/components/seek-bar/types.d.ts.map +1 -1
  439. package/esm/audio-player-composable/components/skip-next-button/defaults.d.ts +7 -0
  440. package/esm/audio-player-composable/components/skip-next-button/defaults.d.ts.map +1 -0
  441. package/esm/audio-player-composable/components/skip-next-button/defaults.js +6 -0
  442. package/esm/audio-player-composable/components/skip-next-button/defaults.js.map +1 -0
  443. package/esm/audio-player-composable/components/skip-next-button/index.d.ts +3 -0
  444. package/esm/audio-player-composable/components/skip-next-button/index.d.ts.map +1 -0
  445. package/esm/audio-player-composable/components/skip-next-button/index.js +3 -0
  446. package/esm/audio-player-composable/components/skip-next-button/index.js.map +1 -0
  447. package/esm/audio-player-composable/components/skip-next-button/skip-next-button.d.ts +2 -0
  448. package/esm/audio-player-composable/components/skip-next-button/skip-next-button.d.ts.map +1 -0
  449. package/esm/audio-player-composable/components/skip-next-button/skip-next-button.js +31 -0
  450. package/esm/audio-player-composable/components/skip-next-button/skip-next-button.js.map +1 -0
  451. package/esm/audio-player-composable/components/skip-next-button/types.d.ts +3 -0
  452. package/esm/audio-player-composable/components/skip-next-button/types.d.ts.map +1 -0
  453. package/esm/audio-player-composable/components/skip-next-button/types.js +2 -0
  454. package/esm/audio-player-composable/components/skip-next-button/types.js.map +1 -0
  455. package/esm/audio-player-composable/components/skip-previous-button/defaults.d.ts +7 -0
  456. package/esm/audio-player-composable/components/skip-previous-button/defaults.d.ts.map +1 -0
  457. package/esm/audio-player-composable/components/skip-previous-button/defaults.js +6 -0
  458. package/esm/audio-player-composable/components/skip-previous-button/defaults.js.map +1 -0
  459. package/esm/audio-player-composable/components/skip-previous-button/index.d.ts +3 -0
  460. package/esm/audio-player-composable/components/skip-previous-button/index.d.ts.map +1 -0
  461. package/esm/audio-player-composable/components/skip-previous-button/index.js +3 -0
  462. package/esm/audio-player-composable/components/skip-previous-button/index.js.map +1 -0
  463. package/esm/audio-player-composable/components/skip-previous-button/skip-previous-button.d.ts +2 -0
  464. package/esm/audio-player-composable/components/skip-previous-button/skip-previous-button.d.ts.map +1 -0
  465. package/esm/audio-player-composable/components/skip-previous-button/skip-previous-button.js +31 -0
  466. package/esm/audio-player-composable/components/skip-previous-button/skip-previous-button.js.map +1 -0
  467. package/esm/audio-player-composable/components/skip-previous-button/types.d.ts +3 -0
  468. package/esm/audio-player-composable/components/skip-previous-button/types.d.ts.map +1 -0
  469. package/esm/audio-player-composable/components/skip-previous-button/types.js +2 -0
  470. package/esm/audio-player-composable/components/skip-previous-button/types.js.map +1 -0
  471. package/esm/audio-player-composable/components/time-display/time-display.d.ts +2 -4
  472. package/esm/audio-player-composable/components/time-display/time-display.d.ts.map +1 -1
  473. package/esm/audio-player-composable/components/time-display/time-display.js +25 -3
  474. package/esm/audio-player-composable/components/time-display/time-display.js.map +1 -1
  475. package/esm/audio-player-composable/components/time-display/types.d.ts +5 -4
  476. package/esm/audio-player-composable/components/time-display/types.d.ts.map +1 -1
  477. package/esm/audio-player-composable/components/time-display/utils.d.ts +2 -2
  478. package/esm/audio-player-composable/components/time-display/utils.d.ts.map +1 -1
  479. package/esm/audio-player-composable/components/time-display/utils.js +0 -1
  480. package/esm/audio-player-composable/components/time-display/utils.js.map +1 -1
  481. package/esm/audio-player-composable/components/types.d.ts +9 -0
  482. package/esm/audio-player-composable/components/types.d.ts.map +1 -0
  483. package/esm/audio-player-composable/components/types.js +2 -0
  484. package/esm/audio-player-composable/components/types.js.map +1 -0
  485. package/esm/audio-player-composable/context.d.ts +4 -46
  486. package/esm/audio-player-composable/context.d.ts.map +1 -1
  487. package/esm/audio-player-composable/context.js.map +1 -1
  488. package/esm/audio-player-composable/index.d.ts +8 -6
  489. package/esm/audio-player-composable/index.d.ts.map +1 -1
  490. package/esm/audio-player-composable/index.js +8 -6
  491. package/esm/audio-player-composable/index.js.map +1 -1
  492. package/esm/audio-player-composable/types.d.ts +44 -13
  493. package/esm/audio-player-composable/types.d.ts.map +1 -1
  494. package/esm/audio-player-composable/types.js +1 -1
  495. package/esm/audio-player-composable/types.js.map +1 -1
  496. package/esm/audio-player-composable/utils.d.ts +10 -0
  497. package/esm/audio-player-composable/utils.d.ts.map +1 -1
  498. package/esm/audio-player-composable/utils.js +30 -0
  499. package/esm/audio-player-composable/utils.js.map +1 -1
  500. package/esm/banner/banner.d.ts +1 -2
  501. package/esm/banner/banner.d.ts.map +1 -1
  502. package/esm/button/button.d.ts +1 -1
  503. package/esm/button/button.d.ts.map +1 -1
  504. package/esm/byline/byline.d.ts +1 -2
  505. package/esm/byline/byline.d.ts.map +1 -1
  506. package/esm/caption/caption-inset.d.ts +1 -2
  507. package/esm/caption/caption-inset.d.ts.map +1 -1
  508. package/esm/caption/caption.d.ts +1 -2
  509. package/esm/caption/caption.d.ts.map +1 -1
  510. package/esm/card/card-inset.d.ts +1 -1
  511. package/esm/card/card-inset.d.ts.map +1 -1
  512. package/esm/card/card.d.ts +1 -1
  513. package/esm/card/card.d.ts.map +1 -1
  514. package/esm/checkbox/checkbox.d.ts +1 -1
  515. package/esm/checkbox/checkbox.d.ts.map +1 -1
  516. package/esm/date-time/date-time.d.ts +1 -2
  517. package/esm/date-time/date-time.d.ts.map +1 -1
  518. package/esm/dialog/base-dialog-tests.d.ts.map +1 -1
  519. package/esm/dialog/base-dialog-tests.js +3 -1
  520. package/esm/dialog/base-dialog-tests.js.map +1 -1
  521. package/esm/dialog/types.d.ts +1 -1
  522. package/esm/dialog/types.d.ts.map +1 -1
  523. package/esm/divider/divider.d.ts +1 -2
  524. package/esm/divider/divider.d.ts.map +1 -1
  525. package/esm/drawer/drawer.d.ts +1 -2
  526. package/esm/drawer/drawer.d.ts.map +1 -1
  527. package/esm/fieldset/fieldset.d.ts +1 -2
  528. package/esm/fieldset/fieldset.d.ts.map +1 -1
  529. package/esm/flag/flag.d.ts +1 -1
  530. package/esm/form/form-entry.d.ts.map +1 -1
  531. package/esm/form/form-entry.js +2 -2
  532. package/esm/form/form-entry.js.map +1 -1
  533. package/esm/form/form-input.d.ts +1 -1
  534. package/esm/form/form-input.d.ts.map +1 -1
  535. package/esm/form/form-input.js +4 -7
  536. package/esm/form/form-input.js.map +1 -1
  537. package/esm/grid/cell.d.ts +1 -2
  538. package/esm/grid/cell.d.ts.map +1 -1
  539. package/esm/grid/grid.d.ts +1 -2
  540. package/esm/grid/grid.d.ts.map +1 -1
  541. package/esm/grid-layout/styled.d.ts +2 -1
  542. package/esm/grid-layout/styled.d.ts.map +1 -1
  543. package/esm/grid-layout/types.d.ts +2 -1
  544. package/esm/grid-layout/types.d.ts.map +1 -1
  545. package/esm/headline/headline.d.ts +1 -2
  546. package/esm/headline/headline.d.ts.map +1 -1
  547. package/esm/icons/filled/{material/icon-filled-forward10.d.ts → custom/icon-filled-forward-10.d.ts} +1 -1
  548. package/esm/icons/filled/custom/icon-filled-forward-10.d.ts.map +1 -0
  549. package/esm/icons/filled/custom/icon-filled-forward-10.js +17 -0
  550. package/esm/icons/filled/custom/icon-filled-forward-10.js.map +1 -0
  551. package/esm/icons/filled/custom/icon-filled-forward-15.d.ts +2 -0
  552. package/esm/icons/filled/custom/icon-filled-forward-15.d.ts.map +1 -0
  553. package/esm/icons/filled/custom/icon-filled-forward-15.js +17 -0
  554. package/esm/icons/filled/custom/icon-filled-forward-15.js.map +1 -0
  555. package/esm/icons/filled/custom/icon-filled-forward-20.d.ts +2 -0
  556. package/esm/icons/filled/custom/icon-filled-forward-20.d.ts.map +1 -0
  557. package/esm/icons/filled/custom/icon-filled-forward-20.js +17 -0
  558. package/esm/icons/filled/custom/icon-filled-forward-20.js.map +1 -0
  559. package/esm/icons/filled/custom/icon-filled-forward-25.d.ts +2 -0
  560. package/esm/icons/filled/custom/icon-filled-forward-25.d.ts.map +1 -0
  561. package/esm/icons/filled/custom/icon-filled-forward-25.js +17 -0
  562. package/esm/icons/filled/custom/icon-filled-forward-25.js.map +1 -0
  563. package/{cjs/icons/filled/material/icon-filled-forward30.d.ts → esm/icons/filled/custom/icon-filled-forward-30.d.ts} +1 -1
  564. package/esm/icons/filled/custom/icon-filled-forward-30.d.ts.map +1 -0
  565. package/esm/icons/filled/custom/icon-filled-forward-30.js +17 -0
  566. package/esm/icons/filled/custom/icon-filled-forward-30.js.map +1 -0
  567. package/esm/icons/filled/{material/icon-filled-forward5.d.ts → custom/icon-filled-forward-5.d.ts} +1 -1
  568. package/esm/icons/filled/custom/icon-filled-forward-5.d.ts.map +1 -0
  569. package/esm/icons/filled/custom/icon-filled-forward-5.js +17 -0
  570. package/esm/icons/filled/custom/icon-filled-forward-5.js.map +1 -0
  571. package/{cjs/icons/filled/material/icon-filled-replay10.d.ts → esm/icons/filled/custom/icon-filled-replay-10.d.ts} +1 -1
  572. package/esm/icons/filled/custom/icon-filled-replay-10.d.ts.map +1 -0
  573. package/esm/icons/filled/custom/icon-filled-replay-10.js +17 -0
  574. package/esm/icons/filled/custom/icon-filled-replay-10.js.map +1 -0
  575. package/esm/icons/filled/custom/icon-filled-replay-15.d.ts +2 -0
  576. package/esm/icons/filled/custom/icon-filled-replay-15.d.ts.map +1 -0
  577. package/esm/icons/filled/custom/icon-filled-replay-15.js +17 -0
  578. package/esm/icons/filled/custom/icon-filled-replay-15.js.map +1 -0
  579. package/esm/icons/filled/custom/icon-filled-replay-20.d.ts +2 -0
  580. package/esm/icons/filled/custom/icon-filled-replay-20.d.ts.map +1 -0
  581. package/esm/icons/filled/custom/icon-filled-replay-20.js +17 -0
  582. package/esm/icons/filled/custom/icon-filled-replay-20.js.map +1 -0
  583. package/esm/icons/filled/custom/icon-filled-replay-25.d.ts +2 -0
  584. package/esm/icons/filled/custom/icon-filled-replay-25.d.ts.map +1 -0
  585. package/esm/icons/filled/custom/icon-filled-replay-25.js +17 -0
  586. package/esm/icons/filled/custom/icon-filled-replay-25.js.map +1 -0
  587. package/{cjs/icons/filled/material/icon-filled-replay30.d.ts → esm/icons/filled/custom/icon-filled-replay-30.d.ts} +1 -1
  588. package/esm/icons/filled/custom/icon-filled-replay-30.d.ts.map +1 -0
  589. package/esm/icons/filled/custom/icon-filled-replay-30.js +17 -0
  590. package/esm/icons/filled/custom/icon-filled-replay-30.js.map +1 -0
  591. package/esm/icons/filled/{material/icon-filled-replay5.d.ts → custom/icon-filled-replay-5.d.ts} +1 -1
  592. package/esm/icons/filled/custom/icon-filled-replay-5.d.ts.map +1 -0
  593. package/esm/icons/filled/custom/icon-filled-replay-5.js +17 -0
  594. package/esm/icons/filled/custom/icon-filled-replay-5.js.map +1 -0
  595. package/esm/icons/filled/custom/indeterminate-progress-indicator.d.ts +1 -2
  596. package/esm/icons/filled/custom/indeterminate-progress-indicator.d.ts.map +1 -1
  597. package/esm/icons/filled/custom/index.d.ts +12 -0
  598. package/esm/icons/filled/custom/index.d.ts.map +1 -1
  599. package/esm/icons/filled/custom/index.js +12 -0
  600. package/esm/icons/filled/custom/index.js.map +1 -1
  601. package/esm/icons/filled/material/index.d.ts +0 -6
  602. package/esm/icons/filled/material/index.js +0 -6
  603. package/esm/icons/outlined/{material/icon-outlined-forward10.d.ts → custom/icon-outlined-forward-10.d.ts} +1 -1
  604. package/esm/icons/outlined/custom/icon-outlined-forward-10.d.ts.map +1 -0
  605. package/esm/icons/outlined/custom/icon-outlined-forward-10.js +17 -0
  606. package/esm/icons/outlined/custom/icon-outlined-forward-10.js.map +1 -0
  607. package/esm/icons/outlined/custom/icon-outlined-forward-15.d.ts +2 -0
  608. package/esm/icons/outlined/custom/icon-outlined-forward-15.d.ts.map +1 -0
  609. package/esm/icons/outlined/custom/icon-outlined-forward-15.js +17 -0
  610. package/esm/icons/outlined/custom/icon-outlined-forward-15.js.map +1 -0
  611. package/esm/icons/outlined/custom/icon-outlined-forward-20.d.ts +2 -0
  612. package/esm/icons/outlined/custom/icon-outlined-forward-20.d.ts.map +1 -0
  613. package/esm/icons/outlined/custom/icon-outlined-forward-20.js +17 -0
  614. package/esm/icons/outlined/custom/icon-outlined-forward-20.js.map +1 -0
  615. package/esm/icons/outlined/custom/icon-outlined-forward-25.d.ts +2 -0
  616. package/esm/icons/outlined/custom/icon-outlined-forward-25.d.ts.map +1 -0
  617. package/esm/icons/outlined/custom/icon-outlined-forward-25.js +17 -0
  618. package/esm/icons/outlined/custom/icon-outlined-forward-25.js.map +1 -0
  619. package/esm/icons/outlined/{material/icon-outlined-forward30.d.ts → custom/icon-outlined-forward-30.d.ts} +1 -1
  620. package/esm/icons/outlined/custom/icon-outlined-forward-30.d.ts.map +1 -0
  621. package/esm/icons/outlined/custom/icon-outlined-forward-30.js +17 -0
  622. package/esm/icons/outlined/custom/icon-outlined-forward-30.js.map +1 -0
  623. package/esm/icons/outlined/{material/icon-outlined-forward5.d.ts → custom/icon-outlined-forward-5.d.ts} +1 -1
  624. package/esm/icons/outlined/custom/icon-outlined-forward-5.d.ts.map +1 -0
  625. package/esm/icons/outlined/custom/icon-outlined-forward-5.js +17 -0
  626. package/esm/icons/outlined/custom/icon-outlined-forward-5.js.map +1 -0
  627. package/{cjs/icons/outlined/material/icon-outlined-replay10.d.ts → esm/icons/outlined/custom/icon-outlined-replay-10.d.ts} +1 -1
  628. package/esm/icons/outlined/custom/icon-outlined-replay-10.d.ts.map +1 -0
  629. package/esm/icons/outlined/custom/icon-outlined-replay-10.js +17 -0
  630. package/esm/icons/outlined/custom/icon-outlined-replay-10.js.map +1 -0
  631. package/esm/icons/outlined/custom/icon-outlined-replay-15.d.ts +2 -0
  632. package/esm/icons/outlined/custom/icon-outlined-replay-15.d.ts.map +1 -0
  633. package/esm/icons/outlined/custom/icon-outlined-replay-15.js +17 -0
  634. package/esm/icons/outlined/custom/icon-outlined-replay-15.js.map +1 -0
  635. package/esm/icons/outlined/custom/icon-outlined-replay-20.d.ts +2 -0
  636. package/esm/icons/outlined/custom/icon-outlined-replay-20.d.ts.map +1 -0
  637. package/esm/icons/outlined/custom/icon-outlined-replay-20.js +17 -0
  638. package/esm/icons/outlined/custom/icon-outlined-replay-20.js.map +1 -0
  639. package/esm/icons/outlined/custom/icon-outlined-replay-25.d.ts +2 -0
  640. package/esm/icons/outlined/custom/icon-outlined-replay-25.d.ts.map +1 -0
  641. package/esm/icons/outlined/custom/icon-outlined-replay-25.js +17 -0
  642. package/esm/icons/outlined/custom/icon-outlined-replay-25.js.map +1 -0
  643. package/{cjs/icons/outlined/material/icon-outlined-replay30.d.ts → esm/icons/outlined/custom/icon-outlined-replay-30.d.ts} +1 -1
  644. package/esm/icons/outlined/custom/icon-outlined-replay-30.d.ts.map +1 -0
  645. package/esm/icons/outlined/custom/icon-outlined-replay-30.js +17 -0
  646. package/esm/icons/outlined/custom/icon-outlined-replay-30.js.map +1 -0
  647. package/{cjs/icons/outlined/material/icon-outlined-replay5.d.ts → esm/icons/outlined/custom/icon-outlined-replay-5.d.ts} +1 -1
  648. package/esm/icons/outlined/custom/icon-outlined-replay-5.d.ts.map +1 -0
  649. package/esm/icons/outlined/custom/icon-outlined-replay-5.js +17 -0
  650. package/esm/icons/outlined/custom/icon-outlined-replay-5.js.map +1 -0
  651. package/esm/icons/outlined/custom/index.d.ts +12 -0
  652. package/esm/icons/outlined/custom/index.d.ts.map +1 -1
  653. package/esm/icons/outlined/custom/index.js +12 -0
  654. package/esm/icons/outlined/custom/index.js.map +1 -1
  655. package/esm/icons/outlined/material/index.d.ts +0 -6
  656. package/esm/icons/outlined/material/index.js +0 -6
  657. package/esm/icons/to-newskit-icon.d.ts.map +1 -1
  658. package/esm/icons/to-newskit-icon.js.map +1 -1
  659. package/esm/image/image.d.ts +1 -2
  660. package/esm/image/image.d.ts.map +1 -1
  661. package/esm/inline-message/inline-message.d.ts +1 -2
  662. package/esm/inline-message/inline-message.d.ts.map +1 -1
  663. package/esm/label/label.d.ts +1 -2
  664. package/esm/label/label.d.ts.map +1 -1
  665. package/esm/link/link-inline.d.ts +1 -1
  666. package/esm/link/link-inline.d.ts.map +1 -1
  667. package/esm/link/link-standalone.d.ts +1 -1
  668. package/esm/link/link-standalone.d.ts.map +1 -1
  669. package/esm/link/link.d.ts +2 -2
  670. package/esm/link/link.d.ts.map +1 -1
  671. package/esm/link/utils.d.ts +1 -1
  672. package/esm/link/utils.d.ts.map +1 -1
  673. package/esm/menu/menu.d.ts +1 -1
  674. package/esm/menu/menu.d.ts.map +1 -1
  675. package/esm/modal/modal.d.ts +1 -2
  676. package/esm/modal/modal.d.ts.map +1 -1
  677. package/esm/ordered-list/ordered-list.d.ts +1 -2
  678. package/esm/ordered-list/ordered-list.d.ts.map +1 -1
  679. package/esm/overlay/overlay.d.ts +1 -2
  680. package/esm/overlay/overlay.d.ts.map +1 -1
  681. package/esm/radio-button/radio-button.d.ts +1 -1
  682. package/esm/radio-button/radio-button.d.ts.map +1 -1
  683. package/esm/scroll/scroll.d.ts +1 -1
  684. package/esm/scroll/scroll.d.ts.map +1 -1
  685. package/esm/scroll/scroll.js +2 -2
  686. package/esm/scroll/scroll.js.map +1 -1
  687. package/esm/scroll/utils.d.ts +2 -0
  688. package/esm/scroll/utils.d.ts.map +1 -0
  689. package/esm/scroll/utils.js +2 -0
  690. package/esm/scroll/utils.js.map +1 -0
  691. package/esm/select/select.d.ts +1 -1
  692. package/esm/select/select.d.ts.map +1 -1
  693. package/esm/share-bar/share-bar.d.ts +1 -1
  694. package/esm/share-bar/share-bar.d.ts.map +1 -1
  695. package/esm/slider/slider.d.ts +1 -2
  696. package/esm/slider/slider.d.ts.map +1 -1
  697. package/esm/slider/slider.js +2 -2
  698. package/esm/slider/slider.js.map +1 -1
  699. package/esm/standfirst/standfirst.d.ts +1 -2
  700. package/esm/standfirst/standfirst.d.ts.map +1 -1
  701. package/esm/structured-list/structured-list-item.d.ts +1 -1
  702. package/esm/structured-list/structured-list-item.d.ts.map +1 -1
  703. package/esm/structured-list/structured-list.d.ts +1 -1
  704. package/esm/structured-list/structured-list.d.ts.map +1 -1
  705. package/esm/tabs/tabs.d.ts +1 -1
  706. package/esm/tabs/tabs.d.ts.map +1 -1
  707. package/esm/tag/tag.d.ts +1 -2
  708. package/esm/tag/tag.d.ts.map +1 -1
  709. package/esm/text-field/text-field.d.ts +1 -1
  710. package/esm/text-field/text-field.d.ts.map +1 -1
  711. package/esm/text-input/text-input.d.ts +4 -1
  712. package/esm/text-input/text-input.d.ts.map +1 -1
  713. package/esm/text-input/text-input.js +5 -5
  714. package/esm/text-input/text-input.js.map +1 -1
  715. package/esm/theme-checker/scenarios.d.ts.map +1 -1
  716. package/esm/theme-checker/scenarios.js +32 -0
  717. package/esm/theme-checker/scenarios.js.map +1 -1
  718. package/esm/title-bar/title-bar.d.ts +1 -2
  719. package/esm/title-bar/title-bar.d.ts.map +1 -1
  720. package/esm/toast/toast.d.ts +1 -2
  721. package/esm/toast/toast.d.ts.map +1 -1
  722. package/esm/typography/heading/heading.d.ts +12 -12
  723. package/esm/typography/paragraph/paragraph.d.ts +2 -2
  724. package/esm/unordered-list/unordered-list.d.ts +1 -2
  725. package/esm/unordered-list/unordered-list.d.ts.map +1 -1
  726. package/esm/utils/get-transition-duration.d.ts.map +1 -1
  727. package/esm/utils/get-transition-duration.js +17 -0
  728. package/esm/utils/get-transition-duration.js.map +1 -1
  729. package/esm/utils/hooks/use-keypress.d.ts +2 -1
  730. package/esm/utils/hooks/use-keypress.d.ts.map +1 -1
  731. package/esm/utils/hooks/use-keypress.js +101 -31
  732. package/esm/utils/hooks/use-keypress.js.map +1 -1
  733. package/esm/utils/hooks/use-media-query/context.d.ts +2 -1
  734. package/esm/utils/hooks/use-media-query/context.d.ts.map +1 -1
  735. package/esm/utils/hooks/use-media-query/context.js.map +1 -1
  736. package/esm/utils/style/transition-preset.d.ts +1 -1
  737. package/esm/utils/style/transition-preset.d.ts.map +1 -1
  738. package/esm/utils/style/transition-preset.js +40 -8
  739. package/esm/utils/style/transition-preset.js.map +1 -1
  740. package/esm/utils/types.d.ts +1 -0
  741. package/esm/utils/types.d.ts.map +1 -1
  742. package/esm/utils/with-own-theme.d.ts +4 -1
  743. package/esm/utils/with-own-theme.d.ts.map +1 -1
  744. package/esm/utils/with-own-theme.js +3 -1
  745. package/esm/utils/with-own-theme.js.map +1 -1
  746. package/esm/version-number.json +1 -1
  747. package/esm/video-player/video-player.d.ts +1 -1
  748. package/esm/video-player/video-player.d.ts.map +1 -1
  749. package/esm/volume-control/volume-control.d.ts +1 -2
  750. package/esm/volume-control/volume-control.d.ts.map +1 -1
  751. package/package.json +1 -1
  752. package/cjs/icons/filled/material/icon-filled-forward10.js +0 -11
  753. package/cjs/icons/filled/material/icon-filled-forward30.js +0 -11
  754. package/cjs/icons/filled/material/icon-filled-forward5.js +0 -11
  755. package/cjs/icons/filled/material/icon-filled-replay10.js +0 -11
  756. package/cjs/icons/filled/material/icon-filled-replay30.js +0 -11
  757. package/cjs/icons/filled/material/icon-filled-replay5.js +0 -11
  758. package/cjs/icons/outlined/material/icon-outlined-forward10.js +0 -11
  759. package/cjs/icons/outlined/material/icon-outlined-forward30.js +0 -11
  760. package/cjs/icons/outlined/material/icon-outlined-forward5.js +0 -11
  761. package/cjs/icons/outlined/material/icon-outlined-replay10.js +0 -11
  762. package/cjs/icons/outlined/material/icon-outlined-replay30.js +0 -11
  763. package/cjs/icons/outlined/material/icon-outlined-replay5.js +0 -11
  764. package/esm/icons/filled/material/icon-filled-forward10.js +0 -8
  765. package/esm/icons/filled/material/icon-filled-forward30.js +0 -8
  766. package/esm/icons/filled/material/icon-filled-forward5.js +0 -8
  767. package/esm/icons/filled/material/icon-filled-replay10.js +0 -8
  768. package/esm/icons/filled/material/icon-filled-replay30.js +0 -8
  769. package/esm/icons/filled/material/icon-filled-replay5.js +0 -8
  770. package/esm/icons/outlined/material/icon-outlined-forward10.js +0 -8
  771. package/esm/icons/outlined/material/icon-outlined-forward30.js +0 -8
  772. package/esm/icons/outlined/material/icon-outlined-forward5.js +0 -8
  773. package/esm/icons/outlined/material/icon-outlined-replay10.js +0 -8
  774. package/esm/icons/outlined/material/icon-outlined-replay30.js +0 -8
  775. package/esm/icons/outlined/material/icon-outlined-replay5.js +0 -8
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skip-previous-button.js","sourceRoot":"","sources":["../../../../../src/audio-player-composable/components/skip-previous-button/skip-previous-button.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,oDAAgD;AAChD,+CAAiD;AACjD,yCAAoD;AACpD,wDAAkC;AAClC,gEAA2D;AAC3D,qCAA6E;AAG7E,IAAM,wBAAwB,GAAG,CAAC,WAAW,CAAC,CAAC;AAE/C,IAAM,sCAAsC,GAAiD,eAAK,CAAC,IAAI,CACrG,UAAA,KAAK;IACI,IAAA,0BAA0B,GAAI,IAAA,+BAAqB,GAAE,2BAA3B,CAA4B;IAE7D,IAAM,SAAS,GAAG,IAAA,0BAAkB,EAClC,KAAK,EACL,+BAA+B,CAChC,CAAC;IAEF,IAAM,gBAAgB,GACpB,0BAA2B,IAAI,0BAA0B,CAAC,KAAK,CAAC,CAAC;IAEnE,IAAA,oCAA4B,EAAC;QAC3B,KAAK,EAAE,gBAAsD;QAC7D,QAAQ,EAAE,wBAAwB;KACnC,CAAC,CAAC;IAEH,OAAO,CACL,8BAAC,wBAAU,4BACG,mCAAmC,EAC/C,IAAI,EAAE,kBAAU,CAAC,MAAM,EACvB,SAAS,EAAE,SAAS,IAChB,gBAAgB,EACpB,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEW,QAAA,6BAA6B,GAAG,IAAA,6BAAY,EACvD,sCAAsC,CACvC,CAAC,EAAC,QAAQ,oBAAA,EAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { AudioPlayerIconButtonWithShortcuts } from '../types';
2
+ export declare type AudioPlayerSkipPreviousButtonProps = AudioPlayerIconButtonWithShortcuts;
3
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/audio-player-composable/components/skip-previous-button/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kCAAkC,EAAC,MAAM,UAAU,CAAC;AAE5D,oBAAY,kCAAkC,GAAG,kCAAkC,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/audio-player-composable/components/skip-previous-button/types.ts"],"names":[],"mappings":""}
@@ -1,5 +1,3 @@
1
- import React from 'react';
2
- import { StyledLabelProps } from './types';
3
- export declare const ThemelessTimeDisplay: ({ overrides, format, }: StyledLabelProps) => JSX.Element;
4
- export declare const AudioPlayerTimeDisplay: React.FC<StyledLabelProps>;
1
+ import { AudioPlayerTimeDisplayProps } from './types';
2
+ export declare const AudioPlayerTimeDisplay: import("../../../utils/with-own-theme").NewsKitReactComponents<AudioPlayerTimeDisplayProps>;
5
3
  //# sourceMappingURL=time-display.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"time-display.d.ts","sourceRoot":"","sources":["../../../../../src/audio-player-composable/components/time-display/time-display.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAC;AASzC,eAAO,MAAM,oBAAoB,2BAG9B,gBAAgB,gBASlB,CAAC;AAEF,eAAO,MAAM,sBAAsB,4BAGjC,CAAC"}
1
+ {"version":3,"file":"time-display.d.ts","sourceRoot":"","sources":["../../../../../src/audio-player-composable/components/time-display/time-display.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAC,2BAA2B,EAAC,MAAM,SAAS,CAAC;AAwBpD,eAAO,MAAM,sBAAsB,6FAGjC,CAAC"}
@@ -3,11 +3,33 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
3
3
  if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
4
  return cooked;
5
5
  };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ var __rest = (this && this.__rest) || function (s, e) {
18
+ var t = {};
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
20
+ t[p] = s[p];
21
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
22
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
23
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
24
+ t[p[i]] = s[p[i]];
25
+ }
26
+ return t;
27
+ };
6
28
  var __importDefault = (this && this.__importDefault) || function (mod) {
7
29
  return (mod && mod.__esModule) ? mod : { "default": mod };
8
30
  };
9
31
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.AudioPlayerTimeDisplay = exports.ThemelessTimeDisplay = void 0;
32
+ exports.AudioPlayerTimeDisplay = void 0;
11
33
  var react_1 = __importDefault(require("react"));
12
34
  var utils_1 = require("../../../utils");
13
35
  var context_1 = require("../../context");
@@ -17,14 +39,13 @@ var style_presets_1 = __importDefault(require("./style-presets"));
17
39
  var text_block_1 = require("../../../text-block");
18
40
  var StyledTextBlock = (0, utils_1.styled)(text_block_1.TextBlock)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: block;\n ", "\n ", ";\n"], ["\n display: block;\n ", "\n ", ";\n"])), (0, utils_1.getStylePreset)("audioPlayerTimeDisplay", ''), (0, utils_1.getTypographyPreset)("audioPlayerTimeDisplay", ''));
19
41
  var ThemelessTimeDisplay = function (_a) {
20
- var _b = _a.overrides, overrides = _b === void 0 ? {} : _b, format = _a.format;
42
+ var _b = _a.overrides, overrides = _b === void 0 ? {} : _b, format = _a.format, restProps = __rest(_a, ["overrides", "format"]);
21
43
  var getTimeDisplayProps = (0, context_1.useAudioPlayerContext)().getTimeDisplayProps;
22
44
  var _c = getTimeDisplayProps(), defaultFormat = _c.format, currentTime = _c.currentTime, duration = _c.duration;
23
45
  var formatFn = typeof format === 'function' ? format : defaultFormat;
24
- return (react_1.default.createElement(StyledTextBlock, { as: "span", overrides: overrides }, formatFn({ currentTime: currentTime, duration: duration })));
46
+ return (react_1.default.createElement(StyledTextBlock, __assign({ as: "span", overrides: overrides }, restProps), formatFn({ currentTime: currentTime, duration: duration })));
25
47
  };
26
- exports.ThemelessTimeDisplay = ThemelessTimeDisplay;
27
- exports.AudioPlayerTimeDisplay = (0, with_own_theme_1.withOwnTheme)(exports.ThemelessTimeDisplay)({
48
+ exports.AudioPlayerTimeDisplay = (0, with_own_theme_1.withOwnTheme)(ThemelessTimeDisplay)({
28
49
  defaults: defaults_1.default,
29
50
  stylePresets: style_presets_1.default,
30
51
  });
@@ -1 +1 @@
1
- {"version":3,"file":"time-display.js","sourceRoot":"","sources":["../../../../../src/audio-player-composable/components/time-display/time-display.tsx"],"names":[],"mappings":";;;;;;;;;;AAAA,gDAA0B;AAC1B,wCAA2E;AAC3E,yCAAoD;AACpD,gEAA2D;AAC3D,wDAAkC;AAClC,kEAA2C;AAE3C,kDAA8C;AAE9C,IAAM,eAAe,GAAG,IAAA,cAAM,EAAC,sBAAS,CAAC,2GAAkB,yBAEvD,EAA4C,MAC5C,EAAiD,KACpD,KAFG,IAAA,sBAAc,EAAC,wBAAwB,EAAE,EAAE,CAAC,EAC5C,IAAA,2BAAmB,EAAC,wBAAwB,EAAE,EAAE,CAAC,CACpD,CAAC;AAEK,IAAM,oBAAoB,GAAG,UAAC,EAGlB;QAFjB,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EACd,MAAM,YAAA;IAEC,IAAA,mBAAmB,GAAI,IAAA,+BAAqB,GAAE,oBAA3B,CAA4B;IAChD,IAAA,KAAiD,mBAAoB,EAAE,EAA9D,aAAa,YAAA,EAAE,WAAW,iBAAA,EAAE,QAAQ,cAA0B,CAAC;IAC9E,IAAM,QAAQ,GAAG,OAAO,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC;IACvE,OAAO,CACL,8BAAC,eAAe,IAAC,EAAE,EAAC,MAAM,EAAC,SAAS,EAAE,SAAS,IAC5C,QAAQ,CAAC,EAAC,WAAW,aAAA,EAAE,QAAQ,UAAA,EAAC,CAAC,CAClB,CACnB,CAAC;AACJ,CAAC,CAAC;AAZW,QAAA,oBAAoB,wBAY/B;AAEW,QAAA,sBAAsB,GAAG,IAAA,6BAAY,EAAC,4BAAoB,CAAC,CAAC;IACvE,QAAQ,oBAAA;IACR,YAAY,yBAAA;CACb,CAAC,CAAC"}
1
+ {"version":3,"file":"time-display.js","sourceRoot":"","sources":["../../../../../src/audio-player-composable/components/time-display/time-display.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,wCAA2E;AAC3E,yCAAoD;AACpD,gEAA2D;AAC3D,wDAAkC;AAClC,kEAA2C;AAE3C,kDAA8C;AAE9C,IAAM,eAAe,GAAG,IAAA,cAAM,EAAC,sBAAS,CAAC,2GAA6B,yBAElE,EAA4C,MAC5C,EAAiD,KACpD,KAFG,IAAA,sBAAc,EAAC,wBAAwB,EAAE,EAAE,CAAC,EAC5C,IAAA,2BAAmB,EAAC,wBAAwB,EAAE,EAAE,CAAC,CACpD,CAAC;AAEF,IAAM,oBAAoB,GAAG,UAAC,EAIA;IAH5B,IAAA,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EACd,MAAM,YAAA,EACH,SAAS,cAHgB,uBAI7B,CADa;IAEL,IAAA,mBAAmB,GAAI,IAAA,+BAAqB,GAAE,oBAA3B,CAA4B;IAChD,IAAA,KAAiD,mBAAoB,EAAE,EAA9D,aAAa,YAAA,EAAE,WAAW,iBAAA,EAAE,QAAQ,cAA0B,CAAC;IAC9E,IAAM,QAAQ,GAAG,OAAO,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC;IACvE,OAAO,CACL,8BAAC,eAAe,aAAC,EAAE,EAAC,MAAM,EAAC,SAAS,EAAE,SAAS,IAAM,SAAS,GAC3D,QAAQ,CAAC,EAAC,WAAW,aAAA,EAAE,QAAQ,UAAA,EAAC,CAAC,CAClB,CACnB,CAAC;AACJ,CAAC,CAAC;AAEW,QAAA,sBAAsB,GAAG,IAAA,6BAAY,EAAC,oBAAoB,CAAC,CAAC;IACvE,QAAQ,oBAAA;IACR,YAAY,yBAAA;CACb,CAAC,CAAC"}
@@ -1,13 +1,14 @@
1
+ import React from 'react';
1
2
  import { MQ } from '../../../utils';
2
- export declare type FormatFn = ({ currentTime, duration, }: {
3
+ export declare type AudioPlayerTimeFormatFn = ({ currentTime, duration, }: {
3
4
  currentTime: number;
4
5
  duration: number;
5
6
  }) => string;
6
- export interface StyledLabelProps {
7
- format?: FormatFn;
7
+ export declare type AudioPlayerTimeDisplayProps = {
8
+ format?: AudioPlayerTimeFormatFn;
8
9
  overrides?: {
9
10
  typographyPreset?: MQ<string>;
10
11
  stylePreset?: MQ<string>;
11
12
  };
12
- }
13
+ } & React.HTMLAttributes<HTMLSpanElement>;
13
14
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/audio-player-composable/components/time-display/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,oBAAY,QAAQ,GAAG,CAAC,EACtB,WAAW,EACX,QAAQ,GACT,EAAE;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB,KAAK,MAAM,CAAC;AACb,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,QAAQ,CAAC;IAElB,SAAS,CAAC,EAAE;QACV,gBAAgB,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;QAC9B,WAAW,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;KAC1B,CAAC;CACH"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/audio-player-composable/components/time-display/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,oBAAY,uBAAuB,GAAG,CAAC,EACrC,WAAW,EACX,QAAQ,GACT,EAAE;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB,KAAK,MAAM,CAAC;AAEb,oBAAY,2BAA2B,GAAG;IACxC,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,SAAS,CAAC,EAAE;QACV,gBAAgB,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;QAC9B,WAAW,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;KAC1B,CAAC;CACH,GAAG,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FormatFn } from './types';
1
+ import { AudioPlayerTimeFormatFn } from './types';
2
2
  export declare const calculateTime: (secs: number) => string;
3
- export declare const formatFunction: FormatFn;
3
+ export declare const formatFunction: AudioPlayerTimeFormatFn;
4
4
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/audio-player-composable/components/time-display/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,eAAO,MAAM,aAAa,SAAU,MAAM,WAWzC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,QAO5B,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/audio-player-composable/components/time-display/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,uBAAuB,EAAC,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,aAAa,SAAU,MAAM,WAWzC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,uBAU5B,CAAC"}
@@ -14,7 +14,6 @@ var calculateTime = function (secs) {
14
14
  return "".concat(returnedMinutes, ":").concat(returnedSeconds);
15
15
  };
16
16
  exports.calculateTime = calculateTime;
17
- // change to formattedcurrentime
18
17
  var formatFunction = function (_a) {
19
18
  var currentTime = _a.currentTime, duration = _a.duration;
20
19
  var currentFormattedTime = (0, exports.calculateTime)(currentTime);
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/audio-player-composable/components/time-display/utils.tsx"],"names":[],"mappings":";;;AAEO,IAAM,aAAa,GAAG,UAAC,IAAY;IACxC,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IACtC,IAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC/C,IAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;IACtC,IAAM,eAAe,GAAG,OAAO,GAAG,EAAE,CAAC,CAAC,CAAC,WAAI,OAAO,CAAE,CAAC,CAAC,CAAC,UAAG,OAAO,CAAE,CAAC;IACpE,IAAM,eAAe,GAAG,OAAO,GAAG,EAAE,CAAC,CAAC,CAAC,WAAI,OAAO,CAAE,CAAC,CAAC,CAAC,UAAG,OAAO,CAAE,CAAC;IACpE,IAAM,aAAa,GAAG,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,WAAI,KAAK,CAAE,CAAC,CAAC,CAAC,UAAG,KAAK,CAAE,CAAC;IAC5D,IAAI,KAAK,GAAG,CAAC,EAAE;QACb,OAAO,UAAG,aAAa,cAAI,eAAe,cAAI,eAAe,CAAE,CAAC;KACjE;IACD,OAAO,UAAG,eAAe,cAAI,eAAe,CAAE,CAAC;AACjD,CAAC,CAAC;AAXW,QAAA,aAAa,iBAWxB;AACF,gCAAgC;AACzB,IAAM,cAAc,GAAa,UAAC,EAAuB;QAAtB,WAAW,iBAAA,EAAE,QAAQ,cAAA;IAC7D,IAAM,oBAAoB,GAAG,IAAA,qBAAa,EACvC,WAAiC,CACnC,CAAC;IACF,IAAM,aAAa,GAAG,IAAA,qBAAa,EAAE,QAA8B,CAAC,CAAC;IAErE,OAAO,UAAG,oBAAoB,cAAI,aAAa,MAAG,CAAC;AACrD,CAAC,CAAC;AAPW,QAAA,cAAc,kBAOzB"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/audio-player-composable/components/time-display/utils.tsx"],"names":[],"mappings":";;;AAEO,IAAM,aAAa,GAAG,UAAC,IAAY;IACxC,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IACtC,IAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC/C,IAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;IACtC,IAAM,eAAe,GAAG,OAAO,GAAG,EAAE,CAAC,CAAC,CAAC,WAAI,OAAO,CAAE,CAAC,CAAC,CAAC,UAAG,OAAO,CAAE,CAAC;IACpE,IAAM,eAAe,GAAG,OAAO,GAAG,EAAE,CAAC,CAAC,CAAC,WAAI,OAAO,CAAE,CAAC,CAAC,CAAC,UAAG,OAAO,CAAE,CAAC;IACpE,IAAM,aAAa,GAAG,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,WAAI,KAAK,CAAE,CAAC,CAAC,CAAC,UAAG,KAAK,CAAE,CAAC;IAC5D,IAAI,KAAK,GAAG,CAAC,EAAE;QACb,OAAO,UAAG,aAAa,cAAI,eAAe,cAAI,eAAe,CAAE,CAAC;KACjE;IACD,OAAO,UAAG,eAAe,cAAI,eAAe,CAAE,CAAC;AACjD,CAAC,CAAC;AAXW,QAAA,aAAa,iBAWxB;AAEK,IAAM,cAAc,GAA4B,UAAC,EAGvD;QAFC,WAAW,iBAAA,EACX,QAAQ,cAAA;IAER,IAAM,oBAAoB,GAAG,IAAA,qBAAa,EACvC,WAAiC,CACnC,CAAC;IACF,IAAM,aAAa,GAAG,IAAA,qBAAa,EAAE,QAA8B,CAAC,CAAC;IAErE,OAAO,UAAG,oBAAoB,cAAI,aAAa,MAAG,CAAC;AACrD,CAAC,CAAC;AAVW,QAAA,cAAc,kBAUzB"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { IconButtonProps } from '../../button/types';
3
+ import { Optional } from '../../utils/types';
4
+ export declare type AudioPlayerIconButtonProps = Optional<IconButtonProps, 'aria-label'>;
5
+ export declare type AudioPlayerIconButtonWithShortcuts = Omit<AudioPlayerIconButtonProps, 'onClick'> & {
6
+ keyboardShortcuts?: string[] | string;
7
+ onClick?: (event: React.MouseEvent<HTMLButtonElement> | KeyboardEvent) => void;
8
+ };
9
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/audio-player-composable/components/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,oBAAY,0BAA0B,GAAG,QAAQ,CAC/C,eAAe,EACf,YAAY,CACb,CAAC;AAEF,oBAAY,kCAAkC,GAAG,IAAI,CACnD,0BAA0B,EAC1B,SAAS,CACV,GAAG;IACF,iBAAiB,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IACtC,OAAO,CAAC,EAAE,CACR,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,GAAG,aAAa,KACvD,IAAI,CAAC;CACX,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/audio-player-composable/components/types.ts"],"names":[],"mappings":""}
@@ -1,48 +1,6 @@
1
- import { ReactJSXElement } from '@emotion/react/types/jsx-namespace';
2
- import React, { SyntheticEvent } from 'react';
3
- import { FormatFn } from './components/time-display/types';
4
- interface AudioPlayerProviderContext {
5
- id: string;
6
- src: string;
7
- autoPlay?: boolean;
8
- audioRef: React.RefObject<HTMLAudioElement>;
9
- playing: boolean;
10
- canPause: boolean;
11
- loading: boolean;
12
- togglePlay: () => void;
13
- audioEvents: {
14
- onCanPlay: () => void;
15
- onDurationChange: ({ target, }: SyntheticEvent<HTMLAudioElement, Event>) => void;
16
- onTimeUpdate: ({ target }: SyntheticEvent<HTMLAudioElement, Event>) => void;
17
- onWaiting: ({ target }: SyntheticEvent<HTMLAudioElement, Event>) => void;
18
- onEnded: ({ target }: SyntheticEvent<HTMLAudioElement, Event>) => void;
19
- onProgress: ({ target }: SyntheticEvent<HTMLAudioElement, Event>) => void;
20
- };
21
- getPlayPauseButtonProps: (args: {
22
- onClick?: () => void;
23
- }) => {
24
- ariaLabel: string;
25
- ariaPressed: boolean;
26
- loading: boolean;
27
- onClick: () => void;
28
- playing: boolean;
29
- canPause: boolean;
30
- playStateIcon: ReactJSXElement;
31
- };
32
- getTimeDisplayProps: () => {
33
- format: FormatFn;
34
- currentTime: number;
35
- duration: number;
36
- };
37
- getSeekBarProps: () => {
38
- duration: number;
39
- currentTime: number;
40
- onChange: (value: number) => void;
41
- buffered: TimeRanges | undefined;
42
- };
43
- }
44
- export declare const AudioPlayerContext: React.Context<Partial<AudioPlayerProviderContext>>;
45
- export declare const AudioPlayerProvider: React.Provider<Partial<AudioPlayerProviderContext>>;
1
+ /// <reference types="react" />
2
+ import { AudioPlayerProviderContext } from './types';
3
+ export declare const AudioPlayerContext: import("react").Context<Partial<AudioPlayerProviderContext>>;
4
+ export declare const AudioPlayerProvider: import("react").Provider<Partial<AudioPlayerProviderContext>>;
46
5
  export declare const useAudioPlayerContext: () => Partial<AudioPlayerProviderContext>;
47
- export {};
48
6
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/audio-player-composable/context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,oCAAoC,CAAC;AACnE,OAAO,KAAK,EAAE,EAAgB,cAAc,EAAa,MAAM,OAAO,CAAC;AACvE,OAAO,EAAC,QAAQ,EAAC,MAAM,iCAAiC,CAAC;AAEzD,UAAU,0BAA0B;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,WAAW,EAAE;QACX,SAAS,EAAE,MAAM,IAAI,CAAC;QACtB,gBAAgB,EAAE,CAAC,EACjB,MAAM,GACP,EAAE,cAAc,CAAC,gBAAgB,EAAE,KAAK,CAAC,KAAK,IAAI,CAAC;QACpD,YAAY,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,cAAc,CAAC,gBAAgB,EAAE,KAAK,CAAC,KAAK,IAAI,CAAC;QAC1E,SAAS,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,cAAc,CAAC,gBAAgB,EAAE,KAAK,CAAC,KAAK,IAAI,CAAC;QACvE,OAAO,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,cAAc,CAAC,gBAAgB,EAAE,KAAK,CAAC,KAAK,IAAI,CAAC;QACrE,UAAU,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,cAAc,CAAC,gBAAgB,EAAE,KAAK,CAAC,KAAK,IAAI,CAAC;KACzE,CAAC;IAGF,uBAAuB,EAAE,CAAC,IAAI,EAAE;QAC9B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;KACtB,KAAK;QACJ,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,OAAO,CAAC;QACrB,OAAO,EAAE,OAAO,CAAC;QACjB,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,EAAE,OAAO,CAAC;QAClB,aAAa,EAAE,eAAe,CAAC;KAChC,CAAC;IACF,mBAAmB,EAAE,MAAM;QACzB,MAAM,EAAE,QAAQ,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,eAAe,EAAE,MAAM;QACrB,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QAClC,QAAQ,EAAE,UAAU,GAAG,SAAS,CAAC;KAClC,CAAC;CACH;AAED,eAAO,MAAM,kBAAkB,oDAE1B,CAAC;AAEN,eAAO,MAAM,mBAAmB,qDAA8B,CAAC;AAE/D,eAAO,MAAM,qBAAqB,2CAejC,CAAC"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/audio-player-composable/context.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,0BAA0B,EAAC,MAAM,SAAS,CAAC;AAEnD,eAAO,MAAM,kBAAkB,8DAE1B,CAAC;AAEN,eAAO,MAAM,mBAAmB,+DAA8B,CAAC;AAE/D,eAAO,MAAM,qBAAqB,2CAejC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/audio-player-composable/context.tsx"],"names":[],"mappings":";;;AACA,+BAAuE;AAiD1D,QAAA,kBAAkB,GAAG,IAAA,qBAAa,EAE7C,EAAE,CAAC,CAAC;AAEO,QAAA,mBAAmB,GAAG,0BAAkB,CAAC,QAAQ,CAAC;AAExD,IAAM,qBAAqB,GAAG;IACnC,IAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,0BAAkB,CAAC,CAAC;IAE/C,wBAAwB;IACxB,IACE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY;QACrC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,EACjC;QACA,sCAAsC;QACtC,OAAO,CAAC,KAAK,CACX,kFAAkF,CACnF,CAAC;KACH;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAfW,QAAA,qBAAqB,yBAehC"}
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/audio-player-composable/context.tsx"],"names":[],"mappings":";;;AAAA,+BAAgD;AAGnC,QAAA,kBAAkB,GAAG,IAAA,qBAAa,EAE7C,EAAE,CAAC,CAAC;AAEO,QAAA,mBAAmB,GAAG,0BAAkB,CAAC,QAAQ,CAAC;AAExD,IAAM,qBAAqB,GAAG;IACnC,IAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,0BAAkB,CAAC,CAAC;IAE/C,wBAAwB;IACxB,IACE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY;QACrC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,EACjC;QACA,sCAAsC;QACtC,OAAO,CAAC,KAAK,CACX,kFAAkF,CACnF,CAAC;KACH;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAfW,QAAA,qBAAqB,yBAehC"}
@@ -1,9 +1,11 @@
1
1
  export { calculateTime } from './components/time-display/utils';
2
- export { AudioPlayerTimeDisplay } from './components/time-display';
3
- export { AudioPlayerSeekBar } from './components/seek-bar';
4
- export { AudioPlayerPlayPauseButton } from './components/play-pause-button';
5
2
  export { AudioPlayerComposable } from './audio-player-composable';
6
- export * from './components/seek-bar/types';
7
- export * from './components/time-display/types';
8
- export * from './components/play-pause-button/types';
3
+ export { useAudioPlayerContext } from './context';
4
+ export * from './components/time-display';
5
+ export * from './components/seek-bar';
6
+ export * from './components/play-pause-button';
7
+ export * from './components/forward-button';
8
+ export * from './components/replay-button';
9
+ export * from './components/skip-next-button';
10
+ export * from './components/skip-previous-button';
9
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/audio-player-composable/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAC,sBAAsB,EAAC,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAC,0BAA0B,EAAC,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAC;AAChE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/audio-player-composable/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAC,qBAAqB,EAAC,MAAM,WAAW,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC"}
@@ -10,19 +10,19 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.AudioPlayerComposable = exports.AudioPlayerPlayPauseButton = exports.AudioPlayerSeekBar = exports.AudioPlayerTimeDisplay = exports.calculateTime = void 0;
13
+ exports.useAudioPlayerContext = exports.AudioPlayerComposable = exports.calculateTime = void 0;
14
14
  /* istanbul ignore file */
15
15
  var utils_1 = require("./components/time-display/utils");
16
16
  Object.defineProperty(exports, "calculateTime", { enumerable: true, get: function () { return utils_1.calculateTime; } });
17
- var time_display_1 = require("./components/time-display");
18
- Object.defineProperty(exports, "AudioPlayerTimeDisplay", { enumerable: true, get: function () { return time_display_1.AudioPlayerTimeDisplay; } });
19
- var seek_bar_1 = require("./components/seek-bar");
20
- Object.defineProperty(exports, "AudioPlayerSeekBar", { enumerable: true, get: function () { return seek_bar_1.AudioPlayerSeekBar; } });
21
- var play_pause_button_1 = require("./components/play-pause-button");
22
- Object.defineProperty(exports, "AudioPlayerPlayPauseButton", { enumerable: true, get: function () { return play_pause_button_1.AudioPlayerPlayPauseButton; } });
23
17
  var audio_player_composable_1 = require("./audio-player-composable");
24
18
  Object.defineProperty(exports, "AudioPlayerComposable", { enumerable: true, get: function () { return audio_player_composable_1.AudioPlayerComposable; } });
25
- __exportStar(require("./components/seek-bar/types"), exports);
26
- __exportStar(require("./components/time-display/types"), exports);
27
- __exportStar(require("./components/play-pause-button/types"), exports);
19
+ var context_1 = require("./context");
20
+ Object.defineProperty(exports, "useAudioPlayerContext", { enumerable: true, get: function () { return context_1.useAudioPlayerContext; } });
21
+ __exportStar(require("./components/time-display"), exports);
22
+ __exportStar(require("./components/seek-bar"), exports);
23
+ __exportStar(require("./components/play-pause-button"), exports);
24
+ __exportStar(require("./components/forward-button"), exports);
25
+ __exportStar(require("./components/replay-button"), exports);
26
+ __exportStar(require("./components/skip-next-button"), exports);
27
+ __exportStar(require("./components/skip-previous-button"), exports);
28
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/audio-player-composable/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,0BAA0B;AAC1B,yDAA8D;AAAtD,sGAAA,aAAa,OAAA;AACrB,0DAAiE;AAAzD,sHAAA,sBAAsB,OAAA;AAC9B,kDAAyD;AAAjD,8GAAA,kBAAkB,OAAA;AAC1B,oEAA0E;AAAlE,+HAAA,0BAA0B,OAAA;AAClC,qEAAgE;AAAxD,gIAAA,qBAAqB,OAAA;AAC7B,8DAA4C;AAC5C,kEAAgD;AAChD,uEAAqD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/audio-player-composable/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,0BAA0B;AAC1B,yDAA8D;AAAtD,sGAAA,aAAa,OAAA;AACrB,qEAAgE;AAAxD,gIAAA,qBAAqB,OAAA;AAC7B,qCAAgD;AAAxC,gHAAA,qBAAqB,OAAA;AAC7B,4DAA0C;AAC1C,wDAAsC;AACtC,iEAA+C;AAC/C,8DAA4C;AAC5C,6DAA2C;AAC3C,gEAA8C;AAC9C,oEAAkD"}
@@ -1,9 +1,13 @@
1
1
  /// <reference types="react" />
2
+ import { IconButtonProps } from '../icon-button/types';
3
+ import { AudioPlayerForwardButtonProps } from './components/forward-button/types';
4
+ import { AudioPlayerPlayPauseButtonProps } from './components/play-pause-button/types';
5
+ import { AudioPlayerReplayButtonProps } from './components/replay-button/types';
6
+ import { AudioPlayerSkipNextButtonProps } from './components/skip-next-button/types';
7
+ import { AudioPlayerSkipPreviousButtonProps } from './components/skip-previous-button/types';
8
+ import { AudioPlayerTimeFormatFn } from './components/time-display/types';
2
9
  export interface AudioFunctionDependencies {
3
- onPreviousTrack: () => void;
4
- onNextTrack: () => void;
5
10
  autoPlay: boolean;
6
- disablePreviousTrack: boolean;
7
11
  src: string;
8
12
  live: NonNullable<boolean>;
9
13
  loading: boolean;
@@ -18,20 +22,48 @@ export interface AudioFunctionDependencies {
18
22
  setDuration: React.Dispatch<React.SetStateAction<number>>;
19
23
  setDisplayDuration: React.Dispatch<React.SetStateAction<number>>;
20
24
  setBuffered: React.Dispatch<React.SetStateAction<TimeRanges | undefined>>;
21
- setIsPrevTrackBtnDisabled: React.Dispatch<React.SetStateAction<boolean>>;
22
25
  }
23
- export interface TrackControlProps {
24
- onNextTrack?: () => void;
25
- disableNextTrack?: boolean;
26
- onPreviousTrack?: () => void;
27
- disablePreviousTrack?: boolean;
26
+ export interface AudioPlayerProviderContext {
27
+ id: string;
28
+ playing: boolean;
29
+ canPause: boolean;
30
+ loading: boolean;
31
+ audioRef: React.RefObject<HTMLAudioElement>;
32
+ audioSectionRef: React.RefObject<HTMLDivElement>;
33
+ togglePlay: () => void;
34
+ getPlayPauseButtonProps: (props: AudioPlayerPlayPauseButtonProps) => IconButtonProps & {
35
+ playing: boolean;
36
+ canPause: boolean;
37
+ };
38
+ getTimeDisplayProps: () => {
39
+ format: AudioPlayerTimeFormatFn;
40
+ currentTime: number;
41
+ duration: number;
42
+ };
43
+ getSeekBarProps: () => {
44
+ duration: number;
45
+ currentTime: number;
46
+ onChange: (value: number) => void;
47
+ buffered: TimeRanges | undefined;
48
+ };
49
+ getSkipPreviousButtonProps: (props: AudioPlayerSkipPreviousButtonProps) => IconButtonProps;
50
+ getSkipNextButtonProps: (props: AudioPlayerSkipNextButtonProps) => IconButtonProps;
51
+ getForwardButtonProps: (props: AudioPlayerForwardButtonProps) => IconButtonProps;
52
+ getReplayButtonProps: (props: AudioPlayerReplayButtonProps) => IconButtonProps;
53
+ }
54
+ export interface AudioElementProps extends Omit<React.AudioHTMLAttributes<HTMLAudioElement>, 'controls'> {
55
+ audioRef?: React.RefObject<HTMLAudioElement>;
28
56
  }
29
- export interface AudioPlayerComposableProps {
57
+ export interface AudioPlayerComposableProps extends Omit<React.AudioHTMLAttributes<HTMLAudioElement>, 'controls'> {
30
58
  children: React.ReactNode;
31
- src: string;
32
- autoPlay?: boolean;
33
59
  live?: boolean;
60
+ autoPlay?: boolean;
61
+ src: string;
34
62
  ariaLandmark?: string;
63
+ keyboardShortcuts?: {
64
+ jumpToStart: string | string[];
65
+ jumpToEnd: string | string[];
66
+ };
35
67
  }
36
68
  export declare enum AudioEvents {
37
69
  Play = "onPlay",
@@ -39,7 +71,6 @@ export declare enum AudioEvents {
39
71
  Waiting = "onWaiting",
40
72
  CanPlay = "onCanPlay",
41
73
  Ended = "onEnded",
42
- VolumeChange = "onVolumeChange",
43
74
  DurationChange = "onDurationChange",
44
75
  TimeUpdate = "onTimeUpdate",
45
76
  Progress = "onProgress"
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/audio-player-composable/types.ts"],"names":[],"mappings":";AAAA,MAAM,WAAW,yBAAyB;IACxC,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAE3B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IAEjB,oBAAoB,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACrD,cAAc,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC/C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAE5C,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1D,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7D,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAE5D,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1D,kBAAkB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACjE,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC;IAC1E,yBAAyB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CAC1E;AACD,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,oBAAY,WAAW;IACrB,IAAI,WAAW;IACf,KAAK,YAAY;IACjB,OAAO,cAAc;IACrB,OAAO,cAAc;IACrB,KAAK,YAAY;IACjB,YAAY,mBAAmB;IAC/B,cAAc,qBAAqB;IACnC,UAAU,iBAAiB;IAC3B,QAAQ,eAAe;CACxB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/audio-player-composable/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAC,6BAA6B,EAAC,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAC,+BAA+B,EAAC,MAAM,sCAAsC,CAAC;AACrF,OAAO,EAAC,4BAA4B,EAAC,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAC,8BAA8B,EAAC,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAC,kCAAkC,EAAC,MAAM,yCAAyC,CAAC;AAC3F,OAAO,EAAC,uBAAuB,EAAC,MAAM,iCAAiC,CAAC;AAExE,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,OAAO,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAE3B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IAEjB,oBAAoB,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACrD,cAAc,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC/C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAE5C,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1D,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7D,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAE5D,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1D,kBAAkB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACjE,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC;CAC3E;AAED,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACjD,UAAU,EAAE,MAAM,IAAI,CAAC;IAGvB,uBAAuB,EAAE,CACvB,KAAK,EAAE,+BAA+B,KACnC,eAAe,GAAG;QACrB,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;IACF,mBAAmB,EAAE,MAAM;QACzB,MAAM,EAAE,uBAAuB,CAAC;QAChC,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,eAAe,EAAE,MAAM;QACrB,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QAClC,QAAQ,EAAE,UAAU,GAAG,SAAS,CAAC;KAClC,CAAC;IACF,0BAA0B,EAAE,CAC1B,KAAK,EAAE,kCAAkC,KACtC,eAAe,CAAC;IACrB,sBAAsB,EAAE,CACtB,KAAK,EAAE,8BAA8B,KAClC,eAAe,CAAC;IACrB,qBAAqB,EAAE,CACrB,KAAK,EAAE,6BAA6B,KACjC,eAAe,CAAC;IACrB,oBAAoB,EAAE,CACpB,KAAK,EAAE,4BAA4B,KAChC,eAAe,CAAC;CACtB;AAED,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,UAAU,CAAC;IACrE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;CAC9C;AAED,MAAM,WAAW,0BACf,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,UAAU,CAAC;IACrE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE;QAClB,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;QAC/B,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;KAC9B,CAAC;CACH;AAED,oBAAY,WAAW;IACrB,IAAI,WAAW;IACf,KAAK,YAAY;IACjB,OAAO,cAAc;IACrB,OAAO,cAAc;IACrB,KAAK,YAAY;IAEjB,cAAc,qBAAqB;IACnC,UAAU,iBAAiB;IAC3B,QAAQ,eAAe;CACxB"}
@@ -8,7 +8,7 @@ var AudioEvents;
8
8
  AudioEvents["Waiting"] = "onWaiting";
9
9
  AudioEvents["CanPlay"] = "onCanPlay";
10
10
  AudioEvents["Ended"] = "onEnded";
11
- AudioEvents["VolumeChange"] = "onVolumeChange";
11
+ // VolumeChange = 'onVolumeChange',
12
12
  AudioEvents["DurationChange"] = "onDurationChange";
13
13
  AudioEvents["TimeUpdate"] = "onTimeUpdate";
14
14
  AudioEvents["Progress"] = "onProgress";
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/audio-player-composable/types.ts"],"names":[],"mappings":";;;AAwCA,IAAY,WAUX;AAVD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;IACjB,8CAA+B,CAAA;IAC/B,kDAAmC,CAAA;IACnC,0CAA2B,CAAA;IAC3B,sCAAuB,CAAA;AACzB,CAAC,EAVW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAUtB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/audio-player-composable/types.ts"],"names":[],"mappings":";;;AAyFA,IAAY,WAUX;AAVD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;IACjB,mCAAmC;IACnC,kDAAmC,CAAA;IACnC,0CAA2B,CAAA;IAC3B,sCAAuB,CAAA;AACzB,CAAC,EAVW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAUtB"}
@@ -1,4 +1,14 @@
1
+ import { IconButtonProps } from '../button';
2
+ import { AudioPlayerIconButtonWithShortcuts } from './components/types';
1
3
  export declare const formatTrackTime: (time: number, maxTime?: number) => string;
2
4
  export declare const formatDuration: (time: number, maxTime?: number) => string;
3
5
  export declare const getMediaSegment: (duration: number, currentPosition: number) => "0-25" | "26-50" | "51-75" | "76-100";
6
+ declare type UseKeyboardShortcutsType = {
7
+ action?: (e: KeyboardEvent) => void;
8
+ defaults: string | string[];
9
+ props: AudioPlayerIconButtonWithShortcuts;
10
+ };
11
+ export declare const useKeyboardShortcutsOnButton: ({ props, defaults: defaultKeys, action, }: UseKeyboardShortcutsType) => void;
12
+ export declare const useButtonOverrides: (props: Pick<IconButtonProps, 'overrides'>, defaultsPath: string) => IconButtonProps['overrides'];
13
+ export {};
4
14
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/audio-player-composable/utils.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,SAAU,MAAM,YAAW,MAAM,WAG5D,CAAC;AAEF,eAAO,MAAM,cAAc,SAAU,MAAM,YAAW,MAAM,WAK3D,CAAC;AAEF,eAAO,MAAM,eAAe,aAAc,MAAM,mBAAmB,MAAM,0CAWxE,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/audio-player-composable/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,WAAW,CAAC;AAM1C,OAAO,EAAC,kCAAkC,EAAC,MAAM,oBAAoB,CAAC;AAKtE,eAAO,MAAM,eAAe,SAAU,MAAM,YAAW,MAAM,WAG5D,CAAC;AAEF,eAAO,MAAM,cAAc,SAAU,MAAM,YAAW,MAAM,WAK3D,CAAC;AAEF,eAAO,MAAM,eAAe,aAAc,MAAM,mBAAmB,MAAM,0CAWxE,CAAC;AAEF,aAAK,wBAAwB,GAAG;IAC9B,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;IACpC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B,KAAK,EAAE,kCAAkC,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,4BAA4B,8CAItC,wBAAwB,SAQ1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,UACtB,KAAK,eAAe,EAAE,WAAW,CAAC,gBAC3B,MAAM,KACnB,eAAe,CAAC,WAAW,CAQ7B,CAAC"}
@@ -1,6 +1,22 @@
1
1
  "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
2
13
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getMediaSegment = exports.formatDuration = exports.formatTrackTime = void 0;
14
+ exports.useButtonOverrides = exports.useKeyboardShortcutsOnButton = exports.getMediaSegment = exports.formatDuration = exports.formatTrackTime = void 0;
15
+ var theme_1 = require("../theme");
16
+ var filter_object_1 = require("../utils/filter-object");
17
+ var get_1 = require("../utils/get");
18
+ var hooks_1 = require("../utils/hooks");
19
+ var context_1 = require("./context");
4
20
  var hhmmss = [11, 8];
5
21
  var mmss = [14, 5];
6
22
  var formatTrackTime = function (time, maxTime) {
@@ -29,4 +45,20 @@ var getMediaSegment = function (duration, currentPosition) {
29
45
  return '76-100';
30
46
  };
31
47
  exports.getMediaSegment = getMediaSegment;
48
+ var useKeyboardShortcutsOnButton = function (_a) {
49
+ var props = _a.props, defaultKeys = _a.defaults, action = _a.action;
50
+ var audioSectionRef = (0, context_1.useAudioPlayerContext)().audioSectionRef;
51
+ var options = { target: audioSectionRef, preventDefault: false };
52
+ var keyboardShortcuts = props.keyboardShortcuts;
53
+ var key = keyboardShortcuts || defaultKeys;
54
+ var callback = action || props.onClick;
55
+ (0, hooks_1.useKeypress)(key, callback, options);
56
+ };
57
+ exports.useKeyboardShortcutsOnButton = useKeyboardShortcutsOnButton;
58
+ var useButtonOverrides = function (props, defaultsPath) {
59
+ var theme = (0, theme_1.useTheme)();
60
+ var overrides = props.overrides;
61
+ return __assign(__assign({}, (0, get_1.get)(theme, "componentDefaults.".concat(defaultsPath))), (0, filter_object_1.filterOutFalsyProperties)(overrides));
62
+ };
63
+ exports.useButtonOverrides = useButtonOverrides;
32
64
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/audio-player-composable/utils.ts"],"names":[],"mappings":";;;AAAA,IAAM,MAAM,GAAqB,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AACzC,IAAM,IAAI,GAAqB,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAEhC,IAAM,eAAe,GAAG,UAAC,IAAY,EAAE,OAAsB;;IAAtB,wBAAA,EAAA,cAAsB;IAClE,IAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;IAC7D,OAAO,CAAA,KAAA,IAAI,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,WAAW,EAAE,CAAA,CAAC,MAAM,WAAI,IAAI,EAAE;AAC7D,CAAC,CAAC;AAHW,QAAA,eAAe,mBAG1B;AAEK,IAAM,cAAc,GAAG,UAAC,IAAY,EAAE,OAAsB;IAAtB,wBAAA,EAAA,cAAsB;IACjE,IAAI,IAAI,KAAK,CAAC,EAAE;QACd,OAAO,EAAE,CAAC;KACX;IACD,OAAO,IAAA,uBAAe,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACxC,CAAC,CAAC;AALW,QAAA,cAAc,kBAKzB;AAEK,IAAM,eAAe,GAAG,UAAC,QAAgB,EAAE,eAAuB;IACvE,IAAM,yBAAyB,GAAG,CAAC,eAAe,GAAG,QAAQ,CAAC,GAAG,GAAG,CAAC;IAErE,IAAI,yBAAyB,GAAG,CAAC,IAAI,yBAAyB,IAAI,EAAE;QAClE,OAAO,MAAM,CAAC;IAChB,IAAI,yBAAyB,GAAG,EAAE,IAAI,yBAAyB,IAAI,EAAE;QACnE,OAAO,OAAO,CAAC;IACjB,IAAI,yBAAyB,GAAG,EAAE,IAAI,yBAAyB,IAAI,EAAE;QACnE,OAAO,OAAO,CAAC;IAEjB,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAXW,QAAA,eAAe,mBAW1B"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/audio-player-composable/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,kCAAkC;AAClC,wDAAgE;AAChE,oCAAiC;AACjC,wCAA2C;AAC3C,qCAAgD;AAGhD,IAAM,MAAM,GAAqB,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AACzC,IAAM,IAAI,GAAqB,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAEhC,IAAM,eAAe,GAAG,UAAC,IAAY,EAAE,OAAsB;;IAAtB,wBAAA,EAAA,cAAsB;IAClE,IAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;IAC7D,OAAO,CAAA,KAAA,IAAI,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,WAAW,EAAE,CAAA,CAAC,MAAM,WAAI,IAAI,EAAE;AAC7D,CAAC,CAAC;AAHW,QAAA,eAAe,mBAG1B;AAEK,IAAM,cAAc,GAAG,UAAC,IAAY,EAAE,OAAsB;IAAtB,wBAAA,EAAA,cAAsB;IACjE,IAAI,IAAI,KAAK,CAAC,EAAE;QACd,OAAO,EAAE,CAAC;KACX;IACD,OAAO,IAAA,uBAAe,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACxC,CAAC,CAAC;AALW,QAAA,cAAc,kBAKzB;AAEK,IAAM,eAAe,GAAG,UAAC,QAAgB,EAAE,eAAuB;IACvE,IAAM,yBAAyB,GAAG,CAAC,eAAe,GAAG,QAAQ,CAAC,GAAG,GAAG,CAAC;IAErE,IAAI,yBAAyB,GAAG,CAAC,IAAI,yBAAyB,IAAI,EAAE;QAClE,OAAO,MAAM,CAAC;IAChB,IAAI,yBAAyB,GAAG,EAAE,IAAI,yBAAyB,IAAI,EAAE;QACnE,OAAO,OAAO,CAAC;IACjB,IAAI,yBAAyB,GAAG,EAAE,IAAI,yBAAyB,IAAI,EAAE;QACnE,OAAO,OAAO,CAAC;IAEjB,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAXW,QAAA,eAAe,mBAW1B;AAQK,IAAM,4BAA4B,GAAG,UAAC,EAIlB;QAHzB,KAAK,WAAA,EACK,WAAW,cAAA,EACrB,MAAM,YAAA;IAEC,IAAA,eAAe,GAAI,IAAA,+BAAqB,GAAE,gBAA3B,CAA4B;IAClD,IAAM,OAAO,GAAG,EAAC,MAAM,EAAE,eAAe,EAAE,cAAc,EAAE,KAAK,EAAC,CAAC;IAC1D,IAAA,iBAAiB,GAAI,KAAK,kBAAT,CAAU;IAClC,IAAM,GAAG,GAAG,iBAAiB,IAAI,WAAW,CAAC;IAE7C,IAAM,QAAQ,GAAG,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC;IACzC,IAAA,mBAAW,EAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AACtC,CAAC,CAAC;AAZW,QAAA,4BAA4B,gCAYvC;AAEK,IAAM,kBAAkB,GAAG,UAChC,KAAyC,EACzC,YAAoB;IAEpB,IAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAC;IAClB,IAAA,SAAS,GAAI,KAAK,UAAT,CAAU;IAE1B,6BACK,IAAA,SAAG,EAAC,KAAK,EAAE,4BAAqB,YAAY,CAAE,CAAC,GAC/C,IAAA,wCAAwB,EAAC,SAAS,CAAC,EACtC;AACJ,CAAC,CAAC;AAXW,QAAA,kBAAkB,sBAW7B"}
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { BannerProps } from './types';
3
- export declare const Banner: React.FC<BannerProps>;
2
+ export declare const Banner: import("../utils/with-own-theme").NewsKitReactComponents<BannerProps>;
4
3
  //# sourceMappingURL=banner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../src/banner/banner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAsB,WAAW,EAAC,MAAM,SAAS,CAAC;AAmDzD,eAAO,MAAM,MAAM,uBAA0D,CAAC"}
1
+ {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../src/banner/banner.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,EAAC,MAAM,SAAS,CAAC;AAmDzD,eAAO,MAAM,MAAM,uEAA0D,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { ButtonOrButtonLinkProps } from './types';
3
- export declare const Button: React.FC<ButtonOrButtonLinkProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
3
+ export declare const Button: import("../utils/with-own-theme").NewsKitReactComponents<ButtonOrButtonLinkProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
4
4
  //# sourceMappingURL=button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,uBAAuB,EAA2B,MAAM,SAAS,CAAC;AAoG1E,eAAO,MAAM,MAAM,gGAA0D,CAAC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,uBAAuB,EAA2B,MAAM,SAAS,CAAC;AAoG1E,eAAO,MAAM,MAAM,gJAA0D,CAAC"}
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { BylineProps } from './types';
3
- export declare const Byline: React.FC<BylineProps>;
2
+ export declare const Byline: import("../utils/with-own-theme").NewsKitReactComponents<BylineProps>;
4
3
  //# sourceMappingURL=byline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"byline.d.ts","sourceRoot":"","sources":["../../../src/byline/byline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAC,WAAW,EAAa,MAAM,SAAS,CAAC;AAgLhD,eAAO,MAAM,MAAM,uBAEjB,CAAC"}
1
+ {"version":3,"file":"byline.d.ts","sourceRoot":"","sources":["../../../src/byline/byline.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAC,WAAW,EAAa,MAAM,SAAS,CAAC;AAgLhD,eAAO,MAAM,MAAM,uEAEjB,CAAC"}
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const CaptionInset: import("react").FC<import("./types").CaptionProps>;
1
+ export declare const CaptionInset: import("../utils/with-own-theme").NewsKitReactComponents<import("./types").CaptionProps>;
3
2
  //# sourceMappingURL=caption-inset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"caption-inset.d.ts","sourceRoot":"","sources":["../../../src/caption/caption-inset.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,YAAY,oDAIvB,CAAC"}
1
+ {"version":3,"file":"caption-inset.d.ts","sourceRoot":"","sources":["../../../src/caption/caption-inset.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,0FAIvB,CAAC"}
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { CaptionProps } from './types';
3
- export declare const Caption: React.FC<CaptionProps>;
2
+ export declare const Caption: import("../utils/with-own-theme").NewsKitReactComponents<CaptionProps>;
4
3
  //# sourceMappingURL=caption.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"caption.d.ts","sourceRoot":"","sources":["../../../src/caption/caption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,YAAY,EAAC,MAAM,SAAS,CAAC;AAwErC,eAAO,MAAM,OAAO,wBAElB,CAAC"}
1
+ {"version":3,"file":"caption.d.ts","sourceRoot":"","sources":["../../../src/caption/caption.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAC,MAAM,SAAS,CAAC;AAwErC,eAAO,MAAM,OAAO,wEAElB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- export declare const CardInset: import("react").FC<import("./types").CardProps & import("react").RefAttributes<HTMLDivElement>>;
2
+ export declare const CardInset: import("../utils/with-own-theme").NewsKitReactComponents<import("./types").CardProps & import("react").RefAttributes<HTMLDivElement>>;
3
3
  //# sourceMappingURL=card-inset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"card-inset.d.ts","sourceRoot":"","sources":["../../../src/card/card-inset.tsx"],"names":[],"mappings":";AAMA,eAAO,MAAM,SAAS,iGAGpB,CAAC"}
1
+ {"version":3,"file":"card-inset.d.ts","sourceRoot":"","sources":["../../../src/card/card-inset.tsx"],"names":[],"mappings":";AAMA,eAAO,MAAM,SAAS,uIAGpB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { CardProps } from './types';
3
- export declare const Card: React.FC<CardProps & React.RefAttributes<HTMLDivElement>>;
3
+ export declare const Card: import("../utils/with-own-theme").NewsKitReactComponents<CardProps & React.RefAttributes<HTMLDivElement>>;
4
4
  //# sourceMappingURL=card.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/card/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,SAAS,EAAC,MAAM,SAAS,CAAC;AAmOlC,eAAO,MAAM,IAAI,2DAAwD,CAAC"}
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/card/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,SAAS,EAAC,MAAM,SAAS,CAAC;AAmOlC,eAAO,MAAM,IAAI,2GAAwD,CAAC"}