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
@@ -10,64 +10,134 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
14
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
15
+ if (ar || !(i in from)) {
16
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
17
+ ar[i] = from[i];
18
+ }
19
+ }
20
+ return to.concat(ar || Array.prototype.slice.call(from));
21
+ };
13
22
  Object.defineProperty(exports, "__esModule", { value: true });
14
23
  exports.useKeypress = void 0;
15
24
  var react_1 = require("react");
16
- var keysMap = {
17
- // Fixing inconsistencies from older browsers: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values
18
- // event.key: [IE, rest browsers]
19
- ScrollLock: ['Scroll', 'ScrollLock'],
20
- Escape: ['Esc', 'Escape'],
21
- Delete: ['Del', 'Delete'],
22
- ArrowDown: ['Down', 'ArrowDown'],
23
- ArrowLeft: ['Left', 'ArrowLeft'],
24
- ArrowRight: ['Right', 'ArrowRight'],
25
- ArrowUp: ['Up', 'ArrowUp'],
26
- ' ': ['Spacebar', ' '],
27
- '.': ['Decimal', '.'],
28
- '*': ['Multiply', '*'],
29
- '+': ['Add', '+'],
30
- '-': ['Subtract', '-'],
31
- '/': ['Divide', '/'],
32
- Meta: ['Win', 'Meta'],
33
- CrSel: ['Crsel', 'CrSel'],
34
- ExSel: ['Exsel', 'ExSel'],
35
- ContextMenu: ['Apps', 'ContextMenu'],
36
- };
25
+ var compose_event_handlers_1 = require("../compose-event-handlers");
37
26
  var isKeyboardEvent = function (event) {
38
27
  return 'key' in event;
39
28
  };
29
+ /*
30
+ This store together with addEventIfNotExist and removeEvent track if the event with the same
31
+ keyShortcut is already attached to the element. This is needed to prevent adding the same event twice.
32
+
33
+ In context of audio-player if you add 2 buttons for SkipBackward with same
34
+ keyShortcut it will attach event only for the first one.
35
+ */
36
+ var eventsStore = new WeakMap();
37
+ var addEventIfNotExist = function (_a) {
38
+ var element = _a.element, keyShortcut = _a.keyShortcut, keyUp = _a.keyUp, keyDown = _a.keyDown;
39
+ var attachedShortcuts = eventsStore.get(element);
40
+ var attachEvents = function () {
41
+ element.addEventListener('keydown', keyDown, false);
42
+ element.addEventListener('keyup', keyUp, false);
43
+ };
44
+ if (!attachedShortcuts) {
45
+ eventsStore.set(element, [keyShortcut]);
46
+ attachEvents();
47
+ }
48
+ else if (Array.isArray(attachedShortcuts) &&
49
+ attachedShortcuts.indexOf(keyShortcut) === -1) {
50
+ eventsStore.set(element, __spreadArray(__spreadArray([], attachedShortcuts, true), [keyShortcut], false));
51
+ attachEvents();
52
+ }
53
+ };
54
+ var removeEvent = function (_a) {
55
+ var element = _a.element, keyShortcut = _a.keyShortcut, keyUp = _a.keyUp, keyDown = _a.keyDown;
56
+ var attachedShortcuts = eventsStore.get(element);
57
+ if (attachedShortcuts) {
58
+ eventsStore.set(element, attachedShortcuts.filter(function (shortcut) { return shortcut !== keyShortcut; }));
59
+ }
60
+ element.removeEventListener('keyup', keyUp, false);
61
+ element.removeEventListener('keydown', keyDown, false);
62
+ };
63
+ /*
64
+ In order to use multiple keys at once, you need to use keyDown and keyUp simultaneously.
65
+ - on KeyDown event, keys code is stored in a object ( keyStore )
66
+ - on KeyUp event, keys code is removed from the object
67
+
68
+ When the keyStore values match the key argument , the callback is called.
69
+ https://www.gavsblog.com/blog/detect-single-and-multiple-keypress-events-javascript
70
+ */
40
71
  var useKeypress = function (key, action, opts) {
72
+ var keyStore = (0, react_1.useRef)({});
73
+ var keyLowerCase = (typeof key === 'string' ? [key] : key).map(function (k) {
74
+ return k.toLowerCase();
75
+ });
41
76
  (0, react_1.useEffect)(function () {
42
77
  var defaultOptions = {
43
78
  enabled: true,
44
79
  eventType: 'keyup',
80
+ preventDefault: true,
45
81
  };
46
82
  var options = __assign(__assign({}, defaultOptions), opts);
47
- var enabled = options.enabled, eventType = options.eventType, target = options.target;
83
+ var enabled = options.enabled, eventType = options.eventType, target = options.target, preventDefault = options.preventDefault;
48
84
  var handle = function (e) {
85
+ /* istanbul ignore if */
49
86
  if (!isKeyboardEvent(e)) {
50
87
  return;
51
88
  }
52
89
  if (e.defaultPrevented) {
53
90
  return;
54
91
  }
55
- var pressedKey = e.key;
56
- var keyMap = key && (keysMap[key] || [key]);
57
- if (action && keyMap && keyMap.includes(pressedKey)) {
58
- action(e);
59
- e.preventDefault();
60
- e.stopPropagation();
92
+ if (e.type === eventType) {
93
+ var pressedKey = Object.entries(keyStore.current)
94
+ .filter(function (_a) {
95
+ var value = _a[1];
96
+ return value;
97
+ })
98
+ .map(function (_a) {
99
+ var activeKey = _a[0];
100
+ return activeKey.toLowerCase();
101
+ })
102
+ .join(' + ');
103
+ var keyIsMatched = keyLowerCase.includes(pressedKey);
104
+ if (action && keyIsMatched) {
105
+ action(e);
106
+ if (preventDefault) {
107
+ e.preventDefault();
108
+ e.stopPropagation();
109
+ }
110
+ }
61
111
  }
62
112
  };
63
113
  var targetNode = target && target.current ? target.current : document;
114
+ var addToStore = function (e) {
115
+ keyStore.current[e.key] = true;
116
+ };
117
+ var removeFromStore = function (e) {
118
+ delete keyStore.current[e.key];
119
+ };
120
+ var onKeyDown = (0, compose_event_handlers_1.composeEventHandlers)([addToStore, handle]);
121
+ var onKeyUp = (0, compose_event_handlers_1.composeEventHandlers)([handle, removeFromStore]);
64
122
  if (enabled && typeof targetNode !== 'undefined') {
65
- targetNode.addEventListener(eventType, handle, false);
123
+ addEventIfNotExist({
124
+ element: targetNode,
125
+ keyShortcut: keyLowerCase.toString(),
126
+ keyUp: onKeyUp,
127
+ keyDown: onKeyDown,
128
+ });
66
129
  }
67
130
  return function () {
68
- return targetNode && targetNode.removeEventListener(eventType, handle, false);
131
+ if (targetNode) {
132
+ removeEvent({
133
+ element: targetNode,
134
+ keyShortcut: keyLowerCase.toString(),
135
+ keyUp: onKeyUp,
136
+ keyDown: onKeyDown,
137
+ });
138
+ }
69
139
  };
70
- }, [key, action, opts]);
140
+ }, [keyLowerCase, action, opts]);
71
141
  };
72
142
  exports.useKeypress = useKeypress;
73
143
  //# sourceMappingURL=use-keypress.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-keypress.js","sourceRoot":"","sources":["../../../../src/utils/hooks/use-keypress.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+BAA2C;AAE3C,IAAM,OAAO,GAAG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W,CAAC;oBACV,OAAO,EAAE,UAAU;oBACnB,WAAW,EAAE,YAAY,CAAC,QAAQ,EAAE;oBACpC,KAAK,EAAE,OAAO;oBACd,OAAO,EAAE,SAAS;iBACnB,CAAC,CAAC;aACJ;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;AACnC,CAAC,CAAC;AAjFW,QAAA,WAAW,eAiFtB"}
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
+ import { NewsKitReactComponents } from '../../with-own-theme';
2
3
  export declare const MQContext: React.Context<{}>;
3
4
  export declare function MediaQueryProvider({ children }: {
4
5
  children: React.ReactNode;
5
6
  }): JSX.Element;
6
- export declare const withMediaQueryProvider: <P extends {}>(BaseComponent: React.ComponentType<P>) => React.FC<P>;
7
+ export declare const withMediaQueryProvider: <P extends {}>(BaseComponent: React.ComponentType<P>) => NewsKitReactComponents<P>;
7
8
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../src/utils/hooks/use-media-query/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,eAAO,MAAM,SAAS,mBAA0B,CAAC;AAEjD,wBAAgB,kBAAkB,CAAC,EAAC,QAAQ,EAAC,EAAE;IAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAC,eAgEzE;AAED,eAAO,MAAM,sBAAsB,sEAUlC,CAAC"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../src/utils/hooks/use-media-query/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAQ5D,eAAO,MAAM,SAAS,mBAA0B,CAAC;AAEjD,wBAAgB,kBAAkB,CAAC,EAAC,QAAQ,EAAC,EAAE;IAAC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AAC,KAAK,EAAE,GAAG,IAAK,OAAA,CACpE,8BAAC,kBAAkB;QACjB,8BAAC,aAAa,aAAC,GAAG,EAAE,GAAG,IAAM,KAAK,EAAI,CACnB,CACtB,EAJqE,CAIrE,CAAC,CAAC;IAEH,OAAQ,gBAAyD,CAAC;AACpE,CAAC,CAAC;AAVW,QAAA,sBAAsB,0BAUjC"}
@@ -2,7 +2,7 @@ import { TransitionToken } from '../../theme/types';
2
2
  import { ThemeProp } from '../style-types';
3
3
  import { CSSObject } from './emotion';
4
4
  import { MQ } from './types';
5
- export declare const getTransitionPresetFromTheme: <Props extends ThemeProp>(token: MQ<TransitionToken> | MQ<TransitionToken[]>, componentClassName?: string | undefined) => (props: Props) => "" | CSSObject | {
5
+ export declare const getTransitionPresetFromTheme: <Props extends ThemeProp>(token: MQ<TransitionToken> | MQ<TransitionToken[]>, componentClassName?: string | undefined) => (props: Props) => "" | {
6
6
  [index: string]: CSSObject;
7
7
  };
8
8
  export declare const getTransitionPreset: <Props extends ThemeProp>(defaultPath: string | undefined, overridePath?: string | false, componentClassName?: string | undefined) => (props: Props) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"transition-preset.d.ts","sourceRoot":"","sources":["../../../../src/utils/style/transition-preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAK3B,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAC,SAAS,EAAC,MAAM,WAAW,CAAC;AACpC,OAAO,EAAC,EAAE,EAAC,MAAM,SAAS,CAAC;AAsG3B,eAAO,MAAM,4BAA4B,mCAChC,GAAG,eAAe,CAAC,GAAG,GAAG,eAAe,EAAE,CAAC;;CAoEnD,CAAC;AAsCF,eAAO,MAAM,mBAAmB,yCA7BjB,MAAM,GAAG,SAAS,iBACjB,MAAM,GAAG,KAAK,mEA+B7B,CAAC"}
1
+ {"version":3,"file":"transition-preset.d.ts","sourceRoot":"","sources":["../../../../src/utils/style/transition-preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAK3B,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAC,SAAS,EAAC,MAAM,WAAW,CAAC;AACpC,OAAO,EAAC,EAAE,EAAC,MAAM,SAAS,CAAC;AA8H3B,eAAO,MAAM,4BAA4B,mCAChC,GAAG,eAAe,CAAC,GAAG,GAAG,eAAe,EAAE,CAAC;;CAkGnD,CAAC;AAsCF,eAAO,MAAM,mBAAmB,yCA7BjB,MAAM,GAAG,SAAS,iBACjB,MAAM,GAAG,KAAK,mEA+B7B,CAAC"}
@@ -78,7 +78,27 @@ var getMergedTransitionPresets = function (token, theme) {
78
78
  }, {});
79
79
  return mergedTransitionPresets;
80
80
  };
81
+ var setDurationZero = function (transitionPreset) {
82
+ var presetWithoutDuration = {};
83
+ Object.keys(transitionPreset).map(function (key) {
84
+ var stateObj = transitionPreset[key];
85
+ presetWithoutDuration[key] = __assign({}, stateObj);
86
+ if ('transitionDuration' in presetWithoutDuration[key]) {
87
+ presetWithoutDuration[key].transitionDuration = '0ms';
88
+ }
89
+ return presetWithoutDuration;
90
+ });
91
+ return presetWithoutDuration;
92
+ };
93
+ var NO_PREFERENCE = '(prefers-reduced-motion: no-preference)';
94
+ var REDUCED = '(prefers-reduced-motion: reduce)';
95
+ var NO_PREFERENCE_MQ = "@media screen and ".concat(NO_PREFERENCE);
96
+ var REDUCED_MQ = "@media screen and ".concat(REDUCED);
97
+ var combineMediaQuery = function (layoutMQ, motionMQ) {
98
+ return "".concat(layoutMQ, " and ").concat(motionMQ);
99
+ };
81
100
  var getTransitionPresetFromTheme = function (token, componentClassName) { return function (props) {
101
+ var _a, _b;
82
102
  /* istanbul ignore if */
83
103
  if (!token)
84
104
  return '';
@@ -89,27 +109,39 @@ var getTransitionPresetFromTheme = function (token, componentClassName) { return
89
109
  var mediaQuery = (0, responsive_helpers_1.getMediaQueryFromTheme)(key, nextKey)({
90
110
  theme: props.theme,
91
111
  });
112
+ var mediaQueryReduced = combineMediaQuery(mediaQuery, REDUCED);
113
+ var mediaQueryNoPreference = combineMediaQuery(mediaQuery, NO_PREFERENCE);
92
114
  if (Array.isArray(transitionPresetToken)) {
93
115
  var mergedTransitionPresets = getMergedTransitionPresets(transitionPresetToken, props.theme);
94
- acc[mediaQuery] = getTransitionPresetValueFromTheme(mergedTransitionPresets, componentClassName);
116
+ acc[mediaQueryNoPreference] = getTransitionPresetValueFromTheme(mergedTransitionPresets, componentClassName);
117
+ acc[mediaQueryReduced] = getTransitionPresetValueFromTheme(setDurationZero(mergedTransitionPresets), componentClassName);
95
118
  }
96
119
  else {
97
120
  var transitionPreset_1 = (0, utils_1.unifyTransition)(props.theme, transitionPresetToken);
98
- acc[mediaQuery] = getTransitionPresetValueFromTheme(transitionPreset_1, componentClassName);
121
+ acc[mediaQueryNoPreference] = getTransitionPresetValueFromTheme(transitionPreset_1, componentClassName);
122
+ acc[mediaQueryReduced] = getTransitionPresetValueFromTheme(setDurationZero(transitionPreset_1), componentClassName);
99
123
  }
100
124
  return acc;
101
125
  }, {});
102
126
  }
103
127
  if (Array.isArray(token)) {
104
128
  var mergedTransitionPresets = getMergedTransitionPresets(token, props.theme);
105
- return Object.keys(mergedTransitionPresets).length
106
- ? getTransitionPresetValueFromTheme(mergedTransitionPresets, componentClassName)
107
- : '';
129
+ if (Object.keys(mergedTransitionPresets).length) {
130
+ return _a = {},
131
+ _a[NO_PREFERENCE_MQ] = getTransitionPresetValueFromTheme(mergedTransitionPresets, componentClassName),
132
+ _a[REDUCED_MQ] = getTransitionPresetValueFromTheme(setDurationZero(mergedTransitionPresets), componentClassName),
133
+ _a;
134
+ }
135
+ return '';
108
136
  }
109
137
  var transitionPreset = (0, utils_1.unifyTransition)(props.theme, token);
110
- return transitionPreset
111
- ? getTransitionPresetValueFromTheme(transitionPreset, componentClassName)
112
- : '';
138
+ if (transitionPreset) {
139
+ return _b = {},
140
+ _b[NO_PREFERENCE_MQ] = getTransitionPresetValueFromTheme(transitionPreset, componentClassName),
141
+ _b[REDUCED_MQ] = getTransitionPresetValueFromTheme(setDurationZero(transitionPreset), componentClassName),
142
+ _b;
143
+ }
144
+ return '';
113
145
  }; };
114
146
  exports.getTransitionPresetFromTheme = getTransitionPresetFromTheme;
115
147
  var getDefaultedValue = function (getPresetFromThemeUtil, presetType) { return function (defaultPath, overridePath, componentClassName) {
@@ -1 +1 @@
1
- {"version":3,"file":"transition-preset.js","sourceRoot":"","sources":["../../../../src/utils/style/transition-preset.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AASA,4CAAwC;AACxC,0CAAsC;AACtC,iCAA2D;AAC3D,wDAAmD;AAInD,4DAA2E;AAE3E,IAAM,2BAA2B,GAA0C;IACzE,CAAC,oBAAoB,EAAE,IAAI,CAAC;IAC5B,CAAC,oBAAoB,EAAE,IAAI,CAAC;IAC5B,CAAC,iBAAiB,EAAE,IAAI,CAAC;IACzB,CAAC,0BAA0B,EAAE,IAAI,CAAC;IAClC,CAAC,WAAW,EAAE,GAAG,CAAC;CACnB,CAAC;AAEF,IAAM,iCAAiC,GAAG,UACxC,gBAAkC,EAClC,kBAA2B;IAE3B,OAAA,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,EAAuB;YAAtB,QAAQ,QAAA,EAAE,WAAW,QAAA;QAClE,IAAI,WAAW,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE;YAClD,IAAM,KAAK,GAAG,QAAQ;iBACnB,KAAK,CAAC,WAAW,CAAC;iBAClB,GAAG,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,CAAC,WAAW,EAAE,EAAf,CAAe,CAAC;iBACzB,IAAI,CAAC,GAAG,CAAC,CAAC;YACb,IAAM,QAAQ,GAAG,YAAK,kBAAkB,cAAI,KAAK,CAAE,CAAC;YAEpD,IAAI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UAAkB,IACf,OAAA,UACH,WAA+B,EAC/B,YAAiC,EACjC,kBAA2B;IAD3B,6BAAA,EAAA,iBAAiC;IAE9B,OAAA,UAAC,KAAY;QAChB,IAAM,KAAK,GAAG,IAAA,oBAAQ,EAAC,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;QAErE,IAAI,uBAAuB,CAAC;QAE5B,IAAI,IAAA,iCAAY,EAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE;YAChD,uBAAuB,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,OAAO;gBAC5D,IAAA,KAAgB,OAA2B,EAA1C,EAAE,QAAA,EAAE,OAAO,QAA+B,CAAC;gBAClD,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAA,yBAAiB,EAAC,OAAO,CAAC;oBACnC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC;oBACxB,CAAC,CAAC,OAAO,CAAwC,CAAC;gBAEpD,OAAO,GAAG,CAAC;YACb,CAAC,EAAE,EAA4D,CAAC,CAAC;SAClE;aAAM;YACL,uBAAuB,GAAG,IAAA,yBAAiB,EAAC,KAAK,CAAC;gBAChD,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;gBACtB,CAAC,CAAC,KAAK,CAAC;SACX;QAED,OAAO,sBAAsB,CAC3B,uBAAuB,EACvB,kBAAkB,CACnB,CAAC,KAAK,CAAC,CAAC;IACX,CAAC;AAxBI,CAwBJ,EA5BI,CA4BJ,CAAC;AAEW,QAAA,mBAAmB,GAAG,iBAAiB,CAClD,oCAA4B,EAC5B,kBAAkB,CACnB,CAAC"}
1
+ {"version":3,"file":"transition-preset.js","sourceRoot":"","sources":["../../../../src/utils/style/transition-preset.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AASA,4CAAwC;AACxC,0CAAsC;AACtC,iCAA2D;AA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C,KAAK,CAAC,WAAW,CAAC,EAAE;YAChD,uBAAuB,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,OAAO;gBAC5D,IAAA,KAAgB,OAA2B,EAA1C,EAAE,QAAA,EAAE,OAAO,QAA+B,CAAC;gBAClD,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAA,yBAAiB,EAAC,OAAO,CAAC;oBACnC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC;oBACxB,CAAC,CAAC,OAAO,CAAwC,CAAC;gBAEpD,OAAO,GAAG,CAAC;YACb,CAAC,EAAE,EAA4D,CAAC,CAAC;SAClE;aAAM;YACL,uBAAuB,GAAG,IAAA,yBAAiB,EAAC,KAAK,CAAC;gBAChD,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;gBACtB,CAAC,CAAC,KAAK,CAAC;SACX;QAED,OAAO,sBAAsB,CAC3B,uBAAuB,EACvB,kBAAkB,CACnB,CAAC,KAAK,CAAC,CAAC;IACX,CAAC;AAxBI,CAwBJ,EA5BI,CA4BJ,CAAC;AAEW,QAAA,mBAAmB,GAAG,iBAAiB,CAClD,oCAA4B,EAC5B,kBAAkB,CACnB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export declare type DeepPartial<T> = T extends object ? {
2
2
  [P in keyof T]?: DeepPartial<T[P]>;
3
3
  } : T;
4
+ export declare type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
4
5
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/types.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GACzC;KACG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACnC,GACD,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/types.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GACzC;KACG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACnC,GACD,CAAC,CAAC;AAEN,oBAAY,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"}
@@ -1,7 +1,10 @@
1
1
  import React from 'react';
2
2
  import { StylePreset } from '../theme';
3
+ export declare type NewsKitReactComponents<T> = React.FC<T> & {
4
+ stylePresets?: Record<string, StylePreset>;
5
+ };
3
6
  export declare const withOwnTheme: <P extends {}>(BaseComponent: React.ComponentType<P> | React.ForwardRefExoticComponent<P>) => ({ defaults, stylePresets, }: {
4
7
  defaults: Record<string, Object>;
5
8
  stylePresets?: Record<string, StylePreset> | undefined;
6
- }) => React.FC<P>;
9
+ }) => NewsKitReactComponents<P>;
7
10
  //# sourceMappingURL=with-own-theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"with-own-theme.d.ts","sourceRoot":"","sources":["../../../src/utils/with-own-theme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAe,WAAW,EAAuB,MAAM,UAAU,CAAC;AAiBzE,eAAO,MAAM,YAAY;cAMb,OAAO,MAAM,EAAE,MAAM,CAAC;;iBAajC,CAAC"}
1
+ {"version":3,"file":"with-own-theme.d.ts","sourceRoot":"","sources":["../../../src/utils/with-own-theme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAe,WAAW,EAAuB,MAAM,UAAU,CAAC;AAGzE,oBAAY,sBAAsB,CAAC,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;CAC5C,CAAC;AAgBF,eAAO,MAAM,YAAY;cAMb,OAAO,MAAM,EAAE,MAAM,CAAC;;+BAiBjC,CAAC"}
@@ -29,7 +29,9 @@ var withOwnTheme = function (BaseComponent) { return function (_a) {
29
29
  };
30
30
  var WrappedComponent = react_1.default.forwardRef(function (props, ref) { return (react_1.default.createElement(theme_1.ThemeProvider, { theme: componentTheme },
31
31
  react_1.default.createElement(BaseComponent, __assign({ ref: ref }, props)))); });
32
- return WrappedComponent;
32
+ var Component = WrappedComponent;
33
+ Component.stylePresets = stylePresets;
34
+ return Component;
33
35
  }; };
34
36
  exports.withOwnTheme = withOwnTheme;
35
37
  //# sourceMappingURL=with-own-theme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"with-own-theme.js","sourceRoot":"","sources":["../../../src/utils/with-own-theme.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,kCAAyE;AACzE,2CAAuC;AAEvC,IAAM,UAAU,GAAG,UACjB,KAAY,EACZ,QAAgC,EAChC,YAA0C;IAE1C,IAAM,QAAQ,GAAG,IAAA,oBAAY,wBACxB,KAAK,KACR,QAAQ,EAAE,KAAK,EACf,iBAAiB,EAAE,IAAA,sBAAS,EAAC,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,EAC/D,YAAY,EAAE,IAAA,sBAAS,EAAC,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,IACzD,CAAC;IACH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAEK,IAAM,YAAY,GAAG,UAC1B,aAA0E,IACvE,OAAA,UAAC,EAML;QALC,QAAQ,cAAA,EACR,YAAY,kBAAA;IAKZ,IAAM,cAAc,GAAG,UAAC,WAAkB;QACxC,OAAA,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c;QAClC,8BAAC,aAAa,aAAC,GAAG,EAAE,GAAG,IAAM,KAAK,EAAI,CACxB,CACjB,EAJqE,CAIrE,CAAC,CAAC;IAEH,IAAM,SAAS,GAAI,gBAAyD,CAAC;IAE7E,SAAS,CAAC,YAAY,GAAG,YAAY,CAAC;IAEtC,OAAO,SAAS,CAAC;AACnB,CAAC,EArBI,CAqBJ,CAAC;AAvBW,QAAA,YAAY,gBAuBvB"}
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "5.3.0"
2
+ "version": "5.4.2"
3
3
  }
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { VideoPlayerProps } from './types';
3
- export declare const VideoPlayer: React.FC<VideoPlayerProps & React.RefAttributes<HTMLVideoElement>>;
3
+ export declare const VideoPlayer: import("../utils/with-own-theme").NewsKitReactComponents<VideoPlayerProps & React.RefAttributes<HTMLVideoElement>>;
4
4
  //# sourceMappingURL=video-player.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"video-player.d.ts","sourceRoot":"","sources":["../../../src/video-player/video-player.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAKvC,OAAO,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAwDzC,eAAO,MAAM,WAAW,oEAGtB,CAAC"}
1
+ {"version":3,"file":"video-player.d.ts","sourceRoot":"","sources":["../../../src/video-player/video-player.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAKvC,OAAO,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAwDzC,eAAO,MAAM,WAAW,oHAGtB,CAAC"}
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { VolumeControlProps } from './types';
3
- export declare const VolumeControl: React.FC<VolumeControlProps>;
2
+ export declare const VolumeControl: import("../utils/with-own-theme").NewsKitReactComponents<VolumeControlProps>;
4
3
  //# sourceMappingURL=volume-control.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"volume-control.d.ts","sourceRoot":"","sources":["../../../src/volume-control/volume-control.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAG5D,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAwK3C,eAAO,MAAM,aAAa,8BAGxB,CAAC"}
1
+ {"version":3,"file":"volume-control.d.ts","sourceRoot":"","sources":["../../../src/volume-control/volume-control.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAwK3C,eAAO,MAAM,aAAa,8EAGxB,CAAC"}
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { AssistiveTextProps } from './types';
3
- export declare const AssistiveText: React.FC<AssistiveTextProps>;
2
+ export declare const AssistiveText: import("../utils/with-own-theme").NewsKitReactComponents<AssistiveTextProps>;
4
3
  //# sourceMappingURL=assistive-text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"assistive-text.d.ts","sourceRoot":"","sources":["../../../src/assistive-text/assistive-text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAuC3C,eAAO,MAAM,aAAa,8BAGxB,CAAC"}
1
+ {"version":3,"file":"assistive-text.d.ts","sourceRoot":"","sources":["../../../src/assistive-text/assistive-text.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAuC3C,eAAO,MAAM,aAAa,8EAGxB,CAAC"}
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { AudioPlayerProps } from './types';
3
- export declare const AudioPlayer: React.FC<AudioPlayerProps>;
2
+ export declare const AudioPlayer: import("../utils/with-own-theme").NewsKitReactComponents<AudioPlayerProps>;
4
3
  //# sourceMappingURL=audio-player.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"audio-player.d.ts","sourceRoot":"","sources":["../../../src/audio-player/audio-player.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,MAAM,OAAO,CAAC;AAkBf,OAAO,EAAc,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAyVtD,eAAO,MAAM,WAAW,4BAGtB,CAAC"}
1
+ {"version":3,"file":"audio-player.d.ts","sourceRoot":"","sources":["../../../src/audio-player/audio-player.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAc,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAyVtD,eAAO,MAAM,WAAW,4EAGtB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { SyntheticEvent } from 'react';
2
2
  import { AudioFunctionDependencies } from './types';
3
- export declare const useAudioFunctions: ({ onPreviousTrack, onNextTrack, autoPlay, src, live, duration, loading, playing, showLoaderTimeoutRef, currentTimeRef, audioRef, setLoading, setCurrentTime, setPlayState, setDuration, setDisplayDuration, setBuffered, }: AudioFunctionDependencies) => {
3
+ export declare const useAudioFunctions: ({ autoPlay, src, live, duration, loading, playing, showLoaderTimeoutRef, currentTimeRef, audioRef, setLoading, setCurrentTime, setPlayState, setDuration, setDisplayDuration, setBuffered, }: AudioFunctionDependencies) => {
4
4
  audioEvents: {
5
5
  onPlay: () => void;
6
6
  onPause: () => void;
@@ -11,11 +11,12 @@ export declare const useAudioFunctions: ({ onPreviousTrack, onNextTrack, autoPla
11
11
  onTimeUpdate: ({ target }: SyntheticEvent<HTMLAudioElement, Event>) => void;
12
12
  onProgress: ({ target }: SyntheticEvent<HTMLAudioElement, Event>) => void;
13
13
  };
14
- onClickPrevious: () => void;
15
- onClickNext: () => void;
16
- onClickBackward: () => void;
17
- onClickForward: () => void;
18
- onPopoutClick: () => void;
14
+ onClickBackward: ({ seconds }: {
15
+ seconds: number;
16
+ }) => void;
17
+ onClickForward: ({ seconds }: {
18
+ seconds: number;
19
+ }) => void;
19
20
  togglePlay: () => void;
20
21
  onChangeSlider: (value: number) => void;
21
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"audio-functions.d.ts","sourceRoot":"","sources":["../../../src/audio-player-composable/audio-functions.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,cAAc,EAAY,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAc,yBAAyB,EAAC,MAAM,SAAS,CAAC;AAM/D,eAAO,MAAM,iBAAiB,+NAqB9B,yBAAyB;;;;;;;uCAoJV,eAAe,gBAAgB,EAAE,KAAK,CAAC;mCAmFpB,eAAe,gBAAgB,EAAE,KAAK,CAAC;iCAJzC,eAAe,gBAAgB,EAAE,KAAK,CAAC;;;;;;;;4BA+B3D,MAAM;CAsEjB,CAAC"}
1
+ {"version":3,"file":"audio-functions.d.ts","sourceRoot":"","sources":["../../../src/audio-player-composable/audio-functions.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,cAAc,EAAY,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAc,yBAAyB,EAAC,MAAM,SAAS,CAAC;AAM/D,eAAO,MAAM,iBAAiB,iMAiB3B,yBAAyB;;;;;;;uCA+Hb,eAAe,gBAAgB,EAAE,KAAK,CAAC;mCA0EvC,eAAe,gBAAgB,EAAE,KAAK,CAAC;iCAPvC,eAAe,gBAAgB,EAAE,KAAK,CAAC;;;iBA/FvB,MAAM;;;iBAcN,MAAM;;;4BA+GzB,MAAM;CAoEjB,CAAC"}
@@ -19,9 +19,7 @@ import { getValueInRange } from '../utils/value-in-range';
19
19
  import { version } from '../version-number.json';
20
20
  export var useAudioFunctions = function (_a) {
21
21
  var _b;
22
- var onPreviousTrack = _a.onPreviousTrack, onNextTrack = _a.onNextTrack, autoPlay = _a.autoPlay,
23
- // disablePreviousTrack,
24
- src = _a.src, live = _a.live, duration = _a.duration, loading = _a.loading, playing = _a.playing, showLoaderTimeoutRef = _a.showLoaderTimeoutRef, currentTimeRef = _a.currentTimeRef, audioRef = _a.audioRef, setLoading = _a.setLoading, setCurrentTime = _a.setCurrentTime, setPlayState = _a.setPlayState,
22
+ var autoPlay = _a.autoPlay, src = _a.src, live = _a.live, duration = _a.duration, loading = _a.loading, playing = _a.playing, showLoaderTimeoutRef = _a.showLoaderTimeoutRef, currentTimeRef = _a.currentTimeRef, audioRef = _a.audioRef, setLoading = _a.setLoading, setCurrentTime = _a.setCurrentTime, setPlayState = _a.setPlayState,
25
23
  // setVolume,
26
24
  setDuration = _a.setDuration, setDisplayDuration = _a.setDisplayDuration, setBuffered = _a.setBuffered;
27
25
  var fireEvent = useInstrumentation().fireEvent;
@@ -81,39 +79,19 @@ export var useAudioFunctions = function (_a) {
81
79
  // },
82
80
  // [ifPlayer, setVolume],
83
81
  // );
84
- // TODO remove ignore once in use
82
+ var onClickBackward = useCallback(
85
83
  /* istanbul ignore next */
86
- var onClickPrevious = useCallback(function () {
87
- if (currentTimeRef.current > 5) {
88
- updateAudioTime(0);
89
- return;
90
- }
91
- // If no function is passed, the button is disabled, check is just to be sure; the else can't be tested.
92
- /* istanbul ignore else */
93
- if (onPreviousTrack) {
94
- onPreviousTrack();
95
- }
96
- }, [currentTimeRef, onPreviousTrack, updateAudioTime]);
97
- // TODO remove ignore once in use
98
- /* istanbul ignore next */
99
- var onClickNext = useCallback(function () {
100
- // If no function is passed, the button is disabled, check is just to be sure; the else can't be tested.
101
- /* istanbul ignore else */
102
- if (onNextTrack) {
103
- onNextTrack();
104
- }
105
- }, [onNextTrack]);
106
- // TODO remove ignore once in use
107
- /* istanbul ignore next */
108
- var onClickBackward = useCallback(function () {
109
- updateAudioTime(currentTimeRef.current - 10);
84
+ function (_a) {
85
+ var _b = _a.seconds, seconds = _b === void 0 ? 10 : _b;
86
+ updateAudioTime(currentTimeRef.current - seconds);
110
87
  var trackingInformation = getTrackingInformation('audio-player-skip-backward', EventTrigger.Click, { event_navigation_name: 'backward skip' });
111
88
  fireEvent(trackingInformation);
112
89
  }, [fireEvent, getTrackingInformation, updateAudioTime, currentTimeRef]);
113
- // TODO remove ignore once in use
90
+ var onClickForward = useCallback(
114
91
  /* istanbul ignore next */
115
- var onClickForward = useCallback(function () {
116
- updateAudioTime(currentTimeRef.current + 10);
92
+ function (_a) {
93
+ var _b = _a.seconds, seconds = _b === void 0 ? 10 : _b;
94
+ updateAudioTime(currentTimeRef.current + seconds);
117
95
  var trackingInformation = getTrackingInformation('audio-player-skip-forward', EventTrigger.Click, { event_navigation_name: 'forward skip' });
118
96
  fireEvent(trackingInformation);
119
97
  }, [fireEvent, getTrackingInformation, updateAudioTime, currentTimeRef]);
@@ -154,17 +132,7 @@ export var useAudioFunctions = function (_a) {
154
132
  live ? 'audio-player-stop-button' : 'audio-player-pause-button', EventTrigger.Click));
155
133
  }
156
134
  }, [playing, pause, fireEvent, live, getTrackingInformation]);
157
- // TODO remove ignore once in use
158
- /* istanbul ignore next */
159
- var onPopoutClick = function () {
160
- pause();
161
- fireEvent(
162
- // TODO remove ignore when implementing live functionality and test
163
- /* istanbul ignore next */
164
- getTrackingInformation('audio-player-popout', EventTrigger.Click));
165
- };
166
135
  var togglePlay = useCallback(function () {
167
- console.log(loading, 'Loading');
168
136
  if (loading) {
169
137
  return;
170
138
  }
@@ -175,11 +143,11 @@ export var useAudioFunctions = function (_a) {
175
143
  onPlay();
176
144
  }
177
145
  }, [loading, playing, onPause, onPlay]);
178
- var onProgress = function (_a) {
146
+ var onProgress = useCallback(function (_a) {
179
147
  var target = _a.target;
180
148
  setBuffered(target.buffered);
181
- };
182
- var onTimeUpdate = function (_a) {
149
+ }, [setBuffered]);
150
+ var onTimeUpdate = useCallback(function (_a) {
183
151
  var target = _a.target;
184
152
  var eventTime = Math.floor(target.currentTime);
185
153
  if (currentTimeRef.current !== eventTime) {
@@ -187,13 +155,7 @@ export var useAudioFunctions = function (_a) {
187
155
  var trackingInformation = getTrackingInformation('audio-player-audio', EventTrigger.Pulse);
188
156
  fireEvent(trackingInformation);
189
157
  }
190
- // TO Do: Should be added in the ticket for controls
191
- // if (currentTimeRef.current > 5) {
192
- // setIsPrevTrackBtnDisabled(false);
193
- // } else {
194
- // setIsPrevTrackBtnDisabled(Boolean(disablePreviousTrack));
195
- // }
196
- };
158
+ }, [fireEvent, getTrackingInformation, setCurrentTime, currentTimeRef]);
197
159
  // const onVolumeChange = useCallback(
198
160
  // ({target}: SyntheticEvent<HTMLAudioElement, Event>) => {
199
161
  // updateAudioVolume((target as HTMLAudioElement).volume);
@@ -251,11 +213,8 @@ export var useAudioFunctions = function (_a) {
251
213
  _b[AudioEvents.TimeUpdate] = onTimeUpdate,
252
214
  _b[AudioEvents.Progress] = onProgress,
253
215
  _b),
254
- onClickPrevious: onClickPrevious,
255
- onClickNext: onClickNext,
256
216
  onClickBackward: onClickBackward,
257
217
  onClickForward: onClickForward,
258
- onPopoutClick: onPopoutClick,
259
218
  togglePlay: togglePlay,
260
219
  onChangeSlider: onChangeSlider,
261
220
  // onChangeVolumeSlider,