@datarecce/ui 0.1.29 → 0.1.30

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 (78) hide show
  1. package/dist/{RecceCheckContext-fAKHgsGz.js → RecceCheckContext-DPpu9nG5.js} +2 -2
  2. package/dist/{RecceCheckContext-fAKHgsGz.js.map → RecceCheckContext-DPpu9nG5.js.map} +1 -1
  3. package/dist/{RecceCheckContext-PT4-g1bW.mjs → RecceCheckContext-bXdfQLGG.mjs} +2 -2
  4. package/dist/{RecceCheckContext-PT4-g1bW.mjs.map → RecceCheckContext-bXdfQLGG.mjs.map} +1 -1
  5. package/dist/api.d.mts +1 -1
  6. package/dist/api.d.ts +1 -1
  7. package/dist/api.js +4 -3
  8. package/dist/api.mjs +4 -3
  9. package/dist/{components-B9F5oJbK.js → components-B-YxuuPz.js} +66 -65
  10. package/dist/{components-B9F5oJbK.js.map → components-B-YxuuPz.js.map} +1 -1
  11. package/dist/{components-D2DRqJsz.css → components-BeAjVBV3.css} +1 -1
  12. package/dist/{components-D2DRqJsz.css.map → components-BeAjVBV3.css.map} +1 -1
  13. package/dist/{components-gDC1ucjo.mjs → components-DCOI1YlQ.mjs} +8 -7
  14. package/dist/{components-gDC1ucjo.mjs.map → components-DCOI1YlQ.mjs.map} +1 -1
  15. package/dist/{components-dVXbmdqd.css → components-iUxcqtUB.css} +1 -1
  16. package/dist/{components-dVXbmdqd.css.map → components-iUxcqtUB.css.map} +1 -1
  17. package/dist/components.d.mts +1 -1
  18. package/dist/components.d.ts +1 -1
  19. package/dist/components.js +6 -5
  20. package/dist/components.mjs +6 -5
  21. package/dist/{hooks-C2jUJ9EN.js → hooks-B9hsc1oD.js} +3 -3
  22. package/dist/{hooks-C2jUJ9EN.js.map → hooks-B9hsc1oD.js.map} +1 -1
  23. package/dist/{hooks-4hRUjy9Q.mjs → hooks-DjBNmTdh.mjs} +3 -3
  24. package/dist/{hooks-4hRUjy9Q.mjs.map → hooks-DjBNmTdh.mjs.map} +1 -1
  25. package/dist/hooks.d.mts +1 -1
  26. package/dist/hooks.d.ts +1 -1
  27. package/dist/hooks.js +5 -4
  28. package/dist/hooks.mjs +5 -4
  29. package/dist/{html2canvas-pro.esm-BR5xeFe-.mjs → html2canvas-pro.esm-BInzOtWO.mjs} +1 -1
  30. package/dist/{html2canvas-pro.esm-BR5xeFe-.mjs.map → html2canvas-pro.esm-BInzOtWO.mjs.map} +1 -1
  31. package/dist/{html2canvas-pro.esm-CVOsBdk0.js → html2canvas-pro.esm-WJxOmKlq.js} +1 -1
  32. package/dist/{html2canvas-pro.esm-CVOsBdk0.js.map → html2canvas-pro.esm-WJxOmKlq.js.map} +1 -1
  33. package/dist/{index-CUtFlKOo.d.ts → index-BNUP2V_N.d.ts} +70 -70
  34. package/dist/index-BNUP2V_N.d.ts.map +1 -0
  35. package/dist/{index-Bv5R8iLo.d.mts → index-DOPZuhD8.d.mts} +70 -70
  36. package/dist/{index-Bv5R8iLo.d.mts.map → index-DOPZuhD8.d.mts.map} +1 -1
  37. package/dist/index.d.mts +1 -1
  38. package/dist/index.d.ts +1 -1
  39. package/dist/index.js +8 -7
  40. package/dist/index.js.map +1 -1
  41. package/dist/index.mjs +8 -7
  42. package/dist/index.mjs.map +1 -1
  43. package/dist/mui-theme-B2wm_cvZ.js +732 -0
  44. package/dist/mui-theme-B2wm_cvZ.js.map +1 -0
  45. package/dist/mui-theme-CUhybmBq.mjs +696 -0
  46. package/dist/mui-theme-CUhybmBq.mjs.map +1 -0
  47. package/dist/{state-CELzQ0tM.mjs → state-B9yzhuKs.mjs} +5 -694
  48. package/dist/state-B9yzhuKs.mjs.map +1 -0
  49. package/dist/{state-eEsMhIy4.css → state-DOUPNifc.css} +1 -1
  50. package/dist/{state-eEsMhIy4.css.map → state-DOUPNifc.css.map} +1 -1
  51. package/dist/{state-CemiRRon.js → state-lPCQsWy5.js} +24 -737
  52. package/dist/state-lPCQsWy5.js.map +1 -0
  53. package/dist/theme.d.mts +186 -0
  54. package/dist/theme.d.mts.map +1 -0
  55. package/dist/theme.d.ts +186 -0
  56. package/dist/theme.d.ts.map +1 -0
  57. package/dist/theme.js +9 -0
  58. package/dist/theme.mjs +4 -0
  59. package/dist/{tooltipMessage-CrXjOmVM.mjs → tooltipMessage-B--I3p1V.mjs} +1 -1
  60. package/dist/{tooltipMessage-CrXjOmVM.mjs.map → tooltipMessage-B--I3p1V.mjs.map} +1 -1
  61. package/dist/{tooltipMessage-Dbi1kkfi.js → tooltipMessage-DosF13kZ.js} +1 -1
  62. package/dist/{tooltipMessage-Dbi1kkfi.js.map → tooltipMessage-DosF13kZ.js.map} +1 -1
  63. package/dist/types.d.mts +1 -1
  64. package/dist/types.d.ts +1 -1
  65. package/dist/types.js +2 -2
  66. package/dist/types.mjs +2 -2
  67. package/dist/{urls-D7PrPolY.mjs → urls-B1Ymdoz-.mjs} +1 -1
  68. package/dist/{urls-D7PrPolY.mjs.map → urls-B1Ymdoz-.mjs.map} +1 -1
  69. package/dist/{urls-SazAekCZ.js → urls-C4eAc82S.js} +1 -1
  70. package/dist/{urls-SazAekCZ.js.map → urls-C4eAc82S.js.map} +1 -1
  71. package/dist/{version-bWg7XwOu.js → version-Dh8sZhvs.js} +2 -2
  72. package/dist/{version-bWg7XwOu.js.map → version-Dh8sZhvs.js.map} +1 -1
  73. package/dist/{version-paZ9esBk.mjs → version-OnOKzBeQ.mjs} +2 -2
  74. package/dist/{version-paZ9esBk.mjs.map → version-OnOKzBeQ.mjs.map} +1 -1
  75. package/package.json +6 -1
  76. package/dist/index-CUtFlKOo.d.ts.map +0 -1
  77. package/dist/state-CELzQ0tM.mjs.map +0 -1
  78. package/dist/state-CemiRRon.js.map +0 -1
@@ -0,0 +1,732 @@
1
+ "use client"
2
+ const require_state = require('./state-lPCQsWy5.js');
3
+ let _mui_material_styles = require("@mui/material/styles");
4
+
5
+ //#region recce-source/js/src/components/ui/mui-theme.ts
6
+ /**
7
+ * MUI Theme Configuration for Recce
8
+ *
9
+ * This theme mirrors the existing Chakra UI theme tokens from theme.ts
10
+ * to ensure visual consistency during the migration period.
11
+ *
12
+ * Color palette mappings:
13
+ * - iochmara (custom blue) -> primary
14
+ * - cyan -> secondary
15
+ * - brand (orange) -> custom palette
16
+ * - green -> success
17
+ * - amber -> warning
18
+ * - red -> error
19
+ * - neutral -> grey
20
+ */
21
+ const white = "#FFFFFF";
22
+ const black = "#000000";
23
+ const colors = {
24
+ white,
25
+ black,
26
+ iochmara: {
27
+ 50: "#EAF3FB",
28
+ 100: "#C4DDF3",
29
+ 200: "#9EC6EB",
30
+ 300: "#79B0E2",
31
+ 400: "#5599D8",
32
+ 500: "#3182CE",
33
+ 600: "#2A6CA7",
34
+ 700: "#225581",
35
+ 800: "#193E5C",
36
+ 900: "#102638",
37
+ 950: "#060E14"
38
+ },
39
+ cyan: {
40
+ 50: "#ECFEFF",
41
+ 100: "#CFFAFE",
42
+ 200: "#A5F3FC",
43
+ 300: "#67E8F9",
44
+ 400: "#22D3EE",
45
+ 500: "#06B6D4",
46
+ 600: "#0891B2",
47
+ 700: "#0E7490",
48
+ 800: "#155E75",
49
+ 900: "#164E63",
50
+ 950: "#083344"
51
+ },
52
+ neutral: {
53
+ 50: "#FAFAFA",
54
+ 100: "#F5F5F5",
55
+ 200: "#E5E5E5",
56
+ 300: "#D4D4D4",
57
+ 400: "#A3A3A3",
58
+ 500: "#737373",
59
+ 600: "#525252",
60
+ 700: "#404040",
61
+ 800: "#262626",
62
+ 900: "#171717",
63
+ 950: "#0A0A0A"
64
+ },
65
+ amber: {
66
+ 50: "#FFFBEB",
67
+ 100: "#FEF3C7",
68
+ 200: "#FDE68A",
69
+ 300: "#FCD34D",
70
+ 400: "#FBBF24",
71
+ 500: "#F59E0B",
72
+ 600: "#D97706",
73
+ 700: "#B45309",
74
+ 800: "#92400E",
75
+ 900: "#78350F",
76
+ 950: "#431407"
77
+ },
78
+ yellow: {
79
+ 50: "#FEFCE8",
80
+ 100: "#FEF9C3",
81
+ 200: "#FEF08A",
82
+ 300: "#FDE047",
83
+ 400: "#FACC15",
84
+ 500: "#EAB308",
85
+ 600: "#CA8A04",
86
+ 700: "#A16207",
87
+ 800: "#854D0E",
88
+ 900: "#713F12",
89
+ 950: "#422006"
90
+ },
91
+ green: {
92
+ 50: "#F0FDF4",
93
+ 100: "#DCFCE7",
94
+ 200: "#BBF7D0",
95
+ 300: "#86EFAC",
96
+ 400: "#4ADE80",
97
+ 500: "#22C55E",
98
+ 600: "#16A34A",
99
+ 700: "#15803D",
100
+ 800: "#166534",
101
+ 900: "#14532D",
102
+ 950: "#052E16"
103
+ },
104
+ red: {
105
+ 50: "#FEF2F2",
106
+ 100: "#FEE2E2",
107
+ 200: "#FECACA",
108
+ 300: "#FCA5A5",
109
+ 400: "#F87171",
110
+ 500: "#EF4444",
111
+ 600: "#DC2626",
112
+ 700: "#B91C1C",
113
+ 800: "#991B1B",
114
+ 900: "#7F1D1D",
115
+ 950: "#450A0A"
116
+ },
117
+ rose: {
118
+ 50: "#FFF1F2",
119
+ 100: "#FFE4E6",
120
+ 200: "#FECDD3",
121
+ 300: "#FDA4AF",
122
+ 400: "#FB7185",
123
+ 500: "#F43F5E",
124
+ 600: "#E11D48",
125
+ 700: "#BE123C",
126
+ 800: "#9F1239",
127
+ 900: "#881337",
128
+ 950: "#4C0519"
129
+ },
130
+ fuchsia: {
131
+ 50: "#FDF4FF",
132
+ 100: "#FAE8FF",
133
+ 200: "#F5D0FE",
134
+ 300: "#F0ABFC",
135
+ 400: "#E879F9",
136
+ 500: "#D946EF",
137
+ 600: "#C026D3",
138
+ 700: "#A21CAF",
139
+ 800: "#86198F",
140
+ 900: "#701A75",
141
+ 950: "#4A044E"
142
+ },
143
+ brand: {
144
+ 50: "#FFDED5",
145
+ 100: "#FFC1B0",
146
+ 200: "#FFA58C",
147
+ 300: "#FF8967",
148
+ 400: "#FF6E42",
149
+ 500: "#FD541E",
150
+ 600: "#F04104",
151
+ 700: "#C93A06",
152
+ 800: "#A23206",
153
+ 900: "#7C2906",
154
+ 950: "#571E05"
155
+ }
156
+ };
157
+ const semanticColors = {
158
+ envBase: colors.amber[500],
159
+ envCurrent: colors.iochmara[500]
160
+ };
161
+ /**
162
+ * Helper to generate button color variants for a given color
163
+ * Creates contained, outlined, and text variant styles
164
+ */
165
+ function createButtonColorVariants(colorName, colorScale) {
166
+ return [
167
+ {
168
+ props: {
169
+ color: colorName,
170
+ variant: "contained"
171
+ },
172
+ style: {
173
+ backgroundColor: colorScale[500],
174
+ color: white,
175
+ "&:hover": { backgroundColor: colorScale[600] }
176
+ }
177
+ },
178
+ {
179
+ props: {
180
+ color: colorName,
181
+ variant: "outlined"
182
+ },
183
+ style: {
184
+ borderColor: colorScale[500],
185
+ color: colorScale[600],
186
+ "&:hover": {
187
+ borderColor: colorScale[600],
188
+ backgroundColor: `${colorScale[50]}80`
189
+ }
190
+ }
191
+ },
192
+ {
193
+ props: {
194
+ color: colorName,
195
+ variant: "text"
196
+ },
197
+ style: {
198
+ color: colorScale[600],
199
+ "&:hover": { backgroundColor: `${colorScale[50]}80` }
200
+ }
201
+ }
202
+ ];
203
+ }
204
+ /**
205
+ * Helper to generate CircularProgress color variants
206
+ */
207
+ function createProgressColorVariant(colorName, colorScale) {
208
+ return {
209
+ props: { color: colorName },
210
+ style: { color: colorScale[500] }
211
+ };
212
+ }
213
+ /**
214
+ * Helper to generate Badge color variants
215
+ */
216
+ function createBadgeColorVariant(colorName, colorScale) {
217
+ return {
218
+ props: { color: colorName },
219
+ style: { "& .MuiBadge-badge": {
220
+ backgroundColor: colorScale[500],
221
+ color: white
222
+ } }
223
+ };
224
+ }
225
+ /**
226
+ * Helper to generate Chip color variants
227
+ */
228
+ function createChipColorVariants(colorName, colorScale) {
229
+ return [{
230
+ props: {
231
+ color: colorName,
232
+ variant: "filled"
233
+ },
234
+ style: {
235
+ backgroundColor: colorScale[500],
236
+ color: white,
237
+ "&:hover": { backgroundColor: colorScale[600] }
238
+ }
239
+ }, {
240
+ props: {
241
+ color: colorName,
242
+ variant: "outlined"
243
+ },
244
+ style: {
245
+ borderColor: colorScale[500],
246
+ color: colorScale[600]
247
+ }
248
+ }];
249
+ }
250
+ const buttonColorVariants = [
251
+ ...createButtonColorVariants("iochmara", colors.iochmara),
252
+ ...createButtonColorVariants("cyan", colors.cyan),
253
+ ...createButtonColorVariants("amber", colors.amber),
254
+ ...createButtonColorVariants("green", colors.green),
255
+ ...createButtonColorVariants("red", colors.red),
256
+ ...createButtonColorVariants("rose", colors.rose),
257
+ ...createButtonColorVariants("fuchsia", colors.fuchsia),
258
+ ...createButtonColorVariants("brand", colors.brand)
259
+ ];
260
+ const progressColorVariants = [
261
+ createProgressColorVariant("iochmara", colors.iochmara),
262
+ createProgressColorVariant("cyan", colors.cyan),
263
+ createProgressColorVariant("amber", colors.amber),
264
+ createProgressColorVariant("green", colors.green),
265
+ createProgressColorVariant("red", colors.red),
266
+ createProgressColorVariant("rose", colors.rose),
267
+ createProgressColorVariant("fuchsia", colors.fuchsia),
268
+ createProgressColorVariant("brand", colors.brand),
269
+ createProgressColorVariant("neutral", colors.neutral)
270
+ ];
271
+ const badgeColorVariants = [
272
+ createBadgeColorVariant("iochmara", colors.iochmara),
273
+ createBadgeColorVariant("cyan", colors.cyan),
274
+ createBadgeColorVariant("amber", colors.amber),
275
+ createBadgeColorVariant("green", colors.green),
276
+ createBadgeColorVariant("red", colors.red),
277
+ createBadgeColorVariant("rose", colors.rose),
278
+ createBadgeColorVariant("fuchsia", colors.fuchsia),
279
+ createBadgeColorVariant("brand", colors.brand),
280
+ createBadgeColorVariant("neutral", colors.neutral)
281
+ ];
282
+ const chipColorVariants = [
283
+ ...createChipColorVariants("iochmara", colors.iochmara),
284
+ ...createChipColorVariants("cyan", colors.cyan),
285
+ ...createChipColorVariants("amber", colors.amber),
286
+ ...createChipColorVariants("green", colors.green),
287
+ ...createChipColorVariants("red", colors.red),
288
+ ...createChipColorVariants("rose", colors.rose),
289
+ ...createChipColorVariants("fuchsia", colors.fuchsia),
290
+ ...createChipColorVariants("brand", colors.brand),
291
+ ...createChipColorVariants("neutral", colors.neutral)
292
+ ];
293
+ const componentOverrides = {
294
+ MuiButton: {
295
+ defaultProps: { disableElevation: true },
296
+ variants: [{
297
+ props: { size: "xsmall" },
298
+ style: {
299
+ padding: "0 0.5rem",
300
+ fontSize: "0.75rem",
301
+ fontWeight: 500,
302
+ borderRadius: 4,
303
+ minHeight: "unset",
304
+ lineHeight: 1.5
305
+ }
306
+ }, ...buttonColorVariants],
307
+ styleOverrides: {
308
+ root: ({ theme, ownerState }) => ({
309
+ textTransform: "none",
310
+ fontWeight: 500,
311
+ borderRadius: 6,
312
+ ...ownerState.color === "neutral" && ownerState.variant === "contained" && {
313
+ backgroundColor: colors.neutral[700],
314
+ color: white,
315
+ "&:hover": { backgroundColor: colors.neutral[800] }
316
+ },
317
+ ...ownerState.color === "neutral" && ownerState.variant === "outlined" && {
318
+ borderColor: theme.palette.mode === "dark" ? colors.neutral[500] : colors.neutral[300],
319
+ color: theme.palette.mode === "dark" ? colors.neutral[100] : colors.neutral[900],
320
+ "&:hover": {
321
+ borderColor: theme.palette.mode === "dark" ? colors.neutral[400] : colors.neutral[400],
322
+ backgroundColor: theme.palette.mode === "dark" ? colors.neutral[700] : colors.neutral[100]
323
+ }
324
+ },
325
+ ...ownerState.color === "neutral" && ownerState.variant === "text" && {
326
+ color: theme.palette.mode === "dark" ? colors.neutral[200] : colors.neutral[700],
327
+ "&:hover": { backgroundColor: theme.palette.mode === "dark" ? colors.neutral[700] : colors.neutral[100] }
328
+ }
329
+ }),
330
+ sizeSmall: {
331
+ padding: "0.25rem 0.75rem",
332
+ fontSize: "0.875rem"
333
+ },
334
+ sizeMedium: {
335
+ padding: "0.5rem 1rem",
336
+ fontSize: "1rem"
337
+ },
338
+ sizeLarge: {
339
+ padding: "0.75rem 1.5rem",
340
+ fontSize: "1.125rem"
341
+ },
342
+ contained: { "&:hover": { boxShadow: "none" } },
343
+ outlined: {
344
+ borderWidth: "1px",
345
+ "&:hover": { borderWidth: "1px" }
346
+ },
347
+ text: ({ theme }) => ({ "&:hover": { backgroundColor: theme.palette.mode === "dark" ? "rgba(255, 255, 255, 0.08)" : "rgba(0, 0, 0, 0.04)" } })
348
+ }
349
+ },
350
+ MuiIconButton: { styleOverrides: {
351
+ root: { borderRadius: 6 },
352
+ sizeSmall: { padding: 4 },
353
+ sizeMedium: { padding: 8 },
354
+ sizeLarge: { padding: 12 }
355
+ } },
356
+ MuiTextField: {
357
+ defaultProps: {
358
+ variant: "outlined",
359
+ size: "small"
360
+ },
361
+ styleOverrides: { root: { "& .MuiOutlinedInput-root": { borderRadius: 6 } } }
362
+ },
363
+ MuiOutlinedInput: { styleOverrides: {
364
+ root: {
365
+ borderRadius: 6,
366
+ "&:hover .MuiOutlinedInput-notchedOutline": { borderColor: colors.iochmara[400] },
367
+ "&.Mui-focused .MuiOutlinedInput-notchedOutline": {
368
+ borderColor: colors.iochmara[500],
369
+ borderWidth: 2
370
+ }
371
+ },
372
+ notchedOutline: ({ theme }) => ({ borderColor: theme.palette.mode === "dark" ? colors.neutral[600] : colors.neutral[300] })
373
+ } },
374
+ MuiCheckbox: {
375
+ defaultProps: { color: "primary" },
376
+ styleOverrides: { root: { borderRadius: 4 } }
377
+ },
378
+ MuiSwitch: { defaultProps: { color: "primary" } },
379
+ MuiDialog: { styleOverrides: { paper: { borderRadius: 8 } } },
380
+ MuiDialogTitle: { styleOverrides: { root: {
381
+ fontWeight: 600,
382
+ fontSize: "1.125rem"
383
+ } } },
384
+ MuiMenu: { styleOverrides: { paper: ({ theme }) => ({
385
+ borderRadius: 8,
386
+ boxShadow: theme.shadows[3]
387
+ }) } },
388
+ MuiMenuItem: { styleOverrides: { root: ({ theme }) => ({
389
+ fontSize: "0.875rem",
390
+ padding: "0.5rem 0.75rem",
391
+ "&:hover": { backgroundColor: theme.palette.mode === "dark" ? colors.neutral[600] : colors.neutral[100] },
392
+ "&.Mui-selected": {
393
+ backgroundColor: theme.palette.mode === "dark" ? colors.iochmara[900] : colors.iochmara[50],
394
+ "&:hover": { backgroundColor: theme.palette.mode === "dark" ? colors.iochmara[800] : colors.iochmara[100] }
395
+ }
396
+ }) } },
397
+ MuiChip: {
398
+ variants: [{
399
+ props: { size: "xsmall" },
400
+ style: {
401
+ height: 20,
402
+ fontSize: "0.625rem"
403
+ }
404
+ }, ...chipColorVariants],
405
+ styleOverrides: {
406
+ root: {
407
+ borderRadius: 6,
408
+ fontWeight: 500
409
+ },
410
+ sizeSmall: {
411
+ height: 24,
412
+ fontSize: "0.75rem"
413
+ },
414
+ sizeMedium: {
415
+ height: 32,
416
+ fontSize: "0.875rem"
417
+ }
418
+ }
419
+ },
420
+ MuiTooltip: { styleOverrides: {
421
+ tooltip: ({ theme }) => ({
422
+ backgroundColor: theme.palette.mode === "dark" ? colors.neutral[700] : colors.neutral[800],
423
+ fontSize: "0.75rem",
424
+ padding: "0.25rem 0.5rem",
425
+ borderRadius: 4
426
+ }),
427
+ arrow: ({ theme }) => ({ color: theme.palette.mode === "dark" ? colors.neutral[700] : colors.neutral[800] })
428
+ } },
429
+ MuiAlert: { styleOverrides: {
430
+ root: { borderRadius: 6 },
431
+ standardSuccess: ({ theme }) => ({
432
+ backgroundColor: theme.palette.mode === "dark" ? colors.green[900] : colors.green[50],
433
+ color: theme.palette.mode === "dark" ? colors.green[200] : colors.green[800]
434
+ }),
435
+ standardWarning: ({ theme }) => ({
436
+ backgroundColor: theme.palette.mode === "dark" ? colors.amber[900] : colors.amber[50],
437
+ color: theme.palette.mode === "dark" ? colors.amber[200] : colors.amber[800]
438
+ }),
439
+ standardError: ({ theme }) => ({
440
+ backgroundColor: theme.palette.mode === "dark" ? colors.red[900] : colors.red[50],
441
+ color: theme.palette.mode === "dark" ? colors.red[200] : colors.red[800]
442
+ }),
443
+ standardInfo: ({ theme }) => ({
444
+ backgroundColor: theme.palette.mode === "dark" ? colors.iochmara[900] : colors.iochmara[50],
445
+ color: theme.palette.mode === "dark" ? colors.iochmara[200] : colors.iochmara[800]
446
+ })
447
+ } },
448
+ MuiTabs: { styleOverrides: { indicator: { height: 2 } } },
449
+ MuiTab: { styleOverrides: { root: {
450
+ textTransform: "none",
451
+ fontWeight: 500,
452
+ minHeight: 48
453
+ } } },
454
+ MuiAvatar: { styleOverrides: { root: { fontWeight: 500 } } },
455
+ MuiBadge: {
456
+ variants: badgeColorVariants,
457
+ styleOverrides: { badge: {
458
+ fontWeight: 500,
459
+ fontSize: "0.75rem"
460
+ } }
461
+ },
462
+ MuiCircularProgress: {
463
+ defaultProps: { color: "primary" },
464
+ variants: progressColorVariants
465
+ },
466
+ MuiLink: {
467
+ defaultProps: {
468
+ underline: "hover",
469
+ fontWeight: 500
470
+ },
471
+ styleOverrides: { root: {
472
+ color: colors.iochmara[600],
473
+ textDecorationColor: colors.iochmara[300],
474
+ "&:hover": { color: colors.iochmara[700] }
475
+ } }
476
+ },
477
+ MuiPaper: { styleOverrides: { rounded: { borderRadius: 8 } } },
478
+ MuiPopover: { styleOverrides: { paper: ({ theme }) => ({
479
+ borderRadius: 8,
480
+ boxShadow: theme.shadows[3]
481
+ }) } },
482
+ MuiDivider: { styleOverrides: { root: ({ theme }) => ({ borderColor: theme.palette.mode === "dark" ? colors.neutral[700] : colors.neutral[200] }) } },
483
+ MuiBreadcrumbs: { styleOverrides: { separator: ({ theme }) => ({ color: theme.palette.mode === "dark" ? colors.neutral[500] : colors.neutral[400] }) } }
484
+ };
485
+ const baseThemeOptions = {
486
+ palette: {
487
+ primary: {
488
+ main: colors.iochmara[500],
489
+ light: colors.iochmara[300],
490
+ dark: colors.iochmara[600],
491
+ contrastText: white
492
+ },
493
+ secondary: {
494
+ main: colors.cyan[500],
495
+ light: colors.cyan[400],
496
+ dark: colors.cyan[600],
497
+ contrastText: white
498
+ },
499
+ success: {
500
+ main: colors.green[500],
501
+ light: colors.green[400],
502
+ dark: colors.green[600],
503
+ contrastText: white
504
+ },
505
+ warning: {
506
+ main: colors.amber[500],
507
+ light: colors.amber[400],
508
+ dark: colors.amber[600],
509
+ contrastText: white
510
+ },
511
+ error: {
512
+ main: colors.red[500],
513
+ light: colors.red[400],
514
+ dark: colors.red[600],
515
+ contrastText: white
516
+ },
517
+ grey: {
518
+ 50: colors.neutral[50],
519
+ 100: colors.neutral[100],
520
+ 200: colors.neutral[200],
521
+ 300: colors.neutral[300],
522
+ 400: colors.neutral[400],
523
+ 500: colors.neutral[500],
524
+ 600: colors.neutral[600],
525
+ 700: colors.neutral[700],
526
+ 800: colors.neutral[800],
527
+ 900: colors.neutral[900]
528
+ }
529
+ },
530
+ typography: {
531
+ fontFamily: "ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"",
532
+ fontWeightLight: 300,
533
+ fontWeightRegular: 400,
534
+ fontWeightMedium: 500,
535
+ fontWeightBold: 700,
536
+ h1: {
537
+ fontWeight: 700,
538
+ fontSize: "2.25rem",
539
+ lineHeight: 1.2
540
+ },
541
+ h2: {
542
+ fontWeight: 700,
543
+ fontSize: "1.875rem",
544
+ lineHeight: 1.2
545
+ },
546
+ h3: {
547
+ fontWeight: 600,
548
+ fontSize: "1.5rem",
549
+ lineHeight: 1.3
550
+ },
551
+ h4: {
552
+ fontWeight: 600,
553
+ fontSize: "1.25rem",
554
+ lineHeight: 1.4
555
+ },
556
+ h5: {
557
+ fontWeight: 600,
558
+ fontSize: "1.125rem",
559
+ lineHeight: 1.4
560
+ },
561
+ h6: {
562
+ fontWeight: 600,
563
+ fontSize: "1rem",
564
+ lineHeight: 1.5
565
+ },
566
+ body1: {
567
+ fontSize: "0.875rem",
568
+ lineHeight: 1.5
569
+ },
570
+ body2: {
571
+ fontSize: "0.75rem",
572
+ lineHeight: 1.5
573
+ },
574
+ button: {
575
+ textTransform: "none",
576
+ fontWeight: 500
577
+ }
578
+ },
579
+ shape: { borderRadius: 6 },
580
+ spacing: 4,
581
+ components: componentOverrides
582
+ };
583
+ const lightThemeOptions = {
584
+ ...baseThemeOptions,
585
+ palette: {
586
+ ...baseThemeOptions.palette,
587
+ mode: "light",
588
+ background: {
589
+ default: white,
590
+ paper: white
591
+ },
592
+ text: {
593
+ primary: colors.neutral[900],
594
+ secondary: colors.neutral[600]
595
+ }
596
+ }
597
+ };
598
+ const darkThemeOptions = {
599
+ ...baseThemeOptions,
600
+ palette: {
601
+ ...baseThemeOptions.palette,
602
+ mode: "dark",
603
+ background: {
604
+ default: colors.neutral[900],
605
+ paper: colors.neutral[800]
606
+ },
607
+ text: {
608
+ primary: colors.neutral[50],
609
+ secondary: colors.neutral[400]
610
+ }
611
+ }
612
+ };
613
+ const lightTheme = (0, _mui_material_styles.createTheme)(lightThemeOptions);
614
+ const darkTheme = (0, _mui_material_styles.createTheme)(darkThemeOptions);
615
+ const muiTheme = lightTheme;
616
+ function createPaletteColor(colorScale) {
617
+ return {
618
+ main: colorScale[500],
619
+ light: colorScale[300],
620
+ dark: colorScale[600],
621
+ contrastText: white
622
+ };
623
+ }
624
+ const customPaletteAdditions = {
625
+ brand: createPaletteColor(colors.brand),
626
+ iochmara: {
627
+ main: colors.iochmara[500],
628
+ light: colors.iochmara[50],
629
+ dark: colors.iochmara[700],
630
+ contrastText: white
631
+ },
632
+ cyan: createPaletteColor(colors.cyan),
633
+ amber: createPaletteColor(colors.amber),
634
+ green: createPaletteColor(colors.green),
635
+ red: createPaletteColor(colors.red),
636
+ rose: createPaletteColor(colors.rose),
637
+ fuchsia: createPaletteColor(colors.fuchsia),
638
+ neutral: {
639
+ main: colors.neutral[500],
640
+ light: colors.neutral[300],
641
+ dark: colors.neutral[600],
642
+ contrastText: white
643
+ },
644
+ envBase: semanticColors.envBase,
645
+ envCurrent: semanticColors.envCurrent
646
+ };
647
+ Object.assign(lightTheme.palette, customPaletteAdditions);
648
+ Object.assign(darkTheme.palette, customPaletteAdditions);
649
+ /**
650
+ * Semantic variant mappings from Chakra-style tokens to scale values
651
+ * These map semantic names to numeric scale values in the color palette
652
+ */
653
+ const semanticVariantMap = {
654
+ solid: 600,
655
+ subtle: 50,
656
+ muted: 200,
657
+ emphasized: 500,
658
+ focusRing: 400,
659
+ light: 300
660
+ };
661
+ /**
662
+ * Color aliases - map Chakra color names to our color palette
663
+ */
664
+ const colorAliases = {
665
+ orange: "amber",
666
+ gray: "neutral"
667
+ };
668
+ /**
669
+ * Token lookup function to mimic Chakra UI's token API
670
+ * Usage: token("colors.green.solid") => "#16A34A"
671
+ */
672
+ function token(path) {
673
+ const parts = path.split(".");
674
+ if (parts[0] === "colors" && parts.length >= 3) {
675
+ let colorName = parts[1];
676
+ const variant = parts[2];
677
+ if (colorName in colorAliases) colorName = colorAliases[colorName];
678
+ if (colorName === "white") return white;
679
+ if (colorName === "black") return black;
680
+ if (colorName in semanticColors) {
681
+ const semantic = semanticColors[colorName];
682
+ if (typeof semantic === "object" && variant in semantic) return semantic[variant];
683
+ }
684
+ if (colorName in colors) {
685
+ const color = colors[colorName];
686
+ if (typeof color === "object" && variant in color) return color[variant];
687
+ if (variant in semanticVariantMap) {
688
+ const scaleValue = semanticVariantMap[variant];
689
+ if (typeof color === "object" && scaleValue in color) return color[scaleValue];
690
+ }
691
+ }
692
+ }
693
+ }
694
+
695
+ //#endregion
696
+ Object.defineProperty(exports, 'colors', {
697
+ enumerable: true,
698
+ get: function () {
699
+ return colors;
700
+ }
701
+ });
702
+ Object.defineProperty(exports, 'darkTheme', {
703
+ enumerable: true,
704
+ get: function () {
705
+ return darkTheme;
706
+ }
707
+ });
708
+ Object.defineProperty(exports, 'lightTheme', {
709
+ enumerable: true,
710
+ get: function () {
711
+ return lightTheme;
712
+ }
713
+ });
714
+ Object.defineProperty(exports, 'muiTheme', {
715
+ enumerable: true,
716
+ get: function () {
717
+ return muiTheme;
718
+ }
719
+ });
720
+ Object.defineProperty(exports, 'semanticColors', {
721
+ enumerable: true,
722
+ get: function () {
723
+ return semanticColors;
724
+ }
725
+ });
726
+ Object.defineProperty(exports, 'token', {
727
+ enumerable: true,
728
+ get: function () {
729
+ return token;
730
+ }
731
+ });
732
+ //# sourceMappingURL=mui-theme-B2wm_cvZ.js.map