amotify 0.3.39 → 0.3.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,9 +4,9 @@ import Box from './Box';
4
4
  declare namespace Grid {
5
5
  namespace Layout {
6
6
  type Input = Box.DefaultInput & {
7
- gridTemplateColumns: StandardLonghandProperties['gridTemplateColumns'];
8
- gridTemplateRows: StandardLonghandProperties['gridTemplateRows'];
9
- gridChildTemplates: [
7
+ gridTemplateColumns?: StandardLonghandProperties['gridTemplateColumns'];
8
+ gridTemplateRows?: StandardLonghandProperties['gridTemplateRows'];
9
+ gridChildTemplates?: [
10
10
  StandardShorthandProperties['gridColumn'] | void,
11
11
  StandardShorthandProperties['gridRow'] | void
12
12
  ][];
@@ -1,2 +1,2 @@
1
- import{b as o,c as u,d as h}from"../chunk-C5N2D3ZX.js";import{jsx as c}from"react/jsx-runtime";import g,{UUID as S}from"jmini";import x from"./Box";import{GridClasses as L}from"../@styles/componentClasses";import{useEffect as T,useState as $}from"react";const G=t=>c(x,o({display:"grid"},t)),i=G;i.Layout=t=>{let n=t,{gridTemplateColumns:f,gridTemplateRows:y,gridChildTemplates:d=[]}=n,C=h(n,["gridTemplateColumns","gridTemplateRows","gridChildTemplates"]),[a]=$(S(12));return T(()=>{let s="inlinestyle-"+a,r=document.createElement("style");return r.textContent="",d.forEach(([l,p],m)=>{let e=[`[data-grid-layout-id='${a}'] > *:nth-child(${d.length}n + ${m+1}) {`];d.length==m+1&&(e=[`[data-grid-layout-id='${a}'] > *:nth-child(${d.length}n) {`]),l&&e.push(` grid-column:${l};`),p&&e.push(` grid-row:${p};`),e.push("}",""),r.textContent+=e.join(`
2
- `)}),r.id=s,g("head").append(r),()=>{g("#"+s).remove()}},[]),c(i,u(o({},C),{"data-grid-layout-id":a,className:[t.className,L("GridLayout")].join(" "),xcss:o({gridTemplateColumns:f,gridTemplateRows:y},t.xcss)}))};export{i as Grid,i as default};
1
+ import{b as o,c as u,d as h}from"../chunk-C5N2D3ZX.js";import{jsx as c}from"react/jsx-runtime";import g,{UUID as S}from"jmini";import x from"./Box";import{GridClasses as L}from"../@styles/componentClasses";import{useEffect as $,useState as G}from"react";const T=t=>c(x,o({display:"grid"},t)),i=T;i.Layout=t=>{let n=t,{gridTemplateColumns:f,gridTemplateRows:y,gridChildTemplates:d=[]}=n,C=h(n,["gridTemplateColumns","gridTemplateRows","gridChildTemplates"]),[r]=G(S(12));return $(()=>{let s="inlinestyle-"+r,a=document.createElement("style");return a.textContent="",d.forEach(([l,p],m)=>{let e=[`[data-grid-layout-id='${r}'] > *:nth-child(${d.length}n + ${m+1}) {`];d.length==m+1&&(e=[`[data-grid-layout-id='${r}'] > *:nth-child(${d.length}n) {`]),l&&e.push(` grid-column:${l};`),p&&e.push(` grid-row:${p};`),e.push("}",""),a.textContent+=e.join(`
2
+ `)}),a.id=s,g("head").append(a),()=>{g("#"+s).remove()}},[]),c(i,u(o({},C),{"data-grid-layout-id":r,className:[t.className,L("GridLayout")].join(" "),xcss:o({gridTemplateColumns:f,gridTemplateRows:y},t.xcss)}))};export{i as Grid,i as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amotify",
3
- "version": "0.3.39",
3
+ "version": "0.3.40",
4
4
  "description": "UI Component for React,NextJS,esbuild",
5
5
  "scripts": {
6
6
  "start": "run-p clean build:*",