Blame view

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