@linagora/twake-mui 9.0.0 → 9.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,27 @@
1
+ # @linagora/twake-mui [9.2.0](https://github.com/linagora/twake-ui/compare/@linagora/twake-mui@9.1.0...@linagora/twake-mui@9.2.0) (2026-09-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **twake-mui:** Tint light-mode shadows with Grey 900, like cozy-ui ([4c74b68](https://github.com/linagora/twake-ui/commit/4c74b6861f6160ce174b7022ec2b42a64f5d5ecd))
7
+
8
+
9
+ ### Features
10
+
11
+ * Read the palette from twake-css ([7c0a9e6](https://github.com/linagora/twake-ui/commit/7c0a9e6719d9520bdfdbd7b32b9d3132f2ae7d64))
12
+
13
+
14
+ ### Dependencies
15
+
16
+ * **@linagora/twake-css:** upgraded to 1.0.0
17
+
18
+ # @linagora/twake-mui [9.1.0](https://github.com/linagora/twake-ui/compare/@linagora/twake-mui@9.0.0...@linagora/twake-mui@9.1.0) (2026-09-22)
19
+
20
+
21
+ ### Features
22
+
23
+ * **twake-mui:** Migrate Layout from cozy-ui ([fdcb499](https://github.com/linagora/twake-ui/commit/fdcb499c9790e4b8fc7aaaa12087a8eebf250d42))
24
+
1
25
  # @linagora/twake-mui [9.0.0](https://github.com/linagora/twake-ui/compare/@linagora/twake-mui@8.0.0...@linagora/twake-mui@9.0.0) (2026-09-21)
2
26
 
3
27
 
@@ -1,12 +1,19 @@
1
- import { ButtonProps as MuiButtonProps } from '@mui/material';
1
+ import { ButtonProps as MuiButtonProps, ButtonTypeMap as MuiButtonTypeMap } from '@mui/material';
2
+ import { OverridableComponent, OverrideProps } from '@mui/material/OverridableComponent';
2
3
  import React from 'react';
3
4
  declare const legacyVariants: {
4
5
  readonly primary: "contained";
5
6
  readonly secondary: "outlined";
6
7
  };
7
8
  type LegacyVariant = keyof typeof legacyVariants;
8
- export interface ButtonProps extends Omit<MuiButtonProps, 'variant'> {
9
- variant?: MuiButtonProps['variant'] | LegacyVariant;
9
+ export interface ButtonTypeMap<AdditionalProps = object, RootComponent extends React.ElementType = 'button'> {
10
+ props: AdditionalProps & Omit<MuiButtonTypeMap['props'], 'variant'> & {
11
+ variant?: MuiButtonProps['variant'] | LegacyVariant;
12
+ };
13
+ defaultComponent: RootComponent;
10
14
  }
11
- export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
15
+ export type ButtonProps<RootComponent extends React.ElementType = 'button', AdditionalProps = object> = OverrideProps<ButtonTypeMap<AdditionalProps, RootComponent>, RootComponent>;
16
+ export declare const Button: OverridableComponent<ButtonTypeMap> & {
17
+ displayName?: string;
18
+ };
12
19
  export default Button;
@@ -0,0 +1,7 @@
1
+ import { SxProps } from '@mui/material';
2
+ import { Theme } from '@mui/material/styles';
3
+ import React from 'react';
4
+ export interface ContentProps extends React.ComponentPropsWithoutRef<'div'> {
5
+ sx?: SxProps<Theme>;
6
+ }
7
+ export declare const Content: (props: ContentProps) => React.ReactElement;
@@ -0,0 +1,29 @@
1
+ import { styled } from '@mui/material/styles';
2
+ import React, { useContext } from 'react';
3
+ import { LayoutContext } from './Layout';
4
+ const ContentRoot = styled('div', {
5
+ shouldForwardProp: prop => prop !== 'monoColumn'
6
+ })(({ theme }) => ({
7
+ position: 'relative',
8
+ display: 'flex',
9
+ flexDirection: 'column',
10
+ flex: '1 1 auto',
11
+ boxSizing: 'border-box',
12
+ overflow: 'hidden auto',
13
+ backgroundColor: theme.vars.palette.background.paper,
14
+ height: '100%',
15
+ variants: [
16
+ {
17
+ props: { monoColumn: false },
18
+ style: {
19
+ margin: '16px 16px 16px 0',
20
+ borderRadius: 16,
21
+ [theme.breakpoints.down('lg')]: { margin: 0, borderRadius: 0 }
22
+ }
23
+ }
24
+ ]
25
+ }));
26
+ export const Content = (props) => {
27
+ const { monoColumn } = useContext(LayoutContext);
28
+ return React.createElement(ContentRoot, { role: "main", monoColumn: monoColumn, ...props });
29
+ };
@@ -0,0 +1,21 @@
1
+ import { SxProps } from '@mui/material';
2
+ import { CSSObject, Theme } from '@mui/material/styles';
3
+ import React from 'react';
4
+ interface LayoutContextValue {
5
+ monoColumn: boolean;
6
+ withTopBar: boolean;
7
+ }
8
+ export declare const LayoutContext: React.Context<LayoutContextValue>;
9
+ export interface TwoPanesProps {
10
+ monoColumn?: boolean;
11
+ }
12
+ export declare const twoPanes: (theme: Theme) => CSSObject;
13
+ export interface LayoutProps extends React.ComponentPropsWithoutRef<'div'> {
14
+ sx?: SxProps<Theme>;
15
+ /** Used to add/remove top spacing when using with or without a topbar */
16
+ withTopBar?: boolean;
17
+ /** Should be true if no sidebar in the app */
18
+ monoColumn?: boolean;
19
+ }
20
+ export declare const Layout: ({ children, withTopBar, monoColumn, ...props }: LayoutProps) => React.ReactElement;
21
+ export {};
@@ -0,0 +1,31 @@
1
+ import { styled } from '@mui/material/styles';
2
+ import React, { createContext, useMemo } from 'react';
3
+ import { SIDEBAR_MOBILE_HEIGHT } from '../Sidebar';
4
+ export const LayoutContext = createContext({
5
+ monoColumn: false,
6
+ withTopBar: true
7
+ });
8
+ export const twoPanes = (theme) => ({
9
+ backgroundColor: theme.vars.palette.background.default,
10
+ [theme.breakpoints.down('lg')]: {
11
+ height: `calc(100vh - var(${SIDEBAR_MOBILE_HEIGHT}, 0px))`,
12
+ backgroundColor: 'transparent'
13
+ }
14
+ });
15
+ const LayoutRoot = styled('div', {
16
+ shouldForwardProp: prop => prop !== 'monoColumn'
17
+ })(({ theme }) => ({
18
+ boxSizing: 'border-box',
19
+ display: 'flex',
20
+ maxWidth: '100%',
21
+ width: '100%',
22
+ height: '100%',
23
+ backgroundColor: theme.vars.palette.background.paper,
24
+ color: theme.vars.palette.text.primary,
25
+ variants: [{ props: { monoColumn: false }, style: twoPanes(theme) }]
26
+ }));
27
+ export const Layout = ({ children, withTopBar = true, monoColumn = false, ...props }) => {
28
+ const value = useMemo(() => ({ monoColumn, withTopBar }), [monoColumn, withTopBar]);
29
+ return (React.createElement(LayoutContext.Provider, { value: value },
30
+ React.createElement(LayoutRoot, { monoColumn: monoColumn, ...props }, children)));
31
+ };
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Layout } from './index';
3
+ declare const meta: Meta<typeof Layout>;
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,89 @@
1
+ import { Check, Download, Warn } from '@linagora/twake-icons';
2
+ import { Box, Typography } from '@mui/material';
3
+ import React, { useState } from 'react';
4
+ import { Content, Layout, Main } from './index';
5
+ import { Nav } from '../Nav';
6
+ import { NavDesktopDropdown } from '../NavDesktopDropdown';
7
+ import { NavDesktopLimiter } from '../NavDesktopLimiter';
8
+ import { NavIcon } from '../NavIcon';
9
+ import { NavItem } from '../NavItem';
10
+ import { NavLink } from '../NavLink';
11
+ import { NavText } from '../NavText';
12
+ import { Sidebar } from '../Sidebar';
13
+ const paragraph = 'Ada Lovelace was an English mathematician chiefly known for her work on Charles Babbage’s proposed mechanical general-purpose computer, the Analytical Engine. She was the first to recognise that the machine had applications beyond pure calculation.';
14
+ const TopBar = () => (React.createElement(Box, { id: "coz-bar", role: "banner", sx: theme => ({
15
+ display: 'flex',
16
+ alignItems: 'center',
17
+ px: 2,
18
+ minHeight: 48,
19
+ width: '100%',
20
+ boxSizing: 'border-box',
21
+ backgroundColor: theme.vars.palette.background.paper,
22
+ borderBottom: `1px solid ${theme.vars.palette.divider}`,
23
+ position: 'fixed',
24
+ top: 0,
25
+ right: 0,
26
+ zIndex: theme.zIndex.appBar,
27
+ [theme.breakpoints.up('lg')]: { position: 'relative' }
28
+ }) }, "Fake TopBar"));
29
+ const LayoutDemo = ({ monoColumn = false, withTopBar = true, ...props }) => {
30
+ const [active, setActive] = useState(['Section 1', 'Subsection 1']);
31
+ const makeProps = (route) => ({
32
+ selected: active.slice(0, route.length).join('/') === route.join('/'),
33
+ onClick: () => setActive(route)
34
+ });
35
+ return (React.createElement(Box, { sx: { height: '100vh', display: 'flex', flexDirection: 'column' } },
36
+ withTopBar && React.createElement(TopBar, null),
37
+ React.createElement(Box, { role: "application", sx: { flex: '1 1 auto', minHeight: 0 } },
38
+ React.createElement(Layout, { monoColumn: monoColumn, withTopBar: withTopBar, ...props },
39
+ !monoColumn && (React.createElement(Sidebar, null,
40
+ React.createElement(Nav, null,
41
+ React.createElement(NavItem, null,
42
+ React.createElement(NavLink, { ...makeProps(['Section 1']) },
43
+ React.createElement(NavIcon, { icon: Warn }),
44
+ React.createElement(NavText, null, "Section 1"))),
45
+ React.createElement(NavDesktopLimiter, null, Array.from(Array(10).keys()).map(i => (React.createElement(NavItem, { secondary: true, key: i },
46
+ React.createElement(NavLink, { ...makeProps(['Section 1', `Subsection ${i}`]) },
47
+ React.createElement(NavText, null,
48
+ "Subsection ",
49
+ i)))))),
50
+ React.createElement(NavItem, null,
51
+ React.createElement(NavLink, { ...makeProps(['Section 2']) },
52
+ React.createElement(NavIcon, { icon: Check }),
53
+ React.createElement(NavText, null, "Section 2"))),
54
+ React.createElement(NavItem, null,
55
+ React.createElement(NavLink, { ...makeProps(['Section 3']) },
56
+ React.createElement(NavIcon, { icon: Download }),
57
+ React.createElement(NavText, null, "Section 3"))),
58
+ React.createElement(NavDesktopDropdown, { label: "Section 4" }, Array.from(Array(6).keys()).map(i => (React.createElement(NavItem, { secondary: true, key: i },
59
+ React.createElement(NavLink, { ...makeProps(['Section 4', `Subsection ${i}`]) },
60
+ React.createElement(NavText, null,
61
+ "Subsection ",
62
+ i))))))))),
63
+ React.createElement(Main, null,
64
+ React.createElement(Content, { sx: { p: 2 } },
65
+ React.createElement(Typography, { variant: "h5" }, active.join(' / ')),
66
+ React.createElement("p", null, "---Start---"),
67
+ Array.from(Array(6).keys()).map(i => (React.createElement("p", { key: i }, paragraph))),
68
+ React.createElement("p", null, "---END---")))))));
69
+ };
70
+ const meta = {
71
+ title: 'Layout',
72
+ component: Layout,
73
+ parameters: { layout: 'fullscreen' },
74
+ tags: ['autodocs'],
75
+ argTypes: {
76
+ monoColumn: { control: 'boolean' },
77
+ withTopBar: { control: 'boolean' }
78
+ },
79
+ render: args => React.createElement(LayoutDemo, { ...args })
80
+ };
81
+ export default meta;
82
+ export const Default = {
83
+ args: { monoColumn: false, withTopBar: true }
84
+ };
85
+ // Visual Regression - Combined view for Argos testing
86
+ export const Screenshot = {
87
+ tags: ['argos'],
88
+ args: { monoColumn: false, withTopBar: true }
89
+ };
@@ -0,0 +1,7 @@
1
+ import { SxProps } from '@mui/material';
2
+ import { Theme } from '@mui/material/styles';
3
+ import React from 'react';
4
+ export interface MainProps extends React.ComponentPropsWithoutRef<'main'> {
5
+ sx?: SxProps<Theme>;
6
+ }
7
+ export declare const Main: (props: MainProps) => React.ReactElement;
@@ -0,0 +1,37 @@
1
+ import { styled } from '@mui/material/styles';
2
+ import React, { useContext } from 'react';
3
+ import { LayoutContext, twoPanes } from './Layout';
4
+ /** Height of the top bar, which is out of the Layout but overlaps it */
5
+ const TOP_BAR_HEIGHT = 48;
6
+ const MainRoot = styled('main', {
7
+ shouldForwardProp: prop => prop !== 'monoColumn' && prop !== 'withTopBar'
8
+ })(({ theme }) => ({
9
+ display: 'flex',
10
+ flexDirection: 'column',
11
+ position: 'relative',
12
+ flex: '1 1 auto',
13
+ boxSizing: 'border-box',
14
+ overflow: 'hidden',
15
+ height: '100%',
16
+ variants: [
17
+ { props: { monoColumn: false }, style: twoPanes(theme) },
18
+ {
19
+ props: { withTopBar: true },
20
+ style: {
21
+ [theme.breakpoints.down('lg')]: {
22
+ '&::before': {
23
+ content: '""',
24
+ display: 'block',
25
+ height: TOP_BAR_HEIGHT,
26
+ width: '100%',
27
+ backgroundColor: theme.vars.palette.background.paper
28
+ }
29
+ }
30
+ }
31
+ }
32
+ ]
33
+ }));
34
+ export const Main = (props) => {
35
+ const { monoColumn, withTopBar } = useContext(LayoutContext);
36
+ return React.createElement(MainRoot, { monoColumn: monoColumn, withTopBar: withTopBar, ...props });
37
+ };
@@ -0,0 +1,6 @@
1
+ export { Layout } from './Layout';
2
+ export { Main } from './Main';
3
+ export { Content } from './Content';
4
+ export type { LayoutProps } from './Layout';
5
+ export type { MainProps } from './Main';
6
+ export type { ContentProps } from './Content';
@@ -0,0 +1,3 @@
1
+ export { Layout } from './Layout';
2
+ export { Main } from './Main';
3
+ export { Content } from './Content';
@@ -1,6 +1,7 @@
1
1
  import { SxProps } from '@mui/material';
2
2
  import { Theme } from '@mui/material/styles';
3
3
  import React from 'react';
4
+ export declare const SIDEBAR_MOBILE_HEIGHT = "--sidebarHeight";
4
5
  export interface SidebarProps extends React.ComponentPropsWithoutRef<'aside'> {
5
6
  sx?: SxProps<Theme>;
6
7
  }
@@ -1,5 +1,9 @@
1
+ import { GlobalStyles } from '@mui/material';
1
2
  import { styled } from '@mui/material/styles';
2
- export const Sidebar = styled('aside')(({ theme }) => ({
3
+ import React from 'react';
4
+ export const SIDEBAR_MOBILE_HEIGHT = '--sidebarHeight';
5
+ const makeSidebarHeightCSSVar = (React.createElement(GlobalStyles, { styles: { ':root': { [SIDEBAR_MOBILE_HEIGHT]: '52px' } } }));
6
+ const SidebarRoot = styled('aside')(({ theme }) => ({
3
7
  width: 236,
4
8
  flex: '0 0 auto',
5
9
  display: 'flex',
@@ -12,10 +16,13 @@ export const Sidebar = styled('aside')(({ theme }) => ({
12
16
  bottom: 0,
13
17
  left: 0,
14
18
  width: '100%',
15
- height: 52,
19
+ height: `var(${SIDEBAR_MOBILE_HEIGHT})`,
16
20
  boxSizing: 'content-box',
17
21
  display: 'block',
18
22
  borderTop: `1px solid ${theme.vars.palette.divider}`,
19
23
  zIndex: theme.zIndex.appBar
20
24
  }
21
25
  }));
26
+ export const Sidebar = props => (React.createElement(React.Fragment, null,
27
+ makeSidebarHeightCSSVar,
28
+ React.createElement(SidebarRoot, { ...props })));
package/dist/index.d.ts CHANGED
@@ -12,7 +12,8 @@ export { default as Chip } from './components/Chip';
12
12
  export { Dialog, default as DialogDefault } from './components/Dialog';
13
13
  export { Tabs, default as TabsDefault } from './components/Tabs';
14
14
  export { Switch, default as SwitchDefault } from './components/Switch';
15
- export { Sidebar } from './components/Sidebar';
15
+ export { Sidebar, SIDEBAR_MOBILE_HEIGHT } from './components/Sidebar';
16
+ export { Layout, Main, Content } from './components/Layout';
16
17
  export { Nav } from './components/Nav';
17
18
  export { NavItem } from './components/NavItem';
18
19
  export { NavLink } from './components/NavLink';
@@ -32,6 +33,7 @@ export type { DialogProps, DialogSize } from './components/Dialog';
32
33
  export type { TabsProps } from './components/Tabs';
33
34
  export type { SwitchProps } from './components/Switch';
34
35
  export type { SidebarProps } from './components/Sidebar';
36
+ export type { LayoutProps, MainProps, ContentProps } from './components/Layout';
35
37
  export type { NavProps } from './components/Nav';
36
38
  export type { NavItemProps } from './components/NavItem';
37
39
  export type { NavLinkProps } from './components/NavLink';
package/dist/index.js CHANGED
@@ -15,7 +15,8 @@ export { default as Chip } from './components/Chip';
15
15
  export { Dialog, default as DialogDefault } from './components/Dialog';
16
16
  export { Tabs, default as TabsDefault } from './components/Tabs';
17
17
  export { Switch, default as SwitchDefault } from './components/Switch';
18
- export { Sidebar } from './components/Sidebar';
18
+ export { Sidebar, SIDEBAR_MOBILE_HEIGHT } from './components/Sidebar';
19
+ export { Layout, Main, Content } from './components/Layout';
19
20
  export { Nav } from './components/Nav';
20
21
  export { NavItem } from './components/NavItem';
21
22
  export { NavLink } from './components/NavLink';
@@ -1,6 +1,6 @@
1
+ import paletteJson from '@linagora/twake-css/palette.json';
1
2
  import { alpha } from '@mui/material/styles';
2
3
  import { deepmerge } from '@mui/utils';
3
- import paletteJson from './palette.json';
4
4
  const paletteData = paletteJson;
5
5
  export const makePalette = (mode = 'light', overrides = {}) => {
6
6
  const palette = deepmerge(paletteData, overrides);
@@ -1,3 +1,3 @@
1
1
  import { Shadows } from '@mui/material/styles';
2
2
  import { PaletteJson } from './types';
3
- export declare const makeShadows: (palette?: PaletteJson) => Shadows;
3
+ export declare const makeShadows: (mode?: "light" | "dark", palette?: PaletteJson) => Shadows;
@@ -1,5 +1,5 @@
1
+ import paletteJson from '@linagora/twake-css/palette.json';
1
2
  import { alpha } from '@mui/material/styles';
2
- import paletteJson from './palette.json';
3
3
  const paletteData = paletteJson;
4
4
  /**
5
5
  * Each elevation is two offset layers plus a constant hairline outline.
@@ -39,8 +39,8 @@ const OUTLINE_OPACITY = 0.12;
39
39
  * through the type. Kept to stay iso with cozy-ui.
40
40
  */
41
41
  const EXTRA_ELEVATION_OPACITY = 0.04;
42
- export const makeShadows = (palette = paletteData) => {
43
- const shadowColor = palette.Common.black;
42
+ export const makeShadows = (mode = 'light', palette = paletteData) => {
43
+ const shadowColor = mode === 'light' ? palette.Grey[900] : palette.Common.black;
44
44
  const outline = `0px 0px 0px 0.5px ${alpha(shadowColor, OUTLINE_OPACITY)}`;
45
45
  const shadows = elevations.map(([y1, blur1, spread1, o1, y2, blur2, spread2, o2]) => [
46
46
  `0px ${y1}px ${blur1}px ${spread1}px ${alpha(shadowColor, o1)}`,
@@ -25,14 +25,20 @@ const themesCommonConfig = {
25
25
  export const makeTheme = (mode = 'light', paletteOverrides, themeOptions) => {
26
26
  const baseOptions = {
27
27
  ...themesCommonConfig,
28
- cssVariables: { colorSchemeSelector: 'data-theme' },
28
+ cssVariables: { colorSchemeSelector: 'data-theme', cssVarPrefix: 'twake' },
29
29
  defaultColorScheme: mode,
30
30
  colorSchemes: {
31
- light: { palette: makePalette('light', paletteOverrides) },
32
- dark: { palette: makePalette('dark', paletteOverrides) }
31
+ light: {
32
+ palette: makePalette('light', paletteOverrides),
33
+ shadows: makeShadows('light')
34
+ },
35
+ dark: {
36
+ palette: makePalette('dark', paletteOverrides),
37
+ shadows: makeShadows('dark')
38
+ }
33
39
  },
34
40
  typography: makeTypography(),
35
- shadows: makeShadows(),
41
+ shadows: makeShadows(mode),
36
42
  components: overrides
37
43
  };
38
44
  return createTheme(deepmerge(baseOptions, themeOptions ?? {}));
@@ -1,38 +1,9 @@
1
- import { TypographyVariantsOptions } from '@mui/material/styles';
2
- export interface CommonColor {
3
- white: string;
4
- black: string;
5
- }
6
- export interface PaletteColor {
7
- 50: string;
8
- 100: string;
9
- 200: string;
10
- 300: string;
11
- 400: string;
12
- 500: string;
13
- 600: string;
14
- 700: string;
15
- 800: string;
16
- 900: string;
17
- ContrastText?: string;
18
- }
19
- export interface GreyPalette {
20
- 50: string;
21
- 100: string;
22
- 200: string;
23
- 300: string;
24
- 400: string;
25
- 500: string;
26
- 600: string;
27
- 700: string;
28
- 800: string;
29
- 900: string;
30
- A100: string;
31
- A200: string;
32
- A400: string;
33
- A700: string;
34
- A900: string;
35
- }
1
+ import paletteJson from '@linagora/twake-css/palette.json';
2
+ import { Shadows, TypographyVariantsOptions } from '@mui/material/styles';
3
+ export type PaletteJson = typeof paletteJson;
4
+ export type PaletteColor = PaletteJson['Primary'];
5
+ export type GreyPalette = PaletteJson['Grey'];
6
+ export type CommonColor = PaletteJson['Common'];
36
7
  export interface TextPalette {
37
8
  primary: string;
38
9
  secondary: string;
@@ -61,16 +32,6 @@ export interface BorderPalette {
61
32
  opacity: number;
62
33
  ghostOpacity: number;
63
34
  }
64
- export interface PaletteJson {
65
- Primary: PaletteColor;
66
- Secondary: PaletteColor;
67
- Error: PaletteColor;
68
- Warning: PaletteColor;
69
- Success: PaletteColor;
70
- Info: Omit<PaletteColor, 'ContrastText'>;
71
- Grey: GreyPalette;
72
- Common: CommonColor;
73
- }
74
35
  export type TypographyOptions = TypographyVariantsOptions;
75
36
  export interface TypographyConfig {
76
37
  fontFamily?: string;
@@ -102,6 +63,9 @@ export type MakeTypography = () => TypographyOptions;
102
63
  * `theme.palette.background.contrast` get a type error.
103
64
  */
104
65
  declare module '@mui/material/styles' {
66
+ interface ColorSystemOptions {
67
+ shadows?: Shadows;
68
+ }
105
69
  interface CssThemeVariables {
106
70
  enabled: true;
107
71
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@linagora/twake-mui",
3
3
  "type": "module",
4
- "version": "9.0.0",
4
+ "version": "9.2.0",
5
5
  "description": "MUI v9 theme system for Twake applications",
6
6
  "author": "Twake",
7
7
  "license": "MIT",
@@ -40,7 +40,7 @@
40
40
  "build": "tsc",
41
41
  "build:doc": "storybook build --output-dir storybook-static",
42
42
  "start": "tsc --watch",
43
- "test": "echo \"Error: no test specified\" && exit 1",
43
+ "test": "vitest run --project unit",
44
44
  "lint": "eslint src --ext .ts,.tsx",
45
45
  "lint:fix": "eslint src --ext .ts,.tsx --fix",
46
46
  "clean": "rm -rf dist",
@@ -58,6 +58,7 @@
58
58
  "twake-i18n": ">=0.5.0"
59
59
  },
60
60
  "dependencies": {
61
+ "@linagora/twake-css": "^1.0.0",
61
62
  "@mui/utils": "^9.2.0",
62
63
  "classnames": "^2.5.1"
63
64
  },
@@ -1,100 +0,0 @@
1
- {
2
- "Primary": {
3
- "50": "#f6fbff",
4
- "100": "#e3f1ff",
5
- "200": "#d2e9ff",
6
- "300": "#bfdfff",
7
- "400": "#7bbdff",
8
- "500": "#46a2ff",
9
- "600": "#0a84ff",
10
- "700": "#006bd8",
11
- "800": "#0157ad",
12
- "900": "#082139",
13
- "ContrastText": "#fff"
14
- },
15
- "Secondary": {
16
- "50": "#f1f5fa",
17
- "100": "#e8f0fa",
18
- "200": "#d1e0f2",
19
- "300": "#b5d1f1",
20
- "400": "#96bce8",
21
- "500": "#85b5ec",
22
- "600": "#5c9ce6",
23
- "700": "#5085c3",
24
- "800": "#243b55",
25
- "900": "#081f39",
26
- "ContrastText": "#fff"
27
- },
28
- "Error": {
29
- "50": "#fffbfe",
30
- "100": "#fceeee",
31
- "200": "#ffd2d7",
32
- "300": "#ff939d",
33
- "400": "#ff7a87",
34
- "500": "#ff4d5e",
35
- "600": "#ff3347",
36
- "700": "#d32c3c",
37
- "800": "#b52c39",
38
- "900": "#7a1e27",
39
- "ContrastText": "#fff"
40
- },
41
- "Warning": {
42
- "50": "#fff8e1",
43
- "100": "#ffecb3",
44
- "200": "#ffe082",
45
- "300": "#ffd54f",
46
- "400": "#ffca28",
47
- "500": "#ffb300",
48
- "600": "#ff8f00",
49
- "700": "#ff6f00",
50
- "800": "#b5672c",
51
- "900": "#281c07",
52
- "ContrastText": "#fff"
53
- },
54
- "Success": {
55
- "50": "#f3fff5",
56
- "100": "#e3ffe7",
57
- "200": "#b9f6ca",
58
- "300": "#97eca1",
59
- "400": "#66e475",
60
- "500": "#38c949",
61
- "600": "#00c853",
62
- "700": "#00ad48",
63
- "800": "#245538",
64
- "900": "#08250b",
65
- "ContrastText": "#fff"
66
- },
67
- "Info": {
68
- "50": "#edffff",
69
- "100": "#d4feff",
70
- "200": "#affdff",
71
- "300": "#86f5f7",
72
- "400": "#4ee2e5",
73
- "500": "#1de9b6",
74
- "600": "#00bfa5",
75
- "700": "#00796b",
76
- "800": "#004345",
77
- "900": "#002526"
78
- },
79
- "Grey": {
80
- "50": "#FBFDFF",
81
- "100": "#F3F6F9",
82
- "200": "#EDF2F7",
83
- "300": "#E1E3E6",
84
- "400": "#C5C7CA",
85
- "500": "#AAACAE",
86
- "600": "#909294",
87
- "700": "#757779",
88
- "800": "#4E5052",
89
- "900": "#424244",
90
- "A100": "#FCFCFC",
91
- "A200": "#E5ECF3",
92
- "A400": "#2C3039",
93
- "A700": "#5D6169",
94
- "A900": "#1C1B1F"
95
- },
96
- "Common": {
97
- "white": "#fff",
98
- "black": "#000"
99
- }
100
- }