kui-complex 0.0.109 → 0.0.110

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/index.js CHANGED
@@ -386,17 +386,22 @@ var templateObject_1$x, templateObject_2$k, templateObject_3$9;
386
386
  var InputForDatepicker = forwardRef(function (props, ref) {
387
387
  var onClick = props.onClick, disabled = props.disabled, handleClick = props.handleClick, startIcon = props.startIcon, other = __rest(props, ["onClick", "disabled", "handleClick", "startIcon"]);
388
388
  var handleIconClick = function () {
389
- if (handleClick) {
390
- handleClick();
391
- }
392
- else {
393
- onClick();
389
+ if (!disabled) {
390
+ if (handleClick) {
391
+ handleClick();
392
+ }
393
+ else {
394
+ onClick();
395
+ }
394
396
  }
395
397
  };
396
398
  var Icon = function () { return (jsx(IconWrapper, __assign({ disabled: disabled, onClick: handleIconClick }, { children: startIcon || jsx(CalendarIcon, { width: 19, height: 21 }) }))); };
397
399
  return (jsx(InputWithMask$1, __assign({ disabled: disabled, endIcon: !startIcon && jsx(Icon, {}), startIcon: startIcon && jsx(Icon, {}) }, other, { ref: ref })));
398
400
  });
399
- var IconWrapper = styled.div(templateObject_1$w || (templateObject_1$w = __makeTemplateObject(["\n display: flex;\n align-items: center;\n cursor: pointer;\n z-index: 1;\n"], ["\n display: flex;\n align-items: center;\n cursor: pointer;\n z-index: 1;\n"])));
401
+ var IconWrapper = styled.div(templateObject_1$w || (templateObject_1$w = __makeTemplateObject(["\n display: flex;\n align-items: center;\n cursor: ", ";\n z-index: 1;\n"], ["\n display: flex;\n align-items: center;\n cursor: ", ";\n z-index: 1;\n"])), function (_a) {
402
+ var disabled = _a.disabled;
403
+ return (disabled ? "auto" : "pointer");
404
+ });
400
405
  var templateObject_1$w;
401
406
 
402
407
  var MonthPickerContainer = forwardRef(function (_a, ref) {