@zag-js/radio-group 1.43.2 → 1.43.3

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.
@@ -1,18 +1,18 @@
1
1
  import { Machine, EventObject, Service } from '@zag-js/core';
2
- import { PropTypes, Partial, RequiredBy, DirectionProperty, CommonProperties, Rect } from '@zag-js/types';
2
+ import { PropTypes, RequiredBy, DirectionProperty, CommonProperties, Rect } from '@zag-js/types';
3
3
 
4
4
  interface ValueChangeDetails {
5
5
  value: string | null;
6
6
  }
7
- type ElementIds = Partial<{
8
- root: string;
9
- label: string;
10
- indicator: string;
11
- item: (value: string) => string;
12
- itemLabel: (value: string) => string;
13
- itemControl: (value: string) => string;
14
- itemHiddenInput: (value: string) => string;
15
- }>;
7
+ interface ElementIds {
8
+ root?: string | undefined;
9
+ label?: string | undefined;
10
+ indicator?: string | undefined;
11
+ item?: ((value: string) => string) | undefined;
12
+ itemLabel?: ((value: string) => string) | undefined;
13
+ itemControl?: ((value: string) => string) | undefined;
14
+ itemHiddenInput?: ((value: string) => string) | undefined;
15
+ }
16
16
  interface RadioGroupProps extends DirectionProperty, CommonProperties {
17
17
  /**
18
18
  * The ids of the elements in the radio. Useful for composition.
@@ -1,18 +1,18 @@
1
1
  import { Machine, EventObject, Service } from '@zag-js/core';
2
- import { PropTypes, Partial, RequiredBy, DirectionProperty, CommonProperties, Rect } from '@zag-js/types';
2
+ import { PropTypes, RequiredBy, DirectionProperty, CommonProperties, Rect } from '@zag-js/types';
3
3
 
4
4
  interface ValueChangeDetails {
5
5
  value: string | null;
6
6
  }
7
- type ElementIds = Partial<{
8
- root: string;
9
- label: string;
10
- indicator: string;
11
- item: (value: string) => string;
12
- itemLabel: (value: string) => string;
13
- itemControl: (value: string) => string;
14
- itemHiddenInput: (value: string) => string;
15
- }>;
7
+ interface ElementIds {
8
+ root?: string | undefined;
9
+ label?: string | undefined;
10
+ indicator?: string | undefined;
11
+ item?: ((value: string) => string) | undefined;
12
+ itemLabel?: ((value: string) => string) | undefined;
13
+ itemControl?: ((value: string) => string) | undefined;
14
+ itemHiddenInput?: ((value: string) => string) | undefined;
15
+ }
16
16
  interface RadioGroupProps extends DirectionProperty, CommonProperties {
17
17
  /**
18
18
  * The ids of the elements in the radio. Useful for composition.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/radio-group",
3
- "version": "1.43.2",
3
+ "version": "1.43.3",
4
4
  "description": "Core logic for the radio group widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -30,12 +30,12 @@
30
30
  "url": "https://github.com/chakra-ui/zag/issues"
31
31
  },
32
32
  "dependencies": {
33
- "@zag-js/anatomy": "1.43.2",
34
- "@zag-js/dom-query": "1.43.2",
35
- "@zag-js/focus-visible": "1.43.2",
36
- "@zag-js/utils": "1.43.2",
37
- "@zag-js/core": "1.43.2",
38
- "@zag-js/types": "1.43.2"
33
+ "@zag-js/anatomy": "1.43.3",
34
+ "@zag-js/dom-query": "1.43.3",
35
+ "@zag-js/focus-visible": "1.43.3",
36
+ "@zag-js/utils": "1.43.3",
37
+ "@zag-js/core": "1.43.3",
38
+ "@zag-js/types": "1.43.3"
39
39
  },
40
40
  "devDependencies": {
41
41
  "clean-package": "2.2.0"