paradiego
This commit is contained in:
36
node_modules/@mui/material/DialogActions/DialogActions.d.ts
generated
vendored
Normal file
36
node_modules/@mui/material/DialogActions/DialogActions.d.ts
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
import * as React from 'react';
|
||||
import { SxProps } from '@mui/system';
|
||||
import { InternalStandardProps as StandardProps, Theme } from '..';
|
||||
import { DialogActionsClasses } from './dialogActionsClasses';
|
||||
|
||||
export interface DialogActionsProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>> {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes?: Partial<DialogActionsClasses>;
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx?: SxProps<Theme>;
|
||||
/**
|
||||
* If `true`, the actions do not have additional margin.
|
||||
* @default false
|
||||
*/
|
||||
disableSpacing?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Dialog](https://mui.com/material-ui/react-dialog/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [DialogActions API](https://mui.com/material-ui/api/dialog-actions/)
|
||||
*/
|
||||
export default function DialogActions(props: DialogActionsProps): React.JSX.Element;
|
||||
96
node_modules/@mui/material/DialogActions/DialogActions.js
generated
vendored
Normal file
96
node_modules/@mui/material/DialogActions/DialogActions.js
generated
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
'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 { getDialogActionsUtilityClass } from "./dialogActionsClasses.js";
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes,
|
||||
disableSpacing
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', !disableSpacing && 'spacing']
|
||||
};
|
||||
return composeClasses(slots, getDialogActionsUtilityClass, classes);
|
||||
};
|
||||
const DialogActionsRoot = styled('div', {
|
||||
name: 'MuiDialogActions',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, !ownerState.disableSpacing && styles.spacing];
|
||||
}
|
||||
})({
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
padding: 8,
|
||||
justifyContent: 'flex-end',
|
||||
flex: '0 0 auto',
|
||||
variants: [{
|
||||
props: ({
|
||||
ownerState
|
||||
}) => !ownerState.disableSpacing,
|
||||
style: {
|
||||
'& > :not(style) ~ :not(style)': {
|
||||
marginLeft: 8
|
||||
}
|
||||
}
|
||||
}]
|
||||
});
|
||||
const DialogActions = /*#__PURE__*/React.forwardRef(function DialogActions(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiDialogActions'
|
||||
});
|
||||
const {
|
||||
className,
|
||||
disableSpacing = false,
|
||||
...other
|
||||
} = props;
|
||||
const ownerState = {
|
||||
...props,
|
||||
disableSpacing
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/_jsx(DialogActionsRoot, {
|
||||
className: clsx(classes.root, className),
|
||||
ownerState: ownerState,
|
||||
ref: ref,
|
||||
...other
|
||||
});
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? DialogActions.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,
|
||||
/**
|
||||
* If `true`, the actions do not have additional margin.
|
||||
* @default false
|
||||
*/
|
||||
disableSpacing: PropTypes.bool,
|
||||
/**
|
||||
* 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 DialogActions;
|
||||
10
node_modules/@mui/material/DialogActions/dialogActionsClasses.d.ts
generated
vendored
Normal file
10
node_modules/@mui/material/DialogActions/dialogActionsClasses.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
export interface DialogActionsClasses {
|
||||
/** Styles applied to the root element. */
|
||||
root: string;
|
||||
/** Styles applied to the root element unless `disableSpacing={true}`. */
|
||||
spacing: string;
|
||||
}
|
||||
export type DialogActionsClassKey = keyof DialogActionsClasses;
|
||||
export declare function getDialogActionsUtilityClass(slot: string): string;
|
||||
declare const dialogActionsClasses: DialogActionsClasses;
|
||||
export default dialogActionsClasses;
|
||||
7
node_modules/@mui/material/DialogActions/dialogActionsClasses.js
generated
vendored
Normal file
7
node_modules/@mui/material/DialogActions/dialogActionsClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getDialogActionsUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiDialogActions', slot);
|
||||
}
|
||||
const dialogActionsClasses = generateUtilityClasses('MuiDialogActions', ['root', 'spacing']);
|
||||
export default dialogActionsClasses;
|
||||
5
node_modules/@mui/material/DialogActions/index.d.ts
generated
vendored
Normal file
5
node_modules/@mui/material/DialogActions/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export { default } from './DialogActions';
|
||||
export * from './DialogActions';
|
||||
|
||||
export { default as dialogActionsClasses } from './dialogActionsClasses';
|
||||
export * from './dialogActionsClasses';
|
||||
3
node_modules/@mui/material/DialogActions/index.js
generated
vendored
Normal file
3
node_modules/@mui/material/DialogActions/index.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export { default } from "./DialogActions.js";
|
||||
export { default as dialogActionsClasses } from "./dialogActionsClasses.js";
|
||||
export * from "./dialogActionsClasses.js";
|
||||
6
node_modules/@mui/material/DialogActions/package.json
generated
vendored
Normal file
6
node_modules/@mui/material/DialogActions/package.json
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sideEffects": false,
|
||||
"module": "./index.js",
|
||||
"main": "../node/DialogActions/index.js",
|
||||
"types": "./index.d.ts"
|
||||
}
|
||||
Reference in New Issue
Block a user