@primer/components 0.0.0-202192711645 → 0.0.0-2021927173554

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 (118) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/dist/browser.esm.js +615 -615
  3. package/dist/browser.esm.js.map +1 -1
  4. package/dist/browser.umd.js +176 -176
  5. package/dist/browser.umd.js.map +1 -1
  6. package/lib/Autocomplete/Autocomplete.d.ts +8 -8
  7. package/lib/Autocomplete/AutocompleteInput.d.ts +8 -8
  8. package/lib/Button/Button.d.ts +6 -6
  9. package/lib/Button/ButtonBase.d.ts +1 -1
  10. package/lib/Button/ButtonClose.d.ts +5 -5
  11. package/lib/Button/ButtonDanger.d.ts +6 -6
  12. package/lib/Button/ButtonInvisible.d.ts +6 -6
  13. package/lib/Button/ButtonOutline.d.ts +6 -6
  14. package/lib/Button/ButtonPrimary.d.ts +6 -6
  15. package/lib/CircleBadge.d.ts +2 -2
  16. package/lib/CircleOcticon.d.ts +4 -4
  17. package/lib/Dialog.d.ts +4 -4
  18. package/lib/Dropdown.d.ts +18 -18
  19. package/lib/DropdownMenu/DropdownButton.d.ts +7 -7
  20. package/lib/FilterList.d.ts +3 -3
  21. package/lib/Flash.d.ts +1 -1
  22. package/lib/Label.d.ts +1 -1
  23. package/lib/Position.d.ts +4 -4
  24. package/lib/ProgressBar.d.ts +1 -1
  25. package/lib/SelectMenu/SelectMenu.d.ts +28 -28
  26. package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
  27. package/lib/TextInputWithTokens.d.ts +8 -8
  28. package/lib/Timeline.d.ts +4 -4
  29. package/lib/Token/AvatarToken.d.ts +1 -1
  30. package/lib/Token/IssueLabelToken.d.ts +1 -1
  31. package/lib/Token/Token.d.ts +1 -1
  32. package/lib/_TextInputWrapper.d.ts +1 -1
  33. package/lib/index.d.ts +0 -1
  34. package/lib/index.js +0 -8
  35. package/lib/sx.d.ts +8 -4
  36. package/lib/sx.js +0 -8
  37. package/lib/theme.d.ts +100 -0
  38. package/lib-esm/Autocomplete/Autocomplete.d.ts +8 -8
  39. package/lib-esm/Autocomplete/AutocompleteInput.d.ts +8 -8
  40. package/lib-esm/Button/Button.d.ts +6 -6
  41. package/lib-esm/Button/ButtonBase.d.ts +1 -1
  42. package/lib-esm/Button/ButtonClose.d.ts +5 -5
  43. package/lib-esm/Button/ButtonDanger.d.ts +6 -6
  44. package/lib-esm/Button/ButtonInvisible.d.ts +6 -6
  45. package/lib-esm/Button/ButtonOutline.d.ts +6 -6
  46. package/lib-esm/Button/ButtonPrimary.d.ts +6 -6
  47. package/lib-esm/CircleBadge.d.ts +2 -2
  48. package/lib-esm/CircleOcticon.d.ts +4 -4
  49. package/lib-esm/Dialog.d.ts +4 -4
  50. package/lib-esm/Dropdown.d.ts +18 -18
  51. package/lib-esm/DropdownMenu/DropdownButton.d.ts +7 -7
  52. package/lib-esm/FilterList.d.ts +3 -3
  53. package/lib-esm/Flash.d.ts +1 -1
  54. package/lib-esm/Label.d.ts +1 -1
  55. package/lib-esm/Position.d.ts +4 -4
  56. package/lib-esm/ProgressBar.d.ts +1 -1
  57. package/lib-esm/SelectMenu/SelectMenu.d.ts +28 -28
  58. package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
  59. package/lib-esm/TextInputWithTokens.d.ts +8 -8
  60. package/lib-esm/Timeline.d.ts +4 -4
  61. package/lib-esm/Token/AvatarToken.d.ts +1 -1
  62. package/lib-esm/Token/IssueLabelToken.d.ts +1 -1
  63. package/lib-esm/Token/Token.d.ts +1 -1
  64. package/lib-esm/_TextInputWrapper.d.ts +1 -1
  65. package/lib-esm/index.d.ts +0 -1
  66. package/lib-esm/index.js +0 -1
  67. package/lib-esm/sx.d.ts +8 -4
  68. package/lib-esm/sx.js +1 -3
  69. package/lib-esm/theme.d.ts +100 -0
  70. package/package.json +1 -1
  71. package/lib/ActionList2/Description.d.ts +0 -6
  72. package/lib/ActionList2/Description.js +0 -53
  73. package/lib/ActionList2/Divider.d.ts +0 -8
  74. package/lib/ActionList2/Divider.js +0 -42
  75. package/lib/ActionList2/Group.d.ts +0 -8
  76. package/lib/ActionList2/Group.js +0 -39
  77. package/lib/ActionList2/Header.d.ts +0 -26
  78. package/lib/ActionList2/Header.js +0 -55
  79. package/lib/ActionList2/Item.d.ts +0 -50
  80. package/lib/ActionList2/Item.js +0 -205
  81. package/lib/ActionList2/List.d.ts +0 -11
  82. package/lib/ActionList2/List.js +0 -53
  83. package/lib/ActionList2/Selection.d.ts +0 -5
  84. package/lib/ActionList2/Selection.js +0 -67
  85. package/lib/ActionList2/Visuals.d.ts +0 -11
  86. package/lib/ActionList2/Visuals.js +0 -90
  87. package/lib/ActionList2/hacks.d.ts +0 -30
  88. package/lib/ActionList2/hacks.js +0 -38
  89. package/lib/ActionList2/index.d.ts +0 -26
  90. package/lib/ActionList2/index.js +0 -36
  91. package/lib/utils/create-slots.d.ts +0 -17
  92. package/lib/utils/create-slots.js +0 -105
  93. package/lib/utils/use-force-update.d.ts +0 -1
  94. package/lib/utils/use-force-update.js +0 -19
  95. package/lib-esm/ActionList2/Description.d.ts +0 -6
  96. package/lib-esm/ActionList2/Description.js +0 -37
  97. package/lib-esm/ActionList2/Divider.d.ts +0 -8
  98. package/lib-esm/ActionList2/Divider.js +0 -30
  99. package/lib-esm/ActionList2/Group.d.ts +0 -8
  100. package/lib-esm/ActionList2/Group.js +0 -29
  101. package/lib-esm/ActionList2/Header.d.ts +0 -26
  102. package/lib-esm/ActionList2/Header.js +0 -45
  103. package/lib-esm/ActionList2/Item.d.ts +0 -50
  104. package/lib-esm/ActionList2/Item.js +0 -199
  105. package/lib-esm/ActionList2/List.d.ts +0 -11
  106. package/lib-esm/ActionList2/List.js +0 -35
  107. package/lib-esm/ActionList2/Selection.d.ts +0 -5
  108. package/lib-esm/ActionList2/Selection.js +0 -50
  109. package/lib-esm/ActionList2/Visuals.d.ts +0 -11
  110. package/lib-esm/ActionList2/Visuals.js +0 -68
  111. package/lib-esm/ActionList2/hacks.d.ts +0 -30
  112. package/lib-esm/ActionList2/hacks.js +0 -30
  113. package/lib-esm/ActionList2/index.d.ts +0 -26
  114. package/lib-esm/ActionList2/index.js +0 -23
  115. package/lib-esm/utils/create-slots.d.ts +0 -17
  116. package/lib-esm/utils/create-slots.js +0 -84
  117. package/lib-esm/utils/use-force-update.d.ts +0 -1
  118. package/lib-esm/utils/use-force-update.js +0 -6
@@ -11,5 +11,5 @@ export interface TokenProps extends TokenBaseProps {
11
11
  */
12
12
  hideRemoveButton?: boolean;
13
13
  }
14
- declare const Token: React.ForwardRefExoticComponent<Pick<TokenProps & SxProp, "sizes" | "color" | "content" | "height" | "translate" | "width" | "hidden" | "children" | "value" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "text" | "list" | "default" | "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" | "start" | "step" | "size" | "wrap" | "open" | "sx" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "href" | "classID" | "useMap" | "wmode" | "download" | "hrefLang" | "rel" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "async" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "as" | "integrity" | "charSet" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "selected" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "kind" | "srcLang" | "poster" | "leadingVisual" | "onRemove" | "isSelected" | "hideRemoveButton"> & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement>>;
14
+ declare const Token: React.ForwardRefExoticComponent<Pick<TokenProps & SxProp, "default" | "muted" | "disabled" | "sizes" | "color" | "content" | "height" | "translate" | "width" | "hidden" | "children" | "value" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "text" | "list" | "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" | "start" | "step" | "size" | "wrap" | "open" | "sx" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "href" | "classID" | "useMap" | "wmode" | "as" | "hrefLang" | "integrity" | "rel" | "charSet" | "download" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "playsInline" | "preload" | "src" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "async" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "selected" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "kind" | "srcLang" | "poster" | "leadingVisual" | "onRemove" | "isSelected" | "hideRemoveButton"> & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement>>;
15
15
  export default Token;
@@ -5,6 +5,6 @@ declare const TextInputWrapper: import("styled-components").StyledComponent<"spa
5
5
  hasIcon?: boolean | undefined;
6
6
  block?: boolean | undefined;
7
7
  contrast?: boolean | undefined;
8
- variant?: "large" | "small" | undefined;
8
+ variant?: "small" | "large" | undefined;
9
9
  } & WidthProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Width<import("styled-system").TLengthStyledSystem>> & MinWidthProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>> & MaxWidthProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.MaxWidth<import("styled-system").TLengthStyledSystem>> & SxProp, never>;
10
10
  export default TextInputWrapper;
package/lib/index.d.ts CHANGED
@@ -22,7 +22,6 @@ export { useOnEscapePress } from './hooks/useOnEscapePress';
22
22
  export { useOverlay } from './hooks/useOverlay';
23
23
  export { useConfirm } from './Dialog/ConfirmationDialog';
24
24
  export { ActionList } from './ActionList';
25
- export { ActionList as ActionList2 } from './ActionList2';
26
25
  export { ActionMenu } from './ActionMenu';
27
26
  export type { ActionMenuProps } from './ActionMenu';
28
27
  export { default as Autocomplete } from './Autocomplete';
package/lib/index.js CHANGED
@@ -147,12 +147,6 @@ Object.defineProperty(exports, "ActionList", {
147
147
  return _ActionList.ActionList;
148
148
  }
149
149
  });
150
- Object.defineProperty(exports, "ActionList2", {
151
- enumerable: true,
152
- get: function () {
153
- return _ActionList2.ActionList;
154
- }
155
- });
156
150
  Object.defineProperty(exports, "ActionMenu", {
157
151
  enumerable: true,
158
152
  get: function () {
@@ -542,8 +536,6 @@ var _ConfirmationDialog = require("./Dialog/ConfirmationDialog");
542
536
 
543
537
  var _ActionList = require("./ActionList");
544
538
 
545
- var _ActionList2 = require("./ActionList2");
546
-
547
539
  var _ActionMenu = require("./ActionMenu");
548
540
 
549
541
  var _Autocomplete = _interopRequireDefault(require("./Autocomplete"));
package/lib/sx.d.ts CHANGED
@@ -1,8 +1,12 @@
1
- import { SystemStyleObject } from '@styled-system/css';
2
- import merge from 'deepmerge';
1
+ import { SystemCssProperties, SystemStyleObject } from '@styled-system/css';
2
+ import { ThemeColorPaths, ThemeShadowPaths } from './theme';
3
+ import { ColorProps, ShadowProps } from 'styled-system';
4
+ export declare type BetterCssProperties = {
5
+ [K in keyof SystemCssProperties]: K extends keyof ColorProps ? ThemeColorPaths | SystemCssProperties[K] : K extends keyof ShadowProps ? ThemeShadowPaths | SystemCssProperties[K] : SystemCssProperties[K];
6
+ };
7
+ export declare type BetterSystemStyleObject = BetterCssProperties | SystemStyleObject;
3
8
  export interface SxProp {
4
- sx?: SystemStyleObject;
9
+ sx?: BetterSystemStyleObject;
5
10
  }
6
11
  declare const sx: (props: SxProp) => import("@styled-system/css").CssFunctionReturnType;
7
12
  export default sx;
8
- export { merge };
package/lib/sx.js CHANGED
@@ -3,18 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "merge", {
7
- enumerable: true,
8
- get: function () {
9
- return _deepmerge.default;
10
- }
11
- });
12
6
  exports.default = void 0;
13
7
 
14
8
  var _css = _interopRequireDefault(require("@styled-system/css"));
15
9
 
16
- var _deepmerge = _interopRequireDefault(require("deepmerge"));
17
-
18
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
11
 
20
12
  const sx = props => (0, _css.default)(props.sx);
package/lib/theme.d.ts CHANGED
@@ -1,2 +1,102 @@
1
1
  import { theme } from './theme-preval';
2
2
  export default theme;
3
+ declare type ThemeColors = {
4
+ fg: {
5
+ default: string;
6
+ muted: string;
7
+ subtle: string;
8
+ onEmphasis: string;
9
+ };
10
+ canvas: {
11
+ default: string;
12
+ overlay: string;
13
+ inset: string;
14
+ subtle: string;
15
+ };
16
+ border: {
17
+ default: string;
18
+ muted: string;
19
+ subtle: string;
20
+ };
21
+ neutral: {
22
+ emphasisPlus: string;
23
+ emphasis: string;
24
+ muted: string;
25
+ subtle: string;
26
+ };
27
+ accent: {
28
+ fg: string;
29
+ emphasis: string;
30
+ muted: string;
31
+ subtle: string;
32
+ };
33
+ success: {
34
+ fg: string;
35
+ emphasis: string;
36
+ muted: string;
37
+ subtle: string;
38
+ };
39
+ attention: {
40
+ fg: string;
41
+ emphasis: string;
42
+ muted: string;
43
+ subtle: string;
44
+ };
45
+ severe: {
46
+ fg: string;
47
+ emphasis: string;
48
+ muted: string;
49
+ subtle: string;
50
+ };
51
+ danger: {
52
+ fg: string;
53
+ emphasis: string;
54
+ muted: string;
55
+ subtle: string;
56
+ };
57
+ done: {
58
+ fg: string;
59
+ emphasis: string;
60
+ muted: string;
61
+ subtle: string;
62
+ };
63
+ sponsors: {
64
+ fg: string;
65
+ emphasis: string;
66
+ muted: string;
67
+ subtle: string;
68
+ };
69
+ primer: {
70
+ fg: {
71
+ disabled: string;
72
+ };
73
+ canvas: {
74
+ backdrop: string;
75
+ sticky: string;
76
+ };
77
+ border: {
78
+ active: string;
79
+ contrast: string;
80
+ };
81
+ };
82
+ };
83
+ declare type ThemeShadows = {
84
+ shadow: {
85
+ small: string;
86
+ medium: string;
87
+ large: string;
88
+ extraLarge: string;
89
+ };
90
+ primer: {
91
+ shadow: {
92
+ highlight: string;
93
+ inset: string;
94
+ focus: string;
95
+ };
96
+ };
97
+ };
98
+ export declare type ThemeColorPaths = KeyPaths<ThemeColors>;
99
+ export declare type ThemeShadowPaths = KeyPaths<ThemeShadows>;
100
+ declare type KeyPaths<O extends {}> = {
101
+ [K in keyof O]: K extends string ? (O[K] extends string ? `${K}` : `${K}.${KeyPaths<O[K]>}`) : never;
102
+ }[keyof O];
@@ -20,12 +20,14 @@ declare const _default: React.FC<{
20
20
  } & {
21
21
  as?: string | React.ComponentType<any> | undefined;
22
22
  forwardedAs?: string | React.ComponentType<any> | undefined;
23
- }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "disabled" | "variant" | "contrast"> & {
23
+ }, string | number | symbol>, "disabled" | "contrast" | "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "variant"> & {
24
24
  className?: string | undefined;
25
25
  icon?: React.ComponentType<{
26
26
  className?: string | undefined;
27
27
  }> | undefined;
28
28
  } & Pick<{
29
+ disabled?: boolean | undefined;
30
+ contrast?: boolean | undefined;
29
31
  color?: string | undefined;
30
32
  maxWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MaxWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
31
33
  minWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
@@ -74,7 +76,7 @@ declare const _default: React.FC<{
74
76
  results?: number | undefined;
75
77
  security?: string | undefined;
76
78
  unselectable?: "on" | "off" | undefined;
77
- inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
79
+ inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
78
80
  is?: string | undefined;
79
81
  'aria-activedescendant'?: string | undefined;
80
82
  'aria-atomic'?: boolean | "true" | "false" | undefined;
@@ -89,7 +91,7 @@ declare const _default: React.FC<{
89
91
  'aria-describedby'?: string | undefined;
90
92
  'aria-details'?: string | undefined;
91
93
  'aria-disabled'?: boolean | "true" | "false" | undefined;
92
- 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
94
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
93
95
  'aria-errormessage'?: string | undefined;
94
96
  'aria-expanded'?: boolean | "true" | "false" | undefined;
95
97
  'aria-flowto'?: string | undefined;
@@ -288,14 +290,12 @@ declare const _default: React.FC<{
288
290
  onTransitionEnd?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
289
291
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
290
292
  block?: boolean | undefined;
291
- sx?: import("@styled-system/css").SystemStyleObject | undefined;
292
- disabled?: boolean | undefined;
293
- variant?: "large" | "small" | undefined;
293
+ sx?: import("../sx").BetterSystemStyleObject | undefined;
294
+ variant?: "small" | "large" | undefined;
294
295
  hasIcon?: boolean | undefined;
295
- contrast?: boolean | undefined;
296
296
  } & {
297
297
  theme?: any;
298
- }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "disabled" | "variant" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, {
298
+ }, "disabled" | "contrast" | "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "variant">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, {
299
299
  as?: React.ComponentType<any> | undefined;
300
300
  }>;
301
301
  Menu: typeof AutocompleteMenu;
@@ -12,12 +12,14 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
12
12
  } & {
13
13
  as?: string | React.ComponentType<any> | undefined;
14
14
  forwardedAs?: string | React.ComponentType<any> | undefined;
15
- }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "disabled" | "variant" | "contrast"> & {
15
+ }, string | number | symbol>, "disabled" | "contrast" | "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "variant"> & {
16
16
  className?: string | undefined;
17
17
  icon?: React.ComponentType<{
18
18
  className?: string | undefined;
19
19
  }> | undefined;
20
20
  } & Pick<{
21
+ disabled?: boolean | undefined;
22
+ contrast?: boolean | undefined;
21
23
  color?: string | undefined;
22
24
  maxWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MaxWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
23
25
  minWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
@@ -66,7 +68,7 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
66
68
  results?: number | undefined;
67
69
  security?: string | undefined;
68
70
  unselectable?: "on" | "off" | undefined;
69
- inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
71
+ inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
70
72
  is?: string | undefined;
71
73
  'aria-activedescendant'?: string | undefined;
72
74
  'aria-atomic'?: boolean | "true" | "false" | undefined;
@@ -81,7 +83,7 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
81
83
  'aria-describedby'?: string | undefined;
82
84
  'aria-details'?: string | undefined;
83
85
  'aria-disabled'?: boolean | "true" | "false" | undefined;
84
- 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
86
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
85
87
  'aria-errormessage'?: string | undefined;
86
88
  'aria-expanded'?: boolean | "true" | "false" | undefined;
87
89
  'aria-flowto'?: string | undefined;
@@ -280,13 +282,11 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
280
282
  onTransitionEnd?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
281
283
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
282
284
  block?: boolean | undefined;
283
- sx?: import("@styled-system/css").SystemStyleObject | undefined;
284
- disabled?: boolean | undefined;
285
- variant?: "large" | "small" | undefined;
285
+ sx?: import("../sx").BetterSystemStyleObject | undefined;
286
+ variant?: "small" | "large" | undefined;
286
287
  hasIcon?: boolean | undefined;
287
- contrast?: boolean | undefined;
288
288
  } & {
289
289
  theme?: any;
290
- }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "disabled" | "variant" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, InternalAutocompleteInputProps>;
290
+ }, "disabled" | "contrast" | "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "variant">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, InternalAutocompleteInputProps>;
291
291
  export declare type AutocompleteInputProps = ComponentProps<typeof AutocompleteInput>;
292
292
  export default AutocompleteInput;
@@ -3,8 +3,9 @@ import { SxProp } from '../sx';
3
3
  import { ComponentProps } from '../utils/types';
4
4
  declare const Button: import("styled-components").StyledComponent<"button", any, {
5
5
  as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
6
- variant?: "large" | "medium" | "small" | undefined;
6
+ variant?: "small" | "medium" | "large" | undefined;
7
7
  } & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
8
+ disabled?: boolean | undefined;
8
9
  color?: string | undefined;
9
10
  fontSize?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
10
11
  translate?: "yes" | "no" | undefined;
@@ -55,7 +56,7 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
55
56
  results?: number | undefined;
56
57
  security?: string | undefined;
57
58
  unselectable?: "on" | "off" | undefined;
58
- inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
59
+ inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
59
60
  is?: string | undefined;
60
61
  'aria-activedescendant'?: string | undefined;
61
62
  'aria-atomic'?: boolean | "true" | "false" | undefined;
@@ -70,7 +71,7 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
70
71
  'aria-describedby'?: string | undefined;
71
72
  'aria-details'?: string | undefined;
72
73
  'aria-disabled'?: boolean | "true" | "false" | undefined;
73
- 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
74
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
74
75
  'aria-errormessage'?: string | undefined;
75
76
  'aria-expanded'?: boolean | "true" | "false" | undefined;
76
77
  'aria-flowto'?: string | undefined;
@@ -268,15 +269,14 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
268
269
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
269
270
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
270
271
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
272
+ as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
271
273
  autoFocus?: boolean | undefined;
272
- disabled?: boolean | undefined;
273
274
  formAction?: string | undefined;
274
275
  formEncType?: string | undefined;
275
276
  formMethod?: string | undefined;
276
277
  formNoValidate?: boolean | undefined;
277
278
  formTarget?: string | undefined;
278
- as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
279
- variant?: "large" | "medium" | "small" | undefined;
279
+ variant?: "small" | "medium" | "large" | undefined;
280
280
  } & {
281
281
  theme?: any;
282
282
  } & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../constants").SystemCommonProps & import("../constants").SystemLayoutProps & SxProp, never>;
@@ -6,7 +6,7 @@ export declare const buttonSystemProps: import("styled-system").styleFn;
6
6
  export declare type ButtonSystemProps = FontSizeProps & SystemCommonProps & SystemLayoutProps;
7
7
  declare const ButtonBase: import("styled-components").StyledComponent<"button", any, {
8
8
  as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
9
- variant?: "large" | "medium" | "small" | undefined;
9
+ variant?: "small" | "medium" | "large" | undefined;
10
10
  } & FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, never>;
11
11
  export declare type ButtonBaseProps = ComponentProps<typeof ButtonBase>;
12
12
  export default ButtonBase;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ComponentProps } from '../utils/types';
3
3
  declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
4
+ disabled?: boolean | undefined;
4
5
  backgroundColor?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
5
6
  color?: (string & import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>>) | undefined;
6
7
  display?: import("styled-system").ResponsiveValue<import("csstype").Property.Display, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
@@ -74,7 +75,7 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
74
75
  results?: number | undefined;
75
76
  security?: string | undefined;
76
77
  unselectable?: "on" | "off" | undefined;
77
- inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
78
+ inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
78
79
  is?: string | undefined;
79
80
  'aria-activedescendant'?: string | undefined;
80
81
  'aria-atomic'?: boolean | "true" | "false" | undefined;
@@ -89,7 +90,7 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
89
90
  'aria-describedby'?: string | undefined;
90
91
  'aria-details'?: string | undefined;
91
92
  'aria-disabled'?: boolean | "true" | "false" | undefined;
92
- 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
93
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
93
94
  'aria-errormessage'?: string | undefined;
94
95
  'aria-expanded'?: boolean | "true" | "false" | undefined;
95
96
  'aria-flowto'?: string | undefined;
@@ -306,9 +307,8 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
306
307
  py?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
307
308
  paddingY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
308
309
  size?: import("styled-system").ResponsiveValue<import("csstype").Property.Height<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
309
- sx?: import("@styled-system/css").SystemStyleObject | undefined;
310
+ sx?: import("../sx").BetterSystemStyleObject | undefined;
310
311
  autoFocus?: boolean | undefined;
311
- disabled?: 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
+ }, "disabled" | "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" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & React.RefAttributes<HTMLButtonElement>>;
320
320
  export declare type ButtonCloseProps = ComponentProps<typeof ButtonClose>;
321
321
  export default ButtonClose;
@@ -3,8 +3,9 @@ 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?: "large" | "medium" | "small" | undefined;
6
+ variant?: "small" | "medium" | "large" | undefined;
7
7
  } & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
8
+ disabled?: boolean | undefined;
8
9
  color?: string | undefined;
9
10
  fontSize?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
10
11
  translate?: "yes" | "no" | undefined;
@@ -55,7 +56,7 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
55
56
  results?: number | undefined;
56
57
  security?: string | undefined;
57
58
  unselectable?: "on" | "off" | undefined;
58
- inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
59
+ inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
59
60
  is?: string | undefined;
60
61
  'aria-activedescendant'?: string | undefined;
61
62
  'aria-atomic'?: boolean | "true" | "false" | undefined;
@@ -70,7 +71,7 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
70
71
  'aria-describedby'?: string | undefined;
71
72
  'aria-details'?: string | undefined;
72
73
  'aria-disabled'?: boolean | "true" | "false" | undefined;
73
- 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
74
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
74
75
  'aria-errormessage'?: string | undefined;
75
76
  'aria-expanded'?: boolean | "true" | "false" | undefined;
76
77
  'aria-flowto'?: string | undefined;
@@ -268,15 +269,14 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
268
269
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
269
270
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
270
271
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
272
+ as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
271
273
  autoFocus?: boolean | undefined;
272
- disabled?: boolean | undefined;
273
274
  formAction?: string | undefined;
274
275
  formEncType?: string | undefined;
275
276
  formMethod?: string | undefined;
276
277
  formNoValidate?: boolean | undefined;
277
278
  formTarget?: string | undefined;
278
- as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
279
- variant?: "large" | "medium" | "small" | undefined;
279
+ variant?: "small" | "medium" | "large" | undefined;
280
280
  } & {
281
281
  theme?: any;
282
282
  } & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../constants").SystemCommonProps & import("../constants").SystemLayoutProps & SxProp, never>;
@@ -3,8 +3,9 @@ import { SxProp } from '../sx';
3
3
  import { ComponentProps } from '../utils/types';
4
4
  declare const ButtonInvisible: import("styled-components").StyledComponent<"button", any, {
5
5
  as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
6
- variant?: "large" | "medium" | "small" | undefined;
6
+ variant?: "small" | "medium" | "large" | undefined;
7
7
  } & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
8
+ disabled?: boolean | undefined;
8
9
  color?: string | undefined;
9
10
  fontSize?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
10
11
  translate?: "yes" | "no" | undefined;
@@ -55,7 +56,7 @@ declare const ButtonInvisible: import("styled-components").StyledComponent<"butt
55
56
  results?: number | undefined;
56
57
  security?: string | undefined;
57
58
  unselectable?: "on" | "off" | undefined;
58
- inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
59
+ inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
59
60
  is?: string | undefined;
60
61
  'aria-activedescendant'?: string | undefined;
61
62
  'aria-atomic'?: boolean | "true" | "false" | undefined;
@@ -70,7 +71,7 @@ declare const ButtonInvisible: import("styled-components").StyledComponent<"butt
70
71
  'aria-describedby'?: string | undefined;
71
72
  'aria-details'?: string | undefined;
72
73
  'aria-disabled'?: boolean | "true" | "false" | undefined;
73
- 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
74
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
74
75
  'aria-errormessage'?: string | undefined;
75
76
  'aria-expanded'?: boolean | "true" | "false" | undefined;
76
77
  'aria-flowto'?: string | undefined;
@@ -268,15 +269,14 @@ declare const ButtonInvisible: import("styled-components").StyledComponent<"butt
268
269
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
269
270
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
270
271
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
272
+ as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
271
273
  autoFocus?: boolean | undefined;
272
- disabled?: boolean | undefined;
273
274
  formAction?: string | undefined;
274
275
  formEncType?: string | undefined;
275
276
  formMethod?: string | undefined;
276
277
  formNoValidate?: boolean | undefined;
277
278
  formTarget?: string | undefined;
278
- as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
279
- variant?: "large" | "medium" | "small" | undefined;
279
+ variant?: "small" | "medium" | "large" | undefined;
280
280
  } & {
281
281
  theme?: any;
282
282
  } & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../constants").SystemCommonProps & import("../constants").SystemLayoutProps & SxProp, never>;
@@ -3,8 +3,9 @@ import { SxProp } from '../sx';
3
3
  import { ComponentProps } from '../utils/types';
4
4
  declare const ButtonOutline: import("styled-components").StyledComponent<"button", any, {
5
5
  as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
6
- variant?: "large" | "medium" | "small" | undefined;
6
+ variant?: "small" | "medium" | "large" | undefined;
7
7
  } & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
8
+ disabled?: boolean | undefined;
8
9
  color?: string | undefined;
9
10
  fontSize?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
10
11
  translate?: "yes" | "no" | undefined;
@@ -55,7 +56,7 @@ declare const ButtonOutline: import("styled-components").StyledComponent<"button
55
56
  results?: number | undefined;
56
57
  security?: string | undefined;
57
58
  unselectable?: "on" | "off" | undefined;
58
- inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
59
+ inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
59
60
  is?: string | undefined;
60
61
  'aria-activedescendant'?: string | undefined;
61
62
  'aria-atomic'?: boolean | "true" | "false" | undefined;
@@ -70,7 +71,7 @@ declare const ButtonOutline: import("styled-components").StyledComponent<"button
70
71
  'aria-describedby'?: string | undefined;
71
72
  'aria-details'?: string | undefined;
72
73
  'aria-disabled'?: boolean | "true" | "false" | undefined;
73
- 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
74
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
74
75
  'aria-errormessage'?: string | undefined;
75
76
  'aria-expanded'?: boolean | "true" | "false" | undefined;
76
77
  'aria-flowto'?: string | undefined;
@@ -268,15 +269,14 @@ declare const ButtonOutline: import("styled-components").StyledComponent<"button
268
269
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
269
270
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
270
271
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
272
+ as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
271
273
  autoFocus?: boolean | undefined;
272
- disabled?: boolean | undefined;
273
274
  formAction?: string | undefined;
274
275
  formEncType?: string | undefined;
275
276
  formMethod?: string | undefined;
276
277
  formNoValidate?: boolean | undefined;
277
278
  formTarget?: string | undefined;
278
- as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
279
- variant?: "large" | "medium" | "small" | undefined;
279
+ variant?: "small" | "medium" | "large" | undefined;
280
280
  } & {
281
281
  theme?: any;
282
282
  } & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../constants").SystemCommonProps & import("../constants").SystemLayoutProps & SxProp, never>;