@linagora/twake-mui 13.2.0 → 13.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## @linagora/twake-mui [13.2.1](https://github.com/linagora/twake-ui/compare/@linagora/twake-mui@13.2.0...@linagora/twake-mui@13.2.1) (2026-10-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **twake-mui:** Draw badge counts as a pill ([2cc8518](https://github.com/linagora/twake-ui/commit/2cc8518f927ddd2b571c455a6a0ddddf475151c9))
7
+
1
8
  # @linagora/twake-mui [13.2.0](https://github.com/linagora/twake-ui/compare/@linagora/twake-mui@13.1.0...@linagora/twake-mui@13.2.0) (2026-10-13)
2
9
 
3
10
 
@@ -3,6 +3,8 @@ import { styled } from '@mui/material/styles';
3
3
  export const NavBadge = styled(Badge)(({ theme }) => ({
4
4
  [`& .${badgeClasses.badge}`]: {
5
5
  border: 'none',
6
+ height: 14,
7
+ minWidth: 14,
6
8
  position: 'static',
7
9
  transform: 'none',
8
10
  backgroundColor: theme.vars.palette.action.selected,
@@ -90,6 +90,14 @@ export const Screenshot = {
90
90
  React.createElement(NavDropdown, null,
91
91
  React.createElement(NavIcon, { icon: Heart }),
92
92
  React.createElement(NavText, { secondaryText: "Secondary", tertiaryText: "Tertiary" }, "Primary Item")))),
93
+ React.createElement("section", null,
94
+ React.createElement("h3", null, "Counts"),
95
+ [12, 99, '99+'].map(badge => (React.createElement(NavItem, { key: badge, disablePadding: true, badge: badge },
96
+ React.createElement(NavLink, null,
97
+ React.createElement(NavIcon, { icon: Folder }),
98
+ React.createElement(NavText, null,
99
+ "Item with ",
100
+ badge)))))),
93
101
  React.createElement("section", null,
94
102
  React.createElement("h3", null, "Secondary"),
95
103
  React.createElement(NavItem, { disablePadding: true, variant: "secondary", selected: true },
@@ -537,17 +537,20 @@ export const overrides = {
537
537
  },
538
538
  styleOverrides: {
539
539
  badge: ({ theme }) => ({
540
- boxSizing: 'content-box',
541
- height: 14,
542
- minWidth: 14,
540
+ // Sizes include the border, so an app setting minWidth gets that width
541
+ boxSizing: 'border-box',
542
+ height: 18,
543
+ minWidth: 18,
543
544
  padding: 0,
544
545
  border: `2px solid ${theme.vars.palette.background.paper}`,
545
- borderRadius: '100%',
546
- fontSize: theme.typography.pxToRem(10)
546
+ borderRadius: radius.pill,
547
+ fontSize: theme.typography.pxToRem(10),
548
+ // Every two-digit count fits the circle, longer counts grow into a pill
549
+ fontVariantNumeric: 'tabular-nums'
547
550
  }),
548
551
  dot: {
549
- height: 8,
550
- minWidth: 8
552
+ height: 12,
553
+ minWidth: 12
551
554
  },
552
555
  anchorOriginTopRightRectangular: {
553
556
  transform: 'scale(1) translate(37%, -37%)'
@@ -62,6 +62,8 @@ export const Screenshot = {
62
62
  React.createElement(Target, null)),
63
63
  React.createElement(Badge, { color: "error", badgeContent: 0, showZero: false },
64
64
  React.createElement(Target, null)),
65
+ React.createElement(Badge, { color: "error", badgeContent: 99, max: 99 },
66
+ React.createElement(Target, null)),
65
67
  React.createElement(Badge, { color: "error", badgeContent: 120, max: 99 },
66
68
  React.createElement(Target, null)),
67
69
  React.createElement(Badge, { color: "error", badgeContent: 4, invisible: true },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@linagora/twake-mui",
3
3
  "type": "module",
4
- "version": "13.2.0",
4
+ "version": "13.2.1",
5
5
  "description": "MUI v9 theme system for Twake applications",
6
6
  "author": "Twake",
7
7
  "license": "MIT",