@bedrock-layout/column-drop
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("@bedrock-layout/spacing-constants"),g=require("@bedrock-layout/type-utils"),b=require("react"),h=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},y=h(b);function S(t,e){return n.getSizeValue(t,e)}const u=g.forwardRefWithAs(({as:t,gutter:e,style:o,minItemWidth:c,noStretchedColumns:a=!1,...i},s)=>{const r=n.useTheme(),l=n.getSafeGutter(r,e),d=a===!0?"no-stretched-columns":"",m=S(r,c),f=o!=null?o:{},p=t!=null?t:"div";return y.default.createElement(p,{ref:s,"data-bedrock-column-drop":d,style:{...f,"--gutter":l,"--minItemWidth":m},...i})});u.displayName="ColumnDrop";exports.ColumnDrop=u; | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@bedrock-layout/spacing-constants"),g=require("@bedrock-layout/type-utils"),h=require("react");function y(e,t){return n.getSizeValue(e,t)}const r=g.forwardRefWithAs(({as:e,gutter:t,style:s,minItemWidth:u,noStretchedColumns:a=!1,...c},i)=>{const o=n.useTheme(),l=n.getSafeGutter(o,t),m=a===!0?"no-stretched-columns":"",d=y(o,u),f=s??{},p=e??"div";return h.createElement(p,{ref:i,"data-bedrock-column-drop":m,style:{...f,"--gutter":l,"--minItemWidth":d},...c})});r.displayName="ColumnDrop";exports.ColumnDrop=r; |
@@ -1,25 +0,28 @@ | ||
import { useTheme as s, getSafeGutter as h, getSizeValue as l } from "@bedrock-layout/spacing-constants"; | ||
import { useTheme as d, getSafeGutter as p, getSizeValue as h } from "@bedrock-layout/spacing-constants"; | ||
import { forwardRefWithAs as g } from "@bedrock-layout/type-utils"; | ||
import S from "react"; | ||
function W(t, e) { | ||
return l(t, e); | ||
import y from "react"; | ||
function S(t, e) { | ||
return h(t, e); | ||
} | ||
const b = g( | ||
({ as: t, gutter: e, style: o, minItemWidth: n, noStretchedColumns: m = !1, ...i }, u) => { | ||
const r = s(), c = h(r, e), a = m === !0 ? "no-stretched-columns" : "", f = W(r, n), d = o != null ? o : {}, p = t != null ? t : "div"; | ||
return /* @__PURE__ */ S.createElement(p, { | ||
ref: u, | ||
"data-bedrock-column-drop": a, | ||
style: { | ||
...d, | ||
"--gutter": c, | ||
"--minItemWidth": f | ||
}, | ||
...i | ||
}); | ||
const W = g( | ||
({ as: t, gutter: e, style: r, minItemWidth: n, noStretchedColumns: m = !1, ...a }, s) => { | ||
const o = d(), i = p(o, e), u = m === !0 ? "no-stretched-columns" : "", c = S(o, n), f = r ?? {}, l = t ?? "div"; | ||
return /* @__PURE__ */ y.createElement( | ||
l, | ||
{ | ||
ref: s, | ||
"data-bedrock-column-drop": u, | ||
style: { | ||
...f, | ||
"--gutter": i, | ||
"--minItemWidth": c | ||
}, | ||
...a | ||
} | ||
); | ||
} | ||
); | ||
b.displayName = "ColumnDrop"; | ||
W.displayName = "ColumnDrop"; | ||
export { | ||
b as ColumnDrop | ||
W as ColumnDrop | ||
}; |
@@ -1,1 +0,1 @@ | ||
(function(t,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("@bedrock-layout/spacing-constants"),require("@bedrock-layout/type-utils"),require("react")):typeof define=="function"&&define.amd?define(["exports","@bedrock-layout/spacing-constants","@bedrock-layout/type-utils","react"],o):(t=typeof globalThis<"u"?globalThis:t||self,o(t["column-drop"]={},t.spacingConstants,t.typeUtils,t.React))})(this,function(t,o,c,d){"use strict";const a=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(d);function f(e,n){return o.getSizeValue(e,n)}const r=c.forwardRefWithAs(({as:e,gutter:n,style:u,minItemWidth:s,noStretchedColumns:l=!1,...p},m)=>{const i=o.useTheme(),y=o.getSafeGutter(i,n),h=l===!0?"no-stretched-columns":"",b=f(i,s),g=u!=null?u:{},S=e!=null?e:"div";return a.default.createElement(S,{ref:m,"data-bedrock-column-drop":h,style:{...g,"--gutter":y,"--minItemWidth":b},...p})});r.displayName="ColumnDrop",t.ColumnDrop=r,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); | ||
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("@bedrock-layout/spacing-constants"),require("@bedrock-layout/type-utils"),require("react")):typeof define=="function"&&define.amd?define(["exports","@bedrock-layout/spacing-constants","@bedrock-layout/type-utils","react"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e["column-drop"]={},e.spacingConstants,e.typeUtils,e.React))})(this,function(e,t,i,s){"use strict";function c(o,n){return t.getSizeValue(o,n)}const r=i.forwardRefWithAs(({as:o,gutter:n,style:d,minItemWidth:a,noStretchedColumns:f=!1,...l},m)=>{const u=t.useTheme(),p=t.getSafeGutter(u,n),y=f===!0?"no-stretched-columns":"",h=c(u,a),b=d??{},S=o??"div";return s.createElement(S,{ref:m,"data-bedrock-column-drop":y,style:{...b,"--gutter":p,"--minItemWidth":h},...l})});r.displayName="ColumnDrop",e.ColumnDrop=r,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}); |
{ | ||
"name": "@bedrock-layout/column-drop", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "bedrock-layout column-drop", | ||
@@ -39,3 +39,3 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@bedrock-layout/spacing-constants": "^3.2.0", | ||
"@bedrock-layout/spacing-constants": "^3.2.1", | ||
"@bedrock-layout/type-utils": "^0.1.1" | ||
@@ -64,3 +64,3 @@ }, | ||
}, | ||
"gitHead": "f154b8f3a4ad8123e95c537ee670104e8490091e" | ||
"gitHead": "4b5f2410aa236170c430392b4d88d3e84c9f2c21" | ||
} |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
44
7267
255