(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60137],{1178:(s,e,r)=>{"use strict";r.d(e,{Z:()=>i});var l=r(67841),a=r(79477),t=r(64833),n=r(75865),o=r(77047);let c=(0,t.z)("label")({name:"Wrapper",class:"wfao701",propsAsIs:!1}),i=function(s){let{active:e,handleToggle:r,children:t,...i}=s,d=a.useId();return(0,l.jsxs)(c,{htmlFor:d,...i,children:[(0,l.jsx)(o.Z,{id:d,active:e,handleToggle:r,handleFocusColor:null,handleColor:e?"var(--color-text)":"var(--color-gray-400)"}),(0,l.jsx)(n.Z,{size:16}),t]})};r(14934)},15594:(s,e,r)=>{"use strict";r.d(e,{G0:()=>c,c7:()=>n,oS:()=>o,oy:()=>t});var l=r(64833),a=r(45700);let t=(0,l.z)("div")({name:"GridStructure",class:"g1nrkimi",propsAsIs:!1}),n=(0,l.z)("div")({name:"BaseCodeWrapper",class:"bu47715",propsAsIs:!1}),o=(0,l.z)(a.E.div)({name:"LabeledColumn",class:"ljraie7",propsAsIs:!0}),c=(0,l.z)(a.E.div)({name:"LabeledRow",class:"l12tgnsh",propsAsIs:!0});r(19351)},38734:(s,e,r)=>{"use strict";r.d(e,{Z:()=>d});var l=r(67841),a=r(79477),t=r(64833),n=r(55158),o=r(1178);let c=(0,t.z)("div")({name:"Wrapper",class:"w1n5e7hb",propsAsIs:!1}),i=(0,t.z)(function(s){let{isPerspectiveEnabled:e,setIsPerspectiveEnabled:r,...a}=s;return(0,l.jsx)(o.Z,{active:e,handleToggle:()=>r(!e),...a,children:"Show Perspective"})})({name:"GridPerspectiveToggle",class:"g19jnwoh",propsAsIs:!0}),d=function(s){let{defaultPerspectiveEnabled:e=!0,children:r,hidePerspectiveControl:t,...o}=s,d=a.useId().replace(/:/g,""),[p,u]=a.useState(e);return(0,l.jsx)(n.ZP,{...o,id:"grid-demo-".concat(d),outputWrapper:null,controlPosition:"top",children:s=>(0,l.jsxs)(c,{children:[r({...s,isPerspectiveEnabled:p}),!t&&(0,l.jsx)(i,{id:d,isPerspectiveEnabled:p,setIsPerspectiveEnabled:u})]})})};r(39922)},76533:(s,e,r)=>{"use strict";r.d(e,{Z:()=>c});var l=r(67841),a=r(64833),t=r(45700);let n=(0,a.z)(t.E.div)({name:"Wrapper",class:"wg9umku",propsAsIs:!0}),o=(0,a.z)(t.E.div)({name:"InnerWrapper",class:"iizukyq",propsAsIs:!0}),c=function(s){let{ref:e,primary:r,layout:a=!0,style:c={},wrapperStyle:i={},textWrapperStyle:d={},children:p,...u}=s;return(0,l.jsx)(n,{ref:e,layout:a,initial:{borderRadius:4},style:{background:r?"hsl(50deg 100% 90%)":"var(--color-gray-500)",...c},...u,children:(0,l.jsx)(o,{layout:a,initial:{borderRadius:2},style:{color:r?"black":"var(--color-text)",background:r?"hsl(50deg 100% 50%)":"var(--color-gray-100)",...i},children:(0,l.jsx)(t.E.span,{layout:a,style:{display:"inline-block",...d},children:p})})})};r(76206)},60137:(s,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>z});var l=r(67841),a=r(64833),t=r(45700),n=r(28061),o=r(55158),c=r(38734),i=r(76533),d=r(15594);let p=(0,a.z)("div")({name:"ControlWrapper",class:"cp4zhtm",propsAsIs:!1}),u=(0,a.z)("div")({name:"Row",class:"r10w9cdz",propsAsIs:!1}),g=(0,a.z)(t.E.div)({name:"DemoWrapper",class:"d4chs8q",propsAsIs:!0}),h=(0,a.z)("div")({name:"Layer",class:"l17tul41",propsAsIs:!1}),m=(0,a.z)(h)({name:"BackLayer",class:"b13svipt",propsAsIs:!0}),y=(0,a.z)("div")({name:"ColumnStructure",class:"c129p5dj",propsAsIs:!1}),j=(0,a.z)("div")({name:"RowStructure",class:"rq0ogn8",propsAsIs:!1}),x=(0,a.z)("div")({name:"ChildWrapper",class:"cxpva8w",propsAsIs:!1}),v=(0,a.z)(i.Z)({name:"Item",class:"i19y52df",propsAsIs:!0}),w=(0,a.z)(d.c7)({name:"CodeWrapper",class:"cgm25an",propsAsIs:!0}),z=function(){return(0,l.jsx)(c.Z,{initialValues:{placeContent:"center"},customGrid:{gridTemplateColumns:"1fr"},defaultPerspectiveEnabled:!1,controls:[(0,l.jsx)(p,{children:(0,l.jsx)(o.aU,{id:"placeContent",label:"place-content",options:["start","center","end"]})},"placeContent")],children:s=>{let{placeContent:e,isPerspectiveEnabled:r}=s,a=".parent {\n display: grid;\n place-content: ".concat(e,";\n}");return(0,l.jsxs)(u,{children:[(0,l.jsx)(w,{children:(0,l.jsx)(n.default,{omitCopyButton:!0,lockedToColorMode:"dark",code:a,lang:"css"})}),(0,l.jsxs)(g,{layout:!0,layoutRoot:!0,children:[(0,l.jsxs)(m,{style:{transform:r?"translateX(10%) skewY(18deg) scaleX(0.85)":"translateX(0%) skewY(0deg) scaleX(1)"},children:[(0,l.jsx)(j,{style:{alignContent:e},children:(0,l.jsx)(d.G0,{layout:!r,style:{gridColumn:"1 / 3",gridRow:1},children:"R1"})}),(0,l.jsx)(y,{style:{justifyContent:e},children:(0,l.jsx)(d.oS,{layout:!r,style:{gridColumn:1,gridRow:"1 / 3"},children:"C1"})}),(0,l.jsx)(j,{style:{alignContent:e},children:(0,l.jsx)(d.G0,{layout:!r,style:{gridColumn:"1 / 3",gridRow:1,background:"transparent"},children:"R1"})}),(0,l.jsx)(y,{style:{justifyContent:e},children:(0,l.jsx)(d.oS,{layout:!r,style:{gridColumn:1,gridRow:"1 / 3",background:"transparent"},children:"C1"})})]}),(0,l.jsx)(h,{style:{transform:r?"translateX(-10%) skewY(18deg) scaleX(0.85)":"translateX(0%) skewY(0deg) scaleX(1)"},children:(0,l.jsx)(x,{style:{placeContent:e},children:(0,l.jsx)(v,{layout:!r,style:{opacity:r?.8:1},children:"Child"})})})]})]})}})};r(17248)},14934:s=>{s.exports={wfao701:"wfao701"}},19351:s=>{s.exports={g1nrkimi:"g1nrkimi",bu47715:"bu47715",ljraie7:"ljraie7",l12tgnsh:"l12tgnsh"}},39922:s=>{s.exports={w1n5e7hb:"w1n5e7hb",g19jnwoh:"g19jnwoh"}},76206:s=>{s.exports={wg9umku:"wg9umku",fadeFromTransparent:"fadeFromTransparent",iizukyq:"iizukyq"}},17248:s=>{s.exports={cp4zhtm:"cp4zhtm",r10w9cdz:"r10w9cdz",d4chs8q:"d4chs8q",l17tul41:"l17tul41",b13svipt:"b13svipt",c129p5dj:"c129p5dj",rq0ogn8:"rq0ogn8",cxpva8w:"cxpva8w",i19y52df:"i19y52df",cgm25an:"cgm25an"}}}]); //# sourceMappingURL=60137.0eea00e6ddab02e0.js.map