@sprawlify/vue 0.0.72 → 0.0.74
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-anatomy-SnniqySz.js +3 -0
- package/dist/accordion-anatomy-rCL5aWqn.d.ts +2 -0
- package/dist/angle-slider-anatomy-BcpYlzjU.js +3 -0
- package/dist/angle-slider-anatomy-Dx77gXPi.d.ts +2 -0
- package/dist/avatar-anatomy-DkaRck8U.js +3 -0
- package/dist/avatar-anatomy-DqwdmVib.d.ts +2 -0
- package/dist/bottom-sheet-anatomy-CATwdEhi.d.ts +2 -0
- package/dist/bottom-sheet-anatomy-lHEnPDuf.js +3 -0
- package/dist/carousel-anatomy-CP646ljY.d.ts +6 -0
- package/dist/carousel-anatomy-Dozyhz87.js +7 -0
- package/dist/checkbox-anatomy-DGrjF6ri.d.ts +6 -0
- package/dist/checkbox-anatomy-DrTfnRdC.js +7 -0
- package/dist/clipboard-anatomy-Btcms62_.js +3 -0
- package/dist/clipboard-anatomy-BtxJPw4p.d.ts +2 -0
- package/dist/collapsible-anatomy-Bz0a8LAr.js +3 -0
- package/dist/collapsible-anatomy-C-2X58M2.d.ts +2 -0
- package/dist/{collapsible-jX9S7WYj.js → collapsible-kw6uns8K.js} +3 -4
- package/dist/{collection-DGKjEgOz.js → collection-BHgAE3BH.js} +1 -1
- package/dist/color-picker-anatomy-C18pJhHu.d.ts +6 -0
- package/dist/color-picker-anatomy-DJP6gg1F.js +7 -0
- package/dist/combobox-anatomy-CwdkDJPn.d.ts +6 -0
- package/dist/combobox-anatomy-DccBa7f5.js +7 -0
- package/dist/components/accordion/index.d.ts +21 -20
- package/dist/components/accordion/index.js +6 -6
- package/dist/components/anatomy.d.ts +51 -0
- package/dist/components/anatomy.js +53 -0
- package/dist/components/angle-slider/index.d.ts +18 -17
- package/dist/components/angle-slider/index.js +3 -3
- package/dist/components/avatar/index.d.ts +13 -12
- package/dist/components/avatar/index.js +3 -3
- package/dist/components/bottom-sheet/index.d.ts +24 -23
- package/dist/components/bottom-sheet/index.js +6 -6
- package/dist/components/carousel/index.d.ts +24 -27
- package/dist/components/carousel/index.js +3 -7
- package/dist/components/checkbox/index.d.ts +22 -25
- package/dist/components/checkbox/index.js +8 -10
- package/dist/components/client-only/index.d.ts +2 -2
- package/dist/components/clipboard/index.d.ts +17 -16
- package/dist/components/clipboard/index.js +3 -3
- package/dist/components/collapsible/index.d.ts +17 -16
- package/dist/components/collapsible/index.js +3 -2
- package/dist/components/collection/index.d.ts +1 -1
- package/dist/components/collection/index.js +1 -1
- package/dist/components/color-picker/index.d.ts +55 -58
- package/dist/components/color-picker/index.js +8 -10
- package/dist/components/combobox/index.d.ts +38 -41
- package/dist/components/combobox/index.js +8 -11
- package/dist/components/date-picker/index.d.ts +48 -51
- package/dist/components/date-picker/index.js +6 -9
- package/dist/components/dialog/index.d.ts +37 -36
- package/dist/components/dialog/index.js +5 -5
- package/dist/components/download-trigger/index.d.ts +4 -4
- package/dist/components/download-trigger/index.js +1 -1
- package/dist/components/editable/index.d.ts +29 -28
- package/dist/components/editable/index.js +5 -4
- package/dist/components/field/index.d.ts +24 -27
- package/dist/components/field/index.js +3 -2
- package/dist/components/fieldset/index.d.ts +12 -15
- package/dist/components/fieldset/index.js +3 -2
- package/dist/components/file-upload/index.d.ts +27 -26
- package/dist/components/file-upload/index.js +5 -4
- package/dist/components/floating-panel/index.d.ts +29 -27
- package/dist/components/floating-panel/index.js +4 -4
- package/dist/components/focus-trap/index.d.ts +5 -5
- package/dist/components/focus-trap/index.js +2 -2
- package/dist/components/format/index.d.ts +4 -4
- package/dist/components/frame/index.d.ts +6 -6
- package/dist/components/highlight/index.d.ts +4 -4
- package/dist/components/highlight/index.js +1 -1
- package/dist/components/hover-card/index.d.ts +28 -27
- package/dist/components/hover-card/index.js +5 -5
- package/dist/components/image-cropper/index.d.ts +15 -18
- package/dist/components/image-cropper/index.js +4 -7
- package/dist/components/json-tree-view/index.d.ts +13 -13
- package/dist/components/json-tree-view/index.js +6 -6
- package/dist/components/listbox/index.d.ts +23 -26
- package/dist/components/listbox/index.js +4 -8
- package/dist/components/marquee/index.d.ts +25 -24
- package/dist/components/marquee/index.js +3 -3
- package/dist/components/menu/index.d.ts +60 -58
- package/dist/components/menu/index.js +5 -5
- package/dist/components/navigation-menu/index.d.ts +22 -21
- package/dist/components/navigation-menu/index.js +5 -5
- package/dist/components/number-input/index.d.ts +24 -23
- package/dist/components/number-input/index.js +5 -4
- package/dist/components/pagination/index.d.ts +19 -18
- package/dist/components/pagination/index.js +3 -3
- package/dist/components/password-input/index.d.ts +26 -25
- package/dist/components/password-input/index.js +5 -4
- package/dist/components/pin-input/index.d.ts +21 -20
- package/dist/components/pin-input/index.js +5 -4
- package/dist/components/popover/index.d.ts +39 -38
- package/dist/components/popover/index.js +5 -5
- package/dist/components/presence/index.d.ts +2 -2
- package/dist/components/presence/index.js +2 -2
- package/dist/components/progress/index.d.ts +17 -16
- package/dist/components/progress/index.js +3 -3
- package/dist/components/qr-code/index.d.ts +13 -12
- package/dist/components/qr-code/index.js +3 -3
- package/dist/components/radio-group/index.d.ts +19 -18
- package/dist/components/radio-group/index.js +6 -5
- package/dist/components/rating-group/index.d.ts +17 -16
- package/dist/components/rating-group/index.js +5 -4
- package/dist/components/scroll-area/index.d.ts +14 -13
- package/dist/components/scroll-area/index.js +3 -3
- package/dist/components/segment-group/index.d.ts +17 -20
- package/dist/components/segment-group/index.js +3 -8
- package/dist/components/select/index.d.ts +41 -40
- package/dist/components/select/index.js +8 -7
- package/dist/components/signature-pad/index.d.ts +18 -17
- package/dist/components/signature-pad/index.js +5 -4
- package/dist/components/slider/index.d.ts +23 -22
- package/dist/components/slider/index.js +3 -3
- package/dist/components/splitter/index.d.ts +14 -13
- package/dist/components/splitter/index.js +4 -3
- package/dist/components/steps/index.d.ts +22 -21
- package/dist/components/steps/index.js +3 -3
- package/dist/components/switch/index.d.ts +18 -17
- package/dist/components/switch/index.js +5 -4
- package/dist/components/tabs/index.d.ts +18 -17
- package/dist/components/tabs/index.js +5 -5
- package/dist/components/tags-input/index.d.ts +35 -34
- package/dist/components/tags-input/index.js +5 -4
- package/dist/components/timer/index.d.ts +16 -15
- package/dist/components/timer/index.js +3 -3
- package/dist/components/toast/index.d.ts +155 -0
- package/dist/components/toast/index.js +265 -0
- package/dist/components/toggle/index.d.ts +98 -0
- package/dist/components/toggle/index.js +126 -0
- package/dist/components/toggle-group/index.d.ts +128 -0
- package/dist/components/toggle-group/index.js +207 -0
- package/dist/components/tooltip/index.d.ts +202 -0
- package/dist/components/tooltip/index.js +349 -0
- package/dist/components/tour/index.d.ts +305 -0
- package/dist/components/tour/index.js +502 -0
- package/dist/components/tree-view/index.d.ts +6 -5
- package/dist/components/tree-view/index.js +6 -5
- package/dist/date-picker-anatomy-B3KhAu53.d.ts +6 -0
- package/dist/date-picker-anatomy-BbB7oLLk.js +7 -0
- package/dist/dialog-anatomy--8BPzYvc.d.ts +2 -0
- package/dist/dialog-anatomy-DZW7OUW_.js +3 -0
- package/dist/editable-anatomy-D1eyySPH.js +3 -0
- package/dist/editable-anatomy-qX6giV4Y.d.ts +2 -0
- package/dist/{field-CtPR24u6.js → field-C6iB3Tje.js} +3 -8
- package/dist/field-anatomy-DOCpzb4B.js +8 -0
- package/dist/field-anatomy-meDug-96.d.ts +6 -0
- package/dist/{fieldset-D5SznrKY.js → fieldset-B1bn9yHW.js} +3 -8
- package/dist/fieldset-anatomy-BENizr4L.d.ts +6 -0
- package/dist/fieldset-anatomy-DmZTaMK6.js +8 -0
- package/dist/file-upload-anatomy-BFGZTW-d.d.ts +2 -0
- package/dist/file-upload-anatomy-CZ2VnScd.js +3 -0
- package/dist/floating-panel-anatomy-DBrl1Bp0.js +3 -0
- package/dist/floating-panel-anatomy-aRL0nEuA.d.ts +2 -0
- package/dist/hover-card-anatomy-BL8G0P5L.d.ts +2 -0
- package/dist/hover-card-anatomy-D3wEfkuu.js +3 -0
- package/dist/image-cropper-anatomy-Q-TC-Ntz.d.ts +6 -0
- package/dist/image-cropper-anatomy-vcTNTTGP.js +7 -0
- package/dist/{index-DwWFWpls.d.ts → index-CKLWua9t.d.ts} +35 -35
- package/dist/{index-B_UiXhk3.d.ts → index-DLfVD7U5.d.ts} +11 -11
- package/dist/{index-xb1q4_02.d.ts → index-_AirUBz0.d.ts} +7 -7
- package/dist/index.d.ts +3 -3
- package/dist/listbox-anatomy-CHgk_go8.d.ts +6 -0
- package/dist/listbox-anatomy-D2r-4uq6.js +7 -0
- package/dist/marquee-anatomy-BSMR6X4B.d.ts +2 -0
- package/dist/marquee-anatomy-sKw9g-dJ.js +3 -0
- package/dist/menu-anatomy-2i8La6ak.d.ts +2 -0
- package/dist/menu-anatomy-DbCORryZ.js +3 -0
- package/dist/navigation-menu-anatomy-kSlLw4EL.d.ts +2 -0
- package/dist/navigation-menu-anatomy-nwZUxyMV.js +3 -0
- package/dist/number-input-anatomy-BrKnd1U3.d.ts +2 -0
- package/dist/number-input-anatomy-hB3PpB4j.js +3 -0
- package/dist/pagination-anatomy-D8yk0Puf.js +3 -0
- package/dist/pagination-anatomy-NpCn-mYm.d.ts +2 -0
- package/dist/password-input-anatomy-BJPXSE6T.d.ts +2 -0
- package/dist/password-input-anatomy-D0nhl7MJ.js +3 -0
- package/dist/pin-input-anatomy-Blh9Y2sq.js +3 -0
- package/dist/pin-input-anatomy-OckZj-cF.d.ts +2 -0
- package/dist/popover-anatomy-Ce31QPso.d.ts +2 -0
- package/dist/popover-anatomy-DXWeYlnF.js +3 -0
- package/dist/{presence-B4-UhJY9.js → presence-Byk0B_Vq.js} +1 -1
- package/dist/progress-anatomy-DUD4W7vg.d.ts +2 -0
- package/dist/progress-anatomy-lioRhIrB.js +3 -0
- package/dist/qr-code-anatomy-CIy9Wai6.js +3 -0
- package/dist/qr-code-anatomy-Dmh5IV3m.d.ts +2 -0
- package/dist/radio-group-anatomy-C7L8dkhn.js +3 -0
- package/dist/radio-group-anatomy-CXwS1OoR.d.ts +2 -0
- package/dist/rating-group-anatomy-CBhzoESK.js +3 -0
- package/dist/rating-group-anatomy-DMTutKxa.d.ts +2 -0
- package/dist/scroll-area-anatomy-B-FlUOdc.js +3 -0
- package/dist/scroll-area-anatomy-Cxkrq_al.d.ts +2 -0
- package/dist/segment-group-anatomy-CNtzx5Yr.d.ts +6 -0
- package/dist/segment-group-anatomy-CPdu1efW.js +8 -0
- package/dist/select-anatomy-CiNHi2Kx.js +3 -0
- package/dist/select-anatomy-Elu3b3Op.d.ts +2 -0
- package/dist/signature-pad-anatomy-B-OK1170.d.ts +2 -0
- package/dist/signature-pad-anatomy-Mz3w_i5B.js +3 -0
- package/dist/slider-anatomy-3KpCBnz3.js +3 -0
- package/dist/slider-anatomy-Ctfd4geR.d.ts +2 -0
- package/dist/splitter-anatomy-CN7s6WdQ.d.ts +2 -0
- package/dist/splitter-anatomy-D2RNa-hA.js +3 -0
- package/dist/steps-anatomy-CSfgiyVI.js +3 -0
- package/dist/steps-anatomy-DrtAi5Mk.d.ts +2 -0
- package/dist/switch-anatomy-DDL1v5Fs.js +3 -0
- package/dist/switch-anatomy-Z4qGqnte.d.ts +2 -0
- package/dist/tabs-anatomy-BL3YLH_t.d.ts +2 -0
- package/dist/tabs-anatomy-DlQHg-E8.js +3 -0
- package/dist/tags-input-anatomy-AHepxK3s.d.ts +2 -0
- package/dist/tags-input-anatomy-DYSi98Bx.js +3 -0
- package/dist/timer-anatomy-Be-Fa71t.d.ts +2 -0
- package/dist/timer-anatomy-C9bTbrUf.js +3 -0
- package/dist/toast-anatomy-CssUp7TT.js +3 -0
- package/dist/toast-anatomy-_k_zeUjw.d.ts +2 -0
- package/dist/toggle-anatomy-D8XJQLnW.js +8 -0
- package/dist/toggle-anatomy-DFzkjtVR.d.ts +6 -0
- package/dist/toggle-group-anatomy-DD8PvB75.js +3 -0
- package/dist/toggle-group-anatomy-L0_56E8r.d.ts +2 -0
- package/dist/tooltip-anatomy-CPw1wOXd.js +3 -0
- package/dist/tooltip-anatomy-jbsTMGov.d.ts +2 -0
- package/dist/tour-anatomy-CDmnjoPR.js +7 -0
- package/dist/tour-anatomy-CgFQsxyi.d.ts +6 -0
- package/dist/{tree-view-Ctpu5RjE.js → tree-view-BBC0paRq.js} +6 -7
- package/dist/tree-view-anatomy-BM2MLpUa.d.ts +2 -0
- package/dist/tree-view-anatomy-BW_ruJ-g.js +3 -0
- package/package.json +26 -2
- /package/dist/{boolean-CpMsIRK4.js → boolean-L5YmbZkb.js} +0 -0
- /package/dist/{clean-props-D2R4tz5e.js → clean-props-DsGHTEpm.js} +0 -0
- /package/dist/{create-split-props-0RD5_O4P.js → create-split-props-BQ6yvpdF.js} +0 -0
- /package/dist/{factory-B5zr8_kk.d.ts → factory-D5HMCjkS.d.ts} +0 -0
- /package/dist/{factory-Co08Aw8u.js → factory-DxZQviAU.js} +0 -0
- /package/dist/{index-CCRVRFFQ.d.ts → index-DmKzfNVe.d.ts} +0 -0
- /package/dist/{index-DhFoJHfp.d.ts → index-e9UjgIag.d.ts} +0 -0
- /package/dist/{presence-types-BJRr8tqd.d.ts → presence-types-CaUy1bPc.d.ts} +0 -0
- /package/dist/{types-DIEO6uP3.d.ts → types-DVbnnQPS.d.ts} +0 -0
- /package/dist/{use-render-strategy-DA33j31C.js → use-render-strategy-Bx4OiQlo.js} +0 -0
- /package/dist/{use-render-strategy-U5NxU252.d.ts → use-render-strategy-DsagWQCm.d.ts} +0 -0
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import { t as __exportAll } from "../../chunk-BN_g-Awi.js";
|
|
2
|
+
import { n as useMachine, r as normalizeProps$1, t as mergeProps$1 } from "../../core-DNndr38p.js";
|
|
3
|
+
import { a as useLocaleContext, c as useEnvironmentContext, i as DEFAULT_LOCALE, s as DEFAULT_ENVIRONMENT } from "../../providers-DNBWT-O_.js";
|
|
4
|
+
import { t as createContext } from "../../create-context-Ds1GbsVc.js";
|
|
5
|
+
import { t as useForwardExpose } from "../../use-forward-expose-CCAmHTUB.js";
|
|
6
|
+
import { t as tooltipAnatomy } from "../../tooltip-anatomy-CPw1wOXd.js";
|
|
7
|
+
import { t as sprawlify } from "../../factory-DxZQviAU.js";
|
|
8
|
+
import { t as cleanProps } from "../../clean-props-DsGHTEpm.js";
|
|
9
|
+
import { t as RenderStrategyPropsProvider } from "../../use-render-strategy-Bx4OiQlo.js";
|
|
10
|
+
import { i as usePresence, n as PresenceProvider, r as usePresenceContext } from "../../presence-Byk0B_Vq.js";
|
|
11
|
+
import { computed, createBlock, createCommentVNode, defineComponent, guardReactiveProps, mergeDefaults, mergeProps, normalizeProps, openBlock, renderSlot, toValue, unref, useId, withCtx } from "vue";
|
|
12
|
+
import * as tooltip from "@sprawlify/primitives/machines/tooltip";
|
|
13
|
+
|
|
14
|
+
//#region src/components/tooltip/use-tooltip-context.ts
|
|
15
|
+
const [TooltipProvider, useTooltipContext] = createContext("TooltipContext");
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/components/tooltip/tooltip-arrow-tip.vue?vue&type=script&setup=true&lang.ts
|
|
19
|
+
var tooltip_arrow_tip_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
20
|
+
__name: "tooltip-arrow-tip",
|
|
21
|
+
props: { asChild: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
required: false
|
|
24
|
+
} },
|
|
25
|
+
setup(__props) {
|
|
26
|
+
const tooltip = useTooltipContext();
|
|
27
|
+
useForwardExpose();
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(tooltip).getArrowTipProps(), { "as-child": __props.asChild }), {
|
|
30
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
31
|
+
_: 3
|
|
32
|
+
}, 16, ["as-child"]);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/components/tooltip/tooltip-arrow-tip.vue
|
|
39
|
+
var tooltip_arrow_tip_default = tooltip_arrow_tip_vue_vue_type_script_setup_true_lang_default;
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/components/tooltip/tooltip-arrow.vue?vue&type=script&setup=true&lang.ts
|
|
43
|
+
var tooltip_arrow_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
44
|
+
__name: "tooltip-arrow",
|
|
45
|
+
props: { asChild: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
required: false
|
|
48
|
+
} },
|
|
49
|
+
setup(__props) {
|
|
50
|
+
const tooltip = useTooltipContext();
|
|
51
|
+
useForwardExpose();
|
|
52
|
+
return (_ctx, _cache) => {
|
|
53
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(tooltip).getArrowProps(), { "as-child": __props.asChild }), {
|
|
54
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
55
|
+
_: 3
|
|
56
|
+
}, 16, ["as-child"]);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/components/tooltip/tooltip-arrow.vue
|
|
63
|
+
var tooltip_arrow_default = tooltip_arrow_vue_vue_type_script_setup_true_lang_default;
|
|
64
|
+
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/tooltip/tooltip-content.vue?vue&type=script&setup=true&lang.ts
|
|
67
|
+
var tooltip_content_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
68
|
+
__name: "tooltip-content",
|
|
69
|
+
props: { asChild: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
required: false
|
|
72
|
+
} },
|
|
73
|
+
setup(__props) {
|
|
74
|
+
const tooltip = useTooltipContext();
|
|
75
|
+
const presence = usePresenceContext();
|
|
76
|
+
const mergedProps = computed(() => mergeProps$1(tooltip.value.getContentProps(), presence.value.presenceProps));
|
|
77
|
+
useForwardExpose();
|
|
78
|
+
return (_ctx, _cache) => {
|
|
79
|
+
return !unref(presence).unmounted ? (openBlock(), createBlock(unref(sprawlify).div, mergeProps({ key: 0 }, mergedProps.value, { "as-child": __props.asChild }), {
|
|
80
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
81
|
+
_: 3
|
|
82
|
+
}, 16, ["as-child"])) : createCommentVNode("v-if", true);
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region src/components/tooltip/tooltip-content.vue
|
|
89
|
+
var tooltip_content_default = tooltip_content_vue_vue_type_script_setup_true_lang_default;
|
|
90
|
+
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region src/components/tooltip/tooltip-context.vue?vue&type=script&setup=true&lang.ts
|
|
93
|
+
var tooltip_context_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
94
|
+
__name: "tooltip-context",
|
|
95
|
+
setup(__props) {
|
|
96
|
+
const tooltip = useTooltipContext();
|
|
97
|
+
return (_ctx, _cache) => {
|
|
98
|
+
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(tooltip))));
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/components/tooltip/tooltip-context.vue
|
|
105
|
+
var tooltip_context_default = tooltip_context_vue_vue_type_script_setup_true_lang_default;
|
|
106
|
+
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/components/tooltip/tooltip-positioner.vue?vue&type=script&setup=true&lang.ts
|
|
109
|
+
var tooltip_positioner_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
110
|
+
__name: "tooltip-positioner",
|
|
111
|
+
props: { asChild: {
|
|
112
|
+
type: Boolean,
|
|
113
|
+
required: false
|
|
114
|
+
} },
|
|
115
|
+
setup(__props) {
|
|
116
|
+
const tooltip = useTooltipContext();
|
|
117
|
+
const presence = usePresenceContext();
|
|
118
|
+
useForwardExpose();
|
|
119
|
+
return (_ctx, _cache) => {
|
|
120
|
+
return !unref(presence).unmounted ? (openBlock(), createBlock(unref(sprawlify).div, mergeProps({ key: 0 }, unref(tooltip).getPositionerProps(), { "as-child": __props.asChild }), {
|
|
121
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
122
|
+
_: 3
|
|
123
|
+
}, 16, ["as-child"])) : createCommentVNode("v-if", true);
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/components/tooltip/tooltip-positioner.vue
|
|
130
|
+
var tooltip_positioner_default = tooltip_positioner_vue_vue_type_script_setup_true_lang_default;
|
|
131
|
+
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/components/tooltip/tooltip-root-provider.vue?vue&type=script&setup=true&lang.ts
|
|
134
|
+
var tooltip_root_provider_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
135
|
+
__name: "tooltip-root-provider",
|
|
136
|
+
props: {
|
|
137
|
+
value: {
|
|
138
|
+
type: null,
|
|
139
|
+
required: true
|
|
140
|
+
},
|
|
141
|
+
lazyMount: {
|
|
142
|
+
type: Boolean,
|
|
143
|
+
required: false
|
|
144
|
+
},
|
|
145
|
+
unmountOnExit: {
|
|
146
|
+
type: Boolean,
|
|
147
|
+
required: false
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
emits: ["exitComplete"],
|
|
151
|
+
setup(__props, { emit: __emit }) {
|
|
152
|
+
const props = __props;
|
|
153
|
+
const emits = __emit;
|
|
154
|
+
const tooltip = computed(() => props.value);
|
|
155
|
+
const presence = usePresence(computed(() => ({
|
|
156
|
+
present: tooltip.value.open,
|
|
157
|
+
lazyMount: props.lazyMount,
|
|
158
|
+
unmountOnExit: props.unmountOnExit
|
|
159
|
+
})), emits);
|
|
160
|
+
TooltipProvider(tooltip);
|
|
161
|
+
PresenceProvider(presence);
|
|
162
|
+
RenderStrategyPropsProvider(computed(() => ({
|
|
163
|
+
lazyMount: props.lazyMount,
|
|
164
|
+
unmountOnExit: props.unmountOnExit
|
|
165
|
+
})));
|
|
166
|
+
useForwardExpose();
|
|
167
|
+
return (_ctx, _cache) => {
|
|
168
|
+
return renderSlot(_ctx.$slots, "default");
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
//#endregion
|
|
174
|
+
//#region src/components/tooltip/tooltip-root-provider.vue
|
|
175
|
+
var tooltip_root_provider_default = tooltip_root_provider_vue_vue_type_script_setup_true_lang_default;
|
|
176
|
+
|
|
177
|
+
//#endregion
|
|
178
|
+
//#region src/components/tooltip/use-tooltip.ts
|
|
179
|
+
const useTooltip = (props = {}, emit) => {
|
|
180
|
+
const id = useId();
|
|
181
|
+
const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
|
|
182
|
+
const locale = useLocaleContext(DEFAULT_LOCALE);
|
|
183
|
+
const context = computed(() => {
|
|
184
|
+
const localProps = toValue(props);
|
|
185
|
+
return {
|
|
186
|
+
id,
|
|
187
|
+
dir: locale.value.dir,
|
|
188
|
+
getRootNode: env?.value.getRootNode,
|
|
189
|
+
...cleanProps(localProps),
|
|
190
|
+
onOpenChange: (details) => {
|
|
191
|
+
emit?.("openChange", details);
|
|
192
|
+
emit?.("update:open", details.open);
|
|
193
|
+
localProps.onOpenChange?.(details);
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
});
|
|
197
|
+
const service = useMachine(tooltip.machine, context);
|
|
198
|
+
return computed(() => tooltip.connect(service, normalizeProps$1));
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region src/components/tooltip/tooltip-root.vue?vue&type=script&setup=true&lang.ts
|
|
203
|
+
var tooltip_root_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
204
|
+
__name: "tooltip-root",
|
|
205
|
+
props: /* @__PURE__ */ mergeDefaults({
|
|
206
|
+
"aria-label": {
|
|
207
|
+
type: String,
|
|
208
|
+
required: false
|
|
209
|
+
},
|
|
210
|
+
closeDelay: {
|
|
211
|
+
type: Number,
|
|
212
|
+
required: false
|
|
213
|
+
},
|
|
214
|
+
closeOnClick: {
|
|
215
|
+
type: Boolean,
|
|
216
|
+
required: false
|
|
217
|
+
},
|
|
218
|
+
closeOnEscape: {
|
|
219
|
+
type: Boolean,
|
|
220
|
+
required: false
|
|
221
|
+
},
|
|
222
|
+
closeOnPointerDown: {
|
|
223
|
+
type: Boolean,
|
|
224
|
+
required: false
|
|
225
|
+
},
|
|
226
|
+
closeOnScroll: {
|
|
227
|
+
type: Boolean,
|
|
228
|
+
required: false
|
|
229
|
+
},
|
|
230
|
+
defaultOpen: {
|
|
231
|
+
type: Boolean,
|
|
232
|
+
required: false
|
|
233
|
+
},
|
|
234
|
+
disabled: {
|
|
235
|
+
type: Boolean,
|
|
236
|
+
required: false
|
|
237
|
+
},
|
|
238
|
+
id: {
|
|
239
|
+
type: String,
|
|
240
|
+
required: false
|
|
241
|
+
},
|
|
242
|
+
ids: {
|
|
243
|
+
type: Object,
|
|
244
|
+
required: false
|
|
245
|
+
},
|
|
246
|
+
interactive: {
|
|
247
|
+
type: Boolean,
|
|
248
|
+
required: false
|
|
249
|
+
},
|
|
250
|
+
open: {
|
|
251
|
+
type: Boolean,
|
|
252
|
+
required: false
|
|
253
|
+
},
|
|
254
|
+
openDelay: {
|
|
255
|
+
type: Number,
|
|
256
|
+
required: false
|
|
257
|
+
},
|
|
258
|
+
positioning: {
|
|
259
|
+
type: null,
|
|
260
|
+
required: false
|
|
261
|
+
},
|
|
262
|
+
lazyMount: {
|
|
263
|
+
type: Boolean,
|
|
264
|
+
required: false
|
|
265
|
+
},
|
|
266
|
+
unmountOnExit: {
|
|
267
|
+
type: Boolean,
|
|
268
|
+
required: false
|
|
269
|
+
}
|
|
270
|
+
}, {
|
|
271
|
+
closeOnClick: void 0,
|
|
272
|
+
closeOnEscape: void 0,
|
|
273
|
+
closeOnPointerDown: void 0,
|
|
274
|
+
closeOnScroll: void 0,
|
|
275
|
+
defaultOpen: void 0,
|
|
276
|
+
disabled: void 0,
|
|
277
|
+
interactive: void 0,
|
|
278
|
+
open: void 0
|
|
279
|
+
}),
|
|
280
|
+
emits: [
|
|
281
|
+
"exitComplete",
|
|
282
|
+
"openChange",
|
|
283
|
+
"update:open"
|
|
284
|
+
],
|
|
285
|
+
setup(__props, { emit: __emit }) {
|
|
286
|
+
const props = __props;
|
|
287
|
+
const emits = __emit;
|
|
288
|
+
const tooltip = useTooltip(props, emits);
|
|
289
|
+
const presence = usePresence(computed(() => ({
|
|
290
|
+
present: tooltip.value.open,
|
|
291
|
+
lazyMount: props.lazyMount,
|
|
292
|
+
unmountOnExit: props.unmountOnExit
|
|
293
|
+
})), emits);
|
|
294
|
+
TooltipProvider(tooltip);
|
|
295
|
+
PresenceProvider(presence);
|
|
296
|
+
RenderStrategyPropsProvider(computed(() => ({
|
|
297
|
+
lazyMount: props.lazyMount,
|
|
298
|
+
unmountOnExit: props.unmountOnExit
|
|
299
|
+
})));
|
|
300
|
+
useForwardExpose();
|
|
301
|
+
return (_ctx, _cache) => {
|
|
302
|
+
return renderSlot(_ctx.$slots, "default");
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
|
|
307
|
+
//#endregion
|
|
308
|
+
//#region src/components/tooltip/tooltip-root.vue
|
|
309
|
+
var tooltip_root_default = tooltip_root_vue_vue_type_script_setup_true_lang_default;
|
|
310
|
+
|
|
311
|
+
//#endregion
|
|
312
|
+
//#region src/components/tooltip/tooltip-trigger.vue?vue&type=script&setup=true&lang.ts
|
|
313
|
+
var tooltip_trigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
314
|
+
__name: "tooltip-trigger",
|
|
315
|
+
props: { asChild: {
|
|
316
|
+
type: Boolean,
|
|
317
|
+
required: false
|
|
318
|
+
} },
|
|
319
|
+
setup(__props) {
|
|
320
|
+
const tooltip = useTooltipContext();
|
|
321
|
+
useForwardExpose();
|
|
322
|
+
return (_ctx, _cache) => {
|
|
323
|
+
return openBlock(), createBlock(unref(sprawlify).button, mergeProps(unref(tooltip).getTriggerProps(), { "as-child": __props.asChild }), {
|
|
324
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
325
|
+
_: 3
|
|
326
|
+
}, 16, ["as-child"]);
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
|
|
331
|
+
//#endregion
|
|
332
|
+
//#region src/components/tooltip/tooltip-trigger.vue
|
|
333
|
+
var tooltip_trigger_default = tooltip_trigger_vue_vue_type_script_setup_true_lang_default;
|
|
334
|
+
|
|
335
|
+
//#endregion
|
|
336
|
+
//#region src/components/tooltip/tooltip.ts
|
|
337
|
+
var tooltip_exports = /* @__PURE__ */ __exportAll({
|
|
338
|
+
Arrow: () => tooltip_arrow_default,
|
|
339
|
+
ArrowTip: () => tooltip_arrow_tip_default,
|
|
340
|
+
Content: () => tooltip_content_default,
|
|
341
|
+
Context: () => tooltip_context_default,
|
|
342
|
+
Positioner: () => tooltip_positioner_default,
|
|
343
|
+
Root: () => tooltip_root_default,
|
|
344
|
+
RootProvider: () => tooltip_root_provider_default,
|
|
345
|
+
Trigger: () => tooltip_trigger_default
|
|
346
|
+
});
|
|
347
|
+
|
|
348
|
+
//#endregion
|
|
349
|
+
export { tooltip_exports as Tooltip, tooltip_arrow_default as TooltipArrow, tooltip_arrow_tip_default as TooltipArrowTip, tooltip_content_default as TooltipContent, tooltip_context_default as TooltipContext, tooltip_positioner_default as TooltipPositioner, tooltip_root_default as TooltipRoot, tooltip_root_provider_default as TooltipRootProvider, tooltip_trigger_default as TooltipTrigger, tooltipAnatomy, useTooltip, useTooltipContext };
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import { t as PolymorphicProps } from "../../factory-D5HMCjkS.js";
|
|
2
|
+
import { a as Optional, r as EmitFn$1 } from "../../types-DVbnnQPS.js";
|
|
3
|
+
import { r as PropTypes } from "../../index-DmKzfNVe.js";
|
|
4
|
+
import { t as RenderStrategyProps } from "../../use-render-strategy-DsagWQCm.js";
|
|
5
|
+
import { t as tourAnatomy } from "../../tour-anatomy-CgFQsxyi.js";
|
|
6
|
+
import * as vue1025 from "vue";
|
|
7
|
+
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
8
|
+
import { WaitForOptions as WaitOptions$1 } from "@sprawlify/primitives/dom-query";
|
|
9
|
+
import * as _sprawlify_primitives_machines_bottom_sheet19 from "@sprawlify/primitives/machines/bottom-sheet";
|
|
10
|
+
import * as tour from "@sprawlify/primitives/machines/tour";
|
|
11
|
+
import { FocusOutsideEvent, FocusOutsideEvent as TourFocusOutsideEvent, InteractOutsideEvent, InteractOutsideEvent as TourInteractOutsideEvent, Point, PointerDownOutsideEvent, PointerDownOutsideEvent as TourPointerDownOutsideEvent, ProgressTextDetails, StatusChangeDetails, StepAction, StepAction as StepAction$1, StepActionMap, StepActionTriggerProps, StepActionTriggerProps as StepActionTriggerProps$1, StepBaseDetails, StepChangeDetails, StepDetails, StepDetails as TourStepDetails, StepEffectArgs, StepEffectArgs as TourStepEffectArgs, StepPlacement, StepStatus, StepType, WaitOptions, waitForElement, waitForElementValue, waitForPromise } from "@sprawlify/primitives/machines/tour";
|
|
12
|
+
|
|
13
|
+
//#region src/components/tour/wait-for-event.d.ts
|
|
14
|
+
type WaitForEventReturn<K extends keyof HTMLElementEventMap> = [Promise<HTMLElementEventMap[K]>, VoidFunction];
|
|
15
|
+
interface WaitForEventOptions<T extends HTMLElement = HTMLElement> extends AddEventListenerOptions {
|
|
16
|
+
predicate?: (element: T) => boolean;
|
|
17
|
+
}
|
|
18
|
+
declare function waitForEvent<T extends HTMLElement = HTMLElement, K extends keyof HTMLElementEventMap = keyof HTMLElementEventMap>(target: (() => HTMLElement | null) | undefined, event: K, options?: WaitForEventOptions<T>): WaitForEventReturn<K>;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/components/tour/tour-action-trigger.vue.d.ts
|
|
21
|
+
interface TourActionTriggerBaseProps extends StepActionTriggerProps, PolymorphicProps {}
|
|
22
|
+
interface TourActionTriggerProps extends TourActionTriggerBaseProps,
|
|
23
|
+
/**
|
|
24
|
+
* @vue-ignore
|
|
25
|
+
*/
|
|
26
|
+
ButtonHTMLAttributes {}
|
|
27
|
+
declare const _default: typeof __VLS_export$14;
|
|
28
|
+
declare const __VLS_export$14: __VLS_WithSlots$14<vue1025.DefineComponent<TourActionTriggerBaseProps, {}, {}, {}, {}, vue1025.ComponentOptionsMixin, vue1025.ComponentOptionsMixin, {}, string, vue1025.PublicProps, Readonly<TourActionTriggerBaseProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1025.ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
29
|
+
type __VLS_WithSlots$14<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/components/tour/tour-actions.vue.d.ts
|
|
36
|
+
interface TourActionsProps extends SlotsType<{
|
|
37
|
+
default: UnwrapRef<StepAction[]>;
|
|
38
|
+
}> {}
|
|
39
|
+
declare const _default$1: typeof __VLS_export$13;
|
|
40
|
+
declare const __VLS_export$13: __VLS_WithSlots$13<vue1025.DefineComponent<{}, {}, {}, {}, {}, vue1025.ComponentOptionsMixin, vue1025.ComponentOptionsMixin, {}, string, vue1025.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue1025.ComponentProvideOptions, true, {}, any>, {
|
|
41
|
+
default(tour: UnwrapRef<StepAction[]>): unknown;
|
|
42
|
+
}>;
|
|
43
|
+
type __VLS_WithSlots$13<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/components/tour/tour-arrow-tip.vue.d.ts
|
|
50
|
+
interface TourArrowTipBaseProps extends PolymorphicProps {}
|
|
51
|
+
interface TourArrowTipProps extends TourArrowTipBaseProps,
|
|
52
|
+
/**
|
|
53
|
+
* @vue-ignore
|
|
54
|
+
*/
|
|
55
|
+
HTMLAttributes {}
|
|
56
|
+
declare const _default$3: typeof __VLS_export$12;
|
|
57
|
+
declare const __VLS_export$12: __VLS_WithSlots$12<vue1025.DefineComponent<TourArrowTipProps, {}, {}, {}, {}, vue1025.ComponentOptionsMixin, vue1025.ComponentOptionsMixin, {}, string, vue1025.PublicProps, Readonly<TourArrowTipProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1025.ComponentProvideOptions, false, {}, any>, {
|
|
58
|
+
default?: (props: {}) => any;
|
|
59
|
+
}>;
|
|
60
|
+
type __VLS_WithSlots$12<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/tour/tour-arrow.vue.d.ts
|
|
67
|
+
interface TourArrowBaseProps extends PolymorphicProps {}
|
|
68
|
+
interface TourArrowProps extends TourArrowBaseProps,
|
|
69
|
+
/**
|
|
70
|
+
* @vue-ignore
|
|
71
|
+
*/
|
|
72
|
+
HTMLAttributes {}
|
|
73
|
+
declare const _default$2: typeof __VLS_export$11;
|
|
74
|
+
declare const __VLS_export$11: __VLS_WithSlots$11<vue1025.DefineComponent<TourArrowProps, {}, {}, {}, {}, vue1025.ComponentOptionsMixin, vue1025.ComponentOptionsMixin, {}, string, vue1025.PublicProps, Readonly<TourArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1025.ComponentProvideOptions, false, {}, any>, {
|
|
75
|
+
default?: (props: {}) => any;
|
|
76
|
+
}>;
|
|
77
|
+
type __VLS_WithSlots$11<T, S> = T & {
|
|
78
|
+
new (): {
|
|
79
|
+
$slots: S;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/components/tour/tour-backdrop.vue.d.ts
|
|
84
|
+
interface TourBackdropBaseProps extends PolymorphicProps {}
|
|
85
|
+
interface TourBackdropProps extends TourBackdropBaseProps,
|
|
86
|
+
/**
|
|
87
|
+
* @vue-ignore
|
|
88
|
+
*/
|
|
89
|
+
HTMLAttributes {}
|
|
90
|
+
declare const _default$4: typeof __VLS_export$10;
|
|
91
|
+
declare const __VLS_export$10: __VLS_WithSlots$10<vue1025.DefineComponent<TourBackdropProps, {}, {}, {}, {}, vue1025.ComponentOptionsMixin, vue1025.ComponentOptionsMixin, {}, string, vue1025.PublicProps, Readonly<TourBackdropProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1025.ComponentProvideOptions, false, {}, any>, {
|
|
92
|
+
default?: (props: {}) => any;
|
|
93
|
+
}>;
|
|
94
|
+
type __VLS_WithSlots$10<T, S> = T & {
|
|
95
|
+
new (): {
|
|
96
|
+
$slots: S;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/components/tour/tour-close-trigger.vue.d.ts
|
|
101
|
+
interface TourCloseTriggerBaseProps extends PolymorphicProps {}
|
|
102
|
+
interface TourCloseTriggerProps extends TourCloseTriggerBaseProps,
|
|
103
|
+
/**
|
|
104
|
+
* @vue-ignore
|
|
105
|
+
*/
|
|
106
|
+
ButtonHTMLAttributes {}
|
|
107
|
+
declare const _default$5: typeof __VLS_export$9;
|
|
108
|
+
declare const __VLS_export$9: __VLS_WithSlots$9<vue1025.DefineComponent<TourCloseTriggerProps, {}, {}, {}, {}, vue1025.ComponentOptionsMixin, vue1025.ComponentOptionsMixin, {}, string, vue1025.PublicProps, Readonly<TourCloseTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1025.ComponentProvideOptions, false, {}, any>, {
|
|
109
|
+
default?: (props: {}) => any;
|
|
110
|
+
}>;
|
|
111
|
+
type __VLS_WithSlots$9<T, S> = T & {
|
|
112
|
+
new (): {
|
|
113
|
+
$slots: S;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region src/components/tour/tour-content.vue.d.ts
|
|
118
|
+
interface TourContentBaseProps extends PolymorphicProps {}
|
|
119
|
+
interface TourContentProps extends TourContentBaseProps,
|
|
120
|
+
/**
|
|
121
|
+
* @vue-ignore
|
|
122
|
+
*/
|
|
123
|
+
HTMLAttributes {}
|
|
124
|
+
declare const _default$6: typeof __VLS_export$8;
|
|
125
|
+
declare const __VLS_export$8: __VLS_WithSlots$8<vue1025.DefineComponent<TourContentProps, {}, {}, {}, {}, vue1025.ComponentOptionsMixin, vue1025.ComponentOptionsMixin, {}, string, vue1025.PublicProps, Readonly<TourContentProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1025.ComponentProvideOptions, false, {}, any>, {
|
|
126
|
+
default?: (props: {}) => any;
|
|
127
|
+
}>;
|
|
128
|
+
type __VLS_WithSlots$8<T, S> = T & {
|
|
129
|
+
new (): {
|
|
130
|
+
$slots: S;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region src/components/tour/tour-control.vue.d.ts
|
|
135
|
+
interface TourControlBaseProps extends PolymorphicProps {}
|
|
136
|
+
interface TourControlProps extends TourControlBaseProps,
|
|
137
|
+
/**
|
|
138
|
+
* @vue-ignore
|
|
139
|
+
*/
|
|
140
|
+
HTMLAttributes {}
|
|
141
|
+
declare const _default$8: typeof __VLS_export$7;
|
|
142
|
+
declare const __VLS_export$7: __VLS_WithSlots$7<vue1025.DefineComponent<TourControlProps, {}, {}, {}, {}, vue1025.ComponentOptionsMixin, vue1025.ComponentOptionsMixin, {}, string, vue1025.PublicProps, Readonly<TourControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1025.ComponentProvideOptions, false, {}, any>, {
|
|
143
|
+
default?: (props: {}) => any;
|
|
144
|
+
}>;
|
|
145
|
+
type __VLS_WithSlots$7<T, S> = T & {
|
|
146
|
+
new (): {
|
|
147
|
+
$slots: S;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region src/components/tour/tour-description.vue.d.ts
|
|
152
|
+
interface TourDescriptionBaseProps extends PolymorphicProps {}
|
|
153
|
+
interface TourDescriptionProps extends TourDescriptionBaseProps,
|
|
154
|
+
/**
|
|
155
|
+
* @vue-ignore
|
|
156
|
+
*/
|
|
157
|
+
HTMLAttributes {}
|
|
158
|
+
declare const _default$9: typeof __VLS_export$6;
|
|
159
|
+
declare const __VLS_export$6: __VLS_WithSlots$6<vue1025.DefineComponent<TourDescriptionProps, {}, {}, {}, {}, vue1025.ComponentOptionsMixin, vue1025.ComponentOptionsMixin, {}, string, vue1025.PublicProps, Readonly<TourDescriptionProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1025.ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
160
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
161
|
+
new (): {
|
|
162
|
+
$slots: S;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region src/components/tour/tour-positioner.vue.d.ts
|
|
167
|
+
interface TourPositionerBaseProps extends PolymorphicProps {}
|
|
168
|
+
interface TourPositionerProps extends TourPositionerBaseProps,
|
|
169
|
+
/**
|
|
170
|
+
* @vue-ignore
|
|
171
|
+
*/
|
|
172
|
+
HTMLAttributes {}
|
|
173
|
+
declare const _default$10: typeof __VLS_export$5;
|
|
174
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<vue1025.DefineComponent<TourPositionerProps, {}, {}, {}, {}, vue1025.ComponentOptionsMixin, vue1025.ComponentOptionsMixin, {}, string, vue1025.PublicProps, Readonly<TourPositionerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1025.ComponentProvideOptions, false, {}, any>, {
|
|
175
|
+
default?: (props: {}) => any;
|
|
176
|
+
}>;
|
|
177
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
178
|
+
new (): {
|
|
179
|
+
$slots: S;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region src/components/tour/tour-progress-text.vue.d.ts
|
|
184
|
+
interface TourProgressTextBaseProps extends PolymorphicProps {}
|
|
185
|
+
interface TourProgressTextProps extends TourProgressTextBaseProps,
|
|
186
|
+
/**
|
|
187
|
+
* @vue-ignore
|
|
188
|
+
*/
|
|
189
|
+
HTMLAttributes {}
|
|
190
|
+
declare const _default$11: typeof __VLS_export$4;
|
|
191
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<vue1025.DefineComponent<TourProgressTextProps, {}, {}, {}, {}, vue1025.ComponentOptionsMixin, vue1025.ComponentOptionsMixin, {}, string, vue1025.PublicProps, Readonly<TourProgressTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1025.ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
192
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
193
|
+
new (): {
|
|
194
|
+
$slots: S;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
//#endregion
|
|
198
|
+
//#region src/components/tour/tour-types.d.ts
|
|
199
|
+
type RootEmits = {
|
|
200
|
+
exitComplete: [];
|
|
201
|
+
focusOutside: [event: tour.FocusOutsideEvent];
|
|
202
|
+
interactOutside: [event: tour.InteractOutsideEvent];
|
|
203
|
+
pointerDownOutside: [event: tour.PointerDownOutsideEvent];
|
|
204
|
+
statusChange: [details: tour.StatusChangeDetails];
|
|
205
|
+
stepChange: [details: tour.StepChangeDetails];
|
|
206
|
+
stepsChange: [details: {
|
|
207
|
+
steps: tour.StepDetails[];
|
|
208
|
+
}];
|
|
209
|
+
};
|
|
210
|
+
//#endregion
|
|
211
|
+
//#region src/components/tour/tour-root.vue.d.ts
|
|
212
|
+
interface RootProps {
|
|
213
|
+
tour: UnwrapRef<UseTourReturn>;
|
|
214
|
+
}
|
|
215
|
+
interface TourRootBaseProps extends RootProps, RenderStrategyProps {}
|
|
216
|
+
interface TourRootProps extends TourRootBaseProps {}
|
|
217
|
+
interface TourRootEmits extends RootEmits {}
|
|
218
|
+
declare const _default$12: typeof __VLS_export$3;
|
|
219
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<vue1025.DefineComponent<TourRootProps, {}, {}, {}, {}, vue1025.ComponentOptionsMixin, vue1025.ComponentOptionsMixin, {
|
|
220
|
+
exitComplete: () => any;
|
|
221
|
+
focusOutside: (event: _sprawlify_primitives_machines_bottom_sheet19.FocusOutsideEvent) => any;
|
|
222
|
+
interactOutside: (event: _sprawlify_primitives_machines_bottom_sheet19.InteractOutsideEvent) => any;
|
|
223
|
+
pointerDownOutside: (event: _sprawlify_primitives_machines_bottom_sheet19.PointerDownOutsideEvent) => any;
|
|
224
|
+
statusChange: (details: tour.StatusChangeDetails) => any;
|
|
225
|
+
stepChange: (details: tour.StepChangeDetails) => any;
|
|
226
|
+
stepsChange: (details: {
|
|
227
|
+
steps: tour.StepDetails[];
|
|
228
|
+
}) => any;
|
|
229
|
+
}, string, vue1025.PublicProps, Readonly<TourRootProps> & Readonly<{
|
|
230
|
+
onExitComplete?: (() => any) | undefined;
|
|
231
|
+
onFocusOutside?: ((event: _sprawlify_primitives_machines_bottom_sheet19.FocusOutsideEvent) => any) | undefined;
|
|
232
|
+
onInteractOutside?: ((event: _sprawlify_primitives_machines_bottom_sheet19.InteractOutsideEvent) => any) | undefined;
|
|
233
|
+
onPointerDownOutside?: ((event: _sprawlify_primitives_machines_bottom_sheet19.PointerDownOutsideEvent) => any) | undefined;
|
|
234
|
+
onStatusChange?: ((details: tour.StatusChangeDetails) => any) | undefined;
|
|
235
|
+
onStepChange?: ((details: tour.StepChangeDetails) => any) | undefined;
|
|
236
|
+
onStepsChange?: ((details: {
|
|
237
|
+
steps: tour.StepDetails[];
|
|
238
|
+
}) => any) | undefined;
|
|
239
|
+
}>, {}, {}, {}, {}, string, vue1025.ComponentProvideOptions, false, {}, any>, {
|
|
240
|
+
default?: (props: {}) => any;
|
|
241
|
+
}>;
|
|
242
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
243
|
+
new (): {
|
|
244
|
+
$slots: S;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
//#endregion
|
|
248
|
+
//#region src/components/tour/tour-spotlight.vue.d.ts
|
|
249
|
+
interface TourSpotlightBaseProps extends PolymorphicProps {}
|
|
250
|
+
interface TourSpotlightProps extends TourSpotlightBaseProps,
|
|
251
|
+
/**
|
|
252
|
+
* @vue-ignore
|
|
253
|
+
*/
|
|
254
|
+
HTMLAttributes {}
|
|
255
|
+
declare const _default$13: typeof __VLS_export$2;
|
|
256
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<vue1025.DefineComponent<TourSpotlightProps, {}, {}, {}, {}, vue1025.ComponentOptionsMixin, vue1025.ComponentOptionsMixin, {}, string, vue1025.PublicProps, Readonly<TourSpotlightProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1025.ComponentProvideOptions, false, {}, any>, {
|
|
257
|
+
default?: (props: {}) => any;
|
|
258
|
+
}>;
|
|
259
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
260
|
+
new (): {
|
|
261
|
+
$slots: S;
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
//#endregion
|
|
265
|
+
//#region src/components/tour/tour-title.vue.d.ts
|
|
266
|
+
interface TourTitleBaseProps extends PolymorphicProps {}
|
|
267
|
+
interface TourTitleProps extends TourTitleBaseProps,
|
|
268
|
+
/**
|
|
269
|
+
* @vue-ignore
|
|
270
|
+
*/
|
|
271
|
+
HTMLAttributes {}
|
|
272
|
+
declare const _default$14: typeof __VLS_export$1;
|
|
273
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<vue1025.DefineComponent<TourTitleProps, {}, {}, {}, {}, vue1025.ComponentOptionsMixin, vue1025.ComponentOptionsMixin, {}, string, vue1025.PublicProps, Readonly<TourTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1025.ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
274
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
275
|
+
new (): {
|
|
276
|
+
$slots: S;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
declare namespace tour_d_exports {
|
|
280
|
+
export { _default as ActionTrigger, TourActionTriggerBaseProps as ActionTriggerBaseProps, TourActionTriggerProps as ActionTriggerProps, _default$1 as Actions, TourActionsProps as ActionsProps, _default$2 as Arrow, TourArrowBaseProps as ArrowBaseProps, TourArrowProps as ArrowProps, _default$3 as ArrowTip, TourArrowTipBaseProps as ArrowTipBaseProps, TourArrowTipProps as ArrowTipProps, _default$4 as Backdrop, TourBackdropBaseProps as BackdropBaseProps, TourBackdropProps as BackdropProps, _default$5 as CloseTrigger, TourCloseTriggerBaseProps as CloseTriggerBaseProps, TourCloseTriggerProps as CloseTriggerProps, _default$6 as Content, TourContentBaseProps as ContentBaseProps, TourContentProps as ContentProps, _default$7 as Context, TourContextProps as ContextProps, _default$8 as Control, TourControlBaseProps as ControlBaseProps, TourControlProps as ControlProps, _default$9 as Description, TourDescriptionBaseProps as DescriptionBaseProps, TourDescriptionProps as DescriptionProps, FocusOutsideEvent, InteractOutsideEvent, Point, PointerDownOutsideEvent, _default$10 as Positioner, TourPositionerBaseProps as PositionerBaseProps, TourPositionerProps as PositionerProps, _default$11 as ProgressText, TourProgressTextBaseProps as ProgressTextBaseProps, ProgressTextDetails, TourProgressTextProps as ProgressTextProps, _default$12 as Root, TourRootBaseProps as RootBaseProps, TourRootEmits as RootEmits, TourRootProps as RootProps, _default$13 as Spotlight, TourSpotlightBaseProps as SpotlightBaseProps, TourSpotlightProps as SpotlightProps, StatusChangeDetails, StepAction$1 as StepAction, StepActionMap, StepActionTriggerProps$1 as StepActionTriggerProps, StepBaseDetails, StepChangeDetails, StepDetails, StepEffectArgs, StepPlacement, StepStatus, StepType, _default$14 as Title, TourTitleBaseProps as TitleBaseProps, TourTitleProps as TitleProps, WaitOptions$1 as WaitOptions };
|
|
281
|
+
}
|
|
282
|
+
//#endregion
|
|
283
|
+
//#region src/components/tour/use-tour.d.ts
|
|
284
|
+
interface UseTourProps extends Optional<Omit<tour.Props, 'dir' | 'getRootNode'>, 'id'> {}
|
|
285
|
+
interface UseTourReturn extends ComputedRef<tour.Api<PropTypes>> {}
|
|
286
|
+
declare const useTour: (props?: MaybeRef<UseTourProps>, emit?: EmitFn$1<TourRootEmits>) => ComputedRef<tour.Api<PropTypes>>;
|
|
287
|
+
//#endregion
|
|
288
|
+
//#region src/components/tour/use-tour-context.d.ts
|
|
289
|
+
interface UseTourContext extends UseTourReturn {}
|
|
290
|
+
//#endregion
|
|
291
|
+
//#region src/components/tour/tour-context.vue.d.ts
|
|
292
|
+
interface TourContextProps extends SlotsType<{
|
|
293
|
+
default: UnwrapRef<UseTourContext>;
|
|
294
|
+
}> {}
|
|
295
|
+
declare const _default$7: typeof __VLS_export;
|
|
296
|
+
declare const __VLS_export: __VLS_WithSlots<vue1025.DefineComponent<{}, {}, {}, {}, {}, vue1025.ComponentOptionsMixin, vue1025.ComponentOptionsMixin, {}, string, vue1025.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue1025.ComponentProvideOptions, true, {}, any>, {
|
|
297
|
+
default(tour: UnwrapRef<UseTourContext>): unknown;
|
|
298
|
+
}>;
|
|
299
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
300
|
+
new (): {
|
|
301
|
+
$slots: S;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
//#endregion
|
|
305
|
+
export { tour_d_exports as Tour, _default as TourActionTrigger, type TourActionTriggerBaseProps, type TourActionTriggerProps, _default$1 as TourActions, type TourActionsProps, _default$2 as TourArrow, type TourArrowBaseProps, type TourArrowProps, _default$3 as TourArrowTip, type TourArrowTipBaseProps, type TourArrowTipProps, _default$4 as TourBackdrop, type TourBackdropBaseProps, type TourBackdropProps, _default$5 as TourCloseTrigger, type TourCloseTriggerBaseProps, type TourCloseTriggerProps, _default$6 as TourContent, type TourContentBaseProps, type TourContentProps, _default$7 as TourContext, type TourContextProps, _default$8 as TourControl, type TourControlBaseProps, type TourControlProps, _default$9 as TourDescription, type TourDescriptionBaseProps, type TourDescriptionProps, type TourFocusOutsideEvent, type TourInteractOutsideEvent, type TourPointerDownOutsideEvent, _default$10 as TourPositioner, type TourPositionerBaseProps, type TourPositionerProps, _default$11 as TourProgressText, type TourProgressTextBaseProps, type TourProgressTextProps, _default$12 as TourRoot, type TourRootBaseProps, type TourRootEmits, type TourRootProps, _default$13 as TourSpotlight, type TourSpotlightBaseProps, type TourSpotlightProps, type TourStepDetails, type TourStepEffectArgs, _default$14 as TourTitle, type TourTitleBaseProps, type TourTitleProps, type UseTourContext, type UseTourProps, type UseTourReturn, type WaitForEventOptions, type WaitOptions, tourAnatomy, useTour, useTourContext, waitForElement, waitForElementValue, waitForEvent, waitForPromise };
|