UNPKG

@up-group-ui/react-controls

Version:
22 lines 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UpLigne = void 0; var tslib_1 = require("tslib"); var jsx_runtime_1 = require("react/jsx-runtime"); var styles_1 = require("./styles"); var classnames_1 = (0, tslib_1.__importDefault)(require("classnames")); var withTheme_1 = (0, tslib_1.__importDefault)(require("../../../Common/theming/withTheme")); var UpLigne = function (props) { var dataFor = props.dataFor, className = props.className, children = props.children, theme = props.theme, others = (0, tslib_1.__rest)(props, ["dataFor", "className", "children", "theme"]); var tooltipProps = {}; if (dataFor) { tooltipProps = { 'data-tip': 'tooltip', 'data-for': dataFor, }; } return ((0, jsx_runtime_1.jsx)("span", (0, tslib_1.__assign)({ className: (0, classnames_1.default)(className, (0, styles_1.getStyles)(props)) }, tooltipProps, others, { children: children }), void 0)); }; exports.UpLigne = UpLigne; exports.default = (0, withTheme_1.default)(UpLigne); //# sourceMappingURL=UpLigne.js.map