@ledgerhq/lumen-ui-react 0.1.45 → 0.1.47
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/de.json.d.ts +1 -3
- package/dist/i18n/locales/de.json.js +1 -1
- package/dist/i18n/locales/en.json.d.ts +1 -3
- package/dist/i18n/locales/en.json.js +1 -1
- package/dist/i18n/locales/es.json.d.ts +1 -3
- package/dist/i18n/locales/es.json.js +1 -1
- package/dist/i18n/locales/fr.json.d.ts +1 -3
- package/dist/i18n/locales/fr.json.js +1 -1
- package/dist/i18n/locales/ja.json.d.ts +1 -3
- package/dist/i18n/locales/ja.json.js +2 -2
- package/dist/i18n/locales/ko.json.d.ts +1 -3
- package/dist/i18n/locales/ko.json.js +2 -2
- package/dist/i18n/locales/pt.json.d.ts +1 -3
- package/dist/i18n/locales/pt.json.js +1 -1
- package/dist/i18n/locales/ru.json.d.ts +1 -3
- package/dist/i18n/locales/ru.json.js +1 -1
- package/dist/i18n/locales/th.json.d.ts +1 -3
- package/dist/i18n/locales/th.json.js +2 -2
- package/dist/i18n/locales/tr.json.d.ts +1 -3
- package/dist/i18n/locales/tr.json.js +2 -2
- package/dist/i18n/locales/zh.json.d.ts +1 -3
- package/dist/i18n/locales/zh.json.js +2 -2
- package/dist/index.js +169 -161
- package/dist/lib/Components/AmountInput/AmountInput.js +2 -2
- package/dist/lib/Components/Avatar/Avatar.d.ts +1 -4
- package/dist/lib/Components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/lib/Components/Avatar/Avatar.js +33 -40
- package/dist/lib/Components/Avatar/types.d.ts +0 -6
- package/dist/lib/Components/Avatar/types.d.ts.map +1 -1
- package/dist/lib/Components/BaseInput/BaseInput.d.ts +1 -1
- package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
- package/dist/lib/Components/BaseInput/BaseInput.js +119 -93
- package/dist/lib/Components/BaseInput/types.d.ts +24 -0
- package/dist/lib/Components/BaseInput/types.d.ts.map +1 -1
- package/dist/lib/Components/Button/BaseButton.d.ts +1 -1
- package/dist/lib/Components/Card/Card.js +5 -5
- package/dist/lib/Components/CardButton/CardButton.js +1 -1
- package/dist/lib/Components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/lib/Components/DataTable/DataTable.js +97 -80
- package/dist/lib/Components/DataTable/types.d.ts +2 -1
- package/dist/lib/Components/DataTable/types.d.ts.map +1 -1
- package/dist/lib/Components/DescriptionItem/DescriptionItem.d.ts +1 -1
- package/dist/lib/Components/DescriptionItem/DescriptionItem.d.ts.map +1 -1
- package/dist/lib/Components/DescriptionItem/DescriptionItem.js +74 -48
- package/dist/lib/Components/DescriptionItem/types.d.ts +6 -0
- package/dist/lib/Components/DescriptionItem/types.d.ts.map +1 -1
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +1 -1
- package/dist/lib/Components/DotIndicator/getDotIndicatorProps.d.ts +24 -0
- package/dist/lib/Components/DotIndicator/getDotIndicatorProps.d.ts.map +1 -0
- package/dist/lib/Components/DotIndicator/getDotIndicatorProps.js +11 -0
- package/dist/lib/Components/DotIndicator/index.d.ts +1 -0
- package/dist/lib/Components/DotIndicator/index.d.ts.map +1 -1
- package/dist/lib/Components/Icon/Icon.js +8 -8
- package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/lib/Components/ListItem/ListItem.js +118 -68
- package/dist/lib/Components/ListItem/types.d.ts +11 -1
- package/dist/lib/Components/ListItem/types.d.ts.map +1 -1
- package/dist/lib/Components/MediaCard/MediaCard.js +4 -4
- package/dist/lib/Components/Menu/Menu.d.ts +1 -1
- package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
- package/dist/lib/Components/Menu/Menu.js +79 -65
- package/dist/lib/Components/Menu/types.d.ts +6 -0
- package/dist/lib/Components/Menu/types.d.ts.map +1 -1
- package/dist/lib/Components/SearchInput/SearchInput.js +10 -10
- package/dist/lib/Components/SectionHeader/SectionHeader.d.ts +33 -0
- package/dist/lib/Components/SectionHeader/SectionHeader.d.ts.map +1 -0
- package/dist/lib/Components/SectionHeader/SectionHeader.js +56 -0
- package/dist/lib/Components/SectionHeader/index.d.ts +3 -0
- package/dist/lib/Components/SectionHeader/index.d.ts.map +1 -0
- package/dist/lib/Components/SectionHeader/types.d.ts +26 -0
- package/dist/lib/Components/SectionHeader/types.d.ts.map +1 -0
- package/dist/lib/Components/SideBar/SideBar.js +2 -2
- package/dist/lib/Components/Spot/Spot.js +5 -5
- package/dist/lib/Components/Table/Table.d.ts +17 -1
- package/dist/lib/Components/Table/Table.d.ts.map +1 -1
- package/dist/lib/Components/Table/Table.js +121 -92
- package/dist/lib/Components/Table/types.d.ts +23 -0
- package/dist/lib/Components/Table/types.d.ts.map +1 -1
- package/dist/lib/Components/Table/utils/useThrottledScrollBottom.js +5 -5
- package/dist/lib/Components/TileButton/TileButton.d.ts +1 -1
- package/dist/lib/Components/TileButton/TileButton.d.ts.map +1 -1
- package/dist/lib/Components/TileButton/TileButton.js +52 -39
- package/dist/lib/Components/TileButton/types.d.ts +5 -0
- package/dist/lib/Components/TileButton/types.d.ts.map +1 -1
- package/dist/lib/Components/Trend/Trend.js +2 -2
- package/dist/lib/Components/index.d.ts +1 -0
- package/dist/lib/Components/index.d.ts.map +1 -1
- package/dist/lib/Symbols/Icons/ChevronAscending.js +1 -1
- package/dist/lib/Symbols/Icons/ChevronDescending.js +1 -1
- package/dist/lib/Symbols/Icons/Contact.d.ts +29 -0
- package/dist/lib/Symbols/Icons/Contact.d.ts.map +1 -0
- package/dist/lib/Symbols/Icons/Contact.js +28 -0
- package/dist/lib/Symbols/Icons/Upload.d.ts +29 -0
- package/dist/lib/Symbols/Icons/Upload.d.ts.map +1 -0
- package/dist/lib/Symbols/Icons/Upload.js +28 -0
- package/dist/lib/Symbols/index.d.ts +2 -0
- package/dist/lib/Symbols/index.d.ts.map +1 -1
- package/dist/lib/Symbols/index.js +396 -392
- package/dist/libs/utils-shared/dist/index.js +58 -52
- package/dist/package.json +3 -3
- package/package.json +3 -3
- package/dist/lib/Components/Design-tokens/shared.d.ts +0 -20
- package/dist/lib/Components/Design-tokens/shared.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,72 +1,74 @@
|
|
|
1
1
|
import { Languages as t } from "./i18n/languages.js";
|
|
2
2
|
import { AddressInput as a } from "./lib/Components/AddressInput/AddressInput.js";
|
|
3
3
|
import { AmountInput as i } from "./lib/Components/AmountInput/AmountInput.js";
|
|
4
|
-
import { AmountDisplay as
|
|
4
|
+
import { AmountDisplay as l } from "./lib/Components/AmountDisplay/AmountDisplay.js";
|
|
5
5
|
import { Avatar as d } from "./lib/Components/Avatar/Avatar.js";
|
|
6
6
|
import { Banner as T } from "./lib/Components/Banner/Banner.js";
|
|
7
7
|
import { BaseInput as c } from "./lib/Components/BaseInput/BaseInput.js";
|
|
8
8
|
import { Button as u } from "./lib/Components/Button/Button.js";
|
|
9
9
|
import { BaseButton as g } from "./lib/Components/Button/BaseButton.js";
|
|
10
|
-
import { Card as B, CardContent as b, CardContentDescription as s, CardContentRow as D, CardContentTitle as M, CardFooter as L, CardFooterActions as h, CardHeader as v, CardLeading as R, CardTrailing as
|
|
11
|
-
import { CardButton as
|
|
12
|
-
import { Checkbox as
|
|
13
|
-
import { ContentBanner as k, ContentBannerContent as
|
|
10
|
+
import { Card as B, CardContent as b, CardContentDescription as s, CardContentRow as D, CardContentTitle as M, CardFooter as L, CardFooterActions as h, CardHeader as v, CardLeading as R, CardTrailing as H } from "./lib/Components/Card/Card.js";
|
|
11
|
+
import { CardButton as A } from "./lib/Components/CardButton/CardButton.js";
|
|
12
|
+
import { Checkbox as y } from "./lib/Components/Checkbox/Checkbox.js";
|
|
13
|
+
import { ContentBanner as k, ContentBannerContent as G, ContentBannerDescription as z, ContentBannerTitle as E } from "./lib/Components/ContentBanner/ContentBanner.js";
|
|
14
14
|
import { DataTable as O, DataTableGlobalSearchInput as V, DataTableRoot as _ } from "./lib/Components/DataTable/DataTable.js";
|
|
15
15
|
import { useLumenDataTable as q } from "./lib/Components/DataTable/useLumenDataTable/useLumenDataTable.js";
|
|
16
16
|
import { DescriptionItem as K, DescriptionItemLabel as Q, DescriptionItemLeading as U, DescriptionItemTrailing as W, DescriptionItemValue as X } from "./lib/Components/DescriptionItem/DescriptionItem.js";
|
|
17
17
|
import { DialogClose as Z } from "./lib/Components/Dialog/DialogClose/DialogClose.js";
|
|
18
18
|
import { Dialog as ee, DialogBody as oe, DialogBodyStickyContent as te, DialogContent as re, DialogFooter as ae, DialogTrigger as ne } from "./lib/Components/Dialog/Dialog.js";
|
|
19
19
|
import { DialogHeader as pe } from "./lib/Components/Dialog/DialogHeader/DialogHeader.js";
|
|
20
|
-
import { Divider as
|
|
20
|
+
import { Divider as me } from "./lib/Components/Divider/Divider.js";
|
|
21
21
|
import { DotCount as xe } from "./lib/Components/DotCount/DotCount.js";
|
|
22
22
|
import { DotIcon as fe, dotIconSizeMap as ce, mediaImageDotIconSizeMap as Se, spotDotIconSizeMap as ue } from "./lib/Components/DotIcon/DotIcon.js";
|
|
23
23
|
import { DotIndicator as ge } from "./lib/Components/DotIndicator/DotIndicator.js";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
24
|
+
import { getDotIndicatorProps as Be } from "./lib/Components/DotIndicator/getDotIndicatorProps.js";
|
|
25
|
+
import { DotSymbol as se, mediaImageDotSizeMap as De, spotDotSizeMap as Me } from "./lib/Components/DotSymbol/DotSymbol.js";
|
|
26
|
+
import { IconButton as he } from "./lib/Components/IconButton/IconButton.js";
|
|
27
|
+
import { InteractiveIcon as Re } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
|
|
28
|
+
import { Link as we } from "./lib/Components/Link/Link.js";
|
|
29
|
+
import { ListItem as Pe, ListItemContent as ye, ListItemContentRow as Ne, ListItemDescription as ke, ListItemLeading as Ge, ListItemTitle as ze, ListItemTrailing as Ee } from "./lib/Components/ListItem/ListItem.js";
|
|
30
|
+
import { MediaBanner as Oe, MediaBannerDescription as Ve, MediaBannerTitle as _e } from "./lib/Components/MediaBanner/MediaBanner.js";
|
|
31
|
+
import { MediaButton as qe } from "./lib/Components/MediaButton/MediaButton.js";
|
|
32
|
+
import { MediaCard as Ke, MediaCardTitle as Qe } from "./lib/Components/MediaCard/MediaCard.js";
|
|
33
|
+
import { MediaImage as We } from "./lib/Components/MediaImage/MediaImage.js";
|
|
34
|
+
import { MediaTag as Ye } from "./lib/Components/MediaTag/MediaTag.js";
|
|
35
|
+
import { Menu as $e, MenuCheckboxItem as eo, MenuContent as oo, MenuGroup as to, MenuItem as ro, MenuLabel as ao, MenuRadioGroup as no, MenuRadioItem as io, MenuSeparator as po, MenuSub as lo, MenuSubContent as mo, MenuSubTrigger as xo, MenuTrigger as To, createMenuRadioGroup as fo } from "./lib/Components/Menu/Menu.js";
|
|
36
|
+
import { NavBar as So, NavBarBackButton as uo, NavBarCoinCapsule as Co, NavBarDescription as go, NavBarLeading as Io, NavBarTitle as Bo, NavBarTrailing as bo } from "./lib/Components/NavBar/NavBar.js";
|
|
37
|
+
import { Popover as Do, PopoverContent as Mo, PopoverTrigger as Lo, createPopoverHandle as ho } from "./lib/Components/Popover/Popover.js";
|
|
38
|
+
import { PageIndicator as Ro } from "./lib/Components/PageIndicator/PageIndicator.js";
|
|
39
|
+
import { Pagination as wo } from "./lib/Components/Pagination/Pagination.js";
|
|
40
|
+
import { SearchInput as Po } from "./lib/Components/SearchInput/SearchInput.js";
|
|
41
|
+
import { SectionHeader as No, SectionHeaderLeading as ko, SectionHeaderTitle as Go } from "./lib/Components/SectionHeader/SectionHeader.js";
|
|
42
|
+
import { SegmentedControl as Eo, SegmentedControlButton as Fo, createSegmentedControl as Oo } from "./lib/Components/SegmentedControl/SegmentedControl.js";
|
|
43
|
+
import { Select as _o, SelectContent as jo, SelectEmptyState as qo, SelectItem as Jo, SelectItemContent as Ko, SelectItemDescription as Qo, SelectItemText as Uo, SelectList as Wo, SelectSearch as Xo, SelectSeparator as Yo, SelectTrigger as Zo, createSelect as $o } from "./lib/Components/Select/Select.js";
|
|
44
|
+
import { SideBar as ot, SideBarCollapseToggle as tt, SideBarItem as rt, SideBarLeading as at, SideBarTrailing as nt, createSideBar as it } from "./lib/Components/SideBar/SideBar.js";
|
|
45
|
+
import { Skeleton as lt } from "./lib/Components/Skeleton/Skeleton.js";
|
|
46
|
+
import { Spinner as dt } from "./lib/Components/Spinner/Spinner.js";
|
|
47
|
+
import { Spot as Tt } from "./lib/Components/Spot/Spot.js";
|
|
48
|
+
import { Stepper as ct } from "./lib/Components/Stepper/Stepper.js";
|
|
49
|
+
import { Subheader as ut, SubheaderCount as Ct, SubheaderDescription as gt, SubheaderInfo as It, SubheaderRow as Bt, SubheaderShowMore as bt, SubheaderTitle as st } from "./lib/Components/Subheader/Subheader.js";
|
|
50
|
+
import { Switch as Mt } from "./lib/Components/Switch/Switch.js";
|
|
51
|
+
import { Table as ht, TableActionBar as vt, TableActionBarLeading as Rt, TableActionBarTrailing as Ht, TableBody as wt, TableCell as At, TableCellContent as Pt, TableCol as yt, TableColGroup as Nt, TableGroupHeaderRow as kt, TableHeader as Gt, TableHeaderCell as zt, TableHeaderRow as Et, TableInfoIcon as Ft, TableLoadingRow as Ot, TableRoot as Vt, TableRow as _t, TableSortButton as jt } from "./lib/Components/Table/Table.js";
|
|
52
|
+
import { Tag as Jt } from "./lib/Components/Tag/Tag.js";
|
|
53
|
+
import { TextInput as Qt } from "./lib/Components/TextInput/TextInput.js";
|
|
54
|
+
import { Tile as Wt, TileContent as Xt, TileDescription as Yt, TileSecondaryAction as Zt, TileTitle as $t, TileTrailingContent as er } from "./lib/Components/Tile/Tile.js";
|
|
55
|
+
import { TileButton as tr } from "./lib/Components/TileButton/TileButton.js";
|
|
56
|
+
import { Tooltip as ar, TooltipContent as nr, TooltipProvider as ir, TooltipTrigger as pr } from "./lib/Components/Tooltip/Tooltip.js";
|
|
57
|
+
import { Trend as mr } from "./lib/Components/Trend/Trend.js";
|
|
58
|
+
import { ThemeProvider as xr, useTheme as Tr } from "./lib/Components/ThemeProvider/ThemeProvider.js";
|
|
59
|
+
import { COLOR_SCHEMES as cr } from "./lib/Components/ThemeProvider/ThemeProvider.types.js";
|
|
58
60
|
export {
|
|
59
61
|
a as AddressInput,
|
|
60
|
-
|
|
62
|
+
l as AmountDisplay,
|
|
61
63
|
i as AmountInput,
|
|
62
64
|
d as Avatar,
|
|
63
65
|
T as Banner,
|
|
64
66
|
g as BaseButton,
|
|
65
67
|
c as BaseInput,
|
|
66
68
|
u as Button,
|
|
67
|
-
|
|
69
|
+
cr as COLOR_SCHEMES,
|
|
68
70
|
B as Card,
|
|
69
|
-
|
|
71
|
+
A as CardButton,
|
|
70
72
|
b as CardContent,
|
|
71
73
|
s as CardContentDescription,
|
|
72
74
|
D as CardContentRow,
|
|
@@ -75,11 +77,11 @@ export {
|
|
|
75
77
|
h as CardFooterActions,
|
|
76
78
|
v as CardHeader,
|
|
77
79
|
R as CardLeading,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
H as CardTrailing,
|
|
81
|
+
y as Checkbox,
|
|
80
82
|
k as ContentBanner,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
G as ContentBannerContent,
|
|
84
|
+
z as ContentBannerDescription,
|
|
83
85
|
E as ContentBannerTitle,
|
|
84
86
|
O as DataTable,
|
|
85
87
|
V as DataTableGlobalSearchInput,
|
|
@@ -97,127 +99,133 @@ export {
|
|
|
97
99
|
ae as DialogFooter,
|
|
98
100
|
pe as DialogHeader,
|
|
99
101
|
ne as DialogTrigger,
|
|
100
|
-
|
|
102
|
+
me as Divider,
|
|
101
103
|
xe as DotCount,
|
|
102
104
|
fe as DotIcon,
|
|
103
105
|
ge as DotIndicator,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
se as DotSymbol,
|
|
107
|
+
he as IconButton,
|
|
108
|
+
Re as InteractiveIcon,
|
|
107
109
|
t as Languages,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
+
we as Link,
|
|
111
|
+
Pe as ListItem,
|
|
110
112
|
ye as ListItemContent,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
at as
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
dt as
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
Xt as
|
|
207
|
-
Yt as
|
|
208
|
-
Zt as
|
|
209
|
-
$t as
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
113
|
+
Ne as ListItemContentRow,
|
|
114
|
+
ke as ListItemDescription,
|
|
115
|
+
Ge as ListItemLeading,
|
|
116
|
+
ze as ListItemTitle,
|
|
117
|
+
Ee as ListItemTrailing,
|
|
118
|
+
Oe as MediaBanner,
|
|
119
|
+
Ve as MediaBannerDescription,
|
|
120
|
+
_e as MediaBannerTitle,
|
|
121
|
+
qe as MediaButton,
|
|
122
|
+
Ke as MediaCard,
|
|
123
|
+
Qe as MediaCardTitle,
|
|
124
|
+
We as MediaImage,
|
|
125
|
+
Ye as MediaTag,
|
|
126
|
+
$e as Menu,
|
|
127
|
+
eo as MenuCheckboxItem,
|
|
128
|
+
oo as MenuContent,
|
|
129
|
+
to as MenuGroup,
|
|
130
|
+
ro as MenuItem,
|
|
131
|
+
ao as MenuLabel,
|
|
132
|
+
no as MenuRadioGroup,
|
|
133
|
+
io as MenuRadioItem,
|
|
134
|
+
po as MenuSeparator,
|
|
135
|
+
lo as MenuSub,
|
|
136
|
+
mo as MenuSubContent,
|
|
137
|
+
xo as MenuSubTrigger,
|
|
138
|
+
To as MenuTrigger,
|
|
139
|
+
So as NavBar,
|
|
140
|
+
uo as NavBarBackButton,
|
|
141
|
+
Co as NavBarCoinCapsule,
|
|
142
|
+
go as NavBarDescription,
|
|
143
|
+
Io as NavBarLeading,
|
|
144
|
+
Bo as NavBarTitle,
|
|
145
|
+
bo as NavBarTrailing,
|
|
146
|
+
Ro as PageIndicator,
|
|
147
|
+
wo as Pagination,
|
|
148
|
+
Do as Popover,
|
|
149
|
+
Mo as PopoverContent,
|
|
150
|
+
Lo as PopoverTrigger,
|
|
151
|
+
Po as SearchInput,
|
|
152
|
+
No as SectionHeader,
|
|
153
|
+
ko as SectionHeaderLeading,
|
|
154
|
+
Go as SectionHeaderTitle,
|
|
155
|
+
Eo as SegmentedControl,
|
|
156
|
+
Fo as SegmentedControlButton,
|
|
157
|
+
_o as Select,
|
|
158
|
+
jo as SelectContent,
|
|
159
|
+
qo as SelectEmptyState,
|
|
160
|
+
Jo as SelectItem,
|
|
161
|
+
Ko as SelectItemContent,
|
|
162
|
+
Qo as SelectItemDescription,
|
|
163
|
+
Uo as SelectItemText,
|
|
164
|
+
Wo as SelectList,
|
|
165
|
+
Xo as SelectSearch,
|
|
166
|
+
Yo as SelectSeparator,
|
|
167
|
+
Zo as SelectTrigger,
|
|
168
|
+
ot as SideBar,
|
|
169
|
+
tt as SideBarCollapseToggle,
|
|
170
|
+
rt as SideBarItem,
|
|
171
|
+
at as SideBarLeading,
|
|
172
|
+
nt as SideBarTrailing,
|
|
173
|
+
lt as Skeleton,
|
|
174
|
+
dt as Spinner,
|
|
175
|
+
Tt as Spot,
|
|
176
|
+
ct as Stepper,
|
|
177
|
+
ut as Subheader,
|
|
178
|
+
Ct as SubheaderCount,
|
|
179
|
+
gt as SubheaderDescription,
|
|
180
|
+
It as SubheaderInfo,
|
|
181
|
+
Bt as SubheaderRow,
|
|
182
|
+
bt as SubheaderShowMore,
|
|
183
|
+
st as SubheaderTitle,
|
|
184
|
+
Mt as Switch,
|
|
185
|
+
ht as Table,
|
|
186
|
+
vt as TableActionBar,
|
|
187
|
+
Rt as TableActionBarLeading,
|
|
188
|
+
Ht as TableActionBarTrailing,
|
|
189
|
+
wt as TableBody,
|
|
190
|
+
At as TableCell,
|
|
191
|
+
Pt as TableCellContent,
|
|
192
|
+
yt as TableCol,
|
|
193
|
+
Nt as TableColGroup,
|
|
194
|
+
kt as TableGroupHeaderRow,
|
|
195
|
+
Gt as TableHeader,
|
|
196
|
+
zt as TableHeaderCell,
|
|
197
|
+
Et as TableHeaderRow,
|
|
198
|
+
Ft as TableInfoIcon,
|
|
199
|
+
Ot as TableLoadingRow,
|
|
200
|
+
Vt as TableRoot,
|
|
201
|
+
_t as TableRow,
|
|
202
|
+
jt as TableSortButton,
|
|
203
|
+
Jt as Tag,
|
|
204
|
+
Qt as TextInput,
|
|
205
|
+
xr as ThemeProvider,
|
|
206
|
+
Wt as Tile,
|
|
207
|
+
tr as TileButton,
|
|
208
|
+
Xt as TileContent,
|
|
209
|
+
Yt as TileDescription,
|
|
210
|
+
Zt as TileSecondaryAction,
|
|
211
|
+
$t as TileTitle,
|
|
212
|
+
er as TileTrailingContent,
|
|
213
|
+
ar as Tooltip,
|
|
214
|
+
nr as TooltipContent,
|
|
215
|
+
ir as TooltipProvider,
|
|
216
|
+
pr as TooltipTrigger,
|
|
217
|
+
mr as Trend,
|
|
218
|
+
fo as createMenuRadioGroup,
|
|
219
|
+
ho as createPopoverHandle,
|
|
220
|
+
Oo as createSegmentedControl,
|
|
221
|
+
$o as createSelect,
|
|
222
|
+
it as createSideBar,
|
|
216
223
|
ce as dotIconSizeMap,
|
|
224
|
+
Be as getDotIndicatorProps,
|
|
217
225
|
Se as mediaImageDotIconSizeMap,
|
|
218
|
-
|
|
226
|
+
De as mediaImageDotSizeMap,
|
|
219
227
|
ue as spotDotIconSizeMap,
|
|
220
|
-
|
|
228
|
+
Me as spotDotSizeMap,
|
|
221
229
|
q as useLumenDataTable,
|
|
222
|
-
|
|
230
|
+
Tr as useTheme
|
|
223
231
|
};
|
|
@@ -11,9 +11,6 @@ import { AvatarProps } from './types';
|
|
|
11
11
|
* import { Avatar } from '@ledgerhq/lumen-ui-react';
|
|
12
12
|
*
|
|
13
13
|
* <Avatar src="https://example.com/photo.jpg" size="md" />
|
|
14
|
-
*
|
|
15
|
-
* // With notification indicator
|
|
16
|
-
* <Avatar src="https://example.com/photo.jpg" showNotification />
|
|
17
14
|
*/
|
|
18
|
-
export declare const Avatar: ({ ref, className, src, alt, appearance, size, imgLoading,
|
|
15
|
+
export declare const Avatar: ({ ref, className, src, alt, appearance, size, imgLoading, ...props }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
16
|
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Avatar/Avatar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAiC3C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,GAAI,sEASpB,WAAW,4CAwCb,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cva as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { useCommonTranslation as
|
|
5
|
-
import { User as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
root: h(
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cva as u } from "class-variance-authority";
|
|
3
|
+
import { useState as v, useEffect as b } from "react";
|
|
4
|
+
import { useCommonTranslation as g } from "../../../i18n/useCommonTranslation.js";
|
|
5
|
+
import { User as z } from "../../Symbols/Icons/User.js";
|
|
6
|
+
const x = {
|
|
7
|
+
root: u(
|
|
9
8
|
"relative inline-flex items-center justify-center rounded-full transition-colors",
|
|
10
9
|
{
|
|
11
10
|
variants: {
|
|
@@ -26,60 +25,54 @@ const k = {
|
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
27
|
)
|
|
29
|
-
},
|
|
28
|
+
}, h = {
|
|
30
29
|
sm: 16,
|
|
31
30
|
md: 24,
|
|
32
31
|
lg: 32,
|
|
33
32
|
xl: 40
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
size: a = "md",
|
|
44
|
-
imgLoading: f,
|
|
45
|
-
showNotification: p = !1,
|
|
46
|
-
...u
|
|
33
|
+
}, y = ({
|
|
34
|
+
ref: o,
|
|
35
|
+
className: n,
|
|
36
|
+
src: a,
|
|
37
|
+
alt: s,
|
|
38
|
+
appearance: l = "transparent",
|
|
39
|
+
size: r = "md",
|
|
40
|
+
imgLoading: i,
|
|
41
|
+
...m
|
|
47
42
|
}) => {
|
|
48
|
-
const { t:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}, [
|
|
52
|
-
const i = /* @__PURE__ */ t(
|
|
43
|
+
const { t: c } = g(), [d, t] = v(!1), p = !a || d, f = s || c("components.avatar.defaultAriaLabel");
|
|
44
|
+
return b(() => {
|
|
45
|
+
t(!1);
|
|
46
|
+
}, [a]), /* @__PURE__ */ e(
|
|
53
47
|
"div",
|
|
54
48
|
{
|
|
55
|
-
ref:
|
|
56
|
-
className:
|
|
49
|
+
ref: o,
|
|
50
|
+
className: x.root({ appearance: l, size: r, className: n }),
|
|
57
51
|
role: "img",
|
|
58
|
-
"aria-label":
|
|
59
|
-
...
|
|
60
|
-
children:
|
|
61
|
-
|
|
52
|
+
"aria-label": f,
|
|
53
|
+
...m,
|
|
54
|
+
children: p ? /* @__PURE__ */ e(
|
|
55
|
+
z,
|
|
62
56
|
{
|
|
63
57
|
className: "text-base",
|
|
64
|
-
size:
|
|
58
|
+
size: h[r],
|
|
65
59
|
"aria-label": "Fallback Icon",
|
|
66
60
|
"aria-hidden": "true"
|
|
67
61
|
}
|
|
68
|
-
) : /* @__PURE__ */
|
|
62
|
+
) : /* @__PURE__ */ e(
|
|
69
63
|
"img",
|
|
70
64
|
{
|
|
71
|
-
src:
|
|
65
|
+
src: a,
|
|
72
66
|
alt: "",
|
|
73
|
-
loading:
|
|
74
|
-
onError: () =>
|
|
67
|
+
loading: i,
|
|
68
|
+
onError: () => t(!0),
|
|
75
69
|
className: "size-full overflow-hidden rounded-full object-cover",
|
|
76
70
|
"aria-hidden": "true"
|
|
77
71
|
}
|
|
78
72
|
)
|
|
79
73
|
}
|
|
80
74
|
);
|
|
81
|
-
return s ? /* @__PURE__ */ t(j, { size: E[a], appearance: "red", children: i }) : i;
|
|
82
75
|
};
|
|
83
76
|
export {
|
|
84
|
-
|
|
77
|
+
y as Avatar
|
|
85
78
|
};
|
|
@@ -22,12 +22,6 @@ export type AvatarProps = {
|
|
|
22
22
|
* @default md
|
|
23
23
|
*/
|
|
24
24
|
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
25
|
-
/**
|
|
26
|
-
* Whether to show the notifications indicator.
|
|
27
|
-
* @optional
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
showNotification?: boolean;
|
|
31
25
|
/**
|
|
32
26
|
* Additional custom CSS classes to apply. Do not use this prop to modify the component's core appearance.
|
|
33
27
|
* @optional
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Avatar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,MAAM,MAAM,WAAW,GAAG;IACxB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;IAEpC;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Avatar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,MAAM,MAAM,WAAW,GAAG;IACxB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;IAEpC;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC/B,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -18,5 +18,5 @@ import { BaseInputProps } from './types';
|
|
|
18
18
|
*
|
|
19
19
|
* @internal
|
|
20
20
|
*/
|
|
21
|
-
export declare const BaseInput: ({ ref, className, containerClassName, inputClassName, labelClassName, label, id, disabled: disabledProp, helperText, status, suffix, prefix, onClear, hideClearButton, "aria-invalid": ariaInvalidProp, onChange: onChangeProp, placeholder: placeholderProp, ...props }: BaseInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const BaseInput: ({ ref, className, containerClassName, inputClassName, labelClassName, label, id, disabled: disabledProp, helperText, maxCount, status, suffix, prefix, onClear, hideClearButton, "aria-invalid": ariaInvalidProp, onChange: onChangeProp, placeholder: placeholderProp, ...props }: BaseInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
//# sourceMappingURL=BaseInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseInput.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/BaseInput/BaseInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseInput.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/BaseInput/BaseInput.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAGV,cAAc,EACf,MAAM,SAAS,CAAC;AAuEjB;;;;;;;;;;;;;;;;;;GAkBG;AAEH,eAAO,MAAM,SAAS,GAAI,oRAoBvB,cAAc,4CA+KhB,CAAC"}
|