@nethru/ui 1.0.68 → 1.0.70

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/dist/DataGrid.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useState } from "react";
2
- import { DataGrid as MuiDataGrid, GRID_CHECKBOX_SELECTION_COL_DEF, GridCell, GridToolbarQuickFilter, koKR } from "@mui/x-data-grid";
2
+ import { DataGridPro as MuiDataGridPro, GRID_CHECKBOX_SELECTION_COL_DEF, GridCell, GridToolbarQuickFilter, koKR } from "@mui/x-data-grid-pro";
3
3
  import { Box, Stack } from "@mui/material";
4
4
  import { Fragment as _Fragment } from "react/jsx-runtime";
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -12,7 +12,7 @@ const styles = {
12
12
  borderBottom: 'none'
13
13
  },
14
14
  '.MuiDataGrid-columnSeparator': {
15
- visibility: 'hidden !important'
15
+ // visibility: 'hidden !important'
16
16
  },
17
17
  '.MuiDataGrid-columnHeaders': {
18
18
  //borderBottom: 'none !important'
@@ -95,7 +95,7 @@ export default function DataGrid({
95
95
  children: children
96
96
  });
97
97
  };
98
- return /*#__PURE__*/_jsx(MuiDataGrid, {
98
+ return /*#__PURE__*/_jsx(MuiDataGridPro, {
99
99
  columns: columns,
100
100
  rows: rows,
101
101
  autoHeight: true,
@@ -1,8 +1,8 @@
1
1
  import { forwardRef, useMemo, useState } from "react";
2
2
  import { Box, Typography } from "@mui/material";
3
3
  import MenuItem from "@mui/material/MenuItem";
4
- import { DataGrid, useGridApiContext } from "@mui/x-data-grid";
5
4
  import Select from "./Select";
5
+ import { DataGridPro, useGridApiContext } from "@mui/x-data-grid-pro";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
8
  const PropertyTable = /*#__PURE__*/forwardRef(({
@@ -25,7 +25,7 @@ const PropertyTable = /*#__PURE__*/forwardRef(({
25
25
  backgroundColor: '#f8f9fa'
26
26
  },
27
27
  '.MuiDataGrid-columnSeparator': {
28
- visibility: 'hidden !important'
28
+ // visibility: 'hidden !important'
29
29
  },
30
30
  '&.MuiDataGrid-root .MuiDataGrid-columnHeader:focus': {
31
31
  outline: 'none !important'
@@ -87,7 +87,7 @@ const PropertyTable = /*#__PURE__*/forwardRef(({
87
87
  return /*#__PURE__*/_jsxs(Box, {
88
88
  ref: ref,
89
89
  sx: outerSx,
90
- children: [/*#__PURE__*/_jsx(DataGrid, {
90
+ children: [/*#__PURE__*/_jsx(DataGridPro, {
91
91
  columns: arrangedColumns,
92
92
  rows: rows,
93
93
  columnHeaderHeight: 35,
@@ -5,6 +5,7 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
5
5
  export default function SearchableSelect({
6
6
  label,
7
7
  options,
8
+ textFieldProps,
8
9
  ...props
9
10
  }) {
10
11
  return /*#__PURE__*/_jsx(Autocomplete, {
@@ -14,7 +15,8 @@ export default function SearchableSelect({
14
15
  renderInput: params => /*#__PURE__*/_jsx(TextField, {
15
16
  variant: "standard",
16
17
  label: label,
17
- ...params
18
+ ...params,
19
+ ...textFieldProps
18
20
  }),
19
21
  renderOption: (props, option) => /*#__PURE__*/_jsx(_Fragment, {
20
22
  children: option.type === 'divider' ? /*#__PURE__*/_jsx(Divider, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nethru/ui",
3
- "version": "1.0.68",
3
+ "version": "1.0.70",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "/dist"
@@ -13,8 +13,9 @@
13
13
  "@fontsource/roboto": "^5.0.8",
14
14
  "@mui/icons-material": "^5.14.18",
15
15
  "@mui/material": "^5.14.18",
16
- "@mui/x-data-grid": "^6.18.2",
17
- "@mui/x-date-pickers": "^6.18.2",
16
+ "@mui/x-data-grid-pro": "^6.19.10",
17
+ "@mui/x-date-pickers-pro": "^7.2.0",
18
+ "@mui/x-license": "^7.2.0",
18
19
  "@mui/x-tree-view": "^6.17.0",
19
20
  "@nethru/ui": "^1.0.19",
20
21
  "@testing-library/jest-dom": "^5.17.0",