amotify 0.3.54 → 0.3.55
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.
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
"Read(//Applications/Google Chrome.app/Contents/MacOS/**)",
|
|
13
13
|
"Bash(node prof.mjs)",
|
|
14
14
|
"Bash(sed -i '' 's/^const LOADTEST_ROWS = 10000$/const LOADTEST_ROWS = 100/' \"demo/next/src/app/\\(router\\)/page.tsx\")",
|
|
15
|
-
"Bash(pkill -f \"remote-debugging-port=9333\")"
|
|
15
|
+
"Bash(pkill -f \"remote-debugging-port=9333\")",
|
|
16
|
+
"Bash(sed -i '' \"s#import { Color } from '.*'#import pkg from '/Users/ikkokoyama/amotify/node_modules/jmini/cjs/index.js'; const { Color } = pkg#\" /private/tmp/claude-501/-Users-ikkokoyama-amotify/8aee2969-120a-4e07-81f9-80bb41606c5e/scratchpad/t.mjs)",
|
|
17
|
+
"Bash(node /private/tmp/claude-501/-Users-ikkokoyama-amotify/8aee2969-120a-4e07-81f9-80bb41606c5e/scratchpad/t.mjs)"
|
|
16
18
|
]
|
|
17
19
|
}
|
|
18
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as f,c as m,d as N}from"../chunk-C5N2D3ZX.js";import{jsx as d,jsxs as A}from"react/jsx-runtime";import{useEffect as b}from"react";import t from"jmini";import{$$fromRoot as C,pageRouter as F}from"../@utils";import{Box as y,Flex as x,Column as W}from"../atoms";import{Button as _}from"./Trigger";import{LayoutClasses as w}from"../@styles/componentClasses";const e={Base:o=>{let v=o,{topNavigation:r,sideNavigation:a,footerNavigation:g,topNav:s,leftNav:h,rightNav:l,footerNav:u,children:p,className:i}=v,n=N(v,["topNavigation","sideNavigation","footerNavigation","topNav","leftNav","rightNav","footerNav","children","className"]);return b(()=>{e.fn.refresh();let c="ResizeCB";return t(window).onEvent("resize",()=>{t.interval.once(()=>{e.fn.refresh()},300,"__RVC_calcHeights")},{eventID:c}),()=>{t(window).removeEvent(c)}},[]),A(W,m(f({className:[i,w("RootViewController")].join(" "),backgroundColor:"layer.
|
|
1
|
+
import{b as f,c as m,d as N}from"../chunk-C5N2D3ZX.js";import{jsx as d,jsxs as A}from"react/jsx-runtime";import{useEffect as b}from"react";import t from"jmini";import{$$fromRoot as C,pageRouter as F}from"../@utils";import{Box as y,Flex as x,Column as W}from"../atoms";import{Button as _}from"./Trigger";import{LayoutClasses as w}from"../@styles/componentClasses";const e={Base:o=>{let v=o,{topNavigation:r,sideNavigation:a,footerNavigation:g,topNav:s,leftNav:h,rightNav:l,footerNav:u,children:p,className:i}=v,n=N(v,["topNavigation","sideNavigation","footerNavigation","topNav","leftNav","rightNav","footerNav","children","className"]);return b(()=>{e.fn.refresh();let c="ResizeCB";return t(window).onEvent("resize",()=>{t.interval.once(()=>{e.fn.refresh()},300,"__RVC_calcHeights")},{eventID:c}),()=>{t(window).removeEvent(c)}},[]),A(W,m(f({className:[i,w("RootViewController")].join(" "),backgroundColor:"layer.0",gap:0,minHeight:"viewHeight"},n),{children:[s||r,A(x,{flexWrap:!1,position:"relative",flexSizing:0,children:[h||a,d(y,{className:w("Content"),position:"relative",flexSizing:0,width:0,ssZIndex:2,children:p}),l]}),u||g]}))},TopNav:o=>d(x,m(f({flexSizing:"none",flexType:"col",position:"sticky",top:0,backgroundColor:"layer.1",ssZIndex:5},o),{id:"__RVC_TopNavigation"})),SideNav:o=>d(y,m(f({flexSizing:"none",minHeight:"sideNavigationHeight",ssZIndex:3},o),{id:"__RVC_SideNavigation"})),FooterNav:o=>{let g=o,{baseStyles:r}=g,a=N(g,["baseStyles"]);return d(x,m(f({borderTop:!0,position:"sticky",bottom:0,overflow:"auto",backgroundColor:"layer.1",paddingBottom:"safeAreaBottom",ssZIndex:4},r),{id:"__RVC_FooterNavigation",children:d(x,f({gap:1,flexWrap:!1,padding:"2/3",margin:"auto",width:1},a))}))},Comps:{Button:o=>{let p=o,{isActive:r,path:a,pathGroup:g,currentPath:s}=p,h=N(p,["isActive","path","pathGroup","currentPath"]),l=t.Arrayify(g),u=s||location.pathname;{let i=!1;t.scope(()=>{t.isString(a)&&(t.isNullish(a)||(i=u.replace(/^\//,"").replace(/\/$/,"")==a.replace(/^\//,"").replace(/\/$/,"")))}),t.scope(()=>{if(!i&&l.length)for(let n of l){if(i)break;t.isNullish(n)||(t.isString(n)&&(n=String(n).escapeRegExChar()),u.match(new RegExp(n))&&(i=!0))}}),r=r!=null?r:i}return d(_.Clear,f({isActive:r,isActiveStyles:{fontColor:"theme",backgroundColor:"cloud"},onClick:i=>{t.isExist(a)&&t.isString(a)&&F.push(a,i.ctrlKey||i.metaKey)},color:"cloud",padding:["3/4",1],display:"flex",gap:"1/2",fontColor:"inherit",flexSizing:"none",flexWrap:!1,ssEffectsOnActive:"ripple.cloud",verticalAlign:"center",textAlign:"left",isSemiBoldFont:!0},h))},Bar:o=>d(y,f({flexSizing:"none",backgroundColor:"layer.4.opa.middle",unitHeight:"1/3",margin:["2/3",1],isRounded:!0},o)),Title:o=>d(y,f({fontSize:"3.paragraph",isSemiBoldFont:!0,padding:[0,1]},o))},fn:{refresh:()=>{let o=t(document.body),r=C("#__RVC_TopNavigation"),a=C("#__RVC_FooterNavigation"),g=C("#__RVC_SideNavigation"),s=r.position().height||0,h=s,l=a.position().height||0,u=g.position().width||0;r.getStyleProperty("position")!="sticky"&&(h=0);let p=window.innerHeight,i=window.innerWidth,n=p-s-l,v=i-u;t.scope(()=>{e.fn.viewHeight!=p&&(e.fn.viewHeight=p,o.setStyleProperty("--viewHeight",p+"px"))}),t.scope(()=>{e.fn.viewWidth!=i&&(e.fn.viewWidth=i,o.setStyleProperty("--viewWidth",i+"px"))}),t.scope(()=>{e.fn.contentHeight!=n&&(e.fn.contentHeight=n,o.setStyleProperty("--contentHeight",n+"px").setStyleProperty("--sideNavHeight",n+"px"))}),t.scope(()=>{e.fn.contentWidth!=v&&(e.fn.contentWidth=v,o.setStyleProperty("--contentWidth",v+"px"))}),t.scope(()=>{e.fn.topBase!=h&&(e.fn.topBase=h,o.setStyleProperty("--topBase",h+"px"))}),t.scope(()=>{e.fn.topNavHeight!=s&&(e.fn.topNavHeight=s,o.setStyleProperty("--topNavHeight",s+"px"))}),t.scope(()=>{e.fn.footerNavHeight!=l&&(e.fn.footerNavHeight=l,o.setStyleProperty("--footerNavHeight",l+"px"))}),t.scope(()=>{e.fn.sideNavWidth!=u&&(e.fn.sideNavWidth=u)}),t.scope(()=>{let c=getComputedStyle(document.documentElement),R=parseInt(c.getPropertyValue("--safe-area-top"),10)||0,S=parseInt(c.getPropertyValue("--safe-area-bottom"),10)||0,B=parseInt(c.getPropertyValue("--safe-area-left"),10)||0,H=parseInt(c.getPropertyValue("--safe-area-right"),10)||0;e.fn.safeAreaTop!=R&&(e.fn.safeAreaTop=R),e.fn.safeAreaBottom!=S&&(e.fn.safeAreaBottom=S),e.fn.safeAreaLeft!=B&&(e.fn.safeAreaLeft=B),e.fn.safeAreaRight!=H&&(e.fn.safeAreaRight=H)})},viewHeight:0,viewWidth:0,contentHeight:0,contentWidth:0,topBase:0,sideNavWidth:0,topNavHeight:0,footerNavHeight:0,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0}};export{e as RootViewController,e as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "amotify",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.55",
|
|
4
4
|
"description": "UI Component for React,NextJS,esbuild",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "run-p clean build:*",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@fortawesome/free-solid-svg-icons": "^7.2.0",
|
|
91
91
|
"@fortawesome/react-fontawesome": "^3.3.0",
|
|
92
92
|
"dotenv": "^17.0.1",
|
|
93
|
-
"jmini": "^0.0.
|
|
93
|
+
"jmini": "^0.0.139",
|
|
94
94
|
"react": "^19.2.3"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
@@ -113,4 +113,4 @@
|
|
|
113
113
|
"tsc-alias": "^1.8.8",
|
|
114
114
|
"typescript": "^5.4.5"
|
|
115
115
|
}
|
|
116
|
-
}
|
|
116
|
+
}
|