@alfadocs/ui-kit 1.112.2 → 1.114.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/{anamnesis-card-BzuluoD1.js → anamnesis-card-Ddnrdfx3.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-card-DdTRdNrQ.js → anamnesis-summary-card-S1H_AARG.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-DfDulR_c.js → anamnesis-summary-rows-DaS-j8Jd.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-DmsY5g28.js → antenatal-schedule-timeline-DmlXxevC.js} +2 -2
- package/dist/_chunks/{bishop-score-CnIft4eV.js → bishop-score-QJu-sM1y.js} +2 -2
- package/dist/_chunks/{bmi-calculator-NMkXc079.js → bmi-calculator-Ba4yoR31.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-FvdoKZ54.js → calendar-appointment-editor-dialog-iyh9QqNw.js} +6 -6
- package/dist/_chunks/{card-C85_Ndhb.js → card-DVO3x8E-.js} +23 -19
- package/dist/_chunks/{clinical-note-card-BVkxGiGl.js → clinical-note-card-Zz5_GEz-.js} +2 -2
- package/dist/_chunks/{connection-status-CWSU3eiq.js → connection-status-DjarASoU.js} +2 -2
- package/dist/_chunks/{contact-card-CymtNvy3.js → contact-card-Cv-Nwvac.js} +2 -2
- package/dist/_chunks/{contact-profile-card-CAL66GaH.js → contact-profile-card-DMXWBBkU.js} +2 -2
- package/dist/_chunks/{cycle-calculator-ZMDvToIm.js → cycle-calculator-Dd-XbKmZ.js} +2 -2
- package/dist/_chunks/{document-preview-5xs64jME.js → document-preview-WvJKHJOP.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Dr2cDa64.js → due-date-calculator-Dl6SyMHO.js} +3 -3
- package/dist/_chunks/email-input-DxwbREpx.js +156 -0
- package/dist/_chunks/{entity-summary-BbqqYqF1.js → entity-summary-DGCBQDt1.js} +2 -2
- package/dist/_chunks/{face-scheme-e2M2HJGz.js → face-scheme-DlcQaQVR.js} +2 -2
- package/dist/_chunks/{fetal-weight-CkIwJgiH.js → fetal-weight-DmZzMRzB.js} +2 -2
- package/dist/_chunks/{finished-terminal-DXVAfhRr.js → finished-terminal-BKTFUk3S.js} +2 -2
- package/dist/_chunks/{forgot-password-form-vfCO2-Tt.js → forgot-password-form-Bc_UPax6.js} +9 -8
- package/dist/_chunks/{gestational-age-calculator-Dv3IePb-.js → gestational-age-calculator-DmzYdW5e.js} +3 -3
- package/dist/_chunks/{hcg-doubling-DdyUt4gz.js → hcg-doubling-Tr72PetS.js} +2 -2
- package/dist/_chunks/{heatmap-BiwC7Gdx.js → heatmap-CNxCDl0D.js} +2 -2
- package/dist/_chunks/isEmail-BfVspSvV.js +248 -0
- package/dist/_chunks/{kit-extensions-BOsUgWnE.js → kit-extensions-DZJRmDI6.js} +7 -7
- package/dist/_chunks/{login-dev-card-Cz1Clugq.js → login-dev-card-D7orCfJT.js} +48 -47
- package/dist/_chunks/map-view-Bny79cWa.js +856 -0
- package/dist/_chunks/{marketplace-app-shell-C-4QF6mp.js → marketplace-app-shell-CPNVBVLH.js} +2 -2
- package/dist/_chunks/motion-is-off-BvAuNV5O.js +15 -0
- package/dist/_chunks/{notes-panel-Cz621DWV.js → notes-panel-DXMTObBv.js} +3 -3
- package/dist/_chunks/{operator-hero-BELhrv9o.js → operator-hero-BWayX73x.js} +71 -62
- package/dist/_chunks/{patient-details-BwkDIm4D.js → patient-details-DdtXBNjt.js} +3 -3
- package/dist/_chunks/{patient-field-row-CBba7w9V.js → patient-field-row-D9rb-QJH.js} +2 -2
- package/dist/_chunks/{patient-search-CxuqVUTB.js → patient-search-DDRDCjZi.js} +439 -482
- package/dist/_chunks/{patient-summary-card-DtYTo9w_.js → patient-summary-card-CGHz-Bvm.js} +3 -3
- package/dist/_chunks/{payment-automation-upsell-u5EuFyCY.js → payment-automation-upsell-D7yaD4u1.js} +3 -3
- package/dist/_chunks/{payment-request-card-IR83TJax.js → payment-request-card-BmV2pLoM.js} +2 -2
- package/dist/_chunks/{periodontal-chart-DqdUEFxK.js → periodontal-chart-Bjz7O4wT.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-CCkzStlm.js → periodontal-chart-card-CxEXHl2x.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-CF1d_0yl.js → periodontal-diagnosis-xheWfi4g.js} +2 -2
- package/dist/_chunks/{periodontal-risk-chart-D2zyID0H.js → periodontal-risk-chart-BBPB9wf1.js} +2 -2
- package/dist/_chunks/{practice-profile-hero-Bb4YyxHA.js → practice-profile-hero-Cw4NZp0A.js} +2 -2
- package/dist/_chunks/practice-results-BlxfBx-D.js +2181 -0
- package/dist/_chunks/{pregnancy-dating-Cs8xpZA8.js → pregnancy-dating-BvorzHrd.js} +3 -3
- package/dist/_chunks/{pregnancy-weight-gain-B_Zldlzq.js → pregnancy-weight-gain-DQoOM8QV.js} +2 -2
- package/dist/_chunks/{privacy-mask-DbEKI-Jv.js → privacy-mask-Dc3kdkCR.js} +2 -2
- package/dist/_chunks/{public-footer-DGjLTtNK.js → public-footer-CB7ruuLI.js} +295 -260
- package/dist/_chunks/{public-header.agent-_ArDD1Xr.js → public-header.agent-Db4wm6_S.js} +203 -193
- package/dist/_chunks/{registration-form-DEyUFysm.js → registration-form-Lw9T7IXr.js} +7 -6
- package/dist/_chunks/{reserved.agent-W_Zgj564.js → reserved.agent-D2jwJPac.js} +22 -32
- package/dist/_chunks/{reset-password-form-B0acanDD.js → reset-password-form-C93SH0Tx.js} +3 -3
- package/dist/_chunks/{reviews-panel-B03auSpQ.js → reviews-panel-CfJPEkH7.js} +2 -2
- package/dist/_chunks/{section-card-D1sV4Voz.js → section-card-DFr2wGal.js} +2 -2
- package/dist/_chunks/{send-registration-link-form-Nn0jf65G.js → send-registration-link-form-DfbTjrEK.js} +9 -8
- package/dist/_chunks/{signed-out-frame-CPow3aCZ.js → signed-out-frame-bh7fn_Px.js} +2 -2
- package/dist/_chunks/{stat-BFKZV50y.js → stat-WGLdn5Vn.js} +113 -107
- package/dist/_chunks/{task-card-TSJjuuDe.js → task-card-DqVoitRk.js} +2 -2
- package/dist/_chunks/{task-editor-gqWF1jI6.js → task-editor-D--LwVrg.js} +2 -2
- package/dist/_chunks/{task-tray-DrXfMCuf.js → task-tray-C6j8HVMv.js} +2 -2
- package/dist/_chunks/{tasks-panel-OuIaydK5.js → tasks-panel-D6PuF4MQ.js} +2 -2
- package/dist/_chunks/{timeline-CKUaBZOx.js → timeline-AMqE-c2T.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-DYyCYI9f.js → use-appointment-details-read-BK_Gw1GG.js} +5 -5
- package/dist/_chunks/verify-identity-types-C85EXNzy.js +707 -0
- package/dist/_chunks/{workflow-map-DWk-rZse.js → workflow-map-B4XkcET0.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-DILFqAVd.js → workflow-webhook-action-CtBn5JvO.js} +2 -2
- package/dist/agent-catalog.json +111 -7
- package/dist/agent-i18n/en.json +13 -2
- package/dist/components/_shared/motion-is-off.d.ts +7 -0
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/booking/step-focus.d.ts +0 -6
- package/dist/components/card/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/email-input/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +16 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-search/patient-search.d.ts +6 -2
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +43 -2
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-footer/public-footer.d.ts +23 -0
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +7 -0
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/section-card/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stat/stat.d.ts +7 -0
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/host-compat.css +4 -1
- package/dist/i18n/locales/ar.d.ts +68 -0
- package/dist/i18n/locales/ar.js +70 -2
- package/dist/i18n/locales/de.d.ts +68 -0
- package/dist/i18n/locales/de.js +70 -2
- package/dist/i18n/locales/el.d.ts +68 -0
- package/dist/i18n/locales/el.js +70 -2
- package/dist/i18n/locales/en.d.ts +68 -0
- package/dist/i18n/locales/en.js +68 -0
- package/dist/i18n/locales/es.d.ts +68 -0
- package/dist/i18n/locales/es.js +70 -2
- package/dist/i18n/locales/fr.d.ts +68 -0
- package/dist/i18n/locales/fr.js +70 -2
- package/dist/i18n/locales/hi.d.ts +68 -0
- package/dist/i18n/locales/hi.js +70 -2
- package/dist/i18n/locales/it.d.ts +68 -0
- package/dist/i18n/locales/it.js +70 -2
- package/dist/i18n/locales/ja.d.ts +68 -0
- package/dist/i18n/locales/ja.js +70 -2
- package/dist/i18n/locales/nl.d.ts +68 -0
- package/dist/i18n/locales/nl.js +70 -2
- package/dist/i18n/locales/pl.d.ts +68 -0
- package/dist/i18n/locales/pl.js +70 -2
- package/dist/i18n/locales/pt.d.ts +68 -0
- package/dist/i18n/locales/pt.js +70 -2
- package/dist/i18n/locales/ro.d.ts +68 -0
- package/dist/i18n/locales/ro.js +70 -2
- package/dist/i18n/locales/ru.d.ts +68 -0
- package/dist/i18n/locales/ru.js +70 -2
- package/dist/i18n/locales/sq.d.ts +68 -0
- package/dist/i18n/locales/sq.js +70 -2
- package/dist/i18n/locales/sv.d.ts +68 -0
- package/dist/i18n/locales/sv.js +70 -2
- package/dist/i18n/locales/tr.d.ts +68 -0
- package/dist/i18n/locales/tr.js +70 -2
- package/dist/i18n/locales/zh.d.ts +68 -0
- package/dist/i18n/locales/zh.js +70 -2
- package/dist/index.js +373 -368
- package/dist/locales/ar.json +70 -2
- package/dist/locales/de.json +70 -2
- package/dist/locales/el.json +70 -2
- package/dist/locales/en.json +68 -0
- package/dist/locales/es.json +70 -2
- package/dist/locales/fr.json +70 -2
- package/dist/locales/hi.json +70 -2
- package/dist/locales/it.json +70 -2
- package/dist/locales/ja.json +70 -2
- package/dist/locales/nl.json +70 -2
- package/dist/locales/pl.json +70 -2
- package/dist/locales/pt.json +70 -2
- package/dist/locales/ro.json +70 -2
- package/dist/locales/ru.json +70 -2
- package/dist/locales/sq.json +70 -2
- package/dist/locales/sv.json +70 -2
- package/dist/locales/tr.json +70 -2
- package/dist/locales/zh.json +70 -2
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/reset-password-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/patterns/verify-identity/change-email-dialog.d.ts +26 -0
- package/dist/patterns/verify-identity/index.d.ts +7 -0
- package/dist/patterns/verify-identity/index.js +8 -0
- package/dist/patterns/verify-identity/use-countdown.d.ts +12 -0
- package/dist/patterns/verify-identity/verify-identity-steps.d.ts +21 -0
- package/dist/patterns/verify-identity/verify-identity-types.d.ts +47 -0
- package/dist/patterns/verify-identity/verify-identity.d.ts +54 -0
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- package/dist/_chunks/email-input-BEO3vonE.js +0 -399
- package/dist/_chunks/map-view-Dn7aXZJw.js +0 -731
- package/dist/_chunks/practice-results-BOpaPaav.js +0 -1923
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as p, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
2
|
+
import { forwardRef as re, useId as ae, useCallback as O, useRef as ne, useMemo as ie } from "react";
|
|
3
|
+
import { c as j } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as P } from "react-i18next";
|
|
5
|
-
import { u as
|
|
6
|
-
const U =
|
|
5
|
+
import { u as de } from "./use-count-up-BLLetaZ8.js";
|
|
6
|
+
const U = j("ds:flex ds:flex-col ds:h-full", {
|
|
7
7
|
variants: {
|
|
8
8
|
variant: {
|
|
9
9
|
default: "ds:gap-[var(--spacing-xs)]",
|
|
@@ -54,7 +54,7 @@ const U = V("ds:flex ds:flex-col ds:h-full", {
|
|
|
54
54
|
size: "md",
|
|
55
55
|
align: "start"
|
|
56
56
|
}
|
|
57
|
-
}),
|
|
57
|
+
}), le = j("type-metric", {
|
|
58
58
|
variants: {
|
|
59
59
|
size: {
|
|
60
60
|
sm: "ds:[--type-metric-size:var(--font-size-xl)]",
|
|
@@ -106,7 +106,7 @@ const U = V("ds:flex ds:flex-col ds:h-full", {
|
|
|
106
106
|
variant: "default",
|
|
107
107
|
intent: "foreground"
|
|
108
108
|
}
|
|
109
|
-
}),
|
|
109
|
+
}), oe = j(
|
|
110
110
|
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-label",
|
|
111
111
|
{
|
|
112
112
|
variants: {
|
|
@@ -122,159 +122,171 @@ const U = V("ds:flex ds:flex-col ds:h-full", {
|
|
|
122
122
|
tone: "neutral"
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
),
|
|
125
|
+
), ce = { up: "↑", down: "↓", flat: "→" }, ue = {
|
|
126
126
|
up: "stat.trend.up",
|
|
127
127
|
down: "stat.trend.down",
|
|
128
128
|
flat: "stat.trend.flat"
|
|
129
129
|
};
|
|
130
130
|
function K({
|
|
131
|
-
trend:
|
|
132
|
-
delta:
|
|
131
|
+
trend: l,
|
|
132
|
+
delta: t,
|
|
133
133
|
deltaFormat: u = "decimal",
|
|
134
134
|
locale: o,
|
|
135
|
-
polarity:
|
|
135
|
+
polarity: e = "higher-is-better"
|
|
136
136
|
}) {
|
|
137
|
-
const { t:
|
|
137
|
+
const { t: n, i18n: m } = P("ui"), i = typeof t == "string" ? t : new Intl.NumberFormat(o ?? m.language, {
|
|
138
138
|
style: u === "percent" ? "percent" : "decimal"
|
|
139
|
-
}).format(u === "percent" ?
|
|
140
|
-
return /* @__PURE__ */ p("span", { className:
|
|
141
|
-
/* @__PURE__ */ s("span", { "aria-hidden": "true", children:
|
|
142
|
-
/* @__PURE__ */ s("span", { className: "ds:sr-only", children:
|
|
143
|
-
|
|
139
|
+
}).format(u === "percent" ? t / 100 : t), r = l === "flat" || e === "neutral" ? "neutral" : l === "up" == (e === "higher-is-better") ? "better" : "worse";
|
|
140
|
+
return /* @__PURE__ */ p("span", { className: oe({ tone: r }), "data-trend-tone": r, children: [
|
|
141
|
+
/* @__PURE__ */ s("span", { "aria-hidden": "true", children: ce[l] }),
|
|
142
|
+
/* @__PURE__ */ s("span", { className: "ds:sr-only", children: n(ue[l]) }),
|
|
143
|
+
i,
|
|
144
144
|
r === "neutral" ? null : /* @__PURE__ */ p("span", { className: "ds:sr-only", children: [
|
|
145
145
|
" ",
|
|
146
|
-
|
|
146
|
+
n(r === "better" ? "stat.trend.better" : "stat.trend.worse")
|
|
147
147
|
] })
|
|
148
148
|
] });
|
|
149
149
|
}
|
|
150
|
-
function
|
|
151
|
-
const u =
|
|
150
|
+
function me(l, t) {
|
|
151
|
+
const u = l.trim();
|
|
152
152
|
if (u === "") return null;
|
|
153
|
-
let o = "",
|
|
154
|
-
|
|
155
|
-
let
|
|
156
|
-
const m =
|
|
157
|
-
m && (
|
|
158
|
-
let
|
|
153
|
+
let o = "", e = u;
|
|
154
|
+
e.startsWith("+") ? (o = "+", e = e.slice(1).trimStart()) : (e.startsWith("-") || e.startsWith("−")) && (o = "-", e = e.slice(1).trimStart());
|
|
155
|
+
let n = "";
|
|
156
|
+
const m = e.match(/[KMB]$/i);
|
|
157
|
+
m && (n = m[0], e = e.slice(0, -1).trimEnd());
|
|
158
|
+
let i = "", r = ".";
|
|
159
159
|
try {
|
|
160
|
-
const
|
|
161
|
-
for (const
|
|
162
|
-
|
|
160
|
+
const h = new Intl.NumberFormat(t).formatToParts(12345.6);
|
|
161
|
+
for (const c of h)
|
|
162
|
+
c.type === "group" ? i = c.value : c.type === "decimal" && (r = c.value);
|
|
163
163
|
} catch {
|
|
164
164
|
}
|
|
165
|
-
const g =
|
|
166
|
-
if (g && !(g[2].length === 3 &&
|
|
167
|
-
const
|
|
168
|
-
if (Number.isFinite(
|
|
169
|
-
return { target:
|
|
165
|
+
const g = e.match(/^(\d+)\.(\d+)$/);
|
|
166
|
+
if (g && !(g[2].length === 3 && i === ".")) {
|
|
167
|
+
const c = Number.parseFloat(e);
|
|
168
|
+
if (Number.isFinite(c))
|
|
169
|
+
return { target: c, sign: o, suffix: n };
|
|
170
170
|
}
|
|
171
|
-
let a =
|
|
172
|
-
|
|
171
|
+
let a = e;
|
|
172
|
+
i !== "" && (a = a.split(i).join("")), r !== "." && (a = a.split(r).join(".")), a = a.replace(/[\s\u00A0\u202F]/g, "");
|
|
173
173
|
const v = Number.parseFloat(a);
|
|
174
|
-
return Number.isFinite(v) ? { target: v, sign: o, suffix:
|
|
174
|
+
return Number.isFinite(v) ? { target: v, sign: o, suffix: n } : null;
|
|
175
175
|
}
|
|
176
|
-
const
|
|
176
|
+
const fe = re(
|
|
177
177
|
({
|
|
178
|
-
label:
|
|
179
|
-
value:
|
|
178
|
+
label: l,
|
|
179
|
+
value: t,
|
|
180
180
|
format: u,
|
|
181
181
|
currency: o,
|
|
182
|
-
locale:
|
|
183
|
-
trend:
|
|
182
|
+
locale: e,
|
|
183
|
+
trend: n,
|
|
184
184
|
trendPolarity: m,
|
|
185
|
-
delta:
|
|
185
|
+
delta: i,
|
|
186
186
|
deltaFormat: r = "decimal",
|
|
187
187
|
icon: g,
|
|
188
188
|
info: a,
|
|
189
189
|
trendInfo: v,
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
labelPosition: h = "above",
|
|
191
|
+
loading: c = !1,
|
|
192
|
+
animate: w = !1,
|
|
192
193
|
animateOnEveryView: Y = !1,
|
|
193
194
|
animateDurationMs: _ = 1600,
|
|
194
195
|
animateLocale: q,
|
|
195
|
-
animateSeparators:
|
|
196
|
-
variant:
|
|
197
|
-
size:
|
|
196
|
+
animateSeparators: x,
|
|
197
|
+
variant: z = "default",
|
|
198
|
+
size: F = "md",
|
|
198
199
|
align: M = "start",
|
|
199
|
-
intent:
|
|
200
|
-
className:
|
|
201
|
-
...
|
|
200
|
+
intent: H = "foreground",
|
|
201
|
+
className: k,
|
|
202
|
+
...I
|
|
202
203
|
}, R) => {
|
|
203
|
-
const { i18n:
|
|
204
|
-
if (typeof
|
|
204
|
+
const { i18n: J } = P("ui"), T = ae(), f = e ?? J.language, Q = O(() => {
|
|
205
|
+
if (typeof t == "string") return t;
|
|
205
206
|
switch (u) {
|
|
206
207
|
case "currency":
|
|
207
208
|
return new Intl.NumberFormat(f, {
|
|
208
209
|
style: "currency",
|
|
209
210
|
currency: o ?? "USD"
|
|
210
|
-
}).format(
|
|
211
|
+
}).format(t);
|
|
211
212
|
case "percent":
|
|
212
213
|
return new Intl.NumberFormat(f, { style: "percent" }).format(
|
|
213
|
-
|
|
214
|
+
t
|
|
214
215
|
);
|
|
215
216
|
case "decimal":
|
|
216
217
|
return new Intl.NumberFormat(f, { style: "decimal" }).format(
|
|
217
|
-
|
|
218
|
+
t
|
|
218
219
|
);
|
|
219
220
|
default:
|
|
220
|
-
return new Intl.NumberFormat(f).format(
|
|
221
|
+
return new Intl.NumberFormat(f).format(t);
|
|
221
222
|
}
|
|
222
|
-
}, [
|
|
223
|
-
|
|
224
|
-
const
|
|
225
|
-
(
|
|
223
|
+
}, [t, u, f, o])(), y = q ?? f;
|
|
224
|
+
ne(!1);
|
|
225
|
+
const d = ie(() => w ? typeof t == "number" ? Number.isFinite(t) ? { target: t, sign: "", suffix: "" } : null : me(t, y) : null, [w, t, y]), X = w && d !== null, Z = (d == null ? void 0 : d.target) ?? 0, S = (d == null ? void 0 : d.sign) ?? "", $ = (d == null ? void 0 : d.suffix) ?? "", ee = O(
|
|
226
|
+
(N) => {
|
|
226
227
|
const E = (() => {
|
|
227
228
|
try {
|
|
228
|
-
return new Intl.NumberFormat(
|
|
229
|
+
return new Intl.NumberFormat(y, {
|
|
229
230
|
useGrouping: !0
|
|
230
231
|
});
|
|
231
232
|
} catch {
|
|
232
233
|
return null;
|
|
233
234
|
}
|
|
234
235
|
})();
|
|
235
|
-
let
|
|
236
|
+
let b;
|
|
236
237
|
if (E)
|
|
237
|
-
if (
|
|
238
|
-
const A = Math.abs(
|
|
238
|
+
if (x) {
|
|
239
|
+
const A = Math.abs(N), D = Math.trunc(A), G = A - D, te = x.thousand ?? "", V = String(D).replace(
|
|
239
240
|
/\B(?=(\d{3})+(?!\d))/g,
|
|
240
|
-
|
|
241
|
+
te
|
|
241
242
|
);
|
|
242
243
|
if (G === 0)
|
|
243
|
-
|
|
244
|
+
b = V;
|
|
244
245
|
else {
|
|
245
|
-
const L = G.toFixed(6).replace(/0+$/, "").slice(2),
|
|
246
|
-
|
|
246
|
+
const L = G.toFixed(6).replace(/0+$/, "").slice(2), se = x.decimal ?? ".";
|
|
247
|
+
b = L ? V + se + L : V;
|
|
247
248
|
}
|
|
248
249
|
} else
|
|
249
|
-
|
|
250
|
+
b = E.format(Math.abs(N));
|
|
250
251
|
else
|
|
251
|
-
|
|
252
|
-
let W =
|
|
253
|
-
return
|
|
252
|
+
b = String(Math.abs(N));
|
|
253
|
+
let W = S;
|
|
254
|
+
return S === "" && N < 0 && (W = "-"), `${W}${b}${$}`;
|
|
254
255
|
},
|
|
255
|
-
[
|
|
256
|
-
),
|
|
257
|
-
to:
|
|
256
|
+
[y, x, S, $]
|
|
257
|
+
), B = de({
|
|
258
|
+
to: Z,
|
|
258
259
|
from: 0,
|
|
259
260
|
durationMs: _,
|
|
260
261
|
startOnVisible: !0,
|
|
261
262
|
retriggerOnReEntry: Y,
|
|
262
263
|
// `formatter` is the only path we use — it owns both the locale
|
|
263
264
|
// formatting and the sign/suffix re-application.
|
|
264
|
-
formatter:
|
|
265
|
-
})
|
|
266
|
-
|
|
265
|
+
formatter: ee
|
|
266
|
+
}), C = [
|
|
267
|
+
le({ size: F, variant: z, intent: H }),
|
|
268
|
+
h === "below" ? "ds:order-first" : ""
|
|
269
|
+
].filter(Boolean).join(" ");
|
|
270
|
+
return c ? /* @__PURE__ */ p(
|
|
267
271
|
"div",
|
|
268
272
|
{
|
|
269
273
|
ref: R,
|
|
270
274
|
role: "group",
|
|
271
275
|
"aria-busy": "true",
|
|
272
|
-
"aria-label":
|
|
276
|
+
"aria-label": l,
|
|
273
277
|
"data-component": "stat",
|
|
274
|
-
className: U({ variant:
|
|
275
|
-
...
|
|
278
|
+
className: U({ variant: z, size: F, align: M, className: k }),
|
|
279
|
+
...I,
|
|
276
280
|
children: [
|
|
277
|
-
/* @__PURE__ */ s(
|
|
281
|
+
/* @__PURE__ */ s(
|
|
282
|
+
"div",
|
|
283
|
+
{
|
|
284
|
+
className: [
|
|
285
|
+
"ds:h-[var(--skeleton-label-h)] ds:w-[var(--skeleton-label-w)] ds:animate-pulse ds:rounded-[var(--radius-sm)] ds:bg-[var(--muted)]",
|
|
286
|
+
h === "below" ? "ds:order-last" : ""
|
|
287
|
+
].filter(Boolean).join(" ")
|
|
288
|
+
}
|
|
289
|
+
),
|
|
278
290
|
/* @__PURE__ */ s("div", { className: "ds:h-[var(--skeleton-value-h)] ds:w-[var(--skeleton-value-w)] ds:animate-pulse ds:rounded-[var(--radius-sm)] ds:bg-[var(--muted)]" })
|
|
279
291
|
]
|
|
280
292
|
}
|
|
@@ -285,13 +297,15 @@ const ut = st(
|
|
|
285
297
|
role: "group",
|
|
286
298
|
"aria-labelledby": T,
|
|
287
299
|
"data-component": "stat",
|
|
288
|
-
className: U({ variant:
|
|
289
|
-
...
|
|
300
|
+
className: U({ variant: z, size: F, align: M, className: k }),
|
|
301
|
+
...I,
|
|
290
302
|
children: [
|
|
291
303
|
/* @__PURE__ */ p(
|
|
292
304
|
"span",
|
|
293
305
|
{
|
|
294
|
-
className:
|
|
306
|
+
className: [
|
|
307
|
+
a == null ? "ds:inline-flex ds:items-center" : "ds:inline-flex ds:flex-wrap ds:items-center"
|
|
308
|
+
].filter(Boolean).join(" "),
|
|
295
309
|
children: [
|
|
296
310
|
g && /* @__PURE__ */ s(
|
|
297
311
|
"span",
|
|
@@ -314,7 +328,7 @@ const ut = st(
|
|
|
314
328
|
{
|
|
315
329
|
id: T,
|
|
316
330
|
className: "type-label ds:text-[var(--muted-foreground)]",
|
|
317
|
-
children:
|
|
331
|
+
children: l
|
|
318
332
|
}
|
|
319
333
|
),
|
|
320
334
|
a != null && /* @__PURE__ */ s(
|
|
@@ -328,39 +342,31 @@ const ut = st(
|
|
|
328
342
|
]
|
|
329
343
|
}
|
|
330
344
|
),
|
|
331
|
-
|
|
345
|
+
X ? (
|
|
332
346
|
// The animated number is wrapped in an `aria-live="off"` span
|
|
333
347
|
// so screen readers don't announce every interpolated frame.
|
|
334
348
|
// The `role="group"` ancestor (with `aria-labelledby` pointing
|
|
335
349
|
// at the label) carries the final accessible reading — the
|
|
336
350
|
// animated frames are decorative only.
|
|
337
|
-
/* @__PURE__ */ s(
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
ref: C.ref,
|
|
341
|
-
"aria-live": "off",
|
|
342
|
-
className: B({ size: N, variant: y, intent: k }),
|
|
343
|
-
children: C.value
|
|
344
|
-
}
|
|
345
|
-
)
|
|
346
|
-
) : /* @__PURE__ */ s("span", { className: B({ size: N, variant: y, intent: k }), children: J }),
|
|
347
|
-
i != null && d != null && (v == null ? /* @__PURE__ */ s(
|
|
351
|
+
/* @__PURE__ */ s("span", { ref: B.ref, "aria-live": "off", className: C, children: B.value })
|
|
352
|
+
) : /* @__PURE__ */ s("span", { className: C, children: Q }),
|
|
353
|
+
n != null && i != null && (v == null ? /* @__PURE__ */ s(
|
|
348
354
|
K,
|
|
349
355
|
{
|
|
350
|
-
trend:
|
|
351
|
-
delta:
|
|
356
|
+
trend: n,
|
|
357
|
+
delta: i,
|
|
352
358
|
deltaFormat: r,
|
|
353
|
-
locale:
|
|
359
|
+
locale: e,
|
|
354
360
|
polarity: m
|
|
355
361
|
}
|
|
356
362
|
) : /* @__PURE__ */ p("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center", children: [
|
|
357
363
|
/* @__PURE__ */ s(
|
|
358
364
|
K,
|
|
359
365
|
{
|
|
360
|
-
trend:
|
|
361
|
-
delta:
|
|
366
|
+
trend: n,
|
|
367
|
+
delta: i,
|
|
362
368
|
deltaFormat: r,
|
|
363
|
-
locale:
|
|
369
|
+
locale: e,
|
|
364
370
|
polarity: m
|
|
365
371
|
}
|
|
366
372
|
),
|
|
@@ -378,8 +384,8 @@ const ut = st(
|
|
|
378
384
|
);
|
|
379
385
|
}
|
|
380
386
|
);
|
|
381
|
-
|
|
387
|
+
fe.displayName = "Stat";
|
|
382
388
|
export {
|
|
383
|
-
|
|
389
|
+
fe as S
|
|
384
390
|
};
|
|
385
|
-
//# sourceMappingURL=stat-
|
|
391
|
+
//# sourceMappingURL=stat-WGLdn5Vn.js.map
|
|
@@ -3,7 +3,7 @@ import { forwardRef as C } from "react";
|
|
|
3
3
|
import { c as w } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as T } from "react-i18next";
|
|
5
5
|
import { V as p } from "./visually-hidden-BHxEUGyT.js";
|
|
6
|
-
import { p as z } from "./privacy-mask-
|
|
6
|
+
import { p as z } from "./privacy-mask-Dc3kdkCR.js";
|
|
7
7
|
import { c as S } from "./createLucideIcon-DhHxpK9K.js";
|
|
8
8
|
import { B as V } from "./building-2-D33bLCWL.js";
|
|
9
9
|
import { U as g } from "./user-B12p7bVF.js";
|
|
@@ -187,4 +187,4 @@ export {
|
|
|
187
187
|
O as T,
|
|
188
188
|
q as i
|
|
189
189
|
};
|
|
190
|
-
//# sourceMappingURL=task-card-
|
|
190
|
+
//# sourceMappingURL=task-card-DqVoitRk.js.map
|
|
@@ -25,7 +25,7 @@ import { u as Vt } from "./registry-DvAUVLHh.js";
|
|
|
25
25
|
import { u as Lt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
26
26
|
import { c as Ut } from "./compose-refs-C0k0tdqF.js";
|
|
27
27
|
import { n as Wt } from "./normalize-diacritics-BNGbFNlJ.js";
|
|
28
|
-
import { p as Kt, P as Ht } from "./privacy-mask-
|
|
28
|
+
import { p as Kt, P as Ht } from "./privacy-mask-Dc3kdkCR.js";
|
|
29
29
|
import { g as je, h as Gt } from "./handled-rejection-6gqCf5vt.js";
|
|
30
30
|
import { L as Qt } from "./lock-ClAFG1gy.js";
|
|
31
31
|
import { X as Yt } from "./x-B5YnXwCz.js";
|
|
@@ -1239,4 +1239,4 @@ export {
|
|
|
1239
1239
|
vn as T,
|
|
1240
1240
|
ln as t
|
|
1241
1241
|
};
|
|
1242
|
-
//# sourceMappingURL=task-editor-
|
|
1242
|
+
//# sourceMappingURL=task-editor-D--LwVrg.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as M } from "react-i18next";
|
|
|
5
5
|
import { I as A } from "./icon-button-S8_weU3g.js";
|
|
6
6
|
import { S as V } from "./skeleton-tTWJpvAq.js";
|
|
7
7
|
import { E as F } from "./empty-state-DwJ5YNzz.js";
|
|
8
|
-
import { T as G } from "./task-card-
|
|
8
|
+
import { T as G } from "./task-card-DqVoitRk.js";
|
|
9
9
|
import { u as J } from "./registry-DvAUVLHh.js";
|
|
10
10
|
import { S as L } from "./square-check-big-dj0o8yA3.js";
|
|
11
11
|
import { P as Q } from "./plus-DzMQ_c6b.js";
|
|
@@ -236,4 +236,4 @@ export {
|
|
|
236
236
|
X as T,
|
|
237
237
|
U as t
|
|
238
238
|
};
|
|
239
|
-
//# sourceMappingURL=task-tray-
|
|
239
|
+
//# sourceMappingURL=task-tray-C6j8HVMv.js.map
|
|
@@ -12,7 +12,7 @@ import { S as Ot } from "./select-uESzXTX6.js";
|
|
|
12
12
|
import { S as Ks } from "./switch-DO6uC4HJ.js";
|
|
13
13
|
import { S as Vs } from "./skeleton-tTWJpvAq.js";
|
|
14
14
|
import { E as $e } from "./empty-state-DwJ5YNzz.js";
|
|
15
|
-
import { T as Cs } from "./task-card-
|
|
15
|
+
import { T as Cs } from "./task-card-DqVoitRk.js";
|
|
16
16
|
import { V as Gs } from "./visually-hidden-BHxEUGyT.js";
|
|
17
17
|
import { u as Us } from "./use-check-animation--I3cS00X.js";
|
|
18
18
|
import { a as Ys, u as Dt, R as jt } from "./use-list-reflow-C7O4Uqnl.js";
|
|
@@ -1239,4 +1239,4 @@ export {
|
|
|
1239
1239
|
En as T,
|
|
1240
1240
|
dn as t
|
|
1241
1241
|
};
|
|
1242
|
-
//# sourceMappingURL=tasks-panel-
|
|
1242
|
+
//# sourceMappingURL=tasks-panel-D6PuF4MQ.js.map
|
|
@@ -3,7 +3,7 @@ import { forwardRef as m, useMemo as p, useRef as w, useState as V, useCallback
|
|
|
3
3
|
import { c as b } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as A } from "react-i18next";
|
|
5
5
|
import { A as P } from "./avatar-Dp5apm1d.js";
|
|
6
|
-
import { C as N } from "./card-
|
|
6
|
+
import { C as N } from "./card-DVO3x8E-.js";
|
|
7
7
|
import { T as q } from "./timestamp-DPLDWdxA.js";
|
|
8
8
|
import { u as B } from "./registry-DvAUVLHh.js";
|
|
9
9
|
import { C as H } from "./circle-j7oZoouK.js";
|
|
@@ -293,4 +293,4 @@ export {
|
|
|
293
293
|
le as T,
|
|
294
294
|
K as t
|
|
295
295
|
};
|
|
296
|
-
//# sourceMappingURL=timeline-
|
|
296
|
+
//# sourceMappingURL=timeline-AMqE-c2T.js.map
|
|
@@ -6,7 +6,7 @@ import { u as Jt } from "./registry-DvAUVLHh.js";
|
|
|
6
6
|
import { u as te } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
7
7
|
import { c as Zt } from "./compose-refs-C0k0tdqF.js";
|
|
8
8
|
import { h as Ue, g as Qe } from "./handled-rejection-6gqCf5vt.js";
|
|
9
|
-
import { a as en, b as xt } from "./privacy-mask-
|
|
9
|
+
import { a as en, b as xt } from "./privacy-mask-Dc3kdkCR.js";
|
|
10
10
|
import { A as F } from "./alert-C4WKViaS.js";
|
|
11
11
|
import { B as O } from "./button-DohK_Ak_.js";
|
|
12
12
|
import { I as Lt } from "./icon-button-S8_weU3g.js";
|
|
@@ -16,8 +16,8 @@ import { E as zt } from "./editable-description-KU56SP4P.js";
|
|
|
16
16
|
import { N as Xe } from "./note-timeline-BrjHBQfx.js";
|
|
17
17
|
import { P as Ot } from "./panel-header-CbtlTe85.js";
|
|
18
18
|
import { P as Ge } from "./panel-subview-DCyvn-49.js";
|
|
19
|
-
import { P as _t } from "./patient-summary-card-
|
|
20
|
-
import { S as ne } from "./section-card-
|
|
19
|
+
import { P as _t } from "./patient-summary-card-CGHz-Bvm.js";
|
|
20
|
+
import { S as ne } from "./section-card-DFr2wGal.js";
|
|
21
21
|
import { C as nn, S as ue } from "./skeleton-tTWJpvAq.js";
|
|
22
22
|
import { T as an } from "./text-area-COMVJ1yE.js";
|
|
23
23
|
import { T as sn } from "./tooltip-uEBdD1-5.js";
|
|
@@ -26,7 +26,7 @@ import { a as Nt } from "./whatsapp-button-DV9JFmtq.js";
|
|
|
26
26
|
import { a as Ft, W as on } from "./workflow-status-9wb7iWUd.js";
|
|
27
27
|
import { u as ot, a as At, i as rn } from "./appointment-workflow-status-DMjuIK90.js";
|
|
28
28
|
import { E as dn } from "./empty-state-DwJ5YNzz.js";
|
|
29
|
-
import { T as Ae } from "./timeline-
|
|
29
|
+
import { T as Ae } from "./timeline-AMqE-c2T.js";
|
|
30
30
|
import { C as rt } from "./calendar-clock-hbObjfGY.js";
|
|
31
31
|
import { T as $t } from "./trash-2-uumy3fy1.js";
|
|
32
32
|
import { A as Ve } from "./entity-card-fpm-KUKc.js";
|
|
@@ -2195,4 +2195,4 @@ export {
|
|
|
2195
2195
|
Kn as s,
|
|
2196
2196
|
_s as u
|
|
2197
2197
|
};
|
|
2198
|
-
//# sourceMappingURL=use-appointment-details-read-
|
|
2198
|
+
//# sourceMappingURL=use-appointment-details-read-BK_Gw1GG.js.map
|