Jesus sucks
This commit is contained in:
13
backend/frontend/node_modules/@mui/system/Unstable_Grid/Grid.d.ts
generated
vendored
Normal file
13
backend/frontend/node_modules/@mui/system/Unstable_Grid/Grid.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Grid (Joy UI)](https://mui.com/joy-ui/react-grid/)
|
||||
* - [Grid (Material UI)](https://mui.com/material-ui/react-grid/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [Grid API](https://mui.com/system/api/grid/)
|
||||
*/
|
||||
declare const Grid: import("@mui/types").OverridableComponent<import("./GridProps").GridTypeMap<{}, "div">>;
|
||||
export default Grid;
|
||||
183
backend/frontend/node_modules/@mui/system/Unstable_Grid/Grid.js
generated
vendored
Normal file
183
backend/frontend/node_modules/@mui/system/Unstable_Grid/Grid.js
generated
vendored
Normal file
@@ -0,0 +1,183 @@
|
||||
"use strict";
|
||||
'use client';
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
var _createGrid = _interopRequireDefault(require("./createGrid"));
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Grid (Joy UI)](https://mui.com/joy-ui/react-grid/)
|
||||
* - [Grid (Material UI)](https://mui.com/material-ui/react-grid/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [Grid API](https://mui.com/system/api/grid/)
|
||||
*/
|
||||
const Grid = (0, _createGrid.default)();
|
||||
process.env.NODE_ENV !== "production" ? Grid.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.default.node,
|
||||
/**
|
||||
* The number of columns.
|
||||
* @default 12
|
||||
*/
|
||||
columns: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.arrayOf(_propTypes.default.number), _propTypes.default.number, _propTypes.default.object]),
|
||||
/**
|
||||
* Defines the horizontal space between the type `item` components.
|
||||
* It overrides the value of the `spacing` prop.
|
||||
*/
|
||||
columnSpacing: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.string]),
|
||||
/**
|
||||
* If `true`, the component will have the flex *container* behavior.
|
||||
* You should be wrapping *items* with a *container*.
|
||||
* @default false
|
||||
*/
|
||||
container: _propTypes.default.bool,
|
||||
/**
|
||||
* Defines the `flex-direction` style property.
|
||||
* It is applied for all screen sizes.
|
||||
* @default 'row'
|
||||
*/
|
||||
direction: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), _propTypes.default.arrayOf(_propTypes.default.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), _propTypes.default.object]),
|
||||
/**
|
||||
* If `true`, the negative margin and padding are apply only to the top and left sides of the grid.
|
||||
*/
|
||||
disableEqualOverflow: _propTypes.default.bool,
|
||||
/**
|
||||
* If a number, it sets the number of columns the grid item uses.
|
||||
* It can't be greater than the total number of columns of the container (12 by default).
|
||||
* If 'auto', the grid item's width matches its content.
|
||||
* If false, the prop is ignored.
|
||||
* If true, the grid item's width grows to use the space available in the grid container.
|
||||
* The value is applied for the `lg` breakpoint and wider screens if not overridden.
|
||||
* @default false
|
||||
*/
|
||||
lg: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number, _propTypes.default.bool]),
|
||||
/**
|
||||
* If a number, it sets the margin-left equals to the number of columns the grid item uses.
|
||||
* If 'auto', the grid item push itself to the right-end of the container.
|
||||
* The value is applied for the `lg` breakpoint and wider screens if not overridden.
|
||||
*/
|
||||
lgOffset: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number]),
|
||||
/**
|
||||
* If a number, it sets the number of columns the grid item uses.
|
||||
* It can't be greater than the total number of columns of the container (12 by default).
|
||||
* If 'auto', the grid item's width matches its content.
|
||||
* If false, the prop is ignored.
|
||||
* If true, the grid item's width grows to use the space available in the grid container.
|
||||
* The value is applied for the `md` breakpoint and wider screens if not overridden.
|
||||
* @default false
|
||||
*/
|
||||
md: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number, _propTypes.default.bool]),
|
||||
/**
|
||||
* If a number, it sets the margin-left equals to the number of columns the grid item uses.
|
||||
* If 'auto', the grid item push itself to the right-end of the container.
|
||||
* The value is applied for the `md` breakpoint and wider screens if not overridden.
|
||||
*/
|
||||
mdOffset: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number]),
|
||||
/**
|
||||
* Defines the vertical space between the type `item` components.
|
||||
* It overrides the value of the `spacing` prop.
|
||||
*/
|
||||
rowSpacing: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.string]),
|
||||
/**
|
||||
* If a number, it sets the number of columns the grid item uses.
|
||||
* It can't be greater than the total number of columns of the container (12 by default).
|
||||
* If 'auto', the grid item's width matches its content.
|
||||
* If false, the prop is ignored.
|
||||
* If true, the grid item's width grows to use the space available in the grid container.
|
||||
* The value is applied for the `sm` breakpoint and wider screens if not overridden.
|
||||
* @default false
|
||||
*/
|
||||
sm: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number, _propTypes.default.bool]),
|
||||
/**
|
||||
* If a number, it sets the margin-left equals to the number of columns the grid item uses.
|
||||
* If 'auto', the grid item push itself to the right-end of the container.
|
||||
* The value is applied for the `sm` breakpoint and wider screens if not overridden.
|
||||
*/
|
||||
smOffset: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number]),
|
||||
/**
|
||||
* Defines the space between the type `item` components.
|
||||
* It can only be used on a type `container` component.
|
||||
* @default 0
|
||||
*/
|
||||
spacing: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.string]),
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
||||
/**
|
||||
* @internal
|
||||
* The level of the grid starts from `0`
|
||||
* and increases when the grid nests inside another grid regardless of container or item.
|
||||
*
|
||||
* ```js
|
||||
* <Grid> // level 0
|
||||
* <Grid> // level 1
|
||||
* <Grid> // level 2
|
||||
* <Grid> // level 1
|
||||
* ```
|
||||
*
|
||||
* Only consecutive grid is considered nesting.
|
||||
* A grid container will start at `0` if there are non-Grid element above it.
|
||||
*
|
||||
* ```js
|
||||
* <Grid> // level 0
|
||||
* <div>
|
||||
* <Grid> // level 0
|
||||
* <Grid> // level 1
|
||||
* ```
|
||||
*/
|
||||
unstable_level: _propTypes.default.number,
|
||||
/**
|
||||
* Defines the `flex-wrap` style property.
|
||||
* It's applied for all screen sizes.
|
||||
* @default 'wrap'
|
||||
*/
|
||||
wrap: _propTypes.default.oneOf(['nowrap', 'wrap-reverse', 'wrap']),
|
||||
/**
|
||||
* If a number, it sets the number of columns the grid item uses.
|
||||
* It can't be greater than the total number of columns of the container (12 by default).
|
||||
* If 'auto', the grid item's width matches its content.
|
||||
* If false, the prop is ignored.
|
||||
* If true, the grid item's width grows to use the space available in the grid container.
|
||||
* The value is applied for the `xl` breakpoint and wider screens if not overridden.
|
||||
* @default false
|
||||
*/
|
||||
xl: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number, _propTypes.default.bool]),
|
||||
/**
|
||||
* If a number, it sets the margin-left equals to the number of columns the grid item uses.
|
||||
* If 'auto', the grid item push itself to the right-end of the container.
|
||||
* The value is applied for the `xl` breakpoint and wider screens if not overridden.
|
||||
*/
|
||||
xlOffset: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number]),
|
||||
/**
|
||||
* If a number, it sets the number of columns the grid item uses.
|
||||
* It can't be greater than the total number of columns of the container (12 by default).
|
||||
* If 'auto', the grid item's width matches its content.
|
||||
* If false, the prop is ignored.
|
||||
* If true, the grid item's width grows to use the space available in the grid container.
|
||||
* The value is applied for all the screen sizes with the lowest priority.
|
||||
* @default false
|
||||
*/
|
||||
xs: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number, _propTypes.default.bool]),
|
||||
/**
|
||||
* If a number, it sets the margin-left equals to the number of columns the grid item uses.
|
||||
* If 'auto', the grid item push itself to the right-end of the container.
|
||||
* The value is applied for the `xs` breakpoint and wider screens if not overridden.
|
||||
*/
|
||||
xsOffset: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number])
|
||||
} : void 0;
|
||||
var _default = exports.default = Grid;
|
||||
185
backend/frontend/node_modules/@mui/system/Unstable_Grid/GridProps.d.ts
generated
vendored
Normal file
185
backend/frontend/node_modules/@mui/system/Unstable_Grid/GridProps.d.ts
generated
vendored
Normal file
@@ -0,0 +1,185 @@
|
||||
import * as React from 'react';
|
||||
import { OverrideProps, IfEquals } from '@mui/types';
|
||||
import { SxProps } from '../styleFunctionSx';
|
||||
import { Theme, Breakpoint, BreakpointOverrides } from '../createTheme';
|
||||
import { SystemProps } from '../Box';
|
||||
type ResponsiveStyleValue<T> = T | Array<T | null> | {
|
||||
[key in Breakpoint]?: T | null;
|
||||
};
|
||||
export type GridDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
||||
export type GridSpacing = number | string;
|
||||
export type GridWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
||||
export type GridSize = 'auto' | number;
|
||||
export interface GridDefaultBreakpoints {
|
||||
/**
|
||||
* If a number, it sets the number of columns the grid item uses.
|
||||
* It can't be greater than the total number of columns of the container (12 by default).
|
||||
* If 'auto', the grid item's width matches its content.
|
||||
* If false, the prop is ignored.
|
||||
* If true, the grid item's width grows to use the space available in the grid container.
|
||||
* The value is applied for the `lg` breakpoint and wider screens if not overridden.
|
||||
* @default false
|
||||
*/
|
||||
lg?: boolean | GridSize;
|
||||
/**
|
||||
* If a number, it sets the margin-left equals to the number of columns the grid item uses.
|
||||
* If 'auto', the grid item push itself to the right-end of the container.
|
||||
* The value is applied for the `lg` breakpoint and wider screens if not overridden.
|
||||
*/
|
||||
lgOffset?: GridSize;
|
||||
/**
|
||||
* If a number, it sets the number of columns the grid item uses.
|
||||
* It can't be greater than the total number of columns of the container (12 by default).
|
||||
* If 'auto', the grid item's width matches its content.
|
||||
* If false, the prop is ignored.
|
||||
* If true, the grid item's width grows to use the space available in the grid container.
|
||||
* The value is applied for the `md` breakpoint and wider screens if not overridden.
|
||||
* @default false
|
||||
*/
|
||||
md?: boolean | GridSize;
|
||||
/**
|
||||
* If a number, it sets the margin-left equals to the number of columns the grid item uses.
|
||||
* If 'auto', the grid item push itself to the right-end of the container.
|
||||
* The value is applied for the `md` breakpoint and wider screens if not overridden.
|
||||
*/
|
||||
mdOffset?: GridSize;
|
||||
/**
|
||||
* If a number, it sets the number of columns the grid item uses.
|
||||
* It can't be greater than the total number of columns of the container (12 by default).
|
||||
* If 'auto', the grid item's width matches its content.
|
||||
* If false, the prop is ignored.
|
||||
* If true, the grid item's width grows to use the space available in the grid container.
|
||||
* The value is applied for the `sm` breakpoint and wider screens if not overridden.
|
||||
* @default false
|
||||
*/
|
||||
sm?: boolean | GridSize;
|
||||
/**
|
||||
* If a number, it sets the margin-left equals to the number of columns the grid item uses.
|
||||
* If 'auto', the grid item push itself to the right-end of the container.
|
||||
* The value is applied for the `sm` breakpoint and wider screens if not overridden.
|
||||
*/
|
||||
smOffset?: GridSize;
|
||||
/**
|
||||
* If a number, it sets the number of columns the grid item uses.
|
||||
* It can't be greater than the total number of columns of the container (12 by default).
|
||||
* If 'auto', the grid item's width matches its content.
|
||||
* If false, the prop is ignored.
|
||||
* If true, the grid item's width grows to use the space available in the grid container.
|
||||
* The value is applied for the `xl` breakpoint and wider screens if not overridden.
|
||||
* @default false
|
||||
*/
|
||||
xl?: boolean | GridSize;
|
||||
/**
|
||||
* If a number, it sets the margin-left equals to the number of columns the grid item uses.
|
||||
* If 'auto', the grid item push itself to the right-end of the container.
|
||||
* The value is applied for the `xl` breakpoint and wider screens if not overridden.
|
||||
*/
|
||||
xlOffset?: GridSize;
|
||||
/**
|
||||
* If a number, it sets the number of columns the grid item uses.
|
||||
* It can't be greater than the total number of columns of the container (12 by default).
|
||||
* If 'auto', the grid item's width matches its content.
|
||||
* If false, the prop is ignored.
|
||||
* If true, the grid item's width grows to use the space available in the grid container.
|
||||
* The value is applied for all the screen sizes with the lowest priority.
|
||||
* @default false
|
||||
*/
|
||||
xs?: boolean | GridSize;
|
||||
/**
|
||||
* If a number, it sets the margin-left equals to the number of columns the grid item uses.
|
||||
* If 'auto', the grid item push itself to the right-end of the container.
|
||||
* The value is applied for the `xs` breakpoint and wider screens if not overridden.
|
||||
*/
|
||||
xsOffset?: GridSize;
|
||||
}
|
||||
type CustomBreakpoints = Partial<Record<Breakpoint, boolean | GridSize> & Record<`${Breakpoint}Offset`, GridSize>>;
|
||||
interface BreakpointOverridesEmpty {
|
||||
}
|
||||
type Breakpoints = IfEquals<BreakpointOverrides, BreakpointOverridesEmpty, GridDefaultBreakpoints, CustomBreakpoints>;
|
||||
export interface GridBaseProps extends Breakpoints {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* The number of columns.
|
||||
* @default 12
|
||||
*/
|
||||
columns?: ResponsiveStyleValue<number>;
|
||||
/**
|
||||
* Defines the horizontal space between the type `item` components.
|
||||
* It overrides the value of the `spacing` prop.
|
||||
*/
|
||||
columnSpacing?: ResponsiveStyleValue<GridSpacing>;
|
||||
/**
|
||||
* If `true`, the component will have the flex *container* behavior.
|
||||
* You should be wrapping *items* with a *container*.
|
||||
* @default false
|
||||
*/
|
||||
container?: boolean;
|
||||
/**
|
||||
* Defines the `flex-direction` style property.
|
||||
* It is applied for all screen sizes.
|
||||
* @default 'row'
|
||||
*/
|
||||
direction?: ResponsiveStyleValue<GridDirection>;
|
||||
/**
|
||||
* If `true`, the negative margin and padding are apply only to the top and left sides of the grid.
|
||||
*/
|
||||
disableEqualOverflow?: boolean;
|
||||
/**
|
||||
* @internal
|
||||
* The level of the grid starts from `0`
|
||||
* and increases when the grid nests inside another grid regardless of container or item.
|
||||
*
|
||||
* ```js
|
||||
* <Grid> // level 0
|
||||
* <Grid> // level 1
|
||||
* <Grid> // level 2
|
||||
* <Grid> // level 1
|
||||
* ```
|
||||
*
|
||||
* Only consecutive grid is considered nesting.
|
||||
* A grid container will start at `0` if there are non-Grid element above it.
|
||||
*
|
||||
* ```js
|
||||
* <Grid> // level 0
|
||||
* <div>
|
||||
* <Grid> // level 0
|
||||
* <Grid> // level 1
|
||||
* ```
|
||||
*/
|
||||
unstable_level?: number;
|
||||
/**
|
||||
* Defines the vertical space between the type `item` components.
|
||||
* It overrides the value of the `spacing` prop.
|
||||
*/
|
||||
rowSpacing?: ResponsiveStyleValue<GridSpacing>;
|
||||
/**
|
||||
* Defines the space between the type `item` components.
|
||||
* It can only be used on a type `container` component.
|
||||
* @default 0
|
||||
*/
|
||||
spacing?: ResponsiveStyleValue<GridSpacing> | undefined;
|
||||
/**
|
||||
* Defines the `flex-wrap` style property.
|
||||
* It's applied for all screen sizes.
|
||||
* @default 'wrap'
|
||||
*/
|
||||
wrap?: GridWrap;
|
||||
}
|
||||
export interface GridOwnerState extends GridBaseProps {
|
||||
unstable_level: number;
|
||||
gridSize: Partial<Record<Breakpoint, GridSize | boolean>>;
|
||||
gridOffset: Partial<Record<Breakpoint, GridSize>>;
|
||||
}
|
||||
export interface GridTypeMap<AdditionalProps = {}, DefaultComponent extends React.ElementType = 'div'> {
|
||||
props: AdditionalProps & GridBaseProps & {
|
||||
sx?: SxProps<Theme>;
|
||||
} & SystemProps<Theme>;
|
||||
defaultComponent: DefaultComponent;
|
||||
}
|
||||
export type GridProps<RootComponent extends React.ElementType = GridTypeMap['defaultComponent'], AdditionalProps = {
|
||||
component?: React.ElementType;
|
||||
}> = OverrideProps<GridTypeMap<AdditionalProps, RootComponent>, RootComponent>;
|
||||
export {};
|
||||
5
backend/frontend/node_modules/@mui/system/Unstable_Grid/GridProps.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/system/Unstable_Grid/GridProps.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
11
backend/frontend/node_modules/@mui/system/Unstable_Grid/createGrid.d.ts
generated
vendored
Normal file
11
backend/frontend/node_modules/@mui/system/Unstable_Grid/createGrid.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import * as React from 'react';
|
||||
import { OverridableComponent } from '@mui/types';
|
||||
import { GridTypeMap } from './GridProps';
|
||||
declare const defaultCreateStyledComponent: import("@mui/styled-engine").CreateStyledComponent<import("../createStyled").MUIStyledCommonProps<any>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}, any>;
|
||||
declare function useThemePropsDefault<T extends {}>(props: T): T & {};
|
||||
export default function createGrid(options?: {
|
||||
createStyledComponent?: typeof defaultCreateStyledComponent;
|
||||
useThemeProps?: typeof useThemePropsDefault;
|
||||
componentName?: string;
|
||||
}): OverridableComponent<GridTypeMap<{}, "div">>;
|
||||
export {};
|
||||
180
backend/frontend/node_modules/@mui/system/Unstable_Grid/createGrid.js
generated
vendored
Normal file
180
backend/frontend/node_modules/@mui/system/Unstable_Grid/createGrid.js
generated
vendored
Normal file
@@ -0,0 +1,180 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = createGrid;
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
var _isMuiElement = _interopRequireDefault(require("@mui/utils/isMuiElement"));
|
||||
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
||||
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
||||
var _styled = _interopRequireDefault(require("../styled"));
|
||||
var _useThemeProps = _interopRequireDefault(require("../useThemeProps"));
|
||||
var _useTheme = _interopRequireDefault(require("../useTheme"));
|
||||
var _styleFunctionSx = require("../styleFunctionSx");
|
||||
var _createTheme = _interopRequireDefault(require("../createTheme"));
|
||||
var _gridGenerator = require("./gridGenerator");
|
||||
var _jsxRuntime = require("react/jsx-runtime");
|
||||
const _excluded = ["className", "children", "columns", "container", "component", "direction", "wrap", "spacing", "rowSpacing", "columnSpacing", "disableEqualOverflow", "unstable_level"];
|
||||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
||||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
||||
const defaultTheme = (0, _createTheme.default)();
|
||||
|
||||
// widening Theme to any so that the consumer can own the theme structure.
|
||||
const defaultCreateStyledComponent = (0, _styled.default)('div', {
|
||||
name: 'MuiGrid',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => styles.root
|
||||
});
|
||||
function useThemePropsDefault(props) {
|
||||
return (0, _useThemeProps.default)({
|
||||
props,
|
||||
name: 'MuiGrid',
|
||||
defaultTheme
|
||||
});
|
||||
}
|
||||
function createGrid(options = {}) {
|
||||
const {
|
||||
// This will allow adding custom styled fn (for example for custom sx style function)
|
||||
createStyledComponent = defaultCreateStyledComponent,
|
||||
useThemeProps = useThemePropsDefault,
|
||||
componentName = 'MuiGrid'
|
||||
} = options;
|
||||
const GridOverflowContext = /*#__PURE__*/React.createContext(undefined);
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
GridOverflowContext.displayName = 'GridOverflowContext';
|
||||
}
|
||||
const useUtilityClasses = (ownerState, theme) => {
|
||||
const {
|
||||
container,
|
||||
direction,
|
||||
spacing,
|
||||
wrap,
|
||||
gridSize
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', container && 'container', wrap !== 'wrap' && `wrap-xs-${String(wrap)}`, ...(0, _gridGenerator.generateDirectionClasses)(direction), ...(0, _gridGenerator.generateSizeClassNames)(gridSize), ...(container ? (0, _gridGenerator.generateSpacingClassNames)(spacing, theme.breakpoints.keys[0]) : [])]
|
||||
};
|
||||
return (0, _composeClasses.default)(slots, slot => (0, _generateUtilityClass.default)(componentName, slot), {});
|
||||
};
|
||||
const GridRoot = createStyledComponent(_gridGenerator.generateGridColumnsStyles, _gridGenerator.generateGridColumnSpacingStyles, _gridGenerator.generateGridRowSpacingStyles, _gridGenerator.generateGridSizeStyles, _gridGenerator.generateGridDirectionStyles, _gridGenerator.generateGridStyles, _gridGenerator.generateGridOffsetStyles);
|
||||
const Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {
|
||||
var _inProps$columns, _inProps$spacing, _ref, _inProps$rowSpacing, _ref2, _inProps$columnSpacin, _ref3, _disableEqualOverflow;
|
||||
const theme = (0, _useTheme.default)();
|
||||
const themeProps = useThemeProps(inProps);
|
||||
const props = (0, _styleFunctionSx.extendSxProp)(themeProps); // `color` type conflicts with html color attribute.
|
||||
const overflow = React.useContext(GridOverflowContext);
|
||||
const {
|
||||
className,
|
||||
children,
|
||||
columns: columnsProp = 12,
|
||||
container = false,
|
||||
component = 'div',
|
||||
direction = 'row',
|
||||
wrap = 'wrap',
|
||||
spacing: spacingProp = 0,
|
||||
rowSpacing: rowSpacingProp = spacingProp,
|
||||
columnSpacing: columnSpacingProp = spacingProp,
|
||||
disableEqualOverflow: themeDisableEqualOverflow,
|
||||
unstable_level: level = 0
|
||||
} = props,
|
||||
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
||||
// Because `disableEqualOverflow` can be set from the theme's defaultProps, the **nested** grid should look at the instance props instead.
|
||||
let disableEqualOverflow = themeDisableEqualOverflow;
|
||||
if (level && themeDisableEqualOverflow !== undefined) {
|
||||
disableEqualOverflow = inProps.disableEqualOverflow;
|
||||
}
|
||||
// collect breakpoints related props because they can be customized from the theme.
|
||||
const gridSize = {};
|
||||
const gridOffset = {};
|
||||
const other = {};
|
||||
Object.entries(rest).forEach(([key, val]) => {
|
||||
if (theme.breakpoints.values[key] !== undefined) {
|
||||
gridSize[key] = val;
|
||||
} else if (theme.breakpoints.values[key.replace('Offset', '')] !== undefined) {
|
||||
gridOffset[key.replace('Offset', '')] = val;
|
||||
} else {
|
||||
other[key] = val;
|
||||
}
|
||||
});
|
||||
const columns = (_inProps$columns = inProps.columns) != null ? _inProps$columns : level ? undefined : columnsProp;
|
||||
const spacing = (_inProps$spacing = inProps.spacing) != null ? _inProps$spacing : level ? undefined : spacingProp;
|
||||
const rowSpacing = (_ref = (_inProps$rowSpacing = inProps.rowSpacing) != null ? _inProps$rowSpacing : inProps.spacing) != null ? _ref : level ? undefined : rowSpacingProp;
|
||||
const columnSpacing = (_ref2 = (_inProps$columnSpacin = inProps.columnSpacing) != null ? _inProps$columnSpacin : inProps.spacing) != null ? _ref2 : level ? undefined : columnSpacingProp;
|
||||
const ownerState = (0, _extends2.default)({}, props, {
|
||||
level,
|
||||
columns,
|
||||
container,
|
||||
direction,
|
||||
wrap,
|
||||
spacing,
|
||||
rowSpacing,
|
||||
columnSpacing,
|
||||
gridSize,
|
||||
gridOffset,
|
||||
disableEqualOverflow: (_ref3 = (_disableEqualOverflow = disableEqualOverflow) != null ? _disableEqualOverflow : overflow) != null ? _ref3 : false,
|
||||
// use context value if exists.
|
||||
parentDisableEqualOverflow: overflow // for nested grid
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState, theme);
|
||||
let result = /*#__PURE__*/(0, _jsxRuntime.jsx)(GridRoot, (0, _extends2.default)({
|
||||
ref: ref,
|
||||
as: component,
|
||||
ownerState: ownerState,
|
||||
className: (0, _clsx.default)(classes.root, className)
|
||||
}, other, {
|
||||
children: React.Children.map(children, child => {
|
||||
if ( /*#__PURE__*/React.isValidElement(child) && (0, _isMuiElement.default)(child, ['Grid'])) {
|
||||
var _unstable_level, _child$props;
|
||||
return /*#__PURE__*/React.cloneElement(child, {
|
||||
unstable_level: (_unstable_level = (_child$props = child.props) == null ? void 0 : _child$props.unstable_level) != null ? _unstable_level : level + 1
|
||||
});
|
||||
}
|
||||
return child;
|
||||
})
|
||||
}));
|
||||
if (disableEqualOverflow !== undefined && disableEqualOverflow !== (overflow != null ? overflow : false)) {
|
||||
// There are 2 possibilities that should wrap with the GridOverflowContext to communicate with the nested grids:
|
||||
// 1. It is the root grid with `disableEqualOverflow`.
|
||||
// 2. It is a nested grid with different `disableEqualOverflow` from the context.
|
||||
result = /*#__PURE__*/(0, _jsxRuntime.jsx)(GridOverflowContext.Provider, {
|
||||
value: disableEqualOverflow,
|
||||
children: result
|
||||
});
|
||||
}
|
||||
return result;
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Grid.propTypes /* remove-proptypes */ = {
|
||||
children: _propTypes.default.node,
|
||||
className: _propTypes.default.string,
|
||||
columns: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.number), _propTypes.default.number, _propTypes.default.object]),
|
||||
columnSpacing: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.string]),
|
||||
component: _propTypes.default.elementType,
|
||||
container: _propTypes.default.bool,
|
||||
direction: _propTypes.default.oneOfType([_propTypes.default.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), _propTypes.default.arrayOf(_propTypes.default.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), _propTypes.default.object]),
|
||||
disableEqualOverflow: _propTypes.default.bool,
|
||||
lg: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number, _propTypes.default.bool]),
|
||||
lgOffset: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number]),
|
||||
md: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number, _propTypes.default.bool]),
|
||||
mdOffset: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number]),
|
||||
rowSpacing: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.string]),
|
||||
sm: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number, _propTypes.default.bool]),
|
||||
smOffset: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number]),
|
||||
spacing: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.string]),
|
||||
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
||||
wrap: _propTypes.default.oneOf(['nowrap', 'wrap-reverse', 'wrap']),
|
||||
xl: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number, _propTypes.default.bool]),
|
||||
xlOffset: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number]),
|
||||
xs: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number, _propTypes.default.bool]),
|
||||
xsOffset: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number])
|
||||
} : void 0;
|
||||
|
||||
// @ts-ignore internal logic for nested grid
|
||||
Grid.muiName = 'Grid';
|
||||
return Grid;
|
||||
}
|
||||
20
backend/frontend/node_modules/@mui/system/Unstable_Grid/gridClasses.d.ts
generated
vendored
Normal file
20
backend/frontend/node_modules/@mui/system/Unstable_Grid/gridClasses.d.ts
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
export interface GridClasses {
|
||||
/** Styles applied to the root element. */
|
||||
root: string;
|
||||
/** Styles applied to the root element if `container={true}`. */
|
||||
container: string;
|
||||
/** Styles applied to the root element if `direction="column"`. */
|
||||
'direction-xs-column': string;
|
||||
/** Styles applied to the root element if `direction="column-reverse"`. */
|
||||
'direction-xs-column-reverse': string;
|
||||
/** Styles applied to the root element if `direction="row-reverse"`. */
|
||||
'direction-xs-row-reverse': string;
|
||||
/** Styles applied to the root element if `wrap="nowrap"`. */
|
||||
'wrap-xs-nowrap': string;
|
||||
/** Styles applied to the root element if `wrap="reverse"`. */
|
||||
'wrap-xs-wrap-reverse': string;
|
||||
}
|
||||
export type GridClassKey = keyof GridClasses;
|
||||
export declare function getGridUtilityClass(slot: string): string;
|
||||
declare const gridClasses: GridClasses;
|
||||
export default gridClasses;
|
||||
27
backend/frontend/node_modules/@mui/system/Unstable_Grid/gridClasses.js
generated
vendored
Normal file
27
backend/frontend/node_modules/@mui/system/Unstable_Grid/gridClasses.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
exports.getGridUtilityClass = getGridUtilityClass;
|
||||
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
||||
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
||||
function getGridUtilityClass(slot) {
|
||||
return (0, _generateUtilityClass.default)('MuiGrid', slot);
|
||||
}
|
||||
const SPACINGS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
||||
const DIRECTIONS = ['column-reverse', 'column', 'row-reverse', 'row'];
|
||||
const WRAPS = ['nowrap', 'wrap-reverse', 'wrap'];
|
||||
const GRID_SIZES = ['auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
||||
const gridClasses = (0, _generateUtilityClasses.default)('MuiGrid', ['root', 'container', 'item',
|
||||
// spacings
|
||||
...SPACINGS.map(spacing => `spacing-xs-${spacing}`),
|
||||
// direction values
|
||||
...DIRECTIONS.map(direction => `direction-xs-${direction}`),
|
||||
// wrap values
|
||||
...WRAPS.map(wrap => `wrap-xs-${wrap}`),
|
||||
// grid sizes for all breakpoints
|
||||
...GRID_SIZES.map(size => `grid-xs-${size}`), ...GRID_SIZES.map(size => `grid-sm-${size}`), ...GRID_SIZES.map(size => `grid-md-${size}`), ...GRID_SIZES.map(size => `grid-lg-${size}`), ...GRID_SIZES.map(size => `grid-xl-${size}`)]);
|
||||
var _default = exports.default = gridClasses;
|
||||
33
backend/frontend/node_modules/@mui/system/Unstable_Grid/gridGenerator.d.ts
generated
vendored
Normal file
33
backend/frontend/node_modules/@mui/system/Unstable_Grid/gridGenerator.d.ts
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
import { Breakpoints } from '../createTheme/createBreakpoints';
|
||||
import { Spacing } from '../createTheme/createSpacing';
|
||||
import { ResponsiveStyleValue } from '../styleFunctionSx';
|
||||
import { GridDirection, GridOwnerState } from './GridProps';
|
||||
interface Props {
|
||||
theme: {
|
||||
breakpoints: Breakpoints;
|
||||
spacing?: Spacing;
|
||||
};
|
||||
ownerState: GridOwnerState & {
|
||||
parentDisableEqualOverflow?: boolean;
|
||||
};
|
||||
}
|
||||
export declare const generateGridSizeStyles: ({ theme, ownerState }: Props) => {};
|
||||
export declare const generateGridOffsetStyles: ({ theme, ownerState }: Props) => {};
|
||||
export declare const generateGridColumnsStyles: ({ theme, ownerState }: Props) => {
|
||||
[x: string]: string;
|
||||
'--Grid-columns'?: undefined;
|
||||
} | {
|
||||
'--Grid-columns': number;
|
||||
};
|
||||
export declare const generateGridRowSpacingStyles: ({ theme, ownerState }: Props) => {
|
||||
[x: string]: string;
|
||||
};
|
||||
export declare const generateGridColumnSpacingStyles: ({ theme, ownerState }: Props) => {
|
||||
[x: string]: string;
|
||||
};
|
||||
export declare const generateGridDirectionStyles: ({ theme, ownerState }: Props) => {};
|
||||
export declare const generateGridStyles: ({ ownerState }: Props) => {};
|
||||
export declare const generateSizeClassNames: (gridSize: GridOwnerState['gridSize']) => string[];
|
||||
export declare const generateSpacingClassNames: (spacing: GridOwnerState['spacing'], smallestBreakpoint?: string) => string[];
|
||||
export declare const generateDirectionClasses: (direction: ResponsiveStyleValue<GridDirection> | undefined) => string[];
|
||||
export {};
|
||||
241
backend/frontend/node_modules/@mui/system/Unstable_Grid/gridGenerator.js
generated
vendored
Normal file
241
backend/frontend/node_modules/@mui/system/Unstable_Grid/gridGenerator.js
generated
vendored
Normal file
@@ -0,0 +1,241 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.generateSpacingClassNames = exports.generateSizeClassNames = exports.generateGridStyles = exports.generateGridSizeStyles = exports.generateGridRowSpacingStyles = exports.generateGridOffsetStyles = exports.generateGridDirectionStyles = exports.generateGridColumnsStyles = exports.generateGridColumnSpacingStyles = exports.generateDirectionClasses = void 0;
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
var _traverseBreakpoints = require("./traverseBreakpoints");
|
||||
function appendLevel(level) {
|
||||
if (!level) {
|
||||
return '';
|
||||
}
|
||||
return `Level${level}`;
|
||||
}
|
||||
function isNestedContainer(ownerState) {
|
||||
return ownerState.unstable_level > 0 && ownerState.container;
|
||||
}
|
||||
function createGetSelfSpacing(ownerState) {
|
||||
return function getSelfSpacing(axis) {
|
||||
return `var(--Grid-${axis}Spacing${appendLevel(ownerState.unstable_level)})`;
|
||||
};
|
||||
}
|
||||
function createGetParentSpacing(ownerState) {
|
||||
return function getParentSpacing(axis) {
|
||||
if (ownerState.unstable_level === 0) {
|
||||
return `var(--Grid-${axis}Spacing)`;
|
||||
}
|
||||
return `var(--Grid-${axis}Spacing${appendLevel(ownerState.unstable_level - 1)})`;
|
||||
};
|
||||
}
|
||||
function getParentColumns(ownerState) {
|
||||
if (ownerState.unstable_level === 0) {
|
||||
return `var(--Grid-columns)`;
|
||||
}
|
||||
return `var(--Grid-columns${appendLevel(ownerState.unstable_level - 1)})`;
|
||||
}
|
||||
const generateGridSizeStyles = ({
|
||||
theme,
|
||||
ownerState
|
||||
}) => {
|
||||
const getSelfSpacing = createGetSelfSpacing(ownerState);
|
||||
const styles = {};
|
||||
(0, _traverseBreakpoints.traverseBreakpoints)(theme.breakpoints, ownerState.gridSize, (appendStyle, value) => {
|
||||
let style = {};
|
||||
if (value === true) {
|
||||
style = {
|
||||
flexBasis: 0,
|
||||
flexGrow: 1,
|
||||
maxWidth: '100%'
|
||||
};
|
||||
}
|
||||
if (value === 'auto') {
|
||||
style = {
|
||||
flexBasis: 'auto',
|
||||
flexGrow: 0,
|
||||
flexShrink: 0,
|
||||
maxWidth: 'none',
|
||||
width: 'auto'
|
||||
};
|
||||
}
|
||||
if (typeof value === 'number') {
|
||||
style = {
|
||||
flexGrow: 0,
|
||||
flexBasis: 'auto',
|
||||
width: `calc(100% * ${value} / ${getParentColumns(ownerState)}${isNestedContainer(ownerState) ? ` + ${getSelfSpacing('column')}` : ''})`
|
||||
};
|
||||
}
|
||||
appendStyle(styles, style);
|
||||
});
|
||||
return styles;
|
||||
};
|
||||
exports.generateGridSizeStyles = generateGridSizeStyles;
|
||||
const generateGridOffsetStyles = ({
|
||||
theme,
|
||||
ownerState
|
||||
}) => {
|
||||
const styles = {};
|
||||
(0, _traverseBreakpoints.traverseBreakpoints)(theme.breakpoints, ownerState.gridOffset, (appendStyle, value) => {
|
||||
let style = {};
|
||||
if (value === 'auto') {
|
||||
style = {
|
||||
marginLeft: 'auto'
|
||||
};
|
||||
}
|
||||
if (typeof value === 'number') {
|
||||
style = {
|
||||
marginLeft: value === 0 ? '0px' : `calc(100% * ${value} / ${getParentColumns(ownerState)})`
|
||||
};
|
||||
}
|
||||
appendStyle(styles, style);
|
||||
});
|
||||
return styles;
|
||||
};
|
||||
exports.generateGridOffsetStyles = generateGridOffsetStyles;
|
||||
const generateGridColumnsStyles = ({
|
||||
theme,
|
||||
ownerState
|
||||
}) => {
|
||||
if (!ownerState.container) {
|
||||
return {};
|
||||
}
|
||||
const styles = isNestedContainer(ownerState) ? {
|
||||
[`--Grid-columns${appendLevel(ownerState.unstable_level)}`]: getParentColumns(ownerState)
|
||||
} : {
|
||||
'--Grid-columns': 12
|
||||
};
|
||||
(0, _traverseBreakpoints.traverseBreakpoints)(theme.breakpoints, ownerState.columns, (appendStyle, value) => {
|
||||
appendStyle(styles, {
|
||||
[`--Grid-columns${appendLevel(ownerState.unstable_level)}`]: value
|
||||
});
|
||||
});
|
||||
return styles;
|
||||
};
|
||||
exports.generateGridColumnsStyles = generateGridColumnsStyles;
|
||||
const generateGridRowSpacingStyles = ({
|
||||
theme,
|
||||
ownerState
|
||||
}) => {
|
||||
if (!ownerState.container) {
|
||||
return {};
|
||||
}
|
||||
const getParentSpacing = createGetParentSpacing(ownerState);
|
||||
const styles = isNestedContainer(ownerState) ? {
|
||||
// Set the default spacing as its parent spacing.
|
||||
// It will be overridden if spacing props are provided
|
||||
[`--Grid-rowSpacing${appendLevel(ownerState.unstable_level)}`]: getParentSpacing('row')
|
||||
} : {};
|
||||
(0, _traverseBreakpoints.traverseBreakpoints)(theme.breakpoints, ownerState.rowSpacing, (appendStyle, value) => {
|
||||
var _theme$spacing;
|
||||
appendStyle(styles, {
|
||||
[`--Grid-rowSpacing${appendLevel(ownerState.unstable_level)}`]: typeof value === 'string' ? value : (_theme$spacing = theme.spacing) == null ? void 0 : _theme$spacing.call(theme, value)
|
||||
});
|
||||
});
|
||||
return styles;
|
||||
};
|
||||
exports.generateGridRowSpacingStyles = generateGridRowSpacingStyles;
|
||||
const generateGridColumnSpacingStyles = ({
|
||||
theme,
|
||||
ownerState
|
||||
}) => {
|
||||
if (!ownerState.container) {
|
||||
return {};
|
||||
}
|
||||
const getParentSpacing = createGetParentSpacing(ownerState);
|
||||
const styles = isNestedContainer(ownerState) ? {
|
||||
// Set the default spacing as its parent spacing.
|
||||
// It will be overridden if spacing props are provided
|
||||
[`--Grid-columnSpacing${appendLevel(ownerState.unstable_level)}`]: getParentSpacing('column')
|
||||
} : {};
|
||||
(0, _traverseBreakpoints.traverseBreakpoints)(theme.breakpoints, ownerState.columnSpacing, (appendStyle, value) => {
|
||||
var _theme$spacing2;
|
||||
appendStyle(styles, {
|
||||
[`--Grid-columnSpacing${appendLevel(ownerState.unstable_level)}`]: typeof value === 'string' ? value : (_theme$spacing2 = theme.spacing) == null ? void 0 : _theme$spacing2.call(theme, value)
|
||||
});
|
||||
});
|
||||
return styles;
|
||||
};
|
||||
exports.generateGridColumnSpacingStyles = generateGridColumnSpacingStyles;
|
||||
const generateGridDirectionStyles = ({
|
||||
theme,
|
||||
ownerState
|
||||
}) => {
|
||||
if (!ownerState.container) {
|
||||
return {};
|
||||
}
|
||||
const styles = {};
|
||||
(0, _traverseBreakpoints.traverseBreakpoints)(theme.breakpoints, ownerState.direction, (appendStyle, value) => {
|
||||
appendStyle(styles, {
|
||||
flexDirection: value
|
||||
});
|
||||
});
|
||||
return styles;
|
||||
};
|
||||
exports.generateGridDirectionStyles = generateGridDirectionStyles;
|
||||
const generateGridStyles = ({
|
||||
ownerState
|
||||
}) => {
|
||||
const getSelfSpacing = createGetSelfSpacing(ownerState);
|
||||
const getParentSpacing = createGetParentSpacing(ownerState);
|
||||
return (0, _extends2.default)({
|
||||
minWidth: 0,
|
||||
boxSizing: 'border-box'
|
||||
}, ownerState.container && (0, _extends2.default)({
|
||||
display: 'flex',
|
||||
flexWrap: 'wrap'
|
||||
}, ownerState.wrap && ownerState.wrap !== 'wrap' && {
|
||||
flexWrap: ownerState.wrap
|
||||
}, {
|
||||
margin: `calc(${getSelfSpacing('row')} / -2) calc(${getSelfSpacing('column')} / -2)`
|
||||
}, ownerState.disableEqualOverflow && {
|
||||
margin: `calc(${getSelfSpacing('row')} * -1) 0px 0px calc(${getSelfSpacing('column')} * -1)`
|
||||
}), (!ownerState.container || isNestedContainer(ownerState)) && (0, _extends2.default)({
|
||||
padding: `calc(${getParentSpacing('row')} / 2) calc(${getParentSpacing('column')} / 2)`
|
||||
}, (ownerState.disableEqualOverflow || ownerState.parentDisableEqualOverflow) && {
|
||||
padding: `${getParentSpacing('row')} 0px 0px ${getParentSpacing('column')}`
|
||||
}));
|
||||
};
|
||||
exports.generateGridStyles = generateGridStyles;
|
||||
const generateSizeClassNames = gridSize => {
|
||||
const classNames = [];
|
||||
Object.entries(gridSize).forEach(([key, value]) => {
|
||||
if (value !== false && value !== undefined) {
|
||||
classNames.push(`grid-${key}-${String(value)}`);
|
||||
}
|
||||
});
|
||||
return classNames;
|
||||
};
|
||||
exports.generateSizeClassNames = generateSizeClassNames;
|
||||
const generateSpacingClassNames = (spacing, smallestBreakpoint = 'xs') => {
|
||||
function isValidSpacing(val) {
|
||||
if (val === undefined) {
|
||||
return false;
|
||||
}
|
||||
return typeof val === 'string' && !Number.isNaN(Number(val)) || typeof val === 'number' && val > 0;
|
||||
}
|
||||
if (isValidSpacing(spacing)) {
|
||||
return [`spacing-${smallestBreakpoint}-${String(spacing)}`];
|
||||
}
|
||||
if (typeof spacing === 'object' && !Array.isArray(spacing)) {
|
||||
const classNames = [];
|
||||
Object.entries(spacing).forEach(([key, value]) => {
|
||||
if (isValidSpacing(value)) {
|
||||
classNames.push(`spacing-${key}-${String(value)}`);
|
||||
}
|
||||
});
|
||||
return classNames;
|
||||
}
|
||||
return [];
|
||||
};
|
||||
exports.generateSpacingClassNames = generateSpacingClassNames;
|
||||
const generateDirectionClasses = direction => {
|
||||
if (direction === undefined) {
|
||||
return [];
|
||||
}
|
||||
if (typeof direction === 'object') {
|
||||
return Object.entries(direction).map(([key, value]) => `direction-${key}-${value}`);
|
||||
}
|
||||
return [`direction-xs-${String(direction)}`];
|
||||
};
|
||||
exports.generateDirectionClasses = generateDirectionClasses;
|
||||
6
backend/frontend/node_modules/@mui/system/Unstable_Grid/index.d.ts
generated
vendored
Normal file
6
backend/frontend/node_modules/@mui/system/Unstable_Grid/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
export { default } from './Grid';
|
||||
export { default as createGrid } from './createGrid';
|
||||
export * from './GridProps';
|
||||
export { default as gridClasses } from './gridClasses';
|
||||
export * from './gridClasses';
|
||||
export { traverseBreakpoints as unstable_traverseBreakpoints } from './traverseBreakpoints';
|
||||
65
backend/frontend/node_modules/@mui/system/Unstable_Grid/index.js
generated
vendored
Normal file
65
backend/frontend/node_modules/@mui/system/Unstable_Grid/index.js
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
"use strict";
|
||||
'use client';
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
var _exportNames = {
|
||||
createGrid: true,
|
||||
gridClasses: true,
|
||||
unstable_traverseBreakpoints: true
|
||||
};
|
||||
Object.defineProperty(exports, "createGrid", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _createGrid.default;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _Grid.default;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "gridClasses", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _gridClasses.default;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "unstable_traverseBreakpoints", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _traverseBreakpoints.traverseBreakpoints;
|
||||
}
|
||||
});
|
||||
var _Grid = _interopRequireDefault(require("./Grid"));
|
||||
var _createGrid = _interopRequireDefault(require("./createGrid"));
|
||||
var _GridProps = require("./GridProps");
|
||||
Object.keys(_GridProps).forEach(function (key) {
|
||||
if (key === "default" || key === "__esModule") return;
|
||||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
||||
if (key in exports && exports[key] === _GridProps[key]) return;
|
||||
Object.defineProperty(exports, key, {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _GridProps[key];
|
||||
}
|
||||
});
|
||||
});
|
||||
var _gridClasses = _interopRequireWildcard(require("./gridClasses"));
|
||||
Object.keys(_gridClasses).forEach(function (key) {
|
||||
if (key === "default" || key === "__esModule") return;
|
||||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
||||
if (key in exports && exports[key] === _gridClasses[key]) return;
|
||||
Object.defineProperty(exports, key, {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _gridClasses[key];
|
||||
}
|
||||
});
|
||||
});
|
||||
var _traverseBreakpoints = require("./traverseBreakpoints");
|
||||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
||||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
||||
6
backend/frontend/node_modules/@mui/system/Unstable_Grid/package.json
generated
vendored
Normal file
6
backend/frontend/node_modules/@mui/system/Unstable_Grid/package.json
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/Unstable_Grid/index.js",
|
||||
"main": "./index.js",
|
||||
"types": "./index.d.ts"
|
||||
}
|
||||
7
backend/frontend/node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.d.ts
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Breakpoints, Breakpoint } from '../createTheme/createBreakpoints';
|
||||
export declare const filterBreakpointKeys: (breakpointsKeys: Breakpoint[], responsiveKeys: string[]) => Breakpoint[];
|
||||
interface Iterator<T> {
|
||||
(appendStyle: (responsiveStyles: Record<string, any>, style: object) => void, value: T): void;
|
||||
}
|
||||
export declare const traverseBreakpoints: <T = unknown>(breakpoints: Breakpoints, responsive: Record<string, any> | T | T[] | undefined, iterator: Iterator<T>) => void;
|
||||
export {};
|
||||
50
backend/frontend/node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js
generated
vendored
Normal file
50
backend/frontend/node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.traverseBreakpoints = exports.filterBreakpointKeys = void 0;
|
||||
const filterBreakpointKeys = (breakpointsKeys, responsiveKeys) => breakpointsKeys.filter(key => responsiveKeys.includes(key));
|
||||
exports.filterBreakpointKeys = filterBreakpointKeys;
|
||||
const traverseBreakpoints = (breakpoints, responsive, iterator) => {
|
||||
const smallestBreakpoint = breakpoints.keys[0]; // the keys is sorted from smallest to largest by `createBreakpoints`.
|
||||
|
||||
if (Array.isArray(responsive)) {
|
||||
responsive.forEach((breakpointValue, index) => {
|
||||
iterator((responsiveStyles, style) => {
|
||||
if (index <= breakpoints.keys.length - 1) {
|
||||
if (index === 0) {
|
||||
Object.assign(responsiveStyles, style);
|
||||
} else {
|
||||
responsiveStyles[breakpoints.up(breakpoints.keys[index])] = style;
|
||||
}
|
||||
}
|
||||
}, breakpointValue);
|
||||
});
|
||||
} else if (responsive && typeof responsive === 'object') {
|
||||
// prevent null
|
||||
// responsive could be a very big object, pick the smallest responsive values
|
||||
|
||||
const keys = Object.keys(responsive).length > breakpoints.keys.length ? breakpoints.keys : filterBreakpointKeys(breakpoints.keys, Object.keys(responsive));
|
||||
keys.forEach(key => {
|
||||
if (breakpoints.keys.indexOf(key) !== -1) {
|
||||
// @ts-ignore already checked that responsive is an object
|
||||
const breakpointValue = responsive[key];
|
||||
if (breakpointValue !== undefined) {
|
||||
iterator((responsiveStyles, style) => {
|
||||
if (smallestBreakpoint === key) {
|
||||
Object.assign(responsiveStyles, style);
|
||||
} else {
|
||||
responsiveStyles[breakpoints.up(key)] = style;
|
||||
}
|
||||
}, breakpointValue);
|
||||
}
|
||||
}
|
||||
});
|
||||
} else if (typeof responsive === 'number' || typeof responsive === 'string') {
|
||||
iterator((responsiveStyles, style) => {
|
||||
Object.assign(responsiveStyles, style);
|
||||
}, responsive);
|
||||
}
|
||||
};
|
||||
exports.traverseBreakpoints = traverseBreakpoints;
|
||||
Reference in New Issue
Block a user