@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.
Files changed (89) hide show
  1. package/dist/index.js +150 -132
  2. package/dist/lib/Components/core/AmountInput/AmountInput.d.ts +1 -1
  3. package/dist/lib/Components/core/AmountInput/AmountInput.d.ts.map +1 -1
  4. package/dist/lib/Components/core/AmountInput/AmountInput.js +53 -51
  5. package/dist/lib/Components/core/AmountInput/useAmountInputValue/useAmountInputValue.js +3 -3
  6. package/dist/lib/Components/core/Avatar/resolveAvatarColor.js +2 -2
  7. package/dist/lib/Components/core/AvatarButton/AvatarButton.js +6 -6
  8. package/dist/lib/Components/core/Banner/Banner.js +8 -8
  9. package/dist/lib/Components/core/Button/Button.js +10 -10
  10. package/dist/lib/Components/core/Card/Card.js +6 -6
  11. package/dist/lib/Components/core/CardButton/CardButton.d.ts +2 -0
  12. package/dist/lib/Components/core/CardButton/CardButton.d.ts.map +1 -1
  13. package/dist/lib/Components/core/CardButton/CardButton.js +4 -4
  14. package/dist/lib/Components/core/DataTable/DataTable.js +7 -7
  15. package/dist/lib/Components/core/Divider/Divider.js +8 -8
  16. package/dist/lib/Components/core/DotCount/DotCount.js +3 -3
  17. package/dist/lib/Components/core/DotIcon/DotIcon.js +9 -9
  18. package/dist/lib/Components/core/DotSymbol/DotSymbol.js +16 -16
  19. package/dist/lib/Components/core/Link/Link.d.ts +1 -1
  20. package/dist/lib/Components/core/Link/Link.d.ts.map +1 -1
  21. package/dist/lib/Components/core/Link/Link.js +21 -20
  22. package/dist/lib/Components/core/Link/types.d.ts +1 -1
  23. package/dist/lib/Components/core/Link/types.d.ts.map +1 -1
  24. package/dist/lib/Components/core/ListItem/ListItem.js +4 -4
  25. package/dist/lib/Components/core/MediaBanner/MediaBanner.js +19 -19
  26. package/dist/lib/Components/core/MediaButton/MediaButton.js +2 -2
  27. package/dist/lib/Components/core/Menu/Menu.d.ts +3 -2
  28. package/dist/lib/Components/core/Menu/Menu.d.ts.map +1 -1
  29. package/dist/lib/Components/core/Menu/Menu.js +157 -108
  30. package/dist/lib/Components/core/Menu/types.d.ts +31 -0
  31. package/dist/lib/Components/core/Menu/types.d.ts.map +1 -1
  32. package/dist/lib/Components/core/NavBar/CoinCapsule.js +8 -8
  33. package/dist/lib/Components/core/Pagination/Pagination.js +14 -14
  34. package/dist/lib/Components/core/Popover/Popover.js +6 -6
  35. package/dist/lib/Components/core/SearchInput/SearchInput.js +5 -5
  36. package/dist/lib/Components/core/SegmentedControl/SegmentedControl.js +19 -19
  37. package/dist/lib/Components/core/Select/Select.js +8 -8
  38. package/dist/lib/Components/core/SideBar/SideBar.js +14 -14
  39. package/dist/lib/Components/core/Spinner/Spinner.js +4 -4
  40. package/dist/lib/Components/core/Spot/Spot.js +9 -9
  41. package/dist/lib/Components/core/Stepper/Stepper.d.ts +4 -3
  42. package/dist/lib/Components/core/Stepper/Stepper.d.ts.map +1 -1
  43. package/dist/lib/Components/core/Stepper/Stepper.js +137 -65
  44. package/dist/lib/Components/core/Stepper/types.d.ts +12 -2
  45. package/dist/lib/Components/core/Stepper/types.d.ts.map +1 -1
  46. package/dist/lib/Components/core/Switch/Switch.js +5 -5
  47. package/dist/lib/Components/core/Table/Table.js +9 -9
  48. package/dist/lib/Components/core/TileButton/TileButton.js +8 -8
  49. package/dist/lib/Components/core/Timeline/Timeline.d.ts +54 -0
  50. package/dist/lib/Components/core/Timeline/Timeline.d.ts.map +1 -0
  51. package/dist/lib/Components/core/Timeline/Timeline.js +228 -0
  52. package/dist/lib/Components/core/Timeline/index.d.ts +3 -0
  53. package/dist/lib/Components/core/Timeline/index.d.ts.map +1 -0
  54. package/dist/lib/Components/core/Timeline/types.d.ts +148 -0
  55. package/dist/lib/Components/core/Timeline/types.d.ts.map +1 -0
  56. package/dist/lib/Components/core/Toast/Toast.d.ts +25 -0
  57. package/dist/lib/Components/core/Toast/Toast.d.ts.map +1 -0
  58. package/dist/lib/Components/core/Toast/Toast.js +68 -0
  59. package/dist/lib/Components/core/Toast/Toaster.d.ts +27 -0
  60. package/dist/lib/Components/core/Toast/Toaster.d.ts.map +1 -0
  61. package/dist/lib/Components/core/Toast/Toaster.js +92 -0
  62. package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts +15 -0
  63. package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts.map +1 -0
  64. package/dist/lib/Components/core/Toast/hooks/useToastCollapse.js +15 -0
  65. package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts +24 -0
  66. package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts.map +1 -0
  67. package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.js +27 -0
  68. package/dist/lib/Components/core/Toast/index.d.ts +5 -0
  69. package/dist/lib/Components/core/Toast/index.d.ts.map +1 -0
  70. package/dist/lib/Components/core/Toast/styles.d.ts +20 -0
  71. package/dist/lib/Components/core/Toast/styles.d.ts.map +1 -0
  72. package/dist/lib/Components/core/Toast/styles.js +77 -0
  73. package/dist/lib/Components/core/Toast/types.d.ts +81 -0
  74. package/dist/lib/Components/core/Toast/types.d.ts.map +1 -0
  75. package/dist/lib/Components/core/Trend/Trend.js +2 -2
  76. package/dist/lib/Components/core/index.d.ts +2 -0
  77. package/dist/lib/Components/core/index.d.ts.map +1 -1
  78. package/dist/lib/Components/internal/BaseButton/BaseButton.js +2 -2
  79. package/dist/lib/Components/internal/BaseInput/BaseInput.js +9 -9
  80. package/dist/lib/Components/internal/BaseInput/BaseInputMultiline.js +12 -12
  81. package/dist/lib/Components/internal/BaseTag/BaseTag.js +8 -8
  82. package/dist/lib/Components/symbols/Icon/Icon.js +4 -4
  83. package/dist/lib/Components/symbols/Icon/createIcon.js +8 -8
  84. package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +6 -6
  85. package/dist/lib/Components/visualization/DonutChart/donutSizeContext.js +2 -2
  86. package/dist/lib/Components/visualization/Legend/Legend.js +8 -8
  87. package/dist/libs/utils-shared/dist/index.js +306 -141
  88. package/dist/package.json +3 -3
  89. 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 a } from "./utils/useControllableState/useControllableState.js";
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 p } from "./lib/Components/core/AmountInput/AmountInput.js";
5
- import { AmountDisplay as d } from "./lib/Components/core/AmountDisplay/AmountDisplay.js";
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 I } 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 A, CardLeading as H, CardTrailing as P } from "./lib/Components/core/Card/Card.js";
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 ae, DialogContent as ne, DialogFooter as ie, DialogTrigger as le } from "./lib/Components/core/Dialog/Dialog.js";
20
- import { DialogHeader as me } from "./lib/Components/core/Dialog/DialogHeader/DialogHeader.js";
21
- import { Divider as Te } from "./lib/Components/core/Divider/Divider.js";
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 Ie } from "./lib/Components/core/DotIndicator/DotIndicator.js";
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 we } from "./lib/Components/core/Link/Link.js";
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 ao, MenuItem as no, MenuLabel as io, MenuRadioGroup as lo, MenuRadioItem as po, MenuSeparator as mo, MenuSub as To, MenuSubContent as xo, MenuSubTrigger as fo, MenuTrigger as Co, createMenuRadioGroup as co } from "./lib/Components/core/Menu/Menu.js";
39
- import { NavBar as uo, NavBarBackButton as go, NavBarCoinCapsule as bo, NavBarDescription as Io, NavBarLeading as so, NavBarTitle as Bo, NavBarTrailing as Do } from "./lib/Components/core/NavBar/NavBar.js";
40
- import { Popover as Lo, PopoverContent as vo, PopoverTrigger as ho, createPopoverHandle as Ro } from "./lib/Components/core/Popover/Popover.js";
41
- import { PageIndicator as Ho } from "./lib/Components/core/PageIndicator/PageIndicator.js";
42
- import { Pagination as wo } from "./lib/Components/core/Pagination/Pagination.js";
43
- import { SearchInput as No } from "./lib/Components/core/SearchInput/SearchInput.js";
44
- import { SectionHeader as Go, SectionHeaderLeading as Eo, SectionHeaderTitle as Fo } from "./lib/Components/core/SectionHeader/SectionHeader.js";
45
- import { SegmentedControl as zo, SegmentedControlButton as Vo, createSegmentedControl as _o } from "./lib/Components/core/SegmentedControl/SegmentedControl.js";
46
- import { Select as qo, SelectContent as Jo, SelectEmptyState as Ko, SelectItem as Qo, SelectItemContent as Uo, SelectItemDescription as Wo, SelectItemText as Xo, SelectList as Yo, SelectSearch as Zo, SelectSeparator as $o, SelectTrigger as et, createSelect as ot } from "./lib/Components/core/Select/Select.js";
47
- import { SideBar as rt, SideBarCollapseToggle as at, SideBarItem as nt, SideBarLeading as it, SideBarTrailing as lt, createSideBar as pt } from "./lib/Components/core/SideBar/SideBar.js";
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 xt } from "./lib/Components/core/Spinner/Spinner.js";
50
- import { Spot as Ct } from "./lib/Components/core/Spot/Spot.js";
51
- import { Stepper as St } from "./lib/Components/core/Stepper/Stepper.js";
52
- import { Subheader as gt, SubheaderCount as bt, SubheaderDescription as It, SubheaderInfo as st, SubheaderRow as Bt, SubheaderShowMore as Dt, SubheaderTitle as Mt } from "./lib/Components/core/Subheader/Subheader.js";
53
- import { Switch as vt } from "./lib/Components/core/Switch/Switch.js";
54
- import { Table as Rt, TableActionBar as At, TableActionBarLeading as Ht, TableActionBarTrailing as Pt, TableBody as wt, TableCell as yt, TableCellContent as Nt, TableCellContentDescription as kt, TableCellContentRow as Gt, TableCellContentTitle as Et, TableCellItem as Ft, TableCol as Ot, TableColGroup as zt, TableGroupHeaderRow as Vt, TableHeader as _t, TableHeaderCell as jt, TableHeaderRow as qt, TableInfoIcon as Jt, TableLoadingRow as Kt, TableRoot as Qt, TableRow as Ut, TableSortButton as Wt } from "./lib/Components/core/Table/Table.js";
55
- import { Tag as Yt } from "./lib/Components/core/Tag/Tag.js";
56
- import { TextInput as $t } from "./lib/Components/core/TextInput/TextInput.js";
57
- import { Tile as or, TileContent as tr, TileDescription as rr, TileSecondaryAction as ar, TileTitle as nr, TileTrailingContent as ir } from "./lib/Components/core/Tile/Tile.js";
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 { Tooltip as dr, TooltipContent as Tr, TooltipProvider as xr, TooltipTrigger as fr } from "./lib/Components/core/Tooltip/Tooltip.js";
60
- import { Trend as cr } from "./lib/Components/core/Trend/Trend.js";
61
- import { ThemeProvider as ur, useTheme as gr } from "./lib/Components/core/ThemeProvider/ThemeProvider.js";
62
- import { COLOR_SCHEMES as Ir } from "./lib/Components/core/ThemeProvider/ThemeProvider.types.js";
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
- d as AmountDisplay,
66
- p as AmountInput,
69
+ T as AmountDisplay,
70
+ m as AmountInput,
67
71
  x as Avatar,
68
72
  S as AvatarButton,
69
73
  g as Banner,
70
- I as Button,
71
- Ir as COLOR_SCHEMES,
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
- A as CardHeader,
84
+ w as CardHeader,
81
85
  H as CardLeading,
82
- P as CardTrailing,
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
- ae as DialogBodyStickyContent,
102
+ ne as DialogBodyStickyContent,
99
103
  ee as DialogClose,
100
- ne as DialogContent,
104
+ ae as DialogContent,
101
105
  ie as DialogFooter,
102
- me as DialogHeader,
106
+ pe as DialogHeader,
103
107
  le as DialogTrigger,
104
- Te as Divider,
108
+ de as Divider,
105
109
  fe as DotCount,
106
110
  ce as DotIcon,
107
- Ie as DotIndicator,
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
- we as Link,
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
- ao as MenuGroup,
132
- no as MenuItem,
135
+ no as MenuGroup,
136
+ ao as MenuItem,
133
137
  io as MenuLabel,
134
138
  lo as MenuRadioGroup,
135
- po as MenuRadioItem,
136
- mo as MenuSeparator,
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 MenuTrigger,
141
- uo as NavBar,
142
- go as NavBarBackButton,
144
+ Co as MenuSwitchItem,
145
+ co as MenuTrigger,
146
+ go as NavBar,
147
+ Io as NavBarBackButton,
143
148
  bo as NavBarCoinCapsule,
144
- Io as NavBarDescription,
145
- so as NavBarLeading,
146
- Bo as NavBarTitle,
147
- Do as NavBarTrailing,
148
- Ho as PageIndicator,
149
- wo as Pagination,
150
- Lo as Popover,
151
- vo as PopoverContent,
152
- ho as PopoverTrigger,
153
- No as SearchInput,
154
- Go as SectionHeader,
155
- Eo as SectionHeaderLeading,
156
- Fo as SectionHeaderTitle,
157
- zo as SegmentedControl,
158
- Vo as SegmentedControlButton,
159
- qo as Select,
160
- Jo as SelectContent,
161
- Ko as SelectEmptyState,
162
- Qo as SelectItem,
163
- Uo as SelectItemContent,
164
- Wo as SelectItemDescription,
165
- Xo as SelectItemText,
166
- Yo as SelectList,
167
- Zo as SelectSearch,
168
- $o as SelectSeparator,
169
- et as SelectTrigger,
170
- rt as SideBar,
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
- nt as SideBarItem,
173
- it as SideBarLeading,
174
- lt as SideBarTrailing,
177
+ it as SideBarItem,
178
+ lt as SideBarLeading,
179
+ mt as SideBarTrailing,
175
180
  dt as Skeleton,
176
- xt as Spinner,
177
- Ct as Spot,
178
- St as Stepper,
179
- gt as Subheader,
181
+ ft as Spinner,
182
+ ct as Spot,
183
+ ut as Stepper,
184
+ It as Subheader,
180
185
  bt as SubheaderCount,
181
- It as SubheaderDescription,
182
- st as SubheaderInfo,
183
- Bt as SubheaderRow,
184
- Dt as SubheaderShowMore,
185
- Mt as SubheaderTitle,
186
- vt as Switch,
187
- Rt as Table,
188
- At as TableActionBar,
189
- Ht as TableActionBarLeading,
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
- wt as TableBody,
192
- yt as TableCell,
193
- Nt as TableCellContent,
194
- kt as TableCellContentDescription,
195
- Gt as TableCellContentRow,
196
- Et as TableCellContentTitle,
197
- Ft as TableCellItem,
198
- Ot as TableCol,
199
- zt as TableColGroup,
200
- Vt as TableGroupHeaderRow,
201
- _t as TableHeader,
202
- jt as TableHeaderCell,
203
- qt as TableHeaderRow,
204
- Jt as TableInfoIcon,
205
- Kt as TableLoadingRow,
206
- Qt as TableRoot,
207
- Ut as TableRow,
208
- Wt as TableSortButton,
209
- Yt as Tag,
210
- $t as TextInput,
211
- ur as ThemeProvider,
212
- or as Tile,
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
- tr as TileContent,
215
- rr as TileDescription,
219
+ rr as TileContent,
220
+ nr as TileDescription,
216
221
  ar as TileSecondaryAction,
217
- nr as TileTitle,
218
- ir as TileTrailingContent,
219
- dr as Tooltip,
220
- Tr as TooltipContent,
221
- xr as TooltipProvider,
222
- fr as TooltipTrigger,
223
- cr as Trend,
224
- co as createMenuRadioGroup,
225
- Ro as createPopoverHandle,
226
- _o as createSegmentedControl,
227
- ot as createSelect,
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
- a as useControllableState,
251
+ Br as toast,
252
+ n as useControllableState,
235
253
  K as useLumenDataTable,
236
- gr as useTheme
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,6MAgBzB,gBAAgB,4CAgFlB,CAAC"}
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 R, jsx as a } from "react/jsx-runtime";
2
- import { useDisabledContext as k, useMergedRef as z, getFontSize as M, cn as p } from "../../../../libs/utils-shared/dist/index.js";
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 D } from "react";
5
- import { useAmountInputValue as F } from "./useAmountInputValue/useAmountInputValue.js";
6
- import { useAutoWidthInput as W } from "./useAutoWidthInput/useAutoWidthInput.js";
7
- const q = i(
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
- ), E = i(
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
- ), O = i("invisible absolute whitespace-pre", {
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
- }), B = i(
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
- ), m = ({ size: r, style: o, children: e }) => /* @__PURE__ */ a("span", { className: p(E({ size: r }), "shrink-0"), style: o, children: e }), U = ({
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: c = "center",
77
+ align: h = "center",
78
78
  currencyText: t,
79
79
  currencyPosition: l = "left",
80
- disabled: f,
81
- maxIntegerLength: h = 9,
82
- maxDecimalLength: g = 9,
83
- allowDecimals: b = !0,
84
- thousandsSeparator: v = !0,
85
- decimalSeparator: x = ".",
86
- value: w,
87
- onChange: y,
88
- ...S
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 C = k({
91
+ const A = M({
91
92
  consumerName: "AmountInput",
92
- mergeWith: { disabled: f }
93
- }), { inputValue: n, isChanging: A, setIsChanging: V, handleChange: j } = F({
94
- value: w,
95
- onChange: y,
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: b,
98
- thousandsSeparator: v,
99
- maxIntegerLength: h,
100
- maxDecimalLength: g,
101
- decimalSeparator: x
98
+ allowDecimals: x,
99
+ thousandsSeparator: w,
100
+ maxIntegerLength: b,
101
+ maxDecimalLength: v,
102
+ decimalSeparator: y
102
103
  }
103
- }), { spanRef: I, inputRef: d } = W({
104
- inputValue: n,
104
+ }), u = n === "" ? d ?? "" : n, { spanRef: k, inputRef: m } = E({
105
+ inputValue: u,
105
106
  currencyText: t,
106
107
  size: e
107
- }), N = z(r, d), s = { fontSize: D(
108
- () => M(n, e) + "px",
108
+ }), R = D(r, m), s = { fontSize: W(
109
+ () => F(n, e) + "px",
109
110
  [n, e]
110
111
  ), letterSpacing: "normal" };
111
- return /* @__PURE__ */ R(
112
+ return /* @__PURE__ */ z(
112
113
  "div",
113
114
  {
114
- className: B({ align: c }),
115
+ className: G({ align: h }),
115
116
  onPointerDown: () => {
116
- const u = d.current;
117
- u && window.requestAnimationFrame(() => {
118
- u.focus();
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(m, { size: e, style: s, children: t }),
123
+ t && l === "left" && /* @__PURE__ */ a(c, { size: e, style: s, children: t }),
123
124
  /* @__PURE__ */ a(
124
125
  "span",
125
126
  {
126
- ref: I,
127
- className: O({ size: e }),
127
+ ref: k,
128
+ className: B({ size: e }),
128
129
  "aria-hidden": "true",
129
130
  style: s,
130
- children: n
131
+ children: u
131
132
  }
132
133
  ),
133
134
  /* @__PURE__ */ a(
134
135
  "input",
135
136
  {
136
- ref: N,
137
+ ref: R,
137
138
  type: "text",
138
139
  inputMode: "decimal",
139
- disabled: C,
140
+ disabled: A,
140
141
  value: n,
141
- onChange: j,
142
- onAnimationEnd: () => V(!1),
143
- className: p(q({ size: e, isChanging: A }), o),
144
- ...S,
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(m, { size: e, style: s, children: t })
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
- U as AmountInput
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 i, useState as g, useRef as d, useEffect as f } from "react";
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 = i(
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 = d(c);
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;
@@ -27,10 +27,10 @@ const t = {
27
27
  function d(e) {
28
28
  return t[o(e)];
29
29
  }
30
- function s(e) {
30
+ function g(e) {
31
31
  return e ? n[e] ?? c : v;
32
32
  }
33
33
  export {
34
- s as getAvatarFallbackTextColor,
34
+ g as getAvatarFallbackTextColor,
35
35
  d as resolveAvatarColor
36
36
  };
@@ -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: t,
6
- className: o,
7
- src: s,
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: t,
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
- o
29
+ s
30
30
  ),
31
31
  ...b,
32
32
  children: [
33
33
  /* @__PURE__ */ e(
34
34
  m,
35
35
  {
36
- src: s,
36
+ src: t,
37
37
  alt: r,
38
38
  size: a,
39
39
  imgLoading: n,