@ledgerhq/lumen-ui-react 0.1.60 → 0.1.62
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 +150 -132
- package/dist/lib/Components/core/AmountInput/AmountInput.d.ts +1 -1
- package/dist/lib/Components/core/AmountInput/AmountInput.d.ts.map +1 -1
- package/dist/lib/Components/core/AmountInput/AmountInput.js +53 -51
- package/dist/lib/Components/core/AmountInput/useAmountInputValue/useAmountInputValue.js +3 -3
- package/dist/lib/Components/core/Avatar/resolveAvatarColor.js +2 -2
- package/dist/lib/Components/core/AvatarButton/AvatarButton.js +6 -6
- package/dist/lib/Components/core/Banner/Banner.js +8 -8
- package/dist/lib/Components/core/Button/Button.js +10 -10
- package/dist/lib/Components/core/Card/Card.js +6 -6
- package/dist/lib/Components/core/CardButton/CardButton.d.ts +2 -0
- package/dist/lib/Components/core/CardButton/CardButton.d.ts.map +1 -1
- package/dist/lib/Components/core/CardButton/CardButton.js +4 -4
- package/dist/lib/Components/core/DataTable/DataTable.js +7 -7
- package/dist/lib/Components/core/Divider/Divider.js +8 -8
- package/dist/lib/Components/core/DotCount/DotCount.js +3 -3
- package/dist/lib/Components/core/DotIcon/DotIcon.js +9 -9
- package/dist/lib/Components/core/DotSymbol/DotSymbol.js +16 -16
- package/dist/lib/Components/core/Link/Link.d.ts +1 -1
- package/dist/lib/Components/core/Link/Link.d.ts.map +1 -1
- package/dist/lib/Components/core/Link/Link.js +21 -20
- package/dist/lib/Components/core/Link/types.d.ts +1 -1
- package/dist/lib/Components/core/Link/types.d.ts.map +1 -1
- package/dist/lib/Components/core/ListItem/ListItem.js +4 -4
- package/dist/lib/Components/core/MediaBanner/MediaBanner.js +19 -19
- package/dist/lib/Components/core/MediaButton/MediaButton.js +2 -2
- package/dist/lib/Components/core/Menu/Menu.d.ts +3 -2
- package/dist/lib/Components/core/Menu/Menu.d.ts.map +1 -1
- package/dist/lib/Components/core/Menu/Menu.js +157 -108
- package/dist/lib/Components/core/Menu/types.d.ts +31 -0
- package/dist/lib/Components/core/Menu/types.d.ts.map +1 -1
- package/dist/lib/Components/core/NavBar/CoinCapsule.js +8 -8
- package/dist/lib/Components/core/Pagination/Pagination.js +14 -14
- package/dist/lib/Components/core/Popover/Popover.js +6 -6
- package/dist/lib/Components/core/SearchInput/SearchInput.js +5 -5
- package/dist/lib/Components/core/SegmentedControl/SegmentedControl.js +19 -19
- package/dist/lib/Components/core/Select/Select.js +8 -8
- package/dist/lib/Components/core/SideBar/SideBar.js +14 -14
- package/dist/lib/Components/core/Spinner/Spinner.js +4 -4
- package/dist/lib/Components/core/Spot/Spot.js +9 -9
- package/dist/lib/Components/core/Stepper/Stepper.d.ts +4 -3
- package/dist/lib/Components/core/Stepper/Stepper.d.ts.map +1 -1
- package/dist/lib/Components/core/Stepper/Stepper.js +137 -65
- package/dist/lib/Components/core/Stepper/types.d.ts +12 -2
- package/dist/lib/Components/core/Stepper/types.d.ts.map +1 -1
- package/dist/lib/Components/core/Switch/Switch.js +5 -5
- package/dist/lib/Components/core/Table/Table.js +9 -9
- package/dist/lib/Components/core/TileButton/TileButton.js +8 -8
- package/dist/lib/Components/core/Timeline/Timeline.d.ts +54 -0
- package/dist/lib/Components/core/Timeline/Timeline.d.ts.map +1 -0
- package/dist/lib/Components/core/Timeline/Timeline.js +228 -0
- package/dist/lib/Components/core/Timeline/index.d.ts +3 -0
- package/dist/lib/Components/core/Timeline/index.d.ts.map +1 -0
- package/dist/lib/Components/core/Timeline/types.d.ts +148 -0
- package/dist/lib/Components/core/Timeline/types.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/Toast.d.ts +25 -0
- package/dist/lib/Components/core/Toast/Toast.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/Toast.js +68 -0
- package/dist/lib/Components/core/Toast/Toaster.d.ts +27 -0
- package/dist/lib/Components/core/Toast/Toaster.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/Toaster.js +92 -0
- package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts +15 -0
- package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/hooks/useToastCollapse.js +15 -0
- package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts +24 -0
- package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.js +27 -0
- package/dist/lib/Components/core/Toast/index.d.ts +5 -0
- package/dist/lib/Components/core/Toast/index.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/styles.d.ts +20 -0
- package/dist/lib/Components/core/Toast/styles.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/styles.js +77 -0
- package/dist/lib/Components/core/Toast/types.d.ts +81 -0
- package/dist/lib/Components/core/Toast/types.d.ts.map +1 -0
- package/dist/lib/Components/core/Trend/Trend.js +2 -2
- package/dist/lib/Components/core/index.d.ts +2 -0
- package/dist/lib/Components/core/index.d.ts.map +1 -1
- package/dist/lib/Components/internal/BaseButton/BaseButton.js +2 -2
- package/dist/lib/Components/internal/BaseInput/BaseInput.js +9 -9
- package/dist/lib/Components/internal/BaseInput/BaseInputMultiline.js +12 -12
- package/dist/lib/Components/internal/BaseTag/BaseTag.js +8 -8
- package/dist/lib/Components/symbols/Icon/Icon.js +4 -4
- package/dist/lib/Components/symbols/Icon/createIcon.js +8 -8
- package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +6 -6
- package/dist/lib/Components/visualization/DonutChart/donutSizeContext.js +2 -2
- package/dist/lib/Components/visualization/Legend/Legend.js +8 -8
- package/dist/libs/utils-shared/dist/index.js +306 -141
- package/dist/package.json +3 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Languages as t } from "./i18n/languages.js";
|
|
2
|
-
import { useControllableState as
|
|
2
|
+
import { useControllableState as n } from "./utils/useControllableState/useControllableState.js";
|
|
3
3
|
import { AddressInput as i } from "./lib/Components/core/AddressInput/AddressInput.js";
|
|
4
|
-
import { AmountInput as
|
|
5
|
-
import { AmountDisplay as
|
|
4
|
+
import { AmountInput as m } from "./lib/Components/core/AmountInput/AmountInput.js";
|
|
5
|
+
import { AmountDisplay as T } from "./lib/Components/core/AmountDisplay/AmountDisplay.js";
|
|
6
6
|
import { Avatar as x } from "./lib/Components/core/Avatar/Avatar.js";
|
|
7
7
|
import { resolveAvatarColor as C } from "./lib/Components/core/Avatar/resolveAvatarColor.js";
|
|
8
8
|
import { AvatarButton as S } from "./lib/Components/core/AvatarButton/AvatarButton.js";
|
|
9
9
|
import { Banner as g } from "./lib/Components/core/Banner/Banner.js";
|
|
10
|
-
import { Button as
|
|
11
|
-
import { Card as B, CardContent as D, CardContentDescription as M, CardContentRow as L, CardContentTitle as v, CardFooter as h, CardFooterActions as R, CardHeader as
|
|
10
|
+
import { Button as b } from "./lib/Components/core/Button/Button.js";
|
|
11
|
+
import { Card as B, CardContent as D, CardContentDescription as M, CardContentRow as L, CardContentTitle as v, CardFooter as h, CardFooterActions as R, CardHeader as w, CardLeading as H, CardTrailing as A } from "./lib/Components/core/Card/Card.js";
|
|
12
12
|
import { CardButton as y } from "./lib/Components/core/CardButton/CardButton.js";
|
|
13
13
|
import { Checkbox as k } from "./lib/Components/core/Checkbox/Checkbox.js";
|
|
14
14
|
import { ContentBanner as E, ContentBannerContent as F, ContentBannerDescription as O, ContentBannerTitle as z } from "./lib/Components/core/ContentBanner/ContentBanner.js";
|
|
@@ -16,59 +16,63 @@ import { DataTable as _, DataTableGlobalSearchInput as j, DataTableRoot as q } f
|
|
|
16
16
|
import { useLumenDataTable as K } from "./lib/Components/core/DataTable/useLumenDataTable/useLumenDataTable.js";
|
|
17
17
|
import { DescriptionItem as U, DescriptionItemLabel as W, DescriptionItemLeading as X, DescriptionItemTrailing as Y, DescriptionItemValue as Z } from "./lib/Components/core/DescriptionItem/DescriptionItem.js";
|
|
18
18
|
import { DialogClose as ee } from "./lib/Components/core/Dialog/DialogClose/DialogClose.js";
|
|
19
|
-
import { Dialog as te, DialogBody as re, DialogBodyStickyContent as
|
|
20
|
-
import { DialogHeader as
|
|
21
|
-
import { Divider as
|
|
19
|
+
import { Dialog as te, DialogBody as re, DialogBodyStickyContent as ne, DialogContent as ae, DialogFooter as ie, DialogTrigger as le } from "./lib/Components/core/Dialog/Dialog.js";
|
|
20
|
+
import { DialogHeader as pe } from "./lib/Components/core/Dialog/DialogHeader/DialogHeader.js";
|
|
21
|
+
import { Divider as de } from "./lib/Components/core/Divider/Divider.js";
|
|
22
22
|
import { DotCount as fe } from "./lib/Components/core/DotCount/DotCount.js";
|
|
23
23
|
import { DotIcon as ce, dotIconSizeMap as Se } from "./lib/Components/core/DotIcon/DotIcon.js";
|
|
24
24
|
import { getDotIconProps as ge } from "./lib/Components/core/DotIcon/getDotIconProps.js";
|
|
25
|
-
import { DotIndicator as
|
|
25
|
+
import { DotIndicator as be } from "./lib/Components/core/DotIndicator/DotIndicator.js";
|
|
26
26
|
import { getDotIndicatorProps as Be } from "./lib/Components/core/DotIndicator/getDotIndicatorProps.js";
|
|
27
27
|
import { DotSymbol as Me } from "./lib/Components/core/DotSymbol/DotSymbol.js";
|
|
28
28
|
import { getDotSymbolProps as ve } from "./lib/Components/core/DotSymbol/getDotSymbolProps.js";
|
|
29
29
|
import { IconButton as Re } from "./lib/Components/core/IconButton/IconButton.js";
|
|
30
30
|
import { InteractiveIcon as He } from "./lib/Components/core/InteractiveIcon/InteractiveIcon.js";
|
|
31
|
-
import { Link as
|
|
31
|
+
import { Link as Pe } from "./lib/Components/core/Link/Link.js";
|
|
32
32
|
import { ListItem as Ne, ListItemContent as ke, ListItemContentRow as Ge, ListItemDescription as Ee, ListItemLeading as Fe, ListItemTitle as Oe, ListItemTrailing as ze } from "./lib/Components/core/ListItem/ListItem.js";
|
|
33
33
|
import { MediaBanner as _e, MediaBannerDescription as je, MediaBannerTitle as qe } from "./lib/Components/core/MediaBanner/MediaBanner.js";
|
|
34
34
|
import { MediaButton as Ke } from "./lib/Components/core/MediaButton/MediaButton.js";
|
|
35
35
|
import { MediaCard as Ue, MediaCardTitle as We } from "./lib/Components/core/MediaCard/MediaCard.js";
|
|
36
36
|
import { MediaImage as Ye } from "./lib/Components/core/MediaImage/MediaImage.js";
|
|
37
37
|
import { MediaTag as $e } from "./lib/Components/core/MediaTag/MediaTag.js";
|
|
38
|
-
import { Menu as oo, MenuCheckboxItem as to, MenuContent as ro, MenuGroup as
|
|
39
|
-
import { NavBar as
|
|
40
|
-
import { Popover as
|
|
41
|
-
import { PageIndicator as
|
|
42
|
-
import { Pagination as
|
|
43
|
-
import { SearchInput as
|
|
44
|
-
import { SectionHeader as
|
|
45
|
-
import { SegmentedControl as
|
|
46
|
-
import { Select as
|
|
47
|
-
import { SideBar as
|
|
38
|
+
import { Menu as oo, MenuCheckboxItem as to, MenuContent as ro, MenuGroup as no, MenuItem as ao, MenuLabel as io, MenuRadioGroup as lo, MenuRadioItem as mo, MenuSeparator as po, MenuSub as To, MenuSubContent as xo, MenuSubTrigger as fo, MenuSwitchItem as Co, MenuTrigger as co, createMenuRadioGroup as So } from "./lib/Components/core/Menu/Menu.js";
|
|
39
|
+
import { NavBar as go, NavBarBackButton as Io, NavBarCoinCapsule as bo, NavBarDescription as so, NavBarLeading as Bo, NavBarTitle as Do, NavBarTrailing as Mo } from "./lib/Components/core/NavBar/NavBar.js";
|
|
40
|
+
import { Popover as vo, PopoverContent as ho, PopoverTrigger as Ro, createPopoverHandle as wo } from "./lib/Components/core/Popover/Popover.js";
|
|
41
|
+
import { PageIndicator as Ao } from "./lib/Components/core/PageIndicator/PageIndicator.js";
|
|
42
|
+
import { Pagination as yo } from "./lib/Components/core/Pagination/Pagination.js";
|
|
43
|
+
import { SearchInput as ko } from "./lib/Components/core/SearchInput/SearchInput.js";
|
|
44
|
+
import { SectionHeader as Eo, SectionHeaderLeading as Fo, SectionHeaderTitle as Oo } from "./lib/Components/core/SectionHeader/SectionHeader.js";
|
|
45
|
+
import { SegmentedControl as Vo, SegmentedControlButton as _o, createSegmentedControl as jo } from "./lib/Components/core/SegmentedControl/SegmentedControl.js";
|
|
46
|
+
import { Select as Jo, SelectContent as Ko, SelectEmptyState as Qo, SelectItem as Uo, SelectItemContent as Wo, SelectItemDescription as Xo, SelectItemText as Yo, SelectList as Zo, SelectSearch as $o, SelectSeparator as et, SelectTrigger as ot, createSelect as tt } from "./lib/Components/core/Select/Select.js";
|
|
47
|
+
import { SideBar as nt, SideBarCollapseToggle as at, SideBarItem as it, SideBarLeading as lt, SideBarTrailing as mt, createSideBar as pt } from "./lib/Components/core/SideBar/SideBar.js";
|
|
48
48
|
import { Skeleton as dt } from "./lib/Components/core/Skeleton/Skeleton.js";
|
|
49
|
-
import { Spinner as
|
|
50
|
-
import { Spot as
|
|
51
|
-
import { Stepper as
|
|
52
|
-
import { Subheader as
|
|
53
|
-
import { Switch as
|
|
54
|
-
import { Table as
|
|
55
|
-
import { Tag as
|
|
56
|
-
import { TextInput as
|
|
57
|
-
import { Tile as
|
|
49
|
+
import { Spinner as ft } from "./lib/Components/core/Spinner/Spinner.js";
|
|
50
|
+
import { Spot as ct } from "./lib/Components/core/Spot/Spot.js";
|
|
51
|
+
import { Stepper as ut } from "./lib/Components/core/Stepper/Stepper.js";
|
|
52
|
+
import { Subheader as It, SubheaderCount as bt, SubheaderDescription as st, SubheaderInfo as Bt, SubheaderRow as Dt, SubheaderShowMore as Mt, SubheaderTitle as Lt } from "./lib/Components/core/Subheader/Subheader.js";
|
|
53
|
+
import { Switch as ht } from "./lib/Components/core/Switch/Switch.js";
|
|
54
|
+
import { Table as wt, TableActionBar as Ht, TableActionBarLeading as At, TableActionBarTrailing as Pt, TableBody as yt, TableCell as Nt, TableCellContent as kt, TableCellContentDescription as Gt, TableCellContentRow as Et, TableCellContentTitle as Ft, TableCellItem as Ot, TableCol as zt, TableColGroup as Vt, TableGroupHeaderRow as _t, TableHeader as jt, TableHeaderCell as qt, TableHeaderRow as Jt, TableInfoIcon as Kt, TableLoadingRow as Qt, TableRoot as Ut, TableRow as Wt, TableSortButton as Xt } from "./lib/Components/core/Table/Table.js";
|
|
55
|
+
import { Tag as Zt } from "./lib/Components/core/Tag/Tag.js";
|
|
56
|
+
import { TextInput as er } from "./lib/Components/core/TextInput/TextInput.js";
|
|
57
|
+
import { Tile as tr, TileContent as rr, TileDescription as nr, TileSecondaryAction as ar, TileTitle as ir, TileTrailingContent as lr } from "./lib/Components/core/Tile/Tile.js";
|
|
58
58
|
import { TileButton as pr } from "./lib/Components/core/TileButton/TileButton.js";
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
59
|
+
import { Timeline as dr, TimelineItem as xr, TimelineItemBody as fr, TimelineItemCaption as Cr, TimelineItemDescription as cr, TimelineItemHeader as Sr, TimelineItemLeading as ur, TimelineItemLeadingRow as gr, TimelineItemTitle as Ir, TimelineItemTrailing as br } from "./lib/Components/core/Timeline/Timeline.js";
|
|
60
|
+
import { toast as Br } from "./libs/utils-shared/dist/index.js";
|
|
61
|
+
import { Toast as Mr } from "./lib/Components/core/Toast/Toast.js";
|
|
62
|
+
import { Toaster as vr } from "./lib/Components/core/Toast/Toaster.js";
|
|
63
|
+
import { Tooltip as Rr, TooltipContent as wr, TooltipProvider as Hr, TooltipTrigger as Ar } from "./lib/Components/core/Tooltip/Tooltip.js";
|
|
64
|
+
import { Trend as yr } from "./lib/Components/core/Trend/Trend.js";
|
|
65
|
+
import { ThemeProvider as kr, useTheme as Gr } from "./lib/Components/core/ThemeProvider/ThemeProvider.js";
|
|
66
|
+
import { COLOR_SCHEMES as Fr } from "./lib/Components/core/ThemeProvider/ThemeProvider.types.js";
|
|
63
67
|
export {
|
|
64
68
|
i as AddressInput,
|
|
65
|
-
|
|
66
|
-
|
|
69
|
+
T as AmountDisplay,
|
|
70
|
+
m as AmountInput,
|
|
67
71
|
x as Avatar,
|
|
68
72
|
S as AvatarButton,
|
|
69
73
|
g as Banner,
|
|
70
|
-
|
|
71
|
-
|
|
74
|
+
b as Button,
|
|
75
|
+
Fr as COLOR_SCHEMES,
|
|
72
76
|
B as Card,
|
|
73
77
|
y as CardButton,
|
|
74
78
|
D as CardContent,
|
|
@@ -77,9 +81,9 @@ export {
|
|
|
77
81
|
v as CardContentTitle,
|
|
78
82
|
h as CardFooter,
|
|
79
83
|
R as CardFooterActions,
|
|
80
|
-
|
|
84
|
+
w as CardHeader,
|
|
81
85
|
H as CardLeading,
|
|
82
|
-
|
|
86
|
+
A as CardTrailing,
|
|
83
87
|
k as Checkbox,
|
|
84
88
|
E as ContentBanner,
|
|
85
89
|
F as ContentBannerContent,
|
|
@@ -95,21 +99,21 @@ export {
|
|
|
95
99
|
Z as DescriptionItemValue,
|
|
96
100
|
te as Dialog,
|
|
97
101
|
re as DialogBody,
|
|
98
|
-
|
|
102
|
+
ne as DialogBodyStickyContent,
|
|
99
103
|
ee as DialogClose,
|
|
100
|
-
|
|
104
|
+
ae as DialogContent,
|
|
101
105
|
ie as DialogFooter,
|
|
102
|
-
|
|
106
|
+
pe as DialogHeader,
|
|
103
107
|
le as DialogTrigger,
|
|
104
|
-
|
|
108
|
+
de as Divider,
|
|
105
109
|
fe as DotCount,
|
|
106
110
|
ce as DotIcon,
|
|
107
|
-
|
|
111
|
+
be as DotIndicator,
|
|
108
112
|
Me as DotSymbol,
|
|
109
113
|
Re as IconButton,
|
|
110
114
|
He as InteractiveIcon,
|
|
111
115
|
t as Languages,
|
|
112
|
-
|
|
116
|
+
Pe as Link,
|
|
113
117
|
Ne as ListItem,
|
|
114
118
|
ke as ListItemContent,
|
|
115
119
|
Ge as ListItemContentRow,
|
|
@@ -128,110 +132,124 @@ export {
|
|
|
128
132
|
oo as Menu,
|
|
129
133
|
to as MenuCheckboxItem,
|
|
130
134
|
ro as MenuContent,
|
|
131
|
-
|
|
132
|
-
|
|
135
|
+
no as MenuGroup,
|
|
136
|
+
ao as MenuItem,
|
|
133
137
|
io as MenuLabel,
|
|
134
138
|
lo as MenuRadioGroup,
|
|
135
|
-
|
|
136
|
-
|
|
139
|
+
mo as MenuRadioItem,
|
|
140
|
+
po as MenuSeparator,
|
|
137
141
|
To as MenuSub,
|
|
138
142
|
xo as MenuSubContent,
|
|
139
143
|
fo as MenuSubTrigger,
|
|
140
|
-
Co as
|
|
141
|
-
|
|
142
|
-
go as
|
|
144
|
+
Co as MenuSwitchItem,
|
|
145
|
+
co as MenuTrigger,
|
|
146
|
+
go as NavBar,
|
|
147
|
+
Io as NavBarBackButton,
|
|
143
148
|
bo as NavBarCoinCapsule,
|
|
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
|
-
|
|
170
|
-
|
|
149
|
+
so as NavBarDescription,
|
|
150
|
+
Bo as NavBarLeading,
|
|
151
|
+
Do as NavBarTitle,
|
|
152
|
+
Mo as NavBarTrailing,
|
|
153
|
+
Ao as PageIndicator,
|
|
154
|
+
yo as Pagination,
|
|
155
|
+
vo as Popover,
|
|
156
|
+
ho as PopoverContent,
|
|
157
|
+
Ro as PopoverTrigger,
|
|
158
|
+
ko as SearchInput,
|
|
159
|
+
Eo as SectionHeader,
|
|
160
|
+
Fo as SectionHeaderLeading,
|
|
161
|
+
Oo as SectionHeaderTitle,
|
|
162
|
+
Vo as SegmentedControl,
|
|
163
|
+
_o as SegmentedControlButton,
|
|
164
|
+
Jo as Select,
|
|
165
|
+
Ko as SelectContent,
|
|
166
|
+
Qo as SelectEmptyState,
|
|
167
|
+
Uo as SelectItem,
|
|
168
|
+
Wo as SelectItemContent,
|
|
169
|
+
Xo as SelectItemDescription,
|
|
170
|
+
Yo as SelectItemText,
|
|
171
|
+
Zo as SelectList,
|
|
172
|
+
$o as SelectSearch,
|
|
173
|
+
et as SelectSeparator,
|
|
174
|
+
ot as SelectTrigger,
|
|
175
|
+
nt as SideBar,
|
|
171
176
|
at as SideBarCollapseToggle,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
177
|
+
it as SideBarItem,
|
|
178
|
+
lt as SideBarLeading,
|
|
179
|
+
mt as SideBarTrailing,
|
|
175
180
|
dt as Skeleton,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
181
|
+
ft as Spinner,
|
|
182
|
+
ct as Spot,
|
|
183
|
+
ut as Stepper,
|
|
184
|
+
It as Subheader,
|
|
180
185
|
bt as SubheaderCount,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
186
|
+
st as SubheaderDescription,
|
|
187
|
+
Bt as SubheaderInfo,
|
|
188
|
+
Dt as SubheaderRow,
|
|
189
|
+
Mt as SubheaderShowMore,
|
|
190
|
+
Lt as SubheaderTitle,
|
|
191
|
+
ht as Switch,
|
|
192
|
+
wt as Table,
|
|
193
|
+
Ht as TableActionBar,
|
|
194
|
+
At as TableActionBarLeading,
|
|
190
195
|
Pt as TableActionBarTrailing,
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
196
|
+
yt as TableBody,
|
|
197
|
+
Nt as TableCell,
|
|
198
|
+
kt as TableCellContent,
|
|
199
|
+
Gt as TableCellContentDescription,
|
|
200
|
+
Et as TableCellContentRow,
|
|
201
|
+
Ft as TableCellContentTitle,
|
|
202
|
+
Ot as TableCellItem,
|
|
203
|
+
zt as TableCol,
|
|
204
|
+
Vt as TableColGroup,
|
|
205
|
+
_t as TableGroupHeaderRow,
|
|
206
|
+
jt as TableHeader,
|
|
207
|
+
qt as TableHeaderCell,
|
|
208
|
+
Jt as TableHeaderRow,
|
|
209
|
+
Kt as TableInfoIcon,
|
|
210
|
+
Qt as TableLoadingRow,
|
|
211
|
+
Ut as TableRoot,
|
|
212
|
+
Wt as TableRow,
|
|
213
|
+
Xt as TableSortButton,
|
|
214
|
+
Zt as Tag,
|
|
215
|
+
er as TextInput,
|
|
216
|
+
kr as ThemeProvider,
|
|
217
|
+
tr as Tile,
|
|
213
218
|
pr as TileButton,
|
|
214
|
-
|
|
215
|
-
|
|
219
|
+
rr as TileContent,
|
|
220
|
+
nr as TileDescription,
|
|
216
221
|
ar as TileSecondaryAction,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
dr as
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
cr as
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
222
|
+
ir as TileTitle,
|
|
223
|
+
lr as TileTrailingContent,
|
|
224
|
+
dr as Timeline,
|
|
225
|
+
xr as TimelineItem,
|
|
226
|
+
fr as TimelineItemBody,
|
|
227
|
+
Cr as TimelineItemCaption,
|
|
228
|
+
cr as TimelineItemDescription,
|
|
229
|
+
Sr as TimelineItemHeader,
|
|
230
|
+
ur as TimelineItemLeading,
|
|
231
|
+
gr as TimelineItemLeadingRow,
|
|
232
|
+
Ir as TimelineItemTitle,
|
|
233
|
+
br as TimelineItemTrailing,
|
|
234
|
+
Mr as Toast,
|
|
235
|
+
vr as Toaster,
|
|
236
|
+
Rr as Tooltip,
|
|
237
|
+
wr as TooltipContent,
|
|
238
|
+
Hr as TooltipProvider,
|
|
239
|
+
Ar as TooltipTrigger,
|
|
240
|
+
yr as Trend,
|
|
241
|
+
So as createMenuRadioGroup,
|
|
242
|
+
wo as createPopoverHandle,
|
|
243
|
+
jo as createSegmentedControl,
|
|
244
|
+
tt as createSelect,
|
|
228
245
|
pt as createSideBar,
|
|
229
246
|
Se as dotIconSizeMap,
|
|
230
247
|
ge as getDotIconProps,
|
|
231
248
|
Be as getDotIndicatorProps,
|
|
232
249
|
ve as getDotSymbolProps,
|
|
233
250
|
C as resolveAvatarColor,
|
|
234
|
-
|
|
251
|
+
Br as toast,
|
|
252
|
+
n as useControllableState,
|
|
235
253
|
K as useLumenDataTable,
|
|
236
|
-
|
|
254
|
+
Gr as useTheme
|
|
237
255
|
};
|
|
@@ -4,5 +4,5 @@ import { AmountInputProps } from './types';
|
|
|
4
4
|
* This is a controlled component - both `value` and `onChange` props are required.
|
|
5
5
|
* The currency text can be positioned either on the left or right side of the input.
|
|
6
6
|
*/
|
|
7
|
-
export declare const AmountInput: ({ ref, className, size, align, currencyText, currencyPosition, disabled: disabledProp, maxIntegerLength, maxDecimalLength, allowDecimals, thousandsSeparator, decimalSeparator, value, onChange, ...props }: AmountInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const AmountInput: ({ ref, className, size, align, currencyText, currencyPosition, disabled: disabledProp, maxIntegerLength, maxDecimalLength, allowDecimals, thousandsSeparator, decimalSeparator, value, onChange, placeholder, ...props }: AmountInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
//# sourceMappingURL=AmountInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmountInput.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/AmountInput/AmountInput.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAmB,MAAM,SAAS,CAAC;AA0FjE;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,
|
|
1
|
+
{"version":3,"file":"AmountInput.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/AmountInput/AmountInput.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAmB,MAAM,SAAS,CAAC;AA0FjE;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,0NAiBzB,gBAAgB,4CAmFlB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useDisabledContext as
|
|
1
|
+
import { jsxs as z, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useDisabledContext as M, useMergedRef as D, getFontSize as F, cn as f } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as i } from "class-variance-authority";
|
|
4
|
-
import { useMemo as
|
|
5
|
-
import { useAmountInputValue as
|
|
6
|
-
import { useAutoWidthInput as
|
|
7
|
-
const
|
|
4
|
+
import { useMemo as W } from "react";
|
|
5
|
+
import { useAmountInputValue as q } from "./useAmountInputValue/useAmountInputValue.js";
|
|
6
|
+
import { useAutoWidthInput as E } from "./useAutoWidthInput/useAutoWidthInput.js";
|
|
7
|
+
const L = i(
|
|
8
8
|
[
|
|
9
9
|
"bg-transparent caret-active outline-hidden transition-colors",
|
|
10
10
|
"text-base placeholder:text-muted-subtle",
|
|
@@ -28,7 +28,7 @@ const q = i(
|
|
|
28
28
|
isChanging: !1
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
),
|
|
31
|
+
), O = i(
|
|
32
32
|
[
|
|
33
33
|
"cursor-text text-base",
|
|
34
34
|
"group-has-[input:placeholder-shown]:text-muted-subtle",
|
|
@@ -46,7 +46,7 @@ const q = i(
|
|
|
46
46
|
size: "md"
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
),
|
|
49
|
+
), B = i("invisible absolute whitespace-pre", {
|
|
50
50
|
variants: {
|
|
51
51
|
size: {
|
|
52
52
|
md: "heading-0-semi-bold",
|
|
@@ -56,7 +56,7 @@ const q = i(
|
|
|
56
56
|
defaultVariants: {
|
|
57
57
|
size: "md"
|
|
58
58
|
}
|
|
59
|
-
}),
|
|
59
|
+
}), G = i(
|
|
60
60
|
"group relative flex w-full items-center overflow-visible transition-transform",
|
|
61
61
|
{
|
|
62
62
|
variants: {
|
|
@@ -70,86 +70,88 @@ const q = i(
|
|
|
70
70
|
align: "center"
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
),
|
|
73
|
+
), c = ({ size: r, style: o, children: e }) => /* @__PURE__ */ a("span", { className: f(O({ size: r }), "shrink-0"), style: o, children: e }), Y = ({
|
|
74
74
|
ref: r,
|
|
75
75
|
className: o,
|
|
76
76
|
size: e = "md",
|
|
77
|
-
align:
|
|
77
|
+
align: h = "center",
|
|
78
78
|
currencyText: t,
|
|
79
79
|
currencyPosition: l = "left",
|
|
80
|
-
disabled:
|
|
81
|
-
maxIntegerLength:
|
|
82
|
-
maxDecimalLength:
|
|
83
|
-
allowDecimals:
|
|
84
|
-
thousandsSeparator:
|
|
85
|
-
decimalSeparator:
|
|
86
|
-
value:
|
|
87
|
-
onChange:
|
|
88
|
-
|
|
80
|
+
disabled: g,
|
|
81
|
+
maxIntegerLength: b = 9,
|
|
82
|
+
maxDecimalLength: v = 9,
|
|
83
|
+
allowDecimals: x = !0,
|
|
84
|
+
thousandsSeparator: w = !0,
|
|
85
|
+
decimalSeparator: y = ".",
|
|
86
|
+
value: C,
|
|
87
|
+
onChange: S,
|
|
88
|
+
placeholder: d,
|
|
89
|
+
...V
|
|
89
90
|
}) => {
|
|
90
|
-
const
|
|
91
|
+
const A = M({
|
|
91
92
|
consumerName: "AmountInput",
|
|
92
|
-
mergeWith: { disabled:
|
|
93
|
-
}), { inputValue: n, isChanging:
|
|
94
|
-
value:
|
|
95
|
-
onChange:
|
|
93
|
+
mergeWith: { disabled: g }
|
|
94
|
+
}), { inputValue: n, isChanging: j, setIsChanging: I, handleChange: N } = q({
|
|
95
|
+
value: C,
|
|
96
|
+
onChange: S,
|
|
96
97
|
formatOptions: {
|
|
97
|
-
allowDecimals:
|
|
98
|
-
thousandsSeparator:
|
|
99
|
-
maxIntegerLength:
|
|
100
|
-
maxDecimalLength:
|
|
101
|
-
decimalSeparator:
|
|
98
|
+
allowDecimals: x,
|
|
99
|
+
thousandsSeparator: w,
|
|
100
|
+
maxIntegerLength: b,
|
|
101
|
+
maxDecimalLength: v,
|
|
102
|
+
decimalSeparator: y
|
|
102
103
|
}
|
|
103
|
-
}), { spanRef:
|
|
104
|
-
inputValue:
|
|
104
|
+
}), u = n === "" ? d ?? "" : n, { spanRef: k, inputRef: m } = E({
|
|
105
|
+
inputValue: u,
|
|
105
106
|
currencyText: t,
|
|
106
107
|
size: e
|
|
107
|
-
}),
|
|
108
|
-
() =>
|
|
108
|
+
}), R = D(r, m), s = { fontSize: W(
|
|
109
|
+
() => F(n, e) + "px",
|
|
109
110
|
[n, e]
|
|
110
111
|
), letterSpacing: "normal" };
|
|
111
|
-
return /* @__PURE__ */
|
|
112
|
+
return /* @__PURE__ */ z(
|
|
112
113
|
"div",
|
|
113
114
|
{
|
|
114
|
-
className:
|
|
115
|
+
className: G({ align: h }),
|
|
115
116
|
onPointerDown: () => {
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
const p = m.current;
|
|
118
|
+
p && window.requestAnimationFrame(() => {
|
|
119
|
+
p.focus();
|
|
119
120
|
});
|
|
120
121
|
},
|
|
121
122
|
children: [
|
|
122
|
-
t && l === "left" && /* @__PURE__ */ a(
|
|
123
|
+
t && l === "left" && /* @__PURE__ */ a(c, { size: e, style: s, children: t }),
|
|
123
124
|
/* @__PURE__ */ a(
|
|
124
125
|
"span",
|
|
125
126
|
{
|
|
126
|
-
ref:
|
|
127
|
-
className:
|
|
127
|
+
ref: k,
|
|
128
|
+
className: B({ size: e }),
|
|
128
129
|
"aria-hidden": "true",
|
|
129
130
|
style: s,
|
|
130
|
-
children:
|
|
131
|
+
children: u
|
|
131
132
|
}
|
|
132
133
|
),
|
|
133
134
|
/* @__PURE__ */ a(
|
|
134
135
|
"input",
|
|
135
136
|
{
|
|
136
|
-
ref:
|
|
137
|
+
ref: R,
|
|
137
138
|
type: "text",
|
|
138
139
|
inputMode: "decimal",
|
|
139
|
-
disabled:
|
|
140
|
+
disabled: A,
|
|
140
141
|
value: n,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
placeholder: d,
|
|
143
|
+
onChange: N,
|
|
144
|
+
onAnimationEnd: () => I(!1),
|
|
145
|
+
className: f(L({ size: e, isChanging: j }), o),
|
|
146
|
+
...V,
|
|
145
147
|
style: s
|
|
146
148
|
}
|
|
147
149
|
),
|
|
148
|
-
t && l === "right" && /* @__PURE__ */ a(
|
|
150
|
+
t && l === "right" && /* @__PURE__ */ a(c, { size: e, style: s, children: t })
|
|
149
151
|
]
|
|
150
152
|
}
|
|
151
153
|
);
|
|
152
154
|
};
|
|
153
155
|
export {
|
|
154
|
-
|
|
156
|
+
Y as AmountInput
|
|
155
157
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { textFormatter as m } from "../../../../../libs/utils-shared/dist/index.js";
|
|
2
|
-
import { useCallback as
|
|
2
|
+
import { useCallback as d, useState as g, useRef as i, useEffect as f } from "react";
|
|
3
3
|
const I = ({
|
|
4
4
|
value: r,
|
|
5
5
|
onChange: o,
|
|
6
6
|
formatOptions: t
|
|
7
7
|
}) => {
|
|
8
|
-
const a =
|
|
8
|
+
const a = d(
|
|
9
9
|
(e) => m(String(e), t),
|
|
10
10
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11
11
|
[
|
|
@@ -15,7 +15,7 @@ const I = ({
|
|
|
15
15
|
t.maxDecimalLength,
|
|
16
16
|
t.decimalSeparator
|
|
17
17
|
]
|
|
18
|
-
), [c, s] = g(() => a(r)), [h, l] = g(!1), u =
|
|
18
|
+
), [c, s] = g(() => a(r)), [h, l] = g(!1), u = i(c);
|
|
19
19
|
return f(() => {
|
|
20
20
|
const e = a(r);
|
|
21
21
|
s(e), u.current = e;
|
|
@@ -2,9 +2,9 @@ import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { useDisabledContext as f, cn as v } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { Avatar as m } from "../Avatar/Avatar.js";
|
|
4
4
|
const A = ({
|
|
5
|
-
ref:
|
|
6
|
-
className:
|
|
7
|
-
src:
|
|
5
|
+
ref: o,
|
|
6
|
+
className: s,
|
|
7
|
+
src: t,
|
|
8
8
|
alt: r,
|
|
9
9
|
size: a,
|
|
10
10
|
imgLoading: n,
|
|
@@ -21,19 +21,19 @@ const A = ({
|
|
|
21
21
|
return /* @__PURE__ */ p(
|
|
22
22
|
"button",
|
|
23
23
|
{
|
|
24
|
-
ref:
|
|
24
|
+
ref: o,
|
|
25
25
|
type: "button",
|
|
26
26
|
disabled: c,
|
|
27
27
|
className: v(
|
|
28
28
|
"group relative cursor-pointer rounded-full focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-focus disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-30",
|
|
29
|
-
|
|
29
|
+
s
|
|
30
30
|
),
|
|
31
31
|
...b,
|
|
32
32
|
children: [
|
|
33
33
|
/* @__PURE__ */ e(
|
|
34
34
|
m,
|
|
35
35
|
{
|
|
36
|
-
src:
|
|
36
|
+
src: t,
|
|
37
37
|
alt: r,
|
|
38
38
|
size: a,
|
|
39
39
|
imgLoading: n,
|