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 { styled } from "../zero-styled/index.js";
|
8 | import memoTheme from "../utils/memoTheme.js";
|
9 | import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
10 | import { getAccordionDetailsUtilityClass } from "./accordionDetailsClasses.js";
|
11 | import { jsx as _jsx } from "react/jsx-runtime";
|
12 | const useUtilityClasses = ownerState => {
|
13 | const {
|
14 | classes
|
15 | } = ownerState;
|
16 | const slots = {
|
17 | root: ['root']
|
18 | };
|
19 | return composeClasses(slots, getAccordionDetailsUtilityClass, classes);
|
20 | };
|
21 | const AccordionDetailsRoot = styled('div', {
|
22 | name: 'MuiAccordionDetails',
|
23 | slot: 'Root',
|
24 | overridesResolver: (props, styles) => styles.root
|
25 | })(memoTheme(({
|
26 | theme
|
27 | }) => ({
|
28 | padding: theme.spacing(1, 2, 2)
|
29 | })));
|
30 | const AccordionDetails = React.forwardRef(function AccordionDetails(inProps, ref) {
|
31 | const props = useDefaultProps({
|
32 | props: inProps,
|
33 | name: 'MuiAccordionDetails'
|
34 | });
|
35 | const {
|
36 | className,
|
37 | ...other
|
38 | } = props;
|
39 | const ownerState = props;
|
40 | const classes = useUtilityClasses(ownerState);
|
41 | return _jsx(AccordionDetailsRoot, {
|
42 | className: clsx(classes.root, className),
|
43 | ref: ref,
|
44 | ownerState: ownerState,
|
45 | ...other
|
46 | });
|
47 | });
|
48 | process.env.NODE_ENV !== "production" ? AccordionDetails.propTypes = {
|
49 |
|
50 |
|
51 |
|
52 |
|
53 | |
54 |
|
55 |
|
56 | children: PropTypes.node,
|
57 | |
58 |
|
59 |
|
60 | classes: PropTypes.object,
|
61 | |
62 |
|
63 |
|
64 | className: PropTypes.string,
|
65 | |
66 |
|
67 |
|
68 | sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
69 | } : void 0;
|
70 | export default AccordionDetails; |
\ | No newline at end of file |