File tree Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 29
29
- name : Install Dependencies
30
30
run : |
31
31
npm install
32
- - name : Run lint
32
+ - name : Run build
33
33
run : |
34
34
npm run build
35
35
- name : Upload build artifacts
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import React, {
6
6
useRef ,
7
7
useState ,
8
8
} from 'react'
9
- import { styled } from '../../stitches.config'
9
+ import { CSSProps , styled } from '../../stitches.config'
10
10
import { Text } from '../Text'
11
11
import {
12
12
DEFAULT_FORM_STATE ,
@@ -21,11 +21,11 @@ const Root = styled(DEFAULT_TAG, {
21
21
boxSizing : 'border-box' ,
22
22
outline : 'none' ,
23
23
24
- display : 'inline- flex' ,
24
+ display : 'flex' ,
25
25
flexDirection : 'column' ,
26
26
} )
27
27
28
- type FormControlProps = {
28
+ type FormControlProps = CSSProps & {
29
29
children : React . ReactNode
30
30
}
31
31
Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ const StyledInput = styled(
18
18
19
19
type InputVariants = Omit < VariantProps < typeof StyledInput > , 'state' >
20
20
21
- type InputProps = ComponentProps < typeof StyledInput > &
21
+ // Required due to ts error forcing the enterKeyHint props. Likely can be removed in later version.
22
+ type StyledInputProps = Omit < ComponentProps < typeof StyledInput > , 'enterKeyHint' >
23
+
24
+ type InputProps = StyledInputProps &
22
25
UseFormControlProps &
23
26
InputVariants & {
24
27
/** Add a label to the Input */
@@ -27,6 +30,16 @@ type InputProps = ComponentProps<typeof StyledInput> &
27
30
required ?: boolean
28
31
/** Called on input change with new value */
29
32
onValueChange ?: ( value : string ) => void
33
+ /* Added directly to correct ts error */
34
+ enterKeyHint ?:
35
+ | 'enter'
36
+ | 'done'
37
+ | 'go'
38
+ | 'next'
39
+ | 'previous'
40
+ | 'search'
41
+ | 'send'
42
+ | undefined
30
43
} & CSSProps
31
44
32
45
export const Input = forwardRef < ElementRef < typeof DEFAULT_TAG > , InputProps > (
You can’t perform that action at this time.
0 commit comments