amotify 0.2.122 → 0.2.124

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.
@@ -1,6 +1,6 @@
1
1
  import ReactDOMClient from 'react-dom/client'
2
2
  import * as ReactRouterDOM from 'react-router-dom'
3
- import React,{ StrictMode,useEffect } from 'react'
3
+ import React,{ StrictMode,useEffect,useState } from 'react'
4
4
 
5
5
  import $$ from 'jmini'
6
6
 
@@ -31,36 +31,70 @@ import {
31
31
  } from './designBook'
32
32
 
33
33
  let Test = () => {
34
- let optionElms: ReactElement[] = []
35
- for ( let i = 0; i < 100; i++ ) {
36
- optionElms.push( <option key={ i } value={ i }>{ i }</option> )
37
- }
38
-
39
- useEffect( () => {
40
- let A = $$.interval.once( () => {
41
- console.log( 'testInterval' )
42
- },1000,'testInterval' )
43
-
44
- console.log( A )
45
- },[] )
46
-
47
- let Options: Input.Autocomplete.Option[] = []
48
- for ( let i = 0; i < 100; i++ ) {
49
- Options.push( { value: 'option' + i,label: 'オプション-' + i } )
50
- }
51
- for ( let i = 0; i < 100; i++ ) {
52
- Options.push( { value: 'optionJP' + i,label: '選択肢-' + i } )
53
- }
54
-
55
34
  return <Box>
56
35
  {/* <DesignBook
57
36
  /> */}
58
37
  <Row.Center
59
38
  flexCenter
60
39
  padding={ 3 }
40
+ gap={ 3 }
41
+ backgroundColor='layer.0'
61
42
  >
62
- <Input.TextField.Katakana
43
+ <Input.Select
44
+ options={ [
45
+ { value: 'AAA',label: 'AAA' },
46
+ { value: 'BBB',label: 'BBB' },
47
+ { value: 'CCC',label: 'CCC' },
48
+ ] }
49
+ />
50
+ <Input.Select
51
+ SelectorMode='legacy'
52
+ options={ [
53
+ { value: 'AAA',label: 'AAA' },
54
+ { value: 'BBB',label: 'BBB' },
55
+ { value: 'CCC',label: 'CCC' },
56
+ ] }
57
+ name='test'
58
+ form='test'
59
+ required
60
+ onUpdateValidValue={ value => {
61
+ console.log( value )
62
+ } }
63
+ onUpdateValue={ value => {
64
+ console.log( value )
65
+ } }
66
+ />
67
+ <Button.Prime
68
+ submitOption={ {
69
+ formName: 'test',
70
+ callback: form => {
71
+ console.log( form )
72
+ }
73
+ } }
74
+ >
75
+ Submit
76
+ </Button.Prime>
77
+
78
+ {/* <Box
79
+ ssSquare={ 12 }
80
+ backgroundColor='layer.0'
81
+ />
82
+ <Box
83
+ ssSquare={ 12 }
84
+ backgroundColor='layer.1'
85
+ />
86
+ <Box
87
+ ssSquare={ 12 }
88
+ backgroundColor='layer.2'
89
+ />
90
+ <Box
91
+ ssSquare={ 12 }
92
+ backgroundColor='layer.3'
63
93
  />
94
+ <Box
95
+ ssSquare={ 12 }
96
+ backgroundColor='cloud'
97
+ /> */}
64
98
  </Row.Center>
65
99
  </Box>
66
100
  }
@@ -77,6 +111,7 @@ $$.scope( () => {
77
111
  themeColor: $$.localStrage.get( 'prf.themeColor' ) || 'battery',
78
112
  // darkMode: $$.getLocalStrageData( 'prf.darkMode' ) || 'dark'
79
113
  // darkMode: 'dark'
114
+ // darkMode: 'dim'
80
115
  } )
81
116
 
82
117
  const AppRouter = () => {