@contentful/f36-drag-handle
Advanced tools
Comparing version 4.0.1-next-v4-8986.2402 to 4.0.1-next-v4-9019.2404
@@ -1,2 +0,2 @@ | ||
import e from"@babel/runtime/helpers/esm/extends";import{cx as o,css as r}from"emotion";import t,{forwardRef as a,useCallback as s,useState as n}from"react";import{DragIcon as i}from"@contentful/f36-icons";import d from"@contentful/f36-tokens";var l,c,u,b;l={},c="DragHandle",u=()=>m,Object.defineProperty(l,c,{get:u,set:b,enumerable:!0,configurable:!0});const m=a((({className:a,isActive:l,isFocused:c,isHovered:u,label:b,onBlur:m,onFocus:g,onMouseEnter:f,onMouseLeave:p,testId:v="cf-ui-drag-handle",style:y,...h},x)=>{const D={label:r({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:a})=>o(r({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||a)&&r({backgroundColor:d.gray200,cursor:e?"grabbing":"grab"},""))},[E,k]=n(c),[H,L]=n(u),M=s((e=>{k(!0),g&&g(e)}),[g]),R=s((e=>{k(!1),m&&m(e)}),[m]),C=s((e=>{L(!0),f&&f(e)}),[f]),F=s((e=>{L(!1),p&&p(e)}),[p]);return t.createElement("button",e({type:"button"},h,{className:o(D.root({isActive:l,isFocused:E,isHovered:H}),a),onBlur:R,onFocus:M,onMouseEnter:C,onMouseLeave:F,"data-test-id":v,ref:x,style:y}),t.createElement(i,{variant:"muted"}),t.createElement("span",{className:D.label},b))}));m.displayName="DragHandle";export{m as DragHandle}; | ||
import e from"@babel/runtime/helpers/esm/extends";import{cx as o,css as r}from"emotion";import t,{useState as a,forwardRef as s,useCallback as n}from"react";import{DragIcon as i}from"@contentful/f36-icons";import d from"@contentful/f36-tokens";var l,c,u,b;l={},c="DragHandle",u=()=>m,Object.defineProperty(l,c,{get:u,set:b,enumerable:!0,configurable:!0});const m=s((({className:s,isActive:l,isFocused:c,isHovered:u,label:b,onBlur:m,onFocus:g,onMouseEnter:f,onMouseLeave:p,testId:v="cf-ui-drag-handle",style:y,...h},x)=>{const D={label:r({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:a})=>o(r({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||a)&&r({backgroundColor:d.gray200,cursor:e?"grabbing":"grab"},""))},[E,k]=a(c),[H,L]=a(u),M=n((e=>{k(!0),g&&g(e)}),[g]),R=n((e=>{k(!1),m&&m(e)}),[m]),C=n((e=>{L(!0),f&&f(e)}),[f]),F=n((e=>{L(!1),p&&p(e)}),[p]);return t.createElement("button",e({type:"button"},h,{className:o(D.root({isActive:l,isFocused:E,isHovered:H}),s),onBlur:R,onFocus:M,onMouseEnter:C,onMouseLeave:F,"data-test-id":v,ref:x,style:y}),t.createElement(i,{variant:"muted"}),t.createElement("span",{className:D.label},b))}));m.displayName="DragHandle";export{m as DragHandle}; | ||
//# sourceMappingURL=module.js.map |
{ | ||
"name": "@contentful/f36-drag-handle", | ||
"version": "4.0.1-next-v4-8986.2402+ae40f76b", | ||
"version": "4.0.1-next-v4-9019.2404+c3d467c8", | ||
"description": "Forma 36: DragHandle component", | ||
@@ -10,5 +10,5 @@ "scripts": { | ||
"@babel/runtime": "^7.6.2", | ||
"@contentful/f36-core": "4.0.1-next-v4-8986.2402+ae40f76b", | ||
"@contentful/f36-icons": "4.0.1-next-v4-8986.2402+ae40f76b", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-8986.2402+ae40f76b", | ||
"@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", | ||
"emotion": "^10.0.17" | ||
@@ -37,3 +37,3 @@ }, | ||
}, | ||
"gitHead": "ae40f76bfdb7cb5ea9d8d861b240c81e4ebdc22e" | ||
"gitHead": "c3d467c8a8eb69d3a772f83aa054cb3873ba0ce9" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package