@metrifox/react-sdk 0.0.20-beta.3 → 0.0.20-beta.4

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/index.d.ts CHANGED
@@ -1,20 +1,34 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ComponentType } from 'react';
3
3
 
4
+ /** Plans block: same shape as customer portal theme.plans. */
5
+ interface PricingTablePlansTheme {
6
+ currentPlanCard?: CurrentSubscriptionCard;
7
+ planCards?: CardTheme;
8
+ planFeatures?: FeatureListTheme;
9
+ planButton?: PlanButtonTheme;
10
+ planToggle?: IntervalToggleTheme;
11
+ planTags?: PlanTagsTheme;
12
+ }
13
+ /** Same order and shape as customer portal for consistency. Supports both plans: {} and top-level keys. */
4
14
  interface PricingTableTheme {
5
- card?: CardTheme;
6
- button?: ButtonTheme;
7
- featureList?: FeatureListTheme;
8
- tabs?: TabsTheme;
9
- intervalToggle?: IntervalToggleTheme;
15
+ plans?: PricingTablePlansTheme;
10
16
  currentPlanCard?: CurrentSubscriptionCard;
11
- freeTrialTag?: FreeTrialTheme;
17
+ planCards?: CardTheme;
18
+ planFeatures?: FeatureListTheme;
19
+ planButton?: PlanButtonTheme;
20
+ planToggle?: IntervalToggleTheme;
21
+ planTags?: PlanTagsTheme;
22
+ tabs?: TabsTheme;
12
23
  checkoutBar?: CheckoutBarTheme;
13
24
  }
14
25
  interface CardTheme {
15
26
  background?: string;
16
- borderColor?: string;
17
- descriptionColor?: string;
27
+ border?: {
28
+ color?: string;
29
+ width?: string;
30
+ radius?: string;
31
+ };
18
32
  header?: CardHeaderTheme;
19
33
  description?: CardDescriptionTheme;
20
34
  price?: CardPriceTheme;
@@ -35,7 +49,8 @@ interface CardPriceTheme {
35
49
  background?: string;
36
50
  borderColor?: string;
37
51
  }
38
- interface ButtonTheme {
52
+ /** Matches customer portal plans.planButton; optional extras for standalone pricing table. */
53
+ interface PlanButtonTheme {
39
54
  background?: string;
40
55
  textColor?: string;
41
56
  secondaryBackground?: string;
@@ -61,10 +76,13 @@ interface IntervalToggleTheme {
61
76
  interface CurrentSubscriptionCard {
62
77
  header: CardHeaderTheme;
63
78
  gradientColor?: string;
79
+ description?: CardDescriptionTheme;
80
+ borderRadius?: string;
64
81
  }
65
- interface FreeTrialTheme {
66
- background?: string;
67
- textColor?: string;
82
+ /** Matches customer portal plans.planTags. */
83
+ interface PlanTagsTheme {
84
+ freeTrialBackground?: string;
85
+ freeTrialText?: string;
68
86
  }
69
87
  interface CheckoutBarTheme {
70
88
  background?: string;
@@ -100,11 +118,26 @@ type CustomerPortalTheme = {
100
118
  borderColor?: string;
101
119
  borderRadius?: string;
102
120
  };
103
- summary?: {
121
+ summaryBalance?: {
104
122
  background?: string;
105
123
  padding?: string;
106
124
  borderColor?: string;
107
125
  borderRadius?: string;
126
+ label?: {
127
+ fontSize?: string;
128
+ fontWeight?: string;
129
+ color?: string;
130
+ };
131
+ value?: {
132
+ fontSize?: string;
133
+ fontWeight?: string;
134
+ color?: string;
135
+ };
136
+ unit?: {
137
+ fontSize?: string;
138
+ fontWeight?: string;
139
+ color?: string;
140
+ };
108
141
  };
109
142
  header?: {
110
143
  fontSize?: string;
@@ -304,11 +337,19 @@ type CustomerPortalTheme = {
304
337
  textColor?: string;
305
338
  };
306
339
  gradientColor?: string;
340
+ description?: {
341
+ textColor?: string;
342
+ textButtonColor?: string;
343
+ };
344
+ borderRadius?: string;
307
345
  };
308
346
  planCards?: {
309
347
  background?: string;
310
- borderColor?: string;
311
- descriptionColor?: string;
348
+ border?: {
349
+ color?: string;
350
+ width?: string;
351
+ radius?: string;
352
+ };
312
353
  header?: {
313
354
  background?: string;
314
355
  textColor?: string;
@@ -734,12 +775,15 @@ declare const PriceCard: ({ plan, interval, featureOrderMap, isPricePage, isCust
734
775
  buttonAction?: () => void;
735
776
  }) => react_jsx_runtime.JSX.Element | null;
736
777
 
737
- declare const PricingTable: ({ checkoutUsername, productKey, plansOnly, singlePurchasesOnly, showTabHeader, }: {
778
+ declare const PricingTable: ({ checkoutUsername, productKey, plansOnly, singlePurchasesOnly, showTabHeader, theme: themeOverride, currentPlanOfferingKey, }: {
738
779
  checkoutUsername: string;
739
780
  productKey: string;
740
781
  plansOnly?: boolean;
741
782
  singlePurchasesOnly?: boolean;
742
783
  showTabHeader?: boolean;
784
+ theme?: PricingTableTheme;
785
+ /** When set, the plan with this offering_key is rendered as the current plan (shows currentPlanCard theme + gradient). Use in demo/Storybook to preview gradient. */
786
+ currentPlanOfferingKey?: string;
743
787
  }) => react_jsx_runtime.JSX.Element;
744
788
 
745
789
  declare const useCheckoutUrl: () => {