amotify 0.0.59 → 0.0.60

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 (78) hide show
  1. package/@types/_.tsx +5 -5
  2. package/@types/amot.tsx +11 -11
  3. package/@types/fn.tsx +1 -1
  4. package/@types/module.tsx +1 -1
  5. package/dist/amotify.js +1 -1
  6. package/dist/amotify.min.css +3 -3
  7. package/package.json +1 -1
  8. package/src/@atoms.tsx +3 -3
  9. package/src/@functions.tsx +11 -11
  10. package/src/@global.tsx +40 -40
  11. package/src/@jsminAmotifyExtension/_.tsx +4 -4
  12. package/src/@jsminAmotifyExtension/fetch.tsx +30 -30
  13. package/src/@jsminAmotifyExtension/formCollect.tsx +32 -32
  14. package/src/@jsminAmotifyExtension/spreadSheet.tsx +71 -71
  15. package/src/@jsminAmotifyExtension/variables.tsx +38 -38
  16. package/src/@molecules.tsx +6 -6
  17. package/src/@styles/props.scss +1 -1
  18. package/src/@styles/var.scss +0 -1
  19. package/src/@templates.tsx +1 -1
  20. package/src/@variables.tsx +2 -2
  21. package/src/atoms/FAI/parts.tsx +105 -105
  22. package/src/atoms/Logo/parts.tsx +19 -19
  23. package/src/atoms/Various/parts.tsx +26 -26
  24. package/src/config.tsx +62 -59
  25. package/src/functions/Button/_.tsx +49 -49
  26. package/src/functions/Cropper/parts.tsx +249 -249
  27. package/src/functions/Effects/Fade.tsx +18 -18
  28. package/src/functions/Effects/Ripple.tsx +24 -24
  29. package/src/functions/Effects/_.tsx +5 -5
  30. package/src/functions/Input/Chips/Selector.tsx +107 -107
  31. package/src/functions/Input/Chips/_.tsx +66 -66
  32. package/src/functions/Input/Contenteditable.tsx +18 -18
  33. package/src/functions/Input/DigitCharacters.tsx +48 -48
  34. package/src/functions/Input/File/_.tsx +114 -114
  35. package/src/functions/Input/Hidden.tsx +3 -3
  36. package/src/functions/Input/List/_.tsx +61 -61
  37. package/src/functions/Input/RichSelect/_.tsx +38 -38
  38. package/src/functions/Input/Segmented/_.tsx +30 -30
  39. package/src/functions/Input/Select/_.tsx +42 -42
  40. package/src/functions/Input/Slider/_.tsx +93 -93
  41. package/src/functions/Input/Switch/_.tsx +21 -21
  42. package/src/functions/Input/Text.tsx +99 -97
  43. package/src/functions/Input/TextArea.tsx +17 -17
  44. package/src/functions/Input/Time/Picker.tsx +199 -199
  45. package/src/functions/Input/Time/_.tsx +173 -173
  46. package/src/functions/Input/_.tsx +135 -135
  47. package/src/functions/Input/core.tsx +96 -96
  48. package/src/functions/Inputs/_.tsx +1 -1
  49. package/src/functions/Inputs/text.tsx +5 -5
  50. package/src/functions/Layout/PageNotFound.tsx +6 -6
  51. package/src/functions/Layout/PageRouter.tsx +34 -34
  52. package/src/functions/Layout/PageViewController/parts.tsx +7 -7
  53. package/src/functions/Layout/Plate.tsx +5 -5
  54. package/src/functions/Layout/RootViewController/parts.tsx +53 -53
  55. package/src/functions/Layout/SwipeView/parts.tsx +90 -90
  56. package/src/functions/Layout/TabBar.tsx +10 -10
  57. package/src/functions/Layout/_.tsx +7 -7
  58. package/src/functions/Loader/corner.tsx +10 -10
  59. package/src/functions/Loader/mini.tsx +25 -25
  60. package/src/functions/Loader/parts.tsx +31 -31
  61. package/src/functions/Loader/top.tsx +10 -10
  62. package/src/functions/Sheet/parts.tsx +219 -219
  63. package/src/functions/Sheet/style.module.scss +0 -20
  64. package/src/functions/SnackBar/parts.tsx +50 -50
  65. package/src/functions/Table/Data/parts.tsx +202 -202
  66. package/src/functions/Table/Drag/parts.tsx +76 -76
  67. package/src/functions/Table/Normal/parts.tsx +23 -23
  68. package/src/functions/Table/_.tsx +33 -33
  69. package/src/functions/Tooltips/parts.tsx +7 -7
  70. package/src/global/LaunchReactApplication.tsx +28 -28
  71. package/src/global/styleConverter.tsx +133 -133
  72. package/src/launch.tsx +27 -27
  73. package/src/molecules/Accordion/parts.tsx +41 -41
  74. package/src/molecules/LinkifyText/parts.tsx +18 -18
  75. package/src/molecules/List.tsx +6 -6
  76. package/src/preload.tsx +5 -45
  77. package/src/templates/PlayGround/parts.tsx +8 -8
  78. package/webpack.config.js +9 -9
@@ -88,11 +88,6 @@ html {
88
88
  pointer-events: all;
89
89
  }
90
90
  }
91
- @media (max-width:$breakPoint ) {
92
- .BB {
93
- width: 100vw;
94
- }
95
- }
96
91
  &.Open .BB {
97
92
  transform: scale(1);
98
93
  opacity: 1;
@@ -112,16 +107,6 @@ html {
112
107
  .BB {
113
108
  max-width: 100vw;
114
109
  #{ $type }: -10%;
115
- @media (max-width : $breakPoint ) {
116
- min-width: 25rem !important;
117
- .Footer {
118
- padding-bottom: $safe-area-top;
119
- }
120
- }
121
- @media (max-width : $breakPoint ) {
122
- min-width: 0 !important;
123
- max-width: 85vw !important;
124
- }
125
110
  }
126
111
  &.Open .BB {
127
112
  #{ $type }: 0;
@@ -214,11 +199,6 @@ html {
214
199
  }
215
200
  }
216
201
  }
217
- // @media (max-width:$breakPoint ) {
218
- // .BB {
219
- // width: 100vw;
220
- // }
221
- // }
222
202
  &.Open .BB {
223
203
  transform: scale(1);
224
204
  opacity: 1;
@@ -3,31 +3,31 @@ import {
3
3
  LaunchSubApplication,
4
4
  useStore,
5
5
  React
6
- } from '@global';
6
+ } from '@global'
7
7
  import {
8
8
  Box,
9
9
  Flex,
10
10
  FAI
11
- } from '@atoms';
11
+ } from '@atoms'
12
12
  import {
13
13
  Row,
14
14
  Column
15
- } from '@mols';
15
+ } from '@mols'
16
16
  import {
17
17
  Buttons
18
- } from '@fn';
18
+ } from '@fn'
19
19
 
20
- import style from './style.module.scss';
20
+ import style from './style.module.scss'
21
21
 
22
22
  const SnackBar: amotify.fn.SnackBar.Methods = {
23
23
  __memoryID: $.uuidGen(),
24
24
  add: function ( params ) {
25
- useStore.get( 'SnackBar',this.__memoryID ).add( params );
26
- return this;
25
+ useStore.get( 'SnackBar',this.__memoryID ).add( params )
26
+ return this
27
27
  },
28
28
  remove: function ( val_componentID ) {
29
- useStore.get( 'SnackBar',this.__memoryID ).remove( val_componentID );
30
- return this;
29
+ useStore.get( 'SnackBar',this.__memoryID ).remove( val_componentID )
30
+ return this
31
31
  }
32
32
  }
33
33
 
@@ -44,49 +44,49 @@ const Cell: React.FC<ElementParams> = ( props ) => {
44
44
  children: Children,
45
45
  customChildren: CustomChildren,
46
46
  ...others
47
- } = props;
47
+ } = props
48
48
 
49
- let [ val_componentID ] = React.useState( componentID );
50
- let [ val_mouseOn,set_mouseOn ] = React.useState( false );
49
+ let [ val_componentID ] = React.useState( componentID )
50
+ let [ val_mouseOn,set_mouseOn ] = React.useState( false )
51
51
 
52
52
  React.useEffect( () => {
53
- let Query = '[data-component-id="' + val_componentID + '"]';
53
+ let Query = '[data-component-id="' + val_componentID + '"]'
54
54
  setTimeout( () => {
55
- $( Query ).addClass( style.FadeIn );
56
- },10 );
55
+ $( Query ).addClass( style.FadeIn )
56
+ },10 )
57
57
 
58
58
  useStore.set( {
59
59
  key: 'SnackBar-' + snackID,
60
60
  value: {
61
61
  remove: () => {
62
- $( Query ).addClass( style.FadeOut );
62
+ $( Query ).addClass( style.FadeOut )
63
63
  }
64
64
  }
65
- } );
66
- },[] );
65
+ } )
66
+ },[] )
67
67
 
68
68
  React.useEffect( () => {
69
- $.interval.clear( 'SnackBar-' + val_componentID );
69
+ $.interval.clear( 'SnackBar-' + val_componentID )
70
70
  if ( !val_mouseOn ) {
71
71
  setTimeout( () => {
72
72
  $.interval.standBy(
73
73
  'SnackBar-' + val_componentID,
74
74
  secondsToClose * 1000,
75
75
  () => {
76
- if ( !val_mouseOn ) SnackBar.remove( snackID );
76
+ if ( !val_mouseOn ) SnackBar.remove( snackID )
77
77
  }
78
- );
79
- },100 );
78
+ )
79
+ },100 )
80
80
  }
81
- },[ val_mouseOn ] );
81
+ },[ val_mouseOn ] )
82
82
 
83
- let Content: ReactElement = <></>;
83
+ let Content: ReactElement = <></>
84
84
  if ( CustomChildren ) {
85
85
  Content = <CustomChildren
86
86
  close={ () => {
87
- SnackBar.remove( snackID );
87
+ SnackBar.remove( snackID )
88
88
  } }
89
- />;
89
+ />
90
90
  } else {
91
91
  Content = <Row.Separate
92
92
  verticalAlign='top'
@@ -103,7 +103,7 @@ const Cell: React.FC<ElementParams> = ( props ) => {
103
103
  fontColor='white'
104
104
  ssSphere={ 2.5 }
105
105
  onClick={ () => {
106
- SnackBar.remove( snackID );
106
+ SnackBar.remove( snackID )
107
107
  } }
108
108
  >
109
109
  <FAI.Times />
@@ -124,10 +124,10 @@ const Cell: React.FC<ElementParams> = ( props ) => {
124
124
  transition={ 'middle' }
125
125
  componentID={ val_componentID }
126
126
  onMouseOver={ () => {
127
- set_mouseOn( true );
127
+ set_mouseOn( true )
128
128
  } }
129
129
  onMouseOut={ () => {
130
- set_mouseOn( false );
130
+ set_mouseOn( false )
131
131
  } }
132
132
  { ...others }
133
133
  >
@@ -135,10 +135,10 @@ const Cell: React.FC<ElementParams> = ( props ) => {
135
135
  </Box>
136
136
  }
137
137
 
138
- let SnackBarElements: ElementParams[] = [];
138
+ let SnackBarElements: ElementParams[] = []
139
139
 
140
140
  const SnackBarsWrap: React.FC<{}> = () => {
141
- let [ val_refresh,set_refresh ] = React.useState( $.uuidGen() );
141
+ let [ val_refresh,set_refresh ] = React.useState( $.uuidGen() )
142
142
 
143
143
  React.useEffect( () => {
144
144
  useStore.set( {
@@ -146,45 +146,45 @@ const SnackBarsWrap: React.FC<{}> = () => {
146
146
  privateKey: SnackBar.__memoryID,
147
147
  value: {
148
148
  add: ( params: amotify.fn.SnackBar.AddParams ) => {
149
- params.snackID = params.snackID || $.uuidGen();
150
- let findIndex = SnackBarElements.findIndex( ( el ) => el.snackID == params.snackID );
149
+ params.snackID = params.snackID || $.uuidGen()
150
+ let findIndex = SnackBarElements.findIndex( ( el ) => el.snackID == params.snackID )
151
151
 
152
152
  if ( findIndex == -1 ) {
153
153
  SnackBarElements.unshift( {
154
154
  ...params,
155
155
  snackID: params.snackID
156
- } );
156
+ } )
157
157
  } else {
158
- let newList = [ ...SnackBarElements ];
158
+ let newList = [ ...SnackBarElements ]
159
159
  newList[ findIndex ] = {
160
160
  ...params,
161
161
  snackID: params.snackID
162
- };
163
- SnackBarElements = newList;
162
+ }
163
+ SnackBarElements = newList
164
164
  }
165
- set_refresh( $.uuidGen() );
165
+ set_refresh( $.uuidGen() )
166
166
  },
167
167
  remove: ( snackID: string ) => {
168
- let component = useStore.get( 'SnackBar-' + snackID );
168
+ let component = useStore.get( 'SnackBar-' + snackID )
169
169
  if ( component && component.remove ) {
170
- component.remove();
170
+ component.remove()
171
171
  setTimeout( () => {
172
- let findIndex = SnackBarElements.findIndex( ( cell ) => cell.snackID == snackID );
172
+ let findIndex = SnackBarElements.findIndex( ( cell ) => cell.snackID == snackID )
173
173
  if ( findIndex != -1 ) {
174
174
  let newList = [ ...SnackBarElements ]
175
- newList.splice( findIndex,1 );
175
+ newList.splice( findIndex,1 )
176
176
 
177
- SnackBarElements = newList;
178
- set_refresh( $.uuidGen() );
177
+ SnackBarElements = newList
178
+ set_refresh( $.uuidGen() )
179
179
  }
180
- },210 );
180
+ },210 )
181
181
  }
182
182
  }
183
183
  }
184
- } );
185
- },[] );
184
+ } )
185
+ },[] )
186
186
 
187
- let SnackBars = SnackBarElements.map( ( el ) => { return <Cell { ...el } key={ el.snackID } />; } )
187
+ let SnackBars = SnackBarElements.map( ( el ) => { return <Cell { ...el } key={ el.snackID } /> } )
188
188
 
189
189
  return <Flex
190
190
  className={ style.SnackBarsWrap }
@@ -202,7 +202,7 @@ const SnackBarsWrap: React.FC<{}> = () => {
202
202
  paddingLeft: 1,
203
203
  width: 'auto'
204
204
  } }
205
- />;
205
+ />
206
206
  }
207
207
 
208
208
  LaunchSubApplication( {
@@ -210,6 +210,6 @@ LaunchSubApplication( {
210
210
  baseElement: '#' + launchID + ' .AMOTIFY_be_snackbar',
211
211
  reactElement: <SnackBarsWrap />,
212
212
  nonRouter: true
213
- } );
213
+ } )
214
214
 
215
215
  export { SnackBar }