softbuilders-react-video-player 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  ## install the package
4
4
 
5
5
  ```bash
6
- npm i soft-builders-video-player
6
+ npm i softbuilders-video-player
7
7
  ```
8
8
 
9
9
  ## How to use
@@ -13,7 +13,7 @@ import SoftBuildersVideoPlayer, {
13
13
  SoftBuildersVideoPlayerOptions,
14
14
  SoftBuildersVideoPlayerChapter,
15
15
  SoftBuildersVideoPlayerNote,
16
- } from "soft-builders-video-player";
16
+ } from "softbuilders-video-player";
17
17
 
18
18
  const options: SoftBuildersVideoPlayerOptions = {
19
19
  autoplay: false,
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { PauseIcon, PlayIcon } from "../../icons";
2
+ import { PauseIcon, PlayIcon } from "../../images";
3
3
  const BigPlayButton = ({ player, isPaused, setIsPaused }) => {
4
4
  const togglePlay = () => {
5
5
  if (isPaused)
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/BigPlayButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAOlD,MAAM,aAAa,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAS,EAAE,EAAE;IACjE,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,IAAI,QAAQ;YAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,EAAE,CAAC;;YACxB,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,EAAE,CAAC;QAErB,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;IACzB,CAAC,CAAC;IAEF,OAAO,CACL,gCAAQ,OAAO,EAAE,UAAU;QACzB,6BAAK,SAAS,EAAC,+GAA+G,IAC3H,QAAQ,CAAC,CAAC,CAAC,CACV,oBAAC,QAAQ,IAAC,SAAS,EAAC,eAAe,GAAG,CACvC,CAAC,CAAC,CAAC,CACF,oBAAC,SAAS,IAAC,SAAS,EAAC,eAAe,GAAG,CACxC,CACG,CACC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/BigPlayButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAOnD,MAAM,aAAa,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAS,EAAE,EAAE;IACjE,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,IAAI,QAAQ;YAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,EAAE,CAAC;;YACxB,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,EAAE,CAAC;QAErB,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;IACzB,CAAC,CAAC;IAEF,OAAO,CACL,gCAAQ,OAAO,EAAE,UAAU;QACzB,6BAAK,SAAS,EAAC,+GAA+G,IAC3H,QAAQ,CAAC,CAAC,CAAC,CACV,oBAAC,QAAQ,IAAC,SAAS,EAAC,eAAe,GAAG,CACvC,CAAC,CAAC,CAAC,CACF,oBAAC,SAAS,IAAC,SAAS,EAAC,eAAe,GAAG,CACxC,CACG,CACC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -4,12 +4,12 @@ import { durationFormater } from "../../utils";
4
4
  import VolumeSlider from "../VolumeSlider";
5
5
  import QualityMenu from "../QualityMenu";
6
6
  import CreateNoteMenu from "../CreateNoteMenu";
7
- import { BackwardIcon, PlayIcon, PauseIcon, ForwardIcon, FullScreenIcon, } from "../../icons";
8
7
  import TimeSliderContainer from "../TimeSliderContainer";
9
8
  import BufferTracker from "../BufferTracker";
10
9
  import CurrentTimeTracker from "../CurrentTimeTracker";
11
10
  import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
12
11
  import SubtitleMenu from "../SubtitleMenu";
12
+ import { BackwardIcon, ForwardIcon, FullScreenIcon, PauseIcon, PlayIcon } from "../../images";
13
13
  const ControlBar = ({ player, isPaused, setIsPaused, duration, notes, chapters, seekStep = 5, handleSaveNoteAction, }) => {
14
14
  const { setPlayer, setDuration } = useSoftBuildersVideoPlayerContext();
15
15
  const seek = (duration) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ControlBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,cAAc,GACf,MAAM,aAAa,CAAC;AACrB,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AAKvD,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAY3C,MAAM,UAAU,GAAG,CAAK,EACtB,MAAM,EACN,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,QAAQ,GAAG,CAAC,EACZ,oBAAoB,GACX,EAAE,EAAE;IACb,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,iCAAiC,EAAE,CAAC;IAEvE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,eAAe,GAAG,CACrC;QAER,oBAAoB,IAAI,CACvB,oBAAC,cAAc,IAAC,oBAAoB,EAAE,oBAAoB,GAAI,CAC/D;QAED,oBAAC,YAAY,OAAG,CACZ,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from "react";
2
2
  import MenuButton from "../MenuButton";
3
3
  import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
4
- import { ClosedNoteIcon } from "../../icons";
4
+ import { ClosedNoteIcon } from "../../images";
5
5
  const CreateNoteMenu = ({ handleSaveNoteAction }) => {
6
6
  const { player } = useSoftBuildersVideoPlayerContext();
7
7
  const [note, setNote] = useState("");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CreateNoteMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAErF,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAK7C,MAAM,cAAc,GAAG,CAAK,EAAE,oBAAoB,EAAY,EAAE,EAAE;IAChE,MAAM,EAAE,MAAM,EAAE,GAAG,iCAAiC,EAAE,CAAC;IAEvD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAErC,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,IAAI,oBAAoB,EAAE,CAAC;YACzB,MAAM,IAAI,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,WAAW,EAAE,KAAI,CAAC,CAAC;YACxC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;gBACjD,OAAO,CAAC,EAAE,C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1
  import React, { useEffect, useState } from "react";
2
2
  import MenuButton from "../MenuButton";
3
3
  import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
4
- import { CheckedIcon, SettingsIcon, LeftArrowIcon, } from "../../icons";
4
+ import { CheckedIcon, LeftArrowIcon, SettingsIcon } from "../../images";
5
5
  const QualityOption = ({ isSelected, quality, onClick, }) => {
6
6
  return (React.createElement("button", { className: "hover:sb-text-orange-500 sb-p-2", onClick: onClick },
7
7
  React.createElement("div", { className: "sb-grid sb-grid-cols-12 sb-items-center sb-gap-2" },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/QualityMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAe,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAErF,OAAO,EACL,WAAW,EACX,YAAY,EACZ,aAAa,GACd,MAAM,aAAa,CAAC;AAQrB,MAAM,aAAa,GAAG,CAAC,EACrB,UAAU,EACV,OAAO,EACP,OAAO,GACY,EAAE,EAAE;IACvB,OAAO,CACL,gCAAQ,SAAS,EAAC,iCAAiC,EAAC,OAAO,EAAE,OAAO;QAClE,6BAAK,SAAS,EAAC,kDAAkD;YAC/D,6BAAK,SAAS,EAAC,eAAe,IAC3B,UAAU,CAAC,CAAC,CAAC,oBAAC,WAAW,IAAC,SAAS,EAAC,eAAe,GAAG,CAAC,CAAC,CAAC,gCAAW,CACjE;YAEN,2BAAG,SAAS,EAAC,4BAA4B,IAAE,OAAO,CAAC,KAAK,CAAK,CACzD,CACC,CACV,CAAC;AACJ,CAAC,CAAC;AAIF,MAAM,WAAW,GAAG,CAAC,EAAoB,EAAE,EAAE;IAC3C,MAAM,EAAE,MAAM,EAAE,GAAG,iCAAiC,EAAE,CAAC;IAEvD,MAAM,CAAC,iBAAiB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E,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;gCACxB,MAAM,WAAW,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,WAAW,EAAE,CAAC;gCAC1C,oBAAoB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;gCACjC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,WAAW,CAAC,WAAW,CAAC,CAAC;gCACjC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,EAAE,CAAC;4BACjB,CAAC;wBACH,CAAC,GACD,CACH,CAAC;gBACJ,CAAC,CAAC,CACE,CACF,CACF,EAER,KAAK,EAAE,CAAC,EAAY,EAAE,EAAE;YACtB,oBAAoB,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;QACjC,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React, { useEffect, useState } from "react";
2
2
  import MenuButton from "../MenuButton";
3
3
  import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
4
- import { CheckedIcon, LeftArrowIcon, SubtitlesIcon, } from "../../icons";
4
+ import { CheckedIcon, LeftArrowIcon, SubtitlesIcon } from "../../images";
5
5
  const SubtitleOption = ({ isSelected, subtitle, onClick, }) => {
6
6
  return (React.createElement("button", { className: "hover:sb-text-orange-500 sb-p-2", onClick: onClick },
7
7
  React.createElement("div", { className: "sb-grid sb-grid-cols-12 sb-items-center sb-gap-2" },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/SubtitleMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAe,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAErF,OAAO,EACL,WAAW,EACX,aAAa,EAC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,CAAC,CAAC,CACE,CACF,CACF,EAER,KAAK,EAAE,CAAC,EAAY,EAAE,EAAE;YACtB,oBAAoB,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;QACjC,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React, { useEffect, useState } from "react";
2
2
  import Slider from "../Slider";
3
3
  import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
4
- import { MuteIcon, UnmuteIcon } from "../../icons";
4
+ import { MuteIcon, UnmuteIcon } from "../../images";
5
5
  const MIN = 0, MAX = 100;
6
6
  const VolumeSlider = ({}) => {
7
7
  const { player } = useSoftBuildersVideoPlayerContext();
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/VolumeSlider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAErF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,GAAG,GAAG,CAAC,EACX,GAAG,GAAG,GAAG,CAAC;AAIZ,MAAM,YAAY,GAAG,CAAC,EAAS,EAAE,EAAE;IACjC,MAAM,EAAE,MAAM,EAAE,GAAG,iCAAiC,EAAE,CAAC;IAEvD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAExC,SAAS,CAAC,GAAG,EAAE;QACb,SAAS,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,EAAE,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,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MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,EAAE,CAAA,CAAC,CAAC,CAAC,CACjC,oBAAC,QAAQ,IAAC,SAAS,EAAC,eAAe,GAAG,CACvC,CAAC,CAAC,CAAC,CACF,oBAAC,UAAU,IAAC,SAAS,EAAC,eAAe,GAAG,CACzC;QAED,oBAAC,MAAM,IACL,KAAK,EAAE,MAAM,EACb,iBAAiB,EAAE,iBAAiB,EACpC,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,GACR,CACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,14 @@
1
+ export { default as BackwardIcon } from "/public/backward-icon.svg";
2
+ export { default as CheckedIcon } from "/public/checked-icon.svg";
3
+ export { default as ClosedNoteIcon } from "/public/closed-note-icon.svg";
4
+ export { default as ForwardIcon } from "/public/forward-icon.svg";
5
+ export { default as FullScreenIcon } from "/public/full-screen-icon.svg";
6
+ export { default as LeftArrowIcon } from "/public/left-arrow-icon.svg";
7
+ export { default as MuteIcon } from "/public/mute-icon.svg";
8
+ export { default as NoteIcon } from "/public/note-icon.svg";
9
+ export { default as OpenNoteIcon } from "/public/open-note-icon.svg";
10
+ export { default as PauseIcon } from "/public/pause-icon.svg";
11
+ export { default as PlayIcon } from "/public/play-icon.svg";
12
+ export { default as SettingsIcon } from "/public/settings-icon.svg";
13
+ export { default as UnmuteIcon } from "/public/unmute-icon.svg";
14
+ export { default as SubtitlesIcon } from "/public/subtitles-icon.svg";
@@ -0,0 +1,15 @@
1
+ export { default as BackwardIcon } from "/public/backward-icon.svg";
2
+ export { default as CheckedIcon } from "/public/checked-icon.svg";
3
+ export { default as ClosedNoteIcon } from "/public/closed-note-icon.svg";
4
+ export { default as ForwardIcon } from "/public/forward-icon.svg";
5
+ export { default as FullScreenIcon } from "/public/full-screen-icon.svg";
6
+ export { default as LeftArrowIcon } from "/public/left-arrow-icon.svg";
7
+ export { default as MuteIcon } from "/public/mute-icon.svg";
8
+ export { default as NoteIcon } from "/public/note-icon.svg";
9
+ export { default as OpenNoteIcon } from "/public/open-note-icon.svg";
10
+ export { default as PauseIcon } from "/public/pause-icon.svg";
11
+ export { default as PlayIcon } from "/public/play-icon.svg";
12
+ export { default as SettingsIcon } from "/public/settings-icon.svg";
13
+ export { default as UnmuteIcon } from "/public/unmute-icon.svg";
14
+ export { default as SubtitlesIcon } from "/public/subtitles-icon.svg";
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/images/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "softbuilders-react-video-player",
3
3
  "description": "Standalone video player component",
4
- "version": "1.0.0",
4
+ "version": "1.0.2",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
@@ -1,14 +0,0 @@
1
- export { default as BackwardIcon } from "./backward-icon.svg";
2
- export { default as CheckedIcon } from "./checked-icon.svg";
3
- export { default as ClosedNoteIcon } from "./closed-note-icon.svg";
4
- export { default as ForwardIcon } from "./forward-icon.svg";
5
- export { default as FullScreenIcon } from "./full-screen-icon.svg";
6
- export { default as LeftArrowIcon } from "./left-arrow-icon.svg";
7
- export { default as MuteIcon } from "./mute-icon.svg";
8
- export { default as NoteIcon } from "./note-icon.svg";
9
- export { default as OpenNoteIcon } from "./open-note-icon.svg";
10
- export { default as PauseIcon } from "./pause-icon.svg";
11
- export { default as PlayIcon } from "./play-icon.svg";
12
- export { default as SettingsIcon } from "./settings-icon.svg";
13
- export { default as UnmuteIcon } from "./unmute-icon.svg";
14
- export { default as SubtitlesIcon } from "./subtitles-icon.svg";
@@ -1,15 +0,0 @@
1
- export { default as BackwardIcon } from "./backward-icon.svg";
2
- export { default as CheckedIcon } from "./checked-icon.svg";
3
- export { default as ClosedNoteIcon } from "./closed-note-icon.svg";
4
- export { default as ForwardIcon } from "./forward-icon.svg";
5
- export { default as FullScreenIcon } from "./full-screen-icon.svg";
6
- export { default as LeftArrowIcon } from "./left-arrow-icon.svg";
7
- export { default as MuteIcon } from "./mute-icon.svg";
8
- export { default as NoteIcon } from "./note-icon.svg";
9
- export { default as OpenNoteIcon } from "./open-note-icon.svg";
10
- export { default as PauseIcon } from "./pause-icon.svg";
11
- export { default as PlayIcon } from "./play-icon.svg";
12
- export { default as SettingsIcon } from "./settings-icon.svg";
13
- export { default as UnmuteIcon } from "./unmute-icon.svg";
14
- export { default as SubtitlesIcon } from "./subtitles-icon.svg";
15
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,sBAAsB,CAAC"}