@czi-sds/data-viz 0.15.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.d.ts +24 -0
- package/dist/index.cjs.js +422 -272
- package/dist/index.esm.d.ts +24 -0
- package/dist/index.esm.js +423 -273
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -6,7 +6,7 @@ import React__default, { useMemo, useEffect, forwardRef, useRef, useState, useCa
|
|
|
6
6
|
import { throttle } from 'lodash';
|
|
7
7
|
import styled$2 from '@emotion/styled';
|
|
8
8
|
import { css as css$1, ThemeContext as ThemeContext$1 } from '@emotion/react';
|
|
9
|
-
import { createTheme as createTheme$2, AccordionDetails as AccordionDetails$1, accordionSummaryClasses, AccordionSummary, SvgIcon, accordionClasses, accordionDetailsClasses, Accordion as Accordion$1, Alert as Alert$1, Button as Button$1, IconButton, outlinedInputClasses, inputBaseClasses, buttonBaseClasses, inputAdornmentClasses, TextField, InputAdornment, menuItemClasses, MenuItem as MenuItem$1, autocompleteClasses, Autocomplete, Paper, Popper, styled as styled$3, alertClasses, alertTitleClasses, AlertTitle, useTheme as useTheme$4, Tooltip as Tooltip$1, Chip, Card, CardContent, CardActions, css as css$2, CardMedia, DialogTitle as DialogTitle$1, Typography, dialogActionsClasses, DialogActions as DialogActions$1, Dialog, DialogContent, checkboxClasses, Checkbox, FormControlLabel, radioClasses, Radio, Slider, Switch, Link as Link$1, List, ListItem, ListSubheader as ListSubheader$1, menuClasses, Menu as Menu$1, Divider, AppBar, Toolbar, Drawer, useMediaQuery, tabsClasses, Tabs, Tab, drawerClasses, toggleButtonClasses, ToggleButtonGroup, ToggleButton, TableContainer, TableCell, buttonClasses, sliderClasses, switchClasses, useScrollTrigger, darken as darken$2, Table, TableBody, TableRow as TableRow$1 } from '@mui/material';
|
|
9
|
+
import { createTheme as createTheme$2, AccordionDetails as AccordionDetails$1, accordionSummaryClasses, AccordionSummary, SvgIcon, accordionClasses, accordionDetailsClasses, Accordion as Accordion$1, Alert as Alert$1, Button as Button$1, IconButton, outlinedInputClasses, inputBaseClasses, buttonBaseClasses, inputAdornmentClasses, TextField, InputAdornment, menuItemClasses, MenuItem as MenuItem$1, autocompleteClasses, Autocomplete, Paper, Popper, styled as styled$3, alertClasses, alertTitleClasses, AlertTitle, useTheme as useTheme$4, Tooltip as Tooltip$1, Chip, Card, CardContent, CardActions, css as css$2, CardMedia, DialogTitle as DialogTitle$1, Typography, dialogActionsClasses, DialogActions as DialogActions$1, Dialog, DialogContent, checkboxClasses, Checkbox, FormControlLabel, radioClasses, Radio, Slider, Switch, Link as Link$1, List, ListItem, ListSubheader as ListSubheader$1, menuClasses, Menu as Menu$1, Divider, AppBar, Toolbar, Drawer, useMediaQuery, tabsClasses, Tabs, Tab, drawerClasses, toggleButtonClasses, ToggleButtonGroup, ToggleButton, TableContainer, TableCell, buttonClasses, sliderClasses, switchClasses, useScrollTrigger, alpha as alpha$1, darken as darken$2, Table, TableBody, TableRow as TableRow$1 } from '@mui/material';
|
|
10
10
|
import { Remove } from '@mui/icons-material';
|
|
11
11
|
import { css as css$3 } from '@emotion/css';
|
|
12
12
|
|
|
@@ -970,7 +970,7 @@ const Spaces = {
|
|
|
970
970
|
xs: 6,
|
|
971
971
|
s: 8,
|
|
972
972
|
m: 12,
|
|
973
|
-
default:
|
|
973
|
+
default: 8,
|
|
974
974
|
l: 16,
|
|
975
975
|
xl: 24,
|
|
976
976
|
xxl: 32,
|
|
@@ -1244,7 +1244,7 @@ const SDSPaletteLight = (appTheme) => {
|
|
|
1244
1244
|
backgroundPrimaryDark: appTheme.colors.gray[900],
|
|
1245
1245
|
backgroundPrimaryInverse: appTheme.colors.gray[900],
|
|
1246
1246
|
backgroundSecondary: addOpacityToHex(appTheme.colors.gray[100], 40),
|
|
1247
|
-
|
|
1247
|
+
backgroundSecondaryDark: addOpacityToHex(appTheme.colors.gray[700], 62),
|
|
1248
1248
|
backgroundSecondaryInverse: appTheme.colors.gray[700],
|
|
1249
1249
|
backgroundTertiary: appTheme.colors.gray[100],
|
|
1250
1250
|
borderOnFill: appTheme.colors.gray[50],
|
|
@@ -1252,27 +1252,23 @@ const SDSPaletteLight = (appTheme) => {
|
|
|
1252
1252
|
borderPrimaryDisabled: appTheme.colors.gray[300],
|
|
1253
1253
|
borderPrimaryDisabledOnDark: appTheme.colors.gray[600],
|
|
1254
1254
|
borderPrimaryDisabledInverse: appTheme.colors.gray[600],
|
|
1255
|
-
|
|
1256
|
-
|
|
1255
|
+
borderPrimaryInteraction: appTheme.colors.gray[900],
|
|
1256
|
+
borderPrimaryInteractionOnDark: appTheme.colors.gray[50],
|
|
1257
1257
|
borderPrimaryHoverInverse: appTheme.colors.gray[50],
|
|
1258
1258
|
borderPrimaryOnDark: appTheme.colors.gray[300],
|
|
1259
1259
|
borderPrimaryInverse: appTheme.colors.gray[300],
|
|
1260
|
-
borderPrimaryPressed: appTheme.colors.gray[900],
|
|
1261
|
-
borderPrimaryPressedOnDark: appTheme.colors.gray[50],
|
|
1262
1260
|
borderPrimaryPressedInverse: appTheme.colors.gray[50],
|
|
1263
1261
|
borderSecondary: appTheme.colors.gray[300],
|
|
1264
1262
|
divider: appTheme.colors.gray[200],
|
|
1265
1263
|
dividerOnDark: appTheme.colors.gray[700],
|
|
1266
1264
|
dividerInverse: appTheme.colors.gray[700],
|
|
1267
|
-
fillDisabled: appTheme.colors.gray[
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
fillHoverInverse: addOpacityToHex(appTheme.colors.gray[300],
|
|
1271
|
-
fillOpen: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
1272
|
-
fillOpenOnDark: addOpacityToHex(appTheme.colors.gray[300], 34),
|
|
1265
|
+
fillDisabled: appTheme.colors.gray[100],
|
|
1266
|
+
fillInteraction: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
1267
|
+
fillInteractionOnDark: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
1268
|
+
fillHoverInverse: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
1273
1269
|
fillOpenInverse: addOpacityToHex(appTheme.colors.gray[300], 34),
|
|
1274
|
-
fillPressed: addOpacityToHex(appTheme.colors.gray[300],
|
|
1275
|
-
fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300],
|
|
1270
|
+
fillPressed: addOpacityToHex(appTheme.colors.gray[300], 30),
|
|
1271
|
+
fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300], 24),
|
|
1276
1272
|
fillPressedInverse: addOpacityToHex(appTheme.colors.gray[300], 34),
|
|
1277
1273
|
fillPrimary: appTheme.colors.gray[50],
|
|
1278
1274
|
fillSelected: appTheme.colors.gray[900],
|
|
@@ -1284,16 +1280,15 @@ const SDSPaletteLight = (appTheme) => {
|
|
|
1284
1280
|
ornamentPrimaryOnDark: appTheme.colors.gray[50],
|
|
1285
1281
|
ornamentPrimaryInverse: appTheme.colors.gray[50],
|
|
1286
1282
|
ornamentSecondary: appTheme.colors.gray[600],
|
|
1287
|
-
|
|
1288
|
-
|
|
1283
|
+
ornamentSecondaryInteraction: appTheme.colors.gray[900],
|
|
1284
|
+
ornamentSecondaryInteractionOnDark: appTheme.colors.gray[50],
|
|
1289
1285
|
ornamentSecondaryHoverInverse: appTheme.colors.gray[50],
|
|
1290
1286
|
ornamentSecondaryOnDark: appTheme.colors.gray[300],
|
|
1291
1287
|
ornamentSecondaryInverse: appTheme.colors.gray[300],
|
|
1292
|
-
ornamentSecondaryPressed: appTheme.colors.gray[900],
|
|
1293
|
-
ornamentSecondaryPressedOnDark: appTheme.colors.gray[50],
|
|
1294
1288
|
ornamentSecondaryPressedInverse: appTheme.colors.gray[50],
|
|
1295
|
-
|
|
1296
|
-
|
|
1289
|
+
surfacePrimary: appTheme.colors.gray[50],
|
|
1290
|
+
surfaceSecondary: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
1291
|
+
surfacePrimaryDark: appTheme.colors.gray[900],
|
|
1297
1292
|
surfaceInverse: appTheme.colors.gray[900],
|
|
1298
1293
|
textDisabled: appTheme.colors.gray[300],
|
|
1299
1294
|
textDisabledOnDark: appTheme.colors.gray[600],
|
|
@@ -1406,7 +1401,7 @@ const SDSPaletteDark = (appTheme) => {
|
|
|
1406
1401
|
backgroundPrimaryDark: appTheme.colors.gray[75],
|
|
1407
1402
|
backgroundPrimaryInverse: appTheme.colors.gray[75],
|
|
1408
1403
|
backgroundSecondary: addOpacityToHex(appTheme.colors.gray[100], 60),
|
|
1409
|
-
|
|
1404
|
+
backgroundSecondaryDark: addOpacityToHex(appTheme.colors.gray[100], 60),
|
|
1410
1405
|
backgroundSecondaryInverse: addOpacityToHex(appTheme.colors.gray[100], 60),
|
|
1411
1406
|
backgroundTertiary: appTheme.colors.gray[100],
|
|
1412
1407
|
borderOnFill: appTheme.colors.gray[900],
|
|
@@ -1414,27 +1409,23 @@ const SDSPaletteDark = (appTheme) => {
|
|
|
1414
1409
|
borderPrimaryDisabled: appTheme.colors.gray[300],
|
|
1415
1410
|
borderPrimaryDisabledOnDark: appTheme.colors.gray[300],
|
|
1416
1411
|
borderPrimaryDisabledInverse: appTheme.colors.gray[300],
|
|
1417
|
-
|
|
1418
|
-
|
|
1412
|
+
borderPrimaryInteraction: appTheme.colors.gray[900],
|
|
1413
|
+
borderPrimaryInteractionOnDark: appTheme.colors.gray[900],
|
|
1419
1414
|
borderPrimaryHoverInverse: appTheme.colors.gray[900],
|
|
1420
1415
|
borderPrimaryOnDark: appTheme.colors.gray[600],
|
|
1421
1416
|
borderPrimaryInverse: appTheme.colors.gray[600],
|
|
1422
|
-
borderPrimaryPressed: appTheme.colors.gray[900],
|
|
1423
|
-
borderPrimaryPressedOnDark: appTheme.colors.gray[900],
|
|
1424
1417
|
borderPrimaryPressedInverse: appTheme.colors.gray[900],
|
|
1425
1418
|
borderSecondary: appTheme.colors.gray[300],
|
|
1426
1419
|
divider: appTheme.colors.gray[200],
|
|
1427
1420
|
dividerOnDark: appTheme.colors.gray[200],
|
|
1428
1421
|
dividerInverse: appTheme.colors.gray[200],
|
|
1429
|
-
fillDisabled: appTheme.colors.gray[
|
|
1430
|
-
|
|
1431
|
-
|
|
1422
|
+
fillDisabled: appTheme.colors.gray[100],
|
|
1423
|
+
fillInteraction: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1424
|
+
fillInteractionOnDark: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1432
1425
|
fillHoverInverse: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1433
|
-
fillOpen: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1434
|
-
fillOpenOnDark: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1435
1426
|
fillOpenInverse: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1436
|
-
fillPressed: addOpacityToHex(appTheme.colors.gray[300],
|
|
1437
|
-
fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300],
|
|
1427
|
+
fillPressed: addOpacityToHex(appTheme.colors.gray[300], 40),
|
|
1428
|
+
fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300], 40),
|
|
1438
1429
|
fillPressedInverse: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1439
1430
|
fillPrimary: appTheme.colors.gray[100],
|
|
1440
1431
|
fillSelected: appTheme.colors.gray[900],
|
|
@@ -1446,16 +1437,15 @@ const SDSPaletteDark = (appTheme) => {
|
|
|
1446
1437
|
ornamentPrimaryOnDark: appTheme.colors.gray[900],
|
|
1447
1438
|
ornamentPrimaryInverse: appTheme.colors.gray[50],
|
|
1448
1439
|
ornamentSecondary: appTheme.colors.gray[600],
|
|
1449
|
-
|
|
1450
|
-
|
|
1440
|
+
ornamentSecondaryInteraction: appTheme.colors.gray[900],
|
|
1441
|
+
ornamentSecondaryInteractionOnDark: appTheme.colors.gray[900],
|
|
1451
1442
|
ornamentSecondaryHoverInverse: appTheme.colors.gray[900],
|
|
1452
1443
|
ornamentSecondaryOnDark: appTheme.colors.gray[600],
|
|
1453
1444
|
ornamentSecondaryInverse: appTheme.colors.gray[600],
|
|
1454
|
-
ornamentSecondaryPressed: appTheme.colors.gray[900],
|
|
1455
|
-
ornamentSecondaryPressedOnDark: appTheme.colors.gray[900],
|
|
1456
1445
|
ornamentSecondaryPressedInverse: appTheme.colors.gray[900],
|
|
1457
|
-
|
|
1458
|
-
|
|
1446
|
+
surfacePrimary: appTheme.colors.gray[100],
|
|
1447
|
+
surfaceSecondary: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
1448
|
+
surfacePrimaryDark: appTheme.colors.gray[100],
|
|
1459
1449
|
surfaceInverse: appTheme.colors.gray[100],
|
|
1460
1450
|
textDisabled: appTheme.colors.gray[300],
|
|
1461
1451
|
textDisabledOnDark: appTheme.colors.gray[300],
|
|
@@ -1737,6 +1727,7 @@ function makeThemeOptions(appTheme, mode) {
|
|
|
1737
1727
|
appTheme.spacing.l,
|
|
1738
1728
|
appTheme.spacing.xl,
|
|
1739
1729
|
appTheme.spacing.xxl,
|
|
1730
|
+
appTheme.spacing.xxxl,
|
|
1740
1731
|
],
|
|
1741
1732
|
transitions: {
|
|
1742
1733
|
duration: {
|
|
@@ -1786,7 +1777,7 @@ const Theme = (t) => createTheme$2(makeThemeOptions(SDSChooseTheme(), t));
|
|
|
1786
1777
|
*
|
|
1787
1778
|
* Use the `theme` export to get a flexible light/dark mode theme function
|
|
1788
1779
|
*/
|
|
1789
|
-
Theme("light");
|
|
1780
|
+
const defaultTheme$4 = Theme("light");
|
|
1790
1781
|
|
|
1791
1782
|
const getSpaces = ({ theme }) => {
|
|
1792
1783
|
return theme?.app?.spacing || null;
|
|
@@ -1829,7 +1820,7 @@ function focusVisibleA11yStyle(props) {
|
|
|
1829
1820
|
const semanticColors = getSemanticColors(props);
|
|
1830
1821
|
return `
|
|
1831
1822
|
&.Mui-focusVisible, &:focus-visible {
|
|
1832
|
-
outline: 2px solid ${semanticColors?.base?.
|
|
1823
|
+
outline: 2px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
1833
1824
|
outline-offset: 1px;
|
|
1834
1825
|
}
|
|
1835
1826
|
`;
|
|
@@ -1882,6 +1873,7 @@ const fontBodySemiboldL = fontBody("l", "semibold");
|
|
|
1882
1873
|
const fontBodySemiboldM = fontBody("m", "semibold");
|
|
1883
1874
|
const fontBodySemiboldS = fontBody("s", "semibold");
|
|
1884
1875
|
const fontBodySemiboldXs = fontBody("xs", "semibold");
|
|
1876
|
+
const fontBodySemiboldXxxs = fontBody("xxxs", "semibold");
|
|
1885
1877
|
const fontCaps = createFontFunction({
|
|
1886
1878
|
additionalCss: "text-transform: uppercase;",
|
|
1887
1879
|
defaultWeight: "semibold",
|
|
@@ -1905,8 +1897,9 @@ const fontTabular = createFontFunction({
|
|
|
1905
1897
|
type: "tabular"
|
|
1906
1898
|
});
|
|
1907
1899
|
const fontTabularXs = fontTabular("xs", "regular");
|
|
1908
|
-
const
|
|
1900
|
+
const fontTabularMediumS = fontTabular("s", "medium");
|
|
1909
1901
|
const fontTabularSemiboldXxxxs = fontTabular("xxxxs", "semibold");
|
|
1902
|
+
const fontTabularSemiboldS = fontTabular("s", "semibold");
|
|
1910
1903
|
function themeToCss(fontTheme, fontFamily = "inherit") {
|
|
1911
1904
|
return css$1 `
|
|
1912
1905
|
font-family: ${fontFamily};
|
|
@@ -1974,7 +1967,7 @@ const StyledAccordionHeader = styled$2(AccordionSummary, {
|
|
|
1974
1967
|
&:hover {
|
|
1975
1968
|
& .${accordionSummaryClasses.expandIconWrapper} {
|
|
1976
1969
|
svg {
|
|
1977
|
-
color: ${semanticColors?.base?.
|
|
1970
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
1978
1971
|
}
|
|
1979
1972
|
}
|
|
1980
1973
|
}
|
|
@@ -5462,12 +5455,12 @@ const Minimal = (props) => {
|
|
|
5462
5455
|
}
|
|
5463
5456
|
|
|
5464
5457
|
&:hover {
|
|
5465
|
-
background-color: ${semanticColors?.base?.
|
|
5458
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
5466
5459
|
}
|
|
5467
5460
|
|
|
5468
5461
|
&:active {
|
|
5469
5462
|
color: ${semanticColors?.accent?.textActionPressed};
|
|
5470
|
-
background-color: ${semanticColors?.base?.
|
|
5463
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
5471
5464
|
|
|
5472
5465
|
svg {
|
|
5473
5466
|
color: ${semanticColors?.accent?.ornamentPressed};
|
|
@@ -5574,7 +5567,7 @@ const primary$2 = (props) => {
|
|
|
5574
5567
|
}
|
|
5575
5568
|
|
|
5576
5569
|
&:hover {
|
|
5577
|
-
background: ${semanticColors?.base?.
|
|
5570
|
+
background: ${semanticColors?.base?.fillInteraction};
|
|
5578
5571
|
color: ${semanticColors?.accent?.ornamentHover};
|
|
5579
5572
|
|
|
5580
5573
|
svg {
|
|
@@ -5602,7 +5595,7 @@ const secondary$2 = (props) => {
|
|
|
5602
5595
|
}
|
|
5603
5596
|
|
|
5604
5597
|
&:hover {
|
|
5605
|
-
background: ${semanticColors?.base?.
|
|
5598
|
+
background: ${semanticColors?.base?.fillInteraction};
|
|
5606
5599
|
color: ${semanticColors?.accent?.ornamentHover};
|
|
5607
5600
|
|
|
5608
5601
|
svg {
|
|
@@ -5631,19 +5624,19 @@ const tertiary = (props) => {
|
|
|
5631
5624
|
|
|
5632
5625
|
&:hover {
|
|
5633
5626
|
background: none;
|
|
5634
|
-
color: ${semanticColors?.base?.
|
|
5627
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5635
5628
|
|
|
5636
5629
|
svg {
|
|
5637
|
-
color: ${semanticColors?.base?.
|
|
5630
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5638
5631
|
}
|
|
5639
5632
|
}
|
|
5640
5633
|
|
|
5641
5634
|
&:active {
|
|
5642
5635
|
background: none;
|
|
5643
|
-
color: ${semanticColors?.base?.
|
|
5636
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5644
5637
|
|
|
5645
5638
|
svg {
|
|
5646
|
-
color: ${semanticColors?.base?.
|
|
5639
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5647
5640
|
}
|
|
5648
5641
|
}
|
|
5649
5642
|
`;
|
|
@@ -5863,7 +5856,7 @@ const applyIntentColor$2 = (props, intent) => {
|
|
|
5863
5856
|
.${inputAdornmentClasses.root} .${buttonBaseClasses.root}:last-of-type {
|
|
5864
5857
|
cursor: default;
|
|
5865
5858
|
svg {
|
|
5866
|
-
color: ${semanticColors?.base?.
|
|
5859
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5867
5860
|
}
|
|
5868
5861
|
}
|
|
5869
5862
|
}
|
|
@@ -5929,9 +5922,6 @@ const StyledSearchBase = styled$2(TextField, {
|
|
|
5929
5922
|
const semanticColors = getSemanticColors(props);
|
|
5930
5923
|
const corners = getCorners(props);
|
|
5931
5924
|
return css$1 `
|
|
5932
|
-
margin-top: ${spaces?.m}px;
|
|
5933
|
-
margin-bottom: ${spaces?.m}px;
|
|
5934
|
-
margin-right: ${spaces?.xl}px;
|
|
5935
5925
|
min-width: 120px;
|
|
5936
5926
|
display: block;
|
|
5937
5927
|
|
|
@@ -5980,7 +5970,8 @@ const StyledSearchBase = styled$2(TextField, {
|
|
|
5980
5970
|
|
|
5981
5971
|
&:hover {
|
|
5982
5972
|
svg {
|
|
5983
|
-
color: ${semanticColors?.base
|
|
5973
|
+
color: ${semanticColors?.base
|
|
5974
|
+
?.ornamentSecondaryInteraction} !important;
|
|
5984
5975
|
}
|
|
5985
5976
|
}
|
|
5986
5977
|
|
|
@@ -6000,7 +5991,7 @@ const StyledSearchBase = styled$2(TextField, {
|
|
|
6000
5991
|
}
|
|
6001
5992
|
|
|
6002
5993
|
.${outlinedInputClasses.root}:hover {
|
|
6003
|
-
background-color: ${semanticColors?.base?.
|
|
5994
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
6004
5995
|
|
|
6005
5996
|
& .${buttonBaseClasses.root}:last-of-type {
|
|
6006
5997
|
svg {
|
|
@@ -6008,7 +5999,7 @@ const StyledSearchBase = styled$2(TextField, {
|
|
|
6008
5999
|
}
|
|
6009
6000
|
}
|
|
6010
6001
|
.${outlinedInputClasses.notchedOutline} {
|
|
6011
|
-
border: 1px solid ${semanticColors?.base?.
|
|
6002
|
+
border: 1px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
6012
6003
|
}
|
|
6013
6004
|
}
|
|
6014
6005
|
|
|
@@ -6022,13 +6013,13 @@ const StyledSearchBase = styled$2(TextField, {
|
|
|
6022
6013
|
.${inputAdornmentClasses.root} .${buttonBaseClasses.root}:last-of-type {
|
|
6023
6014
|
cursor: default;
|
|
6024
6015
|
svg {
|
|
6025
|
-
color: ${semanticColors?.base?.
|
|
6016
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
6026
6017
|
}
|
|
6027
6018
|
}
|
|
6028
6019
|
}
|
|
6029
6020
|
|
|
6030
6021
|
&.user-is-tabbing .${outlinedInputClasses.root}:focus-within {
|
|
6031
|
-
outline: 2px solid ${semanticColors?.base?.
|
|
6022
|
+
outline: 2px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
6032
6023
|
outline-offset: 1px;
|
|
6033
6024
|
}
|
|
6034
6025
|
|
|
@@ -6067,10 +6058,10 @@ const StyledMenuItem$1 = styled$2(MenuItem$1) `
|
|
|
6067
6058
|
opacity: 1;
|
|
6068
6059
|
|
|
6069
6060
|
&:hover, &.${menuItemClasses.focusVisible} {
|
|
6070
|
-
background-color: ${semanticColors?.base?.
|
|
6061
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
6071
6062
|
|
|
6072
6063
|
&[aria-selected="true"] {
|
|
6073
|
-
background-color: ${semanticColors?.base?.
|
|
6064
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
6074
6065
|
}
|
|
6075
6066
|
}
|
|
6076
6067
|
}
|
|
@@ -6087,7 +6078,7 @@ const StyledMenuItem$1 = styled$2(MenuItem$1) `
|
|
|
6087
6078
|
background-color: unset !important;
|
|
6088
6079
|
|
|
6089
6080
|
&:hover {
|
|
6090
|
-
background-color: ${semanticColors?.base?.
|
|
6081
|
+
background-color: ${semanticColors?.base?.fillInteraction} !important;
|
|
6091
6082
|
}
|
|
6092
6083
|
|
|
6093
6084
|
${StyledIcon$1}, ${DotIcon} {
|
|
@@ -6100,16 +6091,16 @@ const StyledMenuItem$1 = styled$2(MenuItem$1) `
|
|
|
6100
6091
|
}
|
|
6101
6092
|
|
|
6102
6093
|
&:hover {
|
|
6103
|
-
background-color: ${semanticColors?.base?.
|
|
6094
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
6104
6095
|
${StyledIcon$1}, ${DotIcon} {
|
|
6105
6096
|
color: ${selected ? semanticColors?.base?.ornamentPrimary : semanticColors?.base?.ornamentSecondary};
|
|
6106
6097
|
}
|
|
6107
6098
|
}
|
|
6108
6099
|
|
|
6109
6100
|
&.Mui-selected.MuiListItem-root.MuiListItem-button {
|
|
6110
|
-
background-color: ${semanticColors?.base?.
|
|
6101
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6111
6102
|
&:hover {
|
|
6112
|
-
background-color: ${semanticColors?.base?.
|
|
6103
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
6113
6104
|
}
|
|
6114
6105
|
}
|
|
6115
6106
|
|
|
@@ -6448,7 +6439,7 @@ styled$2(Autocomplete, {
|
|
|
6448
6439
|
// look at the useDetectUserTabbing hook.
|
|
6449
6440
|
&[data-user-is-tabbing="true"]:focus-within {
|
|
6450
6441
|
border-radius: 4px;
|
|
6451
|
-
outline: 2px solid ${semanticColors?.base?.
|
|
6442
|
+
outline: 2px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
6452
6443
|
outline-offset: 1px;
|
|
6453
6444
|
}
|
|
6454
6445
|
|
|
@@ -6473,11 +6464,11 @@ styled$2(Autocomplete, {
|
|
|
6473
6464
|
min-height: unset;
|
|
6474
6465
|
|
|
6475
6466
|
&.${autocompleteClasses.focused} {
|
|
6476
|
-
background-color: ${semanticColors?.base?.
|
|
6467
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
6477
6468
|
}
|
|
6478
6469
|
|
|
6479
6470
|
&[aria-selected="true"] {
|
|
6480
|
-
background-color: ${semanticColors?.base?.
|
|
6471
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6481
6472
|
}
|
|
6482
6473
|
|
|
6483
6474
|
&[aria-disabled="true"] {
|
|
@@ -6485,7 +6476,7 @@ styled$2(Autocomplete, {
|
|
|
6485
6476
|
}
|
|
6486
6477
|
|
|
6487
6478
|
&[aria-selected="true"].${autocompleteClasses.focused} {
|
|
6488
|
-
background-color: ${semanticColors?.base?.
|
|
6479
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
6489
6480
|
}
|
|
6490
6481
|
}
|
|
6491
6482
|
|
|
@@ -6499,7 +6490,7 @@ styled$2(Autocomplete, {
|
|
|
6499
6490
|
.${autocompleteClasses.groupLabel} {
|
|
6500
6491
|
top: 0;
|
|
6501
6492
|
color: ${semanticColors?.base?.textSecondary};
|
|
6502
|
-
background-color: ${semanticColors?.base?.
|
|
6493
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6503
6494
|
padding: 0 ${spaces?.m}px;
|
|
6504
6495
|
}
|
|
6505
6496
|
|
|
@@ -6567,7 +6558,7 @@ styled$2(Paper) `
|
|
|
6567
6558
|
return `
|
|
6568
6559
|
background-image: none;
|
|
6569
6560
|
padding: ${spaces?.xs}px 0;
|
|
6570
|
-
background-color: ${semanticColors?.base?.
|
|
6561
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6571
6562
|
border: ${borders?.none};
|
|
6572
6563
|
outline: 1px solid ${addOpacityToHex(semanticColors?.base?.borderSecondary || "#000", 15)};
|
|
6573
6564
|
border-radius: ${corners?.l}px;
|
|
@@ -6579,9 +6570,10 @@ styled$2(Paper) `
|
|
|
6579
6570
|
styled$2("div") `
|
|
6580
6571
|
${fontBodyXxs$1}
|
|
6581
6572
|
${(props) => {
|
|
6573
|
+
const { disabled } = props;
|
|
6582
6574
|
const semanticColors = getSemanticColors(props);
|
|
6583
6575
|
return `
|
|
6584
|
-
color: ${semanticColors?.base?.textSecondary};
|
|
6576
|
+
color: ${disabled ? semanticColors?.base?.textDisabled : semanticColors?.base?.textSecondary};
|
|
6585
6577
|
white-space: pre-wrap;
|
|
6586
6578
|
`;
|
|
6587
6579
|
}}
|
|
@@ -6634,7 +6626,7 @@ styled$2(Popper, {
|
|
|
6634
6626
|
const borders = getBorders(props);
|
|
6635
6627
|
const semanticColors = getSemanticColors(props);
|
|
6636
6628
|
return `
|
|
6637
|
-
background-color: ${semanticColors?.base?.
|
|
6629
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6638
6630
|
background-image: none;
|
|
6639
6631
|
border: ${borders?.none};
|
|
6640
6632
|
border-radius: ${corners?.l}px;
|
|
@@ -6661,7 +6653,7 @@ styled$2(Paper, {
|
|
|
6661
6653
|
const shadows = getShadows(props);
|
|
6662
6654
|
const semanticColors = getSemanticColors(props);
|
|
6663
6655
|
return `
|
|
6664
|
-
background-color: ${semanticColors?.base?.
|
|
6656
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6665
6657
|
background-image: none;
|
|
6666
6658
|
box-shadow: ${shadows?.none};
|
|
6667
6659
|
margin: 0;
|
|
@@ -6705,7 +6697,7 @@ styled$3("span") `
|
|
|
6705
6697
|
const iconSizes = getIconSizes(props);
|
|
6706
6698
|
const semanticColors = getSemanticColors(props);
|
|
6707
6699
|
return `
|
|
6708
|
-
background-color: ${semanticColors?.base?.
|
|
6700
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6709
6701
|
position: absolute;
|
|
6710
6702
|
right: -${spaces?.xs}px;
|
|
6711
6703
|
top: -${spaces?.xxxs}px;
|
|
@@ -6896,7 +6888,7 @@ const StyledButtonToggle = styled$2(ButtonIcon, {
|
|
|
6896
6888
|
const { sdsStage } = props;
|
|
6897
6889
|
const semanticColors = getSemanticColors(props);
|
|
6898
6890
|
return `
|
|
6899
|
-
background-color: ${sdsStage === "on" ? semanticColors?.base?.
|
|
6891
|
+
background-color: ${sdsStage === "on" ? semanticColors?.base?.fillInteraction : "transparent"};
|
|
6900
6892
|
`;
|
|
6901
6893
|
}}
|
|
6902
6894
|
`;
|
|
@@ -7009,7 +7001,7 @@ const dark$1 = (props) => {
|
|
|
7009
7001
|
const semanticColors = getSemanticColors(props);
|
|
7010
7002
|
return css$3 `
|
|
7011
7003
|
${fontHeaderXs(props)}
|
|
7012
|
-
background-color: ${semanticColors?.base?.
|
|
7004
|
+
background-color: ${semanticColors?.base?.surfacePrimaryDark};
|
|
7013
7005
|
color: ${semanticColors?.base?.textPrimaryOnDark};
|
|
7014
7006
|
padding: ${spaces?.s}px ${spaces?.m}px;
|
|
7015
7007
|
`;
|
|
@@ -7019,7 +7011,7 @@ const light$1 = (props) => {
|
|
|
7019
7011
|
const semanticColors = getSemanticColors(props);
|
|
7020
7012
|
return css$3 `
|
|
7021
7013
|
${fontBodyXs$2(props)}
|
|
7022
|
-
background-color: ${semanticColors?.base?.
|
|
7014
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
7023
7015
|
color: ${semanticColors?.base?.textPrimary};
|
|
7024
7016
|
padding: ${spaces?.s}px ${spaces?.m}px;
|
|
7025
7017
|
`;
|
|
@@ -7094,8 +7086,8 @@ const arrowCss = (props) => {
|
|
|
7094
7086
|
/* (bethbertozzi): !important is needed to fight inline style */
|
|
7095
7087
|
left: ${arrowOffset}px !important;
|
|
7096
7088
|
color: ${hasInvertedStyle || inverted || sdsStyle === "dark"
|
|
7097
|
-
? semanticColors?.base?.
|
|
7098
|
-
: semanticColors?.base?.
|
|
7089
|
+
? semanticColors?.base?.surfacePrimaryDark
|
|
7090
|
+
: semanticColors?.base?.surfacePrimary};
|
|
7099
7091
|
&:before {
|
|
7100
7092
|
box-sizing: border-box;
|
|
7101
7093
|
width: 12px;
|
|
@@ -7518,7 +7510,7 @@ const StyledTableHeader$1 = styled$2("th", {
|
|
|
7518
7510
|
}
|
|
7519
7511
|
|
|
7520
7512
|
& svg {
|
|
7521
|
-
color: ${active ? semanticColors?.accent?.ornamentHover : semanticColors?.base?.
|
|
7513
|
+
color: ${active ? semanticColors?.accent?.ornamentHover : semanticColors?.base?.ornamentSecondaryInteraction};
|
|
7522
7514
|
}
|
|
7523
7515
|
}
|
|
7524
7516
|
`;
|
|
@@ -7738,6 +7730,21 @@ styled$2("div", {
|
|
|
7738
7730
|
`;
|
|
7739
7731
|
}}
|
|
7740
7732
|
`;
|
|
7733
|
+
styled$2("div", {
|
|
7734
|
+
shouldForwardProp: (prop) => !doNotForwardProps$v.includes(prop)
|
|
7735
|
+
}) `
|
|
7736
|
+
${fontBodyXxs$1}
|
|
7737
|
+
|
|
7738
|
+
${(props) => {
|
|
7739
|
+
const spaces = getSpaces(props);
|
|
7740
|
+
const semanticColors = getSemanticColors(props);
|
|
7741
|
+
return `
|
|
7742
|
+
color: ${semanticColors?.base?.textSecondary};
|
|
7743
|
+
padding-right: ${spaces?.m}px;
|
|
7744
|
+
padding-top: ${spaces?.xxxs}px;
|
|
7745
|
+
`;
|
|
7746
|
+
}}
|
|
7747
|
+
`;
|
|
7741
7748
|
styled$2("div", {
|
|
7742
7749
|
shouldForwardProp: (prop) => !doNotForwardProps$v.includes(prop)
|
|
7743
7750
|
}) `
|
|
@@ -7784,7 +7791,7 @@ styled$2(Popper, {
|
|
|
7784
7791
|
const shadows = getShadows(props);
|
|
7785
7792
|
const semanticColors = getSemanticColors(props);
|
|
7786
7793
|
return `
|
|
7787
|
-
background-color: ${semanticColors?.base?.
|
|
7794
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
7788
7795
|
background-image: none;
|
|
7789
7796
|
border: ${borders?.none};
|
|
7790
7797
|
border-radius: ${corners?.l}px;
|
|
@@ -7807,7 +7814,7 @@ styled$2(Paper, {
|
|
|
7807
7814
|
border: none !important;
|
|
7808
7815
|
outline: 1px solid ${addOpacityToHex(semanticColors?.base?.borderSecondary || "#000000", 15)};
|
|
7809
7816
|
border-radius: ${corners?.l}px;
|
|
7810
|
-
background-color: ${semanticColors?.base?.
|
|
7817
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
7811
7818
|
background-image: none;
|
|
7812
7819
|
margin: 0;
|
|
7813
7820
|
padding: 0 0 ${spaces?.xs}px 0;
|
|
@@ -7846,9 +7853,15 @@ styled$2("div") `
|
|
|
7846
7853
|
const spaces = getSpaces(props);
|
|
7847
7854
|
const semanticColors = getSemanticColors(props);
|
|
7848
7855
|
return `
|
|
7856
|
+
& > div {
|
|
7857
|
+
display: flex;
|
|
7858
|
+
flex-direction: row;
|
|
7859
|
+
align-items: center;
|
|
7860
|
+
justify-content: space-between;
|
|
7861
|
+
}
|
|
7862
|
+
|
|
7849
7863
|
display: flex;
|
|
7850
|
-
|
|
7851
|
-
justify-content: space-between;
|
|
7864
|
+
flex-direction: column;
|
|
7852
7865
|
padding: ${spaces?.xs}px ${spaces?.m}px ${search ? spaces?.xs : spaces?.s}px;
|
|
7853
7866
|
${search && `border-bottom: solid 1px ${semanticColors?.base?.divider};`}
|
|
7854
7867
|
`;
|
|
@@ -7910,12 +7923,13 @@ const inputDropdownStyles = (props) => {
|
|
|
7910
7923
|
}
|
|
7911
7924
|
|
|
7912
7925
|
&:hover {
|
|
7913
|
-
background-color: ${semanticColors?.base?.
|
|
7914
|
-
box-shadow: inset 0 0 0 1px
|
|
7926
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
7927
|
+
box-shadow: inset 0 0 0 1px
|
|
7928
|
+
${semanticColors?.base?.borderPrimaryInteraction};
|
|
7915
7929
|
color: ${semanticColors?.base?.textPrimary};
|
|
7916
7930
|
|
|
7917
7931
|
path {
|
|
7918
|
-
fill: ${semanticColors?.base?.
|
|
7932
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
7919
7933
|
}
|
|
7920
7934
|
|
|
7921
7935
|
.styled-label {
|
|
@@ -7929,7 +7943,7 @@ const inputDropdownStyles = (props) => {
|
|
|
7929
7943
|
color: ${semanticColors?.base?.textPrimary};
|
|
7930
7944
|
|
|
7931
7945
|
path {
|
|
7932
|
-
fill: ${semanticColors?.base?.
|
|
7946
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
7933
7947
|
}
|
|
7934
7948
|
}
|
|
7935
7949
|
|
|
@@ -7981,12 +7995,12 @@ const minimal$1 = (props) => {
|
|
|
7981
7995
|
}
|
|
7982
7996
|
|
|
7983
7997
|
&:hover {
|
|
7984
|
-
background-color: ${semanticColors?.base?.
|
|
7998
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
7985
7999
|
border: none;
|
|
7986
8000
|
color: ${semanticColors?.base?.textPrimary};
|
|
7987
8001
|
|
|
7988
8002
|
path {
|
|
7989
|
-
fill: ${semanticColors?.base?.
|
|
8003
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
7990
8004
|
}
|
|
7991
8005
|
|
|
7992
8006
|
.styled-label {
|
|
@@ -7995,7 +8009,7 @@ const minimal$1 = (props) => {
|
|
|
7995
8009
|
}
|
|
7996
8010
|
|
|
7997
8011
|
&:active {
|
|
7998
|
-
background-color: ${semanticColors?.base?.
|
|
8012
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
7999
8013
|
border: none;
|
|
8000
8014
|
}
|
|
8001
8015
|
`;
|
|
@@ -8065,7 +8079,7 @@ const isOpen = (props) => {
|
|
|
8065
8079
|
: ""}
|
|
8066
8080
|
|
|
8067
8081
|
path {
|
|
8068
|
-
fill: ${semanticColors?.base?.
|
|
8082
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
8069
8083
|
}
|
|
8070
8084
|
|
|
8071
8085
|
box-shadow: ${sdsStyle === "minimal"
|
|
@@ -8073,15 +8087,15 @@ const isOpen = (props) => {
|
|
|
8073
8087
|
: `inset 0 0 0 1px ${semanticColors?.[inputColor]?.border}`};
|
|
8074
8088
|
|
|
8075
8089
|
background-color: ${sdsStyle === "minimal"
|
|
8076
|
-
? semanticColors?.base?.
|
|
8090
|
+
? semanticColors?.base?.fillInteraction
|
|
8077
8091
|
: "transparent"};
|
|
8078
8092
|
|
|
8079
8093
|
&:hover {
|
|
8080
8094
|
path {
|
|
8081
|
-
fill: ${semanticColors?.base?.
|
|
8095
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
8082
8096
|
}
|
|
8083
8097
|
|
|
8084
|
-
border-color: ${semanticColors?.base?.
|
|
8098
|
+
border-color: ${semanticColors?.base?.borderPrimaryInteraction};
|
|
8085
8099
|
}
|
|
8086
8100
|
`;
|
|
8087
8101
|
};
|
|
@@ -8091,11 +8105,13 @@ const applyIntentColor$1 = (props, intent) => {
|
|
|
8091
8105
|
box-shadow: inset 0 0 0 1px ${semanticColors?.[intent]?.border};
|
|
8092
8106
|
|
|
8093
8107
|
&:hover {
|
|
8094
|
-
box-shadow: inset 0 0 0 1px
|
|
8108
|
+
box-shadow: inset 0 0 0 1px
|
|
8109
|
+
${semanticColors?.base?.borderPrimaryInteraction};
|
|
8095
8110
|
}
|
|
8096
8111
|
|
|
8097
8112
|
&:active {
|
|
8098
|
-
box-shadow: inset 0 0 0 1px
|
|
8113
|
+
box-shadow: inset 0 0 0 1px
|
|
8114
|
+
${semanticColors?.base?.borderPrimaryInteraction};
|
|
8099
8115
|
}
|
|
8100
8116
|
`;
|
|
8101
8117
|
};
|
|
@@ -8315,7 +8331,6 @@ const tagSizeS = (props) => {
|
|
|
8315
8331
|
const semanticColors = getSemanticColors(props);
|
|
8316
8332
|
return css$1 `
|
|
8317
8333
|
height: unset;
|
|
8318
|
-
margin: 0 ${spaces?.xxs}px ${spaces?.xs}px 0;
|
|
8319
8334
|
|
|
8320
8335
|
.MuiChip-label {
|
|
8321
8336
|
${fontBodyXxxs$1(props)}
|
|
@@ -8325,7 +8340,7 @@ const tagSizeS = (props) => {
|
|
|
8325
8340
|
.MuiSvgIcon-root {
|
|
8326
8341
|
height: ${iconSizes?.xs.height}px;
|
|
8327
8342
|
width: ${iconSizes?.xs.width}px;
|
|
8328
|
-
margin: 0 ${spaces?.xxs}px 0
|
|
8343
|
+
margin: 0 ${spaces?.xxs}px 0 0;
|
|
8329
8344
|
}
|
|
8330
8345
|
|
|
8331
8346
|
.MuiChip-deleteIcon {
|
|
@@ -8343,7 +8358,6 @@ const tagSizeL = (props) => {
|
|
|
8343
8358
|
const semanticColors = getSemanticColors(props);
|
|
8344
8359
|
return css$1 `
|
|
8345
8360
|
height: unset;
|
|
8346
|
-
margin: 0 ${spaces?.xxs}px ${spaces?.xs}px 0;
|
|
8347
8361
|
|
|
8348
8362
|
.MuiChip-label {
|
|
8349
8363
|
${fontBodyXs$2(props)}
|
|
@@ -8353,7 +8367,7 @@ const tagSizeL = (props) => {
|
|
|
8353
8367
|
.MuiSvgIcon-root {
|
|
8354
8368
|
height: ${iconSizes?.l.height}px;
|
|
8355
8369
|
width: ${iconSizes?.l.width}px;
|
|
8356
|
-
margin: 0 ${spaces?.xxs}px 0
|
|
8370
|
+
margin: 0 ${spaces?.xxs}px 0 0px;
|
|
8357
8371
|
}
|
|
8358
8372
|
|
|
8359
8373
|
.MuiChip-deleteIcon {
|
|
@@ -8370,9 +8384,11 @@ const rounded = (props) => {
|
|
|
8370
8384
|
const spaces = getSpaces(props);
|
|
8371
8385
|
const { sdsSize = "s", icon } = props;
|
|
8372
8386
|
const topBottomPadding = sdsSize === "s" ? spaces?.xxxs : icon ? spaces?.xxs : spaces?.xs;
|
|
8387
|
+
const rightPadding = sdsSize === "l" && icon ? spaces?.s : spaces?.xs;
|
|
8373
8388
|
return css$1 `
|
|
8374
8389
|
border-radius: ${corners?.rounded}px;
|
|
8375
|
-
padding: ${topBottomPadding}px ${
|
|
8390
|
+
padding: ${topBottomPadding}px ${rightPadding}px ${topBottomPadding}px
|
|
8391
|
+
${spaces?.xs}px;
|
|
8376
8392
|
|
|
8377
8393
|
&:after {
|
|
8378
8394
|
content: "";
|
|
@@ -8387,7 +8403,7 @@ const square = (props) => {
|
|
|
8387
8403
|
const topBottomPadding = sdsSize === "s" ? spaces?.xxxs : icon ? spaces?.xxs : spaces?.xs;
|
|
8388
8404
|
return css$1 `
|
|
8389
8405
|
border-radius: ${corners?.m}px;
|
|
8390
|
-
padding: ${topBottomPadding}px ${spaces?.
|
|
8406
|
+
padding: ${topBottomPadding}px ${spaces?.xs}px;
|
|
8391
8407
|
|
|
8392
8408
|
&:after {
|
|
8393
8409
|
content: "";
|
|
@@ -8415,54 +8431,51 @@ const secondary = (props) => {
|
|
|
8415
8431
|
return createTypeCss(props, "secondary");
|
|
8416
8432
|
};
|
|
8417
8433
|
function generatePrimaryTagColors(intent, colors, semanticColors) {
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
backgroundClicked: semanticColors?.neutral.fillPressed,
|
|
8436
|
-
backgroundHover: semanticColors?.neutral.fillHover,
|
|
8437
|
-
iconColor: semanticColors?.base?.ornamentOnFill,
|
|
8438
|
-
label: semanticColors?.base?.textOnFill
|
|
8439
|
-
};
|
|
8440
|
-
}
|
|
8434
|
+
const effectiveIntent = intent || "neutral";
|
|
8435
|
+
const intentColors = semanticColors?.[effectiveIntent];
|
|
8436
|
+
const hasCustomColors = colors.length >= 2;
|
|
8437
|
+
return {
|
|
8438
|
+
background: hasCustomColors ? colors[1] : intentColors?.fillPrimary,
|
|
8439
|
+
backgroundClicked: hasCustomColors
|
|
8440
|
+
? darken$2(colors[1], 0.3)
|
|
8441
|
+
: intentColors?.fillPressed,
|
|
8442
|
+
backgroundHover: hasCustomColors
|
|
8443
|
+
? darken$2(colors[1], 0.15)
|
|
8444
|
+
: intentColors?.fillHover,
|
|
8445
|
+
iconColor: hasCustomColors
|
|
8446
|
+
? colors[2]
|
|
8447
|
+
: semanticColors?.base?.ornamentOnFill,
|
|
8448
|
+
label: colors.length > 0 ? colors[0] : semanticColors?.base?.textOnFill,
|
|
8449
|
+
borderColor: alpha$1(semanticColors?.neutral.border || "#000", 0.6)
|
|
8450
|
+
};
|
|
8441
8451
|
}
|
|
8442
|
-
function
|
|
8443
|
-
if (
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8452
|
+
function getSecondaryBorderColor(effectiveIntent, theme, intentColors) {
|
|
8453
|
+
if (!theme || !theme.palette)
|
|
8454
|
+
return alpha$1(intentColors?.border || "#000", 0.6);
|
|
8455
|
+
if (effectiveIntent === "negative" && theme.palette.mode === "dark")
|
|
8456
|
+
return alpha$1(intentColors?.border || "#000", 0.65);
|
|
8457
|
+
if (effectiveIntent === "notice" && theme.palette.mode === "light")
|
|
8458
|
+
return alpha$1(intentColors?.border || "#000", 0.85);
|
|
8459
|
+
return alpha$1(intentColors?.border || "#000", 0.6);
|
|
8460
|
+
}
|
|
8461
|
+
function generateSecondaryTagColors(intent, colors, semanticColors, theme = defaultTheme$4) {
|
|
8462
|
+
const effectiveIntent = intent || "neutral";
|
|
8463
|
+
const intentColors = semanticColors?.[effectiveIntent];
|
|
8464
|
+
const hasCustomColors = colors.length >= 2;
|
|
8465
|
+
return {
|
|
8466
|
+
background: hasCustomColors ? colors[1] : intentColors?.fillSecondary,
|
|
8467
|
+
backgroundClicked: hasCustomColors
|
|
8468
|
+
? darken$2(colors[1], 0.3)
|
|
8469
|
+
: intentColors?.fillPressed,
|
|
8470
|
+
backgroundHover: hasCustomColors
|
|
8471
|
+
? darken$2(colors[1], 0.15)
|
|
8472
|
+
: intentColors?.fillHover,
|
|
8473
|
+
iconColor: hasCustomColors ? colors[2] : intentColors?.ornament,
|
|
8474
|
+
label: colors.length > 0 ? colors[0] : intentColors?.text,
|
|
8475
|
+
borderColor: hasCustomColors
|
|
8476
|
+
? alpha$1(colors[1], 0.6)
|
|
8477
|
+
: getSecondaryBorderColor(effectiveIntent, theme, intentColors)
|
|
8478
|
+
};
|
|
8466
8479
|
}
|
|
8467
8480
|
function createTypeCss(props, type) {
|
|
8468
8481
|
const semanticColors = getSemanticColors(props);
|
|
@@ -8470,12 +8483,16 @@ function createTypeCss(props, type) {
|
|
|
8470
8483
|
const colors = Array.isArray(props.tagColor) ? [...props.tagColor] : [];
|
|
8471
8484
|
const typeToColors = {
|
|
8472
8485
|
primary: generatePrimaryTagColors(intent, colors, semanticColors),
|
|
8473
|
-
secondary: generateSecondaryTagColors(intent, colors, semanticColors)
|
|
8486
|
+
secondary: generateSecondaryTagColors(intent, colors, semanticColors, props.theme)
|
|
8474
8487
|
};
|
|
8475
8488
|
const typeColors = typeToColors[type];
|
|
8476
8489
|
return css$1 `
|
|
8477
8490
|
${focusVisibleA11yStyle(props)}
|
|
8478
8491
|
|
|
8492
|
+
${type === "secondary" &&
|
|
8493
|
+
css$1 `
|
|
8494
|
+
box-shadow: inset 0 0 0 1px ${typeColors.borderColor};
|
|
8495
|
+
`}
|
|
8479
8496
|
background-color: ${typeColors.background};
|
|
8480
8497
|
position: relative;
|
|
8481
8498
|
|
|
@@ -8489,6 +8506,7 @@ function createTypeCss(props, type) {
|
|
|
8489
8506
|
|
|
8490
8507
|
&:hover,
|
|
8491
8508
|
&:active {
|
|
8509
|
+
box-shadow: none;
|
|
8492
8510
|
.MuiChip-label {
|
|
8493
8511
|
color: ${semanticColors?.base?.textPrimaryInverse};
|
|
8494
8512
|
}
|
|
@@ -8643,30 +8661,38 @@ const doNotForwardProps$r = [
|
|
|
8643
8661
|
"cardSdsType",
|
|
8644
8662
|
"classes",
|
|
8645
8663
|
];
|
|
8646
|
-
const
|
|
8647
|
-
|
|
8648
|
-
}) `
|
|
8649
|
-
${(props) => {
|
|
8650
|
-
const { imagePosition = "left", sdsType = "wide", boundingBox = true, decorativeBorder = false, imagePadding = false, visualElementType, clickableCard = false, } = props;
|
|
8651
|
-
const semanticColors = getSemanticColors(props);
|
|
8652
|
-
const corners = getCorners(props);
|
|
8653
|
-
const shadows = getShadows(props);
|
|
8654
|
-
const flexDirection = sdsType === "wide" && visualElementType === "image"
|
|
8664
|
+
const getFlexDirection = (sdsType, visualElementType, imagePosition) => {
|
|
8665
|
+
return sdsType === "wide" && visualElementType === "image"
|
|
8655
8666
|
? imagePosition === "left"
|
|
8656
8667
|
? "row"
|
|
8657
8668
|
: "row-reverse"
|
|
8658
8669
|
: visualElementType === "icon"
|
|
8659
8670
|
? "row"
|
|
8660
8671
|
: "column";
|
|
8661
|
-
|
|
8672
|
+
};
|
|
8673
|
+
const getShowDecorativeBorder = (visualElementType, boundingBox, decorativeBorder, imagePadding) => {
|
|
8674
|
+
return visualElementType === "image"
|
|
8662
8675
|
? boundingBox && decorativeBorder && imagePadding
|
|
8663
8676
|
: boundingBox && decorativeBorder;
|
|
8677
|
+
};
|
|
8678
|
+
const StyledCard = styled$2(Card, {
|
|
8679
|
+
shouldForwardProp: (prop) => !doNotForwardProps$r.includes(prop)
|
|
8680
|
+
}) `
|
|
8681
|
+
${(props) => {
|
|
8682
|
+
const { imagePosition = "left", sdsType = "wide", boundingBox = true, decorativeBorder = false, imagePadding = false, visualElementType, clickableCard = false, } = props;
|
|
8683
|
+
const semanticColors = getSemanticColors(props);
|
|
8684
|
+
const corners = getCorners(props);
|
|
8685
|
+
const shadows = getShadows(props);
|
|
8686
|
+
const spaces = getSpaces(props);
|
|
8687
|
+
const flexDirection = getFlexDirection(sdsType, visualElementType, imagePosition);
|
|
8688
|
+
const showDecorativeBorder = getShowDecorativeBorder(visualElementType, boundingBox, decorativeBorder, imagePadding);
|
|
8664
8689
|
return css$1 `
|
|
8690
|
+
position: relative;
|
|
8665
8691
|
display: flex;
|
|
8666
8692
|
background-color: transparent;
|
|
8667
8693
|
background-image: none;
|
|
8668
8694
|
flex-direction: ${flexDirection};
|
|
8669
|
-
overflow:
|
|
8695
|
+
overflow: visible;
|
|
8670
8696
|
box-shadow: none;
|
|
8671
8697
|
border-radius: ${corners?.xl}px;
|
|
8672
8698
|
|
|
@@ -8685,16 +8711,47 @@ const StyledCard = styled$2(Card, {
|
|
|
8685
8711
|
background-color: ${semanticColors?.base?.backgroundPrimary};
|
|
8686
8712
|
`}
|
|
8687
8713
|
|
|
8714
|
+
${showDecorativeBorder &&
|
|
8715
|
+
css$1 `
|
|
8716
|
+
&:before {
|
|
8717
|
+
content: "";
|
|
8718
|
+
position: absolute;
|
|
8719
|
+
background-color: ${semanticColors?.accent?.border};
|
|
8720
|
+
|
|
8721
|
+
${sdsType === "wide" &&
|
|
8722
|
+
css$1 `
|
|
8723
|
+
top: -1px;
|
|
8724
|
+
bottom: -1px;
|
|
8725
|
+
left: -1px;
|
|
8726
|
+
width: ${spaces?.xs}px;
|
|
8727
|
+
border-top-left-radius: ${corners?.xl}px;
|
|
8728
|
+
border-bottom-left-radius: ${corners?.xl}px;
|
|
8729
|
+
`}
|
|
8730
|
+
|
|
8731
|
+
${sdsType === "narrow" &&
|
|
8732
|
+
css$1 `
|
|
8733
|
+
height: ${spaces?.xs}px;
|
|
8734
|
+
top: -1px;
|
|
8735
|
+
left: -1px;
|
|
8736
|
+
right: -1px;
|
|
8737
|
+
border-top-left-radius: ${corners?.xl}px;
|
|
8738
|
+
border-top-right-radius: ${corners?.xl}px;
|
|
8739
|
+
`}
|
|
8740
|
+
}
|
|
8741
|
+
`}
|
|
8742
|
+
|
|
8688
8743
|
${sdsType === "wide" &&
|
|
8689
8744
|
showDecorativeBorder &&
|
|
8690
8745
|
css$1 `
|
|
8691
|
-
border-left:
|
|
8746
|
+
border-top-left-radius: ${corners?.l}px;
|
|
8747
|
+
border-bottom-left-radius: ${corners?.l}px;
|
|
8692
8748
|
`}
|
|
8693
8749
|
|
|
8694
8750
|
${sdsType === "narrow" &&
|
|
8695
8751
|
showDecorativeBorder &&
|
|
8696
8752
|
css$1 `
|
|
8697
|
-
border-top:
|
|
8753
|
+
border-top-left-radius: ${corners?.l}px;
|
|
8754
|
+
border-top-right-radius: ${corners?.l}px;
|
|
8698
8755
|
`}
|
|
8699
8756
|
`;
|
|
8700
8757
|
}}
|
|
@@ -8727,7 +8784,7 @@ const StyledCardActionArea = styled$2(Button, {
|
|
|
8727
8784
|
|
|
8728
8785
|
&:hover,
|
|
8729
8786
|
&:active {
|
|
8730
|
-
background-color: ${semanticColors?.base?.
|
|
8787
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
8731
8788
|
}
|
|
8732
8789
|
`;
|
|
8733
8790
|
}}
|
|
@@ -8967,9 +9024,13 @@ const StyledImageMediaWrapper = styled$3("div", {
|
|
|
8967
9024
|
${(props) => {
|
|
8968
9025
|
const { imagePadding = false, boundingBox = true, sdsType = "wide", imagePosition = "left", } = props;
|
|
8969
9026
|
const spaces = getSpaces(props);
|
|
9027
|
+
const corners = getCorners(props);
|
|
8970
9028
|
return css$2 `
|
|
8971
9029
|
display: flex;
|
|
8972
9030
|
align-items: start;
|
|
9031
|
+
border-top-left-radius: calc(${corners?.xl}px - 1px);
|
|
9032
|
+
border-bottom-left-radius: calc(${corners?.xl}px - 1px);
|
|
9033
|
+
overflow: hidden;
|
|
8973
9034
|
|
|
8974
9035
|
${boundingBox
|
|
8975
9036
|
? imagePadding
|
|
@@ -9004,6 +9065,8 @@ const StyledImageMediaWrapper = styled$3("div", {
|
|
|
9004
9065
|
`}
|
|
9005
9066
|
|
|
9006
9067
|
justify-content: center;
|
|
9068
|
+
border-top-left-radius: calc(${corners?.xl}px - 1px);
|
|
9069
|
+
border-top-right-radius: calc(${corners?.xl}px - 1px);
|
|
9007
9070
|
`}
|
|
9008
9071
|
`;
|
|
9009
9072
|
}}
|
|
@@ -9144,7 +9207,7 @@ const StyledPaper = styled$2(Paper, {
|
|
|
9144
9207
|
const semanticColors = getSemanticColors(props);
|
|
9145
9208
|
const isSmall = sdsSize === "xs" || sdsSize === "s";
|
|
9146
9209
|
return `
|
|
9147
|
-
background-color: ${semanticColors?.base?.
|
|
9210
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
9148
9211
|
background-image: none;
|
|
9149
9212
|
box-shadow: ${shadows?.l};
|
|
9150
9213
|
max-height: calc(100vh - ${2 * (spaces?.xxxl || 40)}px);
|
|
@@ -9786,12 +9849,11 @@ const disabledStyles$1 = (props) => {
|
|
|
9786
9849
|
styled$2(FormControlLabel) `
|
|
9787
9850
|
${(props) => {
|
|
9788
9851
|
const { disabled } = props;
|
|
9789
|
-
const spaces = getSpaces(props);
|
|
9790
9852
|
const semanticColors = getSemanticColors(props);
|
|
9791
9853
|
const borders = getBorders(props);
|
|
9792
9854
|
return `
|
|
9793
9855
|
align-items: start;
|
|
9794
|
-
margin-bottom:
|
|
9856
|
+
margin-bottom: 0;
|
|
9795
9857
|
margin-left: 0;
|
|
9796
9858
|
margin-right: 0;
|
|
9797
9859
|
width: fit-content;
|
|
@@ -9799,7 +9861,7 @@ styled$2(FormControlLabel) `
|
|
|
9799
9861
|
&:hover {
|
|
9800
9862
|
${StyledCheckboxDefaultIcon} {
|
|
9801
9863
|
border: ${borders?.base?.hover};
|
|
9802
|
-
background-color: ${disabled ? "transparent" : semanticColors?.base?.
|
|
9864
|
+
background-color: ${disabled ? "transparent" : semanticColors?.base?.fillInteraction};
|
|
9803
9865
|
}
|
|
9804
9866
|
|
|
9805
9867
|
${StyledCheckboxCheckedIcon} {
|
|
@@ -9936,19 +9998,18 @@ const disabledStyles = (props) => {
|
|
|
9936
9998
|
styled$2(FormControlLabel) `
|
|
9937
9999
|
${(props) => {
|
|
9938
10000
|
const { disabled } = props;
|
|
9939
|
-
const spaces = getSpaces(props);
|
|
9940
10001
|
const semanticColors = getSemanticColors(props);
|
|
9941
10002
|
return `
|
|
9942
10003
|
align-items: start;
|
|
9943
|
-
margin-bottom:
|
|
10004
|
+
margin-bottom: 0;
|
|
9944
10005
|
margin-left: 0;
|
|
9945
10006
|
margin-right: 0;
|
|
9946
10007
|
width: fit-content;
|
|
9947
10008
|
|
|
9948
10009
|
&:hover {
|
|
9949
10010
|
${StyledRadioDefaultIcon} {
|
|
9950
|
-
border: 1px solid ${semanticColors?.base?.
|
|
9951
|
-
background-color: ${disabled ? "transparent" : semanticColors?.base?.
|
|
10011
|
+
border: 1px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
10012
|
+
background-color: ${disabled ? "transparent" : semanticColors?.base?.fillInteraction};
|
|
9952
10013
|
}
|
|
9953
10014
|
|
|
9954
10015
|
${StyledRadioCheckedIcon} {
|
|
@@ -9958,7 +10019,7 @@ styled$2(FormControlLabel) `
|
|
|
9958
10019
|
|
|
9959
10020
|
&:active {
|
|
9960
10021
|
${StyledRadioDefaultIcon} {
|
|
9961
|
-
border: 1px solid ${semanticColors?.base?.
|
|
10022
|
+
border: 1px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
9962
10023
|
}
|
|
9963
10024
|
|
|
9964
10025
|
${StyledRadioCheckedIcon} {
|
|
@@ -10216,12 +10277,12 @@ const textArea = (props) => {
|
|
|
10216
10277
|
};
|
|
10217
10278
|
const StyledLabel$2 = styled$2("label") `
|
|
10218
10279
|
display: block;
|
|
10219
|
-
${
|
|
10280
|
+
${fontBodySemiboldXxxs}
|
|
10220
10281
|
|
|
10221
10282
|
${(props) => {
|
|
10222
10283
|
const spaces = getSpaces(props);
|
|
10223
10284
|
return `
|
|
10224
|
-
margin-bottom: ${spaces?.
|
|
10285
|
+
margin-bottom: ${spaces?.s}px;
|
|
10225
10286
|
`;
|
|
10226
10287
|
}}
|
|
10227
10288
|
`;
|
|
@@ -10237,8 +10298,6 @@ const StyledInputBase = styled$2(TextField, {
|
|
|
10237
10298
|
const corners = getCorners(props);
|
|
10238
10299
|
const semanticColors = getSemanticColors(props);
|
|
10239
10300
|
return css$1 `
|
|
10240
|
-
margin-bottom: ${spaces?.l}px;
|
|
10241
|
-
margin-right: ${spaces?.m}px;
|
|
10242
10301
|
display: block;
|
|
10243
10302
|
|
|
10244
10303
|
.${outlinedInputClasses.root} {
|
|
@@ -10275,7 +10334,7 @@ const StyledInputBase = styled$2(TextField, {
|
|
|
10275
10334
|
.${outlinedInputClasses.root}:hover
|
|
10276
10335
|
.${outlinedInputClasses.notchedOutline} {
|
|
10277
10336
|
border: ${borders?.base?.hover};
|
|
10278
|
-
background-color: ${semanticColors?.base?.
|
|
10337
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
10279
10338
|
}
|
|
10280
10339
|
|
|
10281
10340
|
.${outlinedInputClasses.root}.${outlinedInputClasses.focused}
|
|
@@ -10454,7 +10513,7 @@ const toggleOff = (props) => {
|
|
|
10454
10513
|
}
|
|
10455
10514
|
|
|
10456
10515
|
&:hover {
|
|
10457
|
-
background-color: ${semanticColors?.base?.
|
|
10516
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
10458
10517
|
}
|
|
10459
10518
|
}
|
|
10460
10519
|
|
|
@@ -10476,7 +10535,7 @@ const toggleOff = (props) => {
|
|
|
10476
10535
|
outline: ${borders?.base?.hover};
|
|
10477
10536
|
|
|
10478
10537
|
.${switchClasses.thumb} {
|
|
10479
|
-
color: ${semanticColors?.base?.
|
|
10538
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
10480
10539
|
}
|
|
10481
10540
|
}`}
|
|
10482
10541
|
`;
|
|
@@ -10492,6 +10551,57 @@ styled$2(Switch) `
|
|
|
10492
10551
|
}}
|
|
10493
10552
|
`;
|
|
10494
10553
|
|
|
10554
|
+
styled$2.div `
|
|
10555
|
+
display: flex;
|
|
10556
|
+
flex-direction: column;
|
|
10557
|
+
${(props) => {
|
|
10558
|
+
const spaces = getSpaces(props);
|
|
10559
|
+
const semanticColors = getSemanticColors(props);
|
|
10560
|
+
const borderThickness = 2;
|
|
10561
|
+
const borderColor = props.borderIntent
|
|
10562
|
+
? semanticColors?.[props.borderIntent]?.border
|
|
10563
|
+
: "transparent";
|
|
10564
|
+
return `
|
|
10565
|
+
gap: ${spaces?.s}px;
|
|
10566
|
+
position: relative;
|
|
10567
|
+
|
|
10568
|
+
&::before {
|
|
10569
|
+
content: "";
|
|
10570
|
+
position: absolute;
|
|
10571
|
+
left: -${(spaces?.xs || 0) + borderThickness}px;
|
|
10572
|
+
top: 0;
|
|
10573
|
+
bottom: 0;
|
|
10574
|
+
width: ${borderThickness}px;
|
|
10575
|
+
background-color: ${borderColor};
|
|
10576
|
+
display: ${props.hasBorder ? "block" : "none"};
|
|
10577
|
+
}
|
|
10578
|
+
`;
|
|
10579
|
+
}}
|
|
10580
|
+
`;
|
|
10581
|
+
styled$2.div `
|
|
10582
|
+
${fontBodySemiboldXxxs}
|
|
10583
|
+
display: flex;
|
|
10584
|
+
align-items: start;
|
|
10585
|
+
|
|
10586
|
+
${(props) => {
|
|
10587
|
+
const spaces = getSpaces(props);
|
|
10588
|
+
const semanticColors = getSemanticColors(props);
|
|
10589
|
+
const intentColors = semanticColors?.[props.intent];
|
|
10590
|
+
return `
|
|
10591
|
+
gap: ${spaces?.xs}px;
|
|
10592
|
+
color: ${intentColors?.text};
|
|
10593
|
+
|
|
10594
|
+
svg {
|
|
10595
|
+
margin-top: ${spaces?.xxxs}px;
|
|
10596
|
+
fill: ${intentColors?.ornament};
|
|
10597
|
+
path {
|
|
10598
|
+
fill: ${intentColors?.ornament};
|
|
10599
|
+
}
|
|
10600
|
+
}
|
|
10601
|
+
`;
|
|
10602
|
+
}}
|
|
10603
|
+
`;
|
|
10604
|
+
|
|
10495
10605
|
const LegendContainer = styled$2("div") `
|
|
10496
10606
|
display: flex;
|
|
10497
10607
|
flex-wrap: wrap;
|
|
@@ -10914,7 +11024,7 @@ const StyledMenu = styled$2(Menu$1) `
|
|
|
10914
11024
|
const corners = getCorners(props);
|
|
10915
11025
|
const semanticColors = getSemanticColors(props);
|
|
10916
11026
|
return `
|
|
10917
|
-
background-color: ${semanticColors?.base?.
|
|
11027
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
10918
11028
|
background-image: none;
|
|
10919
11029
|
padding: ${spaces?.xs}px;
|
|
10920
11030
|
border-radius: ${corners?.l}px;
|
|
@@ -17195,7 +17305,7 @@ const NarrowNavItemLinkStyles = (props) => {
|
|
|
17195
17305
|
? semanticColors?.base.textPrimaryOnDark
|
|
17196
17306
|
: semanticColors?.base.textPrimary};
|
|
17197
17307
|
background: ${props.hasInvertedStyle
|
|
17198
|
-
? semanticColors?.base.
|
|
17308
|
+
? semanticColors?.base.backgroundSecondaryDark
|
|
17199
17309
|
: semanticColors?.base.backgroundSecondary};
|
|
17200
17310
|
}
|
|
17201
17311
|
`;
|
|
@@ -17221,11 +17331,11 @@ const StyledNavItemLink = styled$2(Link, {
|
|
|
17221
17331
|
|
|
17222
17332
|
&:hover {
|
|
17223
17333
|
color: ${props.hasInvertedStyle
|
|
17224
|
-
? semanticColors?.base
|
|
17225
|
-
: semanticColors?.base
|
|
17334
|
+
? semanticColors?.base?.textPrimaryOnDark
|
|
17335
|
+
: semanticColors?.base?.textPrimary};
|
|
17226
17336
|
background-color: ${props.hasInvertedStyle
|
|
17227
|
-
? semanticColors?.base
|
|
17228
|
-
: semanticColors?.base
|
|
17337
|
+
? semanticColors?.base?.fillInteractionOnDark
|
|
17338
|
+
: semanticColors?.base?.fillInteraction};
|
|
17229
17339
|
text-decoration: none;
|
|
17230
17340
|
}
|
|
17231
17341
|
|
|
@@ -17692,7 +17802,7 @@ const StyledSearch = styled$2(InputSearch, {
|
|
|
17692
17802
|
&:hover {
|
|
17693
17803
|
fieldset {
|
|
17694
17804
|
border-color: ${hasInvertedStyle
|
|
17695
|
-
? semanticColors?.base?.
|
|
17805
|
+
? semanticColors?.base?.borderPrimaryInteractionOnDark
|
|
17696
17806
|
: ""} !important;
|
|
17697
17807
|
}
|
|
17698
17808
|
|
|
@@ -17710,7 +17820,7 @@ const StyledSearch = styled$2(InputSearch, {
|
|
|
17710
17820
|
&.Mui-focused {
|
|
17711
17821
|
fieldset {
|
|
17712
17822
|
border-color: ${hasInvertedStyle
|
|
17713
|
-
? semanticColors?.base?.
|
|
17823
|
+
? semanticColors?.base?.borderPrimaryInteractionOnDark
|
|
17714
17824
|
: ""} !important;
|
|
17715
17825
|
}
|
|
17716
17826
|
|
|
@@ -17905,8 +18015,8 @@ const StyledAccordion = styled$2(Accordion, {
|
|
|
17905
18015
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
17906
18016
|
: semanticColors?.base.ornamentSecondary;
|
|
17907
18017
|
const ChevronOpenColor = hasInvertedStyle
|
|
17908
|
-
? semanticColors?.base?.
|
|
17909
|
-
: semanticColors?.base.
|
|
18018
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
18019
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
17910
18020
|
return css$2 `
|
|
17911
18021
|
& > .MuiButtonBase-root {
|
|
17912
18022
|
padding: ${spaces?.s}px ${spaces?.l}px !important;
|
|
@@ -17971,16 +18081,16 @@ const StyledAccordion = styled$2(Accordion, {
|
|
|
17971
18081
|
width: 100%;
|
|
17972
18082
|
box-shadow: none;
|
|
17973
18083
|
background: ${hasInvertedStyle
|
|
17974
|
-
? semanticColors?.base.
|
|
17975
|
-
: semanticColors?.base.
|
|
18084
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
18085
|
+
: semanticColors?.base.fillInteraction};
|
|
17976
18086
|
color: ${hasInvertedStyle
|
|
17977
18087
|
? semanticColors?.base.textPrimaryOnDark
|
|
17978
18088
|
: semanticColors?.base.textPrimary};
|
|
17979
18089
|
|
|
17980
18090
|
svg {
|
|
17981
18091
|
color: ${hasInvertedStyle
|
|
17982
|
-
? semanticColors?.base?.
|
|
17983
|
-
: semanticColors?.base.
|
|
18092
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
18093
|
+
: semanticColors?.base.ornamentSecondaryInteraction} !important;
|
|
17984
18094
|
}
|
|
17985
18095
|
}
|
|
17986
18096
|
|
|
@@ -18183,8 +18293,8 @@ const StyledHoverDrawerItem = styled$2(Button, {
|
|
|
18183
18293
|
box-shadow: none;
|
|
18184
18294
|
cursor: pointer;
|
|
18185
18295
|
background: ${hasInvertedStyle
|
|
18186
|
-
? semanticColors?.base.
|
|
18187
|
-
: semanticColors?.base.
|
|
18296
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
18297
|
+
: semanticColors?.base.fillInteraction};
|
|
18188
18298
|
svg {
|
|
18189
18299
|
color: ${semanticColors?.accent?.ornament};
|
|
18190
18300
|
}
|
|
@@ -18358,8 +18468,8 @@ const NarrowPrimaryNavItem = (props) => {
|
|
|
18358
18468
|
const semanticColors = getSemanticColors(props);
|
|
18359
18469
|
const corners = getCorners(props);
|
|
18360
18470
|
const ChevronHoverColor = hasInvertedStyle
|
|
18361
|
-
? semanticColors?.base?.
|
|
18362
|
-
: semanticColors?.base.
|
|
18471
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
18472
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
18363
18473
|
return css$1 `
|
|
18364
18474
|
border-radius: ${corners?.l}px;
|
|
18365
18475
|
justify-content: start;
|
|
@@ -18384,8 +18494,8 @@ const NarrowPrimaryNavItem = (props) => {
|
|
|
18384
18494
|
`
|
|
18385
18495
|
: css$1 `
|
|
18386
18496
|
background: ${hasInvertedStyle
|
|
18387
|
-
? semanticColors?.base.
|
|
18388
|
-
: semanticColors?.base.
|
|
18497
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
18498
|
+
: semanticColors?.base.fillInteraction};
|
|
18389
18499
|
`}
|
|
18390
18500
|
box-shadow: none;
|
|
18391
18501
|
|
|
@@ -18417,11 +18527,11 @@ styled$2(Button, {
|
|
|
18417
18527
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
18418
18528
|
: semanticColors?.base.ornamentSecondary;
|
|
18419
18529
|
const ChevronHoverColor = hasInvertedStyle
|
|
18420
|
-
? semanticColors?.base?.
|
|
18421
|
-
: semanticColors?.base.
|
|
18530
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
18531
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
18422
18532
|
const ChevronOpenColor = hasInvertedStyle
|
|
18423
|
-
? semanticColors?.base.
|
|
18424
|
-
: semanticColors?.base.
|
|
18533
|
+
? semanticColors?.base.ornamentSecondaryInteractionOnDark
|
|
18534
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
18425
18535
|
return css$1 `
|
|
18426
18536
|
border: none;
|
|
18427
18537
|
padding: ${spaces?.xxxs}px ${spaces?.m}px;
|
|
@@ -18438,8 +18548,8 @@ styled$2(Button, {
|
|
|
18438
18548
|
|
|
18439
18549
|
&:hover {
|
|
18440
18550
|
background: ${hasInvertedStyle
|
|
18441
|
-
? semanticColors?.base.
|
|
18442
|
-
: semanticColors?.base.
|
|
18551
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
18552
|
+
: semanticColors?.base.fillInteraction} !important;
|
|
18443
18553
|
box-shadow: none;
|
|
18444
18554
|
|
|
18445
18555
|
${StyledLabel$1} {
|
|
@@ -18519,8 +18629,8 @@ const NarrowNavItemStyles = (props) => {
|
|
|
18519
18629
|
const semanticColors = getSemanticColors(props);
|
|
18520
18630
|
const corners = getCorners(props);
|
|
18521
18631
|
const ChevronHoverColor = hasInvertedStyle
|
|
18522
|
-
? semanticColors?.base?.
|
|
18523
|
-
: semanticColors?.base
|
|
18632
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
18633
|
+
: semanticColors?.base?.ornamentSecondaryInteraction;
|
|
18524
18634
|
return css$1 `
|
|
18525
18635
|
${active ? fontBodySemiboldL(props) : fontBodyMediumL(props)}
|
|
18526
18636
|
border-radius: ${corners?.l}px;
|
|
@@ -18547,8 +18657,8 @@ const NarrowNavItemStyles = (props) => {
|
|
|
18547
18657
|
`
|
|
18548
18658
|
: css$1 `
|
|
18549
18659
|
background: ${hasInvertedStyle
|
|
18550
|
-
? semanticColors?.base.
|
|
18551
|
-
: semanticColors?.base.
|
|
18660
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
18661
|
+
: semanticColors?.base.fillInteraction};
|
|
18552
18662
|
`}
|
|
18553
18663
|
box-shadow: none;
|
|
18554
18664
|
|
|
@@ -18588,11 +18698,11 @@ const UnifiedNavItem = styled$2(Button, {
|
|
|
18588
18698
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
18589
18699
|
: semanticColors?.base.ornamentSecondary;
|
|
18590
18700
|
const ChevronHoverColor = hasInvertedStyle
|
|
18591
|
-
? semanticColors?.base?.
|
|
18592
|
-
: semanticColors?.base.
|
|
18701
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
18702
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
18593
18703
|
const ChevronOpenColor = hasInvertedStyle
|
|
18594
|
-
? semanticColors?.base.
|
|
18595
|
-
: semanticColors?.base.
|
|
18704
|
+
? semanticColors?.base.ornamentSecondaryInteractionOnDark
|
|
18705
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
18596
18706
|
return [
|
|
18597
18707
|
navVariant === "secondary" &&
|
|
18598
18708
|
(active ? fontBodySemiboldS(props) : fontBodyMediumS(props)),
|
|
@@ -18620,8 +18730,8 @@ const UnifiedNavItem = styled$2(Button, {
|
|
|
18620
18730
|
|
|
18621
18731
|
&:hover {
|
|
18622
18732
|
background: ${hasInvertedStyle
|
|
18623
|
-
? semanticColors?.base.
|
|
18624
|
-
: semanticColors?.base.
|
|
18733
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
18734
|
+
: semanticColors?.base.fillInteraction} !important;
|
|
18625
18735
|
box-shadow: none;
|
|
18626
18736
|
|
|
18627
18737
|
${navVariant === "primary" && StyledLabel} {
|
|
@@ -18716,7 +18826,7 @@ const StyledSectionHeader = styled$2(ListSubheader, {
|
|
|
18716
18826
|
? semanticColors?.base.backgroundPrimaryDark
|
|
18717
18827
|
: semanticColors?.base.backgroundPrimary;
|
|
18718
18828
|
}
|
|
18719
|
-
return semanticColors?.base?.
|
|
18829
|
+
return semanticColors?.base?.surfacePrimary;
|
|
18720
18830
|
}
|
|
18721
18831
|
function getTextColor() {
|
|
18722
18832
|
if (isNarrow) {
|
|
@@ -18777,7 +18887,7 @@ const StyledAccordionSection = styled$2("div", {
|
|
|
18777
18887
|
border-radius: ${corners?.xl}px;
|
|
18778
18888
|
padding: ${spaces?.l}px;
|
|
18779
18889
|
background-color: ${hasInvertedStyle
|
|
18780
|
-
? semanticColors?.base?.
|
|
18890
|
+
? semanticColors?.base?.backgroundSecondaryDark
|
|
18781
18891
|
: semanticColors?.base?.backgroundSecondary};
|
|
18782
18892
|
`;
|
|
18783
18893
|
}
|
|
@@ -19192,7 +19302,7 @@ function useNavigationState() {
|
|
|
19192
19302
|
};
|
|
19193
19303
|
}
|
|
19194
19304
|
|
|
19195
|
-
function NavigationHeaderPrimaryNav({ menuProps, hasInvertedStyle, isNarrow, items, onChange, value, sdsStyle = "dropdown", expandedAccordion, setExpandedAccordion, accordionRefs, scrollToAccordion, onDrawerStateChange, topOffset = 0, onClose: onCloseProp, }) {
|
|
19305
|
+
function NavigationHeaderPrimaryNav({ menuProps, hasInvertedStyle, isNarrow, items, onChange, value, sdsStyle = "dropdown", expandedAccordion, setExpandedAccordion, accordionRefs, scrollToAccordion, onDrawerStateChange, topOffset = 0, onClose: onCloseProp, onDrawerStyleNavItemHover, }) {
|
|
19196
19306
|
const theme = useTheme$4();
|
|
19197
19307
|
const { anchorEl, activeDropdownKey, activeDrawerKey, contentKey, isContentFading, open, drawerOpen, buttonRef, menuWidth, setAnchorEl, setActiveDropdownKey, setActiveDrawerKey, setContentKey, onClose: handleClose, onDrawerClose, onDrawerOpen, cancelDrawerClose, } = useNavigationState();
|
|
19198
19308
|
const [clickedDrawerKey, setClickedDrawerKey] = useState(null);
|
|
@@ -19241,6 +19351,7 @@ function NavigationHeaderPrimaryNav({ menuProps, hasInvertedStyle, isNarrow, ite
|
|
|
19241
19351
|
}
|
|
19242
19352
|
};
|
|
19243
19353
|
return (jsx(StyledHoverDrawerContainer, { onMouseEnter: () => {
|
|
19354
|
+
onDrawerStyleNavItemHover?.(item);
|
|
19244
19355
|
if (clickedDrawerKey !== key) {
|
|
19245
19356
|
onDrawerOpen(key);
|
|
19246
19357
|
}
|
|
@@ -19412,8 +19523,8 @@ const NarrowStyledTextItem = (props) => {
|
|
|
19412
19523
|
&:hover {
|
|
19413
19524
|
box-shadow: none;
|
|
19414
19525
|
background: ${hasInvertedStyle
|
|
19415
|
-
? semanticColors?.base.
|
|
19416
|
-
: semanticColors?.base.
|
|
19526
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
19527
|
+
: semanticColors?.base.fillInteraction};
|
|
19417
19528
|
}
|
|
19418
19529
|
`;
|
|
19419
19530
|
};
|
|
@@ -19445,11 +19556,11 @@ styled$2(Button, {
|
|
|
19445
19556
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
19446
19557
|
: semanticColors?.base.ornamentSecondary;
|
|
19447
19558
|
const ChevronHoverColor = hasInvertedStyle
|
|
19448
|
-
? semanticColors?.base?.
|
|
19449
|
-
: semanticColors?.base.
|
|
19559
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
19560
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
19450
19561
|
const ChevronOpenColor = hasInvertedStyle
|
|
19451
|
-
? semanticColors?.base?.
|
|
19452
|
-
: semanticColors?.base.
|
|
19562
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
19563
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
19453
19564
|
return [
|
|
19454
19565
|
open ? fontBodySemiboldS(props) : fontBodyMediumS(props),
|
|
19455
19566
|
css$1 `
|
|
@@ -19470,8 +19581,8 @@ styled$2(Button, {
|
|
|
19470
19581
|
|
|
19471
19582
|
&:hover {
|
|
19472
19583
|
background: ${hasInvertedStyle
|
|
19473
|
-
? semanticColors?.base.
|
|
19474
|
-
: semanticColors?.base.
|
|
19584
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
19585
|
+
: semanticColors?.base.fillInteraction};
|
|
19475
19586
|
box-shadow: none;
|
|
19476
19587
|
|
|
19477
19588
|
color: ${hasInvertedStyle
|
|
@@ -19492,7 +19603,7 @@ const StyledTag = styled$2(Tag) `
|
|
|
19492
19603
|
margin: 0;
|
|
19493
19604
|
`;
|
|
19494
19605
|
|
|
19495
|
-
function NavigationHeaderSecondaryNav({ menuProps, items, hasInvertedStyle, isNarrow, sdsStyle = "dropdown", expandedAccordion, setExpandedAccordion, accordionRefs, scrollToAccordion, onDrawerStateChange, topOffset = 0, onClose: onCloseProp, }) {
|
|
19606
|
+
function NavigationHeaderSecondaryNav({ menuProps, items, hasInvertedStyle, isNarrow, sdsStyle = "dropdown", expandedAccordion, setExpandedAccordion, accordionRefs, scrollToAccordion, onDrawerStateChange, topOffset = 0, onClose: onCloseProp, onDrawerStyleNavItemHover, }) {
|
|
19496
19607
|
const theme = useTheme$4();
|
|
19497
19608
|
const { anchorEl, activeDropdownKey, activeDrawerKey, contentKey, isContentFading, open, drawerOpen, buttonRef, menuWidth, setAnchorEl, setActiveDropdownKey, setActiveDrawerKey, setContentKey, onClose: handleClose, onDrawerClose, onDrawerOpen, cancelDrawerClose, } = useNavigationState();
|
|
19498
19609
|
function onClose() {
|
|
@@ -19516,7 +19627,10 @@ function NavigationHeaderSecondaryNav({ menuProps, items, hasInvertedStyle, isNa
|
|
|
19516
19627
|
const handleClick = (e) => {
|
|
19517
19628
|
parentOnClick?.(e);
|
|
19518
19629
|
};
|
|
19519
|
-
return (jsx(StyledHoverDrawerContainer, { onMouseEnter: () =>
|
|
19630
|
+
return (jsx(StyledHoverDrawerContainer, { onMouseEnter: () => {
|
|
19631
|
+
onDrawerStyleNavItemHover?.(item);
|
|
19632
|
+
onDrawerOpen(key);
|
|
19633
|
+
}, onMouseLeave: onDrawerClose, children: jsxs(UnifiedNavItem, __assign({}, rest, { hasInvertedStyle: hasInvertedStyle, active: isDrawerOpen, isNarrow: isNarrow, sdsStyle: "minimal", innerSdsStyle: sdsStyle, navVariant: "secondary", onClick: handleClick, component: componentProp, href: defaultUrl, target: target, rel: rel, children: [jsx(StyledLabelTextWrapper$1, { active: isDrawerOpen, isNarrow: isNarrow, children: label }), jsx(StyledLabelTextWrapperShadow$1, { "aria-hidden": "true", isNarrow: isNarrow, children: label }), jsx(Icon, { sdsIcon: isDrawerOpen ? "ChevronUp" : "ChevronDown", sdsSize: "xs" })] })) }, key));
|
|
19520
19634
|
};
|
|
19521
19635
|
const renderDropdownItem = (item, key, label, parentOnClick, rest) => {
|
|
19522
19636
|
const isDropdownOpen = open && activeDropdownKey === key;
|
|
@@ -19688,7 +19802,7 @@ forwardRef((props, ref) => {
|
|
|
19688
19802
|
const { activePrimaryNavKey: controlledActivePrimaryNavKey, buttons, sdsStyle = "dropdown", menuProps = {
|
|
19689
19803
|
disableScrollLock: true,
|
|
19690
19804
|
disablePortal: true
|
|
19691
|
-
}, backgroundAppearance = "matchBackground", logo, logoUrl, logoLinkComponent = "a", logoLinkProps, scrollElevation = true, primaryNavItems, primaryNavPosition = "left", searchProps, secondaryNavItems, setActivePrimaryNavKey: onActivePrimaryNavKeyChange, showSearch = true, tag, tagColor, title, drawerOpen: controlledDrawerOpen, setDrawerOpen: onDrawerOpenChange, isSticky = true, topComponentSlot, ...rest } = props;
|
|
19805
|
+
}, backgroundAppearance = "matchBackground", logo, logoUrl, logoLinkComponent = "a", logoLinkProps, scrollElevation = true, primaryNavItems, primaryNavPosition = "left", searchProps, secondaryNavItems, setActivePrimaryNavKey: onActivePrimaryNavKeyChange, showSearch = true, tag, tagColor, title, drawerOpen: controlledDrawerOpen, setDrawerOpen: onDrawerOpenChange, isSticky = true, topComponentSlot, onDrawerStyleNavItemHover, ...rest } = props;
|
|
19692
19806
|
const navRef = useRef(null);
|
|
19693
19807
|
const topSlotRef = useRef(null);
|
|
19694
19808
|
const [topOffset, setTopOffset] = useState(0);
|
|
@@ -19841,11 +19955,11 @@ forwardRef((props, ref) => {
|
|
|
19841
19955
|
};
|
|
19842
19956
|
const renderPrimaryNav = () => {
|
|
19843
19957
|
return (primaryNavItems &&
|
|
19844
|
-
primaryNavItems.length > 0 && (jsx(NavigationHeaderPrimaryNav, { items: primaryNavItems, value: activePrimaryNavKey, onChange: setActivePrimaryNavKey, hasInvertedStyle: hasInvertedStyle, isNarrow: dimensions.isNarrow, menuProps: menuProps, sdsStyle: sdsStyle, expandedAccordion: expandedAccordion, setExpandedAccordion: setExpandedAccordion, accordionRefs: accordionRefs, scrollToAccordion: scrollToAccordion, onDrawerStateChange: handlePrimaryDrawerStateChange, topOffset: topOffset, onClose: () => setDrawerOpen(false) })));
|
|
19958
|
+
primaryNavItems.length > 0 && (jsx(NavigationHeaderPrimaryNav, { items: primaryNavItems, value: activePrimaryNavKey, onChange: setActivePrimaryNavKey, hasInvertedStyle: hasInvertedStyle, isNarrow: dimensions.isNarrow, menuProps: menuProps, sdsStyle: sdsStyle, expandedAccordion: expandedAccordion, setExpandedAccordion: setExpandedAccordion, accordionRefs: accordionRefs, scrollToAccordion: scrollToAccordion, onDrawerStateChange: handlePrimaryDrawerStateChange, topOffset: topOffset, onClose: () => setDrawerOpen(false), onDrawerStyleNavItemHover: onDrawerStyleNavItemHover })));
|
|
19845
19959
|
};
|
|
19846
19960
|
const renderSecondaryNav = () => {
|
|
19847
19961
|
return (secondaryNavItems &&
|
|
19848
|
-
secondaryNavItems.length > 0 && (jsx(NavigationHeaderSecondaryNav, { items: secondaryNavItems, hasInvertedStyle: hasInvertedStyle, isNarrow: dimensions.isNarrow, menuProps: menuProps, sdsStyle: sdsStyle, expandedAccordion: expandedAccordion, setExpandedAccordion: setExpandedAccordion, accordionRefs: accordionRefs, scrollToAccordion: scrollToAccordion, onDrawerStateChange: handleSecondaryDrawerStateChange, topOffset: topOffset, onClose: () => setDrawerOpen(false) })));
|
|
19962
|
+
secondaryNavItems.length > 0 && (jsx(NavigationHeaderSecondaryNav, { items: secondaryNavItems, hasInvertedStyle: hasInvertedStyle, isNarrow: dimensions.isNarrow, menuProps: menuProps, sdsStyle: sdsStyle, expandedAccordion: expandedAccordion, setExpandedAccordion: setExpandedAccordion, accordionRefs: accordionRefs, scrollToAccordion: scrollToAccordion, onDrawerStateChange: handleSecondaryDrawerStateChange, topOffset: topOffset, onClose: () => setDrawerOpen(false), onDrawerStyleNavItemHover: onDrawerStyleNavItemHover })));
|
|
19849
19963
|
};
|
|
19850
19964
|
const renderButtonsNode = () => {
|
|
19851
19965
|
if (!buttons || buttons.length === 0)
|
|
@@ -20020,7 +20134,7 @@ const StyledTabs$1 = styled$2(Tabs, {
|
|
|
20020
20134
|
const StyledTab$1 = styled$2(Tab, {
|
|
20021
20135
|
shouldForwardProp: (prop) => !doNotForwardProps$5.includes(prop)
|
|
20022
20136
|
}) `
|
|
20023
|
-
${
|
|
20137
|
+
${fontBodyMediumXs}
|
|
20024
20138
|
|
|
20025
20139
|
${(props) => {
|
|
20026
20140
|
const spaces = getSpaces(props);
|
|
@@ -20047,20 +20161,20 @@ const StyledTab$1 = styled$2(Tab, {
|
|
|
20047
20161
|
left: 0;
|
|
20048
20162
|
width: ${spaces?.xxxs}px;
|
|
20049
20163
|
height: 100%;
|
|
20050
|
-
background-color: ${semanticColors?.base?.
|
|
20164
|
+
background-color: ${semanticColors?.base?.borderPrimaryInteraction};
|
|
20051
20165
|
display: none;
|
|
20052
20166
|
border-radius: ${spaces?.xxxs}px;
|
|
20053
20167
|
}
|
|
20054
20168
|
&:hover {
|
|
20055
20169
|
color: ${semanticColors?.base?.textPrimary};
|
|
20056
|
-
background-color: ${semanticColors?.base?.
|
|
20170
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20057
20171
|
&:before {
|
|
20058
20172
|
display: block;
|
|
20059
20173
|
}
|
|
20060
20174
|
}
|
|
20061
20175
|
&.Mui-selected {
|
|
20062
20176
|
color: ${semanticColors?.base?.textPrimary};
|
|
20063
|
-
font-weight:
|
|
20177
|
+
font-weight: 600;
|
|
20064
20178
|
}
|
|
20065
20179
|
&.MuiButtonBase-root {
|
|
20066
20180
|
text-align: left;
|
|
@@ -20372,7 +20486,7 @@ const StyledPaginationButton = styled$2(Button) `
|
|
|
20372
20486
|
|
|
20373
20487
|
&:hover {
|
|
20374
20488
|
& .MuiSvgIcon-root {
|
|
20375
|
-
color: ${semanticColors?.base?.
|
|
20489
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction}
|
|
20376
20490
|
}
|
|
20377
20491
|
}
|
|
20378
20492
|
`;
|
|
@@ -20408,10 +20522,10 @@ const StyledPaginationChevronList = styled$2("li", {
|
|
|
20408
20522
|
}
|
|
20409
20523
|
|
|
20410
20524
|
&:hover {
|
|
20411
|
-
background-color: ${disabled ? "transparent" : semanticColors?.base?.
|
|
20525
|
+
background-color: ${disabled ? "transparent" : semanticColors?.base?.fillInteraction};
|
|
20412
20526
|
|
|
20413
20527
|
& .MuiSvgIcon-root {
|
|
20414
|
-
color: ${disabled ? semanticColors?.base?.ornamentDisabled : semanticColors?.base?.
|
|
20528
|
+
color: ${disabled ? semanticColors?.base?.ornamentDisabled : semanticColors?.base?.ornamentSecondaryInteraction}
|
|
20415
20529
|
}
|
|
20416
20530
|
}
|
|
20417
20531
|
|
|
@@ -20433,28 +20547,29 @@ const StyledPagination = styled$2("ul", {
|
|
|
20433
20547
|
`;
|
|
20434
20548
|
const selectedPageStyle = (props) => {
|
|
20435
20549
|
const semanticColors = getSemanticColors(props);
|
|
20436
|
-
return `
|
|
20437
|
-
background-color: ${semanticColors?.base?.
|
|
20550
|
+
return css$1 `
|
|
20551
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20438
20552
|
color: ${semanticColors?.base?.textPrimary};
|
|
20439
|
-
font-weight: 500;
|
|
20440
20553
|
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderSecondary};
|
|
20441
20554
|
|
|
20442
20555
|
&:hover {
|
|
20443
20556
|
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderSecondary};
|
|
20444
20557
|
}
|
|
20558
|
+
|
|
20559
|
+
${fontTabularSemiboldS(props)}
|
|
20445
20560
|
`;
|
|
20446
20561
|
};
|
|
20447
20562
|
const Page = styled$2("li", {
|
|
20448
20563
|
shouldForwardProp: (prop) => !doNotForwardProps$3.includes(prop)
|
|
20449
20564
|
}) `
|
|
20450
|
-
${
|
|
20565
|
+
${fontTabularMediumS}
|
|
20451
20566
|
|
|
20452
20567
|
${(props) => {
|
|
20453
20568
|
const { selected, sdsStyle } = props;
|
|
20454
20569
|
const spaces = getSpaces(props);
|
|
20455
20570
|
const corners = getCorners(props);
|
|
20456
20571
|
const semanticColors = getSemanticColors(props);
|
|
20457
|
-
return `
|
|
20572
|
+
return css$1 `
|
|
20458
20573
|
color: ${semanticColors?.base?.textSecondary};
|
|
20459
20574
|
cursor: pointer;
|
|
20460
20575
|
list-style: none;
|
|
@@ -20468,15 +20583,15 @@ const Page = styled$2("li", {
|
|
|
20468
20583
|
border-radius: ${sdsStyle === "round" ? corners?.rounded : corners?.l}px;
|
|
20469
20584
|
user-select: none;
|
|
20470
20585
|
&:hover {
|
|
20471
|
-
background-color: ${semanticColors?.base?.
|
|
20586
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20472
20587
|
color: ${semanticColors?.base?.textPrimary};
|
|
20473
20588
|
}
|
|
20474
20589
|
|
|
20475
|
-
&:nth-last-of-type(-n+2) {
|
|
20590
|
+
&:nth-last-of-type(-n + 2) {
|
|
20476
20591
|
margin-right: 0;
|
|
20477
20592
|
}
|
|
20478
20593
|
|
|
20479
|
-
${selected && selectedPageStyle(props)}
|
|
20594
|
+
${selected && selectedPageStyle(props)}
|
|
20480
20595
|
${focusVisibleA11yStyle(props)}
|
|
20481
20596
|
`;
|
|
20482
20597
|
}}
|
|
@@ -20799,7 +20914,7 @@ styled$2(ToggleButtonGroup, {
|
|
|
20799
20914
|
padding: ${spaces?.xxxs}px;
|
|
20800
20915
|
|
|
20801
20916
|
&:hover {
|
|
20802
|
-
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.
|
|
20917
|
+
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderPrimaryInteraction};
|
|
20803
20918
|
}
|
|
20804
20919
|
|
|
20805
20920
|
.${toggleButtonClasses.root}.${toggleButtonClasses.disabled} {
|
|
@@ -20807,13 +20922,13 @@ styled$2(ToggleButtonGroup, {
|
|
|
20807
20922
|
}
|
|
20808
20923
|
|
|
20809
20924
|
.${toggleButtonClasses.root}.${toggleButtonClasses.selected} {
|
|
20810
|
-
background-color: ${semanticColors?.base?.
|
|
20925
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20811
20926
|
color: ${semanticColors?.accent?.ornamentSelected};
|
|
20812
20927
|
border-color: ${semanticColors?.base?.borderPrimary};
|
|
20813
20928
|
|
|
20814
20929
|
&:hover {
|
|
20815
|
-
background-color: ${semanticColors?.base?.
|
|
20816
|
-
color: ${semanticColors?.base?.
|
|
20930
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20931
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
20817
20932
|
}
|
|
20818
20933
|
}
|
|
20819
20934
|
|
|
@@ -20829,8 +20944,8 @@ styled$2(ToggleButtonGroup, {
|
|
|
20829
20944
|
|
|
20830
20945
|
&:hover {
|
|
20831
20946
|
border-color: ${semanticColors?.base?.borderPrimary};
|
|
20832
|
-
background-color: ${semanticColors?.base?.
|
|
20833
|
-
color: ${semanticColors?.base?.
|
|
20947
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20948
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
20834
20949
|
}
|
|
20835
20950
|
}
|
|
20836
20951
|
`;
|
|
@@ -20886,6 +21001,7 @@ const disabledStyled = (props) => {
|
|
|
20886
21001
|
|
|
20887
21002
|
& span, & div {
|
|
20888
21003
|
color: ${semanticColors?.base?.textDisabled};
|
|
21004
|
+
background-color: transparent !important;
|
|
20889
21005
|
}
|
|
20890
21006
|
|
|
20891
21007
|
.cell-component {
|
|
@@ -20894,11 +21010,12 @@ const disabledStyled = (props) => {
|
|
|
20894
21010
|
user-select: none;
|
|
20895
21011
|
& div {
|
|
20896
21012
|
color: ${semanticColors?.base?.textDisabled};
|
|
20897
|
-
background-color:
|
|
21013
|
+
background-color: transparent;
|
|
20898
21014
|
}
|
|
20899
21015
|
|
|
20900
21016
|
& .MuiChip-root {
|
|
20901
21017
|
background-color: ${semanticColors?.base?.fillDisabled};
|
|
21018
|
+
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderPrimaryDisabled} !important;
|
|
20902
21019
|
|
|
20903
21020
|
& span {
|
|
20904
21021
|
color: ${semanticColors?.base?.textDisabled} !important;
|
|
@@ -20917,7 +21034,7 @@ const hoverStyled = (props) => {
|
|
|
20917
21034
|
const semanticColors = getSemanticColors(props);
|
|
20918
21035
|
return `
|
|
20919
21036
|
&:hover {
|
|
20920
|
-
background-color: ${semanticColors?.base?.
|
|
21037
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
20921
21038
|
}
|
|
20922
21039
|
`;
|
|
20923
21040
|
};
|
|
@@ -21018,8 +21135,8 @@ const StyledTab = styled$2(Tab, {
|
|
|
21018
21135
|
color: ${semanticColors?.base?.textSecondary};
|
|
21019
21136
|
|
|
21020
21137
|
&:hover {
|
|
21021
|
-
box-shadow: inset 0 -2px 0 0 ${semanticColors?.base?.
|
|
21022
|
-
background-color: ${semanticColors?.base?.
|
|
21138
|
+
box-shadow: inset 0 -2px 0 0 ${semanticColors?.base?.borderPrimaryInteraction};
|
|
21139
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
21023
21140
|
border-top-right-radius: ${corners?.l}px;
|
|
21024
21141
|
border-top-left-radius: ${corners?.l}px;
|
|
21025
21142
|
|
|
@@ -21049,7 +21166,7 @@ const StyledTab = styled$2(Tab, {
|
|
|
21049
21166
|
function tabFontMixin(props) {
|
|
21050
21167
|
const { sdsSize } = props;
|
|
21051
21168
|
const isLarge = sdsSize === "large";
|
|
21052
|
-
return isLarge ?
|
|
21169
|
+
return isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props);
|
|
21053
21170
|
}
|
|
21054
21171
|
const StyledWrapper = styled$2("div") `
|
|
21055
21172
|
${(props) => {
|
|
@@ -21068,7 +21185,7 @@ const StyledCount = styled$2("span") `
|
|
|
21068
21185
|
const { sdsSize } = props;
|
|
21069
21186
|
const isLarge = sdsSize === "large";
|
|
21070
21187
|
return css$1 `
|
|
21071
|
-
${isLarge ?
|
|
21188
|
+
${isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props)}
|
|
21072
21189
|
`;
|
|
21073
21190
|
}}
|
|
21074
21191
|
`;
|
|
@@ -21077,9 +21194,9 @@ const StyledLabelTextWrapper = styled$2("span") `
|
|
|
21077
21194
|
const { sdsSize, selected } = props;
|
|
21078
21195
|
const isLarge = sdsSize === "large";
|
|
21079
21196
|
return css$1 `
|
|
21080
|
-
${isLarge ?
|
|
21197
|
+
${isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props)}
|
|
21081
21198
|
${selected &&
|
|
21082
|
-
(isLarge ?
|
|
21199
|
+
(isLarge ? fontBodySemiboldS(props) : fontBodySemiboldXs(props))}
|
|
21083
21200
|
position: absolute;
|
|
21084
21201
|
`;
|
|
21085
21202
|
}}
|
|
@@ -21089,7 +21206,7 @@ const StyledLabelTextWrapperShadow = styled$2("span") `
|
|
|
21089
21206
|
const { sdsSize } = props;
|
|
21090
21207
|
const isLarge = sdsSize === "large";
|
|
21091
21208
|
return css$1 `
|
|
21092
|
-
${isLarge ?
|
|
21209
|
+
${isLarge ? fontBodySemiboldS(props) : fontBodySemiboldXs(props)}
|
|
21093
21210
|
visibility: hidden;
|
|
21094
21211
|
opacity: 0;
|
|
21095
21212
|
`;
|
|
@@ -24769,7 +24886,7 @@ Object.assign(chroma, {
|
|
|
24769
24886
|
const generateDiscreteColors = (count, options = {}) => {
|
|
24770
24887
|
if (count === 0)
|
|
24771
24888
|
return [];
|
|
24772
|
-
const { isDarkMode = false, start =
|
|
24889
|
+
const { isDarkMode = false, start = 240, rotations = 0.85, gamma = 1, lightness = [0.4, 0.7], correctLightness = true, } = options;
|
|
24773
24890
|
let scale = chroma
|
|
24774
24891
|
.cubehelix()
|
|
24775
24892
|
.start(start)
|
|
@@ -24975,7 +25092,7 @@ var renderBarSegment = function (item, index, options) {
|
|
|
24975
25092
|
};
|
|
24976
25093
|
var StackedBarChart = function (props) {
|
|
24977
25094
|
var _a, _b, _c;
|
|
24978
|
-
var title = props.title, badge = props.badge, _d = props.hideBadge, hideBadge = _d === void 0 ? false : _d, data = props.data, _e = props.width, width = _e === void 0 ? "100%" : _e, _f = props.barHeight, barHeightProp = _f === void 0 ? 16 : _f, _g = props.showLegend, showLegend = _g === void 0 ? true : _g, _h = props.showLegendValues, showLegendValues = _h === void 0 ? true : _h, _j = props.legendValueFormat, legendValueFormat = _j === void 0 ? "percentage" : _j, _k = props.selectedIndices, selectedIndices = _k === void 0 ? [] : _k, onSelectionChange = props.onSelectionChange, _l = props.selectionBehavior, selectionBehavior = _l === void 0 ? "dim" : _l, _m = props.mode, mode = _m === void 0 ? "proportional" : _m, maxAmount = props.maxAmount, _o = props.remainingLabel, remainingLabel = _o === void 0 ? "Remaining" : _o, remainingUnit = props.remainingUnit, unit = props.unit, colorGeneratorOptions = props.colorGeneratorOptions, rest = __rest(props, ["title", "badge", "hideBadge", "data", "width", "barHeight", "showLegend", "showLegendValues", "legendValueFormat", "selectedIndices", "onSelectionChange", "selectionBehavior", "mode", "maxAmount", "remainingLabel", "remainingUnit", "unit", "colorGeneratorOptions"]);
|
|
25095
|
+
var title = props.title, badge = props.badge, _d = props.hideBadge, hideBadge = _d === void 0 ? false : _d, data = props.data, _e = props.width, width = _e === void 0 ? "100%" : _e, _f = props.barHeight, barHeightProp = _f === void 0 ? 16 : _f, _g = props.showLegend, showLegend = _g === void 0 ? true : _g, _h = props.showLegendValues, showLegendValues = _h === void 0 ? true : _h, _j = props.legendValueFormat, legendValueFormat = _j === void 0 ? "percentage" : _j, _k = props.selectedIndices, selectedIndices = _k === void 0 ? [] : _k, onSelectionChange = props.onSelectionChange, onSegmentMouseEnter = props.onSegmentMouseEnter, onSegmentMouseLeave = props.onSegmentMouseLeave, onLegendItemMouseEnter = props.onLegendItemMouseEnter, onLegendItemMouseLeave = props.onLegendItemMouseLeave, onSegmentClick = props.onSegmentClick, onLegendItemClick = props.onLegendItemClick, _l = props.selectionBehavior, selectionBehavior = _l === void 0 ? "dim" : _l, _m = props.mode, mode = _m === void 0 ? "proportional" : _m, maxAmount = props.maxAmount, _o = props.remainingLabel, remainingLabel = _o === void 0 ? "Remaining" : _o, remainingUnit = props.remainingUnit, unit = props.unit, colorGeneratorOptions = props.colorGeneratorOptions, rest = __rest(props, ["title", "badge", "hideBadge", "data", "width", "barHeight", "showLegend", "showLegendValues", "legendValueFormat", "selectedIndices", "onSelectionChange", "onSegmentMouseEnter", "onSegmentMouseLeave", "onLegendItemMouseEnter", "onLegendItemMouseLeave", "onSegmentClick", "onLegendItemClick", "selectionBehavior", "mode", "maxAmount", "remainingLabel", "remainingUnit", "unit", "colorGeneratorOptions"]);
|
|
24979
25096
|
// Ensure barHeight is at least 1px
|
|
24980
25097
|
var barHeight = Math.max(1, barHeightProp);
|
|
24981
25098
|
var theme = useTheme$4();
|
|
@@ -25208,8 +25325,24 @@ var StackedBarChart = function (props) {
|
|
|
25208
25325
|
theme,
|
|
25209
25326
|
]);
|
|
25210
25327
|
// Handle legend item hover and leave
|
|
25211
|
-
var handleLegendItemHover = useCallback(function (_item, index) {
|
|
25212
|
-
|
|
25328
|
+
var handleLegendItemHover = useCallback(function (_item, index) {
|
|
25329
|
+
setHoveredIndex(index);
|
|
25330
|
+
if (onLegendItemMouseEnter && data[index]) {
|
|
25331
|
+
onLegendItemMouseEnter(data[index], index);
|
|
25332
|
+
}
|
|
25333
|
+
}, [onLegendItemMouseEnter, data]);
|
|
25334
|
+
var handleLegendItemLeave = useCallback(function (_item, index) {
|
|
25335
|
+
setHoveredIndex(null);
|
|
25336
|
+
if (onLegendItemMouseLeave && data[index]) {
|
|
25337
|
+
onLegendItemMouseLeave(data[index], index);
|
|
25338
|
+
}
|
|
25339
|
+
}, [onLegendItemMouseLeave, data]);
|
|
25340
|
+
// Handle legend item click
|
|
25341
|
+
var handleLegendItemClickInternal = useCallback(function (_item, index) {
|
|
25342
|
+
if (onLegendItemClick && data[index]) {
|
|
25343
|
+
onLegendItemClick(data[index], index);
|
|
25344
|
+
}
|
|
25345
|
+
}, [onLegendItemClick, data]);
|
|
25213
25346
|
// Handle selection change - reusable logic for both segment and legend
|
|
25214
25347
|
var handleSelectionChange = useCallback(function (newSelectedIndices) {
|
|
25215
25348
|
if (!onSelectionChange)
|
|
@@ -25219,8 +25352,13 @@ var StackedBarChart = function (props) {
|
|
|
25219
25352
|
});
|
|
25220
25353
|
onSelectionChange(newSelectedIndices, selectedData);
|
|
25221
25354
|
}, [onSelectionChange, data]);
|
|
25222
|
-
// Handle segment click - toggle selection
|
|
25355
|
+
// Handle segment click - toggle selection and call onSegmentClick
|
|
25223
25356
|
var handleSegmentClick = useCallback(function (index) {
|
|
25357
|
+
// Call onSegmentClick callback if provided
|
|
25358
|
+
if (onSegmentClick && data[index]) {
|
|
25359
|
+
onSegmentClick(data[index], index);
|
|
25360
|
+
}
|
|
25361
|
+
// Handle selection change
|
|
25224
25362
|
if (!onSelectionChange)
|
|
25225
25363
|
return;
|
|
25226
25364
|
var isSelected = selectedIndicesSet.has(index);
|
|
@@ -25230,6 +25368,8 @@ var StackedBarChart = function (props) {
|
|
|
25230
25368
|
handleSelectionChange(newSelectedIndices);
|
|
25231
25369
|
}, [
|
|
25232
25370
|
onSelectionChange,
|
|
25371
|
+
onSegmentClick,
|
|
25372
|
+
data,
|
|
25233
25373
|
selectedIndices,
|
|
25234
25374
|
selectedIndicesSet,
|
|
25235
25375
|
handleSelectionChange,
|
|
@@ -25252,14 +25392,24 @@ var StackedBarChart = function (props) {
|
|
|
25252
25392
|
selectionBehavior: selectionBehavior,
|
|
25253
25393
|
isLast: isLastVisible,
|
|
25254
25394
|
onMouseEnter: function () {
|
|
25255
|
-
|
|
25395
|
+
if (!item.isExiting) {
|
|
25396
|
+
setHoveredIndex(item.originalIndex);
|
|
25397
|
+
if (onSegmentMouseEnter && data[item.originalIndex]) {
|
|
25398
|
+
onSegmentMouseEnter(data[item.originalIndex], item.originalIndex);
|
|
25399
|
+
}
|
|
25400
|
+
}
|
|
25401
|
+
},
|
|
25402
|
+
onMouseLeave: function () {
|
|
25403
|
+
setHoveredIndex(null);
|
|
25404
|
+
if (onSegmentMouseLeave && data[item.originalIndex]) {
|
|
25405
|
+
onSegmentMouseLeave(data[item.originalIndex], item.originalIndex);
|
|
25406
|
+
}
|
|
25256
25407
|
},
|
|
25257
|
-
onMouseLeave: function () { return setHoveredIndex(null); },
|
|
25258
25408
|
onClick: function () {
|
|
25259
25409
|
return !item.isExiting && handleSegmentClick(item.originalIndex);
|
|
25260
25410
|
},
|
|
25261
25411
|
});
|
|
25262
|
-
}), hasRemaining && (jsx(BarSegment, { color: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _a === void 0 ? void 0 : _a.sds) === null || _b === void 0 ? void 0 : _b.base) === null || _c === void 0 ? void 0 : _c.backgroundTertiary, percentage: displayRemainingPercentage, height: barHeight, isLast: true, opacity: 1, disabled: true }, "remaining"))] }), showLegend && (jsx(Legend, { items: legendItems, showValues: showLegendValues, onItemMouseEnter: handleLegendItemHover, onItemMouseLeave: handleLegendItemLeave, selectedIndices: selectedIndices, onSelectionChange: onSelectionChange ? handleSelectionChange : undefined, hoveredIndex: hoveredIndex }))] }));
|
|
25412
|
+
}), hasRemaining && (jsx(BarSegment, { color: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _a === void 0 ? void 0 : _a.sds) === null || _b === void 0 ? void 0 : _b.base) === null || _c === void 0 ? void 0 : _c.backgroundTertiary, percentage: displayRemainingPercentage, height: barHeight, isLast: true, opacity: 1, disabled: true }, "remaining"))] }), showLegend && (jsx(Legend, { items: legendItems, showValues: showLegendValues, onItemMouseEnter: handleLegendItemHover, onItemMouseLeave: handleLegendItemLeave, onItemClick: onLegendItemClick ? handleLegendItemClickInternal : undefined, selectedIndices: selectedIndices, onSelectionChange: onSelectionChange ? handleSelectionChange : undefined, hoveredIndex: hoveredIndex }))] }));
|
|
25263
25413
|
// If no title, render chart and optional legend without wrapper
|
|
25264
25414
|
if (!title) {
|
|
25265
25415
|
return (jsx(ChartWrapper, __assign$1({ width: width }, rest, { children: chartContent })));
|