@dafaz-ui/react 4.0.4 → 4.0.6
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 +6 -6
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -5
- package/dist/index.mjs +7 -5
- package/package.json +1 -1
- package/src/components/Button/index.tsx +2 -1
- package/src/components/Select/styles.ts +2 -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.6 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
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m19.
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
13
|
-
[32mCJS[39m [1mdist/index.js [22m[32m22.
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
11
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m19.61 KB[39m
|
12
|
+
[32mESM[39m ⚡️ Build success in 39ms
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m22.13 KB[39m
|
14
|
+
[32mCJS[39m ⚡️ Build success in 40ms
|
15
15
|
[34mDTS[39m Build start
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
16
|
+
[32mDTS[39m ⚡️ Build success in 4868ms
|
17
17
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m103.69 KB[39m
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m103.69 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
@@ -449,7 +449,7 @@ interface ButtonUIProps extends ComponentProps<typeof ButtonUI> {
|
|
449
449
|
interface ButtonProps {
|
450
450
|
children: ReactNode;
|
451
451
|
}
|
452
|
-
declare function Button({ children, variant, size, ...props }: ButtonUIProps & ButtonProps): react_jsx_runtime.JSX.Element;
|
452
|
+
declare function Button({ children, variant, size, type, ...props }: ButtonUIProps & ButtonProps): react_jsx_runtime.JSX.Element;
|
453
453
|
declare namespace Button {
|
454
454
|
var displayName: string;
|
455
455
|
}
|
package/dist/index.d.ts
CHANGED
@@ -449,7 +449,7 @@ interface ButtonUIProps extends ComponentProps<typeof ButtonUI> {
|
|
449
449
|
interface ButtonProps {
|
450
450
|
children: ReactNode;
|
451
451
|
}
|
452
|
-
declare function Button({ children, variant, size, ...props }: ButtonUIProps & ButtonProps): react_jsx_runtime.JSX.Element;
|
452
|
+
declare function Button({ children, variant, size, type, ...props }: ButtonUIProps & ButtonProps): react_jsx_runtime.JSX.Element;
|
453
453
|
declare namespace Button {
|
454
454
|
var displayName: string;
|
455
455
|
}
|
package/dist/index.js
CHANGED
@@ -309,13 +309,15 @@ function Button(_a) {
|
|
309
309
|
var _b = _a, {
|
310
310
|
children,
|
311
311
|
variant = "primary",
|
312
|
-
size = "md"
|
312
|
+
size = "md",
|
313
|
+
type = "button"
|
313
314
|
} = _b, props = __objRest(_b, [
|
314
315
|
"children",
|
315
316
|
"variant",
|
316
|
-
"size"
|
317
|
+
"size",
|
318
|
+
"type"
|
317
319
|
]);
|
318
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ButtonUI, __spreadProps(__spreadValues({ variant, size }, props), { children }));
|
320
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ButtonUI, __spreadProps(__spreadValues({ type, variant, size }, props), { children }));
|
319
321
|
}
|
320
322
|
Button.displayName = "Button";
|
321
323
|
|
@@ -731,7 +733,7 @@ var SelectUI = styled("select", {
|
|
731
733
|
}
|
732
734
|
},
|
733
735
|
defaultVariants: {
|
734
|
-
size: "
|
736
|
+
size: "lg"
|
735
737
|
}
|
736
738
|
});
|
737
739
|
var OptionUI = styled("option", {
|
@@ -753,7 +755,7 @@ var OptionUI = styled("option", {
|
|
753
755
|
}
|
754
756
|
},
|
755
757
|
defaultVariants: {
|
756
|
-
size: "
|
758
|
+
size: "lg"
|
757
759
|
}
|
758
760
|
});
|
759
761
|
|
package/dist/index.mjs
CHANGED
@@ -260,13 +260,15 @@ function Button(_a) {
|
|
260
260
|
var _b = _a, {
|
261
261
|
children,
|
262
262
|
variant = "primary",
|
263
|
-
size = "md"
|
263
|
+
size = "md",
|
264
|
+
type = "button"
|
264
265
|
} = _b, props = __objRest(_b, [
|
265
266
|
"children",
|
266
267
|
"variant",
|
267
|
-
"size"
|
268
|
+
"size",
|
269
|
+
"type"
|
268
270
|
]);
|
269
|
-
return /* @__PURE__ */ jsx2(ButtonUI, __spreadProps(__spreadValues({ variant, size }, props), { children }));
|
271
|
+
return /* @__PURE__ */ jsx2(ButtonUI, __spreadProps(__spreadValues({ type, variant, size }, props), { children }));
|
270
272
|
}
|
271
273
|
Button.displayName = "Button";
|
272
274
|
|
@@ -682,7 +684,7 @@ var SelectUI = styled("select", {
|
|
682
684
|
}
|
683
685
|
},
|
684
686
|
defaultVariants: {
|
685
|
-
size: "
|
687
|
+
size: "lg"
|
686
688
|
}
|
687
689
|
});
|
688
690
|
var OptionUI = styled("option", {
|
@@ -704,7 +706,7 @@ var OptionUI = styled("option", {
|
|
704
706
|
}
|
705
707
|
},
|
706
708
|
defaultVariants: {
|
707
|
-
size: "
|
709
|
+
size: "lg"
|
708
710
|
}
|
709
711
|
});
|
710
712
|
|
package/package.json
CHANGED
@@ -9,10 +9,11 @@ export function Button({
|
|
9
9
|
children,
|
10
10
|
variant = 'primary',
|
11
11
|
size = 'md',
|
12
|
+
type = 'button',
|
12
13
|
...props
|
13
14
|
}: ButtonUIProps & ButtonProps) {
|
14
15
|
return (
|
15
|
-
<ButtonUI variant={variant} size={size} {...props}>
|
16
|
+
<ButtonUI type={type} variant={variant} size={size} {...props}>
|
16
17
|
{children}
|
17
18
|
</ButtonUI>
|
18
19
|
)
|
@@ -47,7 +47,7 @@ export const SelectUI = styled('select', {
|
|
47
47
|
},
|
48
48
|
|
49
49
|
defaultVariants: {
|
50
|
-
size: '
|
50
|
+
size: 'lg',
|
51
51
|
},
|
52
52
|
})
|
53
53
|
|
@@ -76,7 +76,7 @@ export const OptionUI = styled('option', {
|
|
76
76
|
},
|
77
77
|
},
|
78
78
|
defaultVariants: {
|
79
|
-
size: '
|
79
|
+
size: 'lg',
|
80
80
|
},
|
81
81
|
})
|
82
82
|
|