@xyo-network/react-theme 7.5.8 → 7.5.11
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/dist/browser/index.mjs +46 -158
- package/dist/browser/index.mjs.map +1 -1
- package/package.json +19 -13
- package/src/OsTheme/Components.tsx +0 -40
- package/src/OsTheme/DarkMode.tsx +0 -27
- package/src/OsTheme/LightMode.tsx +0 -27
- package/src/OsTheme/Typography.tsx +0 -25
- package/src/OsTheme/index.ts +0 -1
- package/src/OsTheme/osThemeOptions.tsx +0 -6
- package/src/appThemeOptions.tsx +0 -29
- package/src/fontFamily.ts +0 -2
- package/src/index.ts +0 -7
- package/src/partialDarkThemeOptions.tsx +0 -18
- package/src/partialLightThemeOptions.tsx +0 -10
- package/src/themeOptions.ts +0 -78
- package/src/webThemeOptions.tsx +0 -5
package/dist/browser/index.mjs
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
|
|
4
1
|
// src/fontFamily.ts
|
|
5
|
-
var fontFamilyPrimary = [
|
|
6
|
-
|
|
7
|
-
"Helvetica",
|
|
8
|
-
"sans-serif"
|
|
9
|
-
].join(",");
|
|
10
|
-
var fontFamilyOs = [
|
|
11
|
-
"Manrope",
|
|
12
|
-
"Roboto",
|
|
13
|
-
"sans-serif"
|
|
14
|
-
].join(",");
|
|
2
|
+
var fontFamilyPrimary = ["Lexend Deca", "Helvetica", "sans-serif"].join(",");
|
|
3
|
+
var fontFamilyOs = ["Manrope", "Roboto", "sans-serif"].join(",");
|
|
15
4
|
|
|
16
5
|
// src/themeOptions.ts
|
|
17
6
|
var components = {
|
|
@@ -34,16 +23,8 @@ var components = {
|
|
|
34
23
|
}
|
|
35
24
|
},
|
|
36
25
|
MuiLink: {
|
|
37
|
-
defaultProps: {
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
styleOverrides: {
|
|
41
|
-
root: {
|
|
42
|
-
"&:hover": {
|
|
43
|
-
filter: "brightness(75%)"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
26
|
+
defaultProps: { underline: "none" },
|
|
27
|
+
styleOverrides: { root: { "&:hover": { filter: "brightness(75%)" } } }
|
|
47
28
|
},
|
|
48
29
|
MuiTableCell: {
|
|
49
30
|
styleOverrides: {
|
|
@@ -59,12 +40,8 @@ var components = {
|
|
|
59
40
|
}
|
|
60
41
|
};
|
|
61
42
|
var typography = {
|
|
62
|
-
body1: {
|
|
63
|
-
|
|
64
|
-
},
|
|
65
|
-
body2: {
|
|
66
|
-
lineHeight: 1.57
|
|
67
|
-
},
|
|
43
|
+
body1: { lineHeight: 1.57 },
|
|
44
|
+
body2: { lineHeight: 1.57 },
|
|
68
45
|
button: {
|
|
69
46
|
fontSize: "1rem",
|
|
70
47
|
textTransform: "inherit"
|
|
@@ -86,27 +63,15 @@ var typography = {
|
|
|
86
63
|
fontFamily: fontFamilyPrimary,
|
|
87
64
|
fontSize: "2.24rem"
|
|
88
65
|
},
|
|
89
|
-
h4: {
|
|
90
|
-
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
},
|
|
95
|
-
h6: {
|
|
96
|
-
fontSize: "1.1rem"
|
|
97
|
-
},
|
|
98
|
-
subtitle1: {
|
|
99
|
-
opacity: "70%"
|
|
100
|
-
},
|
|
101
|
-
subtitle2: {
|
|
102
|
-
opacity: "70%"
|
|
103
|
-
}
|
|
66
|
+
h4: { fontSize: "2rem" },
|
|
67
|
+
h5: { fontSize: "1.5rem" },
|
|
68
|
+
h6: { fontSize: "1.1rem" },
|
|
69
|
+
subtitle1: { opacity: "70%" },
|
|
70
|
+
subtitle2: { opacity: "70%" }
|
|
104
71
|
};
|
|
105
72
|
var themeOptions = {
|
|
106
73
|
components,
|
|
107
|
-
shape: {
|
|
108
|
-
borderRadius: 8
|
|
109
|
-
},
|
|
74
|
+
shape: { borderRadius: 8 },
|
|
110
75
|
spacing: 16,
|
|
111
76
|
typography
|
|
112
77
|
};
|
|
@@ -116,7 +81,7 @@ var partialAppThemeOptions = {
|
|
|
116
81
|
components: {
|
|
117
82
|
MuiTypography: {
|
|
118
83
|
styleOverrides: {
|
|
119
|
-
root:
|
|
84
|
+
root: ({ ownerState }) => {
|
|
120
85
|
const { clamped } = ownerState;
|
|
121
86
|
if (clamped) {
|
|
122
87
|
const maxWidth = Number.parseInt(clamped, 10);
|
|
@@ -127,23 +92,18 @@ var partialAppThemeOptions = {
|
|
|
127
92
|
width: `clamp(1%, 100%, ${maxWidth}px)`
|
|
128
93
|
};
|
|
129
94
|
}
|
|
130
|
-
}
|
|
95
|
+
}
|
|
131
96
|
}
|
|
132
97
|
}
|
|
133
98
|
},
|
|
134
99
|
spacing: 8
|
|
135
100
|
};
|
|
136
|
-
var appThemeOptions = {
|
|
137
|
-
...themeOptions,
|
|
138
|
-
...partialAppThemeOptions
|
|
139
|
-
};
|
|
101
|
+
var appThemeOptions = { ...themeOptions, ...partialAppThemeOptions };
|
|
140
102
|
|
|
141
103
|
// src/OsTheme/Components.tsx
|
|
142
104
|
var components2 = {
|
|
143
105
|
MuiCard: {
|
|
144
|
-
defaultProps: {
|
|
145
|
-
elevation: 0
|
|
146
|
-
},
|
|
106
|
+
defaultProps: { elevation: 0 },
|
|
147
107
|
styleOverrides: {
|
|
148
108
|
root: {
|
|
149
109
|
display: "flex",
|
|
@@ -162,22 +122,10 @@ var components2 = {
|
|
|
162
122
|
}
|
|
163
123
|
},
|
|
164
124
|
MuiLink: {
|
|
165
|
-
defaultProps: {
|
|
166
|
-
|
|
167
|
-
},
|
|
168
|
-
styleOverrides: {
|
|
169
|
-
root: {
|
|
170
|
-
"&:hover": {
|
|
171
|
-
filter: "brightness(75%)"
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
MuiPaper: {
|
|
177
|
-
defaultProps: {
|
|
178
|
-
elevation: 0
|
|
179
|
-
}
|
|
125
|
+
defaultProps: { underline: "none" },
|
|
126
|
+
styleOverrides: { root: { "&:hover": { filter: "brightness(75%)" } } }
|
|
180
127
|
},
|
|
128
|
+
MuiPaper: { defaultProps: { elevation: 0 } },
|
|
181
129
|
MuiTableCell: {
|
|
182
130
|
styleOverrides: {
|
|
183
131
|
body: {
|
|
@@ -194,12 +142,8 @@ var components2 = {
|
|
|
194
142
|
|
|
195
143
|
// src/OsTheme/Typography.tsx
|
|
196
144
|
var typography2 = {
|
|
197
|
-
body1: {
|
|
198
|
-
|
|
199
|
-
},
|
|
200
|
-
body2: {
|
|
201
|
-
lineHeight: 1.57
|
|
202
|
-
},
|
|
145
|
+
body1: { lineHeight: 1.57 },
|
|
146
|
+
body2: { lineHeight: 1.57 },
|
|
203
147
|
button: {
|
|
204
148
|
fontSize: "1rem",
|
|
205
149
|
textTransform: "inherit"
|
|
@@ -209,30 +153,14 @@ var typography2 = {
|
|
|
209
153
|
fontWeightLight: 300,
|
|
210
154
|
fontWeightMedium: 600,
|
|
211
155
|
fontWeightRegular: 500,
|
|
212
|
-
h1: {
|
|
213
|
-
|
|
214
|
-
},
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
},
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
},
|
|
221
|
-
h4: {
|
|
222
|
-
fontSize: "2rem"
|
|
223
|
-
},
|
|
224
|
-
h5: {
|
|
225
|
-
fontSize: "1.5rem"
|
|
226
|
-
},
|
|
227
|
-
h6: {
|
|
228
|
-
fontSize: "1.1rem"
|
|
229
|
-
},
|
|
230
|
-
subtitle1: {
|
|
231
|
-
opacity: "70%"
|
|
232
|
-
},
|
|
233
|
-
subtitle2: {
|
|
234
|
-
opacity: "70%"
|
|
235
|
-
}
|
|
156
|
+
h1: { fontSize: "4rem" },
|
|
157
|
+
h2: { fontSize: "2.4rem" },
|
|
158
|
+
h3: { fontSize: "2.24rem" },
|
|
159
|
+
h4: { fontSize: "2rem" },
|
|
160
|
+
h5: { fontSize: "1.5rem" },
|
|
161
|
+
h6: { fontSize: "1.1rem" },
|
|
162
|
+
subtitle1: { opacity: "70%" },
|
|
163
|
+
subtitle2: { opacity: "70%" }
|
|
236
164
|
};
|
|
237
165
|
|
|
238
166
|
// src/OsTheme/DarkMode.tsx
|
|
@@ -241,16 +169,10 @@ var palette = {
|
|
|
241
169
|
default: "#141319",
|
|
242
170
|
paper: "#1C1B20"
|
|
243
171
|
},
|
|
244
|
-
error: {
|
|
245
|
-
main: "#ffb4ab"
|
|
246
|
-
},
|
|
172
|
+
error: { main: "#ffb4ab" },
|
|
247
173
|
mode: "dark",
|
|
248
|
-
primary: {
|
|
249
|
-
|
|
250
|
-
},
|
|
251
|
-
secondary: {
|
|
252
|
-
main: "#C9C3DA"
|
|
253
|
-
},
|
|
174
|
+
primary: { main: "#C9BFFA" },
|
|
175
|
+
secondary: { main: "#C9C3DA" },
|
|
254
176
|
text: {
|
|
255
177
|
primary: "#100029",
|
|
256
178
|
secondary: "#212023"
|
|
@@ -259,9 +181,7 @@ var palette = {
|
|
|
259
181
|
var osThemeOptionsDarkMode = {
|
|
260
182
|
components: components2,
|
|
261
183
|
palette,
|
|
262
|
-
shape: {
|
|
263
|
-
borderRadius: 10
|
|
264
|
-
},
|
|
184
|
+
shape: { borderRadius: 10 },
|
|
265
185
|
spacing: 16,
|
|
266
186
|
typography: typography2
|
|
267
187
|
};
|
|
@@ -272,16 +192,10 @@ var palette2 = {
|
|
|
272
192
|
default: "#FFFFFF",
|
|
273
193
|
paper: "#F6F4ED"
|
|
274
194
|
},
|
|
275
|
-
error: {
|
|
276
|
-
main: "#BA1A1A"
|
|
277
|
-
},
|
|
195
|
+
error: { main: "#BA1A1A" },
|
|
278
196
|
mode: "light",
|
|
279
|
-
primary: {
|
|
280
|
-
|
|
281
|
-
},
|
|
282
|
-
secondary: {
|
|
283
|
-
main: "#A060E0"
|
|
284
|
-
},
|
|
197
|
+
primary: { main: "#100029" },
|
|
198
|
+
secondary: { main: "#A060E0" },
|
|
285
199
|
text: {
|
|
286
200
|
primary: "#100029",
|
|
287
201
|
secondary: "#212023"
|
|
@@ -290,28 +204,17 @@ var palette2 = {
|
|
|
290
204
|
var osThemeOptionsLightMode = {
|
|
291
205
|
components: components2,
|
|
292
206
|
palette: palette2,
|
|
293
|
-
shape: {
|
|
294
|
-
borderRadius: 10
|
|
295
|
-
},
|
|
207
|
+
shape: { borderRadius: 10 },
|
|
296
208
|
spacing: 16,
|
|
297
209
|
typography: typography2
|
|
298
210
|
};
|
|
299
211
|
|
|
300
212
|
// src/OsTheme/osThemeOptions.tsx
|
|
301
|
-
var osThemeOptions = {
|
|
302
|
-
...osThemeOptionsDarkMode,
|
|
303
|
-
...osThemeOptionsLightMode
|
|
304
|
-
};
|
|
213
|
+
var osThemeOptions = { ...osThemeOptionsDarkMode, ...osThemeOptionsLightMode };
|
|
305
214
|
|
|
306
215
|
// src/partialDarkThemeOptions.tsx
|
|
307
216
|
import { darken } from "@mui/material";
|
|
308
|
-
var appComponents = {
|
|
309
|
-
MuiPaper: {
|
|
310
|
-
defaultProps: {
|
|
311
|
-
variant: "elevation"
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
};
|
|
217
|
+
var appComponents = { MuiPaper: { defaultProps: { variant: "elevation" } } };
|
|
315
218
|
var partialDarkThemeOptions = {
|
|
316
219
|
palette: {
|
|
317
220
|
background: {
|
|
@@ -319,38 +222,23 @@ var partialDarkThemeOptions = {
|
|
|
319
222
|
paper: "#171626"
|
|
320
223
|
},
|
|
321
224
|
mode: "dark",
|
|
322
|
-
primary: {
|
|
323
|
-
|
|
324
|
-
},
|
|
325
|
-
secondary: {
|
|
326
|
-
main: "#8EC8FF"
|
|
327
|
-
}
|
|
225
|
+
primary: { main: "#9993F5" },
|
|
226
|
+
secondary: { main: "#8EC8FF" }
|
|
328
227
|
}
|
|
329
228
|
};
|
|
330
|
-
var partialAppDarkThemeOptions = {
|
|
331
|
-
...partialDarkThemeOptions,
|
|
332
|
-
components: appComponents
|
|
333
|
-
};
|
|
229
|
+
var partialAppDarkThemeOptions = { ...partialDarkThemeOptions, components: appComponents };
|
|
334
230
|
|
|
335
231
|
// src/partialLightThemeOptions.tsx
|
|
336
232
|
var partialLightThemeOptions = {
|
|
337
233
|
palette: {
|
|
338
|
-
primary: {
|
|
339
|
-
|
|
340
|
-
},
|
|
341
|
-
secondary: {
|
|
342
|
-
main: "#0f68c9"
|
|
343
|
-
}
|
|
234
|
+
primary: { main: "#1f1a66" },
|
|
235
|
+
secondary: { main: "#0f68c9" }
|
|
344
236
|
}
|
|
345
237
|
};
|
|
346
|
-
var partialAppLightThemeOptions = {
|
|
347
|
-
...partialLightThemeOptions
|
|
348
|
-
};
|
|
238
|
+
var partialAppLightThemeOptions = { ...partialLightThemeOptions };
|
|
349
239
|
|
|
350
240
|
// src/webThemeOptions.tsx
|
|
351
|
-
var webThemeOptions = {
|
|
352
|
-
...themeOptions
|
|
353
|
-
};
|
|
241
|
+
var webThemeOptions = { ...themeOptions };
|
|
354
242
|
export {
|
|
355
243
|
appThemeOptions,
|
|
356
244
|
components,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/fontFamily.ts","../../src/themeOptions.ts","../../src/appThemeOptions.tsx","../../src/OsTheme/Components.tsx","../../src/OsTheme/Typography.tsx","../../src/OsTheme/DarkMode.tsx","../../src/OsTheme/LightMode.tsx","../../src/OsTheme/osThemeOptions.tsx","../../src/partialDarkThemeOptions.tsx","../../src/partialLightThemeOptions.tsx","../../src/webThemeOptions.tsx"],"sourcesContent":["export const fontFamilyPrimary = ['Lexend Deca', 'Helvetica', 'sans-serif'].join(',')\nexport const fontFamilyOs = ['Manrope', 'Roboto', 'sans-serif'].join(',')\n","import type { ThemeOptions } from '@mui/material'\n\nimport { fontFamilyPrimary } from './fontFamily.ts'\n\nexport const components: ThemeOptions['components'] = {\n MuiCard: {\n styleOverrides: {\n root: {\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'space-between',\n },\n },\n },\n MuiCardHeader: {\n styleOverrides: {\n content: {\n display: 'flex',\n flexDirection: 'column',\n overflow: 'hidden',\n },\n },\n },\n MuiLink: {\n defaultProps: { underline: 'none' },\n styleOverrides: { root: { '&:hover': { filter: 'brightness(75%)' } } },\n },\n MuiTableCell: {\n styleOverrides: {\n body: {\n fontFamily: 'monospace',\n whiteSpace: 'nowrap',\n },\n head: {\n fontWeight: 700,\n whiteSpace: 'nowrap',\n },\n },\n },\n}\n\nexport const typography: ThemeOptions['typography'] = {\n body1: { lineHeight: 1.57 },\n body2: { lineHeight: 1.57 },\n button: {\n fontSize: '1rem',\n textTransform: 'inherit',\n },\n fontFamily: fontFamilyPrimary,\n fontWeightBold: 700,\n fontWeightLight: 200,\n fontWeightMedium: 300,\n fontWeightRegular: 400,\n h1: {\n fontFamily: fontFamilyPrimary,\n fontSize: '4rem',\n },\n h2: {\n fontFamily: fontFamilyPrimary,\n fontSize: '2.4rem',\n },\n h3: {\n fontFamily: fontFamilyPrimary,\n fontSize: '2.24rem',\n },\n h4: { fontSize: '2rem' },\n h5: { fontSize: '1.5rem' },\n h6: { fontSize: '1.1rem' },\n subtitle1: { opacity: '70%' },\n subtitle2: { opacity: '70%' },\n}\n\nexport const themeOptions: ThemeOptions = {\n components,\n shape: { borderRadius: 8 },\n spacing: 16,\n typography,\n}\n","import type { ThemeOptions } from '@mui/material'\n\nimport { themeOptions } from './themeOptions.ts'\n\nconst partialAppThemeOptions: ThemeOptions = {\n components: {\n MuiTypography: {\n styleOverrides: {\n root: ({ ownerState }) => {\n const { clamped } = ownerState\n\n if (clamped) {\n const maxWidth = Number.parseInt(clamped as string, 10)\n\n return {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n width: `clamp(1%, 100%, ${maxWidth}px)`,\n }\n }\n },\n },\n },\n },\n spacing: 8,\n}\n\nexport const appThemeOptions: ThemeOptions = { ...themeOptions, ...partialAppThemeOptions }\n","import type { ThemeOptions } from '@mui/material'\n\nexport const components: ThemeOptions['components'] = {\n MuiCard: {\n defaultProps: { elevation: 0 },\n styleOverrides: {\n root: {\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'space-between',\n },\n },\n },\n MuiCardHeader: {\n styleOverrides: {\n content: {\n display: 'flex',\n flexDirection: 'column',\n overflow: 'hidden',\n },\n },\n },\n MuiLink: {\n defaultProps: { underline: 'none' },\n styleOverrides: { root: { '&:hover': { filter: 'brightness(75%)' } } },\n },\n MuiPaper: { defaultProps: { elevation: 0 } },\n MuiTableCell: {\n styleOverrides: {\n body: {\n fontFamily: 'monospace',\n whiteSpace: 'nowrap',\n },\n head: {\n fontWeight: 700,\n whiteSpace: 'nowrap',\n },\n },\n },\n}\n","import type { ThemeOptions } from '@mui/material'\n\nimport { fontFamilyOs } from '../fontFamily.ts'\n\nexport const typography: ThemeOptions['typography'] = {\n body1: { lineHeight: 1.57 },\n body2: { lineHeight: 1.57 },\n button: {\n fontSize: '1rem',\n textTransform: 'inherit',\n },\n fontFamily: fontFamilyOs,\n fontWeightBold: 700,\n fontWeightLight: 300,\n fontWeightMedium: 600,\n fontWeightRegular: 500,\n h1: { fontSize: '4rem' },\n h2: { fontSize: '2.4rem' },\n h3: { fontSize: '2.24rem' },\n h4: { fontSize: '2rem' },\n h5: { fontSize: '1.5rem' },\n h6: { fontSize: '1.1rem' },\n subtitle1: { opacity: '70%' },\n subtitle2: { opacity: '70%' },\n}\n","import type { ThemeOptions } from '@mui/material'\n\nimport { components } from './Components.tsx'\nimport { typography } from './Typography.tsx'\n\nconst palette: ThemeOptions['palette'] = {\n background: {\n default: '#141319',\n paper: '#1C1B20',\n },\n error: { main: '#ffb4ab' },\n mode: 'dark',\n primary: { main: '#C9BFFA' },\n secondary: { main: '#C9C3DA' },\n text: {\n primary: '#100029',\n secondary: '#212023',\n },\n}\n\nexport const osThemeOptionsDarkMode: ThemeOptions = {\n components,\n palette,\n shape: { borderRadius: 10 },\n spacing: 16,\n typography,\n}\n","import type { ThemeOptions } from '@mui/material'\n\nimport { components } from './Components.tsx'\nimport { typography } from './Typography.tsx'\n\nconst palette: ThemeOptions['palette'] = {\n background: {\n default: '#FFFFFF',\n paper: '#F6F4ED',\n },\n error: { main: '#BA1A1A' },\n mode: 'light',\n primary: { main: '#100029' },\n secondary: { main: '#A060E0' },\n text: {\n primary: '#100029',\n secondary: '#212023',\n },\n}\n\nexport const osThemeOptionsLightMode: ThemeOptions = {\n components,\n palette,\n shape: { borderRadius: 10 },\n spacing: 16,\n typography,\n}\n","import type { ThemeOptions } from '@mui/material'\n\nimport { osThemeOptionsDarkMode } from './DarkMode.tsx'\nimport { osThemeOptionsLightMode } from './LightMode.tsx'\n\nexport const osThemeOptions: ThemeOptions = { ...osThemeOptionsDarkMode, ...osThemeOptionsLightMode }\n","import type { ThemeOptions } from '@mui/material'\nimport { darken } from '@mui/material'\n\nconst appComponents: ThemeOptions['components'] = { MuiPaper: { defaultProps: { variant: 'elevation' } } }\n\nexport const partialDarkThemeOptions: ThemeOptions = {\n palette: {\n background: {\n default: darken('#171626', 0.1),\n paper: '#171626',\n },\n mode: 'dark',\n primary: { main: '#9993F5' },\n secondary: { main: '#8EC8FF' },\n },\n}\n\nexport const partialAppDarkThemeOptions: ThemeOptions = { ...partialDarkThemeOptions, components: appComponents }\n","import type { ThemeOptions } from '@mui/material'\n\nexport const partialLightThemeOptions: ThemeOptions = {\n palette: {\n primary: { main: '#1f1a66' },\n secondary: { main: '#0f68c9' },\n },\n}\n\nexport const partialAppLightThemeOptions: ThemeOptions = { ...partialLightThemeOptions }\n","import type { ThemeOptions } from '@mui/material'\n\nimport { themeOptions } from './themeOptions.ts'\n\nexport const webThemeOptions: ThemeOptions = { ...themeOptions }\n"],"mappings":";;;;AAAO,IAAMA,oBAAoB;EAAC;EAAe;EAAa;EAAcC,KAAK,GAAA;AAC1E,IAAMC,eAAe;EAAC;EAAW;EAAU;EAAcD,KAAK,GAAA;;;ACG9D,IAAME,aAAy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EAAE,GAAGC;AAAa;","names":["fontFamilyPrimary","join","fontFamilyOs","components","MuiCard","styleOverrides","root","display","flexDirection","justifyContent","MuiCardHeader","content","overflow","MuiLink","defaultProps","underline","filter","MuiTableCell","body","fontFamily","whiteSpace","head","fontWeight","typography","body1","lineHeight","body2","button","fontSize","textTransform","fontFamilyPrimary","fontWeightBold","fontWeightLight","fontWeightMedium","fontWeightRegular","h1","h2","h3","h4","h5","h6","subtitle1","opacity","subtitle2","themeOptions","shape","borderRadius","spacing","partialAppThemeOptions","components","MuiTypography","styleOverrides","root","ownerState","clamped","maxWidth","Number","parseInt","overflow","textOverflow","whiteSpace","width","spacing","appThemeOptions","themeOptions","components","MuiCard","defaultProps","elevation","styleOverrides","root","display","flexDirection","justifyContent","MuiCardHeader","content","overflow","MuiLink","underline","filter","MuiPaper","MuiTableCell","body","fontFamily","whiteSpace","head","fontWeight","typography","body1","lineHeight","body2","button","fontSize","textTransform","fontFamily","fontFamilyOs","fontWeightBold","fontWeightLight","fontWeightMedium","fontWeightRegular","h1","h2","h3","h4","h5","h6","subtitle1","opacity","subtitle2","palette","background","default","paper","error","main","mode","primary","secondary","text","osThemeOptionsDarkMode","components","shape","borderRadius","spacing","typography","palette","background","default","paper","error","main","mode","primary","secondary","text","osThemeOptionsLightMode","components","shape","borderRadius","spacing","typography","osThemeOptions","osThemeOptionsDarkMode","osThemeOptionsLightMode","darken","appComponents","MuiPaper","defaultProps","variant","partialDarkThemeOptions","palette","background","default","paper","mode","primary","main","secondary","partialAppDarkThemeOptions","components","partialLightThemeOptions","palette","primary","main","secondary","partialAppLightThemeOptions","webThemeOptions","themeOptions"]}
|
|
1
|
+
{"version":3,"sources":["../../src/fontFamily.ts","../../src/themeOptions.ts","../../src/appThemeOptions.tsx","../../src/OsTheme/Components.tsx","../../src/OsTheme/Typography.tsx","../../src/OsTheme/DarkMode.tsx","../../src/OsTheme/LightMode.tsx","../../src/OsTheme/osThemeOptions.tsx","../../src/partialDarkThemeOptions.tsx","../../src/partialLightThemeOptions.tsx","../../src/webThemeOptions.tsx"],"sourcesContent":["export const fontFamilyPrimary = ['Lexend Deca', 'Helvetica', 'sans-serif'].join(',')\nexport const fontFamilyOs = ['Manrope', 'Roboto', 'sans-serif'].join(',')\n","import type { ThemeOptions } from '@mui/material'\n\nimport { fontFamilyPrimary } from './fontFamily.ts'\n\nexport const components: ThemeOptions['components'] = {\n MuiCard: {\n styleOverrides: {\n root: {\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'space-between',\n },\n },\n },\n MuiCardHeader: {\n styleOverrides: {\n content: {\n display: 'flex',\n flexDirection: 'column',\n overflow: 'hidden',\n },\n },\n },\n MuiLink: {\n defaultProps: { underline: 'none' },\n styleOverrides: { root: { '&:hover': { filter: 'brightness(75%)' } } },\n },\n MuiTableCell: {\n styleOverrides: {\n body: {\n fontFamily: 'monospace',\n whiteSpace: 'nowrap',\n },\n head: {\n fontWeight: 700,\n whiteSpace: 'nowrap',\n },\n },\n },\n}\n\nexport const typography: ThemeOptions['typography'] = {\n body1: { lineHeight: 1.57 },\n body2: { lineHeight: 1.57 },\n button: {\n fontSize: '1rem',\n textTransform: 'inherit',\n },\n fontFamily: fontFamilyPrimary,\n fontWeightBold: 700,\n fontWeightLight: 200,\n fontWeightMedium: 300,\n fontWeightRegular: 400,\n h1: {\n fontFamily: fontFamilyPrimary,\n fontSize: '4rem',\n },\n h2: {\n fontFamily: fontFamilyPrimary,\n fontSize: '2.4rem',\n },\n h3: {\n fontFamily: fontFamilyPrimary,\n fontSize: '2.24rem',\n },\n h4: { fontSize: '2rem' },\n h5: { fontSize: '1.5rem' },\n h6: { fontSize: '1.1rem' },\n subtitle1: { opacity: '70%' },\n subtitle2: { opacity: '70%' },\n}\n\nexport const themeOptions: ThemeOptions = {\n components,\n shape: { borderRadius: 8 },\n spacing: 16,\n typography,\n}\n","import type { ThemeOptions } from '@mui/material'\n\nimport { themeOptions } from './themeOptions.ts'\n\nconst partialAppThemeOptions: ThemeOptions = {\n components: {\n MuiTypography: {\n styleOverrides: {\n root: ({ ownerState }) => {\n const { clamped } = ownerState\n\n if (clamped) {\n const maxWidth = Number.parseInt(clamped as string, 10)\n\n return {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n width: `clamp(1%, 100%, ${maxWidth}px)`,\n }\n }\n },\n },\n },\n },\n spacing: 8,\n}\n\nexport const appThemeOptions: ThemeOptions = { ...themeOptions, ...partialAppThemeOptions }\n","import type { ThemeOptions } from '@mui/material'\n\nexport const components: ThemeOptions['components'] = {\n MuiCard: {\n defaultProps: { elevation: 0 },\n styleOverrides: {\n root: {\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'space-between',\n },\n },\n },\n MuiCardHeader: {\n styleOverrides: {\n content: {\n display: 'flex',\n flexDirection: 'column',\n overflow: 'hidden',\n },\n },\n },\n MuiLink: {\n defaultProps: { underline: 'none' },\n styleOverrides: { root: { '&:hover': { filter: 'brightness(75%)' } } },\n },\n MuiPaper: { defaultProps: { elevation: 0 } },\n MuiTableCell: {\n styleOverrides: {\n body: {\n fontFamily: 'monospace',\n whiteSpace: 'nowrap',\n },\n head: {\n fontWeight: 700,\n whiteSpace: 'nowrap',\n },\n },\n },\n}\n","import type { ThemeOptions } from '@mui/material'\n\nimport { fontFamilyOs } from '../fontFamily.ts'\n\nexport const typography: ThemeOptions['typography'] = {\n body1: { lineHeight: 1.57 },\n body2: { lineHeight: 1.57 },\n button: {\n fontSize: '1rem',\n textTransform: 'inherit',\n },\n fontFamily: fontFamilyOs,\n fontWeightBold: 700,\n fontWeightLight: 300,\n fontWeightMedium: 600,\n fontWeightRegular: 500,\n h1: { fontSize: '4rem' },\n h2: { fontSize: '2.4rem' },\n h3: { fontSize: '2.24rem' },\n h4: { fontSize: '2rem' },\n h5: { fontSize: '1.5rem' },\n h6: { fontSize: '1.1rem' },\n subtitle1: { opacity: '70%' },\n subtitle2: { opacity: '70%' },\n}\n","import type { ThemeOptions } from '@mui/material'\n\nimport { components } from './Components.tsx'\nimport { typography } from './Typography.tsx'\n\nconst palette: ThemeOptions['palette'] = {\n background: {\n default: '#141319',\n paper: '#1C1B20',\n },\n error: { main: '#ffb4ab' },\n mode: 'dark',\n primary: { main: '#C9BFFA' },\n secondary: { main: '#C9C3DA' },\n text: {\n primary: '#100029',\n secondary: '#212023',\n },\n}\n\nexport const osThemeOptionsDarkMode: ThemeOptions = {\n components,\n palette,\n shape: { borderRadius: 10 },\n spacing: 16,\n typography,\n}\n","import type { ThemeOptions } from '@mui/material'\n\nimport { components } from './Components.tsx'\nimport { typography } from './Typography.tsx'\n\nconst palette: ThemeOptions['palette'] = {\n background: {\n default: '#FFFFFF',\n paper: '#F6F4ED',\n },\n error: { main: '#BA1A1A' },\n mode: 'light',\n primary: { main: '#100029' },\n secondary: { main: '#A060E0' },\n text: {\n primary: '#100029',\n secondary: '#212023',\n },\n}\n\nexport const osThemeOptionsLightMode: ThemeOptions = {\n components,\n palette,\n shape: { borderRadius: 10 },\n spacing: 16,\n typography,\n}\n","import type { ThemeOptions } from '@mui/material'\n\nimport { osThemeOptionsDarkMode } from './DarkMode.tsx'\nimport { osThemeOptionsLightMode } from './LightMode.tsx'\n\nexport const osThemeOptions: ThemeOptions = { ...osThemeOptionsDarkMode, ...osThemeOptionsLightMode }\n","import type { ThemeOptions } from '@mui/material'\nimport { darken } from '@mui/material'\n\nconst appComponents: ThemeOptions['components'] = { MuiPaper: { defaultProps: { variant: 'elevation' } } }\n\nexport const partialDarkThemeOptions: ThemeOptions = {\n palette: {\n background: {\n default: darken('#171626', 0.1),\n paper: '#171626',\n },\n mode: 'dark',\n primary: { main: '#9993F5' },\n secondary: { main: '#8EC8FF' },\n },\n}\n\nexport const partialAppDarkThemeOptions: ThemeOptions = { ...partialDarkThemeOptions, components: appComponents }\n","import type { ThemeOptions } from '@mui/material'\n\nexport const partialLightThemeOptions: ThemeOptions = {\n palette: {\n primary: { main: '#1f1a66' },\n secondary: { main: '#0f68c9' },\n },\n}\n\nexport const partialAppLightThemeOptions: ThemeOptions = { ...partialLightThemeOptions }\n","import type { ThemeOptions } from '@mui/material'\n\nimport { themeOptions } from './themeOptions.ts'\n\nexport const webThemeOptions: ThemeOptions = { ...themeOptions }\n"],"mappings":";AAAO,IAAM,oBAAoB,CAAC,eAAe,aAAa,YAAY,EAAE,KAAK,GAAG;AAC7E,IAAM,eAAe,CAAC,WAAW,UAAU,YAAY,EAAE,KAAK,GAAG;;;ACGjE,IAAM,aAAyC;AAAA,EACpD,SAAS;AAAA,IACP,gBAAgB;AAAA,MACd,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,eAAe;AAAA,QACf,gBAAgB;AAAA,MAClB;AAAA,IACF;AAAA,EACF;AAAA,EACA,eAAe;AAAA,IACb,gBAAgB;AAAA,MACd,SAAS;AAAA,QACP,SAAS;AAAA,QACT,eAAe;AAAA,QACf,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAAA,EACA,SAAS;AAAA,IACP,cAAc,EAAE,WAAW,OAAO;AAAA,IAClC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,kBAAkB,EAAE,EAAE;AAAA,EACvE;AAAA,EACA,cAAc;AAAA,IACZ,gBAAgB;AAAA,MACd,MAAM;AAAA,QACJ,YAAY;AAAA,QACZ,YAAY;AAAA,MACd;AAAA,MACA,MAAM;AAAA,QACJ,YAAY;AAAA,QACZ,YAAY;AAAA,MACd;AAAA,IACF;AAAA,EACF;AACF;AAEO,IAAM,aAAyC;AAAA,EACpD,OAAO,EAAE,YAAY,KAAK;AAAA,EAC1B,OAAO,EAAE,YAAY,KAAK;AAAA,EAC1B,QAAQ;AAAA,IACN,UAAU;AAAA,IACV,eAAe;AAAA,EACjB;AAAA,EACA,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,IAAI;AAAA,IACF,YAAY;AAAA,IACZ,UAAU;AAAA,EACZ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AAAA,EAClD,YAAAC;AAAA,EACA;AAAA,EACA,OAAO,EAAE,cAAc,GAAG;AAAA,EAC1B,SAAS;AAAA,EACT,YAAAC;AACF;;;ACrBA,IAAMC,WAAmC;AAAA,EACvC,YAAY;AAAA,IACV,SAAS;AAAA,IACT,OAAO;AAAA,EACT;AAAA,EACA,OAAO,EAAE,MAAM,UAAU;AAAA,EACzB,MAAM;AAAA,EACN,SAAS,EAAE,MAAM,UAAU;AAAA,EAC3B,WAAW,EAAE,MAAM,UAAU;AAAA,EAC7B,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,WAAW;AAAA,EACb;AACF;AAEO,IAAM,0BAAwC;AAAA,EACnD,YAAAC;AAAA,EACA,SAAAD;AAAA,EACA,OAAO,EAAE,cAAc,GAAG;AAAA,EAC1B,SAAS;AAAA,EACT,YAAAE;AACF;;;ACrBO,IAAM,iBAA+B,EAAE,GAAG,wBAAwB,GAAG,wBAAwB;;;ACJpG,SAAS,cAAc;AAEvB,IAAM,gBAA4C,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,YAAY,EAAE,EAAE;AAElG,IAAM,0BAAwC;AAAA,EACnD,SAAS;AAAA,IACP,YAAY;AAAA,MACV,SAAS,OAAO,WAAW,GAAG;AAAA,MAC9B,OAAO;AAAA,IACT;AAAA,IACA,MAAM;AAAA,IACN,SAAS,EAAE,MAAM,UAAU;AAAA,IAC3B,WAAW,EAAE,MAAM,UAAU;AAAA,EAC/B;AACF;AAEO,IAAM,6BAA2C,EAAE,GAAG,yBAAyB,YAAY,cAAc;;;ACfzG,IAAM,2BAAyC;AAAA,EACpD,SAAS;AAAA,IACP,SAAS,EAAE,MAAM,UAAU;AAAA,IAC3B,WAAW,EAAE,MAAM,UAAU;AAAA,EAC/B;AACF;AAEO,IAAM,8BAA4C,EAAE,GAAG,yBAAyB;;;ACLhF,IAAM,kBAAgC,EAAE,GAAG,aAAa;","names":["components","typography","components","typography","palette","components","typography"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-theme",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.11",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -36,28 +36,34 @@
|
|
|
36
36
|
},
|
|
37
37
|
"./package.json": "./package.json"
|
|
38
38
|
},
|
|
39
|
-
"module": "dist/browser/index.mjs",
|
|
40
|
-
"types": "dist/browser/index.d.ts",
|
|
41
39
|
"files": [
|
|
42
40
|
"dist",
|
|
43
|
-
"
|
|
41
|
+
"README.md"
|
|
44
42
|
],
|
|
45
43
|
"devDependencies": {
|
|
46
|
-
"@mui/material": "
|
|
44
|
+
"@mui/material": "^7.3.10",
|
|
45
|
+
"@types/node": "~25.6.0",
|
|
47
46
|
"@types/react": "^19.2.14",
|
|
48
|
-
"@xylabs/
|
|
49
|
-
"@xylabs/
|
|
50
|
-
"
|
|
51
|
-
"react
|
|
47
|
+
"@xylabs/toolchain": "~7.11.9",
|
|
48
|
+
"@xylabs/tsconfig": "^7.11.9",
|
|
49
|
+
"@xylabs/tsconfig-dom": "^7.11.9",
|
|
50
|
+
"@xylabs/tsconfig-react": "~7.11.9",
|
|
51
|
+
"esbuild": "~0.28.0",
|
|
52
|
+
"eslint": "^10.2.1",
|
|
53
|
+
"react": "^19.2.5",
|
|
54
|
+
"react-dom": "^19.2.5",
|
|
52
55
|
"typescript": "^5.9.3"
|
|
53
56
|
},
|
|
54
57
|
"peerDependencies": {
|
|
55
|
-
"@mui/material": "
|
|
56
|
-
"react": "^19",
|
|
57
|
-
"
|
|
58
|
+
"@mui/material": "^7.3.10",
|
|
59
|
+
"@types/react": "^19.2.14",
|
|
60
|
+
"@xylabs/tsconfig": "^7.11.9",
|
|
61
|
+
"@xylabs/tsconfig-dom": "^7.11.9",
|
|
62
|
+
"react": "^19.2.5",
|
|
63
|
+
"react-dom": "^19.2.5"
|
|
58
64
|
},
|
|
59
65
|
"publishConfig": {
|
|
60
66
|
"access": "public"
|
|
61
67
|
},
|
|
62
68
|
"docs": "dist/docs.json"
|
|
63
|
-
}
|
|
69
|
+
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { ThemeOptions } from '@mui/material'
|
|
2
|
-
|
|
3
|
-
export const components: ThemeOptions['components'] = {
|
|
4
|
-
MuiCard: {
|
|
5
|
-
defaultProps: { elevation: 0 },
|
|
6
|
-
styleOverrides: {
|
|
7
|
-
root: {
|
|
8
|
-
display: 'flex',
|
|
9
|
-
flexDirection: 'column',
|
|
10
|
-
justifyContent: 'space-between',
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
MuiCardHeader: {
|
|
15
|
-
styleOverrides: {
|
|
16
|
-
content: {
|
|
17
|
-
display: 'flex',
|
|
18
|
-
flexDirection: 'column',
|
|
19
|
-
overflow: 'hidden',
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
MuiLink: {
|
|
24
|
-
defaultProps: { underline: 'none' },
|
|
25
|
-
styleOverrides: { root: { '&:hover': { filter: 'brightness(75%)' } } },
|
|
26
|
-
},
|
|
27
|
-
MuiPaper: { defaultProps: { elevation: 0 } },
|
|
28
|
-
MuiTableCell: {
|
|
29
|
-
styleOverrides: {
|
|
30
|
-
body: {
|
|
31
|
-
fontFamily: 'monospace',
|
|
32
|
-
whiteSpace: 'nowrap',
|
|
33
|
-
},
|
|
34
|
-
head: {
|
|
35
|
-
fontWeight: 700,
|
|
36
|
-
whiteSpace: 'nowrap',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
}
|
package/src/OsTheme/DarkMode.tsx
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { ThemeOptions } from '@mui/material'
|
|
2
|
-
|
|
3
|
-
import { components } from './Components.tsx'
|
|
4
|
-
import { typography } from './Typography.tsx'
|
|
5
|
-
|
|
6
|
-
const palette: ThemeOptions['palette'] = {
|
|
7
|
-
background: {
|
|
8
|
-
default: '#141319',
|
|
9
|
-
paper: '#1C1B20',
|
|
10
|
-
},
|
|
11
|
-
error: { main: '#ffb4ab' },
|
|
12
|
-
mode: 'dark',
|
|
13
|
-
primary: { main: '#C9BFFA' },
|
|
14
|
-
secondary: { main: '#C9C3DA' },
|
|
15
|
-
text: {
|
|
16
|
-
primary: '#100029',
|
|
17
|
-
secondary: '#212023',
|
|
18
|
-
},
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export const osThemeOptionsDarkMode: ThemeOptions = {
|
|
22
|
-
components,
|
|
23
|
-
palette,
|
|
24
|
-
shape: { borderRadius: 10 },
|
|
25
|
-
spacing: 16,
|
|
26
|
-
typography,
|
|
27
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { ThemeOptions } from '@mui/material'
|
|
2
|
-
|
|
3
|
-
import { components } from './Components.tsx'
|
|
4
|
-
import { typography } from './Typography.tsx'
|
|
5
|
-
|
|
6
|
-
const palette: ThemeOptions['palette'] = {
|
|
7
|
-
background: {
|
|
8
|
-
default: '#FFFFFF',
|
|
9
|
-
paper: '#F6F4ED',
|
|
10
|
-
},
|
|
11
|
-
error: { main: '#BA1A1A' },
|
|
12
|
-
mode: 'light',
|
|
13
|
-
primary: { main: '#100029' },
|
|
14
|
-
secondary: { main: '#A060E0' },
|
|
15
|
-
text: {
|
|
16
|
-
primary: '#100029',
|
|
17
|
-
secondary: '#212023',
|
|
18
|
-
},
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export const osThemeOptionsLightMode: ThemeOptions = {
|
|
22
|
-
components,
|
|
23
|
-
palette,
|
|
24
|
-
shape: { borderRadius: 10 },
|
|
25
|
-
spacing: 16,
|
|
26
|
-
typography,
|
|
27
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { ThemeOptions } from '@mui/material'
|
|
2
|
-
|
|
3
|
-
import { fontFamilyOs } from '../fontFamily.ts'
|
|
4
|
-
|
|
5
|
-
export const typography: ThemeOptions['typography'] = {
|
|
6
|
-
body1: { lineHeight: 1.57 },
|
|
7
|
-
body2: { lineHeight: 1.57 },
|
|
8
|
-
button: {
|
|
9
|
-
fontSize: '1rem',
|
|
10
|
-
textTransform: 'inherit',
|
|
11
|
-
},
|
|
12
|
-
fontFamily: fontFamilyOs,
|
|
13
|
-
fontWeightBold: 700,
|
|
14
|
-
fontWeightLight: 300,
|
|
15
|
-
fontWeightMedium: 600,
|
|
16
|
-
fontWeightRegular: 500,
|
|
17
|
-
h1: { fontSize: '4rem' },
|
|
18
|
-
h2: { fontSize: '2.4rem' },
|
|
19
|
-
h3: { fontSize: '2.24rem' },
|
|
20
|
-
h4: { fontSize: '2rem' },
|
|
21
|
-
h5: { fontSize: '1.5rem' },
|
|
22
|
-
h6: { fontSize: '1.1rem' },
|
|
23
|
-
subtitle1: { opacity: '70%' },
|
|
24
|
-
subtitle2: { opacity: '70%' },
|
|
25
|
-
}
|
package/src/OsTheme/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './osThemeOptions.tsx'
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ThemeOptions } from '@mui/material'
|
|
2
|
-
|
|
3
|
-
import { osThemeOptionsDarkMode } from './DarkMode.tsx'
|
|
4
|
-
import { osThemeOptionsLightMode } from './LightMode.tsx'
|
|
5
|
-
|
|
6
|
-
export const osThemeOptions: ThemeOptions = { ...osThemeOptionsDarkMode, ...osThemeOptionsLightMode }
|
package/src/appThemeOptions.tsx
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { ThemeOptions } from '@mui/material'
|
|
2
|
-
|
|
3
|
-
import { themeOptions } from './themeOptions.ts'
|
|
4
|
-
|
|
5
|
-
const partialAppThemeOptions: ThemeOptions = {
|
|
6
|
-
components: {
|
|
7
|
-
MuiTypography: {
|
|
8
|
-
styleOverrides: {
|
|
9
|
-
root: ({ ownerState }) => {
|
|
10
|
-
const { clamped } = ownerState
|
|
11
|
-
|
|
12
|
-
if (clamped) {
|
|
13
|
-
const maxWidth = Number.parseInt(clamped as string, 10)
|
|
14
|
-
|
|
15
|
-
return {
|
|
16
|
-
overflow: 'hidden',
|
|
17
|
-
textOverflow: 'ellipsis',
|
|
18
|
-
whiteSpace: 'nowrap',
|
|
19
|
-
width: `clamp(1%, 100%, ${maxWidth}px)`,
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
spacing: 8,
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export const appThemeOptions: ThemeOptions = { ...themeOptions, ...partialAppThemeOptions }
|
package/src/fontFamily.ts
DELETED
package/src/index.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from './appThemeOptions.tsx'
|
|
2
|
-
export * from './fontFamily.ts'
|
|
3
|
-
export * from './OsTheme/index.ts'
|
|
4
|
-
export * from './partialDarkThemeOptions.tsx'
|
|
5
|
-
export * from './partialLightThemeOptions.tsx'
|
|
6
|
-
export * from './themeOptions.ts'
|
|
7
|
-
export * from './webThemeOptions.tsx'
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ThemeOptions } from '@mui/material'
|
|
2
|
-
import { darken } from '@mui/material'
|
|
3
|
-
|
|
4
|
-
const appComponents: ThemeOptions['components'] = { MuiPaper: { defaultProps: { variant: 'elevation' } } }
|
|
5
|
-
|
|
6
|
-
export const partialDarkThemeOptions: ThemeOptions = {
|
|
7
|
-
palette: {
|
|
8
|
-
background: {
|
|
9
|
-
default: darken('#171626', 0.1),
|
|
10
|
-
paper: '#171626',
|
|
11
|
-
},
|
|
12
|
-
mode: 'dark',
|
|
13
|
-
primary: { main: '#9993F5' },
|
|
14
|
-
secondary: { main: '#8EC8FF' },
|
|
15
|
-
},
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const partialAppDarkThemeOptions: ThemeOptions = { ...partialDarkThemeOptions, components: appComponents }
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ThemeOptions } from '@mui/material'
|
|
2
|
-
|
|
3
|
-
export const partialLightThemeOptions: ThemeOptions = {
|
|
4
|
-
palette: {
|
|
5
|
-
primary: { main: '#1f1a66' },
|
|
6
|
-
secondary: { main: '#0f68c9' },
|
|
7
|
-
},
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const partialAppLightThemeOptions: ThemeOptions = { ...partialLightThemeOptions }
|
package/src/themeOptions.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { ThemeOptions } from '@mui/material'
|
|
2
|
-
|
|
3
|
-
import { fontFamilyPrimary } from './fontFamily.ts'
|
|
4
|
-
|
|
5
|
-
export const components: ThemeOptions['components'] = {
|
|
6
|
-
MuiCard: {
|
|
7
|
-
styleOverrides: {
|
|
8
|
-
root: {
|
|
9
|
-
display: 'flex',
|
|
10
|
-
flexDirection: 'column',
|
|
11
|
-
justifyContent: 'space-between',
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
MuiCardHeader: {
|
|
16
|
-
styleOverrides: {
|
|
17
|
-
content: {
|
|
18
|
-
display: 'flex',
|
|
19
|
-
flexDirection: 'column',
|
|
20
|
-
overflow: 'hidden',
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
MuiLink: {
|
|
25
|
-
defaultProps: { underline: 'none' },
|
|
26
|
-
styleOverrides: { root: { '&:hover': { filter: 'brightness(75%)' } } },
|
|
27
|
-
},
|
|
28
|
-
MuiTableCell: {
|
|
29
|
-
styleOverrides: {
|
|
30
|
-
body: {
|
|
31
|
-
fontFamily: 'monospace',
|
|
32
|
-
whiteSpace: 'nowrap',
|
|
33
|
-
},
|
|
34
|
-
head: {
|
|
35
|
-
fontWeight: 700,
|
|
36
|
-
whiteSpace: 'nowrap',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export const typography: ThemeOptions['typography'] = {
|
|
43
|
-
body1: { lineHeight: 1.57 },
|
|
44
|
-
body2: { lineHeight: 1.57 },
|
|
45
|
-
button: {
|
|
46
|
-
fontSize: '1rem',
|
|
47
|
-
textTransform: 'inherit',
|
|
48
|
-
},
|
|
49
|
-
fontFamily: fontFamilyPrimary,
|
|
50
|
-
fontWeightBold: 700,
|
|
51
|
-
fontWeightLight: 200,
|
|
52
|
-
fontWeightMedium: 300,
|
|
53
|
-
fontWeightRegular: 400,
|
|
54
|
-
h1: {
|
|
55
|
-
fontFamily: fontFamilyPrimary,
|
|
56
|
-
fontSize: '4rem',
|
|
57
|
-
},
|
|
58
|
-
h2: {
|
|
59
|
-
fontFamily: fontFamilyPrimary,
|
|
60
|
-
fontSize: '2.4rem',
|
|
61
|
-
},
|
|
62
|
-
h3: {
|
|
63
|
-
fontFamily: fontFamilyPrimary,
|
|
64
|
-
fontSize: '2.24rem',
|
|
65
|
-
},
|
|
66
|
-
h4: { fontSize: '2rem' },
|
|
67
|
-
h5: { fontSize: '1.5rem' },
|
|
68
|
-
h6: { fontSize: '1.1rem' },
|
|
69
|
-
subtitle1: { opacity: '70%' },
|
|
70
|
-
subtitle2: { opacity: '70%' },
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export const themeOptions: ThemeOptions = {
|
|
74
|
-
components,
|
|
75
|
-
shape: { borderRadius: 8 },
|
|
76
|
-
spacing: 16,
|
|
77
|
-
typography,
|
|
78
|
-
}
|