1 | import * as React from 'react';
|
2 | import PropTypes from 'prop-types';
|
3 | import clsx from 'clsx';
|
4 |
|
5 | import Stack from '@mui/material-pigment-css/Stack';
|
6 | import composeClasses from '@mui/utils/composeClasses';
|
7 | import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
8 | import { jsx as _jsx } from "react/jsx-runtime";
|
9 | const useUtilityClasses = () => {
|
10 | const slots = {
|
11 | root: ['root']
|
12 | };
|
13 | return composeClasses(slots, slot => generateUtilityClass('MuiStack', slot), {});
|
14 | };
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | const PigmentStack = React.forwardRef(function PigmentStack({
|
26 | className,
|
27 | ...props
|
28 | }, ref) {
|
29 | const classes = useUtilityClasses();
|
30 | return _jsx(Stack, {
|
31 | ref: ref,
|
32 | className: clsx(classes.root, className),
|
33 | ...props
|
34 | });
|
35 | });
|
36 | process.env.NODE_ENV !== "production" ? PigmentStack.propTypes = {
|
37 |
|
38 |
|
39 |
|
40 |
|
41 | |
42 |
|
43 |
|
44 | children: PropTypes.node,
|
45 | |
46 |
|
47 |
|
48 | className: PropTypes.string,
|
49 | |
50 |
|
51 |
|
52 |
|
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 |
|
63 |
|
64 | divider: PropTypes.node,
|
65 | |
66 |
|
67 |
|
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 |
|
78 |
|
79 | sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
80 | } : void 0;
|
81 | export default PigmentStack; |
\ | No newline at end of file |