kui-complex 0.0.39 → 0.0.41

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/dist/index.d.ts CHANGED
@@ -282,16 +282,19 @@ type PopperPlacements =
282
282
  | "bottomMiddle"
283
283
  | "bottomEnd"
284
284
 
285
- declare const Tooltip: React.ForwardRefExoticComponent<{
286
- onOpen?: (() => void) | undefined;
287
- onClose?: (() => void) | undefined;
288
- content: React.ReactNode;
289
- open?: boolean | undefined;
290
- placement?: PopperPlacements | undefined;
291
- withArrow?: boolean | undefined;
292
- cursor?: "auto" | "pointer" | undefined;
293
- spacing?: string | undefined;
294
- } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
285
+ interface TooltipProps
286
+ extends Omit<React__default.HTMLAttributes<HTMLDivElement>, "content"> {
287
+ onOpen?: () => void
288
+ onClose?: () => void
289
+ content: ReactNode
290
+ open?: boolean
291
+ placement?: PopperPlacements
292
+ withArrow?: boolean
293
+ cursor?: "pointer" | "auto"
294
+ spacing?: string
295
+ }
296
+
297
+ declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLDivElement>>;
295
298
 
296
299
  type ButtonSelectProps = InputSelectProps
297
300
 
package/dist/index.es.js CHANGED
@@ -1009,7 +1009,7 @@ var Tooltip = forwardRef(function (props, ref) {
1009
1009
  }, [open]);
1010
1010
  return (jsxs$1(StyledWrapper, __assign({ onMouseLeave: handleClose, ref: ref }, { children: [jsx(StyledContentWrapper, __assign({ onMouseEnter: handleOpen, onTouchEnd: handleOpen, ref: elemRef, cursor: cursor }, { children: jsx(StyledContent, { children: children }) })), jsx(Popper, __assign({ open: isOpen }, popper, { contentRef: elemRef }, { children: content }))] })));
1011
1011
  });
1012
- var containerCSS = css(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n display: inline-flex;\n width: fit-content;\n height: fit-content;\n"], ["\n display: inline-flex;\n width: fit-content;\n height: fit-content;\n"])));
1012
+ var containerCSS = css(templateObject_1$1 || (templateObject_1$1 = __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"])));
1013
1013
  var StyledWrapper = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", ";\n position: relative;\n"], ["\n ", ";\n position: relative;\n"])), containerCSS);
1014
1014
  var StyledContentWrapper = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", ";\n cursor: ", ";\n"], ["\n ", ";\n cursor: ", ";\n"])), containerCSS, function (_a) {
1015
1015
  var cursor = _a.cursor;