amotify 0.1.58 → 0.1.59

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.
Files changed (191) hide show
  1. package/dist/@declaration/index.d.ts +10 -0
  2. package/dist/@declaration/index.js +1 -0
  3. package/dist/@declaration/module.d.ts +5 -0
  4. package/dist/@declaration/module.js +0 -0
  5. package/dist/@declaration/property.d.ts +139 -0
  6. package/dist/@declaration/property.js +0 -0
  7. package/dist/@styles/componentClasses/index.css +1502 -0
  8. package/dist/@styles/componentClasses/index.d.ts +23 -0
  9. package/dist/@styles/componentClasses/index.js +398 -0
  10. package/dist/@styles/index.css +1502 -0
  11. package/dist/@styles/index.d.ts +1 -0
  12. package/dist/@styles/index.js +398 -0
  13. package/dist/@styles/init.css +89 -0
  14. package/dist/@styles/init.d.ts +1 -0
  15. package/dist/@styles/init.js +0 -0
  16. package/dist/@styles/style.css +7407 -0
  17. package/dist/@styles/style.d.ts +4 -0
  18. package/dist/@styles/style.js +398 -0
  19. package/dist/@styles/var.css +1258 -0
  20. package/dist/@styles/var.d.ts +1 -0
  21. package/dist/@styles/var.js +0 -0
  22. package/dist/@utils/GenerateClassName.d.ts +11 -0
  23. package/dist/@utils/GenerateClassName.js +1 -0
  24. package/dist/@utils/LaunchReactApp.d.ts +20 -0
  25. package/dist/@utils/LaunchReactApp.js +1 -0
  26. package/dist/@utils/collectForm.d.ts +11 -0
  27. package/dist/@utils/collectForm.js +1 -0
  28. package/dist/@utils/color.d.ts +21 -0
  29. package/dist/@utils/color.js +1 -0
  30. package/dist/@utils/config.d.ts +43 -0
  31. package/dist/@utils/config.js +1 -0
  32. package/dist/@utils/fin.d.ts +1 -0
  33. package/dist/@utils/fin.js +1 -0
  34. package/dist/@utils/getElement.d.ts +6 -0
  35. package/dist/@utils/getElement.js +1 -0
  36. package/dist/@utils/index.d.ts +11 -0
  37. package/dist/@utils/index.js +1 -0
  38. package/dist/@utils/pageTransit.d.ts +11 -0
  39. package/dist/@utils/pageTransit.js +1 -0
  40. package/dist/@utils/useRecycle.d.ts +8 -0
  41. package/dist/@utils/useRecycle.js +1 -0
  42. package/dist/@utils/useStore.d.ts +18 -0
  43. package/dist/@utils/useStore.js +1 -0
  44. package/dist/atoms/Box.d.ts +9 -0
  45. package/dist/atoms/Box.js +1 -0
  46. package/dist/atoms/FAI.d.ts +18 -0
  47. package/dist/atoms/FAI.js +1 -0
  48. package/dist/atoms/Flex.d.ts +11 -0
  49. package/dist/atoms/Flex.js +1 -0
  50. package/dist/atoms/Grid.d.ts +4 -0
  51. package/dist/atoms/Grid.js +1 -0
  52. package/dist/atoms/Img.d.ts +11 -0
  53. package/dist/atoms/Img.js +1 -0
  54. package/dist/atoms/Logo.d.ts +40 -0
  55. package/dist/atoms/Logo.js +51 -0
  56. package/dist/atoms/P.d.ts +9 -0
  57. package/dist/atoms/P.js +1 -0
  58. package/dist/atoms/Placeholder.d.ts +9 -0
  59. package/dist/atoms/Placeholder.js +1 -0
  60. package/dist/atoms/Span.d.ts +9 -0
  61. package/dist/atoms/Span.js +1 -0
  62. package/dist/atoms/index.d.ts +9 -0
  63. package/dist/atoms/index.js +1 -0
  64. package/dist/chunk-VY3566IV.js +1 -0
  65. package/dist/fn/Button.d.ts +82 -0
  66. package/dist/fn/Button.js +1 -0
  67. package/dist/fn/Cropper.d.ts +26 -0
  68. package/dist/fn/Cropper.js +1 -0
  69. package/dist/fn/Effect/Fade.d.ts +17 -0
  70. package/dist/fn/Effect/Fade.js +1 -0
  71. package/dist/fn/Effect/Pudding.d.ts +8 -0
  72. package/dist/fn/Effect/Pudding.js +1 -0
  73. package/dist/fn/Effect/Ripple.d.ts +8 -0
  74. package/dist/fn/Effect/Ripple.js +3 -0
  75. package/dist/fn/Effect/index.d.ts +11 -0
  76. package/dist/fn/Effect/index.js +1 -0
  77. package/dist/fn/Input/AutoHeightText.d.ts +6 -0
  78. package/dist/fn/Input/AutoHeightText.js +1 -0
  79. package/dist/fn/Input/Checker.d.ts +17 -0
  80. package/dist/fn/Input/Checker.js +1 -0
  81. package/dist/fn/Input/Chips/Selector.d.ts +44 -0
  82. package/dist/fn/Input/Chips/Selector.js +1 -0
  83. package/dist/fn/Input/Chips/index.d.ts +60 -0
  84. package/dist/fn/Input/Chips/index.js +1 -0
  85. package/dist/fn/Input/Contenteditable.d.ts +17 -0
  86. package/dist/fn/Input/Contenteditable.js +1 -0
  87. package/dist/fn/Input/DigitCharacters.d.ts +17 -0
  88. package/dist/fn/Input/DigitCharacters.js +1 -0
  89. package/dist/fn/Input/Filer.d.ts +47 -0
  90. package/dist/fn/Input/Filer.js +1 -0
  91. package/dist/fn/Input/Hidden.d.ts +13 -0
  92. package/dist/fn/Input/Hidden.js +1 -0
  93. package/dist/fn/Input/List.d.ts +50 -0
  94. package/dist/fn/Input/List.js +1 -0
  95. package/dist/fn/Input/Parts.d.ts +22 -0
  96. package/dist/fn/Input/Parts.js +1 -0
  97. package/dist/fn/Input/Plain.d.ts +7 -0
  98. package/dist/fn/Input/Plain.js +1 -0
  99. package/dist/fn/Input/RichSelect.d.ts +32 -0
  100. package/dist/fn/Input/RichSelect.js +1 -0
  101. package/dist/fn/Input/Search.d.ts +6 -0
  102. package/dist/fn/Input/Search.js +1 -0
  103. package/dist/fn/Input/Segmented.d.ts +22 -0
  104. package/dist/fn/Input/Segmented.js +1 -0
  105. package/dist/fn/Input/Select.d.ts +28 -0
  106. package/dist/fn/Input/Select.js +1 -0
  107. package/dist/fn/Input/Slider.d.ts +31 -0
  108. package/dist/fn/Input/Slider.js +1 -0
  109. package/dist/fn/Input/Switch.d.ts +17 -0
  110. package/dist/fn/Input/Switch.js +1 -0
  111. package/dist/fn/Input/Text.d.ts +51 -0
  112. package/dist/fn/Input/Text.js +1 -0
  113. package/dist/fn/Input/TextArea.d.ts +19 -0
  114. package/dist/fn/Input/TextArea.js +1 -0
  115. package/dist/fn/Input/Time/Picker.d.ts +37 -0
  116. package/dist/fn/Input/Time/Picker.js +1 -0
  117. package/dist/fn/Input/Time/index.d.ts +78 -0
  118. package/dist/fn/Input/Time/index.js +1 -0
  119. package/dist/fn/Input/core.d.ts +54 -0
  120. package/dist/fn/Input/core.js +1 -0
  121. package/dist/fn/Input/index.d.ts +145 -0
  122. package/dist/fn/Input/index.js +1 -0
  123. package/dist/fn/Layout/PageNotFound.d.ts +6 -0
  124. package/dist/fn/Layout/PageNotFound.js +1 -0
  125. package/dist/fn/Layout/PageRouter.d.ts +27 -0
  126. package/dist/fn/Layout/PageRouter.js +1 -0
  127. package/dist/fn/Layout/PageViewController.d.ts +13 -0
  128. package/dist/fn/Layout/PageViewController.js +1 -0
  129. package/dist/fn/Layout/Plate.d.ts +9 -0
  130. package/dist/fn/Layout/Plate.js +1 -0
  131. package/dist/fn/Layout/RootViewController.d.ts +41 -0
  132. package/dist/fn/Layout/RootViewController.js +1 -0
  133. package/dist/fn/Layout/SwipeView.d.ts +40 -0
  134. package/dist/fn/Layout/SwipeView.js +1 -0
  135. package/dist/fn/Layout/TabBar.d.ts +16 -0
  136. package/dist/fn/Layout/TabBar.js +1 -0
  137. package/dist/fn/Layout/index.d.ts +27 -0
  138. package/dist/fn/Layout/index.js +1 -0
  139. package/dist/fn/Loader/corner.d.ts +1 -0
  140. package/dist/fn/Loader/corner.js +1 -0
  141. package/dist/fn/Loader/index.d.ts +47 -0
  142. package/dist/fn/Loader/index.js +1 -0
  143. package/dist/fn/Loader/mini.d.ts +6 -0
  144. package/dist/fn/Loader/mini.js +1 -0
  145. package/dist/fn/Loader/top.d.ts +2 -0
  146. package/dist/fn/Loader/top.js +1 -0
  147. package/dist/fn/Sheet.d.ts +76 -0
  148. package/dist/fn/Sheet.js +1 -0
  149. package/dist/fn/Snackbar.d.ts +24 -0
  150. package/dist/fn/Snackbar.js +1 -0
  151. package/dist/fn/Table/Data.d.ts +128 -0
  152. package/dist/fn/Table/Data.js +1 -0
  153. package/dist/fn/Table/Drag.d.ts +18 -0
  154. package/dist/fn/Table/Drag.js +1 -0
  155. package/dist/fn/Table/Normal.d.ts +16 -0
  156. package/dist/fn/Table/Normal.js +1 -0
  157. package/dist/fn/Table/Parts.d.ts +24 -0
  158. package/dist/fn/Table/Parts.js +1 -0
  159. package/dist/fn/Table/Wrapper.d.ts +10 -0
  160. package/dist/fn/Table/Wrapper.js +1 -0
  161. package/dist/fn/Table/cellStyling.d.ts +9 -0
  162. package/dist/fn/Table/cellStyling.js +1 -0
  163. package/dist/fn/Table/index.d.ts +42 -0
  164. package/dist/fn/Table/index.js +1 -0
  165. package/dist/fn/Tooltips.d.ts +31 -0
  166. package/dist/fn/Tooltips.js +1 -0
  167. package/dist/fn/index.d.ts +10 -0
  168. package/dist/fn/index.js +1 -0
  169. package/dist/index.d.ts +400 -0
  170. package/dist/index.js +1 -0
  171. package/dist/mols/Accordion.d.ts +25 -0
  172. package/dist/mols/Accordion.js +1 -0
  173. package/dist/mols/Column.d.ts +7 -0
  174. package/dist/mols/Column.js +1 -0
  175. package/dist/mols/LinkifyText.d.ts +10 -0
  176. package/dist/mols/LinkifyText.js +1 -0
  177. package/dist/mols/List.d.ts +11 -0
  178. package/dist/mols/List.js +1 -0
  179. package/dist/mols/Row.d.ts +16 -0
  180. package/dist/mols/Row.js +1 -0
  181. package/dist/mols/Text.d.ts +21 -0
  182. package/dist/mols/Text.js +1 -0
  183. package/dist/mols/index.d.ts +6 -0
  184. package/dist/mols/index.js +1 -0
  185. package/dist/orgs/index.d.ts +1 -0
  186. package/dist/orgs/index.js +0 -0
  187. package/dist/temps/designBook.d.ts +4 -0
  188. package/dist/temps/designBook.js +99 -0
  189. package/dist/temps/index.d.ts +1 -0
  190. package/dist/temps/index.js +1 -0
  191. package/package.json +1 -1
@@ -0,0 +1,145 @@
1
+ /// <reference types="react" />
2
+ import { ReactElement, TagProperty } from '../../@declaration';
3
+ export declare namespace InputTypes {
4
+ type BoxTone = 'border' | 'cloud' | 'bottomBorder' | 'plain';
5
+ type OnUpdateValue = {
6
+ (data: {
7
+ value: any;
8
+ componentID: string;
9
+ storeData?: plainObject;
10
+ eventType: Validation.EventType;
11
+ }): void;
12
+ };
13
+ type UniInput = {
14
+ name?: string;
15
+ form?: string;
16
+ status_id?: string;
17
+ componentID?: string;
18
+ override?: 'force' | 'beforeModified' | 'never';
19
+ required?: boolean;
20
+ enableFormSubmit?: boolean;
21
+ checkValidationAtFirst?: boolean;
22
+ onValidate?: Validation.OnValidate;
23
+ onUpdateValue?: OnUpdateValue;
24
+ onUpdateValidValue?: OnUpdateValue;
25
+ };
26
+ type CoreInput = UniInput & {
27
+ className?: string;
28
+ wrapStyles?: TagProperty.Para;
29
+ } & TagProperty.Para;
30
+ namespace Validation {
31
+ type EventType = 'init' | 'update' | 'override' | 'refresh';
32
+ type Notice = {
33
+ type: 'valid' | 'invalid' | 'warn';
34
+ label: ReactElement;
35
+ };
36
+ type Result = {
37
+ ok: boolean;
38
+ notice: Notice[];
39
+ };
40
+ type SystemCheck = {
41
+ (props: {
42
+ value: any;
43
+ para: any;
44
+ }): Result;
45
+ };
46
+ type OnValidate = {
47
+ (state: {
48
+ eventType: EventType;
49
+ value: any;
50
+ props: plainObject;
51
+ }): Promise<Result>;
52
+ };
53
+ }
54
+ namespace Status {
55
+ type Plain = {
56
+ componentID: string;
57
+ dataValue: any;
58
+ eventType: Validation.EventType;
59
+ eventID: string;
60
+ };
61
+ type Text = Plain & {
62
+ formatValue: any;
63
+ prevValue: any;
64
+ caretFrom: number;
65
+ caretTo: number;
66
+ };
67
+ type DigitCharacters = Plain & {
68
+ formatValue: any;
69
+ };
70
+ type Time = Plain & {
71
+ formatValue: any;
72
+ ranges: _Time.Range[];
73
+ };
74
+ type Slider = Plain & {
75
+ min: number;
76
+ max: number;
77
+ step: number;
78
+ };
79
+ }
80
+ }
81
+ import _Plain from './Plain';
82
+ import _Hidden from './Hidden';
83
+ import _Text from './Text';
84
+ import _TextArea from './TextArea';
85
+ import _AutoHeightText from './AutoHeightText';
86
+ import _Contenteditable from './Contenteditable';
87
+ import _DigitCharacters from './DigitCharacters';
88
+ import _Time from './Time';
89
+ import _Select from './Select';
90
+ import _RichSelect from './RichSelect';
91
+ import * as _List from './List';
92
+ import _Chips from './Chips';
93
+ import _Search from './Search';
94
+ import _Filer from './Filer';
95
+ import _Slider from './Slider';
96
+ import _Switch from './Switch';
97
+ import _Checker from './Checker';
98
+ import _Segmented from './Segmented';
99
+ import _Parts from './Parts';
100
+ declare namespace Input {
101
+ type Methods = {
102
+ Plain: React.FC<TagProperty.Para & React.InputHTMLAttributes<HTMLInputElement>>;
103
+ Hidden: React.FC<_Hidden.Input>;
104
+ Text: _Text.Methods;
105
+ TextArea: React.FC<_TextArea.Input>;
106
+ AutoHeightText: React.FC<_AutoHeightText.Input>;
107
+ Contenteditable: React.FC<_Contenteditable.Input>;
108
+ DigitCharacters: React.FC<_DigitCharacters.Input>;
109
+ Time: _Time.Methods;
110
+ Select: React.FC<_Select.Input>;
111
+ RichSelect: React.FC<_RichSelect.Input>;
112
+ Radio: React.FC<_List.List.Input>;
113
+ Checkbox: React.FC<_List.List.Input>;
114
+ Checker: React.FC<_Checker.Input>;
115
+ Chips: _Chips.Methods;
116
+ Search: React.FC<_Search.Input>;
117
+ Filer: _Filer.Methods;
118
+ Slider: React.FC<_Slider.Input>;
119
+ Switch: React.FC<_Switch.Input>;
120
+ Segmented: _Segmented.Methods;
121
+ Comps: _Parts.Methods;
122
+ };
123
+ export import Plain = _Plain;
124
+ export import Hidden = _Hidden;
125
+ export import Text = _Text;
126
+ export import TextArea = _TextArea;
127
+ export import AutoHeightText = _AutoHeightText;
128
+ export import Contenteditable = _Contenteditable;
129
+ export import DigitCharacters = _DigitCharacters;
130
+ export import Time = _Time;
131
+ export import Select = _Select;
132
+ export import RichSelect = _RichSelect;
133
+ export import List = _List.List;
134
+ export import Radio = _List.Radio;
135
+ export import Checkbox = _List.Checkbox;
136
+ export import Checker = _Checker;
137
+ export import Chips = _Chips;
138
+ export import Search = _Search;
139
+ export import Filer = _Filer;
140
+ export import Slider = _Slider;
141
+ export import Switch = _Switch;
142
+ export import Segmented = _Segmented;
143
+ export import Comps = _Parts;
144
+ }
145
+ export { Input, Input as default };
@@ -0,0 +1 @@
1
+ import"../../chunk-VY3566IV.js";import o from"./Plain";import i from"./Hidden";import a from"./Text";import p from"./TextArea";import m from"./AutoHeightText";import n from"./Contenteditable";import l from"./DigitCharacters";import c from"./Time";import s from"./Select";import d from"./RichSelect";import*as r from"./List";import x from"./Chips";import h from"./Search";import _ from"./Filer";import y from"./Slider";import C from"./Switch";import T from"./Checker";import u from"./Segmented";import f from"./Parts";var t;(e=>(e.Plain=o,e.Hidden=i,e.Text=a,e.TextArea=p,e.AutoHeightText=m,e.Contenteditable=n,e.DigitCharacters=l,e.Time=c,e.Select=s,e.RichSelect=d,e.List=r.List,e.Radio=r.Radio,e.Checkbox=r.Checkbox,e.Checker=T,e.Chips=x,e.Search=h,e.Filer=_,e.Slider=y,e.Switch=C,e.Segmented=u,e.Comps=f))(t||(t={}));export{t as Input,t as default};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare namespace PageNotFound {
3
+ type Input = {};
4
+ }
5
+ declare const PageNotFound: React.FC<PageNotFound.Input>;
6
+ export { PageNotFound, PageNotFound as default };
@@ -0,0 +1 @@
1
+ import"../../chunk-VY3566IV.js";import{jsx as o,jsxs as t}from"react/jsx-runtime";import r from"../../atoms/Box";import l from"../../atoms/FAI";import p from"../../mols/Row";import e from"../../mols/Text";import a from"../../mols/Column";import m from"../Button";const i=()=>{let{href:n}=location;return o(p.Center,{padding:[4,1],children:t(a,{ssCardBox:!0,gap:2,padding:[3,2],textAlign:"center",width:1,freeCSS:{maxWidth:12*30},children:[o(l.LinkSlash,{fontColor:"theme",freeCSS:{fontSize:"3rem"}}),t(r,{children:[o(e.Paragraph,{children:"\u3053\u306E\u30DA\u30FC\u30B8\u306F\u3054\u5229\u7528\u3044\u305F\u3060\u3051\u307E\u305B\u3093\u3002"}),o(e.Supplement,{fontColor:"3.blur",children:"\u5165\u529B\u3055\u308C\u305F\u30EA\u30F3\u30AF\u306E\u30DA\u30FC\u30B8\u306F\u5B58\u5728\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002"})]}),t(a,{children:[t(e.Normal,{textAlign:"left",ssCardBox:"cloud",isSemiBoldFont:!0,padding:1,children:["\u30FB\u30EA\u30F3\u30AF\u304C\u6B63\u3057\u3044\u304B",o(r,{margin:["1/2",0],borderBottom:!0}),"\u30FB\u30EA\u30F3\u30AF\u306E\u6709\u52B9\u671F\u9650",o(r,{margin:["1/2",0],borderBottom:!0}),"\u30FB\u30A2\u30AF\u30BB\u30B9\u6A29\u9650\u7B49\u304C\u6B63\u3057\u3044\u304B"]}),"\u306A\u3069\u3092\u3082\u3046\u4E00\u5EA6\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002"]}),o(m.Anchor.Link,{newTab:!0,href:n,children:n}),o(m.Anchor.BorderToFill.R,{href:"/",width:1,children:"\u30DB\u30FC\u30E0\u306B\u623B\u308B"})]})})};export{i as PageNotFound,i as default};
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ import { ReactElement } from '../../@declaration';
3
+ declare namespace PageRouter {
4
+ type RoutesProps = {
5
+ path: string;
6
+ content: ReactElement;
7
+ };
8
+ type Callbacks = {
9
+ beforeCallBack?: {
10
+ (pathName: string): void;
11
+ };
12
+ afterCallBack?: {
13
+ (pathName: string): void;
14
+ };
15
+ afterFirstCallBack?: {
16
+ (pathName: string): void;
17
+ };
18
+ };
19
+ type RoutesSwitchProps = {
20
+ routes: RoutesProps[];
21
+ } & Callbacks;
22
+ type Input = {
23
+ pages: RoutesProps[];
24
+ } & Callbacks;
25
+ }
26
+ declare const PageRouter: React.FC<PageRouter.Input>;
27
+ export { PageRouter, PageRouter as default };
@@ -0,0 +1 @@
1
+ import"../../chunk-VY3566IV.js";import{jsx as n,jsxs as P}from"react/jsx-runtime";import{useEffect as c,useRef as m}from"react";import{useStore as R}from"../../@utils";import*as s from"react-router-dom";import C from"../Sheet";import{PageNotFound as g}from"./PageNotFound";import{RootViewController as k}from"./RootViewController";const h=(t,o,a)=>{const r=m(!1);let e=s.useLocation(),u=s.useNavigate();R.set({key:"navigate",value:u}),c(()=>{r.current?(C.closeAll(!0),k.fn.updateCSSProperty.reset()):r.current=!0},[e.pathname]),t&&t(e),c(()=>{a&&a(e)},[]),c(()=>{setTimeout(()=>{window.dispatchEvent(new Event("resize"))},200),o&&o(e)},[e])},B=t=>{let{routes:o,beforeCallBack:a,afterCallBack:r,afterFirstCallBack:e}=t;h(a,r,e);let u=o.map(i=>{let{path:l,content:f}=i;return l="/"+l.replace(/^\//,""),n(s.Route,{path:l,element:f},l)});return P(s.Routes,{children:[u,n(s.Route,{path:"*",element:n(g,{})})]})},p=t=>{let{pages:o,beforeCallBack:a,afterCallBack:r,afterFirstCallBack:e}=t;return n(B,{routes:o,beforeCallBack:a,afterCallBack:r,afterFirstCallBack:e})};export{p as PageRouter,p as default};
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { ReactElement } from '../../@declaration';
3
+ declare namespace PageViewController {
4
+ type Input = {
5
+ viewIndex: number;
6
+ views: ReactElement[];
7
+ wrapper?: {
8
+ (view: ReactElement): ReactElement;
9
+ };
10
+ };
11
+ }
12
+ declare const PageViewController: React.FC<PageViewController.Input>;
13
+ export { PageViewController, PageViewController as default, };
@@ -0,0 +1 @@
1
+ import"../../chunk-VY3566IV.js";import{Fragment as c,jsx as a}from"react/jsx-runtime";import{useState as p}from"react";import w from"../Effect";const n=r=>{let{viewIndex:e=0,views:t,wrapper:i=m=>a(w.FadeIn,{animationTime:400,children:m},e)}=r;e=Math.min(Math.max(e,0),t.length);let[l,o]=p(e);return l!=e&&o(e),a(c,{children:i(t[e])})};export{n as PageViewController,n as default};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import Box from '../../atoms/Box';
3
+ declare namespace Plate {
4
+ type Input = {
5
+ size?: 'XS' | 'S' | 'R' | 'L' | 'XL' | 'MAX';
6
+ } & Box.Input;
7
+ }
8
+ declare const Plate: React.FC<Plate.Input>;
9
+ export { Plate, Plate as default };
@@ -0,0 +1 @@
1
+ import{b as e,c as o,d as S}from"../../chunk-VY3566IV.js";import{jsx as X}from"react/jsx-runtime";import n from"../../atoms/Box";const p=r=>{let a=r,{size:i="R"}=a,t=S(a,["size"]),l={XS:48,S:60,R:72,L:84,XL:100,MAX:120}[i];return X(n,o(e({margin:[0,"auto"],width:1},t),{freeCSS:e({maxWidth:12*l},t.freeCSS)}))};export{p as Plate,p as default};
@@ -0,0 +1,41 @@
1
+ /// <reference types="react" />
2
+ import { TagProperty, ReactElement } from '../../@declaration';
3
+ import Box from '../../atoms/Box';
4
+ import Flex from '../../atoms/Flex';
5
+ import Button from '../Button';
6
+ declare namespace RootViewController {
7
+ type Methods = {
8
+ Base: React.FC<RootViewController.BaseParams>;
9
+ TopNavigation: React.FC<Flex.Input>;
10
+ SideNavigation: React.FC<Flex.Input & {
11
+ baseStyles?: TagProperty.Para;
12
+ }>;
13
+ FooterNavigation: React.FC<Flex.Input & {
14
+ baseStyles?: TagProperty.Para;
15
+ }>;
16
+ Comps: {
17
+ Button: React.FC<ButtonParams>;
18
+ Title: React.FC<Box.Input>;
19
+ Bar: React.FC<Box.Input>;
20
+ };
21
+ fn: FNs;
22
+ };
23
+ type BaseParams = Box.Input & {
24
+ topNavigation?: ReactElement;
25
+ sideNavigation?: ReactElement;
26
+ footerNavigation?: ReactElement;
27
+ };
28
+ type ButtonParams = Button.ButtonInput & Button.Tones.Clear & {
29
+ uri?: string;
30
+ uriGroup?: (string | RegExp) | (string | RegExp)[];
31
+ };
32
+ type FNs = {
33
+ updateCSSProperty: {
34
+ topNav(): void;
35
+ footer(): void;
36
+ reset(): void;
37
+ };
38
+ };
39
+ }
40
+ declare const RootViewController: RootViewController.Methods;
41
+ export { RootViewController, RootViewController as default };
@@ -0,0 +1 @@
1
+ import{b as p,c as y,d as f}from"../../chunk-VY3566IV.js";import{jsx as s,jsxs as x}from"react/jsx-runtime";import{useState as S,useEffect as N}from"react";import r from"@mingoo/jsmin";import{$$fromRoot as v,Config as R,pageTransit as P}from"../../@utils";import h from"../../atoms/Box";import C from"../../atoms/Flex";import F from"../../mols/Column";import _ from"../Button";import{LayoutClasses as m}from"../../@styles/componentClasses";const c={Base:o=>{let l=o,{topNavigation:e,sideNavigation:t,footerNavigation:i,children:a,className:n}=l,g=f(l,["topNavigation","sideNavigation","footerNavigation","children","className"]);N(()=>{c.fn.updateCSSProperty.reset(),setTimeout(()=>{c.fn.updateCSSProperty.reset()},100);let u="ResizeCB",B="RemovePageEventCB";return r(window).addEvent({eventType:"resize",eventID:u,callback:()=>{R.get().screen.isPhonepoint()||(r.interval.clear("__RVC_calcHeights"),r.interval.standBy("__RVC_calcHeights",300,()=>{c.fn.updateCSSProperty.reset()}))}}),()=>{r(window).removeEvent(B),r(window).removeEvent(u)}},[]);let d=a;return x(F,y(p({className:[n,m("RootViewController")].join(" "),backgroundColor:"layer.1",gap:0,minHeight:"viewHeight"},g),{children:[e,x(C,{className:m("Body"),flexWrap:!1,position:"relative",flexSizing:0,children:[t,s(h,{className:m("Content"),position:"relative",flexSizing:0,width:0,UnderBreakPointStyles:{width:"auto"},children:d})]}),i]}))},TopNavigation:o=>{let n=o,{className:e,children:t}=n,i=f(n,["className","children"]),[a]=S(r.uuid.gen());return N(()=>{c.fn.updateCSSProperty.topNav()},[]),s(C,y(p({"data-id":a,flexSizing:"none",flexType:"col",position:"sticky",top:0,backgroundColor:"layer.1"},i),{id:"__RVC_TopNavigation",className:[e,m("TopNav")].join(" "),children:t}),a)},SideNavigation:o=>{let a=o,{className:e="",baseStyles:t}=a,i=f(a,["className","baseStyles"]);return s(h,p({flexSizing:"none",className:[e,m("SideNav")].join(" "),minHeight:"sideNavigationHeight"},i))},FooterNavigation:o=>{let n=o,{className:e="",baseStyles:t}=n,i=f(n,["className","baseStyles"]),[a]=S(r.uuid.gen());return N(()=>{c.fn.updateCSSProperty.footer()},[]),s(C,y(p({"data-id":a,borderTop:!0,position:"sticky",bottom:0,overflow:"auto",backgroundColor:"layer.1",paddingBottom:"safeAreaBottom"},t),{id:"__RVC_FooterNavigation",className:[m("FooterNav"),e].join(" "),children:s(C,p({gap:1,flexWrap:!1,padding:"2/3",margin:"auto"},i))}))},Comps:{Button:o=>{let d=o,{isActive:e,uri:t,uriGroup:i}=d,a=f(d,["isActive","uri","uriGroup"]),n=r.flatArray(i),g=location.pathname;{let l=!1;if(r.is.exist(t)&&r.is.string(t)){let u=[location.origin,t.replace(/\//,"")].join("/");l=g==new URL(u).pathname}if(!l&&n.length)for(let u of n)r.is.nullish(u)||g.match(new RegExp(u))&&(l=!0);e=e!=null?e:l}return s(_.Button.Clear.R,p({padding:["3/4",1],display:"flex",gap:"1/2",fontColor:"inherit",width:1,flexSizing:"none",flexWrap:!1,ssEffectsOnActive:"ripple.cloud",verticalAlign:"center",textAlign:"left",isSemiBoldFont:!0,isActive:e,isActiveStyles:{fontColor:"theme",backgroundColor:"cloud"},onClick:l=>{r.is.exist(t)&&r.is.string(t)&&P.push(t,l.ctrlKey||l.metaKey)},color:"cloud"},a))},Bar:o=>s(h,p({flexSizing:"none",backgroundColor:"layer.4.opa.middle",unitHeight:"1/3",margin:["2/3",1],borderRadius:"sphere"},o)),Title:o=>s(h,p({fontSize:"3.paragraph",isSemiBoldFont:!0,padding:[0,1]},o))},fn:{updateCSSProperty:{topNav:()=>{let o=r(document.body),e=v("#__RVC_TopNavigation"),t=e.position().height||0,i=t;e.getStyleProperty("position")!="sticky"&&(i=0),o.setStyleProperty("--topNavHeight",t+"px").setStyleProperty("--topBase",i+"px")},footer:()=>{let o=r(document.body),t=v("#__RVC_FooterNavigation").position().height||0;o.setStyleProperty("--footerNavHeight",t+"px")},reset:()=>{let o=r(document.body),e=v("#__RVC_TopNavigation"),t=v("#__RVC_FooterNavigation"),i=e.position().height||0,a=i,n=t.position().height||0;e.getStyleProperty("position")!="sticky"&&(a=0);let g=window.innerHeight,d=g-i-n;o.setStyleProperty("--topNavHeight",i+"px").setStyleProperty("--topBase",a+"px").setStyleProperty("--footerNavHeight",n+"px").setStyleProperty("--viewHeight",g+"px").setStyleProperty("--sideNavHeight",d+"px").setStyleProperty("--contentHeight",d+"px")}}}};export{c as RootViewController,c as default};
@@ -0,0 +1,40 @@
1
+ /// <reference types="react" />
2
+ import { TagProperty, ReactElement } from '../../@declaration';
3
+ declare namespace SwipeView {
4
+ type Input = TagProperty.BasicElement & {
5
+ slideIndex?: number;
6
+ slides: ReactElement[];
7
+ wrapper?: {
8
+ (slide: ReactElement): ReactElement;
9
+ };
10
+ options?: {
11
+ onSlideCallback?: {
12
+ (index: number): void;
13
+ };
14
+ visibilitySurroundSlide?: boolean;
15
+ autoSwipems?: number;
16
+ loop?: boolean;
17
+ disableMousedrag?: boolean;
18
+ disableTouch?: boolean;
19
+ };
20
+ };
21
+ type SlideEvent = {
22
+ eventType: 'usr' | 'sys' | 'init' | 'adjustLoop';
23
+ index: number;
24
+ };
25
+ type SliderInfo = {
26
+ x: number;
27
+ y: number;
28
+ effectStartAt: number;
29
+ process: boolean;
30
+ loop: boolean;
31
+ id: string;
32
+ index: number;
33
+ minIndex: number;
34
+ maxIndex: number;
35
+ width: number;
36
+ set_event: React.Dispatch<React.SetStateAction<SlideEvent>>;
37
+ };
38
+ }
39
+ declare const SwipeView: (para: SwipeView.Input) => import("react/jsx-runtime").JSX.Element;
40
+ export { SwipeView, SwipeView as default };
@@ -0,0 +1 @@
1
+ import{b as f,c as T,d as k}from"../../chunk-VY3566IV.js";import{jsx as I}from"react/jsx-runtime";import{useState as L,useEffect as M,useRef as N}from"react";import c from"@mingoo/jsmin";import{$$fromRoot as h,useStore as X}from"../../@utils";import R from"../../atoms/Box";import j from"../../atoms/Flex";import{LayoutClasses as a}from"../../@styles/componentClasses";const B=t=>{let D=t,{options:{onSlideCallback:e,visibilitySurroundSlide:u=!0,autoSwipems:d=0,loop:i=!1,disableMousedrag:r=!1,disableTouch:o=!1}={},wrapper:s=n=>n,slides:v=[]}=D,E=k(D,["options","wrapper","slides"]),[w]=L(c.uuid.gen()),[p,y]=L({eventType:"init",index:t.slideIndex});M(()=>{X.set({key:"SwipeTimer-"+w,value:null})},[]);const g=N(!1);M(()=>{y({eventType:"usr",index:t.slideIndex}),g.current||(g.current=!0)},[t.slideIndex]),M(()=>{let n=p.index+(i?1:0),m=[-1,v.length].includes(p.index);m||e&&setTimeout(()=>{e(p.index)},300);let b=h("#Swiper-"+w);if(p.eventType=="adjustLoop")b.await(250).css({transition:"0s",transform:l.TrasformString(n)}).children().removeClass(a("Display")).parent().children(n).addClass([a("Display"),a("LoopAdjusting")]).await(100).removeClass(a("LoopAdjusting"));else if(p.eventType=="sys")b.await(250).css({transform:l.TrasformString(n)}).children().removeClass(a("Display")).parent().children(n).addClass(a("Display"));else if(b.children().removeClass(a("Display")).parent().children(n).addClass(a("Display")).parent().css({transition:"0.3s",transform:l.TrasformString(n)}).await(250).css({transition:"0s"}),m){let x=p.index==-1?v.length-1:0;y({eventType:"adjustLoop",index:x})}d&&!m&&(c.interval.clear("SwipeTimer-"+w),c.interval.standBy("SwipeTimer-"+w,d-(p.eventType=="sys"?310:0),()=>{let x=p.index+1;!i&&x>v.length-1&&(x=0),y({eventType:"usr",index:x})}))},[p]);let S=v.map((n,m)=>I(R,{flexSizing:"none",width:1,height:0,className:a("Child"),children:s(n)},m));i&&(S.push(S[0]),S.unshift(S[S.length-2]));let C={x:0,y:0,process:!1,effectStartAt:0,id:w,loop:i,index:p.index,minIndex:i?-1:0,maxIndex:v.length+(i?1:-1),width:0,set_event:y},A=p.index+(i?1:0);return I(R,T(f({overflow:"hidden",position:"relative"},E),{className:[E.className,a("SwipeView")].join(" "),freeCSS:f({zIndex:1},E.freeCSS),"data-swipe-id":w,onMouseDown:n=>{r||n.buttons==1&&l.EffectStart(n,C)},onTouchStart:n=>{var m;o||((m=n.touches)==null?void 0:m.length)==1&&l.EffectStart(n,C)},children:I(j,{flexWrap:!1,gap:1,transition:"long",className:[a("Rail"),a("ShowOther_"+u)].join(" "),id:"Swiper-"+w,freeCSS:f({},g.current?{}:{transform:l.TrasformString(A)}),children:S})}))},l={TrasformString:t=>`translateX( calc( ${-100*t}% - ${12*t}px ) )`,EffectStart:(t,e)=>{let{x:u,y:d}=c.getCursor(t),i=t.currentTarget,r=t.target;if(["SELECT","BUTTON","LABEL","INPUT"].includes(r.tagName))return;e=T(f({},e),{x:u-e.x+window.scrollX,y:d-e.y+window.scrollY,effectStartAt:new Date().getTime(),width:h("#Swiper-"+e.id).position().width});let{swipeId:o}=i.dataset;o==e.id&&c(document).addEvent({eventID:"SwipeMouseMove",eventType:"mousemove",callback:s=>{l.EffectCheck(s,e)},options:{passive:!1}}).addEvent({eventID:"SwipeTouchMove",eventType:"touchmove",callback:s=>{l.EffectCheck(s,e)},options:{passive:!1}}).addEvent({eventID:"SwipeMouseUp",eventType:"mouseup",callback:s=>{l.EffectEnd(s,e)},options:{passive:!1}}).addEvent({eventID:"SwipeTouchEnd",eventType:"touchend",callback:s=>{l.EffectEnd(s,e)},options:{passive:!1}})},EffectCheck:(t,e)=>{if(e.process)return;let{x:u,y:d}=c.getCursor(t),i=Math.abs(u-e.x+window.scrollX),r=Math.abs(d-e.y+window.scrollY);if(!(t.touches&&t.touches.length>1)&&!(r+i<15))if(r>i/2)c(document).removeEvent(["SwipeMouseMove","SwipeTouchMove"]);else{e.process=!0;let o=e.index+(e.loop?1:0);h("#Swiper-"+e.id).children(o-1).addClass(a("Display")),c(document).addEvent({eventID:"SwipeCheckMouseMove",eventType:"mousemove",callback:s=>{l.EffectMove(s,e)},options:{passive:!1}}).addEvent({eventID:"SwipeCheckTouchMove",eventType:"touchmove",callback:s=>{l.EffectMove(s,e)},options:{passive:!1}}),t.preventDefault();return}},EffectMove:(t,e)=>{if(t.touches&&t.touches.length>1)return;let{x:u}=c.getCursor(t),d=u-e.x+window.scrollX,r=e.index+(e.loop?1:0)-d/e.width;if(r<0)r/=2;else if(r>e.maxIndex){let o=r-e.maxIndex;r=e.maxIndex+o/2}h("#Swiper-"+e.id).css({transition:"0s",transform:l.TrasformString(r)}),t.preventDefault()},EffectEnd:(t,e)=>{if(e.process){let d=c.getCursor(t).x-e.x+window.scrollX,i=new Date().getTime(),r=i-e.effectStartAt,o=e.index+(e.loop?1:0),s=0;r<400?s=o-(+(d>0)*2-1):s=Math.round(o-d/e.width),s=Math.max(Math.min(s,e.maxIndex),e.minIndex),e.process=!1,o===s?(e.effectStartAt=i,h("#Swiper-"+e.id).css({transition:".2s",transform:l.TrasformString(s)}).await(310).css({transition:"0s"}).children().removeClass(a("Display")).parent().children(o).addClass(a("Display"))):e.set_event({eventType:"usr",index:s+e.minIndex})}c(document).removeEvent(["SwipeMouseMove","SwipeTouchMove","SwipeCheckMouseMove","SwipeCheckTouchMove","SwipeMouseUp","SwipeTouchEnd"])}},V=t=>I(B,T(f({},t),{slideIndex:Math.max(Math.min(t.slideIndex,t.slides.length-1),0)}));export{V as SwipeView,V as default};
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import { TagProperty, ReactElement } from '../../@declaration';
3
+ declare namespace TabBar {
4
+ type Input = {
5
+ tabIndex: number;
6
+ tabs: ReactElement[];
7
+ onTabChange?: {
8
+ (index: number): void;
9
+ };
10
+ componentDidMount?: {
11
+ (): void;
12
+ };
13
+ } & TagProperty.BasicElement;
14
+ }
15
+ declare const TabBar: React.FC<TabBar.Input>;
16
+ export { TabBar, TabBar as default };
@@ -0,0 +1 @@
1
+ import{b as o,c as l,d as m}from"../../chunk-VY3566IV.js";import{jsx as a}from"react/jsx-runtime";import{useEffect as s}from"react";import c from"../../atoms/Box";import x from"../../atoms/Flex";import v from"../Input";const u=f=>{let i=f,{tabIndex:d,tabs:b,onTabChange:r,componentDidMount:n}=i,p=m(i,["tabIndex","tabs","onTabChange","componentDidMount"]);return s(()=>{n&&n()},[]),a(x,l(o({position:"relative",overflow:"auto",flexWrap:!1},p),{freeCSS:o({zIndex:3,whiteSpace:"nowrap"},p.freeCSS),children:a(c,{margin:[0,"auto"],children:a(v.Segmented.BottomLine,{value:d,fontColor:"inherit",override:"force",gap:0,options:b.map((e,t)=>({value:t,label:e})),onUpdateValidValue:e=>{let t=e.value[0];r&&r(t)}})})}))};export{u as TabBar,u as default};
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ import _SwipeView from './SwipeView';
3
+ import _PageViewController from './PageViewController';
4
+ import _TabBar from './TabBar';
5
+ import _Plate from './Plate';
6
+ import _PageNotFound from './PageNotFound';
7
+ import _PageRouter from './PageRouter';
8
+ import _RootViewController from './RootViewController';
9
+ declare namespace Layout {
10
+ type Methods = {
11
+ PageViewController: React.FC<_PageViewController.Input>;
12
+ TabBar: React.FC<_TabBar.Input>;
13
+ Plate: React.FC<_Plate.Input>;
14
+ SwipeView: React.FC<_SwipeView.Input>;
15
+ PageRouter: React.FC<_PageRouter.Input>;
16
+ PageNotFound: React.FC<{}>;
17
+ RootViewController: _RootViewController.Methods;
18
+ };
19
+ export import PageViewController = _PageViewController;
20
+ export import TabBar = _TabBar;
21
+ export import Plate = _Plate;
22
+ export import SwipeView = _SwipeView;
23
+ export import PageRouter = _PageRouter;
24
+ export import PageNotFound = _PageNotFound;
25
+ export import RootViewController = _RootViewController;
26
+ }
27
+ export { Layout, Layout as default };
@@ -0,0 +1 @@
1
+ import"../../chunk-VY3566IV.js";import r from"./SwipeView";import t from"./PageViewController";import p from"./TabBar";import i from"./Plate";import a from"./PageNotFound";import m from"./PageRouter";import l from"./RootViewController";var o;(e=>(e.PageViewController=t,e.TabBar=p,e.Plate=i,e.SwipeView=r,e.PageRouter=m,e.PageNotFound=a,e.RootViewController=l))(o||(o={}));export{o as Layout,o as default};
@@ -0,0 +1 @@
1
+ export declare const Corner: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ import"../../chunk-VY3566IV.js";import{jsx as a,jsxs as t}from"react/jsx-runtime";import{Config as n,useStore as l}from"../../@utils";import{useState as d,useEffect as c}from"react";import o from"../../atoms/Box";import s from"../../atoms/Flex";import{LoaderClasses as e}from"../../@styles/componentClasses";const N=()=>{let[i,r]=d(!1);return c(()=>{l.set({key:"Loader-corner-"+n.get().sessionUID+"-corner",value:{active:()=>{r(!0)},stop:()=>{r(!1)}}})},[]),t(s,{className:[e("CornerLoader"),e("Active_"+i)].join(" "),gap:"1/2",padding:["1/2","3/4"],borderRadius:"2/3",backgroundColor:"dark",position:"fixed",boxShadow:"1.remark",left:"50%",top:1,opacity:"trans",transition:"short",isRounded:!0,freeCSS:{pointerEvents:"none",transform:"translateX(-50%)"},children:[t(s,{className:e("Wrap"),flexWrap:!1,verticalAlign:"center",horizontalAlign:"center",children:[a(o,{className:e("Ld4")}),a(o,{className:e("Ld3")}),a(o,{className:e("Ld2")}),a(o,{className:e("Ld1")}),a(o,{className:e("Ld2")}),a(o,{className:e("Ld3")}),a(o,{className:e("Ld4")})]}),a(o,{fontColor:"white",fontSize:"0.xs",isSemiBoldFont:!0,children:"Loading"})]})};export{N as Corner};
@@ -0,0 +1,47 @@
1
+ /// <reference types="react" />
2
+ import { TagProperty } from '../../@declaration';
3
+ declare namespace Loader {
4
+ type Methods = Color & FNs;
5
+ type Color = {
6
+ Theme: Size<CompInput>;
7
+ Posi: Size<CompInput>;
8
+ Nega: Size<CompInput>;
9
+ Warn: Size<CompInput>;
10
+ White: Size<CompInput>;
11
+ Cloud: Size<CompInput>;
12
+ };
13
+ type Size<T> = {
14
+ S: React.FC<T>;
15
+ R: React.FC<T>;
16
+ L: React.FC<T>;
17
+ XL: React.FC<T>;
18
+ MAX: React.FC<T>;
19
+ };
20
+ type Sizes = 'S' | 'R' | 'L' | 'XL' | 'MAX';
21
+ type Colors = 'theme' | 'posi' | 'nega' | 'warn' | 'white' | 'cloud';
22
+ type CompInput = TagProperty.Para & {
23
+ showInitial?: boolean;
24
+ loaderID?: string;
25
+ };
26
+ type FNs = {
27
+ Wrapper(): JSX.Element;
28
+ fn: {
29
+ stopALL(): void;
30
+ top: {
31
+ active(): void;
32
+ stop(): void;
33
+ };
34
+ corner: {
35
+ active(): void;
36
+ stop(): void;
37
+ };
38
+ mini: {
39
+ active(loaderID?: string): void;
40
+ stop(loaderID?: string): void;
41
+ stopALL(): void;
42
+ };
43
+ };
44
+ };
45
+ }
46
+ declare const Loader: Loader.Methods;
47
+ export { Loader, Loader as default };
@@ -0,0 +1 @@
1
+ import{b as a}from"../../chunk-VY3566IV.js";import{jsx as i,jsxs as I}from"react/jsx-runtime";import{Config as m,useStore as p,$$fromRoot as d}from"../../@utils";import L from"../../atoms/Box";import{LoaderClasses as l}from"../../@styles/componentClasses";import{Top as C}from"./top";import{Mini as s}from"./mini";import{Corner as f}from"./corner";const n=o=>{let t=o.color;return{S:e=>i(s,a({size:"S",color:t},e)),R:e=>i(s,a({size:"R",color:t},e)),L:e=>i(s,a({size:"L",color:t},e)),XL:e=>i(s,a({size:"XL",color:t},e)),MAX:e=>i(s,a({size:"MAX",color:t},e))}},c={Wrapper:()=>I(L,{className:["AMOTIFY_be",l("Wrapper")].join(" "),children:[i(C,{}),i(f,{})]}),Theme:n({color:"theme"}),Posi:n({color:"posi"}),Nega:n({color:"nega"}),Warn:n({color:"warn"}),White:n({color:"white"}),Cloud:n({color:"cloud"}),fn:{top:{active:()=>{let o=p.get("Loader-top-"+m.get().sessionUID+"-corner");o&&o.active()},stop:()=>{let o=p.get("Loader-top-"+m.get().sessionUID+"-corner");o&&o.stop()}},corner:{active:()=>{let o=p.get("Loader-corner-"+m.get().sessionUID+"-corner");o&&o.active()},stop:()=>{let o=p.get("Loader-corner-"+m.get().sessionUID+"-corner");o&&o.stop()}},mini:{active:(o="")=>{d("."+l("MiniLoader")).for(t=>{let{dataset:{componentId:e}={}}=t;if(!e)return;let r=p.get(e);r&&r.active&&r.active(o)})},stop:(o="")=>{d("."+l("MiniLoader")).for(t=>{let{dataset:{componentId:e}={}}=t;if(!e)return;let r=p.get(e);r&&r.stop&&r.stop(o)})},stopALL:()=>{d("."+l("MiniLoader")).for(o=>{let{dataset:{componentId:t}={}}=o;if(!t)return;let e=p.get(t);e&&e.stopForce&&e.stopForce()})}},stopALL:()=>{c.fn.top.stop(),c.fn.corner.stop(),c.fn.mini.stopALL()}}};export{c as Loader,c as default};
@@ -0,0 +1,6 @@
1
+ import { Loader } from '.';
2
+ declare const Mini: (para: Loader.CompInput & {
3
+ color?: Loader.Colors;
4
+ size?: Loader.Sizes;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export { Mini };
@@ -0,0 +1 @@
1
+ import{b as d,c as f,d as h}from"../../chunk-VY3566IV.js";import{jsx as i,jsxs as k}from"react/jsx-runtime";import y from"@mingoo/jsmin";import{$$fromRoot as L,useStore as z}from"../../@utils";import{useState as l,useEffect as g}from"react";import{LoaderClasses as e}from"../../@styles/componentClasses";import I from"../../mols/Row";const R=w=>{let v=w,{color:u="theme",size:t="R",showInitial:c=!1,loaderID:C=""}=v,S=h(v,["color","size","showInitial","loaderID"]),[m]=l(C),[s]=l(y.uuid.gen()),[n,a]=l(c),o=0;t=="S"?o=1:t=="R"?o=1.5:t=="L"?o=3:t=="XL"?o=4:t=="MAX"&&(o=6);let p={theme:"hsl( var( --color-theme-hsl ) )",posi:"var( --color-positive )",nega:"var( --color-negative )",warn:"var( --color-warning )",cloud:"hsl( var( --color-layer5-hsl ) )",white:"white"}[u];return g(()=>{let r=L('[data-component-id="'+s+'"]');n?r.removeClass(e("Hide")).await(10).addClass(e("Active")):r.removeClass(e("Active")).await(210).addClass(e("Hide"))},[n]),g(()=>{z.set({key:s,value:{active:r=>{m==r&&a(!0)},stop:r=>{m==r&&a(!1)},stopForce:()=>{a(!1)}}})},[]),k(I.Center,f(d({ssSphere:o,className:[e("MiniLoader"),c?"":e("Hide")].join(" "),componentID:s,position:"relative"},S),{children:[i("svg",{className:e("SVG1"),width:"100",height:"100",viewBox:"0 0 100 100",style:{stroke:p},children:i("circle",{cx:"50",cy:"50",r:"40"})}),i("svg",{className:e("SVG2"),width:"100",height:"100",viewBox:"0 0 100 100",style:{stroke:p},children:i("circle",{cx:"50",cy:"50",r:"40"})})]}))};export{R as Mini};
@@ -0,0 +1,2 @@
1
+ declare const Top: () => import("react/jsx-runtime").JSX.Element;
2
+ export { Top };
@@ -0,0 +1 @@
1
+ import"../../chunk-VY3566IV.js";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{Config as t,useStore as n}from"../../@utils";import{useState as c,useEffect as C}from"react";import{LoaderClasses as e}from"../../@styles/componentClasses";import l from"../../atoms/Box";import a from"../../atoms/Flex";const m=()=>{let[s,i]=c(!1);return C(()=>{n.set({key:"Loader-top-"+t.get().sessionUID+"-corner",value:{active:()=>{i(!0)},stop:()=>{i(!1)}}})},[]),o(a,{className:[e("TopLoader"),e("Active_"+s)].join(" "),position:"fixed",top:0,left:0,right:0,bottom:0,horizontalAlign:"center",transition:"long",opacity:"trans",backgroundColor:"layer.4.opa.high",freeCSS:{paddingTop:12*8,pointerEvents:"none"},children:r(a,{flexType:"col",position:"relative",children:[o(a,{className:e("Center"),flexCenter:!0,children:r(l,{children:[o(l,{className:[e("Child"),e("Child1")].join(" "),children:o(l,{className:e("Circle"),backgroundColor:"theme.darken"})}),o(l,{className:[e("Child"),e("Child2")].join(" "),children:o(l,{className:e("Circle"),backgroundColor:"theme.darker"})}),o(l,{className:[e("Child"),e("Child3")].join(" "),children:o(l,{className:e("Circle"),backgroundColor:"theme.darkest"})}),o(l,{className:[e("Child"),e("Child4")].join(" "),children:o(l,{className:e("Circle"),backgroundColor:"theme.lighten"})}),o(l,{className:[e("Child"),e("Child5")].join(" "),children:o(l,{className:e("Circle"),backgroundColor:"theme.lighter"})}),o(l,{className:[e("Child"),e("Child6")].join(" "),children:o(l,{className:e("Circle"),backgroundColor:"theme.lightest"})}),o(l,{className:[e("Child"),e("Child7")].join(" "),children:o(l,{className:e("Circle"),backgroundColor:"theme"})})]})}),o(l,{flexCenter:!0,fontSize:"2.normal",children:"Loading..."})]})})};export{m as Top};
@@ -0,0 +1,76 @@
1
+ /// <reference types="react" />
2
+ import { TagProperty, ReactElement } from '../@declaration';
3
+ import $$ from '@mingoo/jsmin';
4
+ import Box from '../atoms/Box';
5
+ declare namespace Sheet {
6
+ type Methods = {
7
+ Wrapper(): JSX.Element;
8
+ open(para: Input): void;
9
+ refresh(para: Input, open: boolean): void;
10
+ resize(para: {
11
+ sheetID: string;
12
+ size: Size;
13
+ }): void;
14
+ reposition(sheetID: string): void;
15
+ close(key: string, eventType?: 'Escape' | 'pageTransit', force?: boolean): void;
16
+ closeGroup(keyGroup: string): void;
17
+ closeAll(pageTransit?: boolean): void;
18
+ Comps: {
19
+ Body: React.FC<Box.Input>;
20
+ };
21
+ };
22
+ type Input = Normal | Edge | Custom | Image | Bottom.Input;
23
+ type UniPara = {
24
+ sheetID?: string;
25
+ sheetGroups?: string | string[];
26
+ backgroundEffect?: boolean;
27
+ content: ReactElement | {
28
+ (): JSX.Element;
29
+ };
30
+ isOpen?: boolean;
31
+ overwrap?: boolean;
32
+ close_option?: CloseOptions;
33
+ hold_state?: boolean;
34
+ openAfter?(): void;
35
+ closeAfter?(): void;
36
+ } & TagProperty.BasicElement;
37
+ type Size = 'S' | 'R' | 'L' | '2L' | '3L' | 'MAX';
38
+ type CloseOptions = {
39
+ pageTransit?: boolean;
40
+ escapeKeyDown?: boolean;
41
+ aroundClick?: boolean;
42
+ parentBlur?: boolean;
43
+ };
44
+ type Sheet = 'normal.topLeft' | 'normal.topCenter' | 'normal.topRight' | 'normal.middleLeft' | 'normal.middleCenter' | 'normal.middleRight' | 'normal.bottomLeft' | 'normal.bottomCenter' | 'normal.bottomRight' | 'drawer.left' | 'drawer.right' | 'drawer.bottom' | 'custom' | 'image';
45
+ type Normal = UniPara & {
46
+ type: Sheet;
47
+ size?: Size;
48
+ };
49
+ type Edge = UniPara & {
50
+ type: Sheet;
51
+ size?: Size;
52
+ };
53
+ type Custom = UniPara & {
54
+ type: 'custom';
55
+ parent: $$.Args;
56
+ gravityPoint?: number;
57
+ };
58
+ type Image = Omit<UniPara, 'content'> & {
59
+ type: 'image';
60
+ src: string | string[];
61
+ };
62
+ namespace Bottom {
63
+ type Sizes = 'S' | 'R' | 'L';
64
+ type Input = UniPara & {
65
+ type: 'drawer.bottom';
66
+ size: Sizes;
67
+ sizeChanged?(size: Sizes): void;
68
+ baseStyles?: TagProperty.Para;
69
+ close_option?: CloseOptions & {
70
+ swipeDown?: boolean;
71
+ };
72
+ };
73
+ }
74
+ }
75
+ declare const Sheet: Sheet.Methods;
76
+ export { Sheet, Sheet as default };
@@ -0,0 +1 @@
1
+ import{b as d,c as R,d as j}from"../chunk-VY3566IV.js";import{jsx as i,jsxs as $}from"react/jsx-runtime";import{useState as z,useEffect as F,useRef as Q}from"react";import a from"@mingoo/jsmin";import{$$fromRoot as A,Config as H,useStore as T}from"../@utils";import x from"../atoms/Box";import Z from"../atoms/Img";import q from"../atoms/FAI";import ee from"../atoms/Flex";import X from"../mols/Column";import K from"../mols/Row";import J from"./Button";import te from"./Layout";import oe from"./Input";import{SheetClasses as l}from"../@styles/componentClasses";const c={mainSheetScrolls:0,subSheetLength:0,currentIndex:0,contents:{},addNewSheet:function(e){if(e=R(d({sheetGroups:e.sheetGroups||[],backgroundEffect:!0,overwrap:e.type=="custom",hold_state:!1,isOpen:!0},e),{sheetID:e.sheetID||a.uuid.gen(),close_option:d({pageTransit:!0,escapeKeyDown:!0,aroundClick:e.type=="custom"},e.close_option)}),this.contents[e.sheetID]){let r=T.get(e.sheetID);r&&r.refresh&&r.refresh(e,!0);return}this.contents[e.sheetID]={isOpen:!0,hold_state:!!e.hold_state,para:e,created_at:a.Time()};let t=T.get("Sheet-"+H.get().sessionUID);t&&t.refresh()},Wrapper:()=>{let[e,t]=z(a.uuid.gen());F(()=>{T.set({key:"Sheet-"+H.get().sessionUID,value:{refresh:()=>{t(a.uuid.gen())}}}),a(H.get().appRoot).addEvent({eventType:"keyup",callback:function(n){let{key:o,metaKey:h}=n;if(o=="Escape"||o==","&&h){let g=Object.values(c.contents).filter(v=>v.isOpen);if(!g.length)return;let s=g.reduce((v,w)=>v.created_at.value>w.created_at.value?v:w);D.close(s.para.sheetID,o)}}}).addEvent({eventType:"click",callback:function(n){var g;let o=Object.values(c.contents).filter(s=>s.para.type=="custom");!o.length||o.find(s=>{let{para:v}=s,w=v.parent,b=n.target,y=A(w)[0];return!!(w==b||y===b||a(y).find(b).length)})||(g=n.target)!=null&&g.closest("."+l("CustomSheet"))||o.forEach(s=>{var v;(v=s.para.close_option)!=null&&v.aroundClick&&D.close(s.para.sheetID)})}})},[]);let r=Object.entries(c.contents).map(([n,o])=>i(x,{id:"Sheet-"+n,children:i(c.Core,d({isOpen:o.isOpen},o.para),n)},n));return i(x,{className:["AMOTIFY_be",l("Wrapper")].join(" "),children:r})},Core:e=>{var E;let[t]=z(a.uuid.gen()),[r,n]=z(e),[o,h]=z(e.isOpen),{type:g,sheetID:s,openAfter:v,closeAfter:w}=r,b=!r.overwrap,y=c.Types[{"normal.topLeft":"Normal","normal.topCenter":"Normal","normal.topRight":"Normal","normal.middleLeft":"Normal","normal.middleCenter":"Normal","normal.middleRight":"Normal","normal.bottomLeft":"Normal","normal.bottomCenter":"Normal","normal.bottomRight":"Normal",image:"Normal","drawer.left":"Edge","drawer.right":"Edge","drawer.bottom":"Bottom",custom:"Custom"}[g]];F(()=>{T.set({key:s,value:{refresh:(u,p)=>{n(u),h(p!=null?p:!1)},resize:u=>{if(g=="drawer.bottom"){let p=T.get(t);p&&p.resize&&p.resize(u)}else(r.type.includes("normal")||r.type.includes("drawer"))&&n(R(d({},r),{size:u}))},close:u=>{c.contents[s].isOpen=!1,h(!1)},open:()=>{c.contents[s].isOpen=!0,h(!0)}}})}),F(()=>{a.scope(()=>{if(b&&r.backgroundEffect){if(c.subSheetLength=c.subSheetLength+(o?1:-1),o){let u=a("html");if(c.subSheetLength==1){let p=u[0].scrollTop;c.mainSheetScrolls=p}H.get().isPhone||(u.callback(()=>{A(".AMOTIFY_be_root").addClass(l("FixScroll")).callback(p=>{p[0].scrollTop=c.mainSheetScrolls}).await(40).addClass(l("Float"))})[0].scrollTop=0);return}c.subSheetLength==0&&(H.get().isPhone||A(".AMOTIFY_be_root").removeClass(l("Float")).await(251).removeClass(l("FixScroll")).callback(()=>{a("html")[0].scrollTop=c.mainSheetScrolls|0,A(".AMOTIFY_be_root")[0].scrollTop=0}))}}),a.scope(()=>{let u=A("#"+t);if(o){u.await(10).removeClass(l("Hide")).await(10).addClass(l("Open")).callback(()=>{c.contents[s].isOpen=!0,v&&v()});return}u.await(10).removeClass(l("Open")).await(251).addClass(l("Hide")).callback(()=>{if(!w||w(),c.contents[s].isOpen=!1,r.hold_state)return;delete c.contents[s];let p=T.get("Sheet-"+H.get().sessionUID);p&&p.refresh()})})},[o]),F(()=>{c.currentIndex++;let{close_option:u}=r;a.scope(()=>{if(!(u!=null&&u.parentBlur))return;let p=a(r.parent);p[0]&&p.addEvent({eventID:"SheetClosation-"+s,eventType:"mouseout",callback:()=>{p.removeEvent("SheetClosation-"+s),h(!1)}})})},[]);let[L,M]=g.split(".");return i(x,{className:[l("Wrap"),l("Tcate_"+L),l("Tpos_"+M),l("isNewSheet_"+b)].join(" "),width:1,height:0,ssAbsoluteCovered:!0,freeCSS:{zIndex:c.currentIndex+1},id:t,children:$(X,{className:l("Content"),gap:0,height:"viewHeight",overflow:"auto",transition:"middle",children:[!!b&&i(c.TapSensor,{sheetID:s,delegateAroundClick:(E=r.close_option)==null?void 0:E.aroundClick}),i(y,d({componentID:t},r))]})},t)},Types:{Normal:e=>{let P=e,{sheetID:t,sheetGroups:r,content:n,className:o="",type:h,size:g="R",freeCSS:s,openAfter:v,closeAfter:w,close_option:b,hold_state:y,overwrap:L,isOpen:M,backgroundEffect:E}=P,u=j(P,["sheetID","sheetGroups","content","className","type","size","freeCSS","openAfter","closeAfter","close_option","hold_state","overwrap","isOpen","backgroundEffect"]),[p,_]=h.split("."),C={},k=[];return _.match(/top/)?(k.push("top"),C.marginBottom="auto"):_.match(/middle/)?(k.push("center"),C.marginTop="auto",C.marginBottom="auto"):_.match(/bottom/)&&(k.push("bottom"),C.marginTop="auto"),_.match(/left/i)?(k.push("left"),C.marginRight="auto"):_.match(/center/i)?(k.push("center"),C.marginLeft="auto",C.marginRight="auto"):_.match(/right/i)&&(k.push("right"),C.marginLeft="auto"),i(x,R(d(d({className:[l("BB"),o].join(" "),padding:1,transition:"long",opacity:"trans"},C),u),{freeCSS:d({width:{S:"26rem",R:"36rem",L:"44rem","2L":"60rem","3L":"72rem",MAX:"100vw"}[g],maxWidth:"96vw",transformOrigin:k.join(" ")},s),children:a.is.function(n)?i(n,{}):n}))},Edge:e=>{let p=e,{sheetID:t,sheetGroups:r,type:n,content:o,className:h="",size:g="R",freeCSS:s,openAfter:v,closeAfter:w,close_option:b,hold_state:y,overwrap:L,isOpen:M,backgroundEffect:E}=p,u=j(p,["sheetID","sheetGroups","type","content","className","size","freeCSS","openAfter","closeAfter","close_option","hold_state","overwrap","isOpen","backgroundEffect"]);return i(x,R(d(d({opacity:"trans",transition:"long",position:"relative",backgroundColor:"layer.1",flexSizing:"none",minHeight:"viewHeight",boxShadow:"3.remark",className:[l("BB"),h].join(" ")},n=="drawer.right"?{marginLeft:"auto"}:n=="drawer.left"?{marginRight:"auto"}:{}),u),{freeCSS:d({width:{S:"20rem",R:"27rem",L:"32rem","2L":"40rem","3L":"58rem",MAX:"100vw"}[g],maxWidth:"96vw"},s),children:a.is.function(o)?i(o,{}):o}))},Bottom:e=>{let I=e,{componentID:t,sheetID:r,sheetGroups:n,content:o,size:h="R",sizeChanged:g,baseStyles:s,openAfter:v,closeAfter:w,close_option:{swipeDown:b=!0}={},hold_state:y,overwrap:L,isOpen:M,backgroundEffect:E}=I,u=j(I,["componentID","sheetID","sheetGroups","content","size","sizeChanged","baseStyles","openAfter","closeAfter","close_option","hold_state","overwrap","isOpen","backgroundEffect"]),p=a.getScreenSize(),_=[0,.2,.6,.95],C={ZERO:0,S:1,R:2,L:3},[k,P]=z(h),[O,W]=z({process:!1,processStart:0,originY:0,originValue:0,viewHeight:0,value:_[C[h]]});T.update({key:t,value:{val_edit:O,resize:S=>{let m=_[C[S]];W(R(d({},O),{value:m})),P(S)}}});const N={Start:S=>{a(document).addEvent({eventID:"BottomSheetMouseMove",eventType:"mousemove",callback:N.Move}).addEvent({eventID:"BottomSheetTouchMove",eventType:"touchmove",callback:N.Move}).addEvent({eventID:"BottomSheetMouseUp",eventType:"mouseup",callback:N.End}).addEvent({eventID:"BottomSheetTouchEnd",eventType:"touchend",callback:N.End});let m=a.getCursor(S),f=R(d({},O),{process:!0,processStart:new Date().getTime(),originY:m.y,originValue:O.value,viewHeight:a.getScreenSize().height});T.update({key:t,value:{val_edit:f}}),W(f)},Move:S=>{var U;let m=(U=T.get(t))==null?void 0:U.val_edit;if(!m.process)return;let Y=(a.getCursor(S).y-m.originY)/m.viewHeight,B=m.originValue-Y;if(B>.95)B=.95+(B-.95)*.5;else if(B<.2){let V=.2-B;V-=.1,B=.1+(.1-V)*.5}W(R(d({},m),{value:B}))},End:S=>{var B;let m=(B=T.get(t))==null?void 0:B.val_edit;if(!m.process)return;a(document).removeEvent(["BottomSheetMouseMove","BottomSheetTouchMove","BottomSheetMouseUp","BottomSheetTouchEnd"]);let f=0;if(m.value<.1||(m.value<.5?f=1:m.value>.75?f=3:f=2),new Date().getTime()-m.processStart<300){let U=a.getCursor(S).y-m.originY;if(Math.abs(U)>=20){let V=+(U<0)*2-1;f+=V,f=Math.min(Math.max(f,0),_.length-1)}}f==0&&(b||(f=1)),P(["ZERO","S","R","L"][f]),W(R(d({},m),{value:_[f],process:!1}))}},G=Q(!1);return F(()=>{G.current?k=="ZERO"?b&&D.close(r):setTimeout(()=>{e.sizeChanged&&e.sizeChanged(k)},250):G.current=!0},[k]),i(x,{className:l("BB"),margin:[0,"auto"],marginTop:"auto",opacity:"trans",width:1,transition:"long",freeCSS:d({maxWidth:12*60,height:p.height*O.value},O.process?{transition:"0s"}:{}),children:$(X,R(d({gap:0,flexSizing:"none",borderTopLeftRadius:"1.tone.primary",borderTopRightRadius:"1.tone.primary",border:!0,borderBottom:"unset",boxShadow:"3.remark",position:"relative",overflow:"hidden",height:1},s),{children:[i(K.Separate,{padding:"1/2",backgroundColor:"layer.1",position:"relative",freeCSS:{userSelect:"none"},children:i(K.Center,{flexSizing:0,padding:"2/3",onMouseDown:N.Start,onTouchStart:N.Start,ssPushable:!0,isRounded:!0,freeCSS:{cursor:"grab",userSelect:"none"},children:i(x,{unitWidth:6,unitHeight:"1/2",backgroundColor:"layer.4",isRounded:!0,className:l("DragBar")})})}),i(x,R(d({backgroundColor:"layer.1",flexSizing:0,overflow:"auto"},u),{children:a.is.function(o)?i(o,{}):o}))]}))})},Custom:e=>{let G=e,{sheetID:t,sheetGroups:r,parent:n,gravityPoint:o=22,content:h,close_option:g,hold_state:s,openAfter:v,closeAfter:w,overwrap:b,isOpen:y,backgroundEffect:L}=G,M=j(G,["sheetID","sheetGroups","parent","gravityPoint","content","close_option","hold_state","openAfter","closeAfter","overwrap","isOpen","backgroundEffect"]),[E]=z(a.uuid.gen()),u=a.is.element(n)?a(n):a.is.jsmin(n)?n:A(n),p='[data-sheet-id="'+E+'"]',_='[data-sheet-content="'+E+'"]';o=o;let C=o%5||5,k=Math.ceil(o/5);const P=()=>{let I={},{top:S,right:m,bottom:f,left:Y,height:B,width:U}=u.position();return[1,2].includes(C)?I.left=Y:C==3?I.left=Y+U/2:[4,5].includes(C)&&(I.left=m),o<=10?I.top=S:o<=15?I.top=S+B/2:o<=25&&(I.top=f),I};let[O,W]=z(P());const N=()=>{let I=A(p).position(),S=A(_).position(),m=a.getScreenSize(),f=d({},O);return S.top<0&&(f.top=I.top-S.top),S.left<0&&(f.left=I.left-S.left),S.right>m.width&&(f.left=I.left-(S.right-m.width)),S.bottom>m.height&&(f.top=I.top-(S.bottom-m.height)),f};return F(()=>{A(p).await(10).addClass(l("Open")).await(250).callback(()=>{W(N())}),T.update({key:"customSheet-"+e.sheetID,value:{reposition:()=>{setTimeout(()=>{W(N())},200)}}})},[]),u[0]?i(x,{className:[l("BB"),l("CustomSheet")].join(" "),"data-sheet-id":E,transition:"long",opacity:"trans",position:"absolute",width:0,height:0,flexCenter:!0,freeCSS:O,children:i(ee,{className:[l("GPT"),l("GPT_"+o),l("Col_"+C),l("Row_"+k)].join(" "),position:"absolute",children:i(x,R(d({flexSizing:"none","data-sheet-content":E,maxHeight:"viewHeight",overflow:"auto",padding:1},M),{freeCSS:d({maxWidth:"98vw"},M.freeCSS),children:a.is.function(h)?i(h,{}):h}))})}):null}},TapSensor:e=>i(x,{className:l("TapSensor"),children:i(J.Button.Plain,{className:l("TapContent"),onClick:()=>{var t;(t=e.delegateAroundClick)!=null&&t&&D.close(e.sheetID)},freeCSS:{cursor:"default",pointerEvents:"all"}})})},D={Wrapper:()=>i(c.Wrapper,{}),open:e=>{if(e.sheetID=(e.sheetID||"").replace(/\./g,"-"),e.type=="image"){let r=e.sheetID||a.uuid.gen(),t=e,{type:n,src:o}=t,h=j(t,["type","src"]);D.open(R(d({type:"normal.topCenter",backgroundColor:"trans"},h),{sheetID:r,freeCSS:{maxWidth:"96vw",transformOrigin:"top"},content:()=>{let[g]=z(a.flatArray(o)),[s,v]=z(0),w=[],b=[];return g.forEach((y,L)=>{w.push({value:L,label:i(Z,{src:a.flatArray(y)[0],width:"auto",height:1,freeCSS:{maxWidth:12*6,maxHeight:12*3}})}),b.push(i(Z,{width:1,height:"auto",src:a.flatArray(y)[0]}))}),$(X,{gap:0,children:[$(K.Separate,{gap:2,padding:1,backgroundColor:"layer.1",borderTopLeftRadius:"1.tone.primary",borderTopRightRadius:"1.tone.primary",children:[i(oe.Radio,{tone:"border",icon:!1,value:s,override:"force",horizontalAlign:"center",onUpdateValidValue:({value:y})=>{v(y[0])},cellStyles:{borderWidth:2,padding:"1/3"},options:w}),$(J.Button.Border.R,{color:"cloud",isRounded:!0,onClick:()=>{D.close(r)},children:["\u9589\u3058\u308B ",i(q.Times,{})]})]}),i(te.SwipeView,{slideIndex:s,options:{loop:g.length>1,onSlideCallback:y=>{v(y)}},slides:b,wrapper:y=>i(x,{borderBottomLeftRadius:"1.tone.primary",borderBottomRightRadius:"1.tone.primary",children:y})})]})}}));return}c.addNewSheet(e)},refresh:(e,t)=>{e.sheetID=(e.sheetID||"").replace(/\./g,"-");let r=T.get(e.sheetID);r&&r.refresh&&r.refresh(e,t)},resize:e=>{e.sheetID=(e.sheetID||"").replace(/\./g,"-");let t=T.get(e.sheetID);t&&t.resize&&t.resize(e.size)},reposition:e=>{let t=T.get("customSheet-"+e);t&&t.reposition&&t.reposition()},close:function(e,t,r){var o;e=e==null?void 0:e.replace(/\./g,"-");let n=c.contents[e];if(n&&!(t=="Escape"&&!((o=n.para.close_option)!=null&&o.escapeKeyDown))){let{para:h}=n,{sheetID:g}=h,s=T.get(g);s&&s.close&&s.close(r)}},closeGroup:e=>{var t;e=(e||"").replace(/\./g,"-");for(let[r,n]of Object.entries(c.contents))(t=n.para.sheetGroups)!=null&&t.includes(e)&&D.close(r)},closeAll:e=>{var t;for(let[r,n]of Object.entries(c.contents))e&&((t=n.para.close_option)==null?void 0:t.pageTransit)==!1||D.close(r,"pageTransit",!0)},Comps:{Body:e=>i(x,d({className:l("BaseBody"),backgroundColor:"layer.1",borderRadius:"1.tone.primary",position:"relative",boxShadow:"3.remark",transition:"long"},e))}};export{D as Sheet,D as default};
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ import { ReactElement } from '../@declaration';
3
+ import Box from '../atoms/Box';
4
+ declare namespace Snackbar {
5
+ type Methods = {
6
+ add(props: AddInput): Snackbar.Methods;
7
+ remove(snackID: string): Snackbar.Methods;
8
+ Wrapper(): JSX.Element;
9
+ };
10
+ type AddInput = Omit<Box.Input, 'children'> & {
11
+ children?: ReactElement | {
12
+ (): JSX.Element;
13
+ };
14
+ customChildren?: {
15
+ (para: {
16
+ close(): void;
17
+ }): JSX.Element;
18
+ };
19
+ snackID?: string;
20
+ secondsToClose?: number;
21
+ };
22
+ }
23
+ declare const Snackbar: Snackbar.Methods;
24
+ export { Snackbar, Snackbar as default };
@@ -0,0 +1 @@
1
+ import{b as m,c,d as C}from"../chunk-VY3566IV.js";import{Fragment as _,jsx as o,jsxs as M}from"react/jsx-runtime";import{createElement as O}from"react";import s from"@mingoo/jsmin";import{Config as S,useStore as p,$$fromRoot as y}from"../@utils";import{useState as f,useEffect as D}from"react";import x from"../atoms/Box";import w from"../atoms/Flex";import E from"../atoms/FAI";import R from"../mols/Row";import A from"./Button";import{SnackbarClasses as k}from"../@styles/componentClasses";const u={add:function(i){return p.get("Snackbar-"+S.get().sessionUID).add(i),this},remove:function(i){return p.get("Snackbar-"+S.get().sessionUID).remove(i),this},Wrapper:()=>o(B.Wrapper,{})},B={Cell:i=>{let b=i,{snackID:l,secondsToClose:n=10,componentID:I=s.uuid.gen(),children:d,customChildren:e}=b,r=C(b,["snackID","secondsToClose","componentID","children","customChildren"]),[t]=f(I),[a,h]=f(!1);D(()=>{let v=y('[data-component-id="'+t+'"]');setTimeout(()=>{v.addClass(k("FadeIn"))},10),p.set({key:"Snackbar-"+l,value:{remove:()=>{v.addClass(k("FadeOut"))}}})},[]),D(()=>{s.interval.clear("Snackbar-"+t),a||setTimeout(()=>{s.interval.standBy("Snackbar-"+t,n*1e3,()=>{a||u.remove(l)})},100)},[a]);let g=o(_,{});return e?g=o(e,{close:()=>{u.remove(l)}}):g=M(R.Separate,{verticalAlign:"top",children:[o(x,{padding:["1/4",0],flexSizing:0,children:s.is.function(d)?o(d,{}):d}),o(A.Button.Clear.R,{color:"layer",backgroundColor:"layer.4.opa.low",fontColor:"white",ssSphere:2.5,onClick:()=>{u.remove(l)},children:o(E.Times,{})})]}),o(x,c(m({className:k("Cell"),opacity:"trans",width:1,padding:"2/3",marginBottom:1,borderRadius:"1.tone.primary",fontColor:"white",boxShadow:"1.remark",backgroundColor:"dark",transition:"middle",componentID:t,onMouseOver:()=>{h(!0)},onMouseOut:()=>{h(!1)}},r),{children:g}))},Wrapper:()=>{let[i,l]=f(s.uuid.gen()),[n,I]=f([]);p.set({key:"Snackbar-"+S.get().sessionUID,value:{add:e=>{e.snackID=e.snackID||s.uuid.gen();let r=n.findIndex(t=>t.snackID==e.snackID);if(r==-1)n.unshift(c(m({},e),{snackID:e.snackID}));else{let t=[...n];t[r]=c(m({},e),{snackID:e.snackID}),n=t}l(s.uuid.gen())},remove:e=>{let r=p.get("Snackbar-"+e);r&&r.remove&&(r.remove(),setTimeout(()=>{let t=n.findIndex(a=>a.snackID==e);if(t!=-1){let a=[...n];a.splice(t,1),I(a)}},210))}}});let d=n.map(e=>O(B.Cell,c(m({},e),{key:e.snackID})));return o(w,{className:["AMOTIFY_be",k("Wrapper")].join(" "),position:"fixed",right:0,bottom:0,paddingLeft:0,paddingRight:1,paddingBottom:"safeAreaBottom",verticalAlign:"bottom",children:d,overflow:"auto",UnderBreakPointStyles:{left:0,paddingLeft:1,width:"auto"}})}};export{u as Snackbar,u as default};