@gnwebsoft/ui 3.0.0 → 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
@@ -14,9 +14,6 @@ require('./chunk-7M2VOCYN.js');
14
14
  require('./chunk-6BGQA4BQ.js');
15
15
 
16
16
 
17
- var _chunk6NOXJGU2js = require('./chunk-6NOXJGU2.js');
18
-
19
-
20
17
  var _chunkD3J7MWAUjs = require('./chunk-D3J7MWAU.js');
21
18
 
22
19
 
@@ -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
@@ -12,9 +12,6 @@ import {
12
12
  } from "./chunk-FSU3H777.mjs";
13
13
  import "./chunk-2JFL7TS5.mjs";
14
14
  import "./chunk-EVPUCTZA.mjs";
15
- import {
16
- Field_default as Field_default2
17
- } from "./chunk-5HOGPCEO.mjs";
18
15
  import {
19
16
  Field_default
20
17
  } from "./chunk-BWQUYXUW.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": "3.0.0",
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,10 +50,6 @@
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": {
@@ -70,9 +66,9 @@
70
66
  "peerDependencies": {
71
67
  "@emotion/cache": "^11.14.0",
72
68
  "@emotion/react": "^11.14.0",
73
- "@emotion/styled": "^11.14.1",
69
+ "@emotion/styled": "^11.14.0",
74
70
  "@hookform/resolvers": "^5.2.1",
75
- "@mui/icons-material": "^7.3.1",
71
+ "@mui/icons-material": "^6.4.11",
76
72
  "@mui/lab": "^7.0.0-beta.16",
77
73
  "@mui/material": "^7.3.1",
78
74
  "@mui/x-data-grid": "^8.9.2",
@@ -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 };