@ark-ui/react 0.13.1 → 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 (121) hide show
  1. package/CHANGELOG.md +19 -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.d.ts +4 -4
  7. package/accordion/use-accordion.d.ts +2 -7
  8. package/avatar/avatar-context.d.ts +2 -9
  9. package/avatar/use-avatar.d.ts +2 -7
  10. package/carousel/carousel-context.d.ts +2 -9
  11. package/carousel/carousel.d.ts +3 -3
  12. package/carousel/index.d.ts +7 -12
  13. package/carousel/use-carousel.d.ts +2 -7
  14. package/checkbox/checkbox-context.d.ts +2 -9
  15. package/checkbox/checkbox.d.ts +3 -3
  16. package/checkbox/index.d.ts +7 -13
  17. package/checkbox/use-checkbox.d.ts +2 -7
  18. package/color-picker/color-picker-context.d.ts +2 -9
  19. package/color-picker/use-color-picker.d.ts +2 -7
  20. package/combobox/combobox-context.d.ts +2 -9
  21. package/combobox/combobox.cjs +0 -1
  22. package/combobox/combobox.d.ts +1 -1
  23. package/combobox/combobox.mjs +0 -1
  24. package/combobox/index.d.ts +7 -12
  25. package/combobox/use-combobox.d.ts +2 -7
  26. package/compose-refs.cjs +0 -1
  27. package/compose-refs.mjs +0 -1
  28. package/date-picker/date-picker-context.d.ts +2 -9
  29. package/date-picker/use-date-picker.d.ts +2 -7
  30. package/dialog/dialog-context.d.ts +2 -9
  31. package/dialog/use-dialog.d.ts +2 -7
  32. package/editable/editable-context.d.ts +2 -9
  33. package/editable/editable.d.ts +3 -3
  34. package/editable/index.d.ts +7 -12
  35. package/editable/use-editable.d.ts +2 -7
  36. package/factory.cjs +2 -2
  37. package/factory.mjs +1 -1
  38. package/hover-card/hover-card-context.d.ts +2 -9
  39. package/hover-card/use-hover-card.d.ts +2 -7
  40. package/index.cjs +0 -2
  41. package/index.mjs +0 -1
  42. package/menu/index.d.ts +2 -2
  43. package/menu/menu-item.d.ts +5 -8
  44. package/menu/use-menu.d.ts +1 -1
  45. package/number-input/index.d.ts +2 -2
  46. package/number-input/number-input-context.d.ts +2 -9
  47. package/number-input/number-input.d.ts +1 -1
  48. package/number-input/use-number-input.d.ts +2 -7
  49. package/package.json +49 -48
  50. package/pagination/index.d.ts +5 -11
  51. package/pagination/pagination-context.d.ts +2 -9
  52. package/pagination/pagination.d.ts +2 -2
  53. package/pagination/use-pagination.d.ts +2 -7
  54. package/pin-input/index.d.ts +2 -2
  55. package/pin-input/pin-input-context.d.ts +2 -9
  56. package/pin-input/pin-input.d.ts +1 -1
  57. package/pin-input/use-pin-input.d.ts +2 -7
  58. package/popover/popover-context.d.ts +2 -9
  59. package/popover/use-popover.d.ts +2 -7
  60. package/presence/use-presence.d.ts +1 -1
  61. package/pressable/use-pressable.d.ts +2 -7
  62. package/radio-group/index.d.ts +2 -2
  63. package/radio-group/radio-group-context.d.ts +2 -9
  64. package/radio-group/radio-group.d.ts +1 -1
  65. package/radio-group/use-radio-group.d.ts +2 -7
  66. package/range-slider/index.d.ts +8 -16
  67. package/range-slider/range-slider-context.d.ts +2 -9
  68. package/range-slider/range-slider.cjs +3 -0
  69. package/range-slider/range-slider.d.ts +1 -1
  70. package/range-slider/range-slider.mjs +3 -0
  71. package/range-slider/use-range-slider.d.ts +2 -7
  72. package/rating-group/index.d.ts +6 -8
  73. package/rating-group/rating-group-context.d.ts +2 -9
  74. package/rating-group/rating-group-control.d.ts +2 -2
  75. package/rating-group/rating-group.d.ts +1 -1
  76. package/rating-group/use-rating-group.d.ts +2 -7
  77. package/segment-group/index.d.ts +2 -2
  78. package/segment-group/segment-group-context.d.ts +2 -9
  79. package/segment-group/segment-group.d.ts +1 -1
  80. package/segment-group/use-segment-group.d.ts +2 -7
  81. package/select/select-context.d.ts +2 -9
  82. package/select/use-select.d.ts +2 -7
  83. package/slider/index.d.ts +5 -15
  84. package/slider/slider-context.d.ts +2 -9
  85. package/slider/slider.cjs +2 -0
  86. package/slider/slider.mjs +2 -0
  87. package/slider/use-slider.d.ts +2 -7
  88. package/splitter/index.d.ts +7 -12
  89. package/splitter/splitter-context.d.ts +2 -9
  90. package/splitter/splitter.d.ts +1 -1
  91. package/splitter/use-splitter.d.ts +2 -7
  92. package/switch/index.cjs +0 -3
  93. package/switch/index.d.ts +6 -19
  94. package/switch/index.mjs +1 -3
  95. package/switch/switch-context.d.ts +2 -9
  96. package/switch/switch-control.cjs +5 -2
  97. package/switch/switch-control.mjs +6 -3
  98. package/switch/switch.d.ts +2 -2
  99. package/switch/use-switch.d.ts +2 -7
  100. package/tabs/index.d.ts +2 -2
  101. package/tabs/tabs-context.d.ts +2 -9
  102. package/tabs/tabs.d.ts +1 -1
  103. package/tabs/use-tabs.cjs +21 -2
  104. package/tabs/use-tabs.d.ts +5 -10
  105. package/tabs/use-tabs.mjs +3 -3
  106. package/tags-input/index.d.ts +2 -2
  107. package/tags-input/tags-input-context.d.ts +2 -9
  108. package/tags-input/tags-input.cjs +1 -2
  109. package/tags-input/tags-input.d.ts +2 -2
  110. package/tags-input/tags-input.mjs +1 -2
  111. package/tags-input/use-tags-input.d.ts +2 -7
  112. package/toast/index.d.ts +1 -1
  113. package/toast/toast-group.d.ts +2 -2
  114. package/toast/toast-item-context.d.ts +2 -9
  115. package/toast/toast-provider.d.ts +2 -57
  116. package/toast/use-toast-item.d.ts +2 -7
  117. package/tooltip/tooltip-context.d.ts +2 -9
  118. package/tooltip/use-tooltip.d.ts +2 -7
  119. package/switch/switch-input.cjs +0 -19
  120. package/switch/switch-input.d.ts +0 -8
  121. package/switch/switch-input.mjs +0 -15
package/CHANGELOG.md CHANGED
@@ -6,6 +6,22 @@ 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
+
9
25
  ## [0.13.1] - 2023-08-13
10
26
 
11
27
  ### Changed
@@ -191,7 +207,7 @@ description: All notable changes to this project will be documented in this file
191
207
  - Add `Toast`
192
208
  - Add `Tooltip`
193
209
 
194
- [unreleased]: https://github.com/chakra-ui/ark/compare/@ark-ui/react@0.13.1...HEAD
210
+ [unreleased]: https://github.com/chakra-ui/ark/compare/@ark-ui/react@0.14.0...HEAD
195
211
  [0.1.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.1.0
196
212
  [0.2.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.2.0
197
213
  [0.3.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.3.0
@@ -217,5 +233,6 @@ description: All notable changes to this project will be documented in this file
217
233
 
218
234
  [0.12.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.12.0
219
235
  [0.13.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.13.0
220
-
221
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);
@@ -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,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;
@@ -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,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,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,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,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,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,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,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,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;
@@ -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>>;