kui-complex 0.0.105 → 0.0.108

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
@@ -707,10 +707,6 @@ var InputWithDatePicker = forwardRef(function (_a, ref) {
707
707
  return (jsxs(Fragment, { children: [jsx$1(InputForDatepicker, __assign({ mask: "00.00.0000", name: name, handleClick: handleModalOpen, value: formattedValue || value, onChange: handleChange, disabled: disabled, message: error, ref: forwardedRef }, props)), jsxs(StyledModal, __assign({ title: title, description: description, isOpen: isModalOpen, handleClose: handleModalClose, alignTitle: alignTitle }, { children: [jsx$1(ContentWrapper$2, { children: jsx$1(DatePicker, __assign({ inline: true, selected: date || formattedDate, onChange: handleDateChange, calendarContainer: StyledCalendarStandardContainer, renderCustomHeader: function (headProps) { return (jsx$1(CalendarHeaderWithSelect, __assign({ yearOptions: yearList, max: max, min: min }, headProps))); }, renderDayContents: function (day) { return (jsx$1(DayContent, { children: day })); }, maxDate: max === null || max === void 0 ? void 0 : max.toJSDate(), minDate: min === null || min === void 0 ? void 0 : min.toJSDate() }, datePickerProps)) }), jsx$1(ModalFooter, { fullWidth: true, disabled: !formattedDate && !date, onClick: acceptWithDateSelected, label: footerLabel })] }))] }));
708
708
  });
709
709
  InputWithDatePicker.defaultProps = {
710
- title: "Дата рождения",
711
- description: "Выберите год, месяц и число вашего рождения",
712
- yearParams: { min: 18, max: 120 },
713
- footerLabel: "Подтвердить",
714
710
  alignTitle: "center",
715
711
  };
716
712
  var ContentWrapper$2 = styled.div(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\n padding: 0px 40px 24px;\n @media (max-width: 600px) {\n padding: 20px 0 0;\n }\n"], ["\n padding: 0px 40px 24px;\n @media (max-width: 600px) {\n padding: 20px 0 0;\n }\n"])));
@@ -840,7 +836,7 @@ MenuPanel.defaultProps = {
840
836
  variant: "grey",
841
837
  };
842
838
  var fullHeightStyles = css(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n height: calc(100vh - 121px);\n display: flex;\n"], ["\n height: calc(100vh - 121px);\n display: flex;\n"])));
843
- var StyledElement = styled(Element)(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
839
+ var StyledElement = styled(Element)(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n width: 100%;\n"])));
844
840
  var templateObject_1$j, templateObject_2$b;
845
841
 
846
842
  var Switch = forwardRef(function (_a, ref) {
@@ -1061,7 +1057,7 @@ var Popper = forwardRef(function (props, ref) {
1061
1057
  });
1062
1058
 
1063
1059
  var Tooltip = forwardRef(function (props, ref) {
1064
- var content = props.content, onOpen = props.onOpen, onClose = props.onClose, open = props.open, children = props.children, cursor = props.cursor, popper = __rest(props, ["content", "onOpen", "onClose", "open", "children", "cursor"]);
1060
+ var content = props.content, onOpen = props.onOpen, onClose = props.onClose, open = props.open, children = props.children, cursor = props.cursor, className = props.className, popper = __rest(props, ["content", "onOpen", "onClose", "open", "children", "cursor", "className"]);
1065
1061
  var _a = useState(open), isOpen = _a[0], setOpen = _a[1];
1066
1062
  var elemRef = useRef(null);
1067
1063
  var handleOpen = function () {
@@ -1079,7 +1075,7 @@ var Tooltip = forwardRef(function (props, ref) {
1079
1075
  useEffect(function () {
1080
1076
  setOpen(open);
1081
1077
  }, [open]);
1082
- return (jsxs$1(StyledWrapper$7, __assign({ onMouseLeave: handleClose, ref: ref }, { children: [jsx(StyledContentWrapper, __assign({ onMouseEnter: handleOpen, onTouchEnd: handleOpen, ref: elemRef, cursor: cursor }, { children: jsx(StyledContent$1, { children: children }) })), jsx(Popper, __assign({ open: isOpen }, popper, { contentRef: elemRef }, { children: content }))] })));
1078
+ return (jsxs$1(StyledWrapper$7, __assign({ className: className, onMouseLeave: handleClose, ref: ref }, { children: [jsx(StyledContentWrapper, __assign({ onMouseEnter: handleOpen, onTouchEnd: handleOpen, ref: elemRef, cursor: cursor }, { children: jsx(StyledContent$1, __assign({ className: "Tooltip_content" }, { children: children })) })), jsx(Popper, __assign({ open: isOpen }, popper, { contentRef: elemRef }, { children: content }))] })));
1083
1079
  });
1084
1080
  var containerCSS = css(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n display: inline-flex;\n width: 100%;\n height: fit-content;\n"], ["\n display: inline-flex;\n width: 100%;\n height: fit-content;\n"])));
1085
1081
  var StyledWrapper$7 = styled.div(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["\n ", ";\n position: relative;\n"], ["\n ", ";\n position: relative;\n"])), containerCSS);
@@ -1603,7 +1599,7 @@ var CheckboxWithController = forwardRef(function (props, ref) {
1603
1599
  var field = _a.field;
1604
1600
  return (jsx(Checkbox, __assign({}, inputProps, field, { checked: field.value || "", onChange: function (e) {
1605
1601
  return handleChange(e, field);
1606
- }, label: jsx(Caption, __assign({}, labelProps, { children: label })) })));
1602
+ }, label: typeof label === "string" ? (jsx(Caption, __assign({}, labelProps, { children: label }))) : (label) })));
1607
1603
  } }));
1608
1604
  });
1609
1605