@dafaz-ui/react 4.0.5 → 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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @dafaz-ui/react@4.0.5 build
2
+ > @dafaz-ui/react@4.0.6 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 19.57 KB
12
- ESM ⚡️ Build success in 40ms
13
- CJS dist/index.js 22.09 KB
11
+ ESM dist/index.mjs 19.61 KB
12
+ ESM ⚡️ Build success in 39ms
13
+ CJS dist/index.js 22.13 KB
14
14
  CJS ⚡️ Build success in 40ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 4458ms
16
+ DTS ⚡️ Build success in 4868ms
17
17
  DTS dist/index.d.mts 103.69 KB
18
18
  DTS dist/index.d.ts 103.69 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @dafaz-ui/react
2
2
 
3
+ ## 4.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - fix button type
8
+
3
9
  ## 4.0.5
4
10
 
5
11
  ### Patch Changes
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
 
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dafaz-ui/react",
3
- "version": "4.0.5",
3
+ "version": "4.0.6",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -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
  )