@boost33/ui 0.8.0 → 0.9.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/CHANGELOG.md +214 -123
- package/dist/backdrop-icons.d.ts +53 -0
- package/dist/backdrop-icons.js +62 -0
- package/dist/backdrop-icons.js.map +1 -0
- package/dist/backdrop.css +1 -0
- package/dist/backdrop.d.ts +46 -0
- package/dist/backdrop.js +127 -0
- package/dist/backdrop.js.map +1 -0
- package/dist/components/AccountMenu/AccountMenu.d.ts +42 -32
- package/dist/components/AccountMenu/AccountMenu.js +66 -48
- package/dist/components/AccountMenu/AccountMenu.js.map +1 -1
- package/dist/components/AccountMenu/AccountMenu.module.css.js +44 -38
- package/dist/components/AccountMenu/AccountMenu.module.css.js.map +1 -1
- package/dist/components/AccountMenu/StandardAccountMenu.d.ts +87 -0
- package/dist/components/AccountMenu/StandardAccountMenu.js +86 -0
- package/dist/components/AccountMenu/StandardAccountMenu.js.map +1 -0
- package/dist/components/AccountMenu/icons.d.ts +2 -2
- package/dist/components/AccountMenu/icons.js +21 -8
- package/dist/components/AccountMenu/icons.js.map +1 -1
- package/dist/components/AccountMenu/initials.d.ts +11 -0
- package/dist/components/AccountMenu/initials.js +8 -0
- package/dist/components/AccountMenu/initials.js.map +1 -0
- package/dist/components/AccountMenu/labels.d.ts +64 -3
- package/dist/components/AccountMenu/labels.js +33 -5
- package/dist/components/AccountMenu/labels.js.map +1 -1
- package/dist/components/AccountMenu/use-menu.d.ts +34 -0
- package/dist/components/AccountMenu/use-menu.js +102 -0
- package/dist/components/AccountMenu/use-menu.js.map +1 -0
- package/dist/components/Backdrop/BackdropAppMenu.d.ts +55 -0
- package/dist/components/Backdrop/BackdropAppMenu.js +79 -0
- package/dist/components/Backdrop/BackdropAppMenu.js.map +1 -0
- package/dist/components/Backdrop/BackdropAppMenu.module.css.js +48 -0
- package/dist/components/Backdrop/BackdropAppMenu.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropBasics.d.ts +129 -0
- package/dist/components/Backdrop/BackdropBasics.js +130 -0
- package/dist/components/Backdrop/BackdropBasics.js.map +1 -0
- package/dist/components/Backdrop/BackdropBasics.module.css.js +71 -0
- package/dist/components/Backdrop/BackdropBasics.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropButton.d.ts +63 -0
- package/dist/components/Backdrop/BackdropButton.js +59 -0
- package/dist/components/Backdrop/BackdropButton.js.map +1 -0
- package/dist/components/Backdrop/BackdropButton.module.css.js +41 -0
- package/dist/components/Backdrop/BackdropButton.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropCharts.d.ts +158 -0
- package/dist/components/Backdrop/BackdropCharts.js +222 -0
- package/dist/components/Backdrop/BackdropCharts.js.map +1 -0
- package/dist/components/Backdrop/BackdropCharts.module.css.js +109 -0
- package/dist/components/Backdrop/BackdropCharts.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropChrome.d.ts +26 -0
- package/dist/components/Backdrop/BackdropChrome.js +35 -0
- package/dist/components/Backdrop/BackdropChrome.js.map +1 -0
- package/dist/components/Backdrop/BackdropConversation.d.ts +67 -0
- package/dist/components/Backdrop/BackdropConversation.js +76 -0
- package/dist/components/Backdrop/BackdropConversation.js.map +1 -0
- package/dist/components/Backdrop/BackdropConversation.module.css.js +44 -0
- package/dist/components/Backdrop/BackdropConversation.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropData.d.ts +195 -0
- package/dist/components/Backdrop/BackdropData.js +204 -0
- package/dist/components/Backdrop/BackdropData.js.map +1 -0
- package/dist/components/Backdrop/BackdropData.module.css.js +135 -0
- package/dist/components/Backdrop/BackdropData.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropDisplay.d.ts +122 -0
- package/dist/components/Backdrop/BackdropDisplay.js +80 -0
- package/dist/components/Backdrop/BackdropDisplay.js.map +1 -0
- package/dist/components/Backdrop/BackdropDisplay.module.css.js +80 -0
- package/dist/components/Backdrop/BackdropDisplay.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropFields.d.ts +122 -0
- package/dist/components/Backdrop/BackdropFields.js +196 -0
- package/dist/components/Backdrop/BackdropFields.js.map +1 -0
- package/dist/components/Backdrop/BackdropFields.module.css.js +104 -0
- package/dist/components/Backdrop/BackdropFields.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropFlows.d.ts +128 -0
- package/dist/components/Backdrop/BackdropFlows.js +156 -0
- package/dist/components/Backdrop/BackdropFlows.js.map +1 -0
- package/dist/components/Backdrop/BackdropFlows.module.css.js +80 -0
- package/dist/components/Backdrop/BackdropFlows.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropFrame.d.ts +36 -0
- package/dist/components/Backdrop/BackdropFrame.js +15 -0
- package/dist/components/Backdrop/BackdropFrame.js.map +1 -0
- package/dist/components/Backdrop/BackdropFrame.module.css.js +14 -0
- package/dist/components/Backdrop/BackdropFrame.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropGlobalPanels.d.ts +272 -0
- package/dist/components/Backdrop/BackdropGlobalPanels.js +264 -0
- package/dist/components/Backdrop/BackdropGlobalPanels.js.map +1 -0
- package/dist/components/Backdrop/BackdropGlobalPanels.module.css.js +201 -0
- package/dist/components/Backdrop/BackdropGlobalPanels.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropHub.d.ts +80 -0
- package/dist/components/Backdrop/BackdropHub.js +92 -0
- package/dist/components/Backdrop/BackdropHub.js.map +1 -0
- package/dist/components/Backdrop/BackdropHub.module.css.js +40 -0
- package/dist/components/Backdrop/BackdropHub.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropLists.d.ts +165 -0
- package/dist/components/Backdrop/BackdropLists.js +162 -0
- package/dist/components/Backdrop/BackdropLists.js.map +1 -0
- package/dist/components/Backdrop/BackdropLists.module.css.js +114 -0
- package/dist/components/Backdrop/BackdropLists.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropOverlays.d.ts +175 -0
- package/dist/components/Backdrop/BackdropOverlays.js +252 -0
- package/dist/components/Backdrop/BackdropOverlays.js.map +1 -0
- package/dist/components/Backdrop/BackdropOverlays.module.css.js +104 -0
- package/dist/components/Backdrop/BackdropOverlays.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropPage.d.ts +73 -0
- package/dist/components/Backdrop/BackdropPage.js +65 -0
- package/dist/components/Backdrop/BackdropPage.js.map +1 -0
- package/dist/components/Backdrop/BackdropPage.module.css.js +46 -0
- package/dist/components/Backdrop/BackdropPage.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropPatterns.d.ts +224 -0
- package/dist/components/Backdrop/BackdropPatterns.js +202 -0
- package/dist/components/Backdrop/BackdropPatterns.js.map +1 -0
- package/dist/components/Backdrop/BackdropPatterns.module.css.js +114 -0
- package/dist/components/Backdrop/BackdropPatterns.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropRail.d.ts +63 -0
- package/dist/components/Backdrop/BackdropRail.js +98 -0
- package/dist/components/Backdrop/BackdropRail.js.map +1 -0
- package/dist/components/Backdrop/BackdropRail.module.css.js +42 -0
- package/dist/components/Backdrop/BackdropRail.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropSheets.d.ts +68 -0
- package/dist/components/Backdrop/BackdropSheets.js +75 -0
- package/dist/components/Backdrop/BackdropSheets.js.map +1 -0
- package/dist/components/Backdrop/BackdropSheets.module.css.js +42 -0
- package/dist/components/Backdrop/BackdropSheets.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropTabs.d.ts +20 -0
- package/dist/components/Backdrop/BackdropTabs.js +31 -0
- package/dist/components/Backdrop/BackdropTabs.js.map +1 -0
- package/dist/components/Backdrop/BackdropTabs.module.css.js +16 -0
- package/dist/components/Backdrop/BackdropTabs.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropTooltip.d.ts +21 -0
- package/dist/components/Backdrop/BackdropTooltip.js +15 -0
- package/dist/components/Backdrop/BackdropTooltip.js.map +1 -0
- package/dist/components/Backdrop/BackdropTooltip.module.css.js +18 -0
- package/dist/components/Backdrop/BackdropTooltip.module.css.js.map +1 -0
- package/dist/components/Backdrop/BackdropTopStrip.d.ts +65 -0
- package/dist/components/Backdrop/BackdropTopStrip.js +46 -0
- package/dist/components/Backdrop/BackdropTopStrip.js.map +1 -0
- package/dist/components/Backdrop/BackdropTopStrip.module.css.js +40 -0
- package/dist/components/Backdrop/BackdropTopStrip.module.css.js.map +1 -0
- package/dist/components/Backdrop/cx.d.ts +2 -0
- package/dist/components/Backdrop/cx.js +7 -0
- package/dist/components/Backdrop/cx.js.map +1 -0
- package/dist/components/Backdrop/icons.d.ts +70 -0
- package/dist/components/Backdrop/icons.js +103 -0
- package/dist/components/Backdrop/icons.js.map +1 -0
- package/dist/components/TopBar/TopBar.d.ts +8 -1
- package/dist/components/TopBar/TopBar.js +19 -16
- package/dist/components/TopBar/TopBar.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +40 -36
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +23 -4
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare const ChevronRight: ({ size }: {
|
|
2
|
+
size?: number;
|
|
3
|
+
}) => import("react").JSX.Element;
|
|
4
|
+
export declare const ChevronLeft: ({ size }: {
|
|
5
|
+
size?: number;
|
|
6
|
+
}) => import("react").JSX.Element;
|
|
7
|
+
export declare const ChevronDown: ({ size }: {
|
|
8
|
+
size?: number;
|
|
9
|
+
}) => import("react").JSX.Element;
|
|
10
|
+
export declare const ChevronUp: ({ size }: {
|
|
11
|
+
size?: number;
|
|
12
|
+
}) => import("react").JSX.Element;
|
|
13
|
+
/** arrow-up: a table column sorted ascending (Batch 3 · Lists). 16px, stroke 2 (ADR-0017, D17). */
|
|
14
|
+
export declare const ArrowUp: ({ size }: {
|
|
15
|
+
size?: number;
|
|
16
|
+
}) => import("react").JSX.Element;
|
|
17
|
+
/** arrow-down: a table column sorted descending (Batch 3 · Lists). */
|
|
18
|
+
export declare const ArrowDown: ({ size }: {
|
|
19
|
+
size?: number;
|
|
20
|
+
}) => import("react").JSX.Element;
|
|
21
|
+
export declare const Close: ({ size }: {
|
|
22
|
+
size?: number;
|
|
23
|
+
}) => import("react").JSX.Element;
|
|
24
|
+
export declare const Search: ({ size }: {
|
|
25
|
+
size?: number;
|
|
26
|
+
}) => import("react").JSX.Element;
|
|
27
|
+
export declare const Dots: ({ size }: {
|
|
28
|
+
size?: number;
|
|
29
|
+
}) => import("react").JSX.Element;
|
|
30
|
+
export declare const Plus: ({ size }: {
|
|
31
|
+
size?: number;
|
|
32
|
+
}) => import("react").JSX.Element;
|
|
33
|
+
export declare const Check: ({ size }: {
|
|
34
|
+
size?: number;
|
|
35
|
+
}) => import("react").JSX.Element;
|
|
36
|
+
export declare const Minus: ({ size }: {
|
|
37
|
+
size?: number;
|
|
38
|
+
}) => import("react").JSX.Element;
|
|
39
|
+
export declare const Pin: ({ size }: {
|
|
40
|
+
size?: number;
|
|
41
|
+
}) => import("react").JSX.Element;
|
|
42
|
+
export declare const PinFilled: ({ size }: {
|
|
43
|
+
size?: number;
|
|
44
|
+
}) => import("react").JSX.Element;
|
|
45
|
+
export declare const CheckCircleFilled: ({ size }: {
|
|
46
|
+
size?: number;
|
|
47
|
+
}) => import("react").JSX.Element;
|
|
48
|
+
export declare const Circle: ({ size }: {
|
|
49
|
+
size?: number;
|
|
50
|
+
}) => import("react").JSX.Element;
|
|
51
|
+
/** layout-sidebar-left-collapse */
|
|
52
|
+
export declare const Collapse: ({ size }: {
|
|
53
|
+
size?: number;
|
|
54
|
+
}) => import("react").JSX.Element;
|
|
55
|
+
/** layout-sidebar-left-expand */
|
|
56
|
+
export declare const Expand: ({ size }: {
|
|
57
|
+
size?: number;
|
|
58
|
+
}) => import("react").JSX.Element;
|
|
59
|
+
/** adjustments-horizontal, the filter button's glyph */
|
|
60
|
+
export declare const Filter: ({ size }: {
|
|
61
|
+
size?: number;
|
|
62
|
+
}) => import("react").JSX.Element;
|
|
63
|
+
/** loader-2, spun by the button's loading state */
|
|
64
|
+
export declare const Spinner: ({ size }: {
|
|
65
|
+
size?: number;
|
|
66
|
+
}) => import("react").JSX.Element;
|
|
67
|
+
/** alert-circle, the `warning` meaning in backdrop-icons.ts: a field's error line */
|
|
68
|
+
export declare const AlertCircle: ({ size }: {
|
|
69
|
+
size?: number;
|
|
70
|
+
}) => import("react").JSX.Element;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { jsxs as h, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
function a({ size: t = 18, strokeWidth: d = 1.75, children: e }) {
|
|
3
|
+
return /* @__PURE__ */ l(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
"aria-hidden": "true",
|
|
7
|
+
focusable: "false",
|
|
8
|
+
width: t,
|
|
9
|
+
height: t,
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
fill: "none",
|
|
12
|
+
stroke: "currentColor",
|
|
13
|
+
strokeWidth: d,
|
|
14
|
+
strokeLinecap: "round",
|
|
15
|
+
strokeLinejoin: "round",
|
|
16
|
+
style: { flexShrink: 0, display: "block" },
|
|
17
|
+
children: e
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
const r = ({ size: t = 16 }) => /* @__PURE__ */ l(a, { size: t, strokeWidth: 2, children: /* @__PURE__ */ l("path", { d: "M9 6l6 6l-6 6" }) }), i = ({ size: t = 16 }) => /* @__PURE__ */ l(a, { size: t, children: /* @__PURE__ */ l("path", { d: "M6 9l6 6l6 -6" }) }), o = ({ size: t = 18 }) => /* @__PURE__ */ l(a, { size: t, children: /* @__PURE__ */ l("path", { d: "M6 15l6 -6l6 6" }) }), c = ({ size: t = 16 }) => /* @__PURE__ */ h(a, { size: t, strokeWidth: 2, children: [
|
|
22
|
+
/* @__PURE__ */ l("path", { d: "M12 5l0 14" }),
|
|
23
|
+
/* @__PURE__ */ l("path", { d: "M18 11l-6 -6" }),
|
|
24
|
+
/* @__PURE__ */ l("path", { d: "M6 11l6 -6" })
|
|
25
|
+
] }), p = ({ size: t = 16 }) => /* @__PURE__ */ h(a, { size: t, strokeWidth: 2, children: [
|
|
26
|
+
/* @__PURE__ */ l("path", { d: "M12 5l0 14" }),
|
|
27
|
+
/* @__PURE__ */ l("path", { d: "M18 13l-6 6" }),
|
|
28
|
+
/* @__PURE__ */ l("path", { d: "M6 13l6 6" })
|
|
29
|
+
] }), s = ({ size: t = 20 }) => /* @__PURE__ */ h(a, { size: t, children: [
|
|
30
|
+
/* @__PURE__ */ l("path", { d: "M18 6l-12 12" }),
|
|
31
|
+
/* @__PURE__ */ l("path", { d: "M6 6l12 12" })
|
|
32
|
+
] }), M = ({ size: t = 18 }) => /* @__PURE__ */ h(a, { size: t, children: [
|
|
33
|
+
/* @__PURE__ */ l("path", { d: "M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" }),
|
|
34
|
+
/* @__PURE__ */ l("path", { d: "M21 21l-6 -6" })
|
|
35
|
+
] }), k = ({ size: t = 18 }) => /* @__PURE__ */ h(a, { size: t, children: [
|
|
36
|
+
/* @__PURE__ */ l("path", { d: "M4 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }),
|
|
37
|
+
/* @__PURE__ */ l("path", { d: "M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }),
|
|
38
|
+
/* @__PURE__ */ l("path", { d: "M18 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" })
|
|
39
|
+
] }), u = ({ size: t = 18 }) => /* @__PURE__ */ h(a, { size: t, strokeWidth: 2, children: [
|
|
40
|
+
/* @__PURE__ */ l("path", { d: "M12 5l0 14" }),
|
|
41
|
+
/* @__PURE__ */ l("path", { d: "M5 12l14 0" })
|
|
42
|
+
] }), f = ({ size: t = 14 }) => /* @__PURE__ */ l(a, { size: t, strokeWidth: 2.5, children: /* @__PURE__ */ l("path", { d: "M5 12l5 5l10 -10" }) }), v = ({ size: t = 14 }) => /* @__PURE__ */ l(a, { size: t, strokeWidth: 2.5, children: /* @__PURE__ */ l("path", { d: "M5 12l14 0" }) }), C = ({ size: t = 16 }) => /* @__PURE__ */ h(a, { size: t, children: [
|
|
43
|
+
/* @__PURE__ */ l("path", { d: "M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4" }),
|
|
44
|
+
/* @__PURE__ */ l("path", { d: "M9 15l-4.5 4.5" }),
|
|
45
|
+
/* @__PURE__ */ l("path", { d: "M14.5 4l5.5 5.5" })
|
|
46
|
+
] }), w = ({ size: t = 16 }) => /* @__PURE__ */ l("svg", { "aria-hidden": "true", focusable: "false", width: t, height: t, viewBox: "0 0 24 24", style: { flexShrink: 0, display: "block" }, children: /* @__PURE__ */ l(
|
|
47
|
+
"path",
|
|
48
|
+
{
|
|
49
|
+
fill: "currentColor",
|
|
50
|
+
d: "M15.113 3.21l.094 .083l5.5 5.5a1 1 0 0 1 -1.175 1.59l-3.172 3.171l-1.424 3.797a1 1 0 0 1 -.158 .277l-.07 .08l-1.5 1.5a1 1 0 0 1 -1.32 .082l-.095 -.083l-2.793 -2.792l-3.793 3.792a1 1 0 0 1 -1.497 -1.32l.083 -.094l3.792 -3.793l-2.792 -2.793a1 1 0 0 1 -.083 -1.32l.083 -.094l1.5 -1.5a1 1 0 0 1 .258 -.187l.098 -.042l3.796 -1.425l3.171 -3.17a1 1 0 0 1 1.497 -1.26z"
|
|
51
|
+
}
|
|
52
|
+
) }), x = ({ size: t = 20 }) => /* @__PURE__ */ l("svg", { "aria-hidden": "true", focusable: "false", width: t, height: t, viewBox: "0 0 24 24", style: { flexShrink: 0, display: "block" }, children: /* @__PURE__ */ l(
|
|
53
|
+
"path",
|
|
54
|
+
{
|
|
55
|
+
fill: "currentColor",
|
|
56
|
+
d: "M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.293 5.953a1 1 0 0 0 -1.32 -.083l-.094 .083l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.403 1.403l.083 .094l2 2l.094 .083a1 1 0 0 0 1.226 0l.094 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z"
|
|
57
|
+
}
|
|
58
|
+
) }), m = ({ size: t = 20 }) => /* @__PURE__ */ l(a, { size: t, children: /* @__PURE__ */ l("path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" }) }), W = ({ size: t = 20 }) => /* @__PURE__ */ h(a, { size: t, children: [
|
|
59
|
+
/* @__PURE__ */ l("path", { d: "M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z" }),
|
|
60
|
+
/* @__PURE__ */ l("path", { d: "M9 4v16" }),
|
|
61
|
+
/* @__PURE__ */ l("path", { d: "M15 10l-2 2l2 2" })
|
|
62
|
+
] }), g = ({ size: t = 20 }) => /* @__PURE__ */ h(a, { size: t, children: [
|
|
63
|
+
/* @__PURE__ */ l("path", { d: "M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z" }),
|
|
64
|
+
/* @__PURE__ */ l("path", { d: "M9 4v16" }),
|
|
65
|
+
/* @__PURE__ */ l("path", { d: "M14 10l2 2l-2 2" })
|
|
66
|
+
] }), y = ({ size: t = 18 }) => /* @__PURE__ */ h(a, { size: t, children: [
|
|
67
|
+
/* @__PURE__ */ l("path", { d: "M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" }),
|
|
68
|
+
/* @__PURE__ */ l("path", { d: "M4 6l8 0" }),
|
|
69
|
+
/* @__PURE__ */ l("path", { d: "M16 6l4 0" }),
|
|
70
|
+
/* @__PURE__ */ l("path", { d: "M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" }),
|
|
71
|
+
/* @__PURE__ */ l("path", { d: "M4 12l2 0" }),
|
|
72
|
+
/* @__PURE__ */ l("path", { d: "M10 12l10 0" }),
|
|
73
|
+
/* @__PURE__ */ l("path", { d: "M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" }),
|
|
74
|
+
/* @__PURE__ */ l("path", { d: "M4 18l11 0" }),
|
|
75
|
+
/* @__PURE__ */ l("path", { d: "M19 18l1 0" })
|
|
76
|
+
] }), b = ({ size: t = 16 }) => /* @__PURE__ */ l(a, { size: t, strokeWidth: 2, children: /* @__PURE__ */ l("path", { d: "M12 3a9 9 0 1 0 9 9" }) }), S = ({ size: t = 16 }) => /* @__PURE__ */ h(a, { size: t, strokeWidth: 2, children: [
|
|
77
|
+
/* @__PURE__ */ l("path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" }),
|
|
78
|
+
/* @__PURE__ */ l("path", { d: "M12 8v4" }),
|
|
79
|
+
/* @__PURE__ */ l("path", { d: "M12 16h.01" })
|
|
80
|
+
] });
|
|
81
|
+
export {
|
|
82
|
+
S as AlertCircle,
|
|
83
|
+
p as ArrowDown,
|
|
84
|
+
c as ArrowUp,
|
|
85
|
+
f as Check,
|
|
86
|
+
x as CheckCircleFilled,
|
|
87
|
+
i as ChevronDown,
|
|
88
|
+
r as ChevronRight,
|
|
89
|
+
o as ChevronUp,
|
|
90
|
+
m as Circle,
|
|
91
|
+
s as Close,
|
|
92
|
+
W as Collapse,
|
|
93
|
+
k as Dots,
|
|
94
|
+
g as Expand,
|
|
95
|
+
y as Filter,
|
|
96
|
+
v as Minus,
|
|
97
|
+
C as Pin,
|
|
98
|
+
w as PinFilled,
|
|
99
|
+
u as Plus,
|
|
100
|
+
M as Search,
|
|
101
|
+
b as Spinner
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.js","sources":["../../../src/components/Backdrop/icons.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\n/*\n * The handful of glyphs the Backdrop components draw themselves: chevrons, a\n * close cross, the search lens, the \"…\" of an overflow menu, a plus, a check,\n * the pin, and the strip's collapse/expand toggle. Paths are Tabler's (MIT),\n * the icon set the Paper file is drawn with, copied as data so the package takes\n * no icon dependency -- the same choice AccountMenu/icons.tsx made.\n *\n * Every other icon a Backdrop component shows (rail items, menu rows, chips) is\n * passed in by the consumer as a ReactNode: the package does not know what a\n * campaign or an inbox looks like (CLAUDE.md, \"No component here knows what a\n * lead, a campaign or a prospect is\").\n *\n * Decorative by construction: aria-hidden, stroked in currentColor so the\n * surrounding text colour (and therefore the theme) decides the ink.\n */\n\nfunction Glyph({ size = 18, strokeWidth = 1.75, children }: { size?: number; strokeWidth?: number; children: ReactNode }) {\n return (\n <svg\n aria-hidden=\"true\"\n focusable=\"false\"\n width={size}\n height={size}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n style={{ flexShrink: 0, display: 'block' }}\n >\n {children}\n </svg>\n )\n}\n\nexport const ChevronRight = ({ size = 16 }: { size?: number }) => (\n <Glyph size={size} strokeWidth={2}>\n <path d=\"M9 6l6 6l-6 6\" />\n </Glyph>\n)\n\nexport const ChevronLeft = ({ size = 16 }: { size?: number }) => (\n <Glyph size={size}>\n <path d=\"M15 6l-6 6l6 6\" />\n </Glyph>\n)\n\nexport const ChevronDown = ({ size = 16 }: { size?: number }) => (\n <Glyph size={size}>\n <path d=\"M6 9l6 6l6 -6\" />\n </Glyph>\n)\n\nexport const ChevronUp = ({ size = 18 }: { size?: number }) => (\n <Glyph size={size}>\n <path d=\"M6 15l6 -6l6 6\" />\n </Glyph>\n)\n\n/** arrow-up: a table column sorted ascending (Batch 3 · Lists). 16px, stroke 2 (ADR-0017, D17). */\nexport const ArrowUp = ({ size = 16 }: { size?: number }) => (\n <Glyph size={size} strokeWidth={2}>\n <path d=\"M12 5l0 14\" />\n <path d=\"M18 11l-6 -6\" />\n <path d=\"M6 11l6 -6\" />\n </Glyph>\n)\n\n/** arrow-down: a table column sorted descending (Batch 3 · Lists). */\nexport const ArrowDown = ({ size = 16 }: { size?: number }) => (\n <Glyph size={size} strokeWidth={2}>\n <path d=\"M12 5l0 14\" />\n <path d=\"M18 13l-6 6\" />\n <path d=\"M6 13l6 6\" />\n </Glyph>\n)\n\nexport const Close = ({ size = 20 }: { size?: number }) => (\n <Glyph size={size}>\n <path d=\"M18 6l-12 12\" />\n <path d=\"M6 6l12 12\" />\n </Glyph>\n)\n\nexport const Search = ({ size = 18 }: { size?: number }) => (\n <Glyph size={size}>\n <path d=\"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0\" />\n <path d=\"M21 21l-6 -6\" />\n </Glyph>\n)\n\nexport const Dots = ({ size = 18 }: { size?: number }) => (\n <Glyph size={size}>\n <path d=\"M4 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\" />\n <path d=\"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\" />\n <path d=\"M18 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\" />\n </Glyph>\n)\n\nexport const Plus = ({ size = 18 }: { size?: number }) => (\n <Glyph size={size} strokeWidth={2}>\n <path d=\"M12 5l0 14\" />\n <path d=\"M5 12l14 0\" />\n </Glyph>\n)\n\nexport const Check = ({ size = 14 }: { size?: number }) => (\n <Glyph size={size} strokeWidth={2.5}>\n <path d=\"M5 12l5 5l10 -10\" />\n </Glyph>\n)\n\nexport const Minus = ({ size = 14 }: { size?: number }) => (\n <Glyph size={size} strokeWidth={2.5}>\n <path d=\"M5 12l14 0\" />\n </Glyph>\n)\n\nexport const Pin = ({ size = 16 }: { size?: number }) => (\n <Glyph size={size}>\n <path d=\"M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4\" />\n <path d=\"M9 15l-4.5 4.5\" />\n <path d=\"M14.5 4l5.5 5.5\" />\n </Glyph>\n)\n\nexport const PinFilled = ({ size = 16 }: { size?: number }) => (\n <svg aria-hidden=\"true\" focusable=\"false\" width={size} height={size} viewBox=\"0 0 24 24\" style={{ flexShrink: 0, display: 'block' }}>\n <path\n fill=\"currentColor\"\n d=\"M15.113 3.21l.094 .083l5.5 5.5a1 1 0 0 1 -1.175 1.59l-3.172 3.171l-1.424 3.797a1 1 0 0 1 -.158 .277l-.07 .08l-1.5 1.5a1 1 0 0 1 -1.32 .082l-.095 -.083l-2.793 -2.792l-3.793 3.792a1 1 0 0 1 -1.497 -1.32l.083 -.094l3.792 -3.793l-2.792 -2.793a1 1 0 0 1 -.083 -1.32l.083 -.094l1.5 -1.5a1 1 0 0 1 .258 -.187l.098 -.042l3.796 -1.425l3.171 -3.17a1 1 0 0 1 1.497 -1.26z\"\n />\n </svg>\n)\n\nexport const CheckCircleFilled = ({ size = 20 }: { size?: number }) => (\n <svg aria-hidden=\"true\" focusable=\"false\" width={size} height={size} viewBox=\"0 0 24 24\" style={{ flexShrink: 0, display: 'block' }}>\n <path\n fill=\"currentColor\"\n d=\"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.293 5.953a1 1 0 0 0 -1.32 -.083l-.094 .083l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.403 1.403l.083 .094l2 2l.094 .083a1 1 0 0 0 1.226 0l.094 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z\"\n />\n </svg>\n)\n\nexport const Circle = ({ size = 20 }: { size?: number }) => (\n <Glyph size={size}>\n <path d=\"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0\" />\n </Glyph>\n)\n\n/** layout-sidebar-left-collapse */\nexport const Collapse = ({ size = 20 }: { size?: number }) => (\n <Glyph size={size}>\n <path d=\"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z\" />\n <path d=\"M9 4v16\" />\n <path d=\"M15 10l-2 2l2 2\" />\n </Glyph>\n)\n\n/** layout-sidebar-left-expand */\nexport const Expand = ({ size = 20 }: { size?: number }) => (\n <Glyph size={size}>\n <path d=\"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z\" />\n <path d=\"M9 4v16\" />\n <path d=\"M14 10l2 2l-2 2\" />\n </Glyph>\n)\n\n/** adjustments-horizontal, the filter button's glyph */\nexport const Filter = ({ size = 18 }: { size?: number }) => (\n <Glyph size={size}>\n <path d=\"M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0\" />\n <path d=\"M4 6l8 0\" />\n <path d=\"M16 6l4 0\" />\n <path d=\"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0\" />\n <path d=\"M4 12l2 0\" />\n <path d=\"M10 12l10 0\" />\n <path d=\"M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0\" />\n <path d=\"M4 18l11 0\" />\n <path d=\"M19 18l1 0\" />\n </Glyph>\n)\n\n/** loader-2, spun by the button's loading state */\nexport const Spinner = ({ size = 16 }: { size?: number }) => (\n <Glyph size={size} strokeWidth={2}>\n <path d=\"M12 3a9 9 0 1 0 9 9\" />\n </Glyph>\n)\n\n/** alert-circle, the `warning` meaning in backdrop-icons.ts: a field's error line */\nexport const AlertCircle = ({ size = 16 }: { size?: number }) => (\n <Glyph size={size} strokeWidth={2}>\n <path d=\"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0\" />\n <path d=\"M12 8v4\" />\n <path d=\"M12 16h.01\" />\n </Glyph>\n)\n"],"names":["Glyph","size","strokeWidth","children","jsx","ChevronRight","ChevronDown","ChevronUp","ArrowUp","jsxs","ArrowDown","Close","Search","Dots","Plus","Check","Minus","Pin","PinFilled","CheckCircleFilled","Circle","Collapse","Expand","Filter","Spinner","AlertCircle"],"mappings":";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U,CAAC,EAAE,MAAAvB,IAAO,SAC/B,gBAAAG,EAACJ,GAAA,EAAM,MAAAC,GAAY,aAAa,GAC9B,UAAA,gBAAAG,EAAC,QAAA,EAAK,GAAE,uBAAsB,EAAA,CAChC,GAIWqB,IAAc,CAAC,EAAE,MAAAxB,IAAO,SACnC,gBAAAQ,EAACT,GAAA,EAAM,MAAAC,GAAY,aAAa,GAC9B,UAAA;AAAA,EAAA,gBAAAG,EAAC,QAAA,EAAK,GAAE,uCAAA,CAAuC;AAAA,EAC/C,gBAAAA,EAAC,QAAA,EAAK,GAAE,UAAA,CAAU;AAAA,EAClB,gBAAAA,EAAC,QAAA,EAAK,GAAE,aAAA,CAAa;AAAA,EAAA,CACvB;"}
|
|
@@ -43,6 +43,13 @@ export interface TopBarProps {
|
|
|
43
43
|
* open from it is left out of 0.8.0 with no trigger and no shortcut.
|
|
44
44
|
*/
|
|
45
45
|
actions?: ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* The account menu, at the far right of the bar after `actions` (B33-493). A
|
|
48
|
+
* slot: pass `StandardAccountMenu`, or `AccountMenu` with rows of your own. Its
|
|
49
|
+
* panel opens under the avatar, aligned to the bar's right edge. Every app
|
|
50
|
+
* puts the same menu here, so a person meets one account menu across Boost33.
|
|
51
|
+
*/
|
|
52
|
+
account?: ReactNode;
|
|
46
53
|
/** The centre group's two labels. Each field defaults to English. */
|
|
47
54
|
labels?: Partial<TopBarLabels>;
|
|
48
55
|
/**
|
|
@@ -56,4 +63,4 @@ export interface TopBarProps {
|
|
|
56
63
|
*/
|
|
57
64
|
breadcrumb?: ReactNode;
|
|
58
65
|
}
|
|
59
|
-
export declare function TopBar({ sidebarToggle, start, switcher, tokens, actions, labels, breadcrumb }: TopBarProps): import("react").JSX.Element;
|
|
66
|
+
export declare function TopBar({ sidebarToggle, start, switcher, tokens, actions, account, labels, breadcrumb }: TopBarProps): import("react").JSX.Element;
|
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { warnDeprecatedProp as
|
|
3
|
-
import { resolveTopBarLabels as
|
|
4
|
-
import
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
1
|
+
import { jsxs as e, Fragment as s, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { warnDeprecatedProp as u } from "../../deprecated-prop-warning.js";
|
|
3
|
+
import { resolveTopBarLabels as f } from "./labels.js";
|
|
4
|
+
import l from "./TopBar.module.css.js";
|
|
5
|
+
function x({ sidebarToggle: o, start: d, switcher: r, tokens: a, actions: i, account: t, labels: m, breadcrumb: p }) {
|
|
6
|
+
p != null && u("TopBar.breadcrumb");
|
|
7
|
+
const n = f(m), h = r != null || a != null;
|
|
8
|
+
return /* @__PURE__ */ e("header", { className: l.bar, children: [
|
|
9
|
+
/* @__PURE__ */ e("div", { className: l.start, children: [
|
|
10
10
|
o,
|
|
11
11
|
d
|
|
12
12
|
] }),
|
|
13
|
-
|
|
14
|
-
r != null && /* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
13
|
+
h && /* @__PURE__ */ e("div", { className: l.centre, children: [
|
|
14
|
+
r != null && /* @__PURE__ */ e(s, { children: [
|
|
15
|
+
/* @__PURE__ */ c("span", { className: l.label, children: n.switchTools }),
|
|
16
16
|
r
|
|
17
17
|
] }),
|
|
18
|
-
a != null && /* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
18
|
+
a != null && /* @__PURE__ */ e(s, { children: [
|
|
19
|
+
/* @__PURE__ */ c("span", { className: l.label, "data-after-switcher": r != null ? "true" : void 0, children: n.checkTokens }),
|
|
20
20
|
a
|
|
21
21
|
] })
|
|
22
22
|
] }),
|
|
23
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ e("div", { className: l.end, children: [
|
|
24
|
+
i,
|
|
25
|
+
t
|
|
26
|
+
] })
|
|
24
27
|
] });
|
|
25
28
|
}
|
|
26
29
|
export {
|
|
27
|
-
|
|
30
|
+
x as TopBar
|
|
28
31
|
};
|
|
29
32
|
//# sourceMappingURL=TopBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopBar.js","sources":["../../../src/components/TopBar/TopBar.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport { warnDeprecatedProp } from '../../deprecated-prop-warning'\nimport { resolveTopBarLabels, type TopBarLabels } from './labels'\nimport styles from './TopBar.module.css'\n\nexport interface TopBarProps {\n /**\n * The control that collapses the sidebar to its 56px rail and back, at the\n * far left of the bar, before the mark (B33-1712). A slot: the product's own\n * button, which owns the collapsed state.\n *\n * It has a slot of its own because the bar stopped drawing `breadcrumb` in\n * 0.8.0, and a consumer that kept its toggle inside the breadcrumb -- the\n * Wallet did -- would otherwise lose its only way into and out of the rail on\n * upgrade, silently: the pixel diff passed the bar at 0.19% with the toggle\n * gone. No board draws it; the rail keeps working with no new design.\n */\n sidebarToggle?: ReactNode\n /**\n * The left of the bar: the Boost33 mark and the organisation's pill, as the 3\n * Nov 2026 redesign draws it (B33-1712, board 20). A slot. Inside `AppShell`\n * the shell fills it from its own `mark`, `hubHref` and `org` props, so a\n * consumer of the shell does not set this.\n */\n start?: ReactNode\n /**\n * The app switcher, at the centre of the bar after its \"Switch Tools →\"\n * label. A slot: pass `AppSwitcher`. Omit it and neither it nor its label is\n * drawn. Inside `AppShell`, the shell's `switcher` prop lands here.\n */\n switcher?: ReactNode\n /**\n * The token chip, after the switcher and its \"Check Your Tokens →\" label. A\n * slot: pass `WalletChip` with `placement=\"topbar\"`. Omit it and neither it\n * nor its label is drawn. Inside `AppShell`, the shell's `wallet` prop lands\n * here.\n */\n tokens?: ReactNode\n /**\n * The right of the bar: the notification button and the account avatar\n * (board 20). A slot -- the product's own, or the package's\n * `NotificationButton` beside the consumer's avatar.\n *\n * Search is not here and nothing replaces it: Jamal removed it on 3 Nov 2026\n * until the feature is built (B33-1710), and the CommandPalette that would\n * open from it is left out of 0.8.0 with no trigger and no shortcut.\n */\n actions?: ReactNode\n /** The centre group's two labels. Each field defaults to English. */\n labels?: Partial<TopBarLabels>\n /**\n * Was the breadcrumb on the left of the bar. **Not drawn since 0.8.0**: the\n * redesign puts the mark and the organisation there, and the page's own\n * `PageHeader` names where you are. Optional so an existing call site still\n * compiles.\n *\n * @deprecated Rendered nowhere since 0.8.0 (B33-1712). Stop passing it; in\n * development, passing it logs a console warning once.\n */\n breadcrumb?: ReactNode\n}\n\n// The bar across the top of every screen (B33-1712). Three regions: the mark\n// and organisation on the left, the switcher and token chip in a centred group,\n// and the product's actions on the right. Left and right take equal shares of\n// what the centre leaves, which is what holds the centre group in the middle of\n// the bar whatever either side holds.\n//\n// A Server Component: no state, no handlers. The two controls in the centre are\n// client components passed in as slots.\nexport function TopBar({ sidebarToggle, start, switcher, tokens, actions, labels, breadcrumb }: TopBarProps) {\n if (breadcrumb != null) warnDeprecatedProp('TopBar.breadcrumb')\n const t = resolveTopBarLabels(labels)\n const hasCentre = switcher != null || tokens != null\n\n // A <header>, so the bar is the page's banner landmark and a screen-reader\n // user can jump to it, and an end-to-end test can scope to it (score-main,\n // 0.8.0-next.2). Inside AppShell it is never within <main> or an <article>,\n // which is what makes a <header> a banner. `display: grid` is set on the\n // class, so the element swap changes no box.\n return (\n <header className={styles.bar}>\n <div className={styles.start}>\n {sidebarToggle}\n {start}\n </div>\n {hasCentre && (\n <div className={styles.centre}>\n {switcher != null && (\n <>\n <span className={styles.label}>{t.switchTools}</span>\n {switcher}\n </>\n )}\n {tokens != null && (\n <>\n {/* The second label keeps 32px clear of the switcher, so each\n label reads as belonging to the control after it, not the one\n before it (board 20). With no switcher there is nothing to\n keep clear of, and the padding goes. */}\n <span className={styles.label} data-after-switcher={switcher != null ? 'true' : undefined}>\n {t.checkTokens}\n </span>\n {tokens}\n </>\n )}\n </div>\n )}\n <div className={styles.end}
|
|
1
|
+
{"version":3,"file":"TopBar.js","sources":["../../../src/components/TopBar/TopBar.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport { warnDeprecatedProp } from '../../deprecated-prop-warning'\nimport { resolveTopBarLabels, type TopBarLabels } from './labels'\nimport styles from './TopBar.module.css'\n\nexport interface TopBarProps {\n /**\n * The control that collapses the sidebar to its 56px rail and back, at the\n * far left of the bar, before the mark (B33-1712). A slot: the product's own\n * button, which owns the collapsed state.\n *\n * It has a slot of its own because the bar stopped drawing `breadcrumb` in\n * 0.8.0, and a consumer that kept its toggle inside the breadcrumb -- the\n * Wallet did -- would otherwise lose its only way into and out of the rail on\n * upgrade, silently: the pixel diff passed the bar at 0.19% with the toggle\n * gone. No board draws it; the rail keeps working with no new design.\n */\n sidebarToggle?: ReactNode\n /**\n * The left of the bar: the Boost33 mark and the organisation's pill, as the 3\n * Nov 2026 redesign draws it (B33-1712, board 20). A slot. Inside `AppShell`\n * the shell fills it from its own `mark`, `hubHref` and `org` props, so a\n * consumer of the shell does not set this.\n */\n start?: ReactNode\n /**\n * The app switcher, at the centre of the bar after its \"Switch Tools →\"\n * label. A slot: pass `AppSwitcher`. Omit it and neither it nor its label is\n * drawn. Inside `AppShell`, the shell's `switcher` prop lands here.\n */\n switcher?: ReactNode\n /**\n * The token chip, after the switcher and its \"Check Your Tokens →\" label. A\n * slot: pass `WalletChip` with `placement=\"topbar\"`. Omit it and neither it\n * nor its label is drawn. Inside `AppShell`, the shell's `wallet` prop lands\n * here.\n */\n tokens?: ReactNode\n /**\n * The right of the bar: the notification button and the account avatar\n * (board 20). A slot -- the product's own, or the package's\n * `NotificationButton` beside the consumer's avatar.\n *\n * Search is not here and nothing replaces it: Jamal removed it on 3 Nov 2026\n * until the feature is built (B33-1710), and the CommandPalette that would\n * open from it is left out of 0.8.0 with no trigger and no shortcut.\n */\n actions?: ReactNode\n /**\n * The account menu, at the far right of the bar after `actions` (B33-493). A\n * slot: pass `StandardAccountMenu`, or `AccountMenu` with rows of your own. Its\n * panel opens under the avatar, aligned to the bar's right edge. Every app\n * puts the same menu here, so a person meets one account menu across Boost33.\n */\n account?: ReactNode\n /** The centre group's two labels. Each field defaults to English. */\n labels?: Partial<TopBarLabels>\n /**\n * Was the breadcrumb on the left of the bar. **Not drawn since 0.8.0**: the\n * redesign puts the mark and the organisation there, and the page's own\n * `PageHeader` names where you are. Optional so an existing call site still\n * compiles.\n *\n * @deprecated Rendered nowhere since 0.8.0 (B33-1712). Stop passing it; in\n * development, passing it logs a console warning once.\n */\n breadcrumb?: ReactNode\n}\n\n// The bar across the top of every screen (B33-1712). Three regions: the mark\n// and organisation on the left, the switcher and token chip in a centred group,\n// and the product's actions on the right. Left and right take equal shares of\n// what the centre leaves, which is what holds the centre group in the middle of\n// the bar whatever either side holds.\n//\n// A Server Component: no state, no handlers. The two controls in the centre are\n// client components passed in as slots.\nexport function TopBar({ sidebarToggle, start, switcher, tokens, actions, account, labels, breadcrumb }: TopBarProps) {\n if (breadcrumb != null) warnDeprecatedProp('TopBar.breadcrumb')\n const t = resolveTopBarLabels(labels)\n const hasCentre = switcher != null || tokens != null\n\n // A <header>, so the bar is the page's banner landmark and a screen-reader\n // user can jump to it, and an end-to-end test can scope to it (score-main,\n // 0.8.0-next.2). Inside AppShell it is never within <main> or an <article>,\n // which is what makes a <header> a banner. `display: grid` is set on the\n // class, so the element swap changes no box.\n return (\n <header className={styles.bar}>\n <div className={styles.start}>\n {sidebarToggle}\n {start}\n </div>\n {hasCentre && (\n <div className={styles.centre}>\n {switcher != null && (\n <>\n <span className={styles.label}>{t.switchTools}</span>\n {switcher}\n </>\n )}\n {tokens != null && (\n <>\n {/* The second label keeps 32px clear of the switcher, so each\n label reads as belonging to the control after it, not the one\n before it (board 20). With no switcher there is nothing to\n keep clear of, and the padding goes. */}\n <span className={styles.label} data-after-switcher={switcher != null ? 'true' : undefined}>\n {t.checkTokens}\n </span>\n {tokens}\n </>\n )}\n </div>\n )}\n <div className={styles.end}>\n {actions}\n {account}\n </div>\n </header>\n )\n}\n"],"names":["TopBar","sidebarToggle","start","switcher","tokens","actions","account","labels","breadcrumb","warnDeprecatedProp","t","resolveTopBarLabels","hasCentre","jsxs","styles","Fragment","jsx"],"mappings":";;;;AA6EO,SAASA,EAAO,EAAE,eAAAC,GAAe,OAAAC,GAAO,UAAAC,GAAU,QAAAC,GAAQ,SAAAC,GAAS,SAAAC,GAAS,QAAAC,GAAQ,YAAAC,KAA2B;AACpH,EAAIA,KAAc,QAAMC,EAAmB,mBAAmB;AAC9D,QAAMC,IAAIC,EAAoBJ,CAAM,GAC9BK,IAAYT,KAAY,QAAQC,KAAU;AAOhD,SACE,gBAAAS,EAAC,UAAA,EAAO,WAAWC,EAAO,KACxB,UAAA;AAAA,IAAA,gBAAAD,EAAC,OAAA,EAAI,WAAWC,EAAO,OACpB,UAAA;AAAA,MAAAb;AAAA,MACAC;AAAA,IAAA,GACH;AAAA,IACCU,KACC,gBAAAC,EAAC,OAAA,EAAI,WAAWC,EAAO,QACpB,UAAA;AAAA,MAAAX,KAAY,QACX,gBAAAU,EAAAE,GAAA,EACE,UAAA;AAAA,QAAA,gBAAAC,EAAC,QAAA,EAAK,WAAWF,EAAO,OAAQ,YAAE,aAAY;AAAA,QAC7CX;AAAA,MAAA,GACH;AAAA,MAEDC,KAAU,QACT,gBAAAS,EAAAE,GAAA,EAKE,UAAA;AAAA,QAAA,gBAAAC,EAAC,QAAA,EAAK,WAAWF,EAAO,OAAO,uBAAqBX,KAAY,OAAO,SAAS,QAC7E,UAAAO,EAAE,YAAA,CACL;AAAA,QACCN;AAAA,MAAA,EAAA,CACH;AAAA,IAAA,GAEJ;AAAA,IAEF,gBAAAS,EAAC,OAAA,EAAI,WAAWC,EAAO,KACpB,UAAA;AAAA,MAAAT;AAAA,MACAC;AAAA,IAAA,EAAA,CACH;AAAA,EAAA,GACF;AAEJ;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -35,9 +35,11 @@ export type { NotificationCenterProps, NotificationCenterItem, } from './compone
|
|
|
35
35
|
export { defaultNotificationCenterLabels } from './components/NotificationCenter/labels';
|
|
36
36
|
export type { NotificationCenterLabels } from './components/NotificationCenter/labels';
|
|
37
37
|
export { AccountMenu } from './components/AccountMenu/AccountMenu';
|
|
38
|
+
export { StandardAccountMenu, standardAccountMenuGroups } from './components/AccountMenu/StandardAccountMenu';
|
|
39
|
+
export type { AccountMenuRole, StandardAccountMenuProps, StandardAccountMenuRowsOptions, } from './components/AccountMenu/StandardAccountMenu';
|
|
38
40
|
export type { AccountMenuProps, AccountMenuPerson, AccountMenuOrg, AccountMenuGroup, AccountMenuItem, } from './components/AccountMenu/AccountMenu';
|
|
39
|
-
export { defaultAccountMenuLabels } from './components/AccountMenu/labels';
|
|
40
|
-
export type { AccountMenuLabels } from './components/AccountMenu/labels';
|
|
41
|
+
export { defaultAccountMenuLabels, defaultStandardAccountMenuLabels } from './components/AccountMenu/labels';
|
|
42
|
+
export type { AccountMenuLabels, StandardAccountMenuLabels } from './components/AccountMenu/labels';
|
|
41
43
|
export type { AccountMenuIcon } from './components/AccountMenu/icons';
|
|
42
44
|
export { CommandPalette } from './components/CommandPalette/CommandPalette';
|
|
43
45
|
export type { CommandPaletteProps, CommandPaletteGroup, CommandPaletteResult, } from './components/CommandPalette/CommandPalette';
|
package/dist/index.js
CHANGED
|
@@ -2,63 +2,67 @@
|
|
|
2
2
|
import { Sidebar as e } from "./components/Sidebar/Sidebar.js";
|
|
3
3
|
import { NavSection as p } from "./components/NavSection/NavSection.js";
|
|
4
4
|
import { Wordmark as m } from "./components/Wordmark/Wordmark.js";
|
|
5
|
-
import { BOOST33_MARK_MIN_LEGIBLE_PX as
|
|
6
|
-
import { ProductMark as
|
|
5
|
+
import { BOOST33_MARK_MIN_LEGIBLE_PX as x, Boost33Mark as u } from "./components/Boost33Mark/Boost33Mark.js";
|
|
6
|
+
import { ProductMark as l, hasProductMark as i } from "./components/ProductMark/ProductMark.js";
|
|
7
7
|
import { NavItem as s } from "./components/NavItem/NavItem.js";
|
|
8
8
|
import { WalletChip as h } from "./components/WalletChip/WalletChip.js";
|
|
9
9
|
import { defaultWalletChipLabels as b } from "./components/WalletChip/labels.js";
|
|
10
|
-
import { TopBar as
|
|
11
|
-
import { defaultTopBarLabels as
|
|
12
|
-
import { NotificationButton as
|
|
10
|
+
import { TopBar as S } from "./components/TopBar/TopBar.js";
|
|
11
|
+
import { defaultTopBarLabels as C } from "./components/TopBar/labels.js";
|
|
12
|
+
import { NotificationButton as g } from "./components/NotificationButton/NotificationButton.js";
|
|
13
13
|
import { defaultNotificationButtonLabels as P } from "./components/NotificationButton/labels.js";
|
|
14
14
|
import { PageHeader as _ } from "./components/PageHeader/PageHeader.js";
|
|
15
15
|
import { AppShell as F } from "./components/AppShell/AppShell.js";
|
|
16
16
|
import { AppSwitcher as I } from "./components/AppSwitcher/AppSwitcher.js";
|
|
17
17
|
import { defaultAppSwitcherLabels as W } from "./components/AppSwitcher/labels.js";
|
|
18
|
-
import { NotificationCenter as
|
|
19
|
-
import { defaultNotificationCenterLabels as
|
|
18
|
+
import { NotificationCenter as G } from "./components/NotificationCenter/NotificationCenter.js";
|
|
19
|
+
import { defaultNotificationCenterLabels as D } from "./components/NotificationCenter/labels.js";
|
|
20
20
|
import { AccountMenu as R } from "./components/AccountMenu/AccountMenu.js";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
21
|
+
import { StandardAccountMenu as X, standardAccountMenuGroups as j } from "./components/AccountMenu/StandardAccountMenu.js";
|
|
22
|
+
import { defaultAccountMenuLabels as y, defaultStandardAccountMenuLabels as z } from "./components/AccountMenu/labels.js";
|
|
23
|
+
import { CommandPalette as Q } from "./components/CommandPalette/CommandPalette.js";
|
|
24
|
+
import { defaultCommandPaletteLabels as Y } from "./components/CommandPalette/labels.js";
|
|
25
|
+
import { DotMatrixLoader as $ } from "./components/DotMatrixLoader/DotMatrixLoader.js";
|
|
26
|
+
import { LaunchLoader as to } from "./components/LaunchLoader/LaunchLoader.js";
|
|
27
|
+
import { launchBackdropCss as eo } from "./launch-gradient.js";
|
|
28
|
+
import { SettingsFrame as po } from "./components/SettingsFrame/SettingsFrame.js";
|
|
29
|
+
import { defaultSettingsFrameLabels as mo } from "./components/SettingsFrame/labels.js";
|
|
30
|
+
import { checkNavHeightBudget as xo, navBudgetForViewport as uo, navContentHeight as lo } from "./nav-height-budget.js";
|
|
30
31
|
export {
|
|
31
32
|
R as AccountMenu,
|
|
32
33
|
F as AppShell,
|
|
33
34
|
I as AppSwitcher,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
x as BOOST33_MARK_MIN_LEGIBLE_PX,
|
|
36
|
+
u as Boost33Mark,
|
|
37
|
+
Q as CommandPalette,
|
|
38
|
+
$ as DotMatrixLoader,
|
|
39
|
+
to as LaunchLoader,
|
|
39
40
|
s as NavItem,
|
|
40
41
|
p as NavSection,
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
g as NotificationButton,
|
|
43
|
+
G as NotificationCenter,
|
|
43
44
|
_ as PageHeader,
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
l as ProductMark,
|
|
46
|
+
po as SettingsFrame,
|
|
46
47
|
e as Sidebar,
|
|
47
|
-
|
|
48
|
+
X as StandardAccountMenu,
|
|
49
|
+
S as TopBar,
|
|
48
50
|
h as WalletChip,
|
|
49
51
|
m as Wordmark,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
+
xo as checkNavHeightBudget,
|
|
53
|
+
y as defaultAccountMenuLabels,
|
|
52
54
|
W as defaultAppSwitcherLabels,
|
|
53
|
-
|
|
55
|
+
Y as defaultCommandPaletteLabels,
|
|
54
56
|
P as defaultNotificationButtonLabels,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
D as defaultNotificationCenterLabels,
|
|
58
|
+
mo as defaultSettingsFrameLabels,
|
|
59
|
+
z as defaultStandardAccountMenuLabels,
|
|
60
|
+
C as defaultTopBarLabels,
|
|
58
61
|
b as defaultWalletChipLabels,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
i as hasProductMark,
|
|
63
|
+
eo as launchBackdropCss,
|
|
64
|
+
uo as navBudgetForViewport,
|
|
65
|
+
lo as navContentHeight,
|
|
66
|
+
j as standardAccountMenuGroups
|
|
63
67
|
};
|
|
64
68
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|