amotify 0.0.13 → 0.0.15
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/amot.tsx +48 -63
- package/@types/fn.tsx +10 -16
- package/@types/state.tsx +2 -2
- package/dist/amotify.js +1 -1
- package/dist/amotify.min.css +12 -13
- package/dist/coreVender.js +14 -0
- package/package.json +27 -22
- package/src/@atoms.tsx +4 -2
- package/src/@global.tsx +5 -0
- package/src/@jsminAmotifyExtension/fetch.tsx +2 -0
- package/src/@jsminAmotifyExtension/variables.tsx +4 -0
- package/src/@organisms.tsx +1 -5
- package/src/@styles/UniStyling.scss +6 -0
- package/src/@styles/init.scss +42 -106
- package/src/@variables.tsx +70 -0
- package/src/atoms/FAI/parts.tsx +136 -0
- package/src/atoms/Logo/style.module.scss +6 -5
- package/src/atoms/Various/style.module.scss +11 -6
- package/src/config.tsx +31 -5
- package/src/functions/Button/_.tsx +27 -19
- package/src/functions/Button/style.module.scss +20 -22
- package/src/functions/Cropper/parts.tsx +18 -10
- package/src/functions/Cropper/style.module.scss +1 -0
- package/src/functions/Effects/Ripple.tsx +1 -1
- package/src/functions/Input/Chips/Selector.tsx +9 -9
- package/src/functions/Input/Chips/_.tsx +10 -3
- package/src/functions/Input/DigitCharacters.tsx +13 -15
- package/src/functions/Input/File/_.tsx +37 -67
- package/src/functions/Input/Hidden.tsx +3 -1
- package/src/functions/Input/List/_.tsx +8 -8
- package/src/functions/Input/Select/_.tsx +8 -7
- package/src/functions/Input/Select/style.module.scss +1 -0
- package/src/functions/Input/Slider/_.tsx +5 -5
- package/src/functions/Input/Switch/_.tsx +11 -8
- package/src/functions/Input/Text.tsx +3 -4
- package/src/functions/Input/TextArea.tsx +3 -3
- package/src/functions/Input/Time/Picker.tsx +10 -17
- package/src/functions/Input/Time/_.tsx +3 -2
- package/src/functions/Input/Time/style.module.scss +9 -2
- package/src/functions/Input/_.tsx +53 -42
- package/src/functions/Input/core.tsx +53 -54
- package/src/functions/Input/style.module.scss +66 -8
- package/src/functions/Layout/PageNotFound.tsx +2 -4
- package/src/functions/Layout/PageRouter.tsx +2 -3
- package/src/functions/Layout/RootViewController/parts.tsx +4 -16
- package/src/functions/Loader/parts.tsx +3 -1
- package/src/functions/Loader/style.module.scss +2 -1
- package/src/functions/Sheet/parts.tsx +45 -42
- package/src/functions/Sheet/style.module.scss +18 -25
- package/src/functions/SnackBar/parts.tsx +5 -3
- package/src/functions/SnackBar/style.module.scss +1 -1
- package/src/functions/Table/Data/parts.tsx +18 -12
- package/src/functions/Table/Drag/parts.tsx +7 -9
- package/src/functions/Table/_.tsx +2 -2
- package/src/global/LaunchReactApplication.tsx +17 -5
- package/src/launch.tsx +12 -5
- package/src/molecules/Accordion/parts.tsx +4 -1
- package/src/molecules/LinkifyText/parts.tsx +2 -3
- package/src/preload.tsx +19 -30
- package/tsconfig.json +19 -8
- package/webpack.config.js +16 -5
- package/src/atoms/FAIcon/parts.tsx +0 -118
- package/src/atoms/FAIcon/style.module.scss +0 -8
- package/src/organisms/DisplayStyleInput/_.tsx +0 -18
- package/src/organisms/DisplayStyleInput/darkmode.tsx +0 -107
- package/src/organisms/DisplayStyleInput/themeColor.tsx +0 -205
package/@types/amot.tsx
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
|
|
2
|
+
import * as FontawesomeCore from '@fortawesome/fontawesome-svg-core';
|
|
3
|
+
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import ReactDOM from 'react-dom';
|
|
6
|
+
import * as ReactRouterDOM from 'react-router-dom';
|
|
7
|
+
|
|
1
8
|
export { }
|
|
2
9
|
declare global {
|
|
3
10
|
type ReactElement = React.ReactNode | React.ReactNode[]
|
|
@@ -35,6 +42,19 @@ declare global {
|
|
|
35
42
|
darkMode( value: amotify.DarkModeTypes ): void
|
|
36
43
|
roundness( value: amotify.RoundnessTypes ): void
|
|
37
44
|
}
|
|
45
|
+
variables: {
|
|
46
|
+
darkmodeColors: {
|
|
47
|
+
light: string
|
|
48
|
+
dark: string
|
|
49
|
+
dim: string
|
|
50
|
+
auto(): string
|
|
51
|
+
}
|
|
52
|
+
themeColors: {
|
|
53
|
+
[ key in amotify.ThemeColorTypes ]: {
|
|
54
|
+
( alfa?: number ): string
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
38
58
|
readExtraCDN( url: string ): Promise<boolean>
|
|
39
59
|
}
|
|
40
60
|
}
|
|
@@ -45,6 +65,7 @@ declare global {
|
|
|
45
65
|
baseElement?: HTMLElement | string
|
|
46
66
|
reactElement: ReactElement
|
|
47
67
|
nonRouter?: boolean
|
|
68
|
+
isRoot?: boolean
|
|
48
69
|
appearances?: {
|
|
49
70
|
roundness?: RoundnessTypes
|
|
50
71
|
themeColor?: amotify.ThemeColorTypes
|
|
@@ -88,9 +109,9 @@ declare global {
|
|
|
88
109
|
}
|
|
89
110
|
|
|
90
111
|
interface Methods {
|
|
91
|
-
React: typeof
|
|
92
|
-
ReactDOM: typeof
|
|
93
|
-
ReactRouterDOM:
|
|
112
|
+
React: typeof React
|
|
113
|
+
ReactDOM: typeof ReactDOM
|
|
114
|
+
ReactRouterDOM: typeof ReactRouterDOM
|
|
94
115
|
StyleConverter: {
|
|
95
116
|
ReadStyleSet: StyleConverter.ReadStyleSet
|
|
96
117
|
ToClassName: StyleConverter.ToClassName
|
|
@@ -126,44 +147,39 @@ declare global {
|
|
|
126
147
|
}
|
|
127
148
|
} & React.HTMLAttributes<HTMLDivElement>
|
|
128
149
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
type
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
isDuotoneIcon?: boolean
|
|
139
|
-
|
|
140
|
-
iconAnimation?: false | 'beat' | 'beat-fade' | 'bounce' | 'fade' | 'flip' | 'shake' | 'spin' | 'spin-reverse' | 'spin-pulse'
|
|
141
|
-
isBrandIcon?: boolean
|
|
142
|
-
d?: string
|
|
143
|
-
} & React.HTMLAttributes<HTMLDivElement>
|
|
144
|
-
type ShortCuts = {
|
|
145
|
-
[ key in ShortCutNames ]: React.FC<Omit<FAIconFNC,'d'>>
|
|
150
|
+
|
|
151
|
+
namespace FAI {
|
|
152
|
+
type Method = React.FC<FAIParams> & Shortcuts;
|
|
153
|
+
type FAIParams = amotifyBasicElement & {
|
|
154
|
+
icon: FontawesomeCore.IconProp
|
|
155
|
+
iconParams?: Omit<FontAwesomeIconProps,'icon'>
|
|
156
|
+
};
|
|
157
|
+
type Shortcuts = {
|
|
158
|
+
[ key in ShortCutNames ]: React.FC<Omit<FAIParams,'icon'>>
|
|
146
159
|
}
|
|
160
|
+
|
|
147
161
|
type ShortCutNames =
|
|
148
|
-
'User' | 'Times' |
|
|
162
|
+
'User' | 'Times' |
|
|
149
163
|
|
|
150
164
|
'AngleRight' | 'AngleLeft' | 'AngleUp' | 'AngleDown' |
|
|
151
165
|
'ChevronLeft' | 'ChevronRight' | 'ChevronUp' | 'ChevronDown' |
|
|
152
166
|
'CaretLeft' | 'CaretRight' | 'CaretUp' | 'CaretDown' |
|
|
153
167
|
'ArrowLeft' | 'ArrowRight' | 'ArrowUp' | 'ArrowDown' |
|
|
154
168
|
|
|
155
|
-
'Rotate' | '
|
|
156
|
-
'Play' | 'Pause' | 'Stop' | 'ForwardStep' | 'BackwardStep' |
|
|
169
|
+
'Rotate' | 'Redo' |
|
|
157
170
|
'Check' | 'CheckCircle' |
|
|
158
|
-
'Question' | 'QuestionCircle' |
|
|
159
|
-
'
|
|
171
|
+
'Question' | 'QuestionCircle' |
|
|
172
|
+
'Exclamation' | 'ExclamationTriangle' |
|
|
173
|
+
'Home' | 'Share' |
|
|
160
174
|
'Search' | 'YenSign' | 'Heart' | 'Star' |
|
|
161
|
-
'Edit' | 'Pen' | 'Copy' | '
|
|
162
|
-
'
|
|
175
|
+
'Edit' | 'Pen' | 'Copy' | 'File' |
|
|
176
|
+
'TrashAlt' | 'Bars' | 'Download' |
|
|
163
177
|
'Link' | 'LinkSlash' | 'ExternalLinkAlt' |
|
|
164
178
|
'Gear' |
|
|
165
|
-
'Plus' | 'Minus' |
|
|
166
|
-
'
|
|
179
|
+
'Plus' | 'Minus' |
|
|
180
|
+
'EllipsisH' | 'EllipsisV' |
|
|
181
|
+
'PaperPlane' |
|
|
182
|
+
'Image';
|
|
167
183
|
}
|
|
168
184
|
|
|
169
185
|
namespace Image {
|
|
@@ -191,7 +207,6 @@ declare global {
|
|
|
191
207
|
}
|
|
192
208
|
}
|
|
193
209
|
|
|
194
|
-
|
|
195
210
|
namespace Logos {
|
|
196
211
|
type Methods = {
|
|
197
212
|
Icon: ( params: Params ) => JSX.Element
|
|
@@ -239,7 +254,7 @@ declare global {
|
|
|
239
254
|
|
|
240
255
|
Grid: React.FC<atoms.GridProps>
|
|
241
256
|
|
|
242
|
-
|
|
257
|
+
FAI: FAI.Method
|
|
243
258
|
|
|
244
259
|
Span: React.FC<atoms.SpanProps>
|
|
245
260
|
Paragraph: React.FC<atoms.ParagraphProps>
|
|
@@ -253,6 +268,7 @@ declare global {
|
|
|
253
268
|
namespace Accordion {
|
|
254
269
|
type Params = {
|
|
255
270
|
defaultOpen?: boolean
|
|
271
|
+
override?: boolean
|
|
256
272
|
accordionID?: string
|
|
257
273
|
slideAnimation?: 'none' | 'fast' | 'slow'
|
|
258
274
|
children: ReactElement
|
|
@@ -311,37 +327,6 @@ declare global {
|
|
|
311
327
|
}
|
|
312
328
|
|
|
313
329
|
namespace orgs {
|
|
314
|
-
namespace DisplayStyleInput {
|
|
315
|
-
type Methods = {
|
|
316
|
-
Darkmode: React.FC<DarkmodeInput>
|
|
317
|
-
ThemeColor: {
|
|
318
|
-
ALL: React.FC<ThemeColorInput>
|
|
319
|
-
Basics: React.FC<ThemeColorInput>
|
|
320
|
-
Originals: React.FC<ThemeColorInput>
|
|
321
|
-
Brands: React.FC<ThemeColorInput>
|
|
322
|
-
Keys: {
|
|
323
|
-
Brands: ColorIconParams[]
|
|
324
|
-
Basics: ColorIconParams[]
|
|
325
|
-
Originals: ColorIconParams[]
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
type ColorIconParams = {
|
|
330
|
-
key: string
|
|
331
|
-
icon: ReactElement
|
|
332
|
-
label?: ReactElement
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
type DarkmodeInput = atoms.BoxInput & {
|
|
336
|
-
onUpdate( params: amotify.DarkModeTypes ): void
|
|
337
|
-
}
|
|
338
|
-
type ThemeColorInput = atoms.BoxInput & {
|
|
339
|
-
onUpdate( params: amotify.ThemeColorTypes ): void
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
type Methods = {
|
|
343
|
-
DisplayStyleInput: DisplayStyleInput.Methods
|
|
344
|
-
}
|
|
345
330
|
}
|
|
346
331
|
|
|
347
332
|
namespace temps {
|
|
@@ -355,7 +340,7 @@ declare global {
|
|
|
355
340
|
global: amotify.global.Methods
|
|
356
341
|
atoms: amotify.atoms.Methods
|
|
357
342
|
mols: amotify.mols.Methods
|
|
358
|
-
orgs:
|
|
343
|
+
orgs: {}
|
|
359
344
|
temps: amotify.temps.Methods
|
|
360
345
|
fn: amotify.fn.Methods
|
|
361
346
|
}
|
package/@types/fn.tsx
CHANGED
|
@@ -329,6 +329,7 @@ declare global {
|
|
|
329
329
|
|
|
330
330
|
Comps: {
|
|
331
331
|
RequiredSign: React.FC<amotify.atoms.SpanProps>
|
|
332
|
+
RequiredShortSign: React.FC<amotify.atoms.SpanProps>
|
|
332
333
|
OmitSign: React.FC<amotify.atoms.SpanProps>
|
|
333
334
|
LeftIndicator: React.FC<IndicatorParams>
|
|
334
335
|
RightIndicator: React.FC<IndicatorParams>
|
|
@@ -347,13 +348,15 @@ declare global {
|
|
|
347
348
|
name?: string
|
|
348
349
|
form?: string
|
|
349
350
|
|
|
350
|
-
|
|
351
|
+
status_id?: string
|
|
351
352
|
componentID?: string
|
|
352
353
|
|
|
353
354
|
override?: 'force' | 'beforeModified' | 'never'
|
|
354
355
|
|
|
355
356
|
required?: boolean
|
|
356
357
|
|
|
358
|
+
enableFormSubmit?: boolean
|
|
359
|
+
|
|
357
360
|
checkValidationAtFirst?: boolean
|
|
358
361
|
onValidate?: Validation.OnValidate
|
|
359
362
|
onUpdateValue?: OnUpdateValue
|
|
@@ -380,6 +383,8 @@ declare global {
|
|
|
380
383
|
name?: string
|
|
381
384
|
form?: string
|
|
382
385
|
|
|
386
|
+
enableFormSubmit?: boolean
|
|
387
|
+
|
|
383
388
|
id?: string
|
|
384
389
|
value?: string | number | plainObject
|
|
385
390
|
}
|
|
@@ -418,8 +423,6 @@ declare global {
|
|
|
418
423
|
max?: number | null
|
|
419
424
|
maxLength?: number | null
|
|
420
425
|
|
|
421
|
-
enable_form_submit?: boolean
|
|
422
|
-
|
|
423
426
|
autoComplete?: 'off' | 'none' | string
|
|
424
427
|
autoCapitalize?: 'off' | 'none' | string
|
|
425
428
|
|
|
@@ -448,7 +451,6 @@ declare global {
|
|
|
448
451
|
|
|
449
452
|
disabled?: boolean
|
|
450
453
|
|
|
451
|
-
enable_form_submit?: boolean
|
|
452
454
|
|
|
453
455
|
value?: string | number
|
|
454
456
|
|
|
@@ -471,7 +473,6 @@ declare global {
|
|
|
471
473
|
tabIndex?: number
|
|
472
474
|
id?: string
|
|
473
475
|
|
|
474
|
-
enable_form_submit?: boolean
|
|
475
476
|
|
|
476
477
|
value?: string | number
|
|
477
478
|
|
|
@@ -510,7 +511,6 @@ declare global {
|
|
|
510
511
|
|
|
511
512
|
disabled?: boolean
|
|
512
513
|
|
|
513
|
-
enable_form_submit?: boolean
|
|
514
514
|
|
|
515
515
|
value?: string | [ string,string ]
|
|
516
516
|
min?: string
|
|
@@ -559,7 +559,6 @@ declare global {
|
|
|
559
559
|
|
|
560
560
|
disabled?: boolean
|
|
561
561
|
|
|
562
|
-
enable_form_submit?: boolean
|
|
563
562
|
|
|
564
563
|
value?: ValueProps
|
|
565
564
|
options: OptionProps[]
|
|
@@ -568,13 +567,13 @@ declare global {
|
|
|
568
567
|
|
|
569
568
|
leftIndicator?: ReactElement | false
|
|
570
569
|
rightIndicator?: ReactElement | false
|
|
570
|
+
leftIcon?: ReactElement | false
|
|
571
|
+
rightIcon?: ReactElement | false
|
|
571
572
|
|
|
572
573
|
enableUnSelected?: boolean
|
|
573
574
|
|
|
574
575
|
rightIconStyles?: amotifyUniStyleParams
|
|
575
576
|
|
|
576
|
-
leftIcon?: ReactElement | false
|
|
577
|
-
rightIcon?: ReactElement | false
|
|
578
577
|
}
|
|
579
578
|
|
|
580
579
|
type ValueProps = string | number | boolean | plainObject | void | null
|
|
@@ -603,7 +602,6 @@ declare global {
|
|
|
603
602
|
iconType?: 'radio' | 'checkbox'
|
|
604
603
|
minSelect?: number
|
|
605
604
|
|
|
606
|
-
enable_form_submit?: boolean
|
|
607
605
|
|
|
608
606
|
disabled?: boolean
|
|
609
607
|
value?: any | any[]
|
|
@@ -775,7 +773,6 @@ declare global {
|
|
|
775
773
|
showAlways?: boolean
|
|
776
774
|
}
|
|
777
775
|
|
|
778
|
-
enable_form_submit?: boolean
|
|
779
776
|
}
|
|
780
777
|
|
|
781
778
|
type ColorTypes = amotify.ThemeColorTypes | 'theme' | 'posi' | 'nega' | 'warn'
|
|
@@ -794,9 +791,7 @@ declare global {
|
|
|
794
791
|
appearance?: 'material' | 'applely'
|
|
795
792
|
disabled?: boolean
|
|
796
793
|
value?: boolean
|
|
797
|
-
icon?:
|
|
798
|
-
|
|
799
|
-
enable_form_submit?: boolean
|
|
794
|
+
icon?: ReactElement
|
|
800
795
|
}
|
|
801
796
|
|
|
802
797
|
type ColorTypes = amotify.ThemeColorTypes | 'theme' | 'posi' | 'nega' | 'warn'
|
|
@@ -829,7 +824,6 @@ declare global {
|
|
|
829
824
|
disabled?: boolean
|
|
830
825
|
value?: boolean
|
|
831
826
|
|
|
832
|
-
enable_form_submit?: boolean
|
|
833
827
|
|
|
834
828
|
cellStyles?: amotifyUniStyleParams
|
|
835
829
|
cellClassName?: string
|
|
@@ -941,7 +935,6 @@ declare global {
|
|
|
941
935
|
type BorderToFill = { color?: Colors }
|
|
942
936
|
}
|
|
943
937
|
|
|
944
|
-
|
|
945
938
|
type UniParams = amotifyBasicElement & {
|
|
946
939
|
tabIndex?: number
|
|
947
940
|
children?: ReactElement
|
|
@@ -998,6 +991,7 @@ declare global {
|
|
|
998
991
|
type UniParams = {
|
|
999
992
|
sheetID?: string
|
|
1000
993
|
sheetGroups?: string | string[]
|
|
994
|
+
backgroundEffect?: boolean
|
|
1001
995
|
content: ReactElement | {
|
|
1002
996
|
(): JSX.Element
|
|
1003
997
|
}
|
package/@types/state.tsx
CHANGED
|
@@ -87,7 +87,7 @@ declare global {
|
|
|
87
87
|
type BorderParams = boolean | '0.trans' | '1.thin' | '2.normal' | '3.strong' | 'unset'
|
|
88
88
|
type WidthParams = 0 | 1 | 2 | 3 | 4
|
|
89
89
|
type ColorParams = '0.trans' | '1.thin' | '2.normal' | '3.strong' | 'theme' | 'posi' | 'nega' | 'warn' | 'white'
|
|
90
|
-
type StyleParams = 'solid' | 'dashed' | 'double' | 'dotted'
|
|
90
|
+
type StyleParams = 'solid' | 'dashed' | 'double' | 'dotted' | 'none'
|
|
91
91
|
type RadiusParams = 0 | '1/3' | '2/3' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 'sphere' | 'inherit' |
|
|
92
92
|
'1.tone.primary' | '2.tone.secondary' | '3.tone.tertiary'
|
|
93
93
|
}
|
|
@@ -125,7 +125,7 @@ declare global {
|
|
|
125
125
|
|
|
126
126
|
textAlign?: 'left' | 'center' | 'right'
|
|
127
127
|
}
|
|
128
|
-
type WeightParams = '1.lighter' | '2.normal' | '3.bold'
|
|
128
|
+
type WeightParams = '1.lighter' | '2.normal' | '3.bold' | 'inherit'
|
|
129
129
|
type ColorParams =
|
|
130
130
|
Others.UniColors |
|
|
131
131
|
'1.clear' | '2.normal' | '3.blur' | '4.thin' | '5.translucent' | '6.clear' |
|