ui-ingredients 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +73 -0
- package/dist/accordion/context.svelte.d.ts +10 -0
- package/dist/accordion/context.svelte.js +20 -0
- package/dist/accordion/index.d.ts +5 -0
- package/dist/accordion/index.js +5 -0
- package/dist/accordion/item-content.svelte +13 -0
- package/dist/accordion/item-content.svelte.d.ts +22 -0
- package/dist/accordion/item-indicator.svelte +13 -0
- package/dist/accordion/item-indicator.svelte.d.ts +22 -0
- package/dist/accordion/item-trigger.svelte +13 -0
- package/dist/accordion/item-trigger.svelte.d.ts +22 -0
- package/dist/accordion/item.svelte +24 -0
- package/dist/accordion/item.svelte.d.ts +23 -0
- package/dist/accordion/root.svelte +40 -0
- package/dist/accordion/root.svelte.d.ts +25 -0
- package/dist/avatar/context.svelte.d.ts +8 -0
- package/dist/avatar/context.svelte.js +14 -0
- package/dist/avatar/fallback.svelte +12 -0
- package/dist/avatar/fallback.svelte.d.ts +22 -0
- package/dist/avatar/image.svelte +10 -0
- package/dist/avatar/image.svelte.d.ts +22 -0
- package/dist/avatar/index.d.ts +3 -0
- package/dist/avatar/index.js +3 -0
- package/dist/avatar/root.svelte +29 -0
- package/dist/avatar/root.svelte.d.ts +25 -0
- package/dist/carousel/context.svelte.d.ts +8 -0
- package/dist/carousel/context.svelte.js +14 -0
- package/dist/carousel/index.d.ts +8 -0
- package/dist/carousel/index.js +8 -0
- package/dist/carousel/indicator-group.svelte +12 -0
- package/dist/carousel/indicator-group.svelte.d.ts +22 -0
- package/dist/carousel/indicator.svelte +20 -0
- package/dist/carousel/indicator.svelte.d.ts +23 -0
- package/dist/carousel/item-group.svelte +12 -0
- package/dist/carousel/item-group.svelte.d.ts +22 -0
- package/dist/carousel/item.svelte +12 -0
- package/dist/carousel/item.svelte.d.ts +23 -0
- package/dist/carousel/next-trigger.svelte +12 -0
- package/dist/carousel/next-trigger.svelte.d.ts +22 -0
- package/dist/carousel/prev-trigger.svelte +12 -0
- package/dist/carousel/prev-trigger.svelte.d.ts +22 -0
- package/dist/carousel/root.svelte +40 -0
- package/dist/carousel/root.svelte.d.ts +25 -0
- package/dist/carousel/viewport.svelte +12 -0
- package/dist/carousel/viewport.svelte.d.ts +22 -0
- package/dist/checkbox/context.svelte.d.ts +8 -0
- package/dist/checkbox/context.svelte.js +14 -0
- package/dist/checkbox/control.svelte +12 -0
- package/dist/checkbox/control.svelte.d.ts +22 -0
- package/dist/checkbox/hidden-input.svelte +10 -0
- package/dist/checkbox/hidden-input.svelte.d.ts +22 -0
- package/dist/checkbox/index.d.ts +5 -0
- package/dist/checkbox/index.js +5 -0
- package/dist/checkbox/indicator.svelte +12 -0
- package/dist/checkbox/indicator.svelte.d.ts +22 -0
- package/dist/checkbox/label.svelte +12 -0
- package/dist/checkbox/label.svelte.d.ts +22 -0
- package/dist/checkbox/root.svelte +44 -0
- package/dist/checkbox/root.svelte.d.ts +25 -0
- package/dist/clipboard/context.svelte.d.ts +8 -0
- package/dist/clipboard/context.svelte.js +14 -0
- package/dist/clipboard/control.svelte +12 -0
- package/dist/clipboard/control.svelte.d.ts +22 -0
- package/dist/clipboard/index.d.ts +6 -0
- package/dist/clipboard/index.js +6 -0
- package/dist/clipboard/indicator.svelte +12 -0
- package/dist/clipboard/indicator.svelte.d.ts +23 -0
- package/dist/clipboard/input.svelte +10 -0
- package/dist/clipboard/input.svelte.d.ts +22 -0
- package/dist/clipboard/label.svelte +12 -0
- package/dist/clipboard/label.svelte.d.ts +22 -0
- package/dist/clipboard/root.svelte +30 -0
- package/dist/clipboard/root.svelte.d.ts +25 -0
- package/dist/clipboard/trigger.svelte +12 -0
- package/dist/clipboard/trigger.svelte.d.ts +22 -0
- package/dist/collapsible/content.svelte +12 -0
- package/dist/collapsible/content.svelte.d.ts +22 -0
- package/dist/collapsible/context.svelte.d.ts +8 -0
- package/dist/collapsible/context.svelte.js +14 -0
- package/dist/collapsible/index.d.ts +3 -0
- package/dist/collapsible/index.js +3 -0
- package/dist/collapsible/root.svelte +36 -0
- package/dist/collapsible/root.svelte.d.ts +25 -0
- package/dist/collapsible/trigger.svelte +12 -0
- package/dist/collapsible/trigger.svelte.d.ts +22 -0
- package/dist/color-picker/.gitkeep +0 -0
- package/dist/combobox/clear-trigger.svelte +12 -0
- package/dist/combobox/clear-trigger.svelte.d.ts +22 -0
- package/dist/combobox/content.svelte +12 -0
- package/dist/combobox/content.svelte.d.ts +22 -0
- package/dist/combobox/context.svelte.d.ts +16 -0
- package/dist/combobox/context.svelte.js +38 -0
- package/dist/combobox/control.svelte +12 -0
- package/dist/combobox/control.svelte.d.ts +22 -0
- package/dist/combobox/index.d.ts +14 -0
- package/dist/combobox/index.js +14 -0
- package/dist/combobox/input.svelte +10 -0
- package/dist/combobox/input.svelte.d.ts +22 -0
- package/dist/combobox/item-group-label.svelte +20 -0
- package/dist/combobox/item-group-label.svelte.d.ts +22 -0
- package/dist/combobox/item-group.svelte +14 -0
- package/dist/combobox/item-group.svelte.d.ts +23 -0
- package/dist/combobox/item-indicator.svelte +13 -0
- package/dist/combobox/item-indicator.svelte.d.ts +22 -0
- package/dist/combobox/item-text.svelte +17 -0
- package/dist/combobox/item-text.svelte.d.ts +22 -0
- package/dist/combobox/item.svelte +24 -0
- package/dist/combobox/item.svelte.d.ts +23 -0
- package/dist/combobox/label.svelte +12 -0
- package/dist/combobox/label.svelte.d.ts +22 -0
- package/dist/combobox/list.svelte +12 -0
- package/dist/combobox/list.svelte.d.ts +22 -0
- package/dist/combobox/positioner.svelte +12 -0
- package/dist/combobox/positioner.svelte.d.ts +22 -0
- package/dist/combobox/root.svelte +104 -0
- package/dist/combobox/root.svelte.d.ts +28 -0
- package/dist/combobox/trigger.svelte +12 -0
- package/dist/combobox/trigger.svelte.d.ts +22 -0
- package/dist/date-picker/.gitkeep +0 -0
- package/dist/dialog/backdrop.svelte +12 -0
- package/dist/dialog/backdrop.svelte.d.ts +22 -0
- package/dist/dialog/close-trigger.svelte +12 -0
- package/dist/dialog/close-trigger.svelte.d.ts +22 -0
- package/dist/dialog/content.svelte +12 -0
- package/dist/dialog/content.svelte.d.ts +22 -0
- package/dist/dialog/context.svelte.d.ts +8 -0
- package/dist/dialog/context.svelte.js +14 -0
- package/dist/dialog/description.svelte +12 -0
- package/dist/dialog/description.svelte.d.ts +22 -0
- package/dist/dialog/index.d.ts +8 -0
- package/dist/dialog/index.js +8 -0
- package/dist/dialog/positioner.svelte +12 -0
- package/dist/dialog/positioner.svelte.d.ts +22 -0
- package/dist/dialog/root.svelte +10 -0
- package/dist/dialog/root.svelte.d.ts +24 -0
- package/dist/dialog/title.svelte +12 -0
- package/dist/dialog/title.svelte.d.ts +22 -0
- package/dist/dialog/trigger.svelte +12 -0
- package/dist/dialog/trigger.svelte.d.ts +22 -0
- package/dist/editable/.gitkeep +0 -0
- package/dist/file-upload/.gitkeep +0 -0
- package/dist/hover-card/arrow-tip.svelte +12 -0
- package/dist/hover-card/arrow-tip.svelte.d.ts +22 -0
- package/dist/hover-card/arrow.svelte +12 -0
- package/dist/hover-card/arrow.svelte.d.ts +22 -0
- package/dist/hover-card/content.svelte +12 -0
- package/dist/hover-card/content.svelte.d.ts +22 -0
- package/dist/hover-card/context.svelte.d.ts +8 -0
- package/dist/hover-card/context.svelte.js +14 -0
- package/dist/hover-card/index.d.ts +6 -0
- package/dist/hover-card/index.js +6 -0
- package/dist/hover-card/positioner.svelte +12 -0
- package/dist/hover-card/positioner.svelte.d.ts +22 -0
- package/dist/hover-card/root.svelte +10 -0
- package/dist/hover-card/root.svelte.d.ts +24 -0
- package/dist/hover-card/trigger.svelte +12 -0
- package/dist/hover-card/trigger.svelte.d.ts +22 -0
- package/dist/index.d.ts +73 -0
- package/dist/index.js +52 -0
- package/dist/menu/.gitkeep +0 -0
- package/dist/number-input/context.svelte.d.ts +8 -0
- package/dist/number-input/context.svelte.js +14 -0
- package/dist/number-input/control.svelte +12 -0
- package/dist/number-input/control.svelte.d.ts +22 -0
- package/dist/number-input/decrement-trigger.svelte +12 -0
- package/dist/number-input/decrement-trigger.svelte.d.ts +22 -0
- package/dist/number-input/increment-trigger.svelte +12 -0
- package/dist/number-input/increment-trigger.svelte.d.ts +22 -0
- package/dist/number-input/index.d.ts +7 -0
- package/dist/number-input/index.js +7 -0
- package/dist/number-input/input.svelte +10 -0
- package/dist/number-input/input.svelte.d.ts +22 -0
- package/dist/number-input/label.svelte +12 -0
- package/dist/number-input/label.svelte.d.ts +22 -0
- package/dist/number-input/root.svelte +72 -0
- package/dist/number-input/root.svelte.d.ts +25 -0
- package/dist/number-input/scrubber.svelte +12 -0
- package/dist/number-input/scrubber.svelte.d.ts +22 -0
- package/dist/pagination/context.svelte.d.ts +8 -0
- package/dist/pagination/context.svelte.js +14 -0
- package/dist/pagination/ellipsis.svelte +12 -0
- package/dist/pagination/ellipsis.svelte.d.ts +23 -0
- package/dist/pagination/index.d.ts +5 -0
- package/dist/pagination/index.js +5 -0
- package/dist/pagination/item.svelte +20 -0
- package/dist/pagination/item.svelte.d.ts +23 -0
- package/dist/pagination/next-trigger.svelte +12 -0
- package/dist/pagination/next-trigger.svelte.d.ts +22 -0
- package/dist/pagination/prev-trigger.svelte +12 -0
- package/dist/pagination/prev-trigger.svelte.d.ts +22 -0
- package/dist/pagination/root.svelte +42 -0
- package/dist/pagination/root.svelte.d.ts +25 -0
- package/dist/pin-input/clear-trigger.svelte +17 -0
- package/dist/pin-input/clear-trigger.svelte.d.ts +22 -0
- package/dist/pin-input/context.svelte.d.ts +8 -0
- package/dist/pin-input/context.svelte.js +14 -0
- package/dist/pin-input/hidden-input.svelte +10 -0
- package/dist/pin-input/hidden-input.svelte.d.ts +22 -0
- package/dist/pin-input/index.d.ts +5 -0
- package/dist/pin-input/index.js +5 -0
- package/dist/pin-input/input.svelte +10 -0
- package/dist/pin-input/input.svelte.d.ts +23 -0
- package/dist/pin-input/label.svelte +12 -0
- package/dist/pin-input/label.svelte.d.ts +22 -0
- package/dist/pin-input/root.svelte +64 -0
- package/dist/pin-input/root.svelte.d.ts +25 -0
- package/dist/popover/arrow-tip.svelte +12 -0
- package/dist/popover/arrow-tip.svelte.d.ts +22 -0
- package/dist/popover/arrow.svelte +12 -0
- package/dist/popover/arrow.svelte.d.ts +22 -0
- package/dist/popover/close-trigger.svelte +12 -0
- package/dist/popover/close-trigger.svelte.d.ts +22 -0
- package/dist/popover/content.svelte +12 -0
- package/dist/popover/content.svelte.d.ts +22 -0
- package/dist/popover/context.svelte.d.ts +8 -0
- package/dist/popover/context.svelte.js +14 -0
- package/dist/popover/description.svelte +12 -0
- package/dist/popover/description.svelte.d.ts +22 -0
- package/dist/popover/index.d.ts +9 -0
- package/dist/popover/index.js +9 -0
- package/dist/popover/positioner.svelte +12 -0
- package/dist/popover/positioner.svelte.d.ts +22 -0
- package/dist/popover/root.svelte +10 -0
- package/dist/popover/root.svelte.d.ts +24 -0
- package/dist/popover/title.svelte +12 -0
- package/dist/popover/title.svelte.d.ts +22 -0
- package/dist/popover/trigger.svelte +12 -0
- package/dist/popover/trigger.svelte.d.ts +22 -0
- package/dist/portal/index.d.ts +1 -0
- package/dist/portal/index.js +1 -0
- package/dist/portal/root.svelte +10 -0
- package/dist/portal/root.svelte.d.ts +25 -0
- package/dist/presence/index.d.ts +1 -0
- package/dist/presence/index.js +1 -0
- package/dist/presence/root.svelte +27 -0
- package/dist/presence/root.svelte.d.ts +23 -0
- package/dist/progress/circle-range.svelte +12 -0
- package/dist/progress/circle-range.svelte.d.ts +22 -0
- package/dist/progress/circle-track.svelte +12 -0
- package/dist/progress/circle-track.svelte.d.ts +22 -0
- package/dist/progress/circle.svelte +12 -0
- package/dist/progress/circle.svelte.d.ts +22 -0
- package/dist/progress/context.svelte.d.ts +8 -0
- package/dist/progress/context.svelte.js +14 -0
- package/dist/progress/index.d.ts +8 -0
- package/dist/progress/index.js +8 -0
- package/dist/progress/label.svelte +12 -0
- package/dist/progress/label.svelte.d.ts +22 -0
- package/dist/progress/range.svelte +12 -0
- package/dist/progress/range.svelte.d.ts +22 -0
- package/dist/progress/root.svelte +36 -0
- package/dist/progress/root.svelte.d.ts +25 -0
- package/dist/progress/track.svelte +12 -0
- package/dist/progress/track.svelte.d.ts +22 -0
- package/dist/progress/value-text.svelte +16 -0
- package/dist/progress/value-text.svelte.d.ts +22 -0
- package/dist/qr-code/.gitkeep +0 -0
- package/dist/radio-group/context.svelte.d.ts +10 -0
- package/dist/radio-group/context.svelte.js +20 -0
- package/dist/radio-group/index.d.ts +7 -0
- package/dist/radio-group/index.js +7 -0
- package/dist/radio-group/indicator.svelte +12 -0
- package/dist/radio-group/indicator.svelte.d.ts +22 -0
- package/dist/radio-group/item-control.svelte +13 -0
- package/dist/radio-group/item-control.svelte.d.ts +22 -0
- package/dist/radio-group/item-hidden-input.svelte +11 -0
- package/dist/radio-group/item-hidden-input.svelte.d.ts +22 -0
- package/dist/radio-group/item-text.svelte +13 -0
- package/dist/radio-group/item-text.svelte.d.ts +22 -0
- package/dist/radio-group/item.svelte +26 -0
- package/dist/radio-group/item.svelte.d.ts +23 -0
- package/dist/radio-group/label.svelte +12 -0
- package/dist/radio-group/label.svelte.d.ts +22 -0
- package/dist/radio-group/root.svelte +40 -0
- package/dist/radio-group/root.svelte.d.ts +25 -0
- package/dist/rating-group/.gitkeep +0 -0
- package/dist/select/clear-trigger.svelte +12 -0
- package/dist/select/clear-trigger.svelte.d.ts +22 -0
- package/dist/select/content.svelte +12 -0
- package/dist/select/content.svelte.d.ts +22 -0
- package/dist/select/context.svelte.d.ts +19 -0
- package/dist/select/context.svelte.js +38 -0
- package/dist/select/control.svelte +12 -0
- package/dist/select/control.svelte.d.ts +22 -0
- package/dist/select/hidden-select.svelte +12 -0
- package/dist/select/hidden-select.svelte.d.ts +22 -0
- package/dist/select/index.d.ts +16 -0
- package/dist/select/index.js +16 -0
- package/dist/select/indicator.svelte +12 -0
- package/dist/select/indicator.svelte.d.ts +22 -0
- package/dist/select/item-group-label.svelte +15 -0
- package/dist/select/item-group-label.svelte.d.ts +22 -0
- package/dist/select/item-group.svelte +14 -0
- package/dist/select/item-group.svelte.d.ts +23 -0
- package/dist/select/item-indicator.svelte +13 -0
- package/dist/select/item-indicator.svelte.d.ts +22 -0
- package/dist/select/item-text.svelte +17 -0
- package/dist/select/item-text.svelte.d.ts +22 -0
- package/dist/select/item.svelte +24 -0
- package/dist/select/item.svelte.d.ts +23 -0
- package/dist/select/label.svelte +12 -0
- package/dist/select/label.svelte.d.ts +22 -0
- package/dist/select/list.svelte +12 -0
- package/dist/select/list.svelte.d.ts +22 -0
- package/dist/select/positioner.svelte +12 -0
- package/dist/select/positioner.svelte.d.ts +22 -0
- package/dist/select/root.svelte +78 -0
- package/dist/select/root.svelte.d.ts +28 -0
- package/dist/select/trigger.svelte +12 -0
- package/dist/select/trigger.svelte.d.ts +22 -0
- package/dist/select/value-text.svelte +18 -0
- package/dist/select/value-text.svelte.d.ts +22 -0
- package/dist/signature-pad/.gitkeep +0 -0
- package/dist/slider/context.svelte.d.ts +10 -0
- package/dist/slider/context.svelte.js +20 -0
- package/dist/slider/control.svelte +12 -0
- package/dist/slider/control.svelte.d.ts +22 -0
- package/dist/slider/hidden-input.svelte +11 -0
- package/dist/slider/hidden-input.svelte.d.ts +22 -0
- package/dist/slider/index.d.ts +10 -0
- package/dist/slider/index.js +10 -0
- package/dist/slider/label.svelte +12 -0
- package/dist/slider/label.svelte.d.ts +22 -0
- package/dist/slider/marker-group.svelte +12 -0
- package/dist/slider/marker-group.svelte.d.ts +22 -0
- package/dist/slider/marker.svelte +19 -0
- package/dist/slider/marker.svelte.d.ts +23 -0
- package/dist/slider/range.svelte +12 -0
- package/dist/slider/range.svelte.d.ts +22 -0
- package/dist/slider/root.svelte +66 -0
- package/dist/slider/root.svelte.d.ts +25 -0
- package/dist/slider/thumb.svelte +24 -0
- package/dist/slider/thumb.svelte.d.ts +23 -0
- package/dist/slider/track.svelte +12 -0
- package/dist/slider/track.svelte.d.ts +22 -0
- package/dist/slider/value-text.svelte +16 -0
- package/dist/slider/value-text.svelte.d.ts +22 -0
- package/dist/steps/.gitkeep +0 -0
- package/dist/switch/context.svelte.d.ts +8 -0
- package/dist/switch/context.svelte.js +14 -0
- package/dist/switch/control.svelte +12 -0
- package/dist/switch/control.svelte.d.ts +22 -0
- package/dist/switch/hidden-input.svelte +10 -0
- package/dist/switch/hidden-input.svelte.d.ts +22 -0
- package/dist/switch/index.d.ts +5 -0
- package/dist/switch/index.js +5 -0
- package/dist/switch/label.svelte +12 -0
- package/dist/switch/label.svelte.d.ts +22 -0
- package/dist/switch/root.svelte +46 -0
- package/dist/switch/root.svelte.d.ts +25 -0
- package/dist/switch/thumb.svelte +12 -0
- package/dist/switch/thumb.svelte.d.ts +22 -0
- package/dist/tabs/content.svelte +12 -0
- package/dist/tabs/content.svelte.d.ts +23 -0
- package/dist/tabs/context.svelte.d.ts +8 -0
- package/dist/tabs/context.svelte.js +14 -0
- package/dist/tabs/index.d.ts +4 -0
- package/dist/tabs/index.js +4 -0
- package/dist/tabs/list.svelte +12 -0
- package/dist/tabs/list.svelte.d.ts +22 -0
- package/dist/tabs/root.svelte +42 -0
- package/dist/tabs/root.svelte.d.ts +25 -0
- package/dist/tabs/trigger.svelte +12 -0
- package/dist/tabs/trigger.svelte.d.ts +23 -0
- package/dist/tags-input/.gitkeep +0 -0
- package/dist/timer/.gitkeep +0 -0
- package/dist/toast/action-trigger.svelte +12 -0
- package/dist/toast/action-trigger.svelte.d.ts +22 -0
- package/dist/toast/actor.svelte +11 -0
- package/dist/toast/actor.svelte.d.ts +24 -0
- package/dist/toast/close-trigger.svelte +12 -0
- package/dist/toast/close-trigger.svelte.d.ts +22 -0
- package/dist/toast/context.svelte.d.ts +8 -0
- package/dist/toast/context.svelte.js +14 -0
- package/dist/toast/create-toaster.svelte.d.ts +18 -0
- package/dist/toast/create-toaster.svelte.js +12 -0
- package/dist/toast/description.svelte +16 -0
- package/dist/toast/description.svelte.d.ts +22 -0
- package/dist/toast/index.d.ts +4 -0
- package/dist/toast/index.js +3 -0
- package/dist/toast/root.svelte +16 -0
- package/dist/toast/root.svelte.d.ts +22 -0
- package/dist/toast/title.svelte +16 -0
- package/dist/toast/title.svelte.d.ts +22 -0
- package/dist/toast/toast.d.ts +5 -0
- package/dist/toast/toast.js +5 -0
- package/dist/toast/toaster.svelte +25 -0
- package/dist/toast/toaster.svelte.d.ts +27 -0
- package/dist/toggle-group/context.svelte.d.ts +8 -0
- package/dist/toggle-group/context.svelte.js +14 -0
- package/dist/toggle-group/index.d.ts +2 -0
- package/dist/toggle-group/index.js +2 -0
- package/dist/toggle-group/item.svelte +12 -0
- package/dist/toggle-group/item.svelte.d.ts +23 -0
- package/dist/toggle-group/root.svelte +40 -0
- package/dist/toggle-group/root.svelte.d.ts +25 -0
- package/dist/tooltip/arrow-tip.svelte +12 -0
- package/dist/tooltip/arrow-tip.svelte.d.ts +22 -0
- package/dist/tooltip/arrow.svelte +12 -0
- package/dist/tooltip/arrow.svelte.d.ts +22 -0
- package/dist/tooltip/content.svelte +12 -0
- package/dist/tooltip/content.svelte.d.ts +22 -0
- package/dist/tooltip/context.svelte.d.ts +8 -0
- package/dist/tooltip/context.svelte.js +14 -0
- package/dist/tooltip/index.d.ts +6 -0
- package/dist/tooltip/index.js +6 -0
- package/dist/tooltip/positioner.svelte +12 -0
- package/dist/tooltip/positioner.svelte.d.ts +22 -0
- package/dist/tooltip/root.svelte +10 -0
- package/dist/tooltip/root.svelte.d.ts +24 -0
- package/dist/tooltip/trigger.svelte +12 -0
- package/dist/tooltip/trigger.svelte.d.ts +22 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.js +1 -0
- package/dist/utils.svelte.d.ts +2 -0
- package/dist/utils.svelte.js +24 -0
- package/package.json +167 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
import type { Assign } from '../types.js';
|
2
|
+
import type { SvelteHTMLElements } from 'svelte/elements';
|
3
|
+
export interface TooltipPositionerProps extends Assign<SvelteHTMLElements['div'], {}> {
|
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 Positioner: $$__sveltets_2_IsomorphicComponent<TooltipPositionerProps, {
|
19
|
+
[evt: string]: CustomEvent<any>;
|
20
|
+
}, {}, {}, "">;
|
21
|
+
type Positioner = InstanceType<typeof Positioner>;
|
22
|
+
export default Positioner;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<script lang="ts" context="module"></script>
|
2
|
+
|
3
|
+
<script lang="ts">import { nanoid } from "nanoid/non-secure";
|
4
|
+
import { createTooltipContext, setTooltipContext } from "./context.svelte.js";
|
5
|
+
let { id = nanoid(), children, ...props } = $props();
|
6
|
+
let context = createTooltipContext({ id, ...props });
|
7
|
+
setTooltipContext(context);
|
8
|
+
</script>
|
9
|
+
|
10
|
+
{@render children?.(context)}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import type { OptionalId } from '../types.js';
|
2
|
+
import type { Snippet } from 'svelte';
|
3
|
+
import type { CreateTooltipContextProps, CreateTooltipContextReturn } from './context.svelte.js';
|
4
|
+
export interface TooltipProps extends OptionalId<CreateTooltipContextProps> {
|
5
|
+
children?: Snippet<[CreateTooltipContextReturn]>;
|
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<TooltipProps, {
|
21
|
+
[evt: string]: CustomEvent<any>;
|
22
|
+
}, {}, {}, "">;
|
23
|
+
type Root = InstanceType<typeof Root>;
|
24
|
+
export default Root;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<script lang="ts" context="module"></script>
|
2
|
+
|
3
|
+
<script lang="ts">import { mergeProps } from "@zag-js/svelte";
|
4
|
+
import { useTooltipContext } from "./context.svelte.js";
|
5
|
+
let { children, ...props } = $props();
|
6
|
+
let context = useTooltipContext();
|
7
|
+
let attrs = $derived(mergeProps(props, context.getTriggerProps()));
|
8
|
+
</script>
|
9
|
+
|
10
|
+
<button type="button" {...attrs}>
|
11
|
+
{@render children?.()}
|
12
|
+
</button>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import type { Assign } from '../types.js';
|
2
|
+
import type { SvelteHTMLElements } from 'svelte/elements';
|
3
|
+
export interface TooltipTriggerProps extends Assign<SvelteHTMLElements['button'], {}> {
|
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 Trigger: $$__sveltets_2_IsomorphicComponent<TooltipTriggerProps, {
|
19
|
+
[evt: string]: CustomEvent<any>;
|
20
|
+
}, {}, {}, "">;
|
21
|
+
type Trigger = InstanceType<typeof Trigger>;
|
22
|
+
export default Trigger;
|
package/dist/types.d.ts
ADDED
package/dist/types.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
export function makeFieldsGetterSetterIfNotFunc(o) {
|
2
|
+
let r = {};
|
3
|
+
for (const k in o) {
|
4
|
+
const v = o[k];
|
5
|
+
if (typeof v === 'function') {
|
6
|
+
r = Object.assign(r, {
|
7
|
+
[k](...args) {
|
8
|
+
return v(...args);
|
9
|
+
},
|
10
|
+
});
|
11
|
+
continue;
|
12
|
+
}
|
13
|
+
r = Object.assign(r, {
|
14
|
+
get [k]() {
|
15
|
+
return v;
|
16
|
+
},
|
17
|
+
set [k](v) {
|
18
|
+
o[k] = v;
|
19
|
+
},
|
20
|
+
});
|
21
|
+
}
|
22
|
+
return r;
|
23
|
+
}
|
24
|
+
export function splitProps() { }
|
package/package.json
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
{
|
2
|
+
"name": "ui-ingredients",
|
3
|
+
"type": "module",
|
4
|
+
"version": "0.0.1",
|
5
|
+
"packageManager": "pnpm@9.7.0",
|
6
|
+
"svelte": "./dist/index.js",
|
7
|
+
"types": "./dist/index.d.ts",
|
8
|
+
"exports": {
|
9
|
+
".": {
|
10
|
+
"types": "./dist/index.d.ts",
|
11
|
+
"svelte": "./dist/index.js"
|
12
|
+
}
|
13
|
+
},
|
14
|
+
"files": [
|
15
|
+
"dist",
|
16
|
+
"!dist/**/*.test.*",
|
17
|
+
"!dist/**/*.spec.*"
|
18
|
+
],
|
19
|
+
"author": {
|
20
|
+
"name": "John Paul Calvo",
|
21
|
+
"email": "calvojp92@gmail.com"
|
22
|
+
},
|
23
|
+
"repository": {
|
24
|
+
"type": "git",
|
25
|
+
"url": "git@github.com:calvo-jp/ui-ingredients.git"
|
26
|
+
},
|
27
|
+
"description": "Headless component library for Svelte powered by zag",
|
28
|
+
"keywords": [
|
29
|
+
"Svelte",
|
30
|
+
"Component Library",
|
31
|
+
"Headless",
|
32
|
+
"Accordion",
|
33
|
+
"Avatar",
|
34
|
+
"Carousel",
|
35
|
+
"Checkbox",
|
36
|
+
"Clipboard",
|
37
|
+
"Collapsible",
|
38
|
+
"Color Picker",
|
39
|
+
"Combobox",
|
40
|
+
"Date Picker",
|
41
|
+
"Dialog",
|
42
|
+
"Editable",
|
43
|
+
"File Upload",
|
44
|
+
"Hover Card",
|
45
|
+
"Menu",
|
46
|
+
"Number Input",
|
47
|
+
"Pagination",
|
48
|
+
"Pin Input",
|
49
|
+
"Popover",
|
50
|
+
"Presence",
|
51
|
+
"Progress",
|
52
|
+
"QR Code",
|
53
|
+
"Radio Group",
|
54
|
+
"Rating Group",
|
55
|
+
"Select",
|
56
|
+
"Signature Pad",
|
57
|
+
"Slider",
|
58
|
+
"Splitter",
|
59
|
+
"Steps",
|
60
|
+
"Switch",
|
61
|
+
"Tabs",
|
62
|
+
"Tags Input",
|
63
|
+
"Timer",
|
64
|
+
"Toast",
|
65
|
+
"Toggle Group",
|
66
|
+
"Tooltip"
|
67
|
+
],
|
68
|
+
"publishConfig": {
|
69
|
+
"access": "public"
|
70
|
+
},
|
71
|
+
"scripts": {
|
72
|
+
"dev": "vite dev",
|
73
|
+
"build": "vite build && npm run package",
|
74
|
+
"preview": "vite preview",
|
75
|
+
"package": "svelte-kit sync && svelte-package && publint",
|
76
|
+
"prepublishOnly": "npm run package",
|
77
|
+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
78
|
+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
79
|
+
"test": "vitest",
|
80
|
+
"lint": "prettier --check . && eslint .",
|
81
|
+
"format": "prettier --write .",
|
82
|
+
"release": "release-it"
|
83
|
+
},
|
84
|
+
"dependencies": {
|
85
|
+
"@zag-js/accordion": "0.65.0",
|
86
|
+
"@zag-js/avatar": "0.65.0",
|
87
|
+
"@zag-js/carousel": "0.65.0",
|
88
|
+
"@zag-js/checkbox": "0.65.0",
|
89
|
+
"@zag-js/clipboard": "0.65.0",
|
90
|
+
"@zag-js/collapsible": "0.65.0",
|
91
|
+
"@zag-js/color-picker": "0.65.0",
|
92
|
+
"@zag-js/combobox": "0.65.0",
|
93
|
+
"@zag-js/date-picker": "0.65.0",
|
94
|
+
"@zag-js/dialog": "0.65.0",
|
95
|
+
"@zag-js/editable": "0.65.0",
|
96
|
+
"@zag-js/file-upload": "0.65.0",
|
97
|
+
"@zag-js/hover-card": "0.65.0",
|
98
|
+
"@zag-js/menu": "0.65.0",
|
99
|
+
"@zag-js/number-input": "0.65.0",
|
100
|
+
"@zag-js/pagination": "0.65.0",
|
101
|
+
"@zag-js/pin-input": "0.65.0",
|
102
|
+
"@zag-js/popover": "0.65.0",
|
103
|
+
"@zag-js/presence": "0.65.0",
|
104
|
+
"@zag-js/progress": "0.65.0",
|
105
|
+
"@zag-js/qr-code": "0.65.0",
|
106
|
+
"@zag-js/radio-group": "0.65.0",
|
107
|
+
"@zag-js/rating-group": "0.65.0",
|
108
|
+
"@zag-js/select": "0.65.0",
|
109
|
+
"@zag-js/signature-pad": "0.65.0",
|
110
|
+
"@zag-js/slider": "0.65.0",
|
111
|
+
"@zag-js/splitter": "0.65.0",
|
112
|
+
"@zag-js/steps": "0.65.0",
|
113
|
+
"@zag-js/svelte": "0.65.0",
|
114
|
+
"@zag-js/switch": "0.65.0",
|
115
|
+
"@zag-js/tabs": "0.65.0",
|
116
|
+
"@zag-js/tags-input": "0.65.0",
|
117
|
+
"@zag-js/timer": "0.65.0",
|
118
|
+
"@zag-js/toast": "0.65.0",
|
119
|
+
"@zag-js/toggle-group": "0.65.0",
|
120
|
+
"@zag-js/tooltip": "0.65.0",
|
121
|
+
"nanoid": "5.0.7"
|
122
|
+
},
|
123
|
+
"peerDependencies": {
|
124
|
+
"svelte": ">=5.0.0-next.200"
|
125
|
+
},
|
126
|
+
"devDependencies": {
|
127
|
+
"@sveltejs/adapter-vercel": "5.4.3",
|
128
|
+
"@sveltejs/kit": "2.5.22",
|
129
|
+
"@sveltejs/package": "2.3.4",
|
130
|
+
"@sveltejs/vite-plugin-svelte": "3.1.1",
|
131
|
+
"@types/eslint": "9.6.0",
|
132
|
+
"autoprefixer": "10.4.20",
|
133
|
+
"eslint": "9.9.0",
|
134
|
+
"eslint-config-prettier": "9.1.0",
|
135
|
+
"eslint-plugin-svelte": "2.43.0",
|
136
|
+
"globals": "15.9.0",
|
137
|
+
"postcss": "8.4.41",
|
138
|
+
"prettier": "3.3.3",
|
139
|
+
"prettier-plugin-svelte": "3.2.6",
|
140
|
+
"publint": "0.2.10",
|
141
|
+
"release-it": "17.6.0",
|
142
|
+
"svelte": "5.0.0-next.225",
|
143
|
+
"svelte-check": "3.8.5",
|
144
|
+
"tailwindcss": "3.4.10",
|
145
|
+
"typescript": "5.5.4",
|
146
|
+
"typescript-eslint": "8.1.0",
|
147
|
+
"vite": "5.4.1",
|
148
|
+
"vitest": "2.0.5"
|
149
|
+
},
|
150
|
+
"release-it": {
|
151
|
+
"git": {
|
152
|
+
"commitMessage": "chore: release ${npm.name} v${version}",
|
153
|
+
"tagName": "${npm.name}@${version}"
|
154
|
+
},
|
155
|
+
"github": {
|
156
|
+
"release": false
|
157
|
+
},
|
158
|
+
"hooks": {
|
159
|
+
"before:init": [
|
160
|
+
"pnpm check"
|
161
|
+
],
|
162
|
+
"after:bump": [
|
163
|
+
"pnpm package"
|
164
|
+
]
|
165
|
+
}
|
166
|
+
}
|
167
|
+
}
|