@ark-ui/solid 0.8.0 → 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 +16 -32
- package/accordion/accordion-context.d.ts +4 -21
- package/accordion/index.cjs +24 -0
- package/accordion/index.d.ts +2 -0
- package/accordion/index.mjs +7 -0
- package/accordion/use-accordion.d.ts +3 -11
- package/avatar/avatar-context.d.ts +4 -20
- package/avatar/index.cjs +20 -0
- package/avatar/index.d.ts +1 -0
- package/avatar/index.mjs +5 -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 +29 -0
- package/carousel/index.d.ts +3 -0
- package/carousel/index.mjs +11 -0
- package/carousel/use-carousel.d.ts +3 -31
- package/checkbox/checkbox-context.d.ts +4 -27
- package/checkbox/index.cjs +22 -0
- package/checkbox/index.d.ts +2 -1
- package/checkbox/index.mjs +6 -0
- package/checkbox/use-checkbox.d.ts +3 -15
- package/color-picker/color-picker-area-context.cjs +13 -0
- package/color-picker/color-picker-area-context.d.ts +3 -0
- package/color-picker/color-picker-area-context.mjs +8 -0
- package/color-picker/color-picker-area-gradient.cjs +18 -0
- package/color-picker/color-picker-area-gradient.d.ts +4 -0
- package/color-picker/color-picker-area-gradient.mjs +14 -0
- package/color-picker/color-picker-area-thumb.cjs +18 -0
- package/color-picker/color-picker-area-thumb.d.ts +4 -0
- package/color-picker/color-picker-area-thumb.mjs +14 -0
- package/color-picker/color-picker-area.cjs +24 -0
- package/color-picker/color-picker-area.d.ts +5 -0
- package/color-picker/color-picker-area.mjs +20 -0
- package/color-picker/color-picker-channel-input.cjs +18 -0
- package/color-picker/color-picker-channel-input.d.ts +6 -0
- package/color-picker/color-picker-channel-input.mjs +14 -0
- package/color-picker/color-picker-channel-slider-background.cjs +18 -0
- package/color-picker/color-picker-channel-slider-background.d.ts +4 -0
- package/color-picker/color-picker-channel-slider-background.mjs +14 -0
- package/color-picker/color-picker-channel-slider-context.cjs +13 -0
- package/color-picker/color-picker-channel-slider-context.d.ts +3 -0
- package/color-picker/color-picker-channel-slider-context.mjs +8 -0
- package/color-picker/color-picker-channel-slider-thumb.cjs +18 -0
- package/color-picker/color-picker-channel-slider-thumb.d.ts +4 -0
- package/color-picker/color-picker-channel-slider-thumb.mjs +14 -0
- package/color-picker/color-picker-channel-slider-track.cjs +24 -0
- package/color-picker/color-picker-channel-slider-track.d.ts +6 -0
- package/color-picker/color-picker-channel-slider-track.mjs +20 -0
- package/color-picker/color-picker-content.cjs +16 -0
- package/color-picker/color-picker-content.d.ts +4 -0
- package/color-picker/color-picker-content.mjs +12 -0
- package/color-picker/color-picker-context.cjs +13 -0
- package/color-picker/color-picker-context.d.ts +7 -0
- package/color-picker/color-picker-context.mjs +8 -0
- package/color-picker/color-picker-eye-dropper-trigger.cjs +16 -0
- package/color-picker/color-picker-eye-dropper-trigger.d.ts +4 -0
- package/color-picker/color-picker-eye-dropper-trigger.mjs +12 -0
- package/color-picker/color-picker-swatch-background.cjs +18 -0
- package/color-picker/color-picker-swatch-background.d.ts +4 -0
- package/color-picker/color-picker-swatch-background.mjs +14 -0
- package/color-picker/color-picker-swatch-context.cjs +13 -0
- package/color-picker/color-picker-swatch-context.d.ts +3 -0
- package/color-picker/color-picker-swatch-context.mjs +8 -0
- package/color-picker/color-picker-swatch-group.cjs +15 -0
- package/color-picker/color-picker-swatch-group.d.ts +4 -0
- package/color-picker/color-picker-swatch-group.mjs +11 -0
- package/color-picker/color-picker-swatch.cjs +28 -0
- package/color-picker/color-picker-swatch.d.ts +6 -0
- package/color-picker/color-picker-swatch.mjs +24 -0
- package/color-picker/color-picker.anatomy.cjs +11 -0
- package/color-picker/color-picker.anatomy.d.ts +3 -0
- package/color-picker/color-picker.anatomy.mjs +6 -0
- package/color-picker/color-picker.cjs +23 -0
- package/color-picker/color-picker.d.ts +8 -0
- package/color-picker/color-picker.mjs +19 -0
- package/color-picker/index.cjs +41 -0
- package/color-picker/index.d.ts +17 -0
- package/color-picker/index.mjs +17 -0
- package/color-picker/use-color-picker.cjs +36 -0
- package/color-picker/use-color-picker.d.ts +7 -0
- package/color-picker/use-color-picker.mjs +13 -0
- 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 +34 -0
- package/combobox/index.d.ts +3 -0
- package/combobox/index.mjs +12 -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 +59 -0
- package/date-picker/index.d.ts +3 -0
- package/date-picker/index.mjs +26 -0
- package/date-picker/use-date-picker.d.ts +3 -128
- package/dialog/dialog-context.d.ts +4 -24
- package/dialog/index.cjs +30 -0
- package/dialog/index.d.ts +1 -0
- package/dialog/index.mjs +10 -0
- package/dialog/use-dialog.d.ts +3 -13
- package/editable/editable-context.d.ts +4 -38
- package/editable/index.cjs +32 -0
- package/editable/index.d.ts +1 -0
- package/editable/index.mjs +11 -0
- package/editable/use-editable.d.ts +3 -20
- package/environment/environment-context.cjs +1 -0
- package/environment/environment-context.mjs +1 -0
- package/environment/index.cjs +11 -0
- package/environment/index.mjs +2 -0
- package/hover-card/hover-card-context.d.ts +4 -23
- package/hover-card/index.cjs +26 -0
- package/hover-card/index.d.ts +1 -0
- package/hover-card/index.mjs +8 -0
- package/hover-card/use-hover-card.d.ts +3 -12
- package/index.cjs +180 -108
- package/index.mjs +58 -22
- package/menu/index.cjs +40 -0
- package/menu/index.d.ts +1 -0
- package/menu/index.mjs +15 -0
- package/merge-style.cjs +2 -0
- package/merge-style.mjs +2 -0
- package/number-input/index.cjs +28 -0
- package/number-input/index.d.ts +1 -0
- package/number-input/index.mjs +9 -0
- package/number-input/number-input-context.d.ts +4 -44
- package/number-input/use-number-input.d.ts +3 -23
- package/package.json +50 -51
- package/pagination/index.cjs +25 -0
- package/pagination/index.d.ts +1 -0
- package/pagination/index.mjs +9 -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 +22 -0
- package/pin-input/index.d.ts +1 -0
- package/pin-input/index.mjs +6 -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 +34 -0
- package/popover/index.d.ts +1 -0
- package/popover/index.mjs +12 -0
- package/popover/popover-context.d.ts +4 -33
- package/popover/use-popover.d.ts +3 -17
- package/pressable/index.cjs +11 -0
- package/pressable/index.mjs +2 -0
- package/pressable/use-pressable.d.ts +3 -5
- package/radio-group/index.cjs +28 -0
- package/radio-group/index.d.ts +2 -0
- package/radio-group/index.mjs +9 -0
- package/radio-group/radio-context.cjs +1 -0
- package/radio-group/radio-context.d.ts +11 -2
- package/radio-group/radio-context.mjs +1 -0
- 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 +32 -0
- package/range-slider/index.d.ts +1 -0
- package/range-slider/index.mjs +11 -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 +24 -0
- package/rating-group/index.d.ts +2 -0
- package/rating-group/index.mjs +7 -0
- package/rating-group/rating-context.cjs +1 -0
- package/rating-group/rating-context.mjs +1 -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 +27 -0
- package/segment-group/index.d.ts +2 -0
- package/segment-group/index.mjs +10 -0
- package/segment-group/segment-context.cjs +1 -0
- package/segment-group/segment-context.d.ts +11 -2
- package/segment-group/segment-context.mjs +1 -0
- package/segment-group/segment-group-context.d.ts +4 -49
- package/segment-group/use-segment-group.d.ts +3 -26
- package/select/index.cjs +30 -0
- package/select/index.d.ts +1 -0
- package/select/index.mjs +10 -0
- package/select/select-context.d.ts +4 -50
- package/select/use-select.d.ts +3 -26
- package/slider/index.cjs +32 -0
- package/slider/index.d.ts +1 -0
- package/slider/index.mjs +11 -0
- package/slider/slider-context.d.ts +4 -48
- package/slider/use-slider.d.ts +3 -25
- package/splitter/index.cjs +20 -0
- package/splitter/index.d.ts +1 -0
- package/splitter/index.mjs +5 -0
- package/splitter/splitter-context.d.ts +4 -46
- package/splitter/use-splitter.d.ts +4 -25
- package/ssr-spread.cjs +1 -0
- package/ssr-spread.mjs +1 -0
- package/switch/index.cjs +24 -0
- package/switch/index.d.ts +1 -0
- package/switch/index.mjs +7 -0
- package/switch/switch-context.d.ts +4 -24
- package/switch/use-switch.d.ts +3 -13
- package/tabs/index.cjs +24 -0
- package/tabs/index.d.ts +1 -0
- package/tabs/index.mjs +7 -0
- package/tabs/tabs-context.d.ts +4 -29
- package/tabs/use-tabs.d.ts +3 -15
- package/tags-input/index.cjs +30 -0
- package/tags-input/index.d.ts +1 -0
- package/tags-input/index.mjs +10 -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 +29 -0
- package/toast/index.d.ts +1 -0
- package/toast/index.mjs +9 -0
- package/toast/toast-item-context.d.ts +4 -35
- package/toast/toast.cjs +6 -1
- package/toast/toast.mjs +7 -2
- package/toast/use-toast-item.d.ts +3 -18
- package/tooltip/index.cjs +26 -0
- package/tooltip/index.d.ts +1 -0
- package/tooltip/index.mjs +8 -0
- package/tooltip/tooltip-context.d.ts +4 -33
- package/tooltip/use-tooltip.d.ts +3 -17
|
@@ -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>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const rating = require('./rating.cjs');
|
|
6
|
+
const ratingContext = require('./rating-context.cjs');
|
|
7
|
+
const ratingGroup = require('./rating-group.cjs');
|
|
8
|
+
const ratingGroupContext = require('./rating-group-context.cjs');
|
|
9
|
+
const ratingGroupControl = require('./rating-group-control.cjs');
|
|
10
|
+
const ratingGroupLabel = require('./rating-group-label.cjs');
|
|
11
|
+
const rating$1 = require('@zag-js/rating-group');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
exports.Rating = rating.Rating;
|
|
16
|
+
exports.useRatingContext = ratingContext.useRatingContext;
|
|
17
|
+
exports.RatingGroup = ratingGroup.RatingGroup;
|
|
18
|
+
exports.useRatingGroupContext = ratingGroupContext.useRatingGroupContext;
|
|
19
|
+
exports.RatingGroupControl = ratingGroupControl.RatingGroupControl;
|
|
20
|
+
exports.RatingGroupLabel = ratingGroupLabel.RatingGroupLabel;
|
|
21
|
+
Object.defineProperty(exports, 'ratingGroupAnatomy', {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: () => rating$1.anatomy
|
|
24
|
+
});
|
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';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Rating } from './rating.mjs';
|
|
2
|
+
export { useRatingContext } from './rating-context.mjs';
|
|
3
|
+
export { RatingGroup } from './rating-group.mjs';
|
|
4
|
+
export { useRatingGroupContext } from './rating-group-context.mjs';
|
|
5
|
+
export { RatingGroupControl } from './rating-group-control.mjs';
|
|
6
|
+
export { RatingGroupLabel } from './rating-group-label.mjs';
|
|
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>>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const segment = require('./segment.cjs');
|
|
6
|
+
const segmentContext = require('./segment-context.cjs');
|
|
7
|
+
const segmentControl = require('./segment-control.cjs');
|
|
8
|
+
const segmentGroup = require('./segment-group.cjs');
|
|
9
|
+
const segmentGroupContext = require('./segment-group-context.cjs');
|
|
10
|
+
const segmentGroupLabel = require('./segment-group-label.cjs');
|
|
11
|
+
const segmentGroup_anatomy = require('./segment-group.anatomy.cjs');
|
|
12
|
+
const segmentIndicator = require('./segment-indicator.cjs');
|
|
13
|
+
const segmentInput = require('./segment-input.cjs');
|
|
14
|
+
const segmentLabel = require('./segment-label.cjs');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.Segment = segment.Segment;
|
|
19
|
+
exports.useSegmentContext = segmentContext.useSegmentContext;
|
|
20
|
+
exports.SegmentControl = segmentControl.SegmentControl;
|
|
21
|
+
exports.SegmentGroup = segmentGroup.SegmentGroup;
|
|
22
|
+
exports.useSegmentGroupContext = segmentGroupContext.useSegmentGroupContext;
|
|
23
|
+
exports.SegmentGroupLabel = segmentGroupLabel.SegmentGroupLabel;
|
|
24
|
+
exports.segmentGroupAnatomy = segmentGroup_anatomy.segmentGroupAnatomy;
|
|
25
|
+
exports.SegmentIndicator = segmentIndicator.SegmentIndicator;
|
|
26
|
+
exports.SegmentInput = segmentInput.SegmentInput;
|
|
27
|
+
exports.SegmentLabel = segmentLabel.SegmentLabel;
|
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';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { Segment } from './segment.mjs';
|
|
2
|
+
export { useSegmentContext } from './segment-context.mjs';
|
|
3
|
+
export { SegmentControl } from './segment-control.mjs';
|
|
4
|
+
export { SegmentGroup } from './segment-group.mjs';
|
|
5
|
+
export { useSegmentGroupContext } from './segment-group-context.mjs';
|
|
6
|
+
export { SegmentGroupLabel } from './segment-group-label.mjs';
|
|
7
|
+
export { segmentGroupAnatomy } from './segment-group.anatomy.mjs';
|
|
8
|
+
export { SegmentIndicator } from './segment-indicator.mjs';
|
|
9
|
+
export { SegmentInput } from './segment-input.mjs';
|
|
10
|
+
export { SegmentLabel } from './segment-label.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
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const select = require('./select.cjs');
|
|
6
|
+
const selectContent = require('./select-content.cjs');
|
|
7
|
+
const selectContext = require('./select-context.cjs');
|
|
8
|
+
const selectLabel = require('./select-label.cjs');
|
|
9
|
+
const selectOption = require('./select-option.cjs');
|
|
10
|
+
const selectOptionGroup = require('./select-option-group.cjs');
|
|
11
|
+
const selectOptionGroupLabel = require('./select-option-group-label.cjs');
|
|
12
|
+
const selectPositioner = require('./select-positioner.cjs');
|
|
13
|
+
const selectTrigger = require('./select-trigger.cjs');
|
|
14
|
+
const select$1 = require('@zag-js/select');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.Select = select.Select;
|
|
19
|
+
exports.SelectContent = selectContent.SelectContent;
|
|
20
|
+
exports.useSelectContext = selectContext.useSelectContext;
|
|
21
|
+
exports.SelectLabel = selectLabel.SelectLabel;
|
|
22
|
+
exports.SelectOption = selectOption.SelectOption;
|
|
23
|
+
exports.SelectOptionGroup = selectOptionGroup.SelectOptionGroup;
|
|
24
|
+
exports.SelectOptionGroupLabel = selectOptionGroupLabel.SelectOptionGroupLabel;
|
|
25
|
+
exports.SelectPositioner = selectPositioner.SelectPositioner;
|
|
26
|
+
exports.SelectTrigger = selectTrigger.SelectTrigger;
|
|
27
|
+
Object.defineProperty(exports, 'selectAnatomy', {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: () => select$1.anatomy
|
|
30
|
+
});
|
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
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { Select } from './select.mjs';
|
|
2
|
+
export { SelectContent } from './select-content.mjs';
|
|
3
|
+
export { useSelectContext } from './select-context.mjs';
|
|
4
|
+
export { SelectLabel } from './select-label.mjs';
|
|
5
|
+
export { SelectOption } from './select-option.mjs';
|
|
6
|
+
export { SelectOptionGroup } from './select-option-group.mjs';
|
|
7
|
+
export { SelectOptionGroupLabel } from './select-option-group-label.mjs';
|
|
8
|
+
export { SelectPositioner } from './select-positioner.mjs';
|
|
9
|
+
export { SelectTrigger } from './select-trigger.mjs';
|
|
10
|
+
export { anatomy as selectAnatomy } from '@zag-js/select';
|
|
@@ -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
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const slider = require('./slider.cjs');
|
|
6
|
+
const sliderContext = require('./slider-context.cjs');
|
|
7
|
+
const sliderControl = require('./slider-control.cjs');
|
|
8
|
+
const sliderLabel = require('./slider-label.cjs');
|
|
9
|
+
const sliderMarker = require('./slider-marker.cjs');
|
|
10
|
+
const sliderMarkerGroup = require('./slider-marker-group.cjs');
|
|
11
|
+
const sliderOutput = require('./slider-output.cjs');
|
|
12
|
+
const sliderRange = require('./slider-range.cjs');
|
|
13
|
+
const sliderThumb = require('./slider-thumb.cjs');
|
|
14
|
+
const sliderTrack = require('./slider-track.cjs');
|
|
15
|
+
const slider$1 = require('@zag-js/slider');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
exports.Slider = slider.Slider;
|
|
20
|
+
exports.useSliderContext = sliderContext.useSliderContext;
|
|
21
|
+
exports.SliderControl = sliderControl.SliderControl;
|
|
22
|
+
exports.SliderLabel = sliderLabel.SliderLabel;
|
|
23
|
+
exports.SliderMarker = sliderMarker.SliderMarker;
|
|
24
|
+
exports.SliderMarkerGroup = sliderMarkerGroup.SliderMarkerGroup;
|
|
25
|
+
exports.SliderOutput = sliderOutput.SliderOutput;
|
|
26
|
+
exports.SliderRange = sliderRange.SliderRange;
|
|
27
|
+
exports.SliderThumb = sliderThumb.SliderThumb;
|
|
28
|
+
exports.SliderTrack = sliderTrack.SliderTrack;
|
|
29
|
+
Object.defineProperty(exports, 'sliderAnatomy', {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: () => slider$1.anatomy
|
|
32
|
+
});
|
package/slider/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Slider, type SliderProps } from './slider';
|
|
2
|
+
export { useSliderContext } from './slider-context';
|
|
2
3
|
export { SliderControl, type SliderControlProps } from './slider-control';
|
|
3
4
|
export { SliderLabel, type SliderLabelProps } from './slider-label';
|
|
4
5
|
export { SliderMarker, type SliderMarkerProps } from './slider-marker';
|
package/slider/index.mjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { Slider } from './slider.mjs';
|
|
2
|
+
export { useSliderContext } from './slider-context.mjs';
|
|
3
|
+
export { SliderControl } from './slider-control.mjs';
|
|
4
|
+
export { SliderLabel } from './slider-label.mjs';
|
|
5
|
+
export { SliderMarker } from './slider-marker.mjs';
|
|
6
|
+
export { SliderMarkerGroup } from './slider-marker-group.mjs';
|
|
7
|
+
export { SliderOutput } from './slider-output.mjs';
|
|
8
|
+
export { SliderRange } from './slider-range.mjs';
|
|
9
|
+
export { SliderThumb } from './slider-thumb.mjs';
|
|
10
|
+
export { SliderTrack } from './slider-track.mjs';
|
|
11
|
+
export { anatomy as sliderAnatomy } from '@zag-js/slider';
|