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

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,26 +1,27 @@
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
+ /**
5
+ * Pricing Table theme. All properties are optional.
6
+ * The theme follows the same structure as CustomerPortalTheme:
7
+ * - Plan-related keys (planCards, planButton, etc.) are nested under `plans`
8
+ * - Additional top-level keys: `tabs`, `checkoutBar`
9
+ */
14
10
  interface PricingTableTheme {
11
+ general?: {
12
+ fontFamily?: string;
13
+ };
15
14
  plans?: PricingTablePlansTheme;
15
+ tabs?: TabsTheme;
16
+ checkoutBar?: CheckoutBarTheme;
17
+ }
18
+ interface PricingTablePlansTheme {
16
19
  currentPlanCard?: CurrentSubscriptionCard;
17
20
  planCards?: CardTheme;
18
21
  planFeatures?: FeatureListTheme;
19
22
  planButton?: PlanButtonTheme;
20
23
  planToggle?: IntervalToggleTheme;
21
24
  planTags?: PlanTagsTheme;
22
- tabs?: TabsTheme;
23
- checkoutBar?: CheckoutBarTheme;
24
25
  }
25
26
  interface CardTheme {
26
27
  background?: string;
@@ -45,11 +46,9 @@ interface CardPriceTheme {
45
46
  amountColor?: string;
46
47
  primaryTextColor?: string;
47
48
  secondaryTextColor?: string;
48
- textButtonColor?: string;
49
49
  background?: string;
50
50
  borderColor?: string;
51
51
  }
52
- /** Matches customer portal plans.planButton; optional extras for standalone pricing table. */
53
52
  interface PlanButtonTheme {
54
53
  background?: string;
55
54
  textColor?: string;
@@ -79,7 +78,6 @@ interface CurrentSubscriptionCard {
79
78
  description?: CardDescriptionTheme;
80
79
  borderRadius?: string;
81
80
  }
82
- /** Matches customer portal plans.planTags. */
83
81
  interface PlanTagsTheme {
84
82
  freeTrialBackground?: string;
85
83
  freeTrialText?: string;
@@ -92,6 +90,12 @@ interface CheckoutBarTheme {
92
90
  buttonTextColor?: string;
93
91
  }
94
92
 
93
+ /**
94
+ * Customer Portal theme. All properties are optional.
95
+ * This shape matches what is defined in defaultCustomerPortalTheme and what
96
+ * customerPortalThemeToCssVars maps to CSS variables. Only theme groups
97
+ * that exist in the default theme or are supported by the helper are included.
98
+ */
95
99
  type CustomerPortalTheme = {
96
100
  general?: {
97
101
  linkColor?: string;
@@ -190,36 +194,6 @@ type CustomerPortalTheme = {
190
194
  };
191
195
  };
192
196
  };
193
- badges?: {
194
- active?: {
195
- background?: string;
196
- textColor?: string;
197
- strokeColor?: string;
198
- };
199
- cancelled?: {
200
- background?: string;
201
- textColor?: string;
202
- strokeColor?: string;
203
- };
204
- inTrial?: {
205
- background?: string;
206
- textColor?: string;
207
- strokeColor?: string;
208
- };
209
- deactivated?: {
210
- background?: string;
211
- textColor?: string;
212
- strokeColor?: string;
213
- };
214
- shared?: {
215
- borderRadius?: string;
216
- strokeWidth?: string;
217
- typography?: {
218
- fontSize?: string;
219
- fontWeight?: string;
220
- };
221
- };
222
- };
223
197
  lineItems?: {
224
198
  parentRow?: {
225
199
  background?: string;
@@ -337,10 +311,6 @@ type CustomerPortalTheme = {
337
311
  textColor?: string;
338
312
  };
339
313
  gradientColor?: string;
340
- description?: {
341
- textColor?: string;
342
- textButtonColor?: string;
343
- };
344
314
  borderRadius?: string;
345
315
  };
346
316
  planCards?: {
@@ -385,6 +355,7 @@ type CustomerPortalTheme = {
385
355
  freeTrialText?: string;
386
356
  };
387
357
  };
358
+ /** Used by e.g. subscription line-item actions. Not set in default theme; pass to override. */
388
359
  popover?: {
389
360
  trigger?: {
390
361
  background?: string;