@dafaz-ui/react 4.0.8 → 4.0.10
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 +8 -8
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7 -4
- package/dist/index.mjs +7 -4
- package/package.json +1 -1
- package/src/components/Button/index.tsx +3 -1
- package/src/components/Radio/index.tsx +1 -0
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @dafaz-ui/react@4.0.
|
2
|
+
> @dafaz-ui/react@4.0.10 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
|
-
[
|
12
|
-
[
|
13
|
-
[
|
14
|
-
[
|
11
|
+
[32mCJS[39m [1mdist/index.js [22m[32m22.17 KB[39m
|
12
|
+
[32mCJS[39m ⚡️ Build success in 37ms
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m19.65 KB[39m
|
14
|
+
[32mESM[39m ⚡️ Build success in 37ms
|
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 4414ms
|
17
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m103.73 KB[39m
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m103.73 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
@@ -449,8 +449,9 @@ interface ButtonUIProps extends ComponentProps<typeof ButtonUI> {
|
|
449
449
|
interface ButtonProps {
|
450
450
|
children: ReactNode;
|
451
451
|
type: string;
|
452
|
+
form?: string;
|
452
453
|
}
|
453
|
-
declare function Button({ children, variant, size, type, ...props }: ButtonUIProps & ButtonProps): react_jsx_runtime.JSX.Element;
|
454
|
+
declare function Button({ children, variant, size, type, form, ...props }: ButtonUIProps & ButtonProps): react_jsx_runtime.JSX.Element;
|
454
455
|
declare namespace Button {
|
455
456
|
var displayName: string;
|
456
457
|
}
|
package/dist/index.d.ts
CHANGED
@@ -449,8 +449,9 @@ interface ButtonUIProps extends ComponentProps<typeof ButtonUI> {
|
|
449
449
|
interface ButtonProps {
|
450
450
|
children: ReactNode;
|
451
451
|
type: string;
|
452
|
+
form?: string;
|
452
453
|
}
|
453
|
-
declare function Button({ children, variant, size, type, ...props }: ButtonUIProps & ButtonProps): react_jsx_runtime.JSX.Element;
|
454
|
+
declare function Button({ children, variant, size, type, form, ...props }: ButtonUIProps & ButtonProps): react_jsx_runtime.JSX.Element;
|
454
455
|
declare namespace Button {
|
455
456
|
var displayName: string;
|
456
457
|
}
|
package/dist/index.js
CHANGED
@@ -310,14 +310,16 @@ function Button(_a) {
|
|
310
310
|
children,
|
311
311
|
variant = "primary",
|
312
312
|
size = "lg",
|
313
|
-
type = "button"
|
313
|
+
type = "button",
|
314
|
+
form
|
314
315
|
} = _b, props = __objRest(_b, [
|
315
316
|
"children",
|
316
317
|
"variant",
|
317
318
|
"size",
|
318
|
-
"type"
|
319
|
+
"type",
|
320
|
+
"form"
|
319
321
|
]);
|
320
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ButtonUI, __spreadProps(__spreadValues({ type, variant, size }, props), { children }));
|
322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ButtonUI, __spreadProps(__spreadValues({ form, type, variant, size }, props), { children }));
|
321
323
|
}
|
322
324
|
Button.displayName = "Button";
|
323
325
|
|
@@ -688,7 +690,8 @@ function Radio(_a) {
|
|
688
690
|
value: item.value,
|
689
691
|
size,
|
690
692
|
disabled
|
691
|
-
}
|
693
|
+
},
|
694
|
+
item.id
|
692
695
|
);
|
693
696
|
}) }));
|
694
697
|
}
|
package/dist/index.mjs
CHANGED
@@ -261,14 +261,16 @@ function Button(_a) {
|
|
261
261
|
children,
|
262
262
|
variant = "primary",
|
263
263
|
size = "lg",
|
264
|
-
type = "button"
|
264
|
+
type = "button",
|
265
|
+
form
|
265
266
|
} = _b, props = __objRest(_b, [
|
266
267
|
"children",
|
267
268
|
"variant",
|
268
269
|
"size",
|
269
|
-
"type"
|
270
|
+
"type",
|
271
|
+
"form"
|
270
272
|
]);
|
271
|
-
return /* @__PURE__ */ jsx2(ButtonUI, __spreadProps(__spreadValues({ type, variant, size }, props), { children }));
|
273
|
+
return /* @__PURE__ */ jsx2(ButtonUI, __spreadProps(__spreadValues({ form, type, variant, size }, props), { children }));
|
272
274
|
}
|
273
275
|
Button.displayName = "Button";
|
274
276
|
|
@@ -639,7 +641,8 @@ function Radio(_a) {
|
|
639
641
|
value: item.value,
|
640
642
|
size,
|
641
643
|
disabled
|
642
|
-
}
|
644
|
+
},
|
645
|
+
item.id
|
643
646
|
);
|
644
647
|
}) }));
|
645
648
|
}
|
package/package.json
CHANGED
@@ -4,6 +4,7 @@ import { ButtonUI, ButtonUIProps } from './styles'
|
|
4
4
|
interface ButtonProps {
|
5
5
|
children: ReactNode
|
6
6
|
type: string
|
7
|
+
form?: string
|
7
8
|
}
|
8
9
|
|
9
10
|
export function Button({
|
@@ -11,10 +12,11 @@ export function Button({
|
|
11
12
|
variant = 'primary',
|
12
13
|
size = 'lg',
|
13
14
|
type = 'button',
|
15
|
+
form,
|
14
16
|
...props
|
15
17
|
}: ButtonUIProps & ButtonProps) {
|
16
18
|
return (
|
17
|
-
<ButtonUI type={type} variant={variant} size={size} {...props}>
|
19
|
+
<ButtonUI form={form} type={type} variant={variant} size={size} {...props}>
|
18
20
|
{children}
|
19
21
|
</ButtonUI>
|
20
22
|
)
|