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