1 | 'use client';
|
2 |
|
3 | import * as React from 'react';
|
4 | import PropTypes from 'prop-types';
|
5 | import clsx from 'clsx';
|
6 | import composeClasses from '@mui/utils/composeClasses';
|
7 | import rootShouldForwardProp from "../styles/rootShouldForwardProp.js";
|
8 | import { styled } from "../zero-styled/index.js";
|
9 | import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
10 | import Typography from "../Typography/index.js";
|
11 | import { getDialogContentTextUtilityClass } from "./dialogContentTextClasses.js";
|
12 | import { jsx as _jsx } from "react/jsx-runtime";
|
13 | const useUtilityClasses = ownerState => {
|
14 | const {
|
15 | classes
|
16 | } = ownerState;
|
17 | const slots = {
|
18 | root: ['root']
|
19 | };
|
20 | const composedClasses = composeClasses(slots, getDialogContentTextUtilityClass, classes);
|
21 | return {
|
22 | ...classes,
|
23 |
|
24 | ...composedClasses
|
25 | };
|
26 | };
|
27 | const DialogContentTextRoot = styled(Typography, {
|
28 | shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
|
29 | name: 'MuiDialogContentText',
|
30 | slot: 'Root',
|
31 | overridesResolver: (props, styles) => styles.root
|
32 | })({});
|
33 | const DialogContentText = React.forwardRef(function DialogContentText(inProps, ref) {
|
34 | const props = useDefaultProps({
|
35 | props: inProps,
|
36 | name: 'MuiDialogContentText'
|
37 | });
|
38 | const {
|
39 | children,
|
40 | className,
|
41 | ...ownerState
|
42 | } = props;
|
43 | const classes = useUtilityClasses(ownerState);
|
44 | return _jsx(DialogContentTextRoot, {
|
45 | component: "p",
|
46 | variant: "body1",
|
47 | color: "textSecondary",
|
48 | ref: ref,
|
49 | ownerState: ownerState,
|
50 | className: clsx(classes.root, className),
|
51 | ...props,
|
52 | classes: classes
|
53 | });
|
54 | });
|
55 | process.env.NODE_ENV !== "production" ? DialogContentText.propTypes = {
|
56 |
|
57 |
|
58 |
|
59 |
|
60 | |
61 |
|
62 |
|
63 | children: PropTypes.node,
|
64 | |
65 |
|
66 |
|
67 | classes: PropTypes.object,
|
68 | |
69 |
|
70 |
|
71 | className: PropTypes.string,
|
72 | |
73 |
|
74 |
|
75 | sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
76 | } : void 0;
|
77 | export default DialogContentText; |
\ | No newline at end of file |