@almanaclabs/blaze-ui 0.19.0 → 0.21.0

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 188px sidebar column, a 56px top bar row, and the page in a white panel on the canvas.
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({ workspace, newItem, sections, bottomItems, activeId, onNavigate, navLabel, renderLink, className, ...props }: AppSidebarProps): React.JSX.Element;
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 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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 { SidebarGroup as a, SidebarGroupContent as o, SidebarGroupLabel as s, SidebarMenu as c, SidebarMenuBadge as l, SidebarMenuButton as u, SidebarMenuItem as d, SidebarProvider as f } from "../sidebar/sidebar.js";
5
- import "react";
6
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
7
- import { IconChevronDown as h, IconPlus as g } from "@tabler/icons-react";
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
- function _({ sidebar: t, topBar: n, mainClassName: r, className: i, children: a, ...o }) {
10
- return /* @__PURE__ */ m("div", {
11
- "data-slot": "app-shell",
12
- className: e("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", i),
13
- ...o,
14
- children: [
15
- t,
16
- n ?? /* @__PURE__ */ p("div", { "data-slot": "app-shell-top-bar-placeholder" }),
17
- /* @__PURE__ */ p("main", {
18
- "data-slot": "app-shell-main",
19
- 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),
20
- children: a
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 v({ end: t, className: n, children: r, ...i }) {
26
- return /* @__PURE__ */ m("header", {
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__ */ p("div", {
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__ */ p("div", {
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 y = (e) => /* @__PURE__ */ p("a", { href: e.href });
42
- function b({ item: e, active: t, onNavigate: n, renderLink: r }) {
43
- let i = e.icon, a = () => {
44
- e.onSelect?.(), n?.(e);
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(d, {
181
+ return /* @__PURE__ */ b(m, {
47
182
  "data-slot": "app-sidebar-item",
48
- children: [/* @__PURE__ */ m(u, {
183
+ children: [/* @__PURE__ */ b(p, {
49
184
  variant: "raised",
50
- isActive: t,
51
- "aria-current": t ? "page" : void 0,
52
- render: e.href ? r({
53
- ...e,
54
- href: e.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
- onClick: a,
57
- children: [i ? /* @__PURE__ */ p(i, { "aria-hidden": "true" }) : null, /* @__PURE__ */ p("span", { children: e.label })]
58
- }), e.count ? /* @__PURE__ */ p(l, {
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: e.count
210
+ children: t.count
61
211
  }) : null]
62
212
  });
63
213
  }
64
- function x({ label: e, children: t }) {
65
- return /* @__PURE__ */ m(a, {
214
+ function B({ label: e, collapsed: t, children: n }) {
215
+ return /* @__PURE__ */ b(c, {
66
216
  className: "p-0",
67
- children: [e ? /* @__PURE__ */ p(s, {
68
- className: "px-2.5",
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__ */ p(o, { children: /* @__PURE__ */ p(c, {
223
+ }) : null, /* @__PURE__ */ y(l, { children: /* @__PURE__ */ y(d, {
71
224
  className: "gap-px",
72
- children: t
225
+ children: n
73
226
  }) })]
74
227
  });
75
228
  }
76
- function S({ workspace: t, newItem: n, sections: r, bottomItems: i, activeId: a, onNavigate: o, navLabel: s = "Workspace", renderLink: c = y, className: l, ...u }) {
77
- let d = (e) => /* @__PURE__ */ p(b, {
229
+ function V({ collapsed: e }) {
230
+ let { toggleSidebar: n } = g(), r = e ? "Expand sidebar" : "Collapse sidebar";
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": r,
238
+ "aria-expanded": !e,
239
+ className: "hidden flex-none md:inline-flex",
240
+ onClick: n
241
+ }),
242
+ children: /* @__PURE__ */ y(e ? C : S, { "aria-hidden": "true" })
243
+ }), /* @__PURE__ */ b(o, {
244
+ side: "right",
245
+ children: [r, /* @__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), h = n ? d({
274
+ }, e.id), _ = n ? h({
83
275
  ...n,
84
- icon: n.icon ?? g
85
- }) : null, [_, ...v] = r, S = !!(h && _ && !_.label);
86
- return /* @__PURE__ */ p("aside", {
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
- className: e("sticky top-0 row-span-2 flex h-screen flex-col self-start overflow-y-auto pt-2.5 pb-3", l),
89
- ...u,
90
- children: /* @__PURE__ */ m(f, {
91
- className: "contents",
280
+ "data-state": m ? "collapsed" : "expanded",
281
+ className: e("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
- t,
94
- /* @__PURE__ */ m("nav", {
286
+ /* @__PURE__ */ b("div", {
287
+ "data-slot": "app-sidebar-header",
288
+ className: e("mb-4 flex items-center gap-1", m && "flex-col gap-2"),
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
- h && !S ? /* @__PURE__ */ p(x, { children: h }) : null,
99
- _ ? /* @__PURE__ */ m(x, {
100
- label: _.label,
101
- children: [S ? h : null, _.items.map(d)]
102
- }, _.id) : null,
103
- v.map((e) => /* @__PURE__ */ p(x, {
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
- children: e.items.map(d)
309
+ collapsed: m,
310
+ children: e.items.map(h)
106
311
  }, e.id))
107
312
  ]
108
313
  }),
109
- i?.length ? /* @__PURE__ */ p("div", {
314
+ i?.length ? /* @__PURE__ */ y("div", {
110
315
  "data-slot": "app-sidebar-bottom",
111
316
  className: "mt-auto pt-4",
112
- children: /* @__PURE__ */ p(x, { children: i.map(d) })
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 C({ name: a, logo: o, children: s, triggerLabel: c, className: l }) {
119
- return /* @__PURE__ */ m(n, { children: [/* @__PURE__ */ m(i, {
120
- render: /* @__PURE__ */ p(t, {
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("mb-4 w-full justify-start gap-2.5 px-1.5", l)
335
+ className: e("w-full justify-start gap-2.5 px-1.5", u && "justify-center px-0", l)
127
336
  }),
128
- children: [
129
- o ? /* @__PURE__ */ p("span", {
130
- className: "flex size-8 flex-none items-center justify-center overflow-hidden rounded-md [&>img]:size-full [&>img]:object-cover",
131
- children: o
132
- }) : null,
133
- /* @__PURE__ */ p("span", {
134
- className: "type-label flex-1 truncate text-left font-medium",
135
- children: a
136
- }),
137
- /* @__PURE__ */ p(h, {
138
- "aria-hidden": "true",
139
- className: "icon-optical-16 text-muted-foreground"
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 { _ as AppShell, S as AppSidebar, C as AppSidebarWorkspace, v as AppTopBar };
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 };
@@ -8,6 +8,23 @@ export interface DenseTableColumn {
8
8
  /** Names a column whose header is visually empty. */
9
9
  srLabel?: string;
10
10
  className?: string;
11
+ /**
12
+ * Makes the header a sort button. The key names the column in `sort` and
13
+ * `onSortChange`; leave it out for a column with no sensible order.
14
+ */
15
+ sortKey?: string;
16
+ /**
17
+ * The direction of the first click. Defaults to descending for numeric
18
+ * columns (highest first) and ascending otherwise; set it to descending for
19
+ * dates so the newest come first.
20
+ */
21
+ firstDirection?: DenseTableSortDirection;
22
+ }
23
+ export type DenseTableSortDirection = 'ascending' | 'descending';
24
+ export interface DenseTableSort {
25
+ /** The `sortKey` of the sorted column. */
26
+ column: string;
27
+ direction: DenseTableSortDirection;
11
28
  }
12
29
  export interface DenseTableProps extends Omit<React.ComponentProps<'div'>, 'children'> {
13
30
  columns: readonly DenseTableColumn[];
@@ -17,16 +34,23 @@ export interface DenseTableProps extends Omit<React.ComponentProps<'div'>, 'chil
17
34
  'aria-label'?: string;
18
35
  /**
19
36
  * `card` sits on a bordered white card with compact rows. `flush` has no
20
- * frame and roomier 17px rows, for a table that is the page section
37
+ * frame and roomier 16px rows, for a table that is the page section
21
38
  * itself, as on the Blaze 4 overview pages (ADR 0029).
22
39
  */
23
40
  variant?: 'card' | 'flush';
41
+ /** The current sort. The table only shows it; the caller orders the rows. */
42
+ sort?: DenseTableSort | null;
43
+ /**
44
+ * Called with the next sort when a sortable header is pressed: the
45
+ * column's first direction, or the reverse when it is already sorted.
46
+ */
47
+ onSortChange?: (sort: DenseTableSort) => void;
24
48
  }
25
49
  /**
26
50
  * A data-heavy table on a white card: compact rows, small muted headers and
27
51
  * right-aligned numbers, for scanning many figures at once.
28
52
  */
29
- declare function DenseTable({ columns, children, className, variant, 'aria-label': ariaLabel, ...props }: DenseTableProps): React.JSX.Element;
53
+ declare function DenseTable({ columns, children, className, variant, sort, onSortChange, 'aria-label': ariaLabel, ...props }: DenseTableProps): React.JSX.Element;
30
54
  declare const DenseTableRow: typeof TableRow;
31
55
  export interface DenseTableCellProps extends React.ComponentProps<'td'> {
32
56
  /** Right-aligned tabular figures in medium weight. */
@@ -38,5 +62,12 @@ export interface DenseTableCellProps extends React.ComponentProps<'td'> {
38
62
  }
39
63
  /** A dense cell: wrapping text, or a right-aligned number with an optional muted line. */
40
64
  declare function DenseTableCell({ numeric, sub, wrap, className, children, ...props }: DenseTableCellProps): React.JSX.Element;
41
- export { DenseTable, DenseTableCell, DenseTableRow };
65
+ type SortValue = number | string | Date | null | undefined;
66
+ /**
67
+ * Orders rows for a `DenseTable` sort. Numbers and dates compare by value,
68
+ * strings by locale. Empty values (null or undefined) always come last, in
69
+ * either direction, and ties keep their incoming order.
70
+ */
71
+ declare function sortDenseTableRows<Row>(rows: readonly Row[], sort: DenseTableSort | null | undefined, value: (row: Row, column: string) => SortValue): Row[];
72
+ export { DenseTable, DenseTableCell, DenseTableRow, sortDenseTableRows };
42
73
  //# sourceMappingURL=dense-table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dense-table.d.ts","sourceRoot":"","sources":["../../../src/components/dense-table/dense-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAML,QAAQ,EACT,MAAM,oBAAoB,CAAA;AAG3B,MAAM,WAAW,gBAAgB;IAC/B,iFAAiF;IACjF,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,mDAAmD;IACnD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAC3B,UAAU,CACX;IACC,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAA;IACpC,uDAAuD;IACvD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAC3B;AAID;;;GAGG;AACH,iBAAS,UAAU,CAAC,EAClB,OAAO,EACP,QAAQ,EACR,SAAS,EACT,OAAgB,EAChB,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACT,EAAE,eAAe,qBAyCjB;AAED,QAAA,MAAM,aAAa,iBAAW,CAAA;AAE9B,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC;IACrE,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,qEAAqE;IACrE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB,uFAAuF;IACvF,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,0FAA0F;AAC1F,iBAAS,cAAc,CAAC,EACtB,OAAe,EACf,GAAG,EACH,IAAe,EACf,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,mBAAmB,qBAsBrB;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,CAAA"}
1
+ {"version":3,"file":"dense-table.d.ts","sourceRoot":"","sources":["../../../src/components/dense-table/dense-table.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAML,QAAQ,EACT,MAAM,oBAAoB,CAAA;AAG3B,MAAM,WAAW,gBAAgB;IAC/B,iFAAiF;IACjF,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,mDAAmD;IACnD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;OAIG;IACH,cAAc,CAAC,EAAE,uBAAuB,CAAA;CACzC;AAED,MAAM,MAAM,uBAAuB,GAAG,WAAW,GAAG,YAAY,CAAA;AAEhE,MAAM,WAAW,cAAc;IAC7B,0CAA0C;IAC1C,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,uBAAuB,CAAA;CACnC;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAC3B,UAAU,CACX;IACC,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAA;IACpC,uDAAuD;IACvD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,gDAAgD;IAChD,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AA"}
@@ -1,47 +1,80 @@
1
1
  import { cn as e } from "../../lib/utils.js";
2
2
  import { Table as t, TableBody as n, TableCell as r, TableHead as i, TableHeader as a, TableRow as o } from "../table/table.js";
3
3
  import * as s from "react";
4
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
4
+ import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
5
+ import { IconArrowDown as d, IconArrowUp as f } from "@tabler/icons-react";
5
6
  //#region src/components/dense-table/dense-table.tsx
6
- var u = s.createContext("card");
7
- function d({ columns: r, children: s, className: d, variant: f = "card", "aria-label": p, ...m }) {
8
- return /* @__PURE__ */ c("div", {
7
+ var p = s.createContext("card");
8
+ function m({ columns: r, children: s, className: m, variant: h = "card", sort: g, onSortChange: _, "aria-label": v, ...y }) {
9
+ return /* @__PURE__ */ l("div", {
9
10
  "data-slot": "dense-table",
10
- "data-variant": f,
11
- className: e("overflow-x-auto", f === "card" && "rounded-xl border border-border bg-card px-2", d),
12
- ...m,
13
- children: /* @__PURE__ */ l(t, {
11
+ "data-variant": h,
12
+ className: e("overflow-x-auto", h === "card" && "rounded-xl border border-border bg-card px-2", m),
13
+ ...y,
14
+ children: /* @__PURE__ */ u(t, {
14
15
  density: "compact",
15
- "aria-label": p,
16
- children: [/* @__PURE__ */ c(a, { children: /* @__PURE__ */ c(o, { children: r.map((t, n) => /* @__PURE__ */ l(i, {
17
- "data-numeric": t.numeric ? "" : void 0,
18
- className: e("type-meta font-medium text-muted-foreground", t.numeric && "text-right", t.className),
19
- children: [t.label, t.srLabel ? /* @__PURE__ */ c("span", {
16
+ "aria-label": v,
17
+ children: [/* @__PURE__ */ l(a, { children: /* @__PURE__ */ l(o, { children: r.map((t, n) => {
18
+ let r = !!(t.sortKey && _), a = r && g?.column === t.sortKey ? g?.direction : void 0, o = /* @__PURE__ */ u(c, { children: [t.label, t.srLabel ? /* @__PURE__ */ l("span", {
20
19
  className: "sr-only",
21
20
  children: t.srLabel
22
- }) : null]
23
- }, n)) }) }), /* @__PURE__ */ c(n, { children: /* @__PURE__ */ c(u.Provider, {
24
- value: f,
21
+ }) : null] });
22
+ return /* @__PURE__ */ l(i, {
23
+ "aria-sort": a,
24
+ "data-numeric": t.numeric ? "" : void 0,
25
+ className: e("type-meta font-medium text-muted-foreground", t.numeric && "text-right", t.className),
26
+ children: r ? /* @__PURE__ */ u("button", {
27
+ type: "button",
28
+ "data-slot": "dense-table-sort",
29
+ onClick: () => _({
30
+ column: t.sortKey,
31
+ direction: a ? a === "descending" ? "ascending" : "descending" : t.firstDirection ?? (t.numeric ? "descending" : "ascending")
32
+ }),
33
+ className: e("inline-flex items-center gap-1 rounded-sm font-medium outline-none hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50", t.numeric && "flex-row-reverse", a && "text-foreground"),
34
+ children: [/* @__PURE__ */ l("span", { children: o }), a === "ascending" ? /* @__PURE__ */ l(f, {
35
+ "aria-hidden": !0,
36
+ className: "size-3"
37
+ }) : a === "descending" ? /* @__PURE__ */ l(d, {
38
+ "aria-hidden": !0,
39
+ className: "size-3"
40
+ }) : null]
41
+ }) : o
42
+ }, n);
43
+ }) }) }), /* @__PURE__ */ l(n, { children: /* @__PURE__ */ l(p.Provider, {
44
+ value: h,
25
45
  children: s
26
46
  }) })]
27
47
  })
28
48
  });
29
49
  }
30
- var f = o;
31
- function p({ numeric: t = !1, sub: n, wrap: i = !t, className: a, children: o, ...d }) {
32
- let f = s.useContext(u) === "flush";
33
- return /* @__PURE__ */ l(r, {
50
+ var h = o;
51
+ function g({ numeric: t = !1, sub: n, wrap: i = !t, className: a, children: o, ...c }) {
52
+ let d = s.useContext(p) === "flush";
53
+ return /* @__PURE__ */ u(r, {
34
54
  "data-numeric": t ? "" : void 0,
35
- className: e(f ? "type-item-title py-3 align-middle group-data-[density=compact]/table:py-3" : "type-body align-top", t && "text-right tabular-nums", i && "whitespace-normal", a),
36
- ...d,
37
- children: [t ? /* @__PURE__ */ c("span", {
55
+ className: e(d ? "type-item-title py-3 align-middle group-data-[density=compact]/table:py-3" : "type-body align-top", t && "text-right tabular-nums", i && "whitespace-normal", a),
56
+ ...c,
57
+ children: [t ? /* @__PURE__ */ l("span", {
38
58
  className: "font-medium",
39
59
  children: o
40
- }) : o, n ? /* @__PURE__ */ c("span", {
60
+ }) : o, n ? /* @__PURE__ */ l("span", {
41
61
  className: "type-meta block text-muted-foreground",
42
62
  children: n
43
63
  }) : null]
44
64
  });
45
65
  }
66
+ function _(e, t, n) {
67
+ if (!t) return [...e];
68
+ let r = t.direction === "ascending" ? 1 : -1;
69
+ return e.map((e) => ({
70
+ row: e,
71
+ key: n(e, t.column)
72
+ })).sort((e, t) => {
73
+ let n = e.key == null, i = t.key == null;
74
+ if (n || i) return Number(n) - Number(i);
75
+ let a = e.key instanceof Date ? e.key.getTime() : e.key, o = t.key instanceof Date ? t.key.getTime() : t.key;
76
+ return (typeof a == "string" && typeof o == "string" ? a.localeCompare(o) : Number(a) - Number(o)) * r;
77
+ }).map(({ row: e }) => e);
78
+ }
46
79
  //#endregion
47
- export { d as DenseTable, p as DenseTableCell, f as DenseTableRow };
80
+ export { m as DenseTable, g as DenseTableCell, h as DenseTableRow, _ as sortDenseTableRows };
@@ -5,7 +5,7 @@ import { jsx as t } from "react/jsx-runtime";
5
5
  function n({ className: n, ...r }) {
6
6
  return /* @__PURE__ */ t("textarea", {
7
7
  "data-slot": "textarea",
8
- className: e("type-content flex field-sizing-content min-h-[92px] w-full rounded-md border border-input bg-card px-[13px] py-3 text-foreground transition-colors outline-none placeholder:text-foreground-tertiary hover:border-foreground/15 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-border-subtle disabled:cursor-not-allowed disabled:bg-surface-subtle disabled:text-foreground-tertiary aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/10 dark:aria-invalid:border-destructive/60 dark:aria-invalid:ring-destructive/20", n),
8
+ className: e("type-content max-sm:text-base! flex field-sizing-content min-h-[92px] w-full rounded-md border border-input bg-card px-[13px] py-3 text-foreground transition-colors outline-none placeholder:text-foreground-tertiary hover:border-foreground/15 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-border-subtle disabled:cursor-not-allowed disabled:bg-surface-subtle disabled:text-foreground-tertiary aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/10 dark:aria-invalid:border-destructive/60 dark:aria-invalid:ring-destructive/20", n),
9
9
  ...r
10
10
  });
11
11
  }
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 { AppShell as He, AppSidebar as Ue, AppSidebarWorkspace as We, AppTopBar as Ge } from "./components/app-shell/app-shell.js";
17
- import { ApprovalCard as Ke } from "./components/approval-card/approval-card.js";
18
- import { AspectRatio as qe } from "./components/aspect-ratio/aspect-ratio.js";
19
- import { Attachment as Je, AttachmentAction as Ye, AttachmentActions as Xe, AttachmentContent as Ze, AttachmentDescription as Qe, AttachmentGroup as $e, AttachmentMedia as et, AttachmentTitle as tt, AttachmentTrigger as nt } from "./components/attachment/attachment.js";
20
- import { Avatar as rt, AvatarBadge as it, AvatarFallback as at, AvatarGroup as ot, AvatarGroupCount as st, AvatarImage as ct } from "./components/avatar/avatar.js";
21
- import { Badge as lt, badgeVariants as ut } from "./components/badge/badge.js";
22
- import { Breadcrumb as dt, BreadcrumbEllipsis as ft, BreadcrumbItem as pt, BreadcrumbLink as mt, BreadcrumbList as ht, BreadcrumbPage as gt, BreadcrumbSeparator as _t } from "./components/breadcrumb/breadcrumb.js";
23
- import { Bubble as vt, BubbleContent as yt, BubbleGroup as bt, BubbleReactions as xt } from "./components/bubble/bubble.js";
24
- import { ButtonGroup as St, ButtonGroupSeparator as Ct, ButtonGroupText as wt, buttonGroupVariants as Tt } from "./components/button-group/button-group.js";
25
- import { Calendar as Et, CalendarDayButton as Dt } from "./components/calendar/calendar.js";
26
- import { Carousel as Ot, CarouselContent as kt, CarouselItem as At, CarouselNext as jt, CarouselPrevious as Mt, useCarousel as Nt } from "./components/carousel/carousel.js";
27
- import { ChartContainer as Pt, ChartLegend as Ft, ChartLegendContent as It, ChartStyle as Lt, ChartTooltip as Rt, ChartTooltipContent as zt } from "./components/chart/chart.js";
28
- import { ChatBar as Bt, chatBarFormVariants as Vt } from "./components/chat-bar/chat-bar.js";
29
- import { Checkbox as Ht } from "./components/checkbox/checkbox.js";
30
- import { Collapsible as Ut, CollapsibleContent as Wt, CollapsibleTrigger as Gt } from "./components/collapsible/collapsible.js";
31
- import { Textarea as Kt } from "./components/textarea/textarea.js";
32
- import { InputGroup as qt, InputGroupAddon as Jt, InputGroupButton as Yt, InputGroupInput as Xt, InputGroupText as Zt, InputGroupTextarea as Qt } from "./components/input-group/input-group.js";
33
- import { Combobox as $t, ComboboxChip as en, ComboboxChips as tn, ComboboxChipsInput as nn, ComboboxCollection as rn, ComboboxContent as an, ComboboxEmpty as on, ComboboxGroup as sn, ComboboxInput as cn, ComboboxItem as ln, ComboboxLabel as un, ComboboxList as dn, ComboboxSeparator as fn, ComboboxTrigger as pn, ComboboxValue as mn, useComboboxAnchor as hn } from "./components/combobox/combobox.js";
34
- import { StatusIndicator as gn, statusDotVariants as _n } from "./components/status-indicator/status-indicator.js";
35
- import { ConnectNotice as vn } from "./components/connect-notice/connect-notice.js";
36
- import { Table as yn, TableBody as bn, TableCaption as xn, TableCell as Sn, TableFooter as Cn, TableHead as wn, TableHeader as Tn, TableRow as En } from "./components/table/table.js";
37
- import { DataTable as Dn } from "./components/data-table/data-table.js";
38
- import { Popover as On, PopoverContent as kn, PopoverDescription as An, PopoverHeader as jn, PopoverTitle as Mn, PopoverTrigger as Nn } from "./components/popover/popover.js";
39
- import { DatePicker as Pn } from "./components/date-picker/date-picker.js";
40
- import { DenseTable as Fn, DenseTableCell as In, DenseTableRow as Ln } from "./components/dense-table/dense-table.js";
41
- import { DetailList as Rn, DetailListItem as zn } from "./components/detail-list/detail-list.js";
42
- import { Dialog as Bn, DialogClose as Vn, DialogContent as Hn, DialogDescription as Un, DialogFooter as Wn, DialogHeader as Gn, DialogOverlay as Kn, DialogPortal as qn, DialogTitle as Jn, DialogTrigger as Yn } from "./components/dialog/dialog.js";
43
- import { Drawer as Xn, DrawerClose as Zn, DrawerContent as Qn, DrawerDescription as $n, DrawerFooter as er, DrawerHeader as tr, DrawerOverlay as nr, DrawerPortal as rr, DrawerSwipeHandle as ir, DrawerTitle as ar, DrawerTrigger as or } from "./components/drawer/drawer.js";
44
- import { EditableText as sr } from "./components/editable-text/editable-text.js";
45
- import { Empty as cr, EmptyContent as lr, EmptyDescription as ur, EmptyHeader as dr, EmptyMedia as fr, EmptyTitle as pr } from "./components/empty/empty.js";
46
- import { BrandApple as mr, BrandBeehiiv as hr, BrandBing as gr, BrandBluesky as _r, BrandChatgpt as vr, BrandEmail as yr, BrandFacebook as br, BrandGithub as xr, BrandGmail as Sr, BrandGodaddy as Cr, BrandGoogle as wr, BrandGoogleDocs as Tr, BrandInstagram as Er, BrandLinkedin as Dr, BrandMeta as Or, BrandMicrosoft as kr, BrandOutlook as Ar, BrandPerplexity as jr, BrandPhone as Mr, BrandReddit as Nr, BrandSearchConsole as Pr, BrandShopify as Fr, BrandSquarespace as Ir, BrandThreads as Lr, BrandTiktok as Rr, BrandWordpress as zr, BrandX as Br, BrandYelp as Vr, BrandYoutube as Hr, BrandZapier as Ur, PLATFORMS as Wr, PLATFORM_COLOR as Gr, PLATFORM_ICON as Kr, PLATFORM_LABEL as qr, PlatformIcon as Jr } from "./components/platform-icon/platform-icon.js";
47
- import { PlatformAvatar as Yr } from "./components/platform-avatar/platform-avatar.js";
48
- import { FaceStackButton as Xr } from "./components/face-stack-button/face-stack-button.js";
49
- import { FilterChips as Zr } from "./components/filter-chips/filter-chips.js";
50
- import { Progress as Qr, ProgressIndicator as $r, ProgressLabel as ei, ProgressTrack as ti, ProgressValue as ni } from "./components/progress/progress.js";
51
- import { GoalCard as ri, PaceBadge as ii, PaceMeter as ai, paceStatusOf as oi } from "./components/goal-card/goal-card.js";
52
- import { HoverCard as si, HoverCardContent as ci, HoverCardTrigger as li } from "./components/hover-card/hover-card.js";
53
- import { IdentityMark as ui, IdentityMarkImage as di } from "./components/identity-mark/identity-mark.js";
54
- import { Item as fi, ItemActions as pi, ItemContent as mi, ItemDescription as hi, ItemFooter as gi, ItemGroup as _i, ItemHeader as vi, ItemMedia as yi, ItemSeparator as bi, ItemTitle as xi } from "./components/item/item.js";
55
- import { Marker as Si, MarkerContent as Ci, MarkerIcon as wi, markerVariants as Ti } from "./components/marker/marker.js";
56
- import { MediaThumbnail as Ei, mediaThumbnailVariants as Di } from "./components/media-thumbnail/media-thumbnail.js";
57
- import { Message as Oi, MessageAvatar as ki, MessageContent as Ai, MessageFooter as ji, MessageGroup as Mi, MessageHeader as Ni } from "./components/message/message.js";
58
- import { MetricOverview as Pi } from "./components/metric-overview/metric-overview.js";
59
- import { MetricTile as Fi, metricTileVariants as Ii } from "./components/metric-tile/metric-tile.js";
60
- import { NativeSelect as Li, NativeSelectOptGroup as Ri, NativeSelectOption as zi } from "./components/native-select/native-select.js";
61
- import { NavigationAction as Bi, navigationActionVariants as Vi } from "./components/navigation-action/navigation-action.js";
62
- import { PageHeader as Hi } from "./components/page-header/page-header.js";
63
- import { Pagination as Ui, PaginationContent as Wi, PaginationEllipsis as Gi, PaginationItem as Ki, PaginationLink as qi, PaginationNext as Ji, PaginationPrevious as Yi } from "./components/pagination/pagination.js";
64
- import { CHANNELS as Xi, CHANNEL_COLOR as Zi } from "./components/platform-icon/channel-color.js";
65
- import { LetterMark as Qi } from "./components/platform-icon/letter-mark.js";
66
- import { Questionnaire as $i, QuestionnaireActions as ea, QuestionnaireChoice as ta, QuestionnaireChoiceDescription as na, QuestionnaireChoices as ra, QuestionnaireDescription as ia, QuestionnaireError as aa, QuestionnaireInput as oa, QuestionnaireItem as sa, QuestionnaireNext as ca, QuestionnairePrevious as la, QuestionnaireProgress as ua, QuestionnaireSkip as da, QuestionnaireSubmit as fa, QuestionnaireTitle as pa } from "./components/questionnaire/questionnaire.js";
67
- import { RadioGroup as ma, RadioGroupItem as ha } from "./components/radio-group/radio-group.js";
68
- import { Rating as ga } from "./components/rating/rating.js";
69
- import { ScrollArea as _a, ScrollBar as va } from "./components/scroll-area/scroll-area.js";
70
- import { SectionHeader as ya } from "./components/section-header/section-header.js";
71
- import { Select as ba, SelectContent as xa, SelectGroup as Sa, SelectItem as Ca, SelectLabel as wa, SelectScrollDownButton as Ta, SelectScrollUpButton as Ea, SelectSeparator as Da, SelectTrigger as Oa, SelectValue as ka } from "./components/select/select.js";
72
- import { SignalDots as Aa, SignalStrip as ja } from "./components/signal-strip/signal-strip.js";
73
- import { Slider as Ma } from "./components/slider/slider.js";
74
- import { SourceAvatar as Na } from "./components/source-avatar/source-avatar.js";
75
- import { Sparkline as Pa } from "./components/sparkline/sparkline.js";
76
- import { Spinner as Fa } from "./components/spinner/spinner.js";
77
- import { StaleBanner as Ia, StateBanner as La, stateBannerVariants as Ra } from "./components/state-banner/state-banner.js";
78
- import { SuggestChips as za } from "./components/suggest-chips/suggest-chips.js";
79
- import { Tabs as Ba, TabsContent as Va, TabsList as Ha, TabsTrigger as Ua, tabsListVariants as Wa } from "./components/tabs/tabs.js";
80
- import { Toggle as Ga, toggleVariants as Ka } from "./components/toggle/toggle.js";
81
- import { StackedBarChart as qa } from "./components/stacked-bar-chart/stacked-bar-chart.js";
82
- import { Switch as Ja } from "./components/switch/switch.js";
83
- import { Tag as Ya, TagList as Xa } from "./components/tag/tag.js";
84
- import { Toast as Za, ToastAction as Qa, ToastClose as $a, ToastContent as eo, ToastDescription as to, ToastPortal as no, ToastProvider as ro, ToastTitle as io, ToastViewport as ao, Toaster as oo, createToastManager as so, toast as co, useToastManager as lo } from "./components/toast/toast.js";
85
- import { ToggleGroup as uo, ToggleGroupItem as fo } from "./components/toggle-group/toggle-group.js";
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, He as AppShell, Ue as AppSidebar, We as AppSidebarWorkspace, Ge as AppTopBar, Ke as ApprovalCard, qe as AspectRatio, Je as Attachment, Ye as AttachmentAction, Xe as AttachmentActions, Ze as AttachmentContent, Qe as AttachmentDescription, $e as AttachmentGroup, et as AttachmentMedia, tt as AttachmentTitle, nt as AttachmentTrigger, rt as Avatar, it as AvatarBadge, at as AvatarFallback, ot as AvatarGroup, st as AvatarGroupCount, ct as AvatarImage, lt as Badge, mr as BrandApple, hr as BrandBeehiiv, gr as BrandBing, _r as BrandBluesky, vr as BrandChatgpt, yr as BrandEmail, br as BrandFacebook, xr as BrandGithub, Sr as BrandGmail, Cr as BrandGodaddy, wr as BrandGoogle, Tr as BrandGoogleDocs, Er as BrandInstagram, Dr as BrandLinkedin, Or as BrandMeta, kr as BrandMicrosoft, Ar as BrandOutlook, jr as BrandPerplexity, Mr as BrandPhone, Nr as BrandReddit, Pr as BrandSearchConsole, Fr as BrandShopify, Ir as BrandSquarespace, Lr as BrandThreads, Rr as BrandTiktok, zr as BrandWordpress, Br as BrandX, Vr as BrandYelp, Hr as BrandYoutube, Ur as BrandZapier, dt as Breadcrumb, ft as BreadcrumbEllipsis, pt as BreadcrumbItem, mt as BreadcrumbLink, ht as BreadcrumbList, gt as BreadcrumbPage, _t as BreadcrumbSeparator, vt as Bubble, yt as BubbleContent, bt as BubbleGroup, xt as BubbleReactions, t as Button, St as ButtonGroup, Ct as ButtonGroupSeparator, wt as ButtonGroupText, n as ButtonLabel, Xi as CHANNELS, Zi as CHANNEL_COLOR, Et as Calendar, Dt as CalendarDayButton, i as Card, a as CardAction, o as CardContent, s as CardDescription, c as CardFooter, l as CardHeader, u as CardTitle, Ot as Carousel, kt as CarouselContent, At as CarouselItem, jt as CarouselNext, Mt as CarouselPrevious, Pt as ChartContainer, Ft as ChartLegend, It as ChartLegendContent, Lt as ChartStyle, Rt as ChartTooltip, zt as ChartTooltipContent, Bt as ChatBar, Ht as Checkbox, Ut as Collapsible, Wt as CollapsibleContent, Gt as CollapsibleTrigger, $t as Combobox, en as ComboboxChip, tn as ComboboxChips, nn as ComboboxChipsInput, rn as ComboboxCollection, an as ComboboxContent, on as ComboboxEmpty, sn as ComboboxGroup, cn as ComboboxInput, ln as ComboboxItem, un as ComboboxLabel, dn as ComboboxList, fn as ComboboxSeparator, pn as ComboboxTrigger, mn as ComboboxValue, vn as ConnectNotice, Dn as DataTable, Pn as DatePicker, Fn as DenseTable, In as DenseTableCell, Ln as DenseTableRow, Rn as DetailList, zn as DetailListItem, Bn as Dialog, Vn as DialogClose, Hn as DialogContent, Un as DialogDescription, Wn as DialogFooter, Gn as DialogHeader, Kn as DialogOverlay, qn as DialogPortal, Jn as DialogTitle, Yn as DialogTrigger, Xn as Drawer, Zn as DrawerClose, Qn as DrawerContent, $n as DrawerDescription, er as DrawerFooter, tr as DrawerHeader, nr as DrawerOverlay, rr as DrawerPortal, ir as DrawerSwipeHandle, ar as DrawerTitle, or 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, sr as EditableText, cr as Empty, lr as EmptyContent, ur as EmptyDescription, dr as EmptyHeader, fr as EmptyMedia, pr as EmptyTitle, Xr 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, Zr as FilterChips, ri as GoalCard, si as HoverCard, ci as HoverCardContent, li as HoverCardTrigger, ui as IdentityMark, di as IdentityMarkImage, C as Input, qt as InputGroup, Jt as InputGroupAddon, Yt as InputGroupButton, Xt as InputGroupInput, Zt as InputGroupText, Qt as InputGroupTextarea, fi as Item, pi as ItemActions, mi as ItemContent, hi as ItemDescription, gi as ItemFooter, _i as ItemGroup, vi as ItemHeader, yi as ItemMedia, bi as ItemSeparator, xi as ItemTitle, d as Label, Qi as LetterMark, Si as Marker, Ci as MarkerContent, wi as MarkerIcon, Ei as MediaThumbnail, Oi as Message, ki as MessageAvatar, Ai as MessageContent, ji as MessageFooter, Mi as MessageGroup, Ni as MessageHeader, Pi as MetricOverview, Fi as MetricTile, Li as NativeSelect, Ri as NativeSelectOptGroup, zi as NativeSelectOption, Bi as NavigationAction, Wr as PLATFORMS, Gr as PLATFORM_COLOR, Kr as PLATFORM_ICON, qr as PLATFORM_LABEL, ii as PaceBadge, ai as PaceMeter, Hi as PageHeader, Ui as Pagination, Wi as PaginationContent, Gi as PaginationEllipsis, Ki as PaginationItem, qi as PaginationLink, Ji as PaginationNext, Yi as PaginationPrevious, Yr as PlatformAvatar, Jr as PlatformIcon, On as Popover, kn as PopoverContent, An as PopoverDescription, jn as PopoverHeader, Mn as PopoverTitle, Nn as PopoverTrigger, Qr as Progress, $r as ProgressIndicator, ei as ProgressLabel, ti as ProgressTrack, ni as ProgressValue, $i as Questionnaire, ea as QuestionnaireActions, ta as QuestionnaireChoice, na as QuestionnaireChoiceDescription, ra as QuestionnaireChoices, ia as QuestionnaireDescription, aa as QuestionnaireError, oa as QuestionnaireInput, sa as QuestionnaireItem, ca as QuestionnaireNext, la as QuestionnairePrevious, ua as QuestionnaireProgress, da as QuestionnaireSkip, fa as QuestionnaireSubmit, pa as QuestionnaireTitle, ma as RadioGroup, ha as RadioGroupItem, ga as Rating, _a as ScrollArea, va as ScrollBar, ya as SectionHeader, ba as Select, xa as SelectContent, Sa as SelectGroup, Ca as SelectItem, wa as SelectLabel, Ta as SelectScrollDownButton, Ea as SelectScrollUpButton, Da as SelectSeparator, Oa as SelectTrigger, ka 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, Aa as SignalDots, ja as SignalStrip, pe as Skeleton, Ma as Slider, Na as SourceAvatar, Pa as Sparkline, Fa as Spinner, qa as StackedBarChart, Ia as StaleBanner, La as StateBanner, gn as StatusIndicator, za as SuggestChips, Ja as Switch, yn as Table, bn as TableBody, xn as TableCaption, Sn as TableCell, Cn as TableFooter, wn as TableHead, Tn as TableHeader, En as TableRow, Ba as Tabs, Va as TabsContent, Ha as TabsList, Ua as TabsTrigger, Ya as Tag, Xa as TagList, Kt as Textarea, Za as Toast, Qa as ToastAction, $a as ToastClose, eo as ToastContent, to as ToastDescription, no as ToastPortal, ro as ToastProvider, io as ToastTitle, ao as ToastViewport, oo as Toaster, Ga as Toggle, uo as ToggleGroup, fo as ToggleGroupItem, me as Tooltip, he as TooltipContent, ge as TooltipProvider, _e as TooltipTrigger, ut as badgeVariants, Tt as buttonGroupVariants, r as buttonVariants, Vt as chatBarFormVariants, e as cn, so as createToastManager, Ti as markerVariants, Di as mediaThumbnailVariants, Ii as metricTileVariants, Vi as navigationActionVariants, oi as paceStatusOf, Ra as stateBannerVariants, _n as statusDotVariants, Wa as tabsListVariants, co as toast, Ka as toggleVariants, Nt as useCarousel, hn as useComboboxAnchor, Ve as useSidebar, lo as useToastManager };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almanaclabs/blaze-ui",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "description": "Shared React components and design tokens for Blaze",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -163,7 +163,8 @@
163
163
  --type-section-title-line-height: 1.3;
164
164
  --type-section-title-letter-spacing: 0;
165
165
  --type-section-title-weight: 500;
166
- --type-item-title-size: 1.0625rem;
166
+ /* Body text sits at the sidebar's 15px; row titles one step above (ADR 0032). */
167
+ --type-item-title-size: 1rem;
167
168
  --type-item-title-line-height: 1.5;
168
169
  /* A standalone number in a tile or goal card: 22px regular, set a little tight. */
169
170
  --type-metric-size: 1.375rem;
@@ -175,7 +176,7 @@
175
176
  --type-stat-letter-spacing: -0.02em;
176
177
  --type-accent-title-size: 1.5625rem;
177
178
  --type-accent-title-line-height: 1.12;
178
- --type-content-size: 1rem;
179
+ --type-content-size: 0.9375rem;
179
180
  --type-content-line-height: 1.4;
180
181
  --type-content-letter-spacing: 0;
181
182
  --type-label-size: 0.875rem;
@@ -526,6 +527,9 @@
526
527
  */
527
528
  .theme-huck {
528
529
  /* Huck keeps ADR 0019's type: 28px semibold page titles, 17px semibold sections. */
530
+ /* It also keeps 17px row titles and 16px content (ADR 0032). */
531
+ --type-item-title-size: 1.0625rem;
532
+ --type-content-size: 1rem;
529
533
  --type-page-title-size: 1.75rem;
530
534
  --type-page-title-line-height: 1.14;
531
535
  --type-page-title-weight: 600;