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.
- package/dist/src/@jsminAmotifyExtension/_.d.ts +4 -0
- package/dist/src/@jsminAmotifyExtension/fetch.d.ts +9 -0
- package/dist/src/@jsminAmotifyExtension/formCollect.d.ts +1 -0
- package/dist/src/@jsminAmotifyExtension/spreadSheet.d.ts +4 -0
- package/dist/src/@jsminAmotifyExtension/variables.d.ts +0 -0
- package/dist/src/@types/_.d.ts +6 -0
- package/dist/src/@types/amot.d.ts +260 -0
- package/dist/src/@types/fn.d.ts +1040 -0
- package/dist/src/@types/index.d.ts +62 -0
- package/dist/src/@types/jsminAmotifyExtension.d.ts +134 -0
- package/dist/src/@types/module.d.ts +2 -0
- package/dist/src/@types/state.d.ts +145 -0
- package/dist/src/Atoms/@export.d.ts +4 -0
- package/dist/src/Atoms/FAIcon/parts.d.ts +2 -0
- package/dist/src/Atoms/Logo/parts.d.ts +1 -0
- package/dist/src/Atoms/Various/parts.d.ts +9 -0
- package/dist/src/Functions/@export.d.ts +12 -0
- package/dist/src/Functions/Button/_.d.ts +1 -0
- package/dist/src/Functions/Cropper/parts.d.ts +1 -0
- package/dist/src/Functions/Effects/Fade.d.ts +1 -0
- package/dist/src/Functions/Effects/Ripple.d.ts +1 -0
- package/dist/src/Functions/Effects/_.d.ts +3 -0
- package/dist/src/Functions/Input/Chips/Selector.d.ts +1 -0
- package/dist/src/Functions/Input/Chips/_.d.ts +2 -0
- package/dist/src/Functions/Input/DigitCharacters.d.ts +1 -0
- package/dist/src/Functions/Input/File/_.d.ts +2 -0
- package/dist/src/Functions/Input/Hidden.d.ts +1 -0
- package/dist/src/Functions/Input/List/_.d.ts +1 -0
- package/dist/src/Functions/Input/Segmented/_.d.ts +1 -0
- package/dist/src/Functions/Input/Select/_.d.ts +1 -0
- package/dist/src/Functions/Input/Slider/_.d.ts +1 -0
- package/dist/src/Functions/Input/Switch/_.d.ts +1 -0
- package/dist/src/Functions/Input/Text.d.ts +5 -0
- package/dist/src/Functions/Input/TextArea.d.ts +1 -0
- package/dist/src/Functions/Input/Time/Picker.d.ts +1 -0
- package/dist/src/Functions/Input/Time/_.d.ts +2 -0
- package/dist/src/Functions/Input/_.d.ts +5 -0
- package/dist/src/Functions/Input/core.d.ts +34 -0
- package/dist/src/Functions/Inputs/_.d.ts +3 -0
- package/dist/src/Functions/Inputs/text.d.ts +12 -0
- package/dist/src/Functions/Layout/PageNotFound.d.ts +1 -0
- package/dist/src/Functions/Layout/PageRouter.d.ts +2 -0
- package/dist/src/Functions/Layout/PageViewController/parts.d.ts +1 -0
- package/dist/src/Functions/Layout/Plate.d.ts +1 -0
- package/dist/src/Functions/Layout/RootViewController/parts.d.ts +1 -0
- package/dist/src/Functions/Layout/SwipeView/parts.d.ts +2 -0
- package/dist/src/Functions/Layout/TabBar.d.ts +1 -0
- package/dist/src/Functions/Layout/_.d.ts +2 -0
- package/dist/src/Functions/Loader/corner.d.ts +1 -0
- package/dist/src/Functions/Loader/mini.d.ts +33 -0
- package/dist/src/Functions/Loader/parts.d.ts +3 -0
- package/dist/src/Functions/Loader/top.d.ts +1 -0
- package/dist/src/Functions/Sheet/parts.d.ts +2 -0
- package/dist/src/Functions/SnackBar/parts.d.ts +2 -0
- package/dist/src/Functions/Table/Data/parts.d.ts +3 -0
- package/dist/src/Functions/Table/Drag/parts.d.ts +1 -0
- package/dist/src/Functions/Table/Normal/parts.d.ts +1 -0
- package/dist/src/Functions/Table/_.d.ts +9 -0
- package/dist/src/Functions/Tooltips/parts.d.ts +2 -0
- package/dist/src/Global/@export.d.ts +12 -0
- package/dist/src/Global/LaunchReactApplication.d.ts +1 -0
- package/dist/src/Global/styleConverter.d.ts +2 -0
- package/dist/src/Molecules/@export.d.ts +21 -0
- package/dist/src/Molecules/Accordion/parts.d.ts +2 -0
- package/dist/src/Molecules/LinkifyText/parts.d.ts +1 -0
- package/dist/src/Molecules/List.d.ts +1 -0
- package/dist/src/Organisms/@export.d.ts +2 -0
- package/dist/src/Organisms/DisplayStyleInput/_.d.ts +1 -0
- package/dist/src/Organisms/DisplayStyleInput/darkmode.d.ts +1 -0
- package/dist/src/Organisms/DisplayStyleInput/themeColor.d.ts +27 -0
- package/dist/src/Templates/@export.d.ts +2 -0
- package/dist/src/Templates/PlayGround/parts.d.ts +1 -0
- package/dist/src/config.d.ts +16 -0
- package/dist/src/launch.d.ts +9 -0
- package/dist/src/preload.d.ts +1 -0
- package/package.json +2 -2
- package/src/@jsminAmotifyExtension/_.tsx +4 -0
- package/src/@jsminAmotifyExtension/fetch.tsx +107 -0
- package/src/@jsminAmotifyExtension/formCollect.tsx +89 -0
- package/src/@jsminAmotifyExtension/spreadSheet.tsx +159 -0
- package/src/@jsminAmotifyExtension/variables.tsx +130 -0
- package/src/@styles/@app.scss +4 -0
- package/src/@styles/@variables/customProps.scss +109 -0
- package/src/@styles/@variables/styleSet.scss +38 -0
- package/src/@styles/@variables/themeColor.scss +71 -0
- package/src/@styles/@variables/var.scss +171 -0
- package/src/@styles/UniStyling.scss +996 -0
- package/src/@styles/init.scss +154 -0
- package/src/@types/_.tsx +6 -0
- package/src/@types/amot.tsx +323 -0
- package/src/@types/fn.tsx +1210 -0
- package/src/@types/index.tsx +74 -0
- package/src/@types/jsminAmotifyExtension.tsx +143 -0
- package/src/@types/module.tsx +2 -0
- package/src/@types/state.tsx +199 -0
- package/src/Atoms/@export.tsx +32 -0
- package/src/Atoms/FAIcon/parts.tsx +117 -0
- package/src/Atoms/FAIcon/style.module.scss +9 -0
- package/src/Atoms/Logo/parts.tsx +335 -0
- package/src/Atoms/Logo/style.module.scss +96 -0
- package/src/Atoms/Various/parts.tsx +157 -0
- package/src/Atoms/Various/style.module.scss +40 -0
- package/src/Functions/@export.tsx +29 -0
- package/src/Functions/Button/_.tsx +305 -0
- package/src/Functions/Button/style.module.scss +183 -0
- package/src/Functions/Cropper/parts.tsx +1061 -0
- package/src/Functions/Cropper/style.module.scss +62 -0
- package/src/Functions/Effects/Fade.tsx +81 -0
- package/src/Functions/Effects/Ripple.tsx +141 -0
- package/src/Functions/Effects/_.tsx +33 -0
- package/src/Functions/Effects/style.module.scss +83 -0
- package/src/Functions/Input/Chips/Selector.tsx +451 -0
- package/src/Functions/Input/Chips/_.tsx +286 -0
- package/src/Functions/Input/Chips/style.module.scss +6 -0
- package/src/Functions/Input/DigitCharacters.tsx +241 -0
- package/src/Functions/Input/File/_.tsx +596 -0
- package/src/Functions/Input/File/style.module.scss +34 -0
- package/src/Functions/Input/Hidden.tsx +18 -0
- package/src/Functions/Input/List/_.tsx +383 -0
- package/src/Functions/Input/List/style.module.scss +84 -0
- package/src/Functions/Input/Segmented/_.tsx +238 -0
- package/src/Functions/Input/Segmented/style.module.scss +81 -0
- package/src/Functions/Input/Select/_.tsx +225 -0
- package/src/Functions/Input/Select/style.module.scss +10 -0
- package/src/Functions/Input/Slider/_.tsx +519 -0
- package/src/Functions/Input/Slider/style.module.scss +67 -0
- package/src/Functions/Input/Switch/_.tsx +177 -0
- package/src/Functions/Input/Switch/style.module.scss +18 -0
- package/src/Functions/Input/Text.tsx +437 -0
- package/src/Functions/Input/TextArea.tsx +115 -0
- package/src/Functions/Input/Time/Picker.tsx +950 -0
- package/src/Functions/Input/Time/_.tsx +736 -0
- package/src/Functions/Input/Time/style.module.scss +72 -0
- package/src/Functions/Input/_.tsx +793 -0
- package/src/Functions/Input/core.tsx +461 -0
- package/src/Functions/Input/style.module.scss +43 -0
- package/src/Functions/Inputs/_.tsx +5 -0
- package/src/Functions/Inputs/style.module.scss +15 -0
- package/src/Functions/Inputs/text.tsx +67 -0
- package/src/Functions/Inputs/types.d.ts +1 -0
- package/src/Functions/Layout/PageNotFound.tsx +81 -0
- package/src/Functions/Layout/PageRouter.tsx +107 -0
- package/src/Functions/Layout/PageViewController/parts.tsx +32 -0
- package/src/Functions/Layout/Plate.tsx +30 -0
- package/src/Functions/Layout/RootViewController/parts.tsx +290 -0
- package/src/Functions/Layout/RootViewController/style.module.scss +24 -0
- package/src/Functions/Layout/SwipeView/parts.tsx +380 -0
- package/src/Functions/Layout/SwipeView/style.module.scss +19 -0
- package/src/Functions/Layout/TabBar.tsx +64 -0
- package/src/Functions/Layout/_.tsx +20 -0
- package/src/Functions/Loader/corner.tsx +78 -0
- package/src/Functions/Loader/mini.tsx +117 -0
- package/src/Functions/Loader/parts.tsx +105 -0
- package/src/Functions/Loader/style.module.scss +222 -0
- package/src/Functions/Loader/top.tsx +90 -0
- package/src/Functions/Sheet/parts.tsx +972 -0
- package/src/Functions/Sheet/style.module.scss +235 -0
- package/src/Functions/SnackBar/parts.tsx +215 -0
- package/src/Functions/SnackBar/style.module.scss +25 -0
- package/src/Functions/Table/Data/parts.tsx +955 -0
- package/src/Functions/Table/Drag/parts.tsx +448 -0
- package/src/Functions/Table/Normal/parts.tsx +123 -0
- package/src/Functions/Table/_.tsx +170 -0
- package/src/Functions/Table/style.module.scss +92 -0
- package/src/Functions/Tooltips/parts.tsx +52 -0
- package/src/Global/@export.tsx +138 -0
- package/src/Global/LaunchReactApplication.tsx +30 -0
- package/src/Global/exe.tsx +0 -0
- package/src/Global/styleConverter.tsx +435 -0
- package/src/Molecules/@export.tsx +95 -0
- package/src/Molecules/Accordion/parts.tsx +146 -0
- package/src/Molecules/Accordion/style.module.scss +13 -0
- package/src/Molecules/LinkifyText/parts.tsx +54 -0
- package/src/Molecules/List.tsx +30 -0
- package/src/Organisms/@export.tsx +5 -0
- package/src/Organisms/DisplayStyleInput/_.tsx +18 -0
- package/src/Organisms/DisplayStyleInput/darkmode.tsx +112 -0
- package/src/Organisms/DisplayStyleInput/themeColor.tsx +210 -0
- package/src/Templates/@export.tsx +7 -0
- package/src/Templates/PlayGround/parts.tsx +115 -0
- package/src/Templates/PlayGround/style.module.scss +38 -0
- package/src/config.tsx +132 -0
- package/src/launch.tsx +100 -0
- package/src/preload.tsx +49 -0
- package/tsconfig.json +27 -14
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,199 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
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 }
|