@ark-ui/solid 1.0.0-beta.3 → 1.0.1
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/CHANGELOG.md +14 -51
- package/cjs/index.js +604 -453
- package/cjs/index.js.map +1 -1
- package/esm/index.js +601 -455
- package/esm/index.js.map +1 -1
- package/package.json +42 -42
- package/source/accordion/accordion-item-content.jsx +6 -5
- package/source/accordion/accordion-item-trigger.jsx +4 -1
- package/source/accordion/accordion-item.jsx +10 -6
- package/source/accordion/accordion.jsx +8 -4
- package/source/avatar/avatar-fallback.jsx +2 -2
- package/source/avatar/avatar-image.jsx +2 -2
- package/source/avatar/avatar.jsx +2 -2
- package/source/carousel/carousel.jsx +6 -4
- package/source/checkbox/checkbox-label.jsx +2 -2
- package/source/color-picker/color-picker-content.jsx +6 -5
- package/source/color-picker/color-picker-positioner.jsx +6 -1
- package/source/color-picker/color-picker-view.jsx +13 -0
- package/source/color-picker/color-picker.jsx +8 -3
- package/source/color-picker/index.js +2 -0
- package/source/combobox/combobox-content.jsx +6 -5
- package/source/combobox/combobox-positioner.jsx +8 -3
- package/source/combobox/combobox.jsx +8 -3
- package/source/date-picker/date-picker-content.jsx +6 -5
- package/source/date-picker/date-picker-positioner.jsx +6 -1
- package/source/date-picker/date-picker.jsx +8 -3
- package/source/dialog/dialog-backdrop.jsx +7 -5
- package/source/dialog/dialog-close-trigger.jsx +2 -2
- package/source/dialog/dialog-content.jsx +6 -5
- package/source/dialog/dialog-description.jsx +2 -2
- package/source/dialog/dialog-positioner.jsx +8 -3
- package/source/dialog/dialog-title.jsx +2 -2
- package/source/dialog/dialog-trigger.jsx +6 -3
- package/source/dialog/dialog.jsx +11 -3
- package/source/editable/editable-area.jsx +2 -2
- package/source/editable/editable-cancel-trigger.jsx +2 -2
- package/source/editable/editable-control.jsx +2 -2
- package/source/editable/editable-edit-trigger.jsx +2 -2
- package/source/editable/editable-input.jsx +2 -2
- package/source/editable/editable-label.jsx +2 -2
- package/source/editable/editable-preview.jsx +2 -2
- package/source/editable/editable-submit-trigger.jsx +2 -2
- package/source/editable/editable.jsx +2 -2
- package/source/hover-card/hover-card-arrow-tip.jsx +2 -2
- package/source/hover-card/hover-card-arrow.jsx +2 -2
- package/source/hover-card/hover-card-content.jsx +6 -5
- package/source/hover-card/hover-card-positioner.jsx +8 -3
- package/source/hover-card/hover-card-trigger.jsx +2 -2
- package/source/hover-card/hover-card.jsx +9 -3
- package/source/menu/menu-arrow-tip.jsx +2 -2
- package/source/menu/menu-arrow.jsx +2 -2
- package/source/menu/menu-content.jsx +6 -5
- package/source/menu/menu-context-trigger.jsx +2 -2
- package/source/menu/menu-item-group.jsx +2 -2
- package/source/menu/menu-item.jsx +2 -2
- package/source/menu/menu-option-item.jsx +2 -2
- package/source/menu/menu-positioner.jsx +8 -3
- package/source/menu/menu-separator.jsx +2 -2
- package/source/menu/menu-trigger-item.jsx +2 -2
- package/source/menu/menu-trigger.jsx +6 -3
- package/source/menu/menu.jsx +11 -12
- package/source/number-input/number-input-control.jsx +2 -2
- package/source/number-input/number-input-decrement-trigger.jsx +2 -2
- package/source/number-input/number-input-field.jsx +2 -2
- package/source/number-input/number-input-increment-trigger.jsx +2 -2
- package/source/number-input/number-input-label.jsx +2 -2
- package/source/number-input/number-input-scrubber.jsx +2 -2
- package/source/number-input/number-input.jsx +2 -2
- package/source/pagination/pagination.jsx +2 -2
- package/source/pin-input/pin-input-field.jsx +2 -2
- package/source/pin-input/pin-input-label.jsx +2 -2
- package/source/popover/popover-anchor.jsx +2 -2
- package/source/popover/popover-arrow-tip.jsx +2 -2
- package/source/popover/popover-arrow.jsx +2 -2
- package/source/popover/popover-close-trigger.jsx +2 -2
- package/source/popover/popover-content.jsx +6 -5
- package/source/popover/popover-description.jsx +2 -2
- package/source/popover/popover-positioner.jsx +7 -2
- package/source/popover/popover-title.jsx +2 -2
- package/source/popover/popover-trigger.jsx +5 -2
- package/source/popover/popover.jsx +10 -2
- package/source/presence/index.js +4 -1
- package/source/presence/presence-context.js +5 -0
- package/source/presence/presence-props-context.js +5 -0
- package/source/presence/presence.jsx +9 -28
- package/source/presence/split-presence-props.js +0 -1
- package/source/presence/use-presence.js +21 -4
- package/source/rating-group/rating-group-item.jsx +5 -4
- package/source/select/select-content.jsx +6 -5
- package/source/select/select-positioner.jsx +6 -1
- package/source/select/select.jsx +8 -3
- package/source/slider/slider-thumb.jsx +2 -2
- package/source/slider/slider-value-text.jsx +3 -3
- package/source/splitter/splitter-panel.jsx +2 -2
- package/source/splitter/splitter-resize-trigger.jsx +2 -2
- package/source/splitter/splitter.jsx +2 -2
- package/source/switch/switch-label.jsx +2 -2
- package/source/switch/switch-thumb.jsx +2 -2
- package/source/tabs/tab-content.jsx +11 -8
- package/source/tabs/tab-indicator.jsx +2 -2
- package/source/tabs/tab-list.jsx +2 -2
- package/source/tabs/tab-trigger.jsx +2 -2
- package/source/tabs/tabs.jsx +7 -3
- package/source/toggle-group/toggle-group.jsx +2 -2
- package/source/tooltip/tooltip-arrow-tip.jsx +2 -2
- package/source/tooltip/tooltip-arrow.jsx +2 -2
- package/source/tooltip/tooltip-content.jsx +7 -6
- package/source/tooltip/tooltip-positioner.jsx +7 -2
- package/source/tooltip/tooltip-trigger.jsx +2 -2
- package/source/tooltip/tooltip.jsx +10 -2
- package/types/accordion/accordion-context.d.ts +3 -2
- package/types/accordion/accordion-item-content.d.ts +1 -3
- package/types/accordion/accordion-item-context.d.ts +3 -2
- package/types/accordion/accordion-item-indicator.d.ts +2 -1
- package/types/accordion/accordion-item-trigger.d.ts +2 -1
- package/types/accordion/accordion-item.d.ts +5 -4
- package/types/accordion/accordion.d.ts +3 -1
- package/types/accordion/use-accordion.d.ts +4 -2
- package/types/avatar/avatar-context.d.ts +3 -2
- package/types/avatar/avatar-fallback.d.ts +2 -1
- package/types/avatar/avatar-image.d.ts +2 -1
- package/types/avatar/avatar.d.ts +2 -1
- package/types/avatar/use-avatar.d.ts +4 -2
- package/types/carousel/carousel-context.d.ts +3 -2
- package/types/carousel/carousel-control.d.ts +2 -1
- package/types/carousel/carousel-indicator-group.d.ts +2 -1
- package/types/carousel/carousel-indicator.d.ts +2 -1
- package/types/carousel/carousel-next-trigger.d.ts +2 -1
- package/types/carousel/carousel-prev-trigger.d.ts +2 -1
- package/types/carousel/carousel-slide-group.d.ts +2 -1
- package/types/carousel/carousel-slide.d.ts +2 -1
- package/types/carousel/carousel-viewport.d.ts +2 -1
- package/types/carousel/carousel.d.ts +7 -3
- package/types/carousel/use-carousel.d.ts +4 -2
- package/types/checkbox/checkbox-context.d.ts +3 -2
- package/types/checkbox/checkbox-control.d.ts +2 -1
- package/types/checkbox/checkbox-indicator.d.ts +2 -1
- package/types/checkbox/checkbox-label.d.ts +2 -1
- package/types/checkbox/checkbox.d.ts +5 -5
- package/types/checkbox/use-checkbox.d.ts +4 -2
- package/types/color-picker/color-picker-content.d.ts +1 -3
- package/types/color-picker/color-picker-view.d.ts +7 -0
- package/types/color-picker/color-picker.d.ts +5 -3
- package/types/color-picker/index.d.ts +3 -1
- package/types/combobox/combobox-clear-trigger.d.ts +2 -1
- package/types/combobox/combobox-content.d.ts +1 -3
- package/types/combobox/combobox-context.d.ts +2 -1
- package/types/combobox/combobox-control.d.ts +2 -1
- package/types/combobox/combobox-input.d.ts +2 -1
- package/types/combobox/combobox-item-context.d.ts +3 -2
- package/types/combobox/combobox-item-group.d.ts +2 -1
- package/types/combobox/combobox-item-indicator.d.ts +2 -1
- package/types/combobox/combobox-item-text.d.ts +2 -1
- package/types/combobox/combobox-item.d.ts +5 -4
- package/types/combobox/combobox-label.d.ts +2 -1
- package/types/combobox/combobox-positioner.d.ts +2 -1
- package/types/combobox/combobox-trigger.d.ts +2 -1
- package/types/combobox/combobox.d.ts +7 -6
- package/types/combobox/use-combobox.d.ts +2 -1
- package/types/date-picker/date-picker-content.d.ts +1 -3
- package/types/date-picker/date-picker-context.d.ts +3 -2
- package/types/date-picker/date-picker-view.d.ts +4 -3
- package/types/date-picker/date-picker.d.ts +5 -3
- package/types/dialog/dialog-backdrop.d.ts +1 -3
- package/types/dialog/dialog-close-trigger.d.ts +2 -1
- package/types/dialog/dialog-content.d.ts +1 -3
- package/types/dialog/dialog-context.d.ts +3 -2
- package/types/dialog/dialog-description.d.ts +2 -1
- package/types/dialog/dialog-positioner.d.ts +2 -1
- package/types/dialog/dialog-title.d.ts +2 -1
- package/types/dialog/dialog-trigger.d.ts +2 -1
- package/types/dialog/dialog.d.ts +4 -3
- package/types/dialog/use-dialog.d.ts +4 -2
- package/types/editable/editable-area.d.ts +2 -1
- package/types/editable/editable-cancel-trigger.d.ts +2 -1
- package/types/editable/editable-context.d.ts +3 -2
- package/types/editable/editable-control.d.ts +2 -1
- package/types/editable/editable-edit-trigger.d.ts +2 -1
- package/types/editable/editable-input.d.ts +2 -1
- package/types/editable/editable-label.d.ts +2 -1
- package/types/editable/editable-preview.d.ts +2 -1
- package/types/editable/editable-submit-trigger.d.ts +2 -1
- package/types/editable/editable.d.ts +5 -5
- package/types/editable/use-editable.d.ts +4 -2
- package/types/environment/environment.d.ts +2 -2
- package/types/hover-card/hover-card-arrow-tip.d.ts +2 -1
- package/types/hover-card/hover-card-arrow.d.ts +2 -1
- package/types/hover-card/hover-card-content.d.ts +1 -3
- package/types/hover-card/hover-card-context.d.ts +3 -2
- package/types/hover-card/hover-card-positioner.d.ts +2 -1
- package/types/hover-card/hover-card-trigger.d.ts +2 -1
- package/types/hover-card/hover-card.d.ts +4 -3
- package/types/hover-card/use-hover-card.d.ts +4 -2
- package/types/menu/menu-arrow-tip.d.ts +2 -1
- package/types/menu/menu-arrow.d.ts +2 -1
- package/types/menu/menu-content.d.ts +1 -3
- package/types/menu/menu-context-trigger.d.ts +2 -1
- package/types/menu/menu-item-group.d.ts +2 -1
- package/types/menu/menu-item.d.ts +2 -1
- package/types/menu/menu-option-item.d.ts +3 -2
- package/types/menu/menu-positioner.d.ts +2 -1
- package/types/menu/menu-separator.d.ts +2 -1
- package/types/menu/menu-trigger-item.d.ts +2 -1
- package/types/menu/menu-trigger.d.ts +2 -1
- package/types/menu/menu.d.ts +6 -9
- package/types/menu/use-menu.d.ts +2 -1
- package/types/number-input/number-input-context.d.ts +3 -2
- package/types/number-input/number-input-control.d.ts +2 -1
- package/types/number-input/number-input-decrement-trigger.d.ts +2 -1
- package/types/number-input/number-input-field.d.ts +2 -1
- package/types/number-input/number-input-increment-trigger.d.ts +2 -1
- package/types/number-input/number-input-label.d.ts +2 -1
- package/types/number-input/number-input-scrubber.d.ts +2 -1
- package/types/number-input/number-input.d.ts +2 -1
- package/types/number-input/use-number-input.d.ts +4 -2
- package/types/pagination/pagination-context.d.ts +3 -2
- package/types/pagination/pagination-ellipsis.d.ts +2 -1
- package/types/pagination/pagination-item.d.ts +2 -1
- package/types/pagination/pagination.d.ts +4 -3
- package/types/pagination/use-pagination.d.ts +4 -2
- package/types/pin-input/pin-input-context.d.ts +3 -2
- package/types/pin-input/pin-input-control.d.ts +2 -1
- package/types/pin-input/pin-input-field.d.ts +3 -2
- package/types/pin-input/pin-input-label.d.ts +2 -1
- package/types/pin-input/pin-input.d.ts +2 -1
- package/types/pin-input/use-pin-input.d.ts +4 -2
- package/types/popover/popover-anchor.d.ts +2 -1
- package/types/popover/popover-arrow-tip.d.ts +2 -1
- package/types/popover/popover-arrow.d.ts +2 -1
- package/types/popover/popover-close-trigger.d.ts +2 -1
- package/types/popover/popover-content.d.ts +1 -3
- package/types/popover/popover-context.d.ts +3 -2
- package/types/popover/popover-description.d.ts +2 -1
- package/types/popover/popover-indicator.d.ts +2 -1
- package/types/popover/popover-positioner.d.ts +2 -1
- package/types/popover/popover-title.d.ts +2 -1
- package/types/popover/popover-trigger.d.ts +2 -1
- package/types/popover/popover.d.ts +5 -4
- package/types/popover/use-popover.d.ts +4 -2
- package/types/presence/index.d.ts +5 -2
- package/types/presence/presence-context.d.ts +4 -0
- package/types/presence/presence-props-context.d.ts +4 -0
- package/types/presence/presence.d.ts +3 -18
- package/types/presence/split-presence-props.d.ts +2 -2
- package/types/presence/use-presence.d.ts +23 -2
- package/types/radio-group/radio-group-context.d.ts +3 -2
- package/types/radio-group/radio-group-indicator.d.ts +2 -1
- package/types/radio-group/radio-group-item-context.d.ts +3 -2
- package/types/radio-group/radio-group-item-control.d.ts +2 -1
- package/types/radio-group/radio-group-item-text.d.ts +2 -1
- package/types/radio-group/radio-group-item.d.ts +2 -1
- package/types/radio-group/radio-group-label.d.ts +2 -1
- package/types/radio-group/radio-group.d.ts +2 -1
- package/types/radio-group/use-radio-group.d.ts +4 -2
- package/types/rating-group/rating-group-context.d.ts +3 -2
- package/types/rating-group/rating-group-control.d.ts +6 -5
- package/types/rating-group/rating-group-item-context.d.ts +4 -2
- package/types/rating-group/rating-group-item.d.ts +6 -6
- package/types/rating-group/rating-group-label.d.ts +2 -1
- package/types/rating-group/rating-group.d.ts +2 -1
- package/types/rating-group/use-rating-group.d.ts +4 -2
- package/types/segment-group/segment-group-context.d.ts +3 -2
- package/types/segment-group/segment-group-indicator.d.ts +2 -1
- package/types/segment-group/segment-group-item-control.d.ts +2 -1
- package/types/segment-group/segment-group-item-text.d.ts +2 -1
- package/types/segment-group/segment-group-item.d.ts +2 -1
- package/types/segment-group/segment-group-label.d.ts +2 -1
- package/types/segment-group/segment-group.d.ts +2 -1
- package/types/segment-group/use-segment-group.d.ts +4 -2
- package/types/select/select-clear-trigger.d.ts +2 -1
- package/types/select/select-content.d.ts +1 -3
- package/types/select/select-context.d.ts +2 -1
- package/types/select/select-control.d.ts +2 -1
- package/types/select/select-indicator.d.ts +2 -1
- package/types/select/select-item-context.d.ts +2 -1
- package/types/select/select-item-group.d.ts +2 -1
- package/types/select/select-item-indicator.d.ts +2 -1
- package/types/select/select-item-text.d.ts +2 -1
- package/types/select/select-item.d.ts +5 -4
- package/types/select/select-label.d.ts +2 -1
- package/types/select/select-positioner.d.ts +2 -1
- package/types/select/select-trigger.d.ts +2 -1
- package/types/select/select.d.ts +7 -6
- package/types/select/use-select.d.ts +2 -1
- package/types/slider/slider-context.d.ts +3 -2
- package/types/slider/slider-control.d.ts +2 -1
- package/types/slider/slider-label.d.ts +2 -1
- package/types/slider/slider-marker-group.d.ts +2 -1
- package/types/slider/slider-marker.d.ts +2 -1
- package/types/slider/slider-range.d.ts +2 -1
- package/types/slider/slider-thumb.d.ts +2 -1
- package/types/slider/slider-track.d.ts +2 -1
- package/types/slider/slider-value-text.d.ts +3 -7
- package/types/slider/slider.d.ts +4 -3
- package/types/slider/use-slider.d.ts +4 -2
- package/types/splitter/splitter-context.d.ts +3 -2
- package/types/splitter/splitter-panel.d.ts +2 -1
- package/types/splitter/splitter-resize-trigger.d.ts +2 -1
- package/types/splitter/splitter.d.ts +4 -3
- package/types/splitter/use-splitter.d.ts +4 -2
- package/types/switch/switch-context.d.ts +3 -2
- package/types/switch/switch-control.d.ts +2 -1
- package/types/switch/switch-label.d.ts +2 -1
- package/types/switch/switch-thumb.d.ts +2 -1
- package/types/switch/switch.d.ts +5 -5
- package/types/switch/use-switch.d.ts +4 -2
- package/types/tabs/tab-content.d.ts +2 -2
- package/types/tabs/tab-indicator.d.ts +2 -1
- package/types/tabs/tab-list.d.ts +2 -1
- package/types/tabs/tab-trigger.d.ts +2 -1
- package/types/tabs/tabs-context.d.ts +3 -2
- package/types/tabs/tabs.d.ts +3 -1
- package/types/tabs/use-tabs.d.ts +4 -2
- package/types/tags-input/tags-input-clear-trigger.d.ts +2 -1
- package/types/tags-input/tags-input-context.d.ts +3 -2
- package/types/tags-input/tags-input-control.d.ts +2 -1
- package/types/tags-input/tags-input-input.d.ts +2 -1
- package/types/tags-input/tags-input-item-context.d.ts +3 -2
- package/types/tags-input/tags-input-item-delete-trigger.d.ts +2 -1
- package/types/tags-input/tags-input-item-input.d.ts +2 -1
- package/types/tags-input/tags-input-item-text.d.ts +2 -1
- package/types/tags-input/tags-input-item.d.ts +5 -4
- package/types/tags-input/tags-input-label.d.ts +2 -1
- package/types/tags-input/tags-input.d.ts +5 -5
- package/types/tags-input/use-tags-input.d.ts +4 -2
- package/types/toast/toast-close-trigger.d.ts +2 -1
- package/types/toast/toast-description.d.ts +2 -1
- package/types/toast/toast-title.d.ts +2 -1
- package/types/toast/toast.d.ts +2 -1
- package/types/toggle-group/toggle-group-context.d.ts +3 -2
- package/types/toggle-group/toggle-group.d.ts +2 -1
- package/types/toggle-group/use-toggle-group.d.ts +4 -2
- package/types/tooltip/tooltip-arrow-tip.d.ts +2 -1
- package/types/tooltip/tooltip-arrow.d.ts +2 -1
- package/types/tooltip/tooltip-content.d.ts +1 -3
- package/types/tooltip/tooltip-context.d.ts +3 -2
- package/types/tooltip/tooltip-positioner.d.ts +2 -1
- package/types/tooltip/tooltip-trigger.d.ts +2 -1
- package/types/tooltip/tooltip.d.ts +6 -5
- package/types/tooltip/use-tooltip.d.ts +4 -2
- package/source/tabs/tab-presence.jsx +0 -6
- package/types/tabs/tab-presence.d.ts +0 -4
- /package/source/date-picker/{use-date-picker.jsx → use-date-picker.js} +0 -0
- /package/source/radio-group/{use-radio-group.jsx → use-radio-group.js} +0 -0
- /package/source/rating-group/{use-rating-group.jsx → use-rating-group.js} +0 -0
- /package/source/segment-group/{use-segment-group.jsx → use-segment-group.js} +0 -0
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
import * as presence from '@zag-js/presence';
|
|
2
2
|
import type { Optional } from '../types';
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export interface UsePresenceProps extends Optional<presence.Context, 'present'> {
|
|
4
|
+
/**
|
|
5
|
+
* Whether to enable lazy mounting
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
lazyMount?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Whether to unmount on exit.
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
unmountOnExit?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface UsePresenceReturn extends ReturnType<typeof usePresence> {
|
|
16
|
+
}
|
|
17
|
+
export declare const usePresence: (props: UsePresenceProps) => import("solid-js").Accessor<{
|
|
18
|
+
isUnmounted: boolean;
|
|
19
|
+
isPresent: boolean;
|
|
20
|
+
presenceProps: {
|
|
21
|
+
ref: (node: HTMLElement) => void;
|
|
22
|
+
hidden: boolean;
|
|
23
|
+
'data-state': string;
|
|
24
|
+
};
|
|
25
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type UseRadioGroupReturn } from './use-radio-group';
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export interface RadioGroupContext extends UseRadioGroupReturn {
|
|
3
|
+
}
|
|
4
|
+
export declare const RadioGroupProvider: import("solid-js").ContextProviderComponent<RadioGroupContext>, useRadioGroupContext: () => RadioGroupContext;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface RadioGroupIndicatorProps extends HTMLArkProps<'div'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const RadioGroupIndicator: (props: RadioGroupIndicatorProps) => import("solid-js").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { ItemProps } from '@zag-js/radio-group';
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export interface RadioGroupItemContext extends ItemProps {
|
|
3
|
+
}
|
|
4
|
+
export declare const RadioProvider: import("solid-js").ContextProviderComponent<RadioGroupItemContext>, useRadioGroupItemContext: () => RadioGroupItemContext;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface RadioGroupItemControlProps extends HTMLArkProps<'div'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const RadioGroupItemControl: (props: RadioGroupItemControlProps) => import("solid-js").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface RadioGroupItemTextProps extends HTMLArkProps<'span'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const RadioGroupItemText: (props: RadioGroupItemTextProps) => import("solid-js").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ItemProps } from '@zag-js/radio-group';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
import type { Assign } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export interface RadioGroupItemProps extends Assign<HTMLArkProps<'label'>, ItemProps> {
|
|
5
|
+
}
|
|
5
6
|
export declare const RadioGroupItem: (props: RadioGroupItemProps) => import("solid-js").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface RadioGroupLabelProps extends HTMLArkProps<'label'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const RadioGroupLabel: (props: RadioGroupLabelProps) => import("solid-js").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
2
|
import type { Assign } from '../types';
|
|
3
3
|
import { type UseRadioGroupProps } from './use-radio-group';
|
|
4
|
-
export
|
|
4
|
+
export interface RadioGroupProps extends Assign<HTMLArkProps<'div'>, UseRadioGroupProps> {
|
|
5
|
+
}
|
|
5
6
|
export declare const RadioGroup: (props: RadioGroupProps) => import("solid-js").JSX.Element;
|
|
@@ -2,6 +2,8 @@ import * as radio from '@zag-js/radio-group';
|
|
|
2
2
|
import { type PropTypes } from '@zag-js/solid';
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import { type Optional } from '../types';
|
|
5
|
-
export
|
|
6
|
-
|
|
5
|
+
export interface UseRadioGroupProps extends Optional<radio.Context, 'id'> {
|
|
6
|
+
}
|
|
7
|
+
export interface UseRadioGroupReturn extends Accessor<radio.Api<PropTypes>> {
|
|
8
|
+
}
|
|
7
9
|
export declare const useRadioGroup: (props: UseRadioGroupProps) => UseRadioGroupReturn;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type UseRatingGroupReturn } from './use-rating-group';
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export interface RatingGroupContext extends UseRatingGroupReturn {
|
|
3
|
+
}
|
|
4
|
+
export declare const RatingGroupProvider: import("solid-js").ContextProviderComponent<RatingGroupContext>, useRatingGroupContext: () => RatingGroupContext;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { type JSX } from 'solid-js
|
|
1
|
+
import { type JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
import type { Assign } from '../types';
|
|
4
|
-
import {
|
|
5
|
-
export
|
|
6
|
-
children
|
|
7
|
-
}
|
|
4
|
+
import type { UseRatingGroupReturn } from './use-rating-group';
|
|
5
|
+
export interface RatingGroupControlProps extends Assign<HTMLArkProps<'div'>, {
|
|
6
|
+
children?: JSX.Element | ((api: UseRatingGroupReturn) => JSX.Element);
|
|
7
|
+
}> {
|
|
8
|
+
}
|
|
8
9
|
export declare const RatingGroupControl: (props: RatingGroupControlProps) => JSX.Element;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { type ItemState } from '@zag-js/rating-group';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
import type { Accessor } from 'solid-js';
|
|
3
|
+
export interface RatingGroupItemContext extends Accessor<ItemState> {
|
|
4
|
+
}
|
|
5
|
+
export declare const RatingGroupItemProvider: import("solid-js").ContextProviderComponent<RatingGroupItemContext>, useRatingGroupItemContext: () => RatingGroupItemContext;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ItemProps } from '@zag-js/rating-group';
|
|
2
|
-
import { type JSX } from 'solid-js
|
|
1
|
+
import type { ItemProps, ItemState } from '@zag-js/rating-group';
|
|
2
|
+
import { type Accessor, type JSX } from 'solid-js';
|
|
3
3
|
import { type HTMLArkProps } from '../factory';
|
|
4
4
|
import type { Assign } from '../types';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
5
|
+
export interface RatingGroupItemProps extends Assign<HTMLArkProps<'span'>, {
|
|
6
|
+
children?: JSX.Element | ((state: Accessor<ItemState>) => JSX.Element);
|
|
7
|
+
}>, ItemProps {
|
|
8
|
+
}
|
|
9
9
|
export declare const RatingGroupItem: (props: RatingGroupItemProps) => JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface RatingGroupLabelProps extends HTMLArkProps<'label'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const RatingGroupLabel: (props: RatingGroupLabelProps) => import("solid-js").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
2
|
import type { Assign } from '../types';
|
|
3
3
|
import { type UseRatingGroupProps } from './use-rating-group';
|
|
4
|
-
export
|
|
4
|
+
export interface RatingGroupProps extends Assign<HTMLArkProps<'div'>, UseRatingGroupProps> {
|
|
5
|
+
}
|
|
5
6
|
export declare const RatingGroup: (props: RatingGroupProps) => import("solid-js").JSX.Element;
|
|
@@ -2,6 +2,8 @@ import * as rating from '@zag-js/rating-group';
|
|
|
2
2
|
import { type PropTypes } from '@zag-js/solid';
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import { type Optional } from '../types';
|
|
5
|
-
export
|
|
6
|
-
|
|
5
|
+
export interface UseRatingGroupProps extends Optional<rating.Context, 'id'> {
|
|
6
|
+
}
|
|
7
|
+
export interface UseRatingGroupReturn extends Accessor<rating.Api<PropTypes>> {
|
|
8
|
+
}
|
|
7
9
|
export declare const useRatingGroup: (props: UseRatingGroupProps) => UseRatingGroupReturn;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type UseSegmentGroupReturn } from './use-segment-group';
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export interface SegmentGroupContext extends UseSegmentGroupReturn {
|
|
3
|
+
}
|
|
4
|
+
export declare const SegmentGroupProvider: import("solid-js").ContextProviderComponent<SegmentGroupContext>, useSegmentGroupContext: () => SegmentGroupContext;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface SegmentGroupIndicatorProps extends HTMLArkProps<'div'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const SegmentGroupIndicator: (props: SegmentGroupIndicatorProps) => import("solid-js").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface SegmentGroupItemControlProps extends HTMLArkProps<'div'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const SegmentGroupItemControl: (props: SegmentGroupItemControlProps) => import("solid-js").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface SegmentGroupItemTextProps extends HTMLArkProps<'span'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const SegmentGroupItemText: (props: SegmentGroupItemTextProps) => import("solid-js").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
2
|
import type { Assign } from '../types';
|
|
3
3
|
import { type SegmentGroupItemContext } from './segment-group-item-context';
|
|
4
|
-
export
|
|
4
|
+
export interface SegmentGroupItemProps extends Assign<HTMLArkProps<'label'>, SegmentGroupItemContext> {
|
|
5
|
+
}
|
|
5
6
|
export declare const SegmentGroupItem: (props: SegmentGroupItemProps) => import("solid-js").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface SegmentGroupLabelProps extends HTMLArkProps<'label'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const SegmentGroupLabel: (props: SegmentGroupLabelProps) => import("solid-js").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
2
|
import type { Assign } from '../types';
|
|
3
3
|
import { type UseSegmentGroupProps } from './use-segment-group';
|
|
4
|
-
export
|
|
4
|
+
export interface SegmentGroupProps extends Assign<HTMLArkProps<'div'>, UseSegmentGroupProps> {
|
|
5
|
+
}
|
|
5
6
|
export declare const SegmentGroup: (props: SegmentGroupProps) => import("solid-js").JSX.Element;
|
|
@@ -2,6 +2,8 @@ import * as segment from '@zag-js/radio-group';
|
|
|
2
2
|
import { type PropTypes } from '@zag-js/solid';
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import { type Optional } from '../types';
|
|
5
|
-
export
|
|
6
|
-
|
|
5
|
+
export interface UseSegmentGroupProps extends Optional<segment.Context, 'id'> {
|
|
6
|
+
}
|
|
7
|
+
export interface UseSegmentGroupReturn extends Accessor<segment.Api<PropTypes>> {
|
|
8
|
+
}
|
|
7
9
|
export declare const useSegmentGroup: (props: UseSegmentGroupProps) => UseSegmentGroupReturn;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface SelectClearTriggerProps extends HTMLArkProps<'button'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const SelectClearTrigger: (props: SelectClearTriggerProps) => import("solid-js").JSX.Element;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
|
|
3
|
-
import type { Assign } from '../types';
|
|
4
|
-
export interface SelectContentProps extends Assign<HTMLArkProps<'div'>, Omit<PresenceProps, 'fallback'>> {
|
|
2
|
+
export interface SelectContentProps extends HTMLArkProps<'div'> {
|
|
5
3
|
}
|
|
6
4
|
export declare const SelectContent: (props: SelectContentProps) => import("solid-js").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CollectionItem } from '../types';
|
|
2
2
|
import { type UseSelectReturn } from './use-select';
|
|
3
|
-
export
|
|
3
|
+
export interface SelectContext<T extends CollectionItem> extends UseSelectReturn<T> {
|
|
4
|
+
}
|
|
4
5
|
export declare const SelectProvider: import("solid-js").ContextProviderComponent<SelectContext<any>>, useSelectContext: () => SelectContext<any>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface SelectControlProps extends HTMLArkProps<'div'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const SelectControl: (props: SelectControlProps) => import("solid-js").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface SelectIndicatorProps extends HTMLArkProps<'div'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const SelectIndicator: (props: SelectIndicatorProps) => import("solid-js").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { ItemProps } from '@zag-js/select';
|
|
2
|
-
export
|
|
2
|
+
export interface SelectItemContext extends ItemProps {
|
|
3
|
+
}
|
|
3
4
|
export declare const SelectItemProvider: import("solid-js").ContextProviderComponent<SelectItemContext>, useSelectItemContext: () => SelectItemContext;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ItemGroupProps } from '@zag-js/select';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
import type { Assign } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export interface SelectItemGroupProps extends Assign<HTMLArkProps<'div'>, ItemGroupProps> {
|
|
5
|
+
}
|
|
5
6
|
export declare const SelectItemGroup: (props: SelectItemGroupProps) => import("solid-js").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface SelectItemIndicatorProps extends HTMLArkProps<'div'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const SelectItemIndicator: (props: SelectItemIndicatorProps) => import("solid-js").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface SelectItemTextProps extends HTMLArkProps<'span'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const SelectItemText: (props: SelectItemTextProps) => import("solid-js").JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { ItemProps, ItemState } from '@zag-js/select';
|
|
2
|
-
import { type JSX } from 'solid-js';
|
|
2
|
+
import { type Accessor, type JSX } from 'solid-js';
|
|
3
3
|
import { type HTMLArkProps } from '../factory';
|
|
4
4
|
import type { Assign } from '../types';
|
|
5
|
-
export
|
|
6
|
-
children?: JSX.Element | ((state:
|
|
7
|
-
}
|
|
5
|
+
export interface SelectItemProps extends Assign<HTMLArkProps<'div'>, {
|
|
6
|
+
children?: JSX.Element | ((state: Accessor<ItemState>) => JSX.Element);
|
|
7
|
+
}>, ItemProps {
|
|
8
|
+
}
|
|
8
9
|
export declare const SelectItem: (props: SelectItemProps) => JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface SelectLabelProps extends HTMLArkProps<'label'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const SelectLabel: (props: SelectLabelProps) => import("solid-js").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface SelectPositionerProps extends HTMLArkProps<'div'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const SelectPositioner: (props: SelectPositionerProps) => import("solid-js").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface SelectTriggerProps extends HTMLArkProps<'button'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const SelectTrigger: (props: SelectTriggerProps) => import("solid-js").JSX.Element;
|
package/types/select/select.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { type JSX } from 'solid-js
|
|
1
|
+
import { type JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
|
+
import { type UsePresenceProps } from '../presence';
|
|
3
4
|
import type { Assign, CollectionItem } from '../types';
|
|
4
|
-
import { type
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
5
|
+
import { type UseSelectProps, type UseSelectReturn } from './use-select';
|
|
6
|
+
export interface SelectProps<T extends CollectionItem> extends Assign<Assign<HTMLArkProps<'div'>, {
|
|
7
|
+
children?: JSX.Element | ((api: UseSelectReturn<T>) => JSX.Element);
|
|
8
|
+
}>, UseSelectProps<T>>, UsePresenceProps {
|
|
9
|
+
}
|
|
9
10
|
export declare const Select: <T extends CollectionItem>(props: SelectProps<T>) => JSX.Element;
|
|
@@ -5,5 +5,6 @@ import { type Accessor } from 'solid-js';
|
|
|
5
5
|
import { type CollectionItem, type Optional } from '../types';
|
|
6
6
|
export interface UseSelectProps<T extends CollectionItem> extends CollectionOptions<T>, Omit<Optional<select.Context<T>, 'id'>, 'collection'> {
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export interface UseSelectReturn<T extends CollectionItem> extends Accessor<select.Api<PropTypes, T>> {
|
|
9
|
+
}
|
|
9
10
|
export declare const useSelect: <T extends CollectionItem>(props: UseSelectProps<T>) => UseSelectReturn<T>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type UseSliderReturn } from './use-slider';
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export interface SliderContext extends UseSliderReturn {
|
|
3
|
+
}
|
|
4
|
+
export declare const SliderProvider: import("solid-js").ContextProviderComponent<SliderContext>, useSliderContext: () => SliderContext;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface SliderControlProps extends HTMLArkProps<'div'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const SliderControl: (props: SliderControlProps) => import("solid-js").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface SliderLabelProps extends HTMLArkProps<'label'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const SliderLabel: (props: SliderLabelProps) => import("solid-js").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface SliderMarkerGroupProps extends HTMLArkProps<'div'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const SliderMarkerGroup: (props: SliderMarkerGroupProps) => import("solid-js").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { MarkerProps } from '@zag-js/slider';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
import type { Assign } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export interface SliderMarkerProps extends Assign<HTMLArkProps<'span'>, MarkerProps> {
|
|
5
|
+
}
|
|
5
6
|
export declare const SliderMarker: (props: SliderMarkerProps) => import("solid-js").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ThumbProps } from '@zag-js/slider';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
import type { Assign } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export interface SliderThumbProps extends Assign<HTMLArkProps<'div'>, ThumbProps> {
|
|
5
|
+
}
|
|
5
6
|
export declare const SliderThumb: (props: SliderThumbProps) => import("solid-js").JSX.Element;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { type JSX } from 'solid-js';
|
|
2
1
|
import { type HTMLArkProps } from '../factory';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
children?: ((pages: UseSliderReturn) => JSX.Element) | JSX.Element;
|
|
7
|
-
}>;
|
|
8
|
-
export declare const SliderValueText: (props: SliderValueTextProps) => JSX.Element;
|
|
2
|
+
export interface SliderValueTextProps extends HTMLArkProps<'div'> {
|
|
3
|
+
}
|
|
4
|
+
export declare const SliderValueText: (props: SliderValueTextProps) => import("solid-js").JSX.Element;
|
package/types/slider/slider.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import { type JSX } from 'solid-js';
|
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
import type { Assign } from '../types';
|
|
4
4
|
import { type UseSliderProps, type UseSliderReturn } from './use-slider';
|
|
5
|
-
export
|
|
6
|
-
children?: ((api: UseSliderReturn) => JSX.Element)
|
|
7
|
-
}
|
|
5
|
+
export interface SliderProps extends Assign<Assign<HTMLArkProps<'div'>, {
|
|
6
|
+
children?: JSX.Element | ((api: UseSliderReturn) => JSX.Element);
|
|
7
|
+
}>, UseSliderProps> {
|
|
8
|
+
}
|
|
8
9
|
export declare const Slider: (props: SliderProps) => JSX.Element;
|
|
@@ -2,6 +2,8 @@ import * as slider from '@zag-js/slider';
|
|
|
2
2
|
import { type PropTypes } from '@zag-js/solid';
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import { type Optional } from '../types';
|
|
5
|
-
export
|
|
6
|
-
|
|
5
|
+
export interface UseSliderProps extends Optional<slider.Context, 'id'> {
|
|
6
|
+
}
|
|
7
|
+
export interface UseSliderReturn extends Accessor<slider.Api<PropTypes>> {
|
|
8
|
+
}
|
|
7
9
|
export declare const useSlider: (props: UseSliderProps) => UseSliderReturn;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type UseSplitterReturn } from './use-splitter';
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export interface SplitterContext extends UseSplitterReturn {
|
|
3
|
+
}
|
|
4
|
+
export declare const SplitterProvider: import("solid-js").ContextProviderComponent<SplitterContext>, useSplitterContext: () => SplitterContext;
|
|
@@ -2,6 +2,7 @@ import { type connect } from '@zag-js/splitter';
|
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
import type { Assign } from '../types';
|
|
4
4
|
type PanelParams = Parameters<ReturnType<typeof connect>['getPanelProps']>[0];
|
|
5
|
-
export
|
|
5
|
+
export interface SplitterPanelProps extends Assign<HTMLArkProps<'div'>, PanelParams> {
|
|
6
|
+
}
|
|
6
7
|
export declare const SplitterPanel: (props: SplitterPanelProps) => import("solid-js").JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -2,6 +2,7 @@ import { connect } from '@zag-js/splitter';
|
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
import type { Assign } from '../types';
|
|
4
4
|
type TriggerParams = Parameters<ReturnType<typeof connect>['getResizeTriggerProps']>[0];
|
|
5
|
-
export
|
|
5
|
+
export interface SplitterResizeTriggerProps extends Assign<HTMLArkProps<'button'>, TriggerParams> {
|
|
6
|
+
}
|
|
6
7
|
export declare const SplitterResizeTrigger: (props: SplitterResizeTriggerProps) => import("solid-js").JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -2,7 +2,8 @@ import { type JSX } from 'solid-js';
|
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
import type { Assign } from '../types';
|
|
4
4
|
import { type UseSplitterProps, type UseSplitterReturn } from './use-splitter';
|
|
5
|
-
export
|
|
6
|
-
children?: JSX.Element | ((
|
|
7
|
-
}
|
|
5
|
+
export interface SplitterProps extends Assign<Assign<HTMLArkProps<'div'>, {
|
|
6
|
+
children?: JSX.Element | ((api: UseSplitterReturn) => JSX.Element);
|
|
7
|
+
}>, UseSplitterProps> {
|
|
8
|
+
}
|
|
8
9
|
export declare const Splitter: (props: SplitterProps) => JSX.Element;
|
|
@@ -2,6 +2,8 @@ import { type PropTypes } from '@zag-js/solid';
|
|
|
2
2
|
import * as splitter from '@zag-js/splitter';
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import { type Optional } from '../types';
|
|
5
|
-
export
|
|
6
|
-
|
|
5
|
+
export interface UseSplitterProps extends Optional<splitter.Context, 'id'> {
|
|
6
|
+
}
|
|
7
|
+
export interface UseSplitterReturn extends Accessor<splitter.Api<PropTypes>> {
|
|
8
|
+
}
|
|
7
9
|
export declare const useSplitter: (props: UseSplitterProps) => UseSplitterReturn;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type UseSwitchReturn } from './use-switch';
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export interface SwitchContext extends UseSwitchReturn {
|
|
3
|
+
}
|
|
4
|
+
export declare const SwitchProvider: import("solid-js").ContextProviderComponent<SwitchContext>, useSwitchContext: () => SwitchContext;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HTMLArkProps } from '../factory';
|
|
2
|
-
export
|
|
2
|
+
export interface SwitchControlProps extends HTMLArkProps<'span'> {
|
|
3
|
+
}
|
|
3
4
|
export declare const SwitchControl: (props: SwitchControlProps) => import("solid-js").JSX.Element;
|
package/types/switch/switch.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
import type { Assign } from '../types';
|
|
4
|
-
import { type
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
4
|
+
import { type UseSwitchProps, type UseSwitchReturn } from './use-switch';
|
|
5
|
+
export interface SwitchProps extends Assign<Assign<HTMLArkProps<'label'>, {
|
|
6
|
+
children?: JSX.Element | ((api: UseSwitchReturn) => JSX.Element);
|
|
7
|
+
}>, UseSwitchProps> {
|
|
8
|
+
}
|
|
9
9
|
export declare const Switch: (props: SwitchProps) => JSX.Element;
|