@connectif/ui-components 4.0.3 → 4.0.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.0.4] - 2026-01-21
4
+
5
+ ### Changed
6
+
7
+ - Added support for custom theme to `NavbarButton`
8
+
3
9
  ## [4.0.3] - 2026-01-13
4
10
 
5
11
  ### Changed
@@ -23,7 +23,7 @@ export type NavbarButtonProps = {
23
23
  */
24
24
  sx?: SxProps;
25
25
  /**
26
- * Badge component to be positionanted at the bottom-right corner
26
+ * Badge component to be positioned at the bottom-right corner
27
27
  */
28
28
  badgeIconProps?: IconProps;
29
29
  /**
package/dist/index.js CHANGED
@@ -25636,6 +25636,7 @@ var NavbarButton = React80.forwardRef(
25636
25636
  highlighted = false,
25637
25637
  ...rest
25638
25638
  }, ref) {
25639
+ const { palette: palette2 } = useCustomTheme();
25639
25640
  const getButtonContent = (element) => {
25640
25641
  if (!highlighted) {
25641
25642
  return element;
@@ -25644,7 +25645,7 @@ var NavbarButton = React80.forwardRef(
25644
25645
  Box6,
25645
25646
  {
25646
25647
  sx: {
25647
- backgroundImage: `linear-gradient(to left, ${cornflowerBlue}, ${electricLavender})`,
25648
+ backgroundImage: `linear-gradient(to left, ${palette2.cornflowerBlue}, ${palette2.electricLavender})`,
25648
25649
  padding: "2px",
25649
25650
  borderRadius: "100%",
25650
25651
  position: "relative"
@@ -25657,9 +25658,9 @@ var NavbarButton = React80.forwardRef(
25657
25658
  position: "absolute",
25658
25659
  width: "8px",
25659
25660
  height: "8px",
25660
- background: primary600,
25661
+ background: palette2.primary.main,
25661
25662
  borderRadius: "100%",
25662
- border: `4px solid ${white}`,
25663
+ border: `4px solid ${palette2.common.white}`,
25663
25664
  right: "-2px",
25664
25665
  top: "1px",
25665
25666
  boxSizing: "content-box"
@@ -25670,7 +25671,7 @@ var NavbarButton = React80.forwardRef(
25670
25671
  Box6,
25671
25672
  {
25672
25673
  sx: {
25673
- backgroundColor: white,
25674
+ backgroundColor: palette2.common.white,
25674
25675
  borderRadius: "100%",
25675
25676
  padding: "2px"
25676
25677
  },
@@ -25692,8 +25693,8 @@ var NavbarButton = React80.forwardRef(
25692
25693
  width: "100%",
25693
25694
  height: "44px",
25694
25695
  "&:hover > .NavbarButton-icon": {
25695
- backgroundColor: grey100,
25696
- color: primaryMain
25696
+ backgroundColor: palette2.grey[100],
25697
+ color: palette2.primary.main
25697
25698
  },
25698
25699
  ...sx
25699
25700
  },
@@ -25717,10 +25718,10 @@ var NavbarButton = React80.forwardRef(
25717
25718
  sx: {
25718
25719
  boxSizing: "initial",
25719
25720
  padding: "8px",
25720
- color: isActive ? primaryMain : grey700,
25721
+ color: isActive ? palette2.primary.main : palette2.grey[700],
25721
25722
  borderRadius: "50%",
25722
25723
  overflow: "visible",
25723
- backgroundColor: isActive ? primaryOpacity32 : "transparent"
25724
+ backgroundColor: isActive ? palette2.primary.opacity32 : "transparent"
25724
25725
  }
25725
25726
  }
25726
25727
  )
@@ -25731,7 +25732,7 @@ var NavbarButton = React80.forwardRef(
25731
25732
  ...badgeIconProps,
25732
25733
  className: `NavbarButton-badge ${badgeIconProps.className}`,
25733
25734
  sx: {
25734
- color: primaryMain,
25735
+ color: palette2.primary.main,
25735
25736
  position: "absolute",
25736
25737
  bottom: 0,
25737
25738
  right: "8px",