1 | import * as React from 'react';
|
2 | import { PropTypes } from '..';
|
3 | import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
4 |
|
5 | export interface ButtonGroupTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
6 | props: P & {
|
7 | |
8 |
|
9 |
|
10 | children?: React.ReactNode;
|
11 | |
12 |
|
13 |
|
14 | color?: PropTypes.Color;
|
15 | |
16 |
|
17 |
|
18 | disabled?: boolean;
|
19 | |
20 |
|
21 |
|
22 | disableElevation?: boolean;
|
23 | |
24 |
|
25 |
|
26 | disableFocusRipple?: boolean;
|
27 | |
28 |
|
29 |
|
30 | disableRipple?: boolean;
|
31 | |
32 |
|
33 |
|
34 | fullWidth?: boolean;
|
35 | |
36 |
|
37 |
|
38 | orientation?: 'vertical' | 'horizontal';
|
39 | |
40 |
|
41 |
|
42 |
|
43 | size?: 'small' | 'medium' | 'large';
|
44 | |
45 |
|
46 |
|
47 | variant?: 'text' | 'outlined' | 'contained';
|
48 | };
|
49 | defaultComponent: D;
|
50 | classKey: ButtonGroupClassKey;
|
51 | }
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 | declare const ButtonGroup: OverridableComponent<ButtonGroupTypeMap>;
|
64 |
|
65 | export type ButtonGroupClassKey =
|
66 | | 'root'
|
67 | | 'contained'
|
68 | | 'disabled'
|
69 | | 'disableElevation'
|
70 | | 'fullWidth'
|
71 | | 'vertical'
|
72 | | 'grouped'
|
73 | | 'groupedHorizontal'
|
74 | | 'groupedVertical'
|
75 | | 'groupedText'
|
76 | | 'groupedTextHorizontal'
|
77 | | 'groupedTextVertical'
|
78 | | 'groupedTextPrimary'
|
79 | | 'groupedTextSecondary'
|
80 | | 'groupedOutlined'
|
81 | | 'groupedOutlinedHorizontal'
|
82 | | 'groupedOutlinedVertical'
|
83 | | 'groupedOutlinedPrimary'
|
84 | | 'groupedOutlinedSecondary'
|
85 | | 'groupedContained'
|
86 | | 'groupedContainedHorizontal'
|
87 | | 'groupedContainedVertical'
|
88 | | 'groupedContainedPrimary'
|
89 | | 'groupedContainedSecondary';
|
90 |
|
91 | export type ButtonGroupProps<
|
92 | D extends React.ElementType = ButtonGroupTypeMap['defaultComponent'],
|
93 | P = {}
|
94 | > = OverrideProps<ButtonGroupTypeMap<P, D>, D>;
|
95 |
|
96 | export default ButtonGroup;
|