@goodhood-web/ui 3.0.0-development.28 → 3.0.0-development.29

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/index.mjs CHANGED
@@ -7795,46 +7795,48 @@ const De = (t) => {
7795
7795
  className: i,
7796
7796
  "data-testid": a,
7797
7797
  disabled: l = !1,
7798
- isToggleButton: h = !1
7799
- } = t, { active: f, focusVisible: p, getRootProps: v } = zc({
7798
+ isToggleButton: h = !1,
7799
+ type: f
7800
+ } = t, { active: p, focusVisible: v, getRootProps: y } = zc({
7800
7801
  ...t,
7801
7802
  rootRef: e
7802
- }), y = pe(Y1.baseBtn, i, {
7803
- [Y1["baseBtn--active"]]: f,
7804
- [Y1["baseBtn--focusVisible"]]: p
7803
+ }), b = pe(Y1.baseBtn, i, {
7804
+ [Y1["baseBtn--active"]]: p,
7805
+ [Y1["baseBtn--focusVisible"]]: v
7805
7806
  });
7806
7807
  if (n) {
7807
- const { ariaDescribedBy: V, ariaLabel: $, ariaLabelledBy: W, href: N, onClick: Y, rel: J, target: K } = t, oe = K === "_blank" ? "noopener noreferrer" : J;
7808
+ const { ariaDescribedBy: $, ariaLabel: W, ariaLabelledBy: N, href: Y, onClick: J, rel: K, target: oe } = t, fe = oe === "_blank" ? "noopener noreferrer" : K;
7808
7809
  return /* @__PURE__ */ R.jsx(
7809
7810
  "a",
7810
7811
  {
7811
- "aria-label": $,
7812
- "aria-labelledby": W,
7813
- "aria-describedby": V,
7814
- className: y,
7815
- href: N,
7816
- target: K,
7817
- onClick: Y,
7818
- rel: oe,
7812
+ "aria-label": W,
7813
+ "aria-labelledby": N,
7814
+ "aria-describedby": $,
7815
+ className: b,
7816
+ href: Y,
7817
+ target: oe,
7818
+ onClick: J,
7819
+ rel: fe,
7819
7820
  "data-testid": a,
7820
7821
  children: r
7821
7822
  }
7822
7823
  );
7823
7824
  }
7824
- const { ariaDescribedBy: b, ariaLabel: S, ariaLabelledBy: L, onClick: D, role: A, selected: P } = t;
7825
+ const { ariaDescribedBy: S, ariaLabel: L, ariaLabelledBy: D, onClick: A, role: P, selected: V } = t;
7825
7826
  return /* @__PURE__ */ R.jsx(
7826
7827
  "button",
7827
7828
  {
7828
- ...v(),
7829
- "aria-label": S,
7830
- "aria-labelledby": L,
7831
- className: pe(Y1.baseBtn, y, i),
7832
- role: A,
7829
+ ...y(),
7830
+ "aria-label": L,
7831
+ "aria-labelledby": D,
7832
+ className: pe(Y1.baseBtn, b, i),
7833
+ role: P,
7833
7834
  disabled: l,
7834
- onClick: D,
7835
- "aria-pressed": h ? f : void 0,
7836
- "aria-selected": P,
7837
- "aria-describedby": b,
7835
+ onClick: A,
7836
+ type: f,
7837
+ "aria-pressed": h ? p : void 0,
7838
+ "aria-selected": V,
7839
+ "aria-describedby": S,
7838
7840
  "data-testid": a,
7839
7841
  children: r
7840
7842
  }
@@ -12,6 +12,7 @@ interface CommonProps {
12
12
  ref?: ForwardedRef<null>;
13
13
  role?: AriaRole;
14
14
  selected?: boolean;
15
+ type?: React.ButtonHTMLAttributes<HTMLButtonElement>['type'];
15
16
  }
16
17
  export interface BaseButtonProps extends ButtonOwnProps, CommonProps {
17
18
  onClick: (event: MouseEvent<HTMLElement>) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "3.0.0-development.28",
3
+ "version": "3.0.0-development.29",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",