This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +10
-194
lines changed Expand file tree Collapse file tree 7 files changed +10
-194
lines changed Original file line number Diff line number Diff line change 29
29
},
30
30
"dependencies" : {
31
31
"@chakra-ui/utils" : " ^1.9.1" ,
32
+ "@chakra-ui/vue-composables" : " 0.1.0-alpha.7" ,
32
33
"@chakra-ui/vue-system" : " 0.1.0-alpha.8" ,
33
34
"@chakra-ui/vue-utils" : " 0.1.0-alpha.8" ,
34
35
"focus-trap" : " ^6.3.0"
Original file line number Diff line number Diff line change @@ -33,9 +33,6 @@ import {
33
33
warn ,
34
34
__DEV__ ,
35
35
} from "@chakra-ui/utils"
36
- import { useFocusLock } from "./use-focus-lock"
37
- import type { UseFocusLockOptions } from "./use-focus-lock"
38
- import type { FocusTarget } from "focus-trap"
39
36
import { useFocusTrap , useReturnFocusSelector } from "./use-focus-trap"
40
37
import {
41
38
MaybeElementRef ,
@@ -48,7 +45,7 @@ type RefProp =
48
45
| ( ( ) => HTMLElement | string | object | undefined | unknown )
49
46
| string
50
47
51
- export interface FocusLockProps extends UseFocusLockOptions {
48
+ export interface FocusLockProps {
52
49
/**
53
50
* Element to which to send focus when focus trap has been deacivated
54
51
*/
@@ -79,15 +76,15 @@ export const CFocusLock = defineComponent({
79
76
default : true ,
80
77
} ,
81
78
escapeDeactivates : {
82
- type : Boolean as PropType < FocusLockProps [ "escapeDeactivates" ] > ,
79
+ type : Boolean as PropType < boolean > ,
83
80
default : false ,
84
81
} ,
85
82
clickOutsideDeactivates : {
86
- type : Boolean as PropType < FocusLockProps [ "clickOutsideDeactivates" ] > ,
83
+ type : Boolean as PropType < boolean > ,
87
84
default : false ,
88
85
} ,
89
86
allowOutsideClick : {
90
- type : Boolean as PropType < FocusLockProps [ "allowOutsideClick" ] > ,
87
+ type : Boolean as PropType < boolean > ,
91
88
default : false ,
92
89
} ,
93
90
restoreFocus : {
Original file line number Diff line number Diff line change 1
1
export * from "./c-focus-lock"
2
- export * from "./use-focus-lock"
3
2
export * from "./use-focus-trap"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import {
15
15
import { useIds } from "@chakra-ui/vue-composables"
16
16
import {
17
17
FocusLockProps ,
18
- useFocusLock ,
19
18
useReturnFocusSelector ,
20
19
useFocusTrap ,
21
20
} from "@chakra-ui/c-focus-lock"
Original file line number Diff line number Diff line change 28
28
"clean" : " rimraf dist"
29
29
},
30
30
"dependencies" : {
31
- "@chakra-ui/utils" : " ^1.9.1"
31
+ "@chakra-ui/utils" : " ^1.9.1" ,
32
+ "@chakra-ui/vue-composables" : " 0.1.0-alpha.7"
32
33
},
33
34
"devDependencies" : {
34
35
"vue" : " ^3.2.29"
Original file line number Diff line number Diff line change 34
34
},
35
35
"devDependencies" : {
36
36
"vue" : " ^3.2.29"
37
+ },
38
+ "peerDependencies" : {
39
+ "vue" : " ^3.2.29"
37
40
}
38
41
}
You can’t perform that action at this time.
0 commit comments