amotify 0.2.67 → 0.2.69

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.
@@ -32,9 +32,45 @@ import { faRobot } from '@fortawesome/free-solid-svg-icons/faRobot'
32
32
 
33
33
  let Test = () => {
34
34
  return <>
35
- <Box height={ 'viewHeight' }>
36
-
37
- </Box>
35
+ <Column
36
+ padding={ 1 }
37
+ freeCSS={ {
38
+ maxWidth: 12 * 32
39
+ } }
40
+ >
41
+ <Input.TextField
42
+ form='testForm'
43
+ name='test'
44
+ required
45
+ value={ 'test' }
46
+ onUpdateValidValue={ ( { value } ) => {
47
+ console.log( value )
48
+ } }
49
+ onValidate={ async ( { value,eventType } ) => {
50
+ console.log( "onValidate",value )
51
+ if ( eventType == 'init' ) return {
52
+ ok: false,notice: []
53
+ }
54
+ await $$.pending( () => { },1000 )
55
+ return {
56
+ ok: true,
57
+ notice: []
58
+ }
59
+ } }
60
+ />
61
+ <Button
62
+ submitOption={ {
63
+ formName: 'testForm',
64
+ acceptInvalidForm: true,
65
+ callback: ( form,ok ) => {
66
+ console.log( form )
67
+ console.log( ok )
68
+ }
69
+ } }
70
+ >
71
+ Submit
72
+ </Button>
73
+ </Column>
38
74
  {/* <DesignBook
39
75
  /> */}
40
76
  </>