ropav 0.16.0 → 0.16.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/dist/components/accordion/accordion-body.js +1 -2
- package/dist/components/accordion/accordion-heading.js +1 -2
- package/dist/components/accordion/accordion-indicator.js +1 -2
- package/dist/components/accordion/accordion-item.js +1 -2
- package/dist/components/accordion/accordion-panel.js +1 -2
- package/dist/components/accordion/accordion-root.js +1 -2
- package/dist/components/accordion/accordion-trigger.js +1 -2
- package/dist/components/accordion/accordion.context.js +1 -2
- package/dist/components/alert/alert-content.js +1 -2
- package/dist/components/alert/alert-description.js +1 -2
- package/dist/components/alert/alert-indicator.js +1 -2
- package/dist/components/alert/alert-root.js +1 -2
- package/dist/components/alert/alert-title.js +1 -2
- package/dist/components/alert/alert.context.js +1 -2
- package/dist/components/alert-dialog/alert-dialog-backdrop.js +1 -2
- package/dist/components/alert-dialog/alert-dialog-body.js +1 -2
- package/dist/components/alert-dialog/alert-dialog-close-trigger.js +1 -2
- package/dist/components/alert-dialog/alert-dialog-close.js +1 -2
- package/dist/components/alert-dialog/alert-dialog-container.js +1 -2
- package/dist/components/alert-dialog/alert-dialog-dialog.js +1 -2
- package/dist/components/alert-dialog/alert-dialog-footer.js +1 -2
- package/dist/components/alert-dialog/alert-dialog-header.js +1 -2
- package/dist/components/alert-dialog/alert-dialog-heading.js +1 -2
- package/dist/components/alert-dialog/alert-dialog-icon.js +1 -2
- package/dist/components/alert-dialog/alert-dialog-root.js +1 -2
- package/dist/components/alert-dialog/alert-dialog-trigger.js +21 -13
- package/dist/components/alert-dialog/alert-dialog.context.js +1 -2
- package/dist/components/autocomplete/autocomplete-clear-button.js +1 -2
- package/dist/components/autocomplete/autocomplete-filter.js +1 -2
- package/dist/components/autocomplete/autocomplete-indicator.js +24 -16
- package/dist/components/autocomplete/autocomplete-popover.js +1 -2
- package/dist/components/autocomplete/autocomplete-root.js +1 -2
- package/dist/components/autocomplete/autocomplete-trigger.js +1 -2
- package/dist/components/autocomplete/autocomplete-value.js +1 -2
- package/dist/components/autocomplete/autocomplete.context.js +1 -2
- package/dist/components/avatar/avatar-fallback.js +1 -2
- package/dist/components/avatar/avatar-image.js +1 -2
- package/dist/components/avatar/avatar-root.js +1 -2
- package/dist/components/avatar/avatar.context.js +1 -2
- package/dist/components/avatar-group/avatar-group-overflow.js +2 -3
- package/dist/components/avatar-group/avatar-group-root.js +1 -2
- package/dist/components/avatar-group/avatar-group.context.js +1 -2
- package/dist/components/badge/badge-anchor.js +1 -2
- package/dist/components/badge/badge-auto-label.js +1 -2
- package/dist/components/badge/badge-label.js +1 -2
- package/dist/components/badge/badge-root.js +1 -2
- package/dist/components/breadcrumbs/breadcrumbs-item.js +1 -2
- package/dist/components/breadcrumbs/breadcrumbs-root.js +1 -2
- package/dist/components/breadcrumbs/breadcrumbs.context.js +1 -2
- package/dist/components/button/button-root.js +21 -14
- package/dist/components/button-group/button-group-root.js +1 -2
- package/dist/components/button-group/button-group-separator.js +1 -2
- package/dist/components/button-group/button-group.context.js +1 -2
- package/dist/components/calendar/calendar-cell-indicator.js +1 -2
- package/dist/components/calendar/calendar-cell.js +38 -29
- package/dist/components/calendar/calendar-grid-body.js +1 -2
- package/dist/components/calendar/calendar-grid-header.js +1 -2
- package/dist/components/calendar/calendar-grid.js +17 -18
- package/dist/components/calendar/calendar-header-cell.js +1 -2
- package/dist/components/calendar/calendar-header.js +1 -2
- package/dist/components/calendar/calendar-heading.js +1 -2
- package/dist/components/calendar/calendar-nav-button.js +15 -10
- package/dist/components/calendar/calendar-root.js +1 -2
- package/dist/components/calendar/calendar.context.js +1 -2
- package/dist/components/calendar-year-picker/calendar-year-picker-cell.js +1 -2
- package/dist/components/calendar-year-picker/calendar-year-picker-grid-body.js +1 -2
- package/dist/components/calendar-year-picker/calendar-year-picker-grid.js +1 -2
- package/dist/components/calendar-year-picker/calendar-year-picker-trigger-heading.js +1 -2
- package/dist/components/calendar-year-picker/calendar-year-picker-trigger-indicator.js +1 -2
- package/dist/components/calendar-year-picker/calendar-year-picker-trigger.js +1 -2
- package/dist/components/calendar-year-picker/calendar-year-picker.context.js +1 -2
- package/dist/components/card/card-content.js +1 -2
- package/dist/components/card/card-description.js +1 -2
- package/dist/components/card/card-footer.js +1 -2
- package/dist/components/card/card-header.js +1 -2
- package/dist/components/card/card-root.js +1 -2
- package/dist/components/card/card-title.js +1 -2
- package/dist/components/checkbox/checkbox-content.js +1 -2
- package/dist/components/checkbox/checkbox-control.js +1 -2
- package/dist/components/checkbox/checkbox-indicator.js +1 -2
- package/dist/components/checkbox/checkbox-root.js +1 -2
- package/dist/components/checkbox/checkbox.context.js +1 -2
- package/dist/components/checkbox-group/checkbox-group-root.js +1 -2
- package/dist/components/checkbox-group/checkbox-group.context.js +1 -2
- package/dist/components/chip/chip-auto-label.js +1 -2
- package/dist/components/chip/chip-label.js +1 -2
- package/dist/components/chip/chip-root.js +1 -2
- package/dist/components/close-button/close-button-root.js +21 -14
- package/dist/components/color-area/color-area-root.js +3 -3
- package/dist/components/color-area/color-area-thumb.js +19 -15
- package/dist/components/color-area/color-area.context.js +1 -2
- package/dist/components/color-field/color-field-root.js +1 -2
- package/dist/components/color-input-group/color-input-group-input.js +21 -14
- package/dist/components/color-input-group/color-input-group-prefix.js +1 -2
- package/dist/components/color-input-group/color-input-group-root.js +1 -2
- package/dist/components/color-input-group/color-input-group-suffix.js +1 -2
- package/dist/components/color-input-group/color-input-group.context.js +1 -2
- package/dist/components/color-picker/color-picker-popover.js +1 -2
- package/dist/components/color-picker/color-picker-root.js +1 -2
- package/dist/components/color-picker/color-picker-trigger.js +21 -13
- package/dist/components/color-picker/color-picker.context.js +1 -2
- package/dist/components/color-slider/color-slider-output.js +1 -2
- package/dist/components/color-slider/color-slider-root.js +1 -2
- package/dist/components/color-slider/color-slider-thumb.js +7 -5
- package/dist/components/color-slider/color-slider-track.js +4 -5
- package/dist/components/color-slider/color-slider.context.js +1 -2
- package/dist/components/color-swatch/color-swatch-root.js +1 -2
- package/dist/components/color-swatch-picker/color-swatch-picker-indicator.js +1 -2
- package/dist/components/color-swatch-picker/color-swatch-picker-item.js +1 -2
- package/dist/components/color-swatch-picker/color-swatch-picker-root.js +1 -2
- package/dist/components/color-swatch-picker/color-swatch-picker-swatch.js +1 -2
- package/dist/components/color-swatch-picker/color-swatch-picker.context.js +1 -2
- package/dist/components/combo-box/combo-box-hidden-input.js +1 -2
- package/dist/components/combo-box/combo-box-input-group.js +1 -2
- package/dist/components/combo-box/combo-box-popover.js +1 -2
- package/dist/components/combo-box/combo-box-root.js +1 -2
- package/dist/components/combo-box/combo-box-trigger.js +21 -13
- package/dist/components/combo-box/combo-box-value.js +1 -2
- package/dist/components/combo-box/combo-box.context.js +1 -2
- package/dist/components/date-field/date-field-root.js +1 -2
- package/dist/components/date-input-group/date-input-group-hidden-input.js +1 -2
- package/dist/components/date-input-group/date-input-group-input-container.js +1 -2
- package/dist/components/date-input-group/date-input-group-input.js +22 -15
- package/dist/components/date-input-group/date-input-group-prefix.js +1 -2
- package/dist/components/date-input-group/date-input-group-root.js +21 -12
- package/dist/components/date-input-group/date-input-group-segment.js +19 -11
- package/dist/components/date-input-group/date-input-group-suffix.js +1 -2
- package/dist/components/date-input-group/date-input-group.context.js +1 -2
- package/dist/components/date-input-group/use-date-segment.js +1 -2
- package/dist/components/date-picker/date-picker-popover.js +1 -2
- package/dist/components/date-picker/date-picker-root.js +1 -2
- package/dist/components/date-picker/date-picker-trigger-indicator.js +1 -2
- package/dist/components/date-picker/date-picker-trigger.js +15 -10
- package/dist/components/date-picker/date-picker.context.js +1 -2
- package/dist/components/date-range-picker/date-range-picker-popover.js +1 -2
- package/dist/components/date-range-picker/date-range-picker-range-separator.js +1 -2
- package/dist/components/date-range-picker/date-range-picker-root.js +1 -2
- package/dist/components/date-range-picker/date-range-picker-trigger-indicator.js +1 -2
- package/dist/components/date-range-picker/date-range-picker-trigger.js +15 -10
- package/dist/components/date-range-picker/date-range-picker.context.js +1 -2
- package/dist/components/date-range-picker/use-date-range-picker.js +1 -2
- package/dist/components/description/description-root.js +1 -2
- package/dist/components/disclosure/disclosure-body.js +1 -2
- package/dist/components/disclosure/disclosure-content.js +1 -2
- package/dist/components/disclosure/disclosure-heading.js +1 -2
- package/dist/components/disclosure/disclosure-indicator.js +1 -2
- package/dist/components/disclosure/disclosure-root.js +1 -2
- package/dist/components/disclosure/disclosure-trigger.js +1 -2
- package/dist/components/disclosure/disclosure.context.js +1 -2
- package/dist/components/disclosure-group/disclosure-group-root.js +1 -2
- package/dist/components/disclosure-group/disclosure-group.context.js +1 -2
- package/dist/components/dnd/drag-preview.js +1 -2
- package/dist/components/drawer/drawer-backdrop.js +1 -2
- package/dist/components/drawer/drawer-body.js +1 -2
- package/dist/components/drawer/drawer-close-trigger.js +1 -2
- package/dist/components/drawer/drawer-close.js +1 -2
- package/dist/components/drawer/drawer-content.js +1 -2
- package/dist/components/drawer/drawer-dialog.js +1 -2
- package/dist/components/drawer/drawer-footer.js +1 -2
- package/dist/components/drawer/drawer-handle.js +1 -2
- package/dist/components/drawer/drawer-header.js +1 -2
- package/dist/components/drawer/drawer-heading.js +1 -2
- package/dist/components/drawer/drawer-root.js +1 -2
- package/dist/components/drawer/drawer-trigger.js +21 -14
- package/dist/components/drawer/drawer.context.js +1 -2
- package/dist/components/drawer/use-drawer-drag.js +1 -2
- package/dist/components/drop-zone/drop-zone-root.js +1 -2
- package/dist/components/drop-zone/drop-zone-trigger.js +1 -2
- package/dist/components/drop-zone/drop-zone.accept.js +1 -2
- package/dist/components/dropdown/dropdown-menu.js +19 -19
- package/dist/components/dropdown/dropdown-popover.js +1 -2
- package/dist/components/dropdown/dropdown-root.js +1 -2
- package/dist/components/dropdown/dropdown-submenu-trigger.js +0 -1
- package/dist/components/dropdown/dropdown-trigger.js +21 -13
- package/dist/components/dropdown/dropdown.context.js +1 -2
- package/dist/components/dropdown/use-safely-mouse-to-submenu.js +1 -2
- package/dist/components/empty-state/empty-state-root.js +1 -2
- package/dist/components/error-message/error-message-root.js +1 -2
- package/dist/components/field-error/field-error-content.js +1 -2
- package/dist/components/field-error/field-error-root.js +1 -2
- package/dist/components/field-error/field-error.context.js +1 -2
- package/dist/components/fieldset/field-group.js +1 -2
- package/dist/components/fieldset/fieldset-actions.js +1 -2
- package/dist/components/fieldset/fieldset-legend.js +1 -2
- package/dist/components/fieldset/fieldset-root.js +1 -2
- package/dist/components/fieldset/fieldset.context.js +1 -2
- package/dist/components/form/form-root.js +1 -2
- package/dist/components/form/index.js +1 -2
- package/dist/components/header/header-root.js +1 -2
- package/dist/components/i18n-provider/i18n-provider.js +1 -2
- package/dist/components/i18n-provider/index.js +1 -2
- package/dist/components/icons/danger-icon.js +1 -2
- package/dist/components/icons/external-link-icon.js +1 -2
- package/dist/components/icons/icon-calendar.js +1 -2
- package/dist/components/icons/icon-chevron-down.js +1 -2
- package/dist/components/icons/icon-chevron-left.js +1 -2
- package/dist/components/icons/icon-chevron-right.js +1 -2
- package/dist/components/icons/icon-chevron-up.js +1 -2
- package/dist/components/icons/icon-close.js +1 -2
- package/dist/components/icons/icon-minus.js +1 -2
- package/dist/components/icons/icon-overlay-arrow.js +1 -2
- package/dist/components/icons/icon-plus.js +1 -2
- package/dist/components/icons/icon-search.js +1 -2
- package/dist/components/icons/info-icon.js +1 -2
- package/dist/components/icons/success-icon.js +1 -2
- package/dist/components/icons/warning-icon.js +1 -2
- package/dist/components/input/input-root.js +19 -13
- package/dist/components/input-group/input-group-input.js +19 -13
- package/dist/components/input-group/input-group-prefix.js +1 -2
- package/dist/components/input-group/input-group-root.js +1 -2
- package/dist/components/input-group/input-group-suffix.js +1 -2
- package/dist/components/input-group/input-group-textarea.js +19 -13
- package/dist/components/input-otp/input-otp-group.js +1 -2
- package/dist/components/input-otp/input-otp-root.js +13 -9
- package/dist/components/input-otp/input-otp-separator.js +1 -2
- package/dist/components/input-otp/input-otp-slot.js +1 -2
- package/dist/components/input-otp/input-otp.context.js +1 -2
- package/dist/components/kbd/kbd-abbr.js +1 -2
- package/dist/components/kbd/kbd-content.js +1 -2
- package/dist/components/kbd/kbd-root.js +1 -2
- package/dist/components/kbd/kbd.constants.js +1 -2
- package/dist/components/label/label-root.js +1 -2
- package/dist/components/link/link-icon.js +1 -2
- package/dist/components/link/link-root.js +1 -2
- package/dist/components/list-box/drag-collection.js +1 -2
- package/dist/components/list-box/list-box-drop-indicator.js +5 -4
- package/dist/components/list-box/list-box-load-more-item.js +1 -2
- package/dist/components/list-box/list-box-root.js +1 -2
- package/dist/components/list-box/list-box.context.js +1 -2
- package/dist/components/list-box-item/list-box-item-indicator.js +1 -2
- package/dist/components/list-box-item/list-box-item-root.js +26 -16
- package/dist/components/list-box-item/list-box-item.context.js +1 -2
- package/dist/components/list-box-section/list-box-section-root.js +1 -2
- package/dist/components/menu/menu-root.js +18 -18
- package/dist/components/menu/menu.context.js +1 -2
- package/dist/components/menu-item/menu-item-indicator.js +1 -2
- package/dist/components/menu-item/menu-item-root.js +1 -2
- package/dist/components/menu-item/menu-item-submenu-indicator.js +1 -2
- package/dist/components/menu-item/menu-item.context.js +1 -2
- package/dist/components/menu-section/menu-section-root.js +1 -2
- package/dist/components/meter/meter-fill.js +1 -2
- package/dist/components/meter/meter-output.js +1 -2
- package/dist/components/meter/meter-root.js +1 -2
- package/dist/components/meter/meter-track.js +1 -2
- package/dist/components/meter/meter.context.js +1 -2
- package/dist/components/modal/modal-backdrop.js +1 -2
- package/dist/components/modal/modal-body.js +1 -2
- package/dist/components/modal/modal-close-trigger.js +1 -2
- package/dist/components/modal/modal-close.js +1 -2
- package/dist/components/modal/modal-container.js +1 -2
- package/dist/components/modal/modal-dialog.js +1 -2
- package/dist/components/modal/modal-footer.js +1 -2
- package/dist/components/modal/modal-header.js +1 -2
- package/dist/components/modal/modal-heading.js +1 -2
- package/dist/components/modal/modal-icon.js +1 -2
- package/dist/components/modal/modal-root.js +1 -2
- package/dist/components/modal/modal-trigger.js +21 -13
- package/dist/components/modal/modal.context.js +1 -2
- package/dist/components/number-field/number-field-decrement-button.js +15 -9
- package/dist/components/number-field/number-field-group.js +10 -8
- package/dist/components/number-field/number-field-increment-button.js +15 -9
- package/dist/components/number-field/number-field-input.js +19 -11
- package/dist/components/number-field/number-field-root.js +1 -2
- package/dist/components/number-field/number-field.context.js +1 -2
- package/dist/components/overlay/overlay-arrow.js +1 -2
- package/dist/components/overlay/overlay-dismiss-button.js +1 -2
- package/dist/components/overlay/overlay-popover.js +1 -2
- package/dist/components/overlay/overlay-slots.js +1 -2
- package/dist/components/overlay/overlay.context.js +1 -2
- package/dist/components/pagination/pagination-content.js +1 -2
- package/dist/components/pagination/pagination-ellipsis.js +1 -2
- package/dist/components/pagination/pagination-item.js +1 -2
- package/dist/components/pagination/pagination-link.js +1 -2
- package/dist/components/pagination/pagination-next-icon.js +1 -2
- package/dist/components/pagination/pagination-next.js +1 -2
- package/dist/components/pagination/pagination-previous-icon.js +1 -2
- package/dist/components/pagination/pagination-previous.js +1 -2
- package/dist/components/pagination/pagination-root.js +1 -2
- package/dist/components/pagination/pagination-summary.js +1 -2
- package/dist/components/pagination/pagination.context.js +1 -2
- package/dist/components/popover/popover-arrow.js +1 -2
- package/dist/components/popover/popover-content.js +1 -2
- package/dist/components/popover/popover-dialog.js +1 -2
- package/dist/components/popover/popover-heading.js +1 -2
- package/dist/components/popover/popover-root.js +1 -2
- package/dist/components/popover/popover-trigger.js +21 -13
- package/dist/components/portal-provider/index.js +1 -2
- package/dist/components/portal-provider/portal-provider.js +1 -2
- package/dist/components/progress-bar/progress-bar-fill.js +1 -2
- package/dist/components/progress-bar/progress-bar-output.js +1 -2
- package/dist/components/progress-bar/progress-bar-root.js +1 -2
- package/dist/components/progress-bar/progress-bar-track.js +1 -2
- package/dist/components/progress-bar/progress-bar.context.js +1 -2
- package/dist/components/progress-circle/progress-circle-fill-circle.js +1 -2
- package/dist/components/progress-circle/progress-circle-root.js +1 -2
- package/dist/components/progress-circle/progress-circle-track-circle.js +1 -2
- package/dist/components/progress-circle/progress-circle-track.js +1 -2
- package/dist/components/progress-circle/progress-circle.constants.js +0 -1
- package/dist/components/progress-circle/progress-circle.context.js +1 -2
- package/dist/components/radio/radio-content.js +1 -2
- package/dist/components/radio/radio-control.js +1 -2
- package/dist/components/radio/radio-indicator.js +1 -2
- package/dist/components/radio/radio-root.js +1 -2
- package/dist/components/radio/radio.context.js +1 -2
- package/dist/components/radio-group/radio-group-root.js +1 -2
- package/dist/components/radio-group/radio-group.context.js +1 -2
- package/dist/components/range-calendar/range-calendar-cell-indicator.js +1 -2
- package/dist/components/range-calendar/range-calendar-cell.js +38 -29
- package/dist/components/range-calendar/range-calendar-grid-body.js +1 -2
- package/dist/components/range-calendar/range-calendar-grid-header.js +1 -2
- package/dist/components/range-calendar/range-calendar-grid.js +17 -18
- package/dist/components/range-calendar/range-calendar-header-cell.js +1 -2
- package/dist/components/range-calendar/range-calendar-header.js +1 -2
- package/dist/components/range-calendar/range-calendar-heading.js +1 -2
- package/dist/components/range-calendar/range-calendar-nav-button.js +15 -10
- package/dist/components/range-calendar/range-calendar-root.js +4 -5
- package/dist/components/range-calendar/range-calendar.context.js +1 -2
- package/dist/components/router-provider/router-provider.context.js +1 -2
- package/dist/components/router-provider/router-provider.js +1 -2
- package/dist/components/scroll-shadow/scroll-shadow-root.js +1 -2
- package/dist/components/scroll-shadow/use-scroll-shadow.js +1 -2
- package/dist/components/search-field/search-field-clear-button.js +1 -2
- package/dist/components/search-field/search-field-group.js +1 -2
- package/dist/components/search-field/search-field-input.js +19 -13
- package/dist/components/search-field/search-field-root.js +1 -2
- package/dist/components/search-field/search-field-search-icon.js +1 -2
- package/dist/components/search-field/search-field.context.js +1 -2
- package/dist/components/search-field/use-search-field.js +1 -2
- package/dist/components/segmented-control/segmented-control-indicator.js +1 -2
- package/dist/components/segmented-control/segmented-control-item.js +1 -2
- package/dist/components/segmented-control/segmented-control-root.js +1 -2
- package/dist/components/segmented-control/segmented-control-separator.js +1 -2
- package/dist/components/segmented-control/segmented-control.context.js +1 -2
- package/dist/components/select/select-clear-button.js +1 -2
- package/dist/components/select/select-hidden-select.js +1 -2
- package/dist/components/select/select-indicator.js +1 -2
- package/dist/components/select/select-popover.js +1 -2
- package/dist/components/select/select-root.js +1 -2
- package/dist/components/select/select-trigger.js +24 -16
- package/dist/components/select/select-value.js +1 -2
- package/dist/components/select/select.context.js +1 -2
- package/dist/components/separator/separator-root.js +1 -2
- package/dist/components/separator/separator.context.js +1 -2
- package/dist/components/sidebar/sidebar-collapsible-trigger.js +1 -2
- package/dist/components/sidebar/sidebar-collapsible.js +1 -2
- package/dist/components/sidebar/sidebar-content.js +1 -2
- package/dist/components/sidebar/sidebar-footer.js +1 -2
- package/dist/components/sidebar/sidebar-group-label.js +1 -2
- package/dist/components/sidebar/sidebar-group.js +1 -2
- package/dist/components/sidebar/sidebar-header.js +1 -2
- package/dist/components/sidebar/sidebar-inset.js +1 -2
- package/dist/components/sidebar/sidebar-item-icon.js +1 -2
- package/dist/components/sidebar/sidebar-item-indicator.js +1 -2
- package/dist/components/sidebar/sidebar-item-label.js +1 -2
- package/dist/components/sidebar/sidebar-item-tooltip.js +1 -2
- package/dist/components/sidebar/sidebar-item-trailing.js +1 -2
- package/dist/components/sidebar/sidebar-item.js +1 -2
- package/dist/components/sidebar/sidebar-panel.js +4 -5
- package/dist/components/sidebar/sidebar-rail.js +1 -2
- package/dist/components/sidebar/sidebar-root.js +1 -2
- package/dist/components/sidebar/sidebar-separator.js +1 -2
- package/dist/components/sidebar/sidebar-sub-menu.js +1 -2
- package/dist/components/sidebar/sidebar-trigger.js +1 -2
- package/dist/components/sidebar/sidebar.context.js +1 -2
- package/dist/components/sidebar/sidebar.state.js +1 -2
- package/dist/components/sidebar/sidebar.storage.js +1 -2
- package/dist/components/skeleton/skeleton-root.js +1 -2
- package/dist/components/slider/index.d.ts +1 -1
- package/dist/components/slider/slider-fill.js +1 -2
- package/dist/components/slider/slider-marks.js +1 -2
- package/dist/components/slider/slider-output.js +1 -2
- package/dist/components/slider/slider-root.d.ts +7 -7
- package/dist/components/slider/slider-root.js +8 -3
- package/dist/components/slider/slider-thumb.js +7 -5
- package/dist/components/slider/slider-track.d.ts +2 -2
- package/dist/components/slider/slider-track.js +10 -3
- package/dist/components/slider/slider.context.js +1 -2
- package/dist/components/slider/slider.types.d.ts +25 -3
- package/dist/components/spinner/spinner-root.js +1 -2
- package/dist/components/splitter/splitter-handle.js +1 -2
- package/dist/components/splitter/splitter-panel.js +1 -2
- package/dist/components/splitter/splitter-root.js +1 -2
- package/dist/components/splitter/splitter.context.js +1 -2
- package/dist/components/splitter/splitter.state.js +1 -2
- package/dist/components/splitter/splitter.storage.js +1 -2
- package/dist/components/surface/surface-root.js +1 -2
- package/dist/components/surface/surface.context.js +1 -2
- package/dist/components/switch/switch-content.js +1 -2
- package/dist/components/switch/switch-control.js +1 -2
- package/dist/components/switch/switch-icon.js +1 -2
- package/dist/components/switch/switch-root.js +1 -2
- package/dist/components/switch/switch-thumb.js +1 -2
- package/dist/components/switch/switch.context.js +1 -2
- package/dist/components/switch-group/switch-group-root.js +1 -2
- package/dist/components/table/table-body.js +6 -7
- package/dist/components/table/table-cell.js +1 -2
- package/dist/components/table/table-column-resizer.js +1 -2
- package/dist/components/table/table-column.js +2 -3
- package/dist/components/table/table-content.js +1 -2
- package/dist/components/table/table-drag-collection.js +1 -2
- package/dist/components/table/table-drag-handle.js +1 -2
- package/dist/components/table/table-drop-indicator.js +9 -12
- package/dist/components/table/table-expand-trigger.js +1 -2
- package/dist/components/table/table-footer.js +1 -2
- package/dist/components/table/table-header.js +3 -4
- package/dist/components/table/table-load-more-content.js +1 -2
- package/dist/components/table/table-load-more.js +3 -4
- package/dist/components/table/table-resizable-container.js +1 -2
- package/dist/components/table/table-root.js +1 -2
- package/dist/components/table/table-row.js +8 -11
- package/dist/components/table/table-scroll-container.js +1 -2
- package/dist/components/table/table-selection-checkbox.js +4 -5
- package/dist/components/table/table-sortable-column-header.js +1 -2
- package/dist/components/table/table-virtualizer-item.js +1 -2
- package/dist/components/table/table.context.js +1 -2
- package/dist/components/table/use-grid-keyboard.js +1 -2
- package/dist/components/table/use-grid-selection-announcement.js +1 -2
- package/dist/components/table/use-table-collection.js +1 -2
- package/dist/components/table/use-table-column-layout.js +1 -2
- package/dist/components/tabs/tabs-indicator.js +1 -2
- package/dist/components/tabs/tabs-list-container.js +1 -2
- package/dist/components/tabs/tabs-list.js +1 -2
- package/dist/components/tabs/tabs-panel.js +1 -2
- package/dist/components/tabs/tabs-root.js +1 -2
- package/dist/components/tabs/tabs-separator.js +1 -2
- package/dist/components/tabs/tabs-tab.js +1 -2
- package/dist/components/tabs/tabs.context.js +1 -2
- package/dist/components/tag/tag-remove-button.js +1 -2
- package/dist/components/tag/tag-root.js +1 -2
- package/dist/components/tag/tag.context.js +1 -2
- package/dist/components/tag-group/tag-group-list.js +1 -2
- package/dist/components/tag-group/tag-group-root.js +1 -2
- package/dist/components/tag-group/tag-group.context.js +1 -2
- package/dist/components/textarea/textarea-root.js +19 -13
- package/dist/components/textfield/textfield-root.js +1 -2
- package/dist/components/textfield/textfield.context.js +1 -2
- package/dist/components/time-field/time-field-root.js +1 -2
- package/dist/components/toast/toast-action-button.js +1 -2
- package/dist/components/toast/toast-close-button.js +1 -2
- package/dist/components/toast/toast-content.js +1 -2
- package/dist/components/toast/toast-default-content.js +7 -8
- package/dist/components/toast/toast-description.js +1 -2
- package/dist/components/toast/toast-indicator.js +1 -2
- package/dist/components/toast/toast-provider.js +11 -7
- package/dist/components/toast/toast-queue.js +1 -2
- package/dist/components/toast/toast-renderable.js +1 -2
- package/dist/components/toast/toast-root.js +1 -2
- package/dist/components/toast/toast-title.js +1 -2
- package/dist/components/toast/toast.constants.js +1 -2
- package/dist/components/toast/toast.context.js +1 -2
- package/dist/components/toggle-button/toggle-button-root.js +1 -2
- package/dist/components/toggle-button-group/toggle-button-group-root.js +1 -2
- package/dist/components/toggle-button-group/toggle-button-group-separator.js +1 -2
- package/dist/components/toggle-button-group/toggle-button-group.context.js +1 -2
- package/dist/components/toolbar/toolbar-root.js +1 -2
- package/dist/components/toolbar/toolbar.context.js +1 -2
- package/dist/components/tooltip/tooltip-arrow.js +1 -2
- package/dist/components/tooltip/tooltip-content.js +1 -2
- package/dist/components/tooltip/tooltip-root.js +1 -2
- package/dist/components/tooltip/tooltip-trigger.js +13 -9
- package/dist/components/tooltip/tooltip.context.js +1 -2
- package/dist/components/typography/code.js +1 -2
- package/dist/components/typography/heading.js +1 -2
- package/dist/components/typography/paragraph.js +1 -2
- package/dist/components/typography/prose.js +1 -2
- package/dist/components/typography/typography-root.js +1 -2
- package/dist/components/typography/typography.constants.js +1 -2
- package/dist/components/virtualizer/use-virtualizer-item.js +1 -2
- package/dist/components/virtualizer/virtualizer-item.js +1 -2
- package/dist/components/virtualizer/virtualizer-root.js +1 -2
- package/dist/components/virtualizer/virtualizer-scrollbar-track.js +1 -2
- package/dist/components/virtualizer/virtualizer-scrollbar.js +1 -2
- package/dist/components/virtualizer/virtualizer.context.js +1 -2
- package/dist/composables/drag-manager.js +1 -2
- package/dist/composables/drag-modality.js +1 -2
- package/dist/composables/droppable-collection-registry.js +1 -2
- package/dist/composables/focus-responder.js +1 -2
- package/dist/composables/focus-scope-registry.js +1 -2
- package/dist/composables/form-context.js +1 -2
- package/dist/composables/interaction-modality.js +1 -2
- package/dist/composables/press-responder.js +1 -2
- package/dist/composables/use-auto-scroll.js +1 -2
- package/dist/composables/use-autocomplete.js +1 -2
- package/dist/composables/use-calendar-cell.js +1 -2
- package/dist/composables/use-calendar-grid.js +1 -2
- package/dist/composables/use-calendar-heading.js +1 -2
- package/dist/composables/use-calendar-state.js +1 -2
- package/dist/composables/use-calendar-year-picker.js +1 -2
- package/dist/composables/use-calendar.js +1 -2
- package/dist/composables/use-checkbox-group-state.js +1 -2
- package/dist/composables/use-collator.js +1 -2
- package/dist/composables/use-collection-auto-focus.js +1 -2
- package/dist/composables/use-collection.js +1 -2
- package/dist/composables/use-color-area-gradient.js +1 -2
- package/dist/composables/use-color-area-state.js +1 -2
- package/dist/composables/use-color-area.js +1 -2
- package/dist/composables/use-color-channel-field-state.js +1 -2
- package/dist/composables/use-color-channel-field.js +1 -2
- package/dist/composables/use-color-field-state.js +1 -2
- package/dist/composables/use-color-field.js +1 -2
- package/dist/composables/use-color-picker-state.js +1 -2
- package/dist/composables/use-color-slider-state.js +1 -2
- package/dist/composables/use-color-slider.js +1 -2
- package/dist/composables/use-color-swatch.js +1 -2
- package/dist/composables/use-combo-box-state.js +1 -2
- package/dist/composables/use-combo-box.js +1 -2
- package/dist/composables/use-controllable-state.js +1 -2
- package/dist/composables/use-css-variable.js +1 -2
- package/dist/composables/use-date-field-state.js +1 -2
- package/dist/composables/use-date-field.js +1 -2
- package/dist/composables/use-date-formatter.js +1 -2
- package/dist/composables/use-date-picker-group.js +1 -2
- package/dist/composables/use-date-picker-state.js +1 -2
- package/dist/composables/use-date-picker.js +1 -2
- package/dist/composables/use-date-range-picker-state.js +1 -2
- package/dist/composables/use-default-date-props.js +1 -2
- package/dist/composables/use-default-locale.js +1 -2
- package/dist/composables/use-description.js +1 -2
- package/dist/composables/use-dialog-trigger.js +1 -2
- package/dist/composables/use-disclosure-group-navigation.js +1 -2
- package/dist/composables/use-disclosure-group.js +1 -2
- package/dist/composables/use-disclosure-panel.js +1 -2
- package/dist/composables/use-dismissable.js +1 -2
- package/dist/composables/use-display-names.js +1 -2
- package/dist/composables/use-dnd-persisted-keys.js +1 -2
- package/dist/composables/use-drag-and-drop.js +1 -2
- package/dist/composables/use-drag.js +1 -2
- package/dist/composables/use-draggable-collection-state.js +1 -2
- package/dist/composables/use-draggable-collection.js +1 -2
- package/dist/composables/use-draggable-item.js +1 -2
- package/dist/composables/use-drop-indicator.js +1 -2
- package/dist/composables/use-drop.js +1 -2
- package/dist/composables/use-droppable-collection-state.js +1 -2
- package/dist/composables/use-droppable-collection.js +1 -2
- package/dist/composables/use-droppable-item.js +1 -2
- package/dist/composables/use-enter-exit.js +1 -2
- package/dist/composables/use-field-ids.js +1 -2
- package/dist/composables/use-filter.js +1 -2
- package/dist/composables/use-focus-scope.js +1 -2
- package/dist/composables/use-form-reset.js +1 -2
- package/dist/composables/use-form-validation-state.js +1 -2
- package/dist/composables/use-form-validation.js +1 -2
- package/dist/composables/use-formatted-text-field.js +1 -2
- package/dist/composables/use-id.js +1 -2
- package/dist/composables/use-image-loading-status.js +1 -2
- package/dist/composables/use-input-otp.js +13 -4
- package/dist/composables/use-interaction-states.js +1 -2
- package/dist/composables/use-labels.js +1 -2
- package/dist/composables/use-list-data.js +1 -2
- package/dist/composables/use-list-keyboard.js +1 -2
- package/dist/composables/use-locale.js +1 -2
- package/dist/composables/use-localized-string-dictionary.js +1 -2
- package/dist/composables/use-localized-string-formatter.js +1 -2
- package/dist/composables/use-long-press.js +1 -2
- package/dist/composables/use-measured-height.js +1 -2
- package/dist/composables/use-media-query.js +1 -2
- package/dist/composables/use-menu-trigger-state.js +1 -2
- package/dist/composables/use-menu-trigger.js +1 -2
- package/dist/composables/use-menu.js +1 -2
- package/dist/composables/use-modal-overlay.js +1 -2
- package/dist/composables/use-modal-transition.js +1 -2
- package/dist/composables/use-move.js +1 -2
- package/dist/composables/use-number-field-state.js +1 -2
- package/dist/composables/use-number-field.js +1 -2
- package/dist/composables/use-number-formatter.js +1 -2
- package/dist/composables/use-overlay-position.js +1 -2
- package/dist/composables/use-overlay-trigger-state.js +1 -2
- package/dist/composables/use-overlay-trigger.js +1 -2
- package/dist/composables/use-page-size.js +1 -2
- package/dist/composables/use-password-manager-badge.js +1 -2
- package/dist/composables/use-portal.js +1 -2
- package/dist/composables/use-press.js +1 -2
- package/dist/composables/use-prevent-scroll.js +1 -2
- package/dist/composables/use-progress-labeling.js +1 -2
- package/dist/composables/use-progress-value.js +1 -2
- package/dist/composables/use-radio-group-state.js +1 -2
- package/dist/composables/use-range-calendar-state.js +1 -2
- package/dist/composables/use-range-calendar.js +1 -2
- package/dist/composables/use-scroll-wheel.js +1 -2
- package/dist/composables/use-select-state.js +1 -2
- package/dist/composables/use-select.js +1 -2
- package/dist/composables/use-selection-manager.js +1 -2
- package/dist/composables/use-shared-element.js +1 -2
- package/dist/composables/use-single-select-list-state.js +1 -2
- package/dist/composables/use-slider-state.js +1 -2
- package/dist/composables/use-slider-thumb.js +3 -4
- package/dist/composables/use-slider.d.ts +27 -4
- package/dist/composables/use-slider.js +53 -17
- package/dist/composables/use-spin-button.js +1 -2
- package/dist/composables/use-tab-list-state.js +1 -2
- package/dist/composables/use-text-field.js +10 -4
- package/dist/composables/use-textarea-autosize.js +1 -2
- package/dist/composables/use-time-field-state.js +1 -2
- package/dist/composables/use-toast-region.js +1 -2
- package/dist/composables/use-toast.js +1 -2
- package/dist/composables/use-toggle-group-state.js +1 -2
- package/dist/composables/use-toolbar.js +1 -2
- package/dist/composables/use-tooltip-trigger-state.js +1 -2
- package/dist/composables/use-tooltip-trigger.js +1 -2
- package/dist/composables/use-typeahead.js +1 -2
- package/dist/composables/use-viewport-size.js +1 -2
- package/dist/composables/use-virtual-drop.js +1 -2
- package/dist/composables/use-virtualizer-scroll.js +1 -2
- package/dist/composables/use-virtualizer.js +1 -2
- package/dist/composables/validation-result.js +1 -2
- package/dist/composables/virtual-event.js +1 -2
- package/dist/i18n/breadcrumbs.js +1 -2
- package/dist/i18n/calendar.js +1 -2
- package/dist/i18n/color.js +1 -2
- package/dist/i18n/combobox.js +0 -1
- package/dist/i18n/date-placeholders.js +1 -2
- package/dist/i18n/date-validation.js +1 -2
- package/dist/i18n/datepicker.js +1 -2
- package/dist/i18n/dnd.js +0 -1
- package/dist/i18n/select.js +1 -2
- package/dist/i18n/spinbutton.js +1 -2
- package/dist/i18n/toast.js +0 -1
- package/dist/index.js +2 -2
- package/dist/ropav.min.css +1 -1
- package/dist/utils/animation-settled.js +1 -2
- package/dist/utils/aria-hide-outside.js +1 -2
- package/dist/utils/assertion.js +1 -2
- package/dist/utils/auto-label.js +1 -2
- package/dist/utils/block.js +1 -2
- package/dist/utils/calendar-systems.js +1 -2
- package/dist/utils/calendar.js +1 -2
- package/dist/utils/color-oklch.js +1 -2
- package/dist/utils/color.js +1 -2
- package/dist/utils/compose.js +1 -2
- package/dist/utils/create-context.js +1 -2
- package/dist/utils/css.js +1 -2
- package/dist/utils/date-format.js +1 -2
- package/dist/utils/date-placeholder.js +1 -2
- package/dist/utils/date-validation.js +1 -2
- package/dist/utils/dnd-constants.js +1 -2
- package/dist/utils/dnd-data-transfer.js +1 -2
- package/dist/utils/dnd-drop-target-navigation.js +1 -2
- package/dist/utils/dnd-list-drop-target-delegate.js +1 -2
- package/dist/utils/dnd-state.js +1 -2
- package/dist/utils/dnd-tree-drop-target-delegate.js +1 -2
- package/dist/utils/dnd-types.js +1 -2
- package/dist/utils/document-order.js +1 -2
- package/dist/utils/flex-sizing.js +1 -2
- package/dist/utils/focus.js +1 -2
- package/dist/utils/form-value.js +1 -2
- package/dist/utils/incomplete-date.js +1 -2
- package/dist/utils/live-announcer.js +1 -2
- package/dist/utils/locale.js +1 -2
- package/dist/utils/number.js +1 -2
- package/dist/utils/open-link.js +1 -2
- package/dist/utils/platform.js +1 -2
- package/dist/utils/position.js +1 -2
- package/dist/utils/region.js +1 -2
- package/dist/utils/text-value.js +1 -2
- package/dist/utils/top-layer.js +1 -2
- package/dist/utils/virtualizer-collection.js +1 -2
- package/dist/utils/virtualizer-geometry.js +1 -2
- package/dist/utils/virtualizer-layout-info.js +1 -2
- package/dist/utils/virtualizer-layout.js +1 -2
- package/dist/utils/virtualizer-list-layout.js +1 -2
- package/dist/utils/virtualizer-offsets.js +1 -2
- package/dist/utils/virtualizer-overscan.js +1 -2
- package/dist/utils/virtualizer-table-layout.js +1 -2
- package/dist/utils/visually-hidden.js +1 -2
- package/dist/version.js +2 -3
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useLocale } from "./use-locale.js";
|
|
2
2
|
import { computed, toValue } from "vue";
|
|
3
3
|
import { NumberFormatter } from "@internationalized/number";
|
|
4
|
-
|
|
4
|
+
// src/composables/use-number-formatter.ts
|
|
5
5
|
/**
|
|
6
6
|
* An `Intl.NumberFormat` for the locale that applies here, ported from React Aria's
|
|
7
7
|
* `packages/react-aria/src/i18n/useNumberFormatter.ts` (react-aria 3.51.0).
|
|
@@ -13,5 +13,4 @@ var useNumberFormatter = (options) => {
|
|
|
13
13
|
const locale = useLocale();
|
|
14
14
|
return computed(() => new NumberFormatter(locale.value.locale, toValue(options) ?? {}));
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { useNumberFormatter };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { calculatePosition, getRect, translateRTL } from "../utils/position.js";
|
|
2
2
|
import { computed, onScopeDispose, shallowRef, toValue, watch } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/composables/use-overlay-position.ts
|
|
4
4
|
/**
|
|
5
5
|
* Overlays sit above the page. The value lives in the stylesheet so the modal-level surfaces,
|
|
6
6
|
* which can only declare theirs in CSS, resolve to the same level as this inline one.
|
|
@@ -231,5 +231,4 @@ var useOverlayPosition = (options) => {
|
|
|
231
231
|
updatePosition
|
|
232
232
|
};
|
|
233
233
|
};
|
|
234
|
-
//#endregion
|
|
235
234
|
export { useOverlayPosition };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useControllableState } from "./use-controllable-state.js";
|
|
2
2
|
import { computed } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/composables/use-overlay-trigger-state.ts
|
|
4
4
|
/**
|
|
5
5
|
* Open state for an overlay trigger, ported from React Stately's `useOverlayTriggerState`.
|
|
6
6
|
*
|
|
@@ -26,5 +26,4 @@ var useOverlayTriggerState = (options = {}) => {
|
|
|
26
26
|
toggle: () => setState(!state.value)
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
//#endregion
|
|
30
29
|
export { useOverlayTriggerState };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useId as useId$1 } from "./use-id.js";
|
|
2
2
|
import { computed } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/composables/use-overlay-trigger.ts
|
|
4
4
|
/**
|
|
5
5
|
* Accessibility wiring between a trigger and the overlay it opens, ported from React Aria's
|
|
6
6
|
* `useOverlayTrigger`.
|
|
@@ -32,5 +32,4 @@ var useOverlayTrigger = (options, state) => {
|
|
|
32
32
|
}))
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
|
-
//#endregion
|
|
36
35
|
export { useOverlayTrigger };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isScrollable } from "../utils/focus.js";
|
|
2
2
|
import { onScopeDispose, shallowRef } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/composables/use-page-size.ts
|
|
4
4
|
var getVisualViewport = () => typeof document === "undefined" ? null : window.visualViewport ?? null;
|
|
5
5
|
var measurePage = () => {
|
|
6
6
|
if (typeof document === "undefined") return {
|
|
@@ -38,5 +38,4 @@ var usePageSize = () => {
|
|
|
38
38
|
}, true);
|
|
39
39
|
return size;
|
|
40
40
|
};
|
|
41
|
-
//#endregion
|
|
42
41
|
export { usePageSize };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, shallowRef, toValue, watchEffect } from "vue";
|
|
2
|
-
|
|
2
|
+
// src/composables/use-password-manager-badge.ts
|
|
3
3
|
/**
|
|
4
4
|
* How far in from the container's right edge a badge is expected to sit, and how much room the
|
|
5
5
|
* input gives up to make space for one.
|
|
@@ -90,5 +90,4 @@ var usePasswordManagerBadge = (options) => {
|
|
|
90
90
|
willPushPWMBadge
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
|
-
//#endregion
|
|
94
93
|
export { usePasswordManagerBadge };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createContext } from "../utils/create-context.js";
|
|
2
2
|
import { computed, toValue } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/composables/use-portal.ts
|
|
4
4
|
var [usePortalContext, providePortalContext] = createContext({
|
|
5
5
|
defaultValue: null,
|
|
6
6
|
name: "PortalContext",
|
|
@@ -43,5 +43,4 @@ var providePortal = (options) => {
|
|
|
43
43
|
providePortalContext(portal);
|
|
44
44
|
return portal;
|
|
45
45
|
};
|
|
46
|
-
//#endregion
|
|
47
46
|
export { providePortal, usePortal };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isMac } from "../utils/platform.js";
|
|
2
2
|
import { isVirtualClick, isVirtualPointerEvent } from "./virtual-event.js";
|
|
3
3
|
import { computed, onScopeDispose, shallowRef, toValue, watch } from "vue";
|
|
4
|
-
|
|
4
|
+
// src/composables/use-press.ts
|
|
5
5
|
/**
|
|
6
6
|
* Whether an enter or a leave came from a pointer with no hover to report.
|
|
7
7
|
*
|
|
@@ -361,5 +361,4 @@ var usePress = (options = {}) => {
|
|
|
361
361
|
isPressed: computed(() => Boolean(toValue(options.isPressed)) || pressed.value)
|
|
362
362
|
};
|
|
363
363
|
};
|
|
364
|
-
//#endregion
|
|
365
364
|
export { usePress };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toValue, watch } from "vue";
|
|
2
|
-
|
|
2
|
+
// src/composables/use-prevent-scroll.ts
|
|
3
3
|
/** How many live callers want scrolling blocked; the page is restored when it reaches zero. */
|
|
4
4
|
var count = 0;
|
|
5
5
|
var restore = () => {};
|
|
@@ -57,5 +57,4 @@ var usePreventScroll = (options = {}) => {
|
|
|
57
57
|
});
|
|
58
58
|
}, { immediate: true });
|
|
59
59
|
};
|
|
60
|
-
//#endregion
|
|
61
60
|
export { usePreventScroll };
|
|
@@ -2,7 +2,7 @@ import { useId as useId$1 } from "./use-id.js";
|
|
|
2
2
|
import { provideFieldIdsContext, useFieldIds } from "./use-field-ids.js";
|
|
3
3
|
import { useLabels } from "./use-labels.js";
|
|
4
4
|
import { computed, toValue } from "vue";
|
|
5
|
-
|
|
5
|
+
// src/composables/use-progress-labeling.ts
|
|
6
6
|
/**
|
|
7
7
|
* Wire the visible Label and explicit ARIA naming props shared by Meter and both Progress roots.
|
|
8
8
|
*
|
|
@@ -34,5 +34,4 @@ var useProgressLabeling = (options) => {
|
|
|
34
34
|
id
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
//#endregion
|
|
38
37
|
export { useProgressLabeling };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useNumberFormatter } from "./use-number-formatter.js";
|
|
2
2
|
import { computed, toValue } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/composables/use-progress-value.ts
|
|
4
4
|
/** Shared value, percentage and formatting semantics for Meter and both Progress components. */
|
|
5
5
|
var useProgressValue = (options) => {
|
|
6
6
|
const formatOptions = computed(() => toValue(options.formatOptions) ?? { style: "percent" });
|
|
@@ -31,5 +31,4 @@ var useProgressValue = (options) => {
|
|
|
31
31
|
})
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
//#endregion
|
|
35
34
|
export { useProgressValue };
|
|
@@ -2,7 +2,7 @@ import { useId as useId$1 } from "./use-id.js";
|
|
|
2
2
|
import { useControllableState } from "./use-controllable-state.js";
|
|
3
3
|
import { useFormValidationState } from "./use-form-validation-state.js";
|
|
4
4
|
import { computed, shallowRef, toValue } from "vue";
|
|
5
|
-
|
|
5
|
+
// src/composables/use-radio-group-state.ts
|
|
6
6
|
/**
|
|
7
7
|
* Selection and validation for a group of radios, ported from React Aria's
|
|
8
8
|
* `packages/react-stately/src/radio/useRadioGroupState.ts` (react-stately 3.49.0).
|
|
@@ -65,5 +65,4 @@ var useRadioGroupState = (options = {}) => {
|
|
|
65
65
|
validation
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
|
-
//#endregion
|
|
69
68
|
export { useRadioGroupState };
|
|
@@ -4,7 +4,7 @@ import { alignCenter, constrainValue, isDateInvalid, previousAvailableDate } fro
|
|
|
4
4
|
import { useCalendarState } from "./use-calendar-state.js";
|
|
5
5
|
import { computed, shallowRef, toValue } from "vue";
|
|
6
6
|
import { GregorianCalendar, maxDate, minDate, toCalendar, toCalendarDate } from "@internationalized/date";
|
|
7
|
-
|
|
7
|
+
// src/composables/use-range-calendar-state.ts
|
|
8
8
|
/** Order two dates and reduce them to plain dates, which is what a highlighted range is. */
|
|
9
9
|
var makeRange = (start, end) => {
|
|
10
10
|
if (!start || !end) return null;
|
|
@@ -190,5 +190,4 @@ var useRangeCalendarState = (options) => {
|
|
|
190
190
|
value: computed(() => value.value)
|
|
191
191
|
};
|
|
192
192
|
};
|
|
193
|
-
//#endregion
|
|
194
193
|
export { useRangeCalendarState };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isVirtualPointerEvent } from "./virtual-event.js";
|
|
2
2
|
import { useCalendar } from "./use-calendar.js";
|
|
3
3
|
import { onScopeDispose, toValue, watch } from "vue";
|
|
4
|
-
|
|
4
|
+
// src/composables/use-range-calendar.ts
|
|
5
5
|
/** Whether an element or one of its descendants holds focus. */
|
|
6
6
|
var isFocusWithin = (element) => {
|
|
7
7
|
const active = document.activeElement;
|
|
@@ -90,5 +90,4 @@ var useRangeCalendar = (options, state) => {
|
|
|
90
90
|
} }
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
|
-
//#endregion
|
|
94
93
|
export { useRangeCalendar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toValue, watch } from "vue";
|
|
2
|
-
|
|
2
|
+
// src/composables/use-scroll-wheel.ts
|
|
3
3
|
/**
|
|
4
4
|
* A wheel gesture over an element, ported from React Aria's
|
|
5
5
|
* `packages/react-aria/src/interactions/useScrollWheel.ts` (react-aria 3.51.0).
|
|
@@ -35,5 +35,4 @@ var useScrollWheel = (element, options) => {
|
|
|
35
35
|
immediate: true
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
|
-
//#endregion
|
|
39
38
|
export { useScrollWheel };
|
|
@@ -5,7 +5,7 @@ import { useFormValidationState } from "./use-form-validation-state.js";
|
|
|
5
5
|
import { useMenuTriggerState } from "./use-menu-trigger-state.js";
|
|
6
6
|
import { useSelectionManager } from "./use-selection-manager.js";
|
|
7
7
|
import { computed, shallowRef, toValue } from "vue";
|
|
8
|
-
|
|
8
|
+
// src/composables/use-select-state.ts
|
|
9
9
|
/**
|
|
10
10
|
* The text an option shows and is matched on, when the caller named no accessor.
|
|
11
11
|
*
|
|
@@ -165,5 +165,4 @@ var useSelectState = (options) => {
|
|
|
165
165
|
value: displayValue
|
|
166
166
|
};
|
|
167
167
|
};
|
|
168
|
-
//#endregion
|
|
169
168
|
export { defaultItemTextValue, useSelectState };
|
|
@@ -4,7 +4,7 @@ import { useTypeahead } from "./use-typeahead.js";
|
|
|
4
4
|
import { useCollator } from "./use-collator.js";
|
|
5
5
|
import { useMenuTrigger } from "./use-menu-trigger.js";
|
|
6
6
|
import { computed, toValue } from "vue";
|
|
7
|
-
|
|
7
|
+
// src/composables/use-select.ts
|
|
8
8
|
/**
|
|
9
9
|
* Behaviour and accessibility for a select, ported from React Aria's `useSelect`.
|
|
10
10
|
*
|
|
@@ -136,5 +136,4 @@ var useSelect = (options, state) => {
|
|
|
136
136
|
valueId
|
|
137
137
|
};
|
|
138
138
|
};
|
|
139
|
-
//#endregion
|
|
140
139
|
export { useSelect };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useControllableState } from "./use-controllable-state.js";
|
|
2
2
|
import { computed, shallowRef, toValue } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/composables/use-selection-manager.ts
|
|
4
4
|
/**
|
|
5
5
|
* Selected and focused keys for a collection, ported from React Stately's `SelectionManager`
|
|
6
6
|
* and `useMultipleSelectionState`.
|
|
@@ -174,5 +174,4 @@ var useSelectionManager = (options) => {
|
|
|
174
174
|
toggleSelection
|
|
175
175
|
};
|
|
176
176
|
};
|
|
177
|
-
//#endregion
|
|
178
177
|
export { useSelectionManager };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createContext } from "../utils/create-context.js";
|
|
2
2
|
import { createAnimationSettleWaiter } from "../utils/animation-settled.js";
|
|
3
3
|
import { computed, nextTick, onScopeDispose, shallowRef, toValue, watch } from "vue";
|
|
4
|
-
|
|
4
|
+
// src/composables/use-shared-element.ts
|
|
5
5
|
var createSharedElementScope = () => ({ snapshots: /* @__PURE__ */ new Map() });
|
|
6
6
|
var [useSharedElementScope, provideSharedElementScope] = createContext({
|
|
7
7
|
errorMessage: "A shared element has to be rendered inside a shared element scope.",
|
|
@@ -162,5 +162,4 @@ var useSharedElement = (options) => {
|
|
|
162
162
|
isPresent: computed(() => state.value !== "hidden")
|
|
163
163
|
};
|
|
164
164
|
};
|
|
165
|
-
//#endregion
|
|
166
165
|
export { createSharedElementScope, provideSharedElementScope, useSharedElement, useSharedElementScope };
|
|
@@ -2,7 +2,7 @@ import { useControllableState } from "./use-controllable-state.js";
|
|
|
2
2
|
import { useCollection } from "./use-collection.js";
|
|
3
3
|
import { useSelectionManager } from "./use-selection-manager.js";
|
|
4
4
|
import { computed, toValue, watch } from "vue";
|
|
5
|
-
|
|
5
|
+
// src/composables/use-single-select-list-state.ts
|
|
6
6
|
/**
|
|
7
7
|
* Which item of a collection is selected, for a list that always has exactly one.
|
|
8
8
|
*
|
|
@@ -107,5 +107,4 @@ var useSingleSelectListState = (options = {}) => {
|
|
|
107
107
|
setSelectedKey: (key) => stored.setState(key)
|
|
108
108
|
};
|
|
109
109
|
};
|
|
110
|
-
//#endregion
|
|
111
110
|
export { useSingleSelectListState };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useControllableState } from "./use-controllable-state.js";
|
|
2
2
|
import { clamp, snapValueToStep } from "../utils/number.js";
|
|
3
3
|
import { computed, shallowRef, toValue } from "vue";
|
|
4
|
-
|
|
4
|
+
// src/composables/use-slider-state.ts
|
|
5
5
|
var DEFAULT_MIN_VALUE = 0;
|
|
6
6
|
var DEFAULT_MAX_VALUE = 100;
|
|
7
7
|
var DEFAULT_STEP_VALUE = 1;
|
|
@@ -131,5 +131,4 @@ var useSliderState = (options) => {
|
|
|
131
131
|
values: computed(() => values.value)
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
|
-
//#endregion
|
|
135
134
|
export { useSliderState };
|
|
@@ -2,8 +2,9 @@ import { useMove } from "./use-move.js";
|
|
|
2
2
|
import { useFormReset } from "./use-form-reset.js";
|
|
3
3
|
import { setFormValue } from "../utils/form-value.js";
|
|
4
4
|
import { clamp } from "../utils/number.js";
|
|
5
|
+
import { getTrackTravel } from "./use-slider.js";
|
|
5
6
|
import { computed, nextTick, onScopeDispose, toValue, watch, watchEffect } from "vue";
|
|
6
|
-
|
|
7
|
+
// src/composables/use-slider-thumb.ts
|
|
7
8
|
/**
|
|
8
9
|
* One thumb of a slider: its position, its hidden input, and every way its value can move.
|
|
9
10
|
*
|
|
@@ -42,8 +43,7 @@ var useSliderThumb = (options) => {
|
|
|
42
43
|
const { handlers: moveHandlers } = useMove({
|
|
43
44
|
onMove: ({ deltaX, deltaY, pointerType, shiftKey }) => {
|
|
44
45
|
if (!trackEl.value) return;
|
|
45
|
-
const
|
|
46
|
-
const size = isVertical.value ? rect.height : rect.width;
|
|
46
|
+
const { size } = getTrackTravel(trackEl.value, isVertical.value);
|
|
47
47
|
if (currentPosition === null) currentPosition = state.getThumbPercent(index.value) * size;
|
|
48
48
|
if (pointerType === "keyboard") {
|
|
49
49
|
const stepSize = shiftKey ? state.pageSize.value : state.step.value;
|
|
@@ -161,5 +161,4 @@ var useSliderThumb = (options) => {
|
|
|
161
161
|
})
|
|
162
162
|
};
|
|
163
163
|
};
|
|
164
|
-
//#endregion
|
|
165
164
|
export { useSliderThumb };
|
|
@@ -2,7 +2,10 @@ import type { SliderState } from "./use-slider-state.js";
|
|
|
2
2
|
import type { CSSProperties, ComputedRef, MaybeRefOrGetter, Ref } from "vue";
|
|
3
3
|
export interface UseSliderOptions {
|
|
4
4
|
state: SliderState;
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* The track element. Its length, less the spacers at either end, is the distance a thumb can
|
|
7
|
+
* travel.
|
|
8
|
+
*/
|
|
6
9
|
trackEl: Ref<HTMLElement | null>;
|
|
7
10
|
/** The group's own id, and the stem every thumb id grows from. */
|
|
8
11
|
id: MaybeRefOrGetter<string>;
|
|
@@ -26,13 +29,23 @@ export interface UseSliderReturn {
|
|
|
26
29
|
/** For the root element: the thumbs are inputs, and the group is what names them together. */
|
|
27
30
|
groupProps: ComputedRef<SliderGroupAttrs>;
|
|
28
31
|
/**
|
|
29
|
-
* The track accepts clicks and drags for the nearest thumb
|
|
30
|
-
* through `v-bind`: a vapor render
|
|
31
|
-
*
|
|
32
|
+
* The track accepts clicks and drags for the nearest thumb, and follows a hovering pointer.
|
|
33
|
+
* Attach each with its own `@pointer…` listener, never through `v-bind`: a vapor render
|
|
34
|
+
* re-attaches every `on*` key that arrived that way, which drops the listener when the press
|
|
35
|
+
* itself is what re-rendered the element.
|
|
32
36
|
*/
|
|
33
37
|
trackHandlers: {
|
|
34
38
|
onPointerdown: (event: PointerEvent) => void;
|
|
39
|
+
onPointermove: (event: PointerEvent) => void;
|
|
40
|
+
onPointerleave: () => void;
|
|
35
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* The value a press would set where a mouse or pen hovers over the track, snapped to the step,
|
|
44
|
+
* or `null` while none hovers or the slider is disabled.
|
|
45
|
+
*/
|
|
46
|
+
hoverValue: ComputedRef<number | null>;
|
|
47
|
+
/** Where `hoverValue` sits along the thumb's travel, from 0 to 1. */
|
|
48
|
+
hoverPercent: ComputedRef<number | null>;
|
|
36
49
|
/** Inline styles the track needs whatever the stylesheet says. */
|
|
37
50
|
trackStyle: CSSProperties;
|
|
38
51
|
outputProps: ComputedRef<SliderOutputAttrs>;
|
|
@@ -44,6 +57,16 @@ export interface UseSliderReturn {
|
|
|
44
57
|
/** Hand focus to the first thumb, for a click on the label. */
|
|
45
58
|
focusFirstThumb: () => void;
|
|
46
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Where a thumb's travel starts on screen and how long it is. The track's end spacers are
|
|
62
|
+
* borders, and the thumb is positioned inside them, so the travel is the track's box less its
|
|
63
|
+
* borders rather than the box itself: measured against the whole box, a press would land the
|
|
64
|
+
* thumb off the pointer and a drag would trail it. A vertical travel starts at the bottom.
|
|
65
|
+
*/
|
|
66
|
+
export declare const getTrackTravel: (track: HTMLElement, isVertical: boolean) => {
|
|
67
|
+
size: number;
|
|
68
|
+
start: number;
|
|
69
|
+
};
|
|
47
70
|
/**
|
|
48
71
|
* Labelling, the output element, and click-and-drag on the track.
|
|
49
72
|
*
|
|
@@ -1,8 +1,32 @@
|
|
|
1
1
|
import { setInteractionModality } from "./interaction-modality.js";
|
|
2
2
|
import { useMove } from "./use-move.js";
|
|
3
3
|
import { clamp } from "../utils/number.js";
|
|
4
|
-
import { computed, onScopeDispose, toValue } from "vue";
|
|
5
|
-
|
|
4
|
+
import { computed, onScopeDispose, shallowRef, toValue } from "vue";
|
|
5
|
+
// src/composables/use-slider.ts
|
|
6
|
+
/**
|
|
7
|
+
* Where a thumb's travel starts on screen and how long it is. The track's end spacers are
|
|
8
|
+
* borders, and the thumb is positioned inside them, so the travel is the track's box less its
|
|
9
|
+
* borders rather than the box itself: measured against the whole box, a press would land the
|
|
10
|
+
* thumb off the pointer and a drag would trail it. A vertical travel starts at the bottom.
|
|
11
|
+
*/
|
|
12
|
+
var getTrackTravel = (track, isVertical) => {
|
|
13
|
+
const rect = track.getBoundingClientRect();
|
|
14
|
+
const style = getComputedStyle(track);
|
|
15
|
+
if (isVertical) {
|
|
16
|
+
const top = Number.parseFloat(style.borderTopWidth) || 0;
|
|
17
|
+
const bottom = Number.parseFloat(style.borderBottomWidth) || 0;
|
|
18
|
+
return {
|
|
19
|
+
size: rect.height - top - bottom,
|
|
20
|
+
start: rect.bottom - bottom
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
const left = Number.parseFloat(style.borderLeftWidth) || 0;
|
|
24
|
+
const right = Number.parseFloat(style.borderRightWidth) || 0;
|
|
25
|
+
return {
|
|
26
|
+
size: rect.width - left - right,
|
|
27
|
+
start: rect.left + left
|
|
28
|
+
};
|
|
29
|
+
};
|
|
6
30
|
/**
|
|
7
31
|
* Labelling, the output element, and click-and-drag on the track.
|
|
8
32
|
*
|
|
@@ -33,16 +57,23 @@ var useSlider = (options) => {
|
|
|
33
57
|
const ids = [toValue(options.labelId), toValue(options.ariaLabelledby)].filter(Boolean);
|
|
34
58
|
return ids.length > 0 ? ids.join(" ") : void 0;
|
|
35
59
|
});
|
|
60
|
+
/** Where a hovering mouse or pen is along the travel, from 0 to 1, unsnapped. */
|
|
61
|
+
const hoverPosition = shallowRef(null);
|
|
62
|
+
const hoverValue = computed(() => hoverPosition.value === null || state.isDisabled.value ? null : state.getPercentValue(hoverPosition.value));
|
|
36
63
|
/** Index of the thumb the current press on the track is dragging. */
|
|
37
64
|
let draggingIndex = null;
|
|
38
65
|
/** Where that thumb sits along the track, in pixels, as the drag goes on. */
|
|
39
66
|
let currentPosition = null;
|
|
40
67
|
let currentPointerId;
|
|
41
68
|
let detachRelease;
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
69
|
+
const measureTravel = () => trackEl.value ? getTrackTravel(trackEl.value, isVertical.value) : null;
|
|
70
|
+
const trackSize = () => measureTravel()?.size ?? 0;
|
|
71
|
+
/** How far along the travel a point on screen is, from 0 to 1. */
|
|
72
|
+
const percentAt = (clientX, clientY) => {
|
|
73
|
+
const travel = measureTravel();
|
|
74
|
+
if (!travel || travel.size <= 0) return 0;
|
|
75
|
+
const offset = isVertical.value ? travel.start - clientY : clientX - travel.start;
|
|
76
|
+
return clamp(offset / travel.size, 0, 1);
|
|
46
77
|
};
|
|
47
78
|
const { handlers: moveHandlers } = useMove({
|
|
48
79
|
onMove: ({ deltaX, deltaY }) => {
|
|
@@ -83,11 +114,7 @@ var useSlider = (options) => {
|
|
|
83
114
|
const onPointerdown = (event) => {
|
|
84
115
|
if (event.pointerType === "mouse" && (event.button !== 0 || event.altKey || event.ctrlKey || event.metaKey)) return;
|
|
85
116
|
if (!trackEl.value || state.isDisabled.value || state.values.value.some((_, index) => state.isThumbDragging(index))) return;
|
|
86
|
-
const
|
|
87
|
-
const size = isVertical.value ? rect.height : rect.width;
|
|
88
|
-
const offset = isVertical.value ? event.clientY - rect.top : event.clientX - rect.left;
|
|
89
|
-
const percent = isVertical.value ? 1 - offset / size : offset / size;
|
|
90
|
-
const value = state.getPercentValue(percent);
|
|
117
|
+
const value = state.getPercentValue(percentAt(event.clientX, event.clientY));
|
|
91
118
|
const index = closestThumb(value);
|
|
92
119
|
if (index < 0 || !state.isThumbEditable(index)) {
|
|
93
120
|
draggingIndex = null;
|
|
@@ -121,20 +148,29 @@ var useSlider = (options) => {
|
|
|
121
148
|
id: toValue(options.id),
|
|
122
149
|
role: "group"
|
|
123
150
|
})),
|
|
151
|
+
hoverPercent: computed(() => hoverValue.value === null ? null : state.getValuePercent(hoverValue.value)),
|
|
152
|
+
hoverValue,
|
|
124
153
|
labelledBy,
|
|
125
154
|
outputProps: computed(() => ({
|
|
126
155
|
"aria-live": "off",
|
|
127
156
|
for: state.values.value.map((_, index) => getThumbId(index)).join(" ")
|
|
128
157
|
})),
|
|
129
|
-
trackHandlers: {
|
|
130
|
-
onPointerdown(event)
|
|
131
|
-
|
|
132
|
-
|
|
158
|
+
trackHandlers: {
|
|
159
|
+
onPointerdown: (event) => {
|
|
160
|
+
onPointerdown(event);
|
|
161
|
+
moveHandlers.onPointerdown(event);
|
|
162
|
+
},
|
|
163
|
+
onPointerleave: () => {
|
|
164
|
+
hoverPosition.value = null;
|
|
165
|
+
},
|
|
166
|
+
onPointermove: (event) => {
|
|
167
|
+
hoverPosition.value = event.pointerType === "touch" ? null : percentAt(event.clientX, event.clientY);
|
|
168
|
+
}
|
|
169
|
+
},
|
|
133
170
|
trackStyle: {
|
|
134
171
|
position: "relative",
|
|
135
172
|
touchAction: "none"
|
|
136
173
|
}
|
|
137
174
|
};
|
|
138
175
|
};
|
|
139
|
-
|
|
140
|
-
export { useSlider };
|
|
176
|
+
export { getTrackTravel, useSlider };
|
|
@@ -2,7 +2,7 @@ import { useLocalizedStringFormatter } from "./use-localized-string-formatter.js
|
|
|
2
2
|
import { spinbuttonStrings } from "../i18n/spinbutton.js";
|
|
3
3
|
import { announce } from "../utils/live-announcer.js";
|
|
4
4
|
import { computed, onScopeDispose, toValue, watch } from "vue";
|
|
5
|
-
|
|
5
|
+
// src/composables/use-spin-button.ts
|
|
6
6
|
/**
|
|
7
7
|
* How long a held button waits before it starts repeating, and how fast it repeats after that.
|
|
8
8
|
*
|
|
@@ -198,5 +198,4 @@ var useSpinButton = (options = {}) => {
|
|
|
198
198
|
onKeydown
|
|
199
199
|
};
|
|
200
200
|
};
|
|
201
|
-
//#endregion
|
|
202
201
|
export { useSpinButton };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useId as useId$1 } from "./use-id.js";
|
|
2
2
|
import { useSingleSelectListState } from "./use-single-select-list-state.js";
|
|
3
3
|
import { shallowRef, toValue } from "vue";
|
|
4
|
-
|
|
4
|
+
// src/composables/use-tab-list-state.ts
|
|
5
5
|
/**
|
|
6
6
|
* Which tab is selected, and the ids that tie each tab to its panel.
|
|
7
7
|
*
|
|
@@ -35,5 +35,4 @@ var useTabListState = (options = {}) => {
|
|
|
35
35
|
tabsId
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
//#endregion
|
|
39
38
|
export { useTabListState };
|
|
@@ -7,7 +7,7 @@ import { useFormReset } from "./use-form-reset.js";
|
|
|
7
7
|
import { useFormValidation } from "./use-form-validation.js";
|
|
8
8
|
import { setFormValue } from "../utils/form-value.js";
|
|
9
9
|
import { computed, shallowRef, toValue, watch } from "vue";
|
|
10
|
-
|
|
10
|
+
// src/composables/use-text-field.ts
|
|
11
11
|
var [useTextFieldControlContext, provideTextFieldControlContext] = createContext({
|
|
12
12
|
defaultValue: null,
|
|
13
13
|
name: "TextFieldControlContext",
|
|
@@ -62,6 +62,8 @@ var useTextField = (options = {}) => {
|
|
|
62
62
|
"errorMessage"
|
|
63
63
|
]
|
|
64
64
|
});
|
|
65
|
+
/** Bumped on every change the field reports, so the re-assert runs even when the value stays. */
|
|
66
|
+
const changeCount = shallowRef(0);
|
|
65
67
|
/** Whether a control has taken the value over, in which case the field writes nothing. */
|
|
66
68
|
const isValueOwned = shallowRef(false);
|
|
67
69
|
const setValueOwned = (owned) => {
|
|
@@ -82,14 +84,19 @@ var useTextField = (options = {}) => {
|
|
|
82
84
|
watch([
|
|
83
85
|
element,
|
|
84
86
|
value,
|
|
85
|
-
isValueOwned
|
|
87
|
+
isValueOwned,
|
|
88
|
+
changeCount
|
|
86
89
|
], reassert, {
|
|
87
90
|
flush: "post",
|
|
88
91
|
immediate: true
|
|
89
92
|
});
|
|
90
93
|
const setValue = (next) => {
|
|
94
|
+
if (next === value.value) {
|
|
95
|
+
reassert();
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
91
98
|
setState(next);
|
|
92
|
-
|
|
99
|
+
changeCount.value++;
|
|
93
100
|
};
|
|
94
101
|
const initialValue = value.value;
|
|
95
102
|
if (!options.skipFormReset) useFormReset(element, () => toValue(options.defaultValue) ?? initialValue, setState, options.form);
|
|
@@ -182,5 +189,4 @@ var useTextField = (options = {}) => {
|
|
|
182
189
|
value: computed(() => value.value)
|
|
183
190
|
};
|
|
184
191
|
};
|
|
185
|
-
//#endregion
|
|
186
192
|
export { provideTextFieldControlContext, useTextField, useTextFieldControlContext };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { onScopeDispose, toValue, watch } from "vue";
|
|
2
|
-
|
|
2
|
+
// src/composables/use-textarea-autosize.ts
|
|
3
3
|
var px = (value) => {
|
|
4
4
|
const parsed = Number.parseFloat(value);
|
|
5
5
|
return Number.isFinite(parsed) ? parsed : 0;
|
|
@@ -185,5 +185,4 @@ var useTextareaAutosize = (options) => {
|
|
|
185
185
|
onScopeDispose(detach, true);
|
|
186
186
|
return { sync };
|
|
187
187
|
};
|
|
188
|
-
//#endregion
|
|
189
188
|
export { useTextareaAutosize };
|
|
@@ -2,7 +2,7 @@ import { useControllableState } from "./use-controllable-state.js";
|
|
|
2
2
|
import { useDateFieldState } from "./use-date-field-state.js";
|
|
3
3
|
import { computed, toValue } from "vue";
|
|
4
4
|
import { GregorianCalendar, Time, getLocalTimeZone, toCalendarDateTime, toTime, toZoned, today } from "@internationalized/date";
|
|
5
|
-
|
|
5
|
+
// src/composables/use-time-field-state.ts
|
|
6
6
|
/**
|
|
7
7
|
* Midnight, used when no placeholder was given.
|
|
8
8
|
*
|
|
@@ -85,5 +85,4 @@ var useTimeFieldState = (options) => {
|
|
|
85
85
|
timeValue
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
-
//#endregion
|
|
89
88
|
export { useTimeFieldState };
|
|
@@ -6,7 +6,7 @@ import { useLocalizedStringFormatter } from "./use-localized-string-formatter.js
|
|
|
6
6
|
import { toastStrings } from "../i18n/toast.js";
|
|
7
7
|
import { DEFAULT_HOTKEY } from "../components/toast/toast.constants.js";
|
|
8
8
|
import { computed, onScopeDispose, shallowRef, toValue, watch } from "vue";
|
|
9
|
-
|
|
9
|
+
// src/composables/use-toast-region.ts
|
|
10
10
|
var TOAST_SELECTOR = "[role=\"alertdialog\"]";
|
|
11
11
|
/** The package's spelling of react-aria's `focusWithoutScrolling`. */
|
|
12
12
|
var focusQuietly = (element) => {
|
|
@@ -279,5 +279,4 @@ var useToastRegion = (options) => {
|
|
|
279
279
|
}))
|
|
280
280
|
};
|
|
281
281
|
};
|
|
282
|
-
//#endregion
|
|
283
282
|
export { useToastRegion };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useId as useId$1 } from "./use-id.js";
|
|
2
2
|
import { computed, onMounted, onScopeDispose, shallowRef, toValue, watch } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/composables/use-toast.ts
|
|
4
4
|
/**
|
|
5
5
|
* The behaviour and accessibility wiring of one toast, ported from react-aria's `useToast`.
|
|
6
6
|
*
|
|
@@ -80,5 +80,4 @@ var useToast = (options) => {
|
|
|
80
80
|
}))
|
|
81
81
|
};
|
|
82
82
|
};
|
|
83
|
-
//#endregion
|
|
84
83
|
export { useToast };
|