@primer/components 0.0.0-20219283497 → 0.0.0-2021929153151
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 +19 -1
- package/dist/browser.esm.js +447 -440
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +446 -439
- package/dist/browser.umd.js.map +1 -1
- package/lib/ActionList2/Description.d.ts +6 -0
- package/lib/ActionList2/Description.js +53 -0
- package/lib/ActionList2/Divider.d.ts +5 -0
- package/lib/ActionList2/Divider.js +33 -0
- package/lib/ActionList2/Group.d.ts +11 -0
- package/lib/ActionList2/Group.js +55 -0
- package/lib/ActionList2/Header.d.ts +26 -0
- package/lib/ActionList2/Header.js +55 -0
- package/lib/ActionList2/Item.d.ts +48 -0
- package/lib/ActionList2/Item.js +204 -0
- package/lib/ActionList2/List.d.ts +26 -0
- package/lib/ActionList2/List.js +56 -0
- package/lib/ActionList2/Selection.d.ts +5 -0
- package/lib/ActionList2/Selection.js +73 -0
- package/lib/ActionList2/Visuals.d.ts +11 -0
- package/lib/ActionList2/Visuals.js +90 -0
- package/lib/ActionList2/hacks.d.ts +30 -0
- package/lib/ActionList2/hacks.js +38 -0
- package/lib/ActionList2/index.d.ts +28 -0
- package/lib/ActionList2/index.js +42 -0
- package/lib/ActionMenu.js +2 -2
- package/lib/Autocomplete/Autocomplete.d.ts +30 -30
- package/lib/Autocomplete/AutocompleteInput.d.ts +30 -30
- package/lib/Button/Button.d.ts +30 -30
- package/lib/Button/ButtonBase.d.ts +1 -1
- package/lib/Button/ButtonClose.d.ts +35 -35
- package/lib/Button/ButtonDanger.d.ts +30 -30
- package/lib/Button/ButtonInvisible.d.ts +30 -30
- package/lib/Button/ButtonOutline.d.ts +30 -30
- package/lib/Button/ButtonPrimary.d.ts +30 -30
- package/lib/Button/ButtonStyles.js +1 -1
- package/lib/CircleBadge.d.ts +2 -2
- package/lib/CircleOcticon.d.ts +38 -38
- package/lib/Dialog/Dialog.d.ts +4 -4
- package/lib/Dialog/Dialog.js +22 -12
- package/lib/Dialog.d.ts +41 -41
- package/lib/Dropdown.d.ts +215 -137
- package/lib/Dropdown.js +5 -6
- package/lib/DropdownMenu/DropdownButton.d.ts +37 -37
- package/lib/FilterList.d.ts +30 -30
- package/lib/Flash.d.ts +1 -1
- package/lib/Label.d.ts +1 -1
- package/lib/Position.d.ts +4 -4
- package/lib/SelectMenu/SelectMenu.d.ts +187 -187
- package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/lib/SelectMenu/SelectMenuModal.d.ts +1 -1
- package/lib/TextInputWithTokens.d.ts +34 -30
- package/lib/TextInputWithTokens.js +102 -29
- package/lib/Timeline.d.ts +39 -39
- 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.js +1 -1
- package/lib/constants.js +1 -3
- package/lib/experiments.d.ts +1 -0
- package/lib/experiments.js +18 -0
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -8
- package/lib/sx.d.ts +10 -2
- package/lib/sx.js +8 -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 +1 -1
- 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/ActionList2/Description.d.ts +6 -0
- package/lib-esm/ActionList2/Description.js +37 -0
- package/lib-esm/ActionList2/Divider.d.ts +5 -0
- package/lib-esm/ActionList2/Divider.js +21 -0
- package/lib-esm/ActionList2/Group.d.ts +11 -0
- package/lib-esm/ActionList2/Group.js +38 -0
- package/lib-esm/ActionList2/Header.d.ts +26 -0
- package/lib-esm/ActionList2/Header.js +45 -0
- package/lib-esm/ActionList2/Item.d.ts +48 -0
- package/lib-esm/ActionList2/Item.js +176 -0
- package/lib-esm/ActionList2/List.d.ts +26 -0
- package/lib-esm/ActionList2/List.js +38 -0
- package/lib-esm/ActionList2/Selection.d.ts +5 -0
- package/lib-esm/ActionList2/Selection.js +55 -0
- package/lib-esm/ActionList2/Visuals.d.ts +11 -0
- package/lib-esm/ActionList2/Visuals.js +68 -0
- package/lib-esm/ActionList2/hacks.d.ts +30 -0
- package/lib-esm/ActionList2/hacks.js +30 -0
- package/lib-esm/ActionList2/index.d.ts +28 -0
- package/lib-esm/ActionList2/index.js +29 -0
- package/lib-esm/ActionMenu.js +2 -2
- package/lib-esm/Autocomplete/Autocomplete.d.ts +30 -30
- package/lib-esm/Autocomplete/AutocompleteInput.d.ts +30 -30
- package/lib-esm/Button/Button.d.ts +30 -30
- package/lib-esm/Button/ButtonBase.d.ts +1 -1
- package/lib-esm/Button/ButtonClose.d.ts +35 -35
- package/lib-esm/Button/ButtonDanger.d.ts +30 -30
- package/lib-esm/Button/ButtonInvisible.d.ts +30 -30
- package/lib-esm/Button/ButtonOutline.d.ts +30 -30
- package/lib-esm/Button/ButtonPrimary.d.ts +30 -30
- package/lib-esm/Button/ButtonStyles.js +1 -1
- package/lib-esm/CircleBadge.d.ts +2 -2
- package/lib-esm/CircleOcticon.d.ts +38 -38
- package/lib-esm/Dialog/Dialog.d.ts +4 -4
- package/lib-esm/Dialog/Dialog.js +21 -12
- package/lib-esm/Dialog.d.ts +41 -41
- package/lib-esm/Dropdown.d.ts +215 -137
- package/lib-esm/Dropdown.js +3 -4
- package/lib-esm/DropdownMenu/DropdownButton.d.ts +37 -37
- package/lib-esm/FilterList.d.ts +30 -30
- 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/SelectMenu/SelectMenu.d.ts +187 -187
- 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 -30
- package/lib-esm/TextInputWithTokens.js +101 -30
- package/lib-esm/Timeline.d.ts +39 -39
- 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.js +1 -1
- package/lib-esm/constants.js +1 -3
- package/lib-esm/experiments.d.ts +1 -0
- package/lib-esm/experiments.js +2 -0
- package/lib-esm/index.d.ts +0 -2
- package/lib-esm/index.js +0 -1
- package/lib-esm/sx.d.ts +10 -2
- package/lib-esm/sx.js +3 -1
- 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 +1 -1
- 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 +4 -1
- package/lib/NewButton/button.d.ts +0 -581
- package/lib/NewButton/button.js +0 -297
- package/lib/NewButton/counter.d.ts +0 -6
- package/lib/NewButton/counter.js +0 -33
- package/lib/NewButton/index.d.ts +0 -4
- package/lib/NewButton/index.js +0 -21
- package/lib-esm/NewButton/button.d.ts +0 -581
- package/lib-esm/NewButton/button.js +0 -273
- package/lib-esm/NewButton/counter.d.ts +0 -6
- package/lib-esm/NewButton/counter.js +0 -21
- package/lib-esm/NewButton/index.d.ts +0 -4
- package/lib-esm/NewButton/index.js +0 -3
@@ -3,16 +3,19 @@ import { SxProp } from '../sx';
|
|
3
3
|
import { ComponentProps } from '../utils/types';
|
4
4
|
declare const ButtonInvisible: import("styled-components").StyledComponent<"button", any, {
|
5
5
|
as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
|
6
|
-
variant?: "small" | "
|
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;
|
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,15 +25,14 @@ declare const ButtonInvisible: import("styled-components").StyledComponent<"butt
|
|
22
25
|
suppressHydrationWarning?: boolean | undefined;
|
23
26
|
accessKey?: string | undefined;
|
24
27
|
className?: string | undefined;
|
25
|
-
contentEditable?:
|
28
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
|
26
29
|
contextMenu?: string | undefined;
|
27
30
|
dir?: string | undefined;
|
28
|
-
draggable?: (boolean | "
|
29
|
-
hidden?: boolean | undefined;
|
31
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
30
32
|
id?: string | undefined;
|
31
33
|
lang?: string | undefined;
|
32
34
|
placeholder?: string | undefined;
|
33
|
-
spellCheck?: (boolean | "
|
35
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
34
36
|
tabIndex?: number | undefined;
|
35
37
|
radioGroup?: string | undefined;
|
36
38
|
role?: import("react").AriaRole | undefined;
|
@@ -53,57 +55,56 @@ declare const ButtonInvisible: import("styled-components").StyledComponent<"butt
|
|
53
55
|
results?: number | undefined;
|
54
56
|
security?: string | undefined;
|
55
57
|
unselectable?: "on" | "off" | undefined;
|
56
|
-
inputMode?: "
|
58
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
57
59
|
is?: string | undefined;
|
58
60
|
'aria-activedescendant'?: string | undefined;
|
59
|
-
'aria-atomic'?: boolean | "
|
60
|
-
'aria-autocomplete'?: "
|
61
|
-
'aria-busy'?: boolean | "
|
62
|
-
'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;
|
63
65
|
'aria-colcount'?: number | undefined;
|
64
66
|
'aria-colindex'?: number | undefined;
|
65
67
|
'aria-colspan'?: number | undefined;
|
66
68
|
'aria-controls'?: string | undefined;
|
67
|
-
'aria-current'?: boolean | "time" | "
|
69
|
+
'aria-current'?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
|
68
70
|
'aria-describedby'?: string | undefined;
|
69
71
|
'aria-details'?: string | undefined;
|
70
|
-
'aria-disabled'?: boolean | "
|
72
|
+
'aria-disabled'?: boolean | "false" | "true" | undefined;
|
71
73
|
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
72
74
|
'aria-errormessage'?: string | undefined;
|
73
|
-
'aria-expanded'?: boolean | "
|
75
|
+
'aria-expanded'?: boolean | "false" | "true" | undefined;
|
74
76
|
'aria-flowto'?: string | undefined;
|
75
|
-
'aria-grabbed'?: boolean | "
|
76
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "
|
77
|
-
'aria-hidden'?: boolean | "
|
78
|
-
'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;
|
79
81
|
'aria-keyshortcuts'?: string | undefined;
|
80
82
|
'aria-label'?: string | undefined;
|
81
83
|
'aria-labelledby'?: string | undefined;
|
82
84
|
'aria-level'?: number | undefined;
|
83
85
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
84
|
-
'aria-modal'?: boolean | "
|
85
|
-
'aria-multiline'?: boolean | "
|
86
|
-
'aria-multiselectable'?: boolean | "
|
86
|
+
'aria-modal'?: boolean | "false" | "true" | undefined;
|
87
|
+
'aria-multiline'?: boolean | "false" | "true" | undefined;
|
88
|
+
'aria-multiselectable'?: boolean | "false" | "true" | undefined;
|
87
89
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
88
90
|
'aria-owns'?: string | undefined;
|
89
91
|
'aria-placeholder'?: string | undefined;
|
90
92
|
'aria-posinset'?: number | undefined;
|
91
|
-
'aria-pressed'?: boolean | "
|
92
|
-
'aria-readonly'?: boolean | "
|
93
|
+
'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
|
94
|
+
'aria-readonly'?: boolean | "false" | "true" | undefined;
|
93
95
|
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
94
|
-
'aria-required'?: boolean | "
|
96
|
+
'aria-required'?: boolean | "false" | "true" | undefined;
|
95
97
|
'aria-roledescription'?: string | undefined;
|
96
98
|
'aria-rowcount'?: number | undefined;
|
97
99
|
'aria-rowindex'?: number | undefined;
|
98
100
|
'aria-rowspan'?: number | undefined;
|
99
|
-
'aria-selected'?: boolean | "
|
101
|
+
'aria-selected'?: boolean | "false" | "true" | undefined;
|
100
102
|
'aria-setsize'?: number | undefined;
|
101
103
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
102
104
|
'aria-valuemax'?: number | undefined;
|
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,16 +268,15 @@ declare const ButtonInvisible: import("styled-components").StyledComponent<"butt
|
|
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
|
-
|
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
|
-
variant?: "small" | "large" | "medium" | undefined;
|
279
|
-
as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | 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>;
|
@@ -3,16 +3,19 @@ import { SxProp } from '../sx';
|
|
3
3
|
import { ComponentProps } from '../utils/types';
|
4
4
|
declare const ButtonOutline: import("styled-components").StyledComponent<"button", any, {
|
5
5
|
as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
|
6
|
-
variant?: "small" | "
|
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;
|
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,15 +25,14 @@ declare const ButtonOutline: import("styled-components").StyledComponent<"button
|
|
22
25
|
suppressHydrationWarning?: boolean | undefined;
|
23
26
|
accessKey?: string | undefined;
|
24
27
|
className?: string | undefined;
|
25
|
-
contentEditable?:
|
28
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
|
26
29
|
contextMenu?: string | undefined;
|
27
30
|
dir?: string | undefined;
|
28
|
-
draggable?: (boolean | "
|
29
|
-
hidden?: boolean | undefined;
|
31
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
30
32
|
id?: string | undefined;
|
31
33
|
lang?: string | undefined;
|
32
34
|
placeholder?: string | undefined;
|
33
|
-
spellCheck?: (boolean | "
|
35
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
34
36
|
tabIndex?: number | undefined;
|
35
37
|
radioGroup?: string | undefined;
|
36
38
|
role?: import("react").AriaRole | undefined;
|
@@ -53,57 +55,56 @@ declare const ButtonOutline: import("styled-components").StyledComponent<"button
|
|
53
55
|
results?: number | undefined;
|
54
56
|
security?: string | undefined;
|
55
57
|
unselectable?: "on" | "off" | undefined;
|
56
|
-
inputMode?: "
|
58
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
57
59
|
is?: string | undefined;
|
58
60
|
'aria-activedescendant'?: string | undefined;
|
59
|
-
'aria-atomic'?: boolean | "
|
60
|
-
'aria-autocomplete'?: "
|
61
|
-
'aria-busy'?: boolean | "
|
62
|
-
'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;
|
63
65
|
'aria-colcount'?: number | undefined;
|
64
66
|
'aria-colindex'?: number | undefined;
|
65
67
|
'aria-colspan'?: number | undefined;
|
66
68
|
'aria-controls'?: string | undefined;
|
67
|
-
'aria-current'?: boolean | "time" | "
|
69
|
+
'aria-current'?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
|
68
70
|
'aria-describedby'?: string | undefined;
|
69
71
|
'aria-details'?: string | undefined;
|
70
|
-
'aria-disabled'?: boolean | "
|
72
|
+
'aria-disabled'?: boolean | "false" | "true" | undefined;
|
71
73
|
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
72
74
|
'aria-errormessage'?: string | undefined;
|
73
|
-
'aria-expanded'?: boolean | "
|
75
|
+
'aria-expanded'?: boolean | "false" | "true" | undefined;
|
74
76
|
'aria-flowto'?: string | undefined;
|
75
|
-
'aria-grabbed'?: boolean | "
|
76
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "
|
77
|
-
'aria-hidden'?: boolean | "
|
78
|
-
'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;
|
79
81
|
'aria-keyshortcuts'?: string | undefined;
|
80
82
|
'aria-label'?: string | undefined;
|
81
83
|
'aria-labelledby'?: string | undefined;
|
82
84
|
'aria-level'?: number | undefined;
|
83
85
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
84
|
-
'aria-modal'?: boolean | "
|
85
|
-
'aria-multiline'?: boolean | "
|
86
|
-
'aria-multiselectable'?: boolean | "
|
86
|
+
'aria-modal'?: boolean | "false" | "true" | undefined;
|
87
|
+
'aria-multiline'?: boolean | "false" | "true" | undefined;
|
88
|
+
'aria-multiselectable'?: boolean | "false" | "true" | undefined;
|
87
89
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
88
90
|
'aria-owns'?: string | undefined;
|
89
91
|
'aria-placeholder'?: string | undefined;
|
90
92
|
'aria-posinset'?: number | undefined;
|
91
|
-
'aria-pressed'?: boolean | "
|
92
|
-
'aria-readonly'?: boolean | "
|
93
|
+
'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
|
94
|
+
'aria-readonly'?: boolean | "false" | "true" | undefined;
|
93
95
|
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
94
|
-
'aria-required'?: boolean | "
|
96
|
+
'aria-required'?: boolean | "false" | "true" | undefined;
|
95
97
|
'aria-roledescription'?: string | undefined;
|
96
98
|
'aria-rowcount'?: number | undefined;
|
97
99
|
'aria-rowindex'?: number | undefined;
|
98
100
|
'aria-rowspan'?: number | undefined;
|
99
|
-
'aria-selected'?: boolean | "
|
101
|
+
'aria-selected'?: boolean | "false" | "true" | undefined;
|
100
102
|
'aria-setsize'?: number | undefined;
|
101
103
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
102
104
|
'aria-valuemax'?: number | undefined;
|
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,16 +268,15 @@ declare const ButtonOutline: 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
|
-
|
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
|
-
variant?: "small" | "large" | "medium" | undefined;
|
279
|
-
as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | 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>;
|
@@ -3,16 +3,19 @@ import { SxProp } from '../sx';
|
|
3
3
|
import { ComponentProps } from '../utils/types';
|
4
4
|
export declare const ButtonPrimary: import("styled-components").StyledComponent<"button", any, {
|
5
5
|
as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
|
6
|
-
variant?: "small" | "
|
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;
|
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,15 +25,14 @@ export declare const ButtonPrimary: import("styled-components").StyledComponent<
|
|
22
25
|
suppressHydrationWarning?: boolean | undefined;
|
23
26
|
accessKey?: string | undefined;
|
24
27
|
className?: string | undefined;
|
25
|
-
contentEditable?:
|
28
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
|
26
29
|
contextMenu?: string | undefined;
|
27
30
|
dir?: string | undefined;
|
28
|
-
draggable?: (boolean | "
|
29
|
-
hidden?: boolean | undefined;
|
31
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
30
32
|
id?: string | undefined;
|
31
33
|
lang?: string | undefined;
|
32
34
|
placeholder?: string | undefined;
|
33
|
-
spellCheck?: (boolean | "
|
35
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
34
36
|
tabIndex?: number | undefined;
|
35
37
|
radioGroup?: string | undefined;
|
36
38
|
role?: import("react").AriaRole | undefined;
|
@@ -53,57 +55,56 @@ export declare const ButtonPrimary: import("styled-components").StyledComponent<
|
|
53
55
|
results?: number | undefined;
|
54
56
|
security?: string | undefined;
|
55
57
|
unselectable?: "on" | "off" | undefined;
|
56
|
-
inputMode?: "
|
58
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
57
59
|
is?: string | undefined;
|
58
60
|
'aria-activedescendant'?: string | undefined;
|
59
|
-
'aria-atomic'?: boolean | "
|
60
|
-
'aria-autocomplete'?: "
|
61
|
-
'aria-busy'?: boolean | "
|
62
|
-
'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;
|
63
65
|
'aria-colcount'?: number | undefined;
|
64
66
|
'aria-colindex'?: number | undefined;
|
65
67
|
'aria-colspan'?: number | undefined;
|
66
68
|
'aria-controls'?: string | undefined;
|
67
|
-
'aria-current'?: boolean | "time" | "
|
69
|
+
'aria-current'?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
|
68
70
|
'aria-describedby'?: string | undefined;
|
69
71
|
'aria-details'?: string | undefined;
|
70
|
-
'aria-disabled'?: boolean | "
|
72
|
+
'aria-disabled'?: boolean | "false" | "true" | undefined;
|
71
73
|
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
72
74
|
'aria-errormessage'?: string | undefined;
|
73
|
-
'aria-expanded'?: boolean | "
|
75
|
+
'aria-expanded'?: boolean | "false" | "true" | undefined;
|
74
76
|
'aria-flowto'?: string | undefined;
|
75
|
-
'aria-grabbed'?: boolean | "
|
76
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "
|
77
|
-
'aria-hidden'?: boolean | "
|
78
|
-
'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;
|
79
81
|
'aria-keyshortcuts'?: string | undefined;
|
80
82
|
'aria-label'?: string | undefined;
|
81
83
|
'aria-labelledby'?: string | undefined;
|
82
84
|
'aria-level'?: number | undefined;
|
83
85
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
84
|
-
'aria-modal'?: boolean | "
|
85
|
-
'aria-multiline'?: boolean | "
|
86
|
-
'aria-multiselectable'?: boolean | "
|
86
|
+
'aria-modal'?: boolean | "false" | "true" | undefined;
|
87
|
+
'aria-multiline'?: boolean | "false" | "true" | undefined;
|
88
|
+
'aria-multiselectable'?: boolean | "false" | "true" | undefined;
|
87
89
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
88
90
|
'aria-owns'?: string | undefined;
|
89
91
|
'aria-placeholder'?: string | undefined;
|
90
92
|
'aria-posinset'?: number | undefined;
|
91
|
-
'aria-pressed'?: boolean | "
|
92
|
-
'aria-readonly'?: boolean | "
|
93
|
+
'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
|
94
|
+
'aria-readonly'?: boolean | "false" | "true" | undefined;
|
93
95
|
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
94
|
-
'aria-required'?: boolean | "
|
96
|
+
'aria-required'?: boolean | "false" | "true" | undefined;
|
95
97
|
'aria-roledescription'?: string | undefined;
|
96
98
|
'aria-rowcount'?: number | undefined;
|
97
99
|
'aria-rowindex'?: number | undefined;
|
98
100
|
'aria-rowspan'?: number | undefined;
|
99
|
-
'aria-selected'?: boolean | "
|
101
|
+
'aria-selected'?: boolean | "false" | "true" | undefined;
|
100
102
|
'aria-setsize'?: number | undefined;
|
101
103
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
102
104
|
'aria-valuemax'?: number | undefined;
|
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,16 +268,15 @@ export declare const ButtonPrimary: import("styled-components").StyledComponent<
|
|
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
|
-
|
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
|
-
variant?: "small" | "large" | "medium" | undefined;
|
279
|
-
as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | 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>;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { css } from 'styled-components';
|
2
2
|
import { get } from '../constants';
|
3
|
-
export default css(["position:relative;display:inline-block;font-family:inherit;font-weight:", ";line-height:20px;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;border-radius:", ";appearance:none;text-decoration:none;text-align:center;&:hover{text-decoration:none;}&:focus{outline:none;}&:disabled{cursor:default;}&:disabled svg{opacity:0.6;}"], get('fontWeights.bold'), get('radii.2'));
|
3
|
+
export default css(["position:relative;display:inline-block;padding:6px 16px;font-family:inherit;font-weight:", ";line-height:20px;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;border-radius:", ";appearance:none;text-decoration:none;text-align:center;&:hover{text-decoration:none;}&:focus{outline:none;}&:disabled{cursor:default;}&:disabled svg{opacity:0.6;}"], get('fontWeights.bold'), get('radii.2'));
|
package/lib-esm/CircleBadge.d.ts
CHANGED
@@ -5,7 +5,7 @@ import { SxProp } from './sx';
|
|
5
5
|
import { ComponentProps } from './utils/types';
|
6
6
|
declare const CircleBadge: import("styled-components").StyledComponent<"div", any, {
|
7
7
|
inline?: boolean | undefined;
|
8
|
-
variant?: "small" | "
|
8
|
+
variant?: "small" | "medium" | "large" | undefined;
|
9
9
|
size?: number | undefined;
|
10
10
|
} & SystemCommonProps & SxProp, never>;
|
11
11
|
declare const CircleBadgeIcon: import("styled-components").StyledComponent<({ icon: IconComponent, ...rest }: {
|
@@ -15,7 +15,7 @@ export declare type CircleBadgeProps = ComponentProps<typeof CircleBadge>;
|
|
15
15
|
export declare type CircleBadgeIconProps = ComponentProps<typeof CircleBadgeIcon>;
|
16
16
|
declare const _default: string & import("styled-components").StyledComponentBase<"div", any, {
|
17
17
|
inline?: boolean | undefined;
|
18
|
-
variant?: "small" | "
|
18
|
+
variant?: "small" | "medium" | "large" | undefined;
|
19
19
|
size?: number | undefined;
|
20
20
|
} & SystemCommonProps & SxProp, never> & import("hoist-non-react-statics").NonReactStatics<never, {}> & {
|
21
21
|
Icon: import("styled-components").StyledComponent<({ icon: IconComponent, ...rest }: {
|