@gnwebsoft/ui 2.18.19 → 2.18.21

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.
@@ -207,8 +207,14 @@ import {
207
207
  Typography as Typography4
208
208
  } from "@mui/material";
209
209
  import ManageSearchIcon2 from "@mui/icons-material/ManageSearch";
210
- import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
211
- var ListWrapper = ({ children, title, count }) => {
210
+ import { Fragment, jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
211
+ var ListWrapper = ({
212
+ children,
213
+ title,
214
+ count,
215
+ show = true
216
+ }) => {
217
+ if (!show) return /* @__PURE__ */ jsx6(Fragment, {});
212
218
  return /* @__PURE__ */ jsxs4(
213
219
  Card3,
214
220
  {
@@ -292,19 +298,19 @@ var SimpleToolbar_default = SimpleToolbar;
292
298
 
293
299
  // src/components/SimpleButton/SimpleButton.tsx
294
300
  import { Button as Button2 } from "@mui/material";
295
- import { Fragment, jsx as jsx8 } from "react/jsx-runtime";
301
+ import { Fragment as Fragment2, jsx as jsx8 } from "react/jsx-runtime";
296
302
  var SimpleButton = function SelectMultiElement(props) {
297
303
  const { show, ...rest } = props;
298
- if (!!show) return /* @__PURE__ */ jsx8(Fragment, {});
304
+ if (!!show) return /* @__PURE__ */ jsx8(Fragment2, {});
299
305
  return /* @__PURE__ */ jsx8(Button2, { ...rest });
300
306
  };
301
307
  var SimpleButton_default = SimpleButton;
302
308
 
303
309
  // src/components/AuthorizedView/AuthorizedView.tsx
304
- import { Fragment as Fragment2, jsx as jsx9 } from "react/jsx-runtime";
310
+ import { Fragment as Fragment3, jsx as jsx9 } from "react/jsx-runtime";
305
311
  var AuthorizedView = ({ children, show }) => {
306
- if (!show) return /* @__PURE__ */ jsx9(Fragment2, {});
307
- return /* @__PURE__ */ jsx9(Fragment2, { children });
312
+ if (!show) return /* @__PURE__ */ jsx9(Fragment3, {});
313
+ return /* @__PURE__ */ jsx9(Fragment3, { children });
308
314
  };
309
315
  var AuthorizedView_default = AuthorizedView;
310
316
 
@@ -208,7 +208,13 @@ var LabelText_default = LabelText;
208
208
 
209
209
 
210
210
 
211
- var ListWrapper = ({ children, title, count }) => {
211
+ var ListWrapper = ({
212
+ children,
213
+ title,
214
+ count,
215
+ show = true
216
+ }) => {
217
+ if (!show) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
212
218
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
213
219
  _material.Card,
214
220
  {
@@ -52,8 +52,9 @@ declare const LabelText: ({ label, value, gridSize, containerSize, }: LabelTextP
52
52
  type ListWrapperProps = PropsWithChildren<{
53
53
  title: string;
54
54
  count: number;
55
+ show?: boolean;
55
56
  }>;
56
- declare const ListWrapper: ({ children, title, count }: ListWrapperProps) => react_jsx_runtime.JSX.Element;
57
+ declare const ListWrapper: ({ children, title, count, show, }: ListWrapperProps) => react_jsx_runtime.JSX.Element;
57
58
 
58
59
  declare const SimpleToolbar: () => react_jsx_runtime.JSX.Element;
59
60
 
@@ -52,8 +52,9 @@ declare const LabelText: ({ label, value, gridSize, containerSize, }: LabelTextP
52
52
  type ListWrapperProps = PropsWithChildren<{
53
53
  title: string;
54
54
  count: number;
55
+ show?: boolean;
55
56
  }>;
56
- declare const ListWrapper: ({ children, title, count }: ListWrapperProps) => react_jsx_runtime.JSX.Element;
57
+ declare const ListWrapper: ({ children, title, count, show, }: ListWrapperProps) => react_jsx_runtime.JSX.Element;
57
58
 
58
59
  declare const SimpleToolbar: () => react_jsx_runtime.JSX.Element;
59
60
 
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
 
11
- var _chunkYXKOS2XHjs = require('../chunk-YXKOS2XH.js');
11
+ var _chunkZT3DSWEDjs = require('../chunk-ZT3DSWED.js');
12
12
 
13
13
 
14
14
 
@@ -19,4 +19,4 @@ var _chunkYXKOS2XHjs = require('../chunk-YXKOS2XH.js');
19
19
 
20
20
 
21
21
 
22
- exports.AuthorizedView = _chunkYXKOS2XHjs.AuthorizedView_default; exports.ClearButton = _chunkYXKOS2XHjs.ClearButton_default; exports.FilterButton = _chunkYXKOS2XHjs.FilterButton_default; exports.FilterWrapper = _chunkYXKOS2XHjs.FilterWrapper_default; exports.FormWrapper = _chunkYXKOS2XHjs.FormWrapper_default; exports.LabelText = _chunkYXKOS2XHjs.LabelText_default; exports.ListWrapper = _chunkYXKOS2XHjs.ListWrapper_default; exports.SimpleButton = _chunkYXKOS2XHjs.SimpleButton_default; exports.SimpleToolbar = _chunkYXKOS2XHjs.SimpleToolbar_default;
22
+ exports.AuthorizedView = _chunkZT3DSWEDjs.AuthorizedView_default; exports.ClearButton = _chunkZT3DSWEDjs.ClearButton_default; exports.FilterButton = _chunkZT3DSWEDjs.FilterButton_default; exports.FilterWrapper = _chunkZT3DSWEDjs.FilterWrapper_default; exports.FormWrapper = _chunkZT3DSWEDjs.FormWrapper_default; exports.LabelText = _chunkZT3DSWEDjs.LabelText_default; exports.ListWrapper = _chunkZT3DSWEDjs.ListWrapper_default; exports.SimpleButton = _chunkZT3DSWEDjs.SimpleButton_default; exports.SimpleToolbar = _chunkZT3DSWEDjs.SimpleToolbar_default;
@@ -8,7 +8,7 @@ import {
8
8
  ListWrapper_default,
9
9
  SimpleButton_default,
10
10
  SimpleToolbar_default
11
- } from "../chunk-J74N5BOG.mjs";
11
+ } from "../chunk-LSE3T3FT.mjs";
12
12
  export {
13
13
  AuthorizedView_default as AuthorizedView,
14
14
  ClearButton_default as ClearButton,
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-7M2VOCYN.js');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
4
 
@@ -8,8 +8,8 @@
8
8
 
9
9
 
10
10
 
11
-
12
- var _chunkYXKOS2XHjs = require('./chunk-YXKOS2XH.js');
11
+ var _chunkZT3DSWEDjs = require('./chunk-ZT3DSWED.js');
12
+ require('./chunk-7M2VOCYN.js');
13
13
  require('./chunk-6BGQA4BQ.js');
14
14
 
15
15
 
@@ -49,4 +49,4 @@ var _chunkDKBPCLECjs = require('./chunk-DKBPCLEC.js');
49
49
 
50
50
 
51
51
 
52
- exports.AuthorizedView = _chunkYXKOS2XHjs.AuthorizedView_default; exports.ClearButton = _chunkYXKOS2XHjs.ClearButton_default; exports.Field = _chunkGJGC6G2Njs.Field_default; exports.FilterButton = _chunkYXKOS2XHjs.FilterButton_default; exports.FilterWrapper = _chunkYXKOS2XHjs.FilterWrapper_default; exports.FormWrapper = _chunkYXKOS2XHjs.FormWrapper_default; exports.LabelText = _chunkYXKOS2XHjs.LabelText_default; exports.ListWrapper = _chunkYXKOS2XHjs.ListWrapper_default; exports.SimpleButton = _chunkYXKOS2XHjs.SimpleButton_default; exports.SimpleToolbar = _chunkYXKOS2XHjs.SimpleToolbar_default; exports.api = _chunkDKBPCLECjs.api; exports.api2 = _chunkDKBPCLECjs.api2; exports.flattenObjectKeys = _chunkDKBPCLECjs.flattenObjectKeys; exports.getTimezone = _chunkDKBPCLECjs.getTimezone; exports.handleServerErrors = _chunkDKBPCLECjs.handleServerErrors; exports.propertyExists = _chunkDKBPCLECjs.propertyExists; exports.readValueAsDate = _chunkDKBPCLECjs.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkDKBPCLECjs.removeLeadingTrailingSlashes; exports.schemaTools = _chunkDKBPCLECjs.schemaTools; exports.useTransform = _chunk6JZ35VQJjs.useTransform;
52
+ exports.AuthorizedView = _chunkZT3DSWEDjs.AuthorizedView_default; exports.ClearButton = _chunkZT3DSWEDjs.ClearButton_default; exports.Field = _chunkGJGC6G2Njs.Field_default; exports.FilterButton = _chunkZT3DSWEDjs.FilterButton_default; exports.FilterWrapper = _chunkZT3DSWEDjs.FilterWrapper_default; exports.FormWrapper = _chunkZT3DSWEDjs.FormWrapper_default; exports.LabelText = _chunkZT3DSWEDjs.LabelText_default; exports.ListWrapper = _chunkZT3DSWEDjs.ListWrapper_default; exports.SimpleButton = _chunkZT3DSWEDjs.SimpleButton_default; exports.SimpleToolbar = _chunkZT3DSWEDjs.SimpleToolbar_default; exports.api = _chunkDKBPCLECjs.api; exports.api2 = _chunkDKBPCLECjs.api2; exports.flattenObjectKeys = _chunkDKBPCLECjs.flattenObjectKeys; exports.getTimezone = _chunkDKBPCLECjs.getTimezone; exports.handleServerErrors = _chunkDKBPCLECjs.handleServerErrors; exports.propertyExists = _chunkDKBPCLECjs.propertyExists; exports.readValueAsDate = _chunkDKBPCLECjs.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkDKBPCLECjs.removeLeadingTrailingSlashes; exports.schemaTools = _chunkDKBPCLECjs.schemaTools; exports.useTransform = _chunk6JZ35VQJjs.useTransform;
package/dist/index.mjs CHANGED
@@ -1,4 +1,3 @@
1
- import "./chunk-2JFL7TS5.mjs";
2
1
  import {
3
2
  AuthorizedView_default,
4
3
  ClearButton_default,
@@ -9,7 +8,8 @@ import {
9
8
  ListWrapper_default,
10
9
  SimpleButton_default,
11
10
  SimpleToolbar_default
12
- } from "./chunk-J74N5BOG.mjs";
11
+ } from "./chunk-LSE3T3FT.mjs";
12
+ import "./chunk-2JFL7TS5.mjs";
13
13
  import "./chunk-EVPUCTZA.mjs";
14
14
  import {
15
15
  Field_default
package/package.json CHANGED
@@ -1,92 +1,92 @@
1
- {
2
- "name": "@gnwebsoft/ui",
3
- "version": "2.18.19",
4
- "description": "A set of reusable wrappers for MUI v6",
5
- "author": "GNWebsoft Private Limited",
6
- "license": "",
7
- "keywords": [
8
- "MUI"
9
- ],
10
- "publishConfig": {
11
- "registry": "https://registry.npmjs.org/",
12
- "access": "public"
13
- },
14
- "scripts": {
15
- "link:self": "pnpm link --global",
16
- "package": "npm publish --access public --scope=@gnwebsoft",
17
- "types": "tsup src/index.ts --sourcemap inline",
18
- "clean": "rimraf ./dist/* --glob --no-verbose --no-interactive",
19
- "check-exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm",
20
- "build": "pnpm run clean && tsup"
21
- },
22
- "files": [
23
- "dist"
24
- ],
25
- "packageManager": "pnpm@10.9.0",
26
- "engines": {
27
- "node": ">=22.0.0"
28
- },
29
- "exports": {
30
- ".": {
31
- "import": "./dist/index.mjs",
32
- "require": "./dist/index.js"
33
- },
34
- "./components": {
35
- "import": "./dist/components/index.mjs",
36
- "require": "./dist/components/index.js"
37
- },
38
- "./hooks": {
39
- "import": "./dist/hooks/index.mjs",
40
- "require": "./dist/hooks/index.js"
41
- },
42
- "./types": {
43
- "import": "./dist/types/index.mjs",
44
- "require": "./dist/types/index.js"
45
- },
46
- "./utils": {
47
- "import": "./dist/utils/index.mjs",
48
- "require": "./dist/utils/index.js"
49
- },
50
- "./wrappers": {
51
- "import": "./dist/wrappers/index.mjs",
52
- "require": "./dist/wrappers/index.js"
53
- }
54
- },
55
- "devDependencies": {
56
- "@arethetypeswrong/cli": "^0.17.2",
57
- "@types/autosuggest-highlight": "^3.2.3",
58
- "@types/lodash": "^4.17.13",
59
- "@types/node": "22.10.3",
60
- "@types/react": "^18.3.18",
61
- "@types/react-dom": "^18.3.5",
62
- "rimraf": "^6.0.1",
63
- "tslib": "^2.8.1",
64
- "tsup": "^8.4.0"
65
- },
66
- "peerDependencies": {
67
- "@emotion/cache": "^11.14.0",
68
- "@emotion/react": "^11.14.0",
69
- "@emotion/styled": "^11.14.0",
70
- "@fontsource/roboto": "^5.1.1",
71
- "@hookform/resolvers": "^3.9.1",
72
- "@mui/icons-material": "^6.4.11",
73
- "@mui/lab": "^6.0.0-beta.21",
74
- "@mui/material": "6.4.11",
75
- "@mui/x-data-grid": "^7.23.5",
76
- "@mui/x-date-pickers": "^7.28.3",
77
- "@mui/x-tree-view": "^7.23.2",
78
- "autosuggest-highlight": "^3.3.4",
79
- "axios": "^1.8.4",
80
- "dayjs": "^1.11.13",
81
- "es-toolkit": "^1.31.0",
82
- "lodash": "^4.17.21",
83
- "react": "^18.3.1",
84
- "react-dom": "^18.3.1",
85
- "react-hook-form": "^7.54.2",
86
- "react-router-dom": "^7.1.1",
87
- "sonner": "^2.0.3",
88
- "typescript": "5.8.3",
89
- "zod": "^3.24.1",
90
- "zustand": "^5.0.2"
91
- }
92
- }
1
+ {
2
+ "name": "@gnwebsoft/ui",
3
+ "version": "2.18.21",
4
+ "description": "A set of reusable wrappers for MUI v6",
5
+ "author": "GNWebsoft Private Limited",
6
+ "license": "",
7
+ "keywords": [
8
+ "MUI"
9
+ ],
10
+ "publishConfig": {
11
+ "registry": "https://registry.npmjs.org/",
12
+ "access": "public"
13
+ },
14
+ "scripts": {
15
+ "link:self": "pnpm link --global",
16
+ "package": "npm publish --access public --scope=@gnwebsoft",
17
+ "types": "tsup src/index.ts --sourcemap inline",
18
+ "clean": "rimraf ./dist/* --glob --no-verbose --no-interactive",
19
+ "check-exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm",
20
+ "build": "pnpm run clean && tsup"
21
+ },
22
+ "files": [
23
+ "dist"
24
+ ],
25
+ "packageManager": "pnpm@10.11.0",
26
+ "engines": {
27
+ "node": ">=22.0.0"
28
+ },
29
+ "exports": {
30
+ ".": {
31
+ "import": "./dist/index.mjs",
32
+ "require": "./dist/index.js"
33
+ },
34
+ "./components": {
35
+ "import": "./dist/components/index.mjs",
36
+ "require": "./dist/components/index.js"
37
+ },
38
+ "./hooks": {
39
+ "import": "./dist/hooks/index.mjs",
40
+ "require": "./dist/hooks/index.js"
41
+ },
42
+ "./types": {
43
+ "import": "./dist/types/index.mjs",
44
+ "require": "./dist/types/index.js"
45
+ },
46
+ "./utils": {
47
+ "import": "./dist/utils/index.mjs",
48
+ "require": "./dist/utils/index.js"
49
+ },
50
+ "./wrappers": {
51
+ "import": "./dist/wrappers/index.mjs",
52
+ "require": "./dist/wrappers/index.js"
53
+ }
54
+ },
55
+ "devDependencies": {
56
+ "@arethetypeswrong/cli": "^0.17.2",
57
+ "@types/autosuggest-highlight": "^3.2.3",
58
+ "@types/lodash": "^4.17.13",
59
+ "@types/node": "22.10.3",
60
+ "@types/react": "^18.3.18",
61
+ "@types/react-dom": "^18.3.5",
62
+ "rimraf": "^6.0.1",
63
+ "tslib": "^2.8.1",
64
+ "tsup": "^8.4.0"
65
+ },
66
+ "peerDependencies": {
67
+ "@emotion/cache": "^11.14.0",
68
+ "@emotion/react": "^11.14.0",
69
+ "@emotion/styled": "^11.14.0",
70
+ "@fontsource/roboto": "^5.1.1",
71
+ "@hookform/resolvers": "^3.9.1",
72
+ "@mui/icons-material": "^6.4.11",
73
+ "@mui/lab": "^6.0.0-beta.21",
74
+ "@mui/material": "6.4.11",
75
+ "@mui/x-data-grid": "^7.23.5",
76
+ "@mui/x-date-pickers": "^7.28.3",
77
+ "@mui/x-tree-view": "^7.23.2",
78
+ "autosuggest-highlight": "^3.3.4",
79
+ "axios": "^1.8.4",
80
+ "dayjs": "^1.11.13",
81
+ "es-toolkit": "^1.31.0",
82
+ "lodash": "^4.17.21",
83
+ "react": "^18.3.1",
84
+ "react-dom": "^18.3.1",
85
+ "react-hook-form": "^7.54.2",
86
+ "react-router-dom": "^7.1.1",
87
+ "sonner": "1.5.0",
88
+ "typescript": "5.8.3",
89
+ "zod": "^3.24.1",
90
+ "zustand": "^5.0.2"
91
+ }
92
+ }