@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
- labelPillText: s,
18989
- leftIcon: l,
18990
- onClick: c,
18991
- rightIcon: u,
18992
- role: d,
18993
- text: f
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 h = () => e ? "body-regular" : a ? "h5" : "body-large";
18996
+ const p = () => e ? "body-regular" : a ? "h5" : "body-large";
18996
18997
  return /* @__PURE__ */ g(
18997
18998
  de,
18998
18999
  {
18999
- role: d,
19000
- onClick: c,
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
- l && /* @__PURE__ */ g("span", { className: Ue.leftIcon, children: l }),
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: h(), as: "span", children: f }),
19017
- s && /* @__PURE__ */ g(
19017
+ /* @__PURE__ */ g(W, { type: p(), as: "span", children: h }),
19018
+ l && /* @__PURE__ */ g(
19018
19019
  sn,
19019
19020
  {
19020
- label: s,
19021
- size: "medium",
19022
- className: o
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
- u && /* @__PURE__ */ g("span", { className: Ue.rightIcon, children: u })
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;
@@ -8,6 +8,7 @@ export interface MenuItemProps {
8
8
  id?: string;
9
9
  isSelected?: boolean;
10
10
  labelPillClassName?: string;
11
+ labelPillSize?: 'small' | 'medium' | 'large';
11
12
  labelPillText?: string;
12
13
  leftIcon?: ReactNode;
13
14
  onClick?: ButtonProps['onClick'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "3.5.0-development.2",
3
+ "version": "3.5.0-development.3",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",