@blocklet/payment-react 1.18.37 → 1.18.39

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 (66) hide show
  1. package/es/checkout/donate.js +11 -12
  2. package/es/components/blockchain/tx.js +1 -1
  3. package/es/components/country-select.js +5 -4
  4. package/es/components/over-due-invoice-payment.js +7 -5
  5. package/es/components/pricing-table.js +8 -7
  6. package/es/components/table.js +9 -7
  7. package/es/history/invoice/list.js +1 -1
  8. package/es/payment/donation-form.js +4 -5
  9. package/es/payment/form/address.js +2 -2
  10. package/es/payment/form/currency.js +6 -17
  11. package/es/payment/form/index.js +1 -1
  12. package/es/payment/form/phone.js +2 -2
  13. package/es/payment/index.js +18 -17
  14. package/es/payment/product-item.js +6 -6
  15. package/es/payment/product-skeleton.js +2 -1
  16. package/es/payment/success.js +3 -4
  17. package/es/theme/index.css +37 -0
  18. package/es/theme/index.d.ts +4 -3
  19. package/es/theme/index.js +264 -240
  20. package/es/theme/types.d.ts +76 -0
  21. package/es/theme/types.js +2 -0
  22. package/es/theme/typography.js +1 -5
  23. package/lib/checkout/donate.js +11 -12
  24. package/lib/components/blockchain/tx.js +3 -1
  25. package/lib/components/country-select.js +7 -4
  26. package/lib/components/over-due-invoice-payment.js +6 -4
  27. package/lib/components/pricing-table.js +10 -7
  28. package/lib/components/table.js +23 -7
  29. package/lib/history/invoice/list.js +1 -1
  30. package/lib/payment/donation-form.js +9 -5
  31. package/lib/payment/form/address.js +2 -2
  32. package/lib/payment/form/currency.js +14 -17
  33. package/lib/payment/form/index.js +1 -1
  34. package/lib/payment/form/phone.js +2 -2
  35. package/lib/payment/index.js +41 -17
  36. package/lib/payment/product-item.js +6 -6
  37. package/lib/payment/product-skeleton.js +2 -1
  38. package/lib/payment/success.js +3 -4
  39. package/lib/theme/index.css +37 -0
  40. package/lib/theme/index.d.ts +4 -3
  41. package/lib/theme/index.js +257 -232
  42. package/lib/theme/types.d.ts +76 -0
  43. package/lib/theme/types.js +4 -0
  44. package/lib/theme/typography.js +1 -5
  45. package/package.json +9 -8
  46. package/src/checkout/donate.tsx +11 -12
  47. package/src/components/blockchain/tx.tsx +1 -1
  48. package/src/components/country-select.tsx +5 -4
  49. package/src/components/over-due-invoice-payment.tsx +7 -5
  50. package/src/components/pricing-table.tsx +11 -9
  51. package/src/components/table.tsx +9 -7
  52. package/src/history/invoice/list.tsx +1 -1
  53. package/src/payment/donation-form.tsx +4 -5
  54. package/src/payment/form/address.tsx +2 -2
  55. package/src/payment/form/currency.tsx +6 -17
  56. package/src/payment/form/index.tsx +1 -1
  57. package/src/payment/form/phone.tsx +2 -2
  58. package/src/payment/index.tsx +18 -25
  59. package/src/payment/product-item.tsx +6 -6
  60. package/src/payment/product-skeleton.tsx +2 -1
  61. package/src/payment/success.tsx +3 -4
  62. package/src/theme/index.css +37 -0
  63. package/src/theme/index.tsx +263 -237
  64. package/src/theme/types.ts +78 -0
  65. package/src/theme/typography.ts +0 -5
  66. package/src/types/index.ts +1 -0
@@ -77,11 +77,12 @@ function DonateDetails({
77
77
  sx: {
78
78
  padding: "6px",
79
79
  "&:hover": {
80
- backgroundColor: "var(--backgrounds-bg-highlight, #eff6ff)",
80
+ backgroundColor: theme => theme.palette.grey[100],
81
81
  transition: "background-color 200ms linear",
82
82
  cursor: "pointer"
83
83
  },
84
- borderBottom: "1px solid var(--stroke-border-base, #EFF1F5)",
84
+ borderBottom: "1px solid",
85
+ borderColor: "grey.100",
85
86
  display: "flex",
86
87
  justifyContent: "space-between",
87
88
  alignItems: "center"
@@ -212,12 +213,12 @@ function SupporterAvatar({
212
213
  pr: 1,
213
214
  ml: -1,
214
215
  borderRadius: "8px",
215
- backgroundColor: "#f4f4f5",
216
+ backgroundColor: "grey.100",
216
217
  height: "24px",
217
218
  ...(showDonateDetails ? {
218
219
  cursor: "pointer",
219
220
  "&:hover": {
220
- backgroundColor: "#e5e7eb"
221
+ backgroundColor: "grey.200"
221
222
  }
222
223
  } : {})
223
224
  },
@@ -521,7 +522,8 @@ function CheckoutDonateInner({
521
522
  display: "flex",
522
523
  justifyContent: "center",
523
524
  alignItems: "center",
524
- backgroundColor: "rgba(255, 255, 255, 0.7)"
525
+ backgroundColor: "background.paper",
526
+ opacity: 0.8
525
527
  },
526
528
  children: /* @__PURE__ */(0, _jsxRuntime.jsx)(_material.CircularProgress, {})
527
529
  }), /* @__PURE__ */(0, _jsxRuntime.jsxs)(_material.Box, {
@@ -569,12 +571,8 @@ function CheckoutDonateInner({
569
571
  variant: donateSettings.appearance?.button?.variant || "outlined",
570
572
  sx: {
571
573
  ...(!donateSettings.appearance?.button?.variant ? {
572
- color: "var(--foregrounds-fg-base, #010714)",
573
- borderColor: "var(--stroke-button-secondary-border, #E5E7EB)",
574
- "&:hover": {
575
- backgroundColor: "var(--buttons-button-neutral-hover, #F3F4F6)",
576
- borderColor: "var(--stroke-button-secondary-border, #E5E7EB)"
577
- }
574
+ color: "primary.main",
575
+ borderColor: "grey.200"
578
576
  } : {}),
579
577
  // @ts-ignore
580
578
  ...(donateSettings.appearance?.button?.sx || {})
@@ -691,7 +689,8 @@ function CheckoutDonateInner({
691
689
  sx: {
692
690
  ".MuiDialogContent-root": {
693
691
  padding: "16px 24px",
694
- borderTop: "1px solid var(--stroke-border-base, #EFF1F5)",
692
+ borderTop: "1px solid",
693
+ borderColor: "grey.100",
695
694
  width: "100%"
696
695
  },
697
696
  ".ux-dialog_header": {
@@ -44,7 +44,9 @@ function TxLink(props) {
44
44
  spacing: 1,
45
45
  children: [/* @__PURE__ */(0, _jsxRuntime.jsx)(_material.Typography, {
46
46
  component: "span",
47
- color: "text.link",
47
+ sx: {
48
+ color: "text.link"
49
+ },
48
50
  children: text.length > 40 ? [text.slice(0, 6), text.slice(-6)].join("...") : text
49
51
  }), /* @__PURE__ */(0, _jsxRuntime.jsx)(_iconsMaterial.OpenInNewOutlined, {
50
52
  fontSize: "small"
@@ -218,13 +218,13 @@ const CountrySelect = (0, _react.forwardRef)(({
218
218
  display: "flex",
219
219
  alignItems: "center",
220
220
  "&.Mui-selected": {
221
- backgroundColor: "rgba(0, 0, 0, 0.04)"
221
+ backgroundColor: "primary.lighter"
222
222
  },
223
223
  "&:hover": {
224
- backgroundColor: "var(--backgrounds-bg-highlight, #eff6ff)"
224
+ backgroundColor: "grey.100"
225
225
  },
226
226
  ...(isFocused ? {
227
- backgroundColor: "var(--backgrounds-bg-highlight, #eff6ff)",
227
+ backgroundColor: "grey.100",
228
228
  outline: "none"
229
229
  } : {})
230
230
  },
@@ -387,6 +387,7 @@ const CountrySelect = (0, _react.forwardRef)(({
387
387
  position: "absolute",
388
388
  bottom: 0,
389
389
  m: 0,
390
+ p: 0,
390
391
  borderBottomLeftRadius: 0,
391
392
  borderBottomRightRadius: 0,
392
393
  width: "100%"
@@ -412,7 +413,9 @@ const CountrySelect = (0, _react.forwardRef)(({
412
413
  })]
413
414
  }), /* @__PURE__ */(0, _jsxRuntime.jsx)(_material.DialogContent, {
414
415
  sx: {
415
- p: 0
416
+ "&.MuiDialogContent-root": {
417
+ p: 0
418
+ }
416
419
  },
417
420
  children: countryListContent
418
421
  })]
@@ -52,6 +52,7 @@ function OverdueInvoicePayment({
52
52
  t,
53
53
  locale
54
54
  } = (0, _context.useLocaleContext)();
55
+ const theme = (0, _material.useTheme)();
55
56
  const {
56
57
  connect,
57
58
  session
@@ -415,7 +416,7 @@ function OverdueInvoicePayment({
415
416
  onClick: handleViewDetailClick,
416
417
  rel: "noreferrer",
417
418
  style: {
418
- color: "var(--foregrounds-fg-interactive, 0086FF)"
419
+ color: theme.palette.text.link
419
420
  },
420
421
  children: getDetailLinkText()
421
422
  })]
@@ -443,7 +444,7 @@ function OverdueInvoicePayment({
443
444
  rel: "noreferrer",
444
445
  onClick: handleViewDetailClick,
445
446
  style: {
446
- color: "var(--foregrounds-fg-interactive, 0086FF)"
447
+ color: theme.palette.text.link
447
448
  },
448
449
  children: getDetailLinkText()
449
450
  })]
@@ -460,9 +461,10 @@ function OverdueInvoicePayment({
460
461
  sx: {
461
462
  py: 1,
462
463
  px: 0.5,
463
- borderBottom: "1px solid var(--foregrounds-fg-border, #E0E0E0)",
464
+ borderBottom: "1px solid",
465
+ borderColor: "grey.200",
464
466
  "&:hover": {
465
- background: "var(--backgrounds-bg-highlight, #eff6ff)"
467
+ backgroundColor: () => theme.palette.grey[100]
466
468
  },
467
469
  mt: 0
468
470
  },
@@ -250,7 +250,7 @@ function PricingTable({
250
250
  borderRadius: "36px",
251
251
  height: "40px",
252
252
  boxSizing: "border-box",
253
- backgroundColor: "#f1f3f5",
253
+ backgroundColor: "grey.100",
254
254
  border: 0
255
255
  },
256
256
  onChange: (_, value) => {
@@ -268,11 +268,14 @@ function PricingTable({
268
268
  textTransform: "capitalize",
269
269
  padding: "5px 12px",
270
270
  fontSize: "13px",
271
- backgroundColor: x === state.interval ? "#fff !important" : "#f1f3f5 !important",
271
+ backgroundColor: ({
272
+ palette
273
+ }) => x === state.interval ? `${palette.background.default} !important` : `${palette.grey[100]} !important`,
272
274
  border: "0px",
273
275
  "&.Mui-selected": {
274
276
  borderRadius: "9999px !important",
275
- border: "1px solid #e5e7eb"
277
+ border: "1px solid",
278
+ borderColor: "divider"
276
279
  }
277
280
  },
278
281
  children: (0, _util2.formatRecurring)(recurring[x], true, "", locale)
@@ -334,13 +337,13 @@ function PricingTable({
334
337
  cursor: "pointer",
335
338
  borderWidth: "1px",
336
339
  borderStyle: "solid",
337
- borderColor: mode === "select" && x.is_selected ? "primary.main" : "#eee",
340
+ borderColor: mode === "select" && x.is_selected ? "primary.main" : "grey.100",
338
341
  borderRadius: 2,
339
342
  transition: "border-color 0.3s ease 0s, box-shadow 0.3s ease 0s",
340
- boxShadow: "0px 0px 0px 1px rgba(3, 7, 18, 0.08), 0px 1px 2px -1px rgba(3, 7, 18, 0.08), 0px 2px 4px rgba(3, 7, 18, 0.04)",
343
+ boxShadow: 2,
341
344
  "&:hover": {
342
- borderColor: mode === "select" && x.is_selected ? "primary.main" : "#ddd",
343
- boxShadow: "0px 0px 0px 1px var(--shadows-card-hover-1, rgba(2, 7, 19, 0.08)),0px 1px 2px -1px var(--shadows-card-hover-2, rgba(2, 7, 19, 0.08)),0px 2px 8px 0px var(--shadows-card-hover-3, rgba(2, 7, 19, 0.10))"
345
+ borderColor: mode === "select" && x.is_selected ? "primary.main" : "grey.200",
346
+ boxShadow: 2
344
347
  },
345
348
  width: {
346
349
  xs: "100%",
@@ -79,19 +79,31 @@ const Wrapped = (0, _system.styled)(_Datatable.default)`
79
79
  overflow: hidden;
80
80
  }
81
81
  table.MuiTable-root {
82
- outline: 1px solid var(--stroke-border-base, #eff1f5);
83
- border-radius: var(--radius-m, 8px);
82
+ outline: 1px solid;
83
+ outline-color: ${({
84
+ theme
85
+ }) => theme.palette.grey[100]};
86
+ border-radius: ${({
87
+ theme
88
+ }) => `${2 * theme.shape.borderRadius}px`};
84
89
  overflow: hidden;
85
90
  }
86
91
  [class*='MUIDataTable-responsiveBase'] {
87
- outline: 1px solid var(--stroke-border-base, #eff1f5);
88
- border-radius: var(--radius-m, 8px);
92
+ outline: 1px solid;
93
+ outline-color: ${({
94
+ theme
95
+ }) => theme.palette.grey[100]};
96
+ border-radius: ${({
97
+ theme
98
+ }) => `${2 * theme.shape.borderRadius}px`};
89
99
  }
90
100
 
91
101
  th.MuiTableCell-head {
92
102
  padding: 8px 16px 8px 16px;
93
103
  text-transform: inherit;
94
- background: var(--backgrounds-bg-subtle, #f9fafb);
104
+ background: ${({
105
+ theme
106
+ }) => theme.palette.grey[50]};
95
107
  border-bottom: none;
96
108
  &:first-of-type {
97
109
  border-top-left-radius: 8px;
@@ -103,7 +115,9 @@ const Wrapped = (0, _system.styled)(_Datatable.default)`
103
115
  }
104
116
 
105
117
  tr.MuiTableRow-root:not(.MuiTableRow-footer):hover {
106
- background: var(--backgrounds-bg-highlight, #eff6ff);
118
+ background: ${({
119
+ theme
120
+ }) => theme.palette.grey[100]};
107
121
  }
108
122
  tr.MuiTableRow-root:last-of-type td:first-of-type {
109
123
  border-bottom-left-radius: 8px;
@@ -114,7 +128,9 @@ const Wrapped = (0, _system.styled)(_Datatable.default)`
114
128
  }
115
129
 
116
130
  tr.MuiTableRow-root:nth-of-type(even) {
117
- background: var(--backgrounds-bg-subtle, #f9fafb);
131
+ background: ${({
132
+ theme
133
+ }) => theme.palette.grey[50]};
118
134
  }
119
135
  td.MuiTableCell-root {
120
136
  border-bottom: none;
@@ -272,7 +272,7 @@ const InvoiceTable = _react.default.memo(props => {
272
272
  size: "small",
273
273
  onClick: e => handleLinkClick(e, invoice),
274
274
  sx: {
275
- color: "var(--foregrounds-fg-interactive, #0086FF) !important"
275
+ color: "text.link"
276
276
  },
277
277
  rel: "noreferrer",
278
278
  children: t("payment.customer.invoice.pay")
@@ -554,7 +554,8 @@ function DonationForm({
554
554
  hideNavMenu: void 0,
555
555
  maxWidth: false,
556
556
  sx: {
557
- borderBottom: "1px solid var(--stroke-border-base, #EFF1F5)"
557
+ borderBottom: "1px solid",
558
+ borderColor: "grey.100"
558
559
  }
559
560
  }) : null, /* @__PURE__ */(0, _jsxRuntime.jsxs)(Root, {
560
561
  mode,
@@ -571,11 +572,10 @@ function DonationForm({
571
572
  left: 0,
572
573
  right: 0,
573
574
  zIndex: 999,
574
- background: "#fff",
575
+ backgroundColor: "background.paper",
575
576
  padding: "10px",
576
577
  textAlign: "center",
577
578
  button: {
578
- color: "#fff",
579
579
  maxWidth: 542
580
580
  }
581
581
  }
@@ -625,7 +625,9 @@ const Root = exports.Root = (0, _system.styled)(_material.Box)`
625
625
  position: relative;
626
626
  flex-direction: column;
627
627
  display: ${props => props.mode.endsWith("-minimal") ? "none" : "flex"};
628
- background: var(--backgrounds-bg-base);
628
+ background: ${({
629
+ theme
630
+ }) => theme.palette.background.default};
629
631
  min-height: 'auto';
630
632
  }
631
633
 
@@ -637,7 +639,9 @@ const Root = exports.Root = (0, _system.styled)(_material.Box)`
637
639
 
638
640
  .cko-payment-form {
639
641
  .MuiFormLabel-root {
640
- color: var(--foregrounds-fg-base, #010714);
642
+ color: ${({
643
+ theme
644
+ }) => theme.palette.grey.A700};
641
645
  font-weight: 500;
642
646
  margin-top: 12px;
643
647
  margin-bottom: 4px;
@@ -172,8 +172,8 @@ function AddressForm({
172
172
  }) => /* @__PURE__ */(0, _jsxRuntime.jsx)(_countrySelect.default, {
173
173
  ...field,
174
174
  sx: {
175
- "&.Mui-focused .MuiOutlinedInput-notchedOutline": {
176
- borderColor: "transparent"
175
+ ".MuiOutlinedInput-notchedOutline": {
176
+ borderColor: "transparent !important"
177
177
  }
178
178
  }
179
179
  })
@@ -73,29 +73,26 @@ function CurrencySelector({
73
73
  const Root = (0, _system.styled)("section")`
74
74
  .cko-payment-card {
75
75
  position: relative;
76
- border: 1px solid var(--stroke-border-interactive, #0086ff);
76
+ border: 1px solid;
77
+ border-color: ${({
78
+ theme
79
+ }) => theme.palette.secondary.main};
77
80
  padding: 4px 8px;
78
81
  cursor: pointer;
79
- background: var(--backgrounds-bg-field, #f9fafb);
82
+ background: ${({
83
+ theme
84
+ }) => theme.palette.grey[50]};
80
85
  }
81
86
 
82
87
  .cko-payment-card-unselect {
83
- border: 1px solid #ddd;
88
+ border: 1px solid;
89
+ border-color: ${({
90
+ theme
91
+ }) => theme.palette.grey[100]};
84
92
  padding: 4px 8px;
85
93
  cursor: pointer;
86
- background: var(--backgrounds-bg-field, #f9fafb);
87
- }
88
-
89
- .cko-payment-card::after {
90
- content: '';
91
- width: 6px;
92
- height: 10px;
93
- position: absolute;
94
- right: 3px;
95
- bottom: 3px;
96
- border: 1px solid #fff;
97
- border-top-color: transparent;
98
- border-left-color: transparent;
99
- transform: rotate(35deg);
94
+ background: ${({
95
+ theme
96
+ }) => theme.palette.grey[50]};
100
97
  }
101
98
  `;
@@ -629,7 +629,7 @@ function PaymentForm({
629
629
  size: 16,
630
630
  sx: {
631
631
  mr: 0.5,
632
- color: "var(--foregrounds-fg-on-color, #fff)"
632
+ color: "primary.contrastText"
633
633
  }
634
634
  }), state.submitting || state.paying ? t("payment.checkout.processing") : buttonText]
635
635
  })
@@ -100,8 +100,8 @@ function PhoneInput({
100
100
  onChange: onCountryChange,
101
101
  name: countryFieldName,
102
102
  sx: {
103
- "&.Mui-focused .MuiOutlinedInput-notchedOutline": {
104
- borderColor: "transparent"
103
+ "&.MuiOutlinedInput-notchedOutline": {
104
+ borderColor: "transparent !important"
105
105
  }
106
106
  },
107
107
  showDialCode: true
@@ -280,7 +280,7 @@ function PaymentInner({
280
280
  }), mode === "standalone" && !isMobile && /* @__PURE__ */(0, _jsxRuntime.jsx)(_footer.default, {
281
281
  className: "cko-footer",
282
282
  sx: {
283
- color: "var(--foregrounds-fg-muted, #98A3B1)"
283
+ color: "text.lighter"
284
284
  }
285
285
  })]
286
286
  })
@@ -314,7 +314,7 @@ function PaymentInner({
314
314
  }), mode === "standalone" && isMobile && /* @__PURE__ */(0, _jsxRuntime.jsx)(_footer.default, {
315
315
  className: "cko-footer",
316
316
  sx: {
317
- color: "var(--foregrounds-fg-muted, #98A3B1)"
317
+ color: "text.lighter"
318
318
  }
319
319
  })]
320
320
  })
@@ -441,7 +441,8 @@ function Payment({
441
441
  hideNavMenu: void 0,
442
442
  maxWidth: false,
443
443
  sx: {
444
- borderBottom: "1px solid var(--stroke-border-base, #EFF1F5)"
444
+ borderBottom: "1px solid",
445
+ borderColor: "grey.100"
445
446
  }
446
447
  }) : null, /* @__PURE__ */(0, _jsxRuntime.jsxs)(Root, {
447
448
  mode,
@@ -458,11 +459,10 @@ function Payment({
458
459
  left: 0,
459
460
  right: 0,
460
461
  zIndex: 999,
461
- background: "#fff",
462
+ backgroundColor: "background.paper",
462
463
  padding: "10px",
463
464
  textAlign: "center",
464
465
  button: {
465
- color: "#fff",
466
466
  maxWidth: 542
467
467
  }
468
468
  },
@@ -472,7 +472,7 @@ function Payment({
472
472
  left: 0,
473
473
  right: 0,
474
474
  zIndex: 999,
475
- background: "#fff",
475
+ backgroundColor: "background.paper",
476
476
  marginBottom: 0
477
477
  },
478
478
  ".cko-payment": {
@@ -533,7 +533,9 @@ const Root = exports.Root = (0, _system.styled)(_material.Box)`
533
533
  position: relative;
534
534
  flex-direction: column;
535
535
  display: ${props => props.mode.endsWith("-minimal") ? "none" : "flex"};
536
- background: var(--backgrounds-bg-base);
536
+ background: ${({
537
+ theme
538
+ }) => theme.palette.background.default};
537
539
  min-height: 'auto';
538
540
  }
539
541
  .cko-header {
@@ -587,7 +589,9 @@ const Root = exports.Root = (0, _system.styled)(_material.Box)`
587
589
 
588
590
  .cko-payment-form {
589
591
  .MuiFormLabel-root {
590
- color: var(--foregrounds-fg-base, #010714);
592
+ color: ${({
593
+ theme
594
+ }) => theme.palette.grey.A700};
591
595
  font-weight: 500;
592
596
  margin-top: 12px;
593
597
  margin-bottom: 4px;
@@ -623,20 +627,37 @@ const Root = exports.Root = (0, _system.styled)(_material.Box)`
623
627
  }
624
628
 
625
629
  .product-item {
626
- border-radius: var(--radius-l, 12px);
627
- border: 1px solid var(--stroke-border-base, #eff1f5);
630
+ border-radius: ${({
631
+ theme
632
+ }) => `${2 * theme.shape.borderRadius}px`};
633
+ border: 1px solid;
634
+ border-color: ${({
635
+ theme
636
+ }) => theme.palette.grey[100]};
628
637
  .product-item-content {
629
638
  padding: 16px;
630
- background: var(--backgrounds-bg-subtle, #f9fafb);
631
- border-top-left-radius: var(--radius-l, 12px);
632
- border-top-right-radius: var(--radius-l, 12px);
639
+ background: ${({
640
+ theme
641
+ }) => theme.palette.grey[50]};
642
+ border-top-left-radius: ${({
643
+ theme
644
+ }) => `${2 * theme.shape.borderRadius}px`};
645
+ border-top-right-radius: ${({
646
+ theme
647
+ }) => `${2 * theme.shape.borderRadius}px`};
633
648
  }
634
649
  .product-item-upsell {
635
650
  margin-top: 0;
636
651
  padding: 16px;
637
- background: var(--backgrounds-bg-component, #f1f3f5);
638
- border-bottom-left-radius: var(--radius-l, 12px);
639
- border-bottom-right-radius: var(--radius-l, 12px);
652
+ background: ${({
653
+ theme
654
+ }) => theme.palette.grey[100]};
655
+ border-bottom-left-radius: ${({
656
+ theme
657
+ }) => `${2 * theme.shape.borderRadius}px`};
658
+ border-bottom-right-radius: ${({
659
+ theme
660
+ }) => `${2 * theme.shape.borderRadius}px`};
640
661
  }
641
662
  }
642
663
 
@@ -665,7 +686,10 @@ const Root = exports.Root = (0, _system.styled)(_material.Box)`
665
686
  width: 100%;
666
687
  height: fit-content;
667
688
  flex: none;
668
- border-top: 1px solid var(--stroke-border-base, #eff1f5);
689
+ border-top: 1px solid;
690
+ border-color: ${({
691
+ theme
692
+ }) => theme.palette.grey[100]};
669
693
  &:before {
670
694
  display: none;
671
695
  }
@@ -109,9 +109,9 @@ function ProductItem({
109
109
  variant: "outlined",
110
110
  sx: {
111
111
  mt: 1,
112
- borderColor: "var(--tags-tag-red-border, #FFC8D3)",
113
- background: "var(--tags-tag-red-bg, #FFE2E6)",
114
- color: "var(--tags-tag-red-text, #E40031)"
112
+ borderColor: "chip.error.border",
113
+ backgroundColor: "chip.error.background",
114
+ color: "chip.error.text"
115
115
  }
116
116
  }) : null, children]
117
117
  }), canUpsell && !item.upsell_price_id && item.price.upsell?.upsells_to && /* @__PURE__ */(0, _jsxRuntime.jsxs)(_material.Stack, {
@@ -147,9 +147,9 @@ function ProductItem({
147
147
  variant: "outlined",
148
148
  sx: {
149
149
  ml: 1,
150
- borderColor: " var(--tags-tag-orange-border, #FFE467)",
151
- background: "var(--tags-tag-orange-bg, #FFF4BC)",
152
- color: "var(--tags-tag-orange-text, #D24000)"
150
+ borderColor: "chip.warning.border",
151
+ backgroundColor: "chip.warning.background",
152
+ color: "chip.warning.text"
153
153
  }
154
154
  })]
155
155
  }), /* @__PURE__ */(0, _jsxRuntime.jsx)(_material.Typography, {
@@ -18,7 +18,8 @@ function ProductSkeleton({
18
18
  spacing: 1,
19
19
  sx: {
20
20
  width: 320,
21
- border: "1px solid #eee",
21
+ border: "1px solid",
22
+ borderColor: "grey.100",
22
23
  borderRadius: 1,
23
24
  transition: "border-color 0.3s ease 0s, box-shadow 0.3s ease 0s",
24
25
  boxShadow: "0 4px 8px rgba(0, 0, 0, 20%)",
@@ -7,7 +7,6 @@ module.exports = PaymentSuccess;
7
7
  var _jsxRuntime = require("react/jsx-runtime");
8
8
  var _context = require("@arcblock/ux/lib/Locale/context");
9
9
  var _material = require("@mui/material");
10
- var _system = require("@mui/system");
11
10
  var _ufo = require("ufo");
12
11
  var _ux = require("@arcblock/ux");
13
12
  var _payment = require("../contexts/payment");
@@ -150,7 +149,7 @@ PaymentSuccess.defaultProps = {
150
149
  subscriptionId: "",
151
150
  subscriptions: []
152
151
  };
153
- const Div = (0, _system.styled)("div")`
152
+ const Div = (0, _material.styled)("div")`
154
153
  width: 80px;
155
154
  height: 115px;
156
155
 
@@ -182,7 +181,7 @@ const Div = (0, _system.styled)("div")`
182
181
  content: '';
183
182
  height: 100px;
184
183
  position: absolute;
185
- background: #ffffff;
184
+ background: ${props => props.theme.palette.background.paper};
186
185
  transform: rotate(-45deg);
187
186
  }
188
187
  .check-icon .icon-line {
@@ -226,7 +225,7 @@ const Div = (0, _system.styled)("div")`
226
225
  height: 85px;
227
226
  position: absolute;
228
227
  transform: rotate(-45deg);
229
- background-color: #ffffff;
228
+ background-color: ${props => props.theme.palette.background.paper};
230
229
  }
231
230
 
232
231
  @keyframes rotate-circle {