@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @dafaz-ui/react@4.0.8 build
2
+ > @dafaz-ui/react@4.0.10 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.61 KB
12
- ESM ⚡️ Build success in 48ms
13
- CJS dist/index.js 22.13 KB
14
- CJS ⚡️ Build success in 48ms
11
+ CJS dist/index.js 22.17 KB
12
+ CJS ⚡️ Build success in 37ms
13
+ ESM dist/index.mjs 19.65 KB
14
+ ESM ⚡️ Build success in 37ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 4762ms
17
- DTS dist/index.d.mts 103.71 KB
18
- DTS dist/index.d.ts 103.71 KB
16
+ DTS ⚡️ Build success in 4414ms
17
+ DTS dist/index.d.mts 103.73 KB
18
+ DTS dist/index.d.ts 103.73 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @dafaz-ui/react
2
2
 
3
+ ## 4.0.10
4
+
5
+ ### Patch Changes
6
+
7
+ - fix key radio
8
+
9
+ ## 4.0.9
10
+
11
+ ### Patch Changes
12
+
13
+ - fix Button form attriibute
14
+
3
15
  ## 4.0.8
4
16
 
5
17
  ### Patch Changes
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dafaz-ui/react",
3
- "version": "4.0.8",
3
+ "version": "4.0.10",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -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
  )
@@ -22,6 +22,7 @@ export function Radio({
22
22
  {items.map((item) => {
23
23
  return (
24
24
  <RadioItem
25
+ key={item.id}
25
26
  id={item.id}
26
27
  label={item.label}
27
28
  value={item.value}