@ark-ui/react 0.0.0-rc-20230319215607 → 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,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import type
|
|
3
|
-
import { HTMLArkProps } from '../factory';
|
|
4
|
-
import { RatingGroupContext } from './rating-group-context';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
import { type RatingGroupContext } from './rating-group-context';
|
|
5
5
|
export type RatingGroupControlProps = Omit<HTMLArkProps<'div'>, 'children'> & {
|
|
6
6
|
children: ReactNode | ((context: RatingGroupContext) => ReactNode);
|
|
7
7
|
};
|
|
@@ -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 RatingGroupLabelProps = HTMLArkProps<'label'>;
|
|
4
4
|
export declare const RatingGroupLabel: ComponentWithAs<"label", RatingGroupLabelProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
3
|
-
import type
|
|
4
|
-
import { UseRatingGroupProps } from './use-rating-group';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
|
+
import { type Assign } from '../types';
|
|
4
|
+
import { type UseRatingGroupProps } from './use-rating-group';
|
|
5
5
|
export type RatingGroupProps = Assign<HTMLArkProps<'input'>, UseRatingGroupProps>;
|
|
6
6
|
export declare const RatingGroup: ComponentWithAs<"input", RatingGroupProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import type
|
|
3
|
-
import { HTMLArkProps } from '../factory';
|
|
4
|
-
import { RatingContext } from './rating-context';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
import { type RatingContext } from './rating-context';
|
|
5
5
|
export type RatingProps = Omit<HTMLArkProps<'span'>, 'children'> & {
|
|
6
6
|
index: number;
|
|
7
7
|
children: (state: RatingContext) => ReactNode | ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HTMLAttributes, DetailedHTMLProps, InputHTMLAttributes } from 'react';
|
|
2
2
|
import * as ratingGroup from '@zag-js/rating-group';
|
|
3
|
-
import type
|
|
3
|
+
import { type Optional } from '../types';
|
|
4
4
|
export type UseRatingGroupProps = Optional<ratingGroup.Context, 'id'> & {
|
|
5
5
|
defaultValue?: ratingGroup.Context['value'];
|
|
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 SelectContentProps = HTMLArkProps<'ul'>;
|
|
4
4
|
export declare const SelectContent: ComponentWithAs<"ul", SelectContentProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Option, OptionProps, OptionGroupLabelProps, OptionGroupProps } from '@zag-js/select/dist/select.types';
|
|
2
2
|
import type { Provider, DetailedHTMLProps, LabelHTMLAttributes, HTMLAttributes, ButtonHTMLAttributes, SelectHTMLAttributes } from 'react';
|
|
3
|
-
import type
|
|
3
|
+
import { type UseSelectReturn } from './use-select';
|
|
4
4
|
export type SelectContext = UseSelectReturn;
|
|
5
5
|
export declare const SelectProvider: Provider<{
|
|
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 SelectLabelProps = HTMLArkProps<'label'>;
|
|
4
4
|
export declare const SelectLabel: ComponentWithAs<"label", SelectLabelProps>;
|
|
@@ -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 SelectOptionGroupLabelProps = Assign<HTMLArkProps<'label'>, {
|
|
4
4
|
htmlFor: string;
|
|
5
5
|
}>;
|
|
@@ -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 SelectOptionGroupProps = Assign<HTMLArkProps<'div'>, {
|
|
4
4
|
id: string;
|
|
5
5
|
}>;
|
|
@@ -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 { useSelectContext } from './select-context';
|
|
4
4
|
type OptionProps = Parameters<ReturnType<typeof useSelectContext>['getOptionProps']>[0];
|
|
5
5
|
export type SelectOptionProps = 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 SelectPositionerProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const SelectPositioner: ComponentWithAs<"div", SelectPositionerProps>;
|
package/dist/select/select.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import { UseSelectProps, UseSelectReturn } from './use-select';
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type Assign } from '../types';
|
|
3
|
+
import { type UseSelectProps, type UseSelectReturn } from './use-select';
|
|
4
4
|
export type SelectProps = Assign<UseSelectProps, {
|
|
5
5
|
children?: ReactNode | ((state: UseSelectReturn) => ReactNode);
|
|
6
6
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DetailedHTMLProps, LabelHTMLAttributes, HTMLAttributes, ButtonHTMLAttributes, SelectHTMLAttributes } from 'react';
|
|
2
2
|
import type { Option } from '@zag-js/select/dist/select.types';
|
|
3
3
|
import * as select from '@zag-js/select';
|
|
4
|
-
import type
|
|
4
|
+
import { type Optional } from '../types';
|
|
5
5
|
export type UseSelectProps = Optional<select.Context, 'id'> & {
|
|
6
6
|
defaultValue?: select.Context['selectedOption'];
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Provider, HTMLAttributes, DetailedHTMLProps, LabelHTMLAttributes, InputHTMLAttributes, OutputHTMLAttributes } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type UseSliderReturn } from './use-slider';
|
|
3
3
|
export type SliderContext = UseSliderReturn;
|
|
4
4
|
export declare const SliderProvider: Provider<{
|
|
5
5
|
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 SliderControlProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const SliderControl: ComponentWithAs<"div", SliderControlProps>;
|
|
@@ -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 SliderMarkerGroupProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const SliderMarkerGroup: ComponentWithAs<"div", SliderMarkerGroupProps>;
|
|
@@ -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 SliderMarkerProps = Assign<HTMLArkProps<'span'>, {
|
|
4
4
|
value: number;
|
|
5
5
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import type
|
|
3
|
-
import { HTMLArkProps } from '../factory';
|
|
4
|
-
import type
|
|
5
|
-
import { SliderContext } from './slider-context';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
import { type Assign } from '../types';
|
|
5
|
+
import { type SliderContext } from './slider-context';
|
|
6
6
|
export type SliderOutputProps = Assign<HTMLArkProps<'output'>, {
|
|
7
7
|
children?: ((context: SliderContext) => ReactNode) | ReactNode;
|
|
8
8
|
}>;
|
|
@@ -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 SliderRangeProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const SliderRange: ComponentWithAs<"div", SliderRangeProps>;
|
|
@@ -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 SliderThumbProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const SliderThumb: ComponentWithAs<"div", SliderThumbProps>;
|
|
@@ -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 SliderTrackProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const SliderTrack: ComponentWithAs<"div", SliderTrackProps>;
|
package/dist/slider/slider.d.ts
CHANGED
|
@@ -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 { SliderContext } from './slider-context';
|
|
6
|
-
import { UseSliderProps } from './use-slider';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
import { type Assign } from '../types';
|
|
5
|
+
import { type SliderContext } from './slider-context';
|
|
6
|
+
import { type UseSliderProps } from './use-slider';
|
|
7
7
|
export type SliderProps = Assign<Assign<HTMLArkProps<'div'>, UseSliderProps>, {
|
|
8
8
|
children?: ((context: SliderContext) => ReactNode) | ReactNode;
|
|
9
9
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HTMLAttributes, DetailedHTMLProps, LabelHTMLAttributes, InputHTMLAttributes, OutputHTMLAttributes } from 'react';
|
|
2
2
|
import * as slider from '@zag-js/slider';
|
|
3
|
-
import type
|
|
3
|
+
import { type Optional } from '../types';
|
|
4
4
|
export type UseSliderProps = Optional<slider.Context, 'id'> & {
|
|
5
5
|
defaultValue?: slider.Context['value'];
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PanelId, ResizeTriggerProps, PanelProps } from '@zag-js/splitter/dist/splitter.types';
|
|
2
2
|
import type { Provider, HTMLAttributes } from 'react';
|
|
3
|
-
import type
|
|
3
|
+
import { type UseSplitterReturn } from './use-splitter';
|
|
4
4
|
export type SplitterContext = UseSplitterReturn;
|
|
5
5
|
export declare const SplitterProvider: Provider<{
|
|
6
6
|
isFocused: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import type
|
|
3
|
-
import { HTMLArkProps } from '../factory';
|
|
4
|
-
import type
|
|
2
|
+
import { type connect } from '@zag-js/splitter';
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
import { type Assign } from '../types';
|
|
5
5
|
type GetPanelProps = Parameters<ReturnType<typeof connect>['getPanelProps']>[0];
|
|
6
6
|
export type SplitterPanelProps = Assign<HTMLArkProps<'div'>, GetPanelProps>;
|
|
7
7
|
export declare const SplitterPanel: ComponentWithAs<"div", SplitterPanelProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { JSXElementConstructor, ReactElement } from 'react';
|
|
3
|
-
import type
|
|
1
|
+
import { type connect } from '@zag-js/splitter';
|
|
2
|
+
import type { JSXElementConstructor, type ReactElement } from 'react';
|
|
3
|
+
import { type Assign } from '../types';
|
|
4
4
|
type SplitterContext = Parameters<ReturnType<typeof connect>['getResizeTriggerProps']>[0];
|
|
5
5
|
export type SplitterResizeTriggerProps = Assign<{
|
|
6
6
|
children: ReactElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
3
|
-
import type
|
|
4
|
-
import { UseSplitterProps } from './use-splitter';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
|
+
import { type Assign } from '../types';
|
|
4
|
+
import { type UseSplitterProps } from './use-splitter';
|
|
5
5
|
export type SplitterProps = Assign<HTMLArkProps<'div'>, UseSplitterProps>;
|
|
6
6
|
export declare const Splitter: ComponentWithAs<"div", SplitterProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
2
|
import type { PanelId, ResizeTriggerProps, PanelProps } from '@zag-js/splitter/dist/splitter.types';
|
|
3
|
-
import { Context } from '@zag-js/splitter';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context } from '@zag-js/splitter';
|
|
4
|
+
import { type Optional } from '../types';
|
|
5
5
|
export type UseSplitterProps = Optional<Context, 'id'>;
|
|
6
6
|
export type UseSplitterReturn = ReturnType<typeof useSplitter>;
|
|
7
7
|
export declare const useSplitter: (props: UseSplitterProps) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import type
|
|
3
|
-
import { HTMLArkProps } from '../factory';
|
|
4
|
-
import type
|
|
2
|
+
import { type connect } from '@zag-js/tabs';
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
import { type Assign } from '../types';
|
|
5
5
|
type GetContentProps = Parameters<ReturnType<typeof connect>['getContentProps']>[0];
|
|
6
6
|
export type TabContentProps = Assign<HTMLArkProps<'div'>, GetContentProps>;
|
|
7
7
|
export declare const TabContent: ComponentWithAs<"div", TabContentProps>;
|
|
@@ -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 TabIndicatorProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const TabIndicator: ComponentWithAs<"div", TabIndicatorProps>;
|
package/dist/tabs/tab-list.d.ts
CHANGED
|
@@ -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 TabListProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const TabList: ComponentWithAs<"div", TabListProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { JSXElementConstructor, ReactElement } from 'react';
|
|
3
|
-
import type
|
|
1
|
+
import { type connect } from '@zag-js/tabs';
|
|
2
|
+
import type { JSXElementConstructor, type ReactElement } from 'react';
|
|
3
|
+
import { type Assign } from '../types';
|
|
4
4
|
type TabContext = Parameters<ReturnType<typeof connect>['getTriggerProps']>[0];
|
|
5
5
|
export type TabTriggerProps = Assign<{
|
|
6
6
|
children: ReactElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TabProps } from '@zag-js/tabs/dist/tabs.types';
|
|
2
2
|
import type { Provider, HTMLAttributes, DetailedHTMLProps, ButtonHTMLAttributes } from 'react';
|
|
3
|
-
import type
|
|
3
|
+
import { type UseTabsReturn } from './use-tabs';
|
|
4
4
|
export type TabsContext = UseTabsReturn;
|
|
5
5
|
export declare const TabsProvider: Provider<{
|
|
6
6
|
value: string | null;
|
package/dist/tabs/tabs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
3
|
-
import type
|
|
4
|
-
import { UseTabsProps } from './use-tabs';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
|
+
import { type Assign } from '../types';
|
|
4
|
+
import { type UseTabsProps } from './use-tabs';
|
|
5
5
|
export type TabsProps = Assign<HTMLArkProps<'div'>, UseTabsProps>;
|
|
6
6
|
export declare const Tabs: ComponentWithAs<"div", TabsProps>;
|
package/dist/tabs/use-tabs.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TabProps } from '@zag-js/tabs/dist/tabs.types';
|
|
2
2
|
import type { HTMLAttributes, DetailedHTMLProps, ButtonHTMLAttributes } from 'react';
|
|
3
|
-
import { Context } from '@zag-js/tabs';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context } from '@zag-js/tabs';
|
|
4
|
+
import { type Optional } from '../types';
|
|
5
5
|
export type UseTabsProps = Optional<Context, 'id'> & {
|
|
6
6
|
defaultValue?: Context['value'];
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { JSXElementConstructor, ReactElement } from 'react';
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
1
|
+
import type { JSXElementConstructor, type ReactElement } from 'react';
|
|
2
|
+
import { type Assign } from '../types';
|
|
3
|
+
import { type TagProps } from './tag';
|
|
4
4
|
export type TagDeleteTriggerProps = Assign<TagProps, {
|
|
5
5
|
children: ReactElement;
|
|
6
6
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
3
|
-
import type
|
|
4
|
-
import type
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
|
+
import { type Assign } from '../types';
|
|
4
|
+
import { type TagProps } from './tag';
|
|
5
5
|
export type TagInputProps = Assign<HTMLArkProps<'input'>, TagProps>;
|
|
6
6
|
export declare const TagInput: ComponentWithAs<"input", TagInputProps>;
|
package/dist/tags-input/tag.d.ts
CHANGED
|
@@ -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
|
export type TagProps = {
|
|
5
5
|
index: string | number;
|
|
6
6
|
value: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TagProps } from '@zag-js/tags-input/dist/tags-input.types';
|
|
2
2
|
import type { Provider, HTMLAttributes, DetailedHTMLProps, LabelHTMLAttributes, InputHTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
3
|
-
import type
|
|
3
|
+
import { type UseTagsInputReturn } from './use-tags-input';
|
|
4
4
|
export type TagsInputContext = UseTagsInputReturn;
|
|
5
5
|
export declare const TagsInputProvider: Provider<{
|
|
6
6
|
isEmpty: 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 TagsInputControlProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const TagsInputControl: ComponentWithAs<"div", TagsInputControlProps>;
|
|
@@ -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 TagsInputFieldProps = HTMLArkProps<'input'>;
|
|
4
4
|
export declare const TagsInputField: ComponentWithAs<"input", TagsInputFieldProps>;
|
|
@@ -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 TagsInputLabelProps = HTMLArkProps<'label'>;
|
|
4
4
|
export declare const TagsInputLabel: ComponentWithAs<"label", TagsInputLabelProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import type
|
|
3
|
-
import { HTMLArkProps } from '../factory';
|
|
4
|
-
import type
|
|
5
|
-
import { UseTagsInputProps } from './use-tags-input';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
import { type Assign } from '../types';
|
|
5
|
+
import { type UseTagsInputProps } from './use-tags-input';
|
|
6
6
|
export type TagsInputProps = Assign<Assign<HTMLArkProps<'input'>, UseTagsInputProps>, {
|
|
7
7
|
children: ReactNode | ((pages: UseTagsInputProps) => ReactNode);
|
|
8
8
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TagProps } from '@zag-js/tags-input/dist/tags-input.types';
|
|
2
2
|
import type { HTMLAttributes, DetailedHTMLProps, LabelHTMLAttributes, InputHTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
3
3
|
import * as tagsInput from '@zag-js/tags-input';
|
|
4
|
-
import type
|
|
4
|
+
import { type Optional } from '../types';
|
|
5
5
|
export type UseTagsInputProps = Optional<tagsInput.Context, 'id'> & {
|
|
6
6
|
defaultValue?: tagsInput.Context['value'];
|
|
7
7
|
};
|
|
@@ -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 ToastDescriptionProps = HTMLArkProps<'p'>;
|
|
4
4
|
export declare const ToastDescription: ComponentWithAs<"p", ToastDescriptionProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
4
|
-
import { HTMLArkProps } from '../factory';
|
|
5
|
-
import type
|
|
2
|
+
import { type Placement, type Service } from '@zag-js/toast';
|
|
3
|
+
import { type ReactNode } from 'react';
|
|
4
|
+
import { type HTMLArkProps } from '../factory';
|
|
5
|
+
import { type Assign } from '../types';
|
|
6
6
|
export type ToastGroupProps = Assign<HTMLArkProps<'div'>, {
|
|
7
7
|
placement: Placement;
|
|
8
8
|
children: ReactNode | ((toasts: Service[]) => ReactNode);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Type, Placement } from '@zag-js/toast/dist/toast.types';
|
|
2
2
|
import type { Provider, HTMLAttributes, DetailedHTMLProps, ButtonHTMLAttributes } from 'react';
|
|
3
|
-
import type
|
|
3
|
+
import { type UseToastItemReturn } from './use-toast-item';
|
|
4
4
|
export type ToastItemContext = UseToastItemReturn;
|
|
5
5
|
export declare const ToastItemProvider: Provider<{
|
|
6
6
|
type: Type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
1
|
+
import { type Placement } from '@zag-js/toast';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
3
|
export type ToastPlacementsProps = {
|
|
4
4
|
children: (placements: Placement[]) => ReactNode;
|
|
5
5
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PromiseOptions, GroupProps } from '@zag-js/toast/dist/toast.types';
|
|
2
2
|
import * as toast from '@zag-js/toast';
|
|
3
|
-
import type { Provider, PropsWithChildren } from 'react';
|
|
4
|
-
import type
|
|
3
|
+
import type { Provider, type PropsWithChildren } from 'react';
|
|
4
|
+
import { type Optional } from '../types';
|
|
5
5
|
type GroupPublicContext = Parameters<(typeof toast)['group']['machine']>[0];
|
|
6
6
|
export type ToastContext = ReturnType<(typeof toast)['group']['connect']>;
|
|
7
7
|
export declare const ToastContextProvider: Provider<{
|
|
@@ -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 ToastTitleProps = HTMLArkProps<'h3'>;
|
|
4
4
|
export declare const ToastTitle: ComponentWithAs<"h3", ToastTitleProps>;
|
package/dist/toast/toast.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentWithAs } from '@polymorphic-factory/react';
|
|
2
|
-
import { HTMLArkProps } from '../factory';
|
|
3
|
-
import type
|
|
4
|
-
import { UseToastItemProps } from './use-toast-item';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
|
+
import { type Assign } from '../types';
|
|
4
|
+
import { type UseToastItemProps } from './use-toast-item';
|
|
5
5
|
export type ToastProps = Assign<HTMLArkProps<'div'>, UseToastItemProps>;
|
|
6
6
|
export declare const Toast: ComponentWithAs<"div", ToastProps>;
|
|
@@ -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 TooltipArrowTipProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const TooltipArrowTip: ComponentWithAs<"div", TooltipArrowTipProps>;
|
|
@@ -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 TooltipArrowProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const TooltipArrow: ComponentWithAs<"div", TooltipArrowProps>;
|
|
@@ -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 TooltipContentProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const TooltipContent: ComponentWithAs<"div", TooltipContentProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Provider, DetailedHTMLProps, ButtonHTMLAttributes, HTMLAttributes } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type UseTooltipReturn } from './use-tooltip';
|
|
3
3
|
export type TooltipContext = UseTooltipReturn;
|
|
4
4
|
export declare const TooltipProvider: 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 TooltipPositionerProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const TooltipPositioner: ComponentWithAs<"div", TooltipPositionerProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { UseTooltipProps } from './use-tooltip';
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type UseTooltipProps } from './use-tooltip';
|
|
3
3
|
export type TooltipProps = PropsWithChildren<UseTooltipProps>;
|
|
4
4
|
export declare const Tooltip: (props: TooltipProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DetailedHTMLProps, ButtonHTMLAttributes, HTMLAttributes } from 'react';
|
|
2
2
|
import * as tooltip from '@zag-js/tooltip';
|
|
3
|
-
import type
|
|
3
|
+
import { type Optional } from '../types';
|
|
4
4
|
export type UseTooltipProps = Optional<tooltip.Context, 'id'>;
|
|
5
5
|
export declare const useTooltip: (props: UseTooltipProps) => {
|
|
6
6
|
isOpen: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EffectCallback } from 'react';
|
|
1
|
+
import { type EffectCallback } from 'react';
|
|
2
2
|
export declare function useEffectOnce(callback: EffectCallback): void;
|