@gardenfi/garden-book 0.2.31 → 0.3.0-beta.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/BulletList/BulletList.d.ts +21 -0
- package/dist/BulletList/index.d.ts +2 -0
- package/dist/BulletList/index.js +31 -0
- package/dist/CardList/CardList.d.ts +32 -0
- package/dist/CardList/index.d.ts +2 -0
- package/dist/CardList/index.js +141 -0
- package/dist/Checkbox/Checkbox.js +7 -0
- package/dist/Checkbox/RadixCheckbox.d.ts +3 -0
- package/dist/Checkbox/RadixCheckbox.js +27 -0
- package/dist/Checkbox/index.d.ts +1 -0
- package/dist/Checkbox/index.js +4 -5
- package/dist/DashboardLayout/DashboardLayout.d.ts +23 -0
- package/dist/DashboardLayout/DashboardNavbar.d.ts +11 -0
- package/dist/DashboardLayout/DashboardNavbar.js +32 -0
- package/dist/DashboardLayout/DashboardSidebar.d.ts +30 -0
- package/dist/DashboardLayout/DashboardSidebar.js +139 -0
- package/dist/DashboardLayout/MobileMenu.d.ts +11 -0
- package/dist/DashboardLayout/MobileMenu.js +126 -0
- package/dist/DashboardLayout/PageHeader.d.ts +13 -0
- package/dist/DashboardLayout/PageHeader.js +47 -0
- package/dist/DashboardLayout/index.d.ts +10 -0
- package/dist/DashboardLayout/index.js +93 -0
- package/dist/DataTable/DataTable.d.ts +50 -0
- package/dist/DataTable/Table.d.ts +7 -0
- package/dist/DataTable/Table.js +57 -0
- package/dist/DataTable/index.d.ts +2 -0
- package/dist/DataTable/index.js +269 -0
- package/dist/DataTable/useAnimatedTable.d.ts +8 -0
- package/dist/DataTable/useAnimatedTable.js +44 -0
- package/dist/DirectionalIconHover/DirectionalIconHover.d.ts +12 -0
- package/dist/DirectionalIconHover/index.d.ts +2 -0
- package/dist/DirectionalIconHover/index.js +72 -0
- package/dist/EmptyState/EmptyState.d.ts +20 -0
- package/dist/EmptyState/index.d.ts +2 -0
- package/dist/EmptyState/index.js +35 -0
- package/dist/ErrorState/ErrorState.d.ts +17 -0
- package/dist/ErrorState/errorMessages.d.ts +2 -0
- package/dist/ErrorState/errorMessages.js +13 -0
- package/dist/ErrorState/index.d.ts +2 -0
- package/dist/ErrorState/index.js +37 -0
- package/dist/Field/Field.d.ts +14 -0
- package/dist/Field/index.d.ts +2 -0
- package/dist/Field/index.js +14 -0
- package/dist/HamburgerIcon/HamburgerIcon.d.ts +5 -0
- package/dist/HamburgerIcon/index.d.ts +2 -0
- package/dist/HamburgerIcon/index.js +47 -0
- package/dist/InfoTooltip/InfoTooltip.d.ts +22 -0
- package/dist/InfoTooltip/index.d.ts +2 -0
- package/dist/InfoTooltip/index.js +81 -0
- package/dist/Input/Input.d.ts +19 -0
- package/dist/Input/index.d.ts +2 -0
- package/dist/Input/index.js +113 -0
- package/dist/Logo/index.d.ts +0 -1
- package/dist/Logo/index.js +8 -10
- package/dist/OTPInput/OTPInput.d.ts +11 -0
- package/dist/OTPInput/index.d.ts +2 -0
- package/dist/OTPInput/index.js +88 -0
- package/dist/Pagination/Pagination.d.ts +16 -0
- package/dist/Pagination/index.d.ts +2 -0
- package/dist/Pagination/index.js +111 -0
- package/dist/Portal/Portal.d.ts +8 -0
- package/dist/Portal/index.d.ts +2 -0
- package/dist/Portal/index.js +11 -0
- package/dist/ResponsiveModal/ResponsiveModal.d.ts +14 -0
- package/dist/ResponsiveModal/index.d.ts +2 -0
- package/dist/ResponsiveModal/index.js +62 -0
- package/dist/SelectDropdown/SelectDropdown.d.ts +41 -0
- package/dist/SelectDropdown/index.d.ts +2 -0
- package/dist/SelectDropdown/index.js +195 -0
- package/dist/Skeleton/Skeleton.d.ts +3 -0
- package/dist/Skeleton/index.d.ts +2 -0
- package/dist/Skeleton/index.js +12 -0
- package/dist/StatCard/StatCard.d.ts +20 -0
- package/dist/StatCard/index.d.ts +2 -0
- package/dist/StatCard/index.js +42 -0
- package/dist/StateContainer/StateContainer.d.ts +8 -0
- package/dist/StateContainer/index.d.ts +2 -0
- package/dist/StateContainer/index.js +15 -0
- package/dist/StatusChip/StatusChip.d.ts +11 -0
- package/dist/StatusChip/index.d.ts +2 -0
- package/dist/StatusChip/index.js +33 -0
- package/dist/Switch/Switch.d.ts +3 -0
- package/dist/Switch/index.d.ts +1 -0
- package/dist/Switch/index.js +31 -0
- package/dist/Toast/Toast.d.ts +15 -0
- package/dist/Toast/Toast.js +93 -0
- package/dist/Toast/Toaster.d.ts +5 -0
- package/dist/Toast/Toaster.js +30 -0
- package/dist/Toast/index.d.ts +5 -0
- package/dist/Toast/index.js +16 -0
- package/dist/Toast/useToast.d.ts +46 -0
- package/dist/Toast/useToast.js +76 -0
- package/dist/ToggleGroup/ToggleGroup.d.ts +15 -0
- package/dist/ToggleGroup/index.d.ts +2 -0
- package/dist/ToggleGroup/index.js +57 -0
- package/dist/Typography/Typography.d.ts +2 -2
- package/dist/Viewport/Viewport.d.ts +11 -0
- package/dist/Viewport/index.d.ts +2 -0
- package/dist/Viewport/index.js +7 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +386 -314
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +532 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +403 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +232 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +251 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
- package/dist/node_modules/@radix-ui/{react-slot → react-collection/node_modules/@radix-ui/react-slot}/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +29 -26
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +208 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +624 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +221 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +132 -0
- package/dist/node_modules/@radix-ui/react-toast/dist/index.js +446 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +330 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.js +11 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +8 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +32 -0
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +40 -0
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +23 -0
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-down.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up-down.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/eye-off.js +28 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/eye.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/log-out.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +11 -0
- package/dist/style.css +1 -1
- package/package.json +12 -3
- package/dist/Logo/Code4renaLogo.d.ts +0 -5
- package/dist/Logo/Code4renaLogo.js +0 -45
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import { composeEventHandlers as g } from "../../primitive/dist/index.js";
|
|
3
|
+
import { useComposedRefs as H } from "../../react-compose-refs/dist/index.js";
|
|
4
|
+
import { createContextScope as Y } from "../../react-context/dist/index.js";
|
|
5
|
+
import { DismissableLayer as q } from "../../react-dismissable-layer/dist/index.js";
|
|
6
|
+
import { useId as X } from "../../react-id/dist/index.js";
|
|
7
|
+
import { Root as K, Anchor as W, createPopperScope as N, Content as z, Arrow as J } from "../../react-popper/dist/index.js";
|
|
8
|
+
import { Presence as Q } from "../../react-presence/dist/index.js";
|
|
9
|
+
import { Primitive as Z } from "../../react-primitive/dist/index.js";
|
|
10
|
+
import { createSlottable as $ } from "../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
11
|
+
import { useControllableState as ee } from "../../react-use-controllable-state/dist/index.js";
|
|
12
|
+
import { Root as te } from "../../react-visually-hidden/dist/index.js";
|
|
13
|
+
import { jsx as h, jsxs as oe } from "react/jsx-runtime";
|
|
14
|
+
var [_] = Y("Tooltip", [
|
|
15
|
+
N
|
|
16
|
+
]), D = N(), S = "TooltipProvider", re = 700, L = "tooltip.open", [ne, k] = _(S), G = (t) => {
|
|
17
|
+
const {
|
|
18
|
+
__scopeTooltip: o,
|
|
19
|
+
delayDuration: e = re,
|
|
20
|
+
skipDelayDuration: r = 300,
|
|
21
|
+
disableHoverableContent: n = !1,
|
|
22
|
+
children: l
|
|
23
|
+
} = t, a = s.useRef(!0), f = s.useRef(!1), i = s.useRef(0);
|
|
24
|
+
return s.useEffect(() => {
|
|
25
|
+
const p = i.current;
|
|
26
|
+
return () => window.clearTimeout(p);
|
|
27
|
+
}, []), /* @__PURE__ */ h(
|
|
28
|
+
ne,
|
|
29
|
+
{
|
|
30
|
+
scope: o,
|
|
31
|
+
isOpenDelayedRef: a,
|
|
32
|
+
delayDuration: e,
|
|
33
|
+
onOpen: s.useCallback(() => {
|
|
34
|
+
window.clearTimeout(i.current), a.current = !1;
|
|
35
|
+
}, []),
|
|
36
|
+
onClose: s.useCallback(() => {
|
|
37
|
+
window.clearTimeout(i.current), i.current = window.setTimeout(
|
|
38
|
+
() => a.current = !0,
|
|
39
|
+
r
|
|
40
|
+
);
|
|
41
|
+
}, [r]),
|
|
42
|
+
isPointerInTransitRef: f,
|
|
43
|
+
onPointerInTransitChange: s.useCallback((p) => {
|
|
44
|
+
f.current = p;
|
|
45
|
+
}, []),
|
|
46
|
+
disableHoverableContent: n,
|
|
47
|
+
children: l
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
};
|
|
51
|
+
G.displayName = S;
|
|
52
|
+
var P = "Tooltip", [se, O] = _(P), j = (t) => {
|
|
53
|
+
const {
|
|
54
|
+
__scopeTooltip: o,
|
|
55
|
+
children: e,
|
|
56
|
+
open: r,
|
|
57
|
+
defaultOpen: n,
|
|
58
|
+
onOpenChange: l,
|
|
59
|
+
disableHoverableContent: a,
|
|
60
|
+
delayDuration: f
|
|
61
|
+
} = t, i = k(P, t.__scopeTooltip), p = D(o), [c, d] = s.useState(null), v = X(), u = s.useRef(0), m = a ?? i.disableHoverableContent, y = f ?? i.delayDuration, T = s.useRef(!1), [x, C] = ee({
|
|
62
|
+
prop: r,
|
|
63
|
+
defaultProp: n ?? !1,
|
|
64
|
+
onChange: (M) => {
|
|
65
|
+
M ? (i.onOpen(), document.dispatchEvent(new CustomEvent(L))) : i.onClose(), l == null || l(M);
|
|
66
|
+
},
|
|
67
|
+
caller: P
|
|
68
|
+
}), w = s.useMemo(() => x ? T.current ? "delayed-open" : "instant-open" : "closed", [x]), E = s.useCallback(() => {
|
|
69
|
+
window.clearTimeout(u.current), u.current = 0, T.current = !1, C(!0);
|
|
70
|
+
}, [C]), R = s.useCallback(() => {
|
|
71
|
+
window.clearTimeout(u.current), u.current = 0, C(!1);
|
|
72
|
+
}, [C]), I = s.useCallback(() => {
|
|
73
|
+
window.clearTimeout(u.current), u.current = window.setTimeout(() => {
|
|
74
|
+
T.current = !0, C(!0), u.current = 0;
|
|
75
|
+
}, y);
|
|
76
|
+
}, [y, C]);
|
|
77
|
+
return s.useEffect(() => () => {
|
|
78
|
+
u.current && (window.clearTimeout(u.current), u.current = 0);
|
|
79
|
+
}, []), /* @__PURE__ */ h(K, { ...p, children: /* @__PURE__ */ h(
|
|
80
|
+
se,
|
|
81
|
+
{
|
|
82
|
+
scope: o,
|
|
83
|
+
contentId: v,
|
|
84
|
+
open: x,
|
|
85
|
+
stateAttribute: w,
|
|
86
|
+
trigger: c,
|
|
87
|
+
onTriggerChange: d,
|
|
88
|
+
onTriggerEnter: s.useCallback(() => {
|
|
89
|
+
i.isOpenDelayedRef.current ? I() : E();
|
|
90
|
+
}, [i.isOpenDelayedRef, I, E]),
|
|
91
|
+
onTriggerLeave: s.useCallback(() => {
|
|
92
|
+
m ? R() : (window.clearTimeout(u.current), u.current = 0);
|
|
93
|
+
}, [R, m]),
|
|
94
|
+
onOpen: E,
|
|
95
|
+
onClose: R,
|
|
96
|
+
disableHoverableContent: m,
|
|
97
|
+
children: e
|
|
98
|
+
}
|
|
99
|
+
) });
|
|
100
|
+
};
|
|
101
|
+
j.displayName = P;
|
|
102
|
+
var A = "TooltipTrigger", F = s.forwardRef(
|
|
103
|
+
(t, o) => {
|
|
104
|
+
const { __scopeTooltip: e, ...r } = t, n = O(A, e), l = k(A, e), a = D(e), f = s.useRef(null), i = H(o, f, n.onTriggerChange), p = s.useRef(!1), c = s.useRef(!1), d = s.useCallback(() => p.current = !1, []);
|
|
105
|
+
return s.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ h(W, { asChild: !0, ...a, children: /* @__PURE__ */ h(
|
|
106
|
+
Z.button,
|
|
107
|
+
{
|
|
108
|
+
"aria-describedby": n.open ? n.contentId : void 0,
|
|
109
|
+
"data-state": n.stateAttribute,
|
|
110
|
+
...r,
|
|
111
|
+
ref: i,
|
|
112
|
+
onPointerMove: g(t.onPointerMove, (v) => {
|
|
113
|
+
v.pointerType !== "touch" && !c.current && !l.isPointerInTransitRef.current && (n.onTriggerEnter(), c.current = !0);
|
|
114
|
+
}),
|
|
115
|
+
onPointerLeave: g(t.onPointerLeave, () => {
|
|
116
|
+
n.onTriggerLeave(), c.current = !1;
|
|
117
|
+
}),
|
|
118
|
+
onPointerDown: g(t.onPointerDown, () => {
|
|
119
|
+
n.open && n.onClose(), p.current = !0, document.addEventListener("pointerup", d, { once: !0 });
|
|
120
|
+
}),
|
|
121
|
+
onFocus: g(t.onFocus, () => {
|
|
122
|
+
p.current || n.onOpen();
|
|
123
|
+
}),
|
|
124
|
+
onBlur: g(t.onBlur, n.onClose),
|
|
125
|
+
onClick: g(t.onClick, n.onClose)
|
|
126
|
+
}
|
|
127
|
+
) });
|
|
128
|
+
}
|
|
129
|
+
);
|
|
130
|
+
F.displayName = A;
|
|
131
|
+
var ie = "TooltipPortal", [Ae, ae] = _(ie, {
|
|
132
|
+
forceMount: void 0
|
|
133
|
+
}), b = "TooltipContent", B = s.forwardRef(
|
|
134
|
+
(t, o) => {
|
|
135
|
+
const e = ae(b, t.__scopeTooltip), { forceMount: r = e.forceMount, side: n = "top", ...l } = t, a = O(b, t.__scopeTooltip);
|
|
136
|
+
return /* @__PURE__ */ h(Q, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ h(U, { side: n, ...l, ref: o }) : /* @__PURE__ */ h(le, { side: n, ...l, ref: o }) });
|
|
137
|
+
}
|
|
138
|
+
), le = s.forwardRef((t, o) => {
|
|
139
|
+
const e = O(b, t.__scopeTooltip), r = k(b, t.__scopeTooltip), n = s.useRef(null), l = H(o, n), [a, f] = s.useState(null), { trigger: i, onClose: p } = e, c = n.current, { onPointerInTransitChange: d } = r, v = s.useCallback(() => {
|
|
140
|
+
f(null), d(!1);
|
|
141
|
+
}, [d]), u = s.useCallback(
|
|
142
|
+
(m, y) => {
|
|
143
|
+
const T = m.currentTarget, x = { x: m.clientX, y: m.clientY }, C = fe(x, T.getBoundingClientRect()), w = ve(x, C), E = he(y.getBoundingClientRect()), R = Te([...w, ...E]);
|
|
144
|
+
f(R), d(!0);
|
|
145
|
+
},
|
|
146
|
+
[d]
|
|
147
|
+
);
|
|
148
|
+
return s.useEffect(() => () => v(), [v]), s.useEffect(() => {
|
|
149
|
+
if (i && c) {
|
|
150
|
+
const m = (T) => u(T, c), y = (T) => u(T, i);
|
|
151
|
+
return i.addEventListener("pointerleave", m), c.addEventListener("pointerleave", y), () => {
|
|
152
|
+
i.removeEventListener("pointerleave", m), c.removeEventListener("pointerleave", y);
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
}, [i, c, u, v]), s.useEffect(() => {
|
|
156
|
+
if (a) {
|
|
157
|
+
const m = (y) => {
|
|
158
|
+
const T = y.target, x = { x: y.clientX, y: y.clientY }, C = (i == null ? void 0 : i.contains(T)) || (c == null ? void 0 : c.contains(T)), w = !me(x, a);
|
|
159
|
+
C ? v() : w && (v(), p());
|
|
160
|
+
};
|
|
161
|
+
return document.addEventListener("pointermove", m), () => document.removeEventListener("pointermove", m);
|
|
162
|
+
}
|
|
163
|
+
}, [i, c, a, p, v]), /* @__PURE__ */ h(U, { ...t, ref: l });
|
|
164
|
+
}), [ce, ue] = _(P, { isInside: !1 }), pe = $("TooltipContent"), U = s.forwardRef(
|
|
165
|
+
(t, o) => {
|
|
166
|
+
const {
|
|
167
|
+
__scopeTooltip: e,
|
|
168
|
+
children: r,
|
|
169
|
+
"aria-label": n,
|
|
170
|
+
onEscapeKeyDown: l,
|
|
171
|
+
onPointerDownOutside: a,
|
|
172
|
+
...f
|
|
173
|
+
} = t, i = O(b, e), p = D(e), { onClose: c } = i;
|
|
174
|
+
return s.useEffect(() => (document.addEventListener(L, c), () => document.removeEventListener(L, c)), [c]), s.useEffect(() => {
|
|
175
|
+
if (i.trigger) {
|
|
176
|
+
const d = (v) => {
|
|
177
|
+
const u = v.target;
|
|
178
|
+
u != null && u.contains(i.trigger) && c();
|
|
179
|
+
};
|
|
180
|
+
return window.addEventListener("scroll", d, { capture: !0 }), () => window.removeEventListener("scroll", d, { capture: !0 });
|
|
181
|
+
}
|
|
182
|
+
}, [i.trigger, c]), /* @__PURE__ */ h(
|
|
183
|
+
q,
|
|
184
|
+
{
|
|
185
|
+
asChild: !0,
|
|
186
|
+
disableOutsidePointerEvents: !1,
|
|
187
|
+
onEscapeKeyDown: l,
|
|
188
|
+
onPointerDownOutside: a,
|
|
189
|
+
onFocusOutside: (d) => d.preventDefault(),
|
|
190
|
+
onDismiss: c,
|
|
191
|
+
children: /* @__PURE__ */ oe(
|
|
192
|
+
z,
|
|
193
|
+
{
|
|
194
|
+
"data-state": i.stateAttribute,
|
|
195
|
+
...p,
|
|
196
|
+
...f,
|
|
197
|
+
ref: o,
|
|
198
|
+
style: {
|
|
199
|
+
...f.style,
|
|
200
|
+
"--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
201
|
+
"--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
|
|
202
|
+
"--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
|
|
203
|
+
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
204
|
+
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
205
|
+
},
|
|
206
|
+
children: [
|
|
207
|
+
/* @__PURE__ */ h(pe, { children: r }),
|
|
208
|
+
/* @__PURE__ */ h(ce, { scope: e, isInside: !0, children: /* @__PURE__ */ h(te, { id: i.contentId, role: "tooltip", children: n || r }) })
|
|
209
|
+
]
|
|
210
|
+
}
|
|
211
|
+
)
|
|
212
|
+
}
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
);
|
|
216
|
+
B.displayName = b;
|
|
217
|
+
var V = "TooltipArrow", de = s.forwardRef(
|
|
218
|
+
(t, o) => {
|
|
219
|
+
const { __scopeTooltip: e, ...r } = t, n = D(e);
|
|
220
|
+
return ue(
|
|
221
|
+
V,
|
|
222
|
+
e
|
|
223
|
+
).isInside ? null : /* @__PURE__ */ h(J, { ...n, ...r, ref: o });
|
|
224
|
+
}
|
|
225
|
+
);
|
|
226
|
+
de.displayName = V;
|
|
227
|
+
function fe(t, o) {
|
|
228
|
+
const e = Math.abs(o.top - t.y), r = Math.abs(o.bottom - t.y), n = Math.abs(o.right - t.x), l = Math.abs(o.left - t.x);
|
|
229
|
+
switch (Math.min(e, r, n, l)) {
|
|
230
|
+
case l:
|
|
231
|
+
return "left";
|
|
232
|
+
case n:
|
|
233
|
+
return "right";
|
|
234
|
+
case e:
|
|
235
|
+
return "top";
|
|
236
|
+
case r:
|
|
237
|
+
return "bottom";
|
|
238
|
+
default:
|
|
239
|
+
throw new Error("unreachable");
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
function ve(t, o, e = 5) {
|
|
243
|
+
const r = [];
|
|
244
|
+
switch (o) {
|
|
245
|
+
case "top":
|
|
246
|
+
r.push(
|
|
247
|
+
{ x: t.x - e, y: t.y + e },
|
|
248
|
+
{ x: t.x + e, y: t.y + e }
|
|
249
|
+
);
|
|
250
|
+
break;
|
|
251
|
+
case "bottom":
|
|
252
|
+
r.push(
|
|
253
|
+
{ x: t.x - e, y: t.y - e },
|
|
254
|
+
{ x: t.x + e, y: t.y - e }
|
|
255
|
+
);
|
|
256
|
+
break;
|
|
257
|
+
case "left":
|
|
258
|
+
r.push(
|
|
259
|
+
{ x: t.x + e, y: t.y - e },
|
|
260
|
+
{ x: t.x + e, y: t.y + e }
|
|
261
|
+
);
|
|
262
|
+
break;
|
|
263
|
+
case "right":
|
|
264
|
+
r.push(
|
|
265
|
+
{ x: t.x - e, y: t.y - e },
|
|
266
|
+
{ x: t.x - e, y: t.y + e }
|
|
267
|
+
);
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
270
|
+
return r;
|
|
271
|
+
}
|
|
272
|
+
function he(t) {
|
|
273
|
+
const { top: o, right: e, bottom: r, left: n } = t;
|
|
274
|
+
return [
|
|
275
|
+
{ x: n, y: o },
|
|
276
|
+
{ x: e, y: o },
|
|
277
|
+
{ x: e, y: r },
|
|
278
|
+
{ x: n, y: r }
|
|
279
|
+
];
|
|
280
|
+
}
|
|
281
|
+
function me(t, o) {
|
|
282
|
+
const { x: e, y: r } = t;
|
|
283
|
+
let n = !1;
|
|
284
|
+
for (let l = 0, a = o.length - 1; l < o.length; a = l++) {
|
|
285
|
+
const f = o[l], i = o[a], p = f.x, c = f.y, d = i.x, v = i.y;
|
|
286
|
+
c > r != v > r && e < (d - p) * (r - c) / (v - c) + p && (n = !n);
|
|
287
|
+
}
|
|
288
|
+
return n;
|
|
289
|
+
}
|
|
290
|
+
function Te(t) {
|
|
291
|
+
const o = t.slice();
|
|
292
|
+
return o.sort((e, r) => e.x < r.x ? -1 : e.x > r.x ? 1 : e.y < r.y ? -1 : e.y > r.y ? 1 : 0), ye(o);
|
|
293
|
+
}
|
|
294
|
+
function ye(t) {
|
|
295
|
+
if (t.length <= 1) return t.slice();
|
|
296
|
+
const o = [];
|
|
297
|
+
for (let r = 0; r < t.length; r++) {
|
|
298
|
+
const n = t[r];
|
|
299
|
+
for (; o.length >= 2; ) {
|
|
300
|
+
const l = o[o.length - 1], a = o[o.length - 2];
|
|
301
|
+
if ((l.x - a.x) * (n.y - a.y) >= (l.y - a.y) * (n.x - a.x)) o.pop();
|
|
302
|
+
else break;
|
|
303
|
+
}
|
|
304
|
+
o.push(n);
|
|
305
|
+
}
|
|
306
|
+
o.pop();
|
|
307
|
+
const e = [];
|
|
308
|
+
for (let r = t.length - 1; r >= 0; r--) {
|
|
309
|
+
const n = t[r];
|
|
310
|
+
for (; e.length >= 2; ) {
|
|
311
|
+
const l = e[e.length - 1], a = e[e.length - 2];
|
|
312
|
+
if ((l.x - a.x) * (n.y - a.y) >= (l.y - a.y) * (n.x - a.x)) e.pop();
|
|
313
|
+
else break;
|
|
314
|
+
}
|
|
315
|
+
e.push(n);
|
|
316
|
+
}
|
|
317
|
+
return e.pop(), o.length === 1 && e.length === 1 && o[0].x === e[0].x && o[0].y === e[0].y ? o : o.concat(e);
|
|
318
|
+
}
|
|
319
|
+
var ke = G, Ie = j, Me = F, He = B;
|
|
320
|
+
export {
|
|
321
|
+
He as Content,
|
|
322
|
+
ke as Provider,
|
|
323
|
+
Ie as Root,
|
|
324
|
+
j as Tooltip,
|
|
325
|
+
de as TooltipArrow,
|
|
326
|
+
B as TooltipContent,
|
|
327
|
+
G as TooltipProvider,
|
|
328
|
+
F as TooltipTrigger,
|
|
329
|
+
Me as Trigger
|
|
330
|
+
};
|
package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import { jsx as e, Fragment as o } from "react/jsx-runtime";
|
|
3
|
+
var l = Symbol("radix.slottable");
|
|
4
|
+
// @__NO_SIDE_EFFECTS__
|
|
5
|
+
function n(r) {
|
|
6
|
+
const t = ({ children: a }) => /* @__PURE__ */ e(o, { children: a });
|
|
7
|
+
return t.displayName = `${r}.Slottable`, t.__radixId = l, t;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
n as createSlottable
|
|
11
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
function t(r) {
|
|
3
|
+
const e = u.useRef({ value: r, previous: r });
|
|
4
|
+
return u.useMemo(() => (e.current.value !== r && (e.current.previous = e.current.value, e.current.value = r), e.current.previous), [r]);
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
t as usePrevious
|
|
8
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as h from "react";
|
|
2
|
+
import { useLayoutEffect as z } from "../../react-use-layout-effect/dist/index.js";
|
|
3
|
+
function c(r) {
|
|
4
|
+
const [d, e] = h.useState(void 0);
|
|
5
|
+
return z(() => {
|
|
6
|
+
if (r) {
|
|
7
|
+
e({ width: r.offsetWidth, height: r.offsetHeight });
|
|
8
|
+
const f = new ResizeObserver((i) => {
|
|
9
|
+
if (!Array.isArray(i) || !i.length)
|
|
10
|
+
return;
|
|
11
|
+
const b = i[0];
|
|
12
|
+
let o, t;
|
|
13
|
+
if ("borderBoxSize" in b) {
|
|
14
|
+
const s = b.borderBoxSize, u = Array.isArray(s) ? s[0] : s;
|
|
15
|
+
o = u.inlineSize, t = u.blockSize;
|
|
16
|
+
} else
|
|
17
|
+
o = r.offsetWidth, t = r.offsetHeight;
|
|
18
|
+
e({ width: o, height: t });
|
|
19
|
+
});
|
|
20
|
+
return f.observe(r, { box: "border-box" }), () => f.unobserve(r);
|
|
21
|
+
} else
|
|
22
|
+
e(void 0);
|
|
23
|
+
}, [r]), d;
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
c as useSize
|
|
27
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
import { Primitive as o } from "../../react-primitive/dist/index.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
var d = Object.freeze({
|
|
5
|
+
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
6
|
+
position: "absolute",
|
|
7
|
+
border: 0,
|
|
8
|
+
width: 1,
|
|
9
|
+
height: 1,
|
|
10
|
+
padding: 0,
|
|
11
|
+
margin: -1,
|
|
12
|
+
overflow: "hidden",
|
|
13
|
+
clip: "rect(0, 0, 0, 0)",
|
|
14
|
+
whiteSpace: "nowrap",
|
|
15
|
+
wordWrap: "normal"
|
|
16
|
+
}), l = "VisuallyHidden", e = a.forwardRef(
|
|
17
|
+
(r, i) => /* @__PURE__ */ t(
|
|
18
|
+
o.span,
|
|
19
|
+
{
|
|
20
|
+
...r,
|
|
21
|
+
ref: i,
|
|
22
|
+
style: { ...d, ...r.style }
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
e.displayName = l;
|
|
27
|
+
var p = e;
|
|
28
|
+
export {
|
|
29
|
+
p as Root,
|
|
30
|
+
d as VISUALLY_HIDDEN_STYLES,
|
|
31
|
+
e as VisuallyHidden
|
|
32
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { forwardRef as i, createElement as o } from "react";
|
|
2
|
+
import b from "./defaultAttributes.js";
|
|
3
|
+
import { mergeClasses as d } from "./shared/src/utils.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license lucide-react v0.460.0 - ISC
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the ISC license.
|
|
8
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
const N = i(
|
|
11
|
+
({
|
|
12
|
+
color: m = "currentColor",
|
|
13
|
+
size: r = 24,
|
|
14
|
+
strokeWidth: e = 2,
|
|
15
|
+
absoluteStrokeWidth: a,
|
|
16
|
+
className: s = "",
|
|
17
|
+
children: t,
|
|
18
|
+
iconNode: u,
|
|
19
|
+
...f
|
|
20
|
+
}, l) => o(
|
|
21
|
+
"svg",
|
|
22
|
+
{
|
|
23
|
+
ref: l,
|
|
24
|
+
...b,
|
|
25
|
+
width: r,
|
|
26
|
+
height: r,
|
|
27
|
+
stroke: m,
|
|
28
|
+
strokeWidth: a ? Number(e) * 24 / Number(r) : e,
|
|
29
|
+
className: d("lucide", s),
|
|
30
|
+
...f
|
|
31
|
+
},
|
|
32
|
+
[
|
|
33
|
+
...u.map(([p, c]) => o(p, c)),
|
|
34
|
+
...Array.isArray(t) ? t : [t]
|
|
35
|
+
]
|
|
36
|
+
)
|
|
37
|
+
);
|
|
38
|
+
export {
|
|
39
|
+
N as default
|
|
40
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { forwardRef as s, createElement as c } from "react";
|
|
2
|
+
import { mergeClasses as n, toKebabCase as f } from "./shared/src/utils.js";
|
|
3
|
+
import l from "./Icon.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license lucide-react v0.460.0 - ISC
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the ISC license.
|
|
8
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
const u = (e, r) => {
|
|
11
|
+
const o = s(
|
|
12
|
+
({ className: t, ...a }, m) => c(l, {
|
|
13
|
+
ref: m,
|
|
14
|
+
iconNode: r,
|
|
15
|
+
className: n(`lucide-${f(e)}`, t),
|
|
16
|
+
...a
|
|
17
|
+
})
|
|
18
|
+
);
|
|
19
|
+
return o.displayName = `${e}`, o;
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
u as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license lucide-react v0.460.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
var t = {
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
width: 24,
|
|
10
|
+
height: 24,
|
|
11
|
+
viewBox: "0 0 24 24",
|
|
12
|
+
fill: "none",
|
|
13
|
+
stroke: "currentColor",
|
|
14
|
+
strokeWidth: 2,
|
|
15
|
+
strokeLinecap: "round",
|
|
16
|
+
strokeLinejoin: "round"
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
t as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import e from "../createLucideIcon.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.460.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const r = e("ArrowDown", [
|
|
9
|
+
["path", { d: "M12 5v14", key: "s699le" }],
|
|
10
|
+
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
11
|
+
]);
|
|
12
|
+
export {
|
|
13
|
+
r as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import e from "../createLucideIcon.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.460.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const t = e("ArrowUpDown", [
|
|
9
|
+
["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
|
|
10
|
+
["path", { d: "M17 20V4", key: "1ejh1v" }],
|
|
11
|
+
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
12
|
+
["path", { d: "M7 4v16", key: "1glfcx" }]
|
|
13
|
+
]);
|
|
14
|
+
export {
|
|
15
|
+
t as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import r from "../createLucideIcon.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.460.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const o = r("ArrowUp", [
|
|
9
|
+
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
10
|
+
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
11
|
+
]);
|
|
12
|
+
export {
|
|
13
|
+
o as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e from "../createLucideIcon.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.460.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const t = e("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
|
|
9
|
+
export {
|
|
10
|
+
t as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import o from "../createLucideIcon.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.460.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const n = o("ChevronDown", [
|
|
9
|
+
["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
|
|
10
|
+
]);
|
|
11
|
+
export {
|
|
12
|
+
n as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e from "../createLucideIcon.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.460.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const r = e("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
|
|
9
|
+
export {
|
|
10
|
+
r as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import e from "../createLucideIcon.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.460.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const r = e("CircleAlert", [
|
|
9
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
10
|
+
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
11
|
+
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
12
|
+
]);
|
|
13
|
+
export {
|
|
14
|
+
r as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import e from "../createLucideIcon.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.460.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const t = e("EyeOff", [
|
|
9
|
+
[
|
|
10
|
+
"path",
|
|
11
|
+
{
|
|
12
|
+
d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
|
|
13
|
+
key: "ct8e1f"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
["path", { d: "M14.084 14.158a3 3 0 0 1-4.242-4.242", key: "151rxh" }],
|
|
17
|
+
[
|
|
18
|
+
"path",
|
|
19
|
+
{
|
|
20
|
+
d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",
|
|
21
|
+
key: "13bj9a"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
25
|
+
]);
|
|
26
|
+
export {
|
|
27
|
+
t as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import c from "../createLucideIcon.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.460.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const r = c("Eye", [
|
|
9
|
+
[
|
|
10
|
+
"path",
|
|
11
|
+
{
|
|
12
|
+
d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
|
|
13
|
+
key: "1nclc0"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
17
|
+
]);
|
|
18
|
+
export {
|
|
19
|
+
r as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import e from "../createLucideIcon.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.460.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const t = e("LogOut", [
|
|
9
|
+
["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }],
|
|
10
|
+
["polyline", { points: "16 17 21 12 16 7", key: "1gabdz" }],
|
|
11
|
+
["line", { x1: "21", x2: "9", y1: "12", y2: "12", key: "1uyos4" }]
|
|
12
|
+
]);
|
|
13
|
+
export {
|
|
14
|
+
t as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import e from "../createLucideIcon.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.460.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const a = e("X", [
|
|
9
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
10
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
11
|
+
]);
|
|
12
|
+
export {
|
|
13
|
+
a as default
|
|
14
|
+
};
|