@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
20 lines • 1.54 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.LineSeparatorStandAlone = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = __importDefault(require("react"));
const text_1 = require("../../components/text/text");
const component_1 = require("../../components/text/types/component");
const lineSeparator_styled_1 = require("./lineSeparator.styled");
const LineSeparatorStandAloneComponent = ({ labelStyles, lineStyles, label, externalNodeTag, internalNodeTag, dataTestId = 'line-separator', }, ref) => {
return ((0, jsx_runtime_1.jsx)(lineSeparator_styled_1.LineSeparatorRootWrapperStyled, { ref: ref, as: externalNodeTag, "data-testid": dataTestId, styles: lineStyles, children: label?.content && ((0, jsx_runtime_1.jsx)(lineSeparator_styled_1.LineSeparatorTextWrapperStyled, { as: internalNodeTag, styles: labelStyles, children: (0, jsx_runtime_1.jsx)(text_1.Text, { align: labelStyles?.label?.text_align, color: labelStyles?.label?.color, component: component_1.TextComponentType.SPAN, variant: labelStyles?.label?.font_variant, weight: labelStyles?.label?.font_weight, ...label, children: label.content }) })) }));
};
/**
* @description
* LineSeparator component to separate content
*/
exports.LineSeparatorStandAlone = react_1.default.forwardRef(LineSeparatorStandAloneComponent);
//# sourceMappingURL=lineSeparatorStandAlone.js.map