@dafaz-ui/react 4.0.5 → 4.0.7

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.7 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
14
- CJS ⚡️ Build success in 40ms
11
+ ESM dist/index.mjs 19.61 KB
12
+ ESM ⚡️ Build success in 51ms
13
+ CJS dist/index.js 22.13 KB
14
+ CJS ⚡️ Build success in 52ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 4458ms
16
+ DTS ⚡️ Build success in 4624ms
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,17 @@
1
1
  # @dafaz-ui/react
2
2
 
3
+ ## 4.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - fix button size
8
+
9
+ ## 4.0.6
10
+
11
+ ### Patch Changes
12
+
13
+ - fix button type
14
+
3
15
  ## 4.0.5
4
16
 
5
17
  ### 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
@@ -298,7 +298,7 @@ var ButtonUI = styled("button", {
298
298
  },
299
299
  defaultVariants: {
300
300
  variant: "primary",
301
- size: "md",
301
+ size: "lg",
302
302
  flat: false
303
303
  }
304
304
  });
@@ -309,13 +309,15 @@ function Button(_a) {
309
309
  var _b = _a, {
310
310
  children,
311
311
  variant = "primary",
312
- size = "md"
312
+ size = "lg",
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
@@ -249,7 +249,7 @@ var ButtonUI = styled("button", {
249
249
  },
250
250
  defaultVariants: {
251
251
  variant: "primary",
252
- size: "md",
252
+ size: "lg",
253
253
  flat: false
254
254
  }
255
255
  });
@@ -260,13 +260,15 @@ function Button(_a) {
260
260
  var _b = _a, {
261
261
  children,
262
262
  variant = "primary",
263
- size = "md"
263
+ size = "lg",
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.7",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -8,11 +8,12 @@ interface ButtonProps {
8
8
  export function Button({
9
9
  children,
10
10
  variant = 'primary',
11
- size = 'md',
11
+ size = 'lg',
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
  )
@@ -97,7 +97,7 @@ export const ButtonUI = styled('button', {
97
97
  },
98
98
  defaultVariants: {
99
99
  variant: 'primary',
100
- size: 'md',
100
+ size: 'lg',
101
101
  flat: false,
102
102
  },
103
103
  })