@ark-ui/react 0.0.0-rc-20230319213446 → 0.0.0-rc-20230320101349
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/accordion-content.d.ts +1 -1
- package/dist/accordion/accordion-context.d.ts +1 -1
- package/dist/accordion/accordion-icon.d.ts +1 -1
- package/dist/accordion/accordion-item-context.d.ts +1 -1
- package/dist/accordion/accordion-item.d.ts +2 -2
- package/dist/accordion/accordion-trigger.d.ts +1 -1
- package/dist/accordion/accordion.d.ts +3 -3
- package/dist/accordion/use-accordion.d.ts +1 -1
- package/dist/carousel/carousel-context.d.ts +1 -1
- package/dist/carousel/carousel-next-slide-trigger.d.ts +1 -1
- package/dist/carousel/carousel-prev-slide-trigger.d.ts +1 -1
- package/dist/carousel/carousel-slide-group.d.ts +1 -1
- package/dist/carousel/carousel-slide.d.ts +2 -2
- package/dist/carousel/carousel-viewport.d.ts +1 -1
- package/dist/carousel/carousel.d.ts +5 -5
- package/dist/carousel/use-carousel.d.ts +1 -1
- package/dist/checkbox/checkbox-context.d.ts +1 -1
- package/dist/checkbox/checkbox-control.d.ts +1 -1
- package/dist/checkbox/checkbox-input.d.ts +1 -1
- package/dist/checkbox/checkbox-label.d.ts +1 -1
- package/dist/checkbox/checkbox.d.ts +5 -5
- package/dist/checkbox/use-checkbox.d.ts +1 -1
- package/dist/combobox/combobox-content.d.ts +1 -1
- package/dist/combobox/combobox-context.d.ts +1 -1
- package/dist/combobox/combobox-control.d.ts +1 -1
- package/dist/combobox/combobox-input.d.ts +1 -1
- package/dist/combobox/combobox-label.d.ts +1 -1
- package/dist/combobox/combobox-option.d.ts +2 -2
- package/dist/combobox/combobox-positioner.d.ts +1 -1
- package/dist/combobox/combobox-trigger.d.ts +1 -1
- package/dist/combobox/combobox.d.ts +3 -3
- package/dist/combobox/use-combobox.d.ts +1 -1
- package/dist/dialog/dialog-backdrop.d.ts +1 -1
- package/dist/dialog/dialog-close-trigger.d.ts +1 -1
- package/dist/dialog/dialog-container.d.ts +1 -1
- package/dist/dialog/dialog-content.d.ts +1 -1
- package/dist/dialog/dialog-context.d.ts +1 -1
- package/dist/dialog/dialog-description.d.ts +1 -1
- package/dist/dialog/dialog-title.d.ts +1 -1
- package/dist/dialog/dialog-trigger.d.ts +1 -1
- package/dist/dialog/dialog.d.ts +4 -4
- package/dist/dialog/use-dialog.d.ts +1 -1
- package/dist/editable/editable-area.d.ts +1 -1
- package/dist/editable/editable-cancel-trigger.d.ts +1 -1
- package/dist/editable/editable-context.d.ts +1 -1
- package/dist/editable/editable-control.d.ts +1 -1
- package/dist/editable/editable-edit-trigger.d.ts +1 -1
- package/dist/editable/editable-input.d.ts +1 -1
- package/dist/editable/editable-label.d.ts +1 -1
- package/dist/editable/editable-preview.d.ts +1 -1
- package/dist/editable/editable-submit-trigger.d.ts +1 -1
- package/dist/editable/editable.d.ts +5 -5
- package/dist/editable/use-editable.d.ts +1 -1
- package/dist/environment/environment-context.d.ts +1 -1
- package/dist/factory.d.ts +2 -2
- package/dist/hover-card/hover-card-arrow-tip.d.ts +1 -1
- package/dist/hover-card/hover-card-arrow.d.ts +1 -1
- package/dist/hover-card/hover-card-content.d.ts +1 -1
- package/dist/hover-card/hover-card-context.d.ts +1 -1
- package/dist/hover-card/hover-card-positioner.d.ts +1 -1
- package/dist/hover-card/hover-card-trigger.d.ts +1 -1
- package/dist/hover-card/hover-card.d.ts +2 -2
- package/dist/hover-card/use-hover-card.d.ts +1 -1
- package/dist/menu/menu-arrow-tip.d.ts +1 -1
- package/dist/menu/menu-arrow.d.ts +1 -1
- package/dist/menu/menu-content.d.ts +1 -1
- package/dist/menu/menu-context-trigger.d.ts +1 -1
- package/dist/menu/menu-context.d.ts +1 -1
- package/dist/menu/menu-item-group-label.d.ts +2 -2
- package/dist/menu/menu-item-group.d.ts +3 -3
- package/dist/menu/menu-item.d.ts +3 -3
- package/dist/menu/menu-option-item.d.ts +4 -4
- package/dist/menu/menu-positioner.d.ts +1 -1
- package/dist/menu/menu-separator.d.ts +1 -1
- package/dist/menu/menu-trigger-item.d.ts +1 -1
- package/dist/menu/menu-trigger.d.ts +1 -1
- package/dist/menu/menu.d.ts +3 -3
- package/dist/menu/use-menu.d.ts +1 -1
- package/dist/number-input/number-input-context.d.ts +1 -1
- package/dist/number-input/number-input-control.d.ts +1 -1
- package/dist/number-input/number-input-decrement-trigger.d.ts +1 -1
- package/dist/number-input/number-input-field.d.ts +1 -1
- package/dist/number-input/number-input-increment-trigger.d.ts +1 -1
- package/dist/number-input/number-input-label.d.ts +1 -1
- package/dist/number-input/number-input-scrubber.d.ts +1 -1
- package/dist/number-input/number-input.d.ts +3 -3
- package/dist/number-input/use-number-input.d.ts +1 -1
- package/dist/pagination/pagination-context.d.ts +1 -1
- package/dist/pagination/pagination-ellipsis.d.ts +2 -2
- package/dist/pagination/pagination-list.d.ts +1 -1
- package/dist/pagination/pagination-next-page-trigger.d.ts +2 -2
- package/dist/pagination/pagination-page-trigger.d.ts +3 -3
- package/dist/pagination/pagination-prev-page-trigger.d.ts +2 -2
- package/dist/pagination/pagination.d.ts +4 -4
- package/dist/pagination/use-pagination.d.ts +1 -1
- package/dist/pin-input/pin-input-context.d.ts +1 -1
- package/dist/pin-input/pin-input-control.d.ts +1 -1
- package/dist/pin-input/pin-input-field.d.ts +1 -1
- package/dist/pin-input/pin-input-label.d.ts +1 -1
- package/dist/pin-input/pin-input.d.ts +3 -3
- package/dist/pin-input/use-pin-input.d.ts +1 -1
- package/dist/popover/popover-anchor.d.ts +1 -1
- package/dist/popover/popover-arrow-tip.d.ts +1 -1
- package/dist/popover/popover-arrow.d.ts +1 -1
- package/dist/popover/popover-close-trigger.d.ts +1 -1
- package/dist/popover/popover-content.d.ts +1 -1
- package/dist/popover/popover-context.d.ts +1 -1
- package/dist/popover/popover-description.d.ts +1 -1
- package/dist/popover/popover-positioner.d.ts +1 -1
- package/dist/popover/popover-title.d.ts +1 -1
- package/dist/popover/popover-trigger.d.ts +1 -1
- package/dist/popover/popover.d.ts +2 -2
- package/dist/popover/use-popover.d.ts +1 -1
- package/dist/pressable/pressable.d.ts +3 -3
- package/dist/pressable/use-pressable.d.ts +1 -1
- package/dist/radio-group/radio-context.d.ts +1 -1
- package/dist/radio-group/radio-control.d.ts +1 -1
- package/dist/radio-group/radio-group-context.d.ts +1 -1
- package/dist/radio-group/radio-group-label.d.ts +1 -1
- package/dist/radio-group/radio-group.d.ts +3 -3
- package/dist/radio-group/radio-input.d.ts +1 -1
- package/dist/radio-group/radio-label.d.ts +1 -1
- package/dist/radio-group/radio.d.ts +2 -2
- package/dist/radio-group/use-radio-group.d.ts +1 -1
- package/dist/range-slider/range-slider-context.d.ts +1 -1
- package/dist/range-slider/range-slider-control.d.ts +1 -1
- package/dist/range-slider/range-slider-marker-group.d.ts +1 -1
- package/dist/range-slider/range-slider-marker.d.ts +2 -2
- package/dist/range-slider/range-slider-output.d.ts +4 -4
- package/dist/range-slider/range-slider-range.d.ts +1 -1
- package/dist/range-slider/range-slider-thumb.d.ts +2 -2
- package/dist/range-slider/range-slider-track.d.ts +1 -1
- package/dist/range-slider/range-slider.d.ts +4 -4
- package/dist/range-slider/use-range-slider.d.ts +1 -1
- package/dist/rating-group/rating-context.d.ts +1 -1
- package/dist/rating-group/rating-group-context.d.ts +1 -1
- package/dist/rating-group/rating-group-control.d.ts +3 -3
- package/dist/rating-group/rating-group-label.d.ts +1 -1
- package/dist/rating-group/rating-group.d.ts +3 -3
- package/dist/rating-group/rating.d.ts +3 -3
- package/dist/rating-group/use-rating-group.d.ts +1 -1
- package/dist/select/select-content.d.ts +1 -1
- package/dist/select/select-context.d.ts +1 -1
- package/dist/select/select-label.d.ts +1 -1
- package/dist/select/select-option-group-label.d.ts +2 -2
- package/dist/select/select-option-group.d.ts +2 -2
- package/dist/select/select-option.d.ts +2 -2
- package/dist/select/select-positioner.d.ts +1 -1
- package/dist/select/select-trigger.d.ts +1 -1
- package/dist/select/select.d.ts +3 -3
- package/dist/select/use-select.d.ts +1 -1
- package/dist/slider/slider-context.d.ts +1 -1
- package/dist/slider/slider-control.d.ts +1 -1
- package/dist/slider/slider-marker-group.d.ts +1 -1
- package/dist/slider/slider-marker.d.ts +2 -2
- package/dist/slider/slider-output.d.ts +4 -4
- package/dist/slider/slider-range.d.ts +1 -1
- package/dist/slider/slider-thumb.d.ts +1 -1
- package/dist/slider/slider-track.d.ts +1 -1
- package/dist/slider/slider.d.ts +5 -5
- package/dist/slider/use-slider.d.ts +1 -1
- package/dist/splitter/splitter-context.d.ts +1 -1
- package/dist/splitter/splitter-panel.d.ts +3 -3
- package/dist/splitter/splitter-resize-trigger.d.ts +3 -3
- package/dist/splitter/splitter.d.ts +3 -3
- package/dist/splitter/use-splitter.d.ts +2 -2
- package/dist/tabs/tab-content.d.ts +3 -3
- package/dist/tabs/tab-indicator.d.ts +1 -1
- package/dist/tabs/tab-list.d.ts +1 -1
- package/dist/tabs/tab-trigger.d.ts +3 -3
- package/dist/tabs/tabs-context.d.ts +1 -1
- package/dist/tabs/tabs.d.ts +3 -3
- package/dist/tabs/use-tabs.d.ts +2 -2
- package/dist/tags-input/tag-delete-trigger.d.ts +3 -3
- package/dist/tags-input/tag-input.d.ts +3 -3
- package/dist/tags-input/tag.d.ts +2 -2
- package/dist/tags-input/tags-input-clear-trigger.d.ts +1 -1
- package/dist/tags-input/tags-input-context.d.ts +1 -1
- package/dist/tags-input/tags-input-control.d.ts +1 -1
- package/dist/tags-input/tags-input-field.d.ts +1 -1
- package/dist/tags-input/tags-input-label.d.ts +1 -1
- package/dist/tags-input/tags-input.d.ts +4 -4
- package/dist/tags-input/use-tags-input.d.ts +1 -1
- package/dist/toast/toast-close-trigger.d.ts +1 -1
- package/dist/toast/toast-description.d.ts +1 -1
- package/dist/toast/toast-group.d.ts +4 -4
- package/dist/toast/toast-item-context.d.ts +1 -1
- package/dist/toast/toast-placements.d.ts +2 -2
- package/dist/toast/toast-provider.d.ts +2 -2
- package/dist/toast/toast-title.d.ts +1 -1
- package/dist/toast/toast.d.ts +3 -3
- package/dist/tooltip/tooltip-arrow-tip.d.ts +1 -1
- package/dist/tooltip/tooltip-arrow.d.ts +1 -1
- package/dist/tooltip/tooltip-content.d.ts +1 -1
- package/dist/tooltip/tooltip-context.d.ts +1 -1
- package/dist/tooltip/tooltip-positioner.d.ts +1 -1
- package/dist/tooltip/tooltip-trigger.d.ts +1 -1
- package/dist/tooltip/tooltip.d.ts +2 -2
- package/dist/tooltip/use-tooltip.d.ts +1 -1
- package/dist/use-effect-once.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type AccordionContentProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const AccordionContent: ComponentWithAs<"div", AccordionContentProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ItemProps } from '@zag-js/accordion/dist/accordion.types';
|
|
2
2
|
import type { Provider, HTMLAttributes, DetailedHTMLProps, ButtonHTMLAttributes } from 'react';
|
|
3
|
-
import type
|
|
3
|
+
import { type UseAccordionReturn } from './use-accordion';
|
|
4
4
|
export type AccordionContext = UseAccordionReturn;
|
|
5
5
|
export declare const AccordionProvider: Provider<{
|
|
6
6
|
rootProps: HTMLAttributes<HTMLElement>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type AccordionIconProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const AccordionIcon: ComponentWithAs<"div", AccordionIconProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Provider } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type AccordionContext } from './accordion-context';
|
|
3
3
|
export type AccordionItemContext = ReturnType<AccordionContext['getItemState']> & {
|
|
4
4
|
value: string;
|
|
5
5
|
disabled?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ComponentWithAs, Assign } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
1
|
+
import type { ComponentWithAs, type Assign } from '@polymorphic-factory/react';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
import { type AccordionContext } from './accordion-context';
|
|
4
4
|
export type AccordionItemProps = Assign<HTMLArkProps<'div'>, {
|
|
5
5
|
value: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
3
|
-
import type
|
|
4
|
-
import { UseAccordionProps } from './use-accordion';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
|
+
import { type Assign } from '../types';
|
|
4
|
+
import { type UseAccordionProps } from './use-accordion';
|
|
5
5
|
export type AccordionProps = Assign<HTMLArkProps<'div'>, UseAccordionProps>;
|
|
6
6
|
export declare const Accordion: ComponentWithAs<"div", AccordionProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ItemProps } from '@zag-js/accordion/dist/accordion.types';
|
|
2
2
|
import type { HTMLAttributes, DetailedHTMLProps, ButtonHTMLAttributes } from 'react';
|
|
3
3
|
import * as accordion from '@zag-js/accordion';
|
|
4
|
-
import type
|
|
4
|
+
import { type Optional } from '../types';
|
|
5
5
|
export type UseAccordionProps = Optional<accordion.Context, 'id'> & {
|
|
6
6
|
defaultValue?: accordion.Context['value'];
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SlideProps } from '@zag-js/carousel/dist/carousel.types';
|
|
2
2
|
import type { Provider, HTMLAttributes, DetailedHTMLProps, ButtonHTMLAttributes } from 'react';
|
|
3
|
-
import type
|
|
3
|
+
import { type UseCarouselReturn } from './use-carousel';
|
|
4
4
|
export type CarouselContext = UseCarouselReturn;
|
|
5
5
|
export declare const CarouselProvider: Provider<{
|
|
6
6
|
index: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type CarouselSlideGroupProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const CarouselSlideGroup: ComponentWithAs<"div", CarouselSlideGroupProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ComponentWithAs, Assign } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
1
|
+
import type { ComponentWithAs, type Assign } from '@polymorphic-factory/react';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type CarouselSlideProps = Assign<HTMLArkProps<'div'>, {
|
|
4
4
|
index: number;
|
|
5
5
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type CarouselViewportProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const CarouselViewport: ComponentWithAs<"div", CarouselViewportProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import type
|
|
3
|
-
import { HTMLArkProps } from '../factory';
|
|
4
|
-
import type
|
|
5
|
-
import { CarouselContext } from './carousel-context';
|
|
6
|
-
import { UseCarouselProps } from './use-carousel';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
import { type Assign } from '../types';
|
|
5
|
+
import { type CarouselContext } from './carousel-context';
|
|
6
|
+
import { type UseCarouselProps } from './use-carousel';
|
|
7
7
|
export type CarouselProps = Assign<Omit<HTMLArkProps<'div'>, 'children'> & {
|
|
8
8
|
children: ReactNode | ((pages: CarouselContext) => ReactNode);
|
|
9
9
|
}, UseCarouselProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HTMLAttributes, DetailedHTMLProps, ButtonHTMLAttributes } from 'react';
|
|
2
2
|
import type { SlideProps } from '@zag-js/carousel/dist/carousel.types';
|
|
3
3
|
import * as carousel from '@zag-js/carousel';
|
|
4
|
-
import type
|
|
4
|
+
import { type Optional } from '../types';
|
|
5
5
|
export type UseCarouselProps = Optional<carousel.Context, 'id'>;
|
|
6
6
|
export type UseCarouselReturn = ReturnType<typeof useCarousel>;
|
|
7
7
|
export declare const useCarousel: (props: UseCarouselProps) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Provider, DetailedHTMLProps, LabelHTMLAttributes, HTMLAttributes, InputHTMLAttributes } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type UseCheckboxReturn } from './use-checkbox';
|
|
3
3
|
export type CheckboxContext = UseCheckboxReturn;
|
|
4
4
|
export declare const CheckboxProvider: Provider<{
|
|
5
5
|
isChecked: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type CheckboxControlProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const CheckboxControl: ComponentWithAs<"div", CheckboxControlProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type CheckboxInputProps = HTMLArkProps<'input'>;
|
|
4
4
|
export declare const CheckboxInput: ComponentWithAs<"input", CheckboxInputProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type CheckboxLabelProps = HTMLArkProps<'span'>;
|
|
4
4
|
export declare const CheckboxLabel: ComponentWithAs<"span", CheckboxLabelProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import type
|
|
3
|
-
import { HTMLArkProps } from '../factory';
|
|
4
|
-
import type
|
|
5
|
-
import { CheckboxContext } from './checkbox-context';
|
|
6
|
-
import { UseCheckboxProps } from './use-checkbox';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
import { type Assign } from '../types';
|
|
5
|
+
import { type CheckboxContext } from './checkbox-context';
|
|
6
|
+
import { type UseCheckboxProps } from './use-checkbox';
|
|
7
7
|
export type CheckboxProps = Assign<Omit<HTMLArkProps<'label'>, 'children'> & {
|
|
8
8
|
children: ReactNode | ((pages: CheckboxContext) => ReactNode);
|
|
9
9
|
}, UseCheckboxProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DetailedHTMLProps, LabelHTMLAttributes, HTMLAttributes, InputHTMLAttributes } from 'react';
|
|
2
2
|
import * as checkbox from '@zag-js/checkbox';
|
|
3
|
-
import type
|
|
3
|
+
import { type Optional } from '../types';
|
|
4
4
|
export type UseCheckboxProps = Optional<checkbox.Context, 'id'> & {
|
|
5
5
|
checked?: checkbox.Context['defaultChecked'];
|
|
6
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type ComboboxContentProps = HTMLArkProps<'ul'>;
|
|
4
4
|
export declare const ComboboxContent: ComponentWithAs<"ul", ComboboxContentProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { OptionData, OptionProps, OptionGroupProps } from '@zag-js/combobox/dist/combobox.types';
|
|
2
2
|
import type { Provider, HTMLAttributes, DetailedHTMLProps, LabelHTMLAttributes, InputHTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
3
|
-
import type
|
|
3
|
+
import { type UseComboboxReturn } from './use-combobox';
|
|
4
4
|
export type ComboboxContext = UseComboboxReturn;
|
|
5
5
|
export declare const ComboboxProvider: Provider<{
|
|
6
6
|
isFocused: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type ComboboxControlProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const ComboboxControl: ComponentWithAs<"div", ComboboxControlProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type ComboboxInputProps = HTMLArkProps<'input'>;
|
|
4
4
|
export declare const ComboboxInput: ComponentWithAs<"input", ComboboxInputProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type ComboboxLabelProps = HTMLArkProps<'label'>;
|
|
4
4
|
export declare const ComboboxLabel: ComponentWithAs<"label", ComboboxLabelProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
3
|
-
import type
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
|
+
import { type Assign } from '../types';
|
|
4
4
|
import { useComboboxContext } from './combobox-context';
|
|
5
5
|
type OptionProps = Parameters<ReturnType<typeof useComboboxContext>['getOptionProps']>[0];
|
|
6
6
|
export type ComboboxOptionProps = Assign<HTMLArkProps<'li'>, OptionProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type ComboboxPositionerProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const ComboboxPositioner: ComponentWithAs<"div", ComboboxPositionerProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
3
|
-
import type
|
|
4
|
-
import { UseComboboxProps, UseComboboxReturn } from './use-combobox';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
|
+
import { type Assign } from '../types';
|
|
4
|
+
import { type UseComboboxProps, type UseComboboxReturn } from './use-combobox';
|
|
5
5
|
export type ComboboxProps = Assign<Omit<HTMLArkProps<'div'>, 'children'>, UseComboboxProps> & {
|
|
6
6
|
children?: React.ReactNode | ((props: UseComboboxReturn) => React.ReactNode);
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HTMLAttributes, DetailedHTMLProps, LabelHTMLAttributes, InputHTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
2
2
|
import type { OptionData, OptionProps, OptionGroupProps } from '@zag-js/combobox/dist/combobox.types';
|
|
3
3
|
import * as combobox from '@zag-js/combobox';
|
|
4
|
-
import type
|
|
4
|
+
import { type Optional } from '../types';
|
|
5
5
|
export type UseComboboxProps = Optional<combobox.Context, 'id'>;
|
|
6
6
|
export declare const useCombobox: (props: UseComboboxProps) => {
|
|
7
7
|
isFocused: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type DialogBackdropProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const DialogBackdrop: ComponentWithAs<"div", DialogBackdropProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type DialogContainerProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const DialogContainer: ComponentWithAs<"div", DialogContainerProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type DialogContentProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const DialogContent: ComponentWithAs<"div", DialogContentProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Provider, DetailedHTMLProps, ButtonHTMLAttributes, HTMLAttributes } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type UseDialogReturn } from './use-dialog';
|
|
3
3
|
export type DialogContext = UseDialogReturn;
|
|
4
4
|
export declare const DialogProvider: Provider<{
|
|
5
5
|
isOpen: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type DialogDescriptionProps = HTMLArkProps<'p'>;
|
|
4
4
|
export declare const DialogDescription: ComponentWithAs<"p", DialogDescriptionProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type DialogTitleProps = HTMLArkProps<'h2'>;
|
|
4
4
|
export declare const DialogTitle: ComponentWithAs<"h2", DialogTitleProps>;
|
package/dist/dialog/dialog.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import { DialogContext } from './dialog-context';
|
|
4
|
-
import { UseDialogProps } from './use-dialog';
|
|
1
|
+
import { type PropsWithChildren, type ReactNode } from 'react';
|
|
2
|
+
import { type Assign } from '../types';
|
|
3
|
+
import { type DialogContext } from './dialog-context';
|
|
4
|
+
import { type UseDialogProps } from './use-dialog';
|
|
5
5
|
export type DialogProps = Assign<PropsWithChildren<UseDialogProps>, {
|
|
6
6
|
children?: ReactNode | ((pages: DialogContext) => ReactNode);
|
|
7
7
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DetailedHTMLProps, ButtonHTMLAttributes, HTMLAttributes } from 'react';
|
|
2
2
|
import * as dialog from '@zag-js/dialog';
|
|
3
|
-
import type
|
|
3
|
+
import { type Optional } from '../types';
|
|
4
4
|
export type UseDialogProps = Optional<dialog.Context, 'id'>;
|
|
5
5
|
export declare const useDialog: (props: UseDialogProps) => {
|
|
6
6
|
isOpen: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type EditableAreaProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const EditableArea: ComponentWithAs<"div", EditableAreaProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Provider, HTMLAttributes, DetailedHTMLProps, LabelHTMLAttributes, InputHTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type UseEditableReturn } from './use-editable';
|
|
3
3
|
export type EditableContext = UseEditableReturn;
|
|
4
4
|
export declare const EditableProvider: Provider<{
|
|
5
5
|
isEditing: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type EditableControlProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const EditableControl: ComponentWithAs<"div", EditableControlProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type EditableInputProps = HTMLArkProps<'input'>;
|
|
4
4
|
export declare const EditableInput: ComponentWithAs<"input", EditableInputProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type EditableLabelProps = HTMLArkProps<'label'>;
|
|
4
4
|
export declare const EditableLabel: ComponentWithAs<"label", EditableLabelProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type EditablePreviewProps = HTMLArkProps<'span'>;
|
|
4
4
|
export declare const EditablePreview: ComponentWithAs<"span", EditablePreviewProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import type
|
|
3
|
-
import { HTMLArkProps } from '../factory';
|
|
4
|
-
import type
|
|
5
|
-
import { EditableContext } from './editable-context';
|
|
6
|
-
import { UseEditableProps } from './use-editable';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
import { type Assign } from '../types';
|
|
5
|
+
import { type EditableContext } from './editable-context';
|
|
6
|
+
import { type UseEditableProps } from './use-editable';
|
|
7
7
|
export type EditableProps = Assign<Omit<HTMLArkProps<'div'>, 'children'> & {
|
|
8
8
|
children: ReactNode | ((pages: EditableContext) => ReactNode);
|
|
9
9
|
}, UseEditableProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HTMLAttributes, DetailedHTMLProps, LabelHTMLAttributes, InputHTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
2
2
|
import * as editable from '@zag-js/editable';
|
|
3
|
-
import type
|
|
3
|
+
import { type Optional } from '../types';
|
|
4
4
|
export type UseEditableProps = Optional<editable.Context, 'id'> & {
|
|
5
5
|
defaultValue?: editable.Context['value'];
|
|
6
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Provider } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type CommonProperties } from '@zag-js/types';
|
|
3
3
|
export type EnvironmentContext = CommonProperties['getRootNode'];
|
|
4
4
|
export declare const EnvironmentProvider: Provider<(() => Node | ShadowRoot | Document) | undefined>, useEnvironmentContext: () => (() => Node | ShadowRoot | Document) | undefined;
|
package/dist/factory.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* All html and svg elements for ark components.
|
|
3
3
|
* This is mostly for `ark.<element>` syntax.
|
|
4
4
|
*/
|
|
5
|
-
import type { ComponentWithAs, HTMLPolymorphicComponents, HTMLPolymorphicProps } from '@polymorphic-factory/react';
|
|
6
|
-
import type
|
|
5
|
+
import type { ComponentWithAs, type HTMLPolymorphicComponents, type HTMLPolymorphicProps } from '@polymorphic-factory/react';
|
|
6
|
+
import { type ElementType } from 'react';
|
|
7
7
|
export type HTMLArkComponents = HTMLPolymorphicComponents;
|
|
8
8
|
export type HTMLArkProps<T extends ElementType> = HTMLPolymorphicProps<T>;
|
|
9
9
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type HoverCardArrowTipProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const HoverCardArrowTip: ComponentWithAs<"div", HoverCardArrowTipProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type HoverCardArrowProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const HoverCardArrow: ComponentWithAs<"div", HoverCardArrowProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type HoverCardContentProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const HoverCardContent: ComponentWithAs<"div", HoverCardContentProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Provider, HTMLAttributes } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type UseHoverCardReturn } from './use-hover-card';
|
|
3
3
|
export type HoverCardContext = UseHoverCardReturn;
|
|
4
4
|
export declare const HoverCardProvider: Provider<{
|
|
5
5
|
isOpen: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type HoverCardPositionerProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const HoverCardPositioner: ComponentWithAs<"div", HoverCardPositionerProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { UseHoverCardProps } from './use-hover-card';
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type UseHoverCardProps } from './use-hover-card';
|
|
3
3
|
export type HoverCardProps = PropsWithChildren<UseHoverCardProps>;
|
|
4
4
|
export declare const HoverCard: (props: HoverCardProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
2
|
import * as hoverCard from '@zag-js/hover-card';
|
|
3
|
-
import type
|
|
3
|
+
import { type Optional } from '../types';
|
|
4
4
|
export type UseHoverCardProps = Optional<hoverCard.Context, 'id'>;
|
|
5
5
|
export declare const useHoverCard: (props: UseHoverCardProps) => {
|
|
6
6
|
isOpen: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type MenuArrowTipProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const MenuArrowTip: ComponentWithAs<"div", MenuArrowTipProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type MenuArrowProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const MenuArrow: ComponentWithAs<"div", MenuArrowProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type MenuContentProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const MenuContent: ComponentWithAs<"div", MenuContentProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Provider } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type UseMenuReturn } from './use-menu';
|
|
3
3
|
export type MenuContext = unknown;
|
|
4
4
|
export declare const MenuProvider: Provider<unknown>, useMenuContext: () => unknown;
|
|
5
5
|
export type MenuMachineContext = unknown;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
3
|
-
import type
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
|
+
import { type Assign } from '../types';
|
|
4
4
|
type MenuItemGroupLabelParams = {
|
|
5
5
|
htmlFor: string;
|
|
6
6
|
};
|