@rafal.lemieszewski/tide-ui 0.87.0 → 0.87.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/cjs/components/fundamental/command.cjs +1 -1
- package/dist/cjs/components/fundamental/icon.cjs +3 -1
- package/dist/cjs/components/fundamental/sheet.cjs +1 -1
- package/dist/cjs/components/product/app-frame.cjs +1 -1
- package/dist/cjs/components/product/bookmarks.cjs +1 -1
- package/dist/cjs/components/product/data-table-settings-menu.cjs +1 -1
- package/dist/cjs/components/product/view-mode-menu.cjs +1 -1
- package/dist/es/components/fundamental/command.js +24 -23
- package/dist/es/components/fundamental/icon.js +88 -69
- package/dist/es/components/fundamental/sheet.js +27 -26
- package/dist/es/components/product/app-frame.js +38 -38
- package/dist/es/components/product/bookmarks.js +50 -50
- package/dist/es/components/product/data-table-settings-menu.js +8 -8
- package/dist/es/components/product/view-mode-menu.js +11 -11
- package/dist/types/components/fundamental/dropdown-menu.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { cn as
|
|
4
|
-
import { X as m,
|
|
5
|
-
const
|
|
1
|
+
import { jsx as o, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import u from "react";
|
|
3
|
+
import { cn as s } from "../../lib/utils.js";
|
|
4
|
+
import { X as f, User as m, TrendingUp as C, TriangleAlert as b, Trash2 as g, Star as k, ShieldCheck as y, Ship as A, Settings as z, Search as L, ScrollText as S, RotateCcw as T, PlusCircle as I, Pencil as N, PanelLeft as R, MoreHorizontal as U, LogOut as D, Loader2 as P, ListFilter as j, LayoutDashboard as B, Info as H, House as W, GripVertical as $, Globe as F, Filter as G, ExternalLink as _, Container as E, CircleHelp as M, CircleCheck as O, CircleAlert as V, Circle as X, ChevronUp as q, ChevronRight as J, ChevronLeft as K, ChevronDown as Q, Check as Y, Bookmark as Z, Bell as rr, ArrowUpToLine as er, ArrowRightToLine as or, ArrowRight as tr, ArrowLeftToLine as ir, ArrowLeft as nr, ArrowDownWideNarrow as cr, ArrowDownToLine as lr, ArrowDownNarrowWide as ar, Anchor as sr, AlertCircle as dr } from "lucide-react";
|
|
5
|
+
const hr = {
|
|
6
6
|
primary: "text-[var(--color-icon-primary)]",
|
|
7
7
|
secondary: "text-[var(--color-icon-secondary)]",
|
|
8
8
|
tertiary: "text-[var(--color-icon-tertiary)]",
|
|
@@ -19,7 +19,7 @@ const O = {
|
|
|
19
19
|
"on-action": "text-[var(--color-icon-on-action)]",
|
|
20
20
|
inverse: "text-[var(--color-icon-inverse)]",
|
|
21
21
|
violet: "text-[var(--violet-500)]"
|
|
22
|
-
},
|
|
22
|
+
}, vr = {
|
|
23
23
|
s: "w-[var(--size-3xs)] h-[var(--size-3xs)]",
|
|
24
24
|
// 12px
|
|
25
25
|
m: "w-[var(--size-2xs)] h-[var(--size-2xs)]",
|
|
@@ -28,83 +28,102 @@ const O = {
|
|
|
28
28
|
// 20px
|
|
29
29
|
xl: "w-[var(--size-s)] h-[var(--size-s)]"
|
|
30
30
|
// 24px
|
|
31
|
-
},
|
|
32
|
-
"alert-circle":
|
|
33
|
-
|
|
34
|
-
"arrow-down-
|
|
35
|
-
"arrow-down-
|
|
36
|
-
"arrow-
|
|
37
|
-
"arrow-left
|
|
38
|
-
"arrow-
|
|
39
|
-
"arrow-right
|
|
40
|
-
"arrow-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"chevron-
|
|
46
|
-
"chevron-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
"circle-
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
31
|
+
}, w = {
|
|
32
|
+
"alert-circle": dr,
|
|
33
|
+
anchor: sr,
|
|
34
|
+
"arrow-down-narrow-wide": ar,
|
|
35
|
+
"arrow-down-to-line": lr,
|
|
36
|
+
"arrow-down-wide-narrow": cr,
|
|
37
|
+
"arrow-left": nr,
|
|
38
|
+
"arrow-left-to-line": ir,
|
|
39
|
+
"arrow-right": tr,
|
|
40
|
+
"arrow-right-to-line": or,
|
|
41
|
+
"arrow-up-to-line": er,
|
|
42
|
+
bell: rr,
|
|
43
|
+
bookmark: Z,
|
|
44
|
+
check: Y,
|
|
45
|
+
"chevron-down": Q,
|
|
46
|
+
"chevron-left": K,
|
|
47
|
+
"chevron-right": J,
|
|
48
|
+
"chevron-up": q,
|
|
49
|
+
circle: X,
|
|
50
|
+
"circle-alert": V,
|
|
51
|
+
"circle-check": O,
|
|
52
|
+
"circle-help": M,
|
|
53
|
+
container: E,
|
|
54
|
+
"external-link": _,
|
|
55
|
+
filter: G,
|
|
56
|
+
globe: F,
|
|
57
|
+
"grip-vertical": $,
|
|
58
|
+
house: W,
|
|
59
|
+
info: H,
|
|
60
|
+
"layout-dashboard": B,
|
|
61
|
+
"list-filter": j,
|
|
62
|
+
"loader-2": P,
|
|
63
|
+
"log-out": D,
|
|
64
|
+
"more-horizontal": U,
|
|
65
|
+
"panel-left": R,
|
|
66
|
+
pencil: N,
|
|
67
|
+
"plus-circle": I,
|
|
68
|
+
"rotate-ccw": T,
|
|
69
|
+
"scroll-text": S,
|
|
70
|
+
search: L,
|
|
71
|
+
settings: z,
|
|
72
|
+
ship: A,
|
|
73
|
+
"shield-check": y,
|
|
74
|
+
star: k,
|
|
75
|
+
"trash-2": g,
|
|
76
|
+
"triangle-alert": b,
|
|
77
|
+
"trending-up": C,
|
|
78
|
+
user: m,
|
|
79
|
+
x: f
|
|
80
|
+
}, wr = /* @__PURE__ */ u.forwardRef(
|
|
67
81
|
({
|
|
68
82
|
name: r,
|
|
69
|
-
size:
|
|
70
|
-
color:
|
|
71
|
-
className:
|
|
72
|
-
"aria-label":
|
|
73
|
-
...
|
|
74
|
-
},
|
|
75
|
-
const
|
|
83
|
+
size: x = "m",
|
|
84
|
+
color: d,
|
|
85
|
+
className: i,
|
|
86
|
+
"aria-label": t,
|
|
87
|
+
...n
|
|
88
|
+
}, h) => {
|
|
89
|
+
const c = d ? hr[d] : "text-current", l = vr[x], a = t ? { "aria-label": t, role: "img" } : { "aria-hidden": !0 };
|
|
76
90
|
if (typeof r != "string")
|
|
77
91
|
return /* @__PURE__ */ o(
|
|
78
92
|
r,
|
|
79
93
|
{
|
|
80
|
-
className:
|
|
81
|
-
...
|
|
82
|
-
...
|
|
94
|
+
className: s("shrink-0", l, c, i),
|
|
95
|
+
...a,
|
|
96
|
+
...n
|
|
83
97
|
}
|
|
84
98
|
);
|
|
85
|
-
if (r in
|
|
86
|
-
const
|
|
99
|
+
if (r in w) {
|
|
100
|
+
const e = w[r];
|
|
87
101
|
return /* @__PURE__ */ o(
|
|
88
|
-
|
|
102
|
+
e,
|
|
89
103
|
{
|
|
90
|
-
ref:
|
|
91
|
-
className:
|
|
92
|
-
...
|
|
93
|
-
...
|
|
104
|
+
ref: h,
|
|
105
|
+
className: s("shrink-0", l, c, i),
|
|
106
|
+
...a,
|
|
107
|
+
...n
|
|
94
108
|
}
|
|
95
109
|
);
|
|
96
110
|
}
|
|
97
|
-
|
|
111
|
+
const v = r.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join("");
|
|
112
|
+
return console.warn(
|
|
113
|
+
`[Icon] "${r}" is not in the tide-ui icon set — a ? placeholder is shown instead. To render a Lucide icon, import it directly and pass the component reference (this avoids bundling all of lucide-react):
|
|
114
|
+
import { ${v} } from 'lucide-react'
|
|
115
|
+
<Icon name={${v}} />`
|
|
116
|
+
), /* @__PURE__ */ p(
|
|
98
117
|
"svg",
|
|
99
118
|
{
|
|
100
|
-
ref:
|
|
119
|
+
ref: h,
|
|
101
120
|
viewBox: "0 0 24 24",
|
|
102
121
|
fill: "none",
|
|
103
|
-
className:
|
|
104
|
-
...
|
|
105
|
-
...
|
|
122
|
+
className: s("shrink-0", l, c, i),
|
|
123
|
+
...a,
|
|
124
|
+
...n,
|
|
106
125
|
children: [
|
|
107
|
-
|
|
126
|
+
t && /* @__PURE__ */ o("title", { children: t }),
|
|
108
127
|
/* @__PURE__ */ o(
|
|
109
128
|
"rect",
|
|
110
129
|
{
|
|
@@ -133,9 +152,9 @@ const O = {
|
|
|
133
152
|
);
|
|
134
153
|
}
|
|
135
154
|
);
|
|
136
|
-
|
|
155
|
+
wr.displayName = "Icon";
|
|
137
156
|
export {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
157
|
+
wr as Icon,
|
|
158
|
+
hr as iconColors,
|
|
159
|
+
vr as iconSizes
|
|
141
160
|
};
|
|
@@ -4,9 +4,10 @@ import * as a from "@radix-ui/react-dialog";
|
|
|
4
4
|
import { cva as g } from "class-variance-authority";
|
|
5
5
|
import { cn as l } from "../../lib/utils.js";
|
|
6
6
|
import { Button as S } from "./button.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
import { X as w } from "lucide-react";
|
|
8
|
+
const c = i.createContext({ overlay: !1 }), C = ({ modal: t, overlay: e = !1, ...r }) => /* @__PURE__ */ o(c.Provider, { value: { overlay: e }, children: /* @__PURE__ */ o(a.Root, { modal: t ?? e, ...r }) });
|
|
9
|
+
C.displayName = "Sheet";
|
|
10
|
+
const I = a.Trigger, X = a.Close, D = a.Portal, m = /* @__PURE__ */ i.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ o(
|
|
10
11
|
a.Overlay,
|
|
11
12
|
{
|
|
12
13
|
className: l(
|
|
@@ -18,7 +19,7 @@ const V = a.Trigger, B = a.Close, C = a.Portal, m = /* @__PURE__ */ i.forwardRef
|
|
|
18
19
|
}
|
|
19
20
|
));
|
|
20
21
|
m.displayName = a.Overlay.displayName;
|
|
21
|
-
const
|
|
22
|
+
const O = g(
|
|
22
23
|
"fixed z-50 gap-[var(--space-l)] bg-[var(--color-surface-primary)] p-[var(--space-3xl)] shadow-xl transition ease-in-out overflow-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
23
24
|
{
|
|
24
25
|
variants: {
|
|
@@ -33,15 +34,15 @@ const D = g(
|
|
|
33
34
|
side: "right"
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
|
-
),
|
|
37
|
+
), P = /* @__PURE__ */ i.forwardRef(({ side: t = "right", className: e, children: r, showClose: p = !0, dismissible: d = !0, overlay: f, onPointerDownOutside: v, onInteractOutside: u, onFocusOutside: h, ...y }, x) => {
|
|
37
38
|
const b = i.useContext(c), N = f ?? b.overlay;
|
|
38
|
-
return /* @__PURE__ */ n(
|
|
39
|
+
return /* @__PURE__ */ n(D, { children: [
|
|
39
40
|
N && /* @__PURE__ */ o(m, {}),
|
|
40
41
|
/* @__PURE__ */ n(
|
|
41
42
|
a.Content,
|
|
42
43
|
{
|
|
43
44
|
ref: x,
|
|
44
|
-
className: l(
|
|
45
|
+
className: l(O({ side: t }), e),
|
|
45
46
|
...y,
|
|
46
47
|
onPointerDownOutside: (s) => {
|
|
47
48
|
d || s.preventDefault(), v?.(s);
|
|
@@ -59,7 +60,7 @@ const D = g(
|
|
|
59
60
|
{
|
|
60
61
|
variant: "default",
|
|
61
62
|
size: "m",
|
|
62
|
-
icon:
|
|
63
|
+
icon: w,
|
|
63
64
|
iconPosition: "only",
|
|
64
65
|
className: "absolute right-[var(--space-l)] top-[var(--space-l)]",
|
|
65
66
|
children: /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
@@ -70,8 +71,8 @@ const D = g(
|
|
|
70
71
|
)
|
|
71
72
|
] });
|
|
72
73
|
});
|
|
73
|
-
|
|
74
|
-
const
|
|
74
|
+
P.displayName = a.Content.displayName;
|
|
75
|
+
const R = ({
|
|
75
76
|
className: t,
|
|
76
77
|
...e
|
|
77
78
|
}) => /* @__PURE__ */ o(
|
|
@@ -84,8 +85,8 @@ const P = ({
|
|
|
84
85
|
...e
|
|
85
86
|
}
|
|
86
87
|
);
|
|
87
|
-
|
|
88
|
-
const
|
|
88
|
+
R.displayName = "SheetHeader";
|
|
89
|
+
const T = ({
|
|
89
90
|
className: t,
|
|
90
91
|
...e
|
|
91
92
|
}) => /* @__PURE__ */ o(
|
|
@@ -98,8 +99,8 @@ const R = ({
|
|
|
98
99
|
...e
|
|
99
100
|
}
|
|
100
101
|
);
|
|
101
|
-
|
|
102
|
-
const
|
|
102
|
+
T.displayName = "SheetFooter";
|
|
103
|
+
const j = /* @__PURE__ */ i.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ o(
|
|
103
104
|
a.Title,
|
|
104
105
|
{
|
|
105
106
|
ref: r,
|
|
@@ -110,8 +111,8 @@ const T = /* @__PURE__ */ i.forwardRef(({ className: t, ...e }, r) => /* @__PURE
|
|
|
110
111
|
...e
|
|
111
112
|
}
|
|
112
113
|
));
|
|
113
|
-
|
|
114
|
-
const
|
|
114
|
+
j.displayName = a.Title.displayName;
|
|
115
|
+
const z = /* @__PURE__ */ i.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ o(
|
|
115
116
|
a.Description,
|
|
116
117
|
{
|
|
117
118
|
ref: r,
|
|
@@ -119,16 +120,16 @@ const j = /* @__PURE__ */ i.forwardRef(({ className: t, ...e }, r) => /* @__PURE
|
|
|
119
120
|
...e
|
|
120
121
|
}
|
|
121
122
|
));
|
|
122
|
-
|
|
123
|
+
z.displayName = a.Description.displayName;
|
|
123
124
|
export {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
125
|
+
C as Sheet,
|
|
126
|
+
X as SheetClose,
|
|
127
|
+
P as SheetContent,
|
|
128
|
+
z as SheetDescription,
|
|
129
|
+
T as SheetFooter,
|
|
130
|
+
R as SheetHeader,
|
|
130
131
|
m as SheetOverlay,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
D as SheetPortal,
|
|
133
|
+
j as SheetTitle,
|
|
134
|
+
I as SheetTrigger
|
|
134
135
|
};
|
|
@@ -3,18 +3,18 @@ import * as u from "react";
|
|
|
3
3
|
import { SidebarProvider as ie, SidebarInset as te, Sidebar as ne, SidebarHeader as ae, SidebarGroup as R, SidebarGroupContent as U, SidebarMenu as j, SidebarMenuItem as O, SidebarMenuButton as x, SidebarGroupLabel as q, SidebarMenuSub as Y, SidebarMenuSubItem as _, SidebarMenuSubButton as ee, SidebarFooter as oe, SidebarRail as se, useSidebar as ce, SidebarTrigger as de } from "../fundamental/sidebar.js";
|
|
4
4
|
import { Button as pe } from "../fundamental/button.js";
|
|
5
5
|
import { Icon as s } from "../fundamental/icon.js";
|
|
6
|
-
import { Search as Z, ChevronRight as re, ChevronDown as
|
|
6
|
+
import { Bell as he, CircleHelp as ue, Globe as me, Container as fe, Anchor as be, Ship as ge, TrendingUp as ve, ScrollText as xe, ShieldCheck as ye, House as Ce, LayoutDashboard as we, Search as Z, ChevronRight as re, ChevronDown as ke, Check as K, User as Ne, Settings as Se, LogOut as ze, RotateCcw as Ae } from "lucide-react";
|
|
7
7
|
import { Avatar as z, AvatarImage as A, AvatarFallback as M } from "../fundamental/avatar.js";
|
|
8
8
|
import { Separator as $ } from "../fundamental/separator.js";
|
|
9
9
|
import { Kbd as E } from "../fundamental/kbd.js";
|
|
10
10
|
import { DropdownMenu as P, DropdownMenuTrigger as W, DropdownMenuContent as G, DropdownMenuLabel as T, DropdownMenuSeparator as H, DropdownMenuItem as y } from "../fundamental/dropdown-menu.js";
|
|
11
|
-
import { TooltipProvider as
|
|
12
|
-
import { CommandDialog as
|
|
13
|
-
const
|
|
11
|
+
import { TooltipProvider as Me, Tooltip as C, TooltipTrigger as w, TooltipContent as k } from "../fundamental/tooltip.js";
|
|
12
|
+
import { CommandDialog as Ve, CommandInput as Le, CommandList as He, CommandEmpty as Te, CommandGroup as D, CommandItem as V } from "../fundamental/command.js";
|
|
13
|
+
const Ee = {
|
|
14
14
|
name: "John Doe",
|
|
15
15
|
email: "john@example.com",
|
|
16
16
|
avatarUrl: "https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=32&h=32&fit=crop&crop=face"
|
|
17
|
-
},
|
|
17
|
+
}, Re = [
|
|
18
18
|
{
|
|
19
19
|
name: "Acme Corp",
|
|
20
20
|
role: "Admin",
|
|
@@ -27,17 +27,17 @@ const xe = {
|
|
|
27
27
|
plan: "Pro",
|
|
28
28
|
avatarUrl: "https://useful-toucan-91.convex.cloud/api/storage/5e36a31d-3f0a-4bb0-95db-f5b1c8e8af93"
|
|
29
29
|
}
|
|
30
|
-
],
|
|
30
|
+
], Ue = {
|
|
31
31
|
main: [
|
|
32
32
|
{
|
|
33
33
|
title: "Home",
|
|
34
|
-
icon:
|
|
34
|
+
icon: Ce,
|
|
35
35
|
url: "/home",
|
|
36
36
|
isActive: !1
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
title: "Boards",
|
|
40
|
-
icon:
|
|
40
|
+
icon: we,
|
|
41
41
|
url: "/boards",
|
|
42
42
|
isActive: !1
|
|
43
43
|
}
|
|
@@ -45,21 +45,21 @@ const xe = {
|
|
|
45
45
|
operations: [
|
|
46
46
|
{
|
|
47
47
|
title: "Voyage economics",
|
|
48
|
-
icon:
|
|
48
|
+
icon: ge,
|
|
49
49
|
url: "/freight-planner",
|
|
50
50
|
isActive: !1,
|
|
51
51
|
items: []
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
title: "Trade desk",
|
|
55
|
-
icon:
|
|
55
|
+
icon: ve,
|
|
56
56
|
url: "/trade-desk",
|
|
57
57
|
isActive: !1,
|
|
58
58
|
items: []
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
title: "Agreements",
|
|
62
|
-
icon:
|
|
62
|
+
icon: xe,
|
|
63
63
|
url: "/agreements",
|
|
64
64
|
isActive: !0,
|
|
65
65
|
items: [
|
|
@@ -82,7 +82,7 @@ const xe = {
|
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
title: "Compliance",
|
|
85
|
-
icon:
|
|
85
|
+
icon: ye,
|
|
86
86
|
url: "/compliance",
|
|
87
87
|
isActive: !1,
|
|
88
88
|
items: []
|
|
@@ -91,7 +91,7 @@ const xe = {
|
|
|
91
91
|
intelligence: [
|
|
92
92
|
{
|
|
93
93
|
title: "Global market",
|
|
94
|
-
icon:
|
|
94
|
+
icon: me,
|
|
95
95
|
url: "/global-market",
|
|
96
96
|
isActive: !1,
|
|
97
97
|
items: [
|
|
@@ -102,7 +102,7 @@ const xe = {
|
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
title: "Assets",
|
|
105
|
-
icon:
|
|
105
|
+
icon: fe,
|
|
106
106
|
url: "/assets",
|
|
107
107
|
isActive: !1,
|
|
108
108
|
items: [
|
|
@@ -114,7 +114,7 @@ const xe = {
|
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
title: "Fixtures",
|
|
117
|
-
icon:
|
|
117
|
+
icon: be,
|
|
118
118
|
url: "/fixtures",
|
|
119
119
|
isActive: !1
|
|
120
120
|
}
|
|
@@ -122,13 +122,13 @@ const xe = {
|
|
|
122
122
|
support: [
|
|
123
123
|
{
|
|
124
124
|
title: "Notifications",
|
|
125
|
-
icon:
|
|
125
|
+
icon: he,
|
|
126
126
|
url: "/notifications",
|
|
127
127
|
isActive: !1
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
title: "Help & support",
|
|
131
|
-
icon:
|
|
131
|
+
icon: ue,
|
|
132
132
|
url: "/help-support",
|
|
133
133
|
isActive: !1
|
|
134
134
|
}
|
|
@@ -148,7 +148,7 @@ function le(o) {
|
|
|
148
148
|
}
|
|
149
149
|
}), n;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function je({ navigationData: o, user: n, teams: m, onNavigate: t, navigationMode: p, onNavigationModeChange: h }) {
|
|
152
152
|
const [f, c] = u.useState(!1), [v, N] = u.useState(""), [b, a] = u.useState(
|
|
153
153
|
() => le(o)
|
|
154
154
|
), [d, g] = u.useState(m[0]), J = (r) => {
|
|
@@ -171,7 +171,7 @@ function we({ navigationData: o, user: n, teams: m, onNavigate: t, navigationMod
|
|
|
171
171
|
return document.addEventListener("keydown", r), () => document.removeEventListener("keydown", r);
|
|
172
172
|
}, []), u.useEffect(() => {
|
|
173
173
|
a(le(o));
|
|
174
|
-
}, [o]), /* @__PURE__ */ l(
|
|
174
|
+
}, [o]), /* @__PURE__ */ l(Me, { delayDuration: 100, children: [
|
|
175
175
|
/* @__PURE__ */ l(ne, { variant: "sidebar", collapsible: "icon", className: "flex h-full flex-col", children: [
|
|
176
176
|
/* @__PURE__ */ e(ae, { className: "sticky top-0 z-10 h-12 border-b border-[var(--color-border-primary-subtle)] bg-[var(--color-surface-primary)] group-data-[collapsible=icon]:flex group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-2 box-border", children: /* @__PURE__ */ e("div", { className: "flex h-[22px] w-7 items-center justify-center", children: /* @__PURE__ */ e(
|
|
177
177
|
"svg",
|
|
@@ -448,7 +448,7 @@ function we({ navigationData: o, user: n, teams: m, onNavigate: t, navigationMod
|
|
|
448
448
|
d.name
|
|
449
449
|
] })
|
|
450
450
|
] }),
|
|
451
|
-
/* @__PURE__ */ e(s, { name:
|
|
451
|
+
/* @__PURE__ */ e(s, { name: ke, size: "m", className: "opacity-50" })
|
|
452
452
|
] }),
|
|
453
453
|
/* @__PURE__ */ l("div", { className: "relative hidden group-data-[collapsible=icon]:block", children: [
|
|
454
454
|
/* @__PURE__ */ l(z, { size: "s", type: "user", children: [
|
|
@@ -535,7 +535,7 @@ function we({ navigationData: o, user: n, teams: m, onNavigate: t, navigationMod
|
|
|
535
535
|
/* @__PURE__ */ e(
|
|
536
536
|
y,
|
|
537
537
|
{
|
|
538
|
-
icon:
|
|
538
|
+
icon: Ne,
|
|
539
539
|
className: "cursor-pointer",
|
|
540
540
|
onSelect: () => {
|
|
541
541
|
t && t("/user/profile");
|
|
@@ -546,7 +546,7 @@ function we({ navigationData: o, user: n, teams: m, onNavigate: t, navigationMod
|
|
|
546
546
|
/* @__PURE__ */ e(
|
|
547
547
|
y,
|
|
548
548
|
{
|
|
549
|
-
icon:
|
|
549
|
+
icon: Se,
|
|
550
550
|
className: "cursor-pointer",
|
|
551
551
|
onSelect: () => {
|
|
552
552
|
t && t("/organization/settings");
|
|
@@ -558,7 +558,7 @@ function we({ navigationData: o, user: n, teams: m, onNavigate: t, navigationMod
|
|
|
558
558
|
/* @__PURE__ */ e(
|
|
559
559
|
y,
|
|
560
560
|
{
|
|
561
|
-
icon:
|
|
561
|
+
icon: ze,
|
|
562
562
|
destructive: !0,
|
|
563
563
|
className: "cursor-pointer",
|
|
564
564
|
onSelect: () => {
|
|
@@ -573,9 +573,9 @@ function we({ navigationData: o, user: n, teams: m, onNavigate: t, navigationMod
|
|
|
573
573
|
] }) }) }),
|
|
574
574
|
/* @__PURE__ */ e(se, {})
|
|
575
575
|
] }),
|
|
576
|
-
/* @__PURE__ */ l(
|
|
576
|
+
/* @__PURE__ */ l(Ve, { open: f, onOpenChange: c, children: [
|
|
577
577
|
/* @__PURE__ */ e(
|
|
578
|
-
|
|
578
|
+
Le,
|
|
579
579
|
{
|
|
580
580
|
placeholder: "Type a command or search...",
|
|
581
581
|
value: v,
|
|
@@ -583,11 +583,11 @@ function we({ navigationData: o, user: n, teams: m, onNavigate: t, navigationMod
|
|
|
583
583
|
clearable: !1
|
|
584
584
|
}
|
|
585
585
|
),
|
|
586
|
-
/* @__PURE__ */ l(
|
|
587
|
-
/* @__PURE__ */ e(
|
|
586
|
+
/* @__PURE__ */ l(He, { children: [
|
|
587
|
+
/* @__PURE__ */ e(Te, { children: "No results found." }),
|
|
588
588
|
/* @__PURE__ */ l(D, { heading: "Quick actions", children: [
|
|
589
589
|
/* @__PURE__ */ l(V, { onSelect: () => console.log("Reload"), children: [
|
|
590
|
-
/* @__PURE__ */ e(s, { name:
|
|
590
|
+
/* @__PURE__ */ e(s, { name: Ae, size: "s", className: "mr-2" }),
|
|
591
591
|
/* @__PURE__ */ e("span", { children: "Reload Page" }),
|
|
592
592
|
/* @__PURE__ */ l("span", { className: "text-caption-sm ml-auto text-[var(--color-text-tertiary)]", children: [
|
|
593
593
|
F() ? "⌘" : "Ctrl",
|
|
@@ -632,7 +632,7 @@ function we({ navigationData: o, user: n, teams: m, onNavigate: t, navigationMod
|
|
|
632
632
|
] })
|
|
633
633
|
] });
|
|
634
634
|
}
|
|
635
|
-
function
|
|
635
|
+
function Oe({
|
|
636
636
|
navigationData: o,
|
|
637
637
|
user: n,
|
|
638
638
|
activeTeam: m,
|
|
@@ -914,7 +914,7 @@ function ke({
|
|
|
914
914
|
)
|
|
915
915
|
] });
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function De() {
|
|
918
918
|
const { state: o, toggleSidebar: n } = ce(), m = o === "collapsed";
|
|
919
919
|
return u.useEffect(() => {
|
|
920
920
|
const t = (p) => {
|
|
@@ -929,10 +929,10 @@ function Ne() {
|
|
|
929
929
|
] }) })
|
|
930
930
|
] });
|
|
931
931
|
}
|
|
932
|
-
function
|
|
933
|
-
navigationData: o =
|
|
934
|
-
user: n =
|
|
935
|
-
teams: m =
|
|
932
|
+
function Xe({
|
|
933
|
+
navigationData: o = Ue,
|
|
934
|
+
user: n = Ee,
|
|
935
|
+
teams: m = Re,
|
|
936
936
|
defaultSidebarOpen: t = !0,
|
|
937
937
|
headerContent: p,
|
|
938
938
|
headerTabs: h,
|
|
@@ -943,7 +943,7 @@ function je({
|
|
|
943
943
|
const [N, b] = u.useState("sidebar"), [a] = u.useState(m[0]);
|
|
944
944
|
return N === "horizontal" ? /* @__PURE__ */ l("div", { className: "h-screen overflow-hidden", style: { display: "flex", flexDirection: "column" }, children: [
|
|
945
945
|
/* @__PURE__ */ e(
|
|
946
|
-
|
|
946
|
+
Oe,
|
|
947
947
|
{
|
|
948
948
|
navigationData: o,
|
|
949
949
|
user: n,
|
|
@@ -956,7 +956,7 @@ function je({
|
|
|
956
956
|
/* @__PURE__ */ e("div", { style: { flex: 1, overflow: "auto", minHeight: 0, backgroundColor: "var(--color-surface-base)" }, children: c })
|
|
957
957
|
] }) : /* @__PURE__ */ e("div", { className: "h-screen overflow-hidden", children: /* @__PURE__ */ l(ie, { defaultOpen: t, children: [
|
|
958
958
|
/* @__PURE__ */ e(
|
|
959
|
-
|
|
959
|
+
je,
|
|
960
960
|
{
|
|
961
961
|
navigationData: o,
|
|
962
962
|
user: n,
|
|
@@ -968,7 +968,7 @@ function je({
|
|
|
968
968
|
),
|
|
969
969
|
/* @__PURE__ */ l(te, { children: [
|
|
970
970
|
(p || f || h) && /* @__PURE__ */ l("header", { className: "flex h-12 shrink-0 items-center gap-2 border-b border-[var(--color-border-primary-subtle)] transition-[width,height] ease-linear group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-12 box-border px-[var(--space-m)]", children: [
|
|
971
|
-
/* @__PURE__ */ e(
|
|
971
|
+
/* @__PURE__ */ e(De, {}),
|
|
972
972
|
/* @__PURE__ */ e($, { layout: "horizontal", className: "mr-2 h-4" }),
|
|
973
973
|
/* @__PURE__ */ e("div", { className: "flex-1 min-w-0", children: p }),
|
|
974
974
|
/* @__PURE__ */ l("div", { className: "flex items-center gap-2 ml-auto shrink-0", children: [
|
|
@@ -982,5 +982,5 @@ function je({
|
|
|
982
982
|
] }) });
|
|
983
983
|
}
|
|
984
984
|
export {
|
|
985
|
-
|
|
985
|
+
Xe as AppFrame
|
|
986
986
|
};
|