@twilio-paste/anchor
Advanced tools
Comparing version 9.0.2 to 10.0.0
import * as React from 'react'; | ||
import type { AnchorProps } from './types'; | ||
declare const DefaultAnchor: React.ForwardRefExoticComponent<Pick<AnchorProps, "element" | "width" | "minWidth" | "maxWidth" | "height" | "minHeight" | "maxHeight" | "size" | "display" | "verticalAlign" | "overflow" | "overflowX" | "overflowY" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "columnGap" | "rowGap" | "color" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "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" | "href" | "rel" | "showExternal" | "target" | "variant" | "i18nExternalLinkLabel" | "download" | "hrefLang" | "media" | "ping" | "type" | "referrerPolicy"> & React.RefAttributes<HTMLAnchorElement>>; | ||
declare const DefaultAnchor: React.ForwardRefExoticComponent<Pick<AnchorProps, "element" | "width" | "minWidth" | "maxWidth" | "height" | "minHeight" | "maxHeight" | "size" | "display" | "verticalAlign" | "overflow" | "overflowX" | "overflowY" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "columnGap" | "rowGap" | "color" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "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" | "onResize" | "onResizeCapture" | "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" | "href" | "rel" | "showExternal" | "target" | "variant" | "i18nExternalLinkLabel" | "download" | "hrefLang" | "media" | "ping" | "type" | "referrerPolicy"> & React.RefAttributes<HTMLAnchorElement>>; | ||
export { DefaultAnchor }; | ||
//# sourceMappingURL=DefaultAnchor.d.ts.map |
@@ -10,5 +10,5 @@ import * as React from 'react'; | ||
} | undefined; | ||
declare const Anchor: React.ForwardRefExoticComponent<Pick<AnchorProps, "element" | "width" | "minWidth" | "maxWidth" | "height" | "minHeight" | "maxHeight" | "size" | "display" | "verticalAlign" | "overflow" | "overflowX" | "overflowY" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "columnGap" | "rowGap" | "color" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "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" | "href" | "rel" | "showExternal" | "target" | "variant" | "i18nExternalLinkLabel" | "download" | "hrefLang" | "media" | "ping" | "type" | "referrerPolicy"> & React.RefAttributes<HTMLAnchorElement>>; | ||
declare const Anchor: React.ForwardRefExoticComponent<Pick<AnchorProps, "element" | "width" | "minWidth" | "maxWidth" | "height" | "minHeight" | "maxHeight" | "size" | "display" | "verticalAlign" | "overflow" | "overflowX" | "overflowY" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "columnGap" | "rowGap" | "color" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "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" | "onResize" | "onResizeCapture" | "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" | "href" | "rel" | "showExternal" | "target" | "variant" | "i18nExternalLinkLabel" | "download" | "hrefLang" | "media" | "ping" | "type" | "referrerPolicy"> & React.RefAttributes<HTMLAnchorElement>>; | ||
export { Anchor }; | ||
export * from './types'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -69,3 +69,3 @@ var __defProp = Object.defineProperty; | ||
_active: { | ||
color: "colorTextLinkStronger", | ||
color: "colorTextLinkStrongest", | ||
textDecoration: "none" | ||
@@ -75,4 +75,4 @@ }, | ||
boxShadow: "shadowFocus", | ||
color: "colorTextLinkStronger", | ||
textDecoration: "none" | ||
color: "colorTextLink", | ||
textDecoration: "underline" | ||
}, | ||
@@ -112,3 +112,3 @@ _hover: { | ||
color: "colorTextInverse", | ||
textDecoration: "none" | ||
textDecoration: "underline" | ||
}, | ||
@@ -115,0 +115,0 @@ _hover: { |
@@ -98,3 +98,3 @@ "use strict"; | ||
_active: { | ||
color: "colorTextLinkStronger", | ||
color: "colorTextLinkStrongest", | ||
textDecoration: "none" | ||
@@ -104,4 +104,4 @@ }, | ||
boxShadow: "shadowFocus", | ||
color: "colorTextLinkStronger", | ||
textDecoration: "none" | ||
color: "colorTextLink", | ||
textDecoration: "underline" | ||
}, | ||
@@ -141,3 +141,3 @@ _hover: { | ||
color: "colorTextInverse", | ||
textDecoration: "none" | ||
textDecoration: "underline" | ||
}, | ||
@@ -144,0 +144,0 @@ _hover: { |
@@ -1,1 +0,1 @@ | ||
var __defProp=Object.defineProperty,__defProps=Object.defineProperties;var __getOwnPropDescs=Object.getOwnPropertyDescriptors;var __getOwnPropSymbols=Object.getOwnPropertySymbols;var __hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable;var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,__spreadValues=(a,b)=>{for(var prop in b||(b={}))__hasOwnProp.call(b,prop)&&__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(b))__propIsEnum.call(b,prop)&&__defNormalProp(a,prop,b[prop]);return a},__spreadProps=(a,b)=>__defProps(a,__getOwnPropDescs(b));var __objRest=(source,exclude)=>{var target={};for(var prop in source)__hasOwnProp.call(source,prop)&&exclude.indexOf(prop)<0&&(target[prop]=source[prop]);if(source!=null&&__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(source))exclude.indexOf(prop)<0&&__propIsEnum.call(source,prop)&&(target[prop]=source[prop]);return target};import*as React3 from"react";import{Box as Box3,safelySpreadBoxProps}from"@twilio-paste/box";import{LinkExternalIcon}from"@twilio-paste/icons/esm/LinkExternalIcon";import*as React from"react";import{Box}from"@twilio-paste/box";import PropTypes from"prop-types";var AnchorPropTypes={children:PropTypes.node.isRequired,href:PropTypes.string.isRequired,rel:PropTypes.string,showExternal:PropTypes.bool,tabIndex:PropTypes.oneOf([0,-1]),target:PropTypes.oneOf(["_self","_blank","_parent","_top"]),variant:PropTypes.oneOf(["default","inverse"]),element:PropTypes.string,i18nExternalLinkLabel:PropTypes.string};var DefaultAnchor=React.forwardRef((props,ref)=>React.createElement(Box,__spreadProps(__spreadValues({},props),{as:"a",color:"colorTextLink",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit",outline:"none",ref,textDecoration:"underline",_active:{color:"colorTextLinkStronger",textDecoration:"none"},_focus:{boxShadow:"shadowFocus",color:"colorTextLinkStronger",textDecoration:"none"},_hover:{color:"colorTextLinkStronger",textDecoration:"none"}}),props.children));DefaultAnchor.displayName="DefaultAnchor";import*as React2 from"react";import{Box as Box2}from"@twilio-paste/box";var InverseAnchor=React2.forwardRef((props,ref)=>React2.createElement(Box2,__spreadProps(__spreadValues({},props),{as:"a",color:"colorTextInverse",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit",outline:"none",ref,textDecoration:"underline",_active:{color:"colorTextInverse",textDecoration:"none"},_focus:{boxShadow:"shadowFocusInverse",color:"colorTextInverse",textDecoration:"none"},_hover:{color:"colorTextInverse",textDecoration:"none"}}),props.children));InverseAnchor.displayName="InverseAnchor";var AnchorVariants={inverse:InverseAnchor,default:DefaultAnchor},EXTERNAL_URL_REGEX=/^(https?:)\S*$/,EXTERNAL_TARGET_DEFAULT="_blank",EXTERNAL_REL_DEFAULT="noreferrer noopener",isExternalUrl=url=>EXTERNAL_URL_REGEX.test(url),secureExternalLink=href=>{if(!!isExternalUrl(href))return{rel:EXTERNAL_REL_DEFAULT,target:EXTERNAL_TARGET_DEFAULT}},Anchor=React3.forwardRef((_a,ref)=>{var _b=_a,{element="ANCHOR",variant="default",showExternal,display,height,minHeight,maxHeight,width,minWidth,maxWidth,size,margin,marginBottom,marginLeft,marginRight,marginTop,marginX=null,marginY=null,padding,paddingBottom,paddingLeft,paddingRight,paddingTop,paddingX=null,paddingY=null,verticalAlign,i18nExternalLinkLabel="(link takes you to an external page)"}=_b,props=__objRest(_b,["element","variant","showExternal","display","height","minHeight","maxHeight","width","minWidth","maxWidth","size","margin","marginBottom","marginLeft","marginRight","marginTop","marginX","marginY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","paddingX","paddingY","verticalAlign","i18nExternalLinkLabel"]);let AnchorComponent=AnchorVariants[variant];return React3.createElement(AnchorComponent,__spreadProps(__spreadValues(__spreadValues({href:props.href,ref,variant},secureExternalLink(props.href)),safelySpreadBoxProps(props)),{element,display,height,minHeight,maxHeight,width,minWidth,maxWidth,size,margin,marginBottom,marginLeft,marginRight,marginTop,marginX,marginY,padding,paddingBottom,paddingLeft,paddingRight,paddingTop,paddingX,paddingY,verticalAlign}),showExternal?React3.createElement(Box3,{as:"span"},props.children,React3.createElement(Box3,{as:"span",display:"inline-block",flexShrink:0,verticalAlign:"middle"},React3.createElement(LinkExternalIcon,{decorative:!1,title:i18nExternalLinkLabel}))):props.children)});Anchor.displayName="Anchor";Anchor.propTypes=AnchorPropTypes;export{Anchor,isExternalUrl,secureExternalLink}; | ||
var __defProp=Object.defineProperty,__defProps=Object.defineProperties;var __getOwnPropDescs=Object.getOwnPropertyDescriptors;var __getOwnPropSymbols=Object.getOwnPropertySymbols;var __hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable;var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,__spreadValues=(a,b)=>{for(var prop in b||(b={}))__hasOwnProp.call(b,prop)&&__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(b))__propIsEnum.call(b,prop)&&__defNormalProp(a,prop,b[prop]);return a},__spreadProps=(a,b)=>__defProps(a,__getOwnPropDescs(b));var __objRest=(source,exclude)=>{var target={};for(var prop in source)__hasOwnProp.call(source,prop)&&exclude.indexOf(prop)<0&&(target[prop]=source[prop]);if(source!=null&&__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(source))exclude.indexOf(prop)<0&&__propIsEnum.call(source,prop)&&(target[prop]=source[prop]);return target};import*as React3 from"react";import{Box as Box3,safelySpreadBoxProps}from"@twilio-paste/box";import{LinkExternalIcon}from"@twilio-paste/icons/esm/LinkExternalIcon";import*as React from"react";import{Box}from"@twilio-paste/box";import PropTypes from"prop-types";var AnchorPropTypes={children:PropTypes.node.isRequired,href:PropTypes.string.isRequired,rel:PropTypes.string,showExternal:PropTypes.bool,tabIndex:PropTypes.oneOf([0,-1]),target:PropTypes.oneOf(["_self","_blank","_parent","_top"]),variant:PropTypes.oneOf(["default","inverse"]),element:PropTypes.string,i18nExternalLinkLabel:PropTypes.string};var DefaultAnchor=React.forwardRef((props,ref)=>React.createElement(Box,__spreadProps(__spreadValues({},props),{as:"a",color:"colorTextLink",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit",outline:"none",ref,textDecoration:"underline",_active:{color:"colorTextLinkStrongest",textDecoration:"none"},_focus:{boxShadow:"shadowFocus",color:"colorTextLink",textDecoration:"underline"},_hover:{color:"colorTextLinkStronger",textDecoration:"none"}}),props.children));DefaultAnchor.displayName="DefaultAnchor";import*as React2 from"react";import{Box as Box2}from"@twilio-paste/box";var InverseAnchor=React2.forwardRef((props,ref)=>React2.createElement(Box2,__spreadProps(__spreadValues({},props),{as:"a",color:"colorTextInverse",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit",outline:"none",ref,textDecoration:"underline",_active:{color:"colorTextInverse",textDecoration:"none"},_focus:{boxShadow:"shadowFocusInverse",color:"colorTextInverse",textDecoration:"underline"},_hover:{color:"colorTextInverse",textDecoration:"none"}}),props.children));InverseAnchor.displayName="InverseAnchor";var AnchorVariants={inverse:InverseAnchor,default:DefaultAnchor},EXTERNAL_URL_REGEX=/^(https?:)\S*$/,EXTERNAL_TARGET_DEFAULT="_blank",EXTERNAL_REL_DEFAULT="noreferrer noopener",isExternalUrl=url=>EXTERNAL_URL_REGEX.test(url),secureExternalLink=href=>{if(!!isExternalUrl(href))return{rel:EXTERNAL_REL_DEFAULT,target:EXTERNAL_TARGET_DEFAULT}},Anchor=React3.forwardRef((_a,ref)=>{var _b=_a,{element="ANCHOR",variant="default",showExternal,display,height,minHeight,maxHeight,width,minWidth,maxWidth,size,margin,marginBottom,marginLeft,marginRight,marginTop,marginX=null,marginY=null,padding,paddingBottom,paddingLeft,paddingRight,paddingTop,paddingX=null,paddingY=null,verticalAlign,i18nExternalLinkLabel="(link takes you to an external page)"}=_b,props=__objRest(_b,["element","variant","showExternal","display","height","minHeight","maxHeight","width","minWidth","maxWidth","size","margin","marginBottom","marginLeft","marginRight","marginTop","marginX","marginY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","paddingX","paddingY","verticalAlign","i18nExternalLinkLabel"]);let AnchorComponent=AnchorVariants[variant];return React3.createElement(AnchorComponent,__spreadProps(__spreadValues(__spreadValues({href:props.href,ref,variant},secureExternalLink(props.href)),safelySpreadBoxProps(props)),{element,display,height,minHeight,maxHeight,width,minWidth,maxWidth,size,margin,marginBottom,marginLeft,marginRight,marginTop,marginX,marginY,padding,paddingBottom,paddingLeft,paddingRight,paddingTop,paddingX,paddingY,verticalAlign}),showExternal?React3.createElement(Box3,{as:"span"},props.children,React3.createElement(Box3,{as:"span",display:"inline-block",flexShrink:0,verticalAlign:"middle"},React3.createElement(LinkExternalIcon,{decorative:!1,title:i18nExternalLinkLabel}))):props.children)});Anchor.displayName="Anchor";Anchor.propTypes=AnchorPropTypes;export{Anchor,isExternalUrl,secureExternalLink}; |
@@ -1,1 +0,1 @@ | ||
"use strict";var __create=Object.create;var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropNames=Object.getOwnPropertyNames,__getOwnPropSymbols=Object.getOwnPropertySymbols,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable;var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,__spreadValues=(a,b)=>{for(var prop in b||(b={}))__hasOwnProp.call(b,prop)&&__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(b))__propIsEnum.call(b,prop)&&__defNormalProp(a,prop,b[prop]);return a},__spreadProps=(a,b)=>__defProps(a,__getOwnPropDescs(b));var __objRest=(source,exclude)=>{var target={};for(var prop in source)__hasOwnProp.call(source,prop)&&exclude.indexOf(prop)<0&&(target[prop]=source[prop]);if(source!=null&&__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(source))exclude.indexOf(prop)<0&&__propIsEnum.call(source,prop)&&(target[prop]=source[prop]);return target};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var src_exports={};__export(src_exports,{Anchor:()=>Anchor,isExternalUrl:()=>isExternalUrl,secureExternalLink:()=>secureExternalLink});module.exports=__toCommonJS(src_exports);var React3=__toESM(require("react")),import_box3=require("@twilio-paste/box"),import_LinkExternalIcon=require("@twilio-paste/icons/cjs/LinkExternalIcon");var React=__toESM(require("react")),import_box=require("@twilio-paste/box");var import_prop_types=__toESM(require("prop-types")),AnchorPropTypes={children:import_prop_types.default.node.isRequired,href:import_prop_types.default.string.isRequired,rel:import_prop_types.default.string,showExternal:import_prop_types.default.bool,tabIndex:import_prop_types.default.oneOf([0,-1]),target:import_prop_types.default.oneOf(["_self","_blank","_parent","_top"]),variant:import_prop_types.default.oneOf(["default","inverse"]),element:import_prop_types.default.string,i18nExternalLinkLabel:import_prop_types.default.string};var DefaultAnchor=React.forwardRef((props,ref)=>React.createElement(import_box.Box,__spreadProps(__spreadValues({},props),{as:"a",color:"colorTextLink",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit",outline:"none",ref,textDecoration:"underline",_active:{color:"colorTextLinkStronger",textDecoration:"none"},_focus:{boxShadow:"shadowFocus",color:"colorTextLinkStronger",textDecoration:"none"},_hover:{color:"colorTextLinkStronger",textDecoration:"none"}}),props.children));DefaultAnchor.displayName="DefaultAnchor";var React2=__toESM(require("react")),import_box2=require("@twilio-paste/box");var InverseAnchor=React2.forwardRef((props,ref)=>React2.createElement(import_box2.Box,__spreadProps(__spreadValues({},props),{as:"a",color:"colorTextInverse",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit",outline:"none",ref,textDecoration:"underline",_active:{color:"colorTextInverse",textDecoration:"none"},_focus:{boxShadow:"shadowFocusInverse",color:"colorTextInverse",textDecoration:"none"},_hover:{color:"colorTextInverse",textDecoration:"none"}}),props.children));InverseAnchor.displayName="InverseAnchor";var AnchorVariants={inverse:InverseAnchor,default:DefaultAnchor},EXTERNAL_URL_REGEX=/^(https?:)\S*$/,EXTERNAL_TARGET_DEFAULT="_blank",EXTERNAL_REL_DEFAULT="noreferrer noopener",isExternalUrl=url=>EXTERNAL_URL_REGEX.test(url),secureExternalLink=href=>{if(!!isExternalUrl(href))return{rel:EXTERNAL_REL_DEFAULT,target:EXTERNAL_TARGET_DEFAULT}},Anchor=React3.forwardRef((_a,ref)=>{var _b=_a,{element="ANCHOR",variant="default",showExternal,display,height,minHeight,maxHeight,width,minWidth,maxWidth,size,margin,marginBottom,marginLeft,marginRight,marginTop,marginX=null,marginY=null,padding,paddingBottom,paddingLeft,paddingRight,paddingTop,paddingX=null,paddingY=null,verticalAlign,i18nExternalLinkLabel="(link takes you to an external page)"}=_b,props=__objRest(_b,["element","variant","showExternal","display","height","minHeight","maxHeight","width","minWidth","maxWidth","size","margin","marginBottom","marginLeft","marginRight","marginTop","marginX","marginY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","paddingX","paddingY","verticalAlign","i18nExternalLinkLabel"]);let AnchorComponent=AnchorVariants[variant];return React3.createElement(AnchorComponent,__spreadProps(__spreadValues(__spreadValues({href:props.href,ref,variant},secureExternalLink(props.href)),(0,import_box3.safelySpreadBoxProps)(props)),{element,display,height,minHeight,maxHeight,width,minWidth,maxWidth,size,margin,marginBottom,marginLeft,marginRight,marginTop,marginX,marginY,padding,paddingBottom,paddingLeft,paddingRight,paddingTop,paddingX,paddingY,verticalAlign}),showExternal?React3.createElement(import_box3.Box,{as:"span"},props.children,React3.createElement(import_box3.Box,{as:"span",display:"inline-block",flexShrink:0,verticalAlign:"middle"},React3.createElement(import_LinkExternalIcon.LinkExternalIcon,{decorative:!1,title:i18nExternalLinkLabel}))):props.children)});Anchor.displayName="Anchor";Anchor.propTypes=AnchorPropTypes;0&&(module.exports={Anchor,isExternalUrl,secureExternalLink}); | ||
"use strict";var __create=Object.create;var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropNames=Object.getOwnPropertyNames,__getOwnPropSymbols=Object.getOwnPropertySymbols,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable;var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,__spreadValues=(a,b)=>{for(var prop in b||(b={}))__hasOwnProp.call(b,prop)&&__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(b))__propIsEnum.call(b,prop)&&__defNormalProp(a,prop,b[prop]);return a},__spreadProps=(a,b)=>__defProps(a,__getOwnPropDescs(b));var __objRest=(source,exclude)=>{var target={};for(var prop in source)__hasOwnProp.call(source,prop)&&exclude.indexOf(prop)<0&&(target[prop]=source[prop]);if(source!=null&&__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(source))exclude.indexOf(prop)<0&&__propIsEnum.call(source,prop)&&(target[prop]=source[prop]);return target};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var src_exports={};__export(src_exports,{Anchor:()=>Anchor,isExternalUrl:()=>isExternalUrl,secureExternalLink:()=>secureExternalLink});module.exports=__toCommonJS(src_exports);var React3=__toESM(require("react")),import_box3=require("@twilio-paste/box"),import_LinkExternalIcon=require("@twilio-paste/icons/cjs/LinkExternalIcon");var React=__toESM(require("react")),import_box=require("@twilio-paste/box");var import_prop_types=__toESM(require("prop-types")),AnchorPropTypes={children:import_prop_types.default.node.isRequired,href:import_prop_types.default.string.isRequired,rel:import_prop_types.default.string,showExternal:import_prop_types.default.bool,tabIndex:import_prop_types.default.oneOf([0,-1]),target:import_prop_types.default.oneOf(["_self","_blank","_parent","_top"]),variant:import_prop_types.default.oneOf(["default","inverse"]),element:import_prop_types.default.string,i18nExternalLinkLabel:import_prop_types.default.string};var DefaultAnchor=React.forwardRef((props,ref)=>React.createElement(import_box.Box,__spreadProps(__spreadValues({},props),{as:"a",color:"colorTextLink",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit",outline:"none",ref,textDecoration:"underline",_active:{color:"colorTextLinkStrongest",textDecoration:"none"},_focus:{boxShadow:"shadowFocus",color:"colorTextLink",textDecoration:"underline"},_hover:{color:"colorTextLinkStronger",textDecoration:"none"}}),props.children));DefaultAnchor.displayName="DefaultAnchor";var React2=__toESM(require("react")),import_box2=require("@twilio-paste/box");var InverseAnchor=React2.forwardRef((props,ref)=>React2.createElement(import_box2.Box,__spreadProps(__spreadValues({},props),{as:"a",color:"colorTextInverse",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit",outline:"none",ref,textDecoration:"underline",_active:{color:"colorTextInverse",textDecoration:"none"},_focus:{boxShadow:"shadowFocusInverse",color:"colorTextInverse",textDecoration:"underline"},_hover:{color:"colorTextInverse",textDecoration:"none"}}),props.children));InverseAnchor.displayName="InverseAnchor";var AnchorVariants={inverse:InverseAnchor,default:DefaultAnchor},EXTERNAL_URL_REGEX=/^(https?:)\S*$/,EXTERNAL_TARGET_DEFAULT="_blank",EXTERNAL_REL_DEFAULT="noreferrer noopener",isExternalUrl=url=>EXTERNAL_URL_REGEX.test(url),secureExternalLink=href=>{if(!!isExternalUrl(href))return{rel:EXTERNAL_REL_DEFAULT,target:EXTERNAL_TARGET_DEFAULT}},Anchor=React3.forwardRef((_a,ref)=>{var _b=_a,{element="ANCHOR",variant="default",showExternal,display,height,minHeight,maxHeight,width,minWidth,maxWidth,size,margin,marginBottom,marginLeft,marginRight,marginTop,marginX=null,marginY=null,padding,paddingBottom,paddingLeft,paddingRight,paddingTop,paddingX=null,paddingY=null,verticalAlign,i18nExternalLinkLabel="(link takes you to an external page)"}=_b,props=__objRest(_b,["element","variant","showExternal","display","height","minHeight","maxHeight","width","minWidth","maxWidth","size","margin","marginBottom","marginLeft","marginRight","marginTop","marginX","marginY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","paddingX","paddingY","verticalAlign","i18nExternalLinkLabel"]);let AnchorComponent=AnchorVariants[variant];return React3.createElement(AnchorComponent,__spreadProps(__spreadValues(__spreadValues({href:props.href,ref,variant},secureExternalLink(props.href)),(0,import_box3.safelySpreadBoxProps)(props)),{element,display,height,minHeight,maxHeight,width,minWidth,maxWidth,size,margin,marginBottom,marginLeft,marginRight,marginTop,marginX,marginY,padding,paddingBottom,paddingLeft,paddingRight,paddingTop,paddingX,paddingY,verticalAlign}),showExternal?React3.createElement(import_box3.Box,{as:"span"},props.children,React3.createElement(import_box3.Box,{as:"span",display:"inline-block",flexShrink:0,verticalAlign:"middle"},React3.createElement(import_LinkExternalIcon.LinkExternalIcon,{decorative:!1,title:i18nExternalLinkLabel}))):props.children)});Anchor.displayName="Anchor";Anchor.propTypes=AnchorPropTypes;0&&(module.exports={Anchor,isExternalUrl,secureExternalLink}); |
import * as React from 'react'; | ||
import type { AnchorProps } from './types'; | ||
declare const InverseAnchor: React.ForwardRefExoticComponent<Pick<AnchorProps, "element" | "width" | "minWidth" | "maxWidth" | "height" | "minHeight" | "maxHeight" | "size" | "display" | "verticalAlign" | "overflow" | "overflowX" | "overflowY" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "columnGap" | "rowGap" | "color" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "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" | "href" | "rel" | "showExternal" | "target" | "variant" | "i18nExternalLinkLabel" | "download" | "hrefLang" | "media" | "ping" | "type" | "referrerPolicy"> & React.RefAttributes<HTMLAnchorElement>>; | ||
declare const InverseAnchor: React.ForwardRefExoticComponent<Pick<AnchorProps, "element" | "width" | "minWidth" | "maxWidth" | "height" | "minHeight" | "maxHeight" | "size" | "display" | "verticalAlign" | "overflow" | "overflowX" | "overflowY" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "columnGap" | "rowGap" | "color" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "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" | "onResize" | "onResizeCapture" | "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" | "href" | "rel" | "showExternal" | "target" | "variant" | "i18nExternalLinkLabel" | "download" | "hrefLang" | "media" | "ping" | "type" | "referrerPolicy"> & React.RefAttributes<HTMLAnchorElement>>; | ||
export { InverseAnchor }; | ||
//# sourceMappingURL=InverseAnchor.d.ts.map |
{ | ||
"name": "@twilio-paste/anchor", | ||
"version": "9.0.2", | ||
"version": "10.0.0", | ||
"category": "interaction", | ||
@@ -28,27 +28,33 @@ "status": "production", | ||
"peerDependencies": { | ||
"@twilio-paste/box": "^7.0.0", | ||
"@twilio-paste/design-tokens": "^8.0.0", | ||
"@twilio-paste/icons": "^9.0.0", | ||
"@twilio-paste/style-props": "^6.0.0", | ||
"@twilio-paste/styling-library": "^1.0.0", | ||
"@twilio-paste/theme": "^8.0.0", | ||
"@twilio-paste/types": "^3.1.1", | ||
"@twilio-paste/uid-library": "^0.2.1", | ||
"@twilio-paste/animation-library": "^1.0.0", | ||
"@twilio-paste/box": "^8.0.0", | ||
"@twilio-paste/color-contrast-utils": "^4.0.0", | ||
"@twilio-paste/customization": "^6.0.0", | ||
"@twilio-paste/design-tokens": "^9.0.0", | ||
"@twilio-paste/icons": "^10.0.0", | ||
"@twilio-paste/style-props": "^7.0.0", | ||
"@twilio-paste/styling-library": "^2.0.0", | ||
"@twilio-paste/theme": "^9.0.0", | ||
"@twilio-paste/types": "^4.0.0", | ||
"@twilio-paste/uid-library": "^1.0.0", | ||
"prop-types": "^15.7.2", | ||
"react": "^16.8.6 || ^17.0.2", | ||
"react-dom": "^16.8.6 || ^17.0.2" | ||
"react": "^16.8.6 || ^17.0.2 || ^18.0.0", | ||
"react-dom": "^16.8.6 || ^17.0.2 || ^18.0.0" | ||
}, | ||
"devDependencies": { | ||
"@twilio-paste/box": "^7.1.2", | ||
"@twilio-paste/design-tokens": "^8.3.0", | ||
"@twilio-paste/icons": "^9.3.1", | ||
"@twilio-paste/style-props": "^6.1.2", | ||
"@twilio-paste/styling-library": "^1.0.3", | ||
"@twilio-paste/theme": "^8.0.3", | ||
"@twilio-paste/types": "^3.1.9", | ||
"@twilio-paste/uid-library": "^0.2.6", | ||
"@twilio-paste/animation-library": "^1.0.0", | ||
"@twilio-paste/box": "^8.0.0", | ||
"@twilio-paste/color-contrast-utils": "^4.0.0", | ||
"@twilio-paste/customization": "^6.0.0", | ||
"@twilio-paste/design-tokens": "^9.0.0", | ||
"@twilio-paste/icons": "^10.0.0", | ||
"@twilio-paste/style-props": "^7.0.0", | ||
"@twilio-paste/styling-library": "^2.0.0", | ||
"@twilio-paste/theme": "^9.0.0", | ||
"@twilio-paste/types": "^4.0.0", | ||
"@twilio-paste/uid-library": "^1.0.0", | ||
"prop-types": "^15.7.2", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2" | ||
"react": "^18.0.0", | ||
"react-dom": "^18.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
139330
14
14