@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
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { typography } from './typography';
3
2
  import './index.css';
4
- import type { PaymentThemeOptions } from '../types';
5
- export { typography };
3
+ import './types';
4
+ import { typography } from './typography';
5
+ import { type PaymentThemeOptions } from '../types';
6
6
  export declare function PaymentThemeProvider({ children, theme: customTheme, }: {
7
7
  children: React.ReactNode;
8
8
  theme?: PaymentThemeOptions;
@@ -12,3 +12,4 @@ export declare namespace PaymentThemeProvider {
12
12
  theme: {};
13
13
  };
14
14
  }
15
+ export { typography };
package/es/theme/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { createTheme, Box, CssBaseline } from "@mui/material";
3
+ import { create as createBlockletTheme, deepmerge } from "@arcblock/ux/lib/Theme";
4
+ import { deepmergeAll } from "@arcblock/ux/lib/Util";
2
5
  import { ThemeProvider, useTheme } from "@mui/material/styles";
3
- import { create } from "@arcblock/ux/lib/Theme";
4
- import cloneDeep from "lodash/cloneDeep";
5
- import merge from "lodash/merge";
6
- import { Box, CssBaseline } from "@mui/material";
7
- import { typography } from "./typography.js";
6
+ import { useMemo } from "react";
8
7
  import "./index.css";
9
- export { typography };
8
+ import "./types";
9
+ import { typography } from "./typography.js";
10
10
  PaymentThemeProvider.defaultProps = {
11
11
  theme: {}
12
12
  };
@@ -16,267 +16,291 @@ export function PaymentThemeProvider({
16
16
  }) {
17
17
  const { sx: themeSX = {}, ...restTheme } = customTheme || {};
18
18
  const parentTheme = useTheme();
19
- const rootStyle = getComputedStyle(document.documentElement);
20
- const themeOverrides = {
21
- shape: {
22
- borderRadius: 8
23
- },
24
- components: {
25
- MuiOutlinedInput: {
26
- styleOverrides: {
27
- root: {
28
- borderRadius: "var(--radius-m, 8px)",
29
- backgroundColor: "var(--backgrounds-bg-field)",
30
- "&.Mui-disabled": {
31
- backgroundColor: "var(--backgrounds-bg-disabled)"
32
- },
33
- ".MuiOutlinedInput-notchedOutline": {
34
- borderColor: "var(--stroke-border-base, #EFF1F5)"
35
- },
36
- ".MuiInputBase-input": {
37
- fontSize: "14px",
38
- minHeight: "1.65em",
39
- lineHeight: "1.65em"
40
- },
41
- "&.Mui-focused .MuiOutlinedInput-notchedOutline": {
42
- borderWidth: "1px"
43
- }
44
- }
45
- }
46
- },
47
- MuiButton: {
48
- defaultProps: {
49
- size: "small"
50
- },
51
- styleOverrides: {
52
- root: {
53
- fontSize: "0.875rem",
54
- fontWeight: 500,
55
- textTransform: "none",
56
- boxShadow: "none"
19
+ const mergeTheme = useMemo(() => {
20
+ const blockletTheme = parentTheme.themeName === "ArcBlock" ? parentTheme : createBlockletTheme();
21
+ const { mode } = blockletTheme.palette;
22
+ let paymentThemeOptions = deepmerge(blockletTheme, {
23
+ palette: {
24
+ chip: {
25
+ success: {
26
+ text: mode === "dark" ? "#10b981" : "#047857",
27
+ background: mode === "dark" ? "#022c22" : "#d1fae5",
28
+ border: mode === "dark" ? "#064e3b" : "#a7f3d0"
57
29
  },
58
- containedPrimary: {
59
- backgroundColor: "var(--buttons-button-inverted, #010714)",
60
- color: "var(--foregrounds-fg-on-color, #fff)",
61
- "&:hover": {
62
- backgroundColor: "var(--buttons-button-inverted-hover, #1f2937)"
63
- }
30
+ default: {
31
+ text: mode === "dark" ? "#adb1b8" : "#4b5563",
32
+ background: mode === "dark" ? "#2e3035" : "#f3f4f6",
33
+ border: mode === "dark" ? "#3c3f44" : "#e5e7eb"
64
34
  },
65
- outlinedPrimary: {
66
- color: "var(--foregrounds-fg-base, #010714)",
67
- borderColor: "var(--stroke-button-secondary-border, #E5E7EB)",
68
- "&:hover": {
69
- backgroundColor: "var(--buttons-button-neutral-hover, #F3F4F6)",
70
- borderColor: "var(--stroke-button-secondary-border, #E5E7EB)"
71
- }
35
+ secondary: {
36
+ text: mode === "dark" ? "#8b5cf6" : "#6d28d9",
37
+ background: mode === "dark" ? "#2e1064" : "#ede9fe",
38
+ border: mode === "dark" ? "#3c3f44" : "#ddd6fe"
72
39
  },
73
- sizeSmall: {
74
- height: 32
75
- }
76
- }
77
- },
78
- MuiIconButton: {
79
- defaultProps: {
80
- size: "small"
81
- },
82
- styleOverrides: {
83
- root: {
84
- textTransform: "none"
40
+ error: {
41
+ text: mode === "dark" ? "#ff6369" : "#be123c",
42
+ background: mode === "dark" ? "#4c0519" : "#ffe4e6",
43
+ border: mode === "dark" ? "#881337" : "#fecdd3"
85
44
  },
86
- colorPrimary: {
87
- backgroundColor: "#fff"
88
- }
89
- }
90
- },
91
- MuiToggleButton: {
92
- styleOverrides: {
93
- root: {
94
- textTransform: "none"
95
- }
96
- }
97
- },
98
- MuiTab: {
99
- styleOverrides: {
100
- root: {
101
- textTransform: "none",
102
- fontSize: "0.875rem"
45
+ warning: {
46
+ text: mode === "dark" ? "#f59e0b" : "#b45309",
47
+ background: mode === "dark" ? "#451a03" : "#fef4c7",
48
+ border: mode === "dark" ? "#78350f" : "#fde68a"
49
+ },
50
+ info: {
51
+ text: mode === "dark" ? "#3b82f6" : "#1d4ed8",
52
+ background: mode === "dark" ? "#172554" : "#dbeafe",
53
+ border: mode === "dark" ? "#1e3a8a" : "#bfdbfe"
103
54
  }
104
55
  }
105
56
  },
106
- MuiTooltip: {
107
- defaultProps: {
108
- enterTouchDelay: 3e3,
109
- leaveTouchDelay: 100
110
- },
111
- styleOverrides: {
112
- tooltip: {
113
- fontSize: "0.875rem"
57
+ typography
58
+ });
59
+ const {
60
+ palette,
61
+ shape: { borderRadius },
62
+ shadows
63
+ } = paymentThemeOptions;
64
+ paymentThemeOptions = deepmergeAll([
65
+ paymentThemeOptions,
66
+ {
67
+ palette: {
68
+ text: {
69
+ lighter: palette.grey[400],
70
+ link: palette.secondary.main
114
71
  }
115
72
  }
116
73
  },
117
- MuiPopover: {
118
- styleOverrides: {
119
- root: {
120
- zIndex: 1200
74
+ {
75
+ components: {
76
+ MuiOutlinedInput: {
77
+ styleOverrides: {
78
+ root: {
79
+ borderRadius,
80
+ backgroundColor: palette.grey[50],
81
+ "&.Mui-disabled": {
82
+ backgroundColor: palette.grey[100]
83
+ },
84
+ ".MuiOutlinedInput-notchedOutline": {
85
+ borderColor: palette.grey[100]
86
+ },
87
+ ".MuiInputBase-input": {
88
+ fontSize: "14px",
89
+ minHeight: "1.65em",
90
+ lineHeight: "1.65em"
91
+ },
92
+ "&.Mui-focused .MuiOutlinedInput-notchedOutline": {
93
+ borderWidth: "1px"
94
+ },
95
+ "&.MuiInputBase-root:hover .MuiOutlinedInput-notchedOutline": {
96
+ borderColor: `${palette.primary.main}`
97
+ }
98
+ }
99
+ }
121
100
  },
122
- paper: ({ theme }) => ({
123
- border: `1px solid ${theme.palette.divider}`,
124
- boxShadow: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"
125
- })
126
- }
127
- },
128
- MuiCssBaseline: {
129
- styleOverrides: {
130
- ".base-card": {
131
- padding: "20px",
132
- borderRadius: "var(--radius-l)",
133
- background: "var(--backgrounds-bg-base)",
134
- boxShadow: "0px 0px 0px 1px var(--shadows-card-rest-1, rgba(2, 7, 19, 0.08)), 0px 1px 2px -1px var(--shadows-card-rest-2, rgba(2, 7, 19, 0.08)), 0px 2px 4px 0px var(--shadows-card-rest-3, rgba(2, 7, 19, 0.04))"
101
+ MuiButton: {
102
+ defaultProps: {
103
+ size: "small"
104
+ },
105
+ styleOverrides: {
106
+ root: {
107
+ fontSize: "0.875rem",
108
+ fontWeight: 500,
109
+ textTransform: "none",
110
+ boxShadow: "none"
111
+ },
112
+ sizeSmall: {
113
+ height: 32
114
+ },
115
+ outlinedPrimary: {
116
+ borderColor: palette.grey[100],
117
+ "&:hover": {
118
+ borderColor: palette.grey[100]
119
+ }
120
+ }
121
+ }
135
122
  },
136
- ".base-label": {
137
- color: "var(--foregrounds-fg-base, #010714)",
138
- fontSize: "16px",
139
- fontWeight: "500",
140
- lineHeight: "24px"
123
+ MuiIconButton: {
124
+ defaultProps: {
125
+ size: "small"
126
+ },
127
+ styleOverrides: {
128
+ root: {
129
+ textTransform: "none"
130
+ },
131
+ colorPrimary: {
132
+ backgroundColor: palette.background.default
133
+ }
134
+ }
141
135
  },
142
- ".base-dialog": {
143
- ".MuiPaper-root>.MuiDialogContent-root": {
144
- paddingTop: "0"
136
+ MuiToggleButton: {
137
+ styleOverrides: {
138
+ root: {
139
+ textTransform: "none"
140
+ }
145
141
  }
146
142
  },
147
- a: {
148
- textDecoration: "none !important"
149
- }
150
- }
151
- },
152
- // MuiButtonBase: {
153
- // styleOverrides: {
154
- // }
155
- // },
156
- MuiRadio: {
157
- styleOverrides: {
158
- root: {
159
- color: "var(--stroke-border-base, #EFF1F5)",
160
- "&:hover": {
161
- background: "none"
143
+ MuiTab: {
144
+ styleOverrides: {
145
+ root: {
146
+ textTransform: "none",
147
+ fontSize: "0.875rem"
148
+ }
149
+ }
150
+ },
151
+ MuiTooltip: {
152
+ defaultProps: {
153
+ enterTouchDelay: 3e3,
154
+ leaveTouchDelay: 100
162
155
  },
163
- "&.Mui-checked": {
164
- color: "var(--foregrounds-fg-interactive, #0086FF)"
156
+ styleOverrides: {
157
+ tooltip: {
158
+ fontSize: "0.875rem"
159
+ }
165
160
  }
166
- }
167
- }
168
- },
169
- MuiCheckbox: {
170
- styleOverrides: {
171
- root: {
172
- color: "var(--backgrounds-bg-interactive, #0086FF)",
173
- "&.Mui-checked": {
174
- color: "var(--foregrounds-fg-interactive, #0086FF)"
161
+ },
162
+ MuiPopover: {
163
+ styleOverrides: {
164
+ root: {
165
+ zIndex: 1200
166
+ },
167
+ paper: {
168
+ border: `1px solid ${palette.divider}`,
169
+ boxShadow: shadows[2]
170
+ }
175
171
  }
176
- }
177
- }
178
- },
179
- MuiDivider: {
180
- styleOverrides: {
181
- root: {
182
- borderColor: "var(--stroke-border-base, #EFF1F5)"
183
- }
184
- }
185
- },
186
- MuiInputBase: {
187
- defaultProps: {
188
- size: "small"
189
- },
190
- styleOverrides: {
191
- root: () => ({
192
- fontSize: "0.875rem",
193
- backgroundColor: "var(--backgrounds-bg-field, #F9FAFB)"
194
- })
195
- }
196
- },
197
- MuiInputLabel: {
198
- defaultProps: {
199
- size: "small"
200
- },
201
- styleOverrides: {
202
- root: () => ({
203
- fontSize: "0.875rem"
204
- })
205
- }
206
- },
207
- MuiChip: {
208
- styleOverrides: {
209
- root: {
210
- borderRadius: "var(--radius-S, 4px)",
211
- border: "1px solid transparent",
212
- "&.MuiChip-filledSuccess": {
213
- color: "var(--tags-tag-green-text, #007C52)",
214
- backgroundColor: "var(--tags-tag-green-bg, #B7FEE3)",
215
- borderColor: "var(--tags-tag-green-border, #63F9CB)"
216
- },
217
- "&.MuiChip-filledDefault": {
218
- color: "var(--tags-tag-neutral-text, #007C52)",
219
- backgroundColor: "var(--tags-tag-neutral-bg, #B7FEE3)",
220
- borderColor: "var(--tags-tag-neutral-border, #E5E7EB)"
221
- },
222
- "&.MuiChip-filledSecondary": {
223
- color: "var(--tags-tag-purple-text, #8118EB)",
224
- backgroundColor: " var(--tags-tag-purple-bg, #EFE9FF)",
225
- borderColor: "var(--tags-tag-purple-border, #E1D6FF)"
226
- },
227
- "&.MuiChip-filledError": {
228
- color: "var(--tags-tag-red-text, #E40031)",
229
- backgroundColor: "var(--tags-tag-red-bg, #FFE2E6)",
230
- borderColor: "var(--tags-tag-red-border, #FFC8D3)"
172
+ },
173
+ MuiCssBaseline: {
174
+ styleOverrides: {
175
+ ".base-card": {
176
+ padding: "20px",
177
+ borderRadius: 1.5 * borderRadius,
178
+ // 12px
179
+ background: palette.background.default,
180
+ border: `1px solid ${palette.divider}`,
181
+ boxShadow: shadows[1]
182
+ },
183
+ ".base-label": {
184
+ color: palette.grey.A700,
185
+ fontSize: "16px",
186
+ fontWeight: "500",
187
+ lineHeight: "24px"
188
+ },
189
+ ".base-dialog": {
190
+ ".MuiPaper-root>.MuiDialogContent-root": {
191
+ paddingTop: "0"
192
+ }
193
+ },
194
+ a: {
195
+ textDecoration: "none !important"
196
+ }
197
+ }
198
+ },
199
+ MuiRadio: {
200
+ styleOverrides: {
201
+ root: {
202
+ color: palette.grey[200],
203
+ "&:hover": {
204
+ background: "none"
205
+ },
206
+ "&.Mui-checked": {
207
+ color: palette.primary.main
208
+ }
209
+ }
210
+ }
211
+ },
212
+ MuiCheckbox: {
213
+ styleOverrides: {
214
+ root: {
215
+ color: palette.primary.main,
216
+ "&.Mui-checked": {
217
+ color: palette.primary.main
218
+ }
219
+ }
220
+ }
221
+ },
222
+ MuiDivider: {
223
+ styleOverrides: {
224
+ root: {
225
+ borderColor: palette.grey[100]
226
+ }
227
+ }
228
+ },
229
+ MuiInputBase: {
230
+ defaultProps: {
231
+ size: "small"
231
232
  },
232
- "&.MuiChip-filledWarning": {
233
- color: "var(--tags-tag-orange-text, #D24000)",
234
- backgroundColor: "var(--tags-tag-orange-bg, #FFF4BC)",
235
- borderColor: "var(--tags-tag-orange-border, #FFE467)"
233
+ styleOverrides: {
234
+ root: {
235
+ fontSize: "0.875rem",
236
+ backgroundColor: palette.grey[50]
237
+ }
238
+ }
239
+ },
240
+ MuiInputLabel: {
241
+ defaultProps: {
242
+ size: "small"
236
243
  },
237
- "&.MuiChip-filledPrimary,&.MuiChip-filledInfo": {
238
- color: "var(--tags-tag-blue-text, #0051E9)",
239
- backgroundColor: "var(--tags-tag-blue-bg, #D2ECFF)",
240
- borderColor: "var(--tags-tag-blue-border, #AFDDFF)"
244
+ styleOverrides: {
245
+ root: {
246
+ fontSize: "0.875rem"
247
+ }
241
248
  }
242
- }
243
- }
244
- },
245
- MuiDialog: {
246
- styleOverrides: {
247
- root: {
248
- zIndex: 1200
249
- }
250
- }
251
- }
252
- }
253
- };
254
- const mergeTheme = create(
255
- merge(
256
- cloneDeep({
257
- ...parentTheme,
258
- typography,
259
- palette: {
260
- primary: {
261
- main: rootStyle.getPropertyValue("--foregrounds-fg-base").trim() || "#030712"
262
249
  },
263
- text: {
264
- primary: rootStyle.getPropertyValue("--foregrounds-fg-base").trim() || "#030712",
265
- secondary: rootStyle.getPropertyValue("--foregrounds-fg-subtle").trim() || "#4b5563",
266
- lighter: rootStyle.getPropertyValue("--foregrounds-fg-muted").trim() || "#9ca3af",
267
- link: rootStyle.getPropertyValue("--foregrounds-fg-interactive").trim() || "#0086FF"
250
+ MuiChip: {
251
+ styleOverrides: {
252
+ root: {
253
+ borderRadius: borderRadius * 0.5,
254
+ border: "1px solid transparent",
255
+ "&.MuiChip-filledSuccess": {
256
+ color: palette.chip.success.text,
257
+ backgroundColor: palette.chip.success.background,
258
+ borderColor: palette.chip.success.border
259
+ },
260
+ "&.MuiChip-filledDefault": {
261
+ color: palette.chip.default.text,
262
+ backgroundColor: palette.chip.default.background,
263
+ borderColor: palette.chip.default.border
264
+ },
265
+ "&.MuiChip-filledSecondary": {
266
+ color: palette.chip.secondary.text,
267
+ backgroundColor: palette.chip.secondary.background,
268
+ borderColor: palette.chip.secondary.border
269
+ },
270
+ "&.MuiChip-filledError": {
271
+ color: palette.chip.error.text,
272
+ backgroundColor: palette.chip.error.background,
273
+ borderColor: palette.chip.error.border
274
+ },
275
+ "&.MuiChip-filledWarning": {
276
+ color: palette.chip.warning.text,
277
+ backgroundColor: palette.chip.warning.background,
278
+ borderColor: palette.chip.warning.border
279
+ },
280
+ "&.MuiChip-filledPrimary,&.MuiChip-filledInfo": {
281
+ color: palette.chip.info.text,
282
+ backgroundColor: palette.chip.info.background,
283
+ borderColor: palette.chip.info.border
284
+ }
285
+ }
286
+ }
268
287
  },
269
- error: {
270
- main: rootStyle.getPropertyValue("--foregrounds-fg-danger").trim() || "#FF003B"
288
+ MuiDialog: {
289
+ styleOverrides: {
290
+ root: {
291
+ zIndex: 1200
292
+ }
293
+ }
271
294
  }
272
- },
273
- ...themeOverrides
274
- }),
295
+ }
296
+ },
275
297
  restTheme
276
- )
277
- );
298
+ ]);
299
+ return createTheme(paymentThemeOptions);
300
+ }, [parentTheme, restTheme]);
278
301
  return /* @__PURE__ */ jsxs(ThemeProvider, { theme: mergeTheme, children: [
279
302
  /* @__PURE__ */ jsx(CssBaseline, {}),
280
303
  /* @__PURE__ */ jsx(Box, { sx: { height: "100%", ...themeSX }, children })
281
304
  ] });
282
305
  }
306
+ export { typography };
@@ -0,0 +1,76 @@
1
+ import '@blocklet/theme';
2
+ import '@mui/material/styles';
3
+ declare module '@mui/material/styles' {
4
+ interface Palette {
5
+ chip: {
6
+ success: {
7
+ text: string;
8
+ background: string;
9
+ border: string;
10
+ };
11
+ default: {
12
+ text: string;
13
+ background: string;
14
+ border: string;
15
+ };
16
+ secondary: {
17
+ text: string;
18
+ background: string;
19
+ border: string;
20
+ };
21
+ error: {
22
+ text: string;
23
+ background: string;
24
+ border: string;
25
+ };
26
+ warning: {
27
+ text: string;
28
+ background: string;
29
+ border: string;
30
+ };
31
+ info: {
32
+ text: string;
33
+ background: string;
34
+ border: string;
35
+ };
36
+ };
37
+ }
38
+ interface PaletteOptions {
39
+ chip?: {
40
+ success?: {
41
+ text?: string;
42
+ background?: string;
43
+ border?: string;
44
+ };
45
+ default?: {
46
+ text?: string;
47
+ background?: string;
48
+ border?: string;
49
+ };
50
+ secondary?: {
51
+ text?: string;
52
+ background?: string;
53
+ border?: string;
54
+ };
55
+ error?: {
56
+ text?: string;
57
+ background?: string;
58
+ border?: string;
59
+ };
60
+ warning?: {
61
+ text?: string;
62
+ background?: string;
63
+ border?: string;
64
+ };
65
+ info?: {
66
+ text?: string;
67
+ background?: string;
68
+ border?: string;
69
+ };
70
+ };
71
+ }
72
+ interface TypeText {
73
+ lighter?: string;
74
+ link?: string;
75
+ }
76
+ }
@@ -0,0 +1,2 @@
1
+ import "@blocklet/theme";
2
+ import "@mui/material/styles";
@@ -45,9 +45,5 @@ export const typography = {
45
45
  body1: {
46
46
  fontSize: "0.875rem",
47
47
  lineHeight: 1.75
48
- },
49
- fontWeightLight: 300,
50
- fontWeightRegular: 400,
51
- fontWeightMedium: 500,
52
- fontWeightBold: 700
48
+ }
53
49
  };