paradiego
This commit is contained in:
48
node_modules/@mui/material/CardContent/CardContent.d.ts
generated
vendored
Normal file
48
node_modules/@mui/material/CardContent/CardContent.d.ts
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
import * as React from 'react';
|
||||
import { SxProps } from '@mui/system';
|
||||
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
||||
import { Theme } from '..';
|
||||
import { CardContentClasses } from './cardContentClasses';
|
||||
|
||||
export interface CardContentOwnProps {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes?: Partial<CardContentClasses>;
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx?: SxProps<Theme>;
|
||||
}
|
||||
|
||||
export interface CardContentTypeMap<
|
||||
AdditionalProps = {},
|
||||
RootComponent extends React.ElementType = 'div',
|
||||
> {
|
||||
props: AdditionalProps & CardContentOwnProps;
|
||||
defaultComponent: RootComponent;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Card](https://mui.com/material-ui/react-card/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [CardContent API](https://mui.com/material-ui/api/card-content/)
|
||||
*/
|
||||
declare const CardContent: OverridableComponent<CardContentTypeMap>;
|
||||
|
||||
export type CardContentProps<
|
||||
RootComponent extends React.ElementType = CardContentTypeMap['defaultComponent'],
|
||||
AdditionalProps = {},
|
||||
> = OverrideProps<CardContentTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
||||
component?: React.ElementType;
|
||||
};
|
||||
|
||||
export default CardContent;
|
||||
80
node_modules/@mui/material/CardContent/CardContent.js
generated
vendored
Normal file
80
node_modules/@mui/material/CardContent/CardContent.js
generated
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
'use client';
|
||||
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import { styled } from "../zero-styled/index.js";
|
||||
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
||||
import { getCardContentUtilityClass } from "./cardContentClasses.js";
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root']
|
||||
};
|
||||
return composeClasses(slots, getCardContentUtilityClass, classes);
|
||||
};
|
||||
const CardContentRoot = styled('div', {
|
||||
name: 'MuiCardContent',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => styles.root
|
||||
})({
|
||||
padding: 16,
|
||||
'&:last-child': {
|
||||
paddingBottom: 24
|
||||
}
|
||||
});
|
||||
const CardContent = /*#__PURE__*/React.forwardRef(function CardContent(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiCardContent'
|
||||
});
|
||||
const {
|
||||
className,
|
||||
component = 'div',
|
||||
...other
|
||||
} = props;
|
||||
const ownerState = {
|
||||
...props,
|
||||
component
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/_jsx(CardContentRoot, {
|
||||
as: component,
|
||||
className: clsx(classes.root, className),
|
||||
ownerState: ownerState,
|
||||
ref: ref,
|
||||
...other
|
||||
});
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? CardContent.propTypes /* remove-proptypes */ = {
|
||||
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
||||
// │ These PropTypes are generated from the TypeScript type definitions. │
|
||||
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
||||
// └─────────────────────────────────────────────────────────────────────┘
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: PropTypes.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: PropTypes.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.string,
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: PropTypes.elementType,
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
||||
} : void 0;
|
||||
export default CardContent;
|
||||
8
node_modules/@mui/material/CardContent/cardContentClasses.d.ts
generated
vendored
Normal file
8
node_modules/@mui/material/CardContent/cardContentClasses.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
export interface CardContentClasses {
|
||||
/** Styles applied to the root element. */
|
||||
root: string;
|
||||
}
|
||||
export type CardContentClassKey = keyof CardContentClasses;
|
||||
export declare function getCardContentUtilityClass(slot: string): string;
|
||||
declare const cardContentClasses: CardContentClasses;
|
||||
export default cardContentClasses;
|
||||
7
node_modules/@mui/material/CardContent/cardContentClasses.js
generated
vendored
Normal file
7
node_modules/@mui/material/CardContent/cardContentClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getCardContentUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiCardContent', slot);
|
||||
}
|
||||
const cardContentClasses = generateUtilityClasses('MuiCardContent', ['root']);
|
||||
export default cardContentClasses;
|
||||
5
node_modules/@mui/material/CardContent/index.d.ts
generated
vendored
Normal file
5
node_modules/@mui/material/CardContent/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export { default } from './CardContent';
|
||||
export * from './CardContent';
|
||||
|
||||
export { default as cardContentClasses } from './cardContentClasses';
|
||||
export * from './cardContentClasses';
|
||||
3
node_modules/@mui/material/CardContent/index.js
generated
vendored
Normal file
3
node_modules/@mui/material/CardContent/index.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export { default } from "./CardContent.js";
|
||||
export { default as cardContentClasses } from "./cardContentClasses.js";
|
||||
export * from "./cardContentClasses.js";
|
||||
6
node_modules/@mui/material/CardContent/package.json
generated
vendored
Normal file
6
node_modules/@mui/material/CardContent/package.json
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sideEffects": false,
|
||||
"module": "./index.js",
|
||||
"main": "../node/CardContent/index.js",
|
||||
"types": "./index.d.ts"
|
||||
}
|
||||
Reference in New Issue
Block a user