@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/tooltip/index.cjs
CHANGED
|
@@ -6,6 +6,7 @@ const tooltip = require('./tooltip.cjs');
|
|
|
6
6
|
const tooltipArrow = require('./tooltip-arrow.cjs');
|
|
7
7
|
const tooltipArrowTip = require('./tooltip-arrow-tip.cjs');
|
|
8
8
|
const tooltipContent = require('./tooltip-content.cjs');
|
|
9
|
+
const tooltipContext = require('./tooltip-context.cjs');
|
|
9
10
|
const tooltipPositioner = require('./tooltip-positioner.cjs');
|
|
10
11
|
const tooltipTrigger = require('./tooltip-trigger.cjs');
|
|
11
12
|
const pagination = require('@zag-js/pagination');
|
|
@@ -16,6 +17,7 @@ exports.Tooltip = tooltip.Tooltip;
|
|
|
16
17
|
exports.TooltipArrow = tooltipArrow.TooltipArrow;
|
|
17
18
|
exports.TooltipArrowTip = tooltipArrowTip.TooltipArrowTip;
|
|
18
19
|
exports.TooltipContent = tooltipContent.TooltipContent;
|
|
20
|
+
exports.useTooltipContext = tooltipContext.useTooltipContext;
|
|
19
21
|
exports.TooltipPositioner = tooltipPositioner.TooltipPositioner;
|
|
20
22
|
exports.TooltipTrigger = tooltipTrigger.TooltipTrigger;
|
|
21
23
|
Object.defineProperty(exports, 'tooltipAnatomy', {
|
package/tooltip/index.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export { tooltipAnatomy } from './tooltip-anatomy';
|
|
|
3
3
|
export { TooltipArrow, type TooltipArrowProps } from './tooltip-arrow';
|
|
4
4
|
export { TooltipArrowTip, type TooltipArrowTipProps } from './tooltip-arrow-tip';
|
|
5
5
|
export { TooltipContent, type TooltipContentProps } from './tooltip-content';
|
|
6
|
+
export { useTooltipContext } from './tooltip-context';
|
|
6
7
|
export { TooltipPositioner, type TooltipPositionerProps } from './tooltip-positioner';
|
|
7
8
|
export { TooltipTrigger, type TooltipTriggerProps } from './tooltip-trigger';
|
package/tooltip/index.mjs
CHANGED
|
@@ -2,6 +2,7 @@ export { Tooltip } from './tooltip.mjs';
|
|
|
2
2
|
export { TooltipArrow } from './tooltip-arrow.mjs';
|
|
3
3
|
export { TooltipArrowTip } from './tooltip-arrow-tip.mjs';
|
|
4
4
|
export { TooltipContent } from './tooltip-content.mjs';
|
|
5
|
+
export { useTooltipContext } from './tooltip-context.mjs';
|
|
5
6
|
export { TooltipPositioner } from './tooltip-positioner.mjs';
|
|
6
7
|
export { TooltipTrigger } from './tooltip-trigger.mjs';
|
|
7
8
|
export { anatomy as tooltipAnatomy } from '@zag-js/pagination';
|
|
@@ -1,36 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { PublicApi } from '@zag-js/tooltip';
|
|
3
|
+
import type { Accessor } from 'solid-js';
|
|
3
4
|
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
4
5
|
import { type UseTooltipReturn } from './use-tooltip';
|
|
5
6
|
export type TooltipContext = UseTooltipReturn;
|
|
6
|
-
export declare const TooltipProvider: ContextProviderComponent<Accessor<
|
|
7
|
-
isOpen: boolean;
|
|
8
|
-
open(): void;
|
|
9
|
-
close(): void;
|
|
10
|
-
getAnimationState(): {
|
|
11
|
-
enter: boolean;
|
|
12
|
-
exit: boolean;
|
|
13
|
-
};
|
|
14
|
-
setPositioning(options?: Partial<PositioningOptions> | undefined): void;
|
|
15
|
-
triggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
16
|
-
arrowProps: JSX.HTMLAttributes<any>;
|
|
17
|
-
arrowTipProps: JSX.HTMLAttributes<any>;
|
|
18
|
-
positionerProps: JSX.HTMLAttributes<any>;
|
|
19
|
-
contentProps: JSX.HTMLAttributes<any>;
|
|
20
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
21
|
-
}>>, useTooltipContext: () => Accessor<{
|
|
22
|
-
isOpen: boolean;
|
|
23
|
-
open(): void;
|
|
24
|
-
close(): void;
|
|
25
|
-
getAnimationState(): {
|
|
26
|
-
enter: boolean;
|
|
27
|
-
exit: boolean;
|
|
28
|
-
};
|
|
29
|
-
setPositioning(options?: Partial<PositioningOptions> | undefined): void;
|
|
30
|
-
triggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
31
|
-
arrowProps: JSX.HTMLAttributes<any>;
|
|
32
|
-
arrowTipProps: JSX.HTMLAttributes<any>;
|
|
33
|
-
positionerProps: JSX.HTMLAttributes<any>;
|
|
34
|
-
contentProps: JSX.HTMLAttributes<any>;
|
|
35
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
36
|
-
}>;
|
|
7
|
+
export declare const TooltipProvider: ContextProviderComponent<Accessor<PublicApi<PropTypes>>>, useTooltipContext: () => Accessor<PublicApi<PropTypes>>;
|
package/tooltip/use-tooltip.d.ts
CHANGED
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
+
import type { Accessor } from 'solid-js';
|
|
2
3
|
import * as tooltip from '@zag-js/tooltip';
|
|
3
4
|
import { type Optional } from '../types';
|
|
4
5
|
export type UseTooltipProps = Optional<tooltip.Context, 'id'>;
|
|
5
6
|
export type UseTooltipReturn = ReturnType<typeof useTooltip>;
|
|
6
|
-
export declare const useTooltip: (props: UseTooltipProps) => Accessor<
|
|
7
|
-
isOpen: boolean;
|
|
8
|
-
open(): void;
|
|
9
|
-
close(): void;
|
|
10
|
-
getAnimationState(): {
|
|
11
|
-
enter: boolean;
|
|
12
|
-
exit: boolean;
|
|
13
|
-
};
|
|
14
|
-
setPositioning(options?: Partial<tooltip.PositioningOptions> | undefined): void;
|
|
15
|
-
triggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
16
|
-
arrowProps: JSX.HTMLAttributes<any>;
|
|
17
|
-
arrowTipProps: JSX.HTMLAttributes<any>;
|
|
18
|
-
positionerProps: JSX.HTMLAttributes<any>;
|
|
19
|
-
contentProps: JSX.HTMLAttributes<any>;
|
|
20
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
21
|
-
}>;
|
|
7
|
+
export declare const useTooltip: (props: UseTooltipProps) => Accessor<tooltip.PublicApi<PropTypes>>;
|