@human-kit/ui 1.0.0-beta.1 → 1.0.0-beta.11
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 +27 -16
- package/dist/FOCUS_STATE_CONTRACT.md +17 -4
- package/dist/FOCUS_STATE_REVIEW_TEMPLATE.md +8 -8
- package/dist/accordion/README.md +3 -3
- package/dist/accordion/types.d.ts +37 -23
- 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 +5 -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/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 +118 -40
- package/dist/checkbox/root/checkbox-root.svelte.d.ts +17 -10
- 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/wheel-column/clock-wheel-column.svelte +1 -1
- package/dist/clock/wheel-column/clock-wheel-column.svelte.d.ts +1 -1
- package/dist/collapsible/README.md +3 -3
- package/dist/collapsible/types.d.ts +10 -7
- 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 +3 -3
- 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 +11 -8
- package/dist/combobox/list/combobox-listbox.svelte.d.ts +14 -9
- 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 +26 -17
- package/dist/combobox/root/combobox.svelte.d.ts +26 -17
- package/dist/combobox/status/README.md +1 -1
- 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 +4 -5
- package/dist/combobox/tag-remove/combobox-tag-remove.svelte.d.ts +4 -5
- package/dist/combobox/tags/README.md +1 -1
- package/dist/combobox/tags/combobox-tags.svelte +11 -11
- package/dist/combobox/tags/combobox-tags.svelte.d.ts +11 -11
- package/dist/combobox/trigger/README.md +7 -7
- package/dist/datepicker/README.md +4 -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 +1 -1
- 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/dialog/README.md +1 -1
- package/dist/dialog/close/dialog-close.svelte +3 -3
- package/dist/dialog/close/dialog-close.svelte.d.ts +3 -3
- package/dist/dialog/content/dialog-content.svelte +4 -4
- package/dist/dialog/content/dialog-content.svelte.d.ts +4 -4
- package/dist/dialog/description/dialog-description.svelte +3 -3
- package/dist/dialog/description/dialog-description.svelte.d.ts +3 -3
- 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/dialog-root.svelte +49 -11
- package/dist/dialog/root/dialog-root.svelte.d.ts +11 -9
- package/dist/dialog/title/dialog-title.svelte +3 -3
- package/dist/dialog/title/dialog-title.svelte.d.ts +3 -3
- package/dist/dialog/trigger/README.md +1 -1
- package/dist/drawer/README.md +3 -3
- package/dist/drawer/body/drawer-body.svelte +2 -2
- package/dist/drawer/body/drawer-body.svelte.d.ts +2 -2
- package/dist/drawer/close/drawer-close.svelte +3 -3
- package/dist/drawer/close/drawer-close.svelte.d.ts +3 -3
- package/dist/drawer/content/drawer-content.svelte +12 -9
- package/dist/drawer/content/drawer-content.svelte.d.ts +12 -9
- package/dist/drawer/description/drawer-description.svelte +3 -3
- package/dist/drawer/description/drawer-description.svelte.d.ts +3 -3
- package/dist/drawer/indent/drawer-indent-background.svelte +1 -1
- package/dist/drawer/indent/drawer-indent-background.svelte.d.ts +1 -1
- package/dist/drawer/indent/drawer-indent.svelte +2 -2
- package/dist/drawer/indent/drawer-indent.svelte.d.ts +2 -2
- package/dist/drawer/overlay/drawer-overlay.svelte +1 -1
- package/dist/drawer/overlay/drawer-overlay.svelte.d.ts +1 -1
- package/dist/drawer/portal/drawer-portal.svelte +1 -1
- package/dist/drawer/portal/drawer-portal.svelte.d.ts +1 -1
- package/dist/drawer/root/context.d.ts +1 -1
- package/dist/drawer/root/drawer-root.svelte +40 -25
- package/dist/drawer/root/drawer-root.svelte.d.ts +25 -23
- package/dist/drawer/swipe-area/drawer-swipe-area.svelte +3 -3
- package/dist/drawer/swipe-area/drawer-swipe-area.svelte.d.ts +3 -3
- package/dist/drawer/title/drawer-title.svelte +3 -3
- package/dist/drawer/title/drawer-title.svelte.d.ts +3 -3
- package/dist/drawer/trigger/drawer-trigger.svelte +6 -6
- package/dist/drawer/trigger/drawer-trigger.svelte.d.ts +6 -6
- package/dist/drawer/viewport/drawer-viewport.svelte +2 -2
- package/dist/drawer/viewport/drawer-viewport.svelte.d.ts +2 -2
- package/dist/drawer/virtual-keyboard/drawer-virtual-keyboard-provider.svelte +1 -1
- package/dist/drawer/virtual-keyboard/drawer-virtual-keyboard-provider.svelte.d.ts +1 -1
- package/dist/dropzone/README.md +4 -6
- package/dist/index.d.ts +22 -0
- package/dist/index.js +21 -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 +35 -17
- 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 +26 -1
- package/dist/listbox/root/context.js +108 -1
- package/dist/listbox/root/listbox.svelte +129 -39
- package/dist/listbox/root/listbox.svelte.d.ts +57 -33
- package/dist/locale-provider/README.md +1 -6
- package/dist/menu/README.md +41 -4
- package/dist/menu/content/menu-content.svelte +28 -13
- 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 +1 -1
- 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-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 +21 -15
- package/dist/popover/content/popover-content.svelte.d.ts +19 -14
- package/dist/popover/overlay/popover-overlay.svelte +1 -1
- 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 +13 -10
- package/dist/popover/root/popover-root.svelte.d.ts +13 -10
- 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 +42 -8
- package/dist/primitives/floating.js +70 -6
- 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 +2 -0
- package/dist/primitives/index.js +2 -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 +24 -16
- 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 +24 -0
- package/dist/primitives/scroll-lock.js +75 -6
- 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 +32 -18
- package/dist/switch/root/switch-root.svelte.d.ts +23 -18
- 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/cell/table-cell.svelte +27 -8
- package/dist/table/checkbox/table-checkbox.svelte +3 -0
- package/dist/table/checkbox-indicator/README.md +1 -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/index.d.ts +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/interactive-cell/table-interactive-cell.svelte +26 -8
- 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 +113 -17
- package/dist/table/root/table-root.svelte +36 -6
- package/dist/table/row/table-row.svelte +7 -7
- package/dist/table/sort-trigger/README.md +1 -1
- package/dist/table/types.d.ts +26 -14
- package/dist/tabs/types.d.ts +6 -6
- 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/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 +20 -11
- package/dist/toggle-group/root/toggle-group-root.svelte +20 -15
- 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 -9
- 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 +459 -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/types.d.ts +19 -10
- package/package.json +56 -1
|
@@ -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
|
|
|
@@ -279,11 +288,17 @@
|
|
|
279
288
|
}
|
|
280
289
|
}
|
|
281
290
|
|
|
282
|
-
function handleClick() {
|
|
291
|
+
function handleClick(event: MouseEvent) {
|
|
283
292
|
if (isDisabledComputed) return;
|
|
284
293
|
|
|
285
294
|
const label = getResolvedTextValue();
|
|
286
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
|
+
|
|
287
302
|
if (!disableFocusHandling && elementRef) {
|
|
288
303
|
suppressNextFocusVisible = true;
|
|
289
304
|
isFocusVisible = false;
|
|
@@ -297,7 +312,10 @@
|
|
|
297
312
|
if (onItemSelect) {
|
|
298
313
|
onItemSelect(id, label);
|
|
299
314
|
} else {
|
|
300
|
-
listboxCtx.
|
|
315
|
+
listboxCtx.selectWithModifiers(id, {
|
|
316
|
+
shift: event.shiftKey,
|
|
317
|
+
ctrlOrMeta: event.ctrlKey || event.metaKey
|
|
318
|
+
});
|
|
301
319
|
}
|
|
302
320
|
|
|
303
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. |
|
|
@@ -41,6 +41,31 @@ export type ListBoxContext = {
|
|
|
41
41
|
subscribeToItemCount: (callback: (count: number) => void) => () => void;
|
|
42
42
|
/** Selects or toggles an item based on current mode and behavior. */
|
|
43
43
|
select: (id: string | number) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Selects an item honouring the modifier keys that were held.
|
|
46
|
+
*
|
|
47
|
+
* `shift` extends the selection from the anchor — the last item selected without
|
|
48
|
+
* modifiers — to this one, replacing whatever was selected, which is what the APG
|
|
49
|
+
* multi-select listbox pattern does. `ctrlOrMeta` forces a toggle even when
|
|
50
|
+
* `selectionBehavior` is `'replace'`. Both are ignored in single-selection mode.
|
|
51
|
+
*/
|
|
52
|
+
selectWithModifiers: (id: string | number, modifiers?: {
|
|
53
|
+
shift?: boolean;
|
|
54
|
+
ctrlOrMeta?: boolean;
|
|
55
|
+
}) => void;
|
|
56
|
+
/** Selects every enabled item between the anchor and `id`, in list order. */
|
|
57
|
+
extendSelectionTo: (id: string | number) => void;
|
|
58
|
+
/** The item ranges are measured from, or `null` when there isn't one yet. */
|
|
59
|
+
getAnchorId: () => string | number | null;
|
|
60
|
+
/**
|
|
61
|
+
* Registers the full list of keys, in list order, for a virtualized list.
|
|
62
|
+
*
|
|
63
|
+
* Ranges are otherwise measured over the options in the DOM, which in a virtualized
|
|
64
|
+
* list is only the rendered window — a Shift range then stops at the edge of what
|
|
65
|
+
* happens to be on screen. The ListBox supplies this when it has both `items` and a
|
|
66
|
+
* `getItemKey` to read their keys with.
|
|
67
|
+
*/
|
|
68
|
+
setOrderedKeys: (read: (() => (string | number)[]) | null) => void;
|
|
44
69
|
/** Selects all enabled items (only works in multiple mode). */
|
|
45
70
|
selectAll: () => void;
|
|
46
71
|
/** Sets the selection programmatically (for controlled mode). */
|
|
@@ -100,7 +125,7 @@ export type CreateListBoxContextOptions = {
|
|
|
100
125
|
loop?: boolean;
|
|
101
126
|
/** Whether typing characters moves focus to a matching item. Default false. */
|
|
102
127
|
typeahead?: boolean;
|
|
103
|
-
/**
|
|
128
|
+
/** The selection at the start, for when the component controls the state. */
|
|
104
129
|
initialSelection?: Set<string | number>;
|
|
105
130
|
/** Callback fired when selection changes. */
|
|
106
131
|
onSelectionChange?: (selection: Set<string | number>) => void;
|