amotify 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@jsminAmotifyExtension/formCollect.js +1 -1
- package/dist/Atoms/Logo/parts.js +1 -1
- package/dist/Atoms/Various/parts.js +1 -1
- package/dist/Functions/Button/_.js +1 -1
- package/dist/Functions/Cropper/parts.js +4 -4
- package/dist/Functions/Effects/Fade.js +2 -2
- package/dist/Functions/Input/Chips/Selector.js +4 -4
- package/dist/Functions/Input/Chips/_.js +3 -3
- package/dist/Functions/Input/DigitCharacters.js +3 -3
- package/dist/Functions/Input/File/_.js +4 -4
- package/dist/Functions/Input/List/_.js +3 -3
- package/dist/Functions/Input/Segmented/_.js +1 -1
- package/dist/Functions/Input/Select/_.js +2 -2
- package/dist/Functions/Input/Slider/_.js +3 -3
- package/dist/Functions/Input/Switch/_.js +4 -4
- package/dist/Functions/Input/Text.js +2 -2
- package/dist/Functions/Input/TextArea.js +1 -1
- package/dist/Functions/Input/Time/Picker.js +4 -4
- package/dist/Functions/Input/Time/_.js +3 -3
- package/dist/Functions/Input/_.js +4 -4
- package/dist/Functions/Input/core.js +4 -4
- package/dist/Functions/Inputs/text.js +1 -1
- package/dist/Functions/Layout/PageNotFound.js +3 -3
- package/dist/Functions/Layout/PageRouter.js +2 -2
- package/dist/Functions/Layout/PageViewController/parts.js +2 -2
- package/dist/Functions/Layout/Plate.js +1 -1
- package/dist/Functions/Layout/RootViewController/parts.js +4 -4
- package/dist/Functions/Layout/SwipeView/parts.js +2 -2
- package/dist/Functions/Layout/TabBar.js +3 -3
- package/dist/Functions/Loader/corner.js +2 -2
- package/dist/Functions/Loader/mini.js +2 -2
- package/dist/Functions/Loader/parts.js +1 -1
- package/dist/Functions/Loader/top.js +2 -2
- package/dist/Functions/Sheet/parts.js +4 -4
- package/dist/Functions/SnackBar/parts.js +4 -4
- package/dist/Functions/Table/Data/parts.js +4 -4
- package/dist/Functions/Table/Drag/parts.js +3 -3
- package/dist/Functions/Table/_.js +2 -2
- package/dist/Functions/Tooltips/parts.js +2 -2
- package/dist/Molecules/@export.js +1 -1
- package/dist/Molecules/Accordion/parts.js +2 -2
- package/dist/Molecules/LinkifyText/parts.js +2 -2
- package/dist/Molecules/List.js +1 -1
- package/dist/Organisms/DisplayStyleInput/darkmode.js +4 -4
- package/dist/Organisms/DisplayStyleInput/themeColor.js +4 -4
- package/dist/Templates/PlayGround/parts.js +5 -5
- package/dist/launch.js +6 -6
- package/package.json +6 -5
- package/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/webpack.config.js +114 -0
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StyleConverter,
|
|
3
|
+
pageTransit
|
|
4
|
+
} from '@global';
|
|
5
|
+
|
|
6
|
+
import style from './style.module.scss';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
const Styles = {
|
|
10
|
+
Size: (
|
|
11
|
+
seed: amotify.fn.Buttons.Seeds,
|
|
12
|
+
tone: amotify.fn.Buttons.Tones,
|
|
13
|
+
size: amotify.fn.Buttons.Sizes,
|
|
14
|
+
color: amotify.fn.Buttons.Colors
|
|
15
|
+
) => {
|
|
16
|
+
let styles: amotifyUniStyleParams = {}
|
|
17
|
+
size = size || 'R';
|
|
18
|
+
if ( [ 'Plain','Link' ].includes( tone ) ) return {}
|
|
19
|
+
|
|
20
|
+
if ( size == 'XS' ) {
|
|
21
|
+
styles = {
|
|
22
|
+
...styles,
|
|
23
|
+
padding: [ '1/3','2/3' ],
|
|
24
|
+
fontSize: '0.xs',
|
|
25
|
+
borderRadius: '3.tone.tertiary'
|
|
26
|
+
}
|
|
27
|
+
} else if ( size == 'S' ) {
|
|
28
|
+
styles = {
|
|
29
|
+
...styles,
|
|
30
|
+
padding: [ '1/2',1 ],
|
|
31
|
+
fontSize: '1.mini',
|
|
32
|
+
borderRadius: '3.tone.tertiary'
|
|
33
|
+
}
|
|
34
|
+
} else if ( size == 'R' ) {
|
|
35
|
+
styles.padding = [ '3/4',1 ];
|
|
36
|
+
if ( tone == 'Prime' ) {
|
|
37
|
+
styles.padding = [ '3/4',2 ];
|
|
38
|
+
}
|
|
39
|
+
} else if ( size == 'L' ) {
|
|
40
|
+
styles.padding = [ 1,3 ];
|
|
41
|
+
styles.fontSize = '3.paragraph';
|
|
42
|
+
styles.isBoldFont = true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
styles = {
|
|
46
|
+
borderRadius: '2.tone.secondary',
|
|
47
|
+
transition: 'middle',
|
|
48
|
+
position: 'relative',
|
|
49
|
+
textAlign: 'center',
|
|
50
|
+
...styles
|
|
51
|
+
}
|
|
52
|
+
return styles;
|
|
53
|
+
},
|
|
54
|
+
Tone: (
|
|
55
|
+
seed: amotify.fn.Buttons.Seeds,
|
|
56
|
+
tone: amotify.fn.Buttons.Tones,
|
|
57
|
+
size: amotify.fn.Buttons.Sizes,
|
|
58
|
+
color: amotify.fn.Buttons.Colors
|
|
59
|
+
) => {
|
|
60
|
+
let styles: amotifyUniStyleParams = {}
|
|
61
|
+
|
|
62
|
+
if ( tone == 'Plain' ) return styles;
|
|
63
|
+
if ( tone == 'Link' ) {
|
|
64
|
+
styles.fontColor = 'theme';
|
|
65
|
+
styles.textAlign = 'left';
|
|
66
|
+
} else if ( tone == 'Normal' ) {
|
|
67
|
+
styles = {
|
|
68
|
+
backgroundColor: 'trans'
|
|
69
|
+
}
|
|
70
|
+
} else if ( tone == 'Border' ) {
|
|
71
|
+
styles = {
|
|
72
|
+
backgroundColor: '1.layer.base',
|
|
73
|
+
border: '2.normal',
|
|
74
|
+
boxShadow: 0,
|
|
75
|
+
}
|
|
76
|
+
} else if ( tone == 'Prime' ) {
|
|
77
|
+
styles = {
|
|
78
|
+
isBoldFont: true,
|
|
79
|
+
fontColor: 'white',
|
|
80
|
+
backgroundColor: color as any,
|
|
81
|
+
boxShadow: 1,
|
|
82
|
+
ssEffectsOnActive: [ 'shrink','ripple.white' ]
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if ( color == 'white' ) {
|
|
86
|
+
styles = {
|
|
87
|
+
...styles,
|
|
88
|
+
fontColor: 'theme',
|
|
89
|
+
ssEffectsOnActive: [ 'shrink','ripple.cloud' ]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
} else if ( tone == 'Sub' ) {
|
|
93
|
+
styles = {
|
|
94
|
+
fontColor: color as any,
|
|
95
|
+
ssEffectsOnActive: 'shrink'
|
|
96
|
+
}
|
|
97
|
+
} else if ( tone == 'Clear' ) {
|
|
98
|
+
styles = {
|
|
99
|
+
fontColor: color as any,
|
|
100
|
+
backgroundColor: 'trans',
|
|
101
|
+
}
|
|
102
|
+
} else if ( tone == 'FillToBorder' ) {
|
|
103
|
+
styles = {
|
|
104
|
+
fontColor: 'white',
|
|
105
|
+
boxShadow: 1,
|
|
106
|
+
borderWidth: 2,
|
|
107
|
+
borderStyle: 'solid',
|
|
108
|
+
borderColor: color as any,
|
|
109
|
+
backgroundColor: color as any,
|
|
110
|
+
}
|
|
111
|
+
} else if ( tone == 'BorderToFill' ) {
|
|
112
|
+
styles = {
|
|
113
|
+
fontColor: color as any,
|
|
114
|
+
boxShadow: 1,
|
|
115
|
+
borderWidth: 2,
|
|
116
|
+
borderStyle: 'solid',
|
|
117
|
+
borderColor: color as any,
|
|
118
|
+
backgroundColor: 'trans'
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if ( tone != 'Link' ) {
|
|
123
|
+
styles = {
|
|
124
|
+
position: 'relative',
|
|
125
|
+
ssEffectsOnActive: 'shrink',
|
|
126
|
+
...styles
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return styles;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
type SeedWrapperInput = amotify.fn.Buttons.ButtonInput & {
|
|
134
|
+
seed: amotify.fn.Buttons.Seeds
|
|
135
|
+
tone: amotify.fn.Buttons.Tones
|
|
136
|
+
size: amotify.fn.Buttons.Sizes
|
|
137
|
+
}
|
|
138
|
+
const SeedWrapper = ( params: SeedWrapperInput ) => {
|
|
139
|
+
let Params: SeedWrapperInput = StyleConverter.ReadStyleSet( {
|
|
140
|
+
isLocked: false,
|
|
141
|
+
isActive: false,
|
|
142
|
+
isActiveStyles: {},
|
|
143
|
+
isActiveClassName: '',
|
|
144
|
+
tabIndex: 0,
|
|
145
|
+
className: '',
|
|
146
|
+
color: 'theme',
|
|
147
|
+
componentID: $.uuidGen(),
|
|
148
|
+
'aria-label': $.uuidGen(),
|
|
149
|
+
...params,
|
|
150
|
+
} );
|
|
151
|
+
let seed = Params.seed;
|
|
152
|
+
{
|
|
153
|
+
let {
|
|
154
|
+
isLocked = false,
|
|
155
|
+
isActive = false,
|
|
156
|
+
isActiveStyles = {},
|
|
157
|
+
isActiveClassName = '',
|
|
158
|
+
tone = 'border',
|
|
159
|
+
color = 'theme',
|
|
160
|
+
className = '',
|
|
161
|
+
} = Params;
|
|
162
|
+
|
|
163
|
+
Params = {
|
|
164
|
+
...Styles.Size( params.seed,params.tone,params.size,color as amotify.fn.Buttons.Colors ),
|
|
165
|
+
...Styles.Tone( params.seed,params.tone,params.size,color as amotify.fn.Buttons.Colors ),
|
|
166
|
+
...Params,
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
Params.className = [
|
|
170
|
+
className,
|
|
171
|
+
style.Wrap,
|
|
172
|
+
style[ 'isActive_' + !!isActive ],
|
|
173
|
+
style[ 'isLocked_' + isLocked ],
|
|
174
|
+
style[ 'Tone_' + tone ],
|
|
175
|
+
style[ 'Color_' + color ],
|
|
176
|
+
].join( ' ' );
|
|
177
|
+
|
|
178
|
+
if ( [ 'Link','Plain' ].includes( Params.tone ) ) {
|
|
179
|
+
Params.className = [
|
|
180
|
+
Params.className,
|
|
181
|
+
style.uae_blur
|
|
182
|
+
].join( ' ' );
|
|
183
|
+
} else {
|
|
184
|
+
Params.className = [
|
|
185
|
+
Params.className,
|
|
186
|
+
style.uae_remark
|
|
187
|
+
].join( ' ' );
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
if ( isActive ) {
|
|
191
|
+
Params = {
|
|
192
|
+
className: [
|
|
193
|
+
Params.className,
|
|
194
|
+
isActiveClassName
|
|
195
|
+
].join( ' ' ),
|
|
196
|
+
...Params,
|
|
197
|
+
...isActiveStyles
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
Params = StyleConverter.ToClassName( Params );
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
if ( seed == 'Button' ) {
|
|
205
|
+
let {
|
|
206
|
+
componentID,
|
|
207
|
+
submitOption,
|
|
208
|
+
onClick,
|
|
209
|
+
...Props
|
|
210
|
+
} = Params as amotify.fn.Buttons.ButtonInput;
|
|
211
|
+
|
|
212
|
+
if ( submitOption ) {
|
|
213
|
+
submitOption = {
|
|
214
|
+
acceptInvalidForm: false,
|
|
215
|
+
submitDelegationKey: 'auxEnter',
|
|
216
|
+
...submitOption
|
|
217
|
+
};
|
|
218
|
+
Props = {
|
|
219
|
+
...Props,
|
|
220
|
+
'data-form-submit-button': submitOption.formName,
|
|
221
|
+
'data-sdfike': $.flatArray( submitOption.submitDelegationKey ).join( ',' )
|
|
222
|
+
} as any;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
return <button
|
|
226
|
+
data-component-id={ componentID }
|
|
227
|
+
onClick={ async ( args ) => {
|
|
228
|
+
if ( onClick ) onClick( args );
|
|
229
|
+
|
|
230
|
+
if ( !submitOption ) return;
|
|
231
|
+
let form = await $.formCollect( submitOption.formName );
|
|
232
|
+
if ( !submitOption.acceptInvalidForm && !form.valid ) return;
|
|
233
|
+
submitOption.callback( form.data,form.valid );
|
|
234
|
+
} }
|
|
235
|
+
{ ...Props as any }
|
|
236
|
+
/>;
|
|
237
|
+
} else if ( seed == 'Label' ) {
|
|
238
|
+
let {
|
|
239
|
+
componentID,
|
|
240
|
+
...Props
|
|
241
|
+
} = Params as amotify.fn.Buttons.LabelInput;
|
|
242
|
+
|
|
243
|
+
return <label { ...Props } />;
|
|
244
|
+
} else if ( seed == 'Anchor' ) {
|
|
245
|
+
let {
|
|
246
|
+
componentID,
|
|
247
|
+
href = '',
|
|
248
|
+
newTab,
|
|
249
|
+
sync,
|
|
250
|
+
shiftQueryParams,
|
|
251
|
+
...Props
|
|
252
|
+
} = Params as amotify.fn.Buttons.AnchorInput;
|
|
253
|
+
|
|
254
|
+
return <button
|
|
255
|
+
{ ...Props as any }
|
|
256
|
+
onClick={ ( event ) => {
|
|
257
|
+
let aux = event.ctrlKey || event.metaKey;
|
|
258
|
+
|
|
259
|
+
let openNew = newTab || !!aux;
|
|
260
|
+
|
|
261
|
+
let URL = href;
|
|
262
|
+
if ( shiftQueryParams ) URL += location.search;
|
|
263
|
+
|
|
264
|
+
if ( sync ) {
|
|
265
|
+
pageTransit.pushSync( URL );
|
|
266
|
+
} else {
|
|
267
|
+
pageTransit.push( URL,!!openNew );
|
|
268
|
+
}
|
|
269
|
+
} }
|
|
270
|
+
/>;
|
|
271
|
+
}
|
|
272
|
+
return null;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
const SizeBalancer: {
|
|
276
|
+
( seed: amotify.fn.Buttons.Seeds,tone: amotify.fn.Buttons.Tones ): amotify.fn.Buttons.SizeTypes<any>
|
|
277
|
+
} = ( seed,tone ) => {
|
|
278
|
+
return {
|
|
279
|
+
XS: ( params ) => ( <SeedWrapper { ...params } seed={ seed } tone={ tone } size='S' /> ),
|
|
280
|
+
S: ( params ) => ( <SeedWrapper { ...params } seed={ seed } tone={ tone } size='S' /> ),
|
|
281
|
+
R: ( params ) => ( <SeedWrapper { ...params } seed={ seed } tone={ tone } size='R' /> ),
|
|
282
|
+
L: ( params ) => ( <SeedWrapper { ...params } seed={ seed } tone={ tone } size='L' /> ),
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
const ToneBalancer: {
|
|
286
|
+
( seed: amotify.fn.Buttons.Seeds ): amotify.fn.Buttons.ToneTypes<any>
|
|
287
|
+
} = ( seed ) => {
|
|
288
|
+
return {
|
|
289
|
+
Plain: ( params ) => ( <SeedWrapper { ...params } seed={ seed } tone={ 'Plain' } size='R' /> ),
|
|
290
|
+
Link: ( params ) => ( <SeedWrapper { ...params } seed={ seed } tone={ 'Link' } size='R' /> ),
|
|
291
|
+
Normal: SizeBalancer( seed,'Normal' ),
|
|
292
|
+
Border: SizeBalancer( seed,'Border' ),
|
|
293
|
+
|
|
294
|
+
Prime: SizeBalancer( seed,'Prime' ),
|
|
295
|
+
Sub: SizeBalancer( seed,'Sub' ),
|
|
296
|
+
Clear: SizeBalancer( seed,'Clear' ),
|
|
297
|
+
FillToBorder: SizeBalancer( seed,'FillToBorder' ),
|
|
298
|
+
BorderToFill: SizeBalancer( seed,'BorderToFill' ),
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
export const Buttons: amotify.fn.Buttons.Methods = {
|
|
302
|
+
Button: ToneBalancer( 'Button' ),
|
|
303
|
+
Label: ToneBalancer( 'Label' ),
|
|
304
|
+
Anchor: ToneBalancer( 'Anchor' )
|
|
305
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
@use '@uniVar' as *;
|
|
2
|
+
@use'@styleSet' as *;
|
|
3
|
+
.Wrap {
|
|
4
|
+
position: relative;
|
|
5
|
+
@include DisableduserSelect();
|
|
6
|
+
> * {
|
|
7
|
+
position: relative;
|
|
8
|
+
z-index: 2;
|
|
9
|
+
pointer-events: none;
|
|
10
|
+
}
|
|
11
|
+
.Child {}
|
|
12
|
+
&[ disabled] {
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
}
|
|
15
|
+
&.isLocked_true {
|
|
16
|
+
background-color: $color-layer4 !important;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.uae_ {
|
|
20
|
+
&remark {
|
|
21
|
+
&:active {
|
|
22
|
+
box-shadow: $shadow2 inset, 0 0 0 transparent !important;
|
|
23
|
+
}
|
|
24
|
+
&:focus {
|
|
25
|
+
box-shadow: 0 0 0 transparent inset, $shadow3;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
&blur {}
|
|
29
|
+
}
|
|
30
|
+
.Tone_ {
|
|
31
|
+
&Sub, &Clear {
|
|
32
|
+
&.Color_ {
|
|
33
|
+
&theme {
|
|
34
|
+
background-color: $color-theme-opacity-few;
|
|
35
|
+
}
|
|
36
|
+
&posi {
|
|
37
|
+
background-color: rgba(var(--color-positive-rgb), .075);
|
|
38
|
+
}
|
|
39
|
+
&nega {
|
|
40
|
+
background-color: rgba(var(--color-negative-rgb), .075);
|
|
41
|
+
}
|
|
42
|
+
&warn {
|
|
43
|
+
background-color: rgba(var(--color-warning-rgb), .075);
|
|
44
|
+
}
|
|
45
|
+
&white {
|
|
46
|
+
background-color: rgba(white, .15);
|
|
47
|
+
}
|
|
48
|
+
&cloud {
|
|
49
|
+
background-color: rgba(var(--color-cloud-rgb), .7);
|
|
50
|
+
}
|
|
51
|
+
&layer {
|
|
52
|
+
background-color: hsla(var(--color-layer5-hsl), .3);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
.isActive_false {
|
|
58
|
+
&.Tone_Clear {
|
|
59
|
+
&:not(:hover):not(:focus) {
|
|
60
|
+
background-color: transparent;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
&:hover, &:focus {
|
|
64
|
+
&.Tone_ {
|
|
65
|
+
&Link {
|
|
66
|
+
color: $color-theme;
|
|
67
|
+
text-decoration: underline !important;
|
|
68
|
+
* {
|
|
69
|
+
text-decoration: underline !important;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
&Normal {
|
|
73
|
+
&.Color_ {
|
|
74
|
+
&plain {
|
|
75
|
+
background-color: $color-layer3;
|
|
76
|
+
color: $font-color2;
|
|
77
|
+
}
|
|
78
|
+
&theme {
|
|
79
|
+
background-color: $color-theme-opacity-few;
|
|
80
|
+
color: $color-theme;
|
|
81
|
+
}
|
|
82
|
+
&posi {
|
|
83
|
+
background-color: rgba(var(--color-positive-rgb), .1);
|
|
84
|
+
color: $color-positive;
|
|
85
|
+
}
|
|
86
|
+
&nega {
|
|
87
|
+
background-color: rgba(var(--color-negative-rgb), .1);
|
|
88
|
+
color: $color-negative;
|
|
89
|
+
}
|
|
90
|
+
&warn {
|
|
91
|
+
background-color: rgba(var(--color-warning-rgb), .1);
|
|
92
|
+
color: $color-warning;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
&Border {
|
|
97
|
+
background-color: $color-cloud;
|
|
98
|
+
}
|
|
99
|
+
&Prime {
|
|
100
|
+
opacity: .85;
|
|
101
|
+
}
|
|
102
|
+
&Sub, &Clear {
|
|
103
|
+
&.Color_ {
|
|
104
|
+
&theme {
|
|
105
|
+
background-color: $color-theme-opacity-low;
|
|
106
|
+
color: $color-theme;
|
|
107
|
+
}
|
|
108
|
+
&posi {
|
|
109
|
+
background-color: rgba(var(--color-positive-rgb), .125);
|
|
110
|
+
color: $color-positive;
|
|
111
|
+
}
|
|
112
|
+
&nega {
|
|
113
|
+
background-color: rgba(var(--color-negative-rgb), .125);
|
|
114
|
+
color: $color-negative;
|
|
115
|
+
}
|
|
116
|
+
&warn {
|
|
117
|
+
background-color: rgba(var(--color-warning-rgb), .125);
|
|
118
|
+
color: $color-warning;
|
|
119
|
+
}
|
|
120
|
+
&white {
|
|
121
|
+
background-color: rgba(white, .25);
|
|
122
|
+
color: white;
|
|
123
|
+
}
|
|
124
|
+
&cloud {
|
|
125
|
+
background-color: $color-cloud;
|
|
126
|
+
}
|
|
127
|
+
&layer {
|
|
128
|
+
background-color: hsla(var(--color-layer5-hsl), .5);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
&FillToBorder {
|
|
133
|
+
background-color: $color-layer1;
|
|
134
|
+
&.Color_ {
|
|
135
|
+
&theme {
|
|
136
|
+
color: $color-theme;
|
|
137
|
+
}
|
|
138
|
+
&posi {
|
|
139
|
+
color: $color-positive;
|
|
140
|
+
}
|
|
141
|
+
&nega {
|
|
142
|
+
color: $color-negative;
|
|
143
|
+
}
|
|
144
|
+
&warn {
|
|
145
|
+
color: $color-warning;
|
|
146
|
+
}
|
|
147
|
+
&mono {
|
|
148
|
+
color: $color-monoPrime;
|
|
149
|
+
}
|
|
150
|
+
&white {
|
|
151
|
+
color: white;
|
|
152
|
+
background-color: transparent;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
&BorderToFill {
|
|
157
|
+
color: white;
|
|
158
|
+
&.Color_ {
|
|
159
|
+
&theme {
|
|
160
|
+
background-color: $color-theme;
|
|
161
|
+
}
|
|
162
|
+
&posi {
|
|
163
|
+
background-color: $color-positive;
|
|
164
|
+
}
|
|
165
|
+
&nega {
|
|
166
|
+
background-color: $color-negative;
|
|
167
|
+
}
|
|
168
|
+
&warn {
|
|
169
|
+
background-color: $color-warning;
|
|
170
|
+
}
|
|
171
|
+
&mono {
|
|
172
|
+
background-color: $color-monoPrime;
|
|
173
|
+
color: $color-monoSecond;
|
|
174
|
+
}
|
|
175
|
+
&white {
|
|
176
|
+
background-color: white;
|
|
177
|
+
color: black;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|