@wrdagency/blockout 1.0.15 → 1.0.18
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/{2NBKRL7C-CzwWfv1x.js → 2NBKRL7C-Ds7w7Ay7.js} +6 -6
- package/dist/{2RSXSRCN-rMUAytae.js → 2RSXSRCN-BBEFwUiL.js} +2 -2
- package/dist/{4CMBR7SL-ChJnawVl.js → 4CMBR7SL-_MPrTek0.js} +2 -2
- package/dist/{5JTVDSTH-DcfjjEya.js → 5JTVDSTH-Ci6OX9MK.js} +4 -4
- package/dist/{5VQZOHHZ-BN-teS5E.js → 5VQZOHHZ-DpLj3Rqp.js} +1 -1
- package/dist/{6VRAQV3D-DK_p41oq.js → 6VRAQV3D-Cnyfi8tq.js} +6 -6
- package/dist/{A3WPL2ZJ-CpUtG5Sk.js → A3WPL2ZJ-1yF0wSQn.js} +2 -2
- package/dist/{BM6PGYQY-CkMwDqt0.js → BM6PGYQY-B6HfecNi.js} +2 -2
- package/dist/{DG5U6ZEL-GfwW2sqh.js → DG5U6ZEL-ETCdoLWP.js} +3 -3
- package/dist/{EM5CXX6A-C74NAQPE.js → EM5CXX6A-CW08TdIG.js} +2 -2
- package/dist/{F5MUBM3I-BbDMTUwx.js → F5MUBM3I-CSfmQDAz.js} +3 -3
- package/dist/{G7GW6PWC-A0eDeXMt.js → G7GW6PWC-DtkamyQv.js} +8 -8
- package/dist/{IWEFDH56-CvOsIcbb.js → IWEFDH56-UEiMfbRm.js} +3 -3
- package/dist/{J2LQO3EC-DYtZQQv6.js → J2LQO3EC-TlCRyAh7.js} +2 -2
- package/dist/{KFH4SEIX-BFT9WmYk.js → KFH4SEIX-D9qCWzyY.js} +3 -3
- package/dist/{LMDWO4NN-CIZvvtic.js → LMDWO4NN-BxsnVArz.js} +7 -7
- package/dist/{MR26YJYP-DacZIkgJ.js → MR26YJYP-BSJHEQsl.js} +6 -6
- package/dist/{MTZPJQMC-DPwZ6caC.js → MTZPJQMC-CNw1MVtu.js} +2 -2
- package/dist/{O2PQ2652-D2GSkoLq.js → O2PQ2652-BxRvOru-.js} +3 -3
- package/dist/{P7GR5CS5-5PtDURPc.js → P7GR5CS5-CZKSJ9w8.js} +1 -1
- package/dist/{PFRGBC2K-B9ko--FF.js → PFRGBC2K-6AvuBT5M.js} +1 -1
- package/dist/{RS7LB2H4-BvDKQaCt.js → RS7LB2H4-DJkydTnE.js} +1 -1
- package/dist/{RZ4GPYOB-COPqjbOz.js → RZ4GPYOB-DPUx6A2B.js} +2 -2
- package/dist/{S43UC3DV-CiBKpqp8.js → S43UC3DV-D5IqpYPC.js} +3 -3
- package/dist/{T7VMP3TM-C0xl-w4G.js → T7VMP3TM-DX7RU0Yc.js} +3 -3
- package/dist/{TP7N7UIH-Dc0CLLi8.js → TP7N7UIH-CFp7Hh_A.js} +2 -2
- package/dist/{UQQRIHDV-BBkcyl82.js → UQQRIHDV-D5fevAL1.js} +3 -3
- package/dist/{UYGDZTLQ-9uAEICxv.js → UYGDZTLQ-CEz9ajCa.js} +2 -2
- package/dist/{VIIRIBF3-uvnIyICw.js → VIIRIBF3-Co_vwgwZ.js} +3 -3
- package/dist/{WMYDSCNQ-D4CU76mX.js → WMYDSCNQ-BIYNTVEx.js} +4 -4
- package/dist/{WYCIER3C-CaoIoaX7.js → WYCIER3C-C_60hKUt.js} +2 -2
- package/dist/{YV4JVR4I-w1-dnslS.js → YV4JVR4I-BLQoWp1E.js} +21 -21
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/style10.css +1 -1
- package/dist/assets/style2.css +1 -1
- package/dist/assets/style21.css +1 -1
- package/dist/assets/style3.css +1 -1
- package/dist/assets/style4.css +1 -1
- package/dist/assets/style5.css +1 -1
- package/dist/assets/style6.css +1 -1
- package/dist/assets/style7.css +1 -1
- package/dist/assets/style8.css +1 -1
- package/dist/assets/style9.css +1 -1
- package/dist/combobox-popover-DFcT6u90.js +650 -0
- package/dist/components/avatar/index.d.ts +3 -1
- package/dist/components/avatar/index.js +23 -18
- package/dist/components/breadcrumbs/index.js +7 -7
- package/dist/components/button/button.js +2 -2
- package/dist/components/button/icon.js +1 -1
- package/dist/components/button/row.js +4 -4
- package/dist/components/controls/base-popover-control/index.js +4 -4
- package/dist/components/controls/checkbox-control/index.js +1 -1
- package/dist/components/controls/choice-control/choice.js +1 -1
- package/dist/components/controls/choice-control/index.js +1 -1
- package/dist/components/controls/date-control/index.js +2 -2
- package/dist/components/controls/date-control/picker.js +5 -5
- package/dist/components/controls/list-control/item.js +1 -1
- package/dist/components/controls/recurrence-control/index.js +1 -1
- package/dist/components/controls/select-control/control.js +1 -1
- package/dist/components/controls/select-control/props.d.ts +4 -3
- package/dist/components/controls/select-control/select.d.ts +1 -1
- package/dist/components/controls/select-control/select.js +55 -51
- package/dist/components/controls/tag-control/ariakit-experimental.js +1135 -1230
- package/dist/components/controls/tag-control/index.js +9 -9
- package/dist/components/controls/tag-control/props.js +1 -1
- package/dist/components/controls/toggle-control/index.js +1 -1
- package/dist/components/controls/toggle-group-control/index.js +1 -1
- package/dist/components/data-form/status.js +1 -1
- package/dist/components/data-form/submit.js +1 -1
- package/dist/components/data-view/data/filter.js +2 -2
- package/dist/components/data-view/index.js +1 -1
- package/dist/components/data-view/layouts/grid/group.js +2 -2
- package/dist/components/data-view/layouts/grid/item.js +2 -2
- package/dist/components/data-view/layouts/kanban/group.js +2 -2
- package/dist/components/data-view/layouts/kanban/item.js +2 -2
- package/dist/components/data-view/layouts/kanban/root.js +1 -1
- package/dist/components/data-view/layouts/list/group.js +2 -2
- package/dist/components/data-view/layouts/list/item.js +2 -2
- package/dist/components/data-view/layouts/table/empty.js +2 -2
- package/dist/components/data-view/layouts/table/group.js +3 -3
- package/dist/components/data-view/layouts/table/item.js +3 -3
- package/dist/components/data-view/layouts/table/root.js +2 -2
- package/dist/components/data-view/parts/body/empty.js +1 -1
- package/dist/components/data-view/parts/body/index.js +4 -4
- package/dist/components/data-view/parts/controls/index.js +2 -2
- package/dist/components/data-view/parts/controls/search.js +2 -2
- package/dist/components/data-view/parts/filters/chip.js +1 -1
- package/dist/components/data-view/parts/filters/editor.js +1 -1
- package/dist/components/data-view/parts/footer/actions.js +2 -2
- package/dist/components/data-view/parts/footer/index.js +2 -2
- package/dist/components/data-view/parts/footer/selection.js +2 -2
- package/dist/components/data-view/parts/view-control/index.js +2 -2
- package/dist/components/data-view/root.js +2 -2
- package/dist/components/data-view/slots/group/checkbox.js +3 -3
- package/dist/components/data-view/slots/group/context.js +1 -1
- package/dist/components/data-view/slots/group/icon.js +1 -1
- package/dist/components/data-view/slots/group/index.js +1 -1
- package/dist/components/data-view/slots/group/label.js +1 -1
- package/dist/components/data-view/slots/index.js +3 -3
- package/dist/components/data-view/slots/item/actions.js +1 -1
- package/dist/components/data-view/slots/item/checkbox.js +2 -2
- package/dist/components/data-view/slots/item/depth.js +3 -3
- package/dist/components/data-view/slots/item/description.js +1 -1
- package/dist/components/data-view/slots/item/index.js +1 -1
- package/dist/components/data-view/slots/item/properties.js +2 -2
- package/dist/components/data-view/slots/item/relations.js +4 -4
- package/dist/components/data-view/slots/item/tags.js +1 -1
- package/dist/components/data-view/slots/item/thumbnail.js +1 -1
- package/dist/components/data-view/slots/item/title.js +3 -3
- package/dist/components/data-view/slots/item/util.js +2 -2
- package/dist/components/data-view/slots/property/field/editable.js +2 -2
- package/dist/components/data-view/slots/property/field/index.js +1 -1
- package/dist/components/data-view/slots/property/field/static.js +1 -1
- package/dist/components/data-view/slots/property/index.js +1 -1
- package/dist/components/data-view/slots/property/label.js +1 -1
- package/dist/components/data-view/slots/root/checkbox.js +2 -2
- package/dist/components/data-view/slots/root/index.js +1 -1
- package/dist/components/filesystem/file.js +1 -1
- package/dist/components/filesystem/folder.js +4 -4
- package/dist/components/filesystem/list.js +1 -1
- package/dist/components/filesystem/root.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/menu/index.js +2 -2
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/items/action.js +1 -1
- package/dist/components/menu/items/spacer.js +1 -1
- package/dist/components/menu/items/submenu.js +3 -3
- package/dist/components/menu/items/toggle.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/shell/pane.js +20 -15
- package/dist/components/tabs/list.js +1 -1
- package/dist/components/tabs/panel.js +1 -1
- package/dist/components/tabs/root.js +1 -1
- package/dist/components/tabs/tab.js +1 -1
- package/dist/components/tag/tag.js +1 -1
- package/dist/components/toolbar/divider.js +1 -1
- package/dist/components/toolbar/index.js +1 -1
- package/dist/components/toolbar/root.js +1 -1
- package/dist/components/window/index.js +3 -3
- package/dist/{composite-provider-B-M1AaRb.js → composite-provider-K8zU8z0x.js} +2 -2
- package/dist/{disclosure-provider-DW9RmAuE.js → disclosure-provider-CX3wr_3W.js} +3 -3
- package/dist/{filter-DAMRLXNe.js → filter-BqYmWg3n.js} +1 -1
- package/dist/{index-CoFfLb68.js → index-BdzBM_aG.js} +1 -1
- package/dist/{index-CPOlz97j.js → index-BrUAPkzm.js} +3 -3
- package/dist/{index-ClExU5xD.js → index-CWkR83hZ.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{item-CYpF0or4.js → item-BZJ3JrHw.js} +2 -2
- package/dist/{menu-button-D0chRxS0.js → menu-button-DBjUzoaw.js} +12 -12
- package/dist/{menu-separator-Cy38O3cZ.js → menu-separator-H9l1SpSV.js} +3 -3
- package/dist/{picker-BAQPD-c9.js → picker-Cfpntdfz.js} +4 -4
- package/dist/{popover-provider-DZV1nb7Q.js → popover-provider-xofWxUiu.js} +2 -2
- package/dist/primitives/colourway/index.js +1 -1
- package/dist/primitives/icon-label/index.d.ts +3 -1
- package/dist/primitives/icon-label/index.js +18 -13
- package/dist/primitives/link/index.js +1 -1
- package/dist/primitives/nav-link/index.js +1 -1
- package/dist/primitives/popover/root.js +1 -1
- package/dist/primitives/popover/target.js +1 -1
- package/dist/primitives/popover/window.js +3 -3
- package/dist/primitives/resizable/index.js +1 -1
- package/dist/primitives/tooltip/index.d.ts +3 -2
- package/dist/primitives/tooltip/index.js +25 -11
- package/dist/primitives/truncate/index.js +1 -1
- package/dist/primitives/typography/heading.js +1 -1
- package/dist/primitives/typography/paragraph.js +1 -1
- package/dist/{select-popover-DYAZyLp4.js → select-popover-BuB2Ioa9.js} +14 -14
- package/dist/{select-value-CeoMyvpZ.js → select-value-C1gT40_5.js} +2 -2
- package/dist/{tab-DjNG1rEI.js → tab-BbgJF9GJ.js} +4 -4
- package/dist/{tab-list-DtMnUjoy.js → tab-list-BvZvev5m.js} +3 -3
- package/dist/{tab-panel-DdkeLgKE.js → tab-panel-QxtN3GO3.js} +7 -7
- package/dist/{tab-provider-BMkHrtIK.js → tab-provider-T_g-bJwY.js} +6 -6
- package/dist/tag-remove-DVXj7CeY.js +447 -0
- package/dist/{toolbar-B7_t1rYu.js → toolbar-Bl6JBFO2.js} +5 -5
- package/dist/{toolbar-separator-DBoO5XdF.js → toolbar-separator-CN-A8iMa.js} +3 -3
- package/dist/tooltip-arrow-DSk_atex.js +273 -0
- package/package.json +1 -1
- package/dist/MAXQOH4L-DBaf8WKp.js +0 -564
- package/dist/tag-remove-BVa8oSsq.js +0 -533
- package/dist/tooltip-anchor-CxZWazuo.js +0 -173
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import { c as q, u as Z, a as G, b as J } from "./MR26YJYP-BSJHEQsl.js";
|
|
2
|
+
import { c as K } from "./G7GW6PWC-DtkamyQv.js";
|
|
3
|
+
import { T as R, V as w, U as y, I as Q, f as x, c as E, a as O, _, i as k, l as X, o as b, m as N, a4 as V, M as Y, a1 as ee, e as H, q as te, n as oe, r as re, b as ne, ad as ae, s as se } from "./LMDWO4NN-BxsnVArz.js";
|
|
4
|
+
import { jsx as h, jsxs as ie } from "react/jsx-runtime";
|
|
5
|
+
import { c as U, b as ue, d as I, e as M, a as j } from "./YV4JVR4I-BLQoWp1E.js";
|
|
6
|
+
import { useRef as le, useEffect as z, useMemo as D, useState as ce } from "react";
|
|
7
|
+
import { H as de, a as pe } from "./EM5CXX6A-CW08TdIG.js";
|
|
8
|
+
import { u as ve } from "./MTZPJQMC-CNw1MVtu.js";
|
|
9
|
+
function fe(o = {}) {
|
|
10
|
+
var r;
|
|
11
|
+
process.env.NODE_ENV !== "production" && o.type === "label" && console.warn(
|
|
12
|
+
"The `type` option on the tooltip store is deprecated.",
|
|
13
|
+
"Render a visually hidden label or use the `aria-label` or `aria-labelledby` attributes on the anchor element instead.",
|
|
14
|
+
"See https://ariakit.org/components/tooltip#tooltip-anchors-must-have-accessible-names"
|
|
15
|
+
);
|
|
16
|
+
const t = (r = o.store) == null ? void 0 : r.getState(), e = q(R(y({}, o), {
|
|
17
|
+
placement: w(
|
|
18
|
+
o.placement,
|
|
19
|
+
t == null ? void 0 : t.placement,
|
|
20
|
+
"top"
|
|
21
|
+
),
|
|
22
|
+
hideTimeout: w(o.hideTimeout, t == null ? void 0 : t.hideTimeout, 0)
|
|
23
|
+
})), c = R(y({}, e.getState()), {
|
|
24
|
+
type: w(o.type, t == null ? void 0 : t.type, "description"),
|
|
25
|
+
skipTimeout: w(o.skipTimeout, t == null ? void 0 : t.skipTimeout, 300)
|
|
26
|
+
}), n = U(c, e, o.store);
|
|
27
|
+
return y(y({}, e), n);
|
|
28
|
+
}
|
|
29
|
+
function me(o, r, t) {
|
|
30
|
+
return I(o, t, "type"), I(o, t, "skipTimeout"), Z(o, r, t);
|
|
31
|
+
}
|
|
32
|
+
function he(o = {}) {
|
|
33
|
+
const [r, t] = ue(fe, o);
|
|
34
|
+
return me(r, t, o);
|
|
35
|
+
}
|
|
36
|
+
var A = Q(
|
|
37
|
+
[pe],
|
|
38
|
+
[de]
|
|
39
|
+
), Se = A.useContext, W = A.useProviderContext, be = A.ContextProvider, Te = A.ScopedContextProvider, Pe = "div", ge = E(
|
|
40
|
+
function(r) {
|
|
41
|
+
var t = r, {
|
|
42
|
+
store: e,
|
|
43
|
+
portal: c = !0,
|
|
44
|
+
gutter: n = 8,
|
|
45
|
+
preserveTabOrder: d = !1,
|
|
46
|
+
hideOnHoverOutside: v = !0,
|
|
47
|
+
hideOnInteractOutside: p = !0
|
|
48
|
+
} = t, s = _(t, [
|
|
49
|
+
"store",
|
|
50
|
+
"portal",
|
|
51
|
+
"gutter",
|
|
52
|
+
"preserveTabOrder",
|
|
53
|
+
"hideOnHoverOutside",
|
|
54
|
+
"hideOnInteractOutside"
|
|
55
|
+
]);
|
|
56
|
+
const i = W();
|
|
57
|
+
e = e || i, k(
|
|
58
|
+
e,
|
|
59
|
+
process.env.NODE_ENV !== "production" && "Tooltip must receive a `store` prop or be wrapped in a TooltipProvider component."
|
|
60
|
+
), s = X(
|
|
61
|
+
s,
|
|
62
|
+
(u) => /* @__PURE__ */ h(Te, { value: e, children: u }),
|
|
63
|
+
[e]
|
|
64
|
+
);
|
|
65
|
+
const P = e.useState(
|
|
66
|
+
(u) => u.type === "description" ? "tooltip" : "none"
|
|
67
|
+
);
|
|
68
|
+
return s = b({ role: P }, s), s = G(N(b({}, s), {
|
|
69
|
+
store: e,
|
|
70
|
+
portal: c,
|
|
71
|
+
gutter: n,
|
|
72
|
+
preserveTabOrder: d,
|
|
73
|
+
hideOnHoverOutside(u) {
|
|
74
|
+
if (V(v, u)) return !1;
|
|
75
|
+
const f = e == null ? void 0 : e.getState().anchorElement;
|
|
76
|
+
return f ? !("focusVisible" in f.dataset) : !0;
|
|
77
|
+
},
|
|
78
|
+
hideOnInteractOutside: (u) => {
|
|
79
|
+
if (V(p, u)) return !1;
|
|
80
|
+
const f = e == null ? void 0 : e.getState().anchorElement;
|
|
81
|
+
return f ? !Y(f, u.target) : !0;
|
|
82
|
+
}
|
|
83
|
+
})), s;
|
|
84
|
+
}
|
|
85
|
+
), Me = K(
|
|
86
|
+
x(function(r) {
|
|
87
|
+
const t = ge(r);
|
|
88
|
+
return O(Pe, t);
|
|
89
|
+
}),
|
|
90
|
+
W
|
|
91
|
+
);
|
|
92
|
+
function ze(o = {}) {
|
|
93
|
+
const r = he(o);
|
|
94
|
+
return /* @__PURE__ */ h(be, { value: r, children: o.children });
|
|
95
|
+
}
|
|
96
|
+
var we = "div", S = U({
|
|
97
|
+
activeStore: null
|
|
98
|
+
});
|
|
99
|
+
function B(o) {
|
|
100
|
+
return () => {
|
|
101
|
+
const { activeStore: r } = S.getState();
|
|
102
|
+
r === o && S.setState("activeStore", null);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
var ye = E(
|
|
106
|
+
function(r) {
|
|
107
|
+
var t = r, { store: e, showOnHover: c = !0 } = t, n = _(t, ["store", "showOnHover"]);
|
|
108
|
+
const d = W();
|
|
109
|
+
e = e || d, k(
|
|
110
|
+
e,
|
|
111
|
+
process.env.NODE_ENV !== "production" && "TooltipAnchor must receive a `store` prop or be wrapped in a TooltipProvider component."
|
|
112
|
+
);
|
|
113
|
+
const v = le(!1);
|
|
114
|
+
z(() => M(e, ["mounted"], (a) => {
|
|
115
|
+
a.mounted || (v.current = !1);
|
|
116
|
+
}), [e]), z(() => {
|
|
117
|
+
if (e)
|
|
118
|
+
return ee(
|
|
119
|
+
// Immediately remove the current store from the global store when
|
|
120
|
+
// the component unmounts. This is useful, for example, to avoid
|
|
121
|
+
// showing tooltips immediately on serial tests.
|
|
122
|
+
B(e),
|
|
123
|
+
M(e, ["mounted", "skipTimeout"], (a) => {
|
|
124
|
+
if (!e) return;
|
|
125
|
+
if (a.mounted) {
|
|
126
|
+
const { activeStore: T } = S.getState();
|
|
127
|
+
return T !== e && (T == null || T.hide()), S.setState("activeStore", e);
|
|
128
|
+
}
|
|
129
|
+
const l = setTimeout(
|
|
130
|
+
B(e),
|
|
131
|
+
a.skipTimeout
|
|
132
|
+
);
|
|
133
|
+
return () => clearTimeout(l);
|
|
134
|
+
})
|
|
135
|
+
);
|
|
136
|
+
}, [e]);
|
|
137
|
+
const p = n.onMouseEnter, s = H((a) => {
|
|
138
|
+
p == null || p(a), v.current = !0;
|
|
139
|
+
}), i = n.onFocusVisible, P = H((a) => {
|
|
140
|
+
i == null || i(a), !a.defaultPrevented && (e == null || e.setAnchorElement(a.currentTarget), e == null || e.show());
|
|
141
|
+
}), u = n.onBlur, f = H((a) => {
|
|
142
|
+
if (u == null || u(a), a.defaultPrevented) return;
|
|
143
|
+
const { activeStore: l } = S.getState();
|
|
144
|
+
v.current = !1, l === e && S.setState("activeStore", null);
|
|
145
|
+
}), C = e.useState("type"), g = e.useState((a) => {
|
|
146
|
+
var l;
|
|
147
|
+
return (l = a.contentElement) == null ? void 0 : l.id;
|
|
148
|
+
});
|
|
149
|
+
return n = N(b({
|
|
150
|
+
"aria-labelledby": C === "label" ? g : void 0
|
|
151
|
+
}, n), {
|
|
152
|
+
onMouseEnter: s,
|
|
153
|
+
onFocusVisible: P,
|
|
154
|
+
onBlur: f
|
|
155
|
+
}), n = J(b({
|
|
156
|
+
store: e,
|
|
157
|
+
showOnHover(a) {
|
|
158
|
+
if (!v.current || V(c, a)) return !1;
|
|
159
|
+
const { activeStore: l } = S.getState();
|
|
160
|
+
return l ? (e == null || e.show(), !1) : !0;
|
|
161
|
+
}
|
|
162
|
+
}, n)), n;
|
|
163
|
+
}
|
|
164
|
+
), De = x(function(r) {
|
|
165
|
+
const t = ye(r);
|
|
166
|
+
return O(we, t);
|
|
167
|
+
}), F = "M23 27.8C24.1 29 26.4 30 28 30H30H0H2C3.7 30 5.9 29 7 27.8L14 20.6C14.7 19.8 15.3 19.8 16 20.6L23 27.8Z", xe = "div", $ = 30, m = $ / 2, Ee = {
|
|
168
|
+
top: `rotate(180 ${m} ${m})`,
|
|
169
|
+
right: `rotate(-90 ${m} ${m})`,
|
|
170
|
+
bottom: `rotate(0 ${m} ${m})`,
|
|
171
|
+
left: `rotate(90 ${m} ${m})`
|
|
172
|
+
};
|
|
173
|
+
function Oe(o) {
|
|
174
|
+
const [r, t] = ce(), e = j(o, "contentElement");
|
|
175
|
+
return ne(() => {
|
|
176
|
+
if (!e) return;
|
|
177
|
+
const n = ae(e).getComputedStyle(e);
|
|
178
|
+
t(n);
|
|
179
|
+
}, [e]), r;
|
|
180
|
+
}
|
|
181
|
+
function _e(o) {
|
|
182
|
+
var r;
|
|
183
|
+
return o ? (r = o.getPropertyValue("box-shadow").match(/0px 0px 0px ([^0]+px)/)) == null ? void 0 : r[1] : void 0;
|
|
184
|
+
}
|
|
185
|
+
var L = E(
|
|
186
|
+
function(r) {
|
|
187
|
+
var t = r, {
|
|
188
|
+
store: e,
|
|
189
|
+
size: c = $,
|
|
190
|
+
borderWidth: n
|
|
191
|
+
} = t, d = _(t, [
|
|
192
|
+
"store",
|
|
193
|
+
"size",
|
|
194
|
+
"borderWidth"
|
|
195
|
+
]);
|
|
196
|
+
const v = ve();
|
|
197
|
+
e = e || v, k(
|
|
198
|
+
e,
|
|
199
|
+
process.env.NODE_ENV !== "production" && "PopoverArrow must be wrapped in a Popover component."
|
|
200
|
+
);
|
|
201
|
+
const p = j(
|
|
202
|
+
e,
|
|
203
|
+
(l) => l.currentPlacement.split("-")[0]
|
|
204
|
+
), s = te(), i = Oe(e), P = (i == null ? void 0 : i.getPropertyValue("background-color")) || "none", u = (i == null ? void 0 : i.getPropertyValue(`border-${p}-color`)) || "none", C = D(() => {
|
|
205
|
+
if (n != null) return n;
|
|
206
|
+
if (!i) return 0;
|
|
207
|
+
const l = _e(i);
|
|
208
|
+
if (l) return Number.parseInt(l);
|
|
209
|
+
const T = i.getPropertyValue(`border-${p}-width`);
|
|
210
|
+
return T ? Number.parseInt(T) : 0;
|
|
211
|
+
}, [n, i, p]) * 2 * ($ / c), g = Ee[p], a = D(
|
|
212
|
+
() => /* @__PURE__ */ h("svg", { display: "block", viewBox: "0 0 30 30", children: /* @__PURE__ */ ie("g", { transform: g, children: [
|
|
213
|
+
/* @__PURE__ */ h("path", { fill: "none", d: F, mask: `url(#${s})` }),
|
|
214
|
+
/* @__PURE__ */ h("path", { stroke: "none", d: F }),
|
|
215
|
+
/* @__PURE__ */ h("mask", { id: s, maskUnits: "userSpaceOnUse", children: /* @__PURE__ */ h(
|
|
216
|
+
"rect",
|
|
217
|
+
{
|
|
218
|
+
x: "-15",
|
|
219
|
+
y: "0",
|
|
220
|
+
width: "60",
|
|
221
|
+
height: "30",
|
|
222
|
+
fill: "white",
|
|
223
|
+
stroke: "black"
|
|
224
|
+
}
|
|
225
|
+
) })
|
|
226
|
+
] }) }),
|
|
227
|
+
[g, s]
|
|
228
|
+
);
|
|
229
|
+
return d = N(b({
|
|
230
|
+
children: a,
|
|
231
|
+
"aria-hidden": !0
|
|
232
|
+
}, d), {
|
|
233
|
+
ref: oe(e.setArrowElement, d.ref),
|
|
234
|
+
style: b({
|
|
235
|
+
position: "absolute",
|
|
236
|
+
fontSize: c,
|
|
237
|
+
width: "1em",
|
|
238
|
+
height: "1em",
|
|
239
|
+
pointerEvents: "none",
|
|
240
|
+
fill: `var(--ak-layer, ${P})`,
|
|
241
|
+
stroke: `var(--ak-layer-border, ${u})`,
|
|
242
|
+
strokeWidth: C
|
|
243
|
+
}, d.style)
|
|
244
|
+
}), re(d);
|
|
245
|
+
}
|
|
246
|
+
), Be = se(
|
|
247
|
+
x(function(r) {
|
|
248
|
+
const t = L(r);
|
|
249
|
+
return O(xe, t);
|
|
250
|
+
})
|
|
251
|
+
), ke = "div", Ae = E(
|
|
252
|
+
function(r) {
|
|
253
|
+
var t = r, { store: e, size: c = 16 } = t, n = _(t, ["store", "size"]);
|
|
254
|
+
const d = Se();
|
|
255
|
+
return e = e || d, k(
|
|
256
|
+
e,
|
|
257
|
+
process.env.NODE_ENV !== "production" && "TooltipArrow must be wrapped in a Tooltip component."
|
|
258
|
+
), n = L(b({ store: e, size: c }, n)), n;
|
|
259
|
+
}
|
|
260
|
+
), Fe = x(function(r) {
|
|
261
|
+
const t = Ae(r);
|
|
262
|
+
return O(ke, t);
|
|
263
|
+
});
|
|
264
|
+
export {
|
|
265
|
+
Be as P,
|
|
266
|
+
ze as T,
|
|
267
|
+
De as a,
|
|
268
|
+
Me as b,
|
|
269
|
+
Fe as c,
|
|
270
|
+
Se as d,
|
|
271
|
+
he as e,
|
|
272
|
+
L as u
|
|
273
|
+
};
|