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,146 +0,0 @@
1
- import {
2
- useStore,
3
- React
4
- } from '@global'
5
- import {
6
- Box
7
- } from '@atoms'
8
-
9
- import style from './style.module.scss'
10
-
11
- const Component: React.FC<amotify.mols.Accordion.Params> = ( params ) => {
12
- params = { ...params }
13
- let {
14
- accordionID = '',
15
- slideAnimation = 'fast',
16
- defaultOpen = false,
17
- override = false,
18
- ...others
19
- } = params
20
-
21
- let [ val_wrapID ] = React.useState( $.uuidGen() )
22
- let [ val_contentID ] = React.useState( $.uuidGen() )
23
- let [ val_open,set_open ] = React.useState( defaultOpen )
24
-
25
- if ( val_open != defaultOpen ) {
26
- if ( override ) set_open( defaultOpen )
27
- }
28
-
29
- let Query = '[data-accordion-content-id="' + val_contentID + '"]'
30
-
31
- const mounted = React.useRef( false )
32
- React.useEffect( () => {
33
- let Content = $( Query )[ 0 ]
34
- if ( Content ) {
35
- let contentHeight = Content.offsetHeight
36
- let transitionTime = 0
37
- if ( slideAnimation == 'fast' ) {
38
- transitionTime = contentHeight / 1000
39
- transitionTime = Math.max( transitionTime,.2 )
40
- } else if ( slideAnimation == 'slow' ) {
41
- transitionTime = contentHeight / 300
42
- }
43
- $( '#' + val_wrapID ).css( {
44
- transition: transitionTime + 's'
45
- } )
46
- }
47
- },[] )
48
- React.useEffect( () => {
49
- let Wrap = $( '#' + val_wrapID )
50
- let Content = $( Query )[ 0 ]
51
- if ( mounted.current ) {
52
- if ( Content ) {
53
- let contentHeight = Content.offsetHeight
54
- if ( $.is.exist( contentHeight ) ) {
55
- if ( val_open ) {
56
- Wrap.css( {
57
- maxHeight: ( contentHeight + 1 ) + 'px',
58
- } ).await( 200 ).css( {
59
- maxHeight: 'unset',
60
- overflow: ( params.overflow as any ) || 'unset'
61
- } )
62
- } else {
63
- Wrap.css( {
64
- maxHeight: ( contentHeight + 1 ) + 'px',
65
- } ).await( 100 ).css( {
66
- maxHeight: 0 + 'px',
67
- overflow: 'hidden'
68
- } )
69
- }
70
- }
71
- }
72
- } else {
73
- mounted.current = true
74
- if ( Content ) {
75
- let contentHeight = Content.offsetHeight
76
- if ( $.is.exist( contentHeight ) ) {
77
- if ( val_open ) {
78
- Wrap.css( {
79
- maxHeight: ( contentHeight + 1 ) + 'px',
80
- } ).await( 200 ).css( {
81
- maxHeight: 'unset',
82
- overflow: ( params.overflow as any ) || 'unset'
83
- } )
84
- } else {
85
- Wrap
86
- .css( {
87
- maxHeight: 0 + 'px',
88
- overflow: 'hidden'
89
- } )
90
- }
91
- }
92
- }
93
- }
94
- },[ val_open ] )
95
-
96
- if ( accordionID ) {
97
- useStore.set( {
98
- key: 'Accordion-' + accordionID,
99
- value: {
100
- open: () => {
101
- set_open( true )
102
- // params.open = true
103
- },
104
- close: () => {
105
- set_open( false )
106
- // params.open = false
107
- },
108
- toggle: () => {
109
- set_open( !val_open )
110
- // params.open = !val_open
111
- }
112
- }
113
- } )
114
- }
115
-
116
- return <Box
117
- className={ [
118
- style.Wrap,
119
- style[ 'Open_' + val_open ]
120
- ].join( ' ' ) }
121
- id={ val_wrapID }
122
- >
123
- <Box
124
- data-accordion-content-id={ val_contentID }
125
- { ...others }
126
- />
127
- </Box>
128
- }
129
-
130
- const Accordion: amotify.mols.Accordion.SetParams = Component as any
131
- Accordion.fn = {
132
- open: ( id ) => {
133
- let component = useStore.get( 'Accordion-' + id )
134
- !component || component.open()
135
- },
136
- close: ( id ) => {
137
- let component = useStore.get( 'Accordion-' + id )
138
- !component || component.close()
139
- },
140
- toggle: ( id ) => {
141
- let component = useStore.get( 'Accordion-' + id )
142
- !component || component.toggle()
143
- }
144
- }
145
-
146
- export { Accordion }
@@ -1,13 +0,0 @@
1
- @use '@props' as *;
2
- .Wrap {
3
- &.Open_true {
4
- opacity: 1;
5
- }
6
- &.Open_false {
7
- opacity: 0 !important;
8
- pointer-events: none !important;
9
- * {
10
- pointer-events: none !important;
11
- }
12
- }
13
- }
@@ -1,52 +0,0 @@
1
- import React from 'react'
2
- import {
3
- FAI
4
- } from '@atoms'
5
- import {
6
- Buttons
7
- } from '@fn'
8
-
9
- const {
10
- Anchor
11
- } = Buttons
12
-
13
- export const LinkifyText: React.FC<amotify.mols.LinkifyTextProps> = ( props ) => {
14
- let {
15
- text,
16
- placeholder
17
- } = props
18
-
19
- let Description: ReactElement[] = []
20
-
21
- if ( text ) {
22
- let urls: string[] = []
23
-
24
- text = text.replace( /https?:\/\/[^\s|\n|\r]*/ig,( ...args: any ) => {
25
- let url = args[ 0 ]
26
- urls.push( url )
27
-
28
- return '[$_url]'
29
- } )
30
- let parts = text.split( '[$_url]' )
31
- for ( let index = 0; index <= parts.length - 1; index++ ) {
32
- let part = parts[ index ]
33
- let url = urls[ index ]
34
- Description.push( part )
35
- if ( index < parts.length - 1 ) {
36
- Description.push( <Anchor.Link
37
- key={ 'Link-' + index }
38
- href={ url }
39
- newTab
40
- >
41
- { url }
42
- </Anchor.Link> )
43
- }
44
- }
45
- } else if ( placeholder ) {
46
- Description = [ placeholder ]
47
- }
48
-
49
- return <>
50
- { Description }
51
- </>
52
- }
@@ -1,31 +0,0 @@
1
- import React from 'react'
2
- import {
3
- Flex
4
- } from '@atoms'
5
-
6
- export const List: React.FC<amotify.mols.List.Params> = ( params ) => {
7
- let {
8
- rows,
9
- rowStyles: DefaultRowStyles,
10
- ...others
11
- } = params
12
-
13
- let rowArray = rows.map( ( row ) => {
14
- let {
15
- children,
16
- ...others
17
- } = row
18
-
19
- return <Flex
20
- { ...DefaultRowStyles }
21
- { ...others }
22
- children={ children }
23
- />
24
- } )
25
-
26
- return <Flex
27
- { ...others }
28
- flexType='col'
29
- children={ rowArray }
30
- />
31
- }
package/src/preload.tsx DELETED
@@ -1,31 +0,0 @@
1
- import { launchID } from './@variables'
2
-
3
- let tags: Jsmin.CreateElement.Args[] = [
4
- {
5
- tag: 'meta',
6
- parent: document.head,
7
- attr: {
8
- name: 'viewport',content: 'width=device-width,initial-scale=1.0,maximum-scale=5.0,minimum-scale=1.0,viewport-fit=cover'
9
- },
10
- },{
11
- tag: 'meta',
12
- parent: document.head,
13
- id: 'ThemeColorMetaTag',
14
- attr: { name: 'theme-color',content: '#45515c' },
15
- },
16
- {
17
- parent: document.body,
18
- tag: 'amotify-app',
19
- id: launchID,
20
- html: `
21
- <div class="AMOTIFY_be AMOTIFY_be_sheet"></div>
22
- <div class="AMOTIFY_be AMOTIFY_be_snackbar"></div>
23
- <div class="AMOTIFY_be AMOTIFY_be_loader"></div>
24
- <div class="AMOTIFY_be AMOTIFY_be_root"></div>
25
- `
26
- }
27
- ]
28
- for ( let tag of tags ) {
29
- if ( tag.id && $( '#' + tag.id )[ 0 ] ) continue
30
- $.createElement( tag )
31
- }
@@ -1,96 +0,0 @@
1
- import React from 'react'
2
- import {
3
- Box
4
- } from '@atoms'
5
- import {
6
- Column
7
- } from '@mols'
8
- import {
9
- Buttons,
10
- Input,
11
- Inputs,
12
- Table
13
- } from '@fn'
14
-
15
- import style from './style.module.scss'
16
-
17
- export const PlayGround: React.FC<{}> = () => {
18
- return <>
19
- <Box
20
- padding={ 2 }
21
- border
22
- backgroundColor='cloud'
23
- >
24
- <Table.Comps.Table
25
- border='2.normal'
26
- borderLeft='2.normal'
27
- >
28
-
29
- </Table.Comps.Table>
30
- AAAA
31
- </Box>
32
- <Column
33
- gap={ 2 }
34
- >
35
- <Input.Text.Normal
36
- />
37
- <Input.Select
38
- options={ [
39
- { value: 1,label: 'AAA' },
40
- { value: 2,label: 'BBB' },
41
- { value: 3,label: 'CCC' },
42
- {
43
- value: {
44
- test: 1,
45
- },label: 'DDD'
46
- },
47
- ] }
48
- onUpdateValidValue={ ( { value } ) => {
49
- console.log( value )
50
- } }
51
- />
52
-
53
- <Buttons.Button.Prime.R
54
- submitOption={ {
55
- formName: 'test',
56
- callback: ( form ) => {
57
- console.log( form )
58
- }
59
- } }
60
- >
61
- Submit
62
- </Buttons.Button.Prime.R>
63
- <Box>
64
- Label1
65
- <Inputs.TextInput
66
- tone='normal'
67
- // freeCSS={ {
68
- // minWidth: '50%'
69
- // } }
70
- // width={ '1/2' }
71
- />
72
- </Box>
73
- <Box>
74
- Label2
75
- <Inputs.TextInput
76
- tone='cloud'
77
- width={ 1 }
78
- />
79
- </Box>
80
- <Box>
81
- Label3
82
- <Inputs.TextInput
83
- tone='bottomBorder'
84
- unitWidth={ 12 }
85
- />
86
- </Box>
87
- <Box>
88
- Label4
89
- <Inputs.TextInput
90
- tone='plain'
91
- unitWidth={ 6 }
92
- />
93
- </Box>
94
- </Column>
95
- </>
96
- }
@@ -1,38 +0,0 @@
1
- @use '@props' as *;
2
- .TestAnimation {
3
- animation: .25s ease-in-out jiggly infinite;
4
- cursor: grab;
5
- user-select: none;
6
- &:nth-child( 5n ) {
7
- animation-delay: .2s;
8
- animation-duration: .24s;
9
- }
10
- &:nth-child( 5n + 2 ) {
11
- animation-delay: .22s;
12
- animation-duration: .26s;
13
- }
14
- &:nth-child( 5n + 4 ) {
15
- animation-delay: .24s;
16
- animation-duration: .28s;
17
- }
18
- &:nth-child( 5n + 1 ) {
19
- animation-delay: .26s;
20
- animation-duration: .3s;
21
- }
22
- &:nth-child( 5n + 3 ) {
23
- animation-delay: .28s;
24
- animation-duration: .32s;
25
- }
26
- }
27
-
28
- @keyframes jiggly {
29
- 0% {
30
- transform: rotate(-.4deg);
31
- }
32
- 50% {
33
- transform: rotate(.4deg);
34
- }
35
- 100% {
36
- transform: rotate(-.4deg);
37
- }
38
- }
package/webpack.config.js DELETED
@@ -1,146 +0,0 @@
1
- module.exports = ( () => {
2
- let path = require( 'path' )
3
- let MinCss = require( 'mini-css-extract-plugin' )
4
- let RemoveWasteFiles = require( 'webpack-remove-empty-scripts' )
5
- let webpack = require( 'webpack' )
6
- let TerserPlugin = require( 'terser-webpack-plugin' )
7
- let BundleAnalyzerPlugin = require( 'webpack-bundle-analyzer' ).BundleAnalyzerPlugin
8
- let BrowserSync = require( 'browser-sync-webpack-plugin' )
9
- let BrowserSync_option = {
10
- host: 'localhost',
11
- // port: 10201,
12
- // proxy: 'http://localhost:10300/',
13
- port: 10201,
14
- proxy: 'http://localhost:10200/',
15
- open: false,
16
- notify: false
17
- }
18
- let project = {
19
- name: 'amotify',
20
- ver: 'v0.0.53',
21
- author: 'mingoo LLC.',
22
- details: 'https://mingoo.co.jp/'
23
- }
24
-
25
- let entry = {
26
- 'amotify': './src/launch.tsx'
27
- }
28
- console.log( entry )
29
- return {
30
- mode: 'development',
31
- entry: entry,
32
- output: {
33
- filename: '[name].js',
34
- path: __dirname + '/dist/',
35
- devtoolModuleFilenameTemplate: 'src/[resource-path]'
36
- },
37
- optimization: {
38
- minimize: true,
39
- minimizer: [
40
- new TerserPlugin( {
41
- parallel: true,
42
- extractComments: false,
43
- terserOptions: {
44
- compress: {
45
- drop_console: true
46
- },
47
- output: {
48
- comments: /^\*?!/
49
- }
50
- }
51
- } )
52
- ],
53
- splitChunks: {
54
- cacheGroups: {
55
- vendor: {
56
- test: /node_modules/,
57
- filename: 'coreVender.js',
58
- chunks: 'all',
59
- enforce: true
60
- }
61
- }
62
- }
63
- },
64
- externals: {
65
- // 'react': 'React',
66
- // 'react-dom': 'ReactDOM',
67
- // 'react-router-dom': 'ReactRouterDOM'
68
- },
69
- plugins: [
70
- // new BundleAnalyzerPlugin(),
71
- // new BrowserSync(
72
- // BrowserSync_option,
73
- // { reload: true }
74
- // ),
75
- new MinCss( {
76
- filename: '[name].min.css'
77
- } ),
78
- new RemoveWasteFiles,
79
- new webpack.BannerPlugin( {
80
- banner: `
81
- ${ project.name } JavaScript Library ${ project.ver }
82
- ${ project.details }
83
-
84
- Copyright ${ project.author }
85
- Released under the MIT license
86
- ${ project.details }license
87
-
88
- Last updated: ${ new Date().toLocaleDateString() }
89
- `
90
- } )
91
- ],
92
- module: {
93
- rules: [
94
- {
95
- test: /\.scss/,
96
- use: [
97
- MinCss.loader,
98
- 'css-loader',
99
- 'sass-loader'
100
- ]
101
- },
102
- {
103
- test: /\.(j|t)sx?$/,
104
- use: [
105
- {
106
- loader: 'babel-loader',
107
- options: {
108
- presets: [
109
- '@babel/preset-env',
110
- '@babel/preset-react',
111
- '@babel/preset-typescript'
112
- ]
113
- }
114
- },
115
- {
116
- loader: "ts-loader",
117
- options: {
118
- allowTsInNodeModules: true,
119
- // transpileOnly:true,
120
- configFile: path.resolve( __dirname, 'tsconfig.json' )
121
- }
122
- }
123
- ],
124
- }
125
- ]
126
- },
127
- resolve: {
128
- modules: [ 'node_modules' ],
129
- extensions: [ '.js', '.jsx', '.tsx', '.ts' ],
130
- alias: {
131
- '~': `${ __dirname }/src`,
132
-
133
- '@props': path.resolve( __dirname, 'src/@styles/props' ),
134
- '@brandVar': path.resolve( __dirname, 'src/@styles/brand' ),
135
- '@styleSet': path.resolve( __dirname, 'src/@styles/styleSet' ),
136
-
137
- '@global': path.resolve( __dirname, 'src/@global' ),
138
- '@atoms': path.resolve( __dirname, 'src/@atoms' ),
139
- '@mols': path.resolve( __dirname, 'src/@molecules' ),
140
- '@orgs': path.resolve( __dirname, 'src/@organisms' ),
141
- '@temps': path.resolve( __dirname, 'src/@templates' ),
142
- '@fn': path.resolve( __dirname, 'src/@functions' ),
143
- }
144
- },
145
- }
146
- } )()