@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.js +1 -1
- package/index.mjs +26 -24
- package/lib/Atoms/Buttons/Button/Button.types.d.ts +1 -0
- package/package.json +1 -1
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
|
-
|
|
7798
|
+
isToggleButton: h = !1,
|
|
7799
|
+
type: f
|
|
7800
|
+
} = t, { active: p, focusVisible: v, getRootProps: y } = zc({
|
|
7800
7801
|
...t,
|
|
7801
7802
|
rootRef: e
|
|
7802
|
-
}),
|
|
7803
|
-
[Y1["baseBtn--active"]]:
|
|
7804
|
-
[Y1["baseBtn--focusVisible"]]:
|
|
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:
|
|
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":
|
|
7813
|
-
"aria-describedby":
|
|
7814
|
-
className:
|
|
7815
|
-
href:
|
|
7816
|
-
target:
|
|
7817
|
-
onClick:
|
|
7818
|
-
rel:
|
|
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:
|
|
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
|
-
...
|
|
7829
|
-
"aria-label":
|
|
7830
|
-
"aria-labelledby":
|
|
7831
|
-
className: pe(Y1.baseBtn,
|
|
7832
|
-
role:
|
|
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:
|
|
7835
|
-
|
|
7836
|
-
"aria-
|
|
7837
|
-
"aria-
|
|
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;
|