@primer/components 0.0.0-2021928193630 → 0.0.0-20219293614
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.
- package/CHANGELOG.md +1 -17
- package/dist/browser.esm.js +440 -447
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +439 -446
- package/dist/browser.umd.js.map +1 -1
- package/lib/ActionMenu.js +2 -2
- package/lib/Autocomplete/Autocomplete.d.ts +9 -9
- package/lib/Autocomplete/AutocompleteInput.d.ts +9 -9
- package/lib/Button/Button.d.ts +12 -12
- package/lib/Button/ButtonBase.d.ts +1 -1
- package/lib/Button/ButtonClose.d.ts +30 -30
- package/lib/Button/ButtonDanger.d.ts +12 -12
- package/lib/Button/ButtonInvisible.d.ts +12 -12
- package/lib/Button/ButtonOutline.d.ts +12 -12
- package/lib/Button/ButtonPrimary.d.ts +12 -12
- package/lib/Button/ButtonStyles.js +1 -1
- package/lib/CircleBadge.d.ts +2 -2
- package/lib/CircleOcticon.d.ts +35 -35
- package/lib/Dialog/Dialog.d.ts +4 -4
- package/lib/Dialog/Dialog.js +12 -22
- package/lib/Dialog.d.ts +37 -37
- package/lib/Dropdown.d.ts +91 -171
- package/lib/Dropdown.js +6 -5
- package/lib/DropdownMenu/DropdownButton.d.ts +32 -32
- package/lib/FilterList.d.ts +27 -27
- package/lib/Flash.d.ts +1 -1
- package/lib/Label.d.ts +1 -1
- package/lib/NewButton/button.d.ts +579 -0
- package/lib/NewButton/button.js +298 -0
- package/lib/NewButton/counter.d.ts +6 -0
- package/lib/NewButton/counter.js +33 -0
- package/lib/NewButton/index.d.ts +4 -0
- package/lib/NewButton/index.js +21 -0
- package/lib/Position.d.ts +4 -4
- package/lib/SelectMenu/SelectMenu.d.ts +151 -151
- package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/lib/SelectMenu/SelectMenuModal.d.ts +1 -1
- package/lib/TextInputWithTokens.d.ts +9 -13
- package/lib/TextInputWithTokens.js +29 -102
- package/lib/Timeline.d.ts +35 -35
- package/lib/Token/AvatarToken.d.ts +1 -1
- package/lib/Token/IssueLabelToken.d.ts +1 -1
- package/lib/Token/Token.d.ts +1 -1
- package/lib/Token/Token.js +2 -13
- package/lib/Token/TokenBase.js +4 -0
- package/lib/Token/_RemoveTokenButton.js +2 -15
- package/lib/_TextInputWrapper.js +1 -1
- package/lib/constants.js +3 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +8 -0
- package/lib/sx.d.ts +2 -8
- package/lib/theme.d.ts +0 -78
- package/lib/theme.js +1 -3
- package/lib/utils/testing.d.ts +1 -1
- package/lib-esm/ActionMenu.js +2 -2
- package/lib-esm/Autocomplete/Autocomplete.d.ts +9 -9
- package/lib-esm/Autocomplete/AutocompleteInput.d.ts +9 -9
- package/lib-esm/Button/Button.d.ts +12 -12
- package/lib-esm/Button/ButtonBase.d.ts +1 -1
- package/lib-esm/Button/ButtonClose.d.ts +30 -30
- package/lib-esm/Button/ButtonDanger.d.ts +12 -12
- package/lib-esm/Button/ButtonInvisible.d.ts +12 -12
- package/lib-esm/Button/ButtonOutline.d.ts +12 -12
- package/lib-esm/Button/ButtonPrimary.d.ts +12 -12
- package/lib-esm/Button/ButtonStyles.js +1 -1
- package/lib-esm/CircleBadge.d.ts +2 -2
- package/lib-esm/CircleOcticon.d.ts +35 -35
- package/lib-esm/Dialog/Dialog.d.ts +4 -4
- package/lib-esm/Dialog/Dialog.js +12 -21
- package/lib-esm/Dialog.d.ts +37 -37
- package/lib-esm/Dropdown.d.ts +91 -171
- package/lib-esm/Dropdown.js +4 -3
- package/lib-esm/DropdownMenu/DropdownButton.d.ts +32 -32
- package/lib-esm/FilterList.d.ts +27 -27
- package/lib-esm/Flash.d.ts +1 -1
- package/lib-esm/Label.d.ts +1 -1
- package/lib-esm/NewButton/button.d.ts +579 -0
- package/lib-esm/NewButton/button.js +274 -0
- package/lib-esm/NewButton/counter.d.ts +6 -0
- package/lib-esm/NewButton/counter.js +21 -0
- package/lib-esm/NewButton/index.d.ts +4 -0
- package/lib-esm/NewButton/index.js +3 -0
- package/lib-esm/Position.d.ts +4 -4
- package/lib-esm/SelectMenu/SelectMenu.d.ts +151 -151
- package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/lib-esm/SelectMenu/SelectMenuModal.d.ts +1 -1
- package/lib-esm/TextInputWithTokens.d.ts +9 -13
- package/lib-esm/TextInputWithTokens.js +30 -101
- package/lib-esm/Timeline.d.ts +35 -35
- package/lib-esm/Token/AvatarToken.d.ts +1 -1
- package/lib-esm/Token/IssueLabelToken.d.ts +1 -1
- package/lib-esm/Token/Token.d.ts +1 -1
- package/lib-esm/Token/Token.js +2 -13
- package/lib-esm/Token/TokenBase.js +4 -0
- package/lib-esm/Token/_RemoveTokenButton.js +2 -11
- package/lib-esm/_TextInputWrapper.js +1 -1
- package/lib-esm/constants.js +3 -1
- package/lib-esm/index.d.ts +2 -0
- package/lib-esm/index.js +1 -0
- package/lib-esm/sx.d.ts +2 -8
- package/lib-esm/theme.d.ts +0 -78
- package/lib-esm/theme.js +1 -2
- package/lib-esm/utils/testing.d.ts +1 -1
- package/package.json +1 -2
- package/lib/utils/types/KeyPaths.d.ts +0 -3
- package/lib/utils/types/KeyPaths.js +0 -1
- package/lib-esm/utils/types/KeyPaths.d.ts +0 -3
- package/lib-esm/utils/types/KeyPaths.js +0 -1
@@ -3,5 +3,5 @@ import { TokenBaseProps } from './TokenBase';
|
|
3
3
|
export interface AvatarTokenProps extends TokenBaseProps {
|
4
4
|
avatarSrc: string;
|
5
5
|
}
|
6
|
-
declare const AvatarToken: React.ForwardRefExoticComponent<Pick<AvatarTokenProps, "
|
6
|
+
declare const AvatarToken: React.ForwardRefExoticComponent<Pick<AvatarTokenProps, "color" | "content" | "height" | "translate" | "width" | "form" | "list" | "cite" | "data" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "text" | "default" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sizes" | "start" | "size" | "wrap" | "open" | "value" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "as" | "step" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "href" | "classID" | "useMap" | "wmode" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "alt" | "src" | "srcSet" | "async" | "hrefLang" | "integrity" | "rel" | "charSet" | "selected" | "cellPadding" | "cellSpacing" | "download" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "dateTime" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "defer" | "nonce" | "scoped" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "kind" | "srcLang" | "poster" | "onRemove" | "isSelected" | "avatarSrc"> & React.RefAttributes<HTMLElement>>;
|
7
7
|
export default AvatarToken;
|
@@ -10,5 +10,5 @@ export interface IssueLabelTokenProps extends TokenBaseProps {
|
|
10
10
|
*/
|
11
11
|
hideRemoveButton?: boolean;
|
12
12
|
}
|
13
|
-
declare const IssueLabelToken: React.ForwardRefExoticComponent<Pick<IssueLabelTokenProps, "
|
13
|
+
declare const IssueLabelToken: React.ForwardRefExoticComponent<Pick<IssueLabelTokenProps, "color" | "content" | "height" | "translate" | "width" | "form" | "list" | "cite" | "data" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "text" | "default" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sizes" | "start" | "size" | "wrap" | "open" | "value" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "as" | "step" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "href" | "classID" | "useMap" | "wmode" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "alt" | "src" | "srcSet" | "async" | "hrefLang" | "integrity" | "rel" | "charSet" | "selected" | "cellPadding" | "cellSpacing" | "download" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "dateTime" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "defer" | "nonce" | "scoped" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "kind" | "srcLang" | "poster" | "onRemove" | "isSelected" | "hideRemoveButton" | "fillColor"> & React.RefAttributes<HTMLElement>>;
|
14
14
|
export default IssueLabelToken;
|
package/lib/Token/Token.d.ts
CHANGED
@@ -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, "
|
14
|
+
declare const Token: React.ForwardRefExoticComponent<Pick<TokenProps & SxProp, "color" | "content" | "height" | "translate" | "width" | "form" | "list" | "cite" | "data" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "text" | "default" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sizes" | "start" | "size" | "wrap" | "open" | "sx" | "value" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "as" | "step" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "href" | "classID" | "useMap" | "wmode" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "alt" | "src" | "srcSet" | "async" | "hrefLang" | "integrity" | "rel" | "charSet" | "selected" | "cellPadding" | "cellSpacing" | "download" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "dateTime" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "defer" | "nonce" | "scoped" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "kind" | "srcLang" | "poster" | "leadingVisual" | "onRemove" | "isSelected" | "hideRemoveButton"> & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement | HTMLSpanElement>>;
|
15
15
|
export default Token;
|
package/lib/Token/Token.js
CHANGED
@@ -39,16 +39,7 @@ const DefaultTokenStyled = (0, _styledComponents.default)(_TokenBase.default).wi
|
|
39
39
|
const LeadingVisualContainer = (0, _styledComponents.default)('span').withConfig({
|
40
40
|
displayName: "Token__LeadingVisualContainer",
|
41
41
|
componentId: "sc-1dg52pw-1"
|
42
|
-
})(["flex-shrink:0;line-height:0;"
|
43
|
-
switch (props.size) {
|
44
|
-
case 'large':
|
45
|
-
case 'extralarge':
|
46
|
-
return (0, _styledComponents.css)(["margin-right:", ";"], (0, _constants.get)('space.2'));
|
47
|
-
|
48
|
-
default:
|
49
|
-
return (0, _styledComponents.css)(["margin-right:", ";"], (0, _constants.get)('space.1'));
|
50
|
-
}
|
51
|
-
});
|
42
|
+
})(["flex-shrink:0;line-height:0;"]);
|
52
43
|
const Token = /*#__PURE__*/(0, _react.forwardRef)((props, forwardedRef) => {
|
53
44
|
const {
|
54
45
|
as,
|
@@ -83,9 +74,7 @@ const Token = /*#__PURE__*/(0, _react.forwardRef)((props, forwardedRef) => {
|
|
83
74
|
isTokenInteractive: (0, _TokenBase.isTokenInteractive)(props)
|
84
75
|
}, !hasMultipleActionTargets ? interactiveTokenProps : {}, rest, {
|
85
76
|
ref: forwardedRef
|
86
|
-
}), LeadingVisual ? /*#__PURE__*/_react.default.createElement(LeadingVisualContainer, {
|
87
|
-
size: size
|
88
|
-
}, /*#__PURE__*/_react.default.createElement(LeadingVisual, null)) : null, /*#__PURE__*/_react.default.createElement(_TokenTextContainer.default, hasMultipleActionTargets ? interactiveTokenProps : {}, text), !hideRemoveButton && onRemove ? /*#__PURE__*/_react.default.createElement(_RemoveTokenButton.default, {
|
77
|
+
}), LeadingVisual ? /*#__PURE__*/_react.default.createElement(LeadingVisualContainer, null, /*#__PURE__*/_react.default.createElement(LeadingVisual, null)) : null, /*#__PURE__*/_react.default.createElement(_TokenTextContainer.default, hasMultipleActionTargets ? interactiveTokenProps : {}, text), !hideRemoveButton && onRemove ? /*#__PURE__*/_react.default.createElement(_RemoveTokenButton.default, {
|
89
78
|
borderOffset: tokenBorderWidthPx,
|
90
79
|
onClick: onRemoveClick,
|
91
80
|
size: size,
|
package/lib/Token/TokenBase.js
CHANGED
@@ -38,6 +38,7 @@ const variants = (0, _styledSystem.variant)({
|
|
38
38
|
variants: {
|
39
39
|
small: {
|
40
40
|
fontSize: 0,
|
41
|
+
gap: 1,
|
41
42
|
height: tokenSizes.small,
|
42
43
|
// without setting lineHeight to match height, the "x" appears vertically mis-aligned
|
43
44
|
lineHeight: tokenSizes.small,
|
@@ -50,6 +51,7 @@ const variants = (0, _styledSystem.variant)({
|
|
50
51
|
},
|
51
52
|
medium: {
|
52
53
|
fontSize: 0,
|
54
|
+
gap: 1,
|
53
55
|
height: tokenSizes.medium,
|
54
56
|
lineHeight: tokenSizes.medium,
|
55
57
|
paddingLeft: 2,
|
@@ -59,6 +61,7 @@ const variants = (0, _styledSystem.variant)({
|
|
59
61
|
},
|
60
62
|
large: {
|
61
63
|
fontSize: 0,
|
64
|
+
gap: 2,
|
62
65
|
height: tokenSizes.large,
|
63
66
|
lineHeight: tokenSizes.large,
|
64
67
|
paddingLeft: 2,
|
@@ -68,6 +71,7 @@ const variants = (0, _styledSystem.variant)({
|
|
68
71
|
},
|
69
72
|
extralarge: {
|
70
73
|
fontSize: 1,
|
74
|
+
gap: 2,
|
71
75
|
height: tokenSizes.extralarge,
|
72
76
|
lineHeight: tokenSizes.extralarge,
|
73
77
|
paddingLeft: 3,
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
10
10
|
var _octiconsReact = require("@primer/octicons-react");
|
11
11
|
|
12
|
-
var _styledComponents =
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
13
13
|
|
14
14
|
var _styledSystem = require("styled-system");
|
15
15
|
|
@@ -19,10 +19,6 @@ var _sx = _interopRequireDefault(require("../sx"));
|
|
19
19
|
|
20
20
|
var _TokenBase = require("./TokenBase");
|
21
21
|
|
22
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
23
|
-
|
24
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
25
|
-
|
26
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
27
23
|
|
28
24
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
@@ -54,16 +50,7 @@ const getTokenButtonIconSize = size => parseInt(_TokenBase.tokenSizes[size || _T
|
|
54
50
|
const StyledTokenButton = _styledComponents.default.span.withConfig({
|
55
51
|
displayName: "_RemoveTokenButton__StyledTokenButton",
|
56
52
|
componentId: "sc-14lvcw1-0"
|
57
|
-
})(["background-color:transparent;font-family:inherit;color:currentColor;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;user-select:none;appearance:none;text-decoration:none;padding:0;transform:", ";align-self:baseline;border:0;border-radius:999px
|
58
|
-
switch (props.size) {
|
59
|
-
case 'large':
|
60
|
-
case 'extralarge':
|
61
|
-
return (0, _styledComponents.css)(["margin-left:", ";"], (0, _constants.get)('space.2'));
|
62
|
-
|
63
|
-
default:
|
64
|
-
return (0, _styledComponents.css)(["margin-left:", ";"], (0, _constants.get)('space.1'));
|
65
|
-
}
|
66
|
-
}, (0, _constants.get)('colors.neutral.muted'), (0, _constants.get)('colors.neutral.subtle'), variants, _sx.default);
|
53
|
+
})(["background-color:transparent;font-family:inherit;color:currentColor;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;user-select:none;appearance:none;text-decoration:none;padding:0;transform:", ";align-self:baseline;border:0;border-radius:999px;&:hover,&:focus{background-color:", ";}&:active{background-color:", ";}", " ", ""], props => `translate(${props.borderOffset}px, -${props.borderOffset}px)`, (0, _constants.get)('colors.neutral.muted'), (0, _constants.get)('colors.neutral.subtle'), variants, _sx.default);
|
67
54
|
|
68
55
|
const RemoveTokenButton = ({
|
69
56
|
'aria-label': ariaLabel,
|
package/lib/_TextInputWrapper.js
CHANGED
@@ -39,7 +39,7 @@ const sizeVariants = (0, _styledSystem.variant)({
|
|
39
39
|
const TextInputWrapper = _styledComponents.default.span.withConfig({
|
40
40
|
displayName: "_TextInputWrapper__TextInputWrapper",
|
41
41
|
componentId: "sc-5vfcis-0"
|
42
|
-
})(["display:inline-flex;align-items:stretch;min-height:34px;font-size:", ";line-height:20px;color:", ";vertical-align:middle;background-repeat:no-repeat;background-position:right 8px center;border:1px solid ", ";border-radius:", ";outline:none;box-shadow:", ";
|
42
|
+
})(["display:inline-flex;align-items:stretch;min-height:34px;font-size:", ";line-height:20px;color:", ";vertical-align:middle;background-repeat:no-repeat;background-position:right 8px center;border:1px solid ", ";border-radius:", ";outline:none;box-shadow:", ";", " .TextInput-icon{align-self:center;color:", ";margin:0 ", ";flex-shrink:0;}&:focus-within{border-color:", ";box-shadow:", ";}", " ", " ", " @media (min-width:", "){font-size:", ";}", " ", " ", " ", " ", ";"], (0, _constants.get)('fontSizes.1'), (0, _constants.get)('colors.fg.default'), (0, _constants.get)('colors.border.default'), (0, _constants.get)('radii.2'), (0, _constants.get)('shadows.primer.shadow.inset'), props => {
|
43
43
|
if (props.hasIcon) {
|
44
44
|
return (0, _styledComponents.css)(["padding:0;"]);
|
45
45
|
} else {
|
package/lib/constants.js
CHANGED
@@ -24,7 +24,9 @@ const {
|
|
24
24
|
system
|
25
25
|
} = styledSystem;
|
26
26
|
|
27
|
-
const get = key =>
|
27
|
+
const get = key => {
|
28
|
+
return (0, _themeGet.themeGet)(key, getKey(_theme.default, key));
|
29
|
+
}; // Common props
|
28
30
|
|
29
31
|
|
30
32
|
exports.get = get;
|
package/lib/index.d.ts
CHANGED
@@ -37,6 +37,8 @@ export type { BranchNameProps } from './BranchName';
|
|
37
37
|
export { default as Breadcrumbs, Breadcrumb } from './Breadcrumbs';
|
38
38
|
export type { BreadcrumbsProps, BreadcrumbsItemProps, BreadcrumbProps, BreadcrumbItemProps } from './Breadcrumbs';
|
39
39
|
export { default as Button, ButtonDanger, ButtonOutline, ButtonPrimary, ButtonInvisible, ButtonTableList, ButtonClose, ButtonGroup } from './Button';
|
40
|
+
export { default as NewButton } from './NewButton';
|
41
|
+
export type { ButtonProps as NewButtonProps } from './NewButton';
|
40
42
|
export type { ButtonProps, ButtonDangerProps, ButtonOutlineProps, ButtonPrimaryProps, ButtonInvisibleProps, ButtonTableListProps, ButtonCloseProps, ButtonGroupProps } from './Button';
|
41
43
|
export { default as Caret } from './Caret';
|
42
44
|
export type { CaretProps } from './Caret';
|
package/lib/index.js
CHANGED
@@ -243,6 +243,12 @@ Object.defineProperty(exports, "ButtonGroup", {
|
|
243
243
|
return _Button.ButtonGroup;
|
244
244
|
}
|
245
245
|
});
|
246
|
+
Object.defineProperty(exports, "NewButton", {
|
247
|
+
enumerable: true,
|
248
|
+
get: function () {
|
249
|
+
return _NewButton.default;
|
250
|
+
}
|
251
|
+
});
|
246
252
|
Object.defineProperty(exports, "Caret", {
|
247
253
|
enumerable: true,
|
248
254
|
get: function () {
|
@@ -552,6 +558,8 @@ var _Breadcrumbs = _interopRequireWildcard(require("./Breadcrumbs"));
|
|
552
558
|
|
553
559
|
var _Button = _interopRequireWildcard(require("./Button"));
|
554
560
|
|
561
|
+
var _NewButton = _interopRequireDefault(require("./NewButton"));
|
562
|
+
|
555
563
|
var _Caret = _interopRequireDefault(require("./Caret"));
|
556
564
|
|
557
565
|
var _CircleBadge = _interopRequireDefault(require("./CircleBadge"));
|
package/lib/sx.d.ts
CHANGED
@@ -1,12 +1,6 @@
|
|
1
|
-
import {
|
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?:
|
3
|
+
sx?: SystemStyleObject;
|
10
4
|
}
|
11
5
|
declare const sx: (props: SxProp) => import("@styled-system/css").CssFunctionReturnType;
|
12
6
|
export default sx;
|
package/lib/theme.d.ts
CHANGED
@@ -1,80 +1,2 @@
|
|
1
1
|
import { theme } from './theme-preval';
|
2
|
-
import { KeyPaths } from './utils/types/KeyPaths';
|
3
2
|
export default theme;
|
4
|
-
declare type ThemeColors = {
|
5
|
-
fg: {
|
6
|
-
default: string;
|
7
|
-
muted: string;
|
8
|
-
subtle: string;
|
9
|
-
onEmphasis: string;
|
10
|
-
};
|
11
|
-
canvas: {
|
12
|
-
default: string;
|
13
|
-
overlay: string;
|
14
|
-
inset: string;
|
15
|
-
subtle: string;
|
16
|
-
};
|
17
|
-
border: {
|
18
|
-
default: string;
|
19
|
-
muted: string;
|
20
|
-
subtle: string;
|
21
|
-
};
|
22
|
-
neutral: {
|
23
|
-
emphasisPlus: string;
|
24
|
-
emphasis: string;
|
25
|
-
muted: string;
|
26
|
-
subtle: string;
|
27
|
-
};
|
28
|
-
accent: {
|
29
|
-
fg: string;
|
30
|
-
emphasis: string;
|
31
|
-
muted: string;
|
32
|
-
subtle: string;
|
33
|
-
};
|
34
|
-
success: {
|
35
|
-
fg: string;
|
36
|
-
emphasis: string;
|
37
|
-
muted: string;
|
38
|
-
subtle: string;
|
39
|
-
};
|
40
|
-
attention: {
|
41
|
-
fg: string;
|
42
|
-
emphasis: string;
|
43
|
-
muted: string;
|
44
|
-
subtle: string;
|
45
|
-
};
|
46
|
-
severe: {
|
47
|
-
fg: string;
|
48
|
-
emphasis: string;
|
49
|
-
muted: string;
|
50
|
-
subtle: string;
|
51
|
-
};
|
52
|
-
danger: {
|
53
|
-
fg: string;
|
54
|
-
emphasis: string;
|
55
|
-
muted: string;
|
56
|
-
subtle: string;
|
57
|
-
};
|
58
|
-
done: {
|
59
|
-
fg: string;
|
60
|
-
emphasis: string;
|
61
|
-
muted: string;
|
62
|
-
subtle: string;
|
63
|
-
};
|
64
|
-
sponsors: {
|
65
|
-
fg: string;
|
66
|
-
emphasis: string;
|
67
|
-
muted: string;
|
68
|
-
subtle: string;
|
69
|
-
};
|
70
|
-
};
|
71
|
-
declare type ThemeShadows = {
|
72
|
-
shadow: {
|
73
|
-
small: string;
|
74
|
-
medium: string;
|
75
|
-
large: string;
|
76
|
-
extraLarge: string;
|
77
|
-
};
|
78
|
-
};
|
79
|
-
export declare type ThemeColorPaths = KeyPaths<ThemeColors>;
|
80
|
-
export declare type ThemeShadowPaths = KeyPaths<ThemeShadows>;
|
package/lib/theme.js
CHANGED
@@ -7,7 +7,5 @@ exports.default = void 0;
|
|
7
7
|
|
8
8
|
var _themePreval = require("./theme-preval");
|
9
9
|
|
10
|
-
var _default = _themePreval.theme;
|
11
|
-
// were exports from primitives (or a different shape but derived from those exports).
|
12
|
-
|
10
|
+
var _default = _themePreval.theme;
|
13
11
|
exports.default = _default;
|
package/lib/utils/testing.d.ts
CHANGED
@@ -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<"
|
56
|
+
colorSchemes: Record<"dark" | "light" | "light_protanopia" | "dark_dimmed" | "dark_high_contrast" | "dark_protanopia", Record<"colors" | "shadows", Partial<{
|
57
57
|
canvasDefaultTransparent: string;
|
58
58
|
marketingIcon: {
|
59
59
|
primary: string;
|
package/lib-esm/ActionMenu.js
CHANGED
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
3
3
|
import { List } from './ActionList/List';
|
4
4
|
import { Item } from './ActionList/Item';
|
5
5
|
import { Divider } from './ActionList/Divider';
|
6
|
-
import
|
6
|
+
import NewButton from './NewButton';
|
7
7
|
import React, { useCallback, useMemo } from 'react';
|
8
8
|
import { AnchoredOverlay } from './AnchoredOverlay';
|
9
9
|
import { useProvidedStateOrCreate } from './hooks/useProvidedStateOrCreate';
|
@@ -18,7 +18,7 @@ ActionMenuItem.displayName = 'ActionMenu.Item';
|
|
18
18
|
|
19
19
|
const ActionMenuBase = ({
|
20
20
|
anchorContent,
|
21
|
-
renderAnchor = props => /*#__PURE__*/React.createElement(
|
21
|
+
renderAnchor = props => /*#__PURE__*/React.createElement(NewButton, props),
|
22
22
|
anchorRef: externalAnchorRef,
|
23
23
|
onAction,
|
24
24
|
open,
|
@@ -31,12 +31,10 @@ declare const _default: React.FC<{
|
|
31
31
|
minWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
32
32
|
translate?: "yes" | "no" | undefined;
|
33
33
|
width?: import("styled-system").ResponsiveValue<import("csstype").Property.Width<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
34
|
-
hidden?: boolean | undefined;
|
35
|
-
children?: React.ReactNode;
|
36
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
37
34
|
slot?: string | undefined;
|
38
35
|
style?: React.CSSProperties | undefined;
|
39
36
|
title?: string | undefined;
|
37
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
40
38
|
key?: React.Key | null | undefined;
|
41
39
|
defaultChecked?: boolean | undefined;
|
42
40
|
defaultValue?: string | number | readonly string[] | undefined;
|
@@ -44,10 +42,11 @@ declare const _default: React.FC<{
|
|
44
42
|
suppressHydrationWarning?: boolean | undefined;
|
45
43
|
accessKey?: string | undefined;
|
46
44
|
className?: string | undefined;
|
47
|
-
contentEditable?:
|
45
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
48
46
|
contextMenu?: string | undefined;
|
49
47
|
dir?: string | undefined;
|
50
48
|
draggable?: (boolean | "true" | "false") | undefined;
|
49
|
+
hidden?: boolean | undefined;
|
51
50
|
id?: string | undefined;
|
52
51
|
lang?: string | undefined;
|
53
52
|
placeholder?: string | undefined;
|
@@ -74,11 +73,11 @@ declare const _default: React.FC<{
|
|
74
73
|
results?: number | undefined;
|
75
74
|
security?: string | undefined;
|
76
75
|
unselectable?: "on" | "off" | undefined;
|
77
|
-
inputMode?: "
|
76
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
78
77
|
is?: string | undefined;
|
79
78
|
'aria-activedescendant'?: string | undefined;
|
80
79
|
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
81
|
-
'aria-autocomplete'?: "
|
80
|
+
'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
|
82
81
|
'aria-busy'?: boolean | "true" | "false" | undefined;
|
83
82
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
84
83
|
'aria-colcount'?: number | undefined;
|
@@ -89,12 +88,12 @@ declare const _default: React.FC<{
|
|
89
88
|
'aria-describedby'?: string | undefined;
|
90
89
|
'aria-details'?: string | undefined;
|
91
90
|
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
92
|
-
'aria-dropeffect'?: "link" | "none" | "copy" | "
|
91
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
93
92
|
'aria-errormessage'?: string | undefined;
|
94
93
|
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
95
94
|
'aria-flowto'?: string | undefined;
|
96
95
|
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
97
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "
|
96
|
+
'aria-haspopup'?: boolean | "grid" | "dialog" | "listbox" | "menu" | "tree" | "true" | "false" | undefined;
|
98
97
|
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
99
98
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
100
99
|
'aria-keyshortcuts'?: string | undefined;
|
@@ -124,6 +123,7 @@ declare const _default: React.FC<{
|
|
124
123
|
'aria-valuemin'?: number | undefined;
|
125
124
|
'aria-valuenow'?: number | undefined;
|
126
125
|
'aria-valuetext'?: string | undefined;
|
126
|
+
children?: React.ReactNode;
|
127
127
|
dangerouslySetInnerHTML?: {
|
128
128
|
__html: string;
|
129
129
|
} | undefined;
|
@@ -288,7 +288,7 @@ declare const _default: React.FC<{
|
|
288
288
|
onTransitionEnd?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
|
289
289
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
|
290
290
|
block?: boolean | undefined;
|
291
|
-
sx?: import("
|
291
|
+
sx?: import("@styled-system/css").SystemStyleObject | undefined;
|
292
292
|
disabled?: boolean | undefined;
|
293
293
|
variant?: "small" | "large" | undefined;
|
294
294
|
hasIcon?: boolean | undefined;
|
@@ -23,12 +23,10 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
23
23
|
minWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
24
24
|
translate?: "yes" | "no" | undefined;
|
25
25
|
width?: import("styled-system").ResponsiveValue<import("csstype").Property.Width<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
26
|
-
hidden?: boolean | undefined;
|
27
|
-
children?: React.ReactNode;
|
28
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
29
26
|
slot?: string | undefined;
|
30
27
|
style?: React.CSSProperties | undefined;
|
31
28
|
title?: string | undefined;
|
29
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
32
30
|
key?: React.Key | null | undefined;
|
33
31
|
defaultChecked?: boolean | undefined;
|
34
32
|
defaultValue?: string | number | readonly string[] | undefined;
|
@@ -36,10 +34,11 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
36
34
|
suppressHydrationWarning?: boolean | undefined;
|
37
35
|
accessKey?: string | undefined;
|
38
36
|
className?: string | undefined;
|
39
|
-
contentEditable?:
|
37
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
40
38
|
contextMenu?: string | undefined;
|
41
39
|
dir?: string | undefined;
|
42
40
|
draggable?: (boolean | "true" | "false") | undefined;
|
41
|
+
hidden?: boolean | undefined;
|
43
42
|
id?: string | undefined;
|
44
43
|
lang?: string | undefined;
|
45
44
|
placeholder?: string | undefined;
|
@@ -66,11 +65,11 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
66
65
|
results?: number | undefined;
|
67
66
|
security?: string | undefined;
|
68
67
|
unselectable?: "on" | "off" | undefined;
|
69
|
-
inputMode?: "
|
68
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
70
69
|
is?: string | undefined;
|
71
70
|
'aria-activedescendant'?: string | undefined;
|
72
71
|
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
73
|
-
'aria-autocomplete'?: "
|
72
|
+
'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
|
74
73
|
'aria-busy'?: boolean | "true" | "false" | undefined;
|
75
74
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
76
75
|
'aria-colcount'?: number | undefined;
|
@@ -81,12 +80,12 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
81
80
|
'aria-describedby'?: string | undefined;
|
82
81
|
'aria-details'?: string | undefined;
|
83
82
|
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
84
|
-
'aria-dropeffect'?: "link" | "none" | "copy" | "
|
83
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
85
84
|
'aria-errormessage'?: string | undefined;
|
86
85
|
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
87
86
|
'aria-flowto'?: string | undefined;
|
88
87
|
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
89
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "
|
88
|
+
'aria-haspopup'?: boolean | "grid" | "dialog" | "listbox" | "menu" | "tree" | "true" | "false" | undefined;
|
90
89
|
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
91
90
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
92
91
|
'aria-keyshortcuts'?: string | undefined;
|
@@ -116,6 +115,7 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
116
115
|
'aria-valuemin'?: number | undefined;
|
117
116
|
'aria-valuenow'?: number | undefined;
|
118
117
|
'aria-valuetext'?: string | undefined;
|
118
|
+
children?: React.ReactNode;
|
119
119
|
dangerouslySetInnerHTML?: {
|
120
120
|
__html: string;
|
121
121
|
} | undefined;
|
@@ -280,7 +280,7 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
280
280
|
onTransitionEnd?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
|
281
281
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLSpanElement> | undefined;
|
282
282
|
block?: boolean | undefined;
|
283
|
-
sx?: import("
|
283
|
+
sx?: import("@styled-system/css").SystemStyleObject | undefined;
|
284
284
|
disabled?: boolean | undefined;
|
285
285
|
variant?: "small" | "large" | undefined;
|
286
286
|
hasIcon?: boolean | undefined;
|