@primer/components 0.0.0-202192822657 → 0.0.0-2021929142717

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 +23 -1
  2. package/dist/browser.esm.js +53 -49
  3. package/dist/browser.esm.js.map +1 -1
  4. package/dist/browser.umd.js +50 -46
  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/ActionList2/Description.d.ts +6 -0
  9. package/lib/ActionList2/Description.js +53 -0
  10. package/lib/ActionList2/Divider.d.ts +5 -0
  11. package/lib/ActionList2/Divider.js +33 -0
  12. package/lib/ActionList2/Group.d.ts +11 -0
  13. package/lib/ActionList2/Group.js +55 -0
  14. package/lib/ActionList2/Header.d.ts +26 -0
  15. package/lib/ActionList2/Header.js +55 -0
  16. package/lib/ActionList2/Item.d.ts +48 -0
  17. package/lib/ActionList2/Item.js +204 -0
  18. package/lib/ActionList2/List.d.ts +26 -0
  19. package/lib/ActionList2/List.js +56 -0
  20. package/lib/ActionList2/Selection.d.ts +5 -0
  21. package/lib/ActionList2/Selection.js +73 -0
  22. package/lib/ActionList2/Visuals.d.ts +11 -0
  23. package/lib/ActionList2/Visuals.js +90 -0
  24. package/lib/ActionList2/hacks.d.ts +30 -0
  25. package/lib/ActionList2/hacks.js +38 -0
  26. package/lib/ActionList2/index.d.ts +28 -0
  27. package/lib/ActionList2/index.js +42 -0
  28. package/lib/AnchoredOverlay/AnchoredOverlay.d.ts +2 -4
  29. package/lib/Autocomplete/Autocomplete.d.ts +6 -8
  30. package/lib/Autocomplete/AutocompleteInput.d.ts +6 -8
  31. package/lib/Button/Button.d.ts +4 -4
  32. package/lib/Button/ButtonClose.d.ts +21 -21
  33. package/lib/Button/ButtonDanger.d.ts +4 -4
  34. package/lib/Button/ButtonInvisible.d.ts +4 -4
  35. package/lib/Button/ButtonOutline.d.ts +4 -4
  36. package/lib/Button/ButtonPrimary.d.ts +4 -4
  37. package/lib/CircleOcticon.d.ts +19 -19
  38. package/lib/Dialog.d.ts +21 -21
  39. package/lib/Dropdown.d.ts +82 -82
  40. package/lib/DropdownMenu/DropdownButton.d.ts +23 -23
  41. package/lib/FilterList.d.ts +19 -19
  42. package/lib/Position.d.ts +4 -4
  43. package/lib/SelectMenu/SelectMenu.d.ts +105 -107
  44. package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
  45. package/lib/SelectMenu/SelectMenuModal.d.ts +1 -1
  46. package/lib/TextInputWithTokens.d.ts +10 -8
  47. package/lib/TextInputWithTokens.js +102 -29
  48. package/lib/Timeline.d.ts +19 -19
  49. package/lib/Token/AvatarToken.d.ts +1 -1
  50. package/lib/Token/IssueLabelToken.d.ts +1 -1
  51. package/lib/Token/Token.d.ts +1 -1
  52. package/lib/Token/Token.js +13 -2
  53. package/lib/Token/TokenBase.js +0 -4
  54. package/lib/Token/_RemoveTokenButton.js +15 -2
  55. package/lib/_TextInputWrapper.js +1 -1
  56. package/lib/experiments.d.ts +1 -0
  57. package/lib/experiments.js +18 -0
  58. package/lib/sx.d.ts +2 -0
  59. package/lib/sx.js +8 -0
  60. package/lib/theme-preval.js +2 -2
  61. package/lib/utils/create-slots.d.ts +17 -0
  62. package/lib/utils/create-slots.js +105 -0
  63. package/lib/utils/testing.d.ts +1 -1
  64. package/lib/utils/use-force-update.d.ts +1 -0
  65. package/lib/utils/use-force-update.js +19 -0
  66. package/lib-esm/ActionList/Item.d.ts +6 -0
  67. package/lib-esm/ActionList/Item.js +5 -1
  68. package/lib-esm/ActionList2/Description.d.ts +6 -0
  69. package/lib-esm/ActionList2/Description.js +37 -0
  70. package/lib-esm/ActionList2/Divider.d.ts +5 -0
  71. package/lib-esm/ActionList2/Divider.js +21 -0
  72. package/lib-esm/ActionList2/Group.d.ts +11 -0
  73. package/lib-esm/ActionList2/Group.js +38 -0
  74. package/lib-esm/ActionList2/Header.d.ts +26 -0
  75. package/lib-esm/ActionList2/Header.js +45 -0
  76. package/lib-esm/ActionList2/Item.d.ts +48 -0
  77. package/lib-esm/ActionList2/Item.js +176 -0
  78. package/lib-esm/ActionList2/List.d.ts +26 -0
  79. package/lib-esm/ActionList2/List.js +38 -0
  80. package/lib-esm/ActionList2/Selection.d.ts +5 -0
  81. package/lib-esm/ActionList2/Selection.js +55 -0
  82. package/lib-esm/ActionList2/Visuals.d.ts +11 -0
  83. package/lib-esm/ActionList2/Visuals.js +68 -0
  84. package/lib-esm/ActionList2/hacks.d.ts +30 -0
  85. package/lib-esm/ActionList2/hacks.js +30 -0
  86. package/lib-esm/ActionList2/index.d.ts +28 -0
  87. package/lib-esm/ActionList2/index.js +29 -0
  88. package/lib-esm/AnchoredOverlay/AnchoredOverlay.d.ts +2 -4
  89. package/lib-esm/Autocomplete/Autocomplete.d.ts +6 -8
  90. package/lib-esm/Autocomplete/AutocompleteInput.d.ts +6 -8
  91. package/lib-esm/Button/Button.d.ts +4 -4
  92. package/lib-esm/Button/ButtonClose.d.ts +21 -21
  93. package/lib-esm/Button/ButtonDanger.d.ts +4 -4
  94. package/lib-esm/Button/ButtonInvisible.d.ts +4 -4
  95. package/lib-esm/Button/ButtonOutline.d.ts +4 -4
  96. package/lib-esm/Button/ButtonPrimary.d.ts +4 -4
  97. package/lib-esm/CircleOcticon.d.ts +19 -19
  98. package/lib-esm/Dialog.d.ts +21 -21
  99. package/lib-esm/Dropdown.d.ts +82 -82
  100. package/lib-esm/DropdownMenu/DropdownButton.d.ts +23 -23
  101. package/lib-esm/FilterList.d.ts +19 -19
  102. package/lib-esm/Position.d.ts +4 -4
  103. package/lib-esm/SelectMenu/SelectMenu.d.ts +105 -107
  104. package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
  105. package/lib-esm/SelectMenu/SelectMenuModal.d.ts +1 -1
  106. package/lib-esm/TextInputWithTokens.d.ts +10 -8
  107. package/lib-esm/TextInputWithTokens.js +101 -30
  108. package/lib-esm/Timeline.d.ts +19 -19
  109. package/lib-esm/Token/AvatarToken.d.ts +1 -1
  110. package/lib-esm/Token/IssueLabelToken.d.ts +1 -1
  111. package/lib-esm/Token/Token.d.ts +1 -1
  112. package/lib-esm/Token/Token.js +13 -2
  113. package/lib-esm/Token/TokenBase.js +0 -4
  114. package/lib-esm/Token/_RemoveTokenButton.js +11 -2
  115. package/lib-esm/_TextInputWrapper.js +1 -1
  116. package/lib-esm/experiments.d.ts +1 -0
  117. package/lib-esm/experiments.js +2 -0
  118. package/lib-esm/sx.d.ts +2 -0
  119. package/lib-esm/sx.js +3 -1
  120. package/lib-esm/theme-preval.js +2 -2
  121. package/lib-esm/utils/create-slots.d.ts +17 -0
  122. package/lib-esm/utils/create-slots.js +84 -0
  123. package/lib-esm/utils/testing.d.ts +1 -1
  124. package/lib-esm/utils/use-force-update.d.ts +1 -0
  125. package/lib-esm/utils/use-force-update.js +6 -0
  126. package/package.json +16 -14
  127. package/lib/DatePicker/DatePicker.d.ts +0 -48
  128. package/lib/DatePicker/DatePicker.js +0 -106
  129. package/lib/DatePicker/DatePickerAnchor.d.ts +0 -5
  130. package/lib/DatePicker/DatePickerAnchor.js +0 -194
  131. package/lib/DatePicker/DatePickerOverlay.d.ts +0 -3
  132. package/lib/DatePicker/DatePickerOverlay.js +0 -48
  133. package/lib/DatePicker/DatePickerPanel.d.ts +0 -2
  134. package/lib/DatePicker/DatePickerPanel.js +0 -126
  135. package/lib/DatePicker/Day.d.ts +0 -14
  136. package/lib/DatePicker/Day.js +0 -190
  137. package/lib/DatePicker/Month.d.ts +0 -9
  138. package/lib/DatePicker/Month.js +0 -120
  139. package/lib/DatePicker/dateParser.d.ts +0 -11
  140. package/lib/DatePicker/dateParser.js +0 -188
  141. package/lib/DatePicker/index.d.ts +0 -2
  142. package/lib/DatePicker/index.js +0 -13
  143. package/lib/DatePicker/useDatePicker.d.ts +0 -89
  144. package/lib/DatePicker/useDatePicker.js +0 -370
  145. package/lib/hooks/useDebounce.d.ts +0 -2
  146. package/lib/hooks/useDebounce.js +0 -24
  147. package/lib-esm/DatePicker/DatePicker.d.ts +0 -48
  148. package/lib-esm/DatePicker/DatePicker.js +0 -89
  149. package/lib-esm/DatePicker/DatePickerAnchor.d.ts +0 -5
  150. package/lib-esm/DatePicker/DatePickerAnchor.js +0 -167
  151. package/lib-esm/DatePicker/DatePickerOverlay.d.ts +0 -3
  152. package/lib-esm/DatePicker/DatePickerOverlay.js +0 -29
  153. package/lib-esm/DatePicker/DatePickerPanel.d.ts +0 -2
  154. package/lib-esm/DatePicker/DatePickerPanel.js +0 -100
  155. package/lib-esm/DatePicker/Day.d.ts +0 -14
  156. package/lib-esm/DatePicker/Day.js +0 -167
  157. package/lib-esm/DatePicker/Month.d.ts +0 -9
  158. package/lib-esm/DatePicker/Month.js +0 -96
  159. package/lib-esm/DatePicker/dateParser.d.ts +0 -11
  160. package/lib-esm/DatePicker/dateParser.js +0 -174
  161. package/lib-esm/DatePicker/index.d.ts +0 -2
  162. package/lib-esm/DatePicker/index.js +0 -1
  163. package/lib-esm/DatePicker/useDatePicker.d.ts +0 -89
  164. package/lib-esm/DatePicker/useDatePicker.js +0 -339
  165. package/lib-esm/hooks/useDebounce.d.ts +0 -2
  166. package/lib-esm/hooks/useDebounce.js +0 -16
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Selection = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _octiconsReact = require("@primer/octicons-react");
11
+
12
+ var _List = require("./List");
13
+
14
+ var _Group = require("./Group");
15
+
16
+ var _Visuals = require("./Visuals");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
+
20
+ const Selection = ({
21
+ selected,
22
+ disabled
23
+ }) => {
24
+ const {
25
+ selectionVariant: listSelectionVariant
26
+ } = _react.default.useContext(_List.ListContext);
27
+
28
+ const {
29
+ selectionVariant: groupSelectionVariant
30
+ } = _react.default.useContext(_Group.GroupContext);
31
+ /** selectionVariant in Group can override the selectionVariant in List root */
32
+
33
+
34
+ const selectionVariant = typeof groupSelectionVariant !== 'undefined' ? groupSelectionVariant : listSelectionVariant; // if selectionVariant is not set on List, don't show selection
35
+
36
+ if (!selectionVariant) {
37
+ // to avoid confusion, fail loudly instead of silently ignoring
38
+ if (selected) throw new Error('For Item to be selected, List needs to have a selectionVariant defined');
39
+ return null;
40
+ }
41
+
42
+ if (selectionVariant === 'single') {
43
+ return /*#__PURE__*/_react.default.createElement(_Visuals.LeadingVisualContainer, null, selected && /*#__PURE__*/_react.default.createElement(_octiconsReact.CheckIcon, null));
44
+ }
45
+ /**
46
+ * selectionVariant is multiple
47
+ * readOnly is required because we are doing a one-way bind to `checked`
48
+ * aria-readonly="false" tells screen that they can still interact with the checkbox
49
+ * TODO: not sure if disabled & aria-label be here or should we apply it on the instance as props
50
+ * TODO: aria-label should come from the text part of the slot
51
+ */
52
+
53
+
54
+ return /*#__PURE__*/_react.default.createElement(_Visuals.LeadingVisualContainer, {
55
+ sx: {
56
+ input: {
57
+ margin: 0,
58
+ pointerEvents: 'none'
59
+ }
60
+ }
61
+ }, /*#__PURE__*/_react.default.createElement("input", {
62
+ type: "checkbox",
63
+ checked: selected,
64
+ disabled: disabled,
65
+ "aria-label": "TODO",
66
+ tabIndex: -1,
67
+ readOnly: true,
68
+ "aria-readonly": "false"
69
+ }));
70
+ };
71
+
72
+ exports.Selection = Selection;
73
+ Selection.displayName = "Selection";
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { SxProp } from '../sx';
3
+ declare type VisualProps = SxProp & {
4
+ children: React.ReactNode;
5
+ };
6
+ export declare const LeadingVisualContainer: React.FC<SxProp>;
7
+ export declare type LeadingVisualProps = VisualProps;
8
+ export declare const LeadingVisual: React.FC<VisualProps>;
9
+ export declare type TrailingVisualProps = VisualProps;
10
+ export declare const TrailingVisual: React.FC<VisualProps>;
11
+ export {};
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TrailingVisual = exports.LeadingVisual = exports.LeadingVisualContainer = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _Box = _interopRequireDefault(require("../Box"));
11
+
12
+ var _sx = require("../sx");
13
+
14
+ var _constants = require("../constants");
15
+
16
+ var _Item = require("./Item");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
+
20
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
+
22
+ const LeadingVisualContainer = ({
23
+ sx = {},
24
+ ...props
25
+ }) => {
26
+ return /*#__PURE__*/_react.default.createElement(_Box.default, _extends({
27
+ as: "span",
28
+ sx: (0, _sx.merge)({
29
+ height: '20px',
30
+ // match height of text row
31
+ minWidth: (0, _constants.get)('space.3'),
32
+ maxWidth: '20px',
33
+ // square (same as height)
34
+ display: 'flex',
35
+ justifyContent: 'center',
36
+ alignItems: 'center',
37
+ flexShrink: 0,
38
+ marginRight: 2
39
+ }, sx)
40
+ }, props));
41
+ };
42
+
43
+ exports.LeadingVisualContainer = LeadingVisualContainer;
44
+ LeadingVisualContainer.displayName = "LeadingVisualContainer";
45
+
46
+ const LeadingVisual = ({
47
+ sx = {},
48
+ ...props
49
+ }) => {
50
+ return /*#__PURE__*/_react.default.createElement(_Item.Slot, {
51
+ name: "LeadingVisual"
52
+ }, ({
53
+ variant,
54
+ disabled
55
+ }) => /*#__PURE__*/_react.default.createElement(LeadingVisualContainer, _extends({
56
+ sx: (0, _sx.merge)({
57
+ color: (0, _Item.getVariantStyles)(variant, disabled).iconColor,
58
+ svg: {
59
+ fontSize: 0
60
+ }
61
+ }, sx)
62
+ }, props), props.children));
63
+ };
64
+
65
+ exports.LeadingVisual = LeadingVisual;
66
+ LeadingVisual.displayName = "LeadingVisual";
67
+
68
+ const TrailingVisual = ({
69
+ sx = {},
70
+ ...props
71
+ }) => {
72
+ return /*#__PURE__*/_react.default.createElement(_Item.Slot, {
73
+ name: "TrailingVisual"
74
+ }, ({
75
+ variant,
76
+ disabled
77
+ }) => /*#__PURE__*/_react.default.createElement(_Box.default, _extends({
78
+ as: "span",
79
+ sx: (0, _sx.merge)({
80
+ height: '20px',
81
+ // match height of text row
82
+ flexShrink: 0,
83
+ color: (0, _Item.getVariantStyles)(variant, disabled).annotationColor,
84
+ marginLeft: 2
85
+ }, sx)
86
+ }, props), props.children));
87
+ };
88
+
89
+ exports.TrailingVisual = TrailingVisual;
90
+ TrailingVisual.displayName = "TrailingVisual";
@@ -0,0 +1,30 @@
1
+ /**
2
+ * These colors are not yet in our default theme.
3
+ * TODO: Need to remove this once they are added.
4
+ */
5
+ export declare const customItemThemes: {
6
+ default: {
7
+ hover: {
8
+ light: string;
9
+ dark: string;
10
+ dark_dimmed: string;
11
+ };
12
+ focus: {
13
+ light: string;
14
+ dark: string;
15
+ dark_dimmed: string;
16
+ };
17
+ };
18
+ danger: {
19
+ hover: {
20
+ light: string;
21
+ dark: string;
22
+ dark_dimmed: string;
23
+ };
24
+ focus: {
25
+ light: string;
26
+ dark: string;
27
+ dark_dimmed: string;
28
+ };
29
+ };
30
+ };
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.customItemThemes = void 0;
7
+
8
+ /**
9
+ * These colors are not yet in our default theme.
10
+ * TODO: Need to remove this once they are added.
11
+ */
12
+ const customItemThemes = {
13
+ default: {
14
+ hover: {
15
+ light: 'rgba(46, 77, 108, 0.06)',
16
+ dark: 'rgba(201, 206, 212, 0.12)',
17
+ dark_dimmed: 'rgba(201, 206, 212, 0.12)'
18
+ },
19
+ focus: {
20
+ light: 'rgba(54, 77, 100, 0.16)',
21
+ dark: 'rgba(201, 206, 212, 0.24)',
22
+ dark_dimmed: 'rgba(201, 206, 212, 0.24)'
23
+ }
24
+ },
25
+ danger: {
26
+ hover: {
27
+ light: 'rgba(234, 74, 90, 0.08)',
28
+ dark: 'rgba(248, 81, 73, 0.16)',
29
+ dark_dimmed: 'rgba(248, 81, 73, 0.16)'
30
+ },
31
+ focus: {
32
+ light: 'rgba(234, 74, 90, 0.14)',
33
+ dark: 'rgba(248, 81, 73, 0.24)',
34
+ dark_dimmed: 'rgba(248, 81, 73, 0.24)'
35
+ }
36
+ }
37
+ };
38
+ exports.customItemThemes = customItemThemes;
@@ -0,0 +1,28 @@
1
+ /// <reference types="react" />
2
+ import { Divider } from './Divider';
3
+ export type { ListProps as ActionListProps } from './List';
4
+ export type { GroupProps } from './Group';
5
+ export type { ItemProps } from './Item';
6
+ export type { DescriptionProps } from './Description';
7
+ export type { LeadingVisualProps, TrailingVisualProps } from './Visuals';
8
+ /**
9
+ * Collection of list-related components.
10
+ */
11
+ export declare const ActionList: import("@radix-ui/react-polymorphic").ForwardRefComponent<"ul", import("./List").ListProps> & {
12
+ /** Collects related `Items` in an `ActionList`. */
13
+ Group: import("react").FC<import("./Group").GroupProps>;
14
+ /** An actionable or selectable `Item` */
15
+ Item: import("@radix-ui/react-polymorphic").ForwardRefComponent<"li", import("./Item").ItemProps>;
16
+ /** Visually separates `Item`s or `Group`s in an `ActionList`. */
17
+ Divider: typeof Divider;
18
+ /** Secondary text which provides additional information about an `Item`. */
19
+ Description: import("react").FC<import("./Description").DescriptionProps>;
20
+ /** Icon (or similar) positioned before `Item` text. */
21
+ LeadingVisual: import("react").FC<import("../sx").SxProp & {
22
+ children: import("react").ReactNode;
23
+ }>;
24
+ /** Icon (or similar) positioned after `Item` text. */
25
+ TrailingVisual: import("react").FC<import("../sx").SxProp & {
26
+ children: import("react").ReactNode;
27
+ }>;
28
+ };
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ActionList = void 0;
7
+
8
+ var _List = require("./List");
9
+
10
+ var _Group = require("./Group");
11
+
12
+ var _Item = require("./Item");
13
+
14
+ var _Divider = require("./Divider");
15
+
16
+ var _Description = require("./Description");
17
+
18
+ var _Visuals = require("./Visuals");
19
+
20
+ /**
21
+ * Collection of list-related components.
22
+ */
23
+ const ActionList = Object.assign(_List.List, {
24
+ /** Collects related `Items` in an `ActionList`. */
25
+ Group: _Group.Group,
26
+
27
+ /** An actionable or selectable `Item` */
28
+ Item: _Item.Item,
29
+
30
+ /** Visually separates `Item`s or `Group`s in an `ActionList`. */
31
+ Divider: _Divider.Divider,
32
+
33
+ /** Secondary text which provides additional information about an `Item`. */
34
+ Description: _Description.Description,
35
+
36
+ /** Icon (or similar) positioned before `Item` text. */
37
+ LeadingVisual: _Visuals.LeadingVisual,
38
+
39
+ /** Icon (or similar) positioned after `Item` text. */
40
+ TrailingVisual: _Visuals.TrailingVisual
41
+ });
42
+ exports.ActionList = ActionList;
@@ -26,8 +26,6 @@ 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';
31
29
  export declare type AnchoredOverlayWrapperAnchorProps = Partial<AnchoredOverlayPropsWithAnchor> | AnchoredOverlayPropsWithoutAnchor;
32
30
  interface AnchoredOverlayBaseProps extends Pick<OverlayProps, 'height' | 'width'> {
33
31
  /**
@@ -37,11 +35,11 @@ interface AnchoredOverlayBaseProps extends Pick<OverlayProps, 'height' | 'width'
37
35
  /**
38
36
  * A callback which is called whenever the overlay is currently closed and an "open gesture" is detected.
39
37
  */
40
- onOpen?: (gesture: OverlayOpenGesture) => unknown;
38
+ onOpen?: (gesture: 'anchor-click' | 'anchor-key-press') => unknown;
41
39
  /**
42
40
  * A callback which is called whenever the overlay is currently open and a "close gesture" is detected.
43
41
  */
44
- onClose?: (gesture: OverlayCloseGesture) => unknown;
42
+ onClose?: (gesture: 'anchor-click' | 'click-outside' | 'escape') => unknown;
45
43
  /**
46
44
  * Props to be spread on the internal `Overlay` component.
47
45
  */
@@ -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" | "className" | "block" | "icon" | "sx" | "variant" | "disabled" | "contrast"> & {
26
24
  className?: string | undefined;
27
25
  icon?: React.ComponentType<{
28
26
  className?: string | undefined;
@@ -91,7 +89,7 @@ declare const _default: React.FC<{
91
89
  'aria-describedby'?: string | undefined;
92
90
  'aria-details'?: string | undefined;
93
91
  'aria-disabled'?: boolean | "true" | "false" | undefined;
94
- 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
92
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "move" | "execute" | "popup" | undefined;
95
93
  'aria-errormessage'?: string | undefined;
96
94
  'aria-expanded'?: boolean | "true" | "false" | undefined;
97
95
  'aria-flowto'?: string | undefined;
@@ -291,13 +289,13 @@ declare const _default: React.FC<{
291
289
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
292
290
  block?: boolean | undefined;
293
291
  sx?: import("@styled-system/css").SystemStyleObject | undefined;
294
- disabled?: boolean | undefined;
295
292
  variant?: "large" | "small" | undefined;
293
+ disabled?: boolean | 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" | "className" | "block" | "icon" | "sx" | "variant" | "disabled" | "contrast"> & {
18
16
  className?: string | undefined;
19
17
  icon?: React.ComponentType<{
20
18
  className?: string | undefined;
@@ -83,7 +81,7 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
83
81
  'aria-describedby'?: string | undefined;
84
82
  'aria-details'?: string | undefined;
85
83
  'aria-disabled'?: boolean | "true" | "false" | undefined;
86
- 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
84
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "move" | "execute" | "popup" | undefined;
87
85
  'aria-errormessage'?: string | undefined;
88
86
  'aria-expanded'?: boolean | "true" | "false" | undefined;
89
87
  'aria-flowto'?: string | undefined;
@@ -283,12 +281,12 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
283
281
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
284
282
  block?: boolean | undefined;
285
283
  sx?: import("@styled-system/css").SystemStyleObject | undefined;
286
- disabled?: boolean | undefined;
287
284
  variant?: "large" | "small" | undefined;
285
+ disabled?: boolean | 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;
@@ -70,7 +70,7 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
70
70
  'aria-describedby'?: string | undefined;
71
71
  'aria-details'?: string | undefined;
72
72
  'aria-disabled'?: boolean | "true" | "false" | undefined;
73
- 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
73
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "move" | "execute" | "popup" | undefined;
74
74
  'aria-errormessage'?: string | undefined;
75
75
  'aria-expanded'?: boolean | "true" | "false" | undefined;
76
76
  'aria-flowto'?: string | 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?: "large" | "medium" | "small" | 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>;
@@ -35,6 +35,24 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
35
35
  slot?: string | undefined;
36
36
  style?: React.CSSProperties | undefined;
37
37
  title?: string | undefined;
38
+ bg?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
39
+ m?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
40
+ mt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
41
+ mr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
42
+ mb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
43
+ ml?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
44
+ mx?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
45
+ marginX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
46
+ my?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
47
+ marginY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
48
+ pt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
49
+ pr?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
50
+ pb?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
51
+ pl?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
52
+ px?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
53
+ paddingX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
54
+ py?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
55
+ paddingY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
38
56
  type?: "button" | "reset" | "submit" | undefined;
39
57
  name?: string | undefined;
40
58
  key?: React.Key | null | undefined;
@@ -89,7 +107,7 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
89
107
  'aria-describedby'?: string | undefined;
90
108
  'aria-details'?: string | undefined;
91
109
  'aria-disabled'?: boolean | "true" | "false" | undefined;
92
- 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
110
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "move" | "execute" | "popup" | undefined;
93
111
  'aria-errormessage'?: string | undefined;
94
112
  'aria-expanded'?: boolean | "true" | "false" | undefined;
95
113
  'aria-flowto'?: string | undefined;
@@ -287,28 +305,10 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
287
305
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement> | undefined;
288
306
  onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
289
307
  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;
308
308
  size?: import("styled-system").ResponsiveValue<import("csstype").Property.Height<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
309
309
  sx?: import("@styled-system/css").SystemStyleObject | undefined;
310
- autoFocus?: boolean | undefined;
311
310
  disabled?: boolean | undefined;
311
+ autoFocus?: boolean | undefined;
312
312
  formAction?: string | undefined;
313
313
  formEncType?: string | undefined;
314
314
  formMethod?: 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" | "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>>;
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" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "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" | "size" | "sx" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & React.RefAttributes<HTMLButtonElement>>;
320
320
  export declare type ButtonCloseProps = ComponentProps<typeof ButtonClose>;
321
321
  export default ButtonClose;
@@ -70,7 +70,7 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
70
70
  'aria-describedby'?: string | undefined;
71
71
  'aria-details'?: string | undefined;
72
72
  'aria-disabled'?: boolean | "true" | "false" | undefined;
73
- 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
73
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "move" | "execute" | "popup" | undefined;
74
74
  'aria-errormessage'?: string | undefined;
75
75
  'aria-expanded'?: boolean | "true" | "false" | undefined;
76
76
  'aria-flowto'?: string | undefined;
@@ -268,15 +268,15 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
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?: "large" | "medium" | "small" | 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>;
@@ -70,7 +70,7 @@ declare const ButtonInvisible: import("styled-components").StyledComponent<"butt
70
70
  'aria-describedby'?: string | undefined;
71
71
  'aria-details'?: string | undefined;
72
72
  'aria-disabled'?: boolean | "true" | "false" | undefined;
73
- 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
73
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "move" | "execute" | "popup" | undefined;
74
74
  'aria-errormessage'?: string | undefined;
75
75
  'aria-expanded'?: boolean | "true" | "false" | undefined;
76
76
  'aria-flowto'?: string | undefined;
@@ -268,15 +268,15 @@ declare const ButtonInvisible: import("styled-components").StyledComponent<"butt
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?: "large" | "medium" | "small" | 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>;