amotify 0.0.7 → 0.0.9

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 (260) hide show
  1. package/{dist/@types/_.d.ts → @types/_.tsx} +3 -3
  2. package/{src/@types → @types}/amot.tsx +0 -1
  3. package/{src/@types → @types}/fn.tsx +1 -2
  4. package/{src/@types → @types}/index.tsx +1 -5
  5. package/{src/@types → @types}/jsminAmotifyExtension.tsx +1 -2
  6. package/dist/amotify.js +1 -0
  7. package/{public → dist}/amotify.min.css +22 -22
  8. package/package.json +4 -9
  9. package/src/{Atoms/@export.tsx → @atoms.tsx} +3 -3
  10. package/src/@functions.tsx +29 -0
  11. package/src/{Global/@export.tsx → @global.tsx} +2 -2
  12. package/src/{Molecules/@export.tsx → @molecules.tsx} +3 -3
  13. package/src/@organisms.tsx +5 -0
  14. package/src/@styles/@app.scss +2 -2
  15. package/src/@styles/UniStyling.scss +3 -3
  16. package/src/@styles/init.scss +1 -1
  17. package/src/@styles/{@variables/styleSet.scss → styleSet.scss} +1 -1
  18. package/src/{Templates/@export.tsx → @templates.tsx} +1 -1
  19. package/src/{Atoms → atoms}/FAIcon/style.module.scss +1 -2
  20. package/src/{Atoms → atoms}/Logo/parts.tsx +0 -1
  21. package/src/{Atoms → atoms}/Logo/style.module.scss +1 -2
  22. package/src/{Atoms → atoms}/Various/style.module.scss +2 -1
  23. package/src/{Functions → functions}/Button/style.module.scss +2 -1
  24. package/src/{Functions → functions}/Cropper/parts.tsx +1 -1
  25. package/src/{Functions → functions}/Cropper/style.module.scss +1 -1
  26. package/src/{Functions → functions}/Effects/style.module.scss +1 -1
  27. package/src/{Functions → functions}/Input/Chips/Selector.tsx +1 -2
  28. package/src/{Functions → functions}/Input/Chips/_.tsx +1 -5
  29. package/src/{Functions → functions}/Input/Chips/style.module.scss +1 -1
  30. package/src/{Functions → functions}/Input/DigitCharacters.tsx +1 -1
  31. package/src/{Functions → functions}/Input/File/_.tsx +1 -1
  32. package/src/{Functions → functions}/Input/File/style.module.scss +1 -1
  33. package/src/{Functions → functions}/Input/List/_.tsx +1 -1
  34. package/src/{Functions → functions}/Input/List/style.module.scss +1 -1
  35. package/src/{Functions → functions}/Input/Segmented/style.module.scss +1 -1
  36. package/src/{Functions → functions}/Input/Select/_.tsx +1 -1
  37. package/src/{Functions → functions}/Input/Select/style.module.scss +1 -1
  38. package/src/{Functions → functions}/Input/Slider/_.tsx +1 -1
  39. package/src/{Functions → functions}/Input/Slider/style.module.scss +1 -1
  40. package/src/{Functions → functions}/Input/Switch/_.tsx +1 -1
  41. package/src/{Functions → functions}/Input/Switch/style.module.scss +1 -1
  42. package/src/{Functions → functions}/Input/Time/Picker.tsx +1 -1
  43. package/src/{Functions → functions}/Input/Time/_.tsx +2 -2
  44. package/src/{Functions → functions}/Input/Time/style.module.scss +1 -1
  45. package/src/{Functions → functions}/Input/_.tsx +1 -1
  46. package/src/{Functions → functions}/Input/core.tsx +1 -1
  47. package/src/{Functions → functions}/Input/style.module.scss +1 -1
  48. package/src/{Functions → functions}/Inputs/style.module.scss +1 -1
  49. package/src/{Functions → functions}/Inputs/text.tsx +3 -16
  50. package/src/functions/Inputs/types.d.ts +13 -0
  51. package/src/{Functions → functions}/Layout/PageNotFound.tsx +2 -4
  52. package/src/{Functions → functions}/Layout/PageRouter.tsx +1 -1
  53. package/src/{Functions → functions}/Layout/PageViewController/parts.tsx +3 -1
  54. package/src/{Functions → functions}/Layout/RootViewController/parts.tsx +3 -5
  55. package/src/{Functions → functions}/Layout/RootViewController/style.module.scss +1 -1
  56. package/src/{Functions → functions}/Layout/SwipeView/parts.tsx +0 -1
  57. package/src/{Functions → functions}/Layout/SwipeView/style.module.scss +1 -1
  58. package/src/{Functions → functions}/Layout/TabBar.tsx +1 -1
  59. package/src/{Functions → functions}/Loader/style.module.scss +1 -1
  60. package/src/{Functions → functions}/Sheet/parts.tsx +1 -1
  61. package/src/{Functions → functions}/Sheet/style.module.scss +1 -1
  62. package/src/{Functions → functions}/SnackBar/parts.tsx +1 -1
  63. package/src/{Functions → functions}/SnackBar/style.module.scss +1 -1
  64. package/src/{Functions → functions}/Table/Data/parts.tsx +1 -1
  65. package/src/{Functions → functions}/Table/Drag/parts.tsx +1 -1
  66. package/src/{Functions → functions}/Table/Normal/parts.tsx +1 -2
  67. package/src/{Functions → functions}/Table/_.tsx +1 -2
  68. package/src/{Functions → functions}/Table/style.module.scss +2 -1
  69. package/src/{Functions → functions}/Tooltips/parts.tsx +1 -1
  70. package/src/{Global → global}/styleConverter.tsx +1 -5
  71. package/src/launch.tsx +5 -5
  72. package/src/{Molecules → molecules}/Accordion/style.module.scss +1 -1
  73. package/src/{Molecules → molecules}/LinkifyText/parts.tsx +1 -1
  74. package/src/{Organisms → organisms}/DisplayStyleInput/darkmode.tsx +1 -1
  75. package/src/{Organisms → organisms}/DisplayStyleInput/themeColor.tsx +1 -1
  76. package/src/{Templates → templates}/PlayGround/parts.tsx +26 -39
  77. package/src/{Templates → templates}/PlayGround/style.module.scss +1 -1
  78. package/tsconfig.json +20 -24
  79. package/webpack.config.js +11 -9
  80. package/dist/@jsminAmotifyExtension/_.d.ts +0 -4
  81. package/dist/@jsminAmotifyExtension/_.js +0 -6
  82. package/dist/@jsminAmotifyExtension/fetch.d.ts +0 -9
  83. package/dist/@jsminAmotifyExtension/fetch.js +0 -199
  84. package/dist/@jsminAmotifyExtension/formCollect.d.ts +0 -1
  85. package/dist/@jsminAmotifyExtension/formCollect.js +0 -137
  86. package/dist/@jsminAmotifyExtension/spreadSheet.d.ts +0 -4
  87. package/dist/@jsminAmotifyExtension/spreadSheet.js +0 -314
  88. package/dist/@jsminAmotifyExtension/variables.d.ts +0 -0
  89. package/dist/@jsminAmotifyExtension/variables.js +0 -186
  90. package/dist/@types/_.js +0 -8
  91. package/dist/@types/amot.d.ts +0 -260
  92. package/dist/@types/amot.js +0 -2
  93. package/dist/@types/fn.d.ts +0 -1040
  94. package/dist/@types/fn.js +0 -2
  95. package/dist/@types/index.d.ts +0 -62
  96. package/dist/@types/index.js +0 -2
  97. package/dist/@types/jsminAmotifyExtension.d.ts +0 -134
  98. package/dist/@types/jsminAmotifyExtension.js +0 -2
  99. package/dist/@types/module.d.ts +0 -2
  100. package/dist/@types/module.js +0 -1
  101. package/dist/@types/state.d.ts +0 -145
  102. package/dist/@types/state.js +0 -2
  103. package/dist/Atoms/@export.d.ts +0 -4
  104. package/dist/Atoms/@export.js +0 -16
  105. package/dist/Atoms/FAIcon/parts.d.ts +0 -2
  106. package/dist/Atoms/FAIcon/parts.js +0 -152
  107. package/dist/Atoms/Logo/parts.d.ts +0 -1
  108. package/dist/Atoms/Logo/parts.js +0 -154
  109. package/dist/Atoms/Various/parts.d.ts +0 -9
  110. package/dist/Atoms/Various/parts.js +0 -113
  111. package/dist/Functions/@export.d.ts +0 -12
  112. package/dist/Functions/@export.js +0 -25
  113. package/dist/Functions/Button/_.d.ts +0 -1
  114. package/dist/Functions/Button/_.js +0 -270
  115. package/dist/Functions/Cropper/parts.d.ts +0 -1
  116. package/dist/Functions/Cropper/parts.js +0 -783
  117. package/dist/Functions/Effects/Fade.d.ts +0 -1
  118. package/dist/Functions/Effects/Fade.js +0 -82
  119. package/dist/Functions/Effects/Ripple.d.ts +0 -1
  120. package/dist/Functions/Effects/Ripple.js +0 -107
  121. package/dist/Functions/Effects/_.d.ts +0 -3
  122. package/dist/Functions/Effects/_.js +0 -43
  123. package/dist/Functions/Input/Chips/Selector.d.ts +0 -1
  124. package/dist/Functions/Input/Chips/Selector.js +0 -356
  125. package/dist/Functions/Input/Chips/_.d.ts +0 -2
  126. package/dist/Functions/Input/Chips/_.js +0 -218
  127. package/dist/Functions/Input/DigitCharacters.d.ts +0 -1
  128. package/dist/Functions/Input/DigitCharacters.js +0 -178
  129. package/dist/Functions/Input/File/_.d.ts +0 -2
  130. package/dist/Functions/Input/File/_.js +0 -458
  131. package/dist/Functions/Input/Hidden.d.ts +0 -1
  132. package/dist/Functions/Input/Hidden.js +0 -30
  133. package/dist/Functions/Input/List/_.d.ts +0 -1
  134. package/dist/Functions/Input/List/_.js +0 -232
  135. package/dist/Functions/Input/Segmented/_.d.ts +0 -1
  136. package/dist/Functions/Input/Segmented/_.js +0 -111
  137. package/dist/Functions/Input/Select/_.d.ts +0 -1
  138. package/dist/Functions/Input/Select/_.js +0 -154
  139. package/dist/Functions/Input/Slider/_.d.ts +0 -1
  140. package/dist/Functions/Input/Slider/_.js +0 -308
  141. package/dist/Functions/Input/Switch/_.d.ts +0 -1
  142. package/dist/Functions/Input/Switch/_.js +0 -120
  143. package/dist/Functions/Input/Text.d.ts +0 -5
  144. package/dist/Functions/Input/Text.js +0 -340
  145. package/dist/Functions/Input/TextArea.d.ts +0 -1
  146. package/dist/Functions/Input/TextArea.js +0 -98
  147. package/dist/Functions/Input/Time/Picker.d.ts +0 -1
  148. package/dist/Functions/Input/Time/Picker.js +0 -581
  149. package/dist/Functions/Input/Time/_.d.ts +0 -2
  150. package/dist/Functions/Input/Time/_.js +0 -567
  151. package/dist/Functions/Input/_.d.ts +0 -5
  152. package/dist/Functions/Input/_.js +0 -446
  153. package/dist/Functions/Input/core.d.ts +0 -34
  154. package/dist/Functions/Input/core.js +0 -324
  155. package/dist/Functions/Inputs/_.d.ts +0 -3
  156. package/dist/Functions/Inputs/_.js +0 -7
  157. package/dist/Functions/Inputs/text.d.ts +0 -12
  158. package/dist/Functions/Inputs/text.js +0 -46
  159. package/dist/Functions/Layout/PageNotFound.d.ts +0 -1
  160. package/dist/Functions/Layout/PageNotFound.js +0 -30
  161. package/dist/Functions/Layout/PageRouter.d.ts +0 -2
  162. package/dist/Functions/Layout/PageRouter.js +0 -65
  163. package/dist/Functions/Layout/PageViewController/parts.d.ts +0 -1
  164. package/dist/Functions/Layout/PageViewController/parts.js +0 -31
  165. package/dist/Functions/Layout/Plate.d.ts +0 -1
  166. package/dist/Functions/Layout/Plate.js +0 -39
  167. package/dist/Functions/Layout/RootViewController/parts.d.ts +0 -1
  168. package/dist/Functions/Layout/RootViewController/parts.js +0 -202
  169. package/dist/Functions/Layout/SwipeView/parts.d.ts +0 -2
  170. package/dist/Functions/Layout/SwipeView/parts.js +0 -319
  171. package/dist/Functions/Layout/TabBar.d.ts +0 -1
  172. package/dist/Functions/Layout/TabBar.js +0 -49
  173. package/dist/Functions/Layout/_.d.ts +0 -2
  174. package/dist/Functions/Layout/_.js +0 -20
  175. package/dist/Functions/Loader/corner.d.ts +0 -1
  176. package/dist/Functions/Loader/corner.js +0 -59
  177. package/dist/Functions/Loader/mini.d.ts +0 -33
  178. package/dist/Functions/Loader/mini.js +0 -126
  179. package/dist/Functions/Loader/parts.d.ts +0 -3
  180. package/dist/Functions/Loader/parts.js +0 -108
  181. package/dist/Functions/Loader/top.d.ts +0 -1
  182. package/dist/Functions/Loader/top.js +0 -69
  183. package/dist/Functions/Sheet/parts.d.ts +0 -2
  184. package/dist/Functions/Sheet/parts.js +0 -724
  185. package/dist/Functions/SnackBar/parts.d.ts +0 -2
  186. package/dist/Functions/SnackBar/parts.js +0 -171
  187. package/dist/Functions/Table/Data/parts.d.ts +0 -3
  188. package/dist/Functions/Table/Data/parts.js +0 -629
  189. package/dist/Functions/Table/Drag/parts.d.ts +0 -1
  190. package/dist/Functions/Table/Drag/parts.js +0 -359
  191. package/dist/Functions/Table/Normal/parts.d.ts +0 -1
  192. package/dist/Functions/Table/Normal/parts.js +0 -92
  193. package/dist/Functions/Table/_.d.ts +0 -9
  194. package/dist/Functions/Table/_.js +0 -153
  195. package/dist/Functions/Tooltips/parts.d.ts +0 -2
  196. package/dist/Functions/Tooltips/parts.js +0 -71
  197. package/dist/Global/@export.d.ts +0 -12
  198. package/dist/Global/@export.js +0 -198
  199. package/dist/Global/LaunchReactApplication.d.ts +0 -1
  200. package/dist/Global/LaunchReactApplication.js +0 -48
  201. package/dist/Global/styleConverter.d.ts +0 -2
  202. package/dist/Global/styleConverter.js +0 -349
  203. package/dist/Molecules/@export.d.ts +0 -21
  204. package/dist/Molecules/@export.js +0 -41
  205. package/dist/Molecules/Accordion/parts.d.ts +0 -2
  206. package/dist/Molecules/Accordion/parts.js +0 -165
  207. package/dist/Molecules/LinkifyText/parts.d.ts +0 -1
  208. package/dist/Molecules/LinkifyText/parts.js +0 -39
  209. package/dist/Molecules/List.d.ts +0 -1
  210. package/dist/Molecules/List.js +0 -35
  211. package/dist/Organisms/@export.d.ts +0 -2
  212. package/dist/Organisms/@export.js +0 -5
  213. package/dist/Organisms/DisplayStyleInput/_.d.ts +0 -1
  214. package/dist/Organisms/DisplayStyleInput/_.js +0 -15
  215. package/dist/Organisms/DisplayStyleInput/darkmode.d.ts +0 -1
  216. package/dist/Organisms/DisplayStyleInput/darkmode.js +0 -77
  217. package/dist/Organisms/DisplayStyleInput/themeColor.d.ts +0 -27
  218. package/dist/Organisms/DisplayStyleInput/themeColor.js +0 -185
  219. package/dist/Templates/@export.d.ts +0 -2
  220. package/dist/Templates/@export.js +0 -5
  221. package/dist/Templates/PlayGround/parts.d.ts +0 -1
  222. package/dist/Templates/PlayGround/parts.js +0 -55
  223. package/dist/config.d.ts +0 -16
  224. package/dist/config.js +0 -171
  225. package/dist/launch.d.ts +0 -9
  226. package/dist/launch.js +0 -46
  227. package/dist/preload.d.ts +0 -1
  228. package/dist/preload.js +0 -73
  229. package/public/amotify.js +0 -1
  230. package/src/@types/_.tsx +0 -6
  231. package/src/Functions/@export.tsx +0 -29
  232. package/src/Functions/Inputs/types.d.ts +0 -1
  233. package/src/Global/exe.tsx +0 -0
  234. package/src/Organisms/@export.tsx +0 -5
  235. /package/{src/@types → @types}/module.tsx +0 -0
  236. /package/{src/@types → @types}/state.tsx +0 -0
  237. /package/src/@styles/{@variables/customProps.scss → props.scss} +0 -0
  238. /package/src/@styles/{@variables/themeColor.scss → themeColor.scss} +0 -0
  239. /package/src/@styles/{@variables/var.scss → var.scss} +0 -0
  240. /package/src/{Atoms → atoms}/FAIcon/parts.tsx +0 -0
  241. /package/src/{Atoms → atoms}/Various/parts.tsx +0 -0
  242. /package/src/{Functions → functions}/Button/_.tsx +0 -0
  243. /package/src/{Functions → functions}/Effects/Fade.tsx +0 -0
  244. /package/src/{Functions → functions}/Effects/Ripple.tsx +0 -0
  245. /package/src/{Functions → functions}/Effects/_.tsx +0 -0
  246. /package/src/{Functions → functions}/Input/Hidden.tsx +0 -0
  247. /package/src/{Functions → functions}/Input/Segmented/_.tsx +0 -0
  248. /package/src/{Functions → functions}/Input/Text.tsx +0 -0
  249. /package/src/{Functions → functions}/Input/TextArea.tsx +0 -0
  250. /package/src/{Functions → functions}/Inputs/_.tsx +0 -0
  251. /package/src/{Functions → functions}/Layout/Plate.tsx +0 -0
  252. /package/src/{Functions → functions}/Layout/_.tsx +0 -0
  253. /package/src/{Functions → functions}/Loader/corner.tsx +0 -0
  254. /package/src/{Functions → functions}/Loader/mini.tsx +0 -0
  255. /package/src/{Functions → functions}/Loader/parts.tsx +0 -0
  256. /package/src/{Functions → functions}/Loader/top.tsx +0 -0
  257. /package/src/{Global → global}/LaunchReactApplication.tsx +0 -0
  258. /package/src/{Molecules → molecules}/Accordion/parts.tsx +0 -0
  259. /package/src/{Molecules → molecules}/List.tsx +0 -0
  260. /package/src/{Organisms → organisms}/DisplayStyleInput/_.tsx +0 -0
@@ -1,1040 +0,0 @@
1
- /// <reference types="react" />
2
- export {};
3
- declare global {
4
- namespace amotify {
5
- namespace fn {
6
- namespace Layout {
7
- type Methods = {
8
- PageViewController: FNC<PageViewController.Params>;
9
- TabBar: FNC<TabBar.Params>;
10
- Plate: FNC<Plate.Params>;
11
- SwipeView: FNC<SwipeView.Params>;
12
- PageRouter: FNC<PageRouter.RouterProps>;
13
- PageNotFound: FNC<{}>;
14
- RootViewController: RootViewController.Methods;
15
- };
16
- namespace PageViewController {
17
- type Params = {
18
- viewIndex: number;
19
- views: ReactElement[];
20
- wrapper?: {
21
- (view: ReactElement): ReactElement;
22
- };
23
- };
24
- }
25
- namespace TabBar {
26
- type Params = {
27
- tabIndex: number;
28
- tabs: ReactElement[];
29
- onTabChange?: {
30
- (index: number): void;
31
- };
32
- componentDidMount?: {
33
- (): void;
34
- };
35
- } & amotifyBasicElement;
36
- }
37
- namespace Plate {
38
- type Params = {
39
- size?: 'XS' | 'S' | 'R' | 'L' | 'XL' | 'MAX';
40
- } & atoms.BoxInput;
41
- }
42
- namespace SwipeView {
43
- type Params = amotifyBasicElement & {
44
- slideIndex?: number;
45
- slides: ReactElement[];
46
- wrapper?: {
47
- (slide: ReactElement): ReactElement;
48
- };
49
- options?: {
50
- onSlideCallback?: {
51
- (index: number): void;
52
- };
53
- visibilitySurroundSlide?: boolean;
54
- autoSwipeSeconds?: number;
55
- loop?: boolean;
56
- disableMousedrag?: boolean;
57
- disableTouch?: boolean;
58
- };
59
- };
60
- }
61
- namespace PageRouter {
62
- type RoutesProps = {
63
- path: string;
64
- content: ReactElement;
65
- };
66
- type Callbacks = {
67
- beforeCallBack?: {
68
- (pathName: string): void;
69
- };
70
- afterCallBack?: {
71
- (pathName: string): void;
72
- };
73
- afterFirstCallBack?: {
74
- (pathName: string): void;
75
- };
76
- };
77
- type RoutesSwitchProps = {
78
- routes: RoutesProps[];
79
- } & Callbacks;
80
- type RouterProps = {
81
- pages: RoutesProps[];
82
- } & Callbacks;
83
- }
84
- namespace RootViewController {
85
- type Methods = {
86
- Base: FNC<RootViewController.BaseParams>;
87
- TopNavigation: FNC<amotify.atoms.FlexProps>;
88
- SideNavigation: FNC<amotify.atoms.FlexProps & {
89
- baseStyles?: amotifyUniStyleParams;
90
- }>;
91
- FooterNavigation: FNC<amotify.atoms.FlexProps & {
92
- baseStyles?: amotifyUniStyleParams;
93
- }>;
94
- Comps: {
95
- Button: FNC<ButtonParams>;
96
- Title: FNC<atoms.BoxInput>;
97
- Bar: FNC<atoms.BoxInput>;
98
- };
99
- };
100
- type BaseParams = atoms.BoxInput & {
101
- topNavigation?: ReactElement;
102
- sideNavigation?: ReactElement;
103
- footerNavigation?: ReactElement;
104
- };
105
- type ButtonParams = Buttons.ButtonInput & Buttons.Tones.Clear & {
106
- uri?: string;
107
- uriGroup?: (string | RegExp) | (string | RegExp)[];
108
- };
109
- }
110
- }
111
- namespace Tables {
112
- type Methods = {
113
- Comps: CompsMethods;
114
- Normal: (props: Normal.Params) => JSX.Element;
115
- Data: Data.Methods;
116
- Drag: (props: Drag.Params) => JSX.Element;
117
- Spread: () => JSX.Element;
118
- };
119
- type CompsMethods = {
120
- Table: FNC<TableParams>;
121
- Head: FNC<TableHeadParams>;
122
- Body: FNC<TableBodyParams>;
123
- Row: FNC<TRParams>;
124
- TH: FNC<TableCellParams>;
125
- TD: FNC<TableCellParams>;
126
- RightIndicator: Uni.CellParams;
127
- };
128
- type DataCompsMethods = {
129
- Search: any;
130
- Info: any;
131
- Paging: any;
132
- };
133
- type TableParams = amotifyBasicElement & React.TableHTMLAttributes<HTMLTableElement>;
134
- type TableHeadParams = amotifyBasicElement & React.TableHTMLAttributes<HTMLTableSectionElement>;
135
- type TableBodyParams = amotifyBasicElement & React.TableHTMLAttributes<HTMLTableSectionElement>;
136
- type TRParams = amotifyBasicElement & React.HTMLAttributes<HTMLTableRowElement>;
137
- type TableCellParams = amotifyBasicElement & React.ThHTMLAttributes<HTMLTableCellElement>;
138
- type Types = 'normal' | 'data' | 'drag' | 'spread';
139
- type Tones = 'border' | 'cellBorder' | 'rowBorder' | 'plain' | 'auto';
140
- type OnRowClick = {
141
- (rowIDOrIndex: any, event: React.MouseEvent<HTMLTableRowElement, MouseEvent>): void;
142
- };
143
- type StylesCallbackInput = {
144
- top: boolean;
145
- bottom: boolean;
146
- left: boolean;
147
- right: boolean;
148
- rowIndex: number;
149
- colIndex: number;
150
- isHeader: boolean;
151
- isBody: boolean;
152
- };
153
- namespace Uni {
154
- type CellParams = TableCellParams & {
155
- type?: 'th' | 'td';
156
- };
157
- type Params = {
158
- tableID?: string;
159
- tone?: Tones;
160
- colLength: number;
161
- cellStyles?: amotifyUniStyleParams;
162
- cellClassName?: string;
163
- cellStylesCallback?: {
164
- (params: StylesCallbackInput): amotifyUniStyleParams;
165
- };
166
- className?: string;
167
- } & amotifyUniStyleParams;
168
- }
169
- namespace Normal {
170
- type CellParams = Uni.CellParams;
171
- type HeadRowParams = CellParams[];
172
- type BodyRowParams = CellParams[] & {
173
- rowID?: string | number;
174
- };
175
- type Params = Uni.Params & {
176
- head: HeadRowParams | false;
177
- rows: BodyRowParams[];
178
- onRowClick?: OnRowClick;
179
- };
180
- }
181
- namespace Drag {
182
- type CellParams = Uni.CellParams;
183
- type HeadRowParams = CellParams[];
184
- type BodyRowParams = CellParams[] & {
185
- rowID?: any;
186
- };
187
- type Params = Uni.Params & {
188
- head: HeadRowParams | false;
189
- rows: BodyRowParams[];
190
- onOrderChanged: {
191
- (orderList: any[]): void;
192
- };
193
- };
194
- }
195
- namespace Data {
196
- type CellParams = TableCellParams & {
197
- type?: 'th' | 'td';
198
- data: string | number;
199
- option?: any;
200
- orderIndex?: string | number;
201
- };
202
- type HeadRowParams = CellParams[];
203
- type BodyRowParams = Array<CellParams> & ArrayObjectParams;
204
- type ArrayObjectParams = {
205
- rowID?: any;
206
- __sys4SearchKey?: string;
207
- checked?: boolean;
208
- filtered?: boolean;
209
- currentPage?: boolean;
210
- };
211
- type Params = Uni.Params & {
212
- tableID?: string;
213
- head: HeadRowParams;
214
- rows: BodyRowParams[];
215
- onRowClick?: OnRowClick;
216
- eventID?: string;
217
- checker?: boolean;
218
- searchKeyword?: string;
219
- filter?: boolean | boolean[];
220
- order?: boolean | boolean[];
221
- defaultOrder?: OrderParams;
222
- pageRowLength: number;
223
- noRecords?: ReactElement;
224
- };
225
- type Methods = {
226
- (props: Data.Params): JSX.Element;
227
- } & FNs & Comps;
228
- type FNs = {
229
- __memoryID: string;
230
- useStatus(tableID: string): useStatusOutput;
231
- getRowData(tableID: string): BodyRowParams[];
232
- setPageIndex(tableID: string, pageIndex: number): void;
233
- setRowLength(tableID: string, rowLength: number): void;
234
- setSearchKeyword(tableID: string, keyword: string): void;
235
- };
236
- type Comps = {
237
- SearchInput: FNC<{
238
- tableID: string;
239
- }>;
240
- Info: FNC<{
241
- tableID: string;
242
- }>;
243
- Paging: FNC<{
244
- tableID: string;
245
- }>;
246
- RowLength: FNC<{
247
- tableID: string;
248
- lengthSelect: number[];
249
- }>;
250
- };
251
- type useStatusOutput = {
252
- tableComponentDidMount: boolean;
253
- totalRows: number;
254
- pageRows: number;
255
- filteredRows: number;
256
- searchKeyword: string;
257
- filter: {
258
- enabled: boolean;
259
- column: boolean[];
260
- current: (string[])[];
261
- };
262
- order: {
263
- enabled: boolean;
264
- column: boolean[];
265
- current: amotify.fn.Tables.Data.OrderParams;
266
- };
267
- paging: {
268
- rowLength: number;
269
- pageLength: number;
270
- currentPageIndex: number;
271
- };
272
- };
273
- type FilterColumnsProps = {
274
- index: number;
275
- keyword: string;
276
- enabled: boolean;
277
- }[];
278
- type OrderParams = [number, 'ASC' | 'DESC'];
279
- }
280
- namespace Spread {
281
- }
282
- }
283
- namespace Input {
284
- type Methods = {
285
- Plain: FNC<amotifyUniStyleParams & React.InputHTMLAttributes<HTMLInputElement>>;
286
- Hidden: (params: Hidden.PlainParams) => JSX.Element;
287
- Text: Text.Methods;
288
- TextArea: (params: TextArea.PlainParams) => JSX.Element;
289
- DigitCharacters: (params: DigitCharacters.PlainParams) => JSX.Element;
290
- Time: Time.Methods;
291
- Select: (params: Select.PlainParams) => JSX.Element;
292
- Radio: (props: List.PlainParams) => JSX.Element;
293
- Checkbox: (props: List.PlainParams) => JSX.Element;
294
- Checker: (params: Checker.PlainParams) => JSX.Element;
295
- Chips: Chips.Methods;
296
- Search: (params: Search.PlainParams) => JSX.Element;
297
- File: Filer.Methods;
298
- Slider: (params: Slider.PlainParams) => JSX.Element;
299
- Switch: (params: Switch.PlainParams) => JSX.Element;
300
- Segmented: Segmented.Types;
301
- Comps: {
302
- RequiredSign: FNC<amotify.atoms.SpanProps>;
303
- OmitSign: FNC<amotify.atoms.SpanProps>;
304
- LeftIndicator: FNC<IndicatorParams>;
305
- RightIndicator: FNC<IndicatorParams>;
306
- LeftIcon: FNC<IndicatorParams>;
307
- RightIcon: FNC<IndicatorParams>;
308
- };
309
- };
310
- type WrapperParams = atoms.BoxInput & {
311
- label?: ReactElement;
312
- labelStyles?: amotifyUniStyleParams;
313
- required?: boolean | 'plain' | 'omit';
314
- };
315
- type UniParams = {
316
- name?: string;
317
- form?: string;
318
- statusID?: string;
319
- componentID?: string;
320
- override?: 'force' | 'beforeModified' | 'never';
321
- required?: boolean;
322
- checkValidationAtFirst?: boolean;
323
- onValidate?: Validation.OnValidate;
324
- onUpdateValue?: OnUpdateValue;
325
- onUpdateValidValue?: OnUpdateValue;
326
- };
327
- type CoreParams = UniParams & {
328
- className?: string;
329
- wrapStyles?: amotifyUniStyleParams;
330
- } & amotifyUniStyleParams;
331
- type OnUpdateValue = {
332
- (data: {
333
- value: any;
334
- componentID: string;
335
- storeData?: plainObject;
336
- eventType: Validation.EventType;
337
- }): void;
338
- };
339
- type BoxToneTypes = 'border' | 'cloud' | 'bottomBorder' | 'plain';
340
- namespace Hidden {
341
- type PlainParams = React.DOMAttributes<HTMLInputElement> & {
342
- componentID?: string;
343
- name?: string;
344
- form?: string;
345
- id?: string;
346
- value?: string | number | plainObject;
347
- };
348
- }
349
- namespace Text {
350
- type Methods = {
351
- Validate(value: any, restrict: RestrictTypes): {
352
- ok: boolean;
353
- body: ReactElement;
354
- };
355
- Normal: (props: OriginParams) => JSX.Element;
356
- Number: (props: PlainParams) => JSX.Element;
357
- DigitNumber: (props: PlainParams) => JSX.Element;
358
- Tel: (props: PlainParams) => JSX.Element;
359
- CreditCard: (props: PlainParams) => JSX.Element;
360
- Email: (props: PlainParams) => JSX.Element;
361
- Url: (props: PlainParams) => JSX.Element;
362
- Postal: (props: PlainParams) => JSX.Element;
363
- Password: (props: PlainParams) => JSX.Element;
364
- Money: {
365
- JPY: (props: PlainParams) => JSX.Element;
366
- };
367
- };
368
- type RestrictTypes = 'text' | 'number' | 'digitNumber' | 'tel' | 'email' | 'url' | 'fileName' | 'password' | 'postal' | 'creditCard';
369
- type PlainParams = CoreParams & React.DOMAttributes<HTMLInputElement> & {
370
- tone?: BoxToneTypes;
371
- tabIndex?: number;
372
- id?: string;
373
- disabled?: boolean;
374
- min?: number | null;
375
- max?: number | null;
376
- maxLength?: number | null;
377
- enableFormSubmit?: boolean;
378
- autoComplete?: 'off' | 'none' | string;
379
- autoCapitalize?: 'off' | 'none' | string;
380
- clearButton?: boolean;
381
- value?: string | number;
382
- placeholder?: string;
383
- leftIndicator?: ReactElement | false;
384
- rightIndicator?: ReactElement | false;
385
- leftIcon?: ReactElement | false;
386
- rightIcon?: ReactElement | false;
387
- };
388
- type OriginParams = PlainParams & {
389
- restrict?: RestrictTypes;
390
- };
391
- }
392
- namespace TextArea {
393
- type PlainParams = CoreParams & React.TextareaHTMLAttributes<HTMLTextAreaElement> & {
394
- tone?: BoxToneTypes;
395
- tabIndex?: number;
396
- id?: string;
397
- disabled?: boolean;
398
- enableFormSubmit?: boolean;
399
- value?: string | number;
400
- placeholder?: string;
401
- leftIndicator?: ReactElement | false;
402
- rightIndicator?: ReactElement | false;
403
- leftIcon?: ReactElement | false;
404
- rightIcon?: ReactElement | false;
405
- };
406
- }
407
- namespace DigitCharacters {
408
- type PlainParams = CoreParams & React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
409
- tone?: BoxToneTypes;
410
- combineInput?: boolean;
411
- digits: number;
412
- numericOnly?: boolean;
413
- tabIndex?: number;
414
- id?: string;
415
- enableFormSubmit?: boolean;
416
- value?: string | number;
417
- listStyles?: amotifyUniStyleParams;
418
- };
419
- }
420
- namespace Time {
421
- type Methods = {
422
- Clock: (props: PlainParams) => JSX.Element;
423
- Date: (props: PlainParams) => JSX.Element;
424
- Week: (props: PlainParams) => JSX.Element;
425
- Month: (props: PlainParams) => JSX.Element;
426
- Year: (props: PlainParams) => JSX.Element;
427
- DateWareki: (props: DateWarekiParams) => JSX.Element;
428
- Periods: {
429
- Date: (props: PeriodParams) => JSX.Element;
430
- Month: (props: PeriodParams) => JSX.Element;
431
- };
432
- fn: FNTypes;
433
- };
434
- type FNTypes = {
435
- picker: {
436
- launch(params: PickerParams & Omit<Tooltips.Params, 'content'>): void;
437
- remove(tipsID: string): void;
438
- };
439
- };
440
- type EraTypes = 'clock' | 'year' | 'meiji' | 'taisho' | 'shouwa' | 'heisei' | 'reiwa';
441
- type RestrictTypes = 'clock' | 'date' | 'week' | 'month' | 'year' | 'dates' | 'months' | 'dateWareki';
442
- type PlainParams = CoreParams & React.DOMAttributes<HTMLInputElement> & {
443
- tone?: BoxToneTypes;
444
- tabIndex?: number;
445
- id?: string;
446
- disabled?: boolean;
447
- enableFormSubmit?: boolean;
448
- value?: string | [string, string];
449
- min?: string;
450
- max?: string;
451
- leftIndicator?: ReactElement | false;
452
- rightIndicator?: ReactElement | false;
453
- };
454
- type OriginParams = PlainParams & {
455
- restrict: RestrictTypes;
456
- era?: EraTypes;
457
- };
458
- type DateWarekiParams = PlainParams & {
459
- value?: string;
460
- defaultEra?: 'year' | 'wareki';
461
- };
462
- type PeriodParams = Omit<PlainParams, 'value'> & {
463
- value?: [string, string];
464
- };
465
- type RangeProps = {
466
- type: 'hour' | 'minute' | 'date' | 'month' | 'year' | 'week' | 'dateWareki';
467
- from: number;
468
- length: number;
469
- region?: number;
470
- };
471
- type PickerParams = {
472
- tipsID?: string;
473
- restrict: RestrictTypes;
474
- defaultValue: string | string[];
475
- min?: string;
476
- max?: string;
477
- onValueUpdate(value: string | [string, string]): void;
478
- };
479
- }
480
- namespace Select {
481
- type PlainParams = CoreParams & React.DOMAttributes<HTMLSelectElement> & {
482
- tone?: BoxToneTypes;
483
- tabIndex?: number;
484
- id?: string;
485
- disabled?: boolean;
486
- enableFormSubmit?: boolean;
487
- value?: ValueProps;
488
- options: OptionProps[];
489
- placeholder?: string;
490
- leftIndicator?: ReactElement | false;
491
- rightIndicator?: ReactElement | false;
492
- enableUnSelected?: boolean;
493
- rightIconStyles?: amotifyUniStyleParams;
494
- leftIcon?: ReactElement | false;
495
- rightIcon?: ReactElement | false;
496
- };
497
- type ValueProps = string | number | boolean | plainObject | void | null;
498
- type OptionProps = {
499
- value: ValueProps;
500
- label: string;
501
- displayLabel?: ReactElement;
502
- };
503
- }
504
- namespace List {
505
- type ListToneTypes = 'border' | 'cloud' | 'vivid' | 'normal' | 'plain';
506
- type Methods = {
507
- Radio: (props: PlainParams) => JSX.Element;
508
- Checkbox: (props: PlainParams) => JSX.Element;
509
- };
510
- type PlainParams = CoreParams & {
511
- tone?: ListToneTypes;
512
- icon?: boolean;
513
- tabIndex?: number;
514
- id?: string;
515
- iconType?: 'radio' | 'checkbox';
516
- minSelect?: number;
517
- enableFormSubmit?: boolean;
518
- disabled?: boolean;
519
- value?: any | any[];
520
- options: OptionParams[];
521
- hideInput?: boolean;
522
- leftIndicator?: ReactElement | false;
523
- rightIndicator?: ReactElement | false;
524
- cellStyles?: amotifyUniStyleParams;
525
- cellClassName?: string;
526
- cellCheckedStyles?: amotifyUniStyleParams;
527
- cellCheckedClassName?: string;
528
- defaultActiveStyling?: boolean;
529
- };
530
- type OriginParams = PlainParams & {
531
- type: 'radio' | 'checkbox' | 'checker';
532
- tone: ListToneTypes;
533
- };
534
- type OptionParams = {
535
- value: any;
536
- label: ReactElement;
537
- disabled?: boolean;
538
- className?: string;
539
- checkedStyles?: amotifyUniStyleParams;
540
- checkedClassName?: string;
541
- } & amotifyUniStyleParams;
542
- }
543
- namespace Chips {
544
- type Methods = FNC<PlainParams> & {
545
- fn: FNs;
546
- };
547
- type PlainParams = CoreParams & {
548
- tabIndex?: number;
549
- id?: string;
550
- disabled?: boolean;
551
- value?: OptionParams[];
552
- limit?: number;
553
- selectorGravityPoint?: number;
554
- defaultOptions?: OptionParams[];
555
- onDynamicSearch?: onDynamicSearch;
556
- leftIndicator?: ReactElement | false;
557
- rightIndicator?: ReactElement | false;
558
- rightIcon?: ReactElement | false;
559
- leftIcon?: ReactElement | false;
560
- SelectedCellComponent?: SelectedCellComponentInput;
561
- SelectorCellComponent?: SelectorCellComponentInput;
562
- AddButtonComponent?: AddButtonComponentInput;
563
- };
564
- type onDynamicSearch = {
565
- (k: string): Promise<{
566
- options: OptionParams[];
567
- }>;
568
- };
569
- type OptionParams = {
570
- value: any;
571
- label: string;
572
- };
573
- type SelectedCellComponentInput = FNC<{
574
- removeCallback: Function;
575
- defaultRemoveButton: ReactElement;
576
- openCallback(): void;
577
- value: any;
578
- label: string;
579
- }>;
580
- type SelectorCellComponentInput = FNC<{
581
- isSelected: boolean;
582
- isFocused: boolean;
583
- value: any;
584
- label: string;
585
- }>;
586
- type AddButtonComponentInput = FNC<{
587
- selected: OptionParams[];
588
- openCallback(): void;
589
- }>;
590
- type OpenSelectorInput = {
591
- parent: Jsmin.Args;
592
- selectorID: string;
593
- options: OptionParams[];
594
- selected: OptionParams[];
595
- bottomContent?: ReactElement;
596
- gravityPoint?: number;
597
- limit?: number;
598
- onDynamicSearch?: {
599
- (k: string): Promise<{
600
- options: OptionParams[];
601
- }>;
602
- };
603
- onUpdated(params: {
604
- values: any[];
605
- }): void;
606
- onClosed(): void;
607
- SelectorCellComponent?: SelectorCellComponentInput;
608
- };
609
- type FNs = {
610
- openSelector(params: OpenSelectorInput): void;
611
- closeSelector(selectorID: string): void;
612
- updateOptions(selectorID: string, options: OptionParams[]): void;
613
- updateSelected(selectorID: string, selected: OptionParams[]): void;
614
- };
615
- }
616
- namespace Search {
617
- type PlainParams = Chips.PlainParams;
618
- }
619
- namespace Filer {
620
- type Methods = FNC<PlainParams> & FNs;
621
- type PlainParams = CoreParams & React.DOMAttributes<HTMLInputElement> & {
622
- tone?: BoxToneTypes;
623
- tabIndex?: number;
624
- id?: string;
625
- disabled?: boolean;
626
- value?: CustomFile[];
627
- limit?: number;
628
- fileNameEdit?: boolean;
629
- systemOnly?: boolean;
630
- accept?: AcceptTypes;
631
- cellStyles?: amotifyUniStyleParams;
632
- cellClassName?: string;
633
- };
634
- type CustomFile = File & {
635
- id: string;
636
- };
637
- type AcceptTypes = 'image' | string;
638
- type FNs = {
639
- fn: {
640
- openDialog(params: {
641
- accept?: AcceptTypes;
642
- multiple?: boolean;
643
- }): Promise<File[]>;
644
- };
645
- };
646
- }
647
- namespace Slider {
648
- type PlainParams = CoreParams & React.DOMAttributes<HTMLInputElement> & {
649
- tabIndex?: number;
650
- id?: string;
651
- disabled?: boolean;
652
- value?: number;
653
- color?: ColorTypes;
654
- min: number;
655
- max: number;
656
- step: number;
657
- legends?: {
658
- enable?: boolean;
659
- custom?: LegendsCallback;
660
- showAlways?: boolean;
661
- };
662
- enableFormSubmit?: boolean;
663
- };
664
- type ColorTypes = amotify.ThemeColorTypes | 'theme' | 'posi' | 'nega' | 'warn';
665
- type LegendsCallback = {
666
- (value: number): ReactElement;
667
- };
668
- }
669
- namespace Switch {
670
- type PlainParams = UniParams & React.DOMAttributes<HTMLInputElement> & {
671
- color?: ColorTypes;
672
- id?: string;
673
- tabIndex?: number;
674
- appearance?: 'material' | 'applely';
675
- disabled?: boolean;
676
- value?: boolean;
677
- icon?: string;
678
- enableFormSubmit?: boolean;
679
- };
680
- type ColorTypes = amotify.ThemeColorTypes | 'theme' | 'posi' | 'nega' | 'warn';
681
- }
682
- namespace Segmented {
683
- type Tones = 'Border' | 'ThemeBorder' | 'BottomLine' | 'Cloud' | 'ThemeCloud' | 'WhiteCloud';
684
- type Types = {
685
- Auto: (params: Params) => JSX.Element;
686
- Normal: (params: Params) => JSX.Element;
687
- Cloud: (params: Params) => JSX.Element;
688
- Cloud2: (params: Params) => JSX.Element;
689
- Cloud3: (params: Params) => JSX.Element;
690
- Border: (params: Params) => JSX.Element;
691
- Border2: (params: Params) => JSX.Element;
692
- BottomLine: (params: Params) => JSX.Element;
693
- };
694
- type Params = List.PlainParams;
695
- type ListParams = List.OptionParams[];
696
- }
697
- namespace Checker {
698
- type PlainParams = CoreParams & {
699
- label: ReactElement;
700
- id?: string;
701
- tabIndex?: number;
702
- disabled?: boolean;
703
- value?: boolean;
704
- enableFormSubmit?: boolean;
705
- cellStyles?: amotifyUniStyleParams;
706
- cellClassName?: string;
707
- cellCheckedStyles?: amotifyUniStyleParams;
708
- cellCheckedClassName?: string;
709
- };
710
- }
711
- namespace Status {
712
- type Plain = {
713
- componentID: string;
714
- dataValue: any;
715
- eventType: Validation.EventType;
716
- eventID: string;
717
- };
718
- type Text = Plain & {
719
- formatValue: any;
720
- prevValue: any;
721
- caretFrom: number;
722
- caretTo: number;
723
- };
724
- type DigitCharacters = Plain & {
725
- formatValue: any;
726
- };
727
- type Time = Plain & {
728
- formatValue: any;
729
- ranges: Time.RangeProps[];
730
- };
731
- type Slider = Plain & {
732
- min: number;
733
- max: number;
734
- step: number;
735
- };
736
- }
737
- namespace Validation {
738
- type EventType = 'init' | 'update' | 'override' | 'refresh';
739
- type NoticeTypes = {
740
- type: 'valid' | 'invalid' | 'warn';
741
- label: ReactElement;
742
- };
743
- type Result = {
744
- ok: boolean;
745
- notice: NoticeTypes[];
746
- };
747
- type SystemCheck = {
748
- (props: {
749
- value: any;
750
- params: any;
751
- }): Result;
752
- };
753
- type OnValidate = {
754
- (state: {
755
- eventType: EventType;
756
- value: any;
757
- props: plainObject;
758
- }): Promise<Result>;
759
- };
760
- }
761
- type IndicatorParams = amotifyUniStyleParams & {
762
- tone?: BoxToneTypes;
763
- className?: string;
764
- children: ReactElement;
765
- };
766
- }
767
- namespace Buttons {
768
- type Methods = SeedTypes & {};
769
- type Seeds = 'Button' | 'Label' | 'Anchor';
770
- type Tones = 'Plain' | 'Link' | 'Normal' | 'Border' | 'Prime' | 'Sub' | 'Clear' | 'FillToBorder' | 'BorderToFill';
771
- type Sizes = 'XS' | 'S' | 'R' | 'L';
772
- type Colors = 'theme' | 'posi' | 'nega' | 'warn' | 'cloud' | 'trans' | 'white' | 'plain';
773
- type SeedTypes = {
774
- Button: ToneTypes<ButtonInput>;
775
- Label: ToneTypes<LabelInput>;
776
- Anchor: ToneTypes<AnchorInput>;
777
- };
778
- type ToneTypes<T> = {
779
- Plain: FNC<T>;
780
- Link: FNC<T>;
781
- Normal: SizeTypes<T>;
782
- Border: SizeTypes<T>;
783
- Prime: SizeTypes<T & Tones.Prime>;
784
- Sub: SizeTypes<T & Tones.Sub>;
785
- Clear: SizeTypes<T & Tones.Clear>;
786
- FillToBorder: SizeTypes<T & Tones.FillToBorder>;
787
- BorderToFill: SizeTypes<T & Tones.BorderToFill>;
788
- };
789
- type SizeTypes<T> = {
790
- XS: FNC<T>;
791
- S: FNC<T>;
792
- R: FNC<T>;
793
- L: FNC<T>;
794
- };
795
- namespace Tones {
796
- type Plain = {};
797
- type Link = {};
798
- type Normal = {};
799
- type Border = {};
800
- type Prime = {
801
- color?: Colors | amotify.ThemeColorTypes;
802
- };
803
- type Sub = {
804
- color?: Colors | 'layer';
805
- };
806
- type Clear = {
807
- color?: Colors | 'layer';
808
- };
809
- type FillToBorder = {
810
- color?: Colors;
811
- };
812
- type BorderToFill = {
813
- color?: Colors;
814
- };
815
- }
816
- type UniParams = amotifyBasicElement & {
817
- tabIndex?: number;
818
- children?: ReactElement;
819
- 'aria-label'?: string;
820
- isLocked?: boolean;
821
- isActive?: boolean;
822
- isActiveStyles?: amotifyUniStyleParams;
823
- isActiveClassName?: string;
824
- activeStyles?: amotifyUniStyleParams;
825
- activeClassName?: string;
826
- };
827
- type delegateClickEventProps = 'auxEnter' | 'enter' | 'space';
828
- type ButtonInput = UniParams & {
829
- submitOption?: {
830
- formName: string;
831
- acceptInvalidForm?: boolean;
832
- submitDelegationKey?: delegateClickEventProps | delegateClickEventProps[];
833
- callback(form: plainObject, ok: boolean): void;
834
- };
835
- } & React.ButtonHTMLAttributes<HTMLButtonElement>;
836
- type LabelInput = UniParams & {
837
- htmlFor?: string;
838
- } & React.LabelHTMLAttributes<HTMLLabelElement>;
839
- type AnchorInput = UniParams & {
840
- href?: string;
841
- newTab?: boolean;
842
- sync?: boolean;
843
- download?: any;
844
- shiftQueryParams?: boolean;
845
- } & React.ButtonHTMLAttributes<HTMLAnchorElement>;
846
- }
847
- namespace Sheet {
848
- type Methods = {
849
- open(params: Params): void;
850
- refresh(params: Params, open: boolean): void;
851
- resize(params: {
852
- sheetID: string;
853
- size: SizeParams;
854
- }): void;
855
- reposition(sheetID: string): void;
856
- close(key: string, eventType?: 'escape' | 'pageTransit'): void;
857
- closeGroup(keyGroup: string): void;
858
- closeAll(pageTransit?: boolean): void;
859
- Comps: {
860
- Body: FNC<atoms.BoxInput>;
861
- };
862
- };
863
- type Params = NormalParams | EdgeParams | CustomParams | ImageParams | Bottom.Params;
864
- type UniParams = {
865
- sheetID?: string;
866
- sheetGroups?: string | string[];
867
- content: ReactElement | {
868
- (): JSX.Element;
869
- };
870
- overwrap?: boolean;
871
- closeOption?: CloseOptions;
872
- holdState?: boolean;
873
- openAfter?(): void;
874
- closeAfter?(): void;
875
- } & amotifyBasicElement;
876
- type SizeParams = 'S' | 'R' | 'L' | '2L' | '3L' | 'MAX';
877
- type CloseOptions = {
878
- pageTransit?: boolean;
879
- escapeKeyDown?: boolean;
880
- aroundClick?: boolean;
881
- elementBlur?: Jsmin.Args;
882
- };
883
- type SheetTypes = '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';
884
- type NormalParams = UniParams & {
885
- type: SheetTypes;
886
- size?: SizeParams;
887
- };
888
- type EdgeParams = UniParams & {
889
- type: SheetTypes;
890
- size?: SizeParams;
891
- };
892
- type CustomParams = UniParams & {
893
- type: 'custom';
894
- parent: Jsmin.Args;
895
- gravityPoint?: number;
896
- };
897
- type ImageParams = Omit<UniParams, 'content'> & {
898
- type: 'image';
899
- src: string | string[];
900
- };
901
- namespace Bottom {
902
- type Sizes = 'S' | 'R' | 'L';
903
- type Params = UniParams & {
904
- type: 'drawer.bottom';
905
- size: Sizes;
906
- sizeChanged?(size: Sizes): void;
907
- baseStyles?: amotifyUniStyleParams;
908
- closeOption?: CloseOptions & {
909
- swipeDown?: boolean;
910
- };
911
- };
912
- }
913
- }
914
- namespace Tooltips {
915
- type Methods = {
916
- __memoryID: string;
917
- open(params: Params): void;
918
- close(tipsID: string): void;
919
- closeALL(): void;
920
- Comps: {
921
- Body: FNC<atoms.BoxInput>;
922
- };
923
- };
924
- type Params = {
925
- tipsID?: string;
926
- tipsGroups?: string | string[];
927
- parent: Jsmin.Args;
928
- gravityPoint?: number;
929
- closeOption?: Sheet.CloseOptions;
930
- content: ReactElement | {
931
- (): JSX.Element;
932
- };
933
- holdState?: boolean;
934
- openAfter?(): void;
935
- closeAfter?(): void;
936
- } & amotifyBasicElement;
937
- }
938
- namespace SnackBar {
939
- type Methods = {
940
- __memoryID: string;
941
- add(props: AddParams): SnackBar.Methods;
942
- remove(snackID: string): SnackBar.Methods;
943
- };
944
- type AddParams = Omit<atoms.BoxInput, 'children'> & {
945
- children?: ReactElement | {
946
- (): JSX.Element;
947
- };
948
- customChildren?: {
949
- (params: {
950
- close(): void;
951
- }): JSX.Element;
952
- };
953
- snackID?: string;
954
- secondsToClose?: number;
955
- };
956
- }
957
- namespace Loader {
958
- type Methods = ColorTypes & FNs;
959
- type ColorTypes = {
960
- Theme: SizeTypes<CompInput>;
961
- Posi: SizeTypes<CompInput>;
962
- Nega: SizeTypes<CompInput>;
963
- Warn: SizeTypes<CompInput>;
964
- White: SizeTypes<CompInput>;
965
- Cloud: SizeTypes<CompInput>;
966
- };
967
- type SizeTypes<T> = {
968
- S: FNC<T>;
969
- R: FNC<T>;
970
- L: FNC<T>;
971
- XL: FNC<T>;
972
- MAX: FNC<T>;
973
- };
974
- type Sizes = 'S' | 'R' | 'L' | 'XL' | 'MAX';
975
- type Colors = 'theme' | 'posi' | 'nega' | 'warn' | 'white' | 'cloud';
976
- type CompInput = amotifyUniStyleParams & {
977
- showInitial?: boolean;
978
- loaderID?: string;
979
- };
980
- type FNs = {
981
- __memoryID: string;
982
- fn: {
983
- stopALL(): void;
984
- top: {
985
- active(): void;
986
- stop(): void;
987
- };
988
- corner: {
989
- active(): void;
990
- stop(): void;
991
- };
992
- mini: {
993
- active(loaderID?: string): void;
994
- stop(loaderID?: string): void;
995
- stopALL(): void;
996
- };
997
- };
998
- };
999
- }
1000
- namespace Cropper {
1001
- type Params = {
1002
- use: 'profile' | 'header';
1003
- develops: DevelopParams[];
1004
- onProcessFinished: {
1005
- (files: Input.Filer.CustomFile[]): void;
1006
- };
1007
- };
1008
- type DevelopParams = {
1009
- size: 'S' | 'R' | 'L';
1010
- maxSize?: number;
1011
- };
1012
- type Methods = {
1013
- open(params: Params): void;
1014
- };
1015
- }
1016
- namespace Effects {
1017
- type FadeUniParams = atoms.BoxInput & {
1018
- animationTime?: number;
1019
- animationDelay?: number;
1020
- };
1021
- type Methods = {
1022
- FadeIn: FNC<FadeUniParams>;
1023
- FadeUp: FNC<FadeUniParams>;
1024
- };
1025
- }
1026
- type Methods = {
1027
- Table: amotify.fn.Tables.Methods;
1028
- Layout: amotify.fn.Layout.Methods;
1029
- Buttons: amotify.fn.Buttons.Methods;
1030
- Input: amotify.fn.Input.Methods;
1031
- Sheet: amotify.fn.Sheet.Methods;
1032
- SnackBar: amotify.fn.SnackBar.Methods;
1033
- Loader: amotify.fn.Loader.Methods;
1034
- Tooltips: amotify.fn.Tooltips.Methods;
1035
- Effects: amotify.fn.Effects.Methods;
1036
- Cropper: amotify.fn.Cropper.Methods;
1037
- };
1038
- }
1039
- }
1040
- }