@zag-js/radio-group 1.18.4 → 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 +15 -15
- package/dist/index.d.ts +15 -15
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -12,10 +12,10 @@ type ElementIds = Partial<{
|
|
|
12
12
|
root: string;
|
|
13
13
|
label: string;
|
|
14
14
|
indicator: string;
|
|
15
|
-
item(value: string)
|
|
16
|
-
itemLabel(value: string)
|
|
17
|
-
itemControl(value: string)
|
|
18
|
-
itemHiddenInput(value: string)
|
|
15
|
+
item: (value: string) => string;
|
|
16
|
+
itemLabel: (value: string) => string;
|
|
17
|
+
itemControl: (value: string) => string;
|
|
18
|
+
itemHiddenInput: (value: string) => string;
|
|
19
19
|
}>;
|
|
20
20
|
interface RadioGroupProps extends DirectionProperty, CommonProperties {
|
|
21
21
|
/**
|
|
@@ -170,26 +170,26 @@ interface RadioGroupApi<T extends PropTypes = PropTypes> {
|
|
|
170
170
|
/**
|
|
171
171
|
* Function to set the value of the radio group
|
|
172
172
|
*/
|
|
173
|
-
setValue(value: string)
|
|
173
|
+
setValue: (value: string) => void;
|
|
174
174
|
/**
|
|
175
175
|
* Function to clear the value of the radio group
|
|
176
176
|
*/
|
|
177
|
-
clearValue
|
|
177
|
+
clearValue: VoidFunction;
|
|
178
178
|
/**
|
|
179
179
|
* Function to focus the radio group
|
|
180
180
|
*/
|
|
181
|
-
focus
|
|
181
|
+
focus: VoidFunction;
|
|
182
182
|
/**
|
|
183
183
|
* Returns the state details of a radio input
|
|
184
184
|
*/
|
|
185
|
-
getItemState(props: ItemProps)
|
|
186
|
-
getRootProps()
|
|
187
|
-
getLabelProps()
|
|
188
|
-
getItemProps(props: ItemProps)
|
|
189
|
-
getItemTextProps(props: ItemProps)
|
|
190
|
-
getItemControlProps(props: ItemProps)
|
|
191
|
-
getItemHiddenInputProps(props: ItemProps)
|
|
192
|
-
getIndicatorProps()
|
|
185
|
+
getItemState: (props: ItemProps) => ItemState;
|
|
186
|
+
getRootProps: () => T["element"];
|
|
187
|
+
getLabelProps: () => T["element"];
|
|
188
|
+
getItemProps: (props: ItemProps) => T["label"];
|
|
189
|
+
getItemTextProps: (props: ItemProps) => T["element"];
|
|
190
|
+
getItemControlProps: (props: ItemProps) => T["element"];
|
|
191
|
+
getItemHiddenInputProps: (props: ItemProps) => T["input"];
|
|
192
|
+
getIndicatorProps: () => T["element"];
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
declare function connect<T extends PropTypes>(service: RadioGroupService, normalize: NormalizeProps<T>): RadioGroupApi<T>;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,10 +12,10 @@ type ElementIds = Partial<{
|
|
|
12
12
|
root: string;
|
|
13
13
|
label: string;
|
|
14
14
|
indicator: string;
|
|
15
|
-
item(value: string)
|
|
16
|
-
itemLabel(value: string)
|
|
17
|
-
itemControl(value: string)
|
|
18
|
-
itemHiddenInput(value: string)
|
|
15
|
+
item: (value: string) => string;
|
|
16
|
+
itemLabel: (value: string) => string;
|
|
17
|
+
itemControl: (value: string) => string;
|
|
18
|
+
itemHiddenInput: (value: string) => string;
|
|
19
19
|
}>;
|
|
20
20
|
interface RadioGroupProps extends DirectionProperty, CommonProperties {
|
|
21
21
|
/**
|
|
@@ -170,26 +170,26 @@ interface RadioGroupApi<T extends PropTypes = PropTypes> {
|
|
|
170
170
|
/**
|
|
171
171
|
* Function to set the value of the radio group
|
|
172
172
|
*/
|
|
173
|
-
setValue(value: string)
|
|
173
|
+
setValue: (value: string) => void;
|
|
174
174
|
/**
|
|
175
175
|
* Function to clear the value of the radio group
|
|
176
176
|
*/
|
|
177
|
-
clearValue
|
|
177
|
+
clearValue: VoidFunction;
|
|
178
178
|
/**
|
|
179
179
|
* Function to focus the radio group
|
|
180
180
|
*/
|
|
181
|
-
focus
|
|
181
|
+
focus: VoidFunction;
|
|
182
182
|
/**
|
|
183
183
|
* Returns the state details of a radio input
|
|
184
184
|
*/
|
|
185
|
-
getItemState(props: ItemProps)
|
|
186
|
-
getRootProps()
|
|
187
|
-
getLabelProps()
|
|
188
|
-
getItemProps(props: ItemProps)
|
|
189
|
-
getItemTextProps(props: ItemProps)
|
|
190
|
-
getItemControlProps(props: ItemProps)
|
|
191
|
-
getItemHiddenInputProps(props: ItemProps)
|
|
192
|
-
getIndicatorProps()
|
|
185
|
+
getItemState: (props: ItemProps) => ItemState;
|
|
186
|
+
getRootProps: () => T["element"];
|
|
187
|
+
getLabelProps: () => T["element"];
|
|
188
|
+
getItemProps: (props: ItemProps) => T["label"];
|
|
189
|
+
getItemTextProps: (props: ItemProps) => T["element"];
|
|
190
|
+
getItemControlProps: (props: ItemProps) => T["element"];
|
|
191
|
+
getItemHiddenInputProps: (props: ItemProps) => T["input"];
|
|
192
|
+
getIndicatorProps: () => T["element"];
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
declare function connect<T extends PropTypes>(service: RadioGroupService, normalize: NormalizeProps<T>): RadioGroupApi<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/radio-group",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.5",
|
|
4
4
|
"description": "Core logic for the radio group widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@zag-js/anatomy": "1.18.
|
|
31
|
-
"@zag-js/dom-query": "1.18.
|
|
32
|
-
"@zag-js/focus-visible": "1.18.
|
|
33
|
-
"@zag-js/utils": "1.18.
|
|
34
|
-
"@zag-js/core": "1.18.
|
|
35
|
-
"@zag-js/types": "1.18.
|
|
30
|
+
"@zag-js/anatomy": "1.18.5",
|
|
31
|
+
"@zag-js/dom-query": "1.18.5",
|
|
32
|
+
"@zag-js/focus-visible": "1.18.5",
|
|
33
|
+
"@zag-js/utils": "1.18.5",
|
|
34
|
+
"@zag-js/core": "1.18.5",
|
|
35
|
+
"@zag-js/types": "1.18.5"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"clean-package": "2.2.0"
|