@alfadocs/ui-kit 0.81.0 → 0.82.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/{payment-request-card-C0fqlKqO.js → payment-request-card-d-RmzsUd.js} +15 -13
- package/dist/agent-catalog.json +83 -1
- package/dist/agent-i18n/en.json +7 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/payment-card/index.js +1 -1
- package/dist/index.js +1270 -963
- package/dist/patterns/payment-automation-upsell/index.d.ts +3 -0
- package/dist/patterns/payment-automation-upsell/payment-automation-upsell.d.ts +93 -0
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { forwardRef as $, useId as H, useMemo as I } from "react";
|
|
|
3
3
|
import { c as B } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as G } from "react-i18next";
|
|
5
5
|
import { B as K } from "./badge-DCOqV9mI.js";
|
|
6
|
-
import { C as
|
|
6
|
+
import { C as k } from "./card-DPmk26CL.js";
|
|
7
7
|
import { D as d } from "./description-list-ClNLdRMy.js";
|
|
8
8
|
import { K as O, a as Y } from "./key-value-pair-LHKfDT_9.js";
|
|
9
9
|
import { T as j, A as te } from "./transaction-chip-DJCstquX.js";
|
|
@@ -100,7 +100,7 @@ const ue = [
|
|
|
100
100
|
},
|
|
101
101
|
defaultVariants: { surface: "elevated" }
|
|
102
102
|
});
|
|
103
|
-
function
|
|
103
|
+
function R(a, l, r) {
|
|
104
104
|
try {
|
|
105
105
|
return new Intl.NumberFormat(r, {
|
|
106
106
|
style: "currency",
|
|
@@ -200,13 +200,13 @@ const xe = $(
|
|
|
200
200
|
value: i.operatorName
|
|
201
201
|
});
|
|
202
202
|
const U = I(
|
|
203
|
-
() => n != null ?
|
|
203
|
+
() => n != null ? R(n, u, o) : void 0,
|
|
204
204
|
[n, u, o]
|
|
205
205
|
), _ = I(
|
|
206
|
-
() => h != null ?
|
|
206
|
+
() => h != null ? R(h, u, o) : void 0,
|
|
207
207
|
[h, u, o]
|
|
208
208
|
), V = I(
|
|
209
|
-
() => m != null ?
|
|
209
|
+
() => m != null ? R(m, u, o) : void 0,
|
|
210
210
|
[m, u, o]
|
|
211
211
|
), 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
212
|
/* @__PURE__ */ c("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-md)] ds:flex-wrap", children: [
|
|
@@ -274,7 +274,7 @@ const xe = $(
|
|
|
274
274
|
vat: s.vatPercentage,
|
|
275
275
|
defaultValue: "{{description}} (VAT {{vat}}%)"
|
|
276
276
|
}) : s.description }),
|
|
277
|
-
/* @__PURE__ */ e(d.Detail, { numeric: !0, children:
|
|
277
|
+
/* @__PURE__ */ e(d.Detail, { numeric: !0, children: R(s.amountCents, u, o) })
|
|
278
278
|
] }, `${s.description}-${ae}`))
|
|
279
279
|
}
|
|
280
280
|
)
|
|
@@ -297,7 +297,7 @@ const xe = $(
|
|
|
297
297
|
id: a,
|
|
298
298
|
className: ge({ surface: x, className: f }),
|
|
299
299
|
...S,
|
|
300
|
-
children: x === "elevated" ? /* @__PURE__ */ e(
|
|
300
|
+
children: x === "elevated" ? /* @__PURE__ */ e(k, { variant: "elevated", children: /* @__PURE__ */ e(k.Body, { children: F }) }) : /* @__PURE__ */ e("div", { className: X({ surface: "flat" }), children: F })
|
|
301
301
|
}
|
|
302
302
|
);
|
|
303
303
|
}
|
|
@@ -341,7 +341,7 @@ const Pe = {
|
|
|
341
341
|
paid: "Paid",
|
|
342
342
|
failed: "Failed",
|
|
343
343
|
cancelled: "Cancelled"
|
|
344
|
-
},
|
|
344
|
+
}, Re = B("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
345
345
|
variants: {
|
|
346
346
|
surface: {
|
|
347
347
|
flat: "",
|
|
@@ -350,7 +350,7 @@ const Pe = {
|
|
|
350
350
|
},
|
|
351
351
|
defaultVariants: { surface: "elevated" }
|
|
352
352
|
});
|
|
353
|
-
function
|
|
353
|
+
function ke(a, l) {
|
|
354
354
|
const r = new Date(a);
|
|
355
355
|
if (Number.isNaN(r.getTime())) return a;
|
|
356
356
|
try {
|
|
@@ -398,7 +398,7 @@ const De = $(
|
|
|
398
398
|
key: "dueDate",
|
|
399
399
|
icon: /* @__PURE__ */ e(se, { "aria-hidden": "true" }),
|
|
400
400
|
label: f("paymentRequestCard.label.dueDate", "Due date"),
|
|
401
|
-
value:
|
|
401
|
+
value: ke(v, t)
|
|
402
402
|
}), m && g.push({
|
|
403
403
|
key: "carePlan",
|
|
404
404
|
icon: /* @__PURE__ */ e(Q, { "aria-hidden": "true" }),
|
|
@@ -451,18 +451,20 @@ const De = $(
|
|
|
451
451
|
"data-component-id": a,
|
|
452
452
|
"data-status": n,
|
|
453
453
|
id: a,
|
|
454
|
-
className:
|
|
454
|
+
className: Re({ surface: b, className: u }),
|
|
455
455
|
...x,
|
|
456
|
-
children: b === "elevated" ? /* @__PURE__ */ e(
|
|
456
|
+
children: b === "elevated" ? /* @__PURE__ */ e(k, { variant: "elevated", children: /* @__PURE__ */ e(k.Body, { children: T }) }) : /* @__PURE__ */ e("div", { className: X({ surface: "flat" }), children: T })
|
|
457
457
|
}
|
|
458
458
|
);
|
|
459
459
|
}
|
|
460
460
|
);
|
|
461
461
|
De.displayName = "PaymentRequestCard";
|
|
462
462
|
export {
|
|
463
|
+
M as C,
|
|
463
464
|
xe as P,
|
|
465
|
+
pe as R,
|
|
464
466
|
De as a,
|
|
465
467
|
Pe as b,
|
|
466
468
|
he as p
|
|
467
469
|
};
|
|
468
|
-
//# sourceMappingURL=payment-request-card-
|
|
470
|
+
//# sourceMappingURL=payment-request-card-d-RmzsUd.js.map
|
package/dist/agent-catalog.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"packageVersion": "0.
|
|
3
|
+
"packageVersion": "0.82.0",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"kind": "component",
|
|
@@ -15223,6 +15223,88 @@
|
|
|
15223
15223
|
}
|
|
15224
15224
|
]
|
|
15225
15225
|
},
|
|
15226
|
+
{
|
|
15227
|
+
"kind": "pattern",
|
|
15228
|
+
"id": "payment-automation-upsell",
|
|
15229
|
+
"composes": [
|
|
15230
|
+
{
|
|
15231
|
+
"component": "card",
|
|
15232
|
+
"as": "heroCard"
|
|
15233
|
+
},
|
|
15234
|
+
{
|
|
15235
|
+
"component": "benefit-card",
|
|
15236
|
+
"as": "howItWorks",
|
|
15237
|
+
"entity": "step"
|
|
15238
|
+
},
|
|
15239
|
+
{
|
|
15240
|
+
"component": "card",
|
|
15241
|
+
"as": "previewCard"
|
|
15242
|
+
},
|
|
15243
|
+
{
|
|
15244
|
+
"component": "list",
|
|
15245
|
+
"as": "previewList",
|
|
15246
|
+
"entity": "paymentRequest"
|
|
15247
|
+
},
|
|
15248
|
+
{
|
|
15249
|
+
"component": "badge",
|
|
15250
|
+
"as": "requestStatus"
|
|
15251
|
+
},
|
|
15252
|
+
{
|
|
15253
|
+
"component": "stat",
|
|
15254
|
+
"as": "proofMetric",
|
|
15255
|
+
"entity": "metric"
|
|
15256
|
+
},
|
|
15257
|
+
{
|
|
15258
|
+
"component": "card",
|
|
15259
|
+
"as": "featuresCard"
|
|
15260
|
+
},
|
|
15261
|
+
{
|
|
15262
|
+
"component": "list",
|
|
15263
|
+
"as": "featureList",
|
|
15264
|
+
"entity": "feature"
|
|
15265
|
+
},
|
|
15266
|
+
{
|
|
15267
|
+
"component": "button",
|
|
15268
|
+
"as": "activate"
|
|
15269
|
+
},
|
|
15270
|
+
{
|
|
15271
|
+
"component": "button",
|
|
15272
|
+
"as": "notifyAdmin"
|
|
15273
|
+
}
|
|
15274
|
+
],
|
|
15275
|
+
"workflows": [
|
|
15276
|
+
{
|
|
15277
|
+
"name": "view_upsell",
|
|
15278
|
+
"safety": "read",
|
|
15279
|
+
"description": "Read the Payment Automation value preview: the how-it-works steps, the sample payment-request list, and the included-features checklist.",
|
|
15280
|
+
"descriptionKey": "ui.agent.paymentAutomationUpsell.workflows.viewUpsell",
|
|
15281
|
+
"uiActions": [],
|
|
15282
|
+
"apiActions": [
|
|
15283
|
+
"paymentAutomation.getModuleStatus"
|
|
15284
|
+
]
|
|
15285
|
+
},
|
|
15286
|
+
{
|
|
15287
|
+
"name": "activate_module",
|
|
15288
|
+
"safety": "write",
|
|
15289
|
+
"description": "As the practice owner, activate the Payment Automation module on the subscription. Persists a billing change.",
|
|
15290
|
+
"descriptionKey": "ui.agent.paymentAutomationUpsell.workflows.activateModule",
|
|
15291
|
+
"uiActions": [],
|
|
15292
|
+
"apiActions": [
|
|
15293
|
+
"subscription.enableModule"
|
|
15294
|
+
]
|
|
15295
|
+
},
|
|
15296
|
+
{
|
|
15297
|
+
"name": "notify_admin",
|
|
15298
|
+
"safety": "write",
|
|
15299
|
+
"description": "As a non-owner member, notify the practice owner / admin to activate the Payment Automation module.",
|
|
15300
|
+
"descriptionKey": "ui.agent.paymentAutomationUpsell.workflows.notifyAdmin",
|
|
15301
|
+
"uiActions": [],
|
|
15302
|
+
"apiActions": [
|
|
15303
|
+
"notification.notifyOwner"
|
|
15304
|
+
]
|
|
15305
|
+
}
|
|
15306
|
+
]
|
|
15307
|
+
},
|
|
15226
15308
|
{
|
|
15227
15309
|
"kind": "pattern",
|
|
15228
15310
|
"id": "practice-profile-hero",
|
package/dist/agent-i18n/en.json
CHANGED
|
@@ -1497,6 +1497,13 @@
|
|
|
1497
1497
|
"exportRoster": "Export the current (optionally filtered) patient roster from the page-header table-tools cluster — CSV / Excel / PDF."
|
|
1498
1498
|
}
|
|
1499
1499
|
},
|
|
1500
|
+
"paymentAutomationUpsell": {
|
|
1501
|
+
"workflows": {
|
|
1502
|
+
"viewUpsell": "Read the Payment Automation value preview: the how-it-works steps, the sample payment-request list, and the included-features checklist.",
|
|
1503
|
+
"activateModule": "As the practice owner, activate the Payment Automation module on the subscription. Persists a billing change.",
|
|
1504
|
+
"notifyAdmin": "As a non-owner member, notify the practice owner / admin to activate the Payment Automation module."
|
|
1505
|
+
}
|
|
1506
|
+
},
|
|
1500
1507
|
"practiceProfileHero": {
|
|
1501
1508
|
"workflows": {
|
|
1502
1509
|
"viewProfile": "Read the practice's public profile summary — name, tagline, average rating, review count, and trust badges."
|
|
@@ -198,6 +198,7 @@ export * from './whatsapp-button';
|
|
|
198
198
|
export * from './workflow';
|
|
199
199
|
export * from '../patterns/alia-assistant';
|
|
200
200
|
export * from '../patterns/marketplace-app-shell';
|
|
201
|
+
export * from '../patterns/payment-automation-upsell';
|
|
201
202
|
export * from '../patterns/signature-request';
|
|
202
203
|
export * from './dependent-selector';
|
|
203
204
|
export * from './document-preview';
|