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