File tree Expand file tree Collapse file tree 5 files changed +8
-16
lines changed Expand file tree Collapse file tree 5 files changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -86,8 +86,7 @@ export const Space = ({
86
86
gridTemplateColumns : 'repeat(3, 1fr)' ,
87
87
alignItems : 'center' ,
88
88
} } >
89
- < Field
90
- // FIXME: Field type is comming from external package @types /theme-ui__components, not sure why type prop does not exist in type definition.
89
+ < Field < 'input' >
91
90
type = "number"
92
91
name = { prefixName ( 'l' ) }
93
92
label = { label ( 'Left' ) }
@@ -99,8 +98,7 @@ export const Space = ({
99
98
display : 'grid' ,
100
99
gap : 2 ,
101
100
} } >
102
- < Field
103
- // FIXME: Field type is comming from external package @types /theme-ui__components, not sure why type prop does not exist in type definition.
101
+ < Field < 'input' >
104
102
type = "number"
105
103
name = { prefixName ( 't' ) }
106
104
label = { label ( 'Top' ) }
@@ -117,17 +115,15 @@ export const Space = ({
117
115
Lock y-axis
118
116
</ Label >
119
117
</ div >
120
- < Field
121
- // FIXME: Field type is comming from external package @types /theme-ui__components, not sure why type prop does not exist in type definition.
118
+ < Field < 'input' >
122
119
type = "number"
123
120
name = { prefixName ( 'b' ) }
124
121
label = { label ( 'Bottom' ) }
125
122
value = { b }
126
123
onChange = { handleChange ( 'b' ) }
127
124
/>
128
125
</ div >
129
- < Field
130
- // FIXME: Field type is comming from external package @types /theme-ui__components, not sure why type prop does not exist in type definition.
126
+ < Field < 'input' >
131
127
type = "number"
132
128
name = { prefixName ( 'r' ) }
133
129
label = { label ( 'Right' ) }
Original file line number Diff line number Diff line change @@ -51,10 +51,9 @@ export const SxTypography = ({
51
51
gap : 2 ,
52
52
gridTemplateColumns : 'repeat(3, 1fr)' ,
53
53
} } >
54
- < Field
54
+ < Field < 'input' >
55
55
name = { prefixName ( 'fontSize' ) }
56
56
label = "Font Size"
57
- // FIXME: Field type is comming from external package @types /theme-ui__components, not sure why value prop does not exist in type definition.
58
57
value = { fontSize || '' }
59
58
type = "number"
60
59
onChange = { e => {
Original file line number Diff line number Diff line change @@ -26,8 +26,7 @@ const FontSizes = () => {
26
26
27
27
return Object . keys ( fontSizes ) . map ( key => (
28
28
< div key = { key } >
29
- < Field
30
- // FIXME: Field type is comming from external package @types /theme-ui__components, not sure why type prop does not exist in type definition.
29
+ < Field < 'input' >
31
30
type = "number"
32
31
label = { key }
33
32
name = { 'fontSizes.' + key }
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ export default () => {
19
19
20
20
return Object . keys ( lineHeights ) . map ( key => (
21
21
< div key = { key } >
22
- < Field
23
- // FIXME: Field type is comming from external package @types /theme-ui__components, not sure why type prop does not exist in type definition.
22
+ < Field < 'input' >
24
23
type = "number"
25
24
label = { key }
26
25
name = { 'lineHeights.' + key }
Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ const Space = () => {
28
28
29
29
return Object . keys ( space ) . map ( key => (
30
30
< div key = { key } >
31
- < Field
32
- // FIXME: Field type is comming from external package @types /theme-ui__components, not sure why type prop does not exist in type definition.
31
+ < Field < 'input' >
33
32
type = "number"
34
33
label = { key }
35
34
name = { 'space.' + key }
You can’t perform that action at this time.
0 commit comments