File tree Expand file tree Collapse file tree 8 files changed +22
-11
lines changed Expand file tree Collapse file tree 8 files changed +22
-11
lines changed Original file line number Diff line number Diff line change
1
+ import type { ButtonProps } from '../Button/button'
2
+
1
3
export type BreadcrumbProps = {
2
4
items : {
3
5
icon ?: string
4
6
label ?: string
5
7
href ?: string
6
- target ?: '_self' | '_blank' | '_parent' | '_top' | '_unfencedTop'
8
+ target ?: ButtonProps [ 'target' ]
7
9
} [ ]
8
10
separator ?: string
9
11
className ?: string
Original file line number Diff line number Diff line change @@ -8,15 +8,16 @@ export type ButtonProps = {
8
8
| 'alert'
9
9
| null
10
10
href ?: string
11
+ target ?: '_self' | '_blank' | '_parent' | '_top' | '_unfencedTop' | undefined
11
12
className ?: string
12
13
[ key : string ] : any
13
14
}
14
15
15
16
export type SvelteButtonProps = {
16
- onClick ?: ( ( ) => any ) | null
17
+ onClick ?: ( ( event : MouseEvent ) => void ) | null
17
18
} & ButtonProps
18
19
19
20
export type ReactButtonProps = {
20
- onClick ?: ( ( ) => any ) | null
21
+ onClick ?: ( event : React . MouseEvent ) => void
21
22
children : React . ReactNode
22
23
} & ButtonProps
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ export type CheckboxProps = {
8
8
}
9
9
10
10
export type SvelteCheckboxProps = {
11
- onClick ?: ( key : any ) => any
11
+ onClick ?: ( ( event : MouseEvent ) => void ) | null
12
12
} & CheckboxProps
13
13
14
14
export type ReactCheckboxProps = {
15
- onClick ?: ( key : any ) => any
15
+ onClick ?: ( event : React . MouseEvent ) => void
16
16
} & CheckboxProps
Original file line number Diff line number Diff line change
1
+ import type { ButtonProps } from '../Button/button'
2
+
1
3
export type FooterProps = {
2
4
logo ?: {
3
5
url ?: string
@@ -12,7 +14,7 @@ export type FooterProps = {
12
14
items : {
13
15
href : string
14
16
name : string
15
- target ?: '_self' | '_blank' | '_parent' | '_top' | '_unfencedTop'
17
+ target ?: ButtonProps [ 'target' ]
16
18
active ?: boolean
17
19
} [ ]
18
20
} [ ]
Original file line number Diff line number Diff line change
1
+ import type { ButtonProps } from '../Button/button'
2
+
1
3
export type ListEventType = {
2
4
value : string
3
5
name : string
@@ -19,7 +21,7 @@ export type ListProps = {
19
21
name : string
20
22
value ?: string
21
23
href ?: string
22
- target ?: '_self' | '_blank' | '_parent' | '_top' | '_unfencedTop'
24
+ target ?: ButtonProps [ 'target' ]
23
25
selected ?: boolean
24
26
disabled ?: boolean
25
27
icon ?: string
Original file line number Diff line number Diff line change
1
+ import type { ButtonProps } from '../Button/button'
2
+
1
3
export type MenuProps = {
2
4
items ?: {
3
5
href : string
4
6
name : string
5
- target ?: string
7
+ target ?: ButtonProps [ 'target' ]
6
8
active ?: boolean
7
9
} [ ]
8
10
logo ?: {
Original file line number Diff line number Diff line change
1
+ import type { ButtonProps } from '../Button/button'
2
+
1
3
export type RatingProps = {
2
4
score : number
3
5
total ?: number
@@ -8,7 +10,7 @@ export type RatingProps = {
8
10
reviewCount ?: number
9
11
reviewText ?: string
10
12
reviewLink ?: string
11
- reviewTarget ?: string
13
+ reviewTarget ?: ButtonProps [ 'target' ]
12
14
color ?: string
13
15
emptyColor ?: string
14
16
size ?: number
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ export type SwitchProps = {
11
11
}
12
12
13
13
export type SvelteSwitchProps = {
14
- onClick ?: ( key : any ) => any
14
+ onClick ?: ( ( event : MouseEvent ) => void ) | null
15
15
} & SwitchProps
16
16
17
17
export type ReactSwitchProps = {
18
- onClick ?: ( key : any ) => any
18
+ onClick ?: ( event : React . MouseEvent ) => void
19
19
} & SwitchProps
You can’t perform that action at this time.
0 commit comments