@ledgerhq/lumen-ui-react 0.1.4 → 0.1.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/_virtual/dynamic-import-helper.js +1 -8
- package/dist/index.js +70 -69
- package/dist/lib/Components/BaseInput/BaseInput.js +72 -75
- package/dist/lib/Components/DataTable/DataTable.js +108 -108
- package/dist/lib/Components/Menu/Menu.js +50 -51
- package/dist/lib/Components/SideBar/SideBar.js +57 -57
- package/dist/lib/Components/Table/Table.js +50 -50
- package/dist/lib/Components/Table/utils/useThrottledScrollBottom.js +20 -21
- package/dist/lib/Components/ThemeProvider/ThemeProvider.d.ts +2 -9
- package/dist/lib/Components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/dist/lib/Components/ThemeProvider/ThemeProvider.js +14 -25
- package/dist/lib/Components/ThemeProvider/ThemeProvider.types.d.ts +9 -3
- package/dist/lib/Components/ThemeProvider/ThemeProvider.types.d.ts.map +1 -1
- package/dist/lib/Components/ThemeProvider/ThemeProvider.types.js +8 -0
- package/dist/lib/Components/ThemeProvider/useRootColorModeSideEffect.d.ts +3 -3
- package/dist/lib/Components/ThemeProvider/useRootColorModeSideEffect.d.ts.map +1 -1
- package/dist/lib/Components/ThemeProvider/useRootColorModeSideEffect.js +20 -14
- package/dist/lib/Components/Tile/Tile.js +48 -48
- package/dist/lib/Components/TileButton/TileButton.js +24 -24
- package/dist/node_modules/react-i18next/dist/es/context.js +9 -12
- package/dist/package.json +1 -1
- package/dist/utils/useControllableState/useControllableState.js +17 -18
- package/package.json +1 -1
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
const l = (r, n, t) => {
|
|
2
2
|
const e = r[n];
|
|
3
3
|
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((i, o) => {
|
|
4
|
-
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
5
|
-
o.bind(
|
|
6
|
-
null,
|
|
7
|
-
new Error(
|
|
8
|
-
"Unknown variable dynamic import: " + n + (n.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
|
|
9
|
-
)
|
|
10
|
-
)
|
|
11
|
-
);
|
|
4
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + n + (n.split("/").length !== t ? ". Note that variables only represent file names one level deep." : ""))));
|
|
12
5
|
});
|
|
13
6
|
};
|
|
14
7
|
export {
|
package/dist/index.js
CHANGED
|
@@ -8,37 +8,38 @@ import { BaseInput as S } from "./lib/Components/BaseInput/BaseInput.js";
|
|
|
8
8
|
import { Button as d } from "./lib/Components/Button/Button.js";
|
|
9
9
|
import { BaseButton as c } from "./lib/Components/Button/BaseButton.js";
|
|
10
10
|
import { ContentBanner as I, ContentBannerContent as C, ContentBannerDescription as s, ContentBannerTitle as L } from "./lib/Components/ContentBanner/ContentBanner.js";
|
|
11
|
-
import { CardButton as
|
|
11
|
+
import { CardButton as M } from "./lib/Components/CardButton/CardButton.js";
|
|
12
12
|
import { Checkbox as v } from "./lib/Components/Checkbox/Checkbox.js";
|
|
13
|
-
import { DataTable as
|
|
14
|
-
import { useLumenDataTable as
|
|
13
|
+
import { DataTable as A, DataTableGlobalSearchInput as w, DataTableRoot as H } from "./lib/Components/DataTable/DataTable.js";
|
|
14
|
+
import { useLumenDataTable as G } from "./lib/Components/DataTable/useLumenDataTable/useLumenDataTable.js";
|
|
15
15
|
import { DialogClose as y } from "./lib/Components/Dialog/DialogClose/DialogClose.js";
|
|
16
|
-
import { Dialog as
|
|
17
|
-
import { DialogHeader as
|
|
18
|
-
import { Divider as
|
|
19
|
-
import { IconButton as
|
|
20
|
-
import { InteractiveIcon as
|
|
21
|
-
import { Link as
|
|
16
|
+
import { Dialog as E, DialogBody as O, DialogContent as F, DialogFooter as _, DialogTrigger as j } from "./lib/Components/Dialog/Dialog.js";
|
|
17
|
+
import { DialogHeader as z } from "./lib/Components/Dialog/DialogHeader/DialogHeader.js";
|
|
18
|
+
import { Divider as K } from "./lib/Components/Divider/Divider.js";
|
|
19
|
+
import { IconButton as U } from "./lib/Components/IconButton/IconButton.js";
|
|
20
|
+
import { InteractiveIcon as W } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
|
|
21
|
+
import { Link as Y } from "./lib/Components/Link/Link.js";
|
|
22
22
|
import { ListItem as $, ListItemContent as ee, ListItemDescription as oe, ListItemIcon as te, ListItemLeading as re, ListItemSpot as ae, ListItemTitle as ne, ListItemTrailing as ie, ListItemTruncate as le } from "./lib/Components/ListItem/ListItem.js";
|
|
23
23
|
import { Menu as me, MenuCheckboxItem as Te, MenuContent as ue, MenuGroup as xe, MenuItem as fe, MenuLabel as Se, MenuPortal as be, MenuRadioGroup as de, MenuRadioItem as ge, MenuSeparator as ce, MenuSub as Be, MenuSubContent as Ie, MenuSubTrigger as Ce, MenuTrigger as se } from "./lib/Components/Menu/Menu.js";
|
|
24
|
-
import { NavBar as De, NavBarBackButton as
|
|
24
|
+
import { NavBar as De, NavBarBackButton as Me, NavBarCoinCapsule as he, NavBarTitle as ve, NavBarTrailing as Re } from "./lib/Components/NavBar/NavBar.js";
|
|
25
25
|
import { PageIndicator as we } from "./lib/Components/PageIndicator/PageIndicator.js";
|
|
26
|
-
import { SearchInput as
|
|
27
|
-
import { Select as Ne, SelectContent as ye, SelectGroup as Pe, SelectItem as
|
|
28
|
-
import { SideBar as
|
|
29
|
-
import { Skeleton as
|
|
30
|
-
import { Spinner as
|
|
26
|
+
import { SearchInput as ke } from "./lib/Components/SearchInput/SearchInput.js";
|
|
27
|
+
import { Select as Ne, SelectContent as ye, SelectGroup as Pe, SelectItem as Ee, SelectItemText as Oe, SelectLabel as Fe, SelectSeparator as _e, SelectTrigger as je } from "./lib/Components/Select/Select.js";
|
|
28
|
+
import { SideBar as ze, SideBarCollapseToggle as Je, SideBarItem as Ke, SideBarLeading as Qe, SideBarTrailing as Ue } from "./lib/Components/SideBar/SideBar.js";
|
|
29
|
+
import { Skeleton as We } from "./lib/Components/Skeleton/Skeleton.js";
|
|
30
|
+
import { Spinner as Ye } from "./lib/Components/Spinner/Spinner.js";
|
|
31
31
|
import { Spot as $e } from "./lib/Components/Spot/Spot.js";
|
|
32
32
|
import { Stepper as oo } from "./lib/Components/Stepper/Stepper.js";
|
|
33
33
|
import { Subheader as ro, SubheaderAction as ao, SubheaderCount as no, SubheaderDescription as io, SubheaderInfo as lo, SubheaderRow as po, SubheaderShowMore as mo, SubheaderTitle as To } from "./lib/Components/Subheader/Subheader.js";
|
|
34
34
|
import { Switch as xo } from "./lib/Components/Switch/Switch.js";
|
|
35
|
-
import { Table as So, TableActionBar as bo, TableActionBarLeading as go, TableActionBarTrailing as co, TableBody as Bo, TableCell as Io, TableCellContent as Co, TableGroupHeaderRow as so, TableHeader as Lo, TableHeaderCell as Do, TableHeaderRow as
|
|
36
|
-
import { Tag as
|
|
35
|
+
import { Table as So, TableActionBar as bo, TableActionBarLeading as go, TableActionBarTrailing as co, TableBody as Bo, TableCell as Io, TableCellContent as Co, TableGroupHeaderRow as so, TableHeader as Lo, TableHeaderCell as Do, TableHeaderRow as Mo, TableInfoIcon as ho, TableLoadingRow as vo, TableRoot as Ro, TableRow as Ao, TableSortButton as wo } from "./lib/Components/Table/Table.js";
|
|
36
|
+
import { Tag as ko } from "./lib/Components/Tag/Tag.js";
|
|
37
37
|
import { TextInput as No } from "./lib/Components/TextInput/TextInput.js";
|
|
38
|
-
import { Tile as Po, TileContent as
|
|
39
|
-
import { TileButton as
|
|
40
|
-
import { Tooltip as
|
|
41
|
-
import { ThemeProvider as
|
|
38
|
+
import { Tile as Po, TileContent as Eo, TileDescription as Oo, TileSecondaryAction as Fo, TileSpot as _o, TileTitle as jo, TileTrailingContent as qo } from "./lib/Components/Tile/Tile.js";
|
|
39
|
+
import { TileButton as Jo } from "./lib/Components/TileButton/TileButton.js";
|
|
40
|
+
import { Tooltip as Qo, TooltipContent as Uo, TooltipProvider as Vo, TooltipTrigger as Wo } from "./lib/Components/Tooltip/Tooltip.js";
|
|
41
|
+
import { ThemeProvider as Yo } from "./lib/Components/ThemeProvider/ThemeProvider.js";
|
|
42
|
+
import { COLOR_SCHEMES as $o } from "./lib/Components/ThemeProvider/ThemeProvider.types.js";
|
|
42
43
|
export {
|
|
43
44
|
a as AddressInput,
|
|
44
45
|
p as AmountDisplay,
|
|
@@ -48,27 +49,28 @@ export {
|
|
|
48
49
|
c as BaseButton,
|
|
49
50
|
S as BaseInput,
|
|
50
51
|
d as Button,
|
|
51
|
-
|
|
52
|
+
$o as COLOR_SCHEMES,
|
|
53
|
+
M as CardButton,
|
|
52
54
|
v as Checkbox,
|
|
53
55
|
I as ContentBanner,
|
|
54
56
|
C as ContentBannerContent,
|
|
55
57
|
s as ContentBannerDescription,
|
|
56
58
|
L as ContentBannerTitle,
|
|
57
|
-
|
|
59
|
+
A as DataTable,
|
|
58
60
|
w as DataTableGlobalSearchInput,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
H as DataTableRoot,
|
|
62
|
+
E as Dialog,
|
|
63
|
+
O as DialogBody,
|
|
62
64
|
y as DialogClose,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
F as DialogContent,
|
|
66
|
+
_ as DialogFooter,
|
|
67
|
+
z as DialogHeader,
|
|
68
|
+
j as DialogTrigger,
|
|
69
|
+
K as Divider,
|
|
70
|
+
U as IconButton,
|
|
71
|
+
W as InteractiveIcon,
|
|
70
72
|
t as Languages,
|
|
71
|
-
|
|
73
|
+
Y as Link,
|
|
72
74
|
$ as ListItem,
|
|
73
75
|
ee as ListItemContent,
|
|
74
76
|
oe as ListItemDescription,
|
|
@@ -93,27 +95,27 @@ export {
|
|
|
93
95
|
Ce as MenuSubTrigger,
|
|
94
96
|
se as MenuTrigger,
|
|
95
97
|
De as NavBar,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
+
Me as NavBarBackButton,
|
|
99
|
+
he as NavBarCoinCapsule,
|
|
98
100
|
ve as NavBarTitle,
|
|
99
|
-
|
|
101
|
+
Re as NavBarTrailing,
|
|
100
102
|
we as PageIndicator,
|
|
101
|
-
|
|
103
|
+
ke as SearchInput,
|
|
102
104
|
Ne as Select,
|
|
103
105
|
ye as SelectContent,
|
|
104
106
|
Pe as SelectGroup,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
107
|
+
Ee as SelectItem,
|
|
108
|
+
Oe as SelectItemText,
|
|
109
|
+
Fe as SelectLabel,
|
|
110
|
+
_e as SelectSeparator,
|
|
111
|
+
je as SelectTrigger,
|
|
112
|
+
ze as SideBar,
|
|
113
|
+
Je as SideBarCollapseToggle,
|
|
114
|
+
Ke as SideBarItem,
|
|
115
|
+
Qe as SideBarLeading,
|
|
116
|
+
Ue as SideBarTrailing,
|
|
117
|
+
We as Skeleton,
|
|
118
|
+
Ye as Spinner,
|
|
117
119
|
$e as Spot,
|
|
118
120
|
oo as Stepper,
|
|
119
121
|
ro as Subheader,
|
|
@@ -135,27 +137,26 @@ export {
|
|
|
135
137
|
so as TableGroupHeaderRow,
|
|
136
138
|
Lo as TableHeader,
|
|
137
139
|
Do as TableHeaderCell,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
+
Mo as TableHeaderRow,
|
|
141
|
+
ho as TableInfoIcon,
|
|
140
142
|
vo as TableLoadingRow,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
+
Ro as TableRoot,
|
|
144
|
+
Ao as TableRow,
|
|
143
145
|
wo as TableSortButton,
|
|
144
|
-
|
|
146
|
+
ko as Tag,
|
|
145
147
|
No as TextInput,
|
|
146
|
-
|
|
148
|
+
Yo as ThemeProvider,
|
|
147
149
|
Po as Tile,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
_o as useTheme
|
|
150
|
+
Jo as TileButton,
|
|
151
|
+
Eo as TileContent,
|
|
152
|
+
Oo as TileDescription,
|
|
153
|
+
Fo as TileSecondaryAction,
|
|
154
|
+
_o as TileSpot,
|
|
155
|
+
jo as TileTitle,
|
|
156
|
+
qo as TileTrailingContent,
|
|
157
|
+
Qo as Tooltip,
|
|
158
|
+
Uo as TooltipContent,
|
|
159
|
+
Vo as TooltipProvider,
|
|
160
|
+
Wo as TooltipTrigger,
|
|
161
|
+
G as useLumenDataTable
|
|
161
162
|
};
|
|
@@ -1,150 +1,147 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as p, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { cn as a } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
-
import
|
|
4
|
-
import { useCommonTranslation as
|
|
5
|
-
import { InteractiveIcon as
|
|
6
|
-
import { DeleteCircleFill as
|
|
7
|
-
const
|
|
3
|
+
import c from "react";
|
|
4
|
+
import { useCommonTranslation as O } from "../../../i18n/useCommonTranslation.js";
|
|
5
|
+
import { InteractiveIcon as $ } from "../InteractiveIcon/InteractiveIcon.js";
|
|
6
|
+
import { DeleteCircleFill as x } from "../../Symbols/Icons/DeleteCircleFill.js";
|
|
7
|
+
const q = a(
|
|
8
8
|
"group relative flex h-48 w-full cursor-text items-center gap-8 rounded-sm bg-muted px-16 transition-colors",
|
|
9
9
|
"focus-within:ring-2 focus-within:ring-active hover:bg-muted-hover",
|
|
10
10
|
"has-disabled:cursor-not-allowed has-disabled:bg-disabled has-disabled:text-disabled",
|
|
11
11
|
"has-invalid:border-error has-invalid:ring-1 has-invalid:ring-error",
|
|
12
12
|
'has-[input[aria-invalid="true"]]:border-error has-[input[aria-invalid="true"]]:ring-1 has-[input[aria-invalid="true"]]:ring-error'
|
|
13
|
-
),
|
|
13
|
+
), H = a(
|
|
14
14
|
"peer w-full flex-1 bg-muted body-1 text-base caret-active outline-hidden transition-colors",
|
|
15
15
|
"group-hover:bg-muted-hover group-disabled:bg-disabled",
|
|
16
16
|
"group-has-disabled:cursor-not-allowed group-has-disabled:bg-disabled group-has-disabled:text-disabled",
|
|
17
17
|
"placeholder:text-muted group-has-disabled:placeholder:text-disabled",
|
|
18
18
|
"[&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
19
19
|
"truncate"
|
|
20
|
-
),
|
|
20
|
+
), K = a(
|
|
21
21
|
"pointer-events-none absolute top-6 left-16 origin-left body-4 text-muted transition-all duration-300",
|
|
22
22
|
"peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-placeholder-shown:body-2",
|
|
23
23
|
"group-has-disabled:text-disabled",
|
|
24
24
|
"peer-focus:top-6 peer-focus:translate-y-0 peer-focus:body-4",
|
|
25
25
|
"w-[calc(100%-var(--size-56))] truncate"
|
|
26
|
-
),
|
|
27
|
-
ref:
|
|
28
|
-
className:
|
|
29
|
-
containerClassName:
|
|
30
|
-
inputClassName:
|
|
31
|
-
labelClassName:
|
|
32
|
-
label:
|
|
33
|
-
id:
|
|
34
|
-
disabled:
|
|
35
|
-
errorMessage:
|
|
36
|
-
suffix:
|
|
37
|
-
prefix:
|
|
38
|
-
onClear:
|
|
39
|
-
hideClearButton:
|
|
40
|
-
"aria-invalid":
|
|
41
|
-
onChange:
|
|
42
|
-
...
|
|
26
|
+
), P = ({
|
|
27
|
+
ref: y,
|
|
28
|
+
className: I,
|
|
29
|
+
containerClassName: C,
|
|
30
|
+
inputClassName: S,
|
|
31
|
+
labelClassName: N,
|
|
32
|
+
label: d,
|
|
33
|
+
id: k,
|
|
34
|
+
disabled: h,
|
|
35
|
+
errorMessage: o,
|
|
36
|
+
suffix: R,
|
|
37
|
+
prefix: E,
|
|
38
|
+
onClear: j,
|
|
39
|
+
hideClearButton: z = !1,
|
|
40
|
+
"aria-invalid": b,
|
|
41
|
+
onChange: m,
|
|
42
|
+
...i
|
|
43
43
|
}) => {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
), V = d.useCallback(
|
|
44
|
+
const { t: B } = O(), n = c.useRef(null), D = c.useId(), u = k || `input-${D}`, F = b || (o ? !0 : void 0), s = i.value !== void 0, [L, v] = c.useState(
|
|
45
|
+
i.defaultValue?.toString() || ""
|
|
46
|
+
), T = c.useCallback(
|
|
48
47
|
(t) => {
|
|
49
|
-
|
|
48
|
+
s || v(t.target.value), m?.(t);
|
|
50
49
|
},
|
|
51
|
-
[
|
|
52
|
-
),
|
|
53
|
-
var e;
|
|
50
|
+
[s, m]
|
|
51
|
+
), f = (s ? !!i.value && i.value.toString().length > 0 : L.length > 0) && !h && !z, g = `${u}-error`, V = () => {
|
|
54
52
|
if (!n.current) return;
|
|
55
|
-
|
|
53
|
+
Object.getOwnPropertyDescriptor(
|
|
56
54
|
window.HTMLInputElement.prototype,
|
|
57
55
|
"value"
|
|
58
|
-
))
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
n.current.dispatchEvent(s), n.current.focus(), p == null || p();
|
|
56
|
+
)?.set?.call(n.current, ""), s || v("");
|
|
57
|
+
const l = new Event("input", { bubbles: !0 });
|
|
58
|
+
n.current.dispatchEvent(l), n.current.focus(), j?.();
|
|
62
59
|
};
|
|
63
|
-
function
|
|
64
|
-
return (
|
|
60
|
+
function A(...t) {
|
|
61
|
+
return (l) => {
|
|
65
62
|
t.forEach((e) => {
|
|
66
|
-
e && (typeof e == "function" ? e(
|
|
63
|
+
e && (typeof e == "function" ? e(l) : e.current = l);
|
|
67
64
|
});
|
|
68
65
|
};
|
|
69
66
|
}
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
-
/* @__PURE__ */
|
|
67
|
+
return /* @__PURE__ */ p("div", { className: I, children: [
|
|
68
|
+
/* @__PURE__ */ p(
|
|
72
69
|
"div",
|
|
73
70
|
{
|
|
74
|
-
className: a(
|
|
71
|
+
className: a(q, C),
|
|
75
72
|
onPointerDown: (t) => {
|
|
76
73
|
if (t.target.closest("input, button, a")) return;
|
|
77
74
|
const e = n.current;
|
|
78
75
|
if (!e) return;
|
|
79
|
-
const
|
|
76
|
+
const w = e.value.length > 0 ? e.value.length : 0;
|
|
80
77
|
window.requestAnimationFrame(() => {
|
|
81
78
|
try {
|
|
82
|
-
e.setSelectionRange(
|
|
79
|
+
e.setSelectionRange(w, w);
|
|
83
80
|
} catch {
|
|
84
81
|
}
|
|
85
82
|
e.focus();
|
|
86
83
|
});
|
|
87
84
|
},
|
|
88
85
|
children: [
|
|
89
|
-
|
|
86
|
+
E,
|
|
90
87
|
/* @__PURE__ */ r(
|
|
91
88
|
"input",
|
|
92
89
|
{
|
|
93
|
-
ref:
|
|
94
|
-
id:
|
|
95
|
-
disabled:
|
|
90
|
+
ref: A(y, n),
|
|
91
|
+
id: u,
|
|
92
|
+
disabled: h,
|
|
96
93
|
placeholder: " ",
|
|
97
|
-
"aria-invalid":
|
|
98
|
-
"aria-describedby":
|
|
94
|
+
"aria-invalid": F,
|
|
95
|
+
"aria-describedby": o ? g : void 0,
|
|
99
96
|
className: a(
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
H,
|
|
98
|
+
d && "pt-12 body-2",
|
|
99
|
+
S
|
|
103
100
|
),
|
|
104
|
-
onChange:
|
|
105
|
-
...
|
|
101
|
+
onChange: T,
|
|
102
|
+
...i
|
|
106
103
|
}
|
|
107
104
|
),
|
|
108
|
-
|
|
105
|
+
d && /* @__PURE__ */ r(
|
|
109
106
|
"label",
|
|
110
107
|
{
|
|
111
|
-
htmlFor:
|
|
108
|
+
htmlFor: u,
|
|
112
109
|
className: a(
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
110
|
+
K,
|
|
111
|
+
o && "text-error",
|
|
112
|
+
N
|
|
116
113
|
),
|
|
117
|
-
children:
|
|
114
|
+
children: d
|
|
118
115
|
}
|
|
119
116
|
),
|
|
120
|
-
|
|
121
|
-
|
|
117
|
+
f && /* @__PURE__ */ r(
|
|
118
|
+
$,
|
|
122
119
|
{
|
|
123
120
|
iconType: "filled",
|
|
124
|
-
onClick:
|
|
125
|
-
"aria-label":
|
|
126
|
-
children: /* @__PURE__ */ r(
|
|
121
|
+
onClick: V,
|
|
122
|
+
"aria-label": B("components.baseInput.clearInputAriaLabel"),
|
|
123
|
+
children: /* @__PURE__ */ r(x, { size: 20 })
|
|
127
124
|
}
|
|
128
125
|
),
|
|
129
|
-
!
|
|
126
|
+
!f && R
|
|
130
127
|
]
|
|
131
128
|
}
|
|
132
129
|
),
|
|
133
|
-
|
|
130
|
+
o && /* @__PURE__ */ p(
|
|
134
131
|
"div",
|
|
135
132
|
{
|
|
136
|
-
id:
|
|
133
|
+
id: g,
|
|
137
134
|
className: "mt-8 flex items-center gap-2 body-3 text-error",
|
|
138
135
|
role: "alert",
|
|
139
136
|
children: [
|
|
140
|
-
/* @__PURE__ */ r(
|
|
141
|
-
/* @__PURE__ */ r("span", { children:
|
|
137
|
+
/* @__PURE__ */ r(x, { size: 16, className: "shrink-0 text-error" }),
|
|
138
|
+
/* @__PURE__ */ r("span", { children: o })
|
|
142
139
|
]
|
|
143
140
|
}
|
|
144
141
|
)
|
|
145
142
|
] });
|
|
146
143
|
};
|
|
147
|
-
|
|
144
|
+
P.displayName = "BaseInput";
|
|
148
145
|
export {
|
|
149
|
-
|
|
146
|
+
P as BaseInput
|
|
150
147
|
};
|