@czi-sds/data-viz 0.16.0 → 0.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +374 -259
- package/dist/index.esm.js +375 -260
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -994,7 +994,7 @@ const Spaces = {
|
|
|
994
994
|
xs: 6,
|
|
995
995
|
s: 8,
|
|
996
996
|
m: 12,
|
|
997
|
-
default:
|
|
997
|
+
default: 8,
|
|
998
998
|
l: 16,
|
|
999
999
|
xl: 24,
|
|
1000
1000
|
xxl: 32,
|
|
@@ -1268,7 +1268,7 @@ const SDSPaletteLight = (appTheme) => {
|
|
|
1268
1268
|
backgroundPrimaryDark: appTheme.colors.gray[900],
|
|
1269
1269
|
backgroundPrimaryInverse: appTheme.colors.gray[900],
|
|
1270
1270
|
backgroundSecondary: addOpacityToHex(appTheme.colors.gray[100], 40),
|
|
1271
|
-
|
|
1271
|
+
backgroundSecondaryDark: addOpacityToHex(appTheme.colors.gray[700], 62),
|
|
1272
1272
|
backgroundSecondaryInverse: appTheme.colors.gray[700],
|
|
1273
1273
|
backgroundTertiary: appTheme.colors.gray[100],
|
|
1274
1274
|
borderOnFill: appTheme.colors.gray[50],
|
|
@@ -1276,27 +1276,23 @@ const SDSPaletteLight = (appTheme) => {
|
|
|
1276
1276
|
borderPrimaryDisabled: appTheme.colors.gray[300],
|
|
1277
1277
|
borderPrimaryDisabledOnDark: appTheme.colors.gray[600],
|
|
1278
1278
|
borderPrimaryDisabledInverse: appTheme.colors.gray[600],
|
|
1279
|
-
|
|
1280
|
-
|
|
1279
|
+
borderPrimaryInteraction: appTheme.colors.gray[900],
|
|
1280
|
+
borderPrimaryInteractionOnDark: appTheme.colors.gray[50],
|
|
1281
1281
|
borderPrimaryHoverInverse: appTheme.colors.gray[50],
|
|
1282
1282
|
borderPrimaryOnDark: appTheme.colors.gray[300],
|
|
1283
1283
|
borderPrimaryInverse: appTheme.colors.gray[300],
|
|
1284
|
-
borderPrimaryPressed: appTheme.colors.gray[900],
|
|
1285
|
-
borderPrimaryPressedOnDark: appTheme.colors.gray[50],
|
|
1286
1284
|
borderPrimaryPressedInverse: appTheme.colors.gray[50],
|
|
1287
1285
|
borderSecondary: appTheme.colors.gray[300],
|
|
1288
1286
|
divider: appTheme.colors.gray[200],
|
|
1289
1287
|
dividerOnDark: appTheme.colors.gray[700],
|
|
1290
1288
|
dividerInverse: appTheme.colors.gray[700],
|
|
1291
|
-
fillDisabled: appTheme.colors.gray[
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
fillHoverInverse: addOpacityToHex(appTheme.colors.gray[300],
|
|
1295
|
-
fillOpen: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
1296
|
-
fillOpenOnDark: addOpacityToHex(appTheme.colors.gray[300], 34),
|
|
1289
|
+
fillDisabled: appTheme.colors.gray[100],
|
|
1290
|
+
fillInteraction: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
1291
|
+
fillInteractionOnDark: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
1292
|
+
fillHoverInverse: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
1297
1293
|
fillOpenInverse: addOpacityToHex(appTheme.colors.gray[300], 34),
|
|
1298
|
-
fillPressed: addOpacityToHex(appTheme.colors.gray[300],
|
|
1299
|
-
fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300],
|
|
1294
|
+
fillPressed: addOpacityToHex(appTheme.colors.gray[300], 30),
|
|
1295
|
+
fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300], 24),
|
|
1300
1296
|
fillPressedInverse: addOpacityToHex(appTheme.colors.gray[300], 34),
|
|
1301
1297
|
fillPrimary: appTheme.colors.gray[50],
|
|
1302
1298
|
fillSelected: appTheme.colors.gray[900],
|
|
@@ -1308,16 +1304,15 @@ const SDSPaletteLight = (appTheme) => {
|
|
|
1308
1304
|
ornamentPrimaryOnDark: appTheme.colors.gray[50],
|
|
1309
1305
|
ornamentPrimaryInverse: appTheme.colors.gray[50],
|
|
1310
1306
|
ornamentSecondary: appTheme.colors.gray[600],
|
|
1311
|
-
|
|
1312
|
-
|
|
1307
|
+
ornamentSecondaryInteraction: appTheme.colors.gray[900],
|
|
1308
|
+
ornamentSecondaryInteractionOnDark: appTheme.colors.gray[50],
|
|
1313
1309
|
ornamentSecondaryHoverInverse: appTheme.colors.gray[50],
|
|
1314
1310
|
ornamentSecondaryOnDark: appTheme.colors.gray[300],
|
|
1315
1311
|
ornamentSecondaryInverse: appTheme.colors.gray[300],
|
|
1316
|
-
ornamentSecondaryPressed: appTheme.colors.gray[900],
|
|
1317
|
-
ornamentSecondaryPressedOnDark: appTheme.colors.gray[50],
|
|
1318
1312
|
ornamentSecondaryPressedInverse: appTheme.colors.gray[50],
|
|
1319
|
-
|
|
1320
|
-
|
|
1313
|
+
surfacePrimary: appTheme.colors.gray[50],
|
|
1314
|
+
surfaceSecondary: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
1315
|
+
surfacePrimaryDark: appTheme.colors.gray[900],
|
|
1321
1316
|
surfaceInverse: appTheme.colors.gray[900],
|
|
1322
1317
|
textDisabled: appTheme.colors.gray[300],
|
|
1323
1318
|
textDisabledOnDark: appTheme.colors.gray[600],
|
|
@@ -1430,7 +1425,7 @@ const SDSPaletteDark = (appTheme) => {
|
|
|
1430
1425
|
backgroundPrimaryDark: appTheme.colors.gray[75],
|
|
1431
1426
|
backgroundPrimaryInverse: appTheme.colors.gray[75],
|
|
1432
1427
|
backgroundSecondary: addOpacityToHex(appTheme.colors.gray[100], 60),
|
|
1433
|
-
|
|
1428
|
+
backgroundSecondaryDark: addOpacityToHex(appTheme.colors.gray[100], 60),
|
|
1434
1429
|
backgroundSecondaryInverse: addOpacityToHex(appTheme.colors.gray[100], 60),
|
|
1435
1430
|
backgroundTertiary: appTheme.colors.gray[100],
|
|
1436
1431
|
borderOnFill: appTheme.colors.gray[900],
|
|
@@ -1438,27 +1433,23 @@ const SDSPaletteDark = (appTheme) => {
|
|
|
1438
1433
|
borderPrimaryDisabled: appTheme.colors.gray[300],
|
|
1439
1434
|
borderPrimaryDisabledOnDark: appTheme.colors.gray[300],
|
|
1440
1435
|
borderPrimaryDisabledInverse: appTheme.colors.gray[300],
|
|
1441
|
-
|
|
1442
|
-
|
|
1436
|
+
borderPrimaryInteraction: appTheme.colors.gray[900],
|
|
1437
|
+
borderPrimaryInteractionOnDark: appTheme.colors.gray[900],
|
|
1443
1438
|
borderPrimaryHoverInverse: appTheme.colors.gray[900],
|
|
1444
1439
|
borderPrimaryOnDark: appTheme.colors.gray[600],
|
|
1445
1440
|
borderPrimaryInverse: appTheme.colors.gray[600],
|
|
1446
|
-
borderPrimaryPressed: appTheme.colors.gray[900],
|
|
1447
|
-
borderPrimaryPressedOnDark: appTheme.colors.gray[900],
|
|
1448
1441
|
borderPrimaryPressedInverse: appTheme.colors.gray[900],
|
|
1449
1442
|
borderSecondary: appTheme.colors.gray[300],
|
|
1450
1443
|
divider: appTheme.colors.gray[200],
|
|
1451
1444
|
dividerOnDark: appTheme.colors.gray[200],
|
|
1452
1445
|
dividerInverse: appTheme.colors.gray[200],
|
|
1453
|
-
fillDisabled: appTheme.colors.gray[
|
|
1454
|
-
|
|
1455
|
-
|
|
1446
|
+
fillDisabled: appTheme.colors.gray[100],
|
|
1447
|
+
fillInteraction: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1448
|
+
fillInteractionOnDark: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1456
1449
|
fillHoverInverse: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1457
|
-
fillOpen: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1458
|
-
fillOpenOnDark: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1459
1450
|
fillOpenInverse: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1460
|
-
fillPressed: addOpacityToHex(appTheme.colors.gray[300],
|
|
1461
|
-
fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300],
|
|
1451
|
+
fillPressed: addOpacityToHex(appTheme.colors.gray[300], 40),
|
|
1452
|
+
fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300], 40),
|
|
1462
1453
|
fillPressedInverse: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1463
1454
|
fillPrimary: appTheme.colors.gray[100],
|
|
1464
1455
|
fillSelected: appTheme.colors.gray[900],
|
|
@@ -1470,16 +1461,15 @@ const SDSPaletteDark = (appTheme) => {
|
|
|
1470
1461
|
ornamentPrimaryOnDark: appTheme.colors.gray[900],
|
|
1471
1462
|
ornamentPrimaryInverse: appTheme.colors.gray[50],
|
|
1472
1463
|
ornamentSecondary: appTheme.colors.gray[600],
|
|
1473
|
-
|
|
1474
|
-
|
|
1464
|
+
ornamentSecondaryInteraction: appTheme.colors.gray[900],
|
|
1465
|
+
ornamentSecondaryInteractionOnDark: appTheme.colors.gray[900],
|
|
1475
1466
|
ornamentSecondaryHoverInverse: appTheme.colors.gray[900],
|
|
1476
1467
|
ornamentSecondaryOnDark: appTheme.colors.gray[600],
|
|
1477
1468
|
ornamentSecondaryInverse: appTheme.colors.gray[600],
|
|
1478
|
-
ornamentSecondaryPressed: appTheme.colors.gray[900],
|
|
1479
|
-
ornamentSecondaryPressedOnDark: appTheme.colors.gray[900],
|
|
1480
1469
|
ornamentSecondaryPressedInverse: appTheme.colors.gray[900],
|
|
1481
|
-
|
|
1482
|
-
|
|
1470
|
+
surfacePrimary: appTheme.colors.gray[100],
|
|
1471
|
+
surfaceSecondary: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1472
|
+
surfacePrimaryDark: appTheme.colors.gray[100],
|
|
1483
1473
|
surfaceInverse: appTheme.colors.gray[100],
|
|
1484
1474
|
textDisabled: appTheme.colors.gray[300],
|
|
1485
1475
|
textDisabledOnDark: appTheme.colors.gray[300],
|
|
@@ -1811,7 +1801,7 @@ const Theme = (t) => material.createTheme(makeThemeOptions(SDSChooseTheme(), t))
|
|
|
1811
1801
|
*
|
|
1812
1802
|
* Use the `theme` export to get a flexible light/dark mode theme function
|
|
1813
1803
|
*/
|
|
1814
|
-
Theme("light");
|
|
1804
|
+
const defaultTheme$4 = Theme("light");
|
|
1815
1805
|
|
|
1816
1806
|
const getSpaces = ({ theme }) => {
|
|
1817
1807
|
return theme?.app?.spacing || null;
|
|
@@ -1854,7 +1844,7 @@ function focusVisibleA11yStyle(props) {
|
|
|
1854
1844
|
const semanticColors = getSemanticColors(props);
|
|
1855
1845
|
return `
|
|
1856
1846
|
&.Mui-focusVisible, &:focus-visible {
|
|
1857
|
-
outline: 2px solid ${semanticColors?.base?.
|
|
1847
|
+
outline: 2px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
1858
1848
|
outline-offset: 1px;
|
|
1859
1849
|
}
|
|
1860
1850
|
`;
|
|
@@ -1907,6 +1897,7 @@ const fontBodySemiboldL = fontBody("l", "semibold");
|
|
|
1907
1897
|
const fontBodySemiboldM = fontBody("m", "semibold");
|
|
1908
1898
|
const fontBodySemiboldS = fontBody("s", "semibold");
|
|
1909
1899
|
const fontBodySemiboldXs = fontBody("xs", "semibold");
|
|
1900
|
+
const fontBodySemiboldXxxs = fontBody("xxxs", "semibold");
|
|
1910
1901
|
const fontCaps = createFontFunction({
|
|
1911
1902
|
additionalCss: "text-transform: uppercase;",
|
|
1912
1903
|
defaultWeight: "semibold",
|
|
@@ -1930,8 +1921,9 @@ const fontTabular = createFontFunction({
|
|
|
1930
1921
|
type: "tabular"
|
|
1931
1922
|
});
|
|
1932
1923
|
const fontTabularXs = fontTabular("xs", "regular");
|
|
1933
|
-
const
|
|
1924
|
+
const fontTabularMediumS = fontTabular("s", "medium");
|
|
1934
1925
|
const fontTabularSemiboldXxxxs = fontTabular("xxxxs", "semibold");
|
|
1926
|
+
const fontTabularSemiboldS = fontTabular("s", "semibold");
|
|
1935
1927
|
function themeToCss(fontTheme, fontFamily = "inherit") {
|
|
1936
1928
|
return react.css `
|
|
1937
1929
|
font-family: ${fontFamily};
|
|
@@ -1999,7 +1991,7 @@ const StyledAccordionHeader = styled$2__default.default(material.AccordionSummar
|
|
|
1999
1991
|
&:hover {
|
|
2000
1992
|
& .${material.accordionSummaryClasses.expandIconWrapper} {
|
|
2001
1993
|
svg {
|
|
2002
|
-
color: ${semanticColors?.base?.
|
|
1994
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
2003
1995
|
}
|
|
2004
1996
|
}
|
|
2005
1997
|
}
|
|
@@ -5487,12 +5479,12 @@ const Minimal = (props) => {
|
|
|
5487
5479
|
}
|
|
5488
5480
|
|
|
5489
5481
|
&:hover {
|
|
5490
|
-
background-color: ${semanticColors?.base?.
|
|
5482
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
5491
5483
|
}
|
|
5492
5484
|
|
|
5493
5485
|
&:active {
|
|
5494
5486
|
color: ${semanticColors?.accent?.textActionPressed};
|
|
5495
|
-
background-color: ${semanticColors?.base?.
|
|
5487
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
5496
5488
|
|
|
5497
5489
|
svg {
|
|
5498
5490
|
color: ${semanticColors?.accent?.ornamentPressed};
|
|
@@ -5599,7 +5591,7 @@ const primary$2 = (props) => {
|
|
|
5599
5591
|
}
|
|
5600
5592
|
|
|
5601
5593
|
&:hover {
|
|
5602
|
-
background: ${semanticColors?.base?.
|
|
5594
|
+
background: ${semanticColors?.base?.fillInteraction};
|
|
5603
5595
|
color: ${semanticColors?.accent?.ornamentHover};
|
|
5604
5596
|
|
|
5605
5597
|
svg {
|
|
@@ -5627,7 +5619,7 @@ const secondary$2 = (props) => {
|
|
|
5627
5619
|
}
|
|
5628
5620
|
|
|
5629
5621
|
&:hover {
|
|
5630
|
-
background: ${semanticColors?.base?.
|
|
5622
|
+
background: ${semanticColors?.base?.fillInteraction};
|
|
5631
5623
|
color: ${semanticColors?.accent?.ornamentHover};
|
|
5632
5624
|
|
|
5633
5625
|
svg {
|
|
@@ -5656,19 +5648,19 @@ const tertiary = (props) => {
|
|
|
5656
5648
|
|
|
5657
5649
|
&:hover {
|
|
5658
5650
|
background: none;
|
|
5659
|
-
color: ${semanticColors?.base?.
|
|
5651
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5660
5652
|
|
|
5661
5653
|
svg {
|
|
5662
|
-
color: ${semanticColors?.base?.
|
|
5654
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5663
5655
|
}
|
|
5664
5656
|
}
|
|
5665
5657
|
|
|
5666
5658
|
&:active {
|
|
5667
5659
|
background: none;
|
|
5668
|
-
color: ${semanticColors?.base?.
|
|
5660
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5669
5661
|
|
|
5670
5662
|
svg {
|
|
5671
|
-
color: ${semanticColors?.base?.
|
|
5663
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5672
5664
|
}
|
|
5673
5665
|
}
|
|
5674
5666
|
`;
|
|
@@ -5888,7 +5880,7 @@ const applyIntentColor$2 = (props, intent) => {
|
|
|
5888
5880
|
.${material.inputAdornmentClasses.root} .${material.buttonBaseClasses.root}:last-of-type {
|
|
5889
5881
|
cursor: default;
|
|
5890
5882
|
svg {
|
|
5891
|
-
color: ${semanticColors?.base?.
|
|
5883
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5892
5884
|
}
|
|
5893
5885
|
}
|
|
5894
5886
|
}
|
|
@@ -5954,9 +5946,6 @@ const StyledSearchBase = styled$2__default.default(material.TextField, {
|
|
|
5954
5946
|
const semanticColors = getSemanticColors(props);
|
|
5955
5947
|
const corners = getCorners(props);
|
|
5956
5948
|
return react.css `
|
|
5957
|
-
margin-top: ${spaces?.m}px;
|
|
5958
|
-
margin-bottom: ${spaces?.m}px;
|
|
5959
|
-
margin-right: ${spaces?.xl}px;
|
|
5960
5949
|
min-width: 120px;
|
|
5961
5950
|
display: block;
|
|
5962
5951
|
|
|
@@ -6005,7 +5994,8 @@ const StyledSearchBase = styled$2__default.default(material.TextField, {
|
|
|
6005
5994
|
|
|
6006
5995
|
&:hover {
|
|
6007
5996
|
svg {
|
|
6008
|
-
color: ${semanticColors?.base
|
|
5997
|
+
color: ${semanticColors?.base
|
|
5998
|
+
?.ornamentSecondaryInteraction} !important;
|
|
6009
5999
|
}
|
|
6010
6000
|
}
|
|
6011
6001
|
|
|
@@ -6025,7 +6015,7 @@ const StyledSearchBase = styled$2__default.default(material.TextField, {
|
|
|
6025
6015
|
}
|
|
6026
6016
|
|
|
6027
6017
|
.${material.outlinedInputClasses.root}:hover {
|
|
6028
|
-
background-color: ${semanticColors?.base?.
|
|
6018
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
6029
6019
|
|
|
6030
6020
|
& .${material.buttonBaseClasses.root}:last-of-type {
|
|
6031
6021
|
svg {
|
|
@@ -6033,7 +6023,7 @@ const StyledSearchBase = styled$2__default.default(material.TextField, {
|
|
|
6033
6023
|
}
|
|
6034
6024
|
}
|
|
6035
6025
|
.${material.outlinedInputClasses.notchedOutline} {
|
|
6036
|
-
border: 1px solid ${semanticColors?.base?.
|
|
6026
|
+
border: 1px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
6037
6027
|
}
|
|
6038
6028
|
}
|
|
6039
6029
|
|
|
@@ -6047,13 +6037,13 @@ const StyledSearchBase = styled$2__default.default(material.TextField, {
|
|
|
6047
6037
|
.${material.inputAdornmentClasses.root} .${material.buttonBaseClasses.root}:last-of-type {
|
|
6048
6038
|
cursor: default;
|
|
6049
6039
|
svg {
|
|
6050
|
-
color: ${semanticColors?.base?.
|
|
6040
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
6051
6041
|
}
|
|
6052
6042
|
}
|
|
6053
6043
|
}
|
|
6054
6044
|
|
|
6055
6045
|
&.user-is-tabbing .${material.outlinedInputClasses.root}:focus-within {
|
|
6056
|
-
outline: 2px solid ${semanticColors?.base?.
|
|
6046
|
+
outline: 2px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
6057
6047
|
outline-offset: 1px;
|
|
6058
6048
|
}
|
|
6059
6049
|
|
|
@@ -6092,10 +6082,10 @@ const StyledMenuItem$1 = styled$2__default.default(material.MenuItem) `
|
|
|
6092
6082
|
opacity: 1;
|
|
6093
6083
|
|
|
6094
6084
|
&:hover, &.${material.menuItemClasses.focusVisible} {
|
|
6095
|
-
background-color: ${semanticColors?.base?.
|
|
6085
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
6096
6086
|
|
|
6097
6087
|
&[aria-selected="true"] {
|
|
6098
|
-
background-color: ${semanticColors?.base?.
|
|
6088
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
6099
6089
|
}
|
|
6100
6090
|
}
|
|
6101
6091
|
}
|
|
@@ -6112,7 +6102,7 @@ const StyledMenuItem$1 = styled$2__default.default(material.MenuItem) `
|
|
|
6112
6102
|
background-color: unset !important;
|
|
6113
6103
|
|
|
6114
6104
|
&:hover {
|
|
6115
|
-
background-color: ${semanticColors?.base?.
|
|
6105
|
+
background-color: ${semanticColors?.base?.fillInteraction} !important;
|
|
6116
6106
|
}
|
|
6117
6107
|
|
|
6118
6108
|
${StyledIcon$1}, ${DotIcon} {
|
|
@@ -6125,16 +6115,16 @@ const StyledMenuItem$1 = styled$2__default.default(material.MenuItem) `
|
|
|
6125
6115
|
}
|
|
6126
6116
|
|
|
6127
6117
|
&:hover {
|
|
6128
|
-
background-color: ${semanticColors?.base?.
|
|
6118
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
6129
6119
|
${StyledIcon$1}, ${DotIcon} {
|
|
6130
6120
|
color: ${selected ? semanticColors?.base?.ornamentPrimary : semanticColors?.base?.ornamentSecondary};
|
|
6131
6121
|
}
|
|
6132
6122
|
}
|
|
6133
6123
|
|
|
6134
6124
|
&.Mui-selected.MuiListItem-root.MuiListItem-button {
|
|
6135
|
-
background-color: ${semanticColors?.base?.
|
|
6125
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6136
6126
|
&:hover {
|
|
6137
|
-
background-color: ${semanticColors?.base?.
|
|
6127
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
6138
6128
|
}
|
|
6139
6129
|
}
|
|
6140
6130
|
|
|
@@ -6473,7 +6463,7 @@ styled$2__default.default(material.Autocomplete, {
|
|
|
6473
6463
|
// look at the useDetectUserTabbing hook.
|
|
6474
6464
|
&[data-user-is-tabbing="true"]:focus-within {
|
|
6475
6465
|
border-radius: 4px;
|
|
6476
|
-
outline: 2px solid ${semanticColors?.base?.
|
|
6466
|
+
outline: 2px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
6477
6467
|
outline-offset: 1px;
|
|
6478
6468
|
}
|
|
6479
6469
|
|
|
@@ -6498,11 +6488,11 @@ styled$2__default.default(material.Autocomplete, {
|
|
|
6498
6488
|
min-height: unset;
|
|
6499
6489
|
|
|
6500
6490
|
&.${material.autocompleteClasses.focused} {
|
|
6501
|
-
background-color: ${semanticColors?.base?.
|
|
6491
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
6502
6492
|
}
|
|
6503
6493
|
|
|
6504
6494
|
&[aria-selected="true"] {
|
|
6505
|
-
background-color: ${semanticColors?.base?.
|
|
6495
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6506
6496
|
}
|
|
6507
6497
|
|
|
6508
6498
|
&[aria-disabled="true"] {
|
|
@@ -6510,7 +6500,7 @@ styled$2__default.default(material.Autocomplete, {
|
|
|
6510
6500
|
}
|
|
6511
6501
|
|
|
6512
6502
|
&[aria-selected="true"].${material.autocompleteClasses.focused} {
|
|
6513
|
-
background-color: ${semanticColors?.base?.
|
|
6503
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
6514
6504
|
}
|
|
6515
6505
|
}
|
|
6516
6506
|
|
|
@@ -6524,7 +6514,7 @@ styled$2__default.default(material.Autocomplete, {
|
|
|
6524
6514
|
.${material.autocompleteClasses.groupLabel} {
|
|
6525
6515
|
top: 0;
|
|
6526
6516
|
color: ${semanticColors?.base?.textSecondary};
|
|
6527
|
-
background-color: ${semanticColors?.base?.
|
|
6517
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6528
6518
|
padding: 0 ${spaces?.m}px;
|
|
6529
6519
|
}
|
|
6530
6520
|
|
|
@@ -6592,7 +6582,7 @@ styled$2__default.default(material.Paper) `
|
|
|
6592
6582
|
return `
|
|
6593
6583
|
background-image: none;
|
|
6594
6584
|
padding: ${spaces?.xs}px 0;
|
|
6595
|
-
background-color: ${semanticColors?.base?.
|
|
6585
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6596
6586
|
border: ${borders?.none};
|
|
6597
6587
|
outline: 1px solid ${addOpacityToHex(semanticColors?.base?.borderSecondary || "#000", 15)};
|
|
6598
6588
|
border-radius: ${corners?.l}px;
|
|
@@ -6604,9 +6594,10 @@ styled$2__default.default(material.Paper) `
|
|
|
6604
6594
|
styled$2__default.default("div") `
|
|
6605
6595
|
${fontBodyXxs$1}
|
|
6606
6596
|
${(props) => {
|
|
6597
|
+
const { disabled } = props;
|
|
6607
6598
|
const semanticColors = getSemanticColors(props);
|
|
6608
6599
|
return `
|
|
6609
|
-
color: ${semanticColors?.base?.textSecondary};
|
|
6600
|
+
color: ${disabled ? semanticColors?.base?.textDisabled : semanticColors?.base?.textSecondary};
|
|
6610
6601
|
white-space: pre-wrap;
|
|
6611
6602
|
`;
|
|
6612
6603
|
}}
|
|
@@ -6659,7 +6650,7 @@ styled$2__default.default(material.Popper, {
|
|
|
6659
6650
|
const borders = getBorders(props);
|
|
6660
6651
|
const semanticColors = getSemanticColors(props);
|
|
6661
6652
|
return `
|
|
6662
|
-
background-color: ${semanticColors?.base?.
|
|
6653
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6663
6654
|
background-image: none;
|
|
6664
6655
|
border: ${borders?.none};
|
|
6665
6656
|
border-radius: ${corners?.l}px;
|
|
@@ -6686,7 +6677,7 @@ styled$2__default.default(material.Paper, {
|
|
|
6686
6677
|
const shadows = getShadows(props);
|
|
6687
6678
|
const semanticColors = getSemanticColors(props);
|
|
6688
6679
|
return `
|
|
6689
|
-
background-color: ${semanticColors?.base?.
|
|
6680
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6690
6681
|
background-image: none;
|
|
6691
6682
|
box-shadow: ${shadows?.none};
|
|
6692
6683
|
margin: 0;
|
|
@@ -6730,7 +6721,7 @@ material.styled("span") `
|
|
|
6730
6721
|
const iconSizes = getIconSizes(props);
|
|
6731
6722
|
const semanticColors = getSemanticColors(props);
|
|
6732
6723
|
return `
|
|
6733
|
-
background-color: ${semanticColors?.base?.
|
|
6724
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6734
6725
|
position: absolute;
|
|
6735
6726
|
right: -${spaces?.xs}px;
|
|
6736
6727
|
top: -${spaces?.xxxs}px;
|
|
@@ -6921,7 +6912,7 @@ const StyledButtonToggle = styled$2__default.default(ButtonIcon, {
|
|
|
6921
6912
|
const { sdsStage } = props;
|
|
6922
6913
|
const semanticColors = getSemanticColors(props);
|
|
6923
6914
|
return `
|
|
6924
|
-
background-color: ${sdsStage === "on" ? semanticColors?.base?.
|
|
6915
|
+
background-color: ${sdsStage === "on" ? semanticColors?.base?.fillInteraction : "transparent"};
|
|
6925
6916
|
`;
|
|
6926
6917
|
}}
|
|
6927
6918
|
`;
|
|
@@ -7034,7 +7025,7 @@ const dark$1 = (props) => {
|
|
|
7034
7025
|
const semanticColors = getSemanticColors(props);
|
|
7035
7026
|
return css$1.css `
|
|
7036
7027
|
${fontHeaderXs(props)}
|
|
7037
|
-
background-color: ${semanticColors?.base?.
|
|
7028
|
+
background-color: ${semanticColors?.base?.surfacePrimaryDark};
|
|
7038
7029
|
color: ${semanticColors?.base?.textPrimaryOnDark};
|
|
7039
7030
|
padding: ${spaces?.s}px ${spaces?.m}px;
|
|
7040
7031
|
`;
|
|
@@ -7044,7 +7035,7 @@ const light$1 = (props) => {
|
|
|
7044
7035
|
const semanticColors = getSemanticColors(props);
|
|
7045
7036
|
return css$1.css `
|
|
7046
7037
|
${fontBodyXs$2(props)}
|
|
7047
|
-
background-color: ${semanticColors?.base?.
|
|
7038
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
7048
7039
|
color: ${semanticColors?.base?.textPrimary};
|
|
7049
7040
|
padding: ${spaces?.s}px ${spaces?.m}px;
|
|
7050
7041
|
`;
|
|
@@ -7119,8 +7110,8 @@ const arrowCss = (props) => {
|
|
|
7119
7110
|
/* (bethbertozzi): !important is needed to fight inline style */
|
|
7120
7111
|
left: ${arrowOffset}px !important;
|
|
7121
7112
|
color: ${hasInvertedStyle || inverted || sdsStyle === "dark"
|
|
7122
|
-
? semanticColors?.base?.
|
|
7123
|
-
: semanticColors?.base?.
|
|
7113
|
+
? semanticColors?.base?.surfacePrimaryDark
|
|
7114
|
+
: semanticColors?.base?.surfacePrimary};
|
|
7124
7115
|
&:before {
|
|
7125
7116
|
box-sizing: border-box;
|
|
7126
7117
|
width: 12px;
|
|
@@ -7543,7 +7534,7 @@ const StyledTableHeader$1 = styled$2__default.default("th", {
|
|
|
7543
7534
|
}
|
|
7544
7535
|
|
|
7545
7536
|
& svg {
|
|
7546
|
-
color: ${active ? semanticColors?.accent?.ornamentHover : semanticColors?.base?.
|
|
7537
|
+
color: ${active ? semanticColors?.accent?.ornamentHover : semanticColors?.base?.ornamentSecondaryInteraction};
|
|
7547
7538
|
}
|
|
7548
7539
|
}
|
|
7549
7540
|
`;
|
|
@@ -7763,6 +7754,21 @@ styled$2__default.default("div", {
|
|
|
7763
7754
|
`;
|
|
7764
7755
|
}}
|
|
7765
7756
|
`;
|
|
7757
|
+
styled$2__default.default("div", {
|
|
7758
|
+
shouldForwardProp: (prop) => !doNotForwardProps$v.includes(prop)
|
|
7759
|
+
}) `
|
|
7760
|
+
${fontBodyXxs$1}
|
|
7761
|
+
|
|
7762
|
+
${(props) => {
|
|
7763
|
+
const spaces = getSpaces(props);
|
|
7764
|
+
const semanticColors = getSemanticColors(props);
|
|
7765
|
+
return `
|
|
7766
|
+
color: ${semanticColors?.base?.textSecondary};
|
|
7767
|
+
padding-right: ${spaces?.m}px;
|
|
7768
|
+
padding-top: ${spaces?.xxxs}px;
|
|
7769
|
+
`;
|
|
7770
|
+
}}
|
|
7771
|
+
`;
|
|
7766
7772
|
styled$2__default.default("div", {
|
|
7767
7773
|
shouldForwardProp: (prop) => !doNotForwardProps$v.includes(prop)
|
|
7768
7774
|
}) `
|
|
@@ -7809,7 +7815,7 @@ styled$2__default.default(material.Popper, {
|
|
|
7809
7815
|
const shadows = getShadows(props);
|
|
7810
7816
|
const semanticColors = getSemanticColors(props);
|
|
7811
7817
|
return `
|
|
7812
|
-
background-color: ${semanticColors?.base?.
|
|
7818
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
7813
7819
|
background-image: none;
|
|
7814
7820
|
border: ${borders?.none};
|
|
7815
7821
|
border-radius: ${corners?.l}px;
|
|
@@ -7832,7 +7838,7 @@ styled$2__default.default(material.Paper, {
|
|
|
7832
7838
|
border: none !important;
|
|
7833
7839
|
outline: 1px solid ${addOpacityToHex(semanticColors?.base?.borderSecondary || "#000000", 15)};
|
|
7834
7840
|
border-radius: ${corners?.l}px;
|
|
7835
|
-
background-color: ${semanticColors?.base?.
|
|
7841
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
7836
7842
|
background-image: none;
|
|
7837
7843
|
margin: 0;
|
|
7838
7844
|
padding: 0 0 ${spaces?.xs}px 0;
|
|
@@ -7871,9 +7877,15 @@ styled$2__default.default("div") `
|
|
|
7871
7877
|
const spaces = getSpaces(props);
|
|
7872
7878
|
const semanticColors = getSemanticColors(props);
|
|
7873
7879
|
return `
|
|
7880
|
+
& > div {
|
|
7881
|
+
display: flex;
|
|
7882
|
+
flex-direction: row;
|
|
7883
|
+
align-items: center;
|
|
7884
|
+
justify-content: space-between;
|
|
7885
|
+
}
|
|
7886
|
+
|
|
7874
7887
|
display: flex;
|
|
7875
|
-
|
|
7876
|
-
justify-content: space-between;
|
|
7888
|
+
flex-direction: column;
|
|
7877
7889
|
padding: ${spaces?.xs}px ${spaces?.m}px ${search ? spaces?.xs : spaces?.s}px;
|
|
7878
7890
|
${search && `border-bottom: solid 1px ${semanticColors?.base?.divider};`}
|
|
7879
7891
|
`;
|
|
@@ -7935,12 +7947,13 @@ const inputDropdownStyles = (props) => {
|
|
|
7935
7947
|
}
|
|
7936
7948
|
|
|
7937
7949
|
&:hover {
|
|
7938
|
-
background-color: ${semanticColors?.base?.
|
|
7939
|
-
box-shadow: inset 0 0 0 1px
|
|
7950
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
7951
|
+
box-shadow: inset 0 0 0 1px
|
|
7952
|
+
${semanticColors?.base?.borderPrimaryInteraction};
|
|
7940
7953
|
color: ${semanticColors?.base?.textPrimary};
|
|
7941
7954
|
|
|
7942
7955
|
path {
|
|
7943
|
-
fill: ${semanticColors?.base?.
|
|
7956
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
7944
7957
|
}
|
|
7945
7958
|
|
|
7946
7959
|
.styled-label {
|
|
@@ -7954,7 +7967,7 @@ const inputDropdownStyles = (props) => {
|
|
|
7954
7967
|
color: ${semanticColors?.base?.textPrimary};
|
|
7955
7968
|
|
|
7956
7969
|
path {
|
|
7957
|
-
fill: ${semanticColors?.base?.
|
|
7970
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
7958
7971
|
}
|
|
7959
7972
|
}
|
|
7960
7973
|
|
|
@@ -8006,12 +8019,12 @@ const minimal$1 = (props) => {
|
|
|
8006
8019
|
}
|
|
8007
8020
|
|
|
8008
8021
|
&:hover {
|
|
8009
|
-
background-color: ${semanticColors?.base?.
|
|
8022
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
8010
8023
|
border: none;
|
|
8011
8024
|
color: ${semanticColors?.base?.textPrimary};
|
|
8012
8025
|
|
|
8013
8026
|
path {
|
|
8014
|
-
fill: ${semanticColors?.base?.
|
|
8027
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
8015
8028
|
}
|
|
8016
8029
|
|
|
8017
8030
|
.styled-label {
|
|
@@ -8020,7 +8033,7 @@ const minimal$1 = (props) => {
|
|
|
8020
8033
|
}
|
|
8021
8034
|
|
|
8022
8035
|
&:active {
|
|
8023
|
-
background-color: ${semanticColors?.base?.
|
|
8036
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
8024
8037
|
border: none;
|
|
8025
8038
|
}
|
|
8026
8039
|
`;
|
|
@@ -8090,7 +8103,7 @@ const isOpen = (props) => {
|
|
|
8090
8103
|
: ""}
|
|
8091
8104
|
|
|
8092
8105
|
path {
|
|
8093
|
-
fill: ${semanticColors?.base?.
|
|
8106
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
8094
8107
|
}
|
|
8095
8108
|
|
|
8096
8109
|
box-shadow: ${sdsStyle === "minimal"
|
|
@@ -8098,15 +8111,15 @@ const isOpen = (props) => {
|
|
|
8098
8111
|
: `inset 0 0 0 1px ${semanticColors?.[inputColor]?.border}`};
|
|
8099
8112
|
|
|
8100
8113
|
background-color: ${sdsStyle === "minimal"
|
|
8101
|
-
? semanticColors?.base?.
|
|
8114
|
+
? semanticColors?.base?.fillInteraction
|
|
8102
8115
|
: "transparent"};
|
|
8103
8116
|
|
|
8104
8117
|
&:hover {
|
|
8105
8118
|
path {
|
|
8106
|
-
fill: ${semanticColors?.base?.
|
|
8119
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
8107
8120
|
}
|
|
8108
8121
|
|
|
8109
|
-
border-color: ${semanticColors?.base?.
|
|
8122
|
+
border-color: ${semanticColors?.base?.borderPrimaryInteraction};
|
|
8110
8123
|
}
|
|
8111
8124
|
`;
|
|
8112
8125
|
};
|
|
@@ -8116,11 +8129,13 @@ const applyIntentColor$1 = (props, intent) => {
|
|
|
8116
8129
|
box-shadow: inset 0 0 0 1px ${semanticColors?.[intent]?.border};
|
|
8117
8130
|
|
|
8118
8131
|
&:hover {
|
|
8119
|
-
box-shadow: inset 0 0 0 1px
|
|
8132
|
+
box-shadow: inset 0 0 0 1px
|
|
8133
|
+
${semanticColors?.base?.borderPrimaryInteraction};
|
|
8120
8134
|
}
|
|
8121
8135
|
|
|
8122
8136
|
&:active {
|
|
8123
|
-
box-shadow: inset 0 0 0 1px
|
|
8137
|
+
box-shadow: inset 0 0 0 1px
|
|
8138
|
+
${semanticColors?.base?.borderPrimaryInteraction};
|
|
8124
8139
|
}
|
|
8125
8140
|
`;
|
|
8126
8141
|
};
|
|
@@ -8340,7 +8355,6 @@ const tagSizeS = (props) => {
|
|
|
8340
8355
|
const semanticColors = getSemanticColors(props);
|
|
8341
8356
|
return react.css `
|
|
8342
8357
|
height: unset;
|
|
8343
|
-
margin: 0 ${spaces?.xxs}px ${spaces?.xs}px 0;
|
|
8344
8358
|
|
|
8345
8359
|
.MuiChip-label {
|
|
8346
8360
|
${fontBodyXxxs$1(props)}
|
|
@@ -8350,7 +8364,7 @@ const tagSizeS = (props) => {
|
|
|
8350
8364
|
.MuiSvgIcon-root {
|
|
8351
8365
|
height: ${iconSizes?.xs.height}px;
|
|
8352
8366
|
width: ${iconSizes?.xs.width}px;
|
|
8353
|
-
margin: 0 ${spaces?.xxs}px 0
|
|
8367
|
+
margin: 0 ${spaces?.xxs}px 0 0;
|
|
8354
8368
|
}
|
|
8355
8369
|
|
|
8356
8370
|
.MuiChip-deleteIcon {
|
|
@@ -8368,7 +8382,6 @@ const tagSizeL = (props) => {
|
|
|
8368
8382
|
const semanticColors = getSemanticColors(props);
|
|
8369
8383
|
return react.css `
|
|
8370
8384
|
height: unset;
|
|
8371
|
-
margin: 0 ${spaces?.xxs}px ${spaces?.xs}px 0;
|
|
8372
8385
|
|
|
8373
8386
|
.MuiChip-label {
|
|
8374
8387
|
${fontBodyXs$2(props)}
|
|
@@ -8378,7 +8391,7 @@ const tagSizeL = (props) => {
|
|
|
8378
8391
|
.MuiSvgIcon-root {
|
|
8379
8392
|
height: ${iconSizes?.l.height}px;
|
|
8380
8393
|
width: ${iconSizes?.l.width}px;
|
|
8381
|
-
margin: 0 ${spaces?.xxs}px 0
|
|
8394
|
+
margin: 0 ${spaces?.xxs}px 0 0px;
|
|
8382
8395
|
}
|
|
8383
8396
|
|
|
8384
8397
|
.MuiChip-deleteIcon {
|
|
@@ -8395,9 +8408,11 @@ const rounded = (props) => {
|
|
|
8395
8408
|
const spaces = getSpaces(props);
|
|
8396
8409
|
const { sdsSize = "s", icon } = props;
|
|
8397
8410
|
const topBottomPadding = sdsSize === "s" ? spaces?.xxxs : icon ? spaces?.xxs : spaces?.xs;
|
|
8411
|
+
const rightPadding = sdsSize === "l" && icon ? spaces?.s : spaces?.xs;
|
|
8398
8412
|
return react.css `
|
|
8399
8413
|
border-radius: ${corners?.rounded}px;
|
|
8400
|
-
padding: ${topBottomPadding}px ${
|
|
8414
|
+
padding: ${topBottomPadding}px ${rightPadding}px ${topBottomPadding}px
|
|
8415
|
+
${spaces?.xs}px;
|
|
8401
8416
|
|
|
8402
8417
|
&:after {
|
|
8403
8418
|
content: "";
|
|
@@ -8412,7 +8427,7 @@ const square = (props) => {
|
|
|
8412
8427
|
const topBottomPadding = sdsSize === "s" ? spaces?.xxxs : icon ? spaces?.xxs : spaces?.xs;
|
|
8413
8428
|
return react.css `
|
|
8414
8429
|
border-radius: ${corners?.m}px;
|
|
8415
|
-
padding: ${topBottomPadding}px ${spaces?.
|
|
8430
|
+
padding: ${topBottomPadding}px ${spaces?.xs}px;
|
|
8416
8431
|
|
|
8417
8432
|
&:after {
|
|
8418
8433
|
content: "";
|
|
@@ -8440,54 +8455,51 @@ const secondary = (props) => {
|
|
|
8440
8455
|
return createTypeCss(props, "secondary");
|
|
8441
8456
|
};
|
|
8442
8457
|
function generatePrimaryTagColors(intent, colors, semanticColors) {
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
backgroundClicked: semanticColors?.neutral.fillPressed,
|
|
8461
|
-
backgroundHover: semanticColors?.neutral.fillHover,
|
|
8462
|
-
iconColor: semanticColors?.base?.ornamentOnFill,
|
|
8463
|
-
label: semanticColors?.base?.textOnFill
|
|
8464
|
-
};
|
|
8465
|
-
}
|
|
8458
|
+
const effectiveIntent = intent || "neutral";
|
|
8459
|
+
const intentColors = semanticColors?.[effectiveIntent];
|
|
8460
|
+
const hasCustomColors = colors.length >= 2;
|
|
8461
|
+
return {
|
|
8462
|
+
background: hasCustomColors ? colors[1] : intentColors?.fillPrimary,
|
|
8463
|
+
backgroundClicked: hasCustomColors
|
|
8464
|
+
? material.darken(colors[1], 0.3)
|
|
8465
|
+
: intentColors?.fillPressed,
|
|
8466
|
+
backgroundHover: hasCustomColors
|
|
8467
|
+
? material.darken(colors[1], 0.15)
|
|
8468
|
+
: intentColors?.fillHover,
|
|
8469
|
+
iconColor: hasCustomColors
|
|
8470
|
+
? colors[2]
|
|
8471
|
+
: semanticColors?.base?.ornamentOnFill,
|
|
8472
|
+
label: colors.length > 0 ? colors[0] : semanticColors?.base?.textOnFill,
|
|
8473
|
+
borderColor: material.alpha(semanticColors?.neutral.border || "#000", 0.6)
|
|
8474
|
+
};
|
|
8466
8475
|
}
|
|
8467
|
-
function
|
|
8468
|
-
if (
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
-
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8475
|
-
|
|
8476
|
-
|
|
8477
|
-
|
|
8478
|
-
|
|
8479
|
-
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
|
|
8476
|
+
function getSecondaryBorderColor(effectiveIntent, theme, intentColors) {
|
|
8477
|
+
if (!theme || !theme.palette)
|
|
8478
|
+
return material.alpha(intentColors?.border || "#000", 0.6);
|
|
8479
|
+
if (effectiveIntent === "negative" && theme.palette.mode === "dark")
|
|
8480
|
+
return material.alpha(intentColors?.border || "#000", 0.65);
|
|
8481
|
+
if (effectiveIntent === "notice" && theme.palette.mode === "light")
|
|
8482
|
+
return material.alpha(intentColors?.border || "#000", 0.85);
|
|
8483
|
+
return material.alpha(intentColors?.border || "#000", 0.6);
|
|
8484
|
+
}
|
|
8485
|
+
function generateSecondaryTagColors(intent, colors, semanticColors, theme = defaultTheme$4) {
|
|
8486
|
+
const effectiveIntent = intent || "neutral";
|
|
8487
|
+
const intentColors = semanticColors?.[effectiveIntent];
|
|
8488
|
+
const hasCustomColors = colors.length >= 2;
|
|
8489
|
+
return {
|
|
8490
|
+
background: hasCustomColors ? colors[1] : intentColors?.fillSecondary,
|
|
8491
|
+
backgroundClicked: hasCustomColors
|
|
8492
|
+
? material.darken(colors[1], 0.3)
|
|
8493
|
+
: intentColors?.fillPressed,
|
|
8494
|
+
backgroundHover: hasCustomColors
|
|
8495
|
+
? material.darken(colors[1], 0.15)
|
|
8496
|
+
: intentColors?.fillHover,
|
|
8497
|
+
iconColor: hasCustomColors ? colors[2] : intentColors?.ornament,
|
|
8498
|
+
label: colors.length > 0 ? colors[0] : intentColors?.text,
|
|
8499
|
+
borderColor: hasCustomColors
|
|
8500
|
+
? material.alpha(colors[1], 0.6)
|
|
8501
|
+
: getSecondaryBorderColor(effectiveIntent, theme, intentColors)
|
|
8502
|
+
};
|
|
8491
8503
|
}
|
|
8492
8504
|
function createTypeCss(props, type) {
|
|
8493
8505
|
const semanticColors = getSemanticColors(props);
|
|
@@ -8495,12 +8507,16 @@ function createTypeCss(props, type) {
|
|
|
8495
8507
|
const colors = Array.isArray(props.tagColor) ? [...props.tagColor] : [];
|
|
8496
8508
|
const typeToColors = {
|
|
8497
8509
|
primary: generatePrimaryTagColors(intent, colors, semanticColors),
|
|
8498
|
-
secondary: generateSecondaryTagColors(intent, colors, semanticColors)
|
|
8510
|
+
secondary: generateSecondaryTagColors(intent, colors, semanticColors, props.theme)
|
|
8499
8511
|
};
|
|
8500
8512
|
const typeColors = typeToColors[type];
|
|
8501
8513
|
return react.css `
|
|
8502
8514
|
${focusVisibleA11yStyle(props)}
|
|
8503
8515
|
|
|
8516
|
+
${type === "secondary" &&
|
|
8517
|
+
react.css `
|
|
8518
|
+
box-shadow: inset 0 0 0 1px ${typeColors.borderColor};
|
|
8519
|
+
`}
|
|
8504
8520
|
background-color: ${typeColors.background};
|
|
8505
8521
|
position: relative;
|
|
8506
8522
|
|
|
@@ -8514,6 +8530,7 @@ function createTypeCss(props, type) {
|
|
|
8514
8530
|
|
|
8515
8531
|
&:hover,
|
|
8516
8532
|
&:active {
|
|
8533
|
+
box-shadow: none;
|
|
8517
8534
|
.MuiChip-label {
|
|
8518
8535
|
color: ${semanticColors?.base?.textPrimaryInverse};
|
|
8519
8536
|
}
|
|
@@ -8641,6 +8658,9 @@ styled$2__default.default("div") `
|
|
|
8641
8658
|
const spaces = getSpaces(props);
|
|
8642
8659
|
return `
|
|
8643
8660
|
margin-top: ${spaces?.s}px;
|
|
8661
|
+
display: flex;
|
|
8662
|
+
flex-wrap: wrap;
|
|
8663
|
+
gap: ${spaces?.xxs}px;
|
|
8644
8664
|
`;
|
|
8645
8665
|
}}
|
|
8646
8666
|
`;
|
|
@@ -8668,30 +8688,38 @@ const doNotForwardProps$r = [
|
|
|
8668
8688
|
"cardSdsType",
|
|
8669
8689
|
"classes",
|
|
8670
8690
|
];
|
|
8671
|
-
const
|
|
8672
|
-
|
|
8673
|
-
}) `
|
|
8674
|
-
${(props) => {
|
|
8675
|
-
const { imagePosition = "left", sdsType = "wide", boundingBox = true, decorativeBorder = false, imagePadding = false, visualElementType, clickableCard = false, } = props;
|
|
8676
|
-
const semanticColors = getSemanticColors(props);
|
|
8677
|
-
const corners = getCorners(props);
|
|
8678
|
-
const shadows = getShadows(props);
|
|
8679
|
-
const flexDirection = sdsType === "wide" && visualElementType === "image"
|
|
8691
|
+
const getFlexDirection = (sdsType, visualElementType, imagePosition) => {
|
|
8692
|
+
return sdsType === "wide" && visualElementType === "image"
|
|
8680
8693
|
? imagePosition === "left"
|
|
8681
8694
|
? "row"
|
|
8682
8695
|
: "row-reverse"
|
|
8683
8696
|
: visualElementType === "icon"
|
|
8684
8697
|
? "row"
|
|
8685
8698
|
: "column";
|
|
8686
|
-
|
|
8699
|
+
};
|
|
8700
|
+
const getShowDecorativeBorder = (visualElementType, boundingBox, decorativeBorder, imagePadding) => {
|
|
8701
|
+
return visualElementType === "image"
|
|
8687
8702
|
? boundingBox && decorativeBorder && imagePadding
|
|
8688
8703
|
: boundingBox && decorativeBorder;
|
|
8704
|
+
};
|
|
8705
|
+
const StyledCard = styled$2__default.default(material.Card, {
|
|
8706
|
+
shouldForwardProp: (prop) => !doNotForwardProps$r.includes(prop)
|
|
8707
|
+
}) `
|
|
8708
|
+
${(props) => {
|
|
8709
|
+
const { imagePosition = "left", sdsType = "wide", boundingBox = true, decorativeBorder = false, imagePadding = false, visualElementType, clickableCard = false, } = props;
|
|
8710
|
+
const semanticColors = getSemanticColors(props);
|
|
8711
|
+
const corners = getCorners(props);
|
|
8712
|
+
const shadows = getShadows(props);
|
|
8713
|
+
const spaces = getSpaces(props);
|
|
8714
|
+
const flexDirection = getFlexDirection(sdsType, visualElementType, imagePosition);
|
|
8715
|
+
const showDecorativeBorder = getShowDecorativeBorder(visualElementType, boundingBox, decorativeBorder, imagePadding);
|
|
8689
8716
|
return react.css `
|
|
8717
|
+
position: relative;
|
|
8690
8718
|
display: flex;
|
|
8691
8719
|
background-color: transparent;
|
|
8692
8720
|
background-image: none;
|
|
8693
8721
|
flex-direction: ${flexDirection};
|
|
8694
|
-
overflow:
|
|
8722
|
+
overflow: visible;
|
|
8695
8723
|
box-shadow: none;
|
|
8696
8724
|
border-radius: ${corners?.xl}px;
|
|
8697
8725
|
|
|
@@ -8710,16 +8738,47 @@ const StyledCard = styled$2__default.default(material.Card, {
|
|
|
8710
8738
|
background-color: ${semanticColors?.base?.backgroundPrimary};
|
|
8711
8739
|
`}
|
|
8712
8740
|
|
|
8741
|
+
${showDecorativeBorder &&
|
|
8742
|
+
react.css `
|
|
8743
|
+
&:before {
|
|
8744
|
+
content: "";
|
|
8745
|
+
position: absolute;
|
|
8746
|
+
background-color: ${semanticColors?.accent?.border};
|
|
8747
|
+
|
|
8748
|
+
${sdsType === "wide" &&
|
|
8749
|
+
react.css `
|
|
8750
|
+
top: -1px;
|
|
8751
|
+
bottom: -1px;
|
|
8752
|
+
left: -1px;
|
|
8753
|
+
width: ${spaces?.xs}px;
|
|
8754
|
+
border-top-left-radius: ${corners?.xl}px;
|
|
8755
|
+
border-bottom-left-radius: ${corners?.xl}px;
|
|
8756
|
+
`}
|
|
8757
|
+
|
|
8758
|
+
${sdsType === "narrow" &&
|
|
8759
|
+
react.css `
|
|
8760
|
+
height: ${spaces?.xs}px;
|
|
8761
|
+
top: -1px;
|
|
8762
|
+
left: -1px;
|
|
8763
|
+
right: -1px;
|
|
8764
|
+
border-top-left-radius: ${corners?.xl}px;
|
|
8765
|
+
border-top-right-radius: ${corners?.xl}px;
|
|
8766
|
+
`}
|
|
8767
|
+
}
|
|
8768
|
+
`}
|
|
8769
|
+
|
|
8713
8770
|
${sdsType === "wide" &&
|
|
8714
8771
|
showDecorativeBorder &&
|
|
8715
8772
|
react.css `
|
|
8716
|
-
border-left:
|
|
8773
|
+
border-top-left-radius: ${corners?.l}px;
|
|
8774
|
+
border-bottom-left-radius: ${corners?.l}px;
|
|
8717
8775
|
`}
|
|
8718
8776
|
|
|
8719
8777
|
${sdsType === "narrow" &&
|
|
8720
8778
|
showDecorativeBorder &&
|
|
8721
8779
|
react.css `
|
|
8722
|
-
border-top:
|
|
8780
|
+
border-top-left-radius: ${corners?.l}px;
|
|
8781
|
+
border-top-right-radius: ${corners?.l}px;
|
|
8723
8782
|
`}
|
|
8724
8783
|
`;
|
|
8725
8784
|
}}
|
|
@@ -8752,7 +8811,7 @@ const StyledCardActionArea = styled$2__default.default(Button, {
|
|
|
8752
8811
|
|
|
8753
8812
|
&:hover,
|
|
8754
8813
|
&:active {
|
|
8755
|
-
background-color: ${semanticColors?.base?.
|
|
8814
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
8756
8815
|
}
|
|
8757
8816
|
`;
|
|
8758
8817
|
}}
|
|
@@ -8992,9 +9051,13 @@ const StyledImageMediaWrapper = material.styled("div", {
|
|
|
8992
9051
|
${(props) => {
|
|
8993
9052
|
const { imagePadding = false, boundingBox = true, sdsType = "wide", imagePosition = "left", } = props;
|
|
8994
9053
|
const spaces = getSpaces(props);
|
|
9054
|
+
const corners = getCorners(props);
|
|
8995
9055
|
return material.css `
|
|
8996
9056
|
display: flex;
|
|
8997
9057
|
align-items: start;
|
|
9058
|
+
border-top-left-radius: calc(${corners?.xl}px - 1px);
|
|
9059
|
+
border-bottom-left-radius: calc(${corners?.xl}px - 1px);
|
|
9060
|
+
overflow: hidden;
|
|
8998
9061
|
|
|
8999
9062
|
${boundingBox
|
|
9000
9063
|
? imagePadding
|
|
@@ -9029,6 +9092,8 @@ const StyledImageMediaWrapper = material.styled("div", {
|
|
|
9029
9092
|
`}
|
|
9030
9093
|
|
|
9031
9094
|
justify-content: center;
|
|
9095
|
+
border-top-left-radius: calc(${corners?.xl}px - 1px);
|
|
9096
|
+
border-top-right-radius: calc(${corners?.xl}px - 1px);
|
|
9032
9097
|
`}
|
|
9033
9098
|
`;
|
|
9034
9099
|
}}
|
|
@@ -9169,7 +9234,7 @@ const StyledPaper = styled$2__default.default(material.Paper, {
|
|
|
9169
9234
|
const semanticColors = getSemanticColors(props);
|
|
9170
9235
|
const isSmall = sdsSize === "xs" || sdsSize === "s";
|
|
9171
9236
|
return `
|
|
9172
|
-
background-color: ${semanticColors?.base?.
|
|
9237
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
9173
9238
|
background-image: none;
|
|
9174
9239
|
box-shadow: ${shadows?.l};
|
|
9175
9240
|
max-height: calc(100vh - ${2 * (spaces?.xxxl || 40)}px);
|
|
@@ -9811,12 +9876,11 @@ const disabledStyles$1 = (props) => {
|
|
|
9811
9876
|
styled$2__default.default(material.FormControlLabel) `
|
|
9812
9877
|
${(props) => {
|
|
9813
9878
|
const { disabled } = props;
|
|
9814
|
-
const spaces = getSpaces(props);
|
|
9815
9879
|
const semanticColors = getSemanticColors(props);
|
|
9816
9880
|
const borders = getBorders(props);
|
|
9817
9881
|
return `
|
|
9818
9882
|
align-items: start;
|
|
9819
|
-
margin-bottom:
|
|
9883
|
+
margin-bottom: 0;
|
|
9820
9884
|
margin-left: 0;
|
|
9821
9885
|
margin-right: 0;
|
|
9822
9886
|
width: fit-content;
|
|
@@ -9824,7 +9888,7 @@ styled$2__default.default(material.FormControlLabel) `
|
|
|
9824
9888
|
&:hover {
|
|
9825
9889
|
${StyledCheckboxDefaultIcon} {
|
|
9826
9890
|
border: ${borders?.base?.hover};
|
|
9827
|
-
background-color: ${disabled ? "transparent" : semanticColors?.base?.
|
|
9891
|
+
background-color: ${disabled ? "transparent" : semanticColors?.base?.fillInteraction};
|
|
9828
9892
|
}
|
|
9829
9893
|
|
|
9830
9894
|
${StyledCheckboxCheckedIcon} {
|
|
@@ -9961,19 +10025,18 @@ const disabledStyles = (props) => {
|
|
|
9961
10025
|
styled$2__default.default(material.FormControlLabel) `
|
|
9962
10026
|
${(props) => {
|
|
9963
10027
|
const { disabled } = props;
|
|
9964
|
-
const spaces = getSpaces(props);
|
|
9965
10028
|
const semanticColors = getSemanticColors(props);
|
|
9966
10029
|
return `
|
|
9967
10030
|
align-items: start;
|
|
9968
|
-
margin-bottom:
|
|
10031
|
+
margin-bottom: 0;
|
|
9969
10032
|
margin-left: 0;
|
|
9970
10033
|
margin-right: 0;
|
|
9971
10034
|
width: fit-content;
|
|
9972
10035
|
|
|
9973
10036
|
&:hover {
|
|
9974
10037
|
${StyledRadioDefaultIcon} {
|
|
9975
|
-
border: 1px solid ${semanticColors?.base?.
|
|
9976
|
-
background-color: ${disabled ? "transparent" : semanticColors?.base?.
|
|
10038
|
+
border: 1px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
10039
|
+
background-color: ${disabled ? "transparent" : semanticColors?.base?.fillInteraction};
|
|
9977
10040
|
}
|
|
9978
10041
|
|
|
9979
10042
|
${StyledRadioCheckedIcon} {
|
|
@@ -9983,7 +10046,7 @@ styled$2__default.default(material.FormControlLabel) `
|
|
|
9983
10046
|
|
|
9984
10047
|
&:active {
|
|
9985
10048
|
${StyledRadioDefaultIcon} {
|
|
9986
|
-
border: 1px solid ${semanticColors?.base?.
|
|
10049
|
+
border: 1px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
9987
10050
|
}
|
|
9988
10051
|
|
|
9989
10052
|
${StyledRadioCheckedIcon} {
|
|
@@ -10241,12 +10304,12 @@ const textArea = (props) => {
|
|
|
10241
10304
|
};
|
|
10242
10305
|
const StyledLabel$2 = styled$2__default.default("label") `
|
|
10243
10306
|
display: block;
|
|
10244
|
-
${
|
|
10307
|
+
${fontBodySemiboldXxxs}
|
|
10245
10308
|
|
|
10246
10309
|
${(props) => {
|
|
10247
10310
|
const spaces = getSpaces(props);
|
|
10248
10311
|
return `
|
|
10249
|
-
margin-bottom: ${spaces?.
|
|
10312
|
+
margin-bottom: ${spaces?.s}px;
|
|
10250
10313
|
`;
|
|
10251
10314
|
}}
|
|
10252
10315
|
`;
|
|
@@ -10262,8 +10325,6 @@ const StyledInputBase = styled$2__default.default(material.TextField, {
|
|
|
10262
10325
|
const corners = getCorners(props);
|
|
10263
10326
|
const semanticColors = getSemanticColors(props);
|
|
10264
10327
|
return react.css `
|
|
10265
|
-
margin-bottom: ${spaces?.l}px;
|
|
10266
|
-
margin-right: ${spaces?.m}px;
|
|
10267
10328
|
display: block;
|
|
10268
10329
|
|
|
10269
10330
|
.${material.outlinedInputClasses.root} {
|
|
@@ -10300,7 +10361,7 @@ const StyledInputBase = styled$2__default.default(material.TextField, {
|
|
|
10300
10361
|
.${material.outlinedInputClasses.root}:hover
|
|
10301
10362
|
.${material.outlinedInputClasses.notchedOutline} {
|
|
10302
10363
|
border: ${borders?.base?.hover};
|
|
10303
|
-
background-color: ${semanticColors?.base?.
|
|
10364
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
10304
10365
|
}
|
|
10305
10366
|
|
|
10306
10367
|
.${material.outlinedInputClasses.root}.${material.outlinedInputClasses.focused}
|
|
@@ -10479,7 +10540,7 @@ const toggleOff = (props) => {
|
|
|
10479
10540
|
}
|
|
10480
10541
|
|
|
10481
10542
|
&:hover {
|
|
10482
|
-
background-color: ${semanticColors?.base?.
|
|
10543
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
10483
10544
|
}
|
|
10484
10545
|
}
|
|
10485
10546
|
|
|
@@ -10501,7 +10562,7 @@ const toggleOff = (props) => {
|
|
|
10501
10562
|
outline: ${borders?.base?.hover};
|
|
10502
10563
|
|
|
10503
10564
|
.${material.switchClasses.thumb} {
|
|
10504
|
-
color: ${semanticColors?.base?.
|
|
10565
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
10505
10566
|
}
|
|
10506
10567
|
}`}
|
|
10507
10568
|
`;
|
|
@@ -10517,6 +10578,57 @@ styled$2__default.default(material.Switch) `
|
|
|
10517
10578
|
}}
|
|
10518
10579
|
`;
|
|
10519
10580
|
|
|
10581
|
+
styled$2__default.default.div `
|
|
10582
|
+
display: flex;
|
|
10583
|
+
flex-direction: column;
|
|
10584
|
+
${(props) => {
|
|
10585
|
+
const spaces = getSpaces(props);
|
|
10586
|
+
const semanticColors = getSemanticColors(props);
|
|
10587
|
+
const borderThickness = 2;
|
|
10588
|
+
const borderColor = props.borderIntent
|
|
10589
|
+
? semanticColors?.[props.borderIntent]?.border
|
|
10590
|
+
: "transparent";
|
|
10591
|
+
return `
|
|
10592
|
+
gap: ${spaces?.s}px;
|
|
10593
|
+
position: relative;
|
|
10594
|
+
|
|
10595
|
+
&::before {
|
|
10596
|
+
content: "";
|
|
10597
|
+
position: absolute;
|
|
10598
|
+
left: -${(spaces?.xs || 0) + borderThickness}px;
|
|
10599
|
+
top: 0;
|
|
10600
|
+
bottom: 0;
|
|
10601
|
+
width: ${borderThickness}px;
|
|
10602
|
+
background-color: ${borderColor};
|
|
10603
|
+
display: ${props.hasBorder ? "block" : "none"};
|
|
10604
|
+
}
|
|
10605
|
+
`;
|
|
10606
|
+
}}
|
|
10607
|
+
`;
|
|
10608
|
+
styled$2__default.default.div `
|
|
10609
|
+
${fontBodySemiboldXxxs}
|
|
10610
|
+
display: flex;
|
|
10611
|
+
align-items: start;
|
|
10612
|
+
|
|
10613
|
+
${(props) => {
|
|
10614
|
+
const spaces = getSpaces(props);
|
|
10615
|
+
const semanticColors = getSemanticColors(props);
|
|
10616
|
+
const intentColors = semanticColors?.[props.intent];
|
|
10617
|
+
return `
|
|
10618
|
+
gap: ${spaces?.xs}px;
|
|
10619
|
+
color: ${intentColors?.text};
|
|
10620
|
+
|
|
10621
|
+
svg {
|
|
10622
|
+
margin-top: ${spaces?.xxxs}px;
|
|
10623
|
+
fill: ${intentColors?.ornament};
|
|
10624
|
+
path {
|
|
10625
|
+
fill: ${intentColors?.ornament};
|
|
10626
|
+
}
|
|
10627
|
+
}
|
|
10628
|
+
`;
|
|
10629
|
+
}}
|
|
10630
|
+
`;
|
|
10631
|
+
|
|
10520
10632
|
const LegendContainer = styled$2__default.default("div") `
|
|
10521
10633
|
display: flex;
|
|
10522
10634
|
flex-wrap: wrap;
|
|
@@ -10939,7 +11051,7 @@ const StyledMenu = styled$2__default.default(material.Menu) `
|
|
|
10939
11051
|
const corners = getCorners(props);
|
|
10940
11052
|
const semanticColors = getSemanticColors(props);
|
|
10941
11053
|
return `
|
|
10942
|
-
background-color: ${semanticColors?.base?.
|
|
11054
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
10943
11055
|
background-image: none;
|
|
10944
11056
|
padding: ${spaces?.xs}px;
|
|
10945
11057
|
border-radius: ${corners?.l}px;
|
|
@@ -17220,7 +17332,7 @@ const NarrowNavItemLinkStyles = (props) => {
|
|
|
17220
17332
|
? semanticColors?.base.textPrimaryOnDark
|
|
17221
17333
|
: semanticColors?.base.textPrimary};
|
|
17222
17334
|
background: ${props.hasInvertedStyle
|
|
17223
|
-
? semanticColors?.base.
|
|
17335
|
+
? semanticColors?.base.backgroundSecondaryDark
|
|
17224
17336
|
: semanticColors?.base.backgroundSecondary};
|
|
17225
17337
|
}
|
|
17226
17338
|
`;
|
|
@@ -17246,11 +17358,11 @@ const StyledNavItemLink = styled$2__default.default(Link, {
|
|
|
17246
17358
|
|
|
17247
17359
|
&:hover {
|
|
17248
17360
|
color: ${props.hasInvertedStyle
|
|
17249
|
-
? semanticColors?.base
|
|
17250
|
-
: semanticColors?.base
|
|
17361
|
+
? semanticColors?.base?.textPrimaryOnDark
|
|
17362
|
+
: semanticColors?.base?.textPrimary};
|
|
17251
17363
|
background-color: ${props.hasInvertedStyle
|
|
17252
|
-
? semanticColors?.base
|
|
17253
|
-
: semanticColors?.base
|
|
17364
|
+
? semanticColors?.base?.fillInteractionOnDark
|
|
17365
|
+
: semanticColors?.base?.fillInteraction};
|
|
17254
17366
|
text-decoration: none;
|
|
17255
17367
|
}
|
|
17256
17368
|
|
|
@@ -17717,7 +17829,7 @@ const StyledSearch = styled$2__default.default(InputSearch, {
|
|
|
17717
17829
|
&:hover {
|
|
17718
17830
|
fieldset {
|
|
17719
17831
|
border-color: ${hasInvertedStyle
|
|
17720
|
-
? semanticColors?.base?.
|
|
17832
|
+
? semanticColors?.base?.borderPrimaryInteractionOnDark
|
|
17721
17833
|
: ""} !important;
|
|
17722
17834
|
}
|
|
17723
17835
|
|
|
@@ -17735,7 +17847,7 @@ const StyledSearch = styled$2__default.default(InputSearch, {
|
|
|
17735
17847
|
&.Mui-focused {
|
|
17736
17848
|
fieldset {
|
|
17737
17849
|
border-color: ${hasInvertedStyle
|
|
17738
|
-
? semanticColors?.base?.
|
|
17850
|
+
? semanticColors?.base?.borderPrimaryInteractionOnDark
|
|
17739
17851
|
: ""} !important;
|
|
17740
17852
|
}
|
|
17741
17853
|
|
|
@@ -17930,8 +18042,8 @@ const StyledAccordion = styled$2__default.default(Accordion, {
|
|
|
17930
18042
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
17931
18043
|
: semanticColors?.base.ornamentSecondary;
|
|
17932
18044
|
const ChevronOpenColor = hasInvertedStyle
|
|
17933
|
-
? semanticColors?.base?.
|
|
17934
|
-
: semanticColors?.base.
|
|
18045
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
18046
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
17935
18047
|
return material.css `
|
|
17936
18048
|
& > .MuiButtonBase-root {
|
|
17937
18049
|
padding: ${spaces?.s}px ${spaces?.l}px !important;
|
|
@@ -17996,16 +18108,16 @@ const StyledAccordion = styled$2__default.default(Accordion, {
|
|
|
17996
18108
|
width: 100%;
|
|
17997
18109
|
box-shadow: none;
|
|
17998
18110
|
background: ${hasInvertedStyle
|
|
17999
|
-
? semanticColors?.base.
|
|
18000
|
-
: semanticColors?.base.
|
|
18111
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
18112
|
+
: semanticColors?.base.fillInteraction};
|
|
18001
18113
|
color: ${hasInvertedStyle
|
|
18002
18114
|
? semanticColors?.base.textPrimaryOnDark
|
|
18003
18115
|
: semanticColors?.base.textPrimary};
|
|
18004
18116
|
|
|
18005
18117
|
svg {
|
|
18006
18118
|
color: ${hasInvertedStyle
|
|
18007
|
-
? semanticColors?.base?.
|
|
18008
|
-
: semanticColors?.base.
|
|
18119
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
18120
|
+
: semanticColors?.base.ornamentSecondaryInteraction} !important;
|
|
18009
18121
|
}
|
|
18010
18122
|
}
|
|
18011
18123
|
|
|
@@ -18208,8 +18320,8 @@ const StyledHoverDrawerItem = styled$2__default.default(Button, {
|
|
|
18208
18320
|
box-shadow: none;
|
|
18209
18321
|
cursor: pointer;
|
|
18210
18322
|
background: ${hasInvertedStyle
|
|
18211
|
-
? semanticColors?.base.
|
|
18212
|
-
: semanticColors?.base.
|
|
18323
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
18324
|
+
: semanticColors?.base.fillInteraction};
|
|
18213
18325
|
svg {
|
|
18214
18326
|
color: ${semanticColors?.accent?.ornament};
|
|
18215
18327
|
}
|
|
@@ -18383,8 +18495,8 @@ const NarrowPrimaryNavItem = (props) => {
|
|
|
18383
18495
|
const semanticColors = getSemanticColors(props);
|
|
18384
18496
|
const corners = getCorners(props);
|
|
18385
18497
|
const ChevronHoverColor = hasInvertedStyle
|
|
18386
|
-
? semanticColors?.base?.
|
|
18387
|
-
: semanticColors?.base.
|
|
18498
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
18499
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
18388
18500
|
return react.css `
|
|
18389
18501
|
border-radius: ${corners?.l}px;
|
|
18390
18502
|
justify-content: start;
|
|
@@ -18409,8 +18521,8 @@ const NarrowPrimaryNavItem = (props) => {
|
|
|
18409
18521
|
`
|
|
18410
18522
|
: react.css `
|
|
18411
18523
|
background: ${hasInvertedStyle
|
|
18412
|
-
? semanticColors?.base.
|
|
18413
|
-
: semanticColors?.base.
|
|
18524
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
18525
|
+
: semanticColors?.base.fillInteraction};
|
|
18414
18526
|
`}
|
|
18415
18527
|
box-shadow: none;
|
|
18416
18528
|
|
|
@@ -18442,11 +18554,11 @@ styled$2__default.default(Button, {
|
|
|
18442
18554
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
18443
18555
|
: semanticColors?.base.ornamentSecondary;
|
|
18444
18556
|
const ChevronHoverColor = hasInvertedStyle
|
|
18445
|
-
? semanticColors?.base?.
|
|
18446
|
-
: semanticColors?.base.
|
|
18557
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
18558
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
18447
18559
|
const ChevronOpenColor = hasInvertedStyle
|
|
18448
|
-
? semanticColors?.base.
|
|
18449
|
-
: semanticColors?.base.
|
|
18560
|
+
? semanticColors?.base.ornamentSecondaryInteractionOnDark
|
|
18561
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
18450
18562
|
return react.css `
|
|
18451
18563
|
border: none;
|
|
18452
18564
|
padding: ${spaces?.xxxs}px ${spaces?.m}px;
|
|
@@ -18463,8 +18575,8 @@ styled$2__default.default(Button, {
|
|
|
18463
18575
|
|
|
18464
18576
|
&:hover {
|
|
18465
18577
|
background: ${hasInvertedStyle
|
|
18466
|
-
? semanticColors?.base.
|
|
18467
|
-
: semanticColors?.base.
|
|
18578
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
18579
|
+
: semanticColors?.base.fillInteraction} !important;
|
|
18468
18580
|
box-shadow: none;
|
|
18469
18581
|
|
|
18470
18582
|
${StyledLabel$1} {
|
|
@@ -18544,8 +18656,8 @@ const NarrowNavItemStyles = (props) => {
|
|
|
18544
18656
|
const semanticColors = getSemanticColors(props);
|
|
18545
18657
|
const corners = getCorners(props);
|
|
18546
18658
|
const ChevronHoverColor = hasInvertedStyle
|
|
18547
|
-
? semanticColors?.base?.
|
|
18548
|
-
: semanticColors?.base
|
|
18659
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
18660
|
+
: semanticColors?.base?.ornamentSecondaryInteraction;
|
|
18549
18661
|
return react.css `
|
|
18550
18662
|
${active ? fontBodySemiboldL(props) : fontBodyMediumL(props)}
|
|
18551
18663
|
border-radius: ${corners?.l}px;
|
|
@@ -18572,8 +18684,8 @@ const NarrowNavItemStyles = (props) => {
|
|
|
18572
18684
|
`
|
|
18573
18685
|
: react.css `
|
|
18574
18686
|
background: ${hasInvertedStyle
|
|
18575
|
-
? semanticColors?.base.
|
|
18576
|
-
: semanticColors?.base.
|
|
18687
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
18688
|
+
: semanticColors?.base.fillInteraction};
|
|
18577
18689
|
`}
|
|
18578
18690
|
box-shadow: none;
|
|
18579
18691
|
|
|
@@ -18613,11 +18725,11 @@ const UnifiedNavItem = styled$2__default.default(Button, {
|
|
|
18613
18725
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
18614
18726
|
: semanticColors?.base.ornamentSecondary;
|
|
18615
18727
|
const ChevronHoverColor = hasInvertedStyle
|
|
18616
|
-
? semanticColors?.base?.
|
|
18617
|
-
: semanticColors?.base.
|
|
18728
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
18729
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
18618
18730
|
const ChevronOpenColor = hasInvertedStyle
|
|
18619
|
-
? semanticColors?.base.
|
|
18620
|
-
: semanticColors?.base.
|
|
18731
|
+
? semanticColors?.base.ornamentSecondaryInteractionOnDark
|
|
18732
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
18621
18733
|
return [
|
|
18622
18734
|
navVariant === "secondary" &&
|
|
18623
18735
|
(active ? fontBodySemiboldS(props) : fontBodyMediumS(props)),
|
|
@@ -18645,8 +18757,8 @@ const UnifiedNavItem = styled$2__default.default(Button, {
|
|
|
18645
18757
|
|
|
18646
18758
|
&:hover {
|
|
18647
18759
|
background: ${hasInvertedStyle
|
|
18648
|
-
? semanticColors?.base.
|
|
18649
|
-
: semanticColors?.base.
|
|
18760
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
18761
|
+
: semanticColors?.base.fillInteraction} !important;
|
|
18650
18762
|
box-shadow: none;
|
|
18651
18763
|
|
|
18652
18764
|
${navVariant === "primary" && StyledLabel} {
|
|
@@ -18741,7 +18853,7 @@ const StyledSectionHeader = styled$2__default.default(ListSubheader, {
|
|
|
18741
18853
|
? semanticColors?.base.backgroundPrimaryDark
|
|
18742
18854
|
: semanticColors?.base.backgroundPrimary;
|
|
18743
18855
|
}
|
|
18744
|
-
return semanticColors?.base?.
|
|
18856
|
+
return semanticColors?.base?.surfacePrimary;
|
|
18745
18857
|
}
|
|
18746
18858
|
function getTextColor() {
|
|
18747
18859
|
if (isNarrow) {
|
|
@@ -18802,7 +18914,7 @@ const StyledAccordionSection = styled$2__default.default("div", {
|
|
|
18802
18914
|
border-radius: ${corners?.xl}px;
|
|
18803
18915
|
padding: ${spaces?.l}px;
|
|
18804
18916
|
background-color: ${hasInvertedStyle
|
|
18805
|
-
? semanticColors?.base?.
|
|
18917
|
+
? semanticColors?.base?.backgroundSecondaryDark
|
|
18806
18918
|
: semanticColors?.base?.backgroundSecondary};
|
|
18807
18919
|
`;
|
|
18808
18920
|
}
|
|
@@ -19438,8 +19550,8 @@ const NarrowStyledTextItem = (props) => {
|
|
|
19438
19550
|
&:hover {
|
|
19439
19551
|
box-shadow: none;
|
|
19440
19552
|
background: ${hasInvertedStyle
|
|
19441
|
-
? semanticColors?.base.
|
|
19442
|
-
: semanticColors?.base.
|
|
19553
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
19554
|
+
: semanticColors?.base.fillInteraction};
|
|
19443
19555
|
}
|
|
19444
19556
|
`;
|
|
19445
19557
|
};
|
|
@@ -19471,11 +19583,11 @@ styled$2__default.default(Button, {
|
|
|
19471
19583
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
19472
19584
|
: semanticColors?.base.ornamentSecondary;
|
|
19473
19585
|
const ChevronHoverColor = hasInvertedStyle
|
|
19474
|
-
? semanticColors?.base?.
|
|
19475
|
-
: semanticColors?.base.
|
|
19586
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
19587
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
19476
19588
|
const ChevronOpenColor = hasInvertedStyle
|
|
19477
|
-
? semanticColors?.base?.
|
|
19478
|
-
: semanticColors?.base.
|
|
19589
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
19590
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
19479
19591
|
return [
|
|
19480
19592
|
open ? fontBodySemiboldS(props) : fontBodyMediumS(props),
|
|
19481
19593
|
react.css `
|
|
@@ -19496,8 +19608,8 @@ styled$2__default.default(Button, {
|
|
|
19496
19608
|
|
|
19497
19609
|
&:hover {
|
|
19498
19610
|
background: ${hasInvertedStyle
|
|
19499
|
-
? semanticColors?.base.
|
|
19500
|
-
: semanticColors?.base.
|
|
19611
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
19612
|
+
: semanticColors?.base.fillInteraction};
|
|
19501
19613
|
box-shadow: none;
|
|
19502
19614
|
|
|
19503
19615
|
color: ${hasInvertedStyle
|
|
@@ -20049,7 +20161,7 @@ const StyledTabs$1 = styled$2__default.default(material.Tabs, {
|
|
|
20049
20161
|
const StyledTab$1 = styled$2__default.default(material.Tab, {
|
|
20050
20162
|
shouldForwardProp: (prop) => !doNotForwardProps$5.includes(prop)
|
|
20051
20163
|
}) `
|
|
20052
|
-
${
|
|
20164
|
+
${fontBodyMediumXs}
|
|
20053
20165
|
|
|
20054
20166
|
${(props) => {
|
|
20055
20167
|
const spaces = getSpaces(props);
|
|
@@ -20076,20 +20188,20 @@ const StyledTab$1 = styled$2__default.default(material.Tab, {
|
|
|
20076
20188
|
left: 0;
|
|
20077
20189
|
width: ${spaces?.xxxs}px;
|
|
20078
20190
|
height: 100%;
|
|
20079
|
-
background-color: ${semanticColors?.base?.
|
|
20191
|
+
background-color: ${semanticColors?.base?.borderPrimaryInteraction};
|
|
20080
20192
|
display: none;
|
|
20081
20193
|
border-radius: ${spaces?.xxxs}px;
|
|
20082
20194
|
}
|
|
20083
20195
|
&:hover {
|
|
20084
20196
|
color: ${semanticColors?.base?.textPrimary};
|
|
20085
|
-
background-color: ${semanticColors?.base?.
|
|
20197
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20086
20198
|
&:before {
|
|
20087
20199
|
display: block;
|
|
20088
20200
|
}
|
|
20089
20201
|
}
|
|
20090
20202
|
&.Mui-selected {
|
|
20091
20203
|
color: ${semanticColors?.base?.textPrimary};
|
|
20092
|
-
font-weight:
|
|
20204
|
+
font-weight: 600;
|
|
20093
20205
|
}
|
|
20094
20206
|
&.MuiButtonBase-root {
|
|
20095
20207
|
text-align: left;
|
|
@@ -20401,7 +20513,7 @@ const StyledPaginationButton = styled$2__default.default(Button) `
|
|
|
20401
20513
|
|
|
20402
20514
|
&:hover {
|
|
20403
20515
|
& .MuiSvgIcon-root {
|
|
20404
|
-
color: ${semanticColors?.base?.
|
|
20516
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction}
|
|
20405
20517
|
}
|
|
20406
20518
|
}
|
|
20407
20519
|
`;
|
|
@@ -20437,10 +20549,10 @@ const StyledPaginationChevronList = styled$2__default.default("li", {
|
|
|
20437
20549
|
}
|
|
20438
20550
|
|
|
20439
20551
|
&:hover {
|
|
20440
|
-
background-color: ${disabled ? "transparent" : semanticColors?.base?.
|
|
20552
|
+
background-color: ${disabled ? "transparent" : semanticColors?.base?.fillInteraction};
|
|
20441
20553
|
|
|
20442
20554
|
& .MuiSvgIcon-root {
|
|
20443
|
-
color: ${disabled ? semanticColors?.base?.ornamentDisabled : semanticColors?.base?.
|
|
20555
|
+
color: ${disabled ? semanticColors?.base?.ornamentDisabled : semanticColors?.base?.ornamentSecondaryInteraction}
|
|
20444
20556
|
}
|
|
20445
20557
|
}
|
|
20446
20558
|
|
|
@@ -20462,28 +20574,29 @@ const StyledPagination = styled$2__default.default("ul", {
|
|
|
20462
20574
|
`;
|
|
20463
20575
|
const selectedPageStyle = (props) => {
|
|
20464
20576
|
const semanticColors = getSemanticColors(props);
|
|
20465
|
-
return `
|
|
20466
|
-
background-color: ${semanticColors?.base?.
|
|
20577
|
+
return react.css `
|
|
20578
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20467
20579
|
color: ${semanticColors?.base?.textPrimary};
|
|
20468
|
-
font-weight: 500;
|
|
20469
20580
|
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderSecondary};
|
|
20470
20581
|
|
|
20471
20582
|
&:hover {
|
|
20472
20583
|
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderSecondary};
|
|
20473
20584
|
}
|
|
20585
|
+
|
|
20586
|
+
${fontTabularSemiboldS(props)}
|
|
20474
20587
|
`;
|
|
20475
20588
|
};
|
|
20476
20589
|
const Page = styled$2__default.default("li", {
|
|
20477
20590
|
shouldForwardProp: (prop) => !doNotForwardProps$3.includes(prop)
|
|
20478
20591
|
}) `
|
|
20479
|
-
${
|
|
20592
|
+
${fontTabularMediumS}
|
|
20480
20593
|
|
|
20481
20594
|
${(props) => {
|
|
20482
20595
|
const { selected, sdsStyle } = props;
|
|
20483
20596
|
const spaces = getSpaces(props);
|
|
20484
20597
|
const corners = getCorners(props);
|
|
20485
20598
|
const semanticColors = getSemanticColors(props);
|
|
20486
|
-
return `
|
|
20599
|
+
return react.css `
|
|
20487
20600
|
color: ${semanticColors?.base?.textSecondary};
|
|
20488
20601
|
cursor: pointer;
|
|
20489
20602
|
list-style: none;
|
|
@@ -20497,15 +20610,15 @@ const Page = styled$2__default.default("li", {
|
|
|
20497
20610
|
border-radius: ${sdsStyle === "round" ? corners?.rounded : corners?.l}px;
|
|
20498
20611
|
user-select: none;
|
|
20499
20612
|
&:hover {
|
|
20500
|
-
background-color: ${semanticColors?.base?.
|
|
20613
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20501
20614
|
color: ${semanticColors?.base?.textPrimary};
|
|
20502
20615
|
}
|
|
20503
20616
|
|
|
20504
|
-
&:nth-last-of-type(-n+2) {
|
|
20617
|
+
&:nth-last-of-type(-n + 2) {
|
|
20505
20618
|
margin-right: 0;
|
|
20506
20619
|
}
|
|
20507
20620
|
|
|
20508
|
-
${selected && selectedPageStyle(props)}
|
|
20621
|
+
${selected && selectedPageStyle(props)}
|
|
20509
20622
|
${focusVisibleA11yStyle(props)}
|
|
20510
20623
|
`;
|
|
20511
20624
|
}}
|
|
@@ -20828,7 +20941,7 @@ styled$2__default.default(material.ToggleButtonGroup, {
|
|
|
20828
20941
|
padding: ${spaces?.xxxs}px;
|
|
20829
20942
|
|
|
20830
20943
|
&:hover {
|
|
20831
|
-
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.
|
|
20944
|
+
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderPrimaryInteraction};
|
|
20832
20945
|
}
|
|
20833
20946
|
|
|
20834
20947
|
.${material.toggleButtonClasses.root}.${material.toggleButtonClasses.disabled} {
|
|
@@ -20836,13 +20949,13 @@ styled$2__default.default(material.ToggleButtonGroup, {
|
|
|
20836
20949
|
}
|
|
20837
20950
|
|
|
20838
20951
|
.${material.toggleButtonClasses.root}.${material.toggleButtonClasses.selected} {
|
|
20839
|
-
background-color: ${semanticColors?.base?.
|
|
20952
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20840
20953
|
color: ${semanticColors?.accent?.ornamentSelected};
|
|
20841
20954
|
border-color: ${semanticColors?.base?.borderPrimary};
|
|
20842
20955
|
|
|
20843
20956
|
&:hover {
|
|
20844
|
-
background-color: ${semanticColors?.base?.
|
|
20845
|
-
color: ${semanticColors?.base?.
|
|
20957
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20958
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
20846
20959
|
}
|
|
20847
20960
|
}
|
|
20848
20961
|
|
|
@@ -20858,8 +20971,8 @@ styled$2__default.default(material.ToggleButtonGroup, {
|
|
|
20858
20971
|
|
|
20859
20972
|
&:hover {
|
|
20860
20973
|
border-color: ${semanticColors?.base?.borderPrimary};
|
|
20861
|
-
background-color: ${semanticColors?.base?.
|
|
20862
|
-
color: ${semanticColors?.base?.
|
|
20974
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20975
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
20863
20976
|
}
|
|
20864
20977
|
}
|
|
20865
20978
|
`;
|
|
@@ -20915,6 +21028,7 @@ const disabledStyled = (props) => {
|
|
|
20915
21028
|
|
|
20916
21029
|
& span, & div {
|
|
20917
21030
|
color: ${semanticColors?.base?.textDisabled};
|
|
21031
|
+
background-color: transparent !important;
|
|
20918
21032
|
}
|
|
20919
21033
|
|
|
20920
21034
|
.cell-component {
|
|
@@ -20923,11 +21037,12 @@ const disabledStyled = (props) => {
|
|
|
20923
21037
|
user-select: none;
|
|
20924
21038
|
& div {
|
|
20925
21039
|
color: ${semanticColors?.base?.textDisabled};
|
|
20926
|
-
background-color:
|
|
21040
|
+
background-color: transparent;
|
|
20927
21041
|
}
|
|
20928
21042
|
|
|
20929
21043
|
& .MuiChip-root {
|
|
20930
21044
|
background-color: ${semanticColors?.base?.fillDisabled};
|
|
21045
|
+
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderPrimaryDisabled} !important;
|
|
20931
21046
|
|
|
20932
21047
|
& span {
|
|
20933
21048
|
color: ${semanticColors?.base?.textDisabled} !important;
|
|
@@ -20946,7 +21061,7 @@ const hoverStyled = (props) => {
|
|
|
20946
21061
|
const semanticColors = getSemanticColors(props);
|
|
20947
21062
|
return `
|
|
20948
21063
|
&:hover {
|
|
20949
|
-
background-color: ${semanticColors?.base?.
|
|
21064
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20950
21065
|
}
|
|
20951
21066
|
`;
|
|
20952
21067
|
};
|
|
@@ -21047,8 +21162,8 @@ const StyledTab = styled$2__default.default(material.Tab, {
|
|
|
21047
21162
|
color: ${semanticColors?.base?.textSecondary};
|
|
21048
21163
|
|
|
21049
21164
|
&:hover {
|
|
21050
|
-
box-shadow: inset 0 -2px 0 0 ${semanticColors?.base?.
|
|
21051
|
-
background-color: ${semanticColors?.base?.
|
|
21165
|
+
box-shadow: inset 0 -2px 0 0 ${semanticColors?.base?.borderPrimaryInteraction};
|
|
21166
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
21052
21167
|
border-top-right-radius: ${corners?.l}px;
|
|
21053
21168
|
border-top-left-radius: ${corners?.l}px;
|
|
21054
21169
|
|
|
@@ -21078,7 +21193,7 @@ const StyledTab = styled$2__default.default(material.Tab, {
|
|
|
21078
21193
|
function tabFontMixin(props) {
|
|
21079
21194
|
const { sdsSize } = props;
|
|
21080
21195
|
const isLarge = sdsSize === "large";
|
|
21081
|
-
return isLarge ?
|
|
21196
|
+
return isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props);
|
|
21082
21197
|
}
|
|
21083
21198
|
const StyledWrapper = styled$2__default.default("div") `
|
|
21084
21199
|
${(props) => {
|
|
@@ -21097,7 +21212,7 @@ const StyledCount = styled$2__default.default("span") `
|
|
|
21097
21212
|
const { sdsSize } = props;
|
|
21098
21213
|
const isLarge = sdsSize === "large";
|
|
21099
21214
|
return react.css `
|
|
21100
|
-
${isLarge ?
|
|
21215
|
+
${isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props)}
|
|
21101
21216
|
`;
|
|
21102
21217
|
}}
|
|
21103
21218
|
`;
|
|
@@ -21106,9 +21221,9 @@ const StyledLabelTextWrapper = styled$2__default.default("span") `
|
|
|
21106
21221
|
const { sdsSize, selected } = props;
|
|
21107
21222
|
const isLarge = sdsSize === "large";
|
|
21108
21223
|
return react.css `
|
|
21109
|
-
${isLarge ?
|
|
21224
|
+
${isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props)}
|
|
21110
21225
|
${selected &&
|
|
21111
|
-
(isLarge ?
|
|
21226
|
+
(isLarge ? fontBodySemiboldS(props) : fontBodySemiboldXs(props))}
|
|
21112
21227
|
position: absolute;
|
|
21113
21228
|
`;
|
|
21114
21229
|
}}
|
|
@@ -21118,7 +21233,7 @@ const StyledLabelTextWrapperShadow = styled$2__default.default("span") `
|
|
|
21118
21233
|
const { sdsSize } = props;
|
|
21119
21234
|
const isLarge = sdsSize === "large";
|
|
21120
21235
|
return react.css `
|
|
21121
|
-
${isLarge ?
|
|
21236
|
+
${isLarge ? fontBodySemiboldS(props) : fontBodySemiboldXs(props)}
|
|
21122
21237
|
visibility: hidden;
|
|
21123
21238
|
opacity: 0;
|
|
21124
21239
|
`;
|
|
@@ -24798,7 +24913,7 @@ Object.assign(chroma, {
|
|
|
24798
24913
|
const generateDiscreteColors = (count, options = {}) => {
|
|
24799
24914
|
if (count === 0)
|
|
24800
24915
|
return [];
|
|
24801
|
-
const { isDarkMode = false, start =
|
|
24916
|
+
const { isDarkMode = false, start = 240, rotations = 0.85, gamma = 1, lightness = [0.4, 0.7], correctLightness = true, } = options;
|
|
24802
24917
|
let scale = chroma
|
|
24803
24918
|
.cubehelix()
|
|
24804
24919
|
.start(start)
|