@stigg/react-sdk 4.4.0-beta.8 → 4.4.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.
Files changed (95) hide show
  1. package/dist/components/checkout/Checkout.d.ts +3 -2
  2. package/dist/components/checkout/CheckoutContainer.d.ts +5 -2
  3. package/dist/components/checkout/CheckoutProvider.d.ts +3 -2
  4. package/dist/components/checkout/components/DowngradeToFreeContainer.d.ts +3 -7
  5. package/dist/components/checkout/components/StyledArrow.d.ts +5 -0
  6. package/dist/components/checkout/hooks/useCheckoutModel.d.ts +2 -0
  7. package/dist/components/checkout/hooks/useLoadCheckout.d.ts +3 -1
  8. package/dist/components/checkout/hooks/usePreviewSubscription.d.ts +17 -8
  9. package/dist/components/checkout/progressBar/CheckoutProgressBar.style.d.ts +1 -0
  10. package/dist/components/checkout/promotionCode/AddPromotionCode.d.ts +2 -4
  11. package/dist/components/checkout/promotionCode/AddPromotionCodeButton.d.ts +2 -1
  12. package/dist/components/checkout/promotionCode/PromotionCodeSection.d.ts +6 -2
  13. package/dist/components/checkout/steps/payment/stripe/useSubmit.d.ts +2 -2
  14. package/dist/components/checkout/steps/plan/BillingPeriodPicker.d.ts +1 -1
  15. package/dist/components/checkout/steps/plan/CheckoutPlanStep.d.ts +2 -1
  16. package/dist/components/checkout/summary/CheckoutSuccess.d.ts +4 -1
  17. package/dist/components/checkout/summary/CheckoutSummary.d.ts +1 -1
  18. package/dist/components/checkout/summary/components/CheckoutCaptions.d.ts +3 -2
  19. package/dist/components/checkout/summary/components/LineItems.d.ts +12 -8
  20. package/dist/components/checkout/textOverrides.d.ts +65 -21
  21. package/dist/components/checkout/theme.d.ts +0 -1
  22. package/dist/components/checkout/types.d.ts +7 -1
  23. package/dist/components/common/TiersSelectContainer.d.ts +1 -2
  24. package/dist/components/common/Typography.d.ts +2 -2
  25. package/dist/components/common/customIcons.d.ts +2 -0
  26. package/dist/components/customerPortal/subscriptionOverview/subscriptionView/SubscriptionView.style.d.ts +1 -1
  27. package/dist/components/paywall/PlanPrice.d.ts +1 -1
  28. package/dist/components/utils/currencyUtils.d.ts +2 -1
  29. package/dist/components/utils/getFeatureName.d.ts +1 -0
  30. package/dist/react-sdk.cjs.development.js +1153 -624
  31. package/dist/react-sdk.cjs.development.js.map +1 -1
  32. package/dist/react-sdk.cjs.production.min.js +1 -1
  33. package/dist/react-sdk.cjs.production.min.js.map +1 -1
  34. package/dist/react-sdk.esm.js +1176 -651
  35. package/dist/react-sdk.esm.js.map +1 -1
  36. package/dist/stories/mocks/checkout/consts.d.ts +11 -0
  37. package/dist/stories/mocks/checkout/mockCheckoutPreview.d.ts +2 -0
  38. package/dist/stories/mocks/checkout/mockCheckoutState.d.ts +2 -0
  39. package/dist/theme/getResolvedTheme.d.ts +1 -0
  40. package/dist/theme/types.d.ts +1 -0
  41. package/package.json +28 -20
  42. package/src/assets/coupon.svg +6 -0
  43. package/src/assets/pay-as-you-go-charge.svg +11 -0
  44. package/src/components/checkout/Checkout.tsx +5 -2
  45. package/src/components/checkout/CheckoutContainer.tsx +21 -12
  46. package/src/components/checkout/CheckoutProvider.tsx +5 -3
  47. package/src/components/checkout/components/DowngradeToFreeContainer.tsx +33 -36
  48. package/src/components/checkout/components/StyledArrow.tsx +9 -0
  49. package/src/components/checkout/hooks/useCheckoutModel.ts +12 -2
  50. package/src/components/checkout/hooks/useLoadCheckout.ts +10 -2
  51. package/src/components/checkout/hooks/usePlanStepModel.ts +22 -7
  52. package/src/components/checkout/hooks/usePreviewSubscription.ts +103 -50
  53. package/src/components/checkout/planHeader/PlanHeader.tsx +18 -25
  54. package/src/components/checkout/progressBar/CheckoutProgressBar.style.ts +11 -12
  55. package/src/components/checkout/progressBar/CheckoutProgressBar.tsx +7 -6
  56. package/src/components/checkout/promotionCode/AddPromotionCode.tsx +32 -9
  57. package/src/components/checkout/promotionCode/AddPromotionCodeButton.tsx +15 -11
  58. package/src/components/checkout/promotionCode/AppliedPromotionCode.tsx +4 -3
  59. package/src/components/checkout/promotionCode/PromotionCodeSection.tsx +21 -7
  60. package/src/components/checkout/steps/addons/CheckoutAddonsStep.style.tsx +0 -1
  61. package/src/components/checkout/steps/addons/CheckoutAddonsStep.tsx +7 -4
  62. package/src/components/checkout/steps/payment/PaymentMethods.style.ts +4 -1
  63. package/src/components/checkout/steps/payment/PaymentStep.tsx +0 -1
  64. package/src/components/checkout/steps/payment/stripe/useSubmit.ts +8 -4
  65. package/src/components/checkout/steps/plan/BillingPeriodPicker.style.tsx +3 -2
  66. package/src/components/checkout/steps/plan/BillingPeriodPicker.tsx +11 -8
  67. package/src/components/checkout/steps/plan/CheckoutChargeList.tsx +35 -14
  68. package/src/components/checkout/steps/plan/CheckoutPlanStep.tsx +10 -5
  69. package/src/components/checkout/summary/CheckoutSuccess.tsx +52 -6
  70. package/src/components/checkout/summary/CheckoutSummary.tsx +166 -59
  71. package/src/components/checkout/summary/components/CheckoutCaptions.tsx +63 -39
  72. package/src/components/checkout/summary/components/LineItems.tsx +77 -28
  73. package/src/components/checkout/textOverrides.ts +112 -30
  74. package/src/components/checkout/theme.ts +0 -4
  75. package/src/components/checkout/types.ts +15 -1
  76. package/src/components/common/Icon.tsx +4 -6
  77. package/src/components/common/TiersSelectContainer.tsx +7 -8
  78. package/src/components/common/Typography.tsx +12 -3
  79. package/src/components/common/customIcons.ts +2 -0
  80. package/src/components/common/mapExternalTheme.ts +1 -2
  81. package/src/components/customerPortal/paywall/CustomerPortalPaywall.style.ts +4 -3
  82. package/src/components/paywall/PlanOfferingButton.tsx +6 -8
  83. package/src/components/paywall/PlanPrice.tsx +14 -17
  84. package/src/components/utils/currencyUtils.ts +4 -2
  85. package/src/components/utils/getFeatureName.ts +13 -5
  86. package/src/stories/Checkout.stories.tsx +37 -5
  87. package/src/stories/CustomerPortal.stories.tsx +2 -2
  88. package/src/stories/mocks/checkout/consts.ts +15 -0
  89. package/src/stories/mocks/checkout/mockCheckoutPreview.ts +138 -0
  90. package/src/stories/mocks/checkout/mockCheckoutState.ts +206 -0
  91. package/src/theme/Theme.tsx +10 -1
  92. package/src/theme/getResolvedTheme.ts +1 -0
  93. package/src/theme/types.ts +1 -0
  94. package/dist/components/checkout/planHeader/PlanHeader.style.d.ts +0 -25
  95. package/src/components/checkout/planHeader/PlanHeader.style.tsx +0 -23
@@ -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 tieredPricing(): Price[] {
105
+ const feature = {
106
+ featureId: 'feature-campaigns',
107
+ displayName: 'Campaigns per month',
108
+ units: 'campaign',
109
+ unitsPlural: 'campaigns',
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,
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,
140
+ currency: Currency.Usd,
141
+ isTieredPrice: true,
142
+ },
143
+ ];
144
+ }
145
+
146
+ function perUnitPricing(): Price[] {
147
+ const feature = {
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,
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,
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, ...perUnitPricing(), ...tieredPricing()],
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
+ }
@@ -61,13 +61,22 @@ function createTypographyTheme(theme: StiggTheme): Partial<TypographyProps> {
61
61
  };
62
62
  }
63
63
 
64
+ const createMuiPalette = (theme: StiggTheme) => {
65
+ return {
66
+ primary: {
67
+ main: theme.palette.primary,
68
+ },
69
+ };
70
+ };
71
+
64
72
  export const SdkThemeProvider: React.FC<PropsWithChildren<SdkThemeProviderProps>> = ({ children, componentTheme }) => {
65
73
  const theme = useStiggTheme(componentTheme);
74
+ const muiPalette = createMuiPalette(theme);
66
75
 
67
76
  return (
68
77
  // We are using styled-components theme here only because we are using styled-typography
69
78
  // which depends on styled-components for the typography theming
70
- <MuiThemeProvider theme={createTheme({ stigg: theme })}>
79
+ <MuiThemeProvider theme={createTheme({ palette: muiPalette, stigg: theme })}>
71
80
  <ThemeProvider theme={{ stigg: theme }}>
72
81
  <CustomCssGlobal customCss={theme.customCss}>
73
82
  <Fonts externalFontUrl={theme.typography.fontFamilyUrl} />
@@ -21,6 +21,7 @@ export const getResolvedTheme = (customizedTheme?: CustomizedTheme): StiggTheme
21
21
  palette: {
22
22
  primary: primaryColor.hex(),
23
23
  primaryDark: primaryColor.darken(0.3).hex(),
24
+ primaryLight: primaryColor.lighten(0.6).hex(),
24
25
  backgroundPaper: '#FFFFFF',
25
26
  backgroundHighlight: '#F5F6F9',
26
27
  backgroundSection: primaryColor.alpha(0.1).toString(),
@@ -9,6 +9,7 @@ export type StiggTheme = {
9
9
  palette: {
10
10
  primary: string;
11
11
  primaryDark: string;
12
+ primaryLight: string;
12
13
  backgroundPaper: string;
13
14
  backgroundHighlight: string;
14
15
  backgroundSection: string;
@@ -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
- `;