ui-ingredients 0.0.7 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +5 -5
- 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 +15 -0
- package/dist/index.js +10 -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/context.svelte.d.ts +8 -0
- package/dist/qr-code/context.svelte.js +14 -0
- package/dist/qr-code/frame.svelte +20 -0
- package/dist/qr-code/frame.svelte.d.ts +21 -0
- package/dist/qr-code/index.d.ts +4 -0
- package/dist/qr-code/index.js +4 -0
- package/dist/qr-code/overlay.svelte +20 -0
- package/dist/qr-code/overlay.svelte.d.ts +21 -0
- package/dist/qr-code/pattern.svelte +20 -0
- package/dist/qr-code/pattern.svelte.d.ts +21 -0
- package/dist/qr-code/root.svelte +50 -0
- package/dist/qr-code/root.svelte.d.ts +24 -0
- 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/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 -0
- package/dist/tags-input/clear-trigger.svelte.d.ts +21 -0
- package/dist/tags-input/context.svelte.d.ts +10 -0
- package/dist/tags-input/context.svelte.js +20 -0
- package/dist/tags-input/control.svelte +20 -0
- package/dist/tags-input/control.svelte.d.ts +21 -0
- package/dist/tags-input/hidden-input.svelte +18 -0
- package/dist/tags-input/hidden-input.svelte.d.ts +21 -0
- package/dist/tags-input/index.d.ts +11 -0
- package/dist/tags-input/index.js +11 -0
- package/dist/tags-input/input.svelte +18 -0
- package/dist/tags-input/input.svelte.d.ts +21 -0
- package/dist/tags-input/item-delete-trigger.svelte +27 -0
- package/dist/tags-input/item-delete-trigger.svelte.d.ts +21 -0
- package/dist/tags-input/item-input.svelte +24 -0
- package/dist/tags-input/item-input.svelte.d.ts +21 -0
- package/dist/tags-input/item-preview.svelte +26 -0
- package/dist/tags-input/item-preview.svelte.d.ts +21 -0
- package/dist/tags-input/item-text.svelte +26 -0
- package/dist/tags-input/item-text.svelte.d.ts +21 -0
- package/dist/tags-input/item.svelte +52 -0
- package/dist/tags-input/item.svelte.d.ts +24 -0
- package/dist/tags-input/label.svelte +20 -0
- package/dist/tags-input/label.svelte.d.ts +21 -0
- package/dist/tags-input/root.svelte +99 -0
- package/dist/tags-input/root.svelte.d.ts +24 -0
- package/dist/timer/action-trigger.svelte +24 -0
- package/dist/timer/action-trigger.svelte.d.ts +22 -0
- package/dist/timer/context.svelte.d.ts +10 -0
- package/dist/timer/context.svelte.js +20 -0
- package/dist/timer/index.d.ts +6 -0
- package/dist/timer/index.js +6 -0
- package/dist/timer/item-label.svelte +23 -0
- package/dist/timer/item-label.svelte.d.ts +21 -0
- package/dist/timer/item-value.svelte +27 -0
- package/dist/timer/item-value.svelte.d.ts +21 -0
- package/dist/timer/item.svelte +24 -0
- package/dist/timer/item.svelte.d.ts +22 -0
- package/dist/timer/root.svelte +56 -0
- package/dist/timer/root.svelte.d.ts +24 -0
- package/dist/timer/separator.svelte +20 -0
- package/dist/timer/separator.svelte.d.ts +21 -0
- 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 +1 -1
- package/dist/editable/.gitkeep +0 -0
- package/dist/qr-code/.gitkeep +0 -0
- package/dist/rating-group/.gitkeep +0 -0
- package/dist/tags-input/.gitkeep +0 -0
- package/dist/timer/.gitkeep +0 -0
@@ -0,0 +1,99 @@
|
|
1
|
+
<script lang="ts" context="module">
|
2
|
+
import type {Assign, SvelteHtmlProps} from '../types.js';
|
3
|
+
import type {Snippet} from 'svelte';
|
4
|
+
import type {
|
5
|
+
CreateTagsInputContextProps,
|
6
|
+
CreateTagsInputContextReturn,
|
7
|
+
} from './context.svelte.js';
|
8
|
+
|
9
|
+
export interface TagsInputProps
|
10
|
+
extends Assign<
|
11
|
+
Omit<SvelteHtmlProps<'div'>, 'children'>,
|
12
|
+
Omit<CreateTagsInputContextProps, 'id'>
|
13
|
+
> {
|
14
|
+
children?: Snippet<[context: CreateTagsInputContextReturn]>;
|
15
|
+
}
|
16
|
+
</script>
|
17
|
+
|
18
|
+
<script lang="ts">
|
19
|
+
import {uuid} from '../utils.svelte.js';
|
20
|
+
import {mergeProps} from '@zag-js/svelte';
|
21
|
+
import {
|
22
|
+
createTagsInputContext,
|
23
|
+
setTagsInputContext,
|
24
|
+
} from './context.svelte.js';
|
25
|
+
|
26
|
+
let {
|
27
|
+
id,
|
28
|
+
ids,
|
29
|
+
dir,
|
30
|
+
max,
|
31
|
+
form,
|
32
|
+
name,
|
33
|
+
value,
|
34
|
+
invalid,
|
35
|
+
disabled,
|
36
|
+
editable,
|
37
|
+
readOnly,
|
38
|
+
validate,
|
39
|
+
required,
|
40
|
+
delimiter,
|
41
|
+
autoFocus,
|
42
|
+
maxLength,
|
43
|
+
addOnPaste,
|
44
|
+
inputValue,
|
45
|
+
blurBehavior,
|
46
|
+
translations,
|
47
|
+
allowOverflow,
|
48
|
+
onValueChange,
|
49
|
+
onFocusOutside,
|
50
|
+
onValueInvalid,
|
51
|
+
onInteractOutside,
|
52
|
+
onHighlightChange,
|
53
|
+
onInputValueChange,
|
54
|
+
onPointerDownOutside,
|
55
|
+
getRootNode,
|
56
|
+
children,
|
57
|
+
...props
|
58
|
+
}: TagsInputProps = $props();
|
59
|
+
|
60
|
+
let context = createTagsInputContext({
|
61
|
+
id: id ?? uuid(),
|
62
|
+
ids,
|
63
|
+
dir,
|
64
|
+
max,
|
65
|
+
form,
|
66
|
+
name,
|
67
|
+
value: $state.snapshot(value),
|
68
|
+
invalid,
|
69
|
+
disabled,
|
70
|
+
editable,
|
71
|
+
readOnly,
|
72
|
+
validate,
|
73
|
+
required,
|
74
|
+
delimiter,
|
75
|
+
autoFocus,
|
76
|
+
maxLength,
|
77
|
+
addOnPaste,
|
78
|
+
inputValue,
|
79
|
+
blurBehavior,
|
80
|
+
translations,
|
81
|
+
allowOverflow,
|
82
|
+
onValueChange,
|
83
|
+
onFocusOutside,
|
84
|
+
onValueInvalid,
|
85
|
+
onInteractOutside,
|
86
|
+
onHighlightChange,
|
87
|
+
onInputValueChange,
|
88
|
+
onPointerDownOutside,
|
89
|
+
getRootNode,
|
90
|
+
});
|
91
|
+
|
92
|
+
let attrs = $derived(mergeProps(props, context.getRootProps()));
|
93
|
+
|
94
|
+
setTagsInputContext(context);
|
95
|
+
</script>
|
96
|
+
|
97
|
+
<div {...attrs}>
|
98
|
+
{@render children?.(context)}
|
99
|
+
</div>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import type { Assign, SvelteHtmlProps } from '../types.js';
|
2
|
+
import type { Snippet } from 'svelte';
|
3
|
+
import type { CreateTagsInputContextProps, CreateTagsInputContextReturn } from './context.svelte.js';
|
4
|
+
export interface TagsInputProps extends Assign<Omit<SvelteHtmlProps<'div'>, 'children'>, Omit<CreateTagsInputContextProps, 'id'>> {
|
5
|
+
children?: Snippet<[context: CreateTagsInputContextReturn]>;
|
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> {
|
8
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
9
|
+
$$bindings?: Bindings;
|
10
|
+
} & Exports;
|
11
|
+
(internal: unknown, props: Props & {
|
12
|
+
$$events?: Events;
|
13
|
+
$$slots?: Slots;
|
14
|
+
}): Exports & {
|
15
|
+
$set?: any;
|
16
|
+
$on?: any;
|
17
|
+
};
|
18
|
+
z_$$bindings?: Bindings;
|
19
|
+
}
|
20
|
+
declare const Root: $$__sveltets_2_IsomorphicComponent<TagsInputProps, {
|
21
|
+
[evt: string]: CustomEvent<any>;
|
22
|
+
}, {}, {}, "">;
|
23
|
+
type Root = InstanceType<typeof Root>;
|
24
|
+
export default Root;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<script lang="ts" context="module">
|
2
|
+
import type {Assign, SvelteHtmlProps} from '../types.js';
|
3
|
+
import type {ActionTriggerProps} from '@zag-js/timer';
|
4
|
+
|
5
|
+
export interface TimerActionTriggerProps
|
6
|
+
extends Assign<SvelteHtmlProps<'button'>, ActionTriggerProps> {}
|
7
|
+
</script>
|
8
|
+
|
9
|
+
<script lang="ts">
|
10
|
+
import {mergeProps} from '@zag-js/svelte';
|
11
|
+
import {useTimerContext} from './context.svelte.js';
|
12
|
+
|
13
|
+
let {action, children, ...props}: TimerActionTriggerProps = $props();
|
14
|
+
|
15
|
+
let context = useTimerContext();
|
16
|
+
|
17
|
+
let attrs = $derived(
|
18
|
+
mergeProps(props, context.getActionTriggerProps({action})),
|
19
|
+
);
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<button type="button" {...attrs}>
|
23
|
+
{@render children?.()}
|
24
|
+
</button>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import type { Assign, SvelteHtmlProps } from '../types.js';
|
2
|
+
import type { ActionTriggerProps } from '@zag-js/timer';
|
3
|
+
export interface TimerActionTriggerProps extends Assign<SvelteHtmlProps<'button'>, ActionTriggerProps> {
|
4
|
+
}
|
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> {
|
6
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
7
|
+
$$bindings?: Bindings;
|
8
|
+
} & Exports;
|
9
|
+
(internal: unknown, props: Props & {
|
10
|
+
$$events?: Events;
|
11
|
+
$$slots?: Slots;
|
12
|
+
}): Exports & {
|
13
|
+
$set?: any;
|
14
|
+
$on?: any;
|
15
|
+
};
|
16
|
+
z_$$bindings?: Bindings;
|
17
|
+
}
|
18
|
+
declare const ActionTrigger: $$__sveltets_2_IsomorphicComponent<TimerActionTriggerProps, {
|
19
|
+
[evt: string]: CustomEvent<any>;
|
20
|
+
}, {}, {}, "">;
|
21
|
+
type ActionTrigger = InstanceType<typeof ActionTrigger>;
|
22
|
+
export default ActionTrigger;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as timer from '@zag-js/timer';
|
2
|
+
export interface CreateTimerContextProps extends timer.Context {
|
3
|
+
}
|
4
|
+
export interface CreateTimerContextReturn extends ReturnType<typeof createTimerContext> {
|
5
|
+
}
|
6
|
+
export declare function createTimerContext(props: CreateTimerContextProps): any;
|
7
|
+
export declare function setTimerContext(value: CreateTimerContextReturn): void;
|
8
|
+
export declare function useTimerContext(): CreateTimerContextReturn;
|
9
|
+
export declare function setTimerItemContext(value: timer.ItemProps): void;
|
10
|
+
export declare function useTimerItemContext(): timer.ItemProps;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { normalizeProps, reflect, useMachine } from '@zag-js/svelte';
|
2
|
+
import * as timer from '@zag-js/timer';
|
3
|
+
import { getContext, setContext } from 'svelte';
|
4
|
+
export function createTimerContext(props) {
|
5
|
+
const [state, send] = useMachine(timer.machine(props));
|
6
|
+
const api = $derived(reflect(() => timer.connect(state, send, normalizeProps)));
|
7
|
+
return api;
|
8
|
+
}
|
9
|
+
export function setTimerContext(value) {
|
10
|
+
setContext('Timer', value);
|
11
|
+
}
|
12
|
+
export function useTimerContext() {
|
13
|
+
return getContext('Timer');
|
14
|
+
}
|
15
|
+
export function setTimerItemContext(value) {
|
16
|
+
setContext('TimerItem', value);
|
17
|
+
}
|
18
|
+
export function useTimerItemContext() {
|
19
|
+
return getContext('TimerItem');
|
20
|
+
}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export { default as ActionTrigger, type TimerActionTriggerProps, } from './action-trigger.svelte';
|
2
|
+
export { default as ItemLabel, type TimerItemLabelProps, } from './item-label.svelte';
|
3
|
+
export { default as ItemValue, type TimerItemValueProps, } from './item-value.svelte';
|
4
|
+
export { default as Item, type TimerItemProps } from './item.svelte';
|
5
|
+
export { default as Root, type TimerProps } from './root.svelte';
|
6
|
+
export { default as Separator, type TimerSeparatorProps, } from './separator.svelte';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export { default as ActionTrigger, } from './action-trigger.svelte';
|
2
|
+
export { default as ItemLabel, } from './item-label.svelte';
|
3
|
+
export { default as ItemValue, } from './item-value.svelte';
|
4
|
+
export { default as Item } from './item.svelte';
|
5
|
+
export { default as Root } from './root.svelte';
|
6
|
+
export { default as Separator, } from './separator.svelte';
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<script lang="ts" context="module">
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
3
|
+
|
4
|
+
export interface TimerItemLabelProps extends SvelteHtmlProps<'span'> {}
|
5
|
+
</script>
|
6
|
+
|
7
|
+
<script lang="ts">
|
8
|
+
import {mergeProps} from '@zag-js/svelte';
|
9
|
+
import {useTimerContext, useTimerItemContext} from './context.svelte.js';
|
10
|
+
|
11
|
+
let {children, ...props}: TimerItemLabelProps = $props();
|
12
|
+
|
13
|
+
let context = useTimerContext();
|
14
|
+
let itemContext = useTimerItemContext();
|
15
|
+
|
16
|
+
let attrs = $derived(
|
17
|
+
mergeProps(props, context.getItemLabelProps(itemContext)),
|
18
|
+
);
|
19
|
+
</script>
|
20
|
+
|
21
|
+
<span {...attrs}>
|
22
|
+
{@render children?.()}
|
23
|
+
</span>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface TimerItemLabelProps extends SvelteHtmlProps<'span'> {
|
3
|
+
}
|
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> {
|
5
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
6
|
+
$$bindings?: Bindings;
|
7
|
+
} & Exports;
|
8
|
+
(internal: unknown, props: Props & {
|
9
|
+
$$events?: Events;
|
10
|
+
$$slots?: Slots;
|
11
|
+
}): Exports & {
|
12
|
+
$set?: any;
|
13
|
+
$on?: any;
|
14
|
+
};
|
15
|
+
z_$$bindings?: Bindings;
|
16
|
+
}
|
17
|
+
declare const ItemLabel: $$__sveltets_2_IsomorphicComponent<TimerItemLabelProps, {
|
18
|
+
[evt: string]: CustomEvent<any>;
|
19
|
+
}, {}, {}, "">;
|
20
|
+
type ItemLabel = InstanceType<typeof ItemLabel>;
|
21
|
+
export default ItemLabel;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<script lang="ts" context="module">
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
3
|
+
|
4
|
+
export interface TimerItemValueProps extends SvelteHtmlProps<'span'> {}
|
5
|
+
</script>
|
6
|
+
|
7
|
+
<script lang="ts">
|
8
|
+
import {mergeProps} from '@zag-js/svelte';
|
9
|
+
import {useTimerContext, useTimerItemContext} from './context.svelte.js';
|
10
|
+
|
11
|
+
let {children, ...props}: TimerItemValueProps = $props();
|
12
|
+
|
13
|
+
let context = useTimerContext();
|
14
|
+
let itemContext = useTimerItemContext();
|
15
|
+
|
16
|
+
let attrs = $derived(
|
17
|
+
mergeProps(props, context.getItemValueProps(itemContext)),
|
18
|
+
);
|
19
|
+
</script>
|
20
|
+
|
21
|
+
<span {...attrs}>
|
22
|
+
{#if children}
|
23
|
+
{@render children?.()}
|
24
|
+
{:else}
|
25
|
+
{context.formattedTime[itemContext.type]}
|
26
|
+
{/if}
|
27
|
+
</span>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface TimerItemValueProps extends SvelteHtmlProps<'span'> {
|
3
|
+
}
|
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> {
|
5
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
6
|
+
$$bindings?: Bindings;
|
7
|
+
} & Exports;
|
8
|
+
(internal: unknown, props: Props & {
|
9
|
+
$$events?: Events;
|
10
|
+
$$slots?: Slots;
|
11
|
+
}): Exports & {
|
12
|
+
$set?: any;
|
13
|
+
$on?: any;
|
14
|
+
};
|
15
|
+
z_$$bindings?: Bindings;
|
16
|
+
}
|
17
|
+
declare const ItemValue: $$__sveltets_2_IsomorphicComponent<TimerItemValueProps, {
|
18
|
+
[evt: string]: CustomEvent<any>;
|
19
|
+
}, {}, {}, "">;
|
20
|
+
type ItemValue = InstanceType<typeof ItemValue>;
|
21
|
+
export default ItemValue;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<script lang="ts" context="module">
|
2
|
+
import type {Assign, SvelteHtmlProps} from '../types.js';
|
3
|
+
import type {ItemProps} from '@zag-js/timer';
|
4
|
+
|
5
|
+
export interface TimerItemProps
|
6
|
+
extends Assign<SvelteHtmlProps<'div'>, ItemProps> {}
|
7
|
+
</script>
|
8
|
+
|
9
|
+
<script lang="ts">
|
10
|
+
import {mergeProps} from '@zag-js/svelte';
|
11
|
+
import {setTimerItemContext, useTimerContext} from './context.svelte.js';
|
12
|
+
|
13
|
+
let {type, children, ...props}: TimerItemProps = $props();
|
14
|
+
|
15
|
+
let context = useTimerContext();
|
16
|
+
|
17
|
+
let attrs = $derived(mergeProps(props, context.getItemProps({type})));
|
18
|
+
|
19
|
+
setTimerItemContext({type});
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<div {...attrs}>
|
23
|
+
{@render children?.()}
|
24
|
+
</div>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import type { Assign, SvelteHtmlProps } from '../types.js';
|
2
|
+
import type { ItemProps } from '@zag-js/timer';
|
3
|
+
export interface TimerItemProps extends Assign<SvelteHtmlProps<'div'>, ItemProps> {
|
4
|
+
}
|
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> {
|
6
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
7
|
+
$$bindings?: Bindings;
|
8
|
+
} & Exports;
|
9
|
+
(internal: unknown, props: Props & {
|
10
|
+
$$events?: Events;
|
11
|
+
$$slots?: Slots;
|
12
|
+
}): Exports & {
|
13
|
+
$set?: any;
|
14
|
+
$on?: any;
|
15
|
+
};
|
16
|
+
z_$$bindings?: Bindings;
|
17
|
+
}
|
18
|
+
declare const Item: $$__sveltets_2_IsomorphicComponent<TimerItemProps, {
|
19
|
+
[evt: string]: CustomEvent<any>;
|
20
|
+
}, {}, {}, "">;
|
21
|
+
type Item = InstanceType<typeof Item>;
|
22
|
+
export default Item;
|
@@ -0,0 +1,56 @@
|
|
1
|
+
<script lang="ts" context="module">
|
2
|
+
import type {Assign, SvelteHtmlProps} from '../types.js';
|
3
|
+
import type {Snippet} from 'svelte';
|
4
|
+
import type {
|
5
|
+
CreateTimerContextProps,
|
6
|
+
CreateTimerContextReturn,
|
7
|
+
} from './context.svelte.js';
|
8
|
+
|
9
|
+
export interface TimerProps
|
10
|
+
extends Assign<
|
11
|
+
Omit<SvelteHtmlProps<'div'>, 'children'>,
|
12
|
+
Omit<CreateTimerContextProps, 'id'>
|
13
|
+
> {
|
14
|
+
children?: Snippet<[context: CreateTimerContextReturn]>;
|
15
|
+
}
|
16
|
+
</script>
|
17
|
+
|
18
|
+
<script lang="ts">
|
19
|
+
import {uuid} from '../utils.svelte.js';
|
20
|
+
import {mergeProps} from '@zag-js/svelte';
|
21
|
+
import {createTimerContext, setTimerContext} from './context.svelte.js';
|
22
|
+
|
23
|
+
let {
|
24
|
+
id,
|
25
|
+
startMs,
|
26
|
+
targetMs,
|
27
|
+
interval,
|
28
|
+
autoStart,
|
29
|
+
countdown,
|
30
|
+
onTick,
|
31
|
+
onComplete,
|
32
|
+
getRootNode,
|
33
|
+
children,
|
34
|
+
...props
|
35
|
+
}: TimerProps = $props();
|
36
|
+
|
37
|
+
let context = createTimerContext({
|
38
|
+
id: id ?? uuid(),
|
39
|
+
startMs,
|
40
|
+
targetMs,
|
41
|
+
interval,
|
42
|
+
autoStart,
|
43
|
+
countdown,
|
44
|
+
onTick,
|
45
|
+
onComplete,
|
46
|
+
getRootNode,
|
47
|
+
});
|
48
|
+
|
49
|
+
let attrs = $derived(mergeProps(props, context.getRootProps()));
|
50
|
+
|
51
|
+
setTimerContext(context);
|
52
|
+
</script>
|
53
|
+
|
54
|
+
<div {...attrs}>
|
55
|
+
{@render children?.(context)}
|
56
|
+
</div>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import type { Assign, SvelteHtmlProps } from '../types.js';
|
2
|
+
import type { Snippet } from 'svelte';
|
3
|
+
import type { CreateTimerContextProps, CreateTimerContextReturn } from './context.svelte.js';
|
4
|
+
export interface TimerProps extends Assign<Omit<SvelteHtmlProps<'div'>, 'children'>, Omit<CreateTimerContextProps, 'id'>> {
|
5
|
+
children?: Snippet<[context: CreateTimerContextReturn]>;
|
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> {
|
8
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
9
|
+
$$bindings?: Bindings;
|
10
|
+
} & Exports;
|
11
|
+
(internal: unknown, props: Props & {
|
12
|
+
$$events?: Events;
|
13
|
+
$$slots?: Slots;
|
14
|
+
}): Exports & {
|
15
|
+
$set?: any;
|
16
|
+
$on?: any;
|
17
|
+
};
|
18
|
+
z_$$bindings?: Bindings;
|
19
|
+
}
|
20
|
+
declare const Root: $$__sveltets_2_IsomorphicComponent<TimerProps, {
|
21
|
+
[evt: string]: CustomEvent<any>;
|
22
|
+
}, {}, {}, "">;
|
23
|
+
type Root = InstanceType<typeof Root>;
|
24
|
+
export default Root;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<script lang="ts" context="module">
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
3
|
+
|
4
|
+
export interface TimerSeparatorProps extends SvelteHtmlProps<'span'> {}
|
5
|
+
</script>
|
6
|
+
|
7
|
+
<script lang="ts">
|
8
|
+
import {mergeProps} from '@zag-js/svelte';
|
9
|
+
import {useTimerContext} from './context.svelte.js';
|
10
|
+
|
11
|
+
let {children, ...props}: TimerSeparatorProps = $props();
|
12
|
+
|
13
|
+
let context = useTimerContext();
|
14
|
+
|
15
|
+
let attrs = $derived(mergeProps(props, context.getSeparatorProps()));
|
16
|
+
</script>
|
17
|
+
|
18
|
+
<span {...attrs}>
|
19
|
+
{@render children?.()}
|
20
|
+
</span>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface TimerSeparatorProps extends SvelteHtmlProps<'span'> {
|
3
|
+
}
|
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> {
|
5
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
6
|
+
$$bindings?: Bindings;
|
7
|
+
} & Exports;
|
8
|
+
(internal: unknown, props: Props & {
|
9
|
+
$$events?: Events;
|
10
|
+
$$slots?: Slots;
|
11
|
+
}): Exports & {
|
12
|
+
$set?: any;
|
13
|
+
$on?: any;
|
14
|
+
};
|
15
|
+
z_$$bindings?: Bindings;
|
16
|
+
}
|
17
|
+
declare const Separator: $$__sveltets_2_IsomorphicComponent<TimerSeparatorProps, {
|
18
|
+
[evt: string]: CustomEvent<any>;
|
19
|
+
}, {}, {}, "">;
|
20
|
+
type Separator = InstanceType<typeof Separator>;
|
21
|
+
export default Separator;
|
@@ -1,12 +1,11 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface ToastActionTriggerProps extends
|
4
|
+
export interface ToastActionTriggerProps extends SvelteHtmlProps<'button'> {}
|
5
5
|
</script>
|
6
6
|
|
7
7
|
<script lang="ts">
|
8
8
|
import {mergeProps} from '@zag-js/svelte';
|
9
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
10
9
|
import {useToastContext} from './context.svelte.js';
|
11
10
|
|
12
11
|
let {children, ...props}: ToastActionTriggerProps = $props();
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import type {
|
2
|
-
export interface ToastActionTriggerProps extends
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface ToastActionTriggerProps extends SvelteHtmlProps<'button'> {
|
3
3
|
}
|
4
|
-
import type { SvelteHTMLElements } from 'svelte/elements';
|
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> & {
|
7
6
|
$$bindings?: Bindings;
|
@@ -1,12 +1,11 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface ToastCloseTriggerProps extends
|
4
|
+
export interface ToastCloseTriggerProps extends SvelteHtmlProps<'button'> {}
|
5
5
|
</script>
|
6
6
|
|
7
7
|
<script lang="ts">
|
8
8
|
import {mergeProps} from '@zag-js/svelte';
|
9
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
10
9
|
import {useToastContext} from './context.svelte.js';
|
11
10
|
|
12
11
|
let {children, ...props}: ToastCloseTriggerProps = $props();
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import type {
|
2
|
-
export interface ToastCloseTriggerProps extends
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface ToastCloseTriggerProps extends SvelteHtmlProps<'button'> {
|
3
3
|
}
|
4
|
-
import type { SvelteHTMLElements } from 'svelte/elements';
|
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> & {
|
7
6
|
$$bindings?: Bindings;
|
@@ -1,12 +1,11 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface ToastDescriptionProps extends
|
4
|
+
export interface ToastDescriptionProps extends SvelteHtmlProps<'div'> {}
|
5
5
|
</script>
|
6
6
|
|
7
7
|
<script lang="ts">
|
8
8
|
import {mergeProps} from '@zag-js/svelte';
|
9
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
10
9
|
import {useToastContext} from './context.svelte.js';
|
11
10
|
|
12
11
|
let {children, ...props}: ToastDescriptionProps = $props();
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import type {
|
2
|
-
export interface ToastDescriptionProps extends
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface ToastDescriptionProps extends SvelteHtmlProps<'div'> {
|
3
3
|
}
|
4
|
-
import type { SvelteHTMLElements } from 'svelte/elements';
|
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> & {
|
7
6
|
$$bindings?: Bindings;
|
package/dist/toast/root.svelte
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
3
|
+
import type {Snippet} from 'svelte';
|
4
|
+
import type {CreateToastContextReturn} from './context.svelte.js';
|
3
5
|
|
4
|
-
export interface ToastProps extends
|
6
|
+
export interface ToastProps extends Omit<SvelteHtmlProps<'div'>, 'children'> {
|
7
|
+
children?: Snippet<[context: CreateToastContextReturn]>;
|
8
|
+
}
|
5
9
|
</script>
|
6
10
|
|
7
11
|
<script lang="ts">
|
8
12
|
import {mergeProps} from '@zag-js/svelte';
|
9
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
10
13
|
import {useToastContext} from './context.svelte.js';
|
11
14
|
|
12
15
|
let {children, ...props}: ToastProps = $props();
|
@@ -19,7 +22,7 @@
|
|
19
22
|
<div {...attrs}>
|
20
23
|
<div {...context.getGhostBeforeProps()}></div>
|
21
24
|
|
22
|
-
{@render children?.()}
|
25
|
+
{@render children?.(context)}
|
23
26
|
|
24
27
|
<div {...context.getGhostAfterProps()}></div>
|
25
28
|
</div>
|
@@ -1,7 +1,9 @@
|
|
1
|
-
import type {
|
2
|
-
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
import type { Snippet } from 'svelte';
|
3
|
+
import type { CreateToastContextReturn } from './context.svelte.js';
|
4
|
+
export interface ToastProps extends Omit<SvelteHtmlProps<'div'>, 'children'> {
|
5
|
+
children?: Snippet<[context: CreateToastContextReturn]>;
|
3
6
|
}
|
4
|
-
import type { SvelteHTMLElements } from 'svelte/elements';
|
5
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> {
|
6
8
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
7
9
|
$$bindings?: Bindings;
|
package/dist/toast/title.svelte
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
<script lang="ts" context="module">
|
2
|
-
import type {
|
2
|
+
import type {SvelteHtmlProps} from '../types.js';
|
3
3
|
|
4
|
-
export interface ToastTitleProps extends
|
4
|
+
export interface ToastTitleProps extends SvelteHtmlProps<'div'> {}
|
5
5
|
</script>
|
6
6
|
|
7
7
|
<script lang="ts">
|
8
8
|
import {mergeProps} from '@zag-js/svelte';
|
9
|
-
import type {SvelteHTMLElements} from 'svelte/elements';
|
10
9
|
import {useToastContext} from './context.svelte.js';
|
11
10
|
|
12
11
|
let {children, ...props}: ToastTitleProps = $props();
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import type {
|
2
|
-
export interface ToastTitleProps extends
|
1
|
+
import type { SvelteHtmlProps } from '../types.js';
|
2
|
+
export interface ToastTitleProps extends SvelteHtmlProps<'div'> {
|
3
3
|
}
|
4
|
-
import type { SvelteHTMLElements } from 'svelte/elements';
|
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> & {
|
7
6
|
$$bindings?: Bindings;
|
package/dist/toast/toast.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
export { default as ActionTrigger, type ToastActionTriggerProps } from './action-trigger.svelte';
|
2
|
-
export { default as CloseTrigger, type ToastCloseTriggerProps } from './close-trigger.svelte';
|
3
|
-
export { default as Description, type ToastDescriptionProps } from './description.svelte';
|
1
|
+
export { default as ActionTrigger, type ToastActionTriggerProps, } from './action-trigger.svelte';
|
2
|
+
export { default as CloseTrigger, type ToastCloseTriggerProps, } from './close-trigger.svelte';
|
3
|
+
export { default as Description, type ToastDescriptionProps, } from './description.svelte';
|
4
4
|
export { default as Root, type ToastProps } from './root.svelte';
|
5
5
|
export { default as Title, type ToastTitleProps } from './title.svelte';
|