1
0
Fork 0

worked on GarageApp stuff

This commit is contained in:
Techognito 2025-08-25 17:46:11 +02:00
parent 60aaf17af3
commit eb606572b0
51919 changed files with 2168177 additions and 18 deletions

View file

@ -0,0 +1,106 @@
import * as React from 'react';
import { SxProps } from '@mui/system';
import { Theme } from "../styles/index.js";
import { InternalStandardProps as StandardProps } from "../internal/index.js";
import { TypographyProps } from "../Typography/index.js";
import { ListItemTextClasses } from "./listItemTextClasses.js";
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
export interface ListItemTextSlots {
/**
* The component that renders the root slot.
* @default 'div'
*/
root?: React.ElementType;
/**
* The component that renders the primary slot.
* @default Typography
*/
primary?: React.ElementType;
/**
* The component that renders the secondary slot.
* @default Typography
*/
secondary?: React.ElementType;
}
export type ListItemTextSlotsAndSlotProps = CreateSlotsAndSlotProps<ListItemTextSlots, {
/**
* Props forwared to the root slot.
* By default, the available props are based on `div` element.
*/
root: SlotProps<'div', {}, ListItemTextOwnerState>;
/**
* Props forwared to the primary slot (as long as disableTypography is not `true`)
* By default, the available props are based on the [Typography](https://mui.com/material-ui/api/typography/#props) component
*/
primary: SlotProps<React.ElementType<TypographyProps>, {}, ListItemTextOwnerState>;
/**
* Props forwarded to the secondary slot (as long as disableTypography is not `true`)
* By default, the available props are based on the [Typography](https://mui.com/material-ui/api/typography/#props) component
*/
secondary: SlotProps<React.ElementType<TypographyProps>, {}, ListItemTextOwnerState>;
}>;
export interface ListItemTextOwnerState extends ListItemTextProps {}
export interface ListItemTextProps<PrimaryTypographyComponent extends React.ElementType = 'span', SecondaryTypographyComponent extends React.ElementType = 'p'> extends StandardProps<React.HTMLAttributes<HTMLDivElement>>, ListItemTextSlotsAndSlotProps {
/**
* Alias for the `primary` prop.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<ListItemTextClasses>;
/**
* If `true`, the children won't be wrapped by a Typography component.
* This can be useful to render an alternative Typography variant by wrapping
* the `children` (or `primary`) text, and optional `secondary` text
* with the Typography component.
* @default false
*/
disableTypography?: boolean;
/**
* If `true`, the children are indented.
* This should be used if there is no left avatar or left icon.
* @default false
*/
inset?: boolean;
/**
* The main content element.
*/
primary?: React.ReactNode;
/**
* These props will be forwarded to the primary typography component
* (as long as disableTypography is not `true`).
* @deprecated Use `slotProps.primary` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
*/
primaryTypographyProps?: TypographyProps<PrimaryTypographyComponent, {
component?: PrimaryTypographyComponent;
}>;
/**
* The secondary content element.
*/
secondary?: React.ReactNode;
/**
* These props will be forwarded to the secondary typography component
* (as long as disableTypography is not `true`).
* @deprecated Use `slotProps.secondary` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
*/
secondaryTypographyProps?: TypographyProps<SecondaryTypographyComponent, {
component?: SecondaryTypographyComponent;
}>;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
}
/**
*
* Demos:
*
* - [Lists](https://mui.com/material-ui/react-list/)
*
* API:
*
* - [ListItemText API](https://mui.com/material-ui/api/list-item-text/)
*/
export default function ListItemText<PrimaryTypographyComponent extends React.ElementType = 'span', SecondaryTypographyComponent extends React.ElementType = 'p'>(props: ListItemTextProps<PrimaryTypographyComponent, SecondaryTypographyComponent>): React.JSX.Element;

234
node_modules/@mui/material/ListItemText/ListItemText.js generated vendored Normal file
View file

@ -0,0 +1,234 @@
"use strict";
'use client';
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _clsx = _interopRequireDefault(require("clsx"));
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
var _Typography = _interopRequireWildcard(require("../Typography"));
var _ListContext = _interopRequireDefault(require("../List/ListContext"));
var _zeroStyled = require("../zero-styled");
var _DefaultPropsProvider = require("../DefaultPropsProvider");
var _listItemTextClasses = _interopRequireWildcard(require("./listItemTextClasses"));
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
var _jsxRuntime = require("react/jsx-runtime");
const useUtilityClasses = ownerState => {
const {
classes,
inset,
primary,
secondary,
dense
} = ownerState;
const slots = {
root: ['root', inset && 'inset', dense && 'dense', primary && secondary && 'multiline'],
primary: ['primary'],
secondary: ['secondary']
};
return (0, _composeClasses.default)(slots, _listItemTextClasses.getListItemTextUtilityClass, classes);
};
const ListItemTextRoot = (0, _zeroStyled.styled)('div', {
name: 'MuiListItemText',
slot: 'Root',
overridesResolver: (props, styles) => {
const {
ownerState
} = props;
return [{
[`& .${_listItemTextClasses.default.primary}`]: styles.primary
}, {
[`& .${_listItemTextClasses.default.secondary}`]: styles.secondary
}, styles.root, ownerState.inset && styles.inset, ownerState.primary && ownerState.secondary && styles.multiline, ownerState.dense && styles.dense];
}
})({
flex: '1 1 auto',
minWidth: 0,
marginTop: 4,
marginBottom: 4,
[`.${_Typography.typographyClasses.root}:where(& .${_listItemTextClasses.default.primary})`]: {
display: 'block'
},
[`.${_Typography.typographyClasses.root}:where(& .${_listItemTextClasses.default.secondary})`]: {
display: 'block'
},
variants: [{
props: ({
ownerState
}) => ownerState.primary && ownerState.secondary,
style: {
marginTop: 6,
marginBottom: 6
}
}, {
props: ({
ownerState
}) => ownerState.inset,
style: {
paddingLeft: 56
}
}]
});
const ListItemText = /*#__PURE__*/React.forwardRef(function ListItemText(inProps, ref) {
const props = (0, _DefaultPropsProvider.useDefaultProps)({
props: inProps,
name: 'MuiListItemText'
});
const {
children,
className,
disableTypography = false,
inset = false,
primary: primaryProp,
primaryTypographyProps,
secondary: secondaryProp,
secondaryTypographyProps,
slots = {},
slotProps = {},
...other
} = props;
const {
dense
} = React.useContext(_ListContext.default);
let primary = primaryProp != null ? primaryProp : children;
let secondary = secondaryProp;
const ownerState = {
...props,
disableTypography,
inset,
primary: !!primary,
secondary: !!secondary,
dense
};
const classes = useUtilityClasses(ownerState);
const externalForwardedProps = {
slots,
slotProps: {
primary: primaryTypographyProps,
secondary: secondaryTypographyProps,
...slotProps
}
};
const [RootSlot, rootSlotProps] = (0, _useSlot.default)('root', {
className: (0, _clsx.default)(classes.root, className),
elementType: ListItemTextRoot,
externalForwardedProps: {
...externalForwardedProps,
...other
},
ownerState,
ref
});
const [PrimarySlot, primarySlotProps] = (0, _useSlot.default)('primary', {
className: classes.primary,
elementType: _Typography.default,
externalForwardedProps,
ownerState
});
const [SecondarySlot, secondarySlotProps] = (0, _useSlot.default)('secondary', {
className: classes.secondary,
elementType: _Typography.default,
externalForwardedProps,
ownerState
});
if (primary != null && primary.type !== _Typography.default && !disableTypography) {
primary = /*#__PURE__*/(0, _jsxRuntime.jsx)(PrimarySlot, {
variant: dense ? 'body2' : 'body1',
component: primarySlotProps?.variant ? undefined : 'span',
...primarySlotProps,
children: primary
});
}
if (secondary != null && secondary.type !== _Typography.default && !disableTypography) {
secondary = /*#__PURE__*/(0, _jsxRuntime.jsx)(SecondarySlot, {
variant: "body2",
color: "textSecondary",
...secondarySlotProps,
children: secondary
});
}
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(RootSlot, {
...rootSlotProps,
children: [primary, secondary]
});
});
process.env.NODE_ENV !== "production" ? ListItemText.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`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* Alias for the `primary` prop.
*/
children: _propTypes.default.node,
/**
* Override or extend the styles applied to the component.
*/
classes: _propTypes.default.object,
/**
* @ignore
*/
className: _propTypes.default.string,
/**
* If `true`, the children won't be wrapped by a Typography component.
* This can be useful to render an alternative Typography variant by wrapping
* the `children` (or `primary`) text, and optional `secondary` text
* with the Typography component.
* @default false
*/
disableTypography: _propTypes.default.bool,
/**
* If `true`, the children are indented.
* This should be used if there is no left avatar or left icon.
* @default false
*/
inset: _propTypes.default.bool,
/**
* The main content element.
*/
primary: _propTypes.default.node,
/**
* These props will be forwarded to the primary typography component
* (as long as disableTypography is not `true`).
* @deprecated Use `slotProps.primary` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
*/
primaryTypographyProps: _propTypes.default.object,
/**
* The secondary content element.
*/
secondary: _propTypes.default.node,
/**
* These props will be forwarded to the secondary typography component
* (as long as disableTypography is not `true`).
* @deprecated Use `slotProps.secondary` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
*/
secondaryTypographyProps: _propTypes.default.object,
/**
* The props used for each slot inside.
* @default {}
*/
slotProps: _propTypes.default.shape({
primary: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
root: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
secondary: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
}),
/**
* The components used for each slot inside.
* @default {}
*/
slots: _propTypes.default.shape({
primary: _propTypes.default.elementType,
root: _propTypes.default.elementType,
secondary: _propTypes.default.elementType
}),
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
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])
} : void 0;
var _default = exports.default = ListItemText;

4
node_modules/@mui/material/ListItemText/index.d.ts generated vendored Normal file
View file

@ -0,0 +1,4 @@
export { default } from "./ListItemText.js";
export * from "./ListItemText.js";
export { default as listItemTextClasses } from "./listItemTextClasses.js";
export * from "./listItemTextClasses.js";

35
node_modules/@mui/material/ListItemText/index.js generated vendored Normal file
View file

@ -0,0 +1,35 @@
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _exportNames = {
listItemTextClasses: true
};
Object.defineProperty(exports, "default", {
enumerable: true,
get: function () {
return _ListItemText.default;
}
});
Object.defineProperty(exports, "listItemTextClasses", {
enumerable: true,
get: function () {
return _listItemTextClasses.default;
}
});
var _ListItemText = _interopRequireDefault(require("./ListItemText"));
var _listItemTextClasses = _interopRequireWildcard(require("./listItemTextClasses"));
Object.keys(_listItemTextClasses).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _listItemTextClasses[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _listItemTextClasses[key];
}
});
});

View file

@ -0,0 +1,18 @@
export interface ListItemTextClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the Typography component if primary and secondary are set. */
multiline: string;
/** Styles applied to the Typography component if dense. */
dense: string;
/** Styles applied to the root element if `inset={true}`. */
inset: string;
/** Styles applied to the primary `Typography` component. */
primary: string;
/** Styles applied to the secondary `Typography` component. */
secondary: string;
}
export type ListItemTextClassKey = keyof ListItemTextClasses;
export declare function getListItemTextUtilityClass(slot: string): string;
declare const listItemTextClasses: ListItemTextClasses;
export default listItemTextClasses;

View file

@ -0,0 +1,15 @@
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
exports.getListItemTextUtilityClass = getListItemTextUtilityClass;
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
function getListItemTextUtilityClass(slot) {
return (0, _generateUtilityClass.default)('MuiListItemText', slot);
}
const listItemTextClasses = (0, _generateUtilityClasses.default)('MuiListItemText', ['root', 'multiline', 'dense', 'inset', 'primary', 'secondary']);
var _default = exports.default = listItemTextClasses;