@linagora/twake-mui 13.0.0 → 13.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 [13.1.0](https://github.com/linagora/twake-ui/compare/@linagora/twake-mui@13.0.0...@linagora/twake-mui@13.1.0) (2026-10-13)
2
+
3
+
4
+ ### Features
5
+
6
+ * **twake-mui:** Migrate BarTitle from cozy-ui ([63e9e21](https://github.com/linagora/twake-ui/commit/63e9e21fee5ceaffe6355c6eca9fc7f2aee5500b))
7
+
1
8
  # @linagora/twake-mui [13.0.0](https://github.com/linagora/twake-ui/compare/@linagora/twake-mui@12.1.0...@linagora/twake-mui@13.0.0) (2026-10-12)
2
9
 
3
10
 
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import BarTitle from './index';
3
+ declare const meta: Meta<typeof BarTitle>;
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,35 @@
1
+ import { Box, Stack } from '@mui/material';
2
+ import React from 'react';
3
+ import BarTitle from './index';
4
+ const longTitle = 'Ada Lovelace, born Augusta Ada Byron, was an English mathematician and writer chiefly known for her work on the Analytical Engine';
5
+ const BarArea = ({ children }) => (React.createElement(Box, { sx: { border: '1px solid red' } }, children));
6
+ const meta = {
7
+ title: 'BarTitle',
8
+ component: BarTitle,
9
+ tags: ['autodocs'],
10
+ argTypes: {
11
+ children: { control: 'text' },
12
+ noWrap: { control: 'boolean' }
13
+ }
14
+ };
15
+ export default meta;
16
+ export const Default = {
17
+ args: {
18
+ children: 'My transactions',
19
+ noWrap: false
20
+ },
21
+ render: args => (React.createElement(BarArea, null,
22
+ React.createElement(BarTitle, { ...args })))
23
+ };
24
+ export const Screenshot = {
25
+ tags: ['argos'],
26
+ render: () => (React.createElement(Stack, { spacing: 4 },
27
+ React.createElement("section", null,
28
+ React.createElement("h3", null, "Basic usage"),
29
+ React.createElement(BarArea, null,
30
+ React.createElement(BarTitle, null, "My transactions"))),
31
+ React.createElement("section", null,
32
+ React.createElement("h3", null, "Long title with ellipsis"),
33
+ React.createElement(BarArea, null,
34
+ React.createElement(BarTitle, { noWrap: true }, longTitle)))))
35
+ };
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface BarTitleProps {
3
+ children?: React.ReactNode;
4
+ /** Truncates the title with an ellipsis instead of wrapping */
5
+ noWrap?: boolean;
6
+ }
7
+ declare const BarTitle: React.FC<BarTitleProps>;
8
+ export default BarTitle;
@@ -0,0 +1,5 @@
1
+ import { Box, Typography } from '@mui/material';
2
+ import React from 'react';
3
+ const BarTitle = ({ noWrap = false, children }) => (React.createElement(Box, { sx: { display: 'flex', alignItems: 'center', height: 48 } },
4
+ React.createElement(Typography, { variant: "h4", component: "h1", color: "textPrimary", noWrap: noWrap }, children)));
5
+ export default BarTitle;
package/dist/index.d.ts CHANGED
@@ -32,6 +32,7 @@ export { editAttribute } from './components/ActionsMenu/Actions/editAttribute';
32
32
  export { others } from './components/ActionsMenu/Actions/others';
33
33
  export { exportToText } from './components/ActionsMenu/Actions/exportToText';
34
34
  export { Avatar, default as AvatarDefault } from './components/Avatar';
35
+ export { default as BarTitle } from './components/BarTitle';
35
36
  export { Button, default as ButtonDefault } from './components/Button';
36
37
  export { default as BottomSheet } from './components/BottomSheet';
37
38
  export { default as BottomSheetItem } from './components/BottomSheet/BottomSheetItem';
@@ -96,6 +97,7 @@ export type { DownloadActionOptions, DownloadFileOptions } from './components/Ac
96
97
  export type { PrintActionOptions, PrintClient } from './components/ActionsMenu/Actions/print';
97
98
  export type { ExportToTextActionOptions } from './components/ActionsMenu/Actions/exportToText';
98
99
  export type { AvatarProps } from './components/Avatar';
100
+ export type { BarTitleProps } from './components/BarTitle';
99
101
  export type { ButtonProps } from './components/Button';
100
102
  export type { BottomSheetProps, BottomSheetSettings, BottomSheetToolbarProps } from './components/BottomSheet/types';
101
103
  export type { BottomSheetItemProps } from './components/BottomSheet/BottomSheetItem';
package/dist/index.js CHANGED
@@ -35,6 +35,7 @@ export { editAttribute } from './components/ActionsMenu/Actions/editAttribute';
35
35
  export { others } from './components/ActionsMenu/Actions/others';
36
36
  export { exportToText } from './components/ActionsMenu/Actions/exportToText';
37
37
  export { Avatar, default as AvatarDefault } from './components/Avatar';
38
+ export { default as BarTitle } from './components/BarTitle';
38
39
  export { Button, default as ButtonDefault } from './components/Button';
39
40
  export { default as BottomSheet } from './components/BottomSheet';
40
41
  export { default as BottomSheetItem } from './components/BottomSheet/BottomSheetItem';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@linagora/twake-mui",
3
3
  "type": "module",
4
- "version": "13.0.0",
4
+ "version": "13.1.0",
5
5
  "description": "MUI v9 theme system for Twake applications",
6
6
  "author": "Twake",
7
7
  "license": "MIT",