@matteoaliano/forest-ui 0.2.1 → 0.2.2
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/bin/sync.mjs +83 -42
- package/dist/{chunk-5C6DAZT2.mjs → chunk-C3OBHPIS.mjs} +572 -150
- package/dist/chunk-C3OBHPIS.mjs.map +1 -0
- package/dist/index-BHSAMOHR.d.mts +525 -0
- package/dist/index-BHSAMOHR.d.ts +525 -0
- package/dist/index.d.mts +10 -5
- package/dist/index.d.ts +10 -5
- package/dist/index.js +599 -149
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -6
- package/dist/index.mjs.map +1 -1
- package/dist/theme.d.mts +2 -1
- package/dist/theme.d.ts +2 -1
- package/dist/theme.js +582 -147
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +1 -1
- package/{FOREST_AI_GUIDELINES.md → guidelines/FOREST_AI_GUIDELINES.md} +60 -8
- package/guidelines/FOREST_DEV_GUIDELINES.md +14 -0
- package/guidelines/themes/FOREST_THEME_DEFAULT.md +14 -0
- package/package.json +4 -2
- package/dist/chunk-5C6DAZT2.mjs.map +0 -1
- package/dist/index-BFpF-T3z.d.mts +0 -273
- package/dist/index-BFpF-T3z.d.ts +0 -273
package/dist/index.js
CHANGED
|
@@ -19,6 +19,7 @@ var MuiToggleButton = require('@mui/material/ToggleButton');
|
|
|
19
19
|
var MuiToggleButtonGroup = require('@mui/material/ToggleButtonGroup');
|
|
20
20
|
var MuiBadge = require('@mui/material/Badge');
|
|
21
21
|
var MuiChip = require('@mui/material/Chip');
|
|
22
|
+
var utils = require('@mui/material/utils');
|
|
22
23
|
var MuiDivider = require('@mui/material/Divider');
|
|
23
24
|
var MuiList = require('@mui/material/List');
|
|
24
25
|
var MuiListItem = require('@mui/material/ListItem');
|
|
@@ -33,6 +34,7 @@ var MuiTableCell = require('@mui/material/TableCell');
|
|
|
33
34
|
var MuiTableContainer = require('@mui/material/TableContainer');
|
|
34
35
|
var MuiTableHead = require('@mui/material/TableHead');
|
|
35
36
|
var MuiTableRow = require('@mui/material/TableRow');
|
|
37
|
+
var xDataGrid = require('@mui/x-data-grid');
|
|
36
38
|
var MuiTooltip = require('@mui/material/Tooltip');
|
|
37
39
|
var MuiTypography = require('@mui/material/Typography');
|
|
38
40
|
var MuiAlert = require('@mui/material/Alert');
|
|
@@ -289,10 +291,249 @@ var widths = {
|
|
|
289
291
|
"5xl": 1600,
|
|
290
292
|
"6xl": 1920
|
|
291
293
|
};
|
|
294
|
+
var text = {
|
|
295
|
+
primary: colors.gray[900],
|
|
296
|
+
secondary: colors.gray[700],
|
|
297
|
+
secondaryHover: colors.gray[800],
|
|
298
|
+
tertiary: colors.gray[600],
|
|
299
|
+
tertiaryHover: colors.gray[700],
|
|
300
|
+
quaternary: colors.gray[500],
|
|
301
|
+
disabled: colors.gray[500],
|
|
302
|
+
placeholder: colors.gray[500],
|
|
303
|
+
placeholderSubtle: colors.gray[300],
|
|
304
|
+
white: colors.base.white,
|
|
305
|
+
brandPrimary: colors.brand[900],
|
|
306
|
+
brandSecondary: colors.brand[700],
|
|
307
|
+
brandTertiary: colors.brand[600],
|
|
308
|
+
brandTertiaryAlt: colors.brand[600],
|
|
309
|
+
primaryOnBrand: colors.base.white,
|
|
310
|
+
secondaryOnBrand: colors.brand[200],
|
|
311
|
+
tertiaryOnBrand: colors.brand[200],
|
|
312
|
+
quaternaryOnBrand: colors.brand[300],
|
|
313
|
+
errorPrimary: colors.error[600],
|
|
314
|
+
warningPrimary: colors.warning[600],
|
|
315
|
+
successPrimary: colors.success[600]
|
|
316
|
+
};
|
|
317
|
+
var bg = {
|
|
318
|
+
primary: colors.base.white,
|
|
319
|
+
primaryAlt: colors.base.white,
|
|
320
|
+
primaryHover: colors.gray[50],
|
|
321
|
+
primarySolid: colors.gray[950],
|
|
322
|
+
secondary: colors.gray[50],
|
|
323
|
+
secondaryAlt: colors.gray[50],
|
|
324
|
+
secondarySubtle: colors.gray[25],
|
|
325
|
+
secondaryHover: colors.gray[100],
|
|
326
|
+
secondarySolid: colors.gray[600],
|
|
327
|
+
tertiary: colors.gray[100],
|
|
328
|
+
quaternary: colors.gray[200],
|
|
329
|
+
active: colors.gray[50],
|
|
330
|
+
disabled: colors.gray[100],
|
|
331
|
+
disabledSubtle: colors.gray[50],
|
|
332
|
+
overlay: colors.gray[950],
|
|
333
|
+
brandPrimary: colors.brand[50],
|
|
334
|
+
brandPrimaryAlt: colors.brand[50],
|
|
335
|
+
brandSecondary: colors.brand[100],
|
|
336
|
+
brandSolid: colors.brand[600],
|
|
337
|
+
brandSolidHover: colors.brand[700],
|
|
338
|
+
brandSection: colors.brand[800],
|
|
339
|
+
brandSectionSubtle: colors.brand[700],
|
|
340
|
+
errorPrimary: colors.error[50],
|
|
341
|
+
errorSecondary: colors.error[100],
|
|
342
|
+
errorSolid: colors.error[600],
|
|
343
|
+
warningPrimary: colors.warning[50],
|
|
344
|
+
warningSecondary: colors.warning[100],
|
|
345
|
+
warningSolid: colors.warning[600],
|
|
346
|
+
successPrimary: colors.success[50],
|
|
347
|
+
successSecondary: colors.success[100],
|
|
348
|
+
successSolid: colors.success[600]
|
|
349
|
+
};
|
|
350
|
+
var fg = {
|
|
351
|
+
primary: colors.gray[900],
|
|
352
|
+
secondary: colors.gray[700],
|
|
353
|
+
secondaryHover: colors.gray[800],
|
|
354
|
+
tertiary: colors.gray[600],
|
|
355
|
+
tertiaryHover: colors.gray[700],
|
|
356
|
+
quaternary: colors.gray[500],
|
|
357
|
+
quaternaryHover: colors.gray[600],
|
|
358
|
+
quinary: colors.gray[400],
|
|
359
|
+
quinaryHover: colors.gray[500],
|
|
360
|
+
senary: colors.gray[300],
|
|
361
|
+
white: colors.base.white,
|
|
362
|
+
disabled: colors.gray[400],
|
|
363
|
+
disabledSubtle: colors.gray[300],
|
|
364
|
+
brandPrimary: colors.brand[600],
|
|
365
|
+
brandPrimaryAlt: colors.brand[600],
|
|
366
|
+
brandSecondary: colors.brand[500],
|
|
367
|
+
errorPrimary: colors.error[600],
|
|
368
|
+
errorSecondary: colors.error[500],
|
|
369
|
+
warningPrimary: colors.warning[600],
|
|
370
|
+
warningSecondary: colors.warning[500],
|
|
371
|
+
successPrimary: colors.success[600],
|
|
372
|
+
successSecondary: colors.success[500]
|
|
373
|
+
};
|
|
374
|
+
var border = {
|
|
375
|
+
primary: colors.gray[300],
|
|
376
|
+
secondary: colors.gray[200],
|
|
377
|
+
tertiary: colors.gray[100],
|
|
378
|
+
disabled: colors.gray[300],
|
|
379
|
+
disabledSubtle: colors.gray[200],
|
|
380
|
+
brand: colors.brand[300],
|
|
381
|
+
brandSolid: colors.brand[600],
|
|
382
|
+
brandSolidAlt: colors.brand[600],
|
|
383
|
+
error: colors.error[300],
|
|
384
|
+
errorSolid: colors.error[600]
|
|
385
|
+
};
|
|
386
|
+
var buttonColors = {
|
|
387
|
+
primary: {
|
|
388
|
+
bg: colors.brand[600],
|
|
389
|
+
bgHover: colors.brand[700],
|
|
390
|
+
fg: colors.base.white,
|
|
391
|
+
fgHover: colors.base.white,
|
|
392
|
+
border: colors.brand[600],
|
|
393
|
+
borderHover: colors.brand[700]
|
|
394
|
+
},
|
|
395
|
+
secondary: {
|
|
396
|
+
bg: colors.base.white,
|
|
397
|
+
bgHover: colors.gray[50],
|
|
398
|
+
fg: colors.gray[700],
|
|
399
|
+
fgHover: colors.gray[800],
|
|
400
|
+
border: colors.gray[300],
|
|
401
|
+
borderHover: colors.gray[300]
|
|
402
|
+
},
|
|
403
|
+
secondaryColor: {
|
|
404
|
+
bg: colors.base.white,
|
|
405
|
+
bgHover: colors.brand[50],
|
|
406
|
+
fg: colors.brand[700],
|
|
407
|
+
fgHover: colors.brand[800],
|
|
408
|
+
border: colors.brand[300],
|
|
409
|
+
borderHover: colors.brand[300]
|
|
410
|
+
},
|
|
411
|
+
tertiary: {
|
|
412
|
+
fg: colors.gray[600],
|
|
413
|
+
fgHover: colors.gray[700],
|
|
414
|
+
bgHover: colors.gray[50]
|
|
415
|
+
},
|
|
416
|
+
tertiaryColor: {
|
|
417
|
+
fg: colors.brand[700],
|
|
418
|
+
fgHover: colors.brand[800],
|
|
419
|
+
bgHover: colors.brand[50]
|
|
420
|
+
},
|
|
421
|
+
primaryError: {
|
|
422
|
+
bg: colors.error[600],
|
|
423
|
+
bgHover: colors.error[700],
|
|
424
|
+
fg: colors.base.white,
|
|
425
|
+
fgHover: colors.base.white,
|
|
426
|
+
border: colors.error[600],
|
|
427
|
+
borderHover: colors.error[700]
|
|
428
|
+
},
|
|
429
|
+
secondaryError: {
|
|
430
|
+
bg: colors.base.white,
|
|
431
|
+
bgHover: colors.error[50],
|
|
432
|
+
fg: colors.error[700],
|
|
433
|
+
fgHover: colors.error[800],
|
|
434
|
+
border: colors.error[300],
|
|
435
|
+
borderHover: colors.error[300]
|
|
436
|
+
},
|
|
437
|
+
tertiaryError: {
|
|
438
|
+
fg: colors.error[700],
|
|
439
|
+
fgHover: colors.error[800],
|
|
440
|
+
bgHover: colors.error[50]
|
|
441
|
+
}
|
|
442
|
+
};
|
|
443
|
+
var avatarColors = {
|
|
444
|
+
bg: colors.gray[100],
|
|
445
|
+
contrastBorder: "#00000014",
|
|
446
|
+
profilePhotoBorder: colors.base.white,
|
|
447
|
+
focusBorder: "#98a2b324"
|
|
448
|
+
};
|
|
449
|
+
var breadcrumbColors = {
|
|
450
|
+
fg: colors.gray[600],
|
|
451
|
+
fgHover: colors.gray[700],
|
|
452
|
+
bgHover: colors.gray[50],
|
|
453
|
+
brandBgHover: colors.brand[50],
|
|
454
|
+
brandFgHover: colors.brand[700],
|
|
455
|
+
iconFg: colors.gray[500],
|
|
456
|
+
iconFgHover: colors.gray[700],
|
|
457
|
+
brandIconFgHover: colors.brand[700]
|
|
458
|
+
};
|
|
459
|
+
var iconColors = {
|
|
460
|
+
fgBrand: colors.brand[600],
|
|
461
|
+
fgBrandOnBrand: colors.brand[200],
|
|
462
|
+
featuredModernBorder: colors.gray[200],
|
|
463
|
+
featuredLightFgBrand: colors.brand[600],
|
|
464
|
+
featuredLightFgGray: colors.gray[500],
|
|
465
|
+
featuredLightFgError: colors.error[600],
|
|
466
|
+
featuredLightFgWarning: colors.warning[600],
|
|
467
|
+
featuredLightFgSuccess: colors.success[600],
|
|
468
|
+
featuredDarkFgBrand: colors.base.white,
|
|
469
|
+
featuredDarkFgGray: colors.base.white,
|
|
470
|
+
featuredDarkFgError: colors.base.white,
|
|
471
|
+
featuredDarkFgWarning: colors.base.white,
|
|
472
|
+
featuredDarkFgSuccess: colors.base.white
|
|
473
|
+
};
|
|
474
|
+
var navColors = {
|
|
475
|
+
itemIconFg: colors.gray[500],
|
|
476
|
+
itemIconFgActive: colors.gray[500],
|
|
477
|
+
itemButtonIconFg: colors.gray[500],
|
|
478
|
+
itemButtonIconFgActive: colors.gray[700]
|
|
479
|
+
};
|
|
480
|
+
var sliderColors = {
|
|
481
|
+
handleBorder: colors.brand[600],
|
|
482
|
+
handleBg: colors.base.white
|
|
483
|
+
};
|
|
484
|
+
var toggleColors = {
|
|
485
|
+
buttonFgDisabled: colors.gray[50]
|
|
486
|
+
};
|
|
487
|
+
var chartColors = {
|
|
488
|
+
axisFg: colors.gray[200],
|
|
489
|
+
gridlineFg: colors.gray[100],
|
|
490
|
+
labelFg: colors.gray[600],
|
|
491
|
+
labelFgEmphasis: colors.gray[700],
|
|
492
|
+
bg: colors.base.white,
|
|
493
|
+
bgAlt: colors.gray[50],
|
|
494
|
+
tooltipBg: colors.gray[950],
|
|
495
|
+
tooltipFg: colors.base.white,
|
|
496
|
+
crosshairFg: colors.gray[500],
|
|
497
|
+
legendFg: colors.gray[700],
|
|
498
|
+
series1Fg: colors.blue[600],
|
|
499
|
+
series1FgHover: colors.blue[700],
|
|
500
|
+
series1Bg: colors.blue[100],
|
|
501
|
+
series1BgHover: colors.blue[200],
|
|
502
|
+
series2Fg: colors.brand[600],
|
|
503
|
+
series2FgHover: colors.brand[700],
|
|
504
|
+
series2Bg: colors.brand[100],
|
|
505
|
+
series2BgHover: colors.brand[200]
|
|
506
|
+
};
|
|
507
|
+
var alpha = {
|
|
508
|
+
white: {
|
|
509
|
+
10: "#ffffff1a",
|
|
510
|
+
20: "#ffffff33",
|
|
511
|
+
30: "#ffffff4d",
|
|
512
|
+
40: "#ffffff66",
|
|
513
|
+
50: "#ffffff80",
|
|
514
|
+
60: "#ffffff99",
|
|
515
|
+
70: "#ffffffb3",
|
|
516
|
+
80: "#ffffffcc",
|
|
517
|
+
90: "#ffffffe6",
|
|
518
|
+
100: "#ffffff"
|
|
519
|
+
},
|
|
520
|
+
black: {
|
|
521
|
+
10: "#0000001a",
|
|
522
|
+
20: "#00000033",
|
|
523
|
+
30: "#0000004d",
|
|
524
|
+
40: "#00000066",
|
|
525
|
+
50: "#00000080",
|
|
526
|
+
60: "#00000099",
|
|
527
|
+
70: "#000000b3",
|
|
528
|
+
80: "#000000cc",
|
|
529
|
+
90: "#000000e6",
|
|
530
|
+
100: "#000000"
|
|
531
|
+
}
|
|
532
|
+
};
|
|
292
533
|
|
|
293
534
|
// src/theme/palette.ts
|
|
294
535
|
function buildPalette(tokens) {
|
|
295
|
-
const { colors: colors2 } = tokens;
|
|
536
|
+
const { colors: colors2, text: text2, bg: bg2, fg: fg2, border: border2 } = tokens;
|
|
296
537
|
return {
|
|
297
538
|
primary: {
|
|
298
539
|
main: colors2.brand[600],
|
|
@@ -331,26 +572,30 @@ function buildPalette(tokens) {
|
|
|
331
572
|
contrastText: colors2.base.white
|
|
332
573
|
},
|
|
333
574
|
background: {
|
|
334
|
-
default:
|
|
335
|
-
paper:
|
|
575
|
+
default: bg2.primary,
|
|
576
|
+
paper: bg2.primary
|
|
336
577
|
},
|
|
337
578
|
text: {
|
|
338
|
-
primary:
|
|
339
|
-
secondary:
|
|
340
|
-
disabled:
|
|
579
|
+
primary: text2.primary,
|
|
580
|
+
secondary: text2.secondary,
|
|
581
|
+
disabled: text2.disabled
|
|
341
582
|
},
|
|
342
|
-
divider:
|
|
583
|
+
divider: border2.secondary,
|
|
343
584
|
action: {
|
|
344
|
-
active:
|
|
345
|
-
hover:
|
|
346
|
-
selected:
|
|
347
|
-
disabled:
|
|
348
|
-
disabledBackground:
|
|
585
|
+
active: fg2.tertiary,
|
|
586
|
+
hover: bg2.primaryHover,
|
|
587
|
+
selected: bg2.brandPrimary,
|
|
588
|
+
disabled: fg2.disabled,
|
|
589
|
+
disabledBackground: bg2.disabled
|
|
349
590
|
}
|
|
350
591
|
};
|
|
351
592
|
}
|
|
352
593
|
var palette = buildPalette({
|
|
353
|
-
colors
|
|
594
|
+
colors,
|
|
595
|
+
text,
|
|
596
|
+
bg,
|
|
597
|
+
fg,
|
|
598
|
+
border
|
|
354
599
|
});
|
|
355
600
|
|
|
356
601
|
// src/theme/typography.ts
|
|
@@ -445,7 +690,17 @@ var typography = buildTypography({
|
|
|
445
690
|
|
|
446
691
|
// src/theme/components.ts
|
|
447
692
|
function buildComponents(tokens) {
|
|
448
|
-
const {
|
|
693
|
+
const {
|
|
694
|
+
colors: colors2,
|
|
695
|
+
radius: radius2,
|
|
696
|
+
focusRings: focusRings2,
|
|
697
|
+
shadows: tokenShadows,
|
|
698
|
+
text: text2,
|
|
699
|
+
bg: bg2,
|
|
700
|
+
fg: fg2,
|
|
701
|
+
border: border2,
|
|
702
|
+
buttonColors: buttonColors2
|
|
703
|
+
} = tokens;
|
|
449
704
|
return {
|
|
450
705
|
// ─── Button ─────────────────────────────────────────────────────
|
|
451
706
|
MuiButton: {
|
|
@@ -456,43 +711,42 @@ function buildComponents(tokens) {
|
|
|
456
711
|
root: {
|
|
457
712
|
borderRadius: radius2.md,
|
|
458
713
|
fontWeight: 600,
|
|
714
|
+
boxShadow: tokenShadows.xs,
|
|
715
|
+
height: 32,
|
|
716
|
+
padding: "6px 12px",
|
|
717
|
+
fontSize: 14,
|
|
718
|
+
lineHeight: "20px",
|
|
459
719
|
"&:focus-visible": {
|
|
460
720
|
boxShadow: focusRings2.brandShadowXs
|
|
461
721
|
}
|
|
462
722
|
},
|
|
463
|
-
sizeLarge: {
|
|
464
|
-
padding: "12px 20px",
|
|
465
|
-
fontSize: 16,
|
|
466
|
-
lineHeight: "24px"
|
|
467
|
-
},
|
|
468
|
-
sizeMedium: {
|
|
469
|
-
padding: "10px 16px",
|
|
470
|
-
fontSize: 14,
|
|
471
|
-
lineHeight: "20px"
|
|
472
|
-
},
|
|
473
|
-
sizeSmall: {
|
|
474
|
-
padding: "8px 14px",
|
|
475
|
-
fontSize: 14,
|
|
476
|
-
lineHeight: "20px"
|
|
477
|
-
},
|
|
478
723
|
containedPrimary: {
|
|
479
|
-
backgroundColor:
|
|
724
|
+
backgroundColor: buttonColors2.primary.bg,
|
|
480
725
|
"&:hover": {
|
|
481
|
-
backgroundColor:
|
|
726
|
+
backgroundColor: buttonColors2.primary.bgHover
|
|
482
727
|
}
|
|
483
728
|
},
|
|
484
729
|
outlinedPrimary: {
|
|
485
|
-
borderColor:
|
|
486
|
-
color:
|
|
730
|
+
borderColor: buttonColors2.secondaryColor.border,
|
|
731
|
+
color: buttonColors2.secondaryColor.fg,
|
|
487
732
|
"&:hover": {
|
|
488
|
-
backgroundColor:
|
|
489
|
-
borderColor:
|
|
733
|
+
backgroundColor: buttonColors2.secondaryColor.bgHover,
|
|
734
|
+
borderColor: buttonColors2.secondaryColor.borderHover
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
outlinedSecondary: {
|
|
738
|
+
borderColor: buttonColors2.secondary.border,
|
|
739
|
+
"&:hover": {
|
|
740
|
+
borderColor: buttonColors2.secondary.borderHover
|
|
490
741
|
}
|
|
491
742
|
},
|
|
743
|
+
text: {
|
|
744
|
+
boxShadow: "none"
|
|
745
|
+
},
|
|
492
746
|
textPrimary: {
|
|
493
|
-
color:
|
|
747
|
+
color: buttonColors2.tertiaryColor.fg,
|
|
494
748
|
"&:hover": {
|
|
495
|
-
backgroundColor:
|
|
749
|
+
backgroundColor: buttonColors2.tertiaryColor.bgHover
|
|
496
750
|
}
|
|
497
751
|
}
|
|
498
752
|
}
|
|
@@ -508,7 +762,7 @@ function buildComponents(tokens) {
|
|
|
508
762
|
},
|
|
509
763
|
grouped: {
|
|
510
764
|
"&:not(:last-of-type)": {
|
|
511
|
-
borderRight: `1px solid ${
|
|
765
|
+
borderRight: `1px solid ${buttonColors2.primary.borderHover}`
|
|
512
766
|
}
|
|
513
767
|
}
|
|
514
768
|
}
|
|
@@ -526,9 +780,9 @@ function buildComponents(tokens) {
|
|
|
526
780
|
}
|
|
527
781
|
},
|
|
528
782
|
primary: {
|
|
529
|
-
backgroundColor:
|
|
783
|
+
backgroundColor: buttonColors2.primary.bg,
|
|
530
784
|
"&:hover": {
|
|
531
|
-
backgroundColor:
|
|
785
|
+
backgroundColor: buttonColors2.primary.bgHover
|
|
532
786
|
}
|
|
533
787
|
}
|
|
534
788
|
}
|
|
@@ -540,37 +794,46 @@ function buildComponents(tokens) {
|
|
|
540
794
|
size: "small"
|
|
541
795
|
}
|
|
542
796
|
},
|
|
797
|
+
MuiInputBase: {
|
|
798
|
+
styleOverrides: {
|
|
799
|
+
input: {
|
|
800
|
+
"&::placeholder": {
|
|
801
|
+
color: text2.placeholder,
|
|
802
|
+
WebkitTextFillColor: text2.placeholder,
|
|
803
|
+
fontWeight: 400,
|
|
804
|
+
opacity: 1
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
},
|
|
543
809
|
MuiOutlinedInput: {
|
|
544
810
|
styleOverrides: {
|
|
545
811
|
root: {
|
|
546
812
|
borderRadius: radius2.md,
|
|
813
|
+
boxShadow: tokenShadows.xs,
|
|
547
814
|
"&:hover .MuiOutlinedInput-notchedOutline": {
|
|
548
|
-
borderColor:
|
|
815
|
+
borderColor: border2.brand
|
|
549
816
|
},
|
|
550
817
|
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
|
551
|
-
borderColor:
|
|
818
|
+
borderColor: border2.brandSolid,
|
|
552
819
|
borderWidth: 1,
|
|
553
820
|
boxShadow: "none"
|
|
554
821
|
},
|
|
555
822
|
"&.Mui-error .MuiOutlinedInput-notchedOutline": {
|
|
556
|
-
borderColor:
|
|
823
|
+
borderColor: border2.error
|
|
557
824
|
},
|
|
558
825
|
"&.Mui-error.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
|
559
|
-
borderColor:
|
|
826
|
+
borderColor: border2.errorSolid,
|
|
560
827
|
boxShadow: "none"
|
|
561
828
|
}
|
|
562
829
|
},
|
|
563
830
|
notchedOutline: {
|
|
564
|
-
borderColor:
|
|
831
|
+
borderColor: border2.primary
|
|
565
832
|
},
|
|
566
833
|
input: {
|
|
567
834
|
padding: "10px 14px",
|
|
568
835
|
fontSize: 16,
|
|
569
|
-
lineHeight: "24px"
|
|
570
|
-
"&::placeholder": {
|
|
571
|
-
color: colors2.gray[500],
|
|
572
|
-
opacity: 1
|
|
573
|
-
}
|
|
836
|
+
lineHeight: "24px"
|
|
574
837
|
},
|
|
575
838
|
inputSizeSmall: {
|
|
576
839
|
padding: "8px 12px",
|
|
@@ -579,17 +842,30 @@ function buildComponents(tokens) {
|
|
|
579
842
|
}
|
|
580
843
|
}
|
|
581
844
|
},
|
|
845
|
+
MuiFormLabel: {
|
|
846
|
+
styleOverrides: {
|
|
847
|
+
root: {
|
|
848
|
+
color: text2.placeholder,
|
|
849
|
+
"&.Mui-focused": {
|
|
850
|
+
color: text2.placeholder
|
|
851
|
+
},
|
|
852
|
+
"&.Mui-error": {
|
|
853
|
+
color: text2.errorPrimary
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
},
|
|
582
858
|
MuiInputLabel: {
|
|
583
859
|
styleOverrides: {
|
|
584
860
|
root: {
|
|
585
861
|
fontSize: 14,
|
|
586
862
|
fontWeight: 500,
|
|
587
|
-
color:
|
|
863
|
+
color: text2.placeholder,
|
|
588
864
|
"&.Mui-focused": {
|
|
589
|
-
color:
|
|
865
|
+
color: text2.placeholder
|
|
590
866
|
},
|
|
591
867
|
"&.Mui-error": {
|
|
592
|
-
color:
|
|
868
|
+
color: text2.errorPrimary
|
|
593
869
|
}
|
|
594
870
|
}
|
|
595
871
|
}
|
|
@@ -602,7 +878,7 @@ function buildComponents(tokens) {
|
|
|
602
878
|
marginTop: 6,
|
|
603
879
|
marginLeft: 0,
|
|
604
880
|
"&.Mui-error": {
|
|
605
|
-
color:
|
|
881
|
+
color: text2.errorPrimary
|
|
606
882
|
}
|
|
607
883
|
}
|
|
608
884
|
}
|
|
@@ -613,8 +889,15 @@ function buildComponents(tokens) {
|
|
|
613
889
|
size: "small"
|
|
614
890
|
},
|
|
615
891
|
styleOverrides: {
|
|
892
|
+
select: {
|
|
893
|
+
"&.MuiSelect-select": {
|
|
894
|
+
"&[aria-placeholder], &:empty + .MuiSelect-nativeInput[value='']~&": {
|
|
895
|
+
color: text2.placeholder
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
},
|
|
616
899
|
icon: {
|
|
617
|
-
color:
|
|
900
|
+
color: text2.placeholder
|
|
618
901
|
}
|
|
619
902
|
}
|
|
620
903
|
},
|
|
@@ -624,7 +907,7 @@ function buildComponents(tokens) {
|
|
|
624
907
|
paper: {
|
|
625
908
|
borderRadius: radius2.md,
|
|
626
909
|
boxShadow: tokenShadows.lg,
|
|
627
|
-
border: `1px solid ${
|
|
910
|
+
border: `1px solid ${border2.secondary}`,
|
|
628
911
|
marginTop: 4
|
|
629
912
|
},
|
|
630
913
|
option: {
|
|
@@ -632,10 +915,10 @@ function buildComponents(tokens) {
|
|
|
632
915
|
lineHeight: "24px",
|
|
633
916
|
padding: "10px 14px",
|
|
634
917
|
"&.Mui-focused": {
|
|
635
|
-
backgroundColor:
|
|
918
|
+
backgroundColor: bg2.primaryHover
|
|
636
919
|
},
|
|
637
920
|
'&[aria-selected="true"]': {
|
|
638
|
-
backgroundColor:
|
|
921
|
+
backgroundColor: bg2.brandPrimary
|
|
639
922
|
}
|
|
640
923
|
},
|
|
641
924
|
listbox: {
|
|
@@ -650,17 +933,17 @@ function buildComponents(tokens) {
|
|
|
650
933
|
},
|
|
651
934
|
styleOverrides: {
|
|
652
935
|
root: {
|
|
653
|
-
color:
|
|
936
|
+
color: border2.primary,
|
|
654
937
|
borderRadius: radius2.xs,
|
|
655
938
|
padding: 0,
|
|
656
939
|
width: 20,
|
|
657
940
|
height: 20,
|
|
658
941
|
"&:hover": {
|
|
659
942
|
backgroundColor: "transparent",
|
|
660
|
-
color:
|
|
943
|
+
color: fg2.brandPrimary
|
|
661
944
|
},
|
|
662
945
|
"&.Mui-checked": {
|
|
663
|
-
color:
|
|
946
|
+
color: fg2.brandPrimary
|
|
664
947
|
},
|
|
665
948
|
"&.Mui-checked:hover": {
|
|
666
949
|
color: colors2.brand[700]
|
|
@@ -671,7 +954,7 @@ function buildComponents(tokens) {
|
|
|
671
954
|
borderRadius: radius2.xs
|
|
672
955
|
},
|
|
673
956
|
"&.Mui-disabled": {
|
|
674
|
-
color:
|
|
957
|
+
color: border2.primary
|
|
675
958
|
}
|
|
676
959
|
}
|
|
677
960
|
}
|
|
@@ -683,14 +966,14 @@ function buildComponents(tokens) {
|
|
|
683
966
|
},
|
|
684
967
|
styleOverrides: {
|
|
685
968
|
root: {
|
|
686
|
-
color:
|
|
969
|
+
color: border2.primary,
|
|
687
970
|
padding: 0,
|
|
688
971
|
"&:hover": {
|
|
689
972
|
backgroundColor: "transparent",
|
|
690
|
-
color:
|
|
973
|
+
color: fg2.brandPrimary
|
|
691
974
|
},
|
|
692
975
|
"&.Mui-checked": {
|
|
693
|
-
color:
|
|
976
|
+
color: fg2.brandPrimary
|
|
694
977
|
},
|
|
695
978
|
"&.Mui-checked:hover": {
|
|
696
979
|
color: colors2.brand[700]
|
|
@@ -701,7 +984,7 @@ function buildComponents(tokens) {
|
|
|
701
984
|
borderRadius: radius2.full
|
|
702
985
|
},
|
|
703
986
|
"&.Mui-disabled": {
|
|
704
|
-
color:
|
|
987
|
+
color: border2.primary
|
|
705
988
|
}
|
|
706
989
|
}
|
|
707
990
|
}
|
|
@@ -721,9 +1004,9 @@ function buildComponents(tokens) {
|
|
|
721
1004
|
padding: 2,
|
|
722
1005
|
"&.Mui-checked": {
|
|
723
1006
|
transform: "translateX(20px)",
|
|
724
|
-
color:
|
|
1007
|
+
color: fg2.white,
|
|
725
1008
|
"& + .MuiSwitch-track": {
|
|
726
|
-
backgroundColor:
|
|
1009
|
+
backgroundColor: fg2.brandPrimary,
|
|
727
1010
|
opacity: 1
|
|
728
1011
|
}
|
|
729
1012
|
},
|
|
@@ -734,7 +1017,7 @@ function buildComponents(tokens) {
|
|
|
734
1017
|
boxShadow: focusRings2.brand
|
|
735
1018
|
},
|
|
736
1019
|
"&.Mui-disabled .MuiSwitch-thumb": {
|
|
737
|
-
color:
|
|
1020
|
+
color: bg2.disabled
|
|
738
1021
|
},
|
|
739
1022
|
"&.Mui-disabled + .MuiSwitch-track": {
|
|
740
1023
|
opacity: 0.5
|
|
@@ -747,7 +1030,7 @@ function buildComponents(tokens) {
|
|
|
747
1030
|
},
|
|
748
1031
|
track: {
|
|
749
1032
|
borderRadius: radius2.full,
|
|
750
|
-
backgroundColor:
|
|
1033
|
+
backgroundColor: border2.secondary,
|
|
751
1034
|
opacity: 1
|
|
752
1035
|
}
|
|
753
1036
|
}
|
|
@@ -756,23 +1039,24 @@ function buildComponents(tokens) {
|
|
|
756
1039
|
MuiToggleButton: {
|
|
757
1040
|
styleOverrides: {
|
|
758
1041
|
root: {
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
color: colors2.gray[700],
|
|
1042
|
+
borderColor: border2.primary,
|
|
1043
|
+
color: text2.secondary,
|
|
762
1044
|
fontSize: 14,
|
|
763
1045
|
fontWeight: 600,
|
|
764
1046
|
lineHeight: "20px",
|
|
765
|
-
|
|
1047
|
+
height: 32,
|
|
1048
|
+
padding: "6px 12px",
|
|
766
1049
|
textTransform: "none",
|
|
767
1050
|
"&:hover": {
|
|
768
|
-
backgroundColor:
|
|
1051
|
+
backgroundColor: bg2.primaryHover,
|
|
1052
|
+
borderColor: border2.primary
|
|
769
1053
|
},
|
|
770
1054
|
"&.Mui-selected": {
|
|
771
|
-
backgroundColor:
|
|
772
|
-
color:
|
|
773
|
-
borderColor:
|
|
1055
|
+
backgroundColor: bg2.brandPrimary,
|
|
1056
|
+
color: buttonColors2.secondaryColor.fg,
|
|
1057
|
+
borderColor: border2.brand,
|
|
774
1058
|
"&:hover": {
|
|
775
|
-
backgroundColor:
|
|
1059
|
+
backgroundColor: bg2.brandSecondary
|
|
776
1060
|
}
|
|
777
1061
|
},
|
|
778
1062
|
"&:focus-visible": {
|
|
@@ -784,15 +1068,21 @@ function buildComponents(tokens) {
|
|
|
784
1068
|
MuiToggleButtonGroup: {
|
|
785
1069
|
styleOverrides: {
|
|
786
1070
|
root: {
|
|
787
|
-
borderRadius: radius2.md
|
|
1071
|
+
borderRadius: radius2.md,
|
|
1072
|
+
overflow: "hidden"
|
|
788
1073
|
},
|
|
789
1074
|
grouped: {
|
|
1075
|
+
borderRadius: 0,
|
|
790
1076
|
"&:not(:first-of-type)": {
|
|
791
|
-
borderRadius: radius2.md,
|
|
792
1077
|
marginLeft: -1
|
|
793
1078
|
},
|
|
794
1079
|
"&:first-of-type": {
|
|
795
|
-
|
|
1080
|
+
borderTopLeftRadius: radius2.md,
|
|
1081
|
+
borderBottomLeftRadius: radius2.md
|
|
1082
|
+
},
|
|
1083
|
+
"&:last-of-type": {
|
|
1084
|
+
borderTopRightRadius: radius2.md,
|
|
1085
|
+
borderBottomRightRadius: radius2.md
|
|
796
1086
|
}
|
|
797
1087
|
}
|
|
798
1088
|
}
|
|
@@ -805,8 +1095,8 @@ function buildComponents(tokens) {
|
|
|
805
1095
|
styleOverrides: {
|
|
806
1096
|
root: {
|
|
807
1097
|
borderRadius: radius2.xl,
|
|
808
|
-
border: `1px solid ${
|
|
809
|
-
backgroundColor:
|
|
1098
|
+
border: `1px solid ${border2.secondary}`,
|
|
1099
|
+
backgroundColor: bg2.primary,
|
|
810
1100
|
overflow: "hidden"
|
|
811
1101
|
}
|
|
812
1102
|
}
|
|
@@ -856,31 +1146,31 @@ function buildComponents(tokens) {
|
|
|
856
1146
|
},
|
|
857
1147
|
elevation1: {
|
|
858
1148
|
boxShadow: tokenShadows.xs,
|
|
859
|
-
border: `1px solid ${
|
|
1149
|
+
border: `1px solid ${border2.secondary}`
|
|
860
1150
|
},
|
|
861
1151
|
elevation2: {
|
|
862
1152
|
boxShadow: tokenShadows.sm,
|
|
863
|
-
border: `1px solid ${
|
|
1153
|
+
border: `1px solid ${border2.secondary}`
|
|
864
1154
|
},
|
|
865
1155
|
elevation3: {
|
|
866
1156
|
boxShadow: tokenShadows.md,
|
|
867
|
-
border: `1px solid ${
|
|
1157
|
+
border: `1px solid ${border2.secondary}`
|
|
868
1158
|
},
|
|
869
1159
|
elevation4: {
|
|
870
1160
|
boxShadow: tokenShadows.lg,
|
|
871
|
-
border: `1px solid ${
|
|
1161
|
+
border: `1px solid ${border2.secondary}`
|
|
872
1162
|
},
|
|
873
1163
|
elevation8: {
|
|
874
1164
|
boxShadow: tokenShadows.xl,
|
|
875
|
-
border: `1px solid ${
|
|
1165
|
+
border: `1px solid ${border2.secondary}`
|
|
876
1166
|
},
|
|
877
1167
|
elevation16: {
|
|
878
1168
|
boxShadow: tokenShadows["2xl"],
|
|
879
|
-
border: `1px solid ${
|
|
1169
|
+
border: `1px solid ${border2.secondary}`
|
|
880
1170
|
},
|
|
881
1171
|
elevation24: {
|
|
882
1172
|
boxShadow: tokenShadows["3xl"],
|
|
883
|
-
border: `1px solid ${
|
|
1173
|
+
border: `1px solid ${border2.secondary}`
|
|
884
1174
|
}
|
|
885
1175
|
}
|
|
886
1176
|
},
|
|
@@ -892,7 +1182,7 @@ function buildComponents(tokens) {
|
|
|
892
1182
|
},
|
|
893
1183
|
styleOverrides: {
|
|
894
1184
|
root: {
|
|
895
|
-
border: `1px solid ${
|
|
1185
|
+
border: `1px solid ${border2.secondary}`,
|
|
896
1186
|
borderRadius: radius2.lg,
|
|
897
1187
|
"&:not(:last-child)": {
|
|
898
1188
|
marginBottom: 8
|
|
@@ -915,7 +1205,7 @@ function buildComponents(tokens) {
|
|
|
915
1205
|
minHeight: 56,
|
|
916
1206
|
"&.Mui-expanded": {
|
|
917
1207
|
minHeight: 56,
|
|
918
|
-
borderBottom: `1px solid ${
|
|
1208
|
+
borderBottom: `1px solid ${border2.secondary}`
|
|
919
1209
|
}
|
|
920
1210
|
},
|
|
921
1211
|
content: {
|
|
@@ -941,8 +1231,8 @@ function buildComponents(tokens) {
|
|
|
941
1231
|
},
|
|
942
1232
|
styleOverrides: {
|
|
943
1233
|
root: {
|
|
944
|
-
borderBottom: `1px solid ${
|
|
945
|
-
backgroundColor:
|
|
1234
|
+
borderBottom: `1px solid ${border2.secondary}`,
|
|
1235
|
+
backgroundColor: bg2.primary
|
|
946
1236
|
}
|
|
947
1237
|
}
|
|
948
1238
|
},
|
|
@@ -966,9 +1256,68 @@ function buildComponents(tokens) {
|
|
|
966
1256
|
MuiChip: {
|
|
967
1257
|
styleOverrides: {
|
|
968
1258
|
root: {
|
|
969
|
-
borderRadius: radius2.md
|
|
970
|
-
|
|
971
|
-
|
|
1259
|
+
borderRadius: radius2.md
|
|
1260
|
+
},
|
|
1261
|
+
label: {
|
|
1262
|
+
fontWeight: 500
|
|
1263
|
+
},
|
|
1264
|
+
sizeSmall: {
|
|
1265
|
+
fontSize: 12,
|
|
1266
|
+
height: 20
|
|
1267
|
+
},
|
|
1268
|
+
sizeMedium: {
|
|
1269
|
+
fontSize: 14,
|
|
1270
|
+
height: 24,
|
|
1271
|
+
"& .MuiChip-deleteIcon": { fontSize: 16 }
|
|
1272
|
+
},
|
|
1273
|
+
colorDefault: {
|
|
1274
|
+
"&.MuiChip-filled": {
|
|
1275
|
+
backgroundColor: colors2.gray[50],
|
|
1276
|
+
color: colors2.gray[700],
|
|
1277
|
+
"& .MuiChip-deleteIcon": { color: colors2.gray[400] }
|
|
1278
|
+
}
|
|
1279
|
+
},
|
|
1280
|
+
colorPrimary: {
|
|
1281
|
+
"&.MuiChip-filled": {
|
|
1282
|
+
backgroundColor: colors2.brand[50],
|
|
1283
|
+
color: colors2.brand[700],
|
|
1284
|
+
"& .MuiChip-deleteIcon": { color: colors2.brand[400] }
|
|
1285
|
+
}
|
|
1286
|
+
},
|
|
1287
|
+
colorSecondary: {
|
|
1288
|
+
"&.MuiChip-filled": {
|
|
1289
|
+
backgroundColor: colors2.gray[50],
|
|
1290
|
+
color: colors2.gray[700],
|
|
1291
|
+
"& .MuiChip-deleteIcon": { color: colors2.gray[400] }
|
|
1292
|
+
}
|
|
1293
|
+
},
|
|
1294
|
+
colorError: {
|
|
1295
|
+
"&.MuiChip-filled": {
|
|
1296
|
+
backgroundColor: colors2.error[50],
|
|
1297
|
+
color: colors2.error[700],
|
|
1298
|
+
"& .MuiChip-deleteIcon": { color: colors2.error[400] }
|
|
1299
|
+
}
|
|
1300
|
+
},
|
|
1301
|
+
colorWarning: {
|
|
1302
|
+
"&.MuiChip-filled": {
|
|
1303
|
+
backgroundColor: colors2.warning[50],
|
|
1304
|
+
color: colors2.warning[700],
|
|
1305
|
+
"& .MuiChip-deleteIcon": { color: colors2.warning[400] }
|
|
1306
|
+
}
|
|
1307
|
+
},
|
|
1308
|
+
colorSuccess: {
|
|
1309
|
+
"&.MuiChip-filled": {
|
|
1310
|
+
backgroundColor: colors2.success[50],
|
|
1311
|
+
color: colors2.success[700],
|
|
1312
|
+
"& .MuiChip-deleteIcon": { color: colors2.success[400] }
|
|
1313
|
+
}
|
|
1314
|
+
},
|
|
1315
|
+
colorInfo: {
|
|
1316
|
+
"&.MuiChip-filled": {
|
|
1317
|
+
backgroundColor: colors2.blue[50],
|
|
1318
|
+
color: colors2.blue[700],
|
|
1319
|
+
"& .MuiChip-deleteIcon": { color: colors2.blue[400] }
|
|
1320
|
+
}
|
|
972
1321
|
}
|
|
973
1322
|
}
|
|
974
1323
|
},
|
|
@@ -983,7 +1332,7 @@ function buildComponents(tokens) {
|
|
|
983
1332
|
fontSize: 14,
|
|
984
1333
|
lineHeight: "20px",
|
|
985
1334
|
fontWeight: 500,
|
|
986
|
-
color:
|
|
1335
|
+
color: text2.secondary
|
|
987
1336
|
}
|
|
988
1337
|
}
|
|
989
1338
|
},
|
|
@@ -999,29 +1348,29 @@ function buildComponents(tokens) {
|
|
|
999
1348
|
MuiTableCell: {
|
|
1000
1349
|
styleOverrides: {
|
|
1001
1350
|
root: {
|
|
1002
|
-
borderBottom: `1px solid ${
|
|
1351
|
+
borderBottom: `1px solid ${border2.secondary}`,
|
|
1003
1352
|
padding: "16px 24px",
|
|
1004
1353
|
fontSize: 14,
|
|
1005
1354
|
lineHeight: "20px",
|
|
1006
|
-
color:
|
|
1355
|
+
color: fg2.tertiary
|
|
1007
1356
|
},
|
|
1008
1357
|
head: {
|
|
1009
|
-
backgroundColor:
|
|
1010
|
-
color:
|
|
1358
|
+
backgroundColor: bg2.secondary,
|
|
1359
|
+
color: fg2.tertiary,
|
|
1011
1360
|
fontWeight: 500,
|
|
1012
1361
|
fontSize: 12,
|
|
1013
1362
|
lineHeight: "18px"
|
|
1014
1363
|
},
|
|
1015
1364
|
body: {
|
|
1016
|
-
color:
|
|
1365
|
+
color: fg2.tertiary
|
|
1017
1366
|
}
|
|
1018
1367
|
}
|
|
1019
1368
|
},
|
|
1020
1369
|
MuiTableHead: {
|
|
1021
1370
|
styleOverrides: {
|
|
1022
1371
|
root: {
|
|
1023
|
-
backgroundColor:
|
|
1024
|
-
borderBottom: `1px solid ${
|
|
1372
|
+
backgroundColor: bg2.secondary,
|
|
1373
|
+
borderBottom: `1px solid ${border2.secondary}`
|
|
1025
1374
|
}
|
|
1026
1375
|
}
|
|
1027
1376
|
},
|
|
@@ -1032,12 +1381,12 @@ function buildComponents(tokens) {
|
|
|
1032
1381
|
border: 0
|
|
1033
1382
|
},
|
|
1034
1383
|
"&:hover": {
|
|
1035
|
-
backgroundColor:
|
|
1384
|
+
backgroundColor: bg2.primaryHover
|
|
1036
1385
|
},
|
|
1037
1386
|
"&.Mui-selected": {
|
|
1038
|
-
backgroundColor:
|
|
1387
|
+
backgroundColor: bg2.brandPrimary,
|
|
1039
1388
|
"&:hover": {
|
|
1040
|
-
backgroundColor:
|
|
1389
|
+
backgroundColor: bg2.brandPrimary
|
|
1041
1390
|
}
|
|
1042
1391
|
}
|
|
1043
1392
|
}
|
|
@@ -1047,7 +1396,7 @@ function buildComponents(tokens) {
|
|
|
1047
1396
|
styleOverrides: {
|
|
1048
1397
|
root: {
|
|
1049
1398
|
borderRadius: radius2.xl,
|
|
1050
|
-
border: `1px solid ${
|
|
1399
|
+
border: `1px solid ${border2.secondary}`,
|
|
1051
1400
|
boxShadow: "none"
|
|
1052
1401
|
}
|
|
1053
1402
|
}
|
|
@@ -1064,16 +1413,16 @@ function buildComponents(tokens) {
|
|
|
1064
1413
|
borderRadius: radius2.full
|
|
1065
1414
|
},
|
|
1066
1415
|
colorPrimary: {
|
|
1067
|
-
backgroundColor:
|
|
1416
|
+
backgroundColor: bg2.brandSolid
|
|
1068
1417
|
},
|
|
1069
1418
|
colorError: {
|
|
1070
|
-
backgroundColor:
|
|
1419
|
+
backgroundColor: bg2.errorSolid
|
|
1071
1420
|
},
|
|
1072
1421
|
colorSuccess: {
|
|
1073
|
-
backgroundColor:
|
|
1422
|
+
backgroundColor: bg2.successSolid
|
|
1074
1423
|
},
|
|
1075
1424
|
colorWarning: {
|
|
1076
|
-
backgroundColor:
|
|
1425
|
+
backgroundColor: bg2.warningSolid
|
|
1077
1426
|
},
|
|
1078
1427
|
dot: {
|
|
1079
1428
|
minWidth: 8,
|
|
@@ -1086,7 +1435,7 @@ function buildComponents(tokens) {
|
|
|
1086
1435
|
MuiDivider: {
|
|
1087
1436
|
styleOverrides: {
|
|
1088
1437
|
root: {
|
|
1089
|
-
borderColor:
|
|
1438
|
+
borderColor: border2.secondary
|
|
1090
1439
|
}
|
|
1091
1440
|
}
|
|
1092
1441
|
},
|
|
@@ -1104,13 +1453,13 @@ function buildComponents(tokens) {
|
|
|
1104
1453
|
borderRadius: radius2.sm,
|
|
1105
1454
|
padding: "8px 12px",
|
|
1106
1455
|
"&:hover": {
|
|
1107
|
-
backgroundColor:
|
|
1456
|
+
backgroundColor: bg2.primaryHover
|
|
1108
1457
|
},
|
|
1109
1458
|
"&.Mui-selected": {
|
|
1110
|
-
backgroundColor:
|
|
1111
|
-
color:
|
|
1459
|
+
backgroundColor: bg2.brandPrimary,
|
|
1460
|
+
color: buttonColors2.secondaryColor.fg,
|
|
1112
1461
|
"&:hover": {
|
|
1113
|
-
backgroundColor:
|
|
1462
|
+
backgroundColor: bg2.brandSecondary
|
|
1114
1463
|
}
|
|
1115
1464
|
}
|
|
1116
1465
|
}
|
|
@@ -1120,7 +1469,7 @@ function buildComponents(tokens) {
|
|
|
1120
1469
|
styleOverrides: {
|
|
1121
1470
|
root: {
|
|
1122
1471
|
minWidth: 36,
|
|
1123
|
-
color:
|
|
1472
|
+
color: fg2.quaternary
|
|
1124
1473
|
}
|
|
1125
1474
|
}
|
|
1126
1475
|
},
|
|
@@ -1130,12 +1479,12 @@ function buildComponents(tokens) {
|
|
|
1130
1479
|
fontSize: 14,
|
|
1131
1480
|
lineHeight: "20px",
|
|
1132
1481
|
fontWeight: 500,
|
|
1133
|
-
color:
|
|
1482
|
+
color: text2.secondary
|
|
1134
1483
|
},
|
|
1135
1484
|
secondary: {
|
|
1136
1485
|
fontSize: 14,
|
|
1137
1486
|
lineHeight: "20px",
|
|
1138
|
-
color:
|
|
1487
|
+
color: text2.quaternary
|
|
1139
1488
|
}
|
|
1140
1489
|
}
|
|
1141
1490
|
},
|
|
@@ -1143,8 +1492,8 @@ function buildComponents(tokens) {
|
|
|
1143
1492
|
MuiTooltip: {
|
|
1144
1493
|
styleOverrides: {
|
|
1145
1494
|
tooltip: {
|
|
1146
|
-
backgroundColor:
|
|
1147
|
-
color:
|
|
1495
|
+
backgroundColor: bg2.primarySolid,
|
|
1496
|
+
color: text2.white,
|
|
1148
1497
|
fontSize: 12,
|
|
1149
1498
|
lineHeight: "18px",
|
|
1150
1499
|
fontWeight: 600,
|
|
@@ -1153,7 +1502,7 @@ function buildComponents(tokens) {
|
|
|
1153
1502
|
boxShadow: tokenShadows.lg
|
|
1154
1503
|
},
|
|
1155
1504
|
arrow: {
|
|
1156
|
-
color:
|
|
1505
|
+
color: bg2.primarySolid
|
|
1157
1506
|
}
|
|
1158
1507
|
}
|
|
1159
1508
|
},
|
|
@@ -1167,30 +1516,31 @@ function buildComponents(tokens) {
|
|
|
1167
1516
|
borderRadius: radius2.xl,
|
|
1168
1517
|
fontSize: 14,
|
|
1169
1518
|
lineHeight: "20px",
|
|
1170
|
-
padding: "12px 16px"
|
|
1519
|
+
padding: "12px 16px",
|
|
1520
|
+
alignItems: "center"
|
|
1171
1521
|
},
|
|
1172
1522
|
standardError: {
|
|
1173
|
-
backgroundColor:
|
|
1523
|
+
backgroundColor: bg2.errorPrimary,
|
|
1174
1524
|
color: colors2.error[700],
|
|
1175
|
-
border: `1px solid ${
|
|
1525
|
+
border: `1px solid ${border2.error}`,
|
|
1176
1526
|
"& .MuiAlert-icon": {
|
|
1177
|
-
color:
|
|
1527
|
+
color: fg2.errorPrimary
|
|
1178
1528
|
}
|
|
1179
1529
|
},
|
|
1180
1530
|
standardWarning: {
|
|
1181
|
-
backgroundColor:
|
|
1531
|
+
backgroundColor: bg2.warningPrimary,
|
|
1182
1532
|
color: colors2.warning[700],
|
|
1183
1533
|
border: `1px solid ${colors2.warning[300]}`,
|
|
1184
1534
|
"& .MuiAlert-icon": {
|
|
1185
|
-
color:
|
|
1535
|
+
color: fg2.warningPrimary
|
|
1186
1536
|
}
|
|
1187
1537
|
},
|
|
1188
1538
|
standardSuccess: {
|
|
1189
|
-
backgroundColor:
|
|
1539
|
+
backgroundColor: bg2.successPrimary,
|
|
1190
1540
|
color: colors2.success[700],
|
|
1191
1541
|
border: `1px solid ${colors2.success[300]}`,
|
|
1192
1542
|
"& .MuiAlert-icon": {
|
|
1193
|
-
color:
|
|
1543
|
+
color: fg2.successPrimary
|
|
1194
1544
|
}
|
|
1195
1545
|
},
|
|
1196
1546
|
standardInfo: {
|
|
@@ -1202,7 +1552,8 @@ function buildComponents(tokens) {
|
|
|
1202
1552
|
}
|
|
1203
1553
|
},
|
|
1204
1554
|
icon: {
|
|
1205
|
-
padding:
|
|
1555
|
+
padding: 0,
|
|
1556
|
+
marginRight: 12
|
|
1206
1557
|
}
|
|
1207
1558
|
}
|
|
1208
1559
|
},
|
|
@@ -1240,7 +1591,7 @@ function buildComponents(tokens) {
|
|
|
1240
1591
|
fontSize: 18,
|
|
1241
1592
|
lineHeight: "28px",
|
|
1242
1593
|
fontWeight: 600,
|
|
1243
|
-
color:
|
|
1594
|
+
color: text2.primary,
|
|
1244
1595
|
padding: "24px 24px 0"
|
|
1245
1596
|
}
|
|
1246
1597
|
}
|
|
@@ -1251,7 +1602,7 @@ function buildComponents(tokens) {
|
|
|
1251
1602
|
padding: "20px 24px",
|
|
1252
1603
|
fontSize: 14,
|
|
1253
1604
|
lineHeight: "20px",
|
|
1254
|
-
color:
|
|
1605
|
+
color: text2.tertiary
|
|
1255
1606
|
}
|
|
1256
1607
|
}
|
|
1257
1608
|
},
|
|
@@ -1269,14 +1620,14 @@ function buildComponents(tokens) {
|
|
|
1269
1620
|
root: {
|
|
1270
1621
|
borderRadius: radius2.full,
|
|
1271
1622
|
height: 8,
|
|
1272
|
-
backgroundColor:
|
|
1623
|
+
backgroundColor: border2.secondary
|
|
1273
1624
|
},
|
|
1274
1625
|
barColorPrimary: {
|
|
1275
|
-
backgroundColor:
|
|
1626
|
+
backgroundColor: fg2.brandPrimary,
|
|
1276
1627
|
borderRadius: radius2.full
|
|
1277
1628
|
},
|
|
1278
1629
|
barColorSecondary: {
|
|
1279
|
-
backgroundColor:
|
|
1630
|
+
backgroundColor: bg2.secondarySolid,
|
|
1280
1631
|
borderRadius: radius2.full
|
|
1281
1632
|
}
|
|
1282
1633
|
}
|
|
@@ -1284,10 +1635,10 @@ function buildComponents(tokens) {
|
|
|
1284
1635
|
MuiCircularProgress: {
|
|
1285
1636
|
styleOverrides: {
|
|
1286
1637
|
colorPrimary: {
|
|
1287
|
-
color:
|
|
1638
|
+
color: fg2.brandPrimary
|
|
1288
1639
|
},
|
|
1289
1640
|
colorSecondary: {
|
|
1290
|
-
color:
|
|
1641
|
+
color: bg2.secondarySolid
|
|
1291
1642
|
}
|
|
1292
1643
|
}
|
|
1293
1644
|
},
|
|
@@ -1298,7 +1649,7 @@ function buildComponents(tokens) {
|
|
|
1298
1649
|
},
|
|
1299
1650
|
styleOverrides: {
|
|
1300
1651
|
root: {
|
|
1301
|
-
backgroundColor:
|
|
1652
|
+
backgroundColor: bg2.tertiary
|
|
1302
1653
|
},
|
|
1303
1654
|
rounded: {
|
|
1304
1655
|
borderRadius: radius2.md
|
|
@@ -1312,8 +1663,8 @@ function buildComponents(tokens) {
|
|
|
1312
1663
|
MuiSnackbarContent: {
|
|
1313
1664
|
styleOverrides: {
|
|
1314
1665
|
root: {
|
|
1315
|
-
backgroundColor:
|
|
1316
|
-
color:
|
|
1666
|
+
backgroundColor: bg2.primarySolid,
|
|
1667
|
+
color: text2.white,
|
|
1317
1668
|
borderRadius: radius2.xl,
|
|
1318
1669
|
boxShadow: tokenShadows.lg,
|
|
1319
1670
|
fontSize: 14,
|
|
@@ -1341,6 +1692,62 @@ function buildComponents(tokens) {
|
|
|
1341
1692
|
overline: "span"
|
|
1342
1693
|
}
|
|
1343
1694
|
}
|
|
1695
|
+
},
|
|
1696
|
+
// ─── DataGrid (@mui/x-data-grid) ──────────────────────────────
|
|
1697
|
+
// Not part of MUI core's Components<Theme> type, so we merge via assertion.
|
|
1698
|
+
...{
|
|
1699
|
+
MuiDataGrid: {
|
|
1700
|
+
styleOverrides: {
|
|
1701
|
+
root: {
|
|
1702
|
+
border: `1px solid ${border2.secondary}`,
|
|
1703
|
+
borderRadius: radius2.xl,
|
|
1704
|
+
fontFamily: "inherit",
|
|
1705
|
+
"& .MuiDataGrid-withBorderColor": {
|
|
1706
|
+
borderColor: border2.secondary
|
|
1707
|
+
}
|
|
1708
|
+
},
|
|
1709
|
+
columnHeaders: {
|
|
1710
|
+
backgroundColor: bg2.secondary
|
|
1711
|
+
},
|
|
1712
|
+
columnHeader: {
|
|
1713
|
+
fontSize: 12,
|
|
1714
|
+
lineHeight: "18px",
|
|
1715
|
+
fontWeight: 500,
|
|
1716
|
+
color: fg2.tertiary,
|
|
1717
|
+
"&:focus, &:focus-within": {
|
|
1718
|
+
outline: "none"
|
|
1719
|
+
}
|
|
1720
|
+
},
|
|
1721
|
+
columnHeaderTitle: {
|
|
1722
|
+
fontWeight: 500
|
|
1723
|
+
},
|
|
1724
|
+
cell: {
|
|
1725
|
+
fontSize: 14,
|
|
1726
|
+
lineHeight: "20px",
|
|
1727
|
+
color: fg2.tertiary,
|
|
1728
|
+
"&:focus, &:focus-within": {
|
|
1729
|
+
outline: "none"
|
|
1730
|
+
}
|
|
1731
|
+
},
|
|
1732
|
+
row: {
|
|
1733
|
+
"&:hover": {
|
|
1734
|
+
backgroundColor: bg2.primaryHover
|
|
1735
|
+
},
|
|
1736
|
+
"&.Mui-selected": {
|
|
1737
|
+
backgroundColor: bg2.brandPrimary,
|
|
1738
|
+
"&:hover": {
|
|
1739
|
+
backgroundColor: bg2.brandPrimary
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
},
|
|
1743
|
+
footerContainer: {
|
|
1744
|
+
borderTop: `1px solid ${border2.secondary}`
|
|
1745
|
+
},
|
|
1746
|
+
columnSeparator: {
|
|
1747
|
+
color: border2.secondary
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1344
1751
|
}
|
|
1345
1752
|
};
|
|
1346
1753
|
}
|
|
@@ -1348,8 +1755,12 @@ var components = buildComponents({
|
|
|
1348
1755
|
colors,
|
|
1349
1756
|
radius,
|
|
1350
1757
|
focusRings,
|
|
1351
|
-
shadows
|
|
1352
|
-
|
|
1758
|
+
shadows,
|
|
1759
|
+
text,
|
|
1760
|
+
bg,
|
|
1761
|
+
fg,
|
|
1762
|
+
border,
|
|
1763
|
+
buttonColors});
|
|
1353
1764
|
|
|
1354
1765
|
// src/theme/shadows.ts
|
|
1355
1766
|
function buildShadows(tokens) {
|
|
@@ -1443,7 +1854,20 @@ var forestPreset = {
|
|
|
1443
1854
|
fontWeight,
|
|
1444
1855
|
display,
|
|
1445
1856
|
container,
|
|
1446
|
-
widths
|
|
1857
|
+
widths,
|
|
1858
|
+
text,
|
|
1859
|
+
bg,
|
|
1860
|
+
fg,
|
|
1861
|
+
border,
|
|
1862
|
+
buttonColors,
|
|
1863
|
+
avatarColors,
|
|
1864
|
+
breadcrumbColors,
|
|
1865
|
+
iconColors,
|
|
1866
|
+
navColors,
|
|
1867
|
+
sliderColors,
|
|
1868
|
+
toggleColors,
|
|
1869
|
+
chartColors,
|
|
1870
|
+
alpha
|
|
1447
1871
|
}
|
|
1448
1872
|
}
|
|
1449
1873
|
}
|
|
@@ -1506,7 +1930,7 @@ function ForestProvider({
|
|
|
1506
1930
|
function Autocomplete(props) {
|
|
1507
1931
|
return /* @__PURE__ */ jsxRuntime.jsx(MuiAutocomplete__default.default, { ...props });
|
|
1508
1932
|
}
|
|
1509
|
-
function Button(props) {
|
|
1933
|
+
function Button({ ...props }) {
|
|
1510
1934
|
return /* @__PURE__ */ jsxRuntime.jsx(MuiButton__default.default, { variant: "contained", ...props });
|
|
1511
1935
|
}
|
|
1512
1936
|
function ButtonGroup(props) {
|
|
@@ -1545,8 +1969,17 @@ function ToggleButtonGroup(props) {
|
|
|
1545
1969
|
function Badge(props) {
|
|
1546
1970
|
return /* @__PURE__ */ jsxRuntime.jsx(MuiBadge__default.default, { ...props });
|
|
1547
1971
|
}
|
|
1972
|
+
var Close_default = utils.createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
1973
|
+
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
1974
|
+
}), "Close");
|
|
1548
1975
|
function Chip(props) {
|
|
1549
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1976
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1977
|
+
MuiChip__default.default,
|
|
1978
|
+
{
|
|
1979
|
+
deleteIcon: /* @__PURE__ */ jsxRuntime.jsx(Close_default, {}),
|
|
1980
|
+
...props
|
|
1981
|
+
}
|
|
1982
|
+
);
|
|
1550
1983
|
}
|
|
1551
1984
|
function Divider(props) {
|
|
1552
1985
|
return /* @__PURE__ */ jsxRuntime.jsx(MuiDivider__default.default, { ...props });
|
|
@@ -1590,6 +2023,9 @@ function TableHead(props) {
|
|
|
1590
2023
|
function TableRow(props) {
|
|
1591
2024
|
return /* @__PURE__ */ jsxRuntime.jsx(MuiTableRow__default.default, { ...props });
|
|
1592
2025
|
}
|
|
2026
|
+
function DataGrid(props) {
|
|
2027
|
+
return /* @__PURE__ */ jsxRuntime.jsx(xDataGrid.DataGrid, { ...props });
|
|
2028
|
+
}
|
|
1593
2029
|
function Tooltip(props) {
|
|
1594
2030
|
return /* @__PURE__ */ jsxRuntime.jsx(MuiTooltip__default.default, { arrow: true, ...props });
|
|
1595
2031
|
}
|
|
@@ -1643,6 +2079,7 @@ exports.ButtonGroup = ButtonGroup;
|
|
|
1643
2079
|
exports.Checkbox = Checkbox;
|
|
1644
2080
|
exports.Chip = Chip;
|
|
1645
2081
|
exports.CircularProgress = CircularProgress;
|
|
2082
|
+
exports.DataGrid = DataGrid;
|
|
1646
2083
|
exports.Dialog = Dialog;
|
|
1647
2084
|
exports.DialogActions = DialogActions;
|
|
1648
2085
|
exports.DialogContent = DialogContent;
|
|
@@ -1677,11 +2114,19 @@ exports.ToggleButton = ToggleButton;
|
|
|
1677
2114
|
exports.ToggleButtonGroup = ToggleButtonGroup;
|
|
1678
2115
|
exports.Tooltip = Tooltip;
|
|
1679
2116
|
exports.Typography = Typography;
|
|
2117
|
+
exports.alpha = alpha;
|
|
2118
|
+
exports.avatarColors = avatarColors;
|
|
2119
|
+
exports.bg = bg;
|
|
2120
|
+
exports.border = border;
|
|
2121
|
+
exports.breadcrumbColors = breadcrumbColors;
|
|
1680
2122
|
exports.buildTheme = buildTheme;
|
|
1681
2123
|
exports.buildThemeOptions = buildThemeOptions;
|
|
2124
|
+
exports.buttonColors = buttonColors;
|
|
2125
|
+
exports.chartColors = chartColors;
|
|
1682
2126
|
exports.colors = colors;
|
|
1683
2127
|
exports.container = container;
|
|
1684
2128
|
exports.display = display;
|
|
2129
|
+
exports.fg = fg;
|
|
1685
2130
|
exports.focusRings = focusRings;
|
|
1686
2131
|
exports.fontFamily = fontFamily;
|
|
1687
2132
|
exports.fontSize = fontSize;
|
|
@@ -1691,10 +2136,15 @@ exports.forestTheme = forestTheme;
|
|
|
1691
2136
|
exports.forestThemeOptions = forestThemeOptions;
|
|
1692
2137
|
exports.getAvailablePresets = getAvailablePresets;
|
|
1693
2138
|
exports.getPreset = getPreset;
|
|
2139
|
+
exports.iconColors = iconColors;
|
|
1694
2140
|
exports.lineHeight = lineHeight;
|
|
2141
|
+
exports.navColors = navColors;
|
|
1695
2142
|
exports.radius = radius;
|
|
1696
2143
|
exports.registerPreset = registerPreset;
|
|
2144
|
+
exports.sliderColors = sliderColors;
|
|
1697
2145
|
exports.spacing = spacing;
|
|
2146
|
+
exports.text = text;
|
|
2147
|
+
exports.toggleColors = toggleColors;
|
|
1698
2148
|
exports.tokenShadows = shadows;
|
|
1699
2149
|
exports.widths = widths;
|
|
1700
2150
|
//# sourceMappingURL=index.js.map
|