@purpurds/grid
Advanced tools
Comparing version 5.24.0 to 5.24.1
@@ -1,6 +0,6 @@ | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),s=require("react");function C(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}var f={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 v={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=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=_})()})(f);var w=f.exports;const $=C(w),I={"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"},O=$.bind(I),o="purpur-grid-item",c=({children:p,className:l,["data-testid"]:_,colSpanSm:e=4,colSpanMd:d=8,colSpanLg:r=12,noColGap:i=!1})=>{const u=O([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})},S=p=>!!p&&s.isValidElement(p)&&(!!p.props.colSpanSm||!!p.props.colSpanMd||!!p.props.colSpanLg);c.displayName="Grid.Item";const 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"},x=$.bind(A),E="purpur-grid",n="purpur-grid__inner",m=({children:p,className:l,containerClassName:_,["data-testid"]:e,colsSm:d=1,colsMd:r=1,colsLg:i=1,noGap:u=!1,noColGap:a=!1,noRowGap:h=!1,...y})=>{const z=s.Children.toArray(p).filter(S),t=z.length,b=x([_,E]),j=x([l,n,{[`${n}--grid`]:!t,[`${n}--flex`]:t,[`${n}--no-gap`]:u,[`${n}--no-col-gap`]:a,[`${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(z,({props:{children:v,...N}})=>g.jsx(c,{...N,noColGap:u||a,children:v})):p})})};m.displayName="Grid";m.Item=c;exports.Grid=m; | ||
*/(function(p){(function(){var d={}.hasOwnProperty;function u(){for(var r="",i=0;i<arguments.length;i++){var _=arguments[i];_&&(r=e(r,t.call(this,_)))}return r}function t(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return u.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var i="";for(var _ in r)d.call(r,_)&&r[_]&&(i=e(i,this&&this[_]||_));return i}function e(r,i){return i?r?r+" "+i:r+i:r}p.exports?(u.default=u,p.exports=u):window.classNames=u})()})(v);var C=v.exports;const x=N(C),w={"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"},I=x.bind(w),o="purpur-grid-item",c=({children:p,className:d,["data-testid"]:u,colSpanSm:t=4,colSpanMd:e=8,colSpanLg:r=12,noColGap:i=!1})=>{const _=I([d,o,{[`${o}--no-col-gap`]:i,[`${o}-colspan-sm-${t}`]:t,[`${o}-colspan-md-${e}`]:e,[`${o}-colspan-lg-${r}`]:r}]);return g.jsx("div",{className:_,"data-testid":u,children:p})},O=p=>!!p&&s.isValidElement(p)&&(!!p.props.colSpanSm||!!p.props.colSpanMd||!!p.props.colSpanLg);c.displayName="Grid.Item";const S={"purpur-grid":"_purpur-grid_8kjv6_1","purpur-grid__inner":"_purpur-grid__inner_8kjv6_27","purpur-grid__inner--no-gap":"_purpur-grid__inner--no-gap_8kjv6_32","purpur-grid__inner--no-row-gap":"_purpur-grid__inner--no-row-gap_8kjv6_32","purpur-grid__inner--grid":"_purpur-grid__inner--grid_8kjv6_50","purpur-grid__inner--no-col-gap":"_purpur-grid__inner--no-col-gap_8kjv6_54","purpur-grid__inner-col-sm-4":"_purpur-grid__inner-col-sm-4_8kjv6_57","purpur-grid__inner-col-sm-3":"_purpur-grid__inner-col-sm-3_8kjv6_60","purpur-grid__inner-col-sm-2":"_purpur-grid__inner-col-sm-2_8kjv6_63","purpur-grid__inner-col-md-8":"_purpur-grid__inner-col-md-8_8kjv6_67","purpur-grid__inner-col-md-7":"_purpur-grid__inner-col-md-7_8kjv6_72","purpur-grid__inner-col-md-6":"_purpur-grid__inner-col-md-6_8kjv6_77","purpur-grid__inner-col-md-5":"_purpur-grid__inner-col-md-5_8kjv6_82","purpur-grid__inner-col-md-4":"_purpur-grid__inner-col-md-4_8kjv6_87","purpur-grid__inner-col-md-3":"_purpur-grid__inner-col-md-3_8kjv6_92","purpur-grid__inner-col-md-2":"_purpur-grid__inner-col-md-2_8kjv6_97","purpur-grid__inner-col-lg-12":"_purpur-grid__inner-col-lg-12_8kjv6_102","purpur-grid__inner-col-lg-11":"_purpur-grid__inner-col-lg-11_8kjv6_107","purpur-grid__inner-col-lg-10":"_purpur-grid__inner-col-lg-10_8kjv6_112","purpur-grid__inner-col-lg-9":"_purpur-grid__inner-col-lg-9_8kjv6_117","purpur-grid__inner-col-lg-8":"_purpur-grid__inner-col-lg-8_8kjv6_122","purpur-grid__inner-col-lg-7":"_purpur-grid__inner-col-lg-7_8kjv6_127","purpur-grid__inner-col-lg-6":"_purpur-grid__inner-col-lg-6_8kjv6_132","purpur-grid__inner-col-lg-5":"_purpur-grid__inner-col-lg-5_8kjv6_137","purpur-grid__inner-col-lg-4":"_purpur-grid__inner-col-lg-4_8kjv6_142","purpur-grid__inner-col-lg-3":"_purpur-grid__inner-col-lg-3_8kjv6_147","purpur-grid__inner-col-lg-2":"_purpur-grid__inner-col-lg-2_8kjv6_152","purpur-grid__inner--flex":"_purpur-grid__inner--flex_8kjv6_156"},j=x.bind(S),A="purpur-grid",n="purpur-grid__inner",m=({children:p,className:d,containerClassName:u,["data-testid"]:t,colsSm:e=1,colsMd:r=1,colsLg:i=1,noGap:_=!1,noColGap:a=!1,noRowGap:f=!1,...k})=>{const z=s.Children.toArray(p).filter(O),l=z.length,$=j([u,A]),h=j([d,n,{[`${n}--grid`]:!l,[`${n}--flex`]:l,[`${n}--no-gap`]:_,[`${n}--no-col-gap`]:a,[`${n}--no-row-gap`]:f,[`${n}-col-sm-${e}`]:e>1&&!l,[`${n}-col-md-${r}`]:r>1&&!l,[`${n}-col-lg-${i}`]:i>1&&!l}]);return g.jsx("div",{className:$,"data-testid":t,...k,children:g.jsx("div",{className:h,children:l?s.Children.map(z,({props:{children:y,...b}})=>g.jsx(c,{...b,noColGap:_||a,children:y})):p})})};m.displayName="Grid";m.Item=c;exports.Grid=m; | ||
//# sourceMappingURL=grid.cjs.js.map |
import { jsx as g } from "react/jsx-runtime"; | ||
import { isValidElement as w, Children as a } from "react"; | ||
function I(p) { | ||
import { isValidElement as b, Children as a } from "react"; | ||
function C(p) { | ||
return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, "default") ? p.default : p; | ||
} | ||
var x = { exports: {} }; | ||
var v = { exports: {} }; | ||
/*! | ||
@@ -14,11 +14,11 @@ Copyright (c) 2018 Jed Watson. | ||
(function() { | ||
var t = {}.hasOwnProperty; | ||
function _() { | ||
var d = {}.hasOwnProperty; | ||
function u() { | ||
for (var r = "", i = 0; i < arguments.length; i++) { | ||
var u = arguments[i]; | ||
u && (r = d(r, e.call(this, u))); | ||
var _ = arguments[i]; | ||
_ && (r = e(r, l.call(this, _))); | ||
} | ||
return r; | ||
} | ||
function e(r) { | ||
function l(r) { | ||
if (typeof r == "string" || typeof r == "number") | ||
@@ -29,18 +29,18 @@ return this && this[r] || r; | ||
if (Array.isArray(r)) | ||
return _.apply(this, r); | ||
return u.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) | ||
t.call(r, u) && r[u] && (i = d(i, this && this[u] || u)); | ||
for (var _ in r) | ||
d.call(r, _) && r[_] && (i = e(i, this && this[_] || _)); | ||
return i; | ||
} | ||
function d(r, i) { | ||
function e(r, i) { | ||
return i ? r ? r + " " + i : r + i : r; | ||
} | ||
p.exports ? (_.default = _, p.exports = _) : window.classNames = _; | ||
p.exports ? (u.default = u, p.exports = u) : window.classNames = u; | ||
})(); | ||
})(x); | ||
var j = x.exports; | ||
const f = /* @__PURE__ */ I(j), O = { | ||
})(v); | ||
var w = v.exports; | ||
const x = /* @__PURE__ */ C(w), I = { | ||
"purpur-grid-item": "_purpur-grid-item_zx9tz_1", | ||
@@ -72,87 +72,87 @@ "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" | ||
}, S = f.bind(O), o = "purpur-grid-item", s = ({ | ||
}, O = x.bind(I), o = "purpur-grid-item", s = ({ | ||
children: p, | ||
className: t, | ||
["data-testid"]: _, | ||
colSpanSm: e = 4, | ||
colSpanMd: d = 8, | ||
className: d, | ||
["data-testid"]: u, | ||
colSpanSm: l = 4, | ||
colSpanMd: e = 8, | ||
colSpanLg: r = 12, | ||
noColGap: i = !1 | ||
}) => { | ||
const u = S([ | ||
t, | ||
const _ = O([ | ||
d, | ||
o, | ||
{ | ||
[`${o}--no-col-gap`]: i, | ||
[`${o}-colspan-sm-${e}`]: e, | ||
[`${o}-colspan-md-${d}`]: d, | ||
[`${o}-colspan-sm-${l}`]: l, | ||
[`${o}-colspan-md-${e}`]: e, | ||
[`${o}-colspan-lg-${r}`]: r | ||
} | ||
]); | ||
return /* @__PURE__ */ g("div", { className: u, "data-testid": _, children: p }); | ||
}, A = (p) => !!p && w(p) && (!!p.props.colSpanSm || !!p.props.colSpanMd || !!p.props.colSpanLg); | ||
return /* @__PURE__ */ g("div", { className: _, "data-testid": u, children: p }); | ||
}, S = (p) => !!p && b(p) && (!!p.props.colSpanSm || !!p.props.colSpanMd || !!p.props.colSpanLg); | ||
s.displayName = "Grid.Item"; | ||
const E = { | ||
"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" | ||
}, z = f.bind(E), G = "purpur-grid", n = "purpur-grid__inner", $ = ({ | ||
const A = { | ||
"purpur-grid": "_purpur-grid_8kjv6_1", | ||
"purpur-grid__inner": "_purpur-grid__inner_8kjv6_27", | ||
"purpur-grid__inner--no-gap": "_purpur-grid__inner--no-gap_8kjv6_32", | ||
"purpur-grid__inner--no-row-gap": "_purpur-grid__inner--no-row-gap_8kjv6_32", | ||
"purpur-grid__inner--grid": "_purpur-grid__inner--grid_8kjv6_50", | ||
"purpur-grid__inner--no-col-gap": "_purpur-grid__inner--no-col-gap_8kjv6_54", | ||
"purpur-grid__inner-col-sm-4": "_purpur-grid__inner-col-sm-4_8kjv6_57", | ||
"purpur-grid__inner-col-sm-3": "_purpur-grid__inner-col-sm-3_8kjv6_60", | ||
"purpur-grid__inner-col-sm-2": "_purpur-grid__inner-col-sm-2_8kjv6_63", | ||
"purpur-grid__inner-col-md-8": "_purpur-grid__inner-col-md-8_8kjv6_67", | ||
"purpur-grid__inner-col-md-7": "_purpur-grid__inner-col-md-7_8kjv6_72", | ||
"purpur-grid__inner-col-md-6": "_purpur-grid__inner-col-md-6_8kjv6_77", | ||
"purpur-grid__inner-col-md-5": "_purpur-grid__inner-col-md-5_8kjv6_82", | ||
"purpur-grid__inner-col-md-4": "_purpur-grid__inner-col-md-4_8kjv6_87", | ||
"purpur-grid__inner-col-md-3": "_purpur-grid__inner-col-md-3_8kjv6_92", | ||
"purpur-grid__inner-col-md-2": "_purpur-grid__inner-col-md-2_8kjv6_97", | ||
"purpur-grid__inner-col-lg-12": "_purpur-grid__inner-col-lg-12_8kjv6_102", | ||
"purpur-grid__inner-col-lg-11": "_purpur-grid__inner-col-lg-11_8kjv6_107", | ||
"purpur-grid__inner-col-lg-10": "_purpur-grid__inner-col-lg-10_8kjv6_112", | ||
"purpur-grid__inner-col-lg-9": "_purpur-grid__inner-col-lg-9_8kjv6_117", | ||
"purpur-grid__inner-col-lg-8": "_purpur-grid__inner-col-lg-8_8kjv6_122", | ||
"purpur-grid__inner-col-lg-7": "_purpur-grid__inner-col-lg-7_8kjv6_127", | ||
"purpur-grid__inner-col-lg-6": "_purpur-grid__inner-col-lg-6_8kjv6_132", | ||
"purpur-grid__inner-col-lg-5": "_purpur-grid__inner-col-lg-5_8kjv6_137", | ||
"purpur-grid__inner-col-lg-4": "_purpur-grid__inner-col-lg-4_8kjv6_142", | ||
"purpur-grid__inner-col-lg-3": "_purpur-grid__inner-col-lg-3_8kjv6_147", | ||
"purpur-grid__inner-col-lg-2": "_purpur-grid__inner-col-lg-2_8kjv6_152", | ||
"purpur-grid__inner--flex": "_purpur-grid__inner--flex_8kjv6_156" | ||
}, z = x.bind(A), E = "purpur-grid", n = "purpur-grid__inner", f = ({ | ||
children: p, | ||
className: t, | ||
containerClassName: _, | ||
["data-testid"]: e, | ||
colsSm: d = 1, | ||
className: d, | ||
containerClassName: u, | ||
["data-testid"]: l, | ||
colsSm: e = 1, | ||
colsMd: r = 1, | ||
colsLg: i = 1, | ||
noGap: u = !1, | ||
noGap: _ = !1, | ||
noColGap: c = !1, | ||
noRowGap: h = !1, | ||
...y | ||
noRowGap: j = !1, | ||
...k | ||
}) => { | ||
const m = a.toArray(p).filter(A), l = m.length, N = z([_, G]), v = z([ | ||
t, | ||
const m = a.toArray(p).filter(S), t = m.length, $ = z([u, E]), h = z([ | ||
d, | ||
n, | ||
{ | ||
[`${n}--grid`]: !l, | ||
[`${n}--flex`]: l, | ||
[`${n}--no-gap`]: u, | ||
[`${n}--grid`]: !t, | ||
[`${n}--flex`]: t, | ||
[`${n}--no-gap`]: _, | ||
[`${n}--no-col-gap`]: c, | ||
[`${n}--no-row-gap`]: h, | ||
[`${n}-col-sm-${d}`]: d > 1 && !l, | ||
[`${n}-col-md-${r}`]: r > 1 && !l, | ||
[`${n}-col-lg-${i}`]: i > 1 && !l | ||
[`${n}--no-row-gap`]: j, | ||
[`${n}-col-sm-${e}`]: e > 1 && !t, | ||
[`${n}-col-md-${r}`]: r > 1 && !t, | ||
[`${n}-col-lg-${i}`]: i > 1 && !t | ||
} | ||
]); | ||
return /* @__PURE__ */ g("div", { className: N, "data-testid": e, ...y, children: /* @__PURE__ */ g("div", { className: v, children: l ? a.map(m, ({ props: { children: b, ...C } }) => /* @__PURE__ */ g(s, { ...C, noColGap: u || c, children: b })) : p }) }); | ||
return /* @__PURE__ */ g("div", { className: $, "data-testid": l, ...k, children: /* @__PURE__ */ g("div", { className: h, children: t ? a.map(m, ({ props: { children: y, ...N } }) => /* @__PURE__ */ g(s, { ...N, noColGap: _ || c, children: y })) : p }) }); | ||
}; | ||
$.displayName = "Grid"; | ||
$.Item = s; | ||
f.displayName = "Grid"; | ||
f.Item = s; | ||
export { | ||
$ as Grid | ||
f as Grid | ||
}; | ||
//# sourceMappingURL=grid.es.js.map |
{ | ||
"name": "@purpurds/grid", | ||
"version": "5.24.0", | ||
"version": "5.24.1", | ||
"license": "AGPL-3.0-only", | ||
@@ -18,3 +18,3 @@ "main": "./dist/grid.cjs.js", | ||
"classnames": "~2.5.0", | ||
"@purpurds/tokens": "5.24.0" | ||
"@purpurds/tokens": "5.24.1" | ||
}, | ||
@@ -45,4 +45,4 @@ "devDependencies": { | ||
"vitest": "^2.1.2", | ||
"@purpurds/component-rig": "1.0.0", | ||
"@purpurds/link": "5.24.0" | ||
"@purpurds/link": "5.24.1", | ||
"@purpurds/component-rig": "1.0.0" | ||
}, | ||
@@ -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
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
64026
594
+ Added@purpurds/tokens@5.24.1(transitive)
- Removed@purpurds/tokens@5.24.0(transitive)
Updated@purpurds/tokens@5.24.1