@wirekyt/vue 0.0.1 → 0.0.2
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-CEjnJlpm.js +179 -0
- package/dist/collapsible-aSz4kYqo.cjs +232 -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-1IjtyI-g.cjs +254 -0
- package/dist/collection-Ea6ZCZKK.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-C6Q2DqG6.d.ts +37 -0
- package/dist/index-CG9mpPgL.d.cts +444 -0
- package/dist/index-Cc4qS0rQ.d.cts +38 -0
- package/dist/index-Cc4qS0rQ.d.ts +38 -0
- package/dist/index-DB2uALlJ.d.cts +74 -0
- package/dist/index-DXb0W_NP.d.cts +37 -0
- package/dist/index-Zc9P69Ka.d.cts +104 -0
- package/dist/index-aMWdJRGL.d.ts +444 -0
- package/dist/index-uLE-tXSk.d.ts +74 -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-CWH9tv7s.cjs +651 -0
- package/dist/tree-view-CZcXMwi6.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 +278 -6
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { HTMLAttributes, MaybeRef } from "vue";
|
|
2
|
+
//#region src/components/highlight/types.d.ts
|
|
3
|
+
interface UseHighlightProps {
|
|
4
|
+
text: string;
|
|
5
|
+
query: string | string[];
|
|
6
|
+
ignoreCase?: boolean;
|
|
7
|
+
matchAll?: boolean;
|
|
8
|
+
exactMatch?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface HighlightChunk {
|
|
11
|
+
text: string;
|
|
12
|
+
match: boolean;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/highlight/use-highlight.d.ts
|
|
16
|
+
declare const useHighlight: (props: MaybeRef<UseHighlightProps>) => import("vue").ComputedRef<import("@wirekyt/dom/highlight-word").HighlightChunk[]>;
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/components/highlight/highlight.vue.d.ts
|
|
19
|
+
interface HighlightBaseProps extends UseHighlightProps {}
|
|
20
|
+
interface HighlightProps extends HighlightBaseProps,
|
|
21
|
+
/**
|
|
22
|
+
* @vue-ignore
|
|
23
|
+
*/
|
|
24
|
+
HTMLAttributes {}
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
declare const __VLS_export: import("vue").DefineComponent<HighlightProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HighlightProps> & Readonly<{}>, {
|
|
27
|
+
ignoreCase: boolean;
|
|
28
|
+
matchAll: boolean;
|
|
29
|
+
exactMatch: boolean;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { _default as Highlight, type HighlightChunk, type HighlightProps, type UseHighlightProps, useHighlight };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import "./utils-D95V66v9.js";
|
|
2
|
+
import { t as cleanProps } from "./clean-props--1kqQE0Y.js";
|
|
3
|
+
import { Fragment, computed, createElementBlock, createTextVNode, defineComponent, openBlock, renderList, toDisplayString, toValue, unref } from "vue";
|
|
4
|
+
import { highlightWord } from "@wirekyt/dom/highlight-word";
|
|
5
|
+
//#region src/components/highlight/use-highlight.ts
|
|
6
|
+
const useHighlight = (props) => {
|
|
7
|
+
return computed(() => highlightWord(cleanProps(toValue(props))));
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/components/highlight/highlight.vue
|
|
11
|
+
const _hoisted_1 = { key: 0 };
|
|
12
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
13
|
+
__name: "highlight",
|
|
14
|
+
props: {
|
|
15
|
+
text: {},
|
|
16
|
+
query: {},
|
|
17
|
+
ignoreCase: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: void 0
|
|
20
|
+
},
|
|
21
|
+
matchAll: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: void 0
|
|
24
|
+
},
|
|
25
|
+
exactMatch: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: void 0
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
setup(__props) {
|
|
31
|
+
const props = __props;
|
|
32
|
+
if (typeof props.text !== "string") throw new Error("[ark-ui/highlight] text must be a string");
|
|
33
|
+
const chunks = useHighlight(props);
|
|
34
|
+
return (_ctx, _cache) => {
|
|
35
|
+
return openBlock(true), createElementBlock(Fragment, null, renderList(unref(chunks), (chunk) => {
|
|
36
|
+
return openBlock(), createElementBlock(Fragment, null, [chunk.match ? (openBlock(), createElementBlock("mark", _hoisted_1, toDisplayString(chunk.text), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(chunk.text), 1)], 64))], 64);
|
|
37
|
+
}), 256);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
export { _sfc_main as Highlight, useHighlight };
|
|
@@ -0,0 +1,269 @@
|
|
|
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_hover_card = require("@wirekyt/dom/machines/hover-card");
|
|
11
|
+
_wirekyt_dom_machines_hover_card = require_rolldown_runtime.__toESM(_wirekyt_dom_machines_hover_card, 1);
|
|
12
|
+
let _wirekyt_dom = require("@wirekyt/dom");
|
|
13
|
+
//#region src/components/hover-card/use-context.ts
|
|
14
|
+
const [HoverCardProvider, useHoverCardContext] = require_utils.createContext("HoverCardContext");
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/hover-card/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 hoverCard = useHoverCardContext();
|
|
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)(hoverCard).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/hover-card/arrow.vue
|
|
33
|
+
const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
34
|
+
__name: "arrow",
|
|
35
|
+
props: { asChild: { type: Boolean } },
|
|
36
|
+
setup(__props) {
|
|
37
|
+
const hoverCard = useHoverCardContext();
|
|
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)(hoverCard).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/hover-card/content.vue
|
|
49
|
+
const _sfc_main$2 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
50
|
+
__name: "content",
|
|
51
|
+
props: { asChild: { type: Boolean } },
|
|
52
|
+
setup(__props) {
|
|
53
|
+
const hoverCard = useHoverCardContext();
|
|
54
|
+
const presence = require_presence.usePresenceContext();
|
|
55
|
+
const mergedProps = (0, vue.computed)(() => (0, _wirekyt_dom.mergeProps)(hoverCard.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/hover-card/context.vue
|
|
67
|
+
const _sfc_main$3 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
68
|
+
__name: "context",
|
|
69
|
+
setup(__props) {
|
|
70
|
+
const hoverCard = useHoverCardContext();
|
|
71
|
+
return (_ctx, _cache) => {
|
|
72
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default", (0, vue.normalizeProps)((0, vue.guardReactiveProps)((0, vue.unref)(hoverCard))));
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/components/hover-card/positioner.vue
|
|
78
|
+
const _sfc_main$4 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
79
|
+
__name: "positioner",
|
|
80
|
+
props: { asChild: { type: Boolean } },
|
|
81
|
+
setup(__props) {
|
|
82
|
+
const hoverCard = useHoverCardContext();
|
|
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)(hoverCard).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/hover-card/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 hoverCard = (0, vue.computed)(() => props.value);
|
|
107
|
+
const presence = require_use_presence.usePresence((0, vue.computed)(() => ({
|
|
108
|
+
present: hoverCard.value.open,
|
|
109
|
+
lazyMount: props.lazyMount,
|
|
110
|
+
unmountOnExit: props.unmountOnExit
|
|
111
|
+
})), emits);
|
|
112
|
+
HoverCardProvider(hoverCard);
|
|
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/hover-card/use-hover-card.ts
|
|
126
|
+
const useHoverCard = (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 localeProps = (0, vue.toValue)(props);
|
|
132
|
+
return {
|
|
133
|
+
id,
|
|
134
|
+
dir: locale.value.dir,
|
|
135
|
+
getRootNode: env?.value.getRootNode,
|
|
136
|
+
...require_clean_props.cleanProps(localeProps),
|
|
137
|
+
onOpenChange: (details) => {
|
|
138
|
+
emit?.("openChange", details);
|
|
139
|
+
emit?.("update:open", details.open);
|
|
140
|
+
localeProps.onOpenChange?.(details);
|
|
141
|
+
},
|
|
142
|
+
onTriggerValueChange: (details) => {
|
|
143
|
+
emit?.("triggerValueChange", details);
|
|
144
|
+
localeProps.onTriggerValueChange?.(details);
|
|
145
|
+
},
|
|
146
|
+
onFocusOutside: (details) => {
|
|
147
|
+
emit?.("focusOutside", details);
|
|
148
|
+
localeProps.onFocusOutside?.(details);
|
|
149
|
+
},
|
|
150
|
+
onInteractOutside: (details) => {
|
|
151
|
+
emit?.("interactOutside", details);
|
|
152
|
+
localeProps.onInteractOutside?.(details);
|
|
153
|
+
},
|
|
154
|
+
onPointerDownOutside: (details) => {
|
|
155
|
+
emit?.("pointerDownOutside", details);
|
|
156
|
+
localeProps.onPointerDownOutside?.(details);
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
});
|
|
160
|
+
const service = require_utils.useMachine(_wirekyt_dom_machines_hover_card.machine, context);
|
|
161
|
+
return (0, vue.computed)(() => _wirekyt_dom_machines_hover_card.connect(service, require_utils.normalizeProps));
|
|
162
|
+
};
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region src/components/hover-card/root.vue
|
|
165
|
+
const _sfc_main$5 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
166
|
+
__name: "root",
|
|
167
|
+
props: /*@__PURE__*/ (0, vue.mergeDefaults)({
|
|
168
|
+
closeDelay: {},
|
|
169
|
+
defaultOpen: { type: Boolean },
|
|
170
|
+
disabled: { type: Boolean },
|
|
171
|
+
id: {},
|
|
172
|
+
ids: {},
|
|
173
|
+
open: { type: Boolean },
|
|
174
|
+
openDelay: {},
|
|
175
|
+
positioning: {},
|
|
176
|
+
triggerValue: {},
|
|
177
|
+
defaultTriggerValue: {},
|
|
178
|
+
lazyMount: { type: Boolean },
|
|
179
|
+
unmountOnExit: { type: Boolean }
|
|
180
|
+
}, {
|
|
181
|
+
defaultOpen: void 0,
|
|
182
|
+
disabled: void 0,
|
|
183
|
+
open: void 0
|
|
184
|
+
}),
|
|
185
|
+
emits: [
|
|
186
|
+
"exitComplete",
|
|
187
|
+
"focusOutside",
|
|
188
|
+
"interactOutside",
|
|
189
|
+
"openChange",
|
|
190
|
+
"pointerDownOutside",
|
|
191
|
+
"triggerValueChange",
|
|
192
|
+
"update:open"
|
|
193
|
+
],
|
|
194
|
+
setup(__props, { emit: __emit }) {
|
|
195
|
+
const props = __props;
|
|
196
|
+
const emits = __emit;
|
|
197
|
+
const hoverCard = useHoverCard(props, emits);
|
|
198
|
+
const presence = require_use_presence.usePresence((0, vue.computed)(() => ({
|
|
199
|
+
present: hoverCard.value.open,
|
|
200
|
+
lazyMount: props.lazyMount,
|
|
201
|
+
unmountOnExit: props.unmountOnExit
|
|
202
|
+
})), emits);
|
|
203
|
+
HoverCardProvider(hoverCard);
|
|
204
|
+
require_presence.PresenceProvider(presence);
|
|
205
|
+
require_utils.RenderStrategyPropsProvider((0, vue.computed)(() => ({
|
|
206
|
+
lazyMount: props.lazyMount,
|
|
207
|
+
unmountOnExit: props.unmountOnExit
|
|
208
|
+
})));
|
|
209
|
+
require_utils.useForwardExpose();
|
|
210
|
+
return (_ctx, _cache) => {
|
|
211
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default");
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
//#endregion
|
|
216
|
+
//#region src/components/hover-card/trigger.vue
|
|
217
|
+
const _sfc_main$7 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
218
|
+
__name: "trigger",
|
|
219
|
+
props: {
|
|
220
|
+
value: {},
|
|
221
|
+
asChild: { type: Boolean }
|
|
222
|
+
},
|
|
223
|
+
setup(__props) {
|
|
224
|
+
const props = __props;
|
|
225
|
+
const hoverCard = useHoverCardContext();
|
|
226
|
+
require_utils.useForwardExpose();
|
|
227
|
+
return (_ctx, _cache) => {
|
|
228
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).button, (0, vue.mergeProps)((0, vue.unref)(hoverCard).getTriggerProps(props), { "as-child": __props.asChild }), {
|
|
229
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
230
|
+
_: 3
|
|
231
|
+
}, 16, ["as-child"]);
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
//#endregion
|
|
236
|
+
//#region src/components/hover-card/hover-card.ts
|
|
237
|
+
var hover_card_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
238
|
+
Arrow: () => _sfc_main,
|
|
239
|
+
ArrowTip: () => _sfc_main$1,
|
|
240
|
+
Content: () => _sfc_main$2,
|
|
241
|
+
Context: () => _sfc_main$3,
|
|
242
|
+
Positioner: () => _sfc_main$4,
|
|
243
|
+
Root: () => _sfc_main$5,
|
|
244
|
+
RootProvider: () => _sfc_main$6,
|
|
245
|
+
Trigger: () => _sfc_main$7
|
|
246
|
+
});
|
|
247
|
+
//#endregion
|
|
248
|
+
Object.defineProperty(exports, "HoverCard", {
|
|
249
|
+
enumerable: true,
|
|
250
|
+
get: function() {
|
|
251
|
+
return hover_card_exports;
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
exports.HoverCardArrow = _sfc_main;
|
|
255
|
+
exports.HoverCardArrowTip = _sfc_main$1;
|
|
256
|
+
exports.HoverCardContent = _sfc_main$2;
|
|
257
|
+
exports.HoverCardContext = _sfc_main$3;
|
|
258
|
+
exports.HoverCardPositioner = _sfc_main$4;
|
|
259
|
+
exports.HoverCardRoot = _sfc_main$5;
|
|
260
|
+
exports.HoverCardRootProvider = _sfc_main$6;
|
|
261
|
+
exports.HoverCardTrigger = _sfc_main$7;
|
|
262
|
+
Object.defineProperty(exports, "hoverCardAnatomy", {
|
|
263
|
+
enumerable: true,
|
|
264
|
+
get: function() {
|
|
265
|
+
return _wirekyt_dom_machines_hover_card.anatomy;
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
exports.useHoverCard = useHoverCard;
|
|
269
|
+
exports.useHoverCardContext = useHoverCardContext;
|
|
@@ -0,0 +1,202 @@
|
|
|
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 hoverCard from "@wirekyt/dom/machines/hover-card";
|
|
7
|
+
import { FocusOutsideEvent, FocusOutsideEvent as HoverCardFocusOutsideEvent, InteractOutsideEvent, InteractOutsideEvent as HoverCardInteractOutsideEvent, OpenChangeDetails, OpenChangeDetails as HoverCardOpenChangeDetails, PointerDownOutsideEvent, PointerDownOutsideEvent as HoverCardPointerDownOutsideEvent, TriggerProps, TriggerValueChangeDetails, TriggerValueChangeDetails as HoverCardTriggerValueChangeDetails, anatomy as hoverCardAnatomy } from "@wirekyt/dom/machines/hover-card";
|
|
8
|
+
//#region src/components/hover-card/arrow-tip.vue.d.ts
|
|
9
|
+
interface HoverCardArrowTipBaseProps extends PolymorphicProps {}
|
|
10
|
+
interface HoverCardArrowTipProps extends HoverCardArrowTipBaseProps,
|
|
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<HoverCardArrowTipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HoverCardArrowTipProps> & 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/hover-card/arrow.vue.d.ts
|
|
26
|
+
interface HoverCardArrowBaseProps extends PolymorphicProps {}
|
|
27
|
+
interface HoverCardArrowProps extends HoverCardArrowBaseProps,
|
|
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<HoverCardArrowProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HoverCardArrowProps> & 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/hover-card/content.vue.d.ts
|
|
43
|
+
interface HoverCardContentBaseProps extends PolymorphicProps {}
|
|
44
|
+
interface HoverCardContentProps extends HoverCardContentBaseProps,
|
|
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<HoverCardContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HoverCardContentProps> & 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/hover-card/types.d.ts
|
|
60
|
+
interface RootProps {
|
|
61
|
+
closeDelay?: number;
|
|
62
|
+
defaultOpen?: boolean;
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
id?: string;
|
|
65
|
+
ids?: Partial<{
|
|
66
|
+
trigger: string;
|
|
67
|
+
content: string;
|
|
68
|
+
positioner: string;
|
|
69
|
+
arrow: string;
|
|
70
|
+
}>;
|
|
71
|
+
open?: boolean;
|
|
72
|
+
openDelay?: number;
|
|
73
|
+
positioning?: hoverCard.PositioningOptions;
|
|
74
|
+
triggerValue?: string | null;
|
|
75
|
+
defaultTriggerValue?: string | null;
|
|
76
|
+
}
|
|
77
|
+
type RootEmits = {
|
|
78
|
+
exitComplete: [];
|
|
79
|
+
focusOutside: [event: hoverCard.FocusOutsideEvent];
|
|
80
|
+
interactOutside: [event: hoverCard.InteractOutsideEvent];
|
|
81
|
+
openChange: [details: hoverCard.OpenChangeDetails];
|
|
82
|
+
pointerDownOutside: [event: hoverCard.PointerDownOutsideEvent];
|
|
83
|
+
triggerValueChange: [details: hoverCard.TriggerValueChangeDetails];
|
|
84
|
+
"update:open": [open: boolean];
|
|
85
|
+
};
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/components/hover-card/use-hover-card.d.ts
|
|
88
|
+
interface UseHoverCardProps extends Optional<Omit<hoverCard.Props, "dir" | "getRootNode">, "id"> {}
|
|
89
|
+
interface UseHoverCardReturn extends ComputedRef<hoverCard.Api<PropTypes>> {}
|
|
90
|
+
declare const useHoverCard: (props?: MaybeRef<UseHoverCardProps>, emit?: EmitFn$1<RootEmits>) => UseHoverCardReturn;
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region src/components/hover-card/use-context.d.ts
|
|
93
|
+
interface UseHoverCardContext extends UseHoverCardReturn {}
|
|
94
|
+
declare const HoverCardProvider: (opts: UseHoverCardContext) => void, useHoverCardContext: (fallback?: UseHoverCardContext | undefined) => UseHoverCardContext;
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/components/hover-card/context.vue.d.ts
|
|
97
|
+
interface HoverCardContextProps extends SlotsType<{
|
|
98
|
+
default: UnwrapRef<UseHoverCardContext>;
|
|
99
|
+
}> {}
|
|
100
|
+
declare const _default$3: typeof __VLS_export$4;
|
|
101
|
+
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>, {
|
|
102
|
+
default(hoverCard: UnwrapRef<UseHoverCardContext>): unknown;
|
|
103
|
+
}>;
|
|
104
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
105
|
+
new (): {
|
|
106
|
+
$slots: S;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region src/components/hover-card/positioner.vue.d.ts
|
|
111
|
+
interface HoverCardPositionerBaseProps extends PolymorphicProps {}
|
|
112
|
+
interface HoverCardPositionerProps extends HoverCardPositionerBaseProps,
|
|
113
|
+
/**
|
|
114
|
+
* @vue-ignore
|
|
115
|
+
*/
|
|
116
|
+
HTMLAttributes {}
|
|
117
|
+
declare const _default$4: typeof __VLS_export$3;
|
|
118
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<import("vue").DefineComponent<HoverCardPositionerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HoverCardPositionerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
119
|
+
default?: (props: {}) => any;
|
|
120
|
+
}>;
|
|
121
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
122
|
+
new (): {
|
|
123
|
+
$slots: S;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/components/hover-card/root-provider.vue.d.ts
|
|
128
|
+
interface RootProviderProps {
|
|
129
|
+
value: UnwrapRef<UseHoverCardReturn>;
|
|
130
|
+
}
|
|
131
|
+
interface HoverCardRootProviderBaseProps extends RootProviderProps, RenderStrategyProps {}
|
|
132
|
+
interface HoverCardRootProviderProps extends HoverCardRootProviderBaseProps {}
|
|
133
|
+
interface HoverCardRootProviderEmits extends RootEmits$1 {}
|
|
134
|
+
declare const _default$6: typeof __VLS_export$2;
|
|
135
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<HoverCardRootProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
136
|
+
exitComplete: () => any;
|
|
137
|
+
}, string, import("vue").PublicProps, Readonly<HoverCardRootProviderProps> & Readonly<{
|
|
138
|
+
onExitComplete?: (() => any) | undefined;
|
|
139
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
140
|
+
default?: (props: {}) => any;
|
|
141
|
+
}>;
|
|
142
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
143
|
+
new (): {
|
|
144
|
+
$slots: S;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region src/components/hover-card/root.vue.d.ts
|
|
149
|
+
interface HoverCardRootBaseProps extends RootProps, RenderStrategyProps {}
|
|
150
|
+
interface HoverCardRootProps extends HoverCardRootBaseProps {}
|
|
151
|
+
interface HoverCardRootEmits extends RootEmits {}
|
|
152
|
+
declare const _default$5: typeof __VLS_export$1;
|
|
153
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<HoverCardRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
154
|
+
exitComplete: () => any;
|
|
155
|
+
openChange: (details: import("@wirekyt/dom/machines/hover-card").OpenChangeDetails) => any;
|
|
156
|
+
"update:open": (open: boolean) => any;
|
|
157
|
+
focusOutside: (event: import("@wirekyt/dom/machines/popover").FocusOutsideEvent) => any;
|
|
158
|
+
interactOutside: (event: import("@wirekyt/dom/machines/popover").InteractOutsideEvent) => any;
|
|
159
|
+
pointerDownOutside: (event: import("@wirekyt/dom/machines/popover").PointerDownOutsideEvent) => any;
|
|
160
|
+
triggerValueChange: (details: import("@wirekyt/dom/machines/hover-card").TriggerValueChangeDetails) => any;
|
|
161
|
+
}, string, import("vue").PublicProps, Readonly<HoverCardRootProps> & Readonly<{
|
|
162
|
+
onExitComplete?: (() => any) | undefined;
|
|
163
|
+
onOpenChange?: ((details: import("@wirekyt/dom/machines/hover-card").OpenChangeDetails) => any) | undefined;
|
|
164
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
165
|
+
onFocusOutside?: ((event: import("@wirekyt/dom/machines/popover").FocusOutsideEvent) => any) | undefined;
|
|
166
|
+
onInteractOutside?: ((event: import("@wirekyt/dom/machines/popover").InteractOutsideEvent) => any) | undefined;
|
|
167
|
+
onPointerDownOutside?: ((event: import("@wirekyt/dom/machines/popover").PointerDownOutsideEvent) => any) | undefined;
|
|
168
|
+
onTriggerValueChange?: ((details: import("@wirekyt/dom/machines/hover-card").TriggerValueChangeDetails) => any) | undefined;
|
|
169
|
+
}>, {
|
|
170
|
+
disabled: boolean;
|
|
171
|
+
open: boolean;
|
|
172
|
+
defaultOpen: boolean;
|
|
173
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
174
|
+
default?: (props: {}) => any;
|
|
175
|
+
}>;
|
|
176
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
177
|
+
new (): {
|
|
178
|
+
$slots: S;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region src/components/hover-card/trigger.vue.d.ts
|
|
183
|
+
interface HoverCardTriggerBaseProps extends TriggerProps, PolymorphicProps {}
|
|
184
|
+
interface HoverCardTriggerProps extends HoverCardTriggerBaseProps,
|
|
185
|
+
/**
|
|
186
|
+
* @vue-ignore
|
|
187
|
+
*/
|
|
188
|
+
Omit<ButtonHTMLAttributes, "value"> {}
|
|
189
|
+
declare const _default$7: typeof __VLS_export;
|
|
190
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<HoverCardTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HoverCardTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
191
|
+
default?: (props: {}) => any;
|
|
192
|
+
}>;
|
|
193
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
194
|
+
new (): {
|
|
195
|
+
$slots: S;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
declare namespace hover_card_d_exports {
|
|
199
|
+
export { _default as Arrow, HoverCardArrowBaseProps as ArrowBaseProps, HoverCardArrowProps as ArrowProps, _default$1 as ArrowTip, HoverCardArrowTipBaseProps as ArrowTipBaseProps, HoverCardArrowTipProps as ArrowTipProps, _default$2 as Content, HoverCardContentBaseProps as ContentBaseProps, HoverCardContentProps as ContentProps, _default$3 as Context, HoverCardContextProps as ContextProps, FocusOutsideEvent, InteractOutsideEvent, OpenChangeDetails, PointerDownOutsideEvent, _default$4 as Positioner, HoverCardPositionerBaseProps as PositionerBaseProps, HoverCardPositionerProps as PositionerProps, _default$5 as Root, HoverCardRootBaseProps as RootBaseProps, HoverCardRootEmits as RootEmits, HoverCardRootProps as RootProps, _default$6 as RootProvider, HoverCardRootProviderBaseProps as RootProviderBaseProps, HoverCardRootProviderProps as RootProviderProps, _default$7 as Trigger, HoverCardTriggerBaseProps as TriggerBaseProps, HoverCardTriggerProps as TriggerProps, TriggerValueChangeDetails };
|
|
200
|
+
}
|
|
201
|
+
//#endregion
|
|
202
|
+
export { hover_card_d_exports as HoverCard, _default as HoverCardArrow, type HoverCardArrowBaseProps, type HoverCardArrowProps, _default$1 as HoverCardArrowTip, type HoverCardArrowTipBaseProps, type HoverCardArrowTipProps, _default$2 as HoverCardContent, type HoverCardContentBaseProps, type HoverCardContentProps, _default$3 as HoverCardContext, type HoverCardContextProps, type HoverCardFocusOutsideEvent, type HoverCardInteractOutsideEvent, type HoverCardOpenChangeDetails, type HoverCardPointerDownOutsideEvent, _default$4 as HoverCardPositioner, type HoverCardPositionerBaseProps, type HoverCardPositionerProps, _default$5 as HoverCardRoot, type HoverCardRootBaseProps, type HoverCardRootEmits, type HoverCardRootProps, _default$6 as HoverCardRootProvider, type HoverCardRootProviderBaseProps, type HoverCardRootProviderEmits, type HoverCardRootProviderProps, _default$7 as HoverCardTrigger, type HoverCardTriggerBaseProps, type HoverCardTriggerProps, type HoverCardTriggerValueChangeDetails, type UseHoverCardContext, type UseHoverCardProps, type UseHoverCardReturn, hoverCardAnatomy, useHoverCard, useHoverCardContext };
|