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/TestForm/index.js CHANGED
@@ -225,17 +225,22 @@ var InputSelect = forwardRef(function (_a, ref) {
225
225
  var InputForDatepicker = forwardRef(function (props, ref) {
226
226
  var onClick = props.onClick, disabled = props.disabled, handleClick = props.handleClick, startIcon = props.startIcon, other = __rest(props, ["onClick", "disabled", "handleClick", "startIcon"]);
227
227
  var handleIconClick = function () {
228
- if (handleClick) {
229
- handleClick();
230
- }
231
- else {
232
- onClick();
228
+ if (!disabled) {
229
+ if (handleClick) {
230
+ handleClick();
231
+ }
232
+ else {
233
+ onClick();
234
+ }
233
235
  }
234
236
  };
235
237
  var Icon = function () { return (jsx(IconWrapper, __assign({ disabled: disabled, onClick: handleIconClick }, { children: startIcon || jsx(CalendarIcon, { width: 19, height: 21 }) }))); };
236
238
  return (jsx(InputWithMask$1, __assign({ disabled: disabled, endIcon: !startIcon && jsx(Icon, {}), startIcon: startIcon && jsx(Icon, {}) }, other, { ref: ref })));
237
239
  });
238
- var IconWrapper = styled.div(templateObject_1$a || (templateObject_1$a = __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"])));
240
+ var IconWrapper = styled.div(templateObject_1$a || (templateObject_1$a = __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) {
241
+ var disabled = _a.disabled;
242
+ return (disabled ? "auto" : "pointer");
243
+ });
239
244
  var templateObject_1$a;
240
245
 
241
246
  var checkDisabled$1 = function (year, min, max) {