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

75
node_modules/@mui/material/Tab/Tab.d.ts generated vendored Normal file
View file

@ -0,0 +1,75 @@
import * as React from 'react';
import { SxProps } from '@mui/system';
import { Theme } from "../styles/index.js";
import { ExtendButtonBase, ExtendButtonBaseTypeMap } from "../ButtonBase/index.js";
import { OverrideProps } from "../OverridableComponent/index.js";
import { TabClasses } from "./tabClasses.js";
export interface TabOwnProps {
/**
* This prop isn't supported.
* Use the `component` prop if you need to change the children structure.
*/
children?: null;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<TabClasses>;
/**
* If `true`, the component is disabled.
* @default false
*/
disabled?: boolean;
/**
* If `true`, the keyboard focus ripple is disabled.
* @default false
*/
disableFocusRipple?: boolean;
/**
* The icon to display.
*/
icon?: string | React.ReactElement<unknown>;
/**
* The position of the icon relative to the label.
* @default 'top'
*/
iconPosition?: 'top' | 'bottom' | 'start' | 'end';
/**
* The label element.
*/
label?: React.ReactNode;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
/**
* You can provide your own value. Otherwise, we fallback to the child position index.
*/
value?: any;
/**
* Tab labels appear in a single row.
* They can use a second line if needed.
* @default false
*/
wrapped?: boolean;
}
export type TabTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div'> = ExtendButtonBaseTypeMap<{
props: AdditionalProps & TabOwnProps;
defaultComponent: RootComponent;
}>;
/**
*
* Demos:
*
* - [Tabs](https://mui.com/material-ui/react-tabs/)
*
* API:
*
* - [Tab API](https://mui.com/material-ui/api/tab/)
* - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
*/
declare const Tab: ExtendButtonBase<TabTypeMap>;
export type TabProps<RootComponent extends React.ElementType = TabTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<TabTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
component?: React.ElementType;
};
export default Tab;

345
node_modules/@mui/material/Tab/Tab.js generated vendored Normal file
View file

@ -0,0 +1,345 @@
"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 _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
var _zeroStyled = require("../zero-styled");
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
var _DefaultPropsProvider = require("../DefaultPropsProvider");
var _unsupportedProp = _interopRequireDefault(require("../utils/unsupportedProp"));
var _tabClasses = _interopRequireWildcard(require("./tabClasses"));
var _jsxRuntime = require("react/jsx-runtime");
const useUtilityClasses = ownerState => {
const {
classes,
textColor,
fullWidth,
wrapped,
icon,
label,
selected,
disabled
} = ownerState;
const slots = {
root: ['root', icon && label && 'labelIcon', `textColor${(0, _capitalize.default)(textColor)}`, fullWidth && 'fullWidth', wrapped && 'wrapped', selected && 'selected', disabled && 'disabled'],
icon: ['iconWrapper', 'icon']
};
return (0, _composeClasses.default)(slots, _tabClasses.getTabUtilityClass, classes);
};
const TabRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
name: 'MuiTab',
slot: 'Root',
overridesResolver: (props, styles) => {
const {
ownerState
} = props;
return [styles.root, ownerState.label && ownerState.icon && styles.labelIcon, styles[`textColor${(0, _capitalize.default)(ownerState.textColor)}`], ownerState.fullWidth && styles.fullWidth, ownerState.wrapped && styles.wrapped, {
[`& .${_tabClasses.default.iconWrapper}`]: styles.iconWrapper
}, {
[`& .${_tabClasses.default.icon}`]: styles.icon
}];
}
})((0, _memoTheme.default)(({
theme
}) => ({
...theme.typography.button,
maxWidth: 360,
minWidth: 90,
position: 'relative',
minHeight: 48,
flexShrink: 0,
padding: '12px 16px',
overflow: 'hidden',
whiteSpace: 'normal',
textAlign: 'center',
lineHeight: 1.25,
variants: [{
props: ({
ownerState
}) => ownerState.label && (ownerState.iconPosition === 'top' || ownerState.iconPosition === 'bottom'),
style: {
flexDirection: 'column'
}
}, {
props: ({
ownerState
}) => ownerState.label && ownerState.iconPosition !== 'top' && ownerState.iconPosition !== 'bottom',
style: {
flexDirection: 'row'
}
}, {
props: ({
ownerState
}) => ownerState.icon && ownerState.label,
style: {
minHeight: 72,
paddingTop: 9,
paddingBottom: 9
}
}, {
props: ({
ownerState,
iconPosition
}) => ownerState.icon && ownerState.label && iconPosition === 'top',
style: {
[`& > .${_tabClasses.default.icon}`]: {
marginBottom: 6
}
}
}, {
props: ({
ownerState,
iconPosition
}) => ownerState.icon && ownerState.label && iconPosition === 'bottom',
style: {
[`& > .${_tabClasses.default.icon}`]: {
marginTop: 6
}
}
}, {
props: ({
ownerState,
iconPosition
}) => ownerState.icon && ownerState.label && iconPosition === 'start',
style: {
[`& > .${_tabClasses.default.icon}`]: {
marginRight: theme.spacing(1)
}
}
}, {
props: ({
ownerState,
iconPosition
}) => ownerState.icon && ownerState.label && iconPosition === 'end',
style: {
[`& > .${_tabClasses.default.icon}`]: {
marginLeft: theme.spacing(1)
}
}
}, {
props: {
textColor: 'inherit'
},
style: {
color: 'inherit',
opacity: 0.6,
// same opacity as theme.palette.text.secondary
[`&.${_tabClasses.default.selected}`]: {
opacity: 1
},
[`&.${_tabClasses.default.disabled}`]: {
opacity: (theme.vars || theme).palette.action.disabledOpacity
}
}
}, {
props: {
textColor: 'primary'
},
style: {
color: (theme.vars || theme).palette.text.secondary,
[`&.${_tabClasses.default.selected}`]: {
color: (theme.vars || theme).palette.primary.main
},
[`&.${_tabClasses.default.disabled}`]: {
color: (theme.vars || theme).palette.text.disabled
}
}
}, {
props: {
textColor: 'secondary'
},
style: {
color: (theme.vars || theme).palette.text.secondary,
[`&.${_tabClasses.default.selected}`]: {
color: (theme.vars || theme).palette.secondary.main
},
[`&.${_tabClasses.default.disabled}`]: {
color: (theme.vars || theme).palette.text.disabled
}
}
}, {
props: ({
ownerState
}) => ownerState.fullWidth,
style: {
flexShrink: 1,
flexGrow: 1,
flexBasis: 0,
maxWidth: 'none'
}
}, {
props: ({
ownerState
}) => ownerState.wrapped,
style: {
fontSize: theme.typography.pxToRem(12)
}
}]
})));
const Tab = /*#__PURE__*/React.forwardRef(function Tab(inProps, ref) {
const props = (0, _DefaultPropsProvider.useDefaultProps)({
props: inProps,
name: 'MuiTab'
});
const {
className,
disabled = false,
disableFocusRipple = false,
// eslint-disable-next-line react/prop-types
fullWidth,
icon: iconProp,
iconPosition = 'top',
// eslint-disable-next-line react/prop-types
indicator,
label,
onChange,
onClick,
onFocus,
// eslint-disable-next-line react/prop-types
selected,
// eslint-disable-next-line react/prop-types
selectionFollowsFocus,
// eslint-disable-next-line react/prop-types
textColor = 'inherit',
value,
wrapped = false,
...other
} = props;
const ownerState = {
...props,
disabled,
disableFocusRipple,
selected,
icon: !!iconProp,
iconPosition,
label: !!label,
fullWidth,
textColor,
wrapped
};
const classes = useUtilityClasses(ownerState);
const icon = iconProp && label && /*#__PURE__*/React.isValidElement(iconProp) ? /*#__PURE__*/React.cloneElement(iconProp, {
className: (0, _clsx.default)(classes.icon, iconProp.props.className)
}) : iconProp;
const handleClick = event => {
if (!selected && onChange) {
onChange(event, value);
}
if (onClick) {
onClick(event);
}
};
const handleFocus = event => {
if (selectionFollowsFocus && !selected && onChange) {
onChange(event, value);
}
if (onFocus) {
onFocus(event);
}
};
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(TabRoot, {
focusRipple: !disableFocusRipple,
className: (0, _clsx.default)(classes.root, className),
ref: ref,
role: "tab",
"aria-selected": selected,
disabled: disabled,
onClick: handleClick,
onFocus: handleFocus,
ownerState: ownerState,
tabIndex: selected ? 0 : -1,
...other,
children: [iconPosition === 'top' || iconPosition === 'start' ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
children: [icon, label]
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
children: [label, icon]
}), indicator]
});
});
process.env.NODE_ENV !== "production" ? Tab.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`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* This prop isn't supported.
* Use the `component` prop if you need to change the children structure.
*/
children: _unsupportedProp.default,
/**
* Override or extend the styles applied to the component.
*/
classes: _propTypes.default.object,
/**
* @ignore
*/
className: _propTypes.default.string,
/**
* If `true`, the component is disabled.
* @default false
*/
disabled: _propTypes.default.bool,
/**
* If `true`, the keyboard focus ripple is disabled.
* @default false
*/
disableFocusRipple: _propTypes.default.bool,
/**
* If `true`, the ripple effect is disabled.
*
* Without a ripple there is no styling for :focus-visible by default. Be sure
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
* @default false
*/
disableRipple: _propTypes.default.bool,
/**
* The icon to display.
*/
icon: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.string]),
/**
* The position of the icon relative to the label.
* @default 'top'
*/
iconPosition: _propTypes.default.oneOf(['bottom', 'end', 'start', 'top']),
/**
* The label element.
*/
label: _propTypes.default.node,
/**
* @ignore
*/
onChange: _propTypes.default.func,
/**
* @ignore
*/
onClick: _propTypes.default.func,
/**
* @ignore
*/
onFocus: _propTypes.default.func,
/**
* 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]),
/**
* You can provide your own value. Otherwise, we fallback to the child position index.
*/
value: _propTypes.default.any,
/**
* Tab labels appear in a single row.
* They can use a second line if needed.
* @default false
*/
wrapped: _propTypes.default.bool
} : void 0;
var _default = exports.default = Tab;

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

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

35
node_modules/@mui/material/Tab/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 = {
tabClasses: true
};
Object.defineProperty(exports, "default", {
enumerable: true,
get: function () {
return _Tab.default;
}
});
Object.defineProperty(exports, "tabClasses", {
enumerable: true,
get: function () {
return _tabClasses.default;
}
});
var _Tab = _interopRequireDefault(require("./Tab"));
var _tabClasses = _interopRequireWildcard(require("./tabClasses"));
Object.keys(_tabClasses).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _tabClasses[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _tabClasses[key];
}
});
});

30
node_modules/@mui/material/Tab/tabClasses.d.ts generated vendored Normal file
View file

@ -0,0 +1,30 @@
export interface TabClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if both `icon` and `label` are provided. */
labelIcon: string;
/** Styles applied to the root element if the parent [`Tabs`](/material-ui/api/tabs/) has `textColor="inherit"`. */
textColorInherit: string;
/** Styles applied to the root element if the parent [`Tabs`](/material-ui/api/tabs/) has `textColor="primary"`. */
textColorPrimary: string;
/** Styles applied to the root element if the parent [`Tabs`](/material-ui/api/tabs/) has `textColor="secondary"`. */
textColorSecondary: string;
/** State class applied to the root element if `selected={true}` (controlled by the Tabs component). */
selected: string;
/** State class applied to the root element if `disabled={true}` (controlled by the Tabs component). */
disabled: string;
/** Styles applied to the root element if `fullWidth={true}` (controlled by the Tabs component). */
fullWidth: string;
/** Styles applied to the root element if `wrapped={true}`. */
wrapped: string;
/** Styles applied to the `icon` HTML element if both `icon` and `label` are provided.
* @deprecated Use `icon` class instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details
*/
iconWrapper: string;
/** Styles applied to the `icon` HTML element if both `icon` and `label` are provided. */
icon: string;
}
export type TabClassKey = keyof TabClasses;
export declare function getTabUtilityClass(slot: string): string;
declare const tabClasses: TabClasses;
export default tabClasses;

15
node_modules/@mui/material/Tab/tabClasses.js generated vendored Normal file
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.getTabUtilityClass = getTabUtilityClass;
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
function getTabUtilityClass(slot) {
return (0, _generateUtilityClass.default)('MuiTab', slot);
}
const tabClasses = (0, _generateUtilityClasses.default)('MuiTab', ['root', 'labelIcon', 'textColorInherit', 'textColorPrimary', 'textColorSecondary', 'selected', 'disabled', 'fullWidth', 'wrapped', 'iconWrapper', 'icon']);
var _default = exports.default = tabClasses;