@wrdagency/blockout 1.0.4 → 1.0.6
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 +76 -0
- package/dist/2RSXSRCN-rMUAytae.js +61 -0
- package/dist/{4CMBR7SL-xNGezbCB.js → 4CMBR7SL-ChJnawVl.js} +132 -126
- package/dist/{5JTVDSTH-CIreO5bC.js → 5JTVDSTH-DcfjjEya.js} +4 -4
- package/dist/{5VQZOHHZ-CNzYHc1X.js → 5VQZOHHZ-BN-teS5E.js} +1 -1
- package/dist/{6VRAQV3D-BoLhl3hf.js → 6VRAQV3D-DK_p41oq.js} +6 -6
- package/dist/A3WPL2ZJ-CpUtG5Sk.js +12 -0
- package/dist/{BM6PGYQY-Bhr7peim.js → BM6PGYQY-CkMwDqt0.js} +2 -2
- package/dist/Check.es-CMkTf2It.js +38 -0
- package/dist/{DG5U6ZEL-C7eLVyh-.js → DG5U6ZEL-GfwW2sqh.js} +3 -3
- package/dist/EM5CXX6A-C74NAQPE.js +13 -0
- package/dist/{F5MUBM3I-_HauDyEF.js → F5MUBM3I-BbDMTUwx.js} +24 -24
- package/dist/{G7GW6PWC-Crp1Jn-8.js → G7GW6PWC-A0eDeXMt.js} +100 -96
- package/dist/IWEFDH56-CvOsIcbb.js +19 -0
- package/dist/{J2LQO3EC-CcHJqN0I.js → J2LQO3EC-DYtZQQv6.js} +4 -3
- package/dist/{KFH4SEIX-D-fCkpQv.js → KFH4SEIX-BFT9WmYk.js} +3 -3
- package/dist/{LMDWO4NN-DdLnHzru.js → LMDWO4NN-CIZvvtic.js} +233 -203
- package/dist/MAXQOH4L-DBaf8WKp.js +564 -0
- package/dist/MR26YJYP-DacZIkgJ.js +287 -0
- package/dist/MTZPJQMC-DPwZ6caC.js +13 -0
- package/dist/{O2PQ2652-THp22K4G.js → O2PQ2652-D2GSkoLq.js} +6 -6
- package/dist/P7GR5CS5-5PtDURPc.js +24 -0
- package/dist/{PFRGBC2K-DUhGSIey.js → PFRGBC2K-B9ko--FF.js} +34 -33
- package/dist/Plus.es-DJ5SuqNv.js +38 -0
- package/dist/RS7LB2H4-BvDKQaCt.js +18 -0
- package/dist/RZ4GPYOB-COPqjbOz.js +37 -0
- package/dist/{S43UC3DV-erT1ucAd.js → S43UC3DV-CiBKpqp8.js} +3 -3
- package/dist/{T7VMP3TM-C-Aesx9K.js → T7VMP3TM-C0xl-w4G.js} +21 -21
- package/dist/TP7N7UIH-Dc0CLLi8.js +33 -0
- package/dist/{UQQRIHDV-DIXH69U3.js → UQQRIHDV-BBkcyl82.js} +17 -17
- package/dist/UYGDZTLQ-9uAEICxv.js +13 -0
- package/dist/VIIRIBF3-uvnIyICw.js +31 -0
- package/dist/WMYDSCNQ-D4CU76mX.js +61 -0
- package/dist/{WYCIER3C-S-jsj0wy.js → WYCIER3C-CaoIoaX7.js} +4 -4
- package/dist/{YV4JVR4I-BXEaRiAN.js → YV4JVR4I-w1-dnslS.js} +47 -47
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/style16.css +1 -1
- package/dist/assets/style17.css +1 -1
- package/dist/assets/style18.css +1 -1
- package/dist/assets/style19.css +1 -1
- package/dist/assets/style20.css +1 -1
- package/dist/assets/style21.css +1 -1
- package/dist/assets/style22.css +1 -1
- package/dist/assets/style23.css +1 -1
- package/dist/assets/style24.css +1 -1
- package/dist/assets/style25.css +1 -1
- package/dist/assets/style26.css +1 -1
- package/dist/assets/style27.css +1 -0
- package/dist/components/breadcrumbs/index.js +5 -5
- package/dist/components/button/row.js +4 -4
- package/dist/components/controls/base-popover-control/index.js +4 -4
- package/dist/components/controls/card-number-control/index.js +1 -1
- package/dist/components/controls/date-control/index.js +1 -1
- package/dist/components/controls/date-control/picker.js +5 -5
- package/dist/components/controls/index.d.ts +1 -0
- package/dist/components/controls/index.js +12 -10
- package/dist/components/controls/list-control/item.js +34 -67
- package/dist/components/controls/list-control/list.js +1 -1
- package/dist/components/controls/recurrence-control/index.js +19 -18
- package/dist/components/controls/select-control/control.js +26 -37
- package/dist/components/controls/select-control/select.js +62 -1129
- package/dist/components/controls/tag-control/ariakit-experimental.d.ts +7 -0
- package/dist/components/controls/tag-control/ariakit-experimental.js +2308 -0
- package/dist/components/controls/tag-control/index.d.ts +10 -0
- package/dist/components/controls/tag-control/index.js +134 -0
- package/dist/components/controls/tag-control/props.d.ts +11 -0
- package/dist/components/controls/tag-control/props.js +29 -0
- package/dist/components/controls/text-control/index.js +1 -1
- package/dist/components/data-view/data/apply.js +15 -15
- package/dist/components/data-view/data/filter.js +14 -12
- package/dist/components/data-view/index.js +1 -1
- package/dist/components/data-view/layouts/grid/empty.js +1 -1
- package/dist/components/data-view/layouts/grid/group.js +9 -7
- package/dist/components/data-view/layouts/grid/item.js +9 -7
- package/dist/components/data-view/layouts/grid/root.js +1 -1
- package/dist/components/data-view/layouts/kanban/empty.js +1 -1
- package/dist/components/data-view/layouts/kanban/group.js +9 -7
- package/dist/components/data-view/layouts/kanban/item.js +9 -7
- package/dist/components/data-view/layouts/kanban/root.js +1 -1
- package/dist/components/data-view/layouts/list/empty.js +1 -1
- package/dist/components/data-view/layouts/list/group.js +9 -7
- package/dist/components/data-view/layouts/list/item.js +9 -7
- package/dist/components/data-view/layouts/list/root.js +1 -1
- package/dist/components/data-view/layouts/table/empty.js +9 -7
- package/dist/components/data-view/layouts/table/group.js +10 -8
- package/dist/components/data-view/layouts/table/item.js +10 -8
- package/dist/components/data-view/layouts/table/root.js +9 -7
- package/dist/components/data-view/parts/body/index.js +11 -9
- package/dist/components/data-view/parts/controls/index.js +9 -7
- package/dist/components/data-view/parts/controls/search.js +9 -7
- package/dist/components/data-view/parts/filters/editor.js +8 -6
- package/dist/components/data-view/parts/filters/index.js +1 -1
- package/dist/components/data-view/parts/filters/list.js +39 -73
- package/dist/components/data-view/parts/footer/actions.js +9 -7
- package/dist/components/data-view/parts/footer/index.js +9 -7
- package/dist/components/data-view/parts/footer/selection.js +9 -7
- package/dist/components/data-view/parts/view-control/index.js +23 -21
- package/dist/components/data-view/root.js +9 -7
- package/dist/components/data-view/slots/group/checkbox.js +9 -7
- 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 +9 -7
- 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 +2 -2
- package/dist/components/data-view/slots/item/properties.js +2 -2
- package/dist/components/data-view/slots/item/relations.js +3 -3
- 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 +1 -1
- package/dist/components/data-view/slots/item/util.js +2 -2
- package/dist/components/data-view/slots/property/field/editable.js +8 -6
- package/dist/components/data-view/slots/property/field/index.js +2 -2
- 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 +8 -6
- 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 +29 -80
- package/dist/components/filesystem/list.js +1 -1
- package/dist/components/filesystem/root.js +1 -1
- package/dist/components/index.js +41 -39
- package/dist/components/menu/index.js +14 -13
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/items/action.js +1 -1
- package/dist/components/menu/items/spacer.js +4 -16
- package/dist/components/menu/items/submenu.js +4 -3
- package/dist/components/menu/items/toggle.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/tabs/list.js +8 -36
- package/dist/components/tabs/panel.js +13 -126
- package/dist/components/tabs/root.js +14 -166
- package/dist/components/tabs/tab.js +5 -79
- package/dist/components/toolbar/divider.js +7 -19
- package/dist/components/toolbar/index.js +10 -24
- package/dist/components/toolbar/root.js +5 -67
- package/dist/components/window/index.js +2 -2
- package/dist/{composite-provider-R5SnRc_G.js → composite-provider-B-M1AaRb.js} +2 -2
- package/dist/disclosure-provider-DW9RmAuE.js +61 -0
- package/dist/{filter-C-ZkRgt_.js → filter-GoxwLwkT.js} +14 -12
- package/dist/{index-DI0cEpya.js → index-C_xrLeQq.js} +20 -18
- package/dist/{index-BW-2OhmK.js → index-DJ2XZnew.js} +7 -5
- package/dist/{index-Bj4Ga50P.js → index-DpV0obFX.js} +6 -4
- package/dist/index.js +87 -85
- package/dist/item-CYpF0or4.js +58 -0
- package/dist/{style-tA0yiKCL.js → match-sorter.esm-MNVE8H_6.js} +1 -1
- package/dist/menu-button-D0chRxS0.js +416 -0
- package/dist/menu-separator-Cy38O3cZ.js +16 -0
- package/dist/{picker-BkmBjgWA.js → picker-BAQPD-c9.js} +4 -4
- package/dist/popover-provider-DZV1nb7Q.js +10 -0
- package/dist/primitives/nav-link/index.d.ts +2 -2
- package/dist/primitives/popover/index.js +2 -2
- package/dist/primitives/popover/root.js +12 -3
- package/dist/primitives/popover/target.js +1 -1
- package/dist/primitives/popover/window.js +3 -3
- package/dist/primitives/tooltip/index.js +10 -173
- package/dist/select-popover-DYAZyLp4.js +542 -0
- package/dist/select-value-CeoMyvpZ.js +15 -0
- package/dist/{sortable.esm-De3H-_AA.js → sortable.esm-BuV7eW2H.js} +4 -4
- package/dist/{style-C7eFpUVU.js → style-CWAa57kN.js} +1 -1
- package/dist/tab-DjNG1rEI.js +79 -0
- package/dist/tab-list-DtMnUjoy.js +33 -0
- package/dist/tab-panel-DdkeLgKE.js +118 -0
- package/dist/tab-provider-BMkHrtIK.js +158 -0
- package/dist/tag-remove-BVa8oSsq.js +533 -0
- package/dist/toolbar-B7_t1rYu.js +68 -0
- package/dist/toolbar-separator-DBoO5XdF.js +16 -0
- package/dist/tooltip-anchor-CxZWazuo.js +173 -0
- package/dist/utils/url.js +6 -6
- package/package.json +1 -1
- package/dist/2NBKRL7C-Cug3TzgR.js +0 -85
- package/dist/2RSXSRCN-Bc3g-z-i.js +0 -61
- package/dist/A3WPL2ZJ-D0Eh1dEB.js +0 -11
- package/dist/EM5CXX6A-DKxCXPnz.js +0 -14
- package/dist/MR26YJYP-yD1_RvCA.js +0 -283
- package/dist/MTZPJQMC-RLG1q394.js +0 -12
- package/dist/P7GR5CS5-Dub2zqTX.js +0 -22
- package/dist/RS7LB2H4-C0kmTjy8.js +0 -15
- package/dist/RZ4GPYOB-c8s_KHUk.js +0 -37
- package/dist/TP7N7UIH-mdk33dnV.js +0 -34
- package/dist/UYGDZTLQ-fOwUiOjI.js +0 -12
- package/dist/VIIRIBF3-DylpToFV.js +0 -18
- package/dist/WMYDSCNQ-D43V-JUe.js +0 -62
- package/dist/item-C5GtZF5t.js +0 -470
- package/dist/root-C7IYlG1s.js +0 -20
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { b as n } from "./VIIRIBF3-uvnIyICw.js";
|
|
2
|
+
import { u } from "./TP7N7UIH-Dc0CLLi8.js";
|
|
3
|
+
import { f as p, c as m, a as c, _ as f, o as i } from "./LMDWO4NN-CIZvvtic.js";
|
|
4
|
+
var M = "hr", _ = m(
|
|
5
|
+
function(e) {
|
|
6
|
+
var r = e, { store: a } = r, o = f(r, ["store"]);
|
|
7
|
+
const s = n();
|
|
8
|
+
return a = a || s, o = u(i({ store: a }, o)), o;
|
|
9
|
+
}
|
|
10
|
+
), l = p(function(e) {
|
|
11
|
+
const r = _(e);
|
|
12
|
+
return c(M, r);
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
l as M
|
|
16
|
+
};
|
|
@@ -8,10 +8,10 @@ import { e as C } from "./CaretRight.es-vnr78BGI.js";
|
|
|
8
8
|
import { useState as G } from "react";
|
|
9
9
|
import './assets/style11.css';/* empty css */
|
|
10
10
|
import { t as h, c as b, a as Q, g as N, m as F, b as B, d as X, e as I, f as R, h as j, l as V, i as A, j as K, k as Z, w as $, s as U } from "./protectedTokens-DdjZoCxO.js";
|
|
11
|
-
import { C as z } from "./composite-provider-
|
|
12
|
-
import { C as J } from "./5JTVDSTH-
|
|
13
|
-
import { C as tt } from "./J2LQO3EC-
|
|
14
|
-
import { C as et } from "./6VRAQV3D-
|
|
11
|
+
import { C as z } from "./composite-provider-B-M1AaRb.js";
|
|
12
|
+
import { C as J } from "./5JTVDSTH-DcfjjEya.js";
|
|
13
|
+
import { C as tt } from "./J2LQO3EC-DYtZQQv6.js";
|
|
14
|
+
import { C as et } from "./6VRAQV3D-DK_p41oq.js";
|
|
15
15
|
function nt(n, e, t) {
|
|
16
16
|
const r = h(n, t == null ? void 0 : t.in);
|
|
17
17
|
if (isNaN(e)) return b(n, NaN);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { u as e } from "./O2PQ2652-D2GSkoLq.js";
|
|
2
|
+
import { P as t } from "./MTZPJQMC-DPwZ6caC.js";
|
|
3
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
4
|
+
function s(o = {}) {
|
|
5
|
+
const r = e(o);
|
|
6
|
+
return /* @__PURE__ */ i(t, { value: r, children: o.children });
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
s as P
|
|
10
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes, FC } from 'react';
|
|
2
2
|
import { IconLabelProps } from '../icon-label';
|
|
3
3
|
interface NavLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4
|
-
variant
|
|
5
|
-
size
|
|
4
|
+
variant?: IconLabelProps["variant"];
|
|
5
|
+
size?: IconLabelProps["size"];
|
|
6
6
|
}
|
|
7
7
|
export declare const NavLink: FC<NavLinkProps>;
|
|
8
8
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Root as o } from "./root.js";
|
|
2
2
|
import { Target as r } from "./target.js";
|
|
3
3
|
import { Window as t } from "./window.js";
|
|
4
|
-
import '../../assets/
|
|
4
|
+
import '../../assets/index13.css';const e = Object.assign(o, {
|
|
5
5
|
Window: t,
|
|
6
6
|
Target: r
|
|
7
7
|
});
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { P as p } from "../../popover-provider-DZV1nb7Q.js";
|
|
3
|
+
const P = ({ open: o, setOpen: r, placement: t, children: e }) => /* @__PURE__ */ m(
|
|
4
|
+
p,
|
|
5
|
+
{
|
|
6
|
+
open: o,
|
|
7
|
+
setOpen: r,
|
|
8
|
+
placement: t,
|
|
9
|
+
children: e
|
|
10
|
+
}
|
|
11
|
+
);
|
|
3
12
|
export {
|
|
4
|
-
|
|
13
|
+
P as Root
|
|
5
14
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { cn as a } from "../../utils/css.js";
|
|
3
3
|
import { ScrollArea as m } from "../scroll-area/index.js";
|
|
4
|
-
import { u as n } from "../../MTZPJQMC-
|
|
5
|
-
import { a as l } from "../../YV4JVR4I-
|
|
6
|
-
import { P as w } from "../../G7GW6PWC-
|
|
4
|
+
import { u as n } from "../../MTZPJQMC-DPwZ6caC.js";
|
|
5
|
+
import { a as l } from "../../YV4JVR4I-w1-dnslS.js";
|
|
6
|
+
import { P as w } from "../../G7GW6PWC-A0eDeXMt.js";
|
|
7
7
|
const P = ({
|
|
8
8
|
className: r,
|
|
9
9
|
children: e,
|
|
@@ -1,178 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cn as
|
|
3
|
-
import {
|
|
1
|
+
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { cn as m } from "../../utils/css.js";
|
|
3
|
+
import { useState as a } from "react";
|
|
4
4
|
import '../../assets/style5.css';/* empty css */
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var r;
|
|
12
|
-
process.env.NODE_ENV !== "production" && o.type === "label" && console.warn(
|
|
13
|
-
"The `type` option on the tooltip store is deprecated.",
|
|
14
|
-
"Render a visually hidden label or use the `aria-label` or `aria-labelledby` attributes on the anchor element instead.",
|
|
15
|
-
"See https://ariakit.org/components/tooltip#tooltip-anchors-must-have-accessible-names"
|
|
16
|
-
);
|
|
17
|
-
const t = (r = o.store) == null ? void 0 : r.getState(), e = q(k(h({}, o), {
|
|
18
|
-
placement: f(
|
|
19
|
-
o.placement,
|
|
20
|
-
t == null ? void 0 : t.placement,
|
|
21
|
-
"top"
|
|
22
|
-
),
|
|
23
|
-
hideTimeout: f(o.hideTimeout, t == null ? void 0 : t.hideTimeout, 0)
|
|
24
|
-
})), l = k(h({}, e.getState()), {
|
|
25
|
-
type: f(o.type, t == null ? void 0 : t.type, "description"),
|
|
26
|
-
skipTimeout: f(o.skipTimeout, t == null ? void 0 : t.skipTimeout, 300)
|
|
27
|
-
}), i = N(l, e, o.store);
|
|
28
|
-
return h(h({}, e), i);
|
|
29
|
-
}
|
|
30
|
-
function re(o, r, t) {
|
|
31
|
-
return H(o, t, "type"), H(o, t, "skipTimeout"), z(o, r, t);
|
|
32
|
-
}
|
|
33
|
-
function ne(o = {}) {
|
|
34
|
-
const [r, t] = K(oe, o);
|
|
35
|
-
return re(r, t, o);
|
|
36
|
-
}
|
|
37
|
-
var g = L(
|
|
38
|
-
[ee],
|
|
39
|
-
[Z]
|
|
40
|
-
), x = g.useProviderContext, ie = g.ContextProvider, ae = g.ScopedContextProvider, se = "div", ue = A(
|
|
41
|
-
function(r) {
|
|
42
|
-
var t = r, {
|
|
43
|
-
store: e,
|
|
44
|
-
portal: l = !0,
|
|
45
|
-
gutter: i = 8,
|
|
46
|
-
preserveTabOrder: b = !1,
|
|
47
|
-
hideOnHoverOutside: p = !0,
|
|
48
|
-
hideOnInteractOutside: v = !0
|
|
49
|
-
} = t, s = I(t, [
|
|
50
|
-
"store",
|
|
51
|
-
"portal",
|
|
52
|
-
"gutter",
|
|
53
|
-
"preserveTabOrder",
|
|
54
|
-
"hideOnHoverOutside",
|
|
55
|
-
"hideOnInteractOutside"
|
|
56
|
-
]);
|
|
57
|
-
const m = x();
|
|
58
|
-
e = e || m, B(
|
|
59
|
-
e,
|
|
60
|
-
process.env.NODE_ENV !== "production" && "Tooltip must receive a `store` prop or be wrapped in a TooltipProvider component."
|
|
61
|
-
), s = U(
|
|
62
|
-
s,
|
|
63
|
-
(a) => /* @__PURE__ */ S(ae, { value: e, children: a }),
|
|
64
|
-
[e]
|
|
65
|
-
);
|
|
66
|
-
const P = e.useState(
|
|
67
|
-
(a) => a.type === "description" ? "tooltip" : "none"
|
|
68
|
-
);
|
|
69
|
-
return s = T({ role: P }, s), s = G(D(T({}, s), {
|
|
70
|
-
store: e,
|
|
71
|
-
portal: l,
|
|
72
|
-
gutter: i,
|
|
73
|
-
preserveTabOrder: b,
|
|
74
|
-
hideOnHoverOutside(a) {
|
|
75
|
-
if (E(p, a)) return !1;
|
|
76
|
-
const c = e == null ? void 0 : e.getState().anchorElement;
|
|
77
|
-
return c ? !("focusVisible" in c.dataset) : !0;
|
|
78
|
-
},
|
|
79
|
-
hideOnInteractOutside: (a) => {
|
|
80
|
-
if (E(v, a)) return !1;
|
|
81
|
-
const c = e == null ? void 0 : e.getState().anchorElement;
|
|
82
|
-
return c ? !X(c, a.target) : !0;
|
|
83
|
-
}
|
|
84
|
-
})), s;
|
|
85
|
-
}
|
|
86
|
-
), le = te(
|
|
87
|
-
V(function(r) {
|
|
88
|
-
const t = ue(r);
|
|
89
|
-
return R(se, t);
|
|
90
|
-
}),
|
|
91
|
-
x
|
|
92
|
-
);
|
|
93
|
-
function ce(o = {}) {
|
|
94
|
-
const r = ne(o);
|
|
95
|
-
return /* @__PURE__ */ S(ie, { value: r, children: o.children });
|
|
96
|
-
}
|
|
97
|
-
var de = "div", d = N({
|
|
98
|
-
activeStore: null
|
|
99
|
-
});
|
|
100
|
-
function w(o) {
|
|
101
|
-
return () => {
|
|
102
|
-
const { activeStore: r } = d.getState();
|
|
103
|
-
r === o && d.setState("activeStore", null);
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
var pe = A(
|
|
107
|
-
function(r) {
|
|
108
|
-
var t = r, { store: e, showOnHover: l = !0 } = t, i = I(t, ["store", "showOnHover"]);
|
|
109
|
-
const b = x();
|
|
110
|
-
e = e || b, B(
|
|
111
|
-
e,
|
|
112
|
-
process.env.NODE_ENV !== "production" && "TooltipAnchor must receive a `store` prop or be wrapped in a TooltipProvider component."
|
|
113
|
-
);
|
|
114
|
-
const p = Q(!1);
|
|
115
|
-
y(() => C(e, ["mounted"], (n) => {
|
|
116
|
-
n.mounted || (p.current = !1);
|
|
117
|
-
}), [e]), y(() => {
|
|
118
|
-
if (e)
|
|
119
|
-
return Y(
|
|
120
|
-
// Immediately remove the current store from the global store when
|
|
121
|
-
// the component unmounts. This is useful, for example, to avoid
|
|
122
|
-
// showing tooltips immediately on serial tests.
|
|
123
|
-
w(e),
|
|
124
|
-
C(e, ["mounted", "skipTimeout"], (n) => {
|
|
125
|
-
if (!e) return;
|
|
126
|
-
if (n.mounted) {
|
|
127
|
-
const { activeStore: O } = d.getState();
|
|
128
|
-
return O !== e && (O == null || O.hide()), d.setState("activeStore", e);
|
|
129
|
-
}
|
|
130
|
-
const u = setTimeout(
|
|
131
|
-
w(e),
|
|
132
|
-
n.skipTimeout
|
|
133
|
-
);
|
|
134
|
-
return () => clearTimeout(u);
|
|
135
|
-
})
|
|
136
|
-
);
|
|
137
|
-
}, [e]);
|
|
138
|
-
const v = i.onMouseEnter, s = _((n) => {
|
|
139
|
-
v == null || v(n), p.current = !0;
|
|
140
|
-
}), m = i.onFocusVisible, P = _((n) => {
|
|
141
|
-
m == null || m(n), !n.defaultPrevented && (e == null || e.setAnchorElement(n.currentTarget), e == null || e.show());
|
|
142
|
-
}), a = i.onBlur, c = _((n) => {
|
|
143
|
-
if (a == null || a(n), n.defaultPrevented) return;
|
|
144
|
-
const { activeStore: u } = d.getState();
|
|
145
|
-
p.current = !1, u === e && d.setState("activeStore", null);
|
|
146
|
-
}), F = e.useState("type"), M = e.useState((n) => {
|
|
147
|
-
var u;
|
|
148
|
-
return (u = n.contentElement) == null ? void 0 : u.id;
|
|
149
|
-
});
|
|
150
|
-
return i = D(T({
|
|
151
|
-
"aria-labelledby": F === "label" ? M : void 0
|
|
152
|
-
}, i), {
|
|
153
|
-
onMouseEnter: s,
|
|
154
|
-
onFocusVisible: P,
|
|
155
|
-
onBlur: c
|
|
156
|
-
}), i = J(T({
|
|
157
|
-
store: e,
|
|
158
|
-
showOnHover(n) {
|
|
159
|
-
if (!p.current || E(l, n)) return !1;
|
|
160
|
-
const { activeStore: u } = d.getState();
|
|
161
|
-
return u ? (e == null || e.show(), !1) : !0;
|
|
162
|
-
}
|
|
163
|
-
}, i)), i;
|
|
164
|
-
}
|
|
165
|
-
), ve = V(function(r) {
|
|
166
|
-
const t = pe(r);
|
|
167
|
-
return R(de, t);
|
|
168
|
-
});
|
|
169
|
-
const Ee = ({ className: o, label: r, children: t }) => {
|
|
170
|
-
const [e, l] = W(!1);
|
|
171
|
-
return r ? /* @__PURE__ */ $(ce, { open: e, setOpen: l, children: [
|
|
172
|
-
/* @__PURE__ */ S(ve, { className: j("primitive-tooltip", o), children: t }),
|
|
173
|
-
e && /* @__PURE__ */ S(le, { className: "primitive-tooltip__label", children: r })
|
|
5
|
+
import { T as l, a as n, b as c } from "../../tooltip-anchor-CxZWazuo.js";
|
|
6
|
+
const d = ({ className: p, label: o, children: t }) => {
|
|
7
|
+
const [i, e] = a(!1);
|
|
8
|
+
return o ? /* @__PURE__ */ s(l, { open: i, setOpen: e, children: [
|
|
9
|
+
/* @__PURE__ */ r(n, { className: m("primitive-tooltip", p), children: t }),
|
|
10
|
+
i && /* @__PURE__ */ r(c, { className: "primitive-tooltip__label", children: o })
|
|
174
11
|
] }) : t;
|
|
175
12
|
};
|
|
176
13
|
export {
|
|
177
|
-
|
|
14
|
+
d as Tooltip
|
|
178
15
|
};
|