@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.js +1 -1
- package/index.mjs +22 -21
- package/lib/Atoms/Inputs/TextAreaInput/TextAreaInput.d.ts +1 -1
- package/lib/Atoms/Inputs/TextInput/TextInput.types.d.ts +2 -2
- package/lib/Molecules/Navigation/MenuItem/MenuItem.d.ts +1 -1
- package/lib/Molecules/Navigation/MenuItem/MenuItem.types.d.ts +1 -0
- package/package.json +1 -1
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, "<").replace(/>/g, ">"), 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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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 { TextAreaInputProps } from './TextAreaInput.types';
|
|
2
|
-
declare const TextAreaInput: ({ ariaDescribedby, attachment, charLimit, colorScheme, errorText, hintText, id, label,
|
|
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
|
-
|
|
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;
|