@dafaz-ui/react 4.0.12 → 4.0.13

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.12 build
2
+ > @dafaz-ui/react@4.0.13 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
- ESM dist/index.mjs 20.05 KB
11
+ ESM dist/index.mjs 20.01 KB
12
12
  ESM ⚡️ Build success in 38ms
13
- CJS dist/index.js 22.58 KB
14
- CJS ⚡️ Build success in 38ms
13
+ CJS dist/index.js 22.54 KB
14
+ CJS ⚡️ Build success in 39ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 4498ms
16
+ DTS ⚡️ Build success in 4529ms
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,11 @@
1
1
  # @dafaz-ui/react
2
2
 
3
+ ## 4.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - fix ref checkbox
8
+
3
9
  ## 4.0.12
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -456,18 +456,16 @@ var CheckBox = (0, import_react2.forwardRef)(
456
456
  size,
457
457
  disabled = false,
458
458
  checked,
459
- onCheckedChange,
460
- value
459
+ onCheckedChange
461
460
  } = _b, props = __objRest(_b, [
462
461
  "id",
463
462
  "label",
464
463
  "size",
465
464
  "disabled",
466
465
  "checked",
467
- "onCheckedChange",
468
- "value"
466
+ "onCheckedChange"
469
467
  ]);
470
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Label, { disabled, htmlFor: id, size, children: [
468
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Label, { htmlFor: id, disabled, size, children: [
471
469
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
472
470
  CheckBoxUI,
473
471
  __spreadProps(__spreadValues({
@@ -476,8 +474,7 @@ var CheckBox = (0, import_react2.forwardRef)(
476
474
  onCheckedChange,
477
475
  disabled,
478
476
  id,
479
- size,
480
- value
477
+ size
481
478
  }, props), {
482
479
  children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CheckBoxIndicator, { asChild: true, size, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react3.Check, { weight: "bold" }) })
483
480
  })
package/dist/index.mjs CHANGED
@@ -407,18 +407,16 @@ var CheckBox = forwardRef(
407
407
  size,
408
408
  disabled = false,
409
409
  checked,
410
- onCheckedChange,
411
- value
410
+ onCheckedChange
412
411
  } = _b, props = __objRest(_b, [
413
412
  "id",
414
413
  "label",
415
414
  "size",
416
415
  "disabled",
417
416
  "checked",
418
- "onCheckedChange",
419
- "value"
417
+ "onCheckedChange"
420
418
  ]);
421
- return /* @__PURE__ */ jsxs(Label, { disabled, htmlFor: id, size, children: [
419
+ return /* @__PURE__ */ jsxs(Label, { htmlFor: id, disabled, size, children: [
422
420
  /* @__PURE__ */ jsx3(
423
421
  CheckBoxUI,
424
422
  __spreadProps(__spreadValues({
@@ -427,8 +425,7 @@ var CheckBox = forwardRef(
427
425
  onCheckedChange,
428
426
  disabled,
429
427
  id,
430
- size,
431
- value
428
+ size
432
429
  }, props), {
433
430
  children: /* @__PURE__ */ jsx3(CheckBoxIndicator, { asChild: true, size, children: /* @__PURE__ */ jsx3(Check, { weight: "bold" }) })
434
431
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dafaz-ui/react",
3
- "version": "4.0.12",
3
+ "version": "4.0.13",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -21,13 +21,12 @@ export const CheckBox = forwardRef<
21
21
  disabled = false,
22
22
  checked,
23
23
  onCheckedChange,
24
- value,
25
24
  ...props
26
25
  }: CheckboxProps,
27
26
  ref,
28
27
  ) => {
29
28
  return (
30
- <Label disabled={disabled} htmlFor={id} size={size}>
29
+ <Label htmlFor={id} disabled={disabled} size={size}>
31
30
  <CheckBoxUI
32
31
  ref={ref}
33
32
  checked={checked}
@@ -35,7 +34,6 @@ export const CheckBox = forwardRef<
35
34
  disabled={disabled}
36
35
  id={id}
37
36
  size={size}
38
- value={value}
39
37
  {...props}
40
38
  >
41
39
  <CheckBoxIndicator asChild size={size}>