@clubmed/trident-ui 1.0.0 → 1.0.1-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -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/Forms/FormControl.js +23 -29
- package/molecules/Forms/NumberField.js +32 -32
- package/molecules/Forms/Password/Password.js +2 -2
- package/molecules/Forms/Select.js +2 -2
- package/molecules/Forms/TextField.js +2 -2
- package/package.json +1 -1
@@ -1,10 +1,10 @@
|
|
1
1
|
@font-face {font-family: "tui-utilities";
|
2
|
-
src: url('tui-utilities.eot?t=
|
3
|
-
src: url('tui-utilities.eot?t=
|
4
|
-
url("tui-utilities.woff2?t=
|
5
|
-
url("tui-utilities.woff?t=
|
6
|
-
url('tui-utilities.ttf?t=
|
7
|
-
url('tui-utilities.svg?t=
|
2
|
+
src: url('tui-utilities.eot?t=1722420903777'); /* IE9*/
|
3
|
+
src: url('tui-utilities.eot?t=1722420903777#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
4
|
+
url("tui-utilities.woff2?t=1722420903777") format("woff2"),
|
5
|
+
url("tui-utilities.woff?t=1722420903777") format("woff"),
|
6
|
+
url('tui-utilities.ttf?t=1722420903777') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
|
7
|
+
url('tui-utilities.svg?t=1722420903777#tui-utilities') format('svg'); /* iOS 4.1- */
|
8
8
|
}
|
9
9
|
|
10
10
|
[class^="tui-utilities-"], [class*=" tui-utilities-"] {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
@font-face {font-family: "tui-utilities";
|
2
|
-
src: url('tui-utilities.eot?t=
|
3
|
-
src: url('tui-utilities.eot?t=
|
4
|
-
url("tui-utilities.woff2?t=
|
5
|
-
url("tui-utilities.woff?t=
|
6
|
-
url('tui-utilities.ttf?t=
|
7
|
-
url('tui-utilities.svg?t=
|
2
|
+
src: url('tui-utilities.eot?t=1722420903777'); /* IE9*/
|
3
|
+
src: url('tui-utilities.eot?t=1722420903777#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
4
|
+
url("tui-utilities.woff2?t=1722420903777") format("woff2"),
|
5
|
+
url("tui-utilities.woff?t=1722420903777") format("woff"),
|
6
|
+
url('tui-utilities.ttf?t=1722420903777') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
|
7
|
+
url('tui-utilities.svg?t=1722420903777#tui-utilities') format('svg'); /* iOS 4.1- */
|
8
8
|
}
|
9
9
|
|
10
10
|
[class^="tui-utilities-"], [class*=" tui-utilities-"] {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
@font-face {font-family: "tui-utilities";
|
2
|
-
src: url('tui-utilities.eot?t=
|
3
|
-
src: url('tui-utilities.eot?t=
|
4
|
-
url("tui-utilities.woff2?t=
|
5
|
-
url("tui-utilities.woff?t=
|
6
|
-
url('tui-utilities.ttf?t=
|
7
|
-
url('tui-utilities.svg?t=
|
2
|
+
src: url('tui-utilities.eot?t=1722420903777'); /* IE9*/
|
3
|
+
src: url('tui-utilities.eot?t=1722420903777#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
4
|
+
url("tui-utilities.woff2?t=1722420903777") format("woff2"),
|
5
|
+
url("tui-utilities.woff?t=1722420903777") format("woff"),
|
6
|
+
url('tui-utilities.ttf?t=1722420903777') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
|
7
|
+
url('tui-utilities.svg?t=1722420903777#tui-utilities') format('svg'); /* iOS 4.1- */
|
8
8
|
}
|
9
9
|
|
10
10
|
[class^="tui-utilities-"], [class*=" tui-utilities-"] {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
@font-face {font-family: "tui-utilities";
|
2
|
-
src: url('tui-utilities.eot?t=
|
3
|
-
src: url('tui-utilities.eot?t=
|
4
|
-
url("tui-utilities.woff2?t=
|
5
|
-
url("tui-utilities.woff?t=
|
6
|
-
url('tui-utilities.ttf?t=
|
7
|
-
url('tui-utilities.svg?t=
|
2
|
+
src: url('tui-utilities.eot?t=1722420903777'); /* IE9*/
|
3
|
+
src: url('tui-utilities.eot?t=1722420903777#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
4
|
+
url("tui-utilities.woff2?t=1722420903777") format("woff2"),
|
5
|
+
url("tui-utilities.woff?t=1722420903777") format("woff"),
|
6
|
+
url('tui-utilities.ttf?t=1722420903777') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
|
7
|
+
url('tui-utilities.svg?t=1722420903777#tui-utilities') format('svg'); /* iOS 4.1- */
|
8
8
|
}
|
9
9
|
|
10
10
|
[class^="tui-utilities-"], [class*=" tui-utilities-"] {
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,44 +1,38 @@
|
|
1
|
-
import { jsxs as
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
2
2
|
import { useInternalStatus as u } from "../../hooks/useInternalStatus.js";
|
3
3
|
import { FormLabel as h } from "./FormLabel.js";
|
4
|
-
import { Icon as
|
4
|
+
import { Icon as S } from "../../atoms/Icons/Icon.js";
|
5
5
|
import "../../atoms/Icons/contexts/IconsContext.js";
|
6
|
-
import { c as
|
6
|
+
import { c as b } from "../../index-Cu0xwYjD.js";
|
7
7
|
const v = ({
|
8
8
|
id: t,
|
9
9
|
label: r,
|
10
|
-
description:
|
11
|
-
disabled:
|
12
|
-
required:
|
13
|
-
className:
|
14
|
-
validationStatus:
|
15
|
-
children:
|
10
|
+
description: o,
|
11
|
+
disabled: m,
|
12
|
+
required: n,
|
13
|
+
className: i,
|
14
|
+
validationStatus: l = "default",
|
15
|
+
children: p,
|
16
16
|
errorMessage: a,
|
17
|
-
dataTestId:
|
18
|
-
dataName:
|
19
|
-
layout:
|
17
|
+
dataTestId: c,
|
18
|
+
dataName: d,
|
19
|
+
layout: x
|
20
20
|
}) => {
|
21
|
-
const
|
22
|
-
isDisabled: !!
|
23
|
-
validationStatus:
|
21
|
+
const f = u({
|
22
|
+
isDisabled: !!m,
|
23
|
+
validationStatus: l
|
24
24
|
}) === "error" && a;
|
25
|
-
return /* @__PURE__ */
|
25
|
+
return /* @__PURE__ */ s(
|
26
26
|
"div",
|
27
27
|
{
|
28
|
-
className:
|
29
|
-
|
30
|
-
|
31
|
-
"mb-24": !s
|
32
|
-
},
|
33
|
-
l
|
34
|
-
),
|
35
|
-
"data-name": x,
|
36
|
-
"data-testid": d,
|
28
|
+
className: b("flex flex-col gap-4", i),
|
29
|
+
"data-name": d,
|
30
|
+
"data-testid": c,
|
37
31
|
children: [
|
38
|
-
r && t && /* @__PURE__ */
|
39
|
-
|
40
|
-
|
41
|
-
/* @__PURE__ */
|
32
|
+
r && t && /* @__PURE__ */ e(h, { description: o, id: t, layout: x, required: n, children: r }),
|
33
|
+
p,
|
34
|
+
f && /* @__PURE__ */ s("span", { className: "text-red text-b4 flex items-start gap-x-4 px-20", children: [
|
35
|
+
/* @__PURE__ */ e(S, { name: "Error", width: "20px" }),
|
42
36
|
a
|
43
37
|
] })
|
44
38
|
]
|
@@ -1,23 +1,23 @@
|
|
1
|
-
import { jsx as
|
2
|
-
import { c as
|
1
|
+
import { jsx as m, jsxs as C } from "react/jsx-runtime";
|
2
|
+
import { c as p } from "../../index-Cu0xwYjD.js";
|
3
3
|
import { useId as y } from "react";
|
4
4
|
import { useValue as I } from "../../hooks/useValue.js";
|
5
|
-
import { Button as
|
5
|
+
import { Button as g } from "../Buttons/Button.js";
|
6
6
|
import { FormControl as w } from "./FormControl.js";
|
7
7
|
const F = { width: "28px", height: "28px" };
|
8
|
-
function V(
|
8
|
+
function V(o) {
|
9
9
|
const e = y(), {
|
10
10
|
id: n = e,
|
11
|
-
name:
|
11
|
+
name: l = n,
|
12
12
|
value: c = 0,
|
13
13
|
onChange: d,
|
14
14
|
min: t = 0,
|
15
|
-
max:
|
15
|
+
max: r = 10,
|
16
16
|
disabled: i = !1,
|
17
17
|
dataTestId: u = "NumberField",
|
18
18
|
...f
|
19
|
-
} =
|
20
|
-
name:
|
19
|
+
} = o, { value: a, setValue: s } = I({
|
20
|
+
name: l,
|
21
21
|
defaultValue: c,
|
22
22
|
formatter: Number,
|
23
23
|
onChange: d
|
@@ -26,58 +26,58 @@ function V(m) {
|
|
26
26
|
...f,
|
27
27
|
id: n,
|
28
28
|
min: t,
|
29
|
-
max:
|
30
|
-
name:
|
29
|
+
max: r,
|
30
|
+
name: l,
|
31
31
|
value: a,
|
32
32
|
dataTestId: u,
|
33
33
|
disabled: i,
|
34
|
-
handleChange: (
|
35
|
-
const h = Number(
|
36
|
-
h >= t && h <=
|
34
|
+
handleChange: (v) => {
|
35
|
+
const h = Number(v.target.value);
|
36
|
+
h >= t && h <= r && s(Number(h));
|
37
37
|
},
|
38
38
|
increase: () => {
|
39
|
-
a <
|
39
|
+
a < r && s(a + 1);
|
40
40
|
},
|
41
41
|
decrease: () => {
|
42
42
|
a > t && s(a - 1);
|
43
43
|
}
|
44
44
|
};
|
45
45
|
}
|
46
|
-
const k = (
|
46
|
+
const k = (o) => {
|
47
47
|
const {
|
48
48
|
disabled: e,
|
49
49
|
min: n,
|
50
|
-
max:
|
50
|
+
max: l,
|
51
51
|
label: c,
|
52
52
|
description: d,
|
53
53
|
id: t,
|
54
|
-
dataTestId:
|
54
|
+
dataTestId: r,
|
55
55
|
value: i,
|
56
56
|
handleChange: u,
|
57
57
|
increase: f,
|
58
58
|
decrease: a,
|
59
59
|
errorMessage: s,
|
60
|
-
validationStatus:
|
60
|
+
validationStatus: N,
|
61
61
|
required: b,
|
62
62
|
...x
|
63
|
-
} = V(
|
64
|
-
return /* @__PURE__ */
|
63
|
+
} = V(o);
|
64
|
+
return /* @__PURE__ */ m(
|
65
65
|
w,
|
66
66
|
{
|
67
67
|
id: t,
|
68
68
|
label: c,
|
69
69
|
description: d,
|
70
|
-
className: "flex items-center justify-between",
|
70
|
+
className: p("flex items-center justify-between", o.className),
|
71
71
|
dataName: "NumberField",
|
72
|
-
dataTestId:
|
72
|
+
dataTestId: r,
|
73
73
|
errorMessage: s,
|
74
|
-
validationStatus:
|
74
|
+
validationStatus: N,
|
75
75
|
disabled: e,
|
76
76
|
required: b,
|
77
77
|
layout: "vertical",
|
78
|
-
children: /* @__PURE__ */
|
79
|
-
/* @__PURE__ */
|
80
|
-
|
78
|
+
children: /* @__PURE__ */ C("div", { className: "flex items-center gap-x-8", children: [
|
79
|
+
/* @__PURE__ */ m(
|
80
|
+
g,
|
81
81
|
{
|
82
82
|
theme: "yellow",
|
83
83
|
onClick: a,
|
@@ -87,11 +87,11 @@ const k = (m) => {
|
|
87
87
|
label: "MINUS"
|
88
88
|
}
|
89
89
|
),
|
90
|
-
/* @__PURE__ */
|
90
|
+
/* @__PURE__ */ m(
|
91
91
|
"input",
|
92
92
|
{
|
93
93
|
...x,
|
94
|
-
className:
|
94
|
+
className: p("text-b2 text-center font-normal outline-none", {
|
95
95
|
"bg-pearl text-grey": e
|
96
96
|
}),
|
97
97
|
style: F,
|
@@ -102,16 +102,16 @@ const k = (m) => {
|
|
102
102
|
required: b,
|
103
103
|
value: i,
|
104
104
|
min: n,
|
105
|
-
max:
|
105
|
+
max: l
|
106
106
|
}
|
107
107
|
),
|
108
|
-
/* @__PURE__ */
|
109
|
-
|
108
|
+
/* @__PURE__ */ m(
|
109
|
+
g,
|
110
110
|
{
|
111
111
|
theme: "yellow",
|
112
112
|
onClick: f,
|
113
113
|
variant: "icon",
|
114
|
-
disabled: i >=
|
114
|
+
disabled: i >= l || e,
|
115
115
|
icon: "PlusDefault",
|
116
116
|
label: "PLUS"
|
117
117
|
}
|
@@ -32,6 +32,7 @@ function K(f) {
|
|
32
32
|
return /* @__PURE__ */ i(
|
33
33
|
D,
|
34
34
|
{
|
35
|
+
className: v,
|
35
36
|
id: r,
|
36
37
|
label: x,
|
37
38
|
dataName: "Password",
|
@@ -60,8 +61,7 @@ function K(f) {
|
|
60
61
|
"pe-[84px]": !s && (e === "error" || e === "success"),
|
61
62
|
"border-red": !s && e === "error",
|
62
63
|
"border-green": !s && e === "success"
|
63
|
-
}
|
64
|
-
v
|
64
|
+
}
|
65
65
|
),
|
66
66
|
"aria-label": o
|
67
67
|
}
|
@@ -31,6 +31,7 @@ const B = (p) => {
|
|
31
31
|
S,
|
32
32
|
{
|
33
33
|
id: t,
|
34
|
+
className: g,
|
34
35
|
label: m,
|
35
36
|
description: f,
|
36
37
|
dataName: "TextField",
|
@@ -66,8 +67,7 @@ const B = (p) => {
|
|
66
67
|
"text-grey": e === "disabled",
|
67
68
|
"border-red": e === "error",
|
68
69
|
"border-green": e === "success"
|
69
|
-
}
|
70
|
-
g
|
70
|
+
}
|
71
71
|
),
|
72
72
|
"aria-label": a,
|
73
73
|
children: y
|
@@ -32,6 +32,7 @@ const B = (p) => {
|
|
32
32
|
{
|
33
33
|
id: r,
|
34
34
|
label: x,
|
35
|
+
className: h,
|
35
36
|
description: f,
|
36
37
|
dataName: "TextField",
|
37
38
|
dataTestId: v,
|
@@ -60,8 +61,7 @@ const B = (p) => {
|
|
60
61
|
"bg-pearl text-grey": e === "disabled",
|
61
62
|
"border-red": e === "error",
|
62
63
|
"border-green": e === "success"
|
63
|
-
}
|
64
|
-
h
|
64
|
+
}
|
65
65
|
),
|
66
66
|
"aria-label": a
|
67
67
|
}
|