@filerobot/common
Advanced tools
Comparing version 0.0.0-beta.61 to 0.0.0-beta.62
@@ -15,6 +15,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
classes = _ref.classes, | ||
checkboxClasses = _ref.checkboxClasses, | ||
_ref$label = _ref.label, | ||
label = _ref$label === void 0 ? '' : _ref$label, | ||
name = _ref.name, | ||
others = _objectWithoutPropertiesLoose(_ref, ["checked", "onChange", "children", "classes", "label", "name"]); | ||
others = _objectWithoutPropertiesLoose(_ref, ["checked", "onChange", "children", "classes", "checkboxClasses", "label", "name"]); | ||
@@ -38,3 +39,3 @@ var delegateEvent = function delegateEvent(e) { | ||
type: "div", | ||
className: "filerobot-u-reset filerobot-common-Checkbox", | ||
className: "filerobot-u-reset filerobot-common-Checkbox" + (checkboxClasses ? " " + checkboxClasses : ''), | ||
role: "checkbox", | ||
@@ -41,0 +42,0 @@ checked: checked // to be simulated as real checkbox in case we needed it |
@@ -31,3 +31,3 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
return value === color ? [color] : [value, color]; | ||
return value ? value === color ? [color] : [value, color] : [color]; | ||
}; | ||
@@ -34,0 +34,0 @@ |
@@ -16,3 +16,4 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
onChange = _ref.onChange, | ||
rest = _objectWithoutPropertiesLoose(_ref, ["classes", "checked", "children", "label", "onChange"]); | ||
labelStyle = _ref.labelStyle, | ||
rest = _objectWithoutPropertiesLoose(_ref, ["classes", "checked", "children", "label", "onChange", "labelStyle"]); | ||
@@ -33,2 +34,3 @@ return /*#__PURE__*/_jsxs("label", { | ||
className: "filerobot-common-secondaryTxt", | ||
style: labelStyle, | ||
children: label | ||
@@ -35,0 +37,0 @@ })] |
@@ -58,4 +58,10 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
var slider2Ref = useRef(null); | ||
var firstRender = useRef(true); | ||
var sliderBG = null; | ||
useEffect(function () { | ||
if (firstRender.current) { | ||
firstRender.current = false; | ||
return; | ||
} | ||
var slidersVals = { | ||
@@ -178,3 +184,5 @@ from: slider1Value, | ||
var changeSliderValueByClick = function changeSliderValueByClick(_ref3) { | ||
var offsetX = _ref3.offsetX; | ||
var _ref3$nativeEvent = _ref3.nativeEvent; | ||
_ref3$nativeEvent = _ref3$nativeEvent === void 0 ? {} : _ref3$nativeEvent; | ||
var offsetX = _ref3$nativeEvent.offsetX; | ||
offsetX = parseNumber(mapValueBySlidersWidth(offsetX, false)); | ||
@@ -181,0 +189,0 @@ var slider1Reminder = Math.abs(offsetX - slider1Value); |
{ | ||
"name": "@filerobot/common", | ||
"version": "0.0.0-beta.61", | ||
"version": "0.0.0-beta.62", | ||
"description": "The common components shared between Filerobot Media Asset Widget modules", | ||
@@ -17,4 +17,4 @@ "homepage": "", | ||
"dependencies": { | ||
"@filerobot/icons": "0.0.0-beta.61", | ||
"@filerobot/utils": "0.0.0-beta.61", | ||
"@filerobot/icons": "0.0.0-beta.62", | ||
"@filerobot/utils": "0.0.0-beta.62", | ||
"react": "^17.0.1", | ||
@@ -21,0 +21,0 @@ "react-dom": "^17.0.1" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
204867
3960
+ Added@filerobot/icons@0.0.0-beta.62(transitive)
+ Added@filerobot/utils@0.0.0-beta.62(transitive)
- Removed@filerobot/icons@0.0.0-beta.61(transitive)
- Removed@filerobot/utils@0.0.0-beta.61(transitive)