UNPKG

3.42 kBJavaScriptView Raw
1import * as React from 'react';
2import PropTypes from 'prop-types';
3import clsx from 'clsx';
4// @ts-ignore
5import Stack from '@mui/material-pigment-css/Stack';
6import composeClasses from '@mui/utils/composeClasses';
7import generateUtilityClass from '@mui/utils/generateUtilityClass';
8import { jsx as _jsx } from "react/jsx-runtime";
9const useUtilityClasses = () => {
10 const slots = {
11 root: ['root']
12 };
13 return composeClasses(slots, slot => generateUtilityClass('MuiStack', slot), {});
14};
15/**
16 *
17 * Demos:
18 *
19 * - [Stack](https://mui.com/material-ui/react-stack/)
20 *
21 * API:
22 *
23 * - [PigmentStack API](https://mui.com/material-ui/api/pigment-stack/)
24 */
25const PigmentStack = /*#__PURE__*/React.forwardRef(function PigmentStack({
26 className,
27 ...props
28}, ref) {
29 const classes = useUtilityClasses();
30 return /*#__PURE__*/_jsx(Stack, {
31 ref: ref,
32 className: clsx(classes.root, className),
33 ...props
34 });
35});
36process.env.NODE_ENV !== "production" ? PigmentStack.propTypes /* remove-proptypes */ = {
37 // ┌────────────────────────────── Warning ──────────────────────────────┐
38 // │ These PropTypes are generated from the TypeScript type definitions. │
39 // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
40 // └─────────────────────────────────────────────────────────────────────┘
41 /**
42 * The content of the component.
43 */
44 children: PropTypes.node,
45 /**
46 * @ignore
47 */
48 className: PropTypes.string,
49 /**
50 * Defines the `flex-direction` style property.
51 * It is applied for all screen sizes.
52 * @default 'column'
53 */
54 direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.shape({
55 lg: PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']),
56 md: PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']),
57 sm: PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']),
58 xl: PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']),
59 xs: PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])
60 })]),
61 /**
62 * Add an element between each child.
63 */
64 divider: PropTypes.node,
65 /**
66 * Defines the space between immediate children.
67 * @default 0
68 */
69 spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.shape({
70 lg: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
71 md: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
72 sm: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
73 xl: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
74 xs: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
75 }), PropTypes.string]),
76 /**
77 * The system prop, which allows defining system overrides as well as additional CSS styles.
78 */
79 sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
80} : void 0;
81export default PigmentStack;
\No newline at end of file