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/cjs/index.js CHANGED
@@ -418,17 +418,22 @@ var templateObject_1$x, templateObject_2$k, templateObject_3$9;
418
418
  var InputForDatepicker = React.forwardRef(function (props, ref) {
419
419
  var onClick = props.onClick, disabled = props.disabled, handleClick = props.handleClick, startIcon = props.startIcon, other = __rest(props, ["onClick", "disabled", "handleClick", "startIcon"]);
420
420
  var handleIconClick = function () {
421
- if (handleClick) {
422
- handleClick();
423
- }
424
- else {
425
- onClick();
421
+ if (!disabled) {
422
+ if (handleClick) {
423
+ handleClick();
424
+ }
425
+ else {
426
+ onClick();
427
+ }
426
428
  }
427
429
  };
428
430
  var Icon = function () { return (jsxRuntime.jsx(IconWrapper, __assign({ disabled: disabled, onClick: handleIconClick }, { children: startIcon || jsxRuntime.jsx(kuiIcon.CalendarIcon, { width: 19, height: 21 }) }))); };
429
431
  return (jsxRuntime.jsx(kuiBasic.InputWithMask, __assign({ disabled: disabled, endIcon: !startIcon && jsxRuntime.jsx(Icon, {}), startIcon: startIcon && jsxRuntime.jsx(Icon, {}) }, other, { ref: ref })));
430
432
  });
431
- var IconWrapper = styled__default["default"].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"])));
433
+ var IconWrapper = styled__default["default"].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) {
434
+ var disabled = _a.disabled;
435
+ return (disabled ? "auto" : "pointer");
436
+ });
432
437
  var templateObject_1$w;
433
438
 
434
439
  var MonthPickerContainer = React.forwardRef(function (_a, ref) {