@almanaclabs/blaze-ui 0.19.0 → 0.20.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.
- package/dist/components/app-shell/app-shell.d.ts.map +1 -1
- package/dist/components/app-shell/app-shell.js +2 -2
- package/dist/components/dense-table/dense-table.d.ts +34 -3
- package/dist/components/dense-table/dense-table.d.ts.map +1 -1
- package/dist/components/dense-table/dense-table.js +58 -25
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/index.js +47 -47
- package/package.json +1 -1
- package/src/styles/globals.css +6 -2
|
@@ -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;AAuB9B,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;CACvB,CAAA;AAED;;;GAGG;AACH,iBAAS,QAAQ,CAAC,EAChB,OAAO,EACP,MAAM,EACN,aAAa,EACb,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,aAAa,qBAuBf;AAID,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,aAA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,EACR,UAAU,EACV,QAAsB,EACtB,UAA8B,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,eAAe,qBAmDjB;AAID,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,4FAA4F;AAC5F,iBAAS,mBAAmB,CAAC,EAC3B,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,SAAS,GACV,EAAE,wBAAwB,qBAsC1B;AAED,OAAO,EACL,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"}
|
|
@@ -40,8 +40,8 @@ function v({ end: t, className: n, children: r, ...i }) {
|
|
|
40
40
|
}
|
|
41
41
|
var y = (e) => /* @__PURE__ */ p("a", { href: e.href });
|
|
42
42
|
function b({ item: e, active: t, onNavigate: n, renderLink: r }) {
|
|
43
|
-
let i = e.icon, a = () => {
|
|
44
|
-
e.onSelect?.(), n?.(e);
|
|
43
|
+
let i = e.icon, a = (t) => {
|
|
44
|
+
t.detail > 0 && t.currentTarget.blur(), e.onSelect?.(), n?.(e);
|
|
45
45
|
};
|
|
46
46
|
return /* @__PURE__ */ m(d, {
|
|
47
47
|
"data-slot": "app-sidebar-item",
|
|
@@ -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
|
|
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
|
-
|
|
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":"
|
|
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,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AAO,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,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAAA;AAE1D;;;;GAIG;AACH,iBAAS,kBAAkB,CAAC,GAAG,EAC7B,IAAI,EAAE,SAAS,GAAG,EAAE,EACpB,IAAI,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,EACvC,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,KAAK,SAAS,GAC7C,GAAG,EAAE,CAkBP;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -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 {
|
|
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
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */
|
|
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":
|
|
11
|
-
className: e("overflow-x-auto",
|
|
12
|
-
...
|
|
13
|
-
children: /* @__PURE__ */
|
|
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":
|
|
16
|
-
children: [/* @__PURE__ */
|
|
17
|
-
|
|
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
|
-
|
|
24
|
-
|
|
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
|
|
31
|
-
function
|
|
32
|
-
let
|
|
33
|
-
return /* @__PURE__ */
|
|
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(
|
|
36
|
-
...
|
|
37
|
-
children: [t ? /* @__PURE__ */
|
|
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__ */
|
|
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 {
|
|
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
|
@@ -37,50 +37,50 @@ import { Table as yn, TableBody as bn, TableCaption as xn, TableCell as Sn, Tabl
|
|
|
37
37
|
import { DataTable as Dn } from "./components/data-table/data-table.js";
|
|
38
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
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
|
|
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, 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,
|
|
40
|
+
import { DenseTable as Fn, DenseTableCell as In, DenseTableRow as Ln, sortDenseTableRows as Rn } from "./components/dense-table/dense-table.js";
|
|
41
|
+
import { DetailList as zn, DetailListItem as Bn } from "./components/detail-list/detail-list.js";
|
|
42
|
+
import { Dialog as Vn, DialogClose as Hn, DialogContent as Un, DialogDescription as Wn, DialogFooter as Gn, DialogHeader as Kn, DialogOverlay as qn, DialogPortal as Jn, DialogTitle as Yn, DialogTrigger as Xn } from "./components/dialog/dialog.js";
|
|
43
|
+
import { Drawer as Zn, DrawerClose as Qn, DrawerContent as $n, DrawerDescription as er, DrawerFooter as tr, DrawerHeader as nr, DrawerOverlay as rr, DrawerPortal as ir, DrawerSwipeHandle as ar, DrawerTitle as or, DrawerTrigger as sr } from "./components/drawer/drawer.js";
|
|
44
|
+
import { EditableText as cr } from "./components/editable-text/editable-text.js";
|
|
45
|
+
import { Empty as lr, EmptyContent as ur, EmptyDescription as dr, EmptyHeader as fr, EmptyMedia as pr, EmptyTitle as mr } from "./components/empty/empty.js";
|
|
46
|
+
import { BrandApple as hr, BrandBeehiiv as gr, BrandBing as _r, BrandBluesky as vr, BrandChatgpt as yr, BrandEmail as br, BrandFacebook as xr, BrandGithub as Sr, BrandGmail as Cr, BrandGodaddy as wr, BrandGoogle as Tr, BrandGoogleDocs as Er, BrandInstagram as Dr, BrandLinkedin as Or, BrandMeta as kr, BrandMicrosoft as Ar, BrandOutlook as jr, BrandPerplexity as Mr, BrandPhone as Nr, BrandReddit as Pr, BrandSearchConsole as Fr, BrandShopify as Ir, BrandSquarespace as Lr, BrandThreads as Rr, BrandTiktok as zr, BrandWordpress as Br, BrandX as Vr, BrandYelp as Hr, BrandYoutube as Ur, BrandZapier as Wr, PLATFORMS as Gr, PLATFORM_COLOR as Kr, PLATFORM_ICON as qr, PLATFORM_LABEL as Jr, PlatformIcon as Yr } from "./components/platform-icon/platform-icon.js";
|
|
47
|
+
import { PlatformAvatar as Xr } from "./components/platform-avatar/platform-avatar.js";
|
|
48
|
+
import { FaceStackButton as Zr } from "./components/face-stack-button/face-stack-button.js";
|
|
49
|
+
import { FilterChips as Qr } from "./components/filter-chips/filter-chips.js";
|
|
50
|
+
import { Progress as $r, ProgressIndicator as ei, ProgressLabel as ti, ProgressTrack as ni, ProgressValue as ri } from "./components/progress/progress.js";
|
|
51
|
+
import { GoalCard as ii, PaceBadge as ai, PaceMeter as oi, paceStatusOf as si } from "./components/goal-card/goal-card.js";
|
|
52
|
+
import { HoverCard as ci, HoverCardContent as li, HoverCardTrigger as ui } from "./components/hover-card/hover-card.js";
|
|
53
|
+
import { IdentityMark as di, IdentityMarkImage as fi } from "./components/identity-mark/identity-mark.js";
|
|
54
|
+
import { Item as pi, ItemActions as mi, ItemContent as hi, ItemDescription as gi, ItemFooter as _i, ItemGroup as vi, ItemHeader as yi, ItemMedia as bi, ItemSeparator as xi, ItemTitle as Si } from "./components/item/item.js";
|
|
55
|
+
import { Marker as Ci, MarkerContent as wi, MarkerIcon as Ti, markerVariants as Ei } from "./components/marker/marker.js";
|
|
56
|
+
import { MediaThumbnail as Di, mediaThumbnailVariants as Oi } from "./components/media-thumbnail/media-thumbnail.js";
|
|
57
|
+
import { Message as ki, MessageAvatar as Ai, MessageContent as ji, MessageFooter as Mi, MessageGroup as Ni, MessageHeader as Pi } from "./components/message/message.js";
|
|
58
|
+
import { MetricOverview as Fi } from "./components/metric-overview/metric-overview.js";
|
|
59
|
+
import { MetricTile as Ii, metricTileVariants as Li } from "./components/metric-tile/metric-tile.js";
|
|
60
|
+
import { NativeSelect as Ri, NativeSelectOptGroup as zi, NativeSelectOption as Bi } from "./components/native-select/native-select.js";
|
|
61
|
+
import { NavigationAction as Vi, navigationActionVariants as Hi } from "./components/navigation-action/navigation-action.js";
|
|
62
|
+
import { PageHeader as Ui } from "./components/page-header/page-header.js";
|
|
63
|
+
import { Pagination as Wi, PaginationContent as Gi, PaginationEllipsis as Ki, PaginationItem as qi, PaginationLink as Ji, PaginationNext as Yi, PaginationPrevious as Xi } from "./components/pagination/pagination.js";
|
|
64
|
+
import { CHANNELS as Zi, CHANNEL_COLOR as Qi } from "./components/platform-icon/channel-color.js";
|
|
65
|
+
import { LetterMark as $i } from "./components/platform-icon/letter-mark.js";
|
|
66
|
+
import { Questionnaire as ea, QuestionnaireActions as ta, QuestionnaireChoice as na, QuestionnaireChoiceDescription as ra, QuestionnaireChoices as ia, QuestionnaireDescription as aa, QuestionnaireError as oa, QuestionnaireInput as sa, QuestionnaireItem as ca, QuestionnaireNext as la, QuestionnairePrevious as ua, QuestionnaireProgress as da, QuestionnaireSkip as fa, QuestionnaireSubmit as pa, QuestionnaireTitle as ma } from "./components/questionnaire/questionnaire.js";
|
|
67
|
+
import { RadioGroup as ha, RadioGroupItem as ga } from "./components/radio-group/radio-group.js";
|
|
68
|
+
import { Rating as _a } from "./components/rating/rating.js";
|
|
69
|
+
import { ScrollArea as va, ScrollBar as ya } from "./components/scroll-area/scroll-area.js";
|
|
70
|
+
import { SectionHeader as ba } from "./components/section-header/section-header.js";
|
|
71
|
+
import { Select as xa, SelectContent as Sa, SelectGroup as Ca, SelectItem as wa, SelectLabel as Ta, SelectScrollDownButton as Ea, SelectScrollUpButton as Da, SelectSeparator as Oa, SelectTrigger as ka, SelectValue as Aa } from "./components/select/select.js";
|
|
72
|
+
import { SignalDots as ja, SignalStrip as Ma } from "./components/signal-strip/signal-strip.js";
|
|
73
|
+
import { Slider as Na } from "./components/slider/slider.js";
|
|
74
|
+
import { SourceAvatar as Pa } from "./components/source-avatar/source-avatar.js";
|
|
75
|
+
import { Sparkline as Fa } from "./components/sparkline/sparkline.js";
|
|
76
|
+
import { Spinner as Ia } from "./components/spinner/spinner.js";
|
|
77
|
+
import { StaleBanner as La, StateBanner as Ra, stateBannerVariants as za } from "./components/state-banner/state-banner.js";
|
|
78
|
+
import { SuggestChips as Ba } from "./components/suggest-chips/suggest-chips.js";
|
|
79
|
+
import { Tabs as Va, TabsContent as Ha, TabsList as Ua, TabsTrigger as Wa, tabsListVariants as Ga } from "./components/tabs/tabs.js";
|
|
80
|
+
import { Toggle as Ka, toggleVariants as qa } from "./components/toggle/toggle.js";
|
|
81
|
+
import { StackedBarChart as Ja } from "./components/stacked-bar-chart/stacked-bar-chart.js";
|
|
82
|
+
import { Switch as Ya } from "./components/switch/switch.js";
|
|
83
|
+
import { Tag as Xa, TagList as Za } from "./components/tag/tag.js";
|
|
84
|
+
import { Toast as Qa, ToastAction as $a, ToastClose as eo, ToastContent as to, ToastDescription as no, ToastPortal as ro, ToastProvider as io, ToastTitle as ao, ToastViewport as oo, Toaster as so, createToastManager as co, toast as lo, useToastManager as uo } from "./components/toast/toast.js";
|
|
85
|
+
import { ToggleGroup as fo, ToggleGroupItem as po } 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, hr as BrandApple, gr as BrandBeehiiv, _r as BrandBing, vr as BrandBluesky, yr as BrandChatgpt, br as BrandEmail, xr as BrandFacebook, Sr as BrandGithub, Cr as BrandGmail, wr as BrandGodaddy, Tr as BrandGoogle, Er as BrandGoogleDocs, Dr as BrandInstagram, Or as BrandLinkedin, kr as BrandMeta, Ar as BrandMicrosoft, jr as BrandOutlook, Mr as BrandPerplexity, Nr as BrandPhone, Pr as BrandReddit, Fr as BrandSearchConsole, Ir as BrandShopify, Lr as BrandSquarespace, Rr as BrandThreads, zr as BrandTiktok, Br as BrandWordpress, Vr as BrandX, Hr as BrandYelp, Ur as BrandYoutube, Wr 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, Zi as CHANNELS, Qi 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, zn as DetailList, Bn as DetailListItem, Vn as Dialog, Hn as DialogClose, Un as DialogContent, Wn as DialogDescription, Gn as DialogFooter, Kn as DialogHeader, qn as DialogOverlay, Jn as DialogPortal, Yn as DialogTitle, Xn as DialogTrigger, Zn as Drawer, Qn as DrawerClose, $n as DrawerContent, er as DrawerDescription, tr as DrawerFooter, nr as DrawerHeader, rr as DrawerOverlay, ir as DrawerPortal, ar as DrawerSwipeHandle, or as DrawerTitle, sr 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, cr as EditableText, lr as Empty, ur as EmptyContent, dr as EmptyDescription, fr as EmptyHeader, pr as EmptyMedia, mr as EmptyTitle, Zr 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, Qr as FilterChips, ii as GoalCard, ci as HoverCard, li as HoverCardContent, ui as HoverCardTrigger, di as IdentityMark, fi as IdentityMarkImage, C as Input, qt as InputGroup, Jt as InputGroupAddon, Yt as InputGroupButton, Xt as InputGroupInput, Zt as InputGroupText, Qt as InputGroupTextarea, pi as Item, mi as ItemActions, hi as ItemContent, gi as ItemDescription, _i as ItemFooter, vi as ItemGroup, yi as ItemHeader, bi as ItemMedia, xi as ItemSeparator, Si as ItemTitle, d as Label, $i as LetterMark, Ci as Marker, wi as MarkerContent, Ti as MarkerIcon, Di as MediaThumbnail, ki as Message, Ai as MessageAvatar, ji as MessageContent, Mi as MessageFooter, Ni as MessageGroup, Pi as MessageHeader, Fi as MetricOverview, Ii as MetricTile, Ri as NativeSelect, zi as NativeSelectOptGroup, Bi as NativeSelectOption, Vi as NavigationAction, Gr as PLATFORMS, Kr as PLATFORM_COLOR, qr as PLATFORM_ICON, Jr as PLATFORM_LABEL, ai as PaceBadge, oi as PaceMeter, Ui as PageHeader, Wi as Pagination, Gi as PaginationContent, Ki as PaginationEllipsis, qi as PaginationItem, Ji as PaginationLink, Yi as PaginationNext, Xi as PaginationPrevious, Xr as PlatformAvatar, Yr as PlatformIcon, On as Popover, kn as PopoverContent, An as PopoverDescription, jn as PopoverHeader, Mn as PopoverTitle, Nn as PopoverTrigger, $r as Progress, ei as ProgressIndicator, ti as ProgressLabel, ni as ProgressTrack, ri as ProgressValue, ea as Questionnaire, ta as QuestionnaireActions, na as QuestionnaireChoice, ra as QuestionnaireChoiceDescription, ia as QuestionnaireChoices, aa as QuestionnaireDescription, oa as QuestionnaireError, sa as QuestionnaireInput, ca as QuestionnaireItem, la as QuestionnaireNext, ua as QuestionnairePrevious, da as QuestionnaireProgress, fa as QuestionnaireSkip, pa as QuestionnaireSubmit, ma as QuestionnaireTitle, ha as RadioGroup, ga as RadioGroupItem, _a as Rating, va as ScrollArea, ya as ScrollBar, ba as SectionHeader, xa as Select, Sa as SelectContent, Ca as SelectGroup, wa as SelectItem, Ta as SelectLabel, Ea as SelectScrollDownButton, Da as SelectScrollUpButton, Oa as SelectSeparator, ka as SelectTrigger, Aa 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, ja as SignalDots, Ma as SignalStrip, pe as Skeleton, Na as Slider, Pa as SourceAvatar, Fa as Sparkline, Ia as Spinner, Ja as StackedBarChart, La as StaleBanner, Ra as StateBanner, gn as StatusIndicator, Ba as SuggestChips, Ya 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, Va as Tabs, Ha as TabsContent, Ua as TabsList, Wa as TabsTrigger, Xa as Tag, Za as TagList, Kt as Textarea, Qa as Toast, $a as ToastAction, eo as ToastClose, to as ToastContent, no as ToastDescription, ro as ToastPortal, io as ToastProvider, ao as ToastTitle, oo as ToastViewport, so as Toaster, Ka as Toggle, fo as ToggleGroup, po 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, co as createToastManager, Ei as markerVariants, Oi as mediaThumbnailVariants, Li as metricTileVariants, Hi as navigationActionVariants, si as paceStatusOf, Rn as sortDenseTableRows, za as stateBannerVariants, _n as statusDotVariants, Ga as tabsListVariants, lo as toast, qa as toggleVariants, Nt as useCarousel, hn as useComboboxAnchor, Ve as useSidebar, uo as useToastManager };
|
package/package.json
CHANGED
package/src/styles/globals.css
CHANGED
|
@@ -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
|
-
|
|
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:
|
|
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;
|