@stigg/react-sdk 4.4.0-beta.10 → 4.4.0-beta.12
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/components/checkout/Checkout.d.ts +1 -1
- package/dist/components/checkout/CheckoutContainer.d.ts +4 -2
- package/dist/components/checkout/CheckoutProvider.d.ts +4 -2
- package/dist/components/checkout/components/DowngradeToFreeContainer.d.ts +3 -7
- package/dist/components/checkout/components/StyledArrow.d.ts +5 -0
- package/dist/components/checkout/hooks/useLoadCheckout.d.ts +3 -1
- package/dist/components/checkout/hooks/usePreviewSubscription.d.ts +8 -5
- package/dist/components/checkout/summary/CheckoutSummary.d.ts +1 -1
- package/dist/components/checkout/summary/components/LineItems.d.ts +6 -6
- package/dist/components/checkout/textOverrides.d.ts +24 -3
- package/dist/react-sdk.cjs.development.js +255 -195
- package/dist/react-sdk.cjs.development.js.map +1 -1
- package/dist/react-sdk.cjs.production.min.js +1 -1
- package/dist/react-sdk.cjs.production.min.js.map +1 -1
- package/dist/react-sdk.esm.js +261 -211
- package/dist/react-sdk.esm.js.map +1 -1
- package/dist/stories/mocks/checkout/consts.d.ts +11 -0
- package/dist/stories/mocks/checkout/mockCheckoutPreview.d.ts +2 -0
- package/dist/stories/mocks/checkout/mockCheckoutState.d.ts +2 -0
- package/package.json +1 -1
- package/src/components/checkout/Checkout.tsx +3 -1
- package/src/components/checkout/CheckoutContainer.tsx +21 -2
- package/src/components/checkout/CheckoutProvider.tsx +6 -2
- package/src/components/checkout/components/DowngradeToFreeContainer.tsx +32 -35
- package/src/components/checkout/components/StyledArrow.tsx +9 -0
- package/src/components/checkout/hooks/useLoadCheckout.ts +10 -2
- package/src/components/checkout/hooks/usePreviewSubscription.ts +16 -6
- package/src/components/checkout/planHeader/PlanHeader.tsx +18 -25
- package/src/components/checkout/promotionCode/AddPromotionCode.tsx +2 -1
- package/src/components/checkout/summary/CheckoutSummary.tsx +33 -21
- package/src/components/checkout/summary/components/LineItems.tsx +10 -17
- package/src/components/checkout/textOverrides.ts +21 -4
- package/src/stories/Checkout.stories.tsx +32 -6
- package/src/stories/mocks/checkout/consts.ts +15 -0
- package/src/stories/mocks/checkout/mockCheckoutPreview.ts +121 -0
- package/src/stories/mocks/checkout/mockCheckoutState.ts +206 -0
- package/dist/components/checkout/planHeader/PlanHeader.style.d.ts +0 -25
- package/src/components/checkout/planHeader/PlanHeader.style.tsx +0 -23
|
@@ -25,7 +25,15 @@ export type CheckoutLocalization = {
|
|
|
25
25
|
};
|
|
26
26
|
appliedCreditsTitle: string;
|
|
27
27
|
taxTitle: (params: { taxDetails: SubscriptionPreviewTaxDetails }) => string;
|
|
28
|
-
|
|
28
|
+
downgradeToFree: {
|
|
29
|
+
alertText: (params: { plan: Plan }) => string;
|
|
30
|
+
freePlanHeader: (params: { plan: Plan }) => string;
|
|
31
|
+
freePlanName: (params: { plan: Plan }) => string;
|
|
32
|
+
freePlanPriceText: (params: { plan: Plan }) => string;
|
|
33
|
+
paidPlanHeader: (params: { plan: Plan }) => string;
|
|
34
|
+
paidPlanName: (params: { plan: Plan }) => string;
|
|
35
|
+
paidPlanPriceText: (params: { plan: Plan; billingPeriod?: BillingPeriod }) => string;
|
|
36
|
+
};
|
|
29
37
|
checkoutSuccessText: string;
|
|
30
38
|
};
|
|
31
39
|
|
|
@@ -33,7 +41,7 @@ export function getResolvedCheckoutLocalize(
|
|
|
33
41
|
localizeOverride?: DeepPartial<CheckoutLocalization>,
|
|
34
42
|
): CheckoutLocalization {
|
|
35
43
|
const checkoutDefaultLocalization: CheckoutLocalization = {
|
|
36
|
-
changePlan: 'Change
|
|
44
|
+
changePlan: 'Change',
|
|
37
45
|
billingPeriodsTitle: 'Billing cycle',
|
|
38
46
|
addAddonText: 'Add',
|
|
39
47
|
newPaymentMethodText: 'New payment method',
|
|
@@ -57,8 +65,17 @@ export function getResolvedCheckoutLocalize(
|
|
|
57
65
|
},
|
|
58
66
|
appliedCreditsTitle: 'Applied credits',
|
|
59
67
|
taxTitle: ({ taxDetails }) => `Tax (${taxDetails?.percentage}%)`,
|
|
60
|
-
|
|
61
|
-
|
|
68
|
+
downgradeToFree: {
|
|
69
|
+
alertText: () => `We’re sorry to see you cancel your paid subscription 😭`,
|
|
70
|
+
freePlanHeader: () => 'New plan',
|
|
71
|
+
freePlanName: ({ plan }) => `${plan.displayName}`,
|
|
72
|
+
freePlanPriceText: () => 'Free',
|
|
73
|
+
paidPlanHeader: () => 'Current plan',
|
|
74
|
+
paidPlanName: ({ plan }) => `${plan.displayName}`,
|
|
75
|
+
paidPlanPriceText: ({ billingPeriod }) =>
|
|
76
|
+
`Paid plan${billingPeriod ? `, billed ${billingPeriod.toLowerCase()}` : ''}`,
|
|
77
|
+
},
|
|
78
|
+
checkoutSuccessText: 'Changes applied',
|
|
62
79
|
};
|
|
63
80
|
|
|
64
81
|
return merge(checkoutDefaultLocalization, localizeOverride);
|
|
@@ -4,6 +4,8 @@ import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
|
4
4
|
import { Checkout } from '../components/checkout';
|
|
5
5
|
import { StiggProvider } from '../components/StiggProvider';
|
|
6
6
|
import { defaultArgsWithCustomer } from './baseArgs';
|
|
7
|
+
import { mockCheckoutState } from './mocks/checkout/mockCheckoutState';
|
|
8
|
+
import { mockPreviewSubscription } from './mocks/checkout/mockCheckoutPreview';
|
|
7
9
|
|
|
8
10
|
export default {
|
|
9
11
|
title: 'Stigg React SDK/Checkout',
|
|
@@ -21,6 +23,18 @@ export default {
|
|
|
21
23
|
</StiggProvider>
|
|
22
24
|
),
|
|
23
25
|
],
|
|
26
|
+
parameters: {
|
|
27
|
+
controls: {
|
|
28
|
+
exclude: [
|
|
29
|
+
'onCheckout',
|
|
30
|
+
'onCheckoutCompleted',
|
|
31
|
+
'onChangePlan',
|
|
32
|
+
'onBillingAddressChange',
|
|
33
|
+
'onMockCheckoutState',
|
|
34
|
+
'onMockCheckoutPreview',
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
24
38
|
} as ComponentMeta<typeof Checkout>;
|
|
25
39
|
|
|
26
40
|
const Wrapper = styled.div`
|
|
@@ -43,11 +57,26 @@ const Template: ComponentStory<any> = (args) => (
|
|
|
43
57
|
const { success, errorMessage } = await checkoutAction();
|
|
44
58
|
return { success, errorMessage };
|
|
45
59
|
}}
|
|
60
|
+
billableFeatures={[{ featureId: 'feature-seat', quantity: 30 }]}
|
|
46
61
|
onChangePlan={({ currentPlan }) => {
|
|
47
62
|
console.log('plan changed clicked!', { currentPlan });
|
|
48
63
|
}}
|
|
49
|
-
|
|
50
|
-
|
|
64
|
+
onMockCheckoutState={
|
|
65
|
+
args.useMockData
|
|
66
|
+
? (params) => {
|
|
67
|
+
console.log('mocking checkout state', params);
|
|
68
|
+
return mockCheckoutState(params);
|
|
69
|
+
}
|
|
70
|
+
: undefined
|
|
71
|
+
}
|
|
72
|
+
onMockCheckoutPreview={
|
|
73
|
+
args.useMockData
|
|
74
|
+
? (params) => {
|
|
75
|
+
console.log('mocking checkout preview');
|
|
76
|
+
return mockPreviewSubscription(params);
|
|
77
|
+
}
|
|
78
|
+
: undefined
|
|
79
|
+
}
|
|
51
80
|
/>
|
|
52
81
|
</Wrapper>
|
|
53
82
|
);
|
|
@@ -56,8 +85,5 @@ export const DefaultCheckout = Template.bind({});
|
|
|
56
85
|
DefaultCheckout.args = {
|
|
57
86
|
...defaultArgsWithCustomer,
|
|
58
87
|
planId: 'plan-revvenu-essentials',
|
|
59
|
-
|
|
60
|
-
// apiKey: 'client-72b058a6-0f22-4c86-adce-bf266d12e12e:9f356ceb-c94c-42a4-9572-10b12824da81',
|
|
61
|
-
baseUri: 'https://api-staging.stigg.io',
|
|
62
|
-
apiKey: 'client-79584f52-7ef9-4c58-b9ac-5080acf492e4:71f2274c-100a-4fa4-8a43-48fa3b16c627',
|
|
88
|
+
useMockData: false,
|
|
63
89
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const BASE_FEE_MONTHLY = 200;
|
|
2
|
+
export const BASE_FEE_YEARLY = 175;
|
|
3
|
+
export const TIERS = [1000, 10000, 50000];
|
|
4
|
+
export const TIERS_PRICE_MONTHLY = [10, 90, 480];
|
|
5
|
+
export const TIERS_PRICE_YEARLY = [8, 75, 350];
|
|
6
|
+
|
|
7
|
+
export const PER_UNIT_PRICE_MONTHLY = 12;
|
|
8
|
+
export const PER_UNIT_PRICE_YEARLY = 10;
|
|
9
|
+
|
|
10
|
+
export const ADDON_PRICE_MONTHLY = 50;
|
|
11
|
+
export const ADDON_PRICE_YEARLY = 35;
|
|
12
|
+
|
|
13
|
+
export const STRIPE_MOCK_ACCOUNT_ID = 'acct_1NnHoQG6EyqgvTaj';
|
|
14
|
+
export const STRIPE_MOCK_ACCOUNT_PK =
|
|
15
|
+
'pk_test_51NnHoQG6EyqgvTajznajopWC01AozNtq7zgySeQ1qx4PH9TAXvMj0TnbZvYT3yOt46jbQAcCDs1EU2QKcfG8eEoO00tlW0Jp3r';
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import moment from 'moment';
|
|
2
|
+
import {
|
|
3
|
+
BillingPeriod,
|
|
4
|
+
BillingModel,
|
|
5
|
+
Currency,
|
|
6
|
+
BillableFeature,
|
|
7
|
+
DateRange,
|
|
8
|
+
Money,
|
|
9
|
+
Plan,
|
|
10
|
+
PreviewSubscription,
|
|
11
|
+
SubscriptionEstimationAddon,
|
|
12
|
+
SubscriptionPreview,
|
|
13
|
+
} from '../../../../../js-client-sdk';
|
|
14
|
+
import { mockCheckoutState } from './mockCheckoutState';
|
|
15
|
+
|
|
16
|
+
const mockBillingPeriod = (period?: BillingPeriod): DateRange => {
|
|
17
|
+
return {
|
|
18
|
+
start: moment().toDate(),
|
|
19
|
+
end: moment()
|
|
20
|
+
.add(1, period === BillingPeriod.Monthly ? 'month' : 'year')
|
|
21
|
+
.toDate(),
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const defaultPreviewSubscription = (): SubscriptionPreview => {
|
|
26
|
+
const defaultCost: Money = {
|
|
27
|
+
amount: 0,
|
|
28
|
+
currency: Currency.Usd,
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
return {
|
|
32
|
+
subTotal: defaultCost,
|
|
33
|
+
total: defaultCost,
|
|
34
|
+
totalExcludingTax: defaultCost,
|
|
35
|
+
billingPeriodRange: mockBillingPeriod(),
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const flatFeeCost = (plan: Plan, billingPeriod: BillingPeriod | undefined) => {
|
|
40
|
+
const filteredPrice = plan.pricePoints?.find(
|
|
41
|
+
(price) => price.billingPeriod === billingPeriod && price.pricingModel === BillingModel.FlatFee,
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
return filteredPrice?.amount || 0;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const addonCost = (plan: Plan, billingPeriod: BillingPeriod, addonId: string, quantity: number) => {
|
|
48
|
+
const addon = plan.compatibleAddons?.find((addon) => addon.id === addonId);
|
|
49
|
+
|
|
50
|
+
const price = addon?.pricePoints.find((price) => price.billingPeriod === billingPeriod);
|
|
51
|
+
|
|
52
|
+
return (price?.amount || 0) * quantity;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const billableFeatureCost = (plan: Plan, billingPeriod: BillingPeriod, featureId: string, quantity: number) => {
|
|
56
|
+
const price = plan.pricePoints.find(
|
|
57
|
+
(price) => price.feature?.featureId === featureId && price.billingPeriod === billingPeriod,
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
if (!price) return 0;
|
|
61
|
+
|
|
62
|
+
const { tiers } = price;
|
|
63
|
+
|
|
64
|
+
if (tiers) {
|
|
65
|
+
const quantityTier = tiers.find((tier) => tier.upTo >= quantity);
|
|
66
|
+
const priceTier = quantityTier || tiers[tiers.length - 1];
|
|
67
|
+
return quantity * priceTier.unitPrice.amount;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return (price?.amount || 0) * quantity;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const mockTotalPrice = (
|
|
74
|
+
plan: Plan,
|
|
75
|
+
billingPeriod: BillingPeriod,
|
|
76
|
+
addons: SubscriptionEstimationAddon[],
|
|
77
|
+
features: BillableFeature[],
|
|
78
|
+
) => {
|
|
79
|
+
const currency = plan.pricePoints?.[0].currency || Currency.Usd;
|
|
80
|
+
|
|
81
|
+
const totalFlatFeeCost = flatFeeCost(plan, billingPeriod);
|
|
82
|
+
const totalFeaturesCost = features.reduce(
|
|
83
|
+
(total, feature) => total + billableFeatureCost(plan, billingPeriod, feature.featureId, feature.quantity || 0),
|
|
84
|
+
0,
|
|
85
|
+
);
|
|
86
|
+
const totalAddonsCost = addons.reduce(
|
|
87
|
+
(total, addon) => total + addonCost(plan, billingPeriod, addon.addonId, addon.quantity || 0),
|
|
88
|
+
0,
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
const cost: Money = {
|
|
92
|
+
amount: totalFlatFeeCost + totalFeaturesCost + totalAddonsCost,
|
|
93
|
+
currency: currency || Currency.Usd,
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
return {
|
|
97
|
+
subTotal: cost,
|
|
98
|
+
total: cost,
|
|
99
|
+
totalExcludingTax: cost,
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export function mockPreviewSubscription(input: PreviewSubscription): SubscriptionPreview {
|
|
104
|
+
const { planId, billingPeriod = BillingPeriod.Monthly, billableFeatures: features = [], addons = [] } = input;
|
|
105
|
+
const data = mockCheckoutState({ planId });
|
|
106
|
+
|
|
107
|
+
if (!data || !data.plan) {
|
|
108
|
+
return defaultPreviewSubscription();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
const total = mockTotalPrice(data.plan, billingPeriod, addons, features);
|
|
112
|
+
|
|
113
|
+
if (!total) {
|
|
114
|
+
return defaultPreviewSubscription();
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
...total,
|
|
119
|
+
billingPeriodRange: mockBillingPeriod(billingPeriod),
|
|
120
|
+
};
|
|
121
|
+
}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import moment from 'moment';
|
|
2
|
+
import { camelCase, startCase } from 'lodash';
|
|
3
|
+
import {
|
|
4
|
+
BillingModel,
|
|
5
|
+
BillingPeriod,
|
|
6
|
+
BillingVendorIdentifier,
|
|
7
|
+
Currency,
|
|
8
|
+
PricingType,
|
|
9
|
+
TiersMode,
|
|
10
|
+
CheckoutStatePlan,
|
|
11
|
+
Customer,
|
|
12
|
+
GetCheckoutState,
|
|
13
|
+
GetCheckoutStateResults,
|
|
14
|
+
Price,
|
|
15
|
+
Product,
|
|
16
|
+
PromotionalEntitlement,
|
|
17
|
+
Subscription,
|
|
18
|
+
Addon,
|
|
19
|
+
} from '../../../../../js-client-sdk';
|
|
20
|
+
import {
|
|
21
|
+
BASE_FEE_MONTHLY,
|
|
22
|
+
TIERS_PRICE_MONTHLY,
|
|
23
|
+
PER_UNIT_PRICE_MONTHLY,
|
|
24
|
+
PER_UNIT_PRICE_YEARLY,
|
|
25
|
+
STRIPE_MOCK_ACCOUNT_ID,
|
|
26
|
+
STRIPE_MOCK_ACCOUNT_PK,
|
|
27
|
+
TIERS,
|
|
28
|
+
BASE_FEE_YEARLY,
|
|
29
|
+
TIERS_PRICE_YEARLY,
|
|
30
|
+
ADDON_PRICE_MONTHLY,
|
|
31
|
+
ADDON_PRICE_YEARLY,
|
|
32
|
+
} from './consts';
|
|
33
|
+
|
|
34
|
+
const mockCustomer: Customer = {
|
|
35
|
+
id: '462d5d8a-22c4-4f22-9306-38d1a3047675',
|
|
36
|
+
name: 'John Doe',
|
|
37
|
+
email: 'john.doe@example.com',
|
|
38
|
+
createdAt: moment().subtract(1, 'year').toDate(),
|
|
39
|
+
updatedAt: moment().subtract(1, 'month').toDate(),
|
|
40
|
+
hasPaymentMethod: false,
|
|
41
|
+
promotionalEntitlements: [],
|
|
42
|
+
subscriptions: [],
|
|
43
|
+
getActivePromotionalEntitlements(): PromotionalEntitlement[] {
|
|
44
|
+
return [];
|
|
45
|
+
},
|
|
46
|
+
getActiveSubscriptions(): Subscription[] {
|
|
47
|
+
return [];
|
|
48
|
+
},
|
|
49
|
+
getActiveTrials(): Subscription[] {
|
|
50
|
+
return [];
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const mockProduct: Product = {
|
|
55
|
+
id: 'product-1',
|
|
56
|
+
displayName: 'Product 1',
|
|
57
|
+
description: 'Product 1 description',
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const additionalStorageAddons: Addon = {
|
|
61
|
+
id: 'addon-additional-storage',
|
|
62
|
+
description: 'Additional storage',
|
|
63
|
+
displayName: 'Additional storage',
|
|
64
|
+
entitlements: [],
|
|
65
|
+
pricePoints: [
|
|
66
|
+
{
|
|
67
|
+
pricingModel: BillingModel.FlatFee,
|
|
68
|
+
billingPeriod: BillingPeriod.Monthly,
|
|
69
|
+
amount: ADDON_PRICE_MONTHLY,
|
|
70
|
+
currency: Currency.Usd,
|
|
71
|
+
tiersMode: undefined,
|
|
72
|
+
isTieredPrice: false,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
pricingModel: BillingModel.FlatFee,
|
|
76
|
+
billingPeriod: BillingPeriod.Annually,
|
|
77
|
+
amount: ADDON_PRICE_YEARLY,
|
|
78
|
+
currency: Currency.Usd,
|
|
79
|
+
tiersMode: undefined,
|
|
80
|
+
isTieredPrice: false,
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const flatFeePricing: Price[] = [
|
|
86
|
+
{
|
|
87
|
+
pricingModel: BillingModel.FlatFee,
|
|
88
|
+
billingPeriod: BillingPeriod.Monthly,
|
|
89
|
+
amount: BASE_FEE_MONTHLY,
|
|
90
|
+
currency: Currency.Usd,
|
|
91
|
+
tiersMode: undefined,
|
|
92
|
+
isTieredPrice: false,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
pricingModel: BillingModel.FlatFee,
|
|
96
|
+
billingPeriod: BillingPeriod.Annually,
|
|
97
|
+
amount: BASE_FEE_YEARLY,
|
|
98
|
+
currency: Currency.Usd,
|
|
99
|
+
tiersMode: undefined,
|
|
100
|
+
isTieredPrice: false,
|
|
101
|
+
},
|
|
102
|
+
];
|
|
103
|
+
|
|
104
|
+
function activeUsersPricing(): Price[] {
|
|
105
|
+
const activeUsersFeature = {
|
|
106
|
+
featureId: 'feature-active-users',
|
|
107
|
+
displayName: 'Active users',
|
|
108
|
+
units: 'user',
|
|
109
|
+
unitsPlural: 'users',
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
return [
|
|
113
|
+
{
|
|
114
|
+
pricingModel: BillingModel.PerUnit,
|
|
115
|
+
billingPeriod: BillingPeriod.Monthly,
|
|
116
|
+
tiersMode: TiersMode.Volume,
|
|
117
|
+
tiers: TIERS.map((tier, index) => ({
|
|
118
|
+
upTo: tier,
|
|
119
|
+
unitPrice: {
|
|
120
|
+
amount: TIERS_PRICE_MONTHLY[index] / tier,
|
|
121
|
+
currency: Currency.Usd,
|
|
122
|
+
},
|
|
123
|
+
})),
|
|
124
|
+
feature: activeUsersFeature,
|
|
125
|
+
currency: Currency.Usd,
|
|
126
|
+
isTieredPrice: true,
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
pricingModel: BillingModel.PerUnit,
|
|
130
|
+
billingPeriod: BillingPeriod.Annually,
|
|
131
|
+
tiersMode: TiersMode.Volume,
|
|
132
|
+
tiers: TIERS.map((tier, index) => ({
|
|
133
|
+
upTo: tier,
|
|
134
|
+
unitPrice: {
|
|
135
|
+
amount: TIERS_PRICE_YEARLY[index] / tier,
|
|
136
|
+
currency: Currency.Usd,
|
|
137
|
+
},
|
|
138
|
+
})),
|
|
139
|
+
feature: activeUsersFeature,
|
|
140
|
+
currency: Currency.Usd,
|
|
141
|
+
isTieredPrice: true,
|
|
142
|
+
},
|
|
143
|
+
];
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
function seatsPricing(): Price[] {
|
|
147
|
+
const seatsFeature = {
|
|
148
|
+
featureId: 'feature-seats',
|
|
149
|
+
displayName: 'Seats',
|
|
150
|
+
units: 'seat',
|
|
151
|
+
unitsPlural: 'seats',
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
return [
|
|
155
|
+
{
|
|
156
|
+
pricingModel: BillingModel.PerUnit,
|
|
157
|
+
billingPeriod: BillingPeriod.Monthly,
|
|
158
|
+
amount: PER_UNIT_PRICE_MONTHLY,
|
|
159
|
+
currency: Currency.Usd,
|
|
160
|
+
feature: seatsFeature,
|
|
161
|
+
tiersMode: undefined,
|
|
162
|
+
isTieredPrice: false,
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
pricingModel: BillingModel.PerUnit,
|
|
166
|
+
billingPeriod: BillingPeriod.Annually,
|
|
167
|
+
amount: PER_UNIT_PRICE_YEARLY,
|
|
168
|
+
currency: Currency.Usd,
|
|
169
|
+
feature: seatsFeature,
|
|
170
|
+
tiersMode: undefined,
|
|
171
|
+
isTieredPrice: false,
|
|
172
|
+
},
|
|
173
|
+
];
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
function mockPlan(planRefId: string): CheckoutStatePlan {
|
|
177
|
+
return {
|
|
178
|
+
id: '4b6c639e-1100-4ae1-86a9-31324994f992',
|
|
179
|
+
displayName: startCase(camelCase(planRefId)),
|
|
180
|
+
pricingType: PricingType.Paid,
|
|
181
|
+
pricePoints: [...flatFeePricing, ...seatsPricing(), ...activeUsersPricing()],
|
|
182
|
+
product: mockProduct,
|
|
183
|
+
order: 0,
|
|
184
|
+
compatibleAddons: [additionalStorageAddons],
|
|
185
|
+
entitlements: [],
|
|
186
|
+
inheritedEntitlements: [],
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export function mockCheckoutState(params: GetCheckoutState): GetCheckoutStateResults {
|
|
191
|
+
const { planId } = params;
|
|
192
|
+
|
|
193
|
+
return {
|
|
194
|
+
setupSecret: '',
|
|
195
|
+
customer: mockCustomer,
|
|
196
|
+
plan: mockPlan(planId),
|
|
197
|
+
billingIntegration: {
|
|
198
|
+
billingIdentifier: BillingVendorIdentifier.Stripe,
|
|
199
|
+
credentials: {
|
|
200
|
+
accountId: STRIPE_MOCK_ACCOUNT_ID,
|
|
201
|
+
publicKey: STRIPE_MOCK_ACCOUNT_PK,
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
resource: null,
|
|
205
|
+
};
|
|
206
|
+
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/// <reference types="@emotion/styled/macro" />
|
|
3
|
-
export declare const PlanPathContainer: import("@emotion/styled/macro").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
|
|
4
|
-
children?: import("react").ReactNode;
|
|
5
|
-
component?: "symbol" | "object" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
|
|
6
|
-
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
|
7
|
-
sx?: import("@mui/system").SystemCssProperties<import("@mui/material").Theme> | import("@mui/system").CSSPseudoSelectorProps<import("@mui/material").Theme> | import("@mui/system").CSSSelectorObjectOrCssVariables<import("@mui/material").Theme> | ((theme: import("@mui/material").Theme) => import("@mui/system").SystemStyleObject<import("@mui/material").Theme>) | readonly (boolean | import("@mui/system").SystemCssProperties<import("@mui/material").Theme> | import("@mui/system").CSSPseudoSelectorProps<import("@mui/material").Theme> | import("@mui/system").CSSSelectorObjectOrCssVariables<import("@mui/material").Theme> | ((theme: import("@mui/material").Theme) => import("@mui/system").SystemStyleObject<import("@mui/material").Theme>) | null)[] | null | undefined;
|
|
8
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "className" | "color" | "translate" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
|
|
9
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
}, "slot" | "title" | "translate" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
|
|
11
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
-
}, {}, {}>;
|
|
13
|
-
export declare const StyledArrowRightIcon: import("@emotion/styled/macro").StyledComponent<import("react").SVGProps<SVGElement> & {
|
|
14
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
15
|
-
}, {}, {}>;
|
|
16
|
-
export declare const PlanHeaderContainer: import("@emotion/styled/macro").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
|
|
17
|
-
children?: import("react").ReactNode;
|
|
18
|
-
component?: "symbol" | "object" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
|
|
19
|
-
ref?: ((instance: unknown) => void) | import("react").RefObject<unknown> | null | undefined;
|
|
20
|
-
sx?: import("@mui/system").SystemCssProperties<import("@mui/material").Theme> | import("@mui/system").CSSPseudoSelectorProps<import("@mui/material").Theme> | import("@mui/system").CSSSelectorObjectOrCssVariables<import("@mui/material").Theme> | ((theme: import("@mui/material").Theme) => import("@mui/system").SystemStyleObject<import("@mui/material").Theme>) | readonly (boolean | import("@mui/system").SystemCssProperties<import("@mui/material").Theme> | import("@mui/system").CSSPseudoSelectorProps<import("@mui/material").Theme> | import("@mui/system").CSSSelectorObjectOrCssVariables<import("@mui/material").Theme> | ((theme: import("@mui/material").Theme) => import("@mui/system").SystemStyleObject<import("@mui/material").Theme>) | null)[] | null | undefined;
|
|
21
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "className" | "color" | "translate" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
|
|
22
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
23
|
-
}, "slot" | "title" | "translate" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
|
|
24
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
-
}, {}, {}>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import styled from '@emotion/styled/macro';
|
|
2
|
-
import { Box } from '@mui/material';
|
|
3
|
-
|
|
4
|
-
import ArrowRightIcon from '../../../assets/arrow-right.svg';
|
|
5
|
-
|
|
6
|
-
export const PlanPathContainer = styled(Box)`
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: baseline;
|
|
9
|
-
gap: 8px;
|
|
10
|
-
`;
|
|
11
|
-
|
|
12
|
-
export const StyledArrowRightIcon = styled(ArrowRightIcon)`
|
|
13
|
-
path {
|
|
14
|
-
stroke: ${({ theme }) => theme.stigg.palette.text.secondary};
|
|
15
|
-
}
|
|
16
|
-
`;
|
|
17
|
-
|
|
18
|
-
export const PlanHeaderContainer = styled(Box)`
|
|
19
|
-
display: flex;
|
|
20
|
-
align-content: center;
|
|
21
|
-
justify-content: space-between;
|
|
22
|
-
margin-bottom: 16px;
|
|
23
|
-
`;
|