@dafaz-ui/react 4.0.14 → 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.14 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
12
- CJS ⚡️ Build success in 45ms
13
- ESM dist/index.mjs 20.05 KB
14
- ESM ⚡️ Build success in 46ms
11
+ ESM dist/index.mjs 20.08 KB
12
+ ESM ⚡️ Build success in 37ms
13
+ CJS dist/index.js 22.60 KB
14
+ CJS ⚡️ Build success in 38ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 4565ms
16
+ DTS ⚡️ Build success in 4508ms
17
17
  DTS dist/index.d.mts 103.76 KB
18
18
  DTS dist/index.d.ts 103.76 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @dafaz-ui/react
2
2
 
3
+ ## 4.0.16
4
+
5
+ ### Patch Changes
6
+
7
+ - fix CheckBox value
8
+
9
+ ## 4.0.15
10
+
11
+ ### Patch Changes
12
+
13
+ - fix ref to Checkbox
14
+
3
15
  ## 4.0.14
4
16
 
5
17
  ### Patch Changes
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.14",
3
+ "version": "4.0.16",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -35,7 +35,7 @@ export const CheckBox = forwardRef<
35
35
  disabled={disabled}
36
36
  id={id}
37
37
  size={size}
38
- value={value}
38
+ value={checked ? value : ''}
39
39
  {...props}
40
40
  >
41
41
  <CheckBoxIndicator asChild size={size}>