UNPKG

@wulperstudio/cms

Version:
53 lines (52 loc) 2.19 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties")); var _react = _interopRequireDefault(require("react")); var _material = require("@mui/material"); var _styled = require("./styled"); var _AvatarV = require("../AvatarV2"); var _jsxRuntime = require("react/jsx-runtime"); var _excluded = ["titleProps"], _excluded2 = ["variant", "color", "gutterBottom", "paragraph"]; var AvatartextOutput = function AvatartextOutput(_ref) { var titleProps = _ref.titleProps, props = (0, _objectWithoutProperties2["default"])(_ref, _excluded); var _ref2 = titleProps || {}, _ref2$variant = _ref2.variant, variant = _ref2$variant === void 0 ? 'body2' : _ref2$variant, _ref2$color = _ref2.color, color = _ref2$color === void 0 ? 'text.secondary' : _ref2$color, _ref2$gutterBottom = _ref2.gutterBottom, gutterBottom = _ref2$gutterBottom === void 0 ? false : _ref2$gutterBottom, _ref2$paragraph = _ref2.paragraph, paragraph = _ref2$paragraph === void 0 ? true : _ref2$paragraph, rest = (0, _objectWithoutProperties2["default"])(_ref2, _excluded2); return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styled.Box, { showBorder: props.showBorder, backgroundColor: props.backgroundColor, showBoxShadow: props.showBoxShadow, showDivider: props.showDivider, children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, Object.assign({ gutterBottom: gutterBottom, paragraph: paragraph, variant: variant, color: color, component: "span" }, rest, { children: props.label })), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Stack, { direction: "row", columnGap: "10px", alignItems: "center", children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_AvatarV.AvatarV2, Object.assign({ size: "medium", src: props.urlImg }, props.avatarProps)), props.children] })] }); }; var _default = exports["default"] = AvatartextOutput;