amotify 0.0.4 → 0.0.6
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/dist/@jsminAmotifyExtension/formCollect.js +1 -1
- package/dist/Atoms/Logo/parts.js +1 -1
- package/dist/Atoms/Various/parts.js +1 -1
- package/dist/Functions/Button/_.js +1 -1
- package/dist/Functions/Cropper/parts.js +4 -4
- package/dist/Functions/Effects/Fade.js +2 -2
- package/dist/Functions/Input/Chips/Selector.js +4 -4
- package/dist/Functions/Input/Chips/_.js +3 -3
- package/dist/Functions/Input/DigitCharacters.js +3 -3
- package/dist/Functions/Input/File/_.js +4 -4
- package/dist/Functions/Input/List/_.js +3 -3
- package/dist/Functions/Input/Segmented/_.js +1 -1
- package/dist/Functions/Input/Select/_.js +2 -2
- package/dist/Functions/Input/Slider/_.js +3 -3
- package/dist/Functions/Input/Switch/_.js +4 -4
- package/dist/Functions/Input/Text.js +2 -2
- package/dist/Functions/Input/TextArea.js +1 -1
- package/dist/Functions/Input/Time/Picker.js +4 -4
- package/dist/Functions/Input/Time/_.js +3 -3
- package/dist/Functions/Input/_.js +4 -4
- package/dist/Functions/Input/core.js +4 -4
- package/dist/Functions/Inputs/text.js +1 -1
- package/dist/Functions/Layout/PageNotFound.js +3 -3
- package/dist/Functions/Layout/PageRouter.js +2 -2
- package/dist/Functions/Layout/PageViewController/parts.js +2 -2
- package/dist/Functions/Layout/Plate.js +1 -1
- package/dist/Functions/Layout/RootViewController/parts.js +4 -4
- package/dist/Functions/Layout/SwipeView/parts.js +2 -2
- package/dist/Functions/Layout/TabBar.js +3 -3
- package/dist/Functions/Loader/corner.js +2 -2
- package/dist/Functions/Loader/mini.js +2 -2
- package/dist/Functions/Loader/parts.js +1 -1
- package/dist/Functions/Loader/top.js +2 -2
- package/dist/Functions/Sheet/parts.js +4 -4
- package/dist/Functions/SnackBar/parts.js +4 -4
- package/dist/Functions/Table/Data/parts.js +4 -4
- package/dist/Functions/Table/Drag/parts.js +3 -3
- package/dist/Functions/Table/_.js +2 -2
- package/dist/Functions/Tooltips/parts.js +2 -2
- package/dist/Molecules/@export.js +1 -1
- package/dist/Molecules/Accordion/parts.js +2 -2
- package/dist/Molecules/LinkifyText/parts.js +2 -2
- package/dist/Molecules/List.js +1 -1
- package/dist/Organisms/DisplayStyleInput/darkmode.js +4 -4
- package/dist/Organisms/DisplayStyleInput/themeColor.js +4 -4
- package/dist/Templates/PlayGround/parts.js +5 -5
- package/dist/launch.js +6 -6
- package/package.json +6 -5
- package/public/amotify.js +310 -0
- package/public/amotify.min.css +12724 -0
- package/dist/src/@jsminAmotifyExtension/_.d.ts +0 -4
- package/dist/src/@jsminAmotifyExtension/fetch.d.ts +0 -9
- package/dist/src/@jsminAmotifyExtension/formCollect.d.ts +0 -1
- package/dist/src/@jsminAmotifyExtension/spreadSheet.d.ts +0 -4
- package/dist/src/@jsminAmotifyExtension/variables.d.ts +0 -0
- package/dist/src/@types/_.d.ts +0 -6
- package/dist/src/@types/amot.d.ts +0 -260
- package/dist/src/@types/fn.d.ts +0 -1040
- package/dist/src/@types/index.d.ts +0 -62
- package/dist/src/@types/jsminAmotifyExtension.d.ts +0 -134
- package/dist/src/@types/module.d.ts +0 -2
- package/dist/src/@types/state.d.ts +0 -145
- package/dist/src/Atoms/@export.d.ts +0 -4
- package/dist/src/Atoms/FAIcon/parts.d.ts +0 -2
- package/dist/src/Atoms/Logo/parts.d.ts +0 -1
- package/dist/src/Atoms/Various/parts.d.ts +0 -9
- package/dist/src/Functions/@export.d.ts +0 -12
- package/dist/src/Functions/Button/_.d.ts +0 -1
- package/dist/src/Functions/Cropper/parts.d.ts +0 -1
- package/dist/src/Functions/Effects/Fade.d.ts +0 -1
- package/dist/src/Functions/Effects/Ripple.d.ts +0 -1
- package/dist/src/Functions/Effects/_.d.ts +0 -3
- package/dist/src/Functions/Input/Chips/Selector.d.ts +0 -1
- package/dist/src/Functions/Input/Chips/_.d.ts +0 -2
- package/dist/src/Functions/Input/DigitCharacters.d.ts +0 -1
- package/dist/src/Functions/Input/File/_.d.ts +0 -2
- package/dist/src/Functions/Input/Hidden.d.ts +0 -1
- package/dist/src/Functions/Input/List/_.d.ts +0 -1
- package/dist/src/Functions/Input/Segmented/_.d.ts +0 -1
- package/dist/src/Functions/Input/Select/_.d.ts +0 -1
- package/dist/src/Functions/Input/Slider/_.d.ts +0 -1
- package/dist/src/Functions/Input/Switch/_.d.ts +0 -1
- package/dist/src/Functions/Input/Text.d.ts +0 -5
- package/dist/src/Functions/Input/TextArea.d.ts +0 -1
- package/dist/src/Functions/Input/Time/Picker.d.ts +0 -1
- package/dist/src/Functions/Input/Time/_.d.ts +0 -2
- package/dist/src/Functions/Input/_.d.ts +0 -5
- package/dist/src/Functions/Input/core.d.ts +0 -34
- package/dist/src/Functions/Inputs/_.d.ts +0 -3
- package/dist/src/Functions/Inputs/text.d.ts +0 -12
- package/dist/src/Functions/Layout/PageNotFound.d.ts +0 -1
- package/dist/src/Functions/Layout/PageRouter.d.ts +0 -2
- package/dist/src/Functions/Layout/PageViewController/parts.d.ts +0 -1
- package/dist/src/Functions/Layout/Plate.d.ts +0 -1
- package/dist/src/Functions/Layout/RootViewController/parts.d.ts +0 -1
- package/dist/src/Functions/Layout/SwipeView/parts.d.ts +0 -2
- package/dist/src/Functions/Layout/TabBar.d.ts +0 -1
- package/dist/src/Functions/Layout/_.d.ts +0 -2
- package/dist/src/Functions/Loader/corner.d.ts +0 -1
- package/dist/src/Functions/Loader/mini.d.ts +0 -33
- package/dist/src/Functions/Loader/parts.d.ts +0 -3
- package/dist/src/Functions/Loader/top.d.ts +0 -1
- package/dist/src/Functions/Sheet/parts.d.ts +0 -2
- package/dist/src/Functions/SnackBar/parts.d.ts +0 -2
- package/dist/src/Functions/Table/Data/parts.d.ts +0 -3
- package/dist/src/Functions/Table/Drag/parts.d.ts +0 -1
- package/dist/src/Functions/Table/Normal/parts.d.ts +0 -1
- package/dist/src/Functions/Table/_.d.ts +0 -9
- package/dist/src/Functions/Tooltips/parts.d.ts +0 -2
- package/dist/src/Global/@export.d.ts +0 -12
- package/dist/src/Global/LaunchReactApplication.d.ts +0 -1
- package/dist/src/Global/styleConverter.d.ts +0 -2
- package/dist/src/Molecules/@export.d.ts +0 -21
- package/dist/src/Molecules/Accordion/parts.d.ts +0 -2
- package/dist/src/Molecules/LinkifyText/parts.d.ts +0 -1
- package/dist/src/Molecules/List.d.ts +0 -1
- package/dist/src/Organisms/@export.d.ts +0 -2
- package/dist/src/Organisms/DisplayStyleInput/_.d.ts +0 -1
- package/dist/src/Organisms/DisplayStyleInput/darkmode.d.ts +0 -1
- package/dist/src/Organisms/DisplayStyleInput/themeColor.d.ts +0 -27
- package/dist/src/Templates/@export.d.ts +0 -2
- package/dist/src/Templates/PlayGround/parts.d.ts +0 -1
- package/dist/src/config.d.ts +0 -16
- package/dist/src/launch.d.ts +0 -9
- package/dist/src/preload.d.ts +0 -1
- package/src/@jsminAmotifyExtension/_.tsx +0 -4
- package/src/@jsminAmotifyExtension/fetch.tsx +0 -107
- package/src/@jsminAmotifyExtension/formCollect.tsx +0 -89
- package/src/@jsminAmotifyExtension/spreadSheet.tsx +0 -159
- package/src/@jsminAmotifyExtension/variables.tsx +0 -130
- package/src/@styles/@app.scss +0 -4
- package/src/@styles/@variables/customProps.scss +0 -109
- package/src/@styles/@variables/styleSet.scss +0 -38
- package/src/@styles/@variables/themeColor.scss +0 -71
- package/src/@styles/@variables/var.scss +0 -171
- package/src/@styles/UniStyling.scss +0 -996
- package/src/@styles/init.scss +0 -154
- package/src/@types/_.tsx +0 -6
- package/src/@types/amot.tsx +0 -323
- package/src/@types/fn.tsx +0 -1210
- package/src/@types/index.tsx +0 -74
- package/src/@types/jsminAmotifyExtension.tsx +0 -143
- package/src/@types/module.tsx +0 -2
- package/src/@types/state.tsx +0 -199
- package/src/Atoms/@export.tsx +0 -32
- package/src/Atoms/FAIcon/parts.tsx +0 -117
- package/src/Atoms/FAIcon/style.module.scss +0 -9
- package/src/Atoms/Logo/parts.tsx +0 -335
- package/src/Atoms/Logo/style.module.scss +0 -96
- package/src/Atoms/Various/parts.tsx +0 -157
- package/src/Atoms/Various/style.module.scss +0 -40
- package/src/Functions/@export.tsx +0 -29
- package/src/Functions/Button/_.tsx +0 -305
- package/src/Functions/Button/style.module.scss +0 -183
- package/src/Functions/Cropper/parts.tsx +0 -1061
- package/src/Functions/Cropper/style.module.scss +0 -62
- package/src/Functions/Effects/Fade.tsx +0 -81
- package/src/Functions/Effects/Ripple.tsx +0 -141
- package/src/Functions/Effects/_.tsx +0 -33
- package/src/Functions/Effects/style.module.scss +0 -83
- package/src/Functions/Input/Chips/Selector.tsx +0 -451
- package/src/Functions/Input/Chips/_.tsx +0 -286
- package/src/Functions/Input/Chips/style.module.scss +0 -6
- package/src/Functions/Input/DigitCharacters.tsx +0 -241
- package/src/Functions/Input/File/_.tsx +0 -596
- package/src/Functions/Input/File/style.module.scss +0 -34
- package/src/Functions/Input/Hidden.tsx +0 -18
- package/src/Functions/Input/List/_.tsx +0 -383
- package/src/Functions/Input/List/style.module.scss +0 -84
- package/src/Functions/Input/Segmented/_.tsx +0 -238
- package/src/Functions/Input/Segmented/style.module.scss +0 -81
- package/src/Functions/Input/Select/_.tsx +0 -225
- package/src/Functions/Input/Select/style.module.scss +0 -10
- package/src/Functions/Input/Slider/_.tsx +0 -519
- package/src/Functions/Input/Slider/style.module.scss +0 -67
- package/src/Functions/Input/Switch/_.tsx +0 -177
- package/src/Functions/Input/Switch/style.module.scss +0 -18
- package/src/Functions/Input/Text.tsx +0 -437
- package/src/Functions/Input/TextArea.tsx +0 -115
- package/src/Functions/Input/Time/Picker.tsx +0 -950
- package/src/Functions/Input/Time/_.tsx +0 -736
- package/src/Functions/Input/Time/style.module.scss +0 -72
- package/src/Functions/Input/_.tsx +0 -793
- package/src/Functions/Input/core.tsx +0 -461
- package/src/Functions/Input/style.module.scss +0 -43
- package/src/Functions/Inputs/_.tsx +0 -5
- package/src/Functions/Inputs/style.module.scss +0 -15
- package/src/Functions/Inputs/text.tsx +0 -67
- package/src/Functions/Inputs/types.d.ts +0 -1
- package/src/Functions/Layout/PageNotFound.tsx +0 -81
- package/src/Functions/Layout/PageRouter.tsx +0 -107
- package/src/Functions/Layout/PageViewController/parts.tsx +0 -32
- package/src/Functions/Layout/Plate.tsx +0 -30
- package/src/Functions/Layout/RootViewController/parts.tsx +0 -290
- package/src/Functions/Layout/RootViewController/style.module.scss +0 -24
- package/src/Functions/Layout/SwipeView/parts.tsx +0 -380
- package/src/Functions/Layout/SwipeView/style.module.scss +0 -19
- package/src/Functions/Layout/TabBar.tsx +0 -64
- package/src/Functions/Layout/_.tsx +0 -20
- package/src/Functions/Loader/corner.tsx +0 -78
- package/src/Functions/Loader/mini.tsx +0 -117
- package/src/Functions/Loader/parts.tsx +0 -105
- package/src/Functions/Loader/style.module.scss +0 -222
- package/src/Functions/Loader/top.tsx +0 -90
- package/src/Functions/Sheet/parts.tsx +0 -972
- package/src/Functions/Sheet/style.module.scss +0 -235
- package/src/Functions/SnackBar/parts.tsx +0 -215
- package/src/Functions/SnackBar/style.module.scss +0 -25
- package/src/Functions/Table/Data/parts.tsx +0 -955
- package/src/Functions/Table/Drag/parts.tsx +0 -448
- package/src/Functions/Table/Normal/parts.tsx +0 -123
- package/src/Functions/Table/_.tsx +0 -170
- package/src/Functions/Table/style.module.scss +0 -92
- package/src/Functions/Tooltips/parts.tsx +0 -52
- package/src/Global/@export.tsx +0 -138
- package/src/Global/LaunchReactApplication.tsx +0 -30
- package/src/Global/exe.tsx +0 -0
- package/src/Global/styleConverter.tsx +0 -435
- package/src/Molecules/@export.tsx +0 -95
- package/src/Molecules/Accordion/parts.tsx +0 -146
- package/src/Molecules/Accordion/style.module.scss +0 -13
- package/src/Molecules/LinkifyText/parts.tsx +0 -54
- package/src/Molecules/List.tsx +0 -30
- package/src/Organisms/@export.tsx +0 -5
- package/src/Organisms/DisplayStyleInput/_.tsx +0 -18
- package/src/Organisms/DisplayStyleInput/darkmode.tsx +0 -112
- package/src/Organisms/DisplayStyleInput/themeColor.tsx +0 -210
- package/src/Templates/@export.tsx +0 -7
- package/src/Templates/PlayGround/parts.tsx +0 -115
- package/src/Templates/PlayGround/style.module.scss +0 -38
- package/src/config.tsx +0 -132
- package/src/launch.tsx +0 -100
- package/src/preload.tsx +0 -49
package/src/@types/index.tsx
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import * as ReactRouterDom from "react-router";
|
|
3
|
-
|
|
4
|
-
declare global {
|
|
5
|
-
type ReactElement = React.ReactNode | React.ReactNode[]
|
|
6
|
-
type React = typeof React
|
|
7
|
-
|
|
8
|
-
type FNC<P> = React.FC<P>;
|
|
9
|
-
|
|
10
|
-
interface plainObject {
|
|
11
|
-
[ index: string ]: any;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
namespace amotify {
|
|
15
|
-
type ToneTypes = 'default' | 'flat' | 'sharp'
|
|
16
|
-
type DarkModeTypes = 'light' | 'auto' | 'dark' | 'dim'
|
|
17
|
-
type ThemeColorTypes = 'comun' | 'leaf' | 'heart' | 'droplet' |
|
|
18
|
-
|
|
19
|
-
'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' |
|
|
20
|
-
|
|
21
|
-
'line' | 'twitter' | 'amazon' | 'facebook' | 'android' | 'slackBlue' | 'slackGreen' | 'slackRed' | 'slackYellow' | 'slackBase' | 'googleBlue' | 'googleGreen' | 'googleYellow' | 'googleRed'
|
|
22
|
-
|
|
23
|
-
type RoundnessTypes = 0 | 1 | 2 | 3 | 4 | 5
|
|
24
|
-
|
|
25
|
-
namespace config {
|
|
26
|
-
type Methods = {
|
|
27
|
-
version: string
|
|
28
|
-
tone: amotify.ToneTypes
|
|
29
|
-
themeColor: amotify.ThemeColorTypes
|
|
30
|
-
darkMode: amotify.DarkModeTypes
|
|
31
|
-
roundness: amotify.RoundnessTypes
|
|
32
|
-
device: {
|
|
33
|
-
isWhat: 'Windows' | 'Android' | 'iPhone' | 'iPad' | 'macOSX' | 'undefined'
|
|
34
|
-
isBreakpoint(): boolean
|
|
35
|
-
isPhonepoint(): boolean
|
|
36
|
-
isSystemDarkmode(): boolean
|
|
37
|
-
isPhone: boolean
|
|
38
|
-
isTouchDevice: boolean
|
|
39
|
-
isIOS: boolean
|
|
40
|
-
}
|
|
41
|
-
update: {
|
|
42
|
-
tone( value: amotify.ToneTypes ): void
|
|
43
|
-
themeColor( value: amotify.ThemeColorTypes ): void
|
|
44
|
-
darkMode( value: amotify.DarkModeTypes ): void
|
|
45
|
-
roundness( value: amotify.RoundnessTypes ): void
|
|
46
|
-
}
|
|
47
|
-
readExtraCDN( url: string ): Promise<boolean>
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
interface amotify {
|
|
52
|
-
config: amotify.config.Methods
|
|
53
|
-
glob: amotify.glob.Methods
|
|
54
|
-
atoms: amotify.atoms.Methods
|
|
55
|
-
mols: amotify.mols.Methods
|
|
56
|
-
orgs: amotify.orgs.Methods
|
|
57
|
-
temps: amotify.temps.Methods
|
|
58
|
-
fn: amotify.fn.Methods
|
|
59
|
-
}
|
|
60
|
-
var amotify: amotify;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
namespace _WebSocket {
|
|
64
|
-
interface Methods {
|
|
65
|
-
emit( path: string,data: any ): _WebSocket.Methods
|
|
66
|
-
on( path: string,data: {
|
|
67
|
-
( data: any ): void
|
|
68
|
-
} ): _WebSocket.Methods
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
var io: {
|
|
72
|
-
( url: string ): _WebSocket.Methods
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
export { }
|
|
2
|
-
|
|
3
|
-
declare global {
|
|
4
|
-
// Fetch
|
|
5
|
-
interface JsminExtension {
|
|
6
|
-
fetch: {
|
|
7
|
-
get: JsminExtension.Fetch.CoreParams
|
|
8
|
-
post: JsminExtension.Fetch.CoreParams
|
|
9
|
-
put: JsminExtension.Fetch.CoreParams
|
|
10
|
-
options: JsminExtension.Fetch.CoreParams
|
|
11
|
-
waitList: string[]
|
|
12
|
-
defaultHeaders: plainObject
|
|
13
|
-
defaultResultCallback?: {
|
|
14
|
-
( params: Jsmin.Fetch.Output ): void
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
namespace JsminExtension {
|
|
19
|
-
namespace Fetch {
|
|
20
|
-
type CoreParams = {
|
|
21
|
-
( params: JsminExtension.Fetch.Input,callback?: JsminExtension.Fetch.callback ): Promise<Jsmin.Fetch.Output>
|
|
22
|
-
}
|
|
23
|
-
type Input = {
|
|
24
|
-
key: string
|
|
25
|
-
topLoader?: boolean
|
|
26
|
-
cornerLoader?: boolean
|
|
27
|
-
trafficControl?: number
|
|
28
|
-
preventMultiRequest?: boolean
|
|
29
|
-
} & Omit<Jsmin.Fetch.Input,'method'>
|
|
30
|
-
type callback = {
|
|
31
|
-
( result: Jsmin.Fetch.Output ): void
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
// SpreadSheet
|
|
36
|
-
interface JsminExtension {
|
|
37
|
-
spreadSheet: {
|
|
38
|
-
readFromFile( file: amotify.fn.Input.Filer.CustomFile ): Promise<JsminExtension.SpreadSheet.Method>
|
|
39
|
-
readFromJson( v: JsminExtension.SpreadSheet.JsonTypes ): Promise<JsminExtension.SpreadSheet.Method>
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
namespace JsminExtension {
|
|
43
|
-
namespace SpreadSheet {
|
|
44
|
-
interface Instance {
|
|
45
|
-
fn: Method
|
|
46
|
-
prototype: Method
|
|
47
|
-
|
|
48
|
-
( v: any,a: string ): any
|
|
49
|
-
}
|
|
50
|
-
interface Method {
|
|
51
|
-
getWorkbook(): any
|
|
52
|
-
updateFileName( fileName: string ): void
|
|
53
|
-
updateMerges( merges: MergeTypes[][] ): void
|
|
54
|
-
updateStyles( styles: StyleTypes[][] ): void
|
|
55
|
-
toJson(): {
|
|
56
|
-
fileName: string
|
|
57
|
-
sheets: {
|
|
58
|
-
sheetName: string
|
|
59
|
-
rows: any[]
|
|
60
|
-
}[]
|
|
61
|
-
}
|
|
62
|
-
export( type?: 'xlsx' | 'csv' ): void
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
type JsonTypes = {
|
|
66
|
-
fileName: string
|
|
67
|
-
sheets: SheetParams[]
|
|
68
|
-
}
|
|
69
|
-
type SheetParams = {
|
|
70
|
-
sheetName: string
|
|
71
|
-
rows: RowParams[]
|
|
72
|
-
headers?: HeaderParams[]
|
|
73
|
-
merges?: MergeTypes[]
|
|
74
|
-
styles?: StyleTypes[]
|
|
75
|
-
}
|
|
76
|
-
type HeaderParams = {
|
|
77
|
-
key: string
|
|
78
|
-
value: string
|
|
79
|
-
}
|
|
80
|
-
type RowParams = {
|
|
81
|
-
[ key: string ]: string | number
|
|
82
|
-
}
|
|
83
|
-
type MergeTypes = [ string,string ] | [ null,null ]
|
|
84
|
-
type StyleTypes = {
|
|
85
|
-
type: 'cell' | 'row' | 'column'
|
|
86
|
-
target: string | number | ( string | number )[]
|
|
87
|
-
values: {
|
|
88
|
-
[ key: string ]: any
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Others
|
|
95
|
-
interface JsminExtension {
|
|
96
|
-
formCollect( form: string ): Promise<{
|
|
97
|
-
valid: boolean
|
|
98
|
-
data: plainObject
|
|
99
|
-
}>
|
|
100
|
-
NoticeHttpStatus( params: {
|
|
101
|
-
status: number
|
|
102
|
-
statusText: string
|
|
103
|
-
label: ReactElement
|
|
104
|
-
} & amotify.fn.SnackBar.AddParams ): void
|
|
105
|
-
|
|
106
|
-
copyToClipboard( data: any ): Promise<{
|
|
107
|
-
ok: boolean
|
|
108
|
-
body: any
|
|
109
|
-
}>
|
|
110
|
-
getCurrentLocation: {
|
|
111
|
-
(): Promise<JsminExtension.getCurrentLocationOutput>
|
|
112
|
-
}
|
|
113
|
-
CDNReader: {
|
|
114
|
-
( url: string ): void
|
|
115
|
-
}
|
|
116
|
-
ImageLoader: {
|
|
117
|
-
( dataUrl: string,img?: HTMLImageElement ): Promise<HTMLImageElement>
|
|
118
|
-
}
|
|
119
|
-
isJSXElement( v: any ): v is JSX.Element
|
|
120
|
-
}
|
|
121
|
-
namespace JsminExtension {
|
|
122
|
-
type getCurrentLocationOutput = {
|
|
123
|
-
ok: false
|
|
124
|
-
status: number
|
|
125
|
-
body: {
|
|
126
|
-
reason: any
|
|
127
|
-
}
|
|
128
|
-
} | {
|
|
129
|
-
ok: true
|
|
130
|
-
status: 200
|
|
131
|
-
body: {
|
|
132
|
-
lat: number
|
|
133
|
-
lng: number
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
type base64ToBlobTypeProps = 'image/png' | 'image/jpeg' | string
|
|
139
|
-
|
|
140
|
-
interface String {
|
|
141
|
-
zen2hanNumber(): string
|
|
142
|
-
}
|
|
143
|
-
}
|
package/src/@types/module.tsx
DELETED
package/src/@types/state.tsx
DELETED
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
export { }
|
|
2
|
-
declare global {
|
|
3
|
-
type amotifyBasicElement = amotify.UniStyles.BasicTagParams & amotifyUniStyleParams
|
|
4
|
-
type amotifyUniStyleParams = amotify.UniStyles.Params & {
|
|
5
|
-
freeCSS?: React.CSSProperties
|
|
6
|
-
|
|
7
|
-
UnderBreakPointStyles?: amotify.UniStyles.Params
|
|
8
|
-
hoverStyles?: amotify.UniStyles.Params
|
|
9
|
-
focusStyles?: amotify.UniStyles.Params
|
|
10
|
-
activeStyles?: amotify.UniStyles.Params
|
|
11
|
-
|
|
12
|
-
ssEffectsOnActive?: amotify.UniStyles.Others.EffectsOnActiveTypes | amotify.UniStyles.Others.EffectsOnActiveTypes[] | false
|
|
13
|
-
ssPushable?: boolean
|
|
14
|
-
ssLastChildLossBorder?: 'bottom' | 'right' | false
|
|
15
|
-
}
|
|
16
|
-
namespace amotify {
|
|
17
|
-
namespace UniStyles {
|
|
18
|
-
type BasicTagParams = {
|
|
19
|
-
className?: string
|
|
20
|
-
id?: string
|
|
21
|
-
componentID?: string
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
type Params = Pargins.Params & Fonts.Params & Borders.Params & FlexGrids.Params & Sizes.Params & StyleSets.Params & {
|
|
25
|
-
backgroundColor?: Others.BackgroundColorParams
|
|
26
|
-
gradients?: {
|
|
27
|
-
deg: number
|
|
28
|
-
colors: string[]
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
boxShadow?: 0 | 1 | 2 | 3 | 4 | -1 | -2 | -3 | 'none' | 'borderBox'
|
|
32
|
-
|
|
33
|
-
display?: 'block' | 'none' | 'flex' | 'grid' | 'inlineBlock' | 'inlineFlex'
|
|
34
|
-
|
|
35
|
-
gap?: Others.gapParams
|
|
36
|
-
overflow?: Others.overflowParams
|
|
37
|
-
position?: 'relative' | 'absolute' | 'fixed' | 'sticky' | 'static'
|
|
38
|
-
|
|
39
|
-
top?: Others.TRBLParams | 'topBase' | 'topNavigationHeight'
|
|
40
|
-
right?: Others.TRBLParams
|
|
41
|
-
bottom?: Others.TRBLParams
|
|
42
|
-
left?: Others.TRBLParams
|
|
43
|
-
|
|
44
|
-
opacity?: 'trans' | 'low' | 'middle' | 'high' | 'most'
|
|
45
|
-
|
|
46
|
-
transition?: 'none' | 'short' | 'middle' | 'long'
|
|
47
|
-
}
|
|
48
|
-
namespace Pargins {
|
|
49
|
-
type Params = {
|
|
50
|
-
margin?: GroupParams
|
|
51
|
-
marginTop?: UnitParams
|
|
52
|
-
marginRight?: UnitParams
|
|
53
|
-
marginBottom?: UnitParams
|
|
54
|
-
marginLeft?: UnitParams
|
|
55
|
-
|
|
56
|
-
padding?: GroupParams
|
|
57
|
-
paddingTop?: UnitParams
|
|
58
|
-
paddingRight?: UnitParams
|
|
59
|
-
paddingBottom?: UnitParams
|
|
60
|
-
paddingLeft?: UnitParams
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
type UnitParams =
|
|
64
|
-
0 | '1/12' | '1/6' | '1/4' | '1/3' | '1/2' | '2/3' | '3/4' |
|
|
65
|
-
1 | 1.5 | 2 | 2.5 | 3 | 4 |
|
|
66
|
-
'auto' | 'safeAreaTop' | 'safeAreaBottom'
|
|
67
|
-
type GroupParams = UnitParams | [ UnitParams,UnitParams ] | [ UnitParams,UnitParams,UnitParams,UnitParams ]
|
|
68
|
-
}
|
|
69
|
-
namespace Borders {
|
|
70
|
-
type Params = {
|
|
71
|
-
border?: BorderParams
|
|
72
|
-
borderTop?: BorderParams
|
|
73
|
-
borderRight?: BorderParams
|
|
74
|
-
borderBottom?: BorderParams
|
|
75
|
-
borderLeft?: BorderParams
|
|
76
|
-
|
|
77
|
-
borderWidth?: WidthParams
|
|
78
|
-
borderColor?: ColorParams
|
|
79
|
-
borderStyle?: StyleParams
|
|
80
|
-
|
|
81
|
-
borderRadius?: RadiusParams
|
|
82
|
-
borderTopLeftRadius?: RadiusParams
|
|
83
|
-
borderTopRightRadius?: RadiusParams
|
|
84
|
-
borderBottomLeftRadius?: RadiusParams
|
|
85
|
-
borderBottomRightRadius?: RadiusParams
|
|
86
|
-
}
|
|
87
|
-
type BorderParams = boolean | '0.trans' | '1.thin' | '2.normal' | '3.strong' | 'unset'
|
|
88
|
-
type WidthParams = 0 | 1 | 2 | 3 | 4
|
|
89
|
-
type ColorParams = '0.trans' | '1.thin' | '2.normal' | '3.strong' | 'theme' | 'posi' | 'nega' | 'warn' | 'white'
|
|
90
|
-
type StyleParams = 'solid' | 'dashed' | 'double' | 'dotted'
|
|
91
|
-
type RadiusParams = 0 | '1/3' | '2/3' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 'sphere' | 'inherit' |
|
|
92
|
-
'1.tone.primary' | '2.tone.secondary' | '3.tone.tertiary'
|
|
93
|
-
}
|
|
94
|
-
namespace FlexGrids {
|
|
95
|
-
type Params = {
|
|
96
|
-
flexSizing?: 'none' | 'auto' | 0
|
|
97
|
-
flexWrap?: boolean
|
|
98
|
-
flexCenter?: boolean
|
|
99
|
-
flexType?: TypeParams
|
|
100
|
-
flexChilds?: 'even' | 'auto' | 'none' | 'unset'
|
|
101
|
-
flexGrid?: GridParams
|
|
102
|
-
flexNewLine?: boolean
|
|
103
|
-
verticalAlign?: VerticalAlignParams
|
|
104
|
-
horizontalAlign?: HorizontalAlignParams
|
|
105
|
-
|
|
106
|
-
gridCenter?: boolean
|
|
107
|
-
gridCols?: GridColsParams
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
type TypeParams = 'row' | 'row-r' | 'col' | 'col-r'
|
|
111
|
-
type VerticalAlignParams = 'center' | 'top' | 'bottom' | 'baseline' | 'unset'
|
|
112
|
-
type HorizontalAlignParams = 'center' | 'left' | 'right' | 'between' | 'around' | 'even' | 'unset'
|
|
113
|
-
type GridParams = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 'unset'
|
|
114
|
-
|
|
115
|
-
type GridColsParams = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
116
|
-
}
|
|
117
|
-
namespace Fonts {
|
|
118
|
-
type Params = {
|
|
119
|
-
fontColor?: ColorParams
|
|
120
|
-
fontSize?: SizeParams
|
|
121
|
-
fontWeight?: WeightParams
|
|
122
|
-
|
|
123
|
-
isBoldFont?: boolean
|
|
124
|
-
isRounded?: boolean
|
|
125
|
-
|
|
126
|
-
textAlign?: 'left' | 'center' | 'right'
|
|
127
|
-
}
|
|
128
|
-
type WeightParams = '1.lighter' | '2.normal' | '3.bold'
|
|
129
|
-
type ColorParams =
|
|
130
|
-
Others.UniColors |
|
|
131
|
-
'1.clear' | '2.normal' | '3.blur' | '4.thin' | '5.translucent' | '6.clear' |
|
|
132
|
-
'mono' | 'monoSecond' | 'logo'
|
|
133
|
-
type SizeParams =
|
|
134
|
-
'0.xs' |
|
|
135
|
-
'1.mini' |
|
|
136
|
-
'2.normal' |
|
|
137
|
-
'3.paragraph' |
|
|
138
|
-
'4.thirdTitle' |
|
|
139
|
-
'5.subTitle' |
|
|
140
|
-
'6.title' |
|
|
141
|
-
'7.landing' |
|
|
142
|
-
'8.xl' | 'inherit'
|
|
143
|
-
}
|
|
144
|
-
namespace Sizes {
|
|
145
|
-
type Params = {
|
|
146
|
-
maxHeight?: 0 | 1 | 'viewHeight' | 'topNavigationHeight' | 'sideNavigationHeight' | 'contentHeight' | 'unset'
|
|
147
|
-
minHeight?: 0 | 1 | 'viewHeight' | 'topNavigationHeight' | 'sideNavigationHeight' | 'contentHeight' | 'unset'
|
|
148
|
-
minWidth?: 0 | 1 | 'unset'
|
|
149
|
-
maxWidth?: 0 | 1 | 'unset'
|
|
150
|
-
|
|
151
|
-
unitWidth?: SizeParams
|
|
152
|
-
unitHeight?: SizeParams
|
|
153
|
-
width?: 0 | 1 | 'viewWidth' | 'auto'
|
|
154
|
-
height?: 0 | 1 | 'viewHeight' | 'topNavigationHeight' | 'sideNavigationHeight' | 'contentHeight' | 'auto'
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
type SizeParams = 0 | '1/12' | '1/6' | '1/4' | '1/3' | '1/2' | '2/3' | '3/4' | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 6 | 8 | 12 | 'unset'
|
|
158
|
-
}
|
|
159
|
-
namespace StyleSets {
|
|
160
|
-
type Params = {
|
|
161
|
-
ssCardBox?: boolean | 'border' | 'layer' | 'cloud' | 'shadow'
|
|
162
|
-
ssSphere?: Sizes.SizeParams
|
|
163
|
-
ssSquare?: Sizes.SizeParams
|
|
164
|
-
ssAbsoluteCovered?: boolean
|
|
165
|
-
ssTextEllipsis?: boolean
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
namespace Others {
|
|
169
|
-
type gapUnitParams = 0 | '1/12' | '1/6' | '1/4' | '1/3' | '1/2' | '2/3' | '3/4' | 1 | 1.5 | 2 | 2.5 | 3 | 4
|
|
170
|
-
type gapParams = gapUnitParams | [ gapUnitParams,gapUnitParams ]
|
|
171
|
-
|
|
172
|
-
type overflowUnitParams = 'auto' | 'hidden' | 'scroll' | 'visible' | 'unset'
|
|
173
|
-
type overflowParams = overflowUnitParams | [ overflowUnitParams,overflowUnitParams ]
|
|
174
|
-
|
|
175
|
-
type UniColors = 'inherit' | 'theme' | 'posi' | 'nega' | 'warn' | 'white' | 'black' | amotify.ThemeColorTypes
|
|
176
|
-
type BackgroundColorParams = UniColors |
|
|
177
|
-
'1.layer.base' | '2.layer.cloud' | '3.layer.canvas' | '4.layer.darken' | '5.layer.darker' | '6.layer.darkest' |
|
|
178
|
-
'cloud' |
|
|
179
|
-
|
|
180
|
-
'lcOpFew' | 'lcOpLow' | 'lcOpMiddle' | 'lcOpHigh' |
|
|
181
|
-
'tcOpFew' | 'tcOpLow' | 'tcOpMiddle' | 'tcOpHigh' |
|
|
182
|
-
'tcLighten' | 'tcLighter' | 'tcLightest' |
|
|
183
|
-
'tcDarken' | 'tcDarker' | 'tcDarkest' |
|
|
184
|
-
'negaOpLow' | 'negaOpMiddle' |
|
|
185
|
-
'posiOpLow' | 'posiOpMiddle' |
|
|
186
|
-
'trans' | 'dark' | 'monoPrime' | 'monoSecond' | 'none'
|
|
187
|
-
|
|
188
|
-
type TRBLParams =
|
|
189
|
-
0 | '1/12' | '1/6' | '1/4' | '1/3' | '1/2' | '2/3' | '3/4' |
|
|
190
|
-
1 | 2 | 3 | 4 |
|
|
191
|
-
'50%' | '100%'
|
|
192
|
-
|
|
193
|
-
type EffectsOnActiveTypes =
|
|
194
|
-
'ripple.white' | 'ripple.cloud' | 'ripple.theme' | 'none' |
|
|
195
|
-
'expand' | 'shrink' | 'pudding' | 'fade'
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
package/src/Atoms/@export.tsx
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Box,
|
|
3
|
-
Span,
|
|
4
|
-
Img,
|
|
5
|
-
Flex,
|
|
6
|
-
FlexBr,
|
|
7
|
-
Grid,
|
|
8
|
-
Paragraph,
|
|
9
|
-
Placeholder
|
|
10
|
-
} from './Various/parts';
|
|
11
|
-
|
|
12
|
-
import { FAIcon } from './FAIcon/parts';
|
|
13
|
-
|
|
14
|
-
import { Logo } from './Logo/parts';
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
Flex,
|
|
18
|
-
FlexBr,
|
|
19
|
-
|
|
20
|
-
FAIcon,
|
|
21
|
-
|
|
22
|
-
Placeholder,
|
|
23
|
-
|
|
24
|
-
Grid,
|
|
25
|
-
|
|
26
|
-
Logo,
|
|
27
|
-
|
|
28
|
-
Box,
|
|
29
|
-
Span,
|
|
30
|
-
Paragraph,
|
|
31
|
-
Img
|
|
32
|
-
}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import style from './style.module.scss';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
Box
|
|
5
|
-
} from '../Various/parts';
|
|
6
|
-
|
|
7
|
-
const FaIconComp: FNC<amotify.atoms.FAIcon.FAIconFNC> = ( params ) => {
|
|
8
|
-
let {
|
|
9
|
-
iconAnimation = false,
|
|
10
|
-
iconFamily,
|
|
11
|
-
|
|
12
|
-
isSolidIcon,
|
|
13
|
-
isRegularIcon,
|
|
14
|
-
isLightIcon,
|
|
15
|
-
isThinIcon,
|
|
16
|
-
isDuotoneIcon,
|
|
17
|
-
|
|
18
|
-
isBrandIcon = false,
|
|
19
|
-
d = 'image-slash',
|
|
20
|
-
...others
|
|
21
|
-
} = params;
|
|
22
|
-
|
|
23
|
-
let ClassNames = [
|
|
24
|
-
style.FAIcon,
|
|
25
|
-
'fa-' + d,
|
|
26
|
-
'fa-fw'
|
|
27
|
-
];
|
|
28
|
-
|
|
29
|
-
if ( !isBrandIcon ) {
|
|
30
|
-
let { tone } = amotify.config;
|
|
31
|
-
if ( !isSolidIcon && !isRegularIcon && !isLightIcon && !isThinIcon && !isDuotoneIcon ) isRegularIcon = true;
|
|
32
|
-
if ( tone == 'default' ) {
|
|
33
|
-
} else if ( tone == 'sharp' ) {
|
|
34
|
-
iconFamily = iconFamily || 'sharp';
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
let iconStyle =
|
|
38
|
-
isSolidIcon ? 'solid' :
|
|
39
|
-
isRegularIcon ? 'regular' :
|
|
40
|
-
isLightIcon ? 'light' :
|
|
41
|
-
isThinIcon ? 'thin' :
|
|
42
|
-
isDuotoneIcon ? 'duotone' :
|
|
43
|
-
'regular';
|
|
44
|
-
|
|
45
|
-
iconFamily = iconFamily || 'classic';
|
|
46
|
-
|
|
47
|
-
if ( iconAnimation == 'spin-reverse' ) iconAnimation = 'spin fa-spin-reverse' as any;
|
|
48
|
-
|
|
49
|
-
ClassNames = [
|
|
50
|
-
'fa-' + iconFamily,
|
|
51
|
-
'fa-' + iconStyle,
|
|
52
|
-
...ClassNames
|
|
53
|
-
];
|
|
54
|
-
if ( iconAnimation ) ClassNames.push( 'fa-' + iconAnimation );
|
|
55
|
-
} else {
|
|
56
|
-
ClassNames = [
|
|
57
|
-
'fa-brands',
|
|
58
|
-
...ClassNames
|
|
59
|
-
];
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
return ( <Box
|
|
64
|
-
verticalAlign='center'
|
|
65
|
-
horizontalAlign='center'
|
|
66
|
-
{ ...others }
|
|
67
|
-
freeCSS={ {
|
|
68
|
-
display: 'inline-flex',
|
|
69
|
-
...others.freeCSS
|
|
70
|
-
} }
|
|
71
|
-
>
|
|
72
|
-
<i className={ ClassNames.join( ' ' ) } />
|
|
73
|
-
</Box> );
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
const FAIcon: amotify.atoms.FAIcon.Method = FaIconComp as any;
|
|
78
|
-
|
|
79
|
-
let shortKeys = [
|
|
80
|
-
'user',
|
|
81
|
-
'times',
|
|
82
|
-
'descktop',
|
|
83
|
-
|
|
84
|
-
'angle-right','angle-left','angle-up','angle-down',
|
|
85
|
-
'chevron-left','chevron-right','chevron-up','chevron-down',
|
|
86
|
-
'caret-left','caretRight','caret-up','caret-down',
|
|
87
|
-
'arrow-left','arrow-right','arrow-up','arrow-down',
|
|
88
|
-
|
|
89
|
-
'rotate','rotate-left','rotate-right','redo',
|
|
90
|
-
|
|
91
|
-
'play','pause','stop','forward-step','backward-step',
|
|
92
|
-
'check','check-circle',
|
|
93
|
-
'question','question-circle','exclamation','exclamation-triangle',
|
|
94
|
-
'home','share','volume',
|
|
95
|
-
'search','yen-sign','heart','star',
|
|
96
|
-
|
|
97
|
-
'edit','pen','copy','files','file',
|
|
98
|
-
'backspace',
|
|
99
|
-
'trash-alt',
|
|
100
|
-
'bars',
|
|
101
|
-
'download',
|
|
102
|
-
'link','link-slash','external-link-alt',
|
|
103
|
-
'gear',
|
|
104
|
-
'plus','minus','equals','calculator',
|
|
105
|
-
'image',
|
|
106
|
-
'badge-percent'
|
|
107
|
-
];
|
|
108
|
-
for ( let key of shortKeys ) {
|
|
109
|
-
FAIcon[ key.toCapital() as 'User' ] = ( params: amotify.atoms.FAIcon.FAIconFNC ) => {
|
|
110
|
-
return <FaIconComp
|
|
111
|
-
d={ key }
|
|
112
|
-
{ ...params }
|
|
113
|
-
/>;
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export { FAIcon }
|