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,37 @@
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 { ListItemSecondaryActionClasses } from "./listItemSecondaryActionClasses.js";
export interface ListItemSecondaryActionProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>> {
/**
* The content of the component, normally an `IconButton` or selection control.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<ListItemSecondaryActionClasses>;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
}
/**
* Must be used as the last child of ListItem to function properly.
*
* Demos:
*
* - [Lists](https://mui.com/material-ui/react-list/)
*
* API:
*
* - [ListItemSecondaryAction API](https://mui.com/material-ui/api/list-item-secondary-action/)
*
* @deprecated Use the `secondaryAction` prop in the `ListItem` component instead. This component will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
*/
declare const ListItemSecondaryAction: ((props: ListItemSecondaryActionProps) => React.JSX.Element) & {
muiName: string;
};
export default ListItemSecondaryAction;

View file

@ -0,0 +1,96 @@
'use client';
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import composeClasses from '@mui/utils/composeClasses';
import { styled } from "../zero-styled/index.js";
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
import ListContext from "../List/ListContext.js";
import { getListItemSecondaryActionClassesUtilityClass } from "./listItemSecondaryActionClasses.js";
import { jsx as _jsx } from "react/jsx-runtime";
const useUtilityClasses = ownerState => {
const {
disableGutters,
classes
} = ownerState;
const slots = {
root: ['root', disableGutters && 'disableGutters']
};
return composeClasses(slots, getListItemSecondaryActionClassesUtilityClass, classes);
};
const ListItemSecondaryActionRoot = styled('div', {
name: 'MuiListItemSecondaryAction',
slot: 'Root',
overridesResolver: (props, styles) => {
const {
ownerState
} = props;
return [styles.root, ownerState.disableGutters && styles.disableGutters];
}
})({
position: 'absolute',
right: 16,
top: '50%',
transform: 'translateY(-50%)',
variants: [{
props: ({
ownerState
}) => ownerState.disableGutters,
style: {
right: 0
}
}]
});
/**
* Must be used as the last child of ListItem to function properly.
*
* @deprecated Use the `secondaryAction` prop in the `ListItem` component instead. This component will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
*/
const ListItemSecondaryAction = /*#__PURE__*/React.forwardRef(function ListItemSecondaryAction(inProps, ref) {
const props = useDefaultProps({
props: inProps,
name: 'MuiListItemSecondaryAction'
});
const {
className,
...other
} = props;
const context = React.useContext(ListContext);
const ownerState = {
...props,
disableGutters: context.disableGutters
};
const classes = useUtilityClasses(ownerState);
return /*#__PURE__*/_jsx(ListItemSecondaryActionRoot, {
className: clsx(classes.root, className),
ownerState: ownerState,
ref: ref,
...other
});
});
process.env.NODE_ENV !== "production" ? ListItemSecondaryAction.propTypes /* remove-proptypes */ = {
// ┌────────────────────────────── Warning ──────────────────────────────┐
// │ These PropTypes are generated from the TypeScript type definitions. │
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* The content of the component, normally an `IconButton` or selection control.
*/
children: PropTypes.node,
/**
* Override or extend the styles applied to the component.
*/
classes: PropTypes.object,
/**
* @ignore
*/
className: PropTypes.string,
/**
* 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;
ListItemSecondaryAction.muiName = 'ListItemSecondaryAction';
export default ListItemSecondaryAction;

View file

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

View file

@ -0,0 +1,3 @@
export { default } from "./ListItemSecondaryAction.js";
export { default as listItemSecondaryActionClasses } from "./listItemSecondaryActionClasses.js";
export * from "./listItemSecondaryActionClasses.js";

View file

@ -0,0 +1,10 @@
export interface ListItemSecondaryActionClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element when the parent `ListItem` has `disableGutters={true}`. */
disableGutters: string;
}
export type ListItemSecondaryActionClassKey = keyof ListItemSecondaryActionClasses;
export declare function getListItemSecondaryActionClassesUtilityClass(slot: string): string;
declare const listItemSecondaryActionClasses: ListItemSecondaryActionClasses;
export default listItemSecondaryActionClasses;

View file

@ -0,0 +1,7 @@
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
import generateUtilityClass from '@mui/utils/generateUtilityClass';
export function getListItemSecondaryActionClassesUtilityClass(slot) {
return generateUtilityClass('MuiListItemSecondaryAction', slot);
}
const listItemSecondaryActionClasses = generateUtilityClasses('MuiListItemSecondaryAction', ['root', 'disableGutters']);
export default listItemSecondaryActionClasses;