@superdispatch/ui 0.31.1 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-node/index.js +431 -168
- package/dist-node/index.js.map +1 -1
- package/dist-src/avatar/AvatarOverrides.js +3 -3
- package/dist-src/avatar-button/AvatarButton.js +7 -7
- package/dist-src/button/ButtonOverrides.js +17 -17
- package/dist-src/card-button/CardButton.js +14 -14
- package/dist-src/checkbox/CheckboxField.js +2 -2
- package/dist-src/checkbox/CheckboxGroudField.js +3 -3
- package/dist-src/checkbox/CheckboxOverrides.js +9 -9
- package/dist-src/chip/ChipOverrides.js +9 -9
- package/dist-src/description-list/DescriptionList.js +2 -2
- package/dist-src/drawer/DrawerActions.js +2 -2
- package/dist-src/drawer/DrawerTitle.js +2 -2
- package/dist-src/dropdown-button/DropdownButton.js +2 -2
- package/dist-src/icon-button/IconButtonOverrides.js +11 -11
- package/dist-src/link/LinkOverrides.js +9 -9
- package/dist-src/list/ListOverrides.js +3 -3
- package/dist-src/menu/MenuOverrides.js +2 -2
- package/dist-src/overflow-text/OverflowText.js +2 -2
- package/dist-src/pagination/PaginationOverrides.js +10 -10
- package/dist-src/paper/PaperOverrides.js +2 -2
- package/dist-src/radio/RadioField.js +2 -2
- package/dist-src/radio/RadioFieldCard.js +2 -2
- package/dist-src/radio/RadioGroupField.js +3 -3
- package/dist-src/radio/RadioOverrides.js +6 -6
- package/dist-src/snackbar/SnackbarContent.js +9 -9
- package/dist-src/svg-icon/SvgIconOverrides.js +2 -2
- package/dist-src/switch/SwitchOverrides.js +9 -9
- package/dist-src/tabs/TabsOverrides.js +4 -4
- package/dist-src/tag/Tag.js +23 -23
- package/dist-src/text-field/TextFieldOverrides.js +15 -15
- package/dist-src/theme/Color.js +257 -0
- package/dist-src/theme/GlobalStyles.js +9 -0
- package/dist-src/theme/ThemeProvider.js +12 -8
- package/dist-src/tooltip/TooltipOverrides.js +3 -3
- package/dist-src/typography/TypographyOverrides.js +3 -3
- package/dist-types/index.d.ts +347 -2
- package/dist-web/index.js +439 -171
- package/dist-web/index.js.map +1 -1
- package/package.json +2 -2
package/dist-web/index.js
CHANGED
|
@@ -5,9 +5,9 @@ import { MoreHoriz, Info, Close, Error, CheckCircle } from '@material-ui/icons';
|
|
|
5
5
|
import { makeStyles, StylesProvider, ThemeProvider as ThemeProvider$1 } from '@material-ui/styles';
|
|
6
6
|
import { forwardRef, useState, useRef, useLayoutEffect, cloneElement, useMemo, useContext, createContext, Children, useCallback, useEffect } from 'react';
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
|
-
import styled, { css, ThemeProvider as ThemeProvider$2 } from 'styled-components';
|
|
8
|
+
import styled, { css, createGlobalStyle, ThemeProvider as ThemeProvider$2 } from 'styled-components';
|
|
9
9
|
import { ResizeObserver } from '@juggle/resize-observer';
|
|
10
|
-
import { useEventHandler, useDeepEqualValue, useValueObserver, useDeepEqualMemo
|
|
10
|
+
import { useEventHandler, useDeepEqualValue, useValueObserver, useDeepEqualMemo } from '@superdispatch/hooks';
|
|
11
11
|
import clsx from 'clsx';
|
|
12
12
|
import flattenChildren from 'react-keyed-flatten-children';
|
|
13
13
|
import { NumericFormat, PatternFormat } from 'react-number-format';
|
|
@@ -59,7 +59,7 @@ var CaretButton = /*#__PURE__*/styled(Button).withConfig({
|
|
|
59
59
|
var {
|
|
60
60
|
variant
|
|
61
61
|
} = _ref;
|
|
62
|
-
return variant === 'contained' && "border-left: 1px solid ".concat(
|
|
62
|
+
return variant === 'contained' && "border-left: 1px solid ".concat(ColorV2.Blue500);
|
|
63
63
|
});
|
|
64
64
|
var DropdownButton = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
65
65
|
var _anchorRef$current2;
|
|
@@ -406,7 +406,14 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
406
406
|
});
|
|
407
407
|
if (process.env.NODE_ENV !== "production") AdaptiveVerticalToolbar.displayName = "AdaptiveVerticalToolbar";
|
|
408
408
|
|
|
409
|
+
// `Color`: Represents the primary color palette with various shades and opacities.
|
|
410
|
+
// - Includes legacy colors marked as deprecated.
|
|
411
|
+
// - To update a color, modify the hex or rgba value associated with the desired color name.
|
|
412
|
+
|
|
409
413
|
var Color;
|
|
414
|
+
// `ColorLightInternal`: Represents the color palette for light themes.
|
|
415
|
+
// - Similar to `Color`, but specifically tailored for light theme usage.
|
|
416
|
+
// - Update colors by changing the associated value
|
|
410
417
|
(function (Color) {
|
|
411
418
|
Color["White"] = "#fff";
|
|
412
419
|
Color["White50"] = "rgba(255, 255, 255, 0.5)";
|
|
@@ -486,9 +493,259 @@ var Color;
|
|
|
486
493
|
Color["Yellow300"] = "#E8671C";
|
|
487
494
|
Color["Yellow500"] = "#B84807";
|
|
488
495
|
})(Color || (Color = {}));
|
|
496
|
+
var ColorLightInternal;
|
|
497
|
+
// `ColorDarkInternal`: Represents the color palette for dark themes.
|
|
498
|
+
// - Tailored for dark theme usage.
|
|
499
|
+
// - Update colors by modifying the associated values.
|
|
500
|
+
(function (ColorLightInternal) {
|
|
501
|
+
ColorLightInternal["White"] = "#fff";
|
|
502
|
+
ColorLightInternal["White50"] = "rgba(255, 255, 255, 0.5)";
|
|
503
|
+
ColorLightInternal["White40"] = "rgba(255, 255, 255, 0.4)";
|
|
504
|
+
ColorLightInternal["White20"] = "rgba(255, 255, 255, 0.2)";
|
|
505
|
+
ColorLightInternal["White10"] = "rgba(255, 255, 255, 0.1)";
|
|
506
|
+
ColorLightInternal["White08"] = "rgba(255, 255, 255, 0.08)";
|
|
507
|
+
ColorLightInternal["Transparent"] = "rgba(0, 0, 0, 0)";
|
|
508
|
+
ColorLightInternal["Black"] = "#000";
|
|
509
|
+
ColorLightInternal["Black50"] = "rgba(0, 0, 0, 0.5)";
|
|
510
|
+
ColorLightInternal["Black20"] = "rgba(0, 0, 0, 0.2)";
|
|
511
|
+
ColorLightInternal["Dark30"] = "rgba(143, 148, 158, 0.3)";
|
|
512
|
+
ColorLightInternal["Blue30"] = "rgba(0, 112, 245, 0.3)";
|
|
513
|
+
ColorLightInternal["Green30"] = "rgba(3, 135, 47, 0.3)";
|
|
514
|
+
ColorLightInternal["Red30"] = "rgba(229, 35, 13, 0.3)";
|
|
515
|
+
ColorLightInternal["Silver30"] = "rgba(225, 229, 234, 0.3)";
|
|
516
|
+
ColorLightInternal["Blue10"] = "rgba(0, 112, 245, 0.1)";
|
|
517
|
+
ColorLightInternal["Red10"] = "rgba(195, 25, 9, 0.1)";
|
|
518
|
+
ColorLightInternal["Grey100"] = "#8F949E";
|
|
519
|
+
ColorLightInternal["Grey200"] = "#6A707C";
|
|
520
|
+
ColorLightInternal["Grey300"] = "#5B6371";
|
|
521
|
+
ColorLightInternal["Grey400"] = "#323C4E";
|
|
522
|
+
ColorLightInternal["Grey450"] = "#222F44";
|
|
523
|
+
ColorLightInternal["Grey500"] = "#192334";
|
|
524
|
+
ColorLightInternal["Dark200"] = "#6A707C";
|
|
525
|
+
ColorLightInternal["Dark400"] = "#323C4E";
|
|
526
|
+
ColorLightInternal["Dark450"] = "#222F44";
|
|
527
|
+
ColorLightInternal["Silver100"] = "#F6F7F8";
|
|
528
|
+
ColorLightInternal["Silver300"] = "#E8ECF0";
|
|
529
|
+
ColorLightInternal["Blue75"] = "#CCE5FF";
|
|
530
|
+
ColorLightInternal["Blue100"] = "#A8D1FF";
|
|
531
|
+
ColorLightInternal["Blue200"] = "#66ADFF";
|
|
532
|
+
ColorLightInternal["Blue400"] = "#0063DB";
|
|
533
|
+
ColorLightInternal["Green75"] = "#C8F4D1";
|
|
534
|
+
ColorLightInternal["Green100"] = "#90EAAE";
|
|
535
|
+
ColorLightInternal["Green200"] = "#5DDA87";
|
|
536
|
+
ColorLightInternal["Green400"] = "#1E8F46";
|
|
537
|
+
ColorLightInternal["Purple75"] = "#DCDBF5";
|
|
538
|
+
ColorLightInternal["Purple100"] = "#CBC8EE";
|
|
539
|
+
ColorLightInternal["Purple200"] = "#A7A1E8";
|
|
540
|
+
ColorLightInternal["Purple400"] = "#473ABB";
|
|
541
|
+
ColorLightInternal["Red75"] = "#FDD9D3";
|
|
542
|
+
ColorLightInternal["Red100"] = "#FDC2BA";
|
|
543
|
+
ColorLightInternal["Red200"] = "#FE988B";
|
|
544
|
+
ColorLightInternal["Red400"] = "#D9210D";
|
|
545
|
+
ColorLightInternal["Teal75"] = "#BEEDF9";
|
|
546
|
+
ColorLightInternal["Teal100"] = "#91E3F8";
|
|
547
|
+
ColorLightInternal["Teal200"] = "#61D3EF";
|
|
548
|
+
ColorLightInternal["Teal400"] = "#008DB8";
|
|
549
|
+
ColorLightInternal["Yellow75"] = "#FFF1C2";
|
|
550
|
+
ColorLightInternal["Yellow100"] = "#FFE494";
|
|
551
|
+
ColorLightInternal["Yellow200"] = "#FFDC6B";
|
|
552
|
+
ColorLightInternal["Yellow400"] = "#FFA91F";
|
|
553
|
+
ColorLightInternal["Dark50"] = "rgba(25, 35, 52, 0.5)";
|
|
554
|
+
ColorLightInternal["Dark100"] = "#8F949E";
|
|
555
|
+
ColorLightInternal["Dark300"] = "#5B6371";
|
|
556
|
+
ColorLightInternal["Dark500"] = "#192334";
|
|
557
|
+
ColorLightInternal["Silver200"] = "#F3F5F8";
|
|
558
|
+
ColorLightInternal["Silver400"] = "#E1E5EA";
|
|
559
|
+
ColorLightInternal["Silver500"] = "#C4CDD5";
|
|
560
|
+
ColorLightInternal["Blue50"] = "#EBF4FF";
|
|
561
|
+
ColorLightInternal["Blue300"] = "#0070F5";
|
|
562
|
+
ColorLightInternal["Blue500"] = "#0063DB";
|
|
563
|
+
ColorLightInternal["Green50"] = "#ECF9EF";
|
|
564
|
+
ColorLightInternal["Green300"] = "#03872F";
|
|
565
|
+
ColorLightInternal["Green500"] = "#007A29";
|
|
566
|
+
ColorLightInternal["Purple50"] = "#EFEEFC";
|
|
567
|
+
ColorLightInternal["Purple300"] = "#6559CF";
|
|
568
|
+
ColorLightInternal["Purple500"] = "#473ABB";
|
|
569
|
+
ColorLightInternal["Red50"] = "#FFEDEB";
|
|
570
|
+
ColorLightInternal["Red300"] = "#E5230D";
|
|
571
|
+
ColorLightInternal["Red500"] = "#C31909";
|
|
572
|
+
ColorLightInternal["Teal50"] = "#E3F6FC";
|
|
573
|
+
ColorLightInternal["Teal300"] = "#007EAB";
|
|
574
|
+
ColorLightInternal["Teal500"] = "#00678A";
|
|
575
|
+
ColorLightInternal["Yellow50"] = "#FFF7DC";
|
|
576
|
+
ColorLightInternal["Yellow300"] = "#E8671C";
|
|
577
|
+
ColorLightInternal["Yellow500"] = "#B84807";
|
|
578
|
+
})(ColorLightInternal || (ColorLightInternal = {}));
|
|
579
|
+
var ColorDarkInternal;
|
|
580
|
+
|
|
581
|
+
// `ColorV2`: Represents a newer version of the color palette using CSS variables.
|
|
582
|
+
// - Designed for more dynamic theming using CSS custom properties.
|
|
583
|
+
// - Update colors by changing the CSS variable references.
|
|
584
|
+
(function (ColorDarkInternal) {
|
|
585
|
+
ColorDarkInternal["White"] = "#fff";
|
|
586
|
+
ColorDarkInternal["White50"] = "rgba(255, 255, 255, 0.5)";
|
|
587
|
+
ColorDarkInternal["White40"] = "rgba(255, 255, 255, 0.4)";
|
|
588
|
+
ColorDarkInternal["White20"] = "rgba(255, 255, 255, 0.2)";
|
|
589
|
+
ColorDarkInternal["White10"] = "rgba(255, 255, 255, 0.1)";
|
|
590
|
+
ColorDarkInternal["White08"] = "rgba(255, 255, 255, 0.08)";
|
|
591
|
+
ColorDarkInternal["Transparent"] = "rgba(0, 0, 0, 0)";
|
|
592
|
+
ColorDarkInternal["Black"] = "#000";
|
|
593
|
+
ColorDarkInternal["Black50"] = "rgba(0, 0, 0, 0.5)";
|
|
594
|
+
ColorDarkInternal["Black20"] = "rgba(0, 0, 0, 0.2)";
|
|
595
|
+
ColorDarkInternal["Dark30"] = "rgba(143, 148, 158, 0.3)";
|
|
596
|
+
ColorDarkInternal["Blue30"] = "rgba(0, 112, 245, 0.3)";
|
|
597
|
+
ColorDarkInternal["Green30"] = "rgba(3, 135, 47, 0.3)";
|
|
598
|
+
ColorDarkInternal["Red30"] = "rgba(229, 35, 13, 0.3)";
|
|
599
|
+
ColorDarkInternal["Silver30"] = "rgba(225, 229, 234, 0.3)";
|
|
600
|
+
ColorDarkInternal["Blue10"] = "rgba(0, 112, 245, 0.1)";
|
|
601
|
+
ColorDarkInternal["Red10"] = "rgba(195, 25, 9, 0.1)";
|
|
602
|
+
ColorDarkInternal["Grey100"] = "#8F949E";
|
|
603
|
+
ColorDarkInternal["Grey200"] = "#6A707C";
|
|
604
|
+
ColorDarkInternal["Grey300"] = "#5B6371";
|
|
605
|
+
ColorDarkInternal["Grey400"] = "#323C4E";
|
|
606
|
+
ColorDarkInternal["Grey450"] = "#222F44";
|
|
607
|
+
ColorDarkInternal["Grey500"] = "#192334";
|
|
608
|
+
ColorDarkInternal["Dark200"] = "#6A707C";
|
|
609
|
+
ColorDarkInternal["Dark400"] = "#323C4E";
|
|
610
|
+
ColorDarkInternal["Dark450"] = "#222F44";
|
|
611
|
+
ColorDarkInternal["Silver100"] = "#F6F7F8";
|
|
612
|
+
ColorDarkInternal["Silver300"] = "#E8ECF0";
|
|
613
|
+
ColorDarkInternal["Blue75"] = "#CCE5FF";
|
|
614
|
+
ColorDarkInternal["Blue100"] = "#A8D1FF";
|
|
615
|
+
ColorDarkInternal["Blue200"] = "#66ADFF";
|
|
616
|
+
ColorDarkInternal["Blue400"] = "#0063DB";
|
|
617
|
+
ColorDarkInternal["Green75"] = "#C8F4D1";
|
|
618
|
+
ColorDarkInternal["Green100"] = "#90EAAE";
|
|
619
|
+
ColorDarkInternal["Green200"] = "#5DDA87";
|
|
620
|
+
ColorDarkInternal["Green400"] = "#1E8F46";
|
|
621
|
+
ColorDarkInternal["Purple75"] = "#DCDBF5";
|
|
622
|
+
ColorDarkInternal["Purple100"] = "#CBC8EE";
|
|
623
|
+
ColorDarkInternal["Purple200"] = "#A7A1E8";
|
|
624
|
+
ColorDarkInternal["Purple400"] = "#473ABB";
|
|
625
|
+
ColorDarkInternal["Red75"] = "#FDD9D3";
|
|
626
|
+
ColorDarkInternal["Red100"] = "#FDC2BA";
|
|
627
|
+
ColorDarkInternal["Red200"] = "#FE988B";
|
|
628
|
+
ColorDarkInternal["Red400"] = "#D9210D";
|
|
629
|
+
ColorDarkInternal["Teal75"] = "#BEEDF9";
|
|
630
|
+
ColorDarkInternal["Teal100"] = "#91E3F8";
|
|
631
|
+
ColorDarkInternal["Teal200"] = "#61D3EF";
|
|
632
|
+
ColorDarkInternal["Teal400"] = "#008DB8";
|
|
633
|
+
ColorDarkInternal["Yellow75"] = "#FFF1C2";
|
|
634
|
+
ColorDarkInternal["Yellow100"] = "#FFE494";
|
|
635
|
+
ColorDarkInternal["Yellow200"] = "#FFDC6B";
|
|
636
|
+
ColorDarkInternal["Yellow400"] = "#FFA91F";
|
|
637
|
+
ColorDarkInternal["Dark50"] = "rgba(25, 35, 52, 0.5)";
|
|
638
|
+
ColorDarkInternal["Dark100"] = "#6E7A8A";
|
|
639
|
+
ColorDarkInternal["Dark300"] = "#AEB4BD";
|
|
640
|
+
ColorDarkInternal["Dark500"] = "#FFFFFF";
|
|
641
|
+
ColorDarkInternal["Silver200"] = "#0D1017";
|
|
642
|
+
ColorDarkInternal["Silver400"] = "#30373D";
|
|
643
|
+
ColorDarkInternal["Silver500"] = "#47505B";
|
|
644
|
+
ColorDarkInternal["Blue50"] = "#0E2947";
|
|
645
|
+
ColorDarkInternal["Blue300"] = "#0070F5";
|
|
646
|
+
ColorDarkInternal["Blue500"] = "#55ADFF";
|
|
647
|
+
ColorDarkInternal["Green50"] = "#092E16";
|
|
648
|
+
ColorDarkInternal["Green300"] = "#03872F";
|
|
649
|
+
ColorDarkInternal["Green500"] = "#5EE18A";
|
|
650
|
+
ColorDarkInternal["Purple50"] = "#262247";
|
|
651
|
+
ColorDarkInternal["Purple300"] = "#6559CF";
|
|
652
|
+
ColorDarkInternal["Purple500"] = "#BFA0FF";
|
|
653
|
+
ColorDarkInternal["Red50"] = "#3D0A06";
|
|
654
|
+
ColorDarkInternal["Red300"] = "#E5230D";
|
|
655
|
+
ColorDarkInternal["Red500"] = "#FF6359";
|
|
656
|
+
ColorDarkInternal["Teal50"] = "#11333D";
|
|
657
|
+
ColorDarkInternal["Teal300"] = "#007EAB";
|
|
658
|
+
ColorDarkInternal["Teal500"] = "#31C7F5";
|
|
659
|
+
ColorDarkInternal["Yellow50"] = "#33200A";
|
|
660
|
+
ColorDarkInternal["Yellow300"] = "#E8671C";
|
|
661
|
+
ColorDarkInternal["Yellow500"] = "#FCA542";
|
|
662
|
+
})(ColorDarkInternal || (ColorDarkInternal = {}));
|
|
663
|
+
var ColorV2;
|
|
664
|
+
(function (ColorV2) {
|
|
665
|
+
ColorV2["White"] = "var(--sd-white)";
|
|
666
|
+
ColorV2["White50"] = "var(--sd-white-50)";
|
|
667
|
+
ColorV2["White40"] = "var(--sd-white-40)";
|
|
668
|
+
ColorV2["White20"] = "var(--sd-white-20)";
|
|
669
|
+
ColorV2["White10"] = "var(--sd-white-10)";
|
|
670
|
+
ColorV2["White08"] = "var(--sd-white-08)";
|
|
671
|
+
ColorV2["Transparent"] = "var(--sd-transparent)";
|
|
672
|
+
ColorV2["Black"] = "var(--sd-black)";
|
|
673
|
+
ColorV2["Black50"] = "var(--sd-black-50)";
|
|
674
|
+
ColorV2["Black20"] = "var(--sd-black-20)";
|
|
675
|
+
ColorV2["Dark30"] = "var(--sd-dark-30)";
|
|
676
|
+
ColorV2["Blue30"] = "var(--sd-blue-30)";
|
|
677
|
+
ColorV2["Green30"] = "var(--sd-green-30)";
|
|
678
|
+
ColorV2["Red30"] = "var(--sd-red-30)";
|
|
679
|
+
ColorV2["Silver30"] = "var(--sd-silver-30)";
|
|
680
|
+
ColorV2["Blue10"] = "var(--sd-blue-10)";
|
|
681
|
+
ColorV2["Red10"] = "var(--sd-red-10)";
|
|
682
|
+
ColorV2["Grey100"] = "var(--sd-grey-100)";
|
|
683
|
+
ColorV2["Grey200"] = "var(--sd-grey-200)";
|
|
684
|
+
ColorV2["Grey300"] = "var(--sd-grey-300)";
|
|
685
|
+
ColorV2["Grey400"] = "var(--sd-grey-400)";
|
|
686
|
+
ColorV2["Grey450"] = "var(--sd-grey-450)";
|
|
687
|
+
ColorV2["Grey500"] = "var(--sd-grey-500)";
|
|
688
|
+
ColorV2["Dark200"] = "var(--sd-dark-200)";
|
|
689
|
+
ColorV2["Dark400"] = "var(--sd-dark-400)";
|
|
690
|
+
ColorV2["Dark450"] = "var(--sd-dark-450)";
|
|
691
|
+
ColorV2["Silver100"] = "var(--sd-silver-100)";
|
|
692
|
+
ColorV2["Silver300"] = "var(--sd-silver-300)";
|
|
693
|
+
ColorV2["Blue75"] = "var(--sd-blue-75)";
|
|
694
|
+
ColorV2["Blue100"] = "var(--sd-blue-100)";
|
|
695
|
+
ColorV2["Blue200"] = "var(--sd-blue-200)";
|
|
696
|
+
ColorV2["Blue400"] = "var(--sd-blue-400)";
|
|
697
|
+
ColorV2["Green75"] = "var(--sd-green-75)";
|
|
698
|
+
ColorV2["Green100"] = "var(--sd-green-100)";
|
|
699
|
+
ColorV2["Green200"] = "var(--sd-green-200)";
|
|
700
|
+
ColorV2["Green400"] = "var(--sd-green-400)";
|
|
701
|
+
ColorV2["Purple75"] = "var(--sd-purple-75)";
|
|
702
|
+
ColorV2["Purple100"] = "var(--sd-purple-100)";
|
|
703
|
+
ColorV2["Purple200"] = "var(--sd-purple-200)";
|
|
704
|
+
ColorV2["Purple400"] = "var(--sd-purple-400)";
|
|
705
|
+
ColorV2["Red75"] = "var(--sd-red-75)";
|
|
706
|
+
ColorV2["Red100"] = "var(--sd-red-100)";
|
|
707
|
+
ColorV2["Red200"] = "var(--sd-red-200)";
|
|
708
|
+
ColorV2["Red400"] = "var(--sd-red-400)";
|
|
709
|
+
ColorV2["Teal75"] = "var(--sd-teal-75)";
|
|
710
|
+
ColorV2["Teal100"] = "var(--sd-teal-100)";
|
|
711
|
+
ColorV2["Teal200"] = "var(--sd-teal-200)";
|
|
712
|
+
ColorV2["Teal400"] = "var(--sd-teal-400)";
|
|
713
|
+
ColorV2["Yellow75"] = "var(--sd-yellow-75)";
|
|
714
|
+
ColorV2["Yellow100"] = "var(--sd-yellow-100)";
|
|
715
|
+
ColorV2["Yellow200"] = "var(--sd-yellow-200)";
|
|
716
|
+
ColorV2["Yellow400"] = "var(--sd-yellow-400)";
|
|
717
|
+
ColorV2["Dark50"] = "var(--sd-dark-50)";
|
|
718
|
+
ColorV2["Dark100"] = "var(--sd-dark-100)";
|
|
719
|
+
ColorV2["Dark300"] = "var(--sd-dark-300)";
|
|
720
|
+
ColorV2["Dark500"] = "var(--sd-dark-500)";
|
|
721
|
+
ColorV2["Silver200"] = "var(--sd-silver-200)";
|
|
722
|
+
ColorV2["Silver400"] = "var(--sd-silver-400)";
|
|
723
|
+
ColorV2["Silver500"] = "var(--sd-silver-500)";
|
|
724
|
+
ColorV2["Blue50"] = "var(--sd-blue-50)";
|
|
725
|
+
ColorV2["Blue300"] = "var(--sd-blue-300)";
|
|
726
|
+
ColorV2["Blue500"] = "var(--sd-blue-500)";
|
|
727
|
+
ColorV2["Green50"] = "var(--sd-green-50)";
|
|
728
|
+
ColorV2["Green300"] = "var(--sd-green-300)";
|
|
729
|
+
ColorV2["Green500"] = "var(--sd-green-500)";
|
|
730
|
+
ColorV2["Purple50"] = "var(--sd-purple-50)";
|
|
731
|
+
ColorV2["Purple300"] = "var(--sd-purple-300)";
|
|
732
|
+
ColorV2["Purple500"] = "var(--sd-purple-500)";
|
|
733
|
+
ColorV2["Red50"] = "var(--sd-red-50)";
|
|
734
|
+
ColorV2["Red300"] = "var(--sd-red-300)";
|
|
735
|
+
ColorV2["Red500"] = "var(--sd-red-500)";
|
|
736
|
+
ColorV2["Teal50"] = "var(--sd-teal-50)";
|
|
737
|
+
ColorV2["Teal300"] = "var(--sd-teal-300)";
|
|
738
|
+
ColorV2["Teal500"] = "var(--sd-teal-500)";
|
|
739
|
+
ColorV2["Yellow50"] = "var(--sd-yellow-50)";
|
|
740
|
+
ColorV2["Yellow300"] = "var(--sd-yellow-300)";
|
|
741
|
+
ColorV2["Yellow500"] = "var(--sd-yellow-500)";
|
|
742
|
+
})(ColorV2 || (ColorV2 = {}));
|
|
489
743
|
function isColorProp(name) {
|
|
490
744
|
return typeof name == 'string' && Object.prototype.hasOwnProperty.call(Color, name);
|
|
491
745
|
}
|
|
746
|
+
function isColorPropV2(name) {
|
|
747
|
+
return typeof name == 'string' && Object.prototype.hasOwnProperty.call(ColorV2, name);
|
|
748
|
+
}
|
|
492
749
|
|
|
493
750
|
var _excluded$3 = ["size", "icon", "isLoading", "classes", "disabled", "avatarRef", "className", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"],
|
|
494
751
|
_excluded2 = ["button", "overlay", "progress", "withIcon", "sizeLarge"];
|
|
@@ -499,19 +756,19 @@ var useStyles$2 = /*#__PURE__*/makeStyles(theme => {
|
|
|
499
756
|
borderRadius: '50%',
|
|
500
757
|
'&[disabled], &[aria-busy="true"]': {
|
|
501
758
|
'& > $overlay': {
|
|
502
|
-
backgroundColor:
|
|
759
|
+
backgroundColor: ColorV2.White50
|
|
503
760
|
}
|
|
504
761
|
},
|
|
505
762
|
'&:not([disabled])[aria-busy="false"]': {
|
|
506
763
|
'&:hover, &:focus': {
|
|
507
764
|
'&$withIcon > $overlay': {
|
|
508
|
-
backgroundColor:
|
|
765
|
+
backgroundColor: ColorV2.Dark50,
|
|
509
766
|
'& > svg': {
|
|
510
767
|
opacity: 1
|
|
511
768
|
}
|
|
512
769
|
},
|
|
513
770
|
'&:not($withIcon) > $overlay': {
|
|
514
|
-
backgroundColor:
|
|
771
|
+
backgroundColor: ColorV2.Black20
|
|
515
772
|
}
|
|
516
773
|
}
|
|
517
774
|
}
|
|
@@ -526,11 +783,11 @@ var useStyles$2 = /*#__PURE__*/makeStyles(theme => {
|
|
|
526
783
|
alignItems: 'center',
|
|
527
784
|
justifyContent: 'center',
|
|
528
785
|
borderRadius: '50%',
|
|
529
|
-
backgroundColor:
|
|
786
|
+
backgroundColor: ColorV2.Transparent,
|
|
530
787
|
transition: theme.transitions.create('background-color'),
|
|
531
788
|
'& > svg': {
|
|
532
789
|
opacity: 0,
|
|
533
|
-
color:
|
|
790
|
+
color: ColorV2.White,
|
|
534
791
|
transition: theme.transitions.create('opacity'),
|
|
535
792
|
fontSize: theme.spacing(3),
|
|
536
793
|
[sm]: {
|
|
@@ -542,7 +799,7 @@ var useStyles$2 = /*#__PURE__*/makeStyles(theme => {
|
|
|
542
799
|
top: 0,
|
|
543
800
|
left: 0,
|
|
544
801
|
position: 'absolute',
|
|
545
|
-
color:
|
|
802
|
+
color: ColorV2.Blue500,
|
|
546
803
|
fontSize: theme.spacing(5),
|
|
547
804
|
[sm]: {
|
|
548
805
|
fontSize: theme.spacing(4)
|
|
@@ -649,7 +906,7 @@ var useStyles$3 = /*#__PURE__*/makeStyles(theme => ({
|
|
|
649
906
|
alignItems: 'center',
|
|
650
907
|
flexDirection: 'column',
|
|
651
908
|
justifyContent: 'center',
|
|
652
|
-
backgroundColor:
|
|
909
|
+
backgroundColor: ColorV2.White,
|
|
653
910
|
border: '1px dashed',
|
|
654
911
|
borderRadius: theme.spacing(0.5),
|
|
655
912
|
padding: theme.spacing(1.5),
|
|
@@ -657,27 +914,27 @@ var useStyles$3 = /*#__PURE__*/makeStyles(theme => ({
|
|
|
657
914
|
transition: theme.transitions.create(['color', 'box-shadow', 'border-color', 'background-color'])
|
|
658
915
|
},
|
|
659
916
|
disabled: {
|
|
660
|
-
color:
|
|
661
|
-
borderColor:
|
|
662
|
-
backgroundColor:
|
|
917
|
+
color: ColorV2.Dark200,
|
|
918
|
+
borderColor: ColorV2.Silver500,
|
|
919
|
+
backgroundColor: ColorV2.Silver100
|
|
663
920
|
},
|
|
664
921
|
error: {
|
|
665
|
-
color:
|
|
666
|
-
borderColor:
|
|
667
|
-
backgroundColor:
|
|
922
|
+
color: ColorV2.Red500,
|
|
923
|
+
borderColor: ColorV2.Red500,
|
|
924
|
+
backgroundColor: ColorV2.Red50,
|
|
668
925
|
'&:focus': {
|
|
669
|
-
backgroundColor:
|
|
926
|
+
backgroundColor: ColorV2.Red75
|
|
670
927
|
}
|
|
671
928
|
},
|
|
672
929
|
primary: {
|
|
673
|
-
color:
|
|
674
|
-
borderColor:
|
|
930
|
+
color: ColorV2.Blue500,
|
|
931
|
+
borderColor: ColorV2.Silver500,
|
|
675
932
|
'&:focus': {
|
|
676
|
-
backgroundColor:
|
|
933
|
+
backgroundColor: ColorV2.Blue50
|
|
677
934
|
},
|
|
678
935
|
'&:hover, &:active': {
|
|
679
|
-
borderColor:
|
|
680
|
-
backgroundColor:
|
|
936
|
+
borderColor: ColorV2.Blue300,
|
|
937
|
+
backgroundColor: ColorV2.Blue50
|
|
681
938
|
}
|
|
682
939
|
},
|
|
683
940
|
sizeSmall: {
|
|
@@ -775,7 +1032,7 @@ var FormControl = /*#__PURE__*/styled(FormControl$2).withConfig({
|
|
|
775
1032
|
var FormHelperText = /*#__PURE__*/styled(FormHelperText$4).withConfig({
|
|
776
1033
|
displayName: "CheckboxField__FormHelperText",
|
|
777
1034
|
componentId: "SD__sc-1wxu0g6-1"
|
|
778
|
-
})(["color:", ";margin-left:30px;margin-top:0;margin-bottom:4px;&.Mui-error{color:", ";}"],
|
|
1035
|
+
})(["color:", ";margin-left:30px;margin-top:0;margin-bottom:4px;&.Mui-error{color:", ";}"], ColorV2.Dark300, ColorV2.Red500);
|
|
779
1036
|
var CheckboxField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
780
1037
|
var {
|
|
781
1038
|
label,
|
|
@@ -809,11 +1066,11 @@ var _excluded$6 = ["FormGroupProps", "label", "FormLabelProps", "helperText", "F
|
|
|
809
1066
|
var FormLabel = /*#__PURE__*/styled(FormLabel$2).withConfig({
|
|
810
1067
|
displayName: "CheckboxGroudField__FormLabel",
|
|
811
1068
|
componentId: "SD__sc-1lihyfy-0"
|
|
812
|
-
})(["margin-bottom:8px;color:", ";font-weight:600;"],
|
|
1069
|
+
})(["margin-bottom:8px;color:", ";font-weight:600;"], ColorV2.Dark300);
|
|
813
1070
|
var FormHelperText$1 = /*#__PURE__*/styled(FormHelperText$4).withConfig({
|
|
814
1071
|
displayName: "CheckboxGroudField__FormHelperText",
|
|
815
1072
|
componentId: "SD__sc-1lihyfy-1"
|
|
816
|
-
})(["margin-top:8px;color:", ";&.Mui-error{color:", ";}"],
|
|
1073
|
+
})(["margin-top:8px;color:", ";&.Mui-error{color:", ";}"], ColorV2.Dark300, ColorV2.Red500);
|
|
817
1074
|
var CheckboxGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
818
1075
|
var {
|
|
819
1076
|
FormGroupProps: formGroupProps,
|
|
@@ -1095,7 +1352,7 @@ var useStyles$4 = /*#__PURE__*/makeStyles(theme => ({
|
|
|
1095
1352
|
transition: theme.transitions.create('border'),
|
|
1096
1353
|
'&$truncated': {
|
|
1097
1354
|
cursor: 'pointer',
|
|
1098
|
-
borderBottomColor:
|
|
1355
|
+
borderBottomColor: ColorV2.Silver500
|
|
1099
1356
|
}
|
|
1100
1357
|
},
|
|
1101
1358
|
truncated: {},
|
|
@@ -1194,7 +1451,7 @@ var useStyles$5 = /*#__PURE__*/makeStyles(theme => ({
|
|
|
1194
1451
|
display: 'inline-flex',
|
|
1195
1452
|
marginRight: theme.spacing(1),
|
|
1196
1453
|
'& > .MuiSvgIcon-root': {
|
|
1197
|
-
color:
|
|
1454
|
+
color: ColorV2.Dark100,
|
|
1198
1455
|
fontSize: theme.spacing(3),
|
|
1199
1456
|
[theme.breakpoints.up('sm')]: {
|
|
1200
1457
|
fontSize: theme.spacing(2)
|
|
@@ -1279,7 +1536,7 @@ var useStyles$6 = /*#__PURE__*/makeStyles(theme => ({
|
|
|
1279
1536
|
borderBottom: 'none',
|
|
1280
1537
|
transition: theme.transitions.create(['border-color']),
|
|
1281
1538
|
'&:not($appBarSticky)': {
|
|
1282
|
-
borderTopColor:
|
|
1539
|
+
borderTopColor: ColorV2.Transparent
|
|
1283
1540
|
}
|
|
1284
1541
|
}
|
|
1285
1542
|
},
|
|
@@ -1403,7 +1660,7 @@ var useStyles$9 = /*#__PURE__*/makeStyles(theme => ({
|
|
|
1403
1660
|
borderRight: 'none',
|
|
1404
1661
|
transition: theme.transitions.create(['border-color']),
|
|
1405
1662
|
'&:not($appBarSticky)': {
|
|
1406
|
-
borderBottomColor:
|
|
1663
|
+
borderBottomColor: ColorV2.Transparent
|
|
1407
1664
|
}
|
|
1408
1665
|
}
|
|
1409
1666
|
},
|
|
@@ -1841,7 +2098,7 @@ var FormControl$1 = /*#__PURE__*/styled(FormControl$2).withConfig({
|
|
|
1841
2098
|
var FormHelperText$2 = /*#__PURE__*/styled(FormHelperText$4).withConfig({
|
|
1842
2099
|
displayName: "RadioField__FormHelperText",
|
|
1843
2100
|
componentId: "SD__sc-6ey4qt-1"
|
|
1844
|
-
})(["color:", ";margin-left:30px;margin-top:0;margin-bottom:4px;&.Mui-error{color:", ";}"],
|
|
2101
|
+
})(["color:", ";margin-left:30px;margin-top:0;margin-bottom:4px;&.Mui-error{color:", ";}"], ColorV2.Dark300, ColorV2.Red500);
|
|
1845
2102
|
var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1846
2103
|
var {
|
|
1847
2104
|
label,
|
|
@@ -1891,7 +2148,7 @@ var Content = /*#__PURE__*/styled.div.withConfig({
|
|
|
1891
2148
|
var {
|
|
1892
2149
|
active
|
|
1893
2150
|
} = _ref;
|
|
1894
|
-
return active ?
|
|
2151
|
+
return active ? ColorV2.Blue300 : ColorV2.Silver500;
|
|
1895
2152
|
});
|
|
1896
2153
|
var Caption = /*#__PURE__*/styled.div.withConfig({
|
|
1897
2154
|
displayName: "RadioFieldCard__Caption",
|
|
@@ -1953,11 +2210,11 @@ var _excluded$m = ["name", "value", "onChange", "RadioGroupProps", "label", "For
|
|
|
1953
2210
|
var FormLabel$1 = /*#__PURE__*/styled(FormLabel$2).withConfig({
|
|
1954
2211
|
displayName: "RadioGroupField__FormLabel",
|
|
1955
2212
|
componentId: "SD__sc-1udxviq-0"
|
|
1956
|
-
})(["margin-bottom:8px;color:", ";font-weight:600;"],
|
|
2213
|
+
})(["margin-bottom:8px;color:", ";font-weight:600;"], ColorV2.Dark300);
|
|
1957
2214
|
var FormHelperText$3 = /*#__PURE__*/styled(FormHelperText$4).withConfig({
|
|
1958
2215
|
displayName: "RadioGroupField__FormHelperText",
|
|
1959
2216
|
componentId: "SD__sc-1udxviq-1"
|
|
1960
|
-
})(["margin-top:8px;color:", ";&.Mui-error{color:", ";}"],
|
|
2217
|
+
})(["margin-top:8px;color:", ";&.Mui-error{color:", ";}"], ColorV2.Dark300, ColorV2.Red500);
|
|
1961
2218
|
var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1962
2219
|
var {
|
|
1963
2220
|
name,
|
|
@@ -2023,8 +2280,8 @@ var PaddedContent = /*#__PURE__*/styled.span.withConfig({
|
|
|
2023
2280
|
})(["padding:2px 0 0;"]);
|
|
2024
2281
|
var useStyles$b = /*#__PURE__*/makeStyles(theme => ({
|
|
2025
2282
|
root: {
|
|
2026
|
-
color:
|
|
2027
|
-
backgroundColor:
|
|
2283
|
+
color: ColorV2.White,
|
|
2284
|
+
backgroundColor: ColorV2.Dark500,
|
|
2028
2285
|
alignItems: 'flex-start',
|
|
2029
2286
|
padding: '10px 16px',
|
|
2030
2287
|
[theme.breakpoints.up('md')]: {
|
|
@@ -2047,17 +2304,17 @@ var useStyles$b = /*#__PURE__*/makeStyles(theme => ({
|
|
|
2047
2304
|
fontSize: theme.spacing(3)
|
|
2048
2305
|
},
|
|
2049
2306
|
closeButton: {
|
|
2050
|
-
color:
|
|
2307
|
+
color: ColorV2.White40,
|
|
2051
2308
|
'&:hover, &:focus': {
|
|
2052
|
-
backgroundColor:
|
|
2053
|
-
color:
|
|
2309
|
+
backgroundColor: ColorV2.White08,
|
|
2310
|
+
color: ColorV2.White40
|
|
2054
2311
|
}
|
|
2055
2312
|
},
|
|
2056
2313
|
variantError: {
|
|
2057
|
-
color:
|
|
2058
|
-
background:
|
|
2314
|
+
color: ColorV2.Red500,
|
|
2315
|
+
background: ColorV2.Red50,
|
|
2059
2316
|
'& $closeButton': {
|
|
2060
|
-
color:
|
|
2317
|
+
color: ColorV2.Red500
|
|
2061
2318
|
}
|
|
2062
2319
|
},
|
|
2063
2320
|
variantSuccess: {}
|
|
@@ -2314,56 +2571,56 @@ var useStyles$c = /*#__PURE__*/makeStyles(theme => ({
|
|
|
2314
2571
|
},
|
|
2315
2572
|
variantSubtle: {
|
|
2316
2573
|
'&$colorGrey': {
|
|
2317
|
-
color:
|
|
2318
|
-
backgroundColor:
|
|
2574
|
+
color: ColorV2.Dark300,
|
|
2575
|
+
backgroundColor: ColorV2.Silver200
|
|
2319
2576
|
},
|
|
2320
2577
|
'&$colorBlue': {
|
|
2321
|
-
color:
|
|
2322
|
-
backgroundColor:
|
|
2578
|
+
color: ColorV2.Blue500,
|
|
2579
|
+
backgroundColor: ColorV2.Blue50
|
|
2323
2580
|
},
|
|
2324
2581
|
'&$colorGreen': {
|
|
2325
|
-
color:
|
|
2326
|
-
backgroundColor:
|
|
2582
|
+
color: ColorV2.Green500,
|
|
2583
|
+
backgroundColor: ColorV2.Green50
|
|
2327
2584
|
},
|
|
2328
2585
|
'&$colorPurple': {
|
|
2329
|
-
color:
|
|
2330
|
-
backgroundColor:
|
|
2586
|
+
color: ColorV2.Purple500,
|
|
2587
|
+
backgroundColor: ColorV2.Purple50
|
|
2331
2588
|
},
|
|
2332
2589
|
'&$colorRed': {
|
|
2333
|
-
color:
|
|
2334
|
-
backgroundColor:
|
|
2590
|
+
color: ColorV2.Red500,
|
|
2591
|
+
backgroundColor: ColorV2.Red50
|
|
2335
2592
|
},
|
|
2336
2593
|
'&$colorTeal': {
|
|
2337
|
-
color:
|
|
2338
|
-
backgroundColor:
|
|
2594
|
+
color: ColorV2.Teal500,
|
|
2595
|
+
backgroundColor: ColorV2.Teal50
|
|
2339
2596
|
},
|
|
2340
2597
|
'&$colorYellow': {
|
|
2341
|
-
color:
|
|
2342
|
-
backgroundColor:
|
|
2598
|
+
color: ColorV2.Yellow500,
|
|
2599
|
+
backgroundColor: ColorV2.Yellow50
|
|
2343
2600
|
}
|
|
2344
2601
|
},
|
|
2345
2602
|
variantBold: {
|
|
2346
|
-
color:
|
|
2603
|
+
color: ColorV2.White,
|
|
2347
2604
|
'&$colorGrey': {
|
|
2348
|
-
backgroundColor:
|
|
2605
|
+
backgroundColor: ColorV2.Dark300
|
|
2349
2606
|
},
|
|
2350
2607
|
'&$colorBlue': {
|
|
2351
|
-
backgroundColor:
|
|
2608
|
+
backgroundColor: ColorV2.Blue300
|
|
2352
2609
|
},
|
|
2353
2610
|
'&$colorGreen': {
|
|
2354
|
-
backgroundColor:
|
|
2611
|
+
backgroundColor: ColorV2.Green300
|
|
2355
2612
|
},
|
|
2356
2613
|
'&$colorPurple': {
|
|
2357
|
-
backgroundColor:
|
|
2614
|
+
backgroundColor: ColorV2.Purple300
|
|
2358
2615
|
},
|
|
2359
2616
|
'&$colorRed': {
|
|
2360
|
-
backgroundColor:
|
|
2617
|
+
backgroundColor: ColorV2.Red300
|
|
2361
2618
|
},
|
|
2362
2619
|
'&$colorTeal': {
|
|
2363
|
-
backgroundColor:
|
|
2620
|
+
backgroundColor: ColorV2.Teal300
|
|
2364
2621
|
},
|
|
2365
2622
|
'&$colorYellow': {
|
|
2366
|
-
backgroundColor:
|
|
2623
|
+
backgroundColor: ColorV2.Yellow300
|
|
2367
2624
|
}
|
|
2368
2625
|
},
|
|
2369
2626
|
colorGrey: {},
|
|
@@ -2498,22 +2755,22 @@ function overrideAvatar(theme) {
|
|
|
2498
2755
|
}
|
|
2499
2756
|
}),
|
|
2500
2757
|
colorDefault: {
|
|
2501
|
-
color:
|
|
2502
|
-
backgroundColor:
|
|
2758
|
+
color: ColorV2.Dark300,
|
|
2759
|
+
backgroundColor: ColorV2.Silver300
|
|
2503
2760
|
}
|
|
2504
2761
|
};
|
|
2505
2762
|
}
|
|
2506
2763
|
|
|
2507
2764
|
function outlineShadow() {
|
|
2508
2765
|
var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
2509
|
-
var color = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
2766
|
+
var color = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ColorV2.Transparent;
|
|
2510
2767
|
return "0 0 0 ".concat(size, "px ").concat(color);
|
|
2511
2768
|
}
|
|
2512
2769
|
function textVariant(text, outline, background, progress) {
|
|
2513
2770
|
return {
|
|
2514
2771
|
color: text,
|
|
2515
2772
|
boxShadow: outlineShadow(),
|
|
2516
|
-
backgroundColor:
|
|
2773
|
+
backgroundColor: ColorV2.Transparent,
|
|
2517
2774
|
'&:hover': {
|
|
2518
2775
|
backgroundColor: background
|
|
2519
2776
|
},
|
|
@@ -2527,7 +2784,7 @@ function textVariant(text, outline, background, progress) {
|
|
|
2527
2784
|
'&$disabled': {
|
|
2528
2785
|
color: outline,
|
|
2529
2786
|
boxShadow: outlineShadow(),
|
|
2530
|
-
backgroundColor:
|
|
2787
|
+
backgroundColor: ColorV2.Transparent
|
|
2531
2788
|
},
|
|
2532
2789
|
'&$disabled[aria-busy="true"]': {
|
|
2533
2790
|
color: progress
|
|
@@ -2535,7 +2792,7 @@ function textVariant(text, outline, background, progress) {
|
|
|
2535
2792
|
};
|
|
2536
2793
|
}
|
|
2537
2794
|
function outlinedBorder(borderColor) {
|
|
2538
|
-
var outlineColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
2795
|
+
var outlineColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ColorV2.Transparent;
|
|
2539
2796
|
return "inset 0 0 0 1px ".concat(borderColor, ", 0 0 0 2px ").concat(outlineColor);
|
|
2540
2797
|
}
|
|
2541
2798
|
function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, activeText, activeBorder, activeOutline, activeBackground, progress, backgroundColor) {
|
|
@@ -2665,11 +2922,11 @@ function overrideButton(theme) {
|
|
|
2665
2922
|
},
|
|
2666
2923
|
text: {
|
|
2667
2924
|
padding: undefined,
|
|
2668
|
-
'&[data-color="error"]': textVariant(
|
|
2669
|
-
'&[data-color="success"]': textVariant(
|
|
2670
|
-
'&[data-color="white"]': textVariant(
|
|
2925
|
+
'&[data-color="error"]': textVariant(ColorV2.Red300, ColorV2.Red100, ColorV2.Red50, ColorV2.Red200),
|
|
2926
|
+
'&[data-color="success"]': textVariant(ColorV2.Green300, ColorV2.Green100, ColorV2.Green50, ColorV2.Green200),
|
|
2927
|
+
'&[data-color="white"]': textVariant(ColorV2.White, ColorV2.White50, ColorV2.White10, ColorV2.White50)
|
|
2671
2928
|
},
|
|
2672
|
-
textPrimary: textVariant(
|
|
2929
|
+
textPrimary: textVariant(ColorV2.Blue300, ColorV2.Blue100, ColorV2.Blue50, ColorV2.Blue200),
|
|
2673
2930
|
textSizeSmall: {
|
|
2674
2931
|
padding: undefined,
|
|
2675
2932
|
fontSize: undefined
|
|
@@ -2684,11 +2941,11 @@ function overrideButton(theme) {
|
|
|
2684
2941
|
'&$disabled': {
|
|
2685
2942
|
border: undefined
|
|
2686
2943
|
},
|
|
2687
|
-
'&[data-color="error"]': outlinedVariant(
|
|
2688
|
-
'&[data-color="success"]': outlinedVariant(
|
|
2689
|
-
'&[data-color="white"]': outlinedVariant(
|
|
2944
|
+
'&[data-color="error"]': outlinedVariant(ColorV2.Red300, ColorV2.Red300, ColorV2.Red100, ColorV2.Red100, ColorV2.Red300, ColorV2.Red300, ColorV2.Red100, ColorV2.Red50, ColorV2.Red300, ColorV2.White),
|
|
2945
|
+
'&[data-color="success"]': outlinedVariant(ColorV2.Green300, ColorV2.Green300, ColorV2.Green100, ColorV2.Green100, ColorV2.Green300, ColorV2.Green300, ColorV2.Green100, ColorV2.Green50, ColorV2.Green300, ColorV2.White),
|
|
2946
|
+
'&[data-color="white"]': outlinedVariant(ColorV2.White, ColorV2.White50, ColorV2.White50, ColorV2.White40, ColorV2.White, ColorV2.White50, ColorV2.White40, ColorV2.White10, ColorV2.White50, ColorV2.Transparent)
|
|
2690
2947
|
},
|
|
2691
|
-
outlinedPrimary: outlinedVariant(
|
|
2948
|
+
outlinedPrimary: outlinedVariant(ColorV2.Dark500, ColorV2.Silver500, ColorV2.Silver500, ColorV2.Silver400, ColorV2.Blue300, ColorV2.Blue300, ColorV2.Blue100, ColorV2.Blue50, ColorV2.Dark200, ColorV2.White),
|
|
2692
2949
|
outlinedSizeSmall: {
|
|
2693
2950
|
padding: undefined,
|
|
2694
2951
|
fontSize: undefined
|
|
@@ -2722,11 +2979,11 @@ function overrideButton(theme) {
|
|
|
2722
2979
|
boxShadow: undefined,
|
|
2723
2980
|
backgroundColor: undefined
|
|
2724
2981
|
},
|
|
2725
|
-
'&[data-color="error"]': containedVariant(
|
|
2726
|
-
'&[data-color="success"]': containedVariant(
|
|
2727
|
-
'&[data-color="white"]': containedVariant(
|
|
2982
|
+
'&[data-color="error"]': containedVariant(ColorV2.White, ColorV2.Red300, ColorV2.Red100, ColorV2.Red500, ColorV2.White, ColorV2.Red100),
|
|
2983
|
+
'&[data-color="success"]': containedVariant(ColorV2.White, ColorV2.Green300, ColorV2.Green100, ColorV2.Green500, ColorV2.White, ColorV2.Green100),
|
|
2984
|
+
'&[data-color="white"]': containedVariant(ColorV2.White, ColorV2.White20, ColorV2.White40, ColorV2.White40, ColorV2.White50, ColorV2.White08)
|
|
2728
2985
|
},
|
|
2729
|
-
containedPrimary: containedVariant(
|
|
2986
|
+
containedPrimary: containedVariant(ColorV2.White, ColorV2.Blue300, ColorV2.Blue100, ColorV2.Blue500, ColorV2.White, ColorV2.Blue100),
|
|
2730
2987
|
containedSizeSmall: {
|
|
2731
2988
|
padding: undefined,
|
|
2732
2989
|
fontSize: undefined
|
|
@@ -2760,7 +3017,7 @@ function overrideCheckbox(theme) {
|
|
|
2760
3017
|
height: "17",
|
|
2761
3018
|
x: "3.5",
|
|
2762
3019
|
y: "3.5",
|
|
2763
|
-
fill:
|
|
3020
|
+
fill: ColorV2.White,
|
|
2764
3021
|
stroke: "currentColor",
|
|
2765
3022
|
rx: "1.5"
|
|
2766
3023
|
})
|
|
@@ -2774,7 +3031,7 @@ function overrideCheckbox(theme) {
|
|
|
2774
3031
|
fill: "currentColor",
|
|
2775
3032
|
rx: "2"
|
|
2776
3033
|
}), /*#__PURE__*/jsx("path", {
|
|
2777
|
-
fill:
|
|
3034
|
+
fill: ColorV2.White,
|
|
2778
3035
|
d: "M15.73 8l-.63.63c-1.43 1.43-2.94 3.05-4.37 4.5l-1.9-1.57-.7-.57L7 12.38l.7.57 2.53 2.09.63.52.58-.58c1.6-1.62 3.35-3.5 4.93-5.08l.63-.63L15.73 8z"
|
|
2779
3036
|
})]
|
|
2780
3037
|
}),
|
|
@@ -2787,14 +3044,14 @@ function overrideCheckbox(theme) {
|
|
|
2787
3044
|
fill: "currentIcon",
|
|
2788
3045
|
rx: "2"
|
|
2789
3046
|
}), /*#__PURE__*/jsx("path", {
|
|
2790
|
-
fill:
|
|
3047
|
+
fill: ColorV2.White,
|
|
2791
3048
|
d: "M7 11h10v2H7v-2z"
|
|
2792
3049
|
})]
|
|
2793
3050
|
})
|
|
2794
3051
|
};
|
|
2795
3052
|
theme.overrides.MuiCheckbox = {
|
|
2796
3053
|
root: {
|
|
2797
|
-
color:
|
|
3054
|
+
color: ColorV2.Dark100,
|
|
2798
3055
|
width: theme.spacing(3),
|
|
2799
3056
|
height: theme.spacing(3),
|
|
2800
3057
|
marginRight: theme.spacing(1),
|
|
@@ -2803,7 +3060,7 @@ function overrideCheckbox(theme) {
|
|
|
2803
3060
|
marginBottom: theme.spacing(0.5),
|
|
2804
3061
|
padding: 0,
|
|
2805
3062
|
'&:hover': {
|
|
2806
|
-
backgroundColor:
|
|
3063
|
+
backgroundColor: ColorV2.Blue10
|
|
2807
3064
|
},
|
|
2808
3065
|
'&.MuiButtonBase-root': {
|
|
2809
3066
|
borderRadius: theme.spacing(0.5)
|
|
@@ -2811,11 +3068,11 @@ function overrideCheckbox(theme) {
|
|
|
2811
3068
|
},
|
|
2812
3069
|
colorPrimary: {
|
|
2813
3070
|
'&$checked$disabled': {
|
|
2814
|
-
color:
|
|
3071
|
+
color: ColorV2.Silver500
|
|
2815
3072
|
},
|
|
2816
3073
|
'&:hover:not($checked)': {
|
|
2817
|
-
color:
|
|
2818
|
-
backgroundColor:
|
|
3074
|
+
color: ColorV2.Dark100,
|
|
3075
|
+
backgroundColor: ColorV2.Blue10
|
|
2819
3076
|
}
|
|
2820
3077
|
}
|
|
2821
3078
|
};
|
|
@@ -2841,10 +3098,10 @@ function overrideChip(theme) {
|
|
|
2841
3098
|
color: undefined,
|
|
2842
3099
|
height: undefined,
|
|
2843
3100
|
borderRadius: 4,
|
|
2844
|
-
backgroundColor:
|
|
3101
|
+
backgroundColor: ColorV2.Silver200,
|
|
2845
3102
|
'&$disabled': {
|
|
2846
3103
|
opacity: undefined,
|
|
2847
|
-
color:
|
|
3104
|
+
color: ColorV2.Dark100
|
|
2848
3105
|
}
|
|
2849
3106
|
}),
|
|
2850
3107
|
sizeSmall: {
|
|
@@ -2866,16 +3123,16 @@ function overrideChip(theme) {
|
|
|
2866
3123
|
boxShadow: undefined
|
|
2867
3124
|
},
|
|
2868
3125
|
'&:focus': {
|
|
2869
|
-
boxShadow: "0 0 0 2px ".concat(
|
|
3126
|
+
boxShadow: "0 0 0 2px ".concat(ColorV2.Dark30)
|
|
2870
3127
|
},
|
|
2871
3128
|
'&:active, &:hover': {
|
|
2872
|
-
backgroundColor:
|
|
3129
|
+
backgroundColor: ColorV2.Silver400
|
|
2873
3130
|
}
|
|
2874
3131
|
},
|
|
2875
3132
|
deletable: {
|
|
2876
3133
|
'&:focus': {
|
|
2877
3134
|
backgroundColor: undefined,
|
|
2878
|
-
boxShadow: "0 0 0 2px ".concat(
|
|
3135
|
+
boxShadow: "0 0 0 2px ".concat(ColorV2.Silver400)
|
|
2879
3136
|
}
|
|
2880
3137
|
},
|
|
2881
3138
|
deleteIcon: {
|
|
@@ -2885,12 +3142,12 @@ function overrideChip(theme) {
|
|
|
2885
3142
|
transition: theme.transitions.create('background-color'),
|
|
2886
3143
|
'&:active, &:hover, &:focus': {
|
|
2887
3144
|
'& > svg': {
|
|
2888
|
-
backgroundColor:
|
|
3145
|
+
backgroundColor: ColorV2.Silver400
|
|
2889
3146
|
}
|
|
2890
3147
|
},
|
|
2891
3148
|
'& > svg': {
|
|
2892
3149
|
borderRadius: '50%',
|
|
2893
|
-
color:
|
|
3150
|
+
color: ColorV2.Dark100,
|
|
2894
3151
|
fontSize: '1em'
|
|
2895
3152
|
}
|
|
2896
3153
|
},
|
|
@@ -2905,7 +3162,7 @@ function overrideChip(theme) {
|
|
|
2905
3162
|
}
|
|
2906
3163
|
},
|
|
2907
3164
|
icon: {
|
|
2908
|
-
color:
|
|
3165
|
+
color: ColorV2.Dark100,
|
|
2909
3166
|
fontSize: '1em',
|
|
2910
3167
|
marginRight: undefined
|
|
2911
3168
|
},
|
|
@@ -2977,36 +3234,36 @@ function overrideDrawer(theme) {
|
|
|
2977
3234
|
function overrideIconButton(theme) {
|
|
2978
3235
|
theme.overrides.MuiIconButton = {
|
|
2979
3236
|
root: {
|
|
2980
|
-
color:
|
|
2981
|
-
backgroundColor:
|
|
3237
|
+
color: ColorV2.Dark100,
|
|
3238
|
+
backgroundColor: ColorV2.Transparent,
|
|
2982
3239
|
transition: theme.transitions.create(['color', 'background-color'], {
|
|
2983
3240
|
duration: theme.transitions.duration.short
|
|
2984
3241
|
}),
|
|
2985
3242
|
'&:hover': {
|
|
2986
|
-
backgroundColor:
|
|
3243
|
+
backgroundColor: ColorV2.Transparent
|
|
2987
3244
|
},
|
|
2988
3245
|
'&:active': {
|
|
2989
|
-
color:
|
|
3246
|
+
color: ColorV2.Dark500
|
|
2990
3247
|
},
|
|
2991
3248
|
'&:hover ': {
|
|
2992
|
-
color:
|
|
3249
|
+
color: ColorV2.Dark300
|
|
2993
3250
|
},
|
|
2994
3251
|
'&:focus': {
|
|
2995
|
-
backgroundColor:
|
|
3252
|
+
backgroundColor: ColorV2.Silver400
|
|
2996
3253
|
},
|
|
2997
3254
|
'&$disabled': {
|
|
2998
|
-
color:
|
|
3255
|
+
color: ColorV2.Silver500
|
|
2999
3256
|
}
|
|
3000
3257
|
},
|
|
3001
3258
|
colorPrimary: {
|
|
3002
3259
|
'&:active': {
|
|
3003
|
-
color:
|
|
3260
|
+
color: ColorV2.Blue500
|
|
3004
3261
|
},
|
|
3005
3262
|
'&:hover ': {
|
|
3006
|
-
color:
|
|
3263
|
+
color: ColorV2.Blue300
|
|
3007
3264
|
},
|
|
3008
3265
|
'&:focus': {
|
|
3009
|
-
backgroundColor:
|
|
3266
|
+
backgroundColor: ColorV2.Blue50
|
|
3010
3267
|
}
|
|
3011
3268
|
},
|
|
3012
3269
|
edgeEnd: {
|
|
@@ -3031,21 +3288,21 @@ function overrideLink(theme) {
|
|
|
3031
3288
|
backgroundSize: '100% 1px',
|
|
3032
3289
|
backgroundRepeat: 'repeat-x',
|
|
3033
3290
|
backgroundPosition: '0 100%',
|
|
3034
|
-
backgroundColor:
|
|
3291
|
+
backgroundColor: ColorV2.Transparent,
|
|
3035
3292
|
'&:focus': {
|
|
3036
3293
|
outline: 'none'
|
|
3037
3294
|
},
|
|
3038
3295
|
'&:disabled': {
|
|
3039
|
-
color:
|
|
3040
|
-
backgroundImage: line(
|
|
3296
|
+
color: ColorV2.Dark100,
|
|
3297
|
+
backgroundImage: line(ColorV2.Silver500),
|
|
3041
3298
|
'&:focus, &:hover, &:active': {
|
|
3042
|
-
color:
|
|
3043
|
-
backgroundImage: line(
|
|
3299
|
+
color: ColorV2.Dark100,
|
|
3300
|
+
backgroundImage: line(ColorV2.Silver500)
|
|
3044
3301
|
}
|
|
3045
3302
|
},
|
|
3046
3303
|
'&.MuiLink-underlineAlways': {
|
|
3047
3304
|
textDecoration: 'none',
|
|
3048
|
-
backgroundImage: line(
|
|
3305
|
+
backgroundImage: line(ColorV2.Silver500),
|
|
3049
3306
|
'&:hover, &:active': {
|
|
3050
3307
|
backgroundImage: line('currentColor')
|
|
3051
3308
|
}
|
|
@@ -3072,8 +3329,8 @@ function overrideLink(theme) {
|
|
|
3072
3329
|
},
|
|
3073
3330
|
'&.MuiTypography-colorTextPrimary, &.MuiTypography-colorTextSecondary': {
|
|
3074
3331
|
'&:focus, &:hover, &:active': {
|
|
3075
|
-
color:
|
|
3076
|
-
backgroundImage: line(
|
|
3332
|
+
color: ColorV2.Blue500,
|
|
3333
|
+
backgroundImage: line(ColorV2.Blue500)
|
|
3077
3334
|
}
|
|
3078
3335
|
}
|
|
3079
3336
|
},
|
|
@@ -3097,10 +3354,10 @@ function overrideList(theme) {
|
|
|
3097
3354
|
theme.overrides.MuiListItem = {
|
|
3098
3355
|
root: {
|
|
3099
3356
|
'&$selected, &$selected:hover': {
|
|
3100
|
-
backgroundColor:
|
|
3357
|
+
backgroundColor: ColorV2.Blue50
|
|
3101
3358
|
},
|
|
3102
3359
|
'& .MuiTouchRipple-root': {
|
|
3103
|
-
color:
|
|
3360
|
+
color: ColorV2.Blue100
|
|
3104
3361
|
}
|
|
3105
3362
|
}
|
|
3106
3363
|
};
|
|
@@ -3120,7 +3377,7 @@ function overrideMenu(theme) {
|
|
|
3120
3377
|
};
|
|
3121
3378
|
theme.overrides.MuiMenu = {
|
|
3122
3379
|
paper: {
|
|
3123
|
-
border: "1px solid ".concat(
|
|
3380
|
+
border: "1px solid ".concat(ColorV2.Silver400)
|
|
3124
3381
|
}
|
|
3125
3382
|
};
|
|
3126
3383
|
theme.overrides.MuiMenuItem = {
|
|
@@ -3135,30 +3392,30 @@ function overridePagination(theme) {
|
|
|
3135
3392
|
var props = {};
|
|
3136
3393
|
var overrides = {
|
|
3137
3394
|
root: {
|
|
3138
|
-
color:
|
|
3395
|
+
color: ColorV2.Dark500
|
|
3139
3396
|
},
|
|
3140
3397
|
page: {
|
|
3141
3398
|
'&:hover': {
|
|
3142
|
-
backgroundColor:
|
|
3399
|
+
backgroundColor: ColorV2.Silver200
|
|
3143
3400
|
},
|
|
3144
3401
|
'&$focusVisible': {
|
|
3145
3402
|
borderRadius: 4,
|
|
3146
|
-
backgroundColor:
|
|
3147
|
-
border: "1px solid ".concat(
|
|
3403
|
+
backgroundColor: ColorV2.White,
|
|
3404
|
+
border: "1px solid ".concat(ColorV2.Blue30)
|
|
3148
3405
|
},
|
|
3149
3406
|
'&$selected': {
|
|
3150
|
-
backgroundColor:
|
|
3407
|
+
backgroundColor: ColorV2.Silver400,
|
|
3151
3408
|
'&:hover, &$focusVisible': {
|
|
3152
|
-
backgroundColor:
|
|
3409
|
+
backgroundColor: ColorV2.Silver500
|
|
3153
3410
|
},
|
|
3154
3411
|
'&$disabled': {
|
|
3155
|
-
color:
|
|
3156
|
-
backgroundColor:
|
|
3412
|
+
color: ColorV2.Dark100,
|
|
3413
|
+
backgroundColor: ColorV2.Silver400
|
|
3157
3414
|
}
|
|
3158
3415
|
},
|
|
3159
3416
|
'&$disabled': {
|
|
3160
3417
|
opacity: undefined,
|
|
3161
|
-
color:
|
|
3418
|
+
color: ColorV2.Dark100
|
|
3162
3419
|
}
|
|
3163
3420
|
}
|
|
3164
3421
|
};
|
|
@@ -3178,7 +3435,7 @@ function overridePaper(theme) {
|
|
|
3178
3435
|
};
|
|
3179
3436
|
theme.overrides.MuiPaper = {
|
|
3180
3437
|
elevation0: {
|
|
3181
|
-
border: "1px solid ".concat(
|
|
3438
|
+
border: "1px solid ".concat(ColorV2.Silver400)
|
|
3182
3439
|
}
|
|
3183
3440
|
};
|
|
3184
3441
|
}
|
|
@@ -3199,7 +3456,7 @@ function overrideRadio(theme) {
|
|
|
3199
3456
|
cx: "12",
|
|
3200
3457
|
cy: "12",
|
|
3201
3458
|
r: "9",
|
|
3202
|
-
fill:
|
|
3459
|
+
fill: ColorV2.White,
|
|
3203
3460
|
stroke: "currentColor"
|
|
3204
3461
|
})
|
|
3205
3462
|
}),
|
|
@@ -3214,13 +3471,13 @@ function overrideRadio(theme) {
|
|
|
3214
3471
|
cx: "12",
|
|
3215
3472
|
cy: "12",
|
|
3216
3473
|
r: "4",
|
|
3217
|
-
fill:
|
|
3474
|
+
fill: ColorV2.White
|
|
3218
3475
|
})]
|
|
3219
3476
|
})
|
|
3220
3477
|
};
|
|
3221
3478
|
theme.overrides.MuiRadio = {
|
|
3222
3479
|
root: {
|
|
3223
|
-
color:
|
|
3480
|
+
color: ColorV2.Dark100,
|
|
3224
3481
|
width: theme.spacing(3),
|
|
3225
3482
|
height: theme.spacing(3),
|
|
3226
3483
|
marginRight: theme.spacing(1),
|
|
@@ -3231,10 +3488,10 @@ function overrideRadio(theme) {
|
|
|
3231
3488
|
},
|
|
3232
3489
|
colorPrimary: {
|
|
3233
3490
|
'&$checked$disabled': {
|
|
3234
|
-
color:
|
|
3491
|
+
color: ColorV2.Silver500
|
|
3235
3492
|
},
|
|
3236
3493
|
'&:hover:not($checked)': {
|
|
3237
|
-
color:
|
|
3494
|
+
color: ColorV2.Dark100
|
|
3238
3495
|
}
|
|
3239
3496
|
}
|
|
3240
3497
|
};
|
|
@@ -3299,7 +3556,7 @@ function overrideSvgIcon(theme) {
|
|
|
3299
3556
|
fontSize: 'var(--mui-svg-icon-size, 32px)'
|
|
3300
3557
|
},
|
|
3301
3558
|
colorAction: {
|
|
3302
|
-
color:
|
|
3559
|
+
color: ColorV2.Dark100
|
|
3303
3560
|
}
|
|
3304
3561
|
};
|
|
3305
3562
|
}
|
|
@@ -3324,7 +3581,7 @@ function overrideSwitch(theme) {
|
|
|
3324
3581
|
},
|
|
3325
3582
|
track: {
|
|
3326
3583
|
opacity: undefined,
|
|
3327
|
-
boxShadow: "0 0 0 0 ".concat(
|
|
3584
|
+
boxShadow: "0 0 0 0 ".concat(ColorV2.Transparent),
|
|
3328
3585
|
transition: theme.transitions.create(['box-shadow', 'background-color'], {
|
|
3329
3586
|
duration: theme.transitions.duration.shortest
|
|
3330
3587
|
}),
|
|
@@ -3334,7 +3591,7 @@ function overrideSwitch(theme) {
|
|
|
3334
3591
|
}
|
|
3335
3592
|
},
|
|
3336
3593
|
thumb: {
|
|
3337
|
-
color:
|
|
3594
|
+
color: ColorV2.White,
|
|
3338
3595
|
boxShadow: undefined,
|
|
3339
3596
|
width: theme.spacing(3),
|
|
3340
3597
|
height: theme.spacing(3),
|
|
@@ -3368,24 +3625,24 @@ function overrideSwitch(theme) {
|
|
|
3368
3625
|
'&:hover': {
|
|
3369
3626
|
backgroundColor: undefined,
|
|
3370
3627
|
'& + $track': {
|
|
3371
|
-
backgroundColor:
|
|
3628
|
+
backgroundColor: ColorV2.Blue500
|
|
3372
3629
|
}
|
|
3373
3630
|
}
|
|
3374
3631
|
},
|
|
3375
3632
|
'& + $track': {
|
|
3376
|
-
backgroundColor:
|
|
3633
|
+
backgroundColor: ColorV2.Silver500
|
|
3377
3634
|
},
|
|
3378
3635
|
'&$disabled + $track': {
|
|
3379
|
-
backgroundColor:
|
|
3636
|
+
backgroundColor: ColorV2.Dark30
|
|
3380
3637
|
},
|
|
3381
3638
|
'&$checked$disabled + $track': {
|
|
3382
|
-
backgroundColor:
|
|
3639
|
+
backgroundColor: ColorV2.Blue30
|
|
3383
3640
|
},
|
|
3384
3641
|
'&:hover + $track': {
|
|
3385
|
-
backgroundColor:
|
|
3642
|
+
backgroundColor: ColorV2.Dark100
|
|
3386
3643
|
},
|
|
3387
3644
|
'&.Mui-focusVisible + $track': {
|
|
3388
|
-
boxShadow: "0 0 0 3px ".concat(
|
|
3645
|
+
boxShadow: "0 0 0 3px ".concat(ColorV2.Blue30)
|
|
3389
3646
|
}
|
|
3390
3647
|
}
|
|
3391
3648
|
};
|
|
@@ -3403,7 +3660,7 @@ function overrideTabs(theme) {
|
|
|
3403
3660
|
},
|
|
3404
3661
|
scrollButtons: {
|
|
3405
3662
|
opacity: 1,
|
|
3406
|
-
color:
|
|
3663
|
+
color: ColorV2.Dark100,
|
|
3407
3664
|
width: theme.spacing(4),
|
|
3408
3665
|
transition: theme.transitions.create('opacity', {
|
|
3409
3666
|
duration: theme.transitions.duration.short
|
|
@@ -3423,9 +3680,9 @@ function overrideTabs(theme) {
|
|
|
3423
3680
|
}
|
|
3424
3681
|
}),
|
|
3425
3682
|
textColorPrimary: {
|
|
3426
|
-
color:
|
|
3683
|
+
color: ColorV2.Dark500,
|
|
3427
3684
|
'&:hover, &:focus': {
|
|
3428
|
-
color:
|
|
3685
|
+
color: ColorV2.Blue300
|
|
3429
3686
|
}
|
|
3430
3687
|
}
|
|
3431
3688
|
};
|
|
@@ -3449,7 +3706,7 @@ function overrideTextField(theme) {
|
|
|
3449
3706
|
};
|
|
3450
3707
|
theme.overrides.MuiFormLabel = {
|
|
3451
3708
|
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3452
|
-
color:
|
|
3709
|
+
color: ColorV2.Dark500,
|
|
3453
3710
|
'&.MuiFormLabel-root': {
|
|
3454
3711
|
fontSize: theme.spacing(2),
|
|
3455
3712
|
[sm]: {
|
|
@@ -3470,36 +3727,36 @@ function overrideTextField(theme) {
|
|
|
3470
3727
|
theme.overrides.MuiInputBase = {
|
|
3471
3728
|
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3472
3729
|
'&$disabled': {
|
|
3473
|
-
backgroundColor:
|
|
3730
|
+
backgroundColor: ColorV2.Silver30
|
|
3474
3731
|
},
|
|
3475
3732
|
'&$error': {
|
|
3476
|
-
borderColor:
|
|
3733
|
+
borderColor: ColorV2.Red500
|
|
3477
3734
|
},
|
|
3478
3735
|
'&.MuiOutlinedInput-root': {
|
|
3479
3736
|
'& fieldset': {
|
|
3480
|
-
borderColor:
|
|
3737
|
+
borderColor: ColorV2.Silver500
|
|
3481
3738
|
},
|
|
3482
3739
|
'&:hover fieldset': {
|
|
3483
|
-
borderColor:
|
|
3740
|
+
borderColor: ColorV2.Dark100
|
|
3484
3741
|
},
|
|
3485
3742
|
'&.Mui-focused fieldset': {
|
|
3486
|
-
borderColor:
|
|
3743
|
+
borderColor: ColorV2.Blue500
|
|
3487
3744
|
},
|
|
3488
3745
|
'&.Mui-error fieldset': {
|
|
3489
|
-
borderColor:
|
|
3746
|
+
borderColor: ColorV2.Red500
|
|
3490
3747
|
},
|
|
3491
3748
|
'&.Mui-error:hover fieldset': {
|
|
3492
|
-
borderColor:
|
|
3749
|
+
borderColor: ColorV2.Red500
|
|
3493
3750
|
},
|
|
3494
3751
|
'&.Mui-disabled fieldset': {
|
|
3495
|
-
borderColor:
|
|
3752
|
+
borderColor: ColorV2.Silver400
|
|
3496
3753
|
}
|
|
3497
3754
|
}
|
|
3498
3755
|
}),
|
|
3499
3756
|
input: {
|
|
3500
3757
|
textOverflow: 'ellipsis',
|
|
3501
3758
|
'&::placeholder': {
|
|
3502
|
-
color:
|
|
3759
|
+
color: ColorV2.Dark100,
|
|
3503
3760
|
opacity: 1
|
|
3504
3761
|
},
|
|
3505
3762
|
'&.MuiInputBase-input': {
|
|
@@ -3570,7 +3827,7 @@ function overrideTextField(theme) {
|
|
|
3570
3827
|
},
|
|
3571
3828
|
notchedOutline: {
|
|
3572
3829
|
top: 0,
|
|
3573
|
-
borderColor:
|
|
3830
|
+
borderColor: ColorV2.Silver500,
|
|
3574
3831
|
'& legend': {
|
|
3575
3832
|
display: 'none'
|
|
3576
3833
|
}
|
|
@@ -3583,7 +3840,7 @@ function overrideTextField(theme) {
|
|
|
3583
3840
|
icon: {
|
|
3584
3841
|
top: 'calc(50% - 0.5em)',
|
|
3585
3842
|
'$disabled &': {
|
|
3586
|
-
color:
|
|
3843
|
+
color: ColorV2.Dark100
|
|
3587
3844
|
},
|
|
3588
3845
|
fontSize: theme.spacing(3),
|
|
3589
3846
|
[sm]: {
|
|
@@ -3641,10 +3898,10 @@ function overrideTextField(theme) {
|
|
|
3641
3898
|
};
|
|
3642
3899
|
theme.overrides.MuiFormHelperText = {
|
|
3643
3900
|
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3644
|
-
color:
|
|
3901
|
+
color: ColorV2.Dark300,
|
|
3645
3902
|
marginTop: theme.spacing(0.5),
|
|
3646
3903
|
'&.Mui-error': {
|
|
3647
|
-
color:
|
|
3904
|
+
color: ColorV2.Red500
|
|
3648
3905
|
},
|
|
3649
3906
|
'&.MuiFormHelperText-root': {
|
|
3650
3907
|
fontSize: theme.spacing(2),
|
|
@@ -3681,7 +3938,7 @@ function overrideTooltip(theme) {
|
|
|
3681
3938
|
theme.overrides.MuiTooltip = {
|
|
3682
3939
|
tooltip: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3683
3940
|
padding: theme.spacing(1, 1.5),
|
|
3684
|
-
backgroundColor:
|
|
3941
|
+
backgroundColor: ColorV2.Dark500
|
|
3685
3942
|
}),
|
|
3686
3943
|
popperArrow: {
|
|
3687
3944
|
'&[x-placement*="top"] $arrow': {
|
|
@@ -3706,7 +3963,7 @@ function overrideTooltip(theme) {
|
|
|
3706
3963
|
}
|
|
3707
3964
|
},
|
|
3708
3965
|
arrow: {
|
|
3709
|
-
color:
|
|
3966
|
+
color: ColorV2.Dark500,
|
|
3710
3967
|
fontSize: theme.spacing(1)
|
|
3711
3968
|
}
|
|
3712
3969
|
};
|
|
@@ -3822,19 +4079,28 @@ function overrideTypography(theme) {
|
|
|
3822
4079
|
};
|
|
3823
4080
|
theme.overrides.MuiTypography = {
|
|
3824
4081
|
colorError: {
|
|
3825
|
-
color:
|
|
4082
|
+
color: ColorV2.Red500
|
|
3826
4083
|
},
|
|
3827
4084
|
colorPrimary: {
|
|
3828
|
-
color:
|
|
4085
|
+
color: ColorV2.Blue500
|
|
3829
4086
|
}
|
|
3830
4087
|
};
|
|
3831
4088
|
}
|
|
3832
4089
|
|
|
3833
|
-
|
|
4090
|
+
var GlobalStyles = /*#__PURE__*/createGlobalStyle(_ref => {
|
|
4091
|
+
var {
|
|
4092
|
+
theme
|
|
4093
|
+
} = _ref;
|
|
4094
|
+
var color = theme.palette.type === 'dark' ? ColorDarkInternal : ColorLightInternal;
|
|
4095
|
+
return "\n :root{\n --sd-white: ".concat(color.White, ";\n --sd-white-50: ").concat(color.White50, ";\n --sd-white-40: ").concat(color.White40, ";\n --sd-white-20: ").concat(color.White20, ";\n --sd-white-10: ").concat(color.White10, ";\n --sd-white-08: ").concat(color.White08, ";\n --sd-transparent: ").concat(color.Transparent, ";\n\n --sd-black: ").concat(color.Black, ";\n --sd-black-50: ").concat(color.Black50, ";\n --sd-black-20: ").concat(color.Black20, ";\n\n --sd-dark-30: ").concat(color.Dark30, ";\n --sd-blue-30: ").concat(color.Blue30, ";\n --sd-green-30: ").concat(color.Green30, ";\n --sd-red-30: ").concat(color.Red30, ";\n --sd-silver-30: ").concat(color.Silver30, ";\n\n --sd-blue-10: ").concat(color.Blue10, ";\n --sd-red-10: ").concat(color.Red10, ";\n\n /* Legacy Neutral Colors */\n --sd-grey-100: ").concat(color.Grey100, "; /* @deprecated Use Dark100 */\n --sd-grey-200: ").concat(color.Grey200, "; /* @deprecated Use Dark200 */\n --sd-grey-300: ").concat(color.Grey300, "; /* @deprecated Use Dark300 */\n --sd-grey-400: ").concat(color.Grey400, "; /* @deprecated Use Dark400 */\n --sd-grey-450: ").concat(color.Grey450, "; /* @deprecated Use Dark450 */\n --sd-grey-500: ").concat(color.Grey500, "; /* @deprecated Use Dark500 */\n\n --sd-dark-200: ").concat(color.Dark200, "; /* @deprecated */\n --sd-dark-400: ").concat(color.Dark400, "; /* @deprecated */\n --sd-dark-450: ").concat(color.Dark450, "; /* @deprecated */\n\n --sd-silver-100: ").concat(color.Silver100, "; /* @deprecated */\n --sd-silver-300: ").concat(color.Silver300, "; /* @deprecated */\n\n /* Legacy Extended Palette */\n --sd-blue-75: ").concat(color.Blue75, "; /* @deprecated */\n --sd-blue-100: ").concat(color.Blue100, "; /* @deprecated */\n --sd-blue-200: ").concat(color.Blue200, "; /* @deprecated */\n --sd-blue-400: ").concat(color.Blue400, "; /* @deprecated */\n\n --sd-green-75: ").concat(color.Green75, "; /* @deprecated */\n --sd-green-100: ").concat(color.Green100, "; /* @deprecated */\n --sd-green-200: ").concat(color.Green200, "; /* @deprecated */\n --sd-green-400: ").concat(color.Green400, "; /* @deprecated */\n\n --sd-purple-75: ").concat(color.Purple75, "; /* @deprecated */\n --sd-purple-100: ").concat(color.Purple100, "; /* @deprecated */\n --sd-purple-200: ").concat(color.Purple200, "; /* @deprecated */\n --sd-purple-400: ").concat(color.Purple400, "; /* @deprecated */\n\n --sd-red-75: ").concat(color.Red75, "; /* @deprecated */\n --sd-red-100: ").concat(color.Red100, "; /* @deprecated */\n --sd-red-200: ").concat(color.Red200, "; /* @deprecated */\n --sd-red-400: ").concat(color.Red400, "; /* @deprecated */\n\n --sd-teal-75: ").concat(color.Teal75, "; /* @deprecated */\n --sd-teal-100: ").concat(color.Teal100, "; /* @deprecated */\n --sd-teal-200: ").concat(color.Teal200, "; /* @deprecated */\n --sd-teal-400: ").concat(color.Teal400, "; /* @deprecated */\n\n --sd-yellow-75: ").concat(color.Yellow75, "; /* @deprecated */\n --sd-yellow-100: ").concat(color.Yellow100, "; /* @deprecated */\n --sd-yellow-200: ").concat(color.Yellow200, "; /* @deprecated */\n --sd-yellow-400: ").concat(color.Yellow400, "; /* @deprecated */\n --sd-dark-50: ").concat(color.Dark50, ";\n /* extended palette */\n \n --sd-blue-50: ").concat(color.Blue50, ";\n --sd-blue-500: ").concat(color.Blue500, ";\n --sd-blue-300: ").concat(color.Blue300, ";\n --sd-green-300: ").concat(color.Green300, ";\n --sd-green-500: ").concat(color.Green500, ";\n --sd-green-50: ").concat(color.Green50, ";\n --sd-yellow-300: ").concat(color.Yellow300, ";\n --sd-yellow-500: ").concat(color.Yellow500, ";\n --sd-yellow-50: ").concat(color.Yellow50, ";\n --sd-red-300: ").concat(color.Red300, ";\n --sd-red-500: ").concat(color.Red500, ";\n --sd-red-50: ").concat(color.Red50, ";\n --sd-purple-300: ").concat(color.Purple300, ";\n --sd-purple-500: ").concat(color.Purple500, ";\n --sd-purple-50: ").concat(color.Purple50, ";\n --sd-teal-300: ").concat(color.Teal300, ";\n --sd-teal-500: ").concat(color.Teal500, ";\n --sd-teal-50: ").concat(color.Teal50, ";\n --sd-silver-500: ").concat(color.Silver500, ";\n --sd-silver-200: ").concat(color.Silver200, ";\n --sd-silver-400: ").concat(color.Silver400, ";\n --sd-dark-100: ").concat(color.Dark100, ";\n --sd-dark-300: ").concat(color.Dark300, ";\n --sd-dark-500: ").concat(color.Dark500, ";\n }\n ");
|
|
4096
|
+
});
|
|
4097
|
+
|
|
4098
|
+
function createSuperDispatchTheme(type) {
|
|
3834
4099
|
var breakpoints = createBreakpoints({});
|
|
3835
4100
|
var theme = createTheme({
|
|
3836
4101
|
breakpoints,
|
|
3837
4102
|
palette: {
|
|
4103
|
+
type,
|
|
3838
4104
|
primary: {
|
|
3839
4105
|
main: Color.Blue300
|
|
3840
4106
|
},
|
|
@@ -3914,24 +4180,26 @@ function ThemeProvider(_ref) {
|
|
|
3914
4180
|
var {
|
|
3915
4181
|
modifier,
|
|
3916
4182
|
children,
|
|
4183
|
+
mode,
|
|
3917
4184
|
injectFirst = true
|
|
3918
4185
|
} = _ref;
|
|
3919
|
-
var theme =
|
|
3920
|
-
var nextTheme = createSuperDispatchTheme();
|
|
4186
|
+
var theme = useMemo(() => {
|
|
4187
|
+
var nextTheme = createSuperDispatchTheme(mode);
|
|
3921
4188
|
return !modifier ? nextTheme : modifier(nextTheme);
|
|
3922
|
-
|
|
4189
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps -- modifier may update on every render
|
|
4190
|
+
}, [mode]);
|
|
3923
4191
|
return /*#__PURE__*/jsx(StylesProvider, {
|
|
3924
4192
|
injectFirst: injectFirst,
|
|
3925
4193
|
generateClassName: generateClassName,
|
|
3926
4194
|
children: /*#__PURE__*/jsxs(ThemeProvider$1, {
|
|
3927
4195
|
theme: theme,
|
|
3928
|
-
children: [/*#__PURE__*/jsx(CssBaseline, {}), /*#__PURE__*/
|
|
4196
|
+
children: [/*#__PURE__*/jsx(CssBaseline, {}), /*#__PURE__*/jsxs(ThemeProvider$2, {
|
|
3929
4197
|
theme: theme,
|
|
3930
|
-
children: /*#__PURE__*/jsx(ResponsiveContextProvider, {
|
|
4198
|
+
children: [/*#__PURE__*/jsx(GlobalStyles, {}), /*#__PURE__*/jsx(ResponsiveContextProvider, {
|
|
3931
4199
|
children: /*#__PURE__*/jsx(SnackbarStackProvider, {
|
|
3932
4200
|
children: children
|
|
3933
4201
|
})
|
|
3934
|
-
})
|
|
4202
|
+
})]
|
|
3935
4203
|
})]
|
|
3936
4204
|
})
|
|
3937
4205
|
});
|
|
@@ -4036,5 +4304,5 @@ function ExitTransitionPlaceholder(_ref) {
|
|
|
4036
4304
|
return renderChildren(children);
|
|
4037
4305
|
}
|
|
4038
4306
|
|
|
4039
|
-
export { AdaptiveToolbar, AdaptiveVerticalToolbar, AvatarButton, Button, CardButton, CheckboxField, CheckboxGroupField, Color, Column, Columns, DescriptionList, DescriptionListItem, DrawerActions, DrawerContent, DrawerList, DrawerTitle, DropdownButton, ExitTransitionPlaceholder, GridStack, InfoCard, InfoTooltip, Inline, InlineGrid, NumberField, OverflowText, PatternField, RadioField, RadioFieldCard, RadioGroupField, ResponsiveContextProvider, Snackbar, SnackbarContent, SnackbarStackConsumer, SnackbarStackProvider, Stack, Tag, ThemeProvider, Tiles, VisibilityObserver, assignRef, isColorProp, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useCollapseBreakpoint, useMinBreakpoint, useResizeObserver, useResponsiveContext, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
|
|
4307
|
+
export { AdaptiveToolbar, AdaptiveVerticalToolbar, AvatarButton, Button, CardButton, CheckboxField, CheckboxGroupField, Color, ColorDarkInternal, ColorLightInternal, ColorV2, Column, Columns, DescriptionList, DescriptionListItem, DrawerActions, DrawerContent, DrawerList, DrawerTitle, DropdownButton, ExitTransitionPlaceholder, GridStack, InfoCard, InfoTooltip, Inline, InlineGrid, NumberField, OverflowText, PatternField, RadioField, RadioFieldCard, RadioGroupField, ResponsiveContextProvider, Snackbar, SnackbarContent, SnackbarStackConsumer, SnackbarStackProvider, Stack, Tag, ThemeProvider, Tiles, VisibilityObserver, assignRef, isColorProp, isColorPropV2, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useCollapseBreakpoint, useMinBreakpoint, useResizeObserver, useResponsiveContext, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
|
|
4040
4308
|
//# sourceMappingURL=index.js.map
|