@ark-ui/react 0.13.1 → 0.14.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 +19 -2
- package/accordion/accordion-context.d.ts +2 -9
- package/accordion/accordion.cjs +3 -2
- package/accordion/accordion.d.ts +2 -2
- package/accordion/accordion.mjs +3 -2
- package/accordion/index.d.ts +4 -4
- package/accordion/use-accordion.d.ts +2 -7
- package/avatar/avatar-context.d.ts +2 -9
- package/avatar/use-avatar.d.ts +2 -7
- package/carousel/carousel-context.d.ts +2 -9
- package/carousel/carousel.d.ts +3 -3
- package/carousel/index.d.ts +7 -12
- package/carousel/use-carousel.d.ts +2 -7
- package/checkbox/checkbox-context.d.ts +2 -9
- package/checkbox/checkbox.d.ts +3 -3
- package/checkbox/index.d.ts +7 -13
- package/checkbox/use-checkbox.d.ts +2 -7
- package/color-picker/color-picker-context.d.ts +2 -9
- package/color-picker/use-color-picker.d.ts +2 -7
- package/combobox/combobox-context.d.ts +2 -9
- package/combobox/combobox.cjs +0 -1
- package/combobox/combobox.d.ts +1 -1
- package/combobox/combobox.mjs +0 -1
- package/combobox/index.d.ts +7 -12
- package/combobox/use-combobox.d.ts +2 -7
- package/compose-refs.cjs +0 -1
- package/compose-refs.mjs +0 -1
- package/date-picker/date-picker-context.d.ts +2 -9
- package/date-picker/use-date-picker.d.ts +2 -7
- package/dialog/dialog-context.d.ts +2 -9
- package/dialog/use-dialog.d.ts +2 -7
- package/editable/editable-context.d.ts +2 -9
- package/editable/editable.d.ts +3 -3
- package/editable/index.d.ts +7 -12
- package/editable/use-editable.d.ts +2 -7
- package/factory.cjs +2 -2
- package/factory.mjs +1 -1
- package/hover-card/hover-card-context.d.ts +2 -9
- package/hover-card/use-hover-card.d.ts +2 -7
- package/index.cjs +0 -2
- package/index.mjs +0 -1
- package/menu/index.d.ts +2 -2
- package/menu/menu-item.d.ts +5 -8
- package/menu/use-menu.d.ts +1 -1
- package/number-input/index.d.ts +2 -2
- package/number-input/number-input-context.d.ts +2 -9
- package/number-input/number-input.d.ts +1 -1
- package/number-input/use-number-input.d.ts +2 -7
- package/package.json +49 -48
- package/pagination/index.d.ts +5 -11
- package/pagination/pagination-context.d.ts +2 -9
- package/pagination/pagination.d.ts +2 -2
- package/pagination/use-pagination.d.ts +2 -7
- package/pin-input/index.d.ts +2 -2
- package/pin-input/pin-input-context.d.ts +2 -9
- package/pin-input/pin-input.d.ts +1 -1
- package/pin-input/use-pin-input.d.ts +2 -7
- package/popover/popover-context.d.ts +2 -9
- package/popover/use-popover.d.ts +2 -7
- package/presence/use-presence.d.ts +1 -1
- package/pressable/use-pressable.d.ts +2 -7
- package/radio-group/index.d.ts +2 -2
- package/radio-group/radio-group-context.d.ts +2 -9
- package/radio-group/radio-group.d.ts +1 -1
- package/radio-group/use-radio-group.d.ts +2 -7
- package/range-slider/index.d.ts +8 -16
- package/range-slider/range-slider-context.d.ts +2 -9
- package/range-slider/range-slider.cjs +3 -0
- package/range-slider/range-slider.d.ts +1 -1
- package/range-slider/range-slider.mjs +3 -0
- package/range-slider/use-range-slider.d.ts +2 -7
- package/rating-group/index.d.ts +6 -8
- package/rating-group/rating-group-context.d.ts +2 -9
- package/rating-group/rating-group-control.d.ts +2 -2
- package/rating-group/rating-group.d.ts +1 -1
- package/rating-group/use-rating-group.d.ts +2 -7
- package/segment-group/index.d.ts +2 -2
- package/segment-group/segment-group-context.d.ts +2 -9
- package/segment-group/segment-group.d.ts +1 -1
- package/segment-group/use-segment-group.d.ts +2 -7
- package/select/select-context.d.ts +2 -9
- package/select/use-select.d.ts +2 -7
- package/slider/index.d.ts +5 -15
- package/slider/slider-context.d.ts +2 -9
- package/slider/slider.cjs +2 -0
- package/slider/slider.mjs +2 -0
- package/slider/use-slider.d.ts +2 -7
- package/splitter/index.d.ts +7 -12
- package/splitter/splitter-context.d.ts +2 -9
- package/splitter/splitter.d.ts +1 -1
- package/splitter/use-splitter.d.ts +2 -7
- package/switch/index.cjs +0 -3
- package/switch/index.d.ts +6 -19
- package/switch/index.mjs +1 -3
- package/switch/switch-context.d.ts +2 -9
- package/switch/switch-control.cjs +5 -2
- package/switch/switch-control.mjs +6 -3
- package/switch/switch.d.ts +2 -2
- package/switch/use-switch.d.ts +2 -7
- package/tabs/index.d.ts +2 -2
- package/tabs/tabs-context.d.ts +2 -9
- package/tabs/tabs.d.ts +1 -1
- package/tabs/use-tabs.cjs +21 -2
- package/tabs/use-tabs.d.ts +5 -10
- package/tabs/use-tabs.mjs +3 -3
- package/tags-input/index.d.ts +2 -2
- package/tags-input/tags-input-context.d.ts +2 -9
- package/tags-input/tags-input.cjs +1 -2
- package/tags-input/tags-input.d.ts +2 -2
- package/tags-input/tags-input.mjs +1 -2
- package/tags-input/use-tags-input.d.ts +2 -7
- package/toast/index.d.ts +1 -1
- package/toast/toast-group.d.ts +2 -2
- package/toast/toast-item-context.d.ts +2 -9
- package/toast/toast-provider.d.ts +2 -57
- package/toast/use-toast-item.d.ts +2 -7
- package/tooltip/tooltip-context.d.ts +2 -9
- package/tooltip/use-tooltip.d.ts +2 -7
- package/switch/switch-input.cjs +0 -19
- package/switch/switch-input.d.ts +0 -8
- package/switch/switch-input.mjs +0 -15
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Provider, HTMLAttributes, CSSProperties } from 'react';
|
|
1
|
+
import { Provider } from 'react';
|
|
3
2
|
/// <reference types="react" />
|
|
4
3
|
import { type UseRadioGroupReturn } from './use-radio-group';
|
|
5
4
|
export type RadioGroupContext = UseRadioGroupReturn;
|
|
6
|
-
export declare const RadioGroupProvider: Provider<
|
|
7
|
-
element: HTMLAttributes<HTMLElement>;
|
|
8
|
-
style: CSSProperties;
|
|
9
|
-
}>>, useRadioGroupContext: () => PublicApi<JSX.IntrinsicElements & {
|
|
10
|
-
element: HTMLAttributes<HTMLElement>;
|
|
11
|
-
style: CSSProperties;
|
|
12
|
-
}>;
|
|
5
|
+
export declare const RadioGroupProvider: Provider<UseRadioGroupReturn>, useRadioGroupContext: () => UseRadioGroupReturn;
|
|
@@ -8,6 +8,6 @@ export declare const RadioGroup: ForwardRefExoticComponent<Omit<Omit<Omit<Detail
|
|
|
8
8
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
9
9
|
} & {
|
|
10
10
|
asChild?: boolean | undefined;
|
|
11
|
-
}, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "
|
|
11
|
+
}, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultValue" | "dir" | "onChange" | "readOnly" | "orientation"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
|
|
12
12
|
defaultValue?: string | null | undefined;
|
|
13
13
|
} & RefAttributes<HTMLDivElement>>;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { HTMLAttributes, CSSProperties } from 'react';
|
|
2
|
-
/// <reference types="react" />
|
|
3
1
|
import * as radio from '@zag-js/radio-group';
|
|
4
2
|
import { type Optional } from '../types';
|
|
5
3
|
export type UseRadioGroupProps = Optional<radio.Context, 'id'> & {
|
|
6
4
|
defaultValue?: radio.Context['value'];
|
|
7
5
|
};
|
|
8
|
-
export type UseRadioGroupReturn =
|
|
9
|
-
export declare const useRadioGroup: (props: UseRadioGroupProps) =>
|
|
10
|
-
element: HTMLAttributes<HTMLElement>;
|
|
11
|
-
style: CSSProperties;
|
|
12
|
-
}>;
|
|
6
|
+
export type UseRadioGroupReturn = radio.Api;
|
|
7
|
+
export declare const useRadioGroup: (props: UseRadioGroupProps) => UseRadioGroupReturn;
|
package/range-slider/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { UseRangeSliderReturn } from './use-range-slider';
|
|
2
|
+
import { Context } from '@zag-js/range-slider';
|
|
3
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, ReactNode, RefAttributes, LabelHTMLAttributes, OutputHTMLAttributes } from 'react';
|
|
3
4
|
/// <reference types="react" />
|
|
4
5
|
import { type RangeSliderProps } from './range-slider';
|
|
5
6
|
import { useRangeSliderContext } from './range-slider-context';
|
|
@@ -16,25 +17,19 @@ declare const RangeSlider: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTML
|
|
|
16
17
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
17
18
|
} & {
|
|
18
19
|
asChild?: boolean | undefined;
|
|
19
|
-
}, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "aria-label" | "disabled" | "
|
|
20
|
+
}, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "aria-label" | "disabled" | "defaultValue" | "dir" | "aria-labelledby" | "onChange" | "max" | "min" | "readOnly" | "step" | "orientation" | "onFocusChange" | "invalid" | "onChangeEnd" | "onChangeStart" | "getAriaValueText" | "minStepsBetweenThumbs" | "thumbAlignment" | "thumbSize"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
|
|
20
21
|
defaultValue?: number[] | undefined;
|
|
21
22
|
} & {
|
|
22
|
-
children?: ReactNode | ((api:
|
|
23
|
-
element: HTMLAttributes<HTMLElement>;
|
|
24
|
-
style: CSSProperties;
|
|
25
|
-
}>) => ReactNode);
|
|
23
|
+
children?: ReactNode | ((api: UseRangeSliderReturn) => ReactNode);
|
|
26
24
|
} & RefAttributes<HTMLDivElement>> & {
|
|
27
25
|
Root: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
28
26
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
29
27
|
} & {
|
|
30
28
|
asChild?: boolean | undefined;
|
|
31
|
-
}, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "aria-label" | "disabled" | "
|
|
29
|
+
}, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "aria-label" | "disabled" | "defaultValue" | "dir" | "aria-labelledby" | "onChange" | "max" | "min" | "readOnly" | "step" | "orientation" | "onFocusChange" | "invalid" | "onChangeEnd" | "onChangeStart" | "getAriaValueText" | "minStepsBetweenThumbs" | "thumbAlignment" | "thumbSize"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
|
|
32
30
|
defaultValue?: number[] | undefined;
|
|
33
31
|
} & {
|
|
34
|
-
children?: ReactNode | ((api:
|
|
35
|
-
element: HTMLAttributes<HTMLElement>;
|
|
36
|
-
style: CSSProperties;
|
|
37
|
-
}>) => ReactNode);
|
|
32
|
+
children?: ReactNode | ((api: UseRangeSliderReturn) => ReactNode);
|
|
38
33
|
} & RefAttributes<HTMLDivElement>>;
|
|
39
34
|
Control: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
40
35
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
@@ -63,10 +58,7 @@ declare const RangeSlider: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTML
|
|
|
63
58
|
} & {
|
|
64
59
|
asChild?: boolean | undefined;
|
|
65
60
|
}, "ref">, "children"> & {
|
|
66
|
-
children?: ReactNode | ((api:
|
|
67
|
-
element: HTMLAttributes<HTMLElement>;
|
|
68
|
-
style: CSSProperties;
|
|
69
|
-
}>) => ReactNode);
|
|
61
|
+
children?: ReactNode | ((api: UseRangeSliderReturn) => ReactNode);
|
|
70
62
|
} & RefAttributes<HTMLOutputElement>>;
|
|
71
63
|
Range: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
72
64
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Provider, HTMLAttributes, CSSProperties } from 'react';
|
|
1
|
+
import { Provider } from 'react';
|
|
3
2
|
/// <reference types="react" />
|
|
4
3
|
import { type UseRangeSliderReturn } from './use-range-slider';
|
|
5
4
|
export type RangeSliderContext = UseRangeSliderReturn;
|
|
6
|
-
export declare const RangeSliderProvider: Provider<
|
|
7
|
-
element: HTMLAttributes<HTMLElement>;
|
|
8
|
-
style: CSSProperties;
|
|
9
|
-
}>>, useRangeSliderContext: () => PublicApi<JSX.IntrinsicElements & {
|
|
10
|
-
element: HTMLAttributes<HTMLElement>;
|
|
11
|
-
style: CSSProperties;
|
|
12
|
-
}>;
|
|
5
|
+
export declare const RangeSliderProvider: Provider<UseRangeSliderReturn>, useRangeSliderContext: () => UseRangeSliderReturn;
|
|
@@ -34,10 +34,13 @@ const RangeSlider = react.forwardRef((props, ref) => {
|
|
|
34
34
|
"onChange",
|
|
35
35
|
"onChangeEnd",
|
|
36
36
|
"onChangeStart",
|
|
37
|
+
"onFocusChange",
|
|
37
38
|
"orientation",
|
|
38
39
|
"readOnly",
|
|
39
40
|
"step",
|
|
40
41
|
"thumbAlignment",
|
|
42
|
+
"thumbAlignment",
|
|
43
|
+
"thumbSize",
|
|
41
44
|
"value"
|
|
42
45
|
]
|
|
43
46
|
);
|
|
@@ -10,7 +10,7 @@ export declare const RangeSlider: ForwardRefExoticComponent<Omit<Omit<Omit<Detai
|
|
|
10
10
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
asChild?: boolean | undefined;
|
|
13
|
-
}, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "aria-label" | "disabled" | "
|
|
13
|
+
}, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "aria-label" | "disabled" | "defaultValue" | "dir" | "aria-labelledby" | "onChange" | "max" | "min" | "readOnly" | "step" | "orientation" | "onFocusChange" | "invalid" | "onChangeEnd" | "onChangeStart" | "getAriaValueText" | "minStepsBetweenThumbs" | "thumbAlignment" | "thumbSize"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
|
|
14
14
|
defaultValue?: number[] | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
children?: ReactNode | ((api: UseRangeSliderReturn) => ReactNode);
|
|
@@ -30,10 +30,13 @@ const RangeSlider = forwardRef((props, ref) => {
|
|
|
30
30
|
"onChange",
|
|
31
31
|
"onChangeEnd",
|
|
32
32
|
"onChangeStart",
|
|
33
|
+
"onFocusChange",
|
|
33
34
|
"orientation",
|
|
34
35
|
"readOnly",
|
|
35
36
|
"step",
|
|
36
37
|
"thumbAlignment",
|
|
38
|
+
"thumbAlignment",
|
|
39
|
+
"thumbSize",
|
|
37
40
|
"value"
|
|
38
41
|
]
|
|
39
42
|
);
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { HTMLAttributes, CSSProperties } from 'react';
|
|
2
|
-
/// <reference types="react" />
|
|
3
1
|
import * as rangeSlider from '@zag-js/range-slider';
|
|
4
2
|
import { type Optional } from '../types';
|
|
5
3
|
export type UseRangeSliderProps = Optional<rangeSlider.Context, 'id'> & {
|
|
6
4
|
defaultValue?: rangeSlider.Context['value'];
|
|
7
5
|
};
|
|
8
|
-
export type UseRangeSliderReturn =
|
|
9
|
-
export declare const useRangeSlider: (props: UseRangeSliderProps) =>
|
|
10
|
-
element: HTMLAttributes<HTMLElement>;
|
|
11
|
-
style: CSSProperties;
|
|
12
|
-
}>;
|
|
6
|
+
export type UseRangeSliderReturn = rangeSlider.Api;
|
|
7
|
+
export declare const useRangeSlider: (props: UseRangeSliderProps) => UseRangeSliderReturn;
|
package/rating-group/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { UseRatingGroupReturn } from './use-rating-group';
|
|
2
|
+
import { Context, ItemProps, ItemState } from '@zag-js/rating-group';
|
|
3
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, ReactNode, LabelHTMLAttributes } from 'react';
|
|
3
4
|
/// <reference types="react" />
|
|
4
5
|
import { Rating, type RatingProps } from './rating';
|
|
5
6
|
import { useRatingContext } from './rating-context';
|
|
@@ -12,14 +13,14 @@ declare const RatingGroup: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTML
|
|
|
12
13
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
13
14
|
} & {
|
|
14
15
|
asChild?: boolean | undefined;
|
|
15
|
-
}, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "
|
|
16
|
+
}, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultValue" | "autoFocus" | "dir" | "onChange" | "max" | "readOnly" | "translations" | "allowHalf" | "onHover"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
|
|
16
17
|
defaultValue?: number | undefined;
|
|
17
18
|
} & RefAttributes<HTMLDivElement>> & {
|
|
18
19
|
Root: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
19
20
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
20
21
|
} & {
|
|
21
22
|
asChild?: boolean | undefined;
|
|
22
|
-
}, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "
|
|
23
|
+
}, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultValue" | "autoFocus" | "dir" | "onChange" | "max" | "readOnly" | "translations" | "allowHalf" | "onHover"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
|
|
23
24
|
defaultValue?: number | undefined;
|
|
24
25
|
} & RefAttributes<HTMLDivElement>>;
|
|
25
26
|
Control: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -27,10 +28,7 @@ declare const RatingGroup: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTML
|
|
|
27
28
|
} & {
|
|
28
29
|
asChild?: boolean | undefined;
|
|
29
30
|
}, "ref">, "children"> & {
|
|
30
|
-
children
|
|
31
|
-
element: HTMLAttributes<HTMLElement>;
|
|
32
|
-
style: CSSProperties;
|
|
33
|
-
}>) => ReactNode);
|
|
31
|
+
children?: ReactNode | ((context: UseRatingGroupReturn) => ReactNode);
|
|
34
32
|
} & RefAttributes<HTMLDivElement>>;
|
|
35
33
|
Label: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
|
|
36
34
|
ref?: ((instance: HTMLLabelElement | null) => void) | RefObject<HTMLLabelElement> | null | undefined;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Provider, HTMLAttributes, CSSProperties } from 'react';
|
|
1
|
+
import { Provider } from 'react';
|
|
3
2
|
/// <reference types="react" />
|
|
4
3
|
import { type UseRatingGroupReturn } from './use-rating-group';
|
|
5
4
|
export type RatingGroupContext = UseRatingGroupReturn;
|
|
6
|
-
export declare const RatingGroupProvider: Provider<
|
|
7
|
-
element: HTMLAttributes<HTMLElement>;
|
|
8
|
-
style: CSSProperties;
|
|
9
|
-
}>>, useRatingGroupContext: () => PublicApi<JSX.IntrinsicElements & {
|
|
10
|
-
element: HTMLAttributes<HTMLElement>;
|
|
11
|
-
style: CSSProperties;
|
|
12
|
-
}>;
|
|
5
|
+
export declare const RatingGroupProvider: Provider<UseRatingGroupReturn>, useRatingGroupContext: () => UseRatingGroupReturn;
|
|
@@ -2,12 +2,12 @@ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject
|
|
|
2
2
|
import { ark } from '../factory';
|
|
3
3
|
import { type RatingGroupContext } from './rating-group-context';
|
|
4
4
|
export type RatingGroupControlProps = Omit<ComponentPropsWithoutRef<typeof ark.div>, 'children'> & {
|
|
5
|
-
children
|
|
5
|
+
children?: ReactNode | ((context: RatingGroupContext) => ReactNode);
|
|
6
6
|
};
|
|
7
7
|
export declare const RatingGroupControl: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
8
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
9
9
|
} & {
|
|
10
10
|
asChild?: boolean | undefined;
|
|
11
11
|
}, "ref">, "children"> & {
|
|
12
|
-
children
|
|
12
|
+
children?: ReactNode | ((context: RatingGroupContext) => ReactNode);
|
|
13
13
|
} & RefAttributes<HTMLDivElement>>;
|
|
@@ -8,6 +8,6 @@ export declare const RatingGroup: ForwardRefExoticComponent<Omit<Omit<Omit<Detai
|
|
|
8
8
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
9
9
|
} & {
|
|
10
10
|
asChild?: boolean | undefined;
|
|
11
|
-
}, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "
|
|
11
|
+
}, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultValue" | "autoFocus" | "dir" | "onChange" | "max" | "readOnly" | "translations" | "allowHalf" | "onHover"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
|
|
12
12
|
defaultValue?: number | undefined;
|
|
13
13
|
} & RefAttributes<HTMLDivElement>>;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { HTMLAttributes, CSSProperties } from 'react';
|
|
2
|
-
/// <reference types="react" />
|
|
3
1
|
import * as ratingGroup from '@zag-js/rating-group';
|
|
4
2
|
import { type Optional } from '../types';
|
|
5
3
|
export type UseRatingGroupProps = Optional<ratingGroup.Context, 'id'> & {
|
|
6
4
|
defaultValue?: ratingGroup.Context['value'];
|
|
7
5
|
};
|
|
8
|
-
export type UseRatingGroupReturn =
|
|
9
|
-
export declare const useRatingGroup: (props: UseRatingGroupProps) =>
|
|
10
|
-
element: HTMLAttributes<HTMLElement>;
|
|
11
|
-
style: CSSProperties;
|
|
12
|
-
}>;
|
|
6
|
+
export type UseRatingGroupReturn = ratingGroup.Api;
|
|
7
|
+
export declare const useRatingGroup: (props: UseRatingGroupProps) => UseRatingGroupReturn;
|
package/segment-group/index.d.ts
CHANGED
|
@@ -14,14 +14,14 @@ declare const SegmentGroup: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTM
|
|
|
14
14
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
asChild?: boolean | undefined;
|
|
17
|
-
}, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "
|
|
17
|
+
}, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultValue" | "dir" | "onChange" | "readOnly" | "orientation"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
|
|
18
18
|
defaultValue?: string | null | undefined;
|
|
19
19
|
} & RefAttributes<HTMLDivElement>> & {
|
|
20
20
|
Root: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
21
21
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
22
22
|
} & {
|
|
23
23
|
asChild?: boolean | undefined;
|
|
24
|
-
}, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "
|
|
24
|
+
}, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultValue" | "dir" | "onChange" | "readOnly" | "orientation"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
|
|
25
25
|
defaultValue?: string | null | undefined;
|
|
26
26
|
} & RefAttributes<HTMLDivElement>>;
|
|
27
27
|
Label: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Provider, HTMLAttributes, CSSProperties } from 'react';
|
|
1
|
+
import { Provider } from 'react';
|
|
3
2
|
/// <reference types="react" />
|
|
4
3
|
import { type UseSegmentGroupReturn } from './use-segment-group';
|
|
5
4
|
export type SegmentGroupContext = UseSegmentGroupReturn;
|
|
6
|
-
export declare const SegmentGroupProvider: Provider<
|
|
7
|
-
element: HTMLAttributes<HTMLElement>;
|
|
8
|
-
style: CSSProperties;
|
|
9
|
-
}>>, useSegmentGroupContext: () => PublicApi<JSX.IntrinsicElements & {
|
|
10
|
-
element: HTMLAttributes<HTMLElement>;
|
|
11
|
-
style: CSSProperties;
|
|
12
|
-
}>;
|
|
5
|
+
export declare const SegmentGroupProvider: Provider<UseSegmentGroupReturn>, useSegmentGroupContext: () => UseSegmentGroupReturn;
|
|
@@ -8,6 +8,6 @@ export declare const SegmentGroup: ForwardRefExoticComponent<Omit<Omit<Omit<Deta
|
|
|
8
8
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
9
9
|
} & {
|
|
10
10
|
asChild?: boolean | undefined;
|
|
11
|
-
}, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "
|
|
11
|
+
}, "ref">, "name" | "value" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "defaultValue" | "dir" | "onChange" | "readOnly" | "orientation"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
|
|
12
12
|
defaultValue?: string | null | undefined;
|
|
13
13
|
} & RefAttributes<HTMLDivElement>>;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { HTMLAttributes, CSSProperties } from 'react';
|
|
2
|
-
/// <reference types="react" />
|
|
3
1
|
import * as segmentGroup from '@zag-js/radio-group';
|
|
4
2
|
import { type Optional } from '../types';
|
|
5
3
|
export type UseSegmentGroupProps = Optional<segmentGroup.Context, 'id'> & {
|
|
6
4
|
defaultValue?: segmentGroup.Context['value'];
|
|
7
5
|
};
|
|
8
|
-
export type UseSegmentGroupReturn =
|
|
9
|
-
export declare const useSegmentGroup: (props: UseSegmentGroupProps) =>
|
|
10
|
-
element: HTMLAttributes<HTMLElement>;
|
|
11
|
-
style: CSSProperties;
|
|
12
|
-
}>;
|
|
6
|
+
export type UseSegmentGroupReturn = segmentGroup.Api;
|
|
7
|
+
export declare const useSegmentGroup: (props: UseSegmentGroupProps) => UseSegmentGroupReturn;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Provider, HTMLAttributes, CSSProperties } from 'react';
|
|
1
|
+
import { Provider } from 'react';
|
|
3
2
|
/// <reference types="react" />
|
|
4
3
|
import { type UseSelectReturn } from './use-select';
|
|
5
4
|
export type SelectContext = UseSelectReturn;
|
|
6
|
-
export declare const SelectProvider: Provider<
|
|
7
|
-
element: HTMLAttributes<HTMLElement>;
|
|
8
|
-
style: CSSProperties;
|
|
9
|
-
}>>, useSelectContext: () => PublicApi<JSX.IntrinsicElements & {
|
|
10
|
-
element: HTMLAttributes<HTMLElement>;
|
|
11
|
-
style: CSSProperties;
|
|
12
|
-
}>;
|
|
5
|
+
export declare const SelectProvider: Provider<UseSelectReturn>, useSelectContext: () => UseSelectReturn;
|
package/select/use-select.d.ts
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { HTMLAttributes, CSSProperties } from 'react';
|
|
2
|
-
/// <reference types="react" />
|
|
3
1
|
import * as select from '@zag-js/select';
|
|
4
2
|
import { type Optional } from '../types';
|
|
5
3
|
export type UseSelectProps = Optional<select.Context, 'id'> & {
|
|
6
4
|
defaultValue?: select.Context['selectedOption'];
|
|
7
5
|
};
|
|
8
|
-
export type UseSelectReturn =
|
|
9
|
-
export declare const useSelect: (props: UseSelectProps) =>
|
|
10
|
-
element: HTMLAttributes<HTMLElement>;
|
|
11
|
-
style: CSSProperties;
|
|
12
|
-
}>;
|
|
6
|
+
export type UseSelectReturn = select.Api;
|
|
7
|
+
export declare const useSelect: (props: UseSelectProps) => UseSelectReturn;
|
package/slider/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UseSliderProps } from './use-slider';
|
|
1
|
+
import { UseSliderProps, UseSliderReturn } from './use-slider';
|
|
3
2
|
import { Assign } from '../types';
|
|
4
|
-
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, ReactNode,
|
|
3
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, ReactNode, RefAttributes, LabelHTMLAttributes, OutputHTMLAttributes } from 'react';
|
|
5
4
|
/// <reference types="react" />
|
|
6
5
|
import { type SliderProps } from './slider';
|
|
7
6
|
import { useSliderContext } from './slider-context';
|
|
@@ -19,20 +18,14 @@ declare const Slider: ForwardRefExoticComponent<Omit<Assign<Omit<Omit<DetailedHT
|
|
|
19
18
|
} & {
|
|
20
19
|
asChild?: boolean | undefined;
|
|
21
20
|
}, "ref">, UseSliderProps>, "children"> & {
|
|
22
|
-
children?: ReactNode | ((context:
|
|
23
|
-
element: HTMLAttributes<HTMLElement>;
|
|
24
|
-
style: CSSProperties;
|
|
25
|
-
}>) => ReactNode);
|
|
21
|
+
children?: ReactNode | ((context: UseSliderReturn) => ReactNode);
|
|
26
22
|
} & RefAttributes<HTMLDivElement>> & {
|
|
27
23
|
Root: ForwardRefExoticComponent<Omit<Assign<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
28
24
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
29
25
|
} & {
|
|
30
26
|
asChild?: boolean | undefined;
|
|
31
27
|
}, "ref">, UseSliderProps>, "children"> & {
|
|
32
|
-
children?: ReactNode | ((context:
|
|
33
|
-
element: HTMLAttributes<HTMLElement>;
|
|
34
|
-
style: CSSProperties;
|
|
35
|
-
}>) => ReactNode);
|
|
28
|
+
children?: ReactNode | ((context: UseSliderReturn) => ReactNode);
|
|
36
29
|
} & RefAttributes<HTMLDivElement>>;
|
|
37
30
|
Control: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
38
31
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
@@ -61,10 +54,7 @@ declare const Slider: ForwardRefExoticComponent<Omit<Assign<Omit<Omit<DetailedHT
|
|
|
61
54
|
} & {
|
|
62
55
|
asChild?: boolean | undefined;
|
|
63
56
|
}, "ref">, "children"> & {
|
|
64
|
-
children?: ReactNode | ((context:
|
|
65
|
-
element: HTMLAttributes<HTMLElement>;
|
|
66
|
-
style: CSSProperties;
|
|
67
|
-
}>) => ReactNode);
|
|
57
|
+
children?: ReactNode | ((context: UseSliderReturn) => ReactNode);
|
|
68
58
|
} & RefAttributes<HTMLOutputElement>>;
|
|
69
59
|
Range: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
70
60
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Provider, HTMLAttributes, CSSProperties } from 'react';
|
|
1
|
+
import { Provider } from 'react';
|
|
3
2
|
/// <reference types="react" />
|
|
4
3
|
import { type UseSliderReturn } from './use-slider';
|
|
5
4
|
export type SliderContext = UseSliderReturn;
|
|
6
|
-
export declare const SliderProvider: Provider<
|
|
7
|
-
element: HTMLAttributes<HTMLElement>;
|
|
8
|
-
style: CSSProperties;
|
|
9
|
-
}>>, useSliderContext: () => PublicApi<JSX.IntrinsicElements & {
|
|
10
|
-
element: HTMLAttributes<HTMLElement>;
|
|
11
|
-
style: CSSProperties;
|
|
12
|
-
}>;
|
|
5
|
+
export declare const SliderProvider: Provider<UseSliderReturn>, useSliderContext: () => UseSliderReturn;
|
package/slider/slider.cjs
CHANGED
package/slider/slider.mjs
CHANGED
package/slider/use-slider.d.ts
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { HTMLAttributes, CSSProperties } from 'react';
|
|
2
|
-
/// <reference types="react" />
|
|
3
1
|
import * as slider from '@zag-js/slider';
|
|
4
2
|
import { type Optional } from '../types';
|
|
5
3
|
export type UseSliderProps = Optional<slider.Context, 'id'> & {
|
|
6
4
|
defaultValue?: slider.Context['value'];
|
|
7
5
|
};
|
|
8
|
-
export type UseSliderReturn =
|
|
9
|
-
export declare const useSlider: (props: UseSliderProps) =>
|
|
10
|
-
element: HTMLAttributes<HTMLElement>;
|
|
11
|
-
style: CSSProperties;
|
|
12
|
-
}>;
|
|
6
|
+
export type UseSliderReturn = slider.Api;
|
|
7
|
+
export declare const useSlider: (props: UseSliderProps) => UseSliderReturn;
|
package/splitter/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { UseSplitterReturn } from './use-splitter';
|
|
2
|
+
import { Context, PanelProps, ResizeTriggerProps } from '@zag-js/splitter';
|
|
3
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, ReactNode, RefAttributes, ButtonHTMLAttributes } from 'react';
|
|
3
4
|
/// <reference types="react" />
|
|
4
5
|
import { type SplitterProps } from './splitter';
|
|
5
6
|
import { useSplitterContext } from './splitter-context';
|
|
@@ -10,7 +11,7 @@ declare const Splitter: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLPro
|
|
|
10
11
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
11
12
|
} & {
|
|
12
13
|
asChild?: boolean | undefined;
|
|
13
|
-
}, "ref">, "children" | "getRootNode" | "id" | "ids" | "
|
|
14
|
+
}, "ref">, "children" | "getRootNode" | "id" | "ids" | "dir" | "onResize" | "size" | "orientation" | "onResizeStart" | "onResizeEnd" | "defaultSize"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
|
|
14
15
|
defaultSize?: {
|
|
15
16
|
id: string | number;
|
|
16
17
|
size?: number | undefined;
|
|
@@ -18,16 +19,13 @@ declare const Splitter: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLPro
|
|
|
18
19
|
maxSize?: number | undefined;
|
|
19
20
|
}[] | undefined;
|
|
20
21
|
} & {
|
|
21
|
-
children?: ReactNode | ((state:
|
|
22
|
-
element: HTMLAttributes<HTMLElement>;
|
|
23
|
-
style: CSSProperties;
|
|
24
|
-
}>) => ReactNode);
|
|
22
|
+
children?: ReactNode | ((state: UseSplitterReturn) => ReactNode);
|
|
25
23
|
} & RefAttributes<HTMLDivElement>> & {
|
|
26
24
|
Root: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
27
25
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
28
26
|
} & {
|
|
29
27
|
asChild?: boolean | undefined;
|
|
30
|
-
}, "ref">, "children" | "getRootNode" | "id" | "ids" | "
|
|
28
|
+
}, "ref">, "children" | "getRootNode" | "id" | "ids" | "dir" | "onResize" | "size" | "orientation" | "onResizeStart" | "onResizeEnd" | "defaultSize"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
|
|
31
29
|
defaultSize?: {
|
|
32
30
|
id: string | number;
|
|
33
31
|
size?: number | undefined;
|
|
@@ -35,10 +33,7 @@ declare const Splitter: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLPro
|
|
|
35
33
|
maxSize?: number | undefined;
|
|
36
34
|
}[] | undefined;
|
|
37
35
|
} & {
|
|
38
|
-
children?: ReactNode | ((state:
|
|
39
|
-
element: HTMLAttributes<HTMLElement>;
|
|
40
|
-
style: CSSProperties;
|
|
41
|
-
}>) => ReactNode);
|
|
36
|
+
children?: ReactNode | ((state: UseSplitterReturn) => ReactNode);
|
|
42
37
|
} & RefAttributes<HTMLDivElement>>;
|
|
43
38
|
Panel: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
44
39
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Provider, HTMLAttributes, CSSProperties } from 'react';
|
|
1
|
+
import { Provider } from 'react';
|
|
3
2
|
/// <reference types="react" />
|
|
4
3
|
import { type UseSplitterReturn } from './use-splitter';
|
|
5
4
|
export type SplitterContext = UseSplitterReturn;
|
|
6
|
-
export declare const SplitterProvider: Provider<
|
|
7
|
-
element: HTMLAttributes<HTMLElement>;
|
|
8
|
-
style: CSSProperties;
|
|
9
|
-
}>>, useSplitterContext: () => PublicApi<JSX.IntrinsicElements & {
|
|
10
|
-
element: HTMLAttributes<HTMLElement>;
|
|
11
|
-
style: CSSProperties;
|
|
12
|
-
}>;
|
|
5
|
+
export declare const SplitterProvider: Provider<UseSplitterReturn>, useSplitterContext: () => UseSplitterReturn;
|
package/splitter/splitter.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const Splitter: ForwardRefExoticComponent<Omit<Omit<Omit<Detailed
|
|
|
11
11
|
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
12
12
|
} & {
|
|
13
13
|
asChild?: boolean | undefined;
|
|
14
|
-
}, "ref">, "children" | "getRootNode" | "id" | "ids" | "
|
|
14
|
+
}, "ref">, "children" | "getRootNode" | "id" | "ids" | "dir" | "onResize" | "size" | "orientation" | "onResizeStart" | "onResizeEnd" | "defaultSize"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
|
|
15
15
|
defaultSize?: {
|
|
16
16
|
id: string | number;
|
|
17
17
|
size?: number | undefined;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { HTMLAttributes, CSSProperties } from 'react';
|
|
2
|
-
/// <reference types="react" />
|
|
3
1
|
import * as splitter from '@zag-js/splitter';
|
|
4
2
|
import { type Optional } from '../types';
|
|
5
3
|
export type UseSplitterProps = Optional<splitter.Context, 'id'> & {
|
|
6
4
|
defaultSize?: splitter.Context['size'];
|
|
7
5
|
};
|
|
8
|
-
export type UseSplitterReturn =
|
|
9
|
-
export declare const useSplitter: (props: UseSplitterProps) =>
|
|
10
|
-
element: HTMLAttributes<HTMLElement>;
|
|
11
|
-
style: CSSProperties;
|
|
12
|
-
}>;
|
|
6
|
+
export type UseSplitterReturn = splitter.Api;
|
|
7
|
+
export declare const useSplitter: (props: UseSplitterProps) => UseSplitterReturn;
|
package/switch/index.cjs
CHANGED
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
6
6
|
const _switch = require('./switch.cjs');
|
|
7
7
|
const switchContext = require('./switch-context.cjs');
|
|
8
8
|
const switchControl = require('./switch-control.cjs');
|
|
9
|
-
const switchInput = require('./switch-input.cjs');
|
|
10
9
|
const switchLabel = require('./switch-label.cjs');
|
|
11
10
|
const switchThumb = require('./switch-thumb.cjs');
|
|
12
11
|
const zagSwitch = require('@zag-js/switch');
|
|
@@ -14,14 +13,12 @@ const zagSwitch = require('@zag-js/switch');
|
|
|
14
13
|
const Switch = Object.assign(_switch.Switch, {
|
|
15
14
|
Root: _switch.Switch,
|
|
16
15
|
Control: switchControl.SwitchControl,
|
|
17
|
-
Input: switchInput.SwitchInput,
|
|
18
16
|
Label: switchLabel.SwitchLabel,
|
|
19
17
|
Thumb: switchThumb.SwitchThumb
|
|
20
18
|
});
|
|
21
19
|
|
|
22
20
|
exports.useSwitchContext = switchContext.useSwitchContext;
|
|
23
21
|
exports.SwitchControl = switchControl.SwitchControl;
|
|
24
|
-
exports.SwitchInput = switchInput.SwitchInput;
|
|
25
22
|
exports.SwitchLabel = switchLabel.SwitchLabel;
|
|
26
23
|
exports.SwitchThumb = switchThumb.SwitchThumb;
|
|
27
24
|
Object.defineProperty(exports, 'switchAnatomy', {
|