@blocklet/payment-react 1.18.7 → 1.18.9

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 (58) hide show
  1. package/es/checkout/donate.d.ts +2 -0
  2. package/es/checkout/donate.js +188 -89
  3. package/es/components/livemode.js +1 -1
  4. package/es/components/table.js +1 -1
  5. package/es/index.d.ts +2 -2
  6. package/es/index.js +3 -2
  7. package/es/libs/util.d.ts +1 -0
  8. package/es/libs/util.js +10 -1
  9. package/es/payment/amount.js +1 -1
  10. package/es/payment/form/index.js +1 -1
  11. package/es/payment/form/stripe/form.js +1 -1
  12. package/es/payment/product-card.js +2 -2
  13. package/es/payment/product-item.js +1 -1
  14. package/es/payment/product-skeleton.js +2 -2
  15. package/es/payment/skeleton/donation.js +1 -1
  16. package/es/payment/skeleton/overview.js +1 -1
  17. package/es/payment/skeleton/payment.js +1 -1
  18. package/es/payment/summary.js +1 -1
  19. package/es/theme/index.js +3 -2
  20. package/es/theme/typography.js +8 -8
  21. package/lib/checkout/donate.d.ts +2 -0
  22. package/lib/checkout/donate.js +194 -129
  23. package/lib/components/livemode.js +1 -1
  24. package/lib/components/table.js +1 -1
  25. package/lib/index.d.ts +2 -2
  26. package/lib/index.js +11 -2
  27. package/lib/libs/util.d.ts +1 -0
  28. package/lib/libs/util.js +7 -0
  29. package/lib/payment/amount.js +1 -1
  30. package/lib/payment/form/index.js +2 -2
  31. package/lib/payment/form/stripe/form.js +1 -1
  32. package/lib/payment/product-card.js +2 -2
  33. package/lib/payment/product-item.js +1 -1
  34. package/lib/payment/product-skeleton.js +2 -2
  35. package/lib/payment/skeleton/donation.js +1 -1
  36. package/lib/payment/skeleton/overview.js +1 -1
  37. package/lib/payment/skeleton/payment.js +1 -1
  38. package/lib/payment/summary.js +1 -1
  39. package/lib/theme/index.js +3 -2
  40. package/lib/theme/typography.js +8 -8
  41. package/package.json +8 -8
  42. package/src/checkout/donate.tsx +176 -112
  43. package/src/components/livemode.tsx +1 -1
  44. package/src/components/table.tsx +1 -1
  45. package/src/index.ts +2 -1
  46. package/src/libs/util.ts +11 -1
  47. package/src/payment/amount.tsx +1 -1
  48. package/src/payment/form/index.tsx +1 -1
  49. package/src/payment/form/stripe/form.tsx +1 -1
  50. package/src/payment/product-card.tsx +2 -2
  51. package/src/payment/product-item.tsx +1 -1
  52. package/src/payment/product-skeleton.tsx +2 -2
  53. package/src/payment/skeleton/donation.tsx +1 -1
  54. package/src/payment/skeleton/overview.tsx +1 -1
  55. package/src/payment/skeleton/payment.tsx +1 -1
  56. package/src/payment/summary.tsx +1 -1
  57. package/src/theme/index.tsx +2 -1
  58. package/src/theme/typography.ts +8 -8
@@ -2,7 +2,7 @@ import type { TypographyOptions } from '@mui/material/styles/createTypography';
2
2
 
3
3
  export const typography: TypographyOptions = {
4
4
  h1: {
5
- fontSize: '1.875rem',
5
+ fontSize: '1.5rem',
6
6
  lineHeight: 1.2,
7
7
  fontWeight: 800,
8
8
  letterSpacing: '-.025em',
@@ -14,38 +14,38 @@ export const typography: TypographyOptions = {
14
14
  letterSpacing: '-.025em',
15
15
  },
16
16
  h3: {
17
- fontSize: '1.25rem',
17
+ fontSize: '1.09375rem',
18
18
  lineHeight: 1.4,
19
19
  fontWeight: 600,
20
20
  letterSpacing: '-.025em',
21
21
  },
22
22
  h4: {
23
- fontSize: '1.125rem',
23
+ fontSize: '1.09375rem',
24
24
  lineHeight: 1.5,
25
25
  fontWeight: 600,
26
26
  },
27
27
  h5: {
28
- fontSize: '1rem',
28
+ fontSize: '0.875rem',
29
29
  lineHeight: 1.75,
30
30
  fontWeight: 400,
31
31
  },
32
32
  h6: {
33
- fontSize: '1rem',
33
+ fontSize: '0.875rem',
34
34
  lineHeight: 1.75,
35
35
  fontWeight: 400,
36
36
  },
37
37
  subtitle1: {
38
- fontSize: '1rem',
38
+ fontSize: '0.875rem',
39
39
  lineHeight: 1.75,
40
40
  fontWeight: 400,
41
41
  },
42
42
  subtitle2: {
43
- fontSize: '1rem',
43
+ fontSize: '0.875rem',
44
44
  lineHeight: 1.75,
45
45
  fontWeight: 400,
46
46
  },
47
47
  body1: {
48
- fontSize: '1rem',
48
+ fontSize: '0.875rem',
49
49
  lineHeight: 1.75,
50
50
  },
51
51