@linagora/twake-mui 9.11.1 → 9.11.2

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,12 @@
1
+ ## @linagora/twake-mui [9.11.2](https://github.com/linagora/twake-ui/compare/@linagora/twake-mui@9.11.1...@linagora/twake-mui@9.11.2) (2026-09-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Added break-word to long name and email ([fdfcd16](https://github.com/linagora/twake-ui/commit/fdfcd16b7a381eb9272e1e405f60fc65c85fbbdd))
7
+ * Added disable param for contact popover actions ([fe4af23](https://github.com/linagora/twake-ui/commit/fe4af23240350aa9df0b2a9a58a2bb255340efce))
8
+ * Removed fullwidth from email action button ([e7eb7da](https://github.com/linagora/twake-ui/commit/e7eb7dae06b5afc4421b5f77c512e765ee7b7dfb))
9
+
1
10
  ## @linagora/twake-mui [9.11.1](https://github.com/linagora/twake-ui/compare/@linagora/twake-mui@9.11.0...@linagora/twake-mui@9.11.1) (2026-09-29)
2
11
 
3
12
 
@@ -25,9 +25,9 @@ export const AttendeeInfo = ({ name, email, onEmailCopy }) => {
25
25
  return (React.createElement(Box, { sx: { display: 'flex', alignItems: 'center', gap: 2 } },
26
26
  React.createElement(Avatar, { color: avatarColor, size: 48, sx: { width: 48, height: 48, fontSize: '1.25rem' } }, initials),
27
27
  React.createElement(Box, { sx: { minWidth: 0 } },
28
- name && name !== email ? (React.createElement(Typography, { variant: "body1", sx: { fontWeight: 500 }, noWrap: true }, name)) : null,
28
+ name && name !== email ? (React.createElement(Typography, { variant: "body1", sx: { fontWeight: 500, wordBreak: 'break-word' } }, name)) : null,
29
29
  React.createElement(Box, { sx: { display: 'flex', alignItems: 'center', gap: 1 } },
30
- React.createElement(Typography, { variant: "body2", color: "text.secondary", noWrap: true }, email),
30
+ React.createElement(Typography, { variant: "body2", color: "text.secondary", sx: { wordBreak: 'break-word' } }, email),
31
31
  React.createElement(IconButton, { size: "small", onClick: () => void handleCopy(), sx: { p: 0.5, color: alpha(theme.palette.grey[900], 0.9) }, title: showCopied
32
32
  ? t('ContactPopover.copiedTooltip')
33
33
  : t('ContactPopover.copyTooltip') },
@@ -1,5 +1,7 @@
1
1
  export interface ContactPopoverCalendarActionProps {
2
2
  /** URL for calendar action (e.g., view attendee's calendar) */
3
3
  url: string;
4
+ /** Disable the action button */
5
+ disabled?: boolean;
4
6
  }
5
- export declare const ContactPopoverCalendarAction: ({ url }: ContactPopoverCalendarActionProps) => JSX.Element;
7
+ export declare const ContactPopoverCalendarAction: ({ url, disabled }: ContactPopoverCalendarActionProps) => JSX.Element;
@@ -2,8 +2,8 @@ import { Icon } from '@linagora/twake-icons';
2
2
  import { CalendarToday } from '@linagora/twake-icons';
3
3
  import { IconButton, useTheme } from '@mui/material';
4
4
  import React from 'react';
5
- export const ContactPopoverCalendarAction = ({ url }) => {
5
+ export const ContactPopoverCalendarAction = ({ url, disabled = false }) => {
6
6
  const theme = useTheme();
7
- return (React.createElement(IconButton, { href: url, target: "_blank", rel: "noopener noreferrer", size: "small", sx: { border: `1px solid ${theme.palette.divider}` } },
7
+ return (React.createElement(IconButton, { href: url, target: "_blank", rel: "noopener noreferrer", size: "small", disabled: disabled, sx: { border: `1px solid ${theme.palette.divider}` } },
8
8
  React.createElement(Icon, { icon: CalendarToday, size: 20, color: theme.palette.text.icon })));
9
9
  };
@@ -1,5 +1,7 @@
1
1
  export interface ContactPopoverChatActionProps {
2
2
  /** URL for chat action (e.g., Twake Chat link) */
3
3
  url: string;
4
+ /** Disable the action button */
5
+ disabled?: boolean;
4
6
  }
5
- export declare const ContactPopoverChatAction: ({ url }: ContactPopoverChatActionProps) => JSX.Element;
7
+ export declare const ContactPopoverChatAction: ({ url, disabled }: ContactPopoverChatActionProps) => JSX.Element;
@@ -2,8 +2,8 @@ import { Icon } from '@linagora/twake-icons';
2
2
  import { Discuss } from '@linagora/twake-icons';
3
3
  import { IconButton, useTheme } from '@mui/material';
4
4
  import React from 'react';
5
- export const ContactPopoverChatAction = ({ url }) => {
5
+ export const ContactPopoverChatAction = ({ url, disabled = false }) => {
6
6
  const theme = useTheme();
7
- return (React.createElement(IconButton, { href: url, target: "_blank", rel: "noopener noreferrer", size: "small", sx: { border: `1px solid ${theme.palette.divider}` } },
7
+ return (React.createElement(IconButton, { href: url, target: "_blank", rel: "noopener noreferrer", size: "small", disabled: disabled, sx: { border: `1px solid ${theme.palette.divider}` } },
8
8
  React.createElement(Icon, { icon: Discuss, size: 20, color: theme.palette.text.icon })));
9
9
  };
@@ -1,5 +1,7 @@
1
1
  export interface ContactPopoverEmailActionProps {
2
2
  /** URL for email action */
3
3
  url: string;
4
+ /** Disable the action button */
5
+ disabled?: boolean;
4
6
  }
5
- export declare const ContactPopoverEmailAction: ({ url }: ContactPopoverEmailActionProps) => JSX.Element;
7
+ export declare const ContactPopoverEmailAction: ({ url, disabled }: ContactPopoverEmailActionProps) => JSX.Element;
@@ -1,10 +1,10 @@
1
1
  import { Button, useTheme } from '@mui/material';
2
2
  import React from 'react';
3
3
  import { useI18n } from 'twake-i18n';
4
- export const ContactPopoverEmailAction = ({ url }) => {
4
+ export const ContactPopoverEmailAction = ({ url, disabled = false }) => {
5
5
  const theme = useTheme();
6
6
  const { t } = useI18n();
7
- return (React.createElement(Button, { href: url, target: "_blank", rel: "noopener noreferrer", variant: "outlined", size: "small", fullWidth: true, sx: {
7
+ return (React.createElement(Button, { href: url, target: "_blank", rel: "noopener noreferrer", variant: "outlined", size: "small", disabled: disabled, sx: {
8
8
  justifyContent: 'center',
9
9
  color: theme.palette.text.primary,
10
10
  borderColor: theme.palette.divider
@@ -1,5 +1,7 @@
1
1
  export interface ContactPopoverVideoActionProps {
2
2
  /** URL for video call action (e.g., Twake Meet link) */
3
3
  url: string;
4
+ /** Disable the action button */
5
+ disabled?: boolean;
4
6
  }
5
- export declare const ContactPopoverVideoAction: ({ url }: ContactPopoverVideoActionProps) => JSX.Element;
7
+ export declare const ContactPopoverVideoAction: ({ url, disabled }: ContactPopoverVideoActionProps) => JSX.Element;
@@ -2,8 +2,8 @@ import { Icon } from '@linagora/twake-icons';
2
2
  import { Camera } from '@linagora/twake-icons';
3
3
  import { IconButton, useTheme } from '@mui/material';
4
4
  import React from 'react';
5
- export const ContactPopoverVideoAction = ({ url }) => {
5
+ export const ContactPopoverVideoAction = ({ url, disabled = false }) => {
6
6
  const theme = useTheme();
7
- return (React.createElement(IconButton, { href: url, target: "_blank", rel: "noopener noreferrer", size: "small", sx: { border: `1px solid ${theme.palette.divider}` } },
7
+ return (React.createElement(IconButton, { href: url, target: "_blank", rel: "noopener noreferrer", size: "small", disabled: disabled, sx: { border: `1px solid ${theme.palette.divider}` } },
8
8
  React.createElement(Icon, { icon: Camera, size: 20, color: theme.palette.text.icon })));
9
9
  };
@@ -113,7 +113,8 @@ export const ContactPopover = ({ name, email, children, onEmailCopy, onClose, di
113
113
  paper: {
114
114
  elevation: 4,
115
115
  sx: {
116
- borderRadius: 2
116
+ borderRadius: 2,
117
+ maxWidth: 400
117
118
  },
118
119
  onMouseEnter: handlePopoverMouseEnter,
119
120
  onMouseLeave: handleMouseLeave
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@linagora/twake-mui",
3
3
  "type": "module",
4
- "version": "9.11.1",
4
+ "version": "9.11.2",
5
5
  "description": "MUI v9 theme system for Twake applications",
6
6
  "author": "Twake",
7
7
  "license": "MIT",