@zag-js/tabs 1.18.3 → 1.18.5
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 +13 -13
- package/dist/index.d.ts +13 -13
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -158,41 +158,41 @@ interface TabsApi<T extends PropTypes = PropTypes> {
|
|
|
158
158
|
/**
|
|
159
159
|
* Sets the value of the tabs.
|
|
160
160
|
*/
|
|
161
|
-
setValue(value: string)
|
|
161
|
+
setValue: (value: string) => void;
|
|
162
162
|
/**
|
|
163
163
|
* Clears the value of the tabs.
|
|
164
164
|
*/
|
|
165
|
-
clearValue
|
|
165
|
+
clearValue: VoidFunction;
|
|
166
166
|
/**
|
|
167
167
|
* Sets the indicator rect to the tab with the given value
|
|
168
168
|
*/
|
|
169
|
-
setIndicatorRect(value: string)
|
|
169
|
+
setIndicatorRect: (value: string) => void;
|
|
170
170
|
/**
|
|
171
171
|
* Synchronizes the tab index of the content element.
|
|
172
172
|
* Useful when rendering tabs within a select or combobox
|
|
173
173
|
*/
|
|
174
|
-
syncTabIndex
|
|
174
|
+
syncTabIndex: VoidFunction;
|
|
175
175
|
/**
|
|
176
176
|
* Set focus on the selected tab trigger
|
|
177
177
|
*/
|
|
178
|
-
focus
|
|
178
|
+
focus: VoidFunction;
|
|
179
179
|
/**
|
|
180
180
|
* Selects the next tab
|
|
181
181
|
*/
|
|
182
|
-
selectNext(fromValue?: string)
|
|
182
|
+
selectNext: (fromValue?: string) => void;
|
|
183
183
|
/**
|
|
184
184
|
* Selects the previous tab
|
|
185
185
|
*/
|
|
186
|
-
selectPrev(fromValue?: string)
|
|
186
|
+
selectPrev: (fromValue?: string) => void;
|
|
187
187
|
/**
|
|
188
188
|
* Returns the state of the trigger with the given props
|
|
189
189
|
*/
|
|
190
|
-
getTriggerState(props: TriggerProps)
|
|
191
|
-
getRootProps()
|
|
192
|
-
getListProps()
|
|
193
|
-
getTriggerProps(props: TriggerProps)
|
|
194
|
-
getContentProps(props: ContentProps)
|
|
195
|
-
getIndicatorProps()
|
|
190
|
+
getTriggerState: (props: TriggerProps) => TriggerState;
|
|
191
|
+
getRootProps: () => T["element"];
|
|
192
|
+
getListProps: () => T["element"];
|
|
193
|
+
getTriggerProps: (props: TriggerProps) => T["button"];
|
|
194
|
+
getContentProps: (props: ContentProps) => T["element"];
|
|
195
|
+
getIndicatorProps: () => T["element"];
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
declare function connect<T extends PropTypes>(service: Service<TabsSchema>, normalize: NormalizeProps<T>): TabsApi<T>;
|
package/dist/index.d.ts
CHANGED
|
@@ -158,41 +158,41 @@ interface TabsApi<T extends PropTypes = PropTypes> {
|
|
|
158
158
|
/**
|
|
159
159
|
* Sets the value of the tabs.
|
|
160
160
|
*/
|
|
161
|
-
setValue(value: string)
|
|
161
|
+
setValue: (value: string) => void;
|
|
162
162
|
/**
|
|
163
163
|
* Clears the value of the tabs.
|
|
164
164
|
*/
|
|
165
|
-
clearValue
|
|
165
|
+
clearValue: VoidFunction;
|
|
166
166
|
/**
|
|
167
167
|
* Sets the indicator rect to the tab with the given value
|
|
168
168
|
*/
|
|
169
|
-
setIndicatorRect(value: string)
|
|
169
|
+
setIndicatorRect: (value: string) => void;
|
|
170
170
|
/**
|
|
171
171
|
* Synchronizes the tab index of the content element.
|
|
172
172
|
* Useful when rendering tabs within a select or combobox
|
|
173
173
|
*/
|
|
174
|
-
syncTabIndex
|
|
174
|
+
syncTabIndex: VoidFunction;
|
|
175
175
|
/**
|
|
176
176
|
* Set focus on the selected tab trigger
|
|
177
177
|
*/
|
|
178
|
-
focus
|
|
178
|
+
focus: VoidFunction;
|
|
179
179
|
/**
|
|
180
180
|
* Selects the next tab
|
|
181
181
|
*/
|
|
182
|
-
selectNext(fromValue?: string)
|
|
182
|
+
selectNext: (fromValue?: string) => void;
|
|
183
183
|
/**
|
|
184
184
|
* Selects the previous tab
|
|
185
185
|
*/
|
|
186
|
-
selectPrev(fromValue?: string)
|
|
186
|
+
selectPrev: (fromValue?: string) => void;
|
|
187
187
|
/**
|
|
188
188
|
* Returns the state of the trigger with the given props
|
|
189
189
|
*/
|
|
190
|
-
getTriggerState(props: TriggerProps)
|
|
191
|
-
getRootProps()
|
|
192
|
-
getListProps()
|
|
193
|
-
getTriggerProps(props: TriggerProps)
|
|
194
|
-
getContentProps(props: ContentProps)
|
|
195
|
-
getIndicatorProps()
|
|
190
|
+
getTriggerState: (props: TriggerProps) => TriggerState;
|
|
191
|
+
getRootProps: () => T["element"];
|
|
192
|
+
getListProps: () => T["element"];
|
|
193
|
+
getTriggerProps: (props: TriggerProps) => T["button"];
|
|
194
|
+
getContentProps: (props: ContentProps) => T["element"];
|
|
195
|
+
getIndicatorProps: () => T["element"];
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
declare function connect<T extends PropTypes>(service: Service<TabsSchema>, normalize: NormalizeProps<T>): TabsApi<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/tabs",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.5",
|
|
4
4
|
"description": "Core logic for the tabs widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@zag-js/anatomy": "1.18.
|
|
30
|
-
"@zag-js/dom-query": "1.18.
|
|
31
|
-
"@zag-js/utils": "1.18.
|
|
32
|
-
"@zag-js/core": "1.18.
|
|
33
|
-
"@zag-js/types": "1.18.
|
|
29
|
+
"@zag-js/anatomy": "1.18.5",
|
|
30
|
+
"@zag-js/dom-query": "1.18.5",
|
|
31
|
+
"@zag-js/utils": "1.18.5",
|
|
32
|
+
"@zag-js/core": "1.18.5",
|
|
33
|
+
"@zag-js/types": "1.18.5"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"clean-package": "2.2.0"
|