@primer/components 0.0.0-2021927173554 → 0.0.0-2021927175656

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 (106) hide show
  1. package/CHANGELOG.md +8 -4
  2. package/dist/browser.esm.js +2 -2
  3. package/dist/browser.esm.js.map +1 -1
  4. package/dist/browser.umd.js +2 -2
  5. package/dist/browser.umd.js.map +1 -1
  6. package/lib/AnchoredOverlay/AnchoredOverlay.d.ts +4 -2
  7. package/lib/Autocomplete/Autocomplete.d.ts +12 -10
  8. package/lib/Autocomplete/AutocompleteInput.d.ts +12 -10
  9. package/lib/Button/Button.d.ts +6 -6
  10. package/lib/Button/ButtonBase.d.ts +1 -1
  11. package/lib/Button/ButtonClose.d.ts +5 -5
  12. package/lib/Button/ButtonDanger.d.ts +6 -6
  13. package/lib/Button/ButtonInvisible.d.ts +6 -6
  14. package/lib/Button/ButtonOutline.d.ts +6 -6
  15. package/lib/Button/ButtonPrimary.d.ts +6 -6
  16. package/lib/CircleBadge.d.ts +2 -2
  17. package/lib/CircleOcticon.d.ts +4 -4
  18. package/lib/DatePicker/DatePicker.d.ts +48 -0
  19. package/lib/DatePicker/DatePicker.js +100 -0
  20. package/lib/DatePicker/DatePickerAnchor.d.ts +5 -0
  21. package/lib/DatePicker/DatePickerAnchor.js +182 -0
  22. package/lib/DatePicker/DatePickerOverlay.d.ts +3 -0
  23. package/lib/DatePicker/DatePickerOverlay.js +39 -0
  24. package/lib/DatePicker/DatePickerPanel.d.ts +2 -0
  25. package/lib/DatePicker/DatePickerPanel.js +126 -0
  26. package/lib/DatePicker/Day.d.ts +14 -0
  27. package/lib/DatePicker/Day.js +192 -0
  28. package/lib/DatePicker/Month.d.ts +9 -0
  29. package/lib/DatePicker/Month.js +120 -0
  30. package/lib/DatePicker/index.d.ts +2 -0
  31. package/lib/DatePicker/index.js +13 -0
  32. package/lib/DatePicker/useDatePicker.d.ts +88 -0
  33. package/lib/DatePicker/useDatePicker.js +383 -0
  34. package/lib/Dialog.d.ts +4 -4
  35. package/lib/Dropdown.d.ts +18 -18
  36. package/lib/DropdownMenu/DropdownButton.d.ts +7 -7
  37. package/lib/FilterList.d.ts +3 -3
  38. package/lib/Flash.d.ts +1 -1
  39. package/lib/Label.d.ts +1 -1
  40. package/lib/Position.d.ts +4 -4
  41. package/lib/ProgressBar.d.ts +1 -1
  42. package/lib/SelectMenu/SelectMenu.d.ts +32 -30
  43. package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
  44. package/lib/TextInputWithTokens.d.ts +12 -10
  45. package/lib/Timeline.d.ts +4 -4
  46. package/lib/Token/AvatarToken.d.ts +1 -1
  47. package/lib/Token/IssueLabelToken.d.ts +1 -1
  48. package/lib/Token/Token.d.ts +1 -1
  49. package/lib/_TextInputWrapper.d.ts +1 -1
  50. package/lib/hooks/useDebounce.d.ts +2 -0
  51. package/lib/hooks/useDebounce.js +24 -0
  52. package/lib/sx.d.ts +2 -8
  53. package/lib/theme-preval.js +2 -2
  54. package/lib/theme.d.ts +0 -100
  55. package/lib/utils/testing.d.ts +1 -1
  56. package/lib-esm/AnchoredOverlay/AnchoredOverlay.d.ts +4 -2
  57. package/lib-esm/Autocomplete/Autocomplete.d.ts +12 -10
  58. package/lib-esm/Autocomplete/AutocompleteInput.d.ts +12 -10
  59. package/lib-esm/Button/Button.d.ts +6 -6
  60. package/lib-esm/Button/ButtonBase.d.ts +1 -1
  61. package/lib-esm/Button/ButtonClose.d.ts +5 -5
  62. package/lib-esm/Button/ButtonDanger.d.ts +6 -6
  63. package/lib-esm/Button/ButtonInvisible.d.ts +6 -6
  64. package/lib-esm/Button/ButtonOutline.d.ts +6 -6
  65. package/lib-esm/Button/ButtonPrimary.d.ts +6 -6
  66. package/lib-esm/CircleBadge.d.ts +2 -2
  67. package/lib-esm/CircleOcticon.d.ts +4 -4
  68. package/lib-esm/DatePicker/DatePicker.d.ts +48 -0
  69. package/lib-esm/DatePicker/DatePicker.js +83 -0
  70. package/lib-esm/DatePicker/DatePickerAnchor.d.ts +5 -0
  71. package/lib-esm/DatePicker/DatePickerAnchor.js +155 -0
  72. package/lib-esm/DatePicker/DatePickerOverlay.d.ts +3 -0
  73. package/lib-esm/DatePicker/DatePickerOverlay.js +24 -0
  74. package/lib-esm/DatePicker/DatePickerPanel.d.ts +2 -0
  75. package/lib-esm/DatePicker/DatePickerPanel.js +100 -0
  76. package/lib-esm/DatePicker/Day.d.ts +14 -0
  77. package/lib-esm/DatePicker/Day.js +169 -0
  78. package/lib-esm/DatePicker/Month.d.ts +9 -0
  79. package/lib-esm/DatePicker/Month.js +96 -0
  80. package/lib-esm/DatePicker/index.d.ts +2 -0
  81. package/lib-esm/DatePicker/index.js +1 -0
  82. package/lib-esm/DatePicker/useDatePicker.d.ts +88 -0
  83. package/lib-esm/DatePicker/useDatePicker.js +355 -0
  84. package/lib-esm/Dialog.d.ts +4 -4
  85. package/lib-esm/Dropdown.d.ts +18 -18
  86. package/lib-esm/DropdownMenu/DropdownButton.d.ts +7 -7
  87. package/lib-esm/FilterList.d.ts +3 -3
  88. package/lib-esm/Flash.d.ts +1 -1
  89. package/lib-esm/Label.d.ts +1 -1
  90. package/lib-esm/Position.d.ts +4 -4
  91. package/lib-esm/ProgressBar.d.ts +1 -1
  92. package/lib-esm/SelectMenu/SelectMenu.d.ts +32 -30
  93. package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
  94. package/lib-esm/TextInputWithTokens.d.ts +12 -10
  95. package/lib-esm/Timeline.d.ts +4 -4
  96. package/lib-esm/Token/AvatarToken.d.ts +1 -1
  97. package/lib-esm/Token/IssueLabelToken.d.ts +1 -1
  98. package/lib-esm/Token/Token.d.ts +1 -1
  99. package/lib-esm/_TextInputWrapper.d.ts +1 -1
  100. package/lib-esm/hooks/useDebounce.d.ts +2 -0
  101. package/lib-esm/hooks/useDebounce.js +16 -0
  102. package/lib-esm/sx.d.ts +2 -8
  103. package/lib-esm/theme-preval.js +2 -2
  104. package/lib-esm/theme.d.ts +0 -100
  105. package/lib-esm/utils/testing.d.ts +1 -1
  106. package/package.json +9 -8
@@ -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, "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>>;
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>>;
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?: "small" | "large" | undefined;
8
+ variant?: "large" | "small" | 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;
@@ -0,0 +1,2 @@
1
+ declare function useDebounce<T>(value: T, delay: number): T;
2
+ export default useDebounce;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _react = require("react");
9
+
10
+ function useDebounce(value, delay) {
11
+ const [debouncedValue, setDebouncedValue] = (0, _react.useState)(value);
12
+ (0, _react.useEffect)(() => {
13
+ const handler = setTimeout(() => {
14
+ setDebouncedValue(value);
15
+ }, delay);
16
+ return () => {
17
+ clearTimeout(handler);
18
+ };
19
+ }, [value, delay]);
20
+ return debouncedValue;
21
+ }
22
+
23
+ var _default = useDebounce;
24
+ exports.default = _default;
package/lib/sx.d.ts CHANGED
@@ -1,12 +1,6 @@
1
- import { SystemCssProperties, SystemStyleObject } from '@styled-system/css';
2
- import { ThemeColorPaths, ThemeShadowPaths } from './theme';
3
- import { ColorProps, ShadowProps } from 'styled-system';
4
- export declare type BetterCssProperties = {
5
- [K in keyof SystemCssProperties]: K extends keyof ColorProps ? ThemeColorPaths | SystemCssProperties[K] : K extends keyof ShadowProps ? ThemeShadowPaths | SystemCssProperties[K] : SystemCssProperties[K];
6
- };
7
- export declare type BetterSystemStyleObject = BetterCssProperties | SystemStyleObject;
1
+ import { SystemStyleObject } from '@styled-system/css';
8
2
  export interface SxProp {
9
- sx?: BetterSystemStyleObject;
3
+ sx?: SystemStyleObject;
10
4
  }
11
5
  declare const sx: (props: SxProp) => import("@styled-system/css").CssFunctionReturnType;
12
6
  export default sx;
@@ -515,7 +515,7 @@ module.exports = {
515
515
  }
516
516
  }
517
517
  },
518
- "light_protanopia": {
518
+ "light_colorblind": {
519
519
  "colors": {
520
520
  "canvasDefaultTransparent": "rgba(255,255,255,0)",
521
521
  "marketingIcon": {
@@ -2456,7 +2456,7 @@ module.exports = {
2456
2456
  }
2457
2457
  }
2458
2458
  },
2459
- "dark_protanopia": {
2459
+ "dark_colorblind": {
2460
2460
  "colors": {
2461
2461
  "canvasDefaultTransparent": "rgba(13,17,23,0)",
2462
2462
  "marketingIcon": {
package/lib/theme.d.ts CHANGED
@@ -1,102 +1,2 @@
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];
@@ -53,7 +53,7 @@ export declare function render(component: React.ReactElement, theme?: {
53
53
  xlarge: string;
54
54
  };
55
55
  space: string[];
56
- colorSchemes: Record<"light" | "light_protanopia" | "dark" | "dark_dimmed" | "dark_high_contrast" | "dark_protanopia", Record<"colors" | "shadows", Partial<{
56
+ colorSchemes: Record<"light" | "light_colorblind" | "dark" | "dark_dimmed" | "dark_high_contrast" | "dark_colorblind", Record<"colors" | "shadows", Partial<{
57
57
  canvasDefaultTransparent: string;
58
58
  marketingIcon: {
59
59
  primary: string;
@@ -26,6 +26,8 @@ interface AnchoredOverlayPropsWithoutAnchor {
26
26
  */
27
27
  anchorRef: React.RefObject<HTMLElement>;
28
28
  }
29
+ export declare type OverlayOpenGesture = 'anchor-click' | 'anchor-key-press';
30
+ export declare type OverlayCloseGesture = 'anchor-click' | 'click-outside' | 'escape';
29
31
  export declare type AnchoredOverlayWrapperAnchorProps = Partial<AnchoredOverlayPropsWithAnchor> | AnchoredOverlayPropsWithoutAnchor;
30
32
  interface AnchoredOverlayBaseProps extends Pick<OverlayProps, 'height' | 'width'> {
31
33
  /**
@@ -35,11 +37,11 @@ interface AnchoredOverlayBaseProps extends Pick<OverlayProps, 'height' | 'width'
35
37
  /**
36
38
  * A callback which is called whenever the overlay is currently closed and an "open gesture" is detected.
37
39
  */
38
- onOpen?: (gesture: 'anchor-click' | 'anchor-key-press') => unknown;
40
+ onOpen?: (gesture: OverlayOpenGesture) => unknown;
39
41
  /**
40
42
  * A callback which is called whenever the overlay is currently open and a "close gesture" is detected.
41
43
  */
42
- onClose?: (gesture: 'anchor-click' | 'click-outside' | 'escape') => unknown;
44
+ onClose?: (gesture: OverlayCloseGesture) => unknown;
43
45
  /**
44
46
  * Props to be spread on the internal `Overlay` component.
45
47
  */
@@ -12,22 +12,22 @@ export type { AutocompleteOverlayProps } from './AutocompleteOverlay';
12
12
  declare const _default: React.FC<{
13
13
  id?: string | undefined;
14
14
  }> & {
15
- Input: import("@radix-ui/react-polymorphic").ForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<{
15
+ Input: import("@radix-ui/react-polymorphic").ForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<({
16
16
  [x: string]: any;
17
17
  [x: number]: any;
18
18
  } & {
19
19
  theme?: any;
20
- } & {
20
+ } & ({} | {
21
+ children?: React.ReactNode;
22
+ })) & {
21
23
  as?: string | React.ComponentType<any> | undefined;
22
24
  forwardedAs?: string | React.ComponentType<any> | undefined;
23
- }, string | number | symbol>, "disabled" | "contrast" | "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "variant"> & {
25
+ }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "disabled" | "variant" | "contrast"> & {
24
26
  className?: string | undefined;
25
27
  icon?: React.ComponentType<{
26
28
  className?: string | undefined;
27
29
  }> | undefined;
28
30
  } & Pick<{
29
- disabled?: boolean | undefined;
30
- contrast?: boolean | undefined;
31
31
  color?: string | undefined;
32
32
  maxWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MaxWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
33
33
  minWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
@@ -76,7 +76,7 @@ declare const _default: React.FC<{
76
76
  results?: number | undefined;
77
77
  security?: string | undefined;
78
78
  unselectable?: "on" | "off" | undefined;
79
- inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
79
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
80
80
  is?: string | undefined;
81
81
  'aria-activedescendant'?: string | undefined;
82
82
  'aria-atomic'?: boolean | "true" | "false" | undefined;
@@ -91,7 +91,7 @@ declare const _default: React.FC<{
91
91
  'aria-describedby'?: string | undefined;
92
92
  'aria-details'?: string | undefined;
93
93
  'aria-disabled'?: boolean | "true" | "false" | undefined;
94
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
94
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
95
95
  'aria-errormessage'?: string | undefined;
96
96
  'aria-expanded'?: boolean | "true" | "false" | undefined;
97
97
  'aria-flowto'?: string | undefined;
@@ -290,12 +290,14 @@ declare const _default: React.FC<{
290
290
  onTransitionEnd?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
291
291
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
292
292
  block?: boolean | undefined;
293
- sx?: import("../sx").BetterSystemStyleObject | undefined;
294
- variant?: "small" | "large" | undefined;
293
+ sx?: import("@styled-system/css").SystemStyleObject | undefined;
294
+ disabled?: boolean | undefined;
295
+ variant?: "large" | "small" | undefined;
295
296
  hasIcon?: boolean | undefined;
297
+ contrast?: boolean | undefined;
296
298
  } & {
297
299
  theme?: any;
298
- }, "disabled" | "contrast" | "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "variant">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, {
300
+ }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "disabled" | "variant" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, {
299
301
  as?: React.ComponentType<any> | undefined;
300
302
  }>;
301
303
  Menu: typeof AutocompleteMenu;
@@ -4,22 +4,22 @@ import { ComponentProps } from '../utils/types';
4
4
  declare type InternalAutocompleteInputProps = {
5
5
  as?: React.ComponentType<any>;
6
6
  };
7
- declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<{
7
+ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<({
8
8
  [x: string]: any;
9
9
  [x: number]: any;
10
10
  } & {
11
11
  theme?: any;
12
- } & {
12
+ } & ({} | {
13
+ children?: React.ReactNode;
14
+ })) & {
13
15
  as?: string | React.ComponentType<any> | undefined;
14
16
  forwardedAs?: string | React.ComponentType<any> | undefined;
15
- }, string | number | symbol>, "disabled" | "contrast" | "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "variant"> & {
17
+ }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "disabled" | "variant" | "contrast"> & {
16
18
  className?: string | undefined;
17
19
  icon?: React.ComponentType<{
18
20
  className?: string | undefined;
19
21
  }> | undefined;
20
22
  } & Pick<{
21
- disabled?: boolean | undefined;
22
- contrast?: boolean | undefined;
23
23
  color?: string | undefined;
24
24
  maxWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MaxWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
25
25
  minWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
@@ -68,7 +68,7 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
68
68
  results?: number | undefined;
69
69
  security?: string | undefined;
70
70
  unselectable?: "on" | "off" | undefined;
71
- inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
71
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
72
72
  is?: string | undefined;
73
73
  'aria-activedescendant'?: string | undefined;
74
74
  'aria-atomic'?: boolean | "true" | "false" | undefined;
@@ -83,7 +83,7 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
83
83
  'aria-describedby'?: string | undefined;
84
84
  'aria-details'?: string | undefined;
85
85
  'aria-disabled'?: boolean | "true" | "false" | undefined;
86
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
86
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
87
87
  'aria-errormessage'?: string | undefined;
88
88
  'aria-expanded'?: boolean | "true" | "false" | undefined;
89
89
  'aria-flowto'?: string | undefined;
@@ -282,11 +282,13 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
282
282
  onTransitionEnd?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
283
283
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
284
284
  block?: boolean | undefined;
285
- sx?: import("../sx").BetterSystemStyleObject | undefined;
286
- variant?: "small" | "large" | undefined;
285
+ sx?: import("@styled-system/css").SystemStyleObject | undefined;
286
+ disabled?: boolean | undefined;
287
+ variant?: "large" | "small" | undefined;
287
288
  hasIcon?: boolean | undefined;
289
+ contrast?: boolean | undefined;
288
290
  } & {
289
291
  theme?: any;
290
- }, "disabled" | "contrast" | "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "variant">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, InternalAutocompleteInputProps>;
292
+ }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "disabled" | "variant" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, InternalAutocompleteInputProps>;
291
293
  export declare type AutocompleteInputProps = ComponentProps<typeof AutocompleteInput>;
292
294
  export default AutocompleteInput;
@@ -3,9 +3,8 @@ import { SxProp } from '../sx';
3
3
  import { ComponentProps } from '../utils/types';
4
4
  declare const Button: import("styled-components").StyledComponent<"button", any, {
5
5
  as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
6
- variant?: "small" | "medium" | "large" | undefined;
6
+ variant?: "large" | "medium" | "small" | undefined;
7
7
  } & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
8
- disabled?: boolean | undefined;
9
8
  color?: string | undefined;
10
9
  fontSize?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
11
10
  translate?: "yes" | "no" | undefined;
@@ -56,7 +55,7 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
56
55
  results?: number | undefined;
57
56
  security?: string | undefined;
58
57
  unselectable?: "on" | "off" | undefined;
59
- inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
58
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
60
59
  is?: string | undefined;
61
60
  'aria-activedescendant'?: string | undefined;
62
61
  'aria-atomic'?: boolean | "true" | "false" | undefined;
@@ -71,7 +70,7 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
71
70
  'aria-describedby'?: string | undefined;
72
71
  'aria-details'?: string | undefined;
73
72
  'aria-disabled'?: boolean | "true" | "false" | undefined;
74
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
73
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
75
74
  'aria-errormessage'?: string | undefined;
76
75
  'aria-expanded'?: boolean | "true" | "false" | undefined;
77
76
  'aria-flowto'?: string | undefined;
@@ -269,14 +268,15 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
269
268
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
270
269
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
271
270
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
272
- as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
273
271
  autoFocus?: boolean | undefined;
272
+ disabled?: boolean | undefined;
274
273
  formAction?: string | undefined;
275
274
  formEncType?: string | undefined;
276
275
  formMethod?: string | undefined;
277
276
  formNoValidate?: boolean | undefined;
278
277
  formTarget?: string | undefined;
279
- variant?: "small" | "medium" | "large" | undefined;
278
+ as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
279
+ variant?: "large" | "medium" | "small" | undefined;
280
280
  } & {
281
281
  theme?: any;
282
282
  } & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../constants").SystemCommonProps & import("../constants").SystemLayoutProps & SxProp, never>;
@@ -6,7 +6,7 @@ export declare const buttonSystemProps: import("styled-system").styleFn;
6
6
  export declare type ButtonSystemProps = FontSizeProps & SystemCommonProps & SystemLayoutProps;
7
7
  declare const ButtonBase: import("styled-components").StyledComponent<"button", any, {
8
8
  as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
9
- variant?: "small" | "medium" | "large" | undefined;
9
+ variant?: "large" | "medium" | "small" | undefined;
10
10
  } & FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, never>;
11
11
  export declare type ButtonBaseProps = ComponentProps<typeof ButtonBase>;
12
12
  export default ButtonBase;
@@ -1,7 +1,6 @@
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;
5
4
  backgroundColor?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
6
5
  color?: (string & import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>>) | undefined;
7
6
  display?: import("styled-system").ResponsiveValue<import("csstype").Property.Display, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
@@ -75,7 +74,7 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
75
74
  results?: number | undefined;
76
75
  security?: string | undefined;
77
76
  unselectable?: "on" | "off" | undefined;
78
- inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
77
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
79
78
  is?: string | undefined;
80
79
  'aria-activedescendant'?: string | undefined;
81
80
  'aria-atomic'?: boolean | "true" | "false" | undefined;
@@ -90,7 +89,7 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
90
89
  'aria-describedby'?: string | undefined;
91
90
  'aria-details'?: string | undefined;
92
91
  'aria-disabled'?: boolean | "true" | "false" | undefined;
93
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
92
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
94
93
  'aria-errormessage'?: string | undefined;
95
94
  'aria-expanded'?: boolean | "true" | "false" | undefined;
96
95
  'aria-flowto'?: string | undefined;
@@ -307,8 +306,9 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
307
306
  py?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
308
307
  paddingY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
309
308
  size?: import("styled-system").ResponsiveValue<import("csstype").Property.Height<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
310
- sx?: import("../sx").BetterSystemStyleObject | undefined;
309
+ sx?: import("@styled-system/css").SystemStyleObject | undefined;
311
310
  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
- }, "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>>;
319
+ }, "backgroundColor" | "color" | "display" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "verticalAlign" | "width" | "margin" | "overflow" | "padding" | "hidden" | "children" | "theme" | "value" | "form" | "p" | "slot" | "style" | "title" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "size" | "sx" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & React.RefAttributes<HTMLButtonElement>>;
320
320
  export declare type ButtonCloseProps = ComponentProps<typeof ButtonClose>;
321
321
  export default ButtonClose;
@@ -3,9 +3,8 @@ import { SxProp } from '../sx';
3
3
  import { ComponentProps } from '../utils/types';
4
4
  declare const ButtonDanger: import("styled-components").StyledComponent<"button", any, {
5
5
  as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
6
- variant?: "small" | "medium" | "large" | undefined;
6
+ variant?: "large" | "medium" | "small" | undefined;
7
7
  } & import("styled-system").FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
8
- disabled?: boolean | undefined;
9
8
  color?: string | undefined;
10
9
  fontSize?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
11
10
  translate?: "yes" | "no" | undefined;
@@ -56,7 +55,7 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
56
55
  results?: number | undefined;
57
56
  security?: string | undefined;
58
57
  unselectable?: "on" | "off" | undefined;
59
- inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
58
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
60
59
  is?: string | undefined;
61
60
  'aria-activedescendant'?: string | undefined;
62
61
  'aria-atomic'?: boolean | "true" | "false" | undefined;
@@ -71,7 +70,7 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
71
70
  'aria-describedby'?: string | undefined;
72
71
  'aria-details'?: string | undefined;
73
72
  'aria-disabled'?: boolean | "true" | "false" | undefined;
74
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
73
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
75
74
  'aria-errormessage'?: string | undefined;
76
75
  'aria-expanded'?: boolean | "true" | "false" | undefined;
77
76
  'aria-flowto'?: string | undefined;
@@ -269,14 +268,15 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
269
268
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
270
269
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
271
270
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
272
- as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
273
271
  autoFocus?: boolean | undefined;
272
+ disabled?: boolean | undefined;
274
273
  formAction?: string | undefined;
275
274
  formEncType?: string | undefined;
276
275
  formMethod?: string | undefined;
277
276
  formNoValidate?: boolean | undefined;
278
277
  formTarget?: string | undefined;
279
- variant?: "small" | "medium" | "large" | 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>;