@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
package/CHANGELOG.md CHANGED
@@ -6,6 +6,28 @@ description: All notable changes to this project will be documented in this file
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.14.0] - 2023-08-29
10
+
11
+ ### Changed
12
+
13
+ - Changed `MenuItem` from a `button` to a `div` element.
14
+ - `Accordion`: Remove support for passing value as `string`. The value property must be an array of strings.
15
+ - `Combobox`: Remove `selectInputOnFocus` option in favor of userland control
16
+ - `TagsInput`: Rename `onHighlight` to `onFocusChange`
17
+
18
+ ### Removed
19
+
20
+ - Removed `'use client'` annotation from `compose-refs` function.
21
+ - Removed `Switchinput`. This component is no longer required.
22
+ - `TagsInput`: Removed`onTagUpdate` use `onChange` instead.
23
+ - `Switch`: Removed `defaultChecked` in favor of `defaultIsChecked`
24
+
25
+ ## [0.13.1] - 2023-08-13
26
+
27
+ ### Changed
28
+
29
+ - Removed `'use client'` annotation from `factory` function.
30
+
9
31
  ## [0.13.0] - 2023-08-13
10
32
 
11
33
  ### Changed
@@ -185,7 +207,7 @@ description: All notable changes to this project will be documented in this file
185
207
  - Add `Toast`
186
208
  - Add `Tooltip`
187
209
 
188
- [unreleased]: https://github.com/chakra-ui/ark/compare/@ark-ui/react@0.13.0...HEAD
210
+ [unreleased]: https://github.com/chakra-ui/ark/compare/@ark-ui/react@0.14.0...HEAD
189
211
  [0.1.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.1.0
190
212
  [0.2.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.2.0
191
213
  [0.3.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.3.0
@@ -210,5 +232,7 @@ description: All notable changes to this project will be documented in this file
210
232
  ```
211
233
 
212
234
  [0.12.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.12.0
213
-
214
235
  [0.13.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.13.0
236
+ [0.13.1]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.13.1
237
+
238
+ [0.14.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.14.0
@@ -1,12 +1,5 @@
1
- import { PublicApi } from '@zag-js/accordion';
2
- import { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { Provider } from 'react';
3
2
  /// <reference types="react" />
4
3
  import { type UseAccordionReturn } from './use-accordion';
5
4
  export type AccordionContext = UseAccordionReturn;
6
- export declare const AccordionProvider: Provider<PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>>, useAccordionContext: () => PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
5
+ export declare const AccordionProvider: Provider<UseAccordionReturn>, useAccordionContext: () => UseAccordionReturn;
@@ -22,8 +22,9 @@ const Accordion = react.forwardRef((props, ref) => {
22
22
  "ids",
23
23
  "multiple",
24
24
  "onChange",
25
- "value",
26
- "orientation"
25
+ "onFocusChange",
26
+ "orientation",
27
+ "value"
27
28
  ]);
28
29
  const accordion = useAccordion.useAccordion(useAccordionProps);
29
30
  const mergedProps = react$1.mergeProps(accordion.rootProps, divProps);
@@ -8,6 +8,6 @@ export declare const Accordion: ForwardRefExoticComponent<Omit<Omit<Omit<Detaile
8
8
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
9
9
  } & {
10
10
  asChild?: boolean | undefined;
11
- }, "ref">, "value" | "getRootNode" | "id" | "ids" | "disabled" | "orientation" | "onChange" | "defaultValue" | "dir" | "multiple" | "collapsible"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
12
- defaultValue?: string | string[] | null | undefined;
11
+ }, "ref">, "value" | "getRootNode" | "id" | "ids" | "disabled" | "defaultValue" | "dir" | "onChange" | "multiple" | "orientation" | "collapsible" | "onFocusChange"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
12
+ defaultValue?: string[] | undefined;
13
13
  } & RefAttributes<HTMLDivElement>>;
@@ -18,8 +18,9 @@ const Accordion = forwardRef((props, ref) => {
18
18
  "ids",
19
19
  "multiple",
20
20
  "onChange",
21
- "value",
22
- "orientation"
21
+ "onFocusChange",
22
+ "orientation",
23
+ "value"
23
24
  ]);
24
25
  const accordion = useAccordion(useAccordionProps);
25
26
  const mergedProps = mergeProps(accordion.rootProps, divProps);
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
@@ -13,15 +13,15 @@ declare const Accordion: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLPr
13
13
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
14
14
  } & {
15
15
  asChild?: boolean | undefined;
16
- }, "ref">, "value" | "getRootNode" | "id" | "ids" | "disabled" | "orientation" | "onChange" | "defaultValue" | "dir" | "multiple" | "collapsible"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
17
- defaultValue?: string | string[] | null | undefined;
16
+ }, "ref">, "value" | "getRootNode" | "id" | "ids" | "disabled" | "defaultValue" | "dir" | "onChange" | "multiple" | "orientation" | "collapsible" | "onFocusChange"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
17
+ defaultValue?: string[] | 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">, "value" | "getRootNode" | "id" | "ids" | "disabled" | "orientation" | "onChange" | "defaultValue" | "dir" | "multiple" | "collapsible"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
24
- defaultValue?: string | string[] | null | undefined;
23
+ }, "ref">, "value" | "getRootNode" | "id" | "ids" | "disabled" | "defaultValue" | "dir" | "onChange" | "multiple" | "orientation" | "collapsible" | "onFocusChange"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
24
+ defaultValue?: string[] | undefined;
25
25
  } & RefAttributes<HTMLDivElement>>;
26
26
  Content: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
27
27
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { Accordion as Accordion$1 } from './accordion.mjs';
2
3
  import { AccordionContent } from './accordion-content.mjs';
3
4
  export { useAccordionContext } from './accordion-context.mjs';
@@ -1,12 +1,7 @@
1
- import { HTMLAttributes, CSSProperties } from 'react';
2
- /// <reference types="react" />
3
1
  import * as accordion from '@zag-js/accordion';
4
2
  import { type Optional } from '../types';
5
3
  export type UseAccordionProps = Optional<accordion.Context, 'id'> & {
6
4
  defaultValue?: accordion.Context['value'];
7
5
  };
8
- export type UseAccordionReturn = ReturnType<typeof useAccordion>;
9
- export declare const useAccordion: (props: UseAccordionProps) => accordion.PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
6
+ export type UseAccordionReturn = accordion.Api;
7
+ export declare const useAccordion: (props: UseAccordionProps) => UseAccordionReturn;
@@ -1,12 +1,5 @@
1
- import { PublicApi } from '@zag-js/avatar';
2
- import { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { Provider } from 'react';
3
2
  /// <reference types="react" />
4
3
  import { type UseAvatarReturn } from './use-avatar';
5
4
  export type AvatarContext = UseAvatarReturn;
6
- export declare const AvatarProvider: Provider<PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>>, useAvatarContext: () => PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
5
+ export declare const AvatarProvider: Provider<UseAvatarReturn>, useAvatarContext: () => UseAvatarReturn;
package/avatar/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/avatar/index.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { Avatar as Avatar$1 } from './avatar.mjs';
2
3
  export { useAvatarContext } from './avatar-context.mjs';
3
4
  import { AvatarFallback } from './avatar-fallback.mjs';
@@ -1,10 +1,5 @@
1
- import { HTMLAttributes, CSSProperties } from 'react';
2
- /// <reference types="react" />
3
1
  import * as avatar from '@zag-js/avatar';
4
2
  import { type Optional } from '../types';
5
3
  export type UseAvatarProps = Optional<avatar.Context, 'id'>;
6
- export type UseAvatarReturn = ReturnType<typeof useAvatar>;
7
- export declare const useAvatar: (props: UseAvatarProps) => avatar.PublicApi<JSX.IntrinsicElements & {
8
- element: HTMLAttributes<HTMLElement>;
9
- style: CSSProperties;
10
- }>;
4
+ export type UseAvatarReturn = avatar.Api;
5
+ export declare const useAvatar: (props: UseAvatarProps) => UseAvatarReturn;
@@ -1,12 +1,5 @@
1
- import { PublicApi } from '@zag-js/carousel';
2
- import { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { Provider } from 'react';
3
2
  /// <reference types="react" />
4
3
  import { type UseCarouselReturn } from './use-carousel';
5
4
  export type CarouselContext = UseCarouselReturn;
6
- export declare const CarouselProvider: Provider<PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>>, useCarouselContext: () => PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
5
+ export declare const CarouselProvider: Provider<UseCarouselReturn>, useCarouselContext: () => UseCarouselReturn;
@@ -5,12 +5,12 @@ import { type Assign } from '../types';
5
5
  import { type CarouselContext } from './carousel-context';
6
6
  import { type UseCarouselProps } from './use-carousel';
7
7
  export type CarouselProps = Assign<ComponentPropsWithoutRef<typeof ark.div> & {
8
- children: ReactNode | ((pages: CarouselContext) => ReactNode);
8
+ children?: ReactNode | ((pages: CarouselContext) => ReactNode);
9
9
  }, UseCarouselProps>;
10
10
  export declare const Carousel: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
11
11
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
12
12
  } & {
13
13
  asChild?: boolean | undefined;
14
14
  }, "ref"> & {
15
- children: ReactNode | ((pages: CarouselContext) => ReactNode);
16
- }, "getRootNode" | "id" | "ids" | "orientation" | "spacing" | "dir" | "loop" | "align" | "slidesPerView" | "index" | "onSlideChange"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & RefAttributes<HTMLDivElement>>;
15
+ children?: ReactNode | ((pages: CarouselContext) => ReactNode);
16
+ }, "getRootNode" | "id" | "ids" | "dir" | "orientation" | "spacing" | "loop" | "align" | "slidesPerView" | "index" | "onSlideChange"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & RefAttributes<HTMLDivElement>>;
@@ -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 { PublicApi, Context, SlideIndicatorProps, SlideProps } from '@zag-js/carousel';
2
- import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, ReactNode, CSSProperties, RefAttributes, ButtonHTMLAttributes } from 'react';
1
+ import { Context, SlideIndicatorProps, SlideProps } from '@zag-js/carousel';
2
+ import { UseCarouselReturn } from './use-carousel';
3
+ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, ReactNode, RefAttributes, ButtonHTMLAttributes } from 'react';
3
4
  /// <reference types="react" />
4
5
  import { type CarouselProps } from './carousel';
5
6
  import { useCarouselContext } from './carousel-context';
@@ -17,21 +18,15 @@ declare const Carousel: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLPro
17
18
  } & {
18
19
  asChild?: boolean | undefined;
19
20
  }, "ref"> & {
20
- children: ReactNode | ((pages: PublicApi<JSX.IntrinsicElements & {
21
- element: HTMLAttributes<HTMLElement>;
22
- style: CSSProperties;
23
- }>) => ReactNode);
24
- }, "getRootNode" | "id" | "ids" | "orientation" | "spacing" | "dir" | "loop" | "align" | "slidesPerView" | "index" | "onSlideChange"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & RefAttributes<HTMLDivElement>> & {
21
+ children?: ReactNode | ((pages: UseCarouselReturn) => ReactNode);
22
+ }, "getRootNode" | "id" | "ids" | "dir" | "orientation" | "spacing" | "loop" | "align" | "slidesPerView" | "index" | "onSlideChange"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & RefAttributes<HTMLDivElement>> & {
25
23
  Root: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
26
24
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
27
25
  } & {
28
26
  asChild?: boolean | undefined;
29
27
  }, "ref"> & {
30
- children: ReactNode | ((pages: PublicApi<JSX.IntrinsicElements & {
31
- element: HTMLAttributes<HTMLElement>;
32
- style: CSSProperties;
33
- }>) => ReactNode);
34
- }, "getRootNode" | "id" | "ids" | "orientation" | "spacing" | "dir" | "loop" | "align" | "slidesPerView" | "index" | "onSlideChange"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & RefAttributes<HTMLDivElement>>;
28
+ children?: ReactNode | ((pages: UseCarouselReturn) => ReactNode);
29
+ }, "getRootNode" | "id" | "ids" | "dir" | "orientation" | "spacing" | "loop" | "align" | "slidesPerView" | "index" | "onSlideChange"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & RefAttributes<HTMLDivElement>>;
35
30
  Control: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
36
31
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
37
32
  } & {
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { Carousel as Carousel$1 } from './carousel.mjs';
2
3
  export { useCarouselContext } from './carousel-context.mjs';
3
4
  import { CarouselControl } from './carousel-control.mjs';
@@ -1,10 +1,5 @@
1
- import { HTMLAttributes, CSSProperties } from 'react';
2
- /// <reference types="react" />
3
1
  import * as carousel from '@zag-js/carousel';
4
2
  import { type Optional } from '../types';
5
3
  export type UseCarouselProps = Optional<carousel.Context, 'id'>;
6
- export type UseCarouselReturn = ReturnType<typeof useCarousel>;
7
- export declare const useCarousel: (props: UseCarouselProps) => carousel.PublicApi<JSX.IntrinsicElements & {
8
- element: HTMLAttributes<HTMLElement>;
9
- style: CSSProperties;
10
- }>;
4
+ export type UseCarouselReturn = carousel.Api;
5
+ export declare const useCarousel: (props: UseCarouselProps) => UseCarouselReturn;
@@ -1,12 +1,5 @@
1
- import { PublicApi } from '@zag-js/checkbox';
2
- import { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { Provider } from 'react';
3
2
  /// <reference types="react" />
4
3
  import { type UseCheckboxReturn } from './use-checkbox';
5
4
  export type CheckboxContext = UseCheckboxReturn;
6
- export declare const CheckboxProvider: Provider<PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>>, useCheckboxContext: () => PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
5
+ export declare const CheckboxProvider: Provider<UseCheckboxReturn>, useCheckboxContext: () => UseCheckboxReturn;
@@ -4,12 +4,12 @@ import { type Assign } from '../types';
4
4
  import { type CheckboxContext } from './checkbox-context';
5
5
  import { type UseCheckboxProps } from './use-checkbox';
6
6
  export type CheckboxProps = Assign<ComponentPropsWithoutRef<typeof ark.label>, Assign<UseCheckboxProps, {
7
- children: ReactNode | ((pages: CheckboxContext) => ReactNode);
7
+ children?: ReactNode | ((pages: CheckboxContext) => ReactNode);
8
8
  }>>;
9
9
  export declare const Checkbox: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
10
10
  ref?: ((instance: HTMLLabelElement | null) => void) | RefObject<HTMLLabelElement> | null | undefined;
11
11
  } & {
12
12
  asChild?: boolean | undefined;
13
- }, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "onChange" | "defaultChecked" | "dir" | "checked" | "required" | "invalid"> & Omit<UseCheckboxProps, "children"> & {
14
- children: ReactNode | ((pages: CheckboxContext) => ReactNode);
13
+ }, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultChecked" | "dir" | "onChange" | "checked" | "required" | "invalid"> & Omit<UseCheckboxProps, "children"> & {
14
+ children?: ReactNode | ((pages: CheckboxContext) => ReactNode);
15
15
  } & RefAttributes<HTMLLabelElement>>;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
@@ -1,7 +1,7 @@
1
- import { UseCheckboxProps } from './use-checkbox';
2
- import { ForwardRefExoticComponent, DetailedHTMLProps, LabelHTMLAttributes, RefObject, ReactNode, HTMLAttributes, CSSProperties, RefAttributes } from 'react';
1
+ import { UseCheckboxProps, UseCheckboxReturn } from './use-checkbox';
2
+ import { ForwardRefExoticComponent, DetailedHTMLProps, LabelHTMLAttributes, RefObject, ReactNode, RefAttributes, HTMLAttributes } from 'react';
3
3
  /// <reference types="react" />
4
- import { PublicApi, CheckedState } from '@zag-js/checkbox';
4
+ import type { CheckedState } from '@zag-js/checkbox';
5
5
  import { type CheckboxProps } from './checkbox';
6
6
  import { useCheckboxContext } from './checkbox-context';
7
7
  import { CheckboxControl, type CheckboxControlProps } from './checkbox-control';
@@ -11,21 +11,15 @@ declare const Checkbox: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLPro
11
11
  ref?: ((instance: HTMLLabelElement | null) => void) | RefObject<HTMLLabelElement> | null | undefined;
12
12
  } & {
13
13
  asChild?: boolean | undefined;
14
- }, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "onChange" | "defaultChecked" | "dir" | "checked" | "required" | "invalid"> & Omit<UseCheckboxProps, "children"> & {
15
- children: ReactNode | ((pages: PublicApi<JSX.IntrinsicElements & {
16
- element: HTMLAttributes<HTMLElement>;
17
- style: CSSProperties;
18
- }>) => ReactNode);
14
+ }, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultChecked" | "dir" | "onChange" | "checked" | "required" | "invalid"> & Omit<UseCheckboxProps, "children"> & {
15
+ children?: ReactNode | ((pages: UseCheckboxReturn) => ReactNode);
19
16
  } & RefAttributes<HTMLLabelElement>> & {
20
17
  Root: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
21
18
  ref?: ((instance: HTMLLabelElement | null) => void) | RefObject<HTMLLabelElement> | null | undefined;
22
19
  } & {
23
20
  asChild?: boolean | undefined;
24
- }, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "onChange" | "defaultChecked" | "dir" | "checked" | "required" | "invalid"> & Omit<UseCheckboxProps, "children"> & {
25
- children: ReactNode | ((pages: PublicApi<JSX.IntrinsicElements & {
26
- element: HTMLAttributes<HTMLElement>;
27
- style: CSSProperties;
28
- }>) => ReactNode);
21
+ }, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultChecked" | "dir" | "onChange" | "checked" | "required" | "invalid"> & Omit<UseCheckboxProps, "children"> & {
22
+ children?: ReactNode | ((pages: UseCheckboxReturn) => ReactNode);
29
23
  } & RefAttributes<HTMLLabelElement>>;
30
24
  Control: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
31
25
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { Checkbox as Checkbox$1 } from './checkbox.mjs';
2
3
  export { useCheckboxContext } from './checkbox-context.mjs';
3
4
  import { CheckboxControl } from './checkbox-control.mjs';
@@ -1,12 +1,7 @@
1
- import { HTMLAttributes, CSSProperties } from 'react';
2
- /// <reference types="react" />
3
1
  import * as checkbox from '@zag-js/checkbox';
4
2
  import { type Optional } from '../types';
5
3
  export type UseCheckboxProps = Optional<checkbox.Context, 'id'> & {
6
4
  defaultChecked?: boolean;
7
5
  };
8
- export type UseCheckboxReturn = ReturnType<typeof useCheckbox>;
9
- export declare const useCheckbox: (props: UseCheckboxProps) => checkbox.PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
6
+ export type UseCheckboxReturn = checkbox.Api;
7
+ export declare const useCheckbox: (props: UseCheckboxProps) => UseCheckboxReturn;
@@ -1,12 +1,5 @@
1
- import { PublicApi } from '@zag-js/color-picker';
2
- import { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { Provider } from 'react';
3
2
  /// <reference types="react" />
4
3
  import { type UseColorPickerReturn } from './use-color-picker';
5
4
  export type ColorPickerContext = UseColorPickerReturn;
6
- export declare const ColorPickerProvider: Provider<PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>>, useColorPickerContext: () => PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
5
+ export declare const ColorPickerProvider: Provider<UseColorPickerReturn>, useColorPickerContext: () => UseColorPickerReturn;
@@ -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 { ColorPicker as ColorPicker$1 } from './color-picker.mjs';
2
3
  import { ColorPickerArea } from './color-picker-area.mjs';
3
4
  export { useColorPickerAreaContext } from './color-picker-area-context.mjs';
@@ -1,12 +1,7 @@
1
- import { HTMLAttributes, CSSProperties } from 'react';
2
- /// <reference types="react" />
3
1
  import * as colorPicker from '@zag-js/color-picker';
4
2
  import type { Optional } from '../types';
5
3
  export type UseColorPickerProps = Optional<colorPicker.Context, 'id'> & {
6
4
  defaultValue?: colorPicker.Context['value'];
7
5
  };
8
- export type UseColorPickerReturn = ReturnType<typeof useColorPicker>;
9
- export declare const useColorPicker: (props: UseColorPickerProps) => colorPicker.PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
6
+ export type UseColorPickerReturn = colorPicker.Api;
7
+ export declare const useColorPicker: (props: UseColorPickerProps) => UseColorPickerReturn;
@@ -1,12 +1,5 @@
1
- import { PublicApi } from '@zag-js/combobox';
2
- import { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { Provider } from 'react';
3
2
  /// <reference types="react" />
4
3
  import { type UseComboboxReturn } from './use-combobox';
5
4
  export type ComboboxContext = UseComboboxReturn;
6
- export declare const ComboboxProvider: Provider<PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>>, useComboboxContext: () => PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
5
+ export declare const ComboboxProvider: Provider<UseComboboxReturn>, useComboboxContext: () => UseComboboxReturn;
@@ -46,7 +46,6 @@ const Combobox = react.forwardRef((props, ref) => {
46
46
  "placeholder",
47
47
  "positioning",
48
48
  "readOnly",
49
- "selectInputOnFocus",
50
49
  "selectionBehavior",
51
50
  "selectionData",
52
51
  "selectOnTab",
@@ -10,6 +10,6 @@ export declare const Combobox: ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Det
10
10
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
11
11
  } & {
12
12
  asChild?: boolean | undefined;
13
- }, "ref">, "children">, "name" | "getRootNode" | "form" | "id" | "ids" | "onOpen" | "onClose" | "positioning" | "disabled" | "onSelect" | "autoFocus" | "dir" | "placeholder" | "loop" | "readOnly" | "invalid" | "inputValue" | "selectionData" | "inputBehavior" | "blurOnSelect" | "selectionBehavior" | "selectOnTab" | "selectInputOnFocus" | "focusOnClear" | "openOnClick" | "allowCustomValue" | "ariaHidden" | "isCustomValue" | "onInputChange" | "onHighlight" | "translations" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
13
+ }, "ref">, "children">, "name" | "getRootNode" | "form" | "id" | "ids" | "onOpen" | "onClose" | "positioning" | "disabled" | "autoFocus" | "dir" | "placeholder" | "onSelect" | "readOnly" | "loop" | "invalid" | "inputValue" | "selectionData" | "inputBehavior" | "blurOnSelect" | "selectionBehavior" | "selectOnTab" | "focusOnClear" | "openOnClick" | "allowCustomValue" | "ariaHidden" | "isCustomValue" | "onInputChange" | "onHighlight" | "translations" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
14
14
  children?: ReactNode | ((props: UseComboboxReturn) => React.ReactNode);
15
15
  } & RefAttributes<HTMLDivElement>>;
@@ -42,7 +42,6 @@ const Combobox = forwardRef((props, ref) => {
42
42
  "placeholder",
43
43
  "positioning",
44
44
  "readOnly",
45
- "selectInputOnFocus",
46
45
  "selectionBehavior",
47
46
  "selectionData",
48
47
  "selectOnTab",
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
@@ -1,6 +1,7 @@
1
1
  import { PresenceProps } from '..';
2
- import { Context, PublicApi, OptionData, OptionGroupProps, OptionGroupLabelProps } from '@zag-js/combobox';
3
- import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, ReactNode, CSSProperties, RefAttributes, ButtonHTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes } from 'react';
2
+ import { UseComboboxReturn } from './use-combobox';
3
+ import { Context, OptionData, OptionGroupProps, OptionGroupLabelProps } from '@zag-js/combobox';
4
+ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, ReactNode, RefAttributes, ButtonHTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes } from 'react';
4
5
  /// <reference types="react" />
5
6
  import { type ComboboxProps } from './combobox';
6
7
  import { ComboboxClearTrigger, type ComboboxClearTriggerProps } from './combobox-clear-trigger';
@@ -19,21 +20,15 @@ declare const Combobox: ForwardRefExoticComponent<Omit<Omit<Omit<Omit<DetailedHT
19
20
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
20
21
  } & {
21
22
  asChild?: boolean | undefined;
22
- }, "ref">, "children">, "name" | "getRootNode" | "form" | "id" | "ids" | "onOpen" | "onClose" | "positioning" | "disabled" | "onSelect" | "autoFocus" | "dir" | "placeholder" | "loop" | "readOnly" | "invalid" | "inputValue" | "selectionData" | "inputBehavior" | "blurOnSelect" | "selectionBehavior" | "selectOnTab" | "selectInputOnFocus" | "focusOnClear" | "openOnClick" | "allowCustomValue" | "ariaHidden" | "isCustomValue" | "onInputChange" | "onHighlight" | "translations" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
23
- children?: ReactNode | ((props: PublicApi<JSX.IntrinsicElements & {
24
- element: HTMLAttributes<HTMLElement>;
25
- style: CSSProperties;
26
- }>) => ReactNode);
23
+ }, "ref">, "children">, "name" | "getRootNode" | "form" | "id" | "ids" | "onOpen" | "onClose" | "positioning" | "disabled" | "autoFocus" | "dir" | "placeholder" | "onSelect" | "readOnly" | "loop" | "invalid" | "inputValue" | "selectionData" | "inputBehavior" | "blurOnSelect" | "selectionBehavior" | "selectOnTab" | "focusOnClear" | "openOnClick" | "allowCustomValue" | "ariaHidden" | "isCustomValue" | "onInputChange" | "onHighlight" | "translations" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
24
+ children?: ReactNode | ((props: UseComboboxReturn) => ReactNode);
27
25
  } & RefAttributes<HTMLDivElement>> & {
28
26
  Root: ForwardRefExoticComponent<Omit<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
29
27
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
30
28
  } & {
31
29
  asChild?: boolean | undefined;
32
- }, "ref">, "children">, "name" | "getRootNode" | "form" | "id" | "ids" | "onOpen" | "onClose" | "positioning" | "disabled" | "onSelect" | "autoFocus" | "dir" | "placeholder" | "loop" | "readOnly" | "invalid" | "inputValue" | "selectionData" | "inputBehavior" | "blurOnSelect" | "selectionBehavior" | "selectOnTab" | "selectInputOnFocus" | "focusOnClear" | "openOnClick" | "allowCustomValue" | "ariaHidden" | "isCustomValue" | "onInputChange" | "onHighlight" | "translations" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
33
- children?: ReactNode | ((props: PublicApi<JSX.IntrinsicElements & {
34
- element: HTMLAttributes<HTMLElement>;
35
- style: CSSProperties;
36
- }>) => ReactNode);
30
+ }, "ref">, "children">, "name" | "getRootNode" | "form" | "id" | "ids" | "onOpen" | "onClose" | "positioning" | "disabled" | "autoFocus" | "dir" | "placeholder" | "onSelect" | "readOnly" | "loop" | "invalid" | "inputValue" | "selectionData" | "inputBehavior" | "blurOnSelect" | "selectionBehavior" | "selectOnTab" | "focusOnClear" | "openOnClick" | "allowCustomValue" | "ariaHidden" | "isCustomValue" | "onInputChange" | "onHighlight" | "translations" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
31
+ children?: ReactNode | ((props: UseComboboxReturn) => ReactNode);
37
32
  } & RefAttributes<HTMLDivElement>>;
38
33
  ClearTrigger: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
39
34
  ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { Combobox as Combobox$1 } from './combobox.mjs';
2
3
  import { ComboboxClearTrigger } from './combobox-clear-trigger.mjs';
3
4
  import { ComboboxContent } from './combobox-content.mjs';
@@ -1,10 +1,5 @@
1
- import { HTMLAttributes, CSSProperties } from 'react';
2
- /// <reference types="react" />
3
1
  import * as combobox from '@zag-js/combobox';
4
2
  import { type Optional } from '../types';
5
3
  export type UseComboboxProps = Optional<combobox.Context, 'id'>;
6
- export declare const useCombobox: (props: UseComboboxProps) => combobox.PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>;
10
- export type UseComboboxReturn = ReturnType<typeof useCombobox>;
4
+ export type UseComboboxReturn = combobox.Api;
5
+ export declare const useCombobox: (props: UseComboboxProps) => UseComboboxReturn;
package/compose-refs.cjs CHANGED
@@ -1,4 +1,3 @@
1
- 'use client';
2
1
  'use strict';
3
2
 
4
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
package/compose-refs.mjs CHANGED
@@ -1,4 +1,3 @@
1
- 'use client';
2
1
  function setRef(ref, value) {
3
2
  if (typeof ref === "function") {
4
3
  ref(value);
@@ -1,12 +1,5 @@
1
- import { PublicApi } from '@zag-js/date-picker';
2
- import { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { Provider } from 'react';
3
2
  /// <reference types="react" />
4
3
  import { type UseDatePickerReturn } from './use-date-picker';
5
4
  export type DatePickerContext = UseDatePickerReturn;
6
- export declare const DatePickerProvider: Provider<PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>>, useDatePickerContext: () => PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
5
+ export declare const DatePickerProvider: Provider<UseDatePickerReturn>, useDatePickerContext: () => UseDatePickerReturn;
@@ -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 { DatePicker as DatePicker$1 } from './date-picker.mjs';
2
3
  export { useDatePickerCellContext } from './date-picker-cell-context.mjs';
3
4
  import { DatePickerClearTrigger } from './date-picker-clear-trigger.mjs';