@primer/components 0.0.0-20219265511 → 0.0.0-202192675438

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 (82) hide show
  1. package/CHANGELOG.md +14 -4
  2. package/dist/browser.esm.js +21 -21
  3. package/dist/browser.esm.js.map +1 -1
  4. package/dist/browser.umd.js +2 -2
  5. package/dist/browser.umd.js.map +1 -1
  6. package/lib/ActionList/Item.d.ts +6 -0
  7. package/lib/ActionList/Item.js +5 -1
  8. package/lib/Autocomplete/Autocomplete.d.ts +9 -9
  9. package/lib/Autocomplete/AutocompleteInput.d.ts +9 -9
  10. package/lib/Button/Button.d.ts +11 -11
  11. package/lib/Button/ButtonBase.d.ts +1 -1
  12. package/lib/Button/ButtonClose.d.ts +29 -29
  13. package/lib/Button/ButtonDanger.d.ts +11 -11
  14. package/lib/Button/ButtonInvisible.d.ts +11 -11
  15. package/lib/Button/ButtonOutline.d.ts +11 -11
  16. package/lib/Button/ButtonPrimary.d.ts +11 -11
  17. package/lib/Button/ButtonStyles.js +1 -1
  18. package/lib/CircleBadge.d.ts +2 -2
  19. package/lib/CircleOcticon.d.ts +33 -33
  20. package/lib/Dialog.d.ts +35 -35
  21. package/lib/Dropdown.d.ts +110 -110
  22. package/lib/DropdownMenu/DropdownButton.d.ts +30 -30
  23. package/lib/FilterList.d.ts +26 -26
  24. package/lib/Label.d.ts +1 -1
  25. package/lib/Position.d.ts +4 -4
  26. package/lib/ProgressBar.d.ts +1 -1
  27. package/lib/SelectMenu/SelectMenu.d.ts +149 -149
  28. package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
  29. package/lib/SelectMenu/SelectMenuModal.d.ts +1 -1
  30. package/lib/TextInputWithTokens.d.ts +9 -9
  31. package/lib/Timeline.d.ts +33 -33
  32. package/lib/Token/AvatarToken.d.ts +1 -1
  33. package/lib/Token/IssueLabelToken.d.ts +1 -1
  34. package/lib/Token/Token.d.ts +1 -1
  35. package/lib/_TextInputWrapper.d.ts +1 -1
  36. package/lib/constants.js +1 -3
  37. package/lib/utils/testing.d.ts +1 -1
  38. package/lib-esm/ActionList/Item.d.ts +6 -0
  39. package/lib-esm/ActionList/Item.js +5 -1
  40. package/lib-esm/Autocomplete/Autocomplete.d.ts +9 -9
  41. package/lib-esm/Autocomplete/AutocompleteInput.d.ts +9 -9
  42. package/lib-esm/Button/Button.d.ts +11 -11
  43. package/lib-esm/Button/ButtonBase.d.ts +1 -1
  44. package/lib-esm/Button/ButtonClose.d.ts +29 -29
  45. package/lib-esm/Button/ButtonDanger.d.ts +11 -11
  46. package/lib-esm/Button/ButtonInvisible.d.ts +11 -11
  47. package/lib-esm/Button/ButtonOutline.d.ts +11 -11
  48. package/lib-esm/Button/ButtonPrimary.d.ts +11 -11
  49. package/lib-esm/Button/ButtonStyles.js +1 -1
  50. package/lib-esm/CircleBadge.d.ts +2 -2
  51. package/lib-esm/CircleOcticon.d.ts +33 -33
  52. package/lib-esm/Dialog.d.ts +35 -35
  53. package/lib-esm/Dropdown.d.ts +110 -110
  54. package/lib-esm/DropdownMenu/DropdownButton.d.ts +30 -30
  55. package/lib-esm/FilterList.d.ts +26 -26
  56. package/lib-esm/Label.d.ts +1 -1
  57. package/lib-esm/Position.d.ts +4 -4
  58. package/lib-esm/ProgressBar.d.ts +1 -1
  59. package/lib-esm/SelectMenu/SelectMenu.d.ts +149 -149
  60. package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
  61. package/lib-esm/SelectMenu/SelectMenuModal.d.ts +1 -1
  62. package/lib-esm/TextInputWithTokens.d.ts +9 -9
  63. package/lib-esm/Timeline.d.ts +33 -33
  64. package/lib-esm/Token/AvatarToken.d.ts +1 -1
  65. package/lib-esm/Token/IssueLabelToken.d.ts +1 -1
  66. package/lib-esm/Token/Token.d.ts +1 -1
  67. package/lib-esm/_TextInputWrapper.d.ts +1 -1
  68. package/lib-esm/constants.js +1 -3
  69. package/lib-esm/utils/testing.d.ts +1 -1
  70. package/package.json +2 -1
  71. package/lib/NewButton/button.d.ts +0 -22
  72. package/lib/NewButton/button.js +0 -284
  73. package/lib/NewButton/counter.d.ts +0 -6
  74. package/lib/NewButton/counter.js +0 -33
  75. package/lib/NewButton/index.d.ts +0 -4
  76. package/lib/NewButton/index.js +0 -21
  77. package/lib-esm/NewButton/button.d.ts +0 -22
  78. package/lib-esm/NewButton/button.js +0 -261
  79. package/lib-esm/NewButton/counter.d.ts +0 -6
  80. package/lib-esm/NewButton/counter.js +0 -21
  81. package/lib-esm/NewButton/index.d.ts +0 -4
  82. package/lib-esm/NewButton/index.js +0 -3
@@ -28,13 +28,19 @@ export interface ItemProps extends SxProp {
28
28
  */
29
29
  leadingVisual?: React.FunctionComponent<IconProps>;
30
30
  /**
31
+ * @deprecated Use `trailingVisual` instead
31
32
  * Icon (or similar) positioned after `Item` text.
32
33
  */
33
34
  trailingIcon?: React.FunctionComponent<IconProps>;
34
35
  /**
36
+ * @deprecated Use `trailingVisual` instead
35
37
  * Text positioned after `Item` text and optional trailing icon.
36
38
  */
37
39
  trailingText?: string;
40
+ /**
41
+ * Icon or text positioned after `Item` text.
42
+ */
43
+ trailingVisual?: React.ReactNode;
38
44
  /**
39
45
  * Style variations associated with various `Item` types.
40
46
  *
@@ -187,6 +187,7 @@ const Item = /*#__PURE__*/_react.default.forwardRef((itemProps, ref) => {
187
187
  selectionVariant,
188
188
  leadingVisual: LeadingVisual,
189
189
  trailingIcon: TrailingIcon,
190
+ trailingVisual: TrailingVisual,
190
191
  trailingText,
191
192
  variant = 'default',
192
193
  showDivider,
@@ -278,7 +279,10 @@ const Item = /*#__PURE__*/_react.default.forwardRef((itemProps, ref) => {
278
279
  title: description,
279
280
  inline: true,
280
281
  maxWidth: "100%"
281
- }, description)) : null), TrailingIcon || trailingText ? /*#__PURE__*/_react.default.createElement(TrailingContent, {
282
+ }, description)) : null), TrailingVisual ? /*#__PURE__*/_react.default.createElement(TrailingContent, {
283
+ variant: variant,
284
+ disabled: disabled
285
+ }, typeof TrailingVisual === 'function' ? /*#__PURE__*/_react.default.createElement(TrailingVisual, null) : TrailingVisual) : TrailingIcon || trailingText ? /*#__PURE__*/_react.default.createElement(TrailingContent, {
282
286
  variant: variant,
283
287
  disabled: disabled
284
288
  }, trailingText, TrailingIcon && /*#__PURE__*/_react.default.createElement(TrailingIcon, null)) : null));
@@ -31,10 +31,12 @@ declare const _default: React.FC<{
31
31
  minWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
32
32
  translate?: "yes" | "no" | undefined;
33
33
  width?: import("styled-system").ResponsiveValue<import("csstype").Property.Width<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
34
+ hidden?: boolean | undefined;
35
+ children?: React.ReactNode;
36
+ ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
34
37
  slot?: string | undefined;
35
38
  style?: React.CSSProperties | undefined;
36
39
  title?: string | undefined;
37
- ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
38
40
  key?: React.Key | null | undefined;
39
41
  defaultChecked?: boolean | undefined;
40
42
  defaultValue?: string | number | readonly string[] | undefined;
@@ -42,11 +44,10 @@ declare const _default: React.FC<{
42
44
  suppressHydrationWarning?: boolean | undefined;
43
45
  accessKey?: string | undefined;
44
46
  className?: string | undefined;
45
- contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
47
+ contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
46
48
  contextMenu?: string | undefined;
47
49
  dir?: string | undefined;
48
50
  draggable?: (boolean | "true" | "false") | undefined;
49
- hidden?: boolean | undefined;
50
51
  id?: string | undefined;
51
52
  lang?: string | undefined;
52
53
  placeholder?: string | undefined;
@@ -73,11 +74,11 @@ declare const _default: React.FC<{
73
74
  results?: number | undefined;
74
75
  security?: string | undefined;
75
76
  unselectable?: "on" | "off" | undefined;
76
- inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
77
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
77
78
  is?: string | undefined;
78
79
  'aria-activedescendant'?: string | undefined;
79
80
  'aria-atomic'?: boolean | "true" | "false" | undefined;
80
- 'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
81
+ 'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
81
82
  'aria-busy'?: boolean | "true" | "false" | undefined;
82
83
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
83
84
  'aria-colcount'?: number | undefined;
@@ -88,12 +89,12 @@ declare const _default: React.FC<{
88
89
  'aria-describedby'?: string | undefined;
89
90
  'aria-details'?: string | undefined;
90
91
  'aria-disabled'?: boolean | "true" | "false" | undefined;
91
- 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
92
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
92
93
  'aria-errormessage'?: string | undefined;
93
94
  'aria-expanded'?: boolean | "true" | "false" | undefined;
94
95
  'aria-flowto'?: string | undefined;
95
96
  'aria-grabbed'?: boolean | "true" | "false" | undefined;
96
- 'aria-haspopup'?: boolean | "grid" | "dialog" | "listbox" | "menu" | "tree" | "true" | "false" | undefined;
97
+ 'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "tree" | "true" | "false" | undefined;
97
98
  'aria-hidden'?: boolean | "true" | "false" | undefined;
98
99
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
99
100
  'aria-keyshortcuts'?: string | undefined;
@@ -123,7 +124,6 @@ declare const _default: React.FC<{
123
124
  'aria-valuemin'?: number | undefined;
124
125
  'aria-valuenow'?: number | undefined;
125
126
  'aria-valuetext'?: string | undefined;
126
- children?: React.ReactNode;
127
127
  dangerouslySetInnerHTML?: {
128
128
  __html: string;
129
129
  } | undefined;
@@ -290,7 +290,7 @@ declare const _default: React.FC<{
290
290
  block?: boolean | undefined;
291
291
  sx?: import("@styled-system/css").SystemStyleObject | undefined;
292
292
  disabled?: boolean | undefined;
293
- variant?: "small" | "large" | undefined;
293
+ variant?: "large" | "small" | undefined;
294
294
  hasIcon?: boolean | undefined;
295
295
  contrast?: boolean | undefined;
296
296
  } & {
@@ -23,10 +23,12 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
23
23
  minWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
24
24
  translate?: "yes" | "no" | undefined;
25
25
  width?: import("styled-system").ResponsiveValue<import("csstype").Property.Width<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
26
+ hidden?: boolean | undefined;
27
+ children?: React.ReactNode;
28
+ ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
26
29
  slot?: string | undefined;
27
30
  style?: React.CSSProperties | undefined;
28
31
  title?: string | undefined;
29
- ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
30
32
  key?: React.Key | null | undefined;
31
33
  defaultChecked?: boolean | undefined;
32
34
  defaultValue?: string | number | readonly string[] | undefined;
@@ -34,11 +36,10 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
34
36
  suppressHydrationWarning?: boolean | undefined;
35
37
  accessKey?: string | undefined;
36
38
  className?: string | undefined;
37
- contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
39
+ contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
38
40
  contextMenu?: string | undefined;
39
41
  dir?: string | undefined;
40
42
  draggable?: (boolean | "true" | "false") | undefined;
41
- hidden?: boolean | undefined;
42
43
  id?: string | undefined;
43
44
  lang?: string | undefined;
44
45
  placeholder?: string | undefined;
@@ -65,11 +66,11 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
65
66
  results?: number | undefined;
66
67
  security?: string | undefined;
67
68
  unselectable?: "on" | "off" | undefined;
68
- inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
69
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
69
70
  is?: string | undefined;
70
71
  'aria-activedescendant'?: string | undefined;
71
72
  'aria-atomic'?: boolean | "true" | "false" | undefined;
72
- 'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
73
+ 'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
73
74
  'aria-busy'?: boolean | "true" | "false" | undefined;
74
75
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
75
76
  'aria-colcount'?: number | undefined;
@@ -80,12 +81,12 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
80
81
  'aria-describedby'?: string | undefined;
81
82
  'aria-details'?: string | undefined;
82
83
  'aria-disabled'?: boolean | "true" | "false" | undefined;
83
- 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
84
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
84
85
  'aria-errormessage'?: string | undefined;
85
86
  'aria-expanded'?: boolean | "true" | "false" | undefined;
86
87
  'aria-flowto'?: string | undefined;
87
88
  'aria-grabbed'?: boolean | "true" | "false" | undefined;
88
- 'aria-haspopup'?: boolean | "grid" | "dialog" | "listbox" | "menu" | "tree" | "true" | "false" | undefined;
89
+ 'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "tree" | "true" | "false" | undefined;
89
90
  'aria-hidden'?: boolean | "true" | "false" | undefined;
90
91
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
91
92
  'aria-keyshortcuts'?: string | undefined;
@@ -115,7 +116,6 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
115
116
  'aria-valuemin'?: number | undefined;
116
117
  'aria-valuenow'?: number | undefined;
117
118
  'aria-valuetext'?: string | undefined;
118
- children?: React.ReactNode;
119
119
  dangerouslySetInnerHTML?: {
120
120
  __html: string;
121
121
  } | undefined;
@@ -282,7 +282,7 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
282
282
  block?: boolean | undefined;
283
283
  sx?: import("@styled-system/css").SystemStyleObject | undefined;
284
284
  disabled?: boolean | undefined;
285
- variant?: "small" | "large" | undefined;
285
+ variant?: "large" | "small" | undefined;
286
286
  hasIcon?: boolean | undefined;
287
287
  contrast?: boolean | undefined;
288
288
  } & {
@@ -3,16 +3,19 @@ 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?: "small" | "large" | "medium" | undefined;
6
+ variant?: "large" | "medium" | "small" | undefined;
7
7
  } & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
8
8
  color?: string | undefined;
9
9
  fontSize?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
10
10
  translate?: "yes" | "no" | undefined;
11
+ hidden?: boolean | undefined;
12
+ children?: import("react").ReactNode;
13
+ value?: string | number | readonly string[] | undefined;
14
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
11
15
  form?: string | undefined;
12
16
  slot?: string | undefined;
13
17
  style?: import("react").CSSProperties | undefined;
14
18
  title?: string | undefined;
15
- ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
16
19
  type?: "button" | "reset" | "submit" | undefined;
17
20
  name?: string | undefined;
18
21
  key?: import("react").Key | null | undefined;
@@ -22,11 +25,10 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
22
25
  suppressHydrationWarning?: boolean | undefined;
23
26
  accessKey?: string | undefined;
24
27
  className?: string | undefined;
25
- contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
28
+ contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
26
29
  contextMenu?: string | undefined;
27
30
  dir?: string | undefined;
28
31
  draggable?: (boolean | "true" | "false") | undefined;
29
- hidden?: boolean | undefined;
30
32
  id?: string | undefined;
31
33
  lang?: string | undefined;
32
34
  placeholder?: string | undefined;
@@ -53,11 +55,11 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
53
55
  results?: number | undefined;
54
56
  security?: string | undefined;
55
57
  unselectable?: "on" | "off" | undefined;
56
- inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
58
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
57
59
  is?: string | undefined;
58
60
  'aria-activedescendant'?: string | undefined;
59
61
  'aria-atomic'?: boolean | "true" | "false" | undefined;
60
- 'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
62
+ 'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
61
63
  'aria-busy'?: boolean | "true" | "false" | undefined;
62
64
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
63
65
  'aria-colcount'?: number | undefined;
@@ -68,12 +70,12 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
68
70
  'aria-describedby'?: string | undefined;
69
71
  'aria-details'?: string | undefined;
70
72
  'aria-disabled'?: boolean | "true" | "false" | undefined;
71
- 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
73
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
72
74
  'aria-errormessage'?: string | undefined;
73
75
  'aria-expanded'?: boolean | "true" | "false" | undefined;
74
76
  'aria-flowto'?: string | undefined;
75
77
  'aria-grabbed'?: boolean | "true" | "false" | undefined;
76
- 'aria-haspopup'?: boolean | "grid" | "dialog" | "listbox" | "menu" | "tree" | "true" | "false" | undefined;
78
+ 'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "tree" | "true" | "false" | undefined;
77
79
  'aria-hidden'?: boolean | "true" | "false" | undefined;
78
80
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
79
81
  'aria-keyshortcuts'?: string | undefined;
@@ -103,7 +105,6 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
103
105
  'aria-valuemin'?: number | undefined;
104
106
  'aria-valuenow'?: number | undefined;
105
107
  'aria-valuetext'?: string | undefined;
106
- children?: import("react").ReactNode;
107
108
  dangerouslySetInnerHTML?: {
108
109
  __html: string;
109
110
  } | undefined;
@@ -267,7 +268,6 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
267
268
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
268
269
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
269
270
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
270
- value?: string | number | readonly string[] | undefined;
271
271
  autoFocus?: boolean | undefined;
272
272
  disabled?: boolean | undefined;
273
273
  formAction?: string | undefined;
@@ -275,8 +275,8 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
275
275
  formMethod?: string | undefined;
276
276
  formNoValidate?: boolean | undefined;
277
277
  formTarget?: string | undefined;
278
- variant?: "small" | "large" | "medium" | undefined;
279
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?: "small" | "large" | "medium" | undefined;
9
+ variant?: "large" | "medium" | "small" | 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;
@@ -26,30 +26,15 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
26
26
  margin?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
27
27
  overflow?: import("styled-system").ResponsiveValue<import("csstype").Property.Overflow, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
28
28
  padding?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
29
- bg?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
30
- m?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
31
- mt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
32
- mr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
33
- mb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
34
- ml?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
35
- mx?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
36
- marginX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
37
- my?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
38
- marginY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
39
- p?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
40
- pt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
41
- pr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
42
- pb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
43
- pl?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
44
- px?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
45
- paddingX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
46
- py?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
47
- paddingY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
29
+ hidden?: boolean | undefined;
30
+ children?: React.ReactNode;
31
+ value?: string | number | readonly string[] | undefined;
32
+ ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
48
33
  form?: string | undefined;
34
+ p?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
49
35
  slot?: string | undefined;
50
36
  style?: React.CSSProperties | undefined;
51
37
  title?: string | undefined;
52
- ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
53
38
  type?: "button" | "reset" | "submit" | undefined;
54
39
  name?: string | undefined;
55
40
  key?: React.Key | null | undefined;
@@ -59,11 +44,10 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
59
44
  suppressHydrationWarning?: boolean | undefined;
60
45
  accessKey?: string | undefined;
61
46
  className?: string | undefined;
62
- contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
47
+ contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
63
48
  contextMenu?: string | undefined;
64
49
  dir?: string | undefined;
65
50
  draggable?: (boolean | "true" | "false") | undefined;
66
- hidden?: boolean | undefined;
67
51
  id?: string | undefined;
68
52
  lang?: string | undefined;
69
53
  placeholder?: string | undefined;
@@ -90,11 +74,11 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
90
74
  results?: number | undefined;
91
75
  security?: string | undefined;
92
76
  unselectable?: "on" | "off" | undefined;
93
- inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
77
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
94
78
  is?: string | undefined;
95
79
  'aria-activedescendant'?: string | undefined;
96
80
  'aria-atomic'?: boolean | "true" | "false" | undefined;
97
- 'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
81
+ 'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
98
82
  'aria-busy'?: boolean | "true" | "false" | undefined;
99
83
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
100
84
  'aria-colcount'?: number | undefined;
@@ -105,12 +89,12 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
105
89
  'aria-describedby'?: string | undefined;
106
90
  'aria-details'?: string | undefined;
107
91
  'aria-disabled'?: boolean | "true" | "false" | undefined;
108
- 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
92
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
109
93
  'aria-errormessage'?: string | undefined;
110
94
  'aria-expanded'?: boolean | "true" | "false" | undefined;
111
95
  'aria-flowto'?: string | undefined;
112
96
  'aria-grabbed'?: boolean | "true" | "false" | undefined;
113
- 'aria-haspopup'?: boolean | "grid" | "dialog" | "listbox" | "menu" | "tree" | "true" | "false" | undefined;
97
+ 'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "tree" | "true" | "false" | undefined;
114
98
  'aria-hidden'?: boolean | "true" | "false" | undefined;
115
99
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
116
100
  'aria-keyshortcuts'?: string | undefined;
@@ -140,7 +124,6 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
140
124
  'aria-valuemin'?: number | undefined;
141
125
  'aria-valuenow'?: number | undefined;
142
126
  'aria-valuetext'?: string | undefined;
143
- children?: React.ReactNode;
144
127
  dangerouslySetInnerHTML?: {
145
128
  __html: string;
146
129
  } | undefined;
@@ -304,9 +287,26 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
304
287
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement> | undefined;
305
288
  onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
306
289
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
290
+ bg?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
291
+ m?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
292
+ mt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
293
+ mr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
294
+ mb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
295
+ ml?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
296
+ mx?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
297
+ marginX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
298
+ my?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
299
+ marginY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
300
+ pt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
301
+ pr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
302
+ pb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
303
+ pl?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
304
+ px?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
305
+ paddingX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
306
+ py?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
307
+ paddingY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
307
308
  size?: import("styled-system").ResponsiveValue<import("csstype").Property.Height<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
308
309
  sx?: import("@styled-system/css").SystemStyleObject | undefined;
309
- value?: string | number | readonly string[] | undefined;
310
310
  autoFocus?: boolean | undefined;
311
311
  disabled?: boolean | undefined;
312
312
  formAction?: string | undefined;
@@ -316,6 +316,6 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
316
316
  formTarget?: string | undefined;
317
317
  } & {
318
318
  theme?: any;
319
- }, "backgroundColor" | "color" | "display" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "verticalAlign" | "width" | "margin" | "overflow" | "padding" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "form" | "slot" | "style" | "title" | "theme" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "size" | "sx" | "value" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & React.RefAttributes<HTMLButtonElement>>;
319
+ }, "backgroundColor" | "color" | "display" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "verticalAlign" | "width" | "margin" | "overflow" | "padding" | "hidden" | "children" | "theme" | "value" | "form" | "p" | "slot" | "style" | "title" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "size" | "sx" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & React.RefAttributes<HTMLButtonElement>>;
320
320
  export declare type ButtonCloseProps = ComponentProps<typeof ButtonClose>;
321
321
  export default ButtonClose;
@@ -3,16 +3,19 @@ import { SxProp } from '../sx';
3
3
  import { ComponentProps } from '../utils/types';
4
4
  declare const ButtonDanger: import("styled-components").StyledComponent<"button", any, {
5
5
  as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
6
- variant?: "small" | "large" | "medium" | undefined;
6
+ variant?: "large" | "medium" | "small" | undefined;
7
7
  } & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
8
8
  color?: string | undefined;
9
9
  fontSize?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
10
10
  translate?: "yes" | "no" | undefined;
11
+ hidden?: boolean | undefined;
12
+ children?: import("react").ReactNode;
13
+ value?: string | number | readonly string[] | undefined;
14
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
11
15
  form?: string | undefined;
12
16
  slot?: string | undefined;
13
17
  style?: import("react").CSSProperties | undefined;
14
18
  title?: string | undefined;
15
- ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
16
19
  type?: "button" | "reset" | "submit" | undefined;
17
20
  name?: string | undefined;
18
21
  key?: import("react").Key | null | undefined;
@@ -22,11 +25,10 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
22
25
  suppressHydrationWarning?: boolean | undefined;
23
26
  accessKey?: string | undefined;
24
27
  className?: string | undefined;
25
- contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
28
+ contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
26
29
  contextMenu?: string | undefined;
27
30
  dir?: string | undefined;
28
31
  draggable?: (boolean | "true" | "false") | undefined;
29
- hidden?: boolean | undefined;
30
32
  id?: string | undefined;
31
33
  lang?: string | undefined;
32
34
  placeholder?: string | undefined;
@@ -53,11 +55,11 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
53
55
  results?: number | undefined;
54
56
  security?: string | undefined;
55
57
  unselectable?: "on" | "off" | undefined;
56
- inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
58
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
57
59
  is?: string | undefined;
58
60
  'aria-activedescendant'?: string | undefined;
59
61
  'aria-atomic'?: boolean | "true" | "false" | undefined;
60
- 'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
62
+ 'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
61
63
  'aria-busy'?: boolean | "true" | "false" | undefined;
62
64
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
63
65
  'aria-colcount'?: number | undefined;
@@ -68,12 +70,12 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
68
70
  'aria-describedby'?: string | undefined;
69
71
  'aria-details'?: string | undefined;
70
72
  'aria-disabled'?: boolean | "true" | "false" | undefined;
71
- 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
73
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
72
74
  'aria-errormessage'?: string | undefined;
73
75
  'aria-expanded'?: boolean | "true" | "false" | undefined;
74
76
  'aria-flowto'?: string | undefined;
75
77
  'aria-grabbed'?: boolean | "true" | "false" | undefined;
76
- 'aria-haspopup'?: boolean | "grid" | "dialog" | "listbox" | "menu" | "tree" | "true" | "false" | undefined;
78
+ 'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "tree" | "true" | "false" | undefined;
77
79
  'aria-hidden'?: boolean | "true" | "false" | undefined;
78
80
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
79
81
  'aria-keyshortcuts'?: string | undefined;
@@ -103,7 +105,6 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
103
105
  'aria-valuemin'?: number | undefined;
104
106
  'aria-valuenow'?: number | undefined;
105
107
  'aria-valuetext'?: string | undefined;
106
- children?: import("react").ReactNode;
107
108
  dangerouslySetInnerHTML?: {
108
109
  __html: string;
109
110
  } | undefined;
@@ -267,7 +268,6 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
267
268
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
268
269
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
269
270
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
270
- value?: string | number | readonly string[] | undefined;
271
271
  autoFocus?: boolean | undefined;
272
272
  disabled?: boolean | undefined;
273
273
  formAction?: string | undefined;
@@ -275,8 +275,8 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
275
275
  formMethod?: string | undefined;
276
276
  formNoValidate?: boolean | undefined;
277
277
  formTarget?: string | undefined;
278
- variant?: "small" | "large" | "medium" | undefined;
279
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>;