amotify 0.0.4 → 0.0.5
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/package.json +1 -1
- package/public/amotify.js +1 -0
- package/public/amotify.min.css +24 -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
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
FAIcon
|
|
3
|
-
} from '@atoms';
|
|
4
|
-
import {
|
|
5
|
-
Buttons
|
|
6
|
-
} from '@functions';
|
|
7
|
-
|
|
8
|
-
const {
|
|
9
|
-
Anchor
|
|
10
|
-
} = Buttons;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export const LinkifyText: FNC<amotify.mols.LinkifyTextProps> = ( props ) => {
|
|
14
|
-
let {
|
|
15
|
-
text,
|
|
16
|
-
placeholder
|
|
17
|
-
} = props;
|
|
18
|
-
|
|
19
|
-
let Description: ReactElement[] = [];
|
|
20
|
-
|
|
21
|
-
if ( text ) {
|
|
22
|
-
let urls: string[] = [];
|
|
23
|
-
|
|
24
|
-
text = text.replace( /https?:\/\/[^\s|\n|\r]*/ig,( ...args: any ) => {
|
|
25
|
-
let url = args[ 0 ];
|
|
26
|
-
urls.push( url );
|
|
27
|
-
|
|
28
|
-
return '[$_url]';
|
|
29
|
-
} );
|
|
30
|
-
let parts = text.split( '[$_url]' );
|
|
31
|
-
for ( let index = 0; index <= parts.length - 1; index++ ) {
|
|
32
|
-
let part = parts[ index ];
|
|
33
|
-
let url = urls[ index ];
|
|
34
|
-
Description.push( part );
|
|
35
|
-
if ( index < parts.length - 1 ) {
|
|
36
|
-
Description.push( <Anchor.Link
|
|
37
|
-
key={ 'Link-' + index }
|
|
38
|
-
href={ url }
|
|
39
|
-
newTab
|
|
40
|
-
>
|
|
41
|
-
{ url } <FAIcon d='arrow-up-right-from-square' />
|
|
42
|
-
</Anchor.Link> );
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
} else if ( placeholder ) {
|
|
46
|
-
Description = [ placeholder ];
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
return (
|
|
50
|
-
<>
|
|
51
|
-
{ Description }
|
|
52
|
-
</>
|
|
53
|
-
);
|
|
54
|
-
}
|
package/src/Molecules/List.tsx
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Flex
|
|
3
|
-
} from '@atoms';
|
|
4
|
-
|
|
5
|
-
export const List: FNC<amotify.mols.List.Params> = ( params ) => {
|
|
6
|
-
let {
|
|
7
|
-
rows,
|
|
8
|
-
rowStyles: DefaultRowStyles,
|
|
9
|
-
...others
|
|
10
|
-
} = params;
|
|
11
|
-
|
|
12
|
-
let rowArray = rows.map( ( row ) => {
|
|
13
|
-
let {
|
|
14
|
-
children,
|
|
15
|
-
...others
|
|
16
|
-
} = row;
|
|
17
|
-
|
|
18
|
-
return <Flex
|
|
19
|
-
{ ...DefaultRowStyles }
|
|
20
|
-
{ ...others }
|
|
21
|
-
children={ children }
|
|
22
|
-
/>;
|
|
23
|
-
} )
|
|
24
|
-
|
|
25
|
-
return <Flex
|
|
26
|
-
{ ...others }
|
|
27
|
-
flexType='col'
|
|
28
|
-
children={ rowArray }
|
|
29
|
-
/>;
|
|
30
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Darkmode } from './darkmode';
|
|
2
|
-
import {
|
|
3
|
-
ThemeColorALL,
|
|
4
|
-
ThemeColorBasic,
|
|
5
|
-
ThemeColorOriginal,
|
|
6
|
-
ThemeColorBrands,
|
|
7
|
-
Colors
|
|
8
|
-
} from './themeColor';
|
|
9
|
-
export const DisplayStyleInput: amotify.orgs.DisplayStyleInput.Methods = {
|
|
10
|
-
Darkmode,
|
|
11
|
-
ThemeColor: {
|
|
12
|
-
ALL: ThemeColorALL,
|
|
13
|
-
Originals: ThemeColorOriginal,
|
|
14
|
-
Brands: ThemeColorBrands,
|
|
15
|
-
Basics: ThemeColorBasic,
|
|
16
|
-
Keys: Colors,
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
React
|
|
3
|
-
} from '@global';
|
|
4
|
-
import {
|
|
5
|
-
Box,
|
|
6
|
-
Flex,
|
|
7
|
-
Img,
|
|
8
|
-
FAIcon
|
|
9
|
-
} from '@atoms';
|
|
10
|
-
import {
|
|
11
|
-
Column,
|
|
12
|
-
Row,
|
|
13
|
-
Text
|
|
14
|
-
} from '@mols';
|
|
15
|
-
import {
|
|
16
|
-
Input
|
|
17
|
-
} from '@functions';
|
|
18
|
-
|
|
19
|
-
const {
|
|
20
|
-
useState,
|
|
21
|
-
useEffect
|
|
22
|
-
} = React;
|
|
23
|
-
|
|
24
|
-
const ColorCell = ( params: {
|
|
25
|
-
colorType: amotify.DarkModeTypes
|
|
26
|
-
} ) => {
|
|
27
|
-
if ( params.colorType == 'light' ) {
|
|
28
|
-
return <Box
|
|
29
|
-
freeCSS={ {
|
|
30
|
-
backgroundColor: '#FFF'
|
|
31
|
-
} }
|
|
32
|
-
width={ 1 }
|
|
33
|
-
height={ 1 }
|
|
34
|
-
isRounded
|
|
35
|
-
/>
|
|
36
|
-
} else if ( params.colorType == 'dark' ) {
|
|
37
|
-
return <Box
|
|
38
|
-
freeCSS={ {
|
|
39
|
-
backgroundColor: '#333'
|
|
40
|
-
} }
|
|
41
|
-
width={ 1 }
|
|
42
|
-
height={ 1 }
|
|
43
|
-
isRounded
|
|
44
|
-
/>
|
|
45
|
-
} else if ( params.colorType == 'dim' ) {
|
|
46
|
-
return <Box
|
|
47
|
-
freeCSS={ {
|
|
48
|
-
backgroundColor: '#666'
|
|
49
|
-
} }
|
|
50
|
-
width={ 1 }
|
|
51
|
-
height={ 1 }
|
|
52
|
-
isRounded
|
|
53
|
-
/>
|
|
54
|
-
}
|
|
55
|
-
return <Column
|
|
56
|
-
width={ 1 }
|
|
57
|
-
height={ 1 }
|
|
58
|
-
isRounded
|
|
59
|
-
flexChilds='even'
|
|
60
|
-
overflow={ 'hidden' }
|
|
61
|
-
gap={ '1/6' }
|
|
62
|
-
freeCSS={ {
|
|
63
|
-
transform: 'rotate(-45deg)'
|
|
64
|
-
} }
|
|
65
|
-
>
|
|
66
|
-
<Box
|
|
67
|
-
freeCSS={ {
|
|
68
|
-
backgroundColor: '#FFF'
|
|
69
|
-
} }
|
|
70
|
-
borderRadius={ 1 }
|
|
71
|
-
/>
|
|
72
|
-
<Box
|
|
73
|
-
freeCSS={ {
|
|
74
|
-
backgroundColor: '#333'
|
|
75
|
-
} }
|
|
76
|
-
borderRadius={ 1 }
|
|
77
|
-
/>
|
|
78
|
-
</Column>
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export const Darkmode = ( params: amotify.orgs.DisplayStyleInput.DarkmodeInput ) => {
|
|
82
|
-
let [ val_darkmode,set_darkmode ] = useState( amotify.config.darkMode || 'light' );
|
|
83
|
-
|
|
84
|
-
const mounted = React.useRef( false );
|
|
85
|
-
useEffect( () => {
|
|
86
|
-
if ( mounted.current ) {
|
|
87
|
-
params.onUpdate( val_darkmode );
|
|
88
|
-
} else {
|
|
89
|
-
mounted.current = true;
|
|
90
|
-
}
|
|
91
|
-
},[ val_darkmode ] );
|
|
92
|
-
|
|
93
|
-
return <Input.Radio
|
|
94
|
-
icon={ false }
|
|
95
|
-
value={ val_darkmode }
|
|
96
|
-
cellStyles={ {
|
|
97
|
-
padding: '1/3',
|
|
98
|
-
borderWidth: 2,
|
|
99
|
-
ssSphere: 4,
|
|
100
|
-
isRounded: true
|
|
101
|
-
} }
|
|
102
|
-
options={ [
|
|
103
|
-
{ value: 'light',label: <ColorCell colorType={ 'light' } /> },
|
|
104
|
-
{ value: 'dark',label: <ColorCell colorType={ 'dark' } /> },
|
|
105
|
-
{ value: 'dim',label: <ColorCell colorType={ 'dim' } /> },
|
|
106
|
-
{ value: 'auto',label: <ColorCell colorType={ 'auto' } /> },
|
|
107
|
-
] }
|
|
108
|
-
onUpdateValidValue={ ( { value } ) => {
|
|
109
|
-
set_darkmode( value[ 0 ] );
|
|
110
|
-
} }
|
|
111
|
-
/>;
|
|
112
|
-
}
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
React
|
|
3
|
-
} from '@global';
|
|
4
|
-
import {
|
|
5
|
-
Box,
|
|
6
|
-
Flex,
|
|
7
|
-
Img,
|
|
8
|
-
FAIcon
|
|
9
|
-
} from '@atoms';
|
|
10
|
-
import {
|
|
11
|
-
Column,
|
|
12
|
-
Row,
|
|
13
|
-
Text
|
|
14
|
-
} from '@mols';
|
|
15
|
-
import {
|
|
16
|
-
Input
|
|
17
|
-
} from '@functions';
|
|
18
|
-
|
|
19
|
-
const {
|
|
20
|
-
useState,
|
|
21
|
-
useEffect
|
|
22
|
-
} = React;
|
|
23
|
-
|
|
24
|
-
type ColorIconParams = {
|
|
25
|
-
key: string
|
|
26
|
-
icon: ReactElement
|
|
27
|
-
label?: ReactElement
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export const Colors = {
|
|
31
|
-
Basics: [
|
|
32
|
-
{
|
|
33
|
-
key: 'comun',icon: <Box
|
|
34
|
-
padding={ '1/2' }
|
|
35
|
-
>
|
|
36
|
-
<Img src={ Img.uri.comunIconClear } />
|
|
37
|
-
</Box>
|
|
38
|
-
},
|
|
39
|
-
{ key: 'leaf',icon: 'leaf' },
|
|
40
|
-
{ key: 'heart',icon: 'heart' },
|
|
41
|
-
{ key: 'droplet',icon: 'droplet' },
|
|
42
|
-
],
|
|
43
|
-
Brands: [
|
|
44
|
-
{ key: 'line',icon: <FAIcon isBrandIcon d="line" />,label: 'LINE' },
|
|
45
|
-
{ key: 'twitter',icon: <FAIcon isBrandIcon d="twitter" />,label: 'Twitter' },
|
|
46
|
-
{ key: 'amazon',icon: <FAIcon isBrandIcon d="amazon" />,label: 'Amazon' },
|
|
47
|
-
{ key: 'facebook',icon: <FAIcon isBrandIcon d="facebook" />,label: 'Facebook' },
|
|
48
|
-
{ key: 'android',icon: <FAIcon isBrandIcon d="android" />,label: 'Android' },
|
|
49
|
-
{ key: 'slackBlue',icon: <FAIcon isBrandIcon d="slack" />,label: 'Slack Blue' },
|
|
50
|
-
{ key: 'slackGreen',icon: <FAIcon isBrandIcon d="slack" />,label: 'Slack Green' },
|
|
51
|
-
{ key: 'slackRed',icon: <FAIcon isBrandIcon d="slack" />,label: 'Slack Red' },
|
|
52
|
-
{ key: 'slackYellow',icon: <FAIcon isBrandIcon d="slack" />,label: 'Slack Yellow' },
|
|
53
|
-
{ key: 'slackBase',icon: <FAIcon isBrandIcon d="slack" />,label: 'Slack Base' },
|
|
54
|
-
{ key: 'googleBlue',icon: <FAIcon isBrandIcon d="google" />,label: 'Google Blue' },
|
|
55
|
-
{ key: 'googleGreen',icon: <FAIcon isBrandIcon d="google" />,label: 'Google Green' },
|
|
56
|
-
{ key: 'googleYellow',icon: <FAIcon isBrandIcon d="google" />,label: 'Google Yellow' },
|
|
57
|
-
{ key: 'googleRed',icon: <FAIcon isBrandIcon d="google" />,label: 'Google Red' }
|
|
58
|
-
],
|
|
59
|
-
Originals: [
|
|
60
|
-
{ key: 'brick',icon: 'block-brick' },
|
|
61
|
-
{ key: 'flower',icon: 'flower-tulip' },
|
|
62
|
-
{ key: 'lip',icon: 'lips' },
|
|
63
|
-
{ key: 'wine',icon: 'wine-glass' },
|
|
64
|
-
{ key: 'theater',icon: 'theater-masks',label: 'entertainment' },
|
|
65
|
-
{ key: 'bat',icon: 'bat' },
|
|
66
|
-
{ key: 'poizon',icon: 'flask-poison' },
|
|
67
|
-
{ key: 'eggplant',icon: 'eggplant' },
|
|
68
|
-
{ key: 'ufo',icon: 'ufo',label: 'UFO' },
|
|
69
|
-
{ key: 'alien',icon: 'alien' },
|
|
70
|
-
{ key: 'tombstone',icon: 'tombstone' },
|
|
71
|
-
{ key: 'ninja',icon: 'user-ninja' },
|
|
72
|
-
{ key: 'moon',icon: 'moon' },
|
|
73
|
-
{ key: 'rain',icon: 'cloud-showers-heavy' },
|
|
74
|
-
{ key: 'unicorn',icon: 'alicorn' },
|
|
75
|
-
{ key: 'axe',icon: 'axe' },
|
|
76
|
-
{ key: 'gem',icon: 'gem' },
|
|
77
|
-
{ key: 'soap',icon: 'soap' },
|
|
78
|
-
{ key: 'drizzle',icon: 'cloud-drizzle' },
|
|
79
|
-
{ key: 'building',icon: 'building' },
|
|
80
|
-
{ key: 'fish',icon: 'fish' },
|
|
81
|
-
{ key: 'icicles',icon: 'icicles',label: 'ice' },
|
|
82
|
-
{ key: 'water',icon: 'water' },
|
|
83
|
-
{ key: 'tree1',icon: 'tree-alt' },
|
|
84
|
-
{ key: 'tree2',icon: 'trees' },
|
|
85
|
-
{ key: 'tree3',icon: 'tree' },
|
|
86
|
-
{ key: 'battery',icon: 'battery-bolt' },
|
|
87
|
-
{ key: 'seedle',icon: 'seedling' },
|
|
88
|
-
{ key: 'greenTea',icon: 'mug-tea' },
|
|
89
|
-
{ key: 'oak',icon: 'leaf-oak' },
|
|
90
|
-
{ key: 'salad',icon: 'salad' },
|
|
91
|
-
{ key: 'cloud',icon: 'cloud' },
|
|
92
|
-
{ key: 'lemon',icon: 'lemon' },
|
|
93
|
-
{ key: 'angel',icon: 'angel' },
|
|
94
|
-
{ key: 'parasol',icon: 'umbrella-beach' },
|
|
95
|
-
{ key: 'pizza',icon: 'pizza-slice' },
|
|
96
|
-
{ key: 'thunder',icon: 'thunderstorm' },
|
|
97
|
-
{ key: 'latte',icon: 'coffee-togo' },
|
|
98
|
-
{ key: 'island',icon: 'island-tropical' },
|
|
99
|
-
{ key: 'shovel',icon: 'shovel' },
|
|
100
|
-
{ key: 'coffee',icon: 'coffee' },
|
|
101
|
-
{ key: 'carrot',icon: 'carrot' },
|
|
102
|
-
{ key: 'cactus',icon: 'cactus' },
|
|
103
|
-
{ key: 'volcano',icon: 'volcano' },
|
|
104
|
-
{ key: 'choco',icon: 'candy-bar' },
|
|
105
|
-
{ key: 'industry',icon: 'industry-windows' },
|
|
106
|
-
{ key: 'gun',icon: 'gun' },
|
|
107
|
-
{ key: 'galaxy',icon: 'galaxy',label: 'blakchole' },
|
|
108
|
-
]
|
|
109
|
-
}
|
|
110
|
-
const GenOption = ( params: ColorIconParams ) => {
|
|
111
|
-
let { key,icon,label = '' } = params;
|
|
112
|
-
|
|
113
|
-
let Color = ( alfa?: number ) => ( `hsla( var( --cH_${ key } ),var( --cS_${ key } ),var( --cL_${ key } ),${ alfa ?? 1 } ) ` );
|
|
114
|
-
|
|
115
|
-
return {
|
|
116
|
-
value: params.key,
|
|
117
|
-
label: <>
|
|
118
|
-
{ $.is.string( icon ) ? <FAIcon
|
|
119
|
-
isSolidIcon
|
|
120
|
-
d={ icon }
|
|
121
|
-
/> : icon }
|
|
122
|
-
</>,
|
|
123
|
-
freeCSS: {
|
|
124
|
-
backgroundColor: Color( 0.15 ),
|
|
125
|
-
color: Color()
|
|
126
|
-
},
|
|
127
|
-
checkedStyles: {
|
|
128
|
-
fontColor: 'white',
|
|
129
|
-
boxShadow: 3,
|
|
130
|
-
freeCSS: {
|
|
131
|
-
backgroundColor: Color(),
|
|
132
|
-
color: 'white',
|
|
133
|
-
transform: 'scale(1.1)'
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
} as amotify.fn.Input.List.OptionParams
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
const ThemeColor: {
|
|
140
|
-
( type: 'all' | 'brand' | 'original' | 'basic' ): FNC<amotify.orgs.DisplayStyleInput.ThemeColorInput>
|
|
141
|
-
} = ( type ) => {
|
|
142
|
-
let ColorsArray: ColorIconParams[][] = [];
|
|
143
|
-
if ( type == 'all' ) {
|
|
144
|
-
ColorsArray = [
|
|
145
|
-
Colors.Basics,
|
|
146
|
-
Colors.Brands,
|
|
147
|
-
Colors.Originals,
|
|
148
|
-
];
|
|
149
|
-
} else if ( type == 'original' ) {
|
|
150
|
-
ColorsArray = [ Colors.Originals ];
|
|
151
|
-
} else if ( type == 'basic' ) {
|
|
152
|
-
ColorsArray = [ Colors.Basics ];
|
|
153
|
-
} else if ( type = 'brand' ) {
|
|
154
|
-
ColorsArray = [ Colors.Brands ];
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
let UniParams: amotify.fn.Input.List.PlainParams = {
|
|
158
|
-
...{} as any,
|
|
159
|
-
tone: 'plain',
|
|
160
|
-
icon: false,
|
|
161
|
-
override: 'force',
|
|
162
|
-
flexType: 'row',
|
|
163
|
-
gap: 1,
|
|
164
|
-
horizontalAlign: 'around',
|
|
165
|
-
cellStyles: {
|
|
166
|
-
ssSphere: 3,
|
|
167
|
-
flexCenter: true,
|
|
168
|
-
borderRadius: '1.tone.primary',
|
|
169
|
-
fontSize: '3.paragraph',
|
|
170
|
-
transition: 'middle'
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
const Comp = ( params: amotify.orgs.DisplayStyleInput.ThemeColorInput ) => {
|
|
174
|
-
const mounted = React.useRef( false );
|
|
175
|
-
let [ val_ColorKey,set_ColorKey ] = useState( amotify.config.themeColor );
|
|
176
|
-
|
|
177
|
-
useEffect( () => {
|
|
178
|
-
if ( mounted.current ) {
|
|
179
|
-
params.onUpdate( val_ColorKey );
|
|
180
|
-
} else {
|
|
181
|
-
mounted.current = true;
|
|
182
|
-
}
|
|
183
|
-
},[ val_ColorKey ] );
|
|
184
|
-
|
|
185
|
-
let Inputer: ReactElement[] = ColorsArray.map( ( Colors ) => {
|
|
186
|
-
return <Input.Radio
|
|
187
|
-
{ ...UniParams }
|
|
188
|
-
value={ val_ColorKey }
|
|
189
|
-
options={ Colors.map( ( info ) => {
|
|
190
|
-
return GenOption( info );
|
|
191
|
-
} ) }
|
|
192
|
-
onUpdateValidValue={ ( { value } ) => {
|
|
193
|
-
set_ColorKey( value[ 0 ] );
|
|
194
|
-
} }
|
|
195
|
-
/>;
|
|
196
|
-
} );
|
|
197
|
-
|
|
198
|
-
return <Column
|
|
199
|
-
gap={ 2 }
|
|
200
|
-
>
|
|
201
|
-
{ Inputer }
|
|
202
|
-
</Column>;
|
|
203
|
-
}
|
|
204
|
-
return Comp;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
export const ThemeColorALL = ThemeColor( 'all' );
|
|
208
|
-
export const ThemeColorBasic = ThemeColor( 'basic' );
|
|
209
|
-
export const ThemeColorOriginal = ThemeColor( 'original' );
|
|
210
|
-
export const ThemeColorBrands = ThemeColor( 'brand' );
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
React,
|
|
3
|
-
} from '@global';
|
|
4
|
-
const {
|
|
5
|
-
useEffect,
|
|
6
|
-
useState
|
|
7
|
-
} = React;
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
Box
|
|
11
|
-
} from '@atoms';
|
|
12
|
-
import {
|
|
13
|
-
Column,
|
|
14
|
-
Row,
|
|
15
|
-
Text
|
|
16
|
-
} from '@mols';
|
|
17
|
-
import {
|
|
18
|
-
DisplayStyleInput
|
|
19
|
-
} from '@orgs';
|
|
20
|
-
import {
|
|
21
|
-
Buttons,
|
|
22
|
-
Input,
|
|
23
|
-
Inputs
|
|
24
|
-
} from '@functions';
|
|
25
|
-
|
|
26
|
-
import style from './style.module.scss';
|
|
27
|
-
|
|
28
|
-
export const PlayGround: FNC<{}> = () => {
|
|
29
|
-
return ( <>
|
|
30
|
-
<Column
|
|
31
|
-
gap={ 2 }
|
|
32
|
-
>
|
|
33
|
-
<DisplayStyleInput.Darkmode
|
|
34
|
-
onUpdate={ ( value ) => {
|
|
35
|
-
amotify.config.update.darkMode( value );
|
|
36
|
-
} }
|
|
37
|
-
/>
|
|
38
|
-
<DisplayStyleInput.ThemeColor.Originals
|
|
39
|
-
onUpdate={ ( value ) => {
|
|
40
|
-
amotify.config.update.themeColor( value );
|
|
41
|
-
} }
|
|
42
|
-
/>
|
|
43
|
-
<DisplayStyleInput.ThemeColor.Brands
|
|
44
|
-
onUpdate={ ( value ) => {
|
|
45
|
-
amotify.config.update.themeColor( value );
|
|
46
|
-
} }
|
|
47
|
-
/>
|
|
48
|
-
<Input.Text.Normal
|
|
49
|
-
/>
|
|
50
|
-
<Input.Select
|
|
51
|
-
options={ [
|
|
52
|
-
{ value: 1,label: 'AAA' },
|
|
53
|
-
{ value: 2,label: 'BBB' },
|
|
54
|
-
{ value: 3,label: 'CCC' },
|
|
55
|
-
{
|
|
56
|
-
value: {
|
|
57
|
-
test: 1,
|
|
58
|
-
},label: 'DDD'
|
|
59
|
-
},
|
|
60
|
-
] }
|
|
61
|
-
onUpdateValidValue={ ( { value } ) => {
|
|
62
|
-
console.log( value );
|
|
63
|
-
} }
|
|
64
|
-
/>
|
|
65
|
-
|
|
66
|
-
<Buttons.Button.Prime.R
|
|
67
|
-
submitOption={ {
|
|
68
|
-
formName: 'test',
|
|
69
|
-
callback: ( form ) => {
|
|
70
|
-
console.log( form );
|
|
71
|
-
}
|
|
72
|
-
} }
|
|
73
|
-
>
|
|
74
|
-
Submit
|
|
75
|
-
</Buttons.Button.Prime.R>
|
|
76
|
-
<Box>
|
|
77
|
-
Label1
|
|
78
|
-
<Inputs.TextInput
|
|
79
|
-
tone='normal'
|
|
80
|
-
// freeCSS={ {
|
|
81
|
-
// minWidth: '50%'
|
|
82
|
-
// } }
|
|
83
|
-
// width={ '1/2' }
|
|
84
|
-
/>
|
|
85
|
-
</Box>
|
|
86
|
-
<Box>
|
|
87
|
-
Label2
|
|
88
|
-
<Inputs.TextInput
|
|
89
|
-
tone='cloud'
|
|
90
|
-
width={ 1 }
|
|
91
|
-
/>
|
|
92
|
-
</Box>
|
|
93
|
-
<Box>
|
|
94
|
-
Label3
|
|
95
|
-
<Inputs.TextInput
|
|
96
|
-
tone='bottomBorder'
|
|
97
|
-
unitWidth={ 12 }
|
|
98
|
-
/>
|
|
99
|
-
</Box>
|
|
100
|
-
<Box>
|
|
101
|
-
Label4
|
|
102
|
-
<Inputs.TextInput
|
|
103
|
-
tone='plain'
|
|
104
|
-
unitWidth={ 6 }
|
|
105
|
-
/>
|
|
106
|
-
</Box>
|
|
107
|
-
{/* <Input.Select
|
|
108
|
-
name='test-segmented'
|
|
109
|
-
form='test'
|
|
110
|
-
required
|
|
111
|
-
list={ val_select }
|
|
112
|
-
/> */}
|
|
113
|
-
</Column>
|
|
114
|
-
</> );
|
|
115
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
@use '@uniVar' as *;
|
|
2
|
-
.TestAnimation {
|
|
3
|
-
animation: .25s ease-in-out jiggly infinite;
|
|
4
|
-
cursor: grab;
|
|
5
|
-
user-select: none;
|
|
6
|
-
&:nth-child( 5n ) {
|
|
7
|
-
animation-delay: .2s;
|
|
8
|
-
animation-duration: .24s;
|
|
9
|
-
}
|
|
10
|
-
&:nth-child( 5n + 2 ) {
|
|
11
|
-
animation-delay: .22s;
|
|
12
|
-
animation-duration: .26s;
|
|
13
|
-
}
|
|
14
|
-
&:nth-child( 5n + 4 ) {
|
|
15
|
-
animation-delay: .24s;
|
|
16
|
-
animation-duration: .28s;
|
|
17
|
-
}
|
|
18
|
-
&:nth-child( 5n + 1 ) {
|
|
19
|
-
animation-delay: .26s;
|
|
20
|
-
animation-duration: .3s;
|
|
21
|
-
}
|
|
22
|
-
&:nth-child( 5n + 3 ) {
|
|
23
|
-
animation-delay: .28s;
|
|
24
|
-
animation-duration: .32s;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@keyframes jiggly {
|
|
29
|
-
0% {
|
|
30
|
-
transform: rotate(-.4deg);
|
|
31
|
-
}
|
|
32
|
-
50% {
|
|
33
|
-
transform: rotate(.4deg);
|
|
34
|
-
}
|
|
35
|
-
100% {
|
|
36
|
-
transform: rotate(-.4deg);
|
|
37
|
-
}
|
|
38
|
-
}
|