@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.
- package/es/checkout/donate.js +11 -12
- package/es/components/blockchain/tx.js +1 -1
- package/es/components/country-select.js +5 -4
- package/es/components/over-due-invoice-payment.js +7 -5
- package/es/components/pricing-table.js +8 -7
- package/es/components/table.js +9 -7
- package/es/history/invoice/list.js +1 -1
- package/es/payment/donation-form.js +4 -5
- package/es/payment/form/address.js +2 -2
- package/es/payment/form/currency.js +6 -17
- package/es/payment/form/index.js +1 -1
- package/es/payment/form/phone.js +2 -2
- package/es/payment/index.js +18 -17
- package/es/payment/product-item.js +6 -6
- package/es/payment/product-skeleton.js +2 -1
- package/es/payment/success.js +3 -4
- package/es/theme/index.css +37 -0
- package/es/theme/index.d.ts +4 -3
- package/es/theme/index.js +264 -240
- package/es/theme/types.d.ts +76 -0
- package/es/theme/types.js +2 -0
- package/es/theme/typography.js +1 -5
- package/lib/checkout/donate.js +11 -12
- package/lib/components/blockchain/tx.js +3 -1
- package/lib/components/country-select.js +7 -4
- package/lib/components/over-due-invoice-payment.js +6 -4
- package/lib/components/pricing-table.js +10 -7
- package/lib/components/table.js +23 -7
- package/lib/history/invoice/list.js +1 -1
- package/lib/payment/donation-form.js +9 -5
- package/lib/payment/form/address.js +2 -2
- package/lib/payment/form/currency.js +14 -17
- package/lib/payment/form/index.js +1 -1
- package/lib/payment/form/phone.js +2 -2
- package/lib/payment/index.js +41 -17
- package/lib/payment/product-item.js +6 -6
- package/lib/payment/product-skeleton.js +2 -1
- package/lib/payment/success.js +3 -4
- package/lib/theme/index.css +37 -0
- package/lib/theme/index.d.ts +4 -3
- package/lib/theme/index.js +257 -232
- package/lib/theme/types.d.ts +76 -0
- package/lib/theme/types.js +4 -0
- package/lib/theme/typography.js +1 -5
- package/package.json +9 -8
- package/src/checkout/donate.tsx +11 -12
- package/src/components/blockchain/tx.tsx +1 -1
- package/src/components/country-select.tsx +5 -4
- package/src/components/over-due-invoice-payment.tsx +7 -5
- package/src/components/pricing-table.tsx +11 -9
- package/src/components/table.tsx +9 -7
- package/src/history/invoice/list.tsx +1 -1
- package/src/payment/donation-form.tsx +4 -5
- package/src/payment/form/address.tsx +2 -2
- package/src/payment/form/currency.tsx +6 -17
- package/src/payment/form/index.tsx +1 -1
- package/src/payment/form/phone.tsx +2 -2
- package/src/payment/index.tsx +18 -25
- package/src/payment/product-item.tsx +6 -6
- package/src/payment/product-skeleton.tsx +2 -1
- package/src/payment/success.tsx +3 -4
- package/src/theme/index.css +37 -0
- package/src/theme/index.tsx +263 -237
- package/src/theme/types.ts +78 -0
- package/src/theme/typography.ts +0 -5
- package/src/types/index.ts +1 -0
package/es/theme/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { typography } from './typography';
|
|
3
2
|
import './index.css';
|
|
4
|
-
import
|
|
5
|
-
|
|
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 {
|
|
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
|
-
|
|
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
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
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
|
-
|
|
74
|
-
|
|
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
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
-
|
|
143
|
-
|
|
144
|
-
|
|
136
|
+
MuiToggleButton: {
|
|
137
|
+
styleOverrides: {
|
|
138
|
+
root: {
|
|
139
|
+
textTransform: "none"
|
|
140
|
+
}
|
|
145
141
|
}
|
|
146
142
|
},
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
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
|
-
|
|
164
|
-
|
|
156
|
+
styleOverrides: {
|
|
157
|
+
tooltip: {
|
|
158
|
+
fontSize: "0.875rem"
|
|
159
|
+
}
|
|
165
160
|
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
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
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
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
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
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
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
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
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
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
|
-
|
|
270
|
-
|
|
288
|
+
MuiDialog: {
|
|
289
|
+
styleOverrides: {
|
|
290
|
+
root: {
|
|
291
|
+
zIndex: 1200
|
|
292
|
+
}
|
|
293
|
+
}
|
|
271
294
|
}
|
|
272
|
-
}
|
|
273
|
-
|
|
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
|
+
}
|