akar 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/accordion/accordion-root.js +2 -2
- package/dist/accordion/accordion-root.js.map +1 -1
- package/dist/avatar/avatar-fallback.js +2 -2
- package/dist/avatar/avatar-fallback.js.map +1 -1
- package/dist/avatar/avatar-image.js +2 -2
- package/dist/avatar/avatar-image.js.map +1 -1
- package/dist/avatar/avatar-root.js +3 -3
- package/dist/avatar/avatar-root.js.map +1 -1
- package/dist/calendar/calendar-cell-trigger.js +1 -1
- package/dist/calendar/calendar-cell-trigger.js.map +1 -1
- package/dist/calendar/calendar-cell.js +5 -5
- package/dist/calendar/calendar-cell.js.map +1 -1
- package/dist/calendar/calendar-next.js +1 -1
- package/dist/calendar/calendar-next.js.map +1 -1
- package/dist/calendar/calendar-prev.js +1 -1
- package/dist/calendar/calendar-prev.js.map +1 -1
- package/dist/calendar/calendar-root.js +2 -2
- package/dist/calendar/calendar-root.js.map +1 -1
- package/dist/checkbox/checkbox-group-root.js +5 -5
- package/dist/checkbox/checkbox-group-root.js.map +1 -1
- package/dist/checkbox/checkbox-indicator.js +3 -3
- package/dist/checkbox/checkbox-indicator.js.map +1 -1
- package/dist/checkbox/checkbox-root.js +9 -9
- package/dist/checkbox/checkbox-root.js.map +1 -1
- package/dist/collapsible/collapsible-content.js +2 -2
- package/dist/collapsible/collapsible-content.js.map +1 -1
- package/dist/collapsible/collapsible-root.js +1 -1
- package/dist/collapsible/collapsible-root.js.map +1 -1
- package/dist/collapsible/collapsible-trigger.js +2 -2
- package/dist/collapsible/collapsible-trigger.js.map +1 -1
- package/dist/combobox/combobox-anchor.js +3 -3
- package/dist/combobox/combobox-anchor.js.map +1 -1
- package/dist/combobox/combobox-cancel.js +1 -1
- package/dist/combobox/combobox-cancel.js.map +1 -1
- package/dist/combobox/combobox-content-impl.js +1 -1
- package/dist/combobox/combobox-content-impl.js.map +1 -1
- package/dist/combobox/combobox-content.js +1 -1
- package/dist/combobox/combobox-content.js.map +1 -1
- package/dist/combobox/combobox-input.js +6 -6
- package/dist/combobox/combobox-input.js.map +1 -1
- package/dist/combobox/combobox-item.js +2 -2
- package/dist/combobox/combobox-item.js.map +1 -1
- package/dist/combobox/combobox-root.js +11 -9
- package/dist/combobox/combobox-root.js.map +1 -1
- package/dist/combobox/combobox-trigger.js +1 -1
- package/dist/combobox/combobox-trigger.js.map +1 -1
- package/dist/combobox/combobox-virtualizer.js +1 -1
- package/dist/component/arrow.js +5 -5
- package/dist/component/arrow.js.map +1 -1
- package/dist/component/base-separator.js +2 -2
- package/dist/component/base-separator.js.map +1 -1
- package/dist/context-menu/context-menu-trigger.js +2 -2
- package/dist/context-menu/context-menu-trigger.js.map +1 -1
- package/dist/date/parser.js.map +1 -1
- package/dist/date/use-date-field.js +5 -6
- package/dist/date/use-date-field.js.map +1 -1
- package/dist/date-field/date-field-input.js +5 -5
- package/dist/date-field/date-field-input.js.map +1 -1
- package/dist/date-field/date-field-root.js +9 -4
- package/dist/date-field/date-field-root.js.map +1 -1
- package/dist/date-range-field/date-range-field-input.js +6 -6
- package/dist/date-range-field/date-range-field-input.js.map +1 -1
- package/dist/date-range-field/date-range-field-root.js +5 -4
- package/dist/date-range-field/date-range-field-root.js.map +1 -1
- package/dist/date-range-picker/date-range-picker-cell-trigger.js +2 -2
- package/dist/date-range-picker/date-range-picker-cell-trigger.js.map +1 -1
- package/dist/dialog/dialog-close.js +1 -1
- package/dist/dialog/dialog-close.js.map +1 -1
- package/dist/dialog/dialog-content-impl.js +3 -3
- package/dist/dialog/dialog-content-impl.js.map +1 -1
- package/dist/dialog/dialog-content.js +1 -1
- package/dist/dialog/dialog-content.js.map +1 -1
- package/dist/dialog/dialog-overlay-impl.js +2 -2
- package/dist/dialog/dialog-overlay-impl.js.map +1 -1
- package/dist/dialog/dialog-overlay.js +3 -3
- package/dist/dialog/dialog-overlay.js.map +1 -1
- package/dist/dialog/dialog-trigger.js +1 -1
- package/dist/dialog/dialog-trigger.js.map +1 -1
- package/dist/dismissable-layer/dismissable-layer.js +2 -2
- package/dist/dismissable-layer/dismissable-layer.js.map +1 -1
- package/dist/dropdown-menu/dropdown-menu-trigger.js +4 -4
- package/dist/dropdown-menu/dropdown-menu-trigger.js.map +1 -1
- package/dist/editable/editable-cancel-trigger.js +1 -1
- package/dist/editable/editable-cancel-trigger.js.map +1 -1
- package/dist/editable/editable-edit-trigger.js +1 -1
- package/dist/editable/editable-edit-trigger.js.map +1 -1
- package/dist/editable/editable-root.js +3 -3
- package/dist/editable/editable-root.js.map +1 -1
- package/dist/editable/editable-submit-trigger.js +1 -1
- package/dist/editable/editable-submit-trigger.js.map +1 -1
- package/dist/focus-scope/focus-scope.js +2 -2
- package/dist/focus-scope/focus-scope.js.map +1 -1
- package/dist/hover-card/hover-card-content.js +1 -1
- package/dist/hover-card/hover-card-content.js.map +1 -1
- package/dist/hover-card/hover-card-trigger.js +3 -3
- package/dist/hover-card/hover-card-trigger.js.map +1 -1
- package/dist/index.d.ts +756 -754
- package/dist/index.d.ts.map +1 -1
- package/dist/label/label.js.map +1 -1
- package/dist/listbox/listbox-content.js +2 -2
- package/dist/listbox/listbox-content.js.map +1 -1
- package/dist/listbox/listbox-filter.js +2 -2
- package/dist/listbox/listbox-filter.js.map +1 -1
- package/dist/listbox/listbox-item.js +3 -3
- package/dist/listbox/listbox-item.js.map +1 -1
- package/dist/listbox/listbox-root.js +5 -5
- package/dist/listbox/listbox-root.js.map +1 -1
- package/dist/listbox/listbox-virtualizer.js +4 -3
- package/dist/listbox/listbox-virtualizer.js.map +1 -1
- package/dist/menu/menu-content-impl.js +16 -16
- package/dist/menu/menu-content-impl.js.map +1 -1
- package/dist/menu/menu-content.js +1 -1
- package/dist/menu/menu-content.js.map +1 -1
- package/dist/menu/menu-item-impl.js +5 -5
- package/dist/menu/menu-item-impl.js.map +1 -1
- package/dist/menu/menu-item-indicator.js +3 -3
- package/dist/menu/menu-item-indicator.js.map +1 -1
- package/dist/menu/menu-sub-content.js +1 -1
- package/dist/menu/menu-sub-content.js.map +1 -1
- package/dist/navigation-menu/navigation-menu-content.js +1 -1
- package/dist/navigation-menu/navigation-menu-content.js.map +1 -1
- package/dist/navigation-menu/navigation-menu-indicator.js +2 -2
- package/dist/navigation-menu/navigation-menu-indicator.js.map +1 -1
- package/dist/navigation-menu/navigation-menu-item.js +2 -2
- package/dist/navigation-menu/navigation-menu-item.js.map +1 -1
- package/dist/navigation-menu/navigation-menu-link.js +3 -3
- package/dist/navigation-menu/navigation-menu-link.js.map +1 -1
- package/dist/navigation-menu/navigation-menu-list.js +1 -1
- package/dist/navigation-menu/navigation-menu-list.js.map +1 -1
- package/dist/navigation-menu/navigation-menu-root.js +3 -3
- package/dist/navigation-menu/navigation-menu-root.js.map +1 -1
- package/dist/navigation-menu/navigation-menu-sub.js +2 -2
- package/dist/navigation-menu/navigation-menu-sub.js.map +1 -1
- package/dist/navigation-menu/navigation-menu-trigger.js +3 -3
- package/dist/navigation-menu/navigation-menu-trigger.js.map +1 -1
- package/dist/navigation-menu/navigation-menu-viewport.js +3 -3
- package/dist/navigation-menu/navigation-menu-viewport.js.map +1 -1
- package/dist/number-field/number-field-decrement.js +1 -1
- package/dist/number-field/number-field-decrement.js.map +1 -1
- package/dist/number-field/number-field-increment.js +1 -1
- package/dist/number-field/number-field-increment.js.map +1 -1
- package/dist/number-field/number-field-root.js +5 -5
- package/dist/number-field/number-field-root.js.map +1 -1
- package/dist/pagination/pagination-first.js +1 -1
- package/dist/pagination/pagination-first.js.map +1 -1
- package/dist/pagination/pagination-last.js +1 -1
- package/dist/pagination/pagination-last.js.map +1 -1
- package/dist/pagination/pagination-list-item.js +4 -4
- package/dist/pagination/pagination-list-item.js.map +1 -1
- package/dist/pagination/pagination-next.js +1 -1
- package/dist/pagination/pagination-next.js.map +1 -1
- package/dist/pagination/pagination-prev.js +1 -1
- package/dist/pagination/pagination-prev.js.map +1 -1
- package/dist/pagination/pagination-root.js +2 -2
- package/dist/pagination/pagination-root.js.map +1 -1
- package/dist/pin-input/pin-input-input.js +16 -10
- package/dist/pin-input/pin-input-input.js.map +1 -1
- package/dist/pin-input/pin-input-root.js +7 -5
- package/dist/pin-input/pin-input-root.js.map +1 -1
- package/dist/popover/popover-close.js +2 -2
- package/dist/popover/popover-close.js.map +1 -1
- package/dist/popover/popover-content-impl.js +2 -2
- package/dist/popover/popover-content-impl.js.map +1 -1
- package/dist/popover/popover-content.js +1 -1
- package/dist/popover/popover-content.js.map +1 -1
- package/dist/popover/popover-trigger.js +2 -2
- package/dist/popover/popover-trigger.js.map +1 -1
- package/dist/popper/popper-anchor.js +2 -2
- package/dist/popper/popper-anchor.js.map +1 -1
- package/dist/popper/popper-arrow.js +5 -5
- package/dist/popper/popper-arrow.js.map +1 -1
- package/dist/popper/popper-content.js +1 -1
- package/dist/popper/popper-content.js.map +1 -1
- package/dist/progress/progress-root.js +4 -4
- package/dist/progress/progress-root.js.map +1 -1
- package/dist/radio-group/radio-group-indicator.js +3 -3
- package/dist/radio-group/radio-group-indicator.js.map +1 -1
- package/dist/radio-group/radio-group-item.js +1 -1
- package/dist/radio-group/radio-group-item.js.map +1 -1
- package/dist/radio-group/radio-group-root.js +2 -2
- package/dist/radio-group/radio-group-root.js.map +1 -1
- package/dist/radio-group/radio.js +12 -12
- package/dist/radio-group/radio.js.map +1 -1
- package/dist/range-calendar/range-calendar-cell-trigger.js +4 -4
- package/dist/range-calendar/range-calendar-cell-trigger.js.map +1 -1
- package/dist/range-calendar/range-calendar-cell.js +5 -5
- package/dist/range-calendar/range-calendar-cell.js.map +1 -1
- package/dist/range-calendar/range-calendar-next.js +3 -3
- package/dist/range-calendar/range-calendar-next.js.map +1 -1
- package/dist/range-calendar/range-calendar-prev.js +3 -3
- package/dist/range-calendar/range-calendar-prev.js.map +1 -1
- package/dist/range-calendar/range-calendar-root.js +2 -2
- package/dist/range-calendar/range-calendar-root.js.map +1 -1
- package/dist/range-calendar/use-range-calendar.js +1 -1
- package/dist/range-calendar/use-range-calendar.js.map +1 -1
- package/dist/roving-focus/roving-focus-group.js +2 -2
- package/dist/roving-focus/roving-focus-group.js.map +1 -1
- package/dist/roving-focus/roving-focus-item.js +4 -4
- package/dist/roving-focus/roving-focus-item.js.map +1 -1
- package/dist/scroll-area/scroll-area-root.js +1 -1
- package/dist/scroll-area/scroll-area-root.js.map +1 -1
- package/dist/scroll-area/scroll-area-scrollbar-auto.js +1 -1
- package/dist/scroll-area/scroll-area-scrollbar-auto.js.map +1 -1
- package/dist/scroll-area/scroll-area-scrollbar-hover.js +1 -1
- package/dist/scroll-area/scroll-area-scrollbar-hover.js.map +1 -1
- package/dist/scroll-area/scroll-area-scrollbar-impl.js +3 -2
- package/dist/scroll-area/scroll-area-scrollbar-impl.js.map +1 -1
- package/dist/scroll-area/scroll-area-scrollbar-scroll.js +1 -1
- package/dist/scroll-area/scroll-area-scrollbar-scroll.js.map +1 -1
- package/dist/scroll-area/scroll-area-thumb.js +1 -1
- package/dist/scroll-area/scroll-area-thumb.js.map +1 -1
- package/dist/scroll-area/scroll-area-viewport.js +1 -1
- package/dist/scroll-area/scroll-area-viewport.js.map +1 -1
- package/dist/select/select-content-impl.js +1 -1
- package/dist/select/select-content-impl.js.map +1 -1
- package/dist/select/select-icon.js +2 -2
- package/dist/select/select-icon.js.map +1 -1
- package/dist/select/select-item.js +2 -2
- package/dist/select/select-item.js.map +1 -1
- package/dist/select/select-root.js +2 -2
- package/dist/select/select-root.js.map +1 -1
- package/dist/select/select-trigger.js +4 -4
- package/dist/select/select-trigger.js.map +1 -1
- package/dist/select/select-value.js +2 -2
- package/dist/select/select-value.js.map +1 -1
- package/dist/shared/use-date-formatter.js.map +1 -1
- package/dist/shared/use-form-control.js +3 -3
- package/dist/shared/use-form-control.js.map +1 -1
- package/dist/slider/slider-range.js +2 -2
- package/dist/slider/slider-range.js.map +1 -1
- package/dist/slider/slider-root.js +6 -6
- package/dist/slider/slider-root.js.map +1 -1
- package/dist/slider/slider-thumb-impl.js +3 -3
- package/dist/slider/slider-thumb-impl.js.map +1 -1
- package/dist/slider/slider-track.js +2 -2
- package/dist/slider/slider-track.js.map +1 -1
- package/dist/splitter/splitter-group.js +2 -2
- package/dist/splitter/splitter-group.js.map +1 -1
- package/dist/splitter/splitter-panel.js +4 -4
- package/dist/splitter/splitter-panel.js.map +1 -1
- package/dist/splitter/splitter-resize-handle.js +3 -3
- package/dist/splitter/splitter-resize-handle.js.map +1 -1
- package/dist/stepper/stepper-item.js +2 -2
- package/dist/stepper/stepper-item.js.map +1 -1
- package/dist/stepper/stepper-root.js +3 -3
- package/dist/stepper/stepper-root.js.map +1 -1
- package/dist/stepper/stepper-trigger.js +3 -3
- package/dist/stepper/stepper-trigger.js.map +1 -1
- package/dist/switch/switch-root.js +10 -10
- package/dist/switch/switch-root.js.map +1 -1
- package/dist/switch/switch-thumb.js +2 -2
- package/dist/switch/switch-thumb.js.map +1 -1
- package/dist/tabs/tabs-content.js +3 -3
- package/dist/tabs/tabs-content.js.map +1 -1
- package/dist/tabs/tabs-list.js +2 -2
- package/dist/tabs/tabs-list.js.map +1 -1
- package/dist/tabs/tabs-root.js +2 -2
- package/dist/tabs/tabs-root.js.map +1 -1
- package/dist/tabs/tabs-trigger.js +8 -8
- package/dist/tabs/tabs-trigger.js.map +1 -1
- package/dist/tags-input/tags-input-clear.js +1 -1
- package/dist/tags-input/tags-input-clear.js.map +1 -1
- package/dist/tags-input/tags-input-input.js +4 -4
- package/dist/tags-input/tags-input-input.js.map +1 -1
- package/dist/tags-input/tags-input-item-delete.js +2 -2
- package/dist/tags-input/tags-input-item-delete.js.map +1 -1
- package/dist/tags-input/tags-input-item.js +2 -2
- package/dist/tags-input/tags-input-item.js.map +1 -1
- package/dist/tags-input/tags-input-root.js +5 -5
- package/dist/tags-input/tags-input-root.js.map +1 -1
- package/dist/teleport/teleport.js +4 -4
- package/dist/teleport/teleport.js.map +1 -1
- package/dist/time-field/time-field-input.js +5 -5
- package/dist/time-field/time-field-input.js.map +1 -1
- package/dist/time-field/time-field-root.js +3 -3
- package/dist/time-field/time-field-root.js.map +1 -1
- package/dist/toast/toast-action.js +4 -4
- package/dist/toast/toast-action.js.map +1 -1
- package/dist/toast/toast-announce-exclude.js +3 -3
- package/dist/toast/toast-announce-exclude.js.map +1 -1
- package/dist/toast/toast-close.js +1 -1
- package/dist/toast/toast-close.js.map +1 -1
- package/dist/toast/toast-root-impl.js +4 -4
- package/dist/toast/toast-root-impl.js.map +1 -1
- package/dist/toast/toast-root.js +5 -5
- package/dist/toast/toast-root.js.map +1 -1
- package/dist/toast/toast-viewport.js +2 -2
- package/dist/toast/toast-viewport.js.map +1 -1
- package/dist/toggle/toggle.js +8 -8
- package/dist/toggle/toggle.js.map +1 -1
- package/dist/toggle-group/toggle-group-item.js +1 -1
- package/dist/toggle-group/toggle-group-item.js.map +1 -1
- package/dist/toggle-group/toggle-group-root.js +6 -6
- package/dist/toggle-group/toggle-group-root.js.map +1 -1
- package/dist/toolbar/toolbar-button.js +2 -2
- package/dist/toolbar/toolbar-button.js.map +1 -1
- package/dist/toolbar/toolbar-root.js +3 -3
- package/dist/toolbar/toolbar-root.js.map +1 -1
- package/dist/toolbar/toolbar-separator.js +1 -1
- package/dist/toolbar/toolbar-separator.js.map +1 -1
- package/dist/tooltip/tooltip-content.js +1 -1
- package/dist/tooltip/tooltip-content.js.map +1 -1
- package/dist/tooltip/tooltip-trigger.js +2 -2
- package/dist/tooltip/tooltip-trigger.js.map +1 -1
- package/dist/tree/tree-item.js +7 -7
- package/dist/tree/tree-item.js.map +1 -1
- package/dist/tree/tree-root.js +3 -3
- package/dist/tree/tree-root.js.map +1 -1
- package/dist/tree/tree-virtualizer.js +4 -3
- package/dist/tree/tree-virtualizer.js.map +1 -1
- package/dist/visually-hidden/visually-hidden-input.js +3 -3
- package/dist/visually-hidden/visually-hidden-input.js.map +1 -1
- package/dist/visually-hidden/visually-hidden.js +5 -5
- package/dist/visually-hidden/visually-hidden.js.map +1 -1
- package/package.json +7 -7
- package/src/accordion/accordion-content.vue +3 -3
- package/src/accordion/accordion-header.vue +3 -3
- package/src/accordion/accordion-item.vue +3 -3
- package/src/accordion/accordion-root.vue +6 -6
- package/src/accordion/accordion-trigger.vue +3 -3
- package/src/alert-dialog/alert-dialog-action.vue +3 -3
- package/src/alert-dialog/alert-dialog-cancel.vue +3 -3
- package/src/alert-dialog/alert-dialog-content.vue +4 -4
- package/src/alert-dialog/alert-dialog-description.vue +3 -3
- package/src/alert-dialog/alert-dialog-overlay.vue +3 -3
- package/src/alert-dialog/alert-dialog-portal.vue +2 -2
- package/src/alert-dialog/alert-dialog-root.vue +3 -3
- package/src/alert-dialog/alert-dialog-title.vue +3 -3
- package/src/alert-dialog/alert-dialog-trigger.vue +3 -3
- package/src/avatar/avatar-fallback.vue +3 -3
- package/src/avatar/avatar-image.vue +3 -3
- package/src/avatar/avatar-root.vue +4 -4
- package/src/calendar/calendar-cell-trigger.vue +3 -3
- package/src/calendar/calendar-cell.vue +2 -2
- package/src/calendar/calendar-grid-body.vue +2 -2
- package/src/calendar/calendar-grid-head.vue +2 -2
- package/src/calendar/calendar-grid-row.vue +2 -2
- package/src/calendar/calendar-grid.vue +2 -2
- package/src/calendar/calendar-head-cell.vue +2 -2
- package/src/calendar/calendar-header.vue +2 -2
- package/src/calendar/calendar-heading.vue +2 -2
- package/src/calendar/calendar-next.vue +2 -2
- package/src/calendar/calendar-prev.vue +2 -2
- package/src/calendar/calendar-root.vue +7 -7
- package/src/calendar/use-calendar.ts +4 -4
- package/src/checkbox/checkbox-group-root.vue +6 -6
- package/src/checkbox/checkbox-indicator.vue +4 -4
- package/src/checkbox/checkbox-root.vue +6 -6
- package/src/collapsible/collapsible-content.vue +4 -4
- package/src/collapsible/collapsible-root.vue +3 -3
- package/src/collapsible/collapsible-trigger.vue +3 -3
- package/src/collection/collection.ts +1 -1
- package/src/combobox/combobox-anchor.vue +4 -4
- package/src/combobox/combobox-arrow.vue +3 -3
- package/src/combobox/combobox-cancel.vue +3 -3
- package/src/combobox/combobox-content-impl.vue +14 -12
- package/src/combobox/combobox-content.vue +2 -2
- package/src/combobox/combobox-empty.vue +2 -2
- package/src/combobox/combobox-group.vue +3 -3
- package/src/combobox/combobox-input.vue +7 -7
- package/src/combobox/combobox-item-indicator.vue +2 -2
- package/src/combobox/combobox-item.vue +7 -7
- package/src/combobox/combobox-label.vue +3 -3
- package/src/combobox/combobox-portal.vue +2 -2
- package/src/combobox/combobox-root.vue +12 -13
- package/src/combobox/combobox-separator.vue +3 -3
- package/src/combobox/combobox-trigger.vue +3 -3
- package/src/combobox/combobox-viewport.vue +4 -4
- package/src/combobox/combobox-virtualizer.vue +3 -3
- package/src/config-provider/config-provider.vue +2 -2
- package/src/context-menu/context-menu-arrow.vue +3 -3
- package/src/context-menu/context-menu-checkbox-item.vue +3 -3
- package/src/context-menu/context-menu-content.vue +3 -3
- package/src/context-menu/context-menu-group.vue +3 -3
- package/src/context-menu/context-menu-item-indicator.vue +3 -3
- package/src/context-menu/context-menu-item.vue +3 -3
- package/src/context-menu/context-menu-label.vue +3 -3
- package/src/context-menu/context-menu-portal.vue +2 -2
- package/src/context-menu/context-menu-radio-group.vue +3 -3
- package/src/context-menu/context-menu-radio-item.vue +3 -3
- package/src/context-menu/context-menu-root.vue +4 -4
- package/src/context-menu/context-menu-separator.vue +3 -3
- package/src/context-menu/context-menu-sub-content.vue +3 -3
- package/src/context-menu/context-menu-sub-trigger.vue +3 -3
- package/src/context-menu/context-menu-sub.vue +3 -3
- package/src/context-menu/context-menu-trigger.vue +5 -5
- package/src/date/calendar.date.ts +1 -1
- package/src/date-field/date-field-input.vue +4 -4
- package/src/date-field/date-field-root.vue +26 -18
- package/src/date-picker/date-picker-anchor.vue +2 -2
- package/src/date-picker/date-picker-arrow.vue +2 -2
- package/src/date-picker/date-picker-calendar.vue +1 -1
- package/src/date-picker/date-picker-cell-trigger.vue +3 -3
- package/src/date-picker/date-picker-cell.vue +2 -2
- package/src/date-picker/date-picker-close.vue +2 -2
- package/src/date-picker/date-picker-content.vue +1 -1
- package/src/date-picker/date-picker-next.vue +1 -1
- package/src/date-picker/date-picker-prev.vue +1 -1
- package/src/date-picker/date-picker-root.vue +5 -5
- package/src/date-range-field/date-range-field-input.vue +4 -4
- package/src/date-range-field/date-range-field-root.vue +11 -10
- package/src/date-range-picker/date-range-picker-cell-trigger.vue +4 -3
- package/src/date-range-picker/date-range-picker-content.vue +1 -1
- package/src/date-range-picker/date-range-picker-next.vue +1 -1
- package/src/date-range-picker/date-range-picker-prev.vue +1 -1
- package/src/date-range-picker/date-range-picker-root.vue +5 -5
- package/src/dialog/dialog-close.vue +3 -3
- package/src/dialog/dialog-content-impl.vue +5 -5
- package/src/dialog/dialog-content-modal.vue +1 -1
- package/src/dialog/dialog-content-non-modal.vue +1 -1
- package/src/dialog/dialog-content.vue +2 -2
- package/src/dialog/dialog-description.vue +3 -3
- package/src/dialog/dialog-overlay-impl.vue +4 -4
- package/src/dialog/dialog-overlay.vue +2 -2
- package/src/dialog/dialog-portal.vue +2 -2
- package/src/dialog/dialog-root.vue +1 -1
- package/src/dialog/dialog-title.vue +3 -3
- package/src/dialog/dialog-trigger.vue +3 -3
- package/src/dismissable-layer/dismissable-layer-branch.vue +3 -3
- package/src/dismissable-layer/dismissable-layer.vue +3 -3
- package/src/dismissable-layer/utils.ts +1 -1
- package/src/drawer/drawer-root-nested.vue +1 -1
- package/src/drawer/drawer-root.vue +1 -1
- package/src/drawer/drawer.context.ts +1 -1
- package/src/dropdown-menu/dropdown-menu-arrow.vue +3 -3
- package/src/dropdown-menu/dropdown-menu-checkbox-item.vue +3 -3
- package/src/dropdown-menu/dropdown-menu-content.vue +3 -3
- package/src/dropdown-menu/dropdown-menu-group.vue +3 -3
- package/src/dropdown-menu/dropdown-menu-item-indicator.vue +3 -3
- package/src/dropdown-menu/dropdown-menu-item.vue +3 -3
- package/src/dropdown-menu/dropdown-menu-label.vue +3 -3
- package/src/dropdown-menu/dropdown-menu-portal.vue +2 -2
- package/src/dropdown-menu/dropdown-menu-radio-group.vue +3 -3
- package/src/dropdown-menu/dropdown-menu-radio-item.vue +3 -3
- package/src/dropdown-menu/dropdown-menu-root.vue +3 -3
- package/src/dropdown-menu/dropdown-menu-separator.vue +3 -3
- package/src/dropdown-menu/dropdown-menu-sub-content.vue +3 -3
- package/src/dropdown-menu/dropdown-menu-sub-trigger.vue +3 -3
- package/src/dropdown-menu/dropdown-menu-sub.vue +3 -3
- package/src/dropdown-menu/dropdown-menu-trigger.vue +4 -4
- package/src/editable/editable-area.vue +2 -2
- package/src/editable/editable-cancel-trigger.vue +2 -2
- package/src/editable/editable-edit-trigger.vue +2 -2
- package/src/editable/editable-input.vue +2 -2
- package/src/editable/editable-preview.vue +2 -2
- package/src/editable/editable-root.vue +7 -7
- package/src/editable/editable-submit-trigger.vue +2 -2
- package/src/focus-guards/focus-guards.vue +1 -1
- package/src/focus-scope/focus-scope.vue +3 -3
- package/src/focus-scope/utils.ts +1 -1
- package/src/hover-card/hover-card-arrow.vue +3 -3
- package/src/hover-card/hover-card-content-impl.vue +5 -5
- package/src/hover-card/hover-card-content.vue +2 -2
- package/src/hover-card/hover-card-portal.vue +2 -2
- package/src/hover-card/hover-card-root.vue +2 -2
- package/src/hover-card/hover-card-trigger.vue +4 -4
- package/src/index.ts +1 -0
- package/src/label/label.vue +9 -6
- package/src/listbox/listbox-content.vue +3 -3
- package/src/listbox/listbox-filter.vue +2 -2
- package/src/listbox/listbox-group-label.vue +2 -2
- package/src/listbox/listbox-group.vue +3 -3
- package/src/listbox/listbox-item-indicator.vue +3 -3
- package/src/listbox/listbox-item.vue +5 -5
- package/src/listbox/listbox-root.vue +8 -8
- package/src/listbox/listbox-virtualizer.vue +12 -8
- package/src/menu/menu-anchor.vue +2 -2
- package/src/menu/menu-arrow.vue +2 -2
- package/src/menu/menu-checkbox-item.vue +1 -1
- package/src/menu/menu-content-impl.vue +10 -10
- package/src/menu/menu-content.vue +2 -2
- package/src/menu/menu-group.vue +2 -2
- package/src/menu/menu-item-impl.vue +4 -4
- package/src/menu/menu-item-indicator.vue +4 -4
- package/src/menu/menu-item.vue +1 -1
- package/src/menu/menu-label.vue +2 -2
- package/src/menu/menu-portal.vue +2 -2
- package/src/menu/menu-radio-group.vue +2 -2
- package/src/menu/menu-radio-item.vue +1 -1
- package/src/menu/menu-root-content-modal.vue +1 -1
- package/src/menu/menu-root-content-non-modal.vue +1 -1
- package/src/menu/menu-root.vue +3 -3
- package/src/menu/menu-separator.vue +2 -2
- package/src/menu/menu-sub-content.vue +2 -2
- package/src/menu/menu-sub-trigger.vue +1 -1
- package/src/menu/menu-sub.vue +2 -2
- package/src/menu/utils.ts +1 -1
- package/src/navigation-menu/navigation-menu-content-impl.vue +5 -5
- package/src/navigation-menu/navigation-menu-content.vue +2 -2
- package/src/navigation-menu/navigation-menu-indicator.vue +4 -4
- package/src/navigation-menu/navigation-menu-item.vue +4 -4
- package/src/navigation-menu/navigation-menu-link.vue +4 -4
- package/src/navigation-menu/navigation-menu-list.vue +3 -3
- package/src/navigation-menu/navigation-menu-root.vue +5 -5
- package/src/navigation-menu/navigation-menu-sub.vue +4 -4
- package/src/navigation-menu/navigation-menu-trigger.vue +5 -5
- package/src/navigation-menu/navigation-menu-viewport.vue +4 -4
- package/src/navigation-menu/utils.ts +1 -1
- package/src/number-field/number-field-decrement.vue +2 -2
- package/src/number-field/number-field-increment.vue +2 -2
- package/src/number-field/number-field-input.vue +3 -3
- package/src/number-field/number-field-root.vue +5 -5
- package/src/pagination/pagination-ellipsis.vue +3 -3
- package/src/pagination/pagination-first.vue +3 -3
- package/src/pagination/pagination-last.vue +3 -3
- package/src/pagination/pagination-list-item.vue +3 -3
- package/src/pagination/pagination-list.vue +3 -3
- package/src/pagination/pagination-next.vue +3 -3
- package/src/pagination/pagination-prev.vue +3 -3
- package/src/pagination/pagination-root.vue +3 -3
- package/src/pin-input/pin-input-input.vue +29 -13
- package/src/pin-input/pin-input-root.vue +19 -11
- package/src/popover/popover-anchor.vue +3 -3
- package/src/popover/popover-arrow.vue +3 -3
- package/src/popover/popover-close.vue +3 -3
- package/src/popover/popover-content-impl.vue +7 -7
- package/src/popover/popover-content-modal.vue +2 -2
- package/src/popover/popover-content-non-modal.vue +1 -1
- package/src/popover/popover-content.vue +2 -2
- package/src/popover/popover-portal.vue +2 -2
- package/src/popover/popover-root.vue +2 -2
- package/src/popover/popover-trigger.vue +4 -4
- package/src/popper/popper-anchor.vue +3 -3
- package/src/popper/popper-arrow.vue +4 -4
- package/src/popper/popper-content.vue +3 -3
- package/src/popper/popper-root.vue +1 -1
- package/src/presence/presence.ts +1 -1
- package/src/presence/use-presence.ts +1 -1
- package/src/primitive/slot-primitive.ts +1 -1
- package/src/progress/progress-indicator.vue +3 -3
- package/src/progress/progress-root.vue +3 -3
- package/src/radio-group/radio-group-indicator.vue +4 -4
- package/src/radio-group/radio-group-item.vue +2 -2
- package/src/radio-group/radio-group-root.vue +6 -6
- package/src/radio-group/radio.vue +5 -5
- package/src/radio-group/utils.ts +2 -2
- package/src/range-calendar/range-calendar-cell-trigger.vue +11 -4
- package/src/range-calendar/range-calendar-cell.vue +2 -2
- package/src/range-calendar/range-calendar-grid-body.vue +2 -2
- package/src/range-calendar/range-calendar-grid-head.vue +2 -2
- package/src/range-calendar/range-calendar-grid-row.vue +2 -2
- package/src/range-calendar/range-calendar-grid.vue +2 -2
- package/src/range-calendar/range-calendar-head-cell.vue +2 -2
- package/src/range-calendar/range-calendar-header.vue +2 -2
- package/src/range-calendar/range-calendar-heading.vue +2 -2
- package/src/range-calendar/range-calendar-next.vue +2 -2
- package/src/range-calendar/range-calendar-prev.vue +2 -2
- package/src/range-calendar/range-calendar-root.vue +10 -10
- package/src/range-calendar/use-range-calendar.ts +3 -3
- package/src/roving-focus/roving-focus-group.vue +4 -4
- package/src/roving-focus/roving-focus-item.vue +4 -4
- package/src/roving-focus/utils.ts +1 -1
- package/src/scroll-area/scroll-area-corner-impl.vue +1 -1
- package/src/scroll-area/scroll-area-corner.vue +2 -2
- package/src/scroll-area/scroll-area-root.vue +3 -3
- package/src/scroll-area/scroll-area-scrollbar-auto.vue +2 -2
- package/src/scroll-area/scroll-area-scrollbar-hover.vue +2 -2
- package/src/scroll-area/scroll-area-scrollbar-impl.vue +6 -4
- package/src/scroll-area/scroll-area-scrollbar-scroll.vue +2 -2
- package/src/scroll-area/scroll-area-scrollbar-visible.vue +1 -1
- package/src/scroll-area/scroll-area-scrollbar-x.vue +1 -1
- package/src/scroll-area/scroll-area-scrollbar-y.vue +1 -1
- package/src/scroll-area/scroll-area-scrollbar.vue +2 -2
- package/src/scroll-area/scroll-area-thumb.vue +3 -3
- package/src/scroll-area/scroll-area-viewport.vue +4 -4
- package/src/select/bubble-select.vue +1 -1
- package/src/select/select-arrow.vue +2 -2
- package/src/select/select-content-impl.vue +9 -9
- package/src/select/select-content.vue +2 -2
- package/src/select/select-group.vue +3 -3
- package/src/select/select-icon.vue +2 -2
- package/src/select/select-item-aligned-position.vue +4 -4
- package/src/select/select-item-indicator.vue +2 -2
- package/src/select/select-item-text.vue +3 -3
- package/src/select/select-item.vue +6 -6
- package/src/select/select-label.vue +2 -2
- package/src/select/select-popper-position.vue +2 -2
- package/src/select/select-portal.vue +2 -2
- package/src/select/select-provider.vue +1 -1
- package/src/select/select-root.vue +4 -4
- package/src/select/select-scroll-button-impl.vue +3 -3
- package/src/select/select-scroll-down-button.vue +2 -2
- package/src/select/select-scroll-up-button.vue +2 -2
- package/src/select/select-separator.vue +2 -2
- package/src/select/select-trigger.vue +5 -5
- package/src/select/select-value.vue +4 -4
- package/src/select/select-viewport.vue +4 -4
- package/src/select/utils.ts +1 -1
- package/src/separator/separator.vue +2 -2
- package/src/shared/component/arrow.vue +2 -2
- package/src/shared/component/base-separator.vue +2 -2
- package/src/shared/date/parser.ts +2 -6
- package/src/shared/date/use-date-field.ts +17 -9
- package/src/shared/index.ts +1 -1
- package/src/shared/use-body-scroll-lock.ts +1 -1
- package/src/shared/use-date-formatter.ts +1 -3
- package/src/shared/use-direction.ts +1 -1
- package/src/shared/use-form-control.ts +2 -2
- package/src/shared/use-grace-area.ts +1 -1
- package/src/shared/use-id.ts +1 -1
- package/src/shared/use-locale.ts +1 -1
- package/src/shared/use-nonce.ts +1 -1
- package/src/slider/slider-horizontal.vue +1 -1
- package/src/slider/slider-impl.vue +2 -2
- package/src/slider/slider-range.vue +3 -3
- package/src/slider/slider-root.vue +4 -4
- package/src/slider/slider-thumb-impl.vue +4 -4
- package/src/slider/slider-thumb.vue +3 -3
- package/src/slider/slider-track.vue +3 -3
- package/src/slider/slider-vertical.vue +1 -1
- package/src/slider/utils.ts +1 -1
- package/src/splitter/splitter-group.vue +3 -3
- package/src/splitter/splitter-panel.vue +3 -3
- package/src/splitter/splitter-resize-handle.vue +4 -4
- package/src/stepper/stepper-description.vue +3 -3
- package/src/stepper/stepper-indicator.vue +3 -3
- package/src/stepper/stepper-item.vue +3 -3
- package/src/stepper/stepper-root.vue +3 -3
- package/src/stepper/stepper-separator.vue +3 -3
- package/src/stepper/stepper-title.vue +3 -3
- package/src/stepper/stepper-trigger.vue +3 -3
- package/src/switch/switch-root.vue +5 -5
- package/src/switch/switch-thumb.vue +3 -3
- package/src/tabs/tabs-content.vue +5 -5
- package/src/tabs/tabs-indicator.vue +3 -3
- package/src/tabs/tabs-list.vue +4 -4
- package/src/tabs/tabs-root.vue +3 -3
- package/src/tabs/tabs-trigger.vue +5 -5
- package/src/tabs/utils.ts +1 -1
- package/src/tags-input/tags-input-clear.vue +3 -3
- package/src/tags-input/tags-input-input.vue +3 -3
- package/src/tags-input/tags-input-item-delete.vue +4 -4
- package/src/tags-input/tags-input-item-text.vue +3 -3
- package/src/tags-input/tags-input-item.vue +4 -4
- package/src/tags-input/tags-input-root.vue +26 -18
- package/src/time-field/time-field-input.vue +4 -4
- package/src/time-field/time-field-root.vue +9 -9
- package/src/toast/focus-proxy.vue +1 -1
- package/src/toast/toast-action.vue +1 -1
- package/src/toast/toast-announce-exclude.vue +2 -2
- package/src/toast/toast-announce.vue +1 -1
- package/src/toast/toast-close.vue +3 -3
- package/src/toast/toast-description.vue +3 -3
- package/src/toast/toast-portal.vue +2 -2
- package/src/toast/toast-provider.vue +2 -2
- package/src/toast/toast-root-impl.vue +5 -5
- package/src/toast/toast-root.vue +2 -2
- package/src/toast/toast-title.vue +3 -3
- package/src/toast/toast-viewport.vue +6 -6
- package/src/toggle/toggle.vue +6 -6
- package/src/toggle-group/toggle-group-item.vue +6 -6
- package/src/toggle-group/toggle-group-root.vue +6 -6
- package/src/toolbar/toolbar-button.vue +4 -4
- package/src/toolbar/toolbar-link.vue +4 -4
- package/src/toolbar/toolbar-root.vue +6 -6
- package/src/toolbar/toolbar-separator.vue +2 -2
- package/src/toolbar/toolbar-toggle-group.vue +3 -3
- package/src/toolbar/toolbar-toggle-item.vue +3 -3
- package/src/tooltip/tooltip-arrow.vue +3 -3
- package/src/tooltip/tooltip-content-hoverable.vue +1 -1
- package/src/tooltip/tooltip-content-impl.vue +6 -6
- package/src/tooltip/tooltip-content.vue +2 -2
- package/src/tooltip/tooltip-portal.vue +2 -2
- package/src/tooltip/tooltip-provider.vue +1 -1
- package/src/tooltip/tooltip-root.vue +2 -2
- package/src/tooltip/tooltip-trigger.vue +5 -4
- package/src/tree/tree-item.vue +5 -5
- package/src/tree/tree-root.vue +7 -7
- package/src/tree/tree-virtualizer.vue +11 -7
- package/src/viewport/viewport.vue +4 -4
- package/src/visually-hidden/visually-hidden-input-bubble.vue +1 -1
- package/src/visually-hidden/visually-hidden.vue +2 -3
|
@@ -17,8 +17,8 @@ export interface ASelectContentProps extends SelectContentImplProps {
|
|
|
17
17
|
|
|
18
18
|
<script setup lang="ts">
|
|
19
19
|
import { computed, onMounted, ref, watch } from 'vue';
|
|
20
|
-
import { APresence } from '
|
|
21
|
-
import { useForwardPropsEmits } from '
|
|
20
|
+
import { APresence } from '../presence';
|
|
21
|
+
import { useForwardPropsEmits } from '../shared';
|
|
22
22
|
import SelectContentImpl from './select-content-impl.vue';
|
|
23
23
|
import SelectProvider from './select-provider.vue';
|
|
24
24
|
import { injectASelectRootContext } from './select-root.vue';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { APrimitiveProps } from '
|
|
3
|
-
import { createContext, useId } from '
|
|
2
|
+
import type { APrimitiveProps } from '../primitive';
|
|
3
|
+
import { createContext, useId } from '../shared';
|
|
4
4
|
|
|
5
5
|
export interface ASelectGroupProps extends APrimitiveProps {}
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ export const [injectASelectGroupContext, provideSelectGroupContext]
|
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
15
|
<script setup lang="ts">
|
|
16
|
-
import { APrimitive } from '
|
|
16
|
+
import { APrimitive } from '../primitive';
|
|
17
17
|
|
|
18
18
|
const props = defineProps<ASelectGroupProps>();
|
|
19
19
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { APrimitiveProps } from '
|
|
2
|
+
import type { APrimitiveProps } from '../primitive';
|
|
3
3
|
|
|
4
4
|
export interface ASelectIconProps extends APrimitiveProps {}
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
|
-
import { APrimitive } from '
|
|
8
|
+
import { APrimitive } from '../primitive';
|
|
9
9
|
|
|
10
10
|
withDefaults(defineProps<ASelectIconProps>(), {
|
|
11
11
|
as: 'span',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { Ref } from 'vue';
|
|
3
|
-
import type { APrimitiveProps } from '
|
|
3
|
+
import type { APrimitiveProps } from '../primitive';
|
|
4
4
|
import { useResizeObserver } from '@vueuse/core';
|
|
5
|
-
import { useCollection } from '
|
|
6
|
-
import { createContext, useForwardExpose } from '
|
|
5
|
+
import { useCollection } from '../collection';
|
|
6
|
+
import { createContext, useForwardExpose } from '../shared';
|
|
7
7
|
|
|
8
8
|
interface SelectItemAlignedPositionContext {
|
|
9
9
|
contentWrapper?: Ref<HTMLElement | undefined>;
|
|
@@ -20,7 +20,7 @@ export const [injectSelectItemAlignedPositionContext, provideSelectItemAlignedPo
|
|
|
20
20
|
<script setup lang="ts">
|
|
21
21
|
import { clamp } from '@vinicunca/perkakas';
|
|
22
22
|
import { nextTick, onMounted, ref } from 'vue';
|
|
23
|
-
import { APrimitive } from '
|
|
23
|
+
import { APrimitive } from '../primitive';
|
|
24
24
|
import { injectSelectContentContext } from './select-content-impl.vue';
|
|
25
25
|
import { injectASelectRootContext } from './select-root.vue';
|
|
26
26
|
import { CONTENT_MARGIN } from './utils';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { APrimitiveProps } from '
|
|
2
|
+
import type { APrimitiveProps } from '../primitive';
|
|
3
3
|
|
|
4
4
|
export interface ASelectItemIndicatorProps extends APrimitiveProps {}
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
|
-
import { APrimitive } from '
|
|
8
|
+
import { APrimitive } from '../primitive';
|
|
9
9
|
import { injectASelectItemContext } from './select-item.vue';
|
|
10
10
|
|
|
11
11
|
const props = withDefaults(defineProps<ASelectItemIndicatorProps>(), {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { APrimitiveProps } from '
|
|
3
|
-
import { useForwardExpose } from '
|
|
2
|
+
import type { APrimitiveProps } from '../primitive';
|
|
3
|
+
import { useForwardExpose } from '../shared';
|
|
4
4
|
import { injectASelectRootContext } from './select-root.vue';
|
|
5
5
|
|
|
6
6
|
export interface ASelectItemTextProps extends APrimitiveProps {}
|
|
@@ -8,7 +8,7 @@ export interface ASelectItemTextProps extends APrimitiveProps {}
|
|
|
8
8
|
|
|
9
9
|
<script setup lang="ts">
|
|
10
10
|
import { computed, onMounted, onUnmounted } from 'vue';
|
|
11
|
-
import { APrimitive } from '
|
|
11
|
+
import { APrimitive } from '../primitive';
|
|
12
12
|
import { injectSelectContentContext } from './select-content-impl.vue';
|
|
13
13
|
import { injectASelectItemContext } from './select-item.vue';
|
|
14
14
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { Ref } from 'vue';
|
|
3
|
-
import type { APrimitiveProps } from '
|
|
4
|
-
import type { AcceptableValue } from '
|
|
5
|
-
import { createContext } from '
|
|
3
|
+
import type { APrimitiveProps } from '../primitive';
|
|
4
|
+
import type { AcceptableValue } from '../shared/types';
|
|
5
|
+
import { createContext } from '../shared';
|
|
6
6
|
|
|
7
7
|
interface SelectItemContext<T = AcceptableValue> {
|
|
8
8
|
value: T;
|
|
@@ -48,9 +48,9 @@ import {
|
|
|
48
48
|
ref,
|
|
49
49
|
toRefs,
|
|
50
50
|
} from 'vue';
|
|
51
|
-
import { useCollection } from '
|
|
52
|
-
import { APrimitive } from '
|
|
53
|
-
import { getActiveElement, handleAndDispatchCustomEvent, useForwardExpose, useId } from '
|
|
51
|
+
import { useCollection } from '../collection';
|
|
52
|
+
import { APrimitive } from '../primitive';
|
|
53
|
+
import { getActiveElement, handleAndDispatchCustomEvent, useForwardExpose, useId } from '../shared';
|
|
54
54
|
import { injectSelectContentContext } from './select-content-impl.vue';
|
|
55
55
|
import { injectASelectRootContext } from './select-root.vue';
|
|
56
56
|
import { SELECTION_KEYS, valueComparator } from './utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { APrimitiveProps } from '
|
|
2
|
+
import type { APrimitiveProps } from '../primitive';
|
|
3
3
|
|
|
4
4
|
export interface ASelectLabelProps extends APrimitiveProps {
|
|
5
5
|
for?: string;
|
|
@@ -7,7 +7,7 @@ export interface ASelectLabelProps extends APrimitiveProps {
|
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<script setup lang="ts">
|
|
10
|
-
import { APrimitive } from '
|
|
10
|
+
import { APrimitive } from '../primitive';
|
|
11
11
|
import { injectASelectGroupContext } from './select-group.vue';
|
|
12
12
|
|
|
13
13
|
const props = withDefaults(defineProps<ASelectLabelProps>(), {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { APopperContentProps } from '
|
|
2
|
+
import type { APopperContentProps } from '../popper';
|
|
3
3
|
|
|
4
4
|
export interface SelectPopperPositionProps extends APopperContentProps {}
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
|
-
import { APopperContent } from '
|
|
8
|
+
import { APopperContent } from '../popper';
|
|
9
9
|
import { useForwardProps } from '..';
|
|
10
10
|
import { CONTENT_MARGIN } from './utils';
|
|
11
11
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { ATeleportProps } from '
|
|
2
|
+
import type { ATeleportProps } from '../teleport';
|
|
3
3
|
|
|
4
4
|
export interface ASelectPortalProps extends ATeleportProps {}
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
|
-
import { ATeleport } from '
|
|
8
|
+
import { ATeleport } from '../teleport';
|
|
9
9
|
|
|
10
10
|
const props = defineProps<ASelectPortalProps>();
|
|
11
11
|
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { AcceptableValue } from '
|
|
2
|
+
import type { AcceptableValue } from '../shared/types';
|
|
3
3
|
import type { SelectRootContext } from './select-root.vue';
|
|
4
4
|
import { provideSelectContentContext, SelectContentDefaultContextValue } from './select-content-impl.vue';
|
|
5
5
|
import { provideSelectRootContext } from './select-root.vue';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { Ref } from 'vue';
|
|
3
|
-
import type { AcceptableValue, Direction, FormFieldProps } from '
|
|
3
|
+
import type { AcceptableValue, Direction, FormFieldProps } from '../shared/types';
|
|
4
4
|
import { isNullish } from '@vinicunca/perkakas';
|
|
5
|
-
import { useCollection } from '
|
|
6
|
-
import { createContext, useDirection, useFormControl } from '
|
|
5
|
+
import { useCollection } from '../collection';
|
|
6
|
+
import { createContext, useDirection, useFormControl } from '../shared';
|
|
7
7
|
import { compare, valueComparator } from './utils';
|
|
8
8
|
|
|
9
9
|
export interface ASelectRootProps<T = AcceptableValue> extends FormFieldProps {
|
|
@@ -70,7 +70,7 @@ interface SelectOption {
|
|
|
70
70
|
<script setup lang="ts" generic="T extends AcceptableValue = AcceptableValue">
|
|
71
71
|
import { useVModel } from '@vueuse/core';
|
|
72
72
|
import { computed, ref, toRefs } from 'vue';
|
|
73
|
-
import { APopperRoot } from '
|
|
73
|
+
import { APopperRoot } from '../popper';
|
|
74
74
|
import BubbleSelect from './bubble-select.vue';
|
|
75
75
|
|
|
76
76
|
defineOptions({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { onBeforeUnmount, ref, watchEffect } from 'vue';
|
|
3
|
-
import { useCollection } from '
|
|
4
|
-
import { APrimitive } from '
|
|
5
|
-
import { getActiveElement } from '
|
|
3
|
+
import { useCollection } from '../collection';
|
|
4
|
+
import { APrimitive } from '../primitive';
|
|
5
|
+
import { getActiveElement } from '../shared';
|
|
6
6
|
import { injectSelectContentContext } from './select-content-impl.vue';
|
|
7
7
|
|
|
8
8
|
export type SelectScrollButtonImplEmits = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { APrimitiveProps } from '
|
|
3
|
-
import { useForwardExpose } from '
|
|
2
|
+
import type { APrimitiveProps } from '../primitive';
|
|
3
|
+
import { useForwardExpose } from '../shared';
|
|
4
4
|
|
|
5
5
|
export interface ASelectScrollDownButtonProps extends APrimitiveProps {}
|
|
6
6
|
</script>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { APrimitiveProps } from '
|
|
3
|
-
import { useForwardExpose } from '
|
|
2
|
+
import type { APrimitiveProps } from '../primitive';
|
|
3
|
+
import { useForwardExpose } from '../shared';
|
|
4
4
|
|
|
5
5
|
export interface ASelectScrollUpButtonProps extends APrimitiveProps {}
|
|
6
6
|
</script>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { APrimitiveProps } from '
|
|
2
|
+
import type { APrimitiveProps } from '../primitive';
|
|
3
3
|
|
|
4
4
|
export interface ASelectSeparatorProps extends APrimitiveProps {}
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
|
-
import { APrimitive } from '
|
|
8
|
+
import { APrimitive } from '../primitive';
|
|
9
9
|
|
|
10
10
|
const props = defineProps<ASelectSeparatorProps>();
|
|
11
11
|
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { useCollection } from '
|
|
2
|
+
import { useCollection } from '../collection';
|
|
3
3
|
|
|
4
4
|
export interface ASelectTriggerProps extends APopperAnchorProps {
|
|
5
5
|
disabled?: boolean;
|
|
@@ -7,11 +7,11 @@ export interface ASelectTriggerProps extends APopperAnchorProps {
|
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<script setup lang="ts">
|
|
10
|
-
import type { APopperAnchorProps } from '
|
|
10
|
+
import type { APopperAnchorProps } from '../popper';
|
|
11
11
|
import { computed, onMounted } from 'vue';
|
|
12
|
-
import { APopperAnchor } from '
|
|
13
|
-
import { APrimitive } from '
|
|
14
|
-
import { useForwardExpose, useId, useTypeahead } from '
|
|
12
|
+
import { APopperAnchor } from '../popper';
|
|
13
|
+
import { APrimitive } from '../primitive';
|
|
14
|
+
import { useForwardExpose, useId, useTypeahead } from '../shared';
|
|
15
15
|
import {
|
|
16
16
|
injectASelectRootContext,
|
|
17
17
|
} from './select-root.vue';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { APrimitiveProps } from '
|
|
3
|
-
import type { AcceptableValue } from '
|
|
2
|
+
import type { APrimitiveProps } from '../primitive';
|
|
3
|
+
import type { AcceptableValue } from '../shared/types';
|
|
4
4
|
import { valueComparator } from './utils';
|
|
5
5
|
|
|
6
6
|
export interface ASelectValueProps extends APrimitiveProps {
|
|
@@ -11,8 +11,8 @@ export interface ASelectValueProps extends APrimitiveProps {
|
|
|
11
11
|
|
|
12
12
|
<script setup lang="ts">
|
|
13
13
|
import { computed, onMounted } from 'vue';
|
|
14
|
-
import { APrimitive } from '
|
|
15
|
-
import { useForwardExpose } from '
|
|
14
|
+
import { APrimitive } from '../primitive';
|
|
15
|
+
import { useForwardExpose } from '../shared';
|
|
16
16
|
import { injectASelectRootContext } from './select-root.vue';
|
|
17
17
|
|
|
18
18
|
const props = withDefaults(defineProps<ASelectValueProps>(), {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { APrimitiveProps } from '
|
|
3
|
-
import { useForwardExpose } from '
|
|
4
|
-
import { useNonce } from '
|
|
2
|
+
import type { APrimitiveProps } from '../primitive';
|
|
3
|
+
import { useForwardExpose } from '../shared';
|
|
4
|
+
import { useNonce } from '../shared/use-nonce';
|
|
5
5
|
|
|
6
6
|
export interface ASelectViewportProps extends APrimitiveProps {
|
|
7
7
|
/**
|
|
@@ -15,7 +15,7 @@ export interface ASelectViewportProps extends APrimitiveProps {
|
|
|
15
15
|
import { onMounted, ref, toRefs } from 'vue';
|
|
16
16
|
import {
|
|
17
17
|
APrimitive,
|
|
18
|
-
} from '
|
|
18
|
+
} from '../primitive';
|
|
19
19
|
import { injectSelectContentContext } from './select-content-impl.vue';
|
|
20
20
|
import { injectSelectItemAlignedPositionContext } from './select-item-aligned-position.vue';
|
|
21
21
|
import { CONTENT_MARGIN } from './utils';
|
package/src/select/utils.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AcceptableValue } from '
|
|
1
|
+
import type { AcceptableValue } from '../shared/types';
|
|
2
2
|
import { isDeepEqual, isFunction, isString, KEY_CODES } from '@vinicunca/perkakas';
|
|
3
3
|
|
|
4
4
|
export const OPEN_KEYS = [' ', KEY_CODES.ENTER, KEY_CODES.ARROW_UP, KEY_CODES.ARROW_DOWN];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { BaseSeparatorProps } from '
|
|
2
|
+
import type { BaseSeparatorProps } from '../shared/component/base-separator.vue';
|
|
3
3
|
|
|
4
4
|
export interface ASeparatorProps extends BaseSeparatorProps {}
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
|
-
import BaseSeparator from '
|
|
8
|
+
import BaseSeparator from '../shared/component/base-separator.vue';
|
|
9
9
|
|
|
10
10
|
const props = withDefaults(defineProps<ASeparatorProps>(), {
|
|
11
11
|
orientation: 'horizontal',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { APrimitiveProps } from '
|
|
2
|
+
import type { APrimitiveProps } from '../../primitive';
|
|
3
3
|
import { useForwardExpose } from '../use-forward-expose';
|
|
4
4
|
|
|
5
5
|
export interface ArrowProps extends APrimitiveProps {
|
|
@@ -25,7 +25,7 @@ export interface ArrowProps extends APrimitiveProps {
|
|
|
25
25
|
</script>
|
|
26
26
|
|
|
27
27
|
<script setup lang="ts">
|
|
28
|
-
import { APrimitive } from '
|
|
28
|
+
import { APrimitive } from '../../primitive';
|
|
29
29
|
|
|
30
30
|
const props = withDefaults(defineProps<ArrowProps>(), {
|
|
31
31
|
width: 10,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { APrimitiveProps } from '
|
|
2
|
+
import type { APrimitiveProps } from '../../primitive';
|
|
3
3
|
import type { DataOrientation } from '../types';
|
|
4
4
|
|
|
5
5
|
export interface BaseSeparatorProps extends APrimitiveProps {
|
|
@@ -19,7 +19,7 @@ export interface BaseSeparatorProps extends APrimitiveProps {
|
|
|
19
19
|
|
|
20
20
|
<script setup lang="ts">
|
|
21
21
|
import { computed } from 'vue';
|
|
22
|
-
import { APrimitive } from '
|
|
22
|
+
import { APrimitive } from '../../primitive';
|
|
23
23
|
|
|
24
24
|
const props = withDefaults(defineProps<BaseSeparatorProps>(), {
|
|
25
25
|
orientation: 'horizontal',
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
import type { DateFields, DateValue } from '@internationalized/date';
|
|
2
2
|
import type { Ref } from 'vue';
|
|
3
|
-
import type { UseDateFormatter } from '~~/shared';
|
|
4
3
|
import type { DateSegmentPart, Granularity, HourCycle, SegmentContentObj, SegmentPart, SegmentValueObj, TimeSegmentPart } from '.';
|
|
5
|
-
import {
|
|
4
|
+
import type { UseDateFormatter } from '../../shared';
|
|
6
5
|
import {
|
|
7
6
|
DATE_SEGMENT_PARTS,
|
|
8
|
-
|
|
9
7
|
EDITABLE_SEGMENT_PARTS,
|
|
10
8
|
getOptsByGranularity,
|
|
11
9
|
getPlaceholder,
|
|
12
|
-
|
|
13
10
|
isDateSegmentPart,
|
|
14
11
|
isSegmentPart,
|
|
15
|
-
|
|
16
12
|
TIME_SEGMENT_PARTS,
|
|
17
|
-
|
|
18
13
|
} from '.';
|
|
14
|
+
import { isZonedDateTime, toDate } from '../../date';
|
|
19
15
|
|
|
20
16
|
const calendarDateTimeGranularities = ['hour', 'minute', 'second'];
|
|
21
17
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { CalendarDateTime, CycleTimeOptions, DateFields, DateValue, TimeFields } from '@internationalized/date';
|
|
2
2
|
import type { Ref } from 'vue';
|
|
3
|
-
import type { UseDateFormatter } from '
|
|
3
|
+
import type { UseDateFormatter } from '../../shared';
|
|
4
4
|
import type { AnyExceptLiteral, DateStep, HourCycle, SegmentPart, SegmentValueObj } from './types';
|
|
5
5
|
import { isIncludedIn, KEY_CODES } from '@vinicunca/perkakas';
|
|
6
6
|
import { computed } from 'vue';
|
|
7
|
-
import { getDaysInMonth, toDate } from '
|
|
7
|
+
import { getDaysInMonth, toDate } from '../../date';
|
|
8
8
|
import { isAcceptableSegmentKey, isNumberString, isSegmentNavigationKey } from './segment';
|
|
9
9
|
|
|
10
10
|
interface MinuteSecondIncrementProps {
|
|
@@ -46,7 +46,18 @@ function commonSegmentAttrs(props: SegmentAttrProps) {
|
|
|
46
46
|
function daySegmentAttrs(props: SegmentAttrProps) {
|
|
47
47
|
const { segmentValues, placeholder } = props;
|
|
48
48
|
const isEmpty = segmentValues.day === null;
|
|
49
|
-
|
|
49
|
+
// Include month from segmentValues to ensure correct max days calculation
|
|
50
|
+
const dateFields: { day?: number; month?: number } = {};
|
|
51
|
+
|
|
52
|
+
if (segmentValues.day) {
|
|
53
|
+
dateFields.day = segmentValues.day;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (segmentValues.month) {
|
|
57
|
+
dateFields.month = segmentValues.month;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const date = Object.keys(dateFields).length > 0 ? placeholder.set(dateFields) : placeholder;
|
|
50
61
|
|
|
51
62
|
const valueNow = date.day;
|
|
52
63
|
const valueMin = 1;
|
|
@@ -915,12 +926,9 @@ export function useDateField(props: UseDateFieldProps) {
|
|
|
915
926
|
if (Object.values(props.segmentValues.value).every((item) => item !== null)) {
|
|
916
927
|
const updateObject = { ...props.segmentValues.value as Record<AnyExceptLiteral, number> };
|
|
917
928
|
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
const value = updateObject[part as AnyExceptLiteral];
|
|
922
|
-
dateRef = dateRef.set({ [part]: value });
|
|
923
|
-
});
|
|
929
|
+
// Set all date fields at once to avoid order-dependent constraints
|
|
930
|
+
// (e.g., setting day: 31 before month: 3 would incorrectly constrain the day)
|
|
931
|
+
const dateRef = props.placeholder.value.set(updateObject);
|
|
924
932
|
|
|
925
933
|
props.modelValue.value = dateRef.copy();
|
|
926
934
|
}
|
package/src/shared/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from './arrays';
|
|
2
2
|
export { createContext } from './create-context';
|
|
3
|
-
export { type DateRange, type DateStep, type DateValue } from './date';
|
|
3
|
+
export { type DateRange, type DateStep, type DateValue, type SegmentPart } from './date';
|
|
4
4
|
export { getActiveElement } from './get-active-element';
|
|
5
5
|
export { handleAndDispatchCustomEvent } from './handle-and-dispatch-custom-event';
|
|
6
6
|
export { isValueEqualOrExist } from './is-value-equal-or-exist';
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import { isIOS, tryOnBeforeUnmount } from '@vueuse/shared';
|
|
8
8
|
import { defu } from 'defu';
|
|
9
9
|
import { computed, nextTick, ref, watch } from 'vue';
|
|
10
|
-
import { injectAConfigProviderContext } from '
|
|
10
|
+
import { injectAConfigProviderContext } from '../config-provider/config-provider.vue';
|
|
11
11
|
|
|
12
12
|
const useBodyLockStackCount = createSharedComposable(() => {
|
|
13
13
|
const map = ref<Map<string, boolean>>(new Map());
|
|
@@ -5,14 +5,12 @@
|
|
|
5
5
|
import type { DateValue, ZonedDateTime } from '@internationalized/date';
|
|
6
6
|
import {
|
|
7
7
|
DateFormatter,
|
|
8
|
-
|
|
9
8
|
getLocalTimeZone,
|
|
10
9
|
today,
|
|
11
|
-
|
|
12
10
|
} from '@internationalized/date';
|
|
13
11
|
import { ref } from 'vue';
|
|
14
12
|
|
|
15
|
-
import { hasTime, isZonedDateTime, toDate } from '
|
|
13
|
+
import { hasTime, isZonedDateTime, toDate } from '../date';
|
|
16
14
|
|
|
17
15
|
export interface DateFormatterOptions extends Intl.DateTimeFormatOptions {
|
|
18
16
|
calendar?: string;
|
|
@@ -3,7 +3,7 @@ import type { Ref } from 'vue';
|
|
|
3
3
|
import type { Direction } from './types';
|
|
4
4
|
import { computed, ref } from 'vue';
|
|
5
5
|
|
|
6
|
-
import { injectAConfigProviderContext } from '
|
|
6
|
+
import { injectAConfigProviderContext } from '../config-provider/config-provider.vue';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The `useDirection` function provides a way to access the current direction in your application.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MaybeElementRef } from '@vueuse/core';
|
|
2
|
-
import {
|
|
3
|
-
import { computed } from 'vue';
|
|
2
|
+
import { unrefElement } from '@vueuse/core';
|
|
3
|
+
import { computed, toValue } from 'vue';
|
|
4
4
|
|
|
5
5
|
export function useFormControl(el: MaybeElementRef) {
|
|
6
6
|
// We set this to true by default so that events bubble to forms without JS (SSR)
|
package/src/shared/use-id.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import { injectAConfigProviderContext } from '
|
|
2
|
+
import { injectAConfigProviderContext } from '../config-provider/config-provider.vue';
|
|
3
3
|
|
|
4
4
|
// Inspired from https://github.com/tailwindlabs/headlessui/issues/2913
|
|
5
5
|
// as the alternative, and a fallback for Vue version < 3.5
|
package/src/shared/use-locale.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
2
|
import { computed, ref } from 'vue';
|
|
3
|
-
import { injectAConfigProviderContext } from '
|
|
3
|
+
import { injectAConfigProviderContext } from '../config-provider/config-provider.vue';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The `useLocale` function provides a way to access the current locale in your application.
|
package/src/shared/use-nonce.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
2
|
import { computed, ref } from 'vue';
|
|
3
|
-
import { injectAConfigProviderContext } from '
|
|
3
|
+
import { injectAConfigProviderContext } from '../config-provider/config-provider.vue';
|
|
4
4
|
|
|
5
5
|
export function useNonce(nonce?: Ref<string | undefined>) {
|
|
6
6
|
const context = injectAConfigProviderContext({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { Direction, SliderOrientationPrivateEmits, SliderOrientationPrivateProps } from './utils';
|
|
3
3
|
import { computed, ref, toRefs } from 'vue';
|
|
4
|
-
import { useForwardExpose } from '
|
|
4
|
+
import { useForwardExpose } from '../shared';
|
|
5
5
|
import SliderImpl from './slider-impl.vue';
|
|
6
6
|
import { injectASliderRootContext } from './slider-root.vue';
|
|
7
7
|
import { BACK_KEYS, linearScale, provideSliderOrientationContext } from './utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { APrimitiveProps } from '
|
|
2
|
+
import type { APrimitiveProps } from '../primitive';
|
|
3
3
|
import { isIncludedIn, KEY_CODES } from '@vinicunca/perkakas';
|
|
4
4
|
|
|
5
5
|
export type SliderImplEmits = {
|
|
@@ -15,7 +15,7 @@ export interface SliderImplProps extends APrimitiveProps {}
|
|
|
15
15
|
</script>
|
|
16
16
|
|
|
17
17
|
<script setup lang="ts">
|
|
18
|
-
import { APrimitive } from '
|
|
18
|
+
import { APrimitive } from '../primitive';
|
|
19
19
|
import { injectASliderRootContext } from './slider-root.vue';
|
|
20
20
|
import { ARROW_KEYS, PAGE_KEYS } from './utils';
|
|
21
21
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { APrimitiveProps } from '
|
|
3
|
-
import { useForwardExpose } from '
|
|
2
|
+
import type { APrimitiveProps } from '../primitive';
|
|
3
|
+
import { useForwardExpose } from '../shared';
|
|
4
4
|
|
|
5
5
|
export interface ASliderRangeProps extends APrimitiveProps {}
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<script setup lang="ts">
|
|
9
9
|
import { computed } from 'vue';
|
|
10
|
-
import { APrimitive } from '
|
|
10
|
+
import { APrimitive } from '../primitive';
|
|
11
11
|
import { injectASliderRootContext } from './slider-root.vue';
|
|
12
12
|
import { convertValueToPercentage, injectSliderOrientationContext } from './utils';
|
|
13
13
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { ComputedRef, Ref } from 'vue';
|
|
3
|
-
import type { APrimitiveProps } from '
|
|
3
|
+
import type { APrimitiveProps } from '../primitive';
|
|
4
4
|
import type { DataOrientation, Direction, FormFieldProps } from '../shared/types';
|
|
5
5
|
import { clamp, isIncludedIn } from '@vinicunca/perkakas';
|
|
6
|
-
import { useCollection } from '
|
|
7
|
-
import { createContext, useDirection, useFormControl, useForwardExpose } from '
|
|
6
|
+
import { useCollection } from '../collection';
|
|
7
|
+
import { createContext, useDirection, useFormControl, useForwardExpose } from '../shared';
|
|
8
8
|
|
|
9
9
|
type ThumbAlignment = 'contain' | 'overflow';
|
|
10
10
|
|
|
@@ -72,7 +72,7 @@ export const [
|
|
|
72
72
|
<script setup lang="ts">
|
|
73
73
|
import { useVModel } from '@vueuse/core';
|
|
74
74
|
import { computed, ref, toRaw, toRefs } from 'vue';
|
|
75
|
-
import { AVisuallyHiddenInput } from '
|
|
75
|
+
import { AVisuallyHiddenInput } from '../visually-hidden';
|
|
76
76
|
import SliderHorizontal from './slider-horizontal.vue';
|
|
77
77
|
import SliderVertical from './slider-vertical.vue';
|
|
78
78
|
import {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { APrimitiveProps } from '
|
|
2
|
+
import type { APrimitiveProps } from '../primitive';
|
|
3
3
|
|
|
4
4
|
export interface SliderThumbImplProps extends APrimitiveProps {
|
|
5
5
|
index: number;
|
|
@@ -9,9 +9,9 @@ export interface SliderThumbImplProps extends APrimitiveProps {
|
|
|
9
9
|
<script setup lang="ts">
|
|
10
10
|
import { useMounted } from '@vueuse/core';
|
|
11
11
|
import { computed, onMounted, onUnmounted } from 'vue';
|
|
12
|
-
import { useCollection } from '
|
|
13
|
-
import { APrimitive } from '
|
|
14
|
-
import { useForwardExpose, useSize } from '
|
|
12
|
+
import { useCollection } from '../collection';
|
|
13
|
+
import { APrimitive } from '../primitive';
|
|
14
|
+
import { useForwardExpose, useSize } from '../shared';
|
|
15
15
|
import { injectASliderRootContext } from './slider-root.vue';
|
|
16
16
|
import { convertValueToPercentage, getLabel, getThumbInBoundsOffset, injectSliderOrientationContext } from './utils';
|
|
17
17
|
|