@alfadocs/ui-kit 0.41.2 → 0.42.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/address-autocomplete-CSjMrBvu.js +358 -0
- package/dist/_chunks/{alia-sidebar-DXsYPinm.js → alia-sidebar-BpX4z_af.js} +2 -2
- package/dist/_chunks/{bmi-calculator-DnEr513I.js → bmi-calculator-D4juUcyF.js} +57 -51
- package/dist/_chunks/{breadcrumb-CLlhx7qo.js → breadcrumb-OTbaY70e.js} +4 -4
- package/dist/_chunks/cycle-calculator-DsZbyzX6.js +191 -0
- package/dist/_chunks/{document-scanner-CqS_klIr.js → document-scanner-BqLsGs4Y.js} +7 -7
- package/dist/_chunks/{dropdown-menu-BC5ZdOMo.js → dropdown-menu-CUEXqKis.js} +2 -2
- package/dist/_chunks/{due-date-calculator-CUspKSTw.js → due-date-calculator-s_CBgaFs.js} +53 -40
- package/dist/_chunks/{editable-currency-cell-renderer-DgkCIIcO.js → editable-currency-cell-renderer-BhUkRiPZ.js} +2 -2
- package/dist/_chunks/{freemium-paywall-BAk3a6er.js → freemium-paywall-BLXESpH4.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-CsQ05qDy.js → gestational-age-calculator-CWOG3bkI.js} +56 -43
- package/dist/_chunks/{header-settings-CBLwUK6t.js → header-settings-Bx0Biimh.js} +2 -2
- package/dist/_chunks/index.modern-D2LGACWg.js +1529 -0
- package/dist/_chunks/insert-result-DtQQeSSf.js +227 -0
- package/dist/_chunks/{kbd-Cglkd7CY.js → kbd-D855ZXIW.js} +2 -2
- package/dist/_chunks/map-view-Tb5VfK9Y.js +333 -0
- package/dist/_chunks/marketplace-app-shell-kVAVycz_.js +391 -0
- package/dist/_chunks/{patient-search-CBq62kmL.js → patient-search-DPe2ZYEL.js} +2 -2
- package/dist/_chunks/{patient-shell-DF81lALv.js → patient-shell-lDX3wwu6.js} +2 -2
- package/dist/_chunks/{payment-form-Dy3WIIsC.js → payment-form-BzVsG6Ks.js} +5 -5
- package/dist/_chunks/{pdf-viewer-Cy6Ul3hZ.js → pdf-viewer-B6MC6VTx.js} +139 -126
- package/dist/_chunks/{practice-results-C0d4IL5E.js → practice-results-CrLpEiiW.js} +4 -4
- package/dist/_chunks/pregnancy-weight-gain-B7kBK-ZR.js +223 -0
- package/dist/_chunks/{public-header.agent-B2dDg2_d.js → public-header.agent-BY6FH71R.js} +2 -2
- package/dist/_chunks/radio-group-CLjK-SlK.js +167 -0
- package/dist/_chunks/{rich-text-editor-DLbg2852.js → rich-text-editor-DhGIBd4a.js} +10 -10
- package/dist/_chunks/{sheet-BV-yuLE2.js → sheet-xbzu4YiY.js} +7 -7
- package/dist/_chunks/{sign-document-CpLDZ6Db.js → sign-document-QHfcNKFj.js} +5 -5
- package/dist/_chunks/{signature-capture-DoiBd6i3.js → signature-capture-CpMBhqQ9.js} +6 -6
- package/dist/_chunks/tab-bar-C4II-7ej.js +86 -0
- package/dist/_chunks/{theme-toggle-DpC28kt5.js → theme-toggle-ClATnY4Q.js} +2 -2
- package/dist/_chunks/{toast.agent-WHHfw5VX.js → toast.agent-B0MCsvdZ.js} +2 -2
- package/dist/_chunks/{unit-converter-EUwO6QYq.js → unit-converter-D1UrEUxa.js} +46 -40
- package/dist/_chunks/{workflow-map-C3gB0FvB.js → workflow-map-BFNpzTiw.js} +2 -2
- package/dist/agent-catalog.json +1 -1
- package/dist/brand/product-lockup/product-lockup.d.ts +16 -0
- package/dist/components/_shared/insert-result.d.ts +21 -4
- package/dist/components/address-autocomplete/address-autocomplete.d.ts +77 -0
- package/dist/components/address-autocomplete/index.d.ts +4 -0
- package/dist/components/address-autocomplete/index.js +6 -0
- package/dist/components/address-autocomplete/parse-address.d.ts +52 -0
- package/dist/components/bmi-calculator/bmi-calculator.d.ts +11 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/cycle-calculator/cycle-calculator.d.ts +12 -2
- package/dist/components/cycle-calculator/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/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +11 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +12 -2
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/kbd/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/matrix-rain/matrix-rain.d.ts +1 -1
- package/dist/components/patient-search/index.js +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/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +12 -2
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/tab-bar/index.d.ts +3 -0
- package/dist/components/tab-bar/index.js +5 -0
- package/dist/components/tab-bar/tab-bar.d.ts +61 -0
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/unit-converter/unit-converter.d.ts +11 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +17 -0
- package/dist/i18n/locales/ar.js +18 -1
- package/dist/i18n/locales/de.d.ts +17 -0
- package/dist/i18n/locales/de.js +18 -1
- package/dist/i18n/locales/el.d.ts +17 -0
- package/dist/i18n/locales/el.js +18 -1
- package/dist/i18n/locales/en.d.ts +17 -0
- package/dist/i18n/locales/en.js +18 -1
- package/dist/i18n/locales/es.d.ts +17 -0
- package/dist/i18n/locales/es.js +18 -1
- package/dist/i18n/locales/fr.d.ts +17 -0
- package/dist/i18n/locales/fr.js +18 -1
- package/dist/i18n/locales/hi.d.ts +17 -0
- package/dist/i18n/locales/hi.js +18 -1
- package/dist/i18n/locales/it.d.ts +17 -0
- package/dist/i18n/locales/it.js +18 -1
- package/dist/i18n/locales/ja.d.ts +17 -0
- package/dist/i18n/locales/ja.js +18 -1
- package/dist/i18n/locales/nl.d.ts +17 -0
- package/dist/i18n/locales/nl.js +18 -1
- package/dist/i18n/locales/pl.d.ts +17 -0
- package/dist/i18n/locales/pl.js +18 -1
- package/dist/i18n/locales/pt.d.ts +17 -0
- package/dist/i18n/locales/pt.js +18 -1
- package/dist/i18n/locales/ro.d.ts +17 -0
- package/dist/i18n/locales/ro.js +18 -1
- package/dist/i18n/locales/ru.d.ts +17 -0
- package/dist/i18n/locales/ru.js +18 -1
- package/dist/i18n/locales/sq.d.ts +17 -0
- package/dist/i18n/locales/sq.js +18 -1
- package/dist/i18n/locales/sv.d.ts +17 -0
- package/dist/i18n/locales/sv.js +18 -1
- package/dist/i18n/locales/tr.d.ts +17 -0
- package/dist/i18n/locales/tr.js +18 -1
- package/dist/i18n/locales/zh.d.ts +17 -0
- package/dist/i18n/locales/zh.js +18 -1
- package/dist/index.js +604 -599
- package/dist/locales/ar.json +18 -1
- package/dist/locales/de.json +18 -1
- package/dist/locales/el.json +18 -1
- package/dist/locales/en.json +18 -1
- package/dist/locales/es.json +18 -1
- package/dist/locales/fr.json +18 -1
- package/dist/locales/hi.json +18 -1
- package/dist/locales/it.json +18 -1
- package/dist/locales/ja.json +18 -1
- package/dist/locales/nl.json +18 -1
- package/dist/locales/pl.json +18 -1
- package/dist/locales/pt.json +18 -1
- package/dist/locales/ro.json +18 -1
- package/dist/locales/ru.json +18 -1
- package/dist/locales/sq.json +18 -1
- package/dist/locales/sv.json +18 -1
- package/dist/locales/tr.json +18 -1
- package/dist/locales/zh.json +18 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +30 -3
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +16 -1
- package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +0 -185
- package/dist/_chunks/insert-result-yJ0QavoN.js +0 -133
- package/dist/_chunks/map-view-qJLybrmN.js +0 -1850
- package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +0 -296
- package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +0 -209
- package/dist/_chunks/radio-group-BcF92GEF.js +0 -152
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import { jsxs as t, jsx as e, Fragment as V } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as b, useState as j } from "react";
|
|
3
|
+
import { useTranslation as C } from "react-i18next";
|
|
4
|
+
import { c } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { A as O } from "./app-frame-BYx1gcV7.js";
|
|
6
|
+
import { A as W } from "./avatar-BNQNhoyL.js";
|
|
7
|
+
import { A as P } from "./alert-ywPR59NE.js";
|
|
8
|
+
import { C as y } from "./card-DPmk26CL.js";
|
|
9
|
+
import { D as i } from "./dropdown-menu-CUEXqKis.js";
|
|
10
|
+
import { T as R } from "./tab-bar-C4II-7ej.js";
|
|
11
|
+
import { H as E, g as $, f as S, e as D, a as F, c as q, d as G } from "./header-CTZWX-tm.js";
|
|
12
|
+
import { H as J } from "./header-settings-Bx0Biimh.js";
|
|
13
|
+
import { S as K } from "./sign-in-with-alfadocs-button-DeHBFRNS.js";
|
|
14
|
+
import { S as Q, a as U, h as X, j as Y, k as Z, i as _ } from "./sidebar-_vJXI9rB.js";
|
|
15
|
+
import { T as ee } from "./theme-root-BOO73p5t.js";
|
|
16
|
+
import { a as ae } from "./tooltip-DvmfrNvB.js";
|
|
17
|
+
import { u as se } from "./use-theme-C2dHKUAN.js";
|
|
18
|
+
import { L as te } from "./logo-yituK7sE.js";
|
|
19
|
+
const ne = c("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), re = c(
|
|
20
|
+
[
|
|
21
|
+
"ds:[font-family:var(--font-serif)]",
|
|
22
|
+
"ds:font-semibold",
|
|
23
|
+
"ds:leading-none",
|
|
24
|
+
"ds:tracking-[0.01em]",
|
|
25
|
+
"ds:whitespace-nowrap",
|
|
26
|
+
// Forced-colors: drop the transparent text-fill and paint the label
|
|
27
|
+
// as solid CanvasText so it never disappears under Windows HCM —
|
|
28
|
+
// a gradient/transparent fill has no meaning there.
|
|
29
|
+
"ds:forced-colors:text-[CanvasText]",
|
|
30
|
+
"ds:forced-colors:[-webkit-text-fill-color:CanvasText]"
|
|
31
|
+
],
|
|
32
|
+
{
|
|
33
|
+
variants: {
|
|
34
|
+
size: {
|
|
35
|
+
sm: "ds:text-[calc(var(--logo-size-sm)*0.95)]",
|
|
36
|
+
md: "ds:text-[calc(var(--logo-size-md)*0.95)]",
|
|
37
|
+
lg: "ds:text-[calc(var(--logo-size-lg)*0.95)]",
|
|
38
|
+
xl: "ds:text-[calc(var(--logo-size-xl)*0.95)]"
|
|
39
|
+
},
|
|
40
|
+
tone: {
|
|
41
|
+
// Brand gradient filled into the glyphs via background-clip:text.
|
|
42
|
+
// `--gradient-wordmark` rides the theme aliases, so it stays
|
|
43
|
+
// AA-safe and adapts per theme on its own (and flattens to a solid
|
|
44
|
+
// ink in the accessible / forced-colors blocks — see tokens).
|
|
45
|
+
gradient: [
|
|
46
|
+
"ds:italic",
|
|
47
|
+
"ds:bg-[image:var(--gradient-wordmark)]",
|
|
48
|
+
"ds:bg-clip-text",
|
|
49
|
+
"ds:text-transparent",
|
|
50
|
+
"ds:[-webkit-text-fill-color:transparent]"
|
|
51
|
+
],
|
|
52
|
+
// Monochrome: solid currentColor ink, upright, no gradient — for
|
|
53
|
+
// print, single-colour work, and coloured chrome (e.g. app-shell
|
|
54
|
+
// headers) where the lockup must ride the surrounding ink.
|
|
55
|
+
solid: "ds:text-current"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
defaultVariants: { size: "md", tone: "gradient" }
|
|
59
|
+
}
|
|
60
|
+
), g = b(
|
|
61
|
+
({
|
|
62
|
+
name: s,
|
|
63
|
+
monochrome: a = !1,
|
|
64
|
+
tone: n = "auto",
|
|
65
|
+
size: r = "md",
|
|
66
|
+
className: d,
|
|
67
|
+
...l
|
|
68
|
+
}, m) => /* @__PURE__ */ t(
|
|
69
|
+
"span",
|
|
70
|
+
{
|
|
71
|
+
ref: m,
|
|
72
|
+
role: "img",
|
|
73
|
+
"aria-label": `Alfadocs ${s}`.trim(),
|
|
74
|
+
className: ne({ className: d }),
|
|
75
|
+
"data-component": "product-lockup",
|
|
76
|
+
...l,
|
|
77
|
+
children: [
|
|
78
|
+
/* @__PURE__ */ e(
|
|
79
|
+
te,
|
|
80
|
+
{
|
|
81
|
+
variant: a ? "monochrome" : "wordmark",
|
|
82
|
+
tone: n,
|
|
83
|
+
size: r,
|
|
84
|
+
decorative: !0
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
/* @__PURE__ */ e(
|
|
88
|
+
"span",
|
|
89
|
+
{
|
|
90
|
+
"aria-hidden": !0,
|
|
91
|
+
className: re({
|
|
92
|
+
size: r,
|
|
93
|
+
tone: a ? "solid" : "gradient"
|
|
94
|
+
}),
|
|
95
|
+
children: s
|
|
96
|
+
}
|
|
97
|
+
)
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
);
|
|
102
|
+
g.displayName = "ProductLockup";
|
|
103
|
+
function de(s) {
|
|
104
|
+
return s > 99 ? "99+" : String(s);
|
|
105
|
+
}
|
|
106
|
+
function le({
|
|
107
|
+
user: s,
|
|
108
|
+
labels: a,
|
|
109
|
+
onSignOut: n,
|
|
110
|
+
onToggleFullscreen: r
|
|
111
|
+
}) {
|
|
112
|
+
const { t: d } = C(), l = a.fullscreen ?? d("patientShell.settings.fullscreen");
|
|
113
|
+
return (
|
|
114
|
+
// Non-modal: an account menu shouldn't inert/aria-hide the whole shell
|
|
115
|
+
// behind it (which leaves the still-focusable chrome inside an
|
|
116
|
+
// aria-hidden region — an `aria-hidden-focus` violation).
|
|
117
|
+
/* @__PURE__ */ t(i.Root, { modal: !1, children: [
|
|
118
|
+
/* @__PURE__ */ e(i.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
|
|
119
|
+
"button",
|
|
120
|
+
{
|
|
121
|
+
type: "button",
|
|
122
|
+
"aria-label": a.accountMenu,
|
|
123
|
+
"data-testid": "marketplace-account-trigger",
|
|
124
|
+
className: "ds:rounded-full ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)] ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)] ds:justify-center ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)] ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ e(W, { name: s.name, src: s.avatarSrc, size: "md" }),
|
|
127
|
+
/* @__PURE__ */ e("span", { className: "ds:hidden ds:sm:inline", children: s.name })
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
) }),
|
|
131
|
+
/* @__PURE__ */ t(i.Content, { align: "end", children: [
|
|
132
|
+
/* @__PURE__ */ e(i.Label, { children: /* @__PURE__ */ t("span", { className: "ds:flex ds:flex-col", children: [
|
|
133
|
+
/* @__PURE__ */ e("span", { className: "ds:font-medium", children: s.name }),
|
|
134
|
+
s.email ? /* @__PURE__ */ e("span", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)]", children: s.email }) : null
|
|
135
|
+
] }) }),
|
|
136
|
+
r ? /* @__PURE__ */ t(V, { children: [
|
|
137
|
+
/* @__PURE__ */ e(i.Separator, {}),
|
|
138
|
+
/* @__PURE__ */ e(
|
|
139
|
+
i.Item,
|
|
140
|
+
{
|
|
141
|
+
onSelect: r,
|
|
142
|
+
"data-testid": "marketplace-fullscreen",
|
|
143
|
+
children: l
|
|
144
|
+
}
|
|
145
|
+
)
|
|
146
|
+
] }) : null,
|
|
147
|
+
/* @__PURE__ */ e(i.Separator, {}),
|
|
148
|
+
/* @__PURE__ */ e(
|
|
149
|
+
i.Item,
|
|
150
|
+
{
|
|
151
|
+
onSelect: n,
|
|
152
|
+
"data-testid": "marketplace-sign-out",
|
|
153
|
+
children: a.signOut
|
|
154
|
+
}
|
|
155
|
+
)
|
|
156
|
+
] })
|
|
157
|
+
] })
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
function ie({ nav: s }) {
|
|
161
|
+
return /* @__PURE__ */ e(U, { children: s.map((a) => {
|
|
162
|
+
const n = typeof a.badgeCount == "number" && a.badgeCount > 0 ? a.badgeCount : void 0;
|
|
163
|
+
return /* @__PURE__ */ t(
|
|
164
|
+
X,
|
|
165
|
+
{
|
|
166
|
+
href: a.href,
|
|
167
|
+
"aria-label": a.label,
|
|
168
|
+
isActive: a.isActive,
|
|
169
|
+
children: [
|
|
170
|
+
a.icon ? /* @__PURE__ */ e(Y, { children: a.icon }) : null,
|
|
171
|
+
/* @__PURE__ */ e(Z, { children: a.label }),
|
|
172
|
+
n !== void 0 ? /* @__PURE__ */ e(_, { children: de(n) }) : null
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
a.id
|
|
176
|
+
);
|
|
177
|
+
}) });
|
|
178
|
+
}
|
|
179
|
+
const w = c("ds:bg-[color:var(--app-shell-background)]", {
|
|
180
|
+
variants: {
|
|
181
|
+
variant: {
|
|
182
|
+
standalone: "",
|
|
183
|
+
embedded: "ds:flex-1"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
defaultVariants: { variant: "standalone" }
|
|
187
|
+
});
|
|
188
|
+
function oe({
|
|
189
|
+
nav: s,
|
|
190
|
+
ariaLabel: a
|
|
191
|
+
}) {
|
|
192
|
+
return /* @__PURE__ */ e(R, { items: s, ariaLabel: a });
|
|
193
|
+
}
|
|
194
|
+
const ce = b(
|
|
195
|
+
({
|
|
196
|
+
productName: s,
|
|
197
|
+
productHref: a = "/",
|
|
198
|
+
nav: n,
|
|
199
|
+
user: r,
|
|
200
|
+
labels: d,
|
|
201
|
+
onSignOut: l,
|
|
202
|
+
onToggleFullscreen: m,
|
|
203
|
+
sidebarState: p,
|
|
204
|
+
mainAriaLabel: o,
|
|
205
|
+
variant: f = "standalone",
|
|
206
|
+
children: u
|
|
207
|
+
}, h) => {
|
|
208
|
+
const { t: v } = C(), { theme: A, accessibility: z, resolvedTheme: x } = se(), T = A !== "system" || z !== "system", M = x.startsWith("dark") ? "dark" : "light", H = x.endsWith("-accessible"), [B, N] = j(!1), I = /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ e(
|
|
209
|
+
O,
|
|
210
|
+
{
|
|
211
|
+
mainAriaLabel: o,
|
|
212
|
+
mainClassName: w({ variant: "standalone" }),
|
|
213
|
+
header: /* @__PURE__ */ t(E, { children: [
|
|
214
|
+
/* @__PURE__ */ t($, { children: [
|
|
215
|
+
/* @__PURE__ */ e(S, { href: "#main-content" }),
|
|
216
|
+
/* @__PURE__ */ e(D, { onMenuOpen: () => N(!0) }),
|
|
217
|
+
/* @__PURE__ */ e(
|
|
218
|
+
F,
|
|
219
|
+
{
|
|
220
|
+
href: a,
|
|
221
|
+
logo: /* @__PURE__ */ e(g, { name: s, size: "md", monochrome: !0 })
|
|
222
|
+
}
|
|
223
|
+
)
|
|
224
|
+
] }),
|
|
225
|
+
/* @__PURE__ */ e(q, {}),
|
|
226
|
+
/* @__PURE__ */ t(G, { children: [
|
|
227
|
+
/* @__PURE__ */ e(J, { size: "sm" }),
|
|
228
|
+
/* @__PURE__ */ e(
|
|
229
|
+
le,
|
|
230
|
+
{
|
|
231
|
+
user: r,
|
|
232
|
+
labels: d,
|
|
233
|
+
onSignOut: l,
|
|
234
|
+
onToggleFullscreen: m
|
|
235
|
+
}
|
|
236
|
+
)
|
|
237
|
+
] })
|
|
238
|
+
] }),
|
|
239
|
+
sidebar: /* @__PURE__ */ e(
|
|
240
|
+
Q,
|
|
241
|
+
{
|
|
242
|
+
...p !== void 0 ? { state: p } : { defaultState: "expanded" },
|
|
243
|
+
open: B,
|
|
244
|
+
onOpenChange: N,
|
|
245
|
+
"aria-label": v("navigation.sidebar.label"),
|
|
246
|
+
"data-testid": "marketplace-app-shell-sidebar",
|
|
247
|
+
children: /* @__PURE__ */ e(ie, { nav: n })
|
|
248
|
+
}
|
|
249
|
+
),
|
|
250
|
+
children: u
|
|
251
|
+
}
|
|
252
|
+
) }), L = (
|
|
253
|
+
// The shell owns the warm-grey canvas; TabBar's strip is transparent and
|
|
254
|
+
// floats its pill on it, and `<main>` continues the same surface.
|
|
255
|
+
/* @__PURE__ */ t("div", { className: "ds:flex ds:min-h-dvh ds:flex-col ds:bg-[color:var(--app-shell-background)]", children: [
|
|
256
|
+
/* @__PURE__ */ e(S, { href: "#main-content" }),
|
|
257
|
+
/* @__PURE__ */ e(oe, { nav: n, ariaLabel: v("navigation.sidebar.label") }),
|
|
258
|
+
/* @__PURE__ */ e(
|
|
259
|
+
"main",
|
|
260
|
+
{
|
|
261
|
+
id: "main-content",
|
|
262
|
+
tabIndex: -1,
|
|
263
|
+
"aria-label": o ?? v("navigation.main.label", "Main content"),
|
|
264
|
+
className: w({ variant: "embedded" }),
|
|
265
|
+
children: u
|
|
266
|
+
}
|
|
267
|
+
)
|
|
268
|
+
] })
|
|
269
|
+
), k = f === "embedded" ? L : I;
|
|
270
|
+
return T ? /* @__PURE__ */ e(
|
|
271
|
+
ee,
|
|
272
|
+
{
|
|
273
|
+
ref: h,
|
|
274
|
+
theme: M,
|
|
275
|
+
accessible: H,
|
|
276
|
+
className: "ds:contents",
|
|
277
|
+
"data-component": "marketplace-app-shell",
|
|
278
|
+
children: k
|
|
279
|
+
}
|
|
280
|
+
) : /* @__PURE__ */ e(
|
|
281
|
+
"div",
|
|
282
|
+
{
|
|
283
|
+
ref: h,
|
|
284
|
+
className: "ds:contents",
|
|
285
|
+
"data-component": "marketplace-app-shell",
|
|
286
|
+
children: k
|
|
287
|
+
}
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
);
|
|
291
|
+
ce.displayName = "MarketplaceAppShell";
|
|
292
|
+
const me = c(
|
|
293
|
+
"ds:flex ds:min-h-dvh ds:bg-[color:var(--app-shell-background)]",
|
|
294
|
+
{
|
|
295
|
+
variants: {
|
|
296
|
+
layout: {
|
|
297
|
+
card: "",
|
|
298
|
+
split: "ds:flex-col ds:lg:flex-row"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
defaultVariants: { layout: "card" }
|
|
302
|
+
}
|
|
303
|
+
), pe = c("ds:w-full", {
|
|
304
|
+
variants: {
|
|
305
|
+
layout: {
|
|
306
|
+
card: "ds:max-w-[400px]",
|
|
307
|
+
split: "ds:max-w-[400px] ds:lg:max-w-[480px]"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
defaultVariants: { layout: "card" }
|
|
311
|
+
}), fe = c("", {
|
|
312
|
+
variants: {
|
|
313
|
+
layout: { card: "", split: "ds:lg:hidden" }
|
|
314
|
+
},
|
|
315
|
+
defaultVariants: { layout: "card" }
|
|
316
|
+
}), ue = b(
|
|
317
|
+
({
|
|
318
|
+
productName: s,
|
|
319
|
+
title: a,
|
|
320
|
+
description: n,
|
|
321
|
+
connectLabel: r,
|
|
322
|
+
status: d = "idle",
|
|
323
|
+
error: l,
|
|
324
|
+
onConnect: m,
|
|
325
|
+
footer: p,
|
|
326
|
+
layout: o = "card",
|
|
327
|
+
brandPanel: f,
|
|
328
|
+
className: u
|
|
329
|
+
}, h) => /* @__PURE__ */ t(
|
|
330
|
+
"div",
|
|
331
|
+
{
|
|
332
|
+
ref: h,
|
|
333
|
+
"data-component": "connect-with-alfadocs",
|
|
334
|
+
className: `${me({ layout: o })} ${u ?? ""}`,
|
|
335
|
+
children: [
|
|
336
|
+
o === "split" ? (
|
|
337
|
+
// Desktop brand panel (lg+ only): a bold `--primary` surface with the
|
|
338
|
+
// monochrome lockup riding the `--primary-foreground` ink, plus an
|
|
339
|
+
// optional `brandPanel` slot. Decorative — the card carries the real
|
|
340
|
+
// heading + CTA, and shows its own lockup below `lg:`.
|
|
341
|
+
/* @__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: [
|
|
342
|
+
/* @__PURE__ */ e(
|
|
343
|
+
g,
|
|
344
|
+
{
|
|
345
|
+
name: s,
|
|
346
|
+
size: "lg",
|
|
347
|
+
monochrome: !0,
|
|
348
|
+
tone: "inherit"
|
|
349
|
+
}
|
|
350
|
+
),
|
|
351
|
+
f ? /* @__PURE__ */ e("div", { className: "type-body ds:max-w-[28rem] ds:text-start", children: f }) : null
|
|
352
|
+
] })
|
|
353
|
+
) : null,
|
|
354
|
+
/* @__PURE__ */ e("div", { className: "ds:flex ds:flex-1 ds:items-center ds:justify-center ds:p-[var(--spacing-lg)]", children: /* @__PURE__ */ e(y, { className: pe({ layout: o }), children: /* @__PURE__ */ t(y.Body, { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-lg)] ds:text-center", children: [
|
|
355
|
+
/* @__PURE__ */ e(
|
|
356
|
+
g,
|
|
357
|
+
{
|
|
358
|
+
name: s,
|
|
359
|
+
size: "lg",
|
|
360
|
+
className: fe({ layout: o })
|
|
361
|
+
}
|
|
362
|
+
),
|
|
363
|
+
/* @__PURE__ */ t("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
364
|
+
/* @__PURE__ */ e("h1", { className: "type-title-card", children: a }),
|
|
365
|
+
/* @__PURE__ */ e("p", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: n })
|
|
366
|
+
] }),
|
|
367
|
+
d === "error" && l ? /* @__PURE__ */ e(P, { variant: "error", className: "ds:w-full ds:text-start", children: l }) : null,
|
|
368
|
+
/* @__PURE__ */ e(
|
|
369
|
+
K,
|
|
370
|
+
{
|
|
371
|
+
intent: "primary",
|
|
372
|
+
className: "ds:w-full",
|
|
373
|
+
loading: d === "connecting",
|
|
374
|
+
onClick: m,
|
|
375
|
+
label: r,
|
|
376
|
+
"data-testid": "connect-with-alfadocs-button"
|
|
377
|
+
}
|
|
378
|
+
),
|
|
379
|
+
p ? /* @__PURE__ */ e("div", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: p }) : null
|
|
380
|
+
] }) }) })
|
|
381
|
+
]
|
|
382
|
+
}
|
|
383
|
+
)
|
|
384
|
+
);
|
|
385
|
+
ue.displayName = "ConnectWithAlfadocs";
|
|
386
|
+
export {
|
|
387
|
+
ue as C,
|
|
388
|
+
ce as M,
|
|
389
|
+
g as P
|
|
390
|
+
};
|
|
391
|
+
//# sourceMappingURL=marketplace-app-shell-kVAVycz_.js.map
|
|
@@ -7,7 +7,7 @@ import { B as ue } from "./button-DD_0Xdmr.js";
|
|
|
7
7
|
import { C as M } from "./card-DPmk26CL.js";
|
|
8
8
|
import { S as fe } from "./slider-BHWzXdjt.js";
|
|
9
9
|
import { A as Z } from "./alert-ywPR59NE.js";
|
|
10
|
-
import { D as F } from "./dropdown-menu-
|
|
10
|
+
import { D as F } from "./dropdown-menu-CUEXqKis.js";
|
|
11
11
|
import { u as pe } from "./registry-nPAVE19X.js";
|
|
12
12
|
import { S as re } from "./search-BonnQsHv.js";
|
|
13
13
|
import { X as ne } from "./x-CCcI3eJp.js";
|
|
@@ -1155,4 +1155,4 @@ export {
|
|
|
1155
1155
|
Oe as P,
|
|
1156
1156
|
ye as p
|
|
1157
1157
|
};
|
|
1158
|
-
//# sourceMappingURL=patient-search-
|
|
1158
|
+
//# sourceMappingURL=patient-search-DPe2ZYEL.js.map
|
|
@@ -3,7 +3,7 @@ import { forwardRef as k, useState as w } from "react";
|
|
|
3
3
|
import { useTranslation as m } from "react-i18next";
|
|
4
4
|
import { A } from "./app-frame-BYx1gcV7.js";
|
|
5
5
|
import { I as C } from "./icon-button-CKEOrN37.js";
|
|
6
|
-
import { D as i } from "./dropdown-menu-
|
|
6
|
+
import { D as i } from "./dropdown-menu-CUEXqKis.js";
|
|
7
7
|
import { H, g as x, f as N, e as B, a as M, c as T, d as O } from "./header-CTZWX-tm.js";
|
|
8
8
|
import { L as P } from "./logo-yituK7sE.js";
|
|
9
9
|
import { S as W, a as j, h as R, j as _, k as z, i as D } from "./sidebar-_vJXI9rB.js";
|
|
@@ -171,4 +171,4 @@ $.displayName = "PatientShell";
|
|
|
171
171
|
export {
|
|
172
172
|
$ as P
|
|
173
173
|
};
|
|
174
|
-
//# sourceMappingURL=patient-shell-
|
|
174
|
+
//# sourceMappingURL=patient-shell-lDX3wwu6.js.map
|
|
@@ -207,8 +207,8 @@ const we = z(
|
|
|
207
207
|
), ee = z(
|
|
208
208
|
[
|
|
209
209
|
"ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
|
|
210
|
-
"ds:min-block-size
|
|
211
|
-
"ds:min-inline-size
|
|
210
|
+
"ds:[min-block-size:var(--min-target-size)]",
|
|
211
|
+
"ds:[min-inline-size:var(--min-target-size)]",
|
|
212
212
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
213
213
|
"ds:rounded-[var(--radius-sm)]",
|
|
214
214
|
"ds:bg-[var(--primary)] ds:text-[var(--primary-foreground)]",
|
|
@@ -546,7 +546,7 @@ function Se(r) {
|
|
|
546
546
|
/* @__PURE__ */ t(
|
|
547
547
|
"div",
|
|
548
548
|
{
|
|
549
|
-
className: "ds:min-block-size
|
|
549
|
+
className: "ds:[min-block-size:var(--min-target-size)] ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)] ds:bg-[var(--muted)]",
|
|
550
550
|
"aria-hidden": "true"
|
|
551
551
|
}
|
|
552
552
|
)
|
|
@@ -556,7 +556,7 @@ function Se(r) {
|
|
|
556
556
|
/* @__PURE__ */ t(
|
|
557
557
|
"div",
|
|
558
558
|
{
|
|
559
|
-
className: "ds:min-block-size
|
|
559
|
+
className: "ds:[min-block-size:calc(var(--min-target-size)*2)] ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)] ds:bg-[var(--muted)]",
|
|
560
560
|
"aria-hidden": "true"
|
|
561
561
|
}
|
|
562
562
|
)
|
|
@@ -587,4 +587,4 @@ export {
|
|
|
587
587
|
ye as p,
|
|
588
588
|
ee as s
|
|
589
589
|
};
|
|
590
|
-
//# sourceMappingURL=payment-form-
|
|
590
|
+
//# sourceMappingURL=payment-form-BzVsG6Ks.js.map
|