@mirohq/design-system-utils
Advanced tools
Comparing version 0.15.5 to 0.15.6
@@ -1,5 +0,3 @@ | ||
import * as react from 'react'; | ||
import { ReactNode, ReactElement } from 'react'; | ||
import { Booleanish } from '@mirohq/design-system-types'; | ||
import * as _stitches_react_types_css_util from '@stitches/react/types/css-util'; | ||
import { DOMEventAttributes, Booleanish } from '@mirohq/design-system-types'; | ||
import { CSSProperties } from '@stitches/react'; | ||
@@ -21,3 +19,3 @@ | ||
*/ | ||
declare const mergeRefs: <T = any>(refs: (react.MutableRefObject<T | null> | react.LegacyRef<T | null>)[]) => react.Ref<T>; | ||
declare const mergeRefs: <T = any>(refs: Array<React.MutableRefObject<T | null> | React.LegacyRef<T | null>>) => React.Ref<T>; | ||
/** | ||
@@ -29,3 +27,3 @@ * Remove any `on` prop from an object | ||
*/ | ||
declare const removeEventProps: <T extends {}, Exceptions extends ("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")[] = []>(props: T, exceptions: Exceptions) => { [K in keyof T as K extends Exceptions ? never : K]: T[K]; }; | ||
declare const removeEventProps: <T extends {}, Exceptions extends Array<keyof DOMEventAttributes<any>> = []>(props: T, exceptions: Exceptions) => { [K in keyof T as K extends Exceptions ? never : K]: T[K]; }; | ||
@@ -63,3 +61,3 @@ interface Rect { | ||
*/ | ||
declare const booleanishAttrValue: (x?: Booleanish) => '' | undefined; | ||
declare const booleanishAttrValue: (x?: Booleanish) => "" | undefined; | ||
/** | ||
@@ -93,3 +91,3 @@ * Joins list of provided ids into a single string. | ||
declare type KeyVariants<KeyMap, Prop extends keyof CSSProperties> = { | ||
type KeyVariants<KeyMap, Prop extends keyof CSSProperties> = { | ||
[K in keyof KeyMap]: { | ||
@@ -106,5 +104,4 @@ [P in Prop]: `$${K extends string | number ? K : never}`; | ||
declare const mapKeysToVariants: <MapObject extends { | ||
[key: string]: any; | ||
[key: number]: any; | ||
}, CSSProp extends keyof _stitches_react_types_css_util.CSSProperties | ((key: keyof MapObject) => CSSProperties)>(map: MapObject, prop: CSSProp) => KeyVariants<MapObject, keyof _stitches_react_types_css_util.CSSProperties>; | ||
[key: string | number]: any; | ||
}, CSSProp extends keyof CSSProperties | ((key: keyof MapObject) => CSSProperties)>(map: MapObject, prop: CSSProp) => KeyVariants<MapObject, keyof CSSProperties>; | ||
@@ -111,0 +108,0 @@ /** |
{ | ||
"name": "@mirohq/design-system-utils", | ||
"version": "0.15.5", | ||
"version": "0.15.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Miro", |
34011
311