@ledgerhq/lumen-ui-react 0.0.80 → 0.0.81
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/i18n/locales/en.json.d.ts +4 -0
- package/dist/i18n/locales/en.json.js +1 -1
- package/dist/i18n/locales/fr.json.d.ts +4 -0
- package/dist/i18n/locales/fr.json.js +1 -1
- package/dist/index.js +98 -81
- package/dist/lib/Components/AmountInput/AmountInput.js +14 -14
- package/dist/lib/Components/Banner/Banner.js +2 -2
- package/dist/lib/Components/BaseInput/BaseInput.js +9 -9
- package/dist/lib/Components/CardButton/CardButton.d.ts.map +1 -1
- package/dist/lib/Components/CardButton/CardButton.js +9 -9
- package/dist/lib/Components/Dialog/Dialog.js +2 -2
- package/dist/lib/Components/Menu/Menu.js +4 -4
- package/dist/lib/Components/Select/Select.js +4 -4
- package/dist/lib/Components/SideBar/SideBar.js +16 -16
- package/dist/lib/Components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/lib/Components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/lib/Components/Skeleton/Skeleton.js +78 -27
- package/dist/lib/Components/Skeleton/types.d.ts +1 -1
- package/dist/lib/Components/Skeleton/types.d.ts.map +1 -1
- package/dist/lib/Components/Spot/Spot.d.ts +1 -1
- package/dist/lib/Components/Spot/Spot.d.ts.map +1 -1
- package/dist/lib/Components/Spot/Spot.js +27 -25
- package/dist/lib/Components/Subheader/Subheader.d.ts.map +1 -1
- package/dist/lib/Components/Subheader/Subheader.js +13 -5
- package/dist/lib/Components/Table/Table.d.ts +158 -0
- package/dist/lib/Components/Table/Table.d.ts.map +1 -0
- package/dist/lib/Components/Table/Table.js +390 -0
- package/dist/lib/Components/Table/constants.d.ts +3 -0
- package/dist/lib/Components/Table/constants.d.ts.map +1 -0
- package/dist/lib/Components/Table/constants.js +5 -0
- package/dist/lib/Components/Table/index.d.ts +3 -0
- package/dist/lib/Components/Table/index.d.ts.map +1 -0
- package/dist/lib/Components/Table/types.d.ts +245 -0
- package/dist/lib/Components/Table/types.d.ts.map +1 -0
- package/dist/lib/Components/Table/utils/useThrottledScrollBottom.d.ts +39 -0
- package/dist/lib/Components/Table/utils/useThrottledScrollBottom.d.ts.map +1 -0
- package/dist/lib/Components/Table/utils/useThrottledScrollBottom.js +39 -0
- package/dist/lib/Components/Tile/Tile.js +9 -9
- package/dist/lib/Components/TileButton/TileButton.js +5 -5
- package/dist/lib/Components/index.d.ts +1 -0
- package/dist/lib/Components/index.d.ts.map +1 -1
- package/dist/libs/utils-shared/dist/index.js +101 -54
- package/dist/package.json +4 -3
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/types.d.ts +2 -0
- package/dist/types/types.d.ts.map +1 -0
- package/package.json +5 -4
|
@@ -30,6 +30,10 @@ declare const _default: {
|
|
|
30
30
|
"navigationAriaLabel": "Sidebar navigation",
|
|
31
31
|
"collapseAriaLabel": "Collapse sidebar",
|
|
32
32
|
"expandAriaLabel": "Expand sidebar"
|
|
33
|
+
},
|
|
34
|
+
"table": {
|
|
35
|
+
"ascAriaLabel": "Sort ascending",
|
|
36
|
+
"descAriaLabel": "Sort descending"
|
|
33
37
|
}
|
|
34
38
|
}
|
|
35
39
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const a = { addressInput: { qrCodeAriaLabel: "Scan QR code" }, avatar: { defaultAlt: "User avatar", notificationAriaLabel: "Has notification" }, baseInput: { clearInputAriaLabel: "Clear input" }, spinner: { loadingAriaLabel: "Loading" }, dialogHeader: { goBackAriaLabel: "Go back", closeAriaLabel: "Close" }, banner: { closeAriaLabel: "Close" }, link: { opensInNewTabAriaLabel: "(opens in a new tab)" }, navBar: { goBackAriaLabel: "Go back" }, sideBar: { navigationAriaLabel: "Sidebar navigation", collapseAriaLabel: "Collapse sidebar", expandAriaLabel: "Expand sidebar" } }, e = {
|
|
1
|
+
const a = { addressInput: { qrCodeAriaLabel: "Scan QR code" }, avatar: { defaultAlt: "User avatar", notificationAriaLabel: "Has notification" }, baseInput: { clearInputAriaLabel: "Clear input" }, spinner: { loadingAriaLabel: "Loading" }, dialogHeader: { goBackAriaLabel: "Go back", closeAriaLabel: "Close" }, banner: { closeAriaLabel: "Close" }, link: { opensInNewTabAriaLabel: "(opens in a new tab)" }, navBar: { goBackAriaLabel: "Go back" }, sideBar: { navigationAriaLabel: "Sidebar navigation", collapseAriaLabel: "Collapse sidebar", expandAriaLabel: "Expand sidebar" }, table: { ascAriaLabel: "Sort ascending", descAriaLabel: "Sort descending" } }, e = {
|
|
2
2
|
components: a
|
|
3
3
|
};
|
|
4
4
|
export {
|
|
@@ -30,6 +30,10 @@ declare const _default: {
|
|
|
30
30
|
"navigationAriaLabel": "Navigation latérale",
|
|
31
31
|
"collapseAriaLabel": "Réduire la barre latérale",
|
|
32
32
|
"expandAriaLabel": "Développer la barre latérale"
|
|
33
|
+
},
|
|
34
|
+
"table": {
|
|
35
|
+
"ascAriaLabel": "Trier par ordre croissant",
|
|
36
|
+
"descAriaLabel": "Trier par ordre décroissant"
|
|
33
37
|
}
|
|
34
38
|
}
|
|
35
39
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const a = { addressInput: { qrCodeAriaLabel: "Scanner le code QR" }, avatar: { defaultAlt: "Avatar de l'utilisateur", notificationAriaLabel: "A une notification" }, baseInput: { clearInputAriaLabel: "Effacer la saisie" }, spinner: { loadingAriaLabel: "Chargement" }, dialogHeader: { goBackAriaLabel: "Retour", closeAriaLabel: "Fermer" }, banner: { closeAriaLabel: "Fermer" }, link: { opensInNewTabAriaLabel: "(s'ouvre dans un nouvel onglet)" }, navBar: { goBackAriaLabel: "Retour" }, sideBar: { navigationAriaLabel: "Navigation latérale", collapseAriaLabel: "Réduire la barre latérale", expandAriaLabel: "Développer la barre latérale" } }, e = {
|
|
1
|
+
const a = { addressInput: { qrCodeAriaLabel: "Scanner le code QR" }, avatar: { defaultAlt: "Avatar de l'utilisateur", notificationAriaLabel: "A une notification" }, baseInput: { clearInputAriaLabel: "Effacer la saisie" }, spinner: { loadingAriaLabel: "Chargement" }, dialogHeader: { goBackAriaLabel: "Retour", closeAriaLabel: "Fermer" }, banner: { closeAriaLabel: "Fermer" }, link: { opensInNewTabAriaLabel: "(s'ouvre dans un nouvel onglet)" }, navBar: { goBackAriaLabel: "Retour" }, sideBar: { navigationAriaLabel: "Navigation latérale", collapseAriaLabel: "Réduire la barre latérale", expandAriaLabel: "Développer la barre latérale" }, table: { ascAriaLabel: "Trier par ordre croissant", descAriaLabel: "Trier par ordre décroissant" } }, e = {
|
|
2
2
|
components: a
|
|
3
3
|
};
|
|
4
4
|
export {
|
package/dist/index.js
CHANGED
|
@@ -1,59 +1,60 @@
|
|
|
1
|
-
import { Languages as
|
|
2
|
-
import { AddressInput as
|
|
3
|
-
import { AmountInput as
|
|
4
|
-
import { AmountDisplay as
|
|
5
|
-
import { Avatar as
|
|
6
|
-
import { Banner as
|
|
7
|
-
import { BaseInput as
|
|
8
|
-
import { Button as
|
|
1
|
+
import { Languages as r } from "./i18n/languages.js";
|
|
2
|
+
import { AddressInput as a } from "./lib/Components/AddressInput/AddressInput.js";
|
|
3
|
+
import { AmountInput as i } from "./lib/Components/AmountInput/AmountInput.js";
|
|
4
|
+
import { AmountDisplay as p } from "./lib/Components/AmountDisplay/AmountDisplay.js";
|
|
5
|
+
import { Avatar as T } from "./lib/Components/Avatar/Avatar.js";
|
|
6
|
+
import { Banner as x } from "./lib/Components/Banner/Banner.js";
|
|
7
|
+
import { BaseInput as S } from "./lib/Components/BaseInput/BaseInput.js";
|
|
8
|
+
import { Button as b } from "./lib/Components/Button/Button.js";
|
|
9
9
|
import { BaseButton as c } from "./lib/Components/Button/BaseButton.js";
|
|
10
10
|
import { CardButton as B } from "./lib/Components/CardButton/CardButton.js";
|
|
11
|
-
import { Checkbox as
|
|
12
|
-
import { Dialog as
|
|
13
|
-
import { DialogHeader as
|
|
14
|
-
import { Divider as
|
|
15
|
-
import { IconButton as
|
|
16
|
-
import { InteractiveIcon as
|
|
11
|
+
import { Checkbox as C } from "./lib/Components/Checkbox/Checkbox.js";
|
|
12
|
+
import { Dialog as h, DialogBody as M, DialogContent as D, DialogFooter as v, DialogTrigger as A } from "./lib/Components/Dialog/Dialog.js";
|
|
13
|
+
import { DialogHeader as w } from "./lib/Components/Dialog/DialogHeader/DialogHeader.js";
|
|
14
|
+
import { Divider as H } from "./lib/Components/Divider/Divider.js";
|
|
15
|
+
import { IconButton as y } from "./lib/Components/IconButton/IconButton.js";
|
|
16
|
+
import { InteractiveIcon as P } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
|
|
17
17
|
import { Link as j } from "./lib/Components/Link/Link.js";
|
|
18
18
|
import { ListItem as z, ListItemContent as E, ListItemDescription as J, ListItemIcon as K, ListItemLeading as O, ListItemSpot as Q, ListItemTitle as U, ListItemTrailing as V, ListItemTruncate as W } from "./lib/Components/ListItem/ListItem.js";
|
|
19
|
-
import { Menu as Y, MenuCheckboxItem as Z, MenuContent as _, MenuGroup as $, MenuItem as ee, MenuLabel as oe, MenuPortal as
|
|
20
|
-
import { NavBar as
|
|
21
|
-
import { PageIndicator as
|
|
22
|
-
import { SearchInput as
|
|
23
|
-
import { Select as
|
|
24
|
-
import { SideBar as
|
|
25
|
-
import { Skeleton as
|
|
19
|
+
import { Menu as Y, MenuCheckboxItem as Z, MenuContent as _, MenuGroup as $, MenuItem as ee, MenuLabel as oe, MenuPortal as re, MenuRadioGroup as te, MenuRadioItem as ae, MenuSeparator as ne, MenuSub as ie, MenuSubContent as le, MenuSubTrigger as pe, MenuTrigger as me } from "./lib/Components/Menu/Menu.js";
|
|
20
|
+
import { NavBar as ue, NavBarBackButton as xe, NavBarCoinCapsule as fe, NavBarTitle as Se, NavBarTrailing as de } from "./lib/Components/NavBar/NavBar.js";
|
|
21
|
+
import { PageIndicator as ge } from "./lib/Components/PageIndicator/PageIndicator.js";
|
|
22
|
+
import { SearchInput as Ie } from "./lib/Components/SearchInput/SearchInput.js";
|
|
23
|
+
import { Select as se, SelectContent as Ce, SelectGroup as Le, SelectItem as he, SelectItemText as Me, SelectLabel as De, SelectSeparator as ve, SelectTrigger as Ae } from "./lib/Components/Select/Select.js";
|
|
24
|
+
import { SideBar as we, SideBarCollapseToggle as ke, SideBarItem as He, SideBarLeading as Ne, SideBarTrailing as ye } from "./lib/Components/SideBar/SideBar.js";
|
|
25
|
+
import { Skeleton as Pe } from "./lib/Components/Skeleton/Skeleton.js";
|
|
26
26
|
import { Spinner as je } from "./lib/Components/Spinner/Spinner.js";
|
|
27
27
|
import { Spot as ze } from "./lib/Components/Spot/Spot.js";
|
|
28
28
|
import { Subheader as Je, SubheaderAction as Ke, SubheaderCount as Oe, SubheaderDescription as Qe, SubheaderInfo as Ue, SubheaderRow as Ve, SubheaderShowMore as We, SubheaderTitle as Xe } from "./lib/Components/Subheader/Subheader.js";
|
|
29
29
|
import { Switch as Ze } from "./lib/Components/Switch/Switch.js";
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
30
|
+
import { Table as $e, TableActionBar as eo, TableActionBarLeading as oo, TableActionBarTrailing as ro, TableBody as to, TableCell as ao, TableCellContent as no, TableGroupHeaderRow as io, TableHeader as lo, TableHeaderCell as po, TableHeaderRow as mo, TableInfoIcon as To, TableLoadingRow as uo, TableRoot as xo, TableRow as fo, TableSortButton as So } from "./lib/Components/Table/Table.js";
|
|
31
|
+
import { Tag as go } from "./lib/Components/Tag/Tag.js";
|
|
32
|
+
import { TextInput as Io } from "./lib/Components/TextInput/TextInput.js";
|
|
33
|
+
import { Tile as so, TileContent as Co, TileDescription as Lo, TileSecondaryAction as ho, TileSpot as Mo, TileTitle as Do, TileTrailingContent as vo } from "./lib/Components/Tile/Tile.js";
|
|
34
|
+
import { TileButton as Ro } from "./lib/Components/TileButton/TileButton.js";
|
|
35
|
+
import { Tooltip as ko, TooltipContent as Ho, TooltipProvider as No, TooltipTrigger as yo } from "./lib/Components/Tooltip/Tooltip.js";
|
|
36
|
+
import { ThemeProvider as Po, useTheme as Fo } from "./lib/Components/ThemeProvider/ThemeProvider.js";
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
a as AddressInput,
|
|
39
|
+
p as AmountDisplay,
|
|
40
|
+
i as AmountInput,
|
|
41
|
+
T as Avatar,
|
|
42
|
+
x as Banner,
|
|
42
43
|
c as BaseButton,
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
S as BaseInput,
|
|
45
|
+
b as Button,
|
|
45
46
|
B as CardButton,
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
C as Checkbox,
|
|
48
|
+
h as Dialog,
|
|
48
49
|
M as DialogBody,
|
|
49
50
|
D as DialogContent,
|
|
50
51
|
v as DialogFooter,
|
|
51
|
-
|
|
52
|
+
w as DialogHeader,
|
|
52
53
|
A as DialogTrigger,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
H as Divider,
|
|
55
|
+
y as IconButton,
|
|
56
|
+
P as InteractiveIcon,
|
|
57
|
+
r as Languages,
|
|
57
58
|
j as Link,
|
|
58
59
|
z as ListItem,
|
|
59
60
|
E as ListItemContent,
|
|
@@ -70,35 +71,35 @@ export {
|
|
|
70
71
|
$ as MenuGroup,
|
|
71
72
|
ee as MenuItem,
|
|
72
73
|
oe as MenuLabel,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
re as MenuPortal,
|
|
75
|
+
te as MenuRadioGroup,
|
|
76
|
+
ae as MenuRadioItem,
|
|
76
77
|
ne as MenuSeparator,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
78
|
+
ie as MenuSub,
|
|
79
|
+
le as MenuSubContent,
|
|
80
|
+
pe as MenuSubTrigger,
|
|
81
|
+
me as MenuTrigger,
|
|
82
|
+
ue as NavBar,
|
|
83
|
+
xe as NavBarBackButton,
|
|
84
|
+
fe as NavBarCoinCapsule,
|
|
85
|
+
Se as NavBarTitle,
|
|
86
|
+
de as NavBarTrailing,
|
|
87
|
+
ge as PageIndicator,
|
|
88
|
+
Ie as SearchInput,
|
|
89
|
+
se as Select,
|
|
90
|
+
Ce as SelectContent,
|
|
91
|
+
Le as SelectGroup,
|
|
92
|
+
he as SelectItem,
|
|
92
93
|
Me as SelectItemText,
|
|
93
94
|
De as SelectLabel,
|
|
94
95
|
ve as SelectSeparator,
|
|
95
96
|
Ae as SelectTrigger,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
we as SideBar,
|
|
98
|
+
ke as SideBarCollapseToggle,
|
|
99
|
+
He as SideBarItem,
|
|
100
|
+
Ne as SideBarLeading,
|
|
101
|
+
ye as SideBarTrailing,
|
|
102
|
+
Pe as Skeleton,
|
|
102
103
|
je as Spinner,
|
|
103
104
|
ze as Spot,
|
|
104
105
|
Je as Subheader,
|
|
@@ -110,20 +111,36 @@ export {
|
|
|
110
111
|
We as SubheaderShowMore,
|
|
111
112
|
Xe as SubheaderTitle,
|
|
112
113
|
Ze as Switch,
|
|
113
|
-
$e as
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
ro as
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
no as
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
114
|
+
$e as Table,
|
|
115
|
+
eo as TableActionBar,
|
|
116
|
+
oo as TableActionBarLeading,
|
|
117
|
+
ro as TableActionBarTrailing,
|
|
118
|
+
to as TableBody,
|
|
119
|
+
ao as TableCell,
|
|
120
|
+
no as TableCellContent,
|
|
121
|
+
io as TableGroupHeaderRow,
|
|
122
|
+
lo as TableHeader,
|
|
123
|
+
po as TableHeaderCell,
|
|
124
|
+
mo as TableHeaderRow,
|
|
125
|
+
To as TableInfoIcon,
|
|
126
|
+
uo as TableLoadingRow,
|
|
127
|
+
xo as TableRoot,
|
|
128
|
+
fo as TableRow,
|
|
129
|
+
So as TableSortButton,
|
|
130
|
+
go as Tag,
|
|
131
|
+
Io as TextInput,
|
|
132
|
+
Po as ThemeProvider,
|
|
133
|
+
so as Tile,
|
|
134
|
+
Ro as TileButton,
|
|
135
|
+
Co as TileContent,
|
|
136
|
+
Lo as TileDescription,
|
|
137
|
+
ho as TileSecondaryAction,
|
|
138
|
+
Mo as TileSpot,
|
|
139
|
+
Do as TileTitle,
|
|
140
|
+
vo as TileTrailingContent,
|
|
141
|
+
ko as Tooltip,
|
|
142
|
+
Ho as TooltipContent,
|
|
143
|
+
No as TooltipProvider,
|
|
144
|
+
yo as TooltipTrigger,
|
|
145
|
+
Fo as useTheme
|
|
129
146
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { getFontSize as
|
|
1
|
+
import { jsxs as V, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { getFontSize as j, cn as a, textFormatter as F } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as z } from "class-variance-authority";
|
|
4
4
|
import M, { useRef as p, useState as h, useMemo as _, useLayoutEffect as q, useEffect as D } from "react";
|
|
5
|
-
const
|
|
5
|
+
const G = z(
|
|
6
6
|
[
|
|
7
7
|
"bg-transparent heading-0 caret-active outline-hidden transition-colors",
|
|
8
8
|
"text-base placeholder:text-muted-subtle",
|
|
@@ -28,7 +28,7 @@ const L = z(
|
|
|
28
28
|
"group-has-[input:placeholder-shown]:text-muted-subtle",
|
|
29
29
|
"group-has-[input:disabled]:cursor-not-allowed group-has-[input:disabled]:text-disabled",
|
|
30
30
|
'group-has-[input[aria-invalid="true"]]:text-error'
|
|
31
|
-
),
|
|
31
|
+
), H = M.forwardRef(
|
|
32
32
|
({
|
|
33
33
|
className: x,
|
|
34
34
|
currencyText: r,
|
|
@@ -42,8 +42,8 @@ const L = z(
|
|
|
42
42
|
onChange: C,
|
|
43
43
|
...N
|
|
44
44
|
}, A) => {
|
|
45
|
-
const c = p(null), s = p(null), [n, f] = h(u.toString()), [
|
|
46
|
-
function
|
|
45
|
+
const c = p(null), s = p(null), [n, f] = h(u.toString()), [k, m] = h(!1), g = p(n);
|
|
46
|
+
function E(...t) {
|
|
47
47
|
return (e) => {
|
|
48
48
|
t.forEach((o) => {
|
|
49
49
|
o && (typeof o == "function" ? o(e) : o.current = e);
|
|
@@ -51,7 +51,7 @@ const L = z(
|
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
const i = _(
|
|
54
|
-
() =>
|
|
54
|
+
() => j(n) + "px",
|
|
55
55
|
[n]
|
|
56
56
|
);
|
|
57
57
|
q(() => {
|
|
@@ -62,7 +62,7 @@ const L = z(
|
|
|
62
62
|
}, [n]), D(() => {
|
|
63
63
|
f(u.toString());
|
|
64
64
|
}, [u]);
|
|
65
|
-
const
|
|
65
|
+
const I = (t) => {
|
|
66
66
|
const e = F(t.target.value, {
|
|
67
67
|
allowDecimals: y,
|
|
68
68
|
thousandsSeparator: R,
|
|
@@ -71,7 +71,7 @@ const L = z(
|
|
|
71
71
|
});
|
|
72
72
|
f(e), C({ ...t, target: { ...t.target, value: e } }), e !== g.current && m(!0), g.current = e;
|
|
73
73
|
};
|
|
74
|
-
return /* @__PURE__ */
|
|
74
|
+
return /* @__PURE__ */ V(
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
77
77
|
className: "group relative flex items-center justify-center transition-transform",
|
|
@@ -103,14 +103,14 @@ const L = z(
|
|
|
103
103
|
/* @__PURE__ */ l(
|
|
104
104
|
"input",
|
|
105
105
|
{
|
|
106
|
-
ref:
|
|
106
|
+
ref: E(A, s),
|
|
107
107
|
type: "text",
|
|
108
108
|
inputMode: "decimal",
|
|
109
109
|
disabled: w,
|
|
110
110
|
value: n,
|
|
111
|
-
onChange:
|
|
111
|
+
onChange: I,
|
|
112
112
|
onAnimationEnd: () => m(!1),
|
|
113
|
-
className: a(
|
|
113
|
+
className: a(G({ isChanging: k }), x),
|
|
114
114
|
...N,
|
|
115
115
|
style: { fontSize: i, letterSpacing: "normal" }
|
|
116
116
|
}
|
|
@@ -128,7 +128,7 @@ const L = z(
|
|
|
128
128
|
);
|
|
129
129
|
}
|
|
130
130
|
);
|
|
131
|
-
|
|
131
|
+
H.displayName = "AmountInput";
|
|
132
132
|
export {
|
|
133
|
-
|
|
133
|
+
H as AmountInput
|
|
134
134
|
};
|
|
@@ -17,23 +17,23 @@ const q = a(
|
|
|
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
|
-
),
|
|
26
|
+
), U = l.forwardRef(
|
|
27
27
|
({
|
|
28
28
|
className: N,
|
|
29
29
|
containerClassName: R,
|
|
30
30
|
inputClassName: S,
|
|
31
31
|
labelClassName: k,
|
|
32
32
|
label: u,
|
|
33
|
-
id:
|
|
33
|
+
id: E,
|
|
34
34
|
disabled: f,
|
|
35
35
|
errorMessage: i,
|
|
36
|
-
suffix:
|
|
36
|
+
suffix: j,
|
|
37
37
|
prefix: z,
|
|
38
38
|
onClear: p,
|
|
39
39
|
hideClearButton: B = !1,
|
|
@@ -42,7 +42,7 @@ const q = a(
|
|
|
42
42
|
...o
|
|
43
43
|
}, C) => {
|
|
44
44
|
var x;
|
|
45
|
-
const { t: D } = _(), r = l.useRef(null), F = l.useId(), b =
|
|
45
|
+
const { t: D } = _(), r = l.useRef(null), F = l.useId(), b = E || `input-${F}`, L = m || (i ? !0 : void 0), c = o.value !== void 0, [T, v] = l.useState(
|
|
46
46
|
((x = o.defaultValue) == null ? void 0 : x.toString()) || ""
|
|
47
47
|
), V = l.useCallback(
|
|
48
48
|
(t) => {
|
|
@@ -110,7 +110,7 @@ const q = a(
|
|
|
110
110
|
{
|
|
111
111
|
htmlFor: b,
|
|
112
112
|
className: a(
|
|
113
|
-
|
|
113
|
+
K,
|
|
114
114
|
i && "text-error",
|
|
115
115
|
k
|
|
116
116
|
),
|
|
@@ -126,7 +126,7 @@ const q = a(
|
|
|
126
126
|
children: /* @__PURE__ */ n(I, { size: 20 })
|
|
127
127
|
}
|
|
128
128
|
),
|
|
129
|
-
!g &&
|
|
129
|
+
!g && j
|
|
130
130
|
]
|
|
131
131
|
}
|
|
132
132
|
),
|
|
@@ -145,7 +145,7 @@ const q = a(
|
|
|
145
145
|
] });
|
|
146
146
|
}
|
|
147
147
|
);
|
|
148
|
-
|
|
148
|
+
U.displayName = "BaseInput";
|
|
149
149
|
export {
|
|
150
|
-
|
|
150
|
+
U as BaseInput
|
|
151
151
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/CardButton/CardButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAoB1B;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,UAAU;;iBA3CG,aAAa;YAAO,CAAC;iBAAqB,CAAC;;;;;
|
|
1
|
+
{"version":3,"file":"CardButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/CardButton/CardButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAoB1B;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,UAAU;;iBA3CG,aAAa;YAAO,CAAC;iBAAqB,CAAC;;;;;6GA2EpE,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { cn as
|
|
2
|
+
import { cn as b } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as c } from "class-variance-authority";
|
|
4
4
|
import m from "react";
|
|
5
5
|
import { ChevronRight as f } from "../../Symbols/Icons/ChevronRight.js";
|
|
6
6
|
const p = c(
|
|
7
|
-
"inline-flex h-fit w-full items-center gap-12 rounded-sm p-12 transition-colors focus-visible:outline-2 focus-visible:outline-focus disabled:text-disabled",
|
|
7
|
+
"inline-flex h-fit w-full cursor-pointer items-center gap-12 rounded-sm p-12 transition-colors focus-visible:outline-2 focus-visible:outline-focus disabled:cursor-default disabled:text-disabled",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
appearance: {
|
|
@@ -17,16 +17,16 @@ const p = c(
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
), v = m.forwardRef(
|
|
20
|
-
({ className:
|
|
20
|
+
({ className: l, appearance: n, icon: o, title: r, description: t, hideChevron: d, ...s }, u) => {
|
|
21
21
|
const a = o;
|
|
22
22
|
return /* @__PURE__ */ i(
|
|
23
23
|
"button",
|
|
24
24
|
{
|
|
25
|
-
ref:
|
|
26
|
-
className:
|
|
27
|
-
|
|
25
|
+
ref: u,
|
|
26
|
+
className: b(
|
|
27
|
+
l,
|
|
28
28
|
p({
|
|
29
|
-
appearance:
|
|
29
|
+
appearance: n
|
|
30
30
|
})
|
|
31
31
|
),
|
|
32
32
|
disabled: s.disabled,
|
|
@@ -34,8 +34,8 @@ const p = c(
|
|
|
34
34
|
children: [
|
|
35
35
|
a && /* @__PURE__ */ e(a, { size: 24, className: "shrink-0" }),
|
|
36
36
|
/* @__PURE__ */ i("div", { className: "flex min-w-0 flex-1 flex-col gap-4 text-left", children: [
|
|
37
|
-
/* @__PURE__ */ e("div", { className: "min-w-0 truncate body-
|
|
38
|
-
t && /* @__PURE__ */ e("div", { className: "line-clamp-2 min-w-0 body-
|
|
37
|
+
/* @__PURE__ */ e("div", { className: "min-w-0 truncate body-2-semi-bold", children: r }),
|
|
38
|
+
t && /* @__PURE__ */ e("div", { className: "line-clamp-2 min-w-0 body-3 text-muted", children: t })
|
|
39
39
|
] }),
|
|
40
40
|
!d && /* @__PURE__ */ e(f, { size: 24, className: "shrink-0" })
|
|
41
41
|
]
|
|
@@ -47,7 +47,7 @@ const d = n.forwardRef(
|
|
|
47
47
|
)
|
|
48
48
|
);
|
|
49
49
|
d.displayName = "DialogOverlay";
|
|
50
|
-
function
|
|
50
|
+
function P({
|
|
51
51
|
className: a,
|
|
52
52
|
children: t,
|
|
53
53
|
...e
|
|
@@ -109,7 +109,7 @@ D.displayName = "DialogFooter";
|
|
|
109
109
|
export {
|
|
110
110
|
C as Dialog,
|
|
111
111
|
y as DialogBody,
|
|
112
|
-
|
|
112
|
+
P as DialogContent,
|
|
113
113
|
D as DialogFooter,
|
|
114
114
|
R as DialogTrigger
|
|
115
115
|
};
|
|
@@ -42,12 +42,12 @@ function D({
|
|
|
42
42
|
}) {
|
|
43
43
|
return /* @__PURE__ */ a(t.Portal, { ...e });
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function K({
|
|
46
46
|
...e
|
|
47
47
|
}) {
|
|
48
48
|
return /* @__PURE__ */ a(t.Sub, { ...e });
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function q({ ...e }) {
|
|
51
51
|
return /* @__PURE__ */ a(t.RadioGroup, { "data-slot": "menu-radio-group", ...e });
|
|
52
52
|
}
|
|
53
53
|
const x = i.forwardRef(({ className: e, inset: n, children: o, ...s }, m) => /* @__PURE__ */ l(
|
|
@@ -158,10 +158,10 @@ export {
|
|
|
158
158
|
w as MenuItem,
|
|
159
159
|
I as MenuLabel,
|
|
160
160
|
D as MenuPortal,
|
|
161
|
-
|
|
161
|
+
q as MenuRadioGroup,
|
|
162
162
|
C as MenuRadioItem,
|
|
163
163
|
v as MenuSeparator,
|
|
164
|
-
|
|
164
|
+
K as MenuSub,
|
|
165
165
|
R as MenuSubContent,
|
|
166
166
|
x as MenuSubTrigger,
|
|
167
167
|
h as MenuTrigger
|
|
@@ -97,9 +97,9 @@ const x = c(
|
|
|
97
97
|
position: r,
|
|
98
98
|
...i,
|
|
99
99
|
children: [
|
|
100
|
-
/* @__PURE__ */ e(
|
|
100
|
+
/* @__PURE__ */ e(z, {}),
|
|
101
101
|
/* @__PURE__ */ e(a.Viewport, { className: y({ position: r }), children: o }),
|
|
102
|
-
/* @__PURE__ */ e(
|
|
102
|
+
/* @__PURE__ */ e(C, {})
|
|
103
103
|
]
|
|
104
104
|
}
|
|
105
105
|
) }));
|
|
@@ -157,7 +157,7 @@ const R = s.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ e(
|
|
|
157
157
|
}
|
|
158
158
|
));
|
|
159
159
|
R.displayName = a.ItemText.displayName;
|
|
160
|
-
function
|
|
160
|
+
function z({
|
|
161
161
|
className: t,
|
|
162
162
|
...o
|
|
163
163
|
}) {
|
|
@@ -174,7 +174,7 @@ function j({
|
|
|
174
174
|
}
|
|
175
175
|
);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function C({
|
|
178
178
|
className: t,
|
|
179
179
|
...o
|
|
180
180
|
}) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as o, jsxs as C, Fragment as
|
|
2
|
-
import { createSafeContext as
|
|
1
|
+
import { jsx as o, jsxs as C, Fragment as R } from "react/jsx-runtime";
|
|
2
|
+
import { createSafeContext as j, cn as c } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as h } from "class-variance-authority";
|
|
4
4
|
import { t as x } from "../../../node_modules/i18next/dist/esm/i18next.js";
|
|
5
5
|
import { forwardRef as f, useCallback as y } from "react";
|
|
@@ -7,7 +7,7 @@ import { Tooltip as P, TooltipTrigger as V, TooltipContent as q } from "../Toolt
|
|
|
7
7
|
import { useControllableState as N } from "../../../utils/useControllableState/useControllableState.js";
|
|
8
8
|
import { ExpandRight as z } from "../../Symbols/Icons/ExpandRight.js";
|
|
9
9
|
import { ExpandLeft as E } from "../../Symbols/Icons/ExpandLeft.js";
|
|
10
|
-
const [k, w] =
|
|
10
|
+
const [k, w] = j("SideBar"), m = {
|
|
11
11
|
root: h(
|
|
12
12
|
[
|
|
13
13
|
"flex h-full flex-col justify-between gap-16 overflow-y-auto rounded-xl bg-muted-transparent p-16",
|
|
@@ -90,7 +90,7 @@ const [k, w] = R("SideBar"), m = {
|
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
92
|
F.displayName = "SideBar";
|
|
93
|
-
const
|
|
93
|
+
const J = f(
|
|
94
94
|
({ children: a, className: r, ...e }, t) => /* @__PURE__ */ o(
|
|
95
95
|
"div",
|
|
96
96
|
{
|
|
@@ -101,8 +101,8 @@ const O = f(
|
|
|
101
101
|
}
|
|
102
102
|
)
|
|
103
103
|
);
|
|
104
|
-
|
|
105
|
-
const
|
|
104
|
+
J.displayName = "SideBarLeading";
|
|
105
|
+
const K = f(
|
|
106
106
|
({ children: a, className: r, ...e }, t) => /* @__PURE__ */ o(
|
|
107
107
|
"div",
|
|
108
108
|
{
|
|
@@ -113,8 +113,8 @@ const _ = f(
|
|
|
113
113
|
}
|
|
114
114
|
)
|
|
115
115
|
);
|
|
116
|
-
|
|
117
|
-
const
|
|
116
|
+
K.displayName = "SideBarTrailing";
|
|
117
|
+
const O = f(
|
|
118
118
|
({
|
|
119
119
|
value: a,
|
|
120
120
|
icon: r,
|
|
@@ -134,7 +134,7 @@ const D = f(
|
|
|
134
134
|
n || (s == null || s(A), l == null || l(a));
|
|
135
135
|
},
|
|
136
136
|
[n, s, l, a]
|
|
137
|
-
), L = /* @__PURE__ */ C(
|
|
137
|
+
), L = /* @__PURE__ */ C(R, { children: [
|
|
138
138
|
/* @__PURE__ */ o(T, { size: 16, className: "shrink-0" }),
|
|
139
139
|
t != null && /* @__PURE__ */ o(
|
|
140
140
|
"span",
|
|
@@ -169,8 +169,8 @@ const D = f(
|
|
|
169
169
|
] }) : S;
|
|
170
170
|
}
|
|
171
171
|
);
|
|
172
|
-
|
|
173
|
-
const
|
|
172
|
+
O.displayName = "SideBarItem";
|
|
173
|
+
const D = ({
|
|
174
174
|
className: a,
|
|
175
175
|
...r
|
|
176
176
|
}) => {
|
|
@@ -196,11 +196,11 @@ const G = ({
|
|
|
196
196
|
}
|
|
197
197
|
);
|
|
198
198
|
};
|
|
199
|
-
|
|
199
|
+
D.displayName = "SideBarCollapseToggle";
|
|
200
200
|
export {
|
|
201
201
|
F as SideBar,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
202
|
+
D as SideBarCollapseToggle,
|
|
203
|
+
O as SideBarItem,
|
|
204
|
+
J as SideBarLeading,
|
|
205
|
+
K as SideBarTrailing
|
|
206
206
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SkeletonProps } from './types';
|
|
2
|
-
declare
|
|
2
|
+
declare const Skeleton: import('react').ForwardRefExoticComponent<Omit<SkeletonProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
3
|
export { Skeleton };
|
|
4
4
|
//# sourceMappingURL=Skeleton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAyG7C,QAAA,MAAM,QAAQ,uHAoBb,CAAC;AAGF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|