@xyo-network/react-theme 2.64.0-rc.7 → 2.64.0
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/appThemeOptions.cjs +152 -0
- package/dist/browser/appThemeOptions.cjs.map +1 -0
- package/dist/browser/appThemeOptions.d.cts +3 -0
- package/dist/browser/appThemeOptions.d.cts.map +1 -0
- package/dist/browser/fontFamily.cjs +27 -0
- package/dist/browser/fontFamily.cjs.map +1 -0
- package/dist/browser/fontFamily.d.cts +2 -0
- package/dist/browser/fontFamily.d.cts.map +1 -0
- package/dist/browser/index.cjs +217 -0
- package/dist/browser/index.cjs.map +1 -0
- package/dist/browser/index.d.cts +7 -0
- package/dist/browser/index.d.cts.map +1 -0
- package/dist/browser/partialDarkThemeOptions.cjs +52 -0
- package/dist/{node/partialDarkThemeOptions.mjs.map → browser/partialDarkThemeOptions.cjs.map} +1 -1
- package/dist/browser/partialDarkThemeOptions.d.cts +4 -0
- package/dist/browser/partialDarkThemeOptions.d.cts.map +1 -0
- package/dist/browser/partialLightThemeOptions.cjs +47 -0
- package/dist/{node/partialLightThemeOptions.mjs.map → browser/partialLightThemeOptions.cjs.map} +1 -1
- package/dist/browser/partialLightThemeOptions.d.cts +4 -0
- package/dist/browser/partialLightThemeOptions.d.cts.map +1 -0
- package/dist/{node/themeOptions.mjs → browser/themeOptions.cjs} +36 -10
- package/dist/browser/themeOptions.cjs.map +1 -0
- package/dist/browser/themeOptions.d.cts +5 -0
- package/dist/browser/themeOptions.d.cts.map +1 -0
- package/dist/browser/webThemeOptions.cjs +132 -0
- package/dist/browser/webThemeOptions.cjs.map +1 -0
- package/dist/browser/webThemeOptions.d.cts +3 -0
- package/dist/browser/webThemeOptions.d.cts.map +1 -0
- package/dist/docs.json +358 -0
- package/dist/node/appThemeOptions.cjs +156 -0
- package/dist/node/appThemeOptions.cjs.map +1 -0
- package/dist/node/appThemeOptions.d.cts +3 -0
- package/dist/node/appThemeOptions.d.cts.map +1 -0
- package/dist/node/appThemeOptions.js +106 -27
- package/dist/node/appThemeOptions.js.map +1 -1
- package/dist/node/fontFamily.cjs +31 -0
- package/dist/node/fontFamily.cjs.map +1 -0
- package/dist/node/fontFamily.d.cts +2 -0
- package/dist/node/fontFamily.d.cts.map +1 -0
- package/dist/node/fontFamily.js +4 -27
- package/dist/node/fontFamily.js.map +1 -1
- package/dist/node/index.cjs +230 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.d.cts +7 -0
- package/dist/node/index.d.cts.map +1 -0
- package/dist/node/index.js +192 -31
- package/dist/node/index.js.map +1 -1
- package/dist/node/partialDarkThemeOptions.cjs +57 -0
- package/dist/node/partialDarkThemeOptions.cjs.map +1 -0
- package/dist/node/partialDarkThemeOptions.d.cts +4 -0
- package/dist/node/partialDarkThemeOptions.d.cts.map +1 -0
- package/dist/node/partialDarkThemeOptions.js +9 -33
- package/dist/node/partialDarkThemeOptions.js.map +1 -1
- package/dist/node/partialLightThemeOptions.cjs +52 -0
- package/dist/node/partialLightThemeOptions.cjs.map +1 -0
- package/dist/node/partialLightThemeOptions.d.cts +4 -0
- package/dist/node/partialLightThemeOptions.d.cts.map +1 -0
- package/dist/node/partialLightThemeOptions.js +7 -31
- package/dist/node/partialLightThemeOptions.js.map +1 -1
- package/dist/node/themeOptions.cjs +135 -0
- package/dist/node/themeOptions.cjs.map +1 -0
- package/dist/node/themeOptions.d.cts +5 -0
- package/dist/node/themeOptions.d.cts.map +1 -0
- package/dist/node/themeOptions.js +13 -36
- package/dist/node/themeOptions.js.map +1 -1
- package/dist/node/webThemeOptions.cjs +136 -0
- package/dist/node/webThemeOptions.cjs.map +1 -0
- package/dist/node/webThemeOptions.d.cts +3 -0
- package/dist/node/webThemeOptions.d.cts.map +1 -0
- package/dist/node/webThemeOptions.js +106 -27
- package/dist/node/webThemeOptions.js.map +1 -1
- package/package.json +12 -12
- package/dist/node/appThemeOptions.mjs +0 -28
- package/dist/node/appThemeOptions.mjs.map +0 -1
- package/dist/node/fontFamily.mjs +0 -5
- package/dist/node/fontFamily.mjs.map +0 -1
- package/dist/node/index.mjs +0 -7
- package/dist/node/index.mjs.map +0 -1
- package/dist/node/partialDarkThemeOptions.mjs +0 -30
- package/dist/node/partialLightThemeOptions.mjs +0 -25
- package/dist/node/themeOptions.mjs.map +0 -1
- package/dist/node/webThemeOptions.mjs +0 -8
- package/dist/node/webThemeOptions.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themeOptions.d.ts","sourceRoot":"","sources":["../../src/themeOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAI5C,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,YAAY,CA2CjD,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,YAAY,CA2CjD,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,YAO1B,CAAA"}
|
|
@@ -1,30 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var themeOptions_exports = {};
|
|
20
|
-
__export(themeOptions_exports, {
|
|
21
|
-
components: () => components,
|
|
22
|
-
themeOptions: () => themeOptions,
|
|
23
|
-
typography: () => typography
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(themeOptions_exports);
|
|
26
|
-
var import_fontFamily = require("./fontFamily");
|
|
27
|
-
const components = {
|
|
1
|
+
// src/fontFamily.ts
|
|
2
|
+
var fontFamilyPrimary = ["Lexend Deca", "Helvetica", "sans-serif"].join(",");
|
|
3
|
+
|
|
4
|
+
// src/themeOptions.ts
|
|
5
|
+
var components = {
|
|
28
6
|
MuiCard: {
|
|
29
7
|
styleOverrides: {
|
|
30
8
|
root: {
|
|
@@ -68,7 +46,7 @@ const components = {
|
|
|
68
46
|
}
|
|
69
47
|
}
|
|
70
48
|
};
|
|
71
|
-
|
|
49
|
+
var typography = {
|
|
72
50
|
body1: {
|
|
73
51
|
lineHeight: 1.57
|
|
74
52
|
},
|
|
@@ -79,21 +57,21 @@ const typography = {
|
|
|
79
57
|
fontSize: "1rem",
|
|
80
58
|
textTransform: "inherit"
|
|
81
59
|
},
|
|
82
|
-
fontFamily:
|
|
60
|
+
fontFamily: fontFamilyPrimary,
|
|
83
61
|
fontWeightBold: 700,
|
|
84
62
|
fontWeightLight: 200,
|
|
85
63
|
fontWeightMedium: 300,
|
|
86
64
|
fontWeightRegular: 400,
|
|
87
65
|
h1: {
|
|
88
|
-
fontFamily:
|
|
66
|
+
fontFamily: fontFamilyPrimary,
|
|
89
67
|
fontSize: "4rem"
|
|
90
68
|
},
|
|
91
69
|
h2: {
|
|
92
|
-
fontFamily:
|
|
70
|
+
fontFamily: fontFamilyPrimary,
|
|
93
71
|
fontSize: "2.4rem"
|
|
94
72
|
},
|
|
95
73
|
h3: {
|
|
96
|
-
fontFamily:
|
|
74
|
+
fontFamily: fontFamilyPrimary,
|
|
97
75
|
fontSize: "2.24rem"
|
|
98
76
|
},
|
|
99
77
|
h4: {
|
|
@@ -112,7 +90,7 @@ const typography = {
|
|
|
112
90
|
opacity: "70%"
|
|
113
91
|
}
|
|
114
92
|
};
|
|
115
|
-
|
|
93
|
+
var themeOptions = {
|
|
116
94
|
components,
|
|
117
95
|
shape: {
|
|
118
96
|
borderRadius: 8
|
|
@@ -120,10 +98,9 @@ const themeOptions = {
|
|
|
120
98
|
spacing: 16,
|
|
121
99
|
typography
|
|
122
100
|
};
|
|
123
|
-
|
|
124
|
-
0 && (module.exports = {
|
|
101
|
+
export {
|
|
125
102
|
components,
|
|
126
103
|
themeOptions,
|
|
127
104
|
typography
|
|
128
|
-
}
|
|
105
|
+
};
|
|
129
106
|
//# sourceMappingURL=themeOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/themeOptions.ts"],"sourcesContent":["import { ThemeOptions } from '@mui/material'\n\nimport { fontFamilyPrimary } from './fontFamily'\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"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/fontFamily.ts","../../src/themeOptions.ts"],"sourcesContent":["export const fontFamilyPrimary = ['Lexend Deca', 'Helvetica', 'sans-serif'].join(',')\n","import { ThemeOptions } from '@mui/material'\n\nimport { fontFamilyPrimary } from './fontFamily'\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"],"mappings":";AAAO,IAAM,oBAAoB,CAAC,eAAe,aAAa,YAAY,EAAE,KAAK,GAAG;;;ACI7E,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;AAAA,MACZ,WAAW;AAAA,IACb;AAAA,IACA,gBAAgB;AAAA,MACd,MAAM;AAAA,QACJ,WAAW;AAAA,UACT,QAAQ;AAAA,QACV;AAAA,MACF;AAAA,IACF;AAAA,EACF;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;AAAA,IACL,YAAY;AAAA,EACd;AAAA,EACA,OAAO;AAAA,IACL,YAAY;AAAA,EACd;AAAA,EACA,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;AAAA,EACA,IAAI;AAAA,IACF,YAAY;AAAA,IACZ,UAAU;AAAA,EACZ;AAAA,EACA,IAAI;AAAA,IACF,YAAY;AAAA,IACZ,UAAU;AAAA,EACZ;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,WAAW;AAAA,IACT,SAAS;AAAA,EACX;AAAA,EACA,WAAW;AAAA,IACT,SAAS;AAAA,EACX;AACF;AAEO,IAAM,eAA6B;AAAA,EACxC;AAAA,EACA,OAAO;AAAA,IACL,cAAc;AAAA,EAChB;AAAA,EACA,SAAS;AAAA,EACT;AACF;","names":[]}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/webThemeOptions.tsx
|
|
21
|
+
var webThemeOptions_exports = {};
|
|
22
|
+
__export(webThemeOptions_exports, {
|
|
23
|
+
webThemeOptions: () => webThemeOptions
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(webThemeOptions_exports);
|
|
26
|
+
var import_lodash = require("@xylabs/lodash");
|
|
27
|
+
|
|
28
|
+
// src/fontFamily.ts
|
|
29
|
+
var fontFamilyPrimary = ["Lexend Deca", "Helvetica", "sans-serif"].join(",");
|
|
30
|
+
|
|
31
|
+
// src/themeOptions.ts
|
|
32
|
+
var components = {
|
|
33
|
+
MuiCard: {
|
|
34
|
+
styleOverrides: {
|
|
35
|
+
root: {
|
|
36
|
+
display: "flex",
|
|
37
|
+
flexDirection: "column",
|
|
38
|
+
justifyContent: "space-between"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
MuiCardHeader: {
|
|
43
|
+
styleOverrides: {
|
|
44
|
+
content: {
|
|
45
|
+
display: "flex",
|
|
46
|
+
flexDirection: "column",
|
|
47
|
+
overflow: "hidden"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
MuiLink: {
|
|
52
|
+
defaultProps: {
|
|
53
|
+
underline: "none"
|
|
54
|
+
},
|
|
55
|
+
styleOverrides: {
|
|
56
|
+
root: {
|
|
57
|
+
"&:hover": {
|
|
58
|
+
filter: "brightness(75%)"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
MuiTableCell: {
|
|
64
|
+
styleOverrides: {
|
|
65
|
+
body: {
|
|
66
|
+
fontFamily: "monospace",
|
|
67
|
+
whiteSpace: "nowrap"
|
|
68
|
+
},
|
|
69
|
+
head: {
|
|
70
|
+
fontWeight: 700,
|
|
71
|
+
whiteSpace: "nowrap"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
var typography = {
|
|
77
|
+
body1: {
|
|
78
|
+
lineHeight: 1.57
|
|
79
|
+
},
|
|
80
|
+
body2: {
|
|
81
|
+
lineHeight: 1.57
|
|
82
|
+
},
|
|
83
|
+
button: {
|
|
84
|
+
fontSize: "1rem",
|
|
85
|
+
textTransform: "inherit"
|
|
86
|
+
},
|
|
87
|
+
fontFamily: fontFamilyPrimary,
|
|
88
|
+
fontWeightBold: 700,
|
|
89
|
+
fontWeightLight: 200,
|
|
90
|
+
fontWeightMedium: 300,
|
|
91
|
+
fontWeightRegular: 400,
|
|
92
|
+
h1: {
|
|
93
|
+
fontFamily: fontFamilyPrimary,
|
|
94
|
+
fontSize: "4rem"
|
|
95
|
+
},
|
|
96
|
+
h2: {
|
|
97
|
+
fontFamily: fontFamilyPrimary,
|
|
98
|
+
fontSize: "2.4rem"
|
|
99
|
+
},
|
|
100
|
+
h3: {
|
|
101
|
+
fontFamily: fontFamilyPrimary,
|
|
102
|
+
fontSize: "2.24rem"
|
|
103
|
+
},
|
|
104
|
+
h4: {
|
|
105
|
+
fontSize: "2rem"
|
|
106
|
+
},
|
|
107
|
+
h5: {
|
|
108
|
+
fontSize: "1.5rem"
|
|
109
|
+
},
|
|
110
|
+
h6: {
|
|
111
|
+
fontSize: "1.1rem"
|
|
112
|
+
},
|
|
113
|
+
subtitle1: {
|
|
114
|
+
opacity: "70%"
|
|
115
|
+
},
|
|
116
|
+
subtitle2: {
|
|
117
|
+
opacity: "70%"
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
var themeOptions = {
|
|
121
|
+
components,
|
|
122
|
+
shape: {
|
|
123
|
+
borderRadius: 8
|
|
124
|
+
},
|
|
125
|
+
spacing: 16,
|
|
126
|
+
typography
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
// src/webThemeOptions.tsx
|
|
130
|
+
var partialWebThemeOptions = {};
|
|
131
|
+
var webThemeOptions = (0, import_lodash.merge)({}, themeOptions, partialWebThemeOptions);
|
|
132
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
133
|
+
0 && (module.exports = {
|
|
134
|
+
webThemeOptions
|
|
135
|
+
});
|
|
136
|
+
//# sourceMappingURL=webThemeOptions.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/webThemeOptions.tsx","../../src/fontFamily.ts","../../src/themeOptions.ts"],"sourcesContent":["import { ThemeOptions } from '@mui/material'\nimport { merge } from '@xylabs/lodash'\n\nimport { themeOptions } from './themeOptions'\n\nconst partialWebThemeOptions: ThemeOptions = {}\n\nexport const webThemeOptions = merge({}, themeOptions, partialWebThemeOptions)\n","export const fontFamilyPrimary = ['Lexend Deca', 'Helvetica', 'sans-serif'].join(',')\n","import { ThemeOptions } from '@mui/material'\n\nimport { fontFamilyPrimary } from './fontFamily'\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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAAsB;;;ACDf,IAAM,oBAAoB,CAAC,eAAe,aAAa,YAAY,EAAE,KAAK,GAAG;;;ACI7E,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;AAAA,MACZ,WAAW;AAAA,IACb;AAAA,IACA,gBAAgB;AAAA,MACd,MAAM;AAAA,QACJ,WAAW;AAAA,UACT,QAAQ;AAAA,QACV;AAAA,MACF;AAAA,IACF;AAAA,EACF;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;AAAA,IACL,YAAY;AAAA,EACd;AAAA,EACA,OAAO;AAAA,IACL,YAAY;AAAA,EACd;AAAA,EACA,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;AAAA,EACA,IAAI;AAAA,IACF,YAAY;AAAA,IACZ,UAAU;AAAA,EACZ;AAAA,EACA,IAAI;AAAA,IACF,YAAY;AAAA,IACZ,UAAU;AAAA,EACZ;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,WAAW;AAAA,IACT,SAAS;AAAA,EACX;AAAA,EACA,WAAW;AAAA,IACT,SAAS;AAAA,EACX;AACF;AAEO,IAAM,eAA6B;AAAA,EACxC;AAAA,EACA,OAAO;AAAA,IACL,cAAc;AAAA,EAChB;AAAA,EACA,SAAS;AAAA,EACT;AACF;;;AFhGA,IAAM,yBAAuC,CAAC;AAEvC,IAAM,sBAAkB,qBAAM,CAAC,GAAG,cAAc,sBAAsB;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webThemeOptions.d.ts","sourceRoot":"","sources":["../../src/webThemeOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAO5C,eAAO,MAAM,eAAe,cAAkD,CAAA"}
|
|
@@ -1,32 +1,111 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
// src/webThemeOptions.tsx
|
|
2
|
+
import { merge } from "@xylabs/lodash";
|
|
3
|
+
|
|
4
|
+
// src/fontFamily.ts
|
|
5
|
+
var fontFamilyPrimary = ["Lexend Deca", "Helvetica", "sans-serif"].join(",");
|
|
6
|
+
|
|
7
|
+
// src/themeOptions.ts
|
|
8
|
+
var components = {
|
|
9
|
+
MuiCard: {
|
|
10
|
+
styleOverrides: {
|
|
11
|
+
root: {
|
|
12
|
+
display: "flex",
|
|
13
|
+
flexDirection: "column",
|
|
14
|
+
justifyContent: "space-between"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
MuiCardHeader: {
|
|
19
|
+
styleOverrides: {
|
|
20
|
+
content: {
|
|
21
|
+
display: "flex",
|
|
22
|
+
flexDirection: "column",
|
|
23
|
+
overflow: "hidden"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
MuiLink: {
|
|
28
|
+
defaultProps: {
|
|
29
|
+
underline: "none"
|
|
30
|
+
},
|
|
31
|
+
styleOverrides: {
|
|
32
|
+
root: {
|
|
33
|
+
"&:hover": {
|
|
34
|
+
filter: "brightness(75%)"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
MuiTableCell: {
|
|
40
|
+
styleOverrides: {
|
|
41
|
+
body: {
|
|
42
|
+
fontFamily: "monospace",
|
|
43
|
+
whiteSpace: "nowrap"
|
|
44
|
+
},
|
|
45
|
+
head: {
|
|
46
|
+
fontWeight: 700,
|
|
47
|
+
whiteSpace: "nowrap"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
9
51
|
};
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
52
|
+
var typography = {
|
|
53
|
+
body1: {
|
|
54
|
+
lineHeight: 1.57
|
|
55
|
+
},
|
|
56
|
+
body2: {
|
|
57
|
+
lineHeight: 1.57
|
|
58
|
+
},
|
|
59
|
+
button: {
|
|
60
|
+
fontSize: "1rem",
|
|
61
|
+
textTransform: "inherit"
|
|
62
|
+
},
|
|
63
|
+
fontFamily: fontFamilyPrimary,
|
|
64
|
+
fontWeightBold: 700,
|
|
65
|
+
fontWeightLight: 200,
|
|
66
|
+
fontWeightMedium: 300,
|
|
67
|
+
fontWeightRegular: 400,
|
|
68
|
+
h1: {
|
|
69
|
+
fontFamily: fontFamilyPrimary,
|
|
70
|
+
fontSize: "4rem"
|
|
71
|
+
},
|
|
72
|
+
h2: {
|
|
73
|
+
fontFamily: fontFamilyPrimary,
|
|
74
|
+
fontSize: "2.4rem"
|
|
75
|
+
},
|
|
76
|
+
h3: {
|
|
77
|
+
fontFamily: fontFamilyPrimary,
|
|
78
|
+
fontSize: "2.24rem"
|
|
79
|
+
},
|
|
80
|
+
h4: {
|
|
81
|
+
fontSize: "2rem"
|
|
82
|
+
},
|
|
83
|
+
h5: {
|
|
84
|
+
fontSize: "1.5rem"
|
|
85
|
+
},
|
|
86
|
+
h6: {
|
|
87
|
+
fontSize: "1.1rem"
|
|
88
|
+
},
|
|
89
|
+
subtitle1: {
|
|
90
|
+
opacity: "70%"
|
|
91
|
+
},
|
|
92
|
+
subtitle2: {
|
|
93
|
+
opacity: "70%"
|
|
15
94
|
}
|
|
16
|
-
return to;
|
|
17
95
|
};
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
96
|
+
var themeOptions = {
|
|
97
|
+
components,
|
|
98
|
+
shape: {
|
|
99
|
+
borderRadius: 8
|
|
100
|
+
},
|
|
101
|
+
spacing: 16,
|
|
102
|
+
typography
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
// src/webThemeOptions.tsx
|
|
106
|
+
var partialWebThemeOptions = {};
|
|
107
|
+
var webThemeOptions = merge({}, themeOptions, partialWebThemeOptions);
|
|
108
|
+
export {
|
|
30
109
|
webThemeOptions
|
|
31
|
-
}
|
|
110
|
+
};
|
|
32
111
|
//# sourceMappingURL=webThemeOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/webThemeOptions.tsx"],"sourcesContent":["import { ThemeOptions } from '@mui/material'\nimport { merge } from '@xylabs/lodash'\n\nimport { themeOptions } from './themeOptions'\n\nconst partialWebThemeOptions: ThemeOptions = {}\n\nexport const webThemeOptions = merge({}, themeOptions, partialWebThemeOptions)\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/webThemeOptions.tsx","../../src/fontFamily.ts","../../src/themeOptions.ts"],"sourcesContent":["import { ThemeOptions } from '@mui/material'\nimport { merge } from '@xylabs/lodash'\n\nimport { themeOptions } from './themeOptions'\n\nconst partialWebThemeOptions: ThemeOptions = {}\n\nexport const webThemeOptions = merge({}, themeOptions, partialWebThemeOptions)\n","export const fontFamilyPrimary = ['Lexend Deca', 'Helvetica', 'sans-serif'].join(',')\n","import { ThemeOptions } from '@mui/material'\n\nimport { fontFamilyPrimary } from './fontFamily'\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"],"mappings":";AACA,SAAS,aAAa;;;ACDf,IAAM,oBAAoB,CAAC,eAAe,aAAa,YAAY,EAAE,KAAK,GAAG;;;ACI7E,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;AAAA,MACZ,WAAW;AAAA,IACb;AAAA,IACA,gBAAgB;AAAA,MACd,MAAM;AAAA,QACJ,WAAW;AAAA,UACT,QAAQ;AAAA,QACV;AAAA,MACF;AAAA,IACF;AAAA,EACF;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;AAAA,IACL,YAAY;AAAA,EACd;AAAA,EACA,OAAO;AAAA,IACL,YAAY;AAAA,EACd;AAAA,EACA,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;AAAA,EACA,IAAI;AAAA,IACF,YAAY;AAAA,IACZ,UAAU;AAAA,EACZ;AAAA,EACA,IAAI;AAAA,IACF,YAAY;AAAA,IACZ,UAAU;AAAA,EACZ;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,WAAW;AAAA,IACT,SAAS;AAAA,EACX;AAAA,EACA,WAAW;AAAA,IACT,SAAS;AAAA,EACX;AACF;AAEO,IAAM,eAA6B;AAAA,EACxC;AAAA,EACA,OAAO;AAAA,IACL,cAAc;AAAA,EAChB;AAAA,EACA,SAAS;AAAA,EACT;AACF;;;AFhGA,IAAM,yBAAuC,CAAC;AAEvC,IAAM,kBAAkB,MAAM,CAAC,GAAG,cAAc,sBAAsB;","names":[]}
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/lodash": "^2.
|
|
13
|
+
"@xylabs/lodash": "^2.12.13"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@mui/material": "^5",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"description": "Common React library for all XYO projects that use React",
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@xylabs/ts-scripts-yarn3": "^3.0.
|
|
22
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.78",
|
|
23
23
|
"typescript": "^5.2.2"
|
|
24
24
|
},
|
|
25
25
|
"docs": "dist/docs.json",
|
|
@@ -28,28 +28,28 @@
|
|
|
28
28
|
"node": {
|
|
29
29
|
"import": {
|
|
30
30
|
"types": "./dist/node/index.d.mts",
|
|
31
|
-
"default": "./dist/node/index.
|
|
31
|
+
"default": "./dist/node/index.js"
|
|
32
32
|
},
|
|
33
33
|
"require": {
|
|
34
|
-
"types": "./dist/node/index.d.
|
|
35
|
-
"default": "./dist/node/index.
|
|
34
|
+
"types": "./dist/node/index.d.cts",
|
|
35
|
+
"default": "./dist/node/index.cjs"
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"browser": {
|
|
39
39
|
"import": {
|
|
40
|
-
"types": "./dist/browser/index.d.
|
|
40
|
+
"types": "./dist/browser/index.d.mts",
|
|
41
41
|
"default": "./dist/browser/index.js"
|
|
42
42
|
},
|
|
43
43
|
"require": {
|
|
44
|
-
"types": "./dist/browser/index.d.
|
|
45
|
-
"default": "./dist/browser/index.
|
|
44
|
+
"types": "./dist/browser/index.d.cts",
|
|
45
|
+
"default": "./dist/browser/index.cjs"
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
"default": "./dist/browser/index.
|
|
48
|
+
"default": "./dist/browser/index.js"
|
|
49
49
|
},
|
|
50
50
|
"./package.json": "./package.json"
|
|
51
51
|
},
|
|
52
|
-
"main": "dist/browser/index.
|
|
52
|
+
"main": "dist/browser/index.cjs",
|
|
53
53
|
"module": "dist/browser/index.js",
|
|
54
54
|
"homepage": "https://xyo.network",
|
|
55
55
|
"keywords": [
|
|
@@ -72,6 +72,6 @@
|
|
|
72
72
|
},
|
|
73
73
|
"sideEffects": false,
|
|
74
74
|
"types": "dist/browser/index.d.ts",
|
|
75
|
-
"version": "2.64.0
|
|
76
|
-
"
|
|
75
|
+
"version": "2.64.0",
|
|
76
|
+
"type": "module"
|
|
77
77
|
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { merge } from "@xylabs/lodash";
|
|
2
|
-
import { themeOptions } from "./themeOptions";
|
|
3
|
-
const partialAppThemeOptions = {
|
|
4
|
-
components: {
|
|
5
|
-
MuiTypography: {
|
|
6
|
-
styleOverrides: {
|
|
7
|
-
root: ({ ownerState }) => {
|
|
8
|
-
const { clamped } = ownerState;
|
|
9
|
-
if (clamped) {
|
|
10
|
-
const maxWidth = parseInt(clamped, 10);
|
|
11
|
-
return {
|
|
12
|
-
overflow: "hidden",
|
|
13
|
-
textOverflow: "ellipsis",
|
|
14
|
-
whiteSpace: "nowrap",
|
|
15
|
-
width: `clamp(1%, 100%, ${maxWidth}px)`
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
spacing: 8
|
|
23
|
-
};
|
|
24
|
-
const appThemeOptions = merge({}, themeOptions, partialAppThemeOptions);
|
|
25
|
-
export {
|
|
26
|
-
appThemeOptions
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=appThemeOptions.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/appThemeOptions.tsx"],"sourcesContent":["import { ThemeOptions } from '@mui/material'\nimport { merge } from '@xylabs/lodash'\n\nimport { themeOptions } from './themeOptions'\n\nconst partialAppThemeOptions: ThemeOptions = {\n components: {\n MuiTypography: {\n styleOverrides: {\n root: ({ ownerState }) => {\n const { clamped } = ownerState\n\n if (clamped) {\n const maxWidth = 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"],"mappings":"AACA,SAAS,aAAa;AAEtB,SAAS,oBAAoB;AAE7B,MAAM,yBAAuC;AAAA,EAC3C,YAAY;AAAA,IACV,eAAe;AAAA,MACb,gBAAgB;AAAA,QACd,MAAM,CAAC,EAAE,WAAW,MAAM;AACxB,gBAAM,EAAE,QAAQ,IAAI;AAEpB,cAAI,SAAS;AACX,kBAAM,WAAW,SAAS,SAAmB,EAAE;AAE/C,mBAAO;AAAA,cACL,UAAU;AAAA,cACV,cAAc;AAAA,cACd,YAAY;AAAA,cACZ,OAAO,mBAAmB,QAAQ;AAAA,YACpC;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,SAAS;AACX;AAEO,MAAM,kBAAkB,MAAM,CAAC,GAAG,cAAc,sBAAsB;","names":[]}
|
package/dist/node/fontFamily.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/fontFamily.ts"],"sourcesContent":["export const fontFamilyPrimary = ['Lexend Deca', 'Helvetica', 'sans-serif'].join(',')\n"],"mappings":"AAAO,MAAM,oBAAoB,CAAC,eAAe,aAAa,YAAY,EAAE,KAAK,GAAG;","names":[]}
|
package/dist/node/index.mjs
DELETED
package/dist/node/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './appThemeOptions'\nexport * from './fontFamily'\nexport * from './partialDarkThemeOptions'\nexport * from './partialLightThemeOptions'\nexport * from './themeOptions'\nexport * from './webThemeOptions'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { darken } from "@mui/material";
|
|
2
|
-
import { merge } from "@xylabs/lodash";
|
|
3
|
-
const appComponents = {
|
|
4
|
-
MuiPaper: {
|
|
5
|
-
defaultProps: {
|
|
6
|
-
variant: "elevation"
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
const partialDarkThemeOptions = {
|
|
11
|
-
palette: {
|
|
12
|
-
background: {
|
|
13
|
-
default: darken("#171626", 0.1),
|
|
14
|
-
paper: "#171626"
|
|
15
|
-
},
|
|
16
|
-
mode: "dark",
|
|
17
|
-
primary: {
|
|
18
|
-
main: "#9993F5"
|
|
19
|
-
},
|
|
20
|
-
secondary: {
|
|
21
|
-
main: "#8EC8FF"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
const partialAppDarkThemeOptions = merge({}, partialDarkThemeOptions, { components: appComponents });
|
|
26
|
-
export {
|
|
27
|
-
partialAppDarkThemeOptions,
|
|
28
|
-
partialDarkThemeOptions
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=partialDarkThemeOptions.mjs.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { merge } from "@xylabs/lodash";
|
|
2
|
-
const appComponents = {
|
|
3
|
-
MuiPaper: {
|
|
4
|
-
defaultProps: {
|
|
5
|
-
variant: "outlined"
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
const partialLightThemeOptions = {
|
|
10
|
-
palette: {
|
|
11
|
-
mode: "light",
|
|
12
|
-
primary: {
|
|
13
|
-
main: "#1f1a66"
|
|
14
|
-
},
|
|
15
|
-
secondary: {
|
|
16
|
-
main: "#0f68c9"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
const partialAppLightThemeOptions = merge({}, partialLightThemeOptions, { components: appComponents });
|
|
21
|
-
export {
|
|
22
|
-
partialAppLightThemeOptions,
|
|
23
|
-
partialLightThemeOptions
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=partialLightThemeOptions.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/themeOptions.ts"],"sourcesContent":["import { ThemeOptions } from '@mui/material'\n\nimport { fontFamilyPrimary } from './fontFamily'\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"],"mappings":"AAEA,SAAS,yBAAyB;AAE3B,MAAM,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;AAAA,MACZ,WAAW;AAAA,IACb;AAAA,IACA,gBAAgB;AAAA,MACd,MAAM;AAAA,QACJ,WAAW;AAAA,UACT,QAAQ;AAAA,QACV;AAAA,MACF;AAAA,IACF;AAAA,EACF;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,MAAM,aAAyC;AAAA,EACpD,OAAO;AAAA,IACL,YAAY;AAAA,EACd;AAAA,EACA,OAAO;AAAA,IACL,YAAY;AAAA,EACd;AAAA,EACA,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;AAAA,EACA,IAAI;AAAA,IACF,YAAY;AAAA,IACZ,UAAU;AAAA,EACZ;AAAA,EACA,IAAI;AAAA,IACF,YAAY;AAAA,IACZ,UAAU;AAAA,EACZ;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,WAAW;AAAA,IACT,SAAS;AAAA,EACX;AAAA,EACA,WAAW;AAAA,IACT,SAAS;AAAA,EACX;AACF;AAEO,MAAM,eAA6B;AAAA,EACxC;AAAA,EACA,OAAO;AAAA,IACL,cAAc;AAAA,EAChB;AAAA,EACA,SAAS;AAAA,EACT;AACF;","names":[]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { merge } from "@xylabs/lodash";
|
|
2
|
-
import { themeOptions } from "./themeOptions";
|
|
3
|
-
const partialWebThemeOptions = {};
|
|
4
|
-
const webThemeOptions = merge({}, themeOptions, partialWebThemeOptions);
|
|
5
|
-
export {
|
|
6
|
-
webThemeOptions
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=webThemeOptions.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/webThemeOptions.tsx"],"sourcesContent":["import { ThemeOptions } from '@mui/material'\nimport { merge } from '@xylabs/lodash'\n\nimport { themeOptions } from './themeOptions'\n\nconst partialWebThemeOptions: ThemeOptions = {}\n\nexport const webThemeOptions = merge({}, themeOptions, partialWebThemeOptions)\n"],"mappings":"AACA,SAAS,aAAa;AAEtB,SAAS,oBAAoB;AAE7B,MAAM,yBAAuC,CAAC;AAEvC,MAAM,kBAAkB,MAAM,CAAC,GAAG,cAAc,sBAAsB;","names":[]}
|