@alfadocs/ui-kit 1.57.0 → 1.58.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.
Files changed (166) hide show
  1. package/dist/_chunks/{address-fields-BfjxS05Z.js → address-fields-CJtu7LQU.js} +2 -2
  2. package/dist/_chunks/{alia-sidebar-BBKBJCv6.js → alia-sidebar-dybRpWml.js} +2 -2
  3. package/dist/_chunks/{anamnesis-summary-rows-CCQ62mMN.js → anamnesis-summary-rows-M-FUkw9p.js} +3 -3
  4. package/dist/_chunks/{app-frame-B-0O9CrU.js → app-frame-CqmDh2v5.js} +2 -2
  5. package/dist/_chunks/{balance-badge-cell-CII3SDmR.js → balance-badge-cell-CGoJZlKf.js} +3 -3
  6. package/dist/_chunks/{booking-81WnKDsH.js → booking-CiFSAMR-.js} +2 -2
  7. package/dist/_chunks/{calendar-workspace-D5-k_9zE.js → calendar-workspace-DNHzjG7O.js} +12 -12
  8. package/dist/_chunks/{chart-DQ5GxqgT.js → chart-ZMkX-Gqy.js} +28 -28
  9. package/dist/_chunks/{city-input-BC_nYINn.js → city-input-3J3bz9EO.js} +2 -2
  10. package/dist/_chunks/{control-room-rail-Tx2jW250.js → control-room-rail-CJ85HkS2.js} +2 -2
  11. package/dist/_chunks/dashboard-grid-Cs7cJAsA.js +933 -0
  12. package/dist/_chunks/{data-table-fAMTeAjM.js → data-table-Yn5xiGzs.js} +2 -2
  13. package/dist/_chunks/{face-scheme-BicuUA2K.js → face-scheme-DSKDdIsb.js} +2 -2
  14. package/dist/_chunks/{file-manager-CFsL1KVt.js → file-manager-DEtkQR1F.js} +3 -3
  15. package/dist/_chunks/{forgot-password-form-DEx-M_QR.js → forgot-password-form-CEqOmNuX.js} +2 -2
  16. package/dist/_chunks/{heatmap-BEeOThkW.js → heatmap-DiyOSQk9.js} +2 -2
  17. package/dist/_chunks/{help-me-write-templates-BUoYGo6f.js → help-me-write-templates-CM1p6qkm.js} +2 -2
  18. package/dist/_chunks/{icon-picker-C86lQTIA.js → icon-picker-rOFTawXk.js} +2 -2
  19. package/dist/_chunks/{link-cell-renderer-CxW_oLa5.js → link-cell-renderer-C1wOyxDF.js} +2 -2
  20. package/dist/_chunks/{list-RRN2TJ_7.js → list-CNnn7DOD.js} +75 -73
  21. package/dist/_chunks/{login-dev-card-DmZ1B0lB.js → login-dev-card-CIim81VB.js} +2 -2
  22. package/dist/_chunks/marketplace-app-shell-CSDmGLPW.js +613 -0
  23. package/dist/_chunks/{message-tray-QKQutwxj.js → message-tray-DmU0poD7.js} +2 -2
  24. package/dist/_chunks/navigation-dismiss-B1mcW1CT.js +9 -0
  25. package/dist/_chunks/{notes-panel-Cm4pttpl.js → notes-panel-DHLHsxpW.js} +2 -2
  26. package/dist/_chunks/{notification-tray-C5VtbGjd.js → notification-tray-DPU-Xg0i.js} +2 -2
  27. package/dist/_chunks/{panel-subview-BT-Apwgb.js → panel-subview-D4o6ar6_.js} +61 -47
  28. package/dist/_chunks/{patient-details-99kEdtc5.js → patient-details-BCaVuaXz.js} +2 -2
  29. package/dist/_chunks/{patient-field-row-DkxY13T6.js → patient-field-row-jcRSTrp4.js} +3 -3
  30. package/dist/_chunks/{patient-summary-card-opdyfeW2.js → patient-summary-card-kQIfPQOE.js} +2 -2
  31. package/dist/_chunks/{payment-automation-upsell-DiHovmUL.js → payment-automation-upsell-C4wHOxsp.js} +2 -2
  32. package/dist/_chunks/{practice-results-CfRkjzsI.js → practice-results-D07wgCqV.js} +2 -2
  33. package/dist/_chunks/{product-hub-panel-DlVRK7Ue.js → product-hub-panel-DCYX0rPG.js} +2 -2
  34. package/dist/_chunks/{public-header.agent-BctevbuY.js → public-header.agent-C1SlVSYt.js} +2 -2
  35. package/dist/_chunks/{registration-form-BlTzYywa.js → registration-form-DrSR9Sjk.js} +3 -3
  36. package/dist/_chunks/{rich-text-editor-DTnNZ4Ff.js → rich-text-editor-UgXri8h6.js} +2 -2
  37. package/dist/_chunks/{scroll-area-ZtFCv9K7.js → scroll-area-CY5SLYNw.js} +104 -74
  38. package/dist/_chunks/{search-bar-DQJS0wJN.js → search-bar-mA4bPe3t.js} +294 -255
  39. package/dist/_chunks/{sheet-8qsiMoUI.js → sheet-Dtjk0CVv.js} +2 -2
  40. package/dist/_chunks/sidebar-D4Wllqfz.js +2029 -0
  41. package/dist/_chunks/{signature-request-DRuYAG5I.js → signature-request-dAVgE0_5.js} +2 -2
  42. package/dist/_chunks/{signed-out-frame-AhMsNW1r.js → signed-out-frame-DOJpobp8.js} +2 -2
  43. package/dist/_chunks/{state-backed-text-input-DECQy5aA.js → state-backed-text-input-Cgh4ms3p.js} +2 -2
  44. package/dist/_chunks/{task-editor-NkcopDna.js → task-editor-BflEZmcF.js} +5 -4
  45. package/dist/_chunks/{tool-rail-Bwyuw_Ot.js → tool-rail-CTq1KwxW.js} +115 -114
  46. package/dist/_chunks/{use-appointment-details-read-CfFQNOF_.js → use-appointment-details-read-izwoXh-G.js} +6 -6
  47. package/dist/_chunks/use-state-backed-input-DhRQo6gM.js +57 -0
  48. package/dist/_chunks/{voice-control-panel-BKbgb7FM.js → voice-control-panel-an-bpQfF.js} +2 -2
  49. package/dist/_chunks/{widget-picker-rBA7MR5P.js → widget-picker-DlJOgYrZ.js} +80 -57
  50. package/dist/agent-catalog.json +2 -2
  51. package/dist/agent-i18n/en.json +1 -1
  52. package/dist/components/_shared/navigation-dismiss.d.ts +8 -0
  53. package/dist/components/_shared/use-state-backed-input.d.ts +3 -2
  54. package/dist/components/address-fields/index.js +1 -1
  55. package/dist/components/app-frame/index.js +1 -1
  56. package/dist/components/appointment-details-panel/index.js +1 -1
  57. package/dist/components/booking/index.js +1 -1
  58. package/dist/components/chart/index.js +1 -1
  59. package/dist/components/city-input/index.js +1 -1
  60. package/dist/components/control-room-rail/index.js +1 -1
  61. package/dist/components/dashboard-grid/dashboard-grid.d.ts +33 -8
  62. package/dist/components/dashboard-grid/index.js +1 -1
  63. package/dist/components/data-table/index.js +2 -2
  64. package/dist/components/face-scheme/index.js +1 -1
  65. package/dist/components/file-manager/index.js +1 -1
  66. package/dist/components/heatmap/index.js +1 -1
  67. package/dist/components/icon-picker/index.js +1 -1
  68. package/dist/components/list/index.js +1 -1
  69. package/dist/components/message-tray/index.js +1 -1
  70. package/dist/components/notes-panel/index.js +1 -1
  71. package/dist/components/notification-tray/index.js +1 -1
  72. package/dist/components/panel-subview/index.js +1 -1
  73. package/dist/components/patient-details/index.js +1 -1
  74. package/dist/components/patient-summary-card/index.js +1 -1
  75. package/dist/components/patient-table/index.js +1 -1
  76. package/dist/components/practice-results/index.js +1 -1
  77. package/dist/components/product-hub-tray/index.js +1 -1
  78. package/dist/components/public-header/index.js +1 -1
  79. package/dist/components/rich-text-editor/index.js +1 -1
  80. package/dist/components/scroll-area/index.js +1 -1
  81. package/dist/components/scroll-area/scroll-area.d.ts +6 -5
  82. package/dist/components/search-bar/index.js +1 -1
  83. package/dist/components/search-bar/search-bar.d.ts +1 -1
  84. package/dist/components/sheet/index.js +1 -1
  85. package/dist/components/sidebar/index.d.ts +1 -1
  86. package/dist/components/sidebar/index.js +1 -1
  87. package/dist/components/sidebar/sidebar-move.d.ts +88 -0
  88. package/dist/components/sidebar/sidebar.d.ts +26 -1
  89. package/dist/components/task-editor/index.js +1 -1
  90. package/dist/components/tool-rail/index.js +1 -1
  91. package/dist/components/voice-control-panel/index.js +1 -1
  92. package/dist/components/widget-picker/index.js +1 -1
  93. package/dist/host-compat.css +2 -1
  94. package/dist/i18n/locales/ar.d.ts +10 -0
  95. package/dist/i18n/locales/ar.js +11 -1
  96. package/dist/i18n/locales/de.d.ts +10 -0
  97. package/dist/i18n/locales/de.js +11 -1
  98. package/dist/i18n/locales/el.d.ts +10 -0
  99. package/dist/i18n/locales/el.js +11 -1
  100. package/dist/i18n/locales/en.d.ts +10 -0
  101. package/dist/i18n/locales/en.js +11 -1
  102. package/dist/i18n/locales/es.d.ts +10 -0
  103. package/dist/i18n/locales/es.js +11 -1
  104. package/dist/i18n/locales/fr.d.ts +10 -0
  105. package/dist/i18n/locales/fr.js +11 -1
  106. package/dist/i18n/locales/hi.d.ts +10 -0
  107. package/dist/i18n/locales/hi.js +11 -1
  108. package/dist/i18n/locales/it.d.ts +10 -0
  109. package/dist/i18n/locales/it.js +11 -1
  110. package/dist/i18n/locales/ja.d.ts +10 -0
  111. package/dist/i18n/locales/ja.js +11 -1
  112. package/dist/i18n/locales/nl.d.ts +10 -0
  113. package/dist/i18n/locales/nl.js +11 -1
  114. package/dist/i18n/locales/pl.d.ts +10 -0
  115. package/dist/i18n/locales/pl.js +11 -1
  116. package/dist/i18n/locales/pt.d.ts +10 -0
  117. package/dist/i18n/locales/pt.js +11 -1
  118. package/dist/i18n/locales/ro.d.ts +10 -0
  119. package/dist/i18n/locales/ro.js +11 -1
  120. package/dist/i18n/locales/ru.d.ts +10 -0
  121. package/dist/i18n/locales/ru.js +11 -1
  122. package/dist/i18n/locales/sq.d.ts +10 -0
  123. package/dist/i18n/locales/sq.js +11 -1
  124. package/dist/i18n/locales/sv.d.ts +10 -0
  125. package/dist/i18n/locales/sv.js +11 -1
  126. package/dist/i18n/locales/tr.d.ts +10 -0
  127. package/dist/i18n/locales/tr.js +11 -1
  128. package/dist/i18n/locales/zh.d.ts +10 -0
  129. package/dist/i18n/locales/zh.js +11 -1
  130. package/dist/index.js +44 -44
  131. package/dist/locales/ar.json +11 -1
  132. package/dist/locales/de.json +11 -1
  133. package/dist/locales/el.json +11 -1
  134. package/dist/locales/en.json +11 -1
  135. package/dist/locales/es.json +11 -1
  136. package/dist/locales/fr.json +11 -1
  137. package/dist/locales/hi.json +11 -1
  138. package/dist/locales/it.json +11 -1
  139. package/dist/locales/ja.json +11 -1
  140. package/dist/locales/nl.json +11 -1
  141. package/dist/locales/pl.json +11 -1
  142. package/dist/locales/pt.json +11 -1
  143. package/dist/locales/ro.json +11 -1
  144. package/dist/locales/ru.json +11 -1
  145. package/dist/locales/sq.json +11 -1
  146. package/dist/locales/sv.json +11 -1
  147. package/dist/locales/tr.json +11 -1
  148. package/dist/locales/zh.json +11 -1
  149. package/dist/patterns/alia-assistant/index.js +1 -1
  150. package/dist/patterns/anamnesis/index.js +1 -1
  151. package/dist/patterns/calendar/index.js +1 -1
  152. package/dist/patterns/forgot-password-form/index.js +1 -1
  153. package/dist/patterns/help-me-write-templates/index.js +1 -1
  154. package/dist/patterns/login-form/index.js +1 -1
  155. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  156. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +34 -9
  157. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  158. package/dist/patterns/registration-form/index.js +1 -1
  159. package/dist/patterns/signature-request/index.js +1 -1
  160. package/dist/patterns/signed-out-frame/index.js +1 -1
  161. package/dist/tokens.css +1 -1
  162. package/package.json +1 -1
  163. package/dist/_chunks/dashboard-grid-DfEY2qci.js +0 -844
  164. package/dist/_chunks/marketplace-app-shell-BZcA9Z06.js +0 -555
  165. package/dist/_chunks/sidebar-DLsG2AIk.js +0 -1349
  166. package/dist/_chunks/use-state-backed-input-C7ESmxKB.js +0 -59
@@ -1,555 +0,0 @@
1
- import { jsxs as r, jsx as a, Fragment as N } from "react/jsx-runtime";
2
- import { forwardRef as y, useState as G } from "react";
3
- import { useTranslation as C, Trans as J } from "react-i18next";
4
- import { c as h } from "./index-D2ZczOXr.js";
5
- import { A as M } from "./app-frame-B-0O9CrU.js";
6
- import { A as I } from "./avatar-WZY3eGE7.js";
7
- import { A as Q } from "./alert-BhCstf2h.js";
8
- import { C as B } from "./card-DMO2nkt4.js";
9
- import { D as p } from "./dropdown-menu-BQSNVp4x.js";
10
- import { T as U } from "./tab-bar-Bm-rJB7Y.js";
11
- import { a as E, H as X, g as Y, f as L, e as Z, c as aa, d as ea } from "./header-B9552pLh.js";
12
- import { H as sa } from "./header-settings-BMcCx2LC.js";
13
- import { S as ta } from "./sign-in-with-alfadocs-button-D91_x8DX.js";
14
- import { S as ra, g as na, b as da, a as ia, j as la, k as oa, i as ca, h as D } from "./sidebar-DLsG2AIk.js";
15
- import { T as ma } from "./theme-root-BOO73p5t.js";
16
- import { a as H } from "./tooltip-Cp-PLePW.js";
17
- import { u as pa } from "./use-theme-CAuo6EYT.js";
18
- import { A as ua, L as ha } from "./logo-hIsyVE96.js";
19
- import { A as fa } from "./Alfadocs_Logo_Mark-Z_b6ZI1g.js";
20
- import { M as ga } from "./maximize-2-BYd2Kti7.js";
21
- import { L as va } from "./log-out-oDS6zO5d.js";
22
- const xa = h("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), ba = h(
23
- [
24
- "ds:[font-family:var(--font-serif)]",
25
- "ds:font-semibold",
26
- "ds:leading-none",
27
- "ds:tracking-[0.01em]",
28
- "ds:whitespace-nowrap",
29
- // Forced-colors: drop the transparent text-fill and paint the label
30
- // as solid CanvasText so it never disappears under Windows HCM —
31
- // a gradient/transparent fill has no meaning there.
32
- "ds:forced-colors:text-[CanvasText]",
33
- "ds:forced-colors:[-webkit-text-fill-color:CanvasText]"
34
- ],
35
- {
36
- variants: {
37
- size: {
38
- sm: "ds:text-[calc(var(--logo-size-sm)*0.95)]",
39
- md: "ds:text-[calc(var(--logo-size-md)*0.95)]",
40
- lg: "ds:text-[calc(var(--logo-size-lg)*0.95)]",
41
- xl: "ds:text-[calc(var(--logo-size-xl)*0.95)]"
42
- },
43
- tone: {
44
- // Brand gradient filled into the glyphs via background-clip:text.
45
- // `--gradient-wordmark` rides the theme aliases, so it stays
46
- // AA-safe and adapts per theme on its own (and flattens to a solid
47
- // ink in the accessible / forced-colors blocks — see tokens).
48
- gradient: [
49
- "ds:italic",
50
- "ds:bg-[image:var(--gradient-wordmark)]",
51
- "ds:bg-clip-text",
52
- "ds:text-transparent",
53
- "ds:[-webkit-text-fill-color:transparent]"
54
- ],
55
- // Monochrome: solid currentColor ink, upright, no gradient — for
56
- // print, single-colour work, and coloured chrome (e.g. app-shell
57
- // headers) where the lockup must ride the surrounding ink.
58
- solid: "ds:text-current"
59
- }
60
- },
61
- defaultVariants: { size: "md", tone: "gradient" }
62
- }
63
- ), ka = h("ds:whitespace-nowrap", {
64
- variants: {
65
- size: {
66
- sm: "ds:[--lockup-unit:var(--logo-size-sm)]",
67
- md: "ds:[--lockup-unit:var(--logo-size-md)]",
68
- lg: "ds:[--lockup-unit:var(--logo-size-lg)]",
69
- xl: "ds:[--lockup-unit:var(--logo-size-xl)]"
70
- }
71
- },
72
- defaultVariants: { size: "md" }
73
- }), x = y(
74
- ({
75
- name: s,
76
- variant: n = "standard",
77
- monochrome: e = !1,
78
- tone: t = "auto",
79
- size: d = "md",
80
- className: l,
81
- ...m
82
- }, o) => {
83
- const { t: i } = C("ui");
84
- if (n === "maker") {
85
- const c = t === "inherit", u = c ? "" : e ? "ds:text-[color:var(--foreground)]" : "ds:text-[color:var(--primary)]", f = c ? "" : e ? "ds:text-[color:var(--foreground)]" : "ds:text-[color:var(--primary)]", g = c ? "" : "ds:text-[color:var(--muted-foreground)]", v = c ? "" : "ds:text-[color:var(--foreground)]";
86
- return /* @__PURE__ */ r(
87
- "span",
88
- {
89
- ref: o,
90
- role: "img",
91
- "aria-label": i("productLockup.makerLabel", { name: s.trim() }),
92
- className: ka({ size: d, className: l }),
93
- "data-component": "product-lockup",
94
- ...m,
95
- children: [
96
- /* @__PURE__ */ a(
97
- fa,
98
- {
99
- "aria-hidden": !0,
100
- 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}`
101
- }
102
- ),
103
- /* @__PURE__ */ a(
104
- "span",
105
- {
106
- "aria-hidden": !0,
107
- 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)]`,
108
- children: s
109
- }
110
- ),
111
- /* @__PURE__ */ a(
112
- "span",
113
- {
114
- "aria-hidden": !0,
115
- className: `ds:align-text-top ds:ms-[var(--spacing-sm)] ds:inline-flex ds:items-baseline ds:gap-[var(--spacing-2xs)] ${g}`,
116
- children: /* @__PURE__ */ a(
117
- J,
118
- {
119
- ns: "ui",
120
- t: i,
121
- i18nKey: "productLockup.attribution",
122
- components: {
123
- text: /* @__PURE__ */ a("span", { className: "ds:text-[calc(var(--lockup-unit)*0.4)] ds:leading-none" }),
124
- brand: /* @__PURE__ */ a(
125
- ua,
126
- {
127
- "aria-hidden": !0,
128
- viewBox: "168 0 637 125",
129
- className: `ds:h-[calc(var(--lockup-unit)*0.45)] ds:w-auto ds:forced-colors:text-[CanvasText] ${v}`
130
- }
131
- )
132
- }
133
- }
134
- )
135
- }
136
- )
137
- ]
138
- }
139
- );
140
- }
141
- return /* @__PURE__ */ r(
142
- "span",
143
- {
144
- ref: o,
145
- role: "img",
146
- "aria-label": `Alfadocs ${s}`.trim(),
147
- className: xa({ className: l }),
148
- "data-component": "product-lockup",
149
- ...m,
150
- children: [
151
- /* @__PURE__ */ a(
152
- ha,
153
- {
154
- variant: e ? "monochrome" : "wordmark",
155
- tone: t,
156
- size: d,
157
- decorative: !0
158
- }
159
- ),
160
- /* @__PURE__ */ a(
161
- "span",
162
- {
163
- "aria-hidden": !0,
164
- className: ba({
165
- size: d,
166
- tone: e ? "solid" : "gradient"
167
- }),
168
- children: s
169
- }
170
- )
171
- ]
172
- }
173
- );
174
- }
175
- );
176
- x.displayName = "ProductLockup";
177
- function Na(s) {
178
- return s > 99 ? "99+" : String(s);
179
- }
180
- function ya({
181
- user: s,
182
- labels: n,
183
- onSignOut: e,
184
- onToggleFullscreen: t
185
- }) {
186
- const { t: d } = C("ui"), l = n.fullscreen ?? d("marketplaceAppShell.settings.fullscreen");
187
- return (
188
- // Non-modal: an account menu shouldn't inert/aria-hide the whole shell
189
- // behind it (which leaves the still-focusable chrome inside an
190
- // aria-hidden region — an `aria-hidden-focus` violation).
191
- /* @__PURE__ */ r(p.Root, { modal: !1, children: [
192
- /* @__PURE__ */ a(p.Trigger, { asChild: !0, children: /* @__PURE__ */ a(
193
- "button",
194
- {
195
- type: "button",
196
- "aria-label": n.accountMenu,
197
- "data-testid": "marketplace-account-trigger",
198
- 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]",
199
- children: /* @__PURE__ */ a("span", { "aria-hidden": "true", children: /* @__PURE__ */ a(I, { name: s.name, src: s.avatarSrc, size: "md" }) })
200
- }
201
- ) }),
202
- /* @__PURE__ */ r(p.Content, { align: "end", collisionPadding: 16, children: [
203
- /* @__PURE__ */ a(p.Label, { children: /* @__PURE__ */ r("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
204
- /* @__PURE__ */ a("span", { "aria-hidden": "true", children: /* @__PURE__ */ a(I, { name: s.name, src: s.avatarSrc, size: "sm" }) }),
205
- /* @__PURE__ */ r("span", { className: "ds:flex ds:flex-col ds:min-w-0", children: [
206
- /* @__PURE__ */ a("span", { className: "type-label ds:text-[color:var(--foreground)] ds:truncate", children: s.name }),
207
- s.email ? /* @__PURE__ */ a("span", { className: "type-meta ds:truncate", children: s.email }) : null
208
- ] })
209
- ] }) }),
210
- t ? /* @__PURE__ */ r(N, { children: [
211
- /* @__PURE__ */ a(p.Separator, {}),
212
- /* @__PURE__ */ a(
213
- p.Item,
214
- {
215
- startIcon: /* @__PURE__ */ a(ga, { "aria-hidden": !0 }),
216
- onSelect: t,
217
- "data-testid": "marketplace-fullscreen",
218
- children: l
219
- }
220
- )
221
- ] }) : null,
222
- /* @__PURE__ */ a(p.Separator, {}),
223
- /* @__PURE__ */ a(
224
- p.Item,
225
- {
226
- startIcon: /* @__PURE__ */ a(va, { "aria-hidden": !0 }),
227
- onSelect: e,
228
- "data-testid": "marketplace-sign-out",
229
- children: n.signOut
230
- }
231
- )
232
- ] })
233
- ] })
234
- );
235
- }
236
- function Ca({
237
- nav: s,
238
- renderLink: n
239
- }) {
240
- return /* @__PURE__ */ a(ia, { children: s.map((e) => {
241
- const t = typeof e.badgeCount == "number" && e.badgeCount > 0 ? e.badgeCount : void 0, d = /* @__PURE__ */ r(N, { children: [
242
- e.icon ? /* @__PURE__ */ a(la, { children: e.icon }) : null,
243
- /* @__PURE__ */ a(oa, { children: e.label }),
244
- t !== void 0 ? /* @__PURE__ */ a(ca, { children: Na(t) }) : null
245
- ] });
246
- return n ? /* @__PURE__ */ a(D, { asChild: !0, isActive: e.isActive, children: n({
247
- href: e.href,
248
- children: d,
249
- "aria-current": e.isActive ? "page" : void 0
250
- }) }, e.id) : /* @__PURE__ */ a(
251
- D,
252
- {
253
- href: e.href,
254
- "aria-label": e.label,
255
- isActive: e.isActive,
256
- ...e.onClick ? { onClick: e.onClick } : {},
257
- children: d
258
- },
259
- e.id
260
- );
261
- }) });
262
- }
263
- const O = [
264
- "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
265
- "ds:pt-[var(--spacing-lg)] ds:pb-[var(--spacing-md)]"
266
- ].join(" "), k = h("ds:bg-[color:var(--app-shell-background)]", {
267
- variants: {
268
- variant: {
269
- standalone: "",
270
- embedded: `ds:flex-1 ${O}`
271
- }
272
- },
273
- defaultVariants: { variant: "standalone" }
274
- }), wa = "ds:shrink-0 ds:bg-[color:var(--app-shell-background)]";
275
- function Sa({
276
- nav: s,
277
- ariaLabel: n,
278
- renderLink: e
279
- }) {
280
- const t = e ? ({
281
- href: d,
282
- className: l,
283
- children: m,
284
- "aria-current": o,
285
- "data-tab-id": i
286
- }) => e({
287
- href: d,
288
- className: l,
289
- children: m,
290
- "aria-current": o,
291
- // Forward the agent DOM hook — without it a consumer-router tab is
292
- // invisible to `[data-tab-id]` lookups (PRS §26 §6).
293
- "data-tab-id": i
294
- }) : void 0;
295
- return /* @__PURE__ */ a(
296
- U,
297
- {
298
- items: s,
299
- ariaLabel: n,
300
- ...t ? { renderLink: t } : {}
301
- }
302
- );
303
- }
304
- const Aa = y(
305
- ({
306
- productName: s,
307
- productHref: n = "/",
308
- nav: e,
309
- renderLink: t,
310
- user: d,
311
- labels: l,
312
- onSignOut: m,
313
- onToggleFullscreen: o,
314
- sidebarState: i,
315
- collapsibleSidebar: c = !1,
316
- mainAriaLabel: u,
317
- variant: f = "standalone",
318
- endSidebar: g,
319
- children: v
320
- }, w) => {
321
- const { t: b } = C("ui"), V = t ? /* @__PURE__ */ a(E, { asChild: !0, children: t({
322
- href: n,
323
- children: /* @__PURE__ */ a(
324
- x,
325
- {
326
- name: s,
327
- size: "md",
328
- monochrome: !0,
329
- variant: "maker"
330
- }
331
- )
332
- }) }) : /* @__PURE__ */ a(
333
- E,
334
- {
335
- href: n,
336
- logo: /* @__PURE__ */ a(
337
- x,
338
- {
339
- name: s,
340
- size: "md",
341
- monochrome: !0,
342
- variant: "maker"
343
- }
344
- )
345
- }
346
- ), { theme: $, accessibility: j, resolvedTheme: S } = pa(), R = $ !== "system" || j !== "system", W = S.startsWith("dark") ? "dark" : "light", P = S.endsWith("-accessible"), [_, A] = G(!1), K = /* @__PURE__ */ a(H, { children: /* @__PURE__ */ a(
347
- M,
348
- {
349
- mainAriaLabel: u,
350
- mainClassName: k({ variant: "standalone" }),
351
- header: /* @__PURE__ */ r(X, { children: [
352
- /* @__PURE__ */ r(Y, { children: [
353
- /* @__PURE__ */ a(L, { href: "#main-content" }),
354
- /* @__PURE__ */ a(Z, { onMenuOpen: () => A(!0) }),
355
- V
356
- ] }),
357
- /* @__PURE__ */ a(aa, {}),
358
- /* @__PURE__ */ r(ea, { children: [
359
- /* @__PURE__ */ a(sa, { size: "sm" }),
360
- /* @__PURE__ */ a(
361
- ya,
362
- {
363
- user: d,
364
- labels: l,
365
- onSignOut: m,
366
- onToggleFullscreen: o
367
- }
368
- )
369
- ] })
370
- ] }),
371
- sidebar: /* @__PURE__ */ r(
372
- ra,
373
- {
374
- ...i !== void 0 ? { state: i } : { defaultState: "expanded" },
375
- open: _,
376
- onOpenChange: A,
377
- "aria-label": b("navigation.sidebar.label"),
378
- "data-testid": "marketplace-app-shell-sidebar",
379
- children: [
380
- c && i === void 0 ? (
381
- // No justify override: SidebarHeader centres its child in the
382
- // icon rail (`justify-center`) and left-aligns it when expanded,
383
- // matching the nav icons below. `justify-end` here would win over
384
- // the icon-mode centring and offset the toggle in the rail.
385
- /* @__PURE__ */ a(na, { children: /* @__PURE__ */ a(da, {}) })
386
- ) : null,
387
- /* @__PURE__ */ a(Ca, { nav: e, renderLink: t })
388
- ]
389
- }
390
- ),
391
- endSidebar: g,
392
- children: v
393
- }
394
- ) }), z = /* @__PURE__ */ r(N, { children: [
395
- /* @__PURE__ */ a(L, { href: "#main-content" }),
396
- /* @__PURE__ */ a(
397
- Sa,
398
- {
399
- nav: e,
400
- ariaLabel: b("navigation.sidebar.label"),
401
- renderLink: t
402
- }
403
- )
404
- ] }), F = /* @__PURE__ */ a(H, { children: /* @__PURE__ */ a(
405
- M,
406
- {
407
- mainAriaLabel: u,
408
- mainClassName: k({ variant: "standalone" }),
409
- padded: !1,
410
- header: /* @__PURE__ */ a("div", { className: wa, children: z }),
411
- sidebar: null,
412
- endSidebar: g,
413
- children: /* @__PURE__ */ a("div", { className: O, children: v })
414
- }
415
- ) }), q = (
416
- // The shell owns the warm-grey canvas; TabBar's strip is transparent and
417
- // floats its pill on it, and `<main>` continues the same surface.
418
- /* @__PURE__ */ r("div", { className: "ds:flex ds:min-h-dvh ds:flex-col ds:bg-[color:var(--app-shell-background)]", children: [
419
- z,
420
- /* @__PURE__ */ a(
421
- "main",
422
- {
423
- id: "main-content",
424
- tabIndex: -1,
425
- "aria-label": u ?? b("navigation.main.label", "Main content"),
426
- className: k({ variant: "embedded" }),
427
- children: v
428
- }
429
- )
430
- ] })
431
- ), T = f === "embedded" ? g ? F : q : K;
432
- return R ? /* @__PURE__ */ a(
433
- ma,
434
- {
435
- ref: w,
436
- theme: W,
437
- accessible: P,
438
- className: "ds:contents",
439
- "data-component": "marketplace-app-shell",
440
- children: T
441
- }
442
- ) : /* @__PURE__ */ a(
443
- "div",
444
- {
445
- ref: w,
446
- className: "ds:contents",
447
- "data-component": "marketplace-app-shell",
448
- children: T
449
- }
450
- );
451
- }
452
- );
453
- Aa.displayName = "MarketplaceAppShell";
454
- const za = h(
455
- "ds:flex ds:min-h-dvh ds:bg-[color:var(--app-shell-background)]",
456
- {
457
- variants: {
458
- layout: {
459
- card: "",
460
- split: "ds:flex-col ds:lg:flex-row"
461
- }
462
- },
463
- defaultVariants: { layout: "card" }
464
- }
465
- ), Ta = h("ds:w-full", {
466
- variants: {
467
- layout: {
468
- card: "ds:max-w-[400px]",
469
- split: "ds:max-w-[400px] ds:lg:max-w-[480px]"
470
- }
471
- },
472
- defaultVariants: { layout: "card" }
473
- }), Ma = h("", {
474
- variants: {
475
- layout: { card: "", split: "ds:lg:hidden" }
476
- },
477
- defaultVariants: { layout: "card" }
478
- }), Ia = y(
479
- ({
480
- productName: s,
481
- title: n,
482
- description: e,
483
- connectLabel: t,
484
- status: d = "idle",
485
- error: l,
486
- onConnect: m,
487
- footer: o,
488
- layout: i = "card",
489
- brandPanel: c,
490
- className: u
491
- }, f) => /* @__PURE__ */ r(
492
- "div",
493
- {
494
- ref: f,
495
- "data-component": "connect-with-alfadocs",
496
- className: `${za({ layout: i })} ${u ?? ""}`,
497
- children: [
498
- i === "split" ? (
499
- // Desktop brand panel (lg+ only): a bold `--primary` surface with the
500
- // monochrome lockup riding the `--primary-foreground` ink, plus an
501
- // optional `brandPanel` slot. Decorative — the card carries the real
502
- // heading + CTA, and shows its own lockup below `lg:`.
503
- /* @__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: [
504
- /* @__PURE__ */ a(
505
- x,
506
- {
507
- name: s,
508
- size: "lg",
509
- monochrome: !0,
510
- tone: "inherit",
511
- variant: "maker"
512
- }
513
- ),
514
- c ? /* @__PURE__ */ a("div", { className: "type-body ds:max-w-[28rem] ds:text-start", children: c }) : null
515
- ] })
516
- ) : null,
517
- /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-1 ds:items-center ds:justify-center ds:p-[var(--spacing-lg)]", children: /* @__PURE__ */ a(B, { className: Ta({ layout: i }), children: /* @__PURE__ */ r(B.Body, { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-lg)] ds:text-center", children: [
518
- /* @__PURE__ */ a(
519
- x,
520
- {
521
- name: s,
522
- size: "lg",
523
- variant: "maker",
524
- className: Ma({ layout: i })
525
- }
526
- ),
527
- /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
528
- /* @__PURE__ */ a("h1", { className: "type-title-card", children: n }),
529
- /* @__PURE__ */ a("p", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: e })
530
- ] }),
531
- d === "error" && l ? /* @__PURE__ */ a(Q, { variant: "error", className: "ds:w-full ds:text-start", children: l }) : null,
532
- /* @__PURE__ */ a(
533
- ta,
534
- {
535
- intent: "primary",
536
- className: "ds:w-full",
537
- loading: d === "connecting",
538
- onClick: m,
539
- label: t,
540
- "data-testid": "connect-with-alfadocs-button"
541
- }
542
- ),
543
- o ? /* @__PURE__ */ a("div", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: o }) : null
544
- ] }) }) })
545
- ]
546
- }
547
- )
548
- );
549
- Ia.displayName = "ConnectWithAlfadocs";
550
- export {
551
- Ia as C,
552
- Aa as M,
553
- x as P
554
- };
555
- //# sourceMappingURL=marketplace-app-shell-BZcA9Z06.js.map