indicator-ui 0.1.43 → 0.1.44

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/dist/index.js CHANGED
@@ -72058,7 +72058,9 @@ function Toggle(props) {
72058
72058
  textBeforeElement = props.textBeforeElement,
72059
72059
  textAfterElement = props.textAfterElement,
72060
72060
  _props$theme = props.theme,
72061
- theme = _props$theme === void 0 ? "light" : _props$theme;
72061
+ theme = _props$theme === void 0 ? "light" : _props$theme,
72062
+ _props$size = props.size,
72063
+ size = _props$size === void 0 ? 'medium' : _props$size;
72062
72064
  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
72063
72065
  _useState2 = _slicedToArray(_useState, 2),
72064
72066
  isHover = _useState2[0],
@@ -72084,7 +72086,7 @@ function Toggle(props) {
72084
72086
  children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ui__WEBPACK_IMPORTED_MODULE_3__.ToggleBase, {
72085
72087
  active: active,
72086
72088
  hover: isHover,
72087
- size: 'medium',
72089
+ size: size,
72088
72090
  isButton: false,
72089
72091
  disabled: disabled,
72090
72092
  theme: theme
@@ -72837,12 +72839,16 @@ var VideoPlayerBase = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forward
72837
72839
  var setTime = function setTime(time) {
72838
72840
  var video = videoRef.current;
72839
72841
  if (!video) return;
72840
- video.currentTime = time;
72842
+ if (isFinite(time)) {
72843
+ video.currentTime = time;
72844
+ }
72841
72845
  };
72842
72846
  var setVolume = function setVolume(volume) {
72843
72847
  var video = videoRef.current;
72844
72848
  if (!video) return;
72845
- video.volume = volume;
72849
+ if (isFinite(volume)) {
72850
+ video.volume = volume;
72851
+ }
72846
72852
  };
72847
72853
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle)(ref, function () {
72848
72854
  return {