@czi-sds/components 23.0.0 → 23.2.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/index.cjs.d.ts +31 -17
- package/dist/index.cjs.js +450 -268
- package/dist/index.esm.d.ts +31 -17
- package/dist/index.esm.js +451 -270
- package/dist/tailwind.json +28 -38
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/variables.css +29 -39
- package/dist/variables.scss +28 -38
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -526,7 +526,7 @@ const Spaces = {
|
|
|
526
526
|
xs: 6,
|
|
527
527
|
s: 8,
|
|
528
528
|
m: 12,
|
|
529
|
-
default:
|
|
529
|
+
default: 8,
|
|
530
530
|
l: 16,
|
|
531
531
|
xl: 24,
|
|
532
532
|
xxl: 32,
|
|
@@ -811,7 +811,7 @@ const SDSPaletteLight = (appTheme) => {
|
|
|
811
811
|
backgroundPrimaryDark: appTheme.colors.gray[900],
|
|
812
812
|
backgroundPrimaryInverse: appTheme.colors.gray[900],
|
|
813
813
|
backgroundSecondary: addOpacityToHex(appTheme.colors.gray[100], 40),
|
|
814
|
-
|
|
814
|
+
backgroundSecondaryDark: addOpacityToHex(appTheme.colors.gray[700], 62),
|
|
815
815
|
backgroundSecondaryInverse: appTheme.colors.gray[700],
|
|
816
816
|
backgroundTertiary: appTheme.colors.gray[100],
|
|
817
817
|
borderOnFill: appTheme.colors.gray[50],
|
|
@@ -819,27 +819,23 @@ const SDSPaletteLight = (appTheme) => {
|
|
|
819
819
|
borderPrimaryDisabled: appTheme.colors.gray[300],
|
|
820
820
|
borderPrimaryDisabledOnDark: appTheme.colors.gray[600],
|
|
821
821
|
borderPrimaryDisabledInverse: appTheme.colors.gray[600],
|
|
822
|
-
|
|
823
|
-
|
|
822
|
+
borderPrimaryInteraction: appTheme.colors.gray[900],
|
|
823
|
+
borderPrimaryInteractionOnDark: appTheme.colors.gray[50],
|
|
824
824
|
borderPrimaryHoverInverse: appTheme.colors.gray[50],
|
|
825
825
|
borderPrimaryOnDark: appTheme.colors.gray[300],
|
|
826
826
|
borderPrimaryInverse: appTheme.colors.gray[300],
|
|
827
|
-
borderPrimaryPressed: appTheme.colors.gray[900],
|
|
828
|
-
borderPrimaryPressedOnDark: appTheme.colors.gray[50],
|
|
829
827
|
borderPrimaryPressedInverse: appTheme.colors.gray[50],
|
|
830
828
|
borderSecondary: appTheme.colors.gray[300],
|
|
831
829
|
divider: appTheme.colors.gray[200],
|
|
832
830
|
dividerOnDark: appTheme.colors.gray[700],
|
|
833
831
|
dividerInverse: appTheme.colors.gray[700],
|
|
834
|
-
fillDisabled: appTheme.colors.gray[
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
fillHoverInverse: addOpacityToHex(appTheme.colors.gray[300],
|
|
838
|
-
fillOpen: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
839
|
-
fillOpenOnDark: addOpacityToHex(appTheme.colors.gray[300], 34),
|
|
832
|
+
fillDisabled: appTheme.colors.gray[100],
|
|
833
|
+
fillInteraction: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
834
|
+
fillInteractionOnDark: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
835
|
+
fillHoverInverse: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
840
836
|
fillOpenInverse: addOpacityToHex(appTheme.colors.gray[300], 34),
|
|
841
|
-
fillPressed: addOpacityToHex(appTheme.colors.gray[300],
|
|
842
|
-
fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300],
|
|
837
|
+
fillPressed: addOpacityToHex(appTheme.colors.gray[300], 30),
|
|
838
|
+
fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300], 24),
|
|
843
839
|
fillPressedInverse: addOpacityToHex(appTheme.colors.gray[300], 34),
|
|
844
840
|
fillPrimary: appTheme.colors.gray[50],
|
|
845
841
|
fillSelected: appTheme.colors.gray[900],
|
|
@@ -851,16 +847,15 @@ const SDSPaletteLight = (appTheme) => {
|
|
|
851
847
|
ornamentPrimaryOnDark: appTheme.colors.gray[50],
|
|
852
848
|
ornamentPrimaryInverse: appTheme.colors.gray[50],
|
|
853
849
|
ornamentSecondary: appTheme.colors.gray[600],
|
|
854
|
-
|
|
855
|
-
|
|
850
|
+
ornamentSecondaryInteraction: appTheme.colors.gray[900],
|
|
851
|
+
ornamentSecondaryInteractionOnDark: appTheme.colors.gray[50],
|
|
856
852
|
ornamentSecondaryHoverInverse: appTheme.colors.gray[50],
|
|
857
853
|
ornamentSecondaryOnDark: appTheme.colors.gray[300],
|
|
858
854
|
ornamentSecondaryInverse: appTheme.colors.gray[300],
|
|
859
|
-
ornamentSecondaryPressed: appTheme.colors.gray[900],
|
|
860
|
-
ornamentSecondaryPressedOnDark: appTheme.colors.gray[50],
|
|
861
855
|
ornamentSecondaryPressedInverse: appTheme.colors.gray[50],
|
|
862
|
-
|
|
863
|
-
|
|
856
|
+
surfacePrimary: appTheme.colors.gray[50],
|
|
857
|
+
surfaceSecondary: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
858
|
+
surfacePrimaryDark: appTheme.colors.gray[900],
|
|
864
859
|
surfaceInverse: appTheme.colors.gray[900],
|
|
865
860
|
textDisabled: appTheme.colors.gray[300],
|
|
866
861
|
textDisabledOnDark: appTheme.colors.gray[600],
|
|
@@ -973,7 +968,7 @@ const SDSPaletteDark = (appTheme) => {
|
|
|
973
968
|
backgroundPrimaryDark: appTheme.colors.gray[75],
|
|
974
969
|
backgroundPrimaryInverse: appTheme.colors.gray[75],
|
|
975
970
|
backgroundSecondary: addOpacityToHex(appTheme.colors.gray[100], 60),
|
|
976
|
-
|
|
971
|
+
backgroundSecondaryDark: addOpacityToHex(appTheme.colors.gray[100], 60),
|
|
977
972
|
backgroundSecondaryInverse: addOpacityToHex(appTheme.colors.gray[100], 60),
|
|
978
973
|
backgroundTertiary: appTheme.colors.gray[100],
|
|
979
974
|
borderOnFill: appTheme.colors.gray[900],
|
|
@@ -981,27 +976,23 @@ const SDSPaletteDark = (appTheme) => {
|
|
|
981
976
|
borderPrimaryDisabled: appTheme.colors.gray[300],
|
|
982
977
|
borderPrimaryDisabledOnDark: appTheme.colors.gray[300],
|
|
983
978
|
borderPrimaryDisabledInverse: appTheme.colors.gray[300],
|
|
984
|
-
|
|
985
|
-
|
|
979
|
+
borderPrimaryInteraction: appTheme.colors.gray[900],
|
|
980
|
+
borderPrimaryInteractionOnDark: appTheme.colors.gray[900],
|
|
986
981
|
borderPrimaryHoverInverse: appTheme.colors.gray[900],
|
|
987
982
|
borderPrimaryOnDark: appTheme.colors.gray[600],
|
|
988
983
|
borderPrimaryInverse: appTheme.colors.gray[600],
|
|
989
|
-
borderPrimaryPressed: appTheme.colors.gray[900],
|
|
990
|
-
borderPrimaryPressedOnDark: appTheme.colors.gray[900],
|
|
991
984
|
borderPrimaryPressedInverse: appTheme.colors.gray[900],
|
|
992
985
|
borderSecondary: appTheme.colors.gray[300],
|
|
993
986
|
divider: appTheme.colors.gray[200],
|
|
994
987
|
dividerOnDark: appTheme.colors.gray[200],
|
|
995
988
|
dividerInverse: appTheme.colors.gray[200],
|
|
996
|
-
fillDisabled: appTheme.colors.gray[
|
|
997
|
-
|
|
998
|
-
|
|
989
|
+
fillDisabled: appTheme.colors.gray[100],
|
|
990
|
+
fillInteraction: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
991
|
+
fillInteractionOnDark: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
999
992
|
fillHoverInverse: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1000
|
-
fillOpen: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1001
|
-
fillOpenOnDark: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1002
993
|
fillOpenInverse: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1003
|
-
fillPressed: addOpacityToHex(appTheme.colors.gray[300],
|
|
1004
|
-
fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300],
|
|
994
|
+
fillPressed: addOpacityToHex(appTheme.colors.gray[300], 40),
|
|
995
|
+
fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300], 40),
|
|
1005
996
|
fillPressedInverse: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1006
997
|
fillPrimary: appTheme.colors.gray[100],
|
|
1007
998
|
fillSelected: appTheme.colors.gray[900],
|
|
@@ -1013,16 +1004,15 @@ const SDSPaletteDark = (appTheme) => {
|
|
|
1013
1004
|
ornamentPrimaryOnDark: appTheme.colors.gray[900],
|
|
1014
1005
|
ornamentPrimaryInverse: appTheme.colors.gray[50],
|
|
1015
1006
|
ornamentSecondary: appTheme.colors.gray[600],
|
|
1016
|
-
|
|
1017
|
-
|
|
1007
|
+
ornamentSecondaryInteraction: appTheme.colors.gray[900],
|
|
1008
|
+
ornamentSecondaryInteractionOnDark: appTheme.colors.gray[900],
|
|
1018
1009
|
ornamentSecondaryHoverInverse: appTheme.colors.gray[900],
|
|
1019
1010
|
ornamentSecondaryOnDark: appTheme.colors.gray[600],
|
|
1020
1011
|
ornamentSecondaryInverse: appTheme.colors.gray[600],
|
|
1021
|
-
ornamentSecondaryPressed: appTheme.colors.gray[900],
|
|
1022
|
-
ornamentSecondaryPressedOnDark: appTheme.colors.gray[900],
|
|
1023
1012
|
ornamentSecondaryPressedInverse: appTheme.colors.gray[900],
|
|
1024
|
-
|
|
1025
|
-
|
|
1013
|
+
surfacePrimary: appTheme.colors.gray[100],
|
|
1014
|
+
surfaceSecondary: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1015
|
+
surfacePrimaryDark: appTheme.colors.gray[100],
|
|
1026
1016
|
surfaceInverse: appTheme.colors.gray[100],
|
|
1027
1017
|
textDisabled: appTheme.colors.gray[300],
|
|
1028
1018
|
textDisabledOnDark: appTheme.colors.gray[300],
|
|
@@ -1304,6 +1294,7 @@ function makeThemeOptions(appTheme, mode) {
|
|
|
1304
1294
|
appTheme.spacing.l,
|
|
1305
1295
|
appTheme.spacing.xl,
|
|
1306
1296
|
appTheme.spacing.xxl,
|
|
1297
|
+
appTheme.spacing.xxxl,
|
|
1307
1298
|
],
|
|
1308
1299
|
transitions: {
|
|
1309
1300
|
duration: {
|
|
@@ -1403,7 +1394,7 @@ function focusVisibleA11yStyle(props) {
|
|
|
1403
1394
|
const semanticColors = getSemanticColors(props);
|
|
1404
1395
|
return `
|
|
1405
1396
|
&.Mui-focusVisible, &:focus-visible {
|
|
1406
|
-
outline: 2px solid ${semanticColors?.base?.
|
|
1397
|
+
outline: 2px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
1407
1398
|
outline-offset: 1px;
|
|
1408
1399
|
}
|
|
1409
1400
|
`;
|
|
@@ -1612,7 +1603,7 @@ const StyledAccordionHeader = styled__default.default(material.AccordionSummary,
|
|
|
1612
1603
|
&:hover {
|
|
1613
1604
|
& .${material.accordionSummaryClasses.expandIconWrapper} {
|
|
1614
1605
|
svg {
|
|
1615
|
-
color: ${semanticColors?.base?.
|
|
1606
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
1616
1607
|
}
|
|
1617
1608
|
}
|
|
1618
1609
|
}
|
|
@@ -5113,12 +5104,12 @@ const Minimal = (props) => {
|
|
|
5113
5104
|
}
|
|
5114
5105
|
|
|
5115
5106
|
&:hover {
|
|
5116
|
-
background-color: ${semanticColors?.base?.
|
|
5107
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
5117
5108
|
}
|
|
5118
5109
|
|
|
5119
5110
|
&:active {
|
|
5120
5111
|
color: ${semanticColors?.accent?.textActionPressed};
|
|
5121
|
-
background-color: ${semanticColors?.base?.
|
|
5112
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
5122
5113
|
|
|
5123
5114
|
svg {
|
|
5124
5115
|
color: ${semanticColors?.accent?.ornamentPressed};
|
|
@@ -5225,7 +5216,7 @@ const primary$2 = (props) => {
|
|
|
5225
5216
|
}
|
|
5226
5217
|
|
|
5227
5218
|
&:hover {
|
|
5228
|
-
background: ${semanticColors?.base?.
|
|
5219
|
+
background: ${semanticColors?.base?.fillInteraction};
|
|
5229
5220
|
color: ${semanticColors?.accent?.ornamentHover};
|
|
5230
5221
|
|
|
5231
5222
|
svg {
|
|
@@ -5253,7 +5244,7 @@ const secondary$2 = (props) => {
|
|
|
5253
5244
|
}
|
|
5254
5245
|
|
|
5255
5246
|
&:hover {
|
|
5256
|
-
background: ${semanticColors?.base?.
|
|
5247
|
+
background: ${semanticColors?.base?.fillInteraction};
|
|
5257
5248
|
color: ${semanticColors?.accent?.ornamentHover};
|
|
5258
5249
|
|
|
5259
5250
|
svg {
|
|
@@ -5282,19 +5273,19 @@ const tertiary = (props) => {
|
|
|
5282
5273
|
|
|
5283
5274
|
&:hover {
|
|
5284
5275
|
background: none;
|
|
5285
|
-
color: ${semanticColors?.base?.
|
|
5276
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5286
5277
|
|
|
5287
5278
|
svg {
|
|
5288
|
-
color: ${semanticColors?.base?.
|
|
5279
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5289
5280
|
}
|
|
5290
5281
|
}
|
|
5291
5282
|
|
|
5292
5283
|
&:active {
|
|
5293
5284
|
background: none;
|
|
5294
|
-
color: ${semanticColors?.base?.
|
|
5285
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5295
5286
|
|
|
5296
5287
|
svg {
|
|
5297
|
-
color: ${semanticColors?.base?.
|
|
5288
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5298
5289
|
}
|
|
5299
5290
|
}
|
|
5300
5291
|
`;
|
|
@@ -5514,7 +5505,7 @@ const applyIntentColor$2 = (props, intent) => {
|
|
|
5514
5505
|
.${material.inputAdornmentClasses.root} .${material.buttonBaseClasses.root}:last-of-type {
|
|
5515
5506
|
cursor: default;
|
|
5516
5507
|
svg {
|
|
5517
|
-
color: ${semanticColors?.base?.
|
|
5508
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5518
5509
|
}
|
|
5519
5510
|
}
|
|
5520
5511
|
}
|
|
@@ -5580,9 +5571,6 @@ const StyledSearchBase = styled__default.default(material.TextField, {
|
|
|
5580
5571
|
const semanticColors = getSemanticColors(props);
|
|
5581
5572
|
const corners = getCorners(props);
|
|
5582
5573
|
return react.css `
|
|
5583
|
-
margin-top: ${spaces?.m}px;
|
|
5584
|
-
margin-bottom: ${spaces?.m}px;
|
|
5585
|
-
margin-right: ${spaces?.xl}px;
|
|
5586
5574
|
min-width: 120px;
|
|
5587
5575
|
display: block;
|
|
5588
5576
|
|
|
@@ -5631,7 +5619,8 @@ const StyledSearchBase = styled__default.default(material.TextField, {
|
|
|
5631
5619
|
|
|
5632
5620
|
&:hover {
|
|
5633
5621
|
svg {
|
|
5634
|
-
color: ${semanticColors?.base
|
|
5622
|
+
color: ${semanticColors?.base
|
|
5623
|
+
?.ornamentSecondaryInteraction} !important;
|
|
5635
5624
|
}
|
|
5636
5625
|
}
|
|
5637
5626
|
|
|
@@ -5651,7 +5640,7 @@ const StyledSearchBase = styled__default.default(material.TextField, {
|
|
|
5651
5640
|
}
|
|
5652
5641
|
|
|
5653
5642
|
.${material.outlinedInputClasses.root}:hover {
|
|
5654
|
-
background-color: ${semanticColors?.base?.
|
|
5643
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
5655
5644
|
|
|
5656
5645
|
& .${material.buttonBaseClasses.root}:last-of-type {
|
|
5657
5646
|
svg {
|
|
@@ -5659,7 +5648,7 @@ const StyledSearchBase = styled__default.default(material.TextField, {
|
|
|
5659
5648
|
}
|
|
5660
5649
|
}
|
|
5661
5650
|
.${material.outlinedInputClasses.notchedOutline} {
|
|
5662
|
-
border: 1px solid ${semanticColors?.base?.
|
|
5651
|
+
border: 1px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
5663
5652
|
}
|
|
5664
5653
|
}
|
|
5665
5654
|
|
|
@@ -5673,13 +5662,13 @@ const StyledSearchBase = styled__default.default(material.TextField, {
|
|
|
5673
5662
|
.${material.inputAdornmentClasses.root} .${material.buttonBaseClasses.root}:last-of-type {
|
|
5674
5663
|
cursor: default;
|
|
5675
5664
|
svg {
|
|
5676
|
-
color: ${semanticColors?.base?.
|
|
5665
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5677
5666
|
}
|
|
5678
5667
|
}
|
|
5679
5668
|
}
|
|
5680
5669
|
|
|
5681
5670
|
&.user-is-tabbing .${material.outlinedInputClasses.root}:focus-within {
|
|
5682
|
-
outline: 2px solid ${semanticColors?.base?.
|
|
5671
|
+
outline: 2px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
5683
5672
|
outline-offset: 1px;
|
|
5684
5673
|
}
|
|
5685
5674
|
|
|
@@ -5718,10 +5707,10 @@ const StyledMenuItem$1 = styled__default.default(material.MenuItem) `
|
|
|
5718
5707
|
opacity: 1;
|
|
5719
5708
|
|
|
5720
5709
|
&:hover, &.${material.menuItemClasses.focusVisible} {
|
|
5721
|
-
background-color: ${semanticColors?.base?.
|
|
5710
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
5722
5711
|
|
|
5723
5712
|
&[aria-selected="true"] {
|
|
5724
|
-
background-color: ${semanticColors?.base?.
|
|
5713
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
5725
5714
|
}
|
|
5726
5715
|
}
|
|
5727
5716
|
}
|
|
@@ -5738,7 +5727,7 @@ const StyledMenuItem$1 = styled__default.default(material.MenuItem) `
|
|
|
5738
5727
|
background-color: unset !important;
|
|
5739
5728
|
|
|
5740
5729
|
&:hover {
|
|
5741
|
-
background-color: ${semanticColors?.base?.
|
|
5730
|
+
background-color: ${semanticColors?.base?.fillInteraction} !important;
|
|
5742
5731
|
}
|
|
5743
5732
|
|
|
5744
5733
|
${StyledIcon$1}, ${DotIcon} {
|
|
@@ -5751,16 +5740,16 @@ const StyledMenuItem$1 = styled__default.default(material.MenuItem) `
|
|
|
5751
5740
|
}
|
|
5752
5741
|
|
|
5753
5742
|
&:hover {
|
|
5754
|
-
background-color: ${semanticColors?.base?.
|
|
5743
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
5755
5744
|
${StyledIcon$1}, ${DotIcon} {
|
|
5756
5745
|
color: ${selected ? semanticColors?.base?.ornamentPrimary : semanticColors?.base?.ornamentSecondary};
|
|
5757
5746
|
}
|
|
5758
5747
|
}
|
|
5759
5748
|
|
|
5760
5749
|
&.Mui-selected.MuiListItem-root.MuiListItem-button {
|
|
5761
|
-
background-color: ${semanticColors?.base?.
|
|
5750
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
5762
5751
|
&:hover {
|
|
5763
|
-
background-color: ${semanticColors?.base?.
|
|
5752
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
5764
5753
|
}
|
|
5765
5754
|
}
|
|
5766
5755
|
|
|
@@ -6099,7 +6088,7 @@ const StyledAutocompleteBase = styled__default.default(material.Autocomplete, {
|
|
|
6099
6088
|
// look at the useDetectUserTabbing hook.
|
|
6100
6089
|
&[data-user-is-tabbing="true"]:focus-within {
|
|
6101
6090
|
border-radius: 4px;
|
|
6102
|
-
outline: 2px solid ${semanticColors?.base?.
|
|
6091
|
+
outline: 2px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
6103
6092
|
outline-offset: 1px;
|
|
6104
6093
|
}
|
|
6105
6094
|
|
|
@@ -6124,11 +6113,11 @@ const StyledAutocompleteBase = styled__default.default(material.Autocomplete, {
|
|
|
6124
6113
|
min-height: unset;
|
|
6125
6114
|
|
|
6126
6115
|
&.${material.autocompleteClasses.focused} {
|
|
6127
|
-
background-color: ${semanticColors?.base?.
|
|
6116
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
6128
6117
|
}
|
|
6129
6118
|
|
|
6130
6119
|
&[aria-selected="true"] {
|
|
6131
|
-
background-color: ${semanticColors?.base?.
|
|
6120
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6132
6121
|
}
|
|
6133
6122
|
|
|
6134
6123
|
&[aria-disabled="true"] {
|
|
@@ -6136,7 +6125,7 @@ const StyledAutocompleteBase = styled__default.default(material.Autocomplete, {
|
|
|
6136
6125
|
}
|
|
6137
6126
|
|
|
6138
6127
|
&[aria-selected="true"].${material.autocompleteClasses.focused} {
|
|
6139
|
-
background-color: ${semanticColors?.base?.
|
|
6128
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
6140
6129
|
}
|
|
6141
6130
|
}
|
|
6142
6131
|
|
|
@@ -6150,7 +6139,7 @@ const StyledAutocompleteBase = styled__default.default(material.Autocomplete, {
|
|
|
6150
6139
|
.${material.autocompleteClasses.groupLabel} {
|
|
6151
6140
|
top: 0;
|
|
6152
6141
|
color: ${semanticColors?.base?.textSecondary};
|
|
6153
|
-
background-color: ${semanticColors?.base?.
|
|
6142
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6154
6143
|
padding: 0 ${spaces?.m}px;
|
|
6155
6144
|
}
|
|
6156
6145
|
|
|
@@ -6218,7 +6207,7 @@ const StyledPaper$3 = styled__default.default(material.Paper) `
|
|
|
6218
6207
|
return `
|
|
6219
6208
|
background-image: none;
|
|
6220
6209
|
padding: ${spaces?.xs}px 0;
|
|
6221
|
-
background-color: ${semanticColors?.base?.
|
|
6210
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6222
6211
|
border: ${borders?.none};
|
|
6223
6212
|
outline: 1px solid ${addOpacityToHex(semanticColors?.base?.borderSecondary || "#000", 15)};
|
|
6224
6213
|
border-radius: ${corners?.l}px;
|
|
@@ -6230,9 +6219,10 @@ const StyledPaper$3 = styled__default.default(material.Paper) `
|
|
|
6230
6219
|
const StyledMenuItemDetails = styled__default.default("div") `
|
|
6231
6220
|
${fontBodyXxs$1}
|
|
6232
6221
|
${(props) => {
|
|
6222
|
+
const { disabled } = props;
|
|
6233
6223
|
const semanticColors = getSemanticColors(props);
|
|
6234
6224
|
return `
|
|
6235
|
-
color: ${semanticColors?.base?.textSecondary};
|
|
6225
|
+
color: ${disabled ? semanticColors?.base?.textDisabled : semanticColors?.base?.textSecondary};
|
|
6236
6226
|
white-space: pre-wrap;
|
|
6237
6227
|
`;
|
|
6238
6228
|
}}
|
|
@@ -6397,15 +6387,15 @@ const AutocompleteBase = (props) => {
|
|
|
6397
6387
|
}
|
|
6398
6388
|
function defaultRenderOption(optionProps, option, { selected }) {
|
|
6399
6389
|
let MenuItemContent;
|
|
6400
|
-
const { component, details, count, icon, sdsIconProps, ...restOptionProps } = option;
|
|
6390
|
+
const { component, details, count, icon, sdsIconProps, disabled: optionDisabled, ...restOptionProps } = option;
|
|
6401
6391
|
const menuItemLabel = getOptionLabel(option);
|
|
6402
6392
|
if (component) {
|
|
6403
6393
|
MenuItemContent = component;
|
|
6404
6394
|
}
|
|
6405
6395
|
else {
|
|
6406
|
-
MenuItemContent = (jsxRuntime.jsxs(StyledMenuItemText, { children: [menuItemLabel, details && (jsxRuntime.jsx(StyledMenuItemDetails, { className: "menuItem-details", children: details }))] }));
|
|
6396
|
+
MenuItemContent = (jsxRuntime.jsxs(StyledMenuItemText, { children: [menuItemLabel, details && (jsxRuntime.jsx(StyledMenuItemDetails, { disabled: optionDisabled, className: "menuItem-details", children: details }))] }));
|
|
6407
6397
|
}
|
|
6408
|
-
return (React.createElement(MenuItem, __assign({ column: count, disabled: optionProps["aria-disabled"] === true, icon: icon, sdsIconProps: sdsIconProps, isMultiSelect: multiple, selected: selected }, optionProps, restOptionProps, { key: option.name }), MenuItemContent));
|
|
6398
|
+
return (React.createElement(MenuItem, __assign({ column: count, disabled: optionDisabled || optionProps["aria-disabled"] === true, icon: icon, sdsIconProps: sdsIconProps, isMultiSelect: multiple, selected: selected }, optionProps, restOptionProps, { key: option.name }), MenuItemContent));
|
|
6409
6399
|
}
|
|
6410
6400
|
};
|
|
6411
6401
|
|
|
@@ -6489,7 +6479,7 @@ const StyledPopper$2 = styled__default.default(material.Popper, {
|
|
|
6489
6479
|
const borders = getBorders(props);
|
|
6490
6480
|
const semanticColors = getSemanticColors(props);
|
|
6491
6481
|
return `
|
|
6492
|
-
background-color: ${semanticColors?.base?.
|
|
6482
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6493
6483
|
background-image: none;
|
|
6494
6484
|
border: ${borders?.none};
|
|
6495
6485
|
border-radius: ${corners?.l}px;
|
|
@@ -6516,7 +6506,7 @@ const StyledPaper$2 = styled__default.default(material.Paper, {
|
|
|
6516
6506
|
const shadows = getShadows(props);
|
|
6517
6507
|
const semanticColors = getSemanticColors(props);
|
|
6518
6508
|
return `
|
|
6519
|
-
background-color: ${semanticColors?.base?.
|
|
6509
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6520
6510
|
background-image: none;
|
|
6521
6511
|
box-shadow: ${shadows?.none};
|
|
6522
6512
|
margin: 0;
|
|
@@ -6560,7 +6550,7 @@ const StyledColumnIcon = material.styled("span") `
|
|
|
6560
6550
|
const iconSizes = getIconSizes(props);
|
|
6561
6551
|
const semanticColors = getSemanticColors(props);
|
|
6562
6552
|
return `
|
|
6563
|
-
background-color: ${semanticColors?.base?.
|
|
6553
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6564
6554
|
position: absolute;
|
|
6565
6555
|
right: -${spaces?.xs}px;
|
|
6566
6556
|
top: -${spaces?.xxxs}px;
|
|
@@ -6950,7 +6940,7 @@ const StyledButtonToggle = styled__default.default(ButtonIcon, {
|
|
|
6950
6940
|
const { sdsStage } = props;
|
|
6951
6941
|
const semanticColors = getSemanticColors(props);
|
|
6952
6942
|
return `
|
|
6953
|
-
background-color: ${sdsStage === "on" ? semanticColors?.base?.
|
|
6943
|
+
background-color: ${sdsStage === "on" ? semanticColors?.base?.fillInteraction : "transparent"};
|
|
6954
6944
|
`;
|
|
6955
6945
|
}}
|
|
6956
6946
|
`;
|
|
@@ -7137,7 +7127,7 @@ const dark$1 = (props) => {
|
|
|
7137
7127
|
const semanticColors = getSemanticColors(props);
|
|
7138
7128
|
return css$1.css `
|
|
7139
7129
|
${fontHeaderXs(props)}
|
|
7140
|
-
background-color: ${semanticColors?.base?.
|
|
7130
|
+
background-color: ${semanticColors?.base?.surfacePrimaryDark};
|
|
7141
7131
|
color: ${semanticColors?.base?.textPrimaryOnDark};
|
|
7142
7132
|
padding: ${spaces?.s}px ${spaces?.m}px;
|
|
7143
7133
|
`;
|
|
@@ -7147,7 +7137,7 @@ const light$1 = (props) => {
|
|
|
7147
7137
|
const semanticColors = getSemanticColors(props);
|
|
7148
7138
|
return css$1.css `
|
|
7149
7139
|
${fontBodyXs$2(props)}
|
|
7150
|
-
background-color: ${semanticColors?.base?.
|
|
7140
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
7151
7141
|
color: ${semanticColors?.base?.textPrimary};
|
|
7152
7142
|
padding: ${spaces?.s}px ${spaces?.m}px;
|
|
7153
7143
|
`;
|
|
@@ -7222,8 +7212,8 @@ const arrowCss = (props) => {
|
|
|
7222
7212
|
/* (bethbertozzi): !important is needed to fight inline style */
|
|
7223
7213
|
left: ${arrowOffset}px !important;
|
|
7224
7214
|
color: ${hasInvertedStyle || inverted || sdsStyle === "dark"
|
|
7225
|
-
? semanticColors?.base?.
|
|
7226
|
-
: semanticColors?.base?.
|
|
7215
|
+
? semanticColors?.base?.surfacePrimaryDark
|
|
7216
|
+
: semanticColors?.base?.surfacePrimary};
|
|
7227
7217
|
&:before {
|
|
7228
7218
|
box-sizing: border-box;
|
|
7229
7219
|
width: 12px;
|
|
@@ -7646,7 +7636,7 @@ const StyledTableHeader$1 = styled__default.default("th", {
|
|
|
7646
7636
|
}
|
|
7647
7637
|
|
|
7648
7638
|
& svg {
|
|
7649
|
-
color: ${active ? semanticColors?.accent?.ornamentHover : semanticColors?.base?.
|
|
7639
|
+
color: ${active ? semanticColors?.accent?.ornamentHover : semanticColors?.base?.ornamentSecondaryInteraction};
|
|
7650
7640
|
}
|
|
7651
7641
|
}
|
|
7652
7642
|
`;
|
|
@@ -7882,6 +7872,21 @@ const StyledHeaderTitle = styled__default.default("div", {
|
|
|
7882
7872
|
`;
|
|
7883
7873
|
}}
|
|
7884
7874
|
`;
|
|
7875
|
+
const StyledHeaderSubTitle = styled__default.default("div", {
|
|
7876
|
+
shouldForwardProp: (prop) => !doNotForwardProps$v.includes(prop)
|
|
7877
|
+
}) `
|
|
7878
|
+
${fontBodyXxs$1}
|
|
7879
|
+
|
|
7880
|
+
${(props) => {
|
|
7881
|
+
const spaces = getSpaces(props);
|
|
7882
|
+
const semanticColors = getSemanticColors(props);
|
|
7883
|
+
return `
|
|
7884
|
+
color: ${semanticColors?.base?.textSecondary};
|
|
7885
|
+
padding-right: ${spaces?.m}px;
|
|
7886
|
+
padding-top: ${spaces?.xxxs}px;
|
|
7887
|
+
`;
|
|
7888
|
+
}}
|
|
7889
|
+
`;
|
|
7885
7890
|
const StyledDropdownMenuAutocompleteWrapper = styled__default.default("div", {
|
|
7886
7891
|
shouldForwardProp: (prop) => !doNotForwardProps$v.includes(prop)
|
|
7887
7892
|
}) `
|
|
@@ -7928,7 +7933,7 @@ const StyledPopper = styled__default.default(material.Popper, {
|
|
|
7928
7933
|
const shadows = getShadows(props);
|
|
7929
7934
|
const semanticColors = getSemanticColors(props);
|
|
7930
7935
|
return `
|
|
7931
|
-
background-color: ${semanticColors?.base?.
|
|
7936
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
7932
7937
|
background-image: none;
|
|
7933
7938
|
border: ${borders?.none};
|
|
7934
7939
|
border-radius: ${corners?.l}px;
|
|
@@ -7951,7 +7956,7 @@ const StyledPaper$1 = styled__default.default(material.Paper, {
|
|
|
7951
7956
|
border: none !important;
|
|
7952
7957
|
outline: 1px solid ${addOpacityToHex(semanticColors?.base?.borderSecondary || "#000000", 15)};
|
|
7953
7958
|
border-radius: ${corners?.l}px;
|
|
7954
|
-
background-color: ${semanticColors?.base?.
|
|
7959
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
7955
7960
|
background-image: none;
|
|
7956
7961
|
margin: 0;
|
|
7957
7962
|
padding: 0 0 ${spaces?.xs}px 0;
|
|
@@ -7990,9 +7995,15 @@ const StyledDropdownMenuHeader = styled__default.default("div") `
|
|
|
7990
7995
|
const spaces = getSpaces(props);
|
|
7991
7996
|
const semanticColors = getSemanticColors(props);
|
|
7992
7997
|
return `
|
|
7998
|
+
& > div {
|
|
7999
|
+
display: flex;
|
|
8000
|
+
flex-direction: row;
|
|
8001
|
+
align-items: center;
|
|
8002
|
+
justify-content: space-between;
|
|
8003
|
+
}
|
|
8004
|
+
|
|
7993
8005
|
display: flex;
|
|
7994
|
-
|
|
7995
|
-
justify-content: space-between;
|
|
8006
|
+
flex-direction: column;
|
|
7996
8007
|
padding: ${spaces?.xs}px ${spaces?.m}px ${search ? spaces?.xs : spaces?.s}px;
|
|
7997
8008
|
${search && `border-bottom: solid 1px ${semanticColors?.base?.divider};`}
|
|
7998
8009
|
`;
|
|
@@ -8007,7 +8018,7 @@ const DEFAULT_POPPER_BASE_PROPS = {
|
|
|
8007
8018
|
};
|
|
8008
8019
|
const DropdownMenu = (props) => {
|
|
8009
8020
|
const theme = material.useTheme();
|
|
8010
|
-
const { anchorEl, id, InputBaseProps, open = false, PopperComponent = StyledPopper, PaperComponent = StyledPaper$1, PopperPlacement = "bottom-start", PopperBaseProps = {}, isSearchAutoFocus = true, search = false, title, headerComponentSlot, label = "Search", children, options, onClickAway = noop, ClickAwayListenerProps, width = MINIMUM_DROPDOWN_MENU_POPPER_WIDTH, onOpen, onClose, ...rest } = props;
|
|
8021
|
+
const { anchorEl, id, InputBaseProps, open = false, PopperComponent = StyledPopper, PaperComponent = StyledPaper$1, PopperPlacement = "bottom-start", PopperBaseProps = {}, isSearchAutoFocus = true, search = false, title, subTitle, headerComponentSlot, label = "Search", children, options, onClickAway = noop, ClickAwayListenerProps, width = MINIMUM_DROPDOWN_MENU_POPPER_WIDTH, onOpen, onClose, ...rest } = props;
|
|
8011
8022
|
const isMultiColumn = "options" in (options?.[0] || EMPTY_OBJECT);
|
|
8012
8023
|
// (masoudmanson): The DropdownMenu's Popper component should have a minimum
|
|
8013
8024
|
// width of MINIMUM_DROPDOWN_MENU_POPPER_WIDTH pixels if the DropdownMenu is
|
|
@@ -8037,7 +8048,7 @@ const DropdownMenu = (props) => {
|
|
|
8037
8048
|
], open: open, anchorEl: anchorEl, placement: PopperPlacement }, PopperBaseProps, {
|
|
8038
8049
|
// (masoudmanson): To override the width of the Popper,
|
|
8039
8050
|
// the sx prop's value must be set after spreading the PopperBaseProps.
|
|
8040
|
-
sx: dropdownMenuPopperSx, children: jsxRuntime.jsx(PaperComponent, { children: jsxRuntime.jsx(material.ClickAwayListener, __assign({ onClickAway: onClickAway }, ClickAwayListenerProps, { children: jsxRuntime.jsxs(StyledDropdownMenuAutocompleteWrapper, { search: search, titleValue: !!(title || headerComponentSlot), children: [(title || headerComponentSlot) && (jsxRuntime.jsxs(StyledDropdownMenuHeader, { search: search, children: [title && jsxRuntime.jsx(StyledHeaderTitle, { children: title }), headerComponentSlot && jsxRuntime.jsx(jsxRuntime.Fragment, { children: headerComponentSlot })] })), anchorEl && (jsxRuntime.jsx(Autocomplete, __assign({ label: label, search: search, title: title, open: open, options: options, PopperBaseProps: DEFAULT_POPPER_BASE_PROPS, disablePortal: true, onClickAway: noop, onClick: noop, onOpen: onOpen, onClose: onClose }, rest, { InputBaseProps: DefaultInputBaseProps }))), children] }) })) }) })));
|
|
8051
|
+
sx: dropdownMenuPopperSx, children: jsxRuntime.jsx(PaperComponent, { children: jsxRuntime.jsx(material.ClickAwayListener, __assign({ onClickAway: onClickAway }, ClickAwayListenerProps, { children: jsxRuntime.jsxs(StyledDropdownMenuAutocompleteWrapper, { search: search, titleValue: !!(title || headerComponentSlot), children: [(title || headerComponentSlot) && (jsxRuntime.jsxs(StyledDropdownMenuHeader, { search: search, children: [jsxRuntime.jsxs("div", { children: [title && jsxRuntime.jsx(StyledHeaderTitle, { children: title }), headerComponentSlot && jsxRuntime.jsx(jsxRuntime.Fragment, { children: headerComponentSlot })] }), title && subTitle && (jsxRuntime.jsx(StyledHeaderSubTitle, { children: subTitle }))] })), anchorEl && (jsxRuntime.jsx(Autocomplete, __assign({ label: label, search: search, title: title, open: open, options: options, PopperBaseProps: DEFAULT_POPPER_BASE_PROPS, disablePortal: true, onClickAway: noop, onClick: noop, onOpen: onOpen, onClose: onClose }, rest, { InputBaseProps: DefaultInputBaseProps }))), children] }) })) }) })));
|
|
8041
8052
|
};
|
|
8042
8053
|
|
|
8043
8054
|
const doNotForwardProps$u = [
|
|
@@ -8095,12 +8106,13 @@ const inputDropdownStyles = (props) => {
|
|
|
8095
8106
|
}
|
|
8096
8107
|
|
|
8097
8108
|
&:hover {
|
|
8098
|
-
background-color: ${semanticColors?.base?.
|
|
8099
|
-
box-shadow: inset 0 0 0 1px
|
|
8109
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
8110
|
+
box-shadow: inset 0 0 0 1px
|
|
8111
|
+
${semanticColors?.base?.borderPrimaryInteraction};
|
|
8100
8112
|
color: ${semanticColors?.base?.textPrimary};
|
|
8101
8113
|
|
|
8102
8114
|
path {
|
|
8103
|
-
fill: ${semanticColors?.base?.
|
|
8115
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
8104
8116
|
}
|
|
8105
8117
|
|
|
8106
8118
|
.styled-label {
|
|
@@ -8114,7 +8126,7 @@ const inputDropdownStyles = (props) => {
|
|
|
8114
8126
|
color: ${semanticColors?.base?.textPrimary};
|
|
8115
8127
|
|
|
8116
8128
|
path {
|
|
8117
|
-
fill: ${semanticColors?.base?.
|
|
8129
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
8118
8130
|
}
|
|
8119
8131
|
}
|
|
8120
8132
|
|
|
@@ -8166,12 +8178,12 @@ const minimal$1 = (props) => {
|
|
|
8166
8178
|
}
|
|
8167
8179
|
|
|
8168
8180
|
&:hover {
|
|
8169
|
-
background-color: ${semanticColors?.base?.
|
|
8181
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
8170
8182
|
border: none;
|
|
8171
8183
|
color: ${semanticColors?.base?.textPrimary};
|
|
8172
8184
|
|
|
8173
8185
|
path {
|
|
8174
|
-
fill: ${semanticColors?.base?.
|
|
8186
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
8175
8187
|
}
|
|
8176
8188
|
|
|
8177
8189
|
.styled-label {
|
|
@@ -8180,7 +8192,7 @@ const minimal$1 = (props) => {
|
|
|
8180
8192
|
}
|
|
8181
8193
|
|
|
8182
8194
|
&:active {
|
|
8183
|
-
background-color: ${semanticColors?.base?.
|
|
8195
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
8184
8196
|
border: none;
|
|
8185
8197
|
}
|
|
8186
8198
|
`;
|
|
@@ -8250,7 +8262,7 @@ const isOpen = (props) => {
|
|
|
8250
8262
|
: ""}
|
|
8251
8263
|
|
|
8252
8264
|
path {
|
|
8253
|
-
fill: ${semanticColors?.base?.
|
|
8265
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
8254
8266
|
}
|
|
8255
8267
|
|
|
8256
8268
|
box-shadow: ${sdsStyle === "minimal"
|
|
@@ -8258,15 +8270,15 @@ const isOpen = (props) => {
|
|
|
8258
8270
|
: `inset 0 0 0 1px ${semanticColors?.[inputColor]?.border}`};
|
|
8259
8271
|
|
|
8260
8272
|
background-color: ${sdsStyle === "minimal"
|
|
8261
|
-
? semanticColors?.base?.
|
|
8273
|
+
? semanticColors?.base?.fillInteraction
|
|
8262
8274
|
: "transparent"};
|
|
8263
8275
|
|
|
8264
8276
|
&:hover {
|
|
8265
8277
|
path {
|
|
8266
|
-
fill: ${semanticColors?.base?.
|
|
8278
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
8267
8279
|
}
|
|
8268
8280
|
|
|
8269
|
-
border-color: ${semanticColors?.base?.
|
|
8281
|
+
border-color: ${semanticColors?.base?.borderPrimaryInteraction};
|
|
8270
8282
|
}
|
|
8271
8283
|
`;
|
|
8272
8284
|
};
|
|
@@ -8276,11 +8288,13 @@ const applyIntentColor$1 = (props, intent) => {
|
|
|
8276
8288
|
box-shadow: inset 0 0 0 1px ${semanticColors?.[intent]?.border};
|
|
8277
8289
|
|
|
8278
8290
|
&:hover {
|
|
8279
|
-
box-shadow: inset 0 0 0 1px
|
|
8291
|
+
box-shadow: inset 0 0 0 1px
|
|
8292
|
+
${semanticColors?.base?.borderPrimaryInteraction};
|
|
8280
8293
|
}
|
|
8281
8294
|
|
|
8282
8295
|
&:active {
|
|
8283
|
-
box-shadow: inset 0 0 0 1px
|
|
8296
|
+
box-shadow: inset 0 0 0 1px
|
|
8297
|
+
${semanticColors?.base?.borderPrimaryInteraction};
|
|
8284
8298
|
}
|
|
8285
8299
|
`;
|
|
8286
8300
|
};
|
|
@@ -8844,7 +8858,6 @@ const tagSizeS = (props) => {
|
|
|
8844
8858
|
const semanticColors = getSemanticColors(props);
|
|
8845
8859
|
return react.css `
|
|
8846
8860
|
height: unset;
|
|
8847
|
-
margin: 0 ${spaces?.xxs}px ${spaces?.xs}px 0;
|
|
8848
8861
|
|
|
8849
8862
|
.MuiChip-label {
|
|
8850
8863
|
${fontBodyXxxs$1(props)}
|
|
@@ -8854,7 +8867,7 @@ const tagSizeS = (props) => {
|
|
|
8854
8867
|
.MuiSvgIcon-root {
|
|
8855
8868
|
height: ${iconSizes?.xs.height}px;
|
|
8856
8869
|
width: ${iconSizes?.xs.width}px;
|
|
8857
|
-
margin: 0 ${spaces?.xxs}px 0
|
|
8870
|
+
margin: 0 ${spaces?.xxs}px 0 0;
|
|
8858
8871
|
}
|
|
8859
8872
|
|
|
8860
8873
|
.MuiChip-deleteIcon {
|
|
@@ -8872,7 +8885,6 @@ const tagSizeL = (props) => {
|
|
|
8872
8885
|
const semanticColors = getSemanticColors(props);
|
|
8873
8886
|
return react.css `
|
|
8874
8887
|
height: unset;
|
|
8875
|
-
margin: 0 ${spaces?.xxs}px ${spaces?.xs}px 0;
|
|
8876
8888
|
|
|
8877
8889
|
.MuiChip-label {
|
|
8878
8890
|
${fontBodyXs$2(props)}
|
|
@@ -8882,7 +8894,7 @@ const tagSizeL = (props) => {
|
|
|
8882
8894
|
.MuiSvgIcon-root {
|
|
8883
8895
|
height: ${iconSizes?.l.height}px;
|
|
8884
8896
|
width: ${iconSizes?.l.width}px;
|
|
8885
|
-
margin: 0 ${spaces?.xxs}px 0
|
|
8897
|
+
margin: 0 ${spaces?.xxs}px 0 0px;
|
|
8886
8898
|
}
|
|
8887
8899
|
|
|
8888
8900
|
.MuiChip-deleteIcon {
|
|
@@ -8899,9 +8911,11 @@ const rounded = (props) => {
|
|
|
8899
8911
|
const spaces = getSpaces(props);
|
|
8900
8912
|
const { sdsSize = "s", icon } = props;
|
|
8901
8913
|
const topBottomPadding = sdsSize === "s" ? spaces?.xxxs : icon ? spaces?.xxs : spaces?.xs;
|
|
8914
|
+
const rightPadding = sdsSize === "l" && icon ? spaces?.s : spaces?.xs;
|
|
8902
8915
|
return react.css `
|
|
8903
8916
|
border-radius: ${corners?.rounded}px;
|
|
8904
|
-
padding: ${topBottomPadding}px ${
|
|
8917
|
+
padding: ${topBottomPadding}px ${rightPadding}px ${topBottomPadding}px
|
|
8918
|
+
${spaces?.xs}px;
|
|
8905
8919
|
|
|
8906
8920
|
&:after {
|
|
8907
8921
|
content: "";
|
|
@@ -8916,7 +8930,7 @@ const square = (props) => {
|
|
|
8916
8930
|
const topBottomPadding = sdsSize === "s" ? spaces?.xxxs : icon ? spaces?.xxs : spaces?.xs;
|
|
8917
8931
|
return react.css `
|
|
8918
8932
|
border-radius: ${corners?.m}px;
|
|
8919
|
-
padding: ${topBottomPadding}px ${spaces?.
|
|
8933
|
+
padding: ${topBottomPadding}px ${spaces?.xs}px;
|
|
8920
8934
|
|
|
8921
8935
|
&:after {
|
|
8922
8936
|
content: "";
|
|
@@ -8944,54 +8958,51 @@ const secondary = (props) => {
|
|
|
8944
8958
|
return createTypeCss(props, "secondary");
|
|
8945
8959
|
};
|
|
8946
8960
|
function generatePrimaryTagColors(intent, colors, semanticColors) {
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
backgroundClicked: semanticColors?.neutral.fillPressed,
|
|
8965
|
-
backgroundHover: semanticColors?.neutral.fillHover,
|
|
8966
|
-
iconColor: semanticColors?.base?.ornamentOnFill,
|
|
8967
|
-
label: semanticColors?.base?.textOnFill
|
|
8968
|
-
};
|
|
8969
|
-
}
|
|
8961
|
+
const effectiveIntent = intent || "neutral";
|
|
8962
|
+
const intentColors = semanticColors?.[effectiveIntent];
|
|
8963
|
+
const hasCustomColors = colors.length >= 2;
|
|
8964
|
+
return {
|
|
8965
|
+
background: hasCustomColors ? colors[1] : intentColors?.fillPrimary,
|
|
8966
|
+
backgroundClicked: hasCustomColors
|
|
8967
|
+
? material.darken(colors[1], 0.3)
|
|
8968
|
+
: intentColors?.fillPressed,
|
|
8969
|
+
backgroundHover: hasCustomColors
|
|
8970
|
+
? material.darken(colors[1], 0.15)
|
|
8971
|
+
: intentColors?.fillHover,
|
|
8972
|
+
iconColor: hasCustomColors
|
|
8973
|
+
? colors[2]
|
|
8974
|
+
: semanticColors?.base?.ornamentOnFill,
|
|
8975
|
+
label: colors.length > 0 ? colors[0] : semanticColors?.base?.textOnFill,
|
|
8976
|
+
borderColor: material.alpha(semanticColors?.neutral.border || "#000", 0.6)
|
|
8977
|
+
};
|
|
8970
8978
|
}
|
|
8971
|
-
function
|
|
8972
|
-
if (
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
|
|
8992
|
-
|
|
8993
|
-
|
|
8994
|
-
|
|
8979
|
+
function getSecondaryBorderColor(effectiveIntent, theme, intentColors) {
|
|
8980
|
+
if (!theme || !theme.palette)
|
|
8981
|
+
return material.alpha(intentColors?.border || "#000", 0.6);
|
|
8982
|
+
if (effectiveIntent === "negative" && theme.palette.mode === "dark")
|
|
8983
|
+
return material.alpha(intentColors?.border || "#000", 0.65);
|
|
8984
|
+
if (effectiveIntent === "notice" && theme.palette.mode === "light")
|
|
8985
|
+
return material.alpha(intentColors?.border || "#000", 0.85);
|
|
8986
|
+
return material.alpha(intentColors?.border || "#000", 0.6);
|
|
8987
|
+
}
|
|
8988
|
+
function generateSecondaryTagColors(intent, colors, semanticColors, theme = defaultTheme$4) {
|
|
8989
|
+
const effectiveIntent = intent || "neutral";
|
|
8990
|
+
const intentColors = semanticColors?.[effectiveIntent];
|
|
8991
|
+
const hasCustomColors = colors.length >= 2;
|
|
8992
|
+
return {
|
|
8993
|
+
background: hasCustomColors ? colors[1] : intentColors?.fillSecondary,
|
|
8994
|
+
backgroundClicked: hasCustomColors
|
|
8995
|
+
? material.darken(colors[1], 0.3)
|
|
8996
|
+
: intentColors?.fillPressed,
|
|
8997
|
+
backgroundHover: hasCustomColors
|
|
8998
|
+
? material.darken(colors[1], 0.15)
|
|
8999
|
+
: intentColors?.fillHover,
|
|
9000
|
+
iconColor: hasCustomColors ? colors[2] : intentColors?.ornament,
|
|
9001
|
+
label: colors.length > 0 ? colors[0] : intentColors?.text,
|
|
9002
|
+
borderColor: hasCustomColors
|
|
9003
|
+
? material.alpha(colors[1], 0.6)
|
|
9004
|
+
: getSecondaryBorderColor(effectiveIntent, theme, intentColors)
|
|
9005
|
+
};
|
|
8995
9006
|
}
|
|
8996
9007
|
function createTypeCss(props, type) {
|
|
8997
9008
|
const semanticColors = getSemanticColors(props);
|
|
@@ -8999,12 +9010,16 @@ function createTypeCss(props, type) {
|
|
|
8999
9010
|
const colors = Array.isArray(props.tagColor) ? [...props.tagColor] : [];
|
|
9000
9011
|
const typeToColors = {
|
|
9001
9012
|
primary: generatePrimaryTagColors(intent, colors, semanticColors),
|
|
9002
|
-
secondary: generateSecondaryTagColors(intent, colors, semanticColors)
|
|
9013
|
+
secondary: generateSecondaryTagColors(intent, colors, semanticColors, props.theme)
|
|
9003
9014
|
};
|
|
9004
9015
|
const typeColors = typeToColors[type];
|
|
9005
9016
|
return react.css `
|
|
9006
9017
|
${focusVisibleA11yStyle(props)}
|
|
9007
9018
|
|
|
9019
|
+
${type === "secondary" &&
|
|
9020
|
+
react.css `
|
|
9021
|
+
box-shadow: inset 0 0 0 1px ${typeColors.borderColor};
|
|
9022
|
+
`}
|
|
9008
9023
|
background-color: ${typeColors.background};
|
|
9009
9024
|
position: relative;
|
|
9010
9025
|
|
|
@@ -9018,6 +9033,7 @@ function createTypeCss(props, type) {
|
|
|
9018
9033
|
|
|
9019
9034
|
&:hover,
|
|
9020
9035
|
&:active {
|
|
9036
|
+
box-shadow: none;
|
|
9021
9037
|
.MuiChip-label {
|
|
9022
9038
|
color: ${semanticColors?.base?.textPrimaryInverse};
|
|
9023
9039
|
}
|
|
@@ -9363,30 +9379,38 @@ const doNotForwardProps$r = [
|
|
|
9363
9379
|
"cardSdsType",
|
|
9364
9380
|
"classes",
|
|
9365
9381
|
];
|
|
9366
|
-
const
|
|
9367
|
-
|
|
9368
|
-
}) `
|
|
9369
|
-
${(props) => {
|
|
9370
|
-
const { imagePosition = "left", sdsType = "wide", boundingBox = true, decorativeBorder = false, imagePadding = false, visualElementType, clickableCard = false, } = props;
|
|
9371
|
-
const semanticColors = getSemanticColors(props);
|
|
9372
|
-
const corners = getCorners(props);
|
|
9373
|
-
const shadows = getShadows(props);
|
|
9374
|
-
const flexDirection = sdsType === "wide" && visualElementType === "image"
|
|
9382
|
+
const getFlexDirection = (sdsType, visualElementType, imagePosition) => {
|
|
9383
|
+
return sdsType === "wide" && visualElementType === "image"
|
|
9375
9384
|
? imagePosition === "left"
|
|
9376
9385
|
? "row"
|
|
9377
9386
|
: "row-reverse"
|
|
9378
9387
|
: visualElementType === "icon"
|
|
9379
9388
|
? "row"
|
|
9380
9389
|
: "column";
|
|
9381
|
-
|
|
9390
|
+
};
|
|
9391
|
+
const getShowDecorativeBorder = (visualElementType, boundingBox, decorativeBorder, imagePadding) => {
|
|
9392
|
+
return visualElementType === "image"
|
|
9382
9393
|
? boundingBox && decorativeBorder && imagePadding
|
|
9383
9394
|
: boundingBox && decorativeBorder;
|
|
9395
|
+
};
|
|
9396
|
+
const StyledCard = styled__default.default(material.Card, {
|
|
9397
|
+
shouldForwardProp: (prop) => !doNotForwardProps$r.includes(prop)
|
|
9398
|
+
}) `
|
|
9399
|
+
${(props) => {
|
|
9400
|
+
const { imagePosition = "left", sdsType = "wide", boundingBox = true, decorativeBorder = false, imagePadding = false, visualElementType, clickableCard = false, } = props;
|
|
9401
|
+
const semanticColors = getSemanticColors(props);
|
|
9402
|
+
const corners = getCorners(props);
|
|
9403
|
+
const shadows = getShadows(props);
|
|
9404
|
+
const spaces = getSpaces(props);
|
|
9405
|
+
const flexDirection = getFlexDirection(sdsType, visualElementType, imagePosition);
|
|
9406
|
+
const showDecorativeBorder = getShowDecorativeBorder(visualElementType, boundingBox, decorativeBorder, imagePadding);
|
|
9384
9407
|
return react.css `
|
|
9408
|
+
position: relative;
|
|
9385
9409
|
display: flex;
|
|
9386
9410
|
background-color: transparent;
|
|
9387
9411
|
background-image: none;
|
|
9388
9412
|
flex-direction: ${flexDirection};
|
|
9389
|
-
overflow:
|
|
9413
|
+
overflow: visible;
|
|
9390
9414
|
box-shadow: none;
|
|
9391
9415
|
border-radius: ${corners?.xl}px;
|
|
9392
9416
|
|
|
@@ -9405,16 +9429,47 @@ const StyledCard = styled__default.default(material.Card, {
|
|
|
9405
9429
|
background-color: ${semanticColors?.base?.backgroundPrimary};
|
|
9406
9430
|
`}
|
|
9407
9431
|
|
|
9432
|
+
${showDecorativeBorder &&
|
|
9433
|
+
react.css `
|
|
9434
|
+
&:before {
|
|
9435
|
+
content: "";
|
|
9436
|
+
position: absolute;
|
|
9437
|
+
background-color: ${semanticColors?.accent?.border};
|
|
9438
|
+
|
|
9439
|
+
${sdsType === "wide" &&
|
|
9440
|
+
react.css `
|
|
9441
|
+
top: -1px;
|
|
9442
|
+
bottom: -1px;
|
|
9443
|
+
left: -1px;
|
|
9444
|
+
width: ${spaces?.xs}px;
|
|
9445
|
+
border-top-left-radius: ${corners?.xl}px;
|
|
9446
|
+
border-bottom-left-radius: ${corners?.xl}px;
|
|
9447
|
+
`}
|
|
9448
|
+
|
|
9449
|
+
${sdsType === "narrow" &&
|
|
9450
|
+
react.css `
|
|
9451
|
+
height: ${spaces?.xs}px;
|
|
9452
|
+
top: -1px;
|
|
9453
|
+
left: -1px;
|
|
9454
|
+
right: -1px;
|
|
9455
|
+
border-top-left-radius: ${corners?.xl}px;
|
|
9456
|
+
border-top-right-radius: ${corners?.xl}px;
|
|
9457
|
+
`}
|
|
9458
|
+
}
|
|
9459
|
+
`}
|
|
9460
|
+
|
|
9408
9461
|
${sdsType === "wide" &&
|
|
9409
9462
|
showDecorativeBorder &&
|
|
9410
9463
|
react.css `
|
|
9411
|
-
border-left:
|
|
9464
|
+
border-top-left-radius: ${corners?.l}px;
|
|
9465
|
+
border-bottom-left-radius: ${corners?.l}px;
|
|
9412
9466
|
`}
|
|
9413
9467
|
|
|
9414
9468
|
${sdsType === "narrow" &&
|
|
9415
9469
|
showDecorativeBorder &&
|
|
9416
9470
|
react.css `
|
|
9417
|
-
border-top:
|
|
9471
|
+
border-top-left-radius: ${corners?.l}px;
|
|
9472
|
+
border-top-right-radius: ${corners?.l}px;
|
|
9418
9473
|
`}
|
|
9419
9474
|
`;
|
|
9420
9475
|
}}
|
|
@@ -9447,7 +9502,7 @@ const StyledCardActionArea = styled__default.default(Button, {
|
|
|
9447
9502
|
|
|
9448
9503
|
&:hover,
|
|
9449
9504
|
&:active {
|
|
9450
|
-
background-color: ${semanticColors?.base?.
|
|
9505
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
9451
9506
|
}
|
|
9452
9507
|
`;
|
|
9453
9508
|
}}
|
|
@@ -9687,9 +9742,13 @@ const StyledImageMediaWrapper = material.styled("div", {
|
|
|
9687
9742
|
${(props) => {
|
|
9688
9743
|
const { imagePadding = false, boundingBox = true, sdsType = "wide", imagePosition = "left", } = props;
|
|
9689
9744
|
const spaces = getSpaces(props);
|
|
9745
|
+
const corners = getCorners(props);
|
|
9690
9746
|
return material.css `
|
|
9691
9747
|
display: flex;
|
|
9692
9748
|
align-items: start;
|
|
9749
|
+
border-top-left-radius: calc(${corners?.xl}px - 1px);
|
|
9750
|
+
border-bottom-left-radius: calc(${corners?.xl}px - 1px);
|
|
9751
|
+
overflow: hidden;
|
|
9693
9752
|
|
|
9694
9753
|
${boundingBox
|
|
9695
9754
|
? imagePadding
|
|
@@ -9724,6 +9783,8 @@ const StyledImageMediaWrapper = material.styled("div", {
|
|
|
9724
9783
|
`}
|
|
9725
9784
|
|
|
9726
9785
|
justify-content: center;
|
|
9786
|
+
border-top-left-radius: calc(${corners?.xl}px - 1px);
|
|
9787
|
+
border-top-right-radius: calc(${corners?.xl}px - 1px);
|
|
9727
9788
|
`}
|
|
9728
9789
|
`;
|
|
9729
9790
|
}}
|
|
@@ -9864,7 +9925,7 @@ const StyledPaper = styled__default.default(material.Paper, {
|
|
|
9864
9925
|
const semanticColors = getSemanticColors(props);
|
|
9865
9926
|
const isSmall = sdsSize === "xs" || sdsSize === "s";
|
|
9866
9927
|
return `
|
|
9867
|
-
background-color: ${semanticColors?.base?.
|
|
9928
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
9868
9929
|
background-image: none;
|
|
9869
9930
|
box-shadow: ${shadows?.l};
|
|
9870
9931
|
max-height: calc(100vh - ${2 * (spaces?.xxxl || 40)}px);
|
|
@@ -10506,12 +10567,11 @@ const disabledStyles$1 = (props) => {
|
|
|
10506
10567
|
const StyledFormControlLabel$1 = styled__default.default(material.FormControlLabel) `
|
|
10507
10568
|
${(props) => {
|
|
10508
10569
|
const { disabled } = props;
|
|
10509
|
-
const spaces = getSpaces(props);
|
|
10510
10570
|
const semanticColors = getSemanticColors(props);
|
|
10511
10571
|
const borders = getBorders(props);
|
|
10512
10572
|
return `
|
|
10513
10573
|
align-items: start;
|
|
10514
|
-
margin-bottom:
|
|
10574
|
+
margin-bottom: 0;
|
|
10515
10575
|
margin-left: 0;
|
|
10516
10576
|
margin-right: 0;
|
|
10517
10577
|
width: fit-content;
|
|
@@ -10519,7 +10579,7 @@ const StyledFormControlLabel$1 = styled__default.default(material.FormControlLab
|
|
|
10519
10579
|
&:hover {
|
|
10520
10580
|
${StyledCheckboxDefaultIcon} {
|
|
10521
10581
|
border: ${borders?.base?.hover};
|
|
10522
|
-
background-color: ${disabled ? "transparent" : semanticColors?.base?.
|
|
10582
|
+
background-color: ${disabled ? "transparent" : semanticColors?.base?.fillInteraction};
|
|
10523
10583
|
}
|
|
10524
10584
|
|
|
10525
10585
|
${StyledCheckboxCheckedIcon} {
|
|
@@ -10693,19 +10753,18 @@ const disabledStyles = (props) => {
|
|
|
10693
10753
|
const StyledFormControlLabel = styled__default.default(material.FormControlLabel) `
|
|
10694
10754
|
${(props) => {
|
|
10695
10755
|
const { disabled } = props;
|
|
10696
|
-
const spaces = getSpaces(props);
|
|
10697
10756
|
const semanticColors = getSemanticColors(props);
|
|
10698
10757
|
return `
|
|
10699
10758
|
align-items: start;
|
|
10700
|
-
margin-bottom:
|
|
10759
|
+
margin-bottom: 0;
|
|
10701
10760
|
margin-left: 0;
|
|
10702
10761
|
margin-right: 0;
|
|
10703
10762
|
width: fit-content;
|
|
10704
10763
|
|
|
10705
10764
|
&:hover {
|
|
10706
10765
|
${StyledRadioDefaultIcon} {
|
|
10707
|
-
border: 1px solid ${semanticColors?.base?.
|
|
10708
|
-
background-color: ${disabled ? "transparent" : semanticColors?.base?.
|
|
10766
|
+
border: 1px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
10767
|
+
background-color: ${disabled ? "transparent" : semanticColors?.base?.fillInteraction};
|
|
10709
10768
|
}
|
|
10710
10769
|
|
|
10711
10770
|
${StyledRadioCheckedIcon} {
|
|
@@ -10715,7 +10774,7 @@ const StyledFormControlLabel = styled__default.default(material.FormControlLabel
|
|
|
10715
10774
|
|
|
10716
10775
|
&:active {
|
|
10717
10776
|
${StyledRadioDefaultIcon} {
|
|
10718
|
-
border: 1px solid ${semanticColors?.base?.
|
|
10777
|
+
border: 1px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
10719
10778
|
}
|
|
10720
10779
|
|
|
10721
10780
|
${StyledRadioCheckedIcon} {
|
|
@@ -11009,12 +11068,12 @@ const textArea = (props) => {
|
|
|
11009
11068
|
};
|
|
11010
11069
|
const StyledLabel$2 = styled__default.default("label") `
|
|
11011
11070
|
display: block;
|
|
11012
|
-
${
|
|
11071
|
+
${fontBodySemiboldXxxs}
|
|
11013
11072
|
|
|
11014
11073
|
${(props) => {
|
|
11015
11074
|
const spaces = getSpaces(props);
|
|
11016
11075
|
return `
|
|
11017
|
-
margin-bottom: ${spaces?.
|
|
11076
|
+
margin-bottom: ${spaces?.s}px;
|
|
11018
11077
|
`;
|
|
11019
11078
|
}}
|
|
11020
11079
|
`;
|
|
@@ -11030,8 +11089,6 @@ const StyledInputBase = styled__default.default(material.TextField, {
|
|
|
11030
11089
|
const corners = getCorners(props);
|
|
11031
11090
|
const semanticColors = getSemanticColors(props);
|
|
11032
11091
|
return react.css `
|
|
11033
|
-
margin-bottom: ${spaces?.l}px;
|
|
11034
|
-
margin-right: ${spaces?.m}px;
|
|
11035
11092
|
display: block;
|
|
11036
11093
|
|
|
11037
11094
|
.${material.outlinedInputClasses.root} {
|
|
@@ -11068,7 +11125,7 @@ const StyledInputBase = styled__default.default(material.TextField, {
|
|
|
11068
11125
|
.${material.outlinedInputClasses.root}:hover
|
|
11069
11126
|
.${material.outlinedInputClasses.notchedOutline} {
|
|
11070
11127
|
border: ${borders?.base?.hover};
|
|
11071
|
-
background-color: ${semanticColors?.base?.
|
|
11128
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
11072
11129
|
}
|
|
11073
11130
|
|
|
11074
11131
|
.${material.outlinedInputClasses.root}.${material.outlinedInputClasses.focused}
|
|
@@ -11247,7 +11304,7 @@ const toggleOff = (props) => {
|
|
|
11247
11304
|
}
|
|
11248
11305
|
|
|
11249
11306
|
&:hover {
|
|
11250
|
-
background-color: ${semanticColors?.base?.
|
|
11307
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
11251
11308
|
}
|
|
11252
11309
|
}
|
|
11253
11310
|
|
|
@@ -11269,7 +11326,7 @@ const toggleOff = (props) => {
|
|
|
11269
11326
|
outline: ${borders?.base?.hover};
|
|
11270
11327
|
|
|
11271
11328
|
.${material.switchClasses.thumb} {
|
|
11272
|
-
color: ${semanticColors?.base?.
|
|
11329
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
11273
11330
|
}
|
|
11274
11331
|
}`}
|
|
11275
11332
|
`;
|
|
@@ -11301,6 +11358,123 @@ const InputToggle = (props) => {
|
|
|
11301
11358
|
return (jsxRuntime.jsx(Toggle, __assign({ checked: finalChecked, color: "primary", onChange: handleChange, value: labelValue }, rest)));
|
|
11302
11359
|
};
|
|
11303
11360
|
|
|
11361
|
+
const StyledIntentMessage = styled__default.default.div `
|
|
11362
|
+
display: flex;
|
|
11363
|
+
flex-direction: column;
|
|
11364
|
+
${(props) => {
|
|
11365
|
+
const spaces = getSpaces(props);
|
|
11366
|
+
const semanticColors = getSemanticColors(props);
|
|
11367
|
+
const borderThickness = 2;
|
|
11368
|
+
const borderColor = props.borderIntent
|
|
11369
|
+
? semanticColors?.[props.borderIntent]?.border
|
|
11370
|
+
: "transparent";
|
|
11371
|
+
return `
|
|
11372
|
+
gap: ${spaces?.s}px;
|
|
11373
|
+
position: relative;
|
|
11374
|
+
|
|
11375
|
+
&::before {
|
|
11376
|
+
content: "";
|
|
11377
|
+
position: absolute;
|
|
11378
|
+
left: -${(spaces?.xs || 0) + borderThickness}px;
|
|
11379
|
+
top: 0;
|
|
11380
|
+
bottom: 0;
|
|
11381
|
+
width: ${borderThickness}px;
|
|
11382
|
+
background-color: ${borderColor};
|
|
11383
|
+
display: ${props.hasBorder ? "block" : "none"};
|
|
11384
|
+
}
|
|
11385
|
+
`;
|
|
11386
|
+
}}
|
|
11387
|
+
`;
|
|
11388
|
+
const StyledMessageItem = styled__default.default.div `
|
|
11389
|
+
${fontBodySemiboldXxxs}
|
|
11390
|
+
display: flex;
|
|
11391
|
+
align-items: start;
|
|
11392
|
+
|
|
11393
|
+
${(props) => {
|
|
11394
|
+
const spaces = getSpaces(props);
|
|
11395
|
+
const semanticColors = getSemanticColors(props);
|
|
11396
|
+
const intentColors = semanticColors?.[props.intent];
|
|
11397
|
+
return `
|
|
11398
|
+
gap: ${spaces?.xs}px;
|
|
11399
|
+
color: ${intentColors?.text};
|
|
11400
|
+
|
|
11401
|
+
svg {
|
|
11402
|
+
margin-top: ${spaces?.xxxs}px;
|
|
11403
|
+
fill: ${intentColors?.ornament};
|
|
11404
|
+
path {
|
|
11405
|
+
fill: ${intentColors?.ornament};
|
|
11406
|
+
}
|
|
11407
|
+
}
|
|
11408
|
+
`;
|
|
11409
|
+
}}
|
|
11410
|
+
`;
|
|
11411
|
+
|
|
11412
|
+
const DEFAULT_INTENT_PRIORITY = {
|
|
11413
|
+
negative: 0,
|
|
11414
|
+
notice: 1,
|
|
11415
|
+
positive: 2
|
|
11416
|
+
};
|
|
11417
|
+
const IntentMessage = (props) => {
|
|
11418
|
+
const { messages = [], children, border = false, autoOrder = true, orderBy, ...rest } = props;
|
|
11419
|
+
// const priorities = React.useMemo(() => {
|
|
11420
|
+
// return orderBy
|
|
11421
|
+
// ? orderBy.reduce(
|
|
11422
|
+
// (acc, intent, index) => {
|
|
11423
|
+
// acc[intent] = index;
|
|
11424
|
+
// return acc;
|
|
11425
|
+
// },
|
|
11426
|
+
// {} as Record<IntentMessageIntent, number>
|
|
11427
|
+
// )
|
|
11428
|
+
// : DEFAULT_INTENT_PRIORITY;
|
|
11429
|
+
// }, [orderBy]);
|
|
11430
|
+
const priorities = orderBy
|
|
11431
|
+
? Object.fromEntries(orderBy.map((value, index) => [value, index]))
|
|
11432
|
+
: DEFAULT_INTENT_PRIORITY;
|
|
11433
|
+
/**
|
|
11434
|
+
* Determines the left border color based on message intent priority.
|
|
11435
|
+
* When multiple IntentMessage items are rendered together, the border color
|
|
11436
|
+
* corresponds to the highest-priority intent present.
|
|
11437
|
+
*/
|
|
11438
|
+
const borderColorIntent = React__namespace.default.useMemo(() => {
|
|
11439
|
+
if (!messages || messages.length === 0)
|
|
11440
|
+
return undefined;
|
|
11441
|
+
// Find the message with the highest priority (lowest number)
|
|
11442
|
+
const highestPriorityMessage = messages.reduce((prev, current) => {
|
|
11443
|
+
const priorityPrev = priorities[prev.intent] ?? 999;
|
|
11444
|
+
const priorityCurrent = priorities[current.intent] ?? 999;
|
|
11445
|
+
return priorityPrev <= priorityCurrent ? prev : current;
|
|
11446
|
+
});
|
|
11447
|
+
return highestPriorityMessage.intent;
|
|
11448
|
+
}, [messages, priorities]);
|
|
11449
|
+
const getIcon = (item) => {
|
|
11450
|
+
const { icon, intent } = item;
|
|
11451
|
+
if (icon) {
|
|
11452
|
+
if (typeof icon !== "string") {
|
|
11453
|
+
return icon;
|
|
11454
|
+
}
|
|
11455
|
+
return jsxRuntime.jsx(Icon, { sdsIcon: icon, sdsSize: "xs" });
|
|
11456
|
+
}
|
|
11457
|
+
switch (intent) {
|
|
11458
|
+
case "positive":
|
|
11459
|
+
return jsxRuntime.jsx(Icon, { sdsIcon: "CheckCircle", sdsSize: "xs" });
|
|
11460
|
+
case "negative":
|
|
11461
|
+
case "notice":
|
|
11462
|
+
default:
|
|
11463
|
+
return jsxRuntime.jsx(Icon, { sdsIcon: "ExclamationMarkCircle", sdsSize: "xs" });
|
|
11464
|
+
}
|
|
11465
|
+
};
|
|
11466
|
+
const sortedMessages = React__namespace.default.useMemo(() => {
|
|
11467
|
+
if (!autoOrder)
|
|
11468
|
+
return messages;
|
|
11469
|
+
return [...messages].sort((a, b) => {
|
|
11470
|
+
const priorityA = priorities[a.intent] ?? 999;
|
|
11471
|
+
const priorityB = priorities[b.intent] ?? 999;
|
|
11472
|
+
return priorityA - priorityB;
|
|
11473
|
+
});
|
|
11474
|
+
}, [messages, autoOrder, priorities]);
|
|
11475
|
+
return (jsxRuntime.jsxs(StyledIntentMessage, __assign({ borderIntent: borderColorIntent, hasBorder: border }, rest, { children: [children, sortedMessages.map((message, index) => (jsxRuntime.jsxs(StyledMessageItem, { intent: message.intent, children: [getIcon(message), jsxRuntime.jsx("span", { children: message.text })] }, index)))] })));
|
|
11476
|
+
};
|
|
11477
|
+
|
|
11304
11478
|
const LegendContainer = styled__default.default("div") `
|
|
11305
11479
|
display: flex;
|
|
11306
11480
|
flex-wrap: wrap;
|
|
@@ -11742,7 +11916,7 @@ const StyledMenu = styled__default.default(material.Menu) `
|
|
|
11742
11916
|
const corners = getCorners(props);
|
|
11743
11917
|
const semanticColors = getSemanticColors(props);
|
|
11744
11918
|
return `
|
|
11745
|
-
background-color: ${semanticColors?.base?.
|
|
11919
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
11746
11920
|
background-image: none;
|
|
11747
11921
|
padding: ${spaces?.xs}px;
|
|
11748
11922
|
border-radius: ${corners?.l}px;
|
|
@@ -18080,7 +18254,7 @@ const NarrowNavItemLinkStyles = (props) => {
|
|
|
18080
18254
|
? semanticColors?.base.textPrimaryOnDark
|
|
18081
18255
|
: semanticColors?.base.textPrimary};
|
|
18082
18256
|
background: ${props.hasInvertedStyle
|
|
18083
|
-
? semanticColors?.base.
|
|
18257
|
+
? semanticColors?.base.backgroundSecondaryDark
|
|
18084
18258
|
: semanticColors?.base.backgroundSecondary};
|
|
18085
18259
|
}
|
|
18086
18260
|
`;
|
|
@@ -18106,11 +18280,11 @@ const StyledNavItemLink = styled__default.default(Link, {
|
|
|
18106
18280
|
|
|
18107
18281
|
&:hover {
|
|
18108
18282
|
color: ${props.hasInvertedStyle
|
|
18109
|
-
? semanticColors?.base
|
|
18110
|
-
: semanticColors?.base
|
|
18283
|
+
? semanticColors?.base?.textPrimaryOnDark
|
|
18284
|
+
: semanticColors?.base?.textPrimary};
|
|
18111
18285
|
background-color: ${props.hasInvertedStyle
|
|
18112
|
-
? semanticColors?.base
|
|
18113
|
-
: semanticColors?.base
|
|
18286
|
+
? semanticColors?.base?.fillInteractionOnDark
|
|
18287
|
+
: semanticColors?.base?.fillInteraction};
|
|
18114
18288
|
text-decoration: none;
|
|
18115
18289
|
}
|
|
18116
18290
|
|
|
@@ -18664,7 +18838,7 @@ const StyledSearch = styled__default.default(InputSearch, {
|
|
|
18664
18838
|
&:hover {
|
|
18665
18839
|
fieldset {
|
|
18666
18840
|
border-color: ${hasInvertedStyle
|
|
18667
|
-
? semanticColors?.base?.
|
|
18841
|
+
? semanticColors?.base?.borderPrimaryInteractionOnDark
|
|
18668
18842
|
: ""} !important;
|
|
18669
18843
|
}
|
|
18670
18844
|
|
|
@@ -18682,7 +18856,7 @@ const StyledSearch = styled__default.default(InputSearch, {
|
|
|
18682
18856
|
&.Mui-focused {
|
|
18683
18857
|
fieldset {
|
|
18684
18858
|
border-color: ${hasInvertedStyle
|
|
18685
|
-
? semanticColors?.base?.
|
|
18859
|
+
? semanticColors?.base?.borderPrimaryInteractionOnDark
|
|
18686
18860
|
: ""} !important;
|
|
18687
18861
|
}
|
|
18688
18862
|
|
|
@@ -18877,8 +19051,8 @@ const StyledAccordion = styled__default.default(Accordion, {
|
|
|
18877
19051
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
18878
19052
|
: semanticColors?.base.ornamentSecondary;
|
|
18879
19053
|
const ChevronOpenColor = hasInvertedStyle
|
|
18880
|
-
? semanticColors?.base?.
|
|
18881
|
-
: semanticColors?.base.
|
|
19054
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
19055
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
18882
19056
|
return material.css `
|
|
18883
19057
|
& > .MuiButtonBase-root {
|
|
18884
19058
|
padding: ${spaces?.s}px ${spaces?.l}px !important;
|
|
@@ -18943,16 +19117,16 @@ const StyledAccordion = styled__default.default(Accordion, {
|
|
|
18943
19117
|
width: 100%;
|
|
18944
19118
|
box-shadow: none;
|
|
18945
19119
|
background: ${hasInvertedStyle
|
|
18946
|
-
? semanticColors?.base.
|
|
18947
|
-
: semanticColors?.base.
|
|
19120
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
19121
|
+
: semanticColors?.base.fillInteraction};
|
|
18948
19122
|
color: ${hasInvertedStyle
|
|
18949
19123
|
? semanticColors?.base.textPrimaryOnDark
|
|
18950
19124
|
: semanticColors?.base.textPrimary};
|
|
18951
19125
|
|
|
18952
19126
|
svg {
|
|
18953
19127
|
color: ${hasInvertedStyle
|
|
18954
|
-
? semanticColors?.base?.
|
|
18955
|
-
: semanticColors?.base.
|
|
19128
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
19129
|
+
: semanticColors?.base.ornamentSecondaryInteraction} !important;
|
|
18956
19130
|
}
|
|
18957
19131
|
}
|
|
18958
19132
|
|
|
@@ -19155,8 +19329,8 @@ const StyledHoverDrawerItem = styled__default.default(Button, {
|
|
|
19155
19329
|
box-shadow: none;
|
|
19156
19330
|
cursor: pointer;
|
|
19157
19331
|
background: ${hasInvertedStyle
|
|
19158
|
-
? semanticColors?.base.
|
|
19159
|
-
: semanticColors?.base.
|
|
19332
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
19333
|
+
: semanticColors?.base.fillInteraction};
|
|
19160
19334
|
svg {
|
|
19161
19335
|
color: ${semanticColors?.accent?.ornament};
|
|
19162
19336
|
}
|
|
@@ -19330,8 +19504,8 @@ const NarrowPrimaryNavItem = (props) => {
|
|
|
19330
19504
|
const semanticColors = getSemanticColors(props);
|
|
19331
19505
|
const corners = getCorners(props);
|
|
19332
19506
|
const ChevronHoverColor = hasInvertedStyle
|
|
19333
|
-
? semanticColors?.base?.
|
|
19334
|
-
: semanticColors?.base.
|
|
19507
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
19508
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
19335
19509
|
return react.css `
|
|
19336
19510
|
border-radius: ${corners?.l}px;
|
|
19337
19511
|
justify-content: start;
|
|
@@ -19356,8 +19530,8 @@ const NarrowPrimaryNavItem = (props) => {
|
|
|
19356
19530
|
`
|
|
19357
19531
|
: react.css `
|
|
19358
19532
|
background: ${hasInvertedStyle
|
|
19359
|
-
? semanticColors?.base.
|
|
19360
|
-
: semanticColors?.base.
|
|
19533
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
19534
|
+
: semanticColors?.base.fillInteraction};
|
|
19361
19535
|
`}
|
|
19362
19536
|
box-shadow: none;
|
|
19363
19537
|
|
|
@@ -19389,11 +19563,11 @@ styled__default.default(Button, {
|
|
|
19389
19563
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
19390
19564
|
: semanticColors?.base.ornamentSecondary;
|
|
19391
19565
|
const ChevronHoverColor = hasInvertedStyle
|
|
19392
|
-
? semanticColors?.base?.
|
|
19393
|
-
: semanticColors?.base.
|
|
19566
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
19567
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
19394
19568
|
const ChevronOpenColor = hasInvertedStyle
|
|
19395
|
-
? semanticColors?.base.
|
|
19396
|
-
: semanticColors?.base.
|
|
19569
|
+
? semanticColors?.base.ornamentSecondaryInteractionOnDark
|
|
19570
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
19397
19571
|
return react.css `
|
|
19398
19572
|
border: none;
|
|
19399
19573
|
padding: ${spaces?.xxxs}px ${spaces?.m}px;
|
|
@@ -19410,8 +19584,8 @@ styled__default.default(Button, {
|
|
|
19410
19584
|
|
|
19411
19585
|
&:hover {
|
|
19412
19586
|
background: ${hasInvertedStyle
|
|
19413
|
-
? semanticColors?.base.
|
|
19414
|
-
: semanticColors?.base.
|
|
19587
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
19588
|
+
: semanticColors?.base.fillInteraction} !important;
|
|
19415
19589
|
box-shadow: none;
|
|
19416
19590
|
|
|
19417
19591
|
${StyledLabel$1} {
|
|
@@ -19491,8 +19665,8 @@ const NarrowNavItemStyles = (props) => {
|
|
|
19491
19665
|
const semanticColors = getSemanticColors(props);
|
|
19492
19666
|
const corners = getCorners(props);
|
|
19493
19667
|
const ChevronHoverColor = hasInvertedStyle
|
|
19494
|
-
? semanticColors?.base?.
|
|
19495
|
-
: semanticColors?.base
|
|
19668
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
19669
|
+
: semanticColors?.base?.ornamentSecondaryInteraction;
|
|
19496
19670
|
return react.css `
|
|
19497
19671
|
${active ? fontBodySemiboldL(props) : fontBodyMediumL(props)}
|
|
19498
19672
|
border-radius: ${corners?.l}px;
|
|
@@ -19519,8 +19693,8 @@ const NarrowNavItemStyles = (props) => {
|
|
|
19519
19693
|
`
|
|
19520
19694
|
: react.css `
|
|
19521
19695
|
background: ${hasInvertedStyle
|
|
19522
|
-
? semanticColors?.base.
|
|
19523
|
-
: semanticColors?.base.
|
|
19696
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
19697
|
+
: semanticColors?.base.fillInteraction};
|
|
19524
19698
|
`}
|
|
19525
19699
|
box-shadow: none;
|
|
19526
19700
|
|
|
@@ -19560,11 +19734,11 @@ const UnifiedNavItem = styled__default.default(Button, {
|
|
|
19560
19734
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
19561
19735
|
: semanticColors?.base.ornamentSecondary;
|
|
19562
19736
|
const ChevronHoverColor = hasInvertedStyle
|
|
19563
|
-
? semanticColors?.base?.
|
|
19564
|
-
: semanticColors?.base.
|
|
19737
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
19738
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
19565
19739
|
const ChevronOpenColor = hasInvertedStyle
|
|
19566
|
-
? semanticColors?.base.
|
|
19567
|
-
: semanticColors?.base.
|
|
19740
|
+
? semanticColors?.base.ornamentSecondaryInteractionOnDark
|
|
19741
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
19568
19742
|
return [
|
|
19569
19743
|
navVariant === "secondary" &&
|
|
19570
19744
|
(active ? fontBodySemiboldS(props) : fontBodyMediumS(props)),
|
|
@@ -19592,8 +19766,8 @@ const UnifiedNavItem = styled__default.default(Button, {
|
|
|
19592
19766
|
|
|
19593
19767
|
&:hover {
|
|
19594
19768
|
background: ${hasInvertedStyle
|
|
19595
|
-
? semanticColors?.base.
|
|
19596
|
-
: semanticColors?.base.
|
|
19769
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
19770
|
+
: semanticColors?.base.fillInteraction} !important;
|
|
19597
19771
|
box-shadow: none;
|
|
19598
19772
|
|
|
19599
19773
|
${navVariant === "primary" && StyledLabel} {
|
|
@@ -19688,7 +19862,7 @@ const StyledSectionHeader = styled__default.default(ListSubheader, {
|
|
|
19688
19862
|
? semanticColors?.base.backgroundPrimaryDark
|
|
19689
19863
|
: semanticColors?.base.backgroundPrimary;
|
|
19690
19864
|
}
|
|
19691
|
-
return semanticColors?.base?.
|
|
19865
|
+
return semanticColors?.base?.surfacePrimary;
|
|
19692
19866
|
}
|
|
19693
19867
|
function getTextColor() {
|
|
19694
19868
|
if (isNarrow) {
|
|
@@ -19749,7 +19923,7 @@ const StyledAccordionSection = styled__default.default("div", {
|
|
|
19749
19923
|
border-radius: ${corners?.xl}px;
|
|
19750
19924
|
padding: ${spaces?.l}px;
|
|
19751
19925
|
background-color: ${hasInvertedStyle
|
|
19752
|
-
? semanticColors?.base?.
|
|
19926
|
+
? semanticColors?.base?.backgroundSecondaryDark
|
|
19753
19927
|
: semanticColors?.base?.backgroundSecondary};
|
|
19754
19928
|
`;
|
|
19755
19929
|
}
|
|
@@ -20164,7 +20338,7 @@ function useNavigationState() {
|
|
|
20164
20338
|
};
|
|
20165
20339
|
}
|
|
20166
20340
|
|
|
20167
|
-
function NavigationHeaderPrimaryNav({ menuProps, hasInvertedStyle, isNarrow, items, onChange, value, sdsStyle = "dropdown", expandedAccordion, setExpandedAccordion, accordionRefs, scrollToAccordion, onDrawerStateChange, topOffset = 0, onClose: onCloseProp, }) {
|
|
20341
|
+
function NavigationHeaderPrimaryNav({ menuProps, hasInvertedStyle, isNarrow, items, onChange, value, sdsStyle = "dropdown", expandedAccordion, setExpandedAccordion, accordionRefs, scrollToAccordion, onDrawerStateChange, topOffset = 0, onClose: onCloseProp, onDrawerStyleNavItemHover, }) {
|
|
20168
20342
|
const theme = material.useTheme();
|
|
20169
20343
|
const { anchorEl, activeDropdownKey, activeDrawerKey, contentKey, isContentFading, open, drawerOpen, buttonRef, menuWidth, setAnchorEl, setActiveDropdownKey, setActiveDrawerKey, setContentKey, onClose: handleClose, onDrawerClose, onDrawerOpen, cancelDrawerClose, } = useNavigationState();
|
|
20170
20344
|
const [clickedDrawerKey, setClickedDrawerKey] = React.useState(null);
|
|
@@ -20213,6 +20387,7 @@ function NavigationHeaderPrimaryNav({ menuProps, hasInvertedStyle, isNarrow, ite
|
|
|
20213
20387
|
}
|
|
20214
20388
|
};
|
|
20215
20389
|
return (jsxRuntime.jsx(StyledHoverDrawerContainer, { onMouseEnter: () => {
|
|
20390
|
+
onDrawerStyleNavItemHover?.(item);
|
|
20216
20391
|
if (clickedDrawerKey !== key) {
|
|
20217
20392
|
onDrawerOpen(key);
|
|
20218
20393
|
}
|
|
@@ -20384,8 +20559,8 @@ const NarrowStyledTextItem = (props) => {
|
|
|
20384
20559
|
&:hover {
|
|
20385
20560
|
box-shadow: none;
|
|
20386
20561
|
background: ${hasInvertedStyle
|
|
20387
|
-
? semanticColors?.base.
|
|
20388
|
-
: semanticColors?.base.
|
|
20562
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
20563
|
+
: semanticColors?.base.fillInteraction};
|
|
20389
20564
|
}
|
|
20390
20565
|
`;
|
|
20391
20566
|
};
|
|
@@ -20417,11 +20592,11 @@ styled__default.default(Button, {
|
|
|
20417
20592
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
20418
20593
|
: semanticColors?.base.ornamentSecondary;
|
|
20419
20594
|
const ChevronHoverColor = hasInvertedStyle
|
|
20420
|
-
? semanticColors?.base?.
|
|
20421
|
-
: semanticColors?.base.
|
|
20595
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
20596
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
20422
20597
|
const ChevronOpenColor = hasInvertedStyle
|
|
20423
|
-
? semanticColors?.base?.
|
|
20424
|
-
: semanticColors?.base.
|
|
20598
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
20599
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
20425
20600
|
return [
|
|
20426
20601
|
open ? fontBodySemiboldS(props) : fontBodyMediumS(props),
|
|
20427
20602
|
react.css `
|
|
@@ -20442,8 +20617,8 @@ styled__default.default(Button, {
|
|
|
20442
20617
|
|
|
20443
20618
|
&:hover {
|
|
20444
20619
|
background: ${hasInvertedStyle
|
|
20445
|
-
? semanticColors?.base.
|
|
20446
|
-
: semanticColors?.base.
|
|
20620
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
20621
|
+
: semanticColors?.base.fillInteraction};
|
|
20447
20622
|
box-shadow: none;
|
|
20448
20623
|
|
|
20449
20624
|
color: ${hasInvertedStyle
|
|
@@ -20464,7 +20639,7 @@ const StyledTag = styled__default.default(Tag) `
|
|
|
20464
20639
|
margin: 0;
|
|
20465
20640
|
`;
|
|
20466
20641
|
|
|
20467
|
-
function NavigationHeaderSecondaryNav({ menuProps, items, hasInvertedStyle, isNarrow, sdsStyle = "dropdown", expandedAccordion, setExpandedAccordion, accordionRefs, scrollToAccordion, onDrawerStateChange, topOffset = 0, onClose: onCloseProp, }) {
|
|
20642
|
+
function NavigationHeaderSecondaryNav({ menuProps, items, hasInvertedStyle, isNarrow, sdsStyle = "dropdown", expandedAccordion, setExpandedAccordion, accordionRefs, scrollToAccordion, onDrawerStateChange, topOffset = 0, onClose: onCloseProp, onDrawerStyleNavItemHover, }) {
|
|
20468
20643
|
const theme = material.useTheme();
|
|
20469
20644
|
const { anchorEl, activeDropdownKey, activeDrawerKey, contentKey, isContentFading, open, drawerOpen, buttonRef, menuWidth, setAnchorEl, setActiveDropdownKey, setActiveDrawerKey, setContentKey, onClose: handleClose, onDrawerClose, onDrawerOpen, cancelDrawerClose, } = useNavigationState();
|
|
20470
20645
|
function onClose() {
|
|
@@ -20488,7 +20663,10 @@ function NavigationHeaderSecondaryNav({ menuProps, items, hasInvertedStyle, isNa
|
|
|
20488
20663
|
const handleClick = (e) => {
|
|
20489
20664
|
parentOnClick?.(e);
|
|
20490
20665
|
};
|
|
20491
|
-
return (jsxRuntime.jsx(StyledHoverDrawerContainer, { onMouseEnter: () =>
|
|
20666
|
+
return (jsxRuntime.jsx(StyledHoverDrawerContainer, { onMouseEnter: () => {
|
|
20667
|
+
onDrawerStyleNavItemHover?.(item);
|
|
20668
|
+
onDrawerOpen(key);
|
|
20669
|
+
}, onMouseLeave: onDrawerClose, children: jsxRuntime.jsxs(UnifiedNavItem, __assign({}, rest, { hasInvertedStyle: hasInvertedStyle, active: isDrawerOpen, isNarrow: isNarrow, sdsStyle: "minimal", innerSdsStyle: sdsStyle, navVariant: "secondary", onClick: handleClick, component: componentProp, href: defaultUrl, target: target, rel: rel, children: [jsxRuntime.jsx(StyledLabelTextWrapper$1, { active: isDrawerOpen, isNarrow: isNarrow, children: label }), jsxRuntime.jsx(StyledLabelTextWrapperShadow$1, { "aria-hidden": "true", isNarrow: isNarrow, children: label }), jsxRuntime.jsx(Icon, { sdsIcon: isDrawerOpen ? "ChevronUp" : "ChevronDown", sdsSize: "xs" })] })) }, key));
|
|
20492
20670
|
};
|
|
20493
20671
|
const renderDropdownItem = (item, key, label, parentOnClick, rest) => {
|
|
20494
20672
|
const isDropdownOpen = open && activeDropdownKey === key;
|
|
@@ -20660,7 +20838,7 @@ const NavigationHeader = React.forwardRef((props, ref) => {
|
|
|
20660
20838
|
const { activePrimaryNavKey: controlledActivePrimaryNavKey, buttons, sdsStyle = "dropdown", menuProps = {
|
|
20661
20839
|
disableScrollLock: true,
|
|
20662
20840
|
disablePortal: true
|
|
20663
|
-
}, backgroundAppearance = "matchBackground", logo, logoUrl, logoLinkComponent = "a", logoLinkProps, scrollElevation = true, primaryNavItems, primaryNavPosition = "left", searchProps, secondaryNavItems, setActivePrimaryNavKey: onActivePrimaryNavKeyChange, showSearch = true, tag, tagColor, title, drawerOpen: controlledDrawerOpen, setDrawerOpen: onDrawerOpenChange, isSticky = true, topComponentSlot, ...rest } = props;
|
|
20841
|
+
}, backgroundAppearance = "matchBackground", logo, logoUrl, logoLinkComponent = "a", logoLinkProps, scrollElevation = true, primaryNavItems, primaryNavPosition = "left", searchProps, secondaryNavItems, setActivePrimaryNavKey: onActivePrimaryNavKeyChange, showSearch = true, tag, tagColor, title, drawerOpen: controlledDrawerOpen, setDrawerOpen: onDrawerOpenChange, isSticky = true, topComponentSlot, onDrawerStyleNavItemHover, ...rest } = props;
|
|
20664
20842
|
const navRef = React.useRef(null);
|
|
20665
20843
|
const topSlotRef = React.useRef(null);
|
|
20666
20844
|
const [topOffset, setTopOffset] = React.useState(0);
|
|
@@ -20813,11 +20991,11 @@ const NavigationHeader = React.forwardRef((props, ref) => {
|
|
|
20813
20991
|
};
|
|
20814
20992
|
const renderPrimaryNav = () => {
|
|
20815
20993
|
return (primaryNavItems &&
|
|
20816
|
-
primaryNavItems.length > 0 && (jsxRuntime.jsx(NavigationHeaderPrimaryNav, { items: primaryNavItems, value: activePrimaryNavKey, onChange: setActivePrimaryNavKey, hasInvertedStyle: hasInvertedStyle, isNarrow: dimensions.isNarrow, menuProps: menuProps, sdsStyle: sdsStyle, expandedAccordion: expandedAccordion, setExpandedAccordion: setExpandedAccordion, accordionRefs: accordionRefs, scrollToAccordion: scrollToAccordion, onDrawerStateChange: handlePrimaryDrawerStateChange, topOffset: topOffset, onClose: () => setDrawerOpen(false) })));
|
|
20994
|
+
primaryNavItems.length > 0 && (jsxRuntime.jsx(NavigationHeaderPrimaryNav, { items: primaryNavItems, value: activePrimaryNavKey, onChange: setActivePrimaryNavKey, hasInvertedStyle: hasInvertedStyle, isNarrow: dimensions.isNarrow, menuProps: menuProps, sdsStyle: sdsStyle, expandedAccordion: expandedAccordion, setExpandedAccordion: setExpandedAccordion, accordionRefs: accordionRefs, scrollToAccordion: scrollToAccordion, onDrawerStateChange: handlePrimaryDrawerStateChange, topOffset: topOffset, onClose: () => setDrawerOpen(false), onDrawerStyleNavItemHover: onDrawerStyleNavItemHover })));
|
|
20817
20995
|
};
|
|
20818
20996
|
const renderSecondaryNav = () => {
|
|
20819
20997
|
return (secondaryNavItems &&
|
|
20820
|
-
secondaryNavItems.length > 0 && (jsxRuntime.jsx(NavigationHeaderSecondaryNav, { items: secondaryNavItems, hasInvertedStyle: hasInvertedStyle, isNarrow: dimensions.isNarrow, menuProps: menuProps, sdsStyle: sdsStyle, expandedAccordion: expandedAccordion, setExpandedAccordion: setExpandedAccordion, accordionRefs: accordionRefs, scrollToAccordion: scrollToAccordion, onDrawerStateChange: handleSecondaryDrawerStateChange, topOffset: topOffset, onClose: () => setDrawerOpen(false) })));
|
|
20998
|
+
secondaryNavItems.length > 0 && (jsxRuntime.jsx(NavigationHeaderSecondaryNav, { items: secondaryNavItems, hasInvertedStyle: hasInvertedStyle, isNarrow: dimensions.isNarrow, menuProps: menuProps, sdsStyle: sdsStyle, expandedAccordion: expandedAccordion, setExpandedAccordion: setExpandedAccordion, accordionRefs: accordionRefs, scrollToAccordion: scrollToAccordion, onDrawerStateChange: handleSecondaryDrawerStateChange, topOffset: topOffset, onClose: () => setDrawerOpen(false), onDrawerStyleNavItemHover: onDrawerStyleNavItemHover })));
|
|
20821
20999
|
};
|
|
20822
21000
|
const renderButtonsNode = () => {
|
|
20823
21001
|
if (!buttons || buttons.length === 0)
|
|
@@ -20992,7 +21170,7 @@ const StyledTabs$1 = styled__default.default(material.Tabs, {
|
|
|
20992
21170
|
const StyledTab$1 = styled__default.default(material.Tab, {
|
|
20993
21171
|
shouldForwardProp: (prop) => !doNotForwardProps$5.includes(prop)
|
|
20994
21172
|
}) `
|
|
20995
|
-
${
|
|
21173
|
+
${fontBodyMediumXs}
|
|
20996
21174
|
|
|
20997
21175
|
${(props) => {
|
|
20998
21176
|
const spaces = getSpaces(props);
|
|
@@ -21019,20 +21197,20 @@ const StyledTab$1 = styled__default.default(material.Tab, {
|
|
|
21019
21197
|
left: 0;
|
|
21020
21198
|
width: ${spaces?.xxxs}px;
|
|
21021
21199
|
height: 100%;
|
|
21022
|
-
background-color: ${semanticColors?.base?.
|
|
21200
|
+
background-color: ${semanticColors?.base?.borderPrimaryInteraction};
|
|
21023
21201
|
display: none;
|
|
21024
21202
|
border-radius: ${spaces?.xxxs}px;
|
|
21025
21203
|
}
|
|
21026
21204
|
&:hover {
|
|
21027
21205
|
color: ${semanticColors?.base?.textPrimary};
|
|
21028
|
-
background-color: ${semanticColors?.base?.
|
|
21206
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
21029
21207
|
&:before {
|
|
21030
21208
|
display: block;
|
|
21031
21209
|
}
|
|
21032
21210
|
}
|
|
21033
21211
|
&.Mui-selected {
|
|
21034
21212
|
color: ${semanticColors?.base?.textPrimary};
|
|
21035
|
-
font-weight:
|
|
21213
|
+
font-weight: 600;
|
|
21036
21214
|
}
|
|
21037
21215
|
&.MuiButtonBase-root {
|
|
21038
21216
|
text-align: left;
|
|
@@ -21389,7 +21567,7 @@ const StyledPaginationButton = styled__default.default(Button) `
|
|
|
21389
21567
|
|
|
21390
21568
|
&:hover {
|
|
21391
21569
|
& .MuiSvgIcon-root {
|
|
21392
|
-
color: ${semanticColors?.base?.
|
|
21570
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction}
|
|
21393
21571
|
}
|
|
21394
21572
|
}
|
|
21395
21573
|
`;
|
|
@@ -21425,10 +21603,10 @@ const StyledPaginationChevronList = styled__default.default("li", {
|
|
|
21425
21603
|
}
|
|
21426
21604
|
|
|
21427
21605
|
&:hover {
|
|
21428
|
-
background-color: ${disabled ? "transparent" : semanticColors?.base?.
|
|
21606
|
+
background-color: ${disabled ? "transparent" : semanticColors?.base?.fillInteraction};
|
|
21429
21607
|
|
|
21430
21608
|
& .MuiSvgIcon-root {
|
|
21431
|
-
color: ${disabled ? semanticColors?.base?.ornamentDisabled : semanticColors?.base?.
|
|
21609
|
+
color: ${disabled ? semanticColors?.base?.ornamentDisabled : semanticColors?.base?.ornamentSecondaryInteraction}
|
|
21432
21610
|
}
|
|
21433
21611
|
}
|
|
21434
21612
|
|
|
@@ -21450,28 +21628,29 @@ const StyledPagination = styled__default.default("ul", {
|
|
|
21450
21628
|
`;
|
|
21451
21629
|
const selectedPageStyle = (props) => {
|
|
21452
21630
|
const semanticColors = getSemanticColors(props);
|
|
21453
|
-
return `
|
|
21454
|
-
background-color: ${semanticColors?.base?.
|
|
21631
|
+
return react.css `
|
|
21632
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
21455
21633
|
color: ${semanticColors?.base?.textPrimary};
|
|
21456
|
-
font-weight: 500;
|
|
21457
21634
|
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderSecondary};
|
|
21458
21635
|
|
|
21459
21636
|
&:hover {
|
|
21460
21637
|
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderSecondary};
|
|
21461
21638
|
}
|
|
21639
|
+
|
|
21640
|
+
${fontTabularSemiboldS(props)}
|
|
21462
21641
|
`;
|
|
21463
21642
|
};
|
|
21464
21643
|
const Page = styled__default.default("li", {
|
|
21465
21644
|
shouldForwardProp: (prop) => !doNotForwardProps$3.includes(prop)
|
|
21466
21645
|
}) `
|
|
21467
|
-
${
|
|
21646
|
+
${fontTabularMediumS}
|
|
21468
21647
|
|
|
21469
21648
|
${(props) => {
|
|
21470
21649
|
const { selected, sdsStyle } = props;
|
|
21471
21650
|
const spaces = getSpaces(props);
|
|
21472
21651
|
const corners = getCorners(props);
|
|
21473
21652
|
const semanticColors = getSemanticColors(props);
|
|
21474
|
-
return `
|
|
21653
|
+
return react.css `
|
|
21475
21654
|
color: ${semanticColors?.base?.textSecondary};
|
|
21476
21655
|
cursor: pointer;
|
|
21477
21656
|
list-style: none;
|
|
@@ -21485,15 +21664,15 @@ const Page = styled__default.default("li", {
|
|
|
21485
21664
|
border-radius: ${sdsStyle === "round" ? corners?.rounded : corners?.l}px;
|
|
21486
21665
|
user-select: none;
|
|
21487
21666
|
&:hover {
|
|
21488
|
-
background-color: ${semanticColors?.base?.
|
|
21667
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
21489
21668
|
color: ${semanticColors?.base?.textPrimary};
|
|
21490
21669
|
}
|
|
21491
21670
|
|
|
21492
|
-
&:nth-last-of-type(-n+2) {
|
|
21671
|
+
&:nth-last-of-type(-n + 2) {
|
|
21493
21672
|
margin-right: 0;
|
|
21494
21673
|
}
|
|
21495
21674
|
|
|
21496
|
-
${selected && selectedPageStyle(props)}
|
|
21675
|
+
${selected && selectedPageStyle(props)}
|
|
21497
21676
|
${focusVisibleA11yStyle(props)}
|
|
21498
21677
|
`;
|
|
21499
21678
|
}}
|
|
@@ -21816,7 +21995,7 @@ const StyledSegmentedControl = styled__default.default(material.ToggleButtonGrou
|
|
|
21816
21995
|
padding: ${spaces?.xxxs}px;
|
|
21817
21996
|
|
|
21818
21997
|
&:hover {
|
|
21819
|
-
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.
|
|
21998
|
+
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderPrimaryInteraction};
|
|
21820
21999
|
}
|
|
21821
22000
|
|
|
21822
22001
|
.${material.toggleButtonClasses.root}.${material.toggleButtonClasses.disabled} {
|
|
@@ -21824,13 +22003,13 @@ const StyledSegmentedControl = styled__default.default(material.ToggleButtonGrou
|
|
|
21824
22003
|
}
|
|
21825
22004
|
|
|
21826
22005
|
.${material.toggleButtonClasses.root}.${material.toggleButtonClasses.selected} {
|
|
21827
|
-
background-color: ${semanticColors?.base?.
|
|
22006
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
21828
22007
|
color: ${semanticColors?.accent?.ornamentSelected};
|
|
21829
22008
|
border-color: ${semanticColors?.base?.borderPrimary};
|
|
21830
22009
|
|
|
21831
22010
|
&:hover {
|
|
21832
|
-
background-color: ${semanticColors?.base?.
|
|
21833
|
-
color: ${semanticColors?.base?.
|
|
22011
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
22012
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
21834
22013
|
}
|
|
21835
22014
|
}
|
|
21836
22015
|
|
|
@@ -21846,8 +22025,8 @@ const StyledSegmentedControl = styled__default.default(material.ToggleButtonGrou
|
|
|
21846
22025
|
|
|
21847
22026
|
&:hover {
|
|
21848
22027
|
border-color: ${semanticColors?.base?.borderPrimary};
|
|
21849
|
-
background-color: ${semanticColors?.base?.
|
|
21850
|
-
color: ${semanticColors?.base?.
|
|
22028
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
22029
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
21851
22030
|
}
|
|
21852
22031
|
}
|
|
21853
22032
|
`;
|
|
@@ -21930,6 +22109,7 @@ const disabledStyled = (props) => {
|
|
|
21930
22109
|
|
|
21931
22110
|
& span, & div {
|
|
21932
22111
|
color: ${semanticColors?.base?.textDisabled};
|
|
22112
|
+
background-color: transparent !important;
|
|
21933
22113
|
}
|
|
21934
22114
|
|
|
21935
22115
|
.cell-component {
|
|
@@ -21938,11 +22118,12 @@ const disabledStyled = (props) => {
|
|
|
21938
22118
|
user-select: none;
|
|
21939
22119
|
& div {
|
|
21940
22120
|
color: ${semanticColors?.base?.textDisabled};
|
|
21941
|
-
background-color:
|
|
22121
|
+
background-color: transparent;
|
|
21942
22122
|
}
|
|
21943
22123
|
|
|
21944
22124
|
& .MuiChip-root {
|
|
21945
22125
|
background-color: ${semanticColors?.base?.fillDisabled};
|
|
22126
|
+
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderPrimaryDisabled} !important;
|
|
21946
22127
|
|
|
21947
22128
|
& span {
|
|
21948
22129
|
color: ${semanticColors?.base?.textDisabled} !important;
|
|
@@ -21961,7 +22142,7 @@ const hoverStyled = (props) => {
|
|
|
21961
22142
|
const semanticColors = getSemanticColors(props);
|
|
21962
22143
|
return `
|
|
21963
22144
|
&:hover {
|
|
21964
|
-
background-color: ${semanticColors?.base?.
|
|
22145
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
21965
22146
|
}
|
|
21966
22147
|
`;
|
|
21967
22148
|
};
|
|
@@ -22062,8 +22243,8 @@ const StyledTab = styled__default.default(material.Tab, {
|
|
|
22062
22243
|
color: ${semanticColors?.base?.textSecondary};
|
|
22063
22244
|
|
|
22064
22245
|
&:hover {
|
|
22065
|
-
box-shadow: inset 0 -2px 0 0 ${semanticColors?.base?.
|
|
22066
|
-
background-color: ${semanticColors?.base?.
|
|
22246
|
+
box-shadow: inset 0 -2px 0 0 ${semanticColors?.base?.borderPrimaryInteraction};
|
|
22247
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
22067
22248
|
border-top-right-radius: ${corners?.l}px;
|
|
22068
22249
|
border-top-left-radius: ${corners?.l}px;
|
|
22069
22250
|
|
|
@@ -22093,7 +22274,7 @@ const StyledTab = styled__default.default(material.Tab, {
|
|
|
22093
22274
|
function tabFontMixin(props) {
|
|
22094
22275
|
const { sdsSize } = props;
|
|
22095
22276
|
const isLarge = sdsSize === "large";
|
|
22096
|
-
return isLarge ?
|
|
22277
|
+
return isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props);
|
|
22097
22278
|
}
|
|
22098
22279
|
const StyledWrapper = styled__default.default("div") `
|
|
22099
22280
|
${(props) => {
|
|
@@ -22112,7 +22293,7 @@ const StyledCount = styled__default.default("span") `
|
|
|
22112
22293
|
const { sdsSize } = props;
|
|
22113
22294
|
const isLarge = sdsSize === "large";
|
|
22114
22295
|
return react.css `
|
|
22115
|
-
${isLarge ?
|
|
22296
|
+
${isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props)}
|
|
22116
22297
|
`;
|
|
22117
22298
|
}}
|
|
22118
22299
|
`;
|
|
@@ -22121,9 +22302,9 @@ const StyledLabelTextWrapper = styled__default.default("span") `
|
|
|
22121
22302
|
const { sdsSize, selected } = props;
|
|
22122
22303
|
const isLarge = sdsSize === "large";
|
|
22123
22304
|
return react.css `
|
|
22124
|
-
${isLarge ?
|
|
22305
|
+
${isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props)}
|
|
22125
22306
|
${selected &&
|
|
22126
|
-
(isLarge ?
|
|
22307
|
+
(isLarge ? fontBodySemiboldS(props) : fontBodySemiboldXs(props))}
|
|
22127
22308
|
position: absolute;
|
|
22128
22309
|
`;
|
|
22129
22310
|
}}
|
|
@@ -22133,7 +22314,7 @@ const StyledLabelTextWrapperShadow = styled__default.default("span") `
|
|
|
22133
22314
|
const { sdsSize } = props;
|
|
22134
22315
|
const isLarge = sdsSize === "large";
|
|
22135
22316
|
return react.css `
|
|
22136
|
-
${isLarge ?
|
|
22317
|
+
${isLarge ? fontBodySemiboldS(props) : fontBodySemiboldXs(props)}
|
|
22137
22318
|
visibility: hidden;
|
|
22138
22319
|
opacity: 0;
|
|
22139
22320
|
`;
|
|
@@ -25813,7 +25994,7 @@ Object.assign(chroma, {
|
|
|
25813
25994
|
const generateDiscreteColors = (count, options = {}) => {
|
|
25814
25995
|
if (count === 0)
|
|
25815
25996
|
return [];
|
|
25816
|
-
const { isDarkMode = false, start =
|
|
25997
|
+
const { isDarkMode = false, start = 240, rotations = 0.85, gamma = 1, lightness = [0.4, 0.7], correctLightness = true, } = options;
|
|
25817
25998
|
let scale = chroma
|
|
25818
25999
|
.cubehelix()
|
|
25819
26000
|
.start(start)
|
|
@@ -25883,6 +26064,7 @@ exports.InputSearch = InputSearch;
|
|
|
25883
26064
|
exports.InputSlider = InputSlider;
|
|
25884
26065
|
exports.InputText = InputText;
|
|
25885
26066
|
exports.InputToggle = InputToggle;
|
|
26067
|
+
exports.IntentMessage = IntentMessage;
|
|
25886
26068
|
exports.Legend = Legend;
|
|
25887
26069
|
exports.Link = Link;
|
|
25888
26070
|
exports.List = List;
|