@alfadocs/ui-kit 0.38.0 → 0.40.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/{accordion-bSU21uTV.js → accordion-9lJSMMsZ.js} +6 -6
- package/dist/_chunks/{agenda-tray-By_asPN9.js → agenda-tray-Dyj9ChHC.js} +22 -21
- package/dist/_chunks/{bmi-calculator-BRUru9QX.js → bmi-calculator-DnEr513I.js} +2 -2
- package/dist/_chunks/{booking-DK_BPHnQ.js → booking-4mCw3Mpl.js} +2 -2
- package/dist/_chunks/{chart-DnHvmiDX.js → chart-Cbt0_sKv.js} +46 -37
- package/dist/_chunks/{collapsible-CERONory.js → collapsible-X3oaLPU3.js} +5 -5
- package/dist/_chunks/{document-scanner-CdHQ6lTN.js → document-scanner-CqS_klIr.js} +56 -55
- package/dist/_chunks/{editable-currency-cell-renderer-DGKuRNVG.js → editable-currency-cell-renderer-DgkCIIcO.js} +2 -2
- package/dist/_chunks/{file-upload-CnzRcErt.js → file-upload-BosbPDb1.js} +2 -2
- package/dist/_chunks/{freemium-paywall-D1N02Oam.js → freemium-paywall-BAk3a6er.js} +7 -7
- package/dist/_chunks/header-settings-CBLwUK6t.js +244 -0
- package/dist/_chunks/{map-view-vD5pvWs9.js → map-view-qJLybrmN.js} +2 -2
- package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +296 -0
- package/dist/_chunks/{message-card-BbRhZkDI.js → message-card-DSPw5ghw.js} +20 -19
- package/dist/_chunks/{message-tray-B762TKuv.js → message-tray-hSQff9u4.js} +3 -3
- package/dist/_chunks/{notification-card-DMdO4g54.js → notification-card-CObnGdJu.js} +22 -21
- package/dist/_chunks/{notification-tray-Dl3FTleW.js → notification-tray-BWHDIjgd.js} +2 -2
- package/dist/_chunks/{otp-input-CDTWT5EK.js → otp-input-CMphfBxZ.js} +70 -71
- package/dist/_chunks/{patient-shell-Bz3CdO84.js → patient-shell-DF81lALv.js} +36 -35
- package/dist/_chunks/{payment-form-D5rgnZu7.js → payment-form-Dy3WIIsC.js} +18 -18
- package/dist/_chunks/{pdf-viewer-DvtEHcEP.js → pdf-viewer-Cy6Ul3hZ.js} +2 -2
- package/dist/_chunks/{practice-results-C8ciLQap.js → practice-results-C0d4IL5E.js} +2 -2
- package/dist/_chunks/{public-footer.agent-zw1vFin_.js → public-footer.agent-okt8ZRc5.js} +2 -2
- package/dist/_chunks/{reviews-panel-Dow8Dzoa.js → reviews-panel-CPrXu5TX.js} +2 -2
- package/dist/_chunks/{sidebar-BbR8f6oe.js → sidebar-_vJXI9rB.js} +2 -2
- package/dist/_chunks/sign-document-CpLDZ6Db.js +316 -0
- package/dist/_chunks/{signature-capture-C-fF71xI.js → signature-capture-DoiBd6i3.js} +138 -143
- package/dist/_chunks/{sparkline-DEROcSl0.js → sparkline-DGhCSw8M.js} +55 -46
- package/dist/_chunks/{stepper-accordion-BfS6lUB9.js → stepper-accordion-Dki6r9ZE.js} +2 -2
- package/dist/_chunks/{tag-CyoaEmf_.js → tag-CdA0s_VV.js} +16 -16
- package/dist/_chunks/{task-card-BUVMh6HN.js → task-card-CPyQ5AXC.js} +6 -5
- package/dist/_chunks/{task-tray-DRK0b0Qb.js → task-tray-B8jFv5FV.js} +36 -35
- package/dist/_chunks/{transcript-panel-DyhTpAP7.js → transcript-panel-CR7VY1uw.js} +8 -7
- package/dist/_chunks/{warning-stack-bDicCvxs.js → warning-stack-DNR3-IbP.js} +17 -16
- package/dist/_chunks/{workflow-map-uSiHbOWQ.js → workflow-map-C3gB0FvB.js} +3 -2
- package/dist/agent-catalog.json +39 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/chart/chart.d.ts +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header-settings/header-settings.agent.d.ts +4 -0
- package/dist/components/header-settings/header-settings.d.ts +36 -0
- package/dist/components/header-settings/index.d.ts +2 -0
- package/dist/components/header-settings/index.js +2 -241
- package/dist/components/index.d.ts +1 -0
- package/dist/components/locale-picker/locale-picker.agent.d.ts +4 -0
- package/dist/components/locale-picker/locale-picker.d.ts +80 -0
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/otp-input/index.d.ts +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.d.ts +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sign-document/index.d.ts +4 -0
- package/dist/components/sign-document/index.js +6 -0
- package/dist/components/sign-document/sign-document.agent.d.ts +4 -0
- package/dist/components/sign-document/sign-document.d.ts +47 -0
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/sparkline/sparkline.d.ts +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locale-meta.d.ts +56 -0
- package/dist/i18n/locales/ar.d.ts +22 -0
- package/dist/i18n/locales/ar.js +22 -0
- package/dist/i18n/locales/de.d.ts +22 -0
- package/dist/i18n/locales/de.js +22 -0
- package/dist/i18n/locales/el.d.ts +22 -0
- package/dist/i18n/locales/el.js +22 -0
- package/dist/i18n/locales/en.d.ts +22 -0
- package/dist/i18n/locales/en.js +22 -0
- package/dist/i18n/locales/es.d.ts +22 -0
- package/dist/i18n/locales/es.js +22 -0
- package/dist/i18n/locales/fr.d.ts +22 -0
- package/dist/i18n/locales/fr.js +22 -0
- package/dist/i18n/locales/hi.d.ts +22 -0
- package/dist/i18n/locales/hi.js +22 -0
- package/dist/i18n/locales/it.d.ts +22 -0
- package/dist/i18n/locales/it.js +22 -0
- package/dist/i18n/locales/ja.d.ts +22 -0
- package/dist/i18n/locales/ja.js +22 -0
- package/dist/i18n/locales/nl.d.ts +22 -0
- package/dist/i18n/locales/nl.js +22 -0
- package/dist/i18n/locales/pl.d.ts +22 -0
- package/dist/i18n/locales/pl.js +22 -0
- package/dist/i18n/locales/pt.d.ts +22 -0
- package/dist/i18n/locales/pt.js +22 -0
- package/dist/i18n/locales/ro.d.ts +22 -0
- package/dist/i18n/locales/ro.js +22 -0
- package/dist/i18n/locales/ru.d.ts +22 -0
- package/dist/i18n/locales/ru.js +22 -0
- package/dist/i18n/locales/sq.d.ts +22 -0
- package/dist/i18n/locales/sq.js +22 -0
- package/dist/i18n/locales/sv.d.ts +22 -0
- package/dist/i18n/locales/sv.js +22 -0
- package/dist/i18n/locales/tr.d.ts +22 -0
- package/dist/i18n/locales/tr.js +22 -0
- package/dist/i18n/locales/zh.d.ts +22 -0
- package/dist/i18n/locales/zh.js +22 -0
- package/dist/index.js +110 -107
- package/dist/locales/ar.json +22 -0
- package/dist/locales/de.json +22 -0
- package/dist/locales/el.json +22 -0
- package/dist/locales/en.json +22 -0
- package/dist/locales/es.json +22 -0
- package/dist/locales/fr.json +22 -0
- package/dist/locales/hi.json +22 -0
- package/dist/locales/it.json +22 -0
- package/dist/locales/ja.json +22 -0
- package/dist/locales/nl.json +22 -0
- package/dist/locales/pl.json +22 -0
- package/dist/locales/pt.json +22 -0
- package/dist/locales/ro.json +22 -0
- package/dist/locales/ru.json +22 -0
- package/dist/locales/sq.json +22 -0
- package/dist/locales/sv.json +22 -0
- package/dist/locales/tr.json +22 -0
- package/dist/locales/zh.json +22 -0
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +12 -8
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- package/dist/_chunks/marketplace-app-shell-BnClrL2B.js +0 -295
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfadocs/ui-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
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",
|
|
@@ -455,6 +455,10 @@
|
|
|
455
455
|
"types": "./dist/components/sidebar/index.d.ts",
|
|
456
456
|
"import": "./dist/components/sidebar/index.js"
|
|
457
457
|
},
|
|
458
|
+
"./sign-document": {
|
|
459
|
+
"types": "./dist/components/sign-document/index.d.ts",
|
|
460
|
+
"import": "./dist/components/sign-document/index.js"
|
|
461
|
+
},
|
|
458
462
|
"./sign-in-with-alfadocs-button": {
|
|
459
463
|
"types": "./dist/components/sign-in-with-alfadocs-button/index.d.ts",
|
|
460
464
|
"import": "./dist/components/sign-in-with-alfadocs-button/index.js"
|
|
@@ -1,295 +0,0 @@
|
|
|
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-yituK7sE.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-BnClrL2B.js.map
|