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

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
@@ -11047,24 +11047,24 @@ const pb = "_badgeLabel_onsn9_141", mb = "_badgeLabel__text_onsn9_150", b3 = {
11047
11047
  children: /* @__PURE__ */ g(W, { className: O1.text, type: s, children: n })
11048
11048
  }
11049
11049
  );
11050
- }, bb = "_sticker_7h2yc_141", Nn = {
11051
- "react-datepicker__day-names": "_react-datepicker__day-names_7h2yc_120",
11052
- "react-datepicker__week": "_react-datepicker__week_7h2yc_124",
11053
- "react-datepicker__day--outside-month": "_react-datepicker__day--outside-month_7h2yc_131",
11054
- "react-datepicker": "_react-datepicker_7h2yc_120",
11050
+ }, bb = "_sticker_cj8cq_141", Nn = {
11051
+ "react-datepicker__day-names": "_react-datepicker__day-names_cj8cq_120",
11052
+ "react-datepicker__week": "_react-datepicker__week_cj8cq_124",
11053
+ "react-datepicker__day--outside-month": "_react-datepicker__day--outside-month_cj8cq_131",
11054
+ "react-datepicker": "_react-datepicker_cj8cq_120",
11055
11055
  sticker: bb,
11056
- "sticker--color-green": "_sticker--color-green_7h2yc_149",
11057
- "sticker--color-pink": "_sticker--color-pink_7h2yc_152",
11058
- "sticker--color-lavender": "_sticker--color-lavender_7h2yc_155",
11059
- "sticker--color-teal": "_sticker--color-teal_7h2yc_159",
11060
- "sticker--color-tealAlt": "_sticker--color-tealAlt_7h2yc_163",
11061
- "sticker--color-orange": "_sticker--color-orange_7h2yc_167",
11062
- "sticker--color-grey": "_sticker--color-grey_7h2yc_170",
11063
- "sticker--color-lightGrey": "_sticker--color-lightGrey_7h2yc_176",
11064
- "sticker--color-darkGrey": "_sticker--color-darkGrey_7h2yc_183",
11065
- "sticker--size-small": "_sticker--size-small_7h2yc_186",
11066
- "sticker--size-medium": "_sticker--size-medium_7h2yc_190",
11067
- "sticker--size-large": "_sticker--size-large_7h2yc_194"
11056
+ "sticker--color-green": "_sticker--color-green_cj8cq_149",
11057
+ "sticker--color-pink": "_sticker--color-pink_cj8cq_153",
11058
+ "sticker--color-lavender": "_sticker--color-lavender_cj8cq_157",
11059
+ "sticker--color-teal": "_sticker--color-teal_cj8cq_161",
11060
+ "sticker--color-tealAlt": "_sticker--color-tealAlt_cj8cq_165",
11061
+ "sticker--color-orange": "_sticker--color-orange_cj8cq_169",
11062
+ "sticker--color-grey": "_sticker--color-grey_cj8cq_173",
11063
+ "sticker--color-lightGrey": "_sticker--color-lightGrey_cj8cq_177",
11064
+ "sticker--color-darkGrey": "_sticker--color-darkGrey_cj8cq_182",
11065
+ "sticker--size-small": "_sticker--size-small_cj8cq_186",
11066
+ "sticker--size-medium": "_sticker--size-medium_cj8cq_190",
11067
+ "sticker--size-large": "_sticker--size-large_cj8cq_194"
11068
11068
  }, ln = ({ className: t, color: e, icon: n, size: r, value: a }) => {
11069
11069
  const o = R(
11070
11070
  t,
@@ -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,
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "3.5.0-development.3",
3
+ "version": "4.0.0-development.2",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",