@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.
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/CheckBox/index.tsx +1 -2
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @dafaz-ui/react@4.0.
|
2
|
+
> @dafaz-ui/react@4.0.16 build
|
3
3
|
> tsup src/index.tsx --format esm,cjs --dts --external react
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx
|
@@ -8,11 +8,11 @@
|
|
8
8
|
[34mCLI[39m Target: es6
|
9
9
|
[34mESM[39m Build start
|
10
10
|
[34mCJS[39m Build start
|
11
|
-
[
|
11
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m20.08 KB[39m
|
12
|
+
[32mESM[39m ⚡️ Build success in 37ms
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m22.60 KB[39m
|
12
14
|
[32mCJS[39m ⚡️ Build success in 38ms
|
13
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m20.05 KB[39m
|
14
|
-
[32mESM[39m ⚡️ Build success in 38ms
|
15
15
|
[34mDTS[39m Build start
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
17
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m103.
|
18
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m103.
|
16
|
+
[32mDTS[39m ⚡️ Build success in 4508ms
|
17
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m103.76 KB[39m
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m103.76 KB[39m
|
package/CHANGELOG.md
CHANGED
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
@@ -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}>
|