@linagora/twake-mui 16.0.1 → 16.1.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,10 @@
1
+ # @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)
2
+
3
+
4
+ ### Features
5
+
6
+ * **twake-mui:** Migrate FilePath from cozy-ui ([622be6f](https://github.com/linagora/twake-ui/commit/622be6fd697ae5d067e4d1ca71063a4b14f1970d))
7
+
1
8
  ## @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
9
 
3
10
 
@@ -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;
package/dist/index.d.ts CHANGED
@@ -59,6 +59,7 @@ 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';
62
63
  export { default as ListItem } from './components/ListItem';
63
64
  export { default as ListItemButton } from './components/ListItemButton';
64
65
  export { default as ListItemText } from './components/ListItemText';
@@ -157,6 +158,7 @@ export type { DropdownButtonProps } from './components/DropdownButton';
157
158
  export type { DropdownTextProps, DropdownTextVariant } from './components/DropdownText';
158
159
  export type { ExtendableFabProps, ScrollOptions } from './components/ExtendableFab';
159
160
  export type { FilenameProps } from './components/Filename';
161
+ export type { FilePathProps } from './components/FilePath';
160
162
  export type { ListItemProps, ListItemGutters, ListItemSize } from './components/ListItem';
161
163
  export type { ListItemButtonProps } from './components/ListItemButton';
162
164
  export type { ListItemTextProps } from './components/ListItemText';
package/dist/index.js CHANGED
@@ -62,6 +62,7 @@ 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';
65
66
  export { default as ListItem } from './components/ListItem';
66
67
  export { default as ListItemButton } from './components/ListItemButton';
67
68
  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.1.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",