Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 8223433

Browse files
committed
chore: fix dependencies
1 parent bcdaa8c commit 8223433

File tree

7 files changed

+10
-194
lines changed

7 files changed

+10
-194
lines changed

packages/c-focus-lock/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
},
3030
"dependencies": {
3131
"@chakra-ui/utils": "^1.9.1",
32+
"@chakra-ui/vue-composables": "0.1.0-alpha.7",
3233
"@chakra-ui/vue-system": "0.1.0-alpha.8",
3334
"@chakra-ui/vue-utils": "0.1.0-alpha.8",
3435
"focus-trap": "^6.3.0"

packages/c-focus-lock/src/c-focus-lock.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ import {
3333
warn,
3434
__DEV__,
3535
} 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"
3936
import { useFocusTrap, useReturnFocusSelector } from "./use-focus-trap"
4037
import {
4138
MaybeElementRef,
@@ -48,7 +45,7 @@ type RefProp =
4845
| (() => HTMLElement | string | object | undefined | unknown)
4946
| string
5047

51-
export interface FocusLockProps extends UseFocusLockOptions {
48+
export interface FocusLockProps {
5249
/**
5350
* Element to which to send focus when focus trap has been deacivated
5451
*/
@@ -79,15 +76,15 @@ export const CFocusLock = defineComponent({
7976
default: true,
8077
},
8178
escapeDeactivates: {
82-
type: Boolean as PropType<FocusLockProps["escapeDeactivates"]>,
79+
type: Boolean as PropType<boolean>,
8380
default: false,
8481
},
8582
clickOutsideDeactivates: {
86-
type: Boolean as PropType<FocusLockProps["clickOutsideDeactivates"]>,
83+
type: Boolean as PropType<boolean>,
8784
default: false,
8885
},
8986
allowOutsideClick: {
90-
type: Boolean as PropType<FocusLockProps["allowOutsideClick"]>,
87+
type: Boolean as PropType<boolean>,
9188
default: false,
9289
},
9390
restoreFocus: {

packages/c-focus-lock/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export * from "./c-focus-lock"
2-
export * from "./use-focus-lock"
32
export * from "./use-focus-trap"

packages/c-focus-lock/src/use-focus-lock.ts

Lines changed: 0 additions & 184 deletions
This file was deleted.

packages/c-modal/src/use-modal.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
import { useIds } from "@chakra-ui/vue-composables"
1616
import {
1717
FocusLockProps,
18-
useFocusLock,
1918
useReturnFocusSelector,
2019
useFocusTrap,
2120
} from "@chakra-ui/c-focus-lock"

packages/c-portal/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"clean": "rimraf dist"
2929
},
3030
"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"
3233
},
3334
"devDependencies": {
3435
"vue": "^3.2.29"

packages/vue-a11y/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,8 @@
3434
},
3535
"devDependencies": {
3636
"vue": "^3.2.29"
37+
},
38+
"peerDependencies": {
39+
"vue": "^3.2.29"
3740
}
3841
}

0 commit comments

Comments
 (0)