@dafaz-ui/react 4.0.7 → 4.0.9
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 +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +5 -3
- package/dist/index.mjs +5 -3
- package/package.json +1 -1
- package/src/components/Button/index.tsx +4 -1
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @dafaz-ui/react@4.0.
|
2
|
+
> @dafaz-ui/react@4.0.9 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.64 KB[39m
|
12
|
+
[32mESM[39m ⚡️ Build success in 34ms
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m22.16 KB[39m
|
14
|
+
[32mCJS[39m ⚡️ Build success in 35ms
|
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 4427ms
|
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
@@ -448,8 +448,10 @@ interface ButtonUIProps extends ComponentProps<typeof ButtonUI> {
|
|
448
448
|
|
449
449
|
interface ButtonProps {
|
450
450
|
children: ReactNode;
|
451
|
+
type: string;
|
452
|
+
form?: string;
|
451
453
|
}
|
452
|
-
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;
|
453
455
|
declare namespace Button {
|
454
456
|
var displayName: string;
|
455
457
|
}
|
package/dist/index.d.ts
CHANGED
@@ -448,8 +448,10 @@ interface ButtonUIProps extends ComponentProps<typeof ButtonUI> {
|
|
448
448
|
|
449
449
|
interface ButtonProps {
|
450
450
|
children: ReactNode;
|
451
|
+
type: string;
|
452
|
+
form?: string;
|
451
453
|
}
|
452
|
-
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;
|
453
455
|
declare namespace Button {
|
454
456
|
var displayName: string;
|
455
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
|
|
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
|
|
package/package.json
CHANGED
@@ -3,6 +3,8 @@ import { ButtonUI, ButtonUIProps } from './styles'
|
|
3
3
|
|
4
4
|
interface ButtonProps {
|
5
5
|
children: ReactNode
|
6
|
+
type: string
|
7
|
+
form?: string
|
6
8
|
}
|
7
9
|
|
8
10
|
export function Button({
|
@@ -10,10 +12,11 @@ export function Button({
|
|
10
12
|
variant = 'primary',
|
11
13
|
size = 'lg',
|
12
14
|
type = 'button',
|
15
|
+
form,
|
13
16
|
...props
|
14
17
|
}: ButtonUIProps & ButtonProps) {
|
15
18
|
return (
|
16
|
-
<ButtonUI type={type} variant={variant} size={size} {...props}>
|
19
|
+
<ButtonUI form={form} type={type} variant={variant} size={size} {...props}>
|
17
20
|
{children}
|
18
21
|
</ButtonUI>
|
19
22
|
)
|