amotify 0.0.4 → 0.0.6

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.
Files changed (233) hide show
  1. package/dist/@jsminAmotifyExtension/formCollect.js +1 -1
  2. package/dist/Atoms/Logo/parts.js +1 -1
  3. package/dist/Atoms/Various/parts.js +1 -1
  4. package/dist/Functions/Button/_.js +1 -1
  5. package/dist/Functions/Cropper/parts.js +4 -4
  6. package/dist/Functions/Effects/Fade.js +2 -2
  7. package/dist/Functions/Input/Chips/Selector.js +4 -4
  8. package/dist/Functions/Input/Chips/_.js +3 -3
  9. package/dist/Functions/Input/DigitCharacters.js +3 -3
  10. package/dist/Functions/Input/File/_.js +4 -4
  11. package/dist/Functions/Input/List/_.js +3 -3
  12. package/dist/Functions/Input/Segmented/_.js +1 -1
  13. package/dist/Functions/Input/Select/_.js +2 -2
  14. package/dist/Functions/Input/Slider/_.js +3 -3
  15. package/dist/Functions/Input/Switch/_.js +4 -4
  16. package/dist/Functions/Input/Text.js +2 -2
  17. package/dist/Functions/Input/TextArea.js +1 -1
  18. package/dist/Functions/Input/Time/Picker.js +4 -4
  19. package/dist/Functions/Input/Time/_.js +3 -3
  20. package/dist/Functions/Input/_.js +4 -4
  21. package/dist/Functions/Input/core.js +4 -4
  22. package/dist/Functions/Inputs/text.js +1 -1
  23. package/dist/Functions/Layout/PageNotFound.js +3 -3
  24. package/dist/Functions/Layout/PageRouter.js +2 -2
  25. package/dist/Functions/Layout/PageViewController/parts.js +2 -2
  26. package/dist/Functions/Layout/Plate.js +1 -1
  27. package/dist/Functions/Layout/RootViewController/parts.js +4 -4
  28. package/dist/Functions/Layout/SwipeView/parts.js +2 -2
  29. package/dist/Functions/Layout/TabBar.js +3 -3
  30. package/dist/Functions/Loader/corner.js +2 -2
  31. package/dist/Functions/Loader/mini.js +2 -2
  32. package/dist/Functions/Loader/parts.js +1 -1
  33. package/dist/Functions/Loader/top.js +2 -2
  34. package/dist/Functions/Sheet/parts.js +4 -4
  35. package/dist/Functions/SnackBar/parts.js +4 -4
  36. package/dist/Functions/Table/Data/parts.js +4 -4
  37. package/dist/Functions/Table/Drag/parts.js +3 -3
  38. package/dist/Functions/Table/_.js +2 -2
  39. package/dist/Functions/Tooltips/parts.js +2 -2
  40. package/dist/Molecules/@export.js +1 -1
  41. package/dist/Molecules/Accordion/parts.js +2 -2
  42. package/dist/Molecules/LinkifyText/parts.js +2 -2
  43. package/dist/Molecules/List.js +1 -1
  44. package/dist/Organisms/DisplayStyleInput/darkmode.js +4 -4
  45. package/dist/Organisms/DisplayStyleInput/themeColor.js +4 -4
  46. package/dist/Templates/PlayGround/parts.js +5 -5
  47. package/dist/launch.js +6 -6
  48. package/package.json +6 -5
  49. package/public/amotify.js +310 -0
  50. package/public/amotify.min.css +12724 -0
  51. package/dist/src/@jsminAmotifyExtension/_.d.ts +0 -4
  52. package/dist/src/@jsminAmotifyExtension/fetch.d.ts +0 -9
  53. package/dist/src/@jsminAmotifyExtension/formCollect.d.ts +0 -1
  54. package/dist/src/@jsminAmotifyExtension/spreadSheet.d.ts +0 -4
  55. package/dist/src/@jsminAmotifyExtension/variables.d.ts +0 -0
  56. package/dist/src/@types/_.d.ts +0 -6
  57. package/dist/src/@types/amot.d.ts +0 -260
  58. package/dist/src/@types/fn.d.ts +0 -1040
  59. package/dist/src/@types/index.d.ts +0 -62
  60. package/dist/src/@types/jsminAmotifyExtension.d.ts +0 -134
  61. package/dist/src/@types/module.d.ts +0 -2
  62. package/dist/src/@types/state.d.ts +0 -145
  63. package/dist/src/Atoms/@export.d.ts +0 -4
  64. package/dist/src/Atoms/FAIcon/parts.d.ts +0 -2
  65. package/dist/src/Atoms/Logo/parts.d.ts +0 -1
  66. package/dist/src/Atoms/Various/parts.d.ts +0 -9
  67. package/dist/src/Functions/@export.d.ts +0 -12
  68. package/dist/src/Functions/Button/_.d.ts +0 -1
  69. package/dist/src/Functions/Cropper/parts.d.ts +0 -1
  70. package/dist/src/Functions/Effects/Fade.d.ts +0 -1
  71. package/dist/src/Functions/Effects/Ripple.d.ts +0 -1
  72. package/dist/src/Functions/Effects/_.d.ts +0 -3
  73. package/dist/src/Functions/Input/Chips/Selector.d.ts +0 -1
  74. package/dist/src/Functions/Input/Chips/_.d.ts +0 -2
  75. package/dist/src/Functions/Input/DigitCharacters.d.ts +0 -1
  76. package/dist/src/Functions/Input/File/_.d.ts +0 -2
  77. package/dist/src/Functions/Input/Hidden.d.ts +0 -1
  78. package/dist/src/Functions/Input/List/_.d.ts +0 -1
  79. package/dist/src/Functions/Input/Segmented/_.d.ts +0 -1
  80. package/dist/src/Functions/Input/Select/_.d.ts +0 -1
  81. package/dist/src/Functions/Input/Slider/_.d.ts +0 -1
  82. package/dist/src/Functions/Input/Switch/_.d.ts +0 -1
  83. package/dist/src/Functions/Input/Text.d.ts +0 -5
  84. package/dist/src/Functions/Input/TextArea.d.ts +0 -1
  85. package/dist/src/Functions/Input/Time/Picker.d.ts +0 -1
  86. package/dist/src/Functions/Input/Time/_.d.ts +0 -2
  87. package/dist/src/Functions/Input/_.d.ts +0 -5
  88. package/dist/src/Functions/Input/core.d.ts +0 -34
  89. package/dist/src/Functions/Inputs/_.d.ts +0 -3
  90. package/dist/src/Functions/Inputs/text.d.ts +0 -12
  91. package/dist/src/Functions/Layout/PageNotFound.d.ts +0 -1
  92. package/dist/src/Functions/Layout/PageRouter.d.ts +0 -2
  93. package/dist/src/Functions/Layout/PageViewController/parts.d.ts +0 -1
  94. package/dist/src/Functions/Layout/Plate.d.ts +0 -1
  95. package/dist/src/Functions/Layout/RootViewController/parts.d.ts +0 -1
  96. package/dist/src/Functions/Layout/SwipeView/parts.d.ts +0 -2
  97. package/dist/src/Functions/Layout/TabBar.d.ts +0 -1
  98. package/dist/src/Functions/Layout/_.d.ts +0 -2
  99. package/dist/src/Functions/Loader/corner.d.ts +0 -1
  100. package/dist/src/Functions/Loader/mini.d.ts +0 -33
  101. package/dist/src/Functions/Loader/parts.d.ts +0 -3
  102. package/dist/src/Functions/Loader/top.d.ts +0 -1
  103. package/dist/src/Functions/Sheet/parts.d.ts +0 -2
  104. package/dist/src/Functions/SnackBar/parts.d.ts +0 -2
  105. package/dist/src/Functions/Table/Data/parts.d.ts +0 -3
  106. package/dist/src/Functions/Table/Drag/parts.d.ts +0 -1
  107. package/dist/src/Functions/Table/Normal/parts.d.ts +0 -1
  108. package/dist/src/Functions/Table/_.d.ts +0 -9
  109. package/dist/src/Functions/Tooltips/parts.d.ts +0 -2
  110. package/dist/src/Global/@export.d.ts +0 -12
  111. package/dist/src/Global/LaunchReactApplication.d.ts +0 -1
  112. package/dist/src/Global/styleConverter.d.ts +0 -2
  113. package/dist/src/Molecules/@export.d.ts +0 -21
  114. package/dist/src/Molecules/Accordion/parts.d.ts +0 -2
  115. package/dist/src/Molecules/LinkifyText/parts.d.ts +0 -1
  116. package/dist/src/Molecules/List.d.ts +0 -1
  117. package/dist/src/Organisms/@export.d.ts +0 -2
  118. package/dist/src/Organisms/DisplayStyleInput/_.d.ts +0 -1
  119. package/dist/src/Organisms/DisplayStyleInput/darkmode.d.ts +0 -1
  120. package/dist/src/Organisms/DisplayStyleInput/themeColor.d.ts +0 -27
  121. package/dist/src/Templates/@export.d.ts +0 -2
  122. package/dist/src/Templates/PlayGround/parts.d.ts +0 -1
  123. package/dist/src/config.d.ts +0 -16
  124. package/dist/src/launch.d.ts +0 -9
  125. package/dist/src/preload.d.ts +0 -1
  126. package/src/@jsminAmotifyExtension/_.tsx +0 -4
  127. package/src/@jsminAmotifyExtension/fetch.tsx +0 -107
  128. package/src/@jsminAmotifyExtension/formCollect.tsx +0 -89
  129. package/src/@jsminAmotifyExtension/spreadSheet.tsx +0 -159
  130. package/src/@jsminAmotifyExtension/variables.tsx +0 -130
  131. package/src/@styles/@app.scss +0 -4
  132. package/src/@styles/@variables/customProps.scss +0 -109
  133. package/src/@styles/@variables/styleSet.scss +0 -38
  134. package/src/@styles/@variables/themeColor.scss +0 -71
  135. package/src/@styles/@variables/var.scss +0 -171
  136. package/src/@styles/UniStyling.scss +0 -996
  137. package/src/@styles/init.scss +0 -154
  138. package/src/@types/_.tsx +0 -6
  139. package/src/@types/amot.tsx +0 -323
  140. package/src/@types/fn.tsx +0 -1210
  141. package/src/@types/index.tsx +0 -74
  142. package/src/@types/jsminAmotifyExtension.tsx +0 -143
  143. package/src/@types/module.tsx +0 -2
  144. package/src/@types/state.tsx +0 -199
  145. package/src/Atoms/@export.tsx +0 -32
  146. package/src/Atoms/FAIcon/parts.tsx +0 -117
  147. package/src/Atoms/FAIcon/style.module.scss +0 -9
  148. package/src/Atoms/Logo/parts.tsx +0 -335
  149. package/src/Atoms/Logo/style.module.scss +0 -96
  150. package/src/Atoms/Various/parts.tsx +0 -157
  151. package/src/Atoms/Various/style.module.scss +0 -40
  152. package/src/Functions/@export.tsx +0 -29
  153. package/src/Functions/Button/_.tsx +0 -305
  154. package/src/Functions/Button/style.module.scss +0 -183
  155. package/src/Functions/Cropper/parts.tsx +0 -1061
  156. package/src/Functions/Cropper/style.module.scss +0 -62
  157. package/src/Functions/Effects/Fade.tsx +0 -81
  158. package/src/Functions/Effects/Ripple.tsx +0 -141
  159. package/src/Functions/Effects/_.tsx +0 -33
  160. package/src/Functions/Effects/style.module.scss +0 -83
  161. package/src/Functions/Input/Chips/Selector.tsx +0 -451
  162. package/src/Functions/Input/Chips/_.tsx +0 -286
  163. package/src/Functions/Input/Chips/style.module.scss +0 -6
  164. package/src/Functions/Input/DigitCharacters.tsx +0 -241
  165. package/src/Functions/Input/File/_.tsx +0 -596
  166. package/src/Functions/Input/File/style.module.scss +0 -34
  167. package/src/Functions/Input/Hidden.tsx +0 -18
  168. package/src/Functions/Input/List/_.tsx +0 -383
  169. package/src/Functions/Input/List/style.module.scss +0 -84
  170. package/src/Functions/Input/Segmented/_.tsx +0 -238
  171. package/src/Functions/Input/Segmented/style.module.scss +0 -81
  172. package/src/Functions/Input/Select/_.tsx +0 -225
  173. package/src/Functions/Input/Select/style.module.scss +0 -10
  174. package/src/Functions/Input/Slider/_.tsx +0 -519
  175. package/src/Functions/Input/Slider/style.module.scss +0 -67
  176. package/src/Functions/Input/Switch/_.tsx +0 -177
  177. package/src/Functions/Input/Switch/style.module.scss +0 -18
  178. package/src/Functions/Input/Text.tsx +0 -437
  179. package/src/Functions/Input/TextArea.tsx +0 -115
  180. package/src/Functions/Input/Time/Picker.tsx +0 -950
  181. package/src/Functions/Input/Time/_.tsx +0 -736
  182. package/src/Functions/Input/Time/style.module.scss +0 -72
  183. package/src/Functions/Input/_.tsx +0 -793
  184. package/src/Functions/Input/core.tsx +0 -461
  185. package/src/Functions/Input/style.module.scss +0 -43
  186. package/src/Functions/Inputs/_.tsx +0 -5
  187. package/src/Functions/Inputs/style.module.scss +0 -15
  188. package/src/Functions/Inputs/text.tsx +0 -67
  189. package/src/Functions/Inputs/types.d.ts +0 -1
  190. package/src/Functions/Layout/PageNotFound.tsx +0 -81
  191. package/src/Functions/Layout/PageRouter.tsx +0 -107
  192. package/src/Functions/Layout/PageViewController/parts.tsx +0 -32
  193. package/src/Functions/Layout/Plate.tsx +0 -30
  194. package/src/Functions/Layout/RootViewController/parts.tsx +0 -290
  195. package/src/Functions/Layout/RootViewController/style.module.scss +0 -24
  196. package/src/Functions/Layout/SwipeView/parts.tsx +0 -380
  197. package/src/Functions/Layout/SwipeView/style.module.scss +0 -19
  198. package/src/Functions/Layout/TabBar.tsx +0 -64
  199. package/src/Functions/Layout/_.tsx +0 -20
  200. package/src/Functions/Loader/corner.tsx +0 -78
  201. package/src/Functions/Loader/mini.tsx +0 -117
  202. package/src/Functions/Loader/parts.tsx +0 -105
  203. package/src/Functions/Loader/style.module.scss +0 -222
  204. package/src/Functions/Loader/top.tsx +0 -90
  205. package/src/Functions/Sheet/parts.tsx +0 -972
  206. package/src/Functions/Sheet/style.module.scss +0 -235
  207. package/src/Functions/SnackBar/parts.tsx +0 -215
  208. package/src/Functions/SnackBar/style.module.scss +0 -25
  209. package/src/Functions/Table/Data/parts.tsx +0 -955
  210. package/src/Functions/Table/Drag/parts.tsx +0 -448
  211. package/src/Functions/Table/Normal/parts.tsx +0 -123
  212. package/src/Functions/Table/_.tsx +0 -170
  213. package/src/Functions/Table/style.module.scss +0 -92
  214. package/src/Functions/Tooltips/parts.tsx +0 -52
  215. package/src/Global/@export.tsx +0 -138
  216. package/src/Global/LaunchReactApplication.tsx +0 -30
  217. package/src/Global/exe.tsx +0 -0
  218. package/src/Global/styleConverter.tsx +0 -435
  219. package/src/Molecules/@export.tsx +0 -95
  220. package/src/Molecules/Accordion/parts.tsx +0 -146
  221. package/src/Molecules/Accordion/style.module.scss +0 -13
  222. package/src/Molecules/LinkifyText/parts.tsx +0 -54
  223. package/src/Molecules/List.tsx +0 -30
  224. package/src/Organisms/@export.tsx +0 -5
  225. package/src/Organisms/DisplayStyleInput/_.tsx +0 -18
  226. package/src/Organisms/DisplayStyleInput/darkmode.tsx +0 -112
  227. package/src/Organisms/DisplayStyleInput/themeColor.tsx +0 -210
  228. package/src/Templates/@export.tsx +0 -7
  229. package/src/Templates/PlayGround/parts.tsx +0 -115
  230. package/src/Templates/PlayGround/style.module.scss +0 -38
  231. package/src/config.tsx +0 -132
  232. package/src/launch.tsx +0 -100
  233. package/src/preload.tsx +0 -49
@@ -1,305 +0,0 @@
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
- }
@@ -1,183 +0,0 @@
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
- }