@goodhood-web/ui 3.0.0-development.27 → 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 +2 -2
- package/index.mjs +33 -31
- package/lib/Atoms/Buttons/Button/Button.types.d.ts +1 -0
- package/package.json +1 -1
- package/style.css +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
|
}
|
|
@@ -24203,17 +24205,17 @@ const BL = "_root_rvdm7_120", OL = "_root__detailWrapper_rvdm7_127", $L = "_root
|
|
|
24203
24205
|
]
|
|
24204
24206
|
}
|
|
24205
24207
|
) });
|
|
24206
|
-
}, vP = "
|
|
24208
|
+
}, vP = "_emptyState_13rn5_120", CP = "_emptyState__text_13rn5_126", yP = "_emptyState__secondaryText_13rn5_131", wP = "_emptyState__buttons_13rn5_134", ia = {
|
|
24207
24209
|
emptyState: vP,
|
|
24208
24210
|
emptyState__text: CP,
|
|
24209
24211
|
emptyState__secondaryText: yP,
|
|
24210
24212
|
emptyState__buttons: wP,
|
|
24211
|
-
"emptyState--small": "_emptyState--
|
|
24212
|
-
"emptyState--small__text": "_emptyState--
|
|
24213
|
-
"emptyState--medium": "_emptyState--
|
|
24214
|
-
"emptyState--medium__text": "_emptyState--
|
|
24215
|
-
"emptyState--large": "_emptyState--
|
|
24216
|
-
"emptyState--large__text": "_emptyState--
|
|
24213
|
+
"emptyState--small": "_emptyState--small_13rn5_140",
|
|
24214
|
+
"emptyState--small__text": "_emptyState--small__text_13rn5_143",
|
|
24215
|
+
"emptyState--medium": "_emptyState--medium_13rn5_146",
|
|
24216
|
+
"emptyState--medium__text": "_emptyState--medium__text_13rn5_149",
|
|
24217
|
+
"emptyState--large": "_emptyState--large_13rn5_152",
|
|
24218
|
+
"emptyState--large__text": "_emptyState--large__text_13rn5_155"
|
|
24217
24219
|
}, bP = {
|
|
24218
24220
|
large: {
|
|
24219
24221
|
buttonSize: "large",
|
|
@@ -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;
|