@goodhood-web/ui 3.5.0-development.2 → 3.5.0-development.3
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
|
@@ -18985,19 +18985,20 @@ const WV = "_root_1ur9y_141", jV = "_root__detailWrapper_1ur9y_148", ZV = "_root
|
|
|
18985
18985
|
href: r,
|
|
18986
18986
|
isSelected: a,
|
|
18987
18987
|
labelPillClassName: o,
|
|
18988
|
-
|
|
18989
|
-
|
|
18990
|
-
|
|
18991
|
-
|
|
18992
|
-
|
|
18993
|
-
|
|
18988
|
+
labelPillSize: s = "medium",
|
|
18989
|
+
labelPillText: l,
|
|
18990
|
+
leftIcon: c,
|
|
18991
|
+
onClick: u,
|
|
18992
|
+
rightIcon: d,
|
|
18993
|
+
role: f,
|
|
18994
|
+
text: h
|
|
18994
18995
|
}) => {
|
|
18995
|
-
const
|
|
18996
|
+
const p = () => e ? "body-regular" : a ? "h5" : "body-large";
|
|
18996
18997
|
return /* @__PURE__ */ g(
|
|
18997
18998
|
de,
|
|
18998
18999
|
{
|
|
18999
|
-
role:
|
|
19000
|
-
onClick:
|
|
19000
|
+
role: f,
|
|
19001
|
+
onClick: u,
|
|
19001
19002
|
className: R(t, Ue.menuItem, {
|
|
19002
19003
|
[Ue["menuItem--selected"]]: a,
|
|
19003
19004
|
[Ue["menuItem--compact"]]: e
|
|
@@ -19010,22 +19011,22 @@ const WV = "_root_1ur9y_141", jV = "_root__detailWrapper_1ur9y_148", ZV = "_root
|
|
|
19010
19011
|
[Ue["menuItem--compact"]]: e
|
|
19011
19012
|
}),
|
|
19012
19013
|
children: [
|
|
19013
|
-
|
|
19014
|
+
c && /* @__PURE__ */ g("span", { className: Ue.leftIcon, children: c }),
|
|
19014
19015
|
/* @__PURE__ */ z("div", { className: Ue.textWrapper, children: [
|
|
19015
19016
|
/* @__PURE__ */ z("div", { className: Ue.titleWrapper, children: [
|
|
19016
|
-
/* @__PURE__ */ g(W, { type:
|
|
19017
|
-
|
|
19017
|
+
/* @__PURE__ */ g(W, { type: p(), as: "span", children: h }),
|
|
19018
|
+
l && /* @__PURE__ */ g(
|
|
19018
19019
|
sn,
|
|
19019
19020
|
{
|
|
19020
|
-
label:
|
|
19021
|
-
|
|
19022
|
-
|
|
19021
|
+
label: l,
|
|
19022
|
+
className: o,
|
|
19023
|
+
size: s
|
|
19023
19024
|
}
|
|
19024
19025
|
)
|
|
19025
19026
|
] }),
|
|
19026
19027
|
n && /* @__PURE__ */ g(W, { type: "detail-regular", className: Ue.description, children: n })
|
|
19027
19028
|
] }),
|
|
19028
|
-
|
|
19029
|
+
d && /* @__PURE__ */ g("span", { className: Ue.rightIcon, children: d })
|
|
19029
19030
|
]
|
|
19030
19031
|
}
|
|
19031
19032
|
)
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MenuItemProps } from './MenuItem.types';
|
|
2
|
-
declare const MenuItem: ({ className: passedClassName, compact, descriptionText, href, isSelected, labelPillClassName, labelPillText, leftIcon, onClick, rightIcon, role, text, }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const MenuItem: ({ className: passedClassName, compact, descriptionText, href, isSelected, labelPillClassName, labelPillSize, labelPillText, leftIcon, onClick, rightIcon, role, text, }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default MenuItem;
|