@contentful/f36-drag-handle
Advanced tools
Comparing version 4.0.1-next-v4-6313.2230 to 4.0.1-next-v4-6317.2231
@@ -1,2 +0,2 @@ | ||
var e=c(require("@babel/runtime/helpers/extends")),{cx:r,css:o}=require("emotion"),t=require("react"),n=c(t),{useCallback:i,forwardRef:a,useState:s}=t,{usePrimitive:u}=require("@contentful/f36-core"),{DragIcon:d}=require("@contentful/f36-icons"),l=c(require("@contentful/f36-tokens"));function c(e){return e&&e.__esModule?e.default:e}var b,f,g,m,p={};b=p,f="DragHandle",g=()=>v,Object.defineProperty(b,f,{get:g,set:m,enumerable:!0,configurable:!0});const v=a((({className:t,isActive:a,isFocused:c,isHovered:b,label:f,onBlur:g,onFocus:m,onMouseEnter:p,onMouseLeave:v,testId:h="cf-ui-drag-handle",...x},y)=>{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:l.gray100,border:0,borderBottomLeftRadius:l.borderRadiusMedium,borderRight:`1px solid ${l.gray300}`,borderTopLeftRadius:l.borderRadiusMedium,boxSizing:"border-box",display:"flex",justifyContent:"center",padding:0,position:"relative",transition:`background-color ${l.transitionDurationDefault} ${l.transitionEasingDefault}`,width:l.spacingL,"&:hover, &:focus":{backgroundColor:l.colorElementLight}},""),(e||t||n)&&o({backgroundColor:l.gray200,cursor:e?"grabbing":"grab"},""))},{primitiveProps:M,Element:k}=u(x),[q,L]=s(c),[R,C]=s(b),D=i((e=>{L(!0),m&&m(e)}),[m]),F=i((e=>{L(!1),g&&g(e)}),[g]),j=i((e=>{C(!0),p&&p(e)}),[p]),w=i((e=>{C(!1),v&&v(e)}),[v]);return n.createElement(k,e({as:"button"},M,{className:r(E.root({isActive:a,isFocused:q,isHovered:R}),t),onBlur:F,onFocus:D,onMouseEnter:j,onMouseLeave:w,testId:h,ref:y}),n.createElement(d,{variant:"muted"}),n.createElement("span",{className:E.label},f))}));var h,x;h=module.exports,x=p,Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(h,e,{enumerable:!0,get:function(){return x[e]}})})); | ||
var e=c(require("@babel/runtime/helpers/extends")),{cx:r,css:o}=require("emotion"),t=require("react"),n=c(t),{forwardRef:i,useState:a,useCallback:s}=t,{usePrimitive:u}=require("@contentful/f36-core"),{DragIcon:d}=require("@contentful/f36-icons"),l=c(require("@contentful/f36-tokens"));function c(e){return e&&e.__esModule?e.default:e}var b,f,g,m,p={};b=p,f="DragHandle",g=()=>v,Object.defineProperty(b,f,{get:g,set:m,enumerable:!0,configurable:!0});const v=i((({className:t,isActive:i,isFocused:c,isHovered:b,label:f,onBlur:g,onFocus:m,onMouseEnter:p,onMouseLeave:v,testId:h="cf-ui-drag-handle",...x},y)=>{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:l.gray100,border:0,borderBottomLeftRadius:l.borderRadiusMedium,borderRight:`1px solid ${l.gray300}`,borderTopLeftRadius:l.borderRadiusMedium,boxSizing:"border-box",display:"flex",justifyContent:"center",padding:0,position:"relative",transition:`background-color ${l.transitionDurationDefault} ${l.transitionEasingDefault}`,width:l.spacingL,"&:hover, &:focus":{backgroundColor:l.colorElementLight}},""),(e||t||n)&&o({backgroundColor:l.gray200,cursor:e?"grabbing":"grab"},""))},{primitiveProps:M,Element:k}=u(x),[q,L]=a(c),[R,C]=a(b),D=s((e=>{L(!0),m&&m(e)}),[m]),F=s((e=>{L(!1),g&&g(e)}),[g]),j=s((e=>{C(!0),p&&p(e)}),[p]),w=s((e=>{C(!1),v&&v(e)}),[v]);return n.createElement(k,e({as:"button"},M,{className:r(E.root({isActive:i,isFocused:q,isHovered:R}),t),onBlur:F,onFocus:D,onMouseEnter:j,onMouseLeave:w,testId:h,ref:y}),n.createElement(d,{variant:"muted"}),n.createElement("span",{className:E.label},f))}));var h,x;h=module.exports,x=p,Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(h,e,{enumerable:!0,get:function(){return x[e]}})})); | ||
//# sourceMappingURL=main.js.map |
@@ -1,2 +0,2 @@ | ||
import e from"@babel/runtime/helpers/esm/extends";import{cx as o,css as r}from"emotion";import t,{useState as a,useCallback as s,forwardRef as i}from"react";import{usePrimitive as n}from"@contentful/f36-core";import{DragIcon as d}from"@contentful/f36-icons";import l from"@contentful/f36-tokens";var c,u,m,b;c={},u="DragHandle",m=()=>f,Object.defineProperty(c,u,{get:m,set:b,enumerable:!0,configurable:!0});const f=i((({className:i,isActive:c,isFocused:u,isHovered:m,label:b,onBlur:f,onFocus:g,onMouseEnter:p,onMouseLeave:v,testId:h="cf-ui-drag-handle",...x},E)=>{const y={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:l.gray100,border:0,borderBottomLeftRadius:l.borderRadiusMedium,borderRight:`1px solid ${l.gray300}`,borderTopLeftRadius:l.borderRadiusMedium,boxSizing:"border-box",display:"flex",justifyContent:"center",padding:0,position:"relative",transition:`background-color ${l.transitionDurationDefault} ${l.transitionEasingDefault}`,width:l.spacingL,"&:hover, &:focus":{backgroundColor:l.colorElementLight}},""),(e||t||a)&&r({backgroundColor:l.gray200,cursor:e?"grabbing":"grab"},""))},{primitiveProps:k,Element:D}=n(x),[L,M]=a(u),[R,C]=a(m),F=s((e=>{M(!0),g&&g(e)}),[g]),H=s((e=>{M(!1),f&&f(e)}),[f]),w=s((e=>{C(!0),p&&p(e)}),[p]),I=s((e=>{C(!1),v&&v(e)}),[v]);return t.createElement(D,e({as:"button"},k,{className:o(y.root({isActive:c,isFocused:L,isHovered:R}),i),onBlur:H,onFocus:F,onMouseEnter:w,onMouseLeave:I,testId:h,ref:E}),t.createElement(d,{variant:"muted"}),t.createElement("span",{className:y.label},b))}));export{f as DragHandle}; | ||
import e from"@babel/runtime/helpers/esm/extends";import{cx as o,css as r}from"emotion";import t,{forwardRef as a,useState as s,useCallback as i}from"react";import{usePrimitive as n}from"@contentful/f36-core";import{DragIcon as d}from"@contentful/f36-icons";import l from"@contentful/f36-tokens";var c,u,m,b;c={},u="DragHandle",m=()=>f,Object.defineProperty(c,u,{get:m,set:b,enumerable:!0,configurable:!0});const f=a((({className:a,isActive:c,isFocused:u,isHovered:m,label:b,onBlur:f,onFocus:g,onMouseEnter:p,onMouseLeave:v,testId:h="cf-ui-drag-handle",...x},E)=>{const y={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:l.gray100,border:0,borderBottomLeftRadius:l.borderRadiusMedium,borderRight:`1px solid ${l.gray300}`,borderTopLeftRadius:l.borderRadiusMedium,boxSizing:"border-box",display:"flex",justifyContent:"center",padding:0,position:"relative",transition:`background-color ${l.transitionDurationDefault} ${l.transitionEasingDefault}`,width:l.spacingL,"&:hover, &:focus":{backgroundColor:l.colorElementLight}},""),(e||t||a)&&r({backgroundColor:l.gray200,cursor:e?"grabbing":"grab"},""))},{primitiveProps:k,Element:D}=n(x),[L,M]=s(u),[R,C]=s(m),F=i((e=>{M(!0),g&&g(e)}),[g]),H=i((e=>{M(!1),f&&f(e)}),[f]),w=i((e=>{C(!0),p&&p(e)}),[p]),I=i((e=>{C(!1),v&&v(e)}),[v]);return t.createElement(D,e({as:"button"},k,{className:o(y.root({isActive:c,isFocused:L,isHovered:R}),a),onBlur:H,onFocus:F,onMouseEnter:w,onMouseLeave:I,testId:h,ref:E}),t.createElement(d,{variant:"muted"}),t.createElement("span",{className:y.label},b))}));export{f as DragHandle}; | ||
//# sourceMappingURL=module.js.map |
{ | ||
"name": "@contentful/f36-drag-handle", | ||
"version": "4.0.1-next-v4-6313.2230+cc8adb10", | ||
"version": "4.0.1-next-v4-6317.2231+bf43895f", | ||
"description": "Forma 36: DragHandle component", | ||
@@ -10,5 +10,5 @@ "scripts": { | ||
"@babel/runtime": "^7.6.2", | ||
"@contentful/f36-core": "4.0.1-next-v4-6313.2230+cc8adb10", | ||
"@contentful/f36-icons": "4.0.1-next-v4-6313.2230+cc8adb10", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-6313.2230+cc8adb10", | ||
"@contentful/f36-core": "4.0.1-next-v4-6317.2231+bf43895f", | ||
"@contentful/f36-icons": "4.0.1-next-v4-6317.2231+bf43895f", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-6317.2231+bf43895f", | ||
"emotion": "^10.0.17" | ||
@@ -37,3 +37,3 @@ }, | ||
}, | ||
"gitHead": "cc8adb105e9227dbb2949a7847e2fcb4f8aab906" | ||
"gitHead": "bf43895f55f9f1157e63ee1b9cd5ae2e6bb7d688" | ||
} |
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