@xyo-network/react-theme 7.4.2 → 7.5.1

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.
@@ -1,6 +1,17 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
1
4
  // src/fontFamily.ts
2
- var fontFamilyPrimary = ["Lexend Deca", "Helvetica", "sans-serif"].join(",");
3
- var fontFamilyOs = ["Manrope", "Roboto", "sans-serif"].join(",");
5
+ var fontFamilyPrimary = [
6
+ "Lexend Deca",
7
+ "Helvetica",
8
+ "sans-serif"
9
+ ].join(",");
10
+ var fontFamilyOs = [
11
+ "Manrope",
12
+ "Roboto",
13
+ "sans-serif"
14
+ ].join(",");
4
15
 
5
16
  // src/themeOptions.ts
6
17
  var components = {
@@ -23,8 +34,16 @@ var components = {
23
34
  }
24
35
  },
25
36
  MuiLink: {
26
- defaultProps: { underline: "none" },
27
- styleOverrides: { root: { "&:hover": { filter: "brightness(75%)" } } }
37
+ defaultProps: {
38
+ underline: "none"
39
+ },
40
+ styleOverrides: {
41
+ root: {
42
+ "&:hover": {
43
+ filter: "brightness(75%)"
44
+ }
45
+ }
46
+ }
28
47
  },
29
48
  MuiTableCell: {
30
49
  styleOverrides: {
@@ -40,8 +59,12 @@ var components = {
40
59
  }
41
60
  };
42
61
  var typography = {
43
- body1: { lineHeight: 1.57 },
44
- body2: { lineHeight: 1.57 },
62
+ body1: {
63
+ lineHeight: 1.57
64
+ },
65
+ body2: {
66
+ lineHeight: 1.57
67
+ },
45
68
  button: {
46
69
  fontSize: "1rem",
47
70
  textTransform: "inherit"
@@ -63,15 +86,27 @@ var typography = {
63
86
  fontFamily: fontFamilyPrimary,
64
87
  fontSize: "2.24rem"
65
88
  },
66
- h4: { fontSize: "2rem" },
67
- h5: { fontSize: "1.5rem" },
68
- h6: { fontSize: "1.1rem" },
69
- subtitle1: { opacity: "70%" },
70
- subtitle2: { opacity: "70%" }
89
+ h4: {
90
+ fontSize: "2rem"
91
+ },
92
+ h5: {
93
+ fontSize: "1.5rem"
94
+ },
95
+ h6: {
96
+ fontSize: "1.1rem"
97
+ },
98
+ subtitle1: {
99
+ opacity: "70%"
100
+ },
101
+ subtitle2: {
102
+ opacity: "70%"
103
+ }
71
104
  };
72
105
  var themeOptions = {
73
106
  components,
74
- shape: { borderRadius: 8 },
107
+ shape: {
108
+ borderRadius: 8
109
+ },
75
110
  spacing: 16,
76
111
  typography
77
112
  };
@@ -81,7 +116,7 @@ var partialAppThemeOptions = {
81
116
  components: {
82
117
  MuiTypography: {
83
118
  styleOverrides: {
84
- root: ({ ownerState }) => {
119
+ root: /* @__PURE__ */ __name(({ ownerState }) => {
85
120
  const { clamped } = ownerState;
86
121
  if (clamped) {
87
122
  const maxWidth = Number.parseInt(clamped, 10);
@@ -92,18 +127,23 @@ var partialAppThemeOptions = {
92
127
  width: `clamp(1%, 100%, ${maxWidth}px)`
93
128
  };
94
129
  }
95
- }
130
+ }, "root")
96
131
  }
97
132
  }
98
133
  },
99
134
  spacing: 8
100
135
  };
101
- var appThemeOptions = { ...themeOptions, ...partialAppThemeOptions };
136
+ var appThemeOptions = {
137
+ ...themeOptions,
138
+ ...partialAppThemeOptions
139
+ };
102
140
 
103
141
  // src/OsTheme/Components.tsx
104
142
  var components2 = {
105
143
  MuiCard: {
106
- defaultProps: { elevation: 0 },
144
+ defaultProps: {
145
+ elevation: 0
146
+ },
107
147
  styleOverrides: {
108
148
  root: {
109
149
  display: "flex",
@@ -122,10 +162,22 @@ var components2 = {
122
162
  }
123
163
  },
124
164
  MuiLink: {
125
- defaultProps: { underline: "none" },
126
- styleOverrides: { root: { "&:hover": { filter: "brightness(75%)" } } }
165
+ defaultProps: {
166
+ underline: "none"
167
+ },
168
+ styleOverrides: {
169
+ root: {
170
+ "&:hover": {
171
+ filter: "brightness(75%)"
172
+ }
173
+ }
174
+ }
175
+ },
176
+ MuiPaper: {
177
+ defaultProps: {
178
+ elevation: 0
179
+ }
127
180
  },
128
- MuiPaper: { defaultProps: { elevation: 0 } },
129
181
  MuiTableCell: {
130
182
  styleOverrides: {
131
183
  body: {
@@ -142,8 +194,12 @@ var components2 = {
142
194
 
143
195
  // src/OsTheme/Typography.tsx
144
196
  var typography2 = {
145
- body1: { lineHeight: 1.57 },
146
- body2: { lineHeight: 1.57 },
197
+ body1: {
198
+ lineHeight: 1.57
199
+ },
200
+ body2: {
201
+ lineHeight: 1.57
202
+ },
147
203
  button: {
148
204
  fontSize: "1rem",
149
205
  textTransform: "inherit"
@@ -153,14 +209,30 @@ var typography2 = {
153
209
  fontWeightLight: 300,
154
210
  fontWeightMedium: 600,
155
211
  fontWeightRegular: 500,
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%" }
212
+ h1: {
213
+ fontSize: "4rem"
214
+ },
215
+ h2: {
216
+ fontSize: "2.4rem"
217
+ },
218
+ h3: {
219
+ fontSize: "2.24rem"
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
+ }
164
236
  };
165
237
 
166
238
  // src/OsTheme/DarkMode.tsx
@@ -169,10 +241,16 @@ var palette = {
169
241
  default: "#141319",
170
242
  paper: "#1C1B20"
171
243
  },
172
- error: { main: "#ffb4ab" },
244
+ error: {
245
+ main: "#ffb4ab"
246
+ },
173
247
  mode: "dark",
174
- primary: { main: "#C9BFFA" },
175
- secondary: { main: "#C9C3DA" },
248
+ primary: {
249
+ main: "#C9BFFA"
250
+ },
251
+ secondary: {
252
+ main: "#C9C3DA"
253
+ },
176
254
  text: {
177
255
  primary: "#100029",
178
256
  secondary: "#212023"
@@ -181,7 +259,9 @@ var palette = {
181
259
  var osThemeOptionsDarkMode = {
182
260
  components: components2,
183
261
  palette,
184
- shape: { borderRadius: 10 },
262
+ shape: {
263
+ borderRadius: 10
264
+ },
185
265
  spacing: 16,
186
266
  typography: typography2
187
267
  };
@@ -192,10 +272,16 @@ var palette2 = {
192
272
  default: "#FFFFFF",
193
273
  paper: "#F6F4ED"
194
274
  },
195
- error: { main: "#BA1A1A" },
275
+ error: {
276
+ main: "#BA1A1A"
277
+ },
196
278
  mode: "light",
197
- primary: { main: "#100029" },
198
- secondary: { main: "#A060E0" },
279
+ primary: {
280
+ main: "#100029"
281
+ },
282
+ secondary: {
283
+ main: "#A060E0"
284
+ },
199
285
  text: {
200
286
  primary: "#100029",
201
287
  secondary: "#212023"
@@ -204,17 +290,28 @@ var palette2 = {
204
290
  var osThemeOptionsLightMode = {
205
291
  components: components2,
206
292
  palette: palette2,
207
- shape: { borderRadius: 10 },
293
+ shape: {
294
+ borderRadius: 10
295
+ },
208
296
  spacing: 16,
209
297
  typography: typography2
210
298
  };
211
299
 
212
300
  // src/OsTheme/osThemeOptions.tsx
213
- var osThemeOptions = { ...osThemeOptionsDarkMode, ...osThemeOptionsLightMode };
301
+ var osThemeOptions = {
302
+ ...osThemeOptionsDarkMode,
303
+ ...osThemeOptionsLightMode
304
+ };
214
305
 
215
306
  // src/partialDarkThemeOptions.tsx
216
307
  import { darken } from "@mui/material";
217
- var appComponents = { MuiPaper: { defaultProps: { variant: "elevation" } } };
308
+ var appComponents = {
309
+ MuiPaper: {
310
+ defaultProps: {
311
+ variant: "elevation"
312
+ }
313
+ }
314
+ };
218
315
  var partialDarkThemeOptions = {
219
316
  palette: {
220
317
  background: {
@@ -222,23 +319,38 @@ var partialDarkThemeOptions = {
222
319
  paper: "#171626"
223
320
  },
224
321
  mode: "dark",
225
- primary: { main: "#9993F5" },
226
- secondary: { main: "#8EC8FF" }
322
+ primary: {
323
+ main: "#9993F5"
324
+ },
325
+ secondary: {
326
+ main: "#8EC8FF"
327
+ }
227
328
  }
228
329
  };
229
- var partialAppDarkThemeOptions = { ...partialDarkThemeOptions, components: appComponents };
330
+ var partialAppDarkThemeOptions = {
331
+ ...partialDarkThemeOptions,
332
+ components: appComponents
333
+ };
230
334
 
231
335
  // src/partialLightThemeOptions.tsx
232
336
  var partialLightThemeOptions = {
233
337
  palette: {
234
- primary: { main: "#1f1a66" },
235
- secondary: { main: "#0f68c9" }
338
+ primary: {
339
+ main: "#1f1a66"
340
+ },
341
+ secondary: {
342
+ main: "#0f68c9"
343
+ }
236
344
  }
237
345
  };
238
- var partialAppLightThemeOptions = { ...partialLightThemeOptions };
346
+ var partialAppLightThemeOptions = {
347
+ ...partialLightThemeOptions
348
+ };
239
349
 
240
350
  // src/webThemeOptions.tsx
241
- var webThemeOptions = { ...themeOptions };
351
+ var webThemeOptions = {
352
+ ...themeOptions
353
+ };
242
354
  export {
243
355
  appThemeOptions,
244
356
  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,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;AAA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AAA,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"]}
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,oBAA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M;IAAU;IAC3BC,WAAW;MAAED,MAAM;IAAU;EAC/B;AACF;AAEO,IAAME,8BAA4C;EAAE,GAAGL;AAAyB;;;ACLhF,IAAMM,kBAAgC;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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-theme",
3
- "version": "7.4.2",
3
+ "version": "7.5.1",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -43,11 +43,11 @@
43
43
  "src"
44
44
  ],
45
45
  "devDependencies": {
46
- "@mui/material": "~7.3.6",
47
- "@types/react": "^19.2.7",
48
- "@xylabs/ts-scripts-yarn3": "~7.2.8",
49
- "react": "^19.2.1",
50
- "react-dom": "^19.2.1",
46
+ "@mui/material": "~7.3.7",
47
+ "@types/react": "^19.2.10",
48
+ "@xylabs/ts-scripts-yarn3": "~7.3.2",
49
+ "react": "^19.2.4",
50
+ "react-dom": "^19.2.4",
51
51
  "typescript": "^5.9.3"
52
52
  },
53
53
  "peerDependencies": {
@@ -59,4 +59,4 @@
59
59
  "access": "public"
60
60
  },
61
61
  "docs": "dist/docs.json"
62
- }
62
+ }