@primer/components 0.0.0-20219296335 → 0.0.0-2021931194230

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 (166) hide show
  1. package/CHANGELOG.md +1 -23
  2. package/dist/browser.esm.js +440 -441
  3. package/dist/browser.esm.js.map +1 -1
  4. package/dist/browser.umd.js +444 -445
  5. package/dist/browser.umd.js.map +1 -1
  6. package/lib/ActionList/Item.d.ts +0 -6
  7. package/lib/ActionList/Item.js +1 -5
  8. package/lib/ActionMenu.js +2 -2
  9. package/lib/AnchoredOverlay/AnchoredOverlay.d.ts +4 -2
  10. package/lib/Autocomplete/Autocomplete.d.ts +35 -33
  11. package/lib/Autocomplete/AutocompleteInput.d.ts +35 -33
  12. package/lib/Button/Button.d.ts +29 -29
  13. package/lib/Button/ButtonBase.d.ts +1 -1
  14. package/lib/Button/ButtonClose.d.ts +49 -49
  15. package/lib/Button/ButtonDanger.d.ts +29 -29
  16. package/lib/Button/ButtonInvisible.d.ts +29 -29
  17. package/lib/Button/ButtonOutline.d.ts +29 -29
  18. package/lib/Button/ButtonPrimary.d.ts +29 -29
  19. package/lib/CircleBadge.d.ts +2 -2
  20. package/lib/CircleOcticon.d.ts +51 -51
  21. package/lib/DatePicker/DatePicker.d.ts +48 -0
  22. package/lib/DatePicker/DatePicker.js +106 -0
  23. package/lib/DatePicker/DatePickerAnchor.d.ts +5 -0
  24. package/lib/DatePicker/DatePickerAnchor.js +223 -0
  25. package/lib/DatePicker/DatePickerOverlay.d.ts +3 -0
  26. package/lib/DatePicker/DatePickerOverlay.js +48 -0
  27. package/lib/DatePicker/DatePickerPanel.d.ts +2 -0
  28. package/lib/DatePicker/DatePickerPanel.js +143 -0
  29. package/lib/DatePicker/Day.d.ts +14 -0
  30. package/lib/DatePicker/Day.js +192 -0
  31. package/lib/DatePicker/Month.d.ts +9 -0
  32. package/lib/DatePicker/Month.js +122 -0
  33. package/lib/DatePicker/dateParser.d.ts +11 -0
  34. package/lib/DatePicker/dateParser.js +192 -0
  35. package/lib/DatePicker/index.d.ts +2 -0
  36. package/lib/DatePicker/index.js +13 -0
  37. package/lib/DatePicker/useDatePicker.d.ts +89 -0
  38. package/lib/DatePicker/useDatePicker.js +439 -0
  39. package/lib/Dialog/Dialog.d.ts +4 -4
  40. package/lib/Dialog/Dialog.js +22 -12
  41. package/lib/Dialog.d.ts +54 -54
  42. package/lib/Dropdown.d.ts +245 -167
  43. package/lib/Dropdown.js +5 -6
  44. package/lib/DropdownMenu/DropdownButton.d.ts +50 -50
  45. package/lib/FilterList.d.ts +46 -46
  46. package/lib/Flash.d.ts +1 -1
  47. package/lib/Label.d.ts +1 -1
  48. package/lib/Position.d.ts +4 -4
  49. package/lib/ProgressBar.d.ts +1 -1
  50. package/lib/SelectMenu/SelectMenu.d.ts +273 -271
  51. package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
  52. package/lib/SelectMenu/SelectMenuModal.d.ts +1 -1
  53. package/lib/TextInputWithTokens.d.ts +35 -37
  54. package/lib/TextInputWithTokens.js +29 -102
  55. package/lib/Timeline.d.ts +52 -52
  56. package/lib/Token/AvatarToken.d.ts +1 -1
  57. package/lib/Token/IssueLabelToken.d.ts +1 -1
  58. package/lib/Token/Token.d.ts +1 -1
  59. package/lib/Token/Token.js +2 -13
  60. package/lib/Token/TokenBase.js +4 -0
  61. package/lib/Token/_RemoveTokenButton.js +2 -15
  62. package/lib/_TextInputWrapper.d.ts +1 -1
  63. package/lib/_TextInputWrapper.js +1 -1
  64. package/lib/constants.js +1 -3
  65. package/lib/hooks/useDebounce.d.ts +2 -0
  66. package/lib/hooks/useDebounce.js +24 -0
  67. package/lib/hooks/useResizeObserver.d.ts +1 -1
  68. package/lib/hooks/useResizeObserver.js +1 -1
  69. package/lib/index.d.ts +0 -2
  70. package/lib/index.js +0 -8
  71. package/lib/sx.d.ts +2 -8
  72. package/lib/theme-preval.js +2 -2
  73. package/lib/theme.d.ts +0 -78
  74. package/lib/theme.js +1 -3
  75. package/lib/utils/testing.d.ts +1 -1
  76. package/lib-esm/ActionList/Item.d.ts +0 -6
  77. package/lib-esm/ActionList/Item.js +1 -5
  78. package/lib-esm/ActionMenu.js +2 -2
  79. package/lib-esm/AnchoredOverlay/AnchoredOverlay.d.ts +4 -2
  80. package/lib-esm/Autocomplete/Autocomplete.d.ts +35 -33
  81. package/lib-esm/Autocomplete/AutocompleteInput.d.ts +35 -33
  82. package/lib-esm/Button/Button.d.ts +29 -29
  83. package/lib-esm/Button/ButtonBase.d.ts +1 -1
  84. package/lib-esm/Button/ButtonClose.d.ts +49 -49
  85. package/lib-esm/Button/ButtonDanger.d.ts +29 -29
  86. package/lib-esm/Button/ButtonInvisible.d.ts +29 -29
  87. package/lib-esm/Button/ButtonOutline.d.ts +29 -29
  88. package/lib-esm/Button/ButtonPrimary.d.ts +29 -29
  89. package/lib-esm/CircleBadge.d.ts +2 -2
  90. package/lib-esm/CircleOcticon.d.ts +51 -51
  91. package/lib-esm/DatePicker/DatePicker.d.ts +48 -0
  92. package/lib-esm/DatePicker/DatePicker.js +89 -0
  93. package/lib-esm/DatePicker/DatePickerAnchor.d.ts +5 -0
  94. package/lib-esm/DatePicker/DatePickerAnchor.js +196 -0
  95. package/lib-esm/DatePicker/DatePickerOverlay.d.ts +3 -0
  96. package/lib-esm/DatePicker/DatePickerOverlay.js +29 -0
  97. package/lib-esm/DatePicker/DatePickerPanel.d.ts +2 -0
  98. package/lib-esm/DatePicker/DatePickerPanel.js +116 -0
  99. package/lib-esm/DatePicker/Day.d.ts +14 -0
  100. package/lib-esm/DatePicker/Day.js +169 -0
  101. package/lib-esm/DatePicker/Month.d.ts +9 -0
  102. package/lib-esm/DatePicker/Month.js +98 -0
  103. package/lib-esm/DatePicker/dateParser.d.ts +11 -0
  104. package/lib-esm/DatePicker/dateParser.js +178 -0
  105. package/lib-esm/DatePicker/index.d.ts +2 -0
  106. package/lib-esm/DatePicker/index.js +1 -0
  107. package/lib-esm/DatePicker/useDatePicker.d.ts +89 -0
  108. package/lib-esm/DatePicker/useDatePicker.js +408 -0
  109. package/lib-esm/Dialog/Dialog.d.ts +4 -4
  110. package/lib-esm/Dialog/Dialog.js +21 -12
  111. package/lib-esm/Dialog.d.ts +54 -54
  112. package/lib-esm/Dropdown.d.ts +245 -167
  113. package/lib-esm/Dropdown.js +3 -4
  114. package/lib-esm/DropdownMenu/DropdownButton.d.ts +50 -50
  115. package/lib-esm/FilterList.d.ts +46 -46
  116. package/lib-esm/Flash.d.ts +1 -1
  117. package/lib-esm/Label.d.ts +1 -1
  118. package/lib-esm/Position.d.ts +4 -4
  119. package/lib-esm/ProgressBar.d.ts +1 -1
  120. package/lib-esm/SelectMenu/SelectMenu.d.ts +273 -271
  121. package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
  122. package/lib-esm/SelectMenu/SelectMenuModal.d.ts +1 -1
  123. package/lib-esm/TextInputWithTokens.d.ts +35 -37
  124. package/lib-esm/TextInputWithTokens.js +30 -101
  125. package/lib-esm/Timeline.d.ts +52 -52
  126. package/lib-esm/Token/AvatarToken.d.ts +1 -1
  127. package/lib-esm/Token/IssueLabelToken.d.ts +1 -1
  128. package/lib-esm/Token/Token.d.ts +1 -1
  129. package/lib-esm/Token/Token.js +2 -13
  130. package/lib-esm/Token/TokenBase.js +4 -0
  131. package/lib-esm/Token/_RemoveTokenButton.js +2 -11
  132. package/lib-esm/_TextInputWrapper.d.ts +1 -1
  133. package/lib-esm/_TextInputWrapper.js +1 -1
  134. package/lib-esm/constants.js +1 -3
  135. package/lib-esm/hooks/useDebounce.d.ts +2 -0
  136. package/lib-esm/hooks/useDebounce.js +16 -0
  137. package/lib-esm/hooks/useResizeObserver.d.ts +1 -1
  138. package/lib-esm/hooks/useResizeObserver.js +1 -1
  139. package/lib-esm/index.d.ts +0 -2
  140. package/lib-esm/index.js +0 -1
  141. package/lib-esm/sx.d.ts +2 -8
  142. package/lib-esm/theme-preval.js +2 -2
  143. package/lib-esm/theme.d.ts +0 -78
  144. package/lib-esm/theme.js +1 -2
  145. package/lib-esm/utils/testing.d.ts +1 -1
  146. package/package.json +14 -14
  147. package/lib/NewButton/button.d.ts +0 -581
  148. package/lib/NewButton/button.js +0 -332
  149. package/lib/NewButton/buttonStyles.d.ts +0 -2
  150. package/lib/NewButton/buttonStyles.js +0 -14
  151. package/lib/NewButton/counter.d.ts +0 -6
  152. package/lib/NewButton/counter.js +0 -34
  153. package/lib/NewButton/index.d.ts +0 -4
  154. package/lib/NewButton/index.js +0 -21
  155. package/lib/utils/types/KeyPaths.d.ts +0 -3
  156. package/lib/utils/types/KeyPaths.js +0 -1
  157. package/lib-esm/NewButton/button.d.ts +0 -581
  158. package/lib-esm/NewButton/button.js +0 -308
  159. package/lib-esm/NewButton/buttonStyles.d.ts +0 -2
  160. package/lib-esm/NewButton/buttonStyles.js +0 -3
  161. package/lib-esm/NewButton/counter.d.ts +0 -6
  162. package/lib-esm/NewButton/counter.js +0 -22
  163. package/lib-esm/NewButton/index.d.ts +0 -4
  164. package/lib-esm/NewButton/index.js +0 -3
  165. package/lib-esm/utils/types/KeyPaths.d.ts +0 -3
  166. package/lib-esm/utils/types/KeyPaths.js +0 -1
package/lib/index.js CHANGED
@@ -243,12 +243,6 @@ Object.defineProperty(exports, "ButtonGroup", {
243
243
  return _Button.ButtonGroup;
244
244
  }
245
245
  });
246
- Object.defineProperty(exports, "NewButton", {
247
- enumerable: true,
248
- get: function () {
249
- return _NewButton.default;
250
- }
251
- });
252
246
  Object.defineProperty(exports, "Caret", {
253
247
  enumerable: true,
254
248
  get: function () {
@@ -558,8 +552,6 @@ var _Breadcrumbs = _interopRequireWildcard(require("./Breadcrumbs"));
558
552
 
559
553
  var _Button = _interopRequireWildcard(require("./Button"));
560
554
 
561
- var _NewButton = _interopRequireDefault(require("./NewButton"));
562
-
563
555
  var _Caret = _interopRequireDefault(require("./Caret"));
564
556
 
565
557
  var _CircleBadge = _interopRequireDefault(require("./CircleBadge"));
package/lib/sx.d.ts CHANGED
@@ -1,12 +1,6 @@
1
- import { SystemCssProperties, SystemStyleObject } from '@styled-system/css';
2
- import { ThemeColorPaths, ThemeShadowPaths } from './theme';
3
- import { ColorProps, ShadowProps } from 'styled-system';
4
- export declare type BetterCssProperties = {
5
- [K in keyof SystemCssProperties]: K extends keyof ColorProps ? ThemeColorPaths | SystemCssProperties[K] : K extends keyof ShadowProps ? ThemeShadowPaths | SystemCssProperties[K] : SystemCssProperties[K];
6
- };
7
- export declare type BetterSystemStyleObject = BetterCssProperties | SystemStyleObject;
1
+ import { SystemStyleObject } from '@styled-system/css';
8
2
  export interface SxProp {
9
- sx?: BetterSystemStyleObject;
3
+ sx?: SystemStyleObject;
10
4
  }
11
5
  declare const sx: (props: SxProp) => import("@styled-system/css").CssFunctionReturnType;
12
6
  export default sx;
@@ -515,7 +515,7 @@ module.exports = {
515
515
  }
516
516
  }
517
517
  },
518
- "light_protanopia": {
518
+ "light_colorblind": {
519
519
  "colors": {
520
520
  "canvasDefaultTransparent": "rgba(255,255,255,0)",
521
521
  "marketingIcon": {
@@ -2456,7 +2456,7 @@ module.exports = {
2456
2456
  }
2457
2457
  }
2458
2458
  },
2459
- "dark_protanopia": {
2459
+ "dark_colorblind": {
2460
2460
  "colors": {
2461
2461
  "canvasDefaultTransparent": "rgba(13,17,23,0)",
2462
2462
  "marketingIcon": {
package/lib/theme.d.ts CHANGED
@@ -1,80 +1,2 @@
1
1
  import { theme } from './theme-preval';
2
- import { KeyPaths } from './utils/types/KeyPaths';
3
2
  export default theme;
4
- declare type ThemeColors = {
5
- fg: {
6
- default: string;
7
- muted: string;
8
- subtle: string;
9
- onEmphasis: string;
10
- };
11
- canvas: {
12
- default: string;
13
- overlay: string;
14
- inset: string;
15
- subtle: string;
16
- };
17
- border: {
18
- default: string;
19
- muted: string;
20
- subtle: string;
21
- };
22
- neutral: {
23
- emphasisPlus: string;
24
- emphasis: string;
25
- muted: string;
26
- subtle: string;
27
- };
28
- accent: {
29
- fg: string;
30
- emphasis: string;
31
- muted: string;
32
- subtle: string;
33
- };
34
- success: {
35
- fg: string;
36
- emphasis: string;
37
- muted: string;
38
- subtle: string;
39
- };
40
- attention: {
41
- fg: string;
42
- emphasis: string;
43
- muted: string;
44
- subtle: string;
45
- };
46
- severe: {
47
- fg: string;
48
- emphasis: string;
49
- muted: string;
50
- subtle: string;
51
- };
52
- danger: {
53
- fg: string;
54
- emphasis: string;
55
- muted: string;
56
- subtle: string;
57
- };
58
- done: {
59
- fg: string;
60
- emphasis: string;
61
- muted: string;
62
- subtle: string;
63
- };
64
- sponsors: {
65
- fg: string;
66
- emphasis: string;
67
- muted: string;
68
- subtle: string;
69
- };
70
- };
71
- declare type ThemeShadows = {
72
- shadow: {
73
- small: string;
74
- medium: string;
75
- large: string;
76
- extraLarge: string;
77
- };
78
- };
79
- export declare type ThemeColorPaths = KeyPaths<ThemeColors>;
80
- export declare type ThemeShadowPaths = KeyPaths<ThemeShadows>;
package/lib/theme.js CHANGED
@@ -7,7 +7,5 @@ exports.default = void 0;
7
7
 
8
8
  var _themePreval = require("./theme-preval");
9
9
 
10
- var _default = _themePreval.theme; // NOTE: for now, ThemeColors and ThemeShadows are handcrafted types. It would be nice if these
11
- // were exports from primitives (or a different shape but derived from those exports).
12
-
10
+ var _default = _themePreval.theme;
13
11
  exports.default = _default;
@@ -53,7 +53,7 @@ export declare function render(component: React.ReactElement, theme?: {
53
53
  xlarge: string;
54
54
  };
55
55
  space: string[];
56
- colorSchemes: Record<"light" | "light_protanopia" | "dark" | "dark_dimmed" | "dark_high_contrast" | "dark_protanopia", Record<"colors" | "shadows", Partial<{
56
+ colorSchemes: Record<"light" | "light_colorblind" | "dark" | "dark_dimmed" | "dark_high_contrast" | "dark_colorblind", Record<"colors" | "shadows", Partial<{
57
57
  canvasDefaultTransparent: string;
58
58
  marketingIcon: {
59
59
  primary: string;
@@ -28,19 +28,13 @@ export interface ItemProps extends SxProp {
28
28
  */
29
29
  leadingVisual?: React.FunctionComponent<IconProps>;
30
30
  /**
31
- * @deprecated Use `trailingVisual` instead
32
31
  * Icon (or similar) positioned after `Item` text.
33
32
  */
34
33
  trailingIcon?: React.FunctionComponent<IconProps>;
35
34
  /**
36
- * @deprecated Use `trailingVisual` instead
37
35
  * Text positioned after `Item` text and optional trailing icon.
38
36
  */
39
37
  trailingText?: string;
40
- /**
41
- * Icon or text positioned after `Item` text.
42
- */
43
- trailingVisual?: React.ReactNode;
44
38
  /**
45
39
  * Style variations associated with various `Item` types.
46
40
  *
@@ -154,7 +154,6 @@ export const Item = /*#__PURE__*/React.forwardRef((itemProps, ref) => {
154
154
  selectionVariant,
155
155
  leadingVisual: LeadingVisual,
156
156
  trailingIcon: TrailingIcon,
157
- trailingVisual: TrailingVisual,
158
157
  trailingText,
159
158
  variant = 'default',
160
159
  showDivider,
@@ -246,10 +245,7 @@ export const Item = /*#__PURE__*/React.forwardRef((itemProps, ref) => {
246
245
  title: description,
247
246
  inline: true,
248
247
  maxWidth: "100%"
249
- }, description)) : null), TrailingVisual ? /*#__PURE__*/React.createElement(TrailingContent, {
250
- variant: variant,
251
- disabled: disabled
252
- }, typeof TrailingVisual === 'function' ? /*#__PURE__*/React.createElement(TrailingVisual, null) : TrailingVisual) : TrailingIcon || trailingText ? /*#__PURE__*/React.createElement(TrailingContent, {
248
+ }, description)) : null), TrailingIcon || trailingText ? /*#__PURE__*/React.createElement(TrailingContent, {
253
249
  variant: variant,
254
250
  disabled: disabled
255
251
  }, trailingText, TrailingIcon && /*#__PURE__*/React.createElement(TrailingIcon, null)) : null));
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
3
3
  import { List } from './ActionList/List';
4
4
  import { Item } from './ActionList/Item';
5
5
  import { Divider } from './ActionList/Divider';
6
- import NewButton from './NewButton';
6
+ import Button from './Button';
7
7
  import React, { useCallback, useMemo } from 'react';
8
8
  import { AnchoredOverlay } from './AnchoredOverlay';
9
9
  import { useProvidedStateOrCreate } from './hooks/useProvidedStateOrCreate';
@@ -18,7 +18,7 @@ ActionMenuItem.displayName = 'ActionMenu.Item';
18
18
 
19
19
  const ActionMenuBase = ({
20
20
  anchorContent,
21
- renderAnchor = props => /*#__PURE__*/React.createElement(NewButton, props),
21
+ renderAnchor = props => /*#__PURE__*/React.createElement(Button, props),
22
22
  anchorRef: externalAnchorRef,
23
23
  onAction,
24
24
  open,
@@ -26,6 +26,8 @@ interface AnchoredOverlayPropsWithoutAnchor {
26
26
  */
27
27
  anchorRef: React.RefObject<HTMLElement>;
28
28
  }
29
+ export declare type OverlayOpenGesture = 'anchor-click' | 'anchor-key-press';
30
+ export declare type OverlayCloseGesture = 'anchor-click' | 'click-outside' | 'escape';
29
31
  export declare type AnchoredOverlayWrapperAnchorProps = Partial<AnchoredOverlayPropsWithAnchor> | AnchoredOverlayPropsWithoutAnchor;
30
32
  interface AnchoredOverlayBaseProps extends Pick<OverlayProps, 'height' | 'width'> {
31
33
  /**
@@ -35,11 +37,11 @@ interface AnchoredOverlayBaseProps extends Pick<OverlayProps, 'height' | 'width'
35
37
  /**
36
38
  * A callback which is called whenever the overlay is currently closed and an "open gesture" is detected.
37
39
  */
38
- onOpen?: (gesture: 'anchor-click' | 'anchor-key-press') => unknown;
40
+ onOpen?: (gesture: OverlayOpenGesture) => unknown;
39
41
  /**
40
42
  * A callback which is called whenever the overlay is currently open and a "close gesture" is detected.
41
43
  */
42
- onClose?: (gesture: 'anchor-click' | 'click-outside' | 'escape') => unknown;
44
+ onClose?: (gesture: OverlayCloseGesture) => unknown;
43
45
  /**
44
46
  * Props to be spread on the internal `Overlay` component.
45
47
  */
@@ -12,15 +12,17 @@ export type { AutocompleteOverlayProps } from './AutocompleteOverlay';
12
12
  declare const _default: React.FC<{
13
13
  id?: string | undefined;
14
14
  }> & {
15
- Input: import("@radix-ui/react-polymorphic").ForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<{
15
+ Input: import("@radix-ui/react-polymorphic").ForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<({
16
16
  [x: string]: any;
17
17
  [x: number]: any;
18
18
  } & {
19
19
  theme?: any;
20
- } & {
20
+ } & ({} | {
21
+ children?: React.ReactNode;
22
+ })) & {
21
23
  as?: string | React.ComponentType<any> | undefined;
22
24
  forwardedAs?: string | React.ComponentType<any> | undefined;
23
- }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "block" | "icon" | "theme" | "className" | "sx" | "disabled" | "variant" | "contrast"> & {
25
+ }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "disabled" | "variant" | "contrast"> & {
24
26
  className?: string | undefined;
25
27
  icon?: React.ComponentType<{
26
28
  className?: string | undefined;
@@ -32,11 +34,11 @@ declare const _default: React.FC<{
32
34
  translate?: "yes" | "no" | undefined;
33
35
  width?: import("styled-system").ResponsiveValue<import("csstype").Property.Width<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
34
36
  hidden?: boolean | undefined;
35
- style?: React.CSSProperties | undefined;
36
- block?: boolean | undefined;
37
+ children?: React.ReactNode;
38
+ ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
37
39
  slot?: string | undefined;
40
+ style?: React.CSSProperties | undefined;
38
41
  title?: string | undefined;
39
- ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
40
42
  key?: React.Key | null | undefined;
41
43
  defaultChecked?: boolean | undefined;
42
44
  defaultValue?: string | number | readonly string[] | undefined;
@@ -44,14 +46,14 @@ declare const _default: React.FC<{
44
46
  suppressHydrationWarning?: boolean | undefined;
45
47
  accessKey?: string | undefined;
46
48
  className?: string | undefined;
47
- contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
49
+ contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
48
50
  contextMenu?: string | undefined;
49
51
  dir?: string | undefined;
50
- draggable?: (boolean | "false" | "true") | undefined;
52
+ draggable?: (boolean | "true" | "false") | undefined;
51
53
  id?: string | undefined;
52
54
  lang?: string | undefined;
53
55
  placeholder?: string | undefined;
54
- spellCheck?: (boolean | "false" | "true") | undefined;
56
+ spellCheck?: (boolean | "true" | "false") | undefined;
55
57
  tabIndex?: number | undefined;
56
58
  radioGroup?: string | undefined;
57
59
  role?: React.AriaRole | undefined;
@@ -74,57 +76,56 @@ declare const _default: React.FC<{
74
76
  results?: number | undefined;
75
77
  security?: string | undefined;
76
78
  unselectable?: "on" | "off" | undefined;
77
- inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
79
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
78
80
  is?: string | undefined;
79
81
  'aria-activedescendant'?: string | undefined;
80
- 'aria-atomic'?: boolean | "false" | "true" | undefined;
81
- 'aria-autocomplete'?: "none" | "both" | "inline" | "list" | undefined;
82
- 'aria-busy'?: boolean | "false" | "true" | undefined;
83
- 'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
82
+ 'aria-atomic'?: boolean | "true" | "false" | undefined;
83
+ 'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
84
+ 'aria-busy'?: boolean | "true" | "false" | undefined;
85
+ 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
84
86
  'aria-colcount'?: number | undefined;
85
87
  'aria-colindex'?: number | undefined;
86
88
  'aria-colspan'?: number | undefined;
87
89
  'aria-controls'?: string | undefined;
88
- 'aria-current'?: boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date" | undefined;
90
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
89
91
  'aria-describedby'?: string | undefined;
90
92
  'aria-details'?: string | undefined;
91
- 'aria-disabled'?: boolean | "false" | "true" | undefined;
92
- 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
93
+ 'aria-disabled'?: boolean | "true" | "false" | undefined;
94
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
93
95
  'aria-errormessage'?: string | undefined;
94
- 'aria-expanded'?: boolean | "false" | "true" | undefined;
96
+ 'aria-expanded'?: boolean | "true" | "false" | undefined;
95
97
  'aria-flowto'?: string | undefined;
96
- 'aria-grabbed'?: boolean | "false" | "true" | undefined;
97
- 'aria-haspopup'?: boolean | "grid" | "listbox" | "menu" | "false" | "true" | "dialog" | "tree" | undefined;
98
- 'aria-hidden'?: boolean | "false" | "true" | undefined;
99
- 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
98
+ 'aria-grabbed'?: boolean | "true" | "false" | undefined;
99
+ 'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "tree" | "true" | "false" | undefined;
100
+ 'aria-hidden'?: boolean | "true" | "false" | undefined;
101
+ 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
100
102
  'aria-keyshortcuts'?: string | undefined;
101
103
  'aria-label'?: string | undefined;
102
104
  'aria-labelledby'?: string | undefined;
103
105
  'aria-level'?: number | undefined;
104
106
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
105
- 'aria-modal'?: boolean | "false" | "true" | undefined;
106
- 'aria-multiline'?: boolean | "false" | "true" | undefined;
107
- 'aria-multiselectable'?: boolean | "false" | "true" | undefined;
107
+ 'aria-modal'?: boolean | "true" | "false" | undefined;
108
+ 'aria-multiline'?: boolean | "true" | "false" | undefined;
109
+ 'aria-multiselectable'?: boolean | "true" | "false" | undefined;
108
110
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
109
111
  'aria-owns'?: string | undefined;
110
112
  'aria-placeholder'?: string | undefined;
111
113
  'aria-posinset'?: number | undefined;
112
- 'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
113
- 'aria-readonly'?: boolean | "false" | "true" | undefined;
114
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
115
+ 'aria-readonly'?: boolean | "true" | "false" | undefined;
114
116
  'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
115
- 'aria-required'?: boolean | "false" | "true" | undefined;
117
+ 'aria-required'?: boolean | "true" | "false" | undefined;
116
118
  'aria-roledescription'?: string | undefined;
117
119
  'aria-rowcount'?: number | undefined;
118
120
  'aria-rowindex'?: number | undefined;
119
121
  'aria-rowspan'?: number | undefined;
120
- 'aria-selected'?: boolean | "false" | "true" | undefined;
122
+ 'aria-selected'?: boolean | "true" | "false" | undefined;
121
123
  'aria-setsize'?: number | undefined;
122
124
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
123
125
  'aria-valuemax'?: number | undefined;
124
126
  'aria-valuemin'?: number | undefined;
125
127
  'aria-valuenow'?: number | undefined;
126
128
  'aria-valuetext'?: string | undefined;
127
- children?: React.ReactNode;
128
129
  dangerouslySetInnerHTML?: {
129
130
  __html: string;
130
131
  } | undefined;
@@ -288,14 +289,15 @@ declare const _default: React.FC<{
288
289
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLSpanElement> | undefined;
289
290
  onTransitionEnd?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
290
291
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
291
- sx?: import("../sx").BetterSystemStyleObject | undefined;
292
+ block?: boolean | undefined;
293
+ sx?: import("@styled-system/css").SystemStyleObject | undefined;
292
294
  disabled?: boolean | undefined;
293
- variant?: "small" | "large" | undefined;
295
+ variant?: "large" | "small" | undefined;
294
296
  hasIcon?: boolean | undefined;
295
297
  contrast?: boolean | undefined;
296
298
  } & {
297
299
  theme?: any;
298
- }, "maxWidth" | "minWidth" | "width" | "block" | "theme" | "sx" | "disabled" | "variant" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, {
300
+ }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "disabled" | "variant" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, {
299
301
  as?: React.ComponentType<any> | undefined;
300
302
  }>;
301
303
  Menu: typeof AutocompleteMenu;
@@ -4,15 +4,17 @@ import { ComponentProps } from '../utils/types';
4
4
  declare type InternalAutocompleteInputProps = {
5
5
  as?: React.ComponentType<any>;
6
6
  };
7
- declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<{
7
+ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<({
8
8
  [x: string]: any;
9
9
  [x: number]: any;
10
10
  } & {
11
11
  theme?: any;
12
- } & {
12
+ } & ({} | {
13
+ children?: React.ReactNode;
14
+ })) & {
13
15
  as?: string | React.ComponentType<any> | undefined;
14
16
  forwardedAs?: string | React.ComponentType<any> | undefined;
15
- }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "block" | "icon" | "theme" | "className" | "sx" | "disabled" | "variant" | "contrast"> & {
17
+ }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "disabled" | "variant" | "contrast"> & {
16
18
  className?: string | undefined;
17
19
  icon?: React.ComponentType<{
18
20
  className?: string | undefined;
@@ -24,11 +26,11 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
24
26
  translate?: "yes" | "no" | undefined;
25
27
  width?: import("styled-system").ResponsiveValue<import("csstype").Property.Width<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
26
28
  hidden?: boolean | undefined;
27
- style?: React.CSSProperties | undefined;
28
- block?: boolean | undefined;
29
+ children?: React.ReactNode;
30
+ ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
29
31
  slot?: string | undefined;
32
+ style?: React.CSSProperties | undefined;
30
33
  title?: string | undefined;
31
- ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
32
34
  key?: React.Key | null | undefined;
33
35
  defaultChecked?: boolean | undefined;
34
36
  defaultValue?: string | number | readonly string[] | undefined;
@@ -36,14 +38,14 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
36
38
  suppressHydrationWarning?: boolean | undefined;
37
39
  accessKey?: string | undefined;
38
40
  className?: string | undefined;
39
- contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
41
+ contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
40
42
  contextMenu?: string | undefined;
41
43
  dir?: string | undefined;
42
- draggable?: (boolean | "false" | "true") | undefined;
44
+ draggable?: (boolean | "true" | "false") | undefined;
43
45
  id?: string | undefined;
44
46
  lang?: string | undefined;
45
47
  placeholder?: string | undefined;
46
- spellCheck?: (boolean | "false" | "true") | undefined;
48
+ spellCheck?: (boolean | "true" | "false") | undefined;
47
49
  tabIndex?: number | undefined;
48
50
  radioGroup?: string | undefined;
49
51
  role?: React.AriaRole | undefined;
@@ -66,57 +68,56 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
66
68
  results?: number | undefined;
67
69
  security?: string | undefined;
68
70
  unselectable?: "on" | "off" | undefined;
69
- inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
71
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
70
72
  is?: string | undefined;
71
73
  'aria-activedescendant'?: string | undefined;
72
- 'aria-atomic'?: boolean | "false" | "true" | undefined;
73
- 'aria-autocomplete'?: "none" | "both" | "inline" | "list" | undefined;
74
- 'aria-busy'?: boolean | "false" | "true" | undefined;
75
- 'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
74
+ 'aria-atomic'?: boolean | "true" | "false" | undefined;
75
+ 'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
76
+ 'aria-busy'?: boolean | "true" | "false" | undefined;
77
+ 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
76
78
  'aria-colcount'?: number | undefined;
77
79
  'aria-colindex'?: number | undefined;
78
80
  'aria-colspan'?: number | undefined;
79
81
  'aria-controls'?: string | undefined;
80
- 'aria-current'?: boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date" | undefined;
82
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
81
83
  'aria-describedby'?: string | undefined;
82
84
  'aria-details'?: string | undefined;
83
- 'aria-disabled'?: boolean | "false" | "true" | undefined;
84
- 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
85
+ 'aria-disabled'?: boolean | "true" | "false" | undefined;
86
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
85
87
  'aria-errormessage'?: string | undefined;
86
- 'aria-expanded'?: boolean | "false" | "true" | undefined;
88
+ 'aria-expanded'?: boolean | "true" | "false" | undefined;
87
89
  'aria-flowto'?: string | undefined;
88
- 'aria-grabbed'?: boolean | "false" | "true" | undefined;
89
- 'aria-haspopup'?: boolean | "grid" | "listbox" | "menu" | "false" | "true" | "dialog" | "tree" | undefined;
90
- 'aria-hidden'?: boolean | "false" | "true" | undefined;
91
- 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
90
+ 'aria-grabbed'?: boolean | "true" | "false" | undefined;
91
+ 'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "tree" | "true" | "false" | undefined;
92
+ 'aria-hidden'?: boolean | "true" | "false" | undefined;
93
+ 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
92
94
  'aria-keyshortcuts'?: string | undefined;
93
95
  'aria-label'?: string | undefined;
94
96
  'aria-labelledby'?: string | undefined;
95
97
  'aria-level'?: number | undefined;
96
98
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
97
- 'aria-modal'?: boolean | "false" | "true" | undefined;
98
- 'aria-multiline'?: boolean | "false" | "true" | undefined;
99
- 'aria-multiselectable'?: boolean | "false" | "true" | undefined;
99
+ 'aria-modal'?: boolean | "true" | "false" | undefined;
100
+ 'aria-multiline'?: boolean | "true" | "false" | undefined;
101
+ 'aria-multiselectable'?: boolean | "true" | "false" | undefined;
100
102
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
101
103
  'aria-owns'?: string | undefined;
102
104
  'aria-placeholder'?: string | undefined;
103
105
  'aria-posinset'?: number | undefined;
104
- 'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
105
- 'aria-readonly'?: boolean | "false" | "true" | undefined;
106
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
107
+ 'aria-readonly'?: boolean | "true" | "false" | undefined;
106
108
  'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
107
- 'aria-required'?: boolean | "false" | "true" | undefined;
109
+ 'aria-required'?: boolean | "true" | "false" | undefined;
108
110
  'aria-roledescription'?: string | undefined;
109
111
  'aria-rowcount'?: number | undefined;
110
112
  'aria-rowindex'?: number | undefined;
111
113
  'aria-rowspan'?: number | undefined;
112
- 'aria-selected'?: boolean | "false" | "true" | undefined;
114
+ 'aria-selected'?: boolean | "true" | "false" | undefined;
113
115
  'aria-setsize'?: number | undefined;
114
116
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
115
117
  'aria-valuemax'?: number | undefined;
116
118
  'aria-valuemin'?: number | undefined;
117
119
  'aria-valuenow'?: number | undefined;
118
120
  'aria-valuetext'?: string | undefined;
119
- children?: React.ReactNode;
120
121
  dangerouslySetInnerHTML?: {
121
122
  __html: string;
122
123
  } | undefined;
@@ -280,13 +281,14 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
280
281
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLSpanElement> | undefined;
281
282
  onTransitionEnd?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
282
283
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
283
- sx?: import("../sx").BetterSystemStyleObject | undefined;
284
+ block?: boolean | undefined;
285
+ sx?: import("@styled-system/css").SystemStyleObject | undefined;
284
286
  disabled?: boolean | undefined;
285
- variant?: "small" | "large" | undefined;
287
+ variant?: "large" | "small" | undefined;
286
288
  hasIcon?: boolean | undefined;
287
289
  contrast?: boolean | undefined;
288
290
  } & {
289
291
  theme?: any;
290
- }, "maxWidth" | "minWidth" | "width" | "block" | "theme" | "sx" | "disabled" | "variant" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, InternalAutocompleteInputProps>;
292
+ }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "disabled" | "variant" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, InternalAutocompleteInputProps>;
291
293
  export declare type AutocompleteInputProps = ComponentProps<typeof AutocompleteInput>;
292
294
  export default AutocompleteInput;