rc-picker
Advanced tools
Comparing version 0.0.1-alpha.40 to 0.0.1-alpha.41
@@ -249,10 +249,15 @@ "use strict"; | ||
selectedValue = _useMergeState_1$defa6[0], | ||
setSelectedValue = _useMergeState_1$defa6[1]; // ========================== Hover Range ========================== | ||
setSelectedValue = _useMergeState_1$defa6[1]; | ||
var _React$useState3 = React.useState(null), | ||
_React$useState4 = _slicedToArray(_React$useState3, 2), | ||
hoverRangedValue = _React$useState4[0], | ||
setHoverRangedValue = _React$useState4[1]; | ||
rangeHoverValue = _React$useState4[0], | ||
setRangeHoverValue = _React$useState4[1]; // ========================== Hover Range ========================== | ||
var _React$useState5 = React.useState(null), | ||
_React$useState6 = _slicedToArray(_React$useState5, 2), | ||
hoverRangedValue = _React$useState6[0], | ||
setHoverRangedValue = _React$useState6[1]; | ||
var onDateMouseEnter = function onDateMouseEnter(date) { | ||
@@ -320,6 +325,6 @@ setHoverRangedValue(miscUtil_1.updateValues(selectedValue, date, activePickerIndex)); | ||
var _React$useState5 = React.useState(0), | ||
_React$useState6 = _slicedToArray(_React$useState5, 2), | ||
popupMinWidth = _React$useState6[0], | ||
setPopupMinWidth = _React$useState6[1]; | ||
var _React$useState7 = React.useState(0), | ||
_React$useState8 = _slicedToArray(_React$useState7, 2), | ||
popupMinWidth = _React$useState8[0], | ||
setPopupMinWidth = _React$useState8[1]; | ||
@@ -592,3 +597,3 @@ React.useEffect(function () { | ||
panelPosition: panelPosition, | ||
rangedValue: selectedValue, | ||
rangedValue: rangeHoverValue || selectedValue, | ||
hoverRangedValue: panelHoverRangedValue, | ||
@@ -681,6 +686,6 @@ onSelect: onContextSelect | ||
onMouseEnter: function onMouseEnter() { | ||
setHoverRangedValue(rangeValues); | ||
setRangeHoverValue(rangeValues); | ||
}, | ||
onMouseLeave: function onMouseLeave() { | ||
setHoverRangedValue(miscUtil_1.updateValues(selectedValue, null, activePickerIndex)); | ||
setRangeHoverValue(null); | ||
} | ||
@@ -687,0 +692,0 @@ }, label)); |
@@ -249,10 +249,15 @@ "use strict"; | ||
selectedValue = _useMergeState_1$defa6[0], | ||
setSelectedValue = _useMergeState_1$defa6[1]; // ========================== Hover Range ========================== | ||
setSelectedValue = _useMergeState_1$defa6[1]; | ||
var _React$useState3 = React.useState(null), | ||
_React$useState4 = _slicedToArray(_React$useState3, 2), | ||
hoverRangedValue = _React$useState4[0], | ||
setHoverRangedValue = _React$useState4[1]; | ||
rangeHoverValue = _React$useState4[0], | ||
setRangeHoverValue = _React$useState4[1]; // ========================== Hover Range ========================== | ||
var _React$useState5 = React.useState(null), | ||
_React$useState6 = _slicedToArray(_React$useState5, 2), | ||
hoverRangedValue = _React$useState6[0], | ||
setHoverRangedValue = _React$useState6[1]; | ||
var onDateMouseEnter = function onDateMouseEnter(date) { | ||
@@ -320,6 +325,6 @@ setHoverRangedValue(miscUtil_1.updateValues(selectedValue, date, activePickerIndex)); | ||
var _React$useState5 = React.useState(0), | ||
_React$useState6 = _slicedToArray(_React$useState5, 2), | ||
popupMinWidth = _React$useState6[0], | ||
setPopupMinWidth = _React$useState6[1]; | ||
var _React$useState7 = React.useState(0), | ||
_React$useState8 = _slicedToArray(_React$useState7, 2), | ||
popupMinWidth = _React$useState8[0], | ||
setPopupMinWidth = _React$useState8[1]; | ||
@@ -592,3 +597,3 @@ React.useEffect(function () { | ||
panelPosition: panelPosition, | ||
rangedValue: selectedValue, | ||
rangedValue: rangeHoverValue || selectedValue, | ||
hoverRangedValue: panelHoverRangedValue, | ||
@@ -681,6 +686,6 @@ onSelect: onContextSelect | ||
onMouseEnter: function onMouseEnter() { | ||
setHoverRangedValue(rangeValues); | ||
setRangeHoverValue(rangeValues); | ||
}, | ||
onMouseLeave: function onMouseLeave() { | ||
setHoverRangedValue(miscUtil_1.updateValues(selectedValue, null, activePickerIndex)); | ||
setRangeHoverValue(null); | ||
} | ||
@@ -687,0 +692,0 @@ }, label)); |
{ | ||
"name": "rc-picker", | ||
"version": "0.0.1-alpha.40", | ||
"version": "0.0.1-alpha.41", | ||
"description": "React date & time picker", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
545341
13009