amotify 0.3.40 → 0.3.41

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.
@@ -10,17 +10,25 @@ declare namespace Row {
10
10
  Left: React.FC<Flex.Input>;
11
11
  Right: React.FC<Flex.Input>;
12
12
  Separate: React.FC<Flex.Input>;
13
+ Title: React.FC<Flex.Input & {
14
+ label?: ReactElement;
15
+ labelStyles?: StyleProps.States;
16
+ onLabelRender?: (label: ReactElement) => ReactElement;
17
+ children: ReactElement;
18
+ childrenStyles?: StyleProps.States;
19
+ onChildrenRender?: (children: ReactElement) => ReactElement;
20
+ }>;
13
21
  /**
14
22
  * left title component and right content component
15
23
  * left ... 25% min default
16
24
  */
17
25
  Description: React.FC<Flex.Input & {
18
26
  label?: ReactElement;
27
+ labelStyles?: StyleProps.States;
19
28
  onLabelRender?: (label: ReactElement) => ReactElement;
20
29
  children: ReactElement;
21
- onChildrenRender?: (children: ReactElement) => ReactElement;
22
- labelStyles?: StyleProps.States;
23
30
  childrenStyles?: StyleProps.States;
31
+ onChildrenRender?: (children: ReactElement) => ReactElement;
24
32
  }>;
25
33
  };
26
34
  }
package/dist/mols/Row.js CHANGED
@@ -1 +1 @@
1
- import{b as t,c as n,d as p}from"../chunk-C5N2D3ZX.js";import{jsx as l,jsxs as S}from"react/jsx-runtime";import{Box as x,Flex as a}from"../atoms";import d from"./Literal";const o={Center:e=>l(a,t({horizontalAlign:"center",verticalAlign:"center",flexWrap:!1,gap:1},e)),Left:e=>l(a,t({horizontalAlign:"left",verticalAlign:"center",flexWrap:!1,gap:1},e)),Right:e=>l(a,t({horizontalAlign:"right",verticalAlign:"center",flexWrap:!1,gap:1},e)),Separate:e=>l(a,t({horizontalAlign:"between",verticalAlign:"center",flexWrap:!1,gap:1},e)),Description:e=>{let c=e,{label:s,labelStyles:r,onLabelRender:R=i=>l(d.Mini,n(t({flexSizing:"none",fontColor:"3.blur",textAlign:"right"},r),{xcss:n(t({},r==null?void 0:r.xcss),{minWidth:"25%"}),children:i})),children:f,childrenStyles:g,onChildrenRender:h=i=>l(x,n(t({flexSizing:0},g),{children:i}))}=c,m=p(c,["label","labelStyles","onLabelRender","children","childrenStyles","onChildrenRender"]);return S(o.Left,n(t({UnderBreakPointStyles:{flexType:"col",gap:"1/2",horizontalAlign:"unset",verticalAlign:"unset"}},m),{children:[R(s),h(f)]}))}};export{o as Row,o as default};
1
+ import{b as e,c as l,d as h}from"../chunk-C5N2D3ZX.js";import{jsx as n,jsxs as S}from"react/jsx-runtime";import{Box as g,Column as b,Flex as o}from"../atoms";import x from"./Literal";const f={Center:t=>n(o,e({horizontalAlign:"center",verticalAlign:"center",flexWrap:!1,gap:1},t)),Left:t=>n(o,e({horizontalAlign:"left",verticalAlign:"center",flexWrap:!1,gap:1},t)),Right:t=>n(o,e({horizontalAlign:"right",verticalAlign:"center",flexWrap:!1,gap:1},t)),Separate:t=>n(o,e({horizontalAlign:"between",verticalAlign:"center",flexWrap:!1,gap:1},t)),Title:t=>{let i=t,{label:c,labelStyles:a,onLabelRender:p=r=>n(x.Mini,l(e({fontColor:"3.blur"},a),{children:r})),children:s,childrenStyles:R,onChildrenRender:m=r=>n(g,l(e({flexSizing:0},R),{children:r}))}=i,d=h(i,["label","labelStyles","onLabelRender","children","childrenStyles","onChildrenRender"]);return S(b,l(e({gap:"1/4",fontHeight:1.2},d),{children:[p(c),m(s)]}))},Description:t=>{let i=t,{label:c,labelStyles:a,onLabelRender:p=r=>n(x.Mini,l(e({flexSizing:"none",fontColor:"3.blur",textAlign:"right"},a),{xcss:l(e({},a==null?void 0:a.xcss),{minWidth:"25%"}),children:r})),children:s,childrenStyles:R,onChildrenRender:m=r=>n(g,l(e({flexSizing:0},R),{children:r}))}=i,d=h(i,["label","labelStyles","onLabelRender","children","childrenStyles","onChildrenRender"]);return S(f.Left,l(e({UnderBreakPointStyles:{flexType:"col",gap:"1/2",horizontalAlign:"unset",verticalAlign:"unset"}},d),{children:[p(c),m(s)]}))}};export{f as Row,f as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amotify",
3
- "version": "0.3.40",
3
+ "version": "0.3.41",
4
4
  "description": "UI Component for React,NextJS,esbuild",
5
5
  "scripts": {
6
6
  "start": "run-p clean build:*",