@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
@@ -1,10 +1,5 @@
1
- import { HTMLAttributes, CSSProperties } from 'react';
2
- /// <reference types="react" />
3
1
  import * as datePicker from '@zag-js/date-picker';
4
2
  import type { Optional } from '../types';
5
3
  export type UseDatePickerProps = Optional<datePicker.Context, 'id'>;
6
- export type UseDatePickerReturn = ReturnType<typeof useDatePicker>;
7
- export declare const useDatePicker: (props: UseDatePickerProps) => datePicker.PublicApi<JSX.IntrinsicElements & {
8
- element: HTMLAttributes<HTMLElement>;
9
- style: CSSProperties;
10
- }>;
4
+ export type UseDatePickerReturn = datePicker.Api;
5
+ export declare const useDatePicker: (props: UseDatePickerProps) => UseDatePickerReturn;
@@ -1,12 +1,5 @@
1
- import { PublicApi } from '@zag-js/dialog';
2
- import { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { Provider } from 'react';
3
2
  /// <reference types="react" />
4
3
  import { type UseDialogReturn } from './use-dialog';
5
4
  export type DialogContext = UseDialogReturn;
6
- export declare const DialogProvider: Provider<PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>>, useDialogContext: () => PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
5
+ export declare const DialogProvider: Provider<UseDialogReturn>, useDialogContext: () => UseDialogReturn;
package/dialog/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/dialog/index.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { Dialog as Dialog$1 } from './dialog.mjs';
2
3
  import { DialogBackdrop } from './dialog-backdrop.mjs';
3
4
  import { DialogCloseTrigger } from './dialog-close-trigger.mjs';
@@ -1,10 +1,5 @@
1
- import { HTMLAttributes, CSSProperties } from 'react';
2
- /// <reference types="react" />
3
1
  import * as dialog from '@zag-js/dialog';
4
2
  import { type Optional } from '../types';
5
3
  export type UseDialogProps = Optional<dialog.Context, 'id'>;
6
- export declare const useDialog: (props: UseDialogProps) => dialog.PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>;
10
- export type UseDialogReturn = ReturnType<typeof useDialog>;
4
+ export type UseDialogReturn = dialog.Api;
5
+ export declare const useDialog: (props: UseDialogProps) => UseDialogReturn;
@@ -1,12 +1,5 @@
1
- import { PublicApi } from '@zag-js/editable';
2
- import { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { Provider } from 'react';
3
2
  /// <reference types="react" />
4
3
  import { type UseEditableReturn } from './use-editable';
5
4
  export type EditableContext = UseEditableReturn;
6
- export declare const EditableProvider: Provider<PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>>, useEditableContext: () => PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
5
+ export declare const EditableProvider: Provider<UseEditableReturn>, useEditableContext: () => UseEditableReturn;
@@ -5,14 +5,14 @@ import { type Assign } from '../types';
5
5
  import { type EditableContext } from './editable-context';
6
6
  import { type UseEditableProps } from './use-editable';
7
7
  export type EditableProps = Assign<Omit<ComponentPropsWithoutRef<typeof ark.div>, 'children'> & {
8
- children: ReactNode | ((pages: EditableContext) => ReactNode);
8
+ children?: ReactNode | ((pages: EditableContext) => ReactNode);
9
9
  }, UseEditableProps>;
10
10
  export declare const Editable: ForwardRefExoticComponent<Omit<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">, "children"> & {
15
- children: ReactNode | ((pages: EditableContext) => ReactNode);
16
- }, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "onChange" | "onSubmit" | "defaultValue" | "dir" | "placeholder" | "onCancel" | "maxLength" | "readOnly" | "invalid" | "translations" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "finalFocusEl" | "autoResize" | "activationMode" | "submitMode" | "startWithEditView" | "selectOnFocus" | "onEdit"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
15
+ children?: ReactNode | ((pages: EditableContext) => ReactNode);
16
+ }, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultValue" | "dir" | "placeholder" | "onChange" | "onSubmit" | "maxLength" | "readOnly" | "onCancel" | "invalid" | "translations" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "finalFocusEl" | "autoResize" | "activationMode" | "submitMode" | "startWithEditView" | "selectOnFocus" | "onEdit"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
17
17
  defaultValue?: string | undefined;
18
18
  } & 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 } from '@zag-js/editable';
2
- import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, ReactNode, CSSProperties, RefAttributes, ButtonHTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes } from 'react';
1
+ import { Context } from '@zag-js/editable';
2
+ import { UseEditableReturn } from './use-editable';
3
+ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, ReactNode, RefAttributes, ButtonHTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes } from 'react';
3
4
  /// <reference types="react" />
4
5
  import { type EditableProps } from './editable';
5
6
  import { EditableArea, type EditableAreaProps } from './editable-area';
@@ -17,11 +18,8 @@ declare const Editable: ForwardRefExoticComponent<Omit<Omit<Omit<Omit<DetailedHT
17
18
  } & {
18
19
  asChild?: boolean | undefined;
19
20
  }, "ref">, "children"> & {
20
- children: ReactNode | ((pages: PublicApi<JSX.IntrinsicElements & {
21
- element: HTMLAttributes<HTMLElement>;
22
- style: CSSProperties;
23
- }>) => ReactNode);
24
- }, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "onChange" | "onSubmit" | "defaultValue" | "dir" | "placeholder" | "onCancel" | "maxLength" | "readOnly" | "invalid" | "translations" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "finalFocusEl" | "autoResize" | "activationMode" | "submitMode" | "startWithEditView" | "selectOnFocus" | "onEdit"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
21
+ children?: ReactNode | ((pages: UseEditableReturn) => ReactNode);
22
+ }, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultValue" | "dir" | "placeholder" | "onChange" | "onSubmit" | "maxLength" | "readOnly" | "onCancel" | "invalid" | "translations" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "finalFocusEl" | "autoResize" | "activationMode" | "submitMode" | "startWithEditView" | "selectOnFocus" | "onEdit"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
25
23
  defaultValue?: string | undefined;
26
24
  } & RefAttributes<HTMLDivElement>> & {
27
25
  Root: ForwardRefExoticComponent<Omit<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
@@ -29,11 +27,8 @@ declare const Editable: ForwardRefExoticComponent<Omit<Omit<Omit<Omit<DetailedHT
29
27
  } & {
30
28
  asChild?: boolean | undefined;
31
29
  }, "ref">, "children"> & {
32
- children: ReactNode | ((pages: PublicApi<JSX.IntrinsicElements & {
33
- element: HTMLAttributes<HTMLElement>;
34
- style: CSSProperties;
35
- }>) => ReactNode);
36
- }, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "onChange" | "onSubmit" | "defaultValue" | "dir" | "placeholder" | "onCancel" | "maxLength" | "readOnly" | "invalid" | "translations" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "finalFocusEl" | "autoResize" | "activationMode" | "submitMode" | "startWithEditView" | "selectOnFocus" | "onEdit"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
30
+ children?: ReactNode | ((pages: UseEditableReturn) => ReactNode);
31
+ }, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultValue" | "dir" | "placeholder" | "onChange" | "onSubmit" | "maxLength" | "readOnly" | "onCancel" | "invalid" | "translations" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "finalFocusEl" | "autoResize" | "activationMode" | "submitMode" | "startWithEditView" | "selectOnFocus" | "onEdit"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
37
32
  defaultValue?: string | undefined;
38
33
  } & RefAttributes<HTMLDivElement>>;
39
34
  Area: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { Editable as Editable$1 } from './editable.mjs';
2
3
  import { EditableArea } from './editable-area.mjs';
3
4
  import { EditableCancelTrigger } from './editable-cancel-trigger.mjs';
@@ -1,12 +1,7 @@
1
- import { HTMLAttributes, CSSProperties } from 'react';
2
- /// <reference types="react" />
3
1
  import * as editable from '@zag-js/editable';
4
2
  import { type Optional } from '../types';
5
3
  export type UseEditableProps = Optional<editable.Context, 'id'> & {
6
4
  defaultValue?: editable.Context['value'];
7
5
  };
8
- export type UseEditableReturn = ReturnType<typeof useEditable>;
9
- export declare const useEditable: (props: UseEditableProps) => editable.PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
6
+ export type UseEditableReturn = editable.MachineApi;
7
+ export declare const useEditable: (props: UseEditableProps) => UseEditableReturn;
@@ -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 { Environment as Environment$1 } from './environment.mjs';
2
3
  export { useEnvironmentContext } from './environment-context.mjs';
3
4
 
package/factory.cjs CHANGED
@@ -1,10 +1,9 @@
1
- 'use client';
2
1
  'use strict';
3
2
 
4
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
4
 
6
5
  const jsxRuntime = require('react/jsx-runtime');
7
- const react$1 = require('@zag-js/react');
6
+ const core = require('@zag-js/core');
8
7
  const react = require('react');
9
8
  const composeRefs = require('./compose-refs.cjs');
10
9
 
@@ -16,7 +15,7 @@ const withAsChild = (Component) => {
16
15
  }
17
16
  const onlyChild = react.Children.only(children);
18
17
  return react.isValidElement(onlyChild) ? react.cloneElement(onlyChild, {
19
- ...react$1.mergeProps(restProps, onlyChild.props),
18
+ ...core.mergeProps(restProps, onlyChild.props),
20
19
  ref: ref ? composeRefs.composeRefs(ref, onlyChild.ref) : onlyChild.ref
21
20
  }) : null;
22
21
  });
package/factory.mjs CHANGED
@@ -1,6 +1,5 @@
1
- 'use client';
2
1
  import { jsx } from 'react/jsx-runtime';
3
- import { mergeProps } from '@zag-js/react';
2
+ import { mergeProps } from '@zag-js/core';
4
3
  import { forwardRef, Children, isValidElement, cloneElement } from 'react';
5
4
  import { composeRefs } from './compose-refs.mjs';
6
5
 
@@ -1,12 +1,5 @@
1
- import { PublicApi } from '@zag-js/hover-card';
2
- import { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { Provider } from 'react';
3
2
  /// <reference types="react" />
4
3
  import { type UseHoverCardReturn } from './use-hover-card';
5
4
  export type HoverCardContext = UseHoverCardReturn;
6
- export declare const HoverCardProvider: Provider<PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>>, useHoverCardContext: () => PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
5
+ export declare const HoverCardProvider: Provider<UseHoverCardReturn>, useHoverCardContext: () => UseHoverCardReturn;
@@ -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 { HoverCard as HoverCard$1 } from './hover-card.mjs';
2
3
  import { HoverCardArrow } from './hover-card-arrow.mjs';
3
4
  import { HoverCardArrowTip } from './hover-card-arrow-tip.mjs';
@@ -1,10 +1,5 @@
1
- import { HTMLAttributes, CSSProperties } from 'react';
2
- /// <reference types="react" />
3
1
  import * as hoverCard from '@zag-js/hover-card';
4
2
  import { type Optional } from '../types';
5
3
  export type UseHoverCardProps = Optional<hoverCard.Context, 'id'>;
6
- export declare const useHoverCard: (props: UseHoverCardProps) => hoverCard.PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>;
10
- export type UseHoverCardReturn = ReturnType<typeof useHoverCard>;
4
+ export type UseHoverCardReturn = hoverCard.Api;
5
+ export declare const useHoverCard: (props: UseHoverCardProps) => UseHoverCardReturn;
package/index.cjs CHANGED
@@ -243,7 +243,6 @@ const splitterResizeTrigger = require('./splitter/splitter-resize-trigger.cjs');
243
243
  const splitter = require('@zag-js/splitter');
244
244
  const splitterContext = require('./splitter/splitter-context.cjs');
245
245
  const switchControl = require('./switch/switch-control.cjs');
246
- const switchInput = require('./switch/switch-input.cjs');
247
246
  const switchLabel = require('./switch/switch-label.cjs');
248
247
  const switchThumb = require('./switch/switch-thumb.cjs');
249
248
  const zagSwitch = require('@zag-js/switch');
@@ -581,7 +580,6 @@ Object.defineProperty(exports, 'splitterAnatomy', {
581
580
  });
582
581
  exports.useSplitterContext = splitterContext.useSplitterContext;
583
582
  exports.SwitchControl = switchControl.SwitchControl;
584
- exports.SwitchInput = switchInput.SwitchInput;
585
583
  exports.SwitchLabel = switchLabel.SwitchLabel;
586
584
  exports.SwitchThumb = switchThumb.SwitchThumb;
587
585
  Object.defineProperty(exports, 'switchAnatomy', {
package/index.mjs CHANGED
@@ -239,7 +239,6 @@ export { SplitterResizeTrigger } from './splitter/splitter-resize-trigger.mjs';
239
239
  export { anatomy as splitterAnatomy } from '@zag-js/splitter';
240
240
  export { useSplitterContext } from './splitter/splitter-context.mjs';
241
241
  export { SwitchControl } from './switch/switch-control.mjs';
242
- export { SwitchInput } from './switch/switch-input.mjs';
243
242
  export { SwitchLabel } from './switch/switch-label.mjs';
244
243
  export { SwitchThumb } from './switch/switch-thumb.mjs';
245
244
  export { anatomy as switchAnatomy } from '@zag-js/switch';
package/menu/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/menu/index.d.ts CHANGED
@@ -39,8 +39,8 @@ declare const Menu: ((props: MenuProps) => JSX.Element) & {
39
39
  } & {
40
40
  asChild?: boolean | undefined;
41
41
  }, "ref"> & RefAttributes<HTMLButtonElement>>;
42
- Item: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
43
- ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
42
+ Item: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
43
+ ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
44
44
  } & {
45
45
  asChild?: boolean | undefined;
46
46
  }, "ref">, keyof ItemProps> & ItemProps & RefAttributes<HTMLDivElement>>;
package/menu/index.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { Menu as Menu$1 } from './menu.mjs';
2
3
  import { MenuArrow } from './menu-arrow.mjs';
3
4
  import { MenuArrowTip } from './menu-arrow-tip.mjs';
@@ -1,13 +1,10 @@
1
- import { ItemProps } from '@zag-js/menu';
2
- import { ForwardRefExoticComponent, DetailedHTMLProps, ButtonHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
1
+ import type { ItemProps } from '@zag-js/menu';
2
+ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
3
3
  import { ark } from '../factory';
4
4
  import { type Assign } from '../types';
5
- import { type UseMenuReturn } from './use-menu';
6
- type MenuItemParams = Parameters<UseMenuReturn['api']['getItemProps']>[0];
7
- export type MenuItemProps = Assign<ComponentPropsWithoutRef<typeof ark.button>, MenuItemParams>;
8
- export declare const MenuItem: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
9
- ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
5
+ export type MenuItemProps = Assign<ComponentPropsWithoutRef<typeof ark.div>, ItemProps>;
6
+ export declare const MenuItem: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
7
+ ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
10
8
  } & {
11
9
  asChild?: boolean | undefined;
12
10
  }, "ref">, keyof ItemProps> & ItemProps & RefAttributes<HTMLDivElement>>;
13
- export {};
@@ -3,6 +3,6 @@ import { type Optional } from '../types';
3
3
  export type UseMenuProps = Optional<menu.Context, 'id'>;
4
4
  export type UseMenuReturn = {
5
5
  machine: ReturnType<typeof menu.machine>;
6
- api: ReturnType<typeof menu.connect>;
6
+ api: menu.Api;
7
7
  };
8
8
  export declare const useMenu: (props: UseMenuProps) => UseMenuReturn;
@@ -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 NumberInput: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTML
14
14
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
15
15
  } & {
16
16
  asChild?: boolean | undefined;
17
- }, "ref">, "name" | "value" | "getRootNode" | "form" | "pattern" | "id" | "ids" | "disabled" | "max" | "min" | "format" | "onFocus" | "onBlur" | "onChange" | "onInvalid" | "defaultValue" | "dir" | "inputMode" | "readOnly" | "step" | "invalid" | "translations" | "parse" | "allowMouseWheel" | "allowOverflow" | "validateCharacter" | "clampValueOnBlur" | "focusInputOnChange" | "minFractionDigits" | "maxFractionDigits" | "spinOnPress"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
17
+ }, "ref">, "name" | "value" | "getRootNode" | "form" | "pattern" | "id" | "ids" | "disabled" | "defaultValue" | "dir" | "inputMode" | "onFocus" | "onBlur" | "onChange" | "onInvalid" | "max" | "min" | "readOnly" | "step" | "format" | "invalid" | "translations" | "parse" | "allowMouseWheel" | "allowOverflow" | "validateCharacter" | "clampValueOnBlur" | "focusInputOnChange" | "minFractionDigits" | "maxFractionDigits" | "spinOnPress"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
18
18
  defaultValue?: string | 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" | "pattern" | "id" | "ids" | "disabled" | "max" | "min" | "format" | "onFocus" | "onBlur" | "onChange" | "onInvalid" | "defaultValue" | "dir" | "inputMode" | "readOnly" | "step" | "invalid" | "translations" | "parse" | "allowMouseWheel" | "allowOverflow" | "validateCharacter" | "clampValueOnBlur" | "focusInputOnChange" | "minFractionDigits" | "maxFractionDigits" | "spinOnPress"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
24
+ }, "ref">, "name" | "value" | "getRootNode" | "form" | "pattern" | "id" | "ids" | "disabled" | "defaultValue" | "dir" | "inputMode" | "onFocus" | "onBlur" | "onChange" | "onInvalid" | "max" | "min" | "readOnly" | "step" | "format" | "invalid" | "translations" | "parse" | "allowMouseWheel" | "allowOverflow" | "validateCharacter" | "clampValueOnBlur" | "focusInputOnChange" | "minFractionDigits" | "maxFractionDigits" | "spinOnPress"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
25
25
  defaultValue?: string | undefined;
26
26
  } & RefAttributes<HTMLDivElement>>;
27
27
  Control: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { NumberInput as NumberInput$1 } from './number-input.mjs';
2
3
  export { useNumberInputContext } from './number-input-context.mjs';
3
4
  import { NumberInputControl } from './number-input-control.mjs';
@@ -1,12 +1,5 @@
1
- import { PublicApi } from '@zag-js/number-input';
2
- import { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { Provider } from 'react';
3
2
  /// <reference types="react" />
4
3
  import { type UseNumberInputReturn } from './use-number-input';
5
4
  export type NumberInputContext = UseNumberInputReturn;
6
- export declare const NumberInputProvider: Provider<PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>>, useNumberInputContext: () => PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
5
+ export declare const NumberInputProvider: Provider<UseNumberInputReturn>, useNumberInputContext: () => UseNumberInputReturn;
@@ -8,6 +8,6 @@ export declare const NumberInput: 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" | "pattern" | "id" | "ids" | "disabled" | "max" | "min" | "format" | "onFocus" | "onBlur" | "onChange" | "onInvalid" | "defaultValue" | "dir" | "inputMode" | "readOnly" | "step" | "invalid" | "translations" | "parse" | "allowMouseWheel" | "allowOverflow" | "validateCharacter" | "clampValueOnBlur" | "focusInputOnChange" | "minFractionDigits" | "maxFractionDigits" | "spinOnPress"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
11
+ }, "ref">, "name" | "value" | "getRootNode" | "form" | "pattern" | "id" | "ids" | "disabled" | "defaultValue" | "dir" | "inputMode" | "onFocus" | "onBlur" | "onChange" | "onInvalid" | "max" | "min" | "readOnly" | "step" | "format" | "invalid" | "translations" | "parse" | "allowMouseWheel" | "allowOverflow" | "validateCharacter" | "clampValueOnBlur" | "focusInputOnChange" | "minFractionDigits" | "maxFractionDigits" | "spinOnPress"> & 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 numberInput from '@zag-js/number-input';
4
2
  import { type Optional } from '../types';
5
3
  export type UseNumberInputProps = Optional<numberInput.Context, 'id'> & {
6
4
  defaultValue?: numberInput.Context['value'];
7
5
  };
8
- export declare const useNumberInput: (props: UseNumberInputProps) => numberInput.PublicApi<JSX.IntrinsicElements & {
9
- element: HTMLAttributes<HTMLElement>;
10
- style: CSSProperties;
11
- }>;
12
- export type UseNumberInputReturn = ReturnType<typeof useNumberInput>;
6
+ export type UseNumberInputReturn = numberInput.Api;
7
+ export declare const useNumberInput: (props: UseNumberInputProps) => UseNumberInputReturn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ark-ui/react",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.",
5
5
  "keywords": [
6
6
  "accordion",
@@ -60,74 +60,75 @@
60
60
  "release-it": "release-it --config ../../release-it.json"
61
61
  },
62
62
  "dependencies": {
63
- "@zag-js/accordion": "0.16.0",
64
- "@zag-js/anatomy": "0.16.0",
65
- "@zag-js/avatar": "0.16.0",
66
- "@zag-js/carousel": "0.16.0",
67
- "@zag-js/checkbox": "0.16.0",
68
- "@zag-js/color-picker": "0.16.0",
69
- "@zag-js/color-utils": "0.16.0",
70
- "@zag-js/combobox": "0.16.0",
71
- "@zag-js/date-picker": "0.16.0",
72
- "@zag-js/date-utils": "0.16.0",
73
- "@zag-js/dialog": "0.16.0",
74
- "@zag-js/editable": "0.16.0",
75
- "@zag-js/hover-card": "0.16.0",
76
- "@zag-js/menu": "0.16.0",
77
- "@zag-js/number-input": "0.16.0",
78
- "@zag-js/pagination": "0.16.0",
79
- "@zag-js/pin-input": "0.16.0",
80
- "@zag-js/popover": "0.16.0",
81
- "@zag-js/presence": "0.16.0",
82
- "@zag-js/pressable": "0.16.0",
83
- "@zag-js/radio-group": "0.16.0",
84
- "@zag-js/range-slider": "0.16.0",
85
- "@zag-js/rating-group": "0.16.0",
86
- "@zag-js/react": "0.16.0",
87
- "@zag-js/select": "0.16.0",
88
- "@zag-js/slider": "0.16.0",
89
- "@zag-js/splitter": "0.16.0",
90
- "@zag-js/switch": "0.16.0",
91
- "@zag-js/tabs": "0.16.0",
92
- "@zag-js/tags-input": "0.16.0",
93
- "@zag-js/toast": "0.16.0",
94
- "@zag-js/tooltip": "0.16.0",
95
- "@zag-js/types": "0.16.0"
63
+ "@zag-js/accordion": "0.17.0",
64
+ "@zag-js/anatomy": "0.17.0",
65
+ "@zag-js/avatar": "0.17.0",
66
+ "@zag-js/carousel": "0.17.0",
67
+ "@zag-js/checkbox": "0.17.0",
68
+ "@zag-js/color-picker": "0.17.0",
69
+ "@zag-js/color-utils": "0.17.0",
70
+ "@zag-js/combobox": "0.17.0",
71
+ "@zag-js/core": "0.17.0",
72
+ "@zag-js/date-picker": "0.17.0",
73
+ "@zag-js/date-utils": "0.17.0",
74
+ "@zag-js/dialog": "0.17.0",
75
+ "@zag-js/editable": "0.17.0",
76
+ "@zag-js/hover-card": "0.17.0",
77
+ "@zag-js/menu": "0.17.0",
78
+ "@zag-js/number-input": "0.17.0",
79
+ "@zag-js/pagination": "0.17.0",
80
+ "@zag-js/pin-input": "0.17.0",
81
+ "@zag-js/popover": "0.17.0",
82
+ "@zag-js/presence": "0.17.0",
83
+ "@zag-js/pressable": "0.17.0",
84
+ "@zag-js/radio-group": "0.17.0",
85
+ "@zag-js/range-slider": "0.17.0",
86
+ "@zag-js/rating-group": "0.17.0",
87
+ "@zag-js/react": "0.17.0",
88
+ "@zag-js/select": "0.17.0",
89
+ "@zag-js/slider": "0.17.0",
90
+ "@zag-js/splitter": "0.17.0",
91
+ "@zag-js/switch": "0.17.0",
92
+ "@zag-js/tabs": "0.17.0",
93
+ "@zag-js/tags-input": "0.17.0",
94
+ "@zag-js/toast": "0.17.0",
95
+ "@zag-js/tooltip": "0.17.0",
96
+ "@zag-js/types": "0.17.0"
96
97
  },
97
98
  "devDependencies": {
98
99
  "@release-it/keep-a-changelog": "4.0.0",
99
- "@storybook/addon-a11y": "7.2.2",
100
- "@storybook/addon-essentials": "7.2.2",
101
- "@storybook/addons": "7.2.2",
102
- "@storybook/react": "7.2.2",
103
- "@storybook/react-vite": "7.2.2",
100
+ "@storybook/addon-a11y": "7.3.2",
101
+ "@storybook/addon-essentials": "7.3.2",
102
+ "@storybook/addons": "7.3.2",
103
+ "@storybook/react": "7.3.2",
104
+ "@storybook/react-vite": "7.3.2",
104
105
  "@testing-library/dom": "9.3.1",
105
106
  "@testing-library/jest-dom": "5.17.0",
106
107
  "@testing-library/react": "14.0.0",
107
108
  "@testing-library/user-event": "14.4.3",
108
- "@types/jsdom": "21.1.1",
109
+ "@types/jsdom": "21.1.2",
109
110
  "@types/react": "18.2.17",
110
111
  "@types/react-dom": "18.2.7",
111
112
  "@types/testing-library__jest-dom": "5.14.9",
112
113
  "@typescript-eslint/eslint-plugin": "5.62.0",
113
114
  "@typescript-eslint/parser": "5.62.0",
114
115
  "@vitejs/plugin-react": "4.0.3",
115
- "@vitest/coverage-v8": "0.34.1",
116
- "eslint": "8.46.0",
117
- "eslint-plugin-react": "7.33.1",
116
+ "@vitest/coverage-v8": "0.34.2",
117
+ "eslint": "8.48.0",
118
+ "eslint-plugin-react": "7.33.2",
118
119
  "eslint-plugin-react-hooks": "4.6.0",
119
120
  "globby": "13.2.2",
120
121
  "jsdom": "22.1.0",
121
122
  "react": "18.2.0",
122
123
  "react-dom": "18.2.0",
123
124
  "react-frame-component": "5.2.6",
124
- "release-it": "16.1.4",
125
+ "release-it": "16.1.5",
125
126
  "resize-observer-polyfill": "1.5.1",
126
- "storybook": "7.2.2",
127
- "typescript": "5.1.6",
127
+ "storybook": "7.3.2",
128
+ "typescript": "5.2.2",
128
129
  "vite": "4.4.9",
129
- "vite-plugin-dts": "3.5.1",
130
- "vitest": "0.34.1"
130
+ "vite-plugin-dts": "3.5.3",
131
+ "vitest": "0.34.2"
131
132
  },
132
133
  "peerDependencies": {
133
134
  "react": ">=18.0.0",
@@ -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 { PublicApi, EllipsisProps, PageTriggerProps } from '@zag-js/pagination';
2
- import { UsePaginationProps } from './use-pagination';
1
+ import { EllipsisProps, PageTriggerProps } from '@zag-js/pagination';
2
+ import { UsePaginationProps, UsePaginationReturn } from './use-pagination';
3
3
  import { Assign } from '../types';
4
- import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, ReactNode, CSSProperties, RefAttributes, LiHTMLAttributes, ButtonHTMLAttributes } from 'react';
4
+ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, ReactNode, RefAttributes, LiHTMLAttributes, ButtonHTMLAttributes } from 'react';
5
5
  /// <reference types="react" />
6
6
  import { type PaginationProps } from './pagination';
7
7
  import { usePaginationContext } from './pagination-context';
@@ -17,20 +17,14 @@ declare const Pagination: ForwardRefExoticComponent<Omit<Assign<Omit<Omit<Detail
17
17
  } & {
18
18
  asChild?: boolean | undefined;
19
19
  }, "ref">, UsePaginationProps>, "children"> & {
20
- children: ReactNode | ((pages: PublicApi<JSX.IntrinsicElements & {
21
- element: HTMLAttributes<HTMLElement>;
22
- style: CSSProperties;
23
- }>) => ReactNode);
20
+ children?: ReactNode | ((pages: UsePaginationReturn) => ReactNode);
24
21
  } & RefAttributes<HTMLElement>> & {
25
22
  Root: ForwardRefExoticComponent<Omit<Assign<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
26
23
  ref?: ((instance: HTMLElement | null) => void) | RefObject<HTMLElement> | null | undefined;
27
24
  } & {
28
25
  asChild?: boolean | undefined;
29
26
  }, "ref">, UsePaginationProps>, "children"> & {
30
- children: ReactNode | ((pages: PublicApi<JSX.IntrinsicElements & {
31
- element: HTMLAttributes<HTMLElement>;
32
- style: CSSProperties;
33
- }>) => ReactNode);
27
+ children?: ReactNode | ((pages: UsePaginationReturn) => ReactNode);
34
28
  } & RefAttributes<HTMLElement>>;
35
29
  Ellipsis: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
36
30
  ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { Pagination as Pagination$1 } from './pagination.mjs';
2
3
  export { usePaginationContext } from './pagination-context.mjs';
3
4
  import { PaginationEllipsis } from './pagination-ellipsis.mjs';
@@ -1,12 +1,5 @@
1
- import { PublicApi } from '@zag-js/pagination';
2
- import { Provider, HTMLAttributes, CSSProperties } from 'react';
1
+ import { Provider } from 'react';
3
2
  /// <reference types="react" />
4
3
  import { type UsePaginationReturn } from './use-pagination';
5
4
  export type PaginationContext = UsePaginationReturn;
6
- export declare const PaginationProvider: Provider<PublicApi<JSX.IntrinsicElements & {
7
- element: HTMLAttributes<HTMLElement>;
8
- style: CSSProperties;
9
- }>>, usePaginationContext: () => PublicApi<JSX.IntrinsicElements & {
10
- element: HTMLAttributes<HTMLElement>;
11
- style: CSSProperties;
12
- }>;
5
+ export declare const PaginationProvider: Provider<UsePaginationReturn>, usePaginationContext: () => UsePaginationReturn;