@ark-ui/react 5.5.0 → 5.7.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/angle-slider/angle-slider-context.cjs +10 -0
- package/dist/components/angle-slider/angle-slider-context.d.cts +6 -0
- package/dist/components/angle-slider/angle-slider-context.d.ts +6 -0
- package/dist/components/angle-slider/angle-slider-context.js +6 -0
- package/dist/components/angle-slider/angle-slider-control.cjs +19 -0
- package/dist/components/angle-slider/angle-slider-control.d.cts +7 -0
- package/dist/components/angle-slider/angle-slider-control.d.ts +7 -0
- package/dist/components/angle-slider/angle-slider-control.js +15 -0
- package/dist/components/angle-slider/angle-slider-hidden-input.cjs +19 -0
- package/dist/components/angle-slider/angle-slider-hidden-input.d.cts +7 -0
- package/dist/components/angle-slider/angle-slider-hidden-input.d.ts +7 -0
- package/dist/components/angle-slider/angle-slider-hidden-input.js +15 -0
- package/dist/components/angle-slider/angle-slider-label.cjs +19 -0
- package/dist/components/angle-slider/angle-slider-label.d.cts +7 -0
- package/dist/components/angle-slider/angle-slider-label.d.ts +7 -0
- package/dist/components/angle-slider/angle-slider-label.js +15 -0
- package/dist/components/angle-slider/angle-slider-marker-group.cjs +19 -0
- package/dist/components/angle-slider/angle-slider-marker-group.d.cts +7 -0
- package/dist/components/angle-slider/angle-slider-marker-group.d.ts +7 -0
- package/dist/components/angle-slider/angle-slider-marker-group.js +15 -0
- package/dist/components/angle-slider/angle-slider-marker.cjs +21 -0
- package/dist/components/angle-slider/angle-slider-marker.d.cts +9 -0
- package/dist/components/angle-slider/angle-slider-marker.d.ts +9 -0
- package/dist/components/angle-slider/angle-slider-marker.js +17 -0
- package/dist/components/angle-slider/angle-slider-root-provider.cjs +20 -0
- package/dist/components/angle-slider/angle-slider-root-provider.d.cts +12 -0
- package/dist/components/angle-slider/angle-slider-root-provider.d.ts +12 -0
- package/dist/components/angle-slider/angle-slider-root-provider.js +16 -0
- package/dist/components/angle-slider/angle-slider-root.cjs +34 -0
- package/dist/components/angle-slider/angle-slider-root.d.cts +9 -0
- package/dist/components/angle-slider/angle-slider-root.d.ts +9 -0
- package/dist/components/angle-slider/angle-slider-root.js +30 -0
- package/dist/components/angle-slider/angle-slider-thumb.cjs +19 -0
- package/dist/components/angle-slider/angle-slider-thumb.d.cts +7 -0
- package/dist/components/angle-slider/angle-slider-thumb.d.ts +7 -0
- package/dist/components/angle-slider/angle-slider-thumb.js +15 -0
- package/dist/components/angle-slider/angle-slider-value-text.cjs +17 -0
- package/dist/components/angle-slider/angle-slider-value-text.d.cts +7 -0
- package/dist/components/angle-slider/angle-slider-value-text.d.ts +7 -0
- package/dist/components/angle-slider/angle-slider-value-text.js +13 -0
- package/dist/components/angle-slider/angle-slider.anatomy.d.cts +1 -0
- package/dist/components/angle-slider/angle-slider.anatomy.d.ts +1 -0
- package/dist/components/angle-slider/angle-slider.cjs +27 -0
- package/dist/components/angle-slider/angle-slider.d.cts +10 -0
- package/dist/components/angle-slider/angle-slider.d.ts +10 -0
- package/dist/components/angle-slider/angle-slider.js +10 -0
- package/dist/components/angle-slider/index.cjs +38 -0
- package/dist/components/angle-slider/index.d.cts +14 -0
- package/dist/components/angle-slider/index.d.ts +14 -0
- package/dist/components/angle-slider/index.js +15 -0
- package/dist/components/angle-slider/use-angle-slider-context.cjs +15 -0
- package/dist/components/angle-slider/use-angle-slider-context.d.cts +5 -0
- package/dist/components/angle-slider/use-angle-slider-context.d.ts +5 -0
- package/dist/components/angle-slider/use-angle-slider-context.js +10 -0
- package/dist/components/angle-slider/use-angle-slider.cjs +45 -0
- package/dist/components/angle-slider/use-angle-slider.d.cts +8 -0
- package/dist/components/angle-slider/use-angle-slider.d.ts +8 -0
- package/dist/components/angle-slider/use-angle-slider.js +22 -0
- package/dist/components/checkbox/checkbox.anatomy.d.cts +1 -1
- package/dist/components/checkbox/checkbox.anatomy.d.ts +1 -1
- package/dist/components/collection.d.cts +1 -1
- package/dist/components/collection.d.ts +1 -1
- package/dist/components/color-picker/color-picker.anatomy.d.cts +1 -1
- package/dist/components/color-picker/color-picker.anatomy.d.ts +1 -1
- package/dist/components/date-picker/date-picker.anatomy.d.cts +1 -1
- package/dist/components/date-picker/date-picker.anatomy.d.ts +1 -1
- package/dist/components/floating-panel/floating-panel-body.cjs +19 -0
- package/dist/components/floating-panel/floating-panel-body.d.cts +7 -0
- package/dist/components/floating-panel/floating-panel-body.d.ts +7 -0
- package/dist/components/floating-panel/floating-panel-body.js +15 -0
- package/dist/components/floating-panel/floating-panel-close-trigger.cjs +19 -0
- package/dist/components/floating-panel/floating-panel-close-trigger.d.cts +7 -0
- package/dist/components/floating-panel/floating-panel-close-trigger.d.ts +7 -0
- package/dist/components/floating-panel/floating-panel-close-trigger.js +15 -0
- package/dist/components/floating-panel/floating-panel-content.cjs +25 -0
- package/dist/components/floating-panel/floating-panel-content.d.cts +7 -0
- package/dist/components/floating-panel/floating-panel-content.d.ts +7 -0
- package/dist/components/floating-panel/floating-panel-content.js +21 -0
- package/dist/components/floating-panel/floating-panel-context.cjs +10 -0
- package/dist/components/floating-panel/floating-panel-context.d.cts +6 -0
- package/dist/components/floating-panel/floating-panel-context.d.ts +6 -0
- package/dist/components/floating-panel/floating-panel-context.js +6 -0
- package/dist/components/floating-panel/floating-panel-control.cjs +19 -0
- package/dist/components/floating-panel/floating-panel-control.d.cts +7 -0
- package/dist/components/floating-panel/floating-panel-control.d.ts +7 -0
- package/dist/components/floating-panel/floating-panel-control.js +15 -0
- package/dist/components/floating-panel/floating-panel-drag-trigger.cjs +19 -0
- package/dist/components/floating-panel/floating-panel-drag-trigger.d.cts +7 -0
- package/dist/components/floating-panel/floating-panel-drag-trigger.d.ts +7 -0
- package/dist/components/floating-panel/floating-panel-drag-trigger.js +15 -0
- package/dist/components/floating-panel/floating-panel-header.cjs +19 -0
- package/dist/components/floating-panel/floating-panel-header.d.cts +7 -0
- package/dist/components/floating-panel/floating-panel-header.d.ts +7 -0
- package/dist/components/floating-panel/floating-panel-header.js +15 -0
- package/dist/components/floating-panel/floating-panel-positioner.cjs +24 -0
- package/dist/components/floating-panel/floating-panel-positioner.d.cts +7 -0
- package/dist/components/floating-panel/floating-panel-positioner.d.ts +7 -0
- package/dist/components/floating-panel/floating-panel-positioner.js +20 -0
- package/dist/components/floating-panel/floating-panel-resize-trigger.cjs +21 -0
- package/dist/components/floating-panel/floating-panel-resize-trigger.d.cts +8 -0
- package/dist/components/floating-panel/floating-panel-resize-trigger.d.ts +8 -0
- package/dist/components/floating-panel/floating-panel-resize-trigger.js +17 -0
- package/dist/components/floating-panel/floating-panel-root-provider.cjs +21 -0
- package/dist/components/floating-panel/floating-panel-root-provider.d.cts +13 -0
- package/dist/components/floating-panel/floating-panel-root-provider.d.ts +13 -0
- package/dist/components/floating-panel/floating-panel-root-provider.js +17 -0
- package/dist/components/floating-panel/floating-panel-root.cjs +54 -0
- package/dist/components/floating-panel/floating-panel-root.d.cts +9 -0
- package/dist/components/floating-panel/floating-panel-root.d.ts +9 -0
- package/dist/components/floating-panel/floating-panel-root.js +50 -0
- package/dist/components/floating-panel/floating-panel-stage-trigger.cjs +21 -0
- package/dist/components/floating-panel/floating-panel-stage-trigger.d.cts +8 -0
- package/dist/components/floating-panel/floating-panel-stage-trigger.d.ts +8 -0
- package/dist/components/floating-panel/floating-panel-stage-trigger.js +17 -0
- package/dist/components/floating-panel/floating-panel-title.cjs +19 -0
- package/dist/components/floating-panel/floating-panel-title.d.cts +7 -0
- package/dist/components/floating-panel/floating-panel-title.d.ts +7 -0
- package/dist/components/floating-panel/floating-panel-title.js +15 -0
- package/dist/components/floating-panel/floating-panel-trigger.cjs +28 -0
- package/dist/components/floating-panel/floating-panel-trigger.d.cts +7 -0
- package/dist/components/floating-panel/floating-panel-trigger.d.ts +7 -0
- package/dist/components/floating-panel/floating-panel-trigger.js +24 -0
- package/dist/components/floating-panel/floating-panel.anatomy.d.cts +1 -0
- package/dist/components/floating-panel/floating-panel.anatomy.d.ts +1 -0
- package/dist/components/floating-panel/floating-panel.cjs +35 -0
- package/dist/components/floating-panel/floating-panel.d.cts +15 -0
- package/dist/components/floating-panel/floating-panel.d.ts +15 -0
- package/dist/components/floating-panel/floating-panel.js +14 -0
- package/dist/components/floating-panel/index.cjs +46 -0
- package/dist/components/floating-panel/index.d.cts +19 -0
- package/dist/components/floating-panel/index.d.ts +19 -0
- package/dist/components/floating-panel/index.js +19 -0
- package/dist/components/floating-panel/use-floating-panel-context.cjs +15 -0
- package/dist/components/floating-panel/use-floating-panel-context.d.cts +5 -0
- package/dist/components/floating-panel/use-floating-panel-context.d.ts +5 -0
- package/dist/components/floating-panel/use-floating-panel-context.js +10 -0
- package/dist/components/floating-panel/use-floating-panel.cjs +44 -0
- package/dist/components/floating-panel/use-floating-panel.d.cts +8 -0
- package/dist/components/floating-panel/use-floating-panel.d.ts +8 -0
- package/dist/components/floating-panel/use-floating-panel.js +21 -0
- package/dist/components/index.cjs +105 -0
- package/dist/components/index.d.cts +3 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +51 -0
- package/dist/components/listbox/index.cjs +44 -0
- package/dist/components/listbox/index.d.cts +18 -0
- package/dist/components/listbox/index.d.ts +18 -0
- package/dist/components/listbox/index.js +18 -0
- package/dist/components/listbox/listbox-content.cjs +19 -0
- package/dist/components/listbox/listbox-content.d.cts +7 -0
- package/dist/components/listbox/listbox-content.d.ts +7 -0
- package/dist/components/listbox/listbox-content.js +15 -0
- package/dist/components/listbox/listbox-context.d.cts +7 -0
- package/dist/components/listbox/listbox-context.d.ts +7 -0
- package/dist/components/listbox/listbox-input.cjs +21 -0
- package/dist/components/listbox/listbox-input.d.cts +8 -0
- package/dist/components/listbox/listbox-input.d.ts +8 -0
- package/dist/components/listbox/listbox-input.js +17 -0
- package/dist/components/listbox/listbox-item-group-label.cjs +21 -0
- package/dist/components/listbox/listbox-item-group-label.d.cts +7 -0
- package/dist/components/listbox/listbox-item-group-label.d.ts +7 -0
- package/dist/components/listbox/listbox-item-group-label.js +17 -0
- package/dist/components/listbox/listbox-item-group.cjs +24 -0
- package/dist/components/listbox/listbox-item-group.d.cts +7 -0
- package/dist/components/listbox/listbox-item-group.d.ts +7 -0
- package/dist/components/listbox/listbox-item-group.js +20 -0
- package/dist/components/listbox/listbox-item-indicator.cjs +21 -0
- package/dist/components/listbox/listbox-item-indicator.d.cts +7 -0
- package/dist/components/listbox/listbox-item-indicator.d.ts +7 -0
- package/dist/components/listbox/listbox-item-indicator.js +17 -0
- package/dist/components/listbox/listbox-item-text.cjs +21 -0
- package/dist/components/listbox/listbox-item-text.d.cts +7 -0
- package/dist/components/listbox/listbox-item-text.d.ts +7 -0
- package/dist/components/listbox/listbox-item-text.js +17 -0
- package/dist/components/listbox/listbox-item.cjs +24 -0
- package/dist/components/listbox/listbox-item.d.cts +8 -0
- package/dist/components/listbox/listbox-item.d.ts +8 -0
- package/dist/components/listbox/listbox-item.js +20 -0
- package/dist/components/listbox/listbox-label.cjs +19 -0
- package/dist/components/listbox/listbox-label.d.cts +7 -0
- package/dist/components/listbox/listbox-label.d.ts +7 -0
- package/dist/components/listbox/listbox-label.js +15 -0
- package/dist/components/listbox/listbox-root-provider.cjs +20 -0
- package/dist/components/listbox/listbox-root-provider.d.cts +14 -0
- package/dist/components/listbox/listbox-root-provider.d.ts +14 -0
- package/dist/components/listbox/listbox-root-provider.js +16 -0
- package/dist/components/listbox/listbox-root.cjs +42 -0
- package/dist/components/listbox/listbox-root.d.cts +11 -0
- package/dist/components/listbox/listbox-root.d.ts +11 -0
- package/dist/components/listbox/listbox-root.js +38 -0
- package/dist/components/listbox/listbox-value-text.cjs +20 -0
- package/dist/components/listbox/listbox-value-text.d.cts +11 -0
- package/dist/components/listbox/listbox-value-text.d.ts +11 -0
- package/dist/components/listbox/listbox-value-text.js +16 -0
- package/dist/components/listbox/listbox.anatomy.d.cts +1 -0
- package/dist/components/listbox/listbox.anatomy.d.ts +1 -0
- package/dist/components/listbox/listbox.cjs +29 -0
- package/dist/components/listbox/listbox.d.cts +12 -0
- package/dist/components/listbox/listbox.d.ts +12 -0
- package/dist/components/listbox/listbox.js +11 -0
- package/dist/components/listbox/use-listbox-context.cjs +15 -0
- package/dist/components/listbox/use-listbox-context.d.cts +6 -0
- package/dist/components/listbox/use-listbox-context.d.ts +6 -0
- package/dist/components/listbox/use-listbox-context.js +10 -0
- package/dist/components/listbox/use-listbox-item-context.cjs +15 -0
- package/dist/components/listbox/use-listbox-item-context.d.cts +5 -0
- package/dist/components/listbox/use-listbox-item-context.d.ts +5 -0
- package/dist/components/listbox/use-listbox-item-context.js +10 -0
- package/dist/components/listbox/use-listbox-item-group-props.cjs +15 -0
- package/dist/components/listbox/use-listbox-item-group-props.d.cts +5 -0
- package/dist/components/listbox/use-listbox-item-group-props.d.ts +5 -0
- package/dist/components/listbox/use-listbox-item-group-props.js +10 -0
- package/dist/components/listbox/use-listbox-item-props-context.cjs +15 -0
- package/dist/components/listbox/use-listbox-item-props-context.d.cts +3 -0
- package/dist/components/listbox/use-listbox-item-props-context.d.ts +3 -0
- package/dist/components/listbox/use-listbox-item-props-context.js +10 -0
- package/dist/components/listbox/use-listbox.cjs +45 -0
- package/dist/components/listbox/use-listbox.d.cts +13 -0
- package/dist/components/listbox/use-listbox.d.ts +13 -0
- package/dist/components/listbox/use-listbox.js +22 -0
- package/dist/components/toast/toaster.cjs +3 -1
- package/dist/components/toast/toaster.js +3 -1
- package/dist/components/toggle-group/toggle-group-root.cjs +1 -0
- package/dist/components/toggle-group/toggle-group-root.js +1 -0
- package/dist/index.cjs +105 -0
- package/dist/index.js +51 -0
- package/package.json +79 -76
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const collection = require('../collection.cjs');
|
|
6
|
+
const listboxContent = require('./listbox-content.cjs');
|
|
7
|
+
const listboxInput = require('./listbox-input.cjs');
|
|
8
|
+
const listboxItem = require('./listbox-item.cjs');
|
|
9
|
+
const listboxItemGroup = require('./listbox-item-group.cjs');
|
|
10
|
+
const listboxItemGroupLabel = require('./listbox-item-group-label.cjs');
|
|
11
|
+
const listboxItemIndicator = require('./listbox-item-indicator.cjs');
|
|
12
|
+
const listboxItemText = require('./listbox-item-text.cjs');
|
|
13
|
+
const listboxLabel = require('./listbox-label.cjs');
|
|
14
|
+
const listboxRoot = require('./listbox-root.cjs');
|
|
15
|
+
const listboxRootProvider = require('./listbox-root-provider.cjs');
|
|
16
|
+
const listboxValueText = require('./listbox-value-text.cjs');
|
|
17
|
+
const useListbox = require('./use-listbox.cjs');
|
|
18
|
+
const useListboxContext = require('./use-listbox-context.cjs');
|
|
19
|
+
const useListboxItemContext = require('./use-listbox-item-context.cjs');
|
|
20
|
+
const listbox$1 = require('./listbox.cjs');
|
|
21
|
+
const listbox = require('@zag-js/listbox');
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
exports.createListCollection = collection.createListCollection;
|
|
26
|
+
exports.ListboxContent = listboxContent.ListboxContent;
|
|
27
|
+
exports.ListboxInput = listboxInput.ListboxInput;
|
|
28
|
+
exports.ListboxItem = listboxItem.ListboxItem;
|
|
29
|
+
exports.ListboxItemGroup = listboxItemGroup.ListboxItemGroup;
|
|
30
|
+
exports.ListboxItemGroupLabel = listboxItemGroupLabel.ListboxItemGroupLabel;
|
|
31
|
+
exports.ListboxItemIndicator = listboxItemIndicator.ListboxItemIndicator;
|
|
32
|
+
exports.ListboxItemText = listboxItemText.ListboxItemText;
|
|
33
|
+
exports.ListboxLabel = listboxLabel.ListboxLabel;
|
|
34
|
+
exports.ListboxRoot = listboxRoot.ListboxRoot;
|
|
35
|
+
exports.ListboxRootProvider = listboxRootProvider.ListboxRootProvider;
|
|
36
|
+
exports.ListboxValueText = listboxValueText.ListboxValueText;
|
|
37
|
+
exports.useListbox = useListbox.useListbox;
|
|
38
|
+
exports.useListboxContext = useListboxContext.useListboxContext;
|
|
39
|
+
exports.useListboxItemContext = useListboxItemContext.useListboxItemContext;
|
|
40
|
+
exports.Listbox = listbox$1;
|
|
41
|
+
Object.defineProperty(exports, "listboxAnatomy", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: () => listbox.anatomy
|
|
44
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type { HighlightChangeDetails as ListboxHighlightChangeDetails, ScrollToIndexDetails as ListboxScrollToIndexDetails, SelectionDetails as ListboxSelectionDetails, SelectionMode as ListboxSelectionMode, ValueChangeDetails as ListboxValueChangeDetails, } from '@zag-js/listbox';
|
|
2
|
+
export { createListCollection, type CollectionItem, type ListCollection } from '../collection';
|
|
3
|
+
export { ListboxContent, type ListboxContentBaseProps, type ListboxContentProps } from './listbox-content';
|
|
4
|
+
export { ListboxInput, type ListboxInputBaseProps, type ListboxInputProps } from './listbox-input';
|
|
5
|
+
export { ListboxItem, type ListboxItemBaseProps, type ListboxItemProps } from './listbox-item';
|
|
6
|
+
export { ListboxItemGroup, type ListboxItemGroupBaseProps, type ListboxItemGroupProps } from './listbox-item-group';
|
|
7
|
+
export { ListboxItemGroupLabel, type ListboxItemGroupLabelBaseProps, type ListboxItemGroupLabelProps, } from './listbox-item-group-label';
|
|
8
|
+
export { ListboxItemIndicator, type ListboxItemIndicatorBaseProps, type ListboxItemIndicatorProps, } from './listbox-item-indicator';
|
|
9
|
+
export { ListboxItemText, type ListboxItemTextBaseProps, type ListboxItemTextProps } from './listbox-item-text';
|
|
10
|
+
export { ListboxLabel, type ListboxLabelBaseProps, type ListboxLabelProps } from './listbox-label';
|
|
11
|
+
export { ListboxRoot, type ListboxRootBaseProps, type ListboxRootProps } from './listbox-root';
|
|
12
|
+
export { ListboxRootProvider, type ListboxRootProviderBaseProps, type ListboxRootProviderProps, } from './listbox-root-provider';
|
|
13
|
+
export { ListboxValueText, type ListboxValueTextBaseProps, type ListboxValueTextProps } from './listbox-value-text';
|
|
14
|
+
export { listboxAnatomy } from './listbox.anatomy';
|
|
15
|
+
export { useListbox, type UseListboxProps, type UseListboxReturn } from './use-listbox';
|
|
16
|
+
export { useListboxContext, type UseListboxContext } from './use-listbox-context';
|
|
17
|
+
export { useListboxItemContext, type UseListboxItemContext } from './use-listbox-item-context';
|
|
18
|
+
export * as Listbox from './listbox';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type { HighlightChangeDetails as ListboxHighlightChangeDetails, ScrollToIndexDetails as ListboxScrollToIndexDetails, SelectionDetails as ListboxSelectionDetails, SelectionMode as ListboxSelectionMode, ValueChangeDetails as ListboxValueChangeDetails, } from '@zag-js/listbox';
|
|
2
|
+
export { createListCollection, type CollectionItem, type ListCollection } from '../collection';
|
|
3
|
+
export { ListboxContent, type ListboxContentBaseProps, type ListboxContentProps } from './listbox-content';
|
|
4
|
+
export { ListboxInput, type ListboxInputBaseProps, type ListboxInputProps } from './listbox-input';
|
|
5
|
+
export { ListboxItem, type ListboxItemBaseProps, type ListboxItemProps } from './listbox-item';
|
|
6
|
+
export { ListboxItemGroup, type ListboxItemGroupBaseProps, type ListboxItemGroupProps } from './listbox-item-group';
|
|
7
|
+
export { ListboxItemGroupLabel, type ListboxItemGroupLabelBaseProps, type ListboxItemGroupLabelProps, } from './listbox-item-group-label';
|
|
8
|
+
export { ListboxItemIndicator, type ListboxItemIndicatorBaseProps, type ListboxItemIndicatorProps, } from './listbox-item-indicator';
|
|
9
|
+
export { ListboxItemText, type ListboxItemTextBaseProps, type ListboxItemTextProps } from './listbox-item-text';
|
|
10
|
+
export { ListboxLabel, type ListboxLabelBaseProps, type ListboxLabelProps } from './listbox-label';
|
|
11
|
+
export { ListboxRoot, type ListboxRootBaseProps, type ListboxRootProps } from './listbox-root';
|
|
12
|
+
export { ListboxRootProvider, type ListboxRootProviderBaseProps, type ListboxRootProviderProps, } from './listbox-root-provider';
|
|
13
|
+
export { ListboxValueText, type ListboxValueTextBaseProps, type ListboxValueTextProps } from './listbox-value-text';
|
|
14
|
+
export { listboxAnatomy } from './listbox.anatomy';
|
|
15
|
+
export { useListbox, type UseListboxProps, type UseListboxReturn } from './use-listbox';
|
|
16
|
+
export { useListboxContext, type UseListboxContext } from './use-listbox-context';
|
|
17
|
+
export { useListboxItemContext, type UseListboxItemContext } from './use-listbox-item-context';
|
|
18
|
+
export * as Listbox from './listbox';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { createListCollection } from '../collection.js';
|
|
2
|
+
export { ListboxContent } from './listbox-content.js';
|
|
3
|
+
export { ListboxInput } from './listbox-input.js';
|
|
4
|
+
export { ListboxItem } from './listbox-item.js';
|
|
5
|
+
export { ListboxItemGroup } from './listbox-item-group.js';
|
|
6
|
+
export { ListboxItemGroupLabel } from './listbox-item-group-label.js';
|
|
7
|
+
export { ListboxItemIndicator } from './listbox-item-indicator.js';
|
|
8
|
+
export { ListboxItemText } from './listbox-item-text.js';
|
|
9
|
+
export { ListboxLabel } from './listbox-label.js';
|
|
10
|
+
export { ListboxRoot } from './listbox-root.js';
|
|
11
|
+
export { ListboxRootProvider } from './listbox-root-provider.js';
|
|
12
|
+
export { ListboxValueText } from './listbox-value-text.js';
|
|
13
|
+
export { useListbox } from './use-listbox.js';
|
|
14
|
+
export { useListboxContext } from './use-listbox-context.js';
|
|
15
|
+
export { useListboxItemContext } from './use-listbox-item-context.js';
|
|
16
|
+
import * as listbox from './listbox.js';
|
|
17
|
+
export { listbox as Listbox };
|
|
18
|
+
export { anatomy as listboxAnatomy } from '@zag-js/listbox';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const react$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const factory = require('../factory.cjs');
|
|
10
|
+
const useListboxContext = require('./use-listbox-context.cjs');
|
|
11
|
+
|
|
12
|
+
const ListboxContent = react.forwardRef((props, ref) => {
|
|
13
|
+
const listbox = useListboxContext.useListboxContext();
|
|
14
|
+
const mergedProps = react$1.mergeProps(listbox.getContentProps(), props);
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
16
|
+
});
|
|
17
|
+
ListboxContent.displayName = "ListboxContent";
|
|
18
|
+
|
|
19
|
+
exports.ListboxContent = ListboxContent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface ListboxContentBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxContentProps extends HTMLProps<'div'>, ListboxContentBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const ListboxContent: ForwardRefExoticComponent<ListboxContentProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface ListboxContentBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxContentProps extends HTMLProps<'div'>, ListboxContentBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const ListboxContent: ForwardRefExoticComponent<ListboxContentProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { ark } from '../factory.js';
|
|
6
|
+
import { useListboxContext } from './use-listbox-context.js';
|
|
7
|
+
|
|
8
|
+
const ListboxContent = forwardRef((props, ref) => {
|
|
9
|
+
const listbox = useListboxContext();
|
|
10
|
+
const mergedProps = mergeProps(listbox.getContentProps(), props);
|
|
11
|
+
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
12
|
+
});
|
|
13
|
+
ListboxContent.displayName = "ListboxContent";
|
|
14
|
+
|
|
15
|
+
export { ListboxContent };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CollectionItem } from '../collection';
|
|
3
|
+
import { UseListboxContext } from './use-listbox-context';
|
|
4
|
+
export interface ListboxContextProps<T extends CollectionItem> {
|
|
5
|
+
children: (context: UseListboxContext<T>) => ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const ListboxContext: <T extends CollectionItem>(props: ListboxContextProps<T>) => ReactNode;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CollectionItem } from '../collection';
|
|
3
|
+
import { UseListboxContext } from './use-listbox-context';
|
|
4
|
+
export interface ListboxContextProps<T extends CollectionItem> {
|
|
5
|
+
children: (context: UseListboxContext<T>) => ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const ListboxContext: <T extends CollectionItem>(props: ListboxContextProps<T>) => ReactNode;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const react$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
10
|
+
const factory = require('../factory.cjs');
|
|
11
|
+
const useListboxContext = require('./use-listbox-context.cjs');
|
|
12
|
+
|
|
13
|
+
const ListboxInput = react.forwardRef((props, ref) => {
|
|
14
|
+
const [inputProps, localProps] = createSplitProps.createSplitProps()(props, ["autoHighlight"]);
|
|
15
|
+
const listbox = useListboxContext.useListboxContext();
|
|
16
|
+
const mergedProps = react$1.mergeProps(listbox.getInputProps(inputProps), localProps);
|
|
17
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.input, { ...mergedProps, ref });
|
|
18
|
+
});
|
|
19
|
+
ListboxInput.displayName = "ListboxInput";
|
|
20
|
+
|
|
21
|
+
exports.ListboxInput = ListboxInput;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InputProps } from '@zag-js/listbox';
|
|
2
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
3
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
+
export interface ListboxInputBaseProps extends InputProps, PolymorphicProps {
|
|
5
|
+
}
|
|
6
|
+
export interface ListboxInputProps extends HTMLProps<'input'>, ListboxInputBaseProps {
|
|
7
|
+
}
|
|
8
|
+
export declare const ListboxInput: ForwardRefExoticComponent<ListboxInputProps & RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InputProps } from '@zag-js/listbox';
|
|
2
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
3
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
+
export interface ListboxInputBaseProps extends InputProps, PolymorphicProps {
|
|
5
|
+
}
|
|
6
|
+
export interface ListboxInputProps extends HTMLProps<'input'>, ListboxInputBaseProps {
|
|
7
|
+
}
|
|
8
|
+
export declare const ListboxInput: ForwardRefExoticComponent<ListboxInputProps & RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { createSplitProps } from '../../utils/create-split-props.js';
|
|
6
|
+
import { ark } from '../factory.js';
|
|
7
|
+
import { useListboxContext } from './use-listbox-context.js';
|
|
8
|
+
|
|
9
|
+
const ListboxInput = forwardRef((props, ref) => {
|
|
10
|
+
const [inputProps, localProps] = createSplitProps()(props, ["autoHighlight"]);
|
|
11
|
+
const listbox = useListboxContext();
|
|
12
|
+
const mergedProps = mergeProps(listbox.getInputProps(inputProps), localProps);
|
|
13
|
+
return /* @__PURE__ */ jsx(ark.input, { ...mergedProps, ref });
|
|
14
|
+
});
|
|
15
|
+
ListboxInput.displayName = "ListboxInput";
|
|
16
|
+
|
|
17
|
+
export { ListboxInput };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const react$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const factory = require('../factory.cjs');
|
|
10
|
+
const useListboxContext = require('./use-listbox-context.cjs');
|
|
11
|
+
const useListboxItemGroupProps = require('./use-listbox-item-group-props.cjs');
|
|
12
|
+
|
|
13
|
+
const ListboxItemGroupLabel = react.forwardRef((props, ref) => {
|
|
14
|
+
const listbox = useListboxContext.useListboxContext();
|
|
15
|
+
const itemGroupProps = useListboxItemGroupProps.useListboxItemGroupPropsContext();
|
|
16
|
+
const mergedProps = react$1.mergeProps(listbox.getItemGroupLabelProps({ htmlFor: itemGroupProps.id }), props);
|
|
17
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
18
|
+
});
|
|
19
|
+
ListboxItemGroupLabel.displayName = "ListboxItemGroupLabel";
|
|
20
|
+
|
|
21
|
+
exports.ListboxItemGroupLabel = ListboxItemGroupLabel;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface ListboxItemGroupLabelBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxItemGroupLabelProps extends HTMLProps<'div'>, ListboxItemGroupLabelBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const ListboxItemGroupLabel: ForwardRefExoticComponent<ListboxItemGroupLabelProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface ListboxItemGroupLabelBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxItemGroupLabelProps extends HTMLProps<'div'>, ListboxItemGroupLabelBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const ListboxItemGroupLabel: ForwardRefExoticComponent<ListboxItemGroupLabelProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { ark } from '../factory.js';
|
|
6
|
+
import { useListboxContext } from './use-listbox-context.js';
|
|
7
|
+
import { useListboxItemGroupPropsContext } from './use-listbox-item-group-props.js';
|
|
8
|
+
|
|
9
|
+
const ListboxItemGroupLabel = forwardRef((props, ref) => {
|
|
10
|
+
const listbox = useListboxContext();
|
|
11
|
+
const itemGroupProps = useListboxItemGroupPropsContext();
|
|
12
|
+
const mergedProps = mergeProps(listbox.getItemGroupLabelProps({ htmlFor: itemGroupProps.id }), props);
|
|
13
|
+
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
14
|
+
});
|
|
15
|
+
ListboxItemGroupLabel.displayName = "ListboxItemGroupLabel";
|
|
16
|
+
|
|
17
|
+
export { ListboxItemGroupLabel };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const react$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
10
|
+
const factory = require('../factory.cjs');
|
|
11
|
+
const useListboxContext = require('./use-listbox-context.cjs');
|
|
12
|
+
const useListboxItemGroupProps = require('./use-listbox-item-group-props.cjs');
|
|
13
|
+
|
|
14
|
+
const ListboxItemGroup = react.forwardRef((props, ref) => {
|
|
15
|
+
const id = react.useId();
|
|
16
|
+
const [_itemGroupProps, localProps] = createSplitProps.createSplitProps()(props, ["id"]);
|
|
17
|
+
const itemGroupProps = { id, ..._itemGroupProps };
|
|
18
|
+
const listbox = useListboxContext.useListboxContext();
|
|
19
|
+
const mergedProps = react$1.mergeProps(listbox.getItemGroupProps(itemGroupProps), localProps);
|
|
20
|
+
return /* @__PURE__ */ jsxRuntime.jsx(useListboxItemGroupProps.ListboxItemGroupPropsProvider, { value: itemGroupProps, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref }) });
|
|
21
|
+
});
|
|
22
|
+
ListboxItemGroup.displayName = "ListboxItemGroup";
|
|
23
|
+
|
|
24
|
+
exports.ListboxItemGroup = ListboxItemGroup;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface ListboxItemGroupBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxItemGroupProps extends HTMLProps<'div'>, ListboxItemGroupBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const ListboxItemGroup: ForwardRefExoticComponent<ListboxItemGroupProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface ListboxItemGroupBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxItemGroupProps extends HTMLProps<'div'>, ListboxItemGroupBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const ListboxItemGroup: ForwardRefExoticComponent<ListboxItemGroupProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef, useId } from 'react';
|
|
5
|
+
import { createSplitProps } from '../../utils/create-split-props.js';
|
|
6
|
+
import { ark } from '../factory.js';
|
|
7
|
+
import { useListboxContext } from './use-listbox-context.js';
|
|
8
|
+
import { ListboxItemGroupPropsProvider } from './use-listbox-item-group-props.js';
|
|
9
|
+
|
|
10
|
+
const ListboxItemGroup = forwardRef((props, ref) => {
|
|
11
|
+
const id = useId();
|
|
12
|
+
const [_itemGroupProps, localProps] = createSplitProps()(props, ["id"]);
|
|
13
|
+
const itemGroupProps = { id, ..._itemGroupProps };
|
|
14
|
+
const listbox = useListboxContext();
|
|
15
|
+
const mergedProps = mergeProps(listbox.getItemGroupProps(itemGroupProps), localProps);
|
|
16
|
+
return /* @__PURE__ */ jsx(ListboxItemGroupPropsProvider, { value: itemGroupProps, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) });
|
|
17
|
+
});
|
|
18
|
+
ListboxItemGroup.displayName = "ListboxItemGroup";
|
|
19
|
+
|
|
20
|
+
export { ListboxItemGroup };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const react$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const factory = require('../factory.cjs');
|
|
10
|
+
const useListboxContext = require('./use-listbox-context.cjs');
|
|
11
|
+
const useListboxItemPropsContext = require('./use-listbox-item-props-context.cjs');
|
|
12
|
+
|
|
13
|
+
const ListboxItemIndicator = react.forwardRef((props, ref) => {
|
|
14
|
+
const listbox = useListboxContext.useListboxContext();
|
|
15
|
+
const itemProps = useListboxItemPropsContext.useListboxItemPropsContext();
|
|
16
|
+
const mergedProps = react$1.mergeProps(listbox.getItemIndicatorProps(itemProps), props);
|
|
17
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
18
|
+
});
|
|
19
|
+
ListboxItemIndicator.displayName = "ListboxItemIndicator";
|
|
20
|
+
|
|
21
|
+
exports.ListboxItemIndicator = ListboxItemIndicator;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface ListboxItemIndicatorBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxItemIndicatorProps extends HTMLProps<'div'>, ListboxItemIndicatorBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const ListboxItemIndicator: ForwardRefExoticComponent<ListboxItemIndicatorProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface ListboxItemIndicatorBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxItemIndicatorProps extends HTMLProps<'div'>, ListboxItemIndicatorBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const ListboxItemIndicator: ForwardRefExoticComponent<ListboxItemIndicatorProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { ark } from '../factory.js';
|
|
6
|
+
import { useListboxContext } from './use-listbox-context.js';
|
|
7
|
+
import { useListboxItemPropsContext } from './use-listbox-item-props-context.js';
|
|
8
|
+
|
|
9
|
+
const ListboxItemIndicator = forwardRef((props, ref) => {
|
|
10
|
+
const listbox = useListboxContext();
|
|
11
|
+
const itemProps = useListboxItemPropsContext();
|
|
12
|
+
const mergedProps = mergeProps(listbox.getItemIndicatorProps(itemProps), props);
|
|
13
|
+
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
14
|
+
});
|
|
15
|
+
ListboxItemIndicator.displayName = "ListboxItemIndicator";
|
|
16
|
+
|
|
17
|
+
export { ListboxItemIndicator };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const react$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const factory = require('../factory.cjs');
|
|
10
|
+
const useListboxContext = require('./use-listbox-context.cjs');
|
|
11
|
+
const useListboxItemPropsContext = require('./use-listbox-item-props-context.cjs');
|
|
12
|
+
|
|
13
|
+
const ListboxItemText = react.forwardRef((props, ref) => {
|
|
14
|
+
const listbox = useListboxContext.useListboxContext();
|
|
15
|
+
const itemProps = useListboxItemPropsContext.useListboxItemPropsContext();
|
|
16
|
+
const mergedProps = react$1.mergeProps(listbox.getItemTextProps(itemProps), props);
|
|
17
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
18
|
+
});
|
|
19
|
+
ListboxItemText.displayName = "ListboxItemText";
|
|
20
|
+
|
|
21
|
+
exports.ListboxItemText = ListboxItemText;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface ListboxItemTextBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxItemTextProps extends HTMLProps<'div'>, ListboxItemTextBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const ListboxItemText: ForwardRefExoticComponent<ListboxItemTextProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface ListboxItemTextBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxItemTextProps extends HTMLProps<'div'>, ListboxItemTextBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const ListboxItemText: ForwardRefExoticComponent<ListboxItemTextProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { ark } from '../factory.js';
|
|
6
|
+
import { useListboxContext } from './use-listbox-context.js';
|
|
7
|
+
import { useListboxItemPropsContext } from './use-listbox-item-props-context.js';
|
|
8
|
+
|
|
9
|
+
const ListboxItemText = forwardRef((props, ref) => {
|
|
10
|
+
const listbox = useListboxContext();
|
|
11
|
+
const itemProps = useListboxItemPropsContext();
|
|
12
|
+
const mergedProps = mergeProps(listbox.getItemTextProps(itemProps), props);
|
|
13
|
+
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
14
|
+
});
|
|
15
|
+
ListboxItemText.displayName = "ListboxItemText";
|
|
16
|
+
|
|
17
|
+
export { ListboxItemText };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const react$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
10
|
+
const factory = require('../factory.cjs');
|
|
11
|
+
const useListboxContext = require('./use-listbox-context.cjs');
|
|
12
|
+
const useListboxItemContext = require('./use-listbox-item-context.cjs');
|
|
13
|
+
const useListboxItemPropsContext = require('./use-listbox-item-props-context.cjs');
|
|
14
|
+
|
|
15
|
+
const ListboxItem = react.forwardRef((props, ref) => {
|
|
16
|
+
const [itemProps, localProps] = createSplitProps.createSplitProps()(props, ["item", "highlightOnHover"]);
|
|
17
|
+
const listbox = useListboxContext.useListboxContext();
|
|
18
|
+
const mergedProps = react$1.mergeProps(listbox.getItemProps(itemProps), localProps);
|
|
19
|
+
const itemState = listbox.getItemState(itemProps);
|
|
20
|
+
return /* @__PURE__ */ jsxRuntime.jsx(useListboxItemPropsContext.ListboxItemPropsProvider, { value: itemProps, children: /* @__PURE__ */ jsxRuntime.jsx(useListboxItemContext.ListboxItemProvider, { value: itemState, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref }) }) });
|
|
21
|
+
});
|
|
22
|
+
ListboxItem.displayName = "ListboxItem";
|
|
23
|
+
|
|
24
|
+
exports.ListboxItem = ListboxItem;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ItemProps } from '@zag-js/listbox';
|
|
2
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
3
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
+
export interface ListboxItemBaseProps extends ItemProps, PolymorphicProps {
|
|
5
|
+
}
|
|
6
|
+
export interface ListboxItemProps extends HTMLProps<'div'>, ListboxItemBaseProps {
|
|
7
|
+
}
|
|
8
|
+
export declare const ListboxItem: ForwardRefExoticComponent<ListboxItemProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ItemProps } from '@zag-js/listbox';
|
|
2
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
3
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
+
export interface ListboxItemBaseProps extends ItemProps, PolymorphicProps {
|
|
5
|
+
}
|
|
6
|
+
export interface ListboxItemProps extends HTMLProps<'div'>, ListboxItemBaseProps {
|
|
7
|
+
}
|
|
8
|
+
export declare const ListboxItem: ForwardRefExoticComponent<ListboxItemProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { createSplitProps } from '../../utils/create-split-props.js';
|
|
6
|
+
import { ark } from '../factory.js';
|
|
7
|
+
import { useListboxContext } from './use-listbox-context.js';
|
|
8
|
+
import { ListboxItemProvider } from './use-listbox-item-context.js';
|
|
9
|
+
import { ListboxItemPropsProvider } from './use-listbox-item-props-context.js';
|
|
10
|
+
|
|
11
|
+
const ListboxItem = forwardRef((props, ref) => {
|
|
12
|
+
const [itemProps, localProps] = createSplitProps()(props, ["item", "highlightOnHover"]);
|
|
13
|
+
const listbox = useListboxContext();
|
|
14
|
+
const mergedProps = mergeProps(listbox.getItemProps(itemProps), localProps);
|
|
15
|
+
const itemState = listbox.getItemState(itemProps);
|
|
16
|
+
return /* @__PURE__ */ jsx(ListboxItemPropsProvider, { value: itemProps, children: /* @__PURE__ */ jsx(ListboxItemProvider, { value: itemState, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) }) });
|
|
17
|
+
});
|
|
18
|
+
ListboxItem.displayName = "ListboxItem";
|
|
19
|
+
|
|
20
|
+
export { ListboxItem };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const react$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const factory = require('../factory.cjs');
|
|
10
|
+
const useListboxContext = require('./use-listbox-context.cjs');
|
|
11
|
+
|
|
12
|
+
const ListboxLabel = react.forwardRef((props, ref) => {
|
|
13
|
+
const listbox = useListboxContext.useListboxContext();
|
|
14
|
+
const mergedProps = react$1.mergeProps(listbox.getLabelProps(), props);
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.label, { ...mergedProps, ref });
|
|
16
|
+
});
|
|
17
|
+
ListboxLabel.displayName = "ListboxLabel";
|
|
18
|
+
|
|
19
|
+
exports.ListboxLabel = ListboxLabel;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface ListboxLabelBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxLabelProps extends HTMLProps<'label'>, ListboxLabelBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const ListboxLabel: ForwardRefExoticComponent<ListboxLabelProps & RefAttributes<HTMLLabelElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface ListboxLabelBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxLabelProps extends HTMLProps<'label'>, ListboxLabelBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const ListboxLabel: ForwardRefExoticComponent<ListboxLabelProps & RefAttributes<HTMLLabelElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { ark } from '../factory.js';
|
|
6
|
+
import { useListboxContext } from './use-listbox-context.js';
|
|
7
|
+
|
|
8
|
+
const ListboxLabel = forwardRef((props, ref) => {
|
|
9
|
+
const listbox = useListboxContext();
|
|
10
|
+
const mergedProps = mergeProps(listbox.getLabelProps(), props);
|
|
11
|
+
return /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref });
|
|
12
|
+
});
|
|
13
|
+
ListboxLabel.displayName = "ListboxLabel";
|
|
14
|
+
|
|
15
|
+
export { ListboxLabel };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const react$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
10
|
+
const factory = require('../factory.cjs');
|
|
11
|
+
const useListboxContext = require('./use-listbox-context.cjs');
|
|
12
|
+
|
|
13
|
+
const ListboxImpl = (props, ref) => {
|
|
14
|
+
const [{ value: listbox }, localProps] = createSplitProps.createSplitProps()(props, ["value"]);
|
|
15
|
+
const mergedProps = react$1.mergeProps(listbox.getRootProps(), localProps);
|
|
16
|
+
return /* @__PURE__ */ jsxRuntime.jsx(useListboxContext.ListboxProvider, { value: listbox, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref }) });
|
|
17
|
+
};
|
|
18
|
+
const ListboxRootProvider = react.forwardRef(ListboxImpl);
|
|
19
|
+
|
|
20
|
+
exports.ListboxRootProvider = ListboxRootProvider;
|