bits-ui 1.0.0-next.11 → 1.0.0-next.13
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/bits/accordion/accordion.svelte.d.ts +2 -2
- package/dist/bits/accordion/accordion.svelte.js +2 -3
- package/dist/bits/accordion/components/accordion-content.svelte +2 -3
- package/dist/bits/accordion/components/accordion-header.svelte +1 -2
- package/dist/bits/accordion/components/accordion-item.svelte +1 -2
- package/dist/bits/accordion/components/accordion-trigger.svelte +1 -2
- package/dist/bits/accordion/components/accordion.svelte +2 -3
- package/dist/bits/accordion/types.d.ts +8 -8
- package/dist/bits/alert-dialog/components/alert-dialog-action.svelte +1 -2
- package/dist/bits/alert-dialog/components/alert-dialog-cancel.svelte +1 -2
- package/dist/bits/alert-dialog/components/alert-dialog-content.svelte +3 -4
- package/dist/bits/alert-dialog/components/alert-dialog.svelte +1 -1
- package/dist/bits/alert-dialog/types.d.ts +1 -1
- package/dist/bits/aspect-ratio/aspect-ratio.svelte.js +1 -1
- package/dist/bits/aspect-ratio/components/aspect-ratio.svelte +1 -2
- package/dist/bits/aspect-ratio/types.d.ts +2 -2
- package/dist/bits/avatar/avatar.svelte.d.ts +1 -1
- package/dist/bits/avatar/avatar.svelte.js +1 -1
- package/dist/bits/avatar/components/avatar-fallback.svelte +1 -2
- package/dist/bits/avatar/components/avatar-image.svelte +1 -2
- package/dist/bits/avatar/components/avatar.svelte +1 -2
- package/dist/bits/avatar/types.d.ts +4 -4
- package/dist/bits/calendar/calendar.svelte.d.ts +7 -7
- package/dist/bits/calendar/calendar.svelte.js +1 -1
- package/dist/bits/calendar/components/calendar-cell.svelte +1 -2
- package/dist/bits/calendar/components/calendar-day.svelte +1 -2
- package/dist/bits/calendar/components/calendar-grid-body.svelte +1 -2
- package/dist/bits/calendar/components/calendar-grid-head.svelte +1 -2
- package/dist/bits/calendar/components/calendar-grid-row.svelte +1 -2
- package/dist/bits/calendar/components/calendar-grid.svelte +1 -2
- package/dist/bits/calendar/components/calendar-head-cell.svelte +1 -2
- package/dist/bits/calendar/components/calendar-header.svelte +1 -2
- package/dist/bits/calendar/components/calendar-heading.svelte +1 -2
- package/dist/bits/calendar/components/calendar-next-button.svelte +1 -2
- package/dist/bits/calendar/components/calendar-prev-button.svelte +1 -2
- package/dist/bits/calendar/components/calendar.svelte +2 -3
- package/dist/bits/calendar/types.d.ts +15 -15
- package/dist/bits/checkbox/checkbox.svelte.d.ts +2 -2
- package/dist/bits/checkbox/checkbox.svelte.js +1 -2
- package/dist/bits/checkbox/components/checkbox.svelte +1 -2
- package/dist/bits/checkbox/types.d.ts +2 -2
- package/dist/bits/collapsible/collapsible.svelte.d.ts +1 -1
- package/dist/bits/collapsible/collapsible.svelte.js +2 -3
- package/dist/bits/collapsible/components/collapsible-content.svelte +2 -3
- package/dist/bits/collapsible/components/collapsible-content.svelte.d.ts +3 -3
- package/dist/bits/collapsible/components/collapsible-trigger.svelte +1 -2
- package/dist/bits/collapsible/components/collapsible.svelte +2 -3
- package/dist/bits/collapsible/types.d.ts +6 -6
- package/dist/bits/combobox/components/combobox-input.svelte +1 -2
- package/dist/bits/combobox/components/combobox-trigger.svelte +1 -2
- package/dist/bits/combobox/components/combobox.svelte +1 -1
- package/dist/bits/combobox/components/combobox.svelte.d.ts +1 -1
- package/dist/bits/combobox/types.d.ts +2 -2
- package/dist/bits/command/command.svelte.d.ts +4 -4
- package/dist/bits/command/command.svelte.js +5 -8
- package/dist/bits/command/components/_command-label.svelte +2 -2
- package/dist/bits/command/components/_command-label.svelte.d.ts +2 -2
- package/dist/bits/command/components/command-empty.svelte +1 -2
- package/dist/bits/command/components/command-group-heading.svelte +1 -2
- package/dist/bits/command/components/command-group-items.svelte +1 -2
- package/dist/bits/command/components/command-group.svelte +1 -2
- package/dist/bits/command/components/command-input.svelte +1 -2
- package/dist/bits/command/components/command-item.svelte +2 -3
- package/dist/bits/command/components/command-link-item.svelte +2 -3
- package/dist/bits/command/components/command-list.svelte +1 -2
- package/dist/bits/command/components/command-loading.svelte +1 -2
- package/dist/bits/command/components/command-separator.svelte +1 -2
- package/dist/bits/command/components/command.svelte +2 -3
- package/dist/bits/command/types.d.ts +13 -13
- package/dist/bits/context-menu/components/context-menu-content-static.svelte +3 -4
- package/dist/bits/context-menu/components/context-menu-content.svelte +3 -4
- package/dist/bits/context-menu/components/context-menu-trigger.svelte +1 -2
- package/dist/bits/context-menu/components/context-menu.svelte +1 -1
- package/dist/bits/context-menu/types.d.ts +2 -2
- package/dist/bits/date-field/components/date-field-input.svelte +1 -2
- package/dist/bits/date-field/components/date-field-label.svelte +1 -2
- package/dist/bits/date-field/components/date-field-segment.svelte +1 -2
- package/dist/bits/date-field/components/date-field.svelte +1 -1
- package/dist/bits/date-field/date-field.svelte.d.ts +29 -29
- package/dist/bits/date-field/date-field.svelte.js +1 -3
- package/dist/bits/date-field/types.d.ts +4 -4
- package/dist/bits/date-picker/components/date-picker-calendar.svelte +1 -2
- package/dist/bits/date-picker/components/date-picker-content-static.svelte +1 -1
- package/dist/bits/date-picker/components/date-picker-content.svelte +1 -1
- package/dist/bits/date-picker/components/date-picker-trigger.svelte +1 -1
- package/dist/bits/date-picker/components/date-picker.svelte +1 -1
- package/dist/bits/date-picker/types.d.ts +2 -2
- package/dist/bits/date-range-field/components/date-range-field-input.svelte +1 -2
- package/dist/bits/date-range-field/components/date-range-field-label.svelte +1 -2
- package/dist/bits/date-range-field/components/date-range-field.svelte +2 -3
- package/dist/bits/date-range-field/date-range-field.svelte.js +1 -3
- package/dist/bits/date-range-field/types.d.ts +4 -4
- package/dist/bits/date-range-picker/components/date-range-picker-calendar.svelte +1 -2
- package/dist/bits/date-range-picker/components/date-range-picker-trigger.svelte +1 -1
- package/dist/bits/date-range-picker/components/date-range-picker.svelte +2 -3
- package/dist/bits/date-range-picker/types.d.ts +3 -3
- package/dist/bits/dialog/components/dialog-close.svelte +1 -2
- package/dist/bits/dialog/components/dialog-content.svelte +3 -4
- package/dist/bits/dialog/components/dialog-description.svelte +1 -2
- package/dist/bits/dialog/components/dialog-overlay.svelte +1 -2
- package/dist/bits/dialog/components/dialog-title.svelte +1 -2
- package/dist/bits/dialog/components/dialog-trigger.svelte +1 -2
- package/dist/bits/dialog/components/dialog.svelte +1 -1
- package/dist/bits/dialog/dialog.svelte.d.ts +1 -1
- package/dist/bits/dialog/dialog.svelte.js +7 -7
- package/dist/bits/dialog/types.d.ts +8 -8
- package/dist/bits/dropdown-menu/components/dropdown-menu-content-static.svelte +3 -4
- package/dist/bits/dropdown-menu/components/dropdown-menu-content.svelte +3 -4
- package/dist/bits/label/components/label.svelte +1 -2
- package/dist/bits/label/label.svelte.js +1 -1
- package/dist/bits/label/types.d.ts +2 -2
- package/dist/bits/link-preview/components/link-preview-content-static.svelte +1 -2
- package/dist/bits/link-preview/components/link-preview-content.svelte +2 -3
- package/dist/bits/link-preview/components/link-preview-trigger.svelte +1 -2
- package/dist/bits/link-preview/components/link-preview.svelte +1 -1
- package/dist/bits/link-preview/link-preview.svelte.d.ts +1 -1
- package/dist/bits/link-preview/link-preview.svelte.js +1 -5
- package/dist/bits/link-preview/types.d.ts +6 -6
- package/dist/bits/listbox/components/listbox-content-static.svelte +3 -4
- package/dist/bits/listbox/components/listbox-content.svelte +3 -4
- package/dist/bits/listbox/components/listbox-group-heading.svelte +1 -2
- package/dist/bits/listbox/components/listbox-group.svelte +1 -2
- package/dist/bits/listbox/components/listbox-item.svelte +2 -3
- package/dist/bits/listbox/components/listbox-scroll-down-button.svelte +1 -2
- package/dist/bits/listbox/components/listbox-scroll-up-button.svelte +1 -2
- package/dist/bits/listbox/components/listbox-trigger.svelte +1 -2
- package/dist/bits/listbox/components/listbox-viewport.svelte +1 -2
- package/dist/bits/listbox/components/listbox.svelte +1 -1
- package/dist/bits/listbox/components/listbox.svelte.d.ts +1 -1
- package/dist/bits/listbox/listbox.svelte.d.ts +1 -1
- package/dist/bits/listbox/listbox.svelte.js +5 -8
- package/dist/bits/listbox/types.d.ts +16 -16
- package/dist/bits/menu/components/menu-arrow.svelte +1 -1
- package/dist/bits/menu/components/menu-checkbox-item.svelte +2 -3
- package/dist/bits/menu/components/menu-content-static.svelte +3 -4
- package/dist/bits/menu/components/menu-content.svelte +3 -4
- package/dist/bits/menu/components/menu-group-heading.svelte +1 -2
- package/dist/bits/menu/components/menu-group.svelte +1 -2
- package/dist/bits/menu/components/menu-item.svelte +2 -3
- package/dist/bits/menu/components/menu-radio-group.svelte +2 -3
- package/dist/bits/menu/components/menu-radio-item.svelte +2 -3
- package/dist/bits/menu/components/menu-separator.svelte +1 -2
- package/dist/bits/menu/components/menu-sub-content-static.svelte +3 -5
- package/dist/bits/menu/components/menu-sub-content.svelte +3 -5
- package/dist/bits/menu/components/menu-sub-trigger.svelte +1 -2
- package/dist/bits/menu/components/menu-sub.svelte +1 -1
- package/dist/bits/menu/components/menu-trigger.svelte +1 -2
- package/dist/bits/menu/components/menu.svelte +1 -1
- package/dist/bits/menu/menu.svelte.d.ts +9 -9
- package/dist/bits/menu/menu.svelte.js +4 -9
- package/dist/bits/menu/types.d.ts +18 -18
- package/dist/bits/menubar/components/menubar-content-static.svelte +1 -2
- package/dist/bits/menubar/components/menubar-content.svelte +1 -2
- package/dist/bits/menubar/components/menubar-trigger.svelte +1 -2
- package/dist/bits/menubar/components/menubar.svelte +2 -3
- package/dist/bits/menubar/menubar.svelte.d.ts +1 -1
- package/dist/bits/menubar/menubar.svelte.js +2 -4
- package/dist/bits/menubar/types.d.ts +3 -3
- package/dist/bits/navigation-menu/components/navigation-menu-content.svelte +1 -2
- package/dist/bits/navigation-menu/components/navigation-menu-indicator.svelte +1 -2
- package/dist/bits/navigation-menu/components/navigation-menu-item.svelte +1 -2
- package/dist/bits/navigation-menu/components/navigation-menu-link.svelte +2 -3
- package/dist/bits/navigation-menu/components/navigation-menu-list.svelte +1 -2
- package/dist/bits/navigation-menu/components/navigation-menu-trigger.svelte +1 -2
- package/dist/bits/navigation-menu/components/navigation-menu-viewport.svelte +1 -2
- package/dist/bits/navigation-menu/components/navigation-menu.svelte +2 -3
- package/dist/bits/navigation-menu/navigation-menu.svelte.d.ts +2 -2
- package/dist/bits/navigation-menu/navigation-menu.svelte.js +6 -8
- package/dist/bits/navigation-menu/types.d.ts +10 -10
- package/dist/bits/pagination/components/pagination-next-button.svelte +1 -2
- package/dist/bits/pagination/components/pagination-page.svelte +1 -2
- package/dist/bits/pagination/components/pagination-prev-button.svelte +1 -2
- package/dist/bits/pagination/components/pagination.svelte +2 -3
- package/dist/bits/pagination/components/pagination.svelte.d.ts +1 -1
- package/dist/bits/pagination/pagination.svelte.js +1 -1
- package/dist/bits/pagination/types.d.ts +5 -5
- package/dist/bits/pin-input/components/pin-input-cell.svelte +1 -2
- package/dist/bits/pin-input/components/pin-input.svelte +2 -3
- package/dist/bits/pin-input/pin-input.svelte.d.ts +3 -3
- package/dist/bits/pin-input/pin-input.svelte.js +2 -3
- package/dist/bits/pin-input/types.d.ts +3 -3
- package/dist/bits/popover/components/popover-close.svelte +1 -2
- package/dist/bits/popover/components/popover-content-static.svelte +2 -3
- package/dist/bits/popover/components/popover-content.svelte +2 -3
- package/dist/bits/popover/components/popover-trigger.svelte +1 -2
- package/dist/bits/popover/components/popover.svelte +1 -1
- package/dist/bits/popover/popover.svelte.d.ts +1 -1
- package/dist/bits/popover/popover.svelte.js +3 -3
- package/dist/bits/popover/types.d.ts +8 -8
- package/dist/bits/progress/components/progress.svelte +1 -2
- package/dist/bits/progress/progress.svelte.js +1 -1
- package/dist/bits/progress/types.d.ts +2 -2
- package/dist/bits/radio-group/components/radio-group-item.svelte +1 -2
- package/dist/bits/radio-group/components/radio-group.svelte +2 -3
- package/dist/bits/radio-group/radio-group.svelte.d.ts +2 -2
- package/dist/bits/radio-group/radio-group.svelte.js +2 -3
- package/dist/bits/radio-group/types.d.ts +3 -3
- package/dist/bits/range-calendar/components/range-calendar-cell.svelte +1 -2
- package/dist/bits/range-calendar/components/range-calendar-day.svelte +1 -2
- package/dist/bits/range-calendar/components/range-calendar.svelte +2 -3
- package/dist/bits/range-calendar/range-calendar.svelte.d.ts +3 -3
- package/dist/bits/range-calendar/range-calendar.svelte.js +1 -1
- package/dist/bits/range-calendar/types.d.ts +2 -2
- package/dist/bits/scroll-area/components/scroll-area-corner-impl.svelte +1 -2
- package/dist/bits/scroll-area/components/scroll-area-scrollbar-auto.svelte +1 -1
- package/dist/bits/scroll-area/components/scroll-area-scrollbar-hover.svelte +1 -1
- package/dist/bits/scroll-area/components/scroll-area-scrollbar-scroll.svelte +1 -1
- package/dist/bits/scroll-area/components/scroll-area-scrollbar-shared.svelte +1 -1
- package/dist/bits/scroll-area/components/scroll-area-scrollbar-x.svelte +1 -2
- package/dist/bits/scroll-area/components/scroll-area-scrollbar-y.svelte +1 -2
- package/dist/bits/scroll-area/components/scroll-area-thumb-impl.svelte +1 -2
- package/dist/bits/scroll-area/components/scroll-area-viewport.svelte +1 -2
- package/dist/bits/scroll-area/components/scroll-area.svelte +1 -2
- package/dist/bits/scroll-area/scroll-area.svelte.d.ts +2 -2
- package/dist/bits/scroll-area/scroll-area.svelte.js +4 -7
- package/dist/bits/scroll-area/types.d.ts +6 -6
- package/dist/bits/select/components/select-arrow.svelte +1 -2
- package/dist/bits/select/components/select-content-floating.svelte +1 -1
- package/dist/bits/select/components/select-content-floating.svelte.d.ts +1 -1
- package/dist/bits/select/components/select-content-impl.svelte +2 -2
- package/dist/bits/select/components/select-content-impl.svelte.d.ts +5 -5
- package/dist/bits/select/components/select-content-item-aligned.svelte +3 -4
- package/dist/bits/select/components/select-content-item-aligned.svelte.d.ts +2 -2
- package/dist/bits/select/components/select-group-heading.svelte +1 -2
- package/dist/bits/select/components/select-group.svelte +1 -2
- package/dist/bits/select/components/select-icon.svelte +1 -2
- package/dist/bits/select/components/select-item-text.svelte +1 -2
- package/dist/bits/select/components/select-item.svelte +1 -2
- package/dist/bits/select/components/select-native.svelte +1 -1
- package/dist/bits/select/components/select-scroll-down-button-mounted.svelte.d.ts +2 -2
- package/dist/bits/select/components/select-scroll-down-button.svelte +1 -2
- package/dist/bits/select/components/select-scroll-up-button-mounted.svelte.d.ts +2 -2
- package/dist/bits/select/components/select-scroll-up-button.svelte +1 -2
- package/dist/bits/select/components/select-separator.svelte +1 -2
- package/dist/bits/select/components/select-trigger.svelte +1 -2
- package/dist/bits/select/components/select-value.svelte +1 -1
- package/dist/bits/select/components/select-viewport.svelte +1 -2
- package/dist/bits/select/components/select.svelte +1 -1
- package/dist/bits/select/components/select.svelte.d.ts +1 -1
- package/dist/bits/select/select.svelte.d.ts +4 -4
- package/dist/bits/select/select.svelte.js +5 -8
- package/dist/bits/select/types.d.ts +14 -14
- package/dist/bits/separator/components/separator.svelte +1 -2
- package/dist/bits/separator/separator.svelte.js +1 -1
- package/dist/bits/separator/types.d.ts +2 -2
- package/dist/bits/slider/components/slider-range.svelte +1 -2
- package/dist/bits/slider/components/slider-thumb.svelte +1 -2
- package/dist/bits/slider/components/slider-tick.svelte +1 -2
- package/dist/bits/slider/components/slider.svelte +2 -3
- package/dist/bits/slider/slider.svelte.d.ts +2 -2
- package/dist/bits/slider/slider.svelte.js +1 -2
- package/dist/bits/slider/types.d.ts +5 -5
- package/dist/bits/switch/components/switch-thumb.svelte +1 -2
- package/dist/bits/switch/components/switch.svelte +2 -3
- package/dist/bits/switch/switch.svelte.d.ts +2 -2
- package/dist/bits/switch/switch.svelte.js +1 -2
- package/dist/bits/switch/types.d.ts +3 -3
- package/dist/bits/tabs/components/tabs-content.svelte +1 -2
- package/dist/bits/tabs/components/tabs-list.svelte +1 -2
- package/dist/bits/tabs/components/tabs-trigger.svelte +1 -2
- package/dist/bits/tabs/components/tabs.svelte +2 -3
- package/dist/bits/tabs/tabs.svelte.d.ts +1 -1
- package/dist/bits/tabs/tabs.svelte.js +1 -1
- package/dist/bits/tabs/types.d.ts +5 -5
- package/dist/bits/toggle/components/toggle.svelte +2 -3
- package/dist/bits/toggle/toggle.svelte.d.ts +1 -1
- package/dist/bits/toggle/toggle.svelte.js +1 -1
- package/dist/bits/toggle/types.d.ts +2 -2
- package/dist/bits/toggle-group/components/toggle-group-item.svelte +1 -2
- package/dist/bits/toggle-group/components/toggle-group.svelte +2 -2
- package/dist/bits/toggle-group/toggle-group.svelte.d.ts +3 -3
- package/dist/bits/toggle-group/toggle-group.svelte.js +1 -1
- package/dist/bits/toggle-group/types.d.ts +5 -5
- package/dist/bits/toolbar/components/toolbar-button.svelte +1 -2
- package/dist/bits/toolbar/components/toolbar-group-item.svelte +1 -2
- package/dist/bits/toolbar/components/toolbar-group.svelte +2 -2
- package/dist/bits/toolbar/components/toolbar-link.svelte +1 -2
- package/dist/bits/toolbar/components/toolbar.svelte +1 -2
- package/dist/bits/toolbar/toolbar.svelte.d.ts +2 -2
- package/dist/bits/toolbar/toolbar.svelte.js +1 -2
- package/dist/bits/toolbar/types.d.ts +5 -5
- package/dist/bits/tooltip/components/tooltip-content-static.svelte +2 -3
- package/dist/bits/tooltip/components/tooltip-content.svelte +2 -3
- package/dist/bits/tooltip/components/tooltip-trigger.svelte +1 -2
- package/dist/bits/tooltip/components/tooltip.svelte +1 -1
- package/dist/bits/tooltip/tooltip.svelte.js +2 -3
- package/dist/bits/tooltip/types.d.ts +7 -7
- package/dist/bits/utilities/arrow/arrow.svelte +1 -1
- package/dist/bits/utilities/arrow/types.d.ts +2 -2
- package/dist/bits/utilities/dismissible-layer/useDismissibleLayer.svelte.js +2 -7
- package/dist/bits/utilities/escape-layer/useEscapeLayer.svelte.js +1 -1
- package/dist/bits/utilities/floating-layer/components/floating-layer-arrow.svelte +1 -2
- package/dist/bits/utilities/floating-layer/components/floating-layer-content.svelte +1 -2
- package/dist/bits/utilities/floating-layer/useFloatingLayer.svelte.d.ts +10 -10
- package/dist/bits/utilities/floating-layer/useFloatingLayer.svelte.js +4 -7
- package/dist/bits/utilities/focus-scope/focus-scope.svelte +1 -1
- package/dist/bits/utilities/focus-scope/useFocusScope.svelte.js +2 -5
- package/dist/bits/utilities/mounted.svelte +1 -1
- package/dist/bits/utilities/popper-layer/popper-layer.svelte +1 -1
- package/dist/bits/utilities/presence-layer/usePresence.svelte.d.ts +1 -1
- package/dist/bits/utilities/presence-layer/usePresence.svelte.js +1 -1
- package/dist/bits/utilities/text-selection-layer/useTextSelectionLayer.svelte.js +2 -5
- package/dist/bits/utilities/visually-hidden/types.d.ts +2 -2
- package/dist/bits/utilities/visually-hidden/visually-hidden.svelte +1 -1
- package/dist/internal/create-event-hook.svelte.js +1 -1
- package/dist/internal/date-time/announcer.js +2 -2
- package/dist/internal/date-time/calendar-helpers.svelte.d.ts +1 -1
- package/dist/internal/date-time/calendar-helpers.svelte.js +1 -2
- package/dist/internal/date-time/field/helpers.js +1 -1
- package/dist/internal/types.d.ts +28 -0
- package/dist/internal/use-body-scroll-lock.svelte.js +1 -2
- package/dist/internal/use-grace-area.svelte.d.ts +1 -1
- package/dist/internal/use-grace-area.svelte.js +1 -1
- package/dist/internal/use-roving-focus.svelte.d.ts +1 -1
- package/dist/internal/use-roving-focus.svelte.js +7 -1
- package/dist/internal/use-size.svelte.d.ts +1 -1
- package/dist/internal/use-size.svelte.js +1 -1
- package/dist/internal/use-timeout-fn.svelte.js +1 -2
- package/dist/shared/attributes.d.ts +28 -28
- package/dist/shared/index.d.ts +1 -1
- package/dist/shared/index.js +1 -1
- package/package.json +2 -4
- package/dist/bits/listbox/components/listbox-label.svelte +0 -33
- package/dist/bits/listbox/components/listbox-label.svelte.d.ts +0 -18
- package/dist/internal/after-sleep.d.ts +0 -4
- package/dist/internal/after-sleep.js +0 -6
- package/dist/internal/after-tick.d.ts +0 -5
- package/dist/internal/after-tick.js +0 -7
- package/dist/internal/callbacks.d.ts +0 -11
- package/dist/internal/callbacks.js +0 -21
- package/dist/internal/compose-handlers.d.ts +0 -8
- package/dist/internal/compose-handlers.js +0 -21
- package/dist/internal/css-to-style-obj.d.ts +0 -2
- package/dist/internal/css-to-style-obj.js +0 -23
- package/dist/internal/execute-callbacks.d.ts +0 -7
- package/dist/internal/execute-callbacks.js +0 -15
- package/dist/internal/merge-props.d.ts +0 -22
- package/dist/internal/merge-props.js +0 -98
- package/dist/internal/on-destroy-effect.svelte.d.ts +0 -1
- package/dist/internal/on-destroy-effect.svelte.js +0 -7
- package/dist/internal/strings.d.ts +0 -3
- package/dist/internal/strings.js +0 -70
- package/dist/internal/style-to-css.d.ts +0 -1
- package/dist/internal/style-to-css.js +0 -23
- package/dist/internal/style.d.ts +0 -4
- package/dist/internal/style.js +0 -17
- package/dist/internal/use-ref-by-id.svelte.d.ts +0 -28
- package/dist/internal/use-ref-by-id.svelte.js +0 -27
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { useRefById } from "
|
|
1
|
+
import { srOnlyStyles, styleToString, useRefById } from "svelte-toolbelt";
|
|
2
2
|
import { getAriaChecked, getAriaRequired, getDataDisabled } from "../../internal/attrs.js";
|
|
3
3
|
import { kbd } from "../../internal/kbd.js";
|
|
4
4
|
import { createContext } from "../../internal/create-context.js";
|
|
5
|
-
import { srOnlyStyles, styleToString } from "../../internal/style.js";
|
|
6
5
|
const CHECKBOX_ROOT_ATTR = "data-checkbox-root";
|
|
7
6
|
class CheckboxRootState {
|
|
8
7
|
#id;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import type { CheckboxRootProps } from "../types.js";
|
|
4
4
|
import { useCheckboxRoot } from "../checkbox.svelte.js";
|
|
5
5
|
import CheckboxInput from "./checkbox-input.svelte";
|
|
6
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
7
6
|
import { useId } from "../../../internal/use-id.js";
|
|
8
7
|
|
|
9
8
|
let {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OnChangeFn, WithChild, Without } from "../../internal/types.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { BitsPrimitiveButtonAttributes } from "../../shared/attributes.js";
|
|
3
3
|
export type CheckboxRootSnippetProps = {
|
|
4
4
|
checked: boolean | "indeterminate";
|
|
5
5
|
};
|
|
@@ -52,4 +52,4 @@ export type CheckboxRootPropsWithoutHTML = WithChild<{
|
|
|
52
52
|
*/
|
|
53
53
|
controlledChecked?: boolean;
|
|
54
54
|
}, CheckboxRootSnippetProps>;
|
|
55
|
-
export type CheckboxRootProps = CheckboxRootPropsWithoutHTML & Without<
|
|
55
|
+
export type CheckboxRootProps = CheckboxRootPropsWithoutHTML & Without<BitsPrimitiveButtonAttributes, CheckboxRootPropsWithoutHTML>;
|
|
@@ -60,7 +60,7 @@ declare class CollapsibleTriggerState {
|
|
|
60
60
|
readonly type: "button";
|
|
61
61
|
readonly disabled: boolean;
|
|
62
62
|
readonly "aria-controls": string | undefined;
|
|
63
|
-
readonly "aria-expanded": "
|
|
63
|
+
readonly "aria-expanded": "true" | "false";
|
|
64
64
|
readonly "data-state": "open" | "closed";
|
|
65
65
|
readonly "data-disabled": "" | undefined;
|
|
66
66
|
readonly "data-collapsible-trigger": "";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { useRefById } from "
|
|
2
|
-
import { afterTick } from "../../internal/after-tick.js";
|
|
1
|
+
import { afterTick, useRefById } from "svelte-toolbelt";
|
|
3
2
|
import { getAriaExpanded, getDataDisabled, getDataOpenClosed } from "../../internal/attrs.js";
|
|
4
3
|
import { createContext } from "../../internal/create-context.js";
|
|
5
4
|
const COLLAPSIBLE_ROOT_ATTR = "data-collapsible-root";
|
|
@@ -51,7 +50,7 @@ class CollapsibleContentState {
|
|
|
51
50
|
useRefById({
|
|
52
51
|
id: this.#id,
|
|
53
52
|
ref: this.#ref,
|
|
54
|
-
|
|
53
|
+
deps: () => this.present,
|
|
55
54
|
onRefChange: (node) => {
|
|
56
55
|
this.root.contentNode = node;
|
|
57
56
|
this.root.contentId = node?.id;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import { useCollapsibleContent } from "../collapsible.svelte.js";
|
|
4
4
|
import type { CollapsibleContentProps } from "../types.js";
|
|
5
5
|
import { PresenceLayer } from "../../utilities/presence-layer/index.js";
|
|
6
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
7
6
|
import { useId } from "../../../internal/use-id.js";
|
|
8
7
|
|
|
9
8
|
let {
|
|
@@ -37,7 +36,7 @@
|
|
|
37
36
|
})}
|
|
38
37
|
{:else}
|
|
39
38
|
<div {...mergedProps}>
|
|
40
|
-
{@render children?.(
|
|
39
|
+
{@render children?.()}
|
|
41
40
|
</div>
|
|
42
41
|
{/if}
|
|
43
42
|
{/snippet}
|
|
@@ -13,14 +13,14 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
13
13
|
}
|
|
14
14
|
declare const CollapsibleContent: $$__sveltets_2_IsomorphicComponent<Omit<{
|
|
15
15
|
forceMount?: boolean;
|
|
16
|
-
}, "
|
|
16
|
+
}, "children" | "child"> & {
|
|
17
17
|
child?: import("svelte").Snippet<[import("../types.js").CollapsibleContentSnippetProps & {
|
|
18
18
|
props: Record<string, unknown>;
|
|
19
19
|
}]> | undefined;
|
|
20
|
-
children?: import("svelte").Snippet
|
|
20
|
+
children?: import("svelte").Snippet;
|
|
21
21
|
style?: import("../../../index.js").StyleProperties | string | null | undefined;
|
|
22
22
|
ref?: HTMLElement | null | undefined;
|
|
23
|
-
} & import("../../../index.js").Without<import("../../../index.js").
|
|
23
|
+
} & import("../../../index.js").Without<import("../../../index.js").BitsPrimitiveDivAttributes, import("../types.js").CollapsibleContentPropsWithoutHTML> & {
|
|
24
24
|
forceMount?: boolean;
|
|
25
25
|
}, {
|
|
26
26
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import type { CollapsibleTriggerProps } from "../types.js";
|
|
4
4
|
import { useCollapsibleTrigger } from "../collapsible.svelte.js";
|
|
5
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
6
5
|
import { useId } from "../../../internal/use-id.js";
|
|
7
6
|
|
|
8
7
|
let {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import type { CollapsibleRootProps } from "../types.js";
|
|
4
4
|
import { useCollapsibleRoot } from "../collapsible.svelte.js";
|
|
5
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
6
5
|
import { useId } from "../../../internal/use-id.js";
|
|
7
|
-
import { noop } from "../../../internal/
|
|
6
|
+
import { noop } from "../../../internal/noop.js";
|
|
8
7
|
|
|
9
8
|
let {
|
|
10
9
|
children,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { OnChangeFn, WithChild, Without } from "../../internal/types.js";
|
|
2
|
-
import type {
|
|
1
|
+
import type { OnChangeFn, WithChild, WithChildNoChildrenSnippetProps, Without } from "../../internal/types.js";
|
|
2
|
+
import type { BitsPrimitiveButtonAttributes, BitsPrimitiveDivAttributes } from "../../shared/attributes.js";
|
|
3
3
|
export type CollapsibleRootPropsWithoutHTML = WithChild<{
|
|
4
4
|
/**
|
|
5
5
|
* Whether the collapsible is disabled.
|
|
@@ -26,11 +26,11 @@ export type CollapsibleRootPropsWithoutHTML = WithChild<{
|
|
|
26
26
|
*/
|
|
27
27
|
controlledOpen?: boolean;
|
|
28
28
|
}>;
|
|
29
|
-
export type CollapsibleRootProps = CollapsibleRootPropsWithoutHTML & Without<
|
|
29
|
+
export type CollapsibleRootProps = CollapsibleRootPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CollapsibleRootPropsWithoutHTML>;
|
|
30
30
|
export type CollapsibleContentSnippetProps = {
|
|
31
31
|
open: boolean;
|
|
32
32
|
};
|
|
33
|
-
export type CollapsibleContentPropsWithoutHTML =
|
|
33
|
+
export type CollapsibleContentPropsWithoutHTML = WithChildNoChildrenSnippetProps<{
|
|
34
34
|
/**
|
|
35
35
|
* Whether to force mount the content to the DOM.
|
|
36
36
|
*
|
|
@@ -38,6 +38,6 @@ export type CollapsibleContentPropsWithoutHTML = WithChild<{
|
|
|
38
38
|
*/
|
|
39
39
|
forceMount?: boolean;
|
|
40
40
|
}, CollapsibleContentSnippetProps>;
|
|
41
|
-
export type CollapsibleContentProps = CollapsibleContentPropsWithoutHTML & Without<
|
|
41
|
+
export type CollapsibleContentProps = CollapsibleContentPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CollapsibleContentPropsWithoutHTML>;
|
|
42
42
|
export type CollapsibleTriggerPropsWithoutHTML = WithChild;
|
|
43
|
-
export type CollapsibleTriggerProps = CollapsibleTriggerPropsWithoutHTML & Without<
|
|
43
|
+
export type CollapsibleTriggerProps = CollapsibleTriggerPropsWithoutHTML & Without<BitsPrimitiveButtonAttributes, CollapsibleTriggerPropsWithoutHTML>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import type { ComboboxInputProps } from "../types.js";
|
|
4
4
|
import { useId } from "../../../internal/use-id.js";
|
|
5
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
6
5
|
import { FloatingLayer } from "../../utilities/floating-layer/index.js";
|
|
7
6
|
import { useListboxInput } from "../../listbox/listbox.svelte.js";
|
|
8
7
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import type { ComboboxTriggerProps } from "../types.js";
|
|
4
4
|
import { useId } from "../../../internal/use-id.js";
|
|
5
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
6
5
|
import { useListboxComboTrigger } from "../../listbox/listbox.svelte.js";
|
|
7
6
|
|
|
8
7
|
let {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { type WritableBox, box } from "svelte-toolbelt";
|
|
3
3
|
import type { ComboboxRootProps } from "../types.js";
|
|
4
|
-
import { noop } from "../../../internal/
|
|
4
|
+
import { noop } from "../../../internal/noop.js";
|
|
5
5
|
import FloatingLayer from "../../utilities/floating-layer/components/floating-layer.svelte";
|
|
6
6
|
import { useListboxRoot } from "../../listbox/listbox.svelte.js";
|
|
7
7
|
import ListboxHiddenInput from "../../listbox/components/listbox-hidden-input.svelte";
|
|
@@ -13,6 +13,6 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
13
13
|
}
|
|
14
14
|
declare const Combobox: $$__sveltets_2_IsomorphicComponent<import("../types.js").ComboboxRootPropsWithoutHTML, {
|
|
15
15
|
[evt: string]: CustomEvent<any>;
|
|
16
|
-
}, {}, {}, "
|
|
16
|
+
}, {}, {}, "value" | "open">;
|
|
17
17
|
type Combobox = InstanceType<typeof Combobox>;
|
|
18
18
|
export default Combobox;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BitsPrimitiveInputAttributes } from "../../shared/attributes.js";
|
|
2
2
|
import type { WithChild, Without } from "../../internal/types.js";
|
|
3
3
|
export type { ListboxBaseRootPropsWithoutHTML as ComboboxBaseRootPropsWithoutHTML, ListboxContentProps as ComboboxContentProps, ListboxContentPropsWithoutHTML as ComboboxContentPropsWithoutHTML, ListboxContentStaticProps as ComboboxContentStaticProps, ListboxContentStaticPropsWithoutHTML as ComboboxContentStaticPropsWithoutHTML, ListboxItemProps as ComboboxItemProps, ListboxItemPropsWithoutHTML as ComboboxItemPropsWithoutHTML, ListboxItemSnippetProps as ComboboxItemSnippetProps, ListboxMultipleRootProps as ComboboxMultipleRootProps, ListboxMultipleRootPropsWithoutHTML as ComboboxMultipleRootPropsWithoutHTML, ListboxRootProps as ComboboxRootProps, ListboxRootPropsWithoutHTML as ComboboxRootPropsWithoutHTML, ListboxSingleRootProps as ComboboxSingleRootProps, ListboxSingleRootPropsWithoutHTML as ComboboxSingleRootPropsWithoutHTML, ListboxTriggerProps as ComboboxTriggerProps, ListboxTriggerPropsWithoutHTML as ComboboxTriggerPropsWithoutHTML, ListboxGroupPropsWithoutHTML as ComboboxGroupPropsWithoutHTML, ListboxGroupProps as ComboboxGroupProps, ListboxGroupHeadingPropsWithoutHTML as ComboboxGroupHeadingPropsWithoutHTML, ListboxGroupHeadingProps as ComboboxGroupHeadingProps, ListboxViewportPropsWithoutHTML as ComboboxViewportPropsWithoutHTML, ListboxViewportProps as ComboboxViewportProps, ListboxScrollDownButtonProps as ComboboxScrollDownButtonProps, ListboxScrollDownButtonPropsWithoutHTML as ComboboxScrollDownButtonPropsWithoutHTML, ListboxScrollUpButtonProps as ComboboxScrollUpButtonProps, ListboxScrollUpButtonPropsWithoutHTML as ComboboxScrollUpButtonPropsWithoutHTML, ListboxArrowProps as ComboboxArrowProps, ListboxArrowPropsWithoutHTML as ComboboxArrowPropsWithoutHTML, ListboxPortalProps as ComboboxPortalProps, ListboxPortalPropsWithoutHTML as ComboboxPortalPropsWithoutHTML, } from "../listbox/types.js";
|
|
4
4
|
export type ComboboxInputPropsWithoutHTML = WithChild<{
|
|
@@ -8,4 +8,4 @@ export type ComboboxInputPropsWithoutHTML = WithChild<{
|
|
|
8
8
|
*/
|
|
9
9
|
defaultValue?: string;
|
|
10
10
|
}>;
|
|
11
|
-
export type ComboboxInputProps = ComboboxInputPropsWithoutHTML & Without<Omit<
|
|
11
|
+
export type ComboboxInputProps = ComboboxInputPropsWithoutHTML & Without<Omit<BitsPrimitiveInputAttributes, "value">, ComboboxInputPropsWithoutHTML>;
|
|
@@ -122,7 +122,7 @@ declare class CommandInputState {
|
|
|
122
122
|
readonly spellcheck: false;
|
|
123
123
|
readonly "aria-autocomplete": "list";
|
|
124
124
|
readonly role: "combobox";
|
|
125
|
-
readonly "aria-expanded": "
|
|
125
|
+
readonly "aria-expanded": "true" | "false";
|
|
126
126
|
readonly "aria-controls": string | undefined;
|
|
127
127
|
readonly "aria-labelledby": string | undefined;
|
|
128
128
|
readonly "aria-activedescendant": string | undefined;
|
|
@@ -147,8 +147,8 @@ declare class CommandItemState {
|
|
|
147
147
|
constructor(props: CommandItemStateProps, root: CommandRootState);
|
|
148
148
|
props: {
|
|
149
149
|
readonly id: string;
|
|
150
|
-
readonly "aria-disabled": "
|
|
151
|
-
readonly "aria-selected": "
|
|
150
|
+
readonly "aria-disabled": "true" | "false";
|
|
151
|
+
readonly "aria-selected": "true" | "false";
|
|
152
152
|
readonly "data-disabled": "" | undefined;
|
|
153
153
|
readonly "data-selected": "" | undefined;
|
|
154
154
|
readonly "data-command-item": "";
|
|
@@ -211,7 +211,7 @@ declare class CommandLabelState {
|
|
|
211
211
|
readonly id: string;
|
|
212
212
|
readonly "data-command-input-label": "";
|
|
213
213
|
readonly for: string | undefined;
|
|
214
|
-
readonly style: import("
|
|
214
|
+
readonly style: import("svelte-toolbelt").StyleProperties;
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
217
|
type CommandViewportStateProps = WithRefProps;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { untrack } from "svelte";
|
|
2
|
+
import { afterSleep, afterTick, srOnlyStyles, useRefById } from "svelte-toolbelt";
|
|
2
3
|
import { findNextSibling, findPreviousSibling } from "./utils.js";
|
|
3
4
|
import { commandScore } from "./command-score.js";
|
|
4
|
-
import { useRefById } from "../../internal/use-ref-by-id.svelte.js";
|
|
5
5
|
import { createContext } from "../../internal/create-context.js";
|
|
6
|
-
import { afterSleep } from "../../internal/after-sleep.js";
|
|
7
6
|
import { kbd } from "../../internal/kbd.js";
|
|
8
7
|
import { getAriaDisabled, getAriaExpanded, getAriaSelected, getDataDisabled, getDataSelected, } from "../../internal/attrs.js";
|
|
9
8
|
import { getFirstNonCommentChild } from "../../internal/dom.js";
|
|
10
|
-
import { srOnlyStyles } from "../../internal/style.js";
|
|
11
|
-
import { afterTick } from "../../internal/after-tick.js";
|
|
12
9
|
const ROOT_ATTR = "data-command-root";
|
|
13
10
|
const LIST_ATTR = "data-command-list";
|
|
14
11
|
const INPUT_ATTR = "data-command-input";
|
|
@@ -452,7 +449,7 @@ class CommandEmptyState {
|
|
|
452
449
|
useRefById({
|
|
453
450
|
id: this.#id,
|
|
454
451
|
ref: this.#ref,
|
|
455
|
-
|
|
452
|
+
deps: () => this.shouldRender,
|
|
456
453
|
});
|
|
457
454
|
}
|
|
458
455
|
props = $derived.by(() => ({
|
|
@@ -488,7 +485,7 @@ class CommandGroupContainerState {
|
|
|
488
485
|
useRefById({
|
|
489
486
|
id: this.id,
|
|
490
487
|
ref: this.#ref,
|
|
491
|
-
|
|
488
|
+
deps: () => this.shouldRender,
|
|
492
489
|
});
|
|
493
490
|
$effect(() => {
|
|
494
491
|
return this.#root.registerGroup(this.id.current);
|
|
@@ -658,7 +655,7 @@ class CommandItemState {
|
|
|
658
655
|
useRefById({
|
|
659
656
|
id: this.id,
|
|
660
657
|
ref: this.#ref,
|
|
661
|
-
|
|
658
|
+
deps: () => Boolean(this.root.commandState.search),
|
|
662
659
|
});
|
|
663
660
|
$effect(() => {
|
|
664
661
|
this.id.current;
|
|
@@ -753,7 +750,7 @@ class CommandSeparatorState {
|
|
|
753
750
|
useRefById({
|
|
754
751
|
id: this.#id,
|
|
755
752
|
ref: this.#ref,
|
|
756
|
-
|
|
753
|
+
deps: () => this.shouldRender,
|
|
757
754
|
});
|
|
758
755
|
}
|
|
759
756
|
props = $derived.by(() => ({
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { box } from "svelte-toolbelt";
|
|
3
3
|
import { useCommandLabel } from "../command.svelte.js";
|
|
4
4
|
import {
|
|
5
|
-
type
|
|
5
|
+
type BitsPrimitiveLabelAttributes,
|
|
6
6
|
type WithElementRef,
|
|
7
7
|
mergeProps,
|
|
8
8
|
useId,
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
ref = $bindable(null),
|
|
15
15
|
children,
|
|
16
16
|
...restProps
|
|
17
|
-
}: WithChildren<WithElementRef<
|
|
17
|
+
}: WithChildren<WithElementRef<BitsPrimitiveLabelAttributes>> = $props();
|
|
18
18
|
|
|
19
19
|
const labelState = useCommandLabel({
|
|
20
20
|
id: box.with(() => id),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type BitsPrimitiveLabelAttributes, type WithElementRef } from "../../../shared/index.js";
|
|
2
2
|
import type { WithChildren } from "../../../internal/types.js";
|
|
3
3
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
4
4
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
@@ -13,7 +13,7 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
13
13
|
};
|
|
14
14
|
z_$$bindings?: Bindings;
|
|
15
15
|
}
|
|
16
|
-
declare const CommandLabel: $$__sveltets_2_IsomorphicComponent<WithChildren<WithElementRef<
|
|
16
|
+
declare const CommandLabel: $$__sveltets_2_IsomorphicComponent<WithChildren<WithElementRef<BitsPrimitiveLabelAttributes>>, {
|
|
17
17
|
[evt: string]: CustomEvent<any>;
|
|
18
18
|
}, {}, {}, "ref">;
|
|
19
19
|
type CommandLabel = InstanceType<typeof CommandLabel>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import type { CommandEmptyProps } from "../types.js";
|
|
4
4
|
import { useCommandEmpty } from "../command.svelte.js";
|
|
5
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
6
5
|
import { useId } from "../../../internal/use-id.js";
|
|
7
6
|
|
|
8
7
|
let {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import { useCommandGroupHeading } from "../command.svelte.js";
|
|
4
4
|
import type { CommandGroupHeadingProps } from "../types.js";
|
|
5
5
|
import { useId } from "../../../internal/use-id.js";
|
|
6
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
7
6
|
|
|
8
7
|
let {
|
|
9
8
|
id = useId(),
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import type { CommandGroupItemsProps } from "../types.js";
|
|
4
4
|
import { useCommandGroupItems } from "../command.svelte.js";
|
|
5
5
|
import { useId } from "../../../internal/use-id.js";
|
|
6
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
7
6
|
|
|
8
7
|
let {
|
|
9
8
|
id = useId(),
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import type { CommandGroupProps } from "../types.js";
|
|
4
4
|
import { useCommandGroupContainer } from "../command.svelte.js";
|
|
5
5
|
import { useId } from "../../../internal/use-id.js";
|
|
6
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
7
6
|
|
|
8
7
|
let {
|
|
9
8
|
id = useId(),
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import type { CommandInputProps } from "../types.js";
|
|
4
4
|
import { useCommandInput } from "../command.svelte.js";
|
|
5
5
|
import { useId } from "../../../internal/use-id.js";
|
|
6
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
7
6
|
|
|
8
7
|
let {
|
|
9
8
|
value = $bindable(""),
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import type { CommandItemProps } from "../types.js";
|
|
4
4
|
import { getCommandGroupContainerContext, useCommandItem } from "../command.svelte.js";
|
|
5
|
-
import { noop } from "../../../internal/
|
|
5
|
+
import { noop } from "../../../internal/noop.js";
|
|
6
6
|
import { useId } from "../../../internal/use-id.js";
|
|
7
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
8
7
|
|
|
9
8
|
let {
|
|
10
9
|
id = useId(),
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import type { CommandLinkItemProps } from "../types.js";
|
|
4
4
|
import { getCommandGroupContainerContext, useCommandItem } from "../command.svelte.js";
|
|
5
|
-
import { noop } from "../../../internal/
|
|
5
|
+
import { noop } from "../../../internal/noop.js";
|
|
6
6
|
import { useId } from "../../../internal/use-id.js";
|
|
7
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
8
7
|
|
|
9
8
|
let {
|
|
10
9
|
id = useId(),
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import type { CommandListProps } from "../types.js";
|
|
4
4
|
import { useCommandList } from "../command.svelte.js";
|
|
5
5
|
import { useId } from "../../../internal/use-id.js";
|
|
6
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
7
6
|
|
|
8
7
|
let {
|
|
9
8
|
id = useId(),
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import type { CommandLoadingProps } from "../types.js";
|
|
4
4
|
import { useCommandLoading } from "../command.svelte.js";
|
|
5
5
|
import { useId } from "../../../internal/use-id.js";
|
|
6
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
7
6
|
|
|
8
7
|
let {
|
|
9
8
|
progress = 0,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import type { CommandSeparatorProps } from "../types.js";
|
|
4
4
|
import { useCommandSeparator } from "../command.svelte.js";
|
|
5
5
|
import { useId } from "../../../internal/use-id.js";
|
|
6
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
7
6
|
|
|
8
7
|
let {
|
|
9
8
|
id = useId(),
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import { defaultFilter, useCommandRoot } from "../command.svelte.js";
|
|
4
4
|
import type { CommandRootProps } from "../types.js";
|
|
5
5
|
import CommandLabel from "./_command-label.svelte";
|
|
6
|
-
import { noop } from "../../../internal/
|
|
6
|
+
import { noop } from "../../../internal/noop.js";
|
|
7
7
|
import { useId } from "../../../internal/use-id.js";
|
|
8
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
9
8
|
|
|
10
9
|
let {
|
|
11
10
|
id = useId(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BitsPrimitiveAnchorAttributes, BitsPrimitiveDivAttributes, BitsPrimitiveInputAttributes, WithChild, Without } from "../../shared/index.js";
|
|
2
2
|
export type CommandState = {
|
|
3
3
|
/** The value of the search query */
|
|
4
4
|
search: string;
|
|
@@ -68,7 +68,7 @@ export type CommandRootPropsWithoutHTML = WithChild<{
|
|
|
68
68
|
*/
|
|
69
69
|
controlledValue?: boolean;
|
|
70
70
|
}>;
|
|
71
|
-
export type CommandRootProps = CommandRootPropsWithoutHTML & Without<
|
|
71
|
+
export type CommandRootProps = CommandRootPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandRootPropsWithoutHTML>;
|
|
72
72
|
export type CommandEmptyPropsWithoutHTML = WithChild<{
|
|
73
73
|
/**
|
|
74
74
|
* Whether to force mount the group container regardless of
|
|
@@ -76,7 +76,7 @@ export type CommandEmptyPropsWithoutHTML = WithChild<{
|
|
|
76
76
|
*/
|
|
77
77
|
forceMount?: boolean;
|
|
78
78
|
}>;
|
|
79
|
-
export type CommandEmptyProps = CommandEmptyPropsWithoutHTML & Without<
|
|
79
|
+
export type CommandEmptyProps = CommandEmptyPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandEmptyPropsWithoutHTML>;
|
|
80
80
|
export type CommandGroupPropsWithoutHTML = WithChild<{
|
|
81
81
|
/**
|
|
82
82
|
* A unique value for the group.
|
|
@@ -88,11 +88,11 @@ export type CommandGroupPropsWithoutHTML = WithChild<{
|
|
|
88
88
|
*/
|
|
89
89
|
forceMount?: boolean;
|
|
90
90
|
}>;
|
|
91
|
-
export type CommandGroupProps = CommandGroupPropsWithoutHTML & Without<
|
|
91
|
+
export type CommandGroupProps = CommandGroupPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandGroupPropsWithoutHTML>;
|
|
92
92
|
export type CommandGroupHeadingPropsWithoutHTML = WithChild;
|
|
93
|
-
export type CommandGroupHeadingProps = CommandGroupHeadingPropsWithoutHTML & Without<
|
|
93
|
+
export type CommandGroupHeadingProps = CommandGroupHeadingPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandGroupHeadingPropsWithoutHTML>;
|
|
94
94
|
export type CommandGroupItemsPropsWithoutHTML = WithChild;
|
|
95
|
-
export type CommandGroupItemsProps = CommandGroupItemsPropsWithoutHTML & Without<
|
|
95
|
+
export type CommandGroupItemsProps = CommandGroupItemsPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandGroupItemsPropsWithoutHTML>;
|
|
96
96
|
export type CommandItemPropsWithoutHTML = WithChild<{
|
|
97
97
|
/**
|
|
98
98
|
* Whether the item is disabled.
|
|
@@ -121,18 +121,18 @@ export type CommandItemPropsWithoutHTML = WithChild<{
|
|
|
121
121
|
*/
|
|
122
122
|
forceMount?: boolean;
|
|
123
123
|
}>;
|
|
124
|
-
export type CommandItemProps = CommandItemPropsWithoutHTML & Without<
|
|
124
|
+
export type CommandItemProps = CommandItemPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandItemPropsWithoutHTML>;
|
|
125
125
|
export type CommandLinkItemPropsWithoutHTML = CommandItemPropsWithoutHTML;
|
|
126
|
-
export type CommandLinkItemProps = CommandLinkItemPropsWithoutHTML & Without<
|
|
126
|
+
export type CommandLinkItemProps = CommandLinkItemPropsWithoutHTML & Without<BitsPrimitiveAnchorAttributes, CommandLinkItemPropsWithoutHTML>;
|
|
127
127
|
export type CommandInputPropsWithoutHTML = WithChild<{
|
|
128
128
|
/**
|
|
129
129
|
* The value of the input element, used to search/filter items.
|
|
130
130
|
*/
|
|
131
131
|
value?: string;
|
|
132
132
|
}>;
|
|
133
|
-
export type CommandInputProps = CommandInputPropsWithoutHTML & Without<
|
|
133
|
+
export type CommandInputProps = CommandInputPropsWithoutHTML & Without<BitsPrimitiveInputAttributes, CommandInputPropsWithoutHTML>;
|
|
134
134
|
export type CommandListPropsWithoutHTML = WithChild;
|
|
135
|
-
export type CommandListProps = CommandListPropsWithoutHTML & Without<
|
|
135
|
+
export type CommandListProps = CommandListPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandListPropsWithoutHTML>;
|
|
136
136
|
export type CommandSeparatorPropsWithoutHTML = WithChild<{
|
|
137
137
|
/**
|
|
138
138
|
* Whether to force mount the separator container regardless of
|
|
@@ -140,7 +140,7 @@ export type CommandSeparatorPropsWithoutHTML = WithChild<{
|
|
|
140
140
|
*/
|
|
141
141
|
forceMount?: boolean;
|
|
142
142
|
}>;
|
|
143
|
-
export type CommandSeparatorProps = CommandSeparatorPropsWithoutHTML & Without<
|
|
143
|
+
export type CommandSeparatorProps = CommandSeparatorPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandSeparatorPropsWithoutHTML>;
|
|
144
144
|
export type CommandLoadingPropsWithoutHTML = WithChild<{
|
|
145
145
|
/**
|
|
146
146
|
* The current progress of the loading state.
|
|
@@ -148,6 +148,6 @@ export type CommandLoadingPropsWithoutHTML = WithChild<{
|
|
|
148
148
|
*/
|
|
149
149
|
progress?: number;
|
|
150
150
|
}>;
|
|
151
|
-
export type CommandLoadingProps = CommandLoadingPropsWithoutHTML & Without<
|
|
151
|
+
export type CommandLoadingProps = CommandLoadingPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandLoadingPropsWithoutHTML>;
|
|
152
152
|
export type CommandViewportPropsWithoutHTML = WithChild;
|
|
153
|
-
export type CommandViewportProps = CommandViewportPropsWithoutHTML & Without<
|
|
153
|
+
export type CommandViewportProps = CommandViewportPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CommandViewportPropsWithoutHTML>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import type { ContextMenuContentStaticProps } from "../types.js";
|
|
4
4
|
import { CONTEXT_MENU_TRIGGER_ATTR, useMenuContent } from "../../menu/menu.svelte.js";
|
|
5
5
|
import { useId } from "../../../internal/use-id.js";
|
|
6
|
-
import {
|
|
7
|
-
import { noop } from "../../../internal/callbacks.js";
|
|
6
|
+
import { noop } from "../../../internal/noop.js";
|
|
8
7
|
import PopperLayer from "../../utilities/popper-layer/popper-layer.svelte";
|
|
9
8
|
import { isElement } from "../../../internal/is.js";
|
|
10
9
|
import type { InteractOutsideEvent } from "../../utilities/dismissible-layer/types.js";
|
|
@@ -85,7 +84,7 @@
|
|
|
85
84
|
{@render child({ props, ...contentState.snippetProps })}
|
|
86
85
|
{:else}
|
|
87
86
|
<div {...props}>
|
|
88
|
-
{@render children?.(
|
|
87
|
+
{@render children?.()}
|
|
89
88
|
</div>
|
|
90
89
|
{/if}
|
|
91
90
|
<Mounted bind:isMounted />
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import type { ContextMenuContentProps } from "../types.js";
|
|
4
4
|
import { CONTEXT_MENU_TRIGGER_ATTR, useMenuContent } from "../../menu/menu.svelte.js";
|
|
5
5
|
import { useId } from "../../../internal/use-id.js";
|
|
6
|
-
import {
|
|
7
|
-
import { noop } from "../../../internal/callbacks.js";
|
|
6
|
+
import { noop } from "../../../internal/noop.js";
|
|
8
7
|
import PopperLayer from "../../utilities/popper-layer/popper-layer.svelte";
|
|
9
8
|
import { isElement } from "../../../internal/is.js";
|
|
10
9
|
import type { InteractOutsideEvent } from "../../utilities/dismissible-layer/types.js";
|
|
@@ -92,7 +91,7 @@
|
|
|
92
91
|
{@render child({ props: finalProps, ...contentState.snippetProps })}
|
|
93
92
|
{:else}
|
|
94
93
|
<div {...finalProps}>
|
|
95
|
-
{@render children?.(
|
|
94
|
+
{@render children?.()}
|
|
96
95
|
</div>
|
|
97
96
|
{/if}
|
|
98
97
|
<Mounted bind:isMounted />
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import type { ContextMenuTriggerProps } from "../types.js";
|
|
4
4
|
import { useMenuContextTrigger } from "../../menu/menu.svelte.js";
|
|
5
5
|
import { useId } from "../../../internal/use-id.js";
|
|
6
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
7
6
|
import { FloatingLayer } from "../../utilities/floating-layer/index.js";
|
|
8
7
|
|
|
9
8
|
let {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { box } from "svelte-toolbelt";
|
|
3
3
|
import type { ContextMenuRootProps } from "../types.js";
|
|
4
4
|
import FloatingLayer from "../../utilities/floating-layer/components/floating-layer.svelte";
|
|
5
|
-
import { noop } from "../../../internal/
|
|
5
|
+
import { noop } from "../../../internal/noop.js";
|
|
6
6
|
import { useMenuMenu, useMenuRoot } from "../../menu/menu.svelte.js";
|
|
7
7
|
|
|
8
8
|
let {
|