amotify 0.0.9 → 0.0.10

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 (60) hide show
  1. package/@types/_.tsx +1 -2
  2. package/@types/amot.tsx +125 -84
  3. package/@types/fn.tsx +51 -51
  4. package/@types/module.tsx +1 -2
  5. package/dist/amotify.js +328 -1
  6. package/dist/amotify.min.css +12724 -24
  7. package/package.json +8 -4
  8. package/src/@global.tsx +7 -7
  9. package/src/@molecules.tsx +1 -0
  10. package/src/atoms/FAIcon/parts.tsx +4 -3
  11. package/src/atoms/Logo/parts.tsx +1 -0
  12. package/src/atoms/Various/parts.tsx +9 -8
  13. package/src/config.tsx +4 -4
  14. package/src/functions/Button/_.tsx +1 -0
  15. package/src/functions/Cropper/parts.tsx +12 -16
  16. package/src/functions/Effects/Fade.tsx +4 -9
  17. package/src/functions/Input/Chips/Selector.tsx +13 -16
  18. package/src/functions/Input/Chips/_.tsx +10 -11
  19. package/src/functions/Input/DigitCharacters.tsx +3 -7
  20. package/src/functions/Input/File/_.tsx +9 -12
  21. package/src/functions/Input/Hidden.tsx +4 -3
  22. package/src/functions/Input/List/_.tsx +5 -9
  23. package/src/functions/Input/Segmented/_.tsx +1 -1
  24. package/src/functions/Input/Select/_.tsx +5 -8
  25. package/src/functions/Input/Slider/_.tsx +6 -9
  26. package/src/functions/Input/Switch/_.tsx +3 -7
  27. package/src/functions/Input/Text.tsx +4 -9
  28. package/src/functions/Input/TextArea.tsx +3 -7
  29. package/src/functions/Input/Time/Picker.tsx +7 -12
  30. package/src/functions/Input/Time/_.tsx +10 -14
  31. package/src/functions/Input/_.tsx +8 -13
  32. package/src/functions/Input/core.tsx +10 -15
  33. package/src/functions/Inputs/text.tsx +1 -0
  34. package/src/functions/Layout/PageNotFound.tsx +2 -1
  35. package/src/functions/Layout/PageRouter.tsx +23 -32
  36. package/src/functions/Layout/PageViewController/parts.tsx +2 -7
  37. package/src/functions/Layout/Plate.tsx +2 -1
  38. package/src/functions/Layout/SwipeView/parts.tsx +9 -13
  39. package/src/functions/Layout/TabBar.tsx +2 -6
  40. package/src/functions/Loader/corner.tsx +4 -10
  41. package/src/functions/Loader/mini.tsx +7 -10
  42. package/src/functions/Loader/parts.tsx +6 -9
  43. package/src/functions/Loader/top.tsx +4 -10
  44. package/src/functions/Sheet/parts.tsx +12 -15
  45. package/src/functions/SnackBar/parts.tsx +10 -13
  46. package/src/functions/Table/Drag/parts.tsx +9 -12
  47. package/src/functions/Table/Normal/parts.tsx +4 -3
  48. package/src/functions/Table/_.tsx +3 -2
  49. package/src/functions/Tooltips/parts.tsx +1 -0
  50. package/src/global/LaunchReactApplication.tsx +4 -3
  51. package/src/global/styleConverter.tsx +2 -2
  52. package/src/launch.tsx +8 -3
  53. package/src/molecules/Accordion/parts.tsx +6 -10
  54. package/src/molecules/LinkifyText/parts.tsx +2 -1
  55. package/src/molecules/List.tsx +2 -1
  56. package/src/organisms/DisplayStyleInput/darkmode.tsx +2 -7
  57. package/src/organisms/DisplayStyleInput/themeColor.tsx +3 -8
  58. package/src/templates/PlayGround/parts.tsx +12 -26
  59. package/webpack.config.js +5 -5
  60. package/@types/index.tsx +0 -70
package/@types/_.tsx CHANGED
@@ -2,5 +2,4 @@ import './jsminAmotifyExtension';
2
2
  import './state';
3
3
  import './module';
4
4
  import './amot';
5
- import './fn';
6
- import './index';
5
+ import './fn';
package/@types/amot.tsx CHANGED
@@ -1,11 +1,45 @@
1
- import React from 'react';
2
- import * as ReactDom from "react-dom";
3
- import * as ReactRouterDom from "react-router";
4
-
5
- export {}
1
+ export { }
6
2
  declare global {
3
+ type ReactElement = React.ReactNode | React.ReactNode[]
4
+
7
5
  namespace amotify {
8
- namespace glob {
6
+ type ToneTypes = 'default' | 'flat' | 'sharp'
7
+ type DarkModeTypes = 'light' | 'auto' | 'dark' | 'dim'
8
+ type ThemeColorTypes = 'comun' | 'leaf' | 'heart' | 'droplet' |
9
+
10
+ 'brick' | 'flower' | 'lip' | 'wine' | 'theater' | 'bat' | 'poizon' | 'eggplant' | 'ufo' | 'alien' | 'tombstone' | 'ninja' | 'moon' | 'rain' | 'unicorn' | 'axe' | 'gem' | 'soap' | 'drizzle' | 'building' | 'fish' | 'icicles' | 'water' | 'tree1' | 'tree2' | 'tree3' | 'battery' | 'seedle' | 'greenTea' | 'oak' | 'salad' | 'cloudy' | 'lemon' | 'angel' | 'parasol' | 'pizza' | 'thunder' | 'latte' | 'island' | 'shovel' | 'coffee' | 'carrot' | 'cactus' | 'volcano' | 'choco' | 'industry' | 'gun' | 'galaxy' |
11
+
12
+ 'line' | 'twitter' | 'amazon' | 'facebook' | 'android' | 'slackBlue' | 'slackGreen' | 'slackRed' | 'slackYellow' | 'slackBase' | 'googleBlue' | 'googleGreen' | 'googleYellow' | 'googleRed'
13
+
14
+ type RoundnessTypes = 0 | 1 | 2 | 3 | 4 | 5
15
+
16
+ namespace config {
17
+ interface Methods {
18
+ version: string
19
+ tone: amotify.ToneTypes
20
+ themeColor: amotify.ThemeColorTypes
21
+ darkMode: amotify.DarkModeTypes
22
+ roundness: amotify.RoundnessTypes
23
+ device: {
24
+ isWhat: 'Windows' | 'Android' | 'iPhone' | 'iPad' | 'macOSX' | 'undefined'
25
+ isBreakpoint(): boolean
26
+ isPhonepoint(): boolean
27
+ isSystemDarkmode(): boolean
28
+ isPhone: boolean
29
+ isTouchDevice: boolean
30
+ isIOS: boolean
31
+ }
32
+ update: {
33
+ tone( value: amotify.ToneTypes ): void
34
+ themeColor( value: amotify.ThemeColorTypes ): void
35
+ darkMode( value: amotify.DarkModeTypes ): void
36
+ roundness( value: amotify.RoundnessTypes ): void
37
+ }
38
+ readExtraCDN( url: string ): Promise<boolean>
39
+ }
40
+ }
41
+
42
+ namespace global {
9
43
  type LaunchReactApplicationParams = {
10
44
  ( params: {
11
45
  baseElement?: HTMLElement | string
@@ -19,7 +53,6 @@ declare global {
19
53
  }
20
54
  } ): void
21
55
  }
22
-
23
56
  type useStoreParams = {
24
57
  set( params: {
25
58
  key: string
@@ -45,7 +78,6 @@ declare global {
45
78
  push( url: string,newTab?: boolean ): void
46
79
  back(): void
47
80
  }
48
-
49
81
  namespace StyleConverter {
50
82
  type ReadStyleSet = {
51
83
  <T>( params: T ): T
@@ -54,24 +86,23 @@ declare global {
54
86
  <T>( params: T ): T
55
87
  }
56
88
  }
57
-
58
- type Methods = {
59
- React: typeof React
60
- ReactRouterDom: typeof ReactRouterDom
61
- ReactDom: typeof ReactDom
62
-
89
+
90
+ interface Methods {
91
+ React: typeof globalThis.React
92
+ ReactDOM: typeof globalThis.ReactDOM
93
+ ReactRouterDOM: any
63
94
  StyleConverter: {
64
95
  ReadStyleSet: StyleConverter.ReadStyleSet
65
96
  ToClassName: StyleConverter.ToClassName
66
97
  }
67
-
98
+
68
99
  pageTransit: PageTransitParams
69
- useStore: glob.useStoreParams
70
- useRecycle: glob.useRecycleParams
71
- LaunchReactApplication: glob.LaunchReactApplicationParams
100
+ useStore: global.useStoreParams
101
+ useRecycle: global.useRecycleParams
102
+ LaunchReactApplication: global.LaunchReactApplicationParams
72
103
  }
73
104
  }
74
-
105
+
75
106
  namespace atoms {
76
107
  type BoxInput = amotifyBasicElement & {
77
108
  children?: ReactElement
@@ -82,45 +113,45 @@ declare global {
82
113
  type ParagraphProps = amotifyBasicElement & {
83
114
  children?: ReactElement
84
115
  } & React.HTMLAttributes<HTMLParagraphElement>
85
-
116
+
86
117
  type FlexProps = amotifyBasicElement & {
87
118
  children?: ReactElement
88
119
  } & React.HTMLAttributes<HTMLDivElement>
89
-
120
+
90
121
  type GridProps = amotifyBasicElement & {
91
122
  children: ReactElement
92
-
123
+
93
124
  onClick?: {
94
125
  ( event: React.MouseEvent<HTMLDivElement,MouseEvent> ): void
95
126
  }
96
127
  } & React.HTMLAttributes<HTMLDivElement>
97
-
128
+
98
129
  namespace FAIcon {
99
- type Method = FNC<FAIconFNC> & ShortCuts
130
+ type Method = React.FC<FAIconFNC> & ShortCuts
100
131
  type FAIconFNC = amotifyBasicElement & {
101
132
  iconFamily?: 'classic' | 'sharp'
102
-
133
+
103
134
  isSolidIcon?: boolean
104
135
  isRegularIcon?: boolean
105
136
  isLightIcon?: boolean
106
137
  isThinIcon?: boolean
107
138
  isDuotoneIcon?: boolean
108
-
139
+
109
140
  iconAnimation?: false | 'beat' | 'beat-fade' | 'bounce' | 'fade' | 'flip' | 'shake' | 'spin' | 'spin-reverse' | 'spin-pulse'
110
141
  isBrandIcon?: boolean
111
142
  d?: string
112
143
  } & React.HTMLAttributes<HTMLDivElement>
113
144
  type ShortCuts = {
114
- [ key in ShortCutNames ]: FNC<Omit<FAIconFNC,'d'>>
145
+ [ key in ShortCutNames ]: React.FC<Omit<FAIconFNC,'d'>>
115
146
  }
116
147
  type ShortCutNames =
117
148
  'User' | 'Times' | 'Desktop' |
118
-
149
+
119
150
  'AngleRight' | 'AngleLeft' | 'AngleUp' | 'AngleDown' |
120
151
  'ChevronLeft' | 'ChevronRight' | 'ChevronUp' | 'ChevronDown' |
121
152
  'CaretLeft' | 'CaretRight' | 'CaretUp' | 'CaretDown' |
122
153
  'ArrowLeft' | 'ArrowRight' | 'ArrowUp' | 'ArrowDown' |
123
-
154
+
124
155
  'Rotate' | 'RotateLeft' | 'RotateRight' | 'Redo' |
125
156
  'Play' | 'Pause' | 'Stop' | 'ForwardStep' | 'BackwardStep' |
126
157
  'Check' | 'CheckCircle' |
@@ -134,15 +165,15 @@ declare global {
134
165
  'Plus' | 'Minus' | 'Equals' | 'Calculator' |
135
166
  'Image' | 'BadgePercent'
136
167
  }
137
-
168
+
138
169
  namespace Image {
139
- type Methods = FNC<CompInput> & DefaultImages;
170
+ type Methods = React.FC<CompInput> & DefaultImages;
140
171
  type CompInput = amotifyBasicElement & {
141
172
  src: string
142
173
  alt?: string
143
174
  showExpand?: boolean | string
144
175
  } & React.HTMLAttributes<HTMLImageElement>
145
-
176
+
146
177
  type DefaultImages = {
147
178
  uri: {
148
179
  mingooIcon: string
@@ -156,27 +187,27 @@ declare global {
156
187
  'store'
157
188
  ): string
158
189
  }
159
-
190
+
160
191
  }
161
192
  }
162
-
163
-
193
+
194
+
164
195
  namespace Logos {
165
196
  type Methods = {
166
197
  Icon: ( params: Params ) => JSX.Element
167
198
  Title: ( params: Params ) => JSX.Element
168
-
199
+
169
200
  Brands: {
170
201
  MingooIcon: ( params: DefaultLogoTypes ) => JSX.Element
171
202
  MingooTitle: ( params: DefaultLogoTypes ) => JSX.Element
172
203
  MingooLogoH: ( params: DefaultLogoTypes ) => JSX.Element
173
204
  MingooLogoV: ( params: DefaultLogoTypes ) => JSX.Element
174
-
205
+
175
206
  ComunIcon: ( params: DefaultLogoTypes ) => JSX.Element
176
207
  ComunTitle: ( params: DefaultLogoTypes ) => JSX.Element
177
208
  ComunLogoH: ( params: DefaultLogoTypes ) => JSX.Element
178
209
  ComunLogoV: ( params: DefaultLogoTypes ) => JSX.Element
179
-
210
+
180
211
  Google: ( params: DefaultLogoTypes ) => JSX.Element
181
212
  Facebook: ( params: DefaultLogoTypes ) => JSX.Element
182
213
  Twitter: ( params: DefaultLogoTypes ) => JSX.Element
@@ -186,38 +217,38 @@ declare global {
186
217
  type Params = amotifyBasicElement & {
187
218
  size?: 'S' | 'R' | 'L' | '2L' | '3L'
188
219
  color?: 'normal' | 'white'
189
- children?: ReactElement | FNC<any>
220
+ children?: ReactElement | React.FC<any>
190
221
  }
191
222
  type DefaultLogoTypes = amotifyBasicElement & {
192
223
  size?: 'S' | 'R' | 'L' | '2L' | '3L'
193
224
  color?: 'normal' | 'white'
194
225
  }
195
226
  }
196
-
227
+
197
228
  type PlaceholderParams = amotify.atoms.BoxInput & {
198
229
  color?: 'cloud' | 'white'
199
230
  }
200
-
231
+
201
232
  type Methods = {
202
- Box: FNC<atoms.BoxInput>
203
-
204
- Flex: FNC<atoms.FlexProps>
205
- FlexBr: FNC<amotifyUniStyleParams>
206
-
207
- Placeholder: FNC<PlaceholderParams>
208
-
209
- Grid: FNC<atoms.GridProps>
210
-
233
+ Box: React.FC<atoms.BoxInput>
234
+
235
+ Flex: React.FC<atoms.FlexProps>
236
+ FlexBr: React.FC<amotifyUniStyleParams>
237
+
238
+ Placeholder: React.FC<PlaceholderParams>
239
+
240
+ Grid: React.FC<atoms.GridProps>
241
+
211
242
  FAIcon: FAIcon.Method
212
-
213
- Span: FNC<atoms.SpanProps>
214
- Paragraph: FNC<atoms.ParagraphProps>
243
+
244
+ Span: React.FC<atoms.SpanProps>
245
+ Paragraph: React.FC<atoms.ParagraphProps>
215
246
  Img: atoms.Image.Methods
216
-
247
+
217
248
  Logo: Logos.Methods
218
249
  }
219
250
  }
220
-
251
+
221
252
  namespace mols {
222
253
  namespace Accordion {
223
254
  type Params = {
@@ -236,58 +267,58 @@ declare global {
236
267
  toggle( accordionID: string ): void
237
268
  }
238
269
  }
239
- type SetParams = FNC<Params> & FNParams
270
+ type SetParams = React.FC<Params> & FNParams
240
271
  }
241
-
272
+
242
273
  namespace List {
243
274
  type Params = amotifyBasicElement & {
244
275
  rowStyles?: amotifyUniStyleParams
245
276
  rows: RowsParams[]
246
277
  }
247
-
278
+
248
279
  type RowsParams = {
249
280
  children: ReactElement
250
281
  } & amotifyBasicElement
251
282
  }
252
-
283
+
253
284
  type LinkifyTextProps = {
254
285
  text: string
255
286
  placeholder?: ReactElement
256
287
  }
257
-
288
+
258
289
  type Methods = {
259
- List: FNC<mols.List.Params>
290
+ List: React.FC<mols.List.Params>
260
291
  Accordion: mols.Accordion.SetParams
261
- LinkifyText: FNC<mols.LinkifyTextProps>
292
+ LinkifyText: React.FC<mols.LinkifyTextProps>
262
293
  Text: {
263
- NowrapSpan: FNC<atoms.SpanProps>
264
- Title: FNC<atoms.BoxInput>
265
- SubTitle: FNC<atoms.BoxInput>
266
- ThirdTitle: FNC<atoms.BoxInput>
267
- Paragraph: FNC<atoms.BoxInput>
268
- Normal: FNC<atoms.BoxInput>
269
- Description: FNC<atoms.BoxInput>
270
- Supplement: FNC<atoms.BoxInput>
294
+ NowrapSpan: React.FC<atoms.SpanProps>
295
+ Title: React.FC<atoms.BoxInput>
296
+ SubTitle: React.FC<atoms.BoxInput>
297
+ ThirdTitle: React.FC<atoms.BoxInput>
298
+ Paragraph: React.FC<atoms.BoxInput>
299
+ Normal: React.FC<atoms.BoxInput>
300
+ Description: React.FC<atoms.BoxInput>
301
+ Supplement: React.FC<atoms.BoxInput>
271
302
  }
272
- Column: FNC<atoms.FlexProps>
303
+ Column: React.FC<atoms.FlexProps>
273
304
  Row: {
274
- Center: FNC<atoms.FlexProps>
275
- Left: FNC<atoms.FlexProps>
276
- Right: FNC<atoms.FlexProps>
277
- Separate: FNC<atoms.FlexProps>
305
+ Center: React.FC<atoms.FlexProps>
306
+ Left: React.FC<atoms.FlexProps>
307
+ Right: React.FC<atoms.FlexProps>
308
+ Separate: React.FC<atoms.FlexProps>
278
309
  }
279
310
  }
280
311
  }
281
-
312
+
282
313
  namespace orgs {
283
314
  namespace DisplayStyleInput {
284
315
  type Methods = {
285
- Darkmode: FNC<DarkmodeInput>
316
+ Darkmode: React.FC<DarkmodeInput>
286
317
  ThemeColor: {
287
- ALL: FNC<ThemeColorInput>
288
- Basics: FNC<ThemeColorInput>
289
- Originals: FNC<ThemeColorInput>
290
- Brands: FNC<ThemeColorInput>
318
+ ALL: React.FC<ThemeColorInput>
319
+ Basics: React.FC<ThemeColorInput>
320
+ Originals: React.FC<ThemeColorInput>
321
+ Brands: React.FC<ThemeColorInput>
291
322
  Keys: {
292
323
  Brands: ColorIconParams[]
293
324
  Basics: ColorIconParams[]
@@ -300,7 +331,7 @@ declare global {
300
331
  icon: ReactElement
301
332
  label?: ReactElement
302
333
  }
303
-
334
+
304
335
  type DarkmodeInput = atoms.BoxInput & {
305
336
  onUpdate( params: amotify.DarkModeTypes ): void
306
337
  }
@@ -312,11 +343,21 @@ declare global {
312
343
  DisplayStyleInput: DisplayStyleInput.Methods
313
344
  }
314
345
  }
315
-
346
+
316
347
  namespace temps {
317
348
  type Methods = {
318
- PlayGround: FNC<{}>
349
+ PlayGround: React.FC<{}>
319
350
  }
320
351
  }
321
352
  }
353
+ interface amotify {
354
+ config: amotify.config.Methods
355
+ global: amotify.global.Methods
356
+ atoms: amotify.atoms.Methods
357
+ mols: amotify.mols.Methods
358
+ orgs: amotify.orgs.Methods
359
+ temps: amotify.temps.Methods
360
+ fn: amotify.fn.Methods
361
+ }
362
+ var amotify: amotify;
322
363
  }
package/@types/fn.tsx CHANGED
@@ -4,14 +4,14 @@ declare global {
4
4
  namespace fn {
5
5
  namespace Layout {
6
6
  type Methods = {
7
- PageViewController: FNC<PageViewController.Params>
8
- TabBar: FNC<TabBar.Params>
9
- Plate: FNC<Plate.Params>
10
- SwipeView: FNC<SwipeView.Params>
7
+ PageViewController: React.FC<PageViewController.Params>
8
+ TabBar: React.FC<TabBar.Params>
9
+ Plate: React.FC<Plate.Params>
10
+ SwipeView: React.FC<SwipeView.Params>
11
11
 
12
- PageRouter: FNC<PageRouter.RouterProps>
12
+ PageRouter: React.FC<PageRouter.RouterProps>
13
13
 
14
- PageNotFound: FNC<{}>
14
+ PageNotFound: React.FC<{}>
15
15
 
16
16
  RootViewController: RootViewController.Methods
17
17
  }
@@ -92,18 +92,18 @@ declare global {
92
92
 
93
93
  namespace RootViewController {
94
94
  type Methods = {
95
- Base: FNC<RootViewController.BaseParams>
96
- TopNavigation: FNC<amotify.atoms.FlexProps>
97
- SideNavigation: FNC<amotify.atoms.FlexProps & {
95
+ Base: React.FC<RootViewController.BaseParams>
96
+ TopNavigation: React.FC<amotify.atoms.FlexProps>
97
+ SideNavigation: React.FC<amotify.atoms.FlexProps & {
98
98
  baseStyles?: amotifyUniStyleParams
99
99
  }>
100
- FooterNavigation: FNC<amotify.atoms.FlexProps & {
100
+ FooterNavigation: React.FC<amotify.atoms.FlexProps & {
101
101
  baseStyles?: amotifyUniStyleParams
102
102
  }>
103
103
  Comps: {
104
- Button: FNC<ButtonParams>
105
- Title: FNC<atoms.BoxInput>
106
- Bar: FNC<atoms.BoxInput>
104
+ Button: React.FC<ButtonParams>
105
+ Title: React.FC<atoms.BoxInput>
106
+ Bar: React.FC<atoms.BoxInput>
107
107
  }
108
108
  }
109
109
 
@@ -130,13 +130,13 @@ declare global {
130
130
  }
131
131
 
132
132
  type CompsMethods = {
133
- Table: FNC<TableParams>
134
- Head: FNC<TableHeadParams>
135
- Body: FNC<TableBodyParams>
136
- Row: FNC<TRParams>
133
+ Table: React.FC<TableParams>
134
+ Head: React.FC<TableHeadParams>
135
+ Body: React.FC<TableBodyParams>
136
+ Row: React.FC<TRParams>
137
137
 
138
- TH: FNC<TableCellParams>
139
- TD: FNC<TableCellParams>
138
+ TH: React.FC<TableCellParams>
139
+ TD: React.FC<TableCellParams>
140
140
  RightIndicator: Uni.CellParams
141
141
  }
142
142
  type DataCompsMethods = {
@@ -262,10 +262,10 @@ declare global {
262
262
  setSearchKeyword( tableID: string,keyword: string ): void
263
263
  }
264
264
  type Comps = {
265
- SearchInput: FNC<{ tableID: string }>
266
- Info: FNC<{ tableID: string }>
267
- Paging: FNC<{ tableID: string }>
268
- RowLength: FNC<{
265
+ SearchInput: React.FC<{ tableID: string }>
266
+ Info: React.FC<{ tableID: string }>
267
+ Paging: React.FC<{ tableID: string }>
268
+ RowLength: React.FC<{
269
269
  tableID: string
270
270
  lengthSelect: number[]
271
271
  }>
@@ -307,7 +307,7 @@ declare global {
307
307
  }
308
308
  namespace Input {
309
309
  type Methods = {
310
- Plain: FNC<amotifyUniStyleParams & React.InputHTMLAttributes<HTMLInputElement>>
310
+ Plain: React.FC<amotifyUniStyleParams & React.InputHTMLAttributes<HTMLInputElement>>
311
311
  Hidden: ( params: Hidden.PlainParams ) => JSX.Element
312
312
  Text: Text.Methods
313
313
  TextArea: ( params: TextArea.PlainParams ) => JSX.Element
@@ -328,12 +328,12 @@ declare global {
328
328
  Segmented: Segmented.Types
329
329
 
330
330
  Comps: {
331
- RequiredSign: FNC<amotify.atoms.SpanProps>
332
- OmitSign: FNC<amotify.atoms.SpanProps>
333
- LeftIndicator: FNC<IndicatorParams>
334
- RightIndicator: FNC<IndicatorParams>
335
- LeftIcon: FNC<IndicatorParams>
336
- RightIcon: FNC<IndicatorParams>
331
+ RequiredSign: React.FC<amotify.atoms.SpanProps>
332
+ OmitSign: React.FC<amotify.atoms.SpanProps>
333
+ LeftIndicator: React.FC<IndicatorParams>
334
+ RightIndicator: React.FC<IndicatorParams>
335
+ LeftIcon: React.FC<IndicatorParams>
336
+ RightIcon: React.FC<IndicatorParams>
337
337
  }
338
338
  }
339
339
 
@@ -635,7 +635,7 @@ declare global {
635
635
  } & amotifyUniStyleParams
636
636
  }
637
637
  namespace Chips {
638
- type Methods = FNC<PlainParams> & {
638
+ type Methods = React.FC<PlainParams> & {
639
639
  fn: FNs
640
640
  }
641
641
 
@@ -672,20 +672,20 @@ declare global {
672
672
  value: any
673
673
  label: string
674
674
  }
675
- type SelectedCellComponentInput = FNC<{
675
+ type SelectedCellComponentInput = React.FC<{
676
676
  removeCallback: Function
677
677
  defaultRemoveButton: ReactElement
678
678
  openCallback(): void
679
679
  value: any
680
680
  label: string
681
681
  }>
682
- type SelectorCellComponentInput = FNC<{
682
+ type SelectorCellComponentInput = React.FC<{
683
683
  isSelected: boolean
684
684
  isFocused: boolean
685
685
  value: any
686
686
  label: string
687
687
  }>
688
- type AddButtonComponentInput = FNC<{
688
+ type AddButtonComponentInput = React.FC<{
689
689
  selected: OptionParams[]
690
690
  openCallback(): void
691
691
  }>
@@ -721,7 +721,7 @@ declare global {
721
721
  type PlainParams = Chips.PlainParams
722
722
  }
723
723
  namespace Filer {
724
- type Methods = FNC<PlainParams> & FNs
724
+ type Methods = React.FC<PlainParams> & FNs
725
725
 
726
726
  type PlainParams = CoreParams & React.DOMAttributes<HTMLInputElement> & {
727
727
  tone?: BoxToneTypes
@@ -910,8 +910,8 @@ declare global {
910
910
  Anchor: ToneTypes<AnchorInput>
911
911
  }
912
912
  type ToneTypes<T> = {
913
- Plain: FNC<T>
914
- Link: FNC<T>
913
+ Plain: React.FC<T>
914
+ Link: React.FC<T>
915
915
 
916
916
  Normal: SizeTypes<T>
917
917
  Border: SizeTypes<T>
@@ -923,10 +923,10 @@ declare global {
923
923
  BorderToFill: SizeTypes<T & Tones.BorderToFill>
924
924
  }
925
925
  type SizeTypes<T> = {
926
- XS: FNC<T>
927
- S: FNC<T>
928
- R: FNC<T>
929
- L: FNC<T>
926
+ XS: React.FC<T>
927
+ S: React.FC<T>
928
+ R: React.FC<T>
929
+ L: React.FC<T>
930
930
  }
931
931
 
932
932
  namespace Tones {
@@ -989,7 +989,7 @@ declare global {
989
989
  closeGroup( keyGroup: string ): void
990
990
  closeAll( pageTransit?: boolean ): void
991
991
  Comps: {
992
- Body: FNC<atoms.BoxInput>
992
+ Body: React.FC<atoms.BoxInput>
993
993
  }
994
994
  }
995
995
 
@@ -1071,7 +1071,7 @@ declare global {
1071
1071
  close( tipsID: string ): void
1072
1072
  closeALL(): void
1073
1073
  Comps: {
1074
- Body: FNC<atoms.BoxInput>
1074
+ Body: React.FC<atoms.BoxInput>
1075
1075
  }
1076
1076
  }
1077
1077
 
@@ -1121,11 +1121,11 @@ declare global {
1121
1121
  Cloud: SizeTypes<CompInput>
1122
1122
  }
1123
1123
  type SizeTypes<T> = {
1124
- S: FNC<T>
1125
- R: FNC<T>
1126
- L: FNC<T>
1127
- XL: FNC<T>
1128
- MAX: FNC<T>
1124
+ S: React.FC<T>
1125
+ R: React.FC<T>
1126
+ L: React.FC<T>
1127
+ XL: React.FC<T>
1128
+ MAX: React.FC<T>
1129
1129
  }
1130
1130
 
1131
1131
  type Sizes = 'S' | 'R' | 'L' | 'XL' | 'MAX'
@@ -1179,9 +1179,9 @@ declare global {
1179
1179
  animationDelay?: number
1180
1180
  }
1181
1181
  type Methods = {
1182
- FadeIn: FNC<FadeUniParams>
1183
- FadeUp: FNC<FadeUniParams>
1184
- // NumberCount: FNC<{
1182
+ FadeIn: React.FC<FadeUniParams>
1183
+ FadeUp: React.FC<FadeUniParams>
1184
+ // NumberCount: React.FC<{
1185
1185
  // from: number
1186
1186
  // to: number
1187
1187
  // ms:number
package/@types/module.tsx CHANGED
@@ -1,2 +1 @@
1
- declare module "*.scss";
2
- declare module "react-dom";
1
+ declare module "*.scss";