@zag-js/radio-group 1.0.0 → 1.0.2

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
@@ -1,7 +1,7 @@
1
1
  import * as _zag_js_anatomy from '@zag-js/anatomy';
2
2
  import { DirectionProperty, CommonProperties, PropTypes, RequiredBy, NormalizeProps } from '@zag-js/types';
3
3
  import * as _zag_js_core from '@zag-js/core';
4
- import { Service, EventObject } from '@zag-js/core';
4
+ import { Service, Machine, EventObject } from '@zag-js/core';
5
5
 
6
6
  declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "label" | "item" | "itemText" | "itemControl" | "indicator">;
7
7
 
@@ -126,6 +126,7 @@ interface RadioGroupSchema {
126
126
  guard: string;
127
127
  }
128
128
  type RadioGroupService = Service<RadioGroupSchema>;
129
+ type RadioGroupMachine = Machine<RadioGroupSchema>;
129
130
  interface ItemProps {
130
131
  value: string;
131
132
  disabled?: boolean | undefined;
@@ -189,11 +190,11 @@ interface RadioGroupApi<T extends PropTypes = PropTypes> {
189
190
 
190
191
  declare function connect<T extends PropTypes>(service: RadioGroupService, normalize: NormalizeProps<T>): RadioGroupApi<T>;
191
192
 
192
- declare const machine: _zag_js_core.MachineConfig<RadioGroupSchema>;
193
+ declare const machine: _zag_js_core.Machine<RadioGroupSchema>;
193
194
 
194
195
  declare const props: (keyof RadioGroupProps)[];
195
196
  declare const splitProps: <Props extends Partial<RadioGroupProps>>(props: Props) => [Partial<RadioGroupProps>, Omit<Props, keyof RadioGroupProps>];
196
197
  declare const itemProps: (keyof ItemProps)[];
197
198
  declare const splitItemProps: <Props extends ItemProps>(props: Props) => [ItemProps, Omit<Props, keyof ItemProps>];
198
199
 
199
- export { type RadioGroupApi as Api, type ElementIds, type ItemProps, type ItemState, type RadioGroupProps as Props, type RadioGroupService as Service, type ValueChangeDetails, anatomy, connect, itemProps, machine, props, splitItemProps, splitProps };
200
+ export { type RadioGroupApi as Api, type ElementIds, type ItemProps, type ItemState, type RadioGroupMachine as Machine, type RadioGroupProps as Props, type RadioGroupService as Service, type ValueChangeDetails, anatomy, connect, itemProps, machine, props, splitItemProps, splitProps };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _zag_js_anatomy from '@zag-js/anatomy';
2
2
  import { DirectionProperty, CommonProperties, PropTypes, RequiredBy, NormalizeProps } from '@zag-js/types';
3
3
  import * as _zag_js_core from '@zag-js/core';
4
- import { Service, EventObject } from '@zag-js/core';
4
+ import { Service, Machine, EventObject } from '@zag-js/core';
5
5
 
6
6
  declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "label" | "item" | "itemText" | "itemControl" | "indicator">;
7
7
 
@@ -126,6 +126,7 @@ interface RadioGroupSchema {
126
126
  guard: string;
127
127
  }
128
128
  type RadioGroupService = Service<RadioGroupSchema>;
129
+ type RadioGroupMachine = Machine<RadioGroupSchema>;
129
130
  interface ItemProps {
130
131
  value: string;
131
132
  disabled?: boolean | undefined;
@@ -189,11 +190,11 @@ interface RadioGroupApi<T extends PropTypes = PropTypes> {
189
190
 
190
191
  declare function connect<T extends PropTypes>(service: RadioGroupService, normalize: NormalizeProps<T>): RadioGroupApi<T>;
191
192
 
192
- declare const machine: _zag_js_core.MachineConfig<RadioGroupSchema>;
193
+ declare const machine: _zag_js_core.Machine<RadioGroupSchema>;
193
194
 
194
195
  declare const props: (keyof RadioGroupProps)[];
195
196
  declare const splitProps: <Props extends Partial<RadioGroupProps>>(props: Props) => [Partial<RadioGroupProps>, Omit<Props, keyof RadioGroupProps>];
196
197
  declare const itemProps: (keyof ItemProps)[];
197
198
  declare const splitItemProps: <Props extends ItemProps>(props: Props) => [ItemProps, Omit<Props, keyof ItemProps>];
198
199
 
199
- export { type RadioGroupApi as Api, type ElementIds, type ItemProps, type ItemState, type RadioGroupProps as Props, type RadioGroupService as Service, type ValueChangeDetails, anatomy, connect, itemProps, machine, props, splitItemProps, splitProps };
200
+ export { type RadioGroupApi as Api, type ElementIds, type ItemProps, type ItemState, type RadioGroupMachine as Machine, type RadioGroupProps as Props, type RadioGroupService as Service, type ValueChangeDetails, anatomy, connect, itemProps, machine, props, splitItemProps, splitProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/radio-group",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Core logic for the radio group widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -27,13 +27,13 @@
27
27
  "url": "https://github.com/chakra-ui/zag/issues"
28
28
  },
29
29
  "dependencies": {
30
- "@zag-js/anatomy": "1.0.0",
31
- "@zag-js/dom-query": "1.0.0",
32
- "@zag-js/element-rect": "1.0.0",
33
- "@zag-js/utils": "1.0.0",
34
- "@zag-js/focus-visible": "1.0.0",
35
- "@zag-js/core": "1.0.0",
36
- "@zag-js/types": "1.0.0"
30
+ "@zag-js/anatomy": "1.0.2",
31
+ "@zag-js/dom-query": "1.0.2",
32
+ "@zag-js/element-rect": "1.0.2",
33
+ "@zag-js/focus-visible": "1.0.2",
34
+ "@zag-js/utils": "1.0.2",
35
+ "@zag-js/core": "1.0.2",
36
+ "@zag-js/types": "1.0.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "clean-package": "2.2.0"