@ark-ui/react 3.13.0 → 4.0.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/dist/components/accordion/accordion-item.cjs +2 -0
- package/dist/components/accordion/accordion-item.js +2 -0
- package/dist/components/accordion/index.d.cts +1 -1
- package/dist/components/accordion/index.d.ts +1 -1
- package/dist/components/carousel/index.cjs +2 -2
- package/dist/components/carousel/index.d.cts +11 -11
- package/dist/components/carousel/index.d.ts +11 -11
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.cjs +2 -2
- package/dist/components/checkbox/index.d.cts +8 -8
- package/dist/components/checkbox/index.d.ts +8 -8
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/clipboard/index.d.cts +8 -8
- package/dist/components/clipboard/index.d.ts +8 -8
- package/dist/components/collapsible/index.d.cts +5 -5
- package/dist/components/collapsible/index.d.ts +5 -5
- package/dist/components/collection.cjs +10 -0
- package/dist/components/collection.d.cts +3 -0
- package/dist/components/collection.d.ts +3 -0
- package/dist/components/collection.js +6 -0
- package/dist/components/color-picker/color-picker.d.cts +1 -1
- package/dist/components/color-picker/color-picker.d.ts +1 -1
- package/dist/components/color-picker/index.cjs +9 -4
- package/dist/components/color-picker/index.d.cts +3 -2
- package/dist/components/color-picker/index.d.ts +3 -2
- package/dist/components/color-picker/index.js +2 -1
- package/dist/components/color-picker/use-color-picker.cjs +3 -3
- package/dist/components/color-picker/use-color-picker.d.cts +2 -6
- package/dist/components/color-picker/use-color-picker.d.ts +2 -6
- package/dist/components/color-picker/use-color-picker.js +3 -3
- package/dist/components/combobox/combobox-context.d.cts +2 -2
- package/dist/components/combobox/combobox-context.d.ts +2 -2
- package/dist/components/combobox/combobox-root-provider.d.cts +1 -1
- package/dist/components/combobox/combobox-root-provider.d.ts +1 -1
- package/dist/components/combobox/combobox-root.cjs +1 -4
- package/dist/components/combobox/combobox-root.d.cts +2 -1
- package/dist/components/combobox/combobox-root.d.ts +2 -1
- package/dist/components/combobox/combobox-root.js +1 -4
- package/dist/components/combobox/combobox.d.cts +1 -1
- package/dist/components/combobox/combobox.d.ts +1 -1
- package/dist/components/combobox/index.cjs +2 -0
- package/dist/components/combobox/index.d.cts +17 -17
- package/dist/components/combobox/index.d.ts +17 -17
- package/dist/components/combobox/index.js +1 -0
- package/dist/components/combobox/use-combobox-context.d.cts +1 -1
- package/dist/components/combobox/use-combobox-context.d.ts +1 -1
- package/dist/components/combobox/use-combobox.cjs +16 -21
- package/dist/components/combobox/use-combobox.d.cts +8 -4
- package/dist/components/combobox/use-combobox.d.ts +8 -4
- package/dist/components/combobox/use-combobox.js +17 -22
- package/dist/components/date-picker/date-picker.d.cts +26 -26
- package/dist/components/date-picker/date-picker.d.ts +26 -26
- package/dist/components/date-picker/index.cjs +9 -4
- package/dist/components/date-picker/index.d.cts +28 -27
- package/dist/components/date-picker/index.d.ts +28 -27
- package/dist/components/date-picker/index.js +2 -1
- package/dist/components/date-picker/use-date-picker.cjs +3 -8
- package/dist/components/date-picker/use-date-picker.d.cts +2 -18
- package/dist/components/date-picker/use-date-picker.d.ts +2 -18
- package/dist/components/date-picker/use-date-picker.js +3 -8
- package/dist/components/dialog/dialog.d.cts +9 -9
- package/dist/components/dialog/dialog.d.ts +9 -9
- package/dist/components/dialog/index.d.cts +10 -10
- package/dist/components/dialog/index.d.ts +10 -10
- package/dist/components/editable/index.d.cts +12 -15
- package/dist/components/editable/index.d.ts +12 -15
- package/dist/components/field/index.cjs +4 -4
- package/dist/components/field/index.d.cts +2 -2
- package/dist/components/field/index.d.ts +2 -2
- package/dist/components/field/index.js +2 -2
- package/dist/components/fieldset/index.cjs +2 -2
- package/dist/components/fieldset/index.d.cts +1 -1
- package/dist/components/fieldset/index.d.ts +1 -1
- package/dist/components/fieldset/index.js +1 -1
- package/dist/components/hover-card/index.d.cts +8 -8
- package/dist/components/hover-card/index.d.ts +8 -8
- package/dist/components/index.cjs +45 -28
- package/dist/components/index.js +15 -11
- package/dist/components/menu/index.d.cts +20 -20
- package/dist/components/menu/index.d.ts +20 -20
- package/dist/components/number-input/index.d.cts +1 -1
- package/dist/components/number-input/index.d.ts +1 -1
- package/dist/components/pagination/index.d.cts +7 -7
- package/dist/components/pagination/index.d.ts +7 -7
- package/dist/components/pin-input/index.d.cts +7 -7
- package/dist/components/pin-input/index.d.ts +7 -7
- package/dist/components/popover/index.d.cts +13 -13
- package/dist/components/popover/index.d.ts +13 -13
- package/dist/components/presence/index.d.cts +3 -3
- package/dist/components/presence/index.d.ts +3 -3
- package/dist/components/progress/index.d.cts +11 -11
- package/dist/components/progress/index.d.ts +11 -11
- package/dist/components/qr-code/index.d.cts +6 -6
- package/dist/components/qr-code/index.d.ts +6 -6
- package/dist/components/qr-code/qr-code.cjs +1 -1
- package/dist/components/qr-code/qr-code.d.cts +1 -1
- package/dist/components/qr-code/qr-code.d.ts +1 -1
- package/dist/components/qr-code/qr-code.js +1 -1
- package/dist/components/radio-group/index.d.cts +9 -9
- package/dist/components/radio-group/index.d.ts +9 -9
- package/dist/components/rating-group/index.d.cts +7 -7
- package/dist/components/rating-group/index.d.ts +7 -7
- package/dist/components/segment-group/index.cjs +2 -2
- package/dist/components/segment-group/index.d.cts +9 -9
- package/dist/components/segment-group/index.d.ts +9 -9
- package/dist/components/segment-group/index.js +1 -1
- package/dist/components/select/index.cjs +2 -0
- package/dist/components/select/index.d.cts +19 -19
- package/dist/components/select/index.d.ts +19 -19
- package/dist/components/select/index.js +1 -0
- package/dist/components/select/select-context.d.cts +2 -2
- package/dist/components/select/select-context.d.ts +2 -2
- package/dist/components/select/select-root-provider.d.cts +1 -1
- package/dist/components/select/select-root-provider.d.ts +1 -1
- package/dist/components/select/select-root.cjs +1 -4
- package/dist/components/select/select-root.d.cts +2 -1
- package/dist/components/select/select-root.d.ts +2 -1
- package/dist/components/select/select-root.js +1 -4
- package/dist/components/select/select.d.cts +1 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/use-select-context.d.cts +1 -1
- package/dist/components/select/use-select-context.d.ts +1 -1
- package/dist/components/select/use-select.cjs +4 -15
- package/dist/components/select/use-select.d.cts +8 -4
- package/dist/components/select/use-select.d.ts +8 -4
- package/dist/components/select/use-select.js +5 -16
- package/dist/components/signature-pad/index.cjs +2 -2
- package/dist/components/signature-pad/index.d.cts +9 -9
- package/dist/components/signature-pad/index.d.ts +9 -9
- package/dist/components/signature-pad/index.js +1 -1
- package/dist/components/slider/index.d.cts +12 -12
- package/dist/components/slider/index.d.ts +12 -12
- package/dist/components/splitter/index.d.cts +5 -5
- package/dist/components/splitter/index.d.ts +5 -5
- package/dist/components/switch/index.d.cts +7 -7
- package/dist/components/switch/index.d.ts +7 -7
- package/dist/components/tabs/index.d.cts +7 -7
- package/dist/components/tabs/index.d.ts +7 -7
- package/dist/components/tags-input/index.d.cts +13 -13
- package/dist/components/tags-input/index.d.ts +13 -13
- package/dist/components/timer/index.cjs +11 -6
- package/dist/components/timer/index.d.cts +3 -2
- package/dist/components/timer/index.d.ts +3 -2
- package/dist/components/timer/index.js +3 -2
- package/dist/components/timer/timer.anatomy.d.cts +1 -0
- package/dist/components/timer/timer.anatomy.d.ts +1 -0
- package/dist/components/timer/timer.d.cts +1 -0
- package/dist/components/timer/timer.d.ts +1 -0
- package/dist/components/toast/index.d.cts +7 -7
- package/dist/components/toast/index.d.ts +7 -7
- package/dist/components/toggle-group/index.d.cts +4 -4
- package/dist/components/toggle-group/index.d.ts +4 -4
- package/dist/components/tooltip/index.d.cts +8 -8
- package/dist/components/tooltip/index.d.ts +8 -8
- package/dist/components/tree-view/index.d.cts +14 -14
- package/dist/components/tree-view/index.d.ts +14 -14
- package/dist/index.cjs +45 -28
- package/dist/index.js +15 -11
- package/dist/types.d.cts +0 -1
- package/dist/types.d.ts +0 -1
- package/dist/use-debugger.d.cts +1 -1
- package/dist/use-debugger.d.ts +1 -1
- package/package.json +22 -10
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSX, RefAttributes } from 'react';
|
|
2
|
-
import { Assign
|
|
2
|
+
import { Assign } from '../../types';
|
|
3
|
+
import { CollectionItem } from '../collection';
|
|
3
4
|
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
4
5
|
import { UsePresenceProps } from '../presence';
|
|
5
6
|
import { UseComboboxProps } from './use-combobox';
|
|
@@ -17,6 +17,7 @@ const ComboboxImpl = (props, ref) => {
|
|
|
17
17
|
"autoFocus",
|
|
18
18
|
"closeOnSelect",
|
|
19
19
|
"composite",
|
|
20
|
+
"collection",
|
|
20
21
|
"defaultOpen",
|
|
21
22
|
"defaultValue",
|
|
22
23
|
"disabled",
|
|
@@ -29,10 +30,6 @@ const ComboboxImpl = (props, ref) => {
|
|
|
29
30
|
"inputBehavior",
|
|
30
31
|
"inputValue",
|
|
31
32
|
"invalid",
|
|
32
|
-
"isItemDisabled",
|
|
33
|
-
"items",
|
|
34
|
-
"itemToString",
|
|
35
|
-
"itemToValue",
|
|
36
33
|
"loopFocus",
|
|
37
34
|
"multiple",
|
|
38
35
|
"name",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { HighlightChangeDetails, InputValueChangeDetails, OpenChangeDetails, ValueChangeDetails, } from '@zag-js/combobox';
|
|
2
|
-
export type { CollectionItem } from '
|
|
2
|
+
export type { CollectionItem } from '../collection';
|
|
3
3
|
export { ComboboxClearTrigger as ClearTrigger, type ComboboxClearTriggerProps as ClearTriggerProps, type ComboboxClearTriggerBaseProps as ClearTriggerBaseProps, } from './combobox-clear-trigger';
|
|
4
4
|
export { ComboboxContent as Content, type ComboboxContentProps as ContentProps, type ComboboxContentBaseProps as ContentBaseProps, } from './combobox-content';
|
|
5
5
|
export { ComboboxContext as Context, type ComboboxContextProps as ContextProps, } from './combobox-context';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { HighlightChangeDetails, InputValueChangeDetails, OpenChangeDetails, ValueChangeDetails, } from '@zag-js/combobox';
|
|
2
|
-
export type { CollectionItem } from '
|
|
2
|
+
export type { CollectionItem } from '../collection';
|
|
3
3
|
export { ComboboxClearTrigger as ClearTrigger, type ComboboxClearTriggerProps as ClearTriggerProps, type ComboboxClearTriggerBaseProps as ClearTriggerBaseProps, } from './combobox-clear-trigger';
|
|
4
4
|
export { ComboboxContent as Content, type ComboboxContentProps as ContentProps, type ComboboxContentBaseProps as ContentBaseProps, } from './combobox-content';
|
|
5
5
|
export { ComboboxContext as Context, type ComboboxContextProps as ContextProps, } from './combobox-context';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
+
const collection = require('../collection.cjs');
|
|
5
6
|
const comboboxClearTrigger = require('./combobox-clear-trigger.cjs');
|
|
6
7
|
const comboboxContent = require('./combobox-content.cjs');
|
|
7
8
|
const comboboxContext = require('./combobox-context.cjs');
|
|
@@ -27,6 +28,7 @@ const combobox = require('@zag-js/combobox');
|
|
|
27
28
|
|
|
28
29
|
|
|
29
30
|
|
|
31
|
+
exports.createListCollection = collection.createListCollection;
|
|
30
32
|
exports.ComboboxClearTrigger = comboboxClearTrigger.ComboboxClearTrigger;
|
|
31
33
|
exports.ComboboxContent = comboboxContent.ComboboxContent;
|
|
32
34
|
exports.ComboboxContext = comboboxContext.ComboboxContext;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
export type { HighlightChangeDetails as ComboboxHighlightChangeDetails, InputValueChangeDetails as ComboboxInputValueChangeDetails, OpenChangeDetails as ComboboxOpenChangeDetails, ValueChangeDetails as ComboboxValueChangeDetails, } from '@zag-js/combobox';
|
|
2
|
-
export type
|
|
3
|
-
export { ComboboxClearTrigger, type
|
|
4
|
-
export { ComboboxContent, type
|
|
2
|
+
export { createListCollection, type CollectionItem, type ListCollection } from '../collection';
|
|
3
|
+
export { ComboboxClearTrigger, type ComboboxClearTriggerBaseProps, type ComboboxClearTriggerProps, } from './combobox-clear-trigger';
|
|
4
|
+
export { ComboboxContent, type ComboboxContentBaseProps, type ComboboxContentProps, } from './combobox-content';
|
|
5
5
|
export { ComboboxContext, type ComboboxContextProps, } from './combobox-context';
|
|
6
|
-
export { ComboboxControl, type
|
|
7
|
-
export { ComboboxInput, type
|
|
8
|
-
export { ComboboxItem, type
|
|
6
|
+
export { ComboboxControl, type ComboboxControlBaseProps, type ComboboxControlProps, } from './combobox-control';
|
|
7
|
+
export { ComboboxInput, type ComboboxInputBaseProps, type ComboboxInputProps, } from './combobox-input';
|
|
8
|
+
export { ComboboxItem, type ComboboxItemBaseProps, type ComboboxItemProps, } from './combobox-item';
|
|
9
9
|
export { ComboboxItemContext, type ComboboxItemContextProps, } from './combobox-item-context';
|
|
10
|
-
export { ComboboxItemGroup, type
|
|
11
|
-
export { ComboboxItemGroupLabel, type
|
|
12
|
-
export { ComboboxItemIndicator, type
|
|
13
|
-
export { ComboboxItemText, type
|
|
14
|
-
export { ComboboxLabel, type
|
|
15
|
-
export { ComboboxList, type
|
|
16
|
-
export { ComboboxPositioner, type
|
|
17
|
-
export { ComboboxRoot, type
|
|
18
|
-
export { ComboboxRootProvider, type
|
|
19
|
-
export { ComboboxTrigger, type
|
|
10
|
+
export { ComboboxItemGroup, type ComboboxItemGroupBaseProps, type ComboboxItemGroupProps, } from './combobox-item-group';
|
|
11
|
+
export { ComboboxItemGroupLabel, type ComboboxItemGroupLabelBaseProps, type ComboboxItemGroupLabelProps, } from './combobox-item-group-label';
|
|
12
|
+
export { ComboboxItemIndicator, type ComboboxItemIndicatorBaseProps, type ComboboxItemIndicatorProps, } from './combobox-item-indicator';
|
|
13
|
+
export { ComboboxItemText, type ComboboxItemTextBaseProps, type ComboboxItemTextProps, } from './combobox-item-text';
|
|
14
|
+
export { ComboboxLabel, type ComboboxLabelBaseProps, type ComboboxLabelProps, } from './combobox-label';
|
|
15
|
+
export { ComboboxList, type ComboboxListBaseProps, type ComboboxListProps, } from './combobox-list';
|
|
16
|
+
export { ComboboxPositioner, type ComboboxPositionerBaseProps, type ComboboxPositionerProps, } from './combobox-positioner';
|
|
17
|
+
export { ComboboxRoot, type ComboboxRootBaseProps, type ComboboxRootProps, } from './combobox-root';
|
|
18
|
+
export { ComboboxRootProvider, type ComboboxRootProviderBaseProps, type ComboboxRootProviderProps, } from './combobox-root-provider';
|
|
19
|
+
export { ComboboxTrigger, type ComboboxTriggerBaseProps, type ComboboxTriggerProps, } from './combobox-trigger';
|
|
20
|
+
export { comboboxAnatomy } from './combobox.anatomy';
|
|
20
21
|
export { useCombobox, type UseComboboxProps, type UseComboboxReturn } from './use-combobox';
|
|
21
22
|
export { useComboboxContext, type UseComboboxContext } from './use-combobox-context';
|
|
22
23
|
export { useComboboxItemContext, type UseComboboxItemContext } from './use-combobox-item-context';
|
|
23
|
-
export { comboboxAnatomy } from './combobox.anatomy';
|
|
24
24
|
export * as Combobox from './combobox';
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
export type { HighlightChangeDetails as ComboboxHighlightChangeDetails, InputValueChangeDetails as ComboboxInputValueChangeDetails, OpenChangeDetails as ComboboxOpenChangeDetails, ValueChangeDetails as ComboboxValueChangeDetails, } from '@zag-js/combobox';
|
|
2
|
-
export type
|
|
3
|
-
export { ComboboxClearTrigger, type
|
|
4
|
-
export { ComboboxContent, type
|
|
2
|
+
export { createListCollection, type CollectionItem, type ListCollection } from '../collection';
|
|
3
|
+
export { ComboboxClearTrigger, type ComboboxClearTriggerBaseProps, type ComboboxClearTriggerProps, } from './combobox-clear-trigger';
|
|
4
|
+
export { ComboboxContent, type ComboboxContentBaseProps, type ComboboxContentProps, } from './combobox-content';
|
|
5
5
|
export { ComboboxContext, type ComboboxContextProps, } from './combobox-context';
|
|
6
|
-
export { ComboboxControl, type
|
|
7
|
-
export { ComboboxInput, type
|
|
8
|
-
export { ComboboxItem, type
|
|
6
|
+
export { ComboboxControl, type ComboboxControlBaseProps, type ComboboxControlProps, } from './combobox-control';
|
|
7
|
+
export { ComboboxInput, type ComboboxInputBaseProps, type ComboboxInputProps, } from './combobox-input';
|
|
8
|
+
export { ComboboxItem, type ComboboxItemBaseProps, type ComboboxItemProps, } from './combobox-item';
|
|
9
9
|
export { ComboboxItemContext, type ComboboxItemContextProps, } from './combobox-item-context';
|
|
10
|
-
export { ComboboxItemGroup, type
|
|
11
|
-
export { ComboboxItemGroupLabel, type
|
|
12
|
-
export { ComboboxItemIndicator, type
|
|
13
|
-
export { ComboboxItemText, type
|
|
14
|
-
export { ComboboxLabel, type
|
|
15
|
-
export { ComboboxList, type
|
|
16
|
-
export { ComboboxPositioner, type
|
|
17
|
-
export { ComboboxRoot, type
|
|
18
|
-
export { ComboboxRootProvider, type
|
|
19
|
-
export { ComboboxTrigger, type
|
|
10
|
+
export { ComboboxItemGroup, type ComboboxItemGroupBaseProps, type ComboboxItemGroupProps, } from './combobox-item-group';
|
|
11
|
+
export { ComboboxItemGroupLabel, type ComboboxItemGroupLabelBaseProps, type ComboboxItemGroupLabelProps, } from './combobox-item-group-label';
|
|
12
|
+
export { ComboboxItemIndicator, type ComboboxItemIndicatorBaseProps, type ComboboxItemIndicatorProps, } from './combobox-item-indicator';
|
|
13
|
+
export { ComboboxItemText, type ComboboxItemTextBaseProps, type ComboboxItemTextProps, } from './combobox-item-text';
|
|
14
|
+
export { ComboboxLabel, type ComboboxLabelBaseProps, type ComboboxLabelProps, } from './combobox-label';
|
|
15
|
+
export { ComboboxList, type ComboboxListBaseProps, type ComboboxListProps, } from './combobox-list';
|
|
16
|
+
export { ComboboxPositioner, type ComboboxPositionerBaseProps, type ComboboxPositionerProps, } from './combobox-positioner';
|
|
17
|
+
export { ComboboxRoot, type ComboboxRootBaseProps, type ComboboxRootProps, } from './combobox-root';
|
|
18
|
+
export { ComboboxRootProvider, type ComboboxRootProviderBaseProps, type ComboboxRootProviderProps, } from './combobox-root-provider';
|
|
19
|
+
export { ComboboxTrigger, type ComboboxTriggerBaseProps, type ComboboxTriggerProps, } from './combobox-trigger';
|
|
20
|
+
export { comboboxAnatomy } from './combobox.anatomy';
|
|
20
21
|
export { useCombobox, type UseComboboxProps, type UseComboboxReturn } from './use-combobox';
|
|
21
22
|
export { useComboboxContext, type UseComboboxContext } from './use-combobox-context';
|
|
22
23
|
export { useComboboxItemContext, type UseComboboxItemContext } from './use-combobox-item-context';
|
|
23
|
-
export { comboboxAnatomy } from './combobox.anatomy';
|
|
24
24
|
export * as Combobox from './combobox';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollectionItem } from '
|
|
1
|
+
import { CollectionItem } from '../collection';
|
|
2
2
|
import { UseComboboxReturn } from './use-combobox';
|
|
3
3
|
import { Provider } from 'react';
|
|
4
4
|
export interface UseComboboxContext<T extends CollectionItem> extends UseComboboxReturn<T> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollectionItem } from '
|
|
1
|
+
import { CollectionItem } from '../collection';
|
|
2
2
|
import { UseComboboxReturn } from './use-combobox';
|
|
3
3
|
import { Provider } from 'react';
|
|
4
4
|
export interface UseComboboxContext<T extends CollectionItem> extends UseComboboxReturn<T> {
|
|
@@ -8,7 +8,6 @@ const react$1 = require('@zag-js/react');
|
|
|
8
8
|
const react = require('react');
|
|
9
9
|
const useEnvironmentContext = require('../../providers/environment/use-environment-context.cjs');
|
|
10
10
|
const useLocaleContext = require('../../providers/locale/use-locale-context.cjs');
|
|
11
|
-
const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
12
11
|
const useEvent = require('../../utils/use-event.cjs');
|
|
13
12
|
const useFieldContext = require('../field/use-field-context.cjs');
|
|
14
13
|
|
|
@@ -32,16 +31,7 @@ function _interopNamespaceDefault(e) {
|
|
|
32
31
|
const combobox__namespace = /*#__PURE__*/_interopNamespaceDefault(combobox);
|
|
33
32
|
|
|
34
33
|
const useCombobox = (props) => {
|
|
35
|
-
const
|
|
36
|
-
"isItemDisabled",
|
|
37
|
-
"itemToValue",
|
|
38
|
-
"itemToString",
|
|
39
|
-
"items"
|
|
40
|
-
]);
|
|
41
|
-
const collection = react.useMemo(
|
|
42
|
-
() => combobox__namespace.collection(collectionOptions),
|
|
43
|
-
Object.values(collectionOptions)
|
|
44
|
-
);
|
|
34
|
+
const { collection, ...comboboxProps } = props;
|
|
45
35
|
const { dir } = useLocaleContext.useLocaleContext();
|
|
46
36
|
const { getRootNode } = useEnvironmentContext.useEnvironmentContext();
|
|
47
37
|
const field = useFieldContext.useFieldContext();
|
|
@@ -63,18 +53,23 @@ const useCombobox = (props) => {
|
|
|
63
53
|
"open.controlled": props.open !== void 0,
|
|
64
54
|
...comboboxProps
|
|
65
55
|
};
|
|
66
|
-
const context = {
|
|
67
|
-
...initialContext
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
56
|
+
const context = (() => {
|
|
57
|
+
const { collection: _, ...restProps } = initialContext;
|
|
58
|
+
return {
|
|
59
|
+
...restProps,
|
|
60
|
+
value: props.value,
|
|
61
|
+
onValueChange: useEvent.useEvent(props.onValueChange, { sync: true }),
|
|
62
|
+
onInputValueChange: useEvent.useEvent(props.onInputValueChange, { sync: true }),
|
|
63
|
+
onHighlightChange: useEvent.useEvent(props.onHighlightChange),
|
|
64
|
+
onOpenChange: useEvent.useEvent(props.onOpenChange)
|
|
65
|
+
};
|
|
66
|
+
})();
|
|
67
|
+
const [state, send, service] = react$1.useMachine(combobox__namespace.machine(initialContext), {
|
|
76
68
|
context
|
|
77
69
|
});
|
|
70
|
+
react.useEffect(() => {
|
|
71
|
+
service.setContext({ collection });
|
|
72
|
+
}, [collection]);
|
|
78
73
|
return combobox__namespace.connect(state, send, react$1.normalizeProps);
|
|
79
74
|
};
|
|
80
75
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CollectionOptions } from '@zag-js/combobox';
|
|
2
1
|
import { PropTypes } from '@zag-js/react';
|
|
3
|
-
import {
|
|
2
|
+
import { Optional } from '../../types';
|
|
3
|
+
import { CollectionItem, ListCollection } from '../collection';
|
|
4
4
|
import * as combobox from '@zag-js/combobox';
|
|
5
|
-
export interface UseComboboxProps<T extends CollectionItem> extends
|
|
5
|
+
export interface UseComboboxProps<T extends CollectionItem> extends Optional<Omit<combobox.Context<T>, 'dir' | 'getRootNode' | 'collection' | 'open.controlled'>, 'id'> {
|
|
6
6
|
/**
|
|
7
7
|
* The initial open state of the combobox when it is first rendered.
|
|
8
8
|
* Use when you do not need to control its open state.
|
|
@@ -13,7 +13,11 @@ export interface UseComboboxProps<T extends CollectionItem> extends CollectionOp
|
|
|
13
13
|
* Use when you do not need to control the state of the combobox.
|
|
14
14
|
*/
|
|
15
15
|
defaultValue?: combobox.Context<T>['value'];
|
|
16
|
+
/**
|
|
17
|
+
* The collection of items
|
|
18
|
+
*/
|
|
19
|
+
collection: ListCollection<T>;
|
|
16
20
|
}
|
|
17
21
|
export interface UseComboboxReturn<T extends CollectionItem> extends combobox.Api<PropTypes, T> {
|
|
18
22
|
}
|
|
19
|
-
export declare const useCombobox: <T extends
|
|
23
|
+
export declare const useCombobox: <T extends unknown>(props: UseComboboxProps<T>) => UseComboboxReturn<T>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CollectionOptions } from '@zag-js/combobox';
|
|
2
1
|
import { PropTypes } from '@zag-js/react';
|
|
3
|
-
import {
|
|
2
|
+
import { Optional } from '../../types';
|
|
3
|
+
import { CollectionItem, ListCollection } from '../collection';
|
|
4
4
|
import * as combobox from '@zag-js/combobox';
|
|
5
|
-
export interface UseComboboxProps<T extends CollectionItem> extends
|
|
5
|
+
export interface UseComboboxProps<T extends CollectionItem> extends Optional<Omit<combobox.Context<T>, 'dir' | 'getRootNode' | 'collection' | 'open.controlled'>, 'id'> {
|
|
6
6
|
/**
|
|
7
7
|
* The initial open state of the combobox when it is first rendered.
|
|
8
8
|
* Use when you do not need to control its open state.
|
|
@@ -13,7 +13,11 @@ export interface UseComboboxProps<T extends CollectionItem> extends CollectionOp
|
|
|
13
13
|
* Use when you do not need to control the state of the combobox.
|
|
14
14
|
*/
|
|
15
15
|
defaultValue?: combobox.Context<T>['value'];
|
|
16
|
+
/**
|
|
17
|
+
* The collection of items
|
|
18
|
+
*/
|
|
19
|
+
collection: ListCollection<T>;
|
|
16
20
|
}
|
|
17
21
|
export interface UseComboboxReturn<T extends CollectionItem> extends combobox.Api<PropTypes, T> {
|
|
18
22
|
}
|
|
19
|
-
export declare const useCombobox: <T extends
|
|
23
|
+
export declare const useCombobox: <T extends unknown>(props: UseComboboxProps<T>) => UseComboboxReturn<T>;
|
|
@@ -1,24 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as combobox from '@zag-js/combobox';
|
|
3
3
|
import { useMachine, normalizeProps } from '@zag-js/react';
|
|
4
|
-
import {
|
|
4
|
+
import { useId, useEffect } from 'react';
|
|
5
5
|
import { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';
|
|
6
6
|
import { useLocaleContext } from '../../providers/locale/use-locale-context.js';
|
|
7
|
-
import { createSplitProps } from '../../utils/create-split-props.js';
|
|
8
7
|
import { useEvent } from '../../utils/use-event.js';
|
|
9
8
|
import { useFieldContext } from '../field/use-field-context.js';
|
|
10
9
|
|
|
11
10
|
const useCombobox = (props) => {
|
|
12
|
-
const
|
|
13
|
-
"isItemDisabled",
|
|
14
|
-
"itemToValue",
|
|
15
|
-
"itemToString",
|
|
16
|
-
"items"
|
|
17
|
-
]);
|
|
18
|
-
const collection = useMemo(
|
|
19
|
-
() => combobox.collection(collectionOptions),
|
|
20
|
-
Object.values(collectionOptions)
|
|
21
|
-
);
|
|
11
|
+
const { collection, ...comboboxProps } = props;
|
|
22
12
|
const { dir } = useLocaleContext();
|
|
23
13
|
const { getRootNode } = useEnvironmentContext();
|
|
24
14
|
const field = useFieldContext();
|
|
@@ -40,18 +30,23 @@ const useCombobox = (props) => {
|
|
|
40
30
|
"open.controlled": props.open !== void 0,
|
|
41
31
|
...comboboxProps
|
|
42
32
|
};
|
|
43
|
-
const context = {
|
|
44
|
-
...initialContext
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
33
|
+
const context = (() => {
|
|
34
|
+
const { collection: _, ...restProps } = initialContext;
|
|
35
|
+
return {
|
|
36
|
+
...restProps,
|
|
37
|
+
value: props.value,
|
|
38
|
+
onValueChange: useEvent(props.onValueChange, { sync: true }),
|
|
39
|
+
onInputValueChange: useEvent(props.onInputValueChange, { sync: true }),
|
|
40
|
+
onHighlightChange: useEvent(props.onHighlightChange),
|
|
41
|
+
onOpenChange: useEvent(props.onOpenChange)
|
|
42
|
+
};
|
|
43
|
+
})();
|
|
44
|
+
const [state, send, service] = useMachine(combobox.machine(initialContext), {
|
|
53
45
|
context
|
|
54
46
|
});
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
service.setContext({ collection });
|
|
49
|
+
}, [collection]);
|
|
55
50
|
return combobox.connect(state, send, normalizeProps);
|
|
56
51
|
};
|
|
57
52
|
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export type { FocusChangeDetails, OpenChangeDetails, ValueChangeDetails, ViewChangeDetails, } from '@zag-js/date-picker';
|
|
2
|
-
export { DatePickerClearTrigger as ClearTrigger, type
|
|
3
|
-
export { DatePickerContent as Content, type
|
|
1
|
+
export type { DateValue, FocusChangeDetails, OpenChangeDetails, ValueChangeDetails, ViewChangeDetails, } from '@zag-js/date-picker';
|
|
2
|
+
export { DatePickerClearTrigger as ClearTrigger, type DatePickerClearTriggerBaseProps as ClearTriggerBaseProps, type DatePickerClearTriggerProps as ClearTriggerProps, } from './date-picker-clear-trigger';
|
|
3
|
+
export { DatePickerContent as Content, type DatePickerContentBaseProps as ContentBaseProps, type DatePickerContentProps as ContentProps, } from './date-picker-content';
|
|
4
4
|
export { DatePickerContext as Context, type DatePickerContextProps as ContextProps, } from './date-picker-context';
|
|
5
|
-
export { DatePickerControl as Control, type
|
|
6
|
-
export { DatePickerInput as Input, type
|
|
7
|
-
export { DatePickerLabel as Label, type
|
|
8
|
-
export { DatePickerMonthSelect as MonthSelect, type
|
|
9
|
-
export { DatePickerNextTrigger as NextTrigger, type
|
|
10
|
-
export { DatePickerPositioner as Positioner, type
|
|
11
|
-
export { DatePickerPresetTrigger as PresetTrigger, type
|
|
12
|
-
export { DatePickerPrevTrigger as PrevTrigger, type
|
|
13
|
-
export { DatePickerRangeText as RangeText, type
|
|
14
|
-
export { DatePickerRoot as Root, type
|
|
15
|
-
export { DatePickerRootProvider as RootProvider, type
|
|
16
|
-
export { DatePickerTable as Table, type
|
|
17
|
-
export { DatePickerTableBody as TableBody, type
|
|
18
|
-
export { DatePickerTableCell as TableCell, type
|
|
19
|
-
export { DatePickerTableCellTrigger as TableCellTrigger, type
|
|
20
|
-
export { DatePickerTableHead as TableHead, type
|
|
21
|
-
export { DatePickerTableHeader as TableHeader, type
|
|
22
|
-
export { DatePickerTableRow as TableRow, type
|
|
23
|
-
export { DatePickerTrigger as Trigger, type
|
|
24
|
-
export { DatePickerView as View, type
|
|
25
|
-
export { DatePickerViewControl as ViewControl, type
|
|
26
|
-
export { DatePickerViewTrigger as ViewTrigger, type
|
|
27
|
-
export { DatePickerYearSelect as YearSelect, type
|
|
5
|
+
export { DatePickerControl as Control, type DatePickerControlBaseProps as ControlBaseProps, type DatePickerControlProps as ControlProps, } from './date-picker-control';
|
|
6
|
+
export { DatePickerInput as Input, type DatePickerInputBaseProps as InputBaseProps, type DatePickerInputProps as InputProps, } from './date-picker-input';
|
|
7
|
+
export { DatePickerLabel as Label, type DatePickerLabelBaseProps as LabelBaseProps, type DatePickerLabelProps as LabelProps, } from './date-picker-label';
|
|
8
|
+
export { DatePickerMonthSelect as MonthSelect, type DatePickerMonthSelectBaseProps as MonthSelectBaseProps, type DatePickerMonthSelectProps as MonthSelectProps, } from './date-picker-month-select';
|
|
9
|
+
export { DatePickerNextTrigger as NextTrigger, type DatePickerNextTriggerBaseProps as NextTriggerBaseProps, type DatePickerNextTriggerProps as NextTriggerProps, } from './date-picker-next-trigger';
|
|
10
|
+
export { DatePickerPositioner as Positioner, type DatePickerPositionerBaseProps as PositionerBaseProps, type DatePickerPositionerProps as PositionerProps, } from './date-picker-positioner';
|
|
11
|
+
export { DatePickerPresetTrigger as PresetTrigger, type DatePickerPresetTriggerBaseProps as PresetTriggerBaseProps, type DatePickerPresetTriggerProps as PresetTriggerProps, } from './date-picker-preset-trigger';
|
|
12
|
+
export { DatePickerPrevTrigger as PrevTrigger, type DatePickerPrevTriggerBaseProps as PrevTriggerBaseProps, type DatePickerPrevTriggerProps as PrevTriggerProps, } from './date-picker-prev-trigger';
|
|
13
|
+
export { DatePickerRangeText as RangeText, type DatePickerRangeTextBaseProps as RangeTextBaseProps, type DatePickerRangeTextProps as RangeTextProps, } from './date-picker-range-text';
|
|
14
|
+
export { DatePickerRoot as Root, type DatePickerRootBaseProps as RootBaseProps, type DatePickerRootProps as RootProps, } from './date-picker-root';
|
|
15
|
+
export { DatePickerRootProvider as RootProvider, type DatePickerRootProviderBaseProps as RootProviderBaseProps, type DatePickerRootProviderProps as RootProviderProps, } from './date-picker-root-provider';
|
|
16
|
+
export { DatePickerTable as Table, type DatePickerTableBaseProps as TableBaseProps, type DatePickerTableProps as TableProps, } from './date-picker-table';
|
|
17
|
+
export { DatePickerTableBody as TableBody, type DatePickerTableBodyBaseProps as TableBodyBaseProps, type DatePickerTableBodyProps as TableBodyProps, } from './date-picker-table-body';
|
|
18
|
+
export { DatePickerTableCell as TableCell, type DatePickerTableCellBaseProps as TableCellBaseProps, type DatePickerTableCellProps as TableCellProps, } from './date-picker-table-cell';
|
|
19
|
+
export { DatePickerTableCellTrigger as TableCellTrigger, type DatePickerTableCellTriggerBaseProps as TableCellTriggerBaseProps, type DatePickerTableCellTriggerProps as TableCellTriggerProps, } from './date-picker-table-cell-trigger';
|
|
20
|
+
export { DatePickerTableHead as TableHead, type DatePickerTableHeadBaseProps as TableHeadBaseProps, type DatePickerTableHeadProps as TableHeadProps, } from './date-picker-table-head';
|
|
21
|
+
export { DatePickerTableHeader as TableHeader, type DatePickerTableHeaderBaseProps as TableHeaderBaseProps, type DatePickerTableHeaderProps as TableHeaderProps, } from './date-picker-table-header';
|
|
22
|
+
export { DatePickerTableRow as TableRow, type DatePickerTableRowBaseProps as TableRowBaseProps, type DatePickerTableRowProps as TableRowProps, } from './date-picker-table-row';
|
|
23
|
+
export { DatePickerTrigger as Trigger, type DatePickerTriggerBaseProps as TriggerBaseProps, type DatePickerTriggerProps as TriggerProps, } from './date-picker-trigger';
|
|
24
|
+
export { DatePickerView as View, type DatePickerViewBaseProps as ViewBaseProps, type DatePickerViewProps as ViewProps, } from './date-picker-view';
|
|
25
|
+
export { DatePickerViewControl as ViewControl, type DatePickerViewControlBaseProps as ViewControlBaseProps, type DatePickerViewControlProps as ViewControlProps, } from './date-picker-view-control';
|
|
26
|
+
export { DatePickerViewTrigger as ViewTrigger, type DatePickerViewTriggerBaseProps as ViewTriggerBaseProps, type DatePickerViewTriggerProps as ViewTriggerProps, } from './date-picker-view-trigger';
|
|
27
|
+
export { DatePickerYearSelect as YearSelect, type DatePickerYearSelectBaseProps as YearSelectBaseProps, type DatePickerYearSelectProps as YearSelectProps, } from './date-picker-year-select';
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export type { FocusChangeDetails, OpenChangeDetails, ValueChangeDetails, ViewChangeDetails, } from '@zag-js/date-picker';
|
|
2
|
-
export { DatePickerClearTrigger as ClearTrigger, type
|
|
3
|
-
export { DatePickerContent as Content, type
|
|
1
|
+
export type { DateValue, FocusChangeDetails, OpenChangeDetails, ValueChangeDetails, ViewChangeDetails, } from '@zag-js/date-picker';
|
|
2
|
+
export { DatePickerClearTrigger as ClearTrigger, type DatePickerClearTriggerBaseProps as ClearTriggerBaseProps, type DatePickerClearTriggerProps as ClearTriggerProps, } from './date-picker-clear-trigger';
|
|
3
|
+
export { DatePickerContent as Content, type DatePickerContentBaseProps as ContentBaseProps, type DatePickerContentProps as ContentProps, } from './date-picker-content';
|
|
4
4
|
export { DatePickerContext as Context, type DatePickerContextProps as ContextProps, } from './date-picker-context';
|
|
5
|
-
export { DatePickerControl as Control, type
|
|
6
|
-
export { DatePickerInput as Input, type
|
|
7
|
-
export { DatePickerLabel as Label, type
|
|
8
|
-
export { DatePickerMonthSelect as MonthSelect, type
|
|
9
|
-
export { DatePickerNextTrigger as NextTrigger, type
|
|
10
|
-
export { DatePickerPositioner as Positioner, type
|
|
11
|
-
export { DatePickerPresetTrigger as PresetTrigger, type
|
|
12
|
-
export { DatePickerPrevTrigger as PrevTrigger, type
|
|
13
|
-
export { DatePickerRangeText as RangeText, type
|
|
14
|
-
export { DatePickerRoot as Root, type
|
|
15
|
-
export { DatePickerRootProvider as RootProvider, type
|
|
16
|
-
export { DatePickerTable as Table, type
|
|
17
|
-
export { DatePickerTableBody as TableBody, type
|
|
18
|
-
export { DatePickerTableCell as TableCell, type
|
|
19
|
-
export { DatePickerTableCellTrigger as TableCellTrigger, type
|
|
20
|
-
export { DatePickerTableHead as TableHead, type
|
|
21
|
-
export { DatePickerTableHeader as TableHeader, type
|
|
22
|
-
export { DatePickerTableRow as TableRow, type
|
|
23
|
-
export { DatePickerTrigger as Trigger, type
|
|
24
|
-
export { DatePickerView as View, type
|
|
25
|
-
export { DatePickerViewControl as ViewControl, type
|
|
26
|
-
export { DatePickerViewTrigger as ViewTrigger, type
|
|
27
|
-
export { DatePickerYearSelect as YearSelect, type
|
|
5
|
+
export { DatePickerControl as Control, type DatePickerControlBaseProps as ControlBaseProps, type DatePickerControlProps as ControlProps, } from './date-picker-control';
|
|
6
|
+
export { DatePickerInput as Input, type DatePickerInputBaseProps as InputBaseProps, type DatePickerInputProps as InputProps, } from './date-picker-input';
|
|
7
|
+
export { DatePickerLabel as Label, type DatePickerLabelBaseProps as LabelBaseProps, type DatePickerLabelProps as LabelProps, } from './date-picker-label';
|
|
8
|
+
export { DatePickerMonthSelect as MonthSelect, type DatePickerMonthSelectBaseProps as MonthSelectBaseProps, type DatePickerMonthSelectProps as MonthSelectProps, } from './date-picker-month-select';
|
|
9
|
+
export { DatePickerNextTrigger as NextTrigger, type DatePickerNextTriggerBaseProps as NextTriggerBaseProps, type DatePickerNextTriggerProps as NextTriggerProps, } from './date-picker-next-trigger';
|
|
10
|
+
export { DatePickerPositioner as Positioner, type DatePickerPositionerBaseProps as PositionerBaseProps, type DatePickerPositionerProps as PositionerProps, } from './date-picker-positioner';
|
|
11
|
+
export { DatePickerPresetTrigger as PresetTrigger, type DatePickerPresetTriggerBaseProps as PresetTriggerBaseProps, type DatePickerPresetTriggerProps as PresetTriggerProps, } from './date-picker-preset-trigger';
|
|
12
|
+
export { DatePickerPrevTrigger as PrevTrigger, type DatePickerPrevTriggerBaseProps as PrevTriggerBaseProps, type DatePickerPrevTriggerProps as PrevTriggerProps, } from './date-picker-prev-trigger';
|
|
13
|
+
export { DatePickerRangeText as RangeText, type DatePickerRangeTextBaseProps as RangeTextBaseProps, type DatePickerRangeTextProps as RangeTextProps, } from './date-picker-range-text';
|
|
14
|
+
export { DatePickerRoot as Root, type DatePickerRootBaseProps as RootBaseProps, type DatePickerRootProps as RootProps, } from './date-picker-root';
|
|
15
|
+
export { DatePickerRootProvider as RootProvider, type DatePickerRootProviderBaseProps as RootProviderBaseProps, type DatePickerRootProviderProps as RootProviderProps, } from './date-picker-root-provider';
|
|
16
|
+
export { DatePickerTable as Table, type DatePickerTableBaseProps as TableBaseProps, type DatePickerTableProps as TableProps, } from './date-picker-table';
|
|
17
|
+
export { DatePickerTableBody as TableBody, type DatePickerTableBodyBaseProps as TableBodyBaseProps, type DatePickerTableBodyProps as TableBodyProps, } from './date-picker-table-body';
|
|
18
|
+
export { DatePickerTableCell as TableCell, type DatePickerTableCellBaseProps as TableCellBaseProps, type DatePickerTableCellProps as TableCellProps, } from './date-picker-table-cell';
|
|
19
|
+
export { DatePickerTableCellTrigger as TableCellTrigger, type DatePickerTableCellTriggerBaseProps as TableCellTriggerBaseProps, type DatePickerTableCellTriggerProps as TableCellTriggerProps, } from './date-picker-table-cell-trigger';
|
|
20
|
+
export { DatePickerTableHead as TableHead, type DatePickerTableHeadBaseProps as TableHeadBaseProps, type DatePickerTableHeadProps as TableHeadProps, } from './date-picker-table-head';
|
|
21
|
+
export { DatePickerTableHeader as TableHeader, type DatePickerTableHeaderBaseProps as TableHeaderBaseProps, type DatePickerTableHeaderProps as TableHeaderProps, } from './date-picker-table-header';
|
|
22
|
+
export { DatePickerTableRow as TableRow, type DatePickerTableRowBaseProps as TableRowBaseProps, type DatePickerTableRowProps as TableRowProps, } from './date-picker-table-row';
|
|
23
|
+
export { DatePickerTrigger as Trigger, type DatePickerTriggerBaseProps as TriggerBaseProps, type DatePickerTriggerProps as TriggerProps, } from './date-picker-trigger';
|
|
24
|
+
export { DatePickerView as View, type DatePickerViewBaseProps as ViewBaseProps, type DatePickerViewProps as ViewProps, } from './date-picker-view';
|
|
25
|
+
export { DatePickerViewControl as ViewControl, type DatePickerViewControlBaseProps as ViewControlBaseProps, type DatePickerViewControlProps as ViewControlProps, } from './date-picker-view-control';
|
|
26
|
+
export { DatePickerViewTrigger as ViewTrigger, type DatePickerViewTriggerBaseProps as ViewTriggerBaseProps, type DatePickerViewTriggerProps as ViewTriggerProps, } from './date-picker-view-trigger';
|
|
27
|
+
export { DatePickerYearSelect as YearSelect, type DatePickerYearSelectBaseProps as YearSelectBaseProps, type DatePickerYearSelectProps as YearSelectProps, } from './date-picker-year-select';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
+
const datePicker = require('@zag-js/date-picker');
|
|
5
6
|
const datePickerClearTrigger = require('./date-picker-clear-trigger.cjs');
|
|
6
7
|
const datePickerContent = require('./date-picker-content.cjs');
|
|
7
8
|
const datePickerContext = require('./date-picker-context.cjs');
|
|
@@ -28,13 +29,17 @@ const datePickerView = require('./date-picker-view.cjs');
|
|
|
28
29
|
const datePickerViewControl = require('./date-picker-view-control.cjs');
|
|
29
30
|
const datePickerViewTrigger = require('./date-picker-view-trigger.cjs');
|
|
30
31
|
const datePickerYearSelect = require('./date-picker-year-select.cjs');
|
|
32
|
+
const datePicker_anatomy = require('./date-picker.anatomy.cjs');
|
|
31
33
|
const useDatePicker = require('./use-date-picker.cjs');
|
|
32
34
|
const useDatePickerContext = require('./use-date-picker-context.cjs');
|
|
33
|
-
const
|
|
34
|
-
const datePicker = require('./date-picker.cjs');
|
|
35
|
+
const datePicker$1 = require('./date-picker.cjs');
|
|
35
36
|
|
|
36
37
|
|
|
37
38
|
|
|
39
|
+
Object.defineProperty(exports, "parseDate", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: () => datePicker.parse
|
|
42
|
+
});
|
|
38
43
|
exports.DatePickerClearTrigger = datePickerClearTrigger.DatePickerClearTrigger;
|
|
39
44
|
exports.DatePickerContent = datePickerContent.DatePickerContent;
|
|
40
45
|
exports.DatePickerContext = datePickerContext.DatePickerContext;
|
|
@@ -61,7 +66,7 @@ exports.DatePickerView = datePickerView.DatePickerView;
|
|
|
61
66
|
exports.DatePickerViewControl = datePickerViewControl.DatePickerViewControl;
|
|
62
67
|
exports.DatePickerViewTrigger = datePickerViewTrigger.DatePickerViewTrigger;
|
|
63
68
|
exports.DatePickerYearSelect = datePickerYearSelect.DatePickerYearSelect;
|
|
69
|
+
exports.datePickerAnatomy = datePicker_anatomy.datePickerAnatomy;
|
|
64
70
|
exports.useDatePicker = useDatePicker.useDatePicker;
|
|
65
71
|
exports.useDatePickerContext = useDatePickerContext.useDatePickerContext;
|
|
66
|
-
exports.
|
|
67
|
-
exports.DatePicker = datePicker;
|
|
72
|
+
exports.DatePicker = datePicker$1;
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
export
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export { parse as parseDate } from '@zag-js/date-picker';
|
|
2
|
+
export type { DateValue, FocusChangeDetails as DatePickerFocusChangeDetails, OpenChangeDetails as DatePickerOpenChangeDetails, ValueChangeDetails as DatePickerValueChangeDetails, ViewChangeDetails as DatePickerViewChangeDetails, } from '@zag-js/date-picker';
|
|
3
|
+
export { DatePickerClearTrigger, type DatePickerClearTriggerBaseProps, type DatePickerClearTriggerProps, } from './date-picker-clear-trigger';
|
|
4
|
+
export { DatePickerContent, type DatePickerContentBaseProps, type DatePickerContentProps, } from './date-picker-content';
|
|
4
5
|
export { DatePickerContext, type DatePickerContextProps, } from './date-picker-context';
|
|
5
|
-
export { DatePickerControl, type
|
|
6
|
-
export { DatePickerInput, type
|
|
7
|
-
export { DatePickerLabel, type
|
|
8
|
-
export { DatePickerMonthSelect, type
|
|
9
|
-
export { DatePickerNextTrigger, type
|
|
10
|
-
export { DatePickerPositioner, type
|
|
11
|
-
export { DatePickerPresetTrigger, type
|
|
12
|
-
export { DatePickerPrevTrigger, type
|
|
13
|
-
export { DatePickerRangeText, type
|
|
14
|
-
export { DatePickerRoot, type
|
|
15
|
-
export { DatePickerRootProvider, type
|
|
16
|
-
export { DatePickerTable, type
|
|
17
|
-
export { DatePickerTableBody, type
|
|
18
|
-
export { DatePickerTableCell, type
|
|
19
|
-
export { DatePickerTableCellTrigger, type
|
|
20
|
-
export { DatePickerTableHead, type
|
|
21
|
-
export { DatePickerTableHeader, type
|
|
22
|
-
export { DatePickerTableRow, type
|
|
23
|
-
export { DatePickerTrigger, type
|
|
24
|
-
export { DatePickerView, type
|
|
25
|
-
export { DatePickerViewControl, type
|
|
26
|
-
export { DatePickerViewTrigger, type
|
|
27
|
-
export { DatePickerYearSelect, type
|
|
6
|
+
export { DatePickerControl, type DatePickerControlBaseProps, type DatePickerControlProps, } from './date-picker-control';
|
|
7
|
+
export { DatePickerInput, type DatePickerInputBaseProps, type DatePickerInputProps, } from './date-picker-input';
|
|
8
|
+
export { DatePickerLabel, type DatePickerLabelBaseProps, type DatePickerLabelProps, } from './date-picker-label';
|
|
9
|
+
export { DatePickerMonthSelect, type DatePickerMonthSelectBaseProps, type DatePickerMonthSelectProps, } from './date-picker-month-select';
|
|
10
|
+
export { DatePickerNextTrigger, type DatePickerNextTriggerBaseProps, type DatePickerNextTriggerProps, } from './date-picker-next-trigger';
|
|
11
|
+
export { DatePickerPositioner, type DatePickerPositionerBaseProps, type DatePickerPositionerProps, } from './date-picker-positioner';
|
|
12
|
+
export { DatePickerPresetTrigger, type DatePickerPresetTriggerBaseProps, type DatePickerPresetTriggerProps, } from './date-picker-preset-trigger';
|
|
13
|
+
export { DatePickerPrevTrigger, type DatePickerPrevTriggerBaseProps, type DatePickerPrevTriggerProps, } from './date-picker-prev-trigger';
|
|
14
|
+
export { DatePickerRangeText, type DatePickerRangeTextBaseProps, type DatePickerRangeTextProps, } from './date-picker-range-text';
|
|
15
|
+
export { DatePickerRoot, type DatePickerRootBaseProps, type DatePickerRootProps, } from './date-picker-root';
|
|
16
|
+
export { DatePickerRootProvider, type DatePickerRootProviderBaseProps, type DatePickerRootProviderProps, } from './date-picker-root-provider';
|
|
17
|
+
export { DatePickerTable, type DatePickerTableBaseProps, type DatePickerTableProps, } from './date-picker-table';
|
|
18
|
+
export { DatePickerTableBody, type DatePickerTableBodyBaseProps, type DatePickerTableBodyProps, } from './date-picker-table-body';
|
|
19
|
+
export { DatePickerTableCell, type DatePickerTableCellBaseProps, type DatePickerTableCellProps, } from './date-picker-table-cell';
|
|
20
|
+
export { DatePickerTableCellTrigger, type DatePickerTableCellTriggerBaseProps, type DatePickerTableCellTriggerProps, } from './date-picker-table-cell-trigger';
|
|
21
|
+
export { DatePickerTableHead, type DatePickerTableHeadBaseProps, type DatePickerTableHeadProps, } from './date-picker-table-head';
|
|
22
|
+
export { DatePickerTableHeader, type DatePickerTableHeaderBaseProps, type DatePickerTableHeaderProps, } from './date-picker-table-header';
|
|
23
|
+
export { DatePickerTableRow, type DatePickerTableRowBaseProps, type DatePickerTableRowProps, } from './date-picker-table-row';
|
|
24
|
+
export { DatePickerTrigger, type DatePickerTriggerBaseProps, type DatePickerTriggerProps, } from './date-picker-trigger';
|
|
25
|
+
export { DatePickerView, type DatePickerViewBaseProps, type DatePickerViewProps, } from './date-picker-view';
|
|
26
|
+
export { DatePickerViewControl, type DatePickerViewControlBaseProps, type DatePickerViewControlProps, } from './date-picker-view-control';
|
|
27
|
+
export { DatePickerViewTrigger, type DatePickerViewTriggerBaseProps, type DatePickerViewTriggerProps, } from './date-picker-view-trigger';
|
|
28
|
+
export { DatePickerYearSelect, type DatePickerYearSelectBaseProps, type DatePickerYearSelectProps, } from './date-picker-year-select';
|
|
29
|
+
export { datePickerAnatomy } from './date-picker.anatomy';
|
|
28
30
|
export { useDatePicker, type UseDatePickerProps, type UseDatePickerReturn } from './use-date-picker';
|
|
29
31
|
export { useDatePickerContext, type UseDatePickerContext } from './use-date-picker-context';
|
|
30
|
-
export { datePickerAnatomy } from './date-picker.anatomy';
|
|
31
32
|
export * as DatePicker from './date-picker';
|