@ledgerhq/lumen-ui-react 0.1.35 → 0.1.36
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/index.js +108 -109
- package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts +1 -1
- package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
- package/dist/lib/Components/AmountDisplay/AmountDisplay.js +117 -78
- package/dist/lib/Components/AmountDisplay/index.d.ts +1 -1
- package/dist/lib/Components/AmountDisplay/index.d.ts.map +1 -1
- package/dist/lib/Components/AmountDisplay/types.d.ts +16 -3
- package/dist/lib/Components/AmountDisplay/types.d.ts.map +1 -1
- package/dist/lib/Components/DotIcon/DotIcon.d.ts +1 -1
- package/dist/lib/Components/DotIcon/DotIcon.d.ts.map +1 -1
- package/dist/lib/Components/DotIcon/DotIcon.js +48 -37
- package/dist/lib/Components/DotIcon/types.d.ts +6 -0
- package/dist/lib/Components/DotIcon/types.d.ts.map +1 -1
- package/dist/lib/Components/DotSymbol/DotSymbol.d.ts +1 -1
- package/dist/lib/Components/DotSymbol/DotSymbol.d.ts.map +1 -1
- package/dist/lib/Components/DotSymbol/DotSymbol.js +42 -31
- package/dist/lib/Components/DotSymbol/types.d.ts +6 -0
- package/dist/lib/Components/DotSymbol/types.d.ts.map +1 -1
- package/dist/lib/Components/MediaButton/MediaButton.d.ts +3 -3
- package/dist/lib/Components/MediaButton/MediaButton.d.ts.map +1 -1
- package/dist/lib/Components/MediaButton/MediaButton.js +42 -40
- package/dist/lib/Components/MediaButton/types.d.ts +5 -5
- package/dist/lib/Components/MediaButton/types.d.ts.map +1 -1
- package/dist/lib/Components/MediaImage/MediaImage.d.ts +1 -1
- package/dist/lib/Components/MediaImage/MediaImage.d.ts.map +1 -1
- package/dist/lib/Components/MediaImage/MediaImage.js +40 -29
- package/dist/lib/Components/MediaImage/types.d.ts +6 -0
- package/dist/lib/Components/MediaImage/types.d.ts.map +1 -1
- package/dist/lib/Components/Menu/Menu.d.ts +11 -16
- package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
- package/dist/lib/Components/Menu/Menu.js +186 -125
- package/dist/lib/Components/Menu/types.d.ts +50 -145
- package/dist/lib/Components/Menu/types.d.ts.map +1 -1
- package/dist/lib/Components/NavBar/CoinCapsule.d.ts +2 -2
- package/dist/lib/Components/NavBar/CoinCapsule.d.ts.map +1 -1
- package/dist/lib/Components/NavBar/CoinCapsule.js +1 -1
- package/dist/lib/Components/NavBar/NavBar.d.ts +4 -4
- package/dist/lib/Components/NavBar/NavBar.d.ts.map +1 -1
- package/dist/lib/Components/NavBar/NavBar.js +10 -2
- package/dist/lib/Components/NavBar/types.d.ts +2 -2
- package/dist/lib/Components/NavBar/types.d.ts.map +1 -1
- package/dist/lib/Components/Popover/Popover.d.ts +2 -2
- package/dist/lib/Components/Popover/types.d.ts +6 -3
- package/dist/lib/Components/Popover/types.d.ts.map +1 -1
- package/dist/node_modules/@base-ui/react/esm/composite/item/CompositeItem.js +30 -0
- package/dist/node_modules/@base-ui/react/esm/composite/item/useCompositeItem.js +34 -0
- package/dist/node_modules/@base-ui/react/esm/context-menu/root/ContextMenuRootContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingFocusManager.js +10 -10
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFocus.js +97 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHoverFloatingInteraction.js +10 -10
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHoverReferenceInteraction.js +2 -2
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/element.js +31 -20
- package/dist/node_modules/@base-ui/react/esm/menu/checkbox-item/MenuCheckboxItem.js +78 -0
- package/dist/node_modules/@base-ui/react/esm/menu/checkbox-item/MenuCheckboxItemContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/menu/checkbox-item/MenuCheckboxItemDataAttributes.js +6 -0
- package/dist/node_modules/@base-ui/react/esm/menu/checkbox-item-indicator/MenuCheckboxItemIndicator.js +44 -0
- package/dist/node_modules/@base-ui/react/esm/menu/group/MenuGroup.js +28 -0
- package/dist/node_modules/@base-ui/react/esm/menu/group/MenuGroupContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/menu/group-label/MenuGroupLabel.js +29 -0
- package/dist/node_modules/@base-ui/react/esm/menu/item/MenuItem.js +47 -0
- package/dist/node_modules/@base-ui/react/esm/menu/item/useMenuItem.js +50 -0
- package/dist/node_modules/@base-ui/react/esm/menu/item/useMenuItemCommonProps.js +49 -0
- package/dist/node_modules/@base-ui/react/esm/menu/popup/MenuPopup.js +89 -0
- package/dist/node_modules/@base-ui/react/esm/menu/portal/MenuPortal.js +24 -0
- package/dist/node_modules/@base-ui/react/esm/menu/portal/MenuPortalContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/menu/positioner/MenuPositioner.js +174 -0
- package/dist/node_modules/@base-ui/react/esm/menu/positioner/MenuPositionerContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/menu/radio-group/MenuRadioGroup.js +45 -0
- package/dist/node_modules/@base-ui/react/esm/menu/radio-group/MenuRadioGroupContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/menu/radio-item/MenuRadioItem.js +75 -0
- package/dist/node_modules/@base-ui/react/esm/menu/radio-item/MenuRadioItemContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/menu/radio-item-indicator/MenuRadioItemIndicator.js +44 -0
- package/dist/node_modules/@base-ui/react/esm/menu/root/MenuRoot.js +271 -0
- package/dist/node_modules/@base-ui/react/esm/menu/root/MenuRootContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/menu/store/MenuStore.js +109 -0
- package/dist/node_modules/@base-ui/react/esm/menu/submenu-root/MenuSubmenuRoot.js +21 -0
- package/dist/node_modules/@base-ui/react/esm/menu/submenu-root/MenuSubmenuRootContext.js +10 -0
- package/dist/node_modules/@base-ui/react/esm/menu/submenu-trigger/MenuSubmenuTrigger.js +101 -0
- package/dist/node_modules/@base-ui/react/esm/menu/trigger/MenuTrigger.js +207 -0
- package/dist/node_modules/@base-ui/react/esm/menu/utils/findRootOwnerId.js +10 -0
- package/dist/node_modules/@base-ui/react/esm/menu/utils/stateAttributesMapping.js +15 -0
- package/dist/node_modules/@base-ui/react/esm/menubar/MenubarContext.js +10 -0
- package/dist/node_modules/@base-ui/react/esm/popover/root/PopoverRoot.js +11 -11
- package/dist/node_modules/@base-ui/react/esm/popover/store/PopoverStore.js +7 -7
- package/dist/node_modules/@base-ui/react/esm/popover/trigger/PopoverTrigger.js +11 -11
- package/dist/node_modules/@base-ui/react/esm/utils/constants.js +11 -10
- package/dist/node_modules/@base-ui/react/esm/utils/reason-parts.js +11 -8
- package/dist/node_modules/@base-ui/react/esm/utils/useMixedToggleClickHandler.js +25 -0
- package/dist/node_modules/@base-ui/utils/esm/detectBrowser.js +7 -8
- package/dist/node_modules/@base-ui/utils/esm/fastHooks.js +43 -0
- package/dist/node_modules/@base-ui/utils/esm/store/useStore.js +54 -13
- package/dist/package.json +2 -3
- package/package.json +4 -5
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { Button as C } from "./lib/Components/Button/Button.js";
|
|
|
9
9
|
import { BaseButton as g } from "./lib/Components/Button/BaseButton.js";
|
|
10
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 w } from "./lib/Components/Card/Card.js";
|
|
11
11
|
import { CardButton as y } from "./lib/Components/CardButton/CardButton.js";
|
|
12
|
-
import { Checkbox as
|
|
12
|
+
import { Checkbox as N } from "./lib/Components/Checkbox/Checkbox.js";
|
|
13
13
|
import { ContentBanner as k, ContentBannerContent as z, ContentBannerDescription as G, 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";
|
|
@@ -25,35 +25,35 @@ import { DotSymbol as Be, mediaImageDotSizeMap as be, spotDotSizeMap as se } fro
|
|
|
25
25
|
import { IconButton as Me } from "./lib/Components/IconButton/IconButton.js";
|
|
26
26
|
import { InteractiveIcon as he } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
|
|
27
27
|
import { Link as Re } from "./lib/Components/Link/Link.js";
|
|
28
|
-
import { ListItem as Ae, ListItemContent as ye, ListItemContentRow as He, ListItemDescription as
|
|
28
|
+
import { ListItem as Ae, ListItemContent as ye, ListItemContentRow as He, ListItemDescription as Ne, ListItemLeading as Pe, ListItemTitle as ke, ListItemTrailing as ze } from "./lib/Components/ListItem/ListItem.js";
|
|
29
29
|
import { MediaBanner as Ee, MediaBannerDescription as Fe, MediaBannerTitle as Oe } from "./lib/Components/MediaBanner/MediaBanner.js";
|
|
30
30
|
import { MediaButton as _e } from "./lib/Components/MediaButton/MediaButton.js";
|
|
31
31
|
import { MediaCard as qe, MediaCardTitle as Je } from "./lib/Components/MediaCard/MediaCard.js";
|
|
32
32
|
import { MediaImage as Qe } from "./lib/Components/MediaImage/MediaImage.js";
|
|
33
33
|
import { MediaTag as We } from "./lib/Components/MediaTag/MediaTag.js";
|
|
34
|
-
import { Menu as Ye, MenuCheckboxItem as Ze, MenuContent as $e, MenuGroup as eo, MenuItem as oo, MenuLabel as to,
|
|
35
|
-
import { NavBar as
|
|
36
|
-
import { Popover as
|
|
37
|
-
import { PageIndicator as
|
|
38
|
-
import { SearchInput as
|
|
39
|
-
import { SegmentedControl as
|
|
40
|
-
import { Select as
|
|
41
|
-
import { SideBar as
|
|
42
|
-
import { Skeleton as
|
|
43
|
-
import { Spinner as
|
|
44
|
-
import { Spot as
|
|
45
|
-
import { Stepper as
|
|
46
|
-
import { Subheader as
|
|
47
|
-
import { Switch as
|
|
48
|
-
import { Table as
|
|
49
|
-
import { Tag as
|
|
34
|
+
import { Menu as Ye, MenuCheckboxItem as Ze, MenuContent as $e, MenuGroup as eo, MenuItem as oo, MenuLabel as to, MenuRadioGroup as ro, MenuRadioItem as ao, MenuSeparator as no, MenuSub as io, MenuSubContent as po, MenuSubTrigger as mo, MenuTrigger as lo } from "./lib/Components/Menu/Menu.js";
|
|
35
|
+
import { NavBar as To, NavBarBackButton as fo, NavBarCoinCapsule as uo, NavBarDescription as So, NavBarLeading as Co, NavBarTitle as co, NavBarTrailing as go } from "./lib/Components/NavBar/NavBar.js";
|
|
36
|
+
import { Popover as Bo, PopoverContent as bo, PopoverTrigger as so, createPopoverHandle as Do } from "./lib/Components/Popover/Popover.js";
|
|
37
|
+
import { PageIndicator as Lo } from "./lib/Components/PageIndicator/PageIndicator.js";
|
|
38
|
+
import { SearchInput as vo } from "./lib/Components/SearchInput/SearchInput.js";
|
|
39
|
+
import { SegmentedControl as wo, SegmentedControlButton as Ao } from "./lib/Components/SegmentedControl/SegmentedControl.js";
|
|
40
|
+
import { Select as Ho, SelectContent as No, SelectEmptyState as Po, SelectItem as ko, SelectItemContent as zo, SelectItemDescription as Go, SelectItemText as Eo, SelectList as Fo, SelectSearch as Oo, SelectSeparator as Vo, SelectTrigger as _o } from "./lib/Components/Select/Select.js";
|
|
41
|
+
import { SideBar as qo, SideBarCollapseToggle as Jo, SideBarItem as Ko, SideBarLeading as Qo, SideBarTrailing as Uo } from "./lib/Components/SideBar/SideBar.js";
|
|
42
|
+
import { Skeleton as Xo } from "./lib/Components/Skeleton/Skeleton.js";
|
|
43
|
+
import { Spinner as Zo } from "./lib/Components/Spinner/Spinner.js";
|
|
44
|
+
import { Spot as et } from "./lib/Components/Spot/Spot.js";
|
|
45
|
+
import { Stepper as tt } from "./lib/Components/Stepper/Stepper.js";
|
|
46
|
+
import { Subheader as at, SubheaderCount as nt, SubheaderDescription as it, SubheaderInfo as pt, SubheaderRow as mt, SubheaderShowMore as lt, SubheaderTitle as dt } from "./lib/Components/Subheader/Subheader.js";
|
|
47
|
+
import { Switch as Tt } from "./lib/Components/Switch/Switch.js";
|
|
48
|
+
import { Table as ut, TableActionBar as St, TableActionBarLeading as Ct, TableActionBarTrailing as ct, TableBody as gt, TableCell as It, TableCellContent as Bt, TableGroupHeaderRow as bt, TableHeader as st, TableHeaderCell as Dt, TableHeaderRow as Mt, TableInfoIcon as Lt, TableLoadingRow as ht, TableRoot as vt, TableRow as Rt, TableSortButton as wt } from "./lib/Components/Table/Table.js";
|
|
49
|
+
import { Tag as yt } from "./lib/Components/Tag/Tag.js";
|
|
50
50
|
import { TextInput as Nt } from "./lib/Components/TextInput/TextInput.js";
|
|
51
|
-
import { Tile as
|
|
52
|
-
import { TileButton as
|
|
53
|
-
import { Tooltip as
|
|
54
|
-
import { Trend as
|
|
55
|
-
import { ThemeProvider as
|
|
56
|
-
import { COLOR_SCHEMES as
|
|
51
|
+
import { Tile as kt, TileContent as zt, TileDescription as Gt, TileSecondaryAction as Et, TileTitle as Ft, TileTrailingContent as Ot } from "./lib/Components/Tile/Tile.js";
|
|
52
|
+
import { TileButton as _t } from "./lib/Components/TileButton/TileButton.js";
|
|
53
|
+
import { Tooltip as qt, TooltipContent as Jt, TooltipProvider as Kt, TooltipTrigger as Qt } from "./lib/Components/Tooltip/Tooltip.js";
|
|
54
|
+
import { Trend as Wt } from "./lib/Components/Trend/Trend.js";
|
|
55
|
+
import { ThemeProvider as Yt, useTheme as Zt } from "./lib/Components/ThemeProvider/ThemeProvider.js";
|
|
56
|
+
import { COLOR_SCHEMES as er } from "./lib/Components/ThemeProvider/ThemeProvider.types.js";
|
|
57
57
|
export {
|
|
58
58
|
a as AddressInput,
|
|
59
59
|
m as AmountDisplay,
|
|
@@ -63,7 +63,7 @@ export {
|
|
|
63
63
|
g as BaseButton,
|
|
64
64
|
u as BaseInput,
|
|
65
65
|
C as Button,
|
|
66
|
-
|
|
66
|
+
er as COLOR_SCHEMES,
|
|
67
67
|
B as Card,
|
|
68
68
|
y as CardButton,
|
|
69
69
|
b as CardContent,
|
|
@@ -75,7 +75,7 @@ export {
|
|
|
75
75
|
v as CardHeader,
|
|
76
76
|
R as CardLeading,
|
|
77
77
|
w as CardTrailing,
|
|
78
|
-
|
|
78
|
+
N as Checkbox,
|
|
79
79
|
k as ContentBanner,
|
|
80
80
|
z as ContentBannerContent,
|
|
81
81
|
G as ContentBannerDescription,
|
|
@@ -108,8 +108,8 @@ export {
|
|
|
108
108
|
Ae as ListItem,
|
|
109
109
|
ye as ListItemContent,
|
|
110
110
|
He as ListItemContentRow,
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
Ne as ListItemDescription,
|
|
112
|
+
Pe as ListItemLeading,
|
|
113
113
|
ke as ListItemTitle,
|
|
114
114
|
ze as ListItemTrailing,
|
|
115
115
|
Ee as MediaBanner,
|
|
@@ -126,93 +126,92 @@ export {
|
|
|
126
126
|
eo as MenuGroup,
|
|
127
127
|
oo as MenuItem,
|
|
128
128
|
to as MenuLabel,
|
|
129
|
-
ro as
|
|
130
|
-
ao as
|
|
131
|
-
no as
|
|
132
|
-
io as
|
|
133
|
-
po as
|
|
134
|
-
mo as
|
|
135
|
-
lo as
|
|
136
|
-
|
|
137
|
-
fo as
|
|
138
|
-
uo as
|
|
139
|
-
So as
|
|
140
|
-
Co as
|
|
141
|
-
co as
|
|
142
|
-
go as
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
bo as
|
|
146
|
-
so as
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
Ao as
|
|
150
|
-
|
|
151
|
-
Po as Select,
|
|
129
|
+
ro as MenuRadioGroup,
|
|
130
|
+
ao as MenuRadioItem,
|
|
131
|
+
no as MenuSeparator,
|
|
132
|
+
io as MenuSub,
|
|
133
|
+
po as MenuSubContent,
|
|
134
|
+
mo as MenuSubTrigger,
|
|
135
|
+
lo as MenuTrigger,
|
|
136
|
+
To as NavBar,
|
|
137
|
+
fo as NavBarBackButton,
|
|
138
|
+
uo as NavBarCoinCapsule,
|
|
139
|
+
So as NavBarDescription,
|
|
140
|
+
Co as NavBarLeading,
|
|
141
|
+
co as NavBarTitle,
|
|
142
|
+
go as NavBarTrailing,
|
|
143
|
+
Lo as PageIndicator,
|
|
144
|
+
Bo as Popover,
|
|
145
|
+
bo as PopoverContent,
|
|
146
|
+
so as PopoverTrigger,
|
|
147
|
+
vo as SearchInput,
|
|
148
|
+
wo as SegmentedControl,
|
|
149
|
+
Ao as SegmentedControlButton,
|
|
150
|
+
Ho as Select,
|
|
152
151
|
No as SelectContent,
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
152
|
+
Po as SelectEmptyState,
|
|
153
|
+
ko as SelectItem,
|
|
154
|
+
zo as SelectItemContent,
|
|
155
|
+
Go as SelectItemDescription,
|
|
156
|
+
Eo as SelectItemText,
|
|
157
|
+
Fo as SelectList,
|
|
158
|
+
Oo as SelectSearch,
|
|
159
|
+
Vo as SelectSeparator,
|
|
160
|
+
_o as SelectTrigger,
|
|
161
|
+
qo as SideBar,
|
|
162
|
+
Jo as SideBarCollapseToggle,
|
|
163
|
+
Ko as SideBarItem,
|
|
164
|
+
Qo as SideBarLeading,
|
|
165
|
+
Uo as SideBarTrailing,
|
|
166
|
+
Xo as Skeleton,
|
|
167
|
+
Zo as Spinner,
|
|
168
|
+
et as Spot,
|
|
169
|
+
tt as Stepper,
|
|
170
|
+
at as Subheader,
|
|
171
|
+
nt as SubheaderCount,
|
|
172
|
+
it as SubheaderDescription,
|
|
173
|
+
pt as SubheaderInfo,
|
|
174
|
+
mt as SubheaderRow,
|
|
175
|
+
lt as SubheaderShowMore,
|
|
176
|
+
dt as SubheaderTitle,
|
|
177
|
+
Tt as Switch,
|
|
178
|
+
ut as Table,
|
|
179
|
+
St as TableActionBar,
|
|
180
|
+
Ct as TableActionBarLeading,
|
|
181
|
+
ct as TableActionBarTrailing,
|
|
182
|
+
gt as TableBody,
|
|
183
|
+
It as TableCell,
|
|
184
|
+
Bt as TableCellContent,
|
|
185
|
+
bt as TableGroupHeaderRow,
|
|
186
|
+
st as TableHeader,
|
|
187
|
+
Dt as TableHeaderCell,
|
|
188
|
+
Mt as TableHeaderRow,
|
|
189
|
+
Lt as TableInfoIcon,
|
|
190
|
+
ht as TableLoadingRow,
|
|
191
|
+
vt as TableRoot,
|
|
192
|
+
Rt as TableRow,
|
|
193
|
+
wt as TableSortButton,
|
|
194
|
+
yt as Tag,
|
|
196
195
|
Nt as TextInput,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
196
|
+
Yt as ThemeProvider,
|
|
197
|
+
kt as Tile,
|
|
198
|
+
_t as TileButton,
|
|
199
|
+
zt as TileContent,
|
|
200
|
+
Gt as TileDescription,
|
|
201
|
+
Et as TileSecondaryAction,
|
|
202
|
+
Ft as TileTitle,
|
|
203
|
+
Ot as TileTrailingContent,
|
|
204
|
+
qt as Tooltip,
|
|
205
|
+
Jt as TooltipContent,
|
|
206
|
+
Kt as TooltipProvider,
|
|
207
|
+
Qt as TooltipTrigger,
|
|
208
|
+
Wt as Trend,
|
|
209
|
+
Do as createPopoverHandle,
|
|
211
210
|
ue as dotIconSizeMap,
|
|
212
211
|
Se as mediaImageDotIconSizeMap,
|
|
213
212
|
be as mediaImageDotSizeMap,
|
|
214
213
|
Ce as spotDotIconSizeMap,
|
|
215
214
|
se as spotDotSizeMap,
|
|
216
215
|
q as useLumenDataTable,
|
|
217
|
-
|
|
216
|
+
Zt as useTheme
|
|
218
217
|
};
|
|
@@ -32,5 +32,5 @@ import { AmountDisplayProps } from './types';
|
|
|
32
32
|
* <AmountDisplay value={1234.56} formatter={usdFormatter} hidden={true} />
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
|
-
export declare
|
|
35
|
+
export declare function AmountDisplay({ value, formatter, hidden, loading, animate, size, className, ...props }: AmountDisplayProps): import("react/jsx-runtime").JSX.Element;
|
|
36
36
|
//# sourceMappingURL=AmountDisplay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmountDisplay.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/AmountDisplay/AmountDisplay.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,kBAAkB,
|
|
1
|
+
{"version":3,"file":"AmountDisplay.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/AmountDisplay/AmountDisplay.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,kBAAkB,EAMnB,MAAM,SAAS,CAAC;AAkHjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,SAAS,EACT,MAAc,EACd,OAAe,EACf,OAAc,EACd,IAAW,EACX,SAAS,EACT,GAAG,KAAK,EACT,EAAE,kBAAkB,2CA6DpB"}
|
|
@@ -1,109 +1,148 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { useSplitText as
|
|
3
|
-
import { memo as
|
|
2
|
+
import { useSplitText as y, buildAriaLabel as w, cn as o } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { memo as u } from "react";
|
|
4
4
|
import { DIGITS as D } from "./types.js";
|
|
5
|
-
import { useCommonTranslation as
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
5
|
+
import { useCommonTranslation as S } from "../../../i18n/useCommonTranslation.js";
|
|
6
|
+
const m = {
|
|
7
|
+
"heading-1-semi-bold": {
|
|
8
|
+
0: 25,
|
|
9
|
+
1: 15.5,
|
|
10
|
+
2: 23.5,
|
|
11
|
+
3: 24.5,
|
|
12
|
+
4: 25.5,
|
|
13
|
+
5: 23.5,
|
|
14
|
+
6: 25,
|
|
15
|
+
7: 22,
|
|
16
|
+
8: 24.5,
|
|
17
|
+
9: 24.5
|
|
18
|
+
},
|
|
19
|
+
"heading-2-semi-bold": {
|
|
20
|
+
0: 17.5,
|
|
21
|
+
1: 11,
|
|
22
|
+
2: 16.5,
|
|
23
|
+
3: 17,
|
|
24
|
+
4: 18,
|
|
25
|
+
5: 16,
|
|
26
|
+
6: 17.5,
|
|
27
|
+
7: 15,
|
|
28
|
+
8: 17,
|
|
29
|
+
9: 17
|
|
30
|
+
},
|
|
31
|
+
"heading-4-semi-bold": {
|
|
32
|
+
0: 13,
|
|
33
|
+
1: 8.5,
|
|
34
|
+
2: 12.5,
|
|
35
|
+
3: 12.5,
|
|
36
|
+
4: 13,
|
|
37
|
+
5: 12,
|
|
38
|
+
6: 12.5,
|
|
39
|
+
7: 11.5,
|
|
40
|
+
8: 12.5,
|
|
41
|
+
9: 12.5
|
|
42
|
+
}
|
|
43
|
+
}, v = {
|
|
44
|
+
md: {
|
|
45
|
+
integer: {
|
|
46
|
+
className: "heading-1-semi-bold",
|
|
47
|
+
widths: m["heading-1-semi-bold"]
|
|
48
|
+
},
|
|
49
|
+
decimal: {
|
|
50
|
+
className: "heading-2-semi-bold",
|
|
51
|
+
widths: m["heading-2-semi-bold"]
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
sm: {
|
|
55
|
+
integer: {
|
|
56
|
+
className: "heading-2-semi-bold",
|
|
57
|
+
widths: m["heading-2-semi-bold"]
|
|
58
|
+
},
|
|
59
|
+
decimal: {
|
|
60
|
+
className: "heading-4-semi-bold",
|
|
61
|
+
widths: m["heading-4-semi-bold"]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}, b = u(({ value: a, animate: l, widths: s }) => {
|
|
65
|
+
const t = s[a];
|
|
30
66
|
return /* @__PURE__ */ c(
|
|
31
67
|
"div",
|
|
32
68
|
{
|
|
33
69
|
className: "relative overflow-hidden mask-fade-y transition-[width] duration-600",
|
|
34
|
-
style: { width:
|
|
70
|
+
style: { width: t + "px" },
|
|
35
71
|
children: [
|
|
36
72
|
/* @__PURE__ */ e("span", { className: "invisible", children: "0" }),
|
|
37
73
|
/* @__PURE__ */ e(
|
|
38
74
|
"span",
|
|
39
75
|
{
|
|
40
|
-
className:
|
|
76
|
+
className: o(
|
|
41
77
|
"absolute inset-x-0 top-0 flex flex-col items-center justify-center",
|
|
42
78
|
l && "transition-transform duration-600 ease-in-out"
|
|
43
79
|
),
|
|
44
80
|
style: {
|
|
45
81
|
transform: `translateY(-${a * 10}%)`
|
|
46
82
|
},
|
|
47
|
-
children: D.map((
|
|
83
|
+
children: D.map((n, r) => /* @__PURE__ */ e("span", { inert: n !== a, children: n }, r))
|
|
48
84
|
}
|
|
49
85
|
)
|
|
50
86
|
]
|
|
51
87
|
}
|
|
52
88
|
);
|
|
53
89
|
});
|
|
54
|
-
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
90
|
+
b.displayName = "DigitStrip";
|
|
91
|
+
const h = u(
|
|
92
|
+
({ items: a, widths: l, animate: s }) => a.map((t, n) => {
|
|
93
|
+
const r = a.length - n;
|
|
94
|
+
return t.type === "separator" ? /* @__PURE__ */ e("span", { children: t.value }, r) : /* @__PURE__ */ e(
|
|
95
|
+
b,
|
|
96
|
+
{
|
|
97
|
+
value: Number(t.value),
|
|
98
|
+
animate: s,
|
|
99
|
+
widths: l
|
|
100
|
+
},
|
|
101
|
+
r
|
|
102
|
+
);
|
|
103
|
+
})
|
|
104
|
+
);
|
|
105
|
+
h.displayName = "DigitStripList";
|
|
106
|
+
function j({
|
|
69
107
|
value: a,
|
|
70
108
|
formatter: l,
|
|
71
|
-
hidden:
|
|
72
|
-
loading:
|
|
73
|
-
animate:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
109
|
+
hidden: s = !1,
|
|
110
|
+
loading: t = !1,
|
|
111
|
+
animate: n = !0,
|
|
112
|
+
size: r = "md",
|
|
113
|
+
className: f,
|
|
114
|
+
...g
|
|
115
|
+
}) {
|
|
116
|
+
const i = l(a), p = y(i), { t: N } = S(), x = w(
|
|
79
117
|
i,
|
|
80
|
-
|
|
81
|
-
|
|
118
|
+
s,
|
|
119
|
+
N("components.amountDisplay.amountHiddenAriaLabel")
|
|
120
|
+
), d = v[r];
|
|
82
121
|
return /* @__PURE__ */ e(
|
|
83
122
|
"div",
|
|
84
123
|
{
|
|
85
|
-
className:
|
|
86
|
-
|
|
124
|
+
className: o(
|
|
125
|
+
t && "animate-pulse",
|
|
87
126
|
"relative inline-flex",
|
|
88
|
-
|
|
127
|
+
f
|
|
89
128
|
),
|
|
90
|
-
"aria-label":
|
|
91
|
-
"aria-busy":
|
|
92
|
-
...
|
|
129
|
+
"aria-label": x,
|
|
130
|
+
"aria-busy": t,
|
|
131
|
+
...g,
|
|
93
132
|
children: /* @__PURE__ */ c("div", { className: "flex items-baseline", children: [
|
|
94
133
|
/* @__PURE__ */ c(
|
|
95
134
|
"span",
|
|
96
135
|
{
|
|
97
|
-
className: "inline-flex
|
|
136
|
+
className: o("inline-flex text-base", d.integer.className),
|
|
98
137
|
"aria-hidden": "true",
|
|
99
138
|
children: [
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
139
|
+
i.currencyPosition === "start" && /* @__PURE__ */ e("span", { className: "me-4", children: i.currencyText }),
|
|
140
|
+
s ? /* @__PURE__ */ e("span", { children: "••••" }) : /* @__PURE__ */ e(
|
|
141
|
+
h,
|
|
103
142
|
{
|
|
104
|
-
items:
|
|
105
|
-
animate:
|
|
106
|
-
|
|
143
|
+
items: p.integerPart,
|
|
144
|
+
animate: n,
|
|
145
|
+
widths: d.integer.widths
|
|
107
146
|
}
|
|
108
147
|
)
|
|
109
148
|
]
|
|
@@ -112,26 +151,26 @@ const w = ({
|
|
|
112
151
|
/* @__PURE__ */ c(
|
|
113
152
|
"span",
|
|
114
153
|
{
|
|
115
|
-
className: "inline-flex
|
|
154
|
+
className: o("inline-flex text-muted", d.decimal.className),
|
|
116
155
|
"aria-hidden": "true",
|
|
117
156
|
children: [
|
|
118
|
-
!
|
|
119
|
-
|
|
120
|
-
|
|
157
|
+
!s && i.decimalPart && /* @__PURE__ */ e("span", { children: i.decimalSeparator }),
|
|
158
|
+
i.decimalPart && !s && /* @__PURE__ */ e(
|
|
159
|
+
h,
|
|
121
160
|
{
|
|
122
|
-
items:
|
|
123
|
-
animate:
|
|
124
|
-
|
|
161
|
+
items: p.decimalPart,
|
|
162
|
+
animate: n,
|
|
163
|
+
widths: d.decimal.widths
|
|
125
164
|
}
|
|
126
165
|
),
|
|
127
|
-
|
|
166
|
+
i.currencyPosition === "end" && /* @__PURE__ */ e("span", { className: "ms-4", children: i.currencyText })
|
|
128
167
|
]
|
|
129
168
|
}
|
|
130
169
|
)
|
|
131
170
|
] })
|
|
132
171
|
}
|
|
133
172
|
);
|
|
134
|
-
}
|
|
173
|
+
}
|
|
135
174
|
export {
|
|
136
|
-
|
|
175
|
+
j as AmountDisplay
|
|
137
176
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/AmountDisplay/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/AmountDisplay/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,GACf,MAAM,SAAS,CAAC"}
|
|
@@ -2,11 +2,19 @@ import { FormattedValue, SplitChar } from '@ledgerhq/lumen-utils-shared';
|
|
|
2
2
|
import { ComponentPropsWithRef } from 'react';
|
|
3
3
|
export type { FormattedValue };
|
|
4
4
|
export declare const DIGITS: readonly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
5
|
-
type
|
|
5
|
+
type Digit = (typeof DIGITS)[number];
|
|
6
|
+
export type AmountDisplaySize = 'sm' | 'md';
|
|
7
|
+
type DigitType = 'integer' | 'decimal';
|
|
8
|
+
export type DigitWidths = Record<Digit, number>;
|
|
9
|
+
export type PartConfig = {
|
|
10
|
+
className: string;
|
|
11
|
+
widths: DigitWidths;
|
|
12
|
+
};
|
|
13
|
+
export type SizeConfig = Record<DigitType, PartConfig>;
|
|
6
14
|
export type DigitStripProps = {
|
|
7
|
-
value:
|
|
15
|
+
value: Digit;
|
|
8
16
|
animate: boolean;
|
|
9
|
-
|
|
17
|
+
widths: DigitWidths;
|
|
10
18
|
};
|
|
11
19
|
export type DigitStripListProps = {
|
|
12
20
|
items: SplitChar[];
|
|
@@ -40,5 +48,10 @@ export type AmountDisplayProps = {
|
|
|
40
48
|
* @default true
|
|
41
49
|
*/
|
|
42
50
|
animate?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* The size variant of the amount display.
|
|
53
|
+
* @default 'md'
|
|
54
|
+
*/
|
|
55
|
+
size?: AmountDisplaySize;
|
|
43
56
|
} & ComponentPropsWithRef<'div'>;
|
|
44
57
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/AmountDisplay/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,eAAO,MAAM,MAAM,yCAA0C,CAAC;AAE9D,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/AmountDisplay/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,eAAO,MAAM,MAAM,yCAA0C,CAAC;AAE9D,KAAK,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAErC,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5C,KAAK,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAEvC,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AAEhD,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;AAEvD,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB,GAAG,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,cAAc,CAAC;IAC7C;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC1B,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -26,7 +26,7 @@ export declare const dotIconSizeMap: Record<DotIconSize, IconSize>;
|
|
|
26
26
|
* </DotIcon>
|
|
27
27
|
*/
|
|
28
28
|
export declare const DotIcon: {
|
|
29
|
-
({ children, icon: Icon, appearance, pin, size, shape, className, ref, ...rest }: DotIconProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
({ children, icon: Icon, appearance, pin, size, shape, className, disabled: disabledProp, ref, ...rest }: DotIconProps): import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
displayName: string;
|
|
31
31
|
};
|
|
32
32
|
//# sourceMappingURL=DotIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DotIcon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotIcon/DotIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DotIcon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotIcon/DotIcon.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAc,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AA6CrE,eAAO,MAAM,wBAAwB;;;;;CAKW,CAAC;AAEjD,eAAO,MAAM,kBAAkB;;;;;CAKiB,CAAC;AAEjD,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,WAAW,EAAE,QAAQ,CAIxD,CAAC;AAgBF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO;8GAWjB,YAAY;;CAwBd,CAAC"}
|