@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 CHANGED
@@ -12,10 +12,10 @@ type ElementIds = Partial<{
12
12
  root: string;
13
13
  label: string;
14
14
  indicator: string;
15
- item(value: string): string;
16
- itemLabel(value: string): string;
17
- itemControl(value: string): string;
18
- itemHiddenInput(value: string): 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): void;
173
+ setValue: (value: string) => void;
174
174
  /**
175
175
  * Function to clear the value of the radio group
176
176
  */
177
- clearValue(): void;
177
+ clearValue: VoidFunction;
178
178
  /**
179
179
  * Function to focus the radio group
180
180
  */
181
- focus(): void;
181
+ focus: VoidFunction;
182
182
  /**
183
183
  * Returns the state details of a radio input
184
184
  */
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"];
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): string;
16
- itemLabel(value: string): string;
17
- itemControl(value: string): string;
18
- itemHiddenInput(value: string): 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): void;
173
+ setValue: (value: string) => void;
174
174
  /**
175
175
  * Function to clear the value of the radio group
176
176
  */
177
- clearValue(): void;
177
+ clearValue: VoidFunction;
178
178
  /**
179
179
  * Function to focus the radio group
180
180
  */
181
- focus(): void;
181
+ focus: VoidFunction;
182
182
  /**
183
183
  * Returns the state details of a radio input
184
184
  */
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"];
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.4",
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.4",
31
- "@zag-js/dom-query": "1.18.4",
32
- "@zag-js/focus-visible": "1.18.4",
33
- "@zag-js/utils": "1.18.4",
34
- "@zag-js/core": "1.18.4",
35
- "@zag-js/types": "1.18.4"
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"