amotify 0.1.36 → 0.1.38

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license amotify
3
- * amotify 0.1.36
3
+ * amotify 0.1.38
4
4
  * https://mingoo.co.jp/
5
5
 
6
6
  * Copyright (c) mingoo, LLC.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license amotify
3
- * amotify 0.1.36
3
+ * amotify 0.1.38
4
4
  * https://mingoo.co.jp/
5
5
 
6
6
  * Copyright (c) mingoo, LLC.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license amotify
3
- * amotify 0.1.36
3
+ * amotify 0.1.38
4
4
  * https://mingoo.co.jp/
5
5
 
6
6
  * Copyright (c) mingoo, LLC.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license amotify
3
- * amotify 0.1.36
3
+ * amotify 0.1.38
4
4
  * https://mingoo.co.jp/
5
5
 
6
6
  * Copyright (c) mingoo, LLC.
@@ -3278,28 +3278,28 @@ amotify-app {
3278
3278
  background-color: hsl(var(--color-layer6-hsl));
3279
3279
  }
3280
3280
  .amotf_bgclayer_1_opa_few {
3281
- background-color: var(--color-layer1-hsl), 0.15;
3281
+ background-color: hsla(var(--color-layer1-hsl), 0.15);
3282
3282
  }
3283
3283
  .amotf_bgclayer_1_opa_low {
3284
- background-color: var(--color-layer1-hsl), 0.3;
3284
+ background-color: hsla(var(--color-layer1-hsl), 0.3);
3285
3285
  }
3286
3286
  .amotf_bgclayer_1_opa_middle {
3287
- background-color: var(--color-layer1-hsl), 0.4;
3287
+ background-color: hsla(var(--color-layer1-hsl), 0.4);
3288
3288
  }
3289
3289
  .amotf_bgclayer_1_opa_high {
3290
- background-color: var(--color-layer1-hsl), 0.6;
3290
+ background-color: hsla(var(--color-layer1-hsl), 0.6);
3291
3291
  }
3292
3292
  .amotf_bgclayer_4_opa_few {
3293
- background-color: var(--color-layer4-hsl), 0.15;
3293
+ background-color: hsla(var(--color-layer4-hsl), 0.15);
3294
3294
  }
3295
3295
  .amotf_bgclayer_4_opa_low {
3296
- background-color: var(--color-layer4-hsl), 0.3;
3296
+ background-color: hsla(var(--color-layer4-hsl), 0.3);
3297
3297
  }
3298
3298
  .amotf_bgclayer_4_opa_middle {
3299
- background-color: var(--color-layer4-hsl), 0.4;
3299
+ background-color: hsla(var(--color-layer4-hsl), 0.4);
3300
3300
  }
3301
3301
  .amotf_bgclayer_4_opa_high {
3302
- background-color: var(--color-layer4-hsl), 0.6;
3302
+ background-color: hsla(var(--color-layer4-hsl), 0.6);
3303
3303
  }
3304
3304
  .amotf_bgccloud {
3305
3305
  background-color: rgba(var(--color-cloud-rgb), 1);
@@ -5524,28 +5524,28 @@ amotify-app {
5524
5524
  background-color: hsl(var(--color-layer6-hsl));
5525
5525
  }
5526
5526
  .amotf_bpbgclayer_1_opa_few {
5527
- background-color: var(--color-layer1-hsl), 0.15;
5527
+ background-color: hsla(var(--color-layer1-hsl), 0.15);
5528
5528
  }
5529
5529
  .amotf_bpbgclayer_1_opa_low {
5530
- background-color: var(--color-layer1-hsl), 0.3;
5530
+ background-color: hsla(var(--color-layer1-hsl), 0.3);
5531
5531
  }
5532
5532
  .amotf_bpbgclayer_1_opa_middle {
5533
- background-color: var(--color-layer1-hsl), 0.4;
5533
+ background-color: hsla(var(--color-layer1-hsl), 0.4);
5534
5534
  }
5535
5535
  .amotf_bpbgclayer_1_opa_high {
5536
- background-color: var(--color-layer1-hsl), 0.6;
5536
+ background-color: hsla(var(--color-layer1-hsl), 0.6);
5537
5537
  }
5538
5538
  .amotf_bpbgclayer_4_opa_few {
5539
- background-color: var(--color-layer4-hsl), 0.15;
5539
+ background-color: hsla(var(--color-layer4-hsl), 0.15);
5540
5540
  }
5541
5541
  .amotf_bpbgclayer_4_opa_low {
5542
- background-color: var(--color-layer4-hsl), 0.3;
5542
+ background-color: hsla(var(--color-layer4-hsl), 0.3);
5543
5543
  }
5544
5544
  .amotf_bpbgclayer_4_opa_middle {
5545
- background-color: var(--color-layer4-hsl), 0.4;
5545
+ background-color: hsla(var(--color-layer4-hsl), 0.4);
5546
5546
  }
5547
5547
  .amotf_bpbgclayer_4_opa_high {
5548
- background-color: var(--color-layer4-hsl), 0.6;
5548
+ background-color: hsla(var(--color-layer4-hsl), 0.6);
5549
5549
  }
5550
5550
  .amotf_bpbgccloud {
5551
5551
  background-color: rgba(var(--color-cloud-rgb), 1);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license amotify
3
- * amotify 0.1.36
3
+ * amotify 0.1.38
4
4
  * https://mingoo.co.jp/
5
5
 
6
6
  * Copyright (c) mingoo, LLC.
@@ -1 +1 @@
1
- import{b as i,c as t}from"../chunk-VY3566IV.js";import{$$ as s}from"./_";import{useRecycle as c}from"./useRecycle";import{ColorObjects as h,SetThemeColorTag as u}from"./color";const f=s.uuid.gen(),n=window.navigator.userAgent.toLowerCase(),a=n.indexOf("windows nt")!==-1?"windows":n.indexOf("android")!==-1?"android":n.indexOf("iphone")!==-1?"iPhone":n.indexOf("ipad")>-1||n.indexOf("macintosh")>-1&&"ontouchend"in document?"iPad":n.indexOf("mac os x")!==-1?"macOSX":"undefined",p=n.indexOf("msie")!==-1||n.indexOf("trident")!==-1?"ie":n.indexOf("edge")!==-1?"edge":n.indexOf("chrome")!==-1?"chrome":n.indexOf("safari")!==-1?"safari":n.indexOf("firefox")!==-1?"firefox":n.indexOf("opera")!==-1||n.indexOf("opr")!==-1?"opera":"undefined";let m={sessionUID:f,appRoot:document.body,darkMode:"light",themeColor:"comun",roundness:2,isSystemDarkmode:()=>window.matchMedia("(prefers-color-scheme: dark)").matches==!0,deviceIs:a,browserIs:p,isPhone:["Android","iPhone"].includes(a),isTouchDevice:window.ontouchstart!==void 0&&0<navigator.maxTouchPoints,isIOS:["iPhone","iPad"].includes(a),screen:{breakpoint:834,phonepoint:690,viewHeight:window.innerHeight,viewWidth:window.innerWidth,isBreakpoint:(e=834)=>window.innerWidth<=e,isPhonepoint:(e=690)=>window.innerWidth<=e}};const o={get:()=>m,set:e=>{m=i(i({},m),e)},update:{appRoot:e=>{o.set(t(i({},o.get()),{appRoot:e}))},themeColor:e=>{if(h.find(d=>d.key==e)||(e="comun"),e==o.get().themeColor)return;o.set(t(i({},o.get()),{themeColor:e}));let r=s(document.body);r.removeClass(r.findClass(/^bdsTC/)).addClass("bdsTC_"+e).callback(()=>{u()}),o.restart()},darkMode:e=>{if(["light","dark","dim","auto"].includes(e)||(e="light"),e==o.get().darkMode)return;let r=e=="auto"?o.get().isSystemDarkmode()?"dark":"light":e;o.set(t(i({},o.get()),{darkMode:r}));let d=s(document.body);d.removeClass(d.findClass(/^bdsDM/)).addClass("bdsDM_"+r),o.restart()},roundness:e=>{e>=0&&e<=5||(e=2),e!=o.get().roundness&&(o.set(t(i({},o.get()),{roundness:e})),o.restart())},screen:e=>{o.get().screen=i(i({},o.get().screen),e)}},restart:()=>{c.do("RootViewController_"+o.get().sessionUID)}};export{o as Config,o as default};
1
+ import{b as i,c as t}from"../chunk-VY3566IV.js";import{$$ as c}from"./_";import{$$fromRoot as m}from"./getElement";import{useRecycle as h}from"./useRecycle";import{ColorObjects as p,SetThemeColorTag as f}from"./color";const u=c.uuid.gen(),n=window.navigator.userAgent.toLowerCase(),s=n.indexOf("windows nt")!==-1?"windows":n.indexOf("android")!==-1?"android":n.indexOf("iphone")!==-1?"iPhone":n.indexOf("ipad")>-1||n.indexOf("macintosh")>-1&&"ontouchend"in document?"iPad":n.indexOf("mac os x")!==-1?"macOSX":"undefined",g=n.indexOf("msie")!==-1||n.indexOf("trident")!==-1?"ie":n.indexOf("edge")!==-1?"edge":n.indexOf("chrome")!==-1?"chrome":n.indexOf("safari")!==-1?"safari":n.indexOf("firefox")!==-1?"firefox":n.indexOf("opera")!==-1||n.indexOf("opr")!==-1?"opera":"undefined";let a={sessionUID:u,appRoot:document.body,darkMode:"light",themeColor:"comun",roundness:2,isSystemDarkmode:()=>window.matchMedia("(prefers-color-scheme: dark)").matches==!0,deviceIs:s,browserIs:g,isPhone:["Android","iPhone"].includes(s),isTouchDevice:window.ontouchstart!==void 0&&0<navigator.maxTouchPoints,isIOS:["iPhone","iPad"].includes(s),screen:{breakpoint:834,phonepoint:690,viewHeight:window.innerHeight,viewWidth:window.innerWidth,isBreakpoint:(e=834)=>window.innerWidth<=e,isPhonepoint:(e=690)=>window.innerWidth<=e}};const o={get:()=>a,set:e=>{a=i(i({},a),e)},update:{appRoot:e=>{o.set(t(i({},o.get()),{appRoot:e}))},themeColor:e=>{if(p.find(d=>d.key==e)||(e="comun"),e==o.get().themeColor)return;o.set(t(i({},o.get()),{themeColor:e}));let r=m(o.get().appRoot);r.removeClass(r.findClass(/^bdsTC/)).addClass("bdsTC_"+e).callback(()=>{f()}),o.restart()},darkMode:e=>{if(["light","dark","dim","auto"].includes(e)||(e="light"),e==o.get().darkMode)return;let r=e=="auto"?o.get().isSystemDarkmode()?"dark":"light":e;o.set(t(i({},o.get()),{darkMode:r}));let d=m(o.get().appRoot);d.removeClass(d.findClass(/^bdsDM/)).addClass("bdsDM_"+r),o.restart()},roundness:e=>{e>=0&&e<=5||(e=2),e!=o.get().roundness&&(o.set(t(i({},o.get()),{roundness:e})),o.restart())},screen:e=>{o.get().screen=i(i({},o.get().screen),e)}},restart:()=>{h.do("RootViewController_"+o.get().sessionUID)}};export{o as Config,o as default};
@@ -1 +1 @@
1
- import{$$ as o,Config as i,SetThemeColorTag as l}from"./_";o(document.body).addClass(["usrDevice_"+i.get().deviceIs,"bdsDM_"+i.get().darkMode,"bdsTC_"+i.get().themeColor]),o(window).addEvent({eventType:"load",callback:()=>{let e=document.body.style,t=o(document.body),r=Number(t.getStyleProperty("--topNavHeight").removeLetters()||0),n=Number(t.getStyleProperty("--footerNavHeight").removeLetters()||0),d=window.innerHeight-r-n;e.setProperty("--viewHeight",window.innerHeight+"px"),e.setProperty("--contentHeight",d+"px")}}).addEvent({eventType:"resize",eventID:"getDeviceInfo",callback:()=>{i.update.screen({viewHeight:window.innerHeight,viewWidth:window.innerWidth});let e=o(document.body),t=window.innerHeight,r=Number(e.getStyleProperty("--topNavHeight").removeLetters()),n=Number(e.getStyleProperty("--footerNavHeight").removeLetters()),g=t-r-n;e.setStyleProperty("--viewHeight",t+"px").setStyleProperty("--sideNavHeight",g+"px").setStyleProperty("--contentHeight",g+"px")}}),l();
1
+ import{$$ as i,Config as o,SetThemeColorTag as l}from"./_";i(o.get().appRoot).addClass(["usrDevice_"+o.get().deviceIs,"bdsDM_"+o.get().darkMode,"bdsTC_"+o.get().themeColor]),i(window).addEvent({eventType:"load",callback:()=>{let e=document.body.style,t=i(document.body),r=Number(t.getStyleProperty("--topNavHeight").removeLetters()||0),n=Number(t.getStyleProperty("--footerNavHeight").removeLetters()||0),d=window.innerHeight-r-n;e.setProperty("--viewHeight",window.innerHeight+"px"),e.setProperty("--contentHeight",d+"px")}}).addEvent({eventType:"resize",eventID:"getDeviceInfo",callback:()=>{o.update.screen({viewHeight:window.innerHeight,viewWidth:window.innerWidth});let e=i(document.body),t=window.innerHeight,r=Number(e.getStyleProperty("--topNavHeight").removeLetters()),n=Number(e.getStyleProperty("--footerNavHeight").removeLetters()),g=t-r-n;e.setStyleProperty("--viewHeight",t+"px").setStyleProperty("--sideNavHeight",g+"px").setStyleProperty("--contentHeight",g+"px")}}),l();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amotify",
3
- "version": "0.1.36",
3
+ "version": "0.1.38",
4
4
  "description": "UI FW for React",
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",