@linagora/twake-mui 10.1.0 → 10.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/CHANGELOG.md +12 -0
- package/dist/components/ContactPopover/index.js +4 -1
- package/dist/components/ContactPopover/locales/de.json +7 -0
- package/dist/components/ContactPopover/locales/es.json +7 -0
- package/dist/components/ContactPopover/locales/it.json +7 -0
- package/dist/components/NavDesktopLimiter/index.js +4 -1
- package/dist/components/NavDesktopLimiter/locales/de.json +6 -0
- package/dist/components/NavDesktopLimiter/locales/es.json +6 -0
- package/dist/components/NavDesktopLimiter/locales/it.json +6 -0
- package/dist/components/SearchBar/index.js +4 -1
- package/dist/components/SearchBar/locales/de.json +5 -0
- package/dist/components/SearchBar/locales/es.json +5 -0
- package/dist/components/SearchBar/locales/it.json +5 -0
- package/dist/components/VirtualizedTable/HeadCell.js +4 -1
- package/dist/components/VirtualizedTable/locales/de.json +6 -0
- package/dist/components/VirtualizedTable/locales/es.json +6 -0
- package/dist/components/VirtualizedTable/locales/it.json +6 -0
- package/dist/lib/overrides.js +6 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# @linagora/twake-mui [10.2.0](https://github.com/linagora/twake-ui/compare/@linagora/twake-mui@10.1.0...@linagora/twake-mui@10.2.0) (2026-10-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **twake-mui:** Match the Alert close button without its title ([cdfb37a](https://github.com/linagora/twake-ui/commit/cdfb37a832fdde8455702d0f40e1a9c0ecb34214))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **twake-mui:** Translate component labels in es, de and it ([90f3d39](https://github.com/linagora/twake-ui/commit/90f3d3960d476a28ee3a4f3e2c453da36b55a645))
|
|
12
|
+
|
|
1
13
|
# @linagora/twake-mui [10.1.0](https://github.com/linagora/twake-ui/compare/@linagora/twake-mui@10.0.0...@linagora/twake-mui@10.1.0) (2026-10-06)
|
|
2
14
|
|
|
3
15
|
|
|
@@ -9,11 +9,14 @@ import { ContactPopoverCalendarAction } from './ContactPopoverCalendarAction';
|
|
|
9
9
|
import { ContactPopoverChatAction } from './ContactPopoverChatAction';
|
|
10
10
|
import { ContactPopoverEmailAction } from './ContactPopoverEmailAction';
|
|
11
11
|
import { ContactPopoverVideoAction } from './ContactPopoverVideoAction';
|
|
12
|
+
import de from './locales/de.json';
|
|
12
13
|
import en from './locales/en.json';
|
|
14
|
+
import es from './locales/es.json';
|
|
13
15
|
import fr from './locales/fr.json';
|
|
16
|
+
import it from './locales/it.json';
|
|
14
17
|
import ru from './locales/ru.json';
|
|
15
18
|
import vi from './locales/vi.json';
|
|
16
|
-
const locales = { en, fr, ru, vi };
|
|
19
|
+
const locales = { de, en, es, fr, it, ru, vi };
|
|
17
20
|
const StyledPopoverContent = styled(Box)(({ theme }) => ({
|
|
18
21
|
padding: theme.spacing(3),
|
|
19
22
|
display: 'flex',
|
|
@@ -5,12 +5,15 @@ import { NavIcon } from '../NavIcon';
|
|
|
5
5
|
import { NavItem } from '../NavItem';
|
|
6
6
|
import { NavLink } from '../NavLink/NavLink';
|
|
7
7
|
import NavText from '../NavText';
|
|
8
|
+
import de from './locales/de.json';
|
|
8
9
|
import en from './locales/en.json';
|
|
10
|
+
import es from './locales/es.json';
|
|
9
11
|
import fr from './locales/fr.json';
|
|
12
|
+
import it from './locales/it.json';
|
|
10
13
|
import ru from './locales/ru.json';
|
|
11
14
|
import vi from './locales/vi.json';
|
|
12
15
|
import { useBreakpoints } from '../../hooks/useBreakpoints';
|
|
13
|
-
const locales = { en, fr, ru, vi };
|
|
16
|
+
const locales = { de, en, es, fr, it, ru, vi };
|
|
14
17
|
export const NavDesktopLimiter = ({ children, max = 5 }) => {
|
|
15
18
|
useExtendI18n(locales);
|
|
16
19
|
const { t } = useI18n();
|
|
@@ -11,11 +11,14 @@ import { SearchBarIconWrapper } from './SearchBarIconWrapper';
|
|
|
11
11
|
import { SearchBarInputBase } from './SearchBarInputBase';
|
|
12
12
|
import { SearchBarRoot } from './SearchBarRoot';
|
|
13
13
|
import { SearchBarTypography } from './SearchBarTypography';
|
|
14
|
+
import de from './locales/de.json';
|
|
14
15
|
import en from './locales/en.json';
|
|
16
|
+
import es from './locales/es.json';
|
|
15
17
|
import fr from './locales/fr.json';
|
|
18
|
+
import it from './locales/it.json';
|
|
16
19
|
import ru from './locales/ru.json';
|
|
17
20
|
import vi from './locales/vi.json';
|
|
18
|
-
const locales = { en, fr, ru, vi };
|
|
21
|
+
const locales = { de, en, es, fr, it, ru, vi };
|
|
19
22
|
export const SearchBar = forwardRef(({ placeholder, icon = Magnifier, size = 'small', type = 'search', label, componentsProps, disabledClear = false, disabledFocus = false, disabledHover = false, className, defaultValue = '', value, elevation = 1, disabled = false, onChange = () => { }, onClear = () => { }, onFocus = () => { }, onBlur = () => { }, ...props }, ref) => {
|
|
20
23
|
useExtendI18n(locales);
|
|
21
24
|
const { t } = useI18n();
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { TableCell, TableSortLabel } from '@mui/material';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useExtendI18n, useI18n } from 'twake-i18n';
|
|
4
|
+
import de from './locales/de.json';
|
|
4
5
|
import en from './locales/en.json';
|
|
6
|
+
import es from './locales/es.json';
|
|
5
7
|
import fr from './locales/fr.json';
|
|
8
|
+
import it from './locales/it.json';
|
|
6
9
|
import ru from './locales/ru.json';
|
|
7
10
|
import vi from './locales/vi.json';
|
|
8
|
-
const locales = { en, fr, ru, vi };
|
|
11
|
+
const locales = { de, en, es, fr, it, ru, vi };
|
|
9
12
|
export const HeadCell = ({ column, orderBy, orderDirection, onClick }) => {
|
|
10
13
|
useExtendI18n(locales);
|
|
11
14
|
const { t } = useI18n();
|
package/dist/lib/overrides.js
CHANGED
|
@@ -6,6 +6,7 @@ import { checkboxClasses } from '@mui/material/Checkbox';
|
|
|
6
6
|
import { dialogTitleClasses } from '@mui/material/DialogTitle';
|
|
7
7
|
import { formHelperTextClasses } from '@mui/material/FormHelperText';
|
|
8
8
|
import { formLabelClasses } from '@mui/material/FormLabel';
|
|
9
|
+
import { iconButtonClasses } from '@mui/material/IconButton';
|
|
9
10
|
import { listItemButtonClasses } from '@mui/material/ListItemButton';
|
|
10
11
|
import { listItemIconClasses } from '@mui/material/ListItemIcon';
|
|
11
12
|
import { listItemTextClasses } from '@mui/material/ListItemText';
|
|
@@ -44,7 +45,11 @@ const alertSeverityVariants = alertSeverities.flatMap(severity => [
|
|
|
44
45
|
backgroundColor: theme.alpha(theme.vars.palette[severity].main, 0.24)
|
|
45
46
|
}),
|
|
46
47
|
[`& .${alertClasses.icon}`]: { color: alertIconColor(severity, theme) },
|
|
47
|
-
|
|
48
|
+
// Alert renders its close button, titled with the translated
|
|
49
|
+
// `closeText`, as the only child of the action slot and only when no
|
|
50
|
+
// custom `action` is given: matching that structure, not the title,
|
|
51
|
+
// keeps the style in every language.
|
|
52
|
+
[`& .${alertClasses.action} > .${iconButtonClasses.root}:only-child`]: {
|
|
48
53
|
color: theme.vars.palette.text.secondary
|
|
49
54
|
}
|
|
50
55
|
})
|