amotify 0.2.193 → 0.2.196

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.
@@ -58,9 +58,9 @@ $$.scope( () => {
58
58
 
59
59
  Config.launch( {
60
60
  appRoot: root,
61
- roundness: $$.localStrage.get( 'prf.roundness' ) ?? 4,
61
+ roundness: $$.localStorage.get( 'prf.roundness' ) ?? 4,
62
62
  themeColor: 'battery',
63
- darkMode: $$.localStrage.get( 'prf.darkMode' ) || 'auto',
63
+ darkMode: $$.localStorage.get( 'prf.darkMode' ) || 'auto',
64
64
  } )
65
65
 
66
66
  const AppRouter = () => {
@@ -2606,7 +2606,7 @@ const UserConfig = () => {
2606
2606
  $$.scope( () => {
2607
2607
  if ( val_theme === Config.get().themeColor ) return
2608
2608
  Config.update.themeColor( val_theme )
2609
- $$.localStrage.set( 'prf.themeColor',val_theme )
2609
+ $$.localStorage.set( 'prf.themeColor',val_theme )
2610
2610
  } )
2611
2611
  },[ val_theme ] )
2612
2612
 
@@ -2630,7 +2630,7 @@ const UserConfig = () => {
2630
2630
  let nextValue = value
2631
2631
 
2632
2632
  $$.interval.once( () => {
2633
- $$.localStrage.set( 'prf.roundness',nextValue )
2633
+ $$.localStorage.set( 'prf.roundness',nextValue )
2634
2634
  Config.update.roundness( Number( nextValue ) as Roundness )
2635
2635
  },1000,'updateRoundness' )
2636
2636
  } }
@@ -2661,7 +2661,7 @@ const UserConfig = () => {
2661
2661
  value={ Config.get().darkMode }
2662
2662
  onUpdateValidValue={ value => {
2663
2663
  let nextValue = value
2664
- $$.localStrage.set( 'prf.darkMode',nextValue )
2664
+ $$.localStorage.set( 'prf.darkMode',nextValue )
2665
2665
  Config.update.darkMode( nextValue )
2666
2666
  } }
2667
2667
  />
@@ -12,7 +12,7 @@
12
12
  "cross-env": "^7.0.3",
13
13
  "dotenv": "^16.4.5",
14
14
  "express": "^4.19.2",
15
- "jmini": "^0.0.82",
15
+ "jmini": "^0.0.91",
16
16
  "next": "^15.3.4",
17
17
  "node-cron": "^4.1.1",
18
18
  "nodemon": "^3.1.4",
@@ -58,9 +58,9 @@ const UseClientEffect = ( args: {
58
58
  Config.launch( {
59
59
  appRoot: $$( '#RakumeoAppBody' )[ 0 ],
60
60
 
61
- roundness: $$.localStrage.get( 'prf.roundness' ) ?? 4,
62
- themeColor: $$.localStrage.get( 'prf.themeColor' ) || 'ninja',
63
- darkMode: $$.localStrage.get( 'prf.darkMode' ) || 'light'
61
+ roundness: $$.localStorage.get( 'prf.roundness' ) ?? 4,
62
+ themeColor: $$.localStorage.get( 'prf.themeColor' ) || 'ninja',
63
+ darkMode: $$.localStorage.get( 'prf.darkMode' ) || 'light'
64
64
  } )
65
65
 
66
66
  pageRouter.setPushEffect( ( url ) => {
@@ -2609,7 +2609,7 @@ const UserConfig = () => {
2609
2609
  $$.scope( () => {
2610
2610
  if ( val_theme === Config.get().themeColor ) return
2611
2611
  Config.update.themeColor( val_theme )
2612
- $$.localStrage.set( 'prf.themeColor',val_theme )
2612
+ $$.localStorage.set( 'prf.themeColor',val_theme )
2613
2613
  } )
2614
2614
  },[ val_theme ] )
2615
2615
 
@@ -2633,7 +2633,7 @@ const UserConfig = () => {
2633
2633
  let nextValue = value
2634
2634
 
2635
2635
  $$.interval.once( () => {
2636
- $$.localStrage.set( 'prf.roundness',nextValue )
2636
+ $$.localStorage.set( 'prf.roundness',nextValue )
2637
2637
  Config.update.roundness( Number( nextValue ) as Roundness )
2638
2638
  },1000,'updateRoundness' )
2639
2639
  } }
@@ -2664,7 +2664,7 @@ const UserConfig = () => {
2664
2664
  value={ Config.get().darkMode }
2665
2665
  onUpdateValidValue={ value => {
2666
2666
  let nextValue = value
2667
- $$.localStrage.set( 'prf.darkMode',nextValue )
2667
+ $$.localStorage.set( 'prf.darkMode',nextValue )
2668
2668
  Config.update.darkMode( nextValue )
2669
2669
  } }
2670
2670
  />
@@ -2797,11 +2797,38 @@ let DesignBook = () => {
2797
2797
  padding={ 3 }
2798
2798
  size="XS"
2799
2799
  >
2800
- <Column>
2801
- { val_value }
2802
- <Input.Checker
2803
- label='Checker'
2800
+ <Column backgroundColor='cloud'>
2801
+ <Table.Normal
2802
+ colLength={ 2 }
2803
+ head={ false }
2804
+ backgroundColor='trans'
2805
+ rows={ [
2806
+ [
2807
+ { children: '西暦' },
2808
+ { children: '和暦' },
2809
+ { children: '中華民国' },
2810
+ ],[
2811
+ { children: '西暦' },
2812
+ { children: '和暦' },
2813
+ { children: '中華民国' },
2814
+ ],[
2815
+ { children: '西暦' },
2816
+ { children: '和暦' },
2817
+ { children: '中華民国' },
2818
+ ],
2819
+ ] }
2804
2820
  />
2821
+ <Button.Sub
2822
+ backgroundColor='trans'
2823
+ margin={ 'auto' }
2824
+ >
2825
+ Submit
2826
+ </Button.Sub>
2827
+ <Button.Prime
2828
+ margin={ 'auto' }
2829
+ >
2830
+ Submit
2831
+ </Button.Prime>
2805
2832
  </Column>
2806
2833
 
2807
2834
  </Plate>
@@ -5,7 +5,7 @@ export const launchLog = () => {
5
5
  let port = 8000
6
6
  let local_ip = `http://${ Server.getLocalIP( os ) || "localhost" }:${ port }`,
7
7
  board = `\u001b[35m
8
- [ ラクMEO ]
8
+ [ amotify.demo.next ]
9
9
  - ${ local_ip }${ new Array( 35 - local_ip.length ).join( ` ` ) }\u001b[39m`
10
10
  console.log( board )
11
11
  }
package/dist/fn/Button.js CHANGED
@@ -1 +1 @@
1
- import{b as s,c as i,d as B,e as z}from"../chunk-C5N2D3ZX.js";import{jsx as p}from"react/jsx-runtime";import L,{UUID as P}from"jmini";import{pageRouter as k,ReadStyleSet as R}from"../@utils";import{Input as E}from".";import{Box as I}from"../atoms";import{ButtonClasses as c}from"../@styles/componentClasses";const x={Size:(l,t,o,n)=>{let e={fontSize:"inherit"};return o=o||"R",t=="plain"?{}:(t=="link"?o=="xsmall"?e.fontSize="0.xs":o=="small"?e.fontSize="1.mini":o=="regular"||o=="large"&&(e.fontSize="3.paragraph"):e=s({borderRadius:"2.tone.secondary",transition:"middle",position:"relative",textAlign:"center"},e),o=="xsmall"?e=i(s({},e),{padding:["1/3","2/3"],fontSize:"0.xs",borderRadius:"3.tone.tertiary"}):o=="small"?e=i(s({},e),{padding:["1/2","3/4"],fontSize:"1.mini",borderRadius:"3.tone.tertiary"}):o=="regular"?(e.padding=["3/4",1],t=="prime"&&(e.padding=["3/4",1.5])):o=="large"&&(e.padding=[1,2],e.fontSize="3.paragraph",e.isSemiBoldFont=!0),e)},Tone:(l,t,o,n)=>{let e={display:"inlineBlock",fontWeight:"inherit",fontColor:"inherit",border:"unset"};return t=="plain"||(t=="link"?(e.fontColor="theme",e.textAlign="left",e.backgroundColor="trans"):t=="normal"?e=i(s({},e),{backgroundColor:"trans"}):t=="border"?e=i(s({},e),{backgroundColor:"layer.1",border:"2.normal",borderStyle:"solid",boxShadow:"0.min"}):t=="prime"?(e=i(s({},e),{isSemiBoldFont:!0,fontColor:"white",backgroundColor:n,boxShadow:"0.normal",ssEffectsOnActive:["shrink","push","ripple.white"]}),n=="white"&&(e=i(s({},e),{fontColor:"theme",ssEffectsOnActive:["shrink","push","ripple.cloud"]}))):t=="sub"?e=i(s({},e),{fontColor:n,ssEffectsOnActive:["shrink","ripple.cloud"]}):t=="clear"?e=i(s({},e),{fontColor:n,backgroundColor:"trans",ssEffectsOnActive:["shrink","ripple.cloud"]}):t=="fillToBorder"?e=i(s({},e),{boxShadow:"0.normal",border:"2.normal",borderWidth:2,borderColor:n,fontColor:n,backgroundColor:n}):t=="borderToFill"&&(e=i(s({},e),{fontColor:n,boxShadow:"0.normal",border:"2.normal",borderWidth:2,borderColor:n,backgroundColor:n})),n=="cloud"&&(e.fontColor="2.normal"),t!="link"&&(e=s({position:"relative",ssEffectsOnActive:["shrink","push"]},e))),e}},F=l=>{let t=R(s({isLocked:!1,isActive:!1,isActiveStyles:{},isActiveClassName:"",tabIndex:0,className:"",color:"theme",tone:"border","aria-label":P()},l)),o=t.seed;{let{isLocked:y=!1,isActive:m=!1,isActiveStyles:h={},isActiveClassName:C="",tone:r="border",size:u="regular",color:a="theme",className:T=""}=t;t=s(s(s({},x.Size(l.seed,r,u,a)),x.Tone(l.seed,r,u,a)),t),t.className=[T,c("Wrap"),c("isNeutral_"+!m),c("isLocked_"+y),c("Tone_"+r),c("Color_"+a),c("Tone_"+r+"_Color_"+a)].join(" "),m&&(t=s(s({className:[t.className,C].join(" ")},t),h))}if(o=="button"){let n=t,{isLocked:y,isActive:m,isActiveClassName:h,isActiveStyles:C,submitOption:r,onClick:u}=n,a=B(n,["isLocked","isActive","isActiveClassName","isActiveStyles","submitOption","onClick"]);return r&&(r=s({acceptInvalidForm:!1,submitDelegationKey:"auxEnter"},r),a=i(s({},a),{"data-form-submit-button":r.formName,"data-sdfike":L.flatArray(r.submitDelegationKey).join(",")})),p(I,i(s({htmlTag:"button",fontHeight:"inherit"},a),{onClick:T=>z(void 0,null,function*(){if(y||(u&&u(T),!r))return;let S=yield E.CollectForm(r.formName);!r.acceptInvalidForm&&!S.valid||r.callback(S.data,S.valid)})}))}else if(o=="label"){let e=t,{isLocked:y,isActive:m,isActiveClassName:h,isActiveStyles:C,onClick:r}=e,u=B(e,["isLocked","isActive","isActiveClassName","isActiveStyles","onClick"]);return p(I,i(s({htmlTag:"label"},u),{onClick:a=>{y||r&&r(a)}}))}else if(o=="anchor"){let M=t,{isLocked:y,isActive:m,isActiveClassName:h,isActiveStyles:C,onClick:r,href:u="",newTab:a,sync:T,shiftQueryParams:S}=M,A=B(M,["isLocked","isActive","isActiveClassName","isActiveStyles","onClick","href","newTab","sync","shiftQueryParams"]);return p(I,i(s({htmlTag:"button"},A),{onClick:f=>{if(y)return;if(r)return r(f);let v=f.ctrlKey||f.metaKey,N=a||!!v,b=u;if(S&&(b+=location.search),T){k.pushSync(b);return}k.push(b,!!N)}}))}return null},d=function(l,t){const o=e=>p(F,s({seed:l,tone:t,size:"regular"},e)),n=o;return n.Plain=e=>p(o,s({size:"plain",tone:t},e)),n.XS=e=>p(o,s({size:"xsmall",tone:t},e)),n.S=e=>p(o,s({size:"small",tone:t},e)),n.R=e=>p(o,s({size:"regular",tone:t},e)),n.L=e=>p(o,s({size:"large",tone:t},e)),n},g=function(l){const o=n=>p(F,s({seed:l,tone:"prime",size:"regular"},n));return o.Plain=d(l,"plain"),o.Link=d(l,"link"),o.Normal=d(l,"normal"),o.Border=d(l,"border"),o.Prime=d(l,"prime"),o.Sub=d(l,"sub"),o.Clear=d(l,"clear"),o.FillToBorder=d(l,"fillToBorder"),o.BorderToFill=d(l,"borderToFill"),o},w=g("button"),H=g("label"),K=g("anchor");export{K as Anchor,w as Button,H as Label};
1
+ import{b as s,c as i,d as B,e as z}from"../chunk-C5N2D3ZX.js";import{jsx as p}from"react/jsx-runtime";import L,{UUID as P}from"jmini";import{pageRouter as k,ReadStyleSet as R}from"../@utils";import{Input as E}from".";import{Box as I}from"../atoms";import{ButtonClasses as c}from"../@styles/componentClasses";const x={Size:(l,t,o,n)=>{let e={fontSize:"inherit"};return o=o||"R",t=="plain"?{}:(t=="link"?o=="xsmall"?e.fontSize="0.xs":o=="small"?e.fontSize="1.mini":o=="regular"||o=="large"&&(e.fontSize="3.paragraph"):e=s({borderRadius:"2.tone.secondary",transition:"middle",position:"relative",textAlign:"center"},e),o=="xsmall"?e=i(s({},e),{padding:["1/3","2/3"],fontSize:"0.xs",borderRadius:"3.tone.tertiary"}):o=="small"?e=i(s({},e),{padding:["1/2","3/4"],fontSize:"1.mini",borderRadius:"3.tone.tertiary"}):o=="regular"?e.padding=["3/4",1]:o=="large"&&(e.padding=[1,2],e.fontSize="3.paragraph",e.isSemiBoldFont=!0),e)},Tone:(l,t,o,n)=>{let e={display:"inlineBlock",fontWeight:"inherit",fontColor:"inherit",border:"unset"};return t=="plain"||(t=="link"?(e.fontColor="theme",e.textAlign="left",e.backgroundColor="trans"):t=="normal"?e=i(s({},e),{backgroundColor:"trans"}):t=="border"?e=i(s({},e),{backgroundColor:"layer.1",border:"2.normal",borderStyle:"solid",boxShadow:"0.min"}):t=="prime"?(e=i(s({},e),{isSemiBoldFont:!0,fontColor:"white",backgroundColor:n,boxShadow:"0.normal",ssEffectsOnActive:["shrink","push","ripple.white"]}),n=="white"&&(e=i(s({},e),{fontColor:"theme",ssEffectsOnActive:["shrink","push","ripple.cloud"]}))):t=="sub"?e=i(s({},e),{fontColor:n,ssEffectsOnActive:["shrink","ripple.cloud"]}):t=="clear"?e=i(s({},e),{fontColor:n,backgroundColor:"trans",ssEffectsOnActive:["shrink","ripple.cloud"]}):t=="fillToBorder"?e=i(s({},e),{boxShadow:"0.normal",border:"2.normal",borderWidth:2,borderColor:n,fontColor:n,backgroundColor:n}):t=="borderToFill"&&(e=i(s({},e),{fontColor:n,boxShadow:"0.normal",border:"2.normal",borderWidth:2,borderColor:n,backgroundColor:n})),n=="cloud"&&(e.fontColor="2.normal"),t!="link"&&(e=s({position:"relative",ssEffectsOnActive:["shrink","push"]},e))),e}},F=l=>{let t=R(s({isLocked:!1,isActive:!1,isActiveStyles:{},isActiveClassName:"",tabIndex:0,className:"",color:"theme",tone:"border","aria-label":P()},l)),o=t.seed;{let{isLocked:y=!1,isActive:m=!1,isActiveStyles:h={},isActiveClassName:C="",tone:r="border",size:u="regular",color:a="theme",className:T=""}=t;t=s(s(s({},x.Size(l.seed,r,u,a)),x.Tone(l.seed,r,u,a)),t),t.className=[T,c("Wrap"),c("isNeutral_"+!m),c("isLocked_"+y),c("Tone_"+r),c("Color_"+a),c("Tone_"+r+"_Color_"+a)].join(" "),m&&(t=s(s({className:[t.className,C].join(" ")},t),h))}if(o=="button"){let n=t,{isLocked:y,isActive:m,isActiveClassName:h,isActiveStyles:C,submitOption:r,onClick:u}=n,a=B(n,["isLocked","isActive","isActiveClassName","isActiveStyles","submitOption","onClick"]);return r&&(r=s({acceptInvalidForm:!1,submitDelegationKey:"auxEnter"},r),a=i(s({},a),{"data-form-submit-button":r.formName,"data-sdfike":L.flatArray(r.submitDelegationKey).join(",")})),p(I,i(s({htmlTag:"button",fontHeight:"inherit"},a),{onClick:T=>z(void 0,null,function*(){if(y||(u&&u(T),!r))return;let S=yield E.CollectForm(r.formName);!r.acceptInvalidForm&&!S.valid||r.callback(S.data,S.valid)})}))}else if(o=="label"){let e=t,{isLocked:y,isActive:m,isActiveClassName:h,isActiveStyles:C,onClick:r}=e,u=B(e,["isLocked","isActive","isActiveClassName","isActiveStyles","onClick"]);return p(I,i(s({htmlTag:"label"},u),{onClick:a=>{y||r&&r(a)}}))}else if(o=="anchor"){let M=t,{isLocked:y,isActive:m,isActiveClassName:h,isActiveStyles:C,onClick:r,href:u="",newTab:a,sync:T,shiftQueryParams:S}=M,A=B(M,["isLocked","isActive","isActiveClassName","isActiveStyles","onClick","href","newTab","sync","shiftQueryParams"]);return p(I,i(s({htmlTag:"button"},A),{onClick:f=>{if(y)return;if(r)return r(f);let v=f.ctrlKey||f.metaKey,N=a||!!v,b=u;if(S&&(b+=location.search),T){k.pushSync(b);return}k.push(b,!!N)}}))}return null},d=function(l,t){const o=e=>p(F,s({seed:l,tone:t,size:"regular"},e)),n=o;return n.Plain=e=>p(o,s({size:"plain",tone:t},e)),n.XS=e=>p(o,s({size:"xsmall",tone:t},e)),n.S=e=>p(o,s({size:"small",tone:t},e)),n.R=e=>p(o,s({size:"regular",tone:t},e)),n.L=e=>p(o,s({size:"large",tone:t},e)),n},g=function(l){const o=n=>p(F,s({seed:l,tone:"prime",size:"regular"},n));return o.Plain=d(l,"plain"),o.Link=d(l,"link"),o.Normal=d(l,"normal"),o.Border=d(l,"border"),o.Prime=d(l,"prime"),o.Sub=d(l,"sub"),o.Clear=d(l,"clear"),o.FillToBorder=d(l,"fillToBorder"),o.BorderToFill=d(l,"borderToFill"),o},w=g("button"),H=g("label"),K=g("anchor");export{K as Anchor,w as Button,H as Label};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amotify",
3
- "version": "0.2.193",
3
+ "version": "0.2.196",
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": "^6.7.2",
91
91
  "@fortawesome/react-fontawesome": "^0.2.2",
92
92
  "dotenv": "^17.0.1",
93
- "jmini": "^0.0.90",
93
+ "jmini": "^0.0.91",
94
94
  "react": "^18.3.1"
95
95
  },
96
96
  "devDependencies": {