ui-ingredients 0.0.20 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +7 -4
- package/dist/accordion/accordion.d.ts +1 -0
- package/dist/accordion/accordion.js +1 -0
- package/dist/accordion/create-accordion.svelte.js +4 -4
- package/dist/accordion/index.d.ts +0 -1
- package/dist/accordion/index.js +0 -1
- package/dist/accordion/item-content.svelte +2 -3
- package/dist/accordion/item-indicator.svelte +2 -3
- package/dist/accordion/item-trigger.svelte +2 -3
- package/dist/accordion/item.svelte +3 -4
- package/dist/accordion/root.svelte +5 -5
- package/dist/avatar/avatar.d.ts +1 -0
- package/dist/avatar/avatar.js +1 -0
- package/dist/avatar/create-avatar.svelte.js +4 -4
- package/dist/avatar/fallback.svelte +2 -2
- package/dist/avatar/image.svelte +2 -2
- package/dist/avatar/index.d.ts +0 -1
- package/dist/avatar/index.js +0 -1
- package/dist/avatar/root.svelte +5 -5
- package/dist/carousel/carousel.d.ts +1 -0
- package/dist/carousel/carousel.js +1 -0
- package/dist/carousel/create-carousel.svelte.js +4 -4
- package/dist/carousel/index.d.ts +0 -1
- package/dist/carousel/index.js +0 -1
- package/dist/carousel/indicator-group.svelte +2 -2
- package/dist/carousel/indicator.svelte +2 -2
- package/dist/carousel/item-group.svelte +2 -2
- package/dist/carousel/item.svelte +3 -3
- package/dist/carousel/next-trigger.svelte +2 -2
- package/dist/carousel/prev-trigger.svelte +2 -2
- package/dist/carousel/root.svelte +5 -5
- package/dist/carousel/viewport.svelte +2 -2
- package/dist/checkbox/checkbox.d.ts +1 -0
- package/dist/checkbox/checkbox.js +1 -0
- package/dist/checkbox/control.svelte +2 -2
- package/dist/checkbox/create-checkbox.svelte.js +4 -4
- package/dist/checkbox/hidden-input.svelte +2 -2
- package/dist/checkbox/index.d.ts +0 -1
- package/dist/checkbox/index.js +0 -1
- package/dist/checkbox/indicator.svelte +2 -2
- package/dist/checkbox/label.svelte +2 -2
- package/dist/checkbox/root.svelte +5 -5
- package/dist/clipboard/clipboard.d.ts +1 -0
- package/dist/clipboard/clipboard.js +1 -0
- package/dist/clipboard/control.svelte +2 -2
- package/dist/clipboard/create-clipboard.svelte.js +2 -2
- package/dist/clipboard/index.d.ts +0 -1
- package/dist/clipboard/index.js +0 -1
- package/dist/clipboard/indicator.svelte +2 -2
- package/dist/clipboard/input.svelte +2 -2
- package/dist/clipboard/label.svelte +2 -2
- package/dist/clipboard/root.svelte +5 -5
- package/dist/clipboard/trigger.svelte +2 -2
- package/dist/collapsible/collapsible.d.ts +1 -0
- package/dist/collapsible/collapsible.js +1 -0
- package/dist/collapsible/content.svelte +2 -2
- package/dist/collapsible/create-collapsible.svelte.js +4 -4
- package/dist/collapsible/index.d.ts +0 -1
- package/dist/collapsible/index.js +0 -1
- package/dist/collapsible/root.svelte +4 -4
- package/dist/collapsible/trigger.svelte +2 -2
- package/dist/combobox/clear-trigger.svelte +2 -2
- package/dist/combobox/combobox.d.ts +1 -0
- package/dist/combobox/combobox.js +1 -0
- package/dist/combobox/content.svelte +2 -2
- package/dist/combobox/control.svelte +2 -2
- package/dist/combobox/create-combobox.svelte.js +4 -4
- package/dist/combobox/index.d.ts +1 -2
- package/dist/combobox/index.js +0 -1
- package/dist/combobox/input.svelte +2 -2
- package/dist/combobox/item-group-label.svelte +2 -3
- package/dist/combobox/item-group.svelte +2 -2
- package/dist/combobox/item-indicator.svelte +2 -3
- package/dist/combobox/item-text.svelte +3 -4
- package/dist/combobox/item.svelte +3 -4
- package/dist/combobox/label.svelte +2 -2
- package/dist/combobox/list.svelte +2 -2
- package/dist/combobox/positioner.svelte +2 -2
- package/dist/combobox/root.svelte +5 -5
- package/dist/combobox/trigger.svelte +2 -2
- package/dist/date-picker/anatomy.js +3 -3
- package/dist/date-picker/clear-trigger.svelte +2 -2
- package/dist/date-picker/content.svelte +2 -2
- package/dist/date-picker/control.svelte +2 -2
- package/dist/date-picker/create-date-picker.svelte.d.ts +1 -1
- package/dist/date-picker/create-date-picker.svelte.js +5 -5
- package/dist/date-picker/date-picker.d.ts +2 -0
- package/dist/date-picker/date-picker.js +2 -0
- package/dist/date-picker/day-table-cell-trigger.svelte +2 -3
- package/dist/date-picker/day-table-cell.svelte +3 -4
- package/dist/date-picker/index.d.ts +0 -2
- package/dist/date-picker/index.js +0 -2
- package/dist/date-picker/input.svelte +2 -2
- package/dist/date-picker/label.svelte +2 -2
- package/dist/date-picker/month-select.svelte +2 -2
- package/dist/date-picker/month-table-cell-trigger.svelte +2 -3
- package/dist/date-picker/month-table-cell.svelte +3 -4
- package/dist/date-picker/next-trigger.svelte +2 -3
- package/dist/date-picker/positioner.svelte +2 -2
- package/dist/date-picker/preset-trigger.svelte +2 -2
- package/dist/date-picker/prev-trigger.svelte +2 -3
- package/dist/date-picker/range-text.svelte +3 -3
- package/dist/date-picker/root.svelte +7 -5
- package/dist/date-picker/table-body.svelte +2 -3
- package/dist/date-picker/table-head.svelte +2 -3
- package/dist/date-picker/table-header.svelte +2 -3
- package/dist/date-picker/table-row.svelte +2 -3
- package/dist/date-picker/table.svelte +2 -4
- package/dist/date-picker/trigger.svelte +2 -2
- package/dist/date-picker/view-control.svelte +2 -3
- package/dist/date-picker/view.svelte +2 -2
- package/dist/date-picker/year-select.svelte +2 -2
- package/dist/date-picker/year-table-cell-trigger.svelte +2 -3
- package/dist/date-picker/year-table-cell.svelte +3 -4
- package/dist/dialog/backdrop.svelte +2 -2
- package/dist/dialog/close-trigger.svelte +2 -2
- package/dist/dialog/content.svelte +2 -2
- package/dist/dialog/create-dialog.svelte.js +4 -4
- package/dist/dialog/description.svelte +2 -2
- package/dist/dialog/dialog.d.ts +1 -0
- package/dist/dialog/dialog.js +1 -0
- package/dist/dialog/index.d.ts +1 -2
- package/dist/dialog/index.js +0 -1
- package/dist/dialog/positioner.svelte +2 -2
- package/dist/dialog/root.svelte +4 -4
- package/dist/dialog/title.svelte +2 -2
- package/dist/dialog/trigger.svelte +2 -2
- package/dist/editable/area.svelte +2 -2
- package/dist/editable/cancel-trigger.svelte +2 -2
- package/dist/editable/control.svelte +2 -2
- package/dist/editable/create-editable.svelte.js +4 -4
- package/dist/editable/edit-trigger.svelte +2 -2
- package/dist/editable/editable.d.ts +1 -0
- package/dist/editable/editable.js +1 -0
- package/dist/editable/index.d.ts +1 -2
- package/dist/editable/index.js +0 -1
- package/dist/editable/input.svelte +2 -2
- package/dist/editable/label.svelte +2 -2
- package/dist/editable/preview.svelte +3 -3
- package/dist/editable/root.svelte +4 -4
- package/dist/editable/submit-trigger.svelte +2 -2
- package/dist/environment-provider/root.svelte +2 -2
- package/dist/file-upload/context.svelte.d.ts +5 -8
- package/dist/file-upload/context.svelte.js +3 -14
- package/dist/file-upload/create-file-upload.svelte.d.ts +7 -0
- package/dist/file-upload/create-file-upload.svelte.js +18 -0
- package/dist/file-upload/dropzone.svelte +19 -2
- package/dist/file-upload/dropzone.svelte.d.ts +3 -3
- package/dist/file-upload/file-upload.d.ts +1 -0
- package/dist/file-upload/file-upload.js +1 -0
- package/dist/file-upload/hidden-input.svelte +17 -2
- package/dist/file-upload/hidden-input.svelte.d.ts +3 -3
- package/dist/file-upload/index.d.ts +12 -0
- package/dist/file-upload/item-delete-trigger.svelte +20 -2
- package/dist/file-upload/item-delete-trigger.svelte.d.ts +3 -3
- package/dist/file-upload/item-group.svelte +19 -2
- package/dist/file-upload/item-group.svelte.d.ts +3 -3
- package/dist/file-upload/item-name.svelte +24 -2
- package/dist/file-upload/item-name.svelte.d.ts +3 -3
- package/dist/file-upload/item-preview-image.svelte +26 -2
- package/dist/file-upload/item-preview-image.svelte.d.ts +3 -3
- package/dist/file-upload/item-preview.svelte +20 -2
- package/dist/file-upload/item-preview.svelte.d.ts +3 -3
- package/dist/file-upload/item-size-text.svelte +24 -2
- package/dist/file-upload/item-size-text.svelte.d.ts +3 -3
- package/dist/file-upload/item.svelte +25 -2
- package/dist/file-upload/item.svelte.d.ts +3 -3
- package/dist/file-upload/label.svelte +19 -2
- package/dist/file-upload/label.svelte.d.ts +3 -3
- package/dist/file-upload/root.svelte +67 -2
- package/dist/file-upload/root.svelte.d.ts +3 -3
- package/dist/file-upload/trigger.svelte +19 -2
- package/dist/file-upload/trigger.svelte.d.ts +3 -3
- package/dist/floating-panel/.gitkeep +0 -0
- package/dist/hover-card/arrow-tip.svelte +2 -2
- package/dist/hover-card/arrow.svelte +2 -2
- package/dist/hover-card/content.svelte +2 -2
- package/dist/hover-card/create-hover-card.svelte.js +4 -4
- package/dist/hover-card/hover-card.d.ts +1 -0
- package/dist/hover-card/hover-card.js +1 -0
- package/dist/hover-card/index.d.ts +1 -2
- package/dist/hover-card/index.js +0 -1
- package/dist/hover-card/positioner.svelte +2 -2
- package/dist/hover-card/root.svelte +4 -4
- package/dist/hover-card/trigger.svelte +2 -2
- package/dist/locale-provider/root.svelte +2 -2
- package/dist/menu/arrow-tip.svelte +2 -2
- package/dist/menu/arrow.svelte +2 -2
- package/dist/menu/context-trigger.svelte +2 -2
- package/dist/menu/create-menu.svelte.js +4 -4
- package/dist/menu/index.d.ts +1 -2
- package/dist/menu/index.js +1 -2
- package/dist/menu/indicator.svelte +2 -2
- package/dist/menu/item-group-label.svelte +2 -3
- package/dist/menu/item-group.svelte +2 -2
- package/dist/menu/item.svelte +3 -4
- package/dist/menu/menu.d.ts +1 -0
- package/dist/menu/menu.js +1 -0
- package/dist/menu/option-item-indicator.svelte +2 -3
- package/dist/menu/option-item-text.svelte +2 -3
- package/dist/menu/option-item.svelte +3 -4
- package/dist/menu/positioner.svelte +2 -2
- package/dist/menu/root.svelte +4 -4
- package/dist/menu/separator.svelte +2 -2
- package/dist/menu/trigger-item.svelte +2 -2
- package/dist/menu/trigger.svelte +2 -2
- package/dist/number-input/control.svelte +2 -2
- package/dist/number-input/create-number-input.svelte.d.ts +1 -1
- package/dist/number-input/create-number-input.svelte.js +5 -5
- package/dist/number-input/decrement-trigger.svelte +2 -2
- package/dist/number-input/increment-trigger.svelte +2 -2
- package/dist/number-input/index.d.ts +1 -2
- package/dist/number-input/index.js +0 -1
- package/dist/number-input/input.svelte +2 -2
- package/dist/number-input/label.svelte +2 -2
- package/dist/number-input/number-input.d.ts +1 -0
- package/dist/number-input/number-input.js +1 -0
- package/dist/number-input/root.svelte +7 -5
- package/dist/number-input/scrubber.svelte +2 -2
- package/dist/pagination/create-pagination.svelte.js +4 -4
- package/dist/pagination/ellipsis.svelte +2 -2
- package/dist/pagination/index.d.ts +1 -2
- package/dist/pagination/index.js +0 -1
- package/dist/pagination/item.svelte +2 -2
- package/dist/pagination/next-trigger.svelte +2 -2
- package/dist/pagination/pagination.d.ts +1 -0
- package/dist/pagination/pagination.js +1 -0
- package/dist/pagination/prev-trigger.svelte +2 -2
- package/dist/pagination/root.svelte +5 -5
- package/dist/pin-input/clear-trigger.svelte +2 -2
- package/dist/pin-input/create-pin-input.svelte.js +4 -4
- package/dist/pin-input/hidden-input.svelte +2 -2
- package/dist/pin-input/index.d.ts +1 -2
- package/dist/pin-input/index.js +0 -1
- package/dist/pin-input/input.svelte +2 -2
- package/dist/pin-input/label.svelte +2 -2
- package/dist/pin-input/pin-input.d.ts +1 -0
- package/dist/pin-input/pin-input.js +1 -0
- package/dist/pin-input/root.svelte +5 -5
- package/dist/popover/arrow-tip.svelte +2 -2
- package/dist/popover/arrow.svelte +2 -2
- package/dist/popover/close-trigger.svelte +2 -2
- package/dist/popover/content.svelte +2 -2
- package/dist/popover/create-popover.svelte.js +4 -4
- package/dist/popover/description.svelte +2 -2
- package/dist/popover/index.d.ts +1 -2
- package/dist/popover/index.js +0 -1
- package/dist/popover/popover.d.ts +1 -0
- package/dist/popover/popover.js +1 -0
- package/dist/popover/positioner.svelte +2 -2
- package/dist/popover/root.svelte +4 -4
- package/dist/popover/title.svelte +2 -2
- package/dist/popover/trigger.svelte +2 -2
- package/dist/portal/root.svelte +2 -4
- package/dist/presence/create-presence.svelte.d.ts +10 -0
- package/dist/presence/create-presence.svelte.js +19 -0
- package/dist/presence/root.svelte +11 -20
- package/dist/progress/circle-range.svelte +2 -2
- package/dist/progress/circle-track.svelte +2 -2
- package/dist/progress/circle.svelte +2 -2
- package/dist/progress/create-progress.svelte.js +4 -4
- package/dist/progress/index.d.ts +1 -2
- package/dist/progress/index.js +0 -1
- package/dist/progress/label.svelte +2 -2
- package/dist/progress/progress.d.ts +1 -0
- package/dist/progress/progress.js +1 -0
- package/dist/progress/range.svelte +2 -2
- package/dist/progress/root.svelte +5 -5
- package/dist/progress/track.svelte +2 -2
- package/dist/progress/value-text.svelte +3 -3
- package/dist/qr-code/create-qr-code.svelte.js +4 -4
- package/dist/qr-code/frame.svelte +2 -2
- package/dist/qr-code/index.d.ts +1 -2
- package/dist/qr-code/index.js +0 -1
- package/dist/qr-code/overlay.svelte +2 -2
- package/dist/qr-code/pattern.svelte +2 -2
- package/dist/qr-code/qr-code.d.ts +1 -0
- package/dist/qr-code/qr-code.js +1 -0
- package/dist/qr-code/root.svelte +5 -5
- package/dist/radio-group/create-radio-group.svelte.js +4 -4
- package/dist/radio-group/index.d.ts +1 -2
- package/dist/radio-group/index.js +0 -1
- package/dist/radio-group/indicator.svelte +2 -2
- package/dist/radio-group/item-control.svelte +2 -3
- package/dist/radio-group/item-hidden-input.svelte +2 -3
- package/dist/radio-group/item-text.svelte +2 -3
- package/dist/radio-group/item.svelte +3 -4
- package/dist/radio-group/label.svelte +2 -2
- package/dist/radio-group/radio-group.d.ts +1 -0
- package/dist/radio-group/radio-group.js +1 -0
- package/dist/radio-group/root.svelte +5 -5
- package/dist/rating-group/control.svelte +2 -2
- package/dist/rating-group/create-rating-group.svelte.js +4 -4
- package/dist/rating-group/hidden-input.svelte +2 -2
- package/dist/rating-group/index.d.ts +1 -2
- package/dist/rating-group/index.js +0 -1
- package/dist/rating-group/item.svelte +3 -4
- package/dist/rating-group/label.svelte +2 -2
- package/dist/rating-group/rating-group.d.ts +1 -0
- package/dist/rating-group/rating-group.js +1 -0
- package/dist/rating-group/root.svelte +5 -5
- package/dist/segment-group/anatomy.js +3 -3
- package/dist/segment-group/create-segment-group.svelte.js +4 -4
- package/dist/segment-group/index.d.ts +1 -2
- package/dist/segment-group/index.js +0 -1
- package/dist/segment-group/indicator.svelte +2 -2
- package/dist/segment-group/item-control.svelte +2 -3
- package/dist/segment-group/item-hidden-input.svelte +2 -3
- package/dist/segment-group/item-text.svelte +2 -3
- package/dist/segment-group/item.svelte +3 -4
- package/dist/segment-group/label.svelte +2 -2
- package/dist/segment-group/root.svelte +5 -5
- package/dist/segment-group/segment-group.d.ts +1 -0
- package/dist/segment-group/segment-group.js +1 -0
- package/dist/select/clear-trigger.svelte +2 -2
- package/dist/select/content.svelte +2 -2
- package/dist/select/control.svelte +2 -2
- package/dist/select/create-select.svelte.js +4 -4
- package/dist/select/hidden-select.svelte +2 -2
- package/dist/select/index.d.ts +1 -2
- package/dist/select/index.js +0 -1
- package/dist/select/indicator.svelte +2 -2
- package/dist/select/item-group-label.svelte +2 -3
- package/dist/select/item-group.svelte +2 -2
- package/dist/select/item-indicator.svelte +2 -3
- package/dist/select/item-text.svelte +3 -4
- package/dist/select/item.svelte +3 -4
- package/dist/select/label.svelte +2 -2
- package/dist/select/list.svelte +2 -2
- package/dist/select/positioner.svelte +2 -2
- package/dist/select/root.svelte +5 -5
- package/dist/select/select.d.ts +1 -0
- package/dist/select/select.js +1 -0
- package/dist/select/trigger.svelte +2 -2
- package/dist/select/value-text.svelte +4 -4
- package/dist/slider/control.svelte +2 -2
- package/dist/slider/create-slider.svelte.js +4 -4
- package/dist/slider/hidden-input.svelte +2 -3
- package/dist/slider/index.d.ts +1 -2
- package/dist/slider/index.js +0 -1
- package/dist/slider/label.svelte +2 -2
- package/dist/slider/marker-group.svelte +2 -2
- package/dist/slider/marker.svelte +2 -2
- package/dist/slider/range.svelte +2 -2
- package/dist/slider/root.svelte +5 -5
- package/dist/slider/slider.d.ts +1 -0
- package/dist/slider/slider.js +1 -0
- package/dist/slider/thumb.svelte +2 -3
- package/dist/slider/track.svelte +2 -2
- package/dist/slider/value-text.svelte +3 -3
- package/dist/steps/content.svelte +2 -2
- package/dist/steps/create-steps.svelte.js +4 -4
- package/dist/steps/index.d.ts +1 -2
- package/dist/steps/index.js +0 -1
- package/dist/steps/indicator.svelte +2 -3
- package/dist/steps/item.svelte +3 -4
- package/dist/steps/list.svelte +2 -2
- package/dist/steps/next-trigger.svelte +2 -2
- package/dist/steps/prev-trigger.svelte +2 -2
- package/dist/steps/progress.svelte +2 -2
- package/dist/steps/root.svelte +5 -5
- package/dist/steps/separator.svelte +2 -3
- package/dist/steps/steps.d.ts +1 -0
- package/dist/steps/steps.js +1 -0
- package/dist/steps/trigger.svelte +2 -3
- package/dist/switch/control.svelte +2 -2
- package/dist/switch/create-switch.svelte.js +4 -4
- package/dist/switch/hidden-input.svelte +2 -2
- package/dist/switch/index.d.ts +1 -2
- package/dist/switch/index.js +0 -1
- package/dist/switch/label.svelte +2 -2
- package/dist/switch/root.svelte +5 -5
- package/dist/switch/switch.d.ts +1 -0
- package/dist/switch/switch.js +1 -0
- package/dist/switch/thumb.svelte +2 -2
- package/dist/tabs/content.svelte +2 -2
- package/dist/tabs/create-tabs.svelte.js +4 -4
- package/dist/tabs/index.d.ts +1 -2
- package/dist/tabs/index.js +0 -1
- package/dist/tabs/list.svelte +2 -2
- package/dist/tabs/root.svelte +5 -5
- package/dist/tabs/tabs.d.ts +1 -0
- package/dist/tabs/tabs.js +1 -0
- package/dist/tabs/trigger.svelte +2 -2
- package/dist/tags-input/clear-trigger.svelte +2 -2
- package/dist/tags-input/control.svelte +2 -2
- package/dist/tags-input/create-tags-input.svelte.js +4 -4
- package/dist/tags-input/hidden-input.svelte +2 -2
- package/dist/tags-input/index.d.ts +1 -2
- package/dist/tags-input/index.js +0 -1
- package/dist/tags-input/input.svelte +2 -2
- package/dist/tags-input/item-delete-trigger.svelte +2 -3
- package/dist/tags-input/item-input.svelte +2 -3
- package/dist/tags-input/item-preview.svelte +2 -3
- package/dist/tags-input/item-text.svelte +2 -3
- package/dist/tags-input/item.svelte +3 -4
- package/dist/tags-input/label.svelte +2 -2
- package/dist/tags-input/root.svelte +5 -5
- package/dist/tags-input/tags-input.d.ts +1 -0
- package/dist/tags-input/tags-input.js +1 -0
- package/dist/time-picker/.gitkeep +0 -0
- package/dist/timer/action-trigger.svelte +2 -2
- package/dist/timer/create-timer.svelte.js +2 -2
- package/dist/timer/item-label.svelte +2 -3
- package/dist/timer/item-value.svelte +3 -4
- package/dist/timer/item.svelte +2 -3
- package/dist/timer/root.svelte +5 -5
- package/dist/timer/separator.svelte +2 -2
- package/dist/timer/timer.d.ts +1 -0
- package/dist/timer/timer.js +1 -0
- package/dist/toast/create-toaster.svelte.js +4 -4
- package/dist/toast/index.d.ts +6 -7
- package/dist/toast/index.js +1 -7
- package/dist/toast/toast.d.ts +6 -5
- package/dist/toast/toast.js +1 -0
- package/dist/toggle-group/create-toggle-group.svelte.js +4 -4
- package/dist/toggle-group/index.d.ts +1 -2
- package/dist/toggle-group/index.js +0 -1
- package/dist/toggle-group/item.svelte +3 -4
- package/dist/toggle-group/root.svelte +4 -4
- package/dist/toggle-group/toggle-group.d.ts +1 -0
- package/dist/toggle-group/toggle-group.js +1 -0
- package/dist/tooltip/arrow-tip.svelte +2 -2
- package/dist/tooltip/arrow.svelte +2 -2
- package/dist/tooltip/content.svelte +2 -2
- package/dist/tooltip/create-tooltip.svelte.js +4 -4
- package/dist/tooltip/index.d.ts +1 -2
- package/dist/tooltip/index.js +0 -1
- package/dist/tooltip/positioner.svelte +2 -2
- package/dist/tooltip/root.svelte +4 -4
- package/dist/tooltip/tooltip.d.ts +1 -0
- package/dist/tooltip/tooltip.js +1 -0
- package/dist/tooltip/trigger.svelte +2 -2
- package/dist/tour/.gitkeep +0 -0
- package/package.json +5 -1
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
export interface RatingGroupProps
|
10
10
|
extends Assign<Omit<HtmlProps<'div'>, 'children'>, CreateRatingGroupProps> {
|
11
|
-
children?: Snippet<[
|
11
|
+
children?: Snippet<[radioGroup: CreateRatingGroupReturn]>;
|
12
12
|
}
|
13
13
|
</script>
|
14
14
|
|
@@ -36,7 +36,7 @@
|
|
36
36
|
...props
|
37
37
|
}: RatingGroupProps = $props();
|
38
38
|
|
39
|
-
let
|
39
|
+
let radioGroup = createRatingGroup({
|
40
40
|
id,
|
41
41
|
ids,
|
42
42
|
form,
|
@@ -53,11 +53,11 @@
|
|
53
53
|
onValueChange,
|
54
54
|
});
|
55
55
|
|
56
|
-
let attrs = $derived(mergeProps(props,
|
56
|
+
let attrs = $derived(mergeProps(props, radioGroup.getRootProps()));
|
57
57
|
|
58
|
-
ratingGroupContext.set(
|
58
|
+
ratingGroupContext.set(radioGroup);
|
59
59
|
</script>
|
60
60
|
|
61
61
|
<div {...attrs}>
|
62
|
-
{@render children?.(
|
62
|
+
{@render children?.(radioGroup)}
|
63
63
|
</div>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { anatomy } from '@zag-js/radio-group';
|
2
|
-
export const
|
3
|
-
export const parts =
|
1
|
+
import { anatomy as _ } from '@zag-js/radio-group';
|
2
|
+
export const anatomy = _.rename('segment-group');
|
3
|
+
export const parts = anatomy.build();
|
@@ -4,13 +4,13 @@ import { createUniqueId } from '../utils.svelte.js';
|
|
4
4
|
import * as segmentGroup from '@zag-js/radio-group';
|
5
5
|
import { normalizeProps, reflect, useMachine } from '@zag-js/svelte';
|
6
6
|
export function createSegmentGroup(props) {
|
7
|
-
const
|
8
|
-
const
|
7
|
+
const locale = getLocaleContext();
|
8
|
+
const environment = getEnvironmentContext();
|
9
9
|
const [state, send] = useMachine(segmentGroup.machine({
|
10
10
|
...props,
|
11
11
|
id: props.id ?? createUniqueId(),
|
12
|
-
dir:
|
13
|
-
getRootNode:
|
12
|
+
dir: locale?.dir,
|
13
|
+
getRootNode: environment?.getRootNode,
|
14
14
|
}));
|
15
15
|
const api = $derived(reflect(() => segmentGroup.connect(state, send, normalizeProps)));
|
16
16
|
return api;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export
|
1
|
+
export * as SegmentGroup from './segment-group.js';
|
2
2
|
export type { SegmentGroupIndicatorProps } from './indicator.svelte';
|
3
3
|
export type { SegmentGroupItemControlProps } from './item-control.svelte';
|
4
4
|
export type { SegmentGroupItemHiddenInputProps } from './item-hidden-input.svelte';
|
@@ -6,4 +6,3 @@ export type { SegmentGroupItemTextProps } from './item-text.svelte';
|
|
6
6
|
export type { SegmentGroupItemProps } from './item.svelte';
|
7
7
|
export type { SegmentGroupLabelProps } from './label.svelte';
|
8
8
|
export type { SegmentGroupProps } from './root.svelte';
|
9
|
-
export * as SegmentGroup from './segment-group.js';
|
@@ -12,9 +12,9 @@
|
|
12
12
|
|
13
13
|
let {children, ...props}: SegmentGroupIndicatorProps = $props();
|
14
14
|
|
15
|
-
let
|
15
|
+
let segmentGroup = segmentGroupContext.get();
|
16
16
|
|
17
|
-
let attrs = $derived(mergeProps(props,
|
17
|
+
let attrs = $derived(mergeProps(props, segmentGroup.getIndicatorProps(), parts.indicator.attrs));
|
18
18
|
</script>
|
19
19
|
|
20
20
|
<span {...ensureStyleIsString(attrs)}>
|
@@ -12,12 +12,11 @@
|
|
12
12
|
|
13
13
|
let {children, ...props}: SegmentGroupItemControlProps = $props();
|
14
14
|
|
15
|
-
let
|
16
|
-
|
15
|
+
let segmentGroup = segmentGroupContext.get();
|
17
16
|
let itemProps = segmentGroupItemPropsContext.get();
|
18
17
|
|
19
18
|
let attrs = $derived(
|
20
|
-
mergeProps(props,
|
19
|
+
mergeProps(props, segmentGroup.getItemControlProps(itemProps), parts.itemControl.attrs),
|
21
20
|
);
|
22
21
|
</script>
|
23
22
|
|
@@ -10,11 +10,10 @@
|
|
10
10
|
|
11
11
|
let {...props}: SegmentGroupItemHiddenInputProps = $props();
|
12
12
|
|
13
|
-
let
|
14
|
-
|
13
|
+
let segmentGroup = segmentGroupContext.get();
|
15
14
|
let itemProps = segmentGroupItemPropsContext.get();
|
16
15
|
|
17
|
-
let attrs = $derived(mergeProps(props,
|
16
|
+
let attrs = $derived(mergeProps(props, segmentGroup.getItemHiddenInputProps(itemProps)));
|
18
17
|
</script>
|
19
18
|
|
20
19
|
<input {...attrs} />
|
@@ -12,12 +12,11 @@
|
|
12
12
|
|
13
13
|
let {children, ...props}: SegmentGroupItemTextProps = $props();
|
14
14
|
|
15
|
-
let
|
16
|
-
|
15
|
+
let segmentGroup = segmentGroupContext.get();
|
17
16
|
let itemProps = segmentGroupItemPropsContext.get();
|
18
17
|
|
19
18
|
let attrs = $derived(
|
20
|
-
mergeProps(props,
|
19
|
+
mergeProps(props, segmentGroup.getItemTextProps(itemProps), parts.itemText.attrs),
|
21
20
|
);
|
22
21
|
</script>
|
23
22
|
|
@@ -24,16 +24,15 @@
|
|
24
24
|
...props
|
25
25
|
}: SegmentGroupItemProps = $props();
|
26
26
|
|
27
|
-
let
|
28
|
-
|
27
|
+
let segmentGroup = segmentGroupContext.get();
|
29
28
|
let itemProps = $derived({
|
30
29
|
value,
|
31
30
|
invalid,
|
32
31
|
disabled,
|
33
32
|
});
|
34
33
|
|
35
|
-
let state = $derived(
|
36
|
-
let attrs = $derived(mergeProps(props,
|
34
|
+
let state = $derived(segmentGroup.getItemState(itemProps));
|
35
|
+
let attrs = $derived(mergeProps(props, segmentGroup.getItemProps(itemProps), parts.item.attrs));
|
37
36
|
|
38
37
|
segmentGroupItemPropsContext.set(() => itemProps);
|
39
38
|
</script>
|
@@ -12,9 +12,9 @@
|
|
12
12
|
|
13
13
|
let {children, ...props}: SegmentGroupLabelProps = $props();
|
14
14
|
|
15
|
-
let
|
15
|
+
let segmentGroup = segmentGroupContext.get();
|
16
16
|
|
17
|
-
let attrs = $derived(mergeProps(props,
|
17
|
+
let attrs = $derived(mergeProps(props, segmentGroup.getLabelProps(), parts.label.attrs));
|
18
18
|
</script>
|
19
19
|
|
20
20
|
<span {...ensureStyleIsString(attrs)}>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
export interface SegmentGroupProps
|
10
10
|
extends Assign<Omit<HtmlProps<'div'>, 'children'>, CreateSegmentGroupProps> {
|
11
|
-
children?: Snippet<[
|
11
|
+
children?: Snippet<[segmentGroup: CreateSegmentGroupReturn]>;
|
12
12
|
}
|
13
13
|
</script>
|
14
14
|
|
@@ -33,7 +33,7 @@
|
|
33
33
|
...props
|
34
34
|
}: SegmentGroupProps = $props();
|
35
35
|
|
36
|
-
let
|
36
|
+
let segmentGroup = createSegmentGroup({
|
37
37
|
id,
|
38
38
|
ids,
|
39
39
|
form,
|
@@ -45,11 +45,11 @@
|
|
45
45
|
onValueChange,
|
46
46
|
});
|
47
47
|
|
48
|
-
let attrs = $derived(mergeProps(props,
|
48
|
+
let attrs = $derived(mergeProps(props, segmentGroup.getRootProps(), parts.root.attrs));
|
49
49
|
|
50
|
-
segmentGroupContext.set(
|
50
|
+
segmentGroupContext.set(segmentGroup);
|
51
51
|
</script>
|
52
52
|
|
53
53
|
<div {...ensureStyleIsString(attrs)}>
|
54
|
-
{@render children?.(
|
54
|
+
{@render children?.(segmentGroup)}
|
55
55
|
</div>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: SelectClearTriggerProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let select = selectContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, select.getClearTriggerProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<button type="button" {...attrs}>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: SelectContentProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let select = selectContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, select.getContentProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<div {...attrs}>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: SelectControlProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let select = selectContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, select.getControlProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<div {...attrs}>
|
@@ -10,14 +10,14 @@ export function createSelect(props) {
|
|
10
10
|
itemToString: (item) => (props.itemToString ? props.itemToString(item) : String(item)),
|
11
11
|
isItemDisabled: (item) => (props.isItemDisabled ? props.isItemDisabled(item) : false),
|
12
12
|
}));
|
13
|
-
const
|
14
|
-
const
|
13
|
+
const locale = getLocaleContext();
|
14
|
+
const environment = getEnvironmentContext();
|
15
15
|
const [state, send] = useMachine(select.machine({
|
16
16
|
...props,
|
17
17
|
id: props.id ?? createUniqueId(),
|
18
|
-
dir:
|
18
|
+
dir: locale?.dir,
|
19
19
|
open: props.defaultOpen,
|
20
|
-
getRootNode:
|
20
|
+
getRootNode: environment?.getRootNode,
|
21
21
|
collection,
|
22
22
|
'open.controlled': props.open != null,
|
23
23
|
}));
|
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: SelectHiddenSelectProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let select = selectContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, select.getHiddenSelectProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<select {...attrs}>
|
package/dist/select/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export
|
1
|
+
export * as Select from './select.js';
|
2
2
|
export type { SelectClearTriggerProps } from './clear-trigger.svelte';
|
3
3
|
export type { SelectContentProps } from './content.svelte';
|
4
4
|
export type { SelectControlProps } from './control.svelte';
|
@@ -13,6 +13,5 @@ export type { SelectLabelProps } from './label.svelte';
|
|
13
13
|
export type { SelectListProps } from './list.svelte';
|
14
14
|
export type { SelectPositionerProps } from './positioner.svelte';
|
15
15
|
export type { SelectProps } from './root.svelte';
|
16
|
-
export * as Select from './select.js';
|
17
16
|
export type { SelectTriggerProps } from './trigger.svelte';
|
18
17
|
export type { SelectValueTextProps } from './value-text.svelte';
|
package/dist/select/index.js
CHANGED
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: SelectIndicatorProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let select = selectContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, select.getIndicatorProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<span {...attrs}>
|
@@ -10,12 +10,11 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: SelectItemGroupLabelProps = $props();
|
12
12
|
|
13
|
-
let
|
14
|
-
|
13
|
+
let select = selectContext.get();
|
15
14
|
let itemGroupProps = selectItemGroupPropsContext.get();
|
16
15
|
|
17
16
|
let attrs = $derived(
|
18
|
-
mergeProps(props,
|
17
|
+
mergeProps(props, select.getItemGroupLabelProps({htmlFor: itemGroupProps.id})),
|
19
18
|
);
|
20
19
|
</script>
|
21
20
|
|
@@ -13,7 +13,7 @@
|
|
13
13
|
|
14
14
|
let {id, children, ...props}: SelectItemGroupProps = $props();
|
15
15
|
|
16
|
-
let
|
16
|
+
let select = selectContext.get();
|
17
17
|
|
18
18
|
let uid = createUniqueId();
|
19
19
|
|
@@ -21,7 +21,7 @@
|
|
21
21
|
id: id ?? uid,
|
22
22
|
});
|
23
23
|
|
24
|
-
let attrs = $derived(mergeProps(props,
|
24
|
+
let attrs = $derived(mergeProps(props, select.getItemGroupProps(itemGroupProps)));
|
25
25
|
|
26
26
|
selectItemGroupPropsContext.set(() => itemGroupProps);
|
27
27
|
</script>
|
@@ -10,11 +10,10 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: SelectItemIndicatorProps = $props();
|
12
12
|
|
13
|
-
let
|
14
|
-
|
13
|
+
let select = selectContext.get();
|
15
14
|
let itemProps = selectItemPropsContext.get();
|
16
15
|
|
17
|
-
let attrs = $derived(mergeProps(props,
|
16
|
+
let attrs = $derived(mergeProps(props, select.getItemIndicatorProps(itemProps)));
|
18
17
|
</script>
|
19
18
|
|
20
19
|
<span {...attrs}>
|
@@ -10,17 +10,16 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: SelectItemTextProps = $props();
|
12
12
|
|
13
|
-
let
|
14
|
-
|
13
|
+
let select = selectContext.get();
|
15
14
|
let itemProps = selectItemPropsContext.get();
|
16
15
|
|
17
|
-
let attrs = $derived(mergeProps(props,
|
16
|
+
let attrs = $derived(mergeProps(props, select.getItemTextProps(itemProps)));
|
18
17
|
</script>
|
19
18
|
|
20
19
|
<span {...attrs}>
|
21
20
|
{#if children}
|
22
21
|
{@render children?.()}
|
23
22
|
{:else}
|
24
|
-
{
|
23
|
+
{select.collection.stringifyItem(itemProps.item)}
|
25
24
|
{/if}
|
26
25
|
</span>
|
package/dist/select/item.svelte
CHANGED
@@ -14,15 +14,14 @@
|
|
14
14
|
|
15
15
|
let {item, persistFocus, children, ...props}: SelectItemProps = $props();
|
16
16
|
|
17
|
-
let
|
18
|
-
|
17
|
+
let select = selectContext.get();
|
19
18
|
let itemProps = $derived({
|
20
19
|
item,
|
21
20
|
persistFocus,
|
22
21
|
});
|
23
22
|
|
24
|
-
let state = $derived(
|
25
|
-
let attrs = $derived(mergeProps(props,
|
23
|
+
let state = $derived(select.getItemState(itemProps));
|
24
|
+
let attrs = $derived(mergeProps(props, select.getItemProps(itemProps)));
|
26
25
|
|
27
26
|
selectItemPropsContext.set(() => itemProps);
|
28
27
|
</script>
|
package/dist/select/label.svelte
CHANGED
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: SelectLabelProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let select = selectContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, select.getLabelProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<label {...attrs}>
|
package/dist/select/list.svelte
CHANGED
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: SelectListProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let select = selectContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, select.getListProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<div {...attrs}>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: SelectPositionerProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let select = selectContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, select.getPositionerProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<div {...attrs}>
|
package/dist/select/root.svelte
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
export interface SelectProps<T>
|
7
7
|
extends Assign<Omit<HtmlProps<'div'>, 'children'>, CreateSelectProps<T>> {
|
8
|
-
children?: Snippet<[
|
8
|
+
children?: Snippet<[select: CreateSelectReturn]>;
|
9
9
|
}
|
10
10
|
</script>
|
11
11
|
|
@@ -47,7 +47,7 @@
|
|
47
47
|
...props
|
48
48
|
}: SelectProps<T> = $props();
|
49
49
|
|
50
|
-
let
|
50
|
+
let select = createSelect({
|
51
51
|
id,
|
52
52
|
ids,
|
53
53
|
form,
|
@@ -78,11 +78,11 @@
|
|
78
78
|
scrollToIndexFn,
|
79
79
|
});
|
80
80
|
|
81
|
-
let attrs = $derived(mergeProps(props,
|
81
|
+
let attrs = $derived(mergeProps(props, select.getRootProps()));
|
82
82
|
|
83
|
-
selectContext.set(
|
83
|
+
selectContext.set(select);
|
84
84
|
</script>
|
85
85
|
|
86
86
|
<div {...attrs}>
|
87
|
-
{@render children?.(
|
87
|
+
{@render children?.(select)}
|
88
88
|
</div>
|
package/dist/select/select.d.ts
CHANGED
package/dist/select/select.js
CHANGED
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: SelectTriggerProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let select = selectContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, select.getTriggerProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<button type="button" {...attrs}>
|
@@ -10,16 +10,16 @@
|
|
10
10
|
|
11
11
|
let {children, placeholder, ...props}: SelectValueTextProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let select = selectContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, select.getValueTextProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<span {...attrs}>
|
19
19
|
{#if children}
|
20
20
|
{@render children?.()}
|
21
|
-
{:else if
|
22
|
-
{
|
21
|
+
{:else if select.value.length}
|
22
|
+
{select.valueAsString}
|
23
23
|
{:else}
|
24
24
|
{placeholder}
|
25
25
|
{/if}
|
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: SliderControlProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let slider = sliderContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, slider.getControlProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<div {...attrs}>
|
@@ -4,13 +4,13 @@ import { createUniqueId } from '../utils.svelte.js';
|
|
4
4
|
import * as slider from '@zag-js/slider';
|
5
5
|
import { normalizeProps, reflect, useMachine } from '@zag-js/svelte';
|
6
6
|
export function createSlider(props) {
|
7
|
-
const
|
8
|
-
const
|
7
|
+
const locale = getLocaleContext();
|
8
|
+
const environment = getEnvironmentContext();
|
9
9
|
const [state, send] = useMachine(slider.machine({
|
10
10
|
...props,
|
11
11
|
id: props.id ?? createUniqueId(),
|
12
|
-
dir:
|
13
|
-
getRootNode:
|
12
|
+
dir: locale?.dir,
|
13
|
+
getRootNode: environment?.getRootNode,
|
14
14
|
}));
|
15
15
|
const api = $derived(reflect(() => slider.connect(state, send, normalizeProps)));
|
16
16
|
return api;
|
@@ -10,11 +10,10 @@
|
|
10
10
|
|
11
11
|
let {...props}: SliderHiddenInputProps = $props();
|
12
12
|
|
13
|
-
let
|
14
|
-
|
13
|
+
let slider = sliderContext.get();
|
15
14
|
let thumbProps = sliderThumbPropsContext.get();
|
16
15
|
|
17
|
-
let attrs = $derived(mergeProps(props,
|
16
|
+
let attrs = $derived(mergeProps(props, slider.getHiddenInputProps(thumbProps)));
|
18
17
|
</script>
|
19
18
|
|
20
19
|
<input {...attrs} />
|
package/dist/slider/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export
|
1
|
+
export * as Slider from './slider.js';
|
2
2
|
export type { SliderControlProps } from './control.svelte';
|
3
3
|
export type { SliderHiddenInputProps } from './hidden-input.svelte';
|
4
4
|
export type { SliderLabelProps } from './label.svelte';
|
@@ -6,7 +6,6 @@ export type { SliderMarkerGroupProps } from './marker-group.svelte';
|
|
6
6
|
export type { SliderMarkerProps } from './marker.svelte';
|
7
7
|
export type { SliderRangeProps } from './range.svelte';
|
8
8
|
export type { SliderProps } from './root.svelte';
|
9
|
-
export * as Slider from './slider.js';
|
10
9
|
export type { SliderThumbProps } from './thumb.svelte';
|
11
10
|
export type { SliderTrackProps } from './track.svelte';
|
12
11
|
export type { SliderValueTextProps } from './value-text.svelte';
|
package/dist/slider/index.js
CHANGED
package/dist/slider/label.svelte
CHANGED
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: SliderLabelProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let slider = sliderContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, slider.getLabelProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<label {...attrs}>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
let {children, ...props}: SliderMarkerGroupProps = $props();
|
12
12
|
|
13
|
-
let
|
13
|
+
let slider = sliderContext.get();
|
14
14
|
|
15
|
-
let attrs = $derived(mergeProps(props,
|
15
|
+
let attrs = $derived(mergeProps(props, slider.getMarkerGroupProps()));
|
16
16
|
</script>
|
17
17
|
|
18
18
|
<div {...attrs}>
|
@@ -11,12 +11,12 @@
|
|
11
11
|
|
12
12
|
let {value, children, ...props}: SliderMarkerProps = $props();
|
13
13
|
|
14
|
-
let
|
14
|
+
let slider = sliderContext.get();
|
15
15
|
|
16
16
|
let attrs = $derived(
|
17
17
|
mergeProps(
|
18
18
|
props,
|
19
|
-
|
19
|
+
slider.getMarkerProps({
|
20
20
|
value,
|
21
21
|
}),
|
22
22
|
),
|