ui-ingredients 0.0.10 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -1
- package/dist/accordion/accordion.d.ts +5 -0
- package/dist/accordion/accordion.js +5 -0
- package/dist/accordion/context.svelte.d.ts +2 -2
- package/dist/accordion/context.svelte.js +2 -2
- package/dist/accordion/index.d.ts +7 -5
- package/dist/accordion/index.js +2 -5
- package/dist/accordion/item-content.svelte +28 -26
- package/dist/accordion/item-content.svelte.d.ts +2 -2
- package/dist/accordion/item-indicator.svelte +28 -26
- package/dist/accordion/item-indicator.svelte.d.ts +2 -2
- package/dist/accordion/item-trigger.svelte +28 -27
- package/dist/accordion/item-trigger.svelte.d.ts +2 -2
- package/dist/accordion/item.svelte +48 -48
- package/dist/accordion/item.svelte.d.ts +2 -2
- package/dist/accordion/root.svelte +68 -63
- package/dist/accordion/root.svelte.d.ts +2 -2
- package/dist/avatar/avatar.d.ts +3 -0
- package/dist/avatar/avatar.js +3 -0
- package/dist/avatar/fallback.svelte +20 -20
- package/dist/avatar/fallback.svelte.d.ts +2 -2
- package/dist/avatar/image.svelte +18 -18
- package/dist/avatar/image.svelte.d.ts +2 -2
- package/dist/avatar/index.d.ts +5 -3
- package/dist/avatar/index.js +2 -3
- package/dist/avatar/root.svelte +53 -48
- package/dist/avatar/root.svelte.d.ts +2 -2
- package/dist/carousel/carousel.d.ts +8 -0
- package/dist/carousel/carousel.js +8 -0
- package/dist/carousel/index.d.ts +10 -8
- package/dist/carousel/index.js +2 -8
- package/dist/carousel/indicator-group.svelte +21 -20
- package/dist/carousel/indicator-group.svelte.d.ts +2 -2
- package/dist/carousel/indicator.svelte +30 -30
- package/dist/carousel/indicator.svelte.d.ts +2 -2
- package/dist/carousel/item-group.svelte +20 -20
- package/dist/carousel/item-group.svelte.d.ts +2 -2
- package/dist/carousel/item.svelte +27 -27
- package/dist/carousel/item.svelte.d.ts +2 -2
- package/dist/carousel/next-trigger.svelte +21 -20
- package/dist/carousel/next-trigger.svelte.d.ts +2 -2
- package/dist/carousel/prev-trigger.svelte +21 -20
- package/dist/carousel/prev-trigger.svelte.d.ts +2 -2
- package/dist/carousel/root.svelte +65 -60
- package/dist/carousel/root.svelte.d.ts +2 -2
- package/dist/carousel/viewport.svelte +20 -20
- package/dist/carousel/viewport.svelte.d.ts +2 -2
- package/dist/checkbox/checkbox.d.ts +5 -0
- package/dist/checkbox/checkbox.js +5 -0
- package/dist/checkbox/control.svelte +20 -20
- package/dist/checkbox/control.svelte.d.ts +2 -2
- package/dist/checkbox/hidden-input.svelte +19 -18
- package/dist/checkbox/hidden-input.svelte.d.ts +2 -2
- package/dist/checkbox/index.d.ts +7 -5
- package/dist/checkbox/index.js +2 -5
- package/dist/checkbox/indicator.svelte +20 -20
- package/dist/checkbox/indicator.svelte.d.ts +2 -2
- package/dist/checkbox/label.svelte +20 -20
- package/dist/checkbox/label.svelte.d.ts +2 -2
- package/dist/checkbox/root.svelte +69 -64
- package/dist/checkbox/root.svelte.d.ts +2 -2
- package/dist/clipboard/clipboard.d.ts +6 -0
- package/dist/clipboard/clipboard.js +6 -0
- package/dist/clipboard/control.svelte +20 -20
- package/dist/clipboard/control.svelte.d.ts +2 -2
- package/dist/clipboard/index.d.ts +8 -6
- package/dist/clipboard/index.js +2 -6
- package/dist/clipboard/indicator.svelte +22 -22
- package/dist/clipboard/indicator.svelte.d.ts +2 -2
- package/dist/clipboard/input.svelte +18 -18
- package/dist/clipboard/input.svelte.d.ts +2 -2
- package/dist/clipboard/label.svelte +20 -20
- package/dist/clipboard/label.svelte.d.ts +2 -2
- package/dist/clipboard/root.svelte +56 -53
- package/dist/clipboard/root.svelte.d.ts +2 -2
- package/dist/clipboard/trigger.svelte +21 -20
- package/dist/clipboard/trigger.svelte.d.ts +2 -2
- package/dist/collapsible/collapsible.d.ts +3 -0
- package/dist/collapsible/collapsible.js +3 -0
- package/dist/collapsible/content.svelte +20 -20
- package/dist/collapsible/content.svelte.d.ts +2 -2
- package/dist/collapsible/index.d.ts +5 -3
- package/dist/collapsible/index.js +2 -3
- package/dist/collapsible/root.svelte +64 -59
- package/dist/collapsible/root.svelte.d.ts +2 -2
- package/dist/collapsible/trigger.svelte +19 -18
- package/dist/collapsible/trigger.svelte.d.ts +2 -2
- package/dist/combobox/clear-trigger.svelte +21 -21
- package/dist/combobox/clear-trigger.svelte.d.ts +2 -2
- package/dist/combobox/combobox.d.ts +14 -0
- package/dist/combobox/combobox.js +14 -0
- package/dist/combobox/content.svelte +20 -20
- package/dist/combobox/content.svelte.d.ts +2 -2
- package/dist/combobox/context.svelte.d.ts +4 -4
- package/dist/combobox/context.svelte.js +4 -4
- package/dist/combobox/control.svelte +20 -20
- package/dist/combobox/control.svelte.d.ts +2 -2
- package/dist/combobox/index.d.ts +16 -14
- package/dist/combobox/index.js +2 -14
- package/dist/combobox/input.svelte +18 -18
- package/dist/combobox/input.svelte.d.ts +2 -2
- package/dist/combobox/item-group-label.svelte +33 -32
- package/dist/combobox/item-group-label.svelte.d.ts +2 -2
- package/dist/combobox/item-group.svelte +32 -32
- package/dist/combobox/item-group.svelte.d.ts +2 -2
- package/dist/combobox/item-indicator.svelte +28 -26
- package/dist/combobox/item-indicator.svelte.d.ts +2 -2
- package/dist/combobox/item-text.svelte +29 -30
- package/dist/combobox/item-text.svelte.d.ts +2 -2
- package/dist/combobox/item.svelte +48 -48
- package/dist/combobox/item.svelte.d.ts +2 -2
- package/dist/combobox/label.svelte +20 -20
- package/dist/combobox/label.svelte.d.ts +2 -2
- package/dist/combobox/list.svelte +20 -20
- package/dist/combobox/list.svelte.d.ts +2 -2
- package/dist/combobox/positioner.svelte +20 -20
- package/dist/combobox/positioner.svelte.d.ts +2 -2
- package/dist/combobox/root.svelte +129 -124
- package/dist/combobox/root.svelte.d.ts +2 -2
- package/dist/combobox/trigger.svelte +20 -20
- package/dist/combobox/trigger.svelte.d.ts +2 -2
- package/dist/dialog/backdrop.svelte +20 -20
- package/dist/dialog/backdrop.svelte.d.ts +2 -2
- package/dist/dialog/close-trigger.svelte +21 -20
- package/dist/dialog/close-trigger.svelte.d.ts +2 -2
- package/dist/dialog/content.svelte +20 -20
- package/dist/dialog/content.svelte.d.ts +2 -2
- package/dist/dialog/description.svelte +20 -20
- package/dist/dialog/description.svelte.d.ts +2 -2
- package/dist/dialog/dialog.d.ts +8 -0
- package/dist/dialog/dialog.js +8 -0
- package/dist/dialog/index.d.ts +10 -8
- package/dist/dialog/index.js +2 -8
- package/dist/dialog/positioner.svelte +20 -20
- package/dist/dialog/positioner.svelte.d.ts +2 -2
- package/dist/dialog/root.svelte +35 -28
- package/dist/dialog/title.svelte +20 -20
- package/dist/dialog/title.svelte.d.ts +2 -2
- package/dist/dialog/trigger.svelte +20 -20
- package/dist/dialog/trigger.svelte.d.ts +2 -2
- package/dist/editable/area.svelte +20 -20
- package/dist/editable/area.svelte.d.ts +2 -2
- package/dist/editable/cancel-trigger.svelte +21 -21
- package/dist/editable/cancel-trigger.svelte.d.ts +2 -2
- package/dist/editable/control.svelte +20 -20
- package/dist/editable/control.svelte.d.ts +2 -2
- package/dist/editable/edit-trigger.svelte +21 -20
- package/dist/editable/edit-trigger.svelte.d.ts +2 -2
- package/dist/editable/editable.d.ts +9 -0
- package/dist/editable/editable.js +9 -0
- package/dist/editable/index.d.ts +11 -9
- package/dist/editable/index.js +2 -9
- package/dist/editable/input.svelte +18 -18
- package/dist/editable/input.svelte.d.ts +2 -2
- package/dist/editable/label.svelte +20 -20
- package/dist/editable/label.svelte.d.ts +2 -2
- package/dist/editable/preview.svelte +24 -24
- package/dist/editable/preview.svelte.d.ts +2 -2
- package/dist/editable/root.svelte +36 -29
- package/dist/editable/submit-trigger.svelte +21 -21
- package/dist/editable/submit-trigger.svelte.d.ts +2 -2
- package/dist/environment-provider/context.svelte.d.ts +14 -0
- package/dist/environment-provider/context.svelte.js +25 -0
- package/dist/environment-provider/index.d.ts +2 -0
- package/dist/environment-provider/index.js +2 -0
- package/dist/environment-provider/root.svelte +21 -0
- package/dist/environment-provider/root.svelte.d.ts +23 -0
- package/dist/hover-card/arrow-tip.svelte +20 -20
- package/dist/hover-card/arrow-tip.svelte.d.ts +2 -2
- package/dist/hover-card/arrow.svelte +20 -20
- package/dist/hover-card/arrow.svelte.d.ts +2 -2
- package/dist/hover-card/content.svelte +20 -20
- package/dist/hover-card/content.svelte.d.ts +2 -2
- package/dist/hover-card/hover-card.d.ts +6 -0
- package/dist/hover-card/hover-card.js +6 -0
- package/dist/hover-card/index.d.ts +8 -6
- package/dist/hover-card/index.js +2 -6
- package/dist/hover-card/positioner.svelte +21 -20
- package/dist/hover-card/positioner.svelte.d.ts +2 -2
- package/dist/hover-card/root.svelte +39 -32
- package/dist/hover-card/trigger.svelte +20 -20
- package/dist/hover-card/trigger.svelte.d.ts +2 -2
- package/dist/index.d.ts +31 -89
- package/dist/index.js +30 -61
- package/dist/locale-provider/context.svelte.d.ts +11 -0
- package/dist/locale-provider/context.svelte.js +23 -0
- package/dist/locale-provider/index.d.ts +2 -0
- package/dist/locale-provider/index.js +2 -0
- package/dist/locale-provider/root.svelte +20 -0
- package/dist/locale-provider/root.svelte.d.ts +23 -0
- package/dist/menu/arrow-tip.svelte.d.ts +26 -0
- package/dist/menu/arrow.svelte +0 -0
- package/dist/menu/arrow.svelte.d.ts +26 -0
- package/dist/menu/content.svelte +0 -0
- package/dist/menu/content.svelte.d.ts +26 -0
- package/dist/menu/context-trigger.svelte +0 -0
- package/dist/menu/context-trigger.svelte.d.ts +26 -0
- package/dist/menu/context.svelte.d.ts +10 -0
- package/dist/menu/context.svelte.js +20 -0
- package/dist/menu/index.d.ts +1 -0
- package/dist/menu/index.js +1 -0
- package/dist/menu/indicator.svelte +0 -0
- package/dist/menu/indicator.svelte.d.ts +26 -0
- package/dist/menu/item-group-label.svelte +0 -0
- package/dist/menu/item-group-label.svelte.d.ts +26 -0
- package/dist/menu/item-group.svelte +0 -0
- package/dist/menu/item-group.svelte.d.ts +26 -0
- package/dist/menu/item-indicator.svelte +0 -0
- package/dist/menu/item-indicator.svelte.d.ts +26 -0
- package/dist/menu/item-text.svelte +0 -0
- package/dist/menu/item-text.svelte.d.ts +26 -0
- package/dist/menu/item.svelte +0 -0
- package/dist/menu/item.svelte.d.ts +26 -0
- package/dist/menu/menu.d.ts +1 -0
- package/dist/menu/menu.js +1 -0
- package/dist/menu/option-item.svelte +0 -0
- package/dist/menu/option-item.svelte.d.ts +26 -0
- package/dist/menu/positioner.svelte +0 -0
- package/dist/menu/positioner.svelte.d.ts +26 -0
- package/dist/menu/root.svelte +0 -0
- package/dist/menu/root.svelte.d.ts +26 -0
- package/dist/menu/separator.svelte +0 -0
- package/dist/menu/separator.svelte.d.ts +26 -0
- package/dist/menu/trigger-item.svelte +0 -0
- package/dist/menu/trigger-item.svelte.d.ts +26 -0
- package/dist/menu/trigger.svelte +0 -0
- package/dist/menu/trigger.svelte.d.ts +26 -0
- package/dist/number-input/control.svelte +21 -21
- package/dist/number-input/control.svelte.d.ts +2 -2
- package/dist/number-input/decrement-trigger.svelte +21 -21
- package/dist/number-input/decrement-trigger.svelte.d.ts +2 -2
- package/dist/number-input/increment-trigger.svelte +21 -21
- package/dist/number-input/increment-trigger.svelte.d.ts +2 -2
- package/dist/number-input/index.d.ts +9 -7
- package/dist/number-input/index.js +2 -7
- package/dist/number-input/input.svelte +18 -18
- package/dist/number-input/input.svelte.d.ts +2 -2
- package/dist/number-input/label.svelte +20 -20
- package/dist/number-input/label.svelte.d.ts +2 -2
- package/dist/number-input/number-input.d.ts +7 -0
- package/dist/number-input/number-input.js +7 -0
- package/dist/number-input/root.svelte +100 -95
- package/dist/number-input/root.svelte.d.ts +2 -2
- package/dist/number-input/scrubber.svelte +21 -20
- package/dist/number-input/scrubber.svelte.d.ts +2 -2
- package/dist/pagination/ellipsis.svelte +22 -22
- package/dist/pagination/ellipsis.svelte.d.ts +2 -2
- package/dist/pagination/index.d.ts +7 -5
- package/dist/pagination/index.js +2 -5
- package/dist/pagination/item.svelte +30 -30
- package/dist/pagination/item.svelte.d.ts +2 -2
- package/dist/pagination/next-trigger.svelte +21 -21
- package/dist/pagination/next-trigger.svelte.d.ts +2 -2
- package/dist/pagination/pagination.d.ts +5 -0
- package/dist/pagination/pagination.js +5 -0
- package/dist/pagination/prev-trigger.svelte +21 -21
- package/dist/pagination/prev-trigger.svelte.d.ts +2 -2
- package/dist/pagination/root.svelte +70 -65
- package/dist/pagination/root.svelte.d.ts +2 -2
- package/dist/pin-input/clear-trigger.svelte +25 -25
- package/dist/pin-input/clear-trigger.svelte.d.ts +2 -2
- package/dist/pin-input/hidden-input.svelte +19 -18
- package/dist/pin-input/hidden-input.svelte.d.ts +2 -2
- package/dist/pin-input/index.d.ts +7 -5
- package/dist/pin-input/index.js +2 -5
- package/dist/pin-input/input.svelte +20 -20
- package/dist/pin-input/input.svelte.d.ts +2 -2
- package/dist/pin-input/label.svelte +20 -20
- package/dist/pin-input/label.svelte.d.ts +2 -2
- package/dist/pin-input/pin-input.d.ts +5 -0
- package/dist/pin-input/pin-input.js +5 -0
- package/dist/pin-input/root.svelte +89 -84
- package/dist/pin-input/root.svelte.d.ts +2 -2
- package/dist/popover/arrow-tip.svelte +20 -20
- package/dist/popover/arrow-tip.svelte.d.ts +2 -2
- package/dist/popover/arrow.svelte +20 -20
- package/dist/popover/arrow.svelte.d.ts +2 -2
- package/dist/popover/close-trigger.svelte +21 -20
- package/dist/popover/close-trigger.svelte.d.ts +2 -2
- package/dist/popover/content.svelte +20 -20
- package/dist/popover/content.svelte.d.ts +2 -2
- package/dist/popover/description.svelte +20 -20
- package/dist/popover/description.svelte.d.ts +2 -2
- package/dist/popover/index.d.ts +11 -9
- package/dist/popover/index.js +2 -9
- package/dist/popover/popover.d.ts +9 -0
- package/dist/popover/popover.js +9 -0
- package/dist/popover/positioner.svelte +20 -20
- package/dist/popover/positioner.svelte.d.ts +2 -2
- package/dist/popover/root.svelte +35 -28
- package/dist/popover/title.svelte +20 -20
- package/dist/popover/title.svelte.d.ts +2 -2
- package/dist/popover/trigger.svelte +20 -20
- package/dist/popover/trigger.svelte.d.ts +2 -2
- package/dist/portal/root.svelte +20 -20
- package/dist/presence/root.svelte +46 -46
- package/dist/presence/root.svelte.d.ts +2 -2
- package/dist/progress/circle-range.svelte +21 -20
- package/dist/progress/circle-range.svelte.d.ts +2 -2
- package/dist/progress/circle-track.svelte +21 -20
- package/dist/progress/circle-track.svelte.d.ts +2 -2
- package/dist/progress/circle.svelte +20 -20
- package/dist/progress/circle.svelte.d.ts +2 -2
- package/dist/progress/index.d.ts +10 -8
- package/dist/progress/index.js +2 -8
- package/dist/progress/label.svelte +20 -20
- package/dist/progress/label.svelte.d.ts +2 -2
- package/dist/progress/progress.d.ts +8 -0
- package/dist/progress/progress.js +8 -0
- package/dist/progress/range.svelte +20 -20
- package/dist/progress/range.svelte.d.ts +2 -2
- package/dist/progress/root.svelte +61 -56
- package/dist/progress/root.svelte.d.ts +2 -2
- package/dist/progress/track.svelte +20 -20
- package/dist/progress/track.svelte.d.ts +2 -2
- package/dist/progress/value-text.svelte +24 -24
- package/dist/progress/value-text.svelte.d.ts +2 -2
- package/dist/qr-code/frame.svelte +20 -20
- package/dist/qr-code/frame.svelte.d.ts +2 -2
- package/dist/qr-code/index.d.ts +6 -4
- package/dist/qr-code/index.js +2 -4
- package/dist/qr-code/overlay.svelte +20 -20
- package/dist/qr-code/overlay.svelte.d.ts +2 -2
- package/dist/qr-code/pattern.svelte +20 -20
- package/dist/qr-code/pattern.svelte.d.ts +2 -2
- package/dist/qr-code/qr-code.d.ts +4 -0
- package/dist/qr-code/qr-code.js +4 -0
- package/dist/qr-code/root.svelte +55 -50
- package/dist/qr-code/root.svelte.d.ts +2 -2
- package/dist/radio-group/context.svelte.d.ts +2 -2
- package/dist/radio-group/context.svelte.js +2 -2
- package/dist/radio-group/index.d.ts +9 -7
- package/dist/radio-group/index.js +2 -7
- package/dist/radio-group/indicator.svelte +21 -20
- package/dist/radio-group/indicator.svelte.d.ts +2 -2
- package/dist/radio-group/item-control.svelte +28 -26
- package/dist/radio-group/item-control.svelte.d.ts +2 -2
- package/dist/radio-group/item-hidden-input.svelte +26 -25
- package/dist/radio-group/item-hidden-input.svelte.d.ts +2 -2
- package/dist/radio-group/item-text.svelte +26 -26
- package/dist/radio-group/item-text.svelte.d.ts +2 -2
- package/dist/radio-group/item.svelte +58 -58
- package/dist/radio-group/item.svelte.d.ts +2 -2
- package/dist/radio-group/label.svelte +20 -20
- package/dist/radio-group/label.svelte.d.ts +2 -2
- package/dist/radio-group/radio-group.d.ts +7 -0
- package/dist/radio-group/radio-group.js +7 -0
- package/dist/radio-group/root.svelte +68 -63
- package/dist/radio-group/root.svelte.d.ts +2 -2
- package/dist/rating-group/context.svelte.d.ts +0 -2
- package/dist/rating-group/context.svelte.js +0 -6
- package/dist/rating-group/control.svelte +20 -20
- package/dist/rating-group/control.svelte.d.ts +2 -2
- package/dist/rating-group/hidden-input.svelte +19 -19
- package/dist/rating-group/hidden-input.svelte.d.ts +2 -2
- package/dist/rating-group/index.d.ts +7 -5
- package/dist/rating-group/index.js +2 -5
- package/dist/rating-group/item.svelte +27 -27
- package/dist/rating-group/item.svelte.d.ts +2 -2
- package/dist/rating-group/label.svelte +20 -20
- package/dist/rating-group/label.svelte.d.ts +2 -2
- package/dist/rating-group/rating-group.d.ts +5 -0
- package/dist/rating-group/rating-group.js +5 -0
- package/dist/rating-group/root.svelte +78 -73
- package/dist/rating-group/root.svelte.d.ts +2 -2
- package/dist/segment-group/anatomy.js +2 -0
- package/dist/segment-group/context.svelte.d.ts +10 -0
- package/dist/segment-group/context.svelte.js +43 -0
- package/dist/segment-group/index.d.ts +9 -1
- package/dist/segment-group/index.js +2 -1
- package/dist/segment-group/indicator.svelte +21 -0
- package/dist/segment-group/indicator.svelte.d.ts +21 -0
- package/dist/segment-group/item-control.svelte +28 -0
- package/dist/segment-group/item-control.svelte.d.ts +21 -0
- package/dist/segment-group/item-hidden-input.svelte +26 -0
- package/dist/segment-group/item-hidden-input.svelte.d.ts +21 -0
- package/dist/segment-group/item-text.svelte +26 -0
- package/dist/segment-group/item-text.svelte.d.ts +21 -0
- package/dist/segment-group/item.svelte +58 -0
- package/dist/segment-group/item.svelte.d.ts +24 -0
- package/dist/segment-group/label.svelte +20 -0
- package/dist/segment-group/label.svelte.d.ts +21 -0
- package/dist/segment-group/root.svelte +68 -0
- package/dist/segment-group/root.svelte.d.ts +24 -0
- package/dist/segment-group/segment-group.d.ts +7 -0
- package/dist/segment-group/segment-group.js +7 -0
- package/dist/select/clear-trigger.svelte +21 -20
- package/dist/select/clear-trigger.svelte.d.ts +2 -2
- package/dist/select/content.svelte +20 -20
- package/dist/select/content.svelte.d.ts +2 -2
- package/dist/select/context.svelte.d.ts +4 -7
- package/dist/select/context.svelte.js +4 -4
- package/dist/select/control.svelte +20 -20
- package/dist/select/control.svelte.d.ts +2 -2
- package/dist/select/hidden-select.svelte +21 -20
- package/dist/select/hidden-select.svelte.d.ts +2 -2
- package/dist/select/index.d.ts +18 -16
- package/dist/select/index.js +2 -16
- package/dist/select/indicator.svelte +20 -20
- package/dist/select/indicator.svelte.d.ts +2 -2
- package/dist/select/item-group-label.svelte +31 -29
- package/dist/select/item-group-label.svelte.d.ts +2 -2
- package/dist/select/item-group.svelte +32 -32
- package/dist/select/item-group.svelte.d.ts +2 -2
- package/dist/select/item-indicator.svelte +28 -23
- package/dist/select/item-indicator.svelte.d.ts +2 -2
- package/dist/select/item-text.svelte +29 -27
- package/dist/select/item-text.svelte.d.ts +2 -2
- package/dist/select/item.svelte +48 -45
- package/dist/select/item.svelte.d.ts +2 -2
- package/dist/select/label.svelte +20 -20
- package/dist/select/label.svelte.d.ts +2 -2
- package/dist/select/list.svelte +20 -20
- package/dist/select/list.svelte.d.ts +2 -2
- package/dist/select/positioner.svelte +20 -20
- package/dist/select/positioner.svelte.d.ts +2 -2
- package/dist/select/root.svelte +103 -98
- package/dist/select/root.svelte.d.ts +2 -2
- package/dist/select/select.d.ts +16 -0
- package/dist/select/select.js +16 -0
- package/dist/select/trigger.svelte +20 -20
- package/dist/select/trigger.svelte.d.ts +2 -2
- package/dist/select/value-text.svelte +26 -26
- package/dist/select/value-text.svelte.d.ts +2 -2
- package/dist/slider/context.svelte.d.ts +2 -2
- package/dist/slider/context.svelte.js +2 -2
- package/dist/slider/control.svelte +20 -20
- package/dist/slider/control.svelte.d.ts +2 -2
- package/dist/slider/hidden-input.svelte +26 -21
- package/dist/slider/hidden-input.svelte.d.ts +2 -2
- package/dist/slider/index.d.ts +12 -10
- package/dist/slider/index.js +2 -10
- package/dist/slider/label.svelte +20 -20
- package/dist/slider/label.svelte.d.ts +2 -2
- package/dist/slider/marker-group.svelte +20 -20
- package/dist/slider/marker-group.svelte.d.ts +2 -2
- package/dist/slider/marker.svelte +29 -29
- package/dist/slider/marker.svelte.d.ts +2 -2
- package/dist/slider/range.svelte +20 -20
- package/dist/slider/range.svelte.d.ts +2 -2
- package/dist/slider/root.svelte +91 -86
- package/dist/slider/root.svelte.d.ts +2 -2
- package/dist/slider/slider.d.ts +10 -0
- package/dist/slider/slider.js +10 -0
- package/dist/slider/thumb.svelte +38 -35
- package/dist/slider/thumb.svelte.d.ts +2 -2
- package/dist/slider/track.svelte +20 -20
- package/dist/slider/track.svelte.d.ts +2 -2
- package/dist/slider/value-text.svelte +24 -24
- package/dist/slider/value-text.svelte.d.ts +2 -2
- package/dist/steps/content.svelte +22 -22
- package/dist/steps/content.svelte.d.ts +2 -2
- package/dist/steps/context.svelte.d.ts +2 -2
- package/dist/steps/context.svelte.js +2 -2
- package/dist/steps/index.d.ts +12 -10
- package/dist/steps/index.js +2 -10
- package/dist/steps/indicator.svelte +22 -23
- package/dist/steps/indicator.svelte.d.ts +2 -2
- package/dist/steps/item.svelte +29 -29
- package/dist/steps/item.svelte.d.ts +2 -2
- package/dist/steps/list.svelte +20 -20
- package/dist/steps/list.svelte.d.ts +2 -2
- package/dist/steps/next-trigger.svelte +21 -20
- package/dist/steps/next-trigger.svelte.d.ts +2 -2
- package/dist/steps/prev-trigger.svelte +21 -20
- package/dist/steps/prev-trigger.svelte.d.ts +2 -2
- package/dist/steps/progress.svelte +20 -20
- package/dist/steps/progress.svelte.d.ts +2 -2
- package/dist/steps/root.svelte +62 -58
- package/dist/steps/root.svelte.d.ts +2 -2
- package/dist/steps/separator.svelte +22 -23
- package/dist/steps/separator.svelte.d.ts +2 -2
- package/dist/steps/steps.d.ts +10 -0
- package/dist/steps/steps.js +10 -0
- package/dist/steps/trigger.svelte +22 -21
- package/dist/steps/trigger.svelte.d.ts +2 -2
- package/dist/switch/control.svelte +20 -20
- package/dist/switch/control.svelte.d.ts +2 -2
- package/dist/switch/hidden-input.svelte +19 -18
- package/dist/switch/hidden-input.svelte.d.ts +2 -2
- package/dist/switch/index.d.ts +7 -5
- package/dist/switch/index.js +2 -5
- package/dist/switch/label.svelte +20 -20
- package/dist/switch/label.svelte.d.ts +2 -2
- package/dist/switch/root.svelte +71 -66
- package/dist/switch/root.svelte.d.ts +2 -2
- package/dist/switch/switch.d.ts +5 -0
- package/dist/switch/switch.js +5 -0
- package/dist/switch/thumb.svelte +20 -20
- package/dist/switch/thumb.svelte.d.ts +2 -2
- package/dist/tabs/content.svelte +22 -22
- package/dist/tabs/content.svelte.d.ts +2 -2
- package/dist/tabs/index.d.ts +6 -4
- package/dist/tabs/index.js +2 -4
- package/dist/tabs/list.svelte +20 -20
- package/dist/tabs/list.svelte.d.ts +2 -2
- package/dist/tabs/root.svelte +67 -62
- package/dist/tabs/root.svelte.d.ts +2 -2
- package/dist/tabs/tabs.d.ts +4 -0
- package/dist/tabs/tabs.js +4 -0
- package/dist/tabs/trigger.svelte +24 -24
- package/dist/tabs/trigger.svelte.d.ts +2 -2
- package/dist/tags-input/clear-trigger.svelte +21 -21
- package/dist/tags-input/clear-trigger.svelte.d.ts +2 -2
- package/dist/tags-input/context.svelte.d.ts +2 -2
- package/dist/tags-input/context.svelte.js +2 -2
- package/dist/tags-input/control.svelte +20 -20
- package/dist/tags-input/control.svelte.d.ts +2 -2
- package/dist/tags-input/hidden-input.svelte +19 -18
- package/dist/tags-input/hidden-input.svelte.d.ts +2 -2
- package/dist/tags-input/index.d.ts +13 -11
- package/dist/tags-input/index.js +2 -11
- package/dist/tags-input/input.svelte +18 -18
- package/dist/tags-input/input.svelte.d.ts +2 -2
- package/dist/tags-input/item-delete-trigger.svelte +28 -27
- package/dist/tags-input/item-delete-trigger.svelte.d.ts +2 -2
- package/dist/tags-input/item-input.svelte +24 -24
- package/dist/tags-input/item-input.svelte.d.ts +2 -2
- package/dist/tags-input/item-preview.svelte +28 -26
- package/dist/tags-input/item-preview.svelte.d.ts +2 -2
- package/dist/tags-input/item-text.svelte +25 -26
- package/dist/tags-input/item-text.svelte.d.ts +2 -2
- package/dist/tags-input/item.svelte +58 -52
- package/dist/tags-input/item.svelte.d.ts +2 -2
- package/dist/tags-input/label.svelte +20 -20
- package/dist/tags-input/label.svelte.d.ts +2 -2
- package/dist/tags-input/root.svelte +104 -99
- package/dist/tags-input/root.svelte.d.ts +2 -2
- package/dist/tags-input/tags-input.d.ts +11 -0
- package/dist/tags-input/tags-input.js +11 -0
- package/dist/timer/action-trigger.svelte +24 -24
- package/dist/timer/action-trigger.svelte.d.ts +2 -2
- package/dist/timer/context.svelte.d.ts +2 -2
- package/dist/timer/context.svelte.js +2 -2
- package/dist/timer/index.d.ts +8 -6
- package/dist/timer/index.js +2 -6
- package/dist/timer/item-label.svelte +22 -23
- package/dist/timer/item-label.svelte.d.ts +2 -2
- package/dist/timer/item-value.svelte +26 -27
- package/dist/timer/item-value.svelte.d.ts +2 -2
- package/dist/timer/item.svelte +24 -24
- package/dist/timer/item.svelte.d.ts +2 -2
- package/dist/timer/root.svelte +59 -56
- package/dist/timer/root.svelte.d.ts +2 -2
- package/dist/timer/separator.svelte +20 -20
- package/dist/timer/separator.svelte.d.ts +2 -2
- package/dist/timer/timer.d.ts +6 -0
- package/dist/timer/timer.js +6 -0
- package/dist/toast/action-trigger.svelte +21 -20
- package/dist/toast/action-trigger.svelte.d.ts +2 -2
- package/dist/toast/close-trigger.svelte +21 -20
- package/dist/toast/close-trigger.svelte.d.ts +2 -2
- package/dist/toast/create-toaster.svelte.js +12 -1
- package/dist/toast/description.svelte +24 -24
- package/dist/toast/description.svelte.d.ts +2 -2
- package/dist/toast/index.d.ts +6 -1
- package/dist/toast/index.js +6 -0
- package/dist/toast/root.svelte +29 -28
- package/dist/toast/root.svelte.d.ts +2 -2
- package/dist/toast/title.svelte +24 -24
- package/dist/toast/title.svelte.d.ts +2 -2
- package/dist/toast/toaster.svelte +40 -40
- package/dist/toast/toaster.svelte.d.ts +2 -2
- package/dist/toggle-group/index.d.ts +4 -2
- package/dist/toggle-group/index.js +2 -2
- package/dist/toggle-group/item.svelte +29 -29
- package/dist/toggle-group/item.svelte.d.ts +2 -2
- package/dist/toggle-group/root.svelte +68 -63
- package/dist/toggle-group/root.svelte.d.ts +2 -2
- package/dist/toggle-group/toggle-group.d.ts +2 -0
- package/dist/toggle-group/toggle-group.js +2 -0
- package/dist/tooltip/arrow-tip.svelte +20 -20
- package/dist/tooltip/arrow-tip.svelte.d.ts +2 -2
- package/dist/tooltip/arrow.svelte +20 -20
- package/dist/tooltip/arrow.svelte.d.ts +2 -2
- package/dist/tooltip/content.svelte +20 -20
- package/dist/tooltip/content.svelte.d.ts +2 -2
- package/dist/tooltip/index.d.ts +8 -6
- package/dist/tooltip/index.js +2 -6
- package/dist/tooltip/positioner.svelte +20 -20
- package/dist/tooltip/positioner.svelte.d.ts +2 -2
- package/dist/tooltip/root.svelte +35 -28
- package/dist/tooltip/tooltip.d.ts +6 -0
- package/dist/tooltip/tooltip.js +6 -0
- package/dist/tooltip/trigger.svelte +20 -20
- package/dist/tooltip/trigger.svelte.d.ts +2 -2
- package/dist/tree-view/.gitkeep +0 -0
- package/dist/types.d.ts +6 -2
- package/package.json +4 -2
- /package/dist/menu/{.gitkeep → arrow-tip.svelte} +0 -0
@@ -1,20 +1,21 @@
|
|
1
|
-
<script lang="ts" context="module">
|
2
|
-
import type {
|
3
|
-
|
4
|
-
export interface HoverCardPositionerProps
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
import {
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
1
|
+
<script lang="ts" context="module">
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
|
+
|
4
|
+
export interface HoverCardPositionerProps
|
5
|
+
extends HtmlIngredientProps<'div'> {}
|
6
|
+
</script>
|
7
|
+
|
8
|
+
<script lang="ts">
|
9
|
+
import {mergeProps} from '@zag-js/svelte';
|
10
|
+
import {useHoverCardContext} from './context.svelte.js';
|
11
|
+
|
12
|
+
let {children, ...props}: HoverCardPositionerProps = $props();
|
13
|
+
|
14
|
+
let context = useHoverCardContext();
|
15
|
+
|
16
|
+
let attrs = $derived(mergeProps(props, context.getPositionerProps()));
|
17
|
+
</script>
|
18
|
+
|
19
|
+
<div {...attrs}>
|
20
|
+
{@render children?.()}
|
21
|
+
</div>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
export interface HoverCardPositionerProps extends
|
1
|
+
import type { HtmlIngredientProps } from '../types.js';
|
2
|
+
export interface HoverCardPositionerProps extends HtmlIngredientProps<'div'> {
|
3
3
|
}
|
4
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
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
@@ -1,32 +1,39 @@
|
|
1
|
-
<script lang="ts" context="module">
|
2
|
-
import type {Snippet} from 'svelte';
|
3
|
-
import type {
|
4
|
-
CreateHoverCardContextProps,
|
5
|
-
CreateHoverCardContextReturn,
|
6
|
-
} from './context.svelte.js';
|
7
|
-
|
8
|
-
export interface HoverCardProps
|
9
|
-
extends Omit<CreateHoverCardContextProps, 'id'> {
|
10
|
-
id?: string | null;
|
11
|
-
children?: Snippet<[CreateHoverCardContextReturn]>;
|
12
|
-
}
|
13
|
-
</script>
|
14
|
-
|
15
|
-
<script lang="ts">
|
16
|
-
import {
|
17
|
-
import {
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
let
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
1
|
+
<script lang="ts" context="module">
|
2
|
+
import type {Snippet} from 'svelte';
|
3
|
+
import type {
|
4
|
+
CreateHoverCardContextProps,
|
5
|
+
CreateHoverCardContextReturn,
|
6
|
+
} from './context.svelte.js';
|
7
|
+
|
8
|
+
export interface HoverCardProps
|
9
|
+
extends Omit<CreateHoverCardContextProps, 'id'> {
|
10
|
+
id?: string | null;
|
11
|
+
children?: Snippet<[CreateHoverCardContextReturn]>;
|
12
|
+
}
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script lang="ts">
|
16
|
+
import {useEnvironmentContext} from '../environment-provider/index.js';
|
17
|
+
import {useLocaleContext} from '../locale-provider/index.js';
|
18
|
+
import {uuid} from '../utils.svelte.js';
|
19
|
+
import {
|
20
|
+
createHoverCardContext,
|
21
|
+
setHoverCardContext,
|
22
|
+
} from './context.svelte.js';
|
23
|
+
|
24
|
+
let {id, dir, getRootNode, children, ...props}: HoverCardProps = $props();
|
25
|
+
|
26
|
+
let localeContext = useLocaleContext();
|
27
|
+
let environmentContext = useEnvironmentContext();
|
28
|
+
|
29
|
+
let context = createHoverCardContext({
|
30
|
+
id: id ?? uuid(),
|
31
|
+
dir: dir ?? localeContext?.dir,
|
32
|
+
getRootNode: getRootNode ?? environmentContext?.getRootNode,
|
33
|
+
...props,
|
34
|
+
});
|
35
|
+
|
36
|
+
setHoverCardContext(context);
|
37
|
+
</script>
|
38
|
+
|
39
|
+
{@render children?.(context)}
|
@@ -1,20 +1,20 @@
|
|
1
|
-
<script lang="ts" context="module">
|
2
|
-
import type {
|
3
|
-
|
4
|
-
export interface HoverCardTriggerProps extends
|
5
|
-
</script>
|
6
|
-
|
7
|
-
<script lang="ts">
|
8
|
-
import {mergeProps} from '@zag-js/svelte';
|
9
|
-
import {useHoverCardContext} from './context.svelte.js';
|
10
|
-
|
11
|
-
let {children, ...props}: HoverCardTriggerProps = $props();
|
12
|
-
|
13
|
-
let context = useHoverCardContext();
|
14
|
-
|
15
|
-
let attrs = $derived(mergeProps(props, context.getTriggerProps()));
|
16
|
-
</script>
|
17
|
-
|
18
|
-
<a {...attrs}>
|
19
|
-
{@render children?.()}
|
20
|
-
</a>
|
1
|
+
<script lang="ts" context="module">
|
2
|
+
import type {HtmlIngredientProps} from '../types.js';
|
3
|
+
|
4
|
+
export interface HoverCardTriggerProps extends HtmlIngredientProps<'a'> {}
|
5
|
+
</script>
|
6
|
+
|
7
|
+
<script lang="ts">
|
8
|
+
import {mergeProps} from '@zag-js/svelte';
|
9
|
+
import {useHoverCardContext} from './context.svelte.js';
|
10
|
+
|
11
|
+
let {children, ...props}: HoverCardTriggerProps = $props();
|
12
|
+
|
13
|
+
let context = useHoverCardContext();
|
14
|
+
|
15
|
+
let attrs = $derived(mergeProps(props, context.getTriggerProps()));
|
16
|
+
</script>
|
17
|
+
|
18
|
+
<a {...attrs}>
|
19
|
+
{@render children?.()}
|
20
|
+
</a>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type {
|
2
|
-
export interface HoverCardTriggerProps extends
|
1
|
+
import type { HtmlIngredientProps } from '../types.js';
|
2
|
+
export interface HoverCardTriggerProps extends HtmlIngredientProps<'a'> {
|
3
3
|
}
|
4
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
5
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
package/dist/index.d.ts
CHANGED
@@ -1,92 +1,34 @@
|
|
1
|
-
export *
|
2
|
-
export
|
3
|
-
export *
|
4
|
-
export
|
5
|
-
export *
|
6
|
-
export
|
7
|
-
export *
|
8
|
-
export
|
9
|
-
export *
|
10
|
-
export
|
11
|
-
export *
|
12
|
-
export
|
13
|
-
export *
|
14
|
-
export
|
15
|
-
export *
|
16
|
-
export
|
17
|
-
export * as Editable from './editable/index.js';
|
18
|
-
export type { EditableAreaProps, EditableCancelTriggerProps, EditableControlProps, EditableEditTriggerProps, EditableInputProps, EditableLabelProps, EditablePreviewProps, EditableProps, EditableSubmitTriggerProps, } from './editable/index.js';
|
19
|
-
export * as HoverCard from './hover-card/index.js';
|
20
|
-
export type { HoverCardArrowProps, HoverCardArrowTipProps, HoverCardContentProps, HoverCardPositionerProps, HoverCardProps, HoverCardTriggerProps, } from './hover-card/index.js';
|
21
|
-
export * as NumberInput from './number-input/index.js';
|
22
|
-
export type { NumberInputControlTriggerProps, NumberInputDecrementTriggerProps, NumberInputIncrementTriggerProps, NumberInputInputProps, NumberInputLabelProps, NumberInputProps, NumberInputScrubberProps, } from './number-input/index.js';
|
23
|
-
export * as Pagination from './pagination/index.js';
|
24
|
-
export type { PaginationEllipsisProps, PaginationItemProps, PaginationNextTriggerProps, PaginationPrevTriggerProps, PaginationProps, } from './pagination/index.js';
|
25
|
-
export * as PinInput from './pin-input/index.js';
|
26
|
-
export type { PinInputClearTriggerProps, PinInputHiddenInputProps, PinInputInputProps, PinInputLabelProps, PinInputProps, } from './pin-input/index.js';
|
27
|
-
export * as Popover from './popover/index.js';
|
28
|
-
export type { PopoverArrowProps, PopoverArrowTipProps, PopoverCloseTriggerProps, PopoverContentProps, PopoverDescriptionProps, PopoverPositionerProps, PopoverProps, PopoverTitleProps, PopoverTriggerProps, } from './popover/index.js';
|
29
|
-
export * as Progress from './progress/index.js';
|
30
|
-
export type { ProgressCircleProps, ProgressCircleRangeProps, ProgressCircleTrackProps, ProgressLabelProps, ProgressProps, ProgressRangeProps, ProgressTrackProps, ProgressValueTextProps, } from './progress/index.js';
|
31
|
-
export * as QRCode from './qr-code/index.js';
|
32
|
-
export type { QRCodeFrameProps, QRCodeOverlayProps, QRCodePatternProps, QRCodeProps, } from './qr-code/index.js';
|
33
|
-
export * as RadioGroup from './radio-group/index.js';
|
34
|
-
export type { RadioGroupIndicatorProps, RadioGroupItemControlProps, RadioGroupItemHiddenInputProps, RadioGroupItemProps, RadioGroupItemTextProps, RadioGroupLabelProps, RadioGroupProps, } from './radio-group/index.js';
|
35
|
-
export * as RatingGroup from './rating-group/index.js';
|
36
|
-
export type { RatingGroupControlProps, RatingGroupHiddenInputProps, RatingGroupItemProps, RatingGroupLabelProps, RatingGroupProps, } from './rating-group/index.js';
|
37
|
-
export * as SegmentGroup from './segment-group/index.js';
|
38
|
-
export type { SegmentGroupIndicatorProps, SegmentGroupItemControlProps, SegmentGroupItemHiddenInputProps, SegmentGroupItemProps, SegmentGroupItemTextProps, SegmentGroupProps, } from './segment-group/index.js';
|
39
|
-
export * as Select from './select/index.js';
|
40
|
-
export type { SelectClearTriggerProps, SelectContentProps, SelectControlProps, SelectHiddenSelectProps, SelectIndicatorProps, SelectItemGroupLabelProps, SelectItemGroupProps, SelectItemIndicatorProps, SelectItemProps, SelectItemTextProps, SelectLabelProps, SelectListProps, SelectPositionerProps, SelectProps, SelectTriggerProps, SelectValueTextProps, } from './select/index.js';
|
41
|
-
export * as Slider from './slider/index.js';
|
42
|
-
export type { SliderControlProps, SliderHiddenInputProps, SliderLabelProps, SliderMarkerGroupProps, SliderMarkerProps, SliderProps, SliderRangeProps, SliderThumbProps, SliderTrackProps, SliderValueTextProps, } from './slider/index.js';
|
43
|
-
export * as Steps from './steps/index.js';
|
44
|
-
export type { StepsContentProps, StepsIndicatorProps, StepsItemProps, StepsListProps, StepsNextTriggerProps, StepsPrevTriggerProps, StepsProgressProps, StepsProps, StepsSeparatorProps, StepsTriggerProps, } from './steps/index.js';
|
45
|
-
export * as Switch from './switch/index.js';
|
46
|
-
export type { SwitchControlProps, SwitchHiddenInputProps, SwitchLabelProps, SwitchProps, SwitchThumbProps, } from './switch/index.js';
|
47
|
-
export * as Tabs from './tabs/index.js';
|
48
|
-
export type { TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps, } from './tabs/index.js';
|
49
|
-
export * as TagsInput from './tags-input/index.js';
|
50
|
-
export type { TagsInputClearTriggerProps, TagsInputControlProps, TagsInputHiddenInputProps, TagsInputInputProps, TagsInputItemDeleteTriggerProps, TagsInputItemInputProps, TagsInputItemPreviewProps, TagsInputItemProps, TagsInputItemTextProps, TagsInputLabelProps, TagsInputProps, } from './tags-input/index.js';
|
51
|
-
export * as Timer from './timer/index.js';
|
52
|
-
export type { TimerActionTriggerProps, TimerItemLabelProps, TimerItemProps, TimerItemValueProps, TimerProps, TimerSeparatorProps, } from './timer/index.js';
|
53
|
-
export * as ToggleGroup from './toggle-group/index.js';
|
54
|
-
export type { ToggleGroupItemProps, ToggleGroupProps, } from './toggle-group/index.js';
|
55
|
-
export * as Tooltip from './tooltip/index.js';
|
56
|
-
export type { TooltipArrowProps, TooltipArrowTipProps, TooltipContentProps, TooltipPositionerProps, TooltipProps, TooltipTriggerProps, } from './tooltip/index.js';
|
1
|
+
export * from './accordion/index.js';
|
2
|
+
export * from './avatar/index.js';
|
3
|
+
export * from './carousel/index.js';
|
4
|
+
export * from './checkbox/index.js';
|
5
|
+
export * from './clipboard/index.js';
|
6
|
+
export * from './collapsible/index.js';
|
7
|
+
export * from './combobox/index.js';
|
8
|
+
export * from './dialog/index.js';
|
9
|
+
export * from './editable/index.js';
|
10
|
+
export * from './environment-provider/index.js';
|
11
|
+
export * from './hover-card/index.js';
|
12
|
+
export * from './locale-provider/index.js';
|
13
|
+
export * from './number-input/index.js';
|
14
|
+
export * from './pagination/index.js';
|
15
|
+
export * from './pin-input/index.js';
|
16
|
+
export * from './popover/index.js';
|
57
17
|
export * from './portal/index.js';
|
58
18
|
export * from './presence/index.js';
|
19
|
+
export * from './progress/index.js';
|
20
|
+
export * from './qr-code/index.js';
|
21
|
+
export * from './radio-group/index.js';
|
22
|
+
export * from './rating-group/index.js';
|
23
|
+
export * from './segment-group/index.js';
|
24
|
+
export * from './select/index.js';
|
25
|
+
export * from './slider/index.js';
|
26
|
+
export * from './steps/index.js';
|
27
|
+
export * from './switch/index.js';
|
28
|
+
export * from './tabs/index.js';
|
29
|
+
export * from './tags-input/index.js';
|
30
|
+
export * from './timer/index.js';
|
59
31
|
export * from './toast/index.js';
|
60
|
-
export
|
61
|
-
export
|
62
|
-
export {
|
63
|
-
export { anatomy as checkboxAnatomy } from '@zag-js/checkbox';
|
64
|
-
export { anatomy as clipboardAnatomy } from '@zag-js/clipboard';
|
65
|
-
export { anatomy as collapsibleAnatomy } from '@zag-js/collapsible';
|
66
|
-
export { anatomy as colorPickerAnatomy } from '@zag-js/color-picker';
|
67
|
-
export { anatomy as comboboxAnatomy } from '@zag-js/combobox';
|
68
|
-
export { anatomy as datePickerAnatomy } from '@zag-js/date-picker';
|
69
|
-
export { anatomy as dialogAnatomy } from '@zag-js/dialog';
|
70
|
-
export { anatomy as editableAnatomy } from '@zag-js/editable';
|
71
|
-
export { anatomy as fileUploadAnatomy } from '@zag-js/file-upload';
|
72
|
-
export { anatomy as hoverCardAnatomy } from '@zag-js/hover-card';
|
73
|
-
export { anatomy as menuAnatomy } from '@zag-js/menu';
|
74
|
-
export { anatomy as numberInputAnatomy } from '@zag-js/number-input';
|
75
|
-
export { anatomy as paginationAnatomy } from '@zag-js/pagination';
|
76
|
-
export { anatomy as pinInputAnatomy } from '@zag-js/pin-input';
|
77
|
-
export { anatomy as popoverAnatomy } from '@zag-js/popover';
|
78
|
-
export { anatomy as progressAnatomy } from '@zag-js/progress';
|
79
|
-
export { anatomy as qrCodeAnatomy } from '@zag-js/qr-code';
|
80
|
-
export { anatomy as radioGroupAnatomy } from '@zag-js/radio-group';
|
81
|
-
export { anatomy as ratingGroupAnatomy } from '@zag-js/rating-group';
|
82
|
-
export { anatomy as selectAnatomy } from '@zag-js/select';
|
83
|
-
export { anatomy as signaturePadAnatomy } from '@zag-js/signature-pad';
|
84
|
-
export { anatomy as sliderAnatomy } from '@zag-js/slider';
|
85
|
-
export { anatomy as stepsAnatomy } from '@zag-js/steps';
|
86
|
-
export { anatomy as switchAnatomy } from '@zag-js/switch';
|
87
|
-
export { anatomy as tabsAnatomy } from '@zag-js/tabs';
|
88
|
-
export { anatomy as tagsInputAnatomy } from '@zag-js/tags-input';
|
89
|
-
export { anatomy as timerAnatomy } from '@zag-js/timer';
|
90
|
-
export { anatomy as toastAnatomy } from '@zag-js/toast';
|
91
|
-
export { anatomy as toggleGroupAnatomy } from '@zag-js/toggle-group';
|
92
|
-
export { anatomy as tooltipAnatomy } from '@zag-js/tooltip';
|
32
|
+
export * from './toggle-group/index.js';
|
33
|
+
export * from './tooltip/index.js';
|
34
|
+
export type { HtmlIngredientProps } from './types.js';
|
package/dist/index.js
CHANGED
@@ -1,64 +1,33 @@
|
|
1
|
-
export *
|
2
|
-
export *
|
3
|
-
export *
|
4
|
-
export *
|
5
|
-
export *
|
6
|
-
export *
|
7
|
-
export *
|
8
|
-
export *
|
9
|
-
export *
|
10
|
-
export *
|
11
|
-
export *
|
12
|
-
export *
|
13
|
-
export *
|
14
|
-
export *
|
15
|
-
export *
|
16
|
-
export *
|
17
|
-
export * as RadioGroup from './radio-group/index.js';
|
18
|
-
export * as RatingGroup from './rating-group/index.js';
|
19
|
-
export * as SegmentGroup from './segment-group/index.js';
|
20
|
-
export * as Select from './select/index.js';
|
21
|
-
export * as Slider from './slider/index.js';
|
22
|
-
export * as Steps from './steps/index.js';
|
23
|
-
export * as Switch from './switch/index.js';
|
24
|
-
export * as Tabs from './tabs/index.js';
|
25
|
-
export * as TagsInput from './tags-input/index.js';
|
26
|
-
export * as Timer from './timer/index.js';
|
27
|
-
export * as ToggleGroup from './toggle-group/index.js';
|
28
|
-
export * as Tooltip from './tooltip/index.js';
|
1
|
+
export * from './accordion/index.js';
|
2
|
+
export * from './avatar/index.js';
|
3
|
+
export * from './carousel/index.js';
|
4
|
+
export * from './checkbox/index.js';
|
5
|
+
export * from './clipboard/index.js';
|
6
|
+
export * from './collapsible/index.js';
|
7
|
+
export * from './combobox/index.js';
|
8
|
+
export * from './dialog/index.js';
|
9
|
+
export * from './editable/index.js';
|
10
|
+
export * from './environment-provider/index.js';
|
11
|
+
export * from './hover-card/index.js';
|
12
|
+
export * from './locale-provider/index.js';
|
13
|
+
export * from './number-input/index.js';
|
14
|
+
export * from './pagination/index.js';
|
15
|
+
export * from './pin-input/index.js';
|
16
|
+
export * from './popover/index.js';
|
29
17
|
export * from './portal/index.js';
|
30
18
|
export * from './presence/index.js';
|
19
|
+
export * from './progress/index.js';
|
20
|
+
export * from './qr-code/index.js';
|
21
|
+
export * from './radio-group/index.js';
|
22
|
+
export * from './rating-group/index.js';
|
23
|
+
export * from './segment-group/index.js';
|
24
|
+
export * from './select/index.js';
|
25
|
+
export * from './slider/index.js';
|
26
|
+
export * from './steps/index.js';
|
27
|
+
export * from './switch/index.js';
|
28
|
+
export * from './tabs/index.js';
|
29
|
+
export * from './tags-input/index.js';
|
30
|
+
export * from './timer/index.js';
|
31
31
|
export * from './toast/index.js';
|
32
|
-
export
|
33
|
-
export
|
34
|
-
export { anatomy as carouselAnatomy } from '@zag-js/carousel';
|
35
|
-
export { anatomy as checkboxAnatomy } from '@zag-js/checkbox';
|
36
|
-
export { anatomy as clipboardAnatomy } from '@zag-js/clipboard';
|
37
|
-
export { anatomy as collapsibleAnatomy } from '@zag-js/collapsible';
|
38
|
-
export { anatomy as colorPickerAnatomy } from '@zag-js/color-picker';
|
39
|
-
export { anatomy as comboboxAnatomy } from '@zag-js/combobox';
|
40
|
-
export { anatomy as datePickerAnatomy } from '@zag-js/date-picker';
|
41
|
-
export { anatomy as dialogAnatomy } from '@zag-js/dialog';
|
42
|
-
export { anatomy as editableAnatomy } from '@zag-js/editable';
|
43
|
-
export { anatomy as fileUploadAnatomy } from '@zag-js/file-upload';
|
44
|
-
export { anatomy as hoverCardAnatomy } from '@zag-js/hover-card';
|
45
|
-
export { anatomy as menuAnatomy } from '@zag-js/menu';
|
46
|
-
export { anatomy as numberInputAnatomy } from '@zag-js/number-input';
|
47
|
-
export { anatomy as paginationAnatomy } from '@zag-js/pagination';
|
48
|
-
export { anatomy as pinInputAnatomy } from '@zag-js/pin-input';
|
49
|
-
export { anatomy as popoverAnatomy } from '@zag-js/popover';
|
50
|
-
export { anatomy as progressAnatomy } from '@zag-js/progress';
|
51
|
-
export { anatomy as qrCodeAnatomy } from '@zag-js/qr-code';
|
52
|
-
export { anatomy as radioGroupAnatomy } from '@zag-js/radio-group';
|
53
|
-
export { anatomy as ratingGroupAnatomy } from '@zag-js/rating-group';
|
54
|
-
export { anatomy as selectAnatomy } from '@zag-js/select';
|
55
|
-
export { anatomy as signaturePadAnatomy } from '@zag-js/signature-pad';
|
56
|
-
export { anatomy as sliderAnatomy } from '@zag-js/slider';
|
57
|
-
export { anatomy as stepsAnatomy } from '@zag-js/steps';
|
58
|
-
export { anatomy as switchAnatomy } from '@zag-js/switch';
|
59
|
-
export { anatomy as tabsAnatomy } from '@zag-js/tabs';
|
60
|
-
export { anatomy as tagsInputAnatomy } from '@zag-js/tags-input';
|
61
|
-
export { anatomy as timerAnatomy } from '@zag-js/timer';
|
62
|
-
export { anatomy as toastAnatomy } from '@zag-js/toast';
|
63
|
-
export { anatomy as toggleGroupAnatomy } from '@zag-js/toggle-group';
|
64
|
-
export { anatomy as tooltipAnatomy } from '@zag-js/tooltip';
|
32
|
+
export * from './toggle-group/index.js';
|
33
|
+
export * from './tooltip/index.js';
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export interface CreateLocaleContextProps {
|
2
|
+
locale: string;
|
3
|
+
}
|
4
|
+
export interface CreateLocaleContextReturn extends ReturnType<typeof createLocaleContext> {
|
5
|
+
}
|
6
|
+
export declare function createLocaleContext(props: CreateLocaleContextProps): {
|
7
|
+
readonly locale: string;
|
8
|
+
readonly dir: "rtl" | "ltr";
|
9
|
+
};
|
10
|
+
export declare function setLocaleContext(value: CreateLocaleContextReturn): void;
|
11
|
+
export declare function useLocaleContext(): CreateLocaleContextReturn | null;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { isRTL } from '@zag-js/i18n-utils';
|
2
|
+
import { getContext, hasContext, setContext } from 'svelte';
|
3
|
+
export function createLocaleContext(props) {
|
4
|
+
return {
|
5
|
+
get locale() {
|
6
|
+
return props.locale;
|
7
|
+
},
|
8
|
+
get dir() {
|
9
|
+
return isRTL(props.locale) ? 'rtl' : 'ltr';
|
10
|
+
},
|
11
|
+
};
|
12
|
+
}
|
13
|
+
export function setLocaleContext(value) {
|
14
|
+
setContext('LocaleProvider', value);
|
15
|
+
}
|
16
|
+
export function useLocaleContext() {
|
17
|
+
if (!hasContext('LocaleProvider')) {
|
18
|
+
return null;
|
19
|
+
}
|
20
|
+
else {
|
21
|
+
return getContext('LocaleProvider');
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<script lang="ts" context="module">
|
2
|
+
import type {Snippet} from 'svelte';
|
3
|
+
import type {CreateLocaleContextProps} from './context.svelte.js';
|
4
|
+
|
5
|
+
export interface LocaleProviderProps extends CreateLocaleContextProps {
|
6
|
+
children: Snippet;
|
7
|
+
}
|
8
|
+
</script>
|
9
|
+
|
10
|
+
<script lang="ts">
|
11
|
+
import {createLocaleContext, setLocaleContext} from './context.svelte.js';
|
12
|
+
|
13
|
+
let {children, ...props}: LocaleProviderProps = $props();
|
14
|
+
|
15
|
+
let context = createLocaleContext(props);
|
16
|
+
|
17
|
+
setLocaleContext(context);
|
18
|
+
</script>
|
19
|
+
|
20
|
+
{@render children()}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import type { Snippet } from 'svelte';
|
2
|
+
import type { CreateLocaleContextProps } from './context.svelte.js';
|
3
|
+
export interface LocaleProviderProps extends CreateLocaleContextProps {
|
4
|
+
children: Snippet;
|
5
|
+
}
|
6
|
+
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
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
8
|
+
$$bindings?: Bindings;
|
9
|
+
} & Exports;
|
10
|
+
(internal: unknown, props: Props & {
|
11
|
+
$$events?: Events;
|
12
|
+
$$slots?: Slots;
|
13
|
+
}): Exports & {
|
14
|
+
$set?: any;
|
15
|
+
$on?: any;
|
16
|
+
};
|
17
|
+
z_$$bindings?: Bindings;
|
18
|
+
}
|
19
|
+
declare const Root: $$__sveltets_2_IsomorphicComponent<LocaleProviderProps, {
|
20
|
+
[evt: string]: CustomEvent<any>;
|
21
|
+
}, {}, {}, "">;
|
22
|
+
type Root = InstanceType<typeof Root>;
|
23
|
+
export default Root;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
export default ArrowTip;
|
2
|
+
type ArrowTip = SvelteComponent<{
|
3
|
+
[x: string]: never;
|
4
|
+
}, {
|
5
|
+
[evt: string]: CustomEvent<any>;
|
6
|
+
}, {}> & {
|
7
|
+
$$bindings?: string | undefined;
|
8
|
+
};
|
9
|
+
declare const ArrowTip: $$__sveltets_2_IsomorphicComponent<{
|
10
|
+
[x: string]: never;
|
11
|
+
}, {
|
12
|
+
[evt: string]: CustomEvent<any>;
|
13
|
+
}, {}, {}, string>;
|
14
|
+
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> {
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
16
|
+
$$bindings?: Bindings;
|
17
|
+
} & Exports;
|
18
|
+
(internal: unknown, props: {
|
19
|
+
$$events?: Events;
|
20
|
+
$$slots?: Slots;
|
21
|
+
}): Exports & {
|
22
|
+
$set?: any;
|
23
|
+
$on?: any;
|
24
|
+
};
|
25
|
+
z_$$bindings?: Bindings;
|
26
|
+
}
|
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
export default Arrow;
|
2
|
+
type Arrow = SvelteComponent<{
|
3
|
+
[x: string]: never;
|
4
|
+
}, {
|
5
|
+
[evt: string]: CustomEvent<any>;
|
6
|
+
}, {}> & {
|
7
|
+
$$bindings?: string | undefined;
|
8
|
+
};
|
9
|
+
declare const Arrow: $$__sveltets_2_IsomorphicComponent<{
|
10
|
+
[x: string]: never;
|
11
|
+
}, {
|
12
|
+
[evt: string]: CustomEvent<any>;
|
13
|
+
}, {}, {}, string>;
|
14
|
+
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> {
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
16
|
+
$$bindings?: Bindings;
|
17
|
+
} & Exports;
|
18
|
+
(internal: unknown, props: {
|
19
|
+
$$events?: Events;
|
20
|
+
$$slots?: Slots;
|
21
|
+
}): Exports & {
|
22
|
+
$set?: any;
|
23
|
+
$on?: any;
|
24
|
+
};
|
25
|
+
z_$$bindings?: Bindings;
|
26
|
+
}
|
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
export default Content;
|
2
|
+
type Content = SvelteComponent<{
|
3
|
+
[x: string]: never;
|
4
|
+
}, {
|
5
|
+
[evt: string]: CustomEvent<any>;
|
6
|
+
}, {}> & {
|
7
|
+
$$bindings?: string | undefined;
|
8
|
+
};
|
9
|
+
declare const Content: $$__sveltets_2_IsomorphicComponent<{
|
10
|
+
[x: string]: never;
|
11
|
+
}, {
|
12
|
+
[evt: string]: CustomEvent<any>;
|
13
|
+
}, {}, {}, string>;
|
14
|
+
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> {
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
16
|
+
$$bindings?: Bindings;
|
17
|
+
} & Exports;
|
18
|
+
(internal: unknown, props: {
|
19
|
+
$$events?: Events;
|
20
|
+
$$slots?: Slots;
|
21
|
+
}): Exports & {
|
22
|
+
$set?: any;
|
23
|
+
$on?: any;
|
24
|
+
};
|
25
|
+
z_$$bindings?: Bindings;
|
26
|
+
}
|
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
export default ContextTrigger;
|
2
|
+
type ContextTrigger = SvelteComponent<{
|
3
|
+
[x: string]: never;
|
4
|
+
}, {
|
5
|
+
[evt: string]: CustomEvent<any>;
|
6
|
+
}, {}> & {
|
7
|
+
$$bindings?: string | undefined;
|
8
|
+
};
|
9
|
+
declare const ContextTrigger: $$__sveltets_2_IsomorphicComponent<{
|
10
|
+
[x: string]: never;
|
11
|
+
}, {
|
12
|
+
[evt: string]: CustomEvent<any>;
|
13
|
+
}, {}, {}, string>;
|
14
|
+
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> {
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
16
|
+
$$bindings?: Bindings;
|
17
|
+
} & Exports;
|
18
|
+
(internal: unknown, props: {
|
19
|
+
$$events?: Events;
|
20
|
+
$$slots?: Slots;
|
21
|
+
}): Exports & {
|
22
|
+
$set?: any;
|
23
|
+
$on?: any;
|
24
|
+
};
|
25
|
+
z_$$bindings?: Bindings;
|
26
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as menu from '@zag-js/menu';
|
2
|
+
export interface CreateMenuContextProps extends menu.Context {
|
3
|
+
}
|
4
|
+
export interface CreateMenuContextReturn extends ReturnType<typeof createMenuContext> {
|
5
|
+
}
|
6
|
+
export declare function createMenuContext(props: CreateMenuContextProps): any;
|
7
|
+
export declare function setMenuContext(value: CreateMenuContextReturn): void;
|
8
|
+
export declare function useMenuContext(): CreateMenuContextReturn;
|
9
|
+
export declare function setMenuItemPropsContext(value: CreateMenuContextReturn): void;
|
10
|
+
export declare function useMenuItemPropsContext(): CreateMenuContextReturn;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import * as menu from '@zag-js/menu';
|
2
|
+
import { normalizeProps, reflect, useMachine } from '@zag-js/svelte';
|
3
|
+
import { getContext, setContext } from 'svelte';
|
4
|
+
export function createMenuContext(props) {
|
5
|
+
const [state, send] = useMachine(menu.machine(props));
|
6
|
+
const api = $derived(reflect(() => menu.connect(state, send, normalizeProps)));
|
7
|
+
return api;
|
8
|
+
}
|
9
|
+
export function setMenuContext(value) {
|
10
|
+
setContext('Menu', value);
|
11
|
+
}
|
12
|
+
export function useMenuContext() {
|
13
|
+
return getContext('Menu');
|
14
|
+
}
|
15
|
+
export function setMenuItemPropsContext(value) {
|
16
|
+
setContext('MenuItem', value);
|
17
|
+
}
|
18
|
+
export function useMenuItemPropsContext() {
|
19
|
+
return getContext('MenuItem');
|
20
|
+
}
|