@zesty-io/material 0.9.0 → 0.10.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.
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { AutocompleteProps } from '@mui/material';
3
- export interface FieldTypeOneToManyProps extends Omit<AutocompleteProps<any, false, false, false>, 'onOpen' | 'renderInput'> {
3
+ export interface FieldTypeOneToManyProps extends Omit<AutocompleteProps<any, boolean, boolean, boolean>, 'onOpen' | 'renderInput'> {
4
4
  label?: string;
5
5
  helperText?: string;
6
6
  placeholder?: string;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { AutocompleteProps } from '@mui/material';
3
- export interface FieldTypeOneToOneProps extends Omit<AutocompleteProps<any, false, false, false>, 'onOpen' | 'renderInput'> {
3
+ export interface FieldTypeOneToOneProps extends Omit<AutocompleteProps<any, boolean, boolean, boolean>, 'onOpen' | 'renderInput'> {
4
4
  label?: string;
5
5
  helperText?: string;
6
6
  placeholder?: string;
@@ -8,7 +8,7 @@ export declare const IconButton: import("@emotion/styled").StyledComponent<{
8
8
  color?: "error" | "inherit" | "primary" | "secondary" | "info" | "success" | "warning" | "default" | undefined;
9
9
  disabled?: boolean | undefined;
10
10
  disableFocusRipple?: boolean | undefined;
11
- edge?: false | "start" | "end" | undefined;
11
+ edge?: false | "end" | "start" | undefined;
12
12
  size?: "small" | "medium" | "large" | "xsmall" | "xxsmall" | undefined;
13
13
  sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
14
14
  } & Omit<{
@@ -1,5 +1,4 @@
1
1
  import { Story, Meta } from '@storybook/react/types-6-0';
2
- import { TextFieldProps } from '@mui/material';
3
2
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
3
  export default _default;
5
- export declare const Default: Story<TextFieldProps>;
4
+ export declare const Default: Story<import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps | import("@mui/material").StandardTextFieldProps>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { SvgIconProps } from "@mui/material";
3
+ export declare const ScreenShare: (props: SvgIconProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { SvgIcon } from "@mui/material";
3
+ export const ScreenShare = (props) => (_jsx(SvgIcon, { ...props, children: _jsx("path", { d: "M11.225 10.711h1.99v1.282c0 0.1 0.042 0.167 0.127 0.202 0.084 0.036 0.168 0.014 0.252 -0.065l1.891 -1.891a0.45 0.45 0 0 0 0.132 -0.318 0.412 0.412 0 0 0 -0.13 -0.306l-1.894 -1.894c-0.084 -0.079 -0.168 -0.101 -0.252 -0.065 -0.084 0.035 -0.127 0.102 -0.127 0.202v1.282H11.225a2.832 2.832 0 0 0 -2.081 0.856 2.837 2.837 0 0 0 -0.854 2.083v1.498a0.764 0.764 0 0 0 0.791 0.786 0.755 0.755 0 0 0 0.78 -0.786v-1.5c0 -0.384 0.132 -0.708 0.395 -0.971 0.263 -0.263 0.586 -0.394 0.97 -0.394Zm-9.578 10.51a0.772 0.772 0 0 1 -0.785 -0.791 0.762 0.762 0 0 1 0.785 -0.781h20.707a0.768 0.768 0 0 1 0.785 0.788 0.761 0.761 0 0 1 -0.785 0.785H1.646Zm1.908 -3.072c-0.461 0 -0.859 -0.168 -1.198 -0.505a1.637 1.637 0 0 1 -0.506 -1.198v-11.892c0 -0.462 0.168 -0.862 0.506 -1.2 0.338 -0.34 0.737 -0.509 1.198 -0.509h16.891c0.462 0 0.863 0.168 1.201 0.508 0.34 0.34 0.509 0.739 0.509 1.201v11.892c0 0.461 -0.169 0.859 -0.509 1.198a1.644 1.644 0 0 1 -1.2 0.506H3.552Zm0 -1.703h16.891v-11.892H3.554v11.892Z", fill: "currentColor" }) }));
@@ -8,3 +8,4 @@ export { EditNote } from "./EditNote";
8
8
  export { FileTable } from "./FileTable";
9
9
  export { Brain } from "./Brain";
10
10
  export { Home } from "./Home";
11
+ export { ScreenShare } from './ScreenShare';
package/es/icons/index.js CHANGED
@@ -8,3 +8,4 @@ export { EditNote } from "./EditNote";
8
8
  export { FileTable } from "./FileTable";
9
9
  export { Brain } from "./Brain";
10
10
  export { Home } from "./Home";
11
+ export { ScreenShare } from './ScreenShare';
@@ -2,9 +2,6 @@ declare module "@mui/material/styles" {
2
2
  interface Palette {
3
3
  border: string;
4
4
  }
5
- interface Theme {
6
- typography: TypographyVariantsOptions;
7
- }
8
5
  }
9
6
  declare module "@mui/material/IconButton" {
10
7
  interface IconButtonPropsSizeOverrides {
package/es/theme/index.js CHANGED
@@ -9,22 +9,34 @@ const components = {
9
9
  }),
10
10
  },
11
11
  },
12
+ MuiTabs: {
13
+ styleOverrides: {
14
+ root: {
15
+ minHeight: "44px",
16
+ },
17
+ flexContainer: {
18
+ gap: "16px",
19
+ height: "44px",
20
+ },
21
+ },
22
+ },
12
23
  MuiTab: {
13
24
  styleOverrides: {
14
25
  root: ({ theme }) => ({
15
- padding: "8px",
16
- margin: "8px",
17
- borderRadius: "8px",
26
+ color: theme.palette.text.disabled,
27
+ paddingLeft: 0,
28
+ paddingRight: 0,
18
29
  minHeight: "unset",
19
30
  minWidth: "unset",
20
31
  textTransform: "none",
21
32
  "&:hover": {
22
- backgroundColor: theme.palette.grey[100],
33
+ color: theme.palette.text.primary,
23
34
  },
24
35
  "&.Mui-selected": {
25
- "&:hover": {
26
- backgroundColor: theme.palette.deepOrange[50],
27
- },
36
+ color: theme.palette.text.primary,
37
+ },
38
+ "& .MuiTab-iconWrapper": {
39
+ marginRight: "4px",
28
40
  },
29
41
  }),
30
42
  },
@@ -83,7 +95,7 @@ const components = {
83
95
  disableElevation: true,
84
96
  },
85
97
  styleOverrides: {
86
- groupedContained: ({ theme }) => ({
98
+ groupedContainedPrimary: ({ theme }) => ({
87
99
  color: theme.palette.primary.main,
88
100
  backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity),
89
101
  "&:hover": {
@@ -174,7 +186,7 @@ const components = {
174
186
  borderRadius: "4px",
175
187
  },
176
188
  sizeSmall: {
177
- padding: "4px",
189
+ padding: "6px",
178
190
  },
179
191
  },
180
192
  variants: [
@@ -259,6 +271,15 @@ const components = {
259
271
  },
260
272
  },
261
273
  },
274
+ MuiMenuItem: {
275
+ styleOverrides: {
276
+ root: {
277
+ " .MuiListItemIcon-root": {
278
+ minWidth: "32px",
279
+ },
280
+ },
281
+ },
282
+ },
262
283
  MuiAccordion: {
263
284
  styleOverrides: {
264
285
  root: ({ theme }) => ({
@@ -331,7 +352,7 @@ const components = {
331
352
  }),
332
353
  columnHeaders: ({ theme }) => ({
333
354
  borderColor: theme.palette.border,
334
- backgroundColor: theme.palette.grey[50],
355
+ backgroundColor: theme.palette.grey[100],
335
356
  }),
336
357
  columnHeader: {
337
358
  padding: "0 16px",
@@ -488,6 +509,29 @@ const components = {
488
509
  }),
489
510
  },
490
511
  },
512
+ MuiBreadcrumbs: {
513
+ styleOverrides: {
514
+ root: ({ theme }) => ({
515
+ '& button[aria-label="Show path"]': {
516
+ backgroundColor: "transparent",
517
+ margin: 0,
518
+ color: theme.palette.action.active,
519
+ svg: {
520
+ width: "20px",
521
+ height: "20px",
522
+ },
523
+ "&:hover": {
524
+ color: theme.palette.primary.main,
525
+ },
526
+ },
527
+ }),
528
+ separator: ({ theme }) => ({
529
+ color: theme.palette.grey[400],
530
+ height: "20px",
531
+ alignItems: "center",
532
+ }),
533
+ },
534
+ },
491
535
  MuiScopedCssBaseline: {
492
536
  styleOverrides: {
493
537
  root: ({ theme }) => ({
@@ -506,6 +550,13 @@ const components = {
506
550
  }),
507
551
  },
508
552
  },
553
+ MuiToggleButton: {
554
+ styleOverrides: {
555
+ sizeSmall: {
556
+ fontSize: "16px",
557
+ },
558
+ },
559
+ },
509
560
  };
510
561
  export let theme = createTheme({
511
562
  typography,
@@ -48,7 +48,7 @@ declare const darkThemePalette: {
48
48
  mode?: import("@mui/material").PaletteMode | undefined;
49
49
  tonalOffset?: import("@mui/material/styles/createPalette").PaletteTonalOffset | undefined;
50
50
  contrastThreshold?: number | undefined;
51
- common?: Partial<import("@mui/material/styles/createPalette").CommonColors> | undefined;
51
+ common?: Partial<import("@mui/material").CommonColors> | undefined;
52
52
  grey?: Partial<Color> | undefined;
53
53
  divider?: string | undefined;
54
54
  getContrastText?: ((background: string) => string) | undefined;
@@ -3,22 +3,27 @@ const typography = {
3
3
  h1: {
4
4
  fontSize: "36px",
5
5
  lineHeight: "44px",
6
+ letterSpacing: "-0.56px",
6
7
  },
7
8
  h2: {
8
9
  fontSize: "32px",
9
10
  lineHeight: "40px",
11
+ letterSpacing: "-0.56px",
10
12
  },
11
13
  h3: {
12
14
  fontSize: "28px",
13
15
  lineHeight: "36px",
16
+ letterSpacing: "-0.56px",
14
17
  },
15
18
  h4: {
16
19
  fontSize: "24px",
17
20
  lineHeight: "32px",
21
+ letterSpacing: "-0.56px",
18
22
  },
19
23
  h5: {
20
24
  fontSize: "20px",
21
25
  lineHeight: "28px",
26
+ letterSpacing: "-0.56px",
22
27
  },
23
28
  h6: {
24
29
  fontSize: "16px",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zesty-io/material",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Contains custom components which are in addition to the @mui design-system",
5
5
  "author": "Zesty.io",
6
6
  "license": "MIT",
@@ -29,8 +29,8 @@
29
29
  "dependencies": {
30
30
  "@emotion/react": "^11.9.0",
31
31
  "@emotion/styled": "^11.8.1",
32
- "@mui/icons-material": "^5.6.2",
33
- "@mui/material": "^5.6.4",
32
+ "@mui/icons-material": "^5.14.3",
33
+ "@mui/material": "^5.14.5",
34
34
  "@mui/x-date-pickers": "^5.0.0-alpha.5",
35
35
  "date-fns": "^2.28.0",
36
36
  "react-window": "^1.8.7"