@ark-ui/react 0.13.0 → 0.14.0

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.
Files changed (179) hide show
  1. package/CHANGELOG.md +26 -2
  2. package/accordion/accordion-context.d.ts +2 -9
  3. package/accordion/accordion.cjs +3 -2
  4. package/accordion/accordion.d.ts +2 -2
  5. package/accordion/accordion.mjs +3 -2
  6. package/accordion/index.cjs +1 -0
  7. package/accordion/index.d.ts +4 -4
  8. package/accordion/index.mjs +1 -0
  9. package/accordion/use-accordion.d.ts +2 -7
  10. package/avatar/avatar-context.d.ts +2 -9
  11. package/avatar/index.cjs +1 -0
  12. package/avatar/index.mjs +1 -0
  13. package/avatar/use-avatar.d.ts +2 -7
  14. package/carousel/carousel-context.d.ts +2 -9
  15. package/carousel/carousel.d.ts +3 -3
  16. package/carousel/index.cjs +1 -0
  17. package/carousel/index.d.ts +7 -12
  18. package/carousel/index.mjs +1 -0
  19. package/carousel/use-carousel.d.ts +2 -7
  20. package/checkbox/checkbox-context.d.ts +2 -9
  21. package/checkbox/checkbox.d.ts +3 -3
  22. package/checkbox/index.cjs +1 -0
  23. package/checkbox/index.d.ts +7 -13
  24. package/checkbox/index.mjs +1 -0
  25. package/checkbox/use-checkbox.d.ts +2 -7
  26. package/color-picker/color-picker-context.d.ts +2 -9
  27. package/color-picker/index.cjs +1 -0
  28. package/color-picker/index.mjs +1 -0
  29. package/color-picker/use-color-picker.d.ts +2 -7
  30. package/combobox/combobox-context.d.ts +2 -9
  31. package/combobox/combobox.cjs +0 -1
  32. package/combobox/combobox.d.ts +1 -1
  33. package/combobox/combobox.mjs +0 -1
  34. package/combobox/index.cjs +1 -0
  35. package/combobox/index.d.ts +7 -12
  36. package/combobox/index.mjs +1 -0
  37. package/combobox/use-combobox.d.ts +2 -7
  38. package/compose-refs.cjs +0 -1
  39. package/compose-refs.mjs +0 -1
  40. package/date-picker/date-picker-context.d.ts +2 -9
  41. package/date-picker/index.cjs +1 -0
  42. package/date-picker/index.mjs +1 -0
  43. package/date-picker/use-date-picker.d.ts +2 -7
  44. package/dialog/dialog-context.d.ts +2 -9
  45. package/dialog/index.cjs +1 -0
  46. package/dialog/index.mjs +1 -0
  47. package/dialog/use-dialog.d.ts +2 -7
  48. package/editable/editable-context.d.ts +2 -9
  49. package/editable/editable.d.ts +3 -3
  50. package/editable/index.cjs +1 -0
  51. package/editable/index.d.ts +7 -12
  52. package/editable/index.mjs +1 -0
  53. package/editable/use-editable.d.ts +2 -7
  54. package/environment/index.cjs +1 -0
  55. package/environment/index.mjs +1 -0
  56. package/factory.cjs +2 -3
  57. package/factory.mjs +1 -2
  58. package/hover-card/hover-card-context.d.ts +2 -9
  59. package/hover-card/index.cjs +1 -0
  60. package/hover-card/index.mjs +1 -0
  61. package/hover-card/use-hover-card.d.ts +2 -7
  62. package/index.cjs +0 -2
  63. package/index.mjs +0 -1
  64. package/menu/index.cjs +1 -0
  65. package/menu/index.d.ts +2 -2
  66. package/menu/index.mjs +1 -0
  67. package/menu/menu-item.d.ts +5 -8
  68. package/menu/use-menu.d.ts +1 -1
  69. package/number-input/index.cjs +1 -0
  70. package/number-input/index.d.ts +2 -2
  71. package/number-input/index.mjs +1 -0
  72. package/number-input/number-input-context.d.ts +2 -9
  73. package/number-input/number-input.d.ts +1 -1
  74. package/number-input/use-number-input.d.ts +2 -7
  75. package/package.json +49 -48
  76. package/pagination/index.cjs +1 -0
  77. package/pagination/index.d.ts +5 -11
  78. package/pagination/index.mjs +1 -0
  79. package/pagination/pagination-context.d.ts +2 -9
  80. package/pagination/pagination.d.ts +2 -2
  81. package/pagination/use-pagination.d.ts +2 -7
  82. package/pin-input/index.cjs +1 -0
  83. package/pin-input/index.d.ts +2 -2
  84. package/pin-input/index.mjs +1 -0
  85. package/pin-input/pin-input-context.d.ts +2 -9
  86. package/pin-input/pin-input.d.ts +1 -1
  87. package/pin-input/use-pin-input.d.ts +2 -7
  88. package/popover/index.cjs +1 -0
  89. package/popover/index.mjs +1 -0
  90. package/popover/popover-context.d.ts +2 -9
  91. package/popover/use-popover.d.ts +2 -7
  92. package/presence/index.cjs +1 -0
  93. package/presence/index.mjs +1 -0
  94. package/presence/use-presence.d.ts +1 -1
  95. package/pressable/index.cjs +1 -0
  96. package/pressable/index.mjs +1 -0
  97. package/pressable/use-pressable.d.ts +2 -7
  98. package/radio-group/index.cjs +1 -0
  99. package/radio-group/index.d.ts +2 -2
  100. package/radio-group/index.mjs +1 -0
  101. package/radio-group/radio-group-context.d.ts +2 -9
  102. package/radio-group/radio-group.d.ts +1 -1
  103. package/radio-group/use-radio-group.d.ts +2 -7
  104. package/range-slider/index.cjs +1 -0
  105. package/range-slider/index.d.ts +8 -16
  106. package/range-slider/index.mjs +1 -0
  107. package/range-slider/range-slider-context.d.ts +2 -9
  108. package/range-slider/range-slider.cjs +3 -0
  109. package/range-slider/range-slider.d.ts +1 -1
  110. package/range-slider/range-slider.mjs +3 -0
  111. package/range-slider/use-range-slider.d.ts +2 -7
  112. package/rating-group/index.cjs +1 -0
  113. package/rating-group/index.d.ts +6 -8
  114. package/rating-group/index.mjs +1 -0
  115. package/rating-group/rating-group-context.d.ts +2 -9
  116. package/rating-group/rating-group-control.d.ts +2 -2
  117. package/rating-group/rating-group.d.ts +1 -1
  118. package/rating-group/use-rating-group.d.ts +2 -7
  119. package/segment-group/index.cjs +1 -0
  120. package/segment-group/index.d.ts +2 -2
  121. package/segment-group/index.mjs +1 -0
  122. package/segment-group/segment-group-context.d.ts +2 -9
  123. package/segment-group/segment-group.d.ts +1 -1
  124. package/segment-group/use-segment-group.d.ts +2 -7
  125. package/select/index.cjs +1 -0
  126. package/select/index.mjs +1 -0
  127. package/select/select-context.d.ts +2 -9
  128. package/select/use-select.d.ts +2 -7
  129. package/slider/index.cjs +1 -0
  130. package/slider/index.d.ts +5 -15
  131. package/slider/index.mjs +1 -0
  132. package/slider/slider-context.d.ts +2 -9
  133. package/slider/slider.cjs +2 -0
  134. package/slider/slider.mjs +2 -0
  135. package/slider/use-slider.d.ts +2 -7
  136. package/splitter/index.cjs +1 -0
  137. package/splitter/index.d.ts +7 -12
  138. package/splitter/index.mjs +1 -0
  139. package/splitter/splitter-context.d.ts +2 -9
  140. package/splitter/splitter.d.ts +1 -1
  141. package/splitter/use-splitter.d.ts +2 -7
  142. package/switch/index.cjs +1 -3
  143. package/switch/index.d.ts +6 -19
  144. package/switch/index.mjs +2 -3
  145. package/switch/switch-context.d.ts +2 -9
  146. package/switch/switch-control.cjs +5 -2
  147. package/switch/switch-control.mjs +6 -3
  148. package/switch/switch.d.ts +2 -2
  149. package/switch/use-switch.d.ts +2 -7
  150. package/tabs/index.cjs +1 -0
  151. package/tabs/index.d.ts +2 -2
  152. package/tabs/index.mjs +1 -0
  153. package/tabs/tabs-context.d.ts +2 -9
  154. package/tabs/tabs.d.ts +1 -1
  155. package/tabs/use-tabs.cjs +21 -2
  156. package/tabs/use-tabs.d.ts +5 -10
  157. package/tabs/use-tabs.mjs +3 -3
  158. package/tags-input/index.cjs +1 -0
  159. package/tags-input/index.d.ts +2 -2
  160. package/tags-input/index.mjs +1 -0
  161. package/tags-input/tags-input-context.d.ts +2 -9
  162. package/tags-input/tags-input.cjs +1 -2
  163. package/tags-input/tags-input.d.ts +2 -2
  164. package/tags-input/tags-input.mjs +1 -2
  165. package/tags-input/use-tags-input.d.ts +2 -7
  166. package/toast/index.cjs +1 -0
  167. package/toast/index.d.ts +1 -1
  168. package/toast/index.mjs +1 -0
  169. package/toast/toast-group.d.ts +2 -2
  170. package/toast/toast-item-context.d.ts +2 -9
  171. package/toast/toast-provider.d.ts +2 -57
  172. package/toast/use-toast-item.d.ts +2 -7
  173. package/tooltip/index.cjs +1 -0
  174. package/tooltip/index.mjs +1 -0
  175. package/tooltip/tooltip-context.d.ts +2 -9
  176. package/tooltip/use-tooltip.d.ts +2 -7
  177. package/switch/switch-input.cjs +0 -19
  178. package/switch/switch-input.d.ts +0 -8
  179. package/switch/switch-input.mjs +0 -15
@@ -3,12 +3,12 @@ import { ark } from '../factory';
3
3
  import { type Assign } from '../types';
4
4
  import { type UsePaginationProps, type UsePaginationReturn } from './use-pagination';
5
5
  export type PaginationProps = Assign<Assign<ComponentPropsWithoutRef<typeof ark.nav>, UsePaginationProps>, {
6
- children: ReactNode | ((pages: UsePaginationReturn) => ReactNode);
6
+ children?: ReactNode | ((pages: UsePaginationReturn) => ReactNode);
7
7
  }>;
8
8
  export declare const Pagination: ForwardRefExoticComponent<Omit<Assign<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
9
9
  ref?: ((instance: HTMLElement | null) => void) | RefObject<HTMLElement> | null | undefined;
10
10
  } & {
11
11
  asChild?: boolean | undefined;
12
12
  }, "ref">, UsePaginationProps>, "children"> & {
13
- children: ReactNode | ((pages: UsePaginationReturn) => ReactNode);
13
+ children?: ReactNode | ((pages: UsePaginationReturn) => ReactNode);
14
14
  } & RefAttributes<HTMLElement>>;
@@ -1,12 +1,7 @@
1
- import { HTMLAttributes, CSSProperties } from 'react';
2
- /// <reference types="react" />
3
1
  import * as pagination from '@zag-js/pagination';
4
2
  import { type Optional } from '../types';
5
3
  export type UsePaginationProps = Optional<pagination.Context, 'id'> & {
6
4
  defaultPage?: pagination.Context['page'];
7
5
  };
8
- export declare const usePagination: (props: UsePaginationProps) => pagination.PublicApi<JSX.IntrinsicElements & {
9
- element: HTMLAttributes<HTMLElement>;
10
- style: CSSProperties;
11
- }>;
12
- export type UsePaginationReturn = ReturnType<typeof usePagination>;
6
+ export type UsePaginationReturn = pagination.Api;
7
+ export declare const usePagination: (props: UsePaginationProps) => UsePaginationReturn;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
@@ -11,14 +11,14 @@ declare const PinInput: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLPro
11
11
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
12
12
  } & {
13
13
  asChild?: boolean | undefined;
14
- }, "ref">, "name" | "value" | "getRootNode" | "form" | "mask" | "pattern" | "id" | "ids" | "disabled" | "type" | "onChange" | "onInvalid" | "defaultValue" | "autoFocus" | "dir" | "placeholder" | "invalid" | "translations" | "selectOnFocus" | "otp" | "onComplete" | "blurOnComplete"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
14
+ }, "ref">, "name" | "value" | "getRootNode" | "form" | "mask" | "pattern" | "id" | "ids" | "disabled" | "type" | "defaultValue" | "autoFocus" | "dir" | "placeholder" | "onChange" | "onInvalid" | "invalid" | "translations" | "selectOnFocus" | "otp" | "onComplete" | "blurOnComplete"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
15
15
  defaultValue?: string[] | undefined;
16
16
  } & RefAttributes<HTMLDivElement>> & {
17
17
  Root: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
18
18
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
19
19
  } & {
20
20
  asChild?: boolean | undefined;
21
- }, "ref">, "name" | "value" | "getRootNode" | "form" | "mask" | "pattern" | "id" | "ids" | "disabled" | "type" | "onChange" | "onInvalid" | "defaultValue" | "autoFocus" | "dir" | "placeholder" | "invalid" | "translations" | "selectOnFocus" | "otp" | "onComplete" | "blurOnComplete"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
21
+ }, "ref">, "name" | "value" | "getRootNode" | "form" | "mask" | "pattern" | "id" | "ids" | "disabled" | "type" | "defaultValue" | "autoFocus" | "dir" | "placeholder" | "onChange" | "onInvalid" | "invalid" | "translations" | "selectOnFocus" | "otp" | "onComplete" | "blurOnComplete"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
22
22
  defaultValue?: string[] | undefined;
23
23
  } & RefAttributes<HTMLDivElement>>;
24
24
  Control: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { PinInput as PinInput$1 } from './pin-input.mjs';
2
3
  export { usePinInputContext } from './pin-input-context.mjs';
3
4
  import { PinInputControl } from './pin-input-control.mjs';
@@ -1,12 +1,5 @@
1
- import { PublicApi } from '@zag-js/pin-input';
2
- import { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { Provider } from 'react';
3
2
  /// <reference types="react" />
4
3
  import { type UsePinInputReturn } from './use-pin-input';
5
4
  export type PinInputContext = UsePinInputReturn;
6
- export declare const PinInputProvider: Provider<PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>>, usePinInputContext: () => PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
5
+ export declare const PinInputProvider: Provider<UsePinInputReturn>, usePinInputContext: () => UsePinInputReturn;
@@ -8,6 +8,6 @@ export declare const PinInput: ForwardRefExoticComponent<Omit<Omit<Omit<Detailed
8
8
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
9
9
  } & {
10
10
  asChild?: boolean | undefined;
11
- }, "ref">, "name" | "value" | "getRootNode" | "form" | "mask" | "pattern" | "id" | "ids" | "disabled" | "type" | "onChange" | "onInvalid" | "defaultValue" | "autoFocus" | "dir" | "placeholder" | "invalid" | "translations" | "selectOnFocus" | "otp" | "onComplete" | "blurOnComplete"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
11
+ }, "ref">, "name" | "value" | "getRootNode" | "form" | "mask" | "pattern" | "id" | "ids" | "disabled" | "type" | "defaultValue" | "autoFocus" | "dir" | "placeholder" | "onChange" | "onInvalid" | "invalid" | "translations" | "selectOnFocus" | "otp" | "onComplete" | "blurOnComplete"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
12
12
  defaultValue?: string[] | undefined;
13
13
  } & RefAttributes<HTMLDivElement>>;
@@ -1,12 +1,7 @@
1
- import { HTMLAttributes, CSSProperties } from 'react';
2
- /// <reference types="react" />
3
1
  import * as pinInput from '@zag-js/pin-input';
4
2
  import { type Optional } from '../types';
5
3
  export type UsePinInputProps = Optional<pinInput.Context, 'id'> & {
6
4
  defaultValue?: pinInput.Context['value'];
7
5
  };
8
- export declare const usePinInput: (props: UsePinInputProps) => pinInput.PublicApi<JSX.IntrinsicElements & {
9
- element: HTMLAttributes<HTMLElement>;
10
- style: CSSProperties;
11
- }>;
12
- export type UsePinInputReturn = ReturnType<typeof usePinInput>;
6
+ export type UsePinInputReturn = pinInput.Api;
7
+ export declare const usePinInput: (props: UsePinInputProps) => UsePinInputReturn;
package/popover/index.cjs CHANGED
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
package/popover/index.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { Popover as Popover$1 } from './popover.mjs';
2
3
  import { PopoverAnchor } from './popover-anchor.mjs';
3
4
  import { PopoverArrow } from './popover-arrow.mjs';
@@ -1,12 +1,5 @@
1
- import { PublicApi } from '@zag-js/popover';
2
- import { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { Provider } from 'react';
3
2
  /// <reference types="react" />
4
3
  import { type UsePopoverReturn } from './use-popover';
5
4
  export type PopoverContext = UsePopoverReturn;
6
- export declare const PopoverProvider: Provider<PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>>, usePopoverContext: () => PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
5
+ export declare const PopoverProvider: Provider<UsePopoverReturn>, usePopoverContext: () => UsePopoverReturn;
@@ -1,10 +1,5 @@
1
- import { HTMLAttributes, CSSProperties } from 'react';
2
- /// <reference types="react" />
3
1
  import * as popover from '@zag-js/popover';
4
2
  import { type Optional } from '../types';
5
3
  export type UsePopoverProps = Optional<popover.Context, 'id'>;
6
- export type UsePopoverReturn = ReturnType<typeof usePopover>;
7
- export declare const usePopover: (props: UsePopoverProps) => popover.PublicApi<JSX.IntrinsicElements & {
8
- element: HTMLAttributes<HTMLElement>;
9
- style: CSSProperties;
10
- }>;
4
+ export type UsePopoverReturn = popover.Api;
5
+ export declare const usePopover: (props: UsePopoverProps) => UsePopoverReturn;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { Presence as Presence$1 } from './presence.mjs';
2
3
  export { splitPresenceProps } from './split-presence-props.mjs';
3
4
 
@@ -1,4 +1,4 @@
1
1
  import * as presence from '@zag-js/presence';
2
2
  import type { Optional } from '../types';
3
3
  export type UsePresenceProps = Optional<presence.Context, 'present'>;
4
- export declare const usePresence: (props: UsePresenceProps) => presence.PublicApi;
4
+ export declare const usePresence: (props: UsePresenceProps) => presence.Api;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { Pressable as Pressable$1 } from './pressable.mjs';
2
3
  export { usePressable } from './use-pressable.mjs';
3
4
 
@@ -1,10 +1,5 @@
1
- import { HTMLAttributes, CSSProperties } from 'react';
2
- /// <reference types="react" />
3
1
  import * as pressable from '@zag-js/pressable';
4
2
  import { type Optional } from '../types';
5
3
  export type UsePressableProps = Optional<pressable.Context, 'id'>;
6
- export type UsePressableReturn = ReturnType<typeof usePressable>;
7
- export declare const usePressable: (props?: UsePressableProps) => pressable.PublicApi<JSX.IntrinsicElements & {
8
- element: HTMLAttributes<HTMLElement>;
9
- style: CSSProperties;
10
- }>;
4
+ export type UsePressableReturn = pressable.Api;
5
+ export declare const usePressable: (props?: UsePressableProps) => UsePressableReturn;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
@@ -13,14 +13,14 @@ declare const RadioGroup: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLP
13
13
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
14
14
  } & {
15
15
  asChild?: boolean | undefined;
16
- }, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "orientation" | "onChange" | "defaultValue" | "dir" | "readOnly"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
16
+ }, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultValue" | "dir" | "onChange" | "readOnly" | "orientation"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
17
17
  defaultValue?: string | null | undefined;
18
18
  } & RefAttributes<HTMLDivElement>> & {
19
19
  Root: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
20
20
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
21
21
  } & {
22
22
  asChild?: boolean | undefined;
23
- }, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "orientation" | "onChange" | "defaultValue" | "dir" | "readOnly"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
23
+ }, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultValue" | "dir" | "onChange" | "readOnly" | "orientation"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
24
24
  defaultValue?: string | null | undefined;
25
25
  } & RefAttributes<HTMLDivElement>>;
26
26
  Label: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { Radio } from './radio.mjs';
2
3
  export { useRadioContext } from './radio-context.mjs';
3
4
  import { RadioControl } from './radio-control.mjs';
@@ -1,12 +1,5 @@
1
- import { PublicApi } from '@zag-js/radio-group';
2
- import { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { Provider } from 'react';
3
2
  /// <reference types="react" />
4
3
  import { type UseRadioGroupReturn } from './use-radio-group';
5
4
  export type RadioGroupContext = UseRadioGroupReturn;
6
- export declare const RadioGroupProvider: Provider<PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>>, useRadioGroupContext: () => PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
5
+ export declare const RadioGroupProvider: Provider<UseRadioGroupReturn>, useRadioGroupContext: () => UseRadioGroupReturn;
@@ -8,6 +8,6 @@ export declare const RadioGroup: ForwardRefExoticComponent<Omit<Omit<Omit<Detail
8
8
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
9
9
  } & {
10
10
  asChild?: boolean | undefined;
11
- }, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "orientation" | "onChange" | "defaultValue" | "dir" | "readOnly"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
11
+ }, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultValue" | "dir" | "onChange" | "readOnly" | "orientation"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
12
12
  defaultValue?: string | null | undefined;
13
13
  } & RefAttributes<HTMLDivElement>>;
@@ -1,12 +1,7 @@
1
- import { HTMLAttributes, CSSProperties } from 'react';
2
- /// <reference types="react" />
3
1
  import * as radio from '@zag-js/radio-group';
4
2
  import { type Optional } from '../types';
5
3
  export type UseRadioGroupProps = Optional<radio.Context, 'id'> & {
6
4
  defaultValue?: radio.Context['value'];
7
5
  };
8
- export type UseRadioGroupReturn = ReturnType<typeof useRadioGroup>;
9
- export declare const useRadioGroup: (props: UseRadioGroupProps) => radio.PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
6
+ export type UseRadioGroupReturn = radio.Api;
7
+ export declare const useRadioGroup: (props: UseRadioGroupProps) => UseRadioGroupReturn;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
@@ -1,5 +1,6 @@
1
- import { Context, PublicApi } from '@zag-js/range-slider';
2
- import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, ReactNode, CSSProperties, RefAttributes, LabelHTMLAttributes, OutputHTMLAttributes } from 'react';
1
+ import { UseRangeSliderReturn } from './use-range-slider';
2
+ import { Context } from '@zag-js/range-slider';
3
+ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, ReactNode, RefAttributes, LabelHTMLAttributes, OutputHTMLAttributes } from 'react';
3
4
  /// <reference types="react" />
4
5
  import { type RangeSliderProps } from './range-slider';
5
6
  import { useRangeSliderContext } from './range-slider-context';
@@ -16,25 +17,19 @@ declare const RangeSlider: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTML
16
17
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
17
18
  } & {
18
19
  asChild?: boolean | undefined;
19
- }, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "aria-label" | "disabled" | "max" | "min" | "orientation" | "aria-labelledby" | "onChange" | "defaultValue" | "dir" | "readOnly" | "step" | "invalid" | "onChangeEnd" | "onChangeStart" | "getAriaValueText" | "minStepsBetweenThumbs" | "thumbAlignment"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
20
+ }, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "aria-label" | "disabled" | "defaultValue" | "dir" | "aria-labelledby" | "onChange" | "max" | "min" | "readOnly" | "step" | "orientation" | "onFocusChange" | "invalid" | "onChangeEnd" | "onChangeStart" | "getAriaValueText" | "minStepsBetweenThumbs" | "thumbAlignment" | "thumbSize"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
20
21
  defaultValue?: number[] | undefined;
21
22
  } & {
22
- children?: ReactNode | ((api: PublicApi<JSX.IntrinsicElements & {
23
- element: HTMLAttributes<HTMLElement>;
24
- style: CSSProperties;
25
- }>) => ReactNode);
23
+ children?: ReactNode | ((api: UseRangeSliderReturn) => ReactNode);
26
24
  } & RefAttributes<HTMLDivElement>> & {
27
25
  Root: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
28
26
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
29
27
  } & {
30
28
  asChild?: boolean | undefined;
31
- }, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "aria-label" | "disabled" | "max" | "min" | "orientation" | "aria-labelledby" | "onChange" | "defaultValue" | "dir" | "readOnly" | "step" | "invalid" | "onChangeEnd" | "onChangeStart" | "getAriaValueText" | "minStepsBetweenThumbs" | "thumbAlignment"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
29
+ }, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "aria-label" | "disabled" | "defaultValue" | "dir" | "aria-labelledby" | "onChange" | "max" | "min" | "readOnly" | "step" | "orientation" | "onFocusChange" | "invalid" | "onChangeEnd" | "onChangeStart" | "getAriaValueText" | "minStepsBetweenThumbs" | "thumbAlignment" | "thumbSize"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
32
30
  defaultValue?: number[] | undefined;
33
31
  } & {
34
- children?: ReactNode | ((api: PublicApi<JSX.IntrinsicElements & {
35
- element: HTMLAttributes<HTMLElement>;
36
- style: CSSProperties;
37
- }>) => ReactNode);
32
+ children?: ReactNode | ((api: UseRangeSliderReturn) => ReactNode);
38
33
  } & RefAttributes<HTMLDivElement>>;
39
34
  Control: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
40
35
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
@@ -63,10 +58,7 @@ declare const RangeSlider: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTML
63
58
  } & {
64
59
  asChild?: boolean | undefined;
65
60
  }, "ref">, "children"> & {
66
- children?: ReactNode | ((api: PublicApi<JSX.IntrinsicElements & {
67
- element: HTMLAttributes<HTMLElement>;
68
- style: CSSProperties;
69
- }>) => ReactNode);
61
+ children?: ReactNode | ((api: UseRangeSliderReturn) => ReactNode);
70
62
  } & RefAttributes<HTMLOutputElement>>;
71
63
  Range: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
72
64
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { RangeSlider as RangeSlider$1 } from './range-slider.mjs';
2
3
  export { useRangeSliderContext } from './range-slider-context.mjs';
3
4
  import { RangeSliderControl } from './range-slider-control.mjs';
@@ -1,12 +1,5 @@
1
- import { PublicApi } from '@zag-js/range-slider';
2
- import { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { Provider } from 'react';
3
2
  /// <reference types="react" />
4
3
  import { type UseRangeSliderReturn } from './use-range-slider';
5
4
  export type RangeSliderContext = UseRangeSliderReturn;
6
- export declare const RangeSliderProvider: Provider<PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>>, useRangeSliderContext: () => PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
5
+ export declare const RangeSliderProvider: Provider<UseRangeSliderReturn>, useRangeSliderContext: () => UseRangeSliderReturn;
@@ -34,10 +34,13 @@ const RangeSlider = react.forwardRef((props, ref) => {
34
34
  "onChange",
35
35
  "onChangeEnd",
36
36
  "onChangeStart",
37
+ "onFocusChange",
37
38
  "orientation",
38
39
  "readOnly",
39
40
  "step",
40
41
  "thumbAlignment",
42
+ "thumbAlignment",
43
+ "thumbSize",
41
44
  "value"
42
45
  ]
43
46
  );
@@ -10,7 +10,7 @@ export declare const RangeSlider: ForwardRefExoticComponent<Omit<Omit<Omit<Detai
10
10
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
11
11
  } & {
12
12
  asChild?: boolean | undefined;
13
- }, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "aria-label" | "disabled" | "max" | "min" | "orientation" | "aria-labelledby" | "onChange" | "defaultValue" | "dir" | "readOnly" | "step" | "invalid" | "onChangeEnd" | "onChangeStart" | "getAriaValueText" | "minStepsBetweenThumbs" | "thumbAlignment"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
13
+ }, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "aria-label" | "disabled" | "defaultValue" | "dir" | "aria-labelledby" | "onChange" | "max" | "min" | "readOnly" | "step" | "orientation" | "onFocusChange" | "invalid" | "onChangeEnd" | "onChangeStart" | "getAriaValueText" | "minStepsBetweenThumbs" | "thumbAlignment" | "thumbSize"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
14
14
  defaultValue?: number[] | undefined;
15
15
  } & {
16
16
  children?: ReactNode | ((api: UseRangeSliderReturn) => ReactNode);
@@ -30,10 +30,13 @@ const RangeSlider = forwardRef((props, ref) => {
30
30
  "onChange",
31
31
  "onChangeEnd",
32
32
  "onChangeStart",
33
+ "onFocusChange",
33
34
  "orientation",
34
35
  "readOnly",
35
36
  "step",
36
37
  "thumbAlignment",
38
+ "thumbAlignment",
39
+ "thumbSize",
37
40
  "value"
38
41
  ]
39
42
  );
@@ -1,12 +1,7 @@
1
- import { HTMLAttributes, CSSProperties } from 'react';
2
- /// <reference types="react" />
3
1
  import * as rangeSlider from '@zag-js/range-slider';
4
2
  import { type Optional } from '../types';
5
3
  export type UseRangeSliderProps = Optional<rangeSlider.Context, 'id'> & {
6
4
  defaultValue?: rangeSlider.Context['value'];
7
5
  };
8
- export type UseRangeSliderReturn = ReturnType<typeof useRangeSlider>;
9
- export declare const useRangeSlider: (props: UseRangeSliderProps) => rangeSlider.PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
6
+ export type UseRangeSliderReturn = rangeSlider.Api;
7
+ export declare const useRangeSlider: (props: UseRangeSliderProps) => UseRangeSliderReturn;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
@@ -1,5 +1,6 @@
1
- import { Context, PublicApi, ItemProps, ItemState } from '@zag-js/rating-group';
2
- import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, ReactNode, CSSProperties, LabelHTMLAttributes } from 'react';
1
+ import { UseRatingGroupReturn } from './use-rating-group';
2
+ import { Context, ItemProps, ItemState } from '@zag-js/rating-group';
3
+ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, ReactNode, LabelHTMLAttributes } from 'react';
3
4
  /// <reference types="react" />
4
5
  import { Rating, type RatingProps } from './rating';
5
6
  import { useRatingContext } from './rating-context';
@@ -12,14 +13,14 @@ declare const RatingGroup: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTML
12
13
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
13
14
  } & {
14
15
  asChild?: boolean | undefined;
15
- }, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "max" | "onChange" | "defaultValue" | "autoFocus" | "dir" | "readOnly" | "translations" | "allowHalf" | "onHover"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
16
+ }, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultValue" | "autoFocus" | "dir" | "onChange" | "max" | "readOnly" | "translations" | "allowHalf" | "onHover"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
16
17
  defaultValue?: number | undefined;
17
18
  } & RefAttributes<HTMLDivElement>> & {
18
19
  Root: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
19
20
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
20
21
  } & {
21
22
  asChild?: boolean | undefined;
22
- }, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "max" | "onChange" | "defaultValue" | "autoFocus" | "dir" | "readOnly" | "translations" | "allowHalf" | "onHover"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
23
+ }, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultValue" | "autoFocus" | "dir" | "onChange" | "max" | "readOnly" | "translations" | "allowHalf" | "onHover"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
23
24
  defaultValue?: number | undefined;
24
25
  } & RefAttributes<HTMLDivElement>>;
25
26
  Control: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
@@ -27,10 +28,7 @@ declare const RatingGroup: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTML
27
28
  } & {
28
29
  asChild?: boolean | undefined;
29
30
  }, "ref">, "children"> & {
30
- children: ReactNode | ((context: PublicApi<JSX.IntrinsicElements & {
31
- element: HTMLAttributes<HTMLElement>;
32
- style: CSSProperties;
33
- }>) => ReactNode);
31
+ children?: ReactNode | ((context: UseRatingGroupReturn) => ReactNode);
34
32
  } & RefAttributes<HTMLDivElement>>;
35
33
  Label: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
36
34
  ref?: ((instance: HTMLLabelElement | null) => void) | RefObject<HTMLLabelElement> | null | undefined;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { Rating } from './rating.mjs';
2
3
  export { useRatingContext } from './rating-context.mjs';
3
4
  import { RatingGroup as RatingGroup$1 } from './rating-group.mjs';
@@ -1,12 +1,5 @@
1
- import { PublicApi } from '@zag-js/rating-group';
2
- import { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { Provider } from 'react';
3
2
  /// <reference types="react" />
4
3
  import { type UseRatingGroupReturn } from './use-rating-group';
5
4
  export type RatingGroupContext = UseRatingGroupReturn;
6
- export declare const RatingGroupProvider: Provider<PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>>, useRatingGroupContext: () => PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
5
+ export declare const RatingGroupProvider: Provider<UseRatingGroupReturn>, useRatingGroupContext: () => UseRatingGroupReturn;
@@ -2,12 +2,12 @@ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject
2
2
  import { ark } from '../factory';
3
3
  import { type RatingGroupContext } from './rating-group-context';
4
4
  export type RatingGroupControlProps = Omit<ComponentPropsWithoutRef<typeof ark.div>, 'children'> & {
5
- children: ReactNode | ((context: RatingGroupContext) => ReactNode);
5
+ children?: ReactNode | ((context: RatingGroupContext) => ReactNode);
6
6
  };
7
7
  export declare const RatingGroupControl: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
8
8
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
9
9
  } & {
10
10
  asChild?: boolean | undefined;
11
11
  }, "ref">, "children"> & {
12
- children: ReactNode | ((context: RatingGroupContext) => ReactNode);
12
+ children?: ReactNode | ((context: RatingGroupContext) => ReactNode);
13
13
  } & RefAttributes<HTMLDivElement>>;
@@ -8,6 +8,6 @@ export declare const RatingGroup: ForwardRefExoticComponent<Omit<Omit<Omit<Detai
8
8
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
9
9
  } & {
10
10
  asChild?: boolean | undefined;
11
- }, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "max" | "onChange" | "defaultValue" | "autoFocus" | "dir" | "readOnly" | "translations" | "allowHalf" | "onHover"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
11
+ }, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultValue" | "autoFocus" | "dir" | "onChange" | "max" | "readOnly" | "translations" | "allowHalf" | "onHover"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
12
12
  defaultValue?: number | undefined;
13
13
  } & RefAttributes<HTMLDivElement>>;
@@ -1,12 +1,7 @@
1
- import { HTMLAttributes, CSSProperties } from 'react';
2
- /// <reference types="react" />
3
1
  import * as ratingGroup from '@zag-js/rating-group';
4
2
  import { type Optional } from '../types';
5
3
  export type UseRatingGroupProps = Optional<ratingGroup.Context, 'id'> & {
6
4
  defaultValue?: ratingGroup.Context['value'];
7
5
  };
8
- export type UseRatingGroupReturn = ReturnType<typeof useRatingGroup>;
9
- export declare const useRatingGroup: (props: UseRatingGroupProps) => ratingGroup.PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
6
+ export type UseRatingGroupReturn = ratingGroup.Api;
7
+ export declare const useRatingGroup: (props: UseRatingGroupProps) => UseRatingGroupReturn;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
@@ -14,14 +14,14 @@ declare const SegmentGroup: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTM
14
14
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
15
15
  } & {
16
16
  asChild?: boolean | undefined;
17
- }, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "orientation" | "onChange" | "defaultValue" | "dir" | "readOnly"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
17
+ }, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultValue" | "dir" | "onChange" | "readOnly" | "orientation"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
18
18
  defaultValue?: string | null | undefined;
19
19
  } & RefAttributes<HTMLDivElement>> & {
20
20
  Root: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
21
21
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
22
22
  } & {
23
23
  asChild?: boolean | undefined;
24
- }, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "orientation" | "onChange" | "defaultValue" | "dir" | "readOnly"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
24
+ }, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultValue" | "dir" | "onChange" | "readOnly" | "orientation"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
25
25
  defaultValue?: string | null | undefined;
26
26
  } & RefAttributes<HTMLDivElement>>;
27
27
  Label: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { Segment } from './segment.mjs';
2
3
  export { useSegmentContext } from './segment-context.mjs';
3
4
  import { SegmentControl } from './segment-control.mjs';
@@ -1,12 +1,5 @@
1
- import { PublicApi } from '@zag-js/radio-group';
2
- import { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { Provider } from 'react';
3
2
  /// <reference types="react" />
4
3
  import { type UseSegmentGroupReturn } from './use-segment-group';
5
4
  export type SegmentGroupContext = UseSegmentGroupReturn;
6
- export declare const SegmentGroupProvider: Provider<PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>>, useSegmentGroupContext: () => PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
5
+ export declare const SegmentGroupProvider: Provider<UseSegmentGroupReturn>, useSegmentGroupContext: () => UseSegmentGroupReturn;
@@ -8,6 +8,6 @@ export declare const SegmentGroup: ForwardRefExoticComponent<Omit<Omit<Omit<Deta
8
8
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
9
9
  } & {
10
10
  asChild?: boolean | undefined;
11
- }, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "orientation" | "onChange" | "defaultValue" | "dir" | "readOnly"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
11
+ }, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultValue" | "dir" | "onChange" | "readOnly" | "orientation"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
12
12
  defaultValue?: string | null | undefined;
13
13
  } & RefAttributes<HTMLDivElement>>;
@@ -1,12 +1,7 @@
1
- import { HTMLAttributes, CSSProperties } from 'react';
2
- /// <reference types="react" />
3
1
  import * as segmentGroup from '@zag-js/radio-group';
4
2
  import { type Optional } from '../types';
5
3
  export type UseSegmentGroupProps = Optional<segmentGroup.Context, 'id'> & {
6
4
  defaultValue?: segmentGroup.Context['value'];
7
5
  };
8
- export type UseSegmentGroupReturn = ReturnType<typeof useSegmentGroup>;
9
- export declare const useSegmentGroup: (props: UseSegmentGroupProps) => segmentGroup.PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
6
+ export type UseSegmentGroupReturn = segmentGroup.Api;
7
+ export declare const useSegmentGroup: (props: UseSegmentGroupProps) => UseSegmentGroupReturn;