@dicehub/kappa 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +2 -2
- package/THIRD_PARTY_NOTICES.md +14 -0
- package/dist/_vendor/ark-ui-vue/LICENSE +21 -0
- package/dist/_vendor/ark-ui-vue/components/collection/grid-collection.d.ts +3 -0
- package/dist/_vendor/ark-ui-vue/components/collection/index.d.ts +6 -0
- package/dist/_vendor/ark-ui-vue/components/collection/list-collection.d.ts +3 -0
- package/dist/_vendor/ark-ui-vue/components/collection/tree-collection.d.ts +4 -0
- package/dist/_vendor/ark-ui-vue/components/collection/use-async-list.d.ts +7 -0
- package/dist/_vendor/ark-ui-vue/components/collection/use-list-collection.d.ts +88 -0
- package/dist/_vendor/ark-ui-vue/components/collection/use-list-selection.d.ts +92 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-area-background.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-area-thumb.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-area.vue.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-channel-input.vue.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-channel-slider-label.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-channel-slider-thumb.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-channel-slider-track.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-channel-slider-value-text.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-channel-slider.vue.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-content.vue.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-context.vue.d.ts +16 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-control.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-eye-dropper-trigger.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-format-select.vue.d.ts +13 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-format-trigger.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-hidden-input.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-label.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-positioner.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-root-provider.vue.d.ts +34 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-root.vue.d.ts +61 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-swatch-group.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-swatch-indicator.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-swatch-trigger.vue.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-swatch.vue.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-transparency-grid.vue.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-trigger.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-value-swatch.vue.d.ts +23 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-value-text.vue.d.ts +22 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker-view.vue.d.ts +22 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker.anatomy.d.ts +2 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker.d.ts +30 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/color-picker.types.d.ts +144 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/index.d.ts +35 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/use-color-picker-context.d.ts +4 -0
- package/dist/_vendor/ark-ui-vue/components/color-picker/use-color-picker.d.ts +14 -0
- package/dist/_vendor/ark-ui-vue/components/factory.d.ts +24 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/file-upload-clear-trigger.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/file-upload-context.vue.d.ts +16 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/file-upload-dropzone.vue.d.ts +23 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/file-upload-hidden-input.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/file-upload-item-delete-trigger.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/file-upload-item-group.vue.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/file-upload-item-name.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/file-upload-item-preview-image.vue.d.ts +13 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/file-upload-item-preview.vue.d.ts +27 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/file-upload-item-size-text.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/file-upload-item.vue.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/file-upload-label.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/file-upload-root-provider.vue.d.ts +24 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/file-upload-root.vue.d.ts +42 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/file-upload-trigger.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/file-upload.anatomy.d.ts +1 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/file-upload.d.ts +16 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/file-upload.types.d.ts +123 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/index.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/use-file-upload-context.d.ts +4 -0
- package/dist/_vendor/ark-ui-vue/components/file-upload/use-file-upload.d.ts +10 -0
- package/dist/_vendor/ark-ui-vue/components/highlight/highlight.types.d.ts +31 -0
- package/dist/_vendor/ark-ui-vue/components/highlight/highlight.vue.d.ts +17 -0
- package/dist/_vendor/ark-ui-vue/components/highlight/index.d.ts +2 -0
- package/dist/_vendor/ark-ui-vue/components/highlight/use-highlight.d.ts +4 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/index.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/listbox-content.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/listbox-context.vue.d.ts +27 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/listbox-empty.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/listbox-input.vue.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/listbox-item-context.vue.d.ts +16 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/listbox-item-group-label.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/listbox-item-group.vue.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/listbox-item-indicator.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/listbox-item-text.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/listbox-item.vue.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/listbox-label.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/listbox-root-provider.vue.d.ts +37 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/listbox-root.vue.d.ts +43 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/listbox-value-text.vue.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/listbox.anatomy.d.ts +2 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/listbox.d.ts +15 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/listbox.types.d.ts +109 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/use-listbox-context.d.ts +5 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/use-listbox-item-context.d.ts +5 -0
- package/dist/_vendor/ark-ui-vue/components/listbox/use-listbox.d.ts +19 -0
- package/dist/_vendor/ark-ui-vue/components/presence/index.d.ts +3 -0
- package/dist/_vendor/ark-ui-vue/components/presence/presence.types.d.ts +37 -0
- package/dist/_vendor/ark-ui-vue/components/presence/presence.vue.d.ts +35 -0
- package/dist/_vendor/ark-ui-vue/components/presence/use-presence-context.d.ts +4 -0
- package/dist/_vendor/ark-ui-vue/components/presence/use-presence.d.ts +31 -0
- package/dist/_vendor/ark-ui-vue/components/progress/index.d.ts +16 -0
- package/dist/_vendor/ark-ui-vue/components/progress/progress-circle-range.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/progress/progress-circle-track.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/progress/progress-circle.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/progress/progress-context.vue.d.ts +16 -0
- package/dist/_vendor/ark-ui-vue/components/progress/progress-label.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/progress/progress-range.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/progress/progress-root-provider.vue.d.ts +24 -0
- package/dist/_vendor/ark-ui-vue/components/progress/progress-root.vue.d.ts +23 -0
- package/dist/_vendor/ark-ui-vue/components/progress/progress-track.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/progress/progress-value-text.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/progress/progress-view.vue.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/progress/progress.anatomy.d.ts +1 -0
- package/dist/_vendor/ark-ui-vue/components/progress/progress.d.ts +12 -0
- package/dist/_vendor/ark-ui-vue/components/progress/progress.types.d.ts +65 -0
- package/dist/_vendor/ark-ui-vue/components/progress/use-progress-context.d.ts +4 -0
- package/dist/_vendor/ark-ui-vue/components/progress/use-progress.d.ts +14 -0
- package/dist/_vendor/ark-ui-vue/components/select/index.d.ts +26 -0
- package/dist/_vendor/ark-ui-vue/components/select/select-clear-trigger.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/select/select-content.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/select/select-context.vue.d.ts +27 -0
- package/dist/_vendor/ark-ui-vue/components/select/select-control.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/select/select-hidden-select.vue.d.ts +13 -0
- package/dist/_vendor/ark-ui-vue/components/select/select-indicator.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/select/select-item-context.vue.d.ts +16 -0
- package/dist/_vendor/ark-ui-vue/components/select/select-item-group-label.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/select/select-item-group.vue.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/select/select-item-indicator.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/select/select-item-text.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/select/select-item.vue.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/select/select-label.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/select/select-list.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/select/select-positioner.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/select/select-root-provider.vue.d.ts +44 -0
- package/dist/_vendor/ark-ui-vue/components/select/select-root.vue.d.ts +51 -0
- package/dist/_vendor/ark-ui-vue/components/select/select-trigger.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/select/select-value-text.vue.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/select/select.anatomy.d.ts +1 -0
- package/dist/_vendor/ark-ui-vue/components/select/select.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/select/select.types.d.ts +165 -0
- package/dist/_vendor/ark-ui-vue/components/select/use-select-context.d.ts +5 -0
- package/dist/_vendor/ark-ui-vue/components/select/use-select-item-context.d.ts +5 -0
- package/dist/_vendor/ark-ui-vue/components/select/use-select.d.ts +19 -0
- package/dist/_vendor/ark-ui-vue/components/slider/index.d.ts +18 -0
- package/dist/_vendor/ark-ui-vue/components/slider/slider-context.vue.d.ts +16 -0
- package/dist/_vendor/ark-ui-vue/components/slider/slider-control.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/slider/slider-dragging-indicator.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/slider/slider-hidden-input.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/slider/slider-label.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/slider/slider-marker-group.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/slider/slider-marker.vue.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/slider/slider-range.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/slider/slider-root-provider.vue.d.ts +24 -0
- package/dist/_vendor/ark-ui-vue/components/slider/slider-root.vue.d.ts +38 -0
- package/dist/_vendor/ark-ui-vue/components/slider/slider-thumb.vue.d.ts +21 -0
- package/dist/_vendor/ark-ui-vue/components/slider/slider-track.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/slider/slider-value-text.vue.d.ts +20 -0
- package/dist/_vendor/ark-ui-vue/components/slider/slider.anatomy.d.ts +1 -0
- package/dist/_vendor/ark-ui-vue/components/slider/slider.d.ts +14 -0
- package/dist/_vendor/ark-ui-vue/components/slider/slider.types.d.ts +152 -0
- package/dist/_vendor/ark-ui-vue/components/slider/use-slider-context.d.ts +4 -0
- package/dist/_vendor/ark-ui-vue/components/slider/use-slider.d.ts +14 -0
- package/dist/_vendor/ark-ui-vue/types.d.ts +14 -0
- package/dist/_vendor/ark-ui-vue/utils/use-render-strategy.d.ts +14 -0
- package/dist/components/color-picker/ColorPicker.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerArea.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerAreaBackground.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerAreaThumb.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerChannelInput.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerChannelSlider.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerChannelSliderLabel.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerChannelSliderThumb.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerChannelSliderTrack.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerChannelSliderValueText.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerControl.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerEyeDropperTrigger.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerFormatSelect.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerFormatTrigger.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerHiddenInput.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerLabel.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerSwatch.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerSwatchGroup.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerSwatchIndicator.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerSwatchTrigger.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerTransparencyGrid.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerTrigger.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerValueSwatch.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerValueText.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPickerView.vue.d.ts +1 -1
- package/dist/components/color-picker/color-picker.d.ts +1 -1
- package/dist/components/color-picker/index.d.ts +1 -1
- package/dist/components/file-upload/FileUpload.vue.d.ts +1 -1
- package/dist/components/file-upload/file-upload.d.ts +1 -1
- package/dist/components/file-upload/index.d.ts +1 -1
- package/dist/components/highlight/highlight.d.ts +1 -1
- package/dist/components/highlight/index.d.ts +2 -2
- package/dist/components/progress/Progress.vue.d.ts +1 -1
- package/dist/components/progress/ProgressLabel.vue.d.ts +1 -1
- package/dist/components/progress/ProgressRange.vue.d.ts +1 -1
- package/dist/components/progress/ProgressTrack.vue.d.ts +1 -1
- package/dist/components/progress/ProgressValueText.vue.d.ts +1 -1
- package/dist/components/progress/ProgressView.vue.d.ts +1 -1
- package/dist/components/progress/index.d.ts +1 -1
- package/dist/components/progress/progress.d.ts +2 -2
- package/dist/components/progress-circle/ProgressCircle.vue.d.ts +1 -1
- package/dist/components/progress-circle/ProgressCircleGraphic.vue.d.ts +1 -1
- package/dist/components/progress-circle/ProgressCircleLabel.vue.d.ts +1 -1
- package/dist/components/progress-circle/ProgressCircleRange.vue.d.ts +1 -1
- package/dist/components/progress-circle/ProgressCircleTrack.vue.d.ts +1 -1
- package/dist/components/progress-circle/ProgressCircleValueText.vue.d.ts +1 -1
- package/dist/components/progress-circle/ProgressCircleView.vue.d.ts +1 -1
- package/dist/components/progress-circle/index.d.ts +1 -1
- package/dist/components/progress-circle/progress-circle.d.ts +2 -2
- package/dist/components/select/Select.vue.d.ts +1 -1
- package/dist/components/select/SelectClearTrigger.vue.d.ts +1 -1
- package/dist/components/select/SelectContent.vue.d.ts +1 -1
- package/dist/components/select/SelectControl.vue.d.ts +1 -1
- package/dist/components/select/SelectGroupLabel.vue.d.ts +1 -1
- package/dist/components/select/SelectHiddenSelect.vue.d.ts +1 -1
- package/dist/components/select/SelectIndicator.vue.d.ts +1 -1
- package/dist/components/select/SelectItemIndicator.vue.d.ts +1 -1
- package/dist/components/select/SelectItemText.vue.d.ts +1 -1
- package/dist/components/select/SelectLabel.vue.d.ts +1 -1
- package/dist/components/select/SelectTrigger.vue.d.ts +1 -1
- package/dist/components/select/SelectValueText.vue.d.ts +1 -1
- package/dist/components/select/index.d.ts +2 -2
- package/dist/components/select/select-context.d.ts +1 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/selection-list/SelectionList.vue.d.ts +1 -1
- package/dist/components/selection-list/SelectionListContext.vue.d.ts +1 -1
- package/dist/components/selection-list/SelectionListItem.vue.d.ts +1 -1
- package/dist/components/selection-list/SelectionListItemGroup.vue.d.ts +1 -1
- package/dist/components/selection-list/SelectionListItemGroupLabel.vue.d.ts +1 -1
- package/dist/components/selection-list/SelectionListLabel.vue.d.ts +1 -1
- package/dist/components/selection-list/SelectionListRootProvider.vue.d.ts +1 -1
- package/dist/components/selection-list/index.d.ts +1 -1
- package/dist/components/selection-list/selection-list.d.ts +1 -1
- package/dist/components/slider/Slider.vue.d.ts +1 -1
- package/dist/components/slider/SliderControl.vue.d.ts +1 -1
- package/dist/components/slider/SliderDraggingIndicator.vue.d.ts +1 -1
- package/dist/components/slider/SliderLabel.vue.d.ts +1 -1
- package/dist/components/slider/SliderMarker.vue.d.ts +1 -1
- package/dist/components/slider/SliderMarkerGroup.vue.d.ts +1 -1
- package/dist/components/slider/SliderRange.vue.d.ts +1 -1
- package/dist/components/slider/SliderThumb.vue.d.ts +1 -1
- package/dist/components/slider/SliderTrack.vue.d.ts +1 -1
- package/dist/components/slider/SliderValueText.vue.d.ts +1 -1
- package/dist/components/slider/index.d.ts +1 -1
- package/dist/components/slider/slider.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/registry/component-registry.json +1 -1
- package/dist/registry/generated.d.ts +1 -1
- package/dist/{registry-C1WQys9g.js → registry-CTLhOxfJ.js} +2 -2
- package/dist/{registry-C1WQys9g.js.map → registry-CTLhOxfJ.js.map} +1 -1
- package/dist/registry.js +1 -1
- package/package.json +15 -9
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory.js';
|
|
3
|
+
export interface ListboxEmptyBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxEmptyProps extends ListboxEmptyBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
HTMLAttributes {
|
|
10
|
+
}
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots< DefineComponent<ListboxEmptyProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ListboxEmptyProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
14
|
+
default?: (props: {}) => any;
|
|
15
|
+
}>;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { InputProps } from '@zag-js/listbox';
|
|
2
|
+
import { InputHTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { PolymorphicProps } from '../factory.js';
|
|
4
|
+
export interface ListboxInputBaseProps extends InputProps, PolymorphicProps {
|
|
5
|
+
}
|
|
6
|
+
export interface ListboxInputProps extends ListboxInputBaseProps,
|
|
7
|
+
/**
|
|
8
|
+
* @vue-ignore
|
|
9
|
+
*/
|
|
10
|
+
InputHTMLAttributes {
|
|
11
|
+
}
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots< DefineComponent<ListboxInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ListboxInputProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
15
|
+
default?: (props: {}) => any;
|
|
16
|
+
}>;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SlotsType, UnwrapRef, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { UseListboxItemContext } from './use-listbox-item-context.js';
|
|
3
|
+
export interface ListboxItemContextProps extends SlotsType<{
|
|
4
|
+
default: UnwrapRef<UseListboxItemContext>;
|
|
5
|
+
}> {
|
|
6
|
+
}
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots< DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
10
|
+
default(context: UnwrapRef<UseListboxItemContext>): unknown;
|
|
11
|
+
}>;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory.js';
|
|
3
|
+
export interface ListboxItemGroupLabelBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxItemGroupLabelProps extends ListboxItemGroupLabelBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
HTMLAttributes {
|
|
10
|
+
}
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots< DefineComponent<ListboxItemGroupLabelProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ListboxItemGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
14
|
+
default?: (props: {}) => any;
|
|
15
|
+
}>;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ItemGroupProps } from '@zag-js/listbox';
|
|
2
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { PolymorphicProps } from '../factory.js';
|
|
4
|
+
export interface ListboxItemGroupBaseProps extends Partial<ItemGroupProps>, PolymorphicProps {
|
|
5
|
+
}
|
|
6
|
+
export interface ListboxItemGroupProps extends ListboxItemGroupBaseProps,
|
|
7
|
+
/**
|
|
8
|
+
* @vue-ignore
|
|
9
|
+
*/
|
|
10
|
+
HTMLAttributes {
|
|
11
|
+
}
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots< DefineComponent<ListboxItemGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ListboxItemGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
15
|
+
default?: (props: {}) => any;
|
|
16
|
+
}>;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory.js';
|
|
3
|
+
export interface ListboxItemIndicatorBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxItemIndicatorProps extends ListboxItemIndicatorBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
HTMLAttributes {
|
|
10
|
+
}
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots< DefineComponent<ListboxItemIndicatorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ListboxItemIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
14
|
+
default?: (props: {}) => any;
|
|
15
|
+
}>;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory.js';
|
|
3
|
+
export interface ListboxItemTextBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxItemTextProps extends ListboxItemTextBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
HTMLAttributes {
|
|
10
|
+
}
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots< DefineComponent<ListboxItemTextProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ListboxItemTextProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
14
|
+
default?: (props: {}) => any;
|
|
15
|
+
}>;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ItemProps } from '@zag-js/listbox';
|
|
2
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { PolymorphicProps } from '../factory.js';
|
|
4
|
+
export interface ListboxItemBaseProps extends ItemProps, PolymorphicProps {
|
|
5
|
+
}
|
|
6
|
+
export interface ListboxItemProps extends ListboxItemBaseProps,
|
|
7
|
+
/**
|
|
8
|
+
* @vue-ignore
|
|
9
|
+
*/
|
|
10
|
+
HTMLAttributes {
|
|
11
|
+
}
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots< DefineComponent<ListboxItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ListboxItemProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
15
|
+
default?: (props: {}) => any;
|
|
16
|
+
}>;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory.js';
|
|
3
|
+
export interface ListboxLabelBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxLabelProps extends ListboxLabelBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
HTMLAttributes {
|
|
10
|
+
}
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots< DefineComponent<ListboxLabelProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ListboxLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
14
|
+
default?: (props: {}) => any;
|
|
15
|
+
}>;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { HTMLAttributes, UnwrapRef, PublicProps, VNode } from 'vue';
|
|
2
|
+
import { Assign } from '../../types.js';
|
|
3
|
+
import { CollectionItem } from '../collection/index.js';
|
|
4
|
+
import { PolymorphicProps } from '../factory.js';
|
|
5
|
+
import { UseListboxReturn } from './use-listbox.js';
|
|
6
|
+
interface RootProviderProps<T extends CollectionItem> {
|
|
7
|
+
value: UnwrapRef<UseListboxReturn<T>>;
|
|
8
|
+
}
|
|
9
|
+
export interface ListboxRootProviderBaseProps<T extends CollectionItem> extends RootProviderProps<T>, PolymorphicProps {
|
|
10
|
+
}
|
|
11
|
+
export interface ListboxRootProviderProps<T extends CollectionItem> extends ListboxRootProviderBaseProps<T>,
|
|
12
|
+
/**
|
|
13
|
+
* @vue-ignore
|
|
14
|
+
*/
|
|
15
|
+
HTMLAttributes {
|
|
16
|
+
}
|
|
17
|
+
export type ListboxRootProviderComponent<P = {}> = <T extends CollectionItem>(props: Assign<ListboxRootProviderProps<T>, P>) => any;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
declare const __VLS_export: <T extends CollectionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
21
|
+
props: PublicProps & __VLS_PrettifyLocal<ListboxRootProviderProps<T>> & (typeof globalThis extends {
|
|
22
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
23
|
+
} ? P : {});
|
|
24
|
+
expose: (exposed: {}) => void;
|
|
25
|
+
attrs: any;
|
|
26
|
+
slots: {
|
|
27
|
+
default?: (props: {}) => any;
|
|
28
|
+
};
|
|
29
|
+
emit: {};
|
|
30
|
+
}>) => VNode & {
|
|
31
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
32
|
+
};
|
|
33
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} : {
|
|
36
|
+
[K in keyof T as K]: T[K];
|
|
37
|
+
}) & {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { HTMLAttributes, PublicProps, VNode } from 'vue';
|
|
2
|
+
import { Assign } from '../../types.js';
|
|
3
|
+
import { CollectionItem } from '../collection/index.js';
|
|
4
|
+
import { PolymorphicProps } from '../factory.js';
|
|
5
|
+
import { RootProps } from './listbox.types.js';
|
|
6
|
+
import { SelectionDetails, ValueChangeDetails, HighlightChangeDetails } from '@zag-js/listbox';
|
|
7
|
+
export interface ListboxRootBaseProps<T extends CollectionItem> extends RootProps<T>, PolymorphicProps {
|
|
8
|
+
}
|
|
9
|
+
export interface ListboxRootProps<T extends CollectionItem> extends ListboxRootBaseProps<T>,
|
|
10
|
+
/**
|
|
11
|
+
* @vue-ignore
|
|
12
|
+
*/
|
|
13
|
+
HTMLAttributes {
|
|
14
|
+
}
|
|
15
|
+
export type ListboxRootComponentProps<T extends CollectionItem = CollectionItem, P = {}> = Assign<ListboxRootProps<T>, P>;
|
|
16
|
+
export type ListboxRootComponent<P = {}> = <T extends CollectionItem>(props: ListboxRootComponentProps<T, P>) => any;
|
|
17
|
+
export type { RootEmits as ListboxRootEmits } from './listbox.types.js';
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
declare const __VLS_export: <T extends CollectionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
21
|
+
props: PublicProps & __VLS_PrettifyLocal<ListboxRootBaseProps<T> & {
|
|
22
|
+
onSelect?: ((details: SelectionDetails) => any) | undefined;
|
|
23
|
+
onValueChange?: ((details: ValueChangeDetails<T>) => any) | undefined;
|
|
24
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
25
|
+
onHighlightChange?: ((details: HighlightChangeDetails<T>) => any) | undefined;
|
|
26
|
+
"onUpdate:highlightedValue"?: ((value: string | null) => any) | undefined;
|
|
27
|
+
}> & (typeof globalThis extends {
|
|
28
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
29
|
+
} ? P : {});
|
|
30
|
+
expose: (exposed: {}) => void;
|
|
31
|
+
attrs: any;
|
|
32
|
+
slots: {
|
|
33
|
+
default?: (props: {}) => any;
|
|
34
|
+
};
|
|
35
|
+
emit: ((evt: "select", details: SelectionDetails) => void) & ((evt: "valueChange", details: ValueChangeDetails<T>) => void) & ((evt: "update:modelValue", value: string[]) => void) & ((evt: "highlightChange", details: HighlightChangeDetails<T>) => void) & ((evt: "update:highlightedValue", value: string | null) => void);
|
|
36
|
+
}>) => VNode & {
|
|
37
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
38
|
+
};
|
|
39
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} : {
|
|
42
|
+
[K in keyof T as K]: T[K];
|
|
43
|
+
}) & {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory.js';
|
|
3
|
+
export interface ListboxValueTextBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxValueTextProps extends ListboxValueTextBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
HTMLAttributes {
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots< DefineComponent<ListboxValueTextProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ListboxValueTextProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
type __VLS_Slots = { default?: () => import("vue").VNode[] };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type { HighlightChangeDetails, ScrollToIndexDetails, SelectionDetails, SelectionMode, ValueChangeDetails, } from '@zag-js/listbox';
|
|
2
|
+
export { default as Context, type ListboxContextProps as ContextProps } from './listbox-context.vue';
|
|
3
|
+
export { default as Content, type ListboxContentBaseProps as ContentBaseProps, type ListboxContentProps as ContentProps, } from './listbox-content.vue';
|
|
4
|
+
export { default as Empty, type ListboxEmptyBaseProps as EmptyBaseProps, type ListboxEmptyProps as EmptyProps, } from './listbox-empty.vue';
|
|
5
|
+
export { default as Input, type ListboxInputBaseProps as InputBaseProps, type ListboxInputProps as InputProps, } from './listbox-input.vue';
|
|
6
|
+
export { default as ItemContext, type ListboxItemContextProps as ItemContextProps } from './listbox-item-context.vue';
|
|
7
|
+
export { default as ItemGroupLabel, type ListboxItemGroupLabelBaseProps as ItemGroupLabelBaseProps, type ListboxItemGroupLabelProps as ItemGroupLabelProps, } from './listbox-item-group-label.vue';
|
|
8
|
+
export { default as ItemGroup, type ListboxItemGroupBaseProps as ItemGroupBaseProps, type ListboxItemGroupProps as ItemGroupProps, } from './listbox-item-group.vue';
|
|
9
|
+
export { default as ItemIndicator, type ListboxItemIndicatorBaseProps as ItemIndicatorBaseProps, type ListboxItemIndicatorProps as ItemIndicatorProps, } from './listbox-item-indicator.vue';
|
|
10
|
+
export { default as ItemText, type ListboxItemTextBaseProps as ItemTextBaseProps, type ListboxItemTextProps as ItemTextProps, } from './listbox-item-text.vue';
|
|
11
|
+
export { default as Item, type ListboxItemBaseProps as ItemBaseProps, type ListboxItemProps as ItemProps, } from './listbox-item.vue';
|
|
12
|
+
export { default as Label, type ListboxLabelBaseProps as LabelBaseProps, type ListboxLabelProps as LabelProps, } from './listbox-label.vue';
|
|
13
|
+
export { default as RootProvider, type ListboxRootProviderBaseProps as RootProviderBaseProps, type ListboxRootProviderProps as RootProviderProps, type ListboxRootProviderComponent as RootProviderComponent, } from './listbox-root-provider.vue';
|
|
14
|
+
export { default as Root, type ListboxRootBaseProps as RootBaseProps, type ListboxRootComponent as RootComponent, type ListboxRootComponentProps as RootComponentProps, type ListboxRootEmits as RootEmits, type ListboxRootProps as RootProps, } from './listbox-root.vue';
|
|
15
|
+
export { default as ValueText, type ListboxValueTextBaseProps as ValueTextBaseProps, type ListboxValueTextProps as ValueTextProps, } from './listbox-value-text.vue';
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { CollectionItem, ListCollection } from '../collection/index.js';
|
|
2
|
+
import type * as listbox from '@zag-js/listbox';
|
|
3
|
+
export interface RootProps<T extends CollectionItem> {
|
|
4
|
+
/**
|
|
5
|
+
* The collection of items
|
|
6
|
+
*/
|
|
7
|
+
collection: ListCollection<T>;
|
|
8
|
+
/**
|
|
9
|
+
* The initial value of the highlighted item when opened.
|
|
10
|
+
* Use when you don't need to control the highlighted value of the listbox.
|
|
11
|
+
*/
|
|
12
|
+
defaultHighlightedValue?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The initial default value of the listbox when rendered.
|
|
15
|
+
* Use when you don't need to control the value of the listbox.
|
|
16
|
+
*
|
|
17
|
+
* @default []
|
|
18
|
+
*/
|
|
19
|
+
defaultValue?: string[];
|
|
20
|
+
/**
|
|
21
|
+
* Whether to disallow empty selection
|
|
22
|
+
*/
|
|
23
|
+
deselectable?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the listbox is disabled
|
|
26
|
+
*/
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Whether to disallow selecting all items when `meta+a` is pressed
|
|
30
|
+
*/
|
|
31
|
+
disallowSelectAll?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The controlled key of the highlighted item
|
|
34
|
+
*/
|
|
35
|
+
highlightedValue?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The unique identifier of the machine.
|
|
38
|
+
*/
|
|
39
|
+
id?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The ids of the elements in the listbox. Useful for composition.
|
|
42
|
+
*/
|
|
43
|
+
ids?: Partial<{
|
|
44
|
+
root: string;
|
|
45
|
+
content: string;
|
|
46
|
+
label: string;
|
|
47
|
+
item(id: string | number): string;
|
|
48
|
+
itemGroup(id: string | number): string;
|
|
49
|
+
itemGroupLabel(id: string | number): string;
|
|
50
|
+
}>;
|
|
51
|
+
/**
|
|
52
|
+
* Whether to loop the keyboard navigation through the options
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
loopFocus?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* The model value of the listbox
|
|
58
|
+
*/
|
|
59
|
+
modelValue?: string[];
|
|
60
|
+
/**
|
|
61
|
+
* The orientation of the element.
|
|
62
|
+
* @default "horizontal"
|
|
63
|
+
*/
|
|
64
|
+
orientation?: 'horizontal' | 'vertical';
|
|
65
|
+
/**
|
|
66
|
+
* Function to scroll to a specific index
|
|
67
|
+
*/
|
|
68
|
+
scrollToIndexFn?: (details: listbox.ScrollToIndexDetails) => void;
|
|
69
|
+
/**
|
|
70
|
+
* Whether to select the item when it is highlighted
|
|
71
|
+
*/
|
|
72
|
+
selectOnHighlight?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* How multiple selection should behave in the listbox.
|
|
75
|
+
*
|
|
76
|
+
* - `single`: The user can select a single item.
|
|
77
|
+
* - `multiple`: The user can select multiple items without using modifier keys.
|
|
78
|
+
* - `extended`: The user can select multiple items by using modifier keys.
|
|
79
|
+
*
|
|
80
|
+
* @default "single"
|
|
81
|
+
*/
|
|
82
|
+
selectionMode?: listbox.SelectionMode;
|
|
83
|
+
/**
|
|
84
|
+
* Whether to enable typeahead on the listbox
|
|
85
|
+
*/
|
|
86
|
+
typeahead?: boolean;
|
|
87
|
+
}
|
|
88
|
+
export type RootEmits<T extends CollectionItem> = {
|
|
89
|
+
/**
|
|
90
|
+
* The callback fired when the highlighted item changes.
|
|
91
|
+
*/
|
|
92
|
+
highlightChange: [details: listbox.HighlightChangeDetails<T>];
|
|
93
|
+
/**
|
|
94
|
+
* The callback fired when the highlighted value changes.
|
|
95
|
+
*/
|
|
96
|
+
'update:highlightedValue': [value: string | null];
|
|
97
|
+
/**
|
|
98
|
+
* Function called when an item is selected
|
|
99
|
+
*/
|
|
100
|
+
select: [details: listbox.SelectionDetails];
|
|
101
|
+
/**
|
|
102
|
+
* The callback fired when the selected item changes.
|
|
103
|
+
*/
|
|
104
|
+
valueChange: [details: listbox.ValueChangeDetails<T>];
|
|
105
|
+
/**
|
|
106
|
+
* The callback fired when the model value changes.
|
|
107
|
+
*/
|
|
108
|
+
'update:modelValue': [value: string[]];
|
|
109
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CollectionItem } from '../collection/index.js';
|
|
2
|
+
import { UseListboxReturn } from './use-listbox.js';
|
|
3
|
+
export interface UseListboxContext<T extends CollectionItem> extends UseListboxReturn<T> {
|
|
4
|
+
}
|
|
5
|
+
export declare const ListboxProvider: (opts: UseListboxContext<any>) => void, useListboxContext: (fallback?: UseListboxContext<any> | undefined) => UseListboxContext<any>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ItemState } from '@zag-js/listbox';
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
|
+
export interface UseListboxItemContext extends ComputedRef<ItemState> {
|
|
4
|
+
}
|
|
5
|
+
export declare const ListboxItemProvider: (opts: UseListboxItemContext) => void, useListboxItemContext: (fallback?: UseListboxItemContext | undefined) => UseListboxItemContext;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PropTypes } from '@zag-js/vue';
|
|
2
|
+
import { ComputedRef, MaybeRef } from 'vue';
|
|
3
|
+
import { EmitFn, Optional } from '../../types.js';
|
|
4
|
+
import { CollectionItem, ListCollection } from '../collection/index.js';
|
|
5
|
+
import { RootEmits } from './listbox.js';
|
|
6
|
+
import * as listbox from '@zag-js/listbox';
|
|
7
|
+
export interface UseListboxProps<T extends CollectionItem> extends Optional<Omit<listbox.Props<T>, 'dir' | 'getRootNode' | 'collection'>, 'id'> {
|
|
8
|
+
/**
|
|
9
|
+
* The model value of the listbox
|
|
10
|
+
*/
|
|
11
|
+
modelValue?: listbox.Props<T>['value'];
|
|
12
|
+
/**
|
|
13
|
+
* The collection of items
|
|
14
|
+
*/
|
|
15
|
+
collection: ListCollection<T>;
|
|
16
|
+
}
|
|
17
|
+
export interface UseListboxReturn<T extends CollectionItem> extends ComputedRef<listbox.Api<PropTypes, T>> {
|
|
18
|
+
}
|
|
19
|
+
export declare const useListbox: <T extends CollectionItem>(props: MaybeRef<UseListboxProps<T>>, emit?: EmitFn<RootEmits<T>>) => UseListboxReturn<T>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default as Presence, type PresenceProps, type PresenceEmits } from './presence.vue';
|
|
2
|
+
export { type UsePresenceProps, type UsePresenceReturn, usePresence } from './use-presence.js';
|
|
3
|
+
export { PresenceProvider, type UsePresenceContext, usePresenceContext } from './use-presence-context.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface RootProps {
|
|
2
|
+
/**
|
|
3
|
+
* Whether to synchronize the present change immediately or defer it to the next frame
|
|
4
|
+
* @default false
|
|
5
|
+
*/
|
|
6
|
+
immediate?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Whether to enable lazy mounting
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
lazyMount?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Whether the node is present (controlled by the user)
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
present?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to allow the initial presence animation.
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
skipAnimationOnMount?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Whether to unmount on exit.
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
unmountOnExit?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export type RootEmits = {
|
|
29
|
+
/**
|
|
30
|
+
* Function called when the animation ends in the closed state
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* Function called when the animation ends in the open state
|
|
34
|
+
*/
|
|
35
|
+
enterComplete: [];
|
|
36
|
+
exitComplete: [];
|
|
37
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory.js';
|
|
3
|
+
import { RootEmits, RootProps } from './presence.types.js';
|
|
4
|
+
export interface PresenceBaseProps extends RootProps, PolymorphicProps {
|
|
5
|
+
}
|
|
6
|
+
export interface PresenceProps extends PresenceBaseProps,
|
|
7
|
+
/**
|
|
8
|
+
* @vue-ignore
|
|
9
|
+
*/
|
|
10
|
+
HTMLAttributes {
|
|
11
|
+
}
|
|
12
|
+
export interface PresenceEmits extends RootEmits {
|
|
13
|
+
}
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots< DefineComponent<PresenceProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
17
|
+
enterComplete: () => any;
|
|
18
|
+
exitComplete: () => any;
|
|
19
|
+
}, string, PublicProps, Readonly<PresenceProps> & Readonly<{
|
|
20
|
+
onEnterComplete?: (() => any) | undefined;
|
|
21
|
+
onExitComplete?: (() => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
present: boolean;
|
|
24
|
+
immediate: boolean;
|
|
25
|
+
lazyMount: boolean;
|
|
26
|
+
unmountOnExit: boolean;
|
|
27
|
+
skipAnimationOnMount: boolean;
|
|
28
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
29
|
+
default?: (props: {}) => any;
|
|
30
|
+
}>;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UsePresenceReturn } from './use-presence.js';
|
|
2
|
+
export interface UsePresenceContext extends UsePresenceReturn {
|
|
3
|
+
}
|
|
4
|
+
export declare const PresenceProvider: (opts: UsePresenceContext) => void, usePresenceContext: (fallback?: UsePresenceContext | undefined) => UsePresenceContext;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { MaybeRef, ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { EmitFn, Optional } from '../../types.js';
|
|
3
|
+
import { RootEmits } from './presence.types.js';
|
|
4
|
+
import * as presence from '@zag-js/presence';
|
|
5
|
+
export interface UsePresenceProps extends Optional<presence.Props, 'present'> {
|
|
6
|
+
/**
|
|
7
|
+
* Whether to enable lazy mounting
|
|
8
|
+
* @default false
|
|
9
|
+
*/
|
|
10
|
+
lazyMount?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Whether to unmount on exit.
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
unmountOnExit?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Whether to allow the initial presence animation.
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
skipAnimationOnMount?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export type UsePresenceReturn = ReturnType<typeof usePresence>;
|
|
23
|
+
export declare const usePresence: (props: MaybeRef<UsePresenceProps>, emit?: EmitFn<RootEmits>) => ComputedRef<{
|
|
24
|
+
present: boolean;
|
|
25
|
+
unmounted: boolean | undefined;
|
|
26
|
+
presenceProps: {
|
|
27
|
+
ref: Ref<any, any>;
|
|
28
|
+
hidden: boolean;
|
|
29
|
+
'data-state': string | undefined;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type { ValueChangeDetails as ProgressValueChangeDetails, ValueTranslationDetails as ProgressValueTranslationDetails, } from '@zag-js/progress';
|
|
2
|
+
export { default as ProgressCircleRange, type ProgressCircleRangeBaseProps, type ProgressCircleRangeProps, } from './progress-circle-range.vue';
|
|
3
|
+
export { default as ProgressCircleTrack, type ProgressCircleTrackBaseProps, type ProgressCircleTrackProps, } from './progress-circle-track.vue';
|
|
4
|
+
export { default as ProgressCircle, type ProgressCircleBaseProps, type ProgressCircleProps, } from './progress-circle.vue';
|
|
5
|
+
export { default as ProgressContext, type ProgressContextProps } from './progress-context.vue';
|
|
6
|
+
export { default as ProgressLabel, type ProgressLabelBaseProps, type ProgressLabelProps } from './progress-label.vue';
|
|
7
|
+
export { default as ProgressRange, type ProgressRangeBaseProps, type ProgressRangeProps } from './progress-range.vue';
|
|
8
|
+
export { default as ProgressRootProvider, type ProgressRootProviderBaseProps, type ProgressRootProviderProps, } from './progress-root-provider.vue';
|
|
9
|
+
export { default as ProgressRoot, type ProgressRootBaseProps, type ProgressRootProps, type ProgressRootEmits, } from './progress-root.vue';
|
|
10
|
+
export { default as ProgressTrack, type ProgressTrackBaseProps, type ProgressTrackProps } from './progress-track.vue';
|
|
11
|
+
export { default as ProgressValueText, type ProgressValueTextBaseProps, type ProgressValueTextProps, } from './progress-value-text.vue';
|
|
12
|
+
export { default as ProgressView, type ProgressViewBaseProps, type ProgressViewProps } from './progress-view.vue';
|
|
13
|
+
export { progressAnatomy } from './progress.anatomy.js';
|
|
14
|
+
export { useProgress, type UseProgressProps, type UseProgressReturn } from './use-progress.js';
|
|
15
|
+
export { useProgressContext, type UseProgressContext } from './use-progress-context.js';
|
|
16
|
+
export * as Progress from './progress.js';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory.js';
|
|
3
|
+
export interface ProgressCircleRangeBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ProgressCircleRangeProps extends ProgressCircleRangeBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
HTMLAttributes {
|
|
10
|
+
}
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots< DefineComponent<ProgressCircleRangeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ProgressCircleRangeProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
14
|
+
default?: (props: {}) => any;
|
|
15
|
+
}>;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory.js';
|
|
3
|
+
export interface ProgressCircleTrackBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ProgressCircleTrackProps extends ProgressCircleTrackBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
HTMLAttributes {
|
|
10
|
+
}
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots< DefineComponent<ProgressCircleTrackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ProgressCircleTrackProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
14
|
+
default?: (props: {}) => any;
|
|
15
|
+
}>;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|