@goodhood-web/ui 3.0.0-development.12 → 3.0.0-development.13

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
@@ -5804,8 +5804,9 @@ process.env.NODE_ENV !== "production" && (If.propTypes = {
5804
5804
  value: H.oneOfType([H.number, H.string])
5805
5805
  });
5806
5806
  const J3 = {
5807
- "badgeIcon--size-small": "_badgeIcon--size-small_7iis0_120",
5808
- "badgeIcon--size-medium": "_badgeIcon--size-medium_7iis0_124"
5807
+ "badgeIcon--size-small": "_badgeIcon--size-small_1fuwz_120",
5808
+ "badgeIcon--size-medium": "_badgeIcon--size-medium_1fuwz_124",
5809
+ "badgeIcon--size-large": "_badgeIcon--size-large_1fuwz_128"
5809
5810
  }, R8 = (t, e) => /* @__PURE__ */ c.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: e, ...t }, /* @__PURE__ */ c.createElement("path", { d: "M10 1.25C5.16751 1.25 1.25 5.16751 1.25 10C1.25 14.8325 5.16751 18.75 10 18.75C14.8325 18.75 18.75 14.8325 18.75 10C18.75 5.16751 14.8325 1.25 10 1.25Z", fill: "#B5D622" }), /* @__PURE__ */ c.createElement("path", { d: "M10 1.25C5.16751 1.25 1.25 5.16751 1.25 10C1.25 14.8325 5.16751 18.75 10 18.75C14.8325 18.75 18.75 14.8325 18.75 10C18.75 5.16751 14.8325 1.25 10 1.25Z", stroke: "white", strokeWidth: 1.5 }), /* @__PURE__ */ c.createElement("path", { d: "M10.2419 13.2547C10.0913 13.1715 9.90865 13.1715 9.75814 13.2547L7.50156 14.5019C7.13625 14.7038 6.69898 14.3957 6.76623 13.9837L7.20934 11.2693C7.23491 11.1126 7.18459 10.9531 7.07374 10.8395L5.17957 8.89824C4.89535 8.60696 5.05962 8.11626 5.46192 8.0548L8.03689 7.66136C8.20173 7.63618 8.34316 7.53047 8.414 7.37952L9.54737 4.9645C9.72731 4.58106 10.2727 4.58106 10.4526 4.9645L11.586 7.37952C11.6568 7.53047 11.7983 7.63618 11.9631 7.66136L14.5381 8.0548C14.9404 8.11626 15.1046 8.60696 14.8204 8.89824L12.9263 10.8395C12.8154 10.9531 12.7651 11.1126 12.7907 11.2693L13.2338 13.9837C13.301 14.3957 12.8638 14.7038 12.4984 14.5019L10.2419 13.2547Z", fill: "white" })), M8 = D(R8), L8 = (t, e) => /* @__PURE__ */ c.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: e, ...t }, /* @__PURE__ */ c.createElement("path", { d: "M10 1.25C5.16751 1.25 1.25 5.16751 1.25 10C1.25 14.8325 5.16751 18.75 10 18.75C14.8325 18.75 18.75 14.8325 18.75 10C18.75 5.16751 14.8325 1.25 10 1.25Z", fill: "#738C00" }), /* @__PURE__ */ c.createElement("path", { d: "M10 1.25C5.16751 1.25 1.25 5.16751 1.25 10C1.25 14.8325 5.16751 18.75 10 18.75C14.8325 18.75 18.75 14.8325 18.75 10C18.75 5.16751 14.8325 1.25 10 1.25Z", stroke: "white", strokeWidth: 1.5 }), /* @__PURE__ */ c.createElement("path", { d: "M10.2419 13.2547C10.0913 13.1715 9.90865 13.1715 9.75814 13.2547L7.50156 14.5019C7.13625 14.7038 6.69898 14.3957 6.76623 13.9837L7.20934 11.2693C7.23491 11.1126 7.18459 10.9531 7.07374 10.8395L5.17957 8.89824C4.89535 8.60696 5.05962 8.11626 5.46192 8.0548L8.03689 7.66136C8.20173 7.63618 8.34316 7.53047 8.414 7.37952L9.54737 4.9645C9.72731 4.58106 10.2727 4.58106 10.4526 4.9645L11.586 7.37952C11.6568 7.53047 11.7983 7.63618 11.9631 7.66136L14.5381 8.0548C14.9404 8.11626 15.1046 8.60696 14.8204 8.89824L12.9263 10.8395C12.8154 10.9531 12.7651 11.1126 12.7907 11.2693L13.2338 13.9837C13.301 14.3957 12.8638 14.7038 12.4984 14.5019L10.2419 13.2547Z", fill: "#FFDD64" })), P8 = D(L8), A8 = (t, e) => /* @__PURE__ */ c.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: e, ...t }, /* @__PURE__ */ c.createElement("path", { d: "M10 1.25C5.16751 1.25 1.25 5.16751 1.25 10C1.25 14.8325 5.16751 18.75 10 18.75C14.8325 18.75 18.75 14.8325 18.75 10C18.75 5.16751 14.8325 1.25 10 1.25Z", fill: "#01819C" }), /* @__PURE__ */ c.createElement("path", { d: "M10 1.25C5.16751 1.25 1.25 5.16751 1.25 10C1.25 14.8325 5.16751 18.75 10 18.75C14.8325 18.75 18.75 14.8325 18.75 10C18.75 5.16751 14.8325 1.25 10 1.25Z", stroke: "white", strokeWidth: 1.5 }), /* @__PURE__ */ c.createElement("path", { d: "M10.2419 13.2547C10.0913 13.1715 9.90865 13.1715 9.75814 13.2547L7.50156 14.5019C7.13625 14.7038 6.69898 14.3957 6.76623 13.9837L7.20934 11.2693C7.23491 11.1126 7.18459 10.9531 7.07374 10.8395L5.17957 8.89824C4.89535 8.60696 5.05962 8.11626 5.46192 8.0548L8.03689 7.66136C8.20173 7.63618 8.34316 7.53047 8.414 7.37952L9.54737 4.9645C9.72731 4.58106 10.2727 4.58106 10.4526 4.9645L11.586 7.37952C11.6568 7.53047 11.7983 7.63618 11.9631 7.66136L14.5381 8.0548C14.9404 8.11626 15.1046 8.60696 14.8204 8.89824L12.9263 10.8395C12.8154 10.9531 12.7651 11.1126 12.7907 11.2693L13.2338 13.9837C13.301 14.3957 12.8638 14.7038 12.4984 14.5019L10.2419 13.2547Z", fill: "#FFDD64" })), F8 = D(A8), I8 = (t, e) => /* @__PURE__ */ c.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: e, ...t }, /* @__PURE__ */ c.createElement("path", { d: "M10 1.25C5.16751 1.25 1.25 5.16751 1.25 10C1.25 14.8325 5.16751 18.75 10 18.75C14.8325 18.75 18.75 14.8325 18.75 10C18.75 5.16751 14.8325 1.25 10 1.25Z", fill: "#DC8541" }), /* @__PURE__ */ c.createElement("path", { d: "M10 1.25C5.16751 1.25 1.25 5.16751 1.25 10C1.25 14.8325 5.16751 18.75 10 18.75C14.8325 18.75 18.75 14.8325 18.75 10C18.75 5.16751 14.8325 1.25 10 1.25Z", stroke: "white", strokeWidth: 1.5 }), /* @__PURE__ */ c.createElement("path", { d: "M4.5 4.5L15.5 15.5", stroke: "white", strokeWidth: 2, strokeLinecap: "round" })), V8 = D(I8), D8 = (t, e) => /* @__PURE__ */ c.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: e, ...t }, /* @__PURE__ */ c.createElement("path", { d: "M10 1.25C5.16751 1.25 1.25 5.16751 1.25 10C1.25 14.8325 5.16751 18.75 10 18.75C14.8325 18.75 18.75 14.8325 18.75 10C18.75 5.16751 14.8325 1.25 10 1.25Z", fill: "#7C5BFF" }), /* @__PURE__ */ c.createElement("path", { d: "M10 1.25C5.16751 1.25 1.25 5.16751 1.25 10C1.25 14.8325 5.16751 18.75 10 18.75C14.8325 18.75 18.75 14.8325 18.75 10C18.75 5.16751 14.8325 1.25 10 1.25Z", stroke: "white", strokeWidth: 1.5 }), /* @__PURE__ */ c.createElement("path", { d: "M10.2419 13.2547C10.0913 13.1715 9.90865 13.1715 9.75814 13.2547L7.50156 14.5019C7.13625 14.7038 6.69898 14.3957 6.76623 13.9837L7.20934 11.2693C7.23491 11.1126 7.18459 10.9531 7.07374 10.8395L5.17957 8.89824C4.89535 8.60696 5.05962 8.11626 5.46192 8.0548L8.03689 7.66136C8.20173 7.63618 8.34316 7.53047 8.414 7.37952L9.54737 4.9645C9.72731 4.58106 10.2727 4.58106 10.4526 4.9645L11.586 7.37952C11.6568 7.53047 11.7983 7.63618 11.9631 7.66136L14.5381 8.0548C14.9404 8.11626 15.1046 8.60696 14.8204 8.89824L12.9263 10.8395C12.8154 10.9531 12.7651 11.1126 12.7907 11.2693L13.2338 13.9837C13.301 14.3957 12.8638 14.7038 12.4984 14.5019L10.2419 13.2547Z", fill: "white" })), B8 = D(D8), O8 = {
5810
5811
  commercial_supporter: P8,
5811
5812
  is_super_neighbour: M8,
@@ -5815,22 +5816,22 @@ const J3 = {
5815
5816
  }, Vf = ({ ariaLabel: t, className: e, role: n, size: r, type: i }) => {
5816
5817
  const a = pe(J3.badgeIcon, J3[`badgeIcon--size-${r}`], e), l = O8[i];
5817
5818
  return /* @__PURE__ */ M.jsx(l, { className: a, "aria-label": t, role: n });
5818
- }, $8 = "_badge_vul51_120", j8 = "_badge__list_vul51_124", N8 = "_badge__icon_vul51_130", pu = {
5819
+ }, $8 = "_badge_pkhi3_120", j8 = "_badge__list_pkhi3_124", N8 = "_badge__icon_pkhi3_130", pu = {
5819
5820
  badge: $8,
5820
5821
  badge__list: j8,
5821
5822
  badge__icon: N8
5822
- }, gA = ({ ariaLabel: t, badgeIcons: e, children: n }) => /* @__PURE__ */ M.jsx(
5823
+ }, gA = ({ ariaLabel: t, badgeIcons: e, children: n, size: r = "small" }) => /* @__PURE__ */ M.jsx(
5823
5824
  Uc,
5824
5825
  {
5825
- badgeContent: e.map((r, i) => /* @__PURE__ */ M.jsx(
5826
+ badgeContent: e.map((i, a) => /* @__PURE__ */ M.jsx(
5826
5827
  Vf,
5827
5828
  {
5828
- size: "small",
5829
- type: r,
5829
+ size: r,
5830
+ type: i,
5830
5831
  className: pu.badge__icon,
5831
5832
  role: "presentation"
5832
5833
  },
5833
- i
5834
+ a
5834
5835
  )),
5835
5836
  className: pu.badge,
5836
5837
  slotProps: { badge: { className: pu.badge__list } },
@@ -1,3 +1,3 @@
1
1
  import { BadgeProps } from './Badge.types';
2
- declare const Badge: ({ ariaLabel, badgeIcons, children }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Badge: ({ ariaLabel, badgeIcons, children, size }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Badge;
@@ -5,4 +5,5 @@ export interface BadgeProps {
5
5
  ariaLabel?: string;
6
6
  badgeIcons: [BadgeIconType] | [BadgeIconType, BadgeIconType] | [BadgeIconType, BadgeIconType, BadgeIconType] | [];
7
7
  children: BadgeOwnProps['children'];
8
+ size?: BadgeIconProps['size'];
8
9
  }
@@ -4,6 +4,6 @@ export default interface BadgeIconProps {
4
4
  ariaLabel?: string;
5
5
  className?: string;
6
6
  role?: AriaRole;
7
- size: 'small' | 'medium';
7
+ size: 'small' | 'medium' | 'large';
8
8
  type: BadgeIconType;
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "3.0.0-development.12",
3
+ "version": "3.0.0-development.13",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",