@blocklet/payment-react 1.18.56 → 1.19.1

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 (251) hide show
  1. package/es/checkout/donate.d.ts +1 -15
  2. package/es/checkout/donate.js +301 -189
  3. package/es/checkout/form.d.ts +1 -15
  4. package/es/checkout/form.js +5 -13
  5. package/es/checkout/table.js +3 -3
  6. package/es/components/blockchain/gas.d.ts +1 -5
  7. package/es/components/blockchain/gas.js +10 -2
  8. package/es/components/blockchain/tx.d.ts +1 -8
  9. package/es/components/blockchain/tx.js +29 -10
  10. package/es/components/confirm.d.ts +1 -10
  11. package/es/components/confirm.js +4 -10
  12. package/es/components/country-select.d.ts +3 -2
  13. package/es/components/country-select.js +375 -352
  14. package/es/components/date-range-picker.d.ts +13 -0
  15. package/es/components/date-range-picker.js +279 -0
  16. package/es/components/input.d.ts +14 -20
  17. package/es/components/input.js +51 -44
  18. package/es/components/label.d.ts +7 -0
  19. package/es/components/label.js +49 -0
  20. package/es/components/lazy-loader.js +1 -2
  21. package/es/components/link.d.ts +2 -9
  22. package/es/components/link.js +9 -6
  23. package/es/components/livemode.d.ts +2 -8
  24. package/es/components/livemode.js +1 -5
  25. package/es/components/loading-button.d.ts +6 -1
  26. package/es/components/loading-button.js +56 -66
  27. package/es/components/over-due-invoice-payment.d.ts +0 -18
  28. package/es/components/over-due-invoice-payment.js +138 -95
  29. package/es/components/payment-beneficiaries.d.ts +2 -7
  30. package/es/components/payment-beneficiaries.js +86 -40
  31. package/es/components/pricing-item.d.ts +0 -5
  32. package/es/components/pricing-item.js +1 -4
  33. package/es/components/pricing-table.d.ts +2 -10
  34. package/es/components/pricing-table.js +8 -7
  35. package/es/components/resume-subscription.d.ts +0 -10
  36. package/es/components/resume-subscription.js +42 -21
  37. package/es/components/truncated-text.d.ts +2 -9
  38. package/es/components/truncated-text.js +0 -5
  39. package/es/contexts/donate.d.ts +0 -7
  40. package/es/contexts/donate.js +10 -8
  41. package/es/contexts/payment.d.ts +1 -4
  42. package/es/contexts/payment.js +7 -2
  43. package/es/history/credit/grants-list.d.ts +14 -0
  44. package/es/history/credit/grants-list.js +215 -0
  45. package/es/history/credit/transactions-list.d.ts +13 -0
  46. package/es/history/credit/transactions-list.js +255 -0
  47. package/es/history/invoice/list.d.ts +2 -18
  48. package/es/history/invoice/list.js +172 -74
  49. package/es/history/payment/list.js +115 -38
  50. package/es/hooks/keyboard.d.ts +1 -1
  51. package/es/hooks/keyboard.js +2 -4
  52. package/es/index.d.ts +5 -1
  53. package/es/index.js +10 -1
  54. package/es/libs/cached-request.js +2 -4
  55. package/es/libs/phone-validator.js +1 -2
  56. package/es/libs/util.d.ts +2 -0
  57. package/es/libs/util.js +14 -4
  58. package/es/libs/validator.js +2 -4
  59. package/es/locales/en.js +20 -2
  60. package/es/locales/zh.js +20 -2
  61. package/es/payment/amount.d.ts +2 -7
  62. package/es/payment/amount.js +1 -5
  63. package/es/payment/donation-form.d.ts +2 -10
  64. package/es/payment/donation-form.js +196 -160
  65. package/es/payment/error.d.ts +2 -8
  66. package/es/payment/error.js +40 -20
  67. package/es/payment/footer.d.ts +2 -3
  68. package/es/payment/footer.js +19 -6
  69. package/es/payment/form/addon.js +14 -4
  70. package/es/payment/form/address.d.ts +2 -9
  71. package/es/payment/form/address.js +3 -6
  72. package/es/payment/form/currency.js +45 -25
  73. package/es/payment/form/index.d.ts +2 -8
  74. package/es/payment/form/index.js +151 -71
  75. package/es/payment/form/phone.js +2 -4
  76. package/es/payment/form/stripe/form.d.ts +2 -8
  77. package/es/payment/form/stripe/form.js +1 -3
  78. package/es/payment/header.js +38 -16
  79. package/es/payment/index.d.ts +2 -9
  80. package/es/payment/index.js +23 -17
  81. package/es/payment/product-card.d.ts +2 -11
  82. package/es/payment/product-card.js +84 -50
  83. package/es/payment/product-donation.js +175 -114
  84. package/es/payment/product-item.d.ts +9 -9
  85. package/es/payment/product-item.js +320 -145
  86. package/es/payment/product-skeleton.js +2 -2
  87. package/es/payment/skeleton/donation.js +27 -7
  88. package/es/payment/skeleton/overview.js +22 -2
  89. package/es/payment/skeleton/payment.js +33 -5
  90. package/es/payment/success.d.ts +2 -9
  91. package/es/payment/success.js +41 -14
  92. package/es/payment/summary.d.ts +4 -17
  93. package/es/payment/summary.js +193 -111
  94. package/es/theme/index.d.ts +0 -5
  95. package/es/theme/index.js +2 -5
  96. package/es/theme/typography.d.ts +2 -2
  97. package/lib/checkout/donate.d.ts +1 -15
  98. package/lib/checkout/donate.js +75 -54
  99. package/lib/checkout/form.d.ts +1 -15
  100. package/lib/checkout/form.js +7 -15
  101. package/lib/checkout/table.js +4 -4
  102. package/lib/components/blockchain/gas.d.ts +1 -5
  103. package/lib/components/blockchain/gas.js +3 -2
  104. package/lib/components/blockchain/tx.d.ts +1 -8
  105. package/lib/components/blockchain/tx.js +15 -10
  106. package/lib/components/confirm.d.ts +1 -10
  107. package/lib/components/confirm.js +5 -11
  108. package/lib/components/country-select.d.ts +3 -2
  109. package/lib/components/country-select.js +23 -22
  110. package/lib/components/date-range-picker.d.ts +13 -0
  111. package/lib/components/date-range-picker.js +329 -0
  112. package/lib/components/input.d.ts +14 -20
  113. package/lib/components/input.js +28 -27
  114. package/lib/components/label.d.ts +7 -0
  115. package/lib/components/label.js +60 -0
  116. package/lib/components/lazy-loader.js +1 -1
  117. package/lib/components/link.d.ts +2 -9
  118. package/lib/components/link.js +3 -8
  119. package/lib/components/livemode.d.ts +2 -8
  120. package/lib/components/livemode.js +3 -7
  121. package/lib/components/loading-button.d.ts +6 -1
  122. package/lib/components/loading-button.js +9 -17
  123. package/lib/components/over-due-invoice-payment.d.ts +0 -18
  124. package/lib/components/over-due-invoice-payment.js +31 -33
  125. package/lib/components/payment-beneficiaries.d.ts +2 -7
  126. package/lib/components/payment-beneficiaries.js +12 -11
  127. package/lib/components/pricing-item.d.ts +0 -5
  128. package/lib/components/pricing-item.js +2 -5
  129. package/lib/components/pricing-table.d.ts +2 -10
  130. package/lib/components/pricing-table.js +5 -11
  131. package/lib/components/resume-subscription.d.ts +0 -10
  132. package/lib/components/resume-subscription.js +16 -16
  133. package/lib/components/table.js +1 -1
  134. package/lib/components/truncated-text.d.ts +2 -9
  135. package/lib/components/truncated-text.js +1 -6
  136. package/lib/contexts/donate.d.ts +0 -7
  137. package/lib/contexts/donate.js +4 -7
  138. package/lib/contexts/payment.d.ts +1 -4
  139. package/lib/contexts/payment.js +4 -7
  140. package/lib/history/credit/grants-list.d.ts +14 -0
  141. package/lib/history/credit/grants-list.js +277 -0
  142. package/lib/history/credit/transactions-list.d.ts +13 -0
  143. package/lib/history/credit/transactions-list.js +301 -0
  144. package/lib/history/invoice/list.d.ts +2 -18
  145. package/lib/history/invoice/list.js +73 -37
  146. package/lib/history/payment/list.js +30 -16
  147. package/lib/hooks/keyboard.d.ts +1 -1
  148. package/lib/hooks/mobile.js +1 -1
  149. package/lib/hooks/subscription.js +1 -1
  150. package/lib/index.d.ts +5 -1
  151. package/lib/index.js +41 -2
  152. package/lib/libs/api.js +1 -1
  153. package/lib/libs/dayjs.js +1 -1
  154. package/lib/libs/phone-validator.js +0 -2
  155. package/lib/libs/theme.js +1 -1
  156. package/lib/libs/util.d.ts +2 -0
  157. package/lib/libs/util.js +15 -1
  158. package/lib/libs/validator.js +1 -1
  159. package/lib/locales/en.js +21 -3
  160. package/lib/locales/index.js +1 -1
  161. package/lib/locales/zh.js +21 -3
  162. package/lib/payment/amount.d.ts +2 -7
  163. package/lib/payment/amount.js +2 -6
  164. package/lib/payment/donation-form.d.ts +2 -10
  165. package/lib/payment/donation-form.js +33 -38
  166. package/lib/payment/error.d.ts +2 -8
  167. package/lib/payment/error.js +11 -13
  168. package/lib/payment/footer.d.ts +2 -3
  169. package/lib/payment/footer.js +5 -5
  170. package/lib/payment/form/addon.js +5 -3
  171. package/lib/payment/form/address.d.ts +2 -9
  172. package/lib/payment/form/address.js +5 -8
  173. package/lib/payment/form/currency.js +3 -3
  174. package/lib/payment/form/index.d.ts +2 -8
  175. package/lib/payment/form/index.js +64 -21
  176. package/lib/payment/form/phone.js +1 -1
  177. package/lib/payment/form/stripe/form.d.ts +2 -8
  178. package/lib/payment/form/stripe/form.js +3 -6
  179. package/lib/payment/header.js +8 -4
  180. package/lib/payment/index.d.ts +2 -9
  181. package/lib/payment/index.js +27 -18
  182. package/lib/payment/product-card.d.ts +2 -11
  183. package/lib/payment/product-card.js +13 -20
  184. package/lib/payment/product-donation.js +71 -66
  185. package/lib/payment/product-item.d.ts +9 -9
  186. package/lib/payment/product-item.js +168 -29
  187. package/lib/payment/product-skeleton.js +2 -2
  188. package/lib/payment/skeleton/donation.js +8 -4
  189. package/lib/payment/skeleton/overview.js +6 -2
  190. package/lib/payment/skeleton/payment.js +9 -3
  191. package/lib/payment/success.d.ts +2 -9
  192. package/lib/payment/success.js +12 -15
  193. package/lib/payment/summary.d.ts +4 -17
  194. package/lib/payment/summary.js +53 -45
  195. package/lib/theme/index.d.ts +0 -5
  196. package/lib/theme/index.js +2 -5
  197. package/lib/theme/typography.d.ts +2 -2
  198. package/package.json +40 -40
  199. package/src/checkout/donate.tsx +103 -35
  200. package/src/checkout/form.tsx +5 -14
  201. package/src/checkout/table.tsx +3 -3
  202. package/src/components/blockchain/gas.tsx +5 -3
  203. package/src/components/blockchain/tx.tsx +19 -11
  204. package/src/components/confirm.tsx +4 -11
  205. package/src/components/country-select.tsx +391 -378
  206. package/src/components/date-range-picker.tsx +310 -0
  207. package/src/components/input.tsx +61 -46
  208. package/src/components/label.tsx +58 -0
  209. package/src/components/link.tsx +9 -7
  210. package/src/components/livemode.tsx +2 -6
  211. package/src/components/loading-button.tsx +63 -76
  212. package/src/components/over-due-invoice-payment.tsx +43 -28
  213. package/src/components/payment-beneficiaries.tsx +33 -14
  214. package/src/components/pricing-item.tsx +1 -4
  215. package/src/components/pricing-table.tsx +8 -8
  216. package/src/components/resume-subscription.tsx +20 -14
  217. package/src/components/table.tsx +2 -2
  218. package/src/components/truncated-text.tsx +0 -6
  219. package/src/contexts/donate.tsx +6 -7
  220. package/src/contexts/payment.tsx +7 -3
  221. package/src/history/credit/grants-list.tsx +276 -0
  222. package/src/history/credit/transactions-list.tsx +317 -0
  223. package/src/history/invoice/list.tsx +92 -36
  224. package/src/history/payment/list.tsx +53 -16
  225. package/src/hooks/keyboard.ts +1 -1
  226. package/src/index.ts +9 -0
  227. package/src/libs/util.ts +14 -0
  228. package/src/locales/en.tsx +20 -0
  229. package/src/locales/zh.tsx +19 -0
  230. package/src/payment/amount.tsx +1 -6
  231. package/src/payment/donation-form.tsx +47 -29
  232. package/src/payment/error.tsx +16 -8
  233. package/src/payment/footer.tsx +11 -3
  234. package/src/payment/form/addon.tsx +6 -1
  235. package/src/payment/form/address.tsx +3 -7
  236. package/src/payment/form/currency.tsx +12 -2
  237. package/src/payment/form/index.tsx +121 -45
  238. package/src/payment/form/stripe/form.tsx +1 -5
  239. package/src/payment/header.tsx +14 -2
  240. package/src/payment/index.tsx +27 -22
  241. package/src/payment/product-card.tsx +41 -18
  242. package/src/payment/product-donation.tsx +85 -47
  243. package/src/payment/product-item.tsx +198 -28
  244. package/src/payment/product-skeleton.tsx +3 -2
  245. package/src/payment/skeleton/donation.tsx +12 -2
  246. package/src/payment/skeleton/overview.tsx +12 -2
  247. package/src/payment/skeleton/payment.tsx +16 -3
  248. package/src/payment/success.tsx +26 -15
  249. package/src/payment/summary.tsx +87 -44
  250. package/src/theme/index.tsx +5 -8
  251. package/src/theme/typography.ts +2 -2
@@ -62,6 +62,7 @@ type Props = {
62
62
  showStaking?: boolean;
63
63
  onUpsell?: Function;
64
64
  onDownsell?: Function;
65
+ onQuantityChange?: Function;
65
66
  onChangeAmount?: Function;
66
67
  onApplyCrossSell?: Function;
67
68
  onCancelCrossSell?: Function;
@@ -69,6 +70,7 @@ type Props = {
69
70
  crossSellBehavior?: string;
70
71
  donationSettings?: DonationSettings; // only include backend part
71
72
  action?: string;
73
+ completed?: boolean;
72
74
  };
73
75
 
74
76
  async function fetchCrossSell(id: string) {
@@ -118,37 +120,24 @@ function getStakingSetup(items: TLineItemExpanded[], currency: TPaymentCurrency,
118
120
 
119
121
  return '0';
120
122
  }
121
-
122
- PaymentSummary.defaultProps = {
123
- onUpsell: noop,
124
- onDownsell: noop,
125
- onApplyCrossSell: noop,
126
- onCancelCrossSell: noop,
127
- onChangeAmount: noop,
128
- checkoutSessionId: '',
129
- crossSellBehavior: '',
130
- showStaking: false,
131
- donationSettings: null,
132
- action: '',
133
- trialEnd: 0,
134
- };
135
-
136
123
  export default function PaymentSummary({
137
124
  items,
138
125
  currency,
139
126
  trialInDays,
140
127
  billingThreshold,
141
- onUpsell,
142
- onDownsell,
143
- onApplyCrossSell,
144
- onCancelCrossSell,
145
- onChangeAmount,
146
- checkoutSessionId,
147
- crossSellBehavior,
148
- showStaking,
149
- donationSettings,
150
- action,
128
+ onUpsell = noop,
129
+ onDownsell = noop,
130
+ onQuantityChange = noop,
131
+ onApplyCrossSell = noop,
132
+ onCancelCrossSell = noop,
133
+ onChangeAmount = noop,
134
+ checkoutSessionId = '',
135
+ crossSellBehavior = '',
136
+ showStaking = false,
137
+ donationSettings = undefined,
138
+ action = '',
151
139
  trialEnd = 0,
140
+ completed = false,
152
141
  ...rest
153
142
  }: Props) {
154
143
  const { t, locale } = useLocaleContext();
@@ -181,6 +170,11 @@ export default function PaymentSummary({
181
170
  runAsync();
182
171
  };
183
172
 
173
+ const handleQuantityChange = async (itemId: string, quantity: number) => {
174
+ await onQuantityChange!(itemId, quantity);
175
+ runAsync();
176
+ };
177
+
184
178
  const handleDownsell = async (from: string) => {
185
179
  await onDownsell!(from);
186
180
  runAsync();
@@ -236,9 +230,18 @@ export default function PaymentSummary({
236
230
  trialEnd={trialEnd}
237
231
  currency={currency}
238
232
  onUpsell={handleUpsell}
239
- onDownsell={handleDownsell}>
233
+ onDownsell={handleDownsell}
234
+ adjustableQuantity={x.adjustable_quantity}
235
+ completed={completed}
236
+ onQuantityChange={handleQuantityChange}>
240
237
  {x.cross_sell && (
241
- <Stack direction="row" alignItems="center" justifyContent="space-between" sx={{ width: 1 }}>
238
+ <Stack
239
+ direction="row"
240
+ sx={{
241
+ alignItems: 'center',
242
+ justifyContent: 'space-between',
243
+ width: 1,
244
+ }}>
242
245
  <Typography />
243
246
  <LoadingButton
244
247
  size="small"
@@ -258,7 +261,10 @@ export default function PaymentSummary({
258
261
  </Stack>
259
262
  {data && items.some((x) => x.price_id === data.id) === false && (
260
263
  <Grow in>
261
- <Stack mt={1}>
264
+ <Stack
265
+ sx={{
266
+ mt: 1,
267
+ }}>
262
268
  <ProductItem
263
269
  item={{ quantity: 1, price: data, price_id: data.id, cross_sell: true } as TLineItemExpanded}
264
270
  items={items}
@@ -267,7 +273,13 @@ export default function PaymentSummary({
267
273
  trialEnd={trialEnd}
268
274
  onUpsell={noop}
269
275
  onDownsell={noop}>
270
- <Stack direction="row" alignItems="center" justifyContent="space-between" sx={{ width: 1 }}>
276
+ <Stack
277
+ direction="row"
278
+ sx={{
279
+ alignItems: 'center',
280
+ justifyContent: 'space-between',
281
+ width: 1,
282
+ }}>
271
283
  <Typography>
272
284
  {crossSellBehavior === 'required' && (
273
285
  <Status label={t('payment.checkout.required')} color="info" variant="outlined" sx={{ mr: 1 }} />
@@ -293,7 +305,12 @@ export default function PaymentSummary({
293
305
  return (
294
306
  <Fade in>
295
307
  <Stack className="cko-product" direction="column" {...rest}>
296
- <Box display="flex" alignItems="center" sx={{ mb: 2.5 }}>
308
+ <Box
309
+ sx={{
310
+ display: 'flex',
311
+ alignItems: 'center',
312
+ mb: 2.5,
313
+ }}>
297
314
  <Typography
298
315
  title={t('payment.checkout.orderSummary')}
299
316
  sx={{
@@ -312,11 +329,13 @@ export default function PaymentSummary({
312
329
  {isMobile && !donationSettings ? (
313
330
  <>
314
331
  <Stack
315
- justifyContent="space-between"
316
- flexDirection="row"
317
- alignItems="center"
318
- mb={1.5}
319
- onClick={() => setState({ expanded: !state.expanded })}>
332
+ onClick={() => setState({ expanded: !state.expanded })}
333
+ sx={{
334
+ justifyContent: 'space-between',
335
+ flexDirection: 'row',
336
+ alignItems: 'center',
337
+ mb: 1.5,
338
+ }}>
320
339
  <Typography>{t('payment.checkout.productListTotal', { total: items.length })}</Typography>
321
340
  <ExpandMore expand={state.expanded} aria-expanded={state.expanded} aria-label="show more">
322
341
  <ExpandMoreIcon />
@@ -333,8 +352,19 @@ export default function PaymentSummary({
333
352
  <Divider sx={{ mt: 2.5, mb: 2.5 }} />
334
353
  {staking > 0 && (
335
354
  <>
336
- <Stack direction="row" justifyContent="space-between" alignItems="center" spacing={1}>
337
- <Stack direction="row" alignItems="center" spacing={0.5}>
355
+ <Stack
356
+ direction="row"
357
+ spacing={1}
358
+ sx={{
359
+ justifyContent: 'space-between',
360
+ alignItems: 'center',
361
+ }}>
362
+ <Stack
363
+ direction="row"
364
+ spacing={0.5}
365
+ sx={{
366
+ alignItems: 'center',
367
+ }}>
338
368
  <Typography sx={{ color: 'text.secondary' }}>{t('payment.checkout.paymentRequired')}</Typography>
339
369
  <Tooltip title={t('payment.checkout.stakingConfirm')} placement="top" sx={{ maxWidth: '150px' }}>
340
370
  <HelpOutline fontSize="small" sx={{ color: 'text.lighter' }} />
@@ -342,8 +372,19 @@ export default function PaymentSummary({
342
372
  </Stack>
343
373
  <Typography>{headlines.amount}</Typography>
344
374
  </Stack>
345
- <Stack direction="row" justifyContent="space-between" alignItems="center" spacing={1}>
346
- <Stack direction="row" alignItems="center" spacing={0.5}>
375
+ <Stack
376
+ direction="row"
377
+ spacing={1}
378
+ sx={{
379
+ justifyContent: 'space-between',
380
+ alignItems: 'center',
381
+ }}>
382
+ <Stack
383
+ direction="row"
384
+ spacing={0.5}
385
+ sx={{
386
+ alignItems: 'center',
387
+ }}>
347
388
  <Typography sx={{ color: 'text.secondary' }}>{t('payment.checkout.staking.title')}</Typography>
348
389
  <Tooltip title={t('payment.checkout.staking.tooltip')} placement="top" sx={{ maxWidth: '150px' }}>
349
390
  <HelpOutline fontSize="small" sx={{ color: 'text.lighter' }} />
@@ -356,11 +397,13 @@ export default function PaymentSummary({
356
397
  </>
357
398
  )}
358
399
  <Stack
359
- display="flex"
360
- justifyContent="space-between"
361
- flexDirection="row"
362
- alignItems="center"
363
- sx={{ width: '100%' }}>
400
+ sx={{
401
+ display: 'flex',
402
+ justifyContent: 'space-between',
403
+ flexDirection: 'row',
404
+ alignItems: 'center',
405
+ width: '100%',
406
+ }}>
364
407
  <Box className="base-label">{t('common.total')} </Box>
365
408
  <PaymentAmount amount={`${totalAmount} ${currency.symbol}`} sx={{ fontSize: '16px' }} />
366
409
  </Stack>
@@ -10,10 +10,6 @@ import './types';
10
10
  import { typography } from './typography';
11
11
  import { type PaymentThemeOptions } from '../types';
12
12
 
13
- PaymentThemeProvider.defaultProps = {
14
- theme: {},
15
- };
16
-
17
13
  export function PaymentThemeProvider({
18
14
  children,
19
15
  theme: customTheme = {},
@@ -26,6 +22,7 @@ export function PaymentThemeProvider({
26
22
  const parentTheme = useTheme();
27
23
 
28
24
  const mergeTheme = useMemo(() => {
25
+ // @ts-ignore
29
26
  const blockletTheme = parentTheme.themeName === 'ArcBlock' ? parentTheme : createBlockletTheme();
30
27
  const { mode } = blockletTheme.palette;
31
28
 
@@ -187,7 +184,7 @@ export function PaymentThemeProvider({
187
184
  styleOverrides: {
188
185
  '.base-card': {
189
186
  padding: '20px',
190
- borderRadius: 1.5 * borderRadius, // 12px
187
+ borderRadius: 1.5 * (borderRadius as number), // 12px
191
188
  background: palette.background.default,
192
189
  border: `1px solid ${palette.divider}`,
193
190
  boxShadow: shadows[1],
@@ -262,7 +259,7 @@ export function PaymentThemeProvider({
262
259
  MuiChip: {
263
260
  styleOverrides: {
264
261
  root: {
265
- borderRadius: `${borderRadius * 2}px`,
262
+ borderRadius: `${(borderRadius as number) * 2}px`,
266
263
  border: '1px solid transparent',
267
264
  '&.MuiChip-filledSuccess': {
268
265
  color: palette.chip.success.text,
@@ -274,7 +271,7 @@ export function PaymentThemeProvider({
274
271
  backgroundColor: palette.chip.default.background,
275
272
  borderColor: palette.chip.default.border,
276
273
  },
277
- '&.MuiChip-filledSecondary': {
274
+ '&.MuiChip-filled.MuiChip-colorSecondary': {
278
275
  color: palette.chip.secondary.text,
279
276
  backgroundColor: palette.chip.secondary.background,
280
277
  borderColor: palette.chip.secondary.border,
@@ -289,7 +286,7 @@ export function PaymentThemeProvider({
289
286
  backgroundColor: palette.chip.warning.background,
290
287
  borderColor: palette.chip.warning.border,
291
288
  },
292
- '&.MuiChip-filledPrimary,&.MuiChip-filledInfo': {
289
+ '&.MuiChip-filled.MuiChip-colorPrimary,&.MuiChip-filledInfo': {
293
290
  color: palette.chip.info.text,
294
291
  backgroundColor: palette.chip.info.background,
295
292
  borderColor: palette.chip.info.border,
@@ -1,6 +1,6 @@
1
- import type { TypographyOptions } from '@mui/material/styles/createTypography';
1
+ import type { TypographyStyleOptions } from '@mui/material/styles/createTypography';
2
2
 
3
- export const typography: TypographyOptions = {
3
+ export const typography: TypographyStyleOptions = {
4
4
  h1: {
5
5
  fontSize: '1.5rem',
6
6
  lineHeight: 1.2,