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
|
@@ -72,8 +72,8 @@ declare class AccordionTriggerState {
|
|
|
72
72
|
props: {
|
|
73
73
|
readonly id: string;
|
|
74
74
|
readonly disabled: boolean;
|
|
75
|
-
readonly "aria-expanded": "
|
|
76
|
-
readonly "aria-disabled": "
|
|
75
|
+
readonly "aria-expanded": "true" | "false";
|
|
76
|
+
readonly "aria-disabled": "true" | "false";
|
|
77
77
|
readonly "data-disabled": "" | undefined;
|
|
78
78
|
readonly "data-state": "open" | "closed";
|
|
79
79
|
readonly "data-orientation": "horizontal" | "vertical";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { afterTick } from "
|
|
1
|
+
import { afterTick, useRefById } from "svelte-toolbelt";
|
|
2
2
|
import { getAriaDisabled, getAriaExpanded, getDataDisabled, getDataOpenClosed, getDataOrientation, } from "../../internal/attrs.js";
|
|
3
3
|
import { kbd } from "../../internal/kbd.js";
|
|
4
|
-
import { useRefById } from "../../internal/use-ref-by-id.svelte.js";
|
|
5
4
|
import { useRovingFocus, } from "../../internal/use-roving-focus.svelte.js";
|
|
6
5
|
import { createContext } from "../../internal/create-context.js";
|
|
7
6
|
const ACCORDION_ROOT_ATTR = "data-accordion-root";
|
|
@@ -90,7 +89,7 @@ export class AccordionItemState {
|
|
|
90
89
|
useRefById({
|
|
91
90
|
id: this.#id,
|
|
92
91
|
ref: this.#ref,
|
|
93
|
-
|
|
92
|
+
deps: () => this.isActive,
|
|
94
93
|
});
|
|
95
94
|
}
|
|
96
95
|
updateValue = () => {
|
|
@@ -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 { useAccordionContent } from "../accordion.svelte.js";
|
|
4
4
|
import type { AccordionContentProps } 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}
|
|
@@ -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 { AccordionHeaderProps } from "../types.js";
|
|
4
4
|
import { useAccordionHeader } from "../accordion.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,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 { AccordionItemProps } from "../types.js";
|
|
4
4
|
import { useAccordionItem } from "../accordion.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,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 { AccordionTriggerProps } from "../types.js";
|
|
4
4
|
import { useAccordionTrigger } from "../accordion.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 { type WritableBox, box } from "svelte-toolbelt";
|
|
2
|
+
import { type WritableBox, box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import { useAccordionRoot } from "../accordion.svelte.js";
|
|
4
4
|
import type { AccordionRootProps } from "../types.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
|
disabled = false,
|
|
@@ -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
|
import type { Orientation } from "../../shared/index.js";
|
|
4
4
|
export type BaseAccordionRootPropsWithoutHTML = {
|
|
5
5
|
/**
|
|
@@ -74,16 +74,16 @@ export type AccordionRootMultiplePropsWithoutHTML = BaseAccordionRootPropsWithou
|
|
|
74
74
|
onValueChange?: OnChangeFn<string[]>;
|
|
75
75
|
};
|
|
76
76
|
export type AccordionRootPropsWithoutHTML = WithChild<AccordionRootSinglePropsWithoutHTML> | WithChild<AccordionRootMultiplePropsWithoutHTML>;
|
|
77
|
-
export type AccordionRootProps = AccordionRootPropsWithoutHTML & Without<
|
|
77
|
+
export type AccordionRootProps = AccordionRootPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, AccordionRootPropsWithoutHTML>;
|
|
78
78
|
export type AccordionTriggerPropsWithoutHTML = WithChild;
|
|
79
|
-
export type AccordionTriggerProps = AccordionTriggerPropsWithoutHTML & Without<
|
|
79
|
+
export type AccordionTriggerProps = AccordionTriggerPropsWithoutHTML & Without<BitsPrimitiveButtonAttributes, AccordionTriggerPropsWithoutHTML>;
|
|
80
80
|
export type AccordionContentSnippetProps = {
|
|
81
81
|
/**
|
|
82
82
|
* Whether the accordion content is active/open or not.
|
|
83
83
|
*/
|
|
84
84
|
open: boolean;
|
|
85
85
|
};
|
|
86
|
-
export type AccordionContentPropsWithoutHTML =
|
|
86
|
+
export type AccordionContentPropsWithoutHTML = WithChildNoChildrenSnippetProps<{
|
|
87
87
|
/**
|
|
88
88
|
* Whether to forcefully mount the content, regardless of the open state.
|
|
89
89
|
* This is useful if you want to use Svelte transitions for the content.
|
|
@@ -92,7 +92,7 @@ export type AccordionContentPropsWithoutHTML = WithChild<{
|
|
|
92
92
|
*/
|
|
93
93
|
forceMount?: boolean;
|
|
94
94
|
}, AccordionContentSnippetProps>;
|
|
95
|
-
export type AccordionContentProps = AccordionContentPropsWithoutHTML & Without<
|
|
95
|
+
export type AccordionContentProps = AccordionContentPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, AccordionContentPropsWithoutHTML>;
|
|
96
96
|
export type AccordionItemPropsWithoutHTML = WithChild<{
|
|
97
97
|
/**
|
|
98
98
|
* The value of the accordion item. This is used to identify if the item is open or closed.
|
|
@@ -106,7 +106,7 @@ export type AccordionItemPropsWithoutHTML = WithChild<{
|
|
|
106
106
|
*/
|
|
107
107
|
disabled?: boolean;
|
|
108
108
|
}>;
|
|
109
|
-
export type AccordionItemProps = AccordionItemPropsWithoutHTML &
|
|
109
|
+
export type AccordionItemProps = AccordionItemPropsWithoutHTML & BitsPrimitiveDivAttributes;
|
|
110
110
|
export type AccordionHeaderPropsWithoutHTML = WithChild<{
|
|
111
111
|
/**
|
|
112
112
|
* The level of the accordion header, applied to the element's `aria-level` attribute.
|
|
@@ -116,4 +116,4 @@ export type AccordionHeaderPropsWithoutHTML = WithChild<{
|
|
|
116
116
|
*/
|
|
117
117
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
118
118
|
}>;
|
|
119
|
-
export type AccordionHeaderProps = AccordionHeaderPropsWithoutHTML &
|
|
119
|
+
export type AccordionHeaderProps = AccordionHeaderPropsWithoutHTML & BitsPrimitiveDivAttributes;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import type { AlertDialogActionProps } from "../types.js";
|
|
4
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
5
4
|
import { useId } from "../../../internal/use-id.js";
|
|
6
5
|
import { useAlertDialogAction } from "../../dialog/dialog.svelte.js";
|
|
7
6
|
|
|
@@ -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 { AlertDialogCancelProps } from "../types.js";
|
|
4
4
|
import { useAlertDialogCancel } from "../../dialog/dialog.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,14 +1,13 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { box } from "svelte-toolbelt";
|
|
2
|
+
import { box, mergeProps } from "svelte-toolbelt";
|
|
3
3
|
import type { AlertDialogContentProps } from "../types.js";
|
|
4
4
|
import DismissibleLayer from "../../utilities/dismissible-layer/dismissible-layer.svelte";
|
|
5
5
|
import EscapeLayer from "../../utilities/escape-layer/escape-layer.svelte";
|
|
6
6
|
import FocusScope from "../../utilities/focus-scope/focus-scope.svelte";
|
|
7
7
|
import PresenceLayer from "../../utilities/presence-layer/presence-layer.svelte";
|
|
8
8
|
import TextSelectionLayer from "../../utilities/text-selection-layer/text-selection-layer.svelte";
|
|
9
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
10
9
|
import { useId } from "../../../internal/use-id.js";
|
|
11
|
-
import { noop } from "../../../internal/
|
|
10
|
+
import { noop } from "../../../internal/noop.js";
|
|
12
11
|
import ScrollLock from "../../utilities/scroll-lock/scroll-lock.svelte";
|
|
13
12
|
import { useDialogContent } from "../../dialog/dialog.svelte.js";
|
|
14
13
|
|
|
@@ -92,7 +91,7 @@
|
|
|
92
91
|
},
|
|
93
92
|
})}
|
|
94
93
|
>
|
|
95
|
-
{@render children?.(
|
|
94
|
+
{@render children?.()}
|
|
96
95
|
</div>
|
|
97
96
|
{/if}
|
|
98
97
|
</TextSelectionLayer>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { box } from "svelte-toolbelt";
|
|
3
3
|
import type { AlertDialogRootProps } from "../types.js";
|
|
4
|
-
import { noop } from "../../../internal/
|
|
4
|
+
import { noop } from "../../../internal/noop.js";
|
|
5
5
|
import { useDialogRoot } from "../../dialog/dialog.svelte.js";
|
|
6
6
|
|
|
7
7
|
let {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { DialogContentProps, DialogContentPropsWithoutHTML } from "../../types.js";
|
|
2
|
-
export type { DialogRootPropsWithoutHTML as AlertDialogRootPropsWithoutHTML, DialogRootProps as AlertDialogRootProps, DialogClosePropsWithoutHTML as AlertDialogActionPropsWithoutHTML, DialogCloseProps as AlertDialogActionProps, DialogClosePropsWithoutHTML as AlertDialogCancelPropsWithoutHTML, DialogCloseProps as AlertDialogCancelProps, DialogPortalPropsWithoutHTML as AlertDialogPortalPropsWithoutHTML, DialogPortalProps as AlertDialogPortalProps, DialogOverlayPropsWithoutHTML as AlertDialogOverlayPropsWithoutHTML, DialogOverlayProps as AlertDialogOverlayProps, DialogTitlePropsWithoutHTML as AlertDialogTitlePropsWithoutHTML, DialogTitleProps as AlertDialogTitleProps, DialogDescriptionPropsWithoutHTML as AlertDialogDescriptionPropsWithoutHTML, DialogDescriptionProps as AlertDialogDescriptionProps, DialogTriggerPropsWithoutHTML as AlertDialogTriggerPropsWithoutHTML, DialogTriggerProps as AlertDialogTriggerProps, } from "
|
|
2
|
+
export type { DialogRootPropsWithoutHTML as AlertDialogRootPropsWithoutHTML, DialogRootProps as AlertDialogRootProps, DialogClosePropsWithoutHTML as AlertDialogActionPropsWithoutHTML, DialogCloseProps as AlertDialogActionProps, DialogClosePropsWithoutHTML as AlertDialogCancelPropsWithoutHTML, DialogCloseProps as AlertDialogCancelProps, DialogPortalPropsWithoutHTML as AlertDialogPortalPropsWithoutHTML, DialogPortalProps as AlertDialogPortalProps, DialogOverlayPropsWithoutHTML as AlertDialogOverlayPropsWithoutHTML, DialogOverlayProps as AlertDialogOverlayProps, DialogTitlePropsWithoutHTML as AlertDialogTitlePropsWithoutHTML, DialogTitleProps as AlertDialogTitleProps, DialogDescriptionPropsWithoutHTML as AlertDialogDescriptionPropsWithoutHTML, DialogDescriptionProps as AlertDialogDescriptionProps, DialogTriggerPropsWithoutHTML as AlertDialogTriggerPropsWithoutHTML, DialogTriggerProps as AlertDialogTriggerProps, } from "../dialog/types.js";
|
|
3
3
|
export type AlertDialogContentPropsWithoutHTML = Omit<DialogContentPropsWithoutHTML, "onInteractOutside">;
|
|
4
4
|
export type AlertDialogContentProps = DialogContentProps;
|
|
@@ -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 { AspectRatioRootProps } from "../types.js";
|
|
4
4
|
import { useAspectRatioRoot } from "../aspect-ratio.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,5 +1,5 @@
|
|
|
1
1
|
import type { WithChild, Without } from "../../internal/types.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { BitsPrimitiveDivAttributes } from "../../shared/attributes.js";
|
|
3
3
|
export type AspectRatioRootPropsWithoutHTML = WithChild<{
|
|
4
4
|
/**
|
|
5
5
|
* The aspect ratio of the image.
|
|
@@ -8,4 +8,4 @@ export type AspectRatioRootPropsWithoutHTML = WithChild<{
|
|
|
8
8
|
*/
|
|
9
9
|
ratio?: number;
|
|
10
10
|
}>;
|
|
11
|
-
export type AspectRatioRootProps = AspectRatioRootPropsWithoutHTML & Without<
|
|
11
|
+
export type AspectRatioRootProps = AspectRatioRootPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, AspectRatioRootPropsWithoutHTML>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ReadableBox, type WritableBox } from "svelte-toolbelt";
|
|
2
2
|
import type { HTMLImgAttributes } from "svelte/elements";
|
|
3
3
|
import type { AvatarImageLoadingStatus } from "./types.js";
|
|
4
4
|
import type { ReadableBoxedValues } from "../../internal/box.svelte.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { untrack } from "svelte";
|
|
2
|
+
import { useRefById } from "svelte-toolbelt";
|
|
2
3
|
import { createContext } from "../../internal/create-context.js";
|
|
3
|
-
import { useRefById } from "../../internal/use-ref-by-id.svelte.js";
|
|
4
4
|
const AVATAR_ROOT_ATTR = "data-avatar-root";
|
|
5
5
|
const AVATAR_IMAGE_ATTR = "data-avatar-image";
|
|
6
6
|
const AVATAR_FALLBACK_ATTR = "data-avatar-fallback";
|
|
@@ -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 { AvatarFallbackProps } from "../types.js";
|
|
4
4
|
import { useAvatarFallback } from "../avatar.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,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 { AvatarImageProps } from "../types.js";
|
|
4
4
|
import { useAvatarImage } from "../avatar.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,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 { AvatarRootProps } from "../types.js";
|
|
4
4
|
import { useAvatarRoot } from "../avatar.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,5 +1,5 @@
|
|
|
1
1
|
import type { OnChangeFn, WithChild, Without } from "../../internal/types.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { BitsPrimitiveDivAttributes, BitsPrimitiveImgAttributes, BitsPrimitiveSpanAttributes } from "../../shared/attributes.js";
|
|
3
3
|
export type AvatarImageLoadingStatus = "loading" | "loaded" | "error";
|
|
4
4
|
export type AvatarRootPropsWithoutHTML = WithChild<{
|
|
5
5
|
/**
|
|
@@ -19,8 +19,8 @@ export type AvatarRootPropsWithoutHTML = WithChild<{
|
|
|
19
19
|
*/
|
|
20
20
|
onLoadingStatusChange?: OnChangeFn<AvatarImageLoadingStatus>;
|
|
21
21
|
}>;
|
|
22
|
-
export type AvatarRootProps = AvatarRootPropsWithoutHTML & Without<
|
|
22
|
+
export type AvatarRootProps = AvatarRootPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, AvatarRootPropsWithoutHTML>;
|
|
23
23
|
export type AvatarImagePropsWithoutHTML = WithChild;
|
|
24
|
-
export type AvatarImageProps = AvatarImagePropsWithoutHTML & Without<
|
|
24
|
+
export type AvatarImageProps = AvatarImagePropsWithoutHTML & Without<BitsPrimitiveImgAttributes, AvatarImagePropsWithoutHTML>;
|
|
25
25
|
export type AvatarFallbackPropsWithoutHTML = WithChild;
|
|
26
|
-
export type AvatarFallbackProps = AvatarFallbackPropsWithoutHTML & Without<
|
|
26
|
+
export type AvatarFallbackProps = AvatarFallbackPropsWithoutHTML & Without<BitsPrimitiveSpanAttributes, AvatarFallbackPropsWithoutHTML>;
|
|
@@ -169,8 +169,8 @@ declare class CalendarCellState {
|
|
|
169
169
|
readonly "data-disabled": "" | undefined;
|
|
170
170
|
readonly id: string;
|
|
171
171
|
readonly role: "gridcell";
|
|
172
|
-
readonly "aria-selected": "
|
|
173
|
-
readonly "aria-disabled": "
|
|
172
|
+
readonly "aria-selected": "true" | "false";
|
|
173
|
+
readonly "aria-disabled": "true" | "false";
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
176
|
type CalendarDayStateProps = WithRefProps;
|
|
@@ -201,7 +201,7 @@ declare class CalendarDayState {
|
|
|
201
201
|
readonly id: string;
|
|
202
202
|
readonly role: "button";
|
|
203
203
|
readonly "aria-label": string;
|
|
204
|
-
readonly "aria-disabled": "
|
|
204
|
+
readonly "aria-disabled": "true" | "false";
|
|
205
205
|
};
|
|
206
206
|
}
|
|
207
207
|
export type CalendarNextButtonStateProps = WithRefProps;
|
|
@@ -218,7 +218,7 @@ export declare class CalendarNextButtonState {
|
|
|
218
218
|
readonly role: "button";
|
|
219
219
|
readonly type: "button";
|
|
220
220
|
readonly "aria-label": "Next";
|
|
221
|
-
readonly "aria-disabled": "
|
|
221
|
+
readonly "aria-disabled": "true" | "false";
|
|
222
222
|
readonly "data-disabled": "" | undefined;
|
|
223
223
|
readonly disabled: boolean;
|
|
224
224
|
readonly onclick: () => void;
|
|
@@ -238,7 +238,7 @@ export declare class CalendarPrevButtonState {
|
|
|
238
238
|
readonly role: "button";
|
|
239
239
|
readonly type: "button";
|
|
240
240
|
readonly "aria-label": "Previous";
|
|
241
|
-
readonly "aria-disabled": "
|
|
241
|
+
readonly "aria-disabled": "true" | "false";
|
|
242
242
|
readonly "data-disabled": "" | undefined;
|
|
243
243
|
readonly disabled: boolean;
|
|
244
244
|
readonly onclick: () => void;
|
|
@@ -255,8 +255,8 @@ export declare class CalendarGridState {
|
|
|
255
255
|
readonly id: string;
|
|
256
256
|
readonly tabindex: -1;
|
|
257
257
|
readonly role: "grid";
|
|
258
|
-
readonly "aria-readonly": "
|
|
259
|
-
readonly "aria-disabled": "
|
|
258
|
+
readonly "aria-readonly": "true" | "false";
|
|
259
|
+
readonly "aria-disabled": "true" | "false";
|
|
260
260
|
readonly "data-readonly": "" | undefined;
|
|
261
261
|
readonly "data-disabled": "" | undefined;
|
|
262
262
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getLocalTimeZone, isSameDay, isSameMonth, isToday, } from "@internationalized/date";
|
|
2
2
|
import { DEV } from "esm-env";
|
|
3
3
|
import { untrack } from "svelte";
|
|
4
|
+
import { useRefById } from "svelte-toolbelt";
|
|
4
5
|
import { getAriaDisabled, getAriaHidden, getAriaReadonly, getAriaSelected, getDataDisabled, getDataReadonly, getDataSelected, getDataUnavailable, } from "../../internal/attrs.js";
|
|
5
6
|
import { createContext } from "../../internal/create-context.js";
|
|
6
7
|
import { useId } from "../../internal/use-id.js";
|
|
7
|
-
import { useRefById } from "../../internal/use-ref-by-id.svelte.js";
|
|
8
8
|
import { getAnnouncer } from "../../internal/date-time/announcer.js";
|
|
9
9
|
import { createFormatter } from "../../internal/date-time/formatter.js";
|
|
10
10
|
import { createAccessibleHeading, createMonths, getCalendarElementProps, getCalendarHeadingValue, getIsNextButtonDisabled, getIsPrevButtonDisabled, getWeekdays, handleCalendarKeydown, handleCalendarNextPage, handleCalendarPrevPage, shiftCalendarFocus, useMonthViewOptionsSync, useMonthViewPlaceholderSync, } from "../../internal/date-time/calendar-helpers.svelte.js";
|
|
@@ -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 { useCalendarCell } from "../calendar.svelte.js";
|
|
4
4
|
import type { CalendarCellProps } 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
|
children,
|
|
@@ -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 { useCalendarDay } from "../calendar.svelte.js";
|
|
4
4
|
import type { CalendarDayProps } 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
|
children,
|
|
@@ -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 { CalendarGridBodyProps } from "../types.js";
|
|
4
4
|
import { useCalendarGridBody } from "../calendar.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 { useCalendarGridHead } from "../calendar.svelte.js";
|
|
4
4
|
import type { CalendarGridHeadProps } 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
|
children,
|
|
@@ -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 { useCalendarGridRow } from "../calendar.svelte.js";
|
|
4
4
|
import type { CalendarGridRowProps } 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
|
children,
|
|
@@ -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 { useCalendarGrid } from "../calendar.svelte.js";
|
|
4
4
|
import type { CalendarGridProps } 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
|
children,
|
|
@@ -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 { useCalendarHeadCell } from "../calendar.svelte.js";
|
|
4
4
|
import type { CalendarHeadCellProps } 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
|
children,
|
|
@@ -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 { useCalendarHeader } from "../calendar.svelte.js";
|
|
4
4
|
import type { CalendarHeaderProps } 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
|
children,
|
|
@@ -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 { CalendarHeadingProps } from "../types.js";
|
|
4
4
|
import { useCalendarHeading } from "../calendar.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
|
children,
|
|
@@ -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 { useCalendarNextButton } from "../calendar.svelte.js";
|
|
4
4
|
import type { CalendarNextButtonProps } 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
|
children,
|
|
@@ -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 { CalendarPrevButtonProps } from "../types.js";
|
|
4
4
|
import { useCalendarPrevButton } from "../calendar.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
|
children,
|
|
@@ -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 type { DateValue } from "@internationalized/date";
|
|
4
4
|
import { useCalendarRoot } from "../calendar.svelte.js";
|
|
5
5
|
import type { CalendarRootProps } from "../types.js";
|
|
6
6
|
import { useId } from "../../../internal/use-id.js";
|
|
7
|
-
import { noop } from "../../../internal/
|
|
8
|
-
import { mergeProps } from "../../../internal/merge-props.js";
|
|
7
|
+
import { noop } from "../../../internal/noop.js";
|
|
9
8
|
import { getDefaultDate } from "../../../internal/date-time/utils.js";
|
|
10
9
|
|
|
11
10
|
let {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DateValue } from "@internationalized/date";
|
|
2
2
|
import type { OnChangeFn, WithChild, Without } from "../../internal/types.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { BitsPrimitiveButtonAttributes, BitsPrimitiveDivAttributes, BitsPrimitiveHeaderAttributes, BitsPrimitiveTableAttributes, BitsPrimitiveTbodyAttributes, BitsPrimitiveTdAttributes, BitsPrimitiveThAttributes, BitsPrimitiveTheadAttributes, BitsPrimitiveTrAttributes } from "../../shared/attributes.js";
|
|
4
4
|
import type { DateMatcher, Month, WeekStartsOn } from "../../shared/date/types.js";
|
|
5
5
|
export type CalendarRootSnippetProps = {
|
|
6
6
|
months: Month<DateValue>[];
|
|
@@ -211,11 +211,11 @@ export type CalendarMultipleRootPropsWithoutHTML = {
|
|
|
211
211
|
onValueChange?: OnChangeFn<DateValue[]>;
|
|
212
212
|
};
|
|
213
213
|
export type _CalendarSingleRootPropsWithoutHTML = CalendarBaseRootPropsWithoutHTML & CalendarSingleRootPropsWithoutHTML;
|
|
214
|
-
export type CalendarSingleRootProps = _CalendarSingleRootPropsWithoutHTML & Without<
|
|
214
|
+
export type CalendarSingleRootProps = _CalendarSingleRootPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, _CalendarSingleRootPropsWithoutHTML>;
|
|
215
215
|
export type _CalendarMultipleRootPropsWithoutHTML = CalendarBaseRootPropsWithoutHTML & CalendarMultipleRootPropsWithoutHTML;
|
|
216
|
-
export type CalendarMultipleRootProps = _CalendarMultipleRootPropsWithoutHTML & Without<
|
|
216
|
+
export type CalendarMultipleRootProps = _CalendarMultipleRootPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, _CalendarMultipleRootPropsWithoutHTML>;
|
|
217
217
|
export type CalendarRootPropsWithoutHTML = CalendarBaseRootPropsWithoutHTML & (WithChild<CalendarSingleRootPropsWithoutHTML, CalendarRootSnippetProps> | WithChild<CalendarMultipleRootPropsWithoutHTML, CalendarRootSnippetProps>);
|
|
218
|
-
export type CalendarRootProps = CalendarRootPropsWithoutHTML & Without<
|
|
218
|
+
export type CalendarRootProps = CalendarRootPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CalendarRootPropsWithoutHTML>;
|
|
219
219
|
export type CalendarCellSnippetProps = {
|
|
220
220
|
disabled: boolean;
|
|
221
221
|
unavailable: boolean;
|
|
@@ -233,19 +233,19 @@ export type CalendarCellPropsWithoutHTML = WithChild<{
|
|
|
233
233
|
*/
|
|
234
234
|
month: DateValue;
|
|
235
235
|
}, CalendarCellSnippetProps>;
|
|
236
|
-
export type CalendarCellProps = CalendarCellPropsWithoutHTML & Without<
|
|
236
|
+
export type CalendarCellProps = CalendarCellPropsWithoutHTML & Without<BitsPrimitiveTdAttributes, CalendarCellPropsWithoutHTML>;
|
|
237
237
|
export type CalendarGridPropsWithoutHTML = WithChild;
|
|
238
|
-
export type CalendarGridProps = CalendarGridPropsWithoutHTML & Without<
|
|
238
|
+
export type CalendarGridProps = CalendarGridPropsWithoutHTML & Without<BitsPrimitiveTableAttributes, CalendarGridPropsWithoutHTML>;
|
|
239
239
|
export type CalendarGridBodyPropsWithoutHTML = WithChild;
|
|
240
|
-
export type CalendarGridBodyProps = CalendarGridBodyPropsWithoutHTML & Without<
|
|
240
|
+
export type CalendarGridBodyProps = CalendarGridBodyPropsWithoutHTML & Without<BitsPrimitiveTbodyAttributes, CalendarGridBodyPropsWithoutHTML>;
|
|
241
241
|
export type CalendarGridHeadPropsWithoutHTML = WithChild;
|
|
242
|
-
export type CalendarGridHeadProps = CalendarGridHeadPropsWithoutHTML & Without<
|
|
242
|
+
export type CalendarGridHeadProps = CalendarGridHeadPropsWithoutHTML & Without<BitsPrimitiveTheadAttributes, CalendarGridHeadPropsWithoutHTML>;
|
|
243
243
|
export type CalendarHeadCellPropsWithoutHTML = WithChild;
|
|
244
|
-
export type CalendarHeadCellProps = CalendarHeadCellPropsWithoutHTML & Without<
|
|
244
|
+
export type CalendarHeadCellProps = CalendarHeadCellPropsWithoutHTML & Without<BitsPrimitiveThAttributes, CalendarHeadCellPropsWithoutHTML>;
|
|
245
245
|
export type CalendarGridRowPropsWithoutHTML = WithChild;
|
|
246
|
-
export type CalendarGridRowProps = CalendarGridRowPropsWithoutHTML & Without<
|
|
246
|
+
export type CalendarGridRowProps = CalendarGridRowPropsWithoutHTML & Without<BitsPrimitiveTrAttributes, CalendarGridRowPropsWithoutHTML>;
|
|
247
247
|
export type CalendarHeaderPropsWithoutHTML = WithChild;
|
|
248
|
-
export type CalendarHeaderProps = CalendarHeaderPropsWithoutHTML & Without<
|
|
248
|
+
export type CalendarHeaderProps = CalendarHeaderPropsWithoutHTML & Without<BitsPrimitiveHeaderAttributes, CalendarHeaderPropsWithoutHTML>;
|
|
249
249
|
export type CalendarHeadingSnippetProps = {
|
|
250
250
|
headingValue: string;
|
|
251
251
|
};
|
|
@@ -257,10 +257,10 @@ export type CalendarDaySnippetProps = {
|
|
|
257
257
|
day: string;
|
|
258
258
|
};
|
|
259
259
|
export type CalendarDayPropsWithoutHTML = WithChild<{}, CalendarDaySnippetProps>;
|
|
260
|
-
export type CalendarDayProps = CalendarDayPropsWithoutHTML & Without<
|
|
261
|
-
export type CalendarHeadingProps = CalendarHeadingPropsWithoutHTML & Without<
|
|
260
|
+
export type CalendarDayProps = CalendarDayPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CalendarDayPropsWithoutHTML>;
|
|
261
|
+
export type CalendarHeadingProps = CalendarHeadingPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, CalendarHeadingPropsWithoutHTML>;
|
|
262
262
|
export type CalendarNextButtonPropsWithoutHTML = WithChild;
|
|
263
|
-
export type CalendarNextButtonProps = CalendarNextButtonPropsWithoutHTML & Without<
|
|
263
|
+
export type CalendarNextButtonProps = CalendarNextButtonPropsWithoutHTML & Without<BitsPrimitiveButtonAttributes, CalendarNextButtonPropsWithoutHTML>;
|
|
264
264
|
export type CalendarPrevButtonPropsWithoutHTML = WithChild;
|
|
265
|
-
export type CalendarPrevButtonProps = CalendarPrevButtonPropsWithoutHTML & Without<
|
|
265
|
+
export type CalendarPrevButtonProps = CalendarPrevButtonPropsWithoutHTML & Without<BitsPrimitiveButtonAttributes, CalendarPrevButtonPropsWithoutHTML>;
|
|
266
266
|
export {};
|
|
@@ -21,8 +21,8 @@ declare class CheckboxRootState {
|
|
|
21
21
|
readonly role: "checkbox";
|
|
22
22
|
readonly type: "button";
|
|
23
23
|
readonly disabled: boolean;
|
|
24
|
-
readonly "aria-checked": "
|
|
25
|
-
readonly "aria-required": "
|
|
24
|
+
readonly "aria-checked": "true" | "false" | "mixed";
|
|
25
|
+
readonly "aria-required": "true" | "false";
|
|
26
26
|
readonly "data-disabled": "" | undefined;
|
|
27
27
|
readonly "data-state": "checked" | "indeterminate" | "unchecked";
|
|
28
28
|
readonly "data-checkbox-root": "";
|