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
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  React,
3
- } from '@global';
3
+ } from '@global'
4
4
  import {
5
5
  Box,
6
6
  Flex
7
- } from '@atoms';
7
+ } from '@atoms'
8
8
  import {
9
9
  Row
10
- } from '@mols';
10
+ } from '@mols'
11
11
  import {
12
12
  Input
13
- } from '@fn';
13
+ } from '@fn'
14
14
 
15
15
  export const TabBar: React.FC<amotify.fn.Layout.TabBar.Params> = ( params ) => {
16
16
  let {
@@ -19,11 +19,11 @@ export const TabBar: React.FC<amotify.fn.Layout.TabBar.Params> = ( params ) => {
19
19
  onTabChange,
20
20
  componentDidMount,
21
21
  ...others
22
- } = params;
22
+ } = params
23
23
 
24
24
  React.useEffect( () => {
25
- if ( componentDidMount ) componentDidMount();
26
- },[] );
25
+ if ( componentDidMount ) componentDidMount()
26
+ },[] )
27
27
 
28
28
  return <Flex
29
29
  position='relative'
@@ -51,10 +51,10 @@ export const TabBar: React.FC<amotify.fn.Layout.TabBar.Params> = ( params ) => {
51
51
  }
52
52
  } ) }
53
53
  onUpdateValidValue={ ( args ) => {
54
- let value = args.value[ 0 ];
55
- if ( onTabChange ) onTabChange( value );
54
+ let value = args.value[ 0 ]
55
+ if ( onTabChange ) onTabChange( value )
56
56
  } }
57
57
  />
58
58
  </Box>
59
- </Flex>;
59
+ </Flex>
60
60
  }
@@ -1,11 +1,11 @@
1
- import { SwipeView } from './SwipeView/parts';
2
- import { PageViewController } from './PageViewController/parts';
3
- import { TabBar } from './TabBar';
4
- import { Plate } from './Plate';
5
- import { PageNotFound } from './PageNotFound';
6
- import { PageRouter } from './PageRouter';
1
+ import { SwipeView } from './SwipeView/parts'
2
+ import { PageViewController } from './PageViewController/parts'
3
+ import { TabBar } from './TabBar'
4
+ import { Plate } from './Plate'
5
+ import { PageNotFound } from './PageNotFound'
6
+ import { PageRouter } from './PageRouter'
7
7
 
8
- import { RootViewController } from './RootViewController/parts';
8
+ import { RootViewController } from './RootViewController/parts'
9
9
 
10
10
  const Layout: amotify.fn.Layout.Methods = {
11
11
  PageViewController,
@@ -1,32 +1,32 @@
1
1
  import {
2
2
  useStore,
3
3
  React
4
- } from '@global';
4
+ } from '@global'
5
5
  import {
6
6
  Box,
7
7
  Flex
8
- } from '@atoms';
8
+ } from '@atoms'
9
9
 
10
- import style from './style.module.scss';
10
+ import style from './style.module.scss'
11
11
 
12
- import { memoryID } from './parts';
12
+ import { memoryID } from './parts'
13
13
 
14
14
  export const Corner = () => {
15
- let [ val_active,set_active ] = React.useState( false );
15
+ let [ val_active,set_active ] = React.useState( false )
16
16
 
17
17
  React.useEffect( () => {
18
18
  useStore.set( {
19
19
  key: memoryID + '-corner',
20
20
  value: {
21
21
  active: () => {
22
- set_active( true );
22
+ set_active( true )
23
23
  },
24
24
  stop: () => {
25
- set_active( false );
25
+ set_active( false )
26
26
  }
27
27
  }
28
- } );
29
- },[] );
28
+ } )
29
+ },[] )
30
30
 
31
31
  return <Flex
32
32
  className={ [
@@ -70,5 +70,5 @@ export const Corner = () => {
70
70
  >
71
71
  Loading
72
72
  </Box>
73
- </Flex>;
73
+ </Flex>
74
74
  }
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  useStore,
3
3
  React
4
- } from '@global';
4
+ } from '@global'
5
5
  import {
6
6
  Row
7
- } from '@mols';
7
+ } from '@mols'
8
8
 
9
- import style from './style.module.scss';
9
+ import style from './style.module.scss'
10
10
 
11
11
  export const Mini = ( params: amotify.fn.Loader.CompInput & {
12
12
  color?: amotify.fn.Loader.Colors
@@ -18,22 +18,22 @@ export const Mini = ( params: amotify.fn.Loader.CompInput & {
18
18
  showInitial = false,
19
19
  loaderID = '',
20
20
  ...props
21
- } = params;
22
- let [ val_key ] = React.useState( loaderID );
23
- let [ val_componentID ] = React.useState( $.uuidGen() );
24
- let [ val_active,set_active ] = React.useState( showInitial );
21
+ } = params
22
+ let [ val_key ] = React.useState( loaderID )
23
+ let [ val_componentID ] = React.useState( $.uuidGen() )
24
+ let [ val_active,set_active ] = React.useState( showInitial )
25
25
 
26
- let Size: amotify.UniStyles.Sizes.SizeParams = 0;
26
+ let Size: amotify.UniStyles.Sizes.SizeParams = 0
27
27
  if ( size == 'S' ) {
28
- Size = 1;
28
+ Size = 1
29
29
  } else if ( size == 'R' ) {
30
- Size = 1.5;
30
+ Size = 1.5
31
31
  } else if ( size == 'L' ) {
32
- Size = 3;
32
+ Size = 3
33
33
  } else if ( size == 'XL' ) {
34
- Size = 4;
34
+ Size = 4
35
35
  } else if ( size == 'MAX' ) {
36
- Size = 6;
36
+ Size = 6
37
37
  }
38
38
  let BorderColor = {
39
39
  'theme': 'hsl( var( --color-theme-hsl ) )',
@@ -42,41 +42,41 @@ export const Mini = ( params: amotify.fn.Loader.CompInput & {
42
42
  'warn': 'var( --color-warning )',
43
43
  'cloud': 'hsl( var( --color-layer5-hsl ) )',
44
44
  'white': 'white',
45
- }[ color as 'theme' ];
45
+ }[ color as 'theme' ]
46
46
 
47
- let QuerySelector = '[data-component-id="' + val_componentID + '"]';
47
+ let QuerySelector = '[data-component-id="' + val_componentID + '"]'
48
48
  React.useEffect( () => {
49
49
  if ( val_active ) {
50
50
  $( QuerySelector )
51
51
  .removeClass( style.Hide )
52
52
  .await( 10 )
53
- .addClass( style.Active );
53
+ .addClass( style.Active )
54
54
  } else {
55
55
  $( QuerySelector )
56
56
  .removeClass( style.Active )
57
57
  .await( 210 )
58
58
  .addClass( style.Hide )
59
59
  }
60
- },[ val_active ] );
60
+ },[ val_active ] )
61
61
 
62
62
  React.useEffect( () => {
63
63
  useStore.set( {
64
64
  key: val_componentID,
65
65
  value: {
66
66
  active: ( keyCode: string ) => {
67
- if ( val_key != keyCode ) return;
68
- set_active( true );
67
+ if ( val_key != keyCode ) return
68
+ set_active( true )
69
69
  },
70
70
  stop: ( keyCode: string ) => {
71
- if ( val_key != keyCode ) return;
72
- set_active( false );
71
+ if ( val_key != keyCode ) return
72
+ set_active( false )
73
73
  },
74
74
  stopForce: () => {
75
- set_active( false );
75
+ set_active( false )
76
76
  }
77
77
  }
78
- } );
79
- },[] );
78
+ } )
79
+ },[] )
80
80
 
81
81
  return <Row.Center
82
82
  ssSphere={ Size }
@@ -110,5 +110,5 @@ export const Mini = ( params: amotify.fn.Loader.CompInput & {
110
110
  >
111
111
  <circle cx="50" cy="50" r="40" />
112
112
  </svg>
113
- </Row.Center>;
113
+ </Row.Center>
114
114
  }
@@ -1,16 +1,16 @@
1
- import React from 'react';
1
+ import React from 'react'
2
2
  import {
3
3
  launchID,
4
4
  LaunchSubApplication,
5
5
  useStore
6
- } from '@global';
6
+ } from '@global'
7
7
 
8
- import style from './style.module.scss';
8
+ import style from './style.module.scss'
9
9
 
10
- export const memoryID = $.uuidGen();
11
- import { Mini } from './mini';
12
- import { Top } from './top';
13
- import { Corner } from './corner';
10
+ export const memoryID = $.uuidGen()
11
+ import { Mini } from './mini'
12
+ import { Top } from './top'
13
+ import { Corner } from './corner'
14
14
 
15
15
  const SizeWrapper: {
16
16
  ( params: {
@@ -23,7 +23,7 @@ const SizeWrapper: {
23
23
  MAX: React.FC<amotify.fn.Loader.CompInput>
24
24
  }
25
25
  } = ( params ) => {
26
- let color = params.color;
26
+ let color = params.color
27
27
  return {
28
28
  S: ( params ) => <Mini size='S' color={ color } { ...params } />,
29
29
  R: ( params ) => <Mini size='R' color={ color } { ...params } />,
@@ -43,50 +43,50 @@ const Loader: amotify.fn.Loader.Methods = {
43
43
  fn: {
44
44
  top: {
45
45
  active: () => {
46
- useStore.get( memoryID + '-top' ).active();
46
+ useStore.get( memoryID + '-top' ).active()
47
47
  },
48
48
  stop: () => {
49
- useStore.get( memoryID + '-top' ).stop();
49
+ useStore.get( memoryID + '-top' ).stop()
50
50
  },
51
51
  },
52
52
  corner: {
53
53
  active: () => {
54
- useStore.get( memoryID + '-corner' ).active();
54
+ useStore.get( memoryID + '-corner' ).active()
55
55
  },
56
56
  stop: () => {
57
- useStore.get( memoryID + '-corner' ).stop();
57
+ useStore.get( memoryID + '-corner' ).stop()
58
58
  },
59
59
  },
60
60
  mini: {
61
61
  active: ( keyCode = '' ) => {
62
62
  $( '.' + style.MiniLoader ).for( ( elm ) => {
63
- let { dataset: { componentId } = {} } = elm;
64
- if ( !componentId ) return;
65
- let fn = useStore.get( componentId );
66
- if ( fn && fn.active ) fn.active( keyCode );
67
- } );
63
+ let { dataset: { componentId } = {} } = elm
64
+ if ( !componentId ) return
65
+ let fn = useStore.get( componentId )
66
+ if ( fn && fn.active ) fn.active( keyCode )
67
+ } )
68
68
  },
69
69
  stop: ( keyCode = '' ) => {
70
70
  $( '.' + style.MiniLoader ).for( ( elm ) => {
71
- let { dataset: { componentId } = {} } = elm;
72
- if ( !componentId ) return;
73
- let fn = useStore.get( componentId );
74
- if ( fn && fn.stop ) fn.stop( keyCode );
75
- } );
71
+ let { dataset: { componentId } = {} } = elm
72
+ if ( !componentId ) return
73
+ let fn = useStore.get( componentId )
74
+ if ( fn && fn.stop ) fn.stop( keyCode )
75
+ } )
76
76
  },
77
77
  stopALL: () => {
78
78
  $( '.' + style.MiniLoader ).for( ( elm ) => {
79
- let { dataset: { componentId } = {} } = elm;
80
- if ( !componentId ) return;
81
- let fn = useStore.get( componentId );
82
- if ( fn && fn.stopForce ) fn.stopForce();
83
- } );
79
+ let { dataset: { componentId } = {} } = elm
80
+ if ( !componentId ) return
81
+ let fn = useStore.get( componentId )
82
+ if ( fn && fn.stopForce ) fn.stopForce()
83
+ } )
84
84
  },
85
85
  },
86
86
  stopALL: () => {
87
- Loader.fn.top.stop();
88
- Loader.fn.corner.stop();
89
- Loader.fn.mini.stopALL();
87
+ Loader.fn.top.stop()
88
+ Loader.fn.corner.stop()
89
+ Loader.fn.mini.stopALL()
90
90
  }
91
91
  }
92
92
  }
@@ -100,4 +100,4 @@ LaunchSubApplication( {
100
100
  <Corner />
101
101
  </>,
102
102
  nonRouter: true
103
- } );
103
+ } )
@@ -1,32 +1,32 @@
1
1
  import {
2
2
  useStore,
3
3
  React
4
- } from '@global';
4
+ } from '@global'
5
5
  import {
6
6
  Box,
7
7
  Flex
8
- } from '@atoms';
8
+ } from '@atoms'
9
9
 
10
- import style from './style.module.scss';
10
+ import style from './style.module.scss'
11
11
 
12
- import { memoryID } from './parts';
12
+ import { memoryID } from './parts'
13
13
 
14
14
  export const Top = () => {
15
- let [ val_active,set_active ] = React.useState( false );
15
+ let [ val_active,set_active ] = React.useState( false )
16
16
 
17
17
  React.useEffect( () => {
18
18
  useStore.set( {
19
19
  key: memoryID + '-top',
20
20
  value: {
21
21
  active: () => {
22
- set_active( true );
22
+ set_active( true )
23
23
  },
24
24
  stop: () => {
25
- set_active( false );
25
+ set_active( false )
26
26
  }
27
27
  }
28
- } );
29
- },[] );
28
+ } )
29
+ },[] )
30
30
 
31
31
  return <Flex
32
32
  className={ [
@@ -80,5 +80,5 @@ export const Top = () => {
80
80
  Loading...
81
81
  </Box>
82
82
  </Flex>
83
- </Flex>;
83
+ </Flex>
84
84
  }