@mesh.ai/rabbit 0.0.68 → 1.0.1
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/@mesh.ai/rabbit.es.js +55 -32
- package/dist/@mesh.ai/rabbit.umd.js +3 -3
- package/dist/index.d.ts +2 -1
- package/dist/style.css +1 -1
- package/package.json +3 -1
|
@@ -3812,7 +3812,7 @@ const rx = Up, ox = tt(
|
|
|
3812
3812
|
asChild: a = !1,
|
|
3813
3813
|
children: s,
|
|
3814
3814
|
...c
|
|
3815
|
-
}, l) => /* @__PURE__ */ $("div", { className: "rabbit-ds", children: /* @__PURE__ */ re(a ? mn : "button", { className: $e(ox({ variant: t, className: e, size: i, status: o })), ref: l, ...c, children: [
|
|
3815
|
+
}, l) => /* @__PURE__ */ $("div", { className: "rabbit-ds", children: /* @__PURE__ */ re(a ? mn : "button", { "data-deer-btn": !0, className: $e(ox({ variant: t, className: e, size: i, status: o })), ref: l, ...c, children: [
|
|
3816
3816
|
n ? /* @__PURE__ */ $("div", { className: $e(Nd({ size: i })), children: n }) : null,
|
|
3817
3817
|
s,
|
|
3818
3818
|
r ? /* @__PURE__ */ $("div", { className: $e(Nd({ size: i })), children: r }) : null
|
|
@@ -6965,7 +6965,7 @@ const t0 = X(({ className: e, ...t }, n) => /* @__PURE__ */ $(
|
|
|
6965
6965
|
{
|
|
6966
6966
|
ref: n,
|
|
6967
6967
|
className: $e(
|
|
6968
|
-
"rabbit-ds z-[1510] relative min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex flex-col justify-start items-start gap-1 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
6968
|
+
"rabbit-ds z-[1510] relative min-w-[8rem] max-w-xs p-1 bg-white rounded-lg !shadow flex flex-col justify-start items-start gap-1 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
6969
6969
|
e
|
|
6970
6970
|
),
|
|
6971
6971
|
...t
|
|
@@ -6978,7 +6978,7 @@ const Bl = X(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ $
|
|
|
6978
6978
|
ref: r,
|
|
6979
6979
|
sideOffset: t,
|
|
6980
6980
|
className: $e(
|
|
6981
|
-
"z-[1500] relative min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex flex-col justify-start items-start gap-1 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
6981
|
+
"z-[1500] relative min-w-[8rem] max-w-xs p-1 bg-white rounded-lg !shadow flex flex-col justify-start items-start gap-1 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
6982
6982
|
e
|
|
6983
6983
|
),
|
|
6984
6984
|
...n
|
|
@@ -8416,19 +8416,29 @@ const ZS = tt(
|
|
|
8416
8416
|
variant: "default"
|
|
8417
8417
|
}
|
|
8418
8418
|
}), JS = X(
|
|
8419
|
-
({ className: e, variant: t, badgeText: n, icon: r, iconSize: o, asChild: i = !1, isActive: a = !1, children: s, ...c }, l) => /* @__PURE__ */ $("div", { className: "rabbit-ds", children: /* @__PURE__ */ re(
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8419
|
+
({ className: e, variant: t, badgeText: n, icon: r, iconSize: o, asChild: i = !1, isActive: a = !1, children: s, ...c }, l) => /* @__PURE__ */ $("div", { className: "rabbit-ds", children: /* @__PURE__ */ re(
|
|
8420
|
+
i ? mn : "button",
|
|
8421
|
+
{
|
|
8422
|
+
"data-deer-btn": !0,
|
|
8423
|
+
className: $e(ZS({ variant: t, className: e })),
|
|
8424
|
+
ref: l,
|
|
8425
|
+
"data-active": a,
|
|
8426
|
+
...c,
|
|
8427
|
+
children: [
|
|
8428
|
+
/* @__PURE__ */ re("div", { className: "flex flex-col items-center", children: [
|
|
8429
|
+
/* @__PURE__ */ re("div", { className: "relative flex items-center justify-center", children: [
|
|
8430
|
+
/* @__PURE__ */ $(oo, { IconSVG: r }),
|
|
8431
|
+
t === "withNotification" && /* @__PURE__ */ re("div", { className: "bg-functional-warn flex items-center justify-center h-5 w-6 text-xs rounded-xl absolute left-3 text-white px-2", children: [
|
|
8432
|
+
/* @__PURE__ */ $("span", { className: "sr-only", children: "Notification" }),
|
|
8433
|
+
n
|
|
8434
|
+
] })
|
|
8435
|
+
] }),
|
|
8436
|
+
/* @__PURE__ */ $("div", { className: $e(QS({ variant: t === "gradient" ? t : "default" })), children: s })
|
|
8437
|
+
] }),
|
|
8438
|
+
t === "withMenu" && /* @__PURE__ */ $("div", { className: "flex items-center justify-center absolute right-0 w-3 h-14", children: /* @__PURE__ */ $(Iy, { height: "14px", width: "14px" }) })
|
|
8439
|
+
]
|
|
8440
|
+
}
|
|
8441
|
+
) })
|
|
8432
8442
|
);
|
|
8433
8443
|
JS.displayName = "NavButton";
|
|
8434
8444
|
const w0 = en({}), e3 = () => qe(w0);
|
|
@@ -8437,6 +8447,7 @@ function t3({ isActive: e, isDisabled: t, className: n, children: r, ...o }) {
|
|
|
8437
8447
|
return /* @__PURE__ */ $(w0.Provider, { value: i, children: /* @__PURE__ */ $("div", { className: "rabbit-ds", children: /* @__PURE__ */ $(
|
|
8438
8448
|
"button",
|
|
8439
8449
|
{
|
|
8450
|
+
"data-deer-btn": !0,
|
|
8440
8451
|
className: $e(
|
|
8441
8452
|
"flex items-center px-3 py-1 gap-2 text-dark-medium w-full cursor-pointer rounded-lg",
|
|
8442
8453
|
"hover:text-card-text-hover",
|
|
@@ -10045,14 +10056,15 @@ function z0({
|
|
|
10045
10056
|
showTime: r = !1,
|
|
10046
10057
|
dateFormat: o = "MMM dd, yyyy",
|
|
10047
10058
|
timeFormat: i = "HH:mm",
|
|
10048
|
-
highlightDate: a = n
|
|
10059
|
+
highlightDate: a = n,
|
|
10060
|
+
className: s
|
|
10049
10061
|
}) {
|
|
10050
|
-
const
|
|
10051
|
-
let
|
|
10052
|
-
return n ? (
|
|
10062
|
+
const c = /* @__PURE__ */ new Date(), l = R3(e, c) || UC(e, c);
|
|
10063
|
+
let d = "";
|
|
10064
|
+
return n ? (d = HC(e, {
|
|
10053
10065
|
addSuffix: !0
|
|
10054
|
-
}),
|
|
10055
|
-
|
|
10066
|
+
}), d = db(d)) : d = Ts(e, o), /* @__PURE__ */ $("div", { className: "rabbit-ds", children: /* @__PURE__ */ re("span", { className: $e("text-sm", a && (l ? "text-functional-warn font-semibold" : ""), s), children: [
|
|
10067
|
+
d,
|
|
10056
10068
|
r && " • ",
|
|
10057
10069
|
r && Ts(e, i),
|
|
10058
10070
|
r && t && ` - ${Ts(I3(e, t), i)}`
|
|
@@ -19948,6 +19960,7 @@ function W_({
|
|
|
19948
19960
|
return /* @__PURE__ */ $(Dk, { asChild: !0, value: e, ...a, children: /* @__PURE__ */ $(
|
|
19949
19961
|
"button",
|
|
19950
19962
|
{
|
|
19963
|
+
"data-deer-btn": !0,
|
|
19951
19964
|
type: "button",
|
|
19952
19965
|
className: $e(
|
|
19953
19966
|
"rabbit-ds h-7 flex-col w-auto p-0 border border-solid rounded-full justify-center items-center inline-flex hover:cursor-pointer focus:outline-1 focus:outline-offset-2",
|
|
@@ -20248,6 +20261,7 @@ function Xk({ className: e, isCollapsed: t, ...n }) {
|
|
|
20248
20261
|
return /* @__PURE__ */ $(
|
|
20249
20262
|
"button",
|
|
20250
20263
|
{
|
|
20264
|
+
"data-deer-btn": !0,
|
|
20251
20265
|
type: "button",
|
|
20252
20266
|
className: $e(
|
|
20253
20267
|
Kk({ variant: t ? "collapsed" : "default" }),
|
|
@@ -20315,7 +20329,7 @@ function G_({ children: e }) {
|
|
|
20315
20329
|
function Y_({ children: e, ...t }) {
|
|
20316
20330
|
return /* @__PURE__ */ $(t3, { ...t, children: e });
|
|
20317
20331
|
}
|
|
20318
|
-
const Qk = tt("", {
|
|
20332
|
+
const Qk = tt("shrink-0", {
|
|
20319
20333
|
variants: {
|
|
20320
20334
|
orientation: {
|
|
20321
20335
|
horizontal: "ml-2",
|
|
@@ -20327,7 +20341,7 @@ const Qk = tt("", {
|
|
|
20327
20341
|
}
|
|
20328
20342
|
});
|
|
20329
20343
|
function q_({ className: e, orientation: t, ...n }) {
|
|
20330
|
-
return /* @__PURE__ */ $("div", { className: Qk({ orientation: t }), children: /* @__PURE__ */ $(tn, { className: e, ...n }) });
|
|
20344
|
+
return /* @__PURE__ */ $("div", { className: Qk({ orientation: t }), children: /* @__PURE__ */ $(tn, { className: e, variant: "outline", ...n }) });
|
|
20331
20345
|
}
|
|
20332
20346
|
const Jk = {
|
|
20333
20347
|
ON_TRACK: {
|
|
@@ -20354,8 +20368,8 @@ const Jk = {
|
|
|
20354
20368
|
function K_({ title: e, achieved: t, status: n }) {
|
|
20355
20369
|
const r = eN[n];
|
|
20356
20370
|
return /* @__PURE__ */ $("div", { className: "rabbit-ds mr-auto", children: /* @__PURE__ */ re("div", { className: "flex flex-col p-2 gap-1", children: [
|
|
20357
|
-
/* @__PURE__ */ $("div", { className: "text-sm font-semibold", children: e }),
|
|
20358
|
-
/* @__PURE__ */ re("div", { className: "flex items-end gap-
|
|
20371
|
+
/* @__PURE__ */ $("div", { className: "text-sm font-semibold mt-1", children: e }),
|
|
20372
|
+
/* @__PURE__ */ re("div", { className: "flex items-end gap-[18px] mt-[14px]", children: [
|
|
20359
20373
|
/* @__PURE__ */ re("div", { className: "flex flex-col", children: [
|
|
20360
20374
|
/* @__PURE__ */ $("span", { className: "text-xs text-dark-medium", children: "Achieved" }),
|
|
20361
20375
|
/* @__PURE__ */ re("span", { className: $e(r.colorScheme, "font-semibold text-2xl !bg-transparent"), children: [
|
|
@@ -20379,8 +20393,8 @@ function X_({
|
|
|
20379
20393
|
/* @__PURE__ */ re("div", { className: "flex flex-col items-start text-sm", children: [
|
|
20380
20394
|
/* @__PURE__ */ $("span", { className: "font-semibold", children: e }),
|
|
20381
20395
|
/* @__PURE__ */ $(Xl, { className: "mt-0.5", variant: "outlined", children: r }),
|
|
20382
|
-
/* @__PURE__ */ $("span", { className: "text-dark-medium mt-
|
|
20383
|
-
/* @__PURE__ */ re("span", { className: "text-dark-medium
|
|
20396
|
+
/* @__PURE__ */ $("span", { className: "text-dark-medium mt-1.5", children: n }),
|
|
20397
|
+
/* @__PURE__ */ re("span", { className: "text-dark-medium", children: [
|
|
20384
20398
|
"Due by ",
|
|
20385
20399
|
o
|
|
20386
20400
|
] })
|
|
@@ -20406,8 +20420,8 @@ function Q_({
|
|
|
20406
20420
|
/* @__PURE__ */ $(io, { size: "xl", children: /* @__PURE__ */ $(ao, { src: t, alt: "Avatar" }) }),
|
|
20407
20421
|
/* @__PURE__ */ re("div", { className: "flex flex-col items-start text-sm w-full", children: [
|
|
20408
20422
|
/* @__PURE__ */ $("span", { className: "font-semibold", children: e }),
|
|
20409
|
-
/* @__PURE__ */ $(Xl, {
|
|
20410
|
-
/* @__PURE__ */ $("span", { className: "text-dark-medium mt-
|
|
20423
|
+
/* @__PURE__ */ $(Xl, { variant: "outlined", children: n }),
|
|
20424
|
+
/* @__PURE__ */ $("span", { className: "text-dark-medium mt-1 w-full overflow-hidden whitespace-nowrap text-ellipsis", children: r })
|
|
20411
20425
|
] })
|
|
20412
20426
|
] }) });
|
|
20413
20427
|
}
|
|
@@ -20454,7 +20468,7 @@ function eD({ nudgeCardList: e, title: t, imgSrc: n, description: r, pageSize: o
|
|
|
20454
20468
|
] }),
|
|
20455
20469
|
/* @__PURE__ */ re("div", { className: "flex items-center gap-4 mt-1", children: [
|
|
20456
20470
|
/* @__PURE__ */ $(io, { className: "h-24 w-24", children: /* @__PURE__ */ $(ao, { src: n, alt: t }) }),
|
|
20457
|
-
/* @__PURE__ */ $("span", { children: r })
|
|
20471
|
+
/* @__PURE__ */ $("span", { className: "text-base", children: r })
|
|
20458
20472
|
] }),
|
|
20459
20473
|
c,
|
|
20460
20474
|
l && /* @__PURE__ */ $("div", { className: "mx-auto", children: /* @__PURE__ */ re(
|
|
@@ -20504,7 +20518,16 @@ function nD({
|
|
|
20504
20518
|
/* @__PURE__ */ $(io, { size: "xl", children: /* @__PURE__ */ $(ao, { src: t, alt: e }) }),
|
|
20505
20519
|
/* @__PURE__ */ re("div", { className: "flex flex-col gap-1 items-center", children: [
|
|
20506
20520
|
/* @__PURE__ */ $("span", { className: "font-semibold", children: e }),
|
|
20507
|
-
/* @__PURE__ */ $(
|
|
20521
|
+
/* @__PURE__ */ $(
|
|
20522
|
+
z0,
|
|
20523
|
+
{
|
|
20524
|
+
date: n,
|
|
20525
|
+
duration: r,
|
|
20526
|
+
timeFormat: "HH:mm a",
|
|
20527
|
+
showTime: !0,
|
|
20528
|
+
className: "text-dark-medium"
|
|
20529
|
+
}
|
|
20530
|
+
)
|
|
20508
20531
|
] })
|
|
20509
20532
|
] }) });
|
|
20510
20533
|
}
|