@wirekyt/vue 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.cjs +273 -0
- package/dist/accordion.d.cts +195 -0
- package/dist/accordion.d.ts +195 -0
- package/dist/accordion.js +250 -0
- package/dist/angle-slider.cjs +268 -0
- package/dist/angle-slider.d.cts +228 -0
- package/dist/angle-slider.d.ts +228 -0
- package/dist/angle-slider.js +244 -0
- package/dist/avatar.cjs +145 -0
- package/dist/avatar.d.cts +114 -0
- package/dist/avatar.d.ts +114 -0
- package/dist/avatar.js +126 -0
- package/dist/boolean-BCaEpMxQ.js +6 -0
- package/dist/boolean-Dyu9-5Wp.cjs +11 -0
- package/dist/carousel.cjs +342 -0
- package/dist/carousel.d.cts +303 -0
- package/dist/carousel.d.ts +303 -0
- package/dist/carousel.js +320 -0
- package/dist/checkbox.cjs +345 -0
- package/dist/checkbox.d.cts +272 -0
- package/dist/checkbox.d.ts +272 -0
- package/dist/checkbox.js +324 -0
- package/dist/clean-props--1kqQE0Y.js +8 -0
- package/dist/clean-props-MyKqus13.cjs +13 -0
- package/dist/client-only.cjs +17 -0
- package/dist/client-only.d.cts +18 -0
- package/dist/client-only.d.ts +18 -0
- package/dist/client-only.js +16 -0
- package/dist/clipboard.cjs +229 -0
- package/dist/clipboard.d.cts +203 -0
- package/dist/clipboard.d.ts +203 -0
- package/dist/clipboard.js +206 -0
- package/dist/collapsible-BnUr4dTo.cjs +232 -0
- package/dist/collapsible-jvqnRz16.js +179 -0
- package/dist/collapsible.cjs +23 -0
- package/dist/collapsible.d.cts +161 -0
- package/dist/collapsible.d.ts +161 -0
- package/dist/collapsible.js +2 -0
- package/dist/collection-B0onOyyK.cjs +254 -0
- package/dist/collection-Dg6EtML_.js +211 -0
- package/dist/collection.cjs +9 -0
- package/dist/collection.d.cts +2 -0
- package/dist/collection.d.ts +2 -0
- package/dist/collection.js +2 -0
- package/dist/color-picker.cjs +804 -0
- package/dist/color-picker.d.cts +605 -0
- package/dist/color-picker.d.ts +605 -0
- package/dist/color-picker.js +759 -0
- package/dist/combobox.cjs +552 -0
- package/dist/combobox.d.cts +442 -0
- package/dist/combobox.d.ts +442 -0
- package/dist/combobox.js +521 -0
- package/dist/create-split-props-BBxrD7TV.js +10 -0
- package/dist/create-split-props-Jx-IEwdk.cjs +15 -0
- package/dist/date-input.cjs +293 -0
- package/dist/date-input.d.cts +212 -0
- package/dist/date-input.d.ts +212 -0
- package/dist/date-input.js +270 -0
- package/dist/date-picker.cjs +821 -0
- package/dist/date-picker.d.cts +637 -0
- package/dist/date-picker.d.ts +637 -0
- package/dist/date-picker.js +776 -0
- package/dist/dialog.cjs +333 -0
- package/dist/dialog.d.cts +272 -0
- package/dist/dialog.d.ts +272 -0
- package/dist/dialog.js +308 -0
- package/dist/download-trigger.cjs +65 -0
- package/dist/download-trigger.d.cts +34 -0
- package/dist/download-trigger.d.ts +34 -0
- package/dist/download-trigger.js +63 -0
- package/dist/drawer.cjs +448 -0
- package/dist/drawer.d.cts +346 -0
- package/dist/drawer.d.ts +346 -0
- package/dist/drawer.js +415 -0
- package/dist/editable.cjs +331 -0
- package/dist/editable.d.cts +285 -0
- package/dist/editable.d.ts +285 -0
- package/dist/editable.js +306 -0
- package/dist/factory-8Ao0DEy3.js +34 -0
- package/dist/factory-BNwuanv4.d.cts +21 -0
- package/dist/factory-BNwuanv4.d.ts +21 -0
- package/dist/factory-JL7MPjkk.cjs +45 -0
- package/dist/field-C3pLqz1S.js +435 -0
- package/dist/field-DRz-v4rB.cjs +524 -0
- package/dist/field.cjs +22 -0
- package/dist/field.d.cts +344 -0
- package/dist/field.d.ts +344 -0
- package/dist/field.js +2 -0
- package/dist/fieldset-ByP_r1Uq.js +216 -0
- package/dist/fieldset-C5aj6Ims.cjs +275 -0
- package/dist/fieldset.cjs +17 -0
- package/dist/fieldset.d.cts +159 -0
- package/dist/fieldset.d.ts +159 -0
- package/dist/fieldset.js +2 -0
- package/dist/file-upload.cjs +421 -0
- package/dist/file-upload.d.cts +327 -0
- package/dist/file-upload.d.ts +327 -0
- package/dist/file-upload.js +392 -0
- package/dist/floating-panel.cjs +412 -0
- package/dist/floating-panel.d.cts +337 -0
- package/dist/floating-panel.d.ts +337 -0
- package/dist/floating-panel.js +383 -0
- package/dist/focus-trap.cjs +79 -0
- package/dist/focus-trap.d.cts +46 -0
- package/dist/focus-trap.d.ts +46 -0
- package/dist/focus-trap.js +78 -0
- package/dist/format.cjs +116 -0
- package/dist/format.d.cts +46 -0
- package/dist/format.d.ts +46 -0
- package/dist/format.js +106 -0
- package/dist/frame.cjs +93 -0
- package/dist/frame.d.cts +37 -0
- package/dist/frame.d.ts +37 -0
- package/dist/frame.js +92 -0
- package/dist/highlight.cjs +44 -0
- package/dist/highlight.d.cts +32 -0
- package/dist/highlight.d.ts +32 -0
- package/dist/highlight.js +42 -0
- package/dist/hover-card.cjs +269 -0
- package/dist/hover-card.d.cts +202 -0
- package/dist/hover-card.d.ts +202 -0
- package/dist/hover-card.js +246 -0
- package/dist/image-cropper.cjs +252 -0
- package/dist/image-cropper.d.cts +207 -0
- package/dist/image-cropper.d.ts +207 -0
- package/dist/image-cropper.js +235 -0
- package/dist/index-B-o8jLyV.d.cts +31 -0
- package/dist/index-BSoF1D-v.d.ts +31 -0
- package/dist/index-BTNfeIXf.d.ts +104 -0
- package/dist/index-C8zR9eg3.d.ts +444 -0
- package/dist/index-Cc4qS0rQ.d.cts +38 -0
- package/dist/index-Cc4qS0rQ.d.ts +38 -0
- package/dist/index-DaLvr6SW.d.ts +37 -0
- package/dist/index-Di84rFjS.d.cts +444 -0
- package/dist/index-Dpm1wGVS.d.cts +74 -0
- package/dist/index-Zc9P69Ka.d.cts +104 -0
- package/dist/index-kCBQJqpU.d.ts +74 -0
- package/dist/index-vIbTjrJ-.d.cts +37 -0
- package/dist/index.cjs +43 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +7 -0
- package/dist/json-tree-view.cjs +346 -0
- package/dist/json-tree-view.d.cts +86 -0
- package/dist/json-tree-view.d.ts +86 -0
- package/dist/json-tree-view.js +336 -0
- package/dist/listbox.cjs +386 -0
- package/dist/listbox.d.cts +323 -0
- package/dist/listbox.d.ts +323 -0
- package/dist/listbox.js +361 -0
- package/dist/marquee.cjs +256 -0
- package/dist/marquee.d.cts +208 -0
- package/dist/marquee.d.ts +208 -0
- package/dist/marquee.js +235 -0
- package/dist/menu.cjs +650 -0
- package/dist/menu.d.cts +501 -0
- package/dist/menu.d.ts +501 -0
- package/dist/menu.js +613 -0
- package/dist/navigation-menu.cjs +408 -0
- package/dist/navigation-menu.d.cts +271 -0
- package/dist/navigation-menu.d.ts +271 -0
- package/dist/navigation-menu.js +380 -0
- package/dist/number-input.cjs +298 -0
- package/dist/number-input.d.cts +253 -0
- package/dist/number-input.d.ts +253 -0
- package/dist/number-input.js +274 -0
- package/dist/pagination.cjs +249 -0
- package/dist/pagination.d.cts +209 -0
- package/dist/pagination.d.ts +209 -0
- package/dist/pagination.js +226 -0
- package/dist/password-input.cjs +232 -0
- package/dist/password-input.d.cts +208 -0
- package/dist/password-input.d.ts +208 -0
- package/dist/password-input.js +210 -0
- package/dist/pin-input.cjs +245 -0
- package/dist/pin-input.d.cts +199 -0
- package/dist/pin-input.d.ts +199 -0
- package/dist/pin-input.js +224 -0
- package/dist/popover.cjs +377 -0
- package/dist/popover.d.cts +324 -0
- package/dist/popover.d.ts +324 -0
- package/dist/popover.js +349 -0
- package/dist/presence-DD3l4Tgb.cjs +60 -0
- package/dist/presence-jaHZaD_O.js +43 -0
- package/dist/presence.cjs +7 -0
- package/dist/presence.d.cts +3 -0
- package/dist/presence.d.ts +3 -0
- package/dist/presence.js +3 -0
- package/dist/progress.cjs +270 -0
- package/dist/progress.d.cts +229 -0
- package/dist/progress.d.ts +229 -0
- package/dist/progress.js +245 -0
- package/dist/providers-5QhcwgSd.cjs +190 -0
- package/dist/providers-C3XQH-uu.js +119 -0
- package/dist/qr-code.cjs +195 -0
- package/dist/qr-code.d.cts +157 -0
- package/dist/qr-code.d.ts +157 -0
- package/dist/qr-code.js +174 -0
- package/dist/radio-group.cjs +274 -0
- package/dist/radio-group.d.cts +230 -0
- package/dist/radio-group.d.ts +230 -0
- package/dist/radio-group.js +249 -0
- package/dist/rating-group.cjs +243 -0
- package/dist/rating-group.d.cts +200 -0
- package/dist/rating-group.d.ts +200 -0
- package/dist/rating-group.js +220 -0
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/rolldown-runtime-DakpK96I.cjs +43 -0
- package/dist/scroll-area.cjs +206 -0
- package/dist/scroll-area.d.cts +169 -0
- package/dist/scroll-area.d.ts +169 -0
- package/dist/scroll-area.js +184 -0
- package/dist/segment-group.cjs +318 -0
- package/dist/segment-group.d.cts +229 -0
- package/dist/segment-group.d.ts +229 -0
- package/dist/segment-group.js +298 -0
- package/dist/select.cjs +560 -0
- package/dist/select.d.cts +430 -0
- package/dist/select.d.ts +430 -0
- package/dist/select.js +523 -0
- package/dist/signature-pad.cjs +260 -0
- package/dist/signature-pad.d.cts +200 -0
- package/dist/signature-pad.d.ts +200 -0
- package/dist/signature-pad.js +237 -0
- package/dist/slider.cjs +350 -0
- package/dist/slider.d.cts +299 -0
- package/dist/slider.d.ts +299 -0
- package/dist/slider.js +323 -0
- package/dist/splitter.cjs +225 -0
- package/dist/splitter.d.cts +166 -0
- package/dist/splitter.d.ts +166 -0
- package/dist/splitter.js +198 -0
- package/dist/steps.cjs +348 -0
- package/dist/steps.d.cts +289 -0
- package/dist/steps.d.ts +289 -0
- package/dist/steps.js +319 -0
- package/dist/swap.cjs +154 -0
- package/dist/swap.d.cts +98 -0
- package/dist/swap.d.ts +98 -0
- package/dist/swap.js +141 -0
- package/dist/switch.cjs +213 -0
- package/dist/switch.d.cts +177 -0
- package/dist/switch.d.ts +177 -0
- package/dist/switch.js +192 -0
- package/dist/tabs.cjs +240 -0
- package/dist/tabs.d.cts +179 -0
- package/dist/tabs.d.ts +179 -0
- package/dist/tabs.js +218 -0
- package/dist/tags-input.cjs +405 -0
- package/dist/tags-input.d.cts +340 -0
- package/dist/tags-input.d.ts +340 -0
- package/dist/tags-input.js +376 -0
- package/dist/timer.cjs +221 -0
- package/dist/timer.d.cts +176 -0
- package/dist/timer.d.ts +176 -0
- package/dist/timer.js +199 -0
- package/dist/toast.cjs +211 -0
- package/dist/toast.d.cts +157 -0
- package/dist/toast.d.ts +157 -0
- package/dist/toast.js +189 -0
- package/dist/toggle-group.cjs +150 -0
- package/dist/toggle-group.d.cts +122 -0
- package/dist/toggle-group.d.ts +122 -0
- package/dist/toggle-group.js +132 -0
- package/dist/toggle.cjs +107 -0
- package/dist/toggle.d.cts +98 -0
- package/dist/toggle.d.ts +98 -0
- package/dist/toggle.js +94 -0
- package/dist/tooltip.cjs +265 -0
- package/dist/tooltip.d.cts +204 -0
- package/dist/tooltip.d.ts +204 -0
- package/dist/tooltip.js +242 -0
- package/dist/tour.cjs +418 -0
- package/dist/tour.d.cts +304 -0
- package/dist/tour.d.ts +304 -0
- package/dist/tour.js +374 -0
- package/dist/tree-view-DnTVwhew.cjs +651 -0
- package/dist/tree-view-goUH3_RC.js +508 -0
- package/dist/tree-view.cjs +41 -0
- package/dist/tree-view.d.cts +3 -0
- package/dist/tree-view.d.ts +3 -0
- package/dist/tree-view.js +3 -0
- package/dist/types-rSRkzyd6.d.cts +13 -0
- package/dist/types-rSRkzyd6.d.ts +13 -0
- package/dist/use-presence-BSp_dR-C.d.cts +22 -0
- package/dist/use-presence-CtEY6ZT8.cjs +49 -0
- package/dist/use-presence-DkGU_j9h.d.ts +22 -0
- package/dist/use-presence-oNdFU2c2.js +42 -0
- package/dist/utils-D95V66v9.js +548 -0
- package/dist/utils-XrBZd2Yk.cjs +625 -0
- package/package.json +277 -6
package/dist/tooltip.cjs
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
|
|
3
|
+
const require_utils = require("./utils-XrBZd2Yk.cjs");
|
|
4
|
+
const require_providers = require("./providers-5QhcwgSd.cjs");
|
|
5
|
+
const require_clean_props = require("./clean-props-MyKqus13.cjs");
|
|
6
|
+
const require_factory = require("./factory-JL7MPjkk.cjs");
|
|
7
|
+
const require_presence = require("./presence-DD3l4Tgb.cjs");
|
|
8
|
+
const require_use_presence = require("./use-presence-CtEY6ZT8.cjs");
|
|
9
|
+
let vue = require("vue");
|
|
10
|
+
let _wirekyt_dom_machines_tooltip = require("@wirekyt/dom/machines/tooltip");
|
|
11
|
+
_wirekyt_dom_machines_tooltip = require_rolldown_runtime.__toESM(_wirekyt_dom_machines_tooltip, 1);
|
|
12
|
+
let _wirekyt_dom = require("@wirekyt/dom");
|
|
13
|
+
//#region src/components/tooltip/use-context.ts
|
|
14
|
+
const [TooltipProvider, useTooltipContext] = require_utils.createContext("TooltipContext");
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/tooltip/arrow-tip.vue
|
|
17
|
+
const _sfc_main$1 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
18
|
+
__name: "arrow-tip",
|
|
19
|
+
props: { asChild: { type: Boolean } },
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const tooltip = useTooltipContext();
|
|
22
|
+
require_utils.useForwardExpose();
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(tooltip).getArrowTipProps(), { "as-child": __props.asChild }), {
|
|
25
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16, ["as-child"]);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/tooltip/arrow.vue
|
|
33
|
+
const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
34
|
+
__name: "arrow",
|
|
35
|
+
props: { asChild: { type: Boolean } },
|
|
36
|
+
setup(__props) {
|
|
37
|
+
const tooltip = useTooltipContext();
|
|
38
|
+
require_utils.useForwardExpose();
|
|
39
|
+
return (_ctx, _cache) => {
|
|
40
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(tooltip).getArrowProps(), { "as-child": __props.asChild }), {
|
|
41
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
42
|
+
_: 3
|
|
43
|
+
}, 16, ["as-child"]);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/components/tooltip/content.vue
|
|
49
|
+
const _sfc_main$2 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
50
|
+
__name: "content",
|
|
51
|
+
props: { asChild: { type: Boolean } },
|
|
52
|
+
setup(__props) {
|
|
53
|
+
const tooltip = useTooltipContext();
|
|
54
|
+
const presence = require_presence.usePresenceContext();
|
|
55
|
+
const mergedProps = (0, vue.computed)(() => (0, _wirekyt_dom.mergeProps)(tooltip.value.getContentProps(), presence.value.presenceProps));
|
|
56
|
+
require_utils.useForwardExpose();
|
|
57
|
+
return (_ctx, _cache) => {
|
|
58
|
+
return !(0, vue.unref)(presence).unmounted ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)({ key: 0 }, mergedProps.value, { "as-child": __props.asChild }), {
|
|
59
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
60
|
+
_: 3
|
|
61
|
+
}, 16, ["as-child"])) : (0, vue.createCommentVNode)("v-if", true);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/tooltip/context.vue
|
|
67
|
+
const _sfc_main$3 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
68
|
+
__name: "context",
|
|
69
|
+
setup(__props) {
|
|
70
|
+
const tooltip = useTooltipContext();
|
|
71
|
+
return (_ctx, _cache) => {
|
|
72
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default", (0, vue.normalizeProps)((0, vue.guardReactiveProps)((0, vue.unref)(tooltip))));
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/components/tooltip/positioner.vue
|
|
78
|
+
const _sfc_main$4 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
79
|
+
__name: "positioner",
|
|
80
|
+
props: { asChild: { type: Boolean } },
|
|
81
|
+
setup(__props) {
|
|
82
|
+
const tooltip = useTooltipContext();
|
|
83
|
+
const presence = require_presence.usePresenceContext();
|
|
84
|
+
require_utils.useForwardExpose();
|
|
85
|
+
return (_ctx, _cache) => {
|
|
86
|
+
return !(0, vue.unref)(presence).unmounted ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)({ key: 0 }, (0, vue.unref)(tooltip).getPositionerProps(), { "as-child": __props.asChild }), {
|
|
87
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
88
|
+
_: 3
|
|
89
|
+
}, 16, ["as-child"])) : (0, vue.createCommentVNode)("v-if", true);
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/components/tooltip/root-provider.vue
|
|
95
|
+
const _sfc_main$6 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
96
|
+
__name: "root-provider",
|
|
97
|
+
props: {
|
|
98
|
+
value: {},
|
|
99
|
+
lazyMount: { type: Boolean },
|
|
100
|
+
unmountOnExit: { type: Boolean }
|
|
101
|
+
},
|
|
102
|
+
emits: ["exitComplete"],
|
|
103
|
+
setup(__props, { emit: __emit }) {
|
|
104
|
+
const props = __props;
|
|
105
|
+
const emits = __emit;
|
|
106
|
+
const tooltip = (0, vue.computed)(() => props.value);
|
|
107
|
+
const presence = require_use_presence.usePresence((0, vue.computed)(() => ({
|
|
108
|
+
present: tooltip.value.open,
|
|
109
|
+
lazyMount: props.lazyMount,
|
|
110
|
+
unmountOnExit: props.unmountOnExit
|
|
111
|
+
})), emits);
|
|
112
|
+
TooltipProvider(tooltip);
|
|
113
|
+
require_presence.PresenceProvider(presence);
|
|
114
|
+
require_utils.RenderStrategyPropsProvider((0, vue.computed)(() => ({
|
|
115
|
+
lazyMount: props.lazyMount,
|
|
116
|
+
unmountOnExit: props.unmountOnExit
|
|
117
|
+
})));
|
|
118
|
+
require_utils.useForwardExpose();
|
|
119
|
+
return (_ctx, _cache) => {
|
|
120
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default");
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region src/components/tooltip/use-tooltip.ts
|
|
126
|
+
const useTooltip = (props = {}, emit) => {
|
|
127
|
+
const id = (0, vue.useId)();
|
|
128
|
+
const env = require_providers.useEnvironmentContext(require_providers.DEFAULT_ENVIRONMENT);
|
|
129
|
+
const locale = require_providers.useLocaleContext(require_providers.DEFAULT_LOCALE);
|
|
130
|
+
const context = (0, vue.computed)(() => {
|
|
131
|
+
const localProps = (0, vue.toValue)(props);
|
|
132
|
+
return {
|
|
133
|
+
id,
|
|
134
|
+
dir: locale.value.dir,
|
|
135
|
+
getRootNode: env?.value.getRootNode,
|
|
136
|
+
...require_clean_props.cleanProps(localProps),
|
|
137
|
+
onOpenChange: (details) => {
|
|
138
|
+
emit?.("openChange", details);
|
|
139
|
+
emit?.("update:open", details.open);
|
|
140
|
+
localProps.onOpenChange?.(details);
|
|
141
|
+
},
|
|
142
|
+
onTriggerValueChange: (details) => {
|
|
143
|
+
emit?.("triggerValueChange", details);
|
|
144
|
+
localProps.onTriggerValueChange?.(details);
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
});
|
|
148
|
+
const service = require_utils.useMachine(_wirekyt_dom_machines_tooltip.machine, context);
|
|
149
|
+
return (0, vue.computed)(() => _wirekyt_dom_machines_tooltip.connect(service, require_utils.normalizeProps));
|
|
150
|
+
};
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region src/components/tooltip/root.vue
|
|
153
|
+
const _sfc_main$5 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
154
|
+
__name: "root",
|
|
155
|
+
props: /*@__PURE__*/ (0, vue.mergeDefaults)({
|
|
156
|
+
"aria-label": {},
|
|
157
|
+
closeDelay: {},
|
|
158
|
+
closeOnClick: { type: Boolean },
|
|
159
|
+
closeOnEscape: { type: Boolean },
|
|
160
|
+
closeOnPointerDown: { type: Boolean },
|
|
161
|
+
closeOnScroll: { type: Boolean },
|
|
162
|
+
defaultOpen: { type: Boolean },
|
|
163
|
+
disabled: { type: Boolean },
|
|
164
|
+
id: {},
|
|
165
|
+
ids: {},
|
|
166
|
+
interactive: { type: Boolean },
|
|
167
|
+
open: { type: Boolean },
|
|
168
|
+
openDelay: {},
|
|
169
|
+
positioning: {},
|
|
170
|
+
triggerValue: {},
|
|
171
|
+
defaultTriggerValue: {},
|
|
172
|
+
lazyMount: { type: Boolean },
|
|
173
|
+
unmountOnExit: { type: Boolean }
|
|
174
|
+
}, {
|
|
175
|
+
closeOnClick: void 0,
|
|
176
|
+
closeOnEscape: void 0,
|
|
177
|
+
closeOnPointerDown: void 0,
|
|
178
|
+
closeOnScroll: void 0,
|
|
179
|
+
defaultOpen: void 0,
|
|
180
|
+
disabled: void 0,
|
|
181
|
+
interactive: void 0,
|
|
182
|
+
open: void 0
|
|
183
|
+
}),
|
|
184
|
+
emits: [
|
|
185
|
+
"exitComplete",
|
|
186
|
+
"openChange",
|
|
187
|
+
"triggerValueChange",
|
|
188
|
+
"update:open"
|
|
189
|
+
],
|
|
190
|
+
setup(__props, { emit: __emit }) {
|
|
191
|
+
const props = __props;
|
|
192
|
+
const emits = __emit;
|
|
193
|
+
const tooltip = useTooltip(props, emits);
|
|
194
|
+
const presence = require_use_presence.usePresence((0, vue.computed)(() => ({
|
|
195
|
+
present: tooltip.value.open,
|
|
196
|
+
lazyMount: props.lazyMount,
|
|
197
|
+
unmountOnExit: props.unmountOnExit
|
|
198
|
+
})), emits);
|
|
199
|
+
TooltipProvider(tooltip);
|
|
200
|
+
require_presence.PresenceProvider(presence);
|
|
201
|
+
require_utils.RenderStrategyPropsProvider((0, vue.computed)(() => ({
|
|
202
|
+
lazyMount: props.lazyMount,
|
|
203
|
+
unmountOnExit: props.unmountOnExit
|
|
204
|
+
})));
|
|
205
|
+
require_utils.useForwardExpose();
|
|
206
|
+
return (_ctx, _cache) => {
|
|
207
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default");
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region src/components/tooltip/trigger.vue
|
|
213
|
+
const _sfc_main$7 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
214
|
+
__name: "trigger",
|
|
215
|
+
props: {
|
|
216
|
+
value: {},
|
|
217
|
+
asChild: { type: Boolean }
|
|
218
|
+
},
|
|
219
|
+
setup(__props) {
|
|
220
|
+
const props = __props;
|
|
221
|
+
const tooltip = useTooltipContext();
|
|
222
|
+
require_utils.useForwardExpose();
|
|
223
|
+
return (_ctx, _cache) => {
|
|
224
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).button, (0, vue.mergeProps)((0, vue.unref)(tooltip).getTriggerProps(props), { "as-child": __props.asChild }), {
|
|
225
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
226
|
+
_: 3
|
|
227
|
+
}, 16, ["as-child"]);
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
//#endregion
|
|
232
|
+
//#region src/components/tooltip/tooltip.ts
|
|
233
|
+
var tooltip_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
234
|
+
Arrow: () => _sfc_main,
|
|
235
|
+
ArrowTip: () => _sfc_main$1,
|
|
236
|
+
Content: () => _sfc_main$2,
|
|
237
|
+
Context: () => _sfc_main$3,
|
|
238
|
+
Positioner: () => _sfc_main$4,
|
|
239
|
+
Root: () => _sfc_main$5,
|
|
240
|
+
RootProvider: () => _sfc_main$6,
|
|
241
|
+
Trigger: () => _sfc_main$7
|
|
242
|
+
});
|
|
243
|
+
//#endregion
|
|
244
|
+
Object.defineProperty(exports, "Tooltip", {
|
|
245
|
+
enumerable: true,
|
|
246
|
+
get: function() {
|
|
247
|
+
return tooltip_exports;
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
exports.TooltipArrow = _sfc_main;
|
|
251
|
+
exports.TooltipArrowTip = _sfc_main$1;
|
|
252
|
+
exports.TooltipContent = _sfc_main$2;
|
|
253
|
+
exports.TooltipContext = _sfc_main$3;
|
|
254
|
+
exports.TooltipPositioner = _sfc_main$4;
|
|
255
|
+
exports.TooltipRoot = _sfc_main$5;
|
|
256
|
+
exports.TooltipRootProvider = _sfc_main$6;
|
|
257
|
+
exports.TooltipTrigger = _sfc_main$7;
|
|
258
|
+
Object.defineProperty(exports, "tooltipAnatomy", {
|
|
259
|
+
enumerable: true,
|
|
260
|
+
get: function() {
|
|
261
|
+
return _wirekyt_dom_machines_tooltip.anatomy;
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
exports.useTooltip = useTooltip;
|
|
265
|
+
exports.useTooltipContext = useTooltipContext;
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { a as PolymorphicProps } from "./factory-BNwuanv4.cjs";
|
|
2
|
+
import { t as RootEmits$1 } from "./types-rSRkzyd6.cjs";
|
|
3
|
+
import { i as EmitFn$1, l as PropTypes, o as Optional } from "./index-B-o8jLyV.cjs";
|
|
4
|
+
import { n as RenderStrategyProps } from "./index-Cc4qS0rQ.cjs";
|
|
5
|
+
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
6
|
+
import * as tooltip from "@wirekyt/dom/machines/tooltip";
|
|
7
|
+
import { OpenChangeDetails, OpenChangeDetails as TooltipOpenChangeDetails, TriggerProps, TriggerValueChangeDetails, TriggerValueChangeDetails as TooltipTriggerValueChangeDetails, anatomy as tooltipAnatomy } from "@wirekyt/dom/machines/tooltip";
|
|
8
|
+
//#region src/components/tooltip/arrow-tip.vue.d.ts
|
|
9
|
+
interface TooltipArrowTipBaseProps extends PolymorphicProps {}
|
|
10
|
+
interface TooltipArrowTipProps extends TooltipArrowTipBaseProps,
|
|
11
|
+
/**
|
|
12
|
+
* @vue-ignore
|
|
13
|
+
*/
|
|
14
|
+
HTMLAttributes {}
|
|
15
|
+
declare const _default$1: typeof __VLS_export$7;
|
|
16
|
+
declare const __VLS_export$7: __VLS_WithSlots$7<import("vue").DefineComponent<TooltipArrowTipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipArrowTipProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
17
|
+
default?: (props: {}) => any;
|
|
18
|
+
}>;
|
|
19
|
+
type __VLS_WithSlots$7<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/components/tooltip/arrow.vue.d.ts
|
|
26
|
+
interface TooltipArrowBaseProps extends PolymorphicProps {}
|
|
27
|
+
interface TooltipArrowProps extends TooltipArrowBaseProps,
|
|
28
|
+
/**
|
|
29
|
+
* @vue-ignore
|
|
30
|
+
*/
|
|
31
|
+
HTMLAttributes {}
|
|
32
|
+
declare const _default: typeof __VLS_export$6;
|
|
33
|
+
declare const __VLS_export$6: __VLS_WithSlots$6<import("vue").DefineComponent<TooltipArrowProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
34
|
+
default?: (props: {}) => any;
|
|
35
|
+
}>;
|
|
36
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/components/tooltip/content.vue.d.ts
|
|
43
|
+
interface TooltipContentBaseProps extends PolymorphicProps {}
|
|
44
|
+
interface TooltipContentProps extends TooltipContentBaseProps,
|
|
45
|
+
/**
|
|
46
|
+
* @vue-ignore
|
|
47
|
+
*/
|
|
48
|
+
HTMLAttributes {}
|
|
49
|
+
declare const _default$2: typeof __VLS_export$5;
|
|
50
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<import("vue").DefineComponent<TooltipContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
51
|
+
default?: (props: {}) => any;
|
|
52
|
+
}>;
|
|
53
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/components/tooltip/types.d.ts
|
|
60
|
+
interface RootProps {
|
|
61
|
+
"aria-label"?: string;
|
|
62
|
+
closeDelay?: number;
|
|
63
|
+
closeOnClick?: boolean;
|
|
64
|
+
closeOnEscape?: boolean;
|
|
65
|
+
closeOnPointerDown?: boolean;
|
|
66
|
+
closeOnScroll?: boolean;
|
|
67
|
+
defaultOpen?: boolean;
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
id?: string;
|
|
70
|
+
ids?: Partial<{
|
|
71
|
+
trigger: string;
|
|
72
|
+
content: string;
|
|
73
|
+
arrow: string;
|
|
74
|
+
positioner: string;
|
|
75
|
+
}>;
|
|
76
|
+
interactive?: boolean;
|
|
77
|
+
open?: boolean;
|
|
78
|
+
openDelay?: number;
|
|
79
|
+
positioning?: tooltip.PositioningOptions;
|
|
80
|
+
triggerValue?: string | null;
|
|
81
|
+
defaultTriggerValue?: string | null;
|
|
82
|
+
}
|
|
83
|
+
type RootEmits = {
|
|
84
|
+
exitComplete: [];
|
|
85
|
+
openChange: [details: tooltip.OpenChangeDetails];
|
|
86
|
+
triggerValueChange: [details: tooltip.TriggerValueChangeDetails];
|
|
87
|
+
"update:open": [open: boolean];
|
|
88
|
+
};
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/components/tooltip/use-tooltip.d.ts
|
|
91
|
+
interface UseTooltipProps extends Optional<Omit<tooltip.Props, "dir" | "getRootNode">, "id"> {}
|
|
92
|
+
interface UseTooltipReturn extends ComputedRef<tooltip.Api<PropTypes>> {}
|
|
93
|
+
declare const useTooltip: (props?: MaybeRef<UseTooltipProps>, emit?: EmitFn$1<RootEmits>) => UseTooltipReturn;
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/components/tooltip/use-context.d.ts
|
|
96
|
+
interface UseTooltipContext extends UseTooltipReturn {}
|
|
97
|
+
declare const TooltipProvider: (opts: UseTooltipContext) => void, useTooltipContext: (fallback?: UseTooltipContext | undefined) => UseTooltipContext;
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/components/tooltip/context.vue.d.ts
|
|
100
|
+
interface TooltipContextProps extends SlotsType<{
|
|
101
|
+
default: UnwrapRef<UseTooltipContext>;
|
|
102
|
+
}> {}
|
|
103
|
+
declare const _default$3: typeof __VLS_export$4;
|
|
104
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
105
|
+
default(tooltip: UnwrapRef<UseTooltipContext>): unknown;
|
|
106
|
+
}>;
|
|
107
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
108
|
+
new (): {
|
|
109
|
+
$slots: S;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region src/components/tooltip/positioner.vue.d.ts
|
|
114
|
+
interface TooltipPositionerBaseProps extends PolymorphicProps {}
|
|
115
|
+
interface TooltipPositionerProps extends TooltipPositionerBaseProps,
|
|
116
|
+
/**
|
|
117
|
+
* @vue-ignore
|
|
118
|
+
*/
|
|
119
|
+
HTMLAttributes {}
|
|
120
|
+
declare const _default$4: typeof __VLS_export$3;
|
|
121
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<import("vue").DefineComponent<TooltipPositionerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipPositionerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
122
|
+
default?: (props: {}) => any;
|
|
123
|
+
}>;
|
|
124
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
125
|
+
new (): {
|
|
126
|
+
$slots: S;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/components/tooltip/root-provider.vue.d.ts
|
|
131
|
+
interface RootProviderProps {
|
|
132
|
+
value: UnwrapRef<UseTooltipReturn>;
|
|
133
|
+
}
|
|
134
|
+
interface TooltipRootProviderBaseProps extends RootProviderProps, RenderStrategyProps {}
|
|
135
|
+
interface TooltipRootProviderProps extends TooltipRootProviderBaseProps {}
|
|
136
|
+
interface TooltipRootProviderEmits extends RootEmits$1 {}
|
|
137
|
+
declare const _default$6: typeof __VLS_export$2;
|
|
138
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<TooltipRootProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
139
|
+
exitComplete: () => any;
|
|
140
|
+
}, string, import("vue").PublicProps, Readonly<TooltipRootProviderProps> & Readonly<{
|
|
141
|
+
onExitComplete?: (() => any) | undefined;
|
|
142
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
143
|
+
default?: (props: {}) => any;
|
|
144
|
+
}>;
|
|
145
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
146
|
+
new (): {
|
|
147
|
+
$slots: S;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region src/components/tooltip/root.vue.d.ts
|
|
152
|
+
interface TooltipRootBaseProps extends RootProps, RenderStrategyProps {}
|
|
153
|
+
interface TooltipRootProps extends TooltipRootBaseProps {}
|
|
154
|
+
interface TooltipRootEmits extends RootEmits {}
|
|
155
|
+
declare const _default$5: typeof __VLS_export$1;
|
|
156
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<TooltipRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
157
|
+
exitComplete: () => any;
|
|
158
|
+
openChange: (details: import("@wirekyt/dom/machines/tooltip").OpenChangeDetails) => any;
|
|
159
|
+
"update:open": (open: boolean) => any;
|
|
160
|
+
triggerValueChange: (details: import("@wirekyt/dom/machines/tooltip").TriggerValueChangeDetails) => any;
|
|
161
|
+
}, string, import("vue").PublicProps, Readonly<TooltipRootProps> & Readonly<{
|
|
162
|
+
onExitComplete?: (() => any) | undefined;
|
|
163
|
+
onOpenChange?: ((details: import("@wirekyt/dom/machines/tooltip").OpenChangeDetails) => any) | undefined;
|
|
164
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
165
|
+
onTriggerValueChange?: ((details: import("@wirekyt/dom/machines/tooltip").TriggerValueChangeDetails) => any) | undefined;
|
|
166
|
+
}>, {
|
|
167
|
+
disabled: boolean;
|
|
168
|
+
open: boolean;
|
|
169
|
+
defaultOpen: boolean;
|
|
170
|
+
closeOnPointerDown: boolean;
|
|
171
|
+
closeOnEscape: boolean;
|
|
172
|
+
closeOnScroll: boolean;
|
|
173
|
+
closeOnClick: boolean;
|
|
174
|
+
interactive: boolean;
|
|
175
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
176
|
+
default?: (props: {}) => any;
|
|
177
|
+
}>;
|
|
178
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
179
|
+
new (): {
|
|
180
|
+
$slots: S;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region src/components/tooltip/trigger.vue.d.ts
|
|
185
|
+
interface TooltipTriggerBaseProps extends TriggerProps, PolymorphicProps {}
|
|
186
|
+
interface TooltipTriggerProps extends TooltipTriggerBaseProps,
|
|
187
|
+
/**
|
|
188
|
+
* @vue-ignore
|
|
189
|
+
*/
|
|
190
|
+
Omit<ButtonHTMLAttributes, "value"> {}
|
|
191
|
+
declare const _default$7: typeof __VLS_export;
|
|
192
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<TooltipTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
193
|
+
default?: (props: {}) => any;
|
|
194
|
+
}>;
|
|
195
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
196
|
+
new (): {
|
|
197
|
+
$slots: S;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
declare namespace tooltip_d_exports {
|
|
201
|
+
export { _default as Arrow, TooltipArrowBaseProps as ArrowBaseProps, TooltipArrowProps as ArrowProps, _default$1 as ArrowTip, TooltipArrowTipBaseProps as ArrowTipBaseProps, TooltipArrowTipProps as ArrowTipProps, _default$2 as Content, TooltipContentBaseProps as ContentBaseProps, TooltipContentProps as ContentProps, _default$3 as Context, TooltipContextProps as ContextProps, OpenChangeDetails, _default$4 as Positioner, TooltipPositionerBaseProps as PositionerBaseProps, TooltipPositionerProps as PositionerProps, _default$5 as Root, TooltipRootBaseProps as RootBaseProps, TooltipRootEmits as RootEmits, TooltipRootProps as RootProps, _default$6 as RootProvider, TooltipRootProviderBaseProps as RootProviderBaseProps, TooltipRootProviderProps as RootProviderProps, _default$7 as Trigger, TooltipTriggerBaseProps as TriggerBaseProps, TooltipTriggerProps as TriggerProps, TriggerValueChangeDetails };
|
|
202
|
+
}
|
|
203
|
+
//#endregion
|
|
204
|
+
export { tooltip_d_exports as Tooltip, _default as TooltipArrow, type TooltipArrowBaseProps, type TooltipArrowProps, _default$1 as TooltipArrowTip, type TooltipArrowTipBaseProps, type TooltipArrowTipProps, _default$2 as TooltipContent, type TooltipContentBaseProps, type TooltipContentProps, _default$3 as TooltipContext, type TooltipContextProps, type TooltipOpenChangeDetails, _default$4 as TooltipPositioner, type TooltipPositionerBaseProps, type TooltipPositionerProps, _default$5 as TooltipRoot, type TooltipRootBaseProps, type TooltipRootEmits, type TooltipRootProps, _default$6 as TooltipRootProvider, type TooltipRootProviderBaseProps, type TooltipRootProviderEmits, type TooltipRootProviderProps, _default$7 as TooltipTrigger, type TooltipTriggerBaseProps, type TooltipTriggerProps, type TooltipTriggerValueChangeDetails, type UseTooltipContext, type UseTooltipProps, type UseTooltipReturn, tooltipAnatomy, useTooltip, useTooltipContext };
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { a as PolymorphicProps } from "./factory-BNwuanv4.js";
|
|
2
|
+
import { t as RootEmits$1 } from "./types-rSRkzyd6.js";
|
|
3
|
+
import { i as EmitFn$1, l as PropTypes, o as Optional } from "./index-BSoF1D-v.js";
|
|
4
|
+
import { n as RenderStrategyProps } from "./index-Cc4qS0rQ.js";
|
|
5
|
+
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
6
|
+
import * as tooltip from "@wirekyt/dom/machines/tooltip";
|
|
7
|
+
import { OpenChangeDetails, OpenChangeDetails as TooltipOpenChangeDetails, TriggerProps, TriggerValueChangeDetails, TriggerValueChangeDetails as TooltipTriggerValueChangeDetails, anatomy as tooltipAnatomy } from "@wirekyt/dom/machines/tooltip";
|
|
8
|
+
//#region src/components/tooltip/arrow-tip.vue.d.ts
|
|
9
|
+
interface TooltipArrowTipBaseProps extends PolymorphicProps {}
|
|
10
|
+
interface TooltipArrowTipProps extends TooltipArrowTipBaseProps,
|
|
11
|
+
/**
|
|
12
|
+
* @vue-ignore
|
|
13
|
+
*/
|
|
14
|
+
HTMLAttributes {}
|
|
15
|
+
declare const _default$1: typeof __VLS_export$7;
|
|
16
|
+
declare const __VLS_export$7: __VLS_WithSlots$7<import("vue").DefineComponent<TooltipArrowTipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipArrowTipProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
17
|
+
default?: (props: {}) => any;
|
|
18
|
+
}>;
|
|
19
|
+
type __VLS_WithSlots$7<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/components/tooltip/arrow.vue.d.ts
|
|
26
|
+
interface TooltipArrowBaseProps extends PolymorphicProps {}
|
|
27
|
+
interface TooltipArrowProps extends TooltipArrowBaseProps,
|
|
28
|
+
/**
|
|
29
|
+
* @vue-ignore
|
|
30
|
+
*/
|
|
31
|
+
HTMLAttributes {}
|
|
32
|
+
declare const _default: typeof __VLS_export$6;
|
|
33
|
+
declare const __VLS_export$6: __VLS_WithSlots$6<import("vue").DefineComponent<TooltipArrowProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
34
|
+
default?: (props: {}) => any;
|
|
35
|
+
}>;
|
|
36
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/components/tooltip/content.vue.d.ts
|
|
43
|
+
interface TooltipContentBaseProps extends PolymorphicProps {}
|
|
44
|
+
interface TooltipContentProps extends TooltipContentBaseProps,
|
|
45
|
+
/**
|
|
46
|
+
* @vue-ignore
|
|
47
|
+
*/
|
|
48
|
+
HTMLAttributes {}
|
|
49
|
+
declare const _default$2: typeof __VLS_export$5;
|
|
50
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<import("vue").DefineComponent<TooltipContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
51
|
+
default?: (props: {}) => any;
|
|
52
|
+
}>;
|
|
53
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/components/tooltip/types.d.ts
|
|
60
|
+
interface RootProps {
|
|
61
|
+
"aria-label"?: string;
|
|
62
|
+
closeDelay?: number;
|
|
63
|
+
closeOnClick?: boolean;
|
|
64
|
+
closeOnEscape?: boolean;
|
|
65
|
+
closeOnPointerDown?: boolean;
|
|
66
|
+
closeOnScroll?: boolean;
|
|
67
|
+
defaultOpen?: boolean;
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
id?: string;
|
|
70
|
+
ids?: Partial<{
|
|
71
|
+
trigger: string;
|
|
72
|
+
content: string;
|
|
73
|
+
arrow: string;
|
|
74
|
+
positioner: string;
|
|
75
|
+
}>;
|
|
76
|
+
interactive?: boolean;
|
|
77
|
+
open?: boolean;
|
|
78
|
+
openDelay?: number;
|
|
79
|
+
positioning?: tooltip.PositioningOptions;
|
|
80
|
+
triggerValue?: string | null;
|
|
81
|
+
defaultTriggerValue?: string | null;
|
|
82
|
+
}
|
|
83
|
+
type RootEmits = {
|
|
84
|
+
exitComplete: [];
|
|
85
|
+
openChange: [details: tooltip.OpenChangeDetails];
|
|
86
|
+
triggerValueChange: [details: tooltip.TriggerValueChangeDetails];
|
|
87
|
+
"update:open": [open: boolean];
|
|
88
|
+
};
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/components/tooltip/use-tooltip.d.ts
|
|
91
|
+
interface UseTooltipProps extends Optional<Omit<tooltip.Props, "dir" | "getRootNode">, "id"> {}
|
|
92
|
+
interface UseTooltipReturn extends ComputedRef<tooltip.Api<PropTypes>> {}
|
|
93
|
+
declare const useTooltip: (props?: MaybeRef<UseTooltipProps>, emit?: EmitFn$1<RootEmits>) => UseTooltipReturn;
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/components/tooltip/use-context.d.ts
|
|
96
|
+
interface UseTooltipContext extends UseTooltipReturn {}
|
|
97
|
+
declare const TooltipProvider: (opts: UseTooltipContext) => void, useTooltipContext: (fallback?: UseTooltipContext | undefined) => UseTooltipContext;
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/components/tooltip/context.vue.d.ts
|
|
100
|
+
interface TooltipContextProps extends SlotsType<{
|
|
101
|
+
default: UnwrapRef<UseTooltipContext>;
|
|
102
|
+
}> {}
|
|
103
|
+
declare const _default$3: typeof __VLS_export$4;
|
|
104
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
105
|
+
default(tooltip: UnwrapRef<UseTooltipContext>): unknown;
|
|
106
|
+
}>;
|
|
107
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
108
|
+
new (): {
|
|
109
|
+
$slots: S;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region src/components/tooltip/positioner.vue.d.ts
|
|
114
|
+
interface TooltipPositionerBaseProps extends PolymorphicProps {}
|
|
115
|
+
interface TooltipPositionerProps extends TooltipPositionerBaseProps,
|
|
116
|
+
/**
|
|
117
|
+
* @vue-ignore
|
|
118
|
+
*/
|
|
119
|
+
HTMLAttributes {}
|
|
120
|
+
declare const _default$4: typeof __VLS_export$3;
|
|
121
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<import("vue").DefineComponent<TooltipPositionerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipPositionerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
122
|
+
default?: (props: {}) => any;
|
|
123
|
+
}>;
|
|
124
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
125
|
+
new (): {
|
|
126
|
+
$slots: S;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/components/tooltip/root-provider.vue.d.ts
|
|
131
|
+
interface RootProviderProps {
|
|
132
|
+
value: UnwrapRef<UseTooltipReturn>;
|
|
133
|
+
}
|
|
134
|
+
interface TooltipRootProviderBaseProps extends RootProviderProps, RenderStrategyProps {}
|
|
135
|
+
interface TooltipRootProviderProps extends TooltipRootProviderBaseProps {}
|
|
136
|
+
interface TooltipRootProviderEmits extends RootEmits$1 {}
|
|
137
|
+
declare const _default$6: typeof __VLS_export$2;
|
|
138
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<TooltipRootProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
139
|
+
exitComplete: () => any;
|
|
140
|
+
}, string, import("vue").PublicProps, Readonly<TooltipRootProviderProps> & Readonly<{
|
|
141
|
+
onExitComplete?: (() => any) | undefined;
|
|
142
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
143
|
+
default?: (props: {}) => any;
|
|
144
|
+
}>;
|
|
145
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
146
|
+
new (): {
|
|
147
|
+
$slots: S;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region src/components/tooltip/root.vue.d.ts
|
|
152
|
+
interface TooltipRootBaseProps extends RootProps, RenderStrategyProps {}
|
|
153
|
+
interface TooltipRootProps extends TooltipRootBaseProps {}
|
|
154
|
+
interface TooltipRootEmits extends RootEmits {}
|
|
155
|
+
declare const _default$5: typeof __VLS_export$1;
|
|
156
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<TooltipRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
157
|
+
exitComplete: () => any;
|
|
158
|
+
openChange: (details: import("@wirekyt/dom/machines/tooltip").OpenChangeDetails) => any;
|
|
159
|
+
"update:open": (open: boolean) => any;
|
|
160
|
+
triggerValueChange: (details: import("@wirekyt/dom/machines/tooltip").TriggerValueChangeDetails) => any;
|
|
161
|
+
}, string, import("vue").PublicProps, Readonly<TooltipRootProps> & Readonly<{
|
|
162
|
+
onExitComplete?: (() => any) | undefined;
|
|
163
|
+
onOpenChange?: ((details: import("@wirekyt/dom/machines/tooltip").OpenChangeDetails) => any) | undefined;
|
|
164
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
165
|
+
onTriggerValueChange?: ((details: import("@wirekyt/dom/machines/tooltip").TriggerValueChangeDetails) => any) | undefined;
|
|
166
|
+
}>, {
|
|
167
|
+
disabled: boolean;
|
|
168
|
+
open: boolean;
|
|
169
|
+
defaultOpen: boolean;
|
|
170
|
+
closeOnPointerDown: boolean;
|
|
171
|
+
closeOnEscape: boolean;
|
|
172
|
+
closeOnScroll: boolean;
|
|
173
|
+
closeOnClick: boolean;
|
|
174
|
+
interactive: boolean;
|
|
175
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
176
|
+
default?: (props: {}) => any;
|
|
177
|
+
}>;
|
|
178
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
179
|
+
new (): {
|
|
180
|
+
$slots: S;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region src/components/tooltip/trigger.vue.d.ts
|
|
185
|
+
interface TooltipTriggerBaseProps extends TriggerProps, PolymorphicProps {}
|
|
186
|
+
interface TooltipTriggerProps extends TooltipTriggerBaseProps,
|
|
187
|
+
/**
|
|
188
|
+
* @vue-ignore
|
|
189
|
+
*/
|
|
190
|
+
Omit<ButtonHTMLAttributes, "value"> {}
|
|
191
|
+
declare const _default$7: typeof __VLS_export;
|
|
192
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<TooltipTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
193
|
+
default?: (props: {}) => any;
|
|
194
|
+
}>;
|
|
195
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
196
|
+
new (): {
|
|
197
|
+
$slots: S;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
declare namespace tooltip_d_exports {
|
|
201
|
+
export { _default as Arrow, TooltipArrowBaseProps as ArrowBaseProps, TooltipArrowProps as ArrowProps, _default$1 as ArrowTip, TooltipArrowTipBaseProps as ArrowTipBaseProps, TooltipArrowTipProps as ArrowTipProps, _default$2 as Content, TooltipContentBaseProps as ContentBaseProps, TooltipContentProps as ContentProps, _default$3 as Context, TooltipContextProps as ContextProps, OpenChangeDetails, _default$4 as Positioner, TooltipPositionerBaseProps as PositionerBaseProps, TooltipPositionerProps as PositionerProps, _default$5 as Root, TooltipRootBaseProps as RootBaseProps, TooltipRootEmits as RootEmits, TooltipRootProps as RootProps, _default$6 as RootProvider, TooltipRootProviderBaseProps as RootProviderBaseProps, TooltipRootProviderProps as RootProviderProps, _default$7 as Trigger, TooltipTriggerBaseProps as TriggerBaseProps, TooltipTriggerProps as TriggerProps, TriggerValueChangeDetails };
|
|
202
|
+
}
|
|
203
|
+
//#endregion
|
|
204
|
+
export { tooltip_d_exports as Tooltip, _default as TooltipArrow, type TooltipArrowBaseProps, type TooltipArrowProps, _default$1 as TooltipArrowTip, type TooltipArrowTipBaseProps, type TooltipArrowTipProps, _default$2 as TooltipContent, type TooltipContentBaseProps, type TooltipContentProps, _default$3 as TooltipContext, type TooltipContextProps, type TooltipOpenChangeDetails, _default$4 as TooltipPositioner, type TooltipPositionerBaseProps, type TooltipPositionerProps, _default$5 as TooltipRoot, type TooltipRootBaseProps, type TooltipRootEmits, type TooltipRootProps, _default$6 as TooltipRootProvider, type TooltipRootProviderBaseProps, type TooltipRootProviderEmits, type TooltipRootProviderProps, _default$7 as TooltipTrigger, type TooltipTriggerBaseProps, type TooltipTriggerProps, type TooltipTriggerValueChangeDetails, type UseTooltipContext, type UseTooltipProps, type UseTooltipReturn, tooltipAnatomy, useTooltip, useTooltipContext };
|