@ark-ui/solid 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -2
- package/accordion/accordion-context.d.ts +4 -21
- package/accordion/index.cjs +4 -0
- package/accordion/index.d.ts +2 -0
- package/accordion/index.mjs +2 -0
- package/accordion/use-accordion.d.ts +3 -11
- package/avatar/avatar-context.d.ts +4 -20
- package/avatar/index.cjs +2 -0
- package/avatar/index.d.ts +1 -0
- package/avatar/index.mjs +1 -0
- package/avatar/use-avatar.d.ts +3 -11
- package/carousel/carousel-context.d.ts +4 -59
- package/carousel/carousel-indicator-group.cjs +16 -0
- package/carousel/carousel-indicator-group.d.ts +4 -0
- package/carousel/carousel-indicator-group.mjs +12 -0
- package/carousel/carousel-indicator.cjs +18 -0
- package/carousel/carousel-indicator.d.ts +6 -0
- package/carousel/carousel-indicator.mjs +14 -0
- package/carousel/carousel-slide.d.ts +1 -1
- package/carousel/index.cjs +6 -0
- package/carousel/index.d.ts +3 -0
- package/carousel/index.mjs +3 -0
- package/carousel/use-carousel.d.ts +3 -31
- package/checkbox/checkbox-context.d.ts +4 -27
- package/checkbox/index.cjs +2 -0
- package/checkbox/index.d.ts +2 -1
- package/checkbox/index.mjs +1 -0
- package/checkbox/use-checkbox.d.ts +3 -15
- package/color-picker/color-picker-context.d.ts +4 -42
- package/color-picker/index.cjs +6 -0
- package/color-picker/index.d.ts +3 -0
- package/color-picker/index.mjs +3 -0
- package/color-picker/use-color-picker.d.ts +3 -22
- package/combobox/combobox-clear-trigger.cjs +16 -0
- package/combobox/combobox-clear-trigger.d.ts +4 -0
- package/combobox/combobox-clear-trigger.mjs +12 -0
- package/combobox/combobox-context.d.ts +4 -55
- package/combobox/combobox-option-group.cjs +16 -0
- package/combobox/combobox-option-group.d.ts +6 -0
- package/combobox/combobox-option-group.mjs +12 -0
- package/combobox/index.cjs +6 -0
- package/combobox/index.d.ts +3 -0
- package/combobox/index.mjs +3 -0
- package/combobox/use-combobox.d.ts +3 -28
- package/date-picker/date-picker-context.d.ts +4 -254
- package/date-picker/date-picker-grid.d.ts +1 -1
- package/date-picker/date-picker-view-trigger.d.ts +1 -1
- package/date-picker/index.cjs +6 -0
- package/date-picker/index.d.ts +3 -0
- package/date-picker/index.mjs +3 -0
- package/date-picker/use-date-picker.d.ts +3 -128
- package/dialog/dialog-context.d.ts +4 -24
- package/dialog/index.cjs +2 -0
- package/dialog/index.d.ts +1 -0
- package/dialog/index.mjs +1 -0
- package/dialog/use-dialog.d.ts +3 -13
- package/editable/editable-context.d.ts +4 -38
- package/editable/index.cjs +2 -0
- package/editable/index.d.ts +1 -0
- package/editable/index.mjs +1 -0
- package/editable/use-editable.d.ts +3 -20
- package/hover-card/hover-card-context.d.ts +4 -23
- package/hover-card/index.cjs +2 -0
- package/hover-card/index.d.ts +1 -0
- package/hover-card/index.mjs +1 -0
- package/hover-card/use-hover-card.d.ts +3 -12
- package/index.cjs +72 -0
- package/index.mjs +36 -0
- package/menu/index.cjs +2 -0
- package/menu/index.d.ts +1 -0
- package/menu/index.mjs +1 -0
- package/number-input/index.cjs +2 -0
- package/number-input/index.d.ts +1 -0
- package/number-input/index.mjs +1 -0
- package/number-input/number-input-context.d.ts +4 -44
- package/number-input/use-number-input.d.ts +3 -23
- package/package.json +48 -48
- package/pagination/index.cjs +2 -0
- package/pagination/index.d.ts +1 -0
- package/pagination/index.mjs +1 -0
- package/pagination/pagination-context.d.ts +4 -45
- package/pagination/pagination-ellipsis.d.ts +1 -1
- package/pagination/use-pagination.d.ts +3 -24
- package/pin-input/index.cjs +2 -0
- package/pin-input/index.d.ts +1 -0
- package/pin-input/index.mjs +1 -0
- package/pin-input/pin-input-context.d.ts +4 -32
- package/pin-input/use-pin-input.d.ts +3 -17
- package/popover/index.cjs +2 -0
- package/popover/index.d.ts +1 -0
- package/popover/index.mjs +1 -0
- package/popover/popover-context.d.ts +4 -33
- package/popover/use-popover.d.ts +3 -17
- package/pressable/use-pressable.d.ts +3 -5
- package/radio-group/index.cjs +4 -0
- package/radio-group/index.d.ts +2 -0
- package/radio-group/index.mjs +2 -0
- package/radio-group/radio-context.d.ts +11 -2
- package/radio-group/radio-group-context.d.ts +4 -49
- package/radio-group/use-radio-group.d.ts +3 -26
- package/range-slider/index.cjs +2 -0
- package/range-slider/index.d.ts +1 -0
- package/range-slider/index.mjs +1 -0
- package/range-slider/range-slider-context.d.ts +4 -58
- package/range-slider/use-range-slider.d.ts +3 -30
- package/rating-group/index.cjs +4 -0
- package/rating-group/index.d.ts +2 -0
- package/rating-group/index.mjs +2 -0
- package/rating-group/rating-group-context.d.ts +4 -31
- package/rating-group/use-rating-group.d.ts +3 -16
- package/segment-group/index.cjs +4 -0
- package/segment-group/index.d.ts +2 -0
- package/segment-group/index.mjs +2 -0
- package/segment-group/segment-context.d.ts +11 -2
- package/segment-group/segment-group-context.d.ts +4 -49
- package/segment-group/use-segment-group.d.ts +3 -26
- package/select/index.cjs +2 -0
- package/select/index.d.ts +1 -0
- package/select/index.mjs +1 -0
- package/select/select-context.d.ts +4 -50
- package/select/use-select.d.ts +3 -26
- package/slider/index.cjs +2 -0
- package/slider/index.d.ts +1 -0
- package/slider/index.mjs +1 -0
- package/slider/slider-context.d.ts +4 -48
- package/slider/use-slider.d.ts +3 -25
- package/splitter/index.cjs +2 -0
- package/splitter/index.d.ts +1 -0
- package/splitter/index.mjs +1 -0
- package/splitter/splitter-context.d.ts +4 -46
- package/splitter/use-splitter.d.ts +4 -25
- package/switch/index.cjs +2 -0
- package/switch/index.d.ts +1 -0
- package/switch/index.mjs +1 -0
- package/switch/switch-context.d.ts +4 -24
- package/switch/use-switch.d.ts +3 -13
- package/tabs/index.cjs +2 -0
- package/tabs/index.d.ts +1 -0
- package/tabs/index.mjs +1 -0
- package/tabs/tabs-context.d.ts +4 -29
- package/tabs/use-tabs.d.ts +3 -15
- package/tags-input/index.cjs +2 -0
- package/tags-input/index.d.ts +1 -0
- package/tags-input/index.mjs +1 -0
- package/tags-input/tags-input-context.d.ts +4 -49
- package/tags-input/use-tags-input.d.ts +3 -26
- package/toast/index.cjs +2 -0
- package/toast/index.d.ts +1 -0
- package/toast/index.mjs +1 -0
- package/toast/toast-item-context.d.ts +4 -35
- package/toast/use-toast-item.d.ts +3 -18
- package/tooltip/index.cjs +2 -0
- package/tooltip/index.d.ts +1 -0
- package/tooltip/index.mjs +1 -0
- package/tooltip/tooltip-context.d.ts +4 -33
- package/tooltip/use-tooltip.d.ts +3 -17
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import type { RadioProps } from '@zag-js/radio-group/dist/radio-group.types';
|
|
2
1
|
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
3
2
|
import { type connect } from '@zag-js/radio-group';
|
|
4
3
|
export type RadioContext = Parameters<ReturnType<typeof connect>['getRadioProps']>[0];
|
|
5
|
-
export declare const RadioProvider: ContextProviderComponent<
|
|
4
|
+
export declare const RadioProvider: ContextProviderComponent<{
|
|
5
|
+
value: string;
|
|
6
|
+
disabled?: boolean | undefined;
|
|
7
|
+
readOnly?: boolean | undefined;
|
|
8
|
+
invalid?: boolean | undefined;
|
|
9
|
+
}>, useRadioContext: () => {
|
|
10
|
+
value: string;
|
|
11
|
+
disabled?: boolean | undefined;
|
|
12
|
+
readOnly?: boolean | undefined;
|
|
13
|
+
invalid?: boolean | undefined;
|
|
14
|
+
};
|
|
@@ -1,52 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { PublicApi } from '@zag-js/radio-group';
|
|
3
|
+
import type { Accessor } from 'solid-js';
|
|
3
4
|
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
4
5
|
import { type UseRadioGroupReturn } from './use-radio-group';
|
|
5
6
|
export type RadioGroupContext = UseRadioGroupReturn;
|
|
6
|
-
export declare const RadioGroupProvider: ContextProviderComponent<Accessor<
|
|
7
|
-
value: string | null;
|
|
8
|
-
setValue(value: string): void;
|
|
9
|
-
clearValue(): void;
|
|
10
|
-
focus: () => void;
|
|
11
|
-
blur(): void;
|
|
12
|
-
getRadioState: <T_1 extends RadioProps>(props: T_1) => {
|
|
13
|
-
isInteractive: boolean;
|
|
14
|
-
isReadOnly: boolean | undefined;
|
|
15
|
-
isInvalid: boolean | undefined;
|
|
16
|
-
isDisabled: boolean | undefined;
|
|
17
|
-
isChecked: boolean;
|
|
18
|
-
isFocused: boolean;
|
|
19
|
-
isHovered: boolean;
|
|
20
|
-
isActive: boolean;
|
|
21
|
-
};
|
|
22
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
23
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
24
|
-
getRadioProps(props: RadioProps): JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
25
|
-
getRadioLabelProps(props: RadioProps): JSX.HTMLAttributes<any>;
|
|
26
|
-
getRadioControlProps(props: RadioProps): JSX.HTMLAttributes<any>;
|
|
27
|
-
getRadioInputProps(props: InputProps): JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
28
|
-
indicatorProps: JSX.HTMLAttributes<any>;
|
|
29
|
-
}>>, useRadioGroupContext: () => Accessor<{
|
|
30
|
-
value: string | null;
|
|
31
|
-
setValue(value: string): void;
|
|
32
|
-
clearValue(): void;
|
|
33
|
-
focus: () => void;
|
|
34
|
-
blur(): void;
|
|
35
|
-
getRadioState: <T_1 extends RadioProps>(props: T_1) => {
|
|
36
|
-
isInteractive: boolean;
|
|
37
|
-
isReadOnly: boolean | undefined;
|
|
38
|
-
isInvalid: boolean | undefined;
|
|
39
|
-
isDisabled: boolean | undefined;
|
|
40
|
-
isChecked: boolean;
|
|
41
|
-
isFocused: boolean;
|
|
42
|
-
isHovered: boolean;
|
|
43
|
-
isActive: boolean;
|
|
44
|
-
};
|
|
45
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
46
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
47
|
-
getRadioProps(props: RadioProps): JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
48
|
-
getRadioLabelProps(props: RadioProps): JSX.HTMLAttributes<any>;
|
|
49
|
-
getRadioControlProps(props: RadioProps): JSX.HTMLAttributes<any>;
|
|
50
|
-
getRadioInputProps(props: InputProps): JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
51
|
-
indicatorProps: JSX.HTMLAttributes<any>;
|
|
52
|
-
}>;
|
|
7
|
+
export declare const RadioGroupProvider: ContextProviderComponent<Accessor<PublicApi<PropTypes>>>, useRadioGroupContext: () => Accessor<PublicApi<PropTypes>>;
|
|
@@ -1,30 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Accessor
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { Accessor } from 'solid-js';
|
|
3
3
|
import * as radio from '@zag-js/radio-group';
|
|
4
4
|
import { type Optional } from '../types';
|
|
5
5
|
export type UseRadioGroupProps = Optional<radio.Context, 'id'>;
|
|
6
6
|
export type UseRadioGroupReturn = ReturnType<typeof useRadioGroup>;
|
|
7
|
-
export declare const useRadioGroup: (props: UseRadioGroupProps) => Accessor<
|
|
8
|
-
value: string | null;
|
|
9
|
-
setValue(value: string): void;
|
|
10
|
-
clearValue(): void;
|
|
11
|
-
focus: () => void;
|
|
12
|
-
blur(): void;
|
|
13
|
-
getRadioState: <T_1 extends RadioProps>(props: T_1) => {
|
|
14
|
-
isInteractive: boolean;
|
|
15
|
-
isReadOnly: boolean | undefined;
|
|
16
|
-
isInvalid: boolean | undefined;
|
|
17
|
-
isDisabled: boolean | undefined;
|
|
18
|
-
isChecked: boolean;
|
|
19
|
-
isFocused: boolean;
|
|
20
|
-
isHovered: boolean;
|
|
21
|
-
isActive: boolean;
|
|
22
|
-
};
|
|
23
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
24
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
25
|
-
getRadioProps(props: RadioProps): JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
26
|
-
getRadioLabelProps(props: RadioProps): JSX.HTMLAttributes<any>;
|
|
27
|
-
getRadioControlProps(props: RadioProps): JSX.HTMLAttributes<any>;
|
|
28
|
-
getRadioInputProps(props: InputProps): JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
29
|
-
indicatorProps: JSX.HTMLAttributes<any>;
|
|
30
|
-
}>;
|
|
7
|
+
export declare const useRadioGroup: (props: UseRadioGroupProps) => Accessor<radio.PublicApi<PropTypes>>;
|
package/range-slider/index.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const rangeSlider = require('./range-slider.cjs');
|
|
6
|
+
const rangeSliderContext = require('./range-slider-context.cjs');
|
|
6
7
|
const rangeSliderControl = require('./range-slider-control.cjs');
|
|
7
8
|
const rangeSliderLabel = require('./range-slider-label.cjs');
|
|
8
9
|
const rangeSliderMarker = require('./range-slider-marker.cjs');
|
|
@@ -16,6 +17,7 @@ const rangeSlider$1 = require('@zag-js/range-slider');
|
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
exports.RangeSlider = rangeSlider.RangeSlider;
|
|
20
|
+
exports.useRangeSliderContext = rangeSliderContext.useRangeSliderContext;
|
|
19
21
|
exports.RangeSliderControl = rangeSliderControl.RangeSliderControl;
|
|
20
22
|
exports.RangeSliderLabel = rangeSliderLabel.RangeSliderLabel;
|
|
21
23
|
exports.RangeSliderMarker = rangeSliderMarker.RangeSliderMarker;
|
package/range-slider/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { RangeSlider, type RangeSliderProps } from './range-slider';
|
|
2
|
+
export { useRangeSliderContext } from './range-slider-context';
|
|
2
3
|
export { RangeSliderControl, type RangeSliderControlProps } from './range-slider-control';
|
|
3
4
|
export { RangeSliderLabel, type RangeSliderLabelProps } from './range-slider-label';
|
|
4
5
|
export { RangeSliderMarker, type RangeSliderMarkerProps } from './range-slider-marker';
|
package/range-slider/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { RangeSlider } from './range-slider.mjs';
|
|
2
|
+
export { useRangeSliderContext } from './range-slider-context.mjs';
|
|
2
3
|
export { RangeSliderControl } from './range-slider-control.mjs';
|
|
3
4
|
export { RangeSliderLabel } from './range-slider-label.mjs';
|
|
4
5
|
export { RangeSliderMarker } from './range-slider-marker.mjs';
|
|
@@ -1,61 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { PublicApi } from '@zag-js/range-slider';
|
|
3
|
+
import type { Accessor } from 'solid-js';
|
|
2
4
|
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
3
5
|
import { type UseRangeSliderReturn } from './use-range-slider';
|
|
4
6
|
export type RangeSliderContext = UseRangeSliderReturn;
|
|
5
|
-
export declare const RangeSliderProvider: ContextProviderComponent<Accessor<
|
|
6
|
-
value: number[];
|
|
7
|
-
isDragging: boolean;
|
|
8
|
-
isFocused: boolean;
|
|
9
|
-
setValue(value: number[]): void;
|
|
10
|
-
getThumbValue(index: number): number;
|
|
11
|
-
setThumbValue(index: number, value: number): void;
|
|
12
|
-
getValuePercent: (value: number) => number;
|
|
13
|
-
getPercentValue: (percent: number) => number;
|
|
14
|
-
getThumbPercent(index: number): number;
|
|
15
|
-
setThumbPercent(index: number, percent: number): void;
|
|
16
|
-
getThumbMin(index: number): number;
|
|
17
|
-
getThumbMax(index: number): number;
|
|
18
|
-
increment(index: number): void;
|
|
19
|
-
decrement(index: number): void;
|
|
20
|
-
focus(): void;
|
|
21
|
-
labelProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
22
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
23
|
-
outputProps: JSX.OutputHTMLAttributes<HTMLElement>;
|
|
24
|
-
trackProps: JSX.HTMLAttributes<any>;
|
|
25
|
-
getThumbProps(index: number): JSX.HTMLAttributes<any>;
|
|
26
|
-
getHiddenInputProps(index: number): JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
27
|
-
rangeProps: JSX.HTMLAttributes<any>;
|
|
28
|
-
controlProps: JSX.HTMLAttributes<any>;
|
|
29
|
-
markerGroupProps: JSX.HTMLAttributes<any>;
|
|
30
|
-
getMarkerProps({ value }: {
|
|
31
|
-
value: number;
|
|
32
|
-
}): JSX.HTMLAttributes<any>;
|
|
33
|
-
}>>, useRangeSliderContext: () => Accessor<{
|
|
34
|
-
value: number[];
|
|
35
|
-
isDragging: boolean;
|
|
36
|
-
isFocused: boolean;
|
|
37
|
-
setValue(value: number[]): void;
|
|
38
|
-
getThumbValue(index: number): number;
|
|
39
|
-
setThumbValue(index: number, value: number): void;
|
|
40
|
-
getValuePercent: (value: number) => number;
|
|
41
|
-
getPercentValue: (percent: number) => number;
|
|
42
|
-
getThumbPercent(index: number): number;
|
|
43
|
-
setThumbPercent(index: number, percent: number): void;
|
|
44
|
-
getThumbMin(index: number): number;
|
|
45
|
-
getThumbMax(index: number): number;
|
|
46
|
-
increment(index: number): void;
|
|
47
|
-
decrement(index: number): void;
|
|
48
|
-
focus(): void;
|
|
49
|
-
labelProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
50
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
51
|
-
outputProps: JSX.OutputHTMLAttributes<HTMLElement>;
|
|
52
|
-
trackProps: JSX.HTMLAttributes<any>;
|
|
53
|
-
getThumbProps(index: number): JSX.HTMLAttributes<any>;
|
|
54
|
-
getHiddenInputProps(index: number): JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
55
|
-
rangeProps: JSX.HTMLAttributes<any>;
|
|
56
|
-
controlProps: JSX.HTMLAttributes<any>;
|
|
57
|
-
markerGroupProps: JSX.HTMLAttributes<any>;
|
|
58
|
-
getMarkerProps({ value }: {
|
|
59
|
-
value: number;
|
|
60
|
-
}): JSX.HTMLAttributes<any>;
|
|
61
|
-
}>;
|
|
7
|
+
export declare const RangeSliderProvider: ContextProviderComponent<Accessor<PublicApi<PropTypes>>>, useRangeSliderContext: () => Accessor<PublicApi<PropTypes>>;
|
|
@@ -1,34 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { Accessor } from 'solid-js';
|
|
2
3
|
import * as rangeSlider from '@zag-js/range-slider';
|
|
3
4
|
import { type Optional } from '../types';
|
|
4
5
|
export type UseRangeSliderProps = Optional<rangeSlider.Context, 'id'>;
|
|
5
6
|
export type UseRangeSliderReturn = ReturnType<typeof useRangeSlider>;
|
|
6
|
-
export declare const useRangeSlider: (props: UseRangeSliderProps) => Accessor<
|
|
7
|
-
value: number[];
|
|
8
|
-
isDragging: boolean;
|
|
9
|
-
isFocused: boolean;
|
|
10
|
-
setValue(value: number[]): void;
|
|
11
|
-
getThumbValue(index: number): number;
|
|
12
|
-
setThumbValue(index: number, value: number): void;
|
|
13
|
-
getValuePercent: (value: number) => number;
|
|
14
|
-
getPercentValue: (percent: number) => number;
|
|
15
|
-
getThumbPercent(index: number): number;
|
|
16
|
-
setThumbPercent(index: number, percent: number): void;
|
|
17
|
-
getThumbMin(index: number): number;
|
|
18
|
-
getThumbMax(index: number): number;
|
|
19
|
-
increment(index: number): void;
|
|
20
|
-
decrement(index: number): void;
|
|
21
|
-
focus(): void;
|
|
22
|
-
labelProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
23
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
24
|
-
outputProps: JSX.OutputHTMLAttributes<HTMLElement>;
|
|
25
|
-
trackProps: JSX.HTMLAttributes<any>;
|
|
26
|
-
getThumbProps(index: number): JSX.HTMLAttributes<any>;
|
|
27
|
-
getHiddenInputProps(index: number): JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
28
|
-
rangeProps: JSX.HTMLAttributes<any>;
|
|
29
|
-
controlProps: JSX.HTMLAttributes<any>;
|
|
30
|
-
markerGroupProps: JSX.HTMLAttributes<any>;
|
|
31
|
-
getMarkerProps({ value }: {
|
|
32
|
-
value: number;
|
|
33
|
-
}): JSX.HTMLAttributes<any>;
|
|
34
|
-
}>;
|
|
7
|
+
export declare const useRangeSlider: (props: UseRangeSliderProps) => Accessor<rangeSlider.PublicApi<PropTypes>>;
|
package/rating-group/index.cjs
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const rating = require('./rating.cjs');
|
|
6
|
+
const ratingContext = require('./rating-context.cjs');
|
|
6
7
|
const ratingGroup = require('./rating-group.cjs');
|
|
8
|
+
const ratingGroupContext = require('./rating-group-context.cjs');
|
|
7
9
|
const ratingGroupControl = require('./rating-group-control.cjs');
|
|
8
10
|
const ratingGroupLabel = require('./rating-group-label.cjs');
|
|
9
11
|
const rating$1 = require('@zag-js/rating-group');
|
|
@@ -11,7 +13,9 @@ const rating$1 = require('@zag-js/rating-group');
|
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
exports.Rating = rating.Rating;
|
|
16
|
+
exports.useRatingContext = ratingContext.useRatingContext;
|
|
14
17
|
exports.RatingGroup = ratingGroup.RatingGroup;
|
|
18
|
+
exports.useRatingGroupContext = ratingGroupContext.useRatingGroupContext;
|
|
15
19
|
exports.RatingGroupControl = ratingGroupControl.RatingGroupControl;
|
|
16
20
|
exports.RatingGroupLabel = ratingGroupLabel.RatingGroupLabel;
|
|
17
21
|
Object.defineProperty(exports, 'ratingGroupAnatomy', {
|
package/rating-group/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { Rating, type RatingProps } from './rating';
|
|
2
|
+
export { useRatingContext } from './rating-context';
|
|
2
3
|
export { RatingGroup, type RatingGroupProps } from './rating-group';
|
|
4
|
+
export { useRatingGroupContext } from './rating-group-context';
|
|
3
5
|
export { RatingGroupControl, type RatingGroupControlProps } from './rating-group-control';
|
|
4
6
|
export { RatingGroupLabel, type RatingGroupLabelProps } from './rating-group-label';
|
|
5
7
|
export { ratingGroupAnatomy } from './rating-group.anatomy';
|
package/rating-group/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { Rating } from './rating.mjs';
|
|
2
|
+
export { useRatingContext } from './rating-context.mjs';
|
|
2
3
|
export { RatingGroup } from './rating-group.mjs';
|
|
4
|
+
export { useRatingGroupContext } from './rating-group-context.mjs';
|
|
3
5
|
export { RatingGroupControl } from './rating-group-control.mjs';
|
|
4
6
|
export { RatingGroupLabel } from './rating-group-label.mjs';
|
|
5
7
|
export { anatomy as ratingGroupAnatomy } from '@zag-js/rating-group';
|
|
@@ -1,34 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { PublicApi } from '@zag-js/rating-group';
|
|
3
|
+
import type { Accessor } from 'solid-js';
|
|
3
4
|
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
4
5
|
import { type UseRatingGroupReturn } from './use-rating-group';
|
|
5
6
|
export type RatingGroupContext = UseRatingGroupReturn;
|
|
6
|
-
export declare const RatingGroupProvider: ContextProviderComponent<Accessor<
|
|
7
|
-
setValue(value: number): void;
|
|
8
|
-
clearValue(): void;
|
|
9
|
-
isHovering: boolean;
|
|
10
|
-
value: number;
|
|
11
|
-
hoveredValue: number;
|
|
12
|
-
size: number;
|
|
13
|
-
sizeArray: number[];
|
|
14
|
-
getRatingState(props: ItemProps): ItemState;
|
|
15
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
16
|
-
hiddenInputProps: JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
17
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
18
|
-
controlProps: JSX.HTMLAttributes<any>;
|
|
19
|
-
getRatingProps(props: ItemProps): JSX.HTMLAttributes<any>;
|
|
20
|
-
}>>, useRatingGroupContext: () => Accessor<{
|
|
21
|
-
setValue(value: number): void;
|
|
22
|
-
clearValue(): void;
|
|
23
|
-
isHovering: boolean;
|
|
24
|
-
value: number;
|
|
25
|
-
hoveredValue: number;
|
|
26
|
-
size: number;
|
|
27
|
-
sizeArray: number[];
|
|
28
|
-
getRatingState(props: ItemProps): ItemState;
|
|
29
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
30
|
-
hiddenInputProps: JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
31
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
32
|
-
controlProps: JSX.HTMLAttributes<any>;
|
|
33
|
-
getRatingProps(props: ItemProps): JSX.HTMLAttributes<any>;
|
|
34
|
-
}>;
|
|
7
|
+
export declare const RatingGroupProvider: ContextProviderComponent<Accessor<PublicApi<PropTypes>>>, useRatingGroupContext: () => Accessor<PublicApi<PropTypes>>;
|
|
@@ -1,20 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { Accessor } from 'solid-js';
|
|
2
3
|
import * as rating from '@zag-js/rating-group';
|
|
3
4
|
import { type Optional } from '../types';
|
|
4
5
|
export type UseRatingGroupProps = Optional<rating.Context, 'id'>;
|
|
5
6
|
export type UseRatingGroupReturn = ReturnType<typeof useRatingGroup>;
|
|
6
|
-
export declare const useRatingGroup: (props: UseRatingGroupProps) => Accessor<
|
|
7
|
-
setValue(value: number): void;
|
|
8
|
-
clearValue(): void;
|
|
9
|
-
isHovering: boolean;
|
|
10
|
-
value: number;
|
|
11
|
-
hoveredValue: number;
|
|
12
|
-
size: number;
|
|
13
|
-
sizeArray: number[];
|
|
14
|
-
getRatingState(props: rating.ItemProps): rating.ItemState;
|
|
15
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
16
|
-
hiddenInputProps: JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
17
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
18
|
-
controlProps: JSX.HTMLAttributes<any>;
|
|
19
|
-
getRatingProps(props: rating.ItemProps): JSX.HTMLAttributes<any>;
|
|
20
|
-
}>;
|
|
7
|
+
export declare const useRatingGroup: (props: UseRatingGroupProps) => Accessor<rating.PublicApi<PropTypes>>;
|
package/segment-group/index.cjs
CHANGED
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const segment = require('./segment.cjs');
|
|
6
|
+
const segmentContext = require('./segment-context.cjs');
|
|
6
7
|
const segmentControl = require('./segment-control.cjs');
|
|
7
8
|
const segmentGroup = require('./segment-group.cjs');
|
|
9
|
+
const segmentGroupContext = require('./segment-group-context.cjs');
|
|
8
10
|
const segmentGroupLabel = require('./segment-group-label.cjs');
|
|
9
11
|
const segmentGroup_anatomy = require('./segment-group.anatomy.cjs');
|
|
10
12
|
const segmentIndicator = require('./segment-indicator.cjs');
|
|
@@ -14,8 +16,10 @@ const segmentLabel = require('./segment-label.cjs');
|
|
|
14
16
|
|
|
15
17
|
|
|
16
18
|
exports.Segment = segment.Segment;
|
|
19
|
+
exports.useSegmentContext = segmentContext.useSegmentContext;
|
|
17
20
|
exports.SegmentControl = segmentControl.SegmentControl;
|
|
18
21
|
exports.SegmentGroup = segmentGroup.SegmentGroup;
|
|
22
|
+
exports.useSegmentGroupContext = segmentGroupContext.useSegmentGroupContext;
|
|
19
23
|
exports.SegmentGroupLabel = segmentGroupLabel.SegmentGroupLabel;
|
|
20
24
|
exports.segmentGroupAnatomy = segmentGroup_anatomy.segmentGroupAnatomy;
|
|
21
25
|
exports.SegmentIndicator = segmentIndicator.SegmentIndicator;
|
package/segment-group/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { Segment, type SegmentProps } from './segment';
|
|
2
|
+
export { useSegmentContext } from './segment-context';
|
|
2
3
|
export { SegmentControl, type SegmentControlProps } from './segment-control';
|
|
3
4
|
export { SegmentGroup, type SegmentGroupProps } from './segment-group';
|
|
5
|
+
export { useSegmentGroupContext } from './segment-group-context';
|
|
4
6
|
export { SegmentGroupLabel, type SegmentGroupLabelProps } from './segment-group-label';
|
|
5
7
|
export { segmentGroupAnatomy } from './segment-group.anatomy';
|
|
6
8
|
export { SegmentIndicator, type SegmentIndicatorProps } from './segment-indicator';
|
package/segment-group/index.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { Segment } from './segment.mjs';
|
|
2
|
+
export { useSegmentContext } from './segment-context.mjs';
|
|
2
3
|
export { SegmentControl } from './segment-control.mjs';
|
|
3
4
|
export { SegmentGroup } from './segment-group.mjs';
|
|
5
|
+
export { useSegmentGroupContext } from './segment-group-context.mjs';
|
|
4
6
|
export { SegmentGroupLabel } from './segment-group-label.mjs';
|
|
5
7
|
export { segmentGroupAnatomy } from './segment-group.anatomy.mjs';
|
|
6
8
|
export { SegmentIndicator } from './segment-indicator.mjs';
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import type { RadioProps } from '@zag-js/radio-group/dist/radio-group.types';
|
|
2
1
|
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
3
2
|
import { type connect } from '@zag-js/radio-group';
|
|
4
3
|
export type SegmentContext = Parameters<ReturnType<typeof connect>['getRadioProps']>[0];
|
|
5
|
-
export declare const SegmentProvider: ContextProviderComponent<
|
|
4
|
+
export declare const SegmentProvider: ContextProviderComponent<{
|
|
5
|
+
value: string;
|
|
6
|
+
disabled?: boolean | undefined;
|
|
7
|
+
readOnly?: boolean | undefined;
|
|
8
|
+
invalid?: boolean | undefined;
|
|
9
|
+
}>, useSegmentContext: () => {
|
|
10
|
+
value: string;
|
|
11
|
+
disabled?: boolean | undefined;
|
|
12
|
+
readOnly?: boolean | undefined;
|
|
13
|
+
invalid?: boolean | undefined;
|
|
14
|
+
};
|
|
@@ -1,52 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { PublicApi } from '@zag-js/radio-group';
|
|
3
|
+
import type { Accessor } from 'solid-js';
|
|
3
4
|
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
4
5
|
import { type UseSegmentGroupReturn } from './use-segment-group';
|
|
5
6
|
export type SegmentGroupContext = UseSegmentGroupReturn;
|
|
6
|
-
export declare const SegmentGroupProvider: ContextProviderComponent<Accessor<
|
|
7
|
-
value: string | null;
|
|
8
|
-
setValue(value: string): void;
|
|
9
|
-
clearValue(): void;
|
|
10
|
-
focus: () => void;
|
|
11
|
-
blur(): void;
|
|
12
|
-
getRadioState: <T_1 extends RadioProps>(props: T_1) => {
|
|
13
|
-
isInteractive: boolean;
|
|
14
|
-
isReadOnly: boolean | undefined;
|
|
15
|
-
isInvalid: boolean | undefined;
|
|
16
|
-
isDisabled: boolean | undefined;
|
|
17
|
-
isChecked: boolean;
|
|
18
|
-
isFocused: boolean;
|
|
19
|
-
isHovered: boolean;
|
|
20
|
-
isActive: boolean;
|
|
21
|
-
};
|
|
22
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
23
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
24
|
-
getRadioProps(props: RadioProps): JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
25
|
-
getRadioLabelProps(props: RadioProps): JSX.HTMLAttributes<any>;
|
|
26
|
-
getRadioControlProps(props: RadioProps): JSX.HTMLAttributes<any>;
|
|
27
|
-
getRadioInputProps(props: InputProps): JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
28
|
-
indicatorProps: JSX.HTMLAttributes<any>;
|
|
29
|
-
}>>, useSegmentGroupContext: () => Accessor<{
|
|
30
|
-
value: string | null;
|
|
31
|
-
setValue(value: string): void;
|
|
32
|
-
clearValue(): void;
|
|
33
|
-
focus: () => void;
|
|
34
|
-
blur(): void;
|
|
35
|
-
getRadioState: <T_1 extends RadioProps>(props: T_1) => {
|
|
36
|
-
isInteractive: boolean;
|
|
37
|
-
isReadOnly: boolean | undefined;
|
|
38
|
-
isInvalid: boolean | undefined;
|
|
39
|
-
isDisabled: boolean | undefined;
|
|
40
|
-
isChecked: boolean;
|
|
41
|
-
isFocused: boolean;
|
|
42
|
-
isHovered: boolean;
|
|
43
|
-
isActive: boolean;
|
|
44
|
-
};
|
|
45
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
46
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
47
|
-
getRadioProps(props: RadioProps): JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
48
|
-
getRadioLabelProps(props: RadioProps): JSX.HTMLAttributes<any>;
|
|
49
|
-
getRadioControlProps(props: RadioProps): JSX.HTMLAttributes<any>;
|
|
50
|
-
getRadioInputProps(props: InputProps): JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
51
|
-
indicatorProps: JSX.HTMLAttributes<any>;
|
|
52
|
-
}>;
|
|
7
|
+
export declare const SegmentGroupProvider: ContextProviderComponent<Accessor<PublicApi<PropTypes>>>, useSegmentGroupContext: () => Accessor<PublicApi<PropTypes>>;
|
|
@@ -1,30 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Accessor
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { Accessor } from 'solid-js';
|
|
3
3
|
import * as segment from '@zag-js/radio-group';
|
|
4
4
|
import { type Optional } from '../types';
|
|
5
5
|
export type UseSegmentGroupProps = Optional<segment.Context, 'id'>;
|
|
6
6
|
export type UseSegmentGroupReturn = ReturnType<typeof useSegmentGroup>;
|
|
7
|
-
export declare const useSegmentGroup: (props: UseSegmentGroupProps) => Accessor<
|
|
8
|
-
value: string | null;
|
|
9
|
-
setValue(value: string): void;
|
|
10
|
-
clearValue(): void;
|
|
11
|
-
focus: () => void;
|
|
12
|
-
blur(): void;
|
|
13
|
-
getRadioState: <T_1 extends RadioProps>(props: T_1) => {
|
|
14
|
-
isInteractive: boolean;
|
|
15
|
-
isReadOnly: boolean | undefined;
|
|
16
|
-
isInvalid: boolean | undefined;
|
|
17
|
-
isDisabled: boolean | undefined;
|
|
18
|
-
isChecked: boolean;
|
|
19
|
-
isFocused: boolean;
|
|
20
|
-
isHovered: boolean;
|
|
21
|
-
isActive: boolean;
|
|
22
|
-
};
|
|
23
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
24
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
25
|
-
getRadioProps(props: RadioProps): JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
26
|
-
getRadioLabelProps(props: RadioProps): JSX.HTMLAttributes<any>;
|
|
27
|
-
getRadioControlProps(props: RadioProps): JSX.HTMLAttributes<any>;
|
|
28
|
-
getRadioInputProps(props: InputProps): JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
29
|
-
indicatorProps: JSX.HTMLAttributes<any>;
|
|
30
|
-
}>;
|
|
7
|
+
export declare const useSegmentGroup: (props: UseSegmentGroupProps) => Accessor<segment.PublicApi<PropTypes>>;
|
package/select/index.cjs
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const select = require('./select.cjs');
|
|
6
6
|
const selectContent = require('./select-content.cjs');
|
|
7
|
+
const selectContext = require('./select-context.cjs');
|
|
7
8
|
const selectLabel = require('./select-label.cjs');
|
|
8
9
|
const selectOption = require('./select-option.cjs');
|
|
9
10
|
const selectOptionGroup = require('./select-option-group.cjs');
|
|
@@ -16,6 +17,7 @@ const select$1 = require('@zag-js/select');
|
|
|
16
17
|
|
|
17
18
|
exports.Select = select.Select;
|
|
18
19
|
exports.SelectContent = selectContent.SelectContent;
|
|
20
|
+
exports.useSelectContext = selectContext.useSelectContext;
|
|
19
21
|
exports.SelectLabel = selectLabel.SelectLabel;
|
|
20
22
|
exports.SelectOption = selectOption.SelectOption;
|
|
21
23
|
exports.SelectOptionGroup = selectOptionGroup.SelectOptionGroup;
|
package/select/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { Select, type SelectProps } from './select';
|
|
2
2
|
export { SelectContent, type SelectContentProps } from './select-content';
|
|
3
|
+
export { useSelectContext } from './select-context';
|
|
3
4
|
export { SelectLabel, type SelectLabelProps } from './select-label';
|
|
4
5
|
export { SelectOption, type SelectOptionProps } from './select-option';
|
|
5
6
|
export { SelectOptionGroup, type SelectOptionGroupProps } from './select-option-group';
|
package/select/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { Select } from './select.mjs';
|
|
2
2
|
export { SelectContent } from './select-content.mjs';
|
|
3
|
+
export { useSelectContext } from './select-context.mjs';
|
|
3
4
|
export { SelectLabel } from './select-label.mjs';
|
|
4
5
|
export { SelectOption } from './select-option.mjs';
|
|
5
6
|
export { SelectOptionGroup } from './select-option-group.mjs';
|
|
@@ -1,53 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type { Accessor
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { PublicApi } from '@zag-js/select';
|
|
3
|
+
import type { Accessor } from 'solid-js';
|
|
4
4
|
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
5
5
|
import { type UseSelectReturn } from './use-select';
|
|
6
6
|
export type SelectContext = UseSelectReturn;
|
|
7
|
-
export declare const SelectProvider: ContextProviderComponent<Accessor<
|
|
8
|
-
isOpen: boolean;
|
|
9
|
-
highlightedOption: Option | null;
|
|
10
|
-
selectedOption: Option | null;
|
|
11
|
-
focus(): void;
|
|
12
|
-
open(): void;
|
|
13
|
-
close(): void;
|
|
14
|
-
setSelectedOption(value: Option): void;
|
|
15
|
-
setHighlightedOption(value: Option): void;
|
|
16
|
-
clearSelectedOption(): void;
|
|
17
|
-
getOptionState: (props: OptionProps) => {
|
|
18
|
-
isDisabled: boolean;
|
|
19
|
-
isHighlighted: boolean;
|
|
20
|
-
isSelected: boolean;
|
|
21
|
-
};
|
|
22
|
-
labelProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
23
|
-
positionerProps: JSX.HTMLAttributes<any>;
|
|
24
|
-
triggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
25
|
-
getOptionProps(props: OptionProps): JSX.HTMLAttributes<any>;
|
|
26
|
-
getOptionGroupLabelProps(props: OptionGroupLabelProps): JSX.HTMLAttributes<any>;
|
|
27
|
-
getOptionGroupProps(props: OptionGroupProps): JSX.HTMLAttributes<any>;
|
|
28
|
-
hiddenSelectProps: JSX.SelectHTMLAttributes<HTMLSelectElement>;
|
|
29
|
-
contentProps: JSX.HTMLAttributes<any>;
|
|
30
|
-
}>>, useSelectContext: () => Accessor<{
|
|
31
|
-
isOpen: boolean;
|
|
32
|
-
highlightedOption: Option | null;
|
|
33
|
-
selectedOption: Option | null;
|
|
34
|
-
focus(): void;
|
|
35
|
-
open(): void;
|
|
36
|
-
close(): void;
|
|
37
|
-
setSelectedOption(value: Option): void;
|
|
38
|
-
setHighlightedOption(value: Option): void;
|
|
39
|
-
clearSelectedOption(): void;
|
|
40
|
-
getOptionState: (props: OptionProps) => {
|
|
41
|
-
isDisabled: boolean;
|
|
42
|
-
isHighlighted: boolean;
|
|
43
|
-
isSelected: boolean;
|
|
44
|
-
};
|
|
45
|
-
labelProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
46
|
-
positionerProps: JSX.HTMLAttributes<any>;
|
|
47
|
-
triggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
48
|
-
getOptionProps(props: OptionProps): JSX.HTMLAttributes<any>;
|
|
49
|
-
getOptionGroupLabelProps(props: OptionGroupLabelProps): JSX.HTMLAttributes<any>;
|
|
50
|
-
getOptionGroupProps(props: OptionGroupProps): JSX.HTMLAttributes<any>;
|
|
51
|
-
hiddenSelectProps: JSX.SelectHTMLAttributes<HTMLSelectElement>;
|
|
52
|
-
contentProps: JSX.HTMLAttributes<any>;
|
|
53
|
-
}>;
|
|
7
|
+
export declare const SelectProvider: ContextProviderComponent<Accessor<PublicApi<PropTypes>>>, useSelectContext: () => Accessor<PublicApi<PropTypes>>;
|
package/select/use-select.d.ts
CHANGED
|
@@ -1,30 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Accessor
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { Accessor } from 'solid-js';
|
|
3
3
|
import * as select from '@zag-js/select';
|
|
4
4
|
import { type Optional } from '../types';
|
|
5
5
|
export type UseSelectProps = Optional<select.Context, 'id'>;
|
|
6
6
|
export type UseSelectReturn = ReturnType<typeof useSelect>;
|
|
7
|
-
export declare const useSelect: (props: UseSelectProps) => Accessor<
|
|
8
|
-
isOpen: boolean;
|
|
9
|
-
highlightedOption: Option | null;
|
|
10
|
-
selectedOption: Option | null;
|
|
11
|
-
focus(): void;
|
|
12
|
-
open(): void;
|
|
13
|
-
close(): void;
|
|
14
|
-
setSelectedOption(value: Option): void;
|
|
15
|
-
setHighlightedOption(value: Option): void;
|
|
16
|
-
clearSelectedOption(): void;
|
|
17
|
-
getOptionState: (props: select.OptionProps) => {
|
|
18
|
-
isDisabled: boolean;
|
|
19
|
-
isHighlighted: boolean;
|
|
20
|
-
isSelected: boolean;
|
|
21
|
-
};
|
|
22
|
-
labelProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
23
|
-
positionerProps: JSX.HTMLAttributes<any>;
|
|
24
|
-
triggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
25
|
-
getOptionProps(props: select.OptionProps): JSX.HTMLAttributes<any>;
|
|
26
|
-
getOptionGroupLabelProps(props: select.OptionGroupLabelProps): JSX.HTMLAttributes<any>;
|
|
27
|
-
getOptionGroupProps(props: select.OptionGroupProps): JSX.HTMLAttributes<any>;
|
|
28
|
-
hiddenSelectProps: JSX.SelectHTMLAttributes<HTMLSelectElement>;
|
|
29
|
-
contentProps: JSX.HTMLAttributes<any>;
|
|
30
|
-
}>;
|
|
7
|
+
export declare const useSelect: (props: UseSelectProps) => Accessor<select.PublicApi<PropTypes>>;
|
package/slider/index.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const slider = require('./slider.cjs');
|
|
6
|
+
const sliderContext = require('./slider-context.cjs');
|
|
6
7
|
const sliderControl = require('./slider-control.cjs');
|
|
7
8
|
const sliderLabel = require('./slider-label.cjs');
|
|
8
9
|
const sliderMarker = require('./slider-marker.cjs');
|
|
@@ -16,6 +17,7 @@ const slider$1 = require('@zag-js/slider');
|
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
exports.Slider = slider.Slider;
|
|
20
|
+
exports.useSliderContext = sliderContext.useSliderContext;
|
|
19
21
|
exports.SliderControl = sliderControl.SliderControl;
|
|
20
22
|
exports.SliderLabel = sliderLabel.SliderLabel;
|
|
21
23
|
exports.SliderMarker = sliderMarker.SliderMarker;
|