@bloodhoundenterprise/doodleui 1.0.0-alpha.5 → 1.0.0-alpha.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/README.md +1 -1
- package/dist/doodleui.js +62 -61
- package/dist/index.d.ts +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://img.shields.io/badge/version-1.0.0--alpha.
|
|
2
|
+
<img src="https://img.shields.io/badge/version-1.0.0--alpha.6-teal" alt="version 1.0.0-alpha.6"/>
|
|
3
3
|
<a href="https://ghst.ly/BHSlack">
|
|
4
4
|
<img src="https://img.shields.io/badge/BloodHound Slack-4A154B?logo=slack&logoColor=EEF0F2"
|
|
5
5
|
alt="BloodHound Slack"></a>
|
package/dist/doodleui.js
CHANGED
|
@@ -382,7 +382,7 @@ function Ar(e) {
|
|
|
382
382
|
const t = l.useContext(ls);
|
|
383
383
|
return e || t || "ltr";
|
|
384
384
|
}
|
|
385
|
-
var he = "Accordion", ds = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [bn, us, fs] = yr(he), [At,
|
|
385
|
+
var he = "Accordion", ds = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [bn, us, fs] = yr(he), [At, Md] = Oe(he, [
|
|
386
386
|
fs,
|
|
387
387
|
wr
|
|
388
388
|
]), yn = wr(), Pr = q.forwardRef(
|
|
@@ -2905,7 +2905,7 @@ const Yr = l.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
2905
2905
|
}
|
|
2906
2906
|
));
|
|
2907
2907
|
Yr.displayName = Br.displayName;
|
|
2908
|
-
const
|
|
2908
|
+
const _d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2909
2909
|
__proto__: null,
|
|
2910
2910
|
Accordion: ra,
|
|
2911
2911
|
AccordionContent: Yr,
|
|
@@ -2984,7 +2984,7 @@ const Hn = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Un =
|
|
|
2984
2984
|
}
|
|
2985
2985
|
]
|
|
2986
2986
|
});
|
|
2987
|
-
function
|
|
2987
|
+
function Ld(e) {
|
|
2988
2988
|
const { className: t, color: n = "secondary", outlined: r = !1, type: o, label: i = "md-circle", ...s } = e, a = jr(n), c = o === "labeled", d = na(
|
|
2989
2989
|
[!r, { backgroundColor: a }],
|
|
2990
2990
|
[!!r, { borderColor: a }],
|
|
@@ -3064,7 +3064,7 @@ const la = Ee("relative leading-[1] z-10 h-8 text-nowrap", {
|
|
|
3064
3064
|
}
|
|
3065
3065
|
]
|
|
3066
3066
|
}
|
|
3067
|
-
),
|
|
3067
|
+
), Dd = (e) => {
|
|
3068
3068
|
const {
|
|
3069
3069
|
label: t,
|
|
3070
3070
|
adornment: n,
|
|
@@ -3089,7 +3089,7 @@ const la = Ee("relative leading-[1] z-10 h-8 text-nowrap", {
|
|
|
3089
3089
|
n ? /* @__PURE__ */ w("div", { className: K(da({ type: o, displayAdornment: i })), children: n }) : null
|
|
3090
3090
|
] });
|
|
3091
3091
|
}, ua = (e) => 2 * Math.PI * e, fa = (e, t, n) => Math.max(t, Math.min(e, n)), Vt = 24, jn = 16, Gn = 32;
|
|
3092
|
-
function
|
|
3092
|
+
function $d(e) {
|
|
3093
3093
|
const { value: t, color: n, hideAnimation: r = !1, ...o } = e, i = fa(t, 0, 100), [s, a] = hr(r ? i : 0);
|
|
3094
3094
|
gr(() => {
|
|
3095
3095
|
a(i);
|
|
@@ -5466,7 +5466,7 @@ var Mo = l.forwardRef(function(e, t) {
|
|
|
5466
5466
|
return l.createElement(Ot, ae({}, e, { ref: t, sideCar: Cl }));
|
|
5467
5467
|
});
|
|
5468
5468
|
Mo.classNames = Ot.classNames;
|
|
5469
|
-
var Sl = [" ", "Enter", "ArrowUp", "ArrowDown"], El = [" ", "Enter"], it = "Select", [It, Mt, Al] = yr(it), [Ge,
|
|
5469
|
+
var Sl = [" ", "Enter", "ArrowUp", "ArrowDown"], El = [" ", "Enter"], it = "Select", [It, Mt, Al] = yr(it), [Ge, Bd] = Oe(it, [
|
|
5470
5470
|
Al,
|
|
5471
5471
|
kt
|
|
5472
5472
|
]), _t = kt(), [Pl, Ae] = Ge(it), [Rl, Tl] = Ge(it), _o = (e) => {
|
|
@@ -6323,7 +6323,7 @@ const vi = gi("ChevronDown", [
|
|
|
6323
6323
|
* This source code is licensed under the ISC license.
|
|
6324
6324
|
* See the LICENSE file in the root directory of this source tree.
|
|
6325
6325
|
*/
|
|
6326
|
-
const Ql = gi("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]), Jl = Wl, ed =
|
|
6326
|
+
const Ql = gi("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]), Jl = Wl, ed = jl, td = Kl, nd = Hl, bi = l.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ re(
|
|
6327
6327
|
ci,
|
|
6328
6328
|
{
|
|
6329
6329
|
ref: r,
|
|
@@ -6359,7 +6359,7 @@ const Ln = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
|
|
|
6359
6359
|
}
|
|
6360
6360
|
));
|
|
6361
6361
|
Ln.displayName = pi.displayName;
|
|
6362
|
-
const yi = l.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */
|
|
6362
|
+
const yi = l.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ re(
|
|
6363
6363
|
li,
|
|
6364
6364
|
{
|
|
6365
6365
|
ref: o,
|
|
@@ -6384,7 +6384,7 @@ const yi = l.forwardRef(({ className: e, children: t, position: n = "popper", ..
|
|
|
6384
6384
|
/* @__PURE__ */ w(Ln, {})
|
|
6385
6385
|
]
|
|
6386
6386
|
}
|
|
6387
|
-
)
|
|
6387
|
+
));
|
|
6388
6388
|
yi.displayName = li.displayName;
|
|
6389
6389
|
const wi = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(di, { ref: n, className: K("py-1.5 pl-8 pr-2 font-semibold", e), ...t }));
|
|
6390
6390
|
wi.displayName = di.displayName;
|
|
@@ -6403,20 +6403,21 @@ const xi = l.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
6403
6403
|
xi.displayName = ui.displayName;
|
|
6404
6404
|
const Ci = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(mi, { ref: n, className: K("-mx-1 my-1 h-px bg-neutral-light-3", e), ...t }));
|
|
6405
6405
|
Ci.displayName = mi.displayName;
|
|
6406
|
-
const
|
|
6406
|
+
const Vd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6407
6407
|
__proto__: null,
|
|
6408
6408
|
Select: Jl,
|
|
6409
6409
|
SelectContent: yi,
|
|
6410
|
-
SelectGroup:
|
|
6410
|
+
SelectGroup: td,
|
|
6411
6411
|
SelectItem: xi,
|
|
6412
6412
|
SelectLabel: wi,
|
|
6413
|
+
SelectPortal: ed,
|
|
6413
6414
|
SelectScrollDownButton: Ln,
|
|
6414
6415
|
SelectScrollUpButton: _n,
|
|
6415
6416
|
SelectSeparator: Ci,
|
|
6416
6417
|
SelectTrigger: bi,
|
|
6417
|
-
SelectValue:
|
|
6418
|
+
SelectValue: nd
|
|
6418
6419
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6419
|
-
var Dn = "Switch", [
|
|
6420
|
+
var Dn = "Switch", [rd, zd] = Oe(Dn), [od, id] = rd(Dn), Si = l.forwardRef(
|
|
6420
6421
|
(e, t) => {
|
|
6421
6422
|
const {
|
|
6422
6423
|
__scopeSwitch: n,
|
|
@@ -6433,7 +6434,7 @@ var Dn = "Switch", [nd, Vd] = Oe(Dn), [rd, od] = nd(Dn), Si = l.forwardRef(
|
|
|
6433
6434
|
defaultProp: i,
|
|
6434
6435
|
onChange: d
|
|
6435
6436
|
});
|
|
6436
|
-
return /* @__PURE__ */ re(
|
|
6437
|
+
return /* @__PURE__ */ re(od, { scope: n, checked: h, disabled: a, children: [
|
|
6437
6438
|
/* @__PURE__ */ w(
|
|
6438
6439
|
F.button,
|
|
6439
6440
|
{
|
|
@@ -6453,7 +6454,7 @@ var Dn = "Switch", [nd, Vd] = Oe(Dn), [rd, od] = nd(Dn), Si = l.forwardRef(
|
|
|
6453
6454
|
}
|
|
6454
6455
|
),
|
|
6455
6456
|
f && /* @__PURE__ */ w(
|
|
6456
|
-
|
|
6457
|
+
sd,
|
|
6457
6458
|
{
|
|
6458
6459
|
control: p,
|
|
6459
6460
|
bubbles: !g.current,
|
|
@@ -6471,7 +6472,7 @@ var Dn = "Switch", [nd, Vd] = Oe(Dn), [rd, od] = nd(Dn), Si = l.forwardRef(
|
|
|
6471
6472
|
Si.displayName = Dn;
|
|
6472
6473
|
var Ei = "SwitchThumb", Ai = l.forwardRef(
|
|
6473
6474
|
(e, t) => {
|
|
6474
|
-
const { __scopeSwitch: n, ...r } = e, o =
|
|
6475
|
+
const { __scopeSwitch: n, ...r } = e, o = id(Ei, n);
|
|
6475
6476
|
return /* @__PURE__ */ w(
|
|
6476
6477
|
F.span,
|
|
6477
6478
|
{
|
|
@@ -6484,7 +6485,7 @@ var Ei = "SwitchThumb", Ai = l.forwardRef(
|
|
|
6484
6485
|
}
|
|
6485
6486
|
);
|
|
6486
6487
|
Ai.displayName = Ei;
|
|
6487
|
-
var
|
|
6488
|
+
var sd = (e) => {
|
|
6488
6489
|
const { control: t, checked: n, bubbles: r = !0, ...o } = e, i = l.useRef(null), s = Eo(n), a = lo(t);
|
|
6489
6490
|
return l.useEffect(() => {
|
|
6490
6491
|
const c = i.current, d = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(d, "checked").set;
|
|
@@ -6515,10 +6516,10 @@ var id = (e) => {
|
|
|
6515
6516
|
function Pi(e) {
|
|
6516
6517
|
return e ? "checked" : "unchecked";
|
|
6517
6518
|
}
|
|
6518
|
-
var
|
|
6519
|
+
var ad = Si, cd = Ai;
|
|
6519
6520
|
const Ri = {
|
|
6520
6521
|
size: "medium"
|
|
6521
|
-
},
|
|
6522
|
+
}, ld = Ee(
|
|
6522
6523
|
"flex items-center group rounded-3xl transition-all ease-in-out bg-neutral-dark-5 dark:bg-neutral-light-5 disabled:bg-neutral-light-5 disabled:opacity-50 data-[state=checked]:bg-primary dark:data-[state=checked]:bg-primary disabled:cursor-not-allowed focus-visible:outline-none",
|
|
6523
6524
|
{
|
|
6524
6525
|
variants: {
|
|
@@ -6530,7 +6531,7 @@ const Ri = {
|
|
|
6530
6531
|
},
|
|
6531
6532
|
defaultVariants: Ri
|
|
6532
6533
|
}
|
|
6533
|
-
),
|
|
6534
|
+
), dd = Ee(
|
|
6534
6535
|
"transition-all ease-in-out rounded-full bg-neutral-light-2 ring-primary shadow-outer-1 hover:ring-2 group-disabled:hover:ring-0 group-focus:ring-2 group-focus-visible:ring-2 data-[state=checked]:shadow-outer-2 data-[state=checked]:ring-1 data-[state=checked]:hover:ring-2",
|
|
6535
6536
|
{
|
|
6536
6537
|
variants: {
|
|
@@ -6590,7 +6591,7 @@ const Ri = {
|
|
|
6590
6591
|
className: "ml-4"
|
|
6591
6592
|
}
|
|
6592
6593
|
]
|
|
6593
|
-
}),
|
|
6594
|
+
}), Fd = pn(({ className: e, size: t, label: n, labelPosition: r, ...o }, i) => {
|
|
6594
6595
|
const s = n || "switch";
|
|
6595
6596
|
return /* @__PURE__ */ re("div", { className: K("flex items-center"), children: [
|
|
6596
6597
|
r && r === "left" && /* @__PURE__ */ w(
|
|
@@ -6603,14 +6604,14 @@ const Ri = {
|
|
|
6603
6604
|
}
|
|
6604
6605
|
),
|
|
6605
6606
|
/* @__PURE__ */ w(
|
|
6606
|
-
|
|
6607
|
+
ad,
|
|
6607
6608
|
{
|
|
6608
|
-
className: K(
|
|
6609
|
+
className: K(ld({ size: t }), e),
|
|
6609
6610
|
"aria-label": s,
|
|
6610
6611
|
id: s,
|
|
6611
6612
|
...o,
|
|
6612
6613
|
ref: i,
|
|
6613
|
-
children: /* @__PURE__ */ w(
|
|
6614
|
+
children: /* @__PURE__ */ w(cd, { className: K(dd({ size: t })) })
|
|
6614
6615
|
}
|
|
6615
6616
|
),
|
|
6616
6617
|
r !== "left" && /* @__PURE__ */ w(
|
|
@@ -6624,12 +6625,12 @@ const Ri = {
|
|
|
6624
6625
|
)
|
|
6625
6626
|
] });
|
|
6626
6627
|
});
|
|
6627
|
-
var [Lt,
|
|
6628
|
+
var [Lt, Wd] = Oe("Tooltip", [
|
|
6628
6629
|
kt
|
|
6629
|
-
]), Dt = kt(), Ti = "TooltipProvider",
|
|
6630
|
+
]), Dt = kt(), Ti = "TooltipProvider", ud = 700, un = "tooltip.open", [fd, $n] = Lt(Ti), Ni = (e) => {
|
|
6630
6631
|
const {
|
|
6631
6632
|
__scopeTooltip: t,
|
|
6632
|
-
delayDuration: n =
|
|
6633
|
+
delayDuration: n = ud,
|
|
6633
6634
|
skipDelayDuration: r = 300,
|
|
6634
6635
|
disableHoverableContent: o = !1,
|
|
6635
6636
|
children: i
|
|
@@ -6638,7 +6639,7 @@ var [Lt, Fd] = Oe("Tooltip", [
|
|
|
6638
6639
|
const u = d.current;
|
|
6639
6640
|
return () => window.clearTimeout(u);
|
|
6640
6641
|
}, []), /* @__PURE__ */ w(
|
|
6641
|
-
|
|
6642
|
+
fd,
|
|
6642
6643
|
{
|
|
6643
6644
|
scope: t,
|
|
6644
6645
|
isOpenDelayed: s,
|
|
@@ -6662,7 +6663,7 @@ var [Lt, Fd] = Oe("Tooltip", [
|
|
|
6662
6663
|
);
|
|
6663
6664
|
};
|
|
6664
6665
|
Ni.displayName = Ti;
|
|
6665
|
-
var $t = "Tooltip", [
|
|
6666
|
+
var $t = "Tooltip", [pd, st] = Lt($t), ki = (e) => {
|
|
6666
6667
|
const {
|
|
6667
6668
|
__scopeTooltip: t,
|
|
6668
6669
|
children: n,
|
|
@@ -6687,7 +6688,7 @@ var $t = "Tooltip", [fd, st] = Lt($t), ki = (e) => {
|
|
|
6687
6688
|
}, f);
|
|
6688
6689
|
}, [f, b]);
|
|
6689
6690
|
return l.useEffect(() => () => window.clearTimeout(m.current), []), /* @__PURE__ */ w(wo, { ...d, children: /* @__PURE__ */ w(
|
|
6690
|
-
|
|
6691
|
+
pd,
|
|
6691
6692
|
{
|
|
6692
6693
|
scope: t,
|
|
6693
6694
|
contentId: v,
|
|
@@ -6738,24 +6739,24 @@ var fn = "TooltipTrigger", Oi = l.forwardRef(
|
|
|
6738
6739
|
}
|
|
6739
6740
|
);
|
|
6740
6741
|
Oi.displayName = fn;
|
|
6741
|
-
var Bn = "TooltipPortal", [
|
|
6742
|
+
var Bn = "TooltipPortal", [md, hd] = Lt(Bn, {
|
|
6742
6743
|
forceMount: void 0
|
|
6743
6744
|
}), Ii = (e) => {
|
|
6744
6745
|
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, i = st(Bn, t);
|
|
6745
|
-
return /* @__PURE__ */ w(
|
|
6746
|
+
return /* @__PURE__ */ w(md, { scope: t, forceMount: n, children: /* @__PURE__ */ w(Et, { present: n || i.open, children: /* @__PURE__ */ w(On, { asChild: !0, container: o, children: r }) }) });
|
|
6746
6747
|
};
|
|
6747
6748
|
Ii.displayName = Bn;
|
|
6748
6749
|
var Fe = "TooltipContent", Mi = l.forwardRef(
|
|
6749
6750
|
(e, t) => {
|
|
6750
|
-
const n =
|
|
6751
|
-
return /* @__PURE__ */ w(Et, { present: r || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ w(_i, { side: o, ...i, ref: t }) : /* @__PURE__ */ w(
|
|
6751
|
+
const n = hd(Fe, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...i } = e, s = st(Fe, e.__scopeTooltip);
|
|
6752
|
+
return /* @__PURE__ */ w(Et, { present: r || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ w(_i, { side: o, ...i, ref: t }) : /* @__PURE__ */ w(gd, { side: o, ...i, ref: t }) });
|
|
6752
6753
|
}
|
|
6753
|
-
),
|
|
6754
|
+
), gd = l.forwardRef((e, t) => {
|
|
6754
6755
|
const n = st(Fe, e.__scopeTooltip), r = $n(Fe, e.__scopeTooltip), o = l.useRef(null), i = Y(t, o), [s, a] = l.useState(null), { trigger: c, onClose: d } = n, u = o.current, { onPointerInTransitChange: p } = r, v = l.useCallback(() => {
|
|
6755
6756
|
a(null), p(!1);
|
|
6756
6757
|
}, [p]), m = l.useCallback(
|
|
6757
6758
|
(g, f) => {
|
|
6758
|
-
const h = g.currentTarget, y = { x: g.clientX, y: g.clientY }, b =
|
|
6759
|
+
const h = g.currentTarget, y = { x: g.clientX, y: g.clientY }, b = wd(y, h.getBoundingClientRect()), x = xd(y, b), C = Cd(f.getBoundingClientRect()), S = Ed([...x, ...C]);
|
|
6759
6760
|
a(S), p(!0);
|
|
6760
6761
|
},
|
|
6761
6762
|
[p]
|
|
@@ -6770,13 +6771,13 @@ var Fe = "TooltipContent", Mi = l.forwardRef(
|
|
|
6770
6771
|
}, [c, u, m, v]), l.useEffect(() => {
|
|
6771
6772
|
if (s) {
|
|
6772
6773
|
const g = (f) => {
|
|
6773
|
-
const h = f.target, y = { x: f.clientX, y: f.clientY }, b = (c == null ? void 0 : c.contains(h)) || (u == null ? void 0 : u.contains(h)), x = !
|
|
6774
|
+
const h = f.target, y = { x: f.clientX, y: f.clientY }, b = (c == null ? void 0 : c.contains(h)) || (u == null ? void 0 : u.contains(h)), x = !Sd(y, s);
|
|
6774
6775
|
b ? v() : x && (v(), d());
|
|
6775
6776
|
};
|
|
6776
6777
|
return document.addEventListener("pointermove", g), () => document.removeEventListener("pointermove", g);
|
|
6777
6778
|
}
|
|
6778
6779
|
}, [c, u, s, d, v]), /* @__PURE__ */ w(_i, { ...e, ref: i });
|
|
6779
|
-
}), [
|
|
6780
|
+
}), [vd, bd] = Lt($t, { isInside: !1 }), _i = l.forwardRef(
|
|
6780
6781
|
(e, t) => {
|
|
6781
6782
|
const {
|
|
6782
6783
|
__scopeTooltip: n,
|
|
@@ -6820,7 +6821,7 @@ var Fe = "TooltipContent", Mi = l.forwardRef(
|
|
|
6820
6821
|
},
|
|
6821
6822
|
children: [
|
|
6822
6823
|
/* @__PURE__ */ w(br, { children: r }),
|
|
6823
|
-
/* @__PURE__ */ w(
|
|
6824
|
+
/* @__PURE__ */ w(vd, { scope: n, isInside: !0, children: /* @__PURE__ */ w(Dc, { id: c.contentId, role: "tooltip", children: o || r }) })
|
|
6824
6825
|
]
|
|
6825
6826
|
}
|
|
6826
6827
|
)
|
|
@@ -6829,17 +6830,17 @@ var Fe = "TooltipContent", Mi = l.forwardRef(
|
|
|
6829
6830
|
}
|
|
6830
6831
|
);
|
|
6831
6832
|
Mi.displayName = Fe;
|
|
6832
|
-
var Li = "TooltipArrow",
|
|
6833
|
+
var Li = "TooltipArrow", yd = l.forwardRef(
|
|
6833
6834
|
(e, t) => {
|
|
6834
6835
|
const { __scopeTooltip: n, ...r } = e, o = Dt(n);
|
|
6835
|
-
return
|
|
6836
|
+
return bd(
|
|
6836
6837
|
Li,
|
|
6837
6838
|
n
|
|
6838
6839
|
).isInside ? null : /* @__PURE__ */ w(So, { ...o, ...r, ref: t });
|
|
6839
6840
|
}
|
|
6840
6841
|
);
|
|
6841
|
-
|
|
6842
|
-
function
|
|
6842
|
+
yd.displayName = Li;
|
|
6843
|
+
function wd(e, t) {
|
|
6843
6844
|
const n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), i = Math.abs(t.left - e.x);
|
|
6844
6845
|
switch (Math.min(n, r, o, i)) {
|
|
6845
6846
|
case i:
|
|
@@ -6854,7 +6855,7 @@ function yd(e, t) {
|
|
|
6854
6855
|
throw new Error("unreachable");
|
|
6855
6856
|
}
|
|
6856
6857
|
}
|
|
6857
|
-
function
|
|
6858
|
+
function xd(e, t, n = 5) {
|
|
6858
6859
|
const r = [];
|
|
6859
6860
|
switch (t) {
|
|
6860
6861
|
case "top":
|
|
@@ -6884,7 +6885,7 @@ function wd(e, t, n = 5) {
|
|
|
6884
6885
|
}
|
|
6885
6886
|
return r;
|
|
6886
6887
|
}
|
|
6887
|
-
function
|
|
6888
|
+
function Cd(e) {
|
|
6888
6889
|
const { top: t, right: n, bottom: r, left: o } = e;
|
|
6889
6890
|
return [
|
|
6890
6891
|
{ x: o, y: t },
|
|
@@ -6893,7 +6894,7 @@ function xd(e) {
|
|
|
6893
6894
|
{ x: o, y: r }
|
|
6894
6895
|
];
|
|
6895
6896
|
}
|
|
6896
|
-
function
|
|
6897
|
+
function Sd(e, t) {
|
|
6897
6898
|
const { x: n, y: r } = e;
|
|
6898
6899
|
let o = !1;
|
|
6899
6900
|
for (let i = 0, s = t.length - 1; i < t.length; s = i++) {
|
|
@@ -6902,11 +6903,11 @@ function Cd(e, t) {
|
|
|
6902
6903
|
}
|
|
6903
6904
|
return o;
|
|
6904
6905
|
}
|
|
6905
|
-
function
|
|
6906
|
+
function Ed(e) {
|
|
6906
6907
|
const t = e.slice();
|
|
6907
|
-
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0),
|
|
6908
|
+
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0), Ad(t);
|
|
6908
6909
|
}
|
|
6909
|
-
function
|
|
6910
|
+
function Ad(e) {
|
|
6910
6911
|
if (e.length <= 1) return e.slice();
|
|
6911
6912
|
const t = [];
|
|
6912
6913
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -6931,8 +6932,8 @@ function Ed(e) {
|
|
|
6931
6932
|
}
|
|
6932
6933
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
6933
6934
|
}
|
|
6934
|
-
var
|
|
6935
|
-
const Bi =
|
|
6935
|
+
var Pd = Ni, Rd = ki, Di = Oi, Td = Ii, $i = Mi;
|
|
6936
|
+
const Bi = Pd, Vi = Rd, zi = Td, Vn = l.forwardRef(
|
|
6936
6937
|
(e, t) => {
|
|
6937
6938
|
const { className: n, ...r } = e, o = !!e.children;
|
|
6938
6939
|
return /* @__PURE__ */ w(Di, { ref: t, className: K(n), asChild: o, ...r, children: o ? e.children : /* @__PURE__ */ re(
|
|
@@ -6984,7 +6985,7 @@ const zn = l.forwardRef(
|
|
|
6984
6985
|
)
|
|
6985
6986
|
);
|
|
6986
6987
|
zn.displayName = $i.displayName;
|
|
6987
|
-
const
|
|
6988
|
+
const Nd = (e) => {
|
|
6988
6989
|
const {
|
|
6989
6990
|
tooltip: t,
|
|
6990
6991
|
open: n,
|
|
@@ -7010,9 +7011,9 @@ const Td = (e) => {
|
|
|
7010
7011
|
]
|
|
7011
7012
|
}
|
|
7012
7013
|
) });
|
|
7013
|
-
},
|
|
7014
|
+
}, Hd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7014
7015
|
__proto__: null,
|
|
7015
|
-
Tooltip:
|
|
7016
|
+
Tooltip: Nd,
|
|
7016
7017
|
TooltipContent: zn,
|
|
7017
7018
|
TooltipPortal: zi,
|
|
7018
7019
|
TooltipProvider: Bi,
|
|
@@ -7020,12 +7021,12 @@ const Td = (e) => {
|
|
|
7020
7021
|
TooltipTrigger: Vn
|
|
7021
7022
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7022
7023
|
export {
|
|
7023
|
-
|
|
7024
|
-
|
|
7024
|
+
_d as AccordionPrimitive,
|
|
7025
|
+
Ld as Badge,
|
|
7025
7026
|
ca as Button,
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7027
|
+
Dd as ComboBadge,
|
|
7028
|
+
$d as RadialGauge,
|
|
7029
|
+
Vd as SelectPrimitive,
|
|
7030
|
+
Fd as Switch,
|
|
7031
|
+
Hd as TooltipPrimitive
|
|
7031
7032
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -93,9 +93,12 @@ declare const SelectItem: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive
|
|
|
93
93
|
|
|
94
94
|
declare const SelectLabel: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive_2.SelectLabelProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
95
95
|
|
|
96
|
+
declare const SelectPortal: React_2.FC<SelectPrimitive_2.SelectPortalProps>;
|
|
97
|
+
|
|
96
98
|
declare namespace SelectPrimitive {
|
|
97
99
|
export {
|
|
98
100
|
Select,
|
|
101
|
+
SelectPortal,
|
|
99
102
|
SelectGroup,
|
|
100
103
|
SelectValue,
|
|
101
104
|
SelectTrigger,
|