@primer/components 0.0.0-2021103235619 → 0.0.0-2021104151625
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 +27 -1
- package/dist/browser.esm.js +509 -505
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +112 -108
- package/dist/browser.umd.js.map +1 -1
- package/lib/ActionList/Header.js +1 -1
- package/lib/ActionList/Item.d.ts +6 -0
- package/lib/ActionList/Item.js +5 -1
- package/lib/ActionList2/Description.d.ts +12 -0
- package/lib/ActionList2/Description.js +53 -0
- package/lib/ActionList2/Divider.d.ts +5 -0
- package/lib/ActionList2/Divider.js +35 -0
- package/lib/ActionList2/Group.d.ts +11 -0
- package/lib/ActionList2/Group.js +57 -0
- package/lib/ActionList2/Header.d.ts +26 -0
- package/lib/ActionList2/Header.js +55 -0
- package/lib/ActionList2/Item.d.ts +67 -0
- package/lib/ActionList2/Item.js +221 -0
- package/lib/ActionList2/LinkItem.d.ts +17 -0
- package/lib/ActionList2/LinkItem.js +57 -0
- package/lib/ActionList2/List.d.ts +26 -0
- package/lib/ActionList2/List.js +51 -0
- package/lib/ActionList2/Selection.d.ts +5 -0
- package/lib/ActionList2/Selection.js +70 -0
- package/lib/ActionList2/Visuals.d.ts +11 -0
- package/lib/ActionList2/Visuals.js +90 -0
- package/lib/ActionList2/index.d.ts +40 -0
- package/lib/ActionList2/index.js +47 -0
- package/lib/AnchoredOverlay/AnchoredOverlay.d.ts +2 -4
- package/lib/Autocomplete/Autocomplete.d.ts +30 -32
- package/lib/Autocomplete/AutocompleteInput.d.ts +30 -32
- package/lib/Button/Button.d.ts +27 -27
- package/lib/Button/ButtonBase.d.ts +1 -1
- package/lib/Button/ButtonClose.d.ts +45 -45
- package/lib/Button/ButtonDanger.d.ts +27 -27
- package/lib/Button/ButtonInvisible.d.ts +27 -27
- package/lib/Button/ButtonOutline.d.ts +27 -27
- package/lib/Button/ButtonPrimary.d.ts +27 -27
- package/lib/CircleBadge.d.ts +2 -2
- package/lib/CircleOcticon.d.ts +43 -43
- package/lib/Dialog.d.ts +46 -46
- package/lib/Dropdown.d.ts +178 -178
- package/lib/DropdownMenu/DropdownButton.d.ts +47 -47
- package/lib/FilterList.d.ts +42 -42
- package/lib/Flash.d.ts +1 -1
- 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 +246 -248
- package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/lib/SelectMenu/SelectMenuModal.d.ts +1 -1
- package/lib/TextInputWithTokens.d.ts +34 -32
- package/lib/TextInputWithTokens.js +102 -29
- package/lib/Timeline.d.ts +44 -44
- 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/Token/Token.js +13 -2
- package/lib/Token/TokenBase.js +0 -4
- package/lib/Token/_RemoveTokenButton.js +15 -2
- package/lib/_TextInputWrapper.d.ts +1 -1
- package/lib/_TextInputWrapper.js +1 -1
- package/lib/experiments.d.ts +1 -0
- package/lib/experiments.js +18 -0
- package/lib/hooks/useResizeObserver.d.ts +1 -1
- package/lib/hooks/useResizeObserver.js +1 -1
- package/lib/sx.d.ts +10 -2
- package/lib/sx.js +8 -0
- package/lib/theme-preval.js +79 -0
- package/lib/theme.d.ts +78 -0
- package/lib/theme.js +3 -1
- package/lib/utils/create-slots.d.ts +17 -0
- package/lib/utils/create-slots.js +105 -0
- package/lib/utils/testing.d.ts +13 -0
- package/lib/utils/types/KeyPaths.d.ts +3 -0
- package/lib/utils/types/KeyPaths.js +1 -0
- package/lib/utils/use-force-update.d.ts +1 -0
- package/lib/utils/use-force-update.js +19 -0
- package/lib-esm/ActionList/Header.js +1 -1
- package/lib-esm/ActionList/Item.d.ts +6 -0
- package/lib-esm/ActionList/Item.js +5 -1
- package/lib-esm/ActionList2/Description.d.ts +12 -0
- package/lib-esm/ActionList2/Description.js +37 -0
- package/lib-esm/ActionList2/Divider.d.ts +5 -0
- package/lib-esm/ActionList2/Divider.js +23 -0
- package/lib-esm/ActionList2/Group.d.ts +11 -0
- package/lib-esm/ActionList2/Group.js +40 -0
- package/lib-esm/ActionList2/Header.d.ts +26 -0
- package/lib-esm/ActionList2/Header.js +44 -0
- package/lib-esm/ActionList2/Item.d.ts +67 -0
- package/lib-esm/ActionList2/Item.js +195 -0
- package/lib-esm/ActionList2/LinkItem.d.ts +17 -0
- package/lib-esm/ActionList2/LinkItem.js +43 -0
- package/lib-esm/ActionList2/List.d.ts +26 -0
- package/lib-esm/ActionList2/List.js +34 -0
- package/lib-esm/ActionList2/Selection.d.ts +5 -0
- package/lib-esm/ActionList2/Selection.js +52 -0
- package/lib-esm/ActionList2/Visuals.d.ts +11 -0
- package/lib-esm/ActionList2/Visuals.js +68 -0
- package/lib-esm/ActionList2/index.d.ts +40 -0
- package/lib-esm/ActionList2/index.js +33 -0
- package/lib-esm/AnchoredOverlay/AnchoredOverlay.d.ts +2 -4
- package/lib-esm/Autocomplete/Autocomplete.d.ts +30 -32
- package/lib-esm/Autocomplete/AutocompleteInput.d.ts +30 -32
- package/lib-esm/Button/Button.d.ts +27 -27
- package/lib-esm/Button/ButtonBase.d.ts +1 -1
- package/lib-esm/Button/ButtonClose.d.ts +45 -45
- package/lib-esm/Button/ButtonDanger.d.ts +27 -27
- package/lib-esm/Button/ButtonInvisible.d.ts +27 -27
- package/lib-esm/Button/ButtonOutline.d.ts +27 -27
- package/lib-esm/Button/ButtonPrimary.d.ts +27 -27
- package/lib-esm/CircleBadge.d.ts +2 -2
- package/lib-esm/CircleOcticon.d.ts +43 -43
- package/lib-esm/Dialog.d.ts +46 -46
- package/lib-esm/Dropdown.d.ts +178 -178
- package/lib-esm/DropdownMenu/DropdownButton.d.ts +47 -47
- package/lib-esm/FilterList.d.ts +42 -42
- package/lib-esm/Flash.d.ts +1 -1
- 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 +246 -248
- package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/lib-esm/SelectMenu/SelectMenuModal.d.ts +1 -1
- package/lib-esm/TextInputWithTokens.d.ts +34 -32
- package/lib-esm/TextInputWithTokens.js +101 -30
- package/lib-esm/Timeline.d.ts +44 -44
- 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/Token/Token.js +13 -2
- package/lib-esm/Token/TokenBase.js +0 -4
- package/lib-esm/Token/_RemoveTokenButton.js +11 -2
- package/lib-esm/_TextInputWrapper.d.ts +1 -1
- package/lib-esm/_TextInputWrapper.js +1 -1
- package/lib-esm/experiments.d.ts +1 -0
- package/lib-esm/experiments.js +2 -0
- package/lib-esm/hooks/useResizeObserver.d.ts +1 -1
- package/lib-esm/hooks/useResizeObserver.js +1 -1
- package/lib-esm/sx.d.ts +10 -2
- package/lib-esm/sx.js +3 -1
- package/lib-esm/theme-preval.js +79 -0
- package/lib-esm/theme.d.ts +78 -0
- package/lib-esm/theme.js +2 -1
- package/lib-esm/utils/create-slots.d.ts +17 -0
- package/lib-esm/utils/create-slots.js +84 -0
- package/lib-esm/utils/testing.d.ts +13 -0
- package/lib-esm/utils/types/KeyPaths.d.ts +3 -0
- package/lib-esm/utils/types/KeyPaths.js +1 -0
- package/lib-esm/utils/use-force-update.d.ts +1 -0
- package/lib-esm/utils/use-force-update.js +6 -0
- package/package.json +12 -9
- package/lib/DatePicker/DatePicker.d.ts +0 -52
- package/lib/DatePicker/DatePicker.js +0 -109
- package/lib/DatePicker/DatePickerAnchor.d.ts +0 -5
- package/lib/DatePicker/DatePickerAnchor.js +0 -202
- package/lib/DatePicker/DatePickerOverlay.d.ts +0 -3
- package/lib/DatePicker/DatePickerOverlay.js +0 -55
- package/lib/DatePicker/DatePickerPanel.d.ts +0 -2
- package/lib/DatePicker/DatePickerPanel.js +0 -363
- package/lib/DatePicker/Day.d.ts +0 -15
- package/lib/DatePicker/Day.js +0 -206
- package/lib/DatePicker/Month.d.ts +0 -8
- package/lib/DatePicker/Month.js +0 -122
- package/lib/DatePicker/dateParser.d.ts +0 -12
- package/lib/DatePicker/dateParser.js +0 -192
- package/lib/DatePicker/index.d.ts +0 -2
- package/lib/DatePicker/index.js +0 -13
- package/lib/DatePicker/useDatePicker.d.ts +0 -107
- package/lib/DatePicker/useDatePicker.js +0 -558
- package/lib/hooks/useDebounce.d.ts +0 -2
- package/lib/hooks/useDebounce.js +0 -24
- package/lib-esm/DatePicker/DatePicker.d.ts +0 -52
- package/lib-esm/DatePicker/DatePicker.js +0 -92
- package/lib-esm/DatePicker/DatePickerAnchor.d.ts +0 -5
- package/lib-esm/DatePicker/DatePickerAnchor.js +0 -174
- package/lib-esm/DatePicker/DatePickerOverlay.d.ts +0 -3
- package/lib-esm/DatePicker/DatePickerOverlay.js +0 -40
- package/lib-esm/DatePicker/DatePickerPanel.d.ts +0 -2
- package/lib-esm/DatePicker/DatePickerPanel.js +0 -332
- package/lib-esm/DatePicker/Day.d.ts +0 -15
- package/lib-esm/DatePicker/Day.js +0 -182
- package/lib-esm/DatePicker/Month.d.ts +0 -8
- package/lib-esm/DatePicker/Month.js +0 -98
- package/lib-esm/DatePicker/dateParser.d.ts +0 -12
- package/lib-esm/DatePicker/dateParser.js +0 -178
- 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 -107
- package/lib-esm/DatePicker/useDatePicker.js +0 -523
- package/lib-esm/hooks/useDebounce.d.ts +0 -2
- package/lib-esm/hooks/useDebounce.js +0 -16
@@ -12,17 +12,15 @@ 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
|
-
}, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "
|
23
|
+
}, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "icon" | "className" | "sx" | "variant" | "disabled" | "contrast"> & {
|
26
24
|
className?: string | undefined;
|
27
25
|
icon?: React.ComponentType<{
|
28
26
|
className?: string | undefined;
|
@@ -39,6 +37,7 @@ declare const _default: React.FC<{
|
|
39
37
|
slot?: string | undefined;
|
40
38
|
style?: React.CSSProperties | undefined;
|
41
39
|
title?: string | undefined;
|
40
|
+
block?: boolean | undefined;
|
42
41
|
key?: React.Key | null | undefined;
|
43
42
|
defaultChecked?: boolean | undefined;
|
44
43
|
defaultValue?: string | number | readonly string[] | undefined;
|
@@ -46,14 +45,14 @@ declare const _default: React.FC<{
|
|
46
45
|
suppressHydrationWarning?: boolean | undefined;
|
47
46
|
accessKey?: string | undefined;
|
48
47
|
className?: string | undefined;
|
49
|
-
contentEditable?: "inherit" | (boolean | "
|
48
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
|
50
49
|
contextMenu?: string | undefined;
|
51
50
|
dir?: string | undefined;
|
52
|
-
draggable?: (boolean | "
|
51
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
53
52
|
id?: string | undefined;
|
54
53
|
lang?: string | undefined;
|
55
54
|
placeholder?: string | undefined;
|
56
|
-
spellCheck?: (boolean | "
|
55
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
57
56
|
tabIndex?: number | undefined;
|
58
57
|
radioGroup?: string | undefined;
|
59
58
|
role?: React.AriaRole | undefined;
|
@@ -76,50 +75,50 @@ declare const _default: React.FC<{
|
|
76
75
|
results?: number | undefined;
|
77
76
|
security?: string | undefined;
|
78
77
|
unselectable?: "on" | "off" | undefined;
|
79
|
-
inputMode?: "
|
78
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
80
79
|
is?: string | undefined;
|
81
80
|
'aria-activedescendant'?: string | undefined;
|
82
|
-
'aria-atomic'?: boolean | "
|
83
|
-
'aria-autocomplete'?: "none" | "
|
84
|
-
'aria-busy'?: boolean | "
|
85
|
-
'aria-checked'?: boolean | "
|
81
|
+
'aria-atomic'?: boolean | "false" | "true" | undefined;
|
82
|
+
'aria-autocomplete'?: "none" | "both" | "inline" | "list" | undefined;
|
83
|
+
'aria-busy'?: boolean | "false" | "true" | undefined;
|
84
|
+
'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
|
86
85
|
'aria-colcount'?: number | undefined;
|
87
86
|
'aria-colindex'?: number | undefined;
|
88
87
|
'aria-colspan'?: number | undefined;
|
89
88
|
'aria-controls'?: string | undefined;
|
90
|
-
'aria-current'?: boolean | "time" | "
|
89
|
+
'aria-current'?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
|
91
90
|
'aria-describedby'?: string | undefined;
|
92
91
|
'aria-details'?: string | undefined;
|
93
|
-
'aria-disabled'?: boolean | "
|
94
|
-
'aria-dropeffect'?: "
|
92
|
+
'aria-disabled'?: boolean | "false" | "true" | undefined;
|
93
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
95
94
|
'aria-errormessage'?: string | undefined;
|
96
|
-
'aria-expanded'?: boolean | "
|
95
|
+
'aria-expanded'?: boolean | "false" | "true" | undefined;
|
97
96
|
'aria-flowto'?: string | undefined;
|
98
|
-
'aria-grabbed'?: boolean | "
|
99
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "
|
100
|
-
'aria-hidden'?: boolean | "
|
101
|
-
'aria-invalid'?: boolean | "
|
97
|
+
'aria-grabbed'?: boolean | "false" | "true" | undefined;
|
98
|
+
'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "false" | "true" | "tree" | undefined;
|
99
|
+
'aria-hidden'?: boolean | "false" | "true" | undefined;
|
100
|
+
'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
102
101
|
'aria-keyshortcuts'?: string | undefined;
|
103
102
|
'aria-label'?: string | undefined;
|
104
103
|
'aria-labelledby'?: string | undefined;
|
105
104
|
'aria-level'?: number | undefined;
|
106
105
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
107
|
-
'aria-modal'?: boolean | "
|
108
|
-
'aria-multiline'?: boolean | "
|
109
|
-
'aria-multiselectable'?: boolean | "
|
106
|
+
'aria-modal'?: boolean | "false" | "true" | undefined;
|
107
|
+
'aria-multiline'?: boolean | "false" | "true" | undefined;
|
108
|
+
'aria-multiselectable'?: boolean | "false" | "true" | undefined;
|
110
109
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
111
110
|
'aria-owns'?: string | undefined;
|
112
111
|
'aria-placeholder'?: string | undefined;
|
113
112
|
'aria-posinset'?: number | undefined;
|
114
|
-
'aria-pressed'?: boolean | "
|
115
|
-
'aria-readonly'?: boolean | "
|
113
|
+
'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
|
114
|
+
'aria-readonly'?: boolean | "false" | "true" | undefined;
|
116
115
|
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
117
|
-
'aria-required'?: boolean | "
|
116
|
+
'aria-required'?: boolean | "false" | "true" | undefined;
|
118
117
|
'aria-roledescription'?: string | undefined;
|
119
118
|
'aria-rowcount'?: number | undefined;
|
120
119
|
'aria-rowindex'?: number | undefined;
|
121
120
|
'aria-rowspan'?: number | undefined;
|
122
|
-
'aria-selected'?: boolean | "
|
121
|
+
'aria-selected'?: boolean | "false" | "true" | undefined;
|
123
122
|
'aria-setsize'?: number | undefined;
|
124
123
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
125
124
|
'aria-valuemax'?: number | undefined;
|
@@ -289,15 +288,14 @@ declare const _default: React.FC<{
|
|
289
288
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLSpanElement> | undefined;
|
290
289
|
onTransitionEnd?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
|
291
290
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
|
292
|
-
|
293
|
-
|
291
|
+
sx?: import("../sx").BetterSystemStyleObject | undefined;
|
292
|
+
variant?: "small" | "large" | undefined;
|
294
293
|
disabled?: boolean | undefined;
|
295
|
-
variant?: "large" | "small" | undefined;
|
296
294
|
hasIcon?: boolean | undefined;
|
297
295
|
contrast?: boolean | undefined;
|
298
296
|
} & {
|
299
297
|
theme?: any;
|
300
|
-
}, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "
|
298
|
+
}, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "variant" | "disabled" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, {
|
301
299
|
as?: React.ComponentType<any> | undefined;
|
302
300
|
}>;
|
303
301
|
Menu: typeof AutocompleteMenu;
|
@@ -4,17 +4,15 @@ 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
|
-
}, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "
|
15
|
+
}, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "icon" | "className" | "sx" | "variant" | "disabled" | "contrast"> & {
|
18
16
|
className?: string | undefined;
|
19
17
|
icon?: React.ComponentType<{
|
20
18
|
className?: string | undefined;
|
@@ -31,6 +29,7 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
31
29
|
slot?: string | undefined;
|
32
30
|
style?: React.CSSProperties | undefined;
|
33
31
|
title?: string | undefined;
|
32
|
+
block?: boolean | undefined;
|
34
33
|
key?: React.Key | null | undefined;
|
35
34
|
defaultChecked?: boolean | undefined;
|
36
35
|
defaultValue?: string | number | readonly string[] | undefined;
|
@@ -38,14 +37,14 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
38
37
|
suppressHydrationWarning?: boolean | undefined;
|
39
38
|
accessKey?: string | undefined;
|
40
39
|
className?: string | undefined;
|
41
|
-
contentEditable?: "inherit" | (boolean | "
|
40
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
|
42
41
|
contextMenu?: string | undefined;
|
43
42
|
dir?: string | undefined;
|
44
|
-
draggable?: (boolean | "
|
43
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
45
44
|
id?: string | undefined;
|
46
45
|
lang?: string | undefined;
|
47
46
|
placeholder?: string | undefined;
|
48
|
-
spellCheck?: (boolean | "
|
47
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
49
48
|
tabIndex?: number | undefined;
|
50
49
|
radioGroup?: string | undefined;
|
51
50
|
role?: React.AriaRole | undefined;
|
@@ -68,50 +67,50 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
68
67
|
results?: number | undefined;
|
69
68
|
security?: string | undefined;
|
70
69
|
unselectable?: "on" | "off" | undefined;
|
71
|
-
inputMode?: "
|
70
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
72
71
|
is?: string | undefined;
|
73
72
|
'aria-activedescendant'?: string | undefined;
|
74
|
-
'aria-atomic'?: boolean | "
|
75
|
-
'aria-autocomplete'?: "none" | "
|
76
|
-
'aria-busy'?: boolean | "
|
77
|
-
'aria-checked'?: boolean | "
|
73
|
+
'aria-atomic'?: boolean | "false" | "true" | undefined;
|
74
|
+
'aria-autocomplete'?: "none" | "both" | "inline" | "list" | undefined;
|
75
|
+
'aria-busy'?: boolean | "false" | "true" | undefined;
|
76
|
+
'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
|
78
77
|
'aria-colcount'?: number | undefined;
|
79
78
|
'aria-colindex'?: number | undefined;
|
80
79
|
'aria-colspan'?: number | undefined;
|
81
80
|
'aria-controls'?: string | undefined;
|
82
|
-
'aria-current'?: boolean | "time" | "
|
81
|
+
'aria-current'?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
|
83
82
|
'aria-describedby'?: string | undefined;
|
84
83
|
'aria-details'?: string | undefined;
|
85
|
-
'aria-disabled'?: boolean | "
|
86
|
-
'aria-dropeffect'?: "
|
84
|
+
'aria-disabled'?: boolean | "false" | "true" | undefined;
|
85
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
87
86
|
'aria-errormessage'?: string | undefined;
|
88
|
-
'aria-expanded'?: boolean | "
|
87
|
+
'aria-expanded'?: boolean | "false" | "true" | undefined;
|
89
88
|
'aria-flowto'?: string | undefined;
|
90
|
-
'aria-grabbed'?: boolean | "
|
91
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "
|
92
|
-
'aria-hidden'?: boolean | "
|
93
|
-
'aria-invalid'?: boolean | "
|
89
|
+
'aria-grabbed'?: boolean | "false" | "true" | undefined;
|
90
|
+
'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "false" | "true" | "tree" | undefined;
|
91
|
+
'aria-hidden'?: boolean | "false" | "true" | undefined;
|
92
|
+
'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
94
93
|
'aria-keyshortcuts'?: string | undefined;
|
95
94
|
'aria-label'?: string | undefined;
|
96
95
|
'aria-labelledby'?: string | undefined;
|
97
96
|
'aria-level'?: number | undefined;
|
98
97
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
99
|
-
'aria-modal'?: boolean | "
|
100
|
-
'aria-multiline'?: boolean | "
|
101
|
-
'aria-multiselectable'?: boolean | "
|
98
|
+
'aria-modal'?: boolean | "false" | "true" | undefined;
|
99
|
+
'aria-multiline'?: boolean | "false" | "true" | undefined;
|
100
|
+
'aria-multiselectable'?: boolean | "false" | "true" | undefined;
|
102
101
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
103
102
|
'aria-owns'?: string | undefined;
|
104
103
|
'aria-placeholder'?: string | undefined;
|
105
104
|
'aria-posinset'?: number | undefined;
|
106
|
-
'aria-pressed'?: boolean | "
|
107
|
-
'aria-readonly'?: boolean | "
|
105
|
+
'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
|
106
|
+
'aria-readonly'?: boolean | "false" | "true" | undefined;
|
108
107
|
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
109
|
-
'aria-required'?: boolean | "
|
108
|
+
'aria-required'?: boolean | "false" | "true" | undefined;
|
110
109
|
'aria-roledescription'?: string | undefined;
|
111
110
|
'aria-rowcount'?: number | undefined;
|
112
111
|
'aria-rowindex'?: number | undefined;
|
113
112
|
'aria-rowspan'?: number | undefined;
|
114
|
-
'aria-selected'?: boolean | "
|
113
|
+
'aria-selected'?: boolean | "false" | "true" | undefined;
|
115
114
|
'aria-setsize'?: number | undefined;
|
116
115
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
117
116
|
'aria-valuemax'?: number | undefined;
|
@@ -281,14 +280,13 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
281
280
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLSpanElement> | undefined;
|
282
281
|
onTransitionEnd?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
|
283
282
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
|
284
|
-
|
285
|
-
|
283
|
+
sx?: import("../sx").BetterSystemStyleObject | undefined;
|
284
|
+
variant?: "small" | "large" | undefined;
|
286
285
|
disabled?: boolean | undefined;
|
287
|
-
variant?: "large" | "small" | undefined;
|
288
286
|
hasIcon?: boolean | undefined;
|
289
287
|
contrast?: boolean | undefined;
|
290
288
|
} & {
|
291
289
|
theme?: any;
|
292
|
-
}, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "
|
290
|
+
}, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "variant" | "disabled" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, InternalAutocompleteInputProps>;
|
293
291
|
export declare type AutocompleteInputProps = ComponentProps<typeof AutocompleteInput>;
|
294
292
|
export default AutocompleteInput;
|
@@ -3,7 +3,7 @@ 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" | "medium" | "large" | 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;
|
@@ -25,14 +25,14 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
|
|
25
25
|
suppressHydrationWarning?: boolean | undefined;
|
26
26
|
accessKey?: string | undefined;
|
27
27
|
className?: string | undefined;
|
28
|
-
contentEditable?: "inherit" | (boolean | "
|
28
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
|
29
29
|
contextMenu?: string | undefined;
|
30
30
|
dir?: string | undefined;
|
31
|
-
draggable?: (boolean | "
|
31
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
32
32
|
id?: string | undefined;
|
33
33
|
lang?: string | undefined;
|
34
34
|
placeholder?: string | undefined;
|
35
|
-
spellCheck?: (boolean | "
|
35
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
36
36
|
tabIndex?: number | undefined;
|
37
37
|
radioGroup?: string | undefined;
|
38
38
|
role?: import("react").AriaRole | undefined;
|
@@ -55,50 +55,50 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
|
|
55
55
|
results?: number | undefined;
|
56
56
|
security?: string | undefined;
|
57
57
|
unselectable?: "on" | "off" | undefined;
|
58
|
-
inputMode?: "
|
58
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
59
59
|
is?: string | undefined;
|
60
60
|
'aria-activedescendant'?: string | undefined;
|
61
|
-
'aria-atomic'?: boolean | "
|
62
|
-
'aria-autocomplete'?: "none" | "
|
63
|
-
'aria-busy'?: boolean | "
|
64
|
-
'aria-checked'?: boolean | "
|
61
|
+
'aria-atomic'?: boolean | "false" | "true" | undefined;
|
62
|
+
'aria-autocomplete'?: "none" | "both" | "inline" | "list" | undefined;
|
63
|
+
'aria-busy'?: boolean | "false" | "true" | undefined;
|
64
|
+
'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
|
65
65
|
'aria-colcount'?: number | undefined;
|
66
66
|
'aria-colindex'?: number | undefined;
|
67
67
|
'aria-colspan'?: number | undefined;
|
68
68
|
'aria-controls'?: string | undefined;
|
69
|
-
'aria-current'?: boolean | "time" | "
|
69
|
+
'aria-current'?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
|
70
70
|
'aria-describedby'?: string | undefined;
|
71
71
|
'aria-details'?: string | undefined;
|
72
|
-
'aria-disabled'?: boolean | "
|
73
|
-
'aria-dropeffect'?: "
|
72
|
+
'aria-disabled'?: boolean | "false" | "true" | undefined;
|
73
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
74
74
|
'aria-errormessage'?: string | undefined;
|
75
|
-
'aria-expanded'?: boolean | "
|
75
|
+
'aria-expanded'?: boolean | "false" | "true" | undefined;
|
76
76
|
'aria-flowto'?: string | undefined;
|
77
|
-
'aria-grabbed'?: boolean | "
|
78
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "
|
79
|
-
'aria-hidden'?: boolean | "
|
80
|
-
'aria-invalid'?: boolean | "
|
77
|
+
'aria-grabbed'?: boolean | "false" | "true" | undefined;
|
78
|
+
'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "false" | "true" | "tree" | undefined;
|
79
|
+
'aria-hidden'?: boolean | "false" | "true" | undefined;
|
80
|
+
'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
81
81
|
'aria-keyshortcuts'?: string | undefined;
|
82
82
|
'aria-label'?: string | undefined;
|
83
83
|
'aria-labelledby'?: string | undefined;
|
84
84
|
'aria-level'?: number | undefined;
|
85
85
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
86
|
-
'aria-modal'?: boolean | "
|
87
|
-
'aria-multiline'?: boolean | "
|
88
|
-
'aria-multiselectable'?: boolean | "
|
86
|
+
'aria-modal'?: boolean | "false" | "true" | undefined;
|
87
|
+
'aria-multiline'?: boolean | "false" | "true" | undefined;
|
88
|
+
'aria-multiselectable'?: boolean | "false" | "true" | undefined;
|
89
89
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
90
90
|
'aria-owns'?: string | undefined;
|
91
91
|
'aria-placeholder'?: string | undefined;
|
92
92
|
'aria-posinset'?: number | undefined;
|
93
|
-
'aria-pressed'?: boolean | "
|
94
|
-
'aria-readonly'?: boolean | "
|
93
|
+
'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
|
94
|
+
'aria-readonly'?: boolean | "false" | "true" | undefined;
|
95
95
|
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
96
|
-
'aria-required'?: boolean | "
|
96
|
+
'aria-required'?: boolean | "false" | "true" | undefined;
|
97
97
|
'aria-roledescription'?: string | undefined;
|
98
98
|
'aria-rowcount'?: number | undefined;
|
99
99
|
'aria-rowindex'?: number | undefined;
|
100
100
|
'aria-rowspan'?: number | undefined;
|
101
|
-
'aria-selected'?: boolean | "
|
101
|
+
'aria-selected'?: boolean | "false" | "true" | undefined;
|
102
102
|
'aria-setsize'?: number | undefined;
|
103
103
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
104
104
|
'aria-valuemax'?: number | undefined;
|
@@ -268,15 +268,15 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
|
|
268
268
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
269
269
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
270
270
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
271
|
-
|
271
|
+
variant?: "small" | "medium" | "large" | undefined;
|
272
|
+
as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
|
272
273
|
disabled?: boolean | undefined;
|
274
|
+
autoFocus?: boolean | undefined;
|
273
275
|
formAction?: string | undefined;
|
274
276
|
formEncType?: string | undefined;
|
275
277
|
formMethod?: string | undefined;
|
276
278
|
formNoValidate?: boolean | undefined;
|
277
279
|
formTarget?: string | undefined;
|
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?: "small" | "medium" | "large" | 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;
|