@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
package/dist/shared/guard.d.ts
CHANGED
|
@@ -5,47 +5,46 @@
|
|
|
5
5
|
* @param value
|
|
6
6
|
* @returns
|
|
7
7
|
*/
|
|
8
|
-
declare function isString(value: unknown): value is string;
|
|
8
|
+
export declare function isString(value: unknown): value is string;
|
|
9
9
|
/**
|
|
10
10
|
* Type guard: check if value is a primitive type
|
|
11
11
|
*
|
|
12
12
|
* @param value - The value to check
|
|
13
13
|
* @returns Whether the value is string | number | boolean
|
|
14
14
|
*/
|
|
15
|
-
declare function isPrimitive(value: unknown): value is string | number | boolean | null | undefined;
|
|
15
|
+
export declare function isPrimitive(value: unknown): value is string | number | boolean | null | undefined;
|
|
16
16
|
/**
|
|
17
17
|
* Type guard: check if value is a non-null object (excluding arrays)
|
|
18
18
|
*
|
|
19
19
|
* @param value - The value to check
|
|
20
20
|
* @returns Whether the value is a non-null object
|
|
21
21
|
*/
|
|
22
|
-
declare function isNonNullObject(value: unknown): value is Record<string, unknown>;
|
|
22
|
+
export declare function isNonNullObject(value: unknown): value is Record<string, unknown>;
|
|
23
23
|
/**
|
|
24
24
|
* Type guard: check if value is an array
|
|
25
25
|
*
|
|
26
26
|
* @param value - The value to check
|
|
27
27
|
* @returns Whether the value is an array
|
|
28
28
|
*/
|
|
29
|
-
declare function isArrayValue(value: unknown): value is unknown[];
|
|
29
|
+
export declare function isArrayValue(value: unknown): value is unknown[];
|
|
30
30
|
/**
|
|
31
31
|
* Type guard: check if value is null or undefined
|
|
32
32
|
*
|
|
33
33
|
* @param value - The value to check
|
|
34
34
|
* @returns Whether the value is null or undefined
|
|
35
35
|
*/
|
|
36
|
-
declare function isNullish(value: unknown): value is null | undefined;
|
|
36
|
+
export declare function isNullish(value: unknown): value is null | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* Type guard: check if value is an empty string
|
|
39
39
|
*
|
|
40
40
|
* @param value - The value to check
|
|
41
41
|
* @returns Whether the value is an empty string
|
|
42
42
|
*/
|
|
43
|
-
declare function isBlankString(value: unknown | undefined): value is string;
|
|
44
|
-
declare function isDateObject(value: unknown): value is Date;
|
|
45
|
-
declare function isObjectType(value: unknown): value is object | null;
|
|
46
|
-
declare function isFunction(value: unknown): value is (...args: any[]) => any;
|
|
47
|
-
declare function isObject(value: unknown):
|
|
48
|
-
declare function isPromise(value: any): value is PromiseLike<any>;
|
|
49
|
-
declare function keysOf<TRecord extends
|
|
50
|
-
//#endregion
|
|
51
|
-
export { isArrayValue, isBlankString, isDateObject, isFunction, isNonNullObject, isNullish, isObject, isObjectType, isPrimitive, isPromise, isString, keysOf };
|
|
43
|
+
export declare function isBlankString(value: unknown | undefined): value is string;
|
|
44
|
+
export declare function isDateObject(value: unknown): value is Date;
|
|
45
|
+
export declare function isObjectType(value: unknown): value is object | null;
|
|
46
|
+
export declare function isFunction(value: unknown): value is (...args: any[]) => any;
|
|
47
|
+
export declare function isObject(value: unknown): value is Record<string, unknown>;
|
|
48
|
+
export declare function isPromise(value: any): value is PromiseLike<any>;
|
|
49
|
+
export declare function keysOf<TRecord extends object>(record: TRecord): (keyof TRecord)[];
|
|
50
|
+
//#endregion
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { isArrayValue, isBlankString, isDateObject, isFunction, isNonNullObject, isNullish, isObject, isObjectType, isPrimitive, isPromise, isString, keysOf } from "./guard.js";
|
|
2
|
-
import { appendAt, arrayRemove, chunk, compact, findValuesBetween, flattenChildren, getNextMatch, insertAt, moveAt, omit, pick, prependAt, removeAt, swapAt, updateAt, wrapArray } from "./object.js";
|
|
3
|
-
import { interpolate, isKey, stringToPath } from "./string.js";
|
|
2
|
+
import { appendAt, arrayRemove, chunk, compact, defu, findValuesBetween, flattenChildren, getNextMatch, insertAt, isEqual, klona, moveAt, omit, pick, prependAt, removeAt, swapAt, updateAt, wrapArray } from "./object.js";
|
|
3
|
+
import { camelCase, capitalize, interpolate, isKey, kebabCase, pascalCase, snakeCase, stringToPath } from "./string.js";
|
|
4
|
+
import { arrayMove, filterNullish } from "./array.js";
|
|
4
5
|
import { isValueEqualOrExist } from "./comparison.js";
|
|
5
6
|
import { areColorsEqual, formatChannelValue, formatColor, getAreaBackgroundStyle, getChannelName, getChannelObjectSpace, getChannelRange, getChannelValue, getColorContrast, getColorLabel, getSliderBackgroundStyle, hasVisibleChromaticity, isValidColor, normalizeColor, resolveColorFormat, setChannelValue, setChannelValues, toColorObject } from "./color.js";
|
|
6
7
|
import { clamp, getBinaryCheckedState, getCheckedState, getDisclosureState, getOpenFromSingleOrMultiple, getValue, isIndeterminate, roundToStepPrecision, setValue, snapValueToStep } from "./value.js";
|
|
7
8
|
import { createFieldName, parseArrayValue, parseFormValue, parseObjectValue, parsePrimitiveValue } from "./form.js";
|
|
8
9
|
import { getActiveElement, getAriaLabel, getCollectionItemElements, isElementHasAttribute, isHTMLElement, removeLinks } from "./dom.js";
|
|
9
10
|
import { focus, focusFirstAndSelect, getDirectionAwareKey, getFocusIntent, getTabbableCandidates, getTabbableEdges, removeFromTabOrder, tryFocusFirst } from "./focus.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
11
|
+
import { FuzzyOptions, FuzzyResult, fuzzySearch } from "./fuzzy.js";
|
|
12
|
+
import { MarkOthersOptions, markOthers } from "./mark-others.js";
|
|
13
|
+
import { fromContext, getElFromTemplateRef, getLifeCycleTarget, getMergedRefsValue, getRawChildren, getVueBooleanCasting, isFormControl, toContext } from "./vue.js";
|
|
14
|
+
import { isBrowser, isClient, isIOS, refreshIOSDetection, supportsInert } from "./env.js";
|
|
12
15
|
import { handleAndDispatchCustomEvent, isMouseEvent } from "./event.js";
|
|
13
16
|
import { getExitSideFromRect, getHull, getPaddedExitPoints, getPointsFromRect, isDeltaInDirection, isPointInPolygon, isPointerInGraceArea } from "./geometry.js";
|
|
14
17
|
import { getTreePaths } from "./tree.js";
|
|
18
|
+
import { TreeNavigationKey, TreeNavigationNode, TreeNavigationResult, getTreeNavigationKey, resolveTreeNavigation } from "./tree-navigation.js";
|
|
15
19
|
import { CreateTimeOptionsProps, FormatTimeValueProps, TimePickerOption, compareTimeValues, createTimeOptions, findClosestTimeOption, formatTimeValue, isTimeBetweenInclusive } from "./time-picker.js";
|
|
16
|
-
export { CreateTimeOptionsProps, FormatTimeValueProps, TimePickerOption, appendAt, areColorsEqual, arrayRemove, chunk, clamp, compact, compareTimeValues, createFieldName, createTimeOptions, findClosestTimeOption, findValuesBetween, flattenChildren, focus, focusFirstAndSelect, formatChannelValue, formatColor, formatTimeValue, getActiveElement, getAreaBackgroundStyle, getAriaLabel, getBinaryCheckedState, getChannelName, getChannelObjectSpace, getChannelRange, getChannelValue, getCheckedState, getCollectionItemElements, getColorContrast, getColorLabel, getDirectionAwareKey, getDisclosureState, getElFromTemplateRef, getExitSideFromRect, getFocusIntent, getHull, getLifeCycleTarget, getMergedRefsValue, getNextMatch, getOpenFromSingleOrMultiple, getPaddedExitPoints, getPointsFromRect, getRawChildren, getSliderBackgroundStyle, getTabbableCandidates, getTabbableEdges, getTreePaths, getValue, getVueBooleanCasting, handleAndDispatchCustomEvent, hasVisibleChromaticity, insertAt, interpolate, isArrayValue, isBlankString, isBrowser, isClient, isDateObject, isDeltaInDirection, isElementHasAttribute, isFormControl, isFunction, isHTMLElement, isIOS, isIndeterminate, isKey, isMouseEvent, isNonNullObject, isNullish, isObject, isObjectType, isPointInPolygon, isPointerInGraceArea, isPrimitive, isPromise, isString, isTimeBetweenInclusive, isValidColor, isValueEqualOrExist, keysOf, moveAt, normalizeColor, omit, parseArrayValue, parseFormValue, parseObjectValue, parsePrimitiveValue, pick, prependAt, refreshIOSDetection, removeAt, removeFromTabOrder, removeLinks, resolveColorFormat, roundToStepPrecision, setChannelValue, setChannelValues, setValue, snapValueToStep, stringToPath, swapAt, toColorObject,
|
|
20
|
+
export { CreateTimeOptionsProps, FormatTimeValueProps, FuzzyOptions, FuzzyResult, MarkOthersOptions, TimePickerOption, TreeNavigationKey, TreeNavigationNode, TreeNavigationResult, appendAt, areColorsEqual, arrayMove, arrayRemove, camelCase, capitalize, chunk, clamp, compact, compareTimeValues, createFieldName, createTimeOptions, defu, filterNullish, findClosestTimeOption, findValuesBetween, flattenChildren, focus, focusFirstAndSelect, formatChannelValue, formatColor, formatTimeValue, fromContext, fuzzySearch, getActiveElement, getAreaBackgroundStyle, getAriaLabel, getBinaryCheckedState, getChannelName, getChannelObjectSpace, getChannelRange, getChannelValue, getCheckedState, getCollectionItemElements, getColorContrast, getColorLabel, getDirectionAwareKey, getDisclosureState, getElFromTemplateRef, getExitSideFromRect, getFocusIntent, getHull, getLifeCycleTarget, getMergedRefsValue, getNextMatch, getOpenFromSingleOrMultiple, getPaddedExitPoints, getPointsFromRect, getRawChildren, getSliderBackgroundStyle, getTabbableCandidates, getTabbableEdges, getTreeNavigationKey, getTreePaths, getValue, getVueBooleanCasting, handleAndDispatchCustomEvent, hasVisibleChromaticity, insertAt, interpolate, isArrayValue, isBlankString, isBrowser, isClient, isDateObject, isDeltaInDirection, isElementHasAttribute, isEqual, isFormControl, isFunction, isHTMLElement, isIOS, isIndeterminate, isKey, isMouseEvent, isNonNullObject, isNullish, isObject, isObjectType, isPointInPolygon, isPointerInGraceArea, isPrimitive, isPromise, isString, isTimeBetweenInclusive, isValidColor, isValueEqualOrExist, kebabCase, keysOf, klona, markOthers, moveAt, normalizeColor, omit, parseArrayValue, parseFormValue, parseObjectValue, parsePrimitiveValue, pascalCase, pick, prependAt, refreshIOSDetection, removeAt, removeFromTabOrder, removeLinks, resolveColorFormat, resolveTreeNavigation, roundToStepPrecision, setChannelValue, setChannelValues, setValue, snakeCase, snapValueToStep, stringToPath, supportsInert, swapAt, toColorObject, toContext, tryFocusFirst, updateAt, wrapArray };
|
package/dist/shared/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isArrayValue as e,isBlankString as t,isDateObject as n,isFunction as r,isNonNullObject as i,isNullish as a,isObject as o,isObjectType as s,isPrimitive as c,isPromise as l,isString as u,keysOf as d}from"./guard.js";import{appendAt as f,arrayRemove as p,chunk as m,compact as h,
|
|
1
|
+
import{isArrayValue as e,isBlankString as t,isDateObject as n,isFunction as r,isNonNullObject as i,isNullish as a,isObject as o,isObjectType as s,isPrimitive as c,isPromise as l,isString as u,keysOf as d}from"./guard.js";import{appendAt as f,arrayRemove as p,chunk as m,compact as h,defu as g,findValuesBetween as _,flattenChildren as v,getNextMatch as y,insertAt as b,isEqual as x,klona as S,moveAt as C,omit as w,pick as T,prependAt as E,removeAt as D,swapAt as O,updateAt as k,wrapArray as A}from"./object.js";import{camelCase as j,capitalize as M,interpolate as N,isKey as P,kebabCase as F,pascalCase as I,snakeCase as L,stringToPath as R}from"./string.js";import{arrayMove as z,filterNullish as B}from"./array.js";import{isValueEqualOrExist as V}from"./comparison.js";import{areColorsEqual as H,formatChannelValue as U,formatColor as W,getAreaBackgroundStyle as G,getChannelName as K,getChannelObjectSpace as q,getChannelRange as J,getChannelValue as Y,getColorContrast as X,getColorLabel as Z,getSliderBackgroundStyle as Q,hasVisibleChromaticity as $,isValidColor as ee,normalizeColor as te,resolveColorFormat as ne,setChannelValue as re,setChannelValues as ie,toColorObject as ae}from"./color.js";import{clamp as oe,getBinaryCheckedState as se,getCheckedState as ce,getDisclosureState as le,getOpenFromSingleOrMultiple as ue,getValue as de,isIndeterminate as fe,roundToStepPrecision as pe,setValue as me,snapValueToStep as he}from"./value.js";import{createFieldName as ge,parseArrayValue as _e,parseFormValue as ve,parseObjectValue as ye,parsePrimitiveValue as be}from"./form.js";import{getActiveElement as xe,getAriaLabel as Se,getCollectionItemElements as Ce,isElementHasAttribute as we,isHTMLElement as Te,removeLinks as Ee}from"./dom.js";import{focus as De,focusFirstAndSelect as Oe,getDirectionAwareKey as ke,getFocusIntent as Ae,getTabbableCandidates as je,getTabbableEdges as Me,removeFromTabOrder as Ne,tryFocusFirst as Pe}from"./focus.js";import{fuzzySearch as Fe}from"./fuzzy.js";import{isBrowser as Ie,isClient as Le,isIOS as Re,refreshIOSDetection as ze,supportsInert as Be}from"./env.js";import{markOthers as Ve}from"./mark-others.js";import{fromContext as He,getElFromTemplateRef as Ue,getLifeCycleTarget as We,getMergedRefsValue as Ge,getRawChildren as Ke,getVueBooleanCasting as qe,isFormControl as Je,toContext as Ye}from"./vue.js";import{handleAndDispatchCustomEvent as Xe,isMouseEvent as Ze}from"./event.js";import{getExitSideFromRect as Qe,getHull as $e,getPaddedExitPoints as et,getPointsFromRect as tt,isDeltaInDirection as nt,isPointInPolygon as rt,isPointerInGraceArea as it}from"./geometry.js";import{getTreePaths as at}from"./tree.js";import{getTreeNavigationKey as ot,resolveTreeNavigation as st}from"./tree-navigation.js";import{compareTimeValues as ct,createTimeOptions as lt,findClosestTimeOption as ut,formatTimeValue as dt,isTimeBetweenInclusive as ft}from"./time-picker.js";export{f as appendAt,H as areColorsEqual,z as arrayMove,p as arrayRemove,j as camelCase,M as capitalize,m as chunk,oe as clamp,h as compact,ct as compareTimeValues,ge as createFieldName,lt as createTimeOptions,g as defu,B as filterNullish,ut as findClosestTimeOption,_ as findValuesBetween,v as flattenChildren,De as focus,Oe as focusFirstAndSelect,U as formatChannelValue,W as formatColor,dt as formatTimeValue,He as fromContext,Fe as fuzzySearch,xe as getActiveElement,G as getAreaBackgroundStyle,Se as getAriaLabel,se as getBinaryCheckedState,K as getChannelName,q as getChannelObjectSpace,J as getChannelRange,Y as getChannelValue,ce as getCheckedState,Ce as getCollectionItemElements,X as getColorContrast,Z as getColorLabel,ke as getDirectionAwareKey,le as getDisclosureState,Ue as getElFromTemplateRef,Qe as getExitSideFromRect,Ae as getFocusIntent,$e as getHull,We as getLifeCycleTarget,Ge as getMergedRefsValue,y as getNextMatch,ue as getOpenFromSingleOrMultiple,et as getPaddedExitPoints,tt as getPointsFromRect,Ke as getRawChildren,Q as getSliderBackgroundStyle,je as getTabbableCandidates,Me as getTabbableEdges,ot as getTreeNavigationKey,at as getTreePaths,de as getValue,qe as getVueBooleanCasting,Xe as handleAndDispatchCustomEvent,$ as hasVisibleChromaticity,b as insertAt,N as interpolate,e as isArrayValue,t as isBlankString,Ie as isBrowser,Le as isClient,n as isDateObject,nt as isDeltaInDirection,we as isElementHasAttribute,x as isEqual,Je as isFormControl,r as isFunction,Te as isHTMLElement,Re as isIOS,fe as isIndeterminate,P as isKey,Ze as isMouseEvent,i as isNonNullObject,a as isNullish,o as isObject,s as isObjectType,rt as isPointInPolygon,it as isPointerInGraceArea,c as isPrimitive,l as isPromise,u as isString,ft as isTimeBetweenInclusive,ee as isValidColor,V as isValueEqualOrExist,F as kebabCase,d as keysOf,S as klona,Ve as markOthers,C as moveAt,te as normalizeColor,w as omit,_e as parseArrayValue,ve as parseFormValue,ye as parseObjectValue,be as parsePrimitiveValue,I as pascalCase,T as pick,E as prependAt,ze as refreshIOSDetection,D as removeAt,Ne as removeFromTabOrder,Ee as removeLinks,ne as resolveColorFormat,st as resolveTreeNavigation,pe as roundToStepPrecision,re as setChannelValue,ie as setChannelValues,me as setValue,L as snakeCase,he as snapValueToStep,R as stringToPath,Be as supportsInert,O as swapAt,ae as toColorObject,Ye as toContext,Pe as tryFocusFirst,k as updateAt,A as wrapArray};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
//#region src/shared/mark-others.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Hides everything outside the given elements from assistive technology while a floating
|
|
4
|
+
* layer is open — the Base UI `markOthers` scheme (the core algorithm inlined and reworked
|
|
5
|
+
* from the `aria-hidden` package), kept dependency-free here so overlay families never need
|
|
6
|
+
* the third-party `aria-hidden` package.
|
|
7
|
+
*
|
|
8
|
+
* Mechanics:
|
|
9
|
+
* - Walks from `body` and applies a control attribute (`inert`, else `aria-hidden="true"`)
|
|
10
|
+
* to every element outside the keep set (the avoid elements and their ancestor chain).
|
|
11
|
+
* - Reference counts via WeakMaps plus a global `lockCount`, so stacked / nested layers
|
|
12
|
+
* each hold a lock and attributes are only removed when the last lock releases.
|
|
13
|
+
* - Attributes that already existed before the first lock are recorded as uncontrolled and
|
|
14
|
+
* preserved on release.
|
|
15
|
+
* - `aria-live` regions stay announced: they and their subtrees are excluded from hiding.
|
|
16
|
+
* - Shadow hosts are corrected through their shadow root; `<script>` elements are skipped.
|
|
17
|
+
* - The independent `mark` channel tags outside elements with `data-soybean-inert` for CSS
|
|
18
|
+
* hooks (dimmed background, disabled text selection) without touching the control
|
|
19
|
+
* attribute semantics.
|
|
20
|
+
*/
|
|
21
|
+
type Undo = () => void;
|
|
22
|
+
export interface MarkOthersOptions {
|
|
23
|
+
/**
|
|
24
|
+
* Apply `aria-hidden="true"` to elements outside the keep set.
|
|
25
|
+
*
|
|
26
|
+
* @defaultValue false
|
|
27
|
+
*/
|
|
28
|
+
ariaHidden?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Apply `inert` to elements outside the keep set. Takes precedence over `ariaHidden`
|
|
31
|
+
* when both are set: `inert` removes content from the accessibility tree and the tab
|
|
32
|
+
* order at once, so modal layers prefer it where the runtime supports it.
|
|
33
|
+
*
|
|
34
|
+
* @defaultValue false
|
|
35
|
+
*/
|
|
36
|
+
inert?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Tag outside elements with `data-soybean-inert` (the marker channel).
|
|
39
|
+
*
|
|
40
|
+
* @defaultValue true
|
|
41
|
+
*/
|
|
42
|
+
mark?: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Marks every element outside `avoidElements` per `options` and returns the undo function.
|
|
46
|
+
* Call the undo exactly once per `markOthers` call (usually in a cleanup hook).
|
|
47
|
+
*
|
|
48
|
+
* @param avoidElements - Elements (and their ancestor chains) that stay visible and announced.
|
|
49
|
+
* @param options - Which channels to apply: `inert`, `ariaHidden`, and/or the `mark` tag.
|
|
50
|
+
*/
|
|
51
|
+
export declare function markOthers(avoidElements: Element[], options?: MarkOthersOptions): Undo;
|
|
52
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{INERT_MARKER_ATTR as e}from"../constants/attr.js";import{isClient as t}from"./env.js";const n={inert:new WeakMap,"aria-hidden":new WeakMap},r={inert:new WeakSet,"aria-hidden":new WeakSet};let i=new WeakMap,a=0;function o(e){return typeof ShadowRoot<`u`&&e instanceof ShadowRoot}function s(e){return(e.nodeName??``).toLowerCase()}function c(e){return e?o(e)?e.host:c(e.parentNode):null}function l(e,t){return t.map(t=>{if(e.contains(t))return t;let n=c(t);return e.contains(n)?n:null}).filter(e=>e!==null)}function u(e){let t=new Set;for(let n of e){let e=n;for(;e&&!t.has(e);)t.add(e),e=e.parentNode}return t}function d(e,t){let n=[];return(e=>{if(e)for(let r of Array.from(e.children))s(r)!==`script`&&(t.has(r)||n.push(r))})(e),n}function f(e,t,i){let a=n[t],o=r[t],s=[],c=l(e,Array.from(e.querySelectorAll(`[aria-live]`))),f=[...i,...c];for(let n of d(e,u(f))){let e=n.getAttribute(t),r=e!==null&&e!==`false`,i=(a.get(n)??0)+1;a.set(n,i),s.push(n),i===1&&r&&o.add(n),r||n.setAttribute(t,t===`inert`?``:`true`)}return{hiddenElements:s,uncontrolledElementsSet:o}}function p(t,n){let r=[];for(let a of d(t,u(n))){let t=(i.get(a)??0)+1;i.set(a,t),r.push(a),t===1&&a.setAttribute(e,``)}return r}function m(t,o,s,c){return()=>{if(t){let e=n[t];for(let n of o){let r=(e.get(n)??0)-1;e.set(n,r),r===0&&(s&&!s.has(n)&&n.removeAttribute(t),s?.delete(n))}}for(let t of c){let n=(i.get(t)??0)-1;i.set(t,n),n===0&&t.removeAttribute(e)}--a,a===0&&(n.inert=new WeakMap,n[`aria-hidden`]=new WeakMap,r.inert=new WeakSet,r[`aria-hidden`]=new WeakSet,i=new WeakMap)}}function h(e,n={}){let{ariaHidden:r=!1,inert:i=!1,mark:o=!0}=n;if(!t||e.length===0)return()=>{};let s=e[0].ownerDocument.body,c=l(s,e),u=i?`inert`:r?`aria-hidden`:null;a+=1;let d=[],h=null;if(u){let e=f(s,u,c);d=e.hiddenElements,h=e.uncontrolledElementsSet}let g=o?p(s,c):[];return m(u,d,h,g)}export{h as markOthers};
|
package/dist/shared/object.d.ts
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
//#region src/shared/object.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Structured deep comparison (covers the common `ohash isEqual` semantics: objects / arrays / Date / NaN).
|
|
4
|
+
*
|
|
5
|
+
* @param a - First value
|
|
6
|
+
* @param b - Second value
|
|
7
|
+
* @returns Whether the two values are structurally equal
|
|
8
|
+
*/
|
|
9
|
+
export declare function isEqual(a: unknown, b: unknown): boolean;
|
|
10
|
+
type UnionToIntersection<U> = (U extends unknown ? (arg: U) => void : never) extends ((arg: infer I) => void) ? I : never;
|
|
11
|
+
/**
|
|
12
|
+
* Recursive defaults merge: `defu({ a: 1 }, { a: 2, b: 3 })` → `{ a: 1, b: 3 }`.
|
|
13
|
+
* Left side wins; plain objects merge recursively, arrays and other types are taken from the left side.
|
|
14
|
+
*/
|
|
15
|
+
export declare function defu<T extends object, D extends object[]>(source: T | undefined, ...defaults: D): UnionToIntersection<T | D[number]>;
|
|
16
|
+
/**
|
|
17
|
+
* Structured deep clone (JSON-cloneable values + Date), replacing `klona`.
|
|
18
|
+
*
|
|
19
|
+
* @param value - The value to clone
|
|
20
|
+
* @returns A deep clone of the value
|
|
21
|
+
*/
|
|
22
|
+
export declare function klona<T>(value: T): T;
|
|
2
23
|
/**
|
|
3
24
|
* Select specified properties from an object
|
|
4
25
|
*
|
|
@@ -6,7 +27,7 @@
|
|
|
6
27
|
* @param keys - Array of property keys to select
|
|
7
28
|
* @returns New object containing specified properties
|
|
8
29
|
*/
|
|
9
|
-
declare function pick<T extends Record<string, any>, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
|
|
30
|
+
export declare function pick<T extends Record<string, any>, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
|
|
10
31
|
/**
|
|
11
32
|
* Exclude specified properties from an object
|
|
12
33
|
*
|
|
@@ -14,8 +35,8 @@ declare function pick<T extends Record<string, any>, K extends keyof T>(obj: T,
|
|
|
14
35
|
* @param keys - Array of property keys to exclude
|
|
15
36
|
* @returns New object with specified properties excluded
|
|
16
37
|
*/
|
|
17
|
-
declare function omit<T extends Record<string, any>, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>;
|
|
18
|
-
declare function compact<T>(value: T[]): T[];
|
|
38
|
+
export declare function omit<T extends Record<string, any>, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>;
|
|
39
|
+
export declare function compact<T>(value: T[]): T[];
|
|
19
40
|
/**
|
|
20
41
|
* Remove specified element from an array
|
|
21
42
|
*
|
|
@@ -23,19 +44,19 @@ declare function compact<T>(value: T[]): T[];
|
|
|
23
44
|
* @param item - Element to remove
|
|
24
45
|
* @returns New array with element removed
|
|
25
46
|
*/
|
|
26
|
-
declare function arrayRemove<T>(array: T[], item: T): T[];
|
|
47
|
+
export declare function arrayRemove<T>(array: T[], item: T): T[];
|
|
27
48
|
/**
|
|
28
49
|
* Wraps an array around itself at a given start index Example: `wrapArray(['a', 'b', 'c', 'd'], 2) === ['c', 'd', 'a',
|
|
29
50
|
* 'b']`
|
|
30
51
|
*/
|
|
31
|
-
declare function wrapArray<T>(array: T[], startIndex: number): T[];
|
|
32
|
-
declare function appendAt<T>(data: T[], value: T): T[];
|
|
33
|
-
declare function prependAt<T>(data: T[], value: T): T[];
|
|
34
|
-
declare function removeAt<T>(data: T[], index?: number): T[];
|
|
35
|
-
declare function swapAt<T>(data: T[], indexA: number, indexB: number): void;
|
|
36
|
-
declare function moveAt<T>(data: T[], from: number, to: number): void;
|
|
37
|
-
declare function insertAt<T>(data: T[], index: number, value: T): T[];
|
|
38
|
-
declare function updateAt<T>(data: T[], index: number, value: T): T[];
|
|
52
|
+
export declare function wrapArray<T>(array: T[], startIndex: number): T[];
|
|
53
|
+
export declare function appendAt<T>(data: T[], value: T): T[];
|
|
54
|
+
export declare function prependAt<T>(data: T[], value: T): T[];
|
|
55
|
+
export declare function removeAt<T>(data: T[], index?: number): T[];
|
|
56
|
+
export declare function swapAt<T>(data: T[], indexA: number, indexB: number): void;
|
|
57
|
+
export declare function moveAt<T>(data: T[], from: number, to: number): void;
|
|
58
|
+
export declare function insertAt<T>(data: T[], index: number, value: T): T[];
|
|
59
|
+
export declare function updateAt<T>(data: T[], index: number, value: T): T[];
|
|
39
60
|
/**
|
|
40
61
|
* This is the "meat" of the typeahead matching logic. It takes in all the values, the search and the current match, and
|
|
41
62
|
* returns the next match (or `undefined`).
|
|
@@ -50,7 +71,7 @@ declare function updateAt<T>(data: T[], index: number, value: T): T[];
|
|
|
50
71
|
* otherwise it would be the first to match always and focus would never move. This is as opposed to the regular case,
|
|
51
72
|
* where we don't want focus to move if the current match still matches.
|
|
52
73
|
*/
|
|
53
|
-
declare function getNextMatch(values?: string[], search?: string, currentMatch?: string): string | undefined;
|
|
74
|
+
export declare function getNextMatch(values?: string[], search?: string, currentMatch?: string): string | undefined;
|
|
54
75
|
/**
|
|
55
76
|
* The function `findValuesBetween` takes an array and two values, then returns a subarray containing elements between
|
|
56
77
|
* the first occurrence of the start value and the first occurrence of the end value in the array.
|
|
@@ -65,10 +86,9 @@ declare function getNextMatch(values?: string[], search?: string, currentMatch?:
|
|
|
65
86
|
* `start` and `end` values (inclusive). If either the `start` or `end` values are not found in the input array, an
|
|
66
87
|
* empty array is returned.
|
|
67
88
|
*/
|
|
68
|
-
declare function findValuesBetween<T>(array: T[], start: T, end: T): T[];
|
|
69
|
-
declare function flattenChildren<T extends {
|
|
89
|
+
export declare function findValuesBetween<T>(array: T[], start: T, end: T): T[];
|
|
90
|
+
export declare function flattenChildren<T extends {
|
|
70
91
|
children?: any[];
|
|
71
92
|
}>(items?: T[]): Omit<T, "children">[];
|
|
72
|
-
declare function chunk<T>(array: T[], size: number): T[][];
|
|
73
|
-
//#endregion
|
|
74
|
-
export { appendAt, arrayRemove, chunk, compact, findValuesBetween, flattenChildren, getNextMatch, insertAt, moveAt, omit, pick, prependAt, removeAt, swapAt, updateAt, wrapArray };
|
|
93
|
+
export declare function chunk<T>(array: T[], size: number): T[][];
|
|
94
|
+
//#endregion
|
package/dist/shared/object.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{isObject as e}from"./guard.js";function t(n,r){if(n===r)return!0;if(typeof n==`number`&&typeof r==`number`)return Number.isNaN(n)&&Number.isNaN(r);if(n instanceof Date&&r instanceof Date)return n.getTime()===r.getTime();if(Array.isArray(n)&&Array.isArray(r))return n.length===r.length&&n.every((e,n)=>t(e,r[n]));if(e(n)&&e(r)){let e=Object.keys(n),i=Object.keys(r);return e.length===i.length&&e.every(e=>e in r&&t(n[e],r[e]))}return!1}function n(t,...r){let i={};for(let a of[t,...r])if(e(a))for(let t of Object.keys(a)){let r=a[t],o=i[t];o===void 0?i[t]=r:e(o)&&e(r)&&(i[t]=n(o,r))}return i}function r(t){if(t instanceof Date)return new Date(t.getTime());if(Array.isArray(t))return t.map(e=>r(e));if(e(t)){let e={};for(let n of Object.keys(t))e[n]=r(t[n]);return e}return t}function i(e,t){let n={};for(let r of t)n[r]=e[r];return n}function a(e,t){let n={};for(let r in e){let i=r;t.includes(i)||(n[i]=e[i])}return n}function o(e){return Array.isArray(e)?e.filter(Boolean):[]}function s(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function c(e,t){if(e.length===0)return[];let n=(t%e.length+e.length)%e.length;return e.map((t,r)=>e[(n+r)%e.length])}function l(e,t){return[...e,t]}function u(e,t){return[t,...e]}function d(e,t){if(t===void 0)return[];let n=[...e];return n.splice(t,1),n}function f(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function p(e,t,n){let[r]=e.splice(t,1);e.splice(n,0,r)}function m(e,t,n){return[...e.slice(0,t),n,...e.slice(t)]}function h(e,t,n){let r=[...e];return r[t]=n,r}function g(e,t,n){if(!e?.length||!t)return;let r=t.length>1&&t[0]?.repeat(t.length)===t?t[0]:t,i=r.toLowerCase(),a=r.length===1,o=n?e.indexOf(n):-1,s=Math.max(o,0),c=e.length;for(let t=0;t<c;t++){let r=e[(s+t)%c];if((!a||r!==n)&&r?.toLowerCase().startsWith(i))return r===n?void 0:r}}function _(e,n,r){let i=e.findIndex(e=>t(e,n)),a=e.findIndex(e=>t(e,r));if(i===-1||a===-1)return[];let[o,s]=[i,a].sort((e,t)=>e-t);return e.slice(o,s+1)}function v(e){return e?e.reduce((e,t)=>(e.push(t),t.children&&e.push(...v(t.children)),e),[]):[]}function y(e,t){if(t<=0)throw RangeError(`chunk size must be greater than 0`);let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}export{l as appendAt,s as arrayRemove,y as chunk,o as compact,n as defu,_ as findValuesBetween,v as flattenChildren,g as getNextMatch,m as insertAt,t as isEqual,r as klona,p as moveAt,a as omit,i as pick,u as prependAt,d as removeAt,f as swapAt,h as updateAt,c as wrapArray};
|
package/dist/shared/string.d.ts
CHANGED
|
@@ -1,22 +1,34 @@
|
|
|
1
1
|
//#region src/shared/string.d.ts
|
|
2
|
+
export declare function capitalize(str: string): string;
|
|
3
|
+
/** 'helloWorld' | 'hello_world' | 'Hello World' | 'SButton' → 'hello-world' | 's-button' */
|
|
4
|
+
export declare function kebabCase(str: string): string;
|
|
5
|
+
/**
|
|
6
|
+
* 'hello-world' | 'hello_world' | 'hello world' | 'SButton' | 'HTTPRequest' → 'HelloWorld' | 'SButton' | 'HTTPRequest'
|
|
7
|
+
*
|
|
8
|
+
* Splits on both separators and camel-case boundaries so already-cased names
|
|
9
|
+
* (e.g. 'SButton', 'AccordionRoot') keep their inner capitals.
|
|
10
|
+
*/
|
|
11
|
+
export declare function pascalCase(str: string): string;
|
|
12
|
+
/** 'hello-world' | 'hello_world' | 'Hello World' → 'helloWorld' */
|
|
13
|
+
export declare function camelCase(str: string): string;
|
|
14
|
+
export declare function snakeCase(str: string): string;
|
|
2
15
|
/**
|
|
3
16
|
* Convert string to path
|
|
4
17
|
*
|
|
5
18
|
* @param str - The string to convert
|
|
6
19
|
* @returns Path
|
|
7
20
|
*/
|
|
8
|
-
declare function stringToPath(str: string): string[];
|
|
21
|
+
export declare function stringToPath(str: string): string[];
|
|
9
22
|
/**
|
|
10
23
|
* Check if string is a key
|
|
11
24
|
*
|
|
12
25
|
* @param str - The string to check
|
|
13
26
|
* @returns Whether the string is a key
|
|
14
27
|
*/
|
|
15
|
-
declare function isKey(str: string): boolean;
|
|
28
|
+
export declare function isKey(str: string): boolean;
|
|
16
29
|
/**
|
|
17
30
|
* Replace `{key}` placeholders in a template string with values from `params`.
|
|
18
31
|
* Unknown keys are left as-is.
|
|
19
32
|
*/
|
|
20
|
-
declare function interpolate(template: string, params: Record<string, string>): string;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { interpolate, isKey, stringToPath };
|
|
33
|
+
export declare function interpolate(template: string, params: Record<string, string>): string;
|
|
34
|
+
//#endregion
|
package/dist/shared/string.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{compact as e}from"./object.js";function t(t){return e(t.replace(/["|']|\]/g,``).split(/\.|\[/))}function
|
|
1
|
+
import{compact as e}from"./object.js";function t(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}function n(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).replace(/([A-Z]+)([A-Z][a-z])/g,`$1-$2`).replace(/[\s_]+/g,`-`).replace(/-+/g,`-`).replace(/^-|-$/g,``).toLowerCase()}function r(e){return(e.match(/[A-Z]{2,}(?=[A-Z][a-z]+|\b)|[A-Z]?[a-z]+|[A-Z]|\d+/g)??[]).map(e=>t(e)).join(``)}function i(e){let t=r(e);return t.charAt(0).toLowerCase()+t.slice(1)}function a(e){return n(e).replace(/-/g,`_`)}function o(t){return e(t.replace(/["|']|\]/g,``).split(/\.|\[/))}function s(e){return/^\w*$/.test(e)}function c(e,t){return e.replace(/\{(\w+)\}/g,(e,n)=>t[n]??e)}export{i as camelCase,t as capitalize,c as interpolate,s as isKey,n as kebabCase,r as pascalCase,a as snakeCase,o as stringToPath};
|
|
@@ -2,29 +2,28 @@ import { DateStep, HourCycle, TimeGranularity, TimeMatcher, TimeValue } from "..
|
|
|
2
2
|
import { Formatter } from "../date/formatter.js";
|
|
3
3
|
import "../date/index.js";
|
|
4
4
|
//#region src/shared/time-picker.d.ts
|
|
5
|
-
interface TimePickerOption {
|
|
5
|
+
export interface TimePickerOption {
|
|
6
6
|
value: TimeValue;
|
|
7
7
|
label: string;
|
|
8
8
|
key: string;
|
|
9
9
|
}
|
|
10
|
-
interface FormatTimeValueProps {
|
|
10
|
+
export interface FormatTimeValueProps {
|
|
11
11
|
formatter: Formatter;
|
|
12
12
|
granularity: TimeGranularity;
|
|
13
13
|
hideTimeZone?: boolean;
|
|
14
14
|
hourCycle?: HourCycle;
|
|
15
15
|
value: TimeValue;
|
|
16
16
|
}
|
|
17
|
-
interface CreateTimeOptionsProps extends Omit<FormatTimeValueProps, 'value'> {
|
|
17
|
+
export interface CreateTimeOptionsProps extends Omit<FormatTimeValueProps, 'value'> {
|
|
18
18
|
isTimeUnavailable?: TimeMatcher;
|
|
19
19
|
maxValue?: TimeValue;
|
|
20
20
|
minValue?: TimeValue;
|
|
21
21
|
reference: TimeValue;
|
|
22
22
|
step?: DateStep;
|
|
23
23
|
}
|
|
24
|
-
declare function compareTimeValues(a: TimeValue, b: TimeValue): number;
|
|
25
|
-
declare function isTimeBetweenInclusive(date: TimeValue, start: TimeValue, end: TimeValue): boolean;
|
|
26
|
-
declare function formatTimeValue(props: FormatTimeValueProps): string;
|
|
27
|
-
declare function createTimeOptions(props: CreateTimeOptionsProps): TimePickerOption[];
|
|
28
|
-
declare function findClosestTimeOption(options: TimePickerOption[], value: TimeValue | undefined): TimePickerOption;
|
|
29
|
-
//#endregion
|
|
30
|
-
export { CreateTimeOptionsProps, FormatTimeValueProps, TimePickerOption, compareTimeValues, createTimeOptions, findClosestTimeOption, formatTimeValue, isTimeBetweenInclusive };
|
|
24
|
+
export declare function compareTimeValues(a: TimeValue, b: TimeValue): number;
|
|
25
|
+
export declare function isTimeBetweenInclusive(date: TimeValue, start: TimeValue, end: TimeValue): boolean;
|
|
26
|
+
export declare function formatTimeValue(props: FormatTimeValueProps): string;
|
|
27
|
+
export declare function createTimeOptions(props: CreateTimeOptionsProps): TimePickerOption[];
|
|
28
|
+
export declare function findClosestTimeOption(options: TimePickerOption[], value: TimeValue | undefined): TimePickerOption;
|
|
29
|
+
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isAfter as e,isAfterOrSame as t,isBefore as n,isBeforeOrSame as r,isEqualValue as i,isTime as a,isZonedDateTime as o}from"../date/comparators.js";import{getOptsByGranularity as s}from"../date/utils.js";
|
|
1
|
+
import{isAfter as e,isAfterOrSame as t,isBefore as n,isBeforeOrSame as r,isEqualValue as i,isTime as a,isZonedDateTime as o}from"../date/comparators.js";import{getOptsByGranularity as s}from"../date/utils.js";function c(t,r){return n(t,r)?-1:+!!e(t,r)}function l(e,n,i){return t(e,n)&&r(e,i)}function u(e){return e.formatter.toParts(e.value,s(e.granularity,e.hourCycle,!0)).filter(t=>t.type!==`timeZoneName`||!e.hideTimeZone&&!a(e.value)&&o(e.value)).map(e=>e.value).join(``)}function d(t){let r=p(t.granularity,t.step),i=Math.ceil(86400/r);return Array.from({length:i},(e,n)=>{let i=n*r,a=Math.floor(i/3600)%24,o=Math.floor(i%3600/60),s=i%60,c=t.reference.set({hour:a,minute:o,second:s,millisecond:0});return{value:c,label:u({formatter:t.formatter,granularity:t.granularity,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,value:c}),key:c.toString()}}).filter(r=>!(t.minValue&&n(r.value,t.minValue)||t.maxValue&&e(r.value,t.maxValue)||t.isTimeUnavailable?.(r.value)))}function f(e,t){return t?e.find(e=>i(e.value,t))??e[0]:e[0]}function p(e,t){let n=(t?.hour??0)*3600+(t?.minute??0)*60+(t?.second??0);return n>0?n:e===`hour`?3600:e===`second`?30:1800}export{c as compareTimeValues,d as createTimeOptions,f as findClosestTimeOption,u as formatTimeValue,l as isTimeBetweenInclusive};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Direction } from "../types/common.js";
|
|
2
|
+
import "../types/index.js";
|
|
3
|
+
//#region src/shared/tree-navigation.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* A single visible node of a tree flattened for keyboard navigation.
|
|
6
|
+
*
|
|
7
|
+
* Only nodes that are currently rendered (every ancestor branch expanded) take
|
|
8
|
+
* part in navigation, aligned with the WAI-ARIA tree pattern.
|
|
9
|
+
*/
|
|
10
|
+
export interface TreeNavigationNode {
|
|
11
|
+
/** Unique value of the node. */
|
|
12
|
+
value: string;
|
|
13
|
+
/** Depth of the node inside the visible tree (0 = root level). */
|
|
14
|
+
level: number;
|
|
15
|
+
/** Whether the node renders children. */
|
|
16
|
+
hasChildren: boolean;
|
|
17
|
+
/** Whether the node's children are currently expanded. */
|
|
18
|
+
expanded: boolean;
|
|
19
|
+
/** Whether the node cannot receive focus. */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Logical navigation keys of a tree.
|
|
24
|
+
*
|
|
25
|
+
* `left`/`right` are the physical keys; RTL mapping happens inside
|
|
26
|
+
* `resolveTreeNavigation` so callers can forward the raw event key.
|
|
27
|
+
*/
|
|
28
|
+
export type TreeNavigationKey = 'up' | 'down' | 'left' | 'right' | 'home' | 'end';
|
|
29
|
+
/**
|
|
30
|
+
* Result of resolving a tree navigation key.
|
|
31
|
+
*
|
|
32
|
+
* - `targetValue`: move focus to the node carrying this value.
|
|
33
|
+
* - `toggleExpand`: expand or collapse the current node instead of moving focus.
|
|
34
|
+
*/
|
|
35
|
+
export interface TreeNavigationResult {
|
|
36
|
+
targetValue?: string;
|
|
37
|
+
toggleExpand?: boolean;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Extract the logical tree navigation key from a keyboard event.
|
|
41
|
+
*
|
|
42
|
+
* Returns `null` for every non-navigation key so callers can bail out early.
|
|
43
|
+
*/
|
|
44
|
+
export declare function getTreeNavigationKey(event: KeyboardEvent): TreeNavigationKey | null;
|
|
45
|
+
/**
|
|
46
|
+
* Resolve a tree navigation key against the flattened visible tree.
|
|
47
|
+
*
|
|
48
|
+
* Rules follow the WAI-ARIA APG tree pattern:
|
|
49
|
+
*
|
|
50
|
+
* - `up`/`down`: move to the previous/next visible node, skipping disabled
|
|
51
|
+
* nodes, without wrapping around.
|
|
52
|
+
* - `right` (or `left` in RTL): closed branches expand (focus stays); expanded
|
|
53
|
+
* branches move focus to their first focusable child; leaves are no-ops.
|
|
54
|
+
* - `left` (or `right` in RTL): expanded branches collapse; leaves and closed
|
|
55
|
+
* branches move focus to the parent; root-level nodes are no-ops.
|
|
56
|
+
* - `home`/`end`: move to the first/last focusable visible node.
|
|
57
|
+
*/
|
|
58
|
+
export declare function resolveTreeNavigation(nodes: TreeNavigationNode[], currentValue: string, key: TreeNavigationKey, dir?: Direction): TreeNavigationResult | null;
|
|
59
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={ArrowUp:`up`,ArrowDown:`down`,ArrowLeft:`left`,ArrowRight:`right`,Home:`home`,End:`end`};function t(t){return e[t.key]??null}function n(e,t,n){for(let r=t;r>=0&&r<e.length;r+=n){let t=e[r];if(!t.disabled)return t.value}}function r(e,t){let n=e[t];for(let r=t+1;r<e.length;r+=1){let t=e[r];if(t.level<=n.level)return;if(t.level===n.level+1&&!t.disabled)return t.value}}function i(e,t){let n=e[t];for(let r=t-1;r>=0;--r){let t=e[r];if(t.level<n.level-1)return;if(t.level===n.level-1)return t.disabled?void 0:t.value}}function a(e,t,a,o=`ltr`){let s=e.findIndex(e=>e.value===t);if(s===-1)return null;let c=e[s];switch(a){case`up`:{let t=n(e,s-1,-1);return t?{targetValue:t}:null}case`down`:{let t=n(e,s+1,1);return t?{targetValue:t}:null}case`home`:{let t=n(e,0,1);return t?{targetValue:t}:null}case`end`:{let t=n(e,e.length-1,-1);return t?{targetValue:t}:null}default:{if(o===`rtl`?a===`left`:a===`right`){if(!c.hasChildren)return null;if(!c.expanded)return{toggleExpand:!0};let t=r(e,s);return t?{targetValue:t}:null}if(c.hasChildren&&c.expanded)return{toggleExpand:!0};let t=i(e,s);return t?{targetValue:t}:null}}}export{t as getTreeNavigationKey,a as resolveTreeNavigation};
|
package/dist/shared/tree.d.ts
CHANGED
|
@@ -7,6 +7,5 @@ interface BaseTree<T extends DefinedValue = DefinedValue> {
|
|
|
7
7
|
type Tree<T extends DefinedValue = DefinedValue, S extends BaseTree<T> = BaseTree<T>> = BaseTree<T> & {
|
|
8
8
|
children?: S[];
|
|
9
9
|
};
|
|
10
|
-
declare function getTreePaths<T extends DefinedValue = DefinedValue, S extends BaseTree<T> = BaseTree<T>>(targetValue: T, items: Tree<T, S>[]): T[];
|
|
11
|
-
//#endregion
|
|
12
|
-
export { getTreePaths };
|
|
10
|
+
export declare function getTreePaths<T extends DefinedValue = DefinedValue, S extends BaseTree<T> = BaseTree<T>>(targetValue: T, items: Tree<T, S>[]): T[];
|
|
11
|
+
//#endregion
|
package/dist/shared/value.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CheckedState, DefinedValue, MaybeArray } from "../types/common.js";
|
|
2
2
|
import "../types/index.js";
|
|
3
3
|
//#region src/shared/value.d.ts
|
|
4
|
-
declare function isIndeterminate(checked?: CheckedState | null): checked is 'indeterminate';
|
|
5
|
-
declare function getCheckedState(checked?: CheckedState | null): "checked" | "unchecked" | "indeterminate";
|
|
6
|
-
declare function getBinaryCheckedState(checked?: CheckedState | null): "checked" | "unchecked";
|
|
4
|
+
export declare function isIndeterminate(checked?: CheckedState | null): checked is 'indeterminate';
|
|
5
|
+
export declare function getCheckedState(checked?: CheckedState | null): "checked" | "unchecked" | "indeterminate";
|
|
6
|
+
export declare function getBinaryCheckedState(checked?: CheckedState | null): "checked" | "unchecked";
|
|
7
7
|
/**
|
|
8
8
|
* Check if value is enabled based on single or multiple selection mode
|
|
9
9
|
*
|
|
@@ -12,14 +12,14 @@ declare function getBinaryCheckedState(checked?: CheckedState | null): "checked"
|
|
|
12
12
|
* @param isSingle - Whether it's single selection mode
|
|
13
13
|
* @returns Whether it's enabled
|
|
14
14
|
*/
|
|
15
|
-
declare function getOpenFromSingleOrMultiple(value: DefinedValue, modelValue: MaybeArray<DefinedValue> | undefined, isMultiple: boolean): boolean;
|
|
15
|
+
export declare function getOpenFromSingleOrMultiple(value: DefinedValue, modelValue: MaybeArray<DefinedValue> | undefined, isMultiple: boolean): boolean;
|
|
16
16
|
/**
|
|
17
17
|
* Return corresponding string based on open state
|
|
18
18
|
*
|
|
19
19
|
* @param open - Whether it's open
|
|
20
20
|
* @returns 'open' or 'closed'
|
|
21
21
|
*/
|
|
22
|
-
declare function getDisclosureState(open?: boolean): "open" | "closed";
|
|
22
|
+
export declare function getDisclosureState(open?: boolean): "open" | "closed";
|
|
23
23
|
/**
|
|
24
24
|
* The `clamp` function restricts a number within a specified range by returning the value itself if it falls within the
|
|
25
25
|
* range, or the closest boundary value if it exceeds the range.
|
|
@@ -31,7 +31,7 @@ declare function getDisclosureState(open?: boolean): "open" | "closed";
|
|
|
31
31
|
* @param {number} max - If the `value` parameter is greater than the `max` value, the function will return `max`.
|
|
32
32
|
* @returns The `clamp` function returns the value of `value` constrained within the range defined by `min` and `max`.
|
|
33
33
|
*/
|
|
34
|
-
declare function clamp(value: number, min?: number, max?: number): number;
|
|
34
|
+
export declare function clamp(value: number, min?: number, max?: number): number;
|
|
35
35
|
/**
|
|
36
36
|
* The function `roundToStepPrecision` rounds a number to a specified precision step.
|
|
37
37
|
*
|
|
@@ -41,7 +41,7 @@ declare function clamp(value: number, min?: number, max?: number): number;
|
|
|
41
41
|
* you want to round the `value`. For example, if `step` is 0.5, the `value` will be rounded to the nearest half.
|
|
42
42
|
* @returns the `roundedValue` after rounding it to the precision specified by the `step`.
|
|
43
43
|
*/
|
|
44
|
-
declare function roundToStepPrecision(value: number, step: number): number;
|
|
44
|
+
export declare function roundToStepPrecision(value: number, step: number): number;
|
|
45
45
|
/**
|
|
46
46
|
* The function `snapValueToStep` snaps a given value to the nearest step within a specified range.
|
|
47
47
|
*
|
|
@@ -57,8 +57,7 @@ declare function roundToStepPrecision(value: number, step: number): number;
|
|
|
57
57
|
* @returns a number that has been snapped to the nearest step value within the specified range of minimum and maximum
|
|
58
58
|
* values.
|
|
59
59
|
*/
|
|
60
|
-
declare function snapValueToStep(value: number, min: number | undefined, max: number | undefined, step: number): number;
|
|
61
|
-
declare function setValue(obj: Record<string, any>, path: string, value?: any): Record<string, any>;
|
|
62
|
-
declare function getValue<T>(obj: T, path: string, defaultValue?: unknown): any;
|
|
63
|
-
//#endregion
|
|
64
|
-
export { clamp, getBinaryCheckedState, getCheckedState, getDisclosureState, getOpenFromSingleOrMultiple, getValue, isIndeterminate, roundToStepPrecision, setValue, snapValueToStep };
|
|
60
|
+
export declare function snapValueToStep(value: number, min: number | undefined, max: number | undefined, step: number): number;
|
|
61
|
+
export declare function setValue(obj: Record<string, any>, path: string, value?: any): Record<string, any>;
|
|
62
|
+
export declare function getValue<T>(obj: T, path: string, defaultValue?: unknown): any;
|
|
63
|
+
//#endregion
|
package/dist/shared/vue.d.ts
CHANGED
|
@@ -1,14 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ToContext, VNodeRef } from "../types/vue.js";
|
|
2
2
|
import "../types/index.js";
|
|
3
3
|
import { MaybeRefOrGetter, VNode } from "vue";
|
|
4
4
|
//#region src/shared/vue.d.ts
|
|
5
|
-
declare function getLifeCycleTarget(target?: any): any;
|
|
6
|
-
declare function getRawChildren(children: VNode[]): VNode[];
|
|
7
|
-
declare function getElFromTemplateRef<T extends HTMLElement>(nodeRef: VNodeRef): T | undefined;
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
export declare function getLifeCycleTarget(target?: any): any;
|
|
6
|
+
export declare function getRawChildren(children: VNode[]): VNode[];
|
|
7
|
+
export declare function getElFromTemplateRef<T extends HTMLElement>(nodeRef: VNodeRef): T | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Builds a reactive context value map (`ComputedRef` per key) from a source object.
|
|
10
|
+
*
|
|
11
|
+
* `source` accepts anything `toValue` understands — a reactive object such as `props`, a
|
|
12
|
+
* ref / computed of an object, or a getter returning one. Values are taken as-is, so a
|
|
13
|
+
* function-valued key stays a function in the context. Keys default to every own key of
|
|
14
|
+
* the resolved source.
|
|
15
|
+
*/
|
|
16
|
+
export declare function toContext<T extends object, K extends keyof T = keyof T>(source: MaybeRefOrGetter<T>, keys?: K[]): ToContext<T, K>;
|
|
17
|
+
/**
|
|
18
|
+
* Snapshots a `toContext`-built context back into plain values (all own keys by default).
|
|
19
|
+
* A nullish context yields an empty object, whose missing keys behave like `undefined`
|
|
20
|
+
* ones in `defu` resolution chains.
|
|
21
|
+
*/
|
|
22
|
+
export declare function fromContext<T extends object, K extends keyof T = keyof T>(context: ToContext<T, K> | null | undefined, keys?: K[]): Partial<T>;
|
|
23
|
+
export declare function isFormControl(el?: HTMLElement | null): boolean;
|
|
10
24
|
type RefToValue<T extends MaybeRefOrGetter> = T extends MaybeRefOrGetter<infer V> ? V : never;
|
|
11
|
-
declare const getMergedRefsValue: <T extends Record<string, MaybeRefOrGetter>>(refs: T) => { [K in keyof T]: RefToValue<T[K]>; };
|
|
12
|
-
declare const getVueBooleanCasting: (value?: boolean | "") => boolean;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { getElFromTemplateRef, getLifeCycleTarget, getMergedRefsValue, getRawChildren, getVueBooleanCasting, isFormControl, transformPropsToContext };
|
|
25
|
+
export declare const getMergedRefsValue: <T extends Record<string, MaybeRefOrGetter>>(refs: T) => { [K in keyof T]: RefToValue<T[K]>; };
|
|
26
|
+
export declare const getVueBooleanCasting: (value?: boolean | "") => boolean;
|
|
27
|
+
//#endregion
|
package/dist/shared/vue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Comment as e,Fragment as t,computed as n,getCurrentInstance as r,toValue as i}from"vue";const a={KEYED_FRAGMENT:128,BAIL:-2};function o(e){return e||r()}function s(n){let r=[],i=0;for(let o=0;o<n.length;o++){let c=n[o];c.type===t?((c.patchFlag??0)===a.KEYED_FRAGMENT&&i++,r=r.concat(s(c.children))):c.type!==e&&r.push(c)}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=a.BAIL;return r}function c(e){let t=e?.$el??e;return t&&t.nodeType!==1&&(t=void 0),t}function l(e,t){return(t??Object.keys(e)).reduce((t,r)=>(t[r]=n(()=>
|
|
1
|
+
import{Comment as e,Fragment as t,computed as n,getCurrentInstance as r,toValue as i}from"vue";const a={KEYED_FRAGMENT:128,BAIL:-2};function o(e){return e||r()}function s(n){let r=[],i=0;for(let o=0;o<n.length;o++){let c=n[o];c.type===t?((c.patchFlag??0)===a.KEYED_FRAGMENT&&i++,r=r.concat(s(c.children))):c.type!==e&&r.push(c)}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=a.BAIL;return r}function c(e){let t=e?.$el??e;return t&&t.nodeType!==1&&(t=void 0),t}function l(e,t){return(t??Object.keys(i(e))).reduce((t,r)=>(t[r]=n(()=>i(e)[r]),t),{})}function u(e,t){return e?(t??Object.keys(e)).reduce((t,n)=>(t[n]=e[n].value,t),{}):{}}function d(e){return!e||`classList`in e&&e.classList.contains(`form`)}const f=e=>{let t={};for(let n in e)t[n]=i(e[n]);return t},p=e=>!!e||e===``;export{u as fromContext,c as getElFromTemplateRef,o as getLifeCycleTarget,f as getMergedRefsValue,s as getRawChildren,p as getVueBooleanCasting,d as isFormControl,l as toContext};
|
package/dist/types/color.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { AnyColor, HslColor, HsvColor, OklchColor, RgbColor } from "@soybeanjs/colord";
|
|
2
2
|
//#region src/types/color.d.ts
|
|
3
|
-
type ColorValue = AnyColor;
|
|
4
|
-
type ColorFormat = 'hex' | 'rgb' | 'hsl' | 'oklch';
|
|
5
|
-
type ColorSpace = 'hsl' | 'hsv' | 'oklch';
|
|
6
|
-
type ColorObjectSpace = 'rgb' | ColorSpace;
|
|
7
|
-
type ColorChannel = 'hue' | 'saturation' | 'lightness' | 'brightness' | 'red' | 'green' | 'blue' | 'alpha' | 'chroma';
|
|
8
|
-
interface ColorChannelRange {
|
|
3
|
+
export type ColorValue = AnyColor;
|
|
4
|
+
export type ColorFormat = 'hex' | 'rgb' | 'hsl' | 'oklch';
|
|
5
|
+
export type ColorSpace = 'hsl' | 'hsv' | 'oklch';
|
|
6
|
+
export type ColorObjectSpace = 'rgb' | ColorSpace;
|
|
7
|
+
export type ColorChannel = 'hue' | 'saturation' | 'lightness' | 'brightness' | 'red' | 'green' | 'blue' | 'alpha' | 'chroma';
|
|
8
|
+
export interface ColorChannelRange {
|
|
9
9
|
min: number;
|
|
10
10
|
max: number;
|
|
11
11
|
step: number;
|
|
12
12
|
}
|
|
13
|
-
type NormalizedColor = RgbColor | HslColor | HsvColor | OklchColor;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { ColorChannel, ColorChannelRange, ColorFormat, ColorObjectSpace, ColorSpace, ColorValue, NormalizedColor };
|
|
13
|
+
export type NormalizedColor = RgbColor | HslColor | HsvColor | OklchColor;
|
|
14
|
+
//#endregion
|