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.
- package/cjs/assistive-text/assistive-text.d.ts +1 -2
- package/cjs/assistive-text/assistive-text.d.ts.map +1 -1
- package/cjs/audio-player/audio-player.d.ts +1 -2
- package/cjs/audio-player/audio-player.d.ts.map +1 -1
- package/cjs/audio-player-composable/audio-functions.d.ts +7 -6
- package/cjs/audio-player-composable/audio-functions.d.ts.map +1 -1
- package/cjs/audio-player-composable/audio-functions.js +13 -54
- package/cjs/audio-player-composable/audio-functions.js.map +1 -1
- package/cjs/audio-player-composable/audio-player-composable.d.ts +1 -1
- package/cjs/audio-player-composable/audio-player-composable.d.ts.map +1 -1
- package/cjs/audio-player-composable/audio-player-composable.js +116 -38
- package/cjs/audio-player-composable/audio-player-composable.js.map +1 -1
- package/cjs/audio-player-composable/components/audio-element.d.ts +3 -2
- package/cjs/audio-player-composable/components/audio-element.d.ts.map +1 -1
- package/cjs/audio-player-composable/components/audio-element.js +3 -5
- package/cjs/audio-player-composable/components/audio-element.js.map +1 -1
- package/cjs/audio-player-composable/components/forward-button/defaults.d.ts +7 -0
- package/cjs/audio-player-composable/components/forward-button/defaults.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/forward-button/defaults.js +8 -0
- package/cjs/audio-player-composable/components/forward-button/defaults.js.map +1 -0
- package/cjs/audio-player-composable/components/forward-button/forward-button.d.ts +3 -0
- package/cjs/audio-player-composable/components/forward-button/forward-button.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/forward-button/forward-button.js +39 -0
- package/cjs/audio-player-composable/components/forward-button/forward-button.js.map +1 -0
- package/cjs/audio-player-composable/components/forward-button/index.d.ts +3 -0
- package/cjs/audio-player-composable/components/forward-button/index.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/forward-button/index.js +15 -0
- package/cjs/audio-player-composable/components/forward-button/index.js.map +1 -0
- package/cjs/audio-player-composable/components/forward-button/types.d.ts +5 -0
- package/cjs/audio-player-composable/components/forward-button/types.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/forward-button/types.js +3 -0
- package/cjs/audio-player-composable/components/forward-button/types.js.map +1 -0
- package/cjs/audio-player-composable/components/play-pause-button/defaults.d.ts +7 -0
- package/cjs/audio-player-composable/components/play-pause-button/defaults.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/play-pause-button/defaults.js +8 -0
- package/cjs/audio-player-composable/components/play-pause-button/defaults.js.map +1 -0
- package/cjs/audio-player-composable/components/play-pause-button/play-pause-button.d.ts +1 -3
- package/cjs/audio-player-composable/components/play-pause-button/play-pause-button.d.ts.map +1 -1
- package/cjs/audio-player-composable/components/play-pause-button/play-pause-button.js +48 -17
- package/cjs/audio-player-composable/components/play-pause-button/play-pause-button.js.map +1 -1
- package/cjs/audio-player-composable/components/play-pause-button/types.d.ts +2 -6
- package/cjs/audio-player-composable/components/play-pause-button/types.d.ts.map +1 -1
- package/cjs/audio-player-composable/components/replay-button/defaults.d.ts +7 -0
- package/cjs/audio-player-composable/components/replay-button/defaults.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/replay-button/defaults.js +8 -0
- package/cjs/audio-player-composable/components/replay-button/defaults.js.map +1 -0
- package/cjs/audio-player-composable/components/replay-button/index.d.ts +3 -0
- package/cjs/audio-player-composable/components/replay-button/index.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/replay-button/index.js +15 -0
- package/cjs/audio-player-composable/components/replay-button/index.js.map +1 -0
- package/cjs/audio-player-composable/components/replay-button/replay-button.d.ts +3 -0
- package/cjs/audio-player-composable/components/replay-button/replay-button.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/replay-button/replay-button.js +39 -0
- package/cjs/audio-player-composable/components/replay-button/replay-button.js.map +1 -0
- package/cjs/audio-player-composable/components/replay-button/types.d.ts +5 -0
- package/cjs/audio-player-composable/components/replay-button/types.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/replay-button/types.js +3 -0
- package/cjs/audio-player-composable/components/replay-button/types.js.map +1 -0
- package/cjs/audio-player-composable/components/seek-bar/seek-bar.d.ts +2 -3
- package/cjs/audio-player-composable/components/seek-bar/seek-bar.d.ts.map +1 -1
- package/cjs/audio-player-composable/components/seek-bar/seek-bar.js.map +1 -1
- package/cjs/audio-player-composable/components/seek-bar/types.d.ts +1 -1
- package/cjs/audio-player-composable/components/seek-bar/types.d.ts.map +1 -1
- package/cjs/audio-player-composable/components/skip-next-button/defaults.d.ts +7 -0
- package/cjs/audio-player-composable/components/skip-next-button/defaults.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/skip-next-button/defaults.js +8 -0
- package/cjs/audio-player-composable/components/skip-next-button/defaults.js.map +1 -0
- package/cjs/audio-player-composable/components/skip-next-button/index.d.ts +3 -0
- package/cjs/audio-player-composable/components/skip-next-button/index.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/skip-next-button/index.js +15 -0
- package/cjs/audio-player-composable/components/skip-next-button/index.js.map +1 -0
- package/cjs/audio-player-composable/components/skip-next-button/skip-next-button.d.ts +2 -0
- package/cjs/audio-player-composable/components/skip-next-button/skip-next-button.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/skip-next-button/skip-next-button.js +37 -0
- package/cjs/audio-player-composable/components/skip-next-button/skip-next-button.js.map +1 -0
- package/cjs/audio-player-composable/components/skip-next-button/types.d.ts +3 -0
- package/cjs/audio-player-composable/components/skip-next-button/types.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/skip-next-button/types.js +3 -0
- package/cjs/audio-player-composable/components/skip-next-button/types.js.map +1 -0
- package/cjs/audio-player-composable/components/skip-previous-button/defaults.d.ts +7 -0
- package/cjs/audio-player-composable/components/skip-previous-button/defaults.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/skip-previous-button/defaults.js +8 -0
- package/cjs/audio-player-composable/components/skip-previous-button/defaults.js.map +1 -0
- package/cjs/audio-player-composable/components/skip-previous-button/index.d.ts +3 -0
- package/cjs/audio-player-composable/components/skip-previous-button/index.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/skip-previous-button/index.js +15 -0
- package/cjs/audio-player-composable/components/skip-previous-button/index.js.map +1 -0
- package/cjs/audio-player-composable/components/skip-previous-button/skip-previous-button.d.ts +2 -0
- package/cjs/audio-player-composable/components/skip-previous-button/skip-previous-button.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/skip-previous-button/skip-previous-button.js +37 -0
- package/cjs/audio-player-composable/components/skip-previous-button/skip-previous-button.js.map +1 -0
- package/cjs/audio-player-composable/components/skip-previous-button/types.d.ts +3 -0
- package/cjs/audio-player-composable/components/skip-previous-button/types.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/skip-previous-button/types.js +3 -0
- package/cjs/audio-player-composable/components/skip-previous-button/types.js.map +1 -0
- package/cjs/audio-player-composable/components/time-display/time-display.d.ts +2 -4
- package/cjs/audio-player-composable/components/time-display/time-display.d.ts.map +1 -1
- package/cjs/audio-player-composable/components/time-display/time-display.js +26 -5
- package/cjs/audio-player-composable/components/time-display/time-display.js.map +1 -1
- package/cjs/audio-player-composable/components/time-display/types.d.ts +5 -4
- package/cjs/audio-player-composable/components/time-display/types.d.ts.map +1 -1
- package/cjs/audio-player-composable/components/time-display/utils.d.ts +2 -2
- package/cjs/audio-player-composable/components/time-display/utils.d.ts.map +1 -1
- package/cjs/audio-player-composable/components/time-display/utils.js +0 -1
- package/cjs/audio-player-composable/components/time-display/utils.js.map +1 -1
- package/cjs/audio-player-composable/components/types.d.ts +9 -0
- package/cjs/audio-player-composable/components/types.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/types.js +3 -0
- package/cjs/audio-player-composable/components/types.js.map +1 -0
- package/cjs/audio-player-composable/context.d.ts +4 -46
- package/cjs/audio-player-composable/context.d.ts.map +1 -1
- package/cjs/audio-player-composable/context.js.map +1 -1
- package/cjs/audio-player-composable/index.d.ts +8 -6
- package/cjs/audio-player-composable/index.d.ts.map +1 -1
- package/cjs/audio-player-composable/index.js +10 -10
- package/cjs/audio-player-composable/index.js.map +1 -1
- package/cjs/audio-player-composable/types.d.ts +44 -13
- package/cjs/audio-player-composable/types.d.ts.map +1 -1
- package/cjs/audio-player-composable/types.js +1 -1
- package/cjs/audio-player-composable/types.js.map +1 -1
- package/cjs/audio-player-composable/utils.d.ts +10 -0
- package/cjs/audio-player-composable/utils.d.ts.map +1 -1
- package/cjs/audio-player-composable/utils.js +33 -1
- package/cjs/audio-player-composable/utils.js.map +1 -1
- package/cjs/banner/banner.d.ts +1 -2
- package/cjs/banner/banner.d.ts.map +1 -1
- package/cjs/button/button.d.ts +1 -1
- package/cjs/button/button.d.ts.map +1 -1
- package/cjs/byline/byline.d.ts +1 -2
- package/cjs/byline/byline.d.ts.map +1 -1
- package/cjs/caption/caption-inset.d.ts +1 -2
- package/cjs/caption/caption-inset.d.ts.map +1 -1
- package/cjs/caption/caption.d.ts +1 -2
- package/cjs/caption/caption.d.ts.map +1 -1
- package/cjs/card/card-inset.d.ts +1 -1
- package/cjs/card/card-inset.d.ts.map +1 -1
- package/cjs/card/card.d.ts +1 -1
- package/cjs/card/card.d.ts.map +1 -1
- package/cjs/checkbox/checkbox.d.ts +1 -1
- package/cjs/checkbox/checkbox.d.ts.map +1 -1
- package/cjs/date-time/date-time.d.ts +1 -2
- package/cjs/date-time/date-time.d.ts.map +1 -1
- package/cjs/dialog/base-dialog-tests.d.ts.map +1 -1
- package/cjs/dialog/base-dialog-tests.js +3 -1
- package/cjs/dialog/base-dialog-tests.js.map +1 -1
- package/cjs/dialog/types.d.ts +1 -1
- package/cjs/dialog/types.d.ts.map +1 -1
- package/cjs/divider/divider.d.ts +1 -2
- package/cjs/divider/divider.d.ts.map +1 -1
- package/cjs/drawer/drawer.d.ts +1 -2
- package/cjs/drawer/drawer.d.ts.map +1 -1
- package/cjs/fieldset/fieldset.d.ts +1 -2
- package/cjs/fieldset/fieldset.d.ts.map +1 -1
- package/cjs/flag/flag.d.ts +1 -1
- package/cjs/form/form-entry.d.ts.map +1 -1
- package/cjs/form/form-entry.js +2 -2
- package/cjs/form/form-entry.js.map +1 -1
- package/cjs/form/form-input.d.ts +1 -1
- package/cjs/form/form-input.d.ts.map +1 -1
- package/cjs/form/form-input.js +5 -8
- package/cjs/form/form-input.js.map +1 -1
- package/cjs/grid/cell.d.ts +1 -2
- package/cjs/grid/cell.d.ts.map +1 -1
- package/cjs/grid/grid.d.ts +1 -2
- package/cjs/grid/grid.d.ts.map +1 -1
- package/cjs/grid-layout/styled.d.ts +2 -1
- package/cjs/grid-layout/styled.d.ts.map +1 -1
- package/cjs/grid-layout/types.d.ts +2 -1
- package/cjs/grid-layout/types.d.ts.map +1 -1
- package/cjs/headline/headline.d.ts +1 -2
- package/cjs/headline/headline.d.ts.map +1 -1
- package/cjs/icons/filled/{material/icon-filled-forward10.d.ts → custom/icon-filled-forward-10.d.ts} +1 -1
- package/cjs/icons/filled/custom/icon-filled-forward-10.d.ts.map +1 -0
- package/cjs/icons/filled/custom/icon-filled-forward-10.js +23 -0
- package/cjs/icons/filled/custom/icon-filled-forward-10.js.map +1 -0
- package/cjs/icons/filled/custom/icon-filled-forward-15.d.ts +2 -0
- package/cjs/icons/filled/custom/icon-filled-forward-15.d.ts.map +1 -0
- package/cjs/icons/filled/custom/icon-filled-forward-15.js +23 -0
- package/cjs/icons/filled/custom/icon-filled-forward-15.js.map +1 -0
- package/cjs/icons/filled/custom/icon-filled-forward-20.d.ts +2 -0
- package/cjs/icons/filled/custom/icon-filled-forward-20.d.ts.map +1 -0
- package/cjs/icons/filled/custom/icon-filled-forward-20.js +23 -0
- package/cjs/icons/filled/custom/icon-filled-forward-20.js.map +1 -0
- package/cjs/icons/filled/custom/icon-filled-forward-25.d.ts +2 -0
- package/cjs/icons/filled/custom/icon-filled-forward-25.d.ts.map +1 -0
- package/cjs/icons/filled/custom/icon-filled-forward-25.js +23 -0
- package/cjs/icons/filled/custom/icon-filled-forward-25.js.map +1 -0
- package/{esm/icons/filled/material/icon-filled-forward30.d.ts → cjs/icons/filled/custom/icon-filled-forward-30.d.ts} +1 -1
- package/cjs/icons/filled/custom/icon-filled-forward-30.d.ts.map +1 -0
- package/cjs/icons/filled/custom/icon-filled-forward-30.js +23 -0
- package/cjs/icons/filled/custom/icon-filled-forward-30.js.map +1 -0
- package/cjs/icons/filled/{material/icon-filled-forward5.d.ts → custom/icon-filled-forward-5.d.ts} +1 -1
- package/cjs/icons/filled/custom/icon-filled-forward-5.d.ts.map +1 -0
- package/cjs/icons/filled/custom/icon-filled-forward-5.js +23 -0
- package/cjs/icons/filled/custom/icon-filled-forward-5.js.map +1 -0
- package/{esm/icons/filled/material/icon-filled-replay10.d.ts → cjs/icons/filled/custom/icon-filled-replay-10.d.ts} +1 -1
- package/cjs/icons/filled/custom/icon-filled-replay-10.d.ts.map +1 -0
- package/cjs/icons/filled/custom/icon-filled-replay-10.js +23 -0
- package/cjs/icons/filled/custom/icon-filled-replay-10.js.map +1 -0
- package/cjs/icons/filled/custom/icon-filled-replay-15.d.ts +2 -0
- package/cjs/icons/filled/custom/icon-filled-replay-15.d.ts.map +1 -0
- package/cjs/icons/filled/custom/icon-filled-replay-15.js +23 -0
- package/cjs/icons/filled/custom/icon-filled-replay-15.js.map +1 -0
- package/cjs/icons/filled/custom/icon-filled-replay-20.d.ts +2 -0
- package/cjs/icons/filled/custom/icon-filled-replay-20.d.ts.map +1 -0
- package/cjs/icons/filled/custom/icon-filled-replay-20.js +23 -0
- package/cjs/icons/filled/custom/icon-filled-replay-20.js.map +1 -0
- package/cjs/icons/filled/custom/icon-filled-replay-25.d.ts +2 -0
- package/cjs/icons/filled/custom/icon-filled-replay-25.d.ts.map +1 -0
- package/cjs/icons/filled/custom/icon-filled-replay-25.js +23 -0
- package/cjs/icons/filled/custom/icon-filled-replay-25.js.map +1 -0
- package/{esm/icons/filled/material/icon-filled-replay30.d.ts → cjs/icons/filled/custom/icon-filled-replay-30.d.ts} +1 -1
- package/cjs/icons/filled/custom/icon-filled-replay-30.d.ts.map +1 -0
- package/cjs/icons/filled/custom/icon-filled-replay-30.js +23 -0
- package/cjs/icons/filled/custom/icon-filled-replay-30.js.map +1 -0
- package/cjs/icons/filled/{material/icon-filled-replay5.d.ts → custom/icon-filled-replay-5.d.ts} +1 -1
- package/cjs/icons/filled/custom/icon-filled-replay-5.d.ts.map +1 -0
- package/cjs/icons/filled/custom/icon-filled-replay-5.js +23 -0
- package/cjs/icons/filled/custom/icon-filled-replay-5.js.map +1 -0
- package/cjs/icons/filled/custom/indeterminate-progress-indicator.d.ts +1 -2
- package/cjs/icons/filled/custom/indeterminate-progress-indicator.d.ts.map +1 -1
- package/cjs/icons/filled/custom/index.d.ts +12 -0
- package/cjs/icons/filled/custom/index.d.ts.map +1 -1
- package/cjs/icons/filled/custom/index.js +12 -0
- package/cjs/icons/filled/custom/index.js.map +1 -1
- package/cjs/icons/filled/material/index.d.ts +0 -6
- package/cjs/icons/filled/material/index.js +18 -30
- package/cjs/icons/outlined/{material/icon-outlined-forward10.d.ts → custom/icon-outlined-forward-10.d.ts} +1 -1
- package/cjs/icons/outlined/custom/icon-outlined-forward-10.d.ts.map +1 -0
- package/cjs/icons/outlined/custom/icon-outlined-forward-10.js +23 -0
- package/cjs/icons/outlined/custom/icon-outlined-forward-10.js.map +1 -0
- package/cjs/icons/outlined/custom/icon-outlined-forward-15.d.ts +2 -0
- package/cjs/icons/outlined/custom/icon-outlined-forward-15.d.ts.map +1 -0
- package/cjs/icons/outlined/custom/icon-outlined-forward-15.js +23 -0
- package/cjs/icons/outlined/custom/icon-outlined-forward-15.js.map +1 -0
- package/cjs/icons/outlined/custom/icon-outlined-forward-20.d.ts +2 -0
- package/cjs/icons/outlined/custom/icon-outlined-forward-20.d.ts.map +1 -0
- package/cjs/icons/outlined/custom/icon-outlined-forward-20.js +23 -0
- package/cjs/icons/outlined/custom/icon-outlined-forward-20.js.map +1 -0
- package/cjs/icons/outlined/custom/icon-outlined-forward-25.d.ts +2 -0
- package/cjs/icons/outlined/custom/icon-outlined-forward-25.d.ts.map +1 -0
- package/cjs/icons/outlined/custom/icon-outlined-forward-25.js +23 -0
- package/cjs/icons/outlined/custom/icon-outlined-forward-25.js.map +1 -0
- package/cjs/icons/outlined/{material/icon-outlined-forward30.d.ts → custom/icon-outlined-forward-30.d.ts} +1 -1
- package/cjs/icons/outlined/custom/icon-outlined-forward-30.d.ts.map +1 -0
- package/cjs/icons/outlined/custom/icon-outlined-forward-30.js +23 -0
- package/cjs/icons/outlined/custom/icon-outlined-forward-30.js.map +1 -0
- package/cjs/icons/outlined/{material/icon-outlined-forward5.d.ts → custom/icon-outlined-forward-5.d.ts} +1 -1
- package/cjs/icons/outlined/custom/icon-outlined-forward-5.d.ts.map +1 -0
- package/cjs/icons/outlined/custom/icon-outlined-forward-5.js +23 -0
- package/cjs/icons/outlined/custom/icon-outlined-forward-5.js.map +1 -0
- package/{esm/icons/outlined/material/icon-outlined-replay10.d.ts → cjs/icons/outlined/custom/icon-outlined-replay-10.d.ts} +1 -1
- package/cjs/icons/outlined/custom/icon-outlined-replay-10.d.ts.map +1 -0
- package/cjs/icons/outlined/custom/icon-outlined-replay-10.js +23 -0
- package/cjs/icons/outlined/custom/icon-outlined-replay-10.js.map +1 -0
- package/cjs/icons/outlined/custom/icon-outlined-replay-15.d.ts +2 -0
- package/cjs/icons/outlined/custom/icon-outlined-replay-15.d.ts.map +1 -0
- package/cjs/icons/outlined/custom/icon-outlined-replay-15.js +23 -0
- package/cjs/icons/outlined/custom/icon-outlined-replay-15.js.map +1 -0
- package/cjs/icons/outlined/custom/icon-outlined-replay-20.d.ts +2 -0
- package/cjs/icons/outlined/custom/icon-outlined-replay-20.d.ts.map +1 -0
- package/cjs/icons/outlined/custom/icon-outlined-replay-20.js +23 -0
- package/cjs/icons/outlined/custom/icon-outlined-replay-20.js.map +1 -0
- package/cjs/icons/outlined/custom/icon-outlined-replay-25.d.ts +2 -0
- package/cjs/icons/outlined/custom/icon-outlined-replay-25.d.ts.map +1 -0
- package/cjs/icons/outlined/custom/icon-outlined-replay-25.js +23 -0
- package/cjs/icons/outlined/custom/icon-outlined-replay-25.js.map +1 -0
- package/{esm/icons/outlined/material/icon-outlined-replay30.d.ts → cjs/icons/outlined/custom/icon-outlined-replay-30.d.ts} +1 -1
- package/cjs/icons/outlined/custom/icon-outlined-replay-30.d.ts.map +1 -0
- package/cjs/icons/outlined/custom/icon-outlined-replay-30.js +23 -0
- package/cjs/icons/outlined/custom/icon-outlined-replay-30.js.map +1 -0
- package/{esm/icons/outlined/material/icon-outlined-replay5.d.ts → cjs/icons/outlined/custom/icon-outlined-replay-5.d.ts} +1 -1
- package/cjs/icons/outlined/custom/icon-outlined-replay-5.d.ts.map +1 -0
- package/cjs/icons/outlined/custom/icon-outlined-replay-5.js +23 -0
- package/cjs/icons/outlined/custom/icon-outlined-replay-5.js.map +1 -0
- package/cjs/icons/outlined/custom/index.d.ts +12 -0
- package/cjs/icons/outlined/custom/index.d.ts.map +1 -1
- package/cjs/icons/outlined/custom/index.js +12 -0
- package/cjs/icons/outlined/custom/index.js.map +1 -1
- package/cjs/icons/outlined/material/index.d.ts +0 -6
- package/cjs/icons/outlined/material/index.js +18 -30
- package/cjs/icons/to-newskit-icon.d.ts.map +1 -1
- package/cjs/icons/to-newskit-icon.js.map +1 -1
- package/cjs/image/image.d.ts +1 -2
- package/cjs/image/image.d.ts.map +1 -1
- package/cjs/inline-message/inline-message.d.ts +1 -2
- package/cjs/inline-message/inline-message.d.ts.map +1 -1
- package/cjs/label/label.d.ts +1 -2
- package/cjs/label/label.d.ts.map +1 -1
- package/cjs/link/link-inline.d.ts +1 -1
- package/cjs/link/link-inline.d.ts.map +1 -1
- package/cjs/link/link-standalone.d.ts +1 -1
- package/cjs/link/link-standalone.d.ts.map +1 -1
- package/cjs/link/link.d.ts +2 -2
- package/cjs/link/link.d.ts.map +1 -1
- package/cjs/link/utils.d.ts +1 -1
- package/cjs/link/utils.d.ts.map +1 -1
- package/cjs/menu/menu.d.ts +1 -1
- package/cjs/menu/menu.d.ts.map +1 -1
- package/cjs/modal/modal.d.ts +1 -2
- package/cjs/modal/modal.d.ts.map +1 -1
- package/cjs/ordered-list/ordered-list.d.ts +1 -2
- package/cjs/ordered-list/ordered-list.d.ts.map +1 -1
- package/cjs/overlay/overlay.d.ts +1 -2
- package/cjs/overlay/overlay.d.ts.map +1 -1
- package/cjs/radio-button/radio-button.d.ts +1 -1
- package/cjs/radio-button/radio-button.d.ts.map +1 -1
- package/cjs/scroll/scroll.d.ts +1 -1
- package/cjs/scroll/scroll.d.ts.map +1 -1
- package/cjs/scroll/scroll.js +4 -4
- package/cjs/scroll/scroll.js.map +1 -1
- package/cjs/scroll/utils.d.ts +2 -0
- package/cjs/scroll/utils.d.ts.map +1 -0
- package/cjs/scroll/utils.js +5 -0
- package/cjs/scroll/utils.js.map +1 -0
- package/cjs/select/select.d.ts +1 -1
- package/cjs/select/select.d.ts.map +1 -1
- package/cjs/share-bar/share-bar.d.ts +1 -1
- package/cjs/share-bar/share-bar.d.ts.map +1 -1
- package/cjs/slider/slider.d.ts +1 -2
- package/cjs/slider/slider.d.ts.map +1 -1
- package/cjs/slider/slider.js +2 -2
- package/cjs/slider/slider.js.map +1 -1
- package/cjs/standfirst/standfirst.d.ts +1 -2
- package/cjs/standfirst/standfirst.d.ts.map +1 -1
- package/cjs/structured-list/structured-list-item.d.ts +1 -1
- package/cjs/structured-list/structured-list-item.d.ts.map +1 -1
- package/cjs/structured-list/structured-list.d.ts +1 -1
- package/cjs/structured-list/structured-list.d.ts.map +1 -1
- package/cjs/tabs/tabs.d.ts +1 -1
- package/cjs/tabs/tabs.d.ts.map +1 -1
- package/cjs/tag/tag.d.ts +1 -2
- package/cjs/tag/tag.d.ts.map +1 -1
- package/cjs/text-field/text-field.d.ts +1 -1
- package/cjs/text-field/text-field.d.ts.map +1 -1
- package/cjs/text-input/text-input.d.ts +4 -1
- package/cjs/text-input/text-input.d.ts.map +1 -1
- package/cjs/text-input/text-input.js +5 -5
- package/cjs/text-input/text-input.js.map +1 -1
- package/cjs/theme-checker/scenarios.d.ts.map +1 -1
- package/cjs/theme-checker/scenarios.js +32 -0
- package/cjs/theme-checker/scenarios.js.map +1 -1
- package/cjs/title-bar/title-bar.d.ts +1 -2
- package/cjs/title-bar/title-bar.d.ts.map +1 -1
- package/cjs/toast/toast.d.ts +1 -2
- package/cjs/toast/toast.d.ts.map +1 -1
- package/cjs/typography/heading/heading.d.ts +12 -12
- package/cjs/typography/paragraph/paragraph.d.ts +2 -2
- package/cjs/unordered-list/unordered-list.d.ts +1 -2
- package/cjs/unordered-list/unordered-list.d.ts.map +1 -1
- package/cjs/utils/get-transition-duration.d.ts.map +1 -1
- package/cjs/utils/get-transition-duration.js +17 -0
- package/cjs/utils/get-transition-duration.js.map +1 -1
- package/cjs/utils/hooks/use-keypress.d.ts +2 -1
- package/cjs/utils/hooks/use-keypress.d.ts.map +1 -1
- package/cjs/utils/hooks/use-keypress.js +101 -31
- package/cjs/utils/hooks/use-keypress.js.map +1 -1
- package/cjs/utils/hooks/use-media-query/context.d.ts +2 -1
- package/cjs/utils/hooks/use-media-query/context.d.ts.map +1 -1
- package/cjs/utils/hooks/use-media-query/context.js.map +1 -1
- package/cjs/utils/style/transition-preset.d.ts +1 -1
- package/cjs/utils/style/transition-preset.d.ts.map +1 -1
- package/cjs/utils/style/transition-preset.js +40 -8
- package/cjs/utils/style/transition-preset.js.map +1 -1
- package/cjs/utils/types.d.ts +1 -0
- package/cjs/utils/types.d.ts.map +1 -1
- package/cjs/utils/with-own-theme.d.ts +4 -1
- package/cjs/utils/with-own-theme.d.ts.map +1 -1
- package/cjs/utils/with-own-theme.js +3 -1
- package/cjs/utils/with-own-theme.js.map +1 -1
- package/cjs/version-number.json +1 -1
- package/cjs/video-player/video-player.d.ts +1 -1
- package/cjs/video-player/video-player.d.ts.map +1 -1
- package/cjs/volume-control/volume-control.d.ts +1 -2
- package/cjs/volume-control/volume-control.d.ts.map +1 -1
- package/esm/assistive-text/assistive-text.d.ts +1 -2
- package/esm/assistive-text/assistive-text.d.ts.map +1 -1
- package/esm/audio-player/audio-player.d.ts +1 -2
- package/esm/audio-player/audio-player.d.ts.map +1 -1
- package/esm/audio-player-composable/audio-functions.d.ts +7 -6
- package/esm/audio-player-composable/audio-functions.d.ts.map +1 -1
- package/esm/audio-player-composable/audio-functions.js +13 -54
- package/esm/audio-player-composable/audio-functions.js.map +1 -1
- package/esm/audio-player-composable/audio-player-composable.d.ts +1 -1
- package/esm/audio-player-composable/audio-player-composable.d.ts.map +1 -1
- package/esm/audio-player-composable/audio-player-composable.js +117 -39
- package/esm/audio-player-composable/audio-player-composable.js.map +1 -1
- package/esm/audio-player-composable/components/audio-element.d.ts +3 -2
- package/esm/audio-player-composable/components/audio-element.d.ts.map +1 -1
- package/esm/audio-player-composable/components/audio-element.js +3 -5
- package/esm/audio-player-composable/components/audio-element.js.map +1 -1
- package/esm/audio-player-composable/components/forward-button/defaults.d.ts +7 -0
- package/esm/audio-player-composable/components/forward-button/defaults.d.ts.map +1 -0
- package/esm/audio-player-composable/components/forward-button/defaults.js +6 -0
- package/esm/audio-player-composable/components/forward-button/defaults.js.map +1 -0
- package/esm/audio-player-composable/components/forward-button/forward-button.d.ts +3 -0
- package/esm/audio-player-composable/components/forward-button/forward-button.d.ts.map +1 -0
- package/esm/audio-player-composable/components/forward-button/forward-button.js +33 -0
- package/esm/audio-player-composable/components/forward-button/forward-button.js.map +1 -0
- package/esm/audio-player-composable/components/forward-button/index.d.ts +3 -0
- package/esm/audio-player-composable/components/forward-button/index.d.ts.map +1 -0
- package/esm/audio-player-composable/components/forward-button/index.js +3 -0
- package/esm/audio-player-composable/components/forward-button/index.js.map +1 -0
- package/esm/audio-player-composable/components/forward-button/types.d.ts +5 -0
- package/esm/audio-player-composable/components/forward-button/types.d.ts.map +1 -0
- package/esm/audio-player-composable/components/forward-button/types.js +2 -0
- package/esm/audio-player-composable/components/forward-button/types.js.map +1 -0
- package/esm/audio-player-composable/components/play-pause-button/defaults.d.ts +7 -0
- package/esm/audio-player-composable/components/play-pause-button/defaults.d.ts.map +1 -0
- package/esm/audio-player-composable/components/play-pause-button/defaults.js +6 -0
- package/esm/audio-player-composable/components/play-pause-button/defaults.js.map +1 -0
- package/esm/audio-player-composable/components/play-pause-button/play-pause-button.d.ts +1 -3
- package/esm/audio-player-composable/components/play-pause-button/play-pause-button.d.ts.map +1 -1
- package/esm/audio-player-composable/components/play-pause-button/play-pause-button.js +30 -18
- package/esm/audio-player-composable/components/play-pause-button/play-pause-button.js.map +1 -1
- package/esm/audio-player-composable/components/play-pause-button/types.d.ts +2 -6
- package/esm/audio-player-composable/components/play-pause-button/types.d.ts.map +1 -1
- package/esm/audio-player-composable/components/replay-button/defaults.d.ts +7 -0
- package/esm/audio-player-composable/components/replay-button/defaults.d.ts.map +1 -0
- package/esm/audio-player-composable/components/replay-button/defaults.js +6 -0
- package/esm/audio-player-composable/components/replay-button/defaults.js.map +1 -0
- package/esm/audio-player-composable/components/replay-button/index.d.ts +3 -0
- package/esm/audio-player-composable/components/replay-button/index.d.ts.map +1 -0
- package/esm/audio-player-composable/components/replay-button/index.js +3 -0
- package/esm/audio-player-composable/components/replay-button/index.js.map +1 -0
- package/esm/audio-player-composable/components/replay-button/replay-button.d.ts +3 -0
- package/esm/audio-player-composable/components/replay-button/replay-button.d.ts.map +1 -0
- package/esm/audio-player-composable/components/replay-button/replay-button.js +33 -0
- package/esm/audio-player-composable/components/replay-button/replay-button.js.map +1 -0
- package/esm/audio-player-composable/components/replay-button/types.d.ts +5 -0
- package/esm/audio-player-composable/components/replay-button/types.d.ts.map +1 -0
- package/esm/audio-player-composable/components/replay-button/types.js +2 -0
- package/esm/audio-player-composable/components/replay-button/types.js.map +1 -0
- package/esm/audio-player-composable/components/seek-bar/seek-bar.d.ts +2 -3
- package/esm/audio-player-composable/components/seek-bar/seek-bar.d.ts.map +1 -1
- package/esm/audio-player-composable/components/seek-bar/seek-bar.js.map +1 -1
- package/esm/audio-player-composable/components/seek-bar/types.d.ts +1 -1
- package/esm/audio-player-composable/components/seek-bar/types.d.ts.map +1 -1
- package/esm/audio-player-composable/components/skip-next-button/defaults.d.ts +7 -0
- package/esm/audio-player-composable/components/skip-next-button/defaults.d.ts.map +1 -0
- package/esm/audio-player-composable/components/skip-next-button/defaults.js +6 -0
- package/esm/audio-player-composable/components/skip-next-button/defaults.js.map +1 -0
- package/esm/audio-player-composable/components/skip-next-button/index.d.ts +3 -0
- package/esm/audio-player-composable/components/skip-next-button/index.d.ts.map +1 -0
- package/esm/audio-player-composable/components/skip-next-button/index.js +3 -0
- package/esm/audio-player-composable/components/skip-next-button/index.js.map +1 -0
- package/esm/audio-player-composable/components/skip-next-button/skip-next-button.d.ts +2 -0
- package/esm/audio-player-composable/components/skip-next-button/skip-next-button.d.ts.map +1 -0
- package/esm/audio-player-composable/components/skip-next-button/skip-next-button.js +31 -0
- package/esm/audio-player-composable/components/skip-next-button/skip-next-button.js.map +1 -0
- package/esm/audio-player-composable/components/skip-next-button/types.d.ts +3 -0
- package/esm/audio-player-composable/components/skip-next-button/types.d.ts.map +1 -0
- package/esm/audio-player-composable/components/skip-next-button/types.js +2 -0
- package/esm/audio-player-composable/components/skip-next-button/types.js.map +1 -0
- package/esm/audio-player-composable/components/skip-previous-button/defaults.d.ts +7 -0
- package/esm/audio-player-composable/components/skip-previous-button/defaults.d.ts.map +1 -0
- package/esm/audio-player-composable/components/skip-previous-button/defaults.js +6 -0
- package/esm/audio-player-composable/components/skip-previous-button/defaults.js.map +1 -0
- package/esm/audio-player-composable/components/skip-previous-button/index.d.ts +3 -0
- package/esm/audio-player-composable/components/skip-previous-button/index.d.ts.map +1 -0
- package/esm/audio-player-composable/components/skip-previous-button/index.js +3 -0
- package/esm/audio-player-composable/components/skip-previous-button/index.js.map +1 -0
- package/esm/audio-player-composable/components/skip-previous-button/skip-previous-button.d.ts +2 -0
- package/esm/audio-player-composable/components/skip-previous-button/skip-previous-button.d.ts.map +1 -0
- package/esm/audio-player-composable/components/skip-previous-button/skip-previous-button.js +31 -0
- package/esm/audio-player-composable/components/skip-previous-button/skip-previous-button.js.map +1 -0
- package/esm/audio-player-composable/components/skip-previous-button/types.d.ts +3 -0
- package/esm/audio-player-composable/components/skip-previous-button/types.d.ts.map +1 -0
- package/esm/audio-player-composable/components/skip-previous-button/types.js +2 -0
- package/esm/audio-player-composable/components/skip-previous-button/types.js.map +1 -0
- package/esm/audio-player-composable/components/time-display/time-display.d.ts +2 -4
- package/esm/audio-player-composable/components/time-display/time-display.d.ts.map +1 -1
- package/esm/audio-player-composable/components/time-display/time-display.js +25 -3
- package/esm/audio-player-composable/components/time-display/time-display.js.map +1 -1
- package/esm/audio-player-composable/components/time-display/types.d.ts +5 -4
- package/esm/audio-player-composable/components/time-display/types.d.ts.map +1 -1
- package/esm/audio-player-composable/components/time-display/utils.d.ts +2 -2
- package/esm/audio-player-composable/components/time-display/utils.d.ts.map +1 -1
- package/esm/audio-player-composable/components/time-display/utils.js +0 -1
- package/esm/audio-player-composable/components/time-display/utils.js.map +1 -1
- package/esm/audio-player-composable/components/types.d.ts +9 -0
- package/esm/audio-player-composable/components/types.d.ts.map +1 -0
- package/esm/audio-player-composable/components/types.js +2 -0
- package/esm/audio-player-composable/components/types.js.map +1 -0
- package/esm/audio-player-composable/context.d.ts +4 -46
- package/esm/audio-player-composable/context.d.ts.map +1 -1
- package/esm/audio-player-composable/context.js.map +1 -1
- package/esm/audio-player-composable/index.d.ts +8 -6
- package/esm/audio-player-composable/index.d.ts.map +1 -1
- package/esm/audio-player-composable/index.js +8 -6
- package/esm/audio-player-composable/index.js.map +1 -1
- package/esm/audio-player-composable/types.d.ts +44 -13
- package/esm/audio-player-composable/types.d.ts.map +1 -1
- package/esm/audio-player-composable/types.js +1 -1
- package/esm/audio-player-composable/types.js.map +1 -1
- package/esm/audio-player-composable/utils.d.ts +10 -0
- package/esm/audio-player-composable/utils.d.ts.map +1 -1
- package/esm/audio-player-composable/utils.js +30 -0
- package/esm/audio-player-composable/utils.js.map +1 -1
- package/esm/banner/banner.d.ts +1 -2
- package/esm/banner/banner.d.ts.map +1 -1
- package/esm/button/button.d.ts +1 -1
- package/esm/button/button.d.ts.map +1 -1
- package/esm/byline/byline.d.ts +1 -2
- package/esm/byline/byline.d.ts.map +1 -1
- package/esm/caption/caption-inset.d.ts +1 -2
- package/esm/caption/caption-inset.d.ts.map +1 -1
- package/esm/caption/caption.d.ts +1 -2
- package/esm/caption/caption.d.ts.map +1 -1
- package/esm/card/card-inset.d.ts +1 -1
- package/esm/card/card-inset.d.ts.map +1 -1
- package/esm/card/card.d.ts +1 -1
- package/esm/card/card.d.ts.map +1 -1
- package/esm/checkbox/checkbox.d.ts +1 -1
- package/esm/checkbox/checkbox.d.ts.map +1 -1
- package/esm/date-time/date-time.d.ts +1 -2
- package/esm/date-time/date-time.d.ts.map +1 -1
- package/esm/dialog/base-dialog-tests.d.ts.map +1 -1
- package/esm/dialog/base-dialog-tests.js +3 -1
- package/esm/dialog/base-dialog-tests.js.map +1 -1
- package/esm/dialog/types.d.ts +1 -1
- package/esm/dialog/types.d.ts.map +1 -1
- package/esm/divider/divider.d.ts +1 -2
- package/esm/divider/divider.d.ts.map +1 -1
- package/esm/drawer/drawer.d.ts +1 -2
- package/esm/drawer/drawer.d.ts.map +1 -1
- package/esm/fieldset/fieldset.d.ts +1 -2
- package/esm/fieldset/fieldset.d.ts.map +1 -1
- package/esm/flag/flag.d.ts +1 -1
- package/esm/form/form-entry.d.ts.map +1 -1
- package/esm/form/form-entry.js +2 -2
- package/esm/form/form-entry.js.map +1 -1
- package/esm/form/form-input.d.ts +1 -1
- package/esm/form/form-input.d.ts.map +1 -1
- package/esm/form/form-input.js +4 -7
- package/esm/form/form-input.js.map +1 -1
- package/esm/grid/cell.d.ts +1 -2
- package/esm/grid/cell.d.ts.map +1 -1
- package/esm/grid/grid.d.ts +1 -2
- package/esm/grid/grid.d.ts.map +1 -1
- package/esm/grid-layout/styled.d.ts +2 -1
- package/esm/grid-layout/styled.d.ts.map +1 -1
- package/esm/grid-layout/types.d.ts +2 -1
- package/esm/grid-layout/types.d.ts.map +1 -1
- package/esm/headline/headline.d.ts +1 -2
- package/esm/headline/headline.d.ts.map +1 -1
- package/esm/icons/filled/{material/icon-filled-forward10.d.ts → custom/icon-filled-forward-10.d.ts} +1 -1
- package/esm/icons/filled/custom/icon-filled-forward-10.d.ts.map +1 -0
- package/esm/icons/filled/custom/icon-filled-forward-10.js +17 -0
- package/esm/icons/filled/custom/icon-filled-forward-10.js.map +1 -0
- package/esm/icons/filled/custom/icon-filled-forward-15.d.ts +2 -0
- package/esm/icons/filled/custom/icon-filled-forward-15.d.ts.map +1 -0
- package/esm/icons/filled/custom/icon-filled-forward-15.js +17 -0
- package/esm/icons/filled/custom/icon-filled-forward-15.js.map +1 -0
- package/esm/icons/filled/custom/icon-filled-forward-20.d.ts +2 -0
- package/esm/icons/filled/custom/icon-filled-forward-20.d.ts.map +1 -0
- package/esm/icons/filled/custom/icon-filled-forward-20.js +17 -0
- package/esm/icons/filled/custom/icon-filled-forward-20.js.map +1 -0
- package/esm/icons/filled/custom/icon-filled-forward-25.d.ts +2 -0
- package/esm/icons/filled/custom/icon-filled-forward-25.d.ts.map +1 -0
- package/esm/icons/filled/custom/icon-filled-forward-25.js +17 -0
- package/esm/icons/filled/custom/icon-filled-forward-25.js.map +1 -0
- package/{cjs/icons/filled/material/icon-filled-forward30.d.ts → esm/icons/filled/custom/icon-filled-forward-30.d.ts} +1 -1
- package/esm/icons/filled/custom/icon-filled-forward-30.d.ts.map +1 -0
- package/esm/icons/filled/custom/icon-filled-forward-30.js +17 -0
- package/esm/icons/filled/custom/icon-filled-forward-30.js.map +1 -0
- package/esm/icons/filled/{material/icon-filled-forward5.d.ts → custom/icon-filled-forward-5.d.ts} +1 -1
- package/esm/icons/filled/custom/icon-filled-forward-5.d.ts.map +1 -0
- package/esm/icons/filled/custom/icon-filled-forward-5.js +17 -0
- package/esm/icons/filled/custom/icon-filled-forward-5.js.map +1 -0
- package/{cjs/icons/filled/material/icon-filled-replay10.d.ts → esm/icons/filled/custom/icon-filled-replay-10.d.ts} +1 -1
- package/esm/icons/filled/custom/icon-filled-replay-10.d.ts.map +1 -0
- package/esm/icons/filled/custom/icon-filled-replay-10.js +17 -0
- package/esm/icons/filled/custom/icon-filled-replay-10.js.map +1 -0
- package/esm/icons/filled/custom/icon-filled-replay-15.d.ts +2 -0
- package/esm/icons/filled/custom/icon-filled-replay-15.d.ts.map +1 -0
- package/esm/icons/filled/custom/icon-filled-replay-15.js +17 -0
- package/esm/icons/filled/custom/icon-filled-replay-15.js.map +1 -0
- package/esm/icons/filled/custom/icon-filled-replay-20.d.ts +2 -0
- package/esm/icons/filled/custom/icon-filled-replay-20.d.ts.map +1 -0
- package/esm/icons/filled/custom/icon-filled-replay-20.js +17 -0
- package/esm/icons/filled/custom/icon-filled-replay-20.js.map +1 -0
- package/esm/icons/filled/custom/icon-filled-replay-25.d.ts +2 -0
- package/esm/icons/filled/custom/icon-filled-replay-25.d.ts.map +1 -0
- package/esm/icons/filled/custom/icon-filled-replay-25.js +17 -0
- package/esm/icons/filled/custom/icon-filled-replay-25.js.map +1 -0
- package/{cjs/icons/filled/material/icon-filled-replay30.d.ts → esm/icons/filled/custom/icon-filled-replay-30.d.ts} +1 -1
- package/esm/icons/filled/custom/icon-filled-replay-30.d.ts.map +1 -0
- package/esm/icons/filled/custom/icon-filled-replay-30.js +17 -0
- package/esm/icons/filled/custom/icon-filled-replay-30.js.map +1 -0
- package/esm/icons/filled/{material/icon-filled-replay5.d.ts → custom/icon-filled-replay-5.d.ts} +1 -1
- package/esm/icons/filled/custom/icon-filled-replay-5.d.ts.map +1 -0
- package/esm/icons/filled/custom/icon-filled-replay-5.js +17 -0
- package/esm/icons/filled/custom/icon-filled-replay-5.js.map +1 -0
- package/esm/icons/filled/custom/indeterminate-progress-indicator.d.ts +1 -2
- package/esm/icons/filled/custom/indeterminate-progress-indicator.d.ts.map +1 -1
- package/esm/icons/filled/custom/index.d.ts +12 -0
- package/esm/icons/filled/custom/index.d.ts.map +1 -1
- package/esm/icons/filled/custom/index.js +12 -0
- package/esm/icons/filled/custom/index.js.map +1 -1
- package/esm/icons/filled/material/index.d.ts +0 -6
- package/esm/icons/filled/material/index.js +0 -6
- package/esm/icons/outlined/{material/icon-outlined-forward10.d.ts → custom/icon-outlined-forward-10.d.ts} +1 -1
- package/esm/icons/outlined/custom/icon-outlined-forward-10.d.ts.map +1 -0
- package/esm/icons/outlined/custom/icon-outlined-forward-10.js +17 -0
- package/esm/icons/outlined/custom/icon-outlined-forward-10.js.map +1 -0
- package/esm/icons/outlined/custom/icon-outlined-forward-15.d.ts +2 -0
- package/esm/icons/outlined/custom/icon-outlined-forward-15.d.ts.map +1 -0
- package/esm/icons/outlined/custom/icon-outlined-forward-15.js +17 -0
- package/esm/icons/outlined/custom/icon-outlined-forward-15.js.map +1 -0
- package/esm/icons/outlined/custom/icon-outlined-forward-20.d.ts +2 -0
- package/esm/icons/outlined/custom/icon-outlined-forward-20.d.ts.map +1 -0
- package/esm/icons/outlined/custom/icon-outlined-forward-20.js +17 -0
- package/esm/icons/outlined/custom/icon-outlined-forward-20.js.map +1 -0
- package/esm/icons/outlined/custom/icon-outlined-forward-25.d.ts +2 -0
- package/esm/icons/outlined/custom/icon-outlined-forward-25.d.ts.map +1 -0
- package/esm/icons/outlined/custom/icon-outlined-forward-25.js +17 -0
- package/esm/icons/outlined/custom/icon-outlined-forward-25.js.map +1 -0
- package/esm/icons/outlined/{material/icon-outlined-forward30.d.ts → custom/icon-outlined-forward-30.d.ts} +1 -1
- package/esm/icons/outlined/custom/icon-outlined-forward-30.d.ts.map +1 -0
- package/esm/icons/outlined/custom/icon-outlined-forward-30.js +17 -0
- package/esm/icons/outlined/custom/icon-outlined-forward-30.js.map +1 -0
- package/esm/icons/outlined/{material/icon-outlined-forward5.d.ts → custom/icon-outlined-forward-5.d.ts} +1 -1
- package/esm/icons/outlined/custom/icon-outlined-forward-5.d.ts.map +1 -0
- package/esm/icons/outlined/custom/icon-outlined-forward-5.js +17 -0
- package/esm/icons/outlined/custom/icon-outlined-forward-5.js.map +1 -0
- package/{cjs/icons/outlined/material/icon-outlined-replay10.d.ts → esm/icons/outlined/custom/icon-outlined-replay-10.d.ts} +1 -1
- package/esm/icons/outlined/custom/icon-outlined-replay-10.d.ts.map +1 -0
- package/esm/icons/outlined/custom/icon-outlined-replay-10.js +17 -0
- package/esm/icons/outlined/custom/icon-outlined-replay-10.js.map +1 -0
- package/esm/icons/outlined/custom/icon-outlined-replay-15.d.ts +2 -0
- package/esm/icons/outlined/custom/icon-outlined-replay-15.d.ts.map +1 -0
- package/esm/icons/outlined/custom/icon-outlined-replay-15.js +17 -0
- package/esm/icons/outlined/custom/icon-outlined-replay-15.js.map +1 -0
- package/esm/icons/outlined/custom/icon-outlined-replay-20.d.ts +2 -0
- package/esm/icons/outlined/custom/icon-outlined-replay-20.d.ts.map +1 -0
- package/esm/icons/outlined/custom/icon-outlined-replay-20.js +17 -0
- package/esm/icons/outlined/custom/icon-outlined-replay-20.js.map +1 -0
- package/esm/icons/outlined/custom/icon-outlined-replay-25.d.ts +2 -0
- package/esm/icons/outlined/custom/icon-outlined-replay-25.d.ts.map +1 -0
- package/esm/icons/outlined/custom/icon-outlined-replay-25.js +17 -0
- package/esm/icons/outlined/custom/icon-outlined-replay-25.js.map +1 -0
- package/{cjs/icons/outlined/material/icon-outlined-replay30.d.ts → esm/icons/outlined/custom/icon-outlined-replay-30.d.ts} +1 -1
- package/esm/icons/outlined/custom/icon-outlined-replay-30.d.ts.map +1 -0
- package/esm/icons/outlined/custom/icon-outlined-replay-30.js +17 -0
- package/esm/icons/outlined/custom/icon-outlined-replay-30.js.map +1 -0
- package/{cjs/icons/outlined/material/icon-outlined-replay5.d.ts → esm/icons/outlined/custom/icon-outlined-replay-5.d.ts} +1 -1
- package/esm/icons/outlined/custom/icon-outlined-replay-5.d.ts.map +1 -0
- package/esm/icons/outlined/custom/icon-outlined-replay-5.js +17 -0
- package/esm/icons/outlined/custom/icon-outlined-replay-5.js.map +1 -0
- package/esm/icons/outlined/custom/index.d.ts +12 -0
- package/esm/icons/outlined/custom/index.d.ts.map +1 -1
- package/esm/icons/outlined/custom/index.js +12 -0
- package/esm/icons/outlined/custom/index.js.map +1 -1
- package/esm/icons/outlined/material/index.d.ts +0 -6
- package/esm/icons/outlined/material/index.js +0 -6
- package/esm/icons/to-newskit-icon.d.ts.map +1 -1
- package/esm/icons/to-newskit-icon.js.map +1 -1
- package/esm/image/image.d.ts +1 -2
- package/esm/image/image.d.ts.map +1 -1
- package/esm/inline-message/inline-message.d.ts +1 -2
- package/esm/inline-message/inline-message.d.ts.map +1 -1
- package/esm/label/label.d.ts +1 -2
- package/esm/label/label.d.ts.map +1 -1
- package/esm/link/link-inline.d.ts +1 -1
- package/esm/link/link-inline.d.ts.map +1 -1
- package/esm/link/link-standalone.d.ts +1 -1
- package/esm/link/link-standalone.d.ts.map +1 -1
- package/esm/link/link.d.ts +2 -2
- package/esm/link/link.d.ts.map +1 -1
- package/esm/link/utils.d.ts +1 -1
- package/esm/link/utils.d.ts.map +1 -1
- package/esm/menu/menu.d.ts +1 -1
- package/esm/menu/menu.d.ts.map +1 -1
- package/esm/modal/modal.d.ts +1 -2
- package/esm/modal/modal.d.ts.map +1 -1
- package/esm/ordered-list/ordered-list.d.ts +1 -2
- package/esm/ordered-list/ordered-list.d.ts.map +1 -1
- package/esm/overlay/overlay.d.ts +1 -2
- package/esm/overlay/overlay.d.ts.map +1 -1
- package/esm/radio-button/radio-button.d.ts +1 -1
- package/esm/radio-button/radio-button.d.ts.map +1 -1
- package/esm/scroll/scroll.d.ts +1 -1
- package/esm/scroll/scroll.d.ts.map +1 -1
- package/esm/scroll/scroll.js +2 -2
- package/esm/scroll/scroll.js.map +1 -1
- package/esm/scroll/utils.d.ts +2 -0
- package/esm/scroll/utils.d.ts.map +1 -0
- package/esm/scroll/utils.js +2 -0
- package/esm/scroll/utils.js.map +1 -0
- package/esm/select/select.d.ts +1 -1
- package/esm/select/select.d.ts.map +1 -1
- package/esm/share-bar/share-bar.d.ts +1 -1
- package/esm/share-bar/share-bar.d.ts.map +1 -1
- package/esm/slider/slider.d.ts +1 -2
- package/esm/slider/slider.d.ts.map +1 -1
- package/esm/slider/slider.js +2 -2
- package/esm/slider/slider.js.map +1 -1
- package/esm/standfirst/standfirst.d.ts +1 -2
- package/esm/standfirst/standfirst.d.ts.map +1 -1
- package/esm/structured-list/structured-list-item.d.ts +1 -1
- package/esm/structured-list/structured-list-item.d.ts.map +1 -1
- package/esm/structured-list/structured-list.d.ts +1 -1
- package/esm/structured-list/structured-list.d.ts.map +1 -1
- package/esm/tabs/tabs.d.ts +1 -1
- package/esm/tabs/tabs.d.ts.map +1 -1
- package/esm/tag/tag.d.ts +1 -2
- package/esm/tag/tag.d.ts.map +1 -1
- package/esm/text-field/text-field.d.ts +1 -1
- package/esm/text-field/text-field.d.ts.map +1 -1
- package/esm/text-input/text-input.d.ts +4 -1
- package/esm/text-input/text-input.d.ts.map +1 -1
- package/esm/text-input/text-input.js +5 -5
- package/esm/text-input/text-input.js.map +1 -1
- package/esm/theme-checker/scenarios.d.ts.map +1 -1
- package/esm/theme-checker/scenarios.js +32 -0
- package/esm/theme-checker/scenarios.js.map +1 -1
- package/esm/title-bar/title-bar.d.ts +1 -2
- package/esm/title-bar/title-bar.d.ts.map +1 -1
- package/esm/toast/toast.d.ts +1 -2
- package/esm/toast/toast.d.ts.map +1 -1
- package/esm/typography/heading/heading.d.ts +12 -12
- package/esm/typography/paragraph/paragraph.d.ts +2 -2
- package/esm/unordered-list/unordered-list.d.ts +1 -2
- package/esm/unordered-list/unordered-list.d.ts.map +1 -1
- package/esm/utils/get-transition-duration.d.ts.map +1 -1
- package/esm/utils/get-transition-duration.js +17 -0
- package/esm/utils/get-transition-duration.js.map +1 -1
- package/esm/utils/hooks/use-keypress.d.ts +2 -1
- package/esm/utils/hooks/use-keypress.d.ts.map +1 -1
- package/esm/utils/hooks/use-keypress.js +101 -31
- package/esm/utils/hooks/use-keypress.js.map +1 -1
- package/esm/utils/hooks/use-media-query/context.d.ts +2 -1
- package/esm/utils/hooks/use-media-query/context.d.ts.map +1 -1
- package/esm/utils/hooks/use-media-query/context.js.map +1 -1
- package/esm/utils/style/transition-preset.d.ts +1 -1
- package/esm/utils/style/transition-preset.d.ts.map +1 -1
- package/esm/utils/style/transition-preset.js +40 -8
- package/esm/utils/style/transition-preset.js.map +1 -1
- package/esm/utils/types.d.ts +1 -0
- package/esm/utils/types.d.ts.map +1 -1
- package/esm/utils/with-own-theme.d.ts +4 -1
- package/esm/utils/with-own-theme.d.ts.map +1 -1
- package/esm/utils/with-own-theme.js +3 -1
- package/esm/utils/with-own-theme.js.map +1 -1
- package/esm/version-number.json +1 -1
- package/esm/video-player/video-player.d.ts +1 -1
- package/esm/video-player/video-player.d.ts.map +1 -1
- package/esm/volume-control/volume-control.d.ts +1 -2
- package/esm/volume-control/volume-control.d.ts.map +1 -1
- package/package.json +1 -1
- package/cjs/icons/filled/material/icon-filled-forward10.js +0 -11
- package/cjs/icons/filled/material/icon-filled-forward30.js +0 -11
- package/cjs/icons/filled/material/icon-filled-forward5.js +0 -11
- package/cjs/icons/filled/material/icon-filled-replay10.js +0 -11
- package/cjs/icons/filled/material/icon-filled-replay30.js +0 -11
- package/cjs/icons/filled/material/icon-filled-replay5.js +0 -11
- package/cjs/icons/outlined/material/icon-outlined-forward10.js +0 -11
- package/cjs/icons/outlined/material/icon-outlined-forward30.js +0 -11
- package/cjs/icons/outlined/material/icon-outlined-forward5.js +0 -11
- package/cjs/icons/outlined/material/icon-outlined-replay10.js +0 -11
- package/cjs/icons/outlined/material/icon-outlined-replay30.js +0 -11
- package/cjs/icons/outlined/material/icon-outlined-replay5.js +0 -11
- package/esm/icons/filled/material/icon-filled-forward10.js +0 -8
- package/esm/icons/filled/material/icon-filled-forward30.js +0 -8
- package/esm/icons/filled/material/icon-filled-forward5.js +0 -8
- package/esm/icons/filled/material/icon-filled-replay10.js +0 -8
- package/esm/icons/filled/material/icon-filled-replay30.js +0 -8
- package/esm/icons/filled/material/icon-filled-replay5.js +0 -8
- package/esm/icons/outlined/material/icon-outlined-forward10.js +0 -8
- package/esm/icons/outlined/material/icon-outlined-forward30.js +0 -8
- package/esm/icons/outlined/material/icon-outlined-forward5.js +0 -8
- package/esm/icons/outlined/material/icon-outlined-replay10.js +0 -8
- package/esm/icons/outlined/material/icon-outlined-replay30.js +0 -8
- 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
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
123
|
+
addEventIfNotExist({
|
|
124
|
+
element: targetNode,
|
|
125
|
+
keyShortcut: keyLowerCase.toString(),
|
|
126
|
+
keyUp: onKeyUp,
|
|
127
|
+
keyDown: onKeyDown,
|
|
128
|
+
});
|
|
66
129
|
}
|
|
67
130
|
return function () {
|
|
68
|
-
|
|
131
|
+
if (targetNode) {
|
|
132
|
+
removeEvent({
|
|
133
|
+
element: targetNode,
|
|
134
|
+
keyShortcut: keyLowerCase.toString(),
|
|
135
|
+
keyUp: onKeyUp,
|
|
136
|
+
keyDown: onKeyDown,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
69
139
|
};
|
|
70
|
-
}, [
|
|
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":"
|
|
1
|
+
{"version":3,"file":"use-keypress.js","sourceRoot":"","sources":["../../../../src/utils/hooks/use-keypress.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAmD;AACnD,oEAA+D;AAS/D,IAAM,eAAe,GAAG,UAAC,KAAY;IACnC,OAAA,KAAK,IAAI,KAAK;AAAd,CAAc,CAAC;AAEjB;;;;;;EAME;AACF,IAAM,WAAW,GAAG,IAAI,OAAO,EAAoC,CAAC;AAEpE,IAAM,kBAAkB,GAAG,UAAC,EAU3B;QATC,OAAO,aAAA,EACP,WAAW,iBAAA,EACX,KAAK,WAAA,EACL,OAAO,aAAA;IAOP,IAAM,iBAAiB,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAEnD,IAAM,YAAY,GAAG;QACnB,OAAO,CAAC,gBAAgB,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;QACpD,OAAO,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClD,CAAC,CAAC;IAEF,IAAI,CAAC,iBAAiB,EAAE;QACtB,WAAW,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;QACxC,YAAY,EAAE,CAAC;KAChB;SAAM,IACL,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC;QAChC,iBAAiB,CAAC,OAAO,CAAC,WAAW,CAAC,K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,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QACjC,CAAC,CAAC;QAEF,IAAM,SAAS,GAAG,IAAA,6CAAoB,EAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;QAC7D,IAAM,OAAO,GAAG,IAAA,6CAAoB,EAAC,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC;QAEhE,IAAI,OAAO,IAAI,OAAO,UAAU,KAAK,WAAW,EAAE;YAChD,kBAAkB,CAAC;gBACjB,OAAO,EAAE,UAAU;gBACnB,WAAW,EAAE,YAAY,CAAC,QAAQ,EAAE;gBACpC,KAAK,EAAE,OAAO;gBACd,OAAO,EAAE,SAAS;aACnB,CAAC,CAAC;SACJ;QAED,OAAO;YACL,IAAI,UAAU,EAAE;gBACd,WAAW,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>) =>
|
|
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;
|
|
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,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAC,eAgEzE;AAED,eAAO,MAAM,sBAAsB,oFAUlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../src/utils/hooks/use-media-query/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,wCAAwD;AACxD,+DAAgE;
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../src/utils/hooks/use-media-query/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,wCAAwD;AACxD,+DAAgE;AAGhE,iCAIiB;AAEJ,QAAA,SAAS,GAAG,eAAK,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;AAEjD,SAAgB,kBAAkB,CAAC,EAAuC;QAAtC,QAAQ,cAAA;IAC1C,IAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAC;IAClB,IAAA,WAAW,GAAI,KAAK,YAAT,CAAU;IAC5B,IAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAqB,CAAC;IAEpE,IAAM,eAAe,GAAiB,cAAc,CAAC,MAAM,CACzD,UAAC,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG;;QAC7B,IAAM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,CAAC;YACL,CAAC,CAAC,CAAC;SACJ;QAED,OAAO;YACL,mBAAmB,CAAC,OAAO,CAAC,UAAC,EAAmB;oBAAlB,MAAM,YAAA,EAAE,SAAS,eAAA;gBAC7C,IAAA,6BAAqB,EAAC,MAAM,EAAE,SAAS,CAAC,CAAC;YAC3C,CAAC,CAAC,CAAC;QACL,CAAC,CAAC;QACF,uDAAuD;IACzD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,8BAAC,iBAAS,CAAC,QAAQ,IAAC,KAAK,EAAE,eAAe,IAAG,QAAQ,CAAsB,CAC5E,CAAC;AACJ,CAAC;AAhED,gDAgEC;AAEM,IAAM,sBAAsB,GAAG,UACpC,aAAqC;IAErC,IAAM,gBAAgB,GAAG,eAAK,CAAC,UAAU,CAAa,UAAC,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) => "" |
|
|
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;
|
|
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[
|
|
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[
|
|
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
|
-
|
|
106
|
-
|
|
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
|
-
|
|
111
|
-
|
|
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,C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AAC,sBAAsB,EAAE,UAAU;QACjC,OAAA,0CAA0C,CACxC,UAAU,EACV,sBAAsB,CACvB;IAHD,CAGC,EACH,EAAsB,CACvB,CAAC;IAEJ,OAAO,uBAAuB,CAAC;AACjC,CAAC,CAAC;
|
|
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,QAAQ,KAAK,MAAM,EAAE;gBACvB,6BAAW,GAAG,GAAK,WAAW,EAAE;aACjC;YAED,GAAG,CAAC,QAAQ,CAAC,GAAG,WAAW,CAAC;SAC7B;QAED,OAAO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../../../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
|
-
}) =>
|
|
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;
|
|
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
|
-
|
|
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;
|
|
1
|
+
{"version":3,"file":"with-own-theme.js","sourceRoot":"","sources":["../../../src/utils/with-own-theme.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,kCAAyE;AACzE,2CAAuC;AAMvC,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,UAAU,CAAC,WAAW,EAAE,QAAQ,EAAE,YAAY,CAAC;IAA/C,CAA+C,CAAC;IAElD,IAAM,gBAAgB,GAAG,eAAK,CAAC,UAAU,CAAa,UAAC,KAAK,EAAE,GAAG,IAAK,OAAA,CACpE,8BAAC,qBAAa,IAAC,KAAK,EAAE,cAAc;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"}
|
package/cjs/version-number.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { VideoPlayerProps } from './types';
|
|
3
|
-
export declare const VideoPlayer:
|
|
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,
|
|
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:
|
|
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":"
|
|
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:
|
|
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":"
|
|
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:
|
|
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":"
|
|
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: ({
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
onClickForward: (
|
|
18
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
82
|
+
var onClickBackward = useCallback(
|
|
85
83
|
/* istanbul ignore next */
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
90
|
+
var onClickForward = useCallback(
|
|
114
91
|
/* istanbul ignore next */
|
|
115
|
-
|
|
116
|
-
|
|
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
|
-
|
|
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,
|