neue Homepage auf react basis

This commit is contained in:
2026-08-07 21:39:30 +02:00
parent 164bdd19ad
commit ee89442c04
52191 changed files with 1230242 additions and 58 deletions
+43
View File
@@ -0,0 +1,43 @@
import * as React from 'react';
import { SxProps } from '@mui/system';
import { Theme } from "../styles/index.mjs";
import { InternalStandardProps as StandardProps } from "../internal/index.mjs";
import { SpeedDialIconClasses } from "./speedDialIconClasses.mjs";
export interface SpeedDialIconProps extends StandardProps<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<SpeedDialIconClasses> | undefined;
/**
* The icon to display.
*/
icon?: React.ReactNode;
/**
* The icon to display in the SpeedDial Floating Action Button when the SpeedDial is open.
*/
openIcon?: React.ReactNode;
/**
* @ignore
* If `true`, the component is shown.
*/
open?: boolean | undefined;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme> | undefined;
}
/**
*
* Demos:
*
* - [Speed Dial](https://mui.com/material-ui/react-speed-dial/)
*
* API:
*
* - [SpeedDialIcon API](https://mui.com/material-ui/api/speed-dial-icon/)
*/
declare const SpeedDialIcon: ((props: SpeedDialIconProps) => React.JSX.Element) & {
muiName: string;
};
export default SpeedDialIcon;
+43
View File
@@ -0,0 +1,43 @@
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 { SpeedDialIconClasses } from "./speedDialIconClasses.js";
export interface SpeedDialIconProps extends StandardProps<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<SpeedDialIconClasses> | undefined;
/**
* The icon to display.
*/
icon?: React.ReactNode;
/**
* The icon to display in the SpeedDial Floating Action Button when the SpeedDial is open.
*/
openIcon?: React.ReactNode;
/**
* @ignore
* If `true`, the component is shown.
*/
open?: boolean | undefined;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme> | undefined;
}
/**
*
* Demos:
*
* - [Speed Dial](https://mui.com/material-ui/react-speed-dial/)
*
* API:
*
* - [SpeedDialIcon API](https://mui.com/material-ui/api/speed-dial-icon/)
*/
declare const SpeedDialIcon: ((props: SpeedDialIconProps) => React.JSX.Element) & {
muiName: string;
};
export default SpeedDialIcon;
+160
View File
@@ -0,0 +1,160 @@
"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 _zeroStyled = require("../zero-styled");
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
var _DefaultPropsProvider = require("../DefaultPropsProvider");
var _Add = _interopRequireDefault(require("../internal/svg-icons/Add"));
var _speedDialIconClasses = _interopRequireWildcard(require("./speedDialIconClasses"));
var _utils = require("../transitions/utils");
var _jsxRuntime = require("react/jsx-runtime");
const useUtilityClasses = ownerState => {
const {
classes,
open,
openIcon
} = ownerState;
const slots = {
root: ['root'],
icon: ['icon', open && 'iconOpen', openIcon && open && 'iconWithOpenIconOpen'],
openIcon: ['openIcon', open && 'openIconOpen']
};
return (0, _composeClasses.default)(slots, _speedDialIconClasses.getSpeedDialIconUtilityClass, classes);
};
const SpeedDialIconRoot = (0, _zeroStyled.styled)('span', {
name: 'MuiSpeedDialIcon',
slot: 'Root',
overridesResolver: (props, styles) => {
const {
ownerState
} = props;
return [{
[`& .${_speedDialIconClasses.default.icon}`]: styles.icon
}, {
[`& .${_speedDialIconClasses.default.icon}`]: ownerState.open && styles.iconOpen
}, {
[`& .${_speedDialIconClasses.default.icon}`]: ownerState.open && ownerState.openIcon && styles.iconWithOpenIconOpen
}, {
[`& .${_speedDialIconClasses.default.openIcon}`]: styles.openIcon
}, {
[`& .${_speedDialIconClasses.default.openIcon}`]: ownerState.open && styles.openIconOpen
}, styles.root];
}
})((0, _memoTheme.default)(({
theme
}) => {
return {
height: 24,
[`& .${_speedDialIconClasses.default.icon}`]: {
...(0, _utils.getTransitionStyles)(theme, ['transform', 'opacity'], {
duration: theme.transitions.duration.short
})
},
[`& .${_speedDialIconClasses.default.openIcon}`]: {
position: 'absolute',
...(0, _utils.getTransitionStyles)(theme, ['transform', 'opacity'], {
duration: theme.transitions.duration.short
}),
opacity: 0,
transform: 'rotate(-45deg)'
},
variants: [{
props: ({
ownerState
}) => ownerState.open,
style: {
[`& .${_speedDialIconClasses.default.icon}`]: {
transform: 'rotate(45deg)'
},
[`& .${_speedDialIconClasses.default.openIcon}`]: {
transform: 'rotate(0deg)',
opacity: 1
}
}
}, {
props: ({
ownerState
}) => ownerState.open && ownerState.openIcon,
style: {
[`& .${_speedDialIconClasses.default.icon}`]: {
opacity: 0
}
}
}]
};
}));
const SpeedDialIcon = /*#__PURE__*/React.forwardRef(function SpeedDialIcon(inProps, ref) {
const props = (0, _DefaultPropsProvider.useDefaultProps)({
props: inProps,
name: 'MuiSpeedDialIcon'
});
const {
className,
icon: iconProp,
open,
openIcon: openIconProp,
...other
} = props;
const ownerState = props;
const classes = useUtilityClasses(ownerState);
function formatIcon(icon, newClassName) {
if (/*#__PURE__*/React.isValidElement(icon)) {
return /*#__PURE__*/React.cloneElement(icon, {
className: newClassName
});
}
return icon;
}
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(SpeedDialIconRoot, {
className: (0, _clsx.default)(classes.root, className),
ref: ref,
ownerState: ownerState,
...other,
children: [openIconProp ? formatIcon(openIconProp, classes.openIcon) : null, iconProp ? formatIcon(iconProp, classes.icon) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Add.default, {
className: classes.icon
})]
});
});
process.env.NODE_ENV !== "production" ? SpeedDialIcon.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`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* Override or extend the styles applied to the component.
*/
classes: _propTypes.default.object,
/**
* @ignore
*/
className: _propTypes.default.string,
/**
* The icon to display.
*/
icon: _propTypes.default.node,
/**
* @ignore
* If `true`, the component is shown.
*/
open: _propTypes.default.bool,
/**
* The icon to display in the SpeedDial Floating Action Button when the SpeedDial is open.
*/
openIcon: _propTypes.default.node,
/**
* 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;
SpeedDialIcon.muiName = 'SpeedDialIcon';
var _default = exports.default = SpeedDialIcon;
+153
View File
@@ -0,0 +1,153 @@
'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.mjs";
import memoTheme from "../utils/memoTheme.mjs";
import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
import AddIcon from "../internal/svg-icons/Add.mjs";
import speedDialIconClasses, { getSpeedDialIconUtilityClass } from "./speedDialIconClasses.mjs";
import { getTransitionStyles } from "../transitions/utils.mjs";
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
const useUtilityClasses = ownerState => {
const {
classes,
open,
openIcon
} = ownerState;
const slots = {
root: ['root'],
icon: ['icon', open && 'iconOpen', openIcon && open && 'iconWithOpenIconOpen'],
openIcon: ['openIcon', open && 'openIconOpen']
};
return composeClasses(slots, getSpeedDialIconUtilityClass, classes);
};
const SpeedDialIconRoot = styled('span', {
name: 'MuiSpeedDialIcon',
slot: 'Root',
overridesResolver: (props, styles) => {
const {
ownerState
} = props;
return [{
[`& .${speedDialIconClasses.icon}`]: styles.icon
}, {
[`& .${speedDialIconClasses.icon}`]: ownerState.open && styles.iconOpen
}, {
[`& .${speedDialIconClasses.icon}`]: ownerState.open && ownerState.openIcon && styles.iconWithOpenIconOpen
}, {
[`& .${speedDialIconClasses.openIcon}`]: styles.openIcon
}, {
[`& .${speedDialIconClasses.openIcon}`]: ownerState.open && styles.openIconOpen
}, styles.root];
}
})(memoTheme(({
theme
}) => {
return {
height: 24,
[`& .${speedDialIconClasses.icon}`]: {
...getTransitionStyles(theme, ['transform', 'opacity'], {
duration: theme.transitions.duration.short
})
},
[`& .${speedDialIconClasses.openIcon}`]: {
position: 'absolute',
...getTransitionStyles(theme, ['transform', 'opacity'], {
duration: theme.transitions.duration.short
}),
opacity: 0,
transform: 'rotate(-45deg)'
},
variants: [{
props: ({
ownerState
}) => ownerState.open,
style: {
[`& .${speedDialIconClasses.icon}`]: {
transform: 'rotate(45deg)'
},
[`& .${speedDialIconClasses.openIcon}`]: {
transform: 'rotate(0deg)',
opacity: 1
}
}
}, {
props: ({
ownerState
}) => ownerState.open && ownerState.openIcon,
style: {
[`& .${speedDialIconClasses.icon}`]: {
opacity: 0
}
}
}]
};
}));
const SpeedDialIcon = /*#__PURE__*/React.forwardRef(function SpeedDialIcon(inProps, ref) {
const props = useDefaultProps({
props: inProps,
name: 'MuiSpeedDialIcon'
});
const {
className,
icon: iconProp,
open,
openIcon: openIconProp,
...other
} = props;
const ownerState = props;
const classes = useUtilityClasses(ownerState);
function formatIcon(icon, newClassName) {
if (/*#__PURE__*/React.isValidElement(icon)) {
return /*#__PURE__*/React.cloneElement(icon, {
className: newClassName
});
}
return icon;
}
return /*#__PURE__*/_jsxs(SpeedDialIconRoot, {
className: clsx(classes.root, className),
ref: ref,
ownerState: ownerState,
...other,
children: [openIconProp ? formatIcon(openIconProp, classes.openIcon) : null, iconProp ? formatIcon(iconProp, classes.icon) : /*#__PURE__*/_jsx(AddIcon, {
className: classes.icon
})]
});
});
process.env.NODE_ENV !== "production" ? SpeedDialIcon.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`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* Override or extend the styles applied to the component.
*/
classes: PropTypes.object,
/**
* @ignore
*/
className: PropTypes.string,
/**
* The icon to display.
*/
icon: PropTypes.node,
/**
* @ignore
* If `true`, the component is shown.
*/
open: PropTypes.bool,
/**
* The icon to display in the SpeedDial Floating Action Button when the SpeedDial is open.
*/
openIcon: PropTypes.node,
/**
* 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;
SpeedDialIcon.muiName = 'SpeedDialIcon';
export default SpeedDialIcon;
+4
View File
@@ -0,0 +1,4 @@
export { default } from "./SpeedDialIcon.mjs";
export * from "./SpeedDialIcon.mjs";
export { default as speedDialIconClasses } from "./speedDialIconClasses.mjs";
export * from "./speedDialIconClasses.mjs";
+4
View File
@@ -0,0 +1,4 @@
export { default } from "./SpeedDialIcon.js";
export * from "./SpeedDialIcon.js";
export { default as speedDialIconClasses } from "./speedDialIconClasses.js";
export * from "./speedDialIconClasses.js";
+35
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 = {
speedDialIconClasses: true
};
Object.defineProperty(exports, "default", {
enumerable: true,
get: function () {
return _SpeedDialIcon.default;
}
});
Object.defineProperty(exports, "speedDialIconClasses", {
enumerable: true,
get: function () {
return _speedDialIconClasses.default;
}
});
var _SpeedDialIcon = _interopRequireDefault(require("./SpeedDialIcon"));
var _speedDialIconClasses = _interopRequireWildcard(require("./speedDialIconClasses"));
Object.keys(_speedDialIconClasses).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _speedDialIconClasses[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _speedDialIconClasses[key];
}
});
});
+3
View File
@@ -0,0 +1,3 @@
export { default } from "./SpeedDialIcon.mjs";
export { default as speedDialIconClasses } from "./speedDialIconClasses.mjs";
export * from "./speedDialIconClasses.mjs";
@@ -0,0 +1,18 @@
export interface SpeedDialIconClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the icon component. */
icon: string;
/** Styles applied to the icon component if `open={true}`. */
iconOpen: string;
/** Styles applied to the icon when an `openIcon` is provided and if `open={true}`. */
iconWithOpenIconOpen: string;
/** Styles applied to the `openIcon` if provided. */
openIcon: string;
/** Styles applied to the `openIcon` if provided and if `open={true}`. */
openIconOpen: string;
}
export type SpeedDialIconClassKey = keyof SpeedDialIconClasses;
export declare function getSpeedDialIconUtilityClass(slot: string): string;
declare const speedDialIconClasses: SpeedDialIconClasses;
export default speedDialIconClasses;
@@ -0,0 +1,18 @@
export interface SpeedDialIconClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the icon component. */
icon: string;
/** Styles applied to the icon component if `open={true}`. */
iconOpen: string;
/** Styles applied to the icon when an `openIcon` is provided and if `open={true}`. */
iconWithOpenIconOpen: string;
/** Styles applied to the `openIcon` if provided. */
openIcon: string;
/** Styles applied to the `openIcon` if provided and if `open={true}`. */
openIconOpen: string;
}
export type SpeedDialIconClassKey = keyof SpeedDialIconClasses;
export declare function getSpeedDialIconUtilityClass(slot: string): string;
declare const speedDialIconClasses: SpeedDialIconClasses;
export default speedDialIconClasses;
@@ -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.getSpeedDialIconUtilityClass = getSpeedDialIconUtilityClass;
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
function getSpeedDialIconUtilityClass(slot) {
return (0, _generateUtilityClass.default)('MuiSpeedDialIcon', slot);
}
const speedDialIconClasses = (0, _generateUtilityClasses.default)('MuiSpeedDialIcon', ['root', 'icon', 'iconOpen', 'iconWithOpenIconOpen', 'openIcon', 'openIconOpen']);
var _default = exports.default = speedDialIconClasses;
@@ -0,0 +1,7 @@
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
import generateUtilityClass from '@mui/utils/generateUtilityClass';
export function getSpeedDialIconUtilityClass(slot) {
return generateUtilityClass('MuiSpeedDialIcon', slot);
}
const speedDialIconClasses = generateUtilityClasses('MuiSpeedDialIcon', ['root', 'icon', 'iconOpen', 'iconWithOpenIconOpen', 'openIcon', 'openIconOpen']);
export default speedDialIconClasses;