@devalok/shilp-sutra 0.18.0 → 0.18.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/_chunks/motion-provider.js +24 -0
- package/dist/_chunks/primitives.js +101 -101
- package/dist/_chunks/tree-view.js +12 -12
- package/dist/_chunks/use-calendar.js +1 -1
- package/dist/_chunks/vendor-utils.js +2 -2
- package/dist/composed/activity-feed.js +21 -21
- package/dist/composed/avatar-group.js +25 -25
- package/dist/composed/command-palette.js +3 -3
- package/dist/composed/confirm-dialog.js +1 -1
- package/dist/composed/content-card.js +1 -1
- package/dist/composed/empty-state.js +2 -2
- package/dist/composed/error-boundary.js +2 -2
- package/dist/composed/global-loading.js +10 -10
- package/dist/composed/lib/string-utils.d.ts +0 -1
- package/dist/composed/lib/string-utils.js +0 -1
- package/dist/composed/loading-skeleton.js +1 -1
- package/dist/composed/member-picker.js +6 -6
- package/dist/composed/page-header.js +1 -1
- package/dist/composed/page-skeletons.js +1 -1
- package/dist/composed/priority-indicator.js +6 -6
- package/dist/composed/rich-text-editor.js +1 -1
- package/dist/composed/schedule-view.js +15 -15
- package/dist/composed/simple-tooltip.js +8 -8
- package/dist/composed/status-badge.js +12 -12
- package/dist/motion/index.d.ts +1 -1
- package/dist/motion/index.d.ts.map +1 -1
- package/dist/motion/index.js +8 -6
- package/dist/motion/primitives-index.js +184 -8
- package/dist/shell/app-command-palette.js +1 -1
- package/dist/shell/bottom-navbar.js +3 -3
- package/dist/shell/notification-center.js +35 -35
- package/dist/shell/notification-preferences.js +29 -28
- package/dist/shell/sidebar.js +56 -56
- package/dist/shell/top-bar.js +25 -25
- package/dist/ui/accordion.js +11 -11
- package/dist/ui/alert-dialog.js +41 -41
- package/dist/ui/alert.js +10 -10
- package/dist/ui/aspect-ratio.js +5 -5
- package/dist/ui/autocomplete.js +15 -15
- package/dist/ui/avatar.js +4 -4
- package/dist/ui/badge.js +11 -11
- package/dist/ui/banner.js +3 -3
- package/dist/ui/breadcrumb.js +8 -8
- package/dist/ui/button-group.js +4 -4
- package/dist/ui/button.js +25 -25
- package/dist/ui/card.js +5 -5
- package/dist/ui/charts/index.js +4 -4
- package/dist/ui/checkbox.js +4 -4
- package/dist/ui/chip.js +14 -14
- package/dist/ui/code.js +1 -1
- package/dist/ui/collapsible.js +7 -7
- package/dist/ui/color-input.js +1 -1
- package/dist/ui/combobox.js +5 -5
- package/dist/ui/container.js +4 -4
- package/dist/ui/context-menu.js +4 -4
- package/dist/ui/data-table-toolbar.js +18 -18
- package/dist/ui/data-table.js +55 -55
- package/dist/ui/dialog.js +3 -3
- package/dist/ui/dropdown-menu.js +3 -3
- package/dist/ui/file-upload.js +10 -10
- package/dist/ui/form.js +1 -1
- package/dist/ui/hover-card.js +12 -12
- package/dist/ui/icon-button.js +9 -9
- package/dist/ui/index.js +322 -516
- package/dist/ui/input-otp.js +4 -4
- package/dist/ui/input.js +9 -9
- package/dist/ui/label.js +9 -9
- package/dist/ui/lib/date-utils.d.ts +0 -1
- package/dist/{_chunks → ui/lib}/date-utils.js +1 -2
- package/dist/{_chunks/motion2.js → ui/lib/motion.js} +13 -14
- package/dist/ui/lib/use-ripple.d.ts.map +1 -1
- package/dist/ui/lib/utils.js +1 -1
- package/dist/ui/link.js +1 -1
- package/dist/ui/menubar.js +66 -66
- package/dist/ui/navigation-menu.js +4 -4
- package/dist/ui/number-input.js +9 -9
- package/dist/ui/pagination.js +1 -1
- package/dist/ui/popover.js +18 -18
- package/dist/ui/progress.js +4 -4
- package/dist/ui/radio.js +11 -11
- package/dist/ui/search-input.js +2 -2
- package/dist/ui/segmented-control.d.ts +2 -0
- package/dist/ui/segmented-control.d.ts.map +1 -1
- package/dist/ui/segmented-control.js +59 -55
- package/dist/ui/select.js +19 -19
- package/dist/ui/separator.js +5 -5
- package/dist/ui/sheet.js +10 -10
- package/dist/ui/sidebar.js +574 -38
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/slider.js +9 -9
- package/dist/ui/spinner.js +2 -2
- package/dist/ui/stack.js +1 -1
- package/dist/ui/stat-card.js +35 -35
- package/dist/ui/stepper.d.ts +1 -3
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +74 -74
- package/dist/ui/switch.js +7 -7
- package/dist/ui/table.js +28 -28
- package/dist/ui/tabs.js +10 -10
- package/dist/ui/text.js +1 -1
- package/dist/ui/textarea.js +10 -10
- package/dist/ui/toast.js +12 -12
- package/dist/ui/toaster.js +11 -11
- package/dist/ui/toggle-group.js +2 -2
- package/dist/ui/toggle.js +8 -8
- package/dist/ui/tooltip.js +21 -21
- package/dist/ui/visually-hidden.js +3 -3
- package/llms-full.txt +3384 -1591
- package/llms.txt +4 -4
- package/package.json +25 -2
- package/dist/_chunks/avatar.js +0 -52
- package/dist/_chunks/button-group.js +0 -27
- package/dist/_chunks/button.js +0 -113
- package/dist/_chunks/card.js +0 -50
- package/dist/_chunks/checkbox.js +0 -16
- package/dist/_chunks/form.js +0 -27
- package/dist/_chunks/sidebar.js +0 -606
- package/dist/_chunks/spinner.js +0 -64
- package/dist/_chunks/tooltip.js +0 -30
- package/dist/_chunks/utils.js +0 -17
- package/dist/motion/motion-provider.js +0 -24
- package/dist/motion/primitives.js +0 -187
- /package/dist/_chunks/{motion.js → framer.js} +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import * as o from "react";
|
|
4
|
+
import { tweens as s, springs as n } from "../ui/lib/motion.js";
|
|
5
|
+
import { u as f, M as m } from "./framer.js";
|
|
6
|
+
const i = o.createContext({
|
|
7
|
+
springs: n,
|
|
8
|
+
tweens: s,
|
|
9
|
+
reducedMotion: !1
|
|
10
|
+
});
|
|
11
|
+
function l({ children: u, reducedMotion: e = "user" }) {
|
|
12
|
+
const a = f() ?? !1, r = e === "user" ? a : e, c = o.useMemo(
|
|
13
|
+
() => ({ springs: n, tweens: s, reducedMotion: r }),
|
|
14
|
+
[r]
|
|
15
|
+
);
|
|
16
|
+
return /* @__PURE__ */ t(i.Provider, { value: c, children: /* @__PURE__ */ t(m, { reducedMotion: e === "user" ? "user" : e ? "always" : "never", children: u }) });
|
|
17
|
+
}
|
|
18
|
+
function x() {
|
|
19
|
+
return o.useContext(i);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
l as M,
|
|
23
|
+
x as u
|
|
24
|
+
};
|
|
@@ -6406,24 +6406,24 @@ function Dt(e) {
|
|
|
6406
6406
|
var dh = ol, fh = sl, ph = ll, vh = ul, mh = dl, gh = fl, hh = pl, Ch = ml;
|
|
6407
6407
|
export {
|
|
6408
6408
|
qm as $,
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6409
|
+
gm as A,
|
|
6410
|
+
dm as B,
|
|
6411
|
+
um as C,
|
|
6412
|
+
bm as D,
|
|
6413
|
+
fm as E,
|
|
6414
|
+
Rm as F,
|
|
6415
6415
|
Dm as G,
|
|
6416
6416
|
cm as H,
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6417
|
+
im as I,
|
|
6418
|
+
ym as J,
|
|
6419
|
+
Pm as K,
|
|
6420
6420
|
Om as L,
|
|
6421
|
-
|
|
6422
|
-
|
|
6421
|
+
am as M,
|
|
6422
|
+
sd as N,
|
|
6423
6423
|
vm as O,
|
|
6424
6424
|
xm as P,
|
|
6425
|
-
|
|
6426
|
-
|
|
6425
|
+
id as Q,
|
|
6426
|
+
sm as R,
|
|
6427
6427
|
rm as S,
|
|
6428
6428
|
lm as T,
|
|
6429
6429
|
Jl as U,
|
|
@@ -6433,8 +6433,8 @@ export {
|
|
|
6433
6433
|
rg as Y,
|
|
6434
6434
|
zm as Z,
|
|
6435
6435
|
Ym as _,
|
|
6436
|
-
|
|
6437
|
-
|
|
6436
|
+
wm as a,
|
|
6437
|
+
Qg as a$,
|
|
6438
6438
|
Zm as a0,
|
|
6439
6439
|
eg as a1,
|
|
6440
6440
|
Qm as a2,
|
|
@@ -6445,33 +6445,33 @@ export {
|
|
|
6445
6445
|
Xm as a7,
|
|
6446
6446
|
Jm as a8,
|
|
6447
6447
|
ng as a9,
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6448
|
+
gg as aA,
|
|
6449
|
+
Cg as aB,
|
|
6450
|
+
Pg as aC,
|
|
6451
|
+
Ng as aD,
|
|
6452
|
+
Ag as aE,
|
|
6453
|
+
Dg as aF,
|
|
6454
|
+
Og as aG,
|
|
6455
|
+
kg as aH,
|
|
6456
|
+
$g as aI,
|
|
6457
|
+
Lg as aJ,
|
|
6458
6458
|
Ug as aK,
|
|
6459
6459
|
Hg as aL,
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6460
|
+
Bg as aM,
|
|
6461
|
+
Vg as aN,
|
|
6462
|
+
Kg as aO,
|
|
6463
|
+
Sm as aP,
|
|
6464
|
+
Fg as aQ,
|
|
6465
|
+
Gg as aR,
|
|
6466
|
+
Wg as aS,
|
|
6467
|
+
zg as aT,
|
|
6468
|
+
Yg as aU,
|
|
6469
|
+
Xg as aV,
|
|
6470
|
+
jg as aW,
|
|
6471
|
+
Zg as aX,
|
|
6472
|
+
lh as aY,
|
|
6473
|
+
uh as aZ,
|
|
6474
|
+
Jg as a_,
|
|
6475
6475
|
Fu as aa,
|
|
6476
6476
|
Lu as ab,
|
|
6477
6477
|
Gu as ac,
|
|
@@ -6480,65 +6480,65 @@ export {
|
|
|
6480
6480
|
Ku as af,
|
|
6481
6481
|
ku as ag,
|
|
6482
6482
|
$u as ah,
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
6483
|
+
ug as ai,
|
|
6484
|
+
dg as aj,
|
|
6485
|
+
fg as ak,
|
|
6486
|
+
pg as al,
|
|
6487
|
+
vg as am,
|
|
6488
|
+
mg as an,
|
|
6489
|
+
hg as ao,
|
|
6490
|
+
bg as ap,
|
|
6491
|
+
Mg as aq,
|
|
6492
|
+
Ig as ar,
|
|
6493
|
+
wg as as,
|
|
6494
|
+
Rg as at,
|
|
6495
|
+
yg as au,
|
|
6496
|
+
Eg as av,
|
|
6497
|
+
Sg as aw,
|
|
6498
|
+
xg as ax,
|
|
6499
|
+
_g as ay,
|
|
6500
|
+
Tg as az,
|
|
6501
|
+
Em as b,
|
|
6502
|
+
nh as b0,
|
|
6503
|
+
oh as b1,
|
|
6504
|
+
sh as b2,
|
|
6505
|
+
ah as b3,
|
|
6506
|
+
th as b4,
|
|
6507
|
+
ih as b5,
|
|
6508
|
+
eh as b6,
|
|
6509
|
+
rh as b7,
|
|
6510
|
+
qg as b8,
|
|
6511
|
+
ch as b9,
|
|
6512
|
+
dh as ba,
|
|
6513
|
+
fh as bb,
|
|
6514
|
+
vh as bc,
|
|
6515
|
+
hh as bd,
|
|
6516
|
+
Ch as be,
|
|
6517
|
+
gh as bf,
|
|
6518
|
+
ph as bg,
|
|
6519
|
+
mh as bh,
|
|
6520
|
+
_m as c,
|
|
6521
|
+
Mm as d,
|
|
6522
|
+
Vm as e,
|
|
6523
|
+
Um as f,
|
|
6524
|
+
Nm as g,
|
|
6525
|
+
Am as h,
|
|
6526
|
+
km as i,
|
|
6527
|
+
$m as j,
|
|
6528
|
+
Gm as k,
|
|
6529
|
+
Fm as l,
|
|
6530
|
+
Bm as m,
|
|
6531
|
+
Lm as n,
|
|
6532
|
+
Tm as o,
|
|
6533
|
+
Im as p,
|
|
6534
|
+
Km as q,
|
|
6535
|
+
ig as r,
|
|
6536
|
+
cg as s,
|
|
6537
|
+
sg as t,
|
|
6538
|
+
ag as u,
|
|
6539
|
+
lg as v,
|
|
6540
|
+
pm as w,
|
|
6541
|
+
mm as x,
|
|
6542
|
+
Cm as y,
|
|
6543
|
+
hm as z
|
|
6544
6544
|
};
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { jsxs as V, jsx as l } from "react/jsx-runtime";
|
|
3
3
|
import * as d from "react";
|
|
4
4
|
import { useState as P, useCallback as K } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { cn as A } from "../ui/lib/utils.js";
|
|
6
6
|
import { IconChevronRight as M } from "@tabler/icons-react";
|
|
7
|
-
import {
|
|
7
|
+
import { Checkbox as z } from "../ui/checkbox.js";
|
|
8
8
|
function G(t = {}) {
|
|
9
9
|
const { defaultExpanded: h, defaultSelected: r, multiSelect: f, onSelect: g, onExpand: o } = t, [k, w] = P(
|
|
10
10
|
new Set(h ?? [])
|
|
11
|
-
), [
|
|
11
|
+
), [C, N] = P(
|
|
12
12
|
new Set(r ?? [])
|
|
13
13
|
), s = K(
|
|
14
14
|
(n) => {
|
|
@@ -29,11 +29,11 @@ function G(t = {}) {
|
|
|
29
29
|
);
|
|
30
30
|
return {
|
|
31
31
|
expanded: k,
|
|
32
|
-
selected:
|
|
32
|
+
selected: C,
|
|
33
33
|
toggle: s,
|
|
34
34
|
select: c,
|
|
35
35
|
isExpanded: (n) => k.has(n),
|
|
36
|
-
isSelected: (n) =>
|
|
36
|
+
isSelected: (n) => C.has(n),
|
|
37
37
|
expandAll: (n) => w(new Set(n)),
|
|
38
38
|
collapseAll: () => w(/* @__PURE__ */ new Set())
|
|
39
39
|
};
|
|
@@ -48,7 +48,7 @@ const j = d.forwardRef(
|
|
|
48
48
|
disabled: o = !1,
|
|
49
49
|
children: k,
|
|
50
50
|
depth: w = 0,
|
|
51
|
-
className:
|
|
51
|
+
className: C
|
|
52
52
|
}, N) => {
|
|
53
53
|
const s = H(), c = d.Children.count(k) > 0, n = s.tree.isExpanded(t), i = s.tree.isSelected(t), p = (e) => {
|
|
54
54
|
o || s.tree.select(t, e);
|
|
@@ -96,7 +96,7 @@ const j = d.forwardRef(
|
|
|
96
96
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
|
|
97
97
|
i && "bg-accent-3 text-accent-11",
|
|
98
98
|
o && "opacity-action-disabled cursor-not-allowed pointer-events-none",
|
|
99
|
-
|
|
99
|
+
C
|
|
100
100
|
),
|
|
101
101
|
children: [
|
|
102
102
|
c ? /* @__PURE__ */ l(
|
|
@@ -214,7 +214,7 @@ const B = d.forwardRef(
|
|
|
214
214
|
onSelect: o,
|
|
215
215
|
onExpand: k,
|
|
216
216
|
className: w,
|
|
217
|
-
children:
|
|
217
|
+
children: C,
|
|
218
218
|
...N
|
|
219
219
|
}, s) => {
|
|
220
220
|
const c = G({
|
|
@@ -249,8 +249,8 @@ const B = d.forwardRef(
|
|
|
249
249
|
const S = a.getAttribute("data-tree-item");
|
|
250
250
|
if (S && c.isExpanded(S)) {
|
|
251
251
|
x.preventDefault();
|
|
252
|
-
const
|
|
253
|
-
|
|
252
|
+
const y = u[b + 1];
|
|
253
|
+
y == null || y.focus();
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
break;
|
|
@@ -258,7 +258,7 @@ const B = d.forwardRef(
|
|
|
258
258
|
case "ArrowLeft": {
|
|
259
259
|
const a = u[b];
|
|
260
260
|
if (a) {
|
|
261
|
-
const S = a.getAttribute("data-tree-item"),
|
|
261
|
+
const S = a.getAttribute("data-tree-item"), y = a.closest('[role="treeitem"]'), I = (E = y == null ? void 0 : y.parentElement) == null ? void 0 : E.closest(
|
|
262
262
|
'[role="treeitem"]'
|
|
263
263
|
);
|
|
264
264
|
if (S && !c.isExpanded(S) && I) {
|
|
@@ -283,7 +283,7 @@ const B = d.forwardRef(
|
|
|
283
283
|
}, m = d.useMemo(
|
|
284
284
|
() => ({ tree: c, checkboxes: g }),
|
|
285
285
|
[c, g]
|
|
286
|
-
), D = t ? q(t) :
|
|
286
|
+
), D = t ? q(t) : C;
|
|
287
287
|
return /* @__PURE__ */ l(L.Provider, { value: m, children: /* @__PURE__ */ l(
|
|
288
288
|
"ul",
|
|
289
289
|
{
|
|
@@ -4,7 +4,7 @@ import * as p from "react";
|
|
|
4
4
|
import { useState as Se } from "react";
|
|
5
5
|
import { format as D, startOfMonth as z, endOfMonth as me, startOfWeek as ve, endOfWeek as Ye, addDays as _, subMonths as be, addMonths as te, isSameMonth as ge, isSameDay as X, lastDayOfMonth as Re, isBefore as C, startOfDay as K, isAfter as ee, isWithinInterval as xe, setMonth as re, setYear as ne, endOfDay as U, startOfYear as Te, subDays as ue, setHours as J, setMinutes as se, setSeconds as ye } from "date-fns";
|
|
6
6
|
import { IconChevronLeft as Ae, IconChevronRight as He, IconCalendarEvent as we, IconClock as Oe, IconCalendarClock as De } from "@tabler/icons-react";
|
|
7
|
-
import {
|
|
7
|
+
import { cn as y } from "../ui/lib/utils.js";
|
|
8
8
|
import { Popover as ce, PopoverTrigger as oe, PopoverContent as ae } from "../ui/popover.js";
|
|
9
9
|
const Ee = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], Q = p.forwardRef(
|
|
10
10
|
function({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a, jsxs as r } from "react/jsx-runtime";
|
|
3
3
|
import * as g from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { cn as t } from "../ui/lib/utils.js";
|
|
5
5
|
import { IconChevronRight as b } from "@tabler/icons-react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { Avatar as k, AvatarImage as y, AvatarFallback as A } from "../ui/avatar.js";
|
|
7
|
+
import { Button as x } from "../ui/button.js";
|
|
8
8
|
import { Skeleton as c } from "../ui/skeleton.js";
|
|
9
9
|
import { getInitials as S } from "./lib/string-utils.js";
|
|
10
|
-
import {
|
|
10
|
+
import { formatRelativeTime as C } from "../ui/lib/date-utils.js";
|
|
11
11
|
const j = {
|
|
12
12
|
default: "bg-surface-fg-subtle",
|
|
13
13
|
success: "bg-success-9",
|
|
@@ -16,46 +16,46 @@ const j = {
|
|
|
16
16
|
info: "bg-info-9"
|
|
17
17
|
};
|
|
18
18
|
function D({ compact: e }) {
|
|
19
|
-
return /* @__PURE__ */ a("div", { className:
|
|
19
|
+
return /* @__PURE__ */ a("div", { className: t("flex flex-col", e ? "gap-1" : "gap-3"), children: [0, 1, 2].map((s) => /* @__PURE__ */ r("div", { className: "flex items-center gap-ds-03", children: [
|
|
20
20
|
/* @__PURE__ */ a(c, { className: "h-2 w-2 shrink-0 rounded-ds-full" }),
|
|
21
21
|
!e && /* @__PURE__ */ a(c, { className: "h-4 w-4 shrink-0 rounded-ds-full" }),
|
|
22
|
-
/* @__PURE__ */ a(c, { className:
|
|
22
|
+
/* @__PURE__ */ a(c, { className: t("flex-1", e ? "h-3" : "h-4") }),
|
|
23
23
|
/* @__PURE__ */ a(c, { className: "h-3 w-12" })
|
|
24
|
-
] },
|
|
24
|
+
] }, s)) });
|
|
25
25
|
}
|
|
26
26
|
function R({
|
|
27
27
|
item: e,
|
|
28
|
-
compact:
|
|
28
|
+
compact: s
|
|
29
29
|
}) {
|
|
30
30
|
const [n, o] = g.useState(!1), d = e.color ?? "default", i = () => {
|
|
31
31
|
e.detail && o((l) => !l);
|
|
32
32
|
};
|
|
33
|
-
return /* @__PURE__ */ r("div", { className:
|
|
33
|
+
return /* @__PURE__ */ r("div", { className: t("relative flex items-start", s ? "gap-ds-02" : "gap-ds-03"), children: [
|
|
34
34
|
/* @__PURE__ */ a(
|
|
35
35
|
"div",
|
|
36
36
|
{
|
|
37
|
-
className:
|
|
37
|
+
className: t(
|
|
38
38
|
"relative z-10 mt-1.5 h-2 w-2 shrink-0 rounded-ds-full ring-2 ring-surface-1",
|
|
39
39
|
j[d]
|
|
40
40
|
)
|
|
41
41
|
}
|
|
42
42
|
),
|
|
43
|
-
!
|
|
43
|
+
!s && e.actor && /* @__PURE__ */ r(k, { className: "h-5 w-5 shrink-0 text-[9px]", children: [
|
|
44
44
|
e.actor.image && /* @__PURE__ */ a(y, { src: e.actor.image, alt: e.actor.name }),
|
|
45
45
|
/* @__PURE__ */ a(A, { className: "text-[9px]", children: S(e.actor.name) })
|
|
46
46
|
] }),
|
|
47
47
|
/* @__PURE__ */ r("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
48
48
|
/* @__PURE__ */ r("div", { className: "flex items-center justify-between gap-ds-02", children: [
|
|
49
|
-
/* @__PURE__ */ r("div", { className:
|
|
49
|
+
/* @__PURE__ */ r("div", { className: t("min-w-0 flex-1 flex items-center gap-ds-01 flex-wrap", s ? "text-ds-xs" : "text-ds-sm"), children: [
|
|
50
50
|
e.actor && /* @__PURE__ */ r("span", { className: "font-medium text-surface-fg", children: [
|
|
51
51
|
e.actor.name,
|
|
52
52
|
" "
|
|
53
53
|
] }),
|
|
54
|
-
e.detail && /* @__PURE__ */ a(b, { className:
|
|
54
|
+
e.detail && /* @__PURE__ */ a(b, { className: t("h-3 w-3 shrink-0 text-surface-fg-subtle transition-transform", n && "rotate-90") }),
|
|
55
55
|
/* @__PURE__ */ a(
|
|
56
56
|
"span",
|
|
57
57
|
{
|
|
58
|
-
className:
|
|
58
|
+
className: t(
|
|
59
59
|
"text-surface-fg-muted",
|
|
60
60
|
e.detail && "cursor-pointer hover:underline"
|
|
61
61
|
),
|
|
@@ -72,9 +72,9 @@ function R({
|
|
|
72
72
|
/* @__PURE__ */ a(
|
|
73
73
|
"time",
|
|
74
74
|
{
|
|
75
|
-
className:
|
|
75
|
+
className: t(
|
|
76
76
|
"shrink-0 whitespace-nowrap text-surface-fg-subtle",
|
|
77
|
-
|
|
77
|
+
s ? "text-ds-xs" : "text-ds-sm"
|
|
78
78
|
),
|
|
79
79
|
dateTime: (typeof e.timestamp == "string" ? new Date(e.timestamp) : e.timestamp).toISOString(),
|
|
80
80
|
children: C(e.timestamp)
|
|
@@ -88,7 +88,7 @@ function R({
|
|
|
88
88
|
const z = g.forwardRef(
|
|
89
89
|
({
|
|
90
90
|
items: e,
|
|
91
|
-
onLoadMore:
|
|
91
|
+
onLoadMore: s,
|
|
92
92
|
loading: n = !1,
|
|
93
93
|
hasMore: o = !1,
|
|
94
94
|
emptyState: d,
|
|
@@ -99,13 +99,13 @@ const z = g.forwardRef(
|
|
|
99
99
|
}, h) => {
|
|
100
100
|
const [p, N] = g.useState(!1);
|
|
101
101
|
if (n)
|
|
102
|
-
return /* @__PURE__ */ a("div", { ref: h, className:
|
|
102
|
+
return /* @__PURE__ */ a("div", { ref: h, className: t("relative", f), ...m, children: /* @__PURE__ */ a(D, { compact: i }) });
|
|
103
103
|
if (e.length === 0)
|
|
104
104
|
return d ? /* @__PURE__ */ a("div", { ref: h, className: f, ...m, children: d }) : null;
|
|
105
105
|
const u = l != null && !p && e.length > l, w = u ? e.slice(0, l) : e;
|
|
106
|
-
return /* @__PURE__ */ r("div", { ref: h, className:
|
|
106
|
+
return /* @__PURE__ */ r("div", { ref: h, className: t("relative", f), ...m, children: [
|
|
107
107
|
/* @__PURE__ */ a("div", { className: "absolute bottom-0 left-[3px] top-0 w-px bg-surface-border" }),
|
|
108
|
-
/* @__PURE__ */ a("div", { className:
|
|
108
|
+
/* @__PURE__ */ a("div", { className: t("relative flex flex-col", i ? "gap-1" : "gap-3"), children: w.map((v) => /* @__PURE__ */ a(R, { item: v, compact: i }, v.id)) }),
|
|
109
109
|
u && /* @__PURE__ */ a("div", { className: "relative mt-ds-03 flex justify-center", children: /* @__PURE__ */ r(
|
|
110
110
|
x,
|
|
111
111
|
{
|
|
@@ -119,7 +119,7 @@ const z = g.forwardRef(
|
|
|
119
119
|
]
|
|
120
120
|
}
|
|
121
121
|
) }),
|
|
122
|
-
o &&
|
|
122
|
+
o && s && !u && /* @__PURE__ */ a("div", { className: "relative mt-ds-03 flex justify-center", children: /* @__PURE__ */ a(x, { variant: "ghost", size: "sm", onClick: s, children: "Load more" }) })
|
|
123
123
|
] });
|
|
124
124
|
}
|
|
125
125
|
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as e, jsxs as
|
|
2
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
3
3
|
import * as y from "react";
|
|
4
4
|
import { ag as w } from "../_chunks/vendor-utils.js";
|
|
5
|
-
import {
|
|
6
|
-
import { A,
|
|
7
|
-
import {
|
|
5
|
+
import { cn as o } from "../ui/lib/utils.js";
|
|
6
|
+
import { Avatar as A, AvatarImage as T, AvatarFallback as C } from "../ui/avatar.js";
|
|
7
|
+
import { TooltipProvider as I, Tooltip as f, TooltipTrigger as p, TooltipContent as h } from "../ui/tooltip.js";
|
|
8
8
|
import { getInitials as j } from "./lib/string-utils.js";
|
|
9
9
|
const g = w(
|
|
10
10
|
"shrink-0 overflow-hidden rounded-ds-full border-2 border-surface-1",
|
|
@@ -21,30 +21,30 @@ const g = w(
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
), z = y.forwardRef(
|
|
24
|
-
({ users: t, max: d = 4, size: l, showTooltip: v = !0, className:
|
|
25
|
-
const
|
|
24
|
+
({ users: t, max: d = 4, size: l, showTooltip: v = !0, className: x, ...b }, u) => {
|
|
25
|
+
const i = t.slice(0, d), n = t.length - d, c = {
|
|
26
26
|
sm: "-ml-ds-02b",
|
|
27
27
|
md: "-ml-ds-03",
|
|
28
28
|
lg: "-ml-ds-04"
|
|
29
29
|
}[l ?? "md"];
|
|
30
|
-
return /* @__PURE__ */ e(I, { children: /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ e(I, { children: /* @__PURE__ */ s(
|
|
31
31
|
"div",
|
|
32
32
|
{
|
|
33
|
-
ref:
|
|
34
|
-
className: o("flex items-center",
|
|
35
|
-
...
|
|
33
|
+
ref: u,
|
|
34
|
+
className: o("flex items-center", x),
|
|
35
|
+
...b,
|
|
36
36
|
children: [
|
|
37
|
-
|
|
38
|
-
const N = j(
|
|
37
|
+
i.map((a, r) => {
|
|
38
|
+
const N = j(a.name), m = /* @__PURE__ */ s(
|
|
39
39
|
A,
|
|
40
40
|
{
|
|
41
41
|
className: o(
|
|
42
42
|
g({ size: l }),
|
|
43
|
-
|
|
43
|
+
r > 0 && c
|
|
44
44
|
),
|
|
45
|
-
style: { zIndex:
|
|
45
|
+
style: { zIndex: i.length - r },
|
|
46
46
|
children: [
|
|
47
|
-
|
|
47
|
+
a.image && /* @__PURE__ */ e(T, { src: a.image, alt: a.name }),
|
|
48
48
|
/* @__PURE__ */ e(
|
|
49
49
|
C,
|
|
50
50
|
{
|
|
@@ -54,33 +54,33 @@ const g = w(
|
|
|
54
54
|
)
|
|
55
55
|
]
|
|
56
56
|
},
|
|
57
|
-
a
|
|
57
|
+
a.name
|
|
58
58
|
);
|
|
59
|
-
return v ? /* @__PURE__ */
|
|
60
|
-
/* @__PURE__ */ e(p, { asChild: !0, children:
|
|
59
|
+
return v ? /* @__PURE__ */ s(f, { children: [
|
|
60
|
+
/* @__PURE__ */ e(p, { asChild: !0, children: m }),
|
|
61
61
|
/* @__PURE__ */ e(
|
|
62
62
|
h,
|
|
63
63
|
{
|
|
64
64
|
className: "border-surface-border-strong bg-surface-1 text-surface-fg",
|
|
65
65
|
sideOffset: 6,
|
|
66
|
-
children: /* @__PURE__ */ e("p", { className: "text-ds-sm", children:
|
|
66
|
+
children: /* @__PURE__ */ e("p", { className: "text-ds-sm", children: a.name })
|
|
67
67
|
}
|
|
68
68
|
)
|
|
69
|
-
] }, a) :
|
|
69
|
+
] }, a.name) : m;
|
|
70
70
|
}),
|
|
71
|
-
|
|
72
|
-
/* @__PURE__ */ e(p, { asChild: !0, children: /* @__PURE__ */
|
|
71
|
+
n > 0 && /* @__PURE__ */ s(f, { children: [
|
|
72
|
+
/* @__PURE__ */ e(p, { asChild: !0, children: /* @__PURE__ */ s(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
75
|
className: o(
|
|
76
76
|
g({ size: l }),
|
|
77
|
-
|
|
77
|
+
c,
|
|
78
78
|
"flex cursor-default items-center justify-center bg-accent-2 font-body font-semibold text-accent-11"
|
|
79
79
|
),
|
|
80
80
|
style: { zIndex: 0 },
|
|
81
81
|
children: [
|
|
82
82
|
"+",
|
|
83
|
-
|
|
83
|
+
n
|
|
84
84
|
]
|
|
85
85
|
}
|
|
86
86
|
) }),
|
|
@@ -89,7 +89,7 @@ const g = w(
|
|
|
89
89
|
{
|
|
90
90
|
className: "border-surface-border-strong bg-surface-1 text-surface-fg",
|
|
91
91
|
sideOffset: 6,
|
|
92
|
-
children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-ds-01", children: t.slice(d).map((
|
|
92
|
+
children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-ds-01", children: t.slice(d).map((a, r) => /* @__PURE__ */ e("p", { className: "text-ds-sm", children: a.name }, r)) })
|
|
93
93
|
}
|
|
94
94
|
)
|
|
95
95
|
] })
|
|
@@ -3,10 +3,10 @@ import { jsx as t, jsxs as r } from "react/jsx-runtime";
|
|
|
3
3
|
import * as n from "react";
|
|
4
4
|
import { Dialog as $, DialogPortal as K, DialogOverlay as q, DialogContentRaw as z, DialogTitle as O, DialogDescription as Q } from "../ui/dialog.js";
|
|
5
5
|
import { IconSearch as U, IconCornerDownLeft as D, IconArrowUp as V, IconArrowDown as F } from "@tabler/icons-react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { cn as p } from "../ui/lib/utils.js";
|
|
7
|
+
import { springs as I, tweens as b } from "../ui/lib/motion.js";
|
|
8
8
|
import { VisuallyHidden as G } from "../ui/visually-hidden.js";
|
|
9
|
-
import { m as c, A as H } from "../_chunks/
|
|
9
|
+
import { m as c, A as H } from "../_chunks/framer.js";
|
|
10
10
|
const T = n.forwardRef(
|
|
11
11
|
function({
|
|
12
12
|
groups: h = [],
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
3
3
|
import * as g from "react";
|
|
4
4
|
import { AlertDialog as p, AlertDialogContent as A, AlertDialogHeader as C, AlertDialogTitle as u, AlertDialogDescription as x, AlertDialogFooter as b } from "../ui/alert-dialog.js";
|
|
5
|
-
import {
|
|
5
|
+
import { Button as o } from "../ui/button.js";
|
|
6
6
|
const j = g.forwardRef(
|
|
7
7
|
({
|
|
8
8
|
open: t,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e, Fragment as m } from "react/jsx-runtime";
|
|
2
2
|
import * as g from "react";
|
|
3
3
|
import { ag as v } from "../_chunks/vendor-utils.js";
|
|
4
|
-
import {
|
|
4
|
+
import { cn as t } from "../ui/lib/utils.js";
|
|
5
5
|
const h = v(
|
|
6
6
|
"rounded-ds-lg transition-[color,background-color,border-color,box-shadow] duration-fast-02 ease-productive-standard",
|
|
7
7
|
{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as s, jsxs as i } from "react/jsx-runtime";
|
|
3
3
|
import * as a from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { m as h } from "../_chunks/
|
|
4
|
+
import { cn as t } from "../ui/lib/utils.js";
|
|
5
|
+
import { m as h } from "../_chunks/framer.js";
|
|
6
6
|
const g = ({ className: e }) => /* @__PURE__ */ s(
|
|
7
7
|
"svg",
|
|
8
8
|
{
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as t, jsxs as r } from "react/jsx-runtime";
|
|
3
3
|
import * as p from "react";
|
|
4
4
|
import { IconAlertTriangle as x, IconServerOff as b, IconBan as h, IconFileUnknown as v } from "@tabler/icons-react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { Button as y } from "../ui/button.js";
|
|
6
|
+
import { cn as o } from "../ui/lib/utils.js";
|
|
7
7
|
function w(e) {
|
|
8
8
|
if (e && typeof e == "object" && "status" in e && typeof e.status == "number")
|
|
9
9
|
return e.status;
|