ui-ingredients 0.0.8 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +4 -3
- package/dist/accordion/context.svelte.d.ts +1 -1
- package/dist/accordion/context.svelte.js +1 -1
- package/dist/accordion/index.d.ts +3 -3
- package/dist/accordion/index.js +3 -3
- package/dist/accordion/item-content.svelte +9 -5
- package/dist/accordion/item-content.svelte.d.ts +2 -3
- package/dist/accordion/item-indicator.svelte +9 -5
- package/dist/accordion/item-indicator.svelte.d.ts +2 -3
- package/dist/accordion/item-trigger.svelte +10 -5
- package/dist/accordion/item-trigger.svelte.d.ts +2 -3
- package/dist/accordion/item.svelte +19 -6
- package/dist/accordion/item.svelte.d.ts +5 -4
- package/dist/accordion/root.svelte +10 -8
- package/dist/accordion/root.svelte.d.ts +3 -4
- package/dist/avatar/fallback.svelte +2 -3
- package/dist/avatar/fallback.svelte.d.ts +2 -3
- package/dist/avatar/image.svelte +2 -3
- package/dist/avatar/image.svelte.d.ts +2 -3
- package/dist/avatar/root.svelte +10 -8
- package/dist/avatar/root.svelte.d.ts +3 -4
- package/dist/carousel/index.d.ts +5 -5
- package/dist/carousel/index.js +5 -5
- package/dist/carousel/indicator-group.svelte +2 -3
- package/dist/carousel/indicator-group.svelte.d.ts +2 -3
- package/dist/carousel/indicator.svelte +2 -3
- package/dist/carousel/indicator.svelte.d.ts +2 -3
- package/dist/carousel/item-group.svelte +2 -3
- package/dist/carousel/item-group.svelte.d.ts +2 -3
- package/dist/carousel/item.svelte +10 -5
- package/dist/carousel/item.svelte.d.ts +5 -4
- package/dist/carousel/next-trigger.svelte +2 -3
- package/dist/carousel/next-trigger.svelte.d.ts +2 -3
- package/dist/carousel/prev-trigger.svelte +2 -3
- package/dist/carousel/prev-trigger.svelte.d.ts +2 -3
- package/dist/carousel/root.svelte +9 -7
- package/dist/carousel/root.svelte.d.ts +2 -3
- package/dist/carousel/viewport.svelte +2 -3
- package/dist/carousel/viewport.svelte.d.ts +2 -3
- package/dist/checkbox/control.svelte +2 -3
- package/dist/checkbox/control.svelte.d.ts +2 -3
- package/dist/checkbox/hidden-input.svelte +2 -3
- package/dist/checkbox/hidden-input.svelte.d.ts +2 -3
- package/dist/checkbox/index.d.ts +2 -2
- package/dist/checkbox/index.js +2 -2
- package/dist/checkbox/indicator.svelte +2 -3
- package/dist/checkbox/indicator.svelte.d.ts +2 -3
- package/dist/checkbox/label.svelte +2 -3
- package/dist/checkbox/label.svelte.d.ts +2 -3
- package/dist/checkbox/root.svelte +10 -8
- package/dist/checkbox/root.svelte.d.ts +3 -4
- package/dist/clipboard/control.svelte +2 -3
- package/dist/clipboard/control.svelte.d.ts +2 -3
- package/dist/clipboard/index.d.ts +1 -1
- package/dist/clipboard/index.js +1 -1
- package/dist/clipboard/indicator.svelte +2 -3
- package/dist/clipboard/indicator.svelte.d.ts +2 -3
- package/dist/clipboard/input.svelte +2 -3
- package/dist/clipboard/input.svelte.d.ts +2 -3
- package/dist/clipboard/label.svelte +2 -3
- package/dist/clipboard/label.svelte.d.ts +2 -3
- package/dist/clipboard/root.svelte +10 -8
- package/dist/clipboard/root.svelte.d.ts +3 -4
- package/dist/clipboard/trigger.svelte +2 -3
- package/dist/clipboard/trigger.svelte.d.ts +2 -3
- package/dist/collapsible/content.svelte +2 -3
- package/dist/collapsible/content.svelte.d.ts +2 -3
- package/dist/collapsible/index.d.ts +2 -2
- package/dist/collapsible/index.js +2 -2
- package/dist/collapsible/root.svelte +10 -8
- package/dist/collapsible/root.svelte.d.ts +3 -4
- package/dist/collapsible/trigger.svelte +2 -3
- package/dist/collapsible/trigger.svelte.d.ts +2 -3
- package/dist/combobox/clear-trigger.svelte +3 -3
- package/dist/combobox/clear-trigger.svelte.d.ts +2 -3
- package/dist/combobox/content.svelte +2 -3
- package/dist/combobox/content.svelte.d.ts +2 -3
- package/dist/combobox/context.svelte.js +3 -3
- package/dist/combobox/control.svelte +2 -3
- package/dist/combobox/control.svelte.d.ts +2 -3
- package/dist/combobox/index.d.ts +5 -5
- package/dist/combobox/index.js +5 -5
- package/dist/combobox/input.svelte +2 -3
- package/dist/combobox/input.svelte.d.ts +2 -3
- package/dist/combobox/item-group-label.svelte +7 -4
- package/dist/combobox/item-group-label.svelte.d.ts +2 -3
- package/dist/combobox/item-group.svelte +13 -7
- package/dist/combobox/item-group.svelte.d.ts +2 -3
- package/dist/combobox/item-indicator.svelte +9 -5
- package/dist/combobox/item-indicator.svelte.d.ts +2 -3
- package/dist/combobox/item-text.svelte +9 -5
- package/dist/combobox/item-text.svelte.d.ts +2 -3
- package/dist/combobox/item.svelte +19 -6
- package/dist/combobox/item.svelte.d.ts +5 -4
- package/dist/combobox/label.svelte +2 -3
- package/dist/combobox/label.svelte.d.ts +2 -3
- package/dist/combobox/list.svelte +2 -3
- package/dist/combobox/list.svelte.d.ts +2 -3
- package/dist/combobox/positioner.svelte +2 -3
- package/dist/combobox/positioner.svelte.d.ts +2 -3
- package/dist/combobox/root.svelte +10 -8
- package/dist/combobox/root.svelte.d.ts +3 -4
- package/dist/combobox/trigger.svelte +2 -3
- package/dist/combobox/trigger.svelte.d.ts +2 -3
- package/dist/dialog/backdrop.svelte +2 -3
- package/dist/dialog/backdrop.svelte.d.ts +2 -3
- package/dist/dialog/close-trigger.svelte +2 -3
- package/dist/dialog/close-trigger.svelte.d.ts +2 -3
- package/dist/dialog/content.svelte +2 -3
- package/dist/dialog/content.svelte.d.ts +2 -3
- package/dist/dialog/description.svelte +2 -3
- package/dist/dialog/description.svelte.d.ts +2 -3
- package/dist/dialog/index.d.ts +3 -3
- package/dist/dialog/index.js +3 -3
- package/dist/dialog/positioner.svelte +2 -3
- package/dist/dialog/positioner.svelte.d.ts +2 -3
- package/dist/dialog/root.svelte +11 -5
- package/dist/dialog/root.svelte.d.ts +2 -2
- package/dist/dialog/title.svelte +2 -3
- package/dist/dialog/title.svelte.d.ts +2 -3
- package/dist/dialog/trigger.svelte +2 -3
- package/dist/dialog/trigger.svelte.d.ts +2 -3
- package/dist/editable/area.svelte +20 -0
- package/dist/editable/area.svelte.d.ts +21 -0
- package/dist/editable/cancel-trigger.svelte +21 -0
- package/dist/editable/cancel-trigger.svelte.d.ts +21 -0
- package/dist/editable/context.svelte.d.ts +8 -0
- package/dist/editable/context.svelte.js +14 -0
- package/dist/editable/control.svelte +20 -0
- package/dist/editable/control.svelte.d.ts +21 -0
- package/dist/editable/edit-trigger.svelte +20 -0
- package/dist/editable/edit-trigger.svelte.d.ts +21 -0
- package/dist/editable/index.d.ts +9 -0
- package/dist/editable/index.js +9 -0
- package/dist/editable/input.svelte +18 -0
- package/dist/editable/input.svelte.d.ts +21 -0
- package/dist/editable/label.svelte +20 -0
- package/dist/editable/label.svelte.d.ts +21 -0
- package/dist/editable/preview.svelte +24 -0
- package/dist/editable/preview.svelte.d.ts +21 -0
- package/dist/editable/root.svelte +29 -0
- package/dist/editable/root.svelte.d.ts +24 -0
- package/dist/editable/submit-trigger.svelte +21 -0
- package/dist/editable/submit-trigger.svelte.d.ts +21 -0
- package/dist/hover-card/arrow-tip.svelte +2 -3
- package/dist/hover-card/arrow-tip.svelte.d.ts +2 -3
- package/dist/hover-card/arrow.svelte +2 -3
- package/dist/hover-card/arrow.svelte.d.ts +2 -3
- package/dist/hover-card/content.svelte +2 -3
- package/dist/hover-card/content.svelte.d.ts +2 -3
- package/dist/hover-card/index.d.ts +2 -2
- package/dist/hover-card/index.js +2 -2
- package/dist/hover-card/positioner.svelte +2 -3
- package/dist/hover-card/positioner.svelte.d.ts +2 -3
- package/dist/hover-card/root.svelte +12 -5
- package/dist/hover-card/root.svelte.d.ts +2 -2
- package/dist/hover-card/trigger.svelte +2 -3
- package/dist/hover-card/trigger.svelte.d.ts +2 -3
- package/dist/index.d.ts +6 -0
- package/dist/index.js +3 -0
- package/dist/number-input/control.svelte +3 -3
- package/dist/number-input/control.svelte.d.ts +2 -3
- package/dist/number-input/decrement-trigger.svelte +2 -3
- package/dist/number-input/decrement-trigger.svelte.d.ts +2 -3
- package/dist/number-input/increment-trigger.svelte +2 -3
- package/dist/number-input/increment-trigger.svelte.d.ts +2 -3
- package/dist/number-input/index.d.ts +2 -2
- package/dist/number-input/index.js +2 -2
- package/dist/number-input/input.svelte +2 -3
- package/dist/number-input/input.svelte.d.ts +2 -3
- package/dist/number-input/label.svelte +2 -3
- package/dist/number-input/label.svelte.d.ts +2 -3
- package/dist/number-input/root.svelte +10 -8
- package/dist/number-input/root.svelte.d.ts +3 -4
- package/dist/number-input/scrubber.svelte +2 -3
- package/dist/number-input/scrubber.svelte.d.ts +2 -3
- package/dist/pagination/ellipsis.svelte +2 -3
- package/dist/pagination/ellipsis.svelte.d.ts +2 -3
- package/dist/pagination/index.d.ts +3 -3
- package/dist/pagination/index.js +3 -3
- package/dist/pagination/item.svelte +2 -3
- package/dist/pagination/item.svelte.d.ts +2 -3
- package/dist/pagination/next-trigger.svelte +3 -3
- package/dist/pagination/next-trigger.svelte.d.ts +2 -3
- package/dist/pagination/prev-trigger.svelte +3 -3
- package/dist/pagination/prev-trigger.svelte.d.ts +2 -3
- package/dist/pagination/root.svelte +10 -8
- package/dist/pagination/root.svelte.d.ts +3 -4
- package/dist/pin-input/clear-trigger.svelte +3 -3
- package/dist/pin-input/clear-trigger.svelte.d.ts +2 -3
- package/dist/pin-input/hidden-input.svelte +2 -3
- package/dist/pin-input/hidden-input.svelte.d.ts +2 -3
- package/dist/pin-input/index.d.ts +2 -2
- package/dist/pin-input/index.js +2 -2
- package/dist/pin-input/input.svelte +3 -3
- package/dist/pin-input/input.svelte.d.ts +2 -3
- package/dist/pin-input/label.svelte +2 -3
- package/dist/pin-input/label.svelte.d.ts +2 -3
- package/dist/pin-input/root.svelte +10 -8
- package/dist/pin-input/root.svelte.d.ts +3 -4
- package/dist/popover/arrow-tip.svelte +2 -3
- package/dist/popover/arrow-tip.svelte.d.ts +2 -3
- package/dist/popover/arrow.svelte +2 -3
- package/dist/popover/arrow.svelte.d.ts +2 -3
- package/dist/popover/close-trigger.svelte +2 -3
- package/dist/popover/close-trigger.svelte.d.ts +2 -3
- package/dist/popover/content.svelte +2 -3
- package/dist/popover/content.svelte.d.ts +2 -3
- package/dist/popover/description.svelte +2 -3
- package/dist/popover/description.svelte.d.ts +2 -3
- package/dist/popover/index.d.ts +4 -4
- package/dist/popover/index.js +4 -4
- package/dist/popover/positioner.svelte +2 -3
- package/dist/popover/positioner.svelte.d.ts +2 -3
- package/dist/popover/root.svelte +11 -5
- package/dist/popover/root.svelte.d.ts +2 -2
- package/dist/popover/title.svelte +2 -3
- package/dist/popover/title.svelte.d.ts +2 -3
- package/dist/popover/trigger.svelte +2 -3
- package/dist/popover/trigger.svelte.d.ts +2 -3
- package/dist/portal/root.svelte +1 -1
- package/dist/presence/root.svelte +11 -4
- package/dist/presence/root.svelte.d.ts +2 -3
- package/dist/progress/circle-range.svelte +2 -3
- package/dist/progress/circle-range.svelte.d.ts +2 -3
- package/dist/progress/circle-track.svelte +2 -3
- package/dist/progress/circle-track.svelte.d.ts +2 -3
- package/dist/progress/circle.svelte +2 -3
- package/dist/progress/circle.svelte.d.ts +2 -3
- package/dist/progress/index.d.ts +3 -3
- package/dist/progress/index.js +3 -3
- package/dist/progress/label.svelte +2 -3
- package/dist/progress/label.svelte.d.ts +2 -3
- package/dist/progress/range.svelte +2 -3
- package/dist/progress/range.svelte.d.ts +2 -3
- package/dist/progress/root.svelte +10 -8
- package/dist/progress/root.svelte.d.ts +3 -4
- package/dist/progress/track.svelte +2 -3
- package/dist/progress/track.svelte.d.ts +2 -3
- package/dist/progress/value-text.svelte +2 -3
- package/dist/progress/value-text.svelte.d.ts +2 -3
- package/dist/qr-code/frame.svelte +20 -21
- package/dist/qr-code/frame.svelte.d.ts +2 -3
- package/dist/qr-code/overlay.svelte +20 -21
- package/dist/qr-code/overlay.svelte.d.ts +2 -3
- package/dist/qr-code/pattern.svelte +20 -21
- package/dist/qr-code/pattern.svelte.d.ts +2 -3
- package/dist/qr-code/root.svelte +50 -48
- package/dist/qr-code/root.svelte.d.ts +3 -4
- package/dist/radio-group/index.d.ts +3 -3
- package/dist/radio-group/index.js +3 -3
- package/dist/radio-group/indicator.svelte +2 -3
- package/dist/radio-group/indicator.svelte.d.ts +2 -3
- package/dist/radio-group/item-control.svelte +9 -5
- package/dist/radio-group/item-control.svelte.d.ts +2 -3
- package/dist/radio-group/item-hidden-input.svelte +10 -5
- package/dist/radio-group/item-hidden-input.svelte.d.ts +2 -3
- package/dist/radio-group/item-text.svelte +9 -5
- package/dist/radio-group/item-text.svelte.d.ts +2 -3
- package/dist/radio-group/item.svelte +28 -7
- package/dist/radio-group/item.svelte.d.ts +5 -4
- package/dist/radio-group/label.svelte +2 -3
- package/dist/radio-group/label.svelte.d.ts +2 -3
- package/dist/radio-group/root.svelte +10 -8
- package/dist/radio-group/root.svelte.d.ts +3 -4
- package/dist/rating-group/context.svelte.d.ts +10 -0
- package/dist/rating-group/context.svelte.js +20 -0
- package/dist/rating-group/control.svelte +20 -0
- package/dist/rating-group/control.svelte.d.ts +21 -0
- package/dist/rating-group/hidden-input.svelte +19 -0
- package/dist/rating-group/hidden-input.svelte.d.ts +21 -0
- package/dist/rating-group/index.d.ts +5 -0
- package/dist/rating-group/index.js +5 -0
- package/dist/rating-group/item.svelte +27 -0
- package/dist/rating-group/item.svelte.d.ts +24 -0
- package/dist/rating-group/label.svelte +20 -0
- package/dist/rating-group/label.svelte.d.ts +21 -0
- package/dist/rating-group/root.svelte +73 -0
- package/dist/rating-group/root.svelte.d.ts +24 -0
- package/dist/segment-group/index.d.ts +1 -0
- package/dist/segment-group/index.js +1 -0
- package/dist/select/clear-trigger.svelte +2 -3
- package/dist/select/clear-trigger.svelte.d.ts +2 -3
- package/dist/select/content.svelte +2 -3
- package/dist/select/content.svelte.d.ts +2 -3
- package/dist/select/context.svelte.js +3 -3
- package/dist/select/control.svelte +2 -3
- package/dist/select/control.svelte.d.ts +2 -3
- package/dist/select/hidden-select.svelte +2 -3
- package/dist/select/hidden-select.svelte.d.ts +2 -3
- package/dist/select/index.d.ts +9 -9
- package/dist/select/index.js +9 -9
- package/dist/select/indicator.svelte +2 -3
- package/dist/select/indicator.svelte.d.ts +2 -3
- package/dist/select/item-group-label.svelte +10 -5
- package/dist/select/item-group-label.svelte.d.ts +2 -3
- package/dist/select/item-group.svelte +13 -7
- package/dist/select/item-group.svelte.d.ts +2 -3
- package/dist/select/item-indicator.svelte +5 -4
- package/dist/select/item-indicator.svelte.d.ts +2 -3
- package/dist/select/item-text.svelte +5 -4
- package/dist/select/item-text.svelte.d.ts +2 -3
- package/dist/select/item.svelte +15 -5
- package/dist/select/item.svelte.d.ts +5 -4
- package/dist/select/label.svelte +2 -3
- package/dist/select/label.svelte.d.ts +2 -3
- package/dist/select/list.svelte +2 -3
- package/dist/select/list.svelte.d.ts +2 -3
- package/dist/select/positioner.svelte +2 -3
- package/dist/select/positioner.svelte.d.ts +2 -3
- package/dist/select/root.svelte +10 -8
- package/dist/select/root.svelte.d.ts +3 -4
- package/dist/select/trigger.svelte +2 -3
- package/dist/select/trigger.svelte.d.ts +2 -3
- package/dist/select/value-text.svelte +2 -3
- package/dist/select/value-text.svelte.d.ts +2 -3
- package/dist/slider/control.svelte +2 -3
- package/dist/slider/control.svelte.d.ts +2 -3
- package/dist/slider/hidden-input.svelte +5 -4
- package/dist/slider/hidden-input.svelte.d.ts +2 -3
- package/dist/slider/index.d.ts +3 -3
- package/dist/slider/index.js +3 -3
- package/dist/slider/label.svelte +2 -3
- package/dist/slider/label.svelte.d.ts +2 -3
- package/dist/slider/marker-group.svelte +2 -3
- package/dist/slider/marker-group.svelte.d.ts +2 -3
- package/dist/slider/marker.svelte +3 -3
- package/dist/slider/marker.svelte.d.ts +2 -3
- package/dist/slider/range.svelte +2 -3
- package/dist/slider/range.svelte.d.ts +2 -3
- package/dist/slider/root.svelte +10 -8
- package/dist/slider/root.svelte.d.ts +3 -4
- package/dist/slider/thumb.svelte +3 -3
- package/dist/slider/thumb.svelte.d.ts +2 -3
- package/dist/slider/track.svelte +2 -3
- package/dist/slider/track.svelte.d.ts +2 -3
- package/dist/slider/value-text.svelte +2 -3
- package/dist/slider/value-text.svelte.d.ts +2 -3
- package/dist/steps/content.svelte +3 -3
- package/dist/steps/content.svelte.d.ts +2 -3
- package/dist/steps/index.d.ts +4 -4
- package/dist/steps/index.js +4 -4
- package/dist/steps/indicator.svelte +5 -4
- package/dist/steps/indicator.svelte.d.ts +2 -3
- package/dist/steps/item.svelte +10 -5
- package/dist/steps/item.svelte.d.ts +5 -4
- package/dist/steps/list.svelte +2 -3
- package/dist/steps/list.svelte.d.ts +2 -3
- package/dist/steps/next-trigger.svelte +2 -3
- package/dist/steps/next-trigger.svelte.d.ts +2 -3
- package/dist/steps/prev-trigger.svelte +2 -3
- package/dist/steps/prev-trigger.svelte.d.ts +2 -3
- package/dist/steps/progress.svelte +2 -3
- package/dist/steps/progress.svelte.d.ts +2 -3
- package/dist/steps/root.svelte +10 -8
- package/dist/steps/root.svelte.d.ts +3 -4
- package/dist/steps/separator.svelte +5 -4
- package/dist/steps/separator.svelte.d.ts +2 -3
- package/dist/steps/trigger.svelte +2 -3
- package/dist/steps/trigger.svelte.d.ts +2 -3
- package/dist/switch/control.svelte +2 -3
- package/dist/switch/control.svelte.d.ts +2 -3
- package/dist/switch/hidden-input.svelte +2 -3
- package/dist/switch/hidden-input.svelte.d.ts +2 -3
- package/dist/switch/index.d.ts +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/switch/label.svelte +2 -3
- package/dist/switch/label.svelte.d.ts +2 -3
- package/dist/switch/root.svelte +10 -8
- package/dist/switch/root.svelte.d.ts +3 -4
- package/dist/switch/thumb.svelte +2 -3
- package/dist/switch/thumb.svelte.d.ts +2 -3
- package/dist/tabs/content.svelte +3 -3
- package/dist/tabs/content.svelte.d.ts +2 -3
- package/dist/tabs/list.svelte +2 -3
- package/dist/tabs/list.svelte.d.ts +2 -3
- package/dist/tabs/root.svelte +12 -7
- package/dist/tabs/root.svelte.d.ts +3 -4
- package/dist/tabs/trigger.svelte +6 -4
- package/dist/tabs/trigger.svelte.d.ts +2 -3
- package/dist/tags-input/clear-trigger.svelte +21 -21
- package/dist/tags-input/clear-trigger.svelte.d.ts +2 -3
- package/dist/tags-input/control.svelte +20 -21
- package/dist/tags-input/control.svelte.d.ts +2 -3
- package/dist/tags-input/hidden-input.svelte +18 -19
- package/dist/tags-input/hidden-input.svelte.d.ts +2 -3
- package/dist/tags-input/index.d.ts +5 -5
- package/dist/tags-input/index.js +5 -5
- package/dist/tags-input/input.svelte +18 -19
- package/dist/tags-input/input.svelte.d.ts +2 -3
- package/dist/tags-input/item-delete-trigger.svelte +27 -23
- package/dist/tags-input/item-delete-trigger.svelte.d.ts +2 -3
- package/dist/tags-input/item-input.svelte +24 -20
- package/dist/tags-input/item-input.svelte.d.ts +2 -3
- package/dist/tags-input/item-preview.svelte +26 -22
- package/dist/tags-input/item-preview.svelte.d.ts +2 -3
- package/dist/tags-input/item-text.svelte +26 -22
- package/dist/tags-input/item-text.svelte.d.ts +2 -3
- package/dist/tags-input/item.svelte +52 -37
- package/dist/tags-input/item.svelte.d.ts +5 -4
- package/dist/tags-input/label.svelte +20 -21
- package/dist/tags-input/label.svelte.d.ts +2 -3
- package/dist/tags-input/root.svelte +99 -97
- package/dist/tags-input/root.svelte.d.ts +3 -4
- package/dist/timer/action-trigger.svelte +24 -23
- package/dist/timer/action-trigger.svelte.d.ts +2 -3
- package/dist/timer/index.d.ts +4 -4
- package/dist/timer/index.js +4 -4
- package/dist/timer/item-label.svelte +23 -22
- package/dist/timer/item-label.svelte.d.ts +2 -3
- package/dist/timer/item-value.svelte +27 -26
- package/dist/timer/item-value.svelte.d.ts +2 -3
- package/dist/timer/item.svelte +24 -24
- package/dist/timer/item.svelte.d.ts +2 -3
- package/dist/timer/root.svelte +56 -54
- package/dist/timer/root.svelte.d.ts +3 -4
- package/dist/timer/separator.svelte +20 -21
- package/dist/timer/separator.svelte.d.ts +2 -3
- package/dist/toast/action-trigger.svelte +2 -3
- package/dist/toast/action-trigger.svelte.d.ts +2 -3
- package/dist/toast/close-trigger.svelte +2 -3
- package/dist/toast/close-trigger.svelte.d.ts +2 -3
- package/dist/toast/description.svelte +2 -3
- package/dist/toast/description.svelte.d.ts +2 -3
- package/dist/toast/root.svelte +7 -4
- package/dist/toast/root.svelte.d.ts +5 -3
- package/dist/toast/title.svelte +2 -3
- package/dist/toast/title.svelte.d.ts +2 -3
- package/dist/toast/toast.d.ts +3 -3
- package/dist/toast/toast.js +3 -3
- package/dist/toast/toaster.svelte +3 -3
- package/dist/toast/toaster.svelte.d.ts +2 -3
- package/dist/toggle-group/item.svelte +13 -6
- package/dist/toggle-group/item.svelte.d.ts +5 -4
- package/dist/toggle-group/root.svelte +10 -8
- package/dist/toggle-group/root.svelte.d.ts +3 -4
- package/dist/tooltip/arrow-tip.svelte +2 -3
- package/dist/tooltip/arrow-tip.svelte.d.ts +2 -3
- package/dist/tooltip/arrow.svelte +2 -3
- package/dist/tooltip/arrow.svelte.d.ts +2 -3
- package/dist/tooltip/content.svelte +2 -3
- package/dist/tooltip/content.svelte.d.ts +2 -3
- package/dist/tooltip/index.d.ts +2 -2
- package/dist/tooltip/index.js +2 -2
- package/dist/tooltip/positioner.svelte +2 -3
- package/dist/tooltip/positioner.svelte.d.ts +2 -3
- package/dist/tooltip/root.svelte +11 -5
- package/dist/tooltip/root.svelte.d.ts +2 -2
- package/dist/tooltip/trigger.svelte +2 -3
- package/dist/tooltip/trigger.svelte.d.ts +2 -3
- package/dist/types.d.ts +7 -4
- package/package.json +39 -39
- package/dist/editable/.gitkeep +0 -0
- package/dist/rating-group/.gitkeep +0 -0
@@ -4,9 +4,9 @@ import { getContext, setContext } from 'svelte';
|
|
4
4
|
export function createComboboxContext(props) {
|
5
5
|
const collection = $derived(combobox.collection({
|
6
6
|
items: props.items,
|
7
|
-
itemToValue: (item) =>
|
8
|
-
itemToString: (item) =>
|
9
|
-
isItemDisabled: (item) =>
|
7
|
+
itemToValue: (item) => props.itemToValue ? props.itemToValue(item) : String(item),
|
8
|
+
itemToString: (item) => props.itemToString ? props.itemToString(item) : String(item),
|
9
|
+
isItemDisabled: (item) => props.isItemDisabled ? props.isItemDisabled(item) : false,
|
10
10
|
}));
|
11
11
|
const [state, send] = useMachine(combobox.machine({
|
12
12
|
...props,
|
@@ -1,8 +1,7 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {
|
3
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
4
3
|
|
5
|
-
export interface ComboboxControlProps extends
|
4
|
+
export interface ComboboxControlProps extends SvelteHtmlProps<'div'> {}
|
6
5
|
</script>
|
7
6
|
|
8
7
|
<script lang="ts">
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
export interface ComboboxControlProps extends Assign<SvelteHTMLElements['div'], {}> {
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface ComboboxControlProps extends SvelteHtmlProps<'div'> {
|
4
3
|
}
|
5
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
6
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
package/dist/combobox/index.d.ts
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
export { default as ClearTrigger, type ComboboxClearTriggerProps } from './clear-trigger.svelte';
|
1
|
+
export { default as ClearTrigger, type ComboboxClearTriggerProps, } from './clear-trigger.svelte';
|
2
2
|
export { default as Content, type ComboboxContentProps } from './content.svelte';
|
3
3
|
export { default as Control, type ComboboxControlProps } from './control.svelte';
|
4
4
|
export { default as Input, type ComboboxInputProps } from './input.svelte';
|
5
5
|
export { default as ItemGroupLabel, type ComboboxItemGroupLabelProps, } from './item-group-label.svelte';
|
6
|
-
export { default as ItemGroup, type ComboboxItemGroupProps } from './item-group.svelte';
|
7
|
-
export { default as ItemIndicator, type ComboboxItemIndicatorProps } from './item-indicator.svelte';
|
8
|
-
export { default as ItemText, type ComboboxItemTextProps } from './item-text.svelte';
|
6
|
+
export { default as ItemGroup, type ComboboxItemGroupProps, } from './item-group.svelte';
|
7
|
+
export { default as ItemIndicator, type ComboboxItemIndicatorProps, } from './item-indicator.svelte';
|
8
|
+
export { default as ItemText, type ComboboxItemTextProps, } from './item-text.svelte';
|
9
9
|
export { default as Item, type ComboboxItemProps } from './item.svelte';
|
10
10
|
export { default as Label, type ComboboxLabelProps } from './label.svelte';
|
11
11
|
export { default as List, type ComboboxListProps } from './list.svelte';
|
12
|
-
export { default as Positioner, type ComboboxPositionerProps } from './positioner.svelte';
|
12
|
+
export { default as Positioner, type ComboboxPositionerProps, } from './positioner.svelte';
|
13
13
|
export { default as Root, type ComboboxProps } from './root.svelte';
|
14
14
|
export { default as Trigger, type ComboboxTriggerProps } from './trigger.svelte';
|
package/dist/combobox/index.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
export { default as ClearTrigger } from './clear-trigger.svelte';
|
1
|
+
export { default as ClearTrigger, } from './clear-trigger.svelte';
|
2
2
|
export { default as Content } from './content.svelte';
|
3
3
|
export { default as Control } from './control.svelte';
|
4
4
|
export { default as Input } from './input.svelte';
|
5
5
|
export { default as ItemGroupLabel, } from './item-group-label.svelte';
|
6
|
-
export { default as ItemGroup } from './item-group.svelte';
|
7
|
-
export { default as ItemIndicator } from './item-indicator.svelte';
|
8
|
-
export { default as ItemText } from './item-text.svelte';
|
6
|
+
export { default as ItemGroup, } from './item-group.svelte';
|
7
|
+
export { default as ItemIndicator, } from './item-indicator.svelte';
|
8
|
+
export { default as ItemText, } from './item-text.svelte';
|
9
9
|
export { default as Item } from './item.svelte';
|
10
10
|
export { default as Label } from './label.svelte';
|
11
11
|
export { default as List } from './list.svelte';
|
12
|
-
export { default as Positioner } from './positioner.svelte';
|
12
|
+
export { default as Positioner, } from './positioner.svelte';
|
13
13
|
export { default as Root } from './root.svelte';
|
14
14
|
export { default as Trigger } from './trigger.svelte';
|
@@ -1,8 +1,7 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {
|
3
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
4
3
|
|
5
|
-
export interface ComboboxInputProps extends
|
4
|
+
export interface ComboboxInputProps extends SvelteHtmlProps<'input'> {}
|
6
5
|
</script>
|
7
6
|
|
8
7
|
<script lang="ts">
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
export interface ComboboxInputProps extends Assign<SvelteHTMLElements['input'], {}> {
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface ComboboxInputProps extends SvelteHtmlProps<'input'> {
|
4
3
|
}
|
5
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
6
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -1,13 +1,16 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {
|
3
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
4
3
|
|
5
|
-
export interface ComboboxItemGroupLabelProps
|
4
|
+
export interface ComboboxItemGroupLabelProps
|
5
|
+
extends SvelteHtmlProps<'span'> {}
|
6
6
|
</script>
|
7
7
|
|
8
8
|
<script lang="ts">
|
9
9
|
import {mergeProps} from '@zag-js/svelte';
|
10
|
-
import {
|
10
|
+
import {
|
11
|
+
useComboboxContext,
|
12
|
+
useComboboxItemGroupContext,
|
13
|
+
} from './context.svelte.js';
|
11
14
|
|
12
15
|
let {children, ...props}: ComboboxItemGroupLabelProps = $props();
|
13
16
|
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
export interface ComboboxItemGroupLabelProps extends Assign<SvelteHTMLElements['span'], {}> {
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface ComboboxItemGroupLabelProps extends SvelteHtmlProps<'span'> {
|
4
3
|
}
|
5
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
6
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -1,24 +1,30 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {Assign,
|
2
|
+
import type {Assign, SvelteHtmlProps} from '../types.js';
|
3
3
|
import type {ItemGroupProps} from '@zag-js/combobox';
|
4
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
5
4
|
|
6
5
|
export interface ComboboxItemGroupProps
|
7
|
-
extends Assign<
|
6
|
+
extends Assign<SvelteHtmlProps<'div'>, Omit<ItemGroupProps, 'id'>> {}
|
8
7
|
</script>
|
9
8
|
|
10
9
|
<script lang="ts">
|
11
10
|
import {uuid} from '../utils.svelte.js';
|
12
11
|
import {mergeProps} from '@zag-js/svelte';
|
13
|
-
import {
|
12
|
+
import {
|
13
|
+
setComboboxItemGroupContext,
|
14
|
+
useComboboxContext,
|
15
|
+
} from './context.svelte.js';
|
14
16
|
|
15
|
-
let {id
|
17
|
+
let {id, children, ...props}: ComboboxItemGroupProps = $props();
|
16
18
|
|
17
19
|
let context = useComboboxContext();
|
18
20
|
|
19
|
-
let
|
21
|
+
let uid = uuid();
|
20
22
|
|
21
|
-
|
23
|
+
let attrs = $derived(
|
24
|
+
mergeProps(props, context.getItemGroupProps({id: id ?? uid})),
|
25
|
+
);
|
26
|
+
|
27
|
+
setComboboxItemGroupContext({id: id ?? uid});
|
22
28
|
</script>
|
23
29
|
|
24
30
|
<div {...attrs}>
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import type { Assign,
|
1
|
+
import type { Assign, SvelteHtmlProps } from '../types.js';
|
2
2
|
import type { ItemGroupProps } from '@zag-js/combobox';
|
3
|
-
|
4
|
-
export interface ComboboxItemGroupProps extends Assign<SvelteHTMLElements['div'], OptionalId<ItemGroupProps>> {
|
3
|
+
export interface ComboboxItemGroupProps extends Assign<SvelteHtmlProps<'div'>, Omit<ItemGroupProps, 'id'>> {
|
5
4
|
}
|
6
5
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
7
6
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -1,20 +1,24 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {
|
3
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
4
3
|
|
5
|
-
export interface ComboboxItemIndicatorProps extends
|
4
|
+
export interface ComboboxItemIndicatorProps extends SvelteHtmlProps<'span'> {}
|
6
5
|
</script>
|
7
6
|
|
8
7
|
<script lang="ts">
|
9
8
|
import {mergeProps} from '@zag-js/svelte';
|
10
|
-
import {
|
9
|
+
import {
|
10
|
+
useComboboxContext,
|
11
|
+
useComboboxItemContext,
|
12
|
+
} from './context.svelte.js';
|
11
13
|
|
12
14
|
let {children, ...props}: ComboboxItemIndicatorProps = $props();
|
13
15
|
|
14
16
|
let context = useComboboxContext();
|
15
17
|
let itemContext = useComboboxItemContext();
|
16
18
|
|
17
|
-
let attrs = $derived(
|
19
|
+
let attrs = $derived(
|
20
|
+
mergeProps(props, context.getItemIndicatorProps(itemContext)),
|
21
|
+
);
|
18
22
|
</script>
|
19
23
|
|
20
24
|
<span {...attrs}>
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
export interface ComboboxItemIndicatorProps extends Assign<SvelteHTMLElements['span'], {}> {
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface ComboboxItemIndicatorProps extends SvelteHtmlProps<'span'> {
|
4
3
|
}
|
5
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
6
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -1,20 +1,24 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {
|
3
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
4
3
|
|
5
|
-
export interface ComboboxItemTextProps extends
|
4
|
+
export interface ComboboxItemTextProps extends SvelteHtmlProps<'span'> {}
|
6
5
|
</script>
|
7
6
|
|
8
7
|
<script lang="ts">
|
9
8
|
import {mergeProps} from '@zag-js/svelte';
|
10
|
-
import {
|
9
|
+
import {
|
10
|
+
useComboboxContext,
|
11
|
+
useComboboxItemContext,
|
12
|
+
} from './context.svelte.js';
|
11
13
|
|
12
14
|
let {children, ...props}: ComboboxItemTextProps = $props();
|
13
15
|
|
14
16
|
let context = useComboboxContext();
|
15
17
|
let itemContext = useComboboxItemContext();
|
16
18
|
|
17
|
-
let attrs = $derived(
|
19
|
+
let attrs = $derived(
|
20
|
+
mergeProps(props, context.getItemTextProps(itemContext)),
|
21
|
+
);
|
18
22
|
</script>
|
19
23
|
|
20
24
|
<span {...attrs}>
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
export interface ComboboxItemTextProps extends Assign<SvelteHTMLElements['span'], {}> {
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface ComboboxItemTextProps extends SvelteHtmlProps<'span'> {
|
4
3
|
}
|
5
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
6
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -1,19 +1,32 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {Assign} from '../types.js';
|
3
|
-
import type {ItemProps} from '@zag-js/combobox';
|
4
|
-
import type {
|
2
|
+
import type {Assign, SvelteHtmlProps} from '../types.js';
|
3
|
+
import type {ItemProps, ItemState} from '@zag-js/combobox';
|
4
|
+
import type {Snippet} from 'svelte';
|
5
5
|
|
6
|
-
export interface ComboboxItemProps
|
6
|
+
export interface ComboboxItemProps
|
7
|
+
extends Assign<Omit<SvelteHtmlProps<'div'>, 'children'>, ItemProps> {
|
8
|
+
children?: Snippet<[state: ItemState]>;
|
9
|
+
}
|
7
10
|
</script>
|
8
11
|
|
9
12
|
<script lang="ts">
|
10
13
|
import {mergeProps} from '@zag-js/svelte';
|
11
|
-
import {
|
14
|
+
import {
|
15
|
+
setComboboxItemContext,
|
16
|
+
useComboboxContext,
|
17
|
+
} from './context.svelte.js';
|
12
18
|
|
13
19
|
let {children, item, persistFocus, ...props}: ComboboxItemProps = $props();
|
14
20
|
|
15
21
|
let context = useComboboxContext();
|
16
22
|
|
23
|
+
let state = $derived(
|
24
|
+
context.getItemState({
|
25
|
+
item,
|
26
|
+
persistFocus,
|
27
|
+
}),
|
28
|
+
);
|
29
|
+
|
17
30
|
let attrs = $derived(
|
18
31
|
mergeProps(
|
19
32
|
props,
|
@@ -31,5 +44,5 @@
|
|
31
44
|
</script>
|
32
45
|
|
33
46
|
<div {...attrs}>
|
34
|
-
{@render children?.()}
|
47
|
+
{@render children?.(state)}
|
35
48
|
</div>
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import type { Assign } from '../types.js';
|
2
|
-
import type { ItemProps } from '@zag-js/combobox';
|
3
|
-
import type {
|
4
|
-
export interface ComboboxItemProps extends Assign<
|
1
|
+
import type { Assign, SvelteHtmlProps } from '../types.js';
|
2
|
+
import type { ItemProps, ItemState } from '@zag-js/combobox';
|
3
|
+
import type { Snippet } from 'svelte';
|
4
|
+
export interface ComboboxItemProps extends Assign<Omit<SvelteHtmlProps<'div'>, 'children'>, ItemProps> {
|
5
|
+
children?: Snippet<[state: ItemState]>;
|
5
6
|
}
|
6
7
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
7
8
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -1,8 +1,7 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {
|
3
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
4
3
|
|
5
|
-
export interface ComboboxLabelProps extends
|
4
|
+
export interface ComboboxLabelProps extends SvelteHtmlProps<'label'> {}
|
6
5
|
</script>
|
7
6
|
|
8
7
|
<script lang="ts">
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
export interface ComboboxLabelProps extends Assign<SvelteHTMLElements['label'], {}> {
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface ComboboxLabelProps extends SvelteHtmlProps<'label'> {
|
4
3
|
}
|
5
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
6
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -1,8 +1,7 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {
|
3
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
4
3
|
|
5
|
-
export interface ComboboxListProps extends
|
4
|
+
export interface ComboboxListProps extends SvelteHtmlProps<'div'> {}
|
6
5
|
</script>
|
7
6
|
|
8
7
|
<script lang="ts">
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
export interface ComboboxListProps extends Assign<SvelteHTMLElements['div'], {}> {
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface ComboboxListProps extends SvelteHtmlProps<'div'> {
|
4
3
|
}
|
5
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
6
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -1,8 +1,7 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {
|
3
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
4
3
|
|
5
|
-
export interface ComboboxPositionerProps extends
|
4
|
+
export interface ComboboxPositionerProps extends SvelteHtmlProps<'div'> {}
|
6
5
|
</script>
|
7
6
|
|
8
7
|
<script lang="ts">
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
export interface ComboboxPositionerProps extends Assign<SvelteHTMLElements['div'], {}> {
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface ComboboxPositionerProps extends SvelteHtmlProps<'div'> {
|
4
3
|
}
|
5
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
6
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -1,15 +1,17 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {Assign,
|
2
|
+
import type {Assign, SvelteHtmlProps} from '../types.js';
|
3
3
|
import type {Snippet} from 'svelte';
|
4
|
-
import type {
|
5
|
-
|
4
|
+
import type {
|
5
|
+
CreateComboboxContextProps,
|
6
|
+
CreateComboboxContextReturn,
|
7
|
+
} from './context.svelte.js';
|
6
8
|
|
7
9
|
export interface ComboboxProps<T>
|
8
10
|
extends Assign<
|
9
|
-
|
10
|
-
|
11
|
+
Omit<SvelteHtmlProps<'div'>, 'children'>,
|
12
|
+
Omit<CreateComboboxContextProps<T>, 'id'>
|
11
13
|
> {
|
12
|
-
children?: Snippet<[CreateComboboxContextReturn]>;
|
14
|
+
children?: Snippet<[context: CreateComboboxContextReturn]>;
|
13
15
|
}
|
14
16
|
</script>
|
15
17
|
|
@@ -19,7 +21,7 @@
|
|
19
21
|
import {createComboboxContext, setComboboxContext} from './context.svelte.js';
|
20
22
|
|
21
23
|
let {
|
22
|
-
id
|
24
|
+
id,
|
23
25
|
ids,
|
24
26
|
dir,
|
25
27
|
name,
|
@@ -67,7 +69,7 @@
|
|
67
69
|
}: ComboboxProps<T> = $props();
|
68
70
|
|
69
71
|
let context = createComboboxContext({
|
70
|
-
id,
|
72
|
+
id: id ?? uuid(),
|
71
73
|
ids,
|
72
74
|
dir,
|
73
75
|
name,
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import type { Assign,
|
1
|
+
import type { Assign, SvelteHtmlProps } from '../types.js';
|
2
2
|
import type { Snippet } from 'svelte';
|
3
|
-
import type { SvelteHTMLElements } from 'svelte/elements';
|
4
3
|
import type { CreateComboboxContextProps, CreateComboboxContextReturn } from './context.svelte.js';
|
5
|
-
export interface ComboboxProps<T> extends Assign<
|
6
|
-
children?: Snippet<[CreateComboboxContextReturn]>;
|
4
|
+
export interface ComboboxProps<T> extends Assign<Omit<SvelteHtmlProps<'div'>, 'children'>, Omit<CreateComboboxContextProps<T>, 'id'>> {
|
5
|
+
children?: Snippet<[context: CreateComboboxContextReturn]>;
|
7
6
|
}
|
8
7
|
declare class __sveltets_Render<T> {
|
9
8
|
props(): ComboboxProps<T>;
|
@@ -1,8 +1,7 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {
|
3
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
4
3
|
|
5
|
-
export interface ComboboxTriggerProps extends
|
4
|
+
export interface ComboboxTriggerProps extends SvelteHtmlProps<'button'> {}
|
6
5
|
</script>
|
7
6
|
|
8
7
|
<script lang="ts">
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
export interface ComboboxTriggerProps extends Assign<SvelteHTMLElements['button'], {}> {
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface ComboboxTriggerProps extends SvelteHtmlProps<'button'> {
|
4
3
|
}
|
5
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
6
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -1,8 +1,7 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {
|
3
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
4
3
|
|
5
|
-
export interface DialogBackdropProps extends
|
4
|
+
export interface DialogBackdropProps extends SvelteHtmlProps<'div'> {}
|
6
5
|
</script>
|
7
6
|
|
8
7
|
<script lang="ts">
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
export interface DialogBackdropProps extends Assign<SvelteHTMLElements['div'], {}> {
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface DialogBackdropProps extends SvelteHtmlProps<'div'> {
|
4
3
|
}
|
5
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
6
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -1,8 +1,7 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {
|
3
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
4
3
|
|
5
|
-
export interface DialogCloseTriggerProps extends
|
4
|
+
export interface DialogCloseTriggerProps extends SvelteHtmlProps<'button'> {}
|
6
5
|
</script>
|
7
6
|
|
8
7
|
<script lang="ts">
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
export interface DialogCloseTriggerProps extends Assign<SvelteHTMLElements['button'], {}> {
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface DialogCloseTriggerProps extends SvelteHtmlProps<'button'> {
|
4
3
|
}
|
5
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
6
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -1,8 +1,7 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {
|
3
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
4
3
|
|
5
|
-
export interface DialogContentProps extends
|
4
|
+
export interface DialogContentProps extends SvelteHtmlProps<'div'> {}
|
6
5
|
</script>
|
7
6
|
|
8
7
|
<script lang="ts">
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
export interface DialogContentProps extends Assign<SvelteHTMLElements['div'], {}> {
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface DialogContentProps extends SvelteHtmlProps<'div'> {
|
4
3
|
}
|
5
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
6
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -1,8 +1,7 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {
|
3
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
4
3
|
|
5
|
-
export interface DialogDescriptionProps extends
|
4
|
+
export interface DialogDescriptionProps extends SvelteHtmlProps<'div'> {}
|
6
5
|
</script>
|
7
6
|
|
8
7
|
<script lang="ts">
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
export interface DialogDescriptionProps extends Assign<SvelteHTMLElements['div'], {}> {
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface DialogDescriptionProps extends SvelteHtmlProps<'div'> {
|
4
3
|
}
|
5
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
6
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
package/dist/dialog/index.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
export { default as Backdrop, type DialogBackdropProps } from './backdrop.svelte';
|
2
|
-
export { default as CloseTrigger, type DialogCloseTriggerProps } from './close-trigger.svelte';
|
2
|
+
export { default as CloseTrigger, type DialogCloseTriggerProps, } from './close-trigger.svelte';
|
3
3
|
export { default as Content, type DialogContentProps } from './content.svelte';
|
4
|
-
export { default as Description, type DialogDescriptionProps } from './description.svelte';
|
5
|
-
export { default as Positioner, type DialogPositionerProps } from './positioner.svelte';
|
4
|
+
export { default as Description, type DialogDescriptionProps, } from './description.svelte';
|
5
|
+
export { default as Positioner, type DialogPositionerProps, } from './positioner.svelte';
|
6
6
|
export { default as Root, type DialogProps } from './root.svelte';
|
7
7
|
export { default as Title, type DialogTitleProps } from './title.svelte';
|
8
8
|
export { default as Trigger, type DialogTriggerProps } from './trigger.svelte';
|
package/dist/dialog/index.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
export { default as Backdrop } from './backdrop.svelte';
|
2
|
-
export { default as CloseTrigger } from './close-trigger.svelte';
|
2
|
+
export { default as CloseTrigger, } from './close-trigger.svelte';
|
3
3
|
export { default as Content } from './content.svelte';
|
4
|
-
export { default as Description } from './description.svelte';
|
5
|
-
export { default as Positioner } from './positioner.svelte';
|
4
|
+
export { default as Description, } from './description.svelte';
|
5
|
+
export { default as Positioner, } from './positioner.svelte';
|
6
6
|
export { default as Root } from './root.svelte';
|
7
7
|
export { default as Title } from './title.svelte';
|
8
8
|
export { default as Trigger } from './trigger.svelte';
|
@@ -1,8 +1,7 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {
|
3
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
4
3
|
|
5
|
-
export interface DialogPositionerProps extends
|
4
|
+
export interface DialogPositionerProps extends SvelteHtmlProps<'div'> {}
|
6
5
|
</script>
|
7
6
|
|
8
7
|
<script lang="ts">
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
export interface DialogPositionerProps extends Assign<SvelteHTMLElements['div'], {}> {
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface DialogPositionerProps extends SvelteHtmlProps<'div'> {
|
4
3
|
}
|
5
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
6
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|