@alfadocs/ui-kit 0.84.1 → 0.86.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/{ai-consent-banner-DUhr1yNj.js → ai-consent-banner-BXD7W6FI.js} +2 -2
- package/dist/_chunks/{alert-KJbsPYkI.js → alert-Cxaqd-QO.js} +12 -12
- package/dist/_chunks/{audio-recorder-Cc3KuL9y.js → audio-recorder-BjnB7V8n.js} +2 -2
- package/dist/_chunks/{booking-CLmeXtGv.js → booking-BvCu2XWY.js} +2 -2
- package/dist/_chunks/{document-preview-nwfulDEs.js → document-preview-DXl9migE.js} +2 -2
- package/dist/_chunks/{document-scanner-B6h1Ir56.js → document-scanner-cS_ispQs.js} +3 -3
- package/dist/_chunks/{entity-summary--vP698Jn.js → entity-summary-BILN4wEG.js} +2 -2
- package/dist/_chunks/{field-value-DHG6gEKS.js → field-value-BRVbZJej.js} +133 -144
- package/dist/_chunks/{file-manager-DLJlinIO.js → file-manager-B9LZzT5E.js} +129 -129
- package/dist/_chunks/{file-upload-DENvuhfs.js → file-upload-CwxdqkMK.js} +134 -146
- package/dist/_chunks/{freemium-paywall-CmV642PA.js → freemium-paywall-Dr2342_S.js} +2 -2
- package/dist/_chunks/info-tip-Bxk3w6UM.js +166 -0
- package/dist/_chunks/{marketplace-app-shell-Br2yebEK.js → marketplace-app-shell-Chcj4q4z.js} +2 -2
- package/dist/_chunks/message-square-Bye4ATvx.js +20 -0
- package/dist/_chunks/{notes-panel-Cvdp818a.js → notes-panel-BLjlYBt-.js} +2 -2
- package/dist/_chunks/{patient-details-COvYWp2e.js → patient-details-B9LCdyWW.js} +2 -2
- package/dist/_chunks/{patient-search-BaUJ_Y-N.js → patient-search-vtRTSdf6.js} +2 -2
- package/dist/_chunks/{patient-summary-card-D6kgdTNn.js → patient-summary-card-vn1H4xWj.js} +2 -2
- package/dist/_chunks/{patient-table-BHzmUbzu.js → patient-table-B6AKMTm3.js} +182 -196
- package/dist/_chunks/{payment-form-DL9xk9BA.js → payment-form-BoGxEmGn.js} +2 -2
- package/dist/_chunks/{payment-request-card-d-RmzsUd.js → payment-request-card-CygO1anM.js} +72 -70
- package/dist/_chunks/{pdf-viewer-DF3VMaPo.js → pdf-viewer-CcOuR2wj.js} +2 -2
- package/dist/_chunks/{practice-results-BCr7jMt1.js → practice-results-yKbwIxqa.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-CxF9pVxd.js → radiograph-panel.agent-M9XD4ze4.js} +2 -2
- package/dist/_chunks/{rich-text-editor-CCWjNkbx.js → rich-text-editor-RRkBN_WB.js} +2 -2
- package/dist/_chunks/{session-countdown-C8AsE072.js → session-countdown-Bc70VXN1.js} +58 -48
- package/dist/_chunks/{sign-document-Bfk0WpWV.js → sign-document-DI561d1C.js} +2 -2
- package/dist/_chunks/{signature-request-CEOrCDyk.js → signature-request-D_6jgDZd.js} +60 -77
- package/dist/_chunks/{task-tray-Br3vc0O1.js → task-tray-CLIqIXUZ.js} +58 -70
- package/dist/_chunks/{toast.agent-uV8CeAy6.js → toast.agent-Iw2jWdce.js} +2 -2
- package/dist/_chunks/{warning-stack-BlG_Ujy3.js → warning-stack-CAHQ0xxS.js} +2 -2
- package/dist/_chunks/{workflow-map-C643Q43h.js → workflow-map-SIfAhmWz.js} +2 -2
- package/dist/agent-catalog.json +45 -1
- package/dist/agent-i18n/en.json +9 -0
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/file-manager/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/index.d.ts +1 -0
- package/dist/components/info-tip/index.d.ts +4 -0
- package/dist/components/info-tip/index.js +6 -0
- package/dist/components/info-tip/info-tip.agent.d.ts +4 -0
- package/dist/components/info-tip/info-tip.d.ts +42 -0
- package/dist/components/notes-panel/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-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/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/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +3 -0
- package/dist/i18n/locales/ar.js +3 -0
- package/dist/i18n/locales/de.d.ts +3 -0
- package/dist/i18n/locales/de.js +3 -0
- package/dist/i18n/locales/el.d.ts +3 -0
- package/dist/i18n/locales/el.js +3 -0
- package/dist/i18n/locales/en.d.ts +3 -0
- package/dist/i18n/locales/en.js +3 -0
- package/dist/i18n/locales/es.d.ts +3 -0
- package/dist/i18n/locales/es.js +3 -0
- package/dist/i18n/locales/fr.d.ts +3 -0
- package/dist/i18n/locales/fr.js +3 -0
- package/dist/i18n/locales/hi.d.ts +3 -0
- package/dist/i18n/locales/hi.js +3 -0
- package/dist/i18n/locales/it.d.ts +3 -0
- package/dist/i18n/locales/it.js +3 -0
- package/dist/i18n/locales/ja.d.ts +3 -0
- package/dist/i18n/locales/ja.js +3 -0
- package/dist/i18n/locales/nl.d.ts +3 -0
- package/dist/i18n/locales/nl.js +3 -0
- package/dist/i18n/locales/pl.d.ts +3 -0
- package/dist/i18n/locales/pl.js +3 -0
- package/dist/i18n/locales/pt.d.ts +3 -0
- package/dist/i18n/locales/pt.js +3 -0
- package/dist/i18n/locales/ro.d.ts +3 -0
- package/dist/i18n/locales/ro.js +3 -0
- package/dist/i18n/locales/ru.d.ts +3 -0
- package/dist/i18n/locales/ru.js +3 -0
- package/dist/i18n/locales/sq.d.ts +3 -0
- package/dist/i18n/locales/sq.js +3 -0
- package/dist/i18n/locales/sv.d.ts +3 -0
- package/dist/i18n/locales/sv.js +3 -0
- package/dist/i18n/locales/tr.d.ts +3 -0
- package/dist/i18n/locales/tr.js +3 -0
- package/dist/i18n/locales/zh.d.ts +3 -0
- package/dist/i18n/locales/zh.js +3 -0
- package/dist/index.js +715 -723
- package/dist/locales/ar.json +3 -0
- package/dist/locales/de.json +3 -0
- package/dist/locales/el.json +3 -0
- package/dist/locales/en.json +3 -0
- package/dist/locales/es.json +3 -0
- package/dist/locales/fr.json +3 -0
- package/dist/locales/hi.json +3 -0
- package/dist/locales/it.json +3 -0
- package/dist/locales/ja.json +3 -0
- package/dist/locales/nl.json +3 -0
- package/dist/locales/pl.json +3 -0
- package/dist/locales/pt.json +3 -0
- package/dist/locales/ro.json +3 -0
- package/dist/locales/ru.json +3 -0
- package/dist/locales/sq.json +3 -0
- package/dist/locales/sv.json +3 -0
- package/dist/locales/tr.json +3 -0
- package/dist/locales/zh.json +3 -0
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +9 -3
- package/dist/_chunks/circle-x-W8Enq3i4.js +0 -16
|
@@ -3,7 +3,7 @@ import { forwardRef as de, useState as _, useEffect as D, useRef as K, useMemo a
|
|
|
3
3
|
import { c as A } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as W } from "react-i18next";
|
|
5
5
|
import { S as te } from "./spinner-hbwuKwMf.js";
|
|
6
|
-
import { A as ee } from "./alert-
|
|
6
|
+
import { A as ee } from "./alert-Cxaqd-QO.js";
|
|
7
7
|
import { loadStripe as ue } from "@stripe/stripe-js";
|
|
8
8
|
import { Elements as pe, useStripe as fe, useElements as be, PaymentElement as ye, AddressElement as ge } from "@stripe/react-stripe-js";
|
|
9
9
|
import { u as ve } from "./registry-DvAUVLHh.js";
|
|
@@ -687,4 +687,4 @@ export {
|
|
|
687
687
|
we as p,
|
|
688
688
|
se as s
|
|
689
689
|
};
|
|
690
|
-
//# sourceMappingURL=payment-form-
|
|
690
|
+
//# sourceMappingURL=payment-form-BoGxEmGn.js.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { B as
|
|
2
|
+
import { forwardRef as M, useId as B, useMemo as I } from "react";
|
|
3
|
+
import { c as G } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as K } from "react-i18next";
|
|
5
|
+
import { B as O } from "./badge-DCOqV9mI.js";
|
|
6
6
|
import { C as k } from "./card-DPmk26CL.js";
|
|
7
7
|
import { D as d } from "./description-list-ClNLdRMy.js";
|
|
8
|
-
import { K as
|
|
8
|
+
import { K as Y, a as H } from "./key-value-pair-LHKfDT_9.js";
|
|
9
9
|
import { T as j, A as te } from "./transaction-chip-DJCstquX.js";
|
|
10
10
|
import { u as W } from "./registry-DvAUVLHh.js";
|
|
11
11
|
import { H as re } from "./hash-CSQ9SChR.js";
|
|
12
12
|
import { C as ne } from "./calendar-days-BGWklvE-.js";
|
|
13
13
|
import { c as J } from "./createLucideIcon-DhHxpK9K.js";
|
|
14
14
|
import { F as Q } from "./file-text-5yv6r2ls.js";
|
|
15
|
-
import { U as
|
|
16
|
-
import { U as
|
|
15
|
+
import { U as ie } from "./user-B12p7bVF.js";
|
|
16
|
+
import { U as le } from "./user-cog-BTn98Arm.js";
|
|
17
17
|
import { e as X } from "./entity-card-9_62gY7l.js";
|
|
18
18
|
import { A as de } from "./arrow-up-right-C2v_MKsK.js";
|
|
19
19
|
import { L as oe } from "./link-CPb_pZPr.js";
|
|
@@ -28,7 +28,7 @@ import { i as ce } from "./is-safe-url-DkETxeHz.js";
|
|
|
28
28
|
const me = [
|
|
29
29
|
["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
|
|
30
30
|
["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
|
|
31
|
-
],
|
|
31
|
+
], $ = J("credit-card", me);
|
|
32
32
|
/**
|
|
33
33
|
* @license lucide-react v1.22.0 - ISC
|
|
34
34
|
*
|
|
@@ -36,17 +36,19 @@ const me = [
|
|
|
36
36
|
* See the LICENSE file in the root directory of this source tree.
|
|
37
37
|
*/
|
|
38
38
|
const ue = [
|
|
39
|
-
[
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
[
|
|
40
|
+
"path",
|
|
41
|
+
{ d: "M15.828 14.829a4 4 0 0 1-5.656 0 4 4 0 0 1 0-5.657 4 4 0 0 1 5.656 0", key: "16zdw4" }
|
|
42
|
+
],
|
|
42
43
|
[
|
|
43
44
|
"path",
|
|
44
45
|
{
|
|
45
46
|
d: "M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z",
|
|
46
47
|
key: "ycz6yz"
|
|
47
48
|
}
|
|
48
|
-
]
|
|
49
|
-
|
|
49
|
+
],
|
|
50
|
+
["path", { d: "M8 12h5", key: "1g6qi8" }]
|
|
51
|
+
], pe = J("receipt-euro", ue), he = {
|
|
50
52
|
id: "payment-card",
|
|
51
53
|
capabilities: [],
|
|
52
54
|
state: {
|
|
@@ -91,7 +93,7 @@ const ue = [
|
|
|
91
93
|
}, be = {
|
|
92
94
|
incoming: "Incoming",
|
|
93
95
|
outgoing: "Outgoing"
|
|
94
|
-
}, ge =
|
|
96
|
+
}, ge = G("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
95
97
|
variants: {
|
|
96
98
|
surface: {
|
|
97
99
|
flat: "",
|
|
@@ -100,21 +102,21 @@ const ue = [
|
|
|
100
102
|
},
|
|
101
103
|
defaultVariants: { surface: "elevated" }
|
|
102
104
|
});
|
|
103
|
-
function
|
|
105
|
+
function T(a, i, r) {
|
|
104
106
|
try {
|
|
105
107
|
return new Intl.NumberFormat(r, {
|
|
106
108
|
style: "currency",
|
|
107
|
-
currency:
|
|
109
|
+
currency: i
|
|
108
110
|
}).format(a / 100);
|
|
109
111
|
} catch {
|
|
110
112
|
return (a / 100).toFixed(2);
|
|
111
113
|
}
|
|
112
114
|
}
|
|
113
|
-
function Ce(a,
|
|
115
|
+
function Ce(a, i) {
|
|
114
116
|
const r = new Date(a);
|
|
115
117
|
if (Number.isNaN(r.getTime())) return a;
|
|
116
118
|
try {
|
|
117
|
-
return new Intl.DateTimeFormat(
|
|
119
|
+
return new Intl.DateTimeFormat(i, {
|
|
118
120
|
year: "numeric",
|
|
119
121
|
month: "short",
|
|
120
122
|
day: "numeric"
|
|
@@ -123,13 +125,13 @@ function Ce(a, l) {
|
|
|
123
125
|
return a;
|
|
124
126
|
}
|
|
125
127
|
}
|
|
126
|
-
function Ne(a,
|
|
127
|
-
return p ? "settled" : r != null && r > 0 ? "debt" : a === "proforma" && (
|
|
128
|
+
function Ne(a, i, r, p) {
|
|
129
|
+
return p ? "settled" : r != null && r > 0 ? "debt" : a === "proforma" && (i == null || i === 0) ? "to-invoice" : "settled";
|
|
128
130
|
}
|
|
129
|
-
const xe =
|
|
131
|
+
const xe = M(
|
|
130
132
|
({
|
|
131
133
|
id: a,
|
|
132
|
-
number:
|
|
134
|
+
number: i,
|
|
133
135
|
dateIso: r,
|
|
134
136
|
type: p,
|
|
135
137
|
direction: v,
|
|
@@ -137,37 +139,37 @@ const xe = $(
|
|
|
137
139
|
paidCents: h,
|
|
138
140
|
unpaidCents: m,
|
|
139
141
|
writtenOff: D = !1,
|
|
140
|
-
relations:
|
|
142
|
+
relations: l,
|
|
141
143
|
lineItems: b,
|
|
142
|
-
locale:
|
|
144
|
+
locale: q,
|
|
143
145
|
currency: u = ye,
|
|
144
146
|
surface: x = "elevated",
|
|
145
|
-
"aria-label":
|
|
147
|
+
"aria-label": L,
|
|
146
148
|
className: f,
|
|
147
149
|
...S
|
|
148
150
|
}, P) => {
|
|
149
|
-
const { t, i18n: w } =
|
|
150
|
-
number:
|
|
151
|
+
const { t, i18n: w } = K(), A = B(), o = q ?? w.language ?? "en", z = L ?? t("paymentCard.regionLabel", {
|
|
152
|
+
number: i,
|
|
151
153
|
defaultValue: "Payment {{number}}"
|
|
152
154
|
}), N = Ne(p, h, m, D), E = N === "debt" && m != null ? m : n ?? h ?? m ?? 0;
|
|
153
155
|
W(
|
|
154
156
|
he,
|
|
155
157
|
{
|
|
156
|
-
getNumber: () =>
|
|
158
|
+
getNumber: () => i,
|
|
157
159
|
getState: () => N
|
|
158
160
|
},
|
|
159
161
|
a
|
|
160
162
|
);
|
|
161
163
|
const g = t(`paymentCard.type.${p}`, {
|
|
162
164
|
defaultValue: ve[p]
|
|
163
|
-
}),
|
|
165
|
+
}), R = v === "incoming" ? /* @__PURE__ */ e(te, { "aria-hidden": "true" }) : /* @__PURE__ */ e(de, { "aria-hidden": "true" }), C = t(`paymentCard.direction.${v}`, {
|
|
164
166
|
defaultValue: be[v]
|
|
165
167
|
}), y = [];
|
|
166
168
|
y.push({
|
|
167
169
|
key: "number",
|
|
168
170
|
icon: /* @__PURE__ */ e(re, { "aria-hidden": "true" }),
|
|
169
171
|
label: t("paymentCard.label.number", "Number"),
|
|
170
|
-
value:
|
|
172
|
+
value: i
|
|
171
173
|
}), r && y.push({
|
|
172
174
|
key: "date",
|
|
173
175
|
icon: /* @__PURE__ */ e(ne, { "aria-hidden": "true" }),
|
|
@@ -177,36 +179,36 @@ const xe = $(
|
|
|
177
179
|
key: "type",
|
|
178
180
|
icon: /* @__PURE__ */ e(pe, { "aria-hidden": "true" }),
|
|
179
181
|
label: t("paymentCard.label.type", "Type"),
|
|
180
|
-
value: /* @__PURE__ */ e(
|
|
182
|
+
value: /* @__PURE__ */ e(O, { variant: fe[p], children: g })
|
|
181
183
|
}), y.push({
|
|
182
184
|
key: "direction",
|
|
183
|
-
icon:
|
|
185
|
+
icon: R,
|
|
184
186
|
label: t("paymentCard.label.direction", "Direction"),
|
|
185
187
|
value: C
|
|
186
|
-
}),
|
|
188
|
+
}), l != null && l.carePlanNumber && y.push({
|
|
187
189
|
key: "carePlan",
|
|
188
190
|
icon: /* @__PURE__ */ e(Q, { "aria-hidden": "true" }),
|
|
189
191
|
label: t("paymentCard.label.carePlan", "Care plan"),
|
|
190
|
-
value:
|
|
191
|
-
}),
|
|
192
|
+
value: l.carePlanNumber
|
|
193
|
+
}), l != null && l.patientName && y.push({
|
|
192
194
|
key: "patient",
|
|
193
|
-
icon: /* @__PURE__ */ e(
|
|
195
|
+
icon: /* @__PURE__ */ e(ie, { "aria-hidden": "true" }),
|
|
194
196
|
label: t("paymentCard.label.patient", "Patient"),
|
|
195
|
-
value:
|
|
196
|
-
}),
|
|
197
|
+
value: l.patientName
|
|
198
|
+
}), l != null && l.operatorName && y.push({
|
|
197
199
|
key: "operator",
|
|
198
|
-
icon: /* @__PURE__ */ e(
|
|
200
|
+
icon: /* @__PURE__ */ e(le, { "aria-hidden": "true" }),
|
|
199
201
|
label: t("paymentCard.label.operator", "Operator"),
|
|
200
|
-
value:
|
|
202
|
+
value: l.operatorName
|
|
201
203
|
});
|
|
202
204
|
const U = I(
|
|
203
|
-
() => n != null ?
|
|
205
|
+
() => n != null ? T(n, u, o) : void 0,
|
|
204
206
|
[n, u, o]
|
|
205
207
|
), _ = I(
|
|
206
|
-
() => h != null ?
|
|
208
|
+
() => h != null ? T(h, u, o) : void 0,
|
|
207
209
|
[h, u, o]
|
|
208
210
|
), V = I(
|
|
209
|
-
() => m != null ?
|
|
211
|
+
() => m != null ? T(m, u, o) : void 0,
|
|
210
212
|
[m, u, o]
|
|
211
213
|
), Z = U != null || _ != null || V != null, ee = !!b && b.length > 0, F = /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
212
214
|
/* @__PURE__ */ c("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-md)] ds:flex-wrap", children: [
|
|
@@ -216,7 +218,7 @@ const xe = $(
|
|
|
216
218
|
id: A,
|
|
217
219
|
className: "type-title-card ds:m-0 ds:text-[color:var(--foreground)]",
|
|
218
220
|
children: t("paymentCard.heading", {
|
|
219
|
-
number:
|
|
221
|
+
number: i,
|
|
220
222
|
defaultValue: "Payment {{number}}"
|
|
221
223
|
})
|
|
222
224
|
}
|
|
@@ -232,8 +234,8 @@ const xe = $(
|
|
|
232
234
|
}
|
|
233
235
|
) })
|
|
234
236
|
] }),
|
|
235
|
-
/* @__PURE__ */ e(
|
|
236
|
-
|
|
237
|
+
/* @__PURE__ */ e(Y, { rowGap: "sm", children: y.map((s) => /* @__PURE__ */ e(
|
|
238
|
+
H,
|
|
237
239
|
{
|
|
238
240
|
icon: s.icon,
|
|
239
241
|
label: s.label,
|
|
@@ -274,7 +276,7 @@ const xe = $(
|
|
|
274
276
|
vat: s.vatPercentage,
|
|
275
277
|
defaultValue: "{{description}} (VAT {{vat}}%)"
|
|
276
278
|
}) : s.description }),
|
|
277
|
-
/* @__PURE__ */ e(d.Detail, { numeric: !0, children:
|
|
279
|
+
/* @__PURE__ */ e(d.Detail, { numeric: !0, children: T(s.amountCents, u, o) })
|
|
278
280
|
] }, `${s.description}-${ae}`))
|
|
279
281
|
}
|
|
280
282
|
)
|
|
@@ -334,14 +336,14 @@ const Pe = {
|
|
|
334
336
|
paid: "success",
|
|
335
337
|
failed: "error",
|
|
336
338
|
cancelled: "neutral"
|
|
337
|
-
}, Ae = "EUR",
|
|
339
|
+
}, Ae = "EUR", Re = {
|
|
338
340
|
new: "New",
|
|
339
341
|
authorization_requested: "Authorization requested",
|
|
340
342
|
authorized: "Authorized",
|
|
341
343
|
paid: "Paid",
|
|
342
344
|
failed: "Failed",
|
|
343
345
|
cancelled: "Cancelled"
|
|
344
|
-
},
|
|
346
|
+
}, Te = G("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
345
347
|
variants: {
|
|
346
348
|
surface: {
|
|
347
349
|
flat: "",
|
|
@@ -350,11 +352,11 @@ const Pe = {
|
|
|
350
352
|
},
|
|
351
353
|
defaultVariants: { surface: "elevated" }
|
|
352
354
|
});
|
|
353
|
-
function ke(a,
|
|
355
|
+
function ke(a, i) {
|
|
354
356
|
const r = new Date(a);
|
|
355
357
|
if (Number.isNaN(r.getTime())) return a;
|
|
356
358
|
try {
|
|
357
|
-
return new Intl.DateTimeFormat(
|
|
359
|
+
return new Intl.DateTimeFormat(i, {
|
|
358
360
|
year: "numeric",
|
|
359
361
|
month: "short",
|
|
360
362
|
day: "numeric"
|
|
@@ -363,10 +365,10 @@ function ke(a, l) {
|
|
|
363
365
|
return a;
|
|
364
366
|
}
|
|
365
367
|
}
|
|
366
|
-
const De =
|
|
368
|
+
const De = M(
|
|
367
369
|
({
|
|
368
370
|
id: a,
|
|
369
|
-
title:
|
|
371
|
+
title: i,
|
|
370
372
|
description: r,
|
|
371
373
|
amountCents: p,
|
|
372
374
|
dueDateIso: v,
|
|
@@ -374,26 +376,26 @@ const De = $(
|
|
|
374
376
|
paymentUrl: h,
|
|
375
377
|
carePlanNumber: m,
|
|
376
378
|
locale: D,
|
|
377
|
-
currency:
|
|
379
|
+
currency: l = Ae,
|
|
378
380
|
surface: b = "elevated",
|
|
379
|
-
"aria-label":
|
|
381
|
+
"aria-label": q,
|
|
380
382
|
className: u,
|
|
381
383
|
...x
|
|
382
|
-
},
|
|
383
|
-
const { t: f, i18n: S } =
|
|
384
|
+
}, L) => {
|
|
385
|
+
const { t: f, i18n: S } = K(), P = B(), t = D ?? S.language ?? "en", w = i ?? f("paymentRequestCard.heading", "Payment request"), A = q ?? w;
|
|
384
386
|
W(
|
|
385
387
|
Pe,
|
|
386
388
|
{ getStatus: () => n },
|
|
387
389
|
a
|
|
388
390
|
);
|
|
389
391
|
const o = f(`paymentRequestCard.status.${n}`, {
|
|
390
|
-
defaultValue:
|
|
392
|
+
defaultValue: Re[n]
|
|
391
393
|
}), z = n === "paid" ? "settled" : n === "failed" || n === "cancelled" ? "debt" : "to-invoice", E = (n === "new" || n === "authorization_requested" || n === "authorized") && !!h && ce(h), g = [];
|
|
392
394
|
g.push({
|
|
393
395
|
key: "status",
|
|
394
|
-
icon: /* @__PURE__ */ e(
|
|
396
|
+
icon: /* @__PURE__ */ e($, { "aria-hidden": "true" }),
|
|
395
397
|
label: f("paymentRequestCard.label.status", "Status"),
|
|
396
|
-
value: /* @__PURE__ */ e(
|
|
398
|
+
value: /* @__PURE__ */ e(O, { variant: we[n], children: o })
|
|
397
399
|
}), v && g.push({
|
|
398
400
|
key: "dueDate",
|
|
399
401
|
icon: /* @__PURE__ */ e(se, { "aria-hidden": "true" }),
|
|
@@ -405,7 +407,7 @@ const De = $(
|
|
|
405
407
|
label: f("paymentRequestCard.label.carePlan", "Care plan"),
|
|
406
408
|
value: m
|
|
407
409
|
});
|
|
408
|
-
const
|
|
410
|
+
const R = /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
409
411
|
/* @__PURE__ */ c("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-md)] ds:flex-wrap", children: [
|
|
410
412
|
/* @__PURE__ */ c("div", { className: "ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
411
413
|
/* @__PURE__ */ e(
|
|
@@ -423,14 +425,14 @@ const De = $(
|
|
|
423
425
|
{
|
|
424
426
|
state: z,
|
|
425
427
|
amount: p / 100,
|
|
426
|
-
currency:
|
|
428
|
+
currency: l,
|
|
427
429
|
locale: t,
|
|
428
430
|
size: "lg"
|
|
429
431
|
}
|
|
430
432
|
) })
|
|
431
433
|
] }),
|
|
432
|
-
/* @__PURE__ */ e(
|
|
433
|
-
|
|
434
|
+
/* @__PURE__ */ e(Y, { rowGap: "sm", children: g.map((C) => /* @__PURE__ */ e(
|
|
435
|
+
H,
|
|
434
436
|
{
|
|
435
437
|
icon: C.icon,
|
|
436
438
|
label: C.label,
|
|
@@ -438,12 +440,12 @@ const De = $(
|
|
|
438
440
|
},
|
|
439
441
|
C.key
|
|
440
442
|
)) }),
|
|
441
|
-
E ? /* @__PURE__ */ e("div", { className: "ds:flex", children: /* @__PURE__ */ e(oe, { href: h, external: !0, startIcon: /* @__PURE__ */ e(
|
|
443
|
+
E ? /* @__PURE__ */ e("div", { className: "ds:flex", children: /* @__PURE__ */ e(oe, { href: h, external: !0, startIcon: /* @__PURE__ */ e($, {}), children: f("paymentRequestCard.pay", "Pay now") }) }) : null
|
|
442
444
|
] });
|
|
443
445
|
return /* @__PURE__ */ e(
|
|
444
446
|
"div",
|
|
445
447
|
{
|
|
446
|
-
ref:
|
|
448
|
+
ref: L,
|
|
447
449
|
role: "region",
|
|
448
450
|
"aria-label": A,
|
|
449
451
|
"aria-labelledby": P,
|
|
@@ -451,20 +453,20 @@ const De = $(
|
|
|
451
453
|
"data-component-id": a,
|
|
452
454
|
"data-status": n,
|
|
453
455
|
id: a,
|
|
454
|
-
className:
|
|
456
|
+
className: Te({ surface: b, className: u }),
|
|
455
457
|
...x,
|
|
456
|
-
children: b === "elevated" ? /* @__PURE__ */ e(k, { variant: "elevated", children: /* @__PURE__ */ e(k.Body, { children:
|
|
458
|
+
children: b === "elevated" ? /* @__PURE__ */ e(k, { variant: "elevated", children: /* @__PURE__ */ e(k.Body, { children: R }) }) : /* @__PURE__ */ e("div", { className: X({ surface: "flat" }), children: R })
|
|
457
459
|
}
|
|
458
460
|
);
|
|
459
461
|
}
|
|
460
462
|
);
|
|
461
463
|
De.displayName = "PaymentRequestCard";
|
|
462
464
|
export {
|
|
463
|
-
|
|
465
|
+
$ as C,
|
|
464
466
|
xe as P,
|
|
465
467
|
pe as R,
|
|
466
468
|
De as a,
|
|
467
469
|
Pe as b,
|
|
468
470
|
he as p
|
|
469
471
|
};
|
|
470
|
-
//# sourceMappingURL=payment-request-card-
|
|
472
|
+
//# sourceMappingURL=payment-request-card-CygO1anM.js.map
|
|
@@ -6,7 +6,7 @@ import { useTranslation as me } from "react-i18next";
|
|
|
6
6
|
import * as re from "@radix-ui/react-popover";
|
|
7
7
|
import De from "pdfjs-dist/legacy/build/pdf.worker.min.mjs?url";
|
|
8
8
|
import { S as _e } from "./spinner-hbwuKwMf.js";
|
|
9
|
-
import { A as ke } from "./alert-
|
|
9
|
+
import { A as ke } from "./alert-Cxaqd-QO.js";
|
|
10
10
|
import { u as qe } from "./registry-DvAUVLHh.js";
|
|
11
11
|
import { X as Be } from "./x-B5YnXwCz.js";
|
|
12
12
|
import { C as He } from "./chevron-left-B8cOyH-V.js";
|
|
@@ -1002,4 +1002,4 @@ export {
|
|
|
1002
1002
|
nt as P,
|
|
1003
1003
|
$e as p
|
|
1004
1004
|
};
|
|
1005
|
-
//# sourceMappingURL=pdf-viewer-
|
|
1005
|
+
//# sourceMappingURL=pdf-viewer-CcOuR2wj.js.map
|
|
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as m, Fragment as Ge } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as Ze, useState as pe, useRef as _, useMemo as D, useImperativeHandle as Qe, useCallback as K, useEffect as J } from "react";
|
|
3
3
|
import { c as Z } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as C } from "react-i18next";
|
|
5
|
-
import { A as Y } from "./alert-
|
|
5
|
+
import { A as Y } from "./alert-Cxaqd-QO.js";
|
|
6
6
|
import { A as ke } from "./avatar-BNQNhoyL.js";
|
|
7
7
|
import { B as G } from "./button-CPGiR_bH.js";
|
|
8
8
|
import { D as $ } from "./dropdown-menu-DU-Hrf33.js";
|
|
@@ -1606,4 +1606,4 @@ export {
|
|
|
1606
1606
|
Ct as P,
|
|
1607
1607
|
rt as p
|
|
1608
1608
|
};
|
|
1609
|
-
//# sourceMappingURL=practice-results-
|
|
1609
|
+
//# sourceMappingURL=practice-results-yKbwIxqa.js.map
|
package/dist/_chunks/{radiograph-panel.agent-CxF9pVxd.js → radiograph-panel.agent-M9XD4ze4.js}
RENAMED
|
@@ -7,7 +7,7 @@ import { I as v } from "./icon-button-C_kbcd7I.js";
|
|
|
7
7
|
import { B as L } from "./badge-DCOqV9mI.js";
|
|
8
8
|
import { F as V } from "./form-field-M5UpX65Z.js";
|
|
9
9
|
import { T as oe } from "./text-area-Bt3p7Pt0.js";
|
|
10
|
-
import { F as de } from "./file-upload-
|
|
10
|
+
import { F as de } from "./file-upload-CwxdqkMK.js";
|
|
11
11
|
import { D as te } from "./date-picker-DzQS8mvt.js";
|
|
12
12
|
import { D as le } from "./date-range-picker-Cbz1SKhm.js";
|
|
13
13
|
import { E } from "./empty-state-CrLsi0XI.js";
|
|
@@ -533,4 +533,4 @@ export {
|
|
|
533
533
|
qe as R,
|
|
534
534
|
Ae as r
|
|
535
535
|
};
|
|
536
|
-
//# sourceMappingURL=radiograph-panel.agent-
|
|
536
|
+
//# sourceMappingURL=radiograph-panel.agent-M9XD4ze4.js.map
|
|
@@ -22,7 +22,7 @@ import { D as B } from "./dialog-UbKJCi1X.js";
|
|
|
22
22
|
import { C as We } from "./color-picker-D-tUwxxT.js";
|
|
23
23
|
import { T as Ie } from "./text-input-CUvCb6ST.js";
|
|
24
24
|
import { C as Xt } from "./checkbox-BuZ1u__2.js";
|
|
25
|
-
import { F as Ut } from "./file-upload-
|
|
25
|
+
import { F as Ut } from "./file-upload-CwxdqkMK.js";
|
|
26
26
|
import { c as T } from "./createLucideIcon-DhHxpK9K.js";
|
|
27
27
|
import { E as Qt } from "./ellipsis-dRo9ouSU.js";
|
|
28
28
|
import { H as Zt } from "./highlighter-DSkckT2Q.js";
|
|
@@ -2618,4 +2618,4 @@ export {
|
|
|
2618
2618
|
hn as r,
|
|
2619
2619
|
Qn as w
|
|
2620
2620
|
};
|
|
2621
|
-
//# sourceMappingURL=rich-text-editor-
|
|
2621
|
+
//# sourceMappingURL=rich-text-editor-RRkBN_WB.js.map
|