amotify 0.2.125 → 0.2.126

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.
@@ -6,22 +6,14 @@ import $$ from 'jmini'
6
6
 
7
7
  import {
8
8
  Config,
9
- ReactElement,
10
9
  Row,
11
10
  useRouterEffect,
12
11
  LaunchReactApp,
13
- RootViewController,
14
- FAI,
15
- Column,
16
12
  Input,
17
13
  Box,
18
- Span,
14
+ Anchor,
19
15
  pageRouter,
20
- Img,
21
- Text,
22
- Sheet,
23
16
  Button,
24
- Tooltips
25
17
  } from 'amotify'
26
18
 
27
19
  import '../../dist/@styles/style.css'
@@ -32,70 +24,43 @@ import {
32
24
 
33
25
  let Test = () => {
34
26
  return <Box>
35
- {/* <DesignBook
36
- /> */}
37
- <Row.Center
38
- flexCenter
39
- padding={ 3 }
40
- gap={ 3 }
41
- backgroundColor='layer.0'
27
+ <DesignBook
28
+ />
29
+
30
+ {/* <Row.Center
31
+ padding={ 2 }
42
32
  >
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
- } }
33
+ <a href='#section1'>
34
+ #Section1
35
+ </a>
36
+ <a href='#section2'>
37
+ #Section2
38
+ </a>
39
+ <Anchor.Prime
40
+ href='#section1'
74
41
  >
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'
93
- />
94
- <Box
95
- ssSquare={ 12 }
96
- backgroundColor='cloud'
97
- /> */}
42
+ #Section1
43
+ </Anchor.Prime>
44
+ <Anchor.Prime
45
+ href='#section2'
46
+ >
47
+ #Section2
48
+ </Anchor.Prime>
98
49
  </Row.Center>
50
+ <Box
51
+ id='section1'
52
+ backgroundColor='posi'
53
+ height={ 'viewHeight' }
54
+ >
55
+ #section1
56
+ </Box>
57
+ <Box
58
+ id='section2'
59
+ backgroundColor='nega'
60
+ height={ 'viewHeight' }
61
+ >
62
+ #section2
63
+ </Box> */}
99
64
  </Box>
100
65
  }
101
66
 
@@ -106,11 +71,11 @@ $$.scope( () => {
106
71
 
107
72
  Config.launch( {
108
73
  appRoot: root,
109
- roundness: 3,
74
+ roundness: 4,
110
75
 
111
76
  themeColor: $$.localStrage.get( 'prf.themeColor' ) || 'battery',
112
- // darkMode: $$.getLocalStrageData( 'prf.darkMode' ) || 'dark'
113
- // darkMode: 'dark'
77
+ // darkMode: $$.getLocalStrageData( 'prf.darkMode' ) || 'dark',
78
+ // darkMode: 'dark',
114
79
  // darkMode: 'dim'
115
80
  } )
116
81
 
@@ -118,7 +83,13 @@ $$.scope( () => {
118
83
  let useLocation = ReactRouterDOM.useLocation()
119
84
  let useNavigate = ReactRouterDOM.useNavigate()
120
85
  useEffect( () => {
121
- pageRouter.setPushEffect( ( url ) => {
86
+ pageRouter.setPushEffect( url => {
87
+ if ( url.match( /^#/ ) ) {
88
+ console.log( url )
89
+ console.log( window.location.pathname )
90
+ // useNavigate( url )
91
+ return
92
+ }
122
93
  useNavigate( url )
123
94
  } )
124
95
  pageRouter.setBackEffect( () => {
@@ -1141,17 +1141,14 @@ const Buttons = {
1141
1141
  <Button.Prime>
1142
1142
  Button.Prime
1143
1143
  </Button.Prime>
1144
- Button.Button.Prime
1145
1144
  </>,<>
1146
1145
  <Button.Sub>
1147
1146
  Button.Sub
1148
1147
  </Button.Sub>
1149
- Button.Button.Sub
1150
1148
  </>,<>
1151
1149
  <Button.Border>
1152
1150
  Button.Border
1153
1151
  </Button.Border>
1154
- Button.Button.Border
1155
1152
  </>
1156
1153
  ] }
1157
1154
  />
@@ -2054,13 +2051,14 @@ text5`}
2054
2051
  </>
2055
2052
  }
2056
2053
  const Styling = () => {
2057
- const SheetContent = ( type: Sheet.Sheet,index?: number ) => {
2054
+ const SheetContent = ( type: Sheet.Sheet,index?: number,opt?: Partial<Sheet.Input> ) => {
2058
2055
  let sheetID = 'testModal' + index
2059
2056
  Sheet.open( {
2060
2057
  type,
2061
2058
  sheetID: sheetID,
2062
2059
  size: 'S',
2063
2060
  padding: 2,
2061
+ ...opt,
2064
2062
  content: <Sheet.Body padding={ 1 }>
2065
2063
  <Box padding={ 2 }>
2066
2064
  Content { index || 0 }
@@ -2309,7 +2307,9 @@ const Styling = () => {
2309
2307
  </Button.Border>
2310
2308
  <Button.Border
2311
2309
  onClick={ () => {
2312
- SheetContent( 'drawer.bottom' )
2310
+ SheetContent( 'drawer.bottom',10,{
2311
+ size: 'R'
2312
+ } )
2313
2313
  } }
2314
2314
  >
2315
2315
  Drawer Bottom
@@ -2322,7 +2322,6 @@ const Styling = () => {
2322
2322
  Drawer Right
2323
2323
  </Button.Border>
2324
2324
 
2325
-
2326
2325
  <Button.Border
2327
2326
  onClick={ ( event ) => {
2328
2327
  Tooltips.open( {
@@ -2399,7 +2398,6 @@ const Tables = {
2399
2398
  let styles: StyleTags.Properties = {}
2400
2399
 
2401
2400
  if ( args.isHeader ) {
2402
- console.log( 'AAA' )
2403
2401
  styles = {
2404
2402
  ...styles,
2405
2403
  backgroundColor: 'cloud'