@goodhood-web/ui 3.5.0-development.2 → 4.0.0-development.1

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
@@ -16629,7 +16629,7 @@ const uS = "_bodyText_10lrf_141", dS = "_bodyText__textButton_10lrf_169", hS = "
16629
16629
  },
16630
16630
  a
16631
16631
  )
16632
- ) : (r = r.replace(/\n/g, "<br>"), r));
16632
+ ) : (r = r.replace(/</g, "&lt;").replace(/>/g, "&gt;"), r = r.replace(/\n/g, "<br>"), r));
16633
16633
  }, pS = (
16634
16634
  // eslint-disable-next-line no-control-regex
16635
16635
  /((?:https?:\/\/)?(?:(?:[^\u0000-\u007F]|[\w-])+\.(?:(?:[^\u0000-\u007F]|[\w-]){2,}\.)*(?:[^\u0000-\u007F]|[a-zA-Z])+)(?:\d+)?(?:\/(?:(?:[^\u0000-\u007F]|[\w/.,'"@+=!:;=%()-])+)?(?:\.(?:[^\u0000-\u007F]|[\w-])+)?)?(?:(?:\?|#)\S+)?)/g
@@ -17847,7 +17847,7 @@ const bq = /* @__PURE__ */ V2(Cq), H0 = (t) => bq(t) ? 0 : String(t).length, wq
17847
17847
  id: m,
17848
17848
  inputFieldType: b = "text",
17849
17849
  label: C,
17850
- limitCharInput: w = !1,
17850
+ maxLength: w,
17851
17851
  name: y,
17852
17852
  onClick: _,
17853
17853
  onKeyDown: L,
@@ -17903,7 +17903,7 @@ const bq = /* @__PURE__ */ V2(Cq), H0 = (t) => bq(t) ? 0 : String(t).length, wq
17903
17903
  ),
17904
17904
  placeholder: V,
17905
17905
  onChange: M,
17906
- maxLength: w ? s : void 0,
17906
+ maxLength: w,
17907
17907
  "aria-invalid": P,
17908
17908
  "aria-describedby": r,
17909
17909
  "aria-disabled": E,
@@ -18331,7 +18331,7 @@ const nV = "_wrapper_pgdxh_141", rV = "_textAreaInput_pgdxh_148", iV = "_textAre
18331
18331
  hintText: o,
18332
18332
  id: s,
18333
18333
  label: l,
18334
- limitCharInput: c = !1,
18334
+ maxLength: c,
18335
18335
  name: u,
18336
18336
  ref: d,
18337
18337
  size: f,
@@ -18372,7 +18372,7 @@ const nV = "_wrapper_pgdxh_141", rV = "_textAreaInput_pgdxh_148", iV = "_textAre
18372
18372
  onChange: (I) => {
18373
18373
  p(I), w(I);
18374
18374
  },
18375
- maxLength: c ? n : void 0,
18375
+ maxLength: c,
18376
18376
  "aria-invalid": V,
18377
18377
  "aria-describedby": t,
18378
18378
  "aria-disabled": C,
@@ -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 { TextAreaInputProps } from './TextAreaInput.types';
2
- declare const TextAreaInput: ({ ariaDescribedby, attachment, charLimit, colorScheme, errorText, hintText, id, label, limitCharInput, name, ref, size, ...props }: TextAreaInputProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const TextAreaInput: ({ ariaDescribedby, attachment, charLimit, colorScheme, errorText, hintText, id, label, maxLength, name, ref, size, ...props }: TextAreaInputProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default TextAreaInput;
@@ -1,5 +1,5 @@
1
1
  import { UseInputParameters } from '@mui/base';
2
- import { ForwardedRef, HTMLInputTypeAttribute, KeyboardEventHandler } from 'react';
2
+ import { ForwardedRef, HTMLInputTypeAttribute, InputHTMLAttributes, KeyboardEventHandler } from 'react';
3
3
  import { CountryCode } from '../../../Base/FlagIcon/FlagIcon.types';
4
4
  import { IconProps } from '../../../Base/Icon/Icon.types';
5
5
  import { IconButtonIcon16Props, IconButtonIcon24Props } from '../../Buttons/IconButton/IconButton.types';
@@ -17,7 +17,7 @@ export interface CommonTextInputProps extends UseInputParameters {
17
17
  hintText?: string;
18
18
  id: string;
19
19
  label: string;
20
- limitCharInput?: boolean;
20
+ maxLength?: InputHTMLAttributes<HTMLInputElement>['maxLength'];
21
21
  name?: string;
22
22
  onKeyDown?: KeyboardEventHandler;
23
23
  placeholder?: string;
@@ -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": "4.0.0-development.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",