@zag-js/tabs 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 +9 -9
- package/dist/index.d.ts +9 -9
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ interface FocusChangeDetails {
|
|
|
12
12
|
focusedValue: string;
|
|
13
13
|
}
|
|
14
14
|
interface IntlTranslations {
|
|
15
|
-
listLabel?: string;
|
|
15
|
+
listLabel?: string | undefined;
|
|
16
16
|
}
|
|
17
17
|
type ElementIds = Partial<{
|
|
18
18
|
root: string;
|
|
@@ -25,11 +25,11 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
25
25
|
/**
|
|
26
26
|
* The ids of the elements in the tabs. Useful for composition.
|
|
27
27
|
*/
|
|
28
|
-
ids?: ElementIds;
|
|
28
|
+
ids?: ElementIds | undefined;
|
|
29
29
|
/**
|
|
30
30
|
* Specifies the localized strings that identifies the accessibility elements and their states
|
|
31
31
|
*/
|
|
32
|
-
translations?: IntlTranslations;
|
|
32
|
+
translations?: IntlTranslations | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* Whether the keyboard navigation will loop from last tab to first, and vice versa.
|
|
35
35
|
* @default true
|
|
@@ -46,7 +46,7 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
46
46
|
*
|
|
47
47
|
* @default "horizontal"
|
|
48
48
|
*/
|
|
49
|
-
orientation?: "horizontal" | "vertical";
|
|
49
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
50
50
|
/**
|
|
51
51
|
* The activation mode of the tabs. Can be `manual` or `automatic`
|
|
52
52
|
* - `manual`: Tabs are activated when clicked or press `enter` key.
|
|
@@ -54,15 +54,15 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
54
54
|
*
|
|
55
55
|
* @default "automatic"
|
|
56
56
|
*/
|
|
57
|
-
activationMode?: "manual" | "automatic";
|
|
57
|
+
activationMode?: "manual" | "automatic" | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* Callback to be called when the selected/active tab changes
|
|
60
60
|
*/
|
|
61
|
-
onValueChange?: (details: ValueChangeDetails) => void;
|
|
61
|
+
onValueChange?: ((details: ValueChangeDetails) => void) | undefined;
|
|
62
62
|
/**
|
|
63
63
|
* Callback to be called when the focused tab changes
|
|
64
64
|
*/
|
|
65
|
-
onFocusChange?: (details: FocusChangeDetails) => void;
|
|
65
|
+
onFocusChange?: ((details: FocusChangeDetails) => void) | undefined;
|
|
66
66
|
/**
|
|
67
67
|
* Whether the tab is composite
|
|
68
68
|
*/
|
|
@@ -70,7 +70,7 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
70
70
|
/**
|
|
71
71
|
* Whether the active tab can be deselected when clicking on it.
|
|
72
72
|
*/
|
|
73
|
-
deselectable?: boolean;
|
|
73
|
+
deselectable?: boolean | undefined;
|
|
74
74
|
}
|
|
75
75
|
type UserDefinedContext = RequiredBy<PublicContext, "id">;
|
|
76
76
|
type ComputedContext = Readonly<{}>;
|
|
@@ -92,7 +92,7 @@ interface TriggerProps {
|
|
|
92
92
|
/**
|
|
93
93
|
* Whether the tab is disabled
|
|
94
94
|
*/
|
|
95
|
-
disabled?: boolean;
|
|
95
|
+
disabled?: boolean | undefined;
|
|
96
96
|
}
|
|
97
97
|
interface TriggerState {
|
|
98
98
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ interface FocusChangeDetails {
|
|
|
12
12
|
focusedValue: string;
|
|
13
13
|
}
|
|
14
14
|
interface IntlTranslations {
|
|
15
|
-
listLabel?: string;
|
|
15
|
+
listLabel?: string | undefined;
|
|
16
16
|
}
|
|
17
17
|
type ElementIds = Partial<{
|
|
18
18
|
root: string;
|
|
@@ -25,11 +25,11 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
25
25
|
/**
|
|
26
26
|
* The ids of the elements in the tabs. Useful for composition.
|
|
27
27
|
*/
|
|
28
|
-
ids?: ElementIds;
|
|
28
|
+
ids?: ElementIds | undefined;
|
|
29
29
|
/**
|
|
30
30
|
* Specifies the localized strings that identifies the accessibility elements and their states
|
|
31
31
|
*/
|
|
32
|
-
translations?: IntlTranslations;
|
|
32
|
+
translations?: IntlTranslations | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* Whether the keyboard navigation will loop from last tab to first, and vice versa.
|
|
35
35
|
* @default true
|
|
@@ -46,7 +46,7 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
46
46
|
*
|
|
47
47
|
* @default "horizontal"
|
|
48
48
|
*/
|
|
49
|
-
orientation?: "horizontal" | "vertical";
|
|
49
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
50
50
|
/**
|
|
51
51
|
* The activation mode of the tabs. Can be `manual` or `automatic`
|
|
52
52
|
* - `manual`: Tabs are activated when clicked or press `enter` key.
|
|
@@ -54,15 +54,15 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
54
54
|
*
|
|
55
55
|
* @default "automatic"
|
|
56
56
|
*/
|
|
57
|
-
activationMode?: "manual" | "automatic";
|
|
57
|
+
activationMode?: "manual" | "automatic" | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* Callback to be called when the selected/active tab changes
|
|
60
60
|
*/
|
|
61
|
-
onValueChange?: (details: ValueChangeDetails) => void;
|
|
61
|
+
onValueChange?: ((details: ValueChangeDetails) => void) | undefined;
|
|
62
62
|
/**
|
|
63
63
|
* Callback to be called when the focused tab changes
|
|
64
64
|
*/
|
|
65
|
-
onFocusChange?: (details: FocusChangeDetails) => void;
|
|
65
|
+
onFocusChange?: ((details: FocusChangeDetails) => void) | undefined;
|
|
66
66
|
/**
|
|
67
67
|
* Whether the tab is composite
|
|
68
68
|
*/
|
|
@@ -70,7 +70,7 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
70
70
|
/**
|
|
71
71
|
* Whether the active tab can be deselected when clicking on it.
|
|
72
72
|
*/
|
|
73
|
-
deselectable?: boolean;
|
|
73
|
+
deselectable?: boolean | undefined;
|
|
74
74
|
}
|
|
75
75
|
type UserDefinedContext = RequiredBy<PublicContext, "id">;
|
|
76
76
|
type ComputedContext = Readonly<{}>;
|
|
@@ -92,7 +92,7 @@ interface TriggerProps {
|
|
|
92
92
|
/**
|
|
93
93
|
* Whether the tab is disabled
|
|
94
94
|
*/
|
|
95
|
-
disabled?: boolean;
|
|
95
|
+
disabled?: boolean | undefined;
|
|
96
96
|
}
|
|
97
97
|
interface TriggerState {
|
|
98
98
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/tabs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.76.0",
|
|
4
4
|
"description": "Core logic for the tabs widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@zag-js/anatomy": "0.
|
|
30
|
-
"@zag-js/dom-query": "0.
|
|
31
|
-
"@zag-js/dom-event": "0.
|
|
32
|
-
"@zag-js/element-rect": "0.
|
|
33
|
-
"@zag-js/utils": "0.
|
|
34
|
-
"@zag-js/core": "0.
|
|
35
|
-
"@zag-js/types": "0.
|
|
29
|
+
"@zag-js/anatomy": "0.76.0",
|
|
30
|
+
"@zag-js/dom-query": "0.76.0",
|
|
31
|
+
"@zag-js/dom-event": "0.76.0",
|
|
32
|
+
"@zag-js/element-rect": "0.76.0",
|
|
33
|
+
"@zag-js/utils": "0.76.0",
|
|
34
|
+
"@zag-js/core": "0.76.0",
|
|
35
|
+
"@zag-js/types": "0.76.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"clean-package": "2.2.0"
|