@gnwebsoft/ui 2.18.14 → 2.18.16

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.
@@ -199,7 +199,7 @@ var removeLeadingTrailingSlashes = (route) => {
199
199
  import dayjs from "dayjs";
200
200
  import { z } from "zod";
201
201
  var schemaTools = {
202
- date: ({ message }) => z.coerce.string().transform((c) => c === "null" || c === "undefined" ? null : c).refine((c) => !!c, { message: "required" }).refine((c) => !!c ? dayjs(c).isValid() : true, {
202
+ date: ({ message }) => z.coerce.string().transform((c) => c === "null" || c === "undefined" ? null : c).refine((c) => !!c, { message }).refine((c) => !!c ? dayjs(c).isValid() : true, {
203
203
  message: message ? message : "Invalid date"
204
204
  }),
205
205
  nullableDate: ({ message }) => z.coerce.string().transform((c) => c === "null" ? null : c).transform((c) => c === "undefined" ? null : c).refine((c) => !c && c != null ? dayjs(c).isValid() : true, {
@@ -3,7 +3,7 @@
3
3
  var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
4
4
 
5
5
 
6
- var _chunk5UQNB4A7js = require('./chunk-5UQNB4A7.js');
6
+ var _chunkVISYY3QRjs = require('./chunk-VISYY3QR.js');
7
7
 
8
8
  // src/wrappers/DatePickerElement/DatePickerElement.tsx
9
9
 
@@ -47,7 +47,7 @@ var Component = function DatePickerElement(props) {
47
47
  value: field.value,
48
48
  onChange: field.onChange,
49
49
  transform: {
50
- input: typeof _optionalChain([transform, 'optionalAccess', _3 => _3.input]) === "function" ? transform.input : (newValue) => _chunk5UQNB4A7js.readValueAsDate.call(void 0, adapter, newValue),
50
+ input: typeof _optionalChain([transform, 'optionalAccess', _3 => _3.input]) === "function" ? transform.input : (newValue) => _chunkVISYY3QRjs.readValueAsDate.call(void 0, adapter, newValue),
51
51
  output: typeof _optionalChain([transform, 'optionalAccess', _4 => _4.output]) === "function" ? transform.output : (newValue) => newValue
52
52
  }
53
53
  });
@@ -496,7 +496,7 @@ var Component5 = function TimePickerElement(props) {
496
496
  value: field.value,
497
497
  onChange: field.onChange,
498
498
  transform: {
499
- input: typeof _optionalChain([transform, 'optionalAccess', _15 => _15.input]) === "function" ? transform.input : (newValue) => _chunk5UQNB4A7js.readValueAsDate.call(void 0, adapter, newValue),
499
+ input: typeof _optionalChain([transform, 'optionalAccess', _15 => _15.input]) === "function" ? transform.input : (newValue) => _chunkVISYY3QRjs.readValueAsDate.call(void 0, adapter, newValue),
500
500
  output: typeof _optionalChain([transform, 'optionalAccess', _16 => _16.output]) === "function" ? transform.output : (newValue) => newValue
501
501
  }
502
502
  });
@@ -1283,6 +1283,84 @@ var CheckboxElement2 = ({
1283
1283
  CheckboxElement2.displayName = "CheckboxElement";
1284
1284
  var CheckboxElement_default = CheckboxElement2;
1285
1285
 
1286
+ // src/wrappers/CheckboxGroup/CheckboxGroup.tsx
1287
+
1288
+
1289
+
1290
+
1291
+
1292
+
1293
+
1294
+
1295
+
1296
+
1297
+
1298
+
1299
+
1300
+ var Component12 = function CheckboxGroup(props) {
1301
+ const { name, control, label, labelProps, inputRef, options, ...rest } = props;
1302
+ const {
1303
+ field,
1304
+ fieldState: { error }
1305
+ } = _reacthookform.useController.call(void 0, {
1306
+ name,
1307
+ control,
1308
+ disabled: rest.disabled
1309
+ });
1310
+ const [selectedValues, setSelectedValues] = _react.useState.call(void 0,
1311
+ options.filter((c) => _optionalChain([field, 'access', _23 => _23.value, 'optionalAccess', _24 => _24.includes, 'call', _25 => _25(c.Value)])).map((c) => c.Value) || []
1312
+ );
1313
+ _react.useEffect.call(void 0, () => {
1314
+ field.onChange(selectedValues ? [...selectedValues] : []);
1315
+ }, [selectedValues]);
1316
+ const handleChange = (event) => {
1317
+ const value = parseInt(event.target.value, 10);
1318
+ if (event.target.checked) {
1319
+ setSelectedValues([...selectedValues, value]);
1320
+ } else {
1321
+ setSelectedValues(selectedValues.filter((item) => item !== value));
1322
+ }
1323
+ };
1324
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.FormControl, { error: !!error, children: [
1325
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.FormGroup, { row: true, children: options.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1326
+ _material.FormControlLabel,
1327
+ {
1328
+ label: option.Label,
1329
+ ...labelProps,
1330
+ control: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1331
+ _material.Checkbox,
1332
+ {
1333
+ ...rest,
1334
+ color: rest.color || "primary",
1335
+ sx: [
1336
+ ...Array.isArray(rest.sx) ? rest.sx : [rest.sx],
1337
+ {
1338
+ color: error ? "error.main" : void 0
1339
+ }
1340
+ ],
1341
+ value: option.Value,
1342
+ checked: selectedValues.includes(option.Value),
1343
+ onChange: handleChange
1344
+ }
1345
+ )
1346
+ },
1347
+ `${option.Value}`
1348
+ )) }),
1349
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.FormHelperText, { error: !!error, children: error.message })
1350
+ ] });
1351
+ };
1352
+ var CheckboxGroup2 = ({
1353
+ gridProps,
1354
+ ...props
1355
+ }) => {
1356
+ if (gridProps) {
1357
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid2, { ...gridProps, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component12, { ...props }) });
1358
+ }
1359
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component12, { ...props });
1360
+ };
1361
+ CheckboxGroup2.displayName = "CheckboxGroup";
1362
+ var CheckboxGroup_default = CheckboxGroup2;
1363
+
1286
1364
  // src/wrappers/Field/index.ts
1287
1365
  var Field = {
1288
1366
  Text: TextFieldElement_default,
@@ -1295,7 +1373,8 @@ var Field = {
1295
1373
  SelectMulti: SelectMultiElement_default,
1296
1374
  SelectCascade: SelectCascadeElement_default,
1297
1375
  AsyncSelect: AsyncSelect_default,
1298
- AsyncMultiSelect: AsyncMultiSelect_default
1376
+ AsyncMultiSelect: AsyncMultiSelect_default,
1377
+ CheckboxGroup: CheckboxGroup_default
1299
1378
  };
1300
1379
  var Field_default = Field;
1301
1380
 
@@ -199,7 +199,7 @@ var removeLeadingTrailingSlashes = (route) => {
199
199
  var _dayjs = require('dayjs'); var _dayjs2 = _interopRequireDefault(_dayjs);
200
200
  var _zod = require('zod');
201
201
  var schemaTools = {
202
- date: ({ message }) => _zod.z.coerce.string().transform((c) => c === "null" || c === "undefined" ? null : c).refine((c) => !!c, { message: "required" }).refine((c) => !!c ? _dayjs2.default.call(void 0, c).isValid() : true, {
202
+ date: ({ message }) => _zod.z.coerce.string().transform((c) => c === "null" || c === "undefined" ? null : c).refine((c) => !!c, { message }).refine((c) => !!c ? _dayjs2.default.call(void 0, c).isValid() : true, {
203
203
  message: message ? message : "Invalid date"
204
204
  }),
205
205
  nullableDate: ({ message }) => _zod.z.coerce.string().transform((c) => c === "null" ? null : c).transform((c) => c === "undefined" ? null : c).refine((c) => !c && c != null ? _dayjs2.default.call(void 0, c).isValid() : true, {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-GFSTK7KN.mjs";
4
4
  import {
5
5
  readValueAsDate
6
- } from "./chunk-RU644IPB.mjs";
6
+ } from "./chunk-J2WOE37S.mjs";
7
7
 
8
8
  // src/wrappers/DatePickerElement/DatePickerElement.tsx
9
9
  import {
@@ -1283,6 +1283,84 @@ var CheckboxElement2 = ({
1283
1283
  CheckboxElement2.displayName = "CheckboxElement";
1284
1284
  var CheckboxElement_default = CheckboxElement2;
1285
1285
 
1286
+ // src/wrappers/CheckboxGroup/CheckboxGroup.tsx
1287
+ import {
1288
+ Checkbox as Checkbox2,
1289
+ FormControl as FormControl3,
1290
+ FormControlLabel as FormControlLabel3,
1291
+ FormGroup as FormGroup2,
1292
+ FormHelperText as FormHelperText3,
1293
+ Grid2 as Grid212
1294
+ } from "@mui/material";
1295
+ import { useEffect as useEffect5, useState as useState5 } from "react";
1296
+ import {
1297
+ useController as useController12
1298
+ } from "react-hook-form";
1299
+ import { jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
1300
+ var Component12 = function CheckboxGroup(props) {
1301
+ const { name, control, label, labelProps, inputRef, options, ...rest } = props;
1302
+ const {
1303
+ field,
1304
+ fieldState: { error }
1305
+ } = useController12({
1306
+ name,
1307
+ control,
1308
+ disabled: rest.disabled
1309
+ });
1310
+ const [selectedValues, setSelectedValues] = useState5(
1311
+ options.filter((c) => field.value?.includes(c.Value)).map((c) => c.Value) || []
1312
+ );
1313
+ useEffect5(() => {
1314
+ field.onChange(selectedValues ? [...selectedValues] : []);
1315
+ }, [selectedValues]);
1316
+ const handleChange = (event) => {
1317
+ const value = parseInt(event.target.value, 10);
1318
+ if (event.target.checked) {
1319
+ setSelectedValues([...selectedValues, value]);
1320
+ } else {
1321
+ setSelectedValues(selectedValues.filter((item) => item !== value));
1322
+ }
1323
+ };
1324
+ return /* @__PURE__ */ jsxs6(FormControl3, { error: !!error, children: [
1325
+ /* @__PURE__ */ jsx12(FormGroup2, { row: true, children: options.map((option) => /* @__PURE__ */ jsx12(
1326
+ FormControlLabel3,
1327
+ {
1328
+ label: option.Label,
1329
+ ...labelProps,
1330
+ control: /* @__PURE__ */ jsx12(
1331
+ Checkbox2,
1332
+ {
1333
+ ...rest,
1334
+ color: rest.color || "primary",
1335
+ sx: [
1336
+ ...Array.isArray(rest.sx) ? rest.sx : [rest.sx],
1337
+ {
1338
+ color: error ? "error.main" : void 0
1339
+ }
1340
+ ],
1341
+ value: option.Value,
1342
+ checked: selectedValues.includes(option.Value),
1343
+ onChange: handleChange
1344
+ }
1345
+ )
1346
+ },
1347
+ `${option.Value}`
1348
+ )) }),
1349
+ error && /* @__PURE__ */ jsx12(FormHelperText3, { error: !!error, children: error.message })
1350
+ ] });
1351
+ };
1352
+ var CheckboxGroup2 = ({
1353
+ gridProps,
1354
+ ...props
1355
+ }) => {
1356
+ if (gridProps) {
1357
+ return /* @__PURE__ */ jsx12(Grid212, { ...gridProps, children: /* @__PURE__ */ jsx12(Component12, { ...props }) });
1358
+ }
1359
+ return /* @__PURE__ */ jsx12(Component12, { ...props });
1360
+ };
1361
+ CheckboxGroup2.displayName = "CheckboxGroup";
1362
+ var CheckboxGroup_default = CheckboxGroup2;
1363
+
1286
1364
  // src/wrappers/Field/index.ts
1287
1365
  var Field = {
1288
1366
  Text: TextFieldElement_default,
@@ -1295,7 +1373,8 @@ var Field = {
1295
1373
  SelectMulti: SelectMultiElement_default,
1296
1374
  SelectCascade: SelectCascadeElement_default,
1297
1375
  AsyncSelect: AsyncSelect_default,
1298
- AsyncMultiSelect: AsyncMultiSelect_default
1376
+ AsyncMultiSelect: AsyncMultiSelect_default,
1377
+ CheckboxGroup: CheckboxGroup_default
1299
1378
  };
1300
1379
  var Field_default = Field;
1301
1380
 
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ require('./chunk-7M2VOCYN.js');
11
11
  require('./chunk-6BGQA4BQ.js');
12
12
 
13
13
 
14
- var _chunkTRGH3WIBjs = require('./chunk-TRGH3WIB.js');
14
+ var _chunkQZQSLEPCjs = require('./chunk-QZQSLEPC.js');
15
15
 
16
16
 
17
17
  var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
@@ -24,7 +24,7 @@ var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
24
24
 
25
25
 
26
26
 
27
- var _chunk5UQNB4A7js = require('./chunk-5UQNB4A7.js');
27
+ var _chunkVISYY3QRjs = require('./chunk-VISYY3QR.js');
28
28
 
29
29
 
30
30
 
@@ -43,4 +43,4 @@ var _chunk5UQNB4A7js = require('./chunk-5UQNB4A7.js');
43
43
 
44
44
 
45
45
 
46
- exports.ClearButton = _chunk6NG256YGjs.ClearButton_default; exports.Field = _chunkTRGH3WIBjs.Field_default; exports.FilterButton = _chunk6NG256YGjs.FilterButton_default; exports.FilterWrapper = _chunk6NG256YGjs.FilterWrapper_default; exports.FormWrapper = _chunk6NG256YGjs.FormWrapper_default; exports.LabelText = _chunk6NG256YGjs.LabelText_default; exports.ListWrapper = _chunk6NG256YGjs.ListWrapper_default; exports.SimpleToolbar = _chunk6NG256YGjs.SimpleToolbar_default; exports.api = _chunk5UQNB4A7js.api; exports.flattenObjectKeys = _chunk5UQNB4A7js.flattenObjectKeys; exports.getTimezone = _chunk5UQNB4A7js.getTimezone; exports.handleServerErrors = _chunk5UQNB4A7js.handleServerErrors; exports.propertyExists = _chunk5UQNB4A7js.propertyExists; exports.readValueAsDate = _chunk5UQNB4A7js.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunk5UQNB4A7js.removeLeadingTrailingSlashes; exports.schemaTools = _chunk5UQNB4A7js.schemaTools; exports.useTransform = _chunk6JZ35VQJjs.useTransform;
46
+ exports.ClearButton = _chunk6NG256YGjs.ClearButton_default; exports.Field = _chunkQZQSLEPCjs.Field_default; exports.FilterButton = _chunk6NG256YGjs.FilterButton_default; exports.FilterWrapper = _chunk6NG256YGjs.FilterWrapper_default; exports.FormWrapper = _chunk6NG256YGjs.FormWrapper_default; exports.LabelText = _chunk6NG256YGjs.LabelText_default; exports.ListWrapper = _chunk6NG256YGjs.ListWrapper_default; exports.SimpleToolbar = _chunk6NG256YGjs.SimpleToolbar_default; exports.api = _chunkVISYY3QRjs.api; exports.flattenObjectKeys = _chunkVISYY3QRjs.flattenObjectKeys; exports.getTimezone = _chunkVISYY3QRjs.getTimezone; exports.handleServerErrors = _chunkVISYY3QRjs.handleServerErrors; exports.propertyExists = _chunkVISYY3QRjs.propertyExists; exports.readValueAsDate = _chunkVISYY3QRjs.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkVISYY3QRjs.removeLeadingTrailingSlashes; exports.schemaTools = _chunkVISYY3QRjs.schemaTools; exports.useTransform = _chunk6JZ35VQJjs.useTransform;
package/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ import "./chunk-2JFL7TS5.mjs";
11
11
  import "./chunk-EVPUCTZA.mjs";
12
12
  import {
13
13
  Field_default
14
- } from "./chunk-6MNBBCUG.mjs";
14
+ } from "./chunk-XILCQSA3.mjs";
15
15
  import {
16
16
  useTransform
17
17
  } from "./chunk-GFSTK7KN.mjs";
@@ -24,7 +24,7 @@ import {
24
24
  readValueAsDate,
25
25
  removeLeadingTrailingSlashes,
26
26
  schemaTools
27
- } from "./chunk-RU644IPB.mjs";
27
+ } from "./chunk-J2WOE37S.mjs";
28
28
  export {
29
29
  ClearButton_default as ClearButton,
30
30
  Field_default as Field,
@@ -37,7 +37,7 @@ type ListResponse<TGridModel> = {
37
37
  };
38
38
  type ValueLabel = {
39
39
  Value: number;
40
- Label: number;
40
+ Label: string;
41
41
  };
42
42
 
43
43
  export type { ApiResponse, ListResponse, OperationResponse, PostModel, ValidationErrors, ValueLabel };
@@ -37,7 +37,7 @@ type ListResponse<TGridModel> = {
37
37
  };
38
38
  type ValueLabel = {
39
39
  Value: number;
40
- Label: number;
40
+ Label: string;
41
41
  };
42
42
 
43
43
  export type { ApiResponse, ListResponse, OperationResponse, PostModel, ValidationErrors, ValueLabel };
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunk5UQNB4A7js = require('../chunk-5UQNB4A7.js');
10
+ var _chunkVISYY3QRjs = require('../chunk-VISYY3QR.js');
11
11
 
12
12
 
13
13
 
@@ -17,4 +17,4 @@ var _chunk5UQNB4A7js = require('../chunk-5UQNB4A7.js');
17
17
 
18
18
 
19
19
 
20
- exports.api = _chunk5UQNB4A7js.api; exports.flattenObjectKeys = _chunk5UQNB4A7js.flattenObjectKeys; exports.getTimezone = _chunk5UQNB4A7js.getTimezone; exports.handleServerErrors = _chunk5UQNB4A7js.handleServerErrors; exports.propertyExists = _chunk5UQNB4A7js.propertyExists; exports.readValueAsDate = _chunk5UQNB4A7js.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunk5UQNB4A7js.removeLeadingTrailingSlashes; exports.schemaTools = _chunk5UQNB4A7js.schemaTools;
20
+ exports.api = _chunkVISYY3QRjs.api; exports.flattenObjectKeys = _chunkVISYY3QRjs.flattenObjectKeys; exports.getTimezone = _chunkVISYY3QRjs.getTimezone; exports.handleServerErrors = _chunkVISYY3QRjs.handleServerErrors; exports.propertyExists = _chunkVISYY3QRjs.propertyExists; exports.readValueAsDate = _chunkVISYY3QRjs.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkVISYY3QRjs.removeLeadingTrailingSlashes; exports.schemaTools = _chunkVISYY3QRjs.schemaTools;
@@ -7,7 +7,7 @@ import {
7
7
  readValueAsDate,
8
8
  removeLeadingTrailingSlashes,
9
9
  schemaTools
10
- } from "../chunk-RU644IPB.mjs";
10
+ } from "../chunk-J2WOE37S.mjs";
11
11
  export {
12
12
  api,
13
13
  flattenObjectKeys,
@@ -1,4 +1,4 @@
1
- import { ChipTypeMap, AutocompleteProps, Grid2Props, TextFieldProps, IconButtonProps, FormControlLabelProps, FormLabelProps, RadioProps, CheckboxProps, TextField } from '@mui/material';
1
+ import { CheckboxProps, FormControlLabelProps, Grid2Props, ChipTypeMap, AutocompleteProps, TextFieldProps, IconButtonProps, FormLabelProps, RadioProps, TextField } from '@mui/material';
2
2
  import * as react_hook_form from 'react-hook-form';
3
3
  import { FieldValues, FieldPath, Control, UseControllerProps, FieldError, PathValue } from 'react-hook-form';
4
4
  import { b as AsyncMultiSelectPayload, O as OptionItem, A as AsyncSelectPayload } from '../OptionItem-CzX7oHfv.mjs';
@@ -8,6 +8,18 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
8
8
  import { TimePickerProps, TimePickerSlotProps, PickerChangeHandlerContext, TimeValidationError, DateValidationError, DatePickerSlotProps, DatePickerProps } from '@mui/x-date-pickers';
9
9
  import { PickerValidDate } from '@mui/x-date-pickers/models';
10
10
 
11
+ type CheckboxGroupProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends number[] = number[]> = Omit<CheckboxProps, "name"> & {
12
+ name: TName;
13
+ control?: Control<TFieldValues>;
14
+ label?: FormControlLabelProps["label"];
15
+ labelProps?: Omit<FormControlLabelProps, "label" | "control">;
16
+ gridProps?: Grid2Props;
17
+ options: {
18
+ Value: number;
19
+ Label: string;
20
+ }[];
21
+ };
22
+
11
23
  type AsyncMultiSelectElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends {
12
24
  Value: number;
13
25
  Label: string;
@@ -227,6 +239,7 @@ declare const Field: {
227
239
  Value: number;
228
240
  Label: string;
229
241
  }, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = "div">(props: AsyncMultiSelectElementProps<TFieldValues, TName, TValue, Multiple, DisableClearable, FreeSolo, ChipComponent>) => JSX.Element;
242
+ CheckboxGroup: <TFieldValues extends react_hook_form.FieldValues = react_hook_form.FieldValues, TName extends react_hook_form.FieldPath<TFieldValues> = react_hook_form.FieldPath<TFieldValues>, TValue extends number[] = number[]>(props: CheckboxGroupProps<TFieldValues, TName, TValue>) => JSX.Element;
230
243
  };
231
244
 
232
245
  export { Field };
@@ -1,4 +1,4 @@
1
- import { ChipTypeMap, AutocompleteProps, Grid2Props, TextFieldProps, IconButtonProps, FormControlLabelProps, FormLabelProps, RadioProps, CheckboxProps, TextField } from '@mui/material';
1
+ import { CheckboxProps, FormControlLabelProps, Grid2Props, ChipTypeMap, AutocompleteProps, TextFieldProps, IconButtonProps, FormLabelProps, RadioProps, TextField } from '@mui/material';
2
2
  import * as react_hook_form from 'react-hook-form';
3
3
  import { FieldValues, FieldPath, Control, UseControllerProps, FieldError, PathValue } from 'react-hook-form';
4
4
  import { b as AsyncMultiSelectPayload, O as OptionItem, A as AsyncSelectPayload } from '../OptionItem-CzX7oHfv.js';
@@ -8,6 +8,18 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
8
8
  import { TimePickerProps, TimePickerSlotProps, PickerChangeHandlerContext, TimeValidationError, DateValidationError, DatePickerSlotProps, DatePickerProps } from '@mui/x-date-pickers';
9
9
  import { PickerValidDate } from '@mui/x-date-pickers/models';
10
10
 
11
+ type CheckboxGroupProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends number[] = number[]> = Omit<CheckboxProps, "name"> & {
12
+ name: TName;
13
+ control?: Control<TFieldValues>;
14
+ label?: FormControlLabelProps["label"];
15
+ labelProps?: Omit<FormControlLabelProps, "label" | "control">;
16
+ gridProps?: Grid2Props;
17
+ options: {
18
+ Value: number;
19
+ Label: string;
20
+ }[];
21
+ };
22
+
11
23
  type AsyncMultiSelectElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends {
12
24
  Value: number;
13
25
  Label: string;
@@ -227,6 +239,7 @@ declare const Field: {
227
239
  Value: number;
228
240
  Label: string;
229
241
  }, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = "div">(props: AsyncMultiSelectElementProps<TFieldValues, TName, TValue, Multiple, DisableClearable, FreeSolo, ChipComponent>) => JSX.Element;
242
+ CheckboxGroup: <TFieldValues extends react_hook_form.FieldValues = react_hook_form.FieldValues, TName extends react_hook_form.FieldPath<TFieldValues> = react_hook_form.FieldPath<TFieldValues>, TValue extends number[] = number[]>(props: CheckboxGroupProps<TFieldValues, TName, TValue>) => JSX.Element;
230
243
  };
231
244
 
232
245
  export { Field };
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkTRGH3WIBjs = require('../chunk-TRGH3WIB.js');
3
+ var _chunkQZQSLEPCjs = require('../chunk-QZQSLEPC.js');
4
4
  require('../chunk-6JZ35VQJ.js');
5
- require('../chunk-5UQNB4A7.js');
5
+ require('../chunk-VISYY3QR.js');
6
6
 
7
7
 
8
- exports.Field = _chunkTRGH3WIBjs.Field_default;
8
+ exports.Field = _chunkQZQSLEPCjs.Field_default;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Field_default
3
- } from "../chunk-6MNBBCUG.mjs";
3
+ } from "../chunk-XILCQSA3.mjs";
4
4
  import "../chunk-GFSTK7KN.mjs";
5
- import "../chunk-RU644IPB.mjs";
5
+ import "../chunk-J2WOE37S.mjs";
6
6
  export {
7
7
  Field_default as Field
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnwebsoft/ui",
3
- "version": "2.18.14",
3
+ "version": "2.18.16",
4
4
  "description": "A set of reusable wrappers for MUI v6",
5
5
  "author": "GNWebsoft Private Limited",
6
6
  "license": "",