@orchidui/dashboard 1.8.1-96 → 1.8.1-97
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/Dashboard/Card/OcCard.js +1 -1
- package/dist/Dashboard/TextEditor/QuillEditor.js +1 -1
- package/dist/{OcCard-B3SCzVwn.js → OcCard-D3be6IMj.js} +58 -54
- package/dist/OcCodeBlock-uFQyGnLq.js +37 -0
- package/dist/{OcLottieAnimation-DeMoIDaX.js → OcLottieAnimation-BB7AK2AO.js} +62 -62
- package/dist/{QuillEditor-hFQ0MJZO.js → QuillEditor-DRwC0sgJ.js} +579 -556
- package/dist/index.js +4 -4
- package/package.json +3 -265
- package/dist/AccordionTrigger.vue_vue_type_script_setup_true_lang-BdmLII9i.js +0 -295
- package/dist/CalendarPrevButton.vue_vue_type_script_setup_true_lang-DpJRpFhK.js +0 -891
- package/dist/CardTitle.vue_vue_type_script_setup_true_lang-D2_Bj3jw.js +0 -68
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang-C51LjITJ.js +0 -172
- package/dist/CollapsibleTrigger-fCarY5DJ.js +0 -154
- package/dist/Collection-COudIl-A.js +0 -55
- package/dist/ConfigProvider-7mV0D7Sp.js +0 -6
- package/dist/DialogContent.vue_vue_type_script_setup_true_lang-CdrrrG29.js +0 -68
- package/dist/DialogOverlay-Cj3UTjZ8.js +0 -309
- package/dist/DialogPortal-zAvO8zt4.js +0 -23
- package/dist/DialogTrigger-BIF1A4hk.js +0 -72
- package/dist/DismissableLayer-C7IJliOb.js +0 -151
- package/dist/FocusScope--pJ6bboI.js +0 -121
- package/dist/FormMessage.vue_vue_type_script_setup_true_lang-DwlnFEn2.js +0 -92
- package/dist/Input.vue_vue_type_script_setup_true_lang-BrjsUUvL.js +0 -27
- package/dist/Label.vue_vue_type_script_setup_true_lang-D_LMIKBv.js +0 -51
- package/dist/ListboxItem-CjMk-mEX.js +0 -417
- package/dist/MenuSubTrigger-CUrxnPwO.js +0 -845
- package/dist/OcCodeBlock-CBdVqav7.js +0 -37
- package/dist/PopoverTrigger.vue_vue_type_script_setup_true_lang-DtI_qIyx.js +0 -394
- package/dist/PopperContent-BT3Svcc3.js +0 -1465
- package/dist/Presence-CxfTrw6l.js +0 -133
- package/dist/Primitive-B3twiLO1.js +0 -44
- package/dist/RadioGroupItem.vue_vue_type_script_setup_true_lang-BNfRYIhL.js +0 -297
- package/dist/RovingFocusGroup-0OHdFQl0.js +0 -92
- package/dist/RovingFocusItem-s7Ug6oxb.js +0 -82
- package/dist/SelectValue.vue_vue_type_script_setup_true_lang-CVsYrN1R.js +0 -1255
- package/dist/Separator-DRam5i7g.js +0 -54
- package/dist/Separator.vue_vue_type_script_setup_true_lang-DGPbh6Dt.js +0 -27
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-k1A7l6Y-.js +0 -17
- package/dist/Switch.vue_vue_type_script_setup_true_lang-94ZKgnTz.js +0 -135
- package/dist/Teleport-DnUewq5H.js +0 -25
- package/dist/Textarea.vue_vue_type_script_setup_true_lang-DKazues9.js +0 -27
- package/dist/TooltipTrigger.vue_vue_type_script_setup_true_lang-CZ3AuN38.js +0 -426
- package/dist/VisuallyHidden-DMAU4heD.js +0 -41
- package/dist/VisuallyHiddenInput-DvJnsVHt.js +0 -59
- package/dist/_commonjsHelpers-B4e78b8K.js +0 -28
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/array-CqVTtuYm.js +0 -6
- package/dist/arrays-4jDZqbdb.js +0 -20
- package/dist/check-C2tzJ0Gk.js +0 -11
- package/dist/chevron-down-CnpAlizg.js +0 -13
- package/dist/chevron-left-BOwFasou.js +0 -13
- package/dist/chevron-right-D308801z.js +0 -13
- package/dist/circle-A-6NpYiX.js +0 -13
- package/dist/clamp-BL1Rb24G.js +0 -22
- package/dist/constant-CuDQlTIy.js +0 -3433
- package/dist/createContext-CZEfaSVa.js +0 -17
- package/dist/createLucideIcon-eXqDwUWj.js +0 -71
- package/dist/ellipsis-CEG9G7eN.js +0 -15
- package/dist/getActiveElement-B-HWdUIb.js +0 -11
- package/dist/handleAndDispatchCustomEvent-Byh08EHr.js +0 -11
- package/dist/index-B3LW8uSH.js +0 -133
- package/dist/index-BIlpXuWX.js +0 -3430
- package/dist/index-BlGEiPHj.js +0 -1246
- package/dist/index-BwPb_idr.js +0 -574
- package/dist/index-C9julNQm.js +0 -173
- package/dist/index-C_aI-Wfj.js +0 -34
- package/dist/index-CumjCvqB.js +0 -5703
- package/dist/index-LqWMCtOd.js +0 -809
- package/dist/index-OpE2oGce.js +0 -110
- package/dist/isValueEqualOrExist-BDSMUv8t.js +0 -8
- package/dist/lib/utils.js +0 -5
- package/dist/nullish-CjWwlQS3.js +0 -6
- package/dist/ohash.D__AXeF1-DX2n0b2C.js +0 -106
- package/dist/plus-CgluTYQY.js +0 -14
- package/dist/text-zwICaAnx.js +0 -743
- package/dist/ui/accordion/index.js +0 -7
- package/dist/ui/alert/index.js +0 -64
- package/dist/ui/alert-dialog/index.js +0 -356
- package/dist/ui/aspect-ratio/index.js +0 -50
- package/dist/ui/auto-form/constant.js +0 -5
- package/dist/ui/auto-form/dependencies.js +0 -61
- package/dist/ui/auto-form/index.js +0 -227
- package/dist/ui/auto-form/interface.js +0 -4
- package/dist/ui/auto-form/utils.js +0 -89
- package/dist/ui/avatar/index.js +0 -189
- package/dist/ui/badge/index.js +0 -37
- package/dist/ui/breadcrumb/index.js +0 -126
- package/dist/ui/button/index.js +0 -55
- package/dist/ui/calendar/index.js +0 -15
- package/dist/ui/card/index.js +0 -38
- package/dist/ui/carousel/index.js +0 -174
- package/dist/ui/carousel/interface.js +0 -1
- package/dist/ui/carousel/useCarousel.js +0 -1288
- package/dist/ui/chart/index.js +0 -8
- package/dist/ui/chart/interface.js +0 -1
- package/dist/ui/chart-area/index.js +0 -331
- package/dist/ui/chart-bar/index.js +0 -490
- package/dist/ui/chart-donut/index.js +0 -509
- package/dist/ui/chart-line/index.js +0 -110
- package/dist/ui/checkbox/index.js +0 -4
- package/dist/ui/collapsible/index.js +0 -60
- package/dist/ui/combobox/index.js +0 -877
- package/dist/ui/command/index.js +0 -323
- package/dist/ui/context-menu/index.js +0 -734
- package/dist/ui/dialog/index.js +0 -169
- package/dist/ui/drawer/index.js +0 -971
- package/dist/ui/dropdown-menu/index.js +0 -723
- package/dist/ui/form/index.js +0 -13
- package/dist/ui/form/injectionKeys.js +0 -4
- package/dist/ui/form/useFormField.js +0 -25
- package/dist/ui/hover-card/index.js +0 -331
- package/dist/ui/input/index.js +0 -4
- package/dist/ui/label/index.js +0 -4
- package/dist/ui/menubar/index.js +0 -862
- package/dist/ui/navigation-menu/index.js +0 -873
- package/dist/ui/number-field/index.js +0 -682
- package/dist/ui/pagination/index.js +0 -444
- package/dist/ui/pin-input/index.js +0 -308
- package/dist/ui/popover/index.js +0 -6
- package/dist/ui/progress/index.js +0 -137
- package/dist/ui/radio-group/index.js +0 -5
- package/dist/ui/range-calendar/index.js +0 -986
- package/dist/ui/resizable/index.js +0 -1432
- package/dist/ui/scroll-area/index.js +0 -775
- package/dist/ui/select/index.js +0 -135
- package/dist/ui/separator/index.js +0 -4
- package/dist/ui/sheet/index.js +0 -188
- package/dist/ui/sidebar/index.js +0 -652
- package/dist/ui/sidebar/utils.js +0 -12
- package/dist/ui/skeleton/index.js +0 -4
- package/dist/ui/slider/index.js +0 -478
- package/dist/ui/sonner/index.js +0 -892
- package/dist/ui/stepper/index.js +0 -442
- package/dist/ui/switch/index.js +0 -4
- package/dist/ui/table/index.js +0 -153
- package/dist/ui/tabs/index.js +0 -280
- package/dist/ui/tags-input/index.js +0 -449
- package/dist/ui/textarea/index.js +0 -4
- package/dist/ui/toast/index.js +0 -738
- package/dist/ui/toast/use-toast.js +0 -85
- package/dist/ui/toggle/index.js +0 -6
- package/dist/ui/toggle-group/index.js +0 -112
- package/dist/ui/tooltip/index.js +0 -29
- package/dist/useArrowNavigation-BRMPveaB.js +0 -49
- package/dist/useBodyScrollLock-CazCRZjZ.js +0 -153
- package/dist/useDirection-C3C_TLKm.js +0 -14
- package/dist/useFocusGuards-CyjC9cG9.js +0 -26
- package/dist/useFormControl-CFVC51Lp.js +0 -11
- package/dist/useForwardExpose-DZT6mL_U.js +0 -37
- package/dist/useForwardPropsEmits-0XKBv1pB.js +0 -33
- package/dist/useGraceArea-D7-GP1ii.js +0 -137
- package/dist/useId-reAg216X.js +0 -13
- package/dist/useKbd-BJNupnml.js +0 -41
- package/dist/useLocale-BfU0LC8Z.js +0 -14
- package/dist/useNonce-C1ZOgOp5.js +0 -14
- package/dist/usePrimitiveElement-BjwUvHih.js +0 -15
- package/dist/useSingleOrMultipleValue-BkTAaaJB.js +0 -43
- package/dist/useSize-BnyQ8FZF.js +0 -37
- package/dist/useTypeahead-oSidjyFF.js +0 -40
- package/dist/utils-DKNaYMZh.js +0 -57
- package/dist/utils-Dx9la83v.js +0 -35
- package/dist/utils-DxQ_ywGa.js +0 -55
- package/dist/utils-SFgRDk1R.js +0 -2748
- package/dist/utils-W-UiqiPE.js +0 -1869
- package/dist/vee-validate-Cf8JDJ_k.js +0 -2232
- package/dist/x-Cl6YllUK.js +0 -14
package/dist/ui/form/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { _ as a, a as m, b as s, c as F, d as e } from "../../FormMessage.vue_vue_type_script_setup_true_lang-DwlnFEn2.js";
|
|
2
|
-
import { FORM_ITEM_INJECTION_KEY as p } from "./injectionKeys.js";
|
|
3
|
-
import { F as _, a as f } from "../../vee-validate-Cf8JDJ_k.js";
|
|
4
|
-
export {
|
|
5
|
-
p as FORM_ITEM_INJECTION_KEY,
|
|
6
|
-
_ as Form,
|
|
7
|
-
a as FormControl,
|
|
8
|
-
m as FormDescription,
|
|
9
|
-
f as FormField,
|
|
10
|
-
s as FormItem,
|
|
11
|
-
F as FormLabel,
|
|
12
|
-
e as FormMessage
|
|
13
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { c as d, d as m, e as n, f, g as l } from "../../vee-validate-Cf8JDJ_k.js";
|
|
2
|
-
import { inject as r } from "vue";
|
|
3
|
-
import { FORM_ITEM_INJECTION_KEY as c } from "./injectionKeys.js";
|
|
4
|
-
function I() {
|
|
5
|
-
const i = r(d), t = r(c);
|
|
6
|
-
if (!i)
|
|
7
|
-
throw new Error("useFormField should be used within <FormField>");
|
|
8
|
-
const { name: e } = i, o = t, s = {
|
|
9
|
-
valid: l(e),
|
|
10
|
-
isDirty: f(e),
|
|
11
|
-
isTouched: n(e),
|
|
12
|
-
error: m(e)
|
|
13
|
-
};
|
|
14
|
-
return {
|
|
15
|
-
id: o,
|
|
16
|
-
name: e,
|
|
17
|
-
formItemId: `${o}-form-item`,
|
|
18
|
-
formDescriptionId: `${o}-form-item-description`,
|
|
19
|
-
formMessageId: `${o}-form-item-message`,
|
|
20
|
-
...s
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
I as useFormField
|
|
25
|
-
};
|
|
@@ -1,331 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, toRefs as H, ref as C, createBlock as v, openBlock as y, unref as e, withCtx as d, renderSlot as g, watchEffect as x, onMounted as F, onUnmounted as U, withModifiers as I, createVNode as O, mergeProps as D, nextTick as L, normalizeProps as R, guardReactiveProps as T } from "vue";
|
|
2
|
-
import { a as k, u as E } from "../../useForwardPropsEmits-0XKBv1pB.js";
|
|
3
|
-
import { u as N, s as M } from "../../index-BwPb_idr.js";
|
|
4
|
-
import { _ as z, a as W, b as K } from "../../PopperContent-BT3Svcc3.js";
|
|
5
|
-
import { c as A } from "../../createContext-CZEfaSVa.js";
|
|
6
|
-
import { u as b } from "../../useForwardExpose-DZT6mL_U.js";
|
|
7
|
-
import { c as V } from "../../utils-SFgRDk1R.js";
|
|
8
|
-
import { _ as j } from "../../Teleport-DnUewq5H.js";
|
|
9
|
-
import { u as G } from "../../useGraceArea-D7-GP1ii.js";
|
|
10
|
-
import { _ as q } from "../../DismissableLayer-C7IJliOb.js";
|
|
11
|
-
import { P as J } from "../../Presence-CxfTrw6l.js";
|
|
12
|
-
import { r as Q } from "../../index-OpE2oGce.js";
|
|
13
|
-
import { P as X } from "../../Primitive-B3twiLO1.js";
|
|
14
|
-
function S(i) {
|
|
15
|
-
return (r) => r.pointerType === "touch" ? void 0 : i();
|
|
16
|
-
}
|
|
17
|
-
function Y(i) {
|
|
18
|
-
const r = [], s = document.createTreeWalker(i, NodeFilter.SHOW_ELEMENT, {
|
|
19
|
-
acceptNode: (n) => n.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP
|
|
20
|
-
});
|
|
21
|
-
for (; s.nextNode(); ) r.push(s.currentNode);
|
|
22
|
-
return r;
|
|
23
|
-
}
|
|
24
|
-
const [$, Z] = A("HoverCardRoot"), ee = /* @__PURE__ */ m({
|
|
25
|
-
__name: "HoverCardRoot",
|
|
26
|
-
props: {
|
|
27
|
-
defaultOpen: { type: Boolean, default: !1 },
|
|
28
|
-
open: { type: Boolean, default: void 0 },
|
|
29
|
-
openDelay: { default: 700 },
|
|
30
|
-
closeDelay: { default: 300 }
|
|
31
|
-
},
|
|
32
|
-
emits: ["update:open"],
|
|
33
|
-
setup(i, { emit: r }) {
|
|
34
|
-
const s = i, n = r, { openDelay: p, closeDelay: l } = H(s);
|
|
35
|
-
b();
|
|
36
|
-
const t = N(s, "open", n, {
|
|
37
|
-
defaultValue: s.defaultOpen,
|
|
38
|
-
passive: s.open === void 0
|
|
39
|
-
}), o = C(0), h = C(0), _ = C(!1), c = C(!1), w = C(!1), P = C();
|
|
40
|
-
function f() {
|
|
41
|
-
clearTimeout(h.value), o.value = window.setTimeout(() => t.value = !0, p.value);
|
|
42
|
-
}
|
|
43
|
-
function a() {
|
|
44
|
-
clearTimeout(o.value), !_.value && !c.value && (h.value = window.setTimeout(() => t.value = !1, l.value));
|
|
45
|
-
}
|
|
46
|
-
function u() {
|
|
47
|
-
t.value = !1;
|
|
48
|
-
}
|
|
49
|
-
return Z({
|
|
50
|
-
open: t,
|
|
51
|
-
onOpenChange(B) {
|
|
52
|
-
t.value = B;
|
|
53
|
-
},
|
|
54
|
-
onOpen: f,
|
|
55
|
-
onClose: a,
|
|
56
|
-
onDismiss: u,
|
|
57
|
-
hasSelectionRef: _,
|
|
58
|
-
isPointerDownOnContentRef: c,
|
|
59
|
-
isPointerInTransitRef: w,
|
|
60
|
-
triggerElement: P
|
|
61
|
-
}), (B, re) => (y(), v(e(z), null, {
|
|
62
|
-
default: d(() => [
|
|
63
|
-
g(B.$slots, "default", { open: e(t) })
|
|
64
|
-
]),
|
|
65
|
-
_: 3
|
|
66
|
-
}));
|
|
67
|
-
}
|
|
68
|
-
}), te = /* @__PURE__ */ m({
|
|
69
|
-
__name: "HoverCardContentImpl",
|
|
70
|
-
props: {
|
|
71
|
-
side: {},
|
|
72
|
-
sideOffset: {},
|
|
73
|
-
align: {},
|
|
74
|
-
alignOffset: {},
|
|
75
|
-
avoidCollisions: { type: Boolean },
|
|
76
|
-
collisionBoundary: {},
|
|
77
|
-
collisionPadding: {},
|
|
78
|
-
arrowPadding: {},
|
|
79
|
-
sticky: {},
|
|
80
|
-
hideWhenDetached: { type: Boolean },
|
|
81
|
-
positionStrategy: {},
|
|
82
|
-
updatePositionStrategy: {},
|
|
83
|
-
disableUpdateOnLayoutShift: { type: Boolean },
|
|
84
|
-
prioritizePosition: { type: Boolean },
|
|
85
|
-
reference: {},
|
|
86
|
-
asChild: { type: Boolean },
|
|
87
|
-
as: {}
|
|
88
|
-
},
|
|
89
|
-
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
|
|
90
|
-
setup(i, { emit: r }) {
|
|
91
|
-
const s = i, n = r, p = k(s), { forwardRef: l, currentElement: t } = b(), o = $(), { isPointerInTransit: h, onPointerExit: _ } = G(o.triggerElement, t);
|
|
92
|
-
M(o.isPointerInTransitRef, h, { direction: "rtl" }), _(() => {
|
|
93
|
-
o.onClose();
|
|
94
|
-
});
|
|
95
|
-
const c = C(!1);
|
|
96
|
-
let w;
|
|
97
|
-
x((f) => {
|
|
98
|
-
if (c.value) {
|
|
99
|
-
const a = document.body;
|
|
100
|
-
w = a.style.userSelect || a.style.webkitUserSelect, a.style.userSelect = "none", a.style.webkitUserSelect = "none", f(() => {
|
|
101
|
-
a.style.userSelect = w, a.style.webkitUserSelect = w;
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
function P() {
|
|
106
|
-
c.value = !1, o.isPointerDownOnContentRef.value = !1, L(() => {
|
|
107
|
-
var a;
|
|
108
|
-
((a = document.getSelection()) == null ? void 0 : a.toString()) !== "" && (o.hasSelectionRef.value = !0);
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
return F(() => {
|
|
112
|
-
t.value && (document.addEventListener("pointerup", P), Y(t.value).forEach((a) => a.setAttribute("tabindex", "-1")));
|
|
113
|
-
}), U(() => {
|
|
114
|
-
document.removeEventListener("pointerup", P), o.hasSelectionRef.value = !1, o.isPointerDownOnContentRef.value = !1;
|
|
115
|
-
}), (f, a) => (y(), v(e(q), {
|
|
116
|
-
"as-child": "",
|
|
117
|
-
"disable-outside-pointer-events": !1,
|
|
118
|
-
onEscapeKeyDown: a[1] || (a[1] = (u) => n("escapeKeyDown", u)),
|
|
119
|
-
onPointerDownOutside: a[2] || (a[2] = (u) => n("pointerDownOutside", u)),
|
|
120
|
-
onFocusOutside: a[3] || (a[3] = I((u) => n("focusOutside", u), ["prevent"])),
|
|
121
|
-
onDismiss: e(o).onDismiss
|
|
122
|
-
}, {
|
|
123
|
-
default: d(() => [
|
|
124
|
-
O(e(W), D({ ...e(p), ...f.$attrs }, {
|
|
125
|
-
ref: e(l),
|
|
126
|
-
"data-state": e(o).open.value ? "open" : "closed",
|
|
127
|
-
style: {
|
|
128
|
-
userSelect: c.value ? "text" : void 0,
|
|
129
|
-
// Safari requires prefix
|
|
130
|
-
WebkitUserSelect: c.value ? "text" : void 0,
|
|
131
|
-
// re-namespace exposed content custom properties
|
|
132
|
-
"--reka-hover-card-content-transform-origin": "var(--reka-popper-transform-origin)",
|
|
133
|
-
"--reka-hover-card-content-available-width": "var(--reka-popper-available-width)",
|
|
134
|
-
"--reka-hover-card-content-available-height": "var(--reka-popper-available-height)",
|
|
135
|
-
"--reka-hover-card-trigger-width": "var(--reka-popper-anchor-width)",
|
|
136
|
-
"--reka-hover-card-trigger-height": "var(--reka-popper-anchor-height)"
|
|
137
|
-
},
|
|
138
|
-
onPointerdown: a[0] || (a[0] = (u) => {
|
|
139
|
-
u.currentTarget.contains(u.target) && (c.value = !0), e(o).hasSelectionRef.value = !1, e(o).isPointerDownOnContentRef.value = !0;
|
|
140
|
-
})
|
|
141
|
-
}), {
|
|
142
|
-
default: d(() => [
|
|
143
|
-
g(f.$slots, "default")
|
|
144
|
-
]),
|
|
145
|
-
_: 3
|
|
146
|
-
}, 16, ["data-state", "style"])
|
|
147
|
-
]),
|
|
148
|
-
_: 3
|
|
149
|
-
}, 8, ["onDismiss"]));
|
|
150
|
-
}
|
|
151
|
-
}), oe = /* @__PURE__ */ m({
|
|
152
|
-
__name: "HoverCardContent",
|
|
153
|
-
props: {
|
|
154
|
-
forceMount: { type: Boolean },
|
|
155
|
-
side: {},
|
|
156
|
-
sideOffset: {},
|
|
157
|
-
align: {},
|
|
158
|
-
alignOffset: {},
|
|
159
|
-
avoidCollisions: { type: Boolean },
|
|
160
|
-
collisionBoundary: {},
|
|
161
|
-
collisionPadding: {},
|
|
162
|
-
arrowPadding: {},
|
|
163
|
-
sticky: {},
|
|
164
|
-
hideWhenDetached: { type: Boolean },
|
|
165
|
-
positionStrategy: {},
|
|
166
|
-
updatePositionStrategy: {},
|
|
167
|
-
disableUpdateOnLayoutShift: { type: Boolean },
|
|
168
|
-
prioritizePosition: { type: Boolean },
|
|
169
|
-
reference: {},
|
|
170
|
-
asChild: { type: Boolean },
|
|
171
|
-
as: {}
|
|
172
|
-
},
|
|
173
|
-
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
|
|
174
|
-
setup(i, { emit: r }) {
|
|
175
|
-
const p = E(i, r), { forwardRef: l } = b(), t = $();
|
|
176
|
-
return (o, h) => (y(), v(e(J), {
|
|
177
|
-
present: o.forceMount || e(t).open.value
|
|
178
|
-
}, {
|
|
179
|
-
default: d(() => [
|
|
180
|
-
O(te, D(e(p), {
|
|
181
|
-
ref: e(l),
|
|
182
|
-
onPointerenter: h[0] || (h[0] = (_) => e(S)(e(t).onOpen)(_))
|
|
183
|
-
}), {
|
|
184
|
-
default: d(() => [
|
|
185
|
-
g(o.$slots, "default")
|
|
186
|
-
]),
|
|
187
|
-
_: 3
|
|
188
|
-
}, 16)
|
|
189
|
-
]),
|
|
190
|
-
_: 3
|
|
191
|
-
}, 8, ["present"]));
|
|
192
|
-
}
|
|
193
|
-
}), ne = /* @__PURE__ */ m({
|
|
194
|
-
__name: "HoverCardPortal",
|
|
195
|
-
props: {
|
|
196
|
-
to: {},
|
|
197
|
-
disabled: { type: Boolean },
|
|
198
|
-
defer: { type: Boolean },
|
|
199
|
-
forceMount: { type: Boolean }
|
|
200
|
-
},
|
|
201
|
-
setup(i) {
|
|
202
|
-
const r = i;
|
|
203
|
-
return (s, n) => (y(), v(e(j), R(T(r)), {
|
|
204
|
-
default: d(() => [
|
|
205
|
-
g(s.$slots, "default")
|
|
206
|
-
]),
|
|
207
|
-
_: 3
|
|
208
|
-
}, 16));
|
|
209
|
-
}
|
|
210
|
-
}), ae = /* @__PURE__ */ m({
|
|
211
|
-
__name: "HoverCardTrigger",
|
|
212
|
-
props: {
|
|
213
|
-
reference: {},
|
|
214
|
-
asChild: { type: Boolean },
|
|
215
|
-
as: { default: "a" }
|
|
216
|
-
},
|
|
217
|
-
setup(i) {
|
|
218
|
-
const { forwardRef: r, currentElement: s } = b(), n = $();
|
|
219
|
-
n.triggerElement = s;
|
|
220
|
-
function p() {
|
|
221
|
-
setTimeout(() => {
|
|
222
|
-
!n.isPointerInTransitRef.value && !n.open.value && n.onClose();
|
|
223
|
-
}, 0);
|
|
224
|
-
}
|
|
225
|
-
return (l, t) => (y(), v(e(K), {
|
|
226
|
-
"as-child": "",
|
|
227
|
-
reference: l.reference
|
|
228
|
-
}, {
|
|
229
|
-
default: d(() => [
|
|
230
|
-
O(e(X), {
|
|
231
|
-
ref: e(r),
|
|
232
|
-
"as-child": l.asChild,
|
|
233
|
-
as: l.as,
|
|
234
|
-
"data-state": e(n).open.value ? "open" : "closed",
|
|
235
|
-
"data-grace-area-trigger": "",
|
|
236
|
-
onPointerenter: t[0] || (t[0] = (o) => e(S)(e(n).onOpen)(o)),
|
|
237
|
-
onPointerleave: t[1] || (t[1] = (o) => e(S)(p)(o)),
|
|
238
|
-
onFocus: t[2] || (t[2] = (o) => e(n).onOpen()),
|
|
239
|
-
onBlur: t[3] || (t[3] = (o) => e(n).onClose())
|
|
240
|
-
}, {
|
|
241
|
-
default: d(() => [
|
|
242
|
-
g(l.$slots, "default")
|
|
243
|
-
]),
|
|
244
|
-
_: 3
|
|
245
|
-
}, 8, ["as-child", "as", "data-state"])
|
|
246
|
-
]),
|
|
247
|
-
_: 3
|
|
248
|
-
}, 8, ["reference"]));
|
|
249
|
-
}
|
|
250
|
-
}), Ce = /* @__PURE__ */ m({
|
|
251
|
-
__name: "HoverCard",
|
|
252
|
-
props: {
|
|
253
|
-
defaultOpen: { type: Boolean },
|
|
254
|
-
open: { type: Boolean },
|
|
255
|
-
openDelay: {},
|
|
256
|
-
closeDelay: {}
|
|
257
|
-
},
|
|
258
|
-
emits: ["update:open"],
|
|
259
|
-
setup(i, { emit: r }) {
|
|
260
|
-
const p = E(i, r);
|
|
261
|
-
return (l, t) => (y(), v(e(ee), R(T(e(p))), {
|
|
262
|
-
default: d(() => [
|
|
263
|
-
g(l.$slots, "default")
|
|
264
|
-
]),
|
|
265
|
-
_: 3
|
|
266
|
-
}, 16));
|
|
267
|
-
}
|
|
268
|
-
}), _e = /* @__PURE__ */ m({
|
|
269
|
-
__name: "HoverCardContent",
|
|
270
|
-
props: {
|
|
271
|
-
forceMount: { type: Boolean },
|
|
272
|
-
side: {},
|
|
273
|
-
sideOffset: { default: 4 },
|
|
274
|
-
align: {},
|
|
275
|
-
alignOffset: {},
|
|
276
|
-
avoidCollisions: { type: Boolean },
|
|
277
|
-
collisionBoundary: {},
|
|
278
|
-
collisionPadding: {},
|
|
279
|
-
arrowPadding: {},
|
|
280
|
-
sticky: {},
|
|
281
|
-
hideWhenDetached: { type: Boolean },
|
|
282
|
-
positionStrategy: {},
|
|
283
|
-
updatePositionStrategy: {},
|
|
284
|
-
disableUpdateOnLayoutShift: { type: Boolean },
|
|
285
|
-
prioritizePosition: { type: Boolean },
|
|
286
|
-
reference: {},
|
|
287
|
-
asChild: { type: Boolean },
|
|
288
|
-
as: {},
|
|
289
|
-
class: {}
|
|
290
|
-
},
|
|
291
|
-
setup(i) {
|
|
292
|
-
const r = i, s = Q(r, "class"), n = k(s);
|
|
293
|
-
return (p, l) => (y(), v(e(ne), null, {
|
|
294
|
-
default: d(() => [
|
|
295
|
-
O(e(oe), D(e(n), {
|
|
296
|
-
class: e(V)(
|
|
297
|
-
"z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
298
|
-
r.class
|
|
299
|
-
)
|
|
300
|
-
}), {
|
|
301
|
-
default: d(() => [
|
|
302
|
-
g(p.$slots, "default")
|
|
303
|
-
]),
|
|
304
|
-
_: 3
|
|
305
|
-
}, 16, ["class"])
|
|
306
|
-
]),
|
|
307
|
-
_: 3
|
|
308
|
-
}));
|
|
309
|
-
}
|
|
310
|
-
}), we = /* @__PURE__ */ m({
|
|
311
|
-
__name: "HoverCardTrigger",
|
|
312
|
-
props: {
|
|
313
|
-
reference: {},
|
|
314
|
-
asChild: { type: Boolean },
|
|
315
|
-
as: { type: [String, Object, Function] }
|
|
316
|
-
},
|
|
317
|
-
setup(i) {
|
|
318
|
-
const r = i;
|
|
319
|
-
return (s, n) => (y(), v(e(ae), R(T(r)), {
|
|
320
|
-
default: d(() => [
|
|
321
|
-
g(s.$slots, "default")
|
|
322
|
-
]),
|
|
323
|
-
_: 3
|
|
324
|
-
}, 16));
|
|
325
|
-
}
|
|
326
|
-
});
|
|
327
|
-
export {
|
|
328
|
-
Ce as HoverCard,
|
|
329
|
-
_e as HoverCardContent,
|
|
330
|
-
we as HoverCardTrigger
|
|
331
|
-
};
|
package/dist/ui/input/index.js
DELETED
package/dist/ui/label/index.js
DELETED