@xyo-network/react-theme 2.61.0 → 2.61.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.
Files changed (68) hide show
  1. package/dist/appThemeOptions.d.mts.map +1 -0
  2. package/dist/appThemeOptions.d.ts +3 -0
  3. package/dist/appThemeOptions.d.ts.map +1 -0
  4. package/dist/docs.json +358 -0
  5. package/dist/fontFamily.d.mts.map +1 -0
  6. package/dist/fontFamily.d.ts +2 -0
  7. package/dist/fontFamily.d.ts.map +1 -0
  8. package/dist/index.d.mts.map +1 -0
  9. package/dist/{esm/index.js → index.d.ts} +1 -1
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/index.js +230 -0
  12. package/dist/index.js.map +1 -0
  13. package/dist/index.mjs +194 -0
  14. package/dist/index.mjs.map +1 -0
  15. package/dist/partialDarkThemeOptions.d.mts.map +1 -0
  16. package/dist/partialDarkThemeOptions.d.ts +4 -0
  17. package/dist/partialDarkThemeOptions.d.ts.map +1 -0
  18. package/dist/partialLightThemeOptions.d.mts.map +1 -0
  19. package/dist/partialLightThemeOptions.d.ts +4 -0
  20. package/dist/partialLightThemeOptions.d.ts.map +1 -0
  21. package/dist/themeOptions.d.mts.map +1 -0
  22. package/dist/themeOptions.d.ts +5 -0
  23. package/dist/themeOptions.d.ts.map +1 -0
  24. package/dist/webThemeOptions.d.mts.map +1 -0
  25. package/dist/webThemeOptions.d.ts +3 -0
  26. package/dist/webThemeOptions.d.ts.map +1 -0
  27. package/package.json +23 -15
  28. package/dist/cjs/appThemeOptions.js +0 -28
  29. package/dist/cjs/appThemeOptions.js.map +0 -1
  30. package/dist/cjs/fontFamily.js +0 -5
  31. package/dist/cjs/fontFamily.js.map +0 -1
  32. package/dist/cjs/index.js +0 -10
  33. package/dist/cjs/index.js.map +0 -1
  34. package/dist/cjs/partialDarkThemeOptions.js +0 -29
  35. package/dist/cjs/partialDarkThemeOptions.js.map +0 -1
  36. package/dist/cjs/partialLightThemeOptions.js +0 -24
  37. package/dist/cjs/partialLightThemeOptions.js.map +0 -1
  38. package/dist/cjs/themeOptions.js +0 -101
  39. package/dist/cjs/themeOptions.js.map +0 -1
  40. package/dist/cjs/webThemeOptions.js +0 -8
  41. package/dist/cjs/webThemeOptions.js.map +0 -1
  42. package/dist/esm/appThemeOptions.js +0 -25
  43. package/dist/esm/appThemeOptions.js.map +0 -1
  44. package/dist/esm/fontFamily.js +0 -2
  45. package/dist/esm/fontFamily.js.map +0 -1
  46. package/dist/esm/index.js.map +0 -1
  47. package/dist/esm/partialDarkThemeOptions.js +0 -26
  48. package/dist/esm/partialDarkThemeOptions.js.map +0 -1
  49. package/dist/esm/partialLightThemeOptions.js +0 -21
  50. package/dist/esm/partialLightThemeOptions.js.map +0 -1
  51. package/dist/esm/themeOptions.js +0 -98
  52. package/dist/esm/themeOptions.js.map +0 -1
  53. package/dist/esm/webThemeOptions.js +0 -5
  54. package/dist/esm/webThemeOptions.js.map +0 -1
  55. package/dist/types/appThemeOptions.d.ts.map +0 -1
  56. package/dist/types/fontFamily.d.ts.map +0 -1
  57. package/dist/types/index.d.ts.map +0 -1
  58. package/dist/types/partialDarkThemeOptions.d.ts.map +0 -1
  59. package/dist/types/partialLightThemeOptions.d.ts.map +0 -1
  60. package/dist/types/themeOptions.d.ts.map +0 -1
  61. package/dist/types/webThemeOptions.d.ts.map +0 -1
  62. /package/dist/{types/appThemeOptions.d.ts → appThemeOptions.d.mts} +0 -0
  63. /package/dist/{types/fontFamily.d.ts → fontFamily.d.mts} +0 -0
  64. /package/dist/{types/index.d.ts → index.d.mts} +0 -0
  65. /package/dist/{types/partialDarkThemeOptions.d.ts → partialDarkThemeOptions.d.mts} +0 -0
  66. /package/dist/{types/partialLightThemeOptions.d.ts → partialLightThemeOptions.d.mts} +0 -0
  67. /package/dist/{types/themeOptions.d.ts → themeOptions.d.mts} +0 -0
  68. /package/dist/{types/webThemeOptions.d.ts → webThemeOptions.d.mts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appThemeOptions.d.ts","sourceRoot":"","sources":["../src/appThemeOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AA6B5C,eAAO,MAAM,eAAe,cAAkD,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { ThemeOptions } from '@mui/material';
2
+ export declare const appThemeOptions: ThemeOptions;
3
+ //# sourceMappingURL=appThemeOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appThemeOptions.d.ts","sourceRoot":"","sources":["../src/appThemeOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AA6B5C,eAAO,MAAM,eAAe,cAAkD,CAAA"}
package/dist/docs.json ADDED
@@ -0,0 +1,358 @@
1
+ {
2
+ "id": 0,
3
+ "name": "@xyo-network/react-theme",
4
+ "variant": "project",
5
+ "kind": 1,
6
+ "flags": {},
7
+ "children": [
8
+ {
9
+ "id": 1,
10
+ "name": "appThemeOptions",
11
+ "variant": "declaration",
12
+ "kind": 32,
13
+ "flags": {
14
+ "isConst": true
15
+ },
16
+ "sources": [
17
+ {
18
+ "fileName": "appThemeOptions.tsx",
19
+ "line": 30,
20
+ "character": 13,
21
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/81307ff586db/packages/sdk/packages/theme/src/appThemeOptions.tsx#L30"
22
+ }
23
+ ],
24
+ "type": {
25
+ "type": "reference",
26
+ "target": {
27
+ "sourceFileName": "../../../../node_modules/@mui/material/styles/createTheme.d.ts",
28
+ "qualifiedName": "ThemeOptions"
29
+ },
30
+ "name": "ThemeOptions",
31
+ "package": "@mui/material"
32
+ },
33
+ "defaultValue": "..."
34
+ },
35
+ {
36
+ "id": 7,
37
+ "name": "components",
38
+ "variant": "declaration",
39
+ "kind": 32,
40
+ "flags": {
41
+ "isConst": true
42
+ },
43
+ "sources": [
44
+ {
45
+ "fileName": "themeOptions.ts",
46
+ "line": 5,
47
+ "character": 13,
48
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/81307ff586db/packages/sdk/packages/theme/src/themeOptions.ts#L5"
49
+ }
50
+ ],
51
+ "type": {
52
+ "type": "indexedAccess",
53
+ "indexType": {
54
+ "type": "literal",
55
+ "value": "components"
56
+ },
57
+ "objectType": {
58
+ "type": "reference",
59
+ "target": {
60
+ "sourceFileName": "../../../../node_modules/@mui/material/styles/createTheme.d.ts",
61
+ "qualifiedName": "ThemeOptions"
62
+ },
63
+ "name": "ThemeOptions",
64
+ "package": "@mui/material"
65
+ }
66
+ },
67
+ "defaultValue": "..."
68
+ },
69
+ {
70
+ "id": 2,
71
+ "name": "fontFamilyPrimary",
72
+ "variant": "declaration",
73
+ "kind": 32,
74
+ "flags": {
75
+ "isConst": true
76
+ },
77
+ "sources": [
78
+ {
79
+ "fileName": "fontFamily.ts",
80
+ "line": 1,
81
+ "character": 13,
82
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/81307ff586db/packages/sdk/packages/theme/src/fontFamily.ts#L1"
83
+ }
84
+ ],
85
+ "type": {
86
+ "type": "intrinsic",
87
+ "name": "string"
88
+ },
89
+ "defaultValue": "..."
90
+ },
91
+ {
92
+ "id": 4,
93
+ "name": "partialAppDarkThemeOptions",
94
+ "variant": "declaration",
95
+ "kind": 32,
96
+ "flags": {
97
+ "isConst": true
98
+ },
99
+ "sources": [
100
+ {
101
+ "fileName": "partialDarkThemeOptions.tsx",
102
+ "line": 28,
103
+ "character": 13,
104
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/81307ff586db/packages/sdk/packages/theme/src/partialDarkThemeOptions.tsx#L28"
105
+ }
106
+ ],
107
+ "type": {
108
+ "type": "reference",
109
+ "target": {
110
+ "sourceFileName": "../../../../node_modules/@mui/material/styles/createTheme.d.ts",
111
+ "qualifiedName": "ThemeOptions"
112
+ },
113
+ "name": "ThemeOptions",
114
+ "package": "@mui/material"
115
+ },
116
+ "defaultValue": "..."
117
+ },
118
+ {
119
+ "id": 6,
120
+ "name": "partialAppLightThemeOptions",
121
+ "variant": "declaration",
122
+ "kind": 32,
123
+ "flags": {
124
+ "isConst": true
125
+ },
126
+ "sources": [
127
+ {
128
+ "fileName": "partialLightThemeOptions.tsx",
129
+ "line": 24,
130
+ "character": 13,
131
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/81307ff586db/packages/sdk/packages/theme/src/partialLightThemeOptions.tsx#L24"
132
+ }
133
+ ],
134
+ "type": {
135
+ "type": "reference",
136
+ "target": {
137
+ "sourceFileName": "../../../../node_modules/@mui/material/styles/createTheme.d.ts",
138
+ "qualifiedName": "ThemeOptions"
139
+ },
140
+ "name": "ThemeOptions",
141
+ "package": "@mui/material"
142
+ },
143
+ "defaultValue": "..."
144
+ },
145
+ {
146
+ "id": 3,
147
+ "name": "partialDarkThemeOptions",
148
+ "variant": "declaration",
149
+ "kind": 32,
150
+ "flags": {
151
+ "isConst": true
152
+ },
153
+ "sources": [
154
+ {
155
+ "fileName": "partialDarkThemeOptions.tsx",
156
+ "line": 12,
157
+ "character": 13,
158
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/81307ff586db/packages/sdk/packages/theme/src/partialDarkThemeOptions.tsx#L12"
159
+ }
160
+ ],
161
+ "type": {
162
+ "type": "reference",
163
+ "target": {
164
+ "sourceFileName": "../../../../node_modules/@mui/material/styles/createTheme.d.ts",
165
+ "qualifiedName": "ThemeOptions"
166
+ },
167
+ "name": "ThemeOptions",
168
+ "package": "@mui/material"
169
+ },
170
+ "defaultValue": "..."
171
+ },
172
+ {
173
+ "id": 5,
174
+ "name": "partialLightThemeOptions",
175
+ "variant": "declaration",
176
+ "kind": 32,
177
+ "flags": {
178
+ "isConst": true
179
+ },
180
+ "sources": [
181
+ {
182
+ "fileName": "partialLightThemeOptions.tsx",
183
+ "line": 12,
184
+ "character": 13,
185
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/81307ff586db/packages/sdk/packages/theme/src/partialLightThemeOptions.tsx#L12"
186
+ }
187
+ ],
188
+ "type": {
189
+ "type": "reference",
190
+ "target": {
191
+ "sourceFileName": "../../../../node_modules/@mui/material/styles/createTheme.d.ts",
192
+ "qualifiedName": "ThemeOptions"
193
+ },
194
+ "name": "ThemeOptions",
195
+ "package": "@mui/material"
196
+ },
197
+ "defaultValue": "..."
198
+ },
199
+ {
200
+ "id": 9,
201
+ "name": "themeOptions",
202
+ "variant": "declaration",
203
+ "kind": 32,
204
+ "flags": {
205
+ "isConst": true
206
+ },
207
+ "sources": [
208
+ {
209
+ "fileName": "themeOptions.ts",
210
+ "line": 95,
211
+ "character": 13,
212
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/81307ff586db/packages/sdk/packages/theme/src/themeOptions.ts#L95"
213
+ }
214
+ ],
215
+ "type": {
216
+ "type": "reference",
217
+ "target": {
218
+ "sourceFileName": "../../../../node_modules/@mui/material/styles/createTheme.d.ts",
219
+ "qualifiedName": "ThemeOptions"
220
+ },
221
+ "name": "ThemeOptions",
222
+ "package": "@mui/material"
223
+ },
224
+ "defaultValue": "..."
225
+ },
226
+ {
227
+ "id": 8,
228
+ "name": "typography",
229
+ "variant": "declaration",
230
+ "kind": 32,
231
+ "flags": {
232
+ "isConst": true
233
+ },
234
+ "sources": [
235
+ {
236
+ "fileName": "themeOptions.ts",
237
+ "line": 50,
238
+ "character": 13,
239
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/81307ff586db/packages/sdk/packages/theme/src/themeOptions.ts#L50"
240
+ }
241
+ ],
242
+ "type": {
243
+ "type": "indexedAccess",
244
+ "indexType": {
245
+ "type": "literal",
246
+ "value": "typography"
247
+ },
248
+ "objectType": {
249
+ "type": "reference",
250
+ "target": {
251
+ "sourceFileName": "../../../../node_modules/@mui/material/styles/createTheme.d.ts",
252
+ "qualifiedName": "ThemeOptions"
253
+ },
254
+ "name": "ThemeOptions",
255
+ "package": "@mui/material"
256
+ }
257
+ },
258
+ "defaultValue": "..."
259
+ },
260
+ {
261
+ "id": 10,
262
+ "name": "webThemeOptions",
263
+ "variant": "declaration",
264
+ "kind": 32,
265
+ "flags": {
266
+ "isConst": true
267
+ },
268
+ "sources": [
269
+ {
270
+ "fileName": "webThemeOptions.tsx",
271
+ "line": 8,
272
+ "character": 13,
273
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/81307ff586db/packages/sdk/packages/theme/src/webThemeOptions.tsx#L8"
274
+ }
275
+ ],
276
+ "type": {
277
+ "type": "reference",
278
+ "target": {
279
+ "sourceFileName": "../../../../node_modules/@mui/material/styles/createTheme.d.ts",
280
+ "qualifiedName": "ThemeOptions"
281
+ },
282
+ "name": "ThemeOptions",
283
+ "package": "@mui/material"
284
+ },
285
+ "defaultValue": "..."
286
+ }
287
+ ],
288
+ "groups": [
289
+ {
290
+ "title": "Variables",
291
+ "children": [
292
+ 1,
293
+ 7,
294
+ 2,
295
+ 4,
296
+ 6,
297
+ 3,
298
+ 5,
299
+ 9,
300
+ 8,
301
+ 10
302
+ ]
303
+ }
304
+ ],
305
+ "packageName": "@xyo-network/react-theme",
306
+ "readme": [
307
+ {
308
+ "kind": "text",
309
+ "text": "[![logo][]](https://xyo.network)\n\nPart of [@xyo-network/sdk-xyo-react](https://www.npmjs.com/package/@xyo-network/sdk-xyo-react)\n\n## License\n\n> See the [LICENSE](LICENSE) file for license details\n\n## Credits\n\n[Made with 🔥 and ❄️ by XYO](https://xyo.network)\n\n[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png"
310
+ }
311
+ ],
312
+ "symbolIdMap": {
313
+ "0": {
314
+ "sourceFileName": "src/index.ts",
315
+ "qualifiedName": ""
316
+ },
317
+ "1": {
318
+ "sourceFileName": "src/appThemeOptions.tsx",
319
+ "qualifiedName": "appThemeOptions"
320
+ },
321
+ "2": {
322
+ "sourceFileName": "src/fontFamily.ts",
323
+ "qualifiedName": "fontFamilyPrimary"
324
+ },
325
+ "3": {
326
+ "sourceFileName": "src/partialDarkThemeOptions.tsx",
327
+ "qualifiedName": "partialDarkThemeOptions"
328
+ },
329
+ "4": {
330
+ "sourceFileName": "src/partialDarkThemeOptions.tsx",
331
+ "qualifiedName": "partialAppDarkThemeOptions"
332
+ },
333
+ "5": {
334
+ "sourceFileName": "src/partialLightThemeOptions.tsx",
335
+ "qualifiedName": "partialLightThemeOptions"
336
+ },
337
+ "6": {
338
+ "sourceFileName": "src/partialLightThemeOptions.tsx",
339
+ "qualifiedName": "partialAppLightThemeOptions"
340
+ },
341
+ "7": {
342
+ "sourceFileName": "src/themeOptions.ts",
343
+ "qualifiedName": "components"
344
+ },
345
+ "8": {
346
+ "sourceFileName": "src/themeOptions.ts",
347
+ "qualifiedName": "typography"
348
+ },
349
+ "9": {
350
+ "sourceFileName": "src/themeOptions.ts",
351
+ "qualifiedName": "themeOptions"
352
+ },
353
+ "10": {
354
+ "sourceFileName": "src/webThemeOptions.tsx",
355
+ "qualifiedName": "webThemeOptions"
356
+ }
357
+ }
358
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fontFamily.d.ts","sourceRoot":"","sources":["../src/fontFamily.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,QAAuD,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const fontFamilyPrimary: string;
2
+ //# sourceMappingURL=fontFamily.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fontFamily.d.ts","sourceRoot":"","sources":["../src/fontFamily.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,QAAuD,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,2BAA2B,CAAA;AACzC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA"}
@@ -4,4 +4,4 @@ export * from './partialDarkThemeOptions';
4
4
  export * from './partialLightThemeOptions';
5
5
  export * from './themeOptions';
6
6
  export * from './webThemeOptions';
7
- //# sourceMappingURL=index.js.map
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,2BAA2B,CAAA;AACzC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,230 @@
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/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ appThemeOptions: () => appThemeOptions,
24
+ components: () => components,
25
+ fontFamilyPrimary: () => fontFamilyPrimary,
26
+ partialAppDarkThemeOptions: () => partialAppDarkThemeOptions,
27
+ partialAppLightThemeOptions: () => partialAppLightThemeOptions,
28
+ partialDarkThemeOptions: () => partialDarkThemeOptions,
29
+ partialLightThemeOptions: () => partialLightThemeOptions,
30
+ themeOptions: () => themeOptions,
31
+ typography: () => typography,
32
+ webThemeOptions: () => webThemeOptions
33
+ });
34
+ module.exports = __toCommonJS(src_exports);
35
+
36
+ // src/appThemeOptions.tsx
37
+ var import_lodash = require("@xylabs/lodash");
38
+
39
+ // src/fontFamily.ts
40
+ var fontFamilyPrimary = ["Lexend Deca", "Helvetica", "sans-serif"].join(",");
41
+
42
+ // src/themeOptions.ts
43
+ var components = {
44
+ MuiCard: {
45
+ styleOverrides: {
46
+ root: {
47
+ display: "flex",
48
+ flexDirection: "column",
49
+ justifyContent: "space-between"
50
+ }
51
+ }
52
+ },
53
+ MuiCardHeader: {
54
+ styleOverrides: {
55
+ content: {
56
+ display: "flex",
57
+ flexDirection: "column",
58
+ overflow: "hidden"
59
+ }
60
+ }
61
+ },
62
+ MuiLink: {
63
+ defaultProps: {
64
+ underline: "none"
65
+ },
66
+ styleOverrides: {
67
+ root: {
68
+ "&:hover": {
69
+ filter: "brightness(75%)"
70
+ }
71
+ }
72
+ }
73
+ },
74
+ MuiTableCell: {
75
+ styleOverrides: {
76
+ body: {
77
+ fontFamily: "monospace",
78
+ whiteSpace: "nowrap"
79
+ },
80
+ head: {
81
+ fontWeight: 700,
82
+ whiteSpace: "nowrap"
83
+ }
84
+ }
85
+ }
86
+ };
87
+ var typography = {
88
+ body1: {
89
+ lineHeight: 1.57
90
+ },
91
+ body2: {
92
+ lineHeight: 1.57
93
+ },
94
+ button: {
95
+ fontSize: "1rem",
96
+ textTransform: "inherit"
97
+ },
98
+ fontFamily: fontFamilyPrimary,
99
+ fontWeightBold: 700,
100
+ fontWeightLight: 200,
101
+ fontWeightMedium: 300,
102
+ fontWeightRegular: 400,
103
+ h1: {
104
+ fontFamily: fontFamilyPrimary,
105
+ fontSize: "4rem"
106
+ },
107
+ h2: {
108
+ fontFamily: fontFamilyPrimary,
109
+ fontSize: "2.4rem"
110
+ },
111
+ h3: {
112
+ fontFamily: fontFamilyPrimary,
113
+ fontSize: "2.24rem"
114
+ },
115
+ h4: {
116
+ fontSize: "2rem"
117
+ },
118
+ h5: {
119
+ fontSize: "1.5rem"
120
+ },
121
+ h6: {
122
+ fontSize: "1.1rem"
123
+ },
124
+ subtitle1: {
125
+ opacity: "70%"
126
+ },
127
+ subtitle2: {
128
+ opacity: "70%"
129
+ }
130
+ };
131
+ var themeOptions = {
132
+ components,
133
+ shape: {
134
+ borderRadius: 8
135
+ },
136
+ spacing: 16,
137
+ typography
138
+ };
139
+
140
+ // src/appThemeOptions.tsx
141
+ var partialAppThemeOptions = {
142
+ components: {
143
+ MuiTypography: {
144
+ styleOverrides: {
145
+ root: ({ ownerState }) => {
146
+ const { clamped } = ownerState;
147
+ if (clamped) {
148
+ const maxWidth = parseInt(clamped, 10);
149
+ return {
150
+ overflow: "hidden",
151
+ textOverflow: "ellipsis",
152
+ whiteSpace: "nowrap",
153
+ width: `clamp(1%, 100%, ${maxWidth}px)`
154
+ };
155
+ }
156
+ }
157
+ }
158
+ }
159
+ },
160
+ spacing: 8
161
+ };
162
+ var appThemeOptions = (0, import_lodash.merge)({}, themeOptions, partialAppThemeOptions);
163
+
164
+ // src/partialDarkThemeOptions.tsx
165
+ var import_material = require("@mui/material");
166
+ var import_lodash2 = require("@xylabs/lodash");
167
+ var appComponents = {
168
+ MuiPaper: {
169
+ defaultProps: {
170
+ variant: "elevation"
171
+ }
172
+ }
173
+ };
174
+ var partialDarkThemeOptions = {
175
+ palette: {
176
+ background: {
177
+ default: (0, import_material.darken)("#171626", 0.1),
178
+ paper: "#171626"
179
+ },
180
+ mode: "dark",
181
+ primary: {
182
+ main: "#9993F5"
183
+ },
184
+ secondary: {
185
+ main: "#8EC8FF"
186
+ }
187
+ }
188
+ };
189
+ var partialAppDarkThemeOptions = (0, import_lodash2.merge)({}, partialDarkThemeOptions, { components: appComponents });
190
+
191
+ // src/partialLightThemeOptions.tsx
192
+ var import_lodash3 = require("@xylabs/lodash");
193
+ var appComponents2 = {
194
+ MuiPaper: {
195
+ defaultProps: {
196
+ variant: "outlined"
197
+ }
198
+ }
199
+ };
200
+ var partialLightThemeOptions = {
201
+ palette: {
202
+ mode: "light",
203
+ primary: {
204
+ main: "#1f1a66"
205
+ },
206
+ secondary: {
207
+ main: "#0f68c9"
208
+ }
209
+ }
210
+ };
211
+ var partialAppLightThemeOptions = (0, import_lodash3.merge)({}, partialLightThemeOptions, { components: appComponents2 });
212
+
213
+ // src/webThemeOptions.tsx
214
+ var import_lodash4 = require("@xylabs/lodash");
215
+ var partialWebThemeOptions = {};
216
+ var webThemeOptions = (0, import_lodash4.merge)({}, themeOptions, partialWebThemeOptions);
217
+ // Annotate the CommonJS export names for ESM import in node:
218
+ 0 && (module.exports = {
219
+ appThemeOptions,
220
+ components,
221
+ fontFamilyPrimary,
222
+ partialAppDarkThemeOptions,
223
+ partialAppLightThemeOptions,
224
+ partialDarkThemeOptions,
225
+ partialLightThemeOptions,
226
+ themeOptions,
227
+ typography,
228
+ webThemeOptions
229
+ });
230
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/appThemeOptions.tsx","../src/fontFamily.ts","../src/themeOptions.ts","../src/partialDarkThemeOptions.tsx","../src/partialLightThemeOptions.tsx","../src/webThemeOptions.tsx"],"sourcesContent":["export * from './appThemeOptions'\nexport * from './fontFamily'\nexport * from './partialDarkThemeOptions'\nexport * from './partialLightThemeOptions'\nexport * from './themeOptions'\nexport * from './webThemeOptions'\n","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","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","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\nconst appComponents: ThemeOptions['components'] = {\n MuiPaper: {\n defaultProps: {\n variant: 'outlined',\n },\n },\n}\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, { components: appComponents })\n","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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,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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