@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.
@@ -0,0 +1,3 @@
1
+ export { PaymentAutomationUpsell } from './payment-automation-upsell';
2
+ export type { PaymentAutomationUpsellProps, PaymentAutomationUpsellLabels, PaymentAutomationUpsellRole, PaymentAutomationUpsellStep, PaymentAutomationUpsellFeature, PaymentAutomationUpsellMetric, PaymentAutomationUpsellPreviewRow, PaymentAutomationUpsellRequestStatus, } from './payment-automation-upsell';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,93 @@
1
+ import { type HTMLAttributes, type ReactNode } from 'react';
2
+ /** Who is viewing the surface — drives which CTA is shown. */
3
+ export type PaymentAutomationUpsellRole = 'owner' | 'member';
4
+ /** Status of a mock payment request in the preview. */
5
+ export type PaymentAutomationUpsellRequestStatus = 'paid' | 'authorized' | 'pending' | 'overdue';
6
+ export interface PaymentAutomationUpsellStep {
7
+ id: string;
8
+ /** Pre-translated step title. */
9
+ title: string;
10
+ /** Pre-translated step body. */
11
+ description: string;
12
+ /** Optional icon override; a sensible default is chosen per position. */
13
+ icon?: ReactNode;
14
+ }
15
+ export interface PaymentAutomationUpsellFeature {
16
+ id: string;
17
+ /** Pre-translated single line of the "what's included" checklist. */
18
+ label: string;
19
+ }
20
+ export interface PaymentAutomationUpsellMetric {
21
+ id: string;
22
+ /** Headline value, already formatted/localised, e.g. "3×" or "−75%". */
23
+ value: string;
24
+ /** Pre-translated caption under the value. */
25
+ label: string;
26
+ }
27
+ export interface PaymentAutomationUpsellPreviewRow {
28
+ id: string;
29
+ /** Pre-translated row title, e.g. "Richiesta RDP-2026-0042". */
30
+ title: string;
31
+ /** Optional pre-translated secondary line (plan / date). Never real PHI. */
32
+ meta?: string;
33
+ /** Amount in minor units (cents); formatted with `locale` + `currency`. */
34
+ amountCents: number;
35
+ /** Drives the status badge colour + icon. */
36
+ status: PaymentAutomationUpsellRequestStatus;
37
+ /** Pre-translated status label shown in the badge. */
38
+ statusLabel: string;
39
+ }
40
+ export interface PaymentAutomationUpsellLabels {
41
+ /** Small eyebrow above the headline — usually the module name. */
42
+ eyebrow?: string;
43
+ /** Serif display headline. */
44
+ title: string;
45
+ /** One- or two-sentence supporting subtitle. */
46
+ subtitle: string;
47
+ /** Heading for the "how it works" step column. */
48
+ howItWorksHeading: string;
49
+ /** Heading for the mock preview. */
50
+ previewHeading: string;
51
+ /** Optional small caption flagging the preview as illustrative. */
52
+ previewCaption?: string;
53
+ /** Title of the right-hand call-to-action card. */
54
+ ctaCardTitle: string;
55
+ /** Optional pitch line under the CTA card title. */
56
+ ctaCardSubtitle?: string;
57
+ /** Optional heading above the feature checklist. */
58
+ featuresHeading?: string;
59
+ /** Optional price / plan note, e.g. "Incluso nel piano Premium". */
60
+ priceNote?: string;
61
+ /** Owner primary CTA label. */
62
+ activateLabel: string;
63
+ /** Member: notice title explaining they cannot self-activate. */
64
+ memberNoticeTitle?: string;
65
+ /** Member: notice body. */
66
+ memberNoticeDescription?: string;
67
+ /** Member CTA label. */
68
+ notifyAdminLabel?: string;
69
+ }
70
+ export interface PaymentAutomationUpsellProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {
71
+ /** Who is viewing. Owners can self-activate; members ask an admin. Default `owner`. */
72
+ role?: PaymentAutomationUpsellRole;
73
+ /** All user-visible copy — pre-translated by the host app. */
74
+ labels: PaymentAutomationUpsellLabels;
75
+ /** "How it works" steps, rendered as numbered BenefitCards. */
76
+ steps: PaymentAutomationUpsellStep[];
77
+ /** "What's included" checklist. */
78
+ features: PaymentAutomationUpsellFeature[];
79
+ /** Optional proof metrics shown in the CTA card. */
80
+ metrics?: PaymentAutomationUpsellMetric[];
81
+ /** Mock payment-request rows for the preview. */
82
+ previewRows: PaymentAutomationUpsellPreviewRow[];
83
+ /** BCP-47 locale used for currency formatting. Default `it-IT`. */
84
+ locale?: string;
85
+ /** ISO-4217 currency for the preview amounts. Default `EUR`. */
86
+ currency?: string;
87
+ /** Owner CTA handler — host navigates to the activation / upgrade flow. */
88
+ onActivate?: () => void;
89
+ /** Member CTA handler — host notifies the practice owner / admin. */
90
+ onNotifyAdmin?: () => void;
91
+ }
92
+ export declare const PaymentAutomationUpsell: import("react").ForwardRefExoticComponent<PaymentAutomationUpsellProps & import("react").RefAttributes<HTMLElement>>;
93
+ //# sourceMappingURL=payment-automation-upsell.d.ts.map