@human-kit/ui 1.0.0-beta.0 → 1.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -16
- package/dist/FOCUS_STATE_CONTRACT.md +18 -4
- package/dist/FOCUS_STATE_REVIEW_TEMPLATE.md +8 -8
- package/dist/accordion/README.md +3 -3
- package/dist/accordion/root/accordion-root.svelte +15 -3
- package/dist/accordion/root/context.svelte.js +4 -4
- package/dist/accordion/types.d.ts +40 -19
- package/dist/autocomplete/README.md +6 -7
- package/dist/autocomplete/empty/autocomplete-empty.svelte +1 -1
- package/dist/autocomplete/empty/autocomplete-empty.svelte.d.ts +1 -1
- package/dist/autocomplete/input/autocomplete-input.svelte +3 -3
- package/dist/autocomplete/input/autocomplete-input.svelte.d.ts +3 -3
- package/dist/autocomplete/item/autocomplete-item.svelte +10 -0
- package/dist/autocomplete/item-indicator/autocomplete-item-indicator.svelte +2 -2
- package/dist/autocomplete/item-indicator/autocomplete-item-indicator.svelte.d.ts +2 -2
- package/dist/autocomplete/list/autocomplete-list.svelte +2 -2
- package/dist/autocomplete/list/autocomplete-list.svelte.d.ts +11 -3
- package/dist/autocomplete/root/autocomplete.svelte +7 -7
- package/dist/autocomplete/root/autocomplete.svelte.d.ts +7 -7
- package/dist/autocomplete/status/autocomplete-status.svelte +1 -1
- package/dist/autocomplete/status/autocomplete-status.svelte.d.ts +1 -1
- package/dist/avatar/README.md +52 -0
- package/dist/avatar/count/avatar-count.svelte +56 -0
- package/dist/avatar/count/avatar-count.svelte.d.ts +4 -0
- package/dist/avatar/fallback/avatar-fallback.svelte +67 -0
- package/dist/avatar/fallback/avatar-fallback.svelte.d.ts +4 -0
- package/dist/avatar/group/avatar-group.svelte +65 -0
- package/dist/avatar/group/avatar-group.svelte.d.ts +4 -0
- package/dist/avatar/group/context.d.ts +15 -0
- package/dist/avatar/group/context.js +15 -0
- package/dist/avatar/image/avatar-image.svelte +104 -0
- package/dist/avatar/image/avatar-image.svelte.d.ts +4 -0
- package/dist/avatar/index.d.ts +22 -0
- package/dist/avatar/index.js +10 -0
- package/dist/avatar/index.parts.d.ts +5 -0
- package/dist/avatar/index.parts.js +5 -0
- package/dist/avatar/root/avatar-root.svelte +79 -0
- package/dist/avatar/root/avatar-root.svelte.d.ts +4 -0
- package/dist/avatar/root/context.d.ts +14 -0
- package/dist/avatar/root/context.js +15 -0
- package/dist/avatar/types.d.ts +84 -0
- package/dist/avatar/types.js +1 -0
- package/dist/breadcrumbs/README.md +65 -0
- package/dist/breadcrumbs/ellipsis/breadcrumbs-ellipsis.svelte +62 -0
- package/dist/breadcrumbs/ellipsis/breadcrumbs-ellipsis.svelte.d.ts +4 -0
- package/dist/breadcrumbs/index.d.ts +23 -0
- package/dist/breadcrumbs/index.js +10 -0
- package/dist/breadcrumbs/index.parts.d.ts +6 -0
- package/dist/breadcrumbs/index.parts.js +6 -0
- package/dist/breadcrumbs/item/breadcrumbs-item.svelte +42 -0
- package/dist/breadcrumbs/item/breadcrumbs-item.svelte.d.ts +4 -0
- package/dist/breadcrumbs/link/breadcrumbs-link.svelte +47 -0
- package/dist/breadcrumbs/link/breadcrumbs-link.svelte.d.ts +4 -0
- package/dist/breadcrumbs/list/breadcrumbs-list.svelte +31 -0
- package/dist/breadcrumbs/list/breadcrumbs-list.svelte.d.ts +4 -0
- package/dist/breadcrumbs/root/breadcrumbs-root.svelte +112 -0
- package/dist/breadcrumbs/root/breadcrumbs-root.svelte.d.ts +4 -0
- package/dist/breadcrumbs/root/context.d.ts +19 -0
- package/dist/breadcrumbs/root/context.js +15 -0
- package/dist/breadcrumbs/separator/breadcrumbs-separator.svelte +35 -0
- package/dist/breadcrumbs/separator/breadcrumbs-separator.svelte.d.ts +4 -0
- package/dist/breadcrumbs/types.d.ts +80 -0
- package/dist/breadcrumbs/types.js +1 -0
- package/dist/button/README.md +1 -1
- package/dist/button/root/button-root.svelte +37 -7
- package/dist/button/root/button-root.svelte.d.ts +19 -4
- package/dist/calendar/README.md +3 -3
- package/dist/calendar/body-cell/calendar-body-cell.svelte +7 -0
- package/dist/calendar/grid-header/calendar-grid-header.svelte +3 -4
- package/dist/calendar/grid-header/calendar-grid-header.svelte.d.ts +3 -4
- package/dist/calendar/root/calendar-root.svelte +8 -2
- package/dist/calendar/root/calendar-root.svelte.d.ts +8 -2
- package/dist/calendar/root/context.svelte.js +8 -2
- package/dist/calendar/trigger-next/README.md +1 -1
- package/dist/calendar/trigger-previous/README.md +1 -1
- package/dist/checkbox/README.md +1 -1
- package/dist/checkbox/indicator/README.md +1 -1
- package/dist/checkbox/indicator/checkbox-indicator.svelte +1 -0
- package/dist/checkbox/indicator/checkbox-indicator.svelte.d.ts +1 -0
- package/dist/checkbox/root/README.md +2 -2
- package/dist/checkbox/root/checkbox-root.svelte +133 -38
- package/dist/checkbox/root/checkbox-root.svelte.d.ts +21 -1
- package/dist/checkbox-group/README.md +95 -0
- package/dist/checkbox-group/index.d.ts +15 -0
- package/dist/checkbox-group/index.js +6 -0
- package/dist/checkbox-group/index.parts.d.ts +4 -0
- package/dist/checkbox-group/index.parts.js +7 -0
- package/dist/checkbox-group/label/checkbox-group-label.svelte +36 -0
- package/dist/checkbox-group/label/checkbox-group-label.svelte.d.ts +4 -0
- package/dist/checkbox-group/root/checkbox-group-root.svelte +118 -0
- package/dist/checkbox-group/root/checkbox-group-root.svelte.d.ts +4 -0
- package/dist/checkbox-group/root/context.svelte.d.ts +52 -0
- package/dist/checkbox-group/root/context.svelte.js +251 -0
- package/dist/checkbox-group/types.d.ts +57 -0
- package/dist/checkbox-group/types.js +1 -0
- package/dist/clock/README.md +3 -3
- package/dist/clock/axis/README.md +1 -1
- package/dist/clock/root/README.md +1 -1
- package/dist/clock/root/create-time-selection-state.svelte.d.ts +5 -0
- package/dist/clock/root/create-time-selection-state.svelte.js +113 -10
- package/dist/clock/root/wheel-options.d.ts +7 -3
- package/dist/clock/root/wheel-options.js +7 -15
- package/dist/clock/wheel-column/clock-wheel-column.svelte +10 -2
- package/dist/clock/wheel-column/clock-wheel-column.svelte.d.ts +2 -1
- package/dist/collapsible/README.md +3 -3
- package/dist/collapsible/root/collapsible-root.svelte +9 -4
- package/dist/collapsible/types.d.ts +13 -1
- package/dist/combobox/README.md +2 -2
- package/dist/combobox/button/README.md +6 -6
- package/dist/combobox/input/README.md +1 -1
- package/dist/combobox/input/combobox-input.svelte +15 -4
- package/dist/combobox/input/combobox-input.svelte.d.ts +3 -3
- package/dist/combobox/item/combobox-listboxitem.svelte +4 -2
- package/dist/combobox/item/combobox-listboxitem.svelte.d.ts +4 -2
- package/dist/combobox/item-indicator/README.md +1 -1
- package/dist/combobox/item-indicator/combobox-item-indicator.svelte +2 -2
- package/dist/combobox/item-indicator/combobox-item-indicator.svelte.d.ts +2 -2
- package/dist/combobox/list/combobox-listbox.svelte +98 -3
- package/dist/combobox/list/combobox-listbox.svelte.d.ts +28 -3
- package/dist/combobox/popover/README.md +1 -1
- package/dist/combobox/popover/combobox-popover.svelte +4 -56
- package/dist/combobox/root/README.md +24 -24
- package/dist/combobox/root/combobox.svelte +138 -56
- package/dist/combobox/root/combobox.svelte.d.ts +31 -11
- package/dist/combobox/root/context.d.ts +12 -0
- package/dist/combobox/status/README.md +3 -3
- package/dist/combobox/status/combobox-status.svelte +1 -1
- package/dist/combobox/status/combobox-status.svelte.d.ts +1 -1
- package/dist/combobox/tag/README.md +1 -1
- package/dist/combobox/tag/combobox-tag.svelte +1 -1
- package/dist/combobox/tag/combobox-tag.svelte.d.ts +1 -1
- package/dist/combobox/tag-remove/README.md +1 -1
- package/dist/combobox/tag-remove/combobox-tag-remove.svelte +14 -3
- package/dist/combobox/tag-remove/combobox-tag-remove.svelte.d.ts +7 -1
- package/dist/combobox/tags/README.md +1 -1
- package/dist/combobox/tags/combobox-tags.svelte +15 -12
- package/dist/combobox/tags/combobox-tags.svelte.d.ts +12 -10
- package/dist/combobox/trigger/README.md +7 -7
- package/dist/combobox/trigger/combobox-trigger.svelte +4 -1
- package/dist/datepicker/README.md +5 -4
- package/dist/datepicker/input/date-picker-input.svelte +3 -4
- package/dist/datepicker/input/date-picker-input.svelte.d.ts +3 -4
- package/dist/datepicker/root/date-picker-root.svelte +38 -2
- package/dist/datepicker/root/date-picker-root.svelte.d.ts +2 -0
- package/dist/datepicker/root/draft-evaluation.d.ts +7 -0
- package/dist/datepicker/root/draft-evaluation.js +2 -2
- package/dist/datepicker/trigger/README.md +1 -1
- package/dist/daterangepicker/README.md +3 -3
- package/dist/daterangepicker/input/date-range-picker-input.svelte +3 -4
- package/dist/daterangepicker/input/date-range-picker-input.svelte.d.ts +3 -4
- package/dist/daterangepicker/root/date-range-picker-root.svelte +19 -1
- package/dist/daterangepicker/root/date-range-picker-root.svelte.d.ts +2 -0
- package/dist/dialog/README.md +10 -2
- package/dist/dialog/close/dialog-close.svelte +57 -0
- package/dist/dialog/close/dialog-close.svelte.d.ts +19 -0
- package/dist/dialog/content/dialog-content.svelte +6 -4
- package/dist/dialog/content/dialog-content.svelte.d.ts +4 -4
- package/dist/dialog/description/dialog-description.svelte +46 -0
- package/dist/dialog/description/dialog-description.svelte.d.ts +20 -0
- package/dist/dialog/index.d.ts +9 -0
- package/dist/dialog/index.js +3 -0
- package/dist/dialog/index.parts.d.ts +3 -0
- package/dist/dialog/index.parts.js +3 -0
- package/dist/dialog/overlay/dialog-overlay.svelte +1 -1
- package/dist/dialog/overlay/dialog-overlay.svelte.d.ts +1 -1
- package/dist/dialog/portal/dialog-portal.svelte +1 -1
- package/dist/dialog/portal/dialog-portal.svelte.d.ts +1 -1
- package/dist/dialog/root/README.md +1 -1
- package/dist/dialog/root/context.d.ts +8 -0
- package/dist/dialog/root/dialog-root.svelte +100 -20
- package/dist/dialog/root/dialog-root.svelte.d.ts +15 -6
- package/dist/dialog/root/dialog-stack.d.ts +6 -22
- package/dist/dialog/root/dialog-stack.js +4 -33
- package/dist/dialog/title/dialog-title.svelte +43 -0
- package/dist/dialog/title/dialog-title.svelte.d.ts +21 -0
- package/dist/dialog/trigger/README.md +1 -1
- package/dist/drawer/README.md +111 -0
- package/dist/drawer/body/drawer-body.svelte +47 -0
- package/dist/drawer/body/drawer-body.svelte.d.ts +32 -0
- package/dist/drawer/close/drawer-close.svelte +52 -0
- package/dist/drawer/close/drawer-close.svelte.d.ts +20 -0
- package/dist/drawer/content/drawer-content.svelte +600 -0
- package/dist/drawer/content/drawer-content.svelte.d.ts +31 -0
- package/dist/drawer/description/drawer-description.svelte +40 -0
- package/dist/drawer/description/drawer-description.svelte.d.ts +20 -0
- package/dist/drawer/indent/drawer-indent-background.svelte +36 -0
- package/dist/drawer/indent/drawer-indent-background.svelte.d.ts +17 -0
- package/dist/drawer/indent/drawer-indent.svelte +59 -0
- package/dist/drawer/indent/drawer-indent.svelte.d.ts +32 -0
- package/dist/drawer/index.d.ts +49 -0
- package/dist/drawer/index.js +25 -0
- package/dist/drawer/index.parts.d.ts +14 -0
- package/dist/drawer/index.parts.js +15 -0
- package/dist/drawer/overlay/drawer-overlay.svelte +67 -0
- package/dist/drawer/overlay/drawer-overlay.svelte.d.ts +12 -0
- package/dist/drawer/portal/drawer-portal.svelte +57 -0
- package/dist/drawer/portal/drawer-portal.svelte.d.ts +13 -0
- package/dist/drawer/root/context.d.ts +81 -0
- package/dist/drawer/root/context.js +20 -0
- package/dist/drawer/root/drawer-root.svelte +348 -0
- package/dist/drawer/root/drawer-root.svelte.d.ts +79 -0
- package/dist/drawer/root/drawer-stack.svelte.d.ts +73 -0
- package/dist/drawer/root/drawer-stack.svelte.js +113 -0
- package/dist/drawer/root/handle.svelte.d.ts +39 -0
- package/dist/drawer/root/handle.svelte.js +64 -0
- package/dist/drawer/root/keyboard-context.d.ts +13 -0
- package/dist/drawer/root/keyboard-context.js +8 -0
- package/dist/drawer/root/presence-context.d.ts +22 -0
- package/dist/drawer/root/presence-context.js +8 -0
- package/dist/drawer/root/snap-points.d.ts +68 -0
- package/dist/drawer/root/snap-points.js +120 -0
- package/dist/drawer/root/starting-style.svelte.d.ts +18 -0
- package/dist/drawer/root/starting-style.svelte.js +38 -0
- package/dist/drawer/root/types.d.ts +36 -0
- package/dist/drawer/root/types.js +1 -0
- package/dist/drawer/root/viewport-context.d.ts +2 -0
- package/dist/drawer/root/viewport-context.js +16 -0
- package/dist/drawer/swipe-area/drawer-swipe-area.svelte +143 -0
- package/dist/drawer/swipe-area/drawer-swipe-area.svelte.d.ts +22 -0
- package/dist/drawer/title/drawer-title.svelte +37 -0
- package/dist/drawer/title/drawer-title.svelte.d.ts +21 -0
- package/dist/drawer/trigger/drawer-trigger.svelte +90 -0
- package/dist/drawer/trigger/drawer-trigger.svelte.d.ts +41 -0
- package/dist/drawer/viewport/drawer-viewport.svelte +69 -0
- package/dist/drawer/viewport/drawer-viewport.svelte.d.ts +15 -0
- package/dist/drawer/virtual-keyboard/drawer-virtual-keyboard-provider.svelte +88 -0
- package/dist/drawer/virtual-keyboard/drawer-virtual-keyboard-provider.svelte.d.ts +29 -0
- package/dist/dropzone/README.md +4 -6
- package/dist/hooks/use-virtual-focus.svelte.d.ts +9 -0
- package/dist/hooks/use-virtual-focus.svelte.js +7 -1
- package/dist/index.d.ts +24 -0
- package/dist/index.js +23 -0
- package/dist/input/input.svelte +6 -6
- package/dist/input/input.svelte.d.ts +6 -6
- package/dist/internal/environment.d.ts +11 -0
- package/dist/internal/environment.js +14 -0
- package/dist/internal/localized-strings.d.ts +152 -0
- package/dist/internal/localized-strings.js +152 -0
- package/dist/internal/number-precision.d.ts +9 -0
- package/dist/internal/number-precision.js +27 -0
- package/dist/listbox/README.md +20 -1
- package/dist/listbox/item/listbox-item.svelte +43 -18
- package/dist/listbox/item/listbox-item.svelte.d.ts +24 -15
- package/dist/listbox/root/README.md +1 -1
- package/dist/listbox/root/context.d.ts +56 -1
- package/dist/listbox/root/context.js +118 -1
- package/dist/listbox/root/listbox.svelte +400 -27
- package/dist/listbox/root/listbox.svelte.d.ts +73 -16
- package/dist/locale-provider/README.md +1 -6
- package/dist/menu/README.md +41 -4
- package/dist/menu/content/menu-content.svelte +31 -14
- package/dist/menu/content/menu-content.svelte.d.ts +14 -9
- package/dist/menu/context-trigger/menu-context-trigger.svelte +194 -0
- package/dist/menu/context-trigger/menu-context-trigger.svelte.d.ts +35 -0
- package/dist/menu/group/menu-group-label.svelte +1 -1
- package/dist/menu/group/menu-group-label.svelte.d.ts +1 -1
- package/dist/menu/index.d.ts +4 -1
- package/dist/menu/index.js +1 -0
- package/dist/menu/index.parts.d.ts +1 -0
- package/dist/menu/index.parts.js +1 -0
- package/dist/menu/item/menu-item.svelte +11 -8
- package/dist/menu/item/menu-item.svelte.d.ts +11 -8
- package/dist/menu/overlay/menu-overlay.svelte +2 -2
- package/dist/menu/overlay/menu-overlay.svelte.d.ts +1 -1
- package/dist/menu/root/context.d.ts +24 -3
- package/dist/menu/root/focus-state.d.ts +2 -2
- package/dist/menu/root/focus-state.js +8 -32
- package/dist/menu/root/menu-root.svelte +14 -8
- package/dist/menu/root/menu-root.svelte.d.ts +14 -8
- package/dist/menu/root/menu-state.svelte.d.ts +1 -1
- package/dist/menu/root/menu-state.svelte.js +24 -1
- package/dist/menu/separator/menu-separator.svelte +1 -1
- package/dist/menu/separator/menu-separator.svelte.d.ts +1 -1
- package/dist/menu/submenu/menu-submenu-root.svelte +10 -7
- package/dist/menu/submenu/menu-submenu-root.svelte.d.ts +10 -7
- package/dist/numberfield/root/README.md +1 -1
- package/dist/numberfield/root/number-field-root.svelte +2 -1
- package/dist/numberfield/root/number-utils.js +1 -20
- package/dist/numberfield/scrub-area-cursor/README.md +1 -1
- package/dist/popover/README.md +1 -1
- package/dist/popover/content/popover-content.svelte +22 -16
- package/dist/popover/content/popover-content.svelte.d.ts +19 -14
- package/dist/popover/overlay/popover-overlay.svelte +2 -2
- package/dist/popover/overlay/popover-overlay.svelte.d.ts +1 -1
- package/dist/popover/root/README.md +1 -1
- package/dist/popover/root/focus-state.d.ts +2 -2
- package/dist/popover/root/focus-state.js +7 -34
- package/dist/popover/root/popover-root.svelte +29 -14
- package/dist/popover/root/popover-root.svelte.d.ts +16 -5
- package/dist/popover/trigger/README.md +1 -1
- package/dist/primitives/aria-hide-outside.d.ts +13 -0
- package/dist/primitives/aria-hide-outside.js +7 -1
- package/dist/primitives/contain-wheel.d.ts +9 -0
- package/dist/primitives/contain-wheel.js +41 -0
- package/dist/primitives/floating.d.ts +49 -8
- package/dist/primitives/floating.js +75 -7
- package/dist/primitives/focus-trap.d.ts +2 -0
- package/dist/primitives/focus-trap.js +7 -1
- package/dist/primitives/focus-visible.svelte.d.ts +14 -0
- package/dist/primitives/focus-visible.svelte.js +19 -0
- package/dist/primitives/index.d.ts +3 -0
- package/dist/primitives/index.js +3 -0
- package/dist/primitives/input-modality.d.ts +7 -0
- package/dist/primitives/input-modality.js +32 -5
- package/dist/primitives/keyboard-navigation.d.ts +29 -5
- package/dist/primitives/keyboard-navigation.js +27 -17
- package/dist/primitives/layer-stack.d.ts +29 -0
- package/dist/primitives/layer-stack.js +35 -0
- package/dist/primitives/list-virtualizer.d.ts +75 -0
- package/dist/primitives/list-virtualizer.js +59 -0
- package/dist/primitives/long-press.d.ts +59 -0
- package/dist/primitives/long-press.js +142 -0
- package/dist/primitives/presence.svelte.js +6 -1
- package/dist/primitives/scroll-lock.d.ts +47 -3
- package/dist/primitives/scroll-lock.js +191 -9
- package/dist/primitives/swipe-gesture.d.ts +126 -0
- package/dist/primitives/swipe-gesture.js +351 -0
- package/dist/primitives/text.d.ts +8 -0
- package/dist/primitives/text.js +13 -0
- package/dist/primitives/trigger-focus-state.d.ts +29 -0
- package/dist/primitives/trigger-focus-state.js +57 -0
- package/dist/progress/README.md +54 -0
- package/dist/progress/index.d.ts +21 -0
- package/dist/progress/index.js +9 -0
- package/dist/progress/index.parts.d.ts +5 -0
- package/dist/progress/index.parts.js +5 -0
- package/dist/progress/indicator/progress-indicator.svelte +37 -0
- package/dist/progress/indicator/progress-indicator.svelte.d.ts +4 -0
- package/dist/progress/label/progress-label.svelte +34 -0
- package/dist/progress/label/progress-label.svelte.d.ts +4 -0
- package/dist/progress/root/context.d.ts +26 -0
- package/dist/progress/root/context.js +15 -0
- package/dist/progress/root/progress-root.svelte +136 -0
- package/dist/progress/root/progress-root.svelte.d.ts +4 -0
- package/dist/progress/root/progress-utils.d.ts +12 -0
- package/dist/progress/root/progress-utils.js +41 -0
- package/dist/progress/track/progress-track.svelte +27 -0
- package/dist/progress/track/progress-track.svelte.d.ts +4 -0
- package/dist/progress/types.d.ts +81 -0
- package/dist/progress/types.js +1 -0
- package/dist/progress/value/progress-value.svelte +36 -0
- package/dist/progress/value/progress-value.svelte.d.ts +4 -0
- package/dist/radio-group/README.md +103 -0
- package/dist/radio-group/index.d.ts +18 -0
- package/dist/radio-group/index.js +9 -0
- package/dist/radio-group/index.parts.d.ts +4 -0
- package/dist/radio-group/index.parts.js +4 -0
- package/dist/radio-group/indicator/radio-group-indicator.svelte +43 -0
- package/dist/radio-group/indicator/radio-group-indicator.svelte.d.ts +12 -0
- package/dist/radio-group/item/context.d.ts +18 -0
- package/dist/radio-group/item/context.js +15 -0
- package/dist/radio-group/item/radio-group-item.svelte +377 -0
- package/dist/radio-group/item/radio-group-item.svelte.d.ts +35 -0
- package/dist/radio-group/label/radio-group-label.svelte +37 -0
- package/dist/radio-group/label/radio-group-label.svelte.d.ts +4 -0
- package/dist/radio-group/root/context.svelte.d.ts +57 -0
- package/dist/radio-group/root/context.svelte.js +284 -0
- package/dist/radio-group/root/radio-group-root.svelte +193 -0
- package/dist/radio-group/root/radio-group-root.svelte.d.ts +4 -0
- package/dist/radio-group/types.d.ts +50 -0
- package/dist/radio-group/types.js +1 -0
- package/dist/select/README.md +129 -0
- package/dist/select/index.d.ts +30 -0
- package/dist/select/index.js +16 -0
- package/dist/select/index.parts.d.ts +8 -0
- package/dist/select/index.parts.js +9 -0
- package/dist/select/item/select-item.svelte +68 -0
- package/dist/select/item/select-item.svelte.d.ts +10 -0
- package/dist/select/item-indicator/select-item-indicator.svelte +55 -0
- package/dist/select/item-indicator/select-item-indicator.svelte.d.ts +4 -0
- package/dist/select/label/select-label.svelte +46 -0
- package/dist/select/label/select-label.svelte.d.ts +4 -0
- package/dist/select/list/select-list.svelte +241 -0
- package/dist/select/list/select-list.svelte.d.ts +62 -0
- package/dist/select/popover/select-popover.svelte +80 -0
- package/dist/select/popover/select-popover.svelte.d.ts +9 -0
- package/dist/select/root/context.d.ts +106 -0
- package/dist/select/root/context.js +22 -0
- package/dist/select/root/select-root.svelte +544 -0
- package/dist/select/root/select-root.svelte.d.ts +25 -0
- package/dist/select/trigger/select-trigger.svelte +192 -0
- package/dist/select/trigger/select-trigger.svelte.d.ts +4 -0
- package/dist/select/types.d.ts +133 -0
- package/dist/select/types.js +1 -0
- package/dist/select/value/select-value.svelte +61 -0
- package/dist/select/value/select-value.svelte.d.ts +4 -0
- package/dist/separator/README.md +35 -0
- package/dist/separator/index.d.ts +7 -0
- package/dist/separator/index.js +3 -0
- package/dist/separator/separator.svelte +254 -0
- package/dist/separator/separator.svelte.d.ts +45 -0
- package/dist/separator/types.d.ts +1 -0
- package/dist/separator/types.js +1 -0
- package/dist/slider/README.md +61 -0
- package/dist/slider/fill/slider-fill.svelte +40 -0
- package/dist/slider/fill/slider-fill.svelte.d.ts +4 -0
- package/dist/slider/index.d.ts +9 -0
- package/dist/slider/index.js +8 -0
- package/dist/slider/index.parts.d.ts +6 -0
- package/dist/slider/index.parts.js +6 -0
- package/dist/slider/label/slider-label.svelte +44 -0
- package/dist/slider/label/slider-label.svelte.d.ts +4 -0
- package/dist/slider/output/slider-output.svelte +46 -0
- package/dist/slider/output/slider-output.svelte.d.ts +4 -0
- package/dist/slider/root/context.d.ts +106 -0
- package/dist/slider/root/context.js +15 -0
- package/dist/slider/root/slider-root.svelte +545 -0
- package/dist/slider/root/slider-root.svelte.d.ts +4 -0
- package/dist/slider/root/slider-utils.d.ts +57 -0
- package/dist/slider/root/slider-utils.js +88 -0
- package/dist/slider/thumb/slider-thumb.svelte +276 -0
- package/dist/slider/thumb/slider-thumb.svelte.d.ts +4 -0
- package/dist/slider/track/slider-track.svelte +60 -0
- package/dist/slider/track/slider-track.svelte.d.ts +4 -0
- package/dist/slider/types.d.ts +144 -0
- package/dist/slider/types.js +1 -0
- package/dist/switch/root/README.md +2 -2
- package/dist/switch/root/switch-root.svelte +49 -21
- package/dist/switch/root/switch-root.svelte.d.ts +26 -14
- package/dist/switch/thumb/switch-thumb.svelte +1 -1
- package/dist/switch/thumb/switch-thumb.svelte.d.ts +1 -1
- package/dist/table/README.md +16 -9
- package/dist/table/body/table-body.svelte +84 -9
- package/dist/table/cell/table-cell.svelte +27 -10
- package/dist/table/checkbox/table-checkbox.svelte +3 -0
- package/dist/table/checkbox-indicator/README.md +1 -1
- package/dist/table/column/table-column.svelte +5 -1
- package/dist/table/column-header-cell/table-column-header-cell.svelte +24 -0
- package/dist/table/column-resizer/README.md +2 -2
- package/dist/table/column-resizer/table-column-resizer.svelte +1 -5
- package/dist/table/index.d.ts +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/interactive-cell/table-interactive-cell.svelte +26 -10
- package/dist/table/root/README.md +1 -1
- package/dist/table/root/context.svelte.d.ts +17 -0
- package/dist/table/root/context.svelte.js +212 -66
- package/dist/table/root/table-root.svelte +36 -6
- package/dist/table/row/table-row.svelte +14 -14
- package/dist/table/sort-trigger/README.md +1 -1
- package/dist/table/sort-trigger/table-sort-trigger.svelte +5 -1
- package/dist/table/types.d.ts +32 -14
- package/dist/tabs/root/tabs-root.svelte +20 -6
- package/dist/tabs/types.d.ts +9 -0
- package/dist/timepicker/README.md +3 -2
- package/dist/timepicker/input/README.md +1 -1
- package/dist/timepicker/input/time-picker-input.svelte +66 -5
- package/dist/timepicker/input/time-picker-input.svelte.d.ts +18 -1
- package/dist/timepicker/root/README.md +1 -1
- package/dist/timepicker/root/time-picker-root.svelte +11 -0
- package/dist/timepicker/root/time-picker-root.svelte.d.ts +2 -0
- package/dist/timepicker/trigger/README.md +1 -1
- package/dist/toast/README.md +75 -0
- package/dist/toast/action/toast-action.svelte +42 -0
- package/dist/toast/action/toast-action.svelte.d.ts +4 -0
- package/dist/toast/close/toast-close.svelte +41 -0
- package/dist/toast/close/toast-close.svelte.d.ts +4 -0
- package/dist/toast/content/toast-content.svelte +24 -0
- package/dist/toast/content/toast-content.svelte.d.ts +4 -0
- package/dist/toast/description/toast-description.svelte +41 -0
- package/dist/toast/description/toast-description.svelte.d.ts +4 -0
- package/dist/toast/index.d.ts +34 -0
- package/dist/toast/index.js +15 -0
- package/dist/toast/index.parts.d.ts +9 -0
- package/dist/toast/index.parts.js +9 -0
- package/dist/toast/positioner/toast-positioner.svelte +75 -0
- package/dist/toast/positioner/toast-positioner.svelte.d.ts +4 -0
- package/dist/toast/provider/context.d.ts +36 -0
- package/dist/toast/provider/context.js +22 -0
- package/dist/toast/provider/toast-manager.svelte.d.ts +113 -0
- package/dist/toast/provider/toast-manager.svelte.js +210 -0
- package/dist/toast/provider/toast-provider.svelte +98 -0
- package/dist/toast/provider/toast-provider.svelte.d.ts +4 -0
- package/dist/toast/root/context.d.ts +18 -0
- package/dist/toast/root/context.js +15 -0
- package/dist/toast/root/toast-root.svelte +296 -0
- package/dist/toast/root/toast-root.svelte.d.ts +4 -0
- package/dist/toast/title/toast-title.svelte +38 -0
- package/dist/toast/title/toast-title.svelte.d.ts +4 -0
- package/dist/toast/types.d.ts +100 -0
- package/dist/toast/types.js +1 -0
- package/dist/toast/viewport/toast-viewport.svelte +389 -0
- package/dist/toast/viewport/toast-viewport.svelte.d.ts +4 -0
- package/dist/toggle/README.md +1 -1
- package/dist/toggle/root/toggle-root.svelte +28 -0
- package/dist/toggle/root/toggle-root.svelte.d.ts +19 -0
- package/dist/toggle-group/README.md +12 -4
- package/dist/toggle-group/index.d.ts +2 -0
- package/dist/toggle-group/index.parts.d.ts +1 -0
- package/dist/toggle-group/index.parts.js +4 -0
- package/dist/toggle-group/root/context.svelte.d.ts +1 -1
- package/dist/toggle-group/root/context.svelte.js +24 -8
- package/dist/toggle-group/root/toggle-group-root.svelte +24 -4
- package/dist/toggle-group/root/toggle-group-teardown-order-child.svelte +13 -0
- package/dist/toggle-group/root/toggle-group-teardown-order-child.svelte.d.ts +7 -0
- package/dist/toggle-group/types.d.ts +9 -0
- package/dist/tooltip/README.md +53 -0
- package/dist/tooltip/arrow/tooltip-arrow.svelte +36 -0
- package/dist/tooltip/arrow/tooltip-arrow.svelte.d.ts +4 -0
- package/dist/tooltip/content/tooltip-content.svelte +148 -0
- package/dist/tooltip/content/tooltip-content.svelte.d.ts +4 -0
- package/dist/tooltip/index.d.ts +8 -0
- package/dist/tooltip/index.js +7 -0
- package/dist/tooltip/index.parts.d.ts +5 -0
- package/dist/tooltip/index.parts.js +5 -0
- package/dist/tooltip/provider/tooltip-provider.svelte +36 -0
- package/dist/tooltip/provider/tooltip-provider.svelte.d.ts +4 -0
- package/dist/tooltip/root/context.d.ts +46 -0
- package/dist/tooltip/root/context.js +22 -0
- package/dist/tooltip/root/safe-polygon.d.ts +26 -0
- package/dist/tooltip/root/safe-polygon.js +66 -0
- package/dist/tooltip/root/tooltip-group.d.ts +26 -0
- package/dist/tooltip/root/tooltip-group.js +41 -0
- package/dist/tooltip/root/tooltip-root.svelte +461 -0
- package/dist/tooltip/root/tooltip-root.svelte.d.ts +4 -0
- package/dist/tooltip/trigger/tooltip-trigger.svelte +52 -0
- package/dist/tooltip/trigger/tooltip-trigger.svelte.d.ts +4 -0
- package/dist/tooltip/types.d.ts +105 -0
- package/dist/tooltip/types.js +1 -0
- package/dist/transfer-list/README.md +110 -0
- package/dist/transfer-list/index.d.ts +33 -0
- package/dist/transfer-list/index.js +18 -0
- package/dist/transfer-list/index.parts.d.ts +9 -0
- package/dist/transfer-list/index.parts.js +10 -0
- package/dist/transfer-list/item/transfer-list-item.svelte +74 -0
- package/dist/transfer-list/item/transfer-list-item.svelte.d.ts +35 -0
- package/dist/transfer-list/list/transfer-list-list.svelte +162 -0
- package/dist/transfer-list/list/transfer-list-list.svelte.d.ts +56 -0
- package/dist/transfer-list/list/transfer-list-source.svelte +13 -0
- package/dist/transfer-list/list/transfer-list-source.svelte.d.ts +36 -0
- package/dist/transfer-list/list/transfer-list-target.svelte +14 -0
- package/dist/transfer-list/list/transfer-list-target.svelte.d.ts +36 -0
- package/dist/transfer-list/move/transfer-list-move-all.svelte +14 -0
- package/dist/transfer-list/move/transfer-list-move-all.svelte.d.ts +10 -0
- package/dist/transfer-list/move/transfer-list-move-button.svelte +103 -0
- package/dist/transfer-list/move/transfer-list-move-button.svelte.d.ts +25 -0
- package/dist/transfer-list/move/transfer-list-move-down.svelte +14 -0
- package/dist/transfer-list/move/transfer-list-move-down.svelte.d.ts +10 -0
- package/dist/transfer-list/move/transfer-list-move-selected.svelte +14 -0
- package/dist/transfer-list/move/transfer-list-move-selected.svelte.d.ts +10 -0
- package/dist/transfer-list/move/transfer-list-move-up.svelte +14 -0
- package/dist/transfer-list/move/transfer-list-move-up.svelte.d.ts +10 -0
- package/dist/transfer-list/move/transfer-list-reorder-button.svelte +83 -0
- package/dist/transfer-list/move/transfer-list-reorder-button.svelte.d.ts +21 -0
- package/dist/transfer-list/root/context.d.ts +70 -0
- package/dist/transfer-list/root/context.js +24 -0
- package/dist/transfer-list/root/transfer-list-root.svelte +345 -0
- package/dist/transfer-list/root/transfer-list-root.svelte.d.ts +68 -0
- package/dist/transfer-list/root/types.d.ts +22 -0
- package/dist/transfer-list/root/types.js +4 -0
- package/dist/transfer-list/status/transfer-list-status.svelte +70 -0
- package/dist/transfer-list/status/transfer-list-status.svelte.d.ts +15 -0
- package/dist/tree/README.md +3 -3
- package/dist/tree/checkbox-indicator/README.md +1 -1
- package/dist/tree/root/README.md +1 -1
- package/dist/tree/root/context.svelte.js +6 -0
- package/dist/tree/root/tree-root.svelte +22 -8
- package/dist/tree/types.d.ts +23 -1
- package/package.json +282 -224
|
@@ -24,6 +24,30 @@ declare const LOCALIZED_STRINGS: {
|
|
|
24
24
|
readonly de: "Vorherige Seite";
|
|
25
25
|
readonly it: "Pagina precedente";
|
|
26
26
|
};
|
|
27
|
+
readonly 'select.placeholder': {
|
|
28
|
+
readonly en: "Select an option";
|
|
29
|
+
readonly es: "Seleccione una opción";
|
|
30
|
+
readonly pt: "Selecione uma opção";
|
|
31
|
+
readonly fr: "Sélectionnez une option";
|
|
32
|
+
readonly de: "Option auswählen";
|
|
33
|
+
readonly it: "Seleziona un’opzione";
|
|
34
|
+
};
|
|
35
|
+
readonly 'slider.minimum': {
|
|
36
|
+
readonly en: "Minimum";
|
|
37
|
+
readonly es: "Mínimo";
|
|
38
|
+
readonly pt: "Mínimo";
|
|
39
|
+
readonly fr: "Minimum";
|
|
40
|
+
readonly de: "Minimum";
|
|
41
|
+
readonly it: "Minimo";
|
|
42
|
+
};
|
|
43
|
+
readonly 'slider.maximum': {
|
|
44
|
+
readonly en: "Maximum";
|
|
45
|
+
readonly es: "Máximo";
|
|
46
|
+
readonly pt: "Máximo";
|
|
47
|
+
readonly fr: "Maximum";
|
|
48
|
+
readonly de: "Maximum";
|
|
49
|
+
readonly it: "Massimo";
|
|
50
|
+
};
|
|
27
51
|
readonly 'datePicker.calendar': {
|
|
28
52
|
readonly en: "Calendar";
|
|
29
53
|
readonly es: "Calendario";
|
|
@@ -224,6 +248,110 @@ declare const LOCALIZED_STRINGS: {
|
|
|
224
248
|
readonly de: "{count} Ergebnisse verfügbar";
|
|
225
249
|
readonly it: "{count} risultati disponibili";
|
|
226
250
|
};
|
|
251
|
+
readonly 'transferList.moveSelectedTo': {
|
|
252
|
+
readonly en: "Move selected to {label}";
|
|
253
|
+
readonly es: "Mover la selección a {label}";
|
|
254
|
+
readonly pt: "Mover a seleção para {label}";
|
|
255
|
+
readonly fr: "Déplacer la sélection vers {label}";
|
|
256
|
+
readonly de: "Auswahl nach {label} verschieben";
|
|
257
|
+
readonly it: "Sposta la selezione in {label}";
|
|
258
|
+
};
|
|
259
|
+
readonly 'transferList.moveAllTo': {
|
|
260
|
+
readonly en: "Move all to {label}";
|
|
261
|
+
readonly es: "Mover todo a {label}";
|
|
262
|
+
readonly pt: "Mover tudo para {label}";
|
|
263
|
+
readonly fr: "Tout déplacer vers {label}";
|
|
264
|
+
readonly de: "Alle nach {label} verschieben";
|
|
265
|
+
readonly it: "Sposta tutto in {label}";
|
|
266
|
+
};
|
|
267
|
+
readonly 'transferList.moveUp': {
|
|
268
|
+
readonly en: "Move selected up";
|
|
269
|
+
readonly es: "Subir la selección";
|
|
270
|
+
readonly pt: "Mover a seleção para cima";
|
|
271
|
+
readonly fr: "Déplacer la sélection vers le haut";
|
|
272
|
+
readonly de: "Auswahl nach oben verschieben";
|
|
273
|
+
readonly it: "Sposta la selezione in alto";
|
|
274
|
+
};
|
|
275
|
+
readonly 'transferList.moveDown': {
|
|
276
|
+
readonly en: "Move selected down";
|
|
277
|
+
readonly es: "Bajar la selección";
|
|
278
|
+
readonly pt: "Mover a seleção para baixo";
|
|
279
|
+
readonly fr: "Déplacer la sélection vers le bas";
|
|
280
|
+
readonly de: "Auswahl nach unten verschieben";
|
|
281
|
+
readonly it: "Sposta la selezione in basso";
|
|
282
|
+
};
|
|
283
|
+
readonly 'transferList.itemMovedUp': {
|
|
284
|
+
readonly en: "1 item moved up";
|
|
285
|
+
readonly es: "1 elemento subido";
|
|
286
|
+
readonly pt: "1 item movido para cima";
|
|
287
|
+
readonly fr: "1 élément déplacé vers le haut";
|
|
288
|
+
readonly de: "1 Element nach oben verschoben";
|
|
289
|
+
readonly it: "1 elemento spostato in alto";
|
|
290
|
+
};
|
|
291
|
+
readonly 'transferList.itemsMovedUp': {
|
|
292
|
+
readonly en: "{count} items moved up";
|
|
293
|
+
readonly es: "{count} elementos subidos";
|
|
294
|
+
readonly pt: "{count} itens movidos para cima";
|
|
295
|
+
readonly fr: "{count} éléments déplacés vers le haut";
|
|
296
|
+
readonly de: "{count} Elemente nach oben verschoben";
|
|
297
|
+
readonly it: "{count} elementi spostati in alto";
|
|
298
|
+
};
|
|
299
|
+
readonly 'transferList.itemMovedDown': {
|
|
300
|
+
readonly en: "1 item moved down";
|
|
301
|
+
readonly es: "1 elemento bajado";
|
|
302
|
+
readonly pt: "1 item movido para baixo";
|
|
303
|
+
readonly fr: "1 élément déplacé vers le bas";
|
|
304
|
+
readonly de: "1 Element nach unten verschoben";
|
|
305
|
+
readonly it: "1 elemento spostato in basso";
|
|
306
|
+
};
|
|
307
|
+
readonly 'transferList.itemsMovedDown': {
|
|
308
|
+
readonly en: "{count} items moved down";
|
|
309
|
+
readonly es: "{count} elementos bajados";
|
|
310
|
+
readonly pt: "{count} itens movidos para baixo";
|
|
311
|
+
readonly fr: "{count} éléments déplacés vers le bas";
|
|
312
|
+
readonly de: "{count} Elemente nach unten verschoben";
|
|
313
|
+
readonly it: "{count} elementi spostati in basso";
|
|
314
|
+
};
|
|
315
|
+
readonly 'transferList.itemMoved': {
|
|
316
|
+
readonly en: "1 item moved to {label}";
|
|
317
|
+
readonly es: "1 elemento movido a {label}";
|
|
318
|
+
readonly pt: "1 item movido para {label}";
|
|
319
|
+
readonly fr: "1 élément déplacé vers {label}";
|
|
320
|
+
readonly de: "1 Element nach {label} verschoben";
|
|
321
|
+
readonly it: "1 elemento spostato in {label}";
|
|
322
|
+
};
|
|
323
|
+
readonly 'transferList.itemsMoved': {
|
|
324
|
+
readonly en: "{count} items moved to {label}";
|
|
325
|
+
readonly es: "{count} elementos movidos a {label}";
|
|
326
|
+
readonly pt: "{count} itens movidos para {label}";
|
|
327
|
+
readonly fr: "{count} éléments déplacés vers {label}";
|
|
328
|
+
readonly de: "{count} Elemente nach {label} verschoben";
|
|
329
|
+
readonly it: "{count} elementi spostati in {label}";
|
|
330
|
+
};
|
|
331
|
+
readonly 'avatar.more': {
|
|
332
|
+
readonly en: "{count} more";
|
|
333
|
+
readonly es: "{count} más";
|
|
334
|
+
readonly pt: "{count} mais";
|
|
335
|
+
readonly fr: "{count} de plus";
|
|
336
|
+
readonly de: "{count} weitere";
|
|
337
|
+
readonly it: "{count} altri";
|
|
338
|
+
};
|
|
339
|
+
readonly 'breadcrumbs.label': {
|
|
340
|
+
readonly en: "Breadcrumb";
|
|
341
|
+
readonly es: "Ruta de navegación";
|
|
342
|
+
readonly pt: "Trilha de navegação";
|
|
343
|
+
readonly fr: "Fil d'Ariane";
|
|
344
|
+
readonly de: "Brotkrumennavigation";
|
|
345
|
+
readonly it: "Percorso di navigazione";
|
|
346
|
+
};
|
|
347
|
+
readonly 'breadcrumbs.showMore': {
|
|
348
|
+
readonly en: "Show {count} more pages";
|
|
349
|
+
readonly es: "Mostrar {count} páginas más";
|
|
350
|
+
readonly pt: "Mostrar mais {count} páginas";
|
|
351
|
+
readonly fr: "Afficher {count} pages de plus";
|
|
352
|
+
readonly de: "{count} weitere Seiten anzeigen";
|
|
353
|
+
readonly it: "Mostra altre {count} pagine";
|
|
354
|
+
};
|
|
227
355
|
readonly 'segment.empty': {
|
|
228
356
|
readonly en: "Empty";
|
|
229
357
|
readonly es: "Vacío";
|
|
@@ -232,6 +360,30 @@ declare const LOCALIZED_STRINGS: {
|
|
|
232
360
|
readonly de: "Leer";
|
|
233
361
|
readonly it: "Vuoto";
|
|
234
362
|
};
|
|
363
|
+
readonly 'toast.notifications': {
|
|
364
|
+
readonly en: "Notifications";
|
|
365
|
+
readonly es: "Notificaciones";
|
|
366
|
+
readonly pt: "Notificações";
|
|
367
|
+
readonly fr: "Notifications";
|
|
368
|
+
readonly de: "Benachrichtigungen";
|
|
369
|
+
readonly it: "Notifiche";
|
|
370
|
+
};
|
|
371
|
+
readonly 'toast.oneNotification': {
|
|
372
|
+
readonly en: "1 notification";
|
|
373
|
+
readonly es: "1 notificación";
|
|
374
|
+
readonly pt: "1 notificação";
|
|
375
|
+
readonly fr: "1 notification";
|
|
376
|
+
readonly de: "1 Benachrichtigung";
|
|
377
|
+
readonly it: "1 notifica";
|
|
378
|
+
};
|
|
379
|
+
readonly 'toast.multipleNotifications': {
|
|
380
|
+
readonly en: "{count} notifications";
|
|
381
|
+
readonly es: "{count} notificaciones";
|
|
382
|
+
readonly pt: "{count} notificações";
|
|
383
|
+
readonly fr: "{count} notifications";
|
|
384
|
+
readonly de: "{count} Benachrichtigungen";
|
|
385
|
+
readonly it: "{count} notifiche";
|
|
386
|
+
};
|
|
235
387
|
};
|
|
236
388
|
export type LocalizedStringKey = keyof typeof LOCALIZED_STRINGS;
|
|
237
389
|
export declare function resolveLocalizedString(locale: string | undefined, key: LocalizedStringKey, params?: Record<string, string | number>): string;
|
|
@@ -24,6 +24,30 @@ const LOCALIZED_STRINGS = {
|
|
|
24
24
|
de: 'Vorherige Seite',
|
|
25
25
|
it: 'Pagina precedente'
|
|
26
26
|
},
|
|
27
|
+
'select.placeholder': {
|
|
28
|
+
en: 'Select an option',
|
|
29
|
+
es: 'Seleccione una opción',
|
|
30
|
+
pt: 'Selecione uma opção',
|
|
31
|
+
fr: 'Sélectionnez une option',
|
|
32
|
+
de: 'Option auswählen',
|
|
33
|
+
it: 'Seleziona un’opzione'
|
|
34
|
+
},
|
|
35
|
+
'slider.minimum': {
|
|
36
|
+
en: 'Minimum',
|
|
37
|
+
es: 'Mínimo',
|
|
38
|
+
pt: 'Mínimo',
|
|
39
|
+
fr: 'Minimum',
|
|
40
|
+
de: 'Minimum',
|
|
41
|
+
it: 'Minimo'
|
|
42
|
+
},
|
|
43
|
+
'slider.maximum': {
|
|
44
|
+
en: 'Maximum',
|
|
45
|
+
es: 'Máximo',
|
|
46
|
+
pt: 'Máximo',
|
|
47
|
+
fr: 'Maximum',
|
|
48
|
+
de: 'Maximum',
|
|
49
|
+
it: 'Massimo'
|
|
50
|
+
},
|
|
27
51
|
'datePicker.calendar': {
|
|
28
52
|
en: 'Calendar',
|
|
29
53
|
es: 'Calendario',
|
|
@@ -224,6 +248,110 @@ const LOCALIZED_STRINGS = {
|
|
|
224
248
|
de: '{count} Ergebnisse verfügbar',
|
|
225
249
|
it: '{count} risultati disponibili'
|
|
226
250
|
},
|
|
251
|
+
'transferList.moveSelectedTo': {
|
|
252
|
+
en: 'Move selected to {label}',
|
|
253
|
+
es: 'Mover la selección a {label}',
|
|
254
|
+
pt: 'Mover a seleção para {label}',
|
|
255
|
+
fr: 'Déplacer la sélection vers {label}',
|
|
256
|
+
de: 'Auswahl nach {label} verschieben',
|
|
257
|
+
it: 'Sposta la selezione in {label}'
|
|
258
|
+
},
|
|
259
|
+
'transferList.moveAllTo': {
|
|
260
|
+
en: 'Move all to {label}',
|
|
261
|
+
es: 'Mover todo a {label}',
|
|
262
|
+
pt: 'Mover tudo para {label}',
|
|
263
|
+
fr: 'Tout déplacer vers {label}',
|
|
264
|
+
de: 'Alle nach {label} verschieben',
|
|
265
|
+
it: 'Sposta tutto in {label}'
|
|
266
|
+
},
|
|
267
|
+
'transferList.moveUp': {
|
|
268
|
+
en: 'Move selected up',
|
|
269
|
+
es: 'Subir la selección',
|
|
270
|
+
pt: 'Mover a seleção para cima',
|
|
271
|
+
fr: 'Déplacer la sélection vers le haut',
|
|
272
|
+
de: 'Auswahl nach oben verschieben',
|
|
273
|
+
it: 'Sposta la selezione in alto'
|
|
274
|
+
},
|
|
275
|
+
'transferList.moveDown': {
|
|
276
|
+
en: 'Move selected down',
|
|
277
|
+
es: 'Bajar la selección',
|
|
278
|
+
pt: 'Mover a seleção para baixo',
|
|
279
|
+
fr: 'Déplacer la sélection vers le bas',
|
|
280
|
+
de: 'Auswahl nach unten verschieben',
|
|
281
|
+
it: 'Sposta la selezione in basso'
|
|
282
|
+
},
|
|
283
|
+
'transferList.itemMovedUp': {
|
|
284
|
+
en: '1 item moved up',
|
|
285
|
+
es: '1 elemento subido',
|
|
286
|
+
pt: '1 item movido para cima',
|
|
287
|
+
fr: '1 élément déplacé vers le haut',
|
|
288
|
+
de: '1 Element nach oben verschoben',
|
|
289
|
+
it: '1 elemento spostato in alto'
|
|
290
|
+
},
|
|
291
|
+
'transferList.itemsMovedUp': {
|
|
292
|
+
en: '{count} items moved up',
|
|
293
|
+
es: '{count} elementos subidos',
|
|
294
|
+
pt: '{count} itens movidos para cima',
|
|
295
|
+
fr: '{count} éléments déplacés vers le haut',
|
|
296
|
+
de: '{count} Elemente nach oben verschoben',
|
|
297
|
+
it: '{count} elementi spostati in alto'
|
|
298
|
+
},
|
|
299
|
+
'transferList.itemMovedDown': {
|
|
300
|
+
en: '1 item moved down',
|
|
301
|
+
es: '1 elemento bajado',
|
|
302
|
+
pt: '1 item movido para baixo',
|
|
303
|
+
fr: '1 élément déplacé vers le bas',
|
|
304
|
+
de: '1 Element nach unten verschoben',
|
|
305
|
+
it: '1 elemento spostato in basso'
|
|
306
|
+
},
|
|
307
|
+
'transferList.itemsMovedDown': {
|
|
308
|
+
en: '{count} items moved down',
|
|
309
|
+
es: '{count} elementos bajados',
|
|
310
|
+
pt: '{count} itens movidos para baixo',
|
|
311
|
+
fr: '{count} éléments déplacés vers le bas',
|
|
312
|
+
de: '{count} Elemente nach unten verschoben',
|
|
313
|
+
it: '{count} elementi spostati in basso'
|
|
314
|
+
},
|
|
315
|
+
'transferList.itemMoved': {
|
|
316
|
+
en: '1 item moved to {label}',
|
|
317
|
+
es: '1 elemento movido a {label}',
|
|
318
|
+
pt: '1 item movido para {label}',
|
|
319
|
+
fr: '1 élément déplacé vers {label}',
|
|
320
|
+
de: '1 Element nach {label} verschoben',
|
|
321
|
+
it: '1 elemento spostato in {label}'
|
|
322
|
+
},
|
|
323
|
+
'transferList.itemsMoved': {
|
|
324
|
+
en: '{count} items moved to {label}',
|
|
325
|
+
es: '{count} elementos movidos a {label}',
|
|
326
|
+
pt: '{count} itens movidos para {label}',
|
|
327
|
+
fr: '{count} éléments déplacés vers {label}',
|
|
328
|
+
de: '{count} Elemente nach {label} verschoben',
|
|
329
|
+
it: '{count} elementi spostati in {label}'
|
|
330
|
+
},
|
|
331
|
+
'avatar.more': {
|
|
332
|
+
en: '{count} more',
|
|
333
|
+
es: '{count} más',
|
|
334
|
+
pt: '{count} mais',
|
|
335
|
+
fr: '{count} de plus',
|
|
336
|
+
de: '{count} weitere',
|
|
337
|
+
it: '{count} altri'
|
|
338
|
+
},
|
|
339
|
+
'breadcrumbs.label': {
|
|
340
|
+
en: 'Breadcrumb',
|
|
341
|
+
es: 'Ruta de navegación',
|
|
342
|
+
pt: 'Trilha de navegação',
|
|
343
|
+
fr: "Fil d'Ariane",
|
|
344
|
+
de: 'Brotkrumennavigation',
|
|
345
|
+
it: 'Percorso di navigazione'
|
|
346
|
+
},
|
|
347
|
+
'breadcrumbs.showMore': {
|
|
348
|
+
en: 'Show {count} more pages',
|
|
349
|
+
es: 'Mostrar {count} páginas más',
|
|
350
|
+
pt: 'Mostrar mais {count} páginas',
|
|
351
|
+
fr: 'Afficher {count} pages de plus',
|
|
352
|
+
de: '{count} weitere Seiten anzeigen',
|
|
353
|
+
it: 'Mostra altre {count} pagine'
|
|
354
|
+
},
|
|
227
355
|
'segment.empty': {
|
|
228
356
|
en: 'Empty',
|
|
229
357
|
es: 'Vacío',
|
|
@@ -231,6 +359,30 @@ const LOCALIZED_STRINGS = {
|
|
|
231
359
|
fr: 'Vide',
|
|
232
360
|
de: 'Leer',
|
|
233
361
|
it: 'Vuoto'
|
|
362
|
+
},
|
|
363
|
+
'toast.notifications': {
|
|
364
|
+
en: 'Notifications',
|
|
365
|
+
es: 'Notificaciones',
|
|
366
|
+
pt: 'Notificações',
|
|
367
|
+
fr: 'Notifications',
|
|
368
|
+
de: 'Benachrichtigungen',
|
|
369
|
+
it: 'Notifiche'
|
|
370
|
+
},
|
|
371
|
+
'toast.oneNotification': {
|
|
372
|
+
en: '1 notification',
|
|
373
|
+
es: '1 notificación',
|
|
374
|
+
pt: '1 notificação',
|
|
375
|
+
fr: '1 notification',
|
|
376
|
+
de: '1 Benachrichtigung',
|
|
377
|
+
it: '1 notifica'
|
|
378
|
+
},
|
|
379
|
+
'toast.multipleNotifications': {
|
|
380
|
+
en: '{count} notifications',
|
|
381
|
+
es: '{count} notificaciones',
|
|
382
|
+
pt: '{count} notificações',
|
|
383
|
+
fr: '{count} notifications',
|
|
384
|
+
de: '{count} Benachrichtigungen',
|
|
385
|
+
it: '{count} notifiche'
|
|
234
386
|
}
|
|
235
387
|
};
|
|
236
388
|
function resolveLanguage(locale) {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The decimal digits of a number, also for a number written with an exponent: `1e-7` has 7.
|
|
3
|
+
*/
|
|
4
|
+
export declare function decimalPlaces(value: number): number;
|
|
5
|
+
/**
|
|
6
|
+
* Rounds a number to a count of decimal digits, and removes the float error of an arithmetic
|
|
7
|
+
* step: `0.1 + 0.2` at one digit is `0.3`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function roundToPrecision(value: number, precision: number): number;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The decimal digits of a number, also for a number written with an exponent: `1e-7` has 7.
|
|
3
|
+
*/
|
|
4
|
+
export function decimalPlaces(value) {
|
|
5
|
+
if (!Number.isFinite(value))
|
|
6
|
+
return 0;
|
|
7
|
+
const text = value.toString().toLowerCase();
|
|
8
|
+
if (!text.includes('e')) {
|
|
9
|
+
return text.split('.')[1]?.length ?? 0;
|
|
10
|
+
}
|
|
11
|
+
const [coefficient, exponentText] = text.split('e');
|
|
12
|
+
const exponent = Number(exponentText);
|
|
13
|
+
const coefficientDecimals = coefficient.split('.')[1]?.length ?? 0;
|
|
14
|
+
return Math.max(0, coefficientDecimals - exponent);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Rounds a number to a count of decimal digits, and removes the float error of an arithmetic
|
|
18
|
+
* step: `0.1 + 0.2` at one digit is `0.3`.
|
|
19
|
+
*/
|
|
20
|
+
export function roundToPrecision(value, precision) {
|
|
21
|
+
const factor = 10 ** Math.min(precision, 12);
|
|
22
|
+
// Round on the absolute value and reapply the sign so ties resolve
|
|
23
|
+
// away from zero symmetrically: 0.025 → 0.03 and -0.025 → -0.03
|
|
24
|
+
// (Math.round alone rounds -0.025 toward +Infinity, giving -0.02).
|
|
25
|
+
const rounded = Math.round((Math.abs(value) + Number.EPSILON) * factor) / factor;
|
|
26
|
+
return value < 0 ? -rounded : rounded;
|
|
27
|
+
}
|
package/dist/listbox/README.md
CHANGED
|
@@ -10,7 +10,26 @@
|
|
|
10
10
|
- Render each option with `ListBox.Item`.
|
|
11
11
|
- Use `value` and `onChange` for controlled selection.
|
|
12
12
|
- Use `defaultValue` for uncontrolled initial selection.
|
|
13
|
-
- Provide `aria-label` when there is no visible label.
|
|
13
|
+
- Provide `aria-label` when there is no visible label, or `aria-labelledby` when there is one.
|
|
14
|
+
|
|
15
|
+
## Range selection
|
|
16
|
+
|
|
17
|
+
In `selectionMode="multiple"`, Shift selects a range and Ctrl/Cmd adds a single item:
|
|
18
|
+
|
|
19
|
+
- **Shift+click** selects everything between the anchor and the clicked option. The anchor is
|
|
20
|
+
the last option selected without modifiers.
|
|
21
|
+
- **Shift+Arrow**, **Shift+Home** and **Shift+End** extend the same range with the keyboard.
|
|
22
|
+
- A range replaces the selection, and does not add to it. This is the APG pattern for a listbox with more than one selection. It is also what lets a range become smaller when the user drags back toward the anchor.
|
|
23
|
+
- **Ctrl/Cmd+click** toggles one option even under `selectionBehavior="replace"`, where a
|
|
24
|
+
plain click would clear the rest.
|
|
25
|
+
- Disabled options are never included.
|
|
26
|
+
|
|
27
|
+
The range is measured over the options that exist in the DOM. In a virtualized list, those are only the rows near the viewport. Give `getItemKey` with `virtualizer`, and the component measures the range over the full collection. A range then includes the rows that are not in the DOM, and the anchor stays correct when the user scrolls it away.
|
|
28
|
+
|
|
29
|
+
## Virtualized lists and assistive technology
|
|
30
|
+
|
|
31
|
+
A virtualized list holds few options. Thus the position and the count that a browser calculates from the DOM describe that window, and not the collection. For a list of two thousand items, a screen reader would announce "1 of 8". `ListBox` writes `aria-setsize` and `aria-posinset` onto the rendered
|
|
32
|
+
rows with the real numbers.
|
|
14
33
|
|
|
15
34
|
## Anatomy
|
|
16
35
|
|
|
@@ -22,37 +22,46 @@
|
|
|
22
22
|
* Props for the ListBox.Item component.
|
|
23
23
|
*/
|
|
24
24
|
type ListBoxItemProps = Omit<HTMLAttributes<HTMLDivElement>, 'id' | 'children'> & {
|
|
25
|
-
/**
|
|
25
|
+
/** The unique identifier of this item. The component uses it for the selection. */
|
|
26
26
|
id: string | number;
|
|
27
|
-
/**
|
|
27
|
+
/** The text for the typeahead. If you give none, the component reads it from the content. */
|
|
28
28
|
textValue?: string;
|
|
29
|
-
/**
|
|
29
|
+
/** Disables this item. The user cannot select it. */
|
|
30
30
|
disabled?: boolean;
|
|
31
|
-
/** CSS class
|
|
31
|
+
/** The CSS class names of the item element. */
|
|
32
32
|
class?: string;
|
|
33
|
-
/**
|
|
33
|
+
/** The content of the item. */
|
|
34
34
|
children?: Snippet;
|
|
35
35
|
|
|
36
36
|
// Override props for composition (e.g., ComboBox.Item wrapping ListBox.Item)
|
|
37
|
-
/**
|
|
37
|
+
/** Replaces the id that the component makes. Use it when your component needs its own id. */
|
|
38
38
|
customId?: string;
|
|
39
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* Stops the DOM focus control. With `true`, the component sets no tabindex and it ignores the
|
|
41
|
+
* focus events.
|
|
42
|
+
*/
|
|
40
43
|
disableFocusHandling?: boolean;
|
|
41
|
-
/**
|
|
44
|
+
/** Replaces the focused state. With this prop, the component uses your value and not its own. */
|
|
42
45
|
isFocusedOverride?: boolean;
|
|
43
|
-
/**
|
|
46
|
+
/** Replaces the focus-visible state. */
|
|
44
47
|
isFocusVisibleOverride?: boolean;
|
|
45
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* Replaces the selection behavior. With this prop, the component calls it and does not do its
|
|
50
|
+
* own selection.
|
|
51
|
+
*/
|
|
46
52
|
onItemSelect?: (id: string | number, label: string) => void;
|
|
47
|
-
/**
|
|
53
|
+
/**
|
|
54
|
+
* The component calls it with the text value when the item goes into the DOM. That text comes
|
|
55
|
+
* from the prop or from the content.
|
|
56
|
+
*/
|
|
48
57
|
onResolvedTextValue?: (label: string) => void;
|
|
49
|
-
/**
|
|
58
|
+
/** The component calls it when the pointer must move the logical focus to this item. */
|
|
50
59
|
onItemHoverStart?: (id: string | number, label: string) => void;
|
|
51
|
-
/**
|
|
60
|
+
/** Scrolls this item into the viewport when it gets the focus. Use it with a virtual focus. */
|
|
52
61
|
scrollOnFocus?: boolean;
|
|
53
|
-
/**
|
|
62
|
+
/** A second disabled state, from the parent. */
|
|
54
63
|
isParentDisabled?: boolean;
|
|
55
|
-
/**
|
|
64
|
+
/** Replaces the pressed state. With this prop, the component uses your value and not its own. */
|
|
56
65
|
pressed?: boolean;
|
|
57
66
|
};
|
|
58
67
|
|
|
@@ -168,8 +177,15 @@
|
|
|
168
177
|
unsubscribeFocusVisible?.();
|
|
169
178
|
});
|
|
170
179
|
|
|
171
|
-
// Scroll into view when focused (if enabled)
|
|
180
|
+
// Scroll into view when focused (if enabled).
|
|
181
|
+
//
|
|
182
|
+
// Not in a virtualized list: there the scroll is the list's, which places the row against
|
|
183
|
+
// the whole collection — including rows that aren't mounted. An item pulling itself to
|
|
184
|
+
// the nearest edge afterwards undid that placement, which is what left the row the list
|
|
185
|
+
// had just opened on stuck against the bottom edge.
|
|
172
186
|
$effect(() => {
|
|
187
|
+
if (listboxCtx.isVirtualized()) return;
|
|
188
|
+
|
|
173
189
|
if (scrollOnFocus && isFocusedComputed && isFocusVisibleComputed && elementRef) {
|
|
174
190
|
requestAnimationFrame(() => {
|
|
175
191
|
elementRef?.scrollIntoView({ block: 'nearest' });
|
|
@@ -272,11 +288,17 @@
|
|
|
272
288
|
}
|
|
273
289
|
}
|
|
274
290
|
|
|
275
|
-
function handleClick() {
|
|
291
|
+
function handleClick(event: MouseEvent) {
|
|
276
292
|
if (isDisabledComputed) return;
|
|
277
293
|
|
|
278
294
|
const label = getResolvedTextValue();
|
|
279
295
|
|
|
296
|
+
// Shift+click also drags the browser's own text selection across the rows it spans,
|
|
297
|
+
// which paints the whole range blue on top of the widget's own selection styling.
|
|
298
|
+
if (event.shiftKey) {
|
|
299
|
+
window.getSelection()?.removeAllRanges();
|
|
300
|
+
}
|
|
301
|
+
|
|
280
302
|
if (!disableFocusHandling && elementRef) {
|
|
281
303
|
suppressNextFocusVisible = true;
|
|
282
304
|
isFocusVisible = false;
|
|
@@ -290,7 +312,10 @@
|
|
|
290
312
|
if (onItemSelect) {
|
|
291
313
|
onItemSelect(id, label);
|
|
292
314
|
} else {
|
|
293
|
-
listboxCtx.
|
|
315
|
+
listboxCtx.selectWithModifiers(id, {
|
|
316
|
+
shift: event.shiftKey,
|
|
317
|
+
ctrlOrMeta: event.ctrlKey || event.metaKey
|
|
318
|
+
});
|
|
294
319
|
}
|
|
295
320
|
|
|
296
321
|
if (!disableFocusHandling) {
|
|
@@ -4,35 +4,44 @@ import type { HTMLAttributes } from 'svelte/elements';
|
|
|
4
4
|
* Props for the ListBox.Item component.
|
|
5
5
|
*/
|
|
6
6
|
type ListBoxItemProps = Omit<HTMLAttributes<HTMLDivElement>, 'id' | 'children'> & {
|
|
7
|
-
/**
|
|
7
|
+
/** The unique identifier of this item. The component uses it for the selection. */
|
|
8
8
|
id: string | number;
|
|
9
|
-
/**
|
|
9
|
+
/** The text for the typeahead. If you give none, the component reads it from the content. */
|
|
10
10
|
textValue?: string;
|
|
11
|
-
/**
|
|
11
|
+
/** Disables this item. The user cannot select it. */
|
|
12
12
|
disabled?: boolean;
|
|
13
|
-
/** CSS class
|
|
13
|
+
/** The CSS class names of the item element. */
|
|
14
14
|
class?: string;
|
|
15
|
-
/**
|
|
15
|
+
/** The content of the item. */
|
|
16
16
|
children?: Snippet;
|
|
17
|
-
/**
|
|
17
|
+
/** Replaces the id that the component makes. Use it when your component needs its own id. */
|
|
18
18
|
customId?: string;
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* Stops the DOM focus control. With `true`, the component sets no tabindex and it ignores the
|
|
21
|
+
* focus events.
|
|
22
|
+
*/
|
|
20
23
|
disableFocusHandling?: boolean;
|
|
21
|
-
/**
|
|
24
|
+
/** Replaces the focused state. With this prop, the component uses your value and not its own. */
|
|
22
25
|
isFocusedOverride?: boolean;
|
|
23
|
-
/**
|
|
26
|
+
/** Replaces the focus-visible state. */
|
|
24
27
|
isFocusVisibleOverride?: boolean;
|
|
25
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Replaces the selection behavior. With this prop, the component calls it and does not do its
|
|
30
|
+
* own selection.
|
|
31
|
+
*/
|
|
26
32
|
onItemSelect?: (id: string | number, label: string) => void;
|
|
27
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* The component calls it with the text value when the item goes into the DOM. That text comes
|
|
35
|
+
* from the prop or from the content.
|
|
36
|
+
*/
|
|
28
37
|
onResolvedTextValue?: (label: string) => void;
|
|
29
|
-
/**
|
|
38
|
+
/** The component calls it when the pointer must move the logical focus to this item. */
|
|
30
39
|
onItemHoverStart?: (id: string | number, label: string) => void;
|
|
31
|
-
/**
|
|
40
|
+
/** Scrolls this item into the viewport when it gets the focus. Use it with a virtual focus. */
|
|
32
41
|
scrollOnFocus?: boolean;
|
|
33
|
-
/**
|
|
42
|
+
/** A second disabled state, from the parent. */
|
|
34
43
|
isParentDisabled?: boolean;
|
|
35
|
-
/**
|
|
44
|
+
/** Replaces the pressed state. With this prop, the component uses your value and not its own. */
|
|
36
45
|
pressed?: boolean;
|
|
37
46
|
};
|
|
38
47
|
declare const ListboxItem: import("svelte").Component<ListBoxItemProps, {}, "">;
|
|
@@ -17,7 +17,7 @@ Description: Main listbox state container that manages registration, selection,
|
|
|
17
17
|
| `value` | `Iterable<string \| number>` | `undefined` | Controlled selection values. |
|
|
18
18
|
| `defaultValue` | `Iterable<string \| number>` | `undefined` | Initial uncontrolled selection values. |
|
|
19
19
|
| `children` | `Snippet \| Snippet<[T]>` | `undefined` | Static or dynamic option rendering. |
|
|
20
|
-
| `class` | `string` | `''` | CSS class names
|
|
20
|
+
| `class` | `string` | `''` | The CSS class names of the root element. |
|
|
21
21
|
| `id` | `string` | `undefined` | DOM id for the listbox element. |
|
|
22
22
|
| `aria-label` | `string` | `undefined` | Accessible label for the listbox. |
|
|
23
23
|
| `onChange` | `(value: Set<string \| number>) => void` | `undefined` | Called when selection changes. |
|