@xyo-network/react-theme 3.0.0 → 3.0.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.
- package/dist/browser/index.d.ts +48 -3
- package/dist/browser/index.mjs +18 -15
- package/dist/browser/index.mjs.map +1 -1
- package/package.json +1 -4
- package/src/OsTheme/osThemeOptions.tsx +1 -3
- package/src/appThemeOptions.tsx +1 -2
- package/src/partialDarkThemeOptions.tsx +1 -2
- package/src/partialLightThemeOptions.tsx +1 -2
- package/src/webThemeOptions.tsx +1 -2
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,12 +1,43 @@
|
|
|
1
|
+
import * as _mui_system from '@mui/system';
|
|
2
|
+
import * as _mui_material_styles_zIndex_js from '@mui/material/styles/zIndex.js';
|
|
1
3
|
import * as _mui_material from '@mui/material';
|
|
2
4
|
import { ThemeOptions } from '@mui/material';
|
|
5
|
+
import * as _mui_material_styles_createMixins_js from '@mui/material/styles/createMixins.js';
|
|
3
6
|
|
|
4
|
-
declare const appThemeOptions:
|
|
7
|
+
declare const appThemeOptions: {
|
|
8
|
+
mixins?: _mui_material_styles_createMixins_js.MixinsOptions;
|
|
9
|
+
components?: _mui_material.Components<Omit<_mui_material.Theme, "components">>;
|
|
10
|
+
palette?: _mui_material.PaletteOptions;
|
|
11
|
+
shadows?: _mui_material.Shadows;
|
|
12
|
+
transitions?: _mui_material.TransitionsOptions;
|
|
13
|
+
typography?: _mui_material.TypographyVariantsOptions | ((palette: _mui_material.Palette) => _mui_material.TypographyVariantsOptions);
|
|
14
|
+
zIndex?: _mui_material_styles_zIndex_js.ZIndexOptions;
|
|
15
|
+
unstable_strictMode?: boolean;
|
|
16
|
+
unstable_sxConfig?: _mui_system.SxConfig;
|
|
17
|
+
shape?: _mui_system.ShapeOptions;
|
|
18
|
+
breakpoints?: _mui_material.BreakpointsOptions;
|
|
19
|
+
direction?: _mui_material.Direction;
|
|
20
|
+
spacing?: _mui_system.SpacingOptions;
|
|
21
|
+
};
|
|
5
22
|
|
|
6
23
|
declare const fontFamilyPrimary: string;
|
|
7
24
|
declare const fontFamilyOs: string;
|
|
8
25
|
|
|
9
|
-
declare const osThemeOptions:
|
|
26
|
+
declare const osThemeOptions: {
|
|
27
|
+
mixins?: _mui_material_styles_createMixins_js.MixinsOptions;
|
|
28
|
+
components?: _mui_material.Components<Omit<_mui_material.Theme, "components">>;
|
|
29
|
+
palette?: _mui_material.PaletteOptions;
|
|
30
|
+
shadows?: _mui_material.Shadows;
|
|
31
|
+
transitions?: _mui_material.TransitionsOptions;
|
|
32
|
+
typography?: _mui_material.TypographyVariantsOptions | ((palette: _mui_material.Palette) => _mui_material.TypographyVariantsOptions);
|
|
33
|
+
zIndex?: _mui_material_styles_zIndex_js.ZIndexOptions;
|
|
34
|
+
unstable_strictMode?: boolean;
|
|
35
|
+
unstable_sxConfig?: _mui_system.SxConfig;
|
|
36
|
+
shape?: _mui_system.ShapeOptions;
|
|
37
|
+
breakpoints?: _mui_system.BreakpointsOptions;
|
|
38
|
+
direction?: _mui_system.Direction;
|
|
39
|
+
spacing?: _mui_system.SpacingOptions;
|
|
40
|
+
};
|
|
10
41
|
|
|
11
42
|
declare const partialDarkThemeOptions: ThemeOptions;
|
|
12
43
|
declare const partialAppDarkThemeOptions: ThemeOptions;
|
|
@@ -18,6 +49,20 @@ declare const components: ThemeOptions['components'];
|
|
|
18
49
|
declare const typography: ThemeOptions['typography'];
|
|
19
50
|
declare const themeOptions: ThemeOptions;
|
|
20
51
|
|
|
21
|
-
declare const webThemeOptions:
|
|
52
|
+
declare const webThemeOptions: {
|
|
53
|
+
mixins?: _mui_material_styles_createMixins_js.MixinsOptions;
|
|
54
|
+
components?: _mui_material.Components<Omit<_mui_material.Theme, "components">>;
|
|
55
|
+
palette?: _mui_material.PaletteOptions;
|
|
56
|
+
shadows?: _mui_material.Shadows;
|
|
57
|
+
transitions?: _mui_material.TransitionsOptions;
|
|
58
|
+
typography?: _mui_material.TypographyVariantsOptions | ((palette: _mui_material.Palette) => _mui_material.TypographyVariantsOptions);
|
|
59
|
+
zIndex?: _mui_material_styles_zIndex_js.ZIndexOptions;
|
|
60
|
+
unstable_strictMode?: boolean;
|
|
61
|
+
unstable_sxConfig?: _mui_system.SxConfig;
|
|
62
|
+
shape?: _mui_system.ShapeOptions;
|
|
63
|
+
breakpoints?: _mui_material.BreakpointsOptions;
|
|
64
|
+
direction?: _mui_material.Direction;
|
|
65
|
+
spacing?: _mui_system.SpacingOptions;
|
|
66
|
+
};
|
|
22
67
|
|
|
23
68
|
export { appThemeOptions, components, fontFamilyOs, fontFamilyPrimary, osThemeOptions, partialAppDarkThemeOptions, partialAppLightThemeOptions, partialDarkThemeOptions, partialLightThemeOptions, themeOptions, typography, webThemeOptions };
|
package/dist/browser/index.mjs
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
3
|
|
|
4
|
-
// src/appThemeOptions.tsx
|
|
5
|
-
import { merge } from "@xylabs/lodash";
|
|
6
|
-
|
|
7
4
|
// src/fontFamily.ts
|
|
8
5
|
var fontFamilyPrimary = [
|
|
9
6
|
"Lexend Deca",
|
|
@@ -136,10 +133,10 @@ var partialAppThemeOptions = {
|
|
|
136
133
|
},
|
|
137
134
|
spacing: 8
|
|
138
135
|
};
|
|
139
|
-
var appThemeOptions =
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
136
|
+
var appThemeOptions = {
|
|
137
|
+
...themeOptions,
|
|
138
|
+
...partialAppThemeOptions
|
|
139
|
+
};
|
|
143
140
|
|
|
144
141
|
// src/OsTheme/Components.tsx
|
|
145
142
|
var components2 = {
|
|
@@ -301,11 +298,13 @@ var osThemeOptionsLightMode = {
|
|
|
301
298
|
};
|
|
302
299
|
|
|
303
300
|
// src/OsTheme/osThemeOptions.tsx
|
|
304
|
-
var osThemeOptions =
|
|
301
|
+
var osThemeOptions = {
|
|
302
|
+
...osThemeOptionsDarkMode,
|
|
303
|
+
...osThemeOptionsLightMode
|
|
304
|
+
};
|
|
305
305
|
|
|
306
306
|
// src/partialDarkThemeOptions.tsx
|
|
307
307
|
import { darken } from "@mui/material";
|
|
308
|
-
import { merge as merge3 } from "@xylabs/lodash";
|
|
309
308
|
var appComponents = {
|
|
310
309
|
MuiPaper: {
|
|
311
310
|
defaultProps: {
|
|
@@ -328,12 +327,12 @@ var partialDarkThemeOptions = {
|
|
|
328
327
|
}
|
|
329
328
|
}
|
|
330
329
|
};
|
|
331
|
-
var partialAppDarkThemeOptions =
|
|
330
|
+
var partialAppDarkThemeOptions = {
|
|
331
|
+
...partialDarkThemeOptions,
|
|
332
332
|
components: appComponents
|
|
333
|
-
}
|
|
333
|
+
};
|
|
334
334
|
|
|
335
335
|
// src/partialLightThemeOptions.tsx
|
|
336
|
-
import { merge as merge4 } from "@xylabs/lodash";
|
|
337
336
|
var partialLightThemeOptions = {
|
|
338
337
|
palette: {
|
|
339
338
|
mode: "light",
|
|
@@ -345,12 +344,16 @@ var partialLightThemeOptions = {
|
|
|
345
344
|
}
|
|
346
345
|
}
|
|
347
346
|
};
|
|
348
|
-
var partialAppLightThemeOptions =
|
|
347
|
+
var partialAppLightThemeOptions = {
|
|
348
|
+
...partialLightThemeOptions
|
|
349
|
+
};
|
|
349
350
|
|
|
350
351
|
// src/webThemeOptions.tsx
|
|
351
|
-
import { merge as merge5 } from "@xylabs/lodash";
|
|
352
352
|
var partialWebThemeOptions = {};
|
|
353
|
-
var webThemeOptions =
|
|
353
|
+
var webThemeOptions = {
|
|
354
|
+
...themeOptions,
|
|
355
|
+
...partialWebThemeOptions
|
|
356
|
+
};
|
|
354
357
|
export {
|
|
355
358
|
appThemeOptions,
|
|
356
359
|
components,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/appThemeOptions.tsx","../../src/fontFamily.ts","../../src/themeOptions.ts","../../src/OsTheme/osThemeOptions.tsx","../../src/OsTheme/Components.tsx","../../src/OsTheme/Typography.tsx","../../src/OsTheme/DarkMode.tsx","../../src/OsTheme/LightMode.tsx","../../src/partialDarkThemeOptions.tsx","../../src/partialLightThemeOptions.tsx","../../src/webThemeOptions.tsx"],"sourcesContent":["import { ThemeOptions } from '@mui/material'\nimport { merge } from '@xylabs/lodash'\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 = merge({}, themeOptions, partialAppThemeOptions)\n","export const fontFamilyPrimary = ['Lexend Deca', 'Helvetica', 'sans-serif'].join(',')\nexport const fontFamilyOs = ['Manrope', 'Roboto', 'sans-serif'].join(',')\n","import { 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: {\n underline: 'none',\n },\n styleOverrides: {\n root: {\n '&:hover': {\n filter: 'brightness(75%)',\n },\n },\n },\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: {\n lineHeight: 1.57,\n },\n body2: {\n lineHeight: 1.57,\n },\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: {\n fontSize: '2rem',\n },\n h5: {\n fontSize: '1.5rem',\n },\n h6: {\n fontSize: '1.1rem',\n },\n subtitle1: {\n opacity: '70%',\n },\n subtitle2: {\n opacity: '70%',\n },\n}\n\nexport const themeOptions: ThemeOptions = {\n components,\n shape: {\n borderRadius: 8,\n },\n spacing: 16,\n typography,\n}\n","import { merge } from '@xylabs/lodash'\n\nimport { osThemeOptionsDarkMode } from './DarkMode.tsx'\nimport { osThemeOptionsLightMode } from './LightMode.tsx'\n\nexport const osThemeOptions = merge({}, osThemeOptionsDarkMode, osThemeOptionsLightMode)\n","import { ThemeOptions } from '@mui/material'\n\nexport const components: ThemeOptions['components'] = {\n MuiCard: {\n defaultProps: {\n elevation: 0,\n },\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: {\n underline: 'none',\n },\n styleOverrides: {\n root: {\n '&:hover': {\n filter: 'brightness(75%)',\n },\n },\n },\n },\n MuiPaper: {\n defaultProps: {\n elevation: 0,\n },\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","import { ThemeOptions } from '@mui/material'\n\nimport { fontFamilyOs } from '../fontFamily.ts'\n\nexport const typography: ThemeOptions['typography'] = {\n body1: {\n lineHeight: 1.57,\n },\n body2: {\n lineHeight: 1.57,\n },\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: {\n fontSize: '4rem',\n },\n h2: {\n fontSize: '2.4rem',\n },\n h3: {\n fontSize: '2.24rem',\n },\n h4: {\n fontSize: '2rem',\n },\n h5: {\n fontSize: '1.5rem',\n },\n h6: {\n fontSize: '1.1rem',\n },\n subtitle1: {\n opacity: '70%',\n },\n subtitle2: {\n opacity: '70%',\n },\n}\n","import { 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: {\n main: '#ffb4ab',\n },\n mode: 'dark',\n primary: {\n main: '#C9BFFA',\n },\n secondary: {\n main: '#C9C3DA',\n },\n text: {\n primary: '#100029',\n secondary: '#212023',\n },\n}\n\nexport const osThemeOptionsDarkMode: ThemeOptions = {\n components,\n palette,\n shape: {\n borderRadius: 10,\n },\n spacing: 16,\n typography,\n}\n","import { 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: {\n main: '#BA1A1A',\n },\n mode: 'light',\n primary: {\n main: '#100029',\n },\n secondary: {\n main: '#A060E0',\n },\n text: {\n primary: '#100029',\n secondary: '#212023',\n },\n}\n\nexport const osThemeOptionsLightMode: ThemeOptions = {\n components,\n palette,\n shape: {\n borderRadius: 10,\n },\n spacing: 16,\n typography,\n}\n","import { darken, ThemeOptions } from '@mui/material'\nimport { merge } from '@xylabs/lodash'\n\nconst appComponents: ThemeOptions['components'] = {\n MuiPaper: {\n defaultProps: {\n variant: 'elevation',\n },\n },\n}\n\nexport const partialDarkThemeOptions: ThemeOptions = {\n palette: {\n background: {\n default: darken('#171626', 0.1),\n paper: '#171626',\n },\n mode: 'dark',\n primary: {\n main: '#9993F5',\n },\n secondary: {\n main: '#8EC8FF',\n },\n },\n}\n\nexport const partialAppDarkThemeOptions: ThemeOptions = merge({}, partialDarkThemeOptions, { components: appComponents })\n","import { ThemeOptions } from '@mui/material'\nimport { merge } from '@xylabs/lodash'\n\nexport const partialLightThemeOptions: ThemeOptions = {\n palette: {\n mode: 'light',\n primary: {\n main: '#1f1a66',\n },\n secondary: {\n main: '#0f68c9',\n },\n },\n}\n\nexport const partialAppLightThemeOptions: ThemeOptions = merge({}, partialLightThemeOptions)\n","import { ThemeOptions } from '@mui/material'\nimport { merge } from '@xylabs/lodash'\n\nimport { themeOptions } from './themeOptions.ts'\n\nconst partialWebThemeOptions: ThemeOptions = {}\n\nexport const webThemeOptions = merge({}, themeOptions, partialWebThemeOptions)\n"],"mappings":";;;;AACA,SAASA,aAAa;;;ACDf,IAAMC,oBAAoB;EAAC;EAAe;EAAa;EAAcC,KAAK,GAAA;AAC1E,IAAMC,eAAe;EAAC;EAAW;EAAU;EAAcD,KAAK,GAAA;;;ACG9D,IAAME,aAAyC;EACpDC,SAAS;IACPC,gBAAgB;MACdC,MAAM;QACJC,SAAS;QACTC,eAAe;QACfC,gBAAgB;MAClB;IACF;EACF;EACAC,eAAe;IACbL,gBAAgB;MACdM,SAAS;QACPJ,SAAS;QACTC,eAAe;QACfI,UAAU;MACZ;IACF;EACF;EACAC,SAAS;IACPC,cAAc;MACZC,WAAW;IACb;IACAV,gBAAgB;MACdC,MAAM;QACJ,WAAW;UACTU,QAAQ;QACV;MACF;IACF;EACF;EACAC,cAAc;IACZZ,gBAAgB;MACda,MAAM;QACJC,YAAY;QACZC,YAAY;MACd;MACAC,MAAM;QACJC,YAAY;QACZF,YAAY;MACd;IACF;EACF;AACF;AAEO,IAAMG,aAAyC;EACpDC,OAAO;IACLC,YAAY;EACd;EACAC,OAAO;IACL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C,MAAM;QACJ,WAAW;UACTS,QAAQ;QACV;MACF;IACF;EACF;EACAC,UAAU;IACRb,cAAc;MACZC,WAAW;IACb;EACF;EACAa,cAAc;IACZZ,gBAAgB;MACda,MAAM;QACJC,YAAY;QACZC,YAAY;MACd;MACAC,MAAM;QACJC,YAAY;QACZF,YAAY;MACd;IACF;EACF;AACF;;;ACjDO,IAAMG,cAAyC;EACpDC,OAAO;IACLC,YAAY;EACd;EACAC,OAAO;IACLD,YAAY;EACd;EACAE,QAAQ;IACNC,UAAU;IACVC,eAAe;EACjB;EACAC,YAAYC;EACZC,gBAAgB;EAChBC,iBAAiB;EACjBC,kBAAkB;EAClBC,mBAAmB;EACnBC,IAAI;IACFR,UAAU;EACZ;EACAS,IAAI;IACFT,UAAU;EACZ;EACAU,IAAI;IACFV,UAAU;EACZ;EACAW,IAAI;IACFX,UAAU;EACZ;EACAY,IAAI;IACFZ,UAAU;EACZ;EACAa,IAAI;IACFb,UAAU;EACZ;EACAc,WAAW;IACTC,SAAS;EACX;EACAC,WAAW;IACTD,SAAS;EACX;AACF;;;ACvCA,IAAME,UAAmC;EACvCC,YAAY;IACVC,SAAS;IACTC,OAAO;EACT;EACAC,OAAO;IACLC,MAAM;EACR;EACAC,MAAM;EACNC,SAAS;IACPF,MAAM;EACR;EACAG,WAAW;IACTH,MAAM;EACR;EACAI,MAAM;IACJF,SAAS;IACTC,WAAW;EACb;AACF;AAEO,IAAME,yBAAuC;EAClDC,YAAAA;EACAX;EACAY,OAAO;IACLC,cAAc;EAChB;EACAC,SAAS;EACTC,YAAAA;AACF;;;AC7BA,IAAMC,WAAmC;EACvCC,YAAY;IACVC,SAAS;IACTC,OAAO;EACT;EACAC,OAAO;IACLC,MAAM;EACR;EACAC,MAAM;EACNC,SAAS;IACPF,MAAM;EACR;EACAG,WAAW;IACTH,MAAM;EACR;EACAI,MAAM;IACJF,SAAS;IACTC,WAAW;EACb;AACF;AAEO,IAAME,0BAAwC;EACnDC,YAAAA;EACAX,SAAAA;EACAY,OAAO;IACLC,cAAc;EAChB;EACAC,SAAS;EACTC,YAAAA;AACF;;;AJ7BO,IAAMC,iBAAiBC,OAAM,CAAC,GAAGC,wBAAwBC,uBAAAA;;;AKLhE,SAASC,cAA4B;AACrC,SAASC,SAAAA,cAAa;AAEtB,IAAMC,gBAA4C;EAChDC,UAAU;IACRC,cAAc;MACZC,SAAS;IACX;EACF;AACF;AAEO,IAAMC,0BAAwC;EACnDC,SAAS;IACPC,YAAY;MACVC,SAAST,OAAO,WAAW,GAAA;MAC3BU,OAAO;IACT;IACAC,MAAM;IACNC,SAAS;MACPC,MAAM;IACR;IACAC,WAAW;MACTD,MAAM;IACR;EACF;AACF;AAEO,IAAME,6BAA2Cd,OAAM,CAAC,GAAGK,yBAAyB;EAAEU,YAAYd;AAAc,CAAA;;;AC1BvH,SAASe,SAAAA,cAAa;AAEf,IAAMC,2BAAyC;EACpDC,SAAS;IACPC,MAAM;IACNC,SAAS;MACPC,MAAM;IACR;IACAC,WAAW;MACTD,MAAM;IACR;EACF;AACF;AAEO,IAAME,8BAA4CP,OAAM,CAAC,GAAGC,wBAAAA;;;ACdnE,SAASO,SAAAA,cAAa;AAItB,IAAMC,yBAAuC,CAAC;AAEvC,IAAMC,kBAAkBC,OAAM,CAAC,GAAGC,cAAcH,sBAAAA;","names":["merge","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","merge","themeOptions","merge","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","merge","osThemeOptionsDarkMode","osThemeOptionsLightMode","darken","merge","appComponents","MuiPaper","defaultProps","variant","partialDarkThemeOptions","palette","background","default","paper","mode","primary","main","secondary","partialAppDarkThemeOptions","components","merge","partialLightThemeOptions","palette","mode","primary","main","secondary","partialAppLightThemeOptions","merge","partialWebThemeOptions","webThemeOptions","merge","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 { 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: {\n underline: 'none',\n },\n styleOverrides: {\n root: {\n '&:hover': {\n filter: 'brightness(75%)',\n },\n },\n },\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: {\n lineHeight: 1.57,\n },\n body2: {\n lineHeight: 1.57,\n },\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: {\n fontSize: '2rem',\n },\n h5: {\n fontSize: '1.5rem',\n },\n h6: {\n fontSize: '1.1rem',\n },\n subtitle1: {\n opacity: '70%',\n },\n subtitle2: {\n opacity: '70%',\n },\n}\n\nexport const themeOptions: ThemeOptions = {\n components,\n shape: {\n borderRadius: 8,\n },\n spacing: 16,\n typography,\n}\n","import { 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, ...partialAppThemeOptions }\n","import { ThemeOptions } from '@mui/material'\n\nexport const components: ThemeOptions['components'] = {\n MuiCard: {\n defaultProps: {\n elevation: 0,\n },\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: {\n underline: 'none',\n },\n styleOverrides: {\n root: {\n '&:hover': {\n filter: 'brightness(75%)',\n },\n },\n },\n },\n MuiPaper: {\n defaultProps: {\n elevation: 0,\n },\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","import { ThemeOptions } from '@mui/material'\n\nimport { fontFamilyOs } from '../fontFamily.ts'\n\nexport const typography: ThemeOptions['typography'] = {\n body1: {\n lineHeight: 1.57,\n },\n body2: {\n lineHeight: 1.57,\n },\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: {\n fontSize: '4rem',\n },\n h2: {\n fontSize: '2.4rem',\n },\n h3: {\n fontSize: '2.24rem',\n },\n h4: {\n fontSize: '2rem',\n },\n h5: {\n fontSize: '1.5rem',\n },\n h6: {\n fontSize: '1.1rem',\n },\n subtitle1: {\n opacity: '70%',\n },\n subtitle2: {\n opacity: '70%',\n },\n}\n","import { 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: {\n main: '#ffb4ab',\n },\n mode: 'dark',\n primary: {\n main: '#C9BFFA',\n },\n secondary: {\n main: '#C9C3DA',\n },\n text: {\n primary: '#100029',\n secondary: '#212023',\n },\n}\n\nexport const osThemeOptionsDarkMode: ThemeOptions = {\n components,\n palette,\n shape: {\n borderRadius: 10,\n },\n spacing: 16,\n typography,\n}\n","import { 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: {\n main: '#BA1A1A',\n },\n mode: 'light',\n primary: {\n main: '#100029',\n },\n secondary: {\n main: '#A060E0',\n },\n text: {\n primary: '#100029',\n secondary: '#212023',\n },\n}\n\nexport const osThemeOptionsLightMode: ThemeOptions = {\n components,\n palette,\n shape: {\n borderRadius: 10,\n },\n spacing: 16,\n typography,\n}\n","import { osThemeOptionsDarkMode } from './DarkMode.tsx'\nimport { osThemeOptionsLightMode } from './LightMode.tsx'\n\nexport const osThemeOptions = { ...osThemeOptionsDarkMode, ...osThemeOptionsLightMode }\n","import { darken, ThemeOptions } from '@mui/material'\n\nconst appComponents: ThemeOptions['components'] = {\n MuiPaper: {\n defaultProps: {\n variant: 'elevation',\n },\n },\n}\n\nexport const partialDarkThemeOptions: ThemeOptions = {\n palette: {\n background: {\n default: darken('#171626', 0.1),\n paper: '#171626',\n },\n mode: 'dark',\n primary: {\n main: '#9993F5',\n },\n secondary: {\n main: '#8EC8FF',\n },\n },\n}\n\nexport const partialAppDarkThemeOptions: ThemeOptions = { ...partialDarkThemeOptions, components: appComponents }\n","import { ThemeOptions } from '@mui/material'\n\nexport const partialLightThemeOptions: ThemeOptions = {\n palette: {\n mode: 'light',\n primary: {\n main: '#1f1a66',\n },\n secondary: {\n main: '#0f68c9',\n },\n },\n}\n\nexport const partialAppLightThemeOptions: ThemeOptions = { ...partialLightThemeOptions }\n","import { ThemeOptions } from '@mui/material'\n\nimport { themeOptions } from './themeOptions.ts'\n\nconst partialWebThemeOptions: ThemeOptions = {}\n\nexport const webThemeOptions = { ...themeOptions, ...partialWebThemeOptions }\n"],"mappings":";;;;AAAO,IAAMA,oBAAoB;EAAC;EAAe;EAAa;EAAcC,K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,GAAGF;AAAuB;","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","mode","primary","main","secondary","partialAppLightThemeOptions","partialWebThemeOptions","webThemeOptions","themeOptions"]}
|
package/package.json
CHANGED
|
@@ -9,9 +9,6 @@
|
|
|
9
9
|
"email": "support@xyo.network",
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
|
|
11
11
|
},
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"@xylabs/lodash": "^4.0.0"
|
|
14
|
-
},
|
|
15
12
|
"peerDependencies": {
|
|
16
13
|
"@mui/material": "^5",
|
|
17
14
|
"react": "^18.2.0",
|
|
@@ -56,6 +53,6 @@
|
|
|
56
53
|
},
|
|
57
54
|
"sideEffects": false,
|
|
58
55
|
"types": "dist/browser/index.d.ts",
|
|
59
|
-
"version": "3.0.
|
|
56
|
+
"version": "3.0.1",
|
|
60
57
|
"type": "module"
|
|
61
58
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { merge } from '@xylabs/lodash'
|
|
2
|
-
|
|
3
1
|
import { osThemeOptionsDarkMode } from './DarkMode.tsx'
|
|
4
2
|
import { osThemeOptionsLightMode } from './LightMode.tsx'
|
|
5
3
|
|
|
6
|
-
export const osThemeOptions =
|
|
4
|
+
export const osThemeOptions = { ...osThemeOptionsDarkMode, ...osThemeOptionsLightMode }
|
package/src/appThemeOptions.tsx
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ThemeOptions } from '@mui/material'
|
|
2
|
-
import { merge } from '@xylabs/lodash'
|
|
3
2
|
|
|
4
3
|
import { themeOptions } from './themeOptions.ts'
|
|
5
4
|
|
|
@@ -27,4 +26,4 @@ const partialAppThemeOptions: ThemeOptions = {
|
|
|
27
26
|
spacing: 8,
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
export const appThemeOptions =
|
|
29
|
+
export const appThemeOptions = { ...themeOptions, ...partialAppThemeOptions }
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { darken, ThemeOptions } from '@mui/material'
|
|
2
|
-
import { merge } from '@xylabs/lodash'
|
|
3
2
|
|
|
4
3
|
const appComponents: ThemeOptions['components'] = {
|
|
5
4
|
MuiPaper: {
|
|
@@ -25,4 +24,4 @@ export const partialDarkThemeOptions: ThemeOptions = {
|
|
|
25
24
|
},
|
|
26
25
|
}
|
|
27
26
|
|
|
28
|
-
export const partialAppDarkThemeOptions: ThemeOptions =
|
|
27
|
+
export const partialAppDarkThemeOptions: ThemeOptions = { ...partialDarkThemeOptions, components: appComponents }
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ThemeOptions } from '@mui/material'
|
|
2
|
-
import { merge } from '@xylabs/lodash'
|
|
3
2
|
|
|
4
3
|
export const partialLightThemeOptions: ThemeOptions = {
|
|
5
4
|
palette: {
|
|
@@ -13,4 +12,4 @@ export const partialLightThemeOptions: ThemeOptions = {
|
|
|
13
12
|
},
|
|
14
13
|
}
|
|
15
14
|
|
|
16
|
-
export const partialAppLightThemeOptions: ThemeOptions =
|
|
15
|
+
export const partialAppLightThemeOptions: ThemeOptions = { ...partialLightThemeOptions }
|
package/src/webThemeOptions.tsx
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ThemeOptions } from '@mui/material'
|
|
2
|
-
import { merge } from '@xylabs/lodash'
|
|
3
2
|
|
|
4
3
|
import { themeOptions } from './themeOptions.ts'
|
|
5
4
|
|
|
6
5
|
const partialWebThemeOptions: ThemeOptions = {}
|
|
7
6
|
|
|
8
|
-
export const webThemeOptions =
|
|
7
|
+
export const webThemeOptions = { ...themeOptions, ...partialWebThemeOptions }
|