amotify 0.1.28 → 0.1.29

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.27
3
+ * amotify 0.1.28
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.27
3
+ * amotify 0.1.28
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.27
3
+ * amotify 0.1.28
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.27
3
+ * amotify 0.1.28
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.27
3
+ * amotify 0.1.28
4
4
  * https://mingoo.co.jp/
5
5
 
6
6
  * Copyright (c) mingoo, LLC.
@@ -8,6 +8,7 @@ declare namespace LaunchReactApp {
8
8
  baseElement: $$.Args;
9
9
  reactElement: ReactElement;
10
10
  inlineCSS?: string;
11
+ originClassName?: string;
11
12
  appearances?: {
12
13
  roundness?: Roundness;
13
14
  themeColor?: ThemeColor;
@@ -1 +1 @@
1
- import"../chunk-VY3566IV.js";import{Fragment as f,jsx as e,jsxs as R}from"react/jsx-runtime";import{$$ as r,Config as o}from"./_";import l from"react";import E from"react-dom/client";import*as M from"react-router-dom";import y from"./useRecycle";import A from"../atoms/Box";import b from"../fn/Sheet";import g from"../fn/Snackbar";import k from"../fn/Loader/_";import d from"../fn/Effect/_";const x=a=>{let t=y.set("RootViewController_"+o.get().sessionUID);return l.createElement("amotify-app",{id:"appRoot_"+o.get().sessionUID},R(f,{children:[e(d.Pudding.Wrapper,{}),e(d.Ripple.Wrapper,{}),e(k.Wrapper,{}),e(g.Wrapper,{}),e(b.Wrapper,{}),e(A,{className:"AMOTIFY_be AMOTIFY_be_root AMOTIFY_be_origin",children:e(M.BrowserRouter,{children:a.children},t)})]}))},c=a=>{let{shadowRoot:t,baseElement:u,reactElement:p,inlineCSS:h,appearances:C}=a,n=r(u);if(!n[0]||!p)return;t&&o.update.appRoot(t);let{roundness:s,themeColor:i,darkMode:m}=C||{};r.is.exist(s)&&o.update.roundness(s),r.is.exist(i)&&o.update.themeColor(i),r.is.exist(m)&&o.update.darkMode(m),E.createRoot(n[0]).render(R(f,{children:[e("style",{children:h}),e(x,{children:p})]}))};export{c as LaunchReactApp,l as React,c as default};
1
+ import"../chunk-VY3566IV.js";import{Fragment as R,jsx as e,jsxs as f}from"react/jsx-runtime";import{$$ as a,Config as o}from"./_";import l from"react";import M from"react-dom/client";import*as y from"react-router-dom";import A from"./useRecycle";import E from"../atoms/Box";import b from"../fn/Sheet";import k from"../fn/Snackbar";import x from"../fn/Loader/_";import d from"../fn/Effect/_";const I=t=>{let r=A.set("RootViewController_"+o.get().sessionUID);return l.createElement("amotify-app",{id:"appRoot_"+o.get().sessionUID},f(R,{children:[e(d.Pudding.Wrapper,{}),e(d.Ripple.Wrapper,{}),e(x.Wrapper,{}),e(k.Wrapper,{}),e(b.Wrapper,{}),e(E,{className:`AMOTIFY_be AMOTIFY_be_root ${t.originClassName}`,children:e(y.BrowserRouter,{children:t.children},r)})]}))},c=t=>{let{shadowRoot:r,baseElement:u,reactElement:n,inlineCSS:h,originClassName:C="AMOTIFY_be_origin",appearances:g}=t,s=a(u);if(!s[0]||!n)return;r&&o.update.appRoot(r);let{roundness:i,themeColor:p,darkMode:m}=g||{};a.is.exist(i)&&o.update.roundness(i),a.is.exist(p)&&o.update.themeColor(p),a.is.exist(m)&&o.update.darkMode(m),M.createRoot(s[0]).render(f(R,{children:[e("style",{children:h}),e(I,{originClassName:C,children:n})]}))};export{c as LaunchReactApp,l as React,c as default};
@@ -1 +1 @@
1
- import{$$ as o,Config as i,SetThemeColorTag as l}from"./_";o(document.body).addClass(["AMOTIFY_be_body","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),g=window.innerHeight-r-n;e.setProperty("--viewHeight",window.innerHeight+"px"),e.setProperty("--contentHeight",g+"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()),d=t-r-n;e.setStyleProperty("--viewHeight",t+"px").setStyleProperty("--sideNavHeight",d+"px").setStyleProperty("--contentHeight",d+"px")}}),l();
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amotify",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "UI FW for React",
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",