UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com's products.

17 lines 928 B
import _extends from "@babel/runtime/helpers/esm/extends"; import * as React from "react"; import cx from "clsx"; const TooltipWrapper = ({ block, enabled, removeUnderlinedText, ref, ...props }) => { return /*#__PURE__*/React.createElement("span", _extends({ className: cx("orbit-tooltip-wrapper", "h-fit max-w-full cursor-auto", "focus:outline-offset-1 active:outline-offset-1 [&_:disabled]:pointer-events-none", "[&_.orbit-checkbox-icon-container]:focus:!outline-none [&_.orbit-radio-icon-container]:focus:!outline-none", "[&_.orbit-checkbox-icon-container]:active:!outline-none [&_.orbit-radio-icon-container]:active:!outline-none", block ? "flex" : "inline-flex", enabled && !removeUnderlinedText && "[&_.orbit-text]:inline-block [&_.orbit-text]:underline [&_.orbit-text]:decoration-current [&_.orbit-text]:decoration-dotted"), ref: ref, role: "button" }, props)); }; export default TooltipWrapper;