amotify 0.0.9 → 0.0.11
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.
- package/@types/_.tsx +1 -2
- package/@types/amot.tsx +125 -84
- package/@types/fn.tsx +221 -221
- package/@types/module.tsx +1 -2
- package/dist/amotify.js +1 -1
- package/package.json +8 -4
- package/src/@global.tsx +7 -7
- package/src/@molecules.tsx +1 -0
- package/src/atoms/FAIcon/parts.tsx +4 -3
- package/src/atoms/Logo/parts.tsx +1 -0
- package/src/atoms/Various/parts.tsx +9 -8
- package/src/config.tsx +4 -4
- package/src/functions/Button/_.tsx +1 -0
- package/src/functions/Cropper/parts.tsx +12 -16
- package/src/functions/Effects/Fade.tsx +4 -9
- package/src/functions/Input/Chips/Selector.tsx +13 -16
- package/src/functions/Input/Chips/_.tsx +10 -11
- package/src/functions/Input/DigitCharacters.tsx +3 -7
- package/src/functions/Input/File/_.tsx +9 -12
- package/src/functions/Input/Hidden.tsx +4 -3
- package/src/functions/Input/List/_.tsx +5 -9
- package/src/functions/Input/Segmented/_.tsx +1 -1
- package/src/functions/Input/Select/_.tsx +5 -8
- package/src/functions/Input/Slider/_.tsx +6 -9
- package/src/functions/Input/Switch/_.tsx +3 -7
- package/src/functions/Input/Text.tsx +4 -9
- package/src/functions/Input/TextArea.tsx +3 -7
- package/src/functions/Input/Time/Picker.tsx +7 -12
- package/src/functions/Input/Time/_.tsx +10 -14
- package/src/functions/Input/_.tsx +8 -13
- package/src/functions/Input/core.tsx +10 -15
- package/src/functions/Inputs/text.tsx +1 -0
- package/src/functions/Layout/PageNotFound.tsx +2 -1
- package/src/functions/Layout/PageRouter.tsx +23 -32
- package/src/functions/Layout/PageViewController/parts.tsx +2 -7
- package/src/functions/Layout/Plate.tsx +2 -1
- package/src/functions/Layout/SwipeView/parts.tsx +9 -13
- package/src/functions/Layout/TabBar.tsx +2 -6
- package/src/functions/Loader/corner.tsx +4 -10
- package/src/functions/Loader/mini.tsx +7 -10
- package/src/functions/Loader/parts.tsx +6 -9
- package/src/functions/Loader/top.tsx +4 -10
- package/src/functions/Sheet/parts.tsx +12 -15
- package/src/functions/SnackBar/parts.tsx +10 -13
- package/src/functions/Table/Drag/parts.tsx +9 -12
- package/src/functions/Table/Normal/parts.tsx +4 -3
- package/src/functions/Table/_.tsx +10 -3
- package/src/functions/Tooltips/parts.tsx +1 -0
- package/src/global/LaunchReactApplication.tsx +4 -3
- package/src/global/styleConverter.tsx +2 -2
- package/src/launch.tsx +8 -3
- package/src/molecules/Accordion/parts.tsx +6 -10
- package/src/molecules/LinkifyText/parts.tsx +2 -1
- package/src/molecules/List.tsx +2 -1
- package/src/organisms/DisplayStyleInput/darkmode.tsx +2 -7
- package/src/organisms/DisplayStyleInput/themeColor.tsx +3 -8
- package/src/templates/PlayGround/parts.tsx +20 -26
- package/webpack.config.js +5 -5
- package/@types/index.tsx +0 -70
package/@types/_.tsx
CHANGED
package/@types/amot.tsx
CHANGED
|
@@ -1,11 +1,45 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
|
-
|
|
59
|
-
React: typeof React
|
|
60
|
-
|
|
61
|
-
|
|
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:
|
|
70
|
-
useRecycle:
|
|
71
|
-
LaunchReactApplication:
|
|
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 =
|
|
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 ]:
|
|
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 =
|
|
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 |
|
|
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:
|
|
203
|
-
|
|
204
|
-
Flex:
|
|
205
|
-
FlexBr:
|
|
206
|
-
|
|
207
|
-
Placeholder:
|
|
208
|
-
|
|
209
|
-
Grid:
|
|
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:
|
|
214
|
-
Paragraph:
|
|
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 =
|
|
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:
|
|
290
|
+
List: React.FC<mols.List.Params>
|
|
260
291
|
Accordion: mols.Accordion.SetParams
|
|
261
|
-
LinkifyText:
|
|
292
|
+
LinkifyText: React.FC<mols.LinkifyTextProps>
|
|
262
293
|
Text: {
|
|
263
|
-
NowrapSpan:
|
|
264
|
-
Title:
|
|
265
|
-
SubTitle:
|
|
266
|
-
ThirdTitle:
|
|
267
|
-
Paragraph:
|
|
268
|
-
Normal:
|
|
269
|
-
Description:
|
|
270
|
-
Supplement:
|
|
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:
|
|
303
|
+
Column: React.FC<atoms.FlexProps>
|
|
273
304
|
Row: {
|
|
274
|
-
Center:
|
|
275
|
-
Left:
|
|
276
|
-
Right:
|
|
277
|
-
Separate:
|
|
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:
|
|
316
|
+
Darkmode: React.FC<DarkmodeInput>
|
|
286
317
|
ThemeColor: {
|
|
287
|
-
ALL:
|
|
288
|
-
Basics:
|
|
289
|
-
Originals:
|
|
290
|
-
Brands:
|
|
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:
|
|
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
|
}
|