@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,51 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { PublicApi } from '@zag-js/slider';
|
|
3
|
+
import type { Accessor } from 'solid-js';
|
|
2
4
|
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
3
5
|
import { type UseSliderReturn } from './use-slider';
|
|
4
6
|
export type SliderContext = UseSliderReturn;
|
|
5
|
-
export declare const SliderProvider: ContextProviderComponent<Accessor<
|
|
6
|
-
isFocused: boolean;
|
|
7
|
-
isDragging: boolean;
|
|
8
|
-
value: number;
|
|
9
|
-
percent: number;
|
|
10
|
-
setValue(value: number): void;
|
|
11
|
-
getPercentValue: (percent: number) => number;
|
|
12
|
-
getValuePercent: (value: number) => number;
|
|
13
|
-
focus(): void;
|
|
14
|
-
increment(): void;
|
|
15
|
-
decrement(): void;
|
|
16
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
17
|
-
labelProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
18
|
-
thumbProps: JSX.HTMLAttributes<any>;
|
|
19
|
-
hiddenInputProps: JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
20
|
-
outputProps: JSX.OutputHTMLAttributes<HTMLElement>;
|
|
21
|
-
trackProps: JSX.HTMLAttributes<any>;
|
|
22
|
-
rangeProps: JSX.HTMLAttributes<any>;
|
|
23
|
-
controlProps: JSX.HTMLAttributes<any>;
|
|
24
|
-
markerGroupProps: JSX.HTMLAttributes<any>;
|
|
25
|
-
getMarkerProps({ value }: {
|
|
26
|
-
value: number;
|
|
27
|
-
}): JSX.HTMLAttributes<any>;
|
|
28
|
-
}>>, useSliderContext: () => Accessor<{
|
|
29
|
-
isFocused: boolean;
|
|
30
|
-
isDragging: boolean;
|
|
31
|
-
value: number;
|
|
32
|
-
percent: number;
|
|
33
|
-
setValue(value: number): void;
|
|
34
|
-
getPercentValue: (percent: number) => number;
|
|
35
|
-
getValuePercent: (value: number) => number;
|
|
36
|
-
focus(): void;
|
|
37
|
-
increment(): void;
|
|
38
|
-
decrement(): void;
|
|
39
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
40
|
-
labelProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
41
|
-
thumbProps: JSX.HTMLAttributes<any>;
|
|
42
|
-
hiddenInputProps: JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
43
|
-
outputProps: JSX.OutputHTMLAttributes<HTMLElement>;
|
|
44
|
-
trackProps: JSX.HTMLAttributes<any>;
|
|
45
|
-
rangeProps: JSX.HTMLAttributes<any>;
|
|
46
|
-
controlProps: JSX.HTMLAttributes<any>;
|
|
47
|
-
markerGroupProps: JSX.HTMLAttributes<any>;
|
|
48
|
-
getMarkerProps({ value }: {
|
|
49
|
-
value: number;
|
|
50
|
-
}): JSX.HTMLAttributes<any>;
|
|
51
|
-
}>;
|
|
7
|
+
export declare const SliderProvider: ContextProviderComponent<Accessor<PublicApi<PropTypes>>>, useSliderContext: () => Accessor<PublicApi<PropTypes>>;
|
package/slider/use-slider.d.ts
CHANGED
|
@@ -1,29 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { Accessor } from 'solid-js';
|
|
2
3
|
import * as slider from '@zag-js/slider';
|
|
3
4
|
import { type Optional } from '../types';
|
|
4
5
|
export type UseSliderProps = Optional<slider.Context, 'id'>;
|
|
5
6
|
export type UseSliderReturn = ReturnType<typeof useSlider>;
|
|
6
|
-
export declare const useSlider: (props: UseSliderProps) => Accessor<
|
|
7
|
-
isFocused: boolean;
|
|
8
|
-
isDragging: boolean;
|
|
9
|
-
value: number;
|
|
10
|
-
percent: number;
|
|
11
|
-
setValue(value: number): void;
|
|
12
|
-
getPercentValue: (percent: number) => number;
|
|
13
|
-
getValuePercent: (value: number) => number;
|
|
14
|
-
focus(): void;
|
|
15
|
-
increment(): void;
|
|
16
|
-
decrement(): void;
|
|
17
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
18
|
-
labelProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
19
|
-
thumbProps: JSX.HTMLAttributes<any>;
|
|
20
|
-
hiddenInputProps: JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
21
|
-
outputProps: JSX.OutputHTMLAttributes<HTMLElement>;
|
|
22
|
-
trackProps: JSX.HTMLAttributes<any>;
|
|
23
|
-
rangeProps: JSX.HTMLAttributes<any>;
|
|
24
|
-
controlProps: JSX.HTMLAttributes<any>;
|
|
25
|
-
markerGroupProps: JSX.HTMLAttributes<any>;
|
|
26
|
-
getMarkerProps({ value }: {
|
|
27
|
-
value: number;
|
|
28
|
-
}): JSX.HTMLAttributes<any>;
|
|
29
|
-
}>;
|
|
7
|
+
export declare const useSlider: (props: UseSliderProps) => Accessor<slider.PublicApi<PropTypes>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const splitter = require('./splitter.cjs');
|
|
6
|
+
const splitterContext = require('./splitter-context.cjs');
|
|
7
|
+
const splitterPanel = require('./splitter-panel.cjs');
|
|
8
|
+
const splitterResizeTrigger = require('./splitter-resize-trigger.cjs');
|
|
9
|
+
const splitter$1 = require('@zag-js/splitter');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.Splitter = splitter.Splitter;
|
|
14
|
+
exports.useSplitterContext = splitterContext.useSplitterContext;
|
|
15
|
+
exports.SplitterPanel = splitterPanel.SplitterPanel;
|
|
16
|
+
exports.SplitterResizeTrigger = splitterResizeTrigger.SplitterResizeTrigger;
|
|
17
|
+
Object.defineProperty(exports, 'splitterAnatomy', {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: () => splitter$1.anatomy
|
|
20
|
+
});
|
package/splitter/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Splitter, type SplitterProps } from './splitter';
|
|
2
|
+
export { useSplitterContext } from './splitter-context';
|
|
2
3
|
export { SplitterPanel, type SplitterPanelProps } from './splitter-panel';
|
|
3
4
|
export { SplitterResizeTrigger, type SplitterResizeTriggerProps } from './splitter-resize-trigger';
|
|
4
5
|
export { splitterAnatomy } from './splitter.anatomy';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Splitter } from './splitter.mjs';
|
|
2
|
+
export { useSplitterContext } from './splitter-context.mjs';
|
|
3
|
+
export { SplitterPanel } from './splitter-panel.mjs';
|
|
4
|
+
export { SplitterResizeTrigger } from './splitter-resize-trigger.mjs';
|
|
5
|
+
export { anatomy as splitterAnatomy } from '@zag-js/splitter';
|
|
@@ -1,49 +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/splitter';
|
|
3
|
+
import type { Accessor } from 'solid-js';
|
|
4
4
|
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
5
5
|
import { type UseSplitterReturn } from './use-splitter';
|
|
6
6
|
export type SplitterContext = UseSplitterReturn;
|
|
7
|
-
export declare const SplitterProvider: ContextProviderComponent<Accessor<
|
|
8
|
-
isFocused: boolean;
|
|
9
|
-
isDragging: boolean;
|
|
10
|
-
bounds: {
|
|
11
|
-
min: number;
|
|
12
|
-
max: number;
|
|
13
|
-
} | undefined;
|
|
14
|
-
setToMinSize(id: PanelId): void;
|
|
15
|
-
setToMaxSize(id: PanelId): void;
|
|
16
|
-
setSize(id: PanelId, size: number): void;
|
|
17
|
-
getResizeTriggerState(props: ResizeTriggerProps): {
|
|
18
|
-
isDisabled: boolean;
|
|
19
|
-
isFocused: boolean;
|
|
20
|
-
panelIds: string[];
|
|
21
|
-
min: number | undefined;
|
|
22
|
-
max: number | undefined;
|
|
23
|
-
value: number;
|
|
24
|
-
};
|
|
25
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
26
|
-
getPanelProps(props: PanelProps): JSX.HTMLAttributes<any>;
|
|
27
|
-
getResizeTriggerProps(props: ResizeTriggerProps): JSX.HTMLAttributes<any>;
|
|
28
|
-
}>>, useSplitterContext: () => Accessor<{
|
|
29
|
-
isFocused: boolean;
|
|
30
|
-
isDragging: boolean;
|
|
31
|
-
bounds: {
|
|
32
|
-
min: number;
|
|
33
|
-
max: number;
|
|
34
|
-
} | undefined;
|
|
35
|
-
setToMinSize(id: PanelId): void;
|
|
36
|
-
setToMaxSize(id: PanelId): void;
|
|
37
|
-
setSize(id: PanelId, size: number): void;
|
|
38
|
-
getResizeTriggerState(props: ResizeTriggerProps): {
|
|
39
|
-
isDisabled: boolean;
|
|
40
|
-
isFocused: boolean;
|
|
41
|
-
panelIds: string[];
|
|
42
|
-
min: number | undefined;
|
|
43
|
-
max: number | undefined;
|
|
44
|
-
value: number;
|
|
45
|
-
};
|
|
46
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
47
|
-
getPanelProps(props: PanelProps): JSX.HTMLAttributes<any>;
|
|
48
|
-
getResizeTriggerProps(props: ResizeTriggerProps): JSX.HTMLAttributes<any>;
|
|
49
|
-
}>;
|
|
7
|
+
export declare const SplitterProvider: ContextProviderComponent<Accessor<PublicApi<PropTypes>>>, useSplitterContext: () => Accessor<PublicApi<PropTypes>>;
|
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Accessor
|
|
3
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { Accessor } from 'solid-js';
|
|
3
|
+
import type { PublicApi, type Context } from '@zag-js/splitter';
|
|
4
4
|
import { type Optional } from '../types';
|
|
5
5
|
export type UseSplitterProps = Optional<Context, 'id'>;
|
|
6
6
|
export type UseSplitterReturn = ReturnType<typeof useSplitter>;
|
|
7
|
-
export declare const useSplitter: (props: UseSplitterProps) => Accessor<
|
|
8
|
-
isFocused: boolean;
|
|
9
|
-
isDragging: boolean;
|
|
10
|
-
bounds: {
|
|
11
|
-
min: number;
|
|
12
|
-
max: number;
|
|
13
|
-
} | undefined;
|
|
14
|
-
setToMinSize(id: PanelId): void;
|
|
15
|
-
setToMaxSize(id: PanelId): void;
|
|
16
|
-
setSize(id: PanelId, size: number): void;
|
|
17
|
-
getResizeTriggerState(props: ResizeTriggerProps): {
|
|
18
|
-
isDisabled: boolean;
|
|
19
|
-
isFocused: boolean;
|
|
20
|
-
panelIds: string[];
|
|
21
|
-
min: number | undefined;
|
|
22
|
-
max: number | undefined;
|
|
23
|
-
value: number;
|
|
24
|
-
};
|
|
25
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
26
|
-
getPanelProps(props: PanelProps): JSX.HTMLAttributes<any>;
|
|
27
|
-
getResizeTriggerProps(props: ResizeTriggerProps): JSX.HTMLAttributes<any>;
|
|
28
|
-
}>;
|
|
7
|
+
export declare const useSplitter: (props: UseSplitterProps) => Accessor<PublicApi<PropTypes>>;
|
package/ssr-spread.cjs
CHANGED
package/ssr-spread.mjs
CHANGED
package/switch/index.cjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const _switch = require('./switch.cjs');
|
|
6
|
+
const switchContext = require('./switch-context.cjs');
|
|
7
|
+
const switchControl = require('./switch-control.cjs');
|
|
8
|
+
const switchInput = require('./switch-input.cjs');
|
|
9
|
+
const switchLabel = require('./switch-label.cjs');
|
|
10
|
+
const switchThumb = require('./switch-thumb.cjs');
|
|
11
|
+
const zagSwitch = require('@zag-js/switch');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
exports.Switch = _switch.Switch;
|
|
16
|
+
exports.useSwitchContext = switchContext.useSwitchContext;
|
|
17
|
+
exports.SwitchControl = switchControl.SwitchControl;
|
|
18
|
+
exports.SwitchInput = switchInput.SwitchInput;
|
|
19
|
+
exports.SwitchLabel = switchLabel.SwitchLabel;
|
|
20
|
+
exports.SwitchThumb = switchThumb.SwitchThumb;
|
|
21
|
+
Object.defineProperty(exports, 'switchAnatomy', {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: () => zagSwitch.anatomy
|
|
24
|
+
});
|
package/switch/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Switch, type SwitchProps } from './switch';
|
|
2
|
+
export { useSwitchContext } from './switch-context';
|
|
2
3
|
export { SwitchControl, type SwitchControlProps } from './switch-control';
|
|
3
4
|
export { SwitchInput, type SwitchInputProps } from './switch-input';
|
|
4
5
|
export { SwitchLabel, type SwitchLabelProps } from './switch-label';
|
package/switch/index.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Switch } from './switch.mjs';
|
|
2
|
+
export { useSwitchContext } from './switch-context.mjs';
|
|
3
|
+
export { SwitchControl } from './switch-control.mjs';
|
|
4
|
+
export { SwitchInput } from './switch-input.mjs';
|
|
5
|
+
export { SwitchLabel } from './switch-label.mjs';
|
|
6
|
+
export { SwitchThumb } from './switch-thumb.mjs';
|
|
7
|
+
export { anatomy as switchAnatomy } from '@zag-js/switch';
|
|
@@ -1,27 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { PublicApi } from '@zag-js/switch';
|
|
3
|
+
import type { Accessor } from 'solid-js';
|
|
2
4
|
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
3
5
|
import { type UseSwitchReturn } from './use-switch';
|
|
4
6
|
export type SwitchContext = UseSwitchReturn;
|
|
5
|
-
export declare const SwitchProvider: ContextProviderComponent<Accessor<
|
|
6
|
-
isChecked: boolean;
|
|
7
|
-
isDisabled: boolean | undefined;
|
|
8
|
-
isFocused: boolean | undefined;
|
|
9
|
-
setChecked(checked: boolean): void;
|
|
10
|
-
toggleChecked(): void;
|
|
11
|
-
rootProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
12
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
13
|
-
thumbProps: JSX.HTMLAttributes<any>;
|
|
14
|
-
controlProps: JSX.HTMLAttributes<any>;
|
|
15
|
-
inputProps: JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
16
|
-
}>>, useSwitchContext: () => Accessor<{
|
|
17
|
-
isChecked: boolean;
|
|
18
|
-
isDisabled: boolean | undefined;
|
|
19
|
-
isFocused: boolean | undefined;
|
|
20
|
-
setChecked(checked: boolean): void;
|
|
21
|
-
toggleChecked(): void;
|
|
22
|
-
rootProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
23
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
24
|
-
thumbProps: JSX.HTMLAttributes<any>;
|
|
25
|
-
controlProps: JSX.HTMLAttributes<any>;
|
|
26
|
-
inputProps: JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
27
|
-
}>;
|
|
7
|
+
export declare const SwitchProvider: ContextProviderComponent<Accessor<PublicApi<PropTypes>>>, useSwitchContext: () => Accessor<PublicApi<PropTypes>>;
|
package/switch/use-switch.d.ts
CHANGED
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { Accessor } from 'solid-js';
|
|
2
3
|
import * as zagSwitch from '@zag-js/switch';
|
|
3
4
|
import { type Optional } from '../types';
|
|
4
5
|
export type UseSwitchProps = Optional<zagSwitch.Context, 'id'>;
|
|
5
6
|
export type UseSwitchReturn = ReturnType<typeof useSwitch>;
|
|
6
|
-
export declare const useSwitch: (props: UseSwitchProps) => Accessor<
|
|
7
|
-
isChecked: boolean;
|
|
8
|
-
isDisabled: boolean | undefined;
|
|
9
|
-
isFocused: boolean | undefined;
|
|
10
|
-
setChecked(checked: boolean): void;
|
|
11
|
-
toggleChecked(): void;
|
|
12
|
-
rootProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
13
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
14
|
-
thumbProps: JSX.HTMLAttributes<any>;
|
|
15
|
-
controlProps: JSX.HTMLAttributes<any>;
|
|
16
|
-
inputProps: JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
17
|
-
}>;
|
|
7
|
+
export declare const useSwitch: (props: UseSwitchProps) => Accessor<zagSwitch.PublicApi<PropTypes>>;
|
package/tabs/index.cjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const tabContent = require('./tab-content.cjs');
|
|
6
|
+
const tabIndicator = require('./tab-indicator.cjs');
|
|
7
|
+
const tabList = require('./tab-list.cjs');
|
|
8
|
+
const tabTrigger = require('./tab-trigger.cjs');
|
|
9
|
+
const tabs = require('./tabs.cjs');
|
|
10
|
+
const tabsContext = require('./tabs-context.cjs');
|
|
11
|
+
const tabs$1 = require('@zag-js/tabs');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
exports.TabContent = tabContent.TabContent;
|
|
16
|
+
exports.TabIndicator = tabIndicator.TabIndicator;
|
|
17
|
+
exports.TabList = tabList.TabList;
|
|
18
|
+
exports.TabTrigger = tabTrigger.TabTrigger;
|
|
19
|
+
exports.Tabs = tabs.Tabs;
|
|
20
|
+
exports.useTabsContext = tabsContext.useTabsContext;
|
|
21
|
+
Object.defineProperty(exports, 'tabsAnatomy', {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: () => tabs$1.anatomy
|
|
24
|
+
});
|
package/tabs/index.d.ts
CHANGED
|
@@ -3,4 +3,5 @@ export { TabIndicator, type TabIndicatorProps } from './tab-indicator';
|
|
|
3
3
|
export { TabList, type TabListProps } from './tab-list';
|
|
4
4
|
export { TabTrigger, type TabTriggerProps } from './tab-trigger';
|
|
5
5
|
export { Tabs, type TabsProps } from './tabs';
|
|
6
|
+
export { useTabsContext } from './tabs-context';
|
|
6
7
|
export { tabsAnatomy } from './tabs.anatomy';
|
package/tabs/index.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { TabContent } from './tab-content.mjs';
|
|
2
|
+
export { TabIndicator } from './tab-indicator.mjs';
|
|
3
|
+
export { TabList } from './tab-list.mjs';
|
|
4
|
+
export { TabTrigger } from './tab-trigger.mjs';
|
|
5
|
+
export { Tabs } from './tabs.mjs';
|
|
6
|
+
export { useTabsContext } from './tabs-context.mjs';
|
|
7
|
+
export { anatomy as tabsAnatomy } from '@zag-js/tabs';
|
package/tabs/tabs-context.d.ts
CHANGED
|
@@ -1,32 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { PublicApi } from '@zag-js/tabs';
|
|
3
|
+
import type { Accessor } from 'solid-js';
|
|
3
4
|
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
4
5
|
import { type UseTabsReturn } from './use-tabs';
|
|
5
6
|
export type TabsContext = UseTabsReturn;
|
|
6
|
-
export declare const TabsProvider: ContextProviderComponent<Accessor<
|
|
7
|
-
value: string | null;
|
|
8
|
-
focusedValue: string | null;
|
|
9
|
-
previousValues: string[];
|
|
10
|
-
setValue(value: string): void;
|
|
11
|
-
clearValue(): void;
|
|
12
|
-
setIndicatorRect(id: string | null | undefined): void;
|
|
13
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
14
|
-
tablistProps: JSX.HTMLAttributes<any>;
|
|
15
|
-
getTriggerProps(props: TriggerProps): JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
16
|
-
contentGroupProps: JSX.HTMLAttributes<any>;
|
|
17
|
-
getContentProps({ value }: ContentProps): JSX.HTMLAttributes<any>;
|
|
18
|
-
indicatorProps: JSX.HTMLAttributes<any>;
|
|
19
|
-
}>>, useTabsContext: () => Accessor<{
|
|
20
|
-
value: string | null;
|
|
21
|
-
focusedValue: string | null;
|
|
22
|
-
previousValues: string[];
|
|
23
|
-
setValue(value: string): void;
|
|
24
|
-
clearValue(): void;
|
|
25
|
-
setIndicatorRect(id: string | null | undefined): void;
|
|
26
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
27
|
-
tablistProps: JSX.HTMLAttributes<any>;
|
|
28
|
-
getTriggerProps(props: TriggerProps): JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
29
|
-
contentGroupProps: JSX.HTMLAttributes<any>;
|
|
30
|
-
getContentProps({ value }: ContentProps): JSX.HTMLAttributes<any>;
|
|
31
|
-
indicatorProps: JSX.HTMLAttributes<any>;
|
|
32
|
-
}>;
|
|
7
|
+
export declare const TabsProvider: ContextProviderComponent<Accessor<PublicApi<PropTypes>>>, useTabsContext: () => Accessor<PublicApi<PropTypes>>;
|
package/tabs/use-tabs.d.ts
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { Accessor } from 'solid-js';
|
|
2
3
|
import * as tabs from '@zag-js/tabs';
|
|
3
4
|
import { type Optional } from '../types';
|
|
4
5
|
export type UseTabsProps = Optional<tabs.Context, 'id'>;
|
|
5
6
|
export type UseTabsReturn = ReturnType<typeof useTabs>;
|
|
6
|
-
export declare const useTabs: (props: UseTabsProps) => Accessor<
|
|
7
|
-
value: string | null;
|
|
8
|
-
focusedValue: string | null;
|
|
9
|
-
previousValues: string[];
|
|
10
|
-
setValue(value: string): void;
|
|
11
|
-
clearValue(): void;
|
|
12
|
-
setIndicatorRect(id: string | null | undefined): void;
|
|
13
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
14
|
-
tablistProps: JSX.HTMLAttributes<any>;
|
|
15
|
-
getTriggerProps(props: tabs.TriggerProps): JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
16
|
-
contentGroupProps: JSX.HTMLAttributes<any>;
|
|
17
|
-
getContentProps({ value }: tabs.ContentProps): JSX.HTMLAttributes<any>;
|
|
18
|
-
indicatorProps: JSX.HTMLAttributes<any>;
|
|
19
|
-
}>;
|
|
7
|
+
export declare const useTabs: (props: UseTabsProps) => Accessor<tabs.PublicApi<PropTypes>>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const tag = require('./tag.cjs');
|
|
6
|
+
const tagDeleteTrigger = require('./tag-delete-trigger.cjs');
|
|
7
|
+
const tagInput = require('./tag-input.cjs');
|
|
8
|
+
const tagsInput = require('./tags-input.cjs');
|
|
9
|
+
const tagsInputClearTrigger = require('./tags-input-clear-trigger.cjs');
|
|
10
|
+
const tagsInputContext = require('./tags-input-context.cjs');
|
|
11
|
+
const tagsInputControl = require('./tags-input-control.cjs');
|
|
12
|
+
const tagsInputField = require('./tags-input-field.cjs');
|
|
13
|
+
const tagsInputLabel = require('./tags-input-label.cjs');
|
|
14
|
+
const tagsInput$1 = require('@zag-js/tags-input');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.Tag = tag.Tag;
|
|
19
|
+
exports.TagDeleteTrigger = tagDeleteTrigger.TagDeleteTrigger;
|
|
20
|
+
exports.TagInput = tagInput.TagInput;
|
|
21
|
+
exports.TagsInput = tagsInput.TagsInput;
|
|
22
|
+
exports.TagsInputClearTrigger = tagsInputClearTrigger.TagsInputClearTrigger;
|
|
23
|
+
exports.useTagsInputContext = tagsInputContext.useTagsInputContext;
|
|
24
|
+
exports.TagsInputControl = tagsInputControl.TagsInputControl;
|
|
25
|
+
exports.TagsInputField = tagsInputField.TagsInputField;
|
|
26
|
+
exports.TagsInputLabel = tagsInputLabel.TagsInputLabel;
|
|
27
|
+
Object.defineProperty(exports, 'tagsInputAnatomy', {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: () => tagsInput$1.anatomy
|
|
30
|
+
});
|
package/tags-input/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { TagDeleteTrigger, type TagDeleteTriggerProps } from './tag-delete-trigg
|
|
|
3
3
|
export { TagInput, type TagInputProps } from './tag-input';
|
|
4
4
|
export { TagsInput, type TagsInputProps } from './tags-input';
|
|
5
5
|
export { TagsInputClearTrigger, type TagsInputClearTriggerProps } from './tags-input-clear-trigger';
|
|
6
|
+
export { useTagsInputContext } from './tags-input-context';
|
|
6
7
|
export { TagsInputControl, type TagsInputControlProps } from './tags-input-control';
|
|
7
8
|
export { TagsInputField, type TagsInputFieldProps } from './tags-input-field';
|
|
8
9
|
export { TagsInputLabel, type TagsInputLabelProps } from './tags-input-label';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { Tag } from './tag.mjs';
|
|
2
|
+
export { TagDeleteTrigger } from './tag-delete-trigger.mjs';
|
|
3
|
+
export { TagInput } from './tag-input.mjs';
|
|
4
|
+
export { TagsInput } from './tags-input.mjs';
|
|
5
|
+
export { TagsInputClearTrigger } from './tags-input-clear-trigger.mjs';
|
|
6
|
+
export { useTagsInputContext } from './tags-input-context.mjs';
|
|
7
|
+
export { TagsInputControl } from './tags-input-control.mjs';
|
|
8
|
+
export { TagsInputField } from './tags-input-field.mjs';
|
|
9
|
+
export { TagsInputLabel } from './tags-input-label.mjs';
|
|
10
|
+
export { anatomy as tagsInputAnatomy } from '@zag-js/tags-input';
|
|
@@ -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/tags-input';
|
|
3
|
+
import type { Accessor } from 'solid-js';
|
|
3
4
|
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
4
5
|
import { type UseTagsInputReturn } from './use-tags-input';
|
|
5
6
|
export type TagsInputContext = UseTagsInputReturn;
|
|
6
|
-
export declare const TagsInputProvider: ContextProviderComponent<Accessor<
|
|
7
|
-
isEmpty: boolean;
|
|
8
|
-
inputValue: string;
|
|
9
|
-
value: string[];
|
|
10
|
-
valueAsString: string;
|
|
11
|
-
count: number;
|
|
12
|
-
isAtMax: boolean;
|
|
13
|
-
setValue(value: string[]): void;
|
|
14
|
-
clearValue(id?: string | undefined): void;
|
|
15
|
-
addValue(value: string): void;
|
|
16
|
-
setValueAtIndex(index: number, value: string): void;
|
|
17
|
-
setInputValue(value: string): void;
|
|
18
|
-
clearInputValue(): void;
|
|
19
|
-
focus(): void;
|
|
20
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
21
|
-
labelProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
22
|
-
controlProps: JSX.HTMLAttributes<any>;
|
|
23
|
-
inputProps: JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
24
|
-
hiddenInputProps: JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
25
|
-
getTagProps(options: TagProps): JSX.HTMLAttributes<any>;
|
|
26
|
-
getTagInputProps(options: TagProps): JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
27
|
-
getTagDeleteTriggerProps(options: TagProps): JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
28
|
-
clearTriggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
29
|
-
}>>, useTagsInputContext: () => Accessor<{
|
|
30
|
-
isEmpty: boolean;
|
|
31
|
-
inputValue: string;
|
|
32
|
-
value: string[];
|
|
33
|
-
valueAsString: string;
|
|
34
|
-
count: number;
|
|
35
|
-
isAtMax: boolean;
|
|
36
|
-
setValue(value: string[]): void;
|
|
37
|
-
clearValue(id?: string | undefined): void;
|
|
38
|
-
addValue(value: string): void;
|
|
39
|
-
setValueAtIndex(index: number, value: string): void;
|
|
40
|
-
setInputValue(value: string): void;
|
|
41
|
-
clearInputValue(): void;
|
|
42
|
-
focus(): void;
|
|
43
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
44
|
-
labelProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
45
|
-
controlProps: JSX.HTMLAttributes<any>;
|
|
46
|
-
inputProps: JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
47
|
-
hiddenInputProps: JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
48
|
-
getTagProps(options: TagProps): JSX.HTMLAttributes<any>;
|
|
49
|
-
getTagInputProps(options: TagProps): JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
50
|
-
getTagDeleteTriggerProps(options: TagProps): JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
51
|
-
clearTriggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
52
|
-
}>;
|
|
7
|
+
export declare const TagsInputProvider: ContextProviderComponent<Accessor<PublicApi<PropTypes>>>, useTagsInputContext: () => 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 tagsInput from '@zag-js/tags-input';
|
|
4
4
|
import { type Optional } from '../types';
|
|
5
5
|
export type UseTagsInputProps = Optional<tagsInput.Context, 'id'>;
|
|
6
6
|
export type UseTagsInputReturn = ReturnType<typeof useTagsInput>;
|
|
7
|
-
export declare const useTagsInput: (props: UseTagsInputProps) => Accessor<
|
|
8
|
-
isEmpty: boolean;
|
|
9
|
-
inputValue: string;
|
|
10
|
-
value: string[];
|
|
11
|
-
valueAsString: string;
|
|
12
|
-
count: number;
|
|
13
|
-
isAtMax: boolean;
|
|
14
|
-
setValue(value: string[]): void;
|
|
15
|
-
clearValue(id?: string | undefined): void;
|
|
16
|
-
addValue(value: string): void;
|
|
17
|
-
setValueAtIndex(index: number, value: string): void;
|
|
18
|
-
setInputValue(value: string): void;
|
|
19
|
-
clearInputValue(): void;
|
|
20
|
-
focus(): void;
|
|
21
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
22
|
-
labelProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
23
|
-
controlProps: JSX.HTMLAttributes<any>;
|
|
24
|
-
inputProps: JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
25
|
-
hiddenInputProps: JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
26
|
-
getTagProps(options: TagProps): JSX.HTMLAttributes<any>;
|
|
27
|
-
getTagInputProps(options: TagProps): JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
28
|
-
getTagDeleteTriggerProps(options: TagProps): JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
29
|
-
clearTriggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
30
|
-
}>;
|
|
7
|
+
export declare const useTagsInput: (props: UseTagsInputProps) => Accessor<tagsInput.PublicApi<PropTypes>>;
|
package/toast/index.cjs
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const toast = require('./toast.cjs');
|
|
6
|
+
const toastCloseTrigger = require('./toast-close-trigger.cjs');
|
|
7
|
+
const toastDescription = require('./toast-description.cjs');
|
|
8
|
+
const toastGroup = require('./toast-group.cjs');
|
|
9
|
+
const toastItemContext = require('./toast-item-context.cjs');
|
|
10
|
+
const toastPlacements = require('./toast-placements.cjs');
|
|
11
|
+
const toastProvider = require('./toast-provider.cjs');
|
|
12
|
+
const toastTitle = require('./toast-title.cjs');
|
|
13
|
+
const toast$1 = require('@zag-js/toast');
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
exports.Toast = toast.Toast;
|
|
18
|
+
exports.ToastCloseTrigger = toastCloseTrigger.ToastCloseTrigger;
|
|
19
|
+
exports.ToastDescription = toastDescription.ToastDescription;
|
|
20
|
+
exports.ToastGroup = toastGroup.ToastGroup;
|
|
21
|
+
exports.useToastItemContext = toastItemContext.useToastItemContext;
|
|
22
|
+
exports.ToastPlacements = toastPlacements.ToastPlacements;
|
|
23
|
+
exports.ToastProvider = toastProvider.ToastProvider;
|
|
24
|
+
exports.useToast = toastProvider.useToast;
|
|
25
|
+
exports.ToastTitle = toastTitle.ToastTitle;
|
|
26
|
+
Object.defineProperty(exports, 'toastAnatomy', {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: () => toast$1.anatomy
|
|
29
|
+
});
|
package/toast/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { Toast, type ToastProps } from './toast';
|
|
|
2
2
|
export { ToastCloseTrigger, type ToastCloseTriggerProps } from './toast-close-trigger';
|
|
3
3
|
export { ToastDescription, type ToastDescriptionProps } from './toast-description';
|
|
4
4
|
export { ToastGroup, type ToastGroupProps } from './toast-group';
|
|
5
|
+
export { useToastItemContext } from './toast-item-context';
|
|
5
6
|
export { ToastPlacements, type ToastPlacementsProps } from './toast-placements';
|
|
6
7
|
export { ToastProvider, useToast, type ToastProviderProps } from './toast-provider';
|
|
7
8
|
export { ToastTitle, type ToastTitleProps } from './toast-title';
|
package/toast/index.mjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { Toast } from './toast.mjs';
|
|
2
|
+
export { ToastCloseTrigger } from './toast-close-trigger.mjs';
|
|
3
|
+
export { ToastDescription } from './toast-description.mjs';
|
|
4
|
+
export { ToastGroup } from './toast-group.mjs';
|
|
5
|
+
export { useToastItemContext } from './toast-item-context.mjs';
|
|
6
|
+
export { ToastPlacements } from './toast-placements.mjs';
|
|
7
|
+
export { ToastProvider, useToast } from './toast-provider.mjs';
|
|
8
|
+
export { ToastTitle } from './toast-title.mjs';
|
|
9
|
+
export { anatomy as toastAnatomy } from '@zag-js/toast';
|