amotify 0.0.13 → 0.0.14
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/dist/amotify.js +1 -1
- package/dist/amotify.min.css +8 -9
- 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/init.scss +1 -1
- package/src/@variables.tsx +70 -0
- package/src/atoms/FAI/parts.tsx +134 -0
- package/src/config.tsx +31 -5
- package/src/functions/Button/_.tsx +0 -1
- package/src/functions/Cropper/parts.tsx +18 -10
- 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 +35 -63
- 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/Slider/_.tsx +5 -5
- package/src/functions/Input/Switch/_.tsx +9 -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 +24 -12
- package/src/functions/Input/core.tsx +10 -10
- package/src/functions/Input/style.module.scss +16 -3
- package/src/functions/Layout/PageNotFound.tsx +2 -4
- package/src/functions/Layout/PageRouter.tsx +2 -3
- package/src/functions/Loader/parts.tsx +3 -1
- package/src/functions/Loader/style.module.scss +1 -1
- package/src/functions/Sheet/parts.tsx +45 -42
- package/src/functions/Sheet/style.module.scss +16 -23
- 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 +16 -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "amotify",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "UI Component for React",
|
|
5
5
|
"main": "dist/launch.js",
|
|
6
6
|
"types": "dist/@types.d.ts",
|
|
@@ -21,43 +21,48 @@
|
|
|
21
21
|
"UI Component",
|
|
22
22
|
"React"
|
|
23
23
|
],
|
|
24
|
-
"author": "",
|
|
24
|
+
"author": "IkkoKoyama <mingoo.master@gmail.com>",
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"bugs": {
|
|
27
27
|
"url": "https://github.com/IkkoKoyama/amotify/issues"
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/IkkoKoyama/amotify#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
+
"@fortawesome/fontawesome-svg-core": "^6.4.2",
|
|
32
|
+
"@fortawesome/free-brands-svg-icons": "^6.4.2",
|
|
33
|
+
"@fortawesome/pro-regular-svg-icons": "^6.4.2",
|
|
34
|
+
"@fortawesome/pro-solid-svg-icons": "^6.4.2",
|
|
35
|
+
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
36
|
+
"jsmin-front": "^0.0.15",
|
|
31
37
|
"react": "^18.2.0",
|
|
32
38
|
"react-dom": "^18.2.0",
|
|
33
39
|
"react-router-dom": "^6.19.0"
|
|
34
40
|
},
|
|
35
41
|
"devDependencies": {
|
|
36
|
-
"@babel/cli": "^7.
|
|
37
|
-
"@babel/preset-env": "^7.
|
|
38
|
-
"@babel/preset-react": "^7.
|
|
39
|
-
"@babel/preset-typescript": "^7.
|
|
40
|
-
"@types/express": "^4.17.
|
|
41
|
-
"@types/google.maps": "^3.
|
|
42
|
+
"@babel/cli": "^7.23.0",
|
|
43
|
+
"@babel/preset-env": "^7.23.3",
|
|
44
|
+
"@babel/preset-react": "^7.23.3",
|
|
45
|
+
"@babel/preset-typescript": "^7.23.3",
|
|
46
|
+
"@types/express": "^4.17.21",
|
|
47
|
+
"@types/google.maps": "^3.54.8",
|
|
42
48
|
"@types/react": "^18.2.37",
|
|
43
49
|
"@types/react-dom": "^18.2.15",
|
|
44
|
-
"babel-loader": "^
|
|
50
|
+
"babel-loader": "^9.1.3",
|
|
45
51
|
"babel-preset-preact": "^2.0.0",
|
|
46
52
|
"browser-sync-webpack-plugin": "^2.3.0",
|
|
47
|
-
"css-loader": "^6.
|
|
48
|
-
"dotenv": "^16.
|
|
49
|
-
"express": "^4.
|
|
50
|
-
"jsmin-front": "^0.0.5",
|
|
53
|
+
"css-loader": "^6.8.1",
|
|
54
|
+
"dotenv": "^16.3.1",
|
|
55
|
+
"express": "^4.18.2",
|
|
51
56
|
"mini-css-extract-plugin": "^2.7.6",
|
|
52
57
|
"npm-run-all": "^4.1.5",
|
|
53
58
|
"prop-types": "^15.8.1",
|
|
54
|
-
"sass": "^1.
|
|
55
|
-
"sass-loader": "^
|
|
56
|
-
"terser-webpack-plugin": "^5.3.
|
|
57
|
-
"ts-loader": "^9.
|
|
58
|
-
"webpack": "^5.
|
|
59
|
-
"webpack-bundle-analyzer": "^4.
|
|
60
|
-
"webpack-cli": "^
|
|
61
|
-
"webpack-remove-empty-scripts": "^0.
|
|
59
|
+
"sass": "^1.69.5",
|
|
60
|
+
"sass-loader": "^13.3.2",
|
|
61
|
+
"terser-webpack-plugin": "^5.3.9",
|
|
62
|
+
"ts-loader": "^9.5.1",
|
|
63
|
+
"webpack": "^5.89.0",
|
|
64
|
+
"webpack-bundle-analyzer": "^4.10.1",
|
|
65
|
+
"webpack-cli": "^5.1.4",
|
|
66
|
+
"webpack-remove-empty-scripts": "^1.0.4"
|
|
62
67
|
}
|
|
63
|
-
}
|
|
68
|
+
}
|
package/src/@atoms.tsx
CHANGED
|
@@ -9,7 +9,9 @@ import {
|
|
|
9
9
|
Placeholder
|
|
10
10
|
} from './atoms/Various/parts';
|
|
11
11
|
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
FAI
|
|
14
|
+
} from './atoms/FAI/parts';
|
|
13
15
|
|
|
14
16
|
import { Logo } from './atoms/Logo/parts';
|
|
15
17
|
|
|
@@ -17,7 +19,7 @@ export {
|
|
|
17
19
|
Flex,
|
|
18
20
|
FlexBr,
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
FAI,
|
|
21
23
|
|
|
22
24
|
Placeholder,
|
|
23
25
|
|
package/src/@global.tsx
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ReactDOM from 'react-dom';
|
|
3
3
|
import * as ReactRouterDOM from 'react-router-dom';
|
|
4
|
+
import { baseElements } from './launch';
|
|
4
5
|
|
|
5
6
|
import { LaunchReactApplication } from './global/LaunchReactApplication';
|
|
6
7
|
|
|
8
|
+
export { baseElements }
|
|
7
9
|
const Inmemory: {
|
|
8
10
|
[ key: string ]: {
|
|
9
11
|
privateKey?: string
|
|
@@ -128,6 +130,9 @@ const StyleConverter = {
|
|
|
128
130
|
ToClassName
|
|
129
131
|
}
|
|
130
132
|
|
|
133
|
+
if ( !global.React ) global.React = React;
|
|
134
|
+
if ( !global.ReactDOM ) global.ReactDOM = ReactDOM;
|
|
135
|
+
|
|
131
136
|
export {
|
|
132
137
|
React,
|
|
133
138
|
ReactDOM,
|
package/src/@organisms.tsx
CHANGED
package/src/@styles/init.scss
CHANGED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export const launchID = $.uuidGen();
|
|
2
|
+
|
|
3
|
+
export const ColorKeys: amotify.ThemeColorTypes[] = [
|
|
4
|
+
'comun',
|
|
5
|
+
'leaf',
|
|
6
|
+
'heart',
|
|
7
|
+
'droplet',
|
|
8
|
+
'brick',
|
|
9
|
+
'flower',
|
|
10
|
+
'lip',
|
|
11
|
+
'wine',
|
|
12
|
+
'theater',
|
|
13
|
+
'bat',
|
|
14
|
+
'poizon',
|
|
15
|
+
'eggplant',
|
|
16
|
+
'ufo',
|
|
17
|
+
'alien',
|
|
18
|
+
'tombstone',
|
|
19
|
+
'ninja',
|
|
20
|
+
'moon',
|
|
21
|
+
'rain',
|
|
22
|
+
'unicorn',
|
|
23
|
+
'axe',
|
|
24
|
+
'gem',
|
|
25
|
+
'soap',
|
|
26
|
+
'drizzle',
|
|
27
|
+
'building',
|
|
28
|
+
'fish',
|
|
29
|
+
'icicles',
|
|
30
|
+
'water',
|
|
31
|
+
'tree1',
|
|
32
|
+
'tree2',
|
|
33
|
+
'tree3',
|
|
34
|
+
'battery',
|
|
35
|
+
'seedle',
|
|
36
|
+
'greenTea',
|
|
37
|
+
'oak',
|
|
38
|
+
'salad',
|
|
39
|
+
'cloudy',
|
|
40
|
+
'lemon',
|
|
41
|
+
'angel',
|
|
42
|
+
'parasol',
|
|
43
|
+
'pizza',
|
|
44
|
+
'thunder',
|
|
45
|
+
'latte',
|
|
46
|
+
'island',
|
|
47
|
+
'shovel',
|
|
48
|
+
'coffee',
|
|
49
|
+
'carrot',
|
|
50
|
+
'cactus',
|
|
51
|
+
'volcano',
|
|
52
|
+
'choco',
|
|
53
|
+
'industry',
|
|
54
|
+
'gun',
|
|
55
|
+
'galaxy',
|
|
56
|
+
'line',
|
|
57
|
+
'twitter',
|
|
58
|
+
'amazon',
|
|
59
|
+
'facebook',
|
|
60
|
+
'android',
|
|
61
|
+
'slackBlue',
|
|
62
|
+
'slackGreen',
|
|
63
|
+
'slackRed',
|
|
64
|
+
'slackYellow',
|
|
65
|
+
'slackBase',
|
|
66
|
+
'googleBlue',
|
|
67
|
+
'googleGreen',
|
|
68
|
+
'googleYellow',
|
|
69
|
+
'googleRed'
|
|
70
|
+
];
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Box
|
|
4
|
+
} from '../Various/parts';
|
|
5
|
+
|
|
6
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
7
|
+
|
|
8
|
+
import { faUser } from '@fortawesome/pro-solid-svg-icons/faUser';
|
|
9
|
+
import { faTimes } from '@fortawesome/pro-solid-svg-icons/faTimes';
|
|
10
|
+
import { faAngleRight } from '@fortawesome/pro-solid-svg-icons/faAngleRight';
|
|
11
|
+
import { faAngleLeft } from '@fortawesome/pro-solid-svg-icons/faAngleLeft';
|
|
12
|
+
import { faAngleUp } from '@fortawesome/pro-solid-svg-icons/faAngleUp';
|
|
13
|
+
import { faAngleDown } from '@fortawesome/pro-solid-svg-icons/faAngleDown';
|
|
14
|
+
import { faChevronLeft } from '@fortawesome/pro-solid-svg-icons/faChevronLeft';
|
|
15
|
+
import { faChevronRight } from '@fortawesome/pro-solid-svg-icons/faChevronRight';
|
|
16
|
+
import { faChevronUp } from '@fortawesome/pro-solid-svg-icons/faChevronUp';
|
|
17
|
+
import { faChevronDown } from '@fortawesome/pro-solid-svg-icons/faChevronDown';
|
|
18
|
+
import { faCaretLeft } from '@fortawesome/pro-solid-svg-icons/faCaretLeft';
|
|
19
|
+
import { faCaretRight } from '@fortawesome/pro-solid-svg-icons/faCaretRight';
|
|
20
|
+
import { faCaretUp } from '@fortawesome/pro-solid-svg-icons/faCaretUp';
|
|
21
|
+
import { faCaretDown } from '@fortawesome/pro-solid-svg-icons/faCaretDown';
|
|
22
|
+
import { faArrowLeft } from '@fortawesome/pro-solid-svg-icons/faArrowLeft';
|
|
23
|
+
import { faArrowRight } from '@fortawesome/pro-solid-svg-icons/faArrowRight';
|
|
24
|
+
import { faArrowUp } from '@fortawesome/pro-solid-svg-icons/faArrowUp';
|
|
25
|
+
import { faArrowDown } from '@fortawesome/pro-solid-svg-icons/faArrowDown';
|
|
26
|
+
import { faRotate } from '@fortawesome/pro-solid-svg-icons/faRotate';
|
|
27
|
+
import { faRedo } from '@fortawesome/pro-solid-svg-icons/faRedo';
|
|
28
|
+
import { faCheck } from '@fortawesome/pro-solid-svg-icons/faCheck';
|
|
29
|
+
import { faCheckCircle } from '@fortawesome/pro-solid-svg-icons/faCheckCircle';
|
|
30
|
+
import { faQuestion } from '@fortawesome/pro-solid-svg-icons/faQuestion';
|
|
31
|
+
import { faQuestionCircle } from '@fortawesome/pro-solid-svg-icons/faQuestionCircle';
|
|
32
|
+
import { faExclamation } from '@fortawesome/pro-solid-svg-icons/faExclamation';
|
|
33
|
+
import { faExclamationTriangle } from '@fortawesome/pro-solid-svg-icons/faExclamationTriangle';
|
|
34
|
+
import { faHome } from '@fortawesome/pro-solid-svg-icons/faHome';
|
|
35
|
+
import { faShare } from '@fortawesome/pro-solid-svg-icons/faShare';
|
|
36
|
+
import { faSearch } from '@fortawesome/pro-solid-svg-icons/faSearch';
|
|
37
|
+
import { faYenSign } from '@fortawesome/pro-solid-svg-icons/faYenSign';
|
|
38
|
+
import { faHeart } from '@fortawesome/pro-solid-svg-icons/faHeart';
|
|
39
|
+
import { faStar } from '@fortawesome/pro-solid-svg-icons/faStar';
|
|
40
|
+
import { faEdit } from '@fortawesome/pro-solid-svg-icons/faEdit';
|
|
41
|
+
import { faPen } from '@fortawesome/pro-solid-svg-icons/faPen';
|
|
42
|
+
import { faCopy } from '@fortawesome/pro-solid-svg-icons/faCopy';
|
|
43
|
+
import { faFile } from '@fortawesome/pro-solid-svg-icons/faFile';
|
|
44
|
+
import { faTrashAlt } from '@fortawesome/pro-solid-svg-icons/faTrashAlt';
|
|
45
|
+
import { faBars } from '@fortawesome/pro-solid-svg-icons/faBars';
|
|
46
|
+
import { faDownload } from '@fortawesome/pro-solid-svg-icons/faDownload';
|
|
47
|
+
import { faLink } from '@fortawesome/pro-solid-svg-icons/faLink';
|
|
48
|
+
import { faLinkSlash } from '@fortawesome/pro-solid-svg-icons/faLinkSlash';
|
|
49
|
+
import { faExternalLinkAlt } from '@fortawesome/pro-solid-svg-icons/faExternalLinkAlt';
|
|
50
|
+
import { faGear } from '@fortawesome/pro-solid-svg-icons/faGear';
|
|
51
|
+
import { faPlus } from '@fortawesome/pro-solid-svg-icons/faPlus';
|
|
52
|
+
import { faMinus } from '@fortawesome/pro-solid-svg-icons/faMinus';
|
|
53
|
+
import { faEllipsisH } from '@fortawesome/pro-solid-svg-icons/faEllipsisH';
|
|
54
|
+
import { faEllipsisV } from '@fortawesome/pro-solid-svg-icons/faEllipsisV';
|
|
55
|
+
import { faPaperPlane } from '@fortawesome/pro-solid-svg-icons/faPaperPlane';
|
|
56
|
+
import { faImage } from '@fortawesome/pro-solid-svg-icons/faImage';
|
|
57
|
+
|
|
58
|
+
const FAIComps: React.FC<amotify.atoms.FAI.FAIParams> = ( params ) => {
|
|
59
|
+
let {
|
|
60
|
+
icon,
|
|
61
|
+
iconParams,
|
|
62
|
+
...others
|
|
63
|
+
} = params;
|
|
64
|
+
|
|
65
|
+
return <Box
|
|
66
|
+
verticalAlign='center'
|
|
67
|
+
horizontalAlign='center'
|
|
68
|
+
{ ...others }
|
|
69
|
+
freeCSS={ {
|
|
70
|
+
display: 'inline-flex',
|
|
71
|
+
...others.freeCSS
|
|
72
|
+
} }
|
|
73
|
+
>
|
|
74
|
+
<FontAwesomeIcon
|
|
75
|
+
icon={ icon }
|
|
76
|
+
fixedWidth
|
|
77
|
+
{ ...iconParams }
|
|
78
|
+
/>
|
|
79
|
+
</Box>;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const FAI: amotify.atoms.FAI.Method = FAIComps as any;
|
|
83
|
+
|
|
84
|
+
FAI.User = ( params ) => ( <FAI { ...params } icon={ faUser } /> );
|
|
85
|
+
FAI.Times = ( params ) => ( <FAI { ...params } icon={ faTimes } /> );
|
|
86
|
+
FAI.AngleRight = ( params ) => ( <FAI { ...params } icon={ faAngleRight } /> );
|
|
87
|
+
FAI.AngleLeft = ( params ) => ( <FAI { ...params } icon={ faAngleLeft } /> );
|
|
88
|
+
FAI.AngleUp = ( params ) => ( <FAI { ...params } icon={ faAngleUp } /> );
|
|
89
|
+
FAI.AngleDown = ( params ) => ( <FAI { ...params } icon={ faAngleDown } /> );
|
|
90
|
+
FAI.ChevronLeft = ( params ) => ( <FAI { ...params } icon={ faChevronLeft } /> );
|
|
91
|
+
FAI.ChevronRight = ( params ) => ( <FAI { ...params } icon={ faChevronRight } /> );
|
|
92
|
+
FAI.ChevronUp = ( params ) => ( <FAI { ...params } icon={ faChevronUp } /> );
|
|
93
|
+
FAI.ChevronDown = ( params ) => ( <FAI { ...params } icon={ faChevronDown } /> );
|
|
94
|
+
FAI.CaretLeft = ( params ) => ( <FAI { ...params } icon={ faCaretLeft } /> );
|
|
95
|
+
FAI.CaretRight = ( params ) => ( <FAI { ...params } icon={ faCaretRight } /> );
|
|
96
|
+
FAI.CaretUp = ( params ) => ( <FAI { ...params } icon={ faCaretUp } /> );
|
|
97
|
+
FAI.CaretDown = ( params ) => ( <FAI { ...params } icon={ faCaretDown } /> );
|
|
98
|
+
FAI.ArrowLeft = ( params ) => ( <FAI { ...params } icon={ faArrowLeft } /> );
|
|
99
|
+
FAI.ArrowRight = ( params ) => ( <FAI { ...params } icon={ faArrowRight } /> );
|
|
100
|
+
FAI.ArrowUp = ( params ) => ( <FAI { ...params } icon={ faArrowUp } /> );
|
|
101
|
+
FAI.ArrowDown = ( params ) => ( <FAI { ...params } icon={ faArrowDown } /> );
|
|
102
|
+
FAI.Rotate = ( params ) => ( <FAI { ...params } icon={ faRotate } /> );
|
|
103
|
+
FAI.Redo = ( params ) => ( <FAI { ...params } icon={ faRedo } /> );
|
|
104
|
+
FAI.Check = ( params ) => ( <FAI { ...params } icon={ faCheck } /> );
|
|
105
|
+
FAI.CheckCircle = ( params ) => ( <FAI { ...params } icon={ faCheckCircle } /> );
|
|
106
|
+
FAI.Question = ( params ) => ( <FAI { ...params } icon={ faQuestion } /> );
|
|
107
|
+
FAI.QuestionCircle = ( params ) => ( <FAI { ...params } icon={ faQuestionCircle } /> );
|
|
108
|
+
FAI.Exclamation = ( params ) => ( <FAI { ...params } icon={ faExclamation } /> );
|
|
109
|
+
FAI.ExclamationTriangle = ( params ) => ( <FAI { ...params } icon={ faExclamationTriangle } /> );
|
|
110
|
+
FAI.Home = ( params ) => ( <FAI { ...params } icon={ faHome } /> );
|
|
111
|
+
FAI.Share = ( params ) => ( <FAI { ...params } icon={ faShare } /> );
|
|
112
|
+
FAI.Search = ( params ) => ( <FAI { ...params } icon={ faSearch } /> );
|
|
113
|
+
FAI.YenSign = ( params ) => ( <FAI { ...params } icon={ faYenSign } /> );
|
|
114
|
+
FAI.Heart = ( params ) => ( <FAI { ...params } icon={ faHeart } /> );
|
|
115
|
+
FAI.Star = ( params ) => ( <FAI { ...params } icon={ faStar } /> );
|
|
116
|
+
FAI.Edit = ( params ) => ( <FAI { ...params } icon={ faEdit } /> );
|
|
117
|
+
FAI.Pen = ( params ) => ( <FAI { ...params } icon={ faPen } /> );
|
|
118
|
+
FAI.Copy = ( params ) => ( <FAI { ...params } icon={ faCopy } /> );
|
|
119
|
+
FAI.File = ( params ) => ( <FAI { ...params } icon={ faFile } /> );
|
|
120
|
+
FAI.TrashAlt = ( params ) => ( <FAI { ...params } icon={ faTrashAlt } /> );
|
|
121
|
+
FAI.Bars = ( params ) => ( <FAI { ...params } icon={ faBars } /> );
|
|
122
|
+
FAI.Download = ( params ) => ( <FAI { ...params } icon={ faDownload } /> );
|
|
123
|
+
FAI.Link = ( params ) => ( <FAI { ...params } icon={ faLink } /> );
|
|
124
|
+
FAI.LinkSlash = ( params ) => ( <FAI { ...params } icon={ faLinkSlash } /> );
|
|
125
|
+
FAI.ExternalLinkAlt = ( params ) => ( <FAI { ...params } icon={ faExternalLinkAlt } /> );
|
|
126
|
+
FAI.Gear = ( params ) => ( <FAI { ...params } icon={ faGear } /> );
|
|
127
|
+
FAI.Plus = ( params ) => ( <FAI { ...params } icon={ faPlus } /> );
|
|
128
|
+
FAI.Minus = ( params ) => ( <FAI { ...params } icon={ faMinus } /> );
|
|
129
|
+
FAI.EllipsisH = ( params ) => ( <FAI { ...params } icon={ faEllipsisH } /> );
|
|
130
|
+
FAI.EllipsisV = ( params ) => ( <FAI { ...params } icon={ faEllipsisV } /> );
|
|
131
|
+
FAI.PaperPlane = ( params ) => ( <FAI { ...params } icon={ faPaperPlane } /> );
|
|
132
|
+
FAI.Image = ( params ) => ( <FAI { ...params } icon={ faImage } /> );
|
|
133
|
+
|
|
134
|
+
export { FAI }
|
package/src/config.tsx
CHANGED
|
@@ -27,6 +27,9 @@ export const deviceIdentifier = () => {
|
|
|
27
27
|
return info;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
|
|
31
|
+
import { ColorKeys } from './@variables';
|
|
32
|
+
|
|
30
33
|
export const SetThemeColorTag = () => {
|
|
31
34
|
let hex = '#45515c';
|
|
32
35
|
let meta = $( '#ThemeColorMetaTag' );
|
|
@@ -34,6 +37,29 @@ export const SetThemeColorTag = () => {
|
|
|
34
37
|
meta.setAttribute( 'content',hex );
|
|
35
38
|
}
|
|
36
39
|
|
|
40
|
+
const DarkmodeColors: {
|
|
41
|
+
light: string
|
|
42
|
+
dark: string
|
|
43
|
+
dim: string
|
|
44
|
+
auto(): string
|
|
45
|
+
} = {
|
|
46
|
+
light: '#FFF',
|
|
47
|
+
dark: '#333',
|
|
48
|
+
dim: '#666',
|
|
49
|
+
auto: () => {
|
|
50
|
+
return amotify.config.device.isSystemDarkmode() ? '#333' : '#FFF';
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const ThemeColors: {
|
|
55
|
+
[ key in amotify.ThemeColorTypes ]: {
|
|
56
|
+
( alfa?: number ): string
|
|
57
|
+
}
|
|
58
|
+
} = {} as any;
|
|
59
|
+
ColorKeys.forEach( ( key ) => {
|
|
60
|
+
ThemeColors[ key ] = ( alfa?: number ) => ( `hsla( var( --cH_${ key } ),var( --cS_${ key } ),var( --cL_${ key } ),${ alfa ?? 1 } ) ` );
|
|
61
|
+
} );
|
|
62
|
+
|
|
37
63
|
export const defaultConfig: amotify.config.Methods = {
|
|
38
64
|
version: Version,
|
|
39
65
|
tone: 'default',
|
|
@@ -61,11 +87,7 @@ export const defaultConfig: amotify.config.Methods = {
|
|
|
61
87
|
amotify.global.useRecycle.do( 'RootViewController' );
|
|
62
88
|
},
|
|
63
89
|
themeColor: ( value ) => {
|
|
64
|
-
if ( !
|
|
65
|
-
'comun','leaf','heart','droplet',
|
|
66
|
-
'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',
|
|
67
|
-
'line','twitter','amazon','facebook','android','slackBlue','slackGreen','slackRed','slackYellow','slackBase','googleBlue','googleGreen','googleYellow','googleRed'
|
|
68
|
-
].includes( value ) ) value = 'comun';
|
|
90
|
+
if ( !ColorKeys.includes( value ) ) value = 'comun';
|
|
69
91
|
if ( value == amotify.config.themeColor ) return;
|
|
70
92
|
|
|
71
93
|
amotify.config.themeColor = value;
|
|
@@ -114,6 +136,10 @@ export const defaultConfig: amotify.config.Methods = {
|
|
|
114
136
|
valid = true;
|
|
115
137
|
}
|
|
116
138
|
return valid;
|
|
139
|
+
},
|
|
140
|
+
variables: {
|
|
141
|
+
themeColors: ThemeColors,
|
|
142
|
+
darkmodeColors: DarkmodeColors
|
|
117
143
|
}
|
|
118
144
|
}
|
|
119
145
|
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
Box,
|
|
7
7
|
Flex,
|
|
8
|
-
|
|
8
|
+
FAI
|
|
9
9
|
} from '@atoms';
|
|
10
10
|
import {
|
|
11
11
|
Column,
|
|
@@ -20,6 +20,11 @@ import {
|
|
|
20
20
|
Loader
|
|
21
21
|
} from '@fn';
|
|
22
22
|
|
|
23
|
+
import { faPalette } from '@fortawesome/pro-solid-svg-icons/faPalette';
|
|
24
|
+
import { faBarsStaggered } from '@fortawesome/pro-solid-svg-icons/faBarsStaggered';
|
|
25
|
+
import { faRotateLeft } from '@fortawesome/pro-solid-svg-icons/faRotateLeft';
|
|
26
|
+
import { faRotateRight } from '@fortawesome/pro-solid-svg-icons/faRotateRight';
|
|
27
|
+
|
|
23
28
|
import style from './style.module.scss';
|
|
24
29
|
|
|
25
30
|
type CoreProps = {
|
|
@@ -906,8 +911,9 @@ const Comps: {
|
|
|
906
911
|
<>
|
|
907
912
|
<Column gap={ '1/3' } >
|
|
908
913
|
<Box>
|
|
909
|
-
<
|
|
914
|
+
<FAI.Rotate
|
|
910
915
|
fontSize='3.paragraph'
|
|
916
|
+
fontColor='4.thin'
|
|
911
917
|
/> Rotate
|
|
912
918
|
</Box>
|
|
913
919
|
<Row.Separate
|
|
@@ -921,22 +927,22 @@ const Comps: {
|
|
|
921
927
|
params.set_rotate( next );
|
|
922
928
|
} }
|
|
923
929
|
>
|
|
924
|
-
<
|
|
930
|
+
<FAI icon={ faRotateLeft } /> 左に回転
|
|
925
931
|
</Buttons.Button.Border.R>
|
|
926
932
|
<Buttons.Button.Border.R
|
|
927
933
|
onClick={ () => {
|
|
928
934
|
params.set_rotate( ( params.val_rotate + 90 ) % 360 );
|
|
929
935
|
} }
|
|
930
936
|
>
|
|
931
|
-
右に回転 <
|
|
937
|
+
右に回転 <FAI icon={ faRotateRight } />
|
|
932
938
|
</Buttons.Button.Border.R>
|
|
933
939
|
</Row.Separate>
|
|
934
940
|
</Column>
|
|
935
941
|
<Column gap={ '1/3' } >
|
|
936
942
|
<Box>
|
|
937
|
-
<
|
|
943
|
+
<FAI.Search
|
|
938
944
|
fontSize='3.paragraph'
|
|
939
|
-
|
|
945
|
+
fontColor='4.thin'
|
|
940
946
|
/> Zoom
|
|
941
947
|
</Box>
|
|
942
948
|
<Box paddingLeft={ 2 }>
|
|
@@ -961,9 +967,10 @@ const Comps: {
|
|
|
961
967
|
</Column>
|
|
962
968
|
<Column gap={ '1/3' } >
|
|
963
969
|
<Box>
|
|
964
|
-
<
|
|
970
|
+
<FAI
|
|
971
|
+
icon={ faPalette }
|
|
965
972
|
fontSize='3.paragraph'
|
|
966
|
-
|
|
973
|
+
fontColor='4.thin'
|
|
967
974
|
/> Gray Scale
|
|
968
975
|
</Box>
|
|
969
976
|
<Box paddingLeft={ 2 }>
|
|
@@ -984,9 +991,10 @@ const Comps: {
|
|
|
984
991
|
</Column>
|
|
985
992
|
<Column gap={ '1/3' }>
|
|
986
993
|
<Box>
|
|
987
|
-
<
|
|
994
|
+
<FAI
|
|
995
|
+
icon={ faBarsStaggered }
|
|
988
996
|
fontSize='3.paragraph'
|
|
989
|
-
|
|
997
|
+
fontColor='4.thin'
|
|
990
998
|
/> Tone
|
|
991
999
|
</Box>
|
|
992
1000
|
<Box paddingLeft={ 2 }>
|
|
@@ -4,8 +4,7 @@ import {
|
|
|
4
4
|
} from '@global';
|
|
5
5
|
import {
|
|
6
6
|
Box,
|
|
7
|
-
|
|
8
|
-
FAIcon,
|
|
7
|
+
FAI,
|
|
9
8
|
Span
|
|
10
9
|
} from '@atoms';
|
|
11
10
|
import {
|
|
@@ -20,6 +19,8 @@ import {
|
|
|
20
19
|
Sheet
|
|
21
20
|
} from '@fn';
|
|
22
21
|
|
|
22
|
+
import { faWindowMinimize } from '@fortawesome/pro-solid-svg-icons/faWindowMinimize';
|
|
23
|
+
|
|
23
24
|
import style from './style.module.scss';
|
|
24
25
|
|
|
25
26
|
const Selector = ( params: {
|
|
@@ -196,6 +197,7 @@ const Selector = ( params: {
|
|
|
196
197
|
}
|
|
197
198
|
|
|
198
199
|
return <Buttons.Button.Clear.R
|
|
200
|
+
key={ index }
|
|
199
201
|
color='cloud'
|
|
200
202
|
padding={ '1/3' }
|
|
201
203
|
tabIndex={ -1 }
|
|
@@ -256,7 +258,7 @@ const Selector = ( params: {
|
|
|
256
258
|
fontSize={ '1.mini' }
|
|
257
259
|
fontColor='3.blur'
|
|
258
260
|
>
|
|
259
|
-
<
|
|
261
|
+
<FAI.Search />
|
|
260
262
|
</Input.Comps.LeftIcon> }
|
|
261
263
|
onKeyDown={ ( event ) => {
|
|
262
264
|
let {
|
|
@@ -312,9 +314,7 @@ const Selector = ( params: {
|
|
|
312
314
|
Sheet.close( params.selectorID! );
|
|
313
315
|
} }
|
|
314
316
|
>
|
|
315
|
-
<
|
|
316
|
-
d='window-minimize'
|
|
317
|
-
/>
|
|
317
|
+
<FAI icon={ faWindowMinimize } />
|
|
318
318
|
</Buttons.Button.Border.S>
|
|
319
319
|
</Row.Separate>
|
|
320
320
|
<Row.Separate>
|
|
@@ -386,9 +386,9 @@ export const ChipsInputFNs: amotify.fn.Input.Chips.FNs = {
|
|
|
386
386
|
|
|
387
387
|
SelectorCellComponent = SelectorCellComponent || ( ( params ) => {
|
|
388
388
|
return <Row.Left>
|
|
389
|
-
<
|
|
390
|
-
isSolidIcon={ params.isSelected }
|
|
391
|
-
isRegularIcon={ !params.isSelected }
|
|
389
|
+
<FAI.CheckCircle
|
|
390
|
+
// isSolidIcon={ params.isSelected }
|
|
391
|
+
// isRegularIcon={ !params.isSelected }
|
|
392
392
|
fontColor={ params.isSelected ? 'theme' : '6.clear' }
|
|
393
393
|
/>
|
|
394
394
|
{ params.label }
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
React
|
|
3
3
|
} from '@global';
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
FAI
|
|
6
6
|
} from '@atoms';
|
|
7
7
|
import {
|
|
8
8
|
Column,
|
|
@@ -85,7 +85,7 @@ const DataWrapping: React.FC<amotify.fn.Input.Chips.PlainParams> = ( params ) =>
|
|
|
85
85
|
props.openCallback();
|
|
86
86
|
} }
|
|
87
87
|
>
|
|
88
|
-
<
|
|
88
|
+
<FAI.Plus />
|
|
89
89
|
追加する
|
|
90
90
|
</Buttons.Button.Sub.R>;
|
|
91
91
|
} }
|
|
@@ -106,9 +106,15 @@ const Core: React.FC<amotify.fn.Input.Chips.PlainParams> = ( params ) => {
|
|
|
106
106
|
value = [],
|
|
107
107
|
limit,
|
|
108
108
|
|
|
109
|
+
leftIndicator,rightIndicator,leftIcon,rightIcon,
|
|
110
|
+
|
|
109
111
|
SelectedCellComponent,
|
|
110
112
|
AddButtonComponent,
|
|
111
113
|
|
|
114
|
+
componentID,
|
|
115
|
+
defaultOptions,
|
|
116
|
+
enableFormSubmit,
|
|
117
|
+
|
|
112
118
|
...others
|
|
113
119
|
} = params;
|
|
114
120
|
AddButtonComponent = AddButtonComponent!;
|
|
@@ -202,6 +208,7 @@ const Core: React.FC<amotify.fn.Input.Chips.PlainParams> = ( params ) => {
|
|
|
202
208
|
}
|
|
203
209
|
}
|
|
204
210
|
return <SelectedCellComponent
|
|
211
|
+
key={ JSON.stringify( value ) }
|
|
205
212
|
value={ value }
|
|
206
213
|
label={ label }
|
|
207
214
|
removeCallback={ removeCallback }
|
|
@@ -214,7 +221,7 @@ const Core: React.FC<amotify.fn.Input.Chips.PlainParams> = ( params ) => {
|
|
|
214
221
|
removeCallback();
|
|
215
222
|
} }
|
|
216
223
|
>
|
|
217
|
-
<
|
|
224
|
+
<FAI.Times />
|
|
218
225
|
</Buttons.Button.Sub.S> }
|
|
219
226
|
openCallback={ () => {
|
|
220
227
|
OpenSelector();
|