@ark-ui/solid 3.0.0-3 → 3.0.0-5
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/dist/cjs/index.js +289 -210
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +291 -212
- package/dist/esm/index.js.map +1 -1
- package/dist/source/components/accordion/accordion-item-content.jsx +7 -2
- package/dist/source/components/accordion/accordion-root.jsx +1 -0
- package/dist/source/components/accordion/use-accordion.js +12 -3
- package/dist/source/components/avatar/use-avatar.js +9 -3
- package/dist/source/components/carousel/carousel-root.jsx +1 -0
- package/dist/source/components/carousel/use-carousel.js +10 -3
- package/dist/source/components/checkbox/checkbox-root.jsx +1 -0
- package/dist/source/components/checkbox/use-checkbox.js +10 -3
- package/dist/source/components/clipboard/use-clipboard.js +8 -3
- package/dist/source/components/collapsible/collapsible-root.jsx +1 -0
- package/dist/source/components/collapsible/use-collapsible.js +8 -5
- package/dist/source/components/color-picker/color-picker-root.jsx +2 -0
- package/dist/source/components/color-picker/use-color-picker.js +14 -8
- package/dist/source/components/combobox/combobox-root.jsx +4 -2
- package/dist/source/components/combobox/combobox-trigger.jsx +3 -1
- package/dist/source/components/combobox/use-combobox.js +11 -7
- package/dist/source/components/date-picker/date-picker-root.jsx +2 -0
- package/dist/source/components/date-picker/use-date-picker.js +17 -11
- package/dist/source/components/dialog/dialog-root.jsx +2 -0
- package/dist/source/components/dialog/use-dialog.js +8 -5
- package/dist/source/components/editable/editable-root.jsx +1 -0
- package/dist/source/components/editable/use-editable.js +10 -3
- package/dist/source/components/file-upload/use-file-upload.js +9 -3
- package/dist/source/components/hover-card/hover-card-root.jsx +1 -0
- package/dist/source/components/hover-card/use-hover-card.js +8 -5
- package/dist/source/components/menu/menu-root.jsx +2 -0
- package/dist/source/components/menu/use-menu.js +8 -5
- package/dist/source/components/number-input/number-input-root.jsx +1 -0
- package/dist/source/components/number-input/use-number-input.js +10 -3
- package/dist/source/components/pagination/pagination-root.jsx +1 -0
- package/dist/source/components/pagination/use-pagination.js +10 -3
- package/dist/source/components/pin-input/pin-input-root.jsx +1 -0
- package/dist/source/components/pin-input/use-pin-input.js +10 -3
- package/dist/source/components/popover/popover-root.jsx +3 -1
- package/dist/source/components/popover/use-popover.js +8 -5
- package/dist/source/components/progress/use-progress.js +9 -3
- package/dist/source/components/radio-group/radio-group-root.jsx +1 -0
- package/dist/source/components/radio-group/use-radio-group.js +10 -3
- package/dist/source/components/rating-group/rating-group-root.jsx +1 -0
- package/dist/source/components/rating-group/use-rating-group.js +10 -3
- package/dist/source/components/segment-group/segment-group-root.jsx +1 -0
- package/dist/source/components/segment-group/use-segment-group.js +12 -5
- package/dist/source/components/select/select-item.jsx +1 -1
- package/dist/source/components/select/select-root.jsx +3 -0
- package/dist/source/components/select/use-select.js +11 -7
- package/dist/source/components/slider/slider-root.jsx +1 -0
- package/dist/source/components/slider/use-slider.js +10 -3
- package/dist/source/components/splitter/splitter-root.jsx +1 -0
- package/dist/source/components/splitter/use-splitter.js +10 -3
- package/dist/source/components/switch/switch-root.jsx +1 -0
- package/dist/source/components/switch/use-switch.js +10 -3
- package/dist/source/components/tabs/tabs-root.jsx +2 -0
- package/dist/source/components/tabs/use-tabs.js +10 -3
- package/dist/source/components/tags-input/tags-input-root.jsx +1 -0
- package/dist/source/components/tags-input/use-tags-input.js +10 -3
- package/dist/source/components/toggle-group/toggle-group-root.jsx +1 -0
- package/dist/source/components/toggle-group/use-toggle-group.js +10 -3
- package/dist/source/components/tooltip/tooltip-root.jsx +2 -1
- package/dist/source/components/tooltip/use-tooltip.js +8 -5
- package/dist/source/components/tree-view/tree-view-root.jsx +3 -1
- package/dist/source/components/tree-view/use-tree-view.js +11 -3
- package/dist/source/providers/locale/locale-provider.jsx +5 -19
- package/dist/types/components/accordion/accordion-item.d.ts +1 -2
- package/dist/types/components/accordion/use-accordion.d.ts +5 -0
- package/dist/types/components/carousel/use-carousel.d.ts +5 -0
- package/dist/types/components/checkbox/use-checkbox.d.ts +5 -0
- package/dist/types/components/collapsible/use-collapsible.d.ts +5 -0
- package/dist/types/components/color-picker/use-color-picker.d.ts +10 -0
- package/dist/types/components/combobox/combobox-trigger.d.ts +3 -1
- package/dist/types/components/combobox/use-combobox.d.ts +10 -0
- package/dist/types/components/date-picker/use-date-picker.d.ts +14 -4
- package/dist/types/components/dialog/use-dialog.d.ts +5 -0
- package/dist/types/components/editable/use-editable.d.ts +5 -0
- package/dist/types/components/hover-card/use-hover-card.d.ts +5 -0
- package/dist/types/components/menu/use-menu.d.ts +5 -0
- package/dist/types/components/number-input/use-number-input.d.ts +5 -0
- package/dist/types/components/pagination/use-pagination.d.ts +5 -0
- package/dist/types/components/pin-input/use-pin-input.d.ts +5 -0
- package/dist/types/components/popover/use-popover.d.ts +5 -0
- package/dist/types/components/radio-group/use-radio-group.d.ts +5 -0
- package/dist/types/components/rating-group/use-rating-group.d.ts +5 -0
- package/dist/types/components/segment-group/use-segment-group.d.ts +8 -3
- package/dist/types/components/select/use-select.d.ts +10 -0
- package/dist/types/components/slider/use-slider.d.ts +5 -0
- package/dist/types/components/splitter/use-splitter.d.ts +5 -0
- package/dist/types/components/switch/use-switch.d.ts +5 -0
- package/dist/types/components/tabs/use-tabs.d.ts +5 -0
- package/dist/types/components/tags-input/use-tags-input.d.ts +5 -0
- package/dist/types/components/toggle-group/use-toggle-group.d.ts +5 -0
- package/dist/types/components/tooltip/use-tooltip.d.ts +5 -0
- package/dist/types/components/tree-view/use-tree-view.d.ts +10 -0
- package/dist/types/providers/locale/locale-provider.d.ts +3 -5
- package/package.json +46 -46
- /package/dist/source/providers/locale/{use-locale-context.jsx → use-locale-context.js} +0 -0
|
@@ -4,6 +4,16 @@ import { type PropTypes } from '@zag-js/solid';
|
|
|
4
4
|
import { type Accessor } from 'solid-js';
|
|
5
5
|
import type { CollectionItem, Optional } from '../../types';
|
|
6
6
|
export interface UseComboboxProps<T extends CollectionItem> extends CollectionOptions<T>, Optional<Omit<combobox.Context<T>, 'collection' | 'dir' | 'getRootNode' | 'open.controlled'>, 'id'> {
|
|
7
|
+
/**
|
|
8
|
+
* The initial open state of the combobox when it is first rendered.
|
|
9
|
+
* Use when you do not need to control its open state.
|
|
10
|
+
*/
|
|
11
|
+
defaultOpen?: combobox.Context['open'];
|
|
12
|
+
/**
|
|
13
|
+
* The initial value of the combobox when it is first rendered.
|
|
14
|
+
* Use when you do not need to control the state of the combobox.
|
|
15
|
+
*/
|
|
16
|
+
defaultValue?: combobox.Context<T>['value'];
|
|
7
17
|
}
|
|
8
18
|
export interface UseComboboxReturn<T extends CollectionItem> extends Accessor<combobox.Api<PropTypes, T>> {
|
|
9
19
|
}
|
|
@@ -3,22 +3,32 @@ import { type PropTypes } from '@zag-js/solid';
|
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
5
|
export interface UseDatePickerProps extends Optional<Omit<datePicker.Context, 'dir' | 'getRootNode' | 'value' | 'min' | 'max' | 'parse' | 'focusedValue' | 'open.controlled'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The initial open state of the date picker when it is first rendered.
|
|
8
|
+
* Use when you do not need to control its open state.
|
|
9
|
+
*/
|
|
10
|
+
defaultOpen?: datePicker.Context['open'];
|
|
11
|
+
/**
|
|
12
|
+
* The initial value of the date picker when it is first rendered.
|
|
13
|
+
* Use when you do not need to control the state of the date picker.
|
|
14
|
+
*/
|
|
15
|
+
defaultValue?: string[];
|
|
6
16
|
/**
|
|
7
17
|
* The focused date.
|
|
8
18
|
*/
|
|
9
19
|
focusedValue?: string;
|
|
10
20
|
/**
|
|
11
|
-
* The
|
|
21
|
+
* The maximum date for the date picker in the format yyyy-mm-dd
|
|
12
22
|
*/
|
|
13
|
-
|
|
23
|
+
max?: string;
|
|
14
24
|
/**
|
|
15
25
|
* The minimum date for the date picker in the format yyyy-mm-dd
|
|
16
26
|
*/
|
|
17
27
|
min?: string;
|
|
18
28
|
/**
|
|
19
|
-
* The
|
|
29
|
+
* The value of the date picker
|
|
20
30
|
*/
|
|
21
|
-
|
|
31
|
+
value?: string[];
|
|
22
32
|
}
|
|
23
33
|
export interface UseDatePickerReturn extends Accessor<datePicker.Api<PropTypes>> {
|
|
24
34
|
}
|
|
@@ -3,6 +3,11 @@ import { type PropTypes } from '@zag-js/solid';
|
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
5
|
export interface UseDialogProps extends Optional<Omit<dialog.Context, 'dir' | 'getRootNode' | 'open.controlled'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The initial open state of the dialog when it is first rendered.
|
|
8
|
+
* Use when you do not need to control its open state.
|
|
9
|
+
*/
|
|
10
|
+
defaultOpen?: dialog.Context['open'];
|
|
6
11
|
}
|
|
7
12
|
export interface UseDialogReturn extends Accessor<dialog.Api<PropTypes>> {
|
|
8
13
|
}
|
|
@@ -3,6 +3,11 @@ import { type PropTypes } from '@zag-js/solid';
|
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
5
|
export interface UseEditableProps extends Optional<Omit<editable.Context, 'dir' | 'getRootNode'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The initial value of the editable when it is first rendered.
|
|
8
|
+
* Use when you do not need to control the state of the editable.
|
|
9
|
+
*/
|
|
10
|
+
defaultValue?: editable.Context['value'];
|
|
6
11
|
}
|
|
7
12
|
export interface UseEditableReturn extends Accessor<editable.Api<PropTypes>> {
|
|
8
13
|
}
|
|
@@ -3,6 +3,11 @@ import { type PropTypes } from '@zag-js/solid';
|
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
5
|
export interface UseHoverCardProps extends Optional<Omit<hoverCard.Context, 'dir' | 'getRootNode' | 'open.controlled'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The initial open state of the hover card when it is first rendered.
|
|
8
|
+
* Use when you do not need to control its open state.
|
|
9
|
+
*/
|
|
10
|
+
defaultOpen?: hoverCard.Context['open'];
|
|
6
11
|
}
|
|
7
12
|
export interface UseHoverCardReturn extends Accessor<hoverCard.Api<PropTypes>> {
|
|
8
13
|
}
|
|
@@ -3,6 +3,11 @@ import { type PropTypes } from '@zag-js/solid';
|
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
5
|
export interface UseMenuProps extends Optional<Omit<menu.Context, 'dir' | 'getRootNode' | 'open.controlled'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The initial open state of the menu when it is first rendered.
|
|
8
|
+
* Use when you do not need to control its open state.
|
|
9
|
+
*/
|
|
10
|
+
defaultOpen?: menu.Context['open'];
|
|
6
11
|
}
|
|
7
12
|
export interface UseMenuReturn {
|
|
8
13
|
machine: menu.Service;
|
|
@@ -3,6 +3,11 @@ import { type PropTypes } from '@zag-js/solid';
|
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
5
|
export interface UseNumberInputProps extends Optional<Omit<numberInput.Context, 'dir' | 'getRootNode'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The initial value of the number input when it is first rendered.
|
|
8
|
+
* Use when you do not need to control the state of the number input.
|
|
9
|
+
*/
|
|
10
|
+
defaultValue?: numberInput.Context['value'];
|
|
6
11
|
}
|
|
7
12
|
export interface UseNumberInputReturn extends Accessor<numberInput.Api<PropTypes>> {
|
|
8
13
|
}
|
|
@@ -3,6 +3,11 @@ import { type PropTypes } from '@zag-js/solid';
|
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
5
|
export interface UsePaginationProps extends Optional<Omit<pagination.Context, 'dir' | 'getRootNode'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The initial page of the pagination when it is first rendered.
|
|
8
|
+
* Use when you do not need to control the state of the pagination.
|
|
9
|
+
*/
|
|
10
|
+
defaultPage?: pagination.Context['page'];
|
|
6
11
|
}
|
|
7
12
|
export interface UsePaginationReturn extends Accessor<pagination.Api<PropTypes>> {
|
|
8
13
|
}
|
|
@@ -3,6 +3,11 @@ import { type PropTypes } from '@zag-js/solid';
|
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
5
|
export interface UsePinInputProps extends Optional<Omit<pinInput.Context, 'dir' | 'getRootNode'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The initial value of the pin input when it is first rendered.
|
|
8
|
+
* Use when you do not need to control the state of the pin input
|
|
9
|
+
*/
|
|
10
|
+
defaultValue?: pinInput.Context['value'];
|
|
6
11
|
}
|
|
7
12
|
export interface UsePinInputReturn extends Accessor<pinInput.Api<PropTypes>> {
|
|
8
13
|
}
|
|
@@ -3,6 +3,11 @@ import { type PropTypes } from '@zag-js/solid';
|
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
5
|
export interface UsePopoverProps extends Optional<Omit<popover.Context, 'dir' | 'getRootNode' | 'open.controlled'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The initial open state of the popover when it is first rendered.
|
|
8
|
+
* Use when you do not need to control its open state.
|
|
9
|
+
*/
|
|
10
|
+
defaultOpen?: popover.Context['open'];
|
|
6
11
|
}
|
|
7
12
|
export interface UsePopoverReturn extends Accessor<popover.Api<PropTypes>> {
|
|
8
13
|
}
|
|
@@ -3,6 +3,11 @@ import { type PropTypes } from '@zag-js/solid';
|
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
5
|
export interface UseRadioGroupProps extends Optional<Omit<radio.Context, 'dir' | 'getRootNode'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The initial value of the radio group when it is first rendered.
|
|
8
|
+
* Use when you do not need to control the state of the radio group.
|
|
9
|
+
*/
|
|
10
|
+
defaultValue?: radio.Context['value'];
|
|
6
11
|
}
|
|
7
12
|
export interface UseRadioGroupReturn extends Accessor<radio.Api<PropTypes>> {
|
|
8
13
|
}
|
|
@@ -3,6 +3,11 @@ import { type PropTypes } from '@zag-js/solid';
|
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
5
|
export interface UseRatingGroupProps extends Optional<Omit<rating.Context, 'dir' | 'getRootNode'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The initial value of the rating group when it is first rendered.
|
|
8
|
+
* Use when you do not need to control the state of the rating group.
|
|
9
|
+
*/
|
|
10
|
+
defaultValue?: rating.Context['value'];
|
|
6
11
|
}
|
|
7
12
|
export interface UseRatingGroupReturn extends Accessor<rating.Api<PropTypes>> {
|
|
8
13
|
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as segmentGroup from '@zag-js/radio-group';
|
|
2
2
|
import { type PropTypes } from '@zag-js/solid';
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
|
-
export interface UseSegmentGroupProps extends Optional<Omit<
|
|
5
|
+
export interface UseSegmentGroupProps extends Optional<Omit<segmentGroup.Context, 'dir' | 'getRootNode'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The initial value of the segment group when it is first rendered.
|
|
8
|
+
* Use when you do not need to control the state of the segment group.
|
|
9
|
+
*/
|
|
10
|
+
defaultValue?: segmentGroup.Context['value'];
|
|
6
11
|
}
|
|
7
|
-
export interface UseSegmentGroupReturn extends Accessor<
|
|
12
|
+
export interface UseSegmentGroupReturn extends Accessor<segmentGroup.Api<PropTypes>> {
|
|
8
13
|
}
|
|
9
14
|
export declare const useSegmentGroup: (props: UseSegmentGroupProps) => UseSegmentGroupReturn;
|
|
@@ -4,6 +4,16 @@ import { type PropTypes } from '@zag-js/solid';
|
|
|
4
4
|
import { type Accessor } from 'solid-js';
|
|
5
5
|
import type { CollectionItem, Optional } from '../../types';
|
|
6
6
|
export interface UseSelectProps<T extends CollectionItem> extends CollectionOptions<T>, Optional<Omit<select.Context<T>, 'collection' | 'dir' | 'getRootNode' | 'open.controlled'>, 'id'> {
|
|
7
|
+
/**
|
|
8
|
+
* The initial open state of the select when it is first rendered.
|
|
9
|
+
* Use when you do not need to control its open state.
|
|
10
|
+
*/
|
|
11
|
+
defaultOpen?: select.Context['open'];
|
|
12
|
+
/**
|
|
13
|
+
* The initial value of the select when it is first rendered.
|
|
14
|
+
* Use when you do not need to control the state of the select.
|
|
15
|
+
*/
|
|
16
|
+
defaultValue?: select.Context<T>['value'];
|
|
7
17
|
}
|
|
8
18
|
export interface UseSelectReturn<T extends CollectionItem> extends Accessor<select.Api<PropTypes, T>> {
|
|
9
19
|
}
|
|
@@ -3,6 +3,11 @@ import { type PropTypes } from '@zag-js/solid';
|
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
5
|
export interface UseSliderProps extends Optional<Omit<slider.Context, 'dir' | 'getRootNode'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The initial value of the slider when it is first rendered.
|
|
8
|
+
* Use when you do not need to control the state of the slider picker.
|
|
9
|
+
*/
|
|
10
|
+
defaultValue?: slider.Context['value'];
|
|
6
11
|
}
|
|
7
12
|
export interface UseSliderReturn extends Accessor<slider.Api<PropTypes>> {
|
|
8
13
|
}
|
|
@@ -3,6 +3,11 @@ import * as splitter from '@zag-js/splitter';
|
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
5
|
export interface UseSplitterProps extends Optional<Omit<splitter.Context, 'dir' | 'getRootNode'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The initial size of the panels when it is first rendered.
|
|
8
|
+
* Use this when you do not need to control the state of the carousel.
|
|
9
|
+
*/
|
|
10
|
+
defaultSize?: splitter.Context['size'];
|
|
6
11
|
}
|
|
7
12
|
export interface UseSplitterReturn extends Accessor<splitter.Api<PropTypes>> {
|
|
8
13
|
}
|
|
@@ -3,6 +3,11 @@ import * as zagSwitch from '@zag-js/switch';
|
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
5
|
export interface UseSwitchProps extends Optional<Omit<zagSwitch.Context, 'dir' | 'getRootNode'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The checked state of the switch when it is first rendered.
|
|
8
|
+
* Use this when you do not need to control the state of the switch.
|
|
9
|
+
*/
|
|
10
|
+
defaultChecked?: zagSwitch.Context['checked'];
|
|
6
11
|
}
|
|
7
12
|
export interface UseSwitchReturn extends Accessor<zagSwitch.Api<PropTypes>> {
|
|
8
13
|
}
|
|
@@ -3,6 +3,11 @@ import * as tabs from '@zag-js/tabs';
|
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
5
|
export interface UseTabsProps extends Optional<Omit<tabs.Context, 'dir' | 'getRootNode'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The initial value of the tabs when it is first rendered.
|
|
8
|
+
* Use when you do not need to control the state of the tabs.
|
|
9
|
+
*/
|
|
10
|
+
defaultValue?: tabs.Context['value'];
|
|
6
11
|
}
|
|
7
12
|
export interface UseTabsReturn extends Accessor<tabs.Api<PropTypes>> {
|
|
8
13
|
}
|
|
@@ -3,6 +3,11 @@ import * as tagsInput from '@zag-js/tags-input';
|
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
5
|
export interface UseTagsInputProps extends Optional<Omit<tagsInput.Context, 'dir' | 'getRootNode'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The initial value of the tags input when it is first rendered.
|
|
8
|
+
* Use when you do not need to control the state of the tags input.
|
|
9
|
+
*/
|
|
10
|
+
defaultValue?: tagsInput.Context['value'];
|
|
6
11
|
}
|
|
7
12
|
export interface UseTagsInputReturn extends Accessor<tagsInput.Api<PropTypes>> {
|
|
8
13
|
}
|
|
@@ -3,6 +3,11 @@ import * as toggleGroup from '@zag-js/toggle-group';
|
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
5
|
export interface UseToggleGroupProps extends Optional<Omit<toggleGroup.Context, 'dir' | 'getRootNode'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The initial value of the toggle group when it is first rendered.
|
|
8
|
+
* Use when you do not need to control the state of the toggle group.
|
|
9
|
+
*/
|
|
10
|
+
defaultValue?: toggleGroup.Context['value'];
|
|
6
11
|
}
|
|
7
12
|
export interface UseToggleGroupReturn extends Accessor<toggleGroup.Api<PropTypes>> {
|
|
8
13
|
}
|
|
@@ -3,6 +3,11 @@ import * as tooltip from '@zag-js/tooltip';
|
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
5
|
export interface UseTooltipProps extends Optional<Omit<tooltip.Context, 'dir' | 'getRootNode' | 'open.controlled'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The initial open state of the tooltip when it is first rendered.
|
|
8
|
+
* Use when you do not need to control its open state.
|
|
9
|
+
*/
|
|
10
|
+
defaultOpen?: tooltip.Context['open'];
|
|
6
11
|
}
|
|
7
12
|
export interface UseTooltipReturn extends Accessor<tooltip.Api<PropTypes>> {
|
|
8
13
|
}
|
|
@@ -3,6 +3,16 @@ import * as treeView from '@zag-js/tree-view';
|
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import type { Optional } from '../../types';
|
|
5
5
|
export interface UseTreeViewProps extends Optional<Omit<treeView.Context, 'dir' | 'getRootNode'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The initial selected items of the tree view.
|
|
8
|
+
* Use this when you do not need to control the state of the tree view.
|
|
9
|
+
*/
|
|
10
|
+
defaultSelectedValue?: treeView.Context['selectedValue'];
|
|
11
|
+
/**
|
|
12
|
+
* The initial expanded items of the tree view.
|
|
13
|
+
* Use this when you do not need to control the state of the tree view.
|
|
14
|
+
*/
|
|
15
|
+
defaultExpandedValue?: treeView.Context['expandedValue'];
|
|
6
16
|
}
|
|
7
17
|
export interface UseTreeViewReturn extends Accessor<treeView.Api<PropTypes>> {
|
|
8
18
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { type LocaleOptions } from '@zag-js/i18n-utils';
|
|
2
1
|
import { type ParentProps } from 'solid-js';
|
|
3
|
-
export interface LocaleProviderProps extends
|
|
2
|
+
export interface LocaleProviderProps extends ParentProps {
|
|
4
3
|
/**
|
|
5
|
-
* The
|
|
6
|
-
* @default 'en-US'
|
|
4
|
+
* The locale to use. For example, 'en-US'.
|
|
7
5
|
*/
|
|
8
|
-
|
|
6
|
+
locale: string;
|
|
9
7
|
}
|
|
10
8
|
export declare const LocaleProvider: (props: LocaleProviderProps) => import("solid-js").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/solid",
|
|
3
|
-
"version": "3.0.0-
|
|
3
|
+
"version": "3.0.0-5",
|
|
4
4
|
"description": "A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accordion",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|
|
43
43
|
"url": "git+https://github.com/chakra-ui/ark.git",
|
|
44
|
-
"directory": "
|
|
44
|
+
"directory": "packages/solid"
|
|
45
45
|
},
|
|
46
46
|
"bugs": {
|
|
47
47
|
"url": "https://github.com/chakra-ui/ark/issues"
|
|
@@ -81,70 +81,70 @@
|
|
|
81
81
|
"sideEffects": false,
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@ark-ui/anatomy": "3.0.0",
|
|
84
|
-
"@zag-js/accordion": "0.
|
|
85
|
-
"@zag-js/avatar": "0.
|
|
86
|
-
"@zag-js/carousel": "0.
|
|
87
|
-
"@zag-js/checkbox": "0.
|
|
88
|
-
"@zag-js/clipboard": "0.
|
|
89
|
-
"@zag-js/collapsible": "0.
|
|
90
|
-
"@zag-js/color-picker": "0.
|
|
91
|
-
"@zag-js/combobox": "0.
|
|
92
|
-
"@zag-js/date-picker": "0.
|
|
93
|
-
"@zag-js/dialog": "0.
|
|
94
|
-
"@zag-js/dom-query": "0.
|
|
95
|
-
"@zag-js/editable": "0.
|
|
96
|
-
"@zag-js/file-upload": "0.
|
|
97
|
-
"@zag-js/hover-card": "0.
|
|
98
|
-
"@zag-js/file-utils": "0.
|
|
99
|
-
"@zag-js/i18n-utils": "0.
|
|
100
|
-
"@zag-js/menu": "0.
|
|
101
|
-
"@zag-js/number-input": "0.
|
|
102
|
-
"@zag-js/pagination": "0.
|
|
103
|
-
"@zag-js/pin-input": "0.
|
|
104
|
-
"@zag-js/popover": "0.
|
|
105
|
-
"@zag-js/presence": "0.
|
|
106
|
-
"@zag-js/progress": "0.
|
|
107
|
-
"@zag-js/radio-group": "0.
|
|
108
|
-
"@zag-js/rating-group": "0.
|
|
109
|
-
"@zag-js/select": "0.
|
|
110
|
-
"@zag-js/slider": "0.
|
|
111
|
-
"@zag-js/solid": "0.
|
|
112
|
-
"@zag-js/splitter": "0.
|
|
113
|
-
"@zag-js/switch": "0.
|
|
114
|
-
"@zag-js/tabs": "0.
|
|
115
|
-
"@zag-js/tags-input": "0.
|
|
116
|
-
"@zag-js/toast": "0.
|
|
117
|
-
"@zag-js/toggle-group": "0.
|
|
118
|
-
"@zag-js/tooltip": "0.
|
|
119
|
-
"@zag-js/tree-view": "0.
|
|
120
|
-
"@zag-js/types": "0.
|
|
84
|
+
"@zag-js/accordion": "0.50.0",
|
|
85
|
+
"@zag-js/avatar": "0.50.0",
|
|
86
|
+
"@zag-js/carousel": "0.50.0",
|
|
87
|
+
"@zag-js/checkbox": "0.50.0",
|
|
88
|
+
"@zag-js/clipboard": "0.50.0",
|
|
89
|
+
"@zag-js/collapsible": "0.50.0",
|
|
90
|
+
"@zag-js/color-picker": "0.50.0",
|
|
91
|
+
"@zag-js/combobox": "0.50.0",
|
|
92
|
+
"@zag-js/date-picker": "0.50.0",
|
|
93
|
+
"@zag-js/dialog": "0.50.0",
|
|
94
|
+
"@zag-js/dom-query": "0.50.0",
|
|
95
|
+
"@zag-js/editable": "0.50.0",
|
|
96
|
+
"@zag-js/file-upload": "0.50.0",
|
|
97
|
+
"@zag-js/hover-card": "0.50.0",
|
|
98
|
+
"@zag-js/file-utils": "0.50.0",
|
|
99
|
+
"@zag-js/i18n-utils": "0.50.0",
|
|
100
|
+
"@zag-js/menu": "0.50.0",
|
|
101
|
+
"@zag-js/number-input": "0.50.0",
|
|
102
|
+
"@zag-js/pagination": "0.50.0",
|
|
103
|
+
"@zag-js/pin-input": "0.50.0",
|
|
104
|
+
"@zag-js/popover": "0.50.0",
|
|
105
|
+
"@zag-js/presence": "0.50.0",
|
|
106
|
+
"@zag-js/progress": "0.50.0",
|
|
107
|
+
"@zag-js/radio-group": "0.50.0",
|
|
108
|
+
"@zag-js/rating-group": "0.50.0",
|
|
109
|
+
"@zag-js/select": "0.50.0",
|
|
110
|
+
"@zag-js/slider": "0.50.0",
|
|
111
|
+
"@zag-js/solid": "0.50.0",
|
|
112
|
+
"@zag-js/splitter": "0.50.0",
|
|
113
|
+
"@zag-js/switch": "0.50.0",
|
|
114
|
+
"@zag-js/tabs": "0.50.0",
|
|
115
|
+
"@zag-js/tags-input": "0.50.0",
|
|
116
|
+
"@zag-js/toast": "0.50.0",
|
|
117
|
+
"@zag-js/toggle-group": "0.50.0",
|
|
118
|
+
"@zag-js/tooltip": "0.50.0",
|
|
119
|
+
"@zag-js/tree-view": "0.50.0",
|
|
120
|
+
"@zag-js/types": "0.50.0"
|
|
121
121
|
},
|
|
122
122
|
"devDependencies": {
|
|
123
|
-
"@biomejs/biome": "1.7.
|
|
123
|
+
"@biomejs/biome": "1.7.3",
|
|
124
124
|
"@release-it/keep-a-changelog": "5.0.0",
|
|
125
125
|
"@solidjs/testing-library": "0.8.7",
|
|
126
|
-
"@storybook/addon-a11y": "8.
|
|
127
|
-
"@storybook/addon-essentials": "8.
|
|
126
|
+
"@storybook/addon-a11y": "8.1.1",
|
|
127
|
+
"@storybook/addon-essentials": "8.1.1",
|
|
128
128
|
"@testing-library/dom": "10.1.0",
|
|
129
|
-
"@testing-library/jest-dom": "6.4.
|
|
129
|
+
"@testing-library/jest-dom": "6.4.5",
|
|
130
130
|
"@testing-library/user-event": "14.5.2",
|
|
131
131
|
"@types/jsdom": "21.1.6",
|
|
132
132
|
"@types/testing-library__jest-dom": "5.14.9",
|
|
133
133
|
"globby": "14.0.1",
|
|
134
134
|
"jsdom": "24.0.0",
|
|
135
|
-
"lucide-solid": "0.
|
|
135
|
+
"lucide-solid": "0.378.0",
|
|
136
136
|
"release-it": "17.2.1",
|
|
137
137
|
"resize-observer-polyfill": "1.5.1",
|
|
138
138
|
"rollup": "4.17.2",
|
|
139
139
|
"rollup-preset-solid": "2.0.1",
|
|
140
140
|
"solid-js": "1.8.17",
|
|
141
|
-
"storybook": "8.
|
|
141
|
+
"storybook": "8.1.1",
|
|
142
142
|
"storybook-solidjs": "1.0.0-beta.2",
|
|
143
143
|
"storybook-solidjs-vite": "1.0.0-beta.2",
|
|
144
144
|
"typescript": "5.4.5",
|
|
145
145
|
"vite": "5.2.11",
|
|
146
146
|
"vite-plugin-solid": "2.10.2",
|
|
147
|
-
"vitest": "1.
|
|
147
|
+
"vitest": "1.6.0"
|
|
148
148
|
},
|
|
149
149
|
"peerDependencies": {
|
|
150
150
|
"solid-js": ">=1.6.0"
|
|
File without changes
|