newskit 5.2.0 → 5.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +23 -0
- package/cjs/audio-player-composable/audio-functions.d.ts.map +1 -0
- package/cjs/audio-player-composable/audio-functions.js +230 -0
- package/cjs/audio-player-composable/audio-functions.js.map +1 -0
- package/cjs/audio-player-composable/audio-player-composable.d.ts +4 -0
- package/cjs/audio-player-composable/audio-player-composable.d.ts.map +1 -0
- package/cjs/audio-player-composable/audio-player-composable.js +219 -0
- package/cjs/audio-player-composable/audio-player-composable.js.map +1 -0
- package/cjs/audio-player-composable/components/audio-element.d.ts +4 -0
- package/cjs/audio-player-composable/components/audio-element.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/audio-element.js +14 -0
- package/cjs/audio-player-composable/components/audio-element.js.map +1 -0
- 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/index.d.ts +3 -0
- package/cjs/audio-player-composable/components/play-pause-button/index.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/play-pause-button/index.js +15 -0
- package/cjs/audio-player-composable/components/play-pause-button/index.js.map +1 -0
- package/cjs/audio-player-composable/components/play-pause-button/play-pause-button.d.ts +2 -0
- package/cjs/audio-player-composable/components/play-pause-button/play-pause-button.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/play-pause-button/play-pause-button.js +71 -0
- package/cjs/audio-player-composable/components/play-pause-button/play-pause-button.js.map +1 -0
- package/cjs/audio-player-composable/components/play-pause-button/types.d.ts +3 -0
- package/cjs/audio-player-composable/components/play-pause-button/types.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/play-pause-button/types.js +3 -0
- package/cjs/audio-player-composable/components/play-pause-button/types.js.map +1 -0
- 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/defaults.d.ts +22 -0
- package/cjs/audio-player-composable/components/seek-bar/defaults.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/seek-bar/defaults.js +23 -0
- package/cjs/audio-player-composable/components/seek-bar/defaults.js.map +1 -0
- package/cjs/audio-player-composable/components/seek-bar/index.d.ts +3 -0
- package/cjs/audio-player-composable/components/seek-bar/index.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/seek-bar/index.js +15 -0
- package/cjs/audio-player-composable/components/seek-bar/index.js.map +1 -0
- package/cjs/audio-player-composable/components/seek-bar/seek-bar.d.ts +3 -0
- package/cjs/audio-player-composable/components/seek-bar/seek-bar.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/seek-bar/seek-bar.js +101 -0
- package/cjs/audio-player-composable/components/seek-bar/seek-bar.js.map +1 -0
- package/cjs/audio-player-composable/components/seek-bar/style-presets.d.ts +4 -0
- package/cjs/audio-player-composable/components/seek-bar/style-presets.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/seek-bar/style-presets.js +41 -0
- package/cjs/audio-player-composable/components/seek-bar/style-presets.js.map +1 -0
- package/cjs/audio-player-composable/components/seek-bar/types.d.ts +11 -0
- package/cjs/audio-player-composable/components/seek-bar/types.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/seek-bar/types.js +3 -0
- package/cjs/audio-player-composable/components/seek-bar/types.js.map +1 -0
- package/cjs/audio-player-composable/components/seek-bar/utils.d.ts +6 -0
- package/cjs/audio-player-composable/components/seek-bar/utils.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/seek-bar/utils.js +53 -0
- package/cjs/audio-player-composable/components/seek-bar/utils.js.map +1 -0
- 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/defaults.d.ts +8 -0
- package/cjs/audio-player-composable/components/time-display/defaults.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/time-display/defaults.js +9 -0
- package/cjs/audio-player-composable/components/time-display/defaults.js.map +1 -0
- package/cjs/audio-player-composable/components/time-display/index.d.ts +3 -0
- package/cjs/audio-player-composable/components/time-display/index.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/time-display/index.js +15 -0
- package/cjs/audio-player-composable/components/time-display/index.js.map +1 -0
- package/cjs/audio-player-composable/components/time-display/style-presets.d.ts +4 -0
- package/cjs/audio-player-composable/components/time-display/style-presets.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/time-display/style-presets.js +10 -0
- package/cjs/audio-player-composable/components/time-display/style-presets.js.map +1 -0
- package/cjs/audio-player-composable/components/time-display/time-display.d.ts +3 -0
- package/cjs/audio-player-composable/components/time-display/time-display.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/time-display/time-display.js +53 -0
- package/cjs/audio-player-composable/components/time-display/time-display.js.map +1 -0
- package/cjs/audio-player-composable/components/time-display/types.d.ts +14 -0
- package/cjs/audio-player-composable/components/time-display/types.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/time-display/types.js +3 -0
- package/cjs/audio-player-composable/components/time-display/types.js.map +1 -0
- package/cjs/audio-player-composable/components/time-display/utils.d.ts +4 -0
- package/cjs/audio-player-composable/components/time-display/utils.d.ts.map +1 -0
- package/cjs/audio-player-composable/components/time-display/utils.js +24 -0
- package/cjs/audio-player-composable/components/time-display/utils.js.map +1 -0
- 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 +6 -0
- package/cjs/audio-player-composable/context.d.ts.map +1 -0
- package/cjs/audio-player-composable/context.js +18 -0
- package/cjs/audio-player-composable/context.js.map +1 -0
- package/cjs/audio-player-composable/index.d.ts +11 -0
- package/cjs/audio-player-composable/index.d.ts.map +1 -0
- package/cjs/audio-player-composable/index.js +28 -0
- package/cjs/audio-player-composable/index.js.map +1 -0
- package/cjs/audio-player-composable/types.d.ts +78 -0
- package/cjs/audio-player-composable/types.d.ts.map +1 -0
- package/cjs/audio-player-composable/types.js +16 -0
- package/cjs/audio-player-composable/types.js.map +1 -0
- package/cjs/audio-player-composable/utils.d.ts +14 -0
- package/cjs/audio-player-composable/utils.d.ts.map +1 -0
- package/cjs/audio-player-composable/utils.js +64 -0
- package/cjs/audio-player-composable/utils.js.map +1 -0
- package/cjs/banner/banner.d.ts +1 -2
- package/cjs/banner/banner.d.ts.map +1 -1
- package/cjs/base-switch/base-switch.d.ts +4 -0
- package/cjs/base-switch/base-switch.d.ts.map +1 -0
- package/cjs/base-switch/base-switch.js +110 -0
- package/cjs/base-switch/base-switch.js.map +1 -0
- package/cjs/base-switch/index.d.ts +3 -0
- package/cjs/base-switch/index.d.ts.map +1 -0
- package/cjs/base-switch/index.js +6 -0
- package/cjs/base-switch/index.js.map +1 -0
- package/cjs/{checkbox → base-switch}/styled.d.ts +11 -11
- package/cjs/base-switch/styled.d.ts.map +1 -0
- package/cjs/base-switch/styled.js +79 -0
- package/cjs/base-switch/styled.js.map +1 -0
- package/cjs/base-switch/types.d.ts +41 -0
- package/cjs/base-switch/types.d.ts.map +1 -0
- package/cjs/base-switch/types.js +3 -0
- package/cjs/base-switch/types.js.map +1 -0
- package/cjs/block/block.d.ts +11 -1
- package/cjs/block/block.d.ts.map +1 -1
- package/cjs/block/block.js +3 -2
- package/cjs/block/block.js.map +1 -1
- package/cjs/button/button.d.ts +1 -1
- package/cjs/button/button.d.ts.map +1 -1
- package/cjs/button/styled.d.ts.map +1 -1
- package/cjs/button/styled.js +5 -1
- package/cjs/button/styled.js.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/checkbox/checkbox.js +3 -101
- package/cjs/checkbox/checkbox.js.map +1 -1
- package/cjs/checkbox/defaults.d.ts +3 -0
- package/cjs/checkbox/defaults.d.ts.map +1 -1
- package/cjs/checkbox/defaults.js +3 -0
- package/cjs/checkbox/defaults.js.map +1 -1
- package/cjs/checkbox/style-presets.d.ts.map +1 -1
- package/cjs/checkbox/style-presets.js +42 -24
- package/cjs/checkbox/style-presets.js.map +1 -1
- package/cjs/checkbox/types.d.ts +5 -34
- package/cjs/checkbox/types.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/flag/styled.d.ts.map +1 -1
- package/cjs/flag/styled.js +6 -2
- package/cjs/flag/styled.js.map +1 -1
- package/cjs/flag/types.d.ts +5 -1
- package/cjs/flag/types.d.ts.map +1 -1
- package/cjs/flag/types.js.map +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 +2 -1
- package/cjs/form/form-input.d.ts.map +1 -1
- package/cjs/form/form-input.js +15 -11
- package/cjs/form/form-input.js.map +1 -1
- package/cjs/form/types.d.ts +3 -2
- package/cjs/form/types.d.ts.map +1 -1
- package/cjs/form/utils.d.ts +0 -1
- package/cjs/form/utils.d.ts.map +1 -1
- package/cjs/form/utils.js +1 -13
- package/cjs/form/utils.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/grid-layout.d.ts +1 -1
- package/cjs/grid-layout/grid-layout.d.ts.map +1 -1
- package/cjs/grid-layout/styled.d.ts +22 -2
- package/cjs/grid-layout/styled.d.ts.map +1 -1
- package/cjs/grid-layout/types.d.ts +4 -3
- 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/icon-filled-circle.d.ts +2 -0
- package/cjs/icons/filled/material/{icon-filled-replay5.js → icon-filled-circle.js} +5 -5
- package/cjs/icons/filled/material/index.d.ts +1 -6
- package/cjs/icons/filled/material/index.js +25 -35
- 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/icon-outlined-circle.d.ts +2 -0
- package/cjs/icons/{filled/material/icon-filled-replay30.js → outlined/material/icon-outlined-circle.js} +5 -5
- package/cjs/icons/outlined/material/index.d.ts +1 -6
- package/cjs/icons/outlined/material/index.js +25 -35
- package/cjs/icons/to-newskit-icon.d.ts.map +1 -1
- package/cjs/icons/to-newskit-icon.js +14 -9
- 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/index.d.ts +2 -0
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +2 -0
- package/cjs/index.js.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/label/styled.d.ts +1 -6
- package/cjs/label/styled.d.ts.map +1 -1
- package/cjs/label/styled.js +5 -1
- package/cjs/label/styled.js.map +1 -1
- package/cjs/label/types.d.ts +14 -6
- package/cjs/label/types.d.ts.map +1 -1
- package/cjs/link/internal-link.d.ts.map +1 -1
- package/cjs/link/internal-link.js +2 -1
- package/cjs/link/internal-link.js.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/types.d.ts +12 -9
- package/cjs/link/types.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/defaults.d.ts +66 -0
- package/cjs/radio-button/defaults.d.ts.map +1 -0
- package/cjs/radio-button/defaults.js +79 -0
- package/cjs/radio-button/defaults.js.map +1 -0
- package/cjs/radio-button/index.d.ts +4 -0
- package/cjs/radio-button/index.d.ts.map +1 -0
- package/cjs/radio-button/index.js +8 -0
- package/cjs/radio-button/index.js.map +1 -0
- package/cjs/radio-button/radio-button.d.ts +4 -0
- package/cjs/radio-button/radio-button.d.ts.map +1 -0
- package/cjs/radio-button/radio-button.js +66 -0
- package/cjs/radio-button/radio-button.js.map +1 -0
- package/cjs/radio-button/radio-group.d.ts +11 -0
- package/cjs/radio-button/radio-group.d.ts.map +1 -0
- package/cjs/radio-button/radio-group.js +67 -0
- package/cjs/radio-button/radio-group.js.map +1 -0
- package/cjs/radio-button/style-presets.d.ts +4 -0
- package/cjs/radio-button/style-presets.d.ts.map +1 -0
- package/cjs/radio-button/style-presets.js +151 -0
- package/cjs/radio-button/style-presets.js.map +1 -0
- package/cjs/radio-button/types.d.ts +17 -0
- package/cjs/radio-button/types.d.ts.map +1 -0
- package/cjs/radio-button/types.js +3 -0
- package/cjs/radio-button/types.js.map +1 -0
- package/cjs/scroll/scroll.d.ts +1 -1
- package/cjs/scroll/scroll.d.ts.map +1 -1
- package/cjs/select/select.d.ts +1 -1
- package/cjs/select/select.d.ts.map +1 -1
- package/cjs/select/styled.d.ts.map +1 -1
- package/cjs/select/styled.js +5 -1
- package/cjs/select/styled.js.map +1 -1
- package/cjs/select/types.d.ts +14 -1
- package/cjs/select/types.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/stack/styled.d.ts.map +1 -1
- package/cjs/stack/styled.js +3 -2
- package/cjs/stack/styled.js.map +1 -1
- package/cjs/stack/types.d.ts +2 -1
- package/cjs/stack/types.d.ts.map +1 -1
- package/cjs/stack/types.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-block/text-block.d.ts.map +1 -1
- package/cjs/text-block/text-block.js +3 -2
- package/cjs/text-block/text-block.js.map +1 -1
- package/cjs/text-block/types.d.ts +2 -1
- package/cjs/text-block/types.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/presets/style-presets.js +8 -0
- package/cjs/theme/presets/style-presets.js.map +1 -1
- package/cjs/theme-checker/scenarios.d.ts +15 -4
- package/cjs/theme-checker/scenarios.d.ts.map +1 -1
- package/cjs/theme-checker/scenarios.js +55 -3
- 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/compose-event-handlers.d.ts +2 -0
- package/cjs/utils/compose-event-handlers.d.ts.map +1 -0
- package/cjs/utils/compose-event-handlers.js +16 -0
- package/cjs/utils/compose-event-handlers.js.map +1 -0
- 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-controlled.d.ts +5 -4
- package/cjs/utils/hooks/use-controlled.d.ts.map +1 -1
- package/cjs/utils/hooks/use-controlled.js +1 -1
- package/cjs/utils/hooks/use-controlled.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/logical-properties.d.ts +24 -0
- package/cjs/utils/logical-properties.d.ts.map +1 -0
- package/cjs/utils/logical-properties.js +54 -0
- package/cjs/utils/logical-properties.js.map +1 -0
- package/cjs/utils/style/style-preset.d.ts +1 -1
- package/cjs/utils/style/style-preset.d.ts.map +1 -1
- package/cjs/utils/style/style-preset.js +3 -3
- package/cjs/utils/style/style-preset.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 +43 -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/cjs/with-enhancers/styled.d.ts.map +1 -1
- package/cjs/with-enhancers/styled.js +6 -2
- package/cjs/with-enhancers/styled.js.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 +23 -0
- package/esm/audio-player-composable/audio-functions.d.ts.map +1 -0
- package/esm/audio-player-composable/audio-functions.js +223 -0
- package/esm/audio-player-composable/audio-functions.js.map +1 -0
- package/esm/audio-player-composable/audio-player-composable.d.ts +4 -0
- package/esm/audio-player-composable/audio-player-composable.d.ts.map +1 -0
- package/esm/audio-player-composable/audio-player-composable.js +196 -0
- package/esm/audio-player-composable/audio-player-composable.js.map +1 -0
- package/esm/audio-player-composable/components/audio-element.d.ts +4 -0
- package/esm/audio-player-composable/components/audio-element.d.ts.map +1 -0
- package/esm/audio-player-composable/components/audio-element.js +7 -0
- package/esm/audio-player-composable/components/audio-element.js.map +1 -0
- 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/index.d.ts +3 -0
- package/esm/audio-player-composable/components/play-pause-button/index.d.ts.map +1 -0
- package/esm/audio-player-composable/components/play-pause-button/index.js +3 -0
- package/esm/audio-player-composable/components/play-pause-button/index.js.map +1 -0
- package/esm/audio-player-composable/components/play-pause-button/play-pause-button.d.ts +2 -0
- package/esm/audio-player-composable/components/play-pause-button/play-pause-button.d.ts.map +1 -0
- package/esm/audio-player-composable/components/play-pause-button/play-pause-button.js +46 -0
- package/esm/audio-player-composable/components/play-pause-button/play-pause-button.js.map +1 -0
- package/esm/audio-player-composable/components/play-pause-button/types.d.ts +3 -0
- package/esm/audio-player-composable/components/play-pause-button/types.d.ts.map +1 -0
- package/esm/audio-player-composable/components/play-pause-button/types.js +2 -0
- package/esm/audio-player-composable/components/play-pause-button/types.js.map +1 -0
- 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/defaults.d.ts +22 -0
- package/esm/audio-player-composable/components/seek-bar/defaults.d.ts.map +1 -0
- package/esm/audio-player-composable/components/seek-bar/defaults.js +21 -0
- package/esm/audio-player-composable/components/seek-bar/defaults.js.map +1 -0
- package/esm/audio-player-composable/components/seek-bar/index.d.ts +3 -0
- package/esm/audio-player-composable/components/seek-bar/index.d.ts.map +1 -0
- package/esm/audio-player-composable/components/seek-bar/index.js +3 -0
- package/esm/audio-player-composable/components/seek-bar/index.js.map +1 -0
- package/esm/audio-player-composable/components/seek-bar/seek-bar.d.ts +3 -0
- package/esm/audio-player-composable/components/seek-bar/seek-bar.d.ts.map +1 -0
- package/esm/audio-player-composable/components/seek-bar/seek-bar.js +76 -0
- package/esm/audio-player-composable/components/seek-bar/seek-bar.js.map +1 -0
- package/esm/audio-player-composable/components/seek-bar/style-presets.d.ts +4 -0
- package/esm/audio-player-composable/components/seek-bar/style-presets.d.ts.map +1 -0
- package/esm/audio-player-composable/components/seek-bar/style-presets.js +39 -0
- package/esm/audio-player-composable/components/seek-bar/style-presets.js.map +1 -0
- package/esm/audio-player-composable/components/seek-bar/types.d.ts +11 -0
- package/esm/audio-player-composable/components/seek-bar/types.d.ts.map +1 -0
- package/esm/audio-player-composable/components/seek-bar/types.js +2 -0
- package/esm/audio-player-composable/components/seek-bar/types.js.map +1 -0
- package/esm/audio-player-composable/components/seek-bar/utils.d.ts +6 -0
- package/esm/audio-player-composable/components/seek-bar/utils.d.ts.map +1 -0
- package/esm/audio-player-composable/components/seek-bar/utils.js +48 -0
- package/esm/audio-player-composable/components/seek-bar/utils.js.map +1 -0
- 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/defaults.d.ts +8 -0
- package/esm/audio-player-composable/components/time-display/defaults.d.ts.map +1 -0
- package/esm/audio-player-composable/components/time-display/defaults.js +7 -0
- package/esm/audio-player-composable/components/time-display/defaults.js.map +1 -0
- package/esm/audio-player-composable/components/time-display/index.d.ts +3 -0
- package/esm/audio-player-composable/components/time-display/index.d.ts.map +1 -0
- package/esm/audio-player-composable/components/time-display/index.js +3 -0
- package/esm/audio-player-composable/components/time-display/index.js.map +1 -0
- package/esm/audio-player-composable/components/time-display/style-presets.d.ts +4 -0
- package/esm/audio-player-composable/components/time-display/style-presets.d.ts.map +1 -0
- package/esm/audio-player-composable/components/time-display/style-presets.js +8 -0
- package/esm/audio-player-composable/components/time-display/style-presets.js.map +1 -0
- package/esm/audio-player-composable/components/time-display/time-display.d.ts +3 -0
- package/esm/audio-player-composable/components/time-display/time-display.d.ts.map +1 -0
- package/esm/audio-player-composable/components/time-display/time-display.js +47 -0
- package/esm/audio-player-composable/components/time-display/time-display.js.map +1 -0
- package/esm/audio-player-composable/components/time-display/types.d.ts +14 -0
- package/esm/audio-player-composable/components/time-display/types.d.ts.map +1 -0
- package/esm/audio-player-composable/components/time-display/types.js +2 -0
- package/esm/audio-player-composable/components/time-display/types.js.map +1 -0
- package/esm/audio-player-composable/components/time-display/utils.d.ts +4 -0
- package/esm/audio-player-composable/components/time-display/utils.d.ts.map +1 -0
- package/esm/audio-player-composable/components/time-display/utils.js +19 -0
- package/esm/audio-player-composable/components/time-display/utils.js.map +1 -0
- 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 +6 -0
- package/esm/audio-player-composable/context.d.ts.map +1 -0
- package/esm/audio-player-composable/context.js +14 -0
- package/esm/audio-player-composable/context.js.map +1 -0
- package/esm/audio-player-composable/index.d.ts +11 -0
- package/esm/audio-player-composable/index.d.ts.map +1 -0
- package/esm/audio-player-composable/index.js +12 -0
- package/esm/audio-player-composable/index.js.map +1 -0
- package/esm/audio-player-composable/types.d.ts +78 -0
- package/esm/audio-player-composable/types.d.ts.map +1 -0
- package/esm/audio-player-composable/types.js +13 -0
- package/esm/audio-player-composable/types.js.map +1 -0
- package/esm/audio-player-composable/utils.d.ts +14 -0
- package/esm/audio-player-composable/utils.d.ts.map +1 -0
- package/esm/audio-player-composable/utils.js +56 -0
- package/esm/audio-player-composable/utils.js.map +1 -0
- package/esm/banner/banner.d.ts +1 -2
- package/esm/banner/banner.d.ts.map +1 -1
- package/esm/base-switch/base-switch.d.ts +4 -0
- package/esm/base-switch/base-switch.d.ts.map +1 -0
- package/esm/base-switch/base-switch.js +85 -0
- package/esm/base-switch/base-switch.js.map +1 -0
- package/esm/base-switch/index.d.ts +3 -0
- package/esm/base-switch/index.d.ts.map +1 -0
- package/esm/base-switch/index.js +2 -0
- package/esm/base-switch/index.js.map +1 -0
- package/esm/{checkbox → base-switch}/styled.d.ts +11 -11
- package/esm/base-switch/styled.d.ts.map +1 -0
- package/esm/base-switch/styled.js +76 -0
- package/esm/base-switch/styled.js.map +1 -0
- package/esm/base-switch/types.d.ts +41 -0
- package/esm/base-switch/types.d.ts.map +1 -0
- package/esm/base-switch/types.js +2 -0
- package/esm/base-switch/types.js.map +1 -0
- package/esm/block/block.d.ts +11 -1
- package/esm/block/block.d.ts.map +1 -1
- package/esm/block/block.js +3 -2
- package/esm/block/block.js.map +1 -1
- package/esm/button/button.d.ts +1 -1
- package/esm/button/button.d.ts.map +1 -1
- package/esm/button/styled.d.ts.map +1 -1
- package/esm/button/styled.js +5 -1
- package/esm/button/styled.js.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/checkbox/checkbox.js +3 -82
- package/esm/checkbox/checkbox.js.map +1 -1
- package/esm/checkbox/defaults.d.ts +3 -0
- package/esm/checkbox/defaults.d.ts.map +1 -1
- package/esm/checkbox/defaults.js +3 -0
- package/esm/checkbox/defaults.js.map +1 -1
- package/esm/checkbox/style-presets.d.ts.map +1 -1
- package/esm/checkbox/style-presets.js +42 -24
- package/esm/checkbox/style-presets.js.map +1 -1
- package/esm/checkbox/types.d.ts +5 -34
- package/esm/checkbox/types.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/flag/styled.d.ts.map +1 -1
- package/esm/flag/styled.js +6 -2
- package/esm/flag/styled.js.map +1 -1
- package/esm/flag/types.d.ts +5 -1
- package/esm/flag/types.d.ts.map +1 -1
- package/esm/flag/types.js.map +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 +2 -1
- package/esm/form/form-input.d.ts.map +1 -1
- package/esm/form/form-input.js +12 -8
- package/esm/form/form-input.js.map +1 -1
- package/esm/form/types.d.ts +3 -2
- package/esm/form/types.d.ts.map +1 -1
- package/esm/form/utils.d.ts +0 -1
- package/esm/form/utils.d.ts.map +1 -1
- package/esm/form/utils.js +0 -11
- package/esm/form/utils.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/grid-layout.d.ts +1 -1
- package/esm/grid-layout/grid-layout.d.ts.map +1 -1
- package/esm/grid-layout/styled.d.ts +22 -2
- package/esm/grid-layout/styled.d.ts.map +1 -1
- package/esm/grid-layout/types.d.ts +4 -3
- 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/icon-filled-circle.d.ts +2 -0
- package/esm/icons/filled/material/{icon-filled-replay5.js → icon-filled-circle.js} +4 -4
- package/esm/icons/filled/material/index.d.ts +1 -6
- package/esm/icons/filled/material/index.js +1 -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/icon-outlined-circle.d.ts +2 -0
- package/esm/icons/{filled/material/icon-filled-replay30.js → outlined/material/icon-outlined-circle.js} +4 -4
- package/esm/icons/outlined/material/index.d.ts +1 -6
- package/esm/icons/outlined/material/index.js +1 -6
- package/esm/icons/to-newskit-icon.d.ts.map +1 -1
- package/esm/icons/to-newskit-icon.js +14 -9
- 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/index.d.ts +2 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -0
- package/esm/index.js.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/label/styled.d.ts +1 -6
- package/esm/label/styled.d.ts.map +1 -1
- package/esm/label/styled.js +5 -1
- package/esm/label/styled.js.map +1 -1
- package/esm/label/types.d.ts +14 -6
- package/esm/label/types.d.ts.map +1 -1
- package/esm/link/internal-link.d.ts.map +1 -1
- package/esm/link/internal-link.js +2 -1
- package/esm/link/internal-link.js.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/types.d.ts +12 -9
- package/esm/link/types.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/defaults.d.ts +66 -0
- package/esm/radio-button/defaults.d.ts.map +1 -0
- package/esm/radio-button/defaults.js +77 -0
- package/esm/radio-button/defaults.js.map +1 -0
- package/esm/radio-button/index.d.ts +4 -0
- package/esm/radio-button/index.d.ts.map +1 -0
- package/esm/radio-button/index.js +3 -0
- package/esm/radio-button/index.js.map +1 -0
- package/esm/radio-button/radio-button.d.ts +4 -0
- package/esm/radio-button/radio-button.d.ts.map +1 -0
- package/esm/radio-button/radio-button.js +60 -0
- package/esm/radio-button/radio-button.js.map +1 -0
- package/esm/radio-button/radio-group.d.ts +11 -0
- package/esm/radio-button/radio-group.d.ts.map +1 -0
- package/esm/radio-button/radio-group.js +44 -0
- package/esm/radio-button/radio-group.js.map +1 -0
- package/esm/radio-button/style-presets.d.ts +4 -0
- package/esm/radio-button/style-presets.d.ts.map +1 -0
- package/esm/radio-button/style-presets.js +149 -0
- package/esm/radio-button/style-presets.js.map +1 -0
- package/esm/radio-button/types.d.ts +17 -0
- package/esm/radio-button/types.d.ts.map +1 -0
- package/esm/radio-button/types.js +2 -0
- package/esm/radio-button/types.js.map +1 -0
- package/esm/scroll/scroll.d.ts +1 -1
- package/esm/scroll/scroll.d.ts.map +1 -1
- package/esm/select/select.d.ts +1 -1
- package/esm/select/select.d.ts.map +1 -1
- package/esm/select/styled.d.ts.map +1 -1
- package/esm/select/styled.js +5 -1
- package/esm/select/styled.js.map +1 -1
- package/esm/select/types.d.ts +14 -1
- package/esm/select/types.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/stack/styled.d.ts.map +1 -1
- package/esm/stack/styled.js +3 -2
- package/esm/stack/styled.js.map +1 -1
- package/esm/stack/types.d.ts +2 -1
- package/esm/stack/types.d.ts.map +1 -1
- package/esm/stack/types.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-block/text-block.d.ts.map +1 -1
- package/esm/text-block/text-block.js +3 -2
- package/esm/text-block/text-block.js.map +1 -1
- package/esm/text-block/types.d.ts +2 -1
- package/esm/text-block/types.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/presets/style-presets.js +8 -0
- package/esm/theme/presets/style-presets.js.map +1 -1
- package/esm/theme-checker/scenarios.d.ts +15 -4
- package/esm/theme-checker/scenarios.d.ts.map +1 -1
- package/esm/theme-checker/scenarios.js +54 -2
- 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/compose-event-handlers.d.ts +2 -0
- package/esm/utils/compose-event-handlers.d.ts.map +1 -0
- package/esm/utils/compose-event-handlers.js +12 -0
- package/esm/utils/compose-event-handlers.js.map +1 -0
- 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-controlled.d.ts +5 -4
- package/esm/utils/hooks/use-controlled.d.ts.map +1 -1
- package/esm/utils/hooks/use-controlled.js +1 -1
- package/esm/utils/hooks/use-controlled.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/logical-properties.d.ts +24 -0
- package/esm/utils/logical-properties.d.ts.map +1 -0
- package/esm/utils/logical-properties.js +49 -0
- package/esm/utils/logical-properties.js.map +1 -0
- package/esm/utils/style/style-preset.d.ts +1 -1
- package/esm/utils/style/style-preset.d.ts.map +1 -1
- package/esm/utils/style/style-preset.js +3 -3
- package/esm/utils/style/style-preset.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 +43 -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/esm/with-enhancers/styled.d.ts.map +1 -1
- package/esm/with-enhancers/styled.js +6 -2
- package/esm/with-enhancers/styled.js.map +1 -1
- package/package.json +1 -1
- package/cjs/checkbox/styled.d.ts.map +0 -1
- package/cjs/checkbox/styled.js +0 -74
- package/cjs/checkbox/styled.js.map +0 -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/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/checkbox/styled.d.ts.map +0 -1
- package/esm/checkbox/styled.js +0 -71
- package/esm/checkbox/styled.js.map +0 -1
- 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/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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatFunction = exports.calculateTime = void 0;
|
|
4
|
+
var calculateTime = function (secs) {
|
|
5
|
+
var hours = Math.floor(secs / 3600);
|
|
6
|
+
var minutes = Math.floor((secs % 3600) / 60);
|
|
7
|
+
var seconds = Math.floor(secs % 60);
|
|
8
|
+
var returnedSeconds = seconds < 10 ? "0".concat(seconds) : "".concat(seconds);
|
|
9
|
+
var returnedMinutes = minutes < 10 ? "0".concat(minutes) : "".concat(minutes);
|
|
10
|
+
var returnedHours = hours < 10 ? "0".concat(hours) : "".concat(hours);
|
|
11
|
+
if (hours > 0) {
|
|
12
|
+
return "".concat(returnedHours, ":").concat(returnedMinutes, ":").concat(returnedSeconds);
|
|
13
|
+
}
|
|
14
|
+
return "".concat(returnedMinutes, ":").concat(returnedSeconds);
|
|
15
|
+
};
|
|
16
|
+
exports.calculateTime = calculateTime;
|
|
17
|
+
var formatFunction = function (_a) {
|
|
18
|
+
var currentTime = _a.currentTime, duration = _a.duration;
|
|
19
|
+
var currentFormattedTime = (0, exports.calculateTime)(currentTime);
|
|
20
|
+
var totalDuration = (0, exports.calculateTime)(duration);
|
|
21
|
+
return "".concat(currentFormattedTime, "/").concat(totalDuration, " ");
|
|
22
|
+
};
|
|
23
|
+
exports.formatFunction = formatFunction;
|
|
24
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/audio-player-composable/components/time-display/utils.tsx"],"names":[],"mappings":";;;AAEO,IAAM,aAAa,GAAG,UAAC,IAAY;IACxC,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IACtC,IAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC/C,IAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;IACtC,IAAM,eAAe,GAAG,OAAO,GAAG,EAAE,CAAC,CAAC,CAAC,WAAI,OAAO,CAAE,CAAC,CAAC,CAAC,UAAG,OAAO,CAAE,CAAC;IACpE,IAAM,eAAe,GAAG,OAAO,GAAG,EAAE,CAAC,CAAC,CAAC,WAAI,OAAO,CAAE,CAAC,CAAC,CAAC,UAAG,OAAO,CAAE,CAAC;IACpE,IAAM,aAAa,GAAG,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,WAAI,KAAK,CAAE,CAAC,CAAC,CAAC,UAAG,KAAK,CAAE,CAAC;IAC5D,IAAI,KAAK,GAAG,CAAC,EAAE;QACb,OAAO,UAAG,aAAa,cAAI,eAAe,cAAI,eAAe,CAAE,CAAC;KACjE;IACD,OAAO,UAAG,eAAe,cAAI,eAAe,CAAE,CAAC;AACjD,CAAC,CAAC;AAXW,QAAA,aAAa,iBAWxB;AAEK,IAAM,cAAc,GAA4B,UAAC,EAGvD;QAFC,WAAW,iBAAA,EACX,QAAQ,cAAA;IAER,IAAM,oBAAoB,GAAG,IAAA,qBAAa,EACvC,WAAiC,CACnC,CAAC;IACF,IAAM,aAAa,GAAG,IAAA,qBAAa,EAAE,QAA8B,CAAC,CAAC;IAErE,OAAO,UAAG,oBAAoB,cAAI,aAAa,MAAG,CAAC;AACrD,CAAC,CAAC;AAVW,QAAA,cAAc,kBAUzB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconButtonProps } from '../../button/types';
|
|
3
|
+
import { Optional } from '../../utils/types';
|
|
4
|
+
export declare type AudioPlayerIconButtonProps = Optional<IconButtonProps, 'aria-label'>;
|
|
5
|
+
export declare type AudioPlayerIconButtonWithShortcuts = Omit<AudioPlayerIconButtonProps, 'onClick'> & {
|
|
6
|
+
keyboardShortcuts?: string[] | string;
|
|
7
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement> | KeyboardEvent) => void;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/audio-player-composable/components/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,oBAAY,0BAA0B,GAAG,QAAQ,CAC/C,eAAe,EACf,YAAY,CACb,CAAC;AAEF,oBAAY,kCAAkC,GAAG,IAAI,CACnD,0BAA0B,EAC1B,SAAS,CACV,GAAG;IACF,iBAAiB,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IACtC,OAAO,CAAC,EAAE,CACR,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,GAAG,aAAa,KACvD,IAAI,CAAC;CACX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/audio-player-composable/components/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AudioPlayerProviderContext } from './types';
|
|
3
|
+
export declare const AudioPlayerContext: import("react").Context<Partial<AudioPlayerProviderContext>>;
|
|
4
|
+
export declare const AudioPlayerProvider: import("react").Provider<Partial<AudioPlayerProviderContext>>;
|
|
5
|
+
export declare const useAudioPlayerContext: () => Partial<AudioPlayerProviderContext>;
|
|
6
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/audio-player-composable/context.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,0BAA0B,EAAC,MAAM,SAAS,CAAC;AAEnD,eAAO,MAAM,kBAAkB,8DAE1B,CAAC;AAEN,eAAO,MAAM,mBAAmB,+DAA8B,CAAC;AAE/D,eAAO,MAAM,qBAAqB,2CAejC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useAudioPlayerContext = exports.AudioPlayerProvider = exports.AudioPlayerContext = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
exports.AudioPlayerContext = (0, react_1.createContext)({});
|
|
6
|
+
exports.AudioPlayerProvider = exports.AudioPlayerContext.Provider;
|
|
7
|
+
var useAudioPlayerContext = function () {
|
|
8
|
+
var context = (0, react_1.useContext)(exports.AudioPlayerContext);
|
|
9
|
+
/* istanbul ignore if */
|
|
10
|
+
if (process.env.NODE_ENV !== 'production' &&
|
|
11
|
+
Object.keys(context).length === 0) {
|
|
12
|
+
// eslint-disable-next-line no-console
|
|
13
|
+
console.error('You are using a component which needs to be a child of <AudioPlayerComposable />');
|
|
14
|
+
}
|
|
15
|
+
return context;
|
|
16
|
+
};
|
|
17
|
+
exports.useAudioPlayerContext = useAudioPlayerContext;
|
|
18
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/audio-player-composable/context.tsx"],"names":[],"mappings":";;;AAAA,+BAAgD;AAGnC,QAAA,kBAAkB,GAAG,IAAA,qBAAa,EAE7C,EAAE,CAAC,CAAC;AAEO,QAAA,mBAAmB,GAAG,0BAAkB,CAAC,QAAQ,CAAC;AAExD,IAAM,qBAAqB,GAAG;IACnC,IAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,0BAAkB,CAAC,CAAC;IAE/C,wBAAwB;IACxB,IACE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY;QACrC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,EACjC;QACA,sCAAsC;QACtC,OAAO,CAAC,KAAK,CACX,kFAAkF,CACnF,CAAC;KACH;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAfW,QAAA,qBAAqB,yBAehC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { calculateTime } from './components/time-display/utils';
|
|
2
|
+
export { AudioPlayerComposable } from './audio-player-composable';
|
|
3
|
+
export { useAudioPlayerContext } from './context';
|
|
4
|
+
export * from './components/time-display';
|
|
5
|
+
export * from './components/seek-bar';
|
|
6
|
+
export * from './components/play-pause-button';
|
|
7
|
+
export * from './components/forward-button';
|
|
8
|
+
export * from './components/replay-button';
|
|
9
|
+
export * from './components/skip-next-button';
|
|
10
|
+
export * from './components/skip-previous-button';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/audio-player-composable/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAC,qBAAqB,EAAC,MAAM,WAAW,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.useAudioPlayerContext = exports.AudioPlayerComposable = exports.calculateTime = void 0;
|
|
14
|
+
/* istanbul ignore file */
|
|
15
|
+
var utils_1 = require("./components/time-display/utils");
|
|
16
|
+
Object.defineProperty(exports, "calculateTime", { enumerable: true, get: function () { return utils_1.calculateTime; } });
|
|
17
|
+
var audio_player_composable_1 = require("./audio-player-composable");
|
|
18
|
+
Object.defineProperty(exports, "AudioPlayerComposable", { enumerable: true, get: function () { return audio_player_composable_1.AudioPlayerComposable; } });
|
|
19
|
+
var context_1 = require("./context");
|
|
20
|
+
Object.defineProperty(exports, "useAudioPlayerContext", { enumerable: true, get: function () { return context_1.useAudioPlayerContext; } });
|
|
21
|
+
__exportStar(require("./components/time-display"), exports);
|
|
22
|
+
__exportStar(require("./components/seek-bar"), exports);
|
|
23
|
+
__exportStar(require("./components/play-pause-button"), exports);
|
|
24
|
+
__exportStar(require("./components/forward-button"), exports);
|
|
25
|
+
__exportStar(require("./components/replay-button"), exports);
|
|
26
|
+
__exportStar(require("./components/skip-next-button"), exports);
|
|
27
|
+
__exportStar(require("./components/skip-previous-button"), exports);
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/audio-player-composable/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,0BAA0B;AAC1B,yDAA8D;AAAtD,sGAAA,aAAa,OAAA;AACrB,qEAAgE;AAAxD,gIAAA,qBAAqB,OAAA;AAC7B,qCAAgD;AAAxC,gHAAA,qBAAqB,OAAA;AAC7B,4DAA0C;AAC1C,wDAAsC;AACtC,iEAA+C;AAC/C,8DAA4C;AAC5C,6DAA2C;AAC3C,gEAA8C;AAC9C,oEAAkD"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IconButtonProps } from '../icon-button/types';
|
|
3
|
+
import { AudioPlayerForwardButtonProps } from './components/forward-button/types';
|
|
4
|
+
import { AudioPlayerPlayPauseButtonProps } from './components/play-pause-button/types';
|
|
5
|
+
import { AudioPlayerReplayButtonProps } from './components/replay-button/types';
|
|
6
|
+
import { AudioPlayerSkipNextButtonProps } from './components/skip-next-button/types';
|
|
7
|
+
import { AudioPlayerSkipPreviousButtonProps } from './components/skip-previous-button/types';
|
|
8
|
+
import { AudioPlayerTimeFormatFn } from './components/time-display/types';
|
|
9
|
+
export interface AudioFunctionDependencies {
|
|
10
|
+
autoPlay: boolean;
|
|
11
|
+
src: string;
|
|
12
|
+
live: NonNullable<boolean>;
|
|
13
|
+
loading: boolean;
|
|
14
|
+
duration: number;
|
|
15
|
+
playing: boolean;
|
|
16
|
+
showLoaderTimeoutRef: React.MutableRefObject<number>;
|
|
17
|
+
currentTimeRef: React.MutableRefObject<number>;
|
|
18
|
+
audioRef: React.RefObject<HTMLAudioElement>;
|
|
19
|
+
setLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
20
|
+
setCurrentTime: React.Dispatch<React.SetStateAction<number>>;
|
|
21
|
+
setPlayState: React.Dispatch<React.SetStateAction<boolean>>;
|
|
22
|
+
setDuration: React.Dispatch<React.SetStateAction<number>>;
|
|
23
|
+
setDisplayDuration: React.Dispatch<React.SetStateAction<number>>;
|
|
24
|
+
setBuffered: React.Dispatch<React.SetStateAction<TimeRanges | undefined>>;
|
|
25
|
+
}
|
|
26
|
+
export interface AudioPlayerProviderContext {
|
|
27
|
+
id: string;
|
|
28
|
+
playing: boolean;
|
|
29
|
+
canPause: boolean;
|
|
30
|
+
loading: boolean;
|
|
31
|
+
audioRef: React.RefObject<HTMLAudioElement>;
|
|
32
|
+
audioSectionRef: React.RefObject<HTMLDivElement>;
|
|
33
|
+
togglePlay: () => void;
|
|
34
|
+
getPlayPauseButtonProps: (props: AudioPlayerPlayPauseButtonProps) => IconButtonProps & {
|
|
35
|
+
playing: boolean;
|
|
36
|
+
canPause: boolean;
|
|
37
|
+
};
|
|
38
|
+
getTimeDisplayProps: () => {
|
|
39
|
+
format: AudioPlayerTimeFormatFn;
|
|
40
|
+
currentTime: number;
|
|
41
|
+
duration: number;
|
|
42
|
+
};
|
|
43
|
+
getSeekBarProps: () => {
|
|
44
|
+
duration: number;
|
|
45
|
+
currentTime: number;
|
|
46
|
+
onChange: (value: number) => void;
|
|
47
|
+
buffered: TimeRanges | undefined;
|
|
48
|
+
};
|
|
49
|
+
getSkipPreviousButtonProps: (props: AudioPlayerSkipPreviousButtonProps) => IconButtonProps;
|
|
50
|
+
getSkipNextButtonProps: (props: AudioPlayerSkipNextButtonProps) => IconButtonProps;
|
|
51
|
+
getForwardButtonProps: (props: AudioPlayerForwardButtonProps) => IconButtonProps;
|
|
52
|
+
getReplayButtonProps: (props: AudioPlayerReplayButtonProps) => IconButtonProps;
|
|
53
|
+
}
|
|
54
|
+
export interface AudioElementProps extends Omit<React.AudioHTMLAttributes<HTMLAudioElement>, 'controls'> {
|
|
55
|
+
audioRef?: React.RefObject<HTMLAudioElement>;
|
|
56
|
+
}
|
|
57
|
+
export interface AudioPlayerComposableProps extends Omit<React.AudioHTMLAttributes<HTMLAudioElement>, 'controls'> {
|
|
58
|
+
children: React.ReactNode;
|
|
59
|
+
live?: boolean;
|
|
60
|
+
autoPlay?: boolean;
|
|
61
|
+
src: string;
|
|
62
|
+
ariaLandmark?: string;
|
|
63
|
+
keyboardShortcuts?: {
|
|
64
|
+
jumpToStart: string | string[];
|
|
65
|
+
jumpToEnd: string | string[];
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export declare enum AudioEvents {
|
|
69
|
+
Play = "onPlay",
|
|
70
|
+
Pause = "onPause",
|
|
71
|
+
Waiting = "onWaiting",
|
|
72
|
+
CanPlay = "onCanPlay",
|
|
73
|
+
Ended = "onEnded",
|
|
74
|
+
DurationChange = "onDurationChange",
|
|
75
|
+
TimeUpdate = "onTimeUpdate",
|
|
76
|
+
Progress = "onProgress"
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/audio-player-composable/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAA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AgB,CAAC,EAAE,UAAU,CAAC;IACrE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;CAC9C;AAED,MAAM,WAAW,0BACf,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,UAAU,CAAC;IACrE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE;QAClB,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;QAC/B,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;KAC9B,CAAC;CACH;AAED,oBAAY,WAAW;IACrB,IAAI,WAAW;IACf,KAAK,YAAY;IACjB,OAAO,cAAc;IACrB,OAAO,cAAc;IACrB,KAAK,YAAY;IAEjB,cAAc,qBAAqB;IACnC,UAAU,iBAAiB;IAC3B,QAAQ,eAAe;CACxB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AudioEvents = void 0;
|
|
4
|
+
var AudioEvents;
|
|
5
|
+
(function (AudioEvents) {
|
|
6
|
+
AudioEvents["Play"] = "onPlay";
|
|
7
|
+
AudioEvents["Pause"] = "onPause";
|
|
8
|
+
AudioEvents["Waiting"] = "onWaiting";
|
|
9
|
+
AudioEvents["CanPlay"] = "onCanPlay";
|
|
10
|
+
AudioEvents["Ended"] = "onEnded";
|
|
11
|
+
// VolumeChange = 'onVolumeChange',
|
|
12
|
+
AudioEvents["DurationChange"] = "onDurationChange";
|
|
13
|
+
AudioEvents["TimeUpdate"] = "onTimeUpdate";
|
|
14
|
+
AudioEvents["Progress"] = "onProgress";
|
|
15
|
+
})(AudioEvents = exports.AudioEvents || (exports.AudioEvents = {}));
|
|
16
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/audio-player-composable/types.ts"],"names":[],"mappings":";;;AAyFA,IAAY,WAUX;AAVD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;IACjB,mCAAmC;IACnC,kDAAmC,CAAA;IACnC,0CAA2B,CAAA;IAC3B,sCAAuB,CAAA;AACzB,CAAC,EAVW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAUtB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IconButtonProps } from '../button';
|
|
2
|
+
import { AudioPlayerIconButtonWithShortcuts } from './components/types';
|
|
3
|
+
export declare const formatTrackTime: (time: number, maxTime?: number) => string;
|
|
4
|
+
export declare const formatDuration: (time: number, maxTime?: number) => string;
|
|
5
|
+
export declare const getMediaSegment: (duration: number, currentPosition: number) => "0-25" | "26-50" | "51-75" | "76-100";
|
|
6
|
+
declare type UseKeyboardShortcutsType = {
|
|
7
|
+
action?: (e: KeyboardEvent) => void;
|
|
8
|
+
defaults: string | string[];
|
|
9
|
+
props: AudioPlayerIconButtonWithShortcuts;
|
|
10
|
+
};
|
|
11
|
+
export declare const useKeyboardShortcutsOnButton: ({ props, defaults: defaultKeys, action, }: UseKeyboardShortcutsType) => void;
|
|
12
|
+
export declare const useButtonOverrides: (props: Pick<IconButtonProps, 'overrides'>, defaultsPath: string) => IconButtonProps['overrides'];
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/audio-player-composable/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,WAAW,CAAC;AAM1C,OAAO,EAAC,kCAAkC,EAAC,MAAM,oBAAoB,CAAC;AAKtE,eAAO,MAAM,eAAe,SAAU,MAAM,YAAW,MAAM,WAG5D,CAAC;AAEF,eAAO,MAAM,cAAc,SAAU,MAAM,YAAW,MAAM,WAK3D,CAAC;AAEF,eAAO,MAAM,eAAe,aAAc,MAAM,mBAAmB,MAAM,0CAWxE,CAAC;AAEF,aAAK,wBAAwB,GAAG;IAC9B,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;IACpC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B,KAAK,EAAE,kCAAkC,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,4BAA4B,8CAItC,wBAAwB,SAQ1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,UACtB,KAAK,eAAe,EAAE,WAAW,CAAC,gBAC3B,MAAM,KACnB,eAAe,CAAC,WAAW,CAQ7B,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.useButtonOverrides = exports.useKeyboardShortcutsOnButton = exports.getMediaSegment = exports.formatDuration = exports.formatTrackTime = void 0;
|
|
15
|
+
var theme_1 = require("../theme");
|
|
16
|
+
var filter_object_1 = require("../utils/filter-object");
|
|
17
|
+
var get_1 = require("../utils/get");
|
|
18
|
+
var hooks_1 = require("../utils/hooks");
|
|
19
|
+
var context_1 = require("./context");
|
|
20
|
+
var hhmmss = [11, 8];
|
|
21
|
+
var mmss = [14, 5];
|
|
22
|
+
var formatTrackTime = function (time, maxTime) {
|
|
23
|
+
var _a;
|
|
24
|
+
if (maxTime === void 0) { maxTime = time; }
|
|
25
|
+
var args = Math.max(time, maxTime) >= 3600 ? hhmmss : mmss;
|
|
26
|
+
return (_a = new Date(time * 1000).toISOString()).substr.apply(_a, args);
|
|
27
|
+
};
|
|
28
|
+
exports.formatTrackTime = formatTrackTime;
|
|
29
|
+
var formatDuration = function (time, maxTime) {
|
|
30
|
+
if (maxTime === void 0) { maxTime = time; }
|
|
31
|
+
if (time === 0) {
|
|
32
|
+
return '';
|
|
33
|
+
}
|
|
34
|
+
return (0, exports.formatTrackTime)(time, maxTime);
|
|
35
|
+
};
|
|
36
|
+
exports.formatDuration = formatDuration;
|
|
37
|
+
var getMediaSegment = function (duration, currentPosition) {
|
|
38
|
+
var currentPositionPercentage = (currentPosition / duration) * 100;
|
|
39
|
+
if (currentPositionPercentage > 0 && currentPositionPercentage <= 25)
|
|
40
|
+
return '0-25';
|
|
41
|
+
if (currentPositionPercentage > 25 && currentPositionPercentage <= 50)
|
|
42
|
+
return '26-50';
|
|
43
|
+
if (currentPositionPercentage > 50 && currentPositionPercentage <= 75)
|
|
44
|
+
return '51-75';
|
|
45
|
+
return '76-100';
|
|
46
|
+
};
|
|
47
|
+
exports.getMediaSegment = getMediaSegment;
|
|
48
|
+
var useKeyboardShortcutsOnButton = function (_a) {
|
|
49
|
+
var props = _a.props, defaultKeys = _a.defaults, action = _a.action;
|
|
50
|
+
var audioSectionRef = (0, context_1.useAudioPlayerContext)().audioSectionRef;
|
|
51
|
+
var options = { target: audioSectionRef, preventDefault: false };
|
|
52
|
+
var keyboardShortcuts = props.keyboardShortcuts;
|
|
53
|
+
var key = keyboardShortcuts || defaultKeys;
|
|
54
|
+
var callback = action || props.onClick;
|
|
55
|
+
(0, hooks_1.useKeypress)(key, callback, options);
|
|
56
|
+
};
|
|
57
|
+
exports.useKeyboardShortcutsOnButton = useKeyboardShortcutsOnButton;
|
|
58
|
+
var useButtonOverrides = function (props, defaultsPath) {
|
|
59
|
+
var theme = (0, theme_1.useTheme)();
|
|
60
|
+
var overrides = props.overrides;
|
|
61
|
+
return __assign(__assign({}, (0, get_1.get)(theme, "componentDefaults.".concat(defaultsPath))), (0, filter_object_1.filterOutFalsyProperties)(overrides));
|
|
62
|
+
};
|
|
63
|
+
exports.useButtonOverrides = useButtonOverrides;
|
|
64
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/audio-player-composable/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,kCAAkC;AAClC,wDAAgE;AAChE,oCAAiC;AACjC,wCAA2C;AAC3C,qCAAgD;AAGhD,IAAM,MAAM,GAAqB,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AACzC,IAAM,IAAI,GAAqB,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAEhC,IAAM,eAAe,GAAG,UAAC,IAAY,EAAE,OAAsB;;IAAtB,wBAAA,EAAA,cAAsB;IAClE,IAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;IAC7D,OAAO,CAAA,KAAA,IAAI,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,WAAW,EAAE,CAAA,CAAC,MAAM,WAAI,IAAI,EAAE;AAC7D,CAAC,CAAC;AAHW,QAAA,eAAe,mBAG1B;AAEK,IAAM,cAAc,GAAG,UAAC,IAAY,EAAE,OAAsB;IAAtB,wBAAA,EAAA,cAAsB;IACjE,IAAI,IAAI,KAAK,CAAC,EAAE;QACd,OAAO,EAAE,CAAC;KACX;IACD,OAAO,IAAA,uBAAe,EA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qB,YAAY,CAAE,CAAC,GAC/C,IAAA,wCAAwB,EAAC,SAAS,CAAC,EACtC;AACJ,CAAC,CAAC;AAXW,QAAA,kBAAkB,sBAW7B"}
|
package/cjs/banner/banner.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../src/banner/banner.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../src/banner/banner.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,EAAC,MAAM,SAAS,CAAC;AAmDzD,eAAO,MAAM,MAAM,uEAA0D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-switch.d.ts","sourceRoot":"","sources":["../../../src/base-switch/base-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAWjD,OAAO,EAAC,eAAe,EAAsB,MAAM,SAAS,CAAC;AAM7D,eAAO,MAAM,UAAU,0FAwJtB,CAAC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
33
|
+
var t = {};
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
37
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
38
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
39
|
+
t[p[i]] = s[p[i]];
|
|
40
|
+
}
|
|
41
|
+
return t;
|
|
42
|
+
};
|
|
43
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
44
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
45
|
+
};
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.BaseSwitch = void 0;
|
|
48
|
+
var react_1 = __importStar(require("react"));
|
|
49
|
+
var compose_react_refs_1 = __importDefault(require("@seznam/compose-react-refs"));
|
|
50
|
+
var compose_event_handlers_1 = require("../utils/compose-event-handlers");
|
|
51
|
+
var styled_1 = require("./styled");
|
|
52
|
+
var overrides_1 = require("../utils/overrides");
|
|
53
|
+
var hooks_1 = require("../utils/hooks");
|
|
54
|
+
var theme_1 = require("../theme");
|
|
55
|
+
var get_token_1 = require("../utils/get-token");
|
|
56
|
+
exports.BaseSwitch = react_1.default.forwardRef(function (_a, inputRef) {
|
|
57
|
+
var _b = _a.size, size = _b === void 0 ? 'medium' : _b, checkedProp = _a.checked, defaultChecked = _a.defaultChecked, state = _a.state, overrides = _a.overrides, onFocus = _a.onFocus, onBlur = _a.onBlur, onChange = _a.onChange, label = _a.label, _c = _a.labelPosition, labelPosition = _c === void 0 ? 'end' : _c, _d = _a.labelAttributes, labelAttributes = _d === void 0 ? {} : _d, path = _a.path, defaultSwitchComponent = _a.defaultSwitchSelectorComponent, type = _a.type, restProps = __rest(_a, ["size", "checked", "defaultChecked", "state", "overrides", "onFocus", "onBlur", "onChange", "label", "labelPosition", "labelAttributes", "path", "defaultSwitchSelectorComponent", "type"]);
|
|
58
|
+
var ref = (0, react_1.useRef)(null);
|
|
59
|
+
var _e = react_1.default.useState(false), isInputFocused = _e[0], setIsInputFocused = _e[1];
|
|
60
|
+
var _f = react_1.default.useState(false), isLabelHovered = _f[0], setIsLabelHovered = _f[1];
|
|
61
|
+
var _g = (0, hooks_1.useControlled)({
|
|
62
|
+
controlledValue: checkedProp,
|
|
63
|
+
defaultValue: Boolean(defaultChecked),
|
|
64
|
+
}), checked = _g[0], setCheckedState = _g[1];
|
|
65
|
+
var onFeedbackClick = (0, react_1.useCallback)(function () {
|
|
66
|
+
// When label is passed, everything ( input and feedback components) is wrap inside the label
|
|
67
|
+
// so there is no need for clicking on the input
|
|
68
|
+
/* istanbul ignore else */
|
|
69
|
+
if (!label && ref && ref.current) {
|
|
70
|
+
ref.current.click();
|
|
71
|
+
}
|
|
72
|
+
}, [ref, label]);
|
|
73
|
+
var onInputChange = (0, react_1.useCallback)(function (event) {
|
|
74
|
+
setCheckedState(event.target.checked);
|
|
75
|
+
}, [setCheckedState]);
|
|
76
|
+
var onInputFocus = (0, react_1.useCallback)(function () {
|
|
77
|
+
setIsInputFocused(true);
|
|
78
|
+
}, [setIsInputFocused]);
|
|
79
|
+
var onInputBlur = (0, react_1.useCallback)(function () {
|
|
80
|
+
setIsInputFocused(false);
|
|
81
|
+
}, [setIsInputFocused]);
|
|
82
|
+
var onLabelMouseOver = (0, react_1.useCallback)(function () {
|
|
83
|
+
if (state !== 'disabled') {
|
|
84
|
+
setIsLabelHovered(true);
|
|
85
|
+
}
|
|
86
|
+
}, [setIsLabelHovered, state]);
|
|
87
|
+
var onLabelMouseLeave = (0, react_1.useCallback)(function () {
|
|
88
|
+
if (state !== 'disabled') {
|
|
89
|
+
setIsLabelHovered(false);
|
|
90
|
+
}
|
|
91
|
+
}, [setIsLabelHovered, state]);
|
|
92
|
+
var theme = (0, theme_1.useTheme)();
|
|
93
|
+
var iconSize = (0, get_token_1.getToken)({ theme: theme, overrides: overrides }, "".concat(path, ".").concat(size, ".icon"), 'icon', 'size');
|
|
94
|
+
var _h = (0, overrides_1.getComponentOverrides)(overrides === null || overrides === void 0 ? void 0 : overrides.icon, defaultSwitchComponent, {
|
|
95
|
+
state: state,
|
|
96
|
+
checked: checked,
|
|
97
|
+
size: size,
|
|
98
|
+
iconSize: iconSize,
|
|
99
|
+
}), CheckIcon = _h[0], checkIconProps = _h[1];
|
|
100
|
+
var labelElement = label && (react_1.default.createElement(styled_1.StyledLabel, { path: path, size: size, overrides: overrides, state: state }, label));
|
|
101
|
+
return (react_1.default.createElement(styled_1.StyledContainer, __assign({ as: label ? 'label' : 'div', state: state, size: size, overrides: overrides }, (label ? labelAttributes : {}), { onMouseOver: onLabelMouseOver, onMouseLeave: onLabelMouseLeave, path: path }),
|
|
102
|
+
labelPosition === 'start' && labelElement,
|
|
103
|
+
react_1.default.createElement(styled_1.StyledSwitchContainer, { size: size, overrides: overrides, state: state, labelPosition: labelPosition, role: "presentation", path: path },
|
|
104
|
+
react_1.default.createElement(styled_1.StyledFeedback, { size: size, overrides: overrides, state: state, onClick: onFeedbackClick, "data-testid": "".concat(type, "-feedback"), isFocused: isInputFocused, isHovered: isLabelHovered || isInputFocused, path: path }),
|
|
105
|
+
react_1.default.createElement(styled_1.StyledSwitch, { checked: checked, state: state, overrides: overrides, size: size, isFocused: isInputFocused, isHovered: isLabelHovered, feedbackIsVisible: isLabelHovered || isInputFocused, path: path },
|
|
106
|
+
react_1.default.createElement(CheckIcon, __assign({}, checkIconProps)),
|
|
107
|
+
react_1.default.createElement(styled_1.StyledInput, __assign({ ref: (0, compose_react_refs_1.default)(inputRef, ref), overrides: overrides, checked: checked, disabled: state === 'disabled' }, restProps, { state: state, onFocus: (0, compose_event_handlers_1.composeEventHandlers)([onInputFocus, onFocus]), onBlur: (0, compose_event_handlers_1.composeEventHandlers)([onInputBlur, onBlur]), onChange: (0, compose_event_handlers_1.composeEventHandlers)([onInputChange, onChange]), path: path, type: type, "data-testid": "".concat(type, "-input") })))),
|
|
108
|
+
labelPosition === 'end' && labelElement));
|
|
109
|
+
});
|
|
110
|
+
//# sourceMappingURL=base-switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-switch.js","sourceRoot":"","sources":["../../../src/base-switch/base-switch.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAiD;AACjD,kFAAqD;AACrD,0EAAqE;AACrE,mCAOkB;AAElB,gDAAyD;AACzD,wCAA6C;AAC7C,kCAAkC;AAClC,gDAA4C;AAE/B,QAAA,UAAU,GAAG,eAAK,CAAC,UAAU,CACxC,UACE,EAgBC,EACD,QAAQ;IAhBN,IAAA,YAAe,EAAf,IAAI,mBAAG,QAAQ,KAAA,EACN,WAAW,aAAA,EACpB,cAAc,oBAAA,EACd,KAAK,WAAA,EACL,SAAS,eAAA,EACT,OAAO,aAAA,EACP,MAAM,YAAA,EACN,QAAQ,cAAA,EACR,KAAK,WAAA,EACL,qBAAqB,EAArB,aAAa,mBAAG,KAAK,KAAA,EACrB,uBAAoB,EAApB,eA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D,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,iBACG,UAAG,IAAI,WAAQ,IAC5B,CACW,CACO;QACvB,aAAa,KAAK,KAAK,IAAI,YAAY,CACxB,CACnB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base-switch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,YAAY,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseSwitch = void 0;
|
|
4
|
+
var base_switch_1 = require("./base-switch");
|
|
5
|
+
Object.defineProperty(exports, "BaseSwitch", { enumerable: true, get: function () { return base_switch_1.BaseSwitch; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/base-switch/index.tsx"],"names":[],"mappings":";;;AAAA,6CAAyC;AAAjC,yGAAA,UAAU,OAAA"}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { BaseSwitchProps } from './types';
|
|
3
3
|
export declare const StyledContainer: import("@emotion/styled").StyledComponent<{
|
|
4
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
5
|
as?: import("react").ElementType<any> | undefined;
|
|
6
|
-
} & Pick<
|
|
7
|
-
export declare const
|
|
6
|
+
} & Pick<BaseSwitchProps, "state" | "path" | "size" | "overrides">, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
|
|
7
|
+
export declare const StyledSwitchContainer: import("@emotion/styled").StyledComponent<{
|
|
8
8
|
theme?: import("@emotion/react").Theme | undefined;
|
|
9
9
|
as?: import("react").ElementType<any> | undefined;
|
|
10
|
-
} & Pick<
|
|
11
|
-
export declare const
|
|
10
|
+
} & Pick<BaseSwitchProps, "state" | "path" | "size" | "overrides" | "labelPosition">, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
+
export declare const StyledSwitch: import("@emotion/styled").StyledComponent<{
|
|
12
12
|
theme?: import("@emotion/react").Theme | undefined;
|
|
13
13
|
as?: import("react").ElementType<any> | undefined;
|
|
14
|
-
} & Pick<
|
|
14
|
+
} & Pick<BaseSwitchProps, "state" | "path" | "size" | "checked" | "overrides"> & {
|
|
15
15
|
isFocused: boolean;
|
|
16
|
-
|
|
16
|
+
isHovered: boolean;
|
|
17
17
|
feedbackIsVisible: boolean;
|
|
18
18
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
19
|
export declare const StyledFeedback: import("@emotion/styled").StyledComponent<{
|
|
20
20
|
theme?: import("@emotion/react").Theme | undefined;
|
|
21
21
|
as?: import("react").ElementType<any> | undefined;
|
|
22
|
-
} & Pick<
|
|
22
|
+
} & Pick<BaseSwitchProps, "state" | "path" | "size" | "overrides"> & {
|
|
23
23
|
isFocused: boolean;
|
|
24
|
-
|
|
24
|
+
isHovered: boolean;
|
|
25
25
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
26
26
|
export declare const StyledInput: import("@emotion/styled").StyledComponent<{
|
|
27
27
|
theme?: import("@emotion/react").Theme | undefined;
|
|
28
28
|
as?: import("react").ElementType<any> | undefined;
|
|
29
|
-
} &
|
|
29
|
+
} & Omit<BaseSwitchProps, "defaultSwitchSelectorComponent">, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
30
30
|
export declare const StyledLabel: import("@emotion/styled").StyledComponent<{
|
|
31
31
|
theme?: import("@emotion/react").Theme | undefined;
|
|
32
32
|
as?: import("react").ElementType<any> | undefined;
|
|
33
|
-
} & Pick<
|
|
33
|
+
} & Pick<BaseSwitchProps, "state" | "path" | "size" | "overrides">, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
34
34
|
//# sourceMappingURL=styled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../src/base-switch/styled.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAOxC,eAAO,MAAM,eAAe;;;mLAU3B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;4LA8BjC,CAAC;AAUF,eAAO,MAAM,YAAY;;;;eAEV,OAAO;eACP,OAAO;uBACC,OAAO;yGAoB7B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;eAEZ,OAAO;eACP,OAAO;yGA8BrB,CAAC;AAEF,eAAO,MAAM,WAAW;;;4KAOvB,CAAC;AAEF,eAAO,MAAM,WAAW;;;4KAUvB,CAAC"}
|