@linagora/twake-mui 16.0.1 → 16.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 CHANGED
@@ -1,3 +1,17 @@
1
+ # @linagora/twake-mui [16.2.0](https://github.com/linagora/twake-ui/compare/@linagora/twake-mui@16.1.0...@linagora/twake-mui@16.2.0) (2026-10-21)
2
+
3
+
4
+ ### Features
5
+
6
+ * **twake-mui:** Migrate FilePathLink from cozy-ui ([49a90f5](https://github.com/linagora/twake-ui/commit/49a90f54647a0e697be1038d061b24af5449541e))
7
+
8
+ # @linagora/twake-mui [16.1.0](https://github.com/linagora/twake-ui/compare/@linagora/twake-mui@16.0.1...@linagora/twake-mui@16.1.0) (2026-10-21)
9
+
10
+
11
+ ### Features
12
+
13
+ * **twake-mui:** Migrate FilePath from cozy-ui ([622be6f](https://github.com/linagora/twake-ui/commit/622be6fd697ae5d067e4d1ca71063a4b14f1970d))
14
+
1
15
  ## @linagora/twake-mui [16.0.1](https://github.com/linagora/twake-ui/compare/@linagora/twake-mui@16.0.0...@linagora/twake-mui@16.0.1) (2026-10-19)
2
16
 
3
17
 
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import FilePath from './index';
3
+ declare const meta: Meta<typeof FilePath>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Screenshot: Story;
@@ -0,0 +1,34 @@
1
+ import { Box, Stack } from '@mui/material';
2
+ import React from 'react';
3
+ import FilePath from './index';
4
+ const path = '/Partages reçus/Cozy 🗄 - Team/Customers & Partners 🛒/Xxxxxx (Xxxxxxxx)/4_Suivi opérationnel/Point de synchro';
5
+ const widths = [150, 250, 400];
6
+ const Section = ({ title, children }) => (React.createElement("section", null,
7
+ React.createElement("h3", null, title),
8
+ children));
9
+ const meta = {
10
+ title: 'FilePath',
11
+ component: FilePath,
12
+ tags: ['autodocs'],
13
+ argTypes: {
14
+ children: { control: 'text' },
15
+ className: { control: 'text' }
16
+ }
17
+ };
18
+ export default meta;
19
+ export const Default = {
20
+ args: {
21
+ children: path
22
+ }
23
+ };
24
+ export const Screenshot = {
25
+ tags: ['argos'],
26
+ render: () => (React.createElement(Stack, { spacing: 4 },
27
+ React.createElement(Section, { title: "Default" },
28
+ React.createElement(FilePath, null, path)),
29
+ React.createElement(Section, { title: "Container widths" },
30
+ React.createElement(Stack, { spacing: 1 }, widths.map(width => (React.createElement(Box, { key: width, sx: { width } },
31
+ React.createElement(FilePath, null, path)))))),
32
+ React.createElement(Section, { title: "Custom className" },
33
+ React.createElement(FilePath, { className: "u-error" }, path))))
34
+ };
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface FilePathProps {
3
+ children?: string;
4
+ className?: string;
5
+ }
6
+ declare const FilePath: React.FC<FilePathProps>;
7
+ export default FilePath;
@@ -0,0 +1,9 @@
1
+ import { styled } from '@mui/material';
2
+ import React from 'react';
3
+ import MidEllipsis from '../MidEllipsis';
4
+ const FilePathRoot = styled(MidEllipsis)(({ theme }) => ({
5
+ color: theme.palette.text.secondary,
6
+ fontSize: theme.typography.pxToRem(12)
7
+ }));
8
+ const FilePath = ({ children, className }) => (React.createElement(FilePathRoot, { className: className }, children));
9
+ export default FilePath;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import FilePathLink from './index';
3
+ declare const meta: Meta<typeof FilePathLink>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Screenshot: Story;
@@ -0,0 +1,41 @@
1
+ import { Box, Stack } from '@mui/material';
2
+ import React from 'react';
3
+ import FilePathLink from './index';
4
+ const path = '/Partages reçus/Cozy 🗄 - Team/Customers & Partners 🛒/Xxxxxx (Xxxxxxxx)/4_Suivi opérationnel/Point de synchro';
5
+ const widths = [150, 250, 400];
6
+ const Section = ({ title, children }) => (React.createElement("section", null,
7
+ React.createElement("h3", null, title),
8
+ children));
9
+ const meta = {
10
+ title: 'FilePathLink',
11
+ component: FilePathLink,
12
+ tags: ['autodocs'],
13
+ argTypes: {
14
+ children: { control: 'text' },
15
+ href: { control: 'text' },
16
+ color: {
17
+ control: 'select',
18
+ options: ['textSecondary', 'textPrimary', 'primary', 'inherit']
19
+ },
20
+ underline: { control: 'select', options: ['hover', 'always', 'none'] },
21
+ className: { control: 'text' }
22
+ }
23
+ };
24
+ export default meta;
25
+ export const Default = {
26
+ args: {
27
+ children: path,
28
+ href: '/'
29
+ }
30
+ };
31
+ export const Screenshot = {
32
+ tags: ['argos'],
33
+ render: () => (React.createElement(Stack, { spacing: 4 },
34
+ React.createElement(Section, { title: "Default" },
35
+ React.createElement(FilePathLink, { href: "/" }, path)),
36
+ React.createElement(Section, { title: "Underline always" },
37
+ React.createElement(FilePathLink, { href: "/", underline: "always" }, path)),
38
+ React.createElement(Section, { title: "Container widths" },
39
+ React.createElement(Stack, { spacing: 1 }, widths.map(width => (React.createElement(Box, { key: width, sx: { width } },
40
+ React.createElement(FilePathLink, { href: "/" }, path))))))))
41
+ };
@@ -0,0 +1,7 @@
1
+ import { LinkProps } from '@mui/material';
2
+ import React from 'react';
3
+ export interface FilePathLinkProps extends Omit<LinkProps, 'children'> {
4
+ children?: string;
5
+ }
6
+ declare const FilePathLink: React.FC<FilePathLinkProps>;
7
+ export default FilePathLink;
@@ -0,0 +1,6 @@
1
+ import { Link } from '@mui/material';
2
+ import React from 'react';
3
+ import FilePath from '../FilePath';
4
+ const FilePathLink = ({ children, ...props }) => (React.createElement(Link, { color: "textSecondary", ...props },
5
+ React.createElement(FilePath, null, children)));
6
+ export default FilePathLink;
package/dist/index.d.ts CHANGED
@@ -59,6 +59,8 @@ export { default as DropdownText } from './components/DropdownText';
59
59
  export { Empty, EmptySubTitle } from './components/Empty';
60
60
  export { ExtendableFab } from './components/ExtendableFab';
61
61
  export { default as Filename } from './components/Filename';
62
+ export { default as FilePath } from './components/FilePath';
63
+ export { default as FilePathLink } from './components/FilePathLink';
62
64
  export { default as ListItem } from './components/ListItem';
63
65
  export { default as ListItemButton } from './components/ListItemButton';
64
66
  export { default as ListItemText } from './components/ListItemText';
@@ -157,6 +159,8 @@ export type { DropdownButtonProps } from './components/DropdownButton';
157
159
  export type { DropdownTextProps, DropdownTextVariant } from './components/DropdownText';
158
160
  export type { ExtendableFabProps, ScrollOptions } from './components/ExtendableFab';
159
161
  export type { FilenameProps } from './components/Filename';
162
+ export type { FilePathProps } from './components/FilePath';
163
+ export type { FilePathLinkProps } from './components/FilePathLink';
160
164
  export type { ListItemProps, ListItemGutters, ListItemSize } from './components/ListItem';
161
165
  export type { ListItemButtonProps } from './components/ListItemButton';
162
166
  export type { ListItemTextProps } from './components/ListItemText';
package/dist/index.js CHANGED
@@ -62,6 +62,8 @@ export { default as DropdownText } from './components/DropdownText';
62
62
  export { Empty, EmptySubTitle } from './components/Empty';
63
63
  export { ExtendableFab } from './components/ExtendableFab';
64
64
  export { default as Filename } from './components/Filename';
65
+ export { default as FilePath } from './components/FilePath';
66
+ export { default as FilePathLink } from './components/FilePathLink';
65
67
  export { default as ListItem } from './components/ListItem';
66
68
  export { default as ListItemButton } from './components/ListItemButton';
67
69
  export { default as ListItemText } from './components/ListItemText';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@linagora/twake-mui",
3
3
  "type": "module",
4
- "version": "16.0.1",
4
+ "version": "16.2.0",
5
5
  "description": "MUI v9 theme system for Twake applications",
6
6
  "author": "Twake",
7
7
  "license": "MIT",
@@ -100,7 +100,7 @@
100
100
  "eslint-plugin-storybook": "10.3.5",
101
101
  "jsdom": "^30.1.2",
102
102
  "lodash": "4.18.1",
103
- "playwright": "1.60.0",
103
+ "playwright": "1.64.1",
104
104
  "react": "^19.3.0",
105
105
  "react-dom": "^19.3.0",
106
106
  "storybook": "10.3.5",