@primer/components 0.0.0-202192563541 → 0.0.0-202192602912
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 +8 -4
- 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 +4 -2
- package/lib/Autocomplete/Autocomplete.d.ts +13 -11
- package/lib/Autocomplete/AutocompleteInput.d.ts +13 -11
- 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/DatePicker/DatePicker.d.ts +48 -0
- package/lib/DatePicker/DatePicker.js +92 -0
- package/lib/DatePicker/DatePickerAnchor.d.ts +5 -0
- package/lib/DatePicker/DatePickerAnchor.js +158 -0
- package/lib/DatePicker/DatePickerOverlay.d.ts +3 -0
- package/lib/DatePicker/DatePickerOverlay.js +39 -0
- package/lib/DatePicker/DatePickerPanel.d.ts +2 -0
- package/lib/DatePicker/DatePickerPanel.js +126 -0
- package/lib/DatePicker/Day.d.ts +14 -0
- package/lib/DatePicker/Day.js +174 -0
- package/lib/DatePicker/Month.d.ts +9 -0
- package/lib/DatePicker/Month.js +107 -0
- package/lib/DatePicker/index.d.ts +2 -0
- package/lib/DatePicker/index.js +13 -0
- package/lib/DatePicker/useDatePicker.d.ts +83 -0
- package/lib/DatePicker/useDatePicker.js +375 -0
- 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/Position.d.ts +4 -4
- package/lib/ProgressBar.d.ts +1 -1
- package/lib/SelectMenu/SelectMenu.d.ts +153 -151
- package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/lib/SelectMenu/SelectMenuModal.d.ts +1 -1
- package/lib/TextInputWithTokens.d.ts +13 -11
- 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 +1 -3
- package/lib/hooks/useDebounce.d.ts +2 -0
- package/lib/hooks/useDebounce.js +24 -0
- package/lib/theme-preval.js +2 -2
- package/lib/utils/testing.d.ts +1 -1
- package/lib-esm/AnchoredOverlay/AnchoredOverlay.d.ts +4 -2
- package/lib-esm/Autocomplete/Autocomplete.d.ts +13 -11
- package/lib-esm/Autocomplete/AutocompleteInput.d.ts +13 -11
- 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/DatePicker/DatePicker.d.ts +48 -0
- package/lib-esm/DatePicker/DatePicker.js +75 -0
- package/lib-esm/DatePicker/DatePickerAnchor.d.ts +5 -0
- package/lib-esm/DatePicker/DatePickerAnchor.js +132 -0
- package/lib-esm/DatePicker/DatePickerOverlay.d.ts +3 -0
- package/lib-esm/DatePicker/DatePickerOverlay.js +24 -0
- package/lib-esm/DatePicker/DatePickerPanel.d.ts +2 -0
- package/lib-esm/DatePicker/DatePickerPanel.js +100 -0
- package/lib-esm/DatePicker/Day.d.ts +14 -0
- package/lib-esm/DatePicker/Day.js +151 -0
- package/lib-esm/DatePicker/Month.d.ts +9 -0
- package/lib-esm/DatePicker/Month.js +83 -0
- package/lib-esm/DatePicker/index.d.ts +2 -0
- package/lib-esm/DatePicker/index.js +1 -0
- package/lib-esm/DatePicker/useDatePicker.d.ts +83 -0
- package/lib-esm/DatePicker/useDatePicker.js +347 -0
- 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/Position.d.ts +4 -4
- package/lib-esm/ProgressBar.d.ts +1 -1
- package/lib-esm/SelectMenu/SelectMenu.d.ts +153 -151
- package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/lib-esm/SelectMenu/SelectMenuModal.d.ts +1 -1
- package/lib-esm/TextInputWithTokens.d.ts +13 -11
- 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 +1 -3
- package/lib-esm/hooks/useDebounce.d.ts +2 -0
- package/lib-esm/hooks/useDebounce.js +16 -0
- package/lib-esm/theme-preval.js +2 -2
- package/lib-esm/utils/testing.d.ts +1 -1
- package/package.json +9 -8
- package/lib/NewButton/button.d.ts +0 -18
- package/lib/NewButton/button.js +0 -278
- package/lib/NewButton/index.d.ts +0 -4
- package/lib/NewButton/index.js +0 -21
- package/lib-esm/NewButton/button.d.ts +0 -18
- package/lib-esm/NewButton/button.js +0 -256
- package/lib-esm/NewButton/index.d.ts +0 -4
- package/lib-esm/NewButton/index.js +0 -3
package/lib/utils/testing.d.ts
CHANGED
@@ -53,7 +53,7 @@ export declare function render(component: React.ReactElement, theme?: {
|
|
53
53
|
xlarge: string;
|
54
54
|
};
|
55
55
|
space: string[];
|
56
|
-
colorSchemes: Record<"
|
56
|
+
colorSchemes: Record<"light" | "light_colorblind" | "dark" | "dark_dimmed" | "dark_high_contrast" | "dark_colorblind", Record<"colors" | "shadows", Partial<{
|
57
57
|
canvasDefaultTransparent: string;
|
58
58
|
marketingIcon: {
|
59
59
|
primary: string;
|
@@ -26,6 +26,8 @@ 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';
|
29
31
|
export declare type AnchoredOverlayWrapperAnchorProps = Partial<AnchoredOverlayPropsWithAnchor> | AnchoredOverlayPropsWithoutAnchor;
|
30
32
|
interface AnchoredOverlayBaseProps extends Pick<OverlayProps, 'height' | 'width'> {
|
31
33
|
/**
|
@@ -35,11 +37,11 @@ interface AnchoredOverlayBaseProps extends Pick<OverlayProps, 'height' | 'width'
|
|
35
37
|
/**
|
36
38
|
* A callback which is called whenever the overlay is currently closed and an "open gesture" is detected.
|
37
39
|
*/
|
38
|
-
onOpen?: (gesture:
|
40
|
+
onOpen?: (gesture: OverlayOpenGesture) => unknown;
|
39
41
|
/**
|
40
42
|
* A callback which is called whenever the overlay is currently open and a "close gesture" is detected.
|
41
43
|
*/
|
42
|
-
onClose?: (gesture:
|
44
|
+
onClose?: (gesture: OverlayCloseGesture) => unknown;
|
43
45
|
/**
|
44
46
|
* Props to be spread on the internal `Overlay` component.
|
45
47
|
*/
|
@@ -12,12 +12,14 @@ 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
|
-
} & {
|
20
|
+
} & ({} | {
|
21
|
+
children?: React.ReactNode;
|
22
|
+
})) & {
|
21
23
|
as?: string | React.ComponentType<any> | undefined;
|
22
24
|
forwardedAs?: string | React.ComponentType<any> | undefined;
|
23
25
|
}, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "disabled" | "variant" | "contrast"> & {
|
@@ -31,10 +33,12 @@ declare const _default: React.FC<{
|
|
31
33
|
minWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
32
34
|
translate?: "yes" | "no" | undefined;
|
33
35
|
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;
|
34
39
|
slot?: string | undefined;
|
35
40
|
style?: React.CSSProperties | undefined;
|
36
41
|
title?: string | undefined;
|
37
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
38
42
|
key?: React.Key | null | undefined;
|
39
43
|
defaultChecked?: boolean | undefined;
|
40
44
|
defaultValue?: string | number | readonly string[] | undefined;
|
@@ -42,11 +46,10 @@ declare const _default: React.FC<{
|
|
42
46
|
suppressHydrationWarning?: boolean | undefined;
|
43
47
|
accessKey?: string | undefined;
|
44
48
|
className?: string | undefined;
|
45
|
-
contentEditable?: (boolean | "true" | "false") |
|
49
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
46
50
|
contextMenu?: string | undefined;
|
47
51
|
dir?: string | undefined;
|
48
52
|
draggable?: (boolean | "true" | "false") | undefined;
|
49
|
-
hidden?: boolean | undefined;
|
50
53
|
id?: string | undefined;
|
51
54
|
lang?: string | undefined;
|
52
55
|
placeholder?: string | undefined;
|
@@ -73,11 +76,11 @@ declare const _default: React.FC<{
|
|
73
76
|
results?: number | undefined;
|
74
77
|
security?: string | undefined;
|
75
78
|
unselectable?: "on" | "off" | undefined;
|
76
|
-
inputMode?: "none" | "
|
79
|
+
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
77
80
|
is?: string | undefined;
|
78
81
|
'aria-activedescendant'?: string | undefined;
|
79
82
|
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
80
|
-
'aria-autocomplete'?: "
|
83
|
+
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
81
84
|
'aria-busy'?: boolean | "true" | "false" | undefined;
|
82
85
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
83
86
|
'aria-colcount'?: number | undefined;
|
@@ -88,12 +91,12 @@ declare const _default: React.FC<{
|
|
88
91
|
'aria-describedby'?: string | undefined;
|
89
92
|
'aria-details'?: string | undefined;
|
90
93
|
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
91
|
-
'aria-dropeffect'?: "
|
94
|
+
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
92
95
|
'aria-errormessage'?: string | undefined;
|
93
96
|
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
94
97
|
'aria-flowto'?: string | undefined;
|
95
98
|
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
96
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "
|
99
|
+
'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "tree" | "true" | "false" | undefined;
|
97
100
|
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
98
101
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
99
102
|
'aria-keyshortcuts'?: string | undefined;
|
@@ -123,7 +126,6 @@ declare const _default: React.FC<{
|
|
123
126
|
'aria-valuemin'?: number | undefined;
|
124
127
|
'aria-valuenow'?: number | undefined;
|
125
128
|
'aria-valuetext'?: string | undefined;
|
126
|
-
children?: React.ReactNode;
|
127
129
|
dangerouslySetInnerHTML?: {
|
128
130
|
__html: string;
|
129
131
|
} | undefined;
|
@@ -290,7 +292,7 @@ declare const _default: React.FC<{
|
|
290
292
|
block?: boolean | undefined;
|
291
293
|
sx?: import("@styled-system/css").SystemStyleObject | undefined;
|
292
294
|
disabled?: boolean | undefined;
|
293
|
-
variant?: "
|
295
|
+
variant?: "large" | "small" | undefined;
|
294
296
|
hasIcon?: boolean | undefined;
|
295
297
|
contrast?: boolean | undefined;
|
296
298
|
} & {
|
@@ -4,12 +4,14 @@ 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
|
-
} & {
|
12
|
+
} & ({} | {
|
13
|
+
children?: React.ReactNode;
|
14
|
+
})) & {
|
13
15
|
as?: string | React.ComponentType<any> | undefined;
|
14
16
|
forwardedAs?: string | React.ComponentType<any> | undefined;
|
15
17
|
}, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "disabled" | "variant" | "contrast"> & {
|
@@ -23,10 +25,12 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
23
25
|
minWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
24
26
|
translate?: "yes" | "no" | undefined;
|
25
27
|
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;
|
26
31
|
slot?: string | undefined;
|
27
32
|
style?: React.CSSProperties | undefined;
|
28
33
|
title?: string | undefined;
|
29
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
30
34
|
key?: React.Key | null | undefined;
|
31
35
|
defaultChecked?: boolean | undefined;
|
32
36
|
defaultValue?: string | number | readonly string[] | undefined;
|
@@ -34,11 +38,10 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
34
38
|
suppressHydrationWarning?: boolean | undefined;
|
35
39
|
accessKey?: string | undefined;
|
36
40
|
className?: string | undefined;
|
37
|
-
contentEditable?: (boolean | "true" | "false") |
|
41
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
38
42
|
contextMenu?: string | undefined;
|
39
43
|
dir?: string | undefined;
|
40
44
|
draggable?: (boolean | "true" | "false") | undefined;
|
41
|
-
hidden?: boolean | undefined;
|
42
45
|
id?: string | undefined;
|
43
46
|
lang?: string | undefined;
|
44
47
|
placeholder?: string | undefined;
|
@@ -65,11 +68,11 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
65
68
|
results?: number | undefined;
|
66
69
|
security?: string | undefined;
|
67
70
|
unselectable?: "on" | "off" | undefined;
|
68
|
-
inputMode?: "none" | "
|
71
|
+
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
69
72
|
is?: string | undefined;
|
70
73
|
'aria-activedescendant'?: string | undefined;
|
71
74
|
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
72
|
-
'aria-autocomplete'?: "
|
75
|
+
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
73
76
|
'aria-busy'?: boolean | "true" | "false" | undefined;
|
74
77
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
75
78
|
'aria-colcount'?: number | undefined;
|
@@ -80,12 +83,12 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
80
83
|
'aria-describedby'?: string | undefined;
|
81
84
|
'aria-details'?: string | undefined;
|
82
85
|
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
83
|
-
'aria-dropeffect'?: "
|
86
|
+
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
84
87
|
'aria-errormessage'?: string | undefined;
|
85
88
|
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
86
89
|
'aria-flowto'?: string | undefined;
|
87
90
|
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
88
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "
|
91
|
+
'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "tree" | "true" | "false" | undefined;
|
89
92
|
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
90
93
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
91
94
|
'aria-keyshortcuts'?: string | undefined;
|
@@ -115,7 +118,6 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
115
118
|
'aria-valuemin'?: number | undefined;
|
116
119
|
'aria-valuenow'?: number | undefined;
|
117
120
|
'aria-valuetext'?: string | undefined;
|
118
|
-
children?: React.ReactNode;
|
119
121
|
dangerouslySetInnerHTML?: {
|
120
122
|
__html: string;
|
121
123
|
} | undefined;
|
@@ -282,7 +284,7 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
282
284
|
block?: boolean | undefined;
|
283
285
|
sx?: import("@styled-system/css").SystemStyleObject | undefined;
|
284
286
|
disabled?: boolean | undefined;
|
285
|
-
variant?: "
|
287
|
+
variant?: "large" | "small" | undefined;
|
286
288
|
hasIcon?: boolean | undefined;
|
287
289
|
contrast?: boolean | undefined;
|
288
290
|
} & {
|
@@ -3,16 +3,19 @@ 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?: "large" | "medium" | "small" | 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;
|
11
15
|
form?: string | undefined;
|
12
16
|
slot?: string | undefined;
|
13
17
|
style?: import("react").CSSProperties | undefined;
|
14
18
|
title?: string | undefined;
|
15
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
16
19
|
type?: "button" | "reset" | "submit" | undefined;
|
17
20
|
name?: string | undefined;
|
18
21
|
key?: import("react").Key | null | undefined;
|
@@ -22,11 +25,10 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
|
|
22
25
|
suppressHydrationWarning?: boolean | undefined;
|
23
26
|
accessKey?: string | undefined;
|
24
27
|
className?: string | undefined;
|
25
|
-
contentEditable?: (boolean | "true" | "false") |
|
28
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
26
29
|
contextMenu?: string | undefined;
|
27
30
|
dir?: string | undefined;
|
28
31
|
draggable?: (boolean | "true" | "false") | undefined;
|
29
|
-
hidden?: boolean | undefined;
|
30
32
|
id?: string | undefined;
|
31
33
|
lang?: string | undefined;
|
32
34
|
placeholder?: string | undefined;
|
@@ -53,11 +55,11 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
|
|
53
55
|
results?: number | undefined;
|
54
56
|
security?: string | undefined;
|
55
57
|
unselectable?: "on" | "off" | undefined;
|
56
|
-
inputMode?: "none" | "
|
58
|
+
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
57
59
|
is?: string | undefined;
|
58
60
|
'aria-activedescendant'?: string | undefined;
|
59
61
|
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
60
|
-
'aria-autocomplete'?: "
|
62
|
+
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
61
63
|
'aria-busy'?: boolean | "true" | "false" | undefined;
|
62
64
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
63
65
|
'aria-colcount'?: number | undefined;
|
@@ -68,12 +70,12 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
|
|
68
70
|
'aria-describedby'?: string | undefined;
|
69
71
|
'aria-details'?: string | undefined;
|
70
72
|
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
71
|
-
'aria-dropeffect'?: "
|
73
|
+
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
72
74
|
'aria-errormessage'?: string | undefined;
|
73
75
|
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
74
76
|
'aria-flowto'?: string | undefined;
|
75
77
|
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
76
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "
|
78
|
+
'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "tree" | "true" | "false" | undefined;
|
77
79
|
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
78
80
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
79
81
|
'aria-keyshortcuts'?: string | undefined;
|
@@ -103,7 +105,6 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
|
|
103
105
|
'aria-valuemin'?: number | undefined;
|
104
106
|
'aria-valuenow'?: number | undefined;
|
105
107
|
'aria-valuetext'?: string | undefined;
|
106
|
-
children?: import("react").ReactNode;
|
107
108
|
dangerouslySetInnerHTML?: {
|
108
109
|
__html: string;
|
109
110
|
} | undefined;
|
@@ -267,7 +268,6 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
|
|
267
268
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
268
269
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
269
270
|
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;
|
279
278
|
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?: "large" | "medium" | "small" | 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,30 +26,15 @@ 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
|
-
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;
|
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;
|
29
|
+
hidden?: boolean | undefined;
|
30
|
+
children?: React.ReactNode;
|
31
|
+
value?: string | number | readonly string[] | undefined;
|
32
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
48
33
|
form?: string | undefined;
|
34
|
+
p?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
49
35
|
slot?: string | undefined;
|
50
36
|
style?: React.CSSProperties | undefined;
|
51
37
|
title?: string | undefined;
|
52
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
53
38
|
type?: "button" | "reset" | "submit" | undefined;
|
54
39
|
name?: string | undefined;
|
55
40
|
key?: React.Key | null | undefined;
|
@@ -59,11 +44,10 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
|
|
59
44
|
suppressHydrationWarning?: boolean | undefined;
|
60
45
|
accessKey?: string | undefined;
|
61
46
|
className?: string | undefined;
|
62
|
-
contentEditable?: (boolean | "true" | "false") |
|
47
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
63
48
|
contextMenu?: string | undefined;
|
64
49
|
dir?: string | undefined;
|
65
50
|
draggable?: (boolean | "true" | "false") | undefined;
|
66
|
-
hidden?: boolean | undefined;
|
67
51
|
id?: string | undefined;
|
68
52
|
lang?: string | undefined;
|
69
53
|
placeholder?: string | undefined;
|
@@ -90,11 +74,11 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
|
|
90
74
|
results?: number | undefined;
|
91
75
|
security?: string | undefined;
|
92
76
|
unselectable?: "on" | "off" | undefined;
|
93
|
-
inputMode?: "none" | "
|
77
|
+
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
94
78
|
is?: string | undefined;
|
95
79
|
'aria-activedescendant'?: string | undefined;
|
96
80
|
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
97
|
-
'aria-autocomplete'?: "
|
81
|
+
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
98
82
|
'aria-busy'?: boolean | "true" | "false" | undefined;
|
99
83
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
100
84
|
'aria-colcount'?: number | undefined;
|
@@ -105,12 +89,12 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
|
|
105
89
|
'aria-describedby'?: string | undefined;
|
106
90
|
'aria-details'?: string | undefined;
|
107
91
|
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
108
|
-
'aria-dropeffect'?: "
|
92
|
+
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
109
93
|
'aria-errormessage'?: string | undefined;
|
110
94
|
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
111
95
|
'aria-flowto'?: string | undefined;
|
112
96
|
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
113
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "
|
97
|
+
'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "tree" | "true" | "false" | undefined;
|
114
98
|
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
115
99
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
116
100
|
'aria-keyshortcuts'?: string | undefined;
|
@@ -140,7 +124,6 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
|
|
140
124
|
'aria-valuemin'?: number | undefined;
|
141
125
|
'aria-valuenow'?: number | undefined;
|
142
126
|
'aria-valuetext'?: string | undefined;
|
143
|
-
children?: React.ReactNode;
|
144
127
|
dangerouslySetInnerHTML?: {
|
145
128
|
__html: string;
|
146
129
|
} | undefined;
|
@@ -304,9 +287,26 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
|
|
304
287
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement> | undefined;
|
305
288
|
onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
306
289
|
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;
|
307
308
|
size?: import("styled-system").ResponsiveValue<import("csstype").Property.Height<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
308
309
|
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" | "hidden" | "children" | "theme" | "value" | "form" | "p" | "slot" | "style" | "title" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "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" | "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" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "size" | "sx" | "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,16 +3,19 @@ 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?: "large" | "medium" | "small" | 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;
|
11
15
|
form?: string | undefined;
|
12
16
|
slot?: string | undefined;
|
13
17
|
style?: import("react").CSSProperties | undefined;
|
14
18
|
title?: string | undefined;
|
15
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
16
19
|
type?: "button" | "reset" | "submit" | undefined;
|
17
20
|
name?: string | undefined;
|
18
21
|
key?: import("react").Key | null | undefined;
|
@@ -22,11 +25,10 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
|
|
22
25
|
suppressHydrationWarning?: boolean | undefined;
|
23
26
|
accessKey?: string | undefined;
|
24
27
|
className?: string | undefined;
|
25
|
-
contentEditable?: (boolean | "true" | "false") |
|
28
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
26
29
|
contextMenu?: string | undefined;
|
27
30
|
dir?: string | undefined;
|
28
31
|
draggable?: (boolean | "true" | "false") | undefined;
|
29
|
-
hidden?: boolean | undefined;
|
30
32
|
id?: string | undefined;
|
31
33
|
lang?: string | undefined;
|
32
34
|
placeholder?: string | undefined;
|
@@ -53,11 +55,11 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
|
|
53
55
|
results?: number | undefined;
|
54
56
|
security?: string | undefined;
|
55
57
|
unselectable?: "on" | "off" | undefined;
|
56
|
-
inputMode?: "none" | "
|
58
|
+
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
57
59
|
is?: string | undefined;
|
58
60
|
'aria-activedescendant'?: string | undefined;
|
59
61
|
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
60
|
-
'aria-autocomplete'?: "
|
62
|
+
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
61
63
|
'aria-busy'?: boolean | "true" | "false" | undefined;
|
62
64
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
63
65
|
'aria-colcount'?: number | undefined;
|
@@ -68,12 +70,12 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
|
|
68
70
|
'aria-describedby'?: string | undefined;
|
69
71
|
'aria-details'?: string | undefined;
|
70
72
|
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
71
|
-
'aria-dropeffect'?: "
|
73
|
+
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
72
74
|
'aria-errormessage'?: string | undefined;
|
73
75
|
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
74
76
|
'aria-flowto'?: string | undefined;
|
75
77
|
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
76
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "
|
78
|
+
'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "tree" | "true" | "false" | undefined;
|
77
79
|
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
78
80
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
79
81
|
'aria-keyshortcuts'?: string | undefined;
|
@@ -103,7 +105,6 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
|
|
103
105
|
'aria-valuemin'?: number | undefined;
|
104
106
|
'aria-valuenow'?: number | undefined;
|
105
107
|
'aria-valuetext'?: string | undefined;
|
106
|
-
children?: import("react").ReactNode;
|
107
108
|
dangerouslySetInnerHTML?: {
|
108
109
|
__html: string;
|
109
110
|
} | undefined;
|
@@ -267,7 +268,6 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
|
|
267
268
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
268
269
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
269
270
|
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;
|
279
278
|
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>;
|