paradiego
This commit is contained in:
68
node_modules/@mui/material/Stack/Stack.d.ts
generated
vendored
Normal file
68
node_modules/@mui/material/Stack/Stack.d.ts
generated
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
import * as React from 'react';
|
||||
import { ResponsiveStyleValue, SxProps, SystemProps } from '@mui/system';
|
||||
import { OverrideProps, OverridableComponent } from '../OverridableComponent';
|
||||
import { Theme } from '../styles/createTheme';
|
||||
|
||||
export interface StackOwnProps extends SystemProps<Theme> {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* Defines the `flex-direction` style property.
|
||||
* It is applied for all screen sizes.
|
||||
* @default 'column'
|
||||
*/
|
||||
direction?: ResponsiveStyleValue<'row' | 'row-reverse' | 'column' | 'column-reverse'>;
|
||||
/**
|
||||
* Defines the space between immediate children.
|
||||
* @default 0
|
||||
*/
|
||||
spacing?: ResponsiveStyleValue<number | string>;
|
||||
/**
|
||||
* Add an element between each child.
|
||||
*/
|
||||
divider?: React.ReactNode;
|
||||
/**
|
||||
* If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
|
||||
*
|
||||
* While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
|
||||
* it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
|
||||
*
|
||||
* To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
|
||||
* @default false
|
||||
*/
|
||||
useFlexGap?: boolean;
|
||||
/**
|
||||
* The system prop, which allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx?: SxProps<Theme>;
|
||||
}
|
||||
|
||||
export interface StackTypeMap<
|
||||
AdditionalProps = {},
|
||||
RootComponent extends React.ElementType = 'div',
|
||||
> {
|
||||
props: AdditionalProps & StackOwnProps;
|
||||
defaultComponent: RootComponent;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Stack](https://mui.com/material-ui/react-stack/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [Stack API](https://mui.com/material-ui/api/stack/)
|
||||
*/
|
||||
declare const Stack: OverridableComponent<StackTypeMap>;
|
||||
|
||||
export type StackProps<
|
||||
RootComponent extends React.ElementType = StackTypeMap['defaultComponent'],
|
||||
AdditionalProps = {},
|
||||
> = OverrideProps<StackTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
||||
component?: React.ElementType;
|
||||
};
|
||||
|
||||
export default Stack;
|
||||
62
node_modules/@mui/material/Stack/Stack.js
generated
vendored
Normal file
62
node_modules/@mui/material/Stack/Stack.js
generated
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
'use client';
|
||||
|
||||
import PropTypes from 'prop-types';
|
||||
import { createStack } from '@mui/system';
|
||||
import styled from "../styles/styled.js";
|
||||
import useThemeProps from "../styles/useThemeProps.js";
|
||||
const Stack = createStack({
|
||||
createStyledComponent: styled('div', {
|
||||
name: 'MuiStack',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => styles.root
|
||||
}),
|
||||
useThemeProps: inProps => useThemeProps({
|
||||
props: inProps,
|
||||
name: 'MuiStack'
|
||||
})
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Stack.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,
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: PropTypes.elementType,
|
||||
/**
|
||||
* 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.object]),
|
||||
/**
|
||||
* 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.object, 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]),
|
||||
/**
|
||||
* If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
|
||||
*
|
||||
* While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
|
||||
* it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
|
||||
*
|
||||
* To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
|
||||
* @default false
|
||||
*/
|
||||
useFlexGap: PropTypes.bool
|
||||
} : void 0;
|
||||
export default Stack;
|
||||
5
node_modules/@mui/material/Stack/index.d.ts
generated
vendored
Normal file
5
node_modules/@mui/material/Stack/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export { default } from './Stack';
|
||||
export * from './Stack';
|
||||
|
||||
export { default as stackClasses } from './stackClasses';
|
||||
export * from './stackClasses';
|
||||
2
node_modules/@mui/material/Stack/index.js
generated
vendored
Normal file
2
node_modules/@mui/material/Stack/index.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export { default } from "./Stack.js";
|
||||
export { default as stackClasses } from "./stackClasses.js";
|
||||
6
node_modules/@mui/material/Stack/package.json
generated
vendored
Normal file
6
node_modules/@mui/material/Stack/package.json
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sideEffects": false,
|
||||
"module": "./index.js",
|
||||
"main": "../node/Stack/index.js",
|
||||
"types": "./index.d.ts"
|
||||
}
|
||||
6
node_modules/@mui/material/Stack/stackClasses.d.ts
generated
vendored
Normal file
6
node_modules/@mui/material/Stack/stackClasses.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import { StackClasses } from '@mui/system';
|
||||
export type { StackClassKey } from '@mui/system';
|
||||
export type { StackClasses };
|
||||
export declare function getStackUtilityClass(slot: string): string;
|
||||
declare const stackClasses: StackClasses;
|
||||
export default stackClasses;
|
||||
7
node_modules/@mui/material/Stack/stackClasses.js
generated
vendored
Normal file
7
node_modules/@mui/material/Stack/stackClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getStackUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiStack', slot);
|
||||
}
|
||||
const stackClasses = generateUtilityClasses('MuiStack', ['root']);
|
||||
export default stackClasses;
|
||||
Reference in New Issue
Block a user