worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
95
node_modules/@mui/material/esm/ToggleButton/ToggleButton.d.ts
generated
vendored
Normal file
95
node_modules/@mui/material/esm/ToggleButton/ToggleButton.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
import { SxProps } from '@mui/system';
|
||||
import { OverridableStringUnion } from '@mui/types';
|
||||
import * as React from 'react';
|
||||
import { Theme } from "../styles/index.js";
|
||||
import { ExtendButtonBase, ExtendButtonBaseTypeMap } from "../ButtonBase/index.js";
|
||||
import { OverrideProps } from "../OverridableComponent/index.js";
|
||||
import { ToggleButtonClasses } from "./toggleButtonClasses.js";
|
||||
export interface ToggleButtonPropsSizeOverrides {}
|
||||
export interface ToggleButtonPropsColorOverrides {}
|
||||
export interface ToggleButtonOwnProps {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes?: Partial<ToggleButtonClasses>;
|
||||
/**
|
||||
* The color of the button when it is in an active state.
|
||||
* 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 'standard'
|
||||
*/
|
||||
color?: OverridableStringUnion<'standard' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning', ToggleButtonPropsColorOverrides>;
|
||||
/**
|
||||
* If `true`, the component is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disabled?: boolean;
|
||||
/**
|
||||
* If `true`, the keyboard focus ripple is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disableFocusRipple?: boolean;
|
||||
/**
|
||||
* If `true`, the button will take up the full width of its container.
|
||||
* @default false
|
||||
*/
|
||||
fullWidth?: boolean;
|
||||
/**
|
||||
* Callback fired when the state changes.
|
||||
*
|
||||
* @param {React.MouseEvent<HTMLElement>} event The event source of the callback.
|
||||
* @param {any} value of the selected button.
|
||||
*/
|
||||
onChange?: (event: React.MouseEvent<HTMLElement>, value: any) => void;
|
||||
/**
|
||||
* Callback fired when the button is clicked.
|
||||
*
|
||||
* @param {React.MouseEvent<HTMLElement>} event The event source of the callback.
|
||||
* @param {any} value of the selected button.
|
||||
*/
|
||||
onClick?: (event: React.MouseEvent<HTMLElement>, value: any) => void;
|
||||
/**
|
||||
* If `true`, the button is rendered in an active state.
|
||||
*/
|
||||
selected?: boolean;
|
||||
/**
|
||||
* The size of the component.
|
||||
* The prop defaults to the value inherited from the parent ToggleButtonGroup component.
|
||||
* @default 'medium'
|
||||
*/
|
||||
size?: OverridableStringUnion<'small' | 'medium' | 'large', ToggleButtonPropsSizeOverrides>;
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx?: SxProps<Theme>;
|
||||
/**
|
||||
* The value to associate with the button when selected in a
|
||||
* ToggleButtonGroup.
|
||||
*/
|
||||
value: NonNullable<unknown>;
|
||||
}
|
||||
export type ToggleButtonTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'button'> = ExtendButtonBaseTypeMap<{
|
||||
props: AdditionalProps & ToggleButtonOwnProps;
|
||||
defaultComponent: RootComponent;
|
||||
}>;
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Toggle Button](https://mui.com/material-ui/react-toggle-button/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [ToggleButton API](https://mui.com/material-ui/api/toggle-button/)
|
||||
* - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
|
||||
*/
|
||||
declare const ToggleButton: ExtendButtonBase<ToggleButtonTypeMap>;
|
||||
export type ToggleButtonProps<RootComponent extends React.ElementType = ToggleButtonTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<ToggleButtonTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
||||
component?: React.ElementType;
|
||||
};
|
||||
export default ToggleButton;
|
||||
Loading…
Add table
Add a link
Reference in a new issue