@clubmed/trident-ui 1.0.0-alpha.36 → 1.0.0-alpha.38
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/README.md +56 -28
- package/atoms/Icons/Icon.js +8 -7
- package/atoms/Icons/IconsResolver.d.ts +4 -43
- package/atoms/Icons/IconsResolver.js +15 -38
- package/atoms/Icons/contexts/IconsContext.d.ts +43 -0
- package/atoms/Icons/contexts/IconsContext.js +46 -0
- package/atoms/Icons/fonts/Actions.d.ts +2 -1
- package/atoms/Icons/fonts/Actions.js +112 -106
- package/atoms/Icons/fonts/Activities.d.ts +2 -1
- package/atoms/Icons/fonts/Activities.js +144 -138
- package/atoms/Icons/fonts/Brand.d.ts +2 -1
- package/atoms/Icons/fonts/Brand.js +91 -85
- package/atoms/Icons/fonts/Covid.d.ts +2 -1
- package/atoms/Icons/fonts/Covid.js +60 -54
- package/atoms/Icons/fonts/FontIconResolver.d.ts +1 -1
- package/atoms/Icons/fonts/FontIconResolver.js +6 -7
- package/atoms/Icons/fonts/Food.d.ts +2 -1
- package/atoms/Icons/fonts/Food.js +105 -99
- package/atoms/Icons/fonts/HappyToCare.d.ts +2 -1
- package/atoms/Icons/fonts/HappyToCare.js +57 -51
- package/atoms/Icons/fonts/Places.d.ts +2 -1
- package/atoms/Icons/fonts/Places.js +60 -54
- package/atoms/Icons/fonts/Room.d.ts +2 -1
- package/atoms/Icons/fonts/Room.js +114 -108
- package/atoms/Icons/fonts/Services.d.ts +2 -1
- package/atoms/Icons/fonts/Services.js +72 -66
- package/atoms/Icons/fonts/Socials.d.ts +2 -1
- package/atoms/Icons/fonts/Socials.js +72 -66
- package/atoms/Icons/fonts/Transports.d.ts +2 -1
- package/atoms/Icons/fonts/Transports.js +48 -42
- package/atoms/Icons/fonts/Utilities.d.ts +2 -1
- package/atoms/Icons/fonts/Utilities.js +153 -147
- package/atoms/Icons/fonts/index.js +4 -4
- package/atoms/Icons/hooks/useIcon.d.ts +2 -0
- package/atoms/Icons/hooks/useIcon.js +16 -0
- package/atoms/Icons/index.js +9 -8
- package/atoms/Icons/svg/Actions.d.ts +2 -1
- package/atoms/Icons/svg/Actions.js +145 -139
- package/atoms/Icons/svg/Activities.d.ts +2 -1
- package/atoms/Icons/svg/Activities.js +189 -183
- package/atoms/Icons/svg/Brand.d.ts +2 -1
- package/atoms/Icons/svg/Brand.js +90 -84
- package/atoms/Icons/svg/Covid.d.ts +2 -1
- package/atoms/Icons/svg/Covid.js +77 -71
- package/atoms/Icons/svg/Food.d.ts +2 -1
- package/atoms/Icons/svg/Food.js +137 -131
- package/atoms/Icons/svg/HappyToCare.d.ts +2 -1
- package/atoms/Icons/svg/HappyToCare.js +73 -67
- package/atoms/Icons/svg/Places.d.ts +2 -1
- package/atoms/Icons/svg/Places.js +77 -71
- package/atoms/Icons/svg/ResortFill-EC.d.ts +2 -1
- package/atoms/Icons/svg/ResortFill-EC.js +135 -129
- package/atoms/Icons/svg/ResortFill.d.ts +2 -1
- package/atoms/Icons/svg/ResortFill.js +399 -393
- package/atoms/Icons/svg/ResortOutline-EC.d.ts +2 -1
- package/atoms/Icons/svg/ResortOutline-EC.js +135 -129
- package/atoms/Icons/svg/ResortOutline.d.ts +2 -1
- package/atoms/Icons/svg/ResortOutline.js +399 -393
- package/atoms/Icons/svg/Room.d.ts +2 -1
- package/atoms/Icons/svg/Room.js +149 -143
- package/atoms/Icons/svg/Services.d.ts +2 -1
- package/atoms/Icons/svg/Services.js +93 -87
- package/atoms/Icons/svg/Socials.d.ts +2 -1
- package/atoms/Icons/svg/Socials.js +83 -77
- package/atoms/Icons/svg/SvgIconResolver.d.ts +1 -2
- package/atoms/Icons/svg/SvgIconResolver.js +6 -8
- package/atoms/Icons/svg/Transports.d.ts +2 -1
- package/atoms/Icons/svg/Transports.js +61 -55
- package/atoms/Icons/svg/Utilities.d.ts +2 -1
- package/atoms/Icons/svg/Utilities.js +201 -195
- package/atoms/Icons/svg/index.js +3 -2
- package/atoms/Icons/svg-use/Actions.d.ts +2 -1
- package/atoms/Icons/svg-use/Actions.js +156 -150
- package/atoms/Icons/svg-use/Activities.d.ts +2 -1
- package/atoms/Icons/svg-use/Activities.js +195 -189
- package/atoms/Icons/svg-use/Brand.d.ts +2 -1
- package/atoms/Icons/svg-use/Brand.js +97 -91
- package/atoms/Icons/svg-use/Covid.d.ts +2 -1
- package/atoms/Icons/svg-use/Covid.js +80 -74
- package/atoms/Icons/svg-use/Food.d.ts +2 -1
- package/atoms/Icons/svg-use/Food.js +145 -139
- package/atoms/Icons/svg-use/HappyToCare.d.ts +2 -1
- package/atoms/Icons/svg-use/HappyToCare.js +78 -72
- package/atoms/Icons/svg-use/Places.d.ts +2 -1
- package/atoms/Icons/svg-use/Places.js +83 -77
- package/atoms/Icons/svg-use/ResortFill-EC.d.ts +2 -1
- package/atoms/Icons/svg-use/ResortFill-EC.js +141 -135
- package/atoms/Icons/svg-use/ResortFill.d.ts +2 -1
- package/atoms/Icons/svg-use/ResortFill.js +410 -404
- package/atoms/Icons/svg-use/ResortOutline-EC.d.ts +2 -1
- package/atoms/Icons/svg-use/ResortOutline-EC.js +144 -138
- package/atoms/Icons/svg-use/ResortOutline.d.ts +2 -1
- package/atoms/Icons/svg-use/ResortOutline.js +408 -402
- package/atoms/Icons/svg-use/Room.d.ts +2 -1
- package/atoms/Icons/svg-use/Room.js +159 -153
- package/atoms/Icons/svg-use/Services.d.ts +2 -1
- package/atoms/Icons/svg-use/Services.js +97 -91
- package/atoms/Icons/svg-use/Socials.d.ts +2 -1
- package/atoms/Icons/svg-use/Socials.js +85 -79
- package/atoms/Icons/svg-use/SvgUseIconResolver.d.ts +1 -2
- package/atoms/Icons/svg-use/SvgUseIconResolver.js +8 -10
- package/atoms/Icons/svg-use/Transports.d.ts +2 -1
- package/atoms/Icons/svg-use/Transports.js +67 -61
- package/atoms/Icons/svg-use/Utilities.d.ts +2 -1
- package/atoms/Icons/svg-use/Utilities.js +212 -206
- package/atoms/Icons/svg-use/index.js +3 -2
- package/atoms/Icons/utils/getIcons.d.ts +4 -0
- package/atoms/Icons/utils/getIcons.js +21 -0
- package/fonts/Actions/tui-actions.css +6 -6
- package/fonts/Actions/tui-actions.eot +0 -0
- package/fonts/Actions/tui-actions.less +6 -6
- package/fonts/Actions/tui-actions.module.less +6 -6
- package/fonts/Actions/tui-actions.scss +6 -6
- package/fonts/Actions/tui-actions.styl +6 -6
- package/fonts/Actions/tui-actions.ttf +0 -0
- package/fonts/Actions/tui-actions.woff +0 -0
- package/fonts/Actions/tui-actions.woff2 +0 -0
- package/fonts/Activities/tui-activities.css +6 -6
- package/fonts/Activities/tui-activities.eot +0 -0
- package/fonts/Activities/tui-activities.less +6 -6
- package/fonts/Activities/tui-activities.module.less +6 -6
- package/fonts/Activities/tui-activities.scss +6 -6
- package/fonts/Activities/tui-activities.styl +6 -6
- package/fonts/Activities/tui-activities.ttf +0 -0
- package/fonts/Activities/tui-activities.woff +0 -0
- package/fonts/Activities/tui-activities.woff2 +0 -0
- package/fonts/Brand/tui-brand.css +6 -6
- package/fonts/Brand/tui-brand.eot +0 -0
- package/fonts/Brand/tui-brand.less +6 -6
- package/fonts/Brand/tui-brand.module.less +6 -6
- package/fonts/Brand/tui-brand.scss +6 -6
- package/fonts/Brand/tui-brand.styl +6 -6
- package/fonts/Brand/tui-brand.ttf +0 -0
- package/fonts/Brand/tui-brand.woff +0 -0
- package/fonts/Brand/tui-brand.woff2 +0 -0
- package/fonts/Covid/tui-covid.css +6 -6
- package/fonts/Covid/tui-covid.eot +0 -0
- package/fonts/Covid/tui-covid.less +6 -6
- package/fonts/Covid/tui-covid.module.less +6 -6
- package/fonts/Covid/tui-covid.scss +6 -6
- package/fonts/Covid/tui-covid.styl +6 -6
- package/fonts/Covid/tui-covid.ttf +0 -0
- package/fonts/Covid/tui-covid.woff +0 -0
- package/fonts/Covid/tui-covid.woff2 +0 -0
- package/fonts/Food/tui-food.css +6 -6
- package/fonts/Food/tui-food.eot +0 -0
- package/fonts/Food/tui-food.less +6 -6
- package/fonts/Food/tui-food.module.less +6 -6
- package/fonts/Food/tui-food.scss +6 -6
- package/fonts/Food/tui-food.styl +6 -6
- package/fonts/Food/tui-food.ttf +0 -0
- package/fonts/Food/tui-food.woff +0 -0
- package/fonts/Food/tui-food.woff2 +0 -0
- package/fonts/HappyToCare/tui-happy-to-care.css +6 -6
- package/fonts/HappyToCare/tui-happy-to-care.eot +0 -0
- package/fonts/HappyToCare/tui-happy-to-care.less +6 -6
- package/fonts/HappyToCare/tui-happy-to-care.module.less +6 -6
- package/fonts/HappyToCare/tui-happy-to-care.scss +6 -6
- package/fonts/HappyToCare/tui-happy-to-care.styl +6 -6
- package/fonts/HappyToCare/tui-happy-to-care.ttf +0 -0
- package/fonts/HappyToCare/tui-happy-to-care.woff +0 -0
- package/fonts/HappyToCare/tui-happy-to-care.woff2 +0 -0
- package/fonts/Places/tui-places.css +6 -6
- package/fonts/Places/tui-places.eot +0 -0
- package/fonts/Places/tui-places.less +6 -6
- package/fonts/Places/tui-places.module.less +6 -6
- package/fonts/Places/tui-places.scss +6 -6
- package/fonts/Places/tui-places.styl +6 -6
- package/fonts/Places/tui-places.ttf +0 -0
- package/fonts/Places/tui-places.woff +0 -0
- package/fonts/Places/tui-places.woff2 +0 -0
- package/fonts/Room/tui-room.css +6 -6
- package/fonts/Room/tui-room.eot +0 -0
- package/fonts/Room/tui-room.less +6 -6
- package/fonts/Room/tui-room.module.less +6 -6
- package/fonts/Room/tui-room.scss +6 -6
- package/fonts/Room/tui-room.styl +6 -6
- package/fonts/Room/tui-room.ttf +0 -0
- package/fonts/Room/tui-room.woff +0 -0
- package/fonts/Room/tui-room.woff2 +0 -0
- package/fonts/Services/tui-services.css +6 -6
- package/fonts/Services/tui-services.eot +0 -0
- package/fonts/Services/tui-services.less +6 -6
- package/fonts/Services/tui-services.module.less +6 -6
- package/fonts/Services/tui-services.scss +6 -6
- package/fonts/Services/tui-services.styl +6 -6
- package/fonts/Services/tui-services.ttf +0 -0
- package/fonts/Services/tui-services.woff +0 -0
- package/fonts/Services/tui-services.woff2 +0 -0
- package/fonts/Socials/tui-socials.css +6 -6
- package/fonts/Socials/tui-socials.eot +0 -0
- package/fonts/Socials/tui-socials.less +6 -6
- package/fonts/Socials/tui-socials.module.less +6 -6
- package/fonts/Socials/tui-socials.scss +6 -6
- package/fonts/Socials/tui-socials.styl +6 -6
- package/fonts/Socials/tui-socials.ttf +0 -0
- package/fonts/Socials/tui-socials.woff +0 -0
- package/fonts/Socials/tui-socials.woff2 +0 -0
- package/fonts/Transports/tui-transports.css +6 -6
- package/fonts/Transports/tui-transports.eot +0 -0
- package/fonts/Transports/tui-transports.less +6 -6
- package/fonts/Transports/tui-transports.module.less +6 -6
- package/fonts/Transports/tui-transports.scss +6 -6
- package/fonts/Transports/tui-transports.styl +6 -6
- package/fonts/Transports/tui-transports.ttf +0 -0
- package/fonts/Transports/tui-transports.woff +0 -0
- package/fonts/Transports/tui-transports.woff2 +0 -0
- package/fonts/Utilities/tui-utilities.css +6 -6
- package/fonts/Utilities/tui-utilities.eot +0 -0
- package/fonts/Utilities/tui-utilities.less +6 -6
- package/fonts/Utilities/tui-utilities.module.less +6 -6
- package/fonts/Utilities/tui-utilities.scss +6 -6
- package/fonts/Utilities/tui-utilities.styl +6 -6
- package/fonts/Utilities/tui-utilities.ttf +0 -0
- package/fonts/Utilities/tui-utilities.woff +0 -0
- package/fonts/Utilities/tui-utilities.woff2 +0 -0
- package/molecules/Breadcrumb.js +5 -4
- package/molecules/Buttons/ButtonContent.js +5 -4
- package/molecules/Card.js +7 -6
- package/molecules/Forms/Checkbox.js +8 -7
- package/molecules/Forms/DateField.js +3 -2
- package/molecules/Forms/Filter.js +15 -14
- package/molecules/Forms/FormControl.js +9 -8
- package/molecules/Forms/NumberField.d.ts +2 -2
- package/molecules/Forms/TextField.js +11 -10
- package/molecules/Link.js +8 -7
- package/package.json +1 -1
@@ -1,10 +1,11 @@
|
|
1
|
-
import { jsxs as
|
1
|
+
import { jsxs as s, jsx as l } from "react/jsx-runtime";
|
2
2
|
import { c as b } from "../../index-Cu0xwYjD.js";
|
3
3
|
import { Icon as y } from "../../atoms/Icons/Icon.js";
|
4
|
+
import "../../atoms/Icons/contexts/IconsContext.js";
|
4
5
|
import { useValue as N } from "../../hooks/useValue.js";
|
5
6
|
import "../../controls-l0sNRNKZ.js";
|
6
7
|
let V = 0;
|
7
|
-
function
|
8
|
+
function I({
|
8
9
|
id: m = "checkbox-" + V++,
|
9
10
|
name: r = m,
|
10
11
|
className: h,
|
@@ -21,18 +22,18 @@ function D({
|
|
21
22
|
const { value: o, setValue: d } = N({
|
22
23
|
name: r,
|
23
24
|
initialValue: p,
|
24
|
-
onChange(k,
|
25
|
-
c == null || c(k,
|
25
|
+
onChange(k, i) {
|
26
|
+
c == null || c(k, i ? a !== void 0 ? a : i : null);
|
26
27
|
}
|
27
28
|
});
|
28
|
-
return /* @__PURE__ */
|
29
|
+
return /* @__PURE__ */ s(
|
29
30
|
"label",
|
30
31
|
{
|
31
32
|
className: b(h, "relative flex items-center gap-8", {
|
32
33
|
"text-grey": t
|
33
34
|
}),
|
34
35
|
children: [
|
35
|
-
/* @__PURE__ */
|
36
|
+
/* @__PURE__ */ s("span", { className: "relative", children: [
|
36
37
|
/* @__PURE__ */ l(
|
37
38
|
"input",
|
38
39
|
{
|
@@ -66,5 +67,5 @@ function D({
|
|
66
67
|
);
|
67
68
|
}
|
68
69
|
export {
|
69
|
-
|
70
|
+
I as Checkbox
|
70
71
|
};
|
@@ -2,6 +2,7 @@ import { jsx as p, jsxs as b } from "react/jsx-runtime";
|
|
2
2
|
import { c as M } from "../../index-Cu0xwYjD.js";
|
3
3
|
import { useRef as R } from "react";
|
4
4
|
import { Icon as E } from "../../atoms/Icons/Icon.js";
|
5
|
+
import "../../atoms/Icons/contexts/IconsContext.js";
|
5
6
|
import { useValue as P } from "../../hooks/useValue.js";
|
6
7
|
import { useInternalStatus as _ } from "../../hooks/useInternalStatus.js";
|
7
8
|
import { FormControl as $ } from "./FormControl.js";
|
@@ -56,7 +57,7 @@ function G(e, t) {
|
|
56
57
|
return u;
|
57
58
|
}
|
58
59
|
let V = 0;
|
59
|
-
const F = (e) => e ? G(e, { representation: "date" }) : "",
|
60
|
+
const F = (e) => e ? G(e, { representation: "date" }) : "", K = ({
|
60
61
|
id: e = `field-date-${++V}`,
|
61
62
|
name: t = e,
|
62
63
|
label: i,
|
@@ -153,5 +154,5 @@ const F = (e) => e ? G(e, { representation: "date" }) : "", J = ({
|
|
153
154
|
);
|
154
155
|
};
|
155
156
|
export {
|
156
|
-
|
157
|
+
K as DateField
|
157
158
|
};
|
@@ -1,17 +1,18 @@
|
|
1
|
-
import { jsxs as s, jsx as
|
1
|
+
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
2
2
|
import { c } from "../../index-Cu0xwYjD.js";
|
3
3
|
import "../../controls-l0sNRNKZ.js";
|
4
4
|
import { Icon as m } from "../../atoms/Icons/Icon.js";
|
5
|
+
import "../../atoms/Icons/contexts/IconsContext.js";
|
5
6
|
import { useValue as D } from "../../hooks/useValue.js";
|
6
7
|
let N = 0;
|
7
|
-
function
|
8
|
+
function I({
|
8
9
|
id: n = "filter-" + N++,
|
9
10
|
name: a = n,
|
10
|
-
className:
|
11
|
-
dataTestId:
|
11
|
+
className: p,
|
12
|
+
dataTestId: u,
|
12
13
|
disabled: r,
|
13
14
|
checked: f = !1,
|
14
|
-
value:
|
15
|
+
value: e,
|
15
16
|
tabIndex: d = 0,
|
16
17
|
onChange: l,
|
17
18
|
hasDropdown: x,
|
@@ -22,16 +23,16 @@ function A({
|
|
22
23
|
name: a,
|
23
24
|
initialValue: f,
|
24
25
|
onChange(w, o) {
|
25
|
-
l == null || l(w, o ?
|
26
|
+
l == null || l(w, o ? e !== void 0 ? e : o : null);
|
26
27
|
}
|
27
28
|
});
|
28
|
-
return /* @__PURE__ */ s("label", { className: c(
|
29
|
-
/* @__PURE__ */
|
29
|
+
return /* @__PURE__ */ s("label", { className: c(p, "relative"), children: [
|
30
|
+
/* @__PURE__ */ t(
|
30
31
|
"input",
|
31
32
|
{
|
32
33
|
...h,
|
33
34
|
name: a,
|
34
|
-
"data-testid":
|
35
|
+
"data-testid": u,
|
35
36
|
type: "checkbox",
|
36
37
|
tabIndex: d,
|
37
38
|
onChange: () => {
|
@@ -40,16 +41,16 @@ function A({
|
|
40
41
|
checked: i,
|
41
42
|
"data-name": "Filter",
|
42
43
|
disabled: r,
|
43
|
-
value:
|
44
|
+
value: e
|
44
45
|
}
|
45
46
|
),
|
46
47
|
/* @__PURE__ */ s("span", { children: [
|
47
|
-
/* @__PURE__ */
|
48
|
-
/* @__PURE__ */
|
49
|
-
x && /* @__PURE__ */
|
48
|
+
/* @__PURE__ */ t("span", { className: c("text-b3 font-semibold"), children: b }),
|
49
|
+
/* @__PURE__ */ t(m, { width: null, name: "CheckDefault", color: "black" }),
|
50
|
+
x && /* @__PURE__ */ t(m, { name: "ArrowDefaultDown", className: "ml-8", width: "24px", color: "black" })
|
50
51
|
] })
|
51
52
|
] });
|
52
53
|
}
|
53
54
|
export {
|
54
|
-
|
55
|
+
I as Filter
|
55
56
|
};
|
@@ -2,18 +2,19 @@ import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useInternalStatus as f } from "../../hooks/useInternalStatus.js";
|
3
3
|
import { FormLabel as u } from "./FormLabel.js";
|
4
4
|
import { Icon as h } from "../../atoms/Icons/Icon.js";
|
5
|
+
import "../../atoms/Icons/contexts/IconsContext.js";
|
5
6
|
import { c as b } from "../../index-Cu0xwYjD.js";
|
6
|
-
const
|
7
|
+
const w = ({
|
7
8
|
id: t,
|
8
9
|
label: r,
|
9
10
|
description: o,
|
10
11
|
disabled: m,
|
11
12
|
className: n,
|
12
13
|
validationStatus: i = "default",
|
13
|
-
children:
|
14
|
+
children: p,
|
14
15
|
errorMessage: a,
|
15
|
-
dataTestId:
|
16
|
-
dataName:
|
16
|
+
dataTestId: c,
|
17
|
+
dataName: l,
|
17
18
|
layout: d
|
18
19
|
}) => {
|
19
20
|
const x = f({
|
@@ -24,11 +25,11 @@ const v = ({
|
|
24
25
|
"div",
|
25
26
|
{
|
26
27
|
className: b(n, "space-y-4"),
|
27
|
-
"data-name":
|
28
|
-
"data-testid":
|
28
|
+
"data-name": l,
|
29
|
+
"data-testid": c,
|
29
30
|
children: [
|
30
31
|
r && t && /* @__PURE__ */ e(u, { description: o, id: t, layout: d, children: r }),
|
31
|
-
|
32
|
+
p,
|
32
33
|
x === "error" && a && /* @__PURE__ */ s("span", { className: "text-red text-b4 flex items-start gap-x-4 px-20", children: [
|
33
34
|
/* @__PURE__ */ e(h, { name: "Error", width: "20px" }),
|
34
35
|
a
|
@@ -38,5 +39,5 @@ const v = ({
|
|
38
39
|
);
|
39
40
|
};
|
40
41
|
export {
|
41
|
-
|
42
|
+
w as FormControl
|
42
43
|
};
|
@@ -23,6 +23,7 @@ export declare function useNumberField({ id, name, value: initialValue, onChange
|
|
23
23
|
color?: string | undefined;
|
24
24
|
className?: string | undefined;
|
25
25
|
style?: import("react").CSSProperties | undefined;
|
26
|
+
children?: import("react").ReactNode;
|
26
27
|
prefix?: string | undefined;
|
27
28
|
form?: string | undefined;
|
28
29
|
list?: string | undefined;
|
@@ -31,7 +32,6 @@ export declare function useNumberField({ id, name, value: initialValue, onChange
|
|
31
32
|
slot?: string | undefined;
|
32
33
|
title?: string | undefined;
|
33
34
|
pattern?: string | undefined;
|
34
|
-
children?: import("react").ReactNode;
|
35
35
|
suppressHydrationWarning?: boolean | undefined;
|
36
36
|
height?: string | number | undefined;
|
37
37
|
lang?: string | undefined;
|
@@ -301,7 +301,7 @@ export declare function useNumberField({ id, name, value: initialValue, onChange
|
|
301
301
|
accept?: string | undefined;
|
302
302
|
capture?: boolean | "user" | "environment" | undefined;
|
303
303
|
checked?: boolean | undefined;
|
304
|
-
enterKeyHint?: "
|
304
|
+
enterKeyHint?: "done" | "search" | "enter" | "next" | "go" | "previous" | "send" | undefined;
|
305
305
|
maxLength?: number | undefined;
|
306
306
|
minLength?: number | undefined;
|
307
307
|
multiple?: boolean | undefined;
|
@@ -4,8 +4,9 @@ import { useValue as k } from "../../hooks/useValue.js";
|
|
4
4
|
import { useInternalStatus as C } from "../../hooks/useInternalStatus.js";
|
5
5
|
import { FormControl as T } from "./FormControl.js";
|
6
6
|
import { Icon as r } from "../../atoms/Icons/Icon.js";
|
7
|
+
import "../../atoms/Icons/contexts/IconsContext.js";
|
7
8
|
let F = 0;
|
8
|
-
const
|
9
|
+
const $ = (u) => {
|
9
10
|
const {
|
10
11
|
id: a = `text-field-${++F}`,
|
11
12
|
name: s = a,
|
@@ -15,15 +16,15 @@ const M = (u) => {
|
|
15
16
|
validationStatus: c = "default",
|
16
17
|
hasDropdown: l = !1,
|
17
18
|
icon: o,
|
18
|
-
iconType:
|
19
|
+
iconType: i,
|
19
20
|
errorMessage: f,
|
20
|
-
disabled:
|
21
|
+
disabled: n = !1,
|
21
22
|
className: h,
|
22
23
|
dataTestId: g = "TextField",
|
23
24
|
onChange: v,
|
24
25
|
...w
|
25
26
|
} = u, { value: y, setValue: N } = k({ name: s, initialValue: x, onChange: v }), e = C({
|
26
|
-
isDisabled:
|
27
|
+
isDisabled: n,
|
27
28
|
validationStatus: c
|
28
29
|
});
|
29
30
|
return /* @__PURE__ */ t(
|
@@ -34,7 +35,7 @@ const M = (u) => {
|
|
34
35
|
description: b,
|
35
36
|
dataName: "TextField",
|
36
37
|
dataTestId: g,
|
37
|
-
disabled:
|
38
|
+
disabled: n,
|
38
39
|
validationStatus: c,
|
39
40
|
errorMessage: f,
|
40
41
|
children: /* @__PURE__ */ d("div", { className: "relative", children: [
|
@@ -44,7 +45,7 @@ const M = (u) => {
|
|
44
45
|
...w,
|
45
46
|
id: a,
|
46
47
|
name: s,
|
47
|
-
disabled:
|
48
|
+
disabled: n,
|
48
49
|
value: y,
|
49
50
|
onChange: (D) => N(D.target.value),
|
50
51
|
className: p(
|
@@ -78,9 +79,9 @@ const M = (u) => {
|
|
78
79
|
children: [
|
79
80
|
o && /* @__PURE__ */ t(r, { name: o, width: "24px" }),
|
80
81
|
/* @__PURE__ */ d("span", { className: "ms-auto flex gap-x-8", children: [
|
81
|
-
e === "error" && /* @__PURE__ */ t(r, { name: "CrossDefault", width: "24px", type:
|
82
|
-
e === "success" && /* @__PURE__ */ t(r, { name: "CheckDefault", width: "24px", type:
|
83
|
-
l && /* @__PURE__ */ t("button", { className: "pointer-events-auto", children: /* @__PURE__ */ t(r, { name: "ArrowDefaultDown", width: "24px", color: "black", type:
|
82
|
+
e === "error" && /* @__PURE__ */ t(r, { name: "CrossDefault", width: "24px", type: i }),
|
83
|
+
e === "success" && /* @__PURE__ */ t(r, { name: "CheckDefault", width: "24px", type: i }),
|
84
|
+
l && /* @__PURE__ */ t("button", { className: "pointer-events-auto", children: /* @__PURE__ */ t(r, { name: "ArrowDefaultDown", width: "24px", color: "black", type: i }) })
|
84
85
|
] })
|
85
86
|
]
|
86
87
|
}
|
@@ -90,5 +91,5 @@ const M = (u) => {
|
|
90
91
|
);
|
91
92
|
};
|
92
93
|
export {
|
93
|
-
|
94
|
+
$ as TextField
|
94
95
|
};
|
package/molecules/Link.js
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
import { jsxs as t, jsx as
|
1
|
+
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
2
2
|
import { c as a } from "../index-Cu0xwYjD.js";
|
3
3
|
import { Icon as g } from "../atoms/Icons/Icon.js";
|
4
|
-
|
4
|
+
import "../atoms/Icons/contexts/IconsContext.js";
|
5
|
+
const j = ({
|
5
6
|
label: n,
|
6
7
|
icon: s,
|
7
|
-
iconType:
|
8
|
+
iconType: c,
|
8
9
|
underlined: e = !0,
|
9
10
|
className: m,
|
10
11
|
inert: l,
|
@@ -21,7 +22,7 @@ const I = ({
|
|
21
22
|
"data-name": "Link",
|
22
23
|
...p,
|
23
24
|
children: [
|
24
|
-
/* @__PURE__ */
|
25
|
+
/* @__PURE__ */ o("span", { className: a({ "link-underline": e }), children: d }),
|
25
26
|
/* @__PURE__ */ t(
|
26
27
|
"span",
|
27
28
|
{
|
@@ -33,11 +34,11 @@ const I = ({
|
|
33
34
|
h,
|
34
35
|
/* @__PURE__ */ t("span", { className: "inline-block", children: [
|
35
36
|
x,
|
36
|
-
s && /* @__PURE__ */
|
37
|
+
s && /* @__PURE__ */ o(
|
37
38
|
g,
|
38
39
|
{
|
39
40
|
name: s,
|
40
|
-
iconType:
|
41
|
+
iconType: c,
|
41
42
|
width: "24px",
|
42
43
|
style: { marginInlineStart: "8px" }
|
43
44
|
}
|
@@ -51,5 +52,5 @@ const I = ({
|
|
51
52
|
);
|
52
53
|
};
|
53
54
|
export {
|
54
|
-
|
55
|
+
j as Link
|
55
56
|
};
|