@czi-sds/components 23.1.0 → 23.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.d.ts +28 -17
- package/dist/index.cjs.js +439 -262
- package/dist/index.esm.d.ts +28 -17
- package/dist/index.esm.js +440 -264
- package/dist/tailwind.json +28 -38
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/variables.css +29 -39
- package/dist/variables.scss +28 -38
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { forwardRef, useEffect, useRef, useState, useCallback, createElement, useMemo, isValidElement, memo, Fragment as Fragment$1, createContext, useContext } from 'react';
|
|
5
5
|
import { css as css$1, ThemeContext as ThemeContext$1 } from '@emotion/react';
|
|
6
|
-
import { createTheme as createTheme$2, AccordionDetails as AccordionDetails$1, accordionSummaryClasses, AccordionSummary, SvgIcon, accordionClasses, accordionDetailsClasses, Accordion as Accordion$1, Alert as Alert$2, Button as Button$1, buttonClasses, IconButton, outlinedInputClasses, inputBaseClasses, buttonBaseClasses, inputAdornmentClasses, TextField, InputAdornment, menuItemClasses, MenuItem as MenuItem$1, autocompleteClasses, Autocomplete as Autocomplete$1, Paper, useTheme as useTheme$4, Popper, styled as styled$3, ClickAwayListener, alertClasses, alertTitleClasses, AlertTitle, Grow, Tooltip as Tooltip$1, Chip as Chip$1, darken as darken$2, Card, CardContent, CardActions, css as css$3, CardMedia, DialogTitle as DialogTitle$1, Typography, dialogActionsClasses, DialogActions as DialogActions$1, Dialog as Dialog$1, DialogContent, checkboxClasses, Checkbox, FormControlLabel, radioClasses, Radio, Slider, sliderClasses, Switch, switchClasses, Link as Link$1, List as List$1, ListItem as ListItem$1, ListSubheader as ListSubheader$1, menuClasses, Menu as Menu$1, Divider, useMediaQuery, AppBar, Toolbar, Drawer, useScrollTrigger, tabsClasses, Tabs as Tabs$1, Tab as Tab$1, Slide, Box as Box$1, drawerClasses, toggleButtonClasses, ToggleButtonGroup, ToggleButton, TableContainer, TableCell, Table as Table$1, TableBody, TableRow as TableRow$1 } from '@mui/material';
|
|
6
|
+
import { createTheme as createTheme$2, AccordionDetails as AccordionDetails$1, accordionSummaryClasses, AccordionSummary, SvgIcon, accordionClasses, accordionDetailsClasses, Accordion as Accordion$1, Alert as Alert$2, Button as Button$1, buttonClasses, IconButton, outlinedInputClasses, inputBaseClasses, buttonBaseClasses, inputAdornmentClasses, TextField, InputAdornment, menuItemClasses, MenuItem as MenuItem$1, autocompleteClasses, Autocomplete as Autocomplete$1, Paper, useTheme as useTheme$4, Popper, styled as styled$3, ClickAwayListener, alertClasses, alertTitleClasses, AlertTitle, Grow, Tooltip as Tooltip$1, Chip as Chip$1, alpha as alpha$1, darken as darken$2, Card, CardContent, CardActions, css as css$3, CardMedia, DialogTitle as DialogTitle$1, Typography, dialogActionsClasses, DialogActions as DialogActions$1, Dialog as Dialog$1, DialogContent, checkboxClasses, Checkbox, FormControlLabel, radioClasses, Radio, Slider, sliderClasses, Switch, switchClasses, Link as Link$1, List as List$1, ListItem as ListItem$1, ListSubheader as ListSubheader$1, menuClasses, Menu as Menu$1, Divider, useMediaQuery, AppBar, Toolbar, Drawer, useScrollTrigger, tabsClasses, Tabs as Tabs$1, Tab as Tab$1, Slide, Box as Box$1, drawerClasses, toggleButtonClasses, ToggleButtonGroup, ToggleButton, TableContainer, TableCell, Table as Table$1, TableBody, TableRow as TableRow$1 } from '@mui/material';
|
|
7
7
|
export { CardMedia as ContentCardMedia } from '@mui/material';
|
|
8
8
|
import styled$2 from '@emotion/styled';
|
|
9
9
|
import { Remove, Clear } from '@mui/icons-material';
|
|
@@ -503,7 +503,7 @@ const Spaces = {
|
|
|
503
503
|
xs: 6,
|
|
504
504
|
s: 8,
|
|
505
505
|
m: 12,
|
|
506
|
-
default:
|
|
506
|
+
default: 8,
|
|
507
507
|
l: 16,
|
|
508
508
|
xl: 24,
|
|
509
509
|
xxl: 32,
|
|
@@ -788,7 +788,7 @@ const SDSPaletteLight = (appTheme) => {
|
|
|
788
788
|
backgroundPrimaryDark: appTheme.colors.gray[900],
|
|
789
789
|
backgroundPrimaryInverse: appTheme.colors.gray[900],
|
|
790
790
|
backgroundSecondary: addOpacityToHex(appTheme.colors.gray[100], 40),
|
|
791
|
-
|
|
791
|
+
backgroundSecondaryDark: addOpacityToHex(appTheme.colors.gray[700], 62),
|
|
792
792
|
backgroundSecondaryInverse: appTheme.colors.gray[700],
|
|
793
793
|
backgroundTertiary: appTheme.colors.gray[100],
|
|
794
794
|
borderOnFill: appTheme.colors.gray[50],
|
|
@@ -796,27 +796,23 @@ const SDSPaletteLight = (appTheme) => {
|
|
|
796
796
|
borderPrimaryDisabled: appTheme.colors.gray[300],
|
|
797
797
|
borderPrimaryDisabledOnDark: appTheme.colors.gray[600],
|
|
798
798
|
borderPrimaryDisabledInverse: appTheme.colors.gray[600],
|
|
799
|
-
|
|
800
|
-
|
|
799
|
+
borderPrimaryInteraction: appTheme.colors.gray[900],
|
|
800
|
+
borderPrimaryInteractionOnDark: appTheme.colors.gray[50],
|
|
801
801
|
borderPrimaryHoverInverse: appTheme.colors.gray[50],
|
|
802
802
|
borderPrimaryOnDark: appTheme.colors.gray[300],
|
|
803
803
|
borderPrimaryInverse: appTheme.colors.gray[300],
|
|
804
|
-
borderPrimaryPressed: appTheme.colors.gray[900],
|
|
805
|
-
borderPrimaryPressedOnDark: appTheme.colors.gray[50],
|
|
806
804
|
borderPrimaryPressedInverse: appTheme.colors.gray[50],
|
|
807
805
|
borderSecondary: appTheme.colors.gray[300],
|
|
808
806
|
divider: appTheme.colors.gray[200],
|
|
809
807
|
dividerOnDark: appTheme.colors.gray[700],
|
|
810
808
|
dividerInverse: appTheme.colors.gray[700],
|
|
811
|
-
fillDisabled: appTheme.colors.gray[
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
fillHoverInverse: addOpacityToHex(appTheme.colors.gray[300],
|
|
815
|
-
fillOpen: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
816
|
-
fillOpenOnDark: addOpacityToHex(appTheme.colors.gray[300], 34),
|
|
809
|
+
fillDisabled: appTheme.colors.gray[100],
|
|
810
|
+
fillInteraction: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
811
|
+
fillInteractionOnDark: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
812
|
+
fillHoverInverse: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
817
813
|
fillOpenInverse: addOpacityToHex(appTheme.colors.gray[300], 34),
|
|
818
|
-
fillPressed: addOpacityToHex(appTheme.colors.gray[300],
|
|
819
|
-
fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300],
|
|
814
|
+
fillPressed: addOpacityToHex(appTheme.colors.gray[300], 30),
|
|
815
|
+
fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300], 24),
|
|
820
816
|
fillPressedInverse: addOpacityToHex(appTheme.colors.gray[300], 34),
|
|
821
817
|
fillPrimary: appTheme.colors.gray[50],
|
|
822
818
|
fillSelected: appTheme.colors.gray[900],
|
|
@@ -828,16 +824,15 @@ const SDSPaletteLight = (appTheme) => {
|
|
|
828
824
|
ornamentPrimaryOnDark: appTheme.colors.gray[50],
|
|
829
825
|
ornamentPrimaryInverse: appTheme.colors.gray[50],
|
|
830
826
|
ornamentSecondary: appTheme.colors.gray[600],
|
|
831
|
-
|
|
832
|
-
|
|
827
|
+
ornamentSecondaryInteraction: appTheme.colors.gray[900],
|
|
828
|
+
ornamentSecondaryInteractionOnDark: appTheme.colors.gray[50],
|
|
833
829
|
ornamentSecondaryHoverInverse: appTheme.colors.gray[50],
|
|
834
830
|
ornamentSecondaryOnDark: appTheme.colors.gray[300],
|
|
835
831
|
ornamentSecondaryInverse: appTheme.colors.gray[300],
|
|
836
|
-
ornamentSecondaryPressed: appTheme.colors.gray[900],
|
|
837
|
-
ornamentSecondaryPressedOnDark: appTheme.colors.gray[50],
|
|
838
832
|
ornamentSecondaryPressedInverse: appTheme.colors.gray[50],
|
|
839
|
-
|
|
840
|
-
|
|
833
|
+
surfacePrimary: appTheme.colors.gray[50],
|
|
834
|
+
surfaceSecondary: addOpacityToHex(appTheme.colors.gray[300], 20),
|
|
835
|
+
surfacePrimaryDark: appTheme.colors.gray[900],
|
|
841
836
|
surfaceInverse: appTheme.colors.gray[900],
|
|
842
837
|
textDisabled: appTheme.colors.gray[300],
|
|
843
838
|
textDisabledOnDark: appTheme.colors.gray[600],
|
|
@@ -950,7 +945,7 @@ const SDSPaletteDark = (appTheme) => {
|
|
|
950
945
|
backgroundPrimaryDark: appTheme.colors.gray[75],
|
|
951
946
|
backgroundPrimaryInverse: appTheme.colors.gray[75],
|
|
952
947
|
backgroundSecondary: addOpacityToHex(appTheme.colors.gray[100], 60),
|
|
953
|
-
|
|
948
|
+
backgroundSecondaryDark: addOpacityToHex(appTheme.colors.gray[100], 60),
|
|
954
949
|
backgroundSecondaryInverse: addOpacityToHex(appTheme.colors.gray[100], 60),
|
|
955
950
|
backgroundTertiary: appTheme.colors.gray[100],
|
|
956
951
|
borderOnFill: appTheme.colors.gray[900],
|
|
@@ -958,27 +953,23 @@ const SDSPaletteDark = (appTheme) => {
|
|
|
958
953
|
borderPrimaryDisabled: appTheme.colors.gray[300],
|
|
959
954
|
borderPrimaryDisabledOnDark: appTheme.colors.gray[300],
|
|
960
955
|
borderPrimaryDisabledInverse: appTheme.colors.gray[300],
|
|
961
|
-
|
|
962
|
-
|
|
956
|
+
borderPrimaryInteraction: appTheme.colors.gray[900],
|
|
957
|
+
borderPrimaryInteractionOnDark: appTheme.colors.gray[900],
|
|
963
958
|
borderPrimaryHoverInverse: appTheme.colors.gray[900],
|
|
964
959
|
borderPrimaryOnDark: appTheme.colors.gray[600],
|
|
965
960
|
borderPrimaryInverse: appTheme.colors.gray[600],
|
|
966
|
-
borderPrimaryPressed: appTheme.colors.gray[900],
|
|
967
|
-
borderPrimaryPressedOnDark: appTheme.colors.gray[900],
|
|
968
961
|
borderPrimaryPressedInverse: appTheme.colors.gray[900],
|
|
969
962
|
borderSecondary: appTheme.colors.gray[300],
|
|
970
963
|
divider: appTheme.colors.gray[200],
|
|
971
964
|
dividerOnDark: appTheme.colors.gray[200],
|
|
972
965
|
dividerInverse: appTheme.colors.gray[200],
|
|
973
|
-
fillDisabled: appTheme.colors.gray[
|
|
974
|
-
|
|
975
|
-
|
|
966
|
+
fillDisabled: appTheme.colors.gray[100],
|
|
967
|
+
fillInteraction: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
968
|
+
fillInteractionOnDark: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
976
969
|
fillHoverInverse: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
977
|
-
fillOpen: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
978
|
-
fillOpenOnDark: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
979
970
|
fillOpenInverse: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
980
|
-
fillPressed: addOpacityToHex(appTheme.colors.gray[300],
|
|
981
|
-
fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300],
|
|
971
|
+
fillPressed: addOpacityToHex(appTheme.colors.gray[300], 40),
|
|
972
|
+
fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300], 40),
|
|
982
973
|
fillPressedInverse: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
983
974
|
fillPrimary: appTheme.colors.gray[100],
|
|
984
975
|
fillSelected: appTheme.colors.gray[900],
|
|
@@ -990,16 +981,15 @@ const SDSPaletteDark = (appTheme) => {
|
|
|
990
981
|
ornamentPrimaryOnDark: appTheme.colors.gray[900],
|
|
991
982
|
ornamentPrimaryInverse: appTheme.colors.gray[50],
|
|
992
983
|
ornamentSecondary: appTheme.colors.gray[600],
|
|
993
|
-
|
|
994
|
-
|
|
984
|
+
ornamentSecondaryInteraction: appTheme.colors.gray[900],
|
|
985
|
+
ornamentSecondaryInteractionOnDark: appTheme.colors.gray[900],
|
|
995
986
|
ornamentSecondaryHoverInverse: appTheme.colors.gray[900],
|
|
996
987
|
ornamentSecondaryOnDark: appTheme.colors.gray[600],
|
|
997
988
|
ornamentSecondaryInverse: appTheme.colors.gray[600],
|
|
998
|
-
ornamentSecondaryPressed: appTheme.colors.gray[900],
|
|
999
|
-
ornamentSecondaryPressedOnDark: appTheme.colors.gray[900],
|
|
1000
989
|
ornamentSecondaryPressedInverse: appTheme.colors.gray[900],
|
|
1001
|
-
|
|
1002
|
-
|
|
990
|
+
surfacePrimary: appTheme.colors.gray[100],
|
|
991
|
+
surfaceSecondary: addOpacityToHex(appTheme.colors.gray[300], 32),
|
|
992
|
+
surfacePrimaryDark: appTheme.colors.gray[100],
|
|
1003
993
|
surfaceInverse: appTheme.colors.gray[100],
|
|
1004
994
|
textDisabled: appTheme.colors.gray[300],
|
|
1005
995
|
textDisabledOnDark: appTheme.colors.gray[300],
|
|
@@ -1381,7 +1371,7 @@ function focusVisibleA11yStyle(props) {
|
|
|
1381
1371
|
const semanticColors = getSemanticColors(props);
|
|
1382
1372
|
return `
|
|
1383
1373
|
&.Mui-focusVisible, &:focus-visible {
|
|
1384
|
-
outline: 2px solid ${semanticColors?.base?.
|
|
1374
|
+
outline: 2px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
1385
1375
|
outline-offset: 1px;
|
|
1386
1376
|
}
|
|
1387
1377
|
`;
|
|
@@ -1590,7 +1580,7 @@ const StyledAccordionHeader = styled$2(AccordionSummary, {
|
|
|
1590
1580
|
&:hover {
|
|
1591
1581
|
& .${accordionSummaryClasses.expandIconWrapper} {
|
|
1592
1582
|
svg {
|
|
1593
|
-
color: ${semanticColors?.base?.
|
|
1583
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
1594
1584
|
}
|
|
1595
1585
|
}
|
|
1596
1586
|
}
|
|
@@ -5091,12 +5081,12 @@ const Minimal = (props) => {
|
|
|
5091
5081
|
}
|
|
5092
5082
|
|
|
5093
5083
|
&:hover {
|
|
5094
|
-
background-color: ${semanticColors?.base?.
|
|
5084
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
5095
5085
|
}
|
|
5096
5086
|
|
|
5097
5087
|
&:active {
|
|
5098
5088
|
color: ${semanticColors?.accent?.textActionPressed};
|
|
5099
|
-
background-color: ${semanticColors?.base?.
|
|
5089
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
5100
5090
|
|
|
5101
5091
|
svg {
|
|
5102
5092
|
color: ${semanticColors?.accent?.ornamentPressed};
|
|
@@ -5203,7 +5193,7 @@ const primary$2 = (props) => {
|
|
|
5203
5193
|
}
|
|
5204
5194
|
|
|
5205
5195
|
&:hover {
|
|
5206
|
-
background: ${semanticColors?.base?.
|
|
5196
|
+
background: ${semanticColors?.base?.fillInteraction};
|
|
5207
5197
|
color: ${semanticColors?.accent?.ornamentHover};
|
|
5208
5198
|
|
|
5209
5199
|
svg {
|
|
@@ -5231,7 +5221,7 @@ const secondary$2 = (props) => {
|
|
|
5231
5221
|
}
|
|
5232
5222
|
|
|
5233
5223
|
&:hover {
|
|
5234
|
-
background: ${semanticColors?.base?.
|
|
5224
|
+
background: ${semanticColors?.base?.fillInteraction};
|
|
5235
5225
|
color: ${semanticColors?.accent?.ornamentHover};
|
|
5236
5226
|
|
|
5237
5227
|
svg {
|
|
@@ -5260,19 +5250,19 @@ const tertiary = (props) => {
|
|
|
5260
5250
|
|
|
5261
5251
|
&:hover {
|
|
5262
5252
|
background: none;
|
|
5263
|
-
color: ${semanticColors?.base?.
|
|
5253
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5264
5254
|
|
|
5265
5255
|
svg {
|
|
5266
|
-
color: ${semanticColors?.base?.
|
|
5256
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5267
5257
|
}
|
|
5268
5258
|
}
|
|
5269
5259
|
|
|
5270
5260
|
&:active {
|
|
5271
5261
|
background: none;
|
|
5272
|
-
color: ${semanticColors?.base?.
|
|
5262
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5273
5263
|
|
|
5274
5264
|
svg {
|
|
5275
|
-
color: ${semanticColors?.base?.
|
|
5265
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5276
5266
|
}
|
|
5277
5267
|
}
|
|
5278
5268
|
`;
|
|
@@ -5492,7 +5482,7 @@ const applyIntentColor$2 = (props, intent) => {
|
|
|
5492
5482
|
.${inputAdornmentClasses.root} .${buttonBaseClasses.root}:last-of-type {
|
|
5493
5483
|
cursor: default;
|
|
5494
5484
|
svg {
|
|
5495
|
-
color: ${semanticColors?.base?.
|
|
5485
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5496
5486
|
}
|
|
5497
5487
|
}
|
|
5498
5488
|
}
|
|
@@ -5558,9 +5548,6 @@ const StyledSearchBase = styled$2(TextField, {
|
|
|
5558
5548
|
const semanticColors = getSemanticColors(props);
|
|
5559
5549
|
const corners = getCorners(props);
|
|
5560
5550
|
return css$1 `
|
|
5561
|
-
margin-top: ${spaces?.m}px;
|
|
5562
|
-
margin-bottom: ${spaces?.m}px;
|
|
5563
|
-
margin-right: ${spaces?.xl}px;
|
|
5564
5551
|
min-width: 120px;
|
|
5565
5552
|
display: block;
|
|
5566
5553
|
|
|
@@ -5609,7 +5596,8 @@ const StyledSearchBase = styled$2(TextField, {
|
|
|
5609
5596
|
|
|
5610
5597
|
&:hover {
|
|
5611
5598
|
svg {
|
|
5612
|
-
color: ${semanticColors?.base
|
|
5599
|
+
color: ${semanticColors?.base
|
|
5600
|
+
?.ornamentSecondaryInteraction} !important;
|
|
5613
5601
|
}
|
|
5614
5602
|
}
|
|
5615
5603
|
|
|
@@ -5629,7 +5617,7 @@ const StyledSearchBase = styled$2(TextField, {
|
|
|
5629
5617
|
}
|
|
5630
5618
|
|
|
5631
5619
|
.${outlinedInputClasses.root}:hover {
|
|
5632
|
-
background-color: ${semanticColors?.base?.
|
|
5620
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
5633
5621
|
|
|
5634
5622
|
& .${buttonBaseClasses.root}:last-of-type {
|
|
5635
5623
|
svg {
|
|
@@ -5637,7 +5625,7 @@ const StyledSearchBase = styled$2(TextField, {
|
|
|
5637
5625
|
}
|
|
5638
5626
|
}
|
|
5639
5627
|
.${outlinedInputClasses.notchedOutline} {
|
|
5640
|
-
border: 1px solid ${semanticColors?.base?.
|
|
5628
|
+
border: 1px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
5641
5629
|
}
|
|
5642
5630
|
}
|
|
5643
5631
|
|
|
@@ -5651,13 +5639,13 @@ const StyledSearchBase = styled$2(TextField, {
|
|
|
5651
5639
|
.${inputAdornmentClasses.root} .${buttonBaseClasses.root}:last-of-type {
|
|
5652
5640
|
cursor: default;
|
|
5653
5641
|
svg {
|
|
5654
|
-
color: ${semanticColors?.base?.
|
|
5642
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
5655
5643
|
}
|
|
5656
5644
|
}
|
|
5657
5645
|
}
|
|
5658
5646
|
|
|
5659
5647
|
&.user-is-tabbing .${outlinedInputClasses.root}:focus-within {
|
|
5660
|
-
outline: 2px solid ${semanticColors?.base?.
|
|
5648
|
+
outline: 2px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
5661
5649
|
outline-offset: 1px;
|
|
5662
5650
|
}
|
|
5663
5651
|
|
|
@@ -5696,10 +5684,10 @@ const StyledMenuItem$1 = styled$2(MenuItem$1) `
|
|
|
5696
5684
|
opacity: 1;
|
|
5697
5685
|
|
|
5698
5686
|
&:hover, &.${menuItemClasses.focusVisible} {
|
|
5699
|
-
background-color: ${semanticColors?.base?.
|
|
5687
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
5700
5688
|
|
|
5701
5689
|
&[aria-selected="true"] {
|
|
5702
|
-
background-color: ${semanticColors?.base?.
|
|
5690
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
5703
5691
|
}
|
|
5704
5692
|
}
|
|
5705
5693
|
}
|
|
@@ -5716,7 +5704,7 @@ const StyledMenuItem$1 = styled$2(MenuItem$1) `
|
|
|
5716
5704
|
background-color: unset !important;
|
|
5717
5705
|
|
|
5718
5706
|
&:hover {
|
|
5719
|
-
background-color: ${semanticColors?.base?.
|
|
5707
|
+
background-color: ${semanticColors?.base?.fillInteraction} !important;
|
|
5720
5708
|
}
|
|
5721
5709
|
|
|
5722
5710
|
${StyledIcon$1}, ${DotIcon} {
|
|
@@ -5729,16 +5717,16 @@ const StyledMenuItem$1 = styled$2(MenuItem$1) `
|
|
|
5729
5717
|
}
|
|
5730
5718
|
|
|
5731
5719
|
&:hover {
|
|
5732
|
-
background-color: ${semanticColors?.base?.
|
|
5720
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
5733
5721
|
${StyledIcon$1}, ${DotIcon} {
|
|
5734
5722
|
color: ${selected ? semanticColors?.base?.ornamentPrimary : semanticColors?.base?.ornamentSecondary};
|
|
5735
5723
|
}
|
|
5736
5724
|
}
|
|
5737
5725
|
|
|
5738
5726
|
&.Mui-selected.MuiListItem-root.MuiListItem-button {
|
|
5739
|
-
background-color: ${semanticColors?.base?.
|
|
5727
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
5740
5728
|
&:hover {
|
|
5741
|
-
background-color: ${semanticColors?.base?.
|
|
5729
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
5742
5730
|
}
|
|
5743
5731
|
}
|
|
5744
5732
|
|
|
@@ -6077,7 +6065,7 @@ const StyledAutocompleteBase = styled$2(Autocomplete$1, {
|
|
|
6077
6065
|
// look at the useDetectUserTabbing hook.
|
|
6078
6066
|
&[data-user-is-tabbing="true"]:focus-within {
|
|
6079
6067
|
border-radius: 4px;
|
|
6080
|
-
outline: 2px solid ${semanticColors?.base?.
|
|
6068
|
+
outline: 2px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
6081
6069
|
outline-offset: 1px;
|
|
6082
6070
|
}
|
|
6083
6071
|
|
|
@@ -6102,11 +6090,11 @@ const StyledAutocompleteBase = styled$2(Autocomplete$1, {
|
|
|
6102
6090
|
min-height: unset;
|
|
6103
6091
|
|
|
6104
6092
|
&.${autocompleteClasses.focused} {
|
|
6105
|
-
background-color: ${semanticColors?.base?.
|
|
6093
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
6106
6094
|
}
|
|
6107
6095
|
|
|
6108
6096
|
&[aria-selected="true"] {
|
|
6109
|
-
background-color: ${semanticColors?.base?.
|
|
6097
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6110
6098
|
}
|
|
6111
6099
|
|
|
6112
6100
|
&[aria-disabled="true"] {
|
|
@@ -6114,7 +6102,7 @@ const StyledAutocompleteBase = styled$2(Autocomplete$1, {
|
|
|
6114
6102
|
}
|
|
6115
6103
|
|
|
6116
6104
|
&[aria-selected="true"].${autocompleteClasses.focused} {
|
|
6117
|
-
background-color: ${semanticColors?.base?.
|
|
6105
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
6118
6106
|
}
|
|
6119
6107
|
}
|
|
6120
6108
|
|
|
@@ -6128,7 +6116,7 @@ const StyledAutocompleteBase = styled$2(Autocomplete$1, {
|
|
|
6128
6116
|
.${autocompleteClasses.groupLabel} {
|
|
6129
6117
|
top: 0;
|
|
6130
6118
|
color: ${semanticColors?.base?.textSecondary};
|
|
6131
|
-
background-color: ${semanticColors?.base?.
|
|
6119
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6132
6120
|
padding: 0 ${spaces?.m}px;
|
|
6133
6121
|
}
|
|
6134
6122
|
|
|
@@ -6196,7 +6184,7 @@ const StyledPaper$3 = styled$2(Paper) `
|
|
|
6196
6184
|
return `
|
|
6197
6185
|
background-image: none;
|
|
6198
6186
|
padding: ${spaces?.xs}px 0;
|
|
6199
|
-
background-color: ${semanticColors?.base?.
|
|
6187
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6200
6188
|
border: ${borders?.none};
|
|
6201
6189
|
outline: 1px solid ${addOpacityToHex(semanticColors?.base?.borderSecondary || "#000", 15)};
|
|
6202
6190
|
border-radius: ${corners?.l}px;
|
|
@@ -6208,9 +6196,10 @@ const StyledPaper$3 = styled$2(Paper) `
|
|
|
6208
6196
|
const StyledMenuItemDetails = styled$2("div") `
|
|
6209
6197
|
${fontBodyXxs$1}
|
|
6210
6198
|
${(props) => {
|
|
6199
|
+
const { disabled } = props;
|
|
6211
6200
|
const semanticColors = getSemanticColors(props);
|
|
6212
6201
|
return `
|
|
6213
|
-
color: ${semanticColors?.base?.textSecondary};
|
|
6202
|
+
color: ${disabled ? semanticColors?.base?.textDisabled : semanticColors?.base?.textSecondary};
|
|
6214
6203
|
white-space: pre-wrap;
|
|
6215
6204
|
`;
|
|
6216
6205
|
}}
|
|
@@ -6375,15 +6364,15 @@ const AutocompleteBase = (props) => {
|
|
|
6375
6364
|
}
|
|
6376
6365
|
function defaultRenderOption(optionProps, option, { selected }) {
|
|
6377
6366
|
let MenuItemContent;
|
|
6378
|
-
const { component, details, count, icon, sdsIconProps, ...restOptionProps } = option;
|
|
6367
|
+
const { component, details, count, icon, sdsIconProps, disabled: optionDisabled, ...restOptionProps } = option;
|
|
6379
6368
|
const menuItemLabel = getOptionLabel(option);
|
|
6380
6369
|
if (component) {
|
|
6381
6370
|
MenuItemContent = component;
|
|
6382
6371
|
}
|
|
6383
6372
|
else {
|
|
6384
|
-
MenuItemContent = (jsxs(StyledMenuItemText, { children: [menuItemLabel, details && (jsx(StyledMenuItemDetails, { className: "menuItem-details", children: details }))] }));
|
|
6373
|
+
MenuItemContent = (jsxs(StyledMenuItemText, { children: [menuItemLabel, details && (jsx(StyledMenuItemDetails, { disabled: optionDisabled, className: "menuItem-details", children: details }))] }));
|
|
6385
6374
|
}
|
|
6386
|
-
return (createElement(MenuItem, __assign({ column: count, disabled: optionProps["aria-disabled"] === true, icon: icon, sdsIconProps: sdsIconProps, isMultiSelect: multiple, selected: selected }, optionProps, restOptionProps, { key: option.name }), MenuItemContent));
|
|
6375
|
+
return (createElement(MenuItem, __assign({ column: count, disabled: optionDisabled || optionProps["aria-disabled"] === true, icon: icon, sdsIconProps: sdsIconProps, isMultiSelect: multiple, selected: selected }, optionProps, restOptionProps, { key: option.name }), MenuItemContent));
|
|
6387
6376
|
}
|
|
6388
6377
|
};
|
|
6389
6378
|
|
|
@@ -6467,7 +6456,7 @@ const StyledPopper$2 = styled$2(Popper, {
|
|
|
6467
6456
|
const borders = getBorders(props);
|
|
6468
6457
|
const semanticColors = getSemanticColors(props);
|
|
6469
6458
|
return `
|
|
6470
|
-
background-color: ${semanticColors?.base?.
|
|
6459
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6471
6460
|
background-image: none;
|
|
6472
6461
|
border: ${borders?.none};
|
|
6473
6462
|
border-radius: ${corners?.l}px;
|
|
@@ -6494,7 +6483,7 @@ const StyledPaper$2 = styled$2(Paper, {
|
|
|
6494
6483
|
const shadows = getShadows(props);
|
|
6495
6484
|
const semanticColors = getSemanticColors(props);
|
|
6496
6485
|
return `
|
|
6497
|
-
background-color: ${semanticColors?.base?.
|
|
6486
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6498
6487
|
background-image: none;
|
|
6499
6488
|
box-shadow: ${shadows?.none};
|
|
6500
6489
|
margin: 0;
|
|
@@ -6538,7 +6527,7 @@ const StyledColumnIcon = styled$3("span") `
|
|
|
6538
6527
|
const iconSizes = getIconSizes(props);
|
|
6539
6528
|
const semanticColors = getSemanticColors(props);
|
|
6540
6529
|
return `
|
|
6541
|
-
background-color: ${semanticColors?.base?.
|
|
6530
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
6542
6531
|
position: absolute;
|
|
6543
6532
|
right: -${spaces?.xs}px;
|
|
6544
6533
|
top: -${spaces?.xxxs}px;
|
|
@@ -6928,7 +6917,7 @@ const StyledButtonToggle = styled$2(ButtonIcon, {
|
|
|
6928
6917
|
const { sdsStage } = props;
|
|
6929
6918
|
const semanticColors = getSemanticColors(props);
|
|
6930
6919
|
return `
|
|
6931
|
-
background-color: ${sdsStage === "on" ? semanticColors?.base?.
|
|
6920
|
+
background-color: ${sdsStage === "on" ? semanticColors?.base?.fillInteraction : "transparent"};
|
|
6932
6921
|
`;
|
|
6933
6922
|
}}
|
|
6934
6923
|
`;
|
|
@@ -7115,7 +7104,7 @@ const dark$1 = (props) => {
|
|
|
7115
7104
|
const semanticColors = getSemanticColors(props);
|
|
7116
7105
|
return css$2 `
|
|
7117
7106
|
${fontHeaderXs(props)}
|
|
7118
|
-
background-color: ${semanticColors?.base?.
|
|
7107
|
+
background-color: ${semanticColors?.base?.surfacePrimaryDark};
|
|
7119
7108
|
color: ${semanticColors?.base?.textPrimaryOnDark};
|
|
7120
7109
|
padding: ${spaces?.s}px ${spaces?.m}px;
|
|
7121
7110
|
`;
|
|
@@ -7125,7 +7114,7 @@ const light$1 = (props) => {
|
|
|
7125
7114
|
const semanticColors = getSemanticColors(props);
|
|
7126
7115
|
return css$2 `
|
|
7127
7116
|
${fontBodyXs$2(props)}
|
|
7128
|
-
background-color: ${semanticColors?.base?.
|
|
7117
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
7129
7118
|
color: ${semanticColors?.base?.textPrimary};
|
|
7130
7119
|
padding: ${spaces?.s}px ${spaces?.m}px;
|
|
7131
7120
|
`;
|
|
@@ -7200,8 +7189,8 @@ const arrowCss = (props) => {
|
|
|
7200
7189
|
/* (bethbertozzi): !important is needed to fight inline style */
|
|
7201
7190
|
left: ${arrowOffset}px !important;
|
|
7202
7191
|
color: ${hasInvertedStyle || inverted || sdsStyle === "dark"
|
|
7203
|
-
? semanticColors?.base?.
|
|
7204
|
-
: semanticColors?.base?.
|
|
7192
|
+
? semanticColors?.base?.surfacePrimaryDark
|
|
7193
|
+
: semanticColors?.base?.surfacePrimary};
|
|
7205
7194
|
&:before {
|
|
7206
7195
|
box-sizing: border-box;
|
|
7207
7196
|
width: 12px;
|
|
@@ -7624,7 +7613,7 @@ const StyledTableHeader$1 = styled$2("th", {
|
|
|
7624
7613
|
}
|
|
7625
7614
|
|
|
7626
7615
|
& svg {
|
|
7627
|
-
color: ${active ? semanticColors?.accent?.ornamentHover : semanticColors?.base?.
|
|
7616
|
+
color: ${active ? semanticColors?.accent?.ornamentHover : semanticColors?.base?.ornamentSecondaryInteraction};
|
|
7628
7617
|
}
|
|
7629
7618
|
}
|
|
7630
7619
|
`;
|
|
@@ -7860,6 +7849,21 @@ const StyledHeaderTitle = styled$2("div", {
|
|
|
7860
7849
|
`;
|
|
7861
7850
|
}}
|
|
7862
7851
|
`;
|
|
7852
|
+
const StyledHeaderSubTitle = styled$2("div", {
|
|
7853
|
+
shouldForwardProp: (prop) => !doNotForwardProps$v.includes(prop)
|
|
7854
|
+
}) `
|
|
7855
|
+
${fontBodyXxs$1}
|
|
7856
|
+
|
|
7857
|
+
${(props) => {
|
|
7858
|
+
const spaces = getSpaces(props);
|
|
7859
|
+
const semanticColors = getSemanticColors(props);
|
|
7860
|
+
return `
|
|
7861
|
+
color: ${semanticColors?.base?.textSecondary};
|
|
7862
|
+
padding-right: ${spaces?.m}px;
|
|
7863
|
+
padding-top: ${spaces?.xxxs}px;
|
|
7864
|
+
`;
|
|
7865
|
+
}}
|
|
7866
|
+
`;
|
|
7863
7867
|
const StyledDropdownMenuAutocompleteWrapper = styled$2("div", {
|
|
7864
7868
|
shouldForwardProp: (prop) => !doNotForwardProps$v.includes(prop)
|
|
7865
7869
|
}) `
|
|
@@ -7906,7 +7910,7 @@ const StyledPopper = styled$2(Popper, {
|
|
|
7906
7910
|
const shadows = getShadows(props);
|
|
7907
7911
|
const semanticColors = getSemanticColors(props);
|
|
7908
7912
|
return `
|
|
7909
|
-
background-color: ${semanticColors?.base?.
|
|
7913
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
7910
7914
|
background-image: none;
|
|
7911
7915
|
border: ${borders?.none};
|
|
7912
7916
|
border-radius: ${corners?.l}px;
|
|
@@ -7929,7 +7933,7 @@ const StyledPaper$1 = styled$2(Paper, {
|
|
|
7929
7933
|
border: none !important;
|
|
7930
7934
|
outline: 1px solid ${addOpacityToHex(semanticColors?.base?.borderSecondary || "#000000", 15)};
|
|
7931
7935
|
border-radius: ${corners?.l}px;
|
|
7932
|
-
background-color: ${semanticColors?.base?.
|
|
7936
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
7933
7937
|
background-image: none;
|
|
7934
7938
|
margin: 0;
|
|
7935
7939
|
padding: 0 0 ${spaces?.xs}px 0;
|
|
@@ -7968,9 +7972,15 @@ const StyledDropdownMenuHeader = styled$2("div") `
|
|
|
7968
7972
|
const spaces = getSpaces(props);
|
|
7969
7973
|
const semanticColors = getSemanticColors(props);
|
|
7970
7974
|
return `
|
|
7975
|
+
& > div {
|
|
7976
|
+
display: flex;
|
|
7977
|
+
flex-direction: row;
|
|
7978
|
+
align-items: center;
|
|
7979
|
+
justify-content: space-between;
|
|
7980
|
+
}
|
|
7981
|
+
|
|
7971
7982
|
display: flex;
|
|
7972
|
-
|
|
7973
|
-
justify-content: space-between;
|
|
7983
|
+
flex-direction: column;
|
|
7974
7984
|
padding: ${spaces?.xs}px ${spaces?.m}px ${search ? spaces?.xs : spaces?.s}px;
|
|
7975
7985
|
${search && `border-bottom: solid 1px ${semanticColors?.base?.divider};`}
|
|
7976
7986
|
`;
|
|
@@ -7985,7 +7995,7 @@ const DEFAULT_POPPER_BASE_PROPS = {
|
|
|
7985
7995
|
};
|
|
7986
7996
|
const DropdownMenu = (props) => {
|
|
7987
7997
|
const theme = useTheme$4();
|
|
7988
|
-
const { anchorEl, id, InputBaseProps, open = false, PopperComponent = StyledPopper, PaperComponent = StyledPaper$1, PopperPlacement = "bottom-start", PopperBaseProps = {}, isSearchAutoFocus = true, search = false, title, headerComponentSlot, label = "Search", children, options, onClickAway = noop, ClickAwayListenerProps, width = MINIMUM_DROPDOWN_MENU_POPPER_WIDTH, onOpen, onClose, ...rest } = props;
|
|
7998
|
+
const { anchorEl, id, InputBaseProps, open = false, PopperComponent = StyledPopper, PaperComponent = StyledPaper$1, PopperPlacement = "bottom-start", PopperBaseProps = {}, isSearchAutoFocus = true, search = false, title, subTitle, headerComponentSlot, label = "Search", children, options, onClickAway = noop, ClickAwayListenerProps, width = MINIMUM_DROPDOWN_MENU_POPPER_WIDTH, onOpen, onClose, ...rest } = props;
|
|
7989
7999
|
const isMultiColumn = "options" in (options?.[0] || EMPTY_OBJECT);
|
|
7990
8000
|
// (masoudmanson): The DropdownMenu's Popper component should have a minimum
|
|
7991
8001
|
// width of MINIMUM_DROPDOWN_MENU_POPPER_WIDTH pixels if the DropdownMenu is
|
|
@@ -8015,7 +8025,7 @@ const DropdownMenu = (props) => {
|
|
|
8015
8025
|
], open: open, anchorEl: anchorEl, placement: PopperPlacement }, PopperBaseProps, {
|
|
8016
8026
|
// (masoudmanson): To override the width of the Popper,
|
|
8017
8027
|
// the sx prop's value must be set after spreading the PopperBaseProps.
|
|
8018
|
-
sx: dropdownMenuPopperSx, children: jsx(PaperComponent, { children: jsx(ClickAwayListener, __assign({ onClickAway: onClickAway }, ClickAwayListenerProps, { children: jsxs(StyledDropdownMenuAutocompleteWrapper, { search: search, titleValue: !!(title || headerComponentSlot), children: [(title || headerComponentSlot) && (jsxs(StyledDropdownMenuHeader, { search: search, children: [title && jsx(StyledHeaderTitle, { children: title }), headerComponentSlot && jsx(Fragment, { children: headerComponentSlot })] })), anchorEl && (jsx(Autocomplete, __assign({ label: label, search: search, title: title, open: open, options: options, PopperBaseProps: DEFAULT_POPPER_BASE_PROPS, disablePortal: true, onClickAway: noop, onClick: noop, onOpen: onOpen, onClose: onClose }, rest, { InputBaseProps: DefaultInputBaseProps }))), children] }) })) }) })));
|
|
8028
|
+
sx: dropdownMenuPopperSx, children: jsx(PaperComponent, { children: jsx(ClickAwayListener, __assign({ onClickAway: onClickAway }, ClickAwayListenerProps, { children: jsxs(StyledDropdownMenuAutocompleteWrapper, { search: search, titleValue: !!(title || headerComponentSlot), children: [(title || headerComponentSlot) && (jsxs(StyledDropdownMenuHeader, { search: search, children: [jsxs("div", { children: [title && jsx(StyledHeaderTitle, { children: title }), headerComponentSlot && jsx(Fragment, { children: headerComponentSlot })] }), title && subTitle && (jsx(StyledHeaderSubTitle, { children: subTitle }))] })), anchorEl && (jsx(Autocomplete, __assign({ label: label, search: search, title: title, open: open, options: options, PopperBaseProps: DEFAULT_POPPER_BASE_PROPS, disablePortal: true, onClickAway: noop, onClick: noop, onOpen: onOpen, onClose: onClose }, rest, { InputBaseProps: DefaultInputBaseProps }))), children] }) })) }) })));
|
|
8019
8029
|
};
|
|
8020
8030
|
|
|
8021
8031
|
const doNotForwardProps$u = [
|
|
@@ -8073,12 +8083,13 @@ const inputDropdownStyles = (props) => {
|
|
|
8073
8083
|
}
|
|
8074
8084
|
|
|
8075
8085
|
&:hover {
|
|
8076
|
-
background-color: ${semanticColors?.base?.
|
|
8077
|
-
box-shadow: inset 0 0 0 1px
|
|
8086
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
8087
|
+
box-shadow: inset 0 0 0 1px
|
|
8088
|
+
${semanticColors?.base?.borderPrimaryInteraction};
|
|
8078
8089
|
color: ${semanticColors?.base?.textPrimary};
|
|
8079
8090
|
|
|
8080
8091
|
path {
|
|
8081
|
-
fill: ${semanticColors?.base?.
|
|
8092
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
8082
8093
|
}
|
|
8083
8094
|
|
|
8084
8095
|
.styled-label {
|
|
@@ -8092,7 +8103,7 @@ const inputDropdownStyles = (props) => {
|
|
|
8092
8103
|
color: ${semanticColors?.base?.textPrimary};
|
|
8093
8104
|
|
|
8094
8105
|
path {
|
|
8095
|
-
fill: ${semanticColors?.base?.
|
|
8106
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
8096
8107
|
}
|
|
8097
8108
|
}
|
|
8098
8109
|
|
|
@@ -8144,12 +8155,12 @@ const minimal$1 = (props) => {
|
|
|
8144
8155
|
}
|
|
8145
8156
|
|
|
8146
8157
|
&:hover {
|
|
8147
|
-
background-color: ${semanticColors?.base?.
|
|
8158
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
8148
8159
|
border: none;
|
|
8149
8160
|
color: ${semanticColors?.base?.textPrimary};
|
|
8150
8161
|
|
|
8151
8162
|
path {
|
|
8152
|
-
fill: ${semanticColors?.base?.
|
|
8163
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
8153
8164
|
}
|
|
8154
8165
|
|
|
8155
8166
|
.styled-label {
|
|
@@ -8158,7 +8169,7 @@ const minimal$1 = (props) => {
|
|
|
8158
8169
|
}
|
|
8159
8170
|
|
|
8160
8171
|
&:active {
|
|
8161
|
-
background-color: ${semanticColors?.base?.
|
|
8172
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
8162
8173
|
border: none;
|
|
8163
8174
|
}
|
|
8164
8175
|
`;
|
|
@@ -8228,7 +8239,7 @@ const isOpen = (props) => {
|
|
|
8228
8239
|
: ""}
|
|
8229
8240
|
|
|
8230
8241
|
path {
|
|
8231
|
-
fill: ${semanticColors?.base?.
|
|
8242
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
8232
8243
|
}
|
|
8233
8244
|
|
|
8234
8245
|
box-shadow: ${sdsStyle === "minimal"
|
|
@@ -8236,15 +8247,15 @@ const isOpen = (props) => {
|
|
|
8236
8247
|
: `inset 0 0 0 1px ${semanticColors?.[inputColor]?.border}`};
|
|
8237
8248
|
|
|
8238
8249
|
background-color: ${sdsStyle === "minimal"
|
|
8239
|
-
? semanticColors?.base?.
|
|
8250
|
+
? semanticColors?.base?.fillInteraction
|
|
8240
8251
|
: "transparent"};
|
|
8241
8252
|
|
|
8242
8253
|
&:hover {
|
|
8243
8254
|
path {
|
|
8244
|
-
fill: ${semanticColors?.base?.
|
|
8255
|
+
fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
8245
8256
|
}
|
|
8246
8257
|
|
|
8247
|
-
border-color: ${semanticColors?.base?.
|
|
8258
|
+
border-color: ${semanticColors?.base?.borderPrimaryInteraction};
|
|
8248
8259
|
}
|
|
8249
8260
|
`;
|
|
8250
8261
|
};
|
|
@@ -8254,11 +8265,13 @@ const applyIntentColor$1 = (props, intent) => {
|
|
|
8254
8265
|
box-shadow: inset 0 0 0 1px ${semanticColors?.[intent]?.border};
|
|
8255
8266
|
|
|
8256
8267
|
&:hover {
|
|
8257
|
-
box-shadow: inset 0 0 0 1px
|
|
8268
|
+
box-shadow: inset 0 0 0 1px
|
|
8269
|
+
${semanticColors?.base?.borderPrimaryInteraction};
|
|
8258
8270
|
}
|
|
8259
8271
|
|
|
8260
8272
|
&:active {
|
|
8261
|
-
box-shadow: inset 0 0 0 1px
|
|
8273
|
+
box-shadow: inset 0 0 0 1px
|
|
8274
|
+
${semanticColors?.base?.borderPrimaryInteraction};
|
|
8262
8275
|
}
|
|
8263
8276
|
`;
|
|
8264
8277
|
};
|
|
@@ -8822,7 +8835,6 @@ const tagSizeS = (props) => {
|
|
|
8822
8835
|
const semanticColors = getSemanticColors(props);
|
|
8823
8836
|
return css$1 `
|
|
8824
8837
|
height: unset;
|
|
8825
|
-
margin: 0 ${spaces?.xxs}px ${spaces?.xs}px 0;
|
|
8826
8838
|
|
|
8827
8839
|
.MuiChip-label {
|
|
8828
8840
|
${fontBodyXxxs$1(props)}
|
|
@@ -8832,7 +8844,7 @@ const tagSizeS = (props) => {
|
|
|
8832
8844
|
.MuiSvgIcon-root {
|
|
8833
8845
|
height: ${iconSizes?.xs.height}px;
|
|
8834
8846
|
width: ${iconSizes?.xs.width}px;
|
|
8835
|
-
margin: 0 ${spaces?.xxs}px 0
|
|
8847
|
+
margin: 0 ${spaces?.xxs}px 0 0;
|
|
8836
8848
|
}
|
|
8837
8849
|
|
|
8838
8850
|
.MuiChip-deleteIcon {
|
|
@@ -8850,7 +8862,6 @@ const tagSizeL = (props) => {
|
|
|
8850
8862
|
const semanticColors = getSemanticColors(props);
|
|
8851
8863
|
return css$1 `
|
|
8852
8864
|
height: unset;
|
|
8853
|
-
margin: 0 ${spaces?.xxs}px ${spaces?.xs}px 0;
|
|
8854
8865
|
|
|
8855
8866
|
.MuiChip-label {
|
|
8856
8867
|
${fontBodyXs$2(props)}
|
|
@@ -8860,7 +8871,7 @@ const tagSizeL = (props) => {
|
|
|
8860
8871
|
.MuiSvgIcon-root {
|
|
8861
8872
|
height: ${iconSizes?.l.height}px;
|
|
8862
8873
|
width: ${iconSizes?.l.width}px;
|
|
8863
|
-
margin: 0 ${spaces?.xxs}px 0
|
|
8874
|
+
margin: 0 ${spaces?.xxs}px 0 0px;
|
|
8864
8875
|
}
|
|
8865
8876
|
|
|
8866
8877
|
.MuiChip-deleteIcon {
|
|
@@ -8877,9 +8888,11 @@ const rounded = (props) => {
|
|
|
8877
8888
|
const spaces = getSpaces(props);
|
|
8878
8889
|
const { sdsSize = "s", icon } = props;
|
|
8879
8890
|
const topBottomPadding = sdsSize === "s" ? spaces?.xxxs : icon ? spaces?.xxs : spaces?.xs;
|
|
8891
|
+
const rightPadding = sdsSize === "l" && icon ? spaces?.s : spaces?.xs;
|
|
8880
8892
|
return css$1 `
|
|
8881
8893
|
border-radius: ${corners?.rounded}px;
|
|
8882
|
-
padding: ${topBottomPadding}px ${
|
|
8894
|
+
padding: ${topBottomPadding}px ${rightPadding}px ${topBottomPadding}px
|
|
8895
|
+
${spaces?.xs}px;
|
|
8883
8896
|
|
|
8884
8897
|
&:after {
|
|
8885
8898
|
content: "";
|
|
@@ -8894,7 +8907,7 @@ const square = (props) => {
|
|
|
8894
8907
|
const topBottomPadding = sdsSize === "s" ? spaces?.xxxs : icon ? spaces?.xxs : spaces?.xs;
|
|
8895
8908
|
return css$1 `
|
|
8896
8909
|
border-radius: ${corners?.m}px;
|
|
8897
|
-
padding: ${topBottomPadding}px ${spaces?.
|
|
8910
|
+
padding: ${topBottomPadding}px ${spaces?.xs}px;
|
|
8898
8911
|
|
|
8899
8912
|
&:after {
|
|
8900
8913
|
content: "";
|
|
@@ -8922,54 +8935,51 @@ const secondary = (props) => {
|
|
|
8922
8935
|
return createTypeCss(props, "secondary");
|
|
8923
8936
|
};
|
|
8924
8937
|
function generatePrimaryTagColors(intent, colors, semanticColors) {
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
backgroundClicked: semanticColors?.neutral.fillPressed,
|
|
8943
|
-
backgroundHover: semanticColors?.neutral.fillHover,
|
|
8944
|
-
iconColor: semanticColors?.base?.ornamentOnFill,
|
|
8945
|
-
label: semanticColors?.base?.textOnFill
|
|
8946
|
-
};
|
|
8947
|
-
}
|
|
8938
|
+
const effectiveIntent = intent || "neutral";
|
|
8939
|
+
const intentColors = semanticColors?.[effectiveIntent];
|
|
8940
|
+
const hasCustomColors = colors.length >= 2;
|
|
8941
|
+
return {
|
|
8942
|
+
background: hasCustomColors ? colors[1] : intentColors?.fillPrimary,
|
|
8943
|
+
backgroundClicked: hasCustomColors
|
|
8944
|
+
? darken$2(colors[1], 0.3)
|
|
8945
|
+
: intentColors?.fillPressed,
|
|
8946
|
+
backgroundHover: hasCustomColors
|
|
8947
|
+
? darken$2(colors[1], 0.15)
|
|
8948
|
+
: intentColors?.fillHover,
|
|
8949
|
+
iconColor: hasCustomColors
|
|
8950
|
+
? colors[2]
|
|
8951
|
+
: semanticColors?.base?.ornamentOnFill,
|
|
8952
|
+
label: colors.length > 0 ? colors[0] : semanticColors?.base?.textOnFill,
|
|
8953
|
+
borderColor: alpha$1(semanticColors?.neutral.border || "#000", 0.6)
|
|
8954
|
+
};
|
|
8948
8955
|
}
|
|
8949
|
-
function
|
|
8950
|
-
if (
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8956
|
+
function getSecondaryBorderColor(effectiveIntent, theme, intentColors) {
|
|
8957
|
+
if (!theme || !theme.palette)
|
|
8958
|
+
return alpha$1(intentColors?.border || "#000", 0.6);
|
|
8959
|
+
if (effectiveIntent === "negative" && theme.palette.mode === "dark")
|
|
8960
|
+
return alpha$1(intentColors?.border || "#000", 0.65);
|
|
8961
|
+
if (effectiveIntent === "notice" && theme.palette.mode === "light")
|
|
8962
|
+
return alpha$1(intentColors?.border || "#000", 0.85);
|
|
8963
|
+
return alpha$1(intentColors?.border || "#000", 0.6);
|
|
8964
|
+
}
|
|
8965
|
+
function generateSecondaryTagColors(intent, colors, semanticColors, theme = defaultTheme$4) {
|
|
8966
|
+
const effectiveIntent = intent || "neutral";
|
|
8967
|
+
const intentColors = semanticColors?.[effectiveIntent];
|
|
8968
|
+
const hasCustomColors = colors.length >= 2;
|
|
8969
|
+
return {
|
|
8970
|
+
background: hasCustomColors ? colors[1] : intentColors?.fillSecondary,
|
|
8971
|
+
backgroundClicked: hasCustomColors
|
|
8972
|
+
? darken$2(colors[1], 0.3)
|
|
8973
|
+
: intentColors?.fillPressed,
|
|
8974
|
+
backgroundHover: hasCustomColors
|
|
8975
|
+
? darken$2(colors[1], 0.15)
|
|
8976
|
+
: intentColors?.fillHover,
|
|
8977
|
+
iconColor: hasCustomColors ? colors[2] : intentColors?.ornament,
|
|
8978
|
+
label: colors.length > 0 ? colors[0] : intentColors?.text,
|
|
8979
|
+
borderColor: hasCustomColors
|
|
8980
|
+
? alpha$1(colors[1], 0.6)
|
|
8981
|
+
: getSecondaryBorderColor(effectiveIntent, theme, intentColors)
|
|
8982
|
+
};
|
|
8973
8983
|
}
|
|
8974
8984
|
function createTypeCss(props, type) {
|
|
8975
8985
|
const semanticColors = getSemanticColors(props);
|
|
@@ -8977,12 +8987,16 @@ function createTypeCss(props, type) {
|
|
|
8977
8987
|
const colors = Array.isArray(props.tagColor) ? [...props.tagColor] : [];
|
|
8978
8988
|
const typeToColors = {
|
|
8979
8989
|
primary: generatePrimaryTagColors(intent, colors, semanticColors),
|
|
8980
|
-
secondary: generateSecondaryTagColors(intent, colors, semanticColors)
|
|
8990
|
+
secondary: generateSecondaryTagColors(intent, colors, semanticColors, props.theme)
|
|
8981
8991
|
};
|
|
8982
8992
|
const typeColors = typeToColors[type];
|
|
8983
8993
|
return css$1 `
|
|
8984
8994
|
${focusVisibleA11yStyle(props)}
|
|
8985
8995
|
|
|
8996
|
+
${type === "secondary" &&
|
|
8997
|
+
css$1 `
|
|
8998
|
+
box-shadow: inset 0 0 0 1px ${typeColors.borderColor};
|
|
8999
|
+
`}
|
|
8986
9000
|
background-color: ${typeColors.background};
|
|
8987
9001
|
position: relative;
|
|
8988
9002
|
|
|
@@ -8996,6 +9010,7 @@ function createTypeCss(props, type) {
|
|
|
8996
9010
|
|
|
8997
9011
|
&:hover,
|
|
8998
9012
|
&:active {
|
|
9013
|
+
box-shadow: none;
|
|
8999
9014
|
.MuiChip-label {
|
|
9000
9015
|
color: ${semanticColors?.base?.textPrimaryInverse};
|
|
9001
9016
|
}
|
|
@@ -9341,30 +9356,38 @@ const doNotForwardProps$r = [
|
|
|
9341
9356
|
"cardSdsType",
|
|
9342
9357
|
"classes",
|
|
9343
9358
|
];
|
|
9344
|
-
const
|
|
9345
|
-
|
|
9346
|
-
}) `
|
|
9347
|
-
${(props) => {
|
|
9348
|
-
const { imagePosition = "left", sdsType = "wide", boundingBox = true, decorativeBorder = false, imagePadding = false, visualElementType, clickableCard = false, } = props;
|
|
9349
|
-
const semanticColors = getSemanticColors(props);
|
|
9350
|
-
const corners = getCorners(props);
|
|
9351
|
-
const shadows = getShadows(props);
|
|
9352
|
-
const flexDirection = sdsType === "wide" && visualElementType === "image"
|
|
9359
|
+
const getFlexDirection = (sdsType, visualElementType, imagePosition) => {
|
|
9360
|
+
return sdsType === "wide" && visualElementType === "image"
|
|
9353
9361
|
? imagePosition === "left"
|
|
9354
9362
|
? "row"
|
|
9355
9363
|
: "row-reverse"
|
|
9356
9364
|
: visualElementType === "icon"
|
|
9357
9365
|
? "row"
|
|
9358
9366
|
: "column";
|
|
9359
|
-
|
|
9367
|
+
};
|
|
9368
|
+
const getShowDecorativeBorder = (visualElementType, boundingBox, decorativeBorder, imagePadding) => {
|
|
9369
|
+
return visualElementType === "image"
|
|
9360
9370
|
? boundingBox && decorativeBorder && imagePadding
|
|
9361
9371
|
: boundingBox && decorativeBorder;
|
|
9372
|
+
};
|
|
9373
|
+
const StyledCard = styled$2(Card, {
|
|
9374
|
+
shouldForwardProp: (prop) => !doNotForwardProps$r.includes(prop)
|
|
9375
|
+
}) `
|
|
9376
|
+
${(props) => {
|
|
9377
|
+
const { imagePosition = "left", sdsType = "wide", boundingBox = true, decorativeBorder = false, imagePadding = false, visualElementType, clickableCard = false, } = props;
|
|
9378
|
+
const semanticColors = getSemanticColors(props);
|
|
9379
|
+
const corners = getCorners(props);
|
|
9380
|
+
const shadows = getShadows(props);
|
|
9381
|
+
const spaces = getSpaces(props);
|
|
9382
|
+
const flexDirection = getFlexDirection(sdsType, visualElementType, imagePosition);
|
|
9383
|
+
const showDecorativeBorder = getShowDecorativeBorder(visualElementType, boundingBox, decorativeBorder, imagePadding);
|
|
9362
9384
|
return css$1 `
|
|
9385
|
+
position: relative;
|
|
9363
9386
|
display: flex;
|
|
9364
9387
|
background-color: transparent;
|
|
9365
9388
|
background-image: none;
|
|
9366
9389
|
flex-direction: ${flexDirection};
|
|
9367
|
-
overflow:
|
|
9390
|
+
overflow: visible;
|
|
9368
9391
|
box-shadow: none;
|
|
9369
9392
|
border-radius: ${corners?.xl}px;
|
|
9370
9393
|
|
|
@@ -9383,16 +9406,47 @@ const StyledCard = styled$2(Card, {
|
|
|
9383
9406
|
background-color: ${semanticColors?.base?.backgroundPrimary};
|
|
9384
9407
|
`}
|
|
9385
9408
|
|
|
9409
|
+
${showDecorativeBorder &&
|
|
9410
|
+
css$1 `
|
|
9411
|
+
&:before {
|
|
9412
|
+
content: "";
|
|
9413
|
+
position: absolute;
|
|
9414
|
+
background-color: ${semanticColors?.accent?.border};
|
|
9415
|
+
|
|
9416
|
+
${sdsType === "wide" &&
|
|
9417
|
+
css$1 `
|
|
9418
|
+
top: -1px;
|
|
9419
|
+
bottom: -1px;
|
|
9420
|
+
left: -1px;
|
|
9421
|
+
width: ${spaces?.xs}px;
|
|
9422
|
+
border-top-left-radius: ${corners?.xl}px;
|
|
9423
|
+
border-bottom-left-radius: ${corners?.xl}px;
|
|
9424
|
+
`}
|
|
9425
|
+
|
|
9426
|
+
${sdsType === "narrow" &&
|
|
9427
|
+
css$1 `
|
|
9428
|
+
height: ${spaces?.xs}px;
|
|
9429
|
+
top: -1px;
|
|
9430
|
+
left: -1px;
|
|
9431
|
+
right: -1px;
|
|
9432
|
+
border-top-left-radius: ${corners?.xl}px;
|
|
9433
|
+
border-top-right-radius: ${corners?.xl}px;
|
|
9434
|
+
`}
|
|
9435
|
+
}
|
|
9436
|
+
`}
|
|
9437
|
+
|
|
9386
9438
|
${sdsType === "wide" &&
|
|
9387
9439
|
showDecorativeBorder &&
|
|
9388
9440
|
css$1 `
|
|
9389
|
-
border-left:
|
|
9441
|
+
border-top-left-radius: ${corners?.l}px;
|
|
9442
|
+
border-bottom-left-radius: ${corners?.l}px;
|
|
9390
9443
|
`}
|
|
9391
9444
|
|
|
9392
9445
|
${sdsType === "narrow" &&
|
|
9393
9446
|
showDecorativeBorder &&
|
|
9394
9447
|
css$1 `
|
|
9395
|
-
border-top:
|
|
9448
|
+
border-top-left-radius: ${corners?.l}px;
|
|
9449
|
+
border-top-right-radius: ${corners?.l}px;
|
|
9396
9450
|
`}
|
|
9397
9451
|
`;
|
|
9398
9452
|
}}
|
|
@@ -9425,7 +9479,7 @@ const StyledCardActionArea = styled$2(Button, {
|
|
|
9425
9479
|
|
|
9426
9480
|
&:hover,
|
|
9427
9481
|
&:active {
|
|
9428
|
-
background-color: ${semanticColors?.base?.
|
|
9482
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
9429
9483
|
}
|
|
9430
9484
|
`;
|
|
9431
9485
|
}}
|
|
@@ -9665,9 +9719,13 @@ const StyledImageMediaWrapper = styled$3("div", {
|
|
|
9665
9719
|
${(props) => {
|
|
9666
9720
|
const { imagePadding = false, boundingBox = true, sdsType = "wide", imagePosition = "left", } = props;
|
|
9667
9721
|
const spaces = getSpaces(props);
|
|
9722
|
+
const corners = getCorners(props);
|
|
9668
9723
|
return css$3 `
|
|
9669
9724
|
display: flex;
|
|
9670
9725
|
align-items: start;
|
|
9726
|
+
border-top-left-radius: calc(${corners?.xl}px - 1px);
|
|
9727
|
+
border-bottom-left-radius: calc(${corners?.xl}px - 1px);
|
|
9728
|
+
overflow: hidden;
|
|
9671
9729
|
|
|
9672
9730
|
${boundingBox
|
|
9673
9731
|
? imagePadding
|
|
@@ -9702,6 +9760,8 @@ const StyledImageMediaWrapper = styled$3("div", {
|
|
|
9702
9760
|
`}
|
|
9703
9761
|
|
|
9704
9762
|
justify-content: center;
|
|
9763
|
+
border-top-left-radius: calc(${corners?.xl}px - 1px);
|
|
9764
|
+
border-top-right-radius: calc(${corners?.xl}px - 1px);
|
|
9705
9765
|
`}
|
|
9706
9766
|
`;
|
|
9707
9767
|
}}
|
|
@@ -9842,7 +9902,7 @@ const StyledPaper = styled$2(Paper, {
|
|
|
9842
9902
|
const semanticColors = getSemanticColors(props);
|
|
9843
9903
|
const isSmall = sdsSize === "xs" || sdsSize === "s";
|
|
9844
9904
|
return `
|
|
9845
|
-
background-color: ${semanticColors?.base?.
|
|
9905
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
9846
9906
|
background-image: none;
|
|
9847
9907
|
box-shadow: ${shadows?.l};
|
|
9848
9908
|
max-height: calc(100vh - ${2 * (spaces?.xxxl || 40)}px);
|
|
@@ -10484,12 +10544,11 @@ const disabledStyles$1 = (props) => {
|
|
|
10484
10544
|
const StyledFormControlLabel$1 = styled$2(FormControlLabel) `
|
|
10485
10545
|
${(props) => {
|
|
10486
10546
|
const { disabled } = props;
|
|
10487
|
-
const spaces = getSpaces(props);
|
|
10488
10547
|
const semanticColors = getSemanticColors(props);
|
|
10489
10548
|
const borders = getBorders(props);
|
|
10490
10549
|
return `
|
|
10491
10550
|
align-items: start;
|
|
10492
|
-
margin-bottom:
|
|
10551
|
+
margin-bottom: 0;
|
|
10493
10552
|
margin-left: 0;
|
|
10494
10553
|
margin-right: 0;
|
|
10495
10554
|
width: fit-content;
|
|
@@ -10497,7 +10556,7 @@ const StyledFormControlLabel$1 = styled$2(FormControlLabel) `
|
|
|
10497
10556
|
&:hover {
|
|
10498
10557
|
${StyledCheckboxDefaultIcon} {
|
|
10499
10558
|
border: ${borders?.base?.hover};
|
|
10500
|
-
background-color: ${disabled ? "transparent" : semanticColors?.base?.
|
|
10559
|
+
background-color: ${disabled ? "transparent" : semanticColors?.base?.fillInteraction};
|
|
10501
10560
|
}
|
|
10502
10561
|
|
|
10503
10562
|
${StyledCheckboxCheckedIcon} {
|
|
@@ -10671,19 +10730,18 @@ const disabledStyles = (props) => {
|
|
|
10671
10730
|
const StyledFormControlLabel = styled$2(FormControlLabel) `
|
|
10672
10731
|
${(props) => {
|
|
10673
10732
|
const { disabled } = props;
|
|
10674
|
-
const spaces = getSpaces(props);
|
|
10675
10733
|
const semanticColors = getSemanticColors(props);
|
|
10676
10734
|
return `
|
|
10677
10735
|
align-items: start;
|
|
10678
|
-
margin-bottom:
|
|
10736
|
+
margin-bottom: 0;
|
|
10679
10737
|
margin-left: 0;
|
|
10680
10738
|
margin-right: 0;
|
|
10681
10739
|
width: fit-content;
|
|
10682
10740
|
|
|
10683
10741
|
&:hover {
|
|
10684
10742
|
${StyledRadioDefaultIcon} {
|
|
10685
|
-
border: 1px solid ${semanticColors?.base?.
|
|
10686
|
-
background-color: ${disabled ? "transparent" : semanticColors?.base?.
|
|
10743
|
+
border: 1px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
10744
|
+
background-color: ${disabled ? "transparent" : semanticColors?.base?.fillInteraction};
|
|
10687
10745
|
}
|
|
10688
10746
|
|
|
10689
10747
|
${StyledRadioCheckedIcon} {
|
|
@@ -10693,7 +10751,7 @@ const StyledFormControlLabel = styled$2(FormControlLabel) `
|
|
|
10693
10751
|
|
|
10694
10752
|
&:active {
|
|
10695
10753
|
${StyledRadioDefaultIcon} {
|
|
10696
|
-
border: 1px solid ${semanticColors?.base?.
|
|
10754
|
+
border: 1px solid ${semanticColors?.base?.borderPrimaryInteraction};
|
|
10697
10755
|
}
|
|
10698
10756
|
|
|
10699
10757
|
${StyledRadioCheckedIcon} {
|
|
@@ -10987,12 +11045,12 @@ const textArea = (props) => {
|
|
|
10987
11045
|
};
|
|
10988
11046
|
const StyledLabel$2 = styled$2("label") `
|
|
10989
11047
|
display: block;
|
|
10990
|
-
${
|
|
11048
|
+
${fontBodySemiboldXxxs}
|
|
10991
11049
|
|
|
10992
11050
|
${(props) => {
|
|
10993
11051
|
const spaces = getSpaces(props);
|
|
10994
11052
|
return `
|
|
10995
|
-
margin-bottom: ${spaces?.
|
|
11053
|
+
margin-bottom: ${spaces?.s}px;
|
|
10996
11054
|
`;
|
|
10997
11055
|
}}
|
|
10998
11056
|
`;
|
|
@@ -11008,8 +11066,6 @@ const StyledInputBase = styled$2(TextField, {
|
|
|
11008
11066
|
const corners = getCorners(props);
|
|
11009
11067
|
const semanticColors = getSemanticColors(props);
|
|
11010
11068
|
return css$1 `
|
|
11011
|
-
margin-bottom: ${spaces?.l}px;
|
|
11012
|
-
margin-right: ${spaces?.m}px;
|
|
11013
11069
|
display: block;
|
|
11014
11070
|
|
|
11015
11071
|
.${outlinedInputClasses.root} {
|
|
@@ -11046,7 +11102,7 @@ const StyledInputBase = styled$2(TextField, {
|
|
|
11046
11102
|
.${outlinedInputClasses.root}:hover
|
|
11047
11103
|
.${outlinedInputClasses.notchedOutline} {
|
|
11048
11104
|
border: ${borders?.base?.hover};
|
|
11049
|
-
background-color: ${semanticColors?.base?.
|
|
11105
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
11050
11106
|
}
|
|
11051
11107
|
|
|
11052
11108
|
.${outlinedInputClasses.root}.${outlinedInputClasses.focused}
|
|
@@ -11225,7 +11281,7 @@ const toggleOff = (props) => {
|
|
|
11225
11281
|
}
|
|
11226
11282
|
|
|
11227
11283
|
&:hover {
|
|
11228
|
-
background-color: ${semanticColors?.base?.
|
|
11284
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
11229
11285
|
}
|
|
11230
11286
|
}
|
|
11231
11287
|
|
|
@@ -11247,7 +11303,7 @@ const toggleOff = (props) => {
|
|
|
11247
11303
|
outline: ${borders?.base?.hover};
|
|
11248
11304
|
|
|
11249
11305
|
.${switchClasses.thumb} {
|
|
11250
|
-
color: ${semanticColors?.base?.
|
|
11306
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
11251
11307
|
}
|
|
11252
11308
|
}`}
|
|
11253
11309
|
`;
|
|
@@ -11279,6 +11335,123 @@ const InputToggle = (props) => {
|
|
|
11279
11335
|
return (jsx(Toggle, __assign({ checked: finalChecked, color: "primary", onChange: handleChange, value: labelValue }, rest)));
|
|
11280
11336
|
};
|
|
11281
11337
|
|
|
11338
|
+
const StyledIntentMessage = styled$2.div `
|
|
11339
|
+
display: flex;
|
|
11340
|
+
flex-direction: column;
|
|
11341
|
+
${(props) => {
|
|
11342
|
+
const spaces = getSpaces(props);
|
|
11343
|
+
const semanticColors = getSemanticColors(props);
|
|
11344
|
+
const borderThickness = 2;
|
|
11345
|
+
const borderColor = props.borderIntent
|
|
11346
|
+
? semanticColors?.[props.borderIntent]?.border
|
|
11347
|
+
: "transparent";
|
|
11348
|
+
return `
|
|
11349
|
+
gap: ${spaces?.s}px;
|
|
11350
|
+
position: relative;
|
|
11351
|
+
|
|
11352
|
+
&::before {
|
|
11353
|
+
content: "";
|
|
11354
|
+
position: absolute;
|
|
11355
|
+
left: -${(spaces?.xs || 0) + borderThickness}px;
|
|
11356
|
+
top: 0;
|
|
11357
|
+
bottom: 0;
|
|
11358
|
+
width: ${borderThickness}px;
|
|
11359
|
+
background-color: ${borderColor};
|
|
11360
|
+
display: ${props.hasBorder ? "block" : "none"};
|
|
11361
|
+
}
|
|
11362
|
+
`;
|
|
11363
|
+
}}
|
|
11364
|
+
`;
|
|
11365
|
+
const StyledMessageItem = styled$2.div `
|
|
11366
|
+
${fontBodySemiboldXxxs}
|
|
11367
|
+
display: flex;
|
|
11368
|
+
align-items: start;
|
|
11369
|
+
|
|
11370
|
+
${(props) => {
|
|
11371
|
+
const spaces = getSpaces(props);
|
|
11372
|
+
const semanticColors = getSemanticColors(props);
|
|
11373
|
+
const intentColors = semanticColors?.[props.intent];
|
|
11374
|
+
return `
|
|
11375
|
+
gap: ${spaces?.xs}px;
|
|
11376
|
+
color: ${intentColors?.text};
|
|
11377
|
+
|
|
11378
|
+
svg {
|
|
11379
|
+
margin-top: ${spaces?.xxxs}px;
|
|
11380
|
+
fill: ${intentColors?.ornament};
|
|
11381
|
+
path {
|
|
11382
|
+
fill: ${intentColors?.ornament};
|
|
11383
|
+
}
|
|
11384
|
+
}
|
|
11385
|
+
`;
|
|
11386
|
+
}}
|
|
11387
|
+
`;
|
|
11388
|
+
|
|
11389
|
+
const DEFAULT_INTENT_PRIORITY = {
|
|
11390
|
+
negative: 0,
|
|
11391
|
+
notice: 1,
|
|
11392
|
+
positive: 2
|
|
11393
|
+
};
|
|
11394
|
+
const IntentMessage = (props) => {
|
|
11395
|
+
const { messages = [], children, border = false, autoOrder = true, orderBy, ...rest } = props;
|
|
11396
|
+
// const priorities = React.useMemo(() => {
|
|
11397
|
+
// return orderBy
|
|
11398
|
+
// ? orderBy.reduce(
|
|
11399
|
+
// (acc, intent, index) => {
|
|
11400
|
+
// acc[intent] = index;
|
|
11401
|
+
// return acc;
|
|
11402
|
+
// },
|
|
11403
|
+
// {} as Record<IntentMessageIntent, number>
|
|
11404
|
+
// )
|
|
11405
|
+
// : DEFAULT_INTENT_PRIORITY;
|
|
11406
|
+
// }, [orderBy]);
|
|
11407
|
+
const priorities = orderBy
|
|
11408
|
+
? Object.fromEntries(orderBy.map((value, index) => [value, index]))
|
|
11409
|
+
: DEFAULT_INTENT_PRIORITY;
|
|
11410
|
+
/**
|
|
11411
|
+
* Determines the left border color based on message intent priority.
|
|
11412
|
+
* When multiple IntentMessage items are rendered together, the border color
|
|
11413
|
+
* corresponds to the highest-priority intent present.
|
|
11414
|
+
*/
|
|
11415
|
+
const borderColorIntent = React__default.useMemo(() => {
|
|
11416
|
+
if (!messages || messages.length === 0)
|
|
11417
|
+
return undefined;
|
|
11418
|
+
// Find the message with the highest priority (lowest number)
|
|
11419
|
+
const highestPriorityMessage = messages.reduce((prev, current) => {
|
|
11420
|
+
const priorityPrev = priorities[prev.intent] ?? 999;
|
|
11421
|
+
const priorityCurrent = priorities[current.intent] ?? 999;
|
|
11422
|
+
return priorityPrev <= priorityCurrent ? prev : current;
|
|
11423
|
+
});
|
|
11424
|
+
return highestPriorityMessage.intent;
|
|
11425
|
+
}, [messages, priorities]);
|
|
11426
|
+
const getIcon = (item) => {
|
|
11427
|
+
const { icon, intent } = item;
|
|
11428
|
+
if (icon) {
|
|
11429
|
+
if (typeof icon !== "string") {
|
|
11430
|
+
return icon;
|
|
11431
|
+
}
|
|
11432
|
+
return jsx(Icon, { sdsIcon: icon, sdsSize: "xs" });
|
|
11433
|
+
}
|
|
11434
|
+
switch (intent) {
|
|
11435
|
+
case "positive":
|
|
11436
|
+
return jsx(Icon, { sdsIcon: "CheckCircle", sdsSize: "xs" });
|
|
11437
|
+
case "negative":
|
|
11438
|
+
case "notice":
|
|
11439
|
+
default:
|
|
11440
|
+
return jsx(Icon, { sdsIcon: "ExclamationMarkCircle", sdsSize: "xs" });
|
|
11441
|
+
}
|
|
11442
|
+
};
|
|
11443
|
+
const sortedMessages = React__default.useMemo(() => {
|
|
11444
|
+
if (!autoOrder)
|
|
11445
|
+
return messages;
|
|
11446
|
+
return [...messages].sort((a, b) => {
|
|
11447
|
+
const priorityA = priorities[a.intent] ?? 999;
|
|
11448
|
+
const priorityB = priorities[b.intent] ?? 999;
|
|
11449
|
+
return priorityA - priorityB;
|
|
11450
|
+
});
|
|
11451
|
+
}, [messages, autoOrder, priorities]);
|
|
11452
|
+
return (jsxs(StyledIntentMessage, __assign({ borderIntent: borderColorIntent, hasBorder: border }, rest, { children: [children, sortedMessages.map((message, index) => (jsxs(StyledMessageItem, { intent: message.intent, children: [getIcon(message), jsx("span", { children: message.text })] }, index)))] })));
|
|
11453
|
+
};
|
|
11454
|
+
|
|
11282
11455
|
const LegendContainer = styled$2("div") `
|
|
11283
11456
|
display: flex;
|
|
11284
11457
|
flex-wrap: wrap;
|
|
@@ -11720,7 +11893,7 @@ const StyledMenu = styled$2(Menu$1) `
|
|
|
11720
11893
|
const corners = getCorners(props);
|
|
11721
11894
|
const semanticColors = getSemanticColors(props);
|
|
11722
11895
|
return `
|
|
11723
|
-
background-color: ${semanticColors?.base?.
|
|
11896
|
+
background-color: ${semanticColors?.base?.surfacePrimary};
|
|
11724
11897
|
background-image: none;
|
|
11725
11898
|
padding: ${spaces?.xs}px;
|
|
11726
11899
|
border-radius: ${corners?.l}px;
|
|
@@ -18058,7 +18231,7 @@ const NarrowNavItemLinkStyles = (props) => {
|
|
|
18058
18231
|
? semanticColors?.base.textPrimaryOnDark
|
|
18059
18232
|
: semanticColors?.base.textPrimary};
|
|
18060
18233
|
background: ${props.hasInvertedStyle
|
|
18061
|
-
? semanticColors?.base.
|
|
18234
|
+
? semanticColors?.base.backgroundSecondaryDark
|
|
18062
18235
|
: semanticColors?.base.backgroundSecondary};
|
|
18063
18236
|
}
|
|
18064
18237
|
`;
|
|
@@ -18084,11 +18257,11 @@ const StyledNavItemLink = styled$2(Link, {
|
|
|
18084
18257
|
|
|
18085
18258
|
&:hover {
|
|
18086
18259
|
color: ${props.hasInvertedStyle
|
|
18087
|
-
? semanticColors?.base
|
|
18088
|
-
: semanticColors?.base
|
|
18260
|
+
? semanticColors?.base?.textPrimaryOnDark
|
|
18261
|
+
: semanticColors?.base?.textPrimary};
|
|
18089
18262
|
background-color: ${props.hasInvertedStyle
|
|
18090
|
-
? semanticColors?.base
|
|
18091
|
-
: semanticColors?.base
|
|
18263
|
+
? semanticColors?.base?.fillInteractionOnDark
|
|
18264
|
+
: semanticColors?.base?.fillInteraction};
|
|
18092
18265
|
text-decoration: none;
|
|
18093
18266
|
}
|
|
18094
18267
|
|
|
@@ -18642,7 +18815,7 @@ const StyledSearch = styled$2(InputSearch, {
|
|
|
18642
18815
|
&:hover {
|
|
18643
18816
|
fieldset {
|
|
18644
18817
|
border-color: ${hasInvertedStyle
|
|
18645
|
-
? semanticColors?.base?.
|
|
18818
|
+
? semanticColors?.base?.borderPrimaryInteractionOnDark
|
|
18646
18819
|
: ""} !important;
|
|
18647
18820
|
}
|
|
18648
18821
|
|
|
@@ -18660,7 +18833,7 @@ const StyledSearch = styled$2(InputSearch, {
|
|
|
18660
18833
|
&.Mui-focused {
|
|
18661
18834
|
fieldset {
|
|
18662
18835
|
border-color: ${hasInvertedStyle
|
|
18663
|
-
? semanticColors?.base?.
|
|
18836
|
+
? semanticColors?.base?.borderPrimaryInteractionOnDark
|
|
18664
18837
|
: ""} !important;
|
|
18665
18838
|
}
|
|
18666
18839
|
|
|
@@ -18855,8 +19028,8 @@ const StyledAccordion = styled$2(Accordion, {
|
|
|
18855
19028
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
18856
19029
|
: semanticColors?.base.ornamentSecondary;
|
|
18857
19030
|
const ChevronOpenColor = hasInvertedStyle
|
|
18858
|
-
? semanticColors?.base?.
|
|
18859
|
-
: semanticColors?.base.
|
|
19031
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
19032
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
18860
19033
|
return css$3 `
|
|
18861
19034
|
& > .MuiButtonBase-root {
|
|
18862
19035
|
padding: ${spaces?.s}px ${spaces?.l}px !important;
|
|
@@ -18921,16 +19094,16 @@ const StyledAccordion = styled$2(Accordion, {
|
|
|
18921
19094
|
width: 100%;
|
|
18922
19095
|
box-shadow: none;
|
|
18923
19096
|
background: ${hasInvertedStyle
|
|
18924
|
-
? semanticColors?.base.
|
|
18925
|
-
: semanticColors?.base.
|
|
19097
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
19098
|
+
: semanticColors?.base.fillInteraction};
|
|
18926
19099
|
color: ${hasInvertedStyle
|
|
18927
19100
|
? semanticColors?.base.textPrimaryOnDark
|
|
18928
19101
|
: semanticColors?.base.textPrimary};
|
|
18929
19102
|
|
|
18930
19103
|
svg {
|
|
18931
19104
|
color: ${hasInvertedStyle
|
|
18932
|
-
? semanticColors?.base?.
|
|
18933
|
-
: semanticColors?.base.
|
|
19105
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
19106
|
+
: semanticColors?.base.ornamentSecondaryInteraction} !important;
|
|
18934
19107
|
}
|
|
18935
19108
|
}
|
|
18936
19109
|
|
|
@@ -19133,8 +19306,8 @@ const StyledHoverDrawerItem = styled$2(Button, {
|
|
|
19133
19306
|
box-shadow: none;
|
|
19134
19307
|
cursor: pointer;
|
|
19135
19308
|
background: ${hasInvertedStyle
|
|
19136
|
-
? semanticColors?.base.
|
|
19137
|
-
: semanticColors?.base.
|
|
19309
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
19310
|
+
: semanticColors?.base.fillInteraction};
|
|
19138
19311
|
svg {
|
|
19139
19312
|
color: ${semanticColors?.accent?.ornament};
|
|
19140
19313
|
}
|
|
@@ -19308,8 +19481,8 @@ const NarrowPrimaryNavItem = (props) => {
|
|
|
19308
19481
|
const semanticColors = getSemanticColors(props);
|
|
19309
19482
|
const corners = getCorners(props);
|
|
19310
19483
|
const ChevronHoverColor = hasInvertedStyle
|
|
19311
|
-
? semanticColors?.base?.
|
|
19312
|
-
: semanticColors?.base.
|
|
19484
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
19485
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
19313
19486
|
return css$1 `
|
|
19314
19487
|
border-radius: ${corners?.l}px;
|
|
19315
19488
|
justify-content: start;
|
|
@@ -19334,8 +19507,8 @@ const NarrowPrimaryNavItem = (props) => {
|
|
|
19334
19507
|
`
|
|
19335
19508
|
: css$1 `
|
|
19336
19509
|
background: ${hasInvertedStyle
|
|
19337
|
-
? semanticColors?.base.
|
|
19338
|
-
: semanticColors?.base.
|
|
19510
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
19511
|
+
: semanticColors?.base.fillInteraction};
|
|
19339
19512
|
`}
|
|
19340
19513
|
box-shadow: none;
|
|
19341
19514
|
|
|
@@ -19367,11 +19540,11 @@ styled$2(Button, {
|
|
|
19367
19540
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
19368
19541
|
: semanticColors?.base.ornamentSecondary;
|
|
19369
19542
|
const ChevronHoverColor = hasInvertedStyle
|
|
19370
|
-
? semanticColors?.base?.
|
|
19371
|
-
: semanticColors?.base.
|
|
19543
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
19544
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
19372
19545
|
const ChevronOpenColor = hasInvertedStyle
|
|
19373
|
-
? semanticColors?.base.
|
|
19374
|
-
: semanticColors?.base.
|
|
19546
|
+
? semanticColors?.base.ornamentSecondaryInteractionOnDark
|
|
19547
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
19375
19548
|
return css$1 `
|
|
19376
19549
|
border: none;
|
|
19377
19550
|
padding: ${spaces?.xxxs}px ${spaces?.m}px;
|
|
@@ -19388,8 +19561,8 @@ styled$2(Button, {
|
|
|
19388
19561
|
|
|
19389
19562
|
&:hover {
|
|
19390
19563
|
background: ${hasInvertedStyle
|
|
19391
|
-
? semanticColors?.base.
|
|
19392
|
-
: semanticColors?.base.
|
|
19564
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
19565
|
+
: semanticColors?.base.fillInteraction} !important;
|
|
19393
19566
|
box-shadow: none;
|
|
19394
19567
|
|
|
19395
19568
|
${StyledLabel$1} {
|
|
@@ -19469,8 +19642,8 @@ const NarrowNavItemStyles = (props) => {
|
|
|
19469
19642
|
const semanticColors = getSemanticColors(props);
|
|
19470
19643
|
const corners = getCorners(props);
|
|
19471
19644
|
const ChevronHoverColor = hasInvertedStyle
|
|
19472
|
-
? semanticColors?.base?.
|
|
19473
|
-
: semanticColors?.base
|
|
19645
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
19646
|
+
: semanticColors?.base?.ornamentSecondaryInteraction;
|
|
19474
19647
|
return css$1 `
|
|
19475
19648
|
${active ? fontBodySemiboldL(props) : fontBodyMediumL(props)}
|
|
19476
19649
|
border-radius: ${corners?.l}px;
|
|
@@ -19497,8 +19670,8 @@ const NarrowNavItemStyles = (props) => {
|
|
|
19497
19670
|
`
|
|
19498
19671
|
: css$1 `
|
|
19499
19672
|
background: ${hasInvertedStyle
|
|
19500
|
-
? semanticColors?.base.
|
|
19501
|
-
: semanticColors?.base.
|
|
19673
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
19674
|
+
: semanticColors?.base.fillInteraction};
|
|
19502
19675
|
`}
|
|
19503
19676
|
box-shadow: none;
|
|
19504
19677
|
|
|
@@ -19538,11 +19711,11 @@ const UnifiedNavItem = styled$2(Button, {
|
|
|
19538
19711
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
19539
19712
|
: semanticColors?.base.ornamentSecondary;
|
|
19540
19713
|
const ChevronHoverColor = hasInvertedStyle
|
|
19541
|
-
? semanticColors?.base?.
|
|
19542
|
-
: semanticColors?.base.
|
|
19714
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
19715
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
19543
19716
|
const ChevronOpenColor = hasInvertedStyle
|
|
19544
|
-
? semanticColors?.base.
|
|
19545
|
-
: semanticColors?.base.
|
|
19717
|
+
? semanticColors?.base.ornamentSecondaryInteractionOnDark
|
|
19718
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
19546
19719
|
return [
|
|
19547
19720
|
navVariant === "secondary" &&
|
|
19548
19721
|
(active ? fontBodySemiboldS(props) : fontBodyMediumS(props)),
|
|
@@ -19570,8 +19743,8 @@ const UnifiedNavItem = styled$2(Button, {
|
|
|
19570
19743
|
|
|
19571
19744
|
&:hover {
|
|
19572
19745
|
background: ${hasInvertedStyle
|
|
19573
|
-
? semanticColors?.base.
|
|
19574
|
-
: semanticColors?.base.
|
|
19746
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
19747
|
+
: semanticColors?.base.fillInteraction} !important;
|
|
19575
19748
|
box-shadow: none;
|
|
19576
19749
|
|
|
19577
19750
|
${navVariant === "primary" && StyledLabel} {
|
|
@@ -19666,7 +19839,7 @@ const StyledSectionHeader = styled$2(ListSubheader, {
|
|
|
19666
19839
|
? semanticColors?.base.backgroundPrimaryDark
|
|
19667
19840
|
: semanticColors?.base.backgroundPrimary;
|
|
19668
19841
|
}
|
|
19669
|
-
return semanticColors?.base?.
|
|
19842
|
+
return semanticColors?.base?.surfacePrimary;
|
|
19670
19843
|
}
|
|
19671
19844
|
function getTextColor() {
|
|
19672
19845
|
if (isNarrow) {
|
|
@@ -19727,7 +19900,7 @@ const StyledAccordionSection = styled$2("div", {
|
|
|
19727
19900
|
border-radius: ${corners?.xl}px;
|
|
19728
19901
|
padding: ${spaces?.l}px;
|
|
19729
19902
|
background-color: ${hasInvertedStyle
|
|
19730
|
-
? semanticColors?.base?.
|
|
19903
|
+
? semanticColors?.base?.backgroundSecondaryDark
|
|
19731
19904
|
: semanticColors?.base?.backgroundSecondary};
|
|
19732
19905
|
`;
|
|
19733
19906
|
}
|
|
@@ -20363,8 +20536,8 @@ const NarrowStyledTextItem = (props) => {
|
|
|
20363
20536
|
&:hover {
|
|
20364
20537
|
box-shadow: none;
|
|
20365
20538
|
background: ${hasInvertedStyle
|
|
20366
|
-
? semanticColors?.base.
|
|
20367
|
-
: semanticColors?.base.
|
|
20539
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
20540
|
+
: semanticColors?.base.fillInteraction};
|
|
20368
20541
|
}
|
|
20369
20542
|
`;
|
|
20370
20543
|
};
|
|
@@ -20396,11 +20569,11 @@ styled$2(Button, {
|
|
|
20396
20569
|
? semanticColors?.base.ornamentSecondaryOnDark
|
|
20397
20570
|
: semanticColors?.base.ornamentSecondary;
|
|
20398
20571
|
const ChevronHoverColor = hasInvertedStyle
|
|
20399
|
-
? semanticColors?.base?.
|
|
20400
|
-
: semanticColors?.base.
|
|
20572
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
20573
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
20401
20574
|
const ChevronOpenColor = hasInvertedStyle
|
|
20402
|
-
? semanticColors?.base?.
|
|
20403
|
-
: semanticColors?.base.
|
|
20575
|
+
? semanticColors?.base?.ornamentSecondaryInteractionOnDark
|
|
20576
|
+
: semanticColors?.base.ornamentSecondaryInteraction;
|
|
20404
20577
|
return [
|
|
20405
20578
|
open ? fontBodySemiboldS(props) : fontBodyMediumS(props),
|
|
20406
20579
|
css$1 `
|
|
@@ -20421,8 +20594,8 @@ styled$2(Button, {
|
|
|
20421
20594
|
|
|
20422
20595
|
&:hover {
|
|
20423
20596
|
background: ${hasInvertedStyle
|
|
20424
|
-
? semanticColors?.base.
|
|
20425
|
-
: semanticColors?.base.
|
|
20597
|
+
? semanticColors?.base.fillInteractionOnDark
|
|
20598
|
+
: semanticColors?.base.fillInteraction};
|
|
20426
20599
|
box-shadow: none;
|
|
20427
20600
|
|
|
20428
20601
|
color: ${hasInvertedStyle
|
|
@@ -20974,7 +21147,7 @@ const StyledTabs$1 = styled$2(Tabs$1, {
|
|
|
20974
21147
|
const StyledTab$1 = styled$2(Tab$1, {
|
|
20975
21148
|
shouldForwardProp: (prop) => !doNotForwardProps$5.includes(prop)
|
|
20976
21149
|
}) `
|
|
20977
|
-
${
|
|
21150
|
+
${fontBodyMediumXs}
|
|
20978
21151
|
|
|
20979
21152
|
${(props) => {
|
|
20980
21153
|
const spaces = getSpaces(props);
|
|
@@ -21001,20 +21174,20 @@ const StyledTab$1 = styled$2(Tab$1, {
|
|
|
21001
21174
|
left: 0;
|
|
21002
21175
|
width: ${spaces?.xxxs}px;
|
|
21003
21176
|
height: 100%;
|
|
21004
|
-
background-color: ${semanticColors?.base?.
|
|
21177
|
+
background-color: ${semanticColors?.base?.borderPrimaryInteraction};
|
|
21005
21178
|
display: none;
|
|
21006
21179
|
border-radius: ${spaces?.xxxs}px;
|
|
21007
21180
|
}
|
|
21008
21181
|
&:hover {
|
|
21009
21182
|
color: ${semanticColors?.base?.textPrimary};
|
|
21010
|
-
background-color: ${semanticColors?.base?.
|
|
21183
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
21011
21184
|
&:before {
|
|
21012
21185
|
display: block;
|
|
21013
21186
|
}
|
|
21014
21187
|
}
|
|
21015
21188
|
&.Mui-selected {
|
|
21016
21189
|
color: ${semanticColors?.base?.textPrimary};
|
|
21017
|
-
font-weight:
|
|
21190
|
+
font-weight: 600;
|
|
21018
21191
|
}
|
|
21019
21192
|
&.MuiButtonBase-root {
|
|
21020
21193
|
text-align: left;
|
|
@@ -21371,7 +21544,7 @@ const StyledPaginationButton = styled$2(Button) `
|
|
|
21371
21544
|
|
|
21372
21545
|
&:hover {
|
|
21373
21546
|
& .MuiSvgIcon-root {
|
|
21374
|
-
color: ${semanticColors?.base?.
|
|
21547
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction}
|
|
21375
21548
|
}
|
|
21376
21549
|
}
|
|
21377
21550
|
`;
|
|
@@ -21407,10 +21580,10 @@ const StyledPaginationChevronList = styled$2("li", {
|
|
|
21407
21580
|
}
|
|
21408
21581
|
|
|
21409
21582
|
&:hover {
|
|
21410
|
-
background-color: ${disabled ? "transparent" : semanticColors?.base?.
|
|
21583
|
+
background-color: ${disabled ? "transparent" : semanticColors?.base?.fillInteraction};
|
|
21411
21584
|
|
|
21412
21585
|
& .MuiSvgIcon-root {
|
|
21413
|
-
color: ${disabled ? semanticColors?.base?.ornamentDisabled : semanticColors?.base?.
|
|
21586
|
+
color: ${disabled ? semanticColors?.base?.ornamentDisabled : semanticColors?.base?.ornamentSecondaryInteraction}
|
|
21414
21587
|
}
|
|
21415
21588
|
}
|
|
21416
21589
|
|
|
@@ -21432,28 +21605,29 @@ const StyledPagination = styled$2("ul", {
|
|
|
21432
21605
|
`;
|
|
21433
21606
|
const selectedPageStyle = (props) => {
|
|
21434
21607
|
const semanticColors = getSemanticColors(props);
|
|
21435
|
-
return `
|
|
21436
|
-
background-color: ${semanticColors?.base?.
|
|
21608
|
+
return css$1 `
|
|
21609
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
21437
21610
|
color: ${semanticColors?.base?.textPrimary};
|
|
21438
|
-
font-weight: 500;
|
|
21439
21611
|
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderSecondary};
|
|
21440
21612
|
|
|
21441
21613
|
&:hover {
|
|
21442
21614
|
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderSecondary};
|
|
21443
21615
|
}
|
|
21616
|
+
|
|
21617
|
+
${fontTabularSemiboldS(props)}
|
|
21444
21618
|
`;
|
|
21445
21619
|
};
|
|
21446
21620
|
const Page = styled$2("li", {
|
|
21447
21621
|
shouldForwardProp: (prop) => !doNotForwardProps$3.includes(prop)
|
|
21448
21622
|
}) `
|
|
21449
|
-
${
|
|
21623
|
+
${fontTabularMediumS}
|
|
21450
21624
|
|
|
21451
21625
|
${(props) => {
|
|
21452
21626
|
const { selected, sdsStyle } = props;
|
|
21453
21627
|
const spaces = getSpaces(props);
|
|
21454
21628
|
const corners = getCorners(props);
|
|
21455
21629
|
const semanticColors = getSemanticColors(props);
|
|
21456
|
-
return `
|
|
21630
|
+
return css$1 `
|
|
21457
21631
|
color: ${semanticColors?.base?.textSecondary};
|
|
21458
21632
|
cursor: pointer;
|
|
21459
21633
|
list-style: none;
|
|
@@ -21467,15 +21641,15 @@ const Page = styled$2("li", {
|
|
|
21467
21641
|
border-radius: ${sdsStyle === "round" ? corners?.rounded : corners?.l}px;
|
|
21468
21642
|
user-select: none;
|
|
21469
21643
|
&:hover {
|
|
21470
|
-
background-color: ${semanticColors?.base?.
|
|
21644
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
21471
21645
|
color: ${semanticColors?.base?.textPrimary};
|
|
21472
21646
|
}
|
|
21473
21647
|
|
|
21474
|
-
&:nth-last-of-type(-n+2) {
|
|
21648
|
+
&:nth-last-of-type(-n + 2) {
|
|
21475
21649
|
margin-right: 0;
|
|
21476
21650
|
}
|
|
21477
21651
|
|
|
21478
|
-
${selected && selectedPageStyle(props)}
|
|
21652
|
+
${selected && selectedPageStyle(props)}
|
|
21479
21653
|
${focusVisibleA11yStyle(props)}
|
|
21480
21654
|
`;
|
|
21481
21655
|
}}
|
|
@@ -21798,7 +21972,7 @@ const StyledSegmentedControl = styled$2(ToggleButtonGroup, {
|
|
|
21798
21972
|
padding: ${spaces?.xxxs}px;
|
|
21799
21973
|
|
|
21800
21974
|
&:hover {
|
|
21801
|
-
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.
|
|
21975
|
+
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderPrimaryInteraction};
|
|
21802
21976
|
}
|
|
21803
21977
|
|
|
21804
21978
|
.${toggleButtonClasses.root}.${toggleButtonClasses.disabled} {
|
|
@@ -21806,13 +21980,13 @@ const StyledSegmentedControl = styled$2(ToggleButtonGroup, {
|
|
|
21806
21980
|
}
|
|
21807
21981
|
|
|
21808
21982
|
.${toggleButtonClasses.root}.${toggleButtonClasses.selected} {
|
|
21809
|
-
background-color: ${semanticColors?.base?.
|
|
21983
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
21810
21984
|
color: ${semanticColors?.accent?.ornamentSelected};
|
|
21811
21985
|
border-color: ${semanticColors?.base?.borderPrimary};
|
|
21812
21986
|
|
|
21813
21987
|
&:hover {
|
|
21814
|
-
background-color: ${semanticColors?.base?.
|
|
21815
|
-
color: ${semanticColors?.base?.
|
|
21988
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
21989
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
21816
21990
|
}
|
|
21817
21991
|
}
|
|
21818
21992
|
|
|
@@ -21828,8 +22002,8 @@ const StyledSegmentedControl = styled$2(ToggleButtonGroup, {
|
|
|
21828
22002
|
|
|
21829
22003
|
&:hover {
|
|
21830
22004
|
border-color: ${semanticColors?.base?.borderPrimary};
|
|
21831
|
-
background-color: ${semanticColors?.base?.
|
|
21832
|
-
color: ${semanticColors?.base?.
|
|
22005
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
22006
|
+
color: ${semanticColors?.base?.ornamentSecondaryInteraction};
|
|
21833
22007
|
}
|
|
21834
22008
|
}
|
|
21835
22009
|
`;
|
|
@@ -21912,6 +22086,7 @@ const disabledStyled = (props) => {
|
|
|
21912
22086
|
|
|
21913
22087
|
& span, & div {
|
|
21914
22088
|
color: ${semanticColors?.base?.textDisabled};
|
|
22089
|
+
background-color: transparent !important;
|
|
21915
22090
|
}
|
|
21916
22091
|
|
|
21917
22092
|
.cell-component {
|
|
@@ -21920,11 +22095,12 @@ const disabledStyled = (props) => {
|
|
|
21920
22095
|
user-select: none;
|
|
21921
22096
|
& div {
|
|
21922
22097
|
color: ${semanticColors?.base?.textDisabled};
|
|
21923
|
-
background-color:
|
|
22098
|
+
background-color: transparent;
|
|
21924
22099
|
}
|
|
21925
22100
|
|
|
21926
22101
|
& .MuiChip-root {
|
|
21927
22102
|
background-color: ${semanticColors?.base?.fillDisabled};
|
|
22103
|
+
box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderPrimaryDisabled} !important;
|
|
21928
22104
|
|
|
21929
22105
|
& span {
|
|
21930
22106
|
color: ${semanticColors?.base?.textDisabled} !important;
|
|
@@ -21943,7 +22119,7 @@ const hoverStyled = (props) => {
|
|
|
21943
22119
|
const semanticColors = getSemanticColors(props);
|
|
21944
22120
|
return `
|
|
21945
22121
|
&:hover {
|
|
21946
|
-
background-color: ${semanticColors?.base?.
|
|
22122
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
21947
22123
|
}
|
|
21948
22124
|
`;
|
|
21949
22125
|
};
|
|
@@ -22044,8 +22220,8 @@ const StyledTab = styled$2(Tab$1, {
|
|
|
22044
22220
|
color: ${semanticColors?.base?.textSecondary};
|
|
22045
22221
|
|
|
22046
22222
|
&:hover {
|
|
22047
|
-
box-shadow: inset 0 -2px 0 0 ${semanticColors?.base?.
|
|
22048
|
-
background-color: ${semanticColors?.base?.
|
|
22223
|
+
box-shadow: inset 0 -2px 0 0 ${semanticColors?.base?.borderPrimaryInteraction};
|
|
22224
|
+
background-color: ${semanticColors?.base?.fillInteraction};
|
|
22049
22225
|
border-top-right-radius: ${corners?.l}px;
|
|
22050
22226
|
border-top-left-radius: ${corners?.l}px;
|
|
22051
22227
|
|
|
@@ -22075,7 +22251,7 @@ const StyledTab = styled$2(Tab$1, {
|
|
|
22075
22251
|
function tabFontMixin(props) {
|
|
22076
22252
|
const { sdsSize } = props;
|
|
22077
22253
|
const isLarge = sdsSize === "large";
|
|
22078
|
-
return isLarge ?
|
|
22254
|
+
return isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props);
|
|
22079
22255
|
}
|
|
22080
22256
|
const StyledWrapper = styled$2("div") `
|
|
22081
22257
|
${(props) => {
|
|
@@ -22094,7 +22270,7 @@ const StyledCount = styled$2("span") `
|
|
|
22094
22270
|
const { sdsSize } = props;
|
|
22095
22271
|
const isLarge = sdsSize === "large";
|
|
22096
22272
|
return css$1 `
|
|
22097
|
-
${isLarge ?
|
|
22273
|
+
${isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props)}
|
|
22098
22274
|
`;
|
|
22099
22275
|
}}
|
|
22100
22276
|
`;
|
|
@@ -22103,9 +22279,9 @@ const StyledLabelTextWrapper = styled$2("span") `
|
|
|
22103
22279
|
const { sdsSize, selected } = props;
|
|
22104
22280
|
const isLarge = sdsSize === "large";
|
|
22105
22281
|
return css$1 `
|
|
22106
|
-
${isLarge ?
|
|
22282
|
+
${isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props)}
|
|
22107
22283
|
${selected &&
|
|
22108
|
-
(isLarge ?
|
|
22284
|
+
(isLarge ? fontBodySemiboldS(props) : fontBodySemiboldXs(props))}
|
|
22109
22285
|
position: absolute;
|
|
22110
22286
|
`;
|
|
22111
22287
|
}}
|
|
@@ -22115,7 +22291,7 @@ const StyledLabelTextWrapperShadow = styled$2("span") `
|
|
|
22115
22291
|
const { sdsSize } = props;
|
|
22116
22292
|
const isLarge = sdsSize === "large";
|
|
22117
22293
|
return css$1 `
|
|
22118
|
-
${isLarge ?
|
|
22294
|
+
${isLarge ? fontBodySemiboldS(props) : fontBodySemiboldXs(props)}
|
|
22119
22295
|
visibility: hidden;
|
|
22120
22296
|
opacity: 0;
|
|
22121
22297
|
`;
|
|
@@ -25795,7 +25971,7 @@ Object.assign(chroma, {
|
|
|
25795
25971
|
const generateDiscreteColors = (count, options = {}) => {
|
|
25796
25972
|
if (count === 0)
|
|
25797
25973
|
return [];
|
|
25798
|
-
const { isDarkMode = false, start =
|
|
25974
|
+
const { isDarkMode = false, start = 240, rotations = 0.85, gamma = 1, lightness = [0.4, 0.7], correctLightness = true, } = options;
|
|
25799
25975
|
let scale = chroma
|
|
25800
25976
|
.cubehelix()
|
|
25801
25977
|
.start(start)
|
|
@@ -25811,4 +25987,4 @@ const generateDiscreteColors = (count, options = {}) => {
|
|
|
25811
25987
|
return isDarkMode ? colors.reverse() : colors;
|
|
25812
25988
|
};
|
|
25813
25989
|
|
|
25814
|
-
export { Accordion, AccordionDetails, AccordionHeader, Alert$1 as Alert, Autocomplete, StyledPopper$2 as AutocompleteMultiColumnStyledPopper, StyledPaper$3 as AutocompleteSingleColumnStyledPaper, Banner, Button, ButtonDropdown, ButtonIcon, ButtonToggle, Callout, CalloutTitle, CellBasic, CellComponent, CellHeader, Chip, ComplexFilter, InputDropdown as ComplexFilterInputDropdown, StyledPopper as ComplexFilterPopper, ContentCard, ContentCardActions, StyledContentCardBody as ContentCardBody, StyledMetadataText as ContentCardMetadata, StyledOverlineText as ContentCardOverline, StyledSubtitleText as ContentCardSubtitle, StyledTitleText as ContentCardTitle, Dialog, DialogActions, index$1 as DialogContent, DialogPaper, DialogTitle, Overline as DialogTitleOverline, Subtitle as DialogTitleSubtitle, Title as DialogTitleTitle, Dropdown, InputDropdown as DropdownInputDropdown, DropdownMenu, StyledPaper$1 as DropdownPaper, StyledPopper as DropdownPopper, Hero, Icon, InputCheckbox, InputDropdown, InputRadio, InputSearch, InputSlider, InputText, InputToggle, Legend, Link, List, ListItem, ListItemLabel, ListSubheader, LoadingIndicator, MINIMUM_DROPDOWN_MENU_POPPER_WIDTH, Menu, MenuItem, MenuSelect, NavigationFooter, NavigationHeader, NavigationJumpTo, Notification, Pagination, Panel, SDSChooseTheme, SDSDarkAppTheme, SDSDarkThemeColors, SDSLightAppTheme, SDSLightThemeColors, SDSPaletteDark, SDSPaletteLight, SegmentedControl, Tab, Table, TableHeader, TableRow, Tabs, Tag, TagFilter, Theme, Tooltip, TooltipCondensed, TooltipTableContent as TooltipTable, defaultAppTheme, defaultTheme$4 as defaultTheme, focusVisibleA11yStyle, fontBody, fontBodyL$1 as fontBodyL, fontBodyM$1 as fontBodyM, fontBodyMediumL, fontBodyMediumM, fontBodyMediumS, fontBodyMediumXs, fontBodyMediumXxs, fontBodyMediumXxxs, fontBodyMediumXxxxs, fontBodyS$1 as fontBodyS, fontBodySemiboldL, fontBodySemiboldM, fontBodySemiboldS, fontBodySemiboldXs, fontBodySemiboldXxs, fontBodySemiboldXxxs, fontBodySemiboldXxxxs, fontBodyXs$2 as fontBodyXs, fontBodyXxs$1 as fontBodyXxs, fontBodyXxxs$1 as fontBodyXxxs, fontBodyXxxxs, fontCaps, fontCapsXxs, fontCapsXxxs, fontCapsXxxxs, fontCode, fontCodeMediumS, fontCodeMediumXs, fontCodeS, fontCodeSemiboldS, fontCodeSemiboldXs, fontCodeXs, fontHeader, fontHeaderL, fontHeaderM$1 as fontHeaderM, fontHeaderS, fontHeaderXl, fontHeaderXs, fontHeaderXxl, fontHeaderXxs, fontHeaderXxxs, fontLink, fontLinkL, fontLinkM, fontLinkMediumL, fontLinkMediumM, fontLinkMediumS, fontLinkMediumXs, fontLinkMediumXxs, fontLinkMediumXxxs, fontLinkMediumXxxxs, fontLinkS, fontLinkSemiboldL, fontLinkSemiboldM, fontLinkSemiboldS, fontLinkSemiboldXs, fontLinkSemiboldXxs, fontLinkSemiboldXxxs, fontLinkSemiboldXxxxs, fontLinkXs, fontLinkXxs, fontLinkXxxs, fontLinkXxxxs, fontTabular, fontTabularMediumS, fontTabularMediumXs, fontTabularMediumXxs, fontTabularMediumXxxs, fontTabularMediumXxxxs, fontTabularS, fontTabularSemiboldS, fontTabularSemiboldXs, fontTabularSemiboldXxs, fontTabularSemiboldXxxs, fontTabularSemiboldXxxxs, fontTabularXs, fontTabularXxs, fontTabularXxxs, fontTabularXxxxs, fontTitle, fontTitleBoldL, fontTitleBoldM, fontTitleBoldS, generateDiscreteColors, getBorders, getBreakpoints, getColors, getCorners, getFontWeights, getIconSizes, getMode, getPalette, getSemanticColors, getShadows, getSpaces, getSpacings, getTypography, makeSdsSemanticAppTheme, makeThemeOptions };
|
|
25990
|
+
export { Accordion, AccordionDetails, AccordionHeader, Alert$1 as Alert, Autocomplete, StyledPopper$2 as AutocompleteMultiColumnStyledPopper, StyledPaper$3 as AutocompleteSingleColumnStyledPaper, Banner, Button, ButtonDropdown, ButtonIcon, ButtonToggle, Callout, CalloutTitle, CellBasic, CellComponent, CellHeader, Chip, ComplexFilter, InputDropdown as ComplexFilterInputDropdown, StyledPopper as ComplexFilterPopper, ContentCard, ContentCardActions, StyledContentCardBody as ContentCardBody, StyledMetadataText as ContentCardMetadata, StyledOverlineText as ContentCardOverline, StyledSubtitleText as ContentCardSubtitle, StyledTitleText as ContentCardTitle, Dialog, DialogActions, index$1 as DialogContent, DialogPaper, DialogTitle, Overline as DialogTitleOverline, Subtitle as DialogTitleSubtitle, Title as DialogTitleTitle, Dropdown, InputDropdown as DropdownInputDropdown, DropdownMenu, StyledPaper$1 as DropdownPaper, StyledPopper as DropdownPopper, Hero, Icon, InputCheckbox, InputDropdown, InputRadio, InputSearch, InputSlider, InputText, InputToggle, IntentMessage, Legend, Link, List, ListItem, ListItemLabel, ListSubheader, LoadingIndicator, MINIMUM_DROPDOWN_MENU_POPPER_WIDTH, Menu, MenuItem, MenuSelect, NavigationFooter, NavigationHeader, NavigationJumpTo, Notification, Pagination, Panel, SDSChooseTheme, SDSDarkAppTheme, SDSDarkThemeColors, SDSLightAppTheme, SDSLightThemeColors, SDSPaletteDark, SDSPaletteLight, SegmentedControl, Tab, Table, TableHeader, TableRow, Tabs, Tag, TagFilter, Theme, Tooltip, TooltipCondensed, TooltipTableContent as TooltipTable, defaultAppTheme, defaultTheme$4 as defaultTheme, focusVisibleA11yStyle, fontBody, fontBodyL$1 as fontBodyL, fontBodyM$1 as fontBodyM, fontBodyMediumL, fontBodyMediumM, fontBodyMediumS, fontBodyMediumXs, fontBodyMediumXxs, fontBodyMediumXxxs, fontBodyMediumXxxxs, fontBodyS$1 as fontBodyS, fontBodySemiboldL, fontBodySemiboldM, fontBodySemiboldS, fontBodySemiboldXs, fontBodySemiboldXxs, fontBodySemiboldXxxs, fontBodySemiboldXxxxs, fontBodyXs$2 as fontBodyXs, fontBodyXxs$1 as fontBodyXxs, fontBodyXxxs$1 as fontBodyXxxs, fontBodyXxxxs, fontCaps, fontCapsXxs, fontCapsXxxs, fontCapsXxxxs, fontCode, fontCodeMediumS, fontCodeMediumXs, fontCodeS, fontCodeSemiboldS, fontCodeSemiboldXs, fontCodeXs, fontHeader, fontHeaderL, fontHeaderM$1 as fontHeaderM, fontHeaderS, fontHeaderXl, fontHeaderXs, fontHeaderXxl, fontHeaderXxs, fontHeaderXxxs, fontLink, fontLinkL, fontLinkM, fontLinkMediumL, fontLinkMediumM, fontLinkMediumS, fontLinkMediumXs, fontLinkMediumXxs, fontLinkMediumXxxs, fontLinkMediumXxxxs, fontLinkS, fontLinkSemiboldL, fontLinkSemiboldM, fontLinkSemiboldS, fontLinkSemiboldXs, fontLinkSemiboldXxs, fontLinkSemiboldXxxs, fontLinkSemiboldXxxxs, fontLinkXs, fontLinkXxs, fontLinkXxxs, fontLinkXxxxs, fontTabular, fontTabularMediumS, fontTabularMediumXs, fontTabularMediumXxs, fontTabularMediumXxxs, fontTabularMediumXxxxs, fontTabularS, fontTabularSemiboldS, fontTabularSemiboldXs, fontTabularSemiboldXxs, fontTabularSemiboldXxxs, fontTabularSemiboldXxxxs, fontTabularXs, fontTabularXxs, fontTabularXxxs, fontTabularXxxxs, fontTitle, fontTitleBoldL, fontTitleBoldM, fontTitleBoldS, generateDiscreteColors, getBorders, getBreakpoints, getColors, getCorners, getFontWeights, getIconSizes, getMode, getPalette, getSemanticColors, getShadows, getSpaces, getSpacings, getTypography, makeSdsSemanticAppTheme, makeThemeOptions };
|