Jesus sucks
This commit is contained in:
191
backend/frontend/node_modules/@mui/material/ListItem/ListItem.d.ts
generated
vendored
Normal file
191
backend/frontend/node_modules/@mui/material/ListItem/ListItem.d.ts
generated
vendored
Normal file
@@ -0,0 +1,191 @@
|
||||
import * as React from 'react';
|
||||
import { SxProps } from '@mui/system';
|
||||
import { Theme } from '../styles';
|
||||
import { ExtendButtonBase } from '../ButtonBase';
|
||||
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
||||
import { ListItemClasses } from './listItemClasses';
|
||||
|
||||
export interface ListItemComponentsPropsOverrides {}
|
||||
|
||||
/**
|
||||
* This type is kept for compatibility. Use `ListItemOwnProps` instead.
|
||||
*/
|
||||
export interface ListItemBaseProps {
|
||||
/**
|
||||
* Defines the `align-items` style property.
|
||||
* @default 'center'
|
||||
*/
|
||||
alignItems?: 'flex-start' | 'center';
|
||||
/**
|
||||
* If `true`, the list item is focused during the first mount.
|
||||
* Focus will also be triggered if the value changes from false to true.
|
||||
* @default false
|
||||
* @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
|
||||
*/
|
||||
autoFocus?: boolean;
|
||||
/**
|
||||
* The content of the component if a `ListItemSecondaryAction` is used it must
|
||||
* be the last child.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes?: Partial<ListItemClasses>;
|
||||
/**
|
||||
* The container component used when a `ListItemSecondaryAction` is the last child.
|
||||
* @default 'li'
|
||||
* @deprecated
|
||||
*/
|
||||
ContainerComponent?: React.ElementType<React.HTMLAttributes<HTMLDivElement>>;
|
||||
/**
|
||||
* Props applied to the container component if used.
|
||||
* @default {}
|
||||
* @deprecated
|
||||
*/
|
||||
ContainerProps?: React.HTMLAttributes<HTMLDivElement>;
|
||||
/**
|
||||
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
||||
* The prop defaults to the value inherited from the parent List component.
|
||||
* @default false
|
||||
*/
|
||||
dense?: boolean;
|
||||
/**
|
||||
* If `true`, the component is disabled.
|
||||
* @default false
|
||||
* @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
|
||||
*/
|
||||
disabled?: boolean;
|
||||
/**
|
||||
* If `true`, the left and right padding is removed.
|
||||
* @default false
|
||||
*/
|
||||
disableGutters?: boolean;
|
||||
/**
|
||||
* If `true`, all padding is removed.
|
||||
* @default false
|
||||
*/
|
||||
disablePadding?: boolean;
|
||||
/**
|
||||
* If `true`, a 1px light border is added to the bottom of the list item.
|
||||
* @default false
|
||||
*/
|
||||
divider?: boolean;
|
||||
/**
|
||||
* The element to display at the end of ListItem.
|
||||
*/
|
||||
secondaryAction?: React.ReactNode;
|
||||
/**
|
||||
* Use to apply selected styling.
|
||||
* @default false
|
||||
* @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
|
||||
*/
|
||||
selected?: boolean;
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx?: SxProps<Theme>;
|
||||
}
|
||||
|
||||
export interface ListItemOwnProps extends ListItemBaseProps {
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
*
|
||||
* This prop is an alias for the `slots` prop.
|
||||
* It's recommended to use the `slots` prop instead.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
components?: {
|
||||
Root?: React.ElementType;
|
||||
};
|
||||
/**
|
||||
* The extra props for the slot components.
|
||||
* You can override the existing props or add new ones.
|
||||
*
|
||||
* This prop is an alias for the `slotProps` prop.
|
||||
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
componentsProps?: {
|
||||
root?: React.HTMLAttributes<HTMLDivElement> & ListItemComponentsPropsOverrides;
|
||||
};
|
||||
/**
|
||||
* The extra props for the slot components.
|
||||
* You can override the existing props or add new ones.
|
||||
*
|
||||
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
slotProps?: {
|
||||
root?: React.HTMLAttributes<HTMLDivElement> & ListItemComponentsPropsOverrides;
|
||||
};
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
*
|
||||
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
slots?: {
|
||||
root?: React.ElementType;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ListItemTypeMap<AdditionalProps, RootComponent extends React.ElementType> {
|
||||
props: AdditionalProps & ListItemOwnProps;
|
||||
defaultComponent: RootComponent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Uses an additional container component if `ListItemSecondaryAction` is the last child.
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Lists](https://mui.com/material-ui/react-list/)
|
||||
* - [Transfer List](https://mui.com/material-ui/react-transfer-list/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [ListItem API](https://mui.com/material-ui/api/list-item/)
|
||||
*/
|
||||
declare const ListItem: ExtendButtonBase<
|
||||
ListItemTypeMap<
|
||||
{
|
||||
/**
|
||||
* If `true`, the list item is a button (using `ButtonBase`). Props intended
|
||||
* for `ButtonBase` can then be applied to `ListItem`.
|
||||
* @default false
|
||||
* @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
|
||||
*
|
||||
*/
|
||||
button: true;
|
||||
},
|
||||
'div'
|
||||
>
|
||||
> &
|
||||
OverridableComponent<
|
||||
ListItemTypeMap<
|
||||
{
|
||||
/**
|
||||
* If `true`, the list item is a button (using `ButtonBase`). Props intended
|
||||
* for `ButtonBase` can then be applied to `ListItem`.
|
||||
* @default false
|
||||
* @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
|
||||
*/
|
||||
button?: false;
|
||||
},
|
||||
'li'
|
||||
>
|
||||
>;
|
||||
|
||||
export type ListItemProps<
|
||||
RootComponent extends React.ElementType = 'li',
|
||||
AdditionalProps = {},
|
||||
> = OverrideProps<ListItemTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
||||
component?: React.ElementType;
|
||||
};
|
||||
|
||||
export default ListItem;
|
||||
422
backend/frontend/node_modules/@mui/material/ListItem/ListItem.js
generated
vendored
Normal file
422
backend/frontend/node_modules/@mui/material/ListItem/ListItem.js
generated
vendored
Normal file
@@ -0,0 +1,422 @@
|
||||
'use client';
|
||||
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
const _excluded = ["className"],
|
||||
_excluded2 = ["alignItems", "autoFocus", "button", "children", "className", "component", "components", "componentsProps", "ContainerComponent", "ContainerProps", "dense", "disabled", "disableGutters", "disablePadding", "divider", "focusVisibleClassName", "secondaryAction", "selected", "slotProps", "slots"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
|
||||
import chainPropTypes from '@mui/utils/chainPropTypes';
|
||||
import { alpha } from '@mui/system/colorManipulator';
|
||||
import isHostComponent from '@mui/utils/isHostComponent';
|
||||
import styled from '../styles/styled';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import ButtonBase from '../ButtonBase';
|
||||
import isMuiElement from '../utils/isMuiElement';
|
||||
import useEnhancedEffect from '../utils/useEnhancedEffect';
|
||||
import useForkRef from '../utils/useForkRef';
|
||||
import ListContext from '../List/ListContext';
|
||||
import listItemClasses, { getListItemUtilityClass } from './listItemClasses';
|
||||
import { listItemButtonClasses } from '../ListItemButton';
|
||||
import ListItemSecondaryAction from '../ListItemSecondaryAction';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
import { jsxs as _jsxs } from "react/jsx-runtime";
|
||||
export const overridesResolver = (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, ownerState.dense && styles.dense, ownerState.alignItems === 'flex-start' && styles.alignItemsFlexStart, ownerState.divider && styles.divider, !ownerState.disableGutters && styles.gutters, !ownerState.disablePadding && styles.padding, ownerState.button && styles.button, ownerState.hasSecondaryAction && styles.secondaryAction];
|
||||
};
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
alignItems,
|
||||
button,
|
||||
classes,
|
||||
dense,
|
||||
disabled,
|
||||
disableGutters,
|
||||
disablePadding,
|
||||
divider,
|
||||
hasSecondaryAction,
|
||||
selected
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', dense && 'dense', !disableGutters && 'gutters', !disablePadding && 'padding', divider && 'divider', disabled && 'disabled', button && 'button', alignItems === 'flex-start' && 'alignItemsFlexStart', hasSecondaryAction && 'secondaryAction', selected && 'selected'],
|
||||
container: ['container']
|
||||
};
|
||||
return composeClasses(slots, getListItemUtilityClass, classes);
|
||||
};
|
||||
export const ListItemRoot = styled('div', {
|
||||
name: 'MuiListItem',
|
||||
slot: 'Root',
|
||||
overridesResolver
|
||||
})(({
|
||||
theme,
|
||||
ownerState
|
||||
}) => _extends({
|
||||
display: 'flex',
|
||||
justifyContent: 'flex-start',
|
||||
alignItems: 'center',
|
||||
position: 'relative',
|
||||
textDecoration: 'none',
|
||||
width: '100%',
|
||||
boxSizing: 'border-box',
|
||||
textAlign: 'left'
|
||||
}, !ownerState.disablePadding && _extends({
|
||||
paddingTop: 8,
|
||||
paddingBottom: 8
|
||||
}, ownerState.dense && {
|
||||
paddingTop: 4,
|
||||
paddingBottom: 4
|
||||
}, !ownerState.disableGutters && {
|
||||
paddingLeft: 16,
|
||||
paddingRight: 16
|
||||
}, !!ownerState.secondaryAction && {
|
||||
// Add some space to avoid collision as `ListItemSecondaryAction`
|
||||
// is absolutely positioned.
|
||||
paddingRight: 48
|
||||
}), !!ownerState.secondaryAction && {
|
||||
[`& > .${listItemButtonClasses.root}`]: {
|
||||
paddingRight: 48
|
||||
}
|
||||
}, {
|
||||
[`&.${listItemClasses.focusVisible}`]: {
|
||||
backgroundColor: (theme.vars || theme).palette.action.focus
|
||||
},
|
||||
[`&.${listItemClasses.selected}`]: {
|
||||
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
||||
[`&.${listItemClasses.focusVisible}`]: {
|
||||
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
||||
}
|
||||
},
|
||||
[`&.${listItemClasses.disabled}`]: {
|
||||
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
||||
}
|
||||
}, ownerState.alignItems === 'flex-start' && {
|
||||
alignItems: 'flex-start'
|
||||
}, ownerState.divider && {
|
||||
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
|
||||
backgroundClip: 'padding-box'
|
||||
}, ownerState.button && {
|
||||
transition: theme.transitions.create('background-color', {
|
||||
duration: theme.transitions.duration.shortest
|
||||
}),
|
||||
'&:hover': {
|
||||
textDecoration: 'none',
|
||||
backgroundColor: (theme.vars || theme).palette.action.hover,
|
||||
// Reset on touch devices, it doesn't add specificity
|
||||
'@media (hover: none)': {
|
||||
backgroundColor: 'transparent'
|
||||
}
|
||||
},
|
||||
[`&.${listItemClasses.selected}:hover`]: {
|
||||
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
||||
// Reset on touch devices, it doesn't add specificity
|
||||
'@media (hover: none)': {
|
||||
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
|
||||
}
|
||||
}
|
||||
}, ownerState.hasSecondaryAction && {
|
||||
// Add some space to avoid collision as `ListItemSecondaryAction`
|
||||
// is absolutely positioned.
|
||||
paddingRight: 48
|
||||
}));
|
||||
const ListItemContainer = styled('li', {
|
||||
name: 'MuiListItem',
|
||||
slot: 'Container',
|
||||
overridesResolver: (props, styles) => styles.container
|
||||
})({
|
||||
position: 'relative'
|
||||
});
|
||||
|
||||
/**
|
||||
* Uses an additional container component if `ListItemSecondaryAction` is the last child.
|
||||
*/
|
||||
const ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiListItem'
|
||||
});
|
||||
const {
|
||||
alignItems = 'center',
|
||||
autoFocus = false,
|
||||
button = false,
|
||||
children: childrenProp,
|
||||
className,
|
||||
component: componentProp,
|
||||
components = {},
|
||||
componentsProps = {},
|
||||
ContainerComponent = 'li',
|
||||
ContainerProps: {
|
||||
className: ContainerClassName
|
||||
} = {},
|
||||
dense = false,
|
||||
disabled = false,
|
||||
disableGutters = false,
|
||||
disablePadding = false,
|
||||
divider = false,
|
||||
focusVisibleClassName,
|
||||
secondaryAction,
|
||||
selected = false,
|
||||
slotProps = {},
|
||||
slots = {}
|
||||
} = props,
|
||||
ContainerProps = _objectWithoutPropertiesLoose(props.ContainerProps, _excluded),
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded2);
|
||||
const context = React.useContext(ListContext);
|
||||
const childContext = React.useMemo(() => ({
|
||||
dense: dense || context.dense || false,
|
||||
alignItems,
|
||||
disableGutters
|
||||
}), [alignItems, context.dense, dense, disableGutters]);
|
||||
const listItemRef = React.useRef(null);
|
||||
useEnhancedEffect(() => {
|
||||
if (autoFocus) {
|
||||
if (listItemRef.current) {
|
||||
listItemRef.current.focus();
|
||||
} else if (process.env.NODE_ENV !== 'production') {
|
||||
console.error('MUI: Unable to set focus to a ListItem whose component has not been rendered.');
|
||||
}
|
||||
}
|
||||
}, [autoFocus]);
|
||||
const children = React.Children.toArray(childrenProp);
|
||||
|
||||
// v4 implementation, deprecated in v5, will be removed in v6
|
||||
const hasSecondaryAction = children.length && isMuiElement(children[children.length - 1], ['ListItemSecondaryAction']);
|
||||
const ownerState = _extends({}, props, {
|
||||
alignItems,
|
||||
autoFocus,
|
||||
button,
|
||||
dense: childContext.dense,
|
||||
disabled,
|
||||
disableGutters,
|
||||
disablePadding,
|
||||
divider,
|
||||
hasSecondaryAction,
|
||||
selected
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const handleRef = useForkRef(listItemRef, ref);
|
||||
const Root = slots.root || components.Root || ListItemRoot;
|
||||
const rootProps = slotProps.root || componentsProps.root || {};
|
||||
const componentProps = _extends({
|
||||
className: clsx(classes.root, rootProps.className, className),
|
||||
disabled
|
||||
}, other);
|
||||
let Component = componentProp || 'li';
|
||||
if (button) {
|
||||
componentProps.component = componentProp || 'div';
|
||||
componentProps.focusVisibleClassName = clsx(listItemClasses.focusVisible, focusVisibleClassName);
|
||||
Component = ButtonBase;
|
||||
}
|
||||
|
||||
// v4 implementation, deprecated in v5, will be removed in v6
|
||||
if (hasSecondaryAction) {
|
||||
// Use div by default.
|
||||
Component = !componentProps.component && !componentProp ? 'div' : Component;
|
||||
|
||||
// Avoid nesting of li > li.
|
||||
if (ContainerComponent === 'li') {
|
||||
if (Component === 'li') {
|
||||
Component = 'div';
|
||||
} else if (componentProps.component === 'li') {
|
||||
componentProps.component = 'div';
|
||||
}
|
||||
}
|
||||
return /*#__PURE__*/_jsx(ListContext.Provider, {
|
||||
value: childContext,
|
||||
children: /*#__PURE__*/_jsxs(ListItemContainer, _extends({
|
||||
as: ContainerComponent,
|
||||
className: clsx(classes.container, ContainerClassName),
|
||||
ref: handleRef,
|
||||
ownerState: ownerState
|
||||
}, ContainerProps, {
|
||||
children: [/*#__PURE__*/_jsx(Root, _extends({}, rootProps, !isHostComponent(Root) && {
|
||||
as: Component,
|
||||
ownerState: _extends({}, ownerState, rootProps.ownerState)
|
||||
}, componentProps, {
|
||||
children: children
|
||||
})), children.pop()]
|
||||
}))
|
||||
});
|
||||
}
|
||||
return /*#__PURE__*/_jsx(ListContext.Provider, {
|
||||
value: childContext,
|
||||
children: /*#__PURE__*/_jsxs(Root, _extends({}, rootProps, {
|
||||
as: Component,
|
||||
ref: handleRef
|
||||
}, !isHostComponent(Root) && {
|
||||
ownerState: _extends({}, ownerState, rootProps.ownerState)
|
||||
}, componentProps, {
|
||||
children: [children, secondaryAction && /*#__PURE__*/_jsx(ListItemSecondaryAction, {
|
||||
children: secondaryAction
|
||||
})]
|
||||
}))
|
||||
});
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? ListItem.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`. │
|
||||
// └─────────────────────────────────────────────────────────────────────┘
|
||||
/**
|
||||
* Defines the `align-items` style property.
|
||||
* @default 'center'
|
||||
*/
|
||||
alignItems: PropTypes.oneOf(['center', 'flex-start']),
|
||||
/**
|
||||
* If `true`, the list item is focused during the first mount.
|
||||
* Focus will also be triggered if the value changes from false to true.
|
||||
* @default false
|
||||
* @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
|
||||
*/
|
||||
autoFocus: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the list item is a button (using `ButtonBase`). Props intended
|
||||
* for `ButtonBase` can then be applied to `ListItem`.
|
||||
* @default false
|
||||
* @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
|
||||
*/
|
||||
button: PropTypes.bool,
|
||||
/**
|
||||
* The content of the component if a `ListItemSecondaryAction` is used it must
|
||||
* be the last child.
|
||||
*/
|
||||
children: chainPropTypes(PropTypes.node, props => {
|
||||
const children = React.Children.toArray(props.children);
|
||||
|
||||
// React.Children.toArray(props.children).findLastIndex(isListItemSecondaryAction)
|
||||
let secondaryActionIndex = -1;
|
||||
for (let i = children.length - 1; i >= 0; i -= 1) {
|
||||
const child = children[i];
|
||||
if (isMuiElement(child, ['ListItemSecondaryAction'])) {
|
||||
secondaryActionIndex = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// is ListItemSecondaryAction the last child of ListItem
|
||||
if (secondaryActionIndex !== -1 && secondaryActionIndex !== children.length - 1) {
|
||||
return new Error('MUI: You used an element after ListItemSecondaryAction. ' + 'For ListItem to detect that it has a secondary action ' + 'you must pass it as the last child to ListItem.');
|
||||
}
|
||||
return null;
|
||||
}),
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: PropTypes.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.string,
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: PropTypes.elementType,
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
*
|
||||
* This prop is an alias for the `slots` prop.
|
||||
* It's recommended to use the `slots` prop instead.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
components: PropTypes.shape({
|
||||
Root: PropTypes.elementType
|
||||
}),
|
||||
/**
|
||||
* The extra props for the slot components.
|
||||
* You can override the existing props or add new ones.
|
||||
*
|
||||
* This prop is an alias for the `slotProps` prop.
|
||||
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
componentsProps: PropTypes.shape({
|
||||
root: PropTypes.object
|
||||
}),
|
||||
/**
|
||||
* The container component used when a `ListItemSecondaryAction` is the last child.
|
||||
* @default 'li'
|
||||
* @deprecated
|
||||
*/
|
||||
ContainerComponent: elementTypeAcceptingRef,
|
||||
/**
|
||||
* Props applied to the container component if used.
|
||||
* @default {}
|
||||
* @deprecated
|
||||
*/
|
||||
ContainerProps: PropTypes.object,
|
||||
/**
|
||||
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
||||
* The prop defaults to the value inherited from the parent List component.
|
||||
* @default false
|
||||
*/
|
||||
dense: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the component is disabled.
|
||||
* @default false
|
||||
* @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
|
||||
*/
|
||||
disabled: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the left and right padding is removed.
|
||||
* @default false
|
||||
*/
|
||||
disableGutters: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, all padding is removed.
|
||||
* @default false
|
||||
*/
|
||||
disablePadding: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, a 1px light border is added to the bottom of the list item.
|
||||
* @default false
|
||||
*/
|
||||
divider: PropTypes.bool,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
focusVisibleClassName: PropTypes.string,
|
||||
/**
|
||||
* The element to display at the end of ListItem.
|
||||
*/
|
||||
secondaryAction: PropTypes.node,
|
||||
/**
|
||||
* Use to apply selected styling.
|
||||
* @default false
|
||||
* @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
|
||||
*/
|
||||
selected: PropTypes.bool,
|
||||
/**
|
||||
* The extra props for the slot components.
|
||||
* You can override the existing props or add new ones.
|
||||
*
|
||||
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
slotProps: PropTypes.shape({
|
||||
root: PropTypes.object
|
||||
}),
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
*
|
||||
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
slots: PropTypes.shape({
|
||||
root: PropTypes.elementType
|
||||
}),
|
||||
/**
|
||||
* The system prop that 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 ListItem;
|
||||
5
backend/frontend/node_modules/@mui/material/ListItem/index.d.ts
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/ListItem/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export { default } from './ListItem';
|
||||
export * from './ListItem';
|
||||
|
||||
export { default as listItemClasses } from './listItemClasses';
|
||||
export * from './listItemClasses';
|
||||
5
backend/frontend/node_modules/@mui/material/ListItem/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/ListItem/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './ListItem';
|
||||
export { default as listItemClasses } from './listItemClasses';
|
||||
export * from './listItemClasses';
|
||||
30
backend/frontend/node_modules/@mui/material/ListItem/listItemClasses.d.ts
generated
vendored
Normal file
30
backend/frontend/node_modules/@mui/material/ListItem/listItemClasses.d.ts
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
export interface ListItemClasses {
|
||||
/** Styles applied to the (normally root) `component` element. May be wrapped by a `container`. */
|
||||
root: string;
|
||||
/** Styles applied to the container element if `children` includes `ListItemSecondaryAction`. */
|
||||
container: string;
|
||||
/** State class applied to the `component`'s `focusVisibleClassName` prop if `button={true}`. */
|
||||
focusVisible: string;
|
||||
/** Styles applied to the component element if dense. */
|
||||
dense: string;
|
||||
/** Styles applied to the component element if `alignItems="flex-start"`. */
|
||||
alignItemsFlexStart: string;
|
||||
/** State class applied to the inner `component` element if `disabled={true}`. */
|
||||
disabled: string;
|
||||
/** Styles applied to the inner `component` element if `divider={true}`. */
|
||||
divider: string;
|
||||
/** Styles applied to the inner `component` element unless `disableGutters={true}`. */
|
||||
gutters: string;
|
||||
/** Styles applied to the root element unless `disablePadding={true}`. */
|
||||
padding: string;
|
||||
/** Styles applied to the inner `component` element if `button={true}`. */
|
||||
button: string;
|
||||
/** Styles applied to the component element if `children` includes `ListItemSecondaryAction`. */
|
||||
secondaryAction: string;
|
||||
/** State class applied to the root element if `selected={true}`. */
|
||||
selected: string;
|
||||
}
|
||||
export type ListItemClassKey = keyof ListItemClasses;
|
||||
export declare function getListItemUtilityClass(slot: string): string;
|
||||
declare const listItemClasses: ListItemClasses;
|
||||
export default listItemClasses;
|
||||
7
backend/frontend/node_modules/@mui/material/ListItem/listItemClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/ListItem/listItemClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getListItemUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiListItem', slot);
|
||||
}
|
||||
const listItemClasses = generateUtilityClasses('MuiListItem', ['root', 'container', 'focusVisible', 'dense', 'alignItemsFlexStart', 'disabled', 'divider', 'gutters', 'padding', 'button', 'secondaryAction', 'selected']);
|
||||
export default listItemClasses;
|
||||
6
backend/frontend/node_modules/@mui/material/ListItem/package.json
generated
vendored
Normal file
6
backend/frontend/node_modules/@mui/material/ListItem/package.json
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sideEffects": false,
|
||||
"module": "./index.js",
|
||||
"main": "../node/ListItem/index.js",
|
||||
"types": "./index.d.ts"
|
||||
}
|
||||
Reference in New Issue
Block a user