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
+82
View File
@@ -0,0 +1,82 @@
import * as React from 'react';
import { OverridableStringUnion } from '@mui/types';
import { SxProps } from '@mui/system';
import { PropTypes, Theme } from "../styles/index.mjs";
import { ExtendButtonBase, ExtendButtonBaseTypeMap } from "../ButtonBase/index.mjs";
import { OverrideProps } from "../OverridableComponent/index.mjs";
import { FabClasses } from "./fabClasses.mjs";
export interface FabPropsVariantOverrides {}
export interface FabPropsSizeOverrides {}
export interface FabPropsColorOverrides {}
export interface FabOwnProps {
/**
* The content of the component.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<FabClasses> | undefined;
/**
* The color of the component.
* It supports both default and custom theme colors, which can be added as shown in the
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
* @default 'default'
*/
color?: OverridableStringUnion<PropTypes.Color | 'success' | 'error' | 'info' | 'warning', FabPropsColorOverrides> | undefined;
/**
* If `true`, the component is disabled.
* @default false
*/
disabled?: boolean | undefined;
/**
* If `true`, the keyboard focus ripple is disabled.
* @default false
*/
disableFocusRipple?: boolean | undefined;
/**
* If `true`, the ripple effect is disabled.
*/
disableRipple?: boolean | undefined;
/**
* The URL to link to when the button is clicked.
* If defined, an `a` element will be used as the root node.
*/
href?: string | undefined;
/**
* The size of the component.
* `small` is equivalent to the dense button styling.
* @default 'large'
*/
size?: OverridableStringUnion<'small' | 'medium' | 'large', FabPropsSizeOverrides> | undefined;
/**
* The variant to use.
* @default 'circular'
*/
variant?: OverridableStringUnion<'circular' | 'extended', FabPropsVariantOverrides> | undefined;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme> | undefined;
}
export type FabTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'button'> = ExtendButtonBaseTypeMap<{
props: AdditionalProps & FabOwnProps;
defaultComponent: RootComponent;
}>;
/**
*
* Demos:
*
* - [Floating Action Button](https://mui.com/material-ui/react-floating-action-button/)
*
* API:
*
* - [Fab API](https://mui.com/material-ui/api/fab/)
* - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
*/
declare const Fab: ExtendButtonBase<FabTypeMap>;
export type FabProps<RootComponent extends React.ElementType = FabTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<FabTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
component?: React.ElementType | undefined;
};
export default Fab;
+82
View File
@@ -0,0 +1,82 @@
import * as React from 'react';
import { OverridableStringUnion } from '@mui/types';
import { SxProps } from '@mui/system';
import { PropTypes, Theme } from "../styles/index.js";
import { ExtendButtonBase, ExtendButtonBaseTypeMap } from "../ButtonBase/index.js";
import { OverrideProps } from "../OverridableComponent/index.js";
import { FabClasses } from "./fabClasses.js";
export interface FabPropsVariantOverrides {}
export interface FabPropsSizeOverrides {}
export interface FabPropsColorOverrides {}
export interface FabOwnProps {
/**
* The content of the component.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<FabClasses> | undefined;
/**
* The color of the component.
* It supports both default and custom theme colors, which can be added as shown in the
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
* @default 'default'
*/
color?: OverridableStringUnion<PropTypes.Color | 'success' | 'error' | 'info' | 'warning', FabPropsColorOverrides> | undefined;
/**
* If `true`, the component is disabled.
* @default false
*/
disabled?: boolean | undefined;
/**
* If `true`, the keyboard focus ripple is disabled.
* @default false
*/
disableFocusRipple?: boolean | undefined;
/**
* If `true`, the ripple effect is disabled.
*/
disableRipple?: boolean | undefined;
/**
* The URL to link to when the button is clicked.
* If defined, an `a` element will be used as the root node.
*/
href?: string | undefined;
/**
* The size of the component.
* `small` is equivalent to the dense button styling.
* @default 'large'
*/
size?: OverridableStringUnion<'small' | 'medium' | 'large', FabPropsSizeOverrides> | undefined;
/**
* The variant to use.
* @default 'circular'
*/
variant?: OverridableStringUnion<'circular' | 'extended', FabPropsVariantOverrides> | undefined;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme> | undefined;
}
export type FabTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'button'> = ExtendButtonBaseTypeMap<{
props: AdditionalProps & FabOwnProps;
defaultComponent: RootComponent;
}>;
/**
*
* Demos:
*
* - [Floating Action Button](https://mui.com/material-ui/react-floating-action-button/)
*
* API:
*
* - [Fab API](https://mui.com/material-ui/api/fab/)
* - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
*/
declare const Fab: ExtendButtonBase<FabTypeMap>;
export type FabProps<RootComponent extends React.ElementType = FabTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<FabTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
component?: React.ElementType | undefined;
};
export default Fab;
+286
View File
@@ -0,0 +1,286 @@
"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 _fabClasses = _interopRequireWildcard(require("./fabClasses"));
var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
var _zeroStyled = require("../zero-styled");
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
var _createSimplePaletteValueFilter = _interopRequireDefault(require("../utils/createSimplePaletteValueFilter"));
var _DefaultPropsProvider = require("../DefaultPropsProvider");
var _utils = require("../transitions/utils");
var _jsxRuntime = require("react/jsx-runtime");
const useUtilityClasses = ownerState => {
const {
color,
variant,
classes,
size
} = ownerState;
const slots = {
root: ['root', variant, `size${(0, _capitalize.default)(size)}`, color === 'inherit' ? 'colorInherit' : color]
};
const composedClasses = (0, _composeClasses.default)(slots, _fabClasses.getFabUtilityClass, classes);
return {
...classes,
// forward the focused, disabled, etc. classes to the ButtonBase
...composedClasses
};
};
const FabRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
name: 'MuiFab',
slot: 'Root',
shouldForwardProp: prop => (0, _rootShouldForwardProp.default)(prop) || prop === 'classes',
overridesResolver: (props, styles) => {
const {
ownerState
} = props;
return [styles.root, styles[ownerState.variant], styles[`size${(0, _capitalize.default)(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, styles[(0, _capitalize.default)(ownerState.size)], styles[ownerState.color]];
}
})((0, _memoTheme.default)(({
theme
}) => ({
...theme.typography.button,
minHeight: 36,
...(0, _utils.getTransitionStyles)(theme, ['background-color', 'box-shadow', 'border-color'], {
duration: theme.transitions.duration.short
}),
borderRadius: '50%',
padding: 0,
minWidth: 0,
width: 56,
height: 56,
zIndex: (theme.vars || theme).zIndex.fab,
boxShadow: (theme.vars || theme).shadows[6],
'&:active': {
boxShadow: (theme.vars || theme).shadows[12]
},
color: theme.vars ? theme.vars.palette.grey[900] : theme.palette.getContrastText?.(theme.palette.grey[300]),
backgroundColor: (theme.vars || theme).palette.grey[300],
'&:hover': {
backgroundColor: (theme.vars || theme).palette.grey.A100,
// Reset on touch devices, it doesn't add specificity
'@media (hover: none)': {
backgroundColor: (theme.vars || theme).palette.grey[300]
},
textDecoration: 'none'
},
[`&.${_fabClasses.default.focusVisible}`]: {
boxShadow: (theme.vars || theme).shadows[6]
},
variants: [{
props: {
size: 'small'
},
style: {
width: 40,
height: 40
}
}, {
props: {
size: 'medium'
},
style: {
width: 48,
height: 48
}
}, {
props: {
variant: 'extended'
},
style: {
borderRadius: 48 / 2,
padding: '0 16px',
width: 'auto',
minHeight: 'auto',
minWidth: 48,
height: 48
}
}, {
props: {
variant: 'extended',
size: 'small'
},
style: {
width: 'auto',
padding: '0 8px',
borderRadius: 34 / 2,
minWidth: 34,
height: 34
}
}, {
props: {
variant: 'extended',
size: 'medium'
},
style: {
width: 'auto',
padding: '0 16px',
borderRadius: 40 / 2,
minWidth: 40,
height: 40
}
}, {
props: {
color: 'inherit'
},
style: {
color: 'inherit'
}
}]
})), (0, _memoTheme.default)(({
theme
}) => ({
variants: [...Object.entries(theme.palette).filter((0, _createSimplePaletteValueFilter.default)(['dark', 'contrastText'])) // check all the used fields in the style below
.map(([color]) => ({
props: {
color
},
style: {
color: (theme.vars || theme).palette[color].contrastText,
backgroundColor: (theme.vars || theme).palette[color].main,
'&:hover': {
backgroundColor: (theme.vars || theme).palette[color].dark,
// Reset on touch devices, it doesn't add specificity
'@media (hover: none)': {
backgroundColor: (theme.vars || theme).palette[color].main
}
}
}
}))]
})), (0, _memoTheme.default)(({
theme
}) => ({
[`&.${_fabClasses.default.disabled}`]: {
color: (theme.vars || theme).palette.action.disabled,
boxShadow: (theme.vars || theme).shadows[0],
backgroundColor: (theme.vars || theme).palette.action.disabledBackground
}
})));
const Fab = /*#__PURE__*/React.forwardRef(function Fab(inProps, ref) {
const props = (0, _DefaultPropsProvider.useDefaultProps)({
props: inProps,
name: 'MuiFab'
});
const {
children,
className,
color = 'default',
component = 'button',
disabled = false,
disableFocusRipple = false,
focusVisibleClassName,
size = 'large',
variant = 'circular',
...other
} = props;
const ownerState = {
...props,
color,
component,
disabled,
disableFocusRipple,
size,
variant
};
const classes = useUtilityClasses(ownerState);
// Don't forward the 'root' class to the ButtonBase, as it will get duplicated with the one passed to the className prop.
const {
root,
...forwardedClasses
} = classes;
return /*#__PURE__*/(0, _jsxRuntime.jsx)(FabRoot, {
className: (0, _clsx.default)(classes.root, className),
component: component,
internalNativeButton: true,
disabled: disabled,
focusRipple: !disableFocusRipple,
focusVisibleClassName: (0, _clsx.default)(classes.focusVisible, focusVisibleClassName),
ownerState: ownerState,
ref: ref,
...other,
classes: forwardedClasses,
children: children
});
});
process.env.NODE_ENV !== "production" ? Fab.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.
*/
children: _propTypes.default.node,
/**
* Override or extend the styles applied to the component.
*/
classes: _propTypes.default.object,
/**
* @ignore
*/
className: _propTypes.default.string,
/**
* The color of the component.
* It supports both default and custom theme colors, which can be added as shown in the
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
* @default 'default'
*/
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), _propTypes.default.string]),
/**
* The component used for the root node.
* Either a string to use a HTML element or a component.
*/
component: _propTypes.default.elementType,
/**
* 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.
*/
disableRipple: _propTypes.default.bool,
/**
* @ignore
*/
focusVisibleClassName: _propTypes.default.string,
/**
* The URL to link to when the button is clicked.
* If defined, an `a` element will be used as the root node.
*/
href: _propTypes.default.string,
/**
* The size of the component.
* `small` is equivalent to the dense button styling.
* @default 'large'
*/
size: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['small', 'medium', 'large']), _propTypes.default.string]),
/**
* 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]),
/**
* The variant to use.
* @default 'circular'
*/
variant: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['circular', 'extended']), _propTypes.default.string])
} : void 0;
var _default = exports.default = Fab;
+279
View File
@@ -0,0 +1,279 @@
'use client';
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import composeClasses from '@mui/utils/composeClasses';
import ButtonBase from "../ButtonBase/index.mjs";
import capitalize from "../utils/capitalize.mjs";
import fabClasses, { getFabUtilityClass } from "./fabClasses.mjs";
import rootShouldForwardProp from "../styles/rootShouldForwardProp.mjs";
import { styled } from "../zero-styled/index.mjs";
import memoTheme from "../utils/memoTheme.mjs";
import createSimplePaletteValueFilter from "../utils/createSimplePaletteValueFilter.mjs";
import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
import { getTransitionStyles } from "../transitions/utils.mjs";
import { jsx as _jsx } from "react/jsx-runtime";
const useUtilityClasses = ownerState => {
const {
color,
variant,
classes,
size
} = ownerState;
const slots = {
root: ['root', variant, `size${capitalize(size)}`, color === 'inherit' ? 'colorInherit' : color]
};
const composedClasses = composeClasses(slots, getFabUtilityClass, classes);
return {
...classes,
// forward the focused, disabled, etc. classes to the ButtonBase
...composedClasses
};
};
const FabRoot = styled(ButtonBase, {
name: 'MuiFab',
slot: 'Root',
shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
overridesResolver: (props, styles) => {
const {
ownerState
} = props;
return [styles.root, styles[ownerState.variant], styles[`size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, styles[capitalize(ownerState.size)], styles[ownerState.color]];
}
})(memoTheme(({
theme
}) => ({
...theme.typography.button,
minHeight: 36,
...getTransitionStyles(theme, ['background-color', 'box-shadow', 'border-color'], {
duration: theme.transitions.duration.short
}),
borderRadius: '50%',
padding: 0,
minWidth: 0,
width: 56,
height: 56,
zIndex: (theme.vars || theme).zIndex.fab,
boxShadow: (theme.vars || theme).shadows[6],
'&:active': {
boxShadow: (theme.vars || theme).shadows[12]
},
color: theme.vars ? theme.vars.palette.grey[900] : theme.palette.getContrastText?.(theme.palette.grey[300]),
backgroundColor: (theme.vars || theme).palette.grey[300],
'&:hover': {
backgroundColor: (theme.vars || theme).palette.grey.A100,
// Reset on touch devices, it doesn't add specificity
'@media (hover: none)': {
backgroundColor: (theme.vars || theme).palette.grey[300]
},
textDecoration: 'none'
},
[`&.${fabClasses.focusVisible}`]: {
boxShadow: (theme.vars || theme).shadows[6]
},
variants: [{
props: {
size: 'small'
},
style: {
width: 40,
height: 40
}
}, {
props: {
size: 'medium'
},
style: {
width: 48,
height: 48
}
}, {
props: {
variant: 'extended'
},
style: {
borderRadius: 48 / 2,
padding: '0 16px',
width: 'auto',
minHeight: 'auto',
minWidth: 48,
height: 48
}
}, {
props: {
variant: 'extended',
size: 'small'
},
style: {
width: 'auto',
padding: '0 8px',
borderRadius: 34 / 2,
minWidth: 34,
height: 34
}
}, {
props: {
variant: 'extended',
size: 'medium'
},
style: {
width: 'auto',
padding: '0 16px',
borderRadius: 40 / 2,
minWidth: 40,
height: 40
}
}, {
props: {
color: 'inherit'
},
style: {
color: 'inherit'
}
}]
})), memoTheme(({
theme
}) => ({
variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['dark', 'contrastText'])) // check all the used fields in the style below
.map(([color]) => ({
props: {
color
},
style: {
color: (theme.vars || theme).palette[color].contrastText,
backgroundColor: (theme.vars || theme).palette[color].main,
'&:hover': {
backgroundColor: (theme.vars || theme).palette[color].dark,
// Reset on touch devices, it doesn't add specificity
'@media (hover: none)': {
backgroundColor: (theme.vars || theme).palette[color].main
}
}
}
}))]
})), memoTheme(({
theme
}) => ({
[`&.${fabClasses.disabled}`]: {
color: (theme.vars || theme).palette.action.disabled,
boxShadow: (theme.vars || theme).shadows[0],
backgroundColor: (theme.vars || theme).palette.action.disabledBackground
}
})));
const Fab = /*#__PURE__*/React.forwardRef(function Fab(inProps, ref) {
const props = useDefaultProps({
props: inProps,
name: 'MuiFab'
});
const {
children,
className,
color = 'default',
component = 'button',
disabled = false,
disableFocusRipple = false,
focusVisibleClassName,
size = 'large',
variant = 'circular',
...other
} = props;
const ownerState = {
...props,
color,
component,
disabled,
disableFocusRipple,
size,
variant
};
const classes = useUtilityClasses(ownerState);
// Don't forward the 'root' class to the ButtonBase, as it will get duplicated with the one passed to the className prop.
const {
root,
...forwardedClasses
} = classes;
return /*#__PURE__*/_jsx(FabRoot, {
className: clsx(classes.root, className),
component: component,
internalNativeButton: true,
disabled: disabled,
focusRipple: !disableFocusRipple,
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
ownerState: ownerState,
ref: ref,
...other,
classes: forwardedClasses,
children: children
});
});
process.env.NODE_ENV !== "production" ? Fab.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.
*/
children: PropTypes.node,
/**
* Override or extend the styles applied to the component.
*/
classes: PropTypes.object,
/**
* @ignore
*/
className: PropTypes.string,
/**
* The color of the component.
* It supports both default and custom theme colors, which can be added as shown in the
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
* @default 'default'
*/
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
/**
* The component used for the root node.
* Either a string to use a HTML element or a component.
*/
component: PropTypes.elementType,
/**
* If `true`, the component is disabled.
* @default false
*/
disabled: PropTypes.bool,
/**
* If `true`, the keyboard focus ripple is disabled.
* @default false
*/
disableFocusRipple: PropTypes.bool,
/**
* If `true`, the ripple effect is disabled.
*/
disableRipple: PropTypes.bool,
/**
* @ignore
*/
focusVisibleClassName: PropTypes.string,
/**
* The URL to link to when the button is clicked.
* If defined, an `a` element will be used as the root node.
*/
href: PropTypes.string,
/**
* The size of the component.
* `small` is equivalent to the dense button styling.
* @default 'large'
*/
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), 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]),
/**
* The variant to use.
* @default 'circular'
*/
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['circular', 'extended']), PropTypes.string])
} : void 0;
export default Fab;
+26
View File
@@ -0,0 +1,26 @@
export interface FabClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if `color="primary"`. */
primary: string;
/** Styles applied to the root element if `color="secondary"`. */
secondary: string;
/** Styles applied to the root element if `variant="extended"`. */
extended: string;
/** Styles applied to the root element if `variant="circular"`. */
circular: string;
/** State class applied to the ButtonBase root element if the button is keyboard focused. */
focusVisible: string;
/** State class applied to the root element if `disabled={true}`. */
disabled: string;
/** Styles applied to the root element if `color="inherit"`. */
colorInherit: string;
/** Styles applied to the root element if `size="small"``. */
sizeSmall: string;
/** Styles applied to the root element if `size="medium"``. */
sizeMedium: string;
}
export type FabClassKey = keyof FabClasses;
export declare function getFabUtilityClass(slot: string): string;
declare const fabClasses: FabClasses;
export default fabClasses;
+26
View File
@@ -0,0 +1,26 @@
export interface FabClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if `color="primary"`. */
primary: string;
/** Styles applied to the root element if `color="secondary"`. */
secondary: string;
/** Styles applied to the root element if `variant="extended"`. */
extended: string;
/** Styles applied to the root element if `variant="circular"`. */
circular: string;
/** State class applied to the ButtonBase root element if the button is keyboard focused. */
focusVisible: string;
/** State class applied to the root element if `disabled={true}`. */
disabled: string;
/** Styles applied to the root element if `color="inherit"`. */
colorInherit: string;
/** Styles applied to the root element if `size="small"``. */
sizeSmall: string;
/** Styles applied to the root element if `size="medium"``. */
sizeMedium: string;
}
export type FabClassKey = keyof FabClasses;
export declare function getFabUtilityClass(slot: string): string;
declare const fabClasses: FabClasses;
export default fabClasses;
+15
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.getFabUtilityClass = getFabUtilityClass;
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
function getFabUtilityClass(slot) {
return (0, _generateUtilityClass.default)('MuiFab', slot);
}
const fabClasses = (0, _generateUtilityClasses.default)('MuiFab', ['root', 'primary', 'secondary', 'extended', 'circular', 'focusVisible', 'disabled', 'colorInherit', 'sizeSmall', 'sizeMedium', 'sizeLarge', 'info', 'error', 'warning', 'success']);
var _default = exports.default = fabClasses;
+7
View File
@@ -0,0 +1,7 @@
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
import generateUtilityClass from '@mui/utils/generateUtilityClass';
export function getFabUtilityClass(slot) {
return generateUtilityClass('MuiFab', slot);
}
const fabClasses = generateUtilityClasses('MuiFab', ['root', 'primary', 'secondary', 'extended', 'circular', 'focusVisible', 'disabled', 'colorInherit', 'sizeSmall', 'sizeMedium', 'sizeLarge', 'info', 'error', 'warning', 'success']);
export default fabClasses;
+4
View File
@@ -0,0 +1,4 @@
export { default } from "./Fab.mjs";
export * from "./Fab.mjs";
export { default as fabClasses } from "./fabClasses.mjs";
export * from "./fabClasses.mjs";
+4
View File
@@ -0,0 +1,4 @@
export { default } from "./Fab.js";
export * from "./Fab.js";
export { default as fabClasses } from "./fabClasses.js";
export * from "./fabClasses.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 = {
fabClasses: true
};
Object.defineProperty(exports, "default", {
enumerable: true,
get: function () {
return _Fab.default;
}
});
Object.defineProperty(exports, "fabClasses", {
enumerable: true,
get: function () {
return _fabClasses.default;
}
});
var _Fab = _interopRequireDefault(require("./Fab"));
var _fabClasses = _interopRequireWildcard(require("./fabClasses"));
Object.keys(_fabClasses).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _fabClasses[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _fabClasses[key];
}
});
});
+3
View File
@@ -0,0 +1,3 @@
export { default } from "./Fab.mjs";
export { default as fabClasses } from "./fabClasses.mjs";
export * from "./fabClasses.mjs";