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.
Files changed (114) hide show
  1. package/dist/amotify.js +3 -2
  2. package/dist/amotify.min.css +2 -2
  3. package/dist/coreVender.js +14 -2
  4. package/package.json +10 -10
  5. package/tsconfig.json +13 -5
  6. package/@types/_.tsx +0 -7
  7. package/@types/amot.tsx +0 -357
  8. package/@types/fn.tsx +0 -1280
  9. package/@types/jsminAmotifyExtension.tsx +0 -137
  10. package/@types/module.tsx +0 -1
  11. package/@types/state.tsx +0 -231
  12. package/src/@atoms.tsx +0 -34
  13. package/src/@functions.tsx +0 -29
  14. package/src/@global.tsx +0 -149
  15. package/src/@jsminAmotifyExtension/_.tsx +0 -4
  16. package/src/@jsminAmotifyExtension/fetch.tsx +0 -110
  17. package/src/@jsminAmotifyExtension/formCollect.tsx +0 -94
  18. package/src/@jsminAmotifyExtension/spreadSheet.tsx +0 -165
  19. package/src/@jsminAmotifyExtension/variables.tsx +0 -137
  20. package/src/@molecules.tsx +0 -96
  21. package/src/@organisms.tsx +0 -1
  22. package/src/@reactPacks/reactProduction@18.2.0.js +0 -79
  23. package/src/@reactPacks/reactRouterDomProduction@18.2.0.js +0 -31
  24. package/src/@styles/@app.scss +0 -4
  25. package/src/@styles/UniStyling.scss +0 -1028
  26. package/src/@styles/init.scss +0 -94
  27. package/src/@styles/props.scss +0 -109
  28. package/src/@styles/styleSet.scss +0 -38
  29. package/src/@styles/themeColor.scss +0 -71
  30. package/src/@styles/var.scss +0 -182
  31. package/src/@templates.tsx +0 -7
  32. package/src/@variables.tsx +0 -74
  33. package/src/atoms/FAI/parts.tsx +0 -139
  34. package/src/atoms/Logo/parts.tsx +0 -335
  35. package/src/atoms/Logo/style.module.scss +0 -96
  36. package/src/atoms/Various/parts.tsx +0 -159
  37. package/src/atoms/Various/style.module.scss +0 -46
  38. package/src/config.tsx +0 -191
  39. package/src/functions/Button/_.tsx +0 -331
  40. package/src/functions/Button/style.module.scss +0 -157
  41. package/src/functions/Cropper/parts.tsx +0 -1084
  42. package/src/functions/Cropper/style.module.scss +0 -64
  43. package/src/functions/Effects/Fade.tsx +0 -76
  44. package/src/functions/Effects/Ripple.tsx +0 -141
  45. package/src/functions/Effects/_.tsx +0 -33
  46. package/src/functions/Effects/style.module.scss +0 -91
  47. package/src/functions/Input/Chips/Selector.tsx +0 -445
  48. package/src/functions/Input/Chips/_.tsx +0 -289
  49. package/src/functions/Input/Chips/style.module.scss +0 -6
  50. package/src/functions/Input/Contenteditable.tsx +0 -114
  51. package/src/functions/Input/DigitCharacters.tsx +0 -235
  52. package/src/functions/Input/File/_.tsx +0 -553
  53. package/src/functions/Input/File/style.module.scss +0 -34
  54. package/src/functions/Input/Hidden.tsx +0 -21
  55. package/src/functions/Input/List/_.tsx +0 -383
  56. package/src/functions/Input/List/style.module.scss +0 -84
  57. package/src/functions/Input/RichSelect/_.tsx +0 -230
  58. package/src/functions/Input/RichSelect/style.module.scss +0 -11
  59. package/src/functions/Input/Segmented/_.tsx +0 -246
  60. package/src/functions/Input/Segmented/style.module.scss +0 -81
  61. package/src/functions/Input/Select/_.tsx +0 -218
  62. package/src/functions/Input/Select/style.module.scss +0 -11
  63. package/src/functions/Input/Slider/_.tsx +0 -524
  64. package/src/functions/Input/Slider/style.module.scss +0 -67
  65. package/src/functions/Input/Switch/_.tsx +0 -176
  66. package/src/functions/Input/Switch/style.module.scss +0 -18
  67. package/src/functions/Input/Text.tsx +0 -487
  68. package/src/functions/Input/TextArea.tsx +0 -109
  69. package/src/functions/Input/Time/Picker.tsx +0 -1361
  70. package/src/functions/Input/Time/_.tsx +0 -749
  71. package/src/functions/Input/Time/style.module.scss +0 -79
  72. package/src/functions/Input/_.tsx +0 -881
  73. package/src/functions/Input/core.tsx +0 -473
  74. package/src/functions/Input/style.module.scss +0 -102
  75. package/src/functions/Inputs/_.tsx +0 -5
  76. package/src/functions/Inputs/style.module.scss +0 -15
  77. package/src/functions/Inputs/text.tsx +0 -53
  78. package/src/functions/Inputs/types.d.ts +0 -13
  79. package/src/functions/Layout/PageNotFound.tsx +0 -78
  80. package/src/functions/Layout/PageRouter.tsx +0 -89
  81. package/src/functions/Layout/PageViewController/parts.tsx +0 -27
  82. package/src/functions/Layout/Plate.tsx +0 -30
  83. package/src/functions/Layout/RootViewController/parts.tsx +0 -300
  84. package/src/functions/Layout/RootViewController/style.module.scss +0 -23
  85. package/src/functions/Layout/SwipeView/parts.tsx +0 -375
  86. package/src/functions/Layout/SwipeView/style.module.scss +0 -20
  87. package/src/functions/Layout/TabBar.tsx +0 -60
  88. package/src/functions/Layout/_.tsx +0 -20
  89. package/src/functions/Loader/corner.tsx +0 -74
  90. package/src/functions/Loader/mini.tsx +0 -114
  91. package/src/functions/Loader/parts.tsx +0 -103
  92. package/src/functions/Loader/style.module.scss +0 -223
  93. package/src/functions/Loader/top.tsx +0 -84
  94. package/src/functions/Sheet/parts.tsx +0 -994
  95. package/src/functions/Sheet/style.module.scss +0 -208
  96. package/src/functions/SnackBar/parts.tsx +0 -215
  97. package/src/functions/SnackBar/style.module.scss +0 -25
  98. package/src/functions/Table/Data/parts.tsx +0 -965
  99. package/src/functions/Table/Drag/parts.tsx +0 -442
  100. package/src/functions/Table/Normal/parts.tsx +0 -124
  101. package/src/functions/Table/_.tsx +0 -177
  102. package/src/functions/Table/style.module.scss +0 -93
  103. package/src/functions/Tooltips/parts.tsx +0 -53
  104. package/src/global/LaunchReactApplication.tsx +0 -74
  105. package/src/global/styleConverter.tsx +0 -465
  106. package/src/launch.tsx +0 -119
  107. package/src/molecules/Accordion/parts.tsx +0 -146
  108. package/src/molecules/Accordion/style.module.scss +0 -13
  109. package/src/molecules/LinkifyText/parts.tsx +0 -52
  110. package/src/molecules/List.tsx +0 -31
  111. package/src/preload.tsx +0 -31
  112. package/src/templates/PlayGround/parts.tsx +0 -96
  113. package/src/templates/PlayGround/style.module.scss +0 -38
  114. package/webpack.config.js +0 -146
@@ -1,159 +0,0 @@
1
- import React from 'react'
2
- import {
3
- StyleConverter
4
- } from '@global'
5
-
6
- import { publicURI } from '../../launch'
7
-
8
- import style from './style.module.scss'
9
-
10
- export const Box: React.FC<amotify.atoms.BoxInput> = ( params ) => {
11
- let {
12
- freeCSS,
13
- ...Params
14
- } = StyleConverter.ToClassName( params )
15
- return <div { ...Params } />
16
- }
17
- export const Span: React.FC<amotify.atoms.SpanProps> = ( params ) => {
18
- let {
19
- freeCSS,
20
- ...Params
21
- } = StyleConverter.ToClassName( params )
22
- return <span { ...Params } />
23
- }
24
-
25
- export const Placeholder: React.FC<amotify.atoms.PlaceholderParams> = ( params ) => {
26
- let {
27
- color = 'cloud',
28
- ...others
29
- } = params
30
-
31
- let DefStyles: amotifyUniStyleParams = {
32
- flexCenter: true,
33
- position: 'relative',
34
- ssCardBox: true,
35
- border: 'unset',
36
- overflow: 'hidden',
37
- backgroundColor: '3.layer.canvas',
38
- }
39
-
40
- return <Box
41
- className={ [
42
- style.Placeholder,
43
- params.className
44
- ].join( ' ' ) }
45
- { ...DefStyles }
46
- { ...others }
47
- >
48
- <Box
49
- className={ [
50
- style.Body,
51
- style[ 'Color_' + color ],
52
- ].join( ' ' ) }
53
- />
54
- </Box>
55
- }
56
-
57
- let Img: amotify.atoms.Image.Methods = {} as any
58
- {
59
- const ImageComp: React.FC<amotify.atoms.Image.CompInput> = ( params ) => {
60
- let {
61
- src = '',
62
- alt = '',
63
- showExpand,
64
- ...others
65
- } = params
66
-
67
- others.freeCSS = {
68
- cursor: showExpand ? 'zoom-in' : 'inherit',
69
- ...others.freeCSS
70
- }
71
- let {
72
- className = '',
73
- ...Others
74
- } = StyleConverter.ToClassName( others )
75
-
76
- let ClassName = [
77
- style.Img,
78
- style[ 'ShowExpand_' + showExpand ],
79
- className
80
- ].join( ' ' )
81
-
82
- return <img
83
- src={ src }
84
- alt={ alt }
85
- className={ ClassName }
86
- onMouseDown={ ( event ) => {
87
- if ( showExpand ) event.stopPropagation()
88
- } }
89
- onTouchStart={ ( event ) => {
90
- if ( showExpand ) event.stopPropagation()
91
- } }
92
- onClick={ ( event ) => {
93
- if ( showExpand ) {
94
- event.stopPropagation()
95
- amotify.fn.Sheet.open( {
96
- type: 'image',
97
- src: showExpand != true ? showExpand : src
98
- } )
99
- }
100
- } }
101
- { ...Others }
102
- />
103
- }
104
- Img = ImageComp as any
105
- Img.uri = {
106
- comunIcon: publicURI + 'app/admin/@logo/icon.png',
107
- comunIconClear: publicURI + 'app/admin/@logo/iconClear.png',
108
- mingooIcon: '',
109
- defaultIcon: ( type ) => {
110
- return publicURI + '@env/@icon/' + ( type || 'image' ) + '.png'
111
- },
112
- }
113
- }
114
- export { Img }
115
-
116
- export const Flex: React.FC<amotify.atoms.FlexProps> = ( props ) => {
117
- let {
118
- children,
119
- freeCSS,
120
- ...others
121
- } = props
122
-
123
- return <Box
124
- flexType={ 'row' }
125
- flexWrap={ true }
126
- display='flex'
127
- freeCSS={ {
128
- wordBreak: 'break-word',
129
- ...freeCSS
130
- } }
131
- { ...others }
132
- children={ children }
133
- />
134
- }
135
-
136
- export const FlexBr: React.FC<amotifyUniStyleParams> = ( params ) => ( <Box
137
- width={ 1 }
138
- flexSizing='none'
139
- { ...params }
140
- /> )
141
-
142
- export const Grid: React.FC<amotify.atoms.GridProps> = ( props ) => {
143
- let {
144
- children,
145
- freeCSS,
146
- ...others
147
- } = props
148
-
149
- return <Box
150
- freeCSS={ {
151
- display: 'grid',
152
- ...freeCSS
153
- } }
154
- { ...others }
155
- children={ children }
156
- />
157
- }
158
-
159
- export const Paragraph: React.FC<amotify.atoms.ParagraphProps> = ( props ) => ( <p { ...StyleConverter.ToClassName( props ) } /> )
@@ -1,46 +0,0 @@
1
- @use '@props' as *;
2
- @use'@styleSet' as *;
3
- .Img {
4
- user-drag: none;
5
- -webkit-user-drag: none;
6
- -moz-user-select: none;
7
- vertical-align: top;
8
- object-fit: cover;
9
- width: 100%;
10
- height: 100%;
11
- border-radius: inherit;
12
- &.ShowExpand_true {
13
- transition: $animation-time-middle;
14
- &:hover {
15
- opacity: .8;
16
- }
17
- }
18
- }
19
- @keyframes PlaceholderEffect {
20
- 0% {
21
- left: -50%;
22
- opacity: 0;
23
- }
24
- 30% {
25
- opacity: 1;
26
- }
27
- 100% {
28
- left: 150%;
29
- opacity: 0;
30
- }
31
- }
32
- .Placeholder {
33
- .Body {
34
- @include absoluteCovered();
35
- width: 40%;
36
- background: linear-gradient(to right,
37
- transparent,
38
- $color-layer5 );
39
- animation: 1.5s PlaceholderEffect linear infinite;
40
- &.Color_white {
41
- background: linear-gradient(to right,
42
- transparent,
43
- $color-layer3 );
44
- }
45
- }
46
- }
package/src/config.tsx DELETED
@@ -1,191 +0,0 @@
1
- export const script = document.currentScript
2
- export const fileName = script?.attributes.getNamedItem( 'src' )!.textContent
3
- export const Version = ( fileName?.match( /v\d\.\d\.\d/ ) || [ 'v0.0.0' ] )[ 0 ]!
4
-
5
- export const userAgent = window.navigator.userAgent.toLowerCase()
6
- export const deviceType: amotify.DeviceTypes =
7
- userAgent.indexOf( "windows nt" ) !== -1 ? 'windows'
8
- : userAgent.indexOf( "android" ) !== -1 ? 'android'
9
- : userAgent.indexOf( "iphone" ) !== -1 ? 'iPhone'
10
- : userAgent.indexOf( "ipad" ) > -1 || ( userAgent.indexOf( "macintosh" ) > -1 && "ontouchend" in document ) ? 'iPad'
11
- : userAgent.indexOf( "mac os x" ) !== -1 ? 'macOSX'
12
- : 'undefined'
13
- export const browserType: amotify.BrowserTypes =
14
- userAgent.indexOf( "msie" ) !== -1 || userAgent.indexOf( "trident" ) !== -1 ? 'ie'
15
- : userAgent.indexOf( "edge" ) !== -1 ? 'edge'
16
- : userAgent.indexOf( "chrome" ) !== -1 ? 'chrome'
17
- : userAgent.indexOf( "safari" ) !== -1 ? 'safari'
18
- : userAgent.indexOf( "firefox" ) !== -1 ? 'firefox'
19
- : userAgent.indexOf( "opera" ) !== -1 || userAgent.indexOf( "opr" ) !== -1 ? 'opera'
20
- : 'undefined'
21
-
22
- export const deviceIdentifier = () => {
23
- let info = {
24
- deviceIs: deviceType,
25
- browserIs: browserType,
26
- isTouchDevice: window.ontouchstart !== undefined && 0 < navigator.maxTouchPoints,
27
- isPhone: [ 'Android','iPhone' ].includes( deviceType ),
28
- isIOS: [ 'iPhone','iPad' ].includes( deviceType ),
29
- isSystemDarkmode: () => {
30
- return window.matchMedia( '(prefers-color-scheme: dark)' ).matches == true
31
- },
32
- isBreakpoint: () => {
33
- // if (amotify.config.)
34
- return window.innerWidth <= 834
35
- },
36
- isPhonepoint: () => window.innerWidth <= 690
37
- }
38
-
39
- return info
40
- }
41
-
42
-
43
- import {
44
- launchID,
45
- ColorObjects
46
- } from './@variables'
47
-
48
- export const SetThemeColorTag = () => {
49
- let hex = '#45515c'
50
- let meta = $( '#ThemeColorMetaTag' )
51
- if ( !meta[ 0 ] ) return
52
- meta.setAttribute( 'content',hex )
53
- }
54
-
55
- const DarkmodeColors: {
56
- light: string
57
- dark: string
58
- dim: string
59
- auto(): string
60
- } = {
61
- light: '#FFF',
62
- dark: '#333',
63
- dim: '#666',
64
- auto: () => {
65
- return amotify.config.device.isSystemDarkmode() ? '#333' : '#FFF'
66
- }
67
- }
68
-
69
- const ThemeColors: {
70
- [ key in amotify.ThemeColorTypes ]: {
71
- alfa( alfa?: number ): string
72
- isBrand: boolean
73
- isAvocado: boolean
74
- }
75
- } = {} as any
76
- ColorObjects.forEach( ( ColorObject ) => {
77
- let { key,isAvocado,isBrand } = ColorObject
78
-
79
- ThemeColors[ key ] = {
80
- alfa: ( alfa?: number ) => ( `hsla( var( --cH_${ key } ),var( --cS_${ key } ),var( --cL_${ key } ),${ alfa ?? 1 } ) ` ),
81
- isAvocado,
82
- isBrand,
83
- }
84
- } )
85
-
86
- export const defaultConfig: amotify.config.Methods = {
87
- version: Version,
88
- launchID,
89
- tone: 'default',
90
- darkMode: 'light',
91
- themeColor: 'comun',
92
- roundness: 2,
93
-
94
- device: deviceIdentifier(),
95
- update: {
96
- tone: ( value ) => {
97
- if ( ![ 'default','flat','sharp' ].includes( value ) ) value = 'default'
98
-
99
- if ( value == amotify.config.tone ) return
100
-
101
- amotify.config.tone = value
102
-
103
- let body = $( 'body' )
104
- body
105
- .removeClass( body.findClass( /^bdsTN/ ) )
106
- .addClass( 'bdsTN' + value )
107
- .callback( () => {
108
- SetThemeColorTag()
109
- } )
110
-
111
- amotify.global.useRecycle.do( 'RootViewController' )
112
- },
113
- themeColor: ( value ) => {
114
- if ( !ColorObjects.find( ( ColorObject ) => ColorObject.key == value ) ) value = 'comun'
115
- if ( value == amotify.config.themeColor ) return
116
-
117
- amotify.config.themeColor = value
118
-
119
- let body = $( document.body )
120
- body
121
- .removeClass( body.findClass( /^bdsTC/ ) )
122
- .addClass( 'bdsTC_' + value )
123
- .callback( () => {
124
- SetThemeColorTag()
125
- } )
126
- amotify.global.useRecycle.do( 'RootViewController' )
127
- },
128
- darkMode: ( value ) => {
129
- if ( ![ 'light','dark','dim','auto' ].includes( value ) ) value = 'light'
130
- if ( value == amotify.config.darkMode ) return
131
- let Value = value == 'auto'
132
- ? deviceIdentifier().isSystemDarkmode()
133
- ? 'dark'
134
- : 'light'
135
- : value
136
-
137
- amotify.config.darkMode = value
138
-
139
- let body = $( 'body' )
140
- body
141
- .removeClass( body.findClass( /^bdsDM/ ) )
142
- .addClass( 'bdsDM_' + Value )
143
-
144
- amotify.global.useRecycle.do( 'RootViewController' )
145
- },
146
- roundness: ( value ) => {
147
- if ( !( value >= 0 && value <= 5 ) ) value = 2
148
- if ( value == amotify.config.roundness ) return
149
-
150
- amotify.config.roundness = value
151
- amotify.global.useRecycle.do( 'RootViewController' )
152
- },
153
- },
154
- readExtraCDN: async ( key ) => {
155
- let url = key
156
- let valid = false
157
- if ( url ) {
158
- await $.CDNReader( url )
159
- console.log( 'Read extraCdn : ' + key )
160
- valid = true
161
- }
162
- return valid
163
- },
164
- variables: {
165
- themeColors: ThemeColors,
166
- darkmodeColors: DarkmodeColors
167
- }
168
- }
169
-
170
- $( 'body' ).addClass( [
171
- 'usrDevice_' + deviceIdentifier().deviceIs,
172
- 'bdsDM_' + defaultConfig.darkMode,
173
- 'bdsTC_' + defaultConfig.themeColor
174
- ] )
175
-
176
- $( window ).addEvent( {
177
- eventType: 'load',
178
- callback: () => {
179
- let style: any = document.body.style
180
-
181
- let Body = $( document.body )
182
- let topNavHeight = Number( Body.getStyleProperty( '--topNavHeight' ).removeLetters() || 0 )
183
- let footerNavHeight = Number( Body.getStyleProperty( '--footerNavHeight' ).removeLetters() || 0 )
184
-
185
- let viewHeight = window.innerHeight
186
- let contentHeight = viewHeight - topNavHeight - footerNavHeight
187
-
188
- style.setProperty( '--viewHeight',window.innerHeight + 'px' )
189
- style.setProperty( '--contentHeight',contentHeight + 'px' )
190
- }
191
- } )