@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
26 lines • 1.78 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ContainerStandAlone = 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 container_styled_1 = require("./container.styled");
const ContainerStandAloneComponent = ({ dataTestId = 'container', ...props }, ref) => {
return ((0, jsx_runtime_1.jsxs)(container_styled_1.ParentContainerStyled, { styles: props.styles, children: [(0, jsx_runtime_1.jsx)(container_styled_1.HeaderStyled, { styles: props.styles, children: (0, jsx_runtime_1.jsx)(text_1.Text, { component: component_1.TextComponentType.H4, customTypography: props.styles.title, ...props.title, children: props.title?.content }) }), (0, jsx_runtime_1.jsx)(container_styled_1.ContainerStyled, { ref: ref, "data-testid": dataTestId, styles: props.styles, children: props.children })] }));
};
/**
* Represents the standalone container component.
* @see {@link https://kubit.es/standalone-components/container/container-standalone/}
*
* @function ContainerStandAloneComponent
* @category StandAlone Components
* @param {React.PropsWithChildren<IContainerStandAlone>} props - The props for the component.
* @param {React.ForwardedRef<HTMLDivElement>} ref - The ref for the component.
* @returns {JSX.Element} - The JSX element representing the container component.
*/
exports.ContainerStandAlone = react_1.default.forwardRef(ContainerStandAloneComponent);
//# sourceMappingURL=containerStandAlone.js.map