@dafaz-ui/react 4.0.15 → 4.0.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @dafaz-ui/react@4.0.15 build
2
+ > @dafaz-ui/react@4.0.16 build
3
3
  > tsup src/index.tsx --format esm,cjs --dts --external react
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -8,11 +8,11 @@
8
8
  CLI Target: es6
9
9
  ESM Build start
10
10
  CJS Build start
11
- CJS dist/index.js 22.58 KB
11
+ ESM dist/index.mjs 20.08 KB
12
+ ESM ⚡️ Build success in 37ms
13
+ CJS dist/index.js 22.60 KB
12
14
  CJS ⚡️ Build success in 38ms
13
- ESM dist/index.mjs 20.05 KB
14
- ESM ⚡️ Build success in 38ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 4633ms
17
- DTS dist/index.d.mts 103.82 KB
18
- DTS dist/index.d.ts 103.82 KB
16
+ DTS ⚡️ Build success in 4508ms
17
+ DTS dist/index.d.mts 103.76 KB
18
+ DTS dist/index.d.ts 103.76 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @dafaz-ui/react
2
2
 
3
+ ## 4.0.16
4
+
5
+ ### Patch Changes
6
+
7
+ - fix CheckBox value
8
+
3
9
  ## 4.0.15
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -667,7 +667,6 @@ interface CheckboxProps extends CheckboxIUProps {
667
667
  id: string;
668
668
  label: string;
669
669
  checked: boolean;
670
- value: string | number | readonly string[] | undefined;
671
670
  onCheckedChange: (checked: boolean) => void;
672
671
  }
673
672
  declare const CheckBox: react.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
package/dist/index.d.ts CHANGED
@@ -667,7 +667,6 @@ interface CheckboxProps extends CheckboxIUProps {
667
667
  id: string;
668
668
  label: string;
669
669
  checked: boolean;
670
- value: string | number | readonly string[] | undefined;
671
670
  onCheckedChange: (checked: boolean) => void;
672
671
  }
673
672
  declare const CheckBox: react.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
package/dist/index.js CHANGED
@@ -477,7 +477,7 @@ var CheckBox = (0, import_react2.forwardRef)(
477
477
  disabled,
478
478
  id,
479
479
  size,
480
- value
480
+ value: checked ? value : ""
481
481
  }, props), {
482
482
  children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CheckBoxIndicator, { asChild: true, size, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react3.Check, { weight: "bold" }) })
483
483
  })
package/dist/index.mjs CHANGED
@@ -428,7 +428,7 @@ var CheckBox = forwardRef(
428
428
  disabled,
429
429
  id,
430
430
  size,
431
- value
431
+ value: checked ? value : ""
432
432
  }, props), {
433
433
  children: /* @__PURE__ */ jsx3(CheckBoxIndicator, { asChild: true, size, children: /* @__PURE__ */ jsx3(Check, { weight: "bold" }) })
434
434
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dafaz-ui/react",
3
- "version": "4.0.15",
3
+ "version": "4.0.16",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -6,7 +6,6 @@ interface CheckboxProps extends CheckboxIUProps {
6
6
  id: string
7
7
  label: string
8
8
  checked: boolean
9
- value: string | number | readonly string[] | undefined
10
9
  onCheckedChange: (checked: boolean) => void
11
10
  }
12
11
 
@@ -36,7 +35,7 @@ export const CheckBox = forwardRef<
36
35
  disabled={disabled}
37
36
  id={id}
38
37
  size={size}
39
- value={value}
38
+ value={checked ? value : ''}
40
39
  {...props}
41
40
  >
42
41
  <CheckBoxIndicator asChild size={size}>