@alfadocs/ui-kit 0.87.0 → 0.88.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,25 +1,25 @@
1
- import { jsxs as r, jsx as a, Fragment as M } from "react/jsx-runtime";
2
- import { forwardRef as b, useState as P } from "react";
3
- import { useTranslation as T } from "react-i18next";
4
- import { c as u } from "./index-D2ZczOXr.js";
5
- import { A as E } from "./app-frame-DIEMIC5V.js";
6
- import { A as C } from "./avatar-BNQNhoyL.js";
7
- import { A as D } from "./alert-Cxaqd-QO.js";
1
+ import { jsxs as t, jsx as a, Fragment as M } from "react/jsx-runtime";
2
+ import { forwardRef as b, useState as E } from "react";
3
+ import { useTranslation as B } from "react-i18next";
4
+ import { c as p } from "./index-D2ZczOXr.js";
5
+ import { A as D } from "./app-frame-DIEMIC5V.js";
6
+ import { A as S } from "./avatar-BNQNhoyL.js";
7
+ import { A as F } from "./alert-Cxaqd-QO.js";
8
8
  import { C as w } from "./card-DPmk26CL.js";
9
9
  import { D as m } from "./dropdown-menu-DU-Hrf33.js";
10
- import { T as F } from "./tab-bar-Axhk6xzx.js";
11
- import { a as S, H as q, g as G, f as A, e as J, c as K, d as Q } from "./header-CjwasYnn.js";
12
- import { H as U } from "./header-settings-CLwFqMHI.js";
13
- import { S as X } from "./sign-in-with-alfadocs-button-UlYefZpI.js";
14
- import { S as Y, a as Z, j as _, k as aa, i as ea, h as z } from "./sidebar-C0PbwJBc.js";
15
- import { T as sa } from "./theme-root-BOO73p5t.js";
16
- import { a as ta } from "./tooltip-DvmfrNvB.js";
17
- import { u as ra } from "./use-theme-CAuo6EYT.js";
18
- import { A as na, L as da } from "./logo-1FuSGx0n.js";
19
- import { A as ia } from "./Alfadocs_Logo_Mark-7o3L3WBI.js";
20
- import { M as la } from "./maximize-2-BYd2Kti7.js";
21
- import { L as oa } from "./log-out-oDS6zO5d.js";
22
- const ca = u("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), ma = u(
10
+ import { T as q } from "./tab-bar-Axhk6xzx.js";
11
+ import { a as A, H as G, g as J, f as z, e as K, c as Q, d as U } from "./header-CjwasYnn.js";
12
+ import { H as X } from "./header-settings-CLwFqMHI.js";
13
+ import { S as Y } from "./sign-in-with-alfadocs-button-UlYefZpI.js";
14
+ import { S as Z, g as _, b as aa, a as ea, j as sa, k as ra, i as ta, h as I } from "./sidebar-C0PbwJBc.js";
15
+ import { T as na } from "./theme-root-BOO73p5t.js";
16
+ import { a as da } from "./tooltip-DvmfrNvB.js";
17
+ import { u as ia } from "./use-theme-CAuo6EYT.js";
18
+ import { A as la, L as oa } from "./logo-1FuSGx0n.js";
19
+ import { A as ca } from "./Alfadocs_Logo_Mark-7o3L3WBI.js";
20
+ import { M as ma } from "./maximize-2-BYd2Kti7.js";
21
+ import { L as pa } from "./log-out-oDS6zO5d.js";
22
+ const ua = p("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), fa = p(
23
23
  [
24
24
  "ds:[font-family:var(--font-serif)]",
25
25
  "ds:font-semibold",
@@ -60,7 +60,7 @@ const ca = u("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), ma =
60
60
  },
61
61
  defaultVariants: { size: "md", tone: "gradient" }
62
62
  }
63
- ), pa = u("ds:whitespace-nowrap", {
63
+ ), ha = p("ds:whitespace-nowrap", {
64
64
  variants: {
65
65
  size: {
66
66
  sm: "ds:[--lockup-unit:var(--logo-size-sm)]",
@@ -75,47 +75,47 @@ const ca = u("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), ma =
75
75
  name: s,
76
76
  variant: n = "standard",
77
77
  monochrome: e = !1,
78
- tone: t = "auto",
78
+ tone: r = "auto",
79
79
  size: d = "md",
80
80
  className: l,
81
81
  ...c
82
82
  }, o) => {
83
83
  if (n === "maker") {
84
- const i = t === "inherit", p = i ? "" : e ? "ds:text-[color:var(--foreground)]" : "ds:text-[color:var(--primary)]", h = i ? "" : e ? "ds:text-[color:var(--foreground)]" : "ds:text-[color:var(--primary)]", f = i ? "" : "ds:text-[color:var(--muted-foreground)]", v = i ? "" : "ds:text-[color:var(--foreground)]";
85
- return /* @__PURE__ */ r(
84
+ const i = r === "inherit", u = i ? "" : e ? "ds:text-[color:var(--foreground)]" : "ds:text-[color:var(--primary)]", f = i ? "" : e ? "ds:text-[color:var(--foreground)]" : "ds:text-[color:var(--primary)]", h = i ? "" : "ds:text-[color:var(--muted-foreground)]", v = i ? "" : "ds:text-[color:var(--foreground)]";
85
+ return /* @__PURE__ */ t(
86
86
  "span",
87
87
  {
88
88
  ref: o,
89
89
  role: "img",
90
90
  "aria-label": `${s} by Alfadocs`.trim(),
91
- className: pa({ size: d, className: l }),
91
+ className: ha({ size: d, className: l }),
92
92
  "data-component": "product-lockup",
93
93
  ...c,
94
94
  children: [
95
95
  /* @__PURE__ */ a(
96
- ia,
96
+ ca,
97
97
  {
98
98
  "aria-hidden": !0,
99
- className: `ds:inline-block ds:align-middle ds:me-[var(--spacing-sm)] ds:h-[calc(var(--lockup-unit)*0.88)] ds:w-auto ds:forced-colors:text-[CanvasText] ${p}`
99
+ className: `ds:inline-block ds:align-middle ds:me-[var(--spacing-sm)] ds:h-[calc(var(--lockup-unit)*0.88)] ds:w-auto ds:forced-colors:text-[CanvasText] ${u}`
100
100
  }
101
101
  ),
102
102
  /* @__PURE__ */ a(
103
103
  "span",
104
104
  {
105
105
  "aria-hidden": !0,
106
- className: `ds:align-middle ds:[font-family:var(--font-serif)] ds:font-semibold ds:italic ds:leading-none ds:tracking-[0.01em] ${h} ds:text-[calc(var(--lockup-unit)*0.95)]`,
106
+ className: `ds:align-middle ds:[font-family:var(--font-serif)] ds:font-semibold ds:italic ds:leading-none ds:tracking-[0.01em] ${f} ds:text-[calc(var(--lockup-unit)*0.95)]`,
107
107
  children: s
108
108
  }
109
109
  ),
110
- /* @__PURE__ */ r(
110
+ /* @__PURE__ */ t(
111
111
  "span",
112
112
  {
113
113
  "aria-hidden": !0,
114
- className: `ds:align-text-top ds:ms-[var(--spacing-sm)] ds:inline-flex ds:items-baseline ds:gap-[var(--spacing-2xs)] ${f}`,
114
+ className: `ds:align-text-top ds:ms-[var(--spacing-sm)] ds:inline-flex ds:items-baseline ds:gap-[var(--spacing-2xs)] ${h}`,
115
115
  children: [
116
116
  /* @__PURE__ */ a("span", { className: "ds:text-[calc(var(--lockup-unit)*0.4)] ds:leading-none", children: "by" }),
117
117
  /* @__PURE__ */ a(
118
- na,
118
+ la,
119
119
  {
120
120
  "aria-hidden": !0,
121
121
  viewBox: "168 0 637 125",
@@ -129,21 +129,21 @@ const ca = u("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), ma =
129
129
  }
130
130
  );
131
131
  }
132
- return /* @__PURE__ */ r(
132
+ return /* @__PURE__ */ t(
133
133
  "span",
134
134
  {
135
135
  ref: o,
136
136
  role: "img",
137
137
  "aria-label": `Alfadocs ${s}`.trim(),
138
- className: ca({ className: l }),
138
+ className: ua({ className: l }),
139
139
  "data-component": "product-lockup",
140
140
  ...c,
141
141
  children: [
142
142
  /* @__PURE__ */ a(
143
- da,
143
+ oa,
144
144
  {
145
145
  variant: e ? "monochrome" : "wordmark",
146
- tone: t,
146
+ tone: r,
147
147
  size: d,
148
148
  decorative: !0
149
149
  }
@@ -152,7 +152,7 @@ const ca = u("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), ma =
152
152
  "span",
153
153
  {
154
154
  "aria-hidden": !0,
155
- className: ma({
155
+ className: fa({
156
156
  size: d,
157
157
  tone: e ? "solid" : "gradient"
158
158
  }),
@@ -165,21 +165,21 @@ const ca = u("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), ma =
165
165
  }
166
166
  );
167
167
  g.displayName = "ProductLockup";
168
- function ua(s) {
168
+ function ga(s) {
169
169
  return s > 99 ? "99+" : String(s);
170
170
  }
171
- function fa({
171
+ function va({
172
172
  user: s,
173
173
  labels: n,
174
174
  onSignOut: e,
175
- onToggleFullscreen: t
175
+ onToggleFullscreen: r
176
176
  }) {
177
- const { t: d } = T(), l = n.fullscreen ?? d("marketplaceAppShell.settings.fullscreen");
177
+ const { t: d } = B(), l = n.fullscreen ?? d("marketplaceAppShell.settings.fullscreen");
178
178
  return (
179
179
  // Non-modal: an account menu shouldn't inert/aria-hide the whole shell
180
180
  // behind it (which leaves the still-focusable chrome inside an
181
181
  // aria-hidden region — an `aria-hidden-focus` violation).
182
- /* @__PURE__ */ r(m.Root, { modal: !1, children: [
182
+ /* @__PURE__ */ t(m.Root, { modal: !1, children: [
183
183
  /* @__PURE__ */ a(m.Trigger, { asChild: !0, children: /* @__PURE__ */ a(
184
184
  "button",
185
185
  {
@@ -187,24 +187,24 @@ function fa({
187
187
  "aria-label": n.accountMenu,
188
188
  "data-testid": "marketplace-account-trigger",
189
189
  className: "ds:inline-flex ds:items-center ds:justify-center ds:shrink-0 ds:size-10 ds:rounded-[var(--radius-full)] ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)] ds:forced-colors:focus-visible:outline-[CanvasText]",
190
- children: /* @__PURE__ */ a("span", { "aria-hidden": "true", children: /* @__PURE__ */ a(C, { name: s.name, src: s.avatarSrc, size: "md" }) })
190
+ children: /* @__PURE__ */ a("span", { "aria-hidden": "true", children: /* @__PURE__ */ a(S, { name: s.name, src: s.avatarSrc, size: "md" }) })
191
191
  }
192
192
  ) }),
193
- /* @__PURE__ */ r(m.Content, { align: "end", collisionPadding: 16, children: [
194
- /* @__PURE__ */ a(m.Label, { children: /* @__PURE__ */ r("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
195
- /* @__PURE__ */ a("span", { "aria-hidden": "true", children: /* @__PURE__ */ a(C, { name: s.name, src: s.avatarSrc, size: "sm" }) }),
196
- /* @__PURE__ */ r("span", { className: "ds:flex ds:flex-col ds:min-w-0", children: [
193
+ /* @__PURE__ */ t(m.Content, { align: "end", collisionPadding: 16, children: [
194
+ /* @__PURE__ */ a(m.Label, { children: /* @__PURE__ */ t("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
195
+ /* @__PURE__ */ a("span", { "aria-hidden": "true", children: /* @__PURE__ */ a(S, { name: s.name, src: s.avatarSrc, size: "sm" }) }),
196
+ /* @__PURE__ */ t("span", { className: "ds:flex ds:flex-col ds:min-w-0", children: [
197
197
  /* @__PURE__ */ a("span", { className: "type-label ds:text-[color:var(--foreground)] ds:truncate", children: s.name }),
198
198
  s.email ? /* @__PURE__ */ a("span", { className: "type-meta ds:truncate", children: s.email }) : null
199
199
  ] })
200
200
  ] }) }),
201
- t ? /* @__PURE__ */ r(M, { children: [
201
+ r ? /* @__PURE__ */ t(M, { children: [
202
202
  /* @__PURE__ */ a(m.Separator, {}),
203
203
  /* @__PURE__ */ a(
204
204
  m.Item,
205
205
  {
206
- startIcon: /* @__PURE__ */ a(la, { "aria-hidden": !0 }),
207
- onSelect: t,
206
+ startIcon: /* @__PURE__ */ a(ma, { "aria-hidden": !0 }),
207
+ onSelect: r,
208
208
  "data-testid": "marketplace-fullscreen",
209
209
  children: l
210
210
  }
@@ -214,7 +214,7 @@ function fa({
214
214
  /* @__PURE__ */ a(
215
215
  m.Item,
216
216
  {
217
- startIcon: /* @__PURE__ */ a(oa, { "aria-hidden": !0 }),
217
+ startIcon: /* @__PURE__ */ a(pa, { "aria-hidden": !0 }),
218
218
  onSelect: e,
219
219
  "data-testid": "marketplace-sign-out",
220
220
  children: n.signOut
@@ -224,22 +224,22 @@ function fa({
224
224
  ] })
225
225
  );
226
226
  }
227
- function ha({
227
+ function xa({
228
228
  nav: s,
229
229
  renderLink: n
230
230
  }) {
231
- return /* @__PURE__ */ a(Z, { children: s.map((e) => {
232
- const t = typeof e.badgeCount == "number" && e.badgeCount > 0 ? e.badgeCount : void 0, d = /* @__PURE__ */ r(M, { children: [
233
- e.icon ? /* @__PURE__ */ a(_, { children: e.icon }) : null,
234
- /* @__PURE__ */ a(aa, { children: e.label }),
235
- t !== void 0 ? /* @__PURE__ */ a(ea, { children: ua(t) }) : null
231
+ return /* @__PURE__ */ a(ea, { children: s.map((e) => {
232
+ const r = typeof e.badgeCount == "number" && e.badgeCount > 0 ? e.badgeCount : void 0, d = /* @__PURE__ */ t(M, { children: [
233
+ e.icon ? /* @__PURE__ */ a(sa, { children: e.icon }) : null,
234
+ /* @__PURE__ */ a(ra, { children: e.label }),
235
+ r !== void 0 ? /* @__PURE__ */ a(ta, { children: ga(r) }) : null
236
236
  ] });
237
- return n ? /* @__PURE__ */ a(z, { asChild: !0, isActive: e.isActive, children: n({
237
+ return n ? /* @__PURE__ */ a(I, { asChild: !0, isActive: e.isActive, children: n({
238
238
  href: e.href,
239
239
  children: d,
240
240
  "aria-current": e.isActive ? "page" : void 0
241
241
  }) }, e.id) : /* @__PURE__ */ a(
242
- z,
242
+ I,
243
243
  {
244
244
  href: e.href,
245
245
  "aria-label": e.label,
@@ -251,7 +251,7 @@ function ha({
251
251
  );
252
252
  }) });
253
253
  }
254
- const I = u("ds:bg-[color:var(--app-shell-background)]", {
254
+ const T = p("ds:bg-[color:var(--app-shell-background)]", {
255
255
  variants: {
256
256
  variant: {
257
257
  standalone: "",
@@ -264,42 +264,43 @@ const I = u("ds:bg-[color:var(--app-shell-background)]", {
264
264
  },
265
265
  defaultVariants: { variant: "standalone" }
266
266
  });
267
- function ga({
267
+ function ba({
268
268
  nav: s,
269
269
  ariaLabel: n,
270
270
  renderLink: e
271
271
  }) {
272
- const t = e ? ({
272
+ const r = e ? ({
273
273
  href: d,
274
274
  className: l,
275
275
  children: c,
276
276
  "aria-current": o
277
277
  }) => e({ href: d, className: l, children: c, "aria-current": o }) : void 0;
278
278
  return /* @__PURE__ */ a(
279
- F,
279
+ q,
280
280
  {
281
281
  items: s,
282
282
  ariaLabel: n,
283
- ...t ? { renderLink: t } : {}
283
+ ...r ? { renderLink: r } : {}
284
284
  }
285
285
  );
286
286
  }
287
- const va = b(
287
+ const ka = b(
288
288
  ({
289
289
  productName: s,
290
290
  productHref: n = "/",
291
291
  nav: e,
292
- renderLink: t,
292
+ renderLink: r,
293
293
  user: d,
294
294
  labels: l,
295
295
  onSignOut: c,
296
296
  onToggleFullscreen: o,
297
297
  sidebarState: i,
298
- mainAriaLabel: p,
298
+ collapsibleSidebar: u = !1,
299
+ mainAriaLabel: f,
299
300
  variant: h = "standalone",
300
- children: f
301
- }, v) => {
302
- const { t: x } = T(), B = t ? /* @__PURE__ */ a(S, { asChild: !0, children: t({
301
+ children: v
302
+ }, k) => {
303
+ const { t: x } = B(), H = r ? /* @__PURE__ */ a(A, { asChild: !0, children: r({
303
304
  href: n,
304
305
  children: /* @__PURE__ */ a(
305
306
  g,
@@ -311,7 +312,7 @@ const va = b(
311
312
  }
312
313
  )
313
314
  }) }) : /* @__PURE__ */ a(
314
- S,
315
+ A,
315
316
  {
316
317
  href: n,
317
318
  logo: /* @__PURE__ */ a(
@@ -324,22 +325,22 @@ const va = b(
324
325
  }
325
326
  )
326
327
  }
327
- ), { theme: L, accessibility: V, resolvedTheme: k } = ra(), H = L !== "system" || V !== "system", $ = k.startsWith("dark") ? "dark" : "light", j = k.endsWith("-accessible"), [O, y] = P(!1), R = /* @__PURE__ */ a(ta, { children: /* @__PURE__ */ a(
328
- E,
328
+ ), { theme: L, accessibility: V, resolvedTheme: y } = ia(), $ = L !== "system" || V !== "system", j = y.startsWith("dark") ? "dark" : "light", O = y.endsWith("-accessible"), [R, N] = E(!1), W = /* @__PURE__ */ a(da, { children: /* @__PURE__ */ a(
329
+ D,
329
330
  {
330
- mainAriaLabel: p,
331
- mainClassName: I({ variant: "standalone" }),
332
- header: /* @__PURE__ */ r(q, { children: [
333
- /* @__PURE__ */ r(G, { children: [
334
- /* @__PURE__ */ a(A, { href: "#main-content" }),
335
- /* @__PURE__ */ a(J, { onMenuOpen: () => y(!0) }),
336
- B
331
+ mainAriaLabel: f,
332
+ mainClassName: T({ variant: "standalone" }),
333
+ header: /* @__PURE__ */ t(G, { children: [
334
+ /* @__PURE__ */ t(J, { children: [
335
+ /* @__PURE__ */ a(z, { href: "#main-content" }),
336
+ /* @__PURE__ */ a(K, { onMenuOpen: () => N(!0) }),
337
+ H
337
338
  ] }),
338
- /* @__PURE__ */ a(K, {}),
339
- /* @__PURE__ */ r(Q, { children: [
340
- /* @__PURE__ */ a(U, { size: "sm" }),
339
+ /* @__PURE__ */ a(Q, {}),
340
+ /* @__PURE__ */ t(U, { children: [
341
+ /* @__PURE__ */ a(X, { size: "sm" }),
341
342
  /* @__PURE__ */ a(
342
- fa,
343
+ va,
343
344
  {
344
345
  user: d,
345
346
  labels: l,
@@ -349,30 +350,39 @@ const va = b(
349
350
  )
350
351
  ] })
351
352
  ] }),
352
- sidebar: /* @__PURE__ */ a(
353
- Y,
353
+ sidebar: /* @__PURE__ */ t(
354
+ Z,
354
355
  {
355
356
  ...i !== void 0 ? { state: i } : { defaultState: "expanded" },
356
- open: O,
357
- onOpenChange: y,
357
+ open: R,
358
+ onOpenChange: N,
358
359
  "aria-label": x("navigation.sidebar.label"),
359
360
  "data-testid": "marketplace-app-shell-sidebar",
360
- children: /* @__PURE__ */ a(ha, { nav: e, renderLink: t })
361
+ children: [
362
+ u && i === void 0 ? (
363
+ // No justify override: SidebarHeader centres its child in the
364
+ // icon rail (`justify-center`) and left-aligns it when expanded,
365
+ // matching the nav icons below. `justify-end` here would win over
366
+ // the icon-mode centring and offset the toggle in the rail.
367
+ /* @__PURE__ */ a(_, { children: /* @__PURE__ */ a(aa, {}) })
368
+ ) : null,
369
+ /* @__PURE__ */ a(xa, { nav: e, renderLink: r })
370
+ ]
361
371
  }
362
372
  ),
363
- children: f
373
+ children: v
364
374
  }
365
- ) }), W = (
375
+ ) }), P = (
366
376
  // The shell owns the warm-grey canvas; TabBar's strip is transparent and
367
377
  // floats its pill on it, and `<main>` continues the same surface.
368
- /* @__PURE__ */ r("div", { className: "ds:flex ds:min-h-dvh ds:flex-col ds:bg-[color:var(--app-shell-background)]", children: [
369
- /* @__PURE__ */ a(A, { href: "#main-content" }),
378
+ /* @__PURE__ */ t("div", { className: "ds:flex ds:min-h-dvh ds:flex-col ds:bg-[color:var(--app-shell-background)]", children: [
379
+ /* @__PURE__ */ a(z, { href: "#main-content" }),
370
380
  /* @__PURE__ */ a(
371
- ga,
381
+ ba,
372
382
  {
373
383
  nav: e,
374
384
  ariaLabel: x("navigation.sidebar.label"),
375
- renderLink: t
385
+ renderLink: r
376
386
  }
377
387
  ),
378
388
  /* @__PURE__ */ a(
@@ -380,36 +390,36 @@ const va = b(
380
390
  {
381
391
  id: "main-content",
382
392
  tabIndex: -1,
383
- "aria-label": p ?? x("navigation.main.label", "Main content"),
384
- className: I({ variant: "embedded" }),
385
- children: f
393
+ "aria-label": f ?? x("navigation.main.label", "Main content"),
394
+ className: T({ variant: "embedded" }),
395
+ children: v
386
396
  }
387
397
  )
388
398
  ] })
389
- ), N = h === "embedded" ? W : R;
390
- return H ? /* @__PURE__ */ a(
391
- sa,
399
+ ), C = h === "embedded" ? P : W;
400
+ return $ ? /* @__PURE__ */ a(
401
+ na,
392
402
  {
393
- ref: v,
394
- theme: $,
395
- accessible: j,
403
+ ref: k,
404
+ theme: j,
405
+ accessible: O,
396
406
  className: "ds:contents",
397
407
  "data-component": "marketplace-app-shell",
398
- children: N
408
+ children: C
399
409
  }
400
410
  ) : /* @__PURE__ */ a(
401
411
  "div",
402
412
  {
403
- ref: v,
413
+ ref: k,
404
414
  className: "ds:contents",
405
415
  "data-component": "marketplace-app-shell",
406
- children: N
416
+ children: C
407
417
  }
408
418
  );
409
419
  }
410
420
  );
411
- va.displayName = "MarketplaceAppShell";
412
- const xa = u(
421
+ ka.displayName = "MarketplaceAppShell";
422
+ const ya = p(
413
423
  "ds:flex ds:min-h-dvh ds:bg-[color:var(--app-shell-background)]",
414
424
  {
415
425
  variants: {
@@ -420,7 +430,7 @@ const xa = u(
420
430
  },
421
431
  defaultVariants: { layout: "card" }
422
432
  }
423
- ), ba = u("ds:w-full", {
433
+ ), Na = p("ds:w-full", {
424
434
  variants: {
425
435
  layout: {
426
436
  card: "ds:max-w-[400px]",
@@ -428,37 +438,37 @@ const xa = u(
428
438
  }
429
439
  },
430
440
  defaultVariants: { layout: "card" }
431
- }), ka = u("", {
441
+ }), Ca = p("", {
432
442
  variants: {
433
443
  layout: { card: "", split: "ds:lg:hidden" }
434
444
  },
435
445
  defaultVariants: { layout: "card" }
436
- }), ya = b(
446
+ }), Sa = b(
437
447
  ({
438
448
  productName: s,
439
449
  title: n,
440
450
  description: e,
441
- connectLabel: t,
451
+ connectLabel: r,
442
452
  status: d = "idle",
443
453
  error: l,
444
454
  onConnect: c,
445
455
  footer: o,
446
456
  layout: i = "card",
447
- brandPanel: p,
448
- className: h
449
- }, f) => /* @__PURE__ */ r(
457
+ brandPanel: u,
458
+ className: f
459
+ }, h) => /* @__PURE__ */ t(
450
460
  "div",
451
461
  {
452
- ref: f,
462
+ ref: h,
453
463
  "data-component": "connect-with-alfadocs",
454
- className: `${xa({ layout: i })} ${h ?? ""}`,
464
+ className: `${ya({ layout: i })} ${f ?? ""}`,
455
465
  children: [
456
466
  i === "split" ? (
457
467
  // Desktop brand panel (lg+ only): a bold `--primary` surface with the
458
468
  // monochrome lockup riding the `--primary-foreground` ink, plus an
459
469
  // optional `brandPanel` slot. Decorative — the card carries the real
460
470
  // heading + CTA, and shows its own lockup below `lg:`.
461
- /* @__PURE__ */ r("div", { className: "ds:hidden ds:lg:flex ds:lg:w-[55%] ds:flex-col ds:items-center ds:justify-center ds:gap-[var(--spacing-lg)] ds:bg-[color:var(--primary)] ds:text-[color:var(--primary-foreground)] ds:ps-[var(--spacing-2xl)] ds:pe-[var(--spacing-2xl)] ds:pt-[var(--spacing-2xl)] ds:pb-[var(--spacing-2xl)] ds:text-start", children: [
471
+ /* @__PURE__ */ t("div", { className: "ds:hidden ds:lg:flex ds:lg:w-[55%] ds:flex-col ds:items-center ds:justify-center ds:gap-[var(--spacing-lg)] ds:bg-[color:var(--primary)] ds:text-[color:var(--primary-foreground)] ds:ps-[var(--spacing-2xl)] ds:pe-[var(--spacing-2xl)] ds:pt-[var(--spacing-2xl)] ds:pb-[var(--spacing-2xl)] ds:text-start", children: [
462
472
  /* @__PURE__ */ a(
463
473
  g,
464
474
  {
@@ -469,32 +479,32 @@ const xa = u(
469
479
  variant: "maker"
470
480
  }
471
481
  ),
472
- p ? /* @__PURE__ */ a("div", { className: "type-body ds:max-w-[28rem] ds:text-start", children: p }) : null
482
+ u ? /* @__PURE__ */ a("div", { className: "type-body ds:max-w-[28rem] ds:text-start", children: u }) : null
473
483
  ] })
474
484
  ) : null,
475
- /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-1 ds:items-center ds:justify-center ds:p-[var(--spacing-lg)]", children: /* @__PURE__ */ a(w, { className: ba({ layout: i }), children: /* @__PURE__ */ r(w.Body, { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-lg)] ds:text-center", children: [
485
+ /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-1 ds:items-center ds:justify-center ds:p-[var(--spacing-lg)]", children: /* @__PURE__ */ a(w, { className: Na({ layout: i }), children: /* @__PURE__ */ t(w.Body, { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-lg)] ds:text-center", children: [
476
486
  /* @__PURE__ */ a(
477
487
  g,
478
488
  {
479
489
  name: s,
480
490
  size: "lg",
481
491
  variant: "maker",
482
- className: ka({ layout: i })
492
+ className: Ca({ layout: i })
483
493
  }
484
494
  ),
485
- /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
495
+ /* @__PURE__ */ t("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
486
496
  /* @__PURE__ */ a("h1", { className: "type-title-card", children: n }),
487
497
  /* @__PURE__ */ a("p", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: e })
488
498
  ] }),
489
- d === "error" && l ? /* @__PURE__ */ a(D, { variant: "error", className: "ds:w-full ds:text-start", children: l }) : null,
499
+ d === "error" && l ? /* @__PURE__ */ a(F, { variant: "error", className: "ds:w-full ds:text-start", children: l }) : null,
490
500
  /* @__PURE__ */ a(
491
- X,
501
+ Y,
492
502
  {
493
503
  intent: "primary",
494
504
  className: "ds:w-full",
495
505
  loading: d === "connecting",
496
506
  onClick: c,
497
- label: t,
507
+ label: r,
498
508
  "data-testid": "connect-with-alfadocs-button"
499
509
  }
500
510
  ),
@@ -504,10 +514,10 @@ const xa = u(
504
514
  }
505
515
  )
506
516
  );
507
- ya.displayName = "ConnectWithAlfadocs";
517
+ Sa.displayName = "ConnectWithAlfadocs";
508
518
  export {
509
- ya as C,
510
- va as M,
519
+ Sa as C,
520
+ ka as M,
511
521
  g as P
512
522
  };
513
- //# sourceMappingURL=marketplace-app-shell-Chcj4q4z.js.map
523
+ //# sourceMappingURL=marketplace-app-shell-35eRpT3r.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "0.87.0",
3
+ "packageVersion": "0.88.1",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
package/dist/index.js CHANGED
@@ -216,7 +216,7 @@ import { T as Gu } from "./_chunks/transaction-chip-DJCstquX.js";
216
216
  import { W as Uu, a as Wu } from "./_chunks/whatsapp-button-BIy6NaJK.js";
217
217
  import { C as Ku, W as Yu, a as ju, b as Xu, c as qu, i as Qu, l as $u, m as Ju, r as Zu, w as ax, d as ex, e as sx, f as rx } from "./_chunks/workflow-map-SIfAhmWz.js";
218
218
  import { A as ox, a as ix, b as nx, c as lx } from "./_chunks/alia-sidebar-DzNz1gDf.js";
219
- import { C as mx, M as px, P as cx } from "./_chunks/marketplace-app-shell-Chcj4q4z.js";
219
+ import { C as mx, M as px, P as cx } from "./_chunks/marketplace-app-shell-35eRpT3r.js";
220
220
  import { S as gx } from "./_chunks/signature-request-D_6jgDZd.js";
221
221
  import { D as ux, d as xx } from "./_chunks/dependent-selector-DyFpdzZV.js";
222
222
  import { D as Sx, d as Tx } from "./_chunks/document-preview-DXl9migE.js";
@@ -1,4 +1,4 @@
1
- import { C as l, M as o } from "../../_chunks/marketplace-app-shell-Chcj4q4z.js";
1
+ import { C as l, M as o } from "../../_chunks/marketplace-app-shell-35eRpT3r.js";
2
2
  export {
3
3
  l as ConnectWithAlfadocs,
4
4
  o as MarketplaceAppShell
@@ -136,6 +136,14 @@ export interface MarketplaceAppShellProps {
136
136
  * `'expanded'`).
137
137
  */
138
138
  sidebarState?: SidebarMode;
139
+ /**
140
+ * Render a collapse/expand toggle in the sidebar header, letting the user
141
+ * shrink the standalone sidebar to an icon rail. The chosen mode persists
142
+ * per-user (the underlying `Sidebar` stores it) and survives reloads. Opt-in
143
+ * so existing consumers are unaffected; ignored when `sidebarState` forces a
144
+ * mode or in the `'embedded'` variant (no sidebar). @default false
145
+ */
146
+ collapsibleSidebar?: boolean;
139
147
  /** Override the accessible name of the `<main>` landmark. */
140
148
  mainAriaLabel?: string;
141
149
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "0.87.0",
3
+ "version": "0.88.1",
4
4
  "type": "module",
5
5
  "description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
6
6
  "license": "BUSL-1.1",
@@ -720,6 +720,10 @@
720
720
  "types": "./dist/components/tooltip/index.d.ts",
721
721
  "import": "./dist/components/tooltip/index.js"
722
722
  },
723
+ "./transaction-chip": {
724
+ "types": "./dist/components/transaction-chip/index.d.ts",
725
+ "import": "./dist/components/transaction-chip/index.js"
726
+ },
723
727
  "./face-scheme": {
724
728
  "types": "./dist/components/face-scheme/index.d.ts",
725
729
  "import": "./dist/components/face-scheme/index.js"