@primer/components 0.0.0-20211011152413 → 0.0.0-20211011154552

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.
Files changed (58) hide show
  1. package/CHANGELOG.md +3 -3
  2. package/lib/ActionList2/Group.d.ts +2 -28
  3. package/lib/ActionList2/Group.js +6 -55
  4. package/lib/ActionList2/Item.js +2 -2
  5. package/lib/ActionList2/List.d.ts +1 -1
  6. package/lib/Autocomplete/Autocomplete.d.ts +28 -28
  7. package/lib/Autocomplete/AutocompleteInput.d.ts +28 -28
  8. package/lib/Button/Button.d.ts +25 -25
  9. package/lib/Button/ButtonClose.d.ts +45 -45
  10. package/lib/Button/ButtonDanger.d.ts +25 -25
  11. package/lib/Button/ButtonInvisible.d.ts +25 -25
  12. package/lib/Button/ButtonOutline.d.ts +25 -25
  13. package/lib/Button/ButtonPrimary.d.ts +25 -25
  14. package/lib/CircleOcticon.d.ts +42 -42
  15. package/lib/Dialog.d.ts +45 -45
  16. package/lib/Dropdown.d.ts +176 -176
  17. package/lib/DropdownMenu/DropdownButton.d.ts +46 -46
  18. package/lib/FilterList.d.ts +42 -42
  19. package/lib/Position.d.ts +4 -4
  20. package/lib/SelectMenu/SelectMenu.d.ts +246 -246
  21. package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
  22. package/lib/SelectMenu/SelectMenuModal.d.ts +1 -1
  23. package/lib/TextInputWithTokens.d.ts +28 -28
  24. package/lib/Timeline.d.ts +43 -43
  25. package/lib/Token/AvatarToken.d.ts +1 -1
  26. package/lib/Token/IssueLabelToken.d.ts +1 -1
  27. package/lib/Token/Token.d.ts +1 -1
  28. package/lib-esm/ActionList2/Group.d.ts +2 -28
  29. package/lib-esm/ActionList2/Group.js +5 -52
  30. package/lib-esm/ActionList2/Item.js +2 -2
  31. package/lib-esm/ActionList2/List.d.ts +1 -1
  32. package/lib-esm/Autocomplete/Autocomplete.d.ts +28 -28
  33. package/lib-esm/Autocomplete/AutocompleteInput.d.ts +28 -28
  34. package/lib-esm/Button/Button.d.ts +25 -25
  35. package/lib-esm/Button/ButtonClose.d.ts +45 -45
  36. package/lib-esm/Button/ButtonDanger.d.ts +25 -25
  37. package/lib-esm/Button/ButtonInvisible.d.ts +25 -25
  38. package/lib-esm/Button/ButtonOutline.d.ts +25 -25
  39. package/lib-esm/Button/ButtonPrimary.d.ts +25 -25
  40. package/lib-esm/CircleOcticon.d.ts +42 -42
  41. package/lib-esm/Dialog.d.ts +45 -45
  42. package/lib-esm/Dropdown.d.ts +176 -176
  43. package/lib-esm/DropdownMenu/DropdownButton.d.ts +46 -46
  44. package/lib-esm/FilterList.d.ts +42 -42
  45. package/lib-esm/Position.d.ts +4 -4
  46. package/lib-esm/SelectMenu/SelectMenu.d.ts +246 -246
  47. package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
  48. package/lib-esm/SelectMenu/SelectMenuModal.d.ts +1 -1
  49. package/lib-esm/TextInputWithTokens.d.ts +28 -28
  50. package/lib-esm/Timeline.d.ts +43 -43
  51. package/lib-esm/Token/AvatarToken.d.ts +1 -1
  52. package/lib-esm/Token/IssueLabelToken.d.ts +1 -1
  53. package/lib-esm/Token/Token.d.ts +1 -1
  54. package/package.json +1 -1
  55. package/lib/experiments.d.ts +0 -1
  56. package/lib/experiments.js +0 -18
  57. package/lib-esm/experiments.d.ts +0 -1
  58. package/lib-esm/experiments.js +0 -2
package/CHANGELOG.md CHANGED
@@ -1,16 +1,16 @@
1
1
  # @primer/components
2
2
 
3
- ## 0.0.0-20211011152413
3
+ ## 0.0.0-20211011154552
4
4
 
5
5
  ### Minor Changes
6
6
 
7
7
  - [#1544](https://github.com/primer/react/pull/1544) [`5b55b0ab`](https://github.com/primer/react/commit/5b55b0ab8ea06b077e141c02285c81b99e246b77) Thanks [@jfuchs](https://github.com/jfuchs)! - The sx prop now has types that will inform autocomplete for color and shadow values that are key paths into the theme.
8
8
 
9
- * [#1517](https://github.com/primer/react/pull/1517) [`19b430bb`](https://github.com/primer/react/commit/19b430bb48fcce76fc623378055a38392ef5d778) Thanks [@siddharthkp](https://github.com/siddharthkp)! - Add experimental `ActionList` with composable API
9
+ * [#1517](https://github.com/primer/react/pull/1517) [`561c0bd3`](https://github.com/primer/react/commit/561c0bd371b8d2135fb1d69555abc424ab796f2d) Thanks [@siddharthkp](https://github.com/siddharthkp)! - Add experimental `ActionList` with composable API
10
10
 
11
11
  ### Patch Changes
12
12
 
13
- - [#1584](https://github.com/primer/react/pull/1584) [`333dbf90`](https://github.com/primer/react/commit/333dbf9078371af7be965776ef65b80686258165) Thanks [@siddharthkp](https://github.com/siddharthkp)! - ActionList: Better semantics for accessibile ActionList.Group
13
+ - [#1599](https://github.com/primer/react/pull/1599) [`86e7cc84`](https://github.com/primer/react/commit/86e7cc843842e9c0374be6b566a552247826742c) Thanks [@siddharthkp](https://github.com/siddharthkp)! - ActionList: Better labels and description for accessible ActionList.Item
14
14
 
15
15
  * [#1583](https://github.com/primer/react/pull/1583) [`24b1ebbc`](https://github.com/primer/react/commit/24b1ebbc21ca2eaa92bd6b5b8c15ab0e7577f5a0) Thanks [@pksjce](https://github.com/pksjce)! - Add a utility to provide useIsoMorphicEffect function and use that instead of useLayoutEffect everywhere
16
16
 
@@ -1,37 +1,11 @@
1
1
  import React from 'react';
2
2
  import { SxProp } from '../sx';
3
+ import { HeaderProps } from './Header';
3
4
  import { ListProps } from './List';
4
- import { AriaRole } from '../utils/types';
5
- export declare type GroupProps = {
6
- /**
7
- * Style variations. Usage is discretionary.
8
- *
9
- * - `"filled"` - Superimposed on a background, offset from nearby content
10
- * - `"subtle"` - Relatively less offset from nearby content
11
- */
12
- variant?: 'subtle' | 'filled';
13
- /**
14
- * Primary text which names a `Group`.
15
- */
16
- title?: string;
17
- /**
18
- * Secondary text which provides additional information about a `Group`.
19
- */
20
- auxiliaryText?: string;
21
- /**
22
- * The ARIA role describing the function of the list inside `Group` component. `listbox` or `menu` are a common values.
23
- */
24
- role?: AriaRole;
25
- } & SxProp & {
26
- /**
27
- * Whether multiple Items or a single Item can be selected in the Group. Overrides value on ActionList root.
28
- */
5
+ export declare type GroupProps = HeaderProps & SxProp & {
29
6
  selectionVariant?: ListProps['selectionVariant'] | false;
30
7
  };
31
8
  declare type ContextProps = Pick<GroupProps, 'selectionVariant'>;
32
9
  export declare const GroupContext: React.Context<ContextProps>;
33
10
  export declare const Group: React.FC<GroupProps>;
34
- export declare type HeaderProps = Pick<GroupProps, 'variant' | 'title' | 'auxiliaryText'> & {
35
- labelId: string;
36
- };
37
11
  export {};
@@ -7,11 +7,9 @@ exports.Group = exports.GroupContext = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _ssr = require("@react-aria/ssr");
11
-
12
10
  var _Box = _interopRequireDefault(require("../Box"));
13
11
 
14
- var _List = require("./List");
12
+ var _Header = require("./Header");
15
13
 
16
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
15
 
@@ -23,14 +21,12 @@ exports.GroupContext = GroupContext;
23
21
 
24
22
  const Group = ({
25
23
  title,
26
- variant = 'subtle',
24
+ variant,
27
25
  auxiliaryText,
28
26
  selectionVariant,
29
- role,
30
27
  sx = {},
31
28
  ...props
32
29
  }) => {
33
- const labelId = (0, _ssr.useSSRSafeId)();
34
30
  return /*#__PURE__*/_react.default.createElement(_Box.default, _extends({
35
31
  as: "li",
36
32
  sx: {
@@ -41,11 +37,10 @@ const Group = ({
41
37
  // hide the ::marker inserted by browser's stylesheet
42
38
  ...sx
43
39
  }
44
- }, props), title && /*#__PURE__*/_react.default.createElement(Header, {
40
+ }, props), title && /*#__PURE__*/_react.default.createElement(_Header.Header, {
45
41
  title: title,
46
42
  variant: variant,
47
- auxiliaryText: auxiliaryText,
48
- labelId: labelId
43
+ auxiliaryText: auxiliaryText
49
44
  }), /*#__PURE__*/_react.default.createElement(GroupContext.Provider, {
50
45
  value: {
51
46
  selectionVariant
@@ -54,53 +49,9 @@ const Group = ({
54
49
  as: "ul",
55
50
  sx: {
56
51
  paddingInlineStart: 0
57
- },
58
- "aria-labelledby": title ? labelId : undefined,
59
- role: role
52
+ }
60
53
  }, props.children)));
61
54
  };
62
55
 
63
56
  exports.Group = Group;
64
- Group.displayName = "Group";
65
-
66
- /**
67
- * Displays the name and description of a `Group`.
68
- *
69
- * For visual presentation only. It's hidden from screen readers.
70
- */
71
- const Header = ({
72
- variant,
73
- title,
74
- auxiliaryText,
75
- labelId,
76
- ...props
77
- }) => {
78
- const {
79
- variant: listVariant
80
- } = _react.default.useContext(_List.ListContext);
81
-
82
- const styles = {
83
- paddingY: '6px',
84
- paddingX: listVariant === 'full' ? 2 : 3,
85
- fontSize: 0,
86
- fontWeight: 'bold',
87
- color: 'fg.muted',
88
- ...(variant === 'filled' && {
89
- backgroundColor: 'canvas.subtle',
90
- marginX: 0,
91
- marginBottom: 2,
92
- borderTop: '1px solid',
93
- borderBottom: '1px solid',
94
- borderColor: 'neutral.muted'
95
- })
96
- };
97
- return /*#__PURE__*/_react.default.createElement(_Box.default, _extends({
98
- sx: styles,
99
- role: "presentation",
100
- "aria-hidden": "true"
101
- }, props), /*#__PURE__*/_react.default.createElement("span", {
102
- id: labelId
103
- }, title), auxiliaryText && /*#__PURE__*/_react.default.createElement("span", null, auxiliaryText));
104
- };
105
-
106
- Header.displayName = "Header";
57
+ Group.displayName = "Group";
@@ -186,8 +186,8 @@ const Item = /*#__PURE__*/_react.default.forwardRef(({
186
186
  "aria-selected": selected,
187
187
  "aria-disabled": disabled ? true : undefined,
188
188
  tabIndex: disabled ? undefined : -1,
189
- "aria-labelledby": labelId,
190
- "aria-describedby": [slots.InlineDescription && inlineDescriptionId, slots.BlockDescription && blockDescriptionId].filter(Boolean).join(' ')
189
+ "aria-labelledby": `${labelId} ${slots.InlineDescription ? inlineDescriptionId : ''}`,
190
+ "aria-describedby": slots.BlockDescription ? blockDescriptionId : undefined
191
191
  }, props), /*#__PURE__*/_react.default.createElement(_PrivateItemWrapper, null, /*#__PURE__*/_react.default.createElement(_Selection.Selection, {
192
192
  selected: selected,
193
193
  disabled: disabled
@@ -20,7 +20,7 @@ export declare type ListProps = {
20
20
  */
21
21
  role?: AriaRole;
22
22
  } & SxProp;
23
- declare type ContextProps = Pick<ListProps, 'variant' | 'selectionVariant' | 'showDividers'>;
23
+ declare type ContextProps = Omit<ListProps, 'sx'>;
24
24
  export declare const ListContext: React.Context<ContextProps>;
25
25
  export declare const List: PolymorphicForwardRefComponent<"ul", ListProps>;
26
26
  export {};
@@ -20,7 +20,7 @@ declare const _default: React.FC<{
20
20
  } & {
21
21
  as?: string | React.ComponentType<any> | undefined;
22
22
  forwardedAs?: string | React.ComponentType<any> | undefined;
23
- }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "icon" | "variant" | "sx" | "className" | "disabled" | "contrast"> & {
23
+ }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "disabled" | "variant" | "contrast"> & {
24
24
  className?: string | undefined;
25
25
  icon?: React.ComponentType<{
26
26
  className?: string | undefined;
@@ -37,10 +37,6 @@ declare const _default: React.FC<{
37
37
  slot?: string | undefined;
38
38
  style?: React.CSSProperties | undefined;
39
39
  title?: string | undefined;
40
- block?: boolean | undefined;
41
- variant?: "small" | "large" | undefined;
42
- role?: React.AriaRole | undefined;
43
- sx?: import("../sx").BetterSystemStyleObject | undefined;
44
40
  key?: React.Key | null | undefined;
45
41
  defaultChecked?: boolean | undefined;
46
42
  defaultValue?: string | number | readonly string[] | undefined;
@@ -48,16 +44,17 @@ declare const _default: React.FC<{
48
44
  suppressHydrationWarning?: boolean | undefined;
49
45
  accessKey?: string | undefined;
50
46
  className?: string | undefined;
51
- contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
47
+ contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
52
48
  contextMenu?: string | undefined;
53
49
  dir?: string | undefined;
54
- draggable?: (boolean | "false" | "true") | undefined;
50
+ draggable?: (boolean | "true" | "false") | undefined;
55
51
  id?: string | undefined;
56
52
  lang?: string | undefined;
57
53
  placeholder?: string | undefined;
58
- spellCheck?: (boolean | "false" | "true") | undefined;
54
+ spellCheck?: (boolean | "true" | "false") | undefined;
59
55
  tabIndex?: number | undefined;
60
56
  radioGroup?: string | undefined;
57
+ role?: React.AriaRole | undefined;
61
58
  about?: string | undefined;
62
59
  datatype?: string | undefined;
63
60
  inlist?: any;
@@ -80,47 +77,47 @@ declare const _default: React.FC<{
80
77
  inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
81
78
  is?: string | undefined;
82
79
  'aria-activedescendant'?: string | undefined;
83
- 'aria-atomic'?: boolean | "false" | "true" | undefined;
84
- 'aria-autocomplete'?: "none" | "both" | "inline" | "list" | undefined;
85
- 'aria-busy'?: boolean | "false" | "true" | undefined;
86
- 'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
80
+ 'aria-atomic'?: boolean | "true" | "false" | undefined;
81
+ 'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
82
+ 'aria-busy'?: boolean | "true" | "false" | undefined;
83
+ 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
87
84
  'aria-colcount'?: number | undefined;
88
85
  'aria-colindex'?: number | undefined;
89
86
  'aria-colspan'?: number | undefined;
90
87
  'aria-controls'?: string | undefined;
91
- 'aria-current'?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
88
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
92
89
  'aria-describedby'?: string | undefined;
93
90
  'aria-details'?: string | undefined;
94
- 'aria-disabled'?: boolean | "false" | "true" | undefined;
95
- 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
91
+ 'aria-disabled'?: boolean | "true" | "false" | undefined;
92
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
96
93
  'aria-errormessage'?: string | undefined;
97
- 'aria-expanded'?: boolean | "false" | "true" | undefined;
94
+ 'aria-expanded'?: boolean | "true" | "false" | undefined;
98
95
  'aria-flowto'?: string | undefined;
99
- 'aria-grabbed'?: boolean | "false" | "true" | undefined;
100
- 'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "false" | "true" | "tree" | undefined;
101
- 'aria-hidden'?: boolean | "false" | "true" | undefined;
102
- 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
96
+ 'aria-grabbed'?: boolean | "true" | "false" | undefined;
97
+ 'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "tree" | "true" | "false" | undefined;
98
+ 'aria-hidden'?: boolean | "true" | "false" | undefined;
99
+ 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
103
100
  'aria-keyshortcuts'?: string | undefined;
104
101
  'aria-label'?: string | undefined;
105
102
  'aria-labelledby'?: string | undefined;
106
103
  'aria-level'?: number | undefined;
107
104
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
108
- 'aria-modal'?: boolean | "false" | "true" | undefined;
109
- 'aria-multiline'?: boolean | "false" | "true" | undefined;
110
- 'aria-multiselectable'?: boolean | "false" | "true" | undefined;
105
+ 'aria-modal'?: boolean | "true" | "false" | undefined;
106
+ 'aria-multiline'?: boolean | "true" | "false" | undefined;
107
+ 'aria-multiselectable'?: boolean | "true" | "false" | undefined;
111
108
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
112
109
  'aria-owns'?: string | undefined;
113
110
  'aria-placeholder'?: string | undefined;
114
111
  'aria-posinset'?: number | undefined;
115
- 'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
116
- 'aria-readonly'?: boolean | "false" | "true" | undefined;
112
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
113
+ 'aria-readonly'?: boolean | "true" | "false" | undefined;
117
114
  'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
118
- 'aria-required'?: boolean | "false" | "true" | undefined;
115
+ 'aria-required'?: boolean | "true" | "false" | undefined;
119
116
  'aria-roledescription'?: string | undefined;
120
117
  'aria-rowcount'?: number | undefined;
121
118
  'aria-rowindex'?: number | undefined;
122
119
  'aria-rowspan'?: number | undefined;
123
- 'aria-selected'?: boolean | "false" | "true" | undefined;
120
+ 'aria-selected'?: boolean | "true" | "false" | undefined;
124
121
  'aria-setsize'?: number | undefined;
125
122
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
126
123
  'aria-valuemax'?: number | undefined;
@@ -290,12 +287,15 @@ declare const _default: React.FC<{
290
287
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLSpanElement> | undefined;
291
288
  onTransitionEnd?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
292
289
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
290
+ block?: boolean | undefined;
291
+ sx?: import("../sx").BetterSystemStyleObject | undefined;
293
292
  disabled?: boolean | undefined;
293
+ variant?: "small" | "large" | undefined;
294
294
  hasIcon?: boolean | undefined;
295
295
  contrast?: boolean | undefined;
296
296
  } & {
297
297
  theme?: any;
298
- }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "variant" | "sx" | "disabled" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, {
298
+ }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "disabled" | "variant" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, {
299
299
  as?: React.ComponentType<any> | undefined;
300
300
  }>;
301
301
  Menu: typeof AutocompleteMenu;
@@ -12,7 +12,7 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
12
12
  } & {
13
13
  as?: string | React.ComponentType<any> | undefined;
14
14
  forwardedAs?: string | React.ComponentType<any> | undefined;
15
- }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "icon" | "variant" | "sx" | "className" | "disabled" | "contrast"> & {
15
+ }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "disabled" | "variant" | "contrast"> & {
16
16
  className?: string | undefined;
17
17
  icon?: React.ComponentType<{
18
18
  className?: string | undefined;
@@ -29,10 +29,6 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
29
29
  slot?: string | undefined;
30
30
  style?: React.CSSProperties | undefined;
31
31
  title?: string | undefined;
32
- block?: boolean | undefined;
33
- variant?: "small" | "large" | undefined;
34
- role?: React.AriaRole | undefined;
35
- sx?: import("../sx").BetterSystemStyleObject | undefined;
36
32
  key?: React.Key | null | undefined;
37
33
  defaultChecked?: boolean | undefined;
38
34
  defaultValue?: string | number | readonly string[] | undefined;
@@ -40,16 +36,17 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
40
36
  suppressHydrationWarning?: boolean | undefined;
41
37
  accessKey?: string | undefined;
42
38
  className?: string | undefined;
43
- contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
39
+ contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
44
40
  contextMenu?: string | undefined;
45
41
  dir?: string | undefined;
46
- draggable?: (boolean | "false" | "true") | undefined;
42
+ draggable?: (boolean | "true" | "false") | undefined;
47
43
  id?: string | undefined;
48
44
  lang?: string | undefined;
49
45
  placeholder?: string | undefined;
50
- spellCheck?: (boolean | "false" | "true") | undefined;
46
+ spellCheck?: (boolean | "true" | "false") | undefined;
51
47
  tabIndex?: number | undefined;
52
48
  radioGroup?: string | undefined;
49
+ role?: React.AriaRole | undefined;
53
50
  about?: string | undefined;
54
51
  datatype?: string | undefined;
55
52
  inlist?: any;
@@ -72,47 +69,47 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
72
69
  inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
73
70
  is?: string | undefined;
74
71
  'aria-activedescendant'?: string | undefined;
75
- 'aria-atomic'?: boolean | "false" | "true" | undefined;
76
- 'aria-autocomplete'?: "none" | "both" | "inline" | "list" | undefined;
77
- 'aria-busy'?: boolean | "false" | "true" | undefined;
78
- 'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
72
+ 'aria-atomic'?: boolean | "true" | "false" | undefined;
73
+ 'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
74
+ 'aria-busy'?: boolean | "true" | "false" | undefined;
75
+ 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
79
76
  'aria-colcount'?: number | undefined;
80
77
  'aria-colindex'?: number | undefined;
81
78
  'aria-colspan'?: number | undefined;
82
79
  'aria-controls'?: string | undefined;
83
- 'aria-current'?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
80
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
84
81
  'aria-describedby'?: string | undefined;
85
82
  'aria-details'?: string | undefined;
86
- 'aria-disabled'?: boolean | "false" | "true" | undefined;
87
- 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
83
+ 'aria-disabled'?: boolean | "true" | "false" | undefined;
84
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
88
85
  'aria-errormessage'?: string | undefined;
89
- 'aria-expanded'?: boolean | "false" | "true" | undefined;
86
+ 'aria-expanded'?: boolean | "true" | "false" | undefined;
90
87
  'aria-flowto'?: string | undefined;
91
- 'aria-grabbed'?: boolean | "false" | "true" | undefined;
92
- 'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "false" | "true" | "tree" | undefined;
93
- 'aria-hidden'?: boolean | "false" | "true" | undefined;
94
- 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
88
+ 'aria-grabbed'?: boolean | "true" | "false" | undefined;
89
+ 'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "tree" | "true" | "false" | undefined;
90
+ 'aria-hidden'?: boolean | "true" | "false" | undefined;
91
+ 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
95
92
  'aria-keyshortcuts'?: string | undefined;
96
93
  'aria-label'?: string | undefined;
97
94
  'aria-labelledby'?: string | undefined;
98
95
  'aria-level'?: number | undefined;
99
96
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
100
- 'aria-modal'?: boolean | "false" | "true" | undefined;
101
- 'aria-multiline'?: boolean | "false" | "true" | undefined;
102
- 'aria-multiselectable'?: boolean | "false" | "true" | undefined;
97
+ 'aria-modal'?: boolean | "true" | "false" | undefined;
98
+ 'aria-multiline'?: boolean | "true" | "false" | undefined;
99
+ 'aria-multiselectable'?: boolean | "true" | "false" | undefined;
103
100
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
104
101
  'aria-owns'?: string | undefined;
105
102
  'aria-placeholder'?: string | undefined;
106
103
  'aria-posinset'?: number | undefined;
107
- 'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
108
- 'aria-readonly'?: boolean | "false" | "true" | undefined;
104
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
105
+ 'aria-readonly'?: boolean | "true" | "false" | undefined;
109
106
  'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
110
- 'aria-required'?: boolean | "false" | "true" | undefined;
107
+ 'aria-required'?: boolean | "true" | "false" | undefined;
111
108
  'aria-roledescription'?: string | undefined;
112
109
  'aria-rowcount'?: number | undefined;
113
110
  'aria-rowindex'?: number | undefined;
114
111
  'aria-rowspan'?: number | undefined;
115
- 'aria-selected'?: boolean | "false" | "true" | undefined;
112
+ 'aria-selected'?: boolean | "true" | "false" | undefined;
116
113
  'aria-setsize'?: number | undefined;
117
114
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
118
115
  'aria-valuemax'?: number | undefined;
@@ -282,11 +279,14 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
282
279
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLSpanElement> | undefined;
283
280
  onTransitionEnd?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
284
281
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
282
+ block?: boolean | undefined;
283
+ sx?: import("../sx").BetterSystemStyleObject | undefined;
285
284
  disabled?: boolean | undefined;
285
+ variant?: "small" | "large" | undefined;
286
286
  hasIcon?: boolean | undefined;
287
287
  contrast?: boolean | undefined;
288
288
  } & {
289
289
  theme?: any;
290
- }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "variant" | "sx" | "disabled" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, InternalAutocompleteInputProps>;
290
+ }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "disabled" | "variant" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, InternalAutocompleteInputProps>;
291
291
  export declare type AutocompleteInputProps = ComponentProps<typeof AutocompleteInput>;
292
292
  export default AutocompleteInput;
@@ -16,8 +16,6 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
16
16
  slot?: string | undefined;
17
17
  style?: import("react").CSSProperties | undefined;
18
18
  title?: string | undefined;
19
- variant?: "small" | "medium" | "large" | undefined;
20
- role?: import("react").AriaRole | undefined;
21
19
  type?: "button" | "reset" | "submit" | undefined;
22
20
  name?: string | undefined;
23
21
  key?: import("react").Key | null | undefined;
@@ -27,16 +25,17 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
27
25
  suppressHydrationWarning?: boolean | undefined;
28
26
  accessKey?: string | undefined;
29
27
  className?: string | undefined;
30
- contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
28
+ contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
31
29
  contextMenu?: string | undefined;
32
30
  dir?: string | undefined;
33
- draggable?: (boolean | "false" | "true") | undefined;
31
+ draggable?: (boolean | "true" | "false") | undefined;
34
32
  id?: string | undefined;
35
33
  lang?: string | undefined;
36
34
  placeholder?: string | undefined;
37
- spellCheck?: (boolean | "false" | "true") | undefined;
35
+ spellCheck?: (boolean | "true" | "false") | undefined;
38
36
  tabIndex?: number | undefined;
39
37
  radioGroup?: string | undefined;
38
+ role?: import("react").AriaRole | undefined;
40
39
  about?: string | undefined;
41
40
  datatype?: string | undefined;
42
41
  inlist?: any;
@@ -59,47 +58,47 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
59
58
  inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
60
59
  is?: string | undefined;
61
60
  'aria-activedescendant'?: string | undefined;
62
- 'aria-atomic'?: boolean | "false" | "true" | undefined;
63
- 'aria-autocomplete'?: "none" | "both" | "inline" | "list" | undefined;
64
- 'aria-busy'?: boolean | "false" | "true" | undefined;
65
- 'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
61
+ 'aria-atomic'?: boolean | "true" | "false" | undefined;
62
+ 'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
63
+ 'aria-busy'?: boolean | "true" | "false" | undefined;
64
+ 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
66
65
  'aria-colcount'?: number | undefined;
67
66
  'aria-colindex'?: number | undefined;
68
67
  'aria-colspan'?: number | undefined;
69
68
  'aria-controls'?: string | undefined;
70
- 'aria-current'?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
69
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
71
70
  'aria-describedby'?: string | undefined;
72
71
  'aria-details'?: string | undefined;
73
- 'aria-disabled'?: boolean | "false" | "true" | undefined;
74
- 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
72
+ 'aria-disabled'?: boolean | "true" | "false" | undefined;
73
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
75
74
  'aria-errormessage'?: string | undefined;
76
- 'aria-expanded'?: boolean | "false" | "true" | undefined;
75
+ 'aria-expanded'?: boolean | "true" | "false" | undefined;
77
76
  'aria-flowto'?: string | undefined;
78
- 'aria-grabbed'?: boolean | "false" | "true" | undefined;
79
- 'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "false" | "true" | "tree" | undefined;
80
- 'aria-hidden'?: boolean | "false" | "true" | undefined;
81
- 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
77
+ 'aria-grabbed'?: boolean | "true" | "false" | undefined;
78
+ 'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "tree" | "true" | "false" | undefined;
79
+ 'aria-hidden'?: boolean | "true" | "false" | undefined;
80
+ 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
82
81
  'aria-keyshortcuts'?: string | undefined;
83
82
  'aria-label'?: string | undefined;
84
83
  'aria-labelledby'?: string | undefined;
85
84
  'aria-level'?: number | undefined;
86
85
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
87
- 'aria-modal'?: boolean | "false" | "true" | undefined;
88
- 'aria-multiline'?: boolean | "false" | "true" | undefined;
89
- 'aria-multiselectable'?: boolean | "false" | "true" | undefined;
86
+ 'aria-modal'?: boolean | "true" | "false" | undefined;
87
+ 'aria-multiline'?: boolean | "true" | "false" | undefined;
88
+ 'aria-multiselectable'?: boolean | "true" | "false" | undefined;
90
89
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
91
90
  'aria-owns'?: string | undefined;
92
91
  'aria-placeholder'?: string | undefined;
93
92
  'aria-posinset'?: number | undefined;
94
- 'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
95
- 'aria-readonly'?: boolean | "false" | "true" | undefined;
93
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
94
+ 'aria-readonly'?: boolean | "true" | "false" | undefined;
96
95
  'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
97
- 'aria-required'?: boolean | "false" | "true" | undefined;
96
+ 'aria-required'?: boolean | "true" | "false" | undefined;
98
97
  'aria-roledescription'?: string | undefined;
99
98
  'aria-rowcount'?: number | undefined;
100
99
  'aria-rowindex'?: number | undefined;
101
100
  'aria-rowspan'?: number | undefined;
102
- 'aria-selected'?: boolean | "false" | "true" | undefined;
101
+ 'aria-selected'?: boolean | "true" | "false" | undefined;
103
102
  'aria-setsize'?: number | undefined;
104
103
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
105
104
  'aria-valuemax'?: number | undefined;
@@ -270,13 +269,14 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
270
269
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
271
270
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
272
271
  as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
273
- disabled?: boolean | undefined;
274
272
  autoFocus?: boolean | undefined;
273
+ disabled?: boolean | undefined;
275
274
  formAction?: string | undefined;
276
275
  formEncType?: string | undefined;
277
276
  formMethod?: string | undefined;
278
277
  formNoValidate?: boolean | undefined;
279
278
  formTarget?: string | undefined;
279
+ variant?: "small" | "medium" | "large" | 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>;