@zag-js/focus-visible 0.74.2 → 0.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ interface InteractionModalityChangeDetails {
|
|
|
12
12
|
}
|
|
13
13
|
interface InteractionModalityProps {
|
|
14
14
|
/** The root element to track focus visibility for. */
|
|
15
|
-
root?: RootNode;
|
|
15
|
+
root?: RootNode | undefined;
|
|
16
16
|
/** Callback to be called when the interaction modality changes. */
|
|
17
17
|
onChange: (details: InteractionModalityChangeDetails) => void;
|
|
18
18
|
}
|
|
@@ -26,13 +26,13 @@ interface FocusVisibleChangeDetails {
|
|
|
26
26
|
}
|
|
27
27
|
interface FocusVisibleProps {
|
|
28
28
|
/** The root element to track focus visibility for. */
|
|
29
|
-
root?: RootNode;
|
|
29
|
+
root?: RootNode | undefined;
|
|
30
30
|
/** Whether the element is a text input. */
|
|
31
|
-
isTextInput?: boolean;
|
|
31
|
+
isTextInput?: boolean | undefined;
|
|
32
32
|
/** Whether the element will be auto focused. */
|
|
33
|
-
autoFocus?: boolean;
|
|
33
|
+
autoFocus?: boolean | undefined;
|
|
34
34
|
/** Callback to be called when the focus visibility changes. */
|
|
35
|
-
onChange?: (details: FocusVisibleChangeDetails) => void;
|
|
35
|
+
onChange?: ((details: FocusVisibleChangeDetails) => void) | undefined;
|
|
36
36
|
}
|
|
37
37
|
declare function trackFocusVisible(props?: FocusVisibleProps): VoidFunction;
|
|
38
38
|
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ interface InteractionModalityChangeDetails {
|
|
|
12
12
|
}
|
|
13
13
|
interface InteractionModalityProps {
|
|
14
14
|
/** The root element to track focus visibility for. */
|
|
15
|
-
root?: RootNode;
|
|
15
|
+
root?: RootNode | undefined;
|
|
16
16
|
/** Callback to be called when the interaction modality changes. */
|
|
17
17
|
onChange: (details: InteractionModalityChangeDetails) => void;
|
|
18
18
|
}
|
|
@@ -26,13 +26,13 @@ interface FocusVisibleChangeDetails {
|
|
|
26
26
|
}
|
|
27
27
|
interface FocusVisibleProps {
|
|
28
28
|
/** The root element to track focus visibility for. */
|
|
29
|
-
root?: RootNode;
|
|
29
|
+
root?: RootNode | undefined;
|
|
30
30
|
/** Whether the element is a text input. */
|
|
31
|
-
isTextInput?: boolean;
|
|
31
|
+
isTextInput?: boolean | undefined;
|
|
32
32
|
/** Whether the element will be auto focused. */
|
|
33
|
-
autoFocus?: boolean;
|
|
33
|
+
autoFocus?: boolean | undefined;
|
|
34
34
|
/** Callback to be called when the focus visibility changes. */
|
|
35
|
-
onChange?: (details: FocusVisibleChangeDetails) => void;
|
|
35
|
+
onChange?: ((details: FocusVisibleChangeDetails) => void) | undefined;
|
|
36
36
|
}
|
|
37
37
|
declare function trackFocusVisible(props?: FocusVisibleProps): VoidFunction;
|
|
38
38
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/focus-visible",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.76.0",
|
|
4
4
|
"description": "Focus visible polyfill utility based on WICG",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"clean-package": "../../../clean-package.config.json",
|
|
26
26
|
"main": "dist/index.js",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@zag-js/dom-query": "0.
|
|
28
|
+
"@zag-js/dom-query": "0.76.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"clean-package": "2.2.0"
|