@weing-dev/ui-kit-primitive 0.2.0 → 0.3.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.
Files changed (45) hide show
  1. package/dist/components/Form/Dropdown/Dropdown.d.ts +1 -1
  2. package/dist/components/Icon/Icon.constant.d.ts +1 -1
  3. package/dist/components/Icon/Icon.d.ts +1 -1
  4. package/dist/components/Icons/PictureQuality.d.ts +3 -0
  5. package/dist/components/Icons/Pip.d.ts +3 -0
  6. package/dist/components/Icons/PipExit.d.ts +3 -0
  7. package/dist/components/Icons/PlaybackSpeed.d.ts +3 -0
  8. package/dist/components/Icons/SubtitleFilled.d.ts +3 -0
  9. package/dist/components/Icons/SubtitleOutlined.d.ts +3 -0
  10. package/dist/components/Icons/index.d.ts +6 -0
  11. package/dist/components/VideoPlayer/VideoPlayer.d.ts +99 -92
  12. package/dist/components/VideoPlayer/VideoPlayer.utils.d.ts +45 -0
  13. package/dist/components/VideoPlayer/components/Error/Error.d.ts +0 -3
  14. package/dist/components/VideoPlayer/components/Frame/Frame.d.ts +0 -28
  15. package/dist/components/VideoPlayer/components/Loading/Loading.d.ts +0 -1
  16. package/dist/components/VideoPlayer/components/Player/Player.d.ts +6 -0
  17. package/dist/components/VideoPlayer/components/Player/index.d.ts +2 -0
  18. package/dist/components/VideoPlayer/components/Thumbnail/Thumbnail.d.ts +8 -0
  19. package/dist/components/VideoPlayer/components/Thumbnail/index.d.ts +2 -0
  20. package/dist/components/VideoPlayer/components/VideoOverlay/VideoOverlay.d.ts +1 -3
  21. package/dist/components/VideoPlayer/components/Widgets/Button/Button.d.ts +4 -2
  22. package/dist/components/VideoPlayer/components/Widgets/SpeedControl/SpeedControl.d.ts +0 -1
  23. package/dist/components/VideoPlayer/components/Widgets/VolumeControl/VolumeControl.d.ts +5 -5
  24. package/dist/components/VideoPlayer/components/Widgets/index.d.ts +0 -1
  25. package/dist/components/VideoPlayer/components/index.d.ts +4 -0
  26. package/dist/components/VideoPlayer/context/index.d.ts +3 -2
  27. package/dist/components/VideoPlayer/context/videoPlayer.context.d.ts +6 -9
  28. package/dist/components/VideoPlayer/context/videoPlayer.provider.d.ts +1 -6
  29. package/dist/components/VideoPlayer/context/videoPlayer.store.d.ts +25 -43
  30. package/dist/components/VideoPlayer/context/videoPlayer.types.d.ts +351 -0
  31. package/dist/components/VideoPlayer/index.d.ts +16 -2
  32. package/dist/components/VideoPlayer/videoPlayer.constants.d.ts +7 -0
  33. package/dist/entry/components.d.ts +2 -1
  34. package/dist/entry/types.d.ts +2 -2
  35. package/dist/index.css +2 -2
  36. package/dist/index.js +8510 -7959
  37. package/dist/index.umd.cjs +31 -23
  38. package/dist/static/icon/PictureQuality.svg +5 -0
  39. package/dist/static/icon/pip.svg +8 -0
  40. package/dist/static/icon/pip_exit.svg +8 -0
  41. package/dist/static/icon/playback_speed.svg +5 -0
  42. package/dist/static/icon/subtitle_filled.svg +1 -0
  43. package/dist/static/icon/subtitle_outlined.svg +1 -0
  44. package/dist/utils/common.utill.d.ts +1 -1
  45. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ <svg fill="none" height="24" viewBox="0 0 24 24" width="24">
2
+ <path
3
+ d="M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z"
4
+ fill="white"></path>
5
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_5_7" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
3
+ <rect width="24" height="24" fill="#D9D9D9"/>
4
+ </mask>
5
+ <g mask="url(#mask0_5_7)">
6
+ <path d="M1.99999 11V8.99999H5.59999L1.29999 4.69999L2.69999 3.29999L6.99999 7.59999V3.99999H8.99999V11H1.99999ZM3.99999 20C3.44999 20 2.97915 19.8042 2.58749 19.4125C2.19582 19.0208 1.99999 18.55 1.99999 18V13H3.99999V18H12V20H3.99999ZM20 13V5.99999H11V3.99999H20C20.55 3.99999 21.0208 4.19582 21.4125 4.58749C21.8042 4.97915 22 5.44999 22 5.99999V13H20ZM14 20V15H22V20H14Z" fill="#1C1B1F"/>
7
+ </g>
8
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_5_13" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
3
+ <rect width="24" height="24" fill="#D9D9D9"/>
4
+ </mask>
5
+ <g mask="url(#mask0_5_13)">
6
+ <path d="M4 20C3.45 20 2.97917 19.8042 2.5875 19.4125C2.19583 19.0208 2 18.55 2 18V11H4V18H20V6H11V4H20C20.55 4 21.0208 4.19583 21.4125 4.5875C21.8042 4.97917 22 5.45 22 6V18C22 18.55 21.8042 19.0208 21.4125 19.4125C21.0208 19.8042 20.55 20 20 20H4ZM17.075 16.5L18.5 15.075L15.4 12H18V10H12V16H14V13.425L17.075 16.5ZM2 9V4H9V9H2Z" fill="#1C1B1F"/>
7
+ </g>
8
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg fill="currentColor" height="24" viewBox="0 0 24 24" width="24">
2
+ <path
3
+ d="M12 1c1.44 0 2.87.28 4.21.83a11 11 0 0 1 3.45 2.27l-1.81 1.05A9 9 0 0 0 3 12a9 9 0 0 0 18-.00l-.01-.44a8.99 8.99 0 0 0-.14-1.20l1.81-1.05A11.00 11.00 0 0 1 10.51 22.9 11 11 0 0 1 12 1Zm7.08 6.25-7.96 3.25a1.74 1.74 0 1 0 1.73 2.99l6.8-5.26a.57.57 0 0 0-.56-.98Z">
4
+ </path>
5
+ </svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#1f1f1f"><path d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm80-160h320v-80H240v80Zm400 0h80v-80h-80v80ZM240-480h80v-80h-80v80Zm160 0h320v-80H400v80Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#1f1f1f"><path d="M240-320h320v-80H240v80Zm400 0h80v-80h-80v80ZM240-480h80v-80h-80v80Zm160 0h320v-80H400v80ZM160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm0-80h640v-480H160v480Zm0 0v-480 480Z"/></svg>
@@ -1,4 +1,4 @@
1
1
  export declare const getRandomColor: () => string;
2
- export declare const getColorContrast: (bgColor: string) => "#ffffff" | "#000000";
2
+ export declare const getColorContrast: (bgColor: string) => "#000000" | "#ffffff";
3
3
  export declare const numberToMetricPrefix: (num: number) => string;
4
4
  export declare const isNumeric: (value: string) => boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@weing-dev/ui-kit-primitive",
3
3
  "private": false,
4
- "version": "0.2.0",
4
+ "version": "0.3.1",
5
5
  "type": "module",
6
6
  "sideEffects": [
7
7
  "**/*.css"