@zesty-io/material 0.13.1 → 0.14.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,3 +1,4 @@
1
+ import { Theme } from "@mui/material/styles";
1
2
  declare module "@mui/material/styles" {
2
3
  interface Palette {
3
4
  border: string;
@@ -14,5 +15,5 @@ declare module "@mui/material/Button" {
14
15
  xsmall: true;
15
16
  }
16
17
  }
17
- export declare let theme: import("@mui/material/styles").Theme;
18
- export declare let darkTheme: import("@mui/material/styles").Theme;
18
+ export declare let theme: Theme;
19
+ export declare let darkTheme: Theme;
package/es/theme/index.js CHANGED
@@ -1,6 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
1
2
  import { lightThemePalette, darkThemePalette } from "./palette";
2
3
  import typography from "./typography";
3
4
  import { alpha, createTheme } from "@mui/material/styles";
5
+ import KeyboardArrowDownRoundedIcon from "@mui/icons-material/KeyboardArrowDownRounded";
4
6
  const components = {
5
7
  MuiFormLabel: {
6
8
  styleOverrides: {
@@ -217,7 +219,7 @@ const components = {
217
219
  MuiDialog: {
218
220
  styleOverrides: {
219
221
  paper: {
220
- borderRadius: "8px",
222
+ borderRadius: "4px",
221
223
  },
222
224
  paperWidthXs: {
223
225
  width: "480px",
@@ -306,12 +308,13 @@ const components = {
306
308
  },
307
309
  MuiChip: {
308
310
  styleOverrides: {
309
- root: {
311
+ root: ({ theme }) => ({
310
312
  borderRadius: "4px",
311
- },
313
+ }),
312
314
  // @ts-ignore
313
315
  colorDefault: ({ theme }) => ({
314
316
  backgroundColor: theme.palette.grey[100],
317
+ color: theme.palette.text.secondary,
315
318
  ":hover": {
316
319
  backgroundColor: theme.palette.grey[200],
317
320
  },
@@ -319,6 +322,28 @@ const components = {
319
322
  backgroundColor: theme.palette.grey[300],
320
323
  },
321
324
  }),
325
+ colorInfo: ({ theme }) => ({
326
+ backgroundColor: theme.palette.blue[100],
327
+ color: theme.palette.blue[600],
328
+ }),
329
+ colorSuccess: ({ theme }) => ({
330
+ backgroundColor: theme.palette.green[50],
331
+ color: theme.palette.green[600],
332
+ }),
333
+ colorWarning: ({ theme }) => ({
334
+ backgroundColor: theme.palette.yellow[100],
335
+ color: theme.palette.yellow[600],
336
+ }),
337
+ colorError: ({ theme }) => ({
338
+ backgroundColor: theme.palette.red[100],
339
+ color: theme.palette.red[600],
340
+ }),
341
+ sizeSmall: ({ theme }) => ({
342
+ "& .MuiChip-label": {
343
+ ...theme.typography.body3,
344
+ fontWeight: 600,
345
+ },
346
+ }),
322
347
  },
323
348
  },
324
349
  MuiAlert: {
@@ -596,7 +621,17 @@ const components = {
596
621
  color: "text.disabled",
597
622
  },
598
623
  },
599
- }
624
+ },
625
+ MuiAutocomplete: {
626
+ defaultProps: {
627
+ popupIcon: _jsx(KeyboardArrowDownRoundedIcon, {}),
628
+ },
629
+ },
630
+ MuiSelect: {
631
+ defaultProps: {
632
+ IconComponent: KeyboardArrowDownRoundedIcon,
633
+ },
634
+ },
600
635
  };
601
636
  export let theme = createTheme({
602
637
  typography,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zesty-io/material",
3
- "version": "0.13.1",
3
+ "version": "0.14.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",