@czi-sds/data-viz 0.16.0 → 0.16.1
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 +371 -259
- package/dist/index.esm.js +372 -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
|
}
|
|
@@ -8668,30 +8685,38 @@ const doNotForwardProps$r = [
|
|
|
8668
8685
|
"cardSdsType",
|
|
8669
8686
|
"classes",
|
|
8670
8687
|
];
|
|
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"
|
|
8688
|
+
const getFlexDirection = (sdsType, visualElementType, imagePosition) => {
|
|
8689
|
+
return sdsType === "wide" && visualElementType === "image"
|
|
8680
8690
|
? imagePosition === "left"
|
|
8681
8691
|
? "row"
|
|
8682
8692
|
: "row-reverse"
|
|
8683
8693
|
: visualElementType === "icon"
|
|
8684
8694
|
? "row"
|
|
8685
8695
|
: "column";
|
|
8686
|
-
|
|
8696
|
+
};
|
|
8697
|
+
const getShowDecorativeBorder = (visualElementType, boundingBox, decorativeBorder, imagePadding) => {
|
|
8698
|
+
return visualElementType === "image"
|
|
8687
8699
|
? boundingBox && decorativeBorder && imagePadding
|
|
8688
8700
|
: boundingBox && decorativeBorder;
|
|
8701
|
+
};
|
|
8702
|
+
const StyledCard = styled$2__default.default(material.Card, {
|
|
8703
|
+
shouldForwardProp: (prop) => !doNotForwardProps$r.includes(prop)
|
|
8704
|
+
}) `
|
|
8705
|
+
${(props) => {
|
|
8706
|
+
const { imagePosition = "left", sdsType = "wide", boundingBox = true, decorativeBorder = false, imagePadding = false, visualElementType, clickableCard = false, } = props;
|
|
8707
|
+
const semanticColors = getSemanticColors(props);
|
|
8708
|
+
const corners = getCorners(props);
|
|
8709
|
+
const shadows = getShadows(props);
|
|
8710
|
+
const spaces = getSpaces(props);
|
|
8711
|
+
const flexDirection = getFlexDirection(sdsType, visualElementType, imagePosition);
|
|
8712
|
+
const showDecorativeBorder = getShowDecorativeBorder(visualElementType, boundingBox, decorativeBorder, imagePadding);
|
|
8689
8713
|
return react.css `
|
|
8714
|
+
position: relative;
|
|
8690
8715
|
display: flex;
|
|
8691
8716
|
background-color: transparent;
|
|
8692
8717
|
background-image: none;
|
|
8693
8718
|
flex-direction: ${flexDirection};
|
|
8694
|
-
overflow:
|
|
8719
|
+
overflow: visible;
|
|
8695
8720
|
box-shadow: none;
|
|
8696
8721
|
border-radius: ${corners?.xl}px;
|
|
8697
8722
|
|
|
@@ -8710,16 +8735,47 @@ const StyledCard = styled$2__default.default(material.Card, {
|
|
|
8710
8735
|
background-color: ${semanticColors?.base?.backgroundPrimary};
|
|
8711
8736
|
`}
|
|
8712
8737
|
|
|
8738
|
+
${showDecorativeBorder &&
|
|
8739
|
+
react.css `
|
|
8740
|
+
&:before {
|
|
8741
|
+
content: "";
|
|
8742
|
+
position: absolute;
|
|
8743
|
+
background-color: ${semanticColors?.accent?.border};
|
|
8744
|
+
|
|
8745
|
+
${sdsType === "wide" &&
|
|
8746
|
+
react.css `
|
|
8747
|
+
top: -1px;
|
|
8748
|
+
bottom: -1px;
|
|
8749
|
+
left: -1px;
|
|
8750
|
+
width: ${spaces?.xs}px;
|
|
8751
|
+
border-top-left-radius: ${corners?.xl}px;
|
|
8752
|
+
border-bottom-left-radius: ${corners?.xl}px;
|
|
8753
|
+
`}
|
|
8754
|
+
|
|
8755
|
+
${sdsType === "narrow" &&
|
|
8756
|
+
react.css `
|
|
8757
|
+
height: ${spaces?.xs}px;
|
|
8758
|
+
top: -1px;
|
|
8759
|
+
left: -1px;
|
|
8760
|
+
right: -1px;
|
|
8761
|
+
border-top-left-radius: ${corners?.xl}px;
|
|
8762
|
+
border-top-right-radius: ${corners?.xl}px;
|
|
8763
|
+
`}
|
|
8764
|
+
}
|
|
8765
|
+
`}
|
|
8766
|
+
|
|
8713
8767
|
${sdsType === "wide" &&
|
|
8714
8768
|
showDecorativeBorder &&
|
|
8715
8769
|
react.css `
|
|
8716
|
-
border-left:
|
|
8770
|
+
border-top-left-radius: ${corners?.l}px;
|
|
8771
|
+
border-bottom-left-radius: ${corners?.l}px;
|
|
8717
8772
|
`}
|
|
8718
8773
|
|
|
8719
8774
|
${sdsType === "narrow" &&
|
|
8720
8775
|
showDecorativeBorder &&
|
|
8721
8776
|
react.css `
|
|
8722
|
-
border-top:
|
|
8777
|
+
border-top-left-radius: ${corners?.l}px;
|
|
8778
|
+
border-top-right-radius: ${corners?.l}px;
|
|
8723
8779
|
`}
|
|
8724
8780
|
`;
|
|
8725
8781
|
}}
|
|
@@ -8752,7 +8808,7 @@ const StyledCardActionArea = styled$2__default.default(Button, {
|
|
|
8752
8808
|
|
|
8753
8809
|
&:hover,
|
|
8754
8810
|
&:active {
|
|
8755
|
-
background-color: ${semanticColors?.base?.
|
|
8811
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
8756
8812
|
}
|
|
8757
8813
|
`;
|
|
8758
8814
|
}}
|
|
@@ -8992,9 +9048,13 @@ const StyledImageMediaWrapper = material.styled("div", {
|
|
|
8992
9048
|
${(props) => {
|
|
8993
9049
|
const { imagePadding = false, boundingBox = true, sdsType = "wide", imagePosition = "left", } = props;
|
|
8994
9050
|
const spaces = getSpaces(props);
|
|
9051
|
+
const corners = getCorners(props);
|
|
8995
9052
|
return material.css `
|
|
8996
9053
|
display: flex;
|
|
8997
9054
|
align-items: start;
|
|
9055
|
+
border-top-left-radius: calc(${corners?.xl}px - 1px);
|
|
9056
|
+
border-bottom-left-radius: calc(${corners?.xl}px - 1px);
|
|
9057
|
+
overflow: hidden;
|
|
8998
9058
|
|
|
8999
9059
|
${boundingBox
|
|
9000
9060
|
? imagePadding
|
|
@@ -9029,6 +9089,8 @@ const StyledImageMediaWrapper = material.styled("div", {
|
|
|
9029
9089
|
`}
|
|
9030
9090
|
|
|
9031
9091
|
justify-content: center;
|
|
9092
|
+
border-top-left-radius: calc(${corners?.xl}px - 1px);
|
|
9093
|
+
border-top-right-radius: calc(${corners?.xl}px - 1px);
|
|
9032
9094
|
`}
|
|
9033
9095
|
`;
|
|
9034
9096
|
}}
|
|
@@ -9169,7 +9231,7 @@ const StyledPaper = styled$2__default.default(material.Paper, {
|
|
|
9169
9231
|
const semanticColors = getSemanticColors(props);
|
|
9170
9232
|
const isSmall = sdsSize === "xs" || sdsSize === "s";
|
|
9171
9233
|
return `
|
|
9172
|
-
background-color: ${semanticColors?.base?.
|
|
9234
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
9173
9235
|
background-image: none;
|
|
9174
9236
|
box-shadow: ${shadows?.l};
|
|
9175
9237
|
max-height: calc(100vh - ${2 * (spaces?.xxxl || 40)}px);
|
|
@@ -9811,12 +9873,11 @@ const disabledStyles$1 = (props) => {
|
|
|
9811
9873
|
styled$2__default.default(material.FormControlLabel) `
|
|
9812
9874
|
${(props) => {
|
|
9813
9875
|
const { disabled } = props;
|
|
9814
|
-
const spaces = getSpaces(props);
|
|
9815
9876
|
const semanticColors = getSemanticColors(props);
|
|
9816
9877
|
const borders = getBorders(props);
|
|
9817
9878
|
return `
|
|
9818
9879
|
align-items: start;
|
|
9819
|
-
margin-bottom:
|
|
9880
|
+
margin-bottom: 0;
|
|
9820
9881
|
margin-left: 0;
|
|
9821
9882
|
margin-right: 0;
|
|
9822
9883
|
width: fit-content;
|
|
@@ -9824,7 +9885,7 @@ styled$2__default.default(material.FormControlLabel) `
|
|
|
9824
9885
|
&:hover {
|
|
9825
9886
|
${StyledCheckboxDefaultIcon} {
|
|
9826
9887
|
border: ${borders?.base?.hover};
|
|
9827
|
-
background-color: ${disabled ? "transparent" : semanticColors?.base?.
|
|
9888
|
+
background-color: ${disabled ? "transparent" : semanticColors?.base?.fillInteraction};
|
|
9828
9889
|
}
|
|
9829
9890
|
|
|
9830
9891
|
${StyledCheckboxCheckedIcon} {
|
|
@@ -9961,19 +10022,18 @@ const disabledStyles = (props) => {
|
|
|
9961
10022
|
styled$2__default.default(material.FormControlLabel) `
|
|
9962
10023
|
${(props) => {
|
|
9963
10024
|
const { disabled } = props;
|
|
9964
|
-
const spaces = getSpaces(props);
|
|
9965
10025
|
const semanticColors = getSemanticColors(props);
|
|
9966
10026
|
return `
|
|
9967
10027
|
align-items: start;
|
|
9968
|
-
margin-bottom:
|
|
10028
|
+
margin-bottom: 0;
|
|
9969
10029
|
margin-left: 0;
|
|
9970
10030
|
margin-right: 0;
|
|
9971
10031
|
width: fit-content;
|
|
9972
10032
|
|
|
9973
10033
|
&:hover {
|
|
9974
10034
|
${StyledRadioDefaultIcon} {
|
|
9975
|
-
border: 1px solid ${semanticColors?.base?.
|
|
9976
|
-
background-color: ${disabled ? "transparent" : semanticColors?.base?.
|
|
10035
|
+
border: 1px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
10036
|
+
background-color: ${disabled ? "transparent" : semanticColors?.base?.fillInteraction};
|
|
9977
10037
|
}
|
|
9978
10038
|
|
|
9979
10039
|
${StyledRadioCheckedIcon} {
|
|
@@ -9983,7 +10043,7 @@ styled$2__default.default(material.FormControlLabel) `
|
|
|
9983
10043
|
|
|
9984
10044
|
&:active {
|
|
9985
10045
|
${StyledRadioDefaultIcon} {
|
|
9986
|
-
border: 1px solid ${semanticColors?.base?.
|
|
10046
|
+
border: 1px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
9987
10047
|
}
|
|
9988
10048
|
|
|
9989
10049
|
${StyledRadioCheckedIcon} {
|
|
@@ -10241,12 +10301,12 @@ const textArea = (props) => {
|
|
|
10241
10301
|
};
|
|
10242
10302
|
const StyledLabel$2 = styled$2__default.default("label") `
|
|
10243
10303
|
display: block;
|
|
10244
|
-
${
|
|
10304
|
+
${fontBodySemiboldXxxs}
|
|
10245
10305
|
|
|
10246
10306
|
${(props) => {
|
|
10247
10307
|
const spaces = getSpaces(props);
|
|
10248
10308
|
return `
|
|
10249
|
-
margin-bottom: ${spaces?.
|
|
10309
|
+
margin-bottom: ${spaces?.s}px;
|
|
10250
10310
|
`;
|
|
10251
10311
|
}}
|
|
10252
10312
|
`;
|
|
@@ -10262,8 +10322,6 @@ const StyledInputBase = styled$2__default.default(material.TextField, {
|
|
|
10262
10322
|
const corners = getCorners(props);
|
|
10263
10323
|
const semanticColors = getSemanticColors(props);
|
|
10264
10324
|
return react.css `
|
|
10265
|
-
margin-bottom: ${spaces?.l}px;
|
|
10266
|
-
margin-right: ${spaces?.m}px;
|
|
10267
10325
|
display: block;
|
|
10268
10326
|
|
|
10269
10327
|
.${material.outlinedInputClasses.root} {
|
|
@@ -10300,7 +10358,7 @@ const StyledInputBase = styled$2__default.default(material.TextField, {
|
|
|
10300
10358
|
.${material.outlinedInputClasses.root}:hover
|
|
10301
10359
|
.${material.outlinedInputClasses.notchedOutline} {
|
|
10302
10360
|
border: ${borders?.base?.hover};
|
|
10303
|
-
background-color: ${semanticColors?.base?.
|
|
10361
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
10304
10362
|
}
|
|
10305
10363
|
|
|
10306
10364
|
.${material.outlinedInputClasses.root}.${material.outlinedInputClasses.focused}
|
|
@@ -10479,7 +10537,7 @@ const toggleOff = (props) => {
|
|
|
10479
10537
|
}
|
|
10480
10538
|
|
|
10481
10539
|
&:hover {
|
|
10482
|
-
background-color: ${semanticColors?.base?.
|
|
10540
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
10483
10541
|
}
|
|
10484
10542
|
}
|
|
10485
10543
|
|
|
@@ -10501,7 +10559,7 @@ const toggleOff = (props) => {
|
|
|
10501
10559
|
outline: ${borders?.base?.hover};
|
|
10502
10560
|
|
|
10503
10561
|
.${material.switchClasses.thumb} {
|
|
10504
|
-
color: ${semanticColors?.base?.
|
|
10562
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
10505
10563
|
}
|
|
10506
10564
|
}`}
|
|
10507
10565
|
`;
|
|
@@ -10517,6 +10575,57 @@ styled$2__default.default(material.Switch) `
|
|
|
10517
10575
|
}}
|
|
10518
10576
|
`;
|
|
10519
10577
|
|
|
10578
|
+
styled$2__default.default.div `
|
|
10579
|
+
display: flex;
|
|
10580
|
+
flex-direction: column;
|
|
10581
|
+
${(props) => {
|
|
10582
|
+
const spaces = getSpaces(props);
|
|
10583
|
+
const semanticColors = getSemanticColors(props);
|
|
10584
|
+
const borderThickness = 2;
|
|
10585
|
+
const borderColor = props.borderIntent
|
|
10586
|
+
? semanticColors?.[props.borderIntent]?.border
|
|
10587
|
+
: "transparent";
|
|
10588
|
+
return `
|
|
10589
|
+
gap: ${spaces?.s}px;
|
|
10590
|
+
position: relative;
|
|
10591
|
+
|
|
10592
|
+
&::before {
|
|
10593
|
+
content: "";
|
|
10594
|
+
position: absolute;
|
|
10595
|
+
left: -${(spaces?.xs || 0) + borderThickness}px;
|
|
10596
|
+
top: 0;
|
|
10597
|
+
bottom: 0;
|
|
10598
|
+
width: ${borderThickness}px;
|
|
10599
|
+
background-color: ${borderColor};
|
|
10600
|
+
display: ${props.hasBorder ? "block" : "none"};
|
|
10601
|
+
}
|
|
10602
|
+
`;
|
|
10603
|
+
}}
|
|
10604
|
+
`;
|
|
10605
|
+
styled$2__default.default.div `
|
|
10606
|
+
${fontBodySemiboldXxxs}
|
|
10607
|
+
display: flex;
|
|
10608
|
+
align-items: start;
|
|
10609
|
+
|
|
10610
|
+
${(props) => {
|
|
10611
|
+
const spaces = getSpaces(props);
|
|
10612
|
+
const semanticColors = getSemanticColors(props);
|
|
10613
|
+
const intentColors = semanticColors?.[props.intent];
|
|
10614
|
+
return `
|
|
10615
|
+
gap: ${spaces?.xs}px;
|
|
10616
|
+
color: ${intentColors?.text};
|
|
10617
|
+
|
|
10618
|
+
svg {
|
|
10619
|
+
margin-top: ${spaces?.xxxs}px;
|
|
10620
|
+
fill: ${intentColors?.ornament};
|
|
10621
|
+
path {
|
|
10622
|
+
fill: ${intentColors?.ornament};
|
|
10623
|
+
}
|
|
10624
|
+
}
|
|
10625
|
+
`;
|
|
10626
|
+
}}
|
|
10627
|
+
`;
|
|
10628
|
+
|
|
10520
10629
|
const LegendContainer = styled$2__default.default("div") `
|
|
10521
10630
|
display: flex;
|
|
10522
10631
|
flex-wrap: wrap;
|
|
@@ -10939,7 +11048,7 @@ const StyledMenu = styled$2__default.default(material.Menu) `
|
|
|
10939
11048
|
const corners = getCorners(props);
|
|
10940
11049
|
const semanticColors = getSemanticColors(props);
|
|
10941
11050
|
return `
|
|
10942
|
-
background-color: ${semanticColors?.base?.
|
|
11051
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
10943
11052
|
background-image: none;
|
|
10944
11053
|
padding: ${spaces?.xs}px;
|
|
10945
11054
|
border-radius: ${corners?.l}px;
|
|
@@ -17220,7 +17329,7 @@ const NarrowNavItemLinkStyles = (props) => {
|
|
|
17220
17329
|
? semanticColors?.base.textPrimaryOnDark
|
|
17221
17330
|
: semanticColors?.base.textPrimary};
|
|
17222
17331
|
background: ${props.hasInvertedStyle
|
|
17223
|
-
? semanticColors?.base.
|
|
17332
|
+
? semanticColors?.base.backgroundSecondaryDark
|
|
17224
17333
|
: semanticColors?.base.backgroundSecondary};
|
|
17225
17334
|
}
|
|
17226
17335
|
`;
|
|
@@ -17246,11 +17355,11 @@ const StyledNavItemLink = styled$2__default.default(Link, {
|
|
|
17246
17355
|
|
|
17247
17356
|
&:hover {
|
|
17248
17357
|
color: ${props.hasInvertedStyle
|
|
17249
|
-
? semanticColors?.base
|
|
17250
|
-
: semanticColors?.base
|
|
17358
|
+
? semanticColors?.base?.textPrimaryOnDark
|
|
17359
|
+
: semanticColors?.base?.textPrimary};
|
|
17251
17360
|
background-color: ${props.hasInvertedStyle
|
|
17252
|
-
? semanticColors?.base
|
|
17253
|
-
: semanticColors?.base
|
|
17361
|
+
? semanticColors?.base?.fillInteractionOnDark
|
|
17362
|
+
: semanticColors?.base?.fillInteraction};
|
|
17254
17363
|
text-decoration: none;
|
|
17255
17364
|
}
|
|
17256
17365
|
|
|
@@ -17717,7 +17826,7 @@ const StyledSearch = styled$2__default.default(InputSearch, {
|
|
|
17717
17826
|
&:hover {
|
|
17718
17827
|
fieldset {
|
|
17719
17828
|
border-color: ${hasInvertedStyle
|
|
17720
|
-
? semanticColors?.base?.
|
|
17829
|
+
? semanticColors?.base?.borderPrimaryInteractionOnDark
|
|
17721
17830
|
: ""} !important;
|
|
17722
17831
|
}
|
|
17723
17832
|
|
|
@@ -17735,7 +17844,7 @@ const StyledSearch = styled$2__default.default(InputSearch, {
|
|
|
17735
17844
|
&.Mui-focused {
|
|
17736
17845
|
fieldset {
|
|
17737
17846
|
border-color: ${hasInvertedStyle
|
|
17738
|
-
? semanticColors?.base?.
|
|
17847
|
+
? semanticColors?.base?.borderPrimaryInteractionOnDark
|
|
17739
17848
|
: ""} !important;
|
|
17740
17849
|
}
|
|
17741
17850
|
|
|
@@ -17930,8 +18039,8 @@ const StyledAccordion = styled$2__default.default(Accordion, {
|
|
|
17930
18039
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
17931
18040
|
: semanticColors?.base.ornamentSecondary;
|
|
17932
18041
|
const ChevronOpenColor = hasInvertedStyle
|
|
17933
|
-
? semanticColors?.base?.
|
|
17934
|
-
: semanticColors?.base.
|
|
18042
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
18043
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
17935
18044
|
return material.css `
|
|
17936
18045
|
& > .MuiButtonBase-root {
|
|
17937
18046
|
padding: ${spaces?.s}px ${spaces?.l}px !important;
|
|
@@ -17996,16 +18105,16 @@ const StyledAccordion = styled$2__default.default(Accordion, {
|
|
|
17996
18105
|
width: 100%;
|
|
17997
18106
|
box-shadow: none;
|
|
17998
18107
|
background: ${hasInvertedStyle
|
|
17999
|
-
? semanticColors?.base.
|
|
18000
|
-
: semanticColors?.base.
|
|
18108
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
18109
|
+
: semanticColors?.base.fillInteraction};
|
|
18001
18110
|
color: ${hasInvertedStyle
|
|
18002
18111
|
? semanticColors?.base.textPrimaryOnDark
|
|
18003
18112
|
: semanticColors?.base.textPrimary};
|
|
18004
18113
|
|
|
18005
18114
|
svg {
|
|
18006
18115
|
color: ${hasInvertedStyle
|
|
18007
|
-
? semanticColors?.base?.
|
|
18008
|
-
: semanticColors?.base.
|
|
18116
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
18117
|
+
: semanticColors?.base.ornamentSecondaryInteraction} !important;
|
|
18009
18118
|
}
|
|
18010
18119
|
}
|
|
18011
18120
|
|
|
@@ -18208,8 +18317,8 @@ const StyledHoverDrawerItem = styled$2__default.default(Button, {
|
|
|
18208
18317
|
box-shadow: none;
|
|
18209
18318
|
cursor: pointer;
|
|
18210
18319
|
background: ${hasInvertedStyle
|
|
18211
|
-
? semanticColors?.base.
|
|
18212
|
-
: semanticColors?.base.
|
|
18320
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
18321
|
+
: semanticColors?.base.fillInteraction};
|
|
18213
18322
|
svg {
|
|
18214
18323
|
color: ${semanticColors?.accent?.ornament};
|
|
18215
18324
|
}
|
|
@@ -18383,8 +18492,8 @@ const NarrowPrimaryNavItem = (props) => {
|
|
|
18383
18492
|
const semanticColors = getSemanticColors(props);
|
|
18384
18493
|
const corners = getCorners(props);
|
|
18385
18494
|
const ChevronHoverColor = hasInvertedStyle
|
|
18386
|
-
? semanticColors?.base?.
|
|
18387
|
-
: semanticColors?.base.
|
|
18495
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
18496
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
18388
18497
|
return react.css `
|
|
18389
18498
|
border-radius: ${corners?.l}px;
|
|
18390
18499
|
justify-content: start;
|
|
@@ -18409,8 +18518,8 @@ const NarrowPrimaryNavItem = (props) => {
|
|
|
18409
18518
|
`
|
|
18410
18519
|
: react.css `
|
|
18411
18520
|
background: ${hasInvertedStyle
|
|
18412
|
-
? semanticColors?.base.
|
|
18413
|
-
: semanticColors?.base.
|
|
18521
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
18522
|
+
: semanticColors?.base.fillInteraction};
|
|
18414
18523
|
`}
|
|
18415
18524
|
box-shadow: none;
|
|
18416
18525
|
|
|
@@ -18442,11 +18551,11 @@ styled$2__default.default(Button, {
|
|
|
18442
18551
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
18443
18552
|
: semanticColors?.base.ornamentSecondary;
|
|
18444
18553
|
const ChevronHoverColor = hasInvertedStyle
|
|
18445
|
-
? semanticColors?.base?.
|
|
18446
|
-
: semanticColors?.base.
|
|
18554
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
18555
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
18447
18556
|
const ChevronOpenColor = hasInvertedStyle
|
|
18448
|
-
? semanticColors?.base.
|
|
18449
|
-
: semanticColors?.base.
|
|
18557
|
+
? semanticColors?.base.ornamentSecondaryInteractionOnDark
|
|
18558
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
18450
18559
|
return react.css `
|
|
18451
18560
|
border: none;
|
|
18452
18561
|
padding: ${spaces?.xxxs}px ${spaces?.m}px;
|
|
@@ -18463,8 +18572,8 @@ styled$2__default.default(Button, {
|
|
|
18463
18572
|
|
|
18464
18573
|
&:hover {
|
|
18465
18574
|
background: ${hasInvertedStyle
|
|
18466
|
-
? semanticColors?.base.
|
|
18467
|
-
: semanticColors?.base.
|
|
18575
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
18576
|
+
: semanticColors?.base.fillInteraction} !important;
|
|
18468
18577
|
box-shadow: none;
|
|
18469
18578
|
|
|
18470
18579
|
${StyledLabel$1} {
|
|
@@ -18544,8 +18653,8 @@ const NarrowNavItemStyles = (props) => {
|
|
|
18544
18653
|
const semanticColors = getSemanticColors(props);
|
|
18545
18654
|
const corners = getCorners(props);
|
|
18546
18655
|
const ChevronHoverColor = hasInvertedStyle
|
|
18547
|
-
? semanticColors?.base?.
|
|
18548
|
-
: semanticColors?.base
|
|
18656
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
18657
|
+
: semanticColors?.base?.ornamentSecondaryInteraction;
|
|
18549
18658
|
return react.css `
|
|
18550
18659
|
${active ? fontBodySemiboldL(props) : fontBodyMediumL(props)}
|
|
18551
18660
|
border-radius: ${corners?.l}px;
|
|
@@ -18572,8 +18681,8 @@ const NarrowNavItemStyles = (props) => {
|
|
|
18572
18681
|
`
|
|
18573
18682
|
: react.css `
|
|
18574
18683
|
background: ${hasInvertedStyle
|
|
18575
|
-
? semanticColors?.base.
|
|
18576
|
-
: semanticColors?.base.
|
|
18684
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
18685
|
+
: semanticColors?.base.fillInteraction};
|
|
18577
18686
|
`}
|
|
18578
18687
|
box-shadow: none;
|
|
18579
18688
|
|
|
@@ -18613,11 +18722,11 @@ const UnifiedNavItem = styled$2__default.default(Button, {
|
|
|
18613
18722
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
18614
18723
|
: semanticColors?.base.ornamentSecondary;
|
|
18615
18724
|
const ChevronHoverColor = hasInvertedStyle
|
|
18616
|
-
? semanticColors?.base?.
|
|
18617
|
-
: semanticColors?.base.
|
|
18725
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
18726
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
18618
18727
|
const ChevronOpenColor = hasInvertedStyle
|
|
18619
|
-
? semanticColors?.base.
|
|
18620
|
-
: semanticColors?.base.
|
|
18728
|
+
? semanticColors?.base.ornamentSecondaryInteractionOnDark
|
|
18729
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
18621
18730
|
return [
|
|
18622
18731
|
navVariant === "secondary" &&
|
|
18623
18732
|
(active ? fontBodySemiboldS(props) : fontBodyMediumS(props)),
|
|
@@ -18645,8 +18754,8 @@ const UnifiedNavItem = styled$2__default.default(Button, {
|
|
|
18645
18754
|
|
|
18646
18755
|
&:hover {
|
|
18647
18756
|
background: ${hasInvertedStyle
|
|
18648
|
-
? semanticColors?.base.
|
|
18649
|
-
: semanticColors?.base.
|
|
18757
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
18758
|
+
: semanticColors?.base.fillInteraction} !important;
|
|
18650
18759
|
box-shadow: none;
|
|
18651
18760
|
|
|
18652
18761
|
${navVariant === "primary" && StyledLabel} {
|
|
@@ -18741,7 +18850,7 @@ const StyledSectionHeader = styled$2__default.default(ListSubheader, {
|
|
|
18741
18850
|
? semanticColors?.base.backgroundPrimaryDark
|
|
18742
18851
|
: semanticColors?.base.backgroundPrimary;
|
|
18743
18852
|
}
|
|
18744
|
-
return semanticColors?.base?.
|
|
18853
|
+
return semanticColors?.base?.surfacePrimary;
|
|
18745
18854
|
}
|
|
18746
18855
|
function getTextColor() {
|
|
18747
18856
|
if (isNarrow) {
|
|
@@ -18802,7 +18911,7 @@ const StyledAccordionSection = styled$2__default.default("div", {
|
|
|
18802
18911
|
border-radius: ${corners?.xl}px;
|
|
18803
18912
|
padding: ${spaces?.l}px;
|
|
18804
18913
|
background-color: ${hasInvertedStyle
|
|
18805
|
-
? semanticColors?.base?.
|
|
18914
|
+
? semanticColors?.base?.backgroundSecondaryDark
|
|
18806
18915
|
: semanticColors?.base?.backgroundSecondary};
|
|
18807
18916
|
`;
|
|
18808
18917
|
}
|
|
@@ -19438,8 +19547,8 @@ const NarrowStyledTextItem = (props) => {
|
|
|
19438
19547
|
&:hover {
|
|
19439
19548
|
box-shadow: none;
|
|
19440
19549
|
background: ${hasInvertedStyle
|
|
19441
|
-
? semanticColors?.base.
|
|
19442
|
-
: semanticColors?.base.
|
|
19550
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
19551
|
+
: semanticColors?.base.fillInteraction};
|
|
19443
19552
|
}
|
|
19444
19553
|
`;
|
|
19445
19554
|
};
|
|
@@ -19471,11 +19580,11 @@ styled$2__default.default(Button, {
|
|
|
19471
19580
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
19472
19581
|
: semanticColors?.base.ornamentSecondary;
|
|
19473
19582
|
const ChevronHoverColor = hasInvertedStyle
|
|
19474
|
-
? semanticColors?.base?.
|
|
19475
|
-
: semanticColors?.base.
|
|
19583
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
19584
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
19476
19585
|
const ChevronOpenColor = hasInvertedStyle
|
|
19477
|
-
? semanticColors?.base?.
|
|
19478
|
-
: semanticColors?.base.
|
|
19586
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
19587
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
19479
19588
|
return [
|
|
19480
19589
|
open ? fontBodySemiboldS(props) : fontBodyMediumS(props),
|
|
19481
19590
|
react.css `
|
|
@@ -19496,8 +19605,8 @@ styled$2__default.default(Button, {
|
|
|
19496
19605
|
|
|
19497
19606
|
&:hover {
|
|
19498
19607
|
background: ${hasInvertedStyle
|
|
19499
|
-
? semanticColors?.base.
|
|
19500
|
-
: semanticColors?.base.
|
|
19608
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
19609
|
+
: semanticColors?.base.fillInteraction};
|
|
19501
19610
|
box-shadow: none;
|
|
19502
19611
|
|
|
19503
19612
|
color: ${hasInvertedStyle
|
|
@@ -20049,7 +20158,7 @@ const StyledTabs$1 = styled$2__default.default(material.Tabs, {
|
|
|
20049
20158
|
const StyledTab$1 = styled$2__default.default(material.Tab, {
|
|
20050
20159
|
shouldForwardProp: (prop) => !doNotForwardProps$5.includes(prop)
|
|
20051
20160
|
}) `
|
|
20052
|
-
${
|
|
20161
|
+
${fontBodyMediumXs}
|
|
20053
20162
|
|
|
20054
20163
|
${(props) => {
|
|
20055
20164
|
const spaces = getSpaces(props);
|
|
@@ -20076,20 +20185,20 @@ const StyledTab$1 = styled$2__default.default(material.Tab, {
|
|
|
20076
20185
|
left: 0;
|
|
20077
20186
|
width: ${spaces?.xxxs}px;
|
|
20078
20187
|
height: 100%;
|
|
20079
|
-
background-color: ${semanticColors?.base?.
|
|
20188
|
+
background-color: ${semanticColors?.base?.borderPrimaryInteraction};
|
|
20080
20189
|
display: none;
|
|
20081
20190
|
border-radius: ${spaces?.xxxs}px;
|
|
20082
20191
|
}
|
|
20083
20192
|
&:hover {
|
|
20084
20193
|
color: ${semanticColors?.base?.textPrimary};
|
|
20085
|
-
background-color: ${semanticColors?.base?.
|
|
20194
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20086
20195
|
&:before {
|
|
20087
20196
|
display: block;
|
|
20088
20197
|
}
|
|
20089
20198
|
}
|
|
20090
20199
|
&.Mui-selected {
|
|
20091
20200
|
color: ${semanticColors?.base?.textPrimary};
|
|
20092
|
-
font-weight:
|
|
20201
|
+
font-weight: 600;
|
|
20093
20202
|
}
|
|
20094
20203
|
&.MuiButtonBase-root {
|
|
20095
20204
|
text-align: left;
|
|
@@ -20401,7 +20510,7 @@ const StyledPaginationButton = styled$2__default.default(Button) `
|
|
|
20401
20510
|
|
|
20402
20511
|
&:hover {
|
|
20403
20512
|
& .MuiSvgIcon-root {
|
|
20404
|
-
color: ${semanticColors?.base?.
|
|
20513
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction}
|
|
20405
20514
|
}
|
|
20406
20515
|
}
|
|
20407
20516
|
`;
|
|
@@ -20437,10 +20546,10 @@ const StyledPaginationChevronList = styled$2__default.default("li", {
|
|
|
20437
20546
|
}
|
|
20438
20547
|
|
|
20439
20548
|
&:hover {
|
|
20440
|
-
background-color: ${disabled ? "transparent" : semanticColors?.base?.
|
|
20549
|
+
background-color: ${disabled ? "transparent" : semanticColors?.base?.fillInteraction};
|
|
20441
20550
|
|
|
20442
20551
|
& .MuiSvgIcon-root {
|
|
20443
|
-
color: ${disabled ? semanticColors?.base?.ornamentDisabled : semanticColors?.base?.
|
|
20552
|
+
color: ${disabled ? semanticColors?.base?.ornamentDisabled : semanticColors?.base?.ornamentSecondaryInteraction}
|
|
20444
20553
|
}
|
|
20445
20554
|
}
|
|
20446
20555
|
|
|
@@ -20462,28 +20571,29 @@ const StyledPagination = styled$2__default.default("ul", {
|
|
|
20462
20571
|
`;
|
|
20463
20572
|
const selectedPageStyle = (props) => {
|
|
20464
20573
|
const semanticColors = getSemanticColors(props);
|
|
20465
|
-
return `
|
|
20466
|
-
background-color: ${semanticColors?.base?.
|
|
20574
|
+
return react.css `
|
|
20575
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20467
20576
|
color: ${semanticColors?.base?.textPrimary};
|
|
20468
|
-
font-weight: 500;
|
|
20469
20577
|
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderSecondary};
|
|
20470
20578
|
|
|
20471
20579
|
&:hover {
|
|
20472
20580
|
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderSecondary};
|
|
20473
20581
|
}
|
|
20582
|
+
|
|
20583
|
+
${fontTabularSemiboldS(props)}
|
|
20474
20584
|
`;
|
|
20475
20585
|
};
|
|
20476
20586
|
const Page = styled$2__default.default("li", {
|
|
20477
20587
|
shouldForwardProp: (prop) => !doNotForwardProps$3.includes(prop)
|
|
20478
20588
|
}) `
|
|
20479
|
-
${
|
|
20589
|
+
${fontTabularMediumS}
|
|
20480
20590
|
|
|
20481
20591
|
${(props) => {
|
|
20482
20592
|
const { selected, sdsStyle } = props;
|
|
20483
20593
|
const spaces = getSpaces(props);
|
|
20484
20594
|
const corners = getCorners(props);
|
|
20485
20595
|
const semanticColors = getSemanticColors(props);
|
|
20486
|
-
return `
|
|
20596
|
+
return react.css `
|
|
20487
20597
|
color: ${semanticColors?.base?.textSecondary};
|
|
20488
20598
|
cursor: pointer;
|
|
20489
20599
|
list-style: none;
|
|
@@ -20497,15 +20607,15 @@ const Page = styled$2__default.default("li", {
|
|
|
20497
20607
|
border-radius: ${sdsStyle === "round" ? corners?.rounded : corners?.l}px;
|
|
20498
20608
|
user-select: none;
|
|
20499
20609
|
&:hover {
|
|
20500
|
-
background-color: ${semanticColors?.base?.
|
|
20610
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20501
20611
|
color: ${semanticColors?.base?.textPrimary};
|
|
20502
20612
|
}
|
|
20503
20613
|
|
|
20504
|
-
&:nth-last-of-type(-n+2) {
|
|
20614
|
+
&:nth-last-of-type(-n + 2) {
|
|
20505
20615
|
margin-right: 0;
|
|
20506
20616
|
}
|
|
20507
20617
|
|
|
20508
|
-
${selected && selectedPageStyle(props)}
|
|
20618
|
+
${selected && selectedPageStyle(props)}
|
|
20509
20619
|
${focusVisibleA11yStyle(props)}
|
|
20510
20620
|
`;
|
|
20511
20621
|
}}
|
|
@@ -20828,7 +20938,7 @@ styled$2__default.default(material.ToggleButtonGroup, {
|
|
|
20828
20938
|
padding: ${spaces?.xxxs}px;
|
|
20829
20939
|
|
|
20830
20940
|
&:hover {
|
|
20831
|
-
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.
|
|
20941
|
+
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderPrimaryInteraction};
|
|
20832
20942
|
}
|
|
20833
20943
|
|
|
20834
20944
|
.${material.toggleButtonClasses.root}.${material.toggleButtonClasses.disabled} {
|
|
@@ -20836,13 +20946,13 @@ styled$2__default.default(material.ToggleButtonGroup, {
|
|
|
20836
20946
|
}
|
|
20837
20947
|
|
|
20838
20948
|
.${material.toggleButtonClasses.root}.${material.toggleButtonClasses.selected} {
|
|
20839
|
-
background-color: ${semanticColors?.base?.
|
|
20949
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20840
20950
|
color: ${semanticColors?.accent?.ornamentSelected};
|
|
20841
20951
|
border-color: ${semanticColors?.base?.borderPrimary};
|
|
20842
20952
|
|
|
20843
20953
|
&:hover {
|
|
20844
|
-
background-color: ${semanticColors?.base?.
|
|
20845
|
-
color: ${semanticColors?.base?.
|
|
20954
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20955
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
20846
20956
|
}
|
|
20847
20957
|
}
|
|
20848
20958
|
|
|
@@ -20858,8 +20968,8 @@ styled$2__default.default(material.ToggleButtonGroup, {
|
|
|
20858
20968
|
|
|
20859
20969
|
&:hover {
|
|
20860
20970
|
border-color: ${semanticColors?.base?.borderPrimary};
|
|
20861
|
-
background-color: ${semanticColors?.base?.
|
|
20862
|
-
color: ${semanticColors?.base?.
|
|
20971
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20972
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
20863
20973
|
}
|
|
20864
20974
|
}
|
|
20865
20975
|
`;
|
|
@@ -20915,6 +21025,7 @@ const disabledStyled = (props) => {
|
|
|
20915
21025
|
|
|
20916
21026
|
& span, & div {
|
|
20917
21027
|
color: ${semanticColors?.base?.textDisabled};
|
|
21028
|
+
background-color: transparent !important;
|
|
20918
21029
|
}
|
|
20919
21030
|
|
|
20920
21031
|
.cell-component {
|
|
@@ -20923,11 +21034,12 @@ const disabledStyled = (props) => {
|
|
|
20923
21034
|
user-select: none;
|
|
20924
21035
|
& div {
|
|
20925
21036
|
color: ${semanticColors?.base?.textDisabled};
|
|
20926
|
-
background-color:
|
|
21037
|
+
background-color: transparent;
|
|
20927
21038
|
}
|
|
20928
21039
|
|
|
20929
21040
|
& .MuiChip-root {
|
|
20930
21041
|
background-color: ${semanticColors?.base?.fillDisabled};
|
|
21042
|
+
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderPrimaryDisabled} !important;
|
|
20931
21043
|
|
|
20932
21044
|
& span {
|
|
20933
21045
|
color: ${semanticColors?.base?.textDisabled} !important;
|
|
@@ -20946,7 +21058,7 @@ const hoverStyled = (props) => {
|
|
|
20946
21058
|
const semanticColors = getSemanticColors(props);
|
|
20947
21059
|
return `
|
|
20948
21060
|
&:hover {
|
|
20949
|
-
background-color: ${semanticColors?.base?.
|
|
21061
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20950
21062
|
}
|
|
20951
21063
|
`;
|
|
20952
21064
|
};
|
|
@@ -21047,8 +21159,8 @@ const StyledTab = styled$2__default.default(material.Tab, {
|
|
|
21047
21159
|
color: ${semanticColors?.base?.textSecondary};
|
|
21048
21160
|
|
|
21049
21161
|
&:hover {
|
|
21050
|
-
box-shadow: inset 0 -2px 0 0 ${semanticColors?.base?.
|
|
21051
|
-
background-color: ${semanticColors?.base?.
|
|
21162
|
+
box-shadow: inset 0 -2px 0 0 ${semanticColors?.base?.borderPrimaryInteraction};
|
|
21163
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
21052
21164
|
border-top-right-radius: ${corners?.l}px;
|
|
21053
21165
|
border-top-left-radius: ${corners?.l}px;
|
|
21054
21166
|
|
|
@@ -21078,7 +21190,7 @@ const StyledTab = styled$2__default.default(material.Tab, {
|
|
|
21078
21190
|
function tabFontMixin(props) {
|
|
21079
21191
|
const { sdsSize } = props;
|
|
21080
21192
|
const isLarge = sdsSize === "large";
|
|
21081
|
-
return isLarge ?
|
|
21193
|
+
return isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props);
|
|
21082
21194
|
}
|
|
21083
21195
|
const StyledWrapper = styled$2__default.default("div") `
|
|
21084
21196
|
${(props) => {
|
|
@@ -21097,7 +21209,7 @@ const StyledCount = styled$2__default.default("span") `
|
|
|
21097
21209
|
const { sdsSize } = props;
|
|
21098
21210
|
const isLarge = sdsSize === "large";
|
|
21099
21211
|
return react.css `
|
|
21100
|
-
${isLarge ?
|
|
21212
|
+
${isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props)}
|
|
21101
21213
|
`;
|
|
21102
21214
|
}}
|
|
21103
21215
|
`;
|
|
@@ -21106,9 +21218,9 @@ const StyledLabelTextWrapper = styled$2__default.default("span") `
|
|
|
21106
21218
|
const { sdsSize, selected } = props;
|
|
21107
21219
|
const isLarge = sdsSize === "large";
|
|
21108
21220
|
return react.css `
|
|
21109
|
-
${isLarge ?
|
|
21221
|
+
${isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props)}
|
|
21110
21222
|
${selected &&
|
|
21111
|
-
(isLarge ?
|
|
21223
|
+
(isLarge ? fontBodySemiboldS(props) : fontBodySemiboldXs(props))}
|
|
21112
21224
|
position: absolute;
|
|
21113
21225
|
`;
|
|
21114
21226
|
}}
|
|
@@ -21118,7 +21230,7 @@ const StyledLabelTextWrapperShadow = styled$2__default.default("span") `
|
|
|
21118
21230
|
const { sdsSize } = props;
|
|
21119
21231
|
const isLarge = sdsSize === "large";
|
|
21120
21232
|
return react.css `
|
|
21121
|
-
${isLarge ?
|
|
21233
|
+
${isLarge ? fontBodySemiboldS(props) : fontBodySemiboldXs(props)}
|
|
21122
21234
|
visibility: hidden;
|
|
21123
21235
|
opacity: 0;
|
|
21124
21236
|
`;
|
|
@@ -24798,7 +24910,7 @@ Object.assign(chroma, {
|
|
|
24798
24910
|
const generateDiscreteColors = (count, options = {}) => {
|
|
24799
24911
|
if (count === 0)
|
|
24800
24912
|
return [];
|
|
24801
|
-
const { isDarkMode = false, start =
|
|
24913
|
+
const { isDarkMode = false, start = 240, rotations = 0.85, gamma = 1, lightness = [0.4, 0.7], correctLightness = true, } = options;
|
|
24802
24914
|
let scale = chroma
|
|
24803
24915
|
.cubehelix()
|
|
24804
24916
|
.start(start)
|