amotify 0.0.64 → 0.0.66
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/amotify.js +3 -2
- package/dist/amotify.min.css +2 -2
- package/dist/coreVender.js +14 -2
- package/package.json +10 -10
- package/tsconfig.json +13 -5
- package/@types/_.tsx +0 -7
- package/@types/amot.tsx +0 -357
- package/@types/fn.tsx +0 -1280
- package/@types/jsminAmotifyExtension.tsx +0 -137
- package/@types/module.tsx +0 -1
- package/@types/state.tsx +0 -231
- package/src/@atoms.tsx +0 -34
- package/src/@functions.tsx +0 -29
- package/src/@global.tsx +0 -149
- package/src/@jsminAmotifyExtension/_.tsx +0 -4
- package/src/@jsminAmotifyExtension/fetch.tsx +0 -110
- package/src/@jsminAmotifyExtension/formCollect.tsx +0 -94
- package/src/@jsminAmotifyExtension/spreadSheet.tsx +0 -165
- package/src/@jsminAmotifyExtension/variables.tsx +0 -137
- package/src/@molecules.tsx +0 -96
- package/src/@organisms.tsx +0 -1
- package/src/@reactPacks/reactProduction@18.2.0.js +0 -79
- package/src/@reactPacks/reactRouterDomProduction@18.2.0.js +0 -31
- package/src/@styles/@app.scss +0 -4
- package/src/@styles/UniStyling.scss +0 -1028
- package/src/@styles/init.scss +0 -94
- package/src/@styles/props.scss +0 -109
- package/src/@styles/styleSet.scss +0 -38
- package/src/@styles/themeColor.scss +0 -71
- package/src/@styles/var.scss +0 -182
- package/src/@templates.tsx +0 -7
- package/src/@variables.tsx +0 -74
- package/src/atoms/FAI/parts.tsx +0 -139
- package/src/atoms/Logo/parts.tsx +0 -335
- package/src/atoms/Logo/style.module.scss +0 -96
- package/src/atoms/Various/parts.tsx +0 -159
- package/src/atoms/Various/style.module.scss +0 -46
- package/src/config.tsx +0 -191
- package/src/functions/Button/_.tsx +0 -331
- package/src/functions/Button/style.module.scss +0 -157
- package/src/functions/Cropper/parts.tsx +0 -1084
- package/src/functions/Cropper/style.module.scss +0 -64
- package/src/functions/Effects/Fade.tsx +0 -76
- package/src/functions/Effects/Ripple.tsx +0 -141
- package/src/functions/Effects/_.tsx +0 -33
- package/src/functions/Effects/style.module.scss +0 -91
- package/src/functions/Input/Chips/Selector.tsx +0 -445
- package/src/functions/Input/Chips/_.tsx +0 -289
- package/src/functions/Input/Chips/style.module.scss +0 -6
- package/src/functions/Input/Contenteditable.tsx +0 -114
- package/src/functions/Input/DigitCharacters.tsx +0 -235
- package/src/functions/Input/File/_.tsx +0 -553
- package/src/functions/Input/File/style.module.scss +0 -34
- package/src/functions/Input/Hidden.tsx +0 -21
- package/src/functions/Input/List/_.tsx +0 -383
- package/src/functions/Input/List/style.module.scss +0 -84
- package/src/functions/Input/RichSelect/_.tsx +0 -230
- package/src/functions/Input/RichSelect/style.module.scss +0 -11
- package/src/functions/Input/Segmented/_.tsx +0 -246
- package/src/functions/Input/Segmented/style.module.scss +0 -81
- package/src/functions/Input/Select/_.tsx +0 -218
- package/src/functions/Input/Select/style.module.scss +0 -11
- package/src/functions/Input/Slider/_.tsx +0 -524
- package/src/functions/Input/Slider/style.module.scss +0 -67
- package/src/functions/Input/Switch/_.tsx +0 -176
- package/src/functions/Input/Switch/style.module.scss +0 -18
- package/src/functions/Input/Text.tsx +0 -487
- package/src/functions/Input/TextArea.tsx +0 -109
- package/src/functions/Input/Time/Picker.tsx +0 -1361
- package/src/functions/Input/Time/_.tsx +0 -749
- package/src/functions/Input/Time/style.module.scss +0 -79
- package/src/functions/Input/_.tsx +0 -881
- package/src/functions/Input/core.tsx +0 -473
- package/src/functions/Input/style.module.scss +0 -102
- package/src/functions/Inputs/_.tsx +0 -5
- package/src/functions/Inputs/style.module.scss +0 -15
- package/src/functions/Inputs/text.tsx +0 -53
- package/src/functions/Inputs/types.d.ts +0 -13
- package/src/functions/Layout/PageNotFound.tsx +0 -78
- package/src/functions/Layout/PageRouter.tsx +0 -89
- package/src/functions/Layout/PageViewController/parts.tsx +0 -27
- package/src/functions/Layout/Plate.tsx +0 -30
- package/src/functions/Layout/RootViewController/parts.tsx +0 -300
- package/src/functions/Layout/RootViewController/style.module.scss +0 -23
- package/src/functions/Layout/SwipeView/parts.tsx +0 -375
- package/src/functions/Layout/SwipeView/style.module.scss +0 -20
- package/src/functions/Layout/TabBar.tsx +0 -60
- package/src/functions/Layout/_.tsx +0 -20
- package/src/functions/Loader/corner.tsx +0 -74
- package/src/functions/Loader/mini.tsx +0 -114
- package/src/functions/Loader/parts.tsx +0 -103
- package/src/functions/Loader/style.module.scss +0 -223
- package/src/functions/Loader/top.tsx +0 -84
- package/src/functions/Sheet/parts.tsx +0 -994
- package/src/functions/Sheet/style.module.scss +0 -208
- 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 -965
- package/src/functions/Table/Drag/parts.tsx +0 -442
- package/src/functions/Table/Normal/parts.tsx +0 -124
- package/src/functions/Table/_.tsx +0 -177
- package/src/functions/Table/style.module.scss +0 -93
- package/src/functions/Tooltips/parts.tsx +0 -53
- package/src/global/LaunchReactApplication.tsx +0 -74
- package/src/global/styleConverter.tsx +0 -465
- package/src/launch.tsx +0 -119
- package/src/molecules/Accordion/parts.tsx +0 -146
- package/src/molecules/Accordion/style.module.scss +0 -13
- package/src/molecules/LinkifyText/parts.tsx +0 -52
- package/src/molecules/List.tsx +0 -31
- package/src/preload.tsx +0 -31
- package/src/templates/PlayGround/parts.tsx +0 -96
- package/src/templates/PlayGround/style.module.scss +0 -38
- package/webpack.config.js +0 -146
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
StyleConverter,
|
|
3
|
-
React
|
|
4
|
-
} from '@global'
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
Box,
|
|
8
|
-
FAI
|
|
9
|
-
} from '@atoms'
|
|
10
|
-
|
|
11
|
-
export const Comps: amotify.fn.Tables.CompsMethods = {
|
|
12
|
-
Table: ( params ) => {
|
|
13
|
-
let Params = StyleConverter.ToClassName( params )
|
|
14
|
-
return <table
|
|
15
|
-
{ ...Params }
|
|
16
|
-
border={ Params.border as any }
|
|
17
|
-
/>
|
|
18
|
-
},
|
|
19
|
-
Head: ( params ) => ( <thead { ...StyleConverter.ToClassName( params ) } /> ),
|
|
20
|
-
Body: ( params ) => ( <tbody { ...StyleConverter.ToClassName( params ) } /> ),
|
|
21
|
-
Row: ( params ) => ( <tr { ...StyleConverter.ToClassName( params ) } /> ),
|
|
22
|
-
|
|
23
|
-
TH: ( params ) => ( <th { ...StyleConverter.ToClassName( params ) } /> ),
|
|
24
|
-
TD: ( params ) => ( <td { ...StyleConverter.ToClassName( params ) } /> ),
|
|
25
|
-
|
|
26
|
-
RightIndicator: {
|
|
27
|
-
type: 'td',
|
|
28
|
-
unitWidth: 4,
|
|
29
|
-
// data: '',
|
|
30
|
-
children: <FAI.AngleRight
|
|
31
|
-
fontColor={ 'theme' }
|
|
32
|
-
fontSize={ '4.thirdTitle' }
|
|
33
|
-
/>
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
import { NormalTable } from './Normal/parts'
|
|
38
|
-
import {
|
|
39
|
-
DataTable,
|
|
40
|
-
DataFNs,
|
|
41
|
-
DataComps
|
|
42
|
-
} from './Data/parts'
|
|
43
|
-
import { DragTable } from './Drag/parts'
|
|
44
|
-
|
|
45
|
-
import style from './style.module.scss'
|
|
46
|
-
|
|
47
|
-
const Wrapper: React.FC<amotify.fn.Tables.Uni.Params & {
|
|
48
|
-
type: amotify.fn.Tables.Types
|
|
49
|
-
}> = ( params ) => {
|
|
50
|
-
let {
|
|
51
|
-
tone,
|
|
52
|
-
type,
|
|
53
|
-
} = params
|
|
54
|
-
params = { ...params }
|
|
55
|
-
params.tableID = params.tableID || $.uuidGen()
|
|
56
|
-
tone = tone || 'auto'
|
|
57
|
-
|
|
58
|
-
if ( tone == 'auto' ) {
|
|
59
|
-
if ( type == 'drag' ) {
|
|
60
|
-
tone = 'rowBorder'
|
|
61
|
-
} else {
|
|
62
|
-
tone = 'border'
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
let Params = {
|
|
67
|
-
...tone != 'plain' ? {
|
|
68
|
-
backgroundColor: '1.layer.base',
|
|
69
|
-
borderRadius: '1.tone.primary',
|
|
70
|
-
} as amotifyUniStyleParams : {},
|
|
71
|
-
...params,
|
|
72
|
-
cellStyles: {
|
|
73
|
-
padding: '3/4',
|
|
74
|
-
backgroundColor: '1.layer.base',
|
|
75
|
-
transition: 'short',
|
|
76
|
-
textAlign: 'center',
|
|
77
|
-
...DefaultCellStyles( type,tone! ),
|
|
78
|
-
...params.cellStyles
|
|
79
|
-
},
|
|
80
|
-
tone
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
let {
|
|
84
|
-
className,
|
|
85
|
-
style: freeCSS,
|
|
86
|
-
...others
|
|
87
|
-
} = StyleConverter.ToClassName( Params as any )
|
|
88
|
-
|
|
89
|
-
let ClassName = [
|
|
90
|
-
className,
|
|
91
|
-
style.Wrap,
|
|
92
|
-
style[ 'TableType_' + type ],
|
|
93
|
-
style[ 'RowClickable_' + !!( params as any ).onRowClick ]
|
|
94
|
-
].join( ' ' )
|
|
95
|
-
|
|
96
|
-
let TableComponent = {
|
|
97
|
-
'normal': NormalTable,
|
|
98
|
-
'data': DataTable,
|
|
99
|
-
'drag': DragTable,
|
|
100
|
-
'spread': ''
|
|
101
|
-
}[ type ]
|
|
102
|
-
|
|
103
|
-
return <Box
|
|
104
|
-
className={ ClassName }
|
|
105
|
-
style={ freeCSS }
|
|
106
|
-
>
|
|
107
|
-
<TableComponent { ...others as any } />
|
|
108
|
-
</Box>
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
let DataComponent: any = ( props: any ) => ( <Wrapper type='data' { ...props } /> )
|
|
112
|
-
Object.entries( DataFNs ).forEach( ( [ key,value ] ) => {
|
|
113
|
-
DataComponent[ key ] = value
|
|
114
|
-
} )
|
|
115
|
-
Object.entries( DataComps ).forEach( ( [ key,value ] ) => {
|
|
116
|
-
DataComponent[ key ] = value
|
|
117
|
-
} )
|
|
118
|
-
|
|
119
|
-
export const Table: amotify.fn.Tables.Methods = {
|
|
120
|
-
Normal: ( props ) => ( <Wrapper type='normal' { ...props } /> ),
|
|
121
|
-
Data: DataComponent as amotify.fn.Tables.Data.Methods,
|
|
122
|
-
Drag: ( props ) => ( <Wrapper type='drag' { ...props } /> ),
|
|
123
|
-
Spread: () => ( <>Table.Spread ( in Progress )</> ),
|
|
124
|
-
|
|
125
|
-
Comps
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export const DefaultCellStyles = ( type: amotify.fn.Tables.Types,tone: amotify.fn.Tables.Tones ) => {
|
|
129
|
-
if ( tone == 'plain' ) return {}
|
|
130
|
-
|
|
131
|
-
let Styles: amotifyUniStyleParams = {}
|
|
132
|
-
if ( type == 'drag' ) {
|
|
133
|
-
Styles.padding = 1
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
if ( [ 'border','rowBorder','cellBorder' ].includes( tone ) ) {
|
|
137
|
-
Styles.borderBottom = '2.normal'
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
if ( [ 'border','cellBorder' ].includes( tone ) ) {
|
|
141
|
-
Styles.borderRight = '2.normal'
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
return Styles
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export const DefaultCellSystemStyles = ( args: {
|
|
148
|
-
top: boolean
|
|
149
|
-
bottom: boolean
|
|
150
|
-
left: boolean
|
|
151
|
-
right: boolean
|
|
152
|
-
} ) => {
|
|
153
|
-
let Styles: amotifyUniStyleParams = {}
|
|
154
|
-
if ( args.right ) {
|
|
155
|
-
Styles.borderRight = 'unset'
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
if ( args.top ) {
|
|
159
|
-
if ( args.left ) {
|
|
160
|
-
Styles.borderTopLeftRadius = 'inherit'
|
|
161
|
-
}
|
|
162
|
-
if ( args.right ) {
|
|
163
|
-
Styles.borderTopRightRadius = 'inherit'
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
if ( args.bottom ) {
|
|
167
|
-
Styles.borderBottom = 'unset'
|
|
168
|
-
if ( args.left ) {
|
|
169
|
-
Styles.borderBottomLeftRadius = 'inherit'
|
|
170
|
-
}
|
|
171
|
-
if ( args.right ) {
|
|
172
|
-
Styles.borderBottomRightRadius = 'inherit'
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
return Styles
|
|
177
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
@use '@props' as *;
|
|
2
|
-
@use'@styleSet' as *;
|
|
3
|
-
|
|
4
|
-
.Wrap {
|
|
5
|
-
&.RowClickable_true {
|
|
6
|
-
.Row {
|
|
7
|
-
&.BodyRow:not(.DataNotFound) {
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
&:hover .Cell {
|
|
10
|
-
background-color: $color-layer2;
|
|
11
|
-
}
|
|
12
|
-
&:active .Cell {
|
|
13
|
-
background-color: $color-layer3;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
.Table {
|
|
19
|
-
@include pureTable();
|
|
20
|
-
height: 100%;
|
|
21
|
-
border-radius: inherit;
|
|
22
|
-
.Row {
|
|
23
|
-
border-radius: inherit;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
.TableType_ {
|
|
28
|
-
&drag {
|
|
29
|
-
* {
|
|
30
|
-
@include DisableduserSelect();
|
|
31
|
-
}
|
|
32
|
-
.DraggerOrigin {
|
|
33
|
-
.Cell {
|
|
34
|
-
transition: $animation-time-middle;
|
|
35
|
-
background-color: $color-layer4;
|
|
36
|
-
opacity: .8;
|
|
37
|
-
pointer-events: none;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
.DragableButton {
|
|
41
|
-
cursor: grab;
|
|
42
|
-
&:hover {
|
|
43
|
-
color: $color-theme;
|
|
44
|
-
}
|
|
45
|
-
&:active {
|
|
46
|
-
color: $color-theme;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
&data {
|
|
51
|
-
.Console {
|
|
52
|
-
width: 100%;
|
|
53
|
-
border-bottom: $border-normal;
|
|
54
|
-
position: relative;
|
|
55
|
-
z-index: 2;
|
|
56
|
-
flex: none;
|
|
57
|
-
+ .TableBase {
|
|
58
|
-
border-top-left-radius: 0;
|
|
59
|
-
border-top-right-radius: 0;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
.TableBase {
|
|
63
|
-
border-radius: inherit;
|
|
64
|
-
.Table {
|
|
65
|
-
border-radius: inherit;
|
|
66
|
-
.HeadRow {
|
|
67
|
-
border-radius: inherit;
|
|
68
|
-
position: relative;
|
|
69
|
-
z-index: 2 !important;
|
|
70
|
-
min-width: 100%;
|
|
71
|
-
.Cell {
|
|
72
|
-
.FilterRegion {
|
|
73
|
-
font-size: inherit;
|
|
74
|
-
.Filtering_true {
|
|
75
|
-
border: none;
|
|
76
|
-
background-color: $color-theme !important;
|
|
77
|
-
color: #fff !important;
|
|
78
|
-
box-shadow: $shadow2;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
.BodyRow {
|
|
84
|
-
position: relative;
|
|
85
|
-
z-index: 1;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
.Cell {
|
|
92
|
-
font-weight: normal;
|
|
93
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import {
|
|
3
|
-
Box
|
|
4
|
-
} from '@atoms'
|
|
5
|
-
import {
|
|
6
|
-
Sheet
|
|
7
|
-
} from '@fn'
|
|
8
|
-
|
|
9
|
-
const Tooltips: amotify.fn.Tooltips.Methods = {
|
|
10
|
-
__memoryID: $.uuidGen(),
|
|
11
|
-
open: ( params ) => {
|
|
12
|
-
let {
|
|
13
|
-
tipsID = $.uuidGen(),
|
|
14
|
-
tipsGroups = [],
|
|
15
|
-
...sheetParams
|
|
16
|
-
} = params
|
|
17
|
-
|
|
18
|
-
Sheet.open( {
|
|
19
|
-
sheetID: tipsID!,
|
|
20
|
-
sheetGroups: [
|
|
21
|
-
'tooltips',
|
|
22
|
-
...tipsGroups,
|
|
23
|
-
],
|
|
24
|
-
close_option: {
|
|
25
|
-
aroundClick: true,
|
|
26
|
-
elementBlur: params.parent,
|
|
27
|
-
escapeKeyDown: true,
|
|
28
|
-
pageTransit: true,
|
|
29
|
-
...params.close_option,
|
|
30
|
-
},
|
|
31
|
-
type: 'custom',
|
|
32
|
-
...sheetParams
|
|
33
|
-
} )
|
|
34
|
-
},
|
|
35
|
-
close: ( tipsID ) => {
|
|
36
|
-
Sheet.close( tipsID )
|
|
37
|
-
},
|
|
38
|
-
closeALL: () => {
|
|
39
|
-
Sheet.closeGroup( 'tooltips' )
|
|
40
|
-
},
|
|
41
|
-
Comps: {
|
|
42
|
-
Body: ( params ) => ( <Box
|
|
43
|
-
padding={ '1/2' }
|
|
44
|
-
backgroundColor='dark'
|
|
45
|
-
borderRadius={ '2.tone.secondary' }
|
|
46
|
-
fontColor='white'
|
|
47
|
-
boxShadow={ '0.normal' }
|
|
48
|
-
{ ...params }
|
|
49
|
-
/> )
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export { Tooltips }
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { launchID } from '@global'
|
|
2
|
-
import React from 'react'
|
|
3
|
-
import ReactDOMCLient from 'react-dom/client'
|
|
4
|
-
import * as ReactRouterDom from 'react-router-dom'
|
|
5
|
-
|
|
6
|
-
export const LaunchSubApplication = ( props: amotify.global.LaunchReactApplicationInput & {
|
|
7
|
-
baseElement?: HTMLElement | string
|
|
8
|
-
} ) => {
|
|
9
|
-
let {
|
|
10
|
-
baseElement = '#' + launchID + ' .AMOTIFY_be_root',
|
|
11
|
-
reactElement,
|
|
12
|
-
nonRouter = false,
|
|
13
|
-
isRoot = true,
|
|
14
|
-
appearances
|
|
15
|
-
} = props
|
|
16
|
-
let base = $( baseElement )
|
|
17
|
-
|
|
18
|
-
if ( !base[ 0 ] || !reactElement ) return
|
|
19
|
-
if ( appearances ) {
|
|
20
|
-
let {
|
|
21
|
-
roundness,
|
|
22
|
-
tone,
|
|
23
|
-
themeColor,
|
|
24
|
-
darkMode
|
|
25
|
-
} = appearances
|
|
26
|
-
|
|
27
|
-
if ( $.is.exist( roundness ) ) amotify.config.update.roundness( roundness! )
|
|
28
|
-
if ( $.is.exist( tone ) ) amotify.config.update.tone( tone! )
|
|
29
|
-
if ( $.is.exist( themeColor ) ) amotify.config.update.themeColor( themeColor! )
|
|
30
|
-
if ( $.is.exist( darkMode ) ) amotify.config.update.darkMode( darkMode! )
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
let reactDom = nonRouter ? reactElement : <ReactRouterDom.BrowserRouter children={ reactElement } />
|
|
34
|
-
|
|
35
|
-
if ( isRoot ) {
|
|
36
|
-
$( 'body' ).addClass( 'AMOTIFY_be_body' )
|
|
37
|
-
base.addClass( 'AMOTIFY_be AMOTIFY_be_root AMOTIFY_be_origin' )
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
ReactDOMCLient.createRoot( base[ 0 ] ).render( <>{ reactDom }</> )
|
|
41
|
-
}
|
|
42
|
-
export const LaunchReactApplication = ( props: amotify.global.LaunchReactApplicationInput ) => {
|
|
43
|
-
let {
|
|
44
|
-
reactElement,
|
|
45
|
-
nonRouter = false,
|
|
46
|
-
isRoot = true,
|
|
47
|
-
appearances
|
|
48
|
-
} = props
|
|
49
|
-
let base = $( '#' + launchID + ' .AMOTIFY_be_root' )
|
|
50
|
-
|
|
51
|
-
if ( !base[ 0 ] || !reactElement ) return
|
|
52
|
-
if ( appearances ) {
|
|
53
|
-
let {
|
|
54
|
-
roundness,
|
|
55
|
-
tone,
|
|
56
|
-
themeColor,
|
|
57
|
-
darkMode
|
|
58
|
-
} = appearances
|
|
59
|
-
|
|
60
|
-
if ( $.is.exist( roundness ) ) amotify.config.update.roundness( roundness! )
|
|
61
|
-
if ( $.is.exist( tone ) ) amotify.config.update.tone( tone! )
|
|
62
|
-
if ( $.is.exist( themeColor ) ) amotify.config.update.themeColor( themeColor! )
|
|
63
|
-
if ( $.is.exist( darkMode ) ) amotify.config.update.darkMode( darkMode! )
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
let reactDom = nonRouter ? reactElement : <ReactRouterDom.BrowserRouter children={ reactElement } />
|
|
67
|
-
|
|
68
|
-
if ( isRoot ) {
|
|
69
|
-
$( 'body' ).addClass( 'AMOTIFY_be_body' )
|
|
70
|
-
base.addClass( 'AMOTIFY_be AMOTIFY_be_root AMOTIFY_be_origin' )
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
ReactDOMCLient.createRoot( base[ 0 ] ).render( <>{ reactDom }</> )
|
|
74
|
-
}
|