worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
91
node_modules/@mui/material/esm/ButtonGroup/ButtonGroup.d.ts
generated
vendored
Normal file
91
node_modules/@mui/material/esm/ButtonGroup/ButtonGroup.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
import * as React from 'react';
|
||||
import { SxProps } from '@mui/system';
|
||||
import { OverridableStringUnion } from '@mui/types';
|
||||
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
||||
import { Theme } from "../styles/index.js";
|
||||
import { ButtonGroupClasses } from "./buttonGroupClasses.js";
|
||||
export interface ButtonGroupPropsColorOverrides {}
|
||||
export interface ButtonGroupPropsVariantOverrides {}
|
||||
export interface ButtonGroupPropsSizeOverrides {}
|
||||
export interface ButtonGroupOwnProps {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes?: Partial<ButtonGroupClasses>;
|
||||
/**
|
||||
* 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 'primary'
|
||||
*/
|
||||
color?: OverridableStringUnion<'inherit' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning', ButtonGroupPropsColorOverrides>;
|
||||
/**
|
||||
* If `true`, the component is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disabled?: boolean;
|
||||
/**
|
||||
* If `true`, no elevation is used.
|
||||
* @default false
|
||||
*/
|
||||
disableElevation?: boolean;
|
||||
/**
|
||||
* If `true`, the button keyboard focus ripple is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disableFocusRipple?: boolean;
|
||||
/**
|
||||
* If `true`, the button ripple effect is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disableRipple?: boolean;
|
||||
/**
|
||||
* If `true`, the buttons will take up the full width of its container.
|
||||
* @default false
|
||||
*/
|
||||
fullWidth?: boolean;
|
||||
/**
|
||||
* The component orientation (layout flow direction).
|
||||
* @default 'horizontal'
|
||||
*/
|
||||
orientation?: 'vertical' | 'horizontal';
|
||||
/**
|
||||
* The size of the component.
|
||||
* `small` is equivalent to the dense button styling.
|
||||
* @default 'medium'
|
||||
*/
|
||||
size?: OverridableStringUnion<'small' | 'medium' | 'large', ButtonGroupPropsSizeOverrides>;
|
||||
/**
|
||||
* The variant to use.
|
||||
* @default 'outlined'
|
||||
*/
|
||||
variant?: OverridableStringUnion<'text' | 'outlined' | 'contained', ButtonGroupPropsVariantOverrides>;
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx?: SxProps<Theme>;
|
||||
}
|
||||
export interface ButtonGroupTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div'> {
|
||||
props: AdditionalProps & ButtonGroupOwnProps;
|
||||
defaultComponent: RootComponent;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Button Group](https://mui.com/material-ui/react-button-group/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [ButtonGroup API](https://mui.com/material-ui/api/button-group/)
|
||||
*/
|
||||
declare const ButtonGroup: OverridableComponent<ButtonGroupTypeMap>;
|
||||
export type ButtonGroupProps<RootComponent extends React.ElementType = ButtonGroupTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<ButtonGroupTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
||||
component?: React.ElementType;
|
||||
};
|
||||
export default ButtonGroup;
|
||||
389
node_modules/@mui/material/esm/ButtonGroup/ButtonGroup.js
generated
vendored
Normal file
389
node_modules/@mui/material/esm/ButtonGroup/ButtonGroup.js
generated
vendored
Normal file
|
|
@ -0,0 +1,389 @@
|
|||
'use client';
|
||||
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import getValidReactChildren from '@mui/utils/getValidReactChildren';
|
||||
import capitalize from "../utils/capitalize.js";
|
||||
import { styled } from "../zero-styled/index.js";
|
||||
import memoTheme from "../utils/memoTheme.js";
|
||||
import createSimplePaletteValueFilter from "../utils/createSimplePaletteValueFilter.js";
|
||||
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
||||
import buttonGroupClasses, { getButtonGroupUtilityClass } from "./buttonGroupClasses.js";
|
||||
import ButtonGroupContext from "./ButtonGroupContext.js";
|
||||
import ButtonGroupButtonContext from "./ButtonGroupButtonContext.js";
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const overridesResolver = (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [{
|
||||
[`& .${buttonGroupClasses.grouped}`]: styles.grouped
|
||||
}, {
|
||||
[`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.orientation)}`]
|
||||
}, {
|
||||
[`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.variant)}`]
|
||||
}, {
|
||||
[`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.variant)}${capitalize(ownerState.orientation)}`]
|
||||
}, {
|
||||
[`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.variant)}${capitalize(ownerState.color)}`]
|
||||
}, {
|
||||
[`& .${buttonGroupClasses.firstButton}`]: styles.firstButton
|
||||
}, {
|
||||
[`& .${buttonGroupClasses.lastButton}`]: styles.lastButton
|
||||
}, {
|
||||
[`& .${buttonGroupClasses.middleButton}`]: styles.middleButton
|
||||
}, styles.root, styles[ownerState.variant], ownerState.disableElevation === true && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.orientation === 'vertical' && styles.vertical];
|
||||
};
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes,
|
||||
color,
|
||||
disabled,
|
||||
disableElevation,
|
||||
fullWidth,
|
||||
orientation,
|
||||
variant
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', variant, orientation, fullWidth && 'fullWidth', disableElevation && 'disableElevation', `color${capitalize(color)}`],
|
||||
grouped: ['grouped', `grouped${capitalize(orientation)}`, `grouped${capitalize(variant)}`, `grouped${capitalize(variant)}${capitalize(orientation)}`, `grouped${capitalize(variant)}${capitalize(color)}`, disabled && 'disabled'],
|
||||
firstButton: ['firstButton'],
|
||||
lastButton: ['lastButton'],
|
||||
middleButton: ['middleButton']
|
||||
};
|
||||
return composeClasses(slots, getButtonGroupUtilityClass, classes);
|
||||
};
|
||||
const ButtonGroupRoot = styled('div', {
|
||||
name: 'MuiButtonGroup',
|
||||
slot: 'Root',
|
||||
overridesResolver
|
||||
})(memoTheme(({
|
||||
theme
|
||||
}) => ({
|
||||
display: 'inline-flex',
|
||||
borderRadius: (theme.vars || theme).shape.borderRadius,
|
||||
variants: [{
|
||||
props: {
|
||||
variant: 'contained'
|
||||
},
|
||||
style: {
|
||||
boxShadow: (theme.vars || theme).shadows[2]
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
disableElevation: true
|
||||
},
|
||||
style: {
|
||||
boxShadow: 'none'
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
fullWidth: true
|
||||
},
|
||||
style: {
|
||||
width: '100%'
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
orientation: 'vertical'
|
||||
},
|
||||
style: {
|
||||
flexDirection: 'column',
|
||||
[`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {
|
||||
borderTopRightRadius: 0,
|
||||
borderTopLeftRadius: 0
|
||||
},
|
||||
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
||||
borderBottomRightRadius: 0,
|
||||
borderBottomLeftRadius: 0
|
||||
}
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
orientation: 'horizontal'
|
||||
},
|
||||
style: {
|
||||
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
||||
borderTopRightRadius: 0,
|
||||
borderBottomRightRadius: 0
|
||||
},
|
||||
[`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {
|
||||
borderTopLeftRadius: 0,
|
||||
borderBottomLeftRadius: 0
|
||||
}
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
variant: 'text',
|
||||
orientation: 'horizontal'
|
||||
},
|
||||
style: {
|
||||
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
||||
borderRight: theme.vars ? `1px solid ${theme.alpha(theme.vars.palette.common.onBackground, 0.23)}` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
||||
[`&.${buttonGroupClasses.disabled}`]: {
|
||||
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
variant: 'text',
|
||||
orientation: 'vertical'
|
||||
},
|
||||
style: {
|
||||
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
||||
borderBottom: theme.vars ? `1px solid ${theme.alpha(theme.vars.palette.common.onBackground, 0.23)}` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
||||
[`&.${buttonGroupClasses.disabled}`]: {
|
||||
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
||||
}
|
||||
}
|
||||
}
|
||||
}, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).flatMap(([color]) => [{
|
||||
props: {
|
||||
variant: 'text',
|
||||
color
|
||||
},
|
||||
style: {
|
||||
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
||||
borderColor: theme.alpha((theme.vars || theme).palette[color].main, 0.5)
|
||||
}
|
||||
}
|
||||
}]), {
|
||||
props: {
|
||||
variant: 'outlined',
|
||||
orientation: 'horizontal'
|
||||
},
|
||||
style: {
|
||||
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
||||
borderRightColor: 'transparent',
|
||||
'&:hover': {
|
||||
borderRightColor: 'currentColor'
|
||||
}
|
||||
},
|
||||
[`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {
|
||||
marginLeft: -1
|
||||
}
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
variant: 'outlined',
|
||||
orientation: 'vertical'
|
||||
},
|
||||
style: {
|
||||
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
||||
borderBottomColor: 'transparent',
|
||||
'&:hover': {
|
||||
borderBottomColor: 'currentColor'
|
||||
}
|
||||
},
|
||||
[`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {
|
||||
marginTop: -1
|
||||
}
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
variant: 'contained',
|
||||
orientation: 'horizontal'
|
||||
},
|
||||
style: {
|
||||
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
||||
borderRight: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
||||
[`&.${buttonGroupClasses.disabled}`]: {
|
||||
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
variant: 'contained',
|
||||
orientation: 'vertical'
|
||||
},
|
||||
style: {
|
||||
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
||||
borderBottom: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
||||
[`&.${buttonGroupClasses.disabled}`]: {
|
||||
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
||||
}
|
||||
}
|
||||
}
|
||||
}, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['dark'])).map(([color]) => ({
|
||||
props: {
|
||||
variant: 'contained',
|
||||
color
|
||||
},
|
||||
style: {
|
||||
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
||||
borderColor: (theme.vars || theme).palette[color].dark
|
||||
}
|
||||
}
|
||||
}))],
|
||||
[`& .${buttonGroupClasses.grouped}`]: {
|
||||
minWidth: 40,
|
||||
boxShadow: 'none',
|
||||
props: {
|
||||
variant: 'contained'
|
||||
},
|
||||
style: {
|
||||
'&:hover': {
|
||||
boxShadow: 'none'
|
||||
}
|
||||
}
|
||||
}
|
||||
})));
|
||||
const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiButtonGroup'
|
||||
});
|
||||
const {
|
||||
children,
|
||||
className,
|
||||
color = 'primary',
|
||||
component = 'div',
|
||||
disabled = false,
|
||||
disableElevation = false,
|
||||
disableFocusRipple = false,
|
||||
disableRipple = false,
|
||||
fullWidth = false,
|
||||
orientation = 'horizontal',
|
||||
size = 'medium',
|
||||
variant = 'outlined',
|
||||
...other
|
||||
} = props;
|
||||
const ownerState = {
|
||||
...props,
|
||||
color,
|
||||
component,
|
||||
disabled,
|
||||
disableElevation,
|
||||
disableFocusRipple,
|
||||
disableRipple,
|
||||
fullWidth,
|
||||
orientation,
|
||||
size,
|
||||
variant
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const context = React.useMemo(() => ({
|
||||
className: classes.grouped,
|
||||
color,
|
||||
disabled,
|
||||
disableElevation,
|
||||
disableFocusRipple,
|
||||
disableRipple,
|
||||
fullWidth,
|
||||
size,
|
||||
variant
|
||||
}), [color, disabled, disableElevation, disableFocusRipple, disableRipple, fullWidth, size, variant, classes.grouped]);
|
||||
const validChildren = getValidReactChildren(children);
|
||||
const childrenCount = validChildren.length;
|
||||
const getButtonPositionClassName = index => {
|
||||
const isFirstButton = index === 0;
|
||||
const isLastButton = index === childrenCount - 1;
|
||||
if (isFirstButton && isLastButton) {
|
||||
return '';
|
||||
}
|
||||
if (isFirstButton) {
|
||||
return classes.firstButton;
|
||||
}
|
||||
if (isLastButton) {
|
||||
return classes.lastButton;
|
||||
}
|
||||
return classes.middleButton;
|
||||
};
|
||||
return /*#__PURE__*/_jsx(ButtonGroupRoot, {
|
||||
as: component,
|
||||
role: "group",
|
||||
className: clsx(classes.root, className),
|
||||
ref: ref,
|
||||
ownerState: ownerState,
|
||||
...other,
|
||||
children: /*#__PURE__*/_jsx(ButtonGroupContext.Provider, {
|
||||
value: context,
|
||||
children: validChildren.map((child, index) => {
|
||||
return /*#__PURE__*/_jsx(ButtonGroupButtonContext.Provider, {
|
||||
value: getButtonPositionClassName(index),
|
||||
children: child
|
||||
}, index);
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? ButtonGroup.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 'primary'
|
||||
*/
|
||||
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'error', 'info', '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`, no elevation is used.
|
||||
* @default false
|
||||
*/
|
||||
disableElevation: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the button keyboard focus ripple is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disableFocusRipple: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the button ripple effect is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disableRipple: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the buttons will take up the full width of its container.
|
||||
* @default false
|
||||
*/
|
||||
fullWidth: PropTypes.bool,
|
||||
/**
|
||||
* The component orientation (layout flow direction).
|
||||
* @default 'horizontal'
|
||||
*/
|
||||
orientation: PropTypes.oneOf(['horizontal', 'vertical']),
|
||||
/**
|
||||
* The size of the component.
|
||||
* `small` is equivalent to the dense button styling.
|
||||
* @default 'medium'
|
||||
*/
|
||||
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 'outlined'
|
||||
*/
|
||||
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])
|
||||
} : void 0;
|
||||
export default ButtonGroup;
|
||||
6
node_modules/@mui/material/esm/ButtonGroup/ButtonGroupButtonContext.d.ts
generated
vendored
Normal file
6
node_modules/@mui/material/esm/ButtonGroup/ButtonGroupButtonContext.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import * as React from 'react';
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
declare const ButtonGroupButtonContext: React.Context<string | undefined>;
|
||||
export default ButtonGroupButtonContext;
|
||||
11
node_modules/@mui/material/esm/ButtonGroup/ButtonGroupButtonContext.js
generated
vendored
Normal file
11
node_modules/@mui/material/esm/ButtonGroup/ButtonGroupButtonContext.js
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
'use client';
|
||||
|
||||
import * as React from 'react';
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
const ButtonGroupButtonContext = /*#__PURE__*/React.createContext(undefined);
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
ButtonGroupButtonContext.displayName = 'ButtonGroupButtonContext';
|
||||
}
|
||||
export default ButtonGroupButtonContext;
|
||||
18
node_modules/@mui/material/esm/ButtonGroup/ButtonGroupContext.d.ts
generated
vendored
Normal file
18
node_modules/@mui/material/esm/ButtonGroup/ButtonGroupContext.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import * as React from 'react';
|
||||
import type { ButtonGroupProps } from "./ButtonGroup.js";
|
||||
interface ButtonGroupContextType {
|
||||
className?: string;
|
||||
color?: ButtonGroupProps['color'];
|
||||
disabled?: boolean;
|
||||
disableElevation?: boolean;
|
||||
disableFocusRipple?: boolean;
|
||||
disableRipple?: boolean;
|
||||
fullWidth?: boolean;
|
||||
size?: ButtonGroupProps['size'];
|
||||
variant?: ButtonGroupProps['variant'];
|
||||
}
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
declare const ButtonGroupContext: React.Context<ButtonGroupContextType>;
|
||||
export default ButtonGroupContext;
|
||||
11
node_modules/@mui/material/esm/ButtonGroup/ButtonGroupContext.js
generated
vendored
Normal file
11
node_modules/@mui/material/esm/ButtonGroup/ButtonGroupContext.js
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
'use client';
|
||||
|
||||
import * as React from 'react';
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
const ButtonGroupContext = /*#__PURE__*/React.createContext({});
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
ButtonGroupContext.displayName = 'ButtonGroupContext';
|
||||
}
|
||||
export default ButtonGroupContext;
|
||||
104
node_modules/@mui/material/esm/ButtonGroup/buttonGroupClasses.d.ts
generated
vendored
Normal file
104
node_modules/@mui/material/esm/ButtonGroup/buttonGroupClasses.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,104 @@
|
|||
export interface ButtonGroupClasses {
|
||||
/** Styles applied to the root element. */
|
||||
root: string;
|
||||
/** Styles applied to the root element if `variant="contained"`. */
|
||||
contained: string;
|
||||
/** Styles applied to the root element if `variant="outlined"`. */
|
||||
outlined: string;
|
||||
/** Styles applied to the root element if `variant="text"`. */
|
||||
text: string;
|
||||
/** Styles applied to the root element if `disableElevation={true}`. */
|
||||
disableElevation: string;
|
||||
/** State class applied to the child elements if `disabled={true}`. */
|
||||
disabled: string;
|
||||
/** Styles applied to the first button in the button group. */
|
||||
firstButton: string;
|
||||
/** Styles applied to the root element if `fullWidth={true}`. */
|
||||
fullWidth: string;
|
||||
/** Styles applied to the root element if `orientation="horizontal"`. */
|
||||
horizontal: string;
|
||||
/** Styles applied to the root element if `orientation="vertical"`. */
|
||||
vertical: string;
|
||||
/** Styles applied to the children. */
|
||||
grouped: string;
|
||||
/** Styles applied to the root element if `color="primary"` */
|
||||
colorPrimary: string;
|
||||
/** Styles applied to the root element if `color="secondary"` */
|
||||
colorSecondary: string;
|
||||
/** Styles applied to the children if `orientation="horizontal"`.
|
||||
* @deprecated Combine the [.MuiButtonGroup-horizontal](/material-ui/api/button-group/#button-group-classes-horizontal) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
groupedHorizontal: string;
|
||||
/** Styles applied to the children if `orientation="vertical"`.
|
||||
* @deprecated Combine the [.MuiButtonGroup-vertical](/material-ui/api/button-group/#button-group-classes-vertical) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
groupedVertical: string;
|
||||
/** Styles applied to the children if `variant="text"`.
|
||||
* @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
groupedText: string;
|
||||
/** Styles applied to the children if `variant="text"` and `orientation="horizontal"`.
|
||||
* @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) , [.MuiButtonGroup-horizontal](/material-ui/api/button-group/#button-group-classes-horizontal) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
groupedTextHorizontal: string;
|
||||
/** Styles applied to the children if `variant="text"` and `orientation="vertical"`.
|
||||
* @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) , [.MuiButtonGroup-vertical](/material-ui/api/button-group/#button-group-classes-vertical) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
groupedTextVertical: string;
|
||||
/** Styles applied to the children if `variant="text"` and `color="primary"`.
|
||||
* @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) , [.MuiButtonGroup-colorPrimary](/material-ui/api/button-group/#button-group-classes-colorPrimary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
groupedTextPrimary: string;
|
||||
/** Styles applied to the children if `variant="text"` and `color="secondary"`.
|
||||
* @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) , [.MuiButtonGroup-colorSecondary](/material-ui/api/button-group/#button-group-classes-colorSecondary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
groupedTextSecondary: string;
|
||||
/** Styles applied to the children if `variant="outlined"`.
|
||||
* @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
groupedOutlined: string;
|
||||
/** Styles applied to the children if `variant="outlined"` and `orientation="horizontal"`.
|
||||
* @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) , [.MuiButtonGroup-horizontal](/material-ui/api/button-group/#button-group-classes-horizontal) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
groupedOutlinedHorizontal: string;
|
||||
/** Styles applied to the children if `variant="outlined"` and `orientation="vertical"`.
|
||||
* @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) , [.MuiButtonGroup-vertical](/material-ui/api/button-group/#button-group-classes-vertical) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
groupedOutlinedVertical: string;
|
||||
/** Styles applied to the children if `variant="outlined"` and `color="primary"`.
|
||||
* @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) , [.MuiButtonGroup-colorPrimary](/material-ui/api/button-group/#button-group-classes-colorPrimary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
groupedOutlinedPrimary: string;
|
||||
/** Styles applied to the children if `variant="outlined"` and `color="secondary"`.
|
||||
* @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) , [.MuiButtonGroup-colorSecondary](/material-ui/api/button-group/#button-group-classes-colorSecondary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
groupedOutlinedSecondary: string;
|
||||
/** Styles applied to the children if `variant="contained"`.
|
||||
* @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
groupedContained: string;
|
||||
/** Styles applied to the children if `variant="contained"` and `orientation="horizontal"`.
|
||||
* @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) , [.MuiButtonGroup-horizontal](/material-ui/api/button-group/#button-group-classes-horizontal) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
groupedContainedHorizontal: string;
|
||||
/** Styles applied to the children if `variant="contained"` and `orientation="vertical"`.
|
||||
* @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) , [.MuiButtonGroup-vertical](/material-ui/api/button-group/#button-group-classes-vertical) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
groupedContainedVertical: string;
|
||||
/** Styles applied to the children if `variant="contained"` and `color="primary"`.
|
||||
* @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) , [.MuiButtonGroup-colorPrimary](/material-ui/api/button-group/#button-group-classes-colorPrimary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
groupedContainedPrimary: string;
|
||||
/** Styles applied to the children if `variant="contained"` and `color="secondary"`.
|
||||
* @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) , [.MuiButtonGroup-colorSecondary](/material-ui/api/button-group/#button-group-classes-colorSecondary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
groupedContainedSecondary: string;
|
||||
/** Styles applied to the last button in the button group. */
|
||||
lastButton: string;
|
||||
/** Styles applied to buttons in the middle of the button group. */
|
||||
middleButton: string;
|
||||
}
|
||||
export type ButtonGroupClassKey = keyof ButtonGroupClasses;
|
||||
export declare function getButtonGroupUtilityClass(slot: string): string;
|
||||
declare const buttonGroupClasses: ButtonGroupClasses;
|
||||
export default buttonGroupClasses;
|
||||
7
node_modules/@mui/material/esm/ButtonGroup/buttonGroupClasses.js
generated
vendored
Normal file
7
node_modules/@mui/material/esm/ButtonGroup/buttonGroupClasses.js
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getButtonGroupUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiButtonGroup', slot);
|
||||
}
|
||||
const buttonGroupClasses = generateUtilityClasses('MuiButtonGroup', ['root', 'contained', 'outlined', 'text', 'disableElevation', 'disabled', 'firstButton', 'fullWidth', 'horizontal', 'vertical', 'colorPrimary', 'colorSecondary', 'grouped', 'groupedHorizontal', 'groupedVertical', 'groupedText', 'groupedTextHorizontal', 'groupedTextVertical', 'groupedTextPrimary', 'groupedTextSecondary', 'groupedOutlined', 'groupedOutlinedHorizontal', 'groupedOutlinedVertical', 'groupedOutlinedPrimary', 'groupedOutlinedSecondary', 'groupedContained', 'groupedContainedHorizontal', 'groupedContainedVertical', 'groupedContainedPrimary', 'groupedContainedSecondary', 'lastButton', 'middleButton']);
|
||||
export default buttonGroupClasses;
|
||||
6
node_modules/@mui/material/esm/ButtonGroup/index.d.ts
generated
vendored
Normal file
6
node_modules/@mui/material/esm/ButtonGroup/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
export { default } from "./ButtonGroup.js";
|
||||
export * from "./ButtonGroup.js";
|
||||
export { default as buttonGroupClasses } from "./buttonGroupClasses.js";
|
||||
export * from "./buttonGroupClasses.js";
|
||||
export { default as ButtonGroupContext } from "./ButtonGroupContext.js";
|
||||
export { default as ButtonGroupButtonContext } from "./ButtonGroupButtonContext.js";
|
||||
5
node_modules/@mui/material/esm/ButtonGroup/index.js
generated
vendored
Normal file
5
node_modules/@mui/material/esm/ButtonGroup/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export { default } from "./ButtonGroup.js";
|
||||
export { default as buttonGroupClasses } from "./buttonGroupClasses.js";
|
||||
export * from "./buttonGroupClasses.js";
|
||||
export { default as ButtonGroupContext } from "./ButtonGroupContext.js";
|
||||
export { default as ButtonGroupButtonContext } from "./ButtonGroupButtonContext.js";
|
||||
Loading…
Add table
Add a link
Reference in a new issue