@gnwebsoft/ui 2.18.45 → 3.0.1

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/index.d.mts CHANGED
@@ -1,11 +1,9 @@
1
1
  export { AuthorizedView, CancelButton, ClearButton, FilterButton, FilterWrapper, FormWrapper, LabelText, ListWrapper, SimpleButton, SimpleToolbar } from './components/index.mjs';
2
2
  export { UseTransformOptions, UseTransformReturn, useTransform } from './hooks/index.mjs';
3
- export { ApiResponse, ListResponse, OperationResponse, PostModel, ValidationErrors, ValueLabel } from './types/index.mjs';
3
+ export { ApiResponse, AsyncMultiSelectPayload, ListResponse, OperationResponse, OptionItem, OptionItem2, PostModel, ValidationErrors, ValueLabel } from './types/index.mjs';
4
4
  export { api, api2, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools } from './utils/index.mjs';
5
5
  export { Field } from './wrappers/index.mjs';
6
- export { Field2 } from './wrappers2/index.mjs';
7
6
  export { a as AsyncSelectMultiPayload, A as AsyncSelectPayload } from './AsyncSelectPayload-Cz4bgak0.mjs';
8
- export { A as AsyncMultiSelectPayload, O as OptionItem, a as OptionItem2 } from './OptionItem-oN6XnOTJ.mjs';
9
7
  import 'react/jsx-runtime';
10
8
  import '@mui/material';
11
9
  import 'react';
package/dist/index.d.ts CHANGED
@@ -1,11 +1,9 @@
1
1
  export { AuthorizedView, CancelButton, ClearButton, FilterButton, FilterWrapper, FormWrapper, LabelText, ListWrapper, SimpleButton, SimpleToolbar } from './components/index.js';
2
2
  export { UseTransformOptions, UseTransformReturn, useTransform } from './hooks/index.js';
3
- export { ApiResponse, ListResponse, OperationResponse, PostModel, ValidationErrors, ValueLabel } from './types/index.js';
3
+ export { ApiResponse, AsyncMultiSelectPayload, ListResponse, OperationResponse, OptionItem, OptionItem2, PostModel, ValidationErrors, ValueLabel } from './types/index.js';
4
4
  export { api, api2, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools } from './utils/index.js';
5
5
  export { Field } from './wrappers/index.js';
6
- export { Field2 } from './wrappers2/index.js';
7
6
  export { a as AsyncSelectMultiPayload, A as AsyncSelectPayload } from './AsyncSelectPayload-Cz4bgak0.js';
8
- export { A as AsyncMultiSelectPayload, O as OptionItem, a as OptionItem2 } from './OptionItem-oN6XnOTJ.js';
9
7
  import 'react/jsx-runtime';
10
8
  import '@mui/material';
11
9
  import 'react';
package/dist/index.js CHANGED
@@ -17,9 +17,6 @@ require('./chunk-6BGQA4BQ.js');
17
17
  var _chunkD3J7MWAUjs = require('./chunk-D3J7MWAU.js');
18
18
 
19
19
 
20
- var _chunk6NOXJGU2js = require('./chunk-6NOXJGU2.js');
21
-
22
-
23
20
  var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
24
21
 
25
22
 
@@ -54,5 +51,4 @@ var _chunkI7EIUZKKjs = require('./chunk-I7EIUZKK.js');
54
51
 
55
52
 
56
53
 
57
-
58
- exports.AuthorizedView = _chunkJKUOV3MNjs.AuthorizedView_default; exports.CancelButton = _chunkJKUOV3MNjs.CancelButton_default; exports.ClearButton = _chunkJKUOV3MNjs.ClearButton_default; exports.Field = _chunkD3J7MWAUjs.Field_default; exports.Field2 = _chunk6NOXJGU2js.Field_default; exports.FilterButton = _chunkJKUOV3MNjs.FilterButton_default; exports.FilterWrapper = _chunkJKUOV3MNjs.FilterWrapper_default; exports.FormWrapper = _chunkJKUOV3MNjs.FormWrapper_default; exports.LabelText = _chunkJKUOV3MNjs.LabelText_default; exports.ListWrapper = _chunkJKUOV3MNjs.ListWrapper_default; exports.SimpleButton = _chunkJKUOV3MNjs.SimpleButton_default; exports.SimpleToolbar = _chunkJKUOV3MNjs.SimpleToolbar_default; exports.api = _chunkI7EIUZKKjs.api; exports.api2 = _chunkI7EIUZKKjs.api2; exports.flattenObjectKeys = _chunkI7EIUZKKjs.flattenObjectKeys; exports.getTimezone = _chunkI7EIUZKKjs.getTimezone; exports.handleServerErrors = _chunkI7EIUZKKjs.handleServerErrors; exports.propertyExists = _chunkI7EIUZKKjs.propertyExists; exports.readValueAsDate = _chunkI7EIUZKKjs.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkI7EIUZKKjs.removeLeadingTrailingSlashes; exports.schemaTools = _chunkI7EIUZKKjs.schemaTools; exports.useTransform = _chunk6JZ35VQJjs.useTransform;
54
+ exports.AuthorizedView = _chunkJKUOV3MNjs.AuthorizedView_default; exports.CancelButton = _chunkJKUOV3MNjs.CancelButton_default; exports.ClearButton = _chunkJKUOV3MNjs.ClearButton_default; exports.Field = _chunkD3J7MWAUjs.Field_default; exports.FilterButton = _chunkJKUOV3MNjs.FilterButton_default; exports.FilterWrapper = _chunkJKUOV3MNjs.FilterWrapper_default; exports.FormWrapper = _chunkJKUOV3MNjs.FormWrapper_default; exports.LabelText = _chunkJKUOV3MNjs.LabelText_default; exports.ListWrapper = _chunkJKUOV3MNjs.ListWrapper_default; exports.SimpleButton = _chunkJKUOV3MNjs.SimpleButton_default; exports.SimpleToolbar = _chunkJKUOV3MNjs.SimpleToolbar_default; exports.api = _chunkI7EIUZKKjs.api; exports.api2 = _chunkI7EIUZKKjs.api2; exports.flattenObjectKeys = _chunkI7EIUZKKjs.flattenObjectKeys; exports.getTimezone = _chunkI7EIUZKKjs.getTimezone; exports.handleServerErrors = _chunkI7EIUZKKjs.handleServerErrors; exports.propertyExists = _chunkI7EIUZKKjs.propertyExists; exports.readValueAsDate = _chunkI7EIUZKKjs.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkI7EIUZKKjs.removeLeadingTrailingSlashes; exports.schemaTools = _chunkI7EIUZKKjs.schemaTools; exports.useTransform = _chunk6JZ35VQJjs.useTransform;
package/dist/index.mjs CHANGED
@@ -15,9 +15,6 @@ import "./chunk-EVPUCTZA.mjs";
15
15
  import {
16
16
  Field_default
17
17
  } from "./chunk-BWQUYXUW.mjs";
18
- import {
19
- Field_default as Field_default2
20
- } from "./chunk-5HOGPCEO.mjs";
21
18
  import {
22
19
  useTransform
23
20
  } from "./chunk-GFSTK7KN.mjs";
@@ -37,7 +34,6 @@ export {
37
34
  CancelButton_default as CancelButton,
38
35
  ClearButton_default as ClearButton,
39
36
  Field_default as Field,
40
- Field_default2 as Field2,
41
37
  FilterButton_default as FilterButton,
42
38
  FilterWrapper_default as FilterWrapper,
43
39
  FormWrapper_default as FormWrapper,
@@ -1,6 +1,5 @@
1
1
  import { GridSortModel } from '@mui/x-data-grid';
2
2
  export { a as AsyncSelectMultiPayload, A as AsyncSelectPayload } from '../AsyncSelectPayload-Cz4bgak0.mjs';
3
- export { A as AsyncMultiSelectPayload, O as OptionItem, a as OptionItem2 } from '../OptionItem-oN6XnOTJ.mjs';
4
3
 
5
4
  type ValidationErrors = {
6
5
  [field: string]: string | string[] | boolean | {
@@ -19,6 +18,19 @@ type ApiResponse<TModel> = {
19
18
  apiData?: TModel;
20
19
  };
21
20
 
21
+ type OptionItem = {
22
+ Label: string;
23
+ Value: string;
24
+ };
25
+ type AsyncMultiSelectPayload = {
26
+ query: string | null;
27
+ initialValues?: string[] | number[] | null;
28
+ };
29
+ type OptionItem2 = {
30
+ Label: string;
31
+ Value: number | string;
32
+ };
33
+
22
34
  type OperationResponse = {
23
35
  id?: number;
24
36
  rowsAffected: number;
@@ -41,4 +53,4 @@ type ValueLabel = {
41
53
  Label: string;
42
54
  };
43
55
 
44
- export type { ApiResponse, ListResponse, OperationResponse, PostModel, ValidationErrors, ValueLabel };
56
+ export type { ApiResponse, AsyncMultiSelectPayload, ListResponse, OperationResponse, OptionItem, OptionItem2, PostModel, ValidationErrors, ValueLabel };
@@ -1,6 +1,5 @@
1
1
  import { GridSortModel } from '@mui/x-data-grid';
2
2
  export { a as AsyncSelectMultiPayload, A as AsyncSelectPayload } from '../AsyncSelectPayload-Cz4bgak0.js';
3
- export { A as AsyncMultiSelectPayload, O as OptionItem, a as OptionItem2 } from '../OptionItem-oN6XnOTJ.js';
4
3
 
5
4
  type ValidationErrors = {
6
5
  [field: string]: string | string[] | boolean | {
@@ -19,6 +18,19 @@ type ApiResponse<TModel> = {
19
18
  apiData?: TModel;
20
19
  };
21
20
 
21
+ type OptionItem = {
22
+ Label: string;
23
+ Value: string;
24
+ };
25
+ type AsyncMultiSelectPayload = {
26
+ query: string | null;
27
+ initialValues?: string[] | number[] | null;
28
+ };
29
+ type OptionItem2 = {
30
+ Label: string;
31
+ Value: number | string;
32
+ };
33
+
22
34
  type OperationResponse = {
23
35
  id?: number;
24
36
  rowsAffected: number;
@@ -41,4 +53,4 @@ type ValueLabel = {
41
53
  Label: string;
42
54
  };
43
55
 
44
- export type { ApiResponse, ListResponse, OperationResponse, PostModel, ValidationErrors, ValueLabel };
56
+ export type { ApiResponse, AsyncMultiSelectPayload, ListResponse, OperationResponse, OptionItem, OptionItem2, PostModel, ValidationErrors, ValueLabel };
@@ -5,7 +5,6 @@ import { FieldValues, UseFormSetError } from 'react-hook-form';
5
5
  import { z } from 'zod';
6
6
  import '@mui/x-data-grid';
7
7
  import '../AsyncSelectPayload-Cz4bgak0.mjs';
8
- import '../OptionItem-oN6XnOTJ.mjs';
9
8
 
10
9
  declare class api {
11
10
  static filter<T, TFilter>(url: string, postModel: PostModel<TFilter>): Promise<ApiResponse<ListResponse<T>>>;
@@ -5,7 +5,6 @@ import { FieldValues, UseFormSetError } from 'react-hook-form';
5
5
  import { z } from 'zod';
6
6
  import '@mui/x-data-grid';
7
7
  import '../AsyncSelectPayload-Cz4bgak0.js';
8
- import '../OptionItem-oN6XnOTJ.js';
9
8
 
10
9
  declare class api {
11
10
  static filter<T, TFilter>(url: string, postModel: PostModel<TFilter>): Promise<ApiResponse<ListResponse<T>>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnwebsoft/ui",
3
- "version": "2.18.45",
3
+ "version": "3.0.1",
4
4
  "description": "A set of reusable wrappers for MUI v6",
5
5
  "author": "GNWebsoft Private Limited",
6
6
  "license": "",
@@ -22,7 +22,7 @@
22
22
  "files": [
23
23
  "dist"
24
24
  ],
25
- "packageManager": "pnpm@10.11.0",
25
+ "packageManager": "pnpm@10.15.0",
26
26
  "engines": {
27
27
  "node": ">=22.0.0"
28
28
  },
@@ -50,19 +50,15 @@
50
50
  "./wrappers": {
51
51
  "import": "./dist/wrappers/index.mjs",
52
52
  "require": "./dist/wrappers/index.js"
53
- },
54
- "./wrappers2": {
55
- "import": "./dist/wrappers2/index.mjs",
56
- "require": "./dist/wrappers2/index.js"
57
53
  }
58
54
  },
59
55
  "devDependencies": {
60
56
  "@arethetypeswrong/cli": "^0.17.2",
61
57
  "@types/autosuggest-highlight": "^3.2.3",
62
58
  "@types/lodash": "^4.17.13",
63
- "@types/node": "22.10.3",
64
- "@types/react": "^18.3.18",
65
- "@types/react-dom": "^18.3.5",
59
+ "@types/node": "^24.2.0",
60
+ "@types/react": "^19.1.9",
61
+ "@types/react-dom": "^19.1.7",
66
62
  "rimraf": "^6.0.1",
67
63
  "tslib": "^2.8.1",
68
64
  "tsup": "^8.4.0"
@@ -71,22 +67,22 @@
71
67
  "@emotion/cache": "^11.14.0",
72
68
  "@emotion/react": "^11.14.0",
73
69
  "@emotion/styled": "^11.14.0",
74
- "@hookform/resolvers": "^3.9.1",
70
+ "@hookform/resolvers": "^5.2.1",
75
71
  "@mui/icons-material": "^6.4.11",
76
- "@mui/lab": "^6.0.0-beta.21",
77
- "@mui/material": "^6.5.0",
78
- "@mui/x-data-grid": "^7.29.8",
79
- "@mui/x-date-pickers": "^7.29.4",
72
+ "@mui/lab": "^7.0.0-beta.16",
73
+ "@mui/material": "^7.3.1",
74
+ "@mui/x-data-grid": "^8.9.2",
75
+ "@mui/x-date-pickers": "^8.9.2",
80
76
  "autosuggest-highlight": "^3.3.4",
81
- "axios": "^1.10.0",
77
+ "axios": "^1.11.0",
82
78
  "dayjs": "^1.11.13",
83
- "es-toolkit": "^1.39.7",
79
+ "es-toolkit": "^1.39.8",
84
80
  "lodash": "^4.17.21",
85
- "react": "^18.3.1",
86
- "react-dom": "^18.3.1",
87
- "react-hook-form": "^7.60.0",
88
- "typescript": "^5.7.2",
89
- "zod": "^3.25.76",
81
+ "react": "^19.1.1",
82
+ "react-dom": "^19.1.1",
83
+ "react-hook-form": "^7.62.0",
84
+ "typescript": "^5.9.2",
85
+ "zod": "^4.0.15",
90
86
  "zustand": "^5.0.2"
91
87
  }
92
88
  }
@@ -1,14 +0,0 @@
1
- type OptionItem = {
2
- Label: string;
3
- Value: string;
4
- };
5
- type AsyncMultiSelectPayload = {
6
- query: string | null;
7
- initialValues?: string[] | number[] | null;
8
- };
9
- type OptionItem2 = {
10
- Label: string;
11
- Value: number | string;
12
- };
13
-
14
- export type { AsyncMultiSelectPayload as A, OptionItem as O, OptionItem2 as a };
@@ -1,14 +0,0 @@
1
- type OptionItem = {
2
- Label: string;
3
- Value: string;
4
- };
5
- type AsyncMultiSelectPayload = {
6
- query: string | null;
7
- initialValues?: string[] | number[] | null;
8
- };
9
- type OptionItem2 = {
10
- Label: string;
11
- Value: number | string;
12
- };
13
-
14
- export type { AsyncMultiSelectPayload as A, OptionItem as O, OptionItem2 as a };