@primer/components 0.0.0-202192602912 → 0.0.0-20219266052
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -8
- package/dist/browser.esm.js +3 -3
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +3 -3
- package/dist/browser.umd.js.map +1 -1
- package/lib/AnchoredOverlay/AnchoredOverlay.d.ts +2 -4
- package/lib/Autocomplete/Autocomplete.d.ts +11 -13
- package/lib/Autocomplete/AutocompleteInput.d.ts +11 -13
- package/lib/Button/Button.d.ts +11 -11
- package/lib/Button/ButtonBase.d.ts +1 -1
- package/lib/Button/ButtonClose.d.ts +29 -29
- package/lib/Button/ButtonDanger.d.ts +11 -11
- package/lib/Button/ButtonInvisible.d.ts +11 -11
- package/lib/Button/ButtonOutline.d.ts +11 -11
- package/lib/Button/ButtonPrimary.d.ts +11 -11
- package/lib/Button/ButtonStyles.js +1 -1
- package/lib/CircleBadge.d.ts +2 -2
- package/lib/CircleOcticon.d.ts +33 -33
- package/lib/Dialog.d.ts +35 -35
- package/lib/Dropdown.d.ts +110 -110
- package/lib/DropdownMenu/DropdownButton.d.ts +30 -30
- package/lib/FilterList.d.ts +26 -26
- package/lib/Label.d.ts +1 -1
- package/lib/NewButton/button.d.ts +24 -0
- package/lib/NewButton/button.js +292 -0
- package/lib/NewButton/counter.d.ts +6 -0
- package/lib/NewButton/counter.js +33 -0
- package/lib/NewButton/index.d.ts +4 -0
- package/lib/NewButton/index.js +21 -0
- package/lib/Position.d.ts +4 -4
- package/lib/ProgressBar.d.ts +1 -1
- package/lib/SelectMenu/SelectMenu.d.ts +151 -153
- package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/lib/SelectMenu/SelectMenuModal.d.ts +1 -1
- package/lib/TextInputWithTokens.d.ts +11 -13
- package/lib/Timeline.d.ts +33 -33
- package/lib/Token/AvatarToken.d.ts +1 -1
- package/lib/Token/IssueLabelToken.d.ts +1 -1
- package/lib/Token/Token.d.ts +1 -1
- package/lib/_TextInputWrapper.d.ts +1 -1
- package/lib/constants.js +3 -1
- package/lib/theme-preval.js +2 -2
- package/lib/utils/testing.d.ts +1 -1
- package/lib-esm/AnchoredOverlay/AnchoredOverlay.d.ts +2 -4
- package/lib-esm/Autocomplete/Autocomplete.d.ts +11 -13
- package/lib-esm/Autocomplete/AutocompleteInput.d.ts +11 -13
- package/lib-esm/Button/Button.d.ts +11 -11
- package/lib-esm/Button/ButtonBase.d.ts +1 -1
- package/lib-esm/Button/ButtonClose.d.ts +29 -29
- package/lib-esm/Button/ButtonDanger.d.ts +11 -11
- package/lib-esm/Button/ButtonInvisible.d.ts +11 -11
- package/lib-esm/Button/ButtonOutline.d.ts +11 -11
- package/lib-esm/Button/ButtonPrimary.d.ts +11 -11
- package/lib-esm/Button/ButtonStyles.js +1 -1
- package/lib-esm/CircleBadge.d.ts +2 -2
- package/lib-esm/CircleOcticon.d.ts +33 -33
- package/lib-esm/Dialog.d.ts +35 -35
- package/lib-esm/Dropdown.d.ts +110 -110
- package/lib-esm/DropdownMenu/DropdownButton.d.ts +30 -30
- package/lib-esm/FilterList.d.ts +26 -26
- package/lib-esm/Label.d.ts +1 -1
- package/lib-esm/NewButton/button.d.ts +24 -0
- package/lib-esm/NewButton/button.js +268 -0
- package/lib-esm/NewButton/counter.d.ts +6 -0
- package/lib-esm/NewButton/counter.js +21 -0
- package/lib-esm/NewButton/index.d.ts +4 -0
- package/lib-esm/NewButton/index.js +3 -0
- package/lib-esm/Position.d.ts +4 -4
- package/lib-esm/ProgressBar.d.ts +1 -1
- package/lib-esm/SelectMenu/SelectMenu.d.ts +151 -153
- package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/lib-esm/SelectMenu/SelectMenuModal.d.ts +1 -1
- package/lib-esm/TextInputWithTokens.d.ts +11 -13
- package/lib-esm/Timeline.d.ts +33 -33
- package/lib-esm/Token/AvatarToken.d.ts +1 -1
- package/lib-esm/Token/IssueLabelToken.d.ts +1 -1
- package/lib-esm/Token/Token.d.ts +1 -1
- package/lib-esm/_TextInputWrapper.d.ts +1 -1
- package/lib-esm/constants.js +3 -1
- package/lib-esm/theme-preval.js +2 -2
- package/lib-esm/utils/testing.d.ts +1 -1
- package/package.json +8 -9
- package/lib/DatePicker/DatePicker.d.ts +0 -48
- package/lib/DatePicker/DatePicker.js +0 -92
- package/lib/DatePicker/DatePickerAnchor.d.ts +0 -5
- package/lib/DatePicker/DatePickerAnchor.js +0 -158
- package/lib/DatePicker/DatePickerOverlay.d.ts +0 -3
- package/lib/DatePicker/DatePickerOverlay.js +0 -39
- package/lib/DatePicker/DatePickerPanel.d.ts +0 -2
- package/lib/DatePicker/DatePickerPanel.js +0 -126
- package/lib/DatePicker/Day.d.ts +0 -14
- package/lib/DatePicker/Day.js +0 -174
- package/lib/DatePicker/Month.d.ts +0 -9
- package/lib/DatePicker/Month.js +0 -107
- package/lib/DatePicker/index.d.ts +0 -2
- package/lib/DatePicker/index.js +0 -13
- package/lib/DatePicker/useDatePicker.d.ts +0 -83
- package/lib/DatePicker/useDatePicker.js +0 -375
- package/lib/hooks/useDebounce.d.ts +0 -2
- package/lib/hooks/useDebounce.js +0 -24
- package/lib-esm/DatePicker/DatePicker.d.ts +0 -48
- package/lib-esm/DatePicker/DatePicker.js +0 -75
- package/lib-esm/DatePicker/DatePickerAnchor.d.ts +0 -5
- package/lib-esm/DatePicker/DatePickerAnchor.js +0 -132
- package/lib-esm/DatePicker/DatePickerOverlay.d.ts +0 -3
- package/lib-esm/DatePicker/DatePickerOverlay.js +0 -24
- package/lib-esm/DatePicker/DatePickerPanel.d.ts +0 -2
- package/lib-esm/DatePicker/DatePickerPanel.js +0 -100
- package/lib-esm/DatePicker/Day.d.ts +0 -14
- package/lib-esm/DatePicker/Day.js +0 -151
- package/lib-esm/DatePicker/Month.d.ts +0 -9
- package/lib-esm/DatePicker/Month.js +0 -83
- package/lib-esm/DatePicker/index.d.ts +0 -2
- package/lib-esm/DatePicker/index.js +0 -1
- package/lib-esm/DatePicker/useDatePicker.d.ts +0 -83
- package/lib-esm/DatePicker/useDatePicker.js +0 -347
- package/lib-esm/hooks/useDebounce.d.ts +0 -2
- package/lib-esm/hooks/useDebounce.js +0 -16
@@ -26,8 +26,6 @@ interface AnchoredOverlayPropsWithoutAnchor {
|
|
26
26
|
*/
|
27
27
|
anchorRef: React.RefObject<HTMLElement>;
|
28
28
|
}
|
29
|
-
export declare type OverlayOpenGesture = 'anchor-click' | 'anchor-key-press';
|
30
|
-
export declare type OverlayCloseGesture = 'anchor-click' | 'click-outside' | 'escape';
|
31
29
|
export declare type AnchoredOverlayWrapperAnchorProps = Partial<AnchoredOverlayPropsWithAnchor> | AnchoredOverlayPropsWithoutAnchor;
|
32
30
|
interface AnchoredOverlayBaseProps extends Pick<OverlayProps, 'height' | 'width'> {
|
33
31
|
/**
|
@@ -37,11 +35,11 @@ interface AnchoredOverlayBaseProps extends Pick<OverlayProps, 'height' | 'width'
|
|
37
35
|
/**
|
38
36
|
* A callback which is called whenever the overlay is currently closed and an "open gesture" is detected.
|
39
37
|
*/
|
40
|
-
onOpen?: (gesture:
|
38
|
+
onOpen?: (gesture: 'anchor-click' | 'anchor-key-press') => unknown;
|
41
39
|
/**
|
42
40
|
* A callback which is called whenever the overlay is currently open and a "close gesture" is detected.
|
43
41
|
*/
|
44
|
-
onClose?: (gesture:
|
42
|
+
onClose?: (gesture: 'anchor-click' | 'click-outside' | 'escape') => unknown;
|
45
43
|
/**
|
46
44
|
* Props to be spread on the internal `Overlay` component.
|
47
45
|
*/
|
@@ -12,14 +12,12 @@ export type { AutocompleteOverlayProps } from './AutocompleteOverlay';
|
|
12
12
|
declare const _default: React.FC<{
|
13
13
|
id?: string | undefined;
|
14
14
|
}> & {
|
15
|
-
Input: import("@radix-ui/react-polymorphic").ForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<
|
15
|
+
Input: import("@radix-ui/react-polymorphic").ForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<{
|
16
16
|
[x: string]: any;
|
17
17
|
[x: number]: any;
|
18
18
|
} & {
|
19
19
|
theme?: any;
|
20
|
-
} &
|
21
|
-
children?: React.ReactNode;
|
22
|
-
})) & {
|
20
|
+
} & {
|
23
21
|
as?: string | React.ComponentType<any> | undefined;
|
24
22
|
forwardedAs?: string | React.ComponentType<any> | undefined;
|
25
23
|
}, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "disabled" | "variant" | "contrast"> & {
|
@@ -33,12 +31,10 @@ declare const _default: React.FC<{
|
|
33
31
|
minWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
34
32
|
translate?: "yes" | "no" | undefined;
|
35
33
|
width?: import("styled-system").ResponsiveValue<import("csstype").Property.Width<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
36
|
-
hidden?: boolean | undefined;
|
37
|
-
children?: React.ReactNode;
|
38
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
39
34
|
slot?: string | undefined;
|
40
35
|
style?: React.CSSProperties | undefined;
|
41
36
|
title?: string | undefined;
|
37
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
42
38
|
key?: React.Key | null | undefined;
|
43
39
|
defaultChecked?: boolean | undefined;
|
44
40
|
defaultValue?: string | number | readonly string[] | undefined;
|
@@ -46,10 +42,11 @@ declare const _default: React.FC<{
|
|
46
42
|
suppressHydrationWarning?: boolean | undefined;
|
47
43
|
accessKey?: string | undefined;
|
48
44
|
className?: string | undefined;
|
49
|
-
contentEditable?:
|
45
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
50
46
|
contextMenu?: string | undefined;
|
51
47
|
dir?: string | undefined;
|
52
48
|
draggable?: (boolean | "true" | "false") | undefined;
|
49
|
+
hidden?: boolean | undefined;
|
53
50
|
id?: string | undefined;
|
54
51
|
lang?: string | undefined;
|
55
52
|
placeholder?: string | undefined;
|
@@ -76,11 +73,11 @@ declare const _default: React.FC<{
|
|
76
73
|
results?: number | undefined;
|
77
74
|
security?: string | undefined;
|
78
75
|
unselectable?: "on" | "off" | undefined;
|
79
|
-
inputMode?: "none" | "
|
76
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
80
77
|
is?: string | undefined;
|
81
78
|
'aria-activedescendant'?: string | undefined;
|
82
79
|
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
83
|
-
'aria-autocomplete'?: "
|
80
|
+
'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
|
84
81
|
'aria-busy'?: boolean | "true" | "false" | undefined;
|
85
82
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
86
83
|
'aria-colcount'?: number | undefined;
|
@@ -91,12 +88,12 @@ declare const _default: React.FC<{
|
|
91
88
|
'aria-describedby'?: string | undefined;
|
92
89
|
'aria-details'?: string | undefined;
|
93
90
|
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
94
|
-
'aria-dropeffect'?: "
|
91
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
95
92
|
'aria-errormessage'?: string | undefined;
|
96
93
|
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
97
94
|
'aria-flowto'?: string | undefined;
|
98
95
|
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
99
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "
|
96
|
+
'aria-haspopup'?: boolean | "grid" | "dialog" | "listbox" | "menu" | "tree" | "true" | "false" | undefined;
|
100
97
|
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
101
98
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
102
99
|
'aria-keyshortcuts'?: string | undefined;
|
@@ -126,6 +123,7 @@ declare const _default: React.FC<{
|
|
126
123
|
'aria-valuemin'?: number | undefined;
|
127
124
|
'aria-valuenow'?: number | undefined;
|
128
125
|
'aria-valuetext'?: string | undefined;
|
126
|
+
children?: React.ReactNode;
|
129
127
|
dangerouslySetInnerHTML?: {
|
130
128
|
__html: string;
|
131
129
|
} | undefined;
|
@@ -292,7 +290,7 @@ declare const _default: React.FC<{
|
|
292
290
|
block?: boolean | undefined;
|
293
291
|
sx?: import("@styled-system/css").SystemStyleObject | undefined;
|
294
292
|
disabled?: boolean | undefined;
|
295
|
-
variant?: "
|
293
|
+
variant?: "small" | "large" | undefined;
|
296
294
|
hasIcon?: boolean | undefined;
|
297
295
|
contrast?: boolean | undefined;
|
298
296
|
} & {
|
@@ -4,14 +4,12 @@ import { ComponentProps } from '../utils/types';
|
|
4
4
|
declare type InternalAutocompleteInputProps = {
|
5
5
|
as?: React.ComponentType<any>;
|
6
6
|
};
|
7
|
-
declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<
|
7
|
+
declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<{
|
8
8
|
[x: string]: any;
|
9
9
|
[x: number]: any;
|
10
10
|
} & {
|
11
11
|
theme?: any;
|
12
|
-
} &
|
13
|
-
children?: React.ReactNode;
|
14
|
-
})) & {
|
12
|
+
} & {
|
15
13
|
as?: string | React.ComponentType<any> | undefined;
|
16
14
|
forwardedAs?: string | React.ComponentType<any> | undefined;
|
17
15
|
}, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "disabled" | "variant" | "contrast"> & {
|
@@ -25,12 +23,10 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
25
23
|
minWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
26
24
|
translate?: "yes" | "no" | undefined;
|
27
25
|
width?: import("styled-system").ResponsiveValue<import("csstype").Property.Width<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
28
|
-
hidden?: boolean | undefined;
|
29
|
-
children?: React.ReactNode;
|
30
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
31
26
|
slot?: string | undefined;
|
32
27
|
style?: React.CSSProperties | undefined;
|
33
28
|
title?: string | undefined;
|
29
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
34
30
|
key?: React.Key | null | undefined;
|
35
31
|
defaultChecked?: boolean | undefined;
|
36
32
|
defaultValue?: string | number | readonly string[] | undefined;
|
@@ -38,10 +34,11 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
38
34
|
suppressHydrationWarning?: boolean | undefined;
|
39
35
|
accessKey?: string | undefined;
|
40
36
|
className?: string | undefined;
|
41
|
-
contentEditable?:
|
37
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
42
38
|
contextMenu?: string | undefined;
|
43
39
|
dir?: string | undefined;
|
44
40
|
draggable?: (boolean | "true" | "false") | undefined;
|
41
|
+
hidden?: boolean | undefined;
|
45
42
|
id?: string | undefined;
|
46
43
|
lang?: string | undefined;
|
47
44
|
placeholder?: string | undefined;
|
@@ -68,11 +65,11 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
68
65
|
results?: number | undefined;
|
69
66
|
security?: string | undefined;
|
70
67
|
unselectable?: "on" | "off" | undefined;
|
71
|
-
inputMode?: "none" | "
|
68
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
72
69
|
is?: string | undefined;
|
73
70
|
'aria-activedescendant'?: string | undefined;
|
74
71
|
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
75
|
-
'aria-autocomplete'?: "
|
72
|
+
'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
|
76
73
|
'aria-busy'?: boolean | "true" | "false" | undefined;
|
77
74
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
78
75
|
'aria-colcount'?: number | undefined;
|
@@ -83,12 +80,12 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
83
80
|
'aria-describedby'?: string | undefined;
|
84
81
|
'aria-details'?: string | undefined;
|
85
82
|
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
86
|
-
'aria-dropeffect'?: "
|
83
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
87
84
|
'aria-errormessage'?: string | undefined;
|
88
85
|
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
89
86
|
'aria-flowto'?: string | undefined;
|
90
87
|
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
91
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "
|
88
|
+
'aria-haspopup'?: boolean | "grid" | "dialog" | "listbox" | "menu" | "tree" | "true" | "false" | undefined;
|
92
89
|
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
93
90
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
94
91
|
'aria-keyshortcuts'?: string | undefined;
|
@@ -118,6 +115,7 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
118
115
|
'aria-valuemin'?: number | undefined;
|
119
116
|
'aria-valuenow'?: number | undefined;
|
120
117
|
'aria-valuetext'?: string | undefined;
|
118
|
+
children?: React.ReactNode;
|
121
119
|
dangerouslySetInnerHTML?: {
|
122
120
|
__html: string;
|
123
121
|
} | undefined;
|
@@ -284,7 +282,7 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
284
282
|
block?: boolean | undefined;
|
285
283
|
sx?: import("@styled-system/css").SystemStyleObject | undefined;
|
286
284
|
disabled?: boolean | undefined;
|
287
|
-
variant?: "
|
285
|
+
variant?: "small" | "large" | undefined;
|
288
286
|
hasIcon?: boolean | undefined;
|
289
287
|
contrast?: boolean | undefined;
|
290
288
|
} & {
|
package/lib/Button/Button.d.ts
CHANGED
@@ -3,19 +3,16 @@ import { SxProp } from '../sx';
|
|
3
3
|
import { ComponentProps } from '../utils/types';
|
4
4
|
declare const Button: import("styled-components").StyledComponent<"button", any, {
|
5
5
|
as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
|
6
|
-
variant?: "
|
6
|
+
variant?: "small" | "large" | "medium" | undefined;
|
7
7
|
} & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
8
8
|
color?: string | undefined;
|
9
9
|
fontSize?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
10
10
|
translate?: "yes" | "no" | undefined;
|
11
|
-
hidden?: boolean | undefined;
|
12
|
-
children?: import("react").ReactNode;
|
13
|
-
value?: string | number | readonly string[] | undefined;
|
14
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
15
11
|
form?: string | undefined;
|
16
12
|
slot?: string | undefined;
|
17
13
|
style?: import("react").CSSProperties | undefined;
|
18
14
|
title?: string | undefined;
|
15
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
19
16
|
type?: "button" | "reset" | "submit" | undefined;
|
20
17
|
name?: string | undefined;
|
21
18
|
key?: import("react").Key | null | undefined;
|
@@ -25,10 +22,11 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
|
|
25
22
|
suppressHydrationWarning?: boolean | undefined;
|
26
23
|
accessKey?: string | undefined;
|
27
24
|
className?: string | undefined;
|
28
|
-
contentEditable?:
|
25
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
29
26
|
contextMenu?: string | undefined;
|
30
27
|
dir?: string | undefined;
|
31
28
|
draggable?: (boolean | "true" | "false") | undefined;
|
29
|
+
hidden?: boolean | undefined;
|
32
30
|
id?: string | undefined;
|
33
31
|
lang?: string | undefined;
|
34
32
|
placeholder?: string | undefined;
|
@@ -55,11 +53,11 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
|
|
55
53
|
results?: number | undefined;
|
56
54
|
security?: string | undefined;
|
57
55
|
unselectable?: "on" | "off" | undefined;
|
58
|
-
inputMode?: "none" | "
|
56
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
59
57
|
is?: string | undefined;
|
60
58
|
'aria-activedescendant'?: string | undefined;
|
61
59
|
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
62
|
-
'aria-autocomplete'?: "
|
60
|
+
'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
|
63
61
|
'aria-busy'?: boolean | "true" | "false" | undefined;
|
64
62
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
65
63
|
'aria-colcount'?: number | undefined;
|
@@ -70,12 +68,12 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
|
|
70
68
|
'aria-describedby'?: string | undefined;
|
71
69
|
'aria-details'?: string | undefined;
|
72
70
|
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
73
|
-
'aria-dropeffect'?: "
|
71
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
74
72
|
'aria-errormessage'?: string | undefined;
|
75
73
|
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
76
74
|
'aria-flowto'?: string | undefined;
|
77
75
|
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
78
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "
|
76
|
+
'aria-haspopup'?: boolean | "grid" | "dialog" | "listbox" | "menu" | "tree" | "true" | "false" | undefined;
|
79
77
|
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
80
78
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
81
79
|
'aria-keyshortcuts'?: string | undefined;
|
@@ -105,6 +103,7 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
|
|
105
103
|
'aria-valuemin'?: number | undefined;
|
106
104
|
'aria-valuenow'?: number | undefined;
|
107
105
|
'aria-valuetext'?: string | undefined;
|
106
|
+
children?: import("react").ReactNode;
|
108
107
|
dangerouslySetInnerHTML?: {
|
109
108
|
__html: string;
|
110
109
|
} | undefined;
|
@@ -268,6 +267,7 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
|
|
268
267
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
269
268
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
270
269
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
270
|
+
value?: string | number | readonly string[] | undefined;
|
271
271
|
autoFocus?: boolean | undefined;
|
272
272
|
disabled?: boolean | undefined;
|
273
273
|
formAction?: string | undefined;
|
@@ -275,8 +275,8 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
|
|
275
275
|
formMethod?: string | undefined;
|
276
276
|
formNoValidate?: boolean | undefined;
|
277
277
|
formTarget?: string | undefined;
|
278
|
+
variant?: "small" | "large" | "medium" | undefined;
|
278
279
|
as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
|
279
|
-
variant?: "large" | "medium" | "small" | undefined;
|
280
280
|
} & {
|
281
281
|
theme?: any;
|
282
282
|
} & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../constants").SystemCommonProps & import("../constants").SystemLayoutProps & SxProp, never>;
|
@@ -6,7 +6,7 @@ export declare const buttonSystemProps: import("styled-system").styleFn;
|
|
6
6
|
export declare type ButtonSystemProps = FontSizeProps & SystemCommonProps & SystemLayoutProps;
|
7
7
|
declare const ButtonBase: import("styled-components").StyledComponent<"button", any, {
|
8
8
|
as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
|
9
|
-
variant?: "
|
9
|
+
variant?: "small" | "large" | "medium" | undefined;
|
10
10
|
} & FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, never>;
|
11
11
|
export declare type ButtonBaseProps = ComponentProps<typeof ButtonBase>;
|
12
12
|
export default ButtonBase;
|
@@ -26,15 +26,30 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
|
|
26
26
|
margin?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
27
27
|
overflow?: import("styled-system").ResponsiveValue<import("csstype").Property.Overflow, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
28
28
|
padding?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
29
|
+
bg?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
30
|
+
m?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
31
|
+
mt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
32
|
+
mr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
33
|
+
mb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
34
|
+
ml?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
35
|
+
mx?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
36
|
+
marginX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
37
|
+
my?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
38
|
+
marginY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
34
39
|
p?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
40
|
+
pt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
41
|
+
pr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
42
|
+
pb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
43
|
+
pl?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
44
|
+
px?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
45
|
+
paddingX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
46
|
+
py?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
47
|
+
paddingY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
48
|
+
form?: string | undefined;
|
35
49
|
slot?: string | undefined;
|
36
50
|
style?: React.CSSProperties | undefined;
|
37
51
|
title?: string | undefined;
|
52
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
38
53
|
type?: "button" | "reset" | "submit" | undefined;
|
39
54
|
name?: string | undefined;
|
40
55
|
key?: React.Key | null | undefined;
|
@@ -44,10 +59,11 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
|
|
44
59
|
suppressHydrationWarning?: boolean | undefined;
|
45
60
|
accessKey?: string | undefined;
|
46
61
|
className?: string | undefined;
|
47
|
-
contentEditable?:
|
62
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
48
63
|
contextMenu?: string | undefined;
|
49
64
|
dir?: string | undefined;
|
50
65
|
draggable?: (boolean | "true" | "false") | undefined;
|
66
|
+
hidden?: boolean | undefined;
|
51
67
|
id?: string | undefined;
|
52
68
|
lang?: string | undefined;
|
53
69
|
placeholder?: string | undefined;
|
@@ -74,11 +90,11 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
|
|
74
90
|
results?: number | undefined;
|
75
91
|
security?: string | undefined;
|
76
92
|
unselectable?: "on" | "off" | undefined;
|
77
|
-
inputMode?: "none" | "
|
93
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
78
94
|
is?: string | undefined;
|
79
95
|
'aria-activedescendant'?: string | undefined;
|
80
96
|
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
81
|
-
'aria-autocomplete'?: "
|
97
|
+
'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
|
82
98
|
'aria-busy'?: boolean | "true" | "false" | undefined;
|
83
99
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
84
100
|
'aria-colcount'?: number | undefined;
|
@@ -89,12 +105,12 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
|
|
89
105
|
'aria-describedby'?: string | undefined;
|
90
106
|
'aria-details'?: string | undefined;
|
91
107
|
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
92
|
-
'aria-dropeffect'?: "
|
108
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
93
109
|
'aria-errormessage'?: string | undefined;
|
94
110
|
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
95
111
|
'aria-flowto'?: string | undefined;
|
96
112
|
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
97
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "
|
113
|
+
'aria-haspopup'?: boolean | "grid" | "dialog" | "listbox" | "menu" | "tree" | "true" | "false" | undefined;
|
98
114
|
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
99
115
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
100
116
|
'aria-keyshortcuts'?: string | undefined;
|
@@ -124,6 +140,7 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
|
|
124
140
|
'aria-valuemin'?: number | undefined;
|
125
141
|
'aria-valuenow'?: number | undefined;
|
126
142
|
'aria-valuetext'?: string | undefined;
|
143
|
+
children?: React.ReactNode;
|
127
144
|
dangerouslySetInnerHTML?: {
|
128
145
|
__html: string;
|
129
146
|
} | undefined;
|
@@ -287,26 +304,9 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
|
|
287
304
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement> | undefined;
|
288
305
|
onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
289
306
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
290
|
-
bg?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
291
|
-
m?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
292
|
-
mt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
293
|
-
mr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
294
|
-
mb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
295
|
-
ml?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
296
|
-
mx?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
297
|
-
marginX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
298
|
-
my?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
299
|
-
marginY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
300
|
-
pt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
301
|
-
pr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
302
|
-
pb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
303
|
-
pl?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
304
|
-
px?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
305
|
-
paddingX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
306
|
-
py?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
307
|
-
paddingY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
308
307
|
size?: import("styled-system").ResponsiveValue<import("csstype").Property.Height<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
309
308
|
sx?: import("@styled-system/css").SystemStyleObject | undefined;
|
309
|
+
value?: string | number | readonly string[] | undefined;
|
310
310
|
autoFocus?: boolean | undefined;
|
311
311
|
disabled?: boolean | undefined;
|
312
312
|
formAction?: string | undefined;
|
@@ -316,6 +316,6 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
|
|
316
316
|
formTarget?: string | undefined;
|
317
317
|
} & {
|
318
318
|
theme?: any;
|
319
|
-
}, "backgroundColor" | "color" | "display" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "verticalAlign" | "width" | "margin" | "overflow" | "padding" | "
|
319
|
+
}, "backgroundColor" | "color" | "display" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "verticalAlign" | "width" | "margin" | "overflow" | "padding" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "form" | "slot" | "style" | "title" | "theme" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "size" | "sx" | "value" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & React.RefAttributes<HTMLButtonElement>>;
|
320
320
|
export declare type ButtonCloseProps = ComponentProps<typeof ButtonClose>;
|
321
321
|
export default ButtonClose;
|
@@ -3,19 +3,16 @@ import { SxProp } from '../sx';
|
|
3
3
|
import { ComponentProps } from '../utils/types';
|
4
4
|
declare const ButtonDanger: import("styled-components").StyledComponent<"button", any, {
|
5
5
|
as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
|
6
|
-
variant?: "
|
6
|
+
variant?: "small" | "large" | "medium" | undefined;
|
7
7
|
} & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
8
8
|
color?: string | undefined;
|
9
9
|
fontSize?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
10
10
|
translate?: "yes" | "no" | undefined;
|
11
|
-
hidden?: boolean | undefined;
|
12
|
-
children?: import("react").ReactNode;
|
13
|
-
value?: string | number | readonly string[] | undefined;
|
14
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
15
11
|
form?: string | undefined;
|
16
12
|
slot?: string | undefined;
|
17
13
|
style?: import("react").CSSProperties | undefined;
|
18
14
|
title?: string | undefined;
|
15
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
19
16
|
type?: "button" | "reset" | "submit" | undefined;
|
20
17
|
name?: string | undefined;
|
21
18
|
key?: import("react").Key | null | undefined;
|
@@ -25,10 +22,11 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
|
|
25
22
|
suppressHydrationWarning?: boolean | undefined;
|
26
23
|
accessKey?: string | undefined;
|
27
24
|
className?: string | undefined;
|
28
|
-
contentEditable?:
|
25
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
29
26
|
contextMenu?: string | undefined;
|
30
27
|
dir?: string | undefined;
|
31
28
|
draggable?: (boolean | "true" | "false") | undefined;
|
29
|
+
hidden?: boolean | undefined;
|
32
30
|
id?: string | undefined;
|
33
31
|
lang?: string | undefined;
|
34
32
|
placeholder?: string | undefined;
|
@@ -55,11 +53,11 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
|
|
55
53
|
results?: number | undefined;
|
56
54
|
security?: string | undefined;
|
57
55
|
unselectable?: "on" | "off" | undefined;
|
58
|
-
inputMode?: "none" | "
|
56
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
59
57
|
is?: string | undefined;
|
60
58
|
'aria-activedescendant'?: string | undefined;
|
61
59
|
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
62
|
-
'aria-autocomplete'?: "
|
60
|
+
'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
|
63
61
|
'aria-busy'?: boolean | "true" | "false" | undefined;
|
64
62
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
65
63
|
'aria-colcount'?: number | undefined;
|
@@ -70,12 +68,12 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
|
|
70
68
|
'aria-describedby'?: string | undefined;
|
71
69
|
'aria-details'?: string | undefined;
|
72
70
|
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
73
|
-
'aria-dropeffect'?: "
|
71
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
74
72
|
'aria-errormessage'?: string | undefined;
|
75
73
|
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
76
74
|
'aria-flowto'?: string | undefined;
|
77
75
|
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
78
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "
|
76
|
+
'aria-haspopup'?: boolean | "grid" | "dialog" | "listbox" | "menu" | "tree" | "true" | "false" | undefined;
|
79
77
|
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
80
78
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
81
79
|
'aria-keyshortcuts'?: string | undefined;
|
@@ -105,6 +103,7 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
|
|
105
103
|
'aria-valuemin'?: number | undefined;
|
106
104
|
'aria-valuenow'?: number | undefined;
|
107
105
|
'aria-valuetext'?: string | undefined;
|
106
|
+
children?: import("react").ReactNode;
|
108
107
|
dangerouslySetInnerHTML?: {
|
109
108
|
__html: string;
|
110
109
|
} | undefined;
|
@@ -268,6 +267,7 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
|
|
268
267
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
269
268
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
270
269
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
270
|
+
value?: string | number | readonly string[] | undefined;
|
271
271
|
autoFocus?: boolean | undefined;
|
272
272
|
disabled?: boolean | undefined;
|
273
273
|
formAction?: string | undefined;
|
@@ -275,8 +275,8 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
|
|
275
275
|
formMethod?: string | undefined;
|
276
276
|
formNoValidate?: boolean | undefined;
|
277
277
|
formTarget?: string | undefined;
|
278
|
+
variant?: "small" | "large" | "medium" | undefined;
|
278
279
|
as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
|
279
|
-
variant?: "large" | "medium" | "small" | undefined;
|
280
280
|
} & {
|
281
281
|
theme?: any;
|
282
282
|
} & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../constants").SystemCommonProps & import("../constants").SystemLayoutProps & SxProp, never>;
|