@soybeanjs/headless 0.30.0 → 0.40.0-beta.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/README.md +14 -14
- package/README.zh-CN.md +14 -14
- package/dist/components/_icon/icon.js +1 -1
- package/dist/components/_icon/types.d.ts +2 -3
- package/dist/components/accordion/accordion-compact.js +1 -1
- package/dist/components/accordion/accordion-content.js +1 -1
- package/dist/components/accordion/accordion-item.js +1 -1
- package/dist/components/accordion/accordion-root.js +1 -1
- package/dist/components/accordion/accordion-trigger.js +1 -1
- package/dist/components/accordion/context.d.ts +1 -1
- package/dist/components/accordion/context.js +1 -1
- package/dist/components/accordion/types.d.ts +15 -16
- package/dist/components/affix/affix-compact.js +1 -1
- package/dist/components/affix/affix-root.js +1 -1
- package/dist/components/affix/affix-root.vue.d.ts +1 -1
- package/dist/components/affix/context.d.ts +1 -1
- package/dist/components/affix/context.js +1 -1
- package/dist/components/affix/types.d.ts +11 -12
- package/dist/components/alert/alert-close.js +1 -1
- package/dist/components/alert/alert-compact.js +1 -1
- package/dist/components/alert/alert-compact.vue.d.ts +2 -2
- package/dist/components/alert/alert-root.js +1 -1
- package/dist/components/alert/context.d.ts +2 -2
- package/dist/components/alert/context.js +1 -1
- package/dist/components/alert/types.d.ts +13 -14
- package/dist/components/anchor/anchor-compact.js +1 -1
- package/dist/components/anchor/anchor-link.js +1 -1
- package/dist/components/anchor/anchor-root.js +1 -1
- package/dist/components/anchor/anchor-root.vue.d.ts +1 -1
- package/dist/components/anchor/context.d.ts +2 -2
- package/dist/components/anchor/context.js +1 -1
- package/dist/components/anchor/shared.js +1 -1
- package/dist/components/anchor/types.d.ts +11 -12
- package/dist/components/arrow/arrow.js +1 -1
- package/dist/components/arrow/types.d.ts +2 -3
- package/dist/components/aspect-ratio/aspect-ratio.js +1 -1
- package/dist/components/aspect-ratio/types.d.ts +2 -3
- package/dist/components/autocomplete/autocomplete-anchor.js +1 -0
- package/dist/components/autocomplete/autocomplete-anchor.vue.d.ts +16 -0
- package/dist/components/autocomplete/autocomplete-compact.js +1 -1
- package/dist/components/autocomplete/autocomplete-content.js +1 -0
- package/dist/components/autocomplete/autocomplete-content.vue.d.ts +34 -0
- package/dist/components/autocomplete/autocomplete-group-label.js +1 -0
- package/dist/components/autocomplete/autocomplete-group-label.vue.d.ts +16 -0
- package/dist/components/autocomplete/autocomplete-group.js +1 -0
- package/dist/components/autocomplete/autocomplete-group.vue.d.ts +16 -0
- package/dist/components/autocomplete/autocomplete-input.js +1 -1
- package/dist/components/autocomplete/autocomplete-item-indicator.js +1 -0
- package/dist/components/autocomplete/autocomplete-item-indicator.vue.d.ts +16 -0
- package/dist/components/autocomplete/autocomplete-item.js +1 -0
- package/dist/components/autocomplete/autocomplete-item.vue.d.ts +22 -0
- package/dist/components/autocomplete/autocomplete-root.js +1 -1
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +1 -2
- package/dist/components/autocomplete/autocomplete-separator.js +1 -0
- package/dist/components/autocomplete/autocomplete-separator.vue.d.ts +16 -0
- package/dist/components/autocomplete/autocomplete-trigger.js +1 -0
- package/dist/components/autocomplete/autocomplete-trigger.vue.d.ts +20 -0
- package/dist/components/autocomplete/autocomplete-viewport.js +1 -0
- package/dist/components/autocomplete/autocomplete-viewport.vue.d.ts +16 -0
- package/dist/components/autocomplete/context.d.ts +2 -2
- package/dist/components/autocomplete/context.js +1 -1
- package/dist/components/autocomplete/index.d.ts +14 -17
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/autocomplete/types.d.ts +69 -26
- package/dist/components/avatar/avatar-compact.js +1 -1
- package/dist/components/avatar/avatar-fallback.js +1 -1
- package/dist/components/avatar/avatar-image.js +1 -1
- package/dist/components/avatar/context.d.ts +2 -2
- package/dist/components/avatar/context.js +1 -1
- package/dist/components/avatar/types.d.ts +10 -11
- package/dist/components/backtop/backtop.js +1 -1
- package/dist/components/backtop/backtop.vue.d.ts +3 -3
- package/dist/components/backtop/types.d.ts +5 -6
- package/dist/components/badge/badge-compact.js +1 -1
- package/dist/components/badge/badge-root.js +1 -1
- package/dist/components/badge/context.d.ts +2 -2
- package/dist/components/badge/context.js +1 -1
- package/dist/components/badge/types.d.ts +9 -10
- package/dist/components/bottom-sheet/bottom-sheet-cancel.js +1 -0
- package/dist/components/bottom-sheet/bottom-sheet-cancel.vue.d.ts +20 -0
- package/dist/components/bottom-sheet/bottom-sheet-close.js +1 -0
- package/dist/components/bottom-sheet/bottom-sheet-close.vue.d.ts +20 -0
- package/dist/components/bottom-sheet/bottom-sheet-compact.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-confirm.js +1 -0
- package/dist/components/bottom-sheet/bottom-sheet-confirm.vue.d.ts +20 -0
- package/dist/components/bottom-sheet/bottom-sheet-content.js +1 -0
- package/dist/components/bottom-sheet/bottom-sheet-content.vue.d.ts +16 -0
- package/dist/components/bottom-sheet/bottom-sheet-description.js +1 -0
- package/dist/components/bottom-sheet/bottom-sheet-description.vue.d.ts +16 -0
- package/dist/components/bottom-sheet/bottom-sheet-footer.js +1 -0
- package/dist/components/bottom-sheet/bottom-sheet-footer.vue.d.ts +16 -0
- package/dist/components/bottom-sheet/bottom-sheet-header.js +1 -0
- package/dist/components/bottom-sheet/bottom-sheet-header.vue.d.ts +16 -0
- package/dist/components/bottom-sheet/bottom-sheet-overlay.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-popup.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
- package/dist/components/bottom-sheet/bottom-sheet-root.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-title.js +1 -0
- package/dist/components/bottom-sheet/bottom-sheet-title.vue.d.ts +16 -0
- package/dist/components/bottom-sheet/bottom-sheet-trigger.js +1 -0
- package/dist/components/bottom-sheet/bottom-sheet-trigger.vue.d.ts +20 -0
- package/dist/components/bottom-sheet/context.d.ts +2 -2
- package/dist/components/bottom-sheet/context.js +1 -1
- package/dist/components/bottom-sheet/index.d.ts +12 -12
- package/dist/components/bottom-sheet/index.js +1 -1
- package/dist/components/bottom-sheet/types.d.ts +66 -15
- package/dist/components/bottom-sheet/use-scale-background.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-compact.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-ellipsis.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-root.js +1 -1
- package/dist/components/breadcrumb/context.d.ts +2 -2
- package/dist/components/breadcrumb/context.js +1 -1
- package/dist/components/breadcrumb/types.d.ts +16 -17
- package/dist/components/button/button-group.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/types.d.ts +5 -6
- package/dist/components/calendar/calendar-cell-trigger.js +1 -1
- package/dist/components/calendar/calendar-cell.js +1 -1
- package/dist/components/calendar/calendar-compact.js +1 -1
- package/dist/components/calendar/calendar-grid-body.js +1 -1
- package/dist/components/calendar/calendar-grid-head.js +1 -1
- package/dist/components/calendar/calendar-grid-row.js +1 -1
- package/dist/components/calendar/calendar-grid.js +1 -1
- package/dist/components/calendar/calendar-head-cell.js +1 -1
- package/dist/components/calendar/calendar-header.js +1 -1
- package/dist/components/calendar/calendar-heading.js +1 -1
- package/dist/components/calendar/calendar-next.js +1 -1
- package/dist/components/calendar/calendar-prev.js +1 -1
- package/dist/components/calendar/calendar-root.js +1 -1
- package/dist/components/calendar/context.d.ts +2 -2
- package/dist/components/calendar/context.js +1 -1
- package/dist/components/calendar/types.d.ts +26 -27
- package/dist/components/calendar/use-calendar.js +1 -1
- package/dist/components/calendar-range/calendar-range-cell-trigger.js +1 -1
- package/dist/components/calendar-range/calendar-range-cell.js +1 -1
- package/dist/components/calendar-range/calendar-range-compact.js +1 -1
- package/dist/components/calendar-range/calendar-range-grid-body.js +1 -1
- package/dist/components/calendar-range/calendar-range-grid-head.js +1 -1
- package/dist/components/calendar-range/calendar-range-grid-row.js +1 -1
- package/dist/components/calendar-range/calendar-range-grid.js +1 -1
- package/dist/components/calendar-range/calendar-range-head-cell.js +1 -1
- package/dist/components/calendar-range/calendar-range-header.js +1 -1
- package/dist/components/calendar-range/calendar-range-heading.js +1 -1
- package/dist/components/calendar-range/calendar-range-next.js +1 -1
- package/dist/components/calendar-range/calendar-range-prev.js +1 -1
- package/dist/components/calendar-range/calendar-range-root.js +1 -1
- package/dist/components/calendar-range/calendar-range-root.vue.d.ts +4 -4
- package/dist/components/calendar-range/context.d.ts +2 -2
- package/dist/components/calendar-range/context.js +1 -1
- package/dist/components/calendar-range/types.d.ts +25 -26
- package/dist/components/calendar-range/use-calendar-range.js +1 -1
- package/dist/components/card/card-collapsible-trigger.js +1 -1
- package/dist/components/card/card-compact.js +1 -1
- package/dist/components/card/card-root.js +1 -1
- package/dist/components/card/context.d.ts +2 -2
- package/dist/components/card/context.js +1 -1
- package/dist/components/card/types.d.ts +15 -16
- package/dist/components/carousel/carousel-compact.js +1 -1
- package/dist/components/carousel/carousel-next.js +1 -1
- package/dist/components/carousel/carousel-previous.js +1 -1
- package/dist/components/carousel/carousel-root.js +1 -1
- package/dist/components/carousel/context.d.ts +2 -2
- package/dist/components/carousel/context.js +1 -1
- package/dist/components/carousel/hooks.js +1 -1
- package/dist/components/carousel/types.d.ts +17 -17
- package/dist/components/cascader/cascader-clear.js +1 -1
- package/dist/components/cascader/cascader-compact.js +1 -1
- package/dist/components/cascader/cascader-compact.vue.d.ts +3 -3
- package/dist/components/cascader/cascader-content.js +1 -1
- package/dist/components/cascader/cascader-content.vue.d.ts +5 -5
- package/dist/components/cascader/cascader-menu.js +1 -1
- package/dist/components/cascader/cascader-menu.vue.d.ts +1 -1
- package/dist/components/cascader/cascader-option.js +1 -1
- package/dist/components/cascader/cascader-option.vue.d.ts +1 -1
- package/dist/components/cascader/cascader-root.js +1 -1
- package/dist/components/cascader/cascader-root.vue.d.ts +2 -2
- package/dist/components/cascader/cascader-search-input.js +1 -1
- package/dist/components/cascader/cascader-trigger.js +1 -1
- package/dist/components/cascader/context.d.ts +6 -5
- package/dist/components/cascader/context.js +1 -1
- package/dist/components/cascader/hooks.js +1 -1
- package/dist/components/cascader/types.d.ts +36 -37
- package/dist/components/checkbox/checkbox-card-compact.js +1 -1
- package/dist/components/checkbox/checkbox-card-group-compact.js +1 -1
- package/dist/components/checkbox/checkbox-compact.js +1 -1
- package/dist/components/checkbox/checkbox-control.js +1 -1
- package/dist/components/checkbox/checkbox-group-compact.js +1 -1
- package/dist/components/checkbox/checkbox-group-root.js +1 -1
- package/dist/components/checkbox/checkbox-indicator.js +1 -1
- package/dist/components/checkbox/checkbox-label.js +1 -1
- package/dist/components/checkbox/checkbox-root.js +1 -1
- package/dist/components/checkbox/checkbox-root.vue.d.ts +1 -1
- package/dist/components/checkbox/context.d.ts +2 -2
- package/dist/components/checkbox/context.js +1 -1
- package/dist/components/checkbox/types.d.ts +23 -22
- package/dist/components/clipboard/clipboard.js +1 -1
- package/dist/components/clipboard/types.d.ts +12 -7
- package/dist/components/collapsible/collapsible-content.js +1 -1
- package/dist/components/collapsible/collapsible-root.js +1 -1
- package/dist/components/collapsible/collapsible-root.vue.d.ts +1 -1
- package/dist/components/collapsible/collapsible-trigger.js +1 -1
- package/dist/components/collapsible/context.d.ts +1 -1
- package/dist/components/collapsible/context.js +1 -1
- package/dist/components/collapsible/types.d.ts +7 -8
- package/dist/components/color-area/color-area-area.js +1 -1
- package/dist/components/color-area/color-area-compact.js +1 -1
- package/dist/components/color-area/color-area-compact.vue.d.ts +2 -2
- package/dist/components/color-area/color-area-root.js +1 -1
- package/dist/components/color-area/color-area-root.vue.d.ts +3 -3
- package/dist/components/color-area/color-area-thumb.js +1 -1
- package/dist/components/color-area/context.d.ts +2 -2
- package/dist/components/color-area/context.js +1 -1
- package/dist/components/color-area/types.d.ts +10 -11
- package/dist/components/color-field/color-field-compact.js +1 -1
- package/dist/components/color-field/color-field-root.js +1 -1
- package/dist/components/color-field/color-field-root.vue.d.ts +1 -1
- package/dist/components/color-field/context.d.ts +2 -2
- package/dist/components/color-field/context.js +1 -1
- package/dist/components/color-field/types.d.ts +8 -9
- package/dist/components/color-picker/color-picker-compact.js +1 -1
- package/dist/components/color-picker/color-picker-compact.vue.d.ts +4 -2
- package/dist/components/color-picker/color-picker-root.js +1 -1
- package/dist/components/color-picker/color-picker-root.vue.d.ts +6 -6
- package/dist/components/color-picker/color-picker-trigger.js +1 -1
- package/dist/components/color-picker/context.d.ts +2 -2
- package/dist/components/color-picker/context.js +1 -1
- package/dist/components/color-picker/types.d.ts +13 -11
- package/dist/components/color-slider/color-slider-compact.js +1 -1
- package/dist/components/color-slider/color-slider-compact.vue.d.ts +2 -2
- package/dist/components/color-slider/color-slider-root.js +1 -1
- package/dist/components/color-slider/color-slider-root.vue.d.ts +5 -5
- package/dist/components/color-slider/color-slider-thumb.js +1 -1
- package/dist/components/color-slider/color-slider-track.js +1 -1
- package/dist/components/color-slider/context.d.ts +2 -2
- package/dist/components/color-slider/context.js +1 -1
- package/dist/components/color-slider/types.d.ts +9 -10
- package/dist/components/color-swatch/color-swatch-compact.js +1 -1
- package/dist/components/color-swatch/color-swatch-root.js +1 -1
- package/dist/components/color-swatch/context.d.ts +2 -2
- package/dist/components/color-swatch/context.js +1 -1
- package/dist/components/color-swatch/types.d.ts +10 -11
- package/dist/components/color-swatch-picker/color-swatch-picker-compact.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-compact.vue.d.ts +2 -2
- package/dist/components/color-swatch-picker/color-swatch-picker-item-indicator.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-item.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-root.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +2 -2
- package/dist/components/color-swatch-picker/context.d.ts +2 -2
- package/dist/components/color-swatch-picker/context.js +1 -1
- package/dist/components/color-swatch-picker/types.d.ts +14 -15
- package/dist/components/combobox/combobox-anchor.js +1 -0
- package/dist/components/combobox/combobox-anchor.vue.d.ts +16 -0
- package/dist/components/combobox/combobox-arrow.js +1 -1
- package/dist/components/combobox/combobox-cancel.js +1 -1
- package/dist/components/combobox/combobox-clear.js +1 -0
- package/dist/components/combobox/combobox-clear.vue.d.ts +19 -0
- package/dist/components/combobox/combobox-compact.js +1 -1
- package/dist/components/combobox/combobox-compact.vue.d.ts +3 -3
- package/dist/components/combobox/combobox-content-impl.js +1 -1
- package/dist/components/combobox/combobox-content.js +1 -1
- package/dist/components/combobox/combobox-empty.js +1 -1
- package/dist/components/combobox/combobox-group-label.js +1 -0
- package/dist/components/combobox/combobox-group-label.vue.d.ts +16 -0
- package/dist/components/combobox/combobox-input.js +1 -1
- package/dist/components/combobox/combobox-item-indicator.js +1 -0
- package/dist/components/combobox/combobox-item-indicator.vue.d.ts +16 -0
- package/dist/components/combobox/combobox-item.js +1 -1
- package/dist/components/combobox/combobox-root.js +1 -1
- package/dist/components/combobox/combobox-root.vue.d.ts +1 -1
- package/dist/components/combobox/combobox-separator.js +1 -1
- package/dist/components/combobox/combobox-trigger.js +1 -1
- package/dist/components/combobox/combobox-value.js +1 -0
- package/dist/components/combobox/combobox-value.vue.d.ts +29 -0
- package/dist/components/combobox/combobox-viewport.js +1 -1
- package/dist/components/combobox/combobox-virtualizer.js +1 -1
- package/dist/components/combobox/context.d.ts +2 -2
- package/dist/components/combobox/context.js +1 -1
- package/dist/components/combobox/index.d.ts +21 -19
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/combobox/types.d.ts +81 -38
- package/dist/components/command/command-compact.js +1 -1
- package/dist/components/command/command-compact.vue.d.ts +1 -1
- package/dist/components/command/context.d.ts +2 -2
- package/dist/components/command/context.js +1 -1
- package/dist/components/command/index.d.ts +2 -2
- package/dist/components/command/types.d.ts +50 -19
- package/dist/components/config-provider/config-provider.js +1 -39
- package/dist/components/config-provider/context.js +1 -1
- package/dist/components/config-provider/types.d.ts +11 -4
- package/dist/components/context-menu/context-menu-checkbox-compact.js +1 -1
- package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-compact.js +1 -1
- package/dist/components/context-menu/context-menu-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-content.js +1 -1
- package/dist/components/context-menu/context-menu-content.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-radio-compact.js +1 -1
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-root.js +1 -1
- package/dist/components/context-menu/context-menu-trigger.js +1 -1
- package/dist/components/context-menu/context-menu-trigger.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-wrapper-compact.js +1 -1
- package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context.js +1 -1
- package/dist/components/context-menu/index.d.ts +5 -6
- package/dist/components/context-menu/index.js +1 -1
- package/dist/components/context-menu/types.d.ts +19 -22
- package/dist/components/date-field/context.d.ts +2 -2
- package/dist/components/date-field/context.js +1 -1
- package/dist/components/date-field/date-field-compact.js +1 -1
- package/dist/components/date-field/date-field-input.js +1 -1
- package/dist/components/date-field/date-field-root.js +1 -1
- package/dist/components/date-field/date-field-root.vue.d.ts +1 -1
- package/dist/components/date-field/types.d.ts +11 -12
- package/dist/components/date-picker/context.d.ts +2 -2
- package/dist/components/date-picker/context.js +1 -1
- package/dist/components/date-picker/date-picker-compact.js +1 -1
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +2 -0
- package/dist/components/date-picker/types.d.ts +7 -8
- package/dist/components/date-range-field/context.d.ts +2 -2
- package/dist/components/date-range-field/context.js +1 -1
- package/dist/components/date-range-field/date-range-field-compact.js +1 -1
- package/dist/components/date-range-field/date-range-field-input.js +1 -1
- package/dist/components/date-range-field/date-range-field-root.js +1 -1
- package/dist/components/date-range-field/date-range-field-root.vue.d.ts +1 -1
- package/dist/components/date-range-field/types.d.ts +12 -13
- package/dist/components/date-range-picker/context.d.ts +2 -2
- package/dist/components/date-range-picker/context.js +1 -1
- package/dist/components/date-range-picker/date-range-picker-compact.js +1 -1
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +2 -0
- package/dist/components/date-range-picker/types.d.ts +7 -7
- package/dist/components/dialog/context.d.ts +2 -2
- package/dist/components/dialog/context.js +1 -1
- package/dist/components/dialog/dialog-close.js +1 -1
- package/dist/components/dialog/dialog-compact.js +1 -1
- package/dist/components/dialog/dialog-compact.vue.d.ts +10 -10
- package/dist/components/dialog/dialog-fullscreen.js +1 -1
- package/dist/components/dialog/dialog-overlay.js +1 -1
- package/dist/components/dialog/dialog-popup-impl.js +1 -1
- package/dist/components/dialog/dialog-popup.js +1 -1
- package/dist/components/dialog/dialog-root.js +1 -1
- package/dist/components/dialog/state.d.ts +2 -3
- package/dist/components/dialog/state.js +1 -1
- package/dist/components/dialog/types.d.ts +34 -34
- package/dist/components/dropdown-menu/context.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-content.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-trigger.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/index.d.ts +5 -6
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/dropdown-menu/types.d.ts +21 -23
- package/dist/components/editable/context.d.ts +2 -2
- package/dist/components/editable/context.js +1 -1
- package/dist/components/editable/editable-area.js +1 -1
- package/dist/components/editable/editable-cancel-trigger.js +1 -1
- package/dist/components/editable/editable-compact.js +1 -1
- package/dist/components/editable/editable-edit-trigger.js +1 -1
- package/dist/components/editable/editable-input.js +1 -1
- package/dist/components/editable/editable-preview.js +1 -1
- package/dist/components/editable/editable-root.js +1 -1
- package/dist/components/editable/editable-root.vue.d.ts +1 -1
- package/dist/components/editable/editable-submit-trigger.js +1 -1
- package/dist/components/editable/types.d.ts +20 -21
- package/dist/components/empty/context.d.ts +2 -2
- package/dist/components/empty/context.js +1 -1
- package/dist/components/empty/empty-compact.js +1 -1
- package/dist/components/empty/types.d.ts +11 -12
- package/dist/components/form/context.d.ts +2 -2
- package/dist/components/form/context.js +1 -1
- package/dist/components/form/core/shared.js +1 -1
- package/dist/components/form/core/types.d.ts +22 -23
- package/dist/components/form/core/use-field-array.js +1 -1
- package/dist/components/form/core/use-form-state.js +1 -1
- package/dist/components/form/core/use-form.js +1 -1
- package/dist/components/form/form-compact.js +1 -1
- package/dist/components/form/form-field-array-compact.js +1 -1
- package/dist/components/form/form-field-base-compact.js +1 -1
- package/dist/components/form/form-field-compact.js +1 -1
- package/dist/components/form/form-label.js +1 -1
- package/dist/components/form/types.d.ts +20 -21
- package/dist/components/form/use-form.d.ts +2 -3
- package/dist/components/hover-card/context.d.ts +10 -0
- package/dist/components/hover-card/context.js +1 -1
- package/dist/components/hover-card/hover-card-compact.js +1 -1
- package/dist/components/hover-card/hover-card-compact.vue.d.ts +3 -2
- package/dist/components/hover-card/hover-card-popup.js +1 -1
- package/dist/components/hover-card/hover-card-popup.vue.d.ts +2 -2
- package/dist/components/hover-card/hover-card-positioner.js +1 -1
- package/dist/components/hover-card/hover-card-root.js +1 -1
- package/dist/components/hover-card/hover-card-root.vue.d.ts +10 -4
- package/dist/components/hover-card/hover-card-trigger.js +1 -1
- package/dist/components/hover-card/hover-card-trigger.vue.d.ts +2 -2
- package/dist/components/hover-card/index.d.ts +5 -5
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/hover-card/types.d.ts +16 -17
- package/dist/components/input/context.d.ts +2 -2
- package/dist/components/input/context.js +1 -1
- package/dist/components/input/input-clear.js +1 -1
- package/dist/components/input/input-compact.js +1 -1
- package/dist/components/input/input-root.js +1 -1
- package/dist/components/input/types.d.ts +13 -14
- package/dist/components/input-number/context.d.ts +2 -2
- package/dist/components/input-number/context.js +1 -1
- package/dist/components/input-number/input-number-clear.js +1 -1
- package/dist/components/input-number/input-number-compact.js +1 -1
- package/dist/components/input-number/input-number-control.js +1 -1
- package/dist/components/input-number/input-number-decrement.js +1 -1
- package/dist/components/input-number/input-number-increment.js +1 -1
- package/dist/components/input-number/input-number-root.js +1 -1
- package/dist/components/input-number/input-number-root.vue.d.ts +1 -1
- package/dist/components/input-number/shared.js +1 -1
- package/dist/components/input-number/types.d.ts +13 -14
- package/dist/components/input-otp/context.d.ts +2 -2
- package/dist/components/input-otp/context.js +1 -1
- package/dist/components/input-otp/input-otp-compact.js +1 -1
- package/dist/components/input-otp/input-otp-compact.vue.d.ts +4 -4
- package/dist/components/input-otp/input-otp-input.js +1 -1
- package/dist/components/input-otp/input-otp-root.js +1 -1
- package/dist/components/input-otp/input-otp-root.vue.d.ts +4 -4
- package/dist/components/input-otp/types.d.ts +15 -16
- package/dist/components/kbd/kbd.js +1 -1
- package/dist/components/kbd/types.d.ts +3 -4
- package/dist/components/label/types.d.ts +2 -3
- package/dist/components/layout/context.d.ts +2 -2
- package/dist/components/layout/context.js +1 -1
- package/dist/components/layout/layout-compact.js +1 -1
- package/dist/components/layout/layout-mobile.js +1 -1
- package/dist/components/layout/layout-rail.js +1 -1
- package/dist/components/layout/layout-root.js +1 -1
- package/dist/components/layout/layout-root.vue.d.ts +1 -1
- package/dist/components/layout/layout-trigger.js +1 -1
- package/dist/components/layout/types.d.ts +22 -23
- package/dist/components/link/link.js +1 -1
- package/dist/components/link/link.vue.d.ts +1 -1
- package/dist/components/link/types.d.ts +5 -6
- package/dist/components/list/context.d.ts +2 -2
- package/dist/components/list/context.js +1 -1
- package/dist/components/list/types.d.ts +8 -9
- package/dist/components/listbox/context.d.ts +2 -2
- package/dist/components/listbox/context.js +1 -1
- package/dist/components/listbox/index.js +1 -1
- package/dist/components/listbox/listbox-content.js +1 -1
- package/dist/components/listbox/listbox-filter.js +1 -1
- package/dist/components/listbox/listbox-item-indicator.js +1 -1
- package/dist/components/listbox/listbox-item.js +1 -1
- package/dist/components/listbox/listbox-root.js +1 -1
- package/dist/components/listbox/listbox-root.vue.d.ts +1 -1
- package/dist/components/listbox/listbox-virtualizer.js +1 -1
- package/dist/components/listbox/types.d.ts +18 -19
- package/dist/components/menu/context.d.ts +2 -2
- package/dist/components/menu/context.js +1 -1
- package/dist/components/menu/hooks.js +1 -1
- package/dist/components/menu/index.d.ts +6 -6
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/menu-checkbox-group.js +1 -1
- package/dist/components/menu/menu-checkbox-item.js +1 -1
- package/dist/components/menu/menu-checkbox-options-compact.js +1 -1
- package/dist/components/menu/menu-content-impl.js +1 -1
- package/dist/components/menu/menu-content.js +1 -1
- package/dist/components/menu/menu-content.vue.d.ts +2 -2
- package/dist/components/menu/menu-group.js +1 -1
- package/dist/components/menu/menu-item-impl.js +1 -1
- package/dist/components/menu/menu-item-indicator.js +1 -1
- package/dist/components/menu/menu-item.js +1 -1
- package/dist/components/menu/menu-option-compact.js +1 -1
- package/dist/components/menu/menu-option-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-options-compact.js +1 -1
- package/dist/components/menu/menu-options-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-radio-group.js +1 -1
- package/dist/components/menu/menu-radio-item.js +1 -1
- package/dist/components/menu/menu-radio-options-compact.js +1 -1
- package/dist/components/menu/menu-root.js +1 -1
- package/dist/components/menu/menu-root.vue.d.ts +9 -2
- package/dist/components/menu/menu-sub-content.js +1 -1
- package/dist/components/menu/menu-sub-content.vue.d.ts +2 -2
- package/dist/components/menu/menu-sub-trigger.js +1 -1
- package/dist/components/menu/menu-sub.js +1 -1
- package/dist/components/menu/menu-sub.vue.d.ts +2 -2
- package/dist/components/menu/shared.js +1 -1
- package/dist/components/menu/types.d.ts +53 -53
- package/dist/components/menubar/context.d.ts +2 -2
- package/dist/components/menubar/context.js +1 -1
- package/dist/components/menubar/index.d.ts +1 -1
- package/dist/components/menubar/index.js +1 -1
- package/dist/components/menubar/menubar-compact.js +1 -1
- package/dist/components/menubar/menubar-compact.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-content.js +1 -1
- package/dist/components/menubar/menubar-content.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-menu.js +1 -1
- package/dist/components/menubar/menubar-menus.js +1 -1
- package/dist/components/menubar/menubar-root.js +1 -1
- package/dist/components/menubar/menubar-root.vue.d.ts +3 -3
- package/dist/components/menubar/menubar-sub-content.js +1 -1
- package/dist/components/menubar/menubar-sub-content.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-sub-trigger.js +1 -1
- package/dist/components/menubar/menubar-trigger.js +1 -1
- package/dist/components/menubar/menubar-trigger.vue.d.ts +2 -2
- package/dist/components/menubar/types.d.ts +18 -20
- package/dist/components/nav-menu/context.d.ts +9 -0
- package/dist/components/nav-menu/context.js +1 -0
- package/dist/components/nav-menu/index.d.ts +13 -0
- package/dist/components/nav-menu/index.js +1 -0
- package/dist/components/nav-menu/nav-menu-compact.js +1 -0
- package/dist/components/nav-menu/nav-menu-compact.vue.d.ts +23 -0
- package/dist/components/nav-menu/nav-menu-content.js +1 -0
- package/dist/components/nav-menu/nav-menu-content.vue.d.ts +16 -0
- package/dist/components/nav-menu/nav-menu-item.js +1 -0
- package/dist/components/nav-menu/nav-menu-item.vue.d.ts +16 -0
- package/dist/components/nav-menu/nav-menu-link.js +1 -0
- package/dist/components/nav-menu/nav-menu-link.vue.d.ts +28 -0
- package/dist/components/nav-menu/nav-menu-list.js +1 -0
- package/dist/components/nav-menu/nav-menu-list.vue.d.ts +16 -0
- package/dist/components/nav-menu/nav-menu-option-compact.js +1 -0
- package/dist/components/nav-menu/nav-menu-root.js +1 -0
- package/dist/components/nav-menu/nav-menu-root.vue.d.ts +28 -0
- package/dist/components/nav-menu/nav-menu-sub-content.js +1 -0
- package/dist/components/nav-menu/nav-menu-sub-content.vue.d.ts +18 -0
- package/dist/components/nav-menu/nav-menu-sub-option-compact.js +1 -0
- package/dist/components/nav-menu/nav-menu-sub-trigger.js +1 -0
- package/dist/components/nav-menu/nav-menu-sub-trigger.vue.d.ts +20 -0
- package/dist/components/nav-menu/nav-menu-trigger.js +1 -0
- package/dist/components/nav-menu/nav-menu-trigger.vue.d.ts +20 -0
- package/dist/components/nav-menu/nav-menu-viewport.js +1 -0
- package/dist/components/nav-menu/nav-menu-viewport.vue.d.ts +21 -0
- package/dist/components/nav-menu/shared.js +1 -0
- package/dist/components/nav-menu/types.d.ts +219 -0
- package/dist/components/navigation-menu/context.d.ts +2 -2
- package/dist/components/navigation-menu/context.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-compact.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-content-impl.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-content.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-indicator.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-item.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-link.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-option-compact.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-root.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +1 -1
- package/dist/components/navigation-menu/navigation-menu-sub-option-compact.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-trigger.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-viewport.js +1 -1
- package/dist/components/navigation-menu/types.d.ts +81 -30
- package/dist/components/page-tabs/context.d.ts +2 -2
- package/dist/components/page-tabs/context.js +1 -1
- package/dist/components/page-tabs/hooks.js +1 -1
- package/dist/components/page-tabs/page-tabs-close.js +1 -1
- package/dist/components/page-tabs/page-tabs-compact.js +1 -1
- package/dist/components/page-tabs/page-tabs-compact.vue.d.ts +3 -3
- package/dist/components/page-tabs/page-tabs-item.js +1 -1
- package/dist/components/page-tabs/page-tabs-item.vue.d.ts +6 -6
- package/dist/components/page-tabs/page-tabs-pin.js +1 -1
- package/dist/components/page-tabs/page-tabs-root.js +1 -1
- package/dist/components/page-tabs/page-tabs-root.vue.d.ts +2 -2
- package/dist/components/page-tabs/types.d.ts +22 -21
- package/dist/components/pagination/context.d.ts +2 -2
- package/dist/components/pagination/context.js +1 -1
- package/dist/components/pagination/pagination-compact.js +1 -1
- package/dist/components/pagination/pagination-ellipsis.js +1 -1
- package/dist/components/pagination/pagination-first.js +1 -1
- package/dist/components/pagination/pagination-last.js +1 -1
- package/dist/components/pagination/pagination-list-item.js +1 -1
- package/dist/components/pagination/pagination-next.js +1 -1
- package/dist/components/pagination/pagination-prev.js +1 -1
- package/dist/components/pagination/pagination-root.js +1 -1
- package/dist/components/pagination/pagination-root.vue.d.ts +2 -2
- package/dist/components/pagination/types.d.ts +15 -16
- package/dist/components/password/context.d.ts +2 -2
- package/dist/components/password/context.js +1 -1
- package/dist/components/password/password-compact.js +1 -1
- package/dist/components/password/types.d.ts +7 -8
- package/dist/components/popconfirm/context.d.ts +2 -2
- package/dist/components/popconfirm/context.js +1 -1
- package/dist/components/popconfirm/index.d.ts +20 -20
- package/dist/components/popconfirm/index.js +1 -1
- package/dist/components/popconfirm/popconfirm-anchor.js +1 -0
- package/dist/components/popconfirm/popconfirm-anchor.vue.d.ts +16 -0
- package/dist/components/popconfirm/popconfirm-cancel.js +1 -1
- package/dist/components/popconfirm/popconfirm-close.js +1 -0
- package/dist/components/popconfirm/popconfirm-close.vue.d.ts +20 -0
- package/dist/components/popconfirm/popconfirm-compact.js +1 -1
- package/dist/components/popconfirm/popconfirm-compact.vue.d.ts +5 -2
- package/dist/components/popconfirm/popconfirm-confirm.js +1 -1
- package/dist/components/popconfirm/popconfirm-popup.js +1 -0
- package/dist/components/popconfirm/popconfirm-popup.vue.d.ts +16 -0
- package/dist/components/popconfirm/popconfirm-positioner.js +1 -0
- package/dist/components/popconfirm/popconfirm-positioner.vue.d.ts +37 -0
- package/dist/components/popconfirm/popconfirm-root.js +1 -0
- package/dist/components/popconfirm/popconfirm-root.vue.d.ts +28 -0
- package/dist/components/popconfirm/popconfirm-trigger.js +1 -0
- package/dist/components/popconfirm/popconfirm-trigger.vue.d.ts +16 -0
- package/dist/components/popconfirm/shared.js +1 -0
- package/dist/components/popconfirm/types.d.ts +64 -25
- package/dist/components/popover/context.d.ts +2 -3
- package/dist/components/popover/context.js +1 -1
- package/dist/components/popover/index.d.ts +6 -6
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover-anchor.js +1 -1
- package/dist/components/popover/popover-close.js +1 -1
- package/dist/components/popover/popover-compact.js +1 -1
- package/dist/components/popover/popover-compact.vue.d.ts +2 -0
- package/dist/components/popover/popover-popup.js +1 -1
- package/dist/components/popover/popover-positioner.js +1 -1
- package/dist/components/popover/popover-positioner.vue.d.ts +5 -6
- package/dist/components/popover/popover-root.js +1 -1
- package/dist/components/popover/popover-root.vue.d.ts +9 -5
- package/dist/components/popover/popover-trigger.js +1 -1
- package/dist/components/popover/popover-trigger.vue.d.ts +2 -2
- package/dist/components/popover/types.d.ts +17 -29
- package/dist/components/popper/context.d.ts +8 -5
- package/dist/components/popper/context.js +1 -1
- package/dist/components/popper/index.d.ts +17 -6
- package/dist/components/popper/index.js +1 -1
- package/dist/components/popper/popper-anchor.js +1 -1
- package/dist/components/popper/popper-arrow.js +1 -1
- package/dist/components/popper/popper-compact.js +1 -0
- package/dist/components/popper/popper-compact.vue.d.ts +40 -0
- package/dist/components/popper/popper-popup.js +1 -1
- package/dist/components/popper/popper-portal.js +1 -0
- package/dist/components/popper/popper-portal.vue.d.ts +16 -0
- package/dist/components/popper/popper-positioner-impl.js +1 -0
- package/dist/components/popper/popper-positioner-impl.vue.d.ts +247 -0
- package/dist/components/popper/popper-positioner.js +1 -1
- package/dist/components/popper/popper-positioner.vue.d.ts +15 -209
- package/dist/components/popper/popper-positioning-popup.js +1 -0
- package/dist/components/popper/popper-positioning-popup.vue.d.ts +16 -0
- package/dist/components/popper/popper-positioning-positioner.js +1 -0
- package/dist/components/popper/popper-positioning-positioner.vue.d.ts +231 -0
- package/dist/components/popper/popper-positioning-root.js +1 -0
- package/dist/components/popper/popper-positioning-root.vue.d.ts +16 -0
- package/dist/components/popper/popper-root.js +1 -1
- package/dist/components/popper/popper-root.vue.d.ts +12 -6
- package/dist/components/popper/popper-sub-trigger.js +1 -0
- package/dist/components/popper/popper-sub-trigger.vue.d.ts +22 -0
- package/dist/components/popper/popper-sub.js +1 -0
- package/dist/components/popper/popper-sub.vue.d.ts +21 -0
- package/dist/components/popper/popper-trigger.js +1 -0
- package/dist/components/popper/popper-trigger.vue.d.ts +23 -0
- package/dist/components/popper/shared.d.ts +10 -0
- package/dist/components/popper/shared.js +1 -1
- package/dist/components/popper/types.d.ts +357 -30
- package/dist/components/popper/use-popper-dismiss.js +1 -0
- package/dist/components/popper/use-popper-nesting.js +1 -0
- package/dist/components/popper/use-popper-positioning.js +1 -0
- package/dist/components/popper/use-popper-trigger.js +1 -0
- package/dist/components/popper/use-virtual-point-reference.d.ts +28 -0
- package/dist/components/popper/use-virtual-point-reference.js +1 -0
- package/dist/components/portal/types.d.ts +2 -3
- package/dist/components/primitive/primitive.d.ts +2 -3
- package/dist/components/primitive/primitive.js +1 -1
- package/dist/components/primitive/types.d.ts +4 -5
- package/dist/components/progress/context.d.ts +2 -2
- package/dist/components/progress/context.js +1 -1
- package/dist/components/progress/progress-circle-compact.js +1 -1
- package/dist/components/progress/progress-compact.js +1 -1
- package/dist/components/progress/progress-indicator.js +1 -1
- package/dist/components/progress/progress-provider.js +1 -1
- package/dist/components/progress/progress-root.js +1 -1
- package/dist/components/progress/shared.js +1 -1
- package/dist/components/progress/state.d.ts +2 -3
- package/dist/components/progress/state.js +1 -1
- package/dist/components/progress/types.d.ts +18 -19
- package/dist/components/radio-group/context.d.ts +2 -2
- package/dist/components/radio-group/context.js +1 -1
- package/dist/components/radio-group/radio-group-card-compact.js +1 -1
- package/dist/components/radio-group/radio-group-compact.js +1 -1
- package/dist/components/radio-group/radio-group-control.js +1 -1
- package/dist/components/radio-group/radio-group-control.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-indicator.js +1 -1
- package/dist/components/radio-group/radio-group-item.js +1 -1
- package/dist/components/radio-group/radio-group-label.js +1 -1
- package/dist/components/radio-group/radio-group-root.js +1 -1
- package/dist/components/radio-group/types.d.ts +19 -19
- package/dist/components/rating/context.js +1 -1
- package/dist/components/rating/rating-item.js +1 -1
- package/dist/components/rating/rating-root.js +1 -1
- package/dist/components/rating/rating-root.vue.d.ts +3 -3
- package/dist/components/rating/shared.js +1 -1
- package/dist/components/rating/types.d.ts +8 -9
- package/dist/components/scroll-area/context.d.ts +2 -2
- package/dist/components/scroll-area/context.js +1 -1
- package/dist/components/scroll-area/scroll-area-compact.js +1 -1
- package/dist/components/scroll-area/scroll-area-corner.js +1 -1
- package/dist/components/scroll-area/scroll-area-root.js +1 -1
- package/dist/components/scroll-area/scroll-area-scrollbar.js +1 -1
- package/dist/components/scroll-area/scroll-area-thumb.js +1 -1
- package/dist/components/scroll-area/scroll-area-viewport.js +1 -1
- package/dist/components/scroll-area/types.d.ts +15 -16
- package/dist/components/segment/context.d.ts +9 -0
- package/dist/components/segment/context.js +1 -0
- package/dist/components/segment/index.d.ts +8 -8
- package/dist/components/segment/index.js +1 -1
- package/dist/components/segment/segment-compact.js +1 -1
- package/dist/components/segment/segment-indicator.js +1 -0
- package/dist/components/segment/segment-indicator.vue.d.ts +16 -0
- package/dist/components/segment/segment-list.js +1 -0
- package/dist/components/segment/segment-list.vue.d.ts +16 -0
- package/dist/components/segment/segment-root.js +1 -0
- package/dist/components/segment/segment-root.vue.d.ts +25 -0
- package/dist/components/segment/segment-trigger.js +1 -0
- package/dist/components/segment/segment-trigger.vue.d.ts +18 -0
- package/dist/components/segment/types.d.ts +30 -10
- package/dist/components/select/context.d.ts +2 -2
- package/dist/components/select/context.js +1 -1
- package/dist/components/select/index.d.ts +20 -19
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select-arrow.js +1 -1
- package/dist/components/select/select-bubble-select.js +1 -1
- package/dist/components/select/select-clear.js +1 -0
- package/dist/components/select/select-clear.vue.d.ts +16 -0
- package/dist/components/select/select-compact.js +1 -1
- package/dist/components/select/select-content-impl.js +1 -1
- package/dist/components/select/select-content.js +1 -1
- package/dist/components/select/select-item-aligned-popup.js +1 -1
- package/dist/components/select/select-item-aligned-positioner.js +1 -1
- package/dist/components/select/select-item-indicator.js +1 -1
- package/dist/components/select/select-item-text.js +1 -1
- package/dist/components/select/select-item.js +1 -1
- package/dist/components/select/select-popper-popup.js +1 -1
- package/dist/components/select/select-root.js +1 -1
- package/dist/components/select/select-scroll-button-impl.js +1 -1
- package/dist/components/select/select-scroll-down-button.js +1 -1
- package/dist/components/select/select-scroll-up-button.js +1 -1
- package/dist/components/select/select-trigger.js +1 -1
- package/dist/components/select/select-value.js +1 -1
- package/dist/components/select/select-viewport.js +1 -1
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/types.d.ts +58 -37
- package/dist/components/separator/context.d.ts +2 -2
- package/dist/components/separator/context.js +1 -1
- package/dist/components/separator/separator-compact.js +1 -1
- package/dist/components/separator/types.d.ts +7 -8
- package/dist/components/skeleton/skeleton.js +1 -1
- package/dist/components/skeleton/types.d.ts +2 -3
- package/dist/components/slider/context.d.ts +2 -2
- package/dist/components/slider/context.js +1 -1
- package/dist/components/slider/shared.js +1 -1
- package/dist/components/slider/slider-compact.js +1 -1
- package/dist/components/slider/slider-range.js +1 -1
- package/dist/components/slider/slider-root.js +1 -1
- package/dist/components/slider/slider-root.vue.d.ts +4 -4
- package/dist/components/slider/slider-thumb.js +1 -1
- package/dist/components/slider/slider-track.js +1 -1
- package/dist/components/slider/types.d.ts +16 -17
- package/dist/components/slot/slot.d.ts +2 -3
- package/dist/components/slot/slot.js +1 -1
- package/dist/components/split-nav/context.d.ts +9 -0
- package/dist/components/split-nav/context.js +1 -0
- package/dist/components/split-nav/dual-vertical-pane.js +1 -0
- package/dist/components/split-nav/first-level-item.js +1 -0
- package/dist/components/split-nav/first-level-menu.js +1 -0
- package/dist/components/split-nav/hooks.js +1 -0
- package/dist/components/split-nav/horizontal-dual-vertical-menu.js +1 -0
- package/dist/components/split-nav/horizontal-first-level-menu.js +1 -0
- package/dist/components/split-nav/horizontal-vertical-menu.js +1 -0
- package/dist/components/split-nav/index.d.ts +4 -0
- package/dist/components/split-nav/index.js +1 -0
- package/dist/components/split-nav/shared.js +1 -0
- package/dist/components/split-nav/split-nav-root.js +1 -0
- package/dist/components/split-nav/split-nav-root.vue.d.ts +22 -0
- package/dist/components/split-nav/types.d.ts +187 -0
- package/dist/components/split-nav/vertical-first-level-menu.js +1 -0
- package/dist/components/split-nav/vertical-horizontal-menu.js +1 -0
- package/dist/components/splitter/context.d.ts +2 -2
- package/dist/components/splitter/context.js +1 -1
- package/dist/components/splitter/shared.js +1 -1
- package/dist/components/splitter/splitter-group.js +1 -1
- package/dist/components/splitter/splitter-panel.js +1 -1
- package/dist/components/splitter/splitter-resize-handle.js +1 -1
- package/dist/components/splitter/splitter-resize-handle.vue.d.ts +1 -1
- package/dist/components/splitter/types.d.ts +13 -14
- package/dist/components/stepper/context.d.ts +2 -2
- package/dist/components/stepper/context.js +1 -1
- package/dist/components/stepper/stepper-compact.js +1 -1
- package/dist/components/stepper/stepper-description.js +1 -1
- package/dist/components/stepper/stepper-indicator.js +1 -1
- package/dist/components/stepper/stepper-item.js +1 -1
- package/dist/components/stepper/stepper-root.js +1 -1
- package/dist/components/stepper/stepper-root.vue.d.ts +1 -1
- package/dist/components/stepper/stepper-separator.js +1 -1
- package/dist/components/stepper/stepper-title.js +1 -1
- package/dist/components/stepper/stepper-trigger.js +1 -1
- package/dist/components/stepper/types.d.ts +16 -17
- package/dist/components/switch/context.d.ts +2 -2
- package/dist/components/switch/context.js +1 -1
- package/dist/components/switch/switch-compact.js +1 -1
- package/dist/components/switch/switch-control.js +1 -1
- package/dist/components/switch/switch-root.js +1 -1
- package/dist/components/switch/switch-thumb.js +1 -1
- package/dist/components/switch/types.d.ts +12 -13
- package/dist/components/table/context.d.ts +2 -2
- package/dist/components/table/context.js +1 -1
- package/dist/components/table/hooks.js +1 -1
- package/dist/components/table/shared.d.ts +28 -29
- package/dist/components/table/shared.js +1 -1
- package/dist/components/table/table-compact-cell.js +1 -1
- package/dist/components/table/table-compact-head.js +1 -1
- package/dist/components/table/table-compact-row.js +1 -1
- package/dist/components/table/table-compact.js +1 -1
- package/dist/components/table/types.d.ts +64 -65
- package/dist/components/tabs/context.d.ts +2 -2
- package/dist/components/tabs/context.js +1 -1
- package/dist/components/tabs/tabs-compact.js +1 -1
- package/dist/components/tabs/tabs-content.js +1 -1
- package/dist/components/tabs/tabs-content.vue.d.ts +1 -1
- package/dist/components/tabs/tabs-indicator.js +1 -1
- package/dist/components/tabs/tabs-list.js +1 -1
- package/dist/components/tabs/tabs-list.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-root.js +1 -1
- package/dist/components/tabs/tabs-root.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-trigger.js +1 -1
- package/dist/components/tabs/tabs-trigger.vue.d.ts +3 -3
- package/dist/components/tabs/types.d.ts +18 -18
- package/dist/components/tag/tag.js +1 -1
- package/dist/components/tag/types.d.ts +3 -4
- package/dist/components/tags-input/context.d.ts +2 -2
- package/dist/components/tags-input/context.js +1 -1
- package/dist/components/tags-input/tags-input-clear.js +1 -1
- package/dist/components/tags-input/tags-input-compact.js +1 -1
- package/dist/components/tags-input/tags-input-compact.vue.d.ts +2 -2
- package/dist/components/tags-input/tags-input-control.js +1 -1
- package/dist/components/tags-input/tags-input-item-delete.js +1 -1
- package/dist/components/tags-input/tags-input-item-text.js +1 -1
- package/dist/components/tags-input/tags-input-item.js +1 -1
- package/dist/components/tags-input/tags-input-root.js +1 -1
- package/dist/components/tags-input/tags-input-root.vue.d.ts +3 -3
- package/dist/components/tags-input/types.d.ts +15 -16
- package/dist/components/textarea/context.d.ts +2 -2
- package/dist/components/textarea/context.js +1 -1
- package/dist/components/textarea/textarea-clear.js +1 -1
- package/dist/components/textarea/textarea-compact.js +1 -1
- package/dist/components/textarea/textarea-root.js +1 -1
- package/dist/components/textarea/types.d.ts +15 -16
- package/dist/components/time-field/context.d.ts +2 -2
- package/dist/components/time-field/context.js +1 -1
- package/dist/components/time-field/time-field-compact.js +1 -1
- package/dist/components/time-field/time-field-input.js +1 -1
- package/dist/components/time-field/time-field-root.js +1 -1
- package/dist/components/time-field/time-field-root.vue.d.ts +1 -1
- package/dist/components/time-field/types.d.ts +10 -10
- package/dist/components/time-range-field/context.d.ts +2 -2
- package/dist/components/time-range-field/context.js +1 -1
- package/dist/components/time-range-field/time-range-field-compact.js +1 -1
- package/dist/components/time-range-field/time-range-field-input.js +1 -1
- package/dist/components/time-range-field/time-range-field-root.js +1 -1
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +1 -1
- package/dist/components/time-range-field/types.d.ts +11 -12
- package/dist/components/toast/context.d.ts +2 -2
- package/dist/components/toast/context.js +1 -1
- package/dist/components/toast/shared.js +1 -1
- package/dist/components/toast/state.d.ts +2 -3
- package/dist/components/toast/state.js +1 -1
- package/dist/components/toast/toast.js +1 -1
- package/dist/components/toast/toaster.js +1 -1
- package/dist/components/toast/toaster.vue.d.ts +1 -1
- package/dist/components/toast/types.d.ts +18 -19
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle/types.d.ts +4 -5
- package/dist/components/toggle-group/context.d.ts +2 -2
- package/dist/components/toggle-group/context.js +1 -1
- package/dist/components/toggle-group/toggle-group-item.js +1 -1
- package/dist/components/toggle-group/toggle-group-root.js +1 -1
- package/dist/components/toggle-group/types.d.ts +6 -7
- package/dist/components/toolbar/context.d.ts +2 -2
- package/dist/components/toolbar/context.js +1 -1
- package/dist/components/toolbar/toolbar-button.js +1 -1
- package/dist/components/toolbar/toolbar-button.vue.d.ts +2 -2
- package/dist/components/toolbar/toolbar-link.js +1 -1
- package/dist/components/toolbar/toolbar-link.vue.d.ts +2 -2
- package/dist/components/toolbar/toolbar-root.js +1 -1
- package/dist/components/toolbar/toolbar-root.vue.d.ts +2 -2
- package/dist/components/toolbar/toolbar-separator.js +1 -1
- package/dist/components/toolbar/toolbar-toggle-group.js +1 -1
- package/dist/components/toolbar/toolbar-toggle-item.js +1 -1
- package/dist/components/toolbar/types.d.ts +13 -14
- package/dist/components/tooltip/context.d.ts +10 -0
- package/dist/components/tooltip/context.js +1 -1
- package/dist/components/tooltip/index.d.ts +9 -8
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/shared.js +1 -1
- package/dist/components/tooltip/tooltip-compact.js +1 -1
- package/dist/components/tooltip/tooltip-compact.vue.d.ts +14 -3
- package/dist/components/tooltip/tooltip-popup.js +1 -1
- package/dist/components/tooltip/tooltip-positioner.js +1 -1
- package/dist/components/tooltip/tooltip-positioner.vue.d.ts +12 -1
- package/dist/components/tooltip/tooltip-provider.js +1 -0
- package/dist/components/tooltip/tooltip-provider.vue.d.ts +16 -0
- package/dist/components/tooltip/tooltip-root.js +1 -1
- package/dist/components/tooltip/tooltip-root.vue.d.ts +10 -4
- package/dist/components/tooltip/tooltip-trigger.js +1 -1
- package/dist/components/tooltip/tooltip-trigger.vue.d.ts +2 -2
- package/dist/components/tooltip/types.d.ts +25 -19
- package/dist/components/tree/context.js +1 -1
- package/dist/components/tree/hooks.js +1 -1
- package/dist/components/tree/tree-item.js +1 -1
- package/dist/components/tree/tree-item.vue.d.ts +2 -2
- package/dist/components/tree/tree-root.js +1 -1
- package/dist/components/tree/tree-virtualizer-item.js +1 -1
- package/dist/components/tree/tree-virtualizer-root.js +1 -1
- package/dist/components/tree/tree-virtualizer-root.vue.d.ts +3 -3
- package/dist/components/tree/types.d.ts +14 -15
- package/dist/components/tree-menu/context.d.ts +12 -5
- package/dist/components/tree-menu/context.js +1 -1
- package/dist/components/tree-menu/shared.js +1 -1
- package/dist/components/tree-menu/tree-menu-button.js +1 -1
- package/dist/components/tree-menu/tree-menu-collapsible.js +1 -1
- package/dist/components/tree-menu/tree-menu-compact.js +1 -1
- package/dist/components/tree-menu/tree-menu-compact.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-group.js +1 -1
- package/dist/components/tree-menu/tree-menu-item.js +1 -1
- package/dist/components/tree-menu/tree-menu-option-compact.js +1 -1
- package/dist/components/tree-menu/tree-menu-options-compact.js +1 -1
- package/dist/components/tree-menu/tree-menu-root.js +1 -1
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +5 -5
- package/dist/components/tree-menu/tree-menu-slot-compact.js +1 -1
- package/dist/components/tree-menu/tree-menu-sub.js +1 -1
- package/dist/components/tree-menu/tree-menu-tooltip-compact.js +1 -1
- package/dist/components/tree-menu/types.d.ts +46 -36
- package/dist/components/tree-nav/context.d.ts +68 -0
- package/dist/components/tree-nav/context.js +1 -0
- package/dist/components/tree-nav/index.d.ts +8 -0
- package/dist/components/tree-nav/index.js +1 -0
- package/dist/components/tree-nav/shared.js +1 -0
- package/dist/components/tree-nav/tree-nav-compact.js +1 -0
- package/dist/components/tree-nav/tree-nav-compact.vue.d.ts +19 -0
- package/dist/components/tree-nav/tree-nav-option-compact.js +1 -0
- package/dist/components/tree-nav/tree-nav-option-compact.vue.d.ts +15 -0
- package/dist/components/tree-nav/tree-nav-options-compact.js +1 -0
- package/dist/components/tree-nav/tree-nav-options-compact.vue.d.ts +15 -0
- package/dist/components/tree-nav/tree-nav-overflow.js +1 -0
- package/dist/components/tree-nav/tree-nav-overflow.vue.d.ts +16 -0
- package/dist/components/tree-nav/tree-nav-root.js +1 -0
- package/dist/components/tree-nav/tree-nav-root.vue.d.ts +23 -0
- package/dist/components/tree-nav/types.d.ts +299 -0
- package/dist/components/virtualizer/context.js +1 -1
- package/dist/components/virtualizer/types.d.ts +5 -5
- package/dist/components/virtualizer/virtualizer-content.js +1 -1
- package/dist/components/virtualizer/virtualizer-item.js +1 -1
- package/dist/components/virtualizer/virtualizer-root.js +1 -1
- package/dist/components/visually-hidden/types.d.ts +4 -5
- package/dist/components/visually-hidden/visually-hidden-input-bubble.js +1 -1
- package/dist/components/visually-hidden/visually-hidden-input.js +1 -1
- package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +1 -1
- package/dist/components/visually-hidden/visually-hidden.js +1 -1
- package/dist/components/watermark/context.d.ts +2 -2
- package/dist/components/watermark/context.js +1 -1
- package/dist/components/watermark/shared.js +1 -1
- package/dist/components/watermark/types.d.ts +6 -7
- package/dist/components/watermark/watermark-compact.js +1 -1
- package/dist/components/watermark/watermark-overlay.js +1 -1
- package/dist/components/watermark/watermark-root.js +1 -1
- package/dist/composables/index.d.ts +4 -3
- package/dist/composables/index.js +1 -1
- package/dist/composables/use-arrow-navigation.d.ts +2 -3
- package/dist/composables/use-body-scroll-lock.d.ts +2 -3
- package/dist/composables/use-body-scroll-lock.js +2 -2
- package/dist/composables/use-bool-prop.d.ts +2 -3
- package/dist/composables/use-collection.d.ts +5 -5
- package/dist/composables/use-collection.js +1 -1
- package/dist/composables/use-context.d.ts +25 -2
- package/dist/composables/use-context.js +1 -1
- package/dist/composables/use-controllable-state.d.ts +2 -3
- package/dist/composables/use-controllable-state.js +1 -1
- package/dist/composables/use-dismissable-layer.d.ts +6 -7
- package/dist/composables/use-dismissable-layer.js +1 -1
- package/dist/composables/use-escape-key-down.d.ts +2 -3
- package/dist/composables/use-exposed-element.d.ts +2 -3
- package/dist/composables/use-floating.d.ts +4 -5
- package/dist/composables/use-floating.js +1 -1
- package/dist/composables/use-focus-guards.d.ts +3 -3
- package/dist/composables/use-focus-guards.js +1 -1
- package/dist/composables/use-focus-scope.d.ts +3 -4
- package/dist/composables/use-focus-scope.js +1 -1
- package/dist/composables/use-forward-element.d.ts +2 -3
- package/dist/composables/use-forward-element.js +1 -1
- package/dist/composables/use-forward-listeners.d.ts +2 -3
- package/dist/composables/use-fuse.d.ts +19 -10
- package/dist/composables/use-fuse.js +1 -1
- package/dist/composables/use-grace-area.d.ts +3 -4
- package/dist/composables/use-grace-area.js +1 -1
- package/dist/composables/use-hide-others.d.ts +27 -8
- package/dist/composables/use-hide-others.js +1 -1
- package/dist/composables/use-image-loading-status.d.ts +2 -3
- package/dist/composables/use-image-loading-status.js +1 -1
- package/dist/composables/use-is-using-keyboard.d.ts +2 -3
- package/dist/composables/use-is-using-keyboard.js +1 -1
- package/dist/composables/use-kbd.d.ts +3 -4
- package/dist/composables/use-popup-events.d.ts +3 -5
- package/dist/composables/use-popup-events.js +1 -1
- package/dist/composables/use-presence.d.ts +2 -3
- package/dist/composables/use-props.d.ts +3 -4
- package/dist/composables/use-props.js +1 -1
- package/dist/composables/use-roving-focus.d.ts +79 -0
- package/dist/composables/use-roving-focus.js +1 -0
- package/dist/composables/use-selection.d.ts +2 -3
- package/dist/composables/use-selection.js +1 -1
- package/dist/composables/use-state-machine.d.ts +2 -3
- package/dist/composables/use-typeahead.d.ts +3 -4
- package/dist/composables/use-typeahead.js +1 -1
- package/dist/composables/use-ui-context.d.ts +3 -4
- package/dist/constants/attr.d.ts +11 -4
- package/dist/constants/attr.js +1 -1
- package/dist/constants/common.d.ts +6 -7
- package/dist/constants/components.d.ts +5 -4
- package/dist/constants/components.js +1 -1
- package/dist/constants/index.d.ts +2 -2
- package/dist/constants/index.js +1 -1
- package/dist/constants/regexp.d.ts +4 -5
- package/dist/date/calendar.d.ts +18 -19
- package/dist/date/calendar.js +1 -1
- package/dist/date/comparators.d.ts +26 -27
- package/dist/date/formatter.d.ts +4 -5
- package/dist/date/parser.d.ts +5 -6
- package/dist/date/parts.d.ts +11 -12
- package/dist/date/placeholders.d.ts +2 -3
- package/dist/date/segment.d.ts +5 -6
- package/dist/date/types.d.ts +28 -28
- package/dist/date/use-date-field.d.ts +3 -4
- package/dist/date/use-date-field.js +1 -1
- package/dist/date/utils.d.ts +10 -11
- package/dist/date/utils.js +1 -1
- package/dist/index.d.ts +429 -359
- package/dist/index.js +1 -1
- package/dist/locale/hooks.d.ts +2 -3
- package/dist/locale/hooks.js +1 -1
- package/dist/locale/langs/ar.js +1 -1
- package/dist/locale/langs/de.js +1 -1
- package/dist/locale/langs/en.js +1 -1
- package/dist/locale/langs/es.js +1 -1
- package/dist/locale/langs/fr.js +1 -1
- package/dist/locale/langs/id.js +1 -1
- package/dist/locale/langs/ja.js +1 -1
- package/dist/locale/langs/ko.js +1 -1
- package/dist/locale/langs/pt-BR.js +1 -1
- package/dist/locale/langs/ru.js +1 -1
- package/dist/locale/langs/tr.js +1 -1
- package/dist/locale/langs/zh-CN.js +1 -1
- package/dist/locale/langs/zh-TW.js +1 -1
- package/dist/locale/locales.d.ts +5 -5
- package/dist/locale/types.d.ts +45 -37
- package/dist/namespaced/index.d.ts +1205 -1118
- package/dist/namespaced/index.js +1 -1
- package/dist/nuxt/index.d.ts +2 -2
- package/dist/nuxt/index.js +1 -1
- package/dist/resolver/index.d.ts +2 -2
- package/dist/resolver/index.js +1 -1
- package/dist/shared/array.d.ts +4 -0
- package/dist/shared/array.js +1 -0
- package/dist/shared/color.d.ts +23 -24
- package/dist/shared/color.js +1 -1
- package/dist/shared/comparison.d.ts +2 -3
- package/dist/shared/dom.d.ts +7 -8
- package/dist/shared/dom.js +1 -1
- package/dist/shared/env.d.ts +11 -6
- package/dist/shared/env.js +1 -1
- package/dist/shared/event.d.ts +3 -4
- package/dist/shared/focus.d.ts +9 -10
- package/dist/shared/form.d.ts +6 -7
- package/dist/shared/fuzzy.d.ts +20 -0
- package/dist/shared/fuzzy.js +1 -0
- package/dist/shared/geometry.d.ts +8 -9
- package/dist/shared/guard.d.ts +13 -14
- package/dist/shared/index.d.ts +9 -5
- package/dist/shared/index.js +1 -1
- package/dist/shared/mark-others.d.ts +52 -0
- package/dist/shared/mark-others.js +1 -0
- package/dist/shared/object.d.ts +38 -18
- package/dist/shared/object.js +1 -1
- package/dist/shared/string.d.ts +17 -5
- package/dist/shared/string.js +1 -1
- package/dist/shared/time-picker.d.ts +9 -10
- package/dist/shared/time-picker.js +1 -1
- package/dist/shared/tree-navigation.d.ts +59 -0
- package/dist/shared/tree-navigation.js +1 -0
- package/dist/shared/tree.d.ts +2 -3
- package/dist/shared/value.d.ts +11 -12
- package/dist/shared/vue.d.ts +23 -10
- package/dist/shared/vue.js +1 -1
- package/dist/types/color.d.ts +8 -9
- package/dist/types/common.d.ts +31 -32
- package/dist/types/component.d.ts +8 -9
- package/dist/types/dom.d.ts +4 -5
- package/dist/types/event.d.ts +7 -8
- package/dist/types/index.d.ts +2 -2
- package/dist/types/path.d.ts +6 -7
- package/dist/types/vue.d.ts +7 -8
- package/package.json +16 -32
- package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/defineProperty.js +0 -1
- package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPrimitive.js +0 -1
- package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPropertyKey.js +0 -1
- package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/typeof.js +0 -1
- package/dist/components/dropdown-menu/shared.js +0 -1
- package/dist/components/hover-card/hover-card-positioner-impl.js +0 -1
- package/dist/components/popover/popover-positioner-impl.js +0 -1
- package/dist/components/roving-focus/context.js +0 -1
- package/dist/components/roving-focus/index.d.ts +0 -4
- package/dist/components/roving-focus/index.js +0 -1
- package/dist/components/roving-focus/roving-focus-group.js +0 -1
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +0 -32
- package/dist/components/roving-focus/roving-focus-item.js +0 -1
- package/dist/components/roving-focus/roving-focus-item.vue.d.ts +0 -18
- package/dist/components/roving-focus/types.d.ts +0 -65
- package/dist/components/tooltip/tooltip-positioner-impl.js +0 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { DataOrientation, Direction } from "../types/common.js";
|
|
2
|
+
import { EmitsToHookProps, ToContext, VNodeRef } from "../types/vue.js";
|
|
3
|
+
import "../types/index.js";
|
|
4
|
+
import { CollectionItemData } from "./use-collection.js";
|
|
5
|
+
import { ComputedRef } from "vue";
|
|
6
|
+
//#region src/composables/use-roving-focus.d.ts
|
|
7
|
+
export interface RovingFocusGroupOptions {
|
|
8
|
+
/** The orientation of the group. Mainly so arrow navigation is done accordingly (left & right vs. up & down) */
|
|
9
|
+
orientation?: DataOrientation;
|
|
10
|
+
/** The direction of navigation between items. */
|
|
11
|
+
dir?: Direction;
|
|
12
|
+
/**
|
|
13
|
+
* Whether keyboard navigation should loop around
|
|
14
|
+
*
|
|
15
|
+
* @defaultValue false
|
|
16
|
+
*/
|
|
17
|
+
loop?: boolean;
|
|
18
|
+
/** The controlled value of the current stop item. Can be bound as `v-model`. */
|
|
19
|
+
currentTabStopId?: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* The value of the current stop item.
|
|
22
|
+
*
|
|
23
|
+
* Use when you do not need to control the state of the stop item.
|
|
24
|
+
*/
|
|
25
|
+
defaultCurrentTabStopId?: string;
|
|
26
|
+
/** When `true`, will prevent scrolling to the focus item when focused. */
|
|
27
|
+
preventScrollOnEntryFocus?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export type RovingFocusGroupEmits = {
|
|
30
|
+
/** Emitted when entry focus occurs. */
|
|
31
|
+
entryFocus: [event: Event];
|
|
32
|
+
/** Emitted when the current tab stop id value changes. */
|
|
33
|
+
'update:currentTabStopId': [value: string | null | undefined];
|
|
34
|
+
};
|
|
35
|
+
export interface RovingFocusItemOptions {
|
|
36
|
+
/** Tab stop id. */
|
|
37
|
+
tabStopId?: string;
|
|
38
|
+
/**
|
|
39
|
+
* When `false`, item will not be focusable.
|
|
40
|
+
*
|
|
41
|
+
* @defaultValue `true`
|
|
42
|
+
*/
|
|
43
|
+
focusable?: boolean;
|
|
44
|
+
/** When `true`, item will be initially focused. */
|
|
45
|
+
active?: boolean;
|
|
46
|
+
/** When `true`, shift + arrow key will allow focusing on next/previous item. */
|
|
47
|
+
allowShiftKey?: boolean;
|
|
48
|
+
/** Additional data to be passed to the collection item. */
|
|
49
|
+
itemData?: Record<string, unknown>;
|
|
50
|
+
}
|
|
51
|
+
/** Reactive context params for the group; build from plain props with `toContext`. */
|
|
52
|
+
export type RovingFocusGroupContextParams = ToContext<RovingFocusGroupOptions, 'orientation' | 'dir' | 'loop' | 'currentTabStopId' | 'defaultCurrentTabStopId' | 'preventScrollOnEntryFocus'> & EmitsToHookProps<RovingFocusGroupEmits>;
|
|
53
|
+
/** Reactive item options for `useRovingFocusGroupItem`. */
|
|
54
|
+
export type RovingFocusGroupItemOptions = Partial<ToContext<RovingFocusItemOptions, 'tabStopId' | 'focusable' | 'active' | 'allowShiftKey' | 'itemData'>>;
|
|
55
|
+
/**
|
|
56
|
+
* Roving focus group as a pure hook: no render shell, consumers render their
|
|
57
|
+
* own element (usually `Primitive`) and spread the returned bindings.
|
|
58
|
+
*
|
|
59
|
+
* @param params - Reactive context params; build from plain props with `toContext`.
|
|
60
|
+
* @returns A container ref binder, the merged group props (attributes + listeners + data marker)
|
|
61
|
+
* and the ordered collection accessor.
|
|
62
|
+
*/
|
|
63
|
+
export declare function useRovingFocusGroup(params: RovingFocusGroupContextParams): {
|
|
64
|
+
setContainerElement: (nodeRef: VNodeRef) => void;
|
|
65
|
+
groupProps: ComputedRef<Record<string, unknown>>;
|
|
66
|
+
getOrderedItems: (excludeDisabled?: boolean) => CollectionItemData<Record<string, unknown>>[];
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Roving focus item as a pure hook: registers with the group collection and
|
|
70
|
+
* returns merged item props (tabindex, data attributes, listeners) for `v-bind`.
|
|
71
|
+
*
|
|
72
|
+
* @param options - Reactive item options; build from plain props with `toContext`.
|
|
73
|
+
* @returns An item ref binder and the merged item props.
|
|
74
|
+
*/
|
|
75
|
+
export declare function useRovingFocusGroupItem(options?: RovingFocusGroupItemOptions): {
|
|
76
|
+
setItemElement: (nodeRef: VNodeRef) => void;
|
|
77
|
+
itemProps: ComputedRef<Record<string, unknown>>;
|
|
78
|
+
};
|
|
79
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{COLLECTION_ITEM_ATTRIBUTE as e}from"../constants/attr.js";import{isNullish as t}from"../shared/guard.js";import{wrapArray as n}from"../shared/object.js";import{isElementHasAttribute as r}from"../shared/dom.js";import{getFocusIntent as i,tryFocusFirst as a}from"../shared/focus.js";import{useContext as o}from"./use-context.js";import{useDirection as s}from"../components/config-provider/context.js";import{useCollection as c}from"./use-collection.js";import{useControllableState as l}from"./use-controllable-state.js";import{useForwardElement as u}from"./use-forward-element.js";import{computed as d,nextTick as f,onBeforeUnmount as p,onMounted as m,shallowRef as h,toHandlers as g,useId as _}from"vue";const v={bubbles:!1,cancelable:!0},{provideCollectionContext:y,useCollectionContext:b,useCollectionItem:x}=c(`RovingFocusGroup`),[S,C]=o(`RovingFocusGroup`,e=>{let{onContainerElementChange:n,getOrderedItems:i,getOrderedElements:o}=y(),{loop:c,orientation:u,defaultCurrentTabStopId:f,preventScrollOnEntryFocus:p,onEntryFocus:m,onUpdateCurrentTabStopId:g}=e,_=s(e.dir),b=l(()=>e.currentTabStopId.value,g,f.value??``),x=e=>{b.value=e},S=h(!1),C=h(!1),w=()=>{S.value=!0},T=h(0);return{onContainerElementChange:n,loop:c,dir:_,orientation:u,currentTabStopId:b,onItemFocus:x,onItemShiftTab:w,onFocusableItemAdd:()=>{T.value++},onFocusableItemRemove:()=>{T.value--},rovingFocusGroupProps:d(()=>({tabindex:S.value||T.value===0?`-1`:`0`,"data-orientation":u.value,dir:_.value,"data-loop":c.value?``:void 0,style:`outline: none`})),rovingFocusGroupListeners:{mousedown:()=>{C.value=!0},mouseup:()=>{setTimeout(()=>{C.value=!1},1)},focus:e=>{let n=!C.value;if(!e.currentTarget||e.target!==e.currentTarget||!n||S.value){C.value=!1;return}let i=new CustomEvent(`rovingFocusGroup.onEntryFocus`,v);if(e.currentTarget.dispatchEvent(i),m?.(i),i.defaultPrevented)return;let s=o(),c=[s.find(e=>r(e,`active`)),s.find(e=>r(e,`highlighted`)),s.find(e=>e.id===b.value),...s].filter(e=>!t(e));a(c,p.value)},blur:()=>{S.value=!1}},getOrderedItems:i}});function w(e){let{onContainerElementChange:t,rovingFocusGroupProps:n,rovingFocusGroupListeners:r,getOrderedItems:i}=S(e),[,a]=u(t);return{setContainerElement:a,groupProps:d(()=>({...n.value,...g(r),"data-soybean-roving-focus-group":``})),getOrderedItems:i}}function T(r={}){let{getOrderedElements:o}=b(`RovingFocusItem`),{setItemElement:s}=x(()=>r.itemData?.value??{}),{currentTabStopId:c,orientation:l,dir:u,loop:h,onItemFocus:v,onItemShiftTab:y,onFocusableItemAdd:S,onFocusableItemRemove:w}=C(`RovingFocusItem`),{active:T,allowShiftKey:E}=r,D=_(),O=d(()=>r.tabStopId?.value??D),k=d(()=>r.focusable?.value??!0),A=d(()=>c.value===O.value),j={mousedown:e=>{k.value?v(O.value):e.preventDefault()},focus:()=>{v(O.value)},keydown:e=>{if(e.key===`Tab`&&e.shiftKey){y();return}if(e.target!==e.currentTarget)return;let r=i(e,l.value,u.value);if(t(r)||e.metaKey||e.ctrlKey||e.altKey||!E?.value&&e.shiftKey)return;e.preventDefault();let s=o();if(r===`last`&&s.reverse(),r===`prev`||r===`next`){r===`prev`&&s.reverse();let t=s.indexOf(e.currentTarget);s=h.value?n(s,t+1):s.slice(t+1)}f(()=>{a(s)})}},M=d(()=>({tabindex:A.value?`0`:`-1`,[e]:``,"data-orientation":l.value,...T?.value?{"data-active":``}:{},"data-disabled":k.value?void 0:``,...g(j),"data-soybean-roving-focus-item":``}));return m(()=>{S()}),p(()=>{w()}),{setItemElement:s,itemProps:M}}export{w as useRovingFocusGroup,T as useRovingFocusGroupItem};
|
|
@@ -2,7 +2,7 @@ import { DefinedValue, SelectionProps } from "../types/common.js";
|
|
|
2
2
|
import "../types/index.js";
|
|
3
3
|
import { MaybeRefOrGetter } from "vue";
|
|
4
4
|
//#region src/composables/use-selection.d.ts
|
|
5
|
-
declare function useSelection<M extends boolean = false, N extends DefinedValue = string>(props: MaybeRefOrGetter<SelectionProps<M, N>>, onUpdateModelValue: (value: NonNullable<SelectionProps<M, N>['modelValue']>) => void): {
|
|
5
|
+
export declare function useSelection<M extends boolean = false, N extends DefinedValue = string>(props: MaybeRefOrGetter<SelectionProps<M, N>>, onUpdateModelValue: (value: NonNullable<SelectionProps<M, N>['modelValue']>) => void): {
|
|
6
6
|
modelValue: import("vue").ShallowRef<(M extends true ? N[] : N) | undefined>;
|
|
7
7
|
onModelValueChange: (value: N) => void;
|
|
8
8
|
setModelValue: (value: N[] | N | undefined) => void;
|
|
@@ -11,5 +11,4 @@ declare function useSelection<M extends boolean = false, N extends DefinedValue
|
|
|
11
11
|
isMultiple: import("vue").ComputedRef<boolean>;
|
|
12
12
|
isEmptyModelValue: import("vue").ComputedRef<boolean>;
|
|
13
13
|
};
|
|
14
|
-
//#endregion
|
|
15
|
-
export { useSelection };
|
|
14
|
+
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNullish as e}from"../shared/guard.js";import{getVueBooleanCasting as t}from"../shared/vue.js";import
|
|
1
|
+
import{isNullish as e}from"../shared/guard.js";import{getVueBooleanCasting as t}from"../shared/vue.js";import{useControllableState as n}from"./use-controllable-state.js";import{computed as r,toValue as i}from"vue";function a(a,o){let s=r(()=>i(a)),c=r(()=>t(s.value.multiple)),l=r(()=>t(s.value.clearable)),u=r(()=>(s.value.selectionBehavior??`toggle`)===`toggle`),d=n(()=>s.value.modelValue,e=>{o(e)},f(),!0);function f(){return e(s.value.defaultValue)?c.value?[]:void 0:s.value.defaultValue}return{modelValue:d,onModelValueChange:e=>{if(!c.value){if(!u.value){d.value=e;return}let t=d.value===e?void 0:e;if(t===void 0&&!l.value)return;d.value=t;return}if(u.value){let t=[...d.value??[]];t=t.includes(e)?t.filter(t=>t!==e):[...t,e],d.value=t;return}d.value=[e]},setModelValue:e=>{if(c.value&&Array.isArray(e)){d.value=e;return}!c.value&&!Array.isArray(e)&&(d.value=e)},resetModelValue:()=>{d.value=c.value?[]:void 0},isValueSelected:e=>c.value&&Array.isArray(d.value)?d.value.includes(e):d.value===e,isMultiple:c,isEmptyModelValue:r(()=>c.value&&Array.isArray(d.value)?d.value?.length===0:e(d.value))}}export{a as useSelection};
|
|
@@ -8,6 +8,5 @@ interface Machine<S> {
|
|
|
8
8
|
type MachineState<T> = keyof T;
|
|
9
9
|
type MachineEvent<T> = keyof UnionToIntersection<T[keyof T]>;
|
|
10
10
|
type UnionToIntersection<T> = (T extends any ? (x: T) => any : never) extends ((x: infer R) => any) ? R : never;
|
|
11
|
-
declare function useStateMachine<M extends object>(initialState: MachineState<M>, machine: M & Machine<MachineState<M>>): readonly [ShallowRef<keyof M>, (event: MachineEvent<M>) => void];
|
|
12
|
-
//#endregion
|
|
13
|
-
export { useStateMachine };
|
|
11
|
+
export declare function useStateMachine<M extends object>(initialState: MachineState<M>, machine: M & Machine<MachineState<M>>): readonly [ShallowRef<keyof M>, (event: MachineEvent<M>) => void];
|
|
12
|
+
//#endregion
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { CollectionItemData } from "./use-collection.js";
|
|
2
2
|
//#region src/composables/use-typeahead.d.ts
|
|
3
|
-
declare function useTypeahead(callback?: (search: string) => void): {
|
|
4
|
-
search: import("@vueuse/
|
|
3
|
+
export declare function useTypeahead(callback?: (search: string) => void): {
|
|
4
|
+
search: import("@vueuse/core").RefAutoResetReturn<string>;
|
|
5
5
|
handleTypeaheadSearch: (key: string, items: CollectionItemData[]) => HTMLElement | undefined;
|
|
6
6
|
resetTypeahead: () => void;
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
|
-
export { useTypeahead };
|
|
8
|
+
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getNextMatch as e}from"../shared/object.js";import{getActiveElement as t}from"../shared/dom.js";import
|
|
1
|
+
import{getNextMatch as e}from"../shared/object.js";import{getActiveElement as t}from"../shared/dom.js";import{refAutoReset as n}from"@vueuse/core";function r(r){let i=n(``,1e3);return{search:i,handleTypeaheadSearch:(n,a)=>{if(i.value+=n,r){r(n);return}let o=t(),s=a.map(e=>({...e,textValue:e.data?.textValue??e.element.textContent?.trim()??``})),c=s.find(e=>e.element===o),l=s.map(e=>e.textValue),u=e(l,i.value,c?.textValue),d=s.find(e=>e.textValue===u);return d&&d.element.focus(),d?.element},resetTypeahead:()=>{i.value=``}}}export{r as useTypeahead};
|
|
@@ -2,7 +2,6 @@ import { ClassValue, UiClass } from "../types/common.js";
|
|
|
2
2
|
import "../types/index.js";
|
|
3
3
|
import { ComputedRef } from "vue";
|
|
4
4
|
//#region src/composables/use-ui-context.d.ts
|
|
5
|
-
type UseUiConsumer<UiSlot extends string> = <S extends UiSlot | undefined = undefined>(slot?: S) => S extends UiSlot ? ComputedRef<ClassValue> : ComputedRef<Partial<UiClass<UiSlot>>>;
|
|
6
|
-
declare function useUiContext<UiSlot extends string>(contextName: string, uiHook?: (ui: ComputedRef<Partial<UiClass<UiSlot>>>) => ComputedRef<Partial<UiClass<UiSlot>>>): readonly [(ui: ComputedRef<Partial<UiClass<UiSlot>>>) => ComputedRef<Partial<UiClass<UiSlot>>>, UseUiConsumer<UiSlot>];
|
|
7
|
-
//#endregion
|
|
8
|
-
export { UseUiConsumer, useUiContext };
|
|
5
|
+
export type UseUiConsumer<UiSlot extends string> = <S extends UiSlot | undefined = undefined>(slot?: S) => S extends UiSlot ? ComputedRef<ClassValue> : ComputedRef<Partial<UiClass<UiSlot>>>;
|
|
6
|
+
export declare function useUiContext<UiSlot extends string>(contextName: string, uiHook?: (ui: ComputedRef<Partial<UiClass<UiSlot>>>) => ComputedRef<Partial<UiClass<UiSlot>>>): readonly [(ui: ComputedRef<Partial<UiClass<UiSlot>>>) => ComputedRef<Partial<UiClass<UiSlot>>>, UseUiConsumer<UiSlot>];
|
|
7
|
+
//#endregion
|
package/dist/constants/attr.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
//#region src/constants/attr.d.ts
|
|
2
|
-
declare const COLLECTION_ITEM_ATTRIBUTE = "data-soybean-collection-item";
|
|
3
|
-
declare const GRACE_AREA_TRIGGER_ATTR = "data-grace-area-trigger";
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export declare const COLLECTION_ITEM_ATTRIBUTE = "data-soybean-collection-item";
|
|
3
|
+
export declare const GRACE_AREA_TRIGGER_ATTR = "data-grace-area-trigger";
|
|
4
|
+
/**
|
|
5
|
+
* Marks elements outside an open floating layer (the `mark` channel of
|
|
6
|
+
* `markOthers`), for CSS hooks such as dimmed backgrounds and outside-press
|
|
7
|
+
* detection. Independent of the `inert` / `aria-hidden` control attributes.
|
|
8
|
+
*/
|
|
9
|
+
export declare const INERT_MARKER_ATTR = "data-soybean-inert";
|
|
10
|
+
/** Shared inject key so ConfigProvider and raw consumers resolve the same context. */
|
|
11
|
+
export declare const CONFIG_PROVIDER_CONTEXT_KEY: unique symbol;
|
|
12
|
+
//#endregion
|
package/dist/constants/attr.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=`data-soybean-collection-item`,t=`data-grace-area-trigger
|
|
1
|
+
const e=`data-soybean-collection-item`,t=`data-grace-area-trigger`,n=`data-soybean-inert`,r=Symbol.for(`ConfigProvider`);export{e as COLLECTION_ITEM_ATTRIBUTE,r as CONFIG_PROVIDER_CONTEXT_KEY,t as GRACE_AREA_TRIGGER_ATTR,n as INERT_MARKER_ATTR};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Align, FocusIntent, NavigationKey, Side } from "../types/common.js";
|
|
2
2
|
import "../types/index.js";
|
|
3
3
|
//#region src/constants/common.d.ts
|
|
4
|
-
declare const MAP_KEY_TO_FOCUS_INTENT: Record<NavigationKey, FocusIntent>;
|
|
5
|
-
declare const SIDE_OPTIONS: Side[];
|
|
6
|
-
declare const ALIGN_OPTIONS: Align[];
|
|
7
|
-
declare const OPPOSITE_SIDE: Record<Side, Side>;
|
|
8
|
-
declare const SELECTION_KEYS: string[];
|
|
9
|
-
//#endregion
|
|
10
|
-
export { ALIGN_OPTIONS, MAP_KEY_TO_FOCUS_INTENT, OPPOSITE_SIDE, SELECTION_KEYS, SIDE_OPTIONS };
|
|
4
|
+
export declare const MAP_KEY_TO_FOCUS_INTENT: Record<NavigationKey, FocusIntent>;
|
|
5
|
+
export declare const SIDE_OPTIONS: Side[];
|
|
6
|
+
export declare const ALIGN_OPTIONS: Align[];
|
|
7
|
+
export declare const OPPOSITE_SIDE: Record<Side, Side>;
|
|
8
|
+
export declare const SELECTION_KEYS: string[];
|
|
9
|
+
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/constants/components.d.ts
|
|
2
|
-
declare const components: {
|
|
2
|
+
export declare const components: {
|
|
3
3
|
accordion: string[];
|
|
4
4
|
affix: string[];
|
|
5
5
|
alert: string[];
|
|
@@ -53,6 +53,7 @@ declare const components: {
|
|
|
53
53
|
menu: string[];
|
|
54
54
|
menubar: string[];
|
|
55
55
|
navigationMenu: string[];
|
|
56
|
+
navMenu: string[];
|
|
56
57
|
pageTabs: string[];
|
|
57
58
|
pagination: string[];
|
|
58
59
|
password: string[];
|
|
@@ -64,7 +65,6 @@ declare const components: {
|
|
|
64
65
|
progress: string[];
|
|
65
66
|
radioGroup: string[];
|
|
66
67
|
rating: string[];
|
|
67
|
-
rovingFocus: string[];
|
|
68
68
|
scrollArea: string[];
|
|
69
69
|
segment: string[];
|
|
70
70
|
select: string[];
|
|
@@ -72,6 +72,7 @@ declare const components: {
|
|
|
72
72
|
skeleton: string[];
|
|
73
73
|
slider: string[];
|
|
74
74
|
slot: string[];
|
|
75
|
+
splitNav: string[];
|
|
75
76
|
splitter: string[];
|
|
76
77
|
stepper: string[];
|
|
77
78
|
switch: string[];
|
|
@@ -89,9 +90,9 @@ declare const components: {
|
|
|
89
90
|
tooltip: string[];
|
|
90
91
|
tree: string[];
|
|
91
92
|
treeMenu: string[];
|
|
93
|
+
treeNav: string[];
|
|
92
94
|
virtualizer: string[];
|
|
93
95
|
visuallyHidden: string[];
|
|
94
96
|
watermark: string[];
|
|
95
97
|
};
|
|
96
|
-
//#endregion
|
|
97
|
-
export { components };
|
|
98
|
+
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={accordion:[`AccordionCompact`,`AccordionRoot`,`AccordionItem`,`AccordionHeader`,`AccordionTrigger`,`AccordionContent`,`AccordionDescription`],affix:[`AffixCompact`,`AffixRoot`,`AffixPlaceholder`,`AffixContent`],alert:[`AlertCompact`,`AlertRoot`,`AlertContent`,`AlertTitle`,`AlertDescription`,`AlertClose`],anchor:[`AnchorCompact`,`AnchorItemCompact`,`AnchorLink`,`AnchorRoot`],arrow:[`Arrow`],aspectRatio:[`AspectRatio`],autocomplete:[`AutocompleteCompact`,`AutocompleteRoot`,`AutocompleteAnchor`,`AutocompleteInput`,`AutocompleteTrigger`,`AutocompletePortal`,`AutocompleteContent`,`AutocompleteViewport`,`AutocompleteGroup`,`AutocompleteGroupLabel`,`AutocompleteItem`,`AutocompleteItemIndicator`,`AutocompleteSeparator`],avatar:[`AvatarCompact`,`AvatarRoot`,`AvatarImage`,`AvatarFallback`],backtop:[`Backtop`],badge:[`BadgeCompact`,`BadgeRoot`,`BadgeContent`],bottomSheet:[`BottomSheetTrigger`,`BottomSheetPortal`,`BottomSheetHeader`,`BottomSheetContent`,`BottomSheetFooter`,`BottomSheetTitle`,`BottomSheetDescription`,`BottomSheetClose`,`BottomSheetCancel`,`BottomSheetConfirm`,`BottomSheetCompact`,`BottomSheetRoot`,`BottomSheetRootNested`,`BottomSheetPopup`,`BottomSheetOverlay`,`BottomSheetHandle`],breadcrumb:[`BreadcrumbRoot`,`BreadcrumbCompact`,`BreadcrumbList`,`BreadcrumbItem`,`BreadcrumbLink`,`BreadcrumbPage`,`BreadcrumbSeparator`,`BreadcrumbEllipsis`],button:[`Button`,`ButtonGroup`],calendar:[`CalendarCompact`,`CalendarRoot`,`CalendarHeader`,`CalendarHeading`,`CalendarPrev`,`CalendarNext`,`CalendarGrid`,`CalendarGridHead`,`CalendarGridBody`,`CalendarGridRow`,`CalendarHeadCell`,`CalendarCell`,`CalendarCellTrigger`],calendarRange:[`CalendarRangeCompact`,`CalendarRangeRoot`,`CalendarRangeHeader`,`CalendarRangeHeading`,`CalendarRangePrev`,`CalendarRangeNext`,`CalendarRangeGrid`,`CalendarRangeGridHead`,`CalendarRangeGridBody`,`CalendarRangeGridRow`,`CalendarRangeHeadCell`,`CalendarRangeCell`,`CalendarRangeCellTrigger`],card:[`CardRoot`,`CardHeader`,`CardTitle`,`CardTitleRoot`,`CardDescription`,`CardContent`,`CardFooter`,`CardCollapsibleTrigger`,`CardCompact`],carousel:[`CarouselCompact`,`CarouselRoot`,`CarouselContent`,`CarouselContainer`,`CarouselItem`,`CarouselControl`,`CarouselNavigation`,`CarouselNext`,`CarouselPrevious`],cascader:[`CascaderRoot`,`CascaderTrigger`,`CascaderValue`,`CascaderSearchInput`,`CascaderContent`,`CascaderMenu`,`CascaderOption`,`CascaderEmpty`,`CascaderTags`,`CascaderClear`,`CascaderCompact`],checkbox:[`CheckboxCompact`,`CheckboxCardCompact`,`CheckboxGroupCompact`,`CheckboxCardGroupCompact`,`CheckboxGroupRoot`,`CheckboxRoot`,`CheckboxControl`,`CheckboxIndicator`,`CheckboxLabel`],clipboard:[`Clipboard`],collapsible:[`CollapsibleRoot`,`CollapsibleContent`,`CollapsibleTrigger`],colorArea:[`ColorAreaCompact`,`ColorAreaRoot`,`ColorAreaArea`,`ColorAreaThumb`],colorField:[`ColorFieldCompact`,`ColorFieldRoot`,`ColorFieldInput`],colorPicker:[`ColorPickerCompact`,`ColorPickerRoot`,`ColorPickerTrigger`],colorSlider:[`ColorSliderCompact`,`ColorSliderRoot`,`ColorSliderTrack`,`ColorSliderThumb`],colorSwatch:[`ColorSwatchCompact`,`ColorSwatchRoot`,`ColorSwatchChecker`,`ColorSwatchFill`],colorSwatchPicker:[`ColorSwatchPickerCompact`,`ColorSwatchPickerRoot`,`ColorSwatchPickerItem`,`ColorSwatchPickerItemIndicator`,`ColorSwatchPickerItemSwatch`],combobox:[`ComboboxCompact`,`ComboboxRoot`,`ComboboxAnchor`,`ComboboxTrigger`,`ComboboxPortal`,`ComboboxViewport`,`ComboboxContent`,`ComboboxCancel`,`ComboboxArrow`,`ComboboxGroup`,`ComboboxGroupLabel`,`ComboboxInput`,`ComboboxItem`,`ComboboxItemIndicator`,`ComboboxEmpty`,`ComboboxSeparator`,`ComboboxVirtualizer`],command:[`CommandCompact`],configProvider:[`ConfigProvider`],contextMenu:[`ContextMenuRoot`,`ContextMenuTrigger`,`ContextMenuPortal`,`ContextMenuContent`,`ContextMenuAnchor`,`ContextMenuArrow`,`ContextMenuGroup`,`ContextMenuGroupLabel`,`ContextMenuItem`,`ContextMenuItemIndicator`,`ContextMenuCheckboxItem`,`ContextMenuRadioItem`,`ContextMenuSub`,`ContextMenuSubTrigger`,`ContextMenuSubContent`,`ContextMenuSeparator`,`ContextMenuCheckboxGroup`,`ContextMenuRadioGroup`,`ContextMenuCompact`,`ContextMenuCheckboxCompact`,`ContextMenuRadioCompact`,`ContextMenuWrapperCompact`],dateField:[`DateFieldCompact`,`DateFieldRoot`,`DateFieldInput`],datePicker:[`DatePickerCompact`],dateRangeField:[`DateRangeFieldCompact`,`DateRangeFieldRoot`,`DateRangeFieldInput`],dateRangePicker:[`DateRangePickerCompact`],dialog:[`DialogCompact`,`DialogProvider`,`DialogRoot`,`DialogTrigger`,`DialogPortal`,`DialogOverlay`,`DialogPopup`,`DialogHeader`,`DialogContent`,`DialogTitle`,`DialogDescription`,`DialogFooter`,`DialogClose`,`DialogFullscreen`,`DialogCancel`,`DialogConfirm`],dropdownMenu:[`DropdownMenuRoot`,`DropdownMenuTrigger`,`DropdownMenuPortal`,`DropdownMenuContent`,`DropdownMenuAnchor`,`DropdownMenuArrow`,`DropdownMenuGroup`,`DropdownMenuGroupLabel`,`DropdownMenuItem`,`DropdownMenuItemIndicator`,`DropdownMenuCheckboxItem`,`DropdownMenuRadioItem`,`DropdownMenuSub`,`DropdownMenuSubTrigger`,`DropdownMenuSubContent`,`DropdownMenuSeparator`,`DropdownMenuCheckboxGroup`,`DropdownMenuRadioGroup`,`DropdownMenuCompact`,`DropdownMenuCheckboxCompact`,`DropdownMenuRadioCompact`,`DropdownMenuWrapperCompact`],editable:[`EditableArea`,`EditableCancelTrigger`,`EditableEditTrigger`,`EditableInput`,`EditablePreview`,`EditableRoot`,`EditableSubmitTrigger`,`EditableCompact`],empty:[`EmptyCompact`,`EmptyRoot`,`EmptyHeader`,`EmptyMedia`,`EmptyContent`,`EmptyTitle`,`EmptyDescription`],form:[`FormCompact`,`FormFieldCompact`,`FormFieldArrayCompact`,`FormFieldBaseCompact`,`FormField`,`FormLabel`,`FormControl`,`FormDescription`,`FormError`],hoverCard:[`HoverCardRoot`,`HoverCardTrigger`,`HoverCardPortal`,`HoverCardPositioner`,`HoverCardPopup`,`HoverCardArrow`,`HoverCardCompact`],input:[`InputCompact`,`InputRoot`,`InputControl`,`InputClear`],inputNumber:[`InputNumberCompact`,`InputNumberRoot`,`InputNumberControl`,`InputNumberIncrement`,`InputNumberDecrement`],inputOtp:[`InputOtpCompact`,`InputOtpInput`,`InputOtpPositioner`,`InputOtpRoot`],kbd:[`Kbd`],label:[`Label`],layout:[`LayoutCompact`,`LayoutRoot`,`LayoutSidebar`,`LayoutRail`,`LayoutMain`,`LayoutHeader`,`LayoutTab`,`LayoutContent`,`LayoutFooter`,`LayoutMobile`,`LayoutTrigger`],link:[`Link`],list:[`ListRoot`,`ListItem`,`ListTitle`,`ListDescription`,`ListContent`],listbox:[`ListboxRoot`,`ListboxContent`,`ListboxGroup`,`ListboxGroupLabel`,`ListboxItem`,`ListboxItemIndicator`,`ListboxFilter`,`ListboxVirtualizer`],menu:[`MenuRoot`,`MenuPortal`,`MenuContent`,`MenuAnchor`,`MenuArrow`,`MenuGroup`,`MenuGroupLabel`,`MenuItem`,`MenuItemIndicator`,`MenuCheckboxItem`,`MenuRadioItem`,`MenuSub`,`MenuSubTrigger`,`MenuSubContent`,`MenuSeparator`,`MenuCheckboxGroup`,`MenuRadioGroup`,`MenuOptionCompact`,`MenuOptionsCompact`,`MenuCheckboxOptionsCompact`,`MenuRadioOptionsCompact`],menubar:[`MenubarRoot`,`MenubarMenu`,`MenubarTrigger`,`MenubarPortal`,`MenubarContent`,`MenubarArrow`,`MenubarGroup`,`MenubarGroupLabel`,`MenubarItem`,`MenubarItemIndicator`,`MenubarCheckboxItem`,`MenubarRadioItem`,`MenubarSub`,`MenubarSubTrigger`,`MenubarSubContent`,`MenubarSeparator`,`MenubarCheckboxGroup`,`MenubarRadioGroup`,`MenubarCompact`],navigationMenu:[`NavigationMenuCompact`,`NavigationMenuRoot`,`NavigationMenuList`,`NavigationMenuItem`,`NavigationMenuTrigger`,`NavigationMenuContent`,`NavigationMenuLink`,`NavigationMenuSubList`,`NavigationMenuViewport`,`NavigationMenuIndicator`],pageTabs:[`PageTabsRoot`,`PageTabsItem`,`PageTabsClose`,`PageTabsPin`,`PageTabsCompact`],pagination:[`PaginationRoot`,`PaginationList`,`PaginationListItem`,`PaginationFirst`,`PaginationPrev`,`PaginationNext`,`PaginationLast`,`PaginationEllipsis`,`PaginationCompact`],password:[`PasswordCompact`],popconfirm:[`PopconfirmCompact`,`PopconfirmRoot`,`PopconfirmTrigger`,`PopconfirmPortal`,`PopconfirmPositioner`,`PopconfirmPopup`,`PopconfirmArrow`,`PopconfirmClose`,`PopconfirmHeader`,`PopconfirmTitle`,`PopconfirmDescription`,`PopconfirmContent`,`PopconfirmFooter`,`PopconfirmConfirm`,`PopconfirmCancel`],popover:[`PopoverCompact`,`PopoverRoot`,`PopoverTrigger`,`PopoverAnchor`,`PopoverPortal`,`PopoverPositioner`,`PopoverPopup`,`PopoverArrow`,`PopoverClose`],popper:[`PopperRoot`,`PopperAnchor`,`PopperPositioner`,`PopperPopup`,`PopperArrow`],portal:[`Portal`],primitive:[`Primitive`],progress:[`ProgressProvider`,`ProgressCompact`,`ProgressCircleCompact`,`ProgressRoot`,`ProgressIndicator`,`ProgressCircle`],radioGroup:[`RadioGroupCompact`,`RadioGroupCardCompact`,`RadioGroupRoot`,`RadioGroupItem`,`RadioGroupControl`,`RadioGroupIndicator`,`RadioGroupLabel`],rating:[`RatingItem`,`RatingRoot`],rovingFocus:[`RovingFocusGroup`,`RovingFocusItem`],scrollArea:[`ScrollAreaRoot`,`ScrollAreaViewport`,`ScrollAreaScrollbar`,`ScrollAreaThumb`,`ScrollAreaCorner`,`ScrollAreaCompact`],segment:[`SegmentRoot`,`SegmentList`,`SegmentTrigger`,`SegmentIndicator`,`SegmentCompact`],select:[`SelectRoot`,`SelectCompact`,`SelectTrigger`,`SelectPortal`,`SelectContent`,`SelectViewport`,`SelectGroup`,`SelectGroupLabel`,`SelectItem`,`SelectItemIndicator`,`SelectItemText`,`SelectValue`,`SelectTriggerIcon`,`SelectScrollUpButton`,`SelectScrollDownButton`,`SelectSeparator`,`SelectArrow`],separator:[`SeparatorCompact`,`SeparatorRoot`,`SeparatorLabel`],skeleton:[`Skeleton`],slider:[`SliderCompact`,`SliderRoot`,`SliderTrack`,`SliderRange`,`SliderThumb`],slot:[`Slot`],splitter:[`SplitterGroup`,`SplitterPanel`,`SplitterResizeHandle`],stepper:[`StepperRoot`,`StepperItem`,`StepperTrigger`,`StepperIndicator`,`StepperSeparator`,`StepperTitle`,`StepperDescription`,`StepperCompact`],switch:[`SwitchRoot`,`SwitchControl`,`SwitchThumb`,`SwitchCompact`],table:[`TableCompact`,`TableRoot`,`TableScroll`,`TableContent`,`TableHeader`,`TableBody`,`TableFooter`,`TableRow`,`TableHead`,`TableCell`],tabs:[`TabsRoot`,`TabsList`,`TabsTrigger`,`TabsContent`,`TabsIndicator`,`TabsCompact`],tag:[`Tag`],tagsInput:[`TagsInputCompact`,`TagsInputRoot`,`TagsInputItem`,`TagsInputItemText`,`TagsInputItemDelete`,`TagsInputControl`,`TagsInputClear`],textarea:[`TextareaCompact`,`TextareaRoot`,`TextareaControl`,`TextareaClear`,`TextareaCounter`],timeField:[`TimeFieldCompact`,`TimeFieldRoot`,`TimeFieldInput`],timeRangeField:[`TimeRangeFieldCompact`,`TimeRangeFieldRoot`,`TimeRangeFieldInput`],toast:[`Toaster`,`ToastProvider`],toggle:[`Toggle`],toggleGroup:[`ToggleGroupRoot`,`ToggleGroupItem`],toolbar:[`ToolbarRoot`,`ToolbarButton`,`ToolbarLink`,`ToolbarSeparator`,`ToolbarToggleGroup`,`ToolbarToggleItem`],tooltip:[`TooltipCompact`,`TooltipRoot`,`TooltipTrigger`,`TooltipPortal`,`TooltipPositioner`,`TooltipPopup`,`TooltipArrow`],tree:[`TreeRoot`,`TreeItem`,`TreeVirtualizerRoot`,`TreeVirtualizerItem`],treeMenu:[`TreeMenuCompact`,`TreeMenuOptionsCompact`,`TreeMenuOptionCompact`,`TreeMenuSlotCompact`,`TreeMenuRoot`,`TreeMenuGroupRoot`,`TreeMenuGroup`,`TreeMenuGroupLabel`,`TreeMenuItem`,`TreeMenuButton`,`TreeMenuCollapsible`,`TreeMenuSub`],virtualizer:[`VirtualizerRoot`,`VirtualizerContent`,`VirtualizerItem`],visuallyHidden:[`VisuallyHidden`,`VisuallyHiddenInput`],watermark:[`WatermarkCompact`,`WatermarkOverlay`,`WatermarkRoot`]};export{e as components};
|
|
1
|
+
const e={accordion:[`AccordionCompact`,`AccordionRoot`,`AccordionItem`,`AccordionHeader`,`AccordionTrigger`,`AccordionContent`,`AccordionDescription`],affix:[`AffixCompact`,`AffixRoot`,`AffixPlaceholder`,`AffixContent`],alert:[`AlertCompact`,`AlertRoot`,`AlertContent`,`AlertTitle`,`AlertDescription`,`AlertClose`],anchor:[`AnchorCompact`,`AnchorItemCompact`,`AnchorLink`,`AnchorRoot`],arrow:[`Arrow`],aspectRatio:[`AspectRatio`],autocomplete:[`AutocompleteCompact`,`AutocompleteRoot`,`AutocompleteAnchor`,`AutocompleteInput`,`AutocompleteTrigger`,`AutocompletePortal`,`AutocompleteContent`,`AutocompleteViewport`,`AutocompleteGroup`,`AutocompleteGroupLabel`,`AutocompleteItem`,`AutocompleteItemIndicator`,`AutocompleteSeparator`],avatar:[`AvatarCompact`,`AvatarRoot`,`AvatarImage`,`AvatarFallback`],backtop:[`Backtop`],badge:[`BadgeCompact`,`BadgeRoot`,`BadgeContent`],bottomSheet:[`BottomSheetPortal`,`BottomSheetCompact`,`BottomSheetRoot`,`BottomSheetRootNested`,`BottomSheetTrigger`,`BottomSheetPopup`,`BottomSheetOverlay`,`BottomSheetHandle`,`BottomSheetHeader`,`BottomSheetContent`,`BottomSheetFooter`,`BottomSheetTitle`,`BottomSheetDescription`,`BottomSheetClose`,`BottomSheetCancel`,`BottomSheetConfirm`],breadcrumb:[`BreadcrumbRoot`,`BreadcrumbCompact`,`BreadcrumbList`,`BreadcrumbItem`,`BreadcrumbLink`,`BreadcrumbPage`,`BreadcrumbSeparator`,`BreadcrumbEllipsis`],button:[`Button`,`ButtonGroup`],calendar:[`CalendarCompact`,`CalendarRoot`,`CalendarHeader`,`CalendarHeading`,`CalendarPrev`,`CalendarNext`,`CalendarGrid`,`CalendarGridHead`,`CalendarGridBody`,`CalendarGridRow`,`CalendarHeadCell`,`CalendarCell`,`CalendarCellTrigger`],calendarRange:[`CalendarRangeCompact`,`CalendarRangeRoot`,`CalendarRangeHeader`,`CalendarRangeHeading`,`CalendarRangePrev`,`CalendarRangeNext`,`CalendarRangeGrid`,`CalendarRangeGridHead`,`CalendarRangeGridBody`,`CalendarRangeGridRow`,`CalendarRangeHeadCell`,`CalendarRangeCell`,`CalendarRangeCellTrigger`],card:[`CardRoot`,`CardHeader`,`CardTitle`,`CardTitleRoot`,`CardDescription`,`CardContent`,`CardFooter`,`CardCollapsibleTrigger`,`CardCompact`],carousel:[`CarouselCompact`,`CarouselRoot`,`CarouselContent`,`CarouselContainer`,`CarouselItem`,`CarouselControl`,`CarouselNavigation`,`CarouselNext`,`CarouselPrevious`],cascader:[`CascaderRoot`,`CascaderTrigger`,`CascaderValue`,`CascaderSearchInput`,`CascaderContent`,`CascaderMenu`,`CascaderOption`,`CascaderEmpty`,`CascaderTags`,`CascaderClear`,`CascaderCompact`],checkbox:[`CheckboxCompact`,`CheckboxCardCompact`,`CheckboxGroupCompact`,`CheckboxCardGroupCompact`,`CheckboxGroupRoot`,`CheckboxRoot`,`CheckboxControl`,`CheckboxIndicator`,`CheckboxLabel`],clipboard:[`Clipboard`],collapsible:[`CollapsibleRoot`,`CollapsibleContent`,`CollapsibleTrigger`],colorArea:[`ColorAreaCompact`,`ColorAreaRoot`,`ColorAreaArea`,`ColorAreaThumb`],colorField:[`ColorFieldCompact`,`ColorFieldRoot`,`ColorFieldInput`],colorPicker:[`ColorPickerCompact`,`ColorPickerRoot`,`ColorPickerTrigger`],colorSlider:[`ColorSliderCompact`,`ColorSliderRoot`,`ColorSliderTrack`,`ColorSliderThumb`],colorSwatch:[`ColorSwatchCompact`,`ColorSwatchRoot`,`ColorSwatchChecker`,`ColorSwatchFill`],colorSwatchPicker:[`ColorSwatchPickerCompact`,`ColorSwatchPickerRoot`,`ColorSwatchPickerItem`,`ColorSwatchPickerItemIndicator`,`ColorSwatchPickerItemSwatch`],combobox:[`ComboboxCompact`,`ComboboxRoot`,`ComboboxAnchor`,`ComboboxTrigger`,`ComboboxPortal`,`ComboboxViewport`,`ComboboxContent`,`ComboboxCancel`,`ComboboxClear`,`ComboboxValue`,`ComboboxArrow`,`ComboboxGroup`,`ComboboxGroupLabel`,`ComboboxInput`,`ComboboxItem`,`ComboboxItemIndicator`,`ComboboxEmpty`,`ComboboxSeparator`,`ComboboxVirtualizer`],command:[`CommandCompact`],configProvider:[`ConfigProvider`],contextMenu:[`ContextMenuRoot`,`ContextMenuTrigger`,`ContextMenuPortal`,`ContextMenuContent`,`ContextMenuAnchor`,`ContextMenuArrow`,`ContextMenuGroup`,`ContextMenuGroupLabel`,`ContextMenuItem`,`ContextMenuItemIndicator`,`ContextMenuCheckboxItem`,`ContextMenuRadioItem`,`ContextMenuSub`,`ContextMenuSubTrigger`,`ContextMenuSubContent`,`ContextMenuSeparator`,`ContextMenuCheckboxGroup`,`ContextMenuRadioGroup`,`ContextMenuCompact`,`ContextMenuCheckboxCompact`,`ContextMenuRadioCompact`,`ContextMenuWrapperCompact`],dateField:[`DateFieldCompact`,`DateFieldRoot`,`DateFieldInput`],datePicker:[`DatePickerCompact`],dateRangeField:[`DateRangeFieldCompact`,`DateRangeFieldRoot`,`DateRangeFieldInput`],dateRangePicker:[`DateRangePickerCompact`],dialog:[`DialogCompact`,`DialogProvider`,`DialogRoot`,`DialogTrigger`,`DialogPortal`,`DialogOverlay`,`DialogPopup`,`DialogHeader`,`DialogContent`,`DialogTitle`,`DialogDescription`,`DialogFooter`,`DialogClose`,`DialogFullscreen`,`DialogCancel`,`DialogConfirm`],dropdownMenu:[`DropdownMenuRoot`,`DropdownMenuTrigger`,`DropdownMenuPortal`,`DropdownMenuContent`,`DropdownMenuAnchor`,`DropdownMenuArrow`,`DropdownMenuGroup`,`DropdownMenuGroupLabel`,`DropdownMenuItem`,`DropdownMenuItemIndicator`,`DropdownMenuCheckboxItem`,`DropdownMenuRadioItem`,`DropdownMenuSub`,`DropdownMenuSubTrigger`,`DropdownMenuSubContent`,`DropdownMenuSeparator`,`DropdownMenuCheckboxGroup`,`DropdownMenuRadioGroup`,`DropdownMenuCompact`,`DropdownMenuCheckboxCompact`,`DropdownMenuRadioCompact`,`DropdownMenuWrapperCompact`],editable:[`EditableArea`,`EditableCancelTrigger`,`EditableEditTrigger`,`EditableInput`,`EditablePreview`,`EditableRoot`,`EditableSubmitTrigger`,`EditableCompact`],empty:[`EmptyCompact`,`EmptyRoot`,`EmptyHeader`,`EmptyMedia`,`EmptyContent`,`EmptyTitle`,`EmptyDescription`],form:[`FormCompact`,`FormFieldCompact`,`FormFieldArrayCompact`,`FormFieldBaseCompact`,`FormField`,`FormLabel`,`FormControl`,`FormDescription`,`FormError`],hoverCard:[`HoverCardRoot`,`HoverCardTrigger`,`HoverCardPortal`,`HoverCardPositioner`,`HoverCardPopup`,`HoverCardArrow`,`HoverCardCompact`],input:[`InputCompact`,`InputRoot`,`InputControl`,`InputClear`],inputNumber:[`InputNumberCompact`,`InputNumberRoot`,`InputNumberControl`,`InputNumberIncrement`,`InputNumberDecrement`],inputOtp:[`InputOtpCompact`,`InputOtpInput`,`InputOtpPositioner`,`InputOtpRoot`],kbd:[`Kbd`],label:[`Label`],layout:[`LayoutCompact`,`LayoutRoot`,`LayoutSidebar`,`LayoutRail`,`LayoutMain`,`LayoutHeader`,`LayoutTab`,`LayoutContent`,`LayoutFooter`,`LayoutMobile`,`LayoutTrigger`],link:[`Link`],list:[`ListRoot`,`ListItem`,`ListTitle`,`ListDescription`,`ListContent`],listbox:[`ListboxRoot`,`ListboxContent`,`ListboxGroup`,`ListboxGroupLabel`,`ListboxItem`,`ListboxItemIndicator`,`ListboxFilter`,`ListboxVirtualizer`],menu:[`MenuRoot`,`MenuPortal`,`MenuContent`,`MenuAnchor`,`MenuArrow`,`MenuGroup`,`MenuGroupLabel`,`MenuItem`,`MenuItemIndicator`,`MenuCheckboxItem`,`MenuRadioItem`,`MenuSub`,`MenuSubTrigger`,`MenuSubContent`,`MenuSeparator`,`MenuCheckboxGroup`,`MenuRadioGroup`,`MenuOptionCompact`,`MenuOptionsCompact`,`MenuCheckboxOptionsCompact`,`MenuRadioOptionsCompact`],menubar:[`MenubarRoot`,`MenubarMenu`,`MenubarTrigger`,`MenubarPortal`,`MenubarContent`,`MenubarArrow`,`MenubarGroup`,`MenubarGroupLabel`,`MenubarItem`,`MenubarItemIndicator`,`MenubarCheckboxItem`,`MenubarRadioItem`,`MenubarSub`,`MenubarSubTrigger`,`MenubarSubContent`,`MenubarSeparator`,`MenubarCheckboxGroup`,`MenubarRadioGroup`,`MenubarCompact`],navigationMenu:[`NavigationMenuCompact`,`NavigationMenuRoot`,`NavigationMenuList`,`NavigationMenuItem`,`NavigationMenuTrigger`,`NavigationMenuContent`,`NavigationMenuLink`,`NavigationMenuSubList`,`NavigationMenuViewport`,`NavigationMenuIndicator`],navMenu:[`NavMenuCompact`,`NavMenuRoot`,`NavMenuList`,`NavMenuItem`,`NavMenuTrigger`,`NavMenuContent`,`NavMenuLink`,`NavMenuViewport`,`NavMenuSubTrigger`,`NavMenuSubContent`],pageTabs:[`PageTabsRoot`,`PageTabsItem`,`PageTabsClose`,`PageTabsPin`,`PageTabsCompact`],pagination:[`PaginationRoot`,`PaginationList`,`PaginationListItem`,`PaginationFirst`,`PaginationPrev`,`PaginationNext`,`PaginationLast`,`PaginationEllipsis`,`PaginationCompact`],password:[`PasswordCompact`],popconfirm:[`PopconfirmCompact`,`PopconfirmRoot`,`PopconfirmTrigger`,`PopconfirmAnchor`,`PopconfirmPositioner`,`PopconfirmPopup`,`PopconfirmClose`,`PopconfirmHeader`,`PopconfirmTitle`,`PopconfirmDescription`,`PopconfirmContent`,`PopconfirmFooter`,`PopconfirmConfirm`,`PopconfirmCancel`,`PopconfirmArrow`,`PopconfirmPortal`],popover:[`PopoverCompact`,`PopoverRoot`,`PopoverTrigger`,`PopoverAnchor`,`PopoverPositioner`,`PopoverPopup`,`PopoverClose`,`PopoverArrow`,`PopoverPortal`],popper:[`PopperRoot`,`PopperTrigger`,`PopperAnchor`,`PopperSubTrigger`,`PopperPortal`,`PopperPositioner`,`PopperPositionerImpl`,`PopperPopup`,`PopperArrow`,`PopperSub`,`PopperCompact`,`PopperPositioningRoot`,`PopperPositioningPositioner`,`PopperPositioningPopup`],portal:[`Portal`],primitive:[`Primitive`],progress:[`ProgressProvider`,`ProgressCompact`,`ProgressCircleCompact`,`ProgressRoot`,`ProgressIndicator`,`ProgressCircle`],radioGroup:[`RadioGroupCompact`,`RadioGroupCardCompact`,`RadioGroupRoot`,`RadioGroupItem`,`RadioGroupControl`,`RadioGroupIndicator`,`RadioGroupLabel`],rating:[`RatingItem`,`RatingRoot`],scrollArea:[`ScrollAreaRoot`,`ScrollAreaViewport`,`ScrollAreaScrollbar`,`ScrollAreaThumb`,`ScrollAreaCorner`,`ScrollAreaCompact`],segment:[`SegmentRoot`,`SegmentList`,`SegmentTrigger`,`SegmentIndicator`,`SegmentCompact`],select:[`SelectRoot`,`SelectCompact`,`SelectTrigger`,`SelectClear`,`SelectPortal`,`SelectContent`,`SelectViewport`,`SelectGroup`,`SelectGroupLabel`,`SelectItem`,`SelectItemIndicator`,`SelectItemText`,`SelectValue`,`SelectTriggerIcon`,`SelectScrollUpButton`,`SelectScrollDownButton`,`SelectSeparator`,`SelectArrow`],separator:[`SeparatorCompact`,`SeparatorRoot`,`SeparatorLabel`],skeleton:[`Skeleton`],slider:[`SliderCompact`,`SliderRoot`,`SliderTrack`,`SliderRange`,`SliderThumb`],slot:[`Slot`],splitNav:[`SplitNavRoot`],splitter:[`SplitterGroup`,`SplitterPanel`,`SplitterResizeHandle`],stepper:[`StepperRoot`,`StepperItem`,`StepperTrigger`,`StepperIndicator`,`StepperSeparator`,`StepperTitle`,`StepperDescription`,`StepperCompact`],switch:[`SwitchRoot`,`SwitchControl`,`SwitchThumb`,`SwitchCompact`],table:[`TableCompact`,`TableRoot`,`TableScroll`,`TableContent`,`TableHeader`,`TableBody`,`TableFooter`,`TableRow`,`TableHead`,`TableCell`],tabs:[`TabsRoot`,`TabsList`,`TabsTrigger`,`TabsContent`,`TabsIndicator`,`TabsCompact`],tag:[`Tag`],tagsInput:[`TagsInputCompact`,`TagsInputRoot`,`TagsInputItem`,`TagsInputItemText`,`TagsInputItemDelete`,`TagsInputControl`,`TagsInputClear`],textarea:[`TextareaCompact`,`TextareaRoot`,`TextareaControl`,`TextareaClear`,`TextareaCounter`],timeField:[`TimeFieldCompact`,`TimeFieldRoot`,`TimeFieldInput`],timeRangeField:[`TimeRangeFieldCompact`,`TimeRangeFieldRoot`,`TimeRangeFieldInput`],toast:[`Toaster`,`ToastProvider`],toggle:[`Toggle`],toggleGroup:[`ToggleGroupRoot`,`ToggleGroupItem`],toolbar:[`ToolbarRoot`,`ToolbarButton`,`ToolbarLink`,`ToolbarSeparator`,`ToolbarToggleGroup`,`ToolbarToggleItem`],tooltip:[`TooltipCompact`,`TooltipProvider`,`TooltipRoot`,`TooltipTrigger`,`TooltipPortal`,`TooltipPositioner`,`TooltipPopup`,`TooltipArrow`],tree:[`TreeRoot`,`TreeItem`,`TreeVirtualizerRoot`,`TreeVirtualizerItem`],treeMenu:[`TreeMenuCompact`,`TreeMenuOptionsCompact`,`TreeMenuOptionCompact`,`TreeMenuSlotCompact`,`TreeMenuRoot`,`TreeMenuGroupRoot`,`TreeMenuGroup`,`TreeMenuGroupLabel`,`TreeMenuItem`,`TreeMenuButton`,`TreeMenuCollapsible`,`TreeMenuSub`],treeNav:[`TreeNavRoot`,`TreeNavOverflow`,`TreeNavOptionCompact`,`TreeNavOptionsCompact`,`TreeNavCompact`],virtualizer:[`VirtualizerRoot`,`VirtualizerContent`,`VirtualizerItem`],visuallyHidden:[`VisuallyHidden`,`VisuallyHiddenInput`],watermark:[`WatermarkCompact`,`WatermarkOverlay`,`WatermarkRoot`]};export{e as components};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ALIGN_OPTIONS, MAP_KEY_TO_FOCUS_INTENT, OPPOSITE_SIDE, SELECTION_KEYS, SIDE_OPTIONS } from "./common.js";
|
|
2
|
-
import { COLLECTION_ITEM_ATTRIBUTE, GRACE_AREA_TRIGGER_ATTR } from "./attr.js";
|
|
2
|
+
import { COLLECTION_ITEM_ATTRIBUTE, CONFIG_PROVIDER_CONTEXT_KEY, GRACE_AREA_TRIGGER_ATTR, INERT_MARKER_ATTR } from "./attr.js";
|
|
3
3
|
import { components } from "./components.js";
|
|
4
4
|
import { REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS } from "./regexp.js";
|
|
5
|
-
export { ALIGN_OPTIONS, COLLECTION_ITEM_ATTRIBUTE, GRACE_AREA_TRIGGER_ATTR, MAP_KEY_TO_FOCUS_INTENT, OPPOSITE_SIDE, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, SELECTION_KEYS, SIDE_OPTIONS, components };
|
|
5
|
+
export { ALIGN_OPTIONS, COLLECTION_ITEM_ATTRIBUTE, CONFIG_PROVIDER_CONTEXT_KEY, GRACE_AREA_TRIGGER_ATTR, INERT_MARKER_ATTR, MAP_KEY_TO_FOCUS_INTENT, OPPOSITE_SIDE, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, SELECTION_KEYS, SIDE_OPTIONS, components };
|
package/dist/constants/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ALIGN_OPTIONS as e,MAP_KEY_TO_FOCUS_INTENT as t,OPPOSITE_SIDE as n,SELECTION_KEYS as r,SIDE_OPTIONS as i}from"./common.js";import{COLLECTION_ITEM_ATTRIBUTE as a,GRACE_AREA_TRIGGER_ATTR as
|
|
1
|
+
import{ALIGN_OPTIONS as e,MAP_KEY_TO_FOCUS_INTENT as t,OPPOSITE_SIDE as n,SELECTION_KEYS as r,SIDE_OPTIONS as i}from"./common.js";import{COLLECTION_ITEM_ATTRIBUTE as a,CONFIG_PROVIDER_CONTEXT_KEY as o,GRACE_AREA_TRIGGER_ATTR as s,INERT_MARKER_ATTR as c}from"./attr.js";import{components as l}from"./components.js";import{REGEXP_ONLY_CHARS as u,REGEXP_ONLY_DIGITS as d,REGEXP_ONLY_DIGITS_AND_CHARS as f}from"./regexp.js";export{e as ALIGN_OPTIONS,a as COLLECTION_ITEM_ATTRIBUTE,o as CONFIG_PROVIDER_CONTEXT_KEY,s as GRACE_AREA_TRIGGER_ATTR,c as INERT_MARKER_ATTR,t as MAP_KEY_TO_FOCUS_INTENT,n as OPPOSITE_SIDE,u as REGEXP_ONLY_CHARS,d as REGEXP_ONLY_DIGITS,f as REGEXP_ONLY_DIGITS_AND_CHARS,r as SELECTION_KEYS,i as SIDE_OPTIONS,l as components};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
//#region src/constants/regexp.d.ts
|
|
2
|
-
declare const REGEXP_ONLY_DIGITS = "^\\d+$";
|
|
3
|
-
declare const REGEXP_ONLY_CHARS = "^[a-zA-Z]+$";
|
|
4
|
-
declare const REGEXP_ONLY_DIGITS_AND_CHARS = "^[a-zA-Z0-9]+$";
|
|
5
|
-
//#endregion
|
|
6
|
-
export { REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS };
|
|
2
|
+
export declare const REGEXP_ONLY_DIGITS = "^\\d+$";
|
|
3
|
+
export declare const REGEXP_ONLY_CHARS = "^[a-zA-Z]+$";
|
|
4
|
+
export declare const REGEXP_ONLY_DIGITS_AND_CHARS = "^[a-zA-Z0-9]+$";
|
|
5
|
+
//#endregion
|
package/dist/date/calendar.d.ts
CHANGED
|
@@ -1,43 +1,42 @@
|
|
|
1
1
|
import { DateGrid, DateRange, DateValue, DayOfWeek, WeekStartsOn } from "./types.js";
|
|
2
2
|
//#region src/date/calendar.d.ts
|
|
3
|
-
declare const DEFAULT_DATE_LOCALE = "en-US";
|
|
4
|
-
interface CreateSelectOptions {
|
|
3
|
+
export declare const DEFAULT_DATE_LOCALE = "en-US";
|
|
4
|
+
export interface CreateSelectOptions {
|
|
5
5
|
dateObj: DateValue;
|
|
6
6
|
}
|
|
7
|
-
declare function getDaysBetween(start: DateValue, end: DateValue): DateValue[];
|
|
8
|
-
interface CreateMonthOptions {
|
|
7
|
+
export declare function getDaysBetween(start: DateValue, end: DateValue): DateValue[];
|
|
8
|
+
export interface CreateMonthOptions {
|
|
9
9
|
dateObj: DateValue;
|
|
10
10
|
weekStartsOn: WeekStartsOn;
|
|
11
11
|
fixedWeeks: boolean;
|
|
12
12
|
locale: string;
|
|
13
13
|
}
|
|
14
|
-
declare function createMonth(options: CreateMonthOptions): DateGrid<DateValue>;
|
|
15
|
-
declare function startOfDecade(dateObj: DateValue): DateValue;
|
|
16
|
-
declare function endOfDecade(dateObj: DateValue): DateValue;
|
|
14
|
+
export declare function createMonth(options: CreateMonthOptions): DateGrid<DateValue>;
|
|
15
|
+
export declare function startOfDecade(dateObj: DateValue): DateValue;
|
|
16
|
+
export declare function endOfDecade(dateObj: DateValue): DateValue;
|
|
17
17
|
interface CreateDecadeOptions extends CreateSelectOptions {
|
|
18
18
|
startIndex?: number;
|
|
19
19
|
endIndex: number;
|
|
20
20
|
}
|
|
21
|
-
declare function createDecade(props: CreateDecadeOptions): DateValue[];
|
|
21
|
+
export declare function createDecade(props: CreateDecadeOptions): DateValue[];
|
|
22
22
|
interface CreateYearOptions extends CreateSelectOptions {
|
|
23
23
|
numberOfMonths?: number;
|
|
24
24
|
pagedNavigation?: boolean;
|
|
25
25
|
}
|
|
26
|
-
declare function createYear(props: CreateYearOptions): DateValue[];
|
|
26
|
+
export declare function createYear(props: CreateYearOptions): DateValue[];
|
|
27
27
|
interface CreateMonthsOptions extends CreateMonthOptions {
|
|
28
28
|
numberOfMonths: number | undefined;
|
|
29
29
|
currentMonths?: DateGrid<DateValue>[];
|
|
30
30
|
}
|
|
31
|
-
declare function createMonths(options: CreateMonthsOptions): DateGrid<DateValue>[];
|
|
32
|
-
declare function createMonthGrid(options: CreateSelectOptions): DateGrid<DateValue>;
|
|
33
|
-
interface CreateYearGridOptions extends CreateSelectOptions {
|
|
31
|
+
export declare function createMonths(options: CreateMonthsOptions): DateGrid<DateValue>[];
|
|
32
|
+
export declare function createMonthGrid(options: CreateSelectOptions): DateGrid<DateValue>;
|
|
33
|
+
export interface CreateYearGridOptions extends CreateSelectOptions {
|
|
34
34
|
yearsPerPage?: number;
|
|
35
35
|
decadeAligned?: boolean;
|
|
36
36
|
}
|
|
37
|
-
declare function createYearGrid(options: CreateYearGridOptions): DateGrid<DateValue>;
|
|
38
|
-
declare function createYearRange({ start, end }: DateRange): DateValue[];
|
|
39
|
-
declare function createDateRange({ start, end }: DateRange): DateValue[];
|
|
40
|
-
declare function getWeekStartsOn(locale: string): WeekStartsOn;
|
|
41
|
-
declare function getWeekNumber(date: DateValue, locale?: string, firstDayOfWeek?: DayOfWeek): number;
|
|
42
|
-
//#endregion
|
|
43
|
-
export { CreateMonthOptions, CreateSelectOptions, CreateYearGridOptions, DEFAULT_DATE_LOCALE, createDateRange, createDecade, createMonth, createMonthGrid, createMonths, createYear, createYearGrid, createYearRange, endOfDecade, getDaysBetween, getWeekNumber, getWeekStartsOn, startOfDecade };
|
|
37
|
+
export declare function createYearGrid(options: CreateYearGridOptions): DateGrid<DateValue>;
|
|
38
|
+
export declare function createYearRange({ start, end }: DateRange): DateValue[];
|
|
39
|
+
export declare function createDateRange({ start, end }: DateRange): DateValue[];
|
|
40
|
+
export declare function getWeekStartsOn(locale: string): WeekStartsOn;
|
|
41
|
+
export declare function getWeekNumber(date: DateValue, locale?: string, firstDayOfWeek?: DayOfWeek): number;
|
|
42
|
+
//#endregion
|
package/dist/date/calendar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{chunk as e}from"../shared/object.js";import{getDaysInMonth as t,getLastFirstDayOfWeek as n,getNextLastDayOfWeek as r}from"./comparators.js";import
|
|
1
|
+
import{chunk as e}from"../shared/object.js";import{getDaysInMonth as t,getLastFirstDayOfWeek as n,getNextLastDayOfWeek as r}from"./comparators.js";import{CalendarDate as i,endOfMonth as a,endOfYear as o,getDayOfWeek as s,startOfMonth as c,startOfWeek as l,startOfYear as u}from"@internationalized/date";const d=`en-US`;function f(e,t){let n=[],r=e.add({days:1});for(;r.compare(t)<0;)n.push(r),r=r.add({days:1});return n}function p(i){let{dateObj:o,weekStartsOn:s,fixedWeeks:l,locale:u}=i,d=t(o),p=Array.from({length:d},(e,t)=>o.set({day:t+1})),m=c(o),h=a(o),g=n(m,s,u),_=r(h,s,u),v=f(g.subtract({days:1}),m),y=f(h,_.add({days:1})),b=v.length+p.length+y.length;if(l&&b<42){let e=42-b,t=y.at(-1)??a(o),n=Array.from({length:e},(e,n)=>t.add({days:n+1}));y.push(...n)}let x=v.concat(p,y);return{value:o,cells:x,rows:e(x,7)}}function m(e){return u(e.subtract({years:e.year-Math.floor(e.year/10)*10}).set({day:1,month:1}))}function h(e){return o(m(e).add({years:9}))}function g(e){let{dateObj:t,startIndex:n=0,endIndex:r}=e,i=r-n+1;return i<=0?[]:Array.from({length:i},(e,r)=>t.add({years:n+r}).set({day:1,month:1}))}function _(e){let{dateObj:t,numberOfMonths:n=1,pagedNavigation:r=!1}=e;if(n&&r){let e=[];for(let r=1;r<=12;r+=n)e.push(c(t.set({month:r})));return e}return Array.from({length:12},(e,n)=>c(t.set({month:n+1})))}function v(e){let{numberOfMonths:t,dateObj:n,...r}=e;if(!t||t===1)return[p({...r,dateObj:n})];let i=[p({...r,dateObj:n})];for(let e=1;e<t;e+=1)i.push(p({...r,dateObj:n.add({months:e})}));return i}function y(t){let{dateObj:n}=t,r=_({dateObj:n});return{value:n,cells:r,rows:e(r,4)}}function b(t){let{dateObj:n,yearsPerPage:r=12,decadeAligned:i=!0}=t,a=i?m(n).year:n.year,o=Array.from({length:r},(e,t)=>u(n.set({year:a+t})));return{value:o[0],cells:o,rows:e(o,4)}}function x({start:e,end:t}){let n=[];if(!e||!t)return n;let r=u(e);for(;r.compare(t)<=0;)n.push(r),r=u(r.add({years:1}));return n}function S({start:e,end:t}){let n=[];if(!e||!t)return n;let r=e;for(;r.compare(t)<=0;)n.push(r),r=r.add({days:1});return n}function C(e){let t=new i(2025,1,6);return(1-s(t,e)+7)%7}function w(e,t=d,n){let r=new i(e.year,1,1),a=r.toDate(`UTC`).getUTCDay()!==s(r,t),o=n??(a?`mon`:`sun`),c=a?4:1,u=s(e,t,o),f=e.add({days:7-c-u}).year,p=new i(f,1,c),m=l(p,t,o),h=l(e,t,o);return Math.round((h.toDate(`UTC`).getTime()-m.toDate(`UTC`).getTime())/6048e5)+1}export{d as DEFAULT_DATE_LOCALE,S as createDateRange,g as createDecade,p as createMonth,y as createMonthGrid,v as createMonths,_ as createYear,b as createYearGrid,x as createYearRange,h as endOfDecade,f as getDaysBetween,w as getWeekNumber,C as getWeekStartsOn,m as startOfDecade};
|
|
@@ -1,38 +1,37 @@
|
|
|
1
1
|
import { DateMatcher, DateValue as DateValue$1, Granularity, TimeValue } from "./types.js";
|
|
2
2
|
import { CalendarDateTime, Time, ZonedDateTime } from "@internationalized/date";
|
|
3
3
|
//#region src/date/comparators.d.ts
|
|
4
|
-
declare function parseStringToDateValue(dateStr: string, referenceValue: DateValue$1): DateValue$1;
|
|
5
|
-
declare function isTime(dateValue: DateValue$1 | TimeValue): dateValue is Time;
|
|
6
|
-
declare function toDate(dateValue: DateValue$1 | TimeValue, tz?: string): Date;
|
|
7
|
-
declare function isCalendarDateTime(dateValue: DateValue$1 | TimeValue): dateValue is CalendarDateTime;
|
|
8
|
-
declare function isZonedDateTime(dateValue: DateValue$1 | TimeValue): dateValue is ZonedDateTime;
|
|
9
|
-
declare function hasTime(dateValue: DateValue$1 | TimeValue): dateValue is CalendarDateTime | ZonedDateTime | Time;
|
|
10
|
-
declare function getDaysInMonth(date: Date | DateValue$1): number;
|
|
11
|
-
declare function getDefaultDate(props: {
|
|
4
|
+
export declare function parseStringToDateValue(dateStr: string, referenceValue: DateValue$1): DateValue$1;
|
|
5
|
+
export declare function isTime(dateValue: DateValue$1 | TimeValue): dateValue is Time;
|
|
6
|
+
export declare function toDate(dateValue: DateValue$1 | TimeValue, tz?: string): Date;
|
|
7
|
+
export declare function isCalendarDateTime(dateValue: DateValue$1 | TimeValue): dateValue is CalendarDateTime;
|
|
8
|
+
export declare function isZonedDateTime(dateValue: DateValue$1 | TimeValue): dateValue is ZonedDateTime;
|
|
9
|
+
export declare function hasTime(dateValue: DateValue$1 | TimeValue): dateValue is CalendarDateTime | ZonedDateTime | Time;
|
|
10
|
+
export declare function getDaysInMonth(date: Date | DateValue$1): number;
|
|
11
|
+
export declare function getDefaultDate(props: {
|
|
12
12
|
defaultValue?: DateValue$1 | DateValue$1[];
|
|
13
13
|
defaultPlaceholder?: DateValue$1;
|
|
14
14
|
granularity?: Granularity;
|
|
15
15
|
locale?: string;
|
|
16
16
|
}): DateValue$1;
|
|
17
|
-
declare function getDefaultTime(props: {
|
|
17
|
+
export declare function getDefaultTime(props: {
|
|
18
18
|
defaultValue?: TimeValue;
|
|
19
19
|
defaultPlaceholder?: TimeValue;
|
|
20
20
|
}): TimeValue;
|
|
21
|
-
declare function isBefore(dateToCompare: DateValue$1 | TimeValue, referenceDate: DateValue$1 | TimeValue): boolean;
|
|
22
|
-
declare function isAfter(dateToCompare: DateValue$1 | TimeValue, referenceDate: DateValue$1 | TimeValue): boolean;
|
|
23
|
-
declare function isBeforeOrSame(dateToCompare: DateValue$1 | TimeValue, referenceDate: DateValue$1 | TimeValue): boolean;
|
|
24
|
-
declare function isAfterOrSame(dateToCompare: DateValue$1 | TimeValue, referenceDate: DateValue$1 | TimeValue): boolean;
|
|
25
|
-
declare function isEqualValue(a: DateValue$1 | TimeValue, b: DateValue$1 | TimeValue): boolean;
|
|
26
|
-
declare function isBetweenInclusive(date: DateValue$1, start: DateValue$1, end: DateValue$1): boolean;
|
|
27
|
-
declare function isBetween(date: DateValue$1, start: DateValue$1, end: DateValue$1): boolean;
|
|
28
|
-
declare function getLastFirstDayOfWeek<T extends DateValue$1 = DateValue$1>(date: T, firstDayOfWeek: number, locale: string): T;
|
|
29
|
-
declare function getNextLastDayOfWeek<T extends DateValue$1 = DateValue$1>(date: T, firstDayOfWeek: number, locale: string): T;
|
|
30
|
-
declare function isSameYearMonth(a: DateValue$1, b: DateValue$1): boolean;
|
|
31
|
-
declare function isSameYear(a: DateValue$1, b: DateValue$1): boolean;
|
|
32
|
-
declare function areAllDaysBetweenValid(start: DateValue$1, end: DateValue$1, isUnavailable: DateMatcher | undefined, isDisabled: DateMatcher | undefined, isHighlightable?: DateMatcher | undefined): boolean;
|
|
33
|
-
declare function compareYearMonth(a: DateValue$1, b: DateValue$1): number;
|
|
34
|
-
declare function isMonthBetweenInclusive(date: DateValue$1, start: DateValue$1, end: DateValue$1): boolean;
|
|
35
|
-
declare function isYearBetweenInclusive(date: DateValue$1, start: DateValue$1, end: DateValue$1): boolean;
|
|
36
|
-
declare function getMonthsBetween(start: DateValue$1, end: DateValue$1): number;
|
|
37
|
-
//#endregion
|
|
38
|
-
export { areAllDaysBetweenValid, compareYearMonth, getDaysInMonth, getDefaultDate, getDefaultTime, getLastFirstDayOfWeek, getMonthsBetween, getNextLastDayOfWeek, hasTime, isAfter, isAfterOrSame, isBefore, isBeforeOrSame, isBetween, isBetweenInclusive, isCalendarDateTime, isEqualValue, isMonthBetweenInclusive, isSameYear, isSameYearMonth, isTime, isYearBetweenInclusive, isZonedDateTime, parseStringToDateValue, toDate };
|
|
21
|
+
export declare function isBefore(dateToCompare: DateValue$1 | TimeValue, referenceDate: DateValue$1 | TimeValue): boolean;
|
|
22
|
+
export declare function isAfter(dateToCompare: DateValue$1 | TimeValue, referenceDate: DateValue$1 | TimeValue): boolean;
|
|
23
|
+
export declare function isBeforeOrSame(dateToCompare: DateValue$1 | TimeValue, referenceDate: DateValue$1 | TimeValue): boolean;
|
|
24
|
+
export declare function isAfterOrSame(dateToCompare: DateValue$1 | TimeValue, referenceDate: DateValue$1 | TimeValue): boolean;
|
|
25
|
+
export declare function isEqualValue(a: DateValue$1 | TimeValue, b: DateValue$1 | TimeValue): boolean;
|
|
26
|
+
export declare function isBetweenInclusive(date: DateValue$1, start: DateValue$1, end: DateValue$1): boolean;
|
|
27
|
+
export declare function isBetween(date: DateValue$1, start: DateValue$1, end: DateValue$1): boolean;
|
|
28
|
+
export declare function getLastFirstDayOfWeek<T extends DateValue$1 = DateValue$1>(date: T, firstDayOfWeek: number, locale: string): T;
|
|
29
|
+
export declare function getNextLastDayOfWeek<T extends DateValue$1 = DateValue$1>(date: T, firstDayOfWeek: number, locale: string): T;
|
|
30
|
+
export declare function isSameYearMonth(a: DateValue$1, b: DateValue$1): boolean;
|
|
31
|
+
export declare function isSameYear(a: DateValue$1, b: DateValue$1): boolean;
|
|
32
|
+
export declare function areAllDaysBetweenValid(start: DateValue$1, end: DateValue$1, isUnavailable: DateMatcher | undefined, isDisabled: DateMatcher | undefined, isHighlightable?: DateMatcher | undefined): boolean;
|
|
33
|
+
export declare function compareYearMonth(a: DateValue$1, b: DateValue$1): number;
|
|
34
|
+
export declare function isMonthBetweenInclusive(date: DateValue$1, start: DateValue$1, end: DateValue$1): boolean;
|
|
35
|
+
export declare function isYearBetweenInclusive(date: DateValue$1, start: DateValue$1, end: DateValue$1): boolean;
|
|
36
|
+
export declare function getMonthsBetween(start: DateValue$1, end: DateValue$1): number;
|
|
37
|
+
//#endregion
|
package/dist/date/formatter.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TimeValue } from "./types.js";
|
|
2
2
|
import { DateValue } from "@internationalized/date";
|
|
3
3
|
//#region src/date/formatter.d.ts
|
|
4
|
-
interface DateFormatterOptions extends Intl.DateTimeFormatOptions {
|
|
4
|
+
export interface DateFormatterOptions extends Intl.DateTimeFormatOptions {
|
|
5
5
|
calendar?: string;
|
|
6
6
|
}
|
|
7
|
-
interface Formatter {
|
|
7
|
+
export interface Formatter {
|
|
8
8
|
getLocale: () => string;
|
|
9
9
|
setLocale: (newLocale: string) => void;
|
|
10
10
|
custom: (date: Date, options: DateFormatterOptions) => string;
|
|
@@ -21,6 +21,5 @@ interface Formatter {
|
|
|
21
21
|
value: number;
|
|
22
22
|
}[];
|
|
23
23
|
}
|
|
24
|
-
declare function useDateFormatter(initialLocale: string, opts?: DateFormatterOptions): Formatter;
|
|
25
|
-
//#endregion
|
|
26
|
-
export { DateFormatterOptions, Formatter, useDateFormatter };
|
|
24
|
+
export declare function useDateFormatter(initialLocale: string, opts?: DateFormatterOptions): Formatter;
|
|
25
|
+
//#endregion
|
package/dist/date/parser.d.ts
CHANGED
|
@@ -3,15 +3,15 @@ import { Formatter } from "./formatter.js";
|
|
|
3
3
|
import { LocaleDateMessages } from "../locale/types.js";
|
|
4
4
|
import { Ref } from "vue";
|
|
5
5
|
//#region src/date/parser.d.ts
|
|
6
|
-
declare function syncTimeSegmentValues(props: {
|
|
6
|
+
export declare function syncTimeSegmentValues(props: {
|
|
7
7
|
value: DateValue | TimeValue;
|
|
8
8
|
formatter: Formatter;
|
|
9
9
|
}): SegmentValueObj;
|
|
10
|
-
declare function syncSegmentValues(props: {
|
|
10
|
+
export declare function syncSegmentValues(props: {
|
|
11
11
|
value: DateValue;
|
|
12
12
|
formatter: Formatter;
|
|
13
13
|
}): SegmentValueObj;
|
|
14
|
-
declare function initializeSegmentValues(granularity: Granularity): SegmentValueObj;
|
|
14
|
+
export declare function initializeSegmentValues(granularity: Granularity): SegmentValueObj;
|
|
15
15
|
type CreateContentOptions = {
|
|
16
16
|
granularity: Granularity;
|
|
17
17
|
dateRef: DateValue | TimeValue;
|
|
@@ -23,12 +23,11 @@ type CreateContentOptions = {
|
|
|
23
23
|
isTimeValue?: boolean;
|
|
24
24
|
dateMessages?: LocaleDateMessages;
|
|
25
25
|
};
|
|
26
|
-
declare function createContent(options: CreateContentOptions): {
|
|
26
|
+
export declare function createContent(options: CreateContentOptions): {
|
|
27
27
|
obj: SegmentContentObj;
|
|
28
28
|
arr: {
|
|
29
29
|
part: SegmentPart;
|
|
30
30
|
value: string;
|
|
31
31
|
}[];
|
|
32
32
|
};
|
|
33
|
-
//#endregion
|
|
34
|
-
export { createContent, initializeSegmentValues, syncSegmentValues, syncTimeSegmentValues };
|
|
33
|
+
//#endregion
|
package/dist/date/parts.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { DateSegmentPart, EditableSegmentPart, SegmentPart, TimeSegmentPart } from "./types.js";
|
|
2
2
|
//#region src/date/parts.d.ts
|
|
3
|
-
declare const DATE_SEGMENT_PARTS: readonly DateSegmentPart[];
|
|
4
|
-
declare const TIME_SEGMENT_PARTS: readonly TimeSegmentPart[];
|
|
5
|
-
declare const NON_EDITABLE_SEGMENT_PARTS: readonly SegmentPart[];
|
|
6
|
-
declare const EDITABLE_SEGMENT_PARTS: readonly EditableSegmentPart[];
|
|
7
|
-
declare const ALL_SEGMENT_PARTS: readonly SegmentPart[];
|
|
8
|
-
declare const ALL_EXCEPT_LITERAL_PARTS: readonly SegmentPart[];
|
|
9
|
-
declare function isDateSegmentPart(part: unknown): part is DateSegmentPart;
|
|
10
|
-
declare function isTimeSegmentPart(part: unknown): part is TimeSegmentPart;
|
|
11
|
-
declare function isSegmentPart(part: string): part is EditableSegmentPart;
|
|
12
|
-
declare function isAnySegmentPart(part: unknown): part is SegmentPart;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { ALL_EXCEPT_LITERAL_PARTS, ALL_SEGMENT_PARTS, DATE_SEGMENT_PARTS, EDITABLE_SEGMENT_PARTS, NON_EDITABLE_SEGMENT_PARTS, TIME_SEGMENT_PARTS, isAnySegmentPart, isDateSegmentPart, isSegmentPart, isTimeSegmentPart };
|
|
3
|
+
export declare const DATE_SEGMENT_PARTS: readonly DateSegmentPart[];
|
|
4
|
+
export declare const TIME_SEGMENT_PARTS: readonly TimeSegmentPart[];
|
|
5
|
+
export declare const NON_EDITABLE_SEGMENT_PARTS: readonly SegmentPart[];
|
|
6
|
+
export declare const EDITABLE_SEGMENT_PARTS: readonly EditableSegmentPart[];
|
|
7
|
+
export declare const ALL_SEGMENT_PARTS: readonly SegmentPart[];
|
|
8
|
+
export declare const ALL_EXCEPT_LITERAL_PARTS: readonly SegmentPart[];
|
|
9
|
+
export declare function isDateSegmentPart(part: unknown): part is DateSegmentPart;
|
|
10
|
+
export declare function isTimeSegmentPart(part: unknown): part is TimeSegmentPart;
|
|
11
|
+
export declare function isSegmentPart(part: string): part is EditableSegmentPart;
|
|
12
|
+
export declare function isAnySegmentPart(part: unknown): part is SegmentPart;
|
|
13
|
+
//#endregion
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
//#region src/date/placeholders.d.ts
|
|
2
|
-
declare function getPlaceholder(field: 'year' | 'month' | 'day' | 'era' | 'hour' | 'minute' | 'second' | 'dayPeriod', value: string, locale: string): string;
|
|
3
|
-
//#endregion
|
|
4
|
-
export { getPlaceholder };
|
|
2
|
+
export declare function getPlaceholder(field: 'year' | 'month' | 'day' | 'era' | 'hour' | 'minute' | 'second' | 'dayPeriod', value: string, locale: string): string;
|
|
3
|
+
//#endregion
|
package/dist/date/segment.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
//#region src/date/segment.d.ts
|
|
2
|
-
declare function isSegmentNavigationKey(key: string): key is "ArrowLeft" | "ArrowRight";
|
|
3
|
-
declare function isNumberString(value: string): boolean;
|
|
4
|
-
declare function isAcceptableSegmentKey(key: string): boolean;
|
|
5
|
-
declare function getSegmentElements(parentElement: HTMLElement): Element[];
|
|
6
|
-
//#endregion
|
|
7
|
-
export { getSegmentElements, isAcceptableSegmentKey, isNumberString, isSegmentNavigationKey };
|
|
2
|
+
export declare function isSegmentNavigationKey(key: string): key is "ArrowLeft" | "ArrowRight";
|
|
3
|
+
export declare function isNumberString(value: string): boolean;
|
|
4
|
+
export declare function isAcceptableSegmentKey(key: string): boolean;
|
|
5
|
+
export declare function getSegmentElements(parentElement: HTMLElement): Element[];
|
|
6
|
+
//#endregion
|