@dafaz-ui/react 4.0.11 → 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.11 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
12
- ESM ⚡️ Build success in 41ms
13
- CJS dist/index.js 22.58 KB
14
- CJS ⚡️ Build success in 42ms
11
+ ESM dist/index.mjs 20.01 KB
12
+ ESM ⚡️ 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 4546ms
17
- DTS dist/index.d.mts 103.69 KB
18
- DTS dist/index.d.ts 103.69 KB
16
+ DTS ⚡️ Build success in 4529ms
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,17 @@
1
1
  # @dafaz-ui/react
2
2
 
3
+ ## 4.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - fix ref checkbox
8
+
9
+ ## 4.0.12
10
+
11
+ ### Patch Changes
12
+
13
+ - fix ref checkbox
14
+
3
15
  ## 4.0.11
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -666,6 +666,8 @@ interface CheckboxIUProps extends ComponentProps<typeof CheckBoxUI> {
666
666
  interface CheckboxProps extends CheckboxIUProps {
667
667
  id: string;
668
668
  label: string;
669
+ checked: boolean;
670
+ onCheckedChange: (checked: boolean) => void;
669
671
  }
670
672
  declare const CheckBox: react.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
671
673
 
package/dist/index.d.ts CHANGED
@@ -666,6 +666,8 @@ interface CheckboxIUProps extends ComponentProps<typeof CheckBoxUI> {
666
666
  interface CheckboxProps extends CheckboxIUProps {
667
667
  id: string;
668
668
  label: string;
669
+ checked: boolean;
670
+ onCheckedChange: (checked: boolean) => void;
669
671
  }
670
672
  declare const CheckBox: react.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
671
673
 
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.11",
3
+ "version": "4.0.13",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -5,6 +5,8 @@ import { Check } from '@phosphor-icons/react'
5
5
  interface CheckboxProps extends CheckboxIUProps {
6
6
  id: string
7
7
  label: string
8
+ checked: boolean
9
+ onCheckedChange: (checked: boolean) => void
8
10
  }
9
11
 
10
12
  export const CheckBox = forwardRef<
@@ -19,13 +21,12 @@ export const CheckBox = forwardRef<
19
21
  disabled = false,
20
22
  checked,
21
23
  onCheckedChange,
22
- value,
23
24
  ...props
24
25
  }: CheckboxProps,
25
26
  ref,
26
27
  ) => {
27
28
  return (
28
- <Label disabled={disabled} htmlFor={id} size={size}>
29
+ <Label htmlFor={id} disabled={disabled} size={size}>
29
30
  <CheckBoxUI
30
31
  ref={ref}
31
32
  checked={checked}
@@ -33,7 +34,6 @@ export const CheckBox = forwardRef<
33
34
  disabled={disabled}
34
35
  id={id}
35
36
  size={size}
36
- value={value}
37
37
  {...props}
38
38
  >
39
39
  <CheckBoxIndicator asChild size={size}>