bmi-next-brokers 1.2.4 → 1.2.6
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/dist/Input.module-DuUfwXwW.js +88 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/Select.css +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.js +37 -36
- package/dist/components/FileUpload/CompactFileUpload.js +174 -136
- package/dist/components/Input/Checkbox/Checkbox.d.ts +2 -1
- package/dist/components/Input/Checkbox/Checkbox.js +102 -82
- package/dist/components/Input/Input.d.ts +3 -2
- package/dist/components/Input/Input.js +105 -68
- package/dist/components/Input/RadioButton/RadioButton.d.ts +2 -1
- package/dist/components/Input/RadioButton/RadioButton.js +103 -93
- package/dist/components/Select/Select.d.ts +2 -1
- package/dist/components/Select/Select.js +176 -159
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/components/AmericanExpressRounded.d.ts +3 -0
- package/dist/icons/components/AmericanExpressRounded.js +12 -0
- package/dist/icons/components/DinersRounded.d.ts +3 -0
- package/dist/icons/components/DinersRounded.js +12 -0
- package/dist/icons/components/DiscoverRounded.d.ts +3 -0
- package/dist/icons/components/DiscoverRounded.js +12 -0
- package/dist/icons/components/FallbackCardRounded.d.ts +3 -0
- package/dist/icons/components/FallbackCardRounded.js +9 -0
- package/dist/icons/components/MastercardRounded.d.ts +3 -0
- package/dist/icons/components/MastercardRounded.js +10 -0
- package/dist/icons/components/PriceChange.d.ts +3 -0
- package/dist/icons/components/PriceChange.js +22 -0
- package/dist/icons/components/VisaRounded.d.ts +3 -0
- package/dist/icons/components/VisaRounded.js +8 -0
- package/dist/icons/components/index.d.ts +7 -0
- package/dist/icons/components/index.js +196 -182
- package/dist/icons/index.d.ts +7 -0
- package/dist/icons/index.js +230 -216
- package/dist/index-D2qcqwKe.js +248 -0
- package/package.json +1 -1
- package/dist/Input.module-DEnV7xlj.js +0 -78
- package/dist/index-DzpFRTwz.js +0 -234
|
@@ -1,89 +1,109 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { s as
|
|
1
|
+
import { jsxs as c, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as P } from "react";
|
|
3
|
+
import { s as e } from "../../../Input.module-DuUfwXwW.js";
|
|
4
4
|
const T = ({
|
|
5
|
-
size:
|
|
6
|
-
label:
|
|
7
|
-
placeholder:
|
|
8
|
-
helperText:
|
|
9
|
-
required:
|
|
10
|
-
error:
|
|
11
|
-
inverted:
|
|
12
|
-
disabled:
|
|
13
|
-
checked:
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
size: o = "medium",
|
|
6
|
+
label: t,
|
|
7
|
+
placeholder: p,
|
|
8
|
+
helperText: i,
|
|
9
|
+
required: m,
|
|
10
|
+
error: _,
|
|
11
|
+
inverted: a = !1,
|
|
12
|
+
disabled: l = !1,
|
|
13
|
+
checked: r = !1,
|
|
14
|
+
btc: $ = !1,
|
|
15
|
+
onClick: h,
|
|
16
|
+
...u
|
|
16
17
|
}) => {
|
|
17
|
-
const
|
|
18
|
-
!
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
18
|
+
const n = P(null), x = (d) => {
|
|
19
|
+
!l && n.current && n.current.click(), h && h(d);
|
|
20
|
+
}, g = [
|
|
21
|
+
e.inputWrapper,
|
|
22
|
+
$ && e.btc,
|
|
23
|
+
l ? e.inputCheckbox_disabled : e.inputCheckbox,
|
|
24
|
+
o === "small" ? e.smallCheckbox : o === "large" ? e.largeCheckbox : o === "extraLarge" ? e.extraLargeCheckbox : e.mediumCheckbox,
|
|
25
|
+
_ ? e.error : "",
|
|
26
|
+
a ? e.inverted : "",
|
|
27
|
+
r && !_ && !l && !a ? e.inputCheckbox_checked : "",
|
|
28
|
+
r && !_ && !l && a ? e.inputCheckbox_inverted_checked : "",
|
|
29
|
+
r && _ ? e.error_checked : "",
|
|
30
|
+
r && l ? e.inputCheckbox_disabled_checked : ""
|
|
31
|
+
].filter(Boolean).join(" "), C = [
|
|
32
|
+
l && !a ? e.passwordToggle_disabled : "",
|
|
33
|
+
a && !l ? e.passwordToggle_inverted : "",
|
|
34
|
+
a && l ? e.passwordToggle_inverted_disabled : ""
|
|
33
35
|
].filter(Boolean).join(" "), f = [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
e.helperText,
|
|
37
|
+
e[`helperText_${o}`],
|
|
38
|
+
l && !a ? e.helperText_disabled : "",
|
|
39
|
+
a && !l ? e.helperText_inverted : "",
|
|
40
|
+
a && l ? e.helperText_inverted_disabled : ""
|
|
39
41
|
].filter(Boolean).join(" ");
|
|
40
|
-
return /* @__PURE__ */
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
42
|
+
return /* @__PURE__ */ c(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
className: `${e.inputContainer} ${o === "medium" ? e.inputContainer_medium : o === "large" ? e.inputContainer_large : o === "extraLarge" ? e.inputContainer_extraLarge : ""}`,
|
|
46
|
+
children: [
|
|
47
|
+
t && /* @__PURE__ */ c(
|
|
48
|
+
"label",
|
|
49
|
+
{
|
|
50
|
+
className: `${e.label} ${o === "large" ? e.label_large : ""}
|
|
51
|
+
${o === "extraLarge" ? e.label_extraLarge : ""}
|
|
52
|
+
${l && !a ? e.label_disabled : ""} ${a && !l ? e.label_inverted : ""} ${a && l ? e.label_inverted_disabled : ""}`,
|
|
53
|
+
children: [
|
|
54
|
+
t,
|
|
55
|
+
m && /* @__PURE__ */ s(
|
|
56
|
+
"span",
|
|
57
|
+
{
|
|
58
|
+
className: `${e.required} ${l && !a ? e.required_disabled : ""} ${a && !l ? e.required_inverted : ""} ${a && l ? e.required_inverted_disabled : ""}`,
|
|
59
|
+
children: "*"
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ c(
|
|
66
|
+
"div",
|
|
67
|
+
{
|
|
68
|
+
className: g,
|
|
69
|
+
style: {
|
|
70
|
+
display: "flex",
|
|
71
|
+
alignItems: "center",
|
|
72
|
+
cursor: l ? "not-allowed" : "pointer"
|
|
73
|
+
},
|
|
74
|
+
onClick: x,
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ s(
|
|
77
|
+
"input",
|
|
78
|
+
{
|
|
79
|
+
ref: n,
|
|
80
|
+
type: "checkbox",
|
|
81
|
+
className: C,
|
|
82
|
+
disabled: l,
|
|
83
|
+
checked: r,
|
|
84
|
+
...u
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
p && /* @__PURE__ */ s(
|
|
88
|
+
"span",
|
|
89
|
+
{
|
|
90
|
+
className: `${e.radioPlaceholder} ${o === "small" ? e.smallRadio : o === "large" ? e.largeRadio : e.mediumRadio} ${l && !a && !r ? e.radioPlaceholder_disabled : ""} ${l && !a && r ? e.radioPlaceholder_disabled_checked : ""} ${a && !l && !r ? e.radioPlaceholder_inverted : ""} ${a && l ? e.radioPlaceholder_inverted_disabled : ""} ${r && !_ && !l && !a ? e.radioPlaceholder_checked : ""} ${r && !_ && !l && a ? e.radioPlaceholder_inverted_checked : ""} ${_ && !r && !a ? e.radioPlaceholder_error : ""} ${_ && !r && a ? e.radioPlaceholder_inverted_error : ""} ${_ && r && !a ? e.radioPlaceholder_error_checked : ""} ${_ && r && a ? e.radioPlaceholder_inverted_error_checked : ""}`,
|
|
91
|
+
children: p
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
_ ? /* @__PURE__ */ s(
|
|
98
|
+
"span",
|
|
99
|
+
{
|
|
100
|
+
className: `${e.errorMessage} ${e[`errorMessage_${o}`]} ${a ? e.errorMessage_inverted : ""}`,
|
|
101
|
+
children: _
|
|
102
|
+
}
|
|
103
|
+
) : i && /* @__PURE__ */ s("span", { className: f, children: i })
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
);
|
|
87
107
|
};
|
|
88
108
|
export {
|
|
89
109
|
T as Checkbox
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import * as Icons from "../../icons/index";
|
|
3
|
-
export type InputSize = "small" | "medium" | "large";
|
|
3
|
+
export type InputSize = "small" | "medium" | "large" | "extraLarge";
|
|
4
4
|
export type IconName = keyof typeof Icons;
|
|
5
|
-
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>,
|
|
5
|
+
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
6
6
|
size?: InputSize;
|
|
7
7
|
label?: string;
|
|
8
8
|
error?: string;
|
|
@@ -11,5 +11,6 @@ export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElem
|
|
|
11
11
|
className?: string;
|
|
12
12
|
required?: boolean;
|
|
13
13
|
inverted?: boolean;
|
|
14
|
+
btc?: boolean;
|
|
14
15
|
}
|
|
15
16
|
export declare const Input: React.FC<InputProps>;
|
|
@@ -1,82 +1,119 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { s as
|
|
1
|
+
import { jsxs as b, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as N } from "react";
|
|
3
|
+
import { s as a } from "../../Input.module-DuUfwXwW.js";
|
|
4
4
|
import { Icon as $ } from "../../icons/Icon.js";
|
|
5
5
|
const M = ({
|
|
6
6
|
size: l = "medium",
|
|
7
7
|
label: _,
|
|
8
8
|
error: i,
|
|
9
|
-
helperText:
|
|
10
|
-
icon:
|
|
11
|
-
className:
|
|
12
|
-
required:
|
|
13
|
-
inverted:
|
|
14
|
-
|
|
9
|
+
helperText: m,
|
|
10
|
+
icon: c,
|
|
11
|
+
className: h,
|
|
12
|
+
required: u,
|
|
13
|
+
inverted: e = !1,
|
|
14
|
+
btc: w = !1,
|
|
15
|
+
type: o,
|
|
15
16
|
...d
|
|
16
17
|
}) => {
|
|
17
|
-
const [n,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
const [n, x] = N(!1), g = o === "password", r = o === "date", I = [
|
|
19
|
+
a.input,
|
|
20
|
+
a[l],
|
|
21
|
+
c && !r ? a.withIcon : "",
|
|
22
|
+
w && a.btc,
|
|
23
|
+
i ? a.error : "",
|
|
24
|
+
e ? a.inverted : "",
|
|
25
|
+
r ? a.dateInput : "",
|
|
26
|
+
h
|
|
27
|
+
].filter(Boolean).join(" "), t = l === "small" ? 16 : l === "large" ? 20 : l === "extraLarge" ? 24 : 18, f = () => {
|
|
28
|
+
x(!n);
|
|
27
29
|
};
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
{
|
|
53
|
-
type: "button",
|
|
54
|
-
className: `${e.passwordToggle} ${d.disabled && !a ? e.passwordToggle_disabled : ""} ${a && !d.disabled ? e.passwordToggle_inverted : ""} ${a && d.disabled ? e.passwordToggle_inverted_disabled : ""}`,
|
|
55
|
-
onClick: N,
|
|
56
|
-
disabled: d.disabled,
|
|
57
|
-
"aria-label": n ? "Ocultar contraseña" : "Mostrar contraseña",
|
|
58
|
-
children: /* @__PURE__ */ s(
|
|
59
|
-
$,
|
|
30
|
+
return /* @__PURE__ */ b(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
className: `${a.inputContainer} ${l === "medium" ? a.inputContainer_medium : l === "large" ? a.inputContainer_large : l === "extraLarge" ? a.inputContainer_extraLarge : ""}`,
|
|
34
|
+
children: [
|
|
35
|
+
_ && /* @__PURE__ */ b(
|
|
36
|
+
"label",
|
|
37
|
+
{
|
|
38
|
+
className: `${a.label} ${l === "large" ? a.label_large : ""} ${l === "extraLarge" ? a.label_extraLarge : ""} ${d.disabled && !e ? a.label_disabled : ""} ${e && !d.disabled ? a.label_inverted : ""} ${e && d.disabled ? a.label_inverted_disabled : ""}`,
|
|
39
|
+
children: [
|
|
40
|
+
_,
|
|
41
|
+
/* @__PURE__ */ s(
|
|
42
|
+
"span",
|
|
43
|
+
{
|
|
44
|
+
className: `${a.required} ${e ? a.required_inverted : ""}`,
|
|
45
|
+
children: u && "*"
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ b("div", { className: a.inputWrapper, children: [
|
|
52
|
+
c && !r && /* @__PURE__ */ s(
|
|
53
|
+
"div",
|
|
60
54
|
{
|
|
61
|
-
|
|
62
|
-
width: t,
|
|
63
|
-
|
|
55
|
+
className: `${a.icon} ${d.disabled && !e ? a.icon_disabled : ""} ${e && !d.disabled ? a.icon_inverted : ""} ${e && d.disabled ? a.icon_inverted_disabled : ""}`,
|
|
56
|
+
children: /* @__PURE__ */ s($, { name: c, width: t, height: t })
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ s(
|
|
60
|
+
"input",
|
|
61
|
+
{
|
|
62
|
+
className: I,
|
|
63
|
+
type: g ? n ? "text" : "password" : o,
|
|
64
|
+
...d
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
g && /* @__PURE__ */ s(
|
|
68
|
+
"button",
|
|
69
|
+
{
|
|
70
|
+
type: "button",
|
|
71
|
+
className: `${a.passwordToggle} ${d.disabled && !e ? a.passwordToggle_disabled : ""} ${e && !d.disabled ? a.passwordToggle_inverted : ""} ${e && d.disabled ? a.passwordToggle_inverted_disabled : ""}`,
|
|
72
|
+
onClick: f,
|
|
73
|
+
disabled: d.disabled,
|
|
74
|
+
"aria-label": n ? "Ocultar contraseña" : "Mostrar contraseña",
|
|
75
|
+
children: /* @__PURE__ */ s(
|
|
76
|
+
$,
|
|
77
|
+
{
|
|
78
|
+
name: n ? "VisibilityOff" : "Visibility",
|
|
79
|
+
width: t,
|
|
80
|
+
height: t
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
r && /* @__PURE__ */ s(
|
|
86
|
+
"div",
|
|
87
|
+
{
|
|
88
|
+
className: `${a.dateIcon} ${d.disabled && !e ? a.dateIcon_disabled : ""} ${e && !d.disabled ? a.dateIcon_inverted : ""} ${e && d.disabled ? a.dateIcon_inverted_disabled : ""} ${i ? a.dateIcon_error : ""} ${i && e ? a.dateIcon_inverted_error : ""}`,
|
|
89
|
+
children: /* @__PURE__ */ s(
|
|
90
|
+
$,
|
|
91
|
+
{
|
|
92
|
+
name: "CalendarIcon",
|
|
93
|
+
width: t + 2,
|
|
94
|
+
height: t + 2
|
|
95
|
+
}
|
|
96
|
+
)
|
|
64
97
|
}
|
|
65
98
|
)
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
99
|
+
] }),
|
|
100
|
+
i && /* @__PURE__ */ s(
|
|
101
|
+
"span",
|
|
102
|
+
{
|
|
103
|
+
className: `${a.errorMessage} ${a[`errorMessage_${l}`]} ${e ? a.errorMessage_inverted : ""}`,
|
|
104
|
+
children: i
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
m && !i && /* @__PURE__ */ s(
|
|
108
|
+
"span",
|
|
109
|
+
{
|
|
110
|
+
className: `${a.helperText} ${a[`helperText_${l}`]} ${d.disabled && !e ? a.helperText_disabled : ""} ${e && !d.disabled ? a.helperText_inverted : ""} ${e && d.disabled ? a.helperText_inverted_disabled : ""}`,
|
|
111
|
+
children: m
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
);
|
|
80
117
|
};
|
|
81
118
|
export {
|
|
82
119
|
M as Input
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
export type InputSize = "small" | "medium" | "large";
|
|
2
|
+
export type InputSize = "small" | "medium" | "large" | "extraLarge";
|
|
3
3
|
export interface RadioButtonProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
4
4
|
size?: InputSize;
|
|
5
5
|
label?: string;
|
|
@@ -8,5 +8,6 @@ export interface RadioButtonProps extends Omit<React.InputHTMLAttributes<HTMLInp
|
|
|
8
8
|
required?: boolean;
|
|
9
9
|
error?: string;
|
|
10
10
|
inverted?: boolean;
|
|
11
|
+
btc?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export declare const RadioButton: React.FC<RadioButtonProps>;
|
|
@@ -1,101 +1,111 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { s as
|
|
4
|
-
const
|
|
5
|
-
size:
|
|
6
|
-
label:
|
|
7
|
-
placeholder:
|
|
8
|
-
helperText:
|
|
9
|
-
required:
|
|
10
|
-
error:
|
|
11
|
-
inverted:
|
|
12
|
-
disabled:
|
|
13
|
-
checked:
|
|
14
|
-
|
|
1
|
+
import { jsxs as t, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as P } from "react";
|
|
3
|
+
import { s as e } from "../../../Input.module-DuUfwXwW.js";
|
|
4
|
+
const L = ({
|
|
5
|
+
size: o = "medium",
|
|
6
|
+
label: c,
|
|
7
|
+
placeholder: p,
|
|
8
|
+
helperText: i,
|
|
9
|
+
required: h,
|
|
10
|
+
error: _,
|
|
11
|
+
inverted: a = !1,
|
|
12
|
+
disabled: l = !1,
|
|
13
|
+
checked: r = !1,
|
|
14
|
+
btc: u = !1,
|
|
15
|
+
onClick: m,
|
|
15
16
|
...$
|
|
16
17
|
}) => {
|
|
17
|
-
const
|
|
18
|
-
!
|
|
18
|
+
const s = P(null), g = (d) => {
|
|
19
|
+
!l && s.current && s.current.click(), m && m(d);
|
|
19
20
|
}, x = [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
a && !e ? l.passwordToggle_disabled : "",
|
|
31
|
-
e && !a ? l.passwordToggle_inverted : "",
|
|
32
|
-
e && a ? l.passwordToggle_inverted_disabled : ""
|
|
21
|
+
e.inputWrapper,
|
|
22
|
+
u && e.btc,
|
|
23
|
+
l ? e.inputCheckbox_disabled : e.inputCheckbox,
|
|
24
|
+
o === "small" ? e.smallCheckbox : o === "large" ? e.largeCheckbox : o === "extraLarge" ? e.extraLargeCheckbox : e.mediumCheckbox,
|
|
25
|
+
_ ? e.error : "",
|
|
26
|
+
a ? e.inverted : "",
|
|
27
|
+
r && !_ && !l && !a ? e.inputCheckbox_checked : "",
|
|
28
|
+
r && !_ && !l && a ? e.inputCheckbox_inverted_checked : "",
|
|
29
|
+
r && _ ? e.error_checked : "",
|
|
30
|
+
r && l ? e.inputCheckbox_disabled_checked : ""
|
|
33
31
|
].filter(Boolean).join(" "), f = [
|
|
34
|
-
l.
|
|
35
|
-
l
|
|
36
|
-
a &&
|
|
37
|
-
|
|
38
|
-
e
|
|
32
|
+
l && !a ? e.passwordToggle_disabled : "",
|
|
33
|
+
a && !l ? e.passwordToggle_inverted : "",
|
|
34
|
+
a && l ? e.passwordToggle_inverted_disabled : ""
|
|
35
|
+
].filter(Boolean).join(" "), C = [
|
|
36
|
+
e.helperText,
|
|
37
|
+
e[`helperText_${o}`],
|
|
38
|
+
l && !a ? e.helperText_disabled : "",
|
|
39
|
+
a && !l ? e.helperText_inverted : "",
|
|
40
|
+
a && l ? e.helperText_inverted_disabled : ""
|
|
39
41
|
].filter(Boolean).join(" ");
|
|
40
|
-
return /* @__PURE__ */
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
42
|
+
return /* @__PURE__ */ t(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
className: `${e.inputContainer} ${o === "medium" ? e.inputContainer_medium : o === "large" ? e.inputContainer_large : o === "extraLarge" ? e.inputContainer_extraLarge : ""}`,
|
|
46
|
+
children: [
|
|
47
|
+
c && /* @__PURE__ */ t(
|
|
48
|
+
"label",
|
|
49
|
+
{
|
|
50
|
+
className: `${e.label} ${o === "large" ? e.label_large : ""}
|
|
51
|
+
${o === "extraLarge" ? e.label_extraLarge : ""}
|
|
52
|
+
${l && !a ? e.label_disabled : ""} ${a && !l ? e.label_inverted : ""} ${a && l ? e.label_inverted_disabled : ""}`,
|
|
53
|
+
children: [
|
|
54
|
+
c,
|
|
55
|
+
h && /* @__PURE__ */ n(
|
|
56
|
+
"span",
|
|
57
|
+
{
|
|
58
|
+
className: `${e.required} ${l && !a ? e.required_disabled : ""} ${a && !l ? e.required_inverted : ""} ${a && l ? e.required_inverted_disabled : ""}`,
|
|
59
|
+
children: "*"
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ t(
|
|
66
|
+
"div",
|
|
67
|
+
{
|
|
68
|
+
className: x,
|
|
69
|
+
style: {
|
|
70
|
+
display: "flex",
|
|
71
|
+
alignItems: "center",
|
|
72
|
+
cursor: l ? "not-allowed" : "pointer"
|
|
73
|
+
},
|
|
74
|
+
onClick: g,
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ n(
|
|
77
|
+
"input",
|
|
78
|
+
{
|
|
79
|
+
ref: s,
|
|
80
|
+
type: "radio",
|
|
81
|
+
className: f,
|
|
82
|
+
disabled: l,
|
|
83
|
+
checked: r,
|
|
84
|
+
...$,
|
|
85
|
+
style: { marginTop: "-1px", flexShrink: 0 }
|
|
86
|
+
}
|
|
87
|
+
),
|
|
88
|
+
p && /* @__PURE__ */ n(
|
|
89
|
+
"span",
|
|
90
|
+
{
|
|
91
|
+
className: `${e.radioPlaceholder} ${o === "small" ? e.smallRadio : o === "large" ? e.largeRadio : e.mediumRadio} ${l && !a && !r ? e.radioPlaceholder_disabled : ""} ${l && !a && r ? e.radioPlaceholder_disabled_checked : ""} ${a && !l && !r ? e.radioPlaceholder_inverted : ""} ${a && l ? e.radioPlaceholder_inverted_disabled : ""} ${r && !_ && !l && !a ? e.radioPlaceholder_checked : ""} ${r && !_ && !l && a ? e.radioPlaceholder_inverted_checked : ""} ${_ && !r && !a ? e.radioPlaceholder_error : ""} ${_ && !r && a ? e.radioPlaceholder_inverted_error : ""} ${_ && r && !a ? e.radioPlaceholder_error_checked : ""} ${_ && r && a ? e.radioPlaceholder_inverted_error_checked : ""}`,
|
|
92
|
+
children: p
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
_ ? /* @__PURE__ */ n(
|
|
99
|
+
"span",
|
|
100
|
+
{
|
|
101
|
+
className: `${e.errorMessage} ${e[`errorMessage_${o}`]} ${a ? e.errorMessage_inverted : ""}`,
|
|
102
|
+
children: _
|
|
103
|
+
}
|
|
104
|
+
) : i && /* @__PURE__ */ n("span", { className: C, children: i })
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
);
|
|
98
108
|
};
|
|
99
109
|
export {
|
|
100
|
-
|
|
110
|
+
L as RadioButton
|
|
101
111
|
};
|