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
105
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-9019.2404 to 4.0.1-next-v4-9049.2406

2

dist/main.js

@@ -1,2 +0,2 @@

var e=l(require("@babel/runtime/helpers/extends")),{cx:r,css:o}=require("emotion"),t=require("react"),n=l(t),{useCallback:a,useState:i,forwardRef:s}=t,{DragIcon:u}=require("@contentful/f36-icons"),d=l(require("@contentful/f36-tokens"));function l(e){return e&&e.__esModule?e.default:e}var c,b,g,f,m={};c=m,b="DragHandle",g=()=>p,Object.defineProperty(c,b,{get:g,set:f,enumerable:!0,configurable:!0});const p=s((({className:t,isActive:s,isFocused:l,isHovered:c,label:b,onBlur:g,onFocus:f,onMouseEnter:m,onMouseLeave:p,testId:v="cf-ui-drag-handle",style:y,...h},x)=>{const E={label:o({name:"1b512s9",styles:"position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;"}),root:({isActive:e,isFocused:t,isHovered:n})=>r(o({alignItems:"center",backgroundColor:d.gray100,border:0,borderBottomLeftRadius:d.borderRadiusMedium,borderRight:`1px solid ${d.gray200}`,borderTopLeftRadius:d.borderRadiusMedium,boxSizing:"border-box",display:"flex",justifyContent:"center",padding:0,position:"relative",transition:`background-color ${d.transitionDurationDefault} ${d.transitionEasingDefault}`,width:d.spacingL,"&:hover, &:focus":{backgroundColor:d.colorElementLight}},""),(e||t||n)&&o({backgroundColor:d.gray200,cursor:e?"grabbing":"grab"},""))},[M,k]=i(l),[D,L]=i(c),R=a((e=>{k(!0),f&&f(e)}),[f]),q=a((e=>{k(!1),g&&g(e)}),[g]),C=a((e=>{L(!0),m&&m(e)}),[m]),F=a((e=>{L(!1),p&&p(e)}),[p]);return n.createElement("button",e({type:"button"},h,{className:r(E.root({isActive:s,isFocused:M,isHovered:D}),t),onBlur:q,onFocus:R,onMouseEnter:C,onMouseLeave:F,"data-test-id":v,ref:x,style:y}),n.createElement(u,{variant:"muted"}),n.createElement("span",{className:E.label},b))}));var v,y;p.displayName="DragHandle",v=module.exports,y=m,Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(v,e,{enumerable:!0,get:function(){return y[e]}})}));
var e=l(require("@babel/runtime/helpers/extends")),{cx:r,css:o}=require("emotion"),t=require("react"),n=l(t),{useState:a,forwardRef:i,useCallback:s}=t,{DragIcon:u}=require("@contentful/f36-icons"),d=l(require("@contentful/f36-tokens"));function l(e){return e&&e.__esModule?e.default:e}var c,b,g,f,m={};c=m,b="DragHandle",g=()=>p,Object.defineProperty(c,b,{get:g,set:f,enumerable:!0,configurable:!0});const p=i((({className:t,isActive:i,isFocused:l,isHovered:c,label:b,onBlur:g,onFocus:f,onMouseEnter:m,onMouseLeave:p,testId:v="cf-ui-drag-handle",style:y,...h},x)=>{const E={label:o({name:"1b512s9",styles:"position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;"}),root:({isActive:e,isFocused:t,isHovered:n})=>r(o({alignItems:"center",backgroundColor:d.gray100,border:0,borderBottomLeftRadius:d.borderRadiusMedium,borderRight:`1px solid ${d.gray200}`,borderTopLeftRadius:d.borderRadiusMedium,boxSizing:"border-box",display:"flex",justifyContent:"center",padding:0,position:"relative",transition:`background-color ${d.transitionDurationDefault} ${d.transitionEasingDefault}`,width:d.spacingL,"&:hover, &:focus":{backgroundColor:d.colorElementLight}},""),(e||t||n)&&o({backgroundColor:d.gray200,cursor:e?"grabbing":"grab"},""))},[M,k]=a(l),[D,L]=a(c),R=s((e=>{k(!0),f&&f(e)}),[f]),q=s((e=>{k(!1),g&&g(e)}),[g]),C=s((e=>{L(!0),m&&m(e)}),[m]),F=s((e=>{L(!1),p&&p(e)}),[p]);return n.createElement("button",e({type:"button"},h,{className:r(E.root({isActive:i,isFocused:M,isHovered:D}),t),onBlur:q,onFocus:R,onMouseEnter:C,onMouseLeave:F,"data-test-id":v,ref:x,style:y}),n.createElement(u,{variant:"muted"}),n.createElement("span",{className:E.label},b))}));var v,y;p.displayName="DragHandle",v=module.exports,y=m,Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(v,e,{enumerable:!0,get:function(){return y[e]}})}));
//# sourceMappingURL=main.js.map
{
"name": "@contentful/f36-drag-handle",
"version": "4.0.1-next-v4-9019.2404+c3d467c8",
"version": "4.0.1-next-v4-9049.2406+5faa18e9",
"description": "Forma 36: DragHandle component",

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

"@babel/runtime": "^7.6.2",
"@contentful/f36-core": "4.0.1-next-v4-9019.2404+c3d467c8",
"@contentful/f36-icons": "4.0.1-next-v4-9019.2404+c3d467c8",
"@contentful/f36-tokens": "4.0.1-next-v4-9019.2404+c3d467c8",
"@contentful/f36-core": "4.0.1-next-v4-9049.2406+5faa18e9",
"@contentful/f36-icons": "4.0.1-next-v4-9049.2406+5faa18e9",
"@contentful/f36-tokens": "4.0.1-next-v4-9049.2406+5faa18e9",
"emotion": "^10.0.17"

@@ -37,3 +37,3 @@ },

},
"gitHead": "c3d467c8a8eb69d3a772f83aa054cb3873ba0ce9"
"gitHead": "5faa18e9d612fc29225fb7357033b6a330aebc2c"
}
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