Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contentful/f36-drag-handle

Package Overview
Dependencies
Maintainers
119
Versions
345
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/f36-drag-handle - npm Package Compare versions

Comparing version 4.0.1-next-v4-9971.2442 to 4.0.1

CHANGELOG.md

25

dist/main.js

@@ -28,7 +28,7 @@ var $9zqHf$emotion = require("emotion");

alignItems: 'center',
backgroundColor: $parcel$interopDefault($9zqHf$contentfulf36tokens).gray100,
backgroundColor: ($parcel$interopDefault($9zqHf$contentfulf36tokens)).gray100,
border: 0,
borderBottomLeftRadius: $parcel$interopDefault($9zqHf$contentfulf36tokens).borderRadiusMedium,
borderRight: `1px solid ${$parcel$interopDefault($9zqHf$contentfulf36tokens).gray200}`,
borderTopLeftRadius: $parcel$interopDefault($9zqHf$contentfulf36tokens).borderRadiusMedium,
borderBottomLeftRadius: ($parcel$interopDefault($9zqHf$contentfulf36tokens)).borderRadiusMedium,
borderRight: `1px solid ${($parcel$interopDefault($9zqHf$contentfulf36tokens)).gray200}`,
borderTopLeftRadius: ($parcel$interopDefault($9zqHf$contentfulf36tokens)).borderRadiusMedium,
boxSizing: 'border-box',

@@ -39,9 +39,9 @@ display: 'flex',

position: 'relative',
transition: `background-color ${$parcel$interopDefault($9zqHf$contentfulf36tokens).transitionDurationDefault} ${$parcel$interopDefault($9zqHf$contentfulf36tokens).transitionEasingDefault}`,
width: $parcel$interopDefault($9zqHf$contentfulf36tokens).spacingL,
transition: `background-color ${($parcel$interopDefault($9zqHf$contentfulf36tokens)).transitionDurationDefault} ${($parcel$interopDefault($9zqHf$contentfulf36tokens)).transitionEasingDefault}`,
width: ($parcel$interopDefault($9zqHf$contentfulf36tokens)).spacingL,
'&:hover, &:focus': {
backgroundColor: $parcel$interopDefault($9zqHf$contentfulf36tokens).colorElementLight
backgroundColor: ($parcel$interopDefault($9zqHf$contentfulf36tokens)).colorElementLight
}
}), (isActive || isFocused || isHovered) && /*#__PURE__*/ $9zqHf$emotion.css({
backgroundColor: $parcel$interopDefault($9zqHf$contentfulf36tokens).gray200,
backgroundColor: ($parcel$interopDefault($9zqHf$contentfulf36tokens)).gray200,
cursor: isActive ? 'grabbing' : 'grab'

@@ -82,3 +82,6 @@ }));

]);
return(/*#__PURE__*/ $parcel$interopDefault($9zqHf$react).createElement("button", {
return(// https://github.com/clauderic/react-sortable-hoc/blob/d94ba3cc67cfc7d6d460b585e7723bdb50015e53/src/SortableContainer/defaultShouldCancelStart.js
/*#__PURE__*/ ($parcel$interopDefault($9zqHf$react)).createElement("div", {
role: "button",
tabIndex: 0,
type: "button",

@@ -98,5 +101,5 @@ ...otherProps,

style: style
}, /*#__PURE__*/ $parcel$interopDefault($9zqHf$react).createElement($9zqHf$contentfulf36icons.DragIcon, {
}, /*#__PURE__*/ ($parcel$interopDefault($9zqHf$react)).createElement($9zqHf$contentfulf36icons.DragIcon, {
variant: "muted"
}), /*#__PURE__*/ $parcel$interopDefault($9zqHf$react).createElement("span", {
}), /*#__PURE__*/ ($parcel$interopDefault($9zqHf$react)).createElement("span", {
className: styles.label

@@ -103,0 +106,0 @@ }, label)));

@@ -72,3 +72,6 @@ import {cx as $8USmO$cx, css as $8USmO$css} from "emotion";

]);
return(/*#__PURE__*/ $8USmO$react.createElement("button", {
return(// https://github.com/clauderic/react-sortable-hoc/blob/d94ba3cc67cfc7d6d460b585e7723bdb50015e53/src/SortableContainer/defaultShouldCancelStart.js
/*#__PURE__*/ $8USmO$react.createElement("div", {
role: "button",
tabIndex: 0,
type: "button",

@@ -75,0 +78,0 @@ ...otherProps,

@@ -22,25 +22,274 @@ import React from "react";

label: string;
};
export type DragHandleProps = PropsWithHTMLElement<DragHandleInternalProps, 'button'>;
export const DragHandle: React.ForwardRefExoticComponent<Omit<Omit<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>>, never>, "label" | keyof CommonProps | "isActive" | "isFocused" | "isHovered"> & CommonProps & {
/**
* Applies styling for when the component is actively being dragged by
* the user
* Set type button for div element
*/
type?: string;
};
export type DragHandleProps = PropsWithHTMLElement<DragHandleInternalProps, 'div'>;
export const DragHandle: React.ForwardRefExoticComponent<{
hidden?: boolean;
color?: string;
translate?: "yes" | "no";
slot?: string;
title?: string;
key?: React.Key;
defaultChecked?: boolean;
defaultValue?: string | number | readonly string[];
suppressContentEditableWarning?: boolean;
suppressHydrationWarning?: boolean;
accessKey?: string;
contentEditable?: "inherit" | (boolean | "true" | "false");
contextMenu?: string;
dir?: string;
draggable?: boolean | "true" | "false";
id?: string;
lang?: string;
placeholder?: string;
spellCheck?: boolean | "true" | "false";
tabIndex?: number;
radioGroup?: string;
role?: string;
about?: string;
datatype?: string;
inlist?: any;
prefix?: string;
property?: string;
resource?: string;
typeof?: string;
vocab?: string;
autoCapitalize?: string;
autoCorrect?: string;
autoSave?: string;
itemProp?: string;
itemScope?: boolean;
itemType?: string;
itemID?: string;
itemRef?: string;
results?: number;
security?: string;
unselectable?: "on" | "off";
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search";
is?: string;
'aria-activedescendant'?: string;
'aria-atomic'?: boolean | "true" | "false";
'aria-autocomplete'?: "none" | "inline" | "list" | "both";
'aria-busy'?: boolean | "true" | "false";
'aria-checked'?: boolean | "true" | "false" | "mixed";
'aria-colcount'?: number;
'aria-colindex'?: number;
'aria-colspan'?: number;
'aria-controls'?: string;
'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
'aria-describedby'?: string;
'aria-details'?: string;
'aria-disabled'?: boolean | "true" | "false";
'aria-dropeffect'?: "none" | "copy" | "move" | "link" | "execute" | "popup";
'aria-errormessage'?: string;
'aria-expanded'?: boolean | "true" | "false";
'aria-flowto'?: string;
'aria-grabbed'?: boolean | "true" | "false";
'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "true" | "false" | "listbox" | "tree";
'aria-hidden'?: boolean | "true" | "false";
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling";
'aria-keyshortcuts'?: string;
'aria-label'?: string;
'aria-labelledby'?: string;
'aria-level'?: number;
'aria-live'?: "off" | "assertive" | "polite";
'aria-modal'?: boolean | "true" | "false";
'aria-multiline'?: boolean | "true" | "false";
'aria-multiselectable'?: boolean | "true" | "false";
'aria-orientation'?: "horizontal" | "vertical";
'aria-owns'?: string;
'aria-placeholder'?: string;
'aria-posinset'?: number;
'aria-pressed'?: boolean | "true" | "false" | "mixed";
'aria-readonly'?: boolean | "true" | "false";
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
'aria-required'?: boolean | "true" | "false";
'aria-roledescription'?: string;
'aria-rowcount'?: number;
'aria-rowindex'?: number;
'aria-rowspan'?: number;
'aria-selected'?: boolean | "true" | "false";
'aria-setsize'?: number;
'aria-sort'?: "none" | "ascending" | "descending" | "other";
'aria-valuemax'?: number;
'aria-valuemin'?: number;
'aria-valuenow'?: number;
'aria-valuetext'?: string;
children?: React.ReactNode;
dangerouslySetInnerHTML?: {
__html: string;
};
onCopy?: React.ClipboardEventHandler<HTMLDivElement>;
onCopyCapture?: React.ClipboardEventHandler<HTMLDivElement>;
onCut?: React.ClipboardEventHandler<HTMLDivElement>;
onCutCapture?: React.ClipboardEventHandler<HTMLDivElement>;
onPaste?: React.ClipboardEventHandler<HTMLDivElement>;
onPasteCapture?: React.ClipboardEventHandler<HTMLDivElement>;
onCompositionEnd?: React.CompositionEventHandler<HTMLDivElement>;
onCompositionEndCapture?: React.CompositionEventHandler<HTMLDivElement>;
onCompositionStart?: React.CompositionEventHandler<HTMLDivElement>;
onCompositionStartCapture?: React.CompositionEventHandler<HTMLDivElement>;
onCompositionUpdate?: React.CompositionEventHandler<HTMLDivElement>;
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLDivElement>;
onFocus?: React.FocusEventHandler<HTMLDivElement>;
onFocusCapture?: React.FocusEventHandler<HTMLDivElement>;
onBlur?: React.FocusEventHandler<HTMLDivElement>;
onBlurCapture?: React.FocusEventHandler<HTMLDivElement>;
onChange?: React.FormEventHandler<HTMLDivElement>;
onChangeCapture?: React.FormEventHandler<HTMLDivElement>;
onBeforeInput?: React.FormEventHandler<HTMLDivElement>;
onBeforeInputCapture?: React.FormEventHandler<HTMLDivElement>;
onInput?: React.FormEventHandler<HTMLDivElement>;
onInputCapture?: React.FormEventHandler<HTMLDivElement>;
onReset?: React.FormEventHandler<HTMLDivElement>;
onResetCapture?: React.FormEventHandler<HTMLDivElement>;
onSubmit?: React.FormEventHandler<HTMLDivElement>;
onSubmitCapture?: React.FormEventHandler<HTMLDivElement>;
onInvalid?: React.FormEventHandler<HTMLDivElement>;
onInvalidCapture?: React.FormEventHandler<HTMLDivElement>;
onLoad?: React.ReactEventHandler<HTMLDivElement>;
onLoadCapture?: React.ReactEventHandler<HTMLDivElement>;
onError?: React.ReactEventHandler<HTMLDivElement>;
onErrorCapture?: React.ReactEventHandler<HTMLDivElement>;
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
onKeyDownCapture?: React.KeyboardEventHandler<HTMLDivElement>;
onKeyPress?: React.KeyboardEventHandler<HTMLDivElement>;
onKeyPressCapture?: React.KeyboardEventHandler<HTMLDivElement>;
onKeyUp?: React.KeyboardEventHandler<HTMLDivElement>;
onKeyUpCapture?: React.KeyboardEventHandler<HTMLDivElement>;
onAbort?: React.ReactEventHandler<HTMLDivElement>;
onAbortCapture?: React.ReactEventHandler<HTMLDivElement>;
onCanPlay?: React.ReactEventHandler<HTMLDivElement>;
onCanPlayCapture?: React.ReactEventHandler<HTMLDivElement>;
onCanPlayThrough?: React.ReactEventHandler<HTMLDivElement>;
onCanPlayThroughCapture?: React.ReactEventHandler<HTMLDivElement>;
onDurationChange?: React.ReactEventHandler<HTMLDivElement>;
onDurationChangeCapture?: React.ReactEventHandler<HTMLDivElement>;
onEmptied?: React.ReactEventHandler<HTMLDivElement>;
onEmptiedCapture?: React.ReactEventHandler<HTMLDivElement>;
onEncrypted?: React.ReactEventHandler<HTMLDivElement>;
onEncryptedCapture?: React.ReactEventHandler<HTMLDivElement>;
onEnded?: React.ReactEventHandler<HTMLDivElement>;
onEndedCapture?: React.ReactEventHandler<HTMLDivElement>;
onLoadedData?: React.ReactEventHandler<HTMLDivElement>;
onLoadedDataCapture?: React.ReactEventHandler<HTMLDivElement>;
onLoadedMetadata?: React.ReactEventHandler<HTMLDivElement>;
onLoadedMetadataCapture?: React.ReactEventHandler<HTMLDivElement>;
onLoadStart?: React.ReactEventHandler<HTMLDivElement>;
onLoadStartCapture?: React.ReactEventHandler<HTMLDivElement>;
onPause?: React.ReactEventHandler<HTMLDivElement>;
onPauseCapture?: React.ReactEventHandler<HTMLDivElement>;
onPlay?: React.ReactEventHandler<HTMLDivElement>;
onPlayCapture?: React.ReactEventHandler<HTMLDivElement>;
onPlaying?: React.ReactEventHandler<HTMLDivElement>;
onPlayingCapture?: React.ReactEventHandler<HTMLDivElement>;
onProgress?: React.ReactEventHandler<HTMLDivElement>;
onProgressCapture?: React.ReactEventHandler<HTMLDivElement>;
onRateChange?: React.ReactEventHandler<HTMLDivElement>;
onRateChangeCapture?: React.ReactEventHandler<HTMLDivElement>;
onSeeked?: React.ReactEventHandler<HTMLDivElement>;
onSeekedCapture?: React.ReactEventHandler<HTMLDivElement>;
onSeeking?: React.ReactEventHandler<HTMLDivElement>;
onSeekingCapture?: React.ReactEventHandler<HTMLDivElement>;
onStalled?: React.ReactEventHandler<HTMLDivElement>;
onStalledCapture?: React.ReactEventHandler<HTMLDivElement>;
onSuspend?: React.ReactEventHandler<HTMLDivElement>;
onSuspendCapture?: React.ReactEventHandler<HTMLDivElement>;
onTimeUpdate?: React.ReactEventHandler<HTMLDivElement>;
onTimeUpdateCapture?: React.ReactEventHandler<HTMLDivElement>;
onVolumeChange?: React.ReactEventHandler<HTMLDivElement>;
onVolumeChangeCapture?: React.ReactEventHandler<HTMLDivElement>;
onWaiting?: React.ReactEventHandler<HTMLDivElement>;
onWaitingCapture?: React.ReactEventHandler<HTMLDivElement>;
onAuxClick?: React.MouseEventHandler<HTMLDivElement>;
onAuxClickCapture?: React.MouseEventHandler<HTMLDivElement>;
onClick?: React.MouseEventHandler<HTMLDivElement>;
onClickCapture?: React.MouseEventHandler<HTMLDivElement>;
onContextMenu?: React.MouseEventHandler<HTMLDivElement>;
onContextMenuCapture?: React.MouseEventHandler<HTMLDivElement>;
onDoubleClick?: React.MouseEventHandler<HTMLDivElement>;
onDoubleClickCapture?: React.MouseEventHandler<HTMLDivElement>;
onDrag?: React.DragEventHandler<HTMLDivElement>;
onDragCapture?: React.DragEventHandler<HTMLDivElement>;
onDragEnd?: React.DragEventHandler<HTMLDivElement>;
onDragEndCapture?: React.DragEventHandler<HTMLDivElement>;
onDragEnter?: React.DragEventHandler<HTMLDivElement>;
onDragEnterCapture?: React.DragEventHandler<HTMLDivElement>;
onDragExit?: React.DragEventHandler<HTMLDivElement>;
onDragExitCapture?: React.DragEventHandler<HTMLDivElement>;
onDragLeave?: React.DragEventHandler<HTMLDivElement>;
onDragLeaveCapture?: React.DragEventHandler<HTMLDivElement>;
onDragOver?: React.DragEventHandler<HTMLDivElement>;
onDragOverCapture?: React.DragEventHandler<HTMLDivElement>;
onDragStart?: React.DragEventHandler<HTMLDivElement>;
onDragStartCapture?: React.DragEventHandler<HTMLDivElement>;
onDrop?: React.DragEventHandler<HTMLDivElement>;
onDropCapture?: React.DragEventHandler<HTMLDivElement>;
onMouseDown?: React.MouseEventHandler<HTMLDivElement>;
onMouseDownCapture?: React.MouseEventHandler<HTMLDivElement>;
onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
onMouseLeave?: React.MouseEventHandler<HTMLDivElement>;
onMouseMove?: React.MouseEventHandler<HTMLDivElement>;
onMouseMoveCapture?: React.MouseEventHandler<HTMLDivElement>;
onMouseOut?: React.MouseEventHandler<HTMLDivElement>;
onMouseOutCapture?: React.MouseEventHandler<HTMLDivElement>;
onMouseOver?: React.MouseEventHandler<HTMLDivElement>;
onMouseOverCapture?: React.MouseEventHandler<HTMLDivElement>;
onMouseUp?: React.MouseEventHandler<HTMLDivElement>;
onMouseUpCapture?: React.MouseEventHandler<HTMLDivElement>;
onSelect?: React.ReactEventHandler<HTMLDivElement>;
onSelectCapture?: React.ReactEventHandler<HTMLDivElement>;
onTouchCancel?: React.TouchEventHandler<HTMLDivElement>;
onTouchCancelCapture?: React.TouchEventHandler<HTMLDivElement>;
onTouchEnd?: React.TouchEventHandler<HTMLDivElement>;
onTouchEndCapture?: React.TouchEventHandler<HTMLDivElement>;
onTouchMove?: React.TouchEventHandler<HTMLDivElement>;
onTouchMoveCapture?: React.TouchEventHandler<HTMLDivElement>;
onTouchStart?: React.TouchEventHandler<HTMLDivElement>;
onTouchStartCapture?: React.TouchEventHandler<HTMLDivElement>;
onPointerDown?: React.PointerEventHandler<HTMLDivElement>;
onPointerDownCapture?: React.PointerEventHandler<HTMLDivElement>;
onPointerMove?: React.PointerEventHandler<HTMLDivElement>;
onPointerMoveCapture?: React.PointerEventHandler<HTMLDivElement>;
onPointerUp?: React.PointerEventHandler<HTMLDivElement>;
onPointerUpCapture?: React.PointerEventHandler<HTMLDivElement>;
onPointerCancel?: React.PointerEventHandler<HTMLDivElement>;
onPointerCancelCapture?: React.PointerEventHandler<HTMLDivElement>;
onPointerEnter?: React.PointerEventHandler<HTMLDivElement>;
onPointerEnterCapture?: React.PointerEventHandler<HTMLDivElement>;
onPointerLeave?: React.PointerEventHandler<HTMLDivElement>;
onPointerLeaveCapture?: React.PointerEventHandler<HTMLDivElement>;
onPointerOver?: React.PointerEventHandler<HTMLDivElement>;
onPointerOverCapture?: React.PointerEventHandler<HTMLDivElement>;
onPointerOut?: React.PointerEventHandler<HTMLDivElement>;
onPointerOutCapture?: React.PointerEventHandler<HTMLDivElement>;
onGotPointerCapture?: React.PointerEventHandler<HTMLDivElement>;
onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLDivElement>;
onLostPointerCapture?: React.PointerEventHandler<HTMLDivElement>;
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLDivElement>;
onScroll?: React.UIEventHandler<HTMLDivElement>;
onScrollCapture?: React.UIEventHandler<HTMLDivElement>;
onWheel?: React.WheelEventHandler<HTMLDivElement>;
onWheelCapture?: React.WheelEventHandler<HTMLDivElement>;
onAnimationStart?: React.AnimationEventHandler<HTMLDivElement>;
onAnimationStartCapture?: React.AnimationEventHandler<HTMLDivElement>;
onAnimationEnd?: React.AnimationEventHandler<HTMLDivElement>;
onAnimationEndCapture?: React.AnimationEventHandler<HTMLDivElement>;
onAnimationIteration?: React.AnimationEventHandler<HTMLDivElement>;
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement>;
onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement>;
onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement>;
className?: string;
testId?: string;
style?: React.CSSProperties;
isActive?: boolean;
/**
* Applies focus styling
*/
isFocused?: boolean;
/**
* Applies hover styling
*/
isHovered?: boolean;
/**
* Label rendered in DragHandle - not visible on screen as its purpose
* is for screen readers only
*/
label: string;
} & React.RefAttributes<HTMLButtonElement>>;
type?: string;
} & React.RefAttributes<HTMLDivElement>>;
//# sourceMappingURL=types.d.ts.map
{
"name": "@contentful/f36-drag-handle",
"version": "4.0.1-next-v4-9971.2442+8f3e7a41",
"version": "4.0.1",
"description": "Forma 36: DragHandle component",

@@ -10,5 +10,5 @@ "scripts": {

"@babel/runtime": "^7.6.2",
"@contentful/f36-core": "4.0.1-next-v4-9971.2442+8f3e7a41",
"@contentful/f36-icons": "4.0.1-next-v4-9971.2442+8f3e7a41",
"@contentful/f36-tokens": "4.0.1-next-v4-9971.2442+8f3e7a41",
"@contentful/f36-core": "^4.0.1",
"@contentful/f36-icons": "^4.0.1",
"@contentful/f36-tokens": "^4.0.0",
"emotion": "^10.0.17"

@@ -21,4 +21,3 @@ },

"files": [
"dist",
"src"
"dist"
],

@@ -38,3 +37,3 @@ "main": "dist/main.js",

},
"gitHead": "8f3e7a417569b40b3159d4389319b4e7c5753354"
"gitHead": "cee6bd9ae0b1ca2ce23d42873d9344a20fe740d0"
}

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc