@ark-ui/solid 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -2
- package/accordion/accordion-context.d.ts +4 -21
- package/accordion/index.cjs +4 -0
- package/accordion/index.d.ts +2 -0
- package/accordion/index.mjs +2 -0
- package/accordion/use-accordion.d.ts +3 -11
- package/avatar/avatar-context.d.ts +4 -20
- package/avatar/index.cjs +2 -0
- package/avatar/index.d.ts +1 -0
- package/avatar/index.mjs +1 -0
- package/avatar/use-avatar.d.ts +3 -11
- package/carousel/carousel-context.d.ts +4 -59
- package/carousel/carousel-indicator-group.cjs +16 -0
- package/carousel/carousel-indicator-group.d.ts +4 -0
- package/carousel/carousel-indicator-group.mjs +12 -0
- package/carousel/carousel-indicator.cjs +18 -0
- package/carousel/carousel-indicator.d.ts +6 -0
- package/carousel/carousel-indicator.mjs +14 -0
- package/carousel/carousel-slide.d.ts +1 -1
- package/carousel/index.cjs +6 -0
- package/carousel/index.d.ts +3 -0
- package/carousel/index.mjs +3 -0
- package/carousel/use-carousel.d.ts +3 -31
- package/checkbox/checkbox-context.d.ts +4 -27
- package/checkbox/index.cjs +2 -0
- package/checkbox/index.d.ts +2 -1
- package/checkbox/index.mjs +1 -0
- package/checkbox/use-checkbox.d.ts +3 -15
- package/color-picker/color-picker-context.d.ts +4 -42
- package/color-picker/index.cjs +6 -0
- package/color-picker/index.d.ts +3 -0
- package/color-picker/index.mjs +3 -0
- package/color-picker/use-color-picker.d.ts +3 -22
- package/combobox/combobox-clear-trigger.cjs +16 -0
- package/combobox/combobox-clear-trigger.d.ts +4 -0
- package/combobox/combobox-clear-trigger.mjs +12 -0
- package/combobox/combobox-context.d.ts +4 -55
- package/combobox/combobox-option-group.cjs +16 -0
- package/combobox/combobox-option-group.d.ts +6 -0
- package/combobox/combobox-option-group.mjs +12 -0
- package/combobox/index.cjs +6 -0
- package/combobox/index.d.ts +3 -0
- package/combobox/index.mjs +3 -0
- package/combobox/use-combobox.d.ts +3 -28
- package/date-picker/date-picker-context.d.ts +4 -254
- package/date-picker/date-picker-grid.d.ts +1 -1
- package/date-picker/date-picker-view-trigger.d.ts +1 -1
- package/date-picker/index.cjs +6 -0
- package/date-picker/index.d.ts +3 -0
- package/date-picker/index.mjs +3 -0
- package/date-picker/use-date-picker.d.ts +3 -128
- package/dialog/dialog-context.d.ts +4 -24
- package/dialog/index.cjs +2 -0
- package/dialog/index.d.ts +1 -0
- package/dialog/index.mjs +1 -0
- package/dialog/use-dialog.d.ts +3 -13
- package/editable/editable-context.d.ts +4 -38
- package/editable/index.cjs +2 -0
- package/editable/index.d.ts +1 -0
- package/editable/index.mjs +1 -0
- package/editable/use-editable.d.ts +3 -20
- package/hover-card/hover-card-context.d.ts +4 -23
- package/hover-card/index.cjs +2 -0
- package/hover-card/index.d.ts +1 -0
- package/hover-card/index.mjs +1 -0
- package/hover-card/use-hover-card.d.ts +3 -12
- package/index.cjs +72 -0
- package/index.mjs +36 -0
- package/menu/index.cjs +2 -0
- package/menu/index.d.ts +1 -0
- package/menu/index.mjs +1 -0
- package/number-input/index.cjs +2 -0
- package/number-input/index.d.ts +1 -0
- package/number-input/index.mjs +1 -0
- package/number-input/number-input-context.d.ts +4 -44
- package/number-input/use-number-input.d.ts +3 -23
- package/package.json +48 -48
- package/pagination/index.cjs +2 -0
- package/pagination/index.d.ts +1 -0
- package/pagination/index.mjs +1 -0
- package/pagination/pagination-context.d.ts +4 -45
- package/pagination/pagination-ellipsis.d.ts +1 -1
- package/pagination/use-pagination.d.ts +3 -24
- package/pin-input/index.cjs +2 -0
- package/pin-input/index.d.ts +1 -0
- package/pin-input/index.mjs +1 -0
- package/pin-input/pin-input-context.d.ts +4 -32
- package/pin-input/use-pin-input.d.ts +3 -17
- package/popover/index.cjs +2 -0
- package/popover/index.d.ts +1 -0
- package/popover/index.mjs +1 -0
- package/popover/popover-context.d.ts +4 -33
- package/popover/use-popover.d.ts +3 -17
- package/pressable/use-pressable.d.ts +3 -5
- package/radio-group/index.cjs +4 -0
- package/radio-group/index.d.ts +2 -0
- package/radio-group/index.mjs +2 -0
- package/radio-group/radio-context.d.ts +11 -2
- package/radio-group/radio-group-context.d.ts +4 -49
- package/radio-group/use-radio-group.d.ts +3 -26
- package/range-slider/index.cjs +2 -0
- package/range-slider/index.d.ts +1 -0
- package/range-slider/index.mjs +1 -0
- package/range-slider/range-slider-context.d.ts +4 -58
- package/range-slider/use-range-slider.d.ts +3 -30
- package/rating-group/index.cjs +4 -0
- package/rating-group/index.d.ts +2 -0
- package/rating-group/index.mjs +2 -0
- package/rating-group/rating-group-context.d.ts +4 -31
- package/rating-group/use-rating-group.d.ts +3 -16
- package/segment-group/index.cjs +4 -0
- package/segment-group/index.d.ts +2 -0
- package/segment-group/index.mjs +2 -0
- package/segment-group/segment-context.d.ts +11 -2
- package/segment-group/segment-group-context.d.ts +4 -49
- package/segment-group/use-segment-group.d.ts +3 -26
- package/select/index.cjs +2 -0
- package/select/index.d.ts +1 -0
- package/select/index.mjs +1 -0
- package/select/select-context.d.ts +4 -50
- package/select/use-select.d.ts +3 -26
- package/slider/index.cjs +2 -0
- package/slider/index.d.ts +1 -0
- package/slider/index.mjs +1 -0
- package/slider/slider-context.d.ts +4 -48
- package/slider/use-slider.d.ts +3 -25
- package/splitter/index.cjs +2 -0
- package/splitter/index.d.ts +1 -0
- package/splitter/index.mjs +1 -0
- package/splitter/splitter-context.d.ts +4 -46
- package/splitter/use-splitter.d.ts +4 -25
- package/switch/index.cjs +2 -0
- package/switch/index.d.ts +1 -0
- package/switch/index.mjs +1 -0
- package/switch/switch-context.d.ts +4 -24
- package/switch/use-switch.d.ts +3 -13
- package/tabs/index.cjs +2 -0
- package/tabs/index.d.ts +1 -0
- package/tabs/index.mjs +1 -0
- package/tabs/tabs-context.d.ts +4 -29
- package/tabs/use-tabs.d.ts +3 -15
- package/tags-input/index.cjs +2 -0
- package/tags-input/index.d.ts +1 -0
- package/tags-input/index.mjs +1 -0
- package/tags-input/tags-input-context.d.ts +4 -49
- package/tags-input/use-tags-input.d.ts +3 -26
- package/toast/index.cjs +2 -0
- package/toast/index.d.ts +1 -0
- package/toast/index.mjs +1 -0
- package/toast/toast-item-context.d.ts +4 -35
- package/toast/use-toast-item.d.ts +3 -18
- package/tooltip/index.cjs +2 -0
- package/tooltip/index.d.ts +1 -0
- package/tooltip/index.mjs +1 -0
- package/tooltip/tooltip-context.d.ts +4 -33
- package/tooltip/use-tooltip.d.ts +3 -17
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
CHANGED
|
@@ -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>>;
|
package/splitter/index.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const splitter = require('./splitter.cjs');
|
|
6
|
+
const splitterContext = require('./splitter-context.cjs');
|
|
6
7
|
const splitterPanel = require('./splitter-panel.cjs');
|
|
7
8
|
const splitterResizeTrigger = require('./splitter-resize-trigger.cjs');
|
|
8
9
|
const splitter$1 = require('@zag-js/splitter');
|
|
@@ -10,6 +11,7 @@ const splitter$1 = require('@zag-js/splitter');
|
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
exports.Splitter = splitter.Splitter;
|
|
14
|
+
exports.useSplitterContext = splitterContext.useSplitterContext;
|
|
13
15
|
exports.SplitterPanel = splitterPanel.SplitterPanel;
|
|
14
16
|
exports.SplitterResizeTrigger = splitterResizeTrigger.SplitterResizeTrigger;
|
|
15
17
|
Object.defineProperty(exports, 'splitterAnatomy', {
|
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';
|
package/splitter/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Splitter } from './splitter.mjs';
|
|
2
|
+
export { useSplitterContext } from './splitter-context.mjs';
|
|
2
3
|
export { SplitterPanel } from './splitter-panel.mjs';
|
|
3
4
|
export { SplitterResizeTrigger } from './splitter-resize-trigger.mjs';
|
|
4
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/switch/index.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const _switch = require('./switch.cjs');
|
|
6
|
+
const switchContext = require('./switch-context.cjs');
|
|
6
7
|
const switchControl = require('./switch-control.cjs');
|
|
7
8
|
const switchInput = require('./switch-input.cjs');
|
|
8
9
|
const switchLabel = require('./switch-label.cjs');
|
|
@@ -12,6 +13,7 @@ const zagSwitch = require('@zag-js/switch');
|
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
exports.Switch = _switch.Switch;
|
|
16
|
+
exports.useSwitchContext = switchContext.useSwitchContext;
|
|
15
17
|
exports.SwitchControl = switchControl.SwitchControl;
|
|
16
18
|
exports.SwitchInput = switchInput.SwitchInput;
|
|
17
19
|
exports.SwitchLabel = switchLabel.SwitchLabel;
|
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
CHANGED
|
@@ -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
CHANGED
|
@@ -7,6 +7,7 @@ const tabIndicator = require('./tab-indicator.cjs');
|
|
|
7
7
|
const tabList = require('./tab-list.cjs');
|
|
8
8
|
const tabTrigger = require('./tab-trigger.cjs');
|
|
9
9
|
const tabs = require('./tabs.cjs');
|
|
10
|
+
const tabsContext = require('./tabs-context.cjs');
|
|
10
11
|
const tabs$1 = require('@zag-js/tabs');
|
|
11
12
|
|
|
12
13
|
|
|
@@ -16,6 +17,7 @@ exports.TabIndicator = tabIndicator.TabIndicator;
|
|
|
16
17
|
exports.TabList = tabList.TabList;
|
|
17
18
|
exports.TabTrigger = tabTrigger.TabTrigger;
|
|
18
19
|
exports.Tabs = tabs.Tabs;
|
|
20
|
+
exports.useTabsContext = tabsContext.useTabsContext;
|
|
19
21
|
Object.defineProperty(exports, 'tabsAnatomy', {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: () => tabs$1.anatomy
|
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
CHANGED
|
@@ -3,4 +3,5 @@ export { TabIndicator } from './tab-indicator.mjs';
|
|
|
3
3
|
export { TabList } from './tab-list.mjs';
|
|
4
4
|
export { TabTrigger } from './tab-trigger.mjs';
|
|
5
5
|
export { Tabs } from './tabs.mjs';
|
|
6
|
+
export { useTabsContext } from './tabs-context.mjs';
|
|
6
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>>;
|
package/tags-input/index.cjs
CHANGED
|
@@ -7,6 +7,7 @@ const tagDeleteTrigger = require('./tag-delete-trigger.cjs');
|
|
|
7
7
|
const tagInput = require('./tag-input.cjs');
|
|
8
8
|
const tagsInput = require('./tags-input.cjs');
|
|
9
9
|
const tagsInputClearTrigger = require('./tags-input-clear-trigger.cjs');
|
|
10
|
+
const tagsInputContext = require('./tags-input-context.cjs');
|
|
10
11
|
const tagsInputControl = require('./tags-input-control.cjs');
|
|
11
12
|
const tagsInputField = require('./tags-input-field.cjs');
|
|
12
13
|
const tagsInputLabel = require('./tags-input-label.cjs');
|
|
@@ -19,6 +20,7 @@ exports.TagDeleteTrigger = tagDeleteTrigger.TagDeleteTrigger;
|
|
|
19
20
|
exports.TagInput = tagInput.TagInput;
|
|
20
21
|
exports.TagsInput = tagsInput.TagsInput;
|
|
21
22
|
exports.TagsInputClearTrigger = tagsInputClearTrigger.TagsInputClearTrigger;
|
|
23
|
+
exports.useTagsInputContext = tagsInputContext.useTagsInputContext;
|
|
22
24
|
exports.TagsInputControl = tagsInputControl.TagsInputControl;
|
|
23
25
|
exports.TagsInputField = tagsInputField.TagsInputField;
|
|
24
26
|
exports.TagsInputLabel = tagsInputLabel.TagsInputLabel;
|
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';
|
package/tags-input/index.mjs
CHANGED
|
@@ -3,6 +3,7 @@ export { TagDeleteTrigger } from './tag-delete-trigger.mjs';
|
|
|
3
3
|
export { TagInput } from './tag-input.mjs';
|
|
4
4
|
export { TagsInput } from './tags-input.mjs';
|
|
5
5
|
export { TagsInputClearTrigger } from './tags-input-clear-trigger.mjs';
|
|
6
|
+
export { useTagsInputContext } from './tags-input-context.mjs';
|
|
6
7
|
export { TagsInputControl } from './tags-input-control.mjs';
|
|
7
8
|
export { TagsInputField } from './tags-input-field.mjs';
|
|
8
9
|
export { TagsInputLabel } from './tags-input-label.mjs';
|
|
@@ -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
CHANGED
|
@@ -6,6 +6,7 @@ const toast = require('./toast.cjs');
|
|
|
6
6
|
const toastCloseTrigger = require('./toast-close-trigger.cjs');
|
|
7
7
|
const toastDescription = require('./toast-description.cjs');
|
|
8
8
|
const toastGroup = require('./toast-group.cjs');
|
|
9
|
+
const toastItemContext = require('./toast-item-context.cjs');
|
|
9
10
|
const toastPlacements = require('./toast-placements.cjs');
|
|
10
11
|
const toastProvider = require('./toast-provider.cjs');
|
|
11
12
|
const toastTitle = require('./toast-title.cjs');
|
|
@@ -17,6 +18,7 @@ exports.Toast = toast.Toast;
|
|
|
17
18
|
exports.ToastCloseTrigger = toastCloseTrigger.ToastCloseTrigger;
|
|
18
19
|
exports.ToastDescription = toastDescription.ToastDescription;
|
|
19
20
|
exports.ToastGroup = toastGroup.ToastGroup;
|
|
21
|
+
exports.useToastItemContext = toastItemContext.useToastItemContext;
|
|
20
22
|
exports.ToastPlacements = toastPlacements.ToastPlacements;
|
|
21
23
|
exports.ToastProvider = toastProvider.ToastProvider;
|
|
22
24
|
exports.useToast = toastProvider.useToast;
|
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
CHANGED
|
@@ -2,6 +2,7 @@ export { Toast } from './toast.mjs';
|
|
|
2
2
|
export { ToastCloseTrigger } from './toast-close-trigger.mjs';
|
|
3
3
|
export { ToastDescription } from './toast-description.mjs';
|
|
4
4
|
export { ToastGroup } from './toast-group.mjs';
|
|
5
|
+
export { useToastItemContext } from './toast-item-context.mjs';
|
|
5
6
|
export { ToastPlacements } from './toast-placements.mjs';
|
|
6
7
|
export { ToastProvider, useToast } from './toast-provider.mjs';
|
|
7
8
|
export { ToastTitle } from './toast-title.mjs';
|
|
@@ -1,38 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { PublicApi } from '@zag-js/toast';
|
|
3
|
+
import type { Accessor } from 'solid-js';
|
|
3
4
|
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
4
5
|
import { type UseToastItemReturn } from './use-toast-item';
|
|
5
6
|
export type ToastItemContext = UseToastItemReturn;
|
|
6
|
-
export declare const ToastItemProvider: ContextProviderComponent<Accessor<
|
|
7
|
-
type: Type;
|
|
8
|
-
title: string | undefined;
|
|
9
|
-
description: string | undefined;
|
|
10
|
-
placement: Placement;
|
|
11
|
-
isVisible: boolean;
|
|
12
|
-
isPaused: boolean;
|
|
13
|
-
isRtl: boolean;
|
|
14
|
-
pause(): void;
|
|
15
|
-
resume(): void;
|
|
16
|
-
dismiss(): void;
|
|
17
|
-
render(): any;
|
|
18
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
19
|
-
titleProps: JSX.HTMLAttributes<any>;
|
|
20
|
-
descriptionProps: JSX.HTMLAttributes<any>;
|
|
21
|
-
closeTriggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
22
|
-
}>>, useToastItemContext: () => Accessor<{
|
|
23
|
-
type: Type;
|
|
24
|
-
title: string | undefined;
|
|
25
|
-
description: string | undefined;
|
|
26
|
-
placement: Placement;
|
|
27
|
-
isVisible: boolean;
|
|
28
|
-
isPaused: boolean;
|
|
29
|
-
isRtl: boolean;
|
|
30
|
-
pause(): void;
|
|
31
|
-
resume(): void;
|
|
32
|
-
dismiss(): void;
|
|
33
|
-
render(): any;
|
|
34
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
35
|
-
titleProps: JSX.HTMLAttributes<any>;
|
|
36
|
-
descriptionProps: JSX.HTMLAttributes<any>;
|
|
37
|
-
closeTriggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
38
|
-
}>;
|
|
7
|
+
export declare const ToastItemProvider: ContextProviderComponent<Accessor<PublicApi<PropTypes>>>, useToastItemContext: () => Accessor<PublicApi<PropTypes>>;
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { Accessor } from 'solid-js';
|
|
2
3
|
import * as toast from '@zag-js/toast';
|
|
3
4
|
export type UseToastItemProps = {
|
|
4
5
|
toast: toast.Service;
|
|
5
6
|
};
|
|
6
7
|
export type UseToastItemReturn = ReturnType<typeof useToastItem>;
|
|
7
|
-
export declare const useToastItem: (props: UseToastItemProps) => Accessor<
|
|
8
|
-
type: toast.Type;
|
|
9
|
-
title: string | undefined;
|
|
10
|
-
description: string | undefined;
|
|
11
|
-
placement: toast.Placement;
|
|
12
|
-
isVisible: boolean;
|
|
13
|
-
isPaused: boolean;
|
|
14
|
-
isRtl: boolean;
|
|
15
|
-
pause(): void;
|
|
16
|
-
resume(): void;
|
|
17
|
-
dismiss(): void;
|
|
18
|
-
render(): any;
|
|
19
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
20
|
-
titleProps: JSX.HTMLAttributes<any>;
|
|
21
|
-
descriptionProps: JSX.HTMLAttributes<any>;
|
|
22
|
-
closeTriggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
23
|
-
}>;
|
|
8
|
+
export declare const useToastItem: (props: UseToastItemProps) => Accessor<toast.PublicApi<PropTypes>>;
|