@alfadocs/ui-kit-debug 0.35.0 → 0.36.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/_chunks/marketplace-app-shell-DXHxy9dj.js +295 -0
- package/dist/_chunks/marketplace-app-shell-DXHxy9dj.js.map +1 -0
- package/dist/_chunks/patient-search-CBq62kmL.js.map +1 -1
- package/dist/_chunks/payment-form-D5rgnZu7.js.map +1 -1
- package/dist/_chunks/practice-results-BFM_lyUs.js.map +1 -1
- package/dist/_chunks/tooth-scheme-CxlsLjfN.js.map +1 -1
- package/dist/_chunks/use-password-requirements-DsgduV1x.js.map +1 -1
- package/dist/agent-catalog.json +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/password-input/password-input.d.ts.map +1 -1
- package/dist/components/payment-form/payment-form.d.ts.map +1 -1
- package/dist/components/tooth-scheme/tooth-scheme.d.ts.map +1 -1
- package/dist/index.js +557 -632
- package/dist/index.js.map +1 -1
- package/dist/patterns/marketplace-app-shell/index.d.ts +3 -0
- package/dist/patterns/marketplace-app-shell/index.d.ts.map +1 -0
- package/dist/patterns/marketplace-app-shell/index.js +6 -0
- package/dist/patterns/marketplace-app-shell/index.js.map +1 -0
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +111 -0
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts.map +1 -0
- package/dist/tokens.css +1 -1
- package/package.json +11 -7
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { jsxs as s, jsx as e, Fragment as M } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h, useState as H } from "react";
|
|
3
|
+
import { useTranslation as I } from "react-i18next";
|
|
4
|
+
import { A as T } from "./app-frame-BYx1gcV7.js";
|
|
5
|
+
import { A as L } from "./avatar-BNQNhoyL.js";
|
|
6
|
+
import { A as O } from "./alert-ywPR59NE.js";
|
|
7
|
+
import { B as k } from "./button-DD_0Xdmr.js";
|
|
8
|
+
import { C as b } from "./card-DPmk26CL.js";
|
|
9
|
+
import { D as d } from "./dropdown-menu-BC5ZdOMo.js";
|
|
10
|
+
import { H as P, g as j, f as W, e as R, a as $, c as D, d as E } from "./header-CTZWX-tm.js";
|
|
11
|
+
import { S as F, a as V, h as q, j as G, k as J, i as K } from "./sidebar-BbR8f6oe.js";
|
|
12
|
+
import { T as Q } from "./theme-root-BOO73p5t.js";
|
|
13
|
+
import { a as U } from "./tooltip-DvmfrNvB.js";
|
|
14
|
+
import { u as X } from "./use-theme-C2dHKUAN.js";
|
|
15
|
+
import { c as N } from "./index-D2ZczOXr.js";
|
|
16
|
+
import { L as Y } from "./logo-_Z-jLq80.js";
|
|
17
|
+
const Z = N("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), _ = N(
|
|
18
|
+
[
|
|
19
|
+
"ds:[font-family:var(--font-serif)]",
|
|
20
|
+
"ds:font-semibold",
|
|
21
|
+
"ds:leading-none",
|
|
22
|
+
"ds:tracking-[0.01em]",
|
|
23
|
+
"ds:whitespace-nowrap",
|
|
24
|
+
// Forced-colors: drop the transparent text-fill and paint the label
|
|
25
|
+
// as solid CanvasText so it never disappears under Windows HCM —
|
|
26
|
+
// a gradient/transparent fill has no meaning there.
|
|
27
|
+
"ds:forced-colors:text-[CanvasText]",
|
|
28
|
+
"ds:forced-colors:[-webkit-text-fill-color:CanvasText]"
|
|
29
|
+
],
|
|
30
|
+
{
|
|
31
|
+
variants: {
|
|
32
|
+
size: {
|
|
33
|
+
sm: "ds:text-[calc(var(--logo-size-sm)*0.95)]",
|
|
34
|
+
md: "ds:text-[calc(var(--logo-size-md)*0.95)]",
|
|
35
|
+
lg: "ds:text-[calc(var(--logo-size-lg)*0.95)]",
|
|
36
|
+
xl: "ds:text-[calc(var(--logo-size-xl)*0.95)]"
|
|
37
|
+
},
|
|
38
|
+
tone: {
|
|
39
|
+
// Brand gradient filled into the glyphs via background-clip:text.
|
|
40
|
+
// `--gradient-wordmark` rides the theme aliases, so it stays
|
|
41
|
+
// AA-safe and adapts per theme on its own (and flattens to a solid
|
|
42
|
+
// ink in the accessible / forced-colors blocks — see tokens).
|
|
43
|
+
gradient: [
|
|
44
|
+
"ds:italic",
|
|
45
|
+
"ds:bg-[image:var(--gradient-wordmark)]",
|
|
46
|
+
"ds:bg-clip-text",
|
|
47
|
+
"ds:text-transparent",
|
|
48
|
+
"ds:[-webkit-text-fill-color:transparent]"
|
|
49
|
+
],
|
|
50
|
+
// Monochrome: solid `--foreground` ink, upright, no gradient — for
|
|
51
|
+
// print, single-colour reproductions, and constrained contexts.
|
|
52
|
+
solid: "ds:text-[color:var(--foreground)]"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
defaultVariants: { size: "md", tone: "gradient" }
|
|
56
|
+
}
|
|
57
|
+
), f = h(
|
|
58
|
+
({ name: t, monochrome: a = !1, size: r = "md", className: n, ...l }, o) => /* @__PURE__ */ s(
|
|
59
|
+
"span",
|
|
60
|
+
{
|
|
61
|
+
ref: o,
|
|
62
|
+
role: "img",
|
|
63
|
+
"aria-label": `Alfadocs ${t}`.trim(),
|
|
64
|
+
className: Z({ className: n }),
|
|
65
|
+
"data-component": "product-lockup",
|
|
66
|
+
...l,
|
|
67
|
+
children: [
|
|
68
|
+
/* @__PURE__ */ e(
|
|
69
|
+
Y,
|
|
70
|
+
{
|
|
71
|
+
variant: a ? "monochrome" : "wordmark",
|
|
72
|
+
size: r,
|
|
73
|
+
decorative: !0
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
/* @__PURE__ */ e(
|
|
77
|
+
"span",
|
|
78
|
+
{
|
|
79
|
+
"aria-hidden": !0,
|
|
80
|
+
className: _({
|
|
81
|
+
size: r,
|
|
82
|
+
tone: a ? "solid" : "gradient"
|
|
83
|
+
}),
|
|
84
|
+
children: t
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
);
|
|
91
|
+
f.displayName = "ProductLockup";
|
|
92
|
+
function ee(t) {
|
|
93
|
+
return t > 99 ? "99+" : String(t);
|
|
94
|
+
}
|
|
95
|
+
function ae({
|
|
96
|
+
user: t,
|
|
97
|
+
labels: a,
|
|
98
|
+
onSignOut: r,
|
|
99
|
+
onToggleFullscreen: n
|
|
100
|
+
}) {
|
|
101
|
+
return (
|
|
102
|
+
// Non-modal: an account menu shouldn't inert/aria-hide the whole shell
|
|
103
|
+
// behind it (which leaves the still-focusable chrome inside an
|
|
104
|
+
// aria-hidden region — an `aria-hidden-focus` violation).
|
|
105
|
+
/* @__PURE__ */ s(d.Root, { modal: !1, children: [
|
|
106
|
+
/* @__PURE__ */ e(d.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
|
|
107
|
+
k,
|
|
108
|
+
{
|
|
109
|
+
intent: "ghost",
|
|
110
|
+
"aria-label": a.accountMenu,
|
|
111
|
+
startIcon: /* @__PURE__ */ e(
|
|
112
|
+
L,
|
|
113
|
+
{
|
|
114
|
+
name: t.name,
|
|
115
|
+
src: t.avatarSrc,
|
|
116
|
+
size: "sm",
|
|
117
|
+
"aria-hidden": "true"
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
"data-testid": "marketplace-account-trigger",
|
|
121
|
+
children: /* @__PURE__ */ e("span", { className: "ds:hidden ds:sm:inline", children: t.name })
|
|
122
|
+
}
|
|
123
|
+
) }),
|
|
124
|
+
/* @__PURE__ */ s(d.Content, { align: "end", children: [
|
|
125
|
+
/* @__PURE__ */ e(d.Label, { children: /* @__PURE__ */ s("span", { className: "ds:flex ds:flex-col", children: [
|
|
126
|
+
/* @__PURE__ */ e("span", { className: "ds:font-medium", children: t.name }),
|
|
127
|
+
t.email ? /* @__PURE__ */ e("span", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)]", children: t.email }) : null
|
|
128
|
+
] }) }),
|
|
129
|
+
n && a.fullscreen ? /* @__PURE__ */ s(M, { children: [
|
|
130
|
+
/* @__PURE__ */ e(d.Separator, {}),
|
|
131
|
+
/* @__PURE__ */ e(
|
|
132
|
+
d.Item,
|
|
133
|
+
{
|
|
134
|
+
onSelect: n,
|
|
135
|
+
"data-testid": "marketplace-fullscreen",
|
|
136
|
+
children: a.fullscreen
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
] }) : null,
|
|
140
|
+
/* @__PURE__ */ e(d.Separator, {}),
|
|
141
|
+
/* @__PURE__ */ e(
|
|
142
|
+
d.Item,
|
|
143
|
+
{
|
|
144
|
+
onSelect: r,
|
|
145
|
+
"data-testid": "marketplace-sign-out",
|
|
146
|
+
children: a.signOut
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
] })
|
|
150
|
+
] })
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
function te({ nav: t }) {
|
|
154
|
+
return /* @__PURE__ */ e(V, { children: t.map((a) => {
|
|
155
|
+
const r = typeof a.badgeCount == "number" && a.badgeCount > 0 ? a.badgeCount : void 0;
|
|
156
|
+
return /* @__PURE__ */ s(
|
|
157
|
+
q,
|
|
158
|
+
{
|
|
159
|
+
href: a.href,
|
|
160
|
+
"aria-label": a.label,
|
|
161
|
+
isActive: a.isActive,
|
|
162
|
+
children: [
|
|
163
|
+
a.icon ? /* @__PURE__ */ e(G, { children: a.icon }) : null,
|
|
164
|
+
/* @__PURE__ */ e(J, { children: a.label }),
|
|
165
|
+
r !== void 0 ? /* @__PURE__ */ e(K, { children: ee(r) }) : null
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
a.id
|
|
169
|
+
);
|
|
170
|
+
}) });
|
|
171
|
+
}
|
|
172
|
+
const re = h(
|
|
173
|
+
({
|
|
174
|
+
productName: t,
|
|
175
|
+
productHref: a = "/",
|
|
176
|
+
nav: r,
|
|
177
|
+
user: n,
|
|
178
|
+
labels: l,
|
|
179
|
+
onSignOut: o,
|
|
180
|
+
onToggleFullscreen: c,
|
|
181
|
+
sidebarState: i,
|
|
182
|
+
mainAriaLabel: m,
|
|
183
|
+
children: p
|
|
184
|
+
}, u) => {
|
|
185
|
+
const { t: S } = I(), { theme: y, accessibility: A, resolvedTheme: g } = X(), C = y !== "system" || A !== "system", w = g.startsWith("dark") ? "dark" : "light", z = g.endsWith("-accessible"), [B, v] = H(!1), x = /* @__PURE__ */ e(U, { children: /* @__PURE__ */ e(
|
|
186
|
+
T,
|
|
187
|
+
{
|
|
188
|
+
mainAriaLabel: m,
|
|
189
|
+
header: /* @__PURE__ */ s(P, { children: [
|
|
190
|
+
/* @__PURE__ */ s(j, { children: [
|
|
191
|
+
/* @__PURE__ */ e(W, { href: "#main-content" }),
|
|
192
|
+
/* @__PURE__ */ e(R, { onMenuOpen: () => v(!0) }),
|
|
193
|
+
/* @__PURE__ */ e(
|
|
194
|
+
$,
|
|
195
|
+
{
|
|
196
|
+
logo: /* @__PURE__ */ e(f, { name: t, size: "md" }),
|
|
197
|
+
href: a,
|
|
198
|
+
"aria-label": `Alfadocs ${t}`
|
|
199
|
+
}
|
|
200
|
+
)
|
|
201
|
+
] }),
|
|
202
|
+
/* @__PURE__ */ e(D, {}),
|
|
203
|
+
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
|
|
204
|
+
ae,
|
|
205
|
+
{
|
|
206
|
+
user: n,
|
|
207
|
+
labels: l,
|
|
208
|
+
onSignOut: o,
|
|
209
|
+
onToggleFullscreen: c
|
|
210
|
+
}
|
|
211
|
+
) })
|
|
212
|
+
] }),
|
|
213
|
+
sidebar: /* @__PURE__ */ e(
|
|
214
|
+
F,
|
|
215
|
+
{
|
|
216
|
+
...i !== void 0 ? { state: i } : { defaultState: "expanded" },
|
|
217
|
+
open: B,
|
|
218
|
+
onOpenChange: v,
|
|
219
|
+
"aria-label": S("navigation.sidebar.label"),
|
|
220
|
+
"data-testid": "marketplace-app-shell-sidebar",
|
|
221
|
+
children: /* @__PURE__ */ e(te, { nav: r })
|
|
222
|
+
}
|
|
223
|
+
),
|
|
224
|
+
children: p
|
|
225
|
+
}
|
|
226
|
+
) });
|
|
227
|
+
return C ? /* @__PURE__ */ e(
|
|
228
|
+
Q,
|
|
229
|
+
{
|
|
230
|
+
ref: u,
|
|
231
|
+
theme: w,
|
|
232
|
+
accessible: z,
|
|
233
|
+
className: "ds:contents",
|
|
234
|
+
"data-component": "marketplace-app-shell",
|
|
235
|
+
children: x
|
|
236
|
+
}
|
|
237
|
+
) : /* @__PURE__ */ e(
|
|
238
|
+
"div",
|
|
239
|
+
{
|
|
240
|
+
ref: u,
|
|
241
|
+
className: "ds:contents",
|
|
242
|
+
"data-component": "marketplace-app-shell",
|
|
243
|
+
children: x
|
|
244
|
+
}
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
);
|
|
248
|
+
re.displayName = "MarketplaceAppShell";
|
|
249
|
+
const se = h(
|
|
250
|
+
({
|
|
251
|
+
productName: t,
|
|
252
|
+
title: a,
|
|
253
|
+
description: r,
|
|
254
|
+
connectLabel: n,
|
|
255
|
+
status: l = "idle",
|
|
256
|
+
error: o,
|
|
257
|
+
onConnect: c,
|
|
258
|
+
footer: i,
|
|
259
|
+
className: m
|
|
260
|
+
}, p) => /* @__PURE__ */ e(
|
|
261
|
+
"div",
|
|
262
|
+
{
|
|
263
|
+
ref: p,
|
|
264
|
+
"data-component": "connect-with-alfadocs",
|
|
265
|
+
className: `ds:flex ds:min-h-dvh ds:items-center ds:justify-center ds:bg-[color:var(--background)] ds:p-[var(--spacing-lg)] ${m ?? ""}`,
|
|
266
|
+
children: /* @__PURE__ */ e(b, { className: "ds:w-full ds:max-w-[400px]", children: /* @__PURE__ */ s(b.Body, { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-lg)] ds:text-center", children: [
|
|
267
|
+
/* @__PURE__ */ e(f, { name: t, size: "lg" }),
|
|
268
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
269
|
+
/* @__PURE__ */ e("h1", { className: "type-title-card", children: a }),
|
|
270
|
+
/* @__PURE__ */ e("p", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: r })
|
|
271
|
+
] }),
|
|
272
|
+
l === "error" && o ? /* @__PURE__ */ e(O, { variant: "error", className: "ds:w-full ds:text-start", children: o }) : null,
|
|
273
|
+
/* @__PURE__ */ e(
|
|
274
|
+
k,
|
|
275
|
+
{
|
|
276
|
+
intent: "primary",
|
|
277
|
+
className: "ds:w-full",
|
|
278
|
+
loading: l === "connecting",
|
|
279
|
+
onClick: c,
|
|
280
|
+
"data-testid": "connect-with-alfadocs-button",
|
|
281
|
+
children: n
|
|
282
|
+
}
|
|
283
|
+
),
|
|
284
|
+
i ? /* @__PURE__ */ e("div", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: i }) : null
|
|
285
|
+
] }) })
|
|
286
|
+
}
|
|
287
|
+
)
|
|
288
|
+
);
|
|
289
|
+
se.displayName = "ConnectWithAlfadocs";
|
|
290
|
+
export {
|
|
291
|
+
se as C,
|
|
292
|
+
re as M,
|
|
293
|
+
f as P
|
|
294
|
+
};
|
|
295
|
+
//# sourceMappingURL=marketplace-app-shell-DXHxy9dj.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplace-app-shell-DXHxy9dj.js","sources":["../../src/brand/product-lockup/product-lockup.tsx","../../src/patterns/marketplace-app-shell/marketplace-app-shell.tsx"],"sourcesContent":["import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Logo } from '../../components/logo/logo';\n\n/* ------------------------------------------------------------------ */\n/* CVA */\n/* ------------------------------------------------------------------ */\n\n// Outer lockup row. ~4px logical gap between the wordmark and the product\n// name (`--spacing-xs`), centre-aligned so the name's cap height sits\n// against the wordmark's letterforms.\nconst lockup = cva('ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]');\n\n// The product name. Marketing serif (Fraunces, `--font-serif`) — permitted\n// here because this file lives under `src/brand/`, never in `src/components/`\n// or `src/patterns/` (constraint 10). Sized to ~95% of the wordmark height so\n// its cap height matches the logo letterforms across every size and theme\n// (the `--logo-size-*` tokens shift up in the accessible themes; the calc\n// keeps the name proportional for free).\nconst productName = cva(\n [\n 'ds:[font-family:var(--font-serif)]',\n 'ds:font-semibold',\n 'ds:leading-none',\n 'ds:tracking-[0.01em]',\n 'ds:whitespace-nowrap',\n // Forced-colors: drop the transparent text-fill and paint the label\n // as solid CanvasText so it never disappears under Windows HCM —\n // a gradient/transparent fill has no meaning there.\n 'ds:forced-colors:text-[CanvasText]',\n 'ds:forced-colors:[-webkit-text-fill-color:CanvasText]',\n ],\n {\n variants: {\n size: {\n sm: 'ds:text-[calc(var(--logo-size-sm)*0.95)]',\n md: 'ds:text-[calc(var(--logo-size-md)*0.95)]',\n lg: 'ds:text-[calc(var(--logo-size-lg)*0.95)]',\n xl: 'ds:text-[calc(var(--logo-size-xl)*0.95)]',\n },\n tone: {\n // Brand gradient filled into the glyphs via background-clip:text.\n // `--gradient-wordmark` rides the theme aliases, so it stays\n // AA-safe and adapts per theme on its own (and flattens to a solid\n // ink in the accessible / forced-colors blocks — see tokens).\n gradient: [\n 'ds:italic',\n 'ds:bg-[image:var(--gradient-wordmark)]',\n 'ds:bg-clip-text',\n 'ds:text-transparent',\n 'ds:[-webkit-text-fill-color:transparent]',\n ],\n // Monochrome: solid `--foreground` ink, upright, no gradient — for\n // print, single-colour reproductions, and constrained contexts.\n solid: 'ds:text-[color:var(--foreground)]',\n },\n },\n defaultVariants: { size: 'md', tone: 'gradient' },\n },\n);\n\n/* ------------------------------------------------------------------ */\n/* Types */\n/* ------------------------------------------------------------------ */\n\ntype LockupSize = NonNullable<VariantProps<typeof productName>['size']>;\n\nexport type ProductLockupProps = {\n /**\n * The product name paired with the Alfadocs wordmark — e.g. `\"Builders\"`\n * renders as \"Alfadocs Builders\". Passed verbatim (product names are not\n * translated); the lockup's accessible name becomes `Alfadocs <name>`.\n */\n name: string;\n /**\n * Render the name as a solid `--foreground` ink, upright (no gradient, no\n * italic), and pair it with the monochrome wordmark. Use for print,\n * single-colour reproductions, or any constrained context where the\n * gradient/serif treatment is inappropriate.\n */\n monochrome?: boolean;\n /** Lockup size. Drives both the wordmark and the name's cap height. */\n size?: LockupSize;\n className?: string;\n} & Omit<\n ComponentPropsWithoutRef<'span'>,\n 'role' | 'aria-label' | 'aria-hidden' | 'children' | 'className'\n>;\n\n/* ------------------------------------------------------------------ */\n/* ProductLockup */\n/* ------------------------------------------------------------------ */\n\n/**\n * The standard lockup pairing the Alfadocs wordmark with a product name\n * (\"Alfadocs Builders\", \"Alfadocs MyApp\"). Every marketplace app should use\n * this rather than hand-rolling a wordmark + typed span.\n *\n * The whole lockup is exposed to assistive tech as a single `img` named\n * `Alfadocs <name>`; the inner wordmark and the visible name are both\n * decorative so the brand isn't announced twice.\n */\nexport const ProductLockup = forwardRef<HTMLSpanElement, ProductLockupProps>(\n ({ name, monochrome = false, size = 'md', className, ...props }, ref) => {\n if (import.meta.env.DEV && !name.trim()) {\n console.warn(\n '[ProductLockup] `name` is empty — the lockup will render the bare wordmark with no product name. Pass the product name (e.g. \"Builders\").',\n );\n }\n\n return (\n <span\n ref={ref}\n role=\"img\"\n aria-label={`Alfadocs ${name}`.trim()}\n className={lockup({ className })}\n data-component=\"product-lockup\"\n {...props}\n >\n <Logo\n variant={monochrome ? 'monochrome' : 'wordmark'}\n size={size}\n decorative\n />\n <span\n aria-hidden\n className={productName({\n size,\n tone: monochrome ? 'solid' : 'gradient',\n })}\n >\n {name}\n </span>\n </span>\n );\n },\n);\nProductLockup.displayName = 'ProductLockup';\n","/**\n * Marketplace App Shell — the standard chrome for an app built on top of\n * AlfaDocs (the kind a partner scaffolds with Claude Code, Lovable, etc.).\n *\n * It is a thin, opinionated composition of kit primitives: an `AppFrame` with\n * a branded `Header` (the `ProductLockup` \"Alfadocs <Product>\"), a `Sidebar`\n * for app navigation, and an account menu with sign-out. `ConnectWithAlfadocs`\n * is the matching pre-auth screen.\n *\n * Like `PatientShell`, this pattern ships a RUNTIME component (surfaced via\n * `src/patterns/index.ts` and the library bundle) because consuming apps mount\n * it in production rather than copying the source.\n *\n * Auth is intentionally decoupled: the shell takes the signed-in `user` and an\n * `onSignOut` callback as props, and `ConnectWithAlfadocs` takes a `status` +\n * `onConnect`. Wire them to `@alfadocs/auth/react`'s `useAlfadocsAuth()` in the\n * consuming app — the kit never touches OAuth or secrets (those live in the\n * server-side `@alfadocs/auth` BFF).\n *\n * All user-visible copy is consumer-provided (props) so each app localises in\n * its own i18n; the only kit-owned strings reuse existing translated `ui.*`\n * keys (sidebar label, skip link, menu button).\n */\nimport { forwardRef, useState, type ReactNode } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { AppFrame } from '../../components/app-frame';\nimport { Avatar } from '../../components/avatar';\nimport { Alert } from '../../components/alert';\nimport { Button } from '../../components/button';\nimport { Card } from '../../components/card';\nimport { DropdownMenu } from '../../components/dropdown-menu';\nimport {\n Header,\n HeaderBrand,\n HeaderCenter,\n HeaderEnd,\n HeaderMenuButton,\n HeaderSkipLink,\n HeaderStart,\n} from '../../components/header';\nimport {\n Sidebar,\n SidebarBody,\n SidebarItem,\n SidebarItemBadge,\n SidebarItemIcon,\n SidebarItemLabel,\n type SidebarMode,\n} from '../../components/sidebar';\nimport { ThemeRoot } from '../../components/theme-root';\nimport { TooltipProvider } from '../../components/tooltip';\nimport { ProductLockup } from '../../brand/product-lockup';\nimport { useTheme } from '../../hooks/use-theme';\n\n/* ------------------------------------------------------------------ */\n/* Public API */\n/* ------------------------------------------------------------------ */\n\nexport interface MarketplaceNavItem {\n id: string;\n /** Pre-translated label — apps localise their own nav copy. */\n label: string;\n href: string;\n /** Optional leading icon (a lucide-react element or equivalent). */\n icon?: ReactNode;\n /** Optional unseen-item count rendered as a pill badge. */\n badgeCount?: number;\n /** Mark the item as the current page (`aria-current='page'`). */\n isActive?: boolean;\n}\n\nexport interface MarketplaceAppUser {\n /** Display name — drives the avatar initials + the account-menu header. */\n name: string;\n /** Optional email shown under the name in the account menu. */\n email?: string;\n /** Optional avatar image URL. */\n avatarSrc?: string;\n}\n\nexport interface MarketplaceAppShellLabels {\n /** Accessible name for the account-menu trigger, e.g. \"Account menu\". */\n accountMenu: string;\n /** The sign-out menu item, e.g. \"Sign out\". */\n signOut: string;\n /**\n * Optional fullscreen menu item, e.g. \"Toggle fullscreen\". When omitted (or\n * `onToggleFullscreen` is not supplied) the item is not rendered.\n */\n fullscreen?: string;\n}\n\nexport interface MarketplaceAppShellProps {\n /** Product name paired with the Alfadocs wordmark — renders \"Alfadocs <productName>\". */\n productName: string;\n /** Link target for the brand lockup. Default `'/'`. */\n productHref?: string;\n /** Sidebar nav items, in order. */\n nav: MarketplaceNavItem[];\n /** The signed-in user shown in the account menu. */\n user: MarketplaceAppUser;\n /** Consumer-localised chrome labels owned by the shell. */\n labels: MarketplaceAppShellLabels;\n /** Fires when the user picks \"Sign out\". Wire to `useAlfadocsAuth().signOut`. */\n onSignOut?: () => void;\n /** Fires when the user toggles fullscreen. Omit to hide the fullscreen item. */\n onToggleFullscreen?: () => void;\n /**\n * Force the sidebar into a specific mode. Apps typically flip to `'overlay'`\n * on narrow viewports and leave this undefined elsewhere (defaults to\n * `'expanded'`).\n */\n sidebarState?: SidebarMode;\n /** Override the accessible name of the `<main>` landmark. */\n mainAriaLabel?: string;\n /** Children render inside the main content region. */\n children: ReactNode;\n}\n\n/* ------------------------------------------------------------------ */\n/* Internals */\n/* ------------------------------------------------------------------ */\n\nfunction formatBadgeCount(count: number): string {\n return count > 99 ? '99+' : String(count);\n}\n\nfunction AccountMenu({\n user,\n labels,\n onSignOut,\n onToggleFullscreen,\n}: {\n user: MarketplaceAppUser;\n labels: MarketplaceAppShellLabels;\n onSignOut?: () => void;\n onToggleFullscreen?: () => void;\n}) {\n return (\n // Non-modal: an account menu shouldn't inert/aria-hide the whole shell\n // behind it (which leaves the still-focusable chrome inside an\n // aria-hidden region — an `aria-hidden-focus` violation).\n <DropdownMenu.Root modal={false}>\n <DropdownMenu.Trigger asChild>\n <Button\n intent=\"ghost\"\n aria-label={labels.accountMenu}\n startIcon={\n <Avatar\n name={user.name}\n src={user.avatarSrc}\n size=\"sm\"\n aria-hidden=\"true\"\n />\n }\n data-testid=\"marketplace-account-trigger\"\n >\n <span className=\"ds:hidden ds:sm:inline\">{user.name}</span>\n </Button>\n </DropdownMenu.Trigger>\n <DropdownMenu.Content align=\"end\">\n <DropdownMenu.Label>\n <span className=\"ds:flex ds:flex-col\">\n <span className=\"ds:font-medium\">{user.name}</span>\n {user.email ? (\n <span className=\"ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)]\">\n {user.email}\n </span>\n ) : null}\n </span>\n </DropdownMenu.Label>\n {onToggleFullscreen && labels.fullscreen ? (\n <>\n <DropdownMenu.Separator />\n <DropdownMenu.Item\n onSelect={onToggleFullscreen}\n data-testid=\"marketplace-fullscreen\"\n >\n {labels.fullscreen}\n </DropdownMenu.Item>\n </>\n ) : null}\n <DropdownMenu.Separator />\n <DropdownMenu.Item\n onSelect={onSignOut}\n data-testid=\"marketplace-sign-out\"\n >\n {labels.signOut}\n </DropdownMenu.Item>\n </DropdownMenu.Content>\n </DropdownMenu.Root>\n );\n}\n\nfunction MarketplaceSidebarNav({ nav }: { nav: MarketplaceNavItem[] }) {\n return (\n <SidebarBody>\n {nav.map((item) => {\n const badge =\n typeof item.badgeCount === 'number' && item.badgeCount > 0\n ? item.badgeCount\n : undefined;\n return (\n <SidebarItem\n key={item.id}\n href={item.href}\n aria-label={item.label}\n isActive={item.isActive}\n >\n {item.icon ? <SidebarItemIcon>{item.icon}</SidebarItemIcon> : null}\n <SidebarItemLabel>{item.label}</SidebarItemLabel>\n {badge !== undefined ? (\n <SidebarItemBadge>{formatBadgeCount(badge)}</SidebarItemBadge>\n ) : null}\n </SidebarItem>\n );\n })}\n </SidebarBody>\n );\n}\n\n/* ------------------------------------------------------------------ */\n/* MarketplaceAppShell */\n/* ------------------------------------------------------------------ */\n\nexport const MarketplaceAppShell = forwardRef<\n HTMLDivElement,\n MarketplaceAppShellProps\n>(\n (\n {\n productName,\n productHref = '/',\n nav,\n user,\n labels,\n onSignOut,\n onToggleFullscreen,\n sidebarState,\n mainAriaLabel,\n children,\n },\n ref,\n ) => {\n const { t } = useTranslation();\n\n // Mirror PatientShell: only wrap in a nested ThemeRoot when the user has an\n // explicit theme/accessibility override, so we don't clobber the consuming\n // app's (or Storybook's) outer theme cascade.\n const { theme: themePref, accessibility, resolvedTheme } = useTheme();\n const hasExplicitOverride =\n themePref !== 'system' || accessibility !== 'system';\n const themeBase = resolvedTheme.startsWith('dark') ? 'dark' : 'light';\n const themeAccessible = resolvedTheme.endsWith('-accessible');\n\n // Narrow-viewport overlay: HeaderMenuButton only renders below `md`.\n const [sidebarOpen, setSidebarOpen] = useState(false);\n\n const shell = (\n <TooltipProvider>\n <AppFrame\n mainAriaLabel={mainAriaLabel}\n header={\n <Header>\n <HeaderStart>\n <HeaderSkipLink href=\"#main-content\" />\n <HeaderMenuButton onMenuOpen={() => setSidebarOpen(true)} />\n <HeaderBrand\n logo={<ProductLockup name={productName} size=\"md\" />}\n href={productHref}\n aria-label={`Alfadocs ${productName}`}\n />\n </HeaderStart>\n <HeaderCenter />\n <HeaderEnd>\n <AccountMenu\n user={user}\n labels={labels}\n onSignOut={onSignOut}\n onToggleFullscreen={onToggleFullscreen}\n />\n </HeaderEnd>\n </Header>\n }\n sidebar={\n <Sidebar\n {...(sidebarState !== undefined\n ? { state: sidebarState }\n : { defaultState: 'expanded' as const })}\n open={sidebarOpen}\n onOpenChange={setSidebarOpen}\n aria-label={t('navigation.sidebar.label')}\n data-testid=\"marketplace-app-shell-sidebar\"\n >\n <MarketplaceSidebarNav nav={nav} />\n </Sidebar>\n }\n >\n {children}\n </AppFrame>\n </TooltipProvider>\n );\n\n if (!hasExplicitOverride) {\n return (\n <div\n ref={ref as never}\n className=\"ds:contents\"\n data-component=\"marketplace-app-shell\"\n >\n {shell}\n </div>\n );\n }\n\n return (\n <ThemeRoot\n ref={ref}\n theme={themeBase}\n accessible={themeAccessible}\n className=\"ds:contents\"\n data-component=\"marketplace-app-shell\"\n >\n {shell}\n </ThemeRoot>\n );\n },\n);\n\nMarketplaceAppShell.displayName = 'MarketplaceAppShell';\n\n/* ------------------------------------------------------------------ */\n/* ConnectWithAlfadocs */\n/* ------------------------------------------------------------------ */\n\nexport type ConnectStatus = 'idle' | 'connecting' | 'error';\n\nexport interface ConnectWithAlfadocsProps {\n /** Product name for the lockup at the top of the card. */\n productName: string;\n /** Heading, e.g. \"Connect your AlfaDocs account\". */\n title: string;\n /** Supporting copy below the heading. */\n description: ReactNode;\n /** The connect button label, e.g. \"Connect with AlfaDocs\". */\n connectLabel: string;\n /** Connection lifecycle. `connecting` shows a loading button; `error` shows the alert. */\n status?: ConnectStatus;\n /** Error message shown (as an alert) when `status === 'error'`. */\n error?: ReactNode;\n /** Fires when the connect button is pressed. Wire to `useAlfadocsAuth().connect`. */\n onConnect?: () => void;\n /** Optional footer content below the button (e.g. a \"what's this?\" link). */\n footer?: ReactNode;\n className?: string;\n}\n\n/**\n * The pre-auth \"Connect with AlfaDocs\" screen. Centred card with the product\n * lockup, copy, an error slot, and the primary connect CTA. Presentational —\n * `onConnect` should call `useAlfadocsAuth().connect()`, which redirects the\n * browser to the server-side BFF that runs the real OAuth2 + PKCE flow.\n */\nexport const ConnectWithAlfadocs = forwardRef<\n HTMLDivElement,\n ConnectWithAlfadocsProps\n>(\n (\n {\n productName,\n title,\n description,\n connectLabel,\n status = 'idle',\n error,\n onConnect,\n footer,\n className,\n },\n ref,\n ) => {\n return (\n <div\n ref={ref}\n data-component=\"connect-with-alfadocs\"\n className={`ds:flex ds:min-h-dvh ds:items-center ds:justify-center ds:bg-[color:var(--background)] ds:p-[var(--spacing-lg)] ${className ?? ''}`}\n >\n <Card className=\"ds:w-full ds:max-w-[400px]\">\n <Card.Body className=\"ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-lg)] ds:text-center\">\n <ProductLockup name={productName} size=\"lg\" />\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]\">\n <h1 className=\"type-title-card\">{title}</h1>\n <p className=\"type-body-sm ds:text-[color:var(--muted-foreground)]\">\n {description}\n </p>\n </div>\n {status === 'error' && error ? (\n <Alert variant=\"error\" className=\"ds:w-full ds:text-start\">\n {error}\n </Alert>\n ) : null}\n <Button\n intent=\"primary\"\n className=\"ds:w-full\"\n loading={status === 'connecting'}\n onClick={onConnect}\n data-testid=\"connect-with-alfadocs-button\"\n >\n {connectLabel}\n </Button>\n {footer ? (\n <div className=\"type-meta ds:text-[color:var(--muted-foreground)]\">\n {footer}\n </div>\n ) : null}\n </Card.Body>\n </Card>\n </div>\n );\n },\n);\n\nConnectWithAlfadocs.displayName = 'ConnectWithAlfadocs';\n"],"names":["lockup","cva","productName","ProductLockup","forwardRef","name","monochrome","size","className","props","ref","jsxs","jsx","Logo","formatBadgeCount","count","AccountMenu","user","labels","onSignOut","onToggleFullscreen","DropdownMenu","Button","Avatar","Fragment","MarketplaceSidebarNav","nav","SidebarBody","item","badge","SidebarItem","SidebarItemIcon","SidebarItemLabel","SidebarItemBadge","MarketplaceAppShell","productHref","sidebarState","mainAriaLabel","children","t","useTranslation","themePref","accessibility","resolvedTheme","useTheme","hasExplicitOverride","themeBase","themeAccessible","sidebarOpen","setSidebarOpen","useState","shell","TooltipProvider","AppFrame","Header","HeaderStart","HeaderSkipLink","HeaderMenuButton","HeaderBrand","HeaderCenter","HeaderEnd","Sidebar","ThemeRoot","ConnectWithAlfadocs","title","description","connectLabel","status","error","onConnect","footer","Card","Alert"],"mappings":";;;;;;;;;;;;;;;;AAWA,MAAMA,IAASC,EAAI,2DAA2D,GAQxEC,IAAcD;AAAA,EAClB;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAIA;AAAA,IACA;AAAA,EA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