@nethru/ui 2.0.14 → 2.0.15

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,5 +1,5 @@
1
1
  import { forwardRef, useMemo } from "react";
2
- import { Box, Grid } from "@mui/material";
2
+ import { Box, Grid2 } from "@mui/material";
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
4
  import { jsxs as _jsxs } from "react/jsx-runtime";
5
5
  const ColumnedSection = /*#__PURE__*/forwardRef(({
@@ -26,15 +26,14 @@ const ColumnedSection = /*#__PURE__*/forwardRef(({
26
26
  md: point
27
27
  };
28
28
  }, [columns, breakpoints]);
29
- return /*#__PURE__*/_jsx(Grid, {
29
+ return /*#__PURE__*/_jsx(Grid2, {
30
30
  ref: ref,
31
31
  container: true,
32
32
  spacing: spacing,
33
33
  alignItems: "stretch",
34
34
  ...props,
35
- children: contents.map((content, index) => /*#__PURE__*/_jsxs(Grid, {
36
- item: true,
37
- ...arrangedBreakpoints,
35
+ children: contents.map((content, index) => /*#__PURE__*/_jsxs(Grid2, {
36
+ size: arrangedBreakpoints,
38
37
  children: [labels[index], /*#__PURE__*/_jsx(Box, {
39
38
  className: showBox ? 'MuiGrid-box' : undefined,
40
39
  children: content
@@ -1,6 +1,7 @@
1
1
  import { forwardRef, useCallback, useMemo, useState } from "react";
2
2
  import { Box, FormHelperText } from "@mui/material";
3
- import { DataGridPro, koKR } from "@mui/x-data-grid-pro";
3
+ import { DataGridPro } from "@mui/x-data-grid-pro";
4
+ import { koKR } from "@mui/x-data-grid-pro/locales";
4
5
  import { jsx as _jsx } from "react/jsx-runtime";
5
6
  import { jsxs as _jsxs } from "react/jsx-runtime";
6
7
  const PropertyTable = /*#__PURE__*/forwardRef(({
@@ -1,5 +1,6 @@
1
1
  import { forwardRef, useCallback } from "react";
2
- import { DataGridPro as MuiDataGridPro, GridToolbarQuickFilter, koKR } from "@mui/x-data-grid-pro";
2
+ import { DataGridPro as MuiDataGridPro, GridToolbarQuickFilter } from "@mui/x-data-grid-pro";
3
+ import { koKR } from "@mui/x-data-grid-pro/locales";
3
4
  import { Box, Stack } from "@mui/material";
4
5
  import Footer from "./Footer";
5
6
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import { forwardRef, useCallback, useEffect, useMemo, useRef, useState } from "react";
2
- import { Box, Grid, IconButton, Stack, Tooltip } from '@mui/material';
2
+ import { Box, Grid2, IconButton, Stack, Tooltip } from '@mui/material';
3
3
  import { blueGrey, grey } from "../colors";
4
4
  import { SplitLayoutIcon } from "../assets/icons";
5
5
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -75,7 +75,7 @@ const SplitLayout = /*#__PURE__*/forwardRef(({
75
75
  if (!aside) setAsidePortion(0);else if (asidePortion === 0) setAsidePortion(defaultAsidePortion);
76
76
  // eslint-disable-next-line
77
77
  }, [aside]);
78
- return /*#__PURE__*/_jsxs(Grid, {
78
+ return /*#__PURE__*/_jsxs(Grid2, {
79
79
  container: true,
80
80
  ref: containerRef,
81
81
  columns: 100,
@@ -85,17 +85,15 @@ const SplitLayout = /*#__PURE__*/forwardRef(({
85
85
  ...sx
86
86
  },
87
87
  ...props,
88
- children: [/*#__PURE__*/_jsxs(Grid, {
89
- item: true,
88
+ children: [/*#__PURE__*/_jsxs(Grid2, {
90
89
  component: "section",
91
- xs: 100 - asidePortion,
90
+ size: 100 - asidePortion,
92
91
  sx: sectionStyles,
93
92
  children: [children, footer]
94
- }), aside && /*#__PURE__*/_jsxs(Grid, {
93
+ }), aside && /*#__PURE__*/_jsxs(Grid2, {
95
94
  ref: asideRef,
96
- item: true,
97
95
  component: "aside",
98
- xs: asidePortion,
96
+ size: asidePortion,
99
97
  sx: {
100
98
  position: 'relative'
101
99
  },
@@ -6,6 +6,7 @@
6
6
  }
7
7
  .container.opened {
8
8
  width: calc(var(--primary-menu-width) + var(--secondary-menu-width));
9
+ min-width: calc(var(--primary-menu-width) + var(--secondary-menu-width));
9
10
  }
10
11
  .container.closed {
11
12
  width: calc(var(--primary-menu-width) + var(--secondary-menu-collapsed-width));
@@ -41,6 +41,7 @@ import * as dialogTitle from "./mui/dialogTitle";
41
41
  import * as dialogActions from "./mui/dialogActions";
42
42
  import * as dialogContent from "./mui/dialogContent";
43
43
  import * as grid from "./mui/grid";
44
+ import * as grid2 from "./mui/grid2";
44
45
  import * as appBar from "./mui/appBar";
45
46
  import * as avatar from "./mui/avatar";
46
47
  export default function createTheme() {
@@ -92,6 +93,7 @@ export default function createTheme() {
92
93
  MuiDialogActions: dialogActions.styles,
93
94
  MuiDialogContent: dialogContent.styles,
94
95
  MuiGrid: grid.styles,
96
+ MuiGrid2: grid2.styles,
95
97
  MuiAppBar: appBar.styles,
96
98
  MuiAvatar: avatar.styles
97
99
  }
@@ -0,0 +1,18 @@
1
+ import { grey } from "../../colors";
2
+ import borderRadius from "../borderRadius";
3
+ export const styles = {
4
+ defaultProps: {
5
+ columnSpacing: 5
6
+ },
7
+ styleOverrides: {
8
+ root: {
9
+ '.MuiGrid-box': {
10
+ // height: 'calc(100% - 32px)',
11
+ backgroundColor: grey[50],
12
+ border: `1px solid ${grey[300]}`,
13
+ padding: '16px !important',
14
+ borderRadius: `${borderRadius[2]}px`
15
+ }
16
+ }
17
+ }
18
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nethru/ui",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "main": "base/index.js",
5
5
  "files": [
6
6
  "/base"
@@ -8,22 +8,21 @@
8
8
  "dependencies": {
9
9
  "@codemirror/lang-javascript": "^6.2.1",
10
10
  "@codemirror/lang-json": "^6.0.1",
11
- "@emotion/react": "^11.11.4",
12
- "@emotion/styled": "^11.11.5",
11
+ "@emotion/react": "^11.13.3",
12
+ "@emotion/styled": "^11.13.0",
13
13
  "@fontsource/roboto": "^5.0.8",
14
- "@mui/icons-material": "^5.14.18",
15
- "@mui/material": "^5.15.21",
16
- "@mui/styled-engine-sc": "^6.0.0-alpha.18",
17
- "@mui/x-data-grid-pro": "^6.20.3",
18
- "@mui/x-date-pickers-pro": "^7.8.0",
19
- "@mui/x-license": "^7.2.0",
20
- "@mui/x-tree-view": "^6.17.0",
21
- "@nethru/ui": "^1.0.19",
14
+ "@mui/icons-material": "^6.0.1",
15
+ "@mui/material": "^6.0.1",
16
+ "@mui/styled-engine-sc": "^6.0.1",
17
+ "@mui/x-data-grid-pro": "^7.15.0",
18
+ "@mui/x-date-pickers-pro": "^7.15.0",
19
+ "@mui/x-license": "^7.15.0",
20
+ "@mui/x-tree-view": "^7.15.0",
22
21
  "@testing-library/jest-dom": "^5.17.0",
23
22
  "@testing-library/react": "^13.4.0",
24
23
  "@testing-library/user-event": "^13.5.0",
25
24
  "@uiw/react-codemirror": "^4.21.21",
26
- "dayjs": "^1.11.11",
25
+ "dayjs": "^1.11.13",
27
26
  "days": "^1.1.1",
28
27
  "immer": "^10.0.3",
29
28
  "react": "^18.2.0",