@primer/components 0.0.0-2021103235619 → 0.0.0-2021104151625

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/CHANGELOG.md +27 -1
  2. package/dist/browser.esm.js +509 -505
  3. package/dist/browser.esm.js.map +1 -1
  4. package/dist/browser.umd.js +112 -108
  5. package/dist/browser.umd.js.map +1 -1
  6. package/lib/ActionList/Header.js +1 -1
  7. package/lib/ActionList/Item.d.ts +6 -0
  8. package/lib/ActionList/Item.js +5 -1
  9. package/lib/ActionList2/Description.d.ts +12 -0
  10. package/lib/ActionList2/Description.js +53 -0
  11. package/lib/ActionList2/Divider.d.ts +5 -0
  12. package/lib/ActionList2/Divider.js +35 -0
  13. package/lib/ActionList2/Group.d.ts +11 -0
  14. package/lib/ActionList2/Group.js +57 -0
  15. package/lib/ActionList2/Header.d.ts +26 -0
  16. package/lib/ActionList2/Header.js +55 -0
  17. package/lib/ActionList2/Item.d.ts +67 -0
  18. package/lib/ActionList2/Item.js +221 -0
  19. package/lib/ActionList2/LinkItem.d.ts +17 -0
  20. package/lib/ActionList2/LinkItem.js +57 -0
  21. package/lib/ActionList2/List.d.ts +26 -0
  22. package/lib/ActionList2/List.js +51 -0
  23. package/lib/ActionList2/Selection.d.ts +5 -0
  24. package/lib/ActionList2/Selection.js +70 -0
  25. package/lib/ActionList2/Visuals.d.ts +11 -0
  26. package/lib/ActionList2/Visuals.js +90 -0
  27. package/lib/ActionList2/index.d.ts +40 -0
  28. package/lib/ActionList2/index.js +47 -0
  29. package/lib/AnchoredOverlay/AnchoredOverlay.d.ts +2 -4
  30. package/lib/Autocomplete/Autocomplete.d.ts +30 -32
  31. package/lib/Autocomplete/AutocompleteInput.d.ts +30 -32
  32. package/lib/Button/Button.d.ts +27 -27
  33. package/lib/Button/ButtonBase.d.ts +1 -1
  34. package/lib/Button/ButtonClose.d.ts +45 -45
  35. package/lib/Button/ButtonDanger.d.ts +27 -27
  36. package/lib/Button/ButtonInvisible.d.ts +27 -27
  37. package/lib/Button/ButtonOutline.d.ts +27 -27
  38. package/lib/Button/ButtonPrimary.d.ts +27 -27
  39. package/lib/CircleBadge.d.ts +2 -2
  40. package/lib/CircleOcticon.d.ts +43 -43
  41. package/lib/Dialog.d.ts +46 -46
  42. package/lib/Dropdown.d.ts +178 -178
  43. package/lib/DropdownMenu/DropdownButton.d.ts +47 -47
  44. package/lib/FilterList.d.ts +42 -42
  45. package/lib/Flash.d.ts +1 -1
  46. package/lib/Label.d.ts +1 -1
  47. package/lib/Position.d.ts +4 -4
  48. package/lib/ProgressBar.d.ts +1 -1
  49. package/lib/SelectMenu/SelectMenu.d.ts +246 -248
  50. package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
  51. package/lib/SelectMenu/SelectMenuModal.d.ts +1 -1
  52. package/lib/TextInputWithTokens.d.ts +34 -32
  53. package/lib/TextInputWithTokens.js +102 -29
  54. package/lib/Timeline.d.ts +44 -44
  55. package/lib/Token/AvatarToken.d.ts +1 -1
  56. package/lib/Token/IssueLabelToken.d.ts +1 -1
  57. package/lib/Token/Token.d.ts +1 -1
  58. package/lib/Token/Token.js +13 -2
  59. package/lib/Token/TokenBase.js +0 -4
  60. package/lib/Token/_RemoveTokenButton.js +15 -2
  61. package/lib/_TextInputWrapper.d.ts +1 -1
  62. package/lib/_TextInputWrapper.js +1 -1
  63. package/lib/experiments.d.ts +1 -0
  64. package/lib/experiments.js +18 -0
  65. package/lib/hooks/useResizeObserver.d.ts +1 -1
  66. package/lib/hooks/useResizeObserver.js +1 -1
  67. package/lib/sx.d.ts +10 -2
  68. package/lib/sx.js +8 -0
  69. package/lib/theme-preval.js +79 -0
  70. package/lib/theme.d.ts +78 -0
  71. package/lib/theme.js +3 -1
  72. package/lib/utils/create-slots.d.ts +17 -0
  73. package/lib/utils/create-slots.js +105 -0
  74. package/lib/utils/testing.d.ts +13 -0
  75. package/lib/utils/types/KeyPaths.d.ts +3 -0
  76. package/lib/utils/types/KeyPaths.js +1 -0
  77. package/lib/utils/use-force-update.d.ts +1 -0
  78. package/lib/utils/use-force-update.js +19 -0
  79. package/lib-esm/ActionList/Header.js +1 -1
  80. package/lib-esm/ActionList/Item.d.ts +6 -0
  81. package/lib-esm/ActionList/Item.js +5 -1
  82. package/lib-esm/ActionList2/Description.d.ts +12 -0
  83. package/lib-esm/ActionList2/Description.js +37 -0
  84. package/lib-esm/ActionList2/Divider.d.ts +5 -0
  85. package/lib-esm/ActionList2/Divider.js +23 -0
  86. package/lib-esm/ActionList2/Group.d.ts +11 -0
  87. package/lib-esm/ActionList2/Group.js +40 -0
  88. package/lib-esm/ActionList2/Header.d.ts +26 -0
  89. package/lib-esm/ActionList2/Header.js +44 -0
  90. package/lib-esm/ActionList2/Item.d.ts +67 -0
  91. package/lib-esm/ActionList2/Item.js +195 -0
  92. package/lib-esm/ActionList2/LinkItem.d.ts +17 -0
  93. package/lib-esm/ActionList2/LinkItem.js +43 -0
  94. package/lib-esm/ActionList2/List.d.ts +26 -0
  95. package/lib-esm/ActionList2/List.js +34 -0
  96. package/lib-esm/ActionList2/Selection.d.ts +5 -0
  97. package/lib-esm/ActionList2/Selection.js +52 -0
  98. package/lib-esm/ActionList2/Visuals.d.ts +11 -0
  99. package/lib-esm/ActionList2/Visuals.js +68 -0
  100. package/lib-esm/ActionList2/index.d.ts +40 -0
  101. package/lib-esm/ActionList2/index.js +33 -0
  102. package/lib-esm/AnchoredOverlay/AnchoredOverlay.d.ts +2 -4
  103. package/lib-esm/Autocomplete/Autocomplete.d.ts +30 -32
  104. package/lib-esm/Autocomplete/AutocompleteInput.d.ts +30 -32
  105. package/lib-esm/Button/Button.d.ts +27 -27
  106. package/lib-esm/Button/ButtonBase.d.ts +1 -1
  107. package/lib-esm/Button/ButtonClose.d.ts +45 -45
  108. package/lib-esm/Button/ButtonDanger.d.ts +27 -27
  109. package/lib-esm/Button/ButtonInvisible.d.ts +27 -27
  110. package/lib-esm/Button/ButtonOutline.d.ts +27 -27
  111. package/lib-esm/Button/ButtonPrimary.d.ts +27 -27
  112. package/lib-esm/CircleBadge.d.ts +2 -2
  113. package/lib-esm/CircleOcticon.d.ts +43 -43
  114. package/lib-esm/Dialog.d.ts +46 -46
  115. package/lib-esm/Dropdown.d.ts +178 -178
  116. package/lib-esm/DropdownMenu/DropdownButton.d.ts +47 -47
  117. package/lib-esm/FilterList.d.ts +42 -42
  118. package/lib-esm/Flash.d.ts +1 -1
  119. package/lib-esm/Label.d.ts +1 -1
  120. package/lib-esm/Position.d.ts +4 -4
  121. package/lib-esm/ProgressBar.d.ts +1 -1
  122. package/lib-esm/SelectMenu/SelectMenu.d.ts +246 -248
  123. package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
  124. package/lib-esm/SelectMenu/SelectMenuModal.d.ts +1 -1
  125. package/lib-esm/TextInputWithTokens.d.ts +34 -32
  126. package/lib-esm/TextInputWithTokens.js +101 -30
  127. package/lib-esm/Timeline.d.ts +44 -44
  128. package/lib-esm/Token/AvatarToken.d.ts +1 -1
  129. package/lib-esm/Token/IssueLabelToken.d.ts +1 -1
  130. package/lib-esm/Token/Token.d.ts +1 -1
  131. package/lib-esm/Token/Token.js +13 -2
  132. package/lib-esm/Token/TokenBase.js +0 -4
  133. package/lib-esm/Token/_RemoveTokenButton.js +11 -2
  134. package/lib-esm/_TextInputWrapper.d.ts +1 -1
  135. package/lib-esm/_TextInputWrapper.js +1 -1
  136. package/lib-esm/experiments.d.ts +1 -0
  137. package/lib-esm/experiments.js +2 -0
  138. package/lib-esm/hooks/useResizeObserver.d.ts +1 -1
  139. package/lib-esm/hooks/useResizeObserver.js +1 -1
  140. package/lib-esm/sx.d.ts +10 -2
  141. package/lib-esm/sx.js +3 -1
  142. package/lib-esm/theme-preval.js +79 -0
  143. package/lib-esm/theme.d.ts +78 -0
  144. package/lib-esm/theme.js +2 -1
  145. package/lib-esm/utils/create-slots.d.ts +17 -0
  146. package/lib-esm/utils/create-slots.js +84 -0
  147. package/lib-esm/utils/testing.d.ts +13 -0
  148. package/lib-esm/utils/types/KeyPaths.d.ts +3 -0
  149. package/lib-esm/utils/types/KeyPaths.js +1 -0
  150. package/lib-esm/utils/use-force-update.d.ts +1 -0
  151. package/lib-esm/utils/use-force-update.js +6 -0
  152. package/package.json +12 -9
  153. package/lib/DatePicker/DatePicker.d.ts +0 -52
  154. package/lib/DatePicker/DatePicker.js +0 -109
  155. package/lib/DatePicker/DatePickerAnchor.d.ts +0 -5
  156. package/lib/DatePicker/DatePickerAnchor.js +0 -202
  157. package/lib/DatePicker/DatePickerOverlay.d.ts +0 -3
  158. package/lib/DatePicker/DatePickerOverlay.js +0 -55
  159. package/lib/DatePicker/DatePickerPanel.d.ts +0 -2
  160. package/lib/DatePicker/DatePickerPanel.js +0 -363
  161. package/lib/DatePicker/Day.d.ts +0 -15
  162. package/lib/DatePicker/Day.js +0 -206
  163. package/lib/DatePicker/Month.d.ts +0 -8
  164. package/lib/DatePicker/Month.js +0 -122
  165. package/lib/DatePicker/dateParser.d.ts +0 -12
  166. package/lib/DatePicker/dateParser.js +0 -192
  167. package/lib/DatePicker/index.d.ts +0 -2
  168. package/lib/DatePicker/index.js +0 -13
  169. package/lib/DatePicker/useDatePicker.d.ts +0 -107
  170. package/lib/DatePicker/useDatePicker.js +0 -558
  171. package/lib/hooks/useDebounce.d.ts +0 -2
  172. package/lib/hooks/useDebounce.js +0 -24
  173. package/lib-esm/DatePicker/DatePicker.d.ts +0 -52
  174. package/lib-esm/DatePicker/DatePicker.js +0 -92
  175. package/lib-esm/DatePicker/DatePickerAnchor.d.ts +0 -5
  176. package/lib-esm/DatePicker/DatePickerAnchor.js +0 -174
  177. package/lib-esm/DatePicker/DatePickerOverlay.d.ts +0 -3
  178. package/lib-esm/DatePicker/DatePickerOverlay.js +0 -40
  179. package/lib-esm/DatePicker/DatePickerPanel.d.ts +0 -2
  180. package/lib-esm/DatePicker/DatePickerPanel.js +0 -332
  181. package/lib-esm/DatePicker/Day.d.ts +0 -15
  182. package/lib-esm/DatePicker/Day.js +0 -182
  183. package/lib-esm/DatePicker/Month.d.ts +0 -8
  184. package/lib-esm/DatePicker/Month.js +0 -98
  185. package/lib-esm/DatePicker/dateParser.d.ts +0 -12
  186. package/lib-esm/DatePicker/dateParser.js +0 -178
  187. package/lib-esm/DatePicker/index.d.ts +0 -2
  188. package/lib-esm/DatePicker/index.js +0 -1
  189. package/lib-esm/DatePicker/useDatePicker.d.ts +0 -107
  190. package/lib-esm/DatePicker/useDatePicker.js +0 -523
  191. package/lib-esm/hooks/useDebounce.d.ts +0 -2
  192. package/lib-esm/hooks/useDebounce.js +0 -16
@@ -12,17 +12,15 @@ export type { AutocompleteOverlayProps } from './AutocompleteOverlay';
12
12
  declare const _default: React.FC<{
13
13
  id?: string | undefined;
14
14
  }> & {
15
- Input: import("@radix-ui/react-polymorphic").ForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<({
15
+ Input: import("@radix-ui/react-polymorphic").ForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<{
16
16
  [x: string]: any;
17
17
  [x: number]: any;
18
18
  } & {
19
19
  theme?: any;
20
- } & ({} | {
21
- children?: React.ReactNode;
22
- })) & {
20
+ } & {
23
21
  as?: string | React.ComponentType<any> | undefined;
24
22
  forwardedAs?: string | React.ComponentType<any> | undefined;
25
- }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "disabled" | "variant" | "contrast"> & {
23
+ }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "icon" | "className" | "sx" | "variant" | "disabled" | "contrast"> & {
26
24
  className?: string | undefined;
27
25
  icon?: React.ComponentType<{
28
26
  className?: string | undefined;
@@ -39,6 +37,7 @@ declare const _default: React.FC<{
39
37
  slot?: string | undefined;
40
38
  style?: React.CSSProperties | undefined;
41
39
  title?: string | undefined;
40
+ block?: boolean | undefined;
42
41
  key?: React.Key | null | undefined;
43
42
  defaultChecked?: boolean | undefined;
44
43
  defaultValue?: string | number | readonly string[] | undefined;
@@ -46,14 +45,14 @@ declare const _default: React.FC<{
46
45
  suppressHydrationWarning?: boolean | undefined;
47
46
  accessKey?: string | undefined;
48
47
  className?: string | undefined;
49
- contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
48
+ contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
50
49
  contextMenu?: string | undefined;
51
50
  dir?: string | undefined;
52
- draggable?: (boolean | "true" | "false") | undefined;
51
+ draggable?: (boolean | "false" | "true") | undefined;
53
52
  id?: string | undefined;
54
53
  lang?: string | undefined;
55
54
  placeholder?: string | undefined;
56
- spellCheck?: (boolean | "true" | "false") | undefined;
55
+ spellCheck?: (boolean | "false" | "true") | undefined;
57
56
  tabIndex?: number | undefined;
58
57
  radioGroup?: string | undefined;
59
58
  role?: React.AriaRole | undefined;
@@ -76,50 +75,50 @@ declare const _default: React.FC<{
76
75
  results?: number | undefined;
77
76
  security?: string | undefined;
78
77
  unselectable?: "on" | "off" | undefined;
79
- inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
78
+ inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
80
79
  is?: string | undefined;
81
80
  'aria-activedescendant'?: string | undefined;
82
- 'aria-atomic'?: boolean | "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;
81
+ 'aria-atomic'?: boolean | "false" | "true" | undefined;
82
+ 'aria-autocomplete'?: "none" | "both" | "inline" | "list" | undefined;
83
+ 'aria-busy'?: boolean | "false" | "true" | undefined;
84
+ 'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
86
85
  'aria-colcount'?: number | undefined;
87
86
  'aria-colindex'?: number | undefined;
88
87
  'aria-colspan'?: number | undefined;
89
88
  'aria-controls'?: string | undefined;
90
- 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
89
+ 'aria-current'?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
91
90
  'aria-describedby'?: string | undefined;
92
91
  'aria-details'?: string | undefined;
93
- 'aria-disabled'?: boolean | "true" | "false" | undefined;
94
- 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
92
+ 'aria-disabled'?: boolean | "false" | "true" | undefined;
93
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
95
94
  'aria-errormessage'?: string | undefined;
96
- 'aria-expanded'?: boolean | "true" | "false" | undefined;
95
+ 'aria-expanded'?: boolean | "false" | "true" | undefined;
97
96
  'aria-flowto'?: string | 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;
97
+ 'aria-grabbed'?: boolean | "false" | "true" | undefined;
98
+ 'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "false" | "true" | "tree" | undefined;
99
+ 'aria-hidden'?: boolean | "false" | "true" | undefined;
100
+ 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
102
101
  'aria-keyshortcuts'?: string | undefined;
103
102
  'aria-label'?: string | undefined;
104
103
  'aria-labelledby'?: string | undefined;
105
104
  'aria-level'?: number | undefined;
106
105
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
107
- 'aria-modal'?: boolean | "true" | "false" | undefined;
108
- 'aria-multiline'?: boolean | "true" | "false" | undefined;
109
- 'aria-multiselectable'?: boolean | "true" | "false" | undefined;
106
+ 'aria-modal'?: boolean | "false" | "true" | undefined;
107
+ 'aria-multiline'?: boolean | "false" | "true" | undefined;
108
+ 'aria-multiselectable'?: boolean | "false" | "true" | undefined;
110
109
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
111
110
  'aria-owns'?: string | undefined;
112
111
  'aria-placeholder'?: string | undefined;
113
112
  'aria-posinset'?: number | undefined;
114
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
115
- 'aria-readonly'?: boolean | "true" | "false" | undefined;
113
+ 'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
114
+ 'aria-readonly'?: boolean | "false" | "true" | undefined;
116
115
  'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
117
- 'aria-required'?: boolean | "true" | "false" | undefined;
116
+ 'aria-required'?: boolean | "false" | "true" | undefined;
118
117
  'aria-roledescription'?: string | undefined;
119
118
  'aria-rowcount'?: number | undefined;
120
119
  'aria-rowindex'?: number | undefined;
121
120
  'aria-rowspan'?: number | undefined;
122
- 'aria-selected'?: boolean | "true" | "false" | undefined;
121
+ 'aria-selected'?: boolean | "false" | "true" | undefined;
123
122
  'aria-setsize'?: number | undefined;
124
123
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
125
124
  'aria-valuemax'?: number | undefined;
@@ -289,15 +288,14 @@ declare const _default: React.FC<{
289
288
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLSpanElement> | undefined;
290
289
  onTransitionEnd?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
291
290
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
292
- block?: boolean | undefined;
293
- sx?: import("@styled-system/css").SystemStyleObject | undefined;
291
+ sx?: import("../sx").BetterSystemStyleObject | undefined;
292
+ variant?: "small" | "large" | undefined;
294
293
  disabled?: boolean | undefined;
295
- variant?: "large" | "small" | undefined;
296
294
  hasIcon?: boolean | undefined;
297
295
  contrast?: boolean | undefined;
298
296
  } & {
299
297
  theme?: any;
300
- }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "disabled" | "variant" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, {
298
+ }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "variant" | "disabled" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, {
301
299
  as?: React.ComponentType<any> | undefined;
302
300
  }>;
303
301
  Menu: typeof AutocompleteMenu;
@@ -4,17 +4,15 @@ import { ComponentProps } from '../utils/types';
4
4
  declare type InternalAutocompleteInputProps = {
5
5
  as?: React.ComponentType<any>;
6
6
  };
7
- declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<({
7
+ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<{
8
8
  [x: string]: any;
9
9
  [x: number]: any;
10
10
  } & {
11
11
  theme?: any;
12
- } & ({} | {
13
- children?: React.ReactNode;
14
- })) & {
12
+ } & {
15
13
  as?: string | React.ComponentType<any> | undefined;
16
14
  forwardedAs?: string | React.ComponentType<any> | undefined;
17
- }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "disabled" | "variant" | "contrast"> & {
15
+ }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "icon" | "className" | "sx" | "variant" | "disabled" | "contrast"> & {
18
16
  className?: string | undefined;
19
17
  icon?: React.ComponentType<{
20
18
  className?: string | undefined;
@@ -31,6 +29,7 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
31
29
  slot?: string | undefined;
32
30
  style?: React.CSSProperties | undefined;
33
31
  title?: string | undefined;
32
+ block?: boolean | undefined;
34
33
  key?: React.Key | null | undefined;
35
34
  defaultChecked?: boolean | undefined;
36
35
  defaultValue?: string | number | readonly string[] | undefined;
@@ -38,14 +37,14 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
38
37
  suppressHydrationWarning?: boolean | undefined;
39
38
  accessKey?: string | undefined;
40
39
  className?: string | undefined;
41
- contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
40
+ contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
42
41
  contextMenu?: string | undefined;
43
42
  dir?: string | undefined;
44
- draggable?: (boolean | "true" | "false") | undefined;
43
+ draggable?: (boolean | "false" | "true") | undefined;
45
44
  id?: string | undefined;
46
45
  lang?: string | undefined;
47
46
  placeholder?: string | undefined;
48
- spellCheck?: (boolean | "true" | "false") | undefined;
47
+ spellCheck?: (boolean | "false" | "true") | undefined;
49
48
  tabIndex?: number | undefined;
50
49
  radioGroup?: string | undefined;
51
50
  role?: React.AriaRole | undefined;
@@ -68,50 +67,50 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
68
67
  results?: number | undefined;
69
68
  security?: string | undefined;
70
69
  unselectable?: "on" | "off" | undefined;
71
- inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
70
+ inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
72
71
  is?: string | undefined;
73
72
  'aria-activedescendant'?: string | undefined;
74
- 'aria-atomic'?: boolean | "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;
73
+ 'aria-atomic'?: boolean | "false" | "true" | undefined;
74
+ 'aria-autocomplete'?: "none" | "both" | "inline" | "list" | undefined;
75
+ 'aria-busy'?: boolean | "false" | "true" | undefined;
76
+ 'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
78
77
  'aria-colcount'?: number | undefined;
79
78
  'aria-colindex'?: number | undefined;
80
79
  'aria-colspan'?: number | undefined;
81
80
  'aria-controls'?: string | undefined;
82
- 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
81
+ 'aria-current'?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
83
82
  'aria-describedby'?: string | undefined;
84
83
  'aria-details'?: string | undefined;
85
- 'aria-disabled'?: boolean | "true" | "false" | undefined;
86
- 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
84
+ 'aria-disabled'?: boolean | "false" | "true" | undefined;
85
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
87
86
  'aria-errormessage'?: string | undefined;
88
- 'aria-expanded'?: boolean | "true" | "false" | undefined;
87
+ 'aria-expanded'?: boolean | "false" | "true" | undefined;
89
88
  'aria-flowto'?: string | 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;
89
+ 'aria-grabbed'?: boolean | "false" | "true" | undefined;
90
+ 'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "false" | "true" | "tree" | undefined;
91
+ 'aria-hidden'?: boolean | "false" | "true" | undefined;
92
+ 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
94
93
  'aria-keyshortcuts'?: string | undefined;
95
94
  'aria-label'?: string | undefined;
96
95
  'aria-labelledby'?: string | undefined;
97
96
  'aria-level'?: number | undefined;
98
97
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
99
- 'aria-modal'?: boolean | "true" | "false" | undefined;
100
- 'aria-multiline'?: boolean | "true" | "false" | undefined;
101
- 'aria-multiselectable'?: boolean | "true" | "false" | undefined;
98
+ 'aria-modal'?: boolean | "false" | "true" | undefined;
99
+ 'aria-multiline'?: boolean | "false" | "true" | undefined;
100
+ 'aria-multiselectable'?: boolean | "false" | "true" | undefined;
102
101
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
103
102
  'aria-owns'?: string | undefined;
104
103
  'aria-placeholder'?: string | undefined;
105
104
  'aria-posinset'?: number | undefined;
106
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
107
- 'aria-readonly'?: boolean | "true" | "false" | undefined;
105
+ 'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
106
+ 'aria-readonly'?: boolean | "false" | "true" | undefined;
108
107
  'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
109
- 'aria-required'?: boolean | "true" | "false" | undefined;
108
+ 'aria-required'?: boolean | "false" | "true" | undefined;
110
109
  'aria-roledescription'?: string | undefined;
111
110
  'aria-rowcount'?: number | undefined;
112
111
  'aria-rowindex'?: number | undefined;
113
112
  'aria-rowspan'?: number | undefined;
114
- 'aria-selected'?: boolean | "true" | "false" | undefined;
113
+ 'aria-selected'?: boolean | "false" | "true" | undefined;
115
114
  'aria-setsize'?: number | undefined;
116
115
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
117
116
  'aria-valuemax'?: number | undefined;
@@ -281,14 +280,13 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
281
280
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLSpanElement> | undefined;
282
281
  onTransitionEnd?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
283
282
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
284
- block?: boolean | undefined;
285
- sx?: import("@styled-system/css").SystemStyleObject | undefined;
283
+ sx?: import("../sx").BetterSystemStyleObject | undefined;
284
+ variant?: "small" | "large" | undefined;
286
285
  disabled?: boolean | undefined;
287
- variant?: "large" | "small" | undefined;
288
286
  hasIcon?: boolean | undefined;
289
287
  contrast?: boolean | undefined;
290
288
  } & {
291
289
  theme?: any;
292
- }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "disabled" | "variant" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, InternalAutocompleteInputProps>;
290
+ }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "variant" | "disabled" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, InternalAutocompleteInputProps>;
293
291
  export declare type AutocompleteInputProps = ComponentProps<typeof AutocompleteInput>;
294
292
  export default AutocompleteInput;
@@ -3,7 +3,7 @@ import { SxProp } from '../sx';
3
3
  import { ComponentProps } from '../utils/types';
4
4
  declare const Button: import("styled-components").StyledComponent<"button", any, {
5
5
  as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
6
- variant?: "large" | "medium" | "small" | undefined;
6
+ variant?: "small" | "medium" | "large" | undefined;
7
7
  } & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
8
8
  color?: string | undefined;
9
9
  fontSize?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
@@ -25,14 +25,14 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
25
25
  suppressHydrationWarning?: boolean | undefined;
26
26
  accessKey?: string | undefined;
27
27
  className?: string | undefined;
28
- contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
28
+ contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
29
29
  contextMenu?: string | undefined;
30
30
  dir?: string | undefined;
31
- draggable?: (boolean | "true" | "false") | undefined;
31
+ draggable?: (boolean | "false" | "true") | undefined;
32
32
  id?: string | undefined;
33
33
  lang?: string | undefined;
34
34
  placeholder?: string | undefined;
35
- spellCheck?: (boolean | "true" | "false") | undefined;
35
+ spellCheck?: (boolean | "false" | "true") | undefined;
36
36
  tabIndex?: number | undefined;
37
37
  radioGroup?: string | undefined;
38
38
  role?: import("react").AriaRole | undefined;
@@ -55,50 +55,50 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
55
55
  results?: number | undefined;
56
56
  security?: string | undefined;
57
57
  unselectable?: "on" | "off" | undefined;
58
- inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
58
+ inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
59
59
  is?: string | undefined;
60
60
  'aria-activedescendant'?: string | undefined;
61
- 'aria-atomic'?: boolean | "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;
61
+ 'aria-atomic'?: boolean | "false" | "true" | undefined;
62
+ 'aria-autocomplete'?: "none" | "both" | "inline" | "list" | undefined;
63
+ 'aria-busy'?: boolean | "false" | "true" | undefined;
64
+ 'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
65
65
  'aria-colcount'?: number | undefined;
66
66
  'aria-colindex'?: number | undefined;
67
67
  'aria-colspan'?: number | undefined;
68
68
  'aria-controls'?: string | undefined;
69
- 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
69
+ 'aria-current'?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
70
70
  'aria-describedby'?: string | undefined;
71
71
  'aria-details'?: string | undefined;
72
- 'aria-disabled'?: boolean | "true" | "false" | undefined;
73
- 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
72
+ 'aria-disabled'?: boolean | "false" | "true" | undefined;
73
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
74
74
  'aria-errormessage'?: string | undefined;
75
- 'aria-expanded'?: boolean | "true" | "false" | undefined;
75
+ 'aria-expanded'?: boolean | "false" | "true" | undefined;
76
76
  'aria-flowto'?: string | 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;
77
+ 'aria-grabbed'?: boolean | "false" | "true" | undefined;
78
+ 'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "false" | "true" | "tree" | undefined;
79
+ 'aria-hidden'?: boolean | "false" | "true" | undefined;
80
+ 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
81
81
  'aria-keyshortcuts'?: string | undefined;
82
82
  'aria-label'?: string | undefined;
83
83
  'aria-labelledby'?: string | undefined;
84
84
  'aria-level'?: number | undefined;
85
85
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
86
- 'aria-modal'?: boolean | "true" | "false" | undefined;
87
- 'aria-multiline'?: boolean | "true" | "false" | undefined;
88
- 'aria-multiselectable'?: boolean | "true" | "false" | undefined;
86
+ 'aria-modal'?: boolean | "false" | "true" | undefined;
87
+ 'aria-multiline'?: boolean | "false" | "true" | undefined;
88
+ 'aria-multiselectable'?: boolean | "false" | "true" | undefined;
89
89
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
90
90
  'aria-owns'?: string | undefined;
91
91
  'aria-placeholder'?: string | undefined;
92
92
  'aria-posinset'?: number | undefined;
93
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
94
- 'aria-readonly'?: boolean | "true" | "false" | undefined;
93
+ 'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
94
+ 'aria-readonly'?: boolean | "false" | "true" | undefined;
95
95
  'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
96
- 'aria-required'?: boolean | "true" | "false" | undefined;
96
+ 'aria-required'?: boolean | "false" | "true" | undefined;
97
97
  'aria-roledescription'?: string | undefined;
98
98
  'aria-rowcount'?: number | undefined;
99
99
  'aria-rowindex'?: number | undefined;
100
100
  'aria-rowspan'?: number | undefined;
101
- 'aria-selected'?: boolean | "true" | "false" | undefined;
101
+ 'aria-selected'?: boolean | "false" | "true" | undefined;
102
102
  'aria-setsize'?: number | undefined;
103
103
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
104
104
  'aria-valuemax'?: number | undefined;
@@ -268,15 +268,15 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
268
268
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
269
269
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
270
270
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
271
- autoFocus?: boolean | undefined;
271
+ variant?: "small" | "medium" | "large" | undefined;
272
+ as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
272
273
  disabled?: boolean | undefined;
274
+ autoFocus?: boolean | undefined;
273
275
  formAction?: string | undefined;
274
276
  formEncType?: string | undefined;
275
277
  formMethod?: string | undefined;
276
278
  formNoValidate?: boolean | undefined;
277
279
  formTarget?: string | undefined;
278
- as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
279
- variant?: "large" | "medium" | "small" | undefined;
280
280
  } & {
281
281
  theme?: any;
282
282
  } & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../constants").SystemCommonProps & import("../constants").SystemLayoutProps & SxProp, never>;
@@ -6,7 +6,7 @@ export declare const buttonSystemProps: import("styled-system").styleFn;
6
6
  export declare type ButtonSystemProps = FontSizeProps & SystemCommonProps & SystemLayoutProps;
7
7
  declare const ButtonBase: import("styled-components").StyledComponent<"button", any, {
8
8
  as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
9
- variant?: "large" | "medium" | "small" | undefined;
9
+ variant?: "small" | "medium" | "large" | undefined;
10
10
  } & FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, never>;
11
11
  export declare type ButtonBaseProps = ComponentProps<typeof ButtonBase>;
12
12
  export default ButtonBase;