@almanaclabs/blaze-ui 0.20.0 → 0.21.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.
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
/** The sidebar's width when nothing is stored, and the width a double-click on the handle goes back to. */
|
|
3
|
+
declare const APP_SIDEBAR_DEFAULT_WIDTH = 188;
|
|
4
|
+
declare const APP_SIDEBAR_MIN_WIDTH = 160;
|
|
5
|
+
declare const APP_SIDEBAR_MAX_WIDTH = 360;
|
|
6
|
+
/** The collapsed icon rail. */
|
|
7
|
+
declare const APP_SIDEBAR_RAIL_WIDTH = 44;
|
|
2
8
|
type AppShellProps = React.ComponentProps<'div'> & {
|
|
3
9
|
/** The left column, usually an `AppSidebar`. It spans both rows. */
|
|
4
10
|
sidebar?: React.ReactNode;
|
|
@@ -6,12 +12,24 @@ type AppShellProps = React.ComponentProps<'div'> & {
|
|
|
6
12
|
topBar?: React.ReactNode;
|
|
7
13
|
/** Classes for the white main panel. */
|
|
8
14
|
mainClassName?: string;
|
|
15
|
+
/** The sidebar's starting width when nothing is stored. Defaults to 188. */
|
|
16
|
+
defaultSidebarWidth?: number;
|
|
17
|
+
/** Start on the icon rail when nothing is stored. */
|
|
18
|
+
defaultSidebarCollapsed?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The `localStorage` key that remembers the sidebar's width and collapsed state on this browser. It is read before
|
|
21
|
+
* the first paint, so the layout does not jump. `null` remembers nothing.
|
|
22
|
+
*/
|
|
23
|
+
sidebarStorageKey?: string | null;
|
|
9
24
|
};
|
|
10
25
|
/**
|
|
11
|
-
* The application frame: a
|
|
26
|
+
* The application frame: a sidebar column, a 56px top bar row, and the page in a white panel on the canvas.
|
|
12
27
|
* The panel is positioned, so a `ChatBar` or other floating element can sit inside it.
|
|
28
|
+
*
|
|
29
|
+
* From 768px up the sidebar can be dragged between 160 and 360px by its right edge (double-click goes back to the
|
|
30
|
+
* default) and collapsed to an icon rail with its header button, Cmd+B or Ctrl+B, or by dragging past the minimum.
|
|
13
31
|
*/
|
|
14
|
-
declare function AppShell({ sidebar, topBar, mainClassName, className, children, ...props }: AppShellProps): React.JSX.Element;
|
|
32
|
+
declare function AppShell({ sidebar, topBar, mainClassName, defaultSidebarWidth, defaultSidebarCollapsed, sidebarStorageKey, className, style, children, ...props }: AppShellProps): React.JSX.Element;
|
|
15
33
|
type AppTopBarProps = React.ComponentProps<'header'> & {
|
|
16
34
|
/** Content at the end of the bar, such as the account avatar. */
|
|
17
35
|
end?: React.ReactNode;
|
|
@@ -72,7 +90,7 @@ type AppSidebarRenderLink = (item: AppSidebarItem & {
|
|
|
72
90
|
* The application's left navigation: a workspace switcher, a plain "New" row, labelled sections of destinations with
|
|
73
91
|
* optional counts, and a group pinned to the bottom. The current destination is the raised white row.
|
|
74
92
|
*/
|
|
75
|
-
declare function AppSidebar(
|
|
93
|
+
declare function AppSidebar(props: AppSidebarProps): React.JSX.Element;
|
|
76
94
|
type AppSidebarWorkspaceProps = {
|
|
77
95
|
/** The workspace or business name. */
|
|
78
96
|
name: string;
|
|
@@ -84,7 +102,7 @@ type AppSidebarWorkspaceProps = {
|
|
|
84
102
|
triggerLabel?: string;
|
|
85
103
|
className?: string;
|
|
86
104
|
};
|
|
87
|
-
/** The workspace switcher at the top of `AppSidebar`: the logo and name, opening a menu. */
|
|
105
|
+
/** The workspace switcher at the top of `AppSidebar`: the logo and name, opening a menu. Its caret shows only on hover, keyboard focus or while open. */
|
|
88
106
|
declare function AppSidebarWorkspace({ name, logo, children, triggerLabel, className, }: AppSidebarWorkspaceProps): React.JSX.Element;
|
|
89
|
-
export { AppShell, AppSidebar, AppSidebarWorkspace, AppTopBar, type AppShellProps, type AppSidebarIcon, type AppSidebarItem, type AppSidebarProps, type AppSidebarRenderLink, type AppSidebarSection, type AppSidebarWorkspaceProps, type AppTopBarProps, };
|
|
107
|
+
export { APP_SIDEBAR_DEFAULT_WIDTH, APP_SIDEBAR_MAX_WIDTH, APP_SIDEBAR_MIN_WIDTH, APP_SIDEBAR_RAIL_WIDTH, AppShell, AppSidebar, AppSidebarWorkspace, AppTopBar, type AppShellProps, type AppSidebarIcon, type AppSidebarItem, type AppSidebarProps, type AppSidebarRenderLink, type AppSidebarSection, type AppSidebarWorkspaceProps, type AppTopBarProps, };
|
|
90
108
|
//# sourceMappingURL=app-shell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-shell.d.ts","sourceRoot":"","sources":["../../../src/components/app-shell/app-shell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"app-shell.d.ts","sourceRoot":"","sources":["../../../src/components/app-shell/app-shell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AA8B9B,2GAA2G;AAC3G,QAAA,MAAM,yBAAyB,MAAM,CAAA;AACrC,QAAA,MAAM,qBAAqB,MAAM,CAAA;AACjC,QAAA,MAAM,qBAAqB,MAAM,CAAA;AACjC,+BAA+B;AAC/B,QAAA,MAAM,sBAAsB,KAAK,CAAA;AAiDjC,KAAK,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IACjD,oEAAoE;IACpE,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,gEAAgE;IAChE,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,wCAAwC;IACxC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,4EAA4E;IAC5E,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,qDAAqD;IACrD,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAClC,CAAA;AAED;;;;;;GAMG;AACH,iBAAS,QAAQ,CAAC,EAChB,OAAO,EACP,MAAM,EACN,aAAa,EACb,mBAA+C,EAC/C,uBAA+B,EAC/B,iBAA2C,EAC3C,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,aAAa,qBAqEf;AAsID,KAAK,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IACrD,iEAAiE;IACjE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACtB,CAAA;AAED,+FAA+F;AAC/F,iBAAS,SAAS,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,qBAoBxE;AAID,KAAK,cAAc,GAAG,KAAK,CAAC,aAAa,CAAC;IACxC,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC,CAAA;AAEF,KAAK,cAAc,GAAG;IACpB,2DAA2D;IAC3D,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gCAAgC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,6DAA6D;IAC7D,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,KAAK,EAAE,SAAS,cAAc,EAAE,CAAA;CACjC,CAAA;AAED,KAAK,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,GAAG;IACvE,2EAA2E;IAC3E,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B;;;OAGG;IACH,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG;QAAE,IAAI,CAAC,EAAE,cAAc,CAAA;KAAE,CAAA;IAC5E,QAAQ,EAAE,SAAS,iBAAiB,EAAE,CAAA;IACtC,wDAAwD;IACxD,WAAW,CAAC,EAAE,SAAS,cAAc,EAAE,CAAA;IACvC,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,sFAAsF;IACtF,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAA;IAC3C,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,oBAAoB,CAAA;CAClC,CAAA;AAED,gEAAgE;AAChE,KAAK,oBAAoB,GAAG,CAC1B,IAAI,EAAE,cAAc,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,KACpC,KAAK,CAAC,YAAY,CAAA;AA4JvB;;;GAGG;AACH,iBAAS,UAAU,CAAC,KAAK,EAAE,eAAe,qBAWzC;AA4FD,KAAK,wBAAwB,GAAG;IAC9B,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,sEAAsE;IACtE,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,4FAA4F;IAC5F,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,mFAAmF;IACnF,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,yJAAyJ;AACzJ,iBAAS,mBAAmB,CAAC,EAC3B,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,SAAS,GACV,EAAE,wBAAwB,qBA+C1B;AAED,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,SAAS,EACT,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,cAAc,GACpB,CAAA"}
|
|
@@ -1,149 +1,355 @@
|
|
|
1
1
|
import { cn as e } from "../../lib/utils.js";
|
|
2
2
|
import { Button as t } from "../button/button.js";
|
|
3
3
|
import { DropdownMenu as n, DropdownMenuContent as r, DropdownMenuTrigger as i } from "../dropdown-menu/dropdown-menu.js";
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
4
|
+
import { Tooltip as a, TooltipContent as o, TooltipTrigger as s } from "../tooltip/tooltip.js";
|
|
5
|
+
import { SidebarGroup as c, SidebarGroupContent as l, SidebarGroupLabel as u, SidebarMenu as d, SidebarMenuBadge as f, SidebarMenuButton as p, SidebarMenuItem as m, SidebarProvider as h, useSidebar as g } from "../sidebar/sidebar.js";
|
|
6
|
+
import * as _ from "react";
|
|
7
|
+
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
8
|
+
import { IconChevronDown as x, IconLayoutSidebarLeftCollapse as S, IconLayoutSidebarLeftExpand as C, IconPlus as w } from "@tabler/icons-react";
|
|
8
9
|
//#region src/components/app-shell/app-shell.tsx
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
var T = 188, E = 160, D = 360, O = 44, k = 8, A = "blaze-ui.app-sidebar";
|
|
11
|
+
function j(e) {
|
|
12
|
+
return Math.round(Math.min(360, Math.max(160, e)));
|
|
13
|
+
}
|
|
14
|
+
function M(e, t) {
|
|
15
|
+
if (!e || typeof window > "u") return t;
|
|
16
|
+
try {
|
|
17
|
+
let n = JSON.parse(window.localStorage.getItem(e) ?? "null");
|
|
18
|
+
return !n || typeof n != "object" ? t : {
|
|
19
|
+
width: typeof n.width == "number" && Number.isFinite(n.width) ? j(n.width) : t.width,
|
|
20
|
+
collapsed: typeof n.collapsed == "boolean" ? n.collapsed : t.collapsed
|
|
21
|
+
};
|
|
22
|
+
} catch {
|
|
23
|
+
return t;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function N(e, t) {
|
|
27
|
+
if (e) try {
|
|
28
|
+
window.localStorage.setItem(e, JSON.stringify(t));
|
|
29
|
+
} catch {}
|
|
30
|
+
}
|
|
31
|
+
var P = _.createContext(!1);
|
|
32
|
+
function F({ sidebar: t, topBar: n, mainClassName: r, defaultSidebarWidth: i = 188, defaultSidebarCollapsed: a = !1, sidebarStorageKey: o = A, className: s, style: c, children: l, ...u }) {
|
|
33
|
+
let d = j(i), [f, p] = _.useState(() => M(o, {
|
|
34
|
+
width: d,
|
|
35
|
+
collapsed: a
|
|
36
|
+
})), [m, g] = _.useState(!1);
|
|
37
|
+
_.useEffect(() => {
|
|
38
|
+
m || N(o, f);
|
|
39
|
+
}, [
|
|
40
|
+
f,
|
|
41
|
+
m,
|
|
42
|
+
o
|
|
43
|
+
]);
|
|
44
|
+
let v = _.useCallback((e) => p((t) => ({
|
|
45
|
+
...t,
|
|
46
|
+
collapsed: !e
|
|
47
|
+
})), []), x = f.collapsed ? 44 : f.width;
|
|
48
|
+
return /* @__PURE__ */ y(P.Provider, {
|
|
49
|
+
value: !!t,
|
|
50
|
+
children: /* @__PURE__ */ y(h, {
|
|
51
|
+
className: "contents",
|
|
52
|
+
open: !f.collapsed,
|
|
53
|
+
onOpenChange: v,
|
|
54
|
+
children: /* @__PURE__ */ b("div", {
|
|
55
|
+
"data-slot": "app-shell",
|
|
56
|
+
"data-sidebar-state": f.collapsed ? "collapsed" : "expanded",
|
|
57
|
+
"data-resizing": m || void 0,
|
|
58
|
+
style: {
|
|
59
|
+
"--app-shell-sidebar-width": `${x}px`,
|
|
60
|
+
...c
|
|
61
|
+
},
|
|
62
|
+
className: e("relative grid min-h-screen grid-cols-[188px_minmax(0,1fr)] grid-rows-[56px_1fr] gap-x-2.5 bg-background px-4 pb-2.5 text-foreground", "md:grid-cols-[var(--app-shell-sidebar-width)_minmax(0,1fr)] md:transition-[grid-template-columns] md:duration-200 md:ease-out motion-reduce:transition-none data-resizing:transition-none", s),
|
|
63
|
+
...u,
|
|
64
|
+
children: [
|
|
65
|
+
t,
|
|
66
|
+
n ?? /* @__PURE__ */ y("div", { "data-slot": "app-shell-top-bar-placeholder" }),
|
|
67
|
+
/* @__PURE__ */ y("main", {
|
|
68
|
+
"data-slot": "app-shell-main",
|
|
69
|
+
className: e("relative min-w-0 rounded-2xl bg-card shadow-[0_1px_2px_rgb(0_0_0/0.04),0_6px_20px_rgb(0_0_0/0.07)]", r),
|
|
70
|
+
children: l
|
|
71
|
+
}),
|
|
72
|
+
t ? /* @__PURE__ */ y(I, {
|
|
73
|
+
layout: f,
|
|
74
|
+
defaultWidth: d,
|
|
75
|
+
resizing: m,
|
|
76
|
+
onLayoutChange: p,
|
|
77
|
+
onResizingChange: g
|
|
78
|
+
}) : null
|
|
79
|
+
]
|
|
21
80
|
})
|
|
22
|
-
|
|
81
|
+
})
|
|
23
82
|
});
|
|
24
83
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
84
|
+
function I({ layout: t, defaultWidth: n, resizing: r, onLayoutChange: i, onResizingChange: a }) {
|
|
85
|
+
let o = _.useRef(null), s = t.collapsed ? 44 : t.width, c = (e, t) => {
|
|
86
|
+
o.current?.pointerId === t && (o.current = null, e.hasPointerCapture?.(t) && e.releasePointerCapture(t), document.body.style.removeProperty("cursor"), document.body.style.removeProperty("user-select"), a(!1));
|
|
87
|
+
};
|
|
88
|
+
return /* @__PURE__ */ y("div", {
|
|
89
|
+
role: "separator",
|
|
90
|
+
tabIndex: 0,
|
|
91
|
+
"aria-label": "Resize sidebar",
|
|
92
|
+
"aria-orientation": "vertical",
|
|
93
|
+
"aria-valuemin": 44,
|
|
94
|
+
"aria-valuemax": 360,
|
|
95
|
+
"aria-valuenow": s,
|
|
96
|
+
"aria-valuetext": t.collapsed ? "Collapsed" : `${t.width} pixels`,
|
|
97
|
+
"data-slot": "app-shell-resize-handle",
|
|
98
|
+
"data-resizing": r || void 0,
|
|
99
|
+
style: { left: "calc(1rem + var(--app-shell-sidebar-width) + 5px)" },
|
|
100
|
+
className: e("absolute inset-y-0 z-20 hidden w-2 -translate-x-1/2 cursor-col-resize touch-none outline-none select-none md:block", "after:absolute after:inset-y-2.5 after:left-1/2 after:w-0.5 after:-translate-x-1/2 after:rounded-full after:transition-colors after:duration-100", "hover:after:bg-border focus-visible:after:bg-ring data-resizing:after:bg-foreground"),
|
|
101
|
+
onKeyDown: (e) => {
|
|
102
|
+
let n, { width: r, collapsed: a } = t;
|
|
103
|
+
e.key === "ArrowLeft" ? a || (n = r <= 160 ? {
|
|
104
|
+
width: r,
|
|
105
|
+
collapsed: !0
|
|
106
|
+
} : {
|
|
107
|
+
width: j(r - k),
|
|
108
|
+
collapsed: a
|
|
109
|
+
}) : e.key === "ArrowRight" ? n = a ? {
|
|
110
|
+
width: r,
|
|
111
|
+
collapsed: !1
|
|
112
|
+
} : {
|
|
113
|
+
width: j(r + k),
|
|
114
|
+
collapsed: a
|
|
115
|
+
} : e.key === "Home" ? n = {
|
|
116
|
+
width: r,
|
|
117
|
+
collapsed: !0
|
|
118
|
+
} : e.key === "End" ? n = {
|
|
119
|
+
width: 360,
|
|
120
|
+
collapsed: !1
|
|
121
|
+
} : e.key === "Enter" && (n = {
|
|
122
|
+
width: r,
|
|
123
|
+
collapsed: !a
|
|
124
|
+
}), n && (e.preventDefault(), i(n));
|
|
125
|
+
},
|
|
126
|
+
onDoubleClick: () => i({
|
|
127
|
+
width: n,
|
|
128
|
+
collapsed: !1
|
|
129
|
+
}),
|
|
130
|
+
onPointerDown: (e) => {
|
|
131
|
+
e.button === 0 && (e.preventDefault(), o.current = {
|
|
132
|
+
pointerId: e.pointerId,
|
|
133
|
+
startX: e.clientX,
|
|
134
|
+
startWidth: s,
|
|
135
|
+
expandedWidth: t.width
|
|
136
|
+
}, e.currentTarget.setPointerCapture?.(e.pointerId), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", a(!0));
|
|
137
|
+
},
|
|
138
|
+
onPointerMove: (e) => {
|
|
139
|
+
let t = o.current;
|
|
140
|
+
if (t?.pointerId !== e.pointerId) return;
|
|
141
|
+
let n = t.startWidth + e.clientX - t.startX;
|
|
142
|
+
i(n < 112 ? {
|
|
143
|
+
width: t.expandedWidth,
|
|
144
|
+
collapsed: !0
|
|
145
|
+
} : {
|
|
146
|
+
width: j(n),
|
|
147
|
+
collapsed: !1
|
|
148
|
+
});
|
|
149
|
+
},
|
|
150
|
+
onPointerUp: (e) => c(e.currentTarget, e.pointerId),
|
|
151
|
+
onPointerCancel: (e) => c(e.currentTarget, e.pointerId),
|
|
152
|
+
onLostPointerCapture: (e) => c(e.currentTarget, e.pointerId),
|
|
153
|
+
children: r && !t.collapsed ? /* @__PURE__ */ b("span", {
|
|
154
|
+
"aria-hidden": "true",
|
|
155
|
+
className: "type-meta pointer-events-none absolute top-16 left-full ml-1.5 rounded-md bg-foreground px-1.5 py-0.5 font-medium text-background tabular-nums",
|
|
156
|
+
children: [t.width, "px"]
|
|
157
|
+
}) : null
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
function L({ end: t, className: n, children: r, ...i }) {
|
|
161
|
+
return /* @__PURE__ */ b("header", {
|
|
27
162
|
"data-slot": "app-top-bar",
|
|
28
163
|
className: e("flex min-w-0 items-center gap-3", n),
|
|
29
164
|
...i,
|
|
30
|
-
children: [/* @__PURE__ */
|
|
165
|
+
children: [/* @__PURE__ */ y("div", {
|
|
31
166
|
"data-slot": "app-top-bar-start",
|
|
32
167
|
className: "flex min-w-0 flex-1",
|
|
33
168
|
children: r
|
|
34
|
-
}), t ? /* @__PURE__ */
|
|
169
|
+
}), t ? /* @__PURE__ */ y("div", {
|
|
35
170
|
"data-slot": "app-top-bar-end",
|
|
36
171
|
className: "flex flex-none items-center gap-2",
|
|
37
172
|
children: t
|
|
38
173
|
}) : null]
|
|
39
174
|
});
|
|
40
175
|
}
|
|
41
|
-
var
|
|
42
|
-
function
|
|
43
|
-
let
|
|
44
|
-
|
|
176
|
+
var R = (e) => /* @__PURE__ */ y("a", { href: e.href });
|
|
177
|
+
function z({ item: t, active: n, collapsed: r, onNavigate: i, renderLink: a }) {
|
|
178
|
+
let o = t.icon, s = (e) => {
|
|
179
|
+
e.detail > 0 && e.currentTarget.blur(), t.onSelect?.(), i?.(t);
|
|
45
180
|
};
|
|
46
|
-
return /* @__PURE__ */ m
|
|
181
|
+
return /* @__PURE__ */ b(m, {
|
|
47
182
|
"data-slot": "app-sidebar-item",
|
|
48
|
-
children: [/* @__PURE__ */
|
|
183
|
+
children: [/* @__PURE__ */ b(p, {
|
|
49
184
|
variant: "raised",
|
|
50
|
-
isActive:
|
|
51
|
-
"aria-current":
|
|
52
|
-
render:
|
|
53
|
-
...
|
|
54
|
-
href:
|
|
185
|
+
isActive: n,
|
|
186
|
+
"aria-current": n ? "page" : void 0,
|
|
187
|
+
render: t.href ? a({
|
|
188
|
+
...t,
|
|
189
|
+
href: t.href
|
|
55
190
|
}) : void 0,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
191
|
+
tooltip: { children: /* @__PURE__ */ b(v, { children: [t.label, t.count ? /* @__PURE__ */ y("span", {
|
|
192
|
+
className: "ml-1.5 tabular-nums opacity-70",
|
|
193
|
+
children: t.count
|
|
194
|
+
}) : null] }) },
|
|
195
|
+
className: e(r && "justify-center px-0"),
|
|
196
|
+
onClick: s,
|
|
197
|
+
children: [o ? /* @__PURE__ */ y(o, { "aria-hidden": "true" }) : null, r ? /* @__PURE__ */ b("span", {
|
|
198
|
+
className: "sr-only",
|
|
199
|
+
children: [t.label, t.count ? ` (${t.count})` : null]
|
|
200
|
+
}) : /* @__PURE__ */ y("span", {
|
|
201
|
+
className: "whitespace-nowrap",
|
|
202
|
+
children: t.label
|
|
203
|
+
})]
|
|
204
|
+
}), t.count && r ? /* @__PURE__ */ y("span", {
|
|
205
|
+
"aria-hidden": "true",
|
|
206
|
+
"data-slot": "app-sidebar-item-dot",
|
|
207
|
+
className: "pointer-events-none absolute top-1.5 right-2 size-1.5 rounded-full bg-primary ring-2 ring-background"
|
|
208
|
+
}) : t.count ? /* @__PURE__ */ y(f, {
|
|
59
209
|
className: "top-1.5 rounded-full bg-primary/10 font-semibold text-primary",
|
|
60
|
-
children:
|
|
210
|
+
children: t.count
|
|
61
211
|
}) : null]
|
|
62
212
|
});
|
|
63
213
|
}
|
|
64
|
-
function
|
|
65
|
-
return /* @__PURE__ */
|
|
214
|
+
function B({ label: e, collapsed: t, children: n }) {
|
|
215
|
+
return /* @__PURE__ */ b(c, {
|
|
66
216
|
className: "p-0",
|
|
67
|
-
children: [e ? /* @__PURE__ */
|
|
68
|
-
|
|
217
|
+
children: [e && t ? /* @__PURE__ */ y("div", {
|
|
218
|
+
"aria-hidden": "true",
|
|
219
|
+
className: "mx-auto mb-1.5 h-px w-5 bg-border"
|
|
220
|
+
}) : e ? /* @__PURE__ */ y(u, {
|
|
221
|
+
className: "px-2.5 whitespace-nowrap",
|
|
69
222
|
children: e
|
|
70
|
-
}) : null, /* @__PURE__ */
|
|
223
|
+
}) : null, /* @__PURE__ */ y(l, { children: /* @__PURE__ */ y(d, {
|
|
71
224
|
className: "gap-px",
|
|
72
|
-
children:
|
|
225
|
+
children: n
|
|
73
226
|
}) })]
|
|
74
227
|
});
|
|
75
228
|
}
|
|
76
|
-
function
|
|
77
|
-
let
|
|
229
|
+
function V({ collapsed: n }) {
|
|
230
|
+
let { toggleSidebar: r } = g(), i = n ? "Expand sidebar" : "Collapse sidebar", c = n ? C : S;
|
|
231
|
+
return /* @__PURE__ */ b(a, { children: [/* @__PURE__ */ y(s, {
|
|
232
|
+
render: /* @__PURE__ */ y(t, {
|
|
233
|
+
type: "button",
|
|
234
|
+
variant: "tertiary",
|
|
235
|
+
size: "icon-sm",
|
|
236
|
+
"data-slot": "app-sidebar-toggle",
|
|
237
|
+
"aria-label": i,
|
|
238
|
+
"aria-expanded": !n,
|
|
239
|
+
className: e("hidden flex-none opacity-0 transition-opacity duration-100 focus-visible:opacity-100 motion-reduce:transition-none md:inline-flex [@media(hover:none)]:opacity-100", n ? "absolute inset-0 m-auto size-8 bg-background group-hover/app-sidebar-header:opacity-100" : "group-hover/app-sidebar:opacity-100"),
|
|
240
|
+
onClick: r
|
|
241
|
+
}),
|
|
242
|
+
children: /* @__PURE__ */ y(c, { "aria-hidden": "true" })
|
|
243
|
+
}), /* @__PURE__ */ b(o, {
|
|
244
|
+
side: "right",
|
|
245
|
+
children: [i, /* @__PURE__ */ y("span", {
|
|
246
|
+
className: "ml-1.5 opacity-70",
|
|
247
|
+
children: H()
|
|
248
|
+
})]
|
|
249
|
+
})] });
|
|
250
|
+
}
|
|
251
|
+
function H() {
|
|
252
|
+
return typeof navigator > "u" ? "Ctrl+B" : /Mac|iPhone|iPad/.test(navigator.platform) ? "⌘B" : "Ctrl+B";
|
|
253
|
+
}
|
|
254
|
+
var U = _.createContext(!1);
|
|
255
|
+
function W(e) {
|
|
256
|
+
return _.useContext(P) ? /* @__PURE__ */ y(G, {
|
|
257
|
+
...e,
|
|
258
|
+
collapsible: !0
|
|
259
|
+
}) : /* @__PURE__ */ y(h, {
|
|
260
|
+
className: "contents",
|
|
261
|
+
children: /* @__PURE__ */ y(G, {
|
|
262
|
+
...e,
|
|
263
|
+
collapsible: !1
|
|
264
|
+
})
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
function G({ workspace: t, newItem: n, sections: r, bottomItems: i, activeId: a, onNavigate: o, navLabel: s = "Workspace", renderLink: c = R, collapsible: l, className: u, ...d }) {
|
|
268
|
+
let { state: f, isMobile: p } = g(), m = l && f === "collapsed" && !p, h = (e) => /* @__PURE__ */ y(z, {
|
|
78
269
|
item: e,
|
|
79
270
|
active: e.id === a,
|
|
271
|
+
collapsed: m,
|
|
80
272
|
onNavigate: o,
|
|
81
273
|
renderLink: c
|
|
82
|
-
}, e.id),
|
|
274
|
+
}, e.id), _ = n ? h({
|
|
83
275
|
...n,
|
|
84
|
-
icon: n.icon ??
|
|
85
|
-
}) : null, [
|
|
86
|
-
return /* @__PURE__ */
|
|
276
|
+
icon: n.icon ?? w
|
|
277
|
+
}) : null, [v, ...x] = r, S = !!(_ && v && !v.label);
|
|
278
|
+
return /* @__PURE__ */ y("aside", {
|
|
87
279
|
"data-slot": "app-sidebar",
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
280
|
+
"data-state": m ? "collapsed" : "expanded",
|
|
281
|
+
className: e("group/app-sidebar sticky top-0 row-span-2 flex h-screen min-w-0 flex-col self-start overflow-x-hidden overflow-y-auto pt-2.5 pb-3", u),
|
|
282
|
+
...d,
|
|
283
|
+
children: /* @__PURE__ */ b(U.Provider, {
|
|
284
|
+
value: m,
|
|
92
285
|
children: [
|
|
93
|
-
|
|
94
|
-
|
|
286
|
+
/* @__PURE__ */ b("div", {
|
|
287
|
+
"data-slot": "app-sidebar-header",
|
|
288
|
+
className: e("mb-4 flex items-center gap-1", m && "group/app-sidebar-header relative"),
|
|
289
|
+
children: [/* @__PURE__ */ y("div", {
|
|
290
|
+
className: "w-full min-w-0 flex-1",
|
|
291
|
+
children: t
|
|
292
|
+
}), l ? /* @__PURE__ */ y(V, { collapsed: m }) : null]
|
|
293
|
+
}),
|
|
294
|
+
/* @__PURE__ */ b("nav", {
|
|
95
295
|
"aria-label": s,
|
|
96
296
|
className: "flex flex-col gap-4",
|
|
97
297
|
children: [
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
298
|
+
_ && !S ? /* @__PURE__ */ y(B, {
|
|
299
|
+
collapsed: m,
|
|
300
|
+
children: _
|
|
301
|
+
}) : null,
|
|
302
|
+
v ? /* @__PURE__ */ b(B, {
|
|
303
|
+
label: v.label,
|
|
304
|
+
collapsed: m,
|
|
305
|
+
children: [S ? _ : null, v.items.map(h)]
|
|
306
|
+
}, v.id) : null,
|
|
307
|
+
x.map((e) => /* @__PURE__ */ y(B, {
|
|
104
308
|
label: e.label,
|
|
105
|
-
|
|
309
|
+
collapsed: m,
|
|
310
|
+
children: e.items.map(h)
|
|
106
311
|
}, e.id))
|
|
107
312
|
]
|
|
108
313
|
}),
|
|
109
|
-
i?.length ? /* @__PURE__ */
|
|
314
|
+
i?.length ? /* @__PURE__ */ y("div", {
|
|
110
315
|
"data-slot": "app-sidebar-bottom",
|
|
111
316
|
className: "mt-auto pt-4",
|
|
112
|
-
children: /* @__PURE__ */
|
|
317
|
+
children: /* @__PURE__ */ y(B, {
|
|
318
|
+
collapsed: m,
|
|
319
|
+
children: i.map(h)
|
|
320
|
+
})
|
|
113
321
|
}) : null
|
|
114
322
|
]
|
|
115
323
|
})
|
|
116
324
|
});
|
|
117
325
|
}
|
|
118
|
-
function
|
|
119
|
-
|
|
120
|
-
|
|
326
|
+
function K({ name: a, logo: o, children: s, triggerLabel: c, className: l }) {
|
|
327
|
+
let u = _.useContext(U);
|
|
328
|
+
return /* @__PURE__ */ b(n, { children: [/* @__PURE__ */ b(i, {
|
|
329
|
+
render: /* @__PURE__ */ y(t, {
|
|
121
330
|
type: "button",
|
|
122
331
|
variant: "tertiary",
|
|
123
332
|
size: "lg",
|
|
124
333
|
"data-slot": "app-sidebar-workspace",
|
|
125
334
|
"aria-label": c ?? `Open workspace menu for ${a}`,
|
|
126
|
-
className: e("
|
|
335
|
+
className: e("w-full justify-start gap-2.5 px-1.5", u && "justify-center px-0", l)
|
|
127
336
|
}),
|
|
128
|
-
children: [
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
})
|
|
141
|
-
]
|
|
142
|
-
}), s ? /* @__PURE__ */ p(r, {
|
|
337
|
+
children: [o ? /* @__PURE__ */ y("span", {
|
|
338
|
+
className: "flex size-8 flex-none items-center justify-center overflow-hidden rounded-md [&>img]:size-full [&>img]:object-cover",
|
|
339
|
+
children: o
|
|
340
|
+
}) : null, u ? null : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y("span", {
|
|
341
|
+
className: "type-label flex-1 truncate text-left font-medium",
|
|
342
|
+
children: a
|
|
343
|
+
}), /* @__PURE__ */ y(x, {
|
|
344
|
+
"aria-hidden": "true",
|
|
345
|
+
"data-slot": "app-sidebar-workspace-caret",
|
|
346
|
+
className: "icon-optical-16 text-muted-foreground opacity-0 transition-opacity duration-100 group-hover/button:opacity-100 group-focus-visible/button:opacity-100 group-data-popup-open/button:opacity-100 motion-reduce:transition-none [@media(hover:none)]:opacity-100"
|
|
347
|
+
})] })]
|
|
348
|
+
}), s ? /* @__PURE__ */ y(r, {
|
|
143
349
|
align: "start",
|
|
144
350
|
className: "min-w-56",
|
|
145
351
|
children: s
|
|
146
352
|
}) : null] });
|
|
147
353
|
}
|
|
148
354
|
//#endregion
|
|
149
|
-
export {
|
|
355
|
+
export { T as APP_SIDEBAR_DEFAULT_WIDTH, D as APP_SIDEBAR_MAX_WIDTH, E as APP_SIDEBAR_MIN_WIDTH, O as APP_SIDEBAR_RAIL_WIDTH, F as AppShell, W as AppSidebar, K as AppSidebarWorkspace, L as AppTopBar };
|
package/dist/index.js
CHANGED
|
@@ -13,74 +13,74 @@ import { Sheet as ae, SheetClose as oe, SheetContent as se, SheetDescription as
|
|
|
13
13
|
import { Skeleton as pe } from "./components/skeleton/skeleton.js";
|
|
14
14
|
import { Tooltip as me, TooltipContent as he, TooltipProvider as ge, TooltipTrigger as _e } from "./components/tooltip/tooltip.js";
|
|
15
15
|
import { Sidebar as ve, SidebarContent as ye, SidebarFooter as be, SidebarGroup as xe, SidebarGroupAction as Se, SidebarGroupContent as Ce, SidebarGroupLabel as we, SidebarHeader as Te, SidebarInput as Ee, SidebarInset as De, SidebarMenu as Oe, SidebarMenuAction as ke, SidebarMenuBadge as Ae, SidebarMenuButton as je, SidebarMenuItem as Me, SidebarMenuSkeleton as Ne, SidebarMenuSub as Pe, SidebarMenuSubButton as Fe, SidebarMenuSubItem as Ie, SidebarProvider as Le, SidebarRail as Re, SidebarSeparator as ze, SidebarTrigger as Be, useSidebar as Ve } from "./components/sidebar/sidebar.js";
|
|
16
|
-
import {
|
|
17
|
-
import { ApprovalCard as
|
|
18
|
-
import { AspectRatio as
|
|
19
|
-
import { Attachment as
|
|
20
|
-
import { Avatar as
|
|
21
|
-
import { Badge as
|
|
22
|
-
import { Breadcrumb as
|
|
23
|
-
import { Bubble as
|
|
24
|
-
import { ButtonGroup as
|
|
25
|
-
import { Calendar as
|
|
26
|
-
import { Carousel as
|
|
27
|
-
import { ChartContainer as
|
|
28
|
-
import { ChatBar as
|
|
29
|
-
import { Checkbox as
|
|
30
|
-
import { Collapsible as
|
|
31
|
-
import { Textarea as
|
|
32
|
-
import { InputGroup as
|
|
33
|
-
import { Combobox as
|
|
34
|
-
import { StatusIndicator as
|
|
35
|
-
import { ConnectNotice as
|
|
36
|
-
import { Table as
|
|
37
|
-
import { DataTable as
|
|
38
|
-
import { Popover as
|
|
39
|
-
import { DatePicker as
|
|
40
|
-
import { DenseTable as
|
|
41
|
-
import { DetailList as
|
|
42
|
-
import { Dialog as
|
|
43
|
-
import { Drawer as
|
|
44
|
-
import { EditableText as
|
|
45
|
-
import { Empty as
|
|
46
|
-
import { BrandApple as
|
|
47
|
-
import { PlatformAvatar as
|
|
48
|
-
import { FaceStackButton as
|
|
49
|
-
import { FilterChips as
|
|
50
|
-
import { Progress as
|
|
51
|
-
import { GoalCard as
|
|
52
|
-
import { HoverCard as
|
|
53
|
-
import { IdentityMark as
|
|
54
|
-
import { Item as
|
|
55
|
-
import { Marker as
|
|
56
|
-
import { MediaThumbnail as
|
|
57
|
-
import { Message as
|
|
58
|
-
import { MetricOverview as
|
|
59
|
-
import { MetricTile as
|
|
60
|
-
import { NativeSelect as
|
|
61
|
-
import { NavigationAction as
|
|
62
|
-
import { PageHeader as
|
|
63
|
-
import { Pagination as
|
|
64
|
-
import { CHANNELS as
|
|
65
|
-
import { LetterMark as
|
|
66
|
-
import { Questionnaire as
|
|
67
|
-
import { RadioGroup as
|
|
68
|
-
import { Rating as
|
|
69
|
-
import { ScrollArea as
|
|
70
|
-
import { SectionHeader as
|
|
71
|
-
import { Select as
|
|
72
|
-
import { SignalDots as
|
|
73
|
-
import { Slider as
|
|
74
|
-
import { SourceAvatar as
|
|
75
|
-
import { Sparkline as
|
|
76
|
-
import { Spinner as
|
|
77
|
-
import { StaleBanner as
|
|
78
|
-
import { SuggestChips as
|
|
79
|
-
import { Tabs as
|
|
80
|
-
import { Toggle as
|
|
81
|
-
import { StackedBarChart as
|
|
82
|
-
import { Switch as
|
|
83
|
-
import { Tag as
|
|
84
|
-
import { Toast as
|
|
85
|
-
import { ToggleGroup as
|
|
86
|
-
export { w as Accordion, T as AccordionContent, E as AccordionItem, D as AccordionTrigger, O as Alert, k as AlertAction, A as AlertDescription, M as AlertDialog, N as AlertDialogAction, P as AlertDialogCancel, F as AlertDialogContent, I as AlertDialogDescription, L as AlertDialogFooter, R as AlertDialogHeader, z as AlertDialogMedia, B as AlertDialogOverlay, V as AlertDialogPortal, H as AlertDialogTitle, U as AlertDialogTrigger, j as AlertTitle,
|
|
16
|
+
import { APP_SIDEBAR_DEFAULT_WIDTH as He, APP_SIDEBAR_MAX_WIDTH as Ue, APP_SIDEBAR_MIN_WIDTH as We, APP_SIDEBAR_RAIL_WIDTH as Ge, AppShell as Ke, AppSidebar as qe, AppSidebarWorkspace as Je, AppTopBar as Ye } from "./components/app-shell/app-shell.js";
|
|
17
|
+
import { ApprovalCard as Xe } from "./components/approval-card/approval-card.js";
|
|
18
|
+
import { AspectRatio as Ze } from "./components/aspect-ratio/aspect-ratio.js";
|
|
19
|
+
import { Attachment as Qe, AttachmentAction as $e, AttachmentActions as et, AttachmentContent as tt, AttachmentDescription as nt, AttachmentGroup as rt, AttachmentMedia as it, AttachmentTitle as at, AttachmentTrigger as ot } from "./components/attachment/attachment.js";
|
|
20
|
+
import { Avatar as st, AvatarBadge as ct, AvatarFallback as lt, AvatarGroup as ut, AvatarGroupCount as dt, AvatarImage as ft } from "./components/avatar/avatar.js";
|
|
21
|
+
import { Badge as pt, badgeVariants as mt } from "./components/badge/badge.js";
|
|
22
|
+
import { Breadcrumb as ht, BreadcrumbEllipsis as gt, BreadcrumbItem as _t, BreadcrumbLink as vt, BreadcrumbList as yt, BreadcrumbPage as bt, BreadcrumbSeparator as xt } from "./components/breadcrumb/breadcrumb.js";
|
|
23
|
+
import { Bubble as St, BubbleContent as Ct, BubbleGroup as wt, BubbleReactions as Tt } from "./components/bubble/bubble.js";
|
|
24
|
+
import { ButtonGroup as Et, ButtonGroupSeparator as Dt, ButtonGroupText as Ot, buttonGroupVariants as kt } from "./components/button-group/button-group.js";
|
|
25
|
+
import { Calendar as At, CalendarDayButton as jt } from "./components/calendar/calendar.js";
|
|
26
|
+
import { Carousel as Mt, CarouselContent as Nt, CarouselItem as Pt, CarouselNext as Ft, CarouselPrevious as It, useCarousel as Lt } from "./components/carousel/carousel.js";
|
|
27
|
+
import { ChartContainer as Rt, ChartLegend as zt, ChartLegendContent as Bt, ChartStyle as Vt, ChartTooltip as Ht, ChartTooltipContent as Ut } from "./components/chart/chart.js";
|
|
28
|
+
import { ChatBar as Wt, chatBarFormVariants as Gt } from "./components/chat-bar/chat-bar.js";
|
|
29
|
+
import { Checkbox as Kt } from "./components/checkbox/checkbox.js";
|
|
30
|
+
import { Collapsible as qt, CollapsibleContent as Jt, CollapsibleTrigger as Yt } from "./components/collapsible/collapsible.js";
|
|
31
|
+
import { Textarea as Xt } from "./components/textarea/textarea.js";
|
|
32
|
+
import { InputGroup as Zt, InputGroupAddon as Qt, InputGroupButton as $t, InputGroupInput as en, InputGroupText as tn, InputGroupTextarea as nn } from "./components/input-group/input-group.js";
|
|
33
|
+
import { Combobox as rn, ComboboxChip as an, ComboboxChips as on, ComboboxChipsInput as sn, ComboboxCollection as cn, ComboboxContent as ln, ComboboxEmpty as un, ComboboxGroup as dn, ComboboxInput as fn, ComboboxItem as pn, ComboboxLabel as mn, ComboboxList as hn, ComboboxSeparator as gn, ComboboxTrigger as _n, ComboboxValue as vn, useComboboxAnchor as yn } from "./components/combobox/combobox.js";
|
|
34
|
+
import { StatusIndicator as bn, statusDotVariants as xn } from "./components/status-indicator/status-indicator.js";
|
|
35
|
+
import { ConnectNotice as Sn } from "./components/connect-notice/connect-notice.js";
|
|
36
|
+
import { Table as Cn, TableBody as wn, TableCaption as Tn, TableCell as En, TableFooter as Dn, TableHead as On, TableHeader as kn, TableRow as An } from "./components/table/table.js";
|
|
37
|
+
import { DataTable as jn } from "./components/data-table/data-table.js";
|
|
38
|
+
import { Popover as Mn, PopoverContent as Nn, PopoverDescription as Pn, PopoverHeader as Fn, PopoverTitle as In, PopoverTrigger as Ln } from "./components/popover/popover.js";
|
|
39
|
+
import { DatePicker as Rn } from "./components/date-picker/date-picker.js";
|
|
40
|
+
import { DenseTable as zn, DenseTableCell as Bn, DenseTableRow as Vn, sortDenseTableRows as Hn } from "./components/dense-table/dense-table.js";
|
|
41
|
+
import { DetailList as Un, DetailListItem as Wn } from "./components/detail-list/detail-list.js";
|
|
42
|
+
import { Dialog as Gn, DialogClose as Kn, DialogContent as qn, DialogDescription as Jn, DialogFooter as Yn, DialogHeader as Xn, DialogOverlay as Zn, DialogPortal as Qn, DialogTitle as $n, DialogTrigger as er } from "./components/dialog/dialog.js";
|
|
43
|
+
import { Drawer as tr, DrawerClose as nr, DrawerContent as rr, DrawerDescription as ir, DrawerFooter as ar, DrawerHeader as or, DrawerOverlay as sr, DrawerPortal as cr, DrawerSwipeHandle as lr, DrawerTitle as ur, DrawerTrigger as dr } from "./components/drawer/drawer.js";
|
|
44
|
+
import { EditableText as fr } from "./components/editable-text/editable-text.js";
|
|
45
|
+
import { Empty as pr, EmptyContent as mr, EmptyDescription as hr, EmptyHeader as gr, EmptyMedia as _r, EmptyTitle as vr } from "./components/empty/empty.js";
|
|
46
|
+
import { BrandApple as yr, BrandBeehiiv as br, BrandBing as xr, BrandBluesky as Sr, BrandChatgpt as Cr, BrandEmail as wr, BrandFacebook as Tr, BrandGithub as Er, BrandGmail as Dr, BrandGodaddy as Or, BrandGoogle as kr, BrandGoogleDocs as Ar, BrandInstagram as jr, BrandLinkedin as Mr, BrandMeta as Nr, BrandMicrosoft as Pr, BrandOutlook as Fr, BrandPerplexity as Ir, BrandPhone as Lr, BrandReddit as Rr, BrandSearchConsole as zr, BrandShopify as Br, BrandSquarespace as Vr, BrandThreads as Hr, BrandTiktok as Ur, BrandWordpress as Wr, BrandX as Gr, BrandYelp as Kr, BrandYoutube as qr, BrandZapier as Jr, PLATFORMS as Yr, PLATFORM_COLOR as Xr, PLATFORM_ICON as Zr, PLATFORM_LABEL as Qr, PlatformIcon as $r } from "./components/platform-icon/platform-icon.js";
|
|
47
|
+
import { PlatformAvatar as ei } from "./components/platform-avatar/platform-avatar.js";
|
|
48
|
+
import { FaceStackButton as ti } from "./components/face-stack-button/face-stack-button.js";
|
|
49
|
+
import { FilterChips as ni } from "./components/filter-chips/filter-chips.js";
|
|
50
|
+
import { Progress as ri, ProgressIndicator as ii, ProgressLabel as ai, ProgressTrack as oi, ProgressValue as si } from "./components/progress/progress.js";
|
|
51
|
+
import { GoalCard as ci, PaceBadge as li, PaceMeter as ui, paceStatusOf as di } from "./components/goal-card/goal-card.js";
|
|
52
|
+
import { HoverCard as fi, HoverCardContent as pi, HoverCardTrigger as mi } from "./components/hover-card/hover-card.js";
|
|
53
|
+
import { IdentityMark as hi, IdentityMarkImage as gi } from "./components/identity-mark/identity-mark.js";
|
|
54
|
+
import { Item as _i, ItemActions as vi, ItemContent as yi, ItemDescription as bi, ItemFooter as xi, ItemGroup as Si, ItemHeader as Ci, ItemMedia as wi, ItemSeparator as Ti, ItemTitle as Ei } from "./components/item/item.js";
|
|
55
|
+
import { Marker as Di, MarkerContent as Oi, MarkerIcon as ki, markerVariants as Ai } from "./components/marker/marker.js";
|
|
56
|
+
import { MediaThumbnail as ji, mediaThumbnailVariants as Mi } from "./components/media-thumbnail/media-thumbnail.js";
|
|
57
|
+
import { Message as Ni, MessageAvatar as Pi, MessageContent as Fi, MessageFooter as Ii, MessageGroup as Li, MessageHeader as Ri } from "./components/message/message.js";
|
|
58
|
+
import { MetricOverview as zi } from "./components/metric-overview/metric-overview.js";
|
|
59
|
+
import { MetricTile as Bi, metricTileVariants as Vi } from "./components/metric-tile/metric-tile.js";
|
|
60
|
+
import { NativeSelect as Hi, NativeSelectOptGroup as Ui, NativeSelectOption as Wi } from "./components/native-select/native-select.js";
|
|
61
|
+
import { NavigationAction as Gi, navigationActionVariants as Ki } from "./components/navigation-action/navigation-action.js";
|
|
62
|
+
import { PageHeader as qi } from "./components/page-header/page-header.js";
|
|
63
|
+
import { Pagination as Ji, PaginationContent as Yi, PaginationEllipsis as Xi, PaginationItem as Zi, PaginationLink as Qi, PaginationNext as $i, PaginationPrevious as ea } from "./components/pagination/pagination.js";
|
|
64
|
+
import { CHANNELS as ta, CHANNEL_COLOR as na } from "./components/platform-icon/channel-color.js";
|
|
65
|
+
import { LetterMark as ra } from "./components/platform-icon/letter-mark.js";
|
|
66
|
+
import { Questionnaire as ia, QuestionnaireActions as aa, QuestionnaireChoice as oa, QuestionnaireChoiceDescription as sa, QuestionnaireChoices as ca, QuestionnaireDescription as la, QuestionnaireError as ua, QuestionnaireInput as da, QuestionnaireItem as fa, QuestionnaireNext as pa, QuestionnairePrevious as ma, QuestionnaireProgress as ha, QuestionnaireSkip as ga, QuestionnaireSubmit as _a, QuestionnaireTitle as va } from "./components/questionnaire/questionnaire.js";
|
|
67
|
+
import { RadioGroup as ya, RadioGroupItem as ba } from "./components/radio-group/radio-group.js";
|
|
68
|
+
import { Rating as xa } from "./components/rating/rating.js";
|
|
69
|
+
import { ScrollArea as Sa, ScrollBar as Ca } from "./components/scroll-area/scroll-area.js";
|
|
70
|
+
import { SectionHeader as wa } from "./components/section-header/section-header.js";
|
|
71
|
+
import { Select as Ta, SelectContent as Ea, SelectGroup as Da, SelectItem as Oa, SelectLabel as ka, SelectScrollDownButton as Aa, SelectScrollUpButton as ja, SelectSeparator as Ma, SelectTrigger as Na, SelectValue as Pa } from "./components/select/select.js";
|
|
72
|
+
import { SignalDots as Fa, SignalStrip as Ia } from "./components/signal-strip/signal-strip.js";
|
|
73
|
+
import { Slider as La } from "./components/slider/slider.js";
|
|
74
|
+
import { SourceAvatar as Ra } from "./components/source-avatar/source-avatar.js";
|
|
75
|
+
import { Sparkline as za } from "./components/sparkline/sparkline.js";
|
|
76
|
+
import { Spinner as Ba } from "./components/spinner/spinner.js";
|
|
77
|
+
import { StaleBanner as Va, StateBanner as Ha, stateBannerVariants as Ua } from "./components/state-banner/state-banner.js";
|
|
78
|
+
import { SuggestChips as Wa } from "./components/suggest-chips/suggest-chips.js";
|
|
79
|
+
import { Tabs as Ga, TabsContent as Ka, TabsList as qa, TabsTrigger as Ja, tabsListVariants as Ya } from "./components/tabs/tabs.js";
|
|
80
|
+
import { Toggle as Xa, toggleVariants as Za } from "./components/toggle/toggle.js";
|
|
81
|
+
import { StackedBarChart as Qa } from "./components/stacked-bar-chart/stacked-bar-chart.js";
|
|
82
|
+
import { Switch as $a } from "./components/switch/switch.js";
|
|
83
|
+
import { Tag as eo, TagList as to } from "./components/tag/tag.js";
|
|
84
|
+
import { Toast as no, ToastAction as ro, ToastClose as io, ToastContent as ao, ToastDescription as oo, ToastPortal as so, ToastProvider as co, ToastTitle as lo, ToastViewport as uo, Toaster as fo, createToastManager as po, toast as mo, useToastManager as ho } from "./components/toast/toast.js";
|
|
85
|
+
import { ToggleGroup as go, ToggleGroupItem as _o } from "./components/toggle-group/toggle-group.js";
|
|
86
|
+
export { He as APP_SIDEBAR_DEFAULT_WIDTH, Ue as APP_SIDEBAR_MAX_WIDTH, We as APP_SIDEBAR_MIN_WIDTH, Ge as APP_SIDEBAR_RAIL_WIDTH, w as Accordion, T as AccordionContent, E as AccordionItem, D as AccordionTrigger, O as Alert, k as AlertAction, A as AlertDescription, M as AlertDialog, N as AlertDialogAction, P as AlertDialogCancel, F as AlertDialogContent, I as AlertDialogDescription, L as AlertDialogFooter, R as AlertDialogHeader, z as AlertDialogMedia, B as AlertDialogOverlay, V as AlertDialogPortal, H as AlertDialogTitle, U as AlertDialogTrigger, j as AlertTitle, Ke as AppShell, qe as AppSidebar, Je as AppSidebarWorkspace, Ye as AppTopBar, Xe as ApprovalCard, Ze as AspectRatio, Qe as Attachment, $e as AttachmentAction, et as AttachmentActions, tt as AttachmentContent, nt as AttachmentDescription, rt as AttachmentGroup, it as AttachmentMedia, at as AttachmentTitle, ot as AttachmentTrigger, st as Avatar, ct as AvatarBadge, lt as AvatarFallback, ut as AvatarGroup, dt as AvatarGroupCount, ft as AvatarImage, pt as Badge, yr as BrandApple, br as BrandBeehiiv, xr as BrandBing, Sr as BrandBluesky, Cr as BrandChatgpt, wr as BrandEmail, Tr as BrandFacebook, Er as BrandGithub, Dr as BrandGmail, Or as BrandGodaddy, kr as BrandGoogle, Ar as BrandGoogleDocs, jr as BrandInstagram, Mr as BrandLinkedin, Nr as BrandMeta, Pr as BrandMicrosoft, Fr as BrandOutlook, Ir as BrandPerplexity, Lr as BrandPhone, Rr as BrandReddit, zr as BrandSearchConsole, Br as BrandShopify, Vr as BrandSquarespace, Hr as BrandThreads, Ur as BrandTiktok, Wr as BrandWordpress, Gr as BrandX, Kr as BrandYelp, qr as BrandYoutube, Jr as BrandZapier, ht as Breadcrumb, gt as BreadcrumbEllipsis, _t as BreadcrumbItem, vt as BreadcrumbLink, yt as BreadcrumbList, bt as BreadcrumbPage, xt as BreadcrumbSeparator, St as Bubble, Ct as BubbleContent, wt as BubbleGroup, Tt as BubbleReactions, t as Button, Et as ButtonGroup, Dt as ButtonGroupSeparator, Ot as ButtonGroupText, n as ButtonLabel, ta as CHANNELS, na as CHANNEL_COLOR, At as Calendar, jt as CalendarDayButton, i as Card, a as CardAction, o as CardContent, s as CardDescription, c as CardFooter, l as CardHeader, u as CardTitle, Mt as Carousel, Nt as CarouselContent, Pt as CarouselItem, Ft as CarouselNext, It as CarouselPrevious, Rt as ChartContainer, zt as ChartLegend, Bt as ChartLegendContent, Vt as ChartStyle, Ht as ChartTooltip, Ut as ChartTooltipContent, Wt as ChatBar, Kt as Checkbox, qt as Collapsible, Jt as CollapsibleContent, Yt as CollapsibleTrigger, rn as Combobox, an as ComboboxChip, on as ComboboxChips, sn as ComboboxChipsInput, cn as ComboboxCollection, ln as ComboboxContent, un as ComboboxEmpty, dn as ComboboxGroup, fn as ComboboxInput, pn as ComboboxItem, mn as ComboboxLabel, hn as ComboboxList, gn as ComboboxSeparator, _n as ComboboxTrigger, vn as ComboboxValue, Sn as ConnectNotice, jn as DataTable, Rn as DatePicker, zn as DenseTable, Bn as DenseTableCell, Vn as DenseTableRow, Un as DetailList, Wn as DetailListItem, Gn as Dialog, Kn as DialogClose, qn as DialogContent, Jn as DialogDescription, Yn as DialogFooter, Xn as DialogHeader, Zn as DialogOverlay, Qn as DialogPortal, $n as DialogTitle, er as DialogTrigger, tr as Drawer, nr as DrawerClose, rr as DrawerContent, ir as DrawerDescription, ar as DrawerFooter, or as DrawerHeader, sr as DrawerOverlay, cr as DrawerPortal, lr as DrawerSwipeHandle, ur as DrawerTitle, dr as DrawerTrigger, W as DropdownMenu, G as DropdownMenuCheckboxItem, K as DropdownMenuContent, q as DropdownMenuGroup, J as DropdownMenuItem, Y as DropdownMenuLabel, X as DropdownMenuPortal, Z as DropdownMenuRadioGroup, Q as DropdownMenuRadioItem, $ as DropdownMenuSeparator, ee as DropdownMenuShortcut, te as DropdownMenuSub, ne as DropdownMenuSubContent, re as DropdownMenuSubTrigger, ie as DropdownMenuTrigger, fr as EditableText, pr as Empty, mr as EmptyContent, hr as EmptyDescription, gr as EmptyHeader, _r as EmptyMedia, vr as EmptyTitle, ti as FaceStackButton, p as Field, m as FieldContent, h as FieldDescription, g as FieldError, _ as FieldGroup, v as FieldLabel, y as FieldLegend, b as FieldSeparator, x as FieldSet, S as FieldTitle, ni as FilterChips, ci as GoalCard, fi as HoverCard, pi as HoverCardContent, mi as HoverCardTrigger, hi as IdentityMark, gi as IdentityMarkImage, C as Input, Zt as InputGroup, Qt as InputGroupAddon, $t as InputGroupButton, en as InputGroupInput, tn as InputGroupText, nn as InputGroupTextarea, _i as Item, vi as ItemActions, yi as ItemContent, bi as ItemDescription, xi as ItemFooter, Si as ItemGroup, Ci as ItemHeader, wi as ItemMedia, Ti as ItemSeparator, Ei as ItemTitle, d as Label, ra as LetterMark, Di as Marker, Oi as MarkerContent, ki as MarkerIcon, ji as MediaThumbnail, Ni as Message, Pi as MessageAvatar, Fi as MessageContent, Ii as MessageFooter, Li as MessageGroup, Ri as MessageHeader, zi as MetricOverview, Bi as MetricTile, Hi as NativeSelect, Ui as NativeSelectOptGroup, Wi as NativeSelectOption, Gi as NavigationAction, Yr as PLATFORMS, Xr as PLATFORM_COLOR, Zr as PLATFORM_ICON, Qr as PLATFORM_LABEL, li as PaceBadge, ui as PaceMeter, qi as PageHeader, Ji as Pagination, Yi as PaginationContent, Xi as PaginationEllipsis, Zi as PaginationItem, Qi as PaginationLink, $i as PaginationNext, ea as PaginationPrevious, ei as PlatformAvatar, $r as PlatformIcon, Mn as Popover, Nn as PopoverContent, Pn as PopoverDescription, Fn as PopoverHeader, In as PopoverTitle, Ln as PopoverTrigger, ri as Progress, ii as ProgressIndicator, ai as ProgressLabel, oi as ProgressTrack, si as ProgressValue, ia as Questionnaire, aa as QuestionnaireActions, oa as QuestionnaireChoice, sa as QuestionnaireChoiceDescription, ca as QuestionnaireChoices, la as QuestionnaireDescription, ua as QuestionnaireError, da as QuestionnaireInput, fa as QuestionnaireItem, pa as QuestionnaireNext, ma as QuestionnairePrevious, ha as QuestionnaireProgress, ga as QuestionnaireSkip, _a as QuestionnaireSubmit, va as QuestionnaireTitle, ya as RadioGroup, ba as RadioGroupItem, xa as Rating, Sa as ScrollArea, Ca as ScrollBar, wa as SectionHeader, Ta as Select, Ea as SelectContent, Da as SelectGroup, Oa as SelectItem, ka as SelectLabel, Aa as SelectScrollDownButton, ja as SelectScrollUpButton, Ma as SelectSeparator, Na as SelectTrigger, Pa as SelectValue, f as Separator, ae as Sheet, oe as SheetClose, se as SheetContent, ce as SheetDescription, le as SheetFooter, ue as SheetHeader, de as SheetTitle, fe as SheetTrigger, ve as Sidebar, ye as SidebarContent, be as SidebarFooter, xe as SidebarGroup, Se as SidebarGroupAction, Ce as SidebarGroupContent, we as SidebarGroupLabel, Te as SidebarHeader, Ee as SidebarInput, De as SidebarInset, Oe as SidebarMenu, ke as SidebarMenuAction, Ae as SidebarMenuBadge, je as SidebarMenuButton, Me as SidebarMenuItem, Ne as SidebarMenuSkeleton, Pe as SidebarMenuSub, Fe as SidebarMenuSubButton, Ie as SidebarMenuSubItem, Le as SidebarProvider, Re as SidebarRail, ze as SidebarSeparator, Be as SidebarTrigger, Fa as SignalDots, Ia as SignalStrip, pe as Skeleton, La as Slider, Ra as SourceAvatar, za as Sparkline, Ba as Spinner, Qa as StackedBarChart, Va as StaleBanner, Ha as StateBanner, bn as StatusIndicator, Wa as SuggestChips, $a as Switch, Cn as Table, wn as TableBody, Tn as TableCaption, En as TableCell, Dn as TableFooter, On as TableHead, kn as TableHeader, An as TableRow, Ga as Tabs, Ka as TabsContent, qa as TabsList, Ja as TabsTrigger, eo as Tag, to as TagList, Xt as Textarea, no as Toast, ro as ToastAction, io as ToastClose, ao as ToastContent, oo as ToastDescription, so as ToastPortal, co as ToastProvider, lo as ToastTitle, uo as ToastViewport, fo as Toaster, Xa as Toggle, go as ToggleGroup, _o as ToggleGroupItem, me as Tooltip, he as TooltipContent, ge as TooltipProvider, _e as TooltipTrigger, mt as badgeVariants, kt as buttonGroupVariants, r as buttonVariants, Gt as chatBarFormVariants, e as cn, po as createToastManager, Ai as markerVariants, Mi as mediaThumbnailVariants, Vi as metricTileVariants, Ki as navigationActionVariants, di as paceStatusOf, Hn as sortDenseTableRows, Ua as stateBannerVariants, xn as statusDotVariants, Ya as tabsListVariants, mo as toast, Za as toggleVariants, Lt as useCarousel, yn as useComboboxAnchor, Ve as useSidebar, ho as useToastManager };
|