@dartech/arsenal-ui 1.3.32 → 1.3.34

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/index.js CHANGED
@@ -518,7 +518,7 @@ const ControlCheckbox = _a => {
518
518
  name = '',
519
519
  label = '',
520
520
  required = false,
521
- defaultValue = '',
521
+ defaultValue,
522
522
  disabled = false,
523
523
  hideErrorMessage = false,
524
524
  onChange: customOnChange
@@ -567,7 +567,8 @@ const ControlCheckbox = _a => {
567
567
  onChange: customOnChange ? customOnChange : onChange,
568
568
  name: name,
569
569
  inputRef: ref,
570
- disabled: disabled
570
+ disabled: disabled,
571
+ defaultChecked: defaultValue
571
572
  }, checkboxProps)),
572
573
  label: label
573
574
  }), !hideErrorMessage && (error === null || error === void 0 ? void 0 : error.message) && jsx(FormHelperText, {
@@ -4392,13 +4393,11 @@ const NumericTypeValidator = ({
4392
4393
  children: [jsx(ControlCheckbox, {
4393
4394
  control: control,
4394
4395
  name: `${name}.exclusiveMinimum`,
4395
- label: "Exclusive Minimum",
4396
- defaultValue: 'false'
4396
+ label: "Exclusive Minimum"
4397
4397
  }), jsx(ControlCheckbox, {
4398
4398
  control: control,
4399
4399
  name: `${name}.exclusiveMaximum`,
4400
- label: "Exclusive Maximum",
4401
- defaultValue: 'false'
4400
+ label: "Exclusive Maximum"
4402
4401
  })]
4403
4402
  }))]
4404
4403
  });
@@ -4786,7 +4785,9 @@ const CreatePropertyFormFields = ({
4786
4785
  children: customCheckboxes.map((field, index) => jsx(ControlCheckbox, {
4787
4786
  control: control,
4788
4787
  name: `${propertyFieldName}.${field.name}`,
4789
- label: field.label
4788
+ label: field.label,
4789
+ checked: field.checked,
4790
+ defaultValue: field.defaultValue
4790
4791
  }, index))
4791
4792
  }) : null]
4792
4793
  }), propertyType && jsxs(Fragment, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartech/arsenal-ui",
3
- "version": "1.3.32",
3
+ "version": "1.3.34",
4
4
  "author": "DAR",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -42,6 +42,8 @@ export type CustomPropertyFieldProps = {
42
42
  label: string;
43
43
  }[];
44
44
  required?: boolean;
45
+ checked?: boolean;
46
+ defaultValue?: any;
45
47
  };
46
48
  export type PropertyFillType = 'expression' | 'widget' | 'null' | 'string' | 'json_valid' | 'json_notvalid' | 'dem_builder';
47
49
  export type StatusVariant = 'default' | 'success' | 'error' | 'warning';
@@ -22,7 +22,7 @@ export type ControlCheckboxProps = CheckboxProps & {
22
22
  /**
23
23
  * React Hook Form `defaultValue`
24
24
  */
25
- defaultValue?: unknown;
25
+ defaultValue?: boolean;
26
26
  /**
27
27
  * Is disabled input flag
28
28
  */