amotify 0.0.2 → 0.0.4

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