@purpurds/grid
Advanced tools
Comparing version 5.11.1 to 5.11.2
@@ -1,6 +0,6 @@ | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),s=require("react");function N(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}var z={exports:{}};/*! | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),s=require("react");function N(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}var z={exports:{}};/*! | ||
Copyright (c) 2018 Jed Watson. | ||
Licensed under the MIT License (MIT), see | ||
http://jedwatson.github.io/classnames | ||
*/(function(p){(function(){var l={}.hasOwnProperty;function _(){for(var r="",i=0;i<arguments.length;i++){var u=arguments[i];u&&(r=g(r,e.call(this,u)))}return r}function e(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return _.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var i="";for(var u in r)l.call(r,u)&&r[u]&&(i=g(i,this&&this[u]||u));return i}function g(r,i){return i?r?r+" "+i:r+i:r}p.exports?(_.default=_,p.exports=_):window.classNames=_})()})(z);var w=z.exports;const v=N(w),O={"purpur-grid-item":"_purpur-grid-item_zx9tz_1","purpur-grid-item--no-col-gap":"_purpur-grid-item--no-col-gap_zx9tz_6","purpur-grid-item-colspan-sm-4":"_purpur-grid-item-colspan-sm-4_zx9tz_24","purpur-grid-item-colspan-sm-3":"_purpur-grid-item-colspan-sm-3_zx9tz_27","purpur-grid-item-colspan-sm-2":"_purpur-grid-item-colspan-sm-2_zx9tz_30","purpur-grid-item-colspan-sm-1":"_purpur-grid-item-colspan-sm-1_zx9tz_33","purpur-grid-item-colspan-md-8":"_purpur-grid-item-colspan-md-8_zx9tz_37","purpur-grid-item-colspan-md-7":"_purpur-grid-item-colspan-md-7_zx9tz_42","purpur-grid-item-colspan-md-6":"_purpur-grid-item-colspan-md-6_zx9tz_47","purpur-grid-item-colspan-md-5":"_purpur-grid-item-colspan-md-5_zx9tz_52","purpur-grid-item-colspan-md-4":"_purpur-grid-item-colspan-md-4_zx9tz_57","purpur-grid-item-colspan-md-3":"_purpur-grid-item-colspan-md-3_zx9tz_62","purpur-grid-item-colspan-md-2":"_purpur-grid-item-colspan-md-2_zx9tz_67","purpur-grid-item-colspan-md-1":"_purpur-grid-item-colspan-md-1_zx9tz_72","purpur-grid-item-colspan-lg-12":"_purpur-grid-item-colspan-lg-12_zx9tz_77","purpur-grid-item-colspan-lg-11":"_purpur-grid-item-colspan-lg-11_zx9tz_82","purpur-grid-item-colspan-lg-10":"_purpur-grid-item-colspan-lg-10_zx9tz_87","purpur-grid-item-colspan-lg-9":"_purpur-grid-item-colspan-lg-9_zx9tz_92","purpur-grid-item-colspan-lg-8":"_purpur-grid-item-colspan-lg-8_zx9tz_97","purpur-grid-item-colspan-lg-7":"_purpur-grid-item-colspan-lg-7_zx9tz_102","purpur-grid-item-colspan-lg-6":"_purpur-grid-item-colspan-lg-6_zx9tz_107","purpur-grid-item-colspan-lg-5":"_purpur-grid-item-colspan-lg-5_zx9tz_112","purpur-grid-item-colspan-lg-4":"_purpur-grid-item-colspan-lg-4_zx9tz_117","purpur-grid-item-colspan-lg-3":"_purpur-grid-item-colspan-lg-3_zx9tz_122","purpur-grid-item-colspan-lg-2":"_purpur-grid-item-colspan-lg-2_zx9tz_127","purpur-grid-item-colspan-lg-1":"_purpur-grid-item-colspan-lg-1_zx9tz_77"},S=v.bind(O),o="purpur-grid-item",x=({children:p,className:l,["data-testid"]:_,colSpanSm:e=4,colSpanMd:g=8,colSpanLg:r=12,noColGap:i=!1})=>{const u=S([l,o,{[`${o}--no-col-gap`]:i,[`${o}-colspan-sm-${e}`]:e,[`${o}-colspan-md-${g}`]:g,[`${o}-colspan-lg-${r}`]:r}]);return d.jsx("div",{className:u,"data-testid":_,children:p})},I=p=>!!p&&s.isValidElement(p)&&(!!p.props.colSpanSm||!!p.props.colSpanMd||!!p.props.colSpanLg),A={"purpur-grid":"_purpur-grid_13gvu_1","purpur-grid__inner":"_purpur-grid__inner_13gvu_7","purpur-grid__inner--no-gap":"_purpur-grid__inner--no-gap_13gvu_14","purpur-grid__inner--no-row-gap":"_purpur-grid__inner--no-row-gap_13gvu_14","purpur-grid__inner--grid":"_purpur-grid__inner--grid_13gvu_38","purpur-grid__inner--no-col-gap":"_purpur-grid__inner--no-col-gap_13gvu_42","purpur-grid__inner-col-sm-4":"_purpur-grid__inner-col-sm-4_13gvu_45","purpur-grid__inner-col-sm-3":"_purpur-grid__inner-col-sm-3_13gvu_48","purpur-grid__inner-col-sm-2":"_purpur-grid__inner-col-sm-2_13gvu_51","purpur-grid__inner-col-md-8":"_purpur-grid__inner-col-md-8_13gvu_55","purpur-grid__inner-col-md-7":"_purpur-grid__inner-col-md-7_13gvu_60","purpur-grid__inner-col-md-6":"_purpur-grid__inner-col-md-6_13gvu_65","purpur-grid__inner-col-md-5":"_purpur-grid__inner-col-md-5_13gvu_70","purpur-grid__inner-col-md-4":"_purpur-grid__inner-col-md-4_13gvu_75","purpur-grid__inner-col-md-3":"_purpur-grid__inner-col-md-3_13gvu_80","purpur-grid__inner-col-md-2":"_purpur-grid__inner-col-md-2_13gvu_85","purpur-grid__inner-col-lg-12":"_purpur-grid__inner-col-lg-12_13gvu_90","purpur-grid__inner-col-lg-11":"_purpur-grid__inner-col-lg-11_13gvu_95","purpur-grid__inner-col-lg-10":"_purpur-grid__inner-col-lg-10_13gvu_100","purpur-grid__inner-col-lg-9":"_purpur-grid__inner-col-lg-9_13gvu_105","purpur-grid__inner-col-lg-8":"_purpur-grid__inner-col-lg-8_13gvu_110","purpur-grid__inner-col-lg-7":"_purpur-grid__inner-col-lg-7_13gvu_115","purpur-grid__inner-col-lg-6":"_purpur-grid__inner-col-lg-6_13gvu_120","purpur-grid__inner-col-lg-5":"_purpur-grid__inner-col-lg-5_13gvu_125","purpur-grid__inner-col-lg-4":"_purpur-grid__inner-col-lg-4_13gvu_130","purpur-grid__inner-col-lg-3":"_purpur-grid__inner-col-lg-3_13gvu_135","purpur-grid__inner-col-lg-2":"_purpur-grid__inner-col-lg-2_13gvu_140","purpur-grid__inner--flex":"_purpur-grid__inner--flex_13gvu_144"},a=v.bind(A),E="purpur-grid",n="purpur-grid__inner",f=({children:p,className:l,containerClassName:_,["data-testid"]:e,colsSm:g=1,colsMd:r=1,colsLg:i=1,noGap:u=!1,noColGap:c=!1,noRowGap:$=!1,...h})=>{const m=s.Children.toArray(p).filter(I),t=m.length,y=a([_,E]),b=a([l,n,{[`${n}--grid`]:!t,[`${n}--flex`]:t,[`${n}--no-gap`]:u,[`${n}--no-col-gap`]:c,[`${n}--no-row-gap`]:$,[`${n}-col-sm-${g}`]:g>1&&!t,[`${n}-col-md-${r}`]:r>1&&!t,[`${n}-col-lg-${i}`]:i>1&&!t}]);return d.jsx("div",{className:y,"data-testid":e,...h,children:d.jsx("div",{className:b,children:t?s.Children.map(m,({props:{children:j,...C}})=>d.jsx(x,{...C,noColGap:u||c,children:j})):p})})};f.Item=x;exports.Grid=f; | ||
*/(function(p){(function(){var l={}.hasOwnProperty;function _(){for(var r="",i=0;i<arguments.length;i++){var u=arguments[i];u&&(r=d(r,e.call(this,u)))}return r}function e(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return _.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var i="";for(var u in r)l.call(r,u)&&r[u]&&(i=d(i,this&&this[u]||u));return i}function d(r,i){return i?r?r+" "+i:r+i:r}p.exports?(_.default=_,p.exports=_):window.classNames=_})()})(z);var w=z.exports;const x=N(w),O={"purpur-grid-item":"_purpur-grid-item_zx9tz_1","purpur-grid-item--no-col-gap":"_purpur-grid-item--no-col-gap_zx9tz_6","purpur-grid-item-colspan-sm-4":"_purpur-grid-item-colspan-sm-4_zx9tz_24","purpur-grid-item-colspan-sm-3":"_purpur-grid-item-colspan-sm-3_zx9tz_27","purpur-grid-item-colspan-sm-2":"_purpur-grid-item-colspan-sm-2_zx9tz_30","purpur-grid-item-colspan-sm-1":"_purpur-grid-item-colspan-sm-1_zx9tz_33","purpur-grid-item-colspan-md-8":"_purpur-grid-item-colspan-md-8_zx9tz_37","purpur-grid-item-colspan-md-7":"_purpur-grid-item-colspan-md-7_zx9tz_42","purpur-grid-item-colspan-md-6":"_purpur-grid-item-colspan-md-6_zx9tz_47","purpur-grid-item-colspan-md-5":"_purpur-grid-item-colspan-md-5_zx9tz_52","purpur-grid-item-colspan-md-4":"_purpur-grid-item-colspan-md-4_zx9tz_57","purpur-grid-item-colspan-md-3":"_purpur-grid-item-colspan-md-3_zx9tz_62","purpur-grid-item-colspan-md-2":"_purpur-grid-item-colspan-md-2_zx9tz_67","purpur-grid-item-colspan-md-1":"_purpur-grid-item-colspan-md-1_zx9tz_72","purpur-grid-item-colspan-lg-12":"_purpur-grid-item-colspan-lg-12_zx9tz_77","purpur-grid-item-colspan-lg-11":"_purpur-grid-item-colspan-lg-11_zx9tz_82","purpur-grid-item-colspan-lg-10":"_purpur-grid-item-colspan-lg-10_zx9tz_87","purpur-grid-item-colspan-lg-9":"_purpur-grid-item-colspan-lg-9_zx9tz_92","purpur-grid-item-colspan-lg-8":"_purpur-grid-item-colspan-lg-8_zx9tz_97","purpur-grid-item-colspan-lg-7":"_purpur-grid-item-colspan-lg-7_zx9tz_102","purpur-grid-item-colspan-lg-6":"_purpur-grid-item-colspan-lg-6_zx9tz_107","purpur-grid-item-colspan-lg-5":"_purpur-grid-item-colspan-lg-5_zx9tz_112","purpur-grid-item-colspan-lg-4":"_purpur-grid-item-colspan-lg-4_zx9tz_117","purpur-grid-item-colspan-lg-3":"_purpur-grid-item-colspan-lg-3_zx9tz_122","purpur-grid-item-colspan-lg-2":"_purpur-grid-item-colspan-lg-2_zx9tz_127","purpur-grid-item-colspan-lg-1":"_purpur-grid-item-colspan-lg-1_zx9tz_77"},S=x.bind(O),o="purpur-grid-item",f=({children:p,className:l,["data-testid"]:_,colSpanSm:e=4,colSpanMd:d=8,colSpanLg:r=12,noColGap:i=!1})=>{const u=S([l,o,{[`${o}--no-col-gap`]:i,[`${o}-colspan-sm-${e}`]:e,[`${o}-colspan-md-${d}`]:d,[`${o}-colspan-lg-${r}`]:r}]);return g.jsx("div",{className:u,"data-testid":_,children:p})},I=p=>!!p&&s.isValidElement(p)&&(!!p.props.colSpanSm||!!p.props.colSpanMd||!!p.props.colSpanLg),A={"purpur-grid":"_purpur-grid_113du_1","purpur-grid__inner":"_purpur-grid__inner_113du_7","purpur-grid__inner--no-gap":"_purpur-grid__inner--no-gap_113du_14","purpur-grid__inner--no-row-gap":"_purpur-grid__inner--no-row-gap_113du_14","purpur-grid__inner--grid":"_purpur-grid__inner--grid_113du_38","purpur-grid__inner--no-col-gap":"_purpur-grid__inner--no-col-gap_113du_42","purpur-grid__inner-col-sm-4":"_purpur-grid__inner-col-sm-4_113du_45","purpur-grid__inner-col-sm-3":"_purpur-grid__inner-col-sm-3_113du_48","purpur-grid__inner-col-sm-2":"_purpur-grid__inner-col-sm-2_113du_51","purpur-grid__inner-col-md-8":"_purpur-grid__inner-col-md-8_113du_55","purpur-grid__inner-col-md-7":"_purpur-grid__inner-col-md-7_113du_60","purpur-grid__inner-col-md-6":"_purpur-grid__inner-col-md-6_113du_65","purpur-grid__inner-col-md-5":"_purpur-grid__inner-col-md-5_113du_70","purpur-grid__inner-col-md-4":"_purpur-grid__inner-col-md-4_113du_75","purpur-grid__inner-col-md-3":"_purpur-grid__inner-col-md-3_113du_80","purpur-grid__inner-col-md-2":"_purpur-grid__inner-col-md-2_113du_85","purpur-grid__inner-col-lg-12":"_purpur-grid__inner-col-lg-12_113du_90","purpur-grid__inner-col-lg-11":"_purpur-grid__inner-col-lg-11_113du_95","purpur-grid__inner-col-lg-10":"_purpur-grid__inner-col-lg-10_113du_100","purpur-grid__inner-col-lg-9":"_purpur-grid__inner-col-lg-9_113du_105","purpur-grid__inner-col-lg-8":"_purpur-grid__inner-col-lg-8_113du_110","purpur-grid__inner-col-lg-7":"_purpur-grid__inner-col-lg-7_113du_115","purpur-grid__inner-col-lg-6":"_purpur-grid__inner-col-lg-6_113du_120","purpur-grid__inner-col-lg-5":"_purpur-grid__inner-col-lg-5_113du_125","purpur-grid__inner-col-lg-4":"_purpur-grid__inner-col-lg-4_113du_130","purpur-grid__inner-col-lg-3":"_purpur-grid__inner-col-lg-3_113du_135","purpur-grid__inner-col-lg-2":"_purpur-grid__inner-col-lg-2_113du_140","purpur-grid__inner--flex":"_purpur-grid__inner--flex_113du_144"},a=x.bind(A),E="purpur-grid",n="purpur-grid__inner",$=({children:p,className:l,containerClassName:_,["data-testid"]:e,colsSm:d=1,colsMd:r=1,colsLg:i=1,noGap:u=!1,noColGap:c=!1,noRowGap:h=!1,...y})=>{const m=s.Children.toArray(p).filter(I),t=m.length,b=a([_,E]),j=a([l,n,{[`${n}--grid`]:!t,[`${n}--flex`]:t,[`${n}--no-gap`]:u,[`${n}--no-col-gap`]:c,[`${n}--no-row-gap`]:h,[`${n}-col-sm-${d}`]:d>1&&!t,[`${n}-col-md-${r}`]:r>1&&!t,[`${n}-col-lg-${i}`]:i>1&&!t}]);return g.jsx("div",{className:b,"data-testid":e,...y,children:g.jsx("div",{className:j,children:t?s.Children.map(m,({props:{children:v,...C}})=>g.jsx(f,{...C,noColGap:u||c,children:v})):p})})};$.Item=f;exports.Grid=$; | ||
//# sourceMappingURL=grid.cjs.js.map |
@@ -1,2 +0,2 @@ | ||
import { jsx as d } from "react/jsx-runtime"; | ||
import { jsx as g } from "react/jsx-runtime"; | ||
import { isValidElement as C, Children as m } from "react"; | ||
@@ -18,3 +18,3 @@ function w(p) { | ||
var u = arguments[i]; | ||
u && (r = g(r, e.call(this, u))); | ||
u && (r = d(r, e.call(this, u))); | ||
} | ||
@@ -34,6 +34,6 @@ return r; | ||
for (var u in r) | ||
t.call(r, u) && r[u] && (i = g(i, this && this[u] || u)); | ||
t.call(r, u) && r[u] && (i = d(i, this && this[u] || u)); | ||
return i; | ||
} | ||
function g(r, i) { | ||
function d(r, i) { | ||
return i ? r ? r + " " + i : r + i : r; | ||
@@ -45,3 +45,3 @@ } | ||
var j = z.exports; | ||
const v = /* @__PURE__ */ w(j), I = { | ||
const x = /* @__PURE__ */ w(j), I = { | ||
"purpur-grid-item": "_purpur-grid-item_zx9tz_1", | ||
@@ -73,3 +73,3 @@ "purpur-grid-item--no-col-gap": "_purpur-grid-item--no-col-gap_zx9tz_6", | ||
"purpur-grid-item-colspan-lg-1": "_purpur-grid-item-colspan-lg-1_zx9tz_77" | ||
}, O = v.bind(I), o = "purpur-grid-item", x = ({ | ||
}, O = x.bind(I), o = "purpur-grid-item", f = ({ | ||
children: p, | ||
@@ -79,3 +79,3 @@ className: t, | ||
colSpanSm: e = 4, | ||
colSpanMd: g = 8, | ||
colSpanMd: d = 8, | ||
colSpanLg: r = 12, | ||
@@ -90,37 +90,37 @@ noColGap: i = !1 | ||
[`${o}-colspan-sm-${e}`]: e, | ||
[`${o}-colspan-md-${g}`]: g, | ||
[`${o}-colspan-md-${d}`]: d, | ||
[`${o}-colspan-lg-${r}`]: r | ||
} | ||
]); | ||
return /* @__PURE__ */ d("div", { className: u, "data-testid": _, children: p }); | ||
return /* @__PURE__ */ g("div", { className: u, "data-testid": _, children: p }); | ||
}, S = (p) => !!p && C(p) && (!!p.props.colSpanSm || !!p.props.colSpanMd || !!p.props.colSpanLg), A = { | ||
"purpur-grid": "_purpur-grid_13gvu_1", | ||
"purpur-grid__inner": "_purpur-grid__inner_13gvu_7", | ||
"purpur-grid__inner--no-gap": "_purpur-grid__inner--no-gap_13gvu_14", | ||
"purpur-grid__inner--no-row-gap": "_purpur-grid__inner--no-row-gap_13gvu_14", | ||
"purpur-grid__inner--grid": "_purpur-grid__inner--grid_13gvu_38", | ||
"purpur-grid__inner--no-col-gap": "_purpur-grid__inner--no-col-gap_13gvu_42", | ||
"purpur-grid__inner-col-sm-4": "_purpur-grid__inner-col-sm-4_13gvu_45", | ||
"purpur-grid__inner-col-sm-3": "_purpur-grid__inner-col-sm-3_13gvu_48", | ||
"purpur-grid__inner-col-sm-2": "_purpur-grid__inner-col-sm-2_13gvu_51", | ||
"purpur-grid__inner-col-md-8": "_purpur-grid__inner-col-md-8_13gvu_55", | ||
"purpur-grid__inner-col-md-7": "_purpur-grid__inner-col-md-7_13gvu_60", | ||
"purpur-grid__inner-col-md-6": "_purpur-grid__inner-col-md-6_13gvu_65", | ||
"purpur-grid__inner-col-md-5": "_purpur-grid__inner-col-md-5_13gvu_70", | ||
"purpur-grid__inner-col-md-4": "_purpur-grid__inner-col-md-4_13gvu_75", | ||
"purpur-grid__inner-col-md-3": "_purpur-grid__inner-col-md-3_13gvu_80", | ||
"purpur-grid__inner-col-md-2": "_purpur-grid__inner-col-md-2_13gvu_85", | ||
"purpur-grid__inner-col-lg-12": "_purpur-grid__inner-col-lg-12_13gvu_90", | ||
"purpur-grid__inner-col-lg-11": "_purpur-grid__inner-col-lg-11_13gvu_95", | ||
"purpur-grid__inner-col-lg-10": "_purpur-grid__inner-col-lg-10_13gvu_100", | ||
"purpur-grid__inner-col-lg-9": "_purpur-grid__inner-col-lg-9_13gvu_105", | ||
"purpur-grid__inner-col-lg-8": "_purpur-grid__inner-col-lg-8_13gvu_110", | ||
"purpur-grid__inner-col-lg-7": "_purpur-grid__inner-col-lg-7_13gvu_115", | ||
"purpur-grid__inner-col-lg-6": "_purpur-grid__inner-col-lg-6_13gvu_120", | ||
"purpur-grid__inner-col-lg-5": "_purpur-grid__inner-col-lg-5_13gvu_125", | ||
"purpur-grid__inner-col-lg-4": "_purpur-grid__inner-col-lg-4_13gvu_130", | ||
"purpur-grid__inner-col-lg-3": "_purpur-grid__inner-col-lg-3_13gvu_135", | ||
"purpur-grid__inner-col-lg-2": "_purpur-grid__inner-col-lg-2_13gvu_140", | ||
"purpur-grid__inner--flex": "_purpur-grid__inner--flex_13gvu_144" | ||
}, a = v.bind(A), E = "purpur-grid", n = "purpur-grid__inner", P = ({ | ||
"purpur-grid": "_purpur-grid_113du_1", | ||
"purpur-grid__inner": "_purpur-grid__inner_113du_7", | ||
"purpur-grid__inner--no-gap": "_purpur-grid__inner--no-gap_113du_14", | ||
"purpur-grid__inner--no-row-gap": "_purpur-grid__inner--no-row-gap_113du_14", | ||
"purpur-grid__inner--grid": "_purpur-grid__inner--grid_113du_38", | ||
"purpur-grid__inner--no-col-gap": "_purpur-grid__inner--no-col-gap_113du_42", | ||
"purpur-grid__inner-col-sm-4": "_purpur-grid__inner-col-sm-4_113du_45", | ||
"purpur-grid__inner-col-sm-3": "_purpur-grid__inner-col-sm-3_113du_48", | ||
"purpur-grid__inner-col-sm-2": "_purpur-grid__inner-col-sm-2_113du_51", | ||
"purpur-grid__inner-col-md-8": "_purpur-grid__inner-col-md-8_113du_55", | ||
"purpur-grid__inner-col-md-7": "_purpur-grid__inner-col-md-7_113du_60", | ||
"purpur-grid__inner-col-md-6": "_purpur-grid__inner-col-md-6_113du_65", | ||
"purpur-grid__inner-col-md-5": "_purpur-grid__inner-col-md-5_113du_70", | ||
"purpur-grid__inner-col-md-4": "_purpur-grid__inner-col-md-4_113du_75", | ||
"purpur-grid__inner-col-md-3": "_purpur-grid__inner-col-md-3_113du_80", | ||
"purpur-grid__inner-col-md-2": "_purpur-grid__inner-col-md-2_113du_85", | ||
"purpur-grid__inner-col-lg-12": "_purpur-grid__inner-col-lg-12_113du_90", | ||
"purpur-grid__inner-col-lg-11": "_purpur-grid__inner-col-lg-11_113du_95", | ||
"purpur-grid__inner-col-lg-10": "_purpur-grid__inner-col-lg-10_113du_100", | ||
"purpur-grid__inner-col-lg-9": "_purpur-grid__inner-col-lg-9_113du_105", | ||
"purpur-grid__inner-col-lg-8": "_purpur-grid__inner-col-lg-8_113du_110", | ||
"purpur-grid__inner-col-lg-7": "_purpur-grid__inner-col-lg-7_113du_115", | ||
"purpur-grid__inner-col-lg-6": "_purpur-grid__inner-col-lg-6_113du_120", | ||
"purpur-grid__inner-col-lg-5": "_purpur-grid__inner-col-lg-5_113du_125", | ||
"purpur-grid__inner-col-lg-4": "_purpur-grid__inner-col-lg-4_113du_130", | ||
"purpur-grid__inner-col-lg-3": "_purpur-grid__inner-col-lg-3_113du_135", | ||
"purpur-grid__inner-col-lg-2": "_purpur-grid__inner-col-lg-2_113du_140", | ||
"purpur-grid__inner--flex": "_purpur-grid__inner--flex_113du_144" | ||
}, a = x.bind(A), E = "purpur-grid", n = "purpur-grid__inner", P = ({ | ||
children: p, | ||
@@ -130,3 +130,3 @@ className: t, | ||
["data-testid"]: e, | ||
colsSm: g = 1, | ||
colsSm: d = 1, | ||
colsMd: r = 1, | ||
@@ -136,6 +136,6 @@ colsLg: i = 1, | ||
noColGap: s = !1, | ||
noRowGap: f = !1, | ||
...$ | ||
noRowGap: $ = !1, | ||
...h | ||
}) => { | ||
const c = m.toArray(p).filter(S), l = c.length, h = a([_, E]), y = a([ | ||
const c = m.toArray(p).filter(S), l = c.length, y = a([_, E]), v = a([ | ||
t, | ||
@@ -148,4 +148,4 @@ n, | ||
[`${n}--no-col-gap`]: s, | ||
[`${n}--no-row-gap`]: f, | ||
[`${n}-col-sm-${g}`]: g > 1 && !l, | ||
[`${n}--no-row-gap`]: $, | ||
[`${n}-col-sm-${d}`]: d > 1 && !l, | ||
[`${n}-col-md-${r}`]: r > 1 && !l, | ||
@@ -155,5 +155,5 @@ [`${n}-col-lg-${i}`]: i > 1 && !l | ||
]); | ||
return /* @__PURE__ */ d("div", { className: h, "data-testid": e, ...$, children: /* @__PURE__ */ d("div", { className: y, children: l ? m.map(c, ({ props: { children: b, ...N } }) => /* @__PURE__ */ d(x, { ...N, noColGap: u || s, children: b })) : p }) }); | ||
return /* @__PURE__ */ g("div", { className: y, "data-testid": e, ...h, children: /* @__PURE__ */ g("div", { className: v, children: l ? m.map(c, ({ props: { children: b, ...N } }) => /* @__PURE__ */ g(f, { ...N, noColGap: u || s, children: b })) : p }) }); | ||
}; | ||
P.Item = x; | ||
P.Item = f; | ||
export { | ||
@@ -160,0 +160,0 @@ P as Grid |
{ | ||
"name": "@purpurds/grid", | ||
"version": "5.11.1", | ||
"version": "5.11.2", | ||
"license": "AGPL-3.0-only", | ||
@@ -18,3 +18,3 @@ "main": "./dist/grid.cjs.js", | ||
"classnames": "~2.5.0", | ||
"@purpurds/tokens": "5.11.1" | ||
"@purpurds/tokens": "5.11.2" | ||
}, | ||
@@ -46,3 +46,3 @@ "devDependencies": { | ||
"@purpurds/component-rig": "1.0.0", | ||
"@purpurds/link": "5.11.1" | ||
"@purpurds/link": "5.11.2" | ||
}, | ||
@@ -49,0 +49,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
63174
+ Added@purpurds/tokens@5.11.2(transitive)
- Removed@purpurds/tokens@5.11.1(transitive)
Updated@purpurds/tokens@5.11.2