@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
package/lib/Dropdown.js
CHANGED
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
10
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
11
11
|
|
12
|
-
var
|
12
|
+
var _Button = _interopRequireDefault(require("./Button"));
|
13
13
|
|
14
14
|
var _constants = require("./constants");
|
15
15
|
|
@@ -51,11 +51,10 @@ const DropdownButton = ({
|
|
51
51
|
children,
|
52
52
|
...rest
|
53
53
|
}) => {
|
54
|
-
return /*#__PURE__*/_react.default.createElement(
|
54
|
+
return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({
|
55
55
|
as: "summary",
|
56
|
-
"aria-haspopup": "true"
|
57
|
-
|
58
|
-
}, rest), children);
|
56
|
+
"aria-haspopup": "true"
|
57
|
+
}, rest), children, /*#__PURE__*/_react.default.createElement(DropdownCaret, null));
|
59
58
|
};
|
60
59
|
|
61
60
|
DropdownButton.displayName = "DropdownButton";
|
@@ -80,7 +79,7 @@ DropdownMenu.defaultProps = {
|
|
80
79
|
};
|
81
80
|
DropdownMenu.displayName = 'Dropdown.Menu';
|
82
81
|
DropdownItem.displayName = 'Dropdown.Item';
|
83
|
-
DropdownButton.defaultProps =
|
82
|
+
DropdownButton.defaultProps = _Button.default.defaultProps;
|
84
83
|
DropdownButton.displayName = 'Dropdown.Button';
|
85
84
|
DropdownCaret.displayName = 'Dropdown.Caret';
|
86
85
|
Dropdown.defaultProps = _Details.default.defaultProps;
|
@@ -28,6 +28,15 @@ export declare const DropdownButton: React.ForwardRefExoticComponent<Pick<React.
|
|
28
28
|
margin?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
29
29
|
overflow?: import("styled-system").ResponsiveValue<import("csstype").Property.Overflow, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
30
30
|
padding?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
31
|
+
hidden?: boolean | undefined;
|
32
|
+
children?: React.ReactNode;
|
33
|
+
value?: string | number | readonly string[] | undefined;
|
34
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
35
|
+
form?: string | undefined;
|
36
|
+
p?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
37
|
+
slot?: string | undefined;
|
38
|
+
style?: React.CSSProperties | undefined;
|
39
|
+
title?: string | undefined;
|
31
40
|
bg?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
32
41
|
m?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
33
42
|
mt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
@@ -38,7 +47,6 @@ export declare const DropdownButton: React.ForwardRefExoticComponent<Pick<React.
|
|
38
47
|
marginX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
39
48
|
my?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
40
49
|
marginY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
41
|
-
p?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
42
50
|
pt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
43
51
|
pr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
44
52
|
pb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
@@ -47,11 +55,7 @@ export declare const DropdownButton: React.ForwardRefExoticComponent<Pick<React.
|
|
47
55
|
paddingX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
48
56
|
py?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
49
57
|
paddingY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
50
|
-
|
51
|
-
slot?: string | undefined;
|
52
|
-
style?: React.CSSProperties | undefined;
|
53
|
-
title?: string | undefined;
|
54
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
58
|
+
size?: import("styled-system").ResponsiveValue<import("csstype").Property.Height<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
55
59
|
type?: "button" | "reset" | "submit" | undefined;
|
56
60
|
name?: string | undefined;
|
57
61
|
key?: React.Key | null | undefined;
|
@@ -61,15 +65,14 @@ export declare const DropdownButton: React.ForwardRefExoticComponent<Pick<React.
|
|
61
65
|
suppressHydrationWarning?: boolean | undefined;
|
62
66
|
accessKey?: string | undefined;
|
63
67
|
className?: string | undefined;
|
64
|
-
contentEditable?:
|
68
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
|
65
69
|
contextMenu?: string | undefined;
|
66
70
|
dir?: string | undefined;
|
67
|
-
draggable?: (boolean | "
|
68
|
-
hidden?: boolean | undefined;
|
71
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
69
72
|
id?: string | undefined;
|
70
73
|
lang?: string | undefined;
|
71
74
|
placeholder?: string | undefined;
|
72
|
-
spellCheck?: (boolean | "
|
75
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
73
76
|
tabIndex?: number | undefined;
|
74
77
|
radioGroup?: string | undefined;
|
75
78
|
role?: React.AriaRole | undefined;
|
@@ -92,57 +95,56 @@ export declare const DropdownButton: React.ForwardRefExoticComponent<Pick<React.
|
|
92
95
|
results?: number | undefined;
|
93
96
|
security?: string | undefined;
|
94
97
|
unselectable?: "on" | "off" | undefined;
|
95
|
-
inputMode?: "
|
98
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
96
99
|
is?: string | undefined;
|
97
100
|
'aria-activedescendant'?: string | undefined;
|
98
|
-
'aria-atomic'?: boolean | "
|
99
|
-
'aria-autocomplete'?: "
|
100
|
-
'aria-busy'?: boolean | "
|
101
|
-
'aria-checked'?: boolean | "
|
101
|
+
'aria-atomic'?: boolean | "false" | "true" | undefined;
|
102
|
+
'aria-autocomplete'?: "none" | "both" | "inline" | "list" | undefined;
|
103
|
+
'aria-busy'?: boolean | "false" | "true" | undefined;
|
104
|
+
'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
|
102
105
|
'aria-colcount'?: number | undefined;
|
103
106
|
'aria-colindex'?: number | undefined;
|
104
107
|
'aria-colspan'?: number | undefined;
|
105
108
|
'aria-controls'?: string | undefined;
|
106
|
-
'aria-current'?: boolean | "time" | "
|
109
|
+
'aria-current'?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
|
107
110
|
'aria-describedby'?: string | undefined;
|
108
111
|
'aria-details'?: string | undefined;
|
109
|
-
'aria-disabled'?: boolean | "
|
112
|
+
'aria-disabled'?: boolean | "false" | "true" | undefined;
|
110
113
|
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
111
114
|
'aria-errormessage'?: string | undefined;
|
112
|
-
'aria-expanded'?: boolean | "
|
115
|
+
'aria-expanded'?: boolean | "false" | "true" | undefined;
|
113
116
|
'aria-flowto'?: string | undefined;
|
114
|
-
'aria-grabbed'?: boolean | "
|
115
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "
|
116
|
-
'aria-hidden'?: boolean | "
|
117
|
-
'aria-invalid'?: boolean | "
|
117
|
+
'aria-grabbed'?: boolean | "false" | "true" | undefined;
|
118
|
+
'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "false" | "true" | "tree" | undefined;
|
119
|
+
'aria-hidden'?: boolean | "false" | "true" | undefined;
|
120
|
+
'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
118
121
|
'aria-keyshortcuts'?: string | undefined;
|
119
122
|
'aria-label'?: string | undefined;
|
120
123
|
'aria-labelledby'?: string | undefined;
|
121
124
|
'aria-level'?: number | undefined;
|
122
125
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
123
|
-
'aria-modal'?: boolean | "
|
124
|
-
'aria-multiline'?: boolean | "
|
125
|
-
'aria-multiselectable'?: boolean | "
|
126
|
+
'aria-modal'?: boolean | "false" | "true" | undefined;
|
127
|
+
'aria-multiline'?: boolean | "false" | "true" | undefined;
|
128
|
+
'aria-multiselectable'?: boolean | "false" | "true" | undefined;
|
126
129
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
127
130
|
'aria-owns'?: string | undefined;
|
128
131
|
'aria-placeholder'?: string | undefined;
|
129
132
|
'aria-posinset'?: number | undefined;
|
130
|
-
'aria-pressed'?: boolean | "
|
131
|
-
'aria-readonly'?: boolean | "
|
133
|
+
'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
|
134
|
+
'aria-readonly'?: boolean | "false" | "true" | undefined;
|
132
135
|
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
133
|
-
'aria-required'?: boolean | "
|
136
|
+
'aria-required'?: boolean | "false" | "true" | undefined;
|
134
137
|
'aria-roledescription'?: string | undefined;
|
135
138
|
'aria-rowcount'?: number | undefined;
|
136
139
|
'aria-rowindex'?: number | undefined;
|
137
140
|
'aria-rowspan'?: number | undefined;
|
138
|
-
'aria-selected'?: boolean | "
|
141
|
+
'aria-selected'?: boolean | "false" | "true" | undefined;
|
139
142
|
'aria-setsize'?: number | undefined;
|
140
143
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
141
144
|
'aria-valuemax'?: number | undefined;
|
142
145
|
'aria-valuemin'?: number | undefined;
|
143
146
|
'aria-valuenow'?: number | undefined;
|
144
147
|
'aria-valuetext'?: string | undefined;
|
145
|
-
children?: React.ReactNode;
|
146
148
|
dangerouslySetInnerHTML?: {
|
147
149
|
__html: string;
|
148
150
|
} | undefined;
|
@@ -306,18 +308,16 @@ export declare const DropdownButton: React.ForwardRefExoticComponent<Pick<React.
|
|
306
308
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement> | undefined;
|
307
309
|
onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
308
310
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
autoFocus?: boolean | undefined;
|
311
|
+
sx?: import("../sx").BetterSystemStyleObject | undefined;
|
312
|
+
variant?: "small" | "medium" | "large" | undefined;
|
313
|
+
as?: string | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
|
313
314
|
disabled?: boolean | undefined;
|
315
|
+
autoFocus?: boolean | undefined;
|
314
316
|
formAction?: string | undefined;
|
315
317
|
formEncType?: string | undefined;
|
316
318
|
formMethod?: string | undefined;
|
317
319
|
formNoValidate?: boolean | undefined;
|
318
320
|
formTarget?: string | undefined;
|
319
|
-
variant?: "small" | "large" | "medium" | undefined;
|
320
|
-
as?: string | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
|
321
321
|
} & {
|
322
322
|
theme?: any;
|
323
|
-
}>, "backgroundColor" | "color" | "display" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "verticalAlign" | "width" | "margin" | "overflow" | "padding" | "
|
323
|
+
}>, "backgroundColor" | "color" | "display" | "fontSize" | "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" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "size" | "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" | "sx" | "variant" | "as" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & React.RefAttributes<HTMLElement>>;
|
package/lib/FilterList.d.ts
CHANGED
@@ -32,6 +32,13 @@ declare const _default: {
|
|
32
32
|
translate?: "yes" | "no" | undefined;
|
33
33
|
margin?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
34
34
|
padding?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
35
|
+
hidden?: boolean | undefined;
|
36
|
+
children?: React.ReactNode;
|
37
|
+
ref?: ((instance: HTMLUListElement | null) => void) | React.RefObject<HTMLUListElement> | null | undefined;
|
38
|
+
p?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
39
|
+
slot?: string | undefined;
|
40
|
+
style?: React.CSSProperties | undefined;
|
41
|
+
title?: string | undefined;
|
35
42
|
bg?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
36
43
|
m?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
37
44
|
mt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
@@ -42,7 +49,6 @@ declare const _default: {
|
|
42
49
|
marginX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
43
50
|
my?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
44
51
|
marginY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
45
|
-
p?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
46
52
|
pt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
47
53
|
pr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
48
54
|
pb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
@@ -51,10 +57,6 @@ declare const _default: {
|
|
51
57
|
paddingX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
52
58
|
py?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
53
59
|
paddingY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
54
|
-
slot?: string | undefined;
|
55
|
-
style?: React.CSSProperties | undefined;
|
56
|
-
title?: string | undefined;
|
57
|
-
ref?: ((instance: HTMLUListElement | null) => void) | React.RefObject<HTMLUListElement> | null | undefined;
|
58
60
|
key?: React.Key | null | undefined;
|
59
61
|
defaultChecked?: boolean | undefined;
|
60
62
|
defaultValue?: string | number | readonly string[] | undefined;
|
@@ -62,15 +64,14 @@ declare const _default: {
|
|
62
64
|
suppressHydrationWarning?: boolean | undefined;
|
63
65
|
accessKey?: string | undefined;
|
64
66
|
className?: string | undefined;
|
65
|
-
contentEditable?:
|
67
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
|
66
68
|
contextMenu?: string | undefined;
|
67
69
|
dir?: string | undefined;
|
68
|
-
draggable?: (boolean | "
|
69
|
-
hidden?: boolean | undefined;
|
70
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
70
71
|
id?: string | undefined;
|
71
72
|
lang?: string | undefined;
|
72
73
|
placeholder?: string | undefined;
|
73
|
-
spellCheck?: (boolean | "
|
74
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
74
75
|
tabIndex?: number | undefined;
|
75
76
|
radioGroup?: string | undefined;
|
76
77
|
role?: React.AriaRole | undefined;
|
@@ -93,57 +94,56 @@ declare const _default: {
|
|
93
94
|
results?: number | undefined;
|
94
95
|
security?: string | undefined;
|
95
96
|
unselectable?: "on" | "off" | undefined;
|
96
|
-
inputMode?: "
|
97
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
97
98
|
is?: string | undefined;
|
98
99
|
'aria-activedescendant'?: string | undefined;
|
99
|
-
'aria-atomic'?: boolean | "
|
100
|
-
'aria-autocomplete'?: "
|
101
|
-
'aria-busy'?: boolean | "
|
102
|
-
'aria-checked'?: boolean | "
|
100
|
+
'aria-atomic'?: boolean | "false" | "true" | undefined;
|
101
|
+
'aria-autocomplete'?: "none" | "both" | "inline" | "list" | undefined;
|
102
|
+
'aria-busy'?: boolean | "false" | "true" | undefined;
|
103
|
+
'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
|
103
104
|
'aria-colcount'?: number | undefined;
|
104
105
|
'aria-colindex'?: number | undefined;
|
105
106
|
'aria-colspan'?: number | undefined;
|
106
107
|
'aria-controls'?: string | undefined;
|
107
|
-
'aria-current'?: boolean | "time" | "
|
108
|
+
'aria-current'?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
|
108
109
|
'aria-describedby'?: string | undefined;
|
109
110
|
'aria-details'?: string | undefined;
|
110
|
-
'aria-disabled'?: boolean | "
|
111
|
+
'aria-disabled'?: boolean | "false" | "true" | undefined;
|
111
112
|
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
112
113
|
'aria-errormessage'?: string | undefined;
|
113
|
-
'aria-expanded'?: boolean | "
|
114
|
+
'aria-expanded'?: boolean | "false" | "true" | undefined;
|
114
115
|
'aria-flowto'?: string | undefined;
|
115
|
-
'aria-grabbed'?: boolean | "
|
116
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "
|
117
|
-
'aria-hidden'?: boolean | "
|
118
|
-
'aria-invalid'?: boolean | "
|
116
|
+
'aria-grabbed'?: boolean | "false" | "true" | undefined;
|
117
|
+
'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "false" | "true" | "tree" | undefined;
|
118
|
+
'aria-hidden'?: boolean | "false" | "true" | undefined;
|
119
|
+
'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
119
120
|
'aria-keyshortcuts'?: string | undefined;
|
120
121
|
'aria-label'?: string | undefined;
|
121
122
|
'aria-labelledby'?: string | undefined;
|
122
123
|
'aria-level'?: number | undefined;
|
123
124
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
124
|
-
'aria-modal'?: boolean | "
|
125
|
-
'aria-multiline'?: boolean | "
|
126
|
-
'aria-multiselectable'?: boolean | "
|
125
|
+
'aria-modal'?: boolean | "false" | "true" | undefined;
|
126
|
+
'aria-multiline'?: boolean | "false" | "true" | undefined;
|
127
|
+
'aria-multiselectable'?: boolean | "false" | "true" | undefined;
|
127
128
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
128
129
|
'aria-owns'?: string | undefined;
|
129
130
|
'aria-placeholder'?: string | undefined;
|
130
131
|
'aria-posinset'?: number | undefined;
|
131
|
-
'aria-pressed'?: boolean | "
|
132
|
-
'aria-readonly'?: boolean | "
|
132
|
+
'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
|
133
|
+
'aria-readonly'?: boolean | "false" | "true" | undefined;
|
133
134
|
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
134
|
-
'aria-required'?: boolean | "
|
135
|
+
'aria-required'?: boolean | "false" | "true" | undefined;
|
135
136
|
'aria-roledescription'?: string | undefined;
|
136
137
|
'aria-rowcount'?: number | undefined;
|
137
138
|
'aria-rowindex'?: number | undefined;
|
138
139
|
'aria-rowspan'?: number | undefined;
|
139
|
-
'aria-selected'?: boolean | "
|
140
|
+
'aria-selected'?: boolean | "false" | "true" | undefined;
|
140
141
|
'aria-setsize'?: number | undefined;
|
141
142
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
142
143
|
'aria-valuemax'?: number | undefined;
|
143
144
|
'aria-valuemin'?: number | undefined;
|
144
145
|
'aria-valuenow'?: number | undefined;
|
145
146
|
'aria-valuetext'?: string | undefined;
|
146
|
-
children?: React.ReactNode;
|
147
147
|
dangerouslySetInnerHTML?: {
|
148
148
|
__html: string;
|
149
149
|
} | undefined;
|
@@ -307,7 +307,7 @@ declare const _default: {
|
|
307
307
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLUListElement> | undefined;
|
308
308
|
onTransitionEnd?: React.TransitionEventHandler<HTMLUListElement> | undefined;
|
309
309
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLUListElement> | undefined;
|
310
|
-
sx?: import("
|
310
|
+
sx?: import("./sx").BetterSystemStyleObject | undefined;
|
311
311
|
} & {
|
312
312
|
theme?: any;
|
313
313
|
}>): JSX.Element;
|
package/lib/Flash.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { SystemCommonProps } from './constants';
|
|
2
2
|
import { SxProp } from './sx';
|
3
3
|
import { ComponentProps } from './utils/types';
|
4
4
|
declare const Flash: import("styled-components").StyledComponent<"div", any, {
|
5
|
-
variant?: "
|
5
|
+
variant?: "success" | "danger" | "default" | "warning" | undefined;
|
6
6
|
full?: boolean | undefined;
|
7
7
|
} & SystemCommonProps & SxProp, never>;
|
8
8
|
export declare type FlashProps = ComponentProps<typeof Flash>;
|
package/lib/Label.d.ts
CHANGED
@@ -3,7 +3,7 @@ import { SystemCommonProps } from './constants';
|
|
3
3
|
import { SxProp } from './sx';
|
4
4
|
import { ComponentProps } from './utils/types';
|
5
5
|
declare const Label: import("styled-components").StyledComponent<"span", any, {
|
6
|
-
variant?: "small" | "
|
6
|
+
variant?: "small" | "medium" | "large" | "xl" | undefined;
|
7
7
|
dropshadow?: boolean | undefined;
|
8
8
|
outline?: boolean | undefined;
|
9
9
|
} & BorderColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & SystemCommonProps & SxProp, never>;
|