@ledgerhq/lumen-ui-react 0.1.44 → 0.1.46

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 (108) hide show
  1. package/dist/i18n/locales/de.json.d.ts +1 -3
  2. package/dist/i18n/locales/de.json.js +1 -1
  3. package/dist/i18n/locales/en.json.d.ts +1 -3
  4. package/dist/i18n/locales/en.json.js +1 -1
  5. package/dist/i18n/locales/es.json.d.ts +1 -3
  6. package/dist/i18n/locales/es.json.js +1 -1
  7. package/dist/i18n/locales/fr.json.d.ts +1 -3
  8. package/dist/i18n/locales/fr.json.js +1 -1
  9. package/dist/i18n/locales/ja.json.d.ts +1 -3
  10. package/dist/i18n/locales/ja.json.js +2 -2
  11. package/dist/i18n/locales/ko.json.d.ts +1 -3
  12. package/dist/i18n/locales/ko.json.js +2 -2
  13. package/dist/i18n/locales/pt.json.d.ts +1 -3
  14. package/dist/i18n/locales/pt.json.js +1 -1
  15. package/dist/i18n/locales/ru.json.d.ts +1 -3
  16. package/dist/i18n/locales/ru.json.js +1 -1
  17. package/dist/i18n/locales/th.json.d.ts +1 -3
  18. package/dist/i18n/locales/th.json.js +2 -2
  19. package/dist/i18n/locales/tr.json.d.ts +1 -3
  20. package/dist/i18n/locales/tr.json.js +2 -2
  21. package/dist/i18n/locales/zh.json.d.ts +1 -3
  22. package/dist/i18n/locales/zh.json.js +2 -2
  23. package/dist/index.js +172 -164
  24. package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
  25. package/dist/lib/Components/AmountDisplay/AmountDisplay.js +1 -0
  26. package/dist/lib/Components/AmountInput/AmountInput.d.ts +1 -1
  27. package/dist/lib/Components/AmountInput/AmountInput.d.ts.map +1 -1
  28. package/dist/lib/Components/AmountInput/AmountInput.js +34 -32
  29. package/dist/lib/Components/AmountInput/types.d.ts +8 -0
  30. package/dist/lib/Components/AmountInput/types.d.ts.map +1 -1
  31. package/dist/lib/Components/AmountInput/useAmountInputValue/useAmountInputValue.d.ts +1 -0
  32. package/dist/lib/Components/AmountInput/useAmountInputValue/useAmountInputValue.d.ts.map +1 -1
  33. package/dist/lib/Components/AmountInput/useAmountInputValue/useAmountInputValue.js +9 -8
  34. package/dist/lib/Components/Avatar/Avatar.d.ts +1 -4
  35. package/dist/lib/Components/Avatar/Avatar.d.ts.map +1 -1
  36. package/dist/lib/Components/Avatar/Avatar.js +33 -40
  37. package/dist/lib/Components/Avatar/types.d.ts +0 -6
  38. package/dist/lib/Components/Avatar/types.d.ts.map +1 -1
  39. package/dist/lib/Components/BaseInput/BaseInput.js +13 -13
  40. package/dist/lib/Components/Button/BaseButton.d.ts +1 -1
  41. package/dist/lib/Components/Button/Button.js +9 -9
  42. package/dist/lib/Components/Card/Card.js +18 -18
  43. package/dist/lib/Components/DataTable/DataTable.d.ts.map +1 -1
  44. package/dist/lib/Components/DataTable/DataTable.js +97 -80
  45. package/dist/lib/Components/DataTable/types.d.ts +2 -1
  46. package/dist/lib/Components/DataTable/types.d.ts.map +1 -1
  47. package/dist/lib/Components/Divider/Divider.js +4 -4
  48. package/dist/lib/Components/DotIcon/DotIcon.js +5 -5
  49. package/dist/lib/Components/DotIndicator/getDotIndicatorProps.d.ts +24 -0
  50. package/dist/lib/Components/DotIndicator/getDotIndicatorProps.d.ts.map +1 -0
  51. package/dist/lib/Components/DotIndicator/getDotIndicatorProps.js +11 -0
  52. package/dist/lib/Components/DotIndicator/index.d.ts +1 -0
  53. package/dist/lib/Components/DotIndicator/index.d.ts.map +1 -1
  54. package/dist/lib/Components/Icon/Icon.js +4 -4
  55. package/dist/lib/Components/Link/Link.js +6 -6
  56. package/dist/lib/Components/MediaCard/MediaCard.js +4 -4
  57. package/dist/lib/Components/MediaImage/MediaImage.js +6 -6
  58. package/dist/lib/Components/Menu/Menu.d.ts +8 -3
  59. package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
  60. package/dist/lib/Components/Menu/Menu.js +40 -33
  61. package/dist/lib/Components/Menu/types.d.ts +6 -5
  62. package/dist/lib/Components/Menu/types.d.ts.map +1 -1
  63. package/dist/lib/Components/NavBar/NavBar.js +9 -9
  64. package/dist/lib/Components/Pagination/Pagination.js +10 -10
  65. package/dist/lib/Components/Popover/Popover.js +10 -10
  66. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts +8 -3
  67. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  68. package/dist/lib/Components/SegmentedControl/SegmentedControl.js +41 -32
  69. package/dist/lib/Components/SegmentedControl/types.d.ts +6 -5
  70. package/dist/lib/Components/SegmentedControl/types.d.ts.map +1 -1
  71. package/dist/lib/Components/Select/Select.d.ts +19 -5
  72. package/dist/lib/Components/Select/Select.d.ts.map +1 -1
  73. package/dist/lib/Components/Select/Select.js +127 -104
  74. package/dist/lib/Components/Select/index.d.ts +1 -1
  75. package/dist/lib/Components/Select/index.d.ts.map +1 -1
  76. package/dist/lib/Components/Select/types.d.ts +20 -19
  77. package/dist/lib/Components/Select/types.d.ts.map +1 -1
  78. package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts +9 -9
  79. package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts.map +1 -1
  80. package/dist/lib/Components/Select/utils/groupItems.d.ts +2 -2
  81. package/dist/lib/Components/Select/utils/groupItems.d.ts.map +1 -1
  82. package/dist/lib/Components/SideBar/SideBar.d.ts +11 -3
  83. package/dist/lib/Components/SideBar/SideBar.d.ts.map +1 -1
  84. package/dist/lib/Components/SideBar/SideBar.js +61 -51
  85. package/dist/lib/Components/SideBar/index.d.ts +2 -2
  86. package/dist/lib/Components/SideBar/index.d.ts.map +1 -1
  87. package/dist/lib/Components/SideBar/types.d.ts +7 -6
  88. package/dist/lib/Components/SideBar/types.d.ts.map +1 -1
  89. package/dist/lib/Components/Table/Table.d.ts +17 -1
  90. package/dist/lib/Components/Table/Table.d.ts.map +1 -1
  91. package/dist/lib/Components/Table/Table.js +74 -45
  92. package/dist/lib/Components/Table/types.d.ts +23 -0
  93. package/dist/lib/Components/Table/types.d.ts.map +1 -1
  94. package/dist/lib/Components/TileButton/TileButton.js +6 -6
  95. package/dist/lib/Components/Tooltip/Tooltip.js +4 -4
  96. package/dist/lib/Symbols/Icons/ChevronAscending.js +1 -1
  97. package/dist/lib/Symbols/Icons/ChevronDescending.js +1 -1
  98. package/dist/lib/Symbols/Icons/Contact.d.ts +29 -0
  99. package/dist/lib/Symbols/Icons/Contact.d.ts.map +1 -0
  100. package/dist/lib/Symbols/Icons/Contact.js +28 -0
  101. package/dist/lib/Symbols/index.d.ts +1 -0
  102. package/dist/lib/Symbols/index.d.ts.map +1 -1
  103. package/dist/lib/Symbols/index.js +388 -386
  104. package/dist/libs/utils-shared/dist/index.js +149 -148
  105. package/dist/package.json +3 -3
  106. package/package.json +3 -3
  107. package/dist/lib/Components/Design-tokens/shared.d.ts +0 -20
  108. package/dist/lib/Components/Design-tokens/shared.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -1,72 +1,73 @@
1
1
  import { Languages as t } from "./i18n/languages.js";
2
2
  import { AddressInput as a } from "./lib/Components/AddressInput/AddressInput.js";
3
3
  import { AmountInput as i } from "./lib/Components/AmountInput/AmountInput.js";
4
- import { AmountDisplay as m } from "./lib/Components/AmountDisplay/AmountDisplay.js";
4
+ import { AmountDisplay as l } from "./lib/Components/AmountDisplay/AmountDisplay.js";
5
5
  import { Avatar as d } from "./lib/Components/Avatar/Avatar.js";
6
6
  import { Banner as T } from "./lib/Components/Banner/Banner.js";
7
- import { BaseInput as u } from "./lib/Components/BaseInput/BaseInput.js";
8
- import { Button as C } from "./lib/Components/Button/Button.js";
7
+ import { BaseInput as c } from "./lib/Components/BaseInput/BaseInput.js";
8
+ import { Button as S } 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
- import { CardButton as y } from "./lib/Components/CardButton/CardButton.js";
12
- import { Checkbox as P } from "./lib/Components/Checkbox/Checkbox.js";
13
- import { ContentBanner as k, ContentBannerContent as z, ContentBannerDescription as G, ContentBannerTitle as E } from "./lib/Components/ContentBanner/ContentBanner.js";
11
+ import { CardButton as P } from "./lib/Components/CardButton/CardButton.js";
12
+ import { Checkbox as H } from "./lib/Components/Checkbox/Checkbox.js";
13
+ import { ContentBanner as k, ContentBannerContent as G, ContentBannerDescription as z, ContentBannerTitle as E } from "./lib/Components/ContentBanner/ContentBanner.js";
14
14
  import { DataTable as O, DataTableGlobalSearchInput as V, DataTableRoot as _ } from "./lib/Components/DataTable/DataTable.js";
15
15
  import { useLumenDataTable as q } from "./lib/Components/DataTable/useLumenDataTable/useLumenDataTable.js";
16
16
  import { DescriptionItem as K, DescriptionItemLabel as Q, DescriptionItemLeading as U, DescriptionItemTrailing as W, DescriptionItemValue as X } from "./lib/Components/DescriptionItem/DescriptionItem.js";
17
17
  import { DialogClose as Z } from "./lib/Components/Dialog/DialogClose/DialogClose.js";
18
18
  import { Dialog as ee, DialogBody as oe, DialogBodyStickyContent as te, DialogContent as re, DialogFooter as ae, DialogTrigger as ne } from "./lib/Components/Dialog/Dialog.js";
19
19
  import { DialogHeader as pe } from "./lib/Components/Dialog/DialogHeader/DialogHeader.js";
20
- import { Divider as le } from "./lib/Components/Divider/Divider.js";
20
+ import { Divider as me } from "./lib/Components/Divider/Divider.js";
21
21
  import { DotCount as xe } from "./lib/Components/DotCount/DotCount.js";
22
- import { DotIcon as fe, dotIconSizeMap as ue, mediaImageDotIconSizeMap as Se, spotDotIconSizeMap as Ce } from "./lib/Components/DotIcon/DotIcon.js";
22
+ import { DotIcon as fe, dotIconSizeMap as ce, mediaImageDotIconSizeMap as ue, spotDotIconSizeMap as Se } from "./lib/Components/DotIcon/DotIcon.js";
23
23
  import { DotIndicator as ge } from "./lib/Components/DotIndicator/DotIndicator.js";
24
- import { DotSymbol as Be, mediaImageDotSizeMap as be, spotDotSizeMap as se } from "./lib/Components/DotSymbol/DotSymbol.js";
25
- import { IconButton as Me } from "./lib/Components/IconButton/IconButton.js";
26
- import { InteractiveIcon as he } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
27
- import { Link as Re } from "./lib/Components/Link/Link.js";
28
- import { ListItem as Ae, ListItemContent as ye, ListItemContentRow as He, ListItemDescription as Pe, ListItemLeading as Ne, ListItemTitle as ke, ListItemTrailing as ze } from "./lib/Components/ListItem/ListItem.js";
29
- import { MediaBanner as Ee, MediaBannerDescription as Fe, MediaBannerTitle as Oe } from "./lib/Components/MediaBanner/MediaBanner.js";
30
- import { MediaButton as _e } from "./lib/Components/MediaButton/MediaButton.js";
31
- import { MediaCard as qe, MediaCardTitle as Je } from "./lib/Components/MediaCard/MediaCard.js";
32
- import { MediaImage as Qe } from "./lib/Components/MediaImage/MediaImage.js";
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, 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 { Pagination as vo } from "./lib/Components/Pagination/Pagination.js";
39
- import { SearchInput as wo } from "./lib/Components/SearchInput/SearchInput.js";
40
- import { SegmentedControl as yo, SegmentedControlButton as Ho } from "./lib/Components/SegmentedControl/SegmentedControl.js";
41
- import { Select as No, SelectContent as ko, SelectEmptyState as zo, SelectItem as Go, SelectItemContent as Eo, SelectItemDescription as Fo, SelectItemText as Oo, SelectList as Vo, SelectSearch as _o, SelectSeparator as jo, SelectTrigger as qo } from "./lib/Components/Select/Select.js";
42
- import { SideBar as Ko, SideBarCollapseToggle as Qo, SideBarItem as Uo, SideBarLeading as Wo, SideBarTrailing as Xo } from "./lib/Components/SideBar/SideBar.js";
43
- import { Skeleton as Zo } from "./lib/Components/Skeleton/Skeleton.js";
44
- import { Spinner as et } from "./lib/Components/Spinner/Spinner.js";
45
- import { Spot as tt } from "./lib/Components/Spot/Spot.js";
46
- import { Stepper as at } from "./lib/Components/Stepper/Stepper.js";
47
- import { Subheader as it, SubheaderCount as pt, SubheaderDescription as mt, SubheaderInfo as lt, SubheaderRow as dt, SubheaderShowMore as xt, SubheaderTitle as Tt } from "./lib/Components/Subheader/Subheader.js";
48
- import { Switch as ut } from "./lib/Components/Switch/Switch.js";
49
- import { Table as Ct, TableActionBar as ct, TableActionBarLeading as gt, TableActionBarTrailing as It, TableBody as Bt, TableCell as bt, TableCellContent as st, TableGroupHeaderRow as Dt, TableHeader as Mt, TableHeaderCell as Lt, TableHeaderRow as ht, TableInfoIcon as vt, TableLoadingRow as Rt, TableRoot as wt, TableRow as At, TableSortButton as yt } from "./lib/Components/Table/Table.js";
50
- import { Tag as Pt } from "./lib/Components/Tag/Tag.js";
51
- import { TextInput as kt } from "./lib/Components/TextInput/TextInput.js";
52
- import { Tile as Gt, TileContent as Et, TileDescription as Ft, TileSecondaryAction as Ot, TileTitle as Vt, TileTrailingContent as _t } from "./lib/Components/Tile/Tile.js";
53
- import { TileButton as qt } from "./lib/Components/TileButton/TileButton.js";
54
- import { Tooltip as Kt, TooltipContent as Qt, TooltipProvider as Ut, TooltipTrigger as Wt } from "./lib/Components/Tooltip/Tooltip.js";
55
- import { Trend as Yt } from "./lib/Components/Trend/Trend.js";
56
- import { ThemeProvider as $t, useTheme as er } from "./lib/Components/ThemeProvider/ThemeProvider.js";
57
- import { COLOR_SCHEMES as tr } from "./lib/Components/ThemeProvider/ThemeProvider.types.js";
24
+ import { getDotIndicatorProps as Be } from "./lib/Components/DotIndicator/getDotIndicatorProps.js";
25
+ import { DotSymbol as se, mediaImageDotSizeMap as De, spotDotSizeMap as Me } from "./lib/Components/DotSymbol/DotSymbol.js";
26
+ import { IconButton as he } from "./lib/Components/IconButton/IconButton.js";
27
+ import { InteractiveIcon as Re } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
28
+ import { Link as Ae } from "./lib/Components/Link/Link.js";
29
+ import { ListItem as ye, ListItemContent as He, ListItemContentRow as Ne, ListItemDescription as ke, ListItemLeading as Ge, ListItemTitle as ze, ListItemTrailing as Ee } from "./lib/Components/ListItem/ListItem.js";
30
+ import { MediaBanner as Oe, MediaBannerDescription as Ve, MediaBannerTitle as _e } from "./lib/Components/MediaBanner/MediaBanner.js";
31
+ import { MediaButton as qe } from "./lib/Components/MediaButton/MediaButton.js";
32
+ import { MediaCard as Ke, MediaCardTitle as Qe } from "./lib/Components/MediaCard/MediaCard.js";
33
+ import { MediaImage as We } from "./lib/Components/MediaImage/MediaImage.js";
34
+ import { MediaTag as Ye } from "./lib/Components/MediaTag/MediaTag.js";
35
+ import { Menu as $e, MenuCheckboxItem as eo, MenuContent as oo, MenuGroup as to, MenuItem as ro, MenuLabel as ao, MenuRadioGroup as no, MenuRadioItem as io, MenuSeparator as po, MenuSub as lo, MenuSubContent as mo, MenuSubTrigger as xo, MenuTrigger as To, createMenuRadioGroup as fo } from "./lib/Components/Menu/Menu.js";
36
+ import { NavBar as uo, NavBarBackButton as So, NavBarCoinCapsule as Co, NavBarDescription as go, NavBarLeading as Io, NavBarTitle as Bo, NavBarTrailing as bo } from "./lib/Components/NavBar/NavBar.js";
37
+ import { Popover as Do, PopoverContent as Mo, PopoverTrigger as Lo, createPopoverHandle as ho } from "./lib/Components/Popover/Popover.js";
38
+ import { PageIndicator as Ro } from "./lib/Components/PageIndicator/PageIndicator.js";
39
+ import { Pagination as Ao } from "./lib/Components/Pagination/Pagination.js";
40
+ import { SearchInput as yo } from "./lib/Components/SearchInput/SearchInput.js";
41
+ import { SegmentedControl as No, SegmentedControlButton as ko, createSegmentedControl as Go } from "./lib/Components/SegmentedControl/SegmentedControl.js";
42
+ import { Select as Eo, SelectContent as Fo, SelectEmptyState as Oo, SelectItem as Vo, SelectItemContent as _o, SelectItemDescription as jo, SelectItemText as qo, SelectList as Jo, SelectSearch as Ko, SelectSeparator as Qo, SelectTrigger as Uo, createSelect as Wo } from "./lib/Components/Select/Select.js";
43
+ import { SideBar as Yo, SideBarCollapseToggle as Zo, SideBarItem as $o, SideBarLeading as et, SideBarTrailing as ot, createSideBar as tt } from "./lib/Components/SideBar/SideBar.js";
44
+ import { Skeleton as at } from "./lib/Components/Skeleton/Skeleton.js";
45
+ import { Spinner as it } from "./lib/Components/Spinner/Spinner.js";
46
+ import { Spot as lt } from "./lib/Components/Spot/Spot.js";
47
+ import { Stepper as dt } from "./lib/Components/Stepper/Stepper.js";
48
+ import { Subheader as Tt, SubheaderCount as ft, SubheaderDescription as ct, SubheaderInfo as ut, SubheaderRow as St, SubheaderShowMore as Ct, SubheaderTitle as gt } from "./lib/Components/Subheader/Subheader.js";
49
+ import { Switch as Bt } from "./lib/Components/Switch/Switch.js";
50
+ import { Table as st, TableActionBar as Dt, TableActionBarLeading as Mt, TableActionBarTrailing as Lt, TableBody as ht, TableCell as vt, TableCellContent as Rt, TableCol as wt, TableColGroup as At, TableGroupHeaderRow as Pt, TableHeader as yt, TableHeaderCell as Ht, TableHeaderRow as Nt, TableInfoIcon as kt, TableLoadingRow as Gt, TableRoot as zt, TableRow as Et, TableSortButton as Ft } from "./lib/Components/Table/Table.js";
51
+ import { Tag as Vt } from "./lib/Components/Tag/Tag.js";
52
+ import { TextInput as jt } from "./lib/Components/TextInput/TextInput.js";
53
+ import { Tile as Jt, TileContent as Kt, TileDescription as Qt, TileSecondaryAction as Ut, TileTitle as Wt, TileTrailingContent as Xt } from "./lib/Components/Tile/Tile.js";
54
+ import { TileButton as Zt } from "./lib/Components/TileButton/TileButton.js";
55
+ import { Tooltip as er, TooltipContent as or, TooltipProvider as tr, TooltipTrigger as rr } from "./lib/Components/Tooltip/Tooltip.js";
56
+ import { Trend as nr } from "./lib/Components/Trend/Trend.js";
57
+ import { ThemeProvider as pr, useTheme as lr } from "./lib/Components/ThemeProvider/ThemeProvider.js";
58
+ import { COLOR_SCHEMES as dr } from "./lib/Components/ThemeProvider/ThemeProvider.types.js";
58
59
  export {
59
60
  a as AddressInput,
60
- m as AmountDisplay,
61
+ l as AmountDisplay,
61
62
  i as AmountInput,
62
63
  d as Avatar,
63
64
  T as Banner,
64
65
  g as BaseButton,
65
- u as BaseInput,
66
- C as Button,
67
- tr as COLOR_SCHEMES,
66
+ c as BaseInput,
67
+ S as Button,
68
+ dr as COLOR_SCHEMES,
68
69
  B as Card,
69
- y as CardButton,
70
+ P as CardButton,
70
71
  b as CardContent,
71
72
  s as CardContentDescription,
72
73
  D as CardContentRow,
@@ -76,10 +77,10 @@ export {
76
77
  v as CardHeader,
77
78
  R as CardLeading,
78
79
  w as CardTrailing,
79
- P as Checkbox,
80
+ H as Checkbox,
80
81
  k as ContentBanner,
81
- z as ContentBannerContent,
82
- G as ContentBannerDescription,
82
+ G as ContentBannerContent,
83
+ z as ContentBannerDescription,
83
84
  E as ContentBannerTitle,
84
85
  O as DataTable,
85
86
  V as DataTableGlobalSearchInput,
@@ -97,123 +98,130 @@ export {
97
98
  ae as DialogFooter,
98
99
  pe as DialogHeader,
99
100
  ne as DialogTrigger,
100
- le as Divider,
101
+ me as Divider,
101
102
  xe as DotCount,
102
103
  fe as DotIcon,
103
104
  ge as DotIndicator,
104
- Be as DotSymbol,
105
- Me as IconButton,
106
- he as InteractiveIcon,
105
+ se as DotSymbol,
106
+ he as IconButton,
107
+ Re as InteractiveIcon,
107
108
  t as Languages,
108
- Re as Link,
109
- Ae as ListItem,
110
- ye as ListItemContent,
111
- He as ListItemContentRow,
112
- Pe as ListItemDescription,
113
- Ne as ListItemLeading,
114
- ke as ListItemTitle,
115
- ze as ListItemTrailing,
116
- Ee as MediaBanner,
117
- Fe as MediaBannerDescription,
118
- Oe as MediaBannerTitle,
119
- _e as MediaButton,
120
- qe as MediaCard,
121
- Je as MediaCardTitle,
122
- Qe as MediaImage,
123
- We as MediaTag,
124
- Ye as Menu,
125
- Ze as MenuCheckboxItem,
126
- $e as MenuContent,
127
- eo as MenuGroup,
128
- oo as MenuItem,
129
- to as MenuLabel,
130
- ro as MenuRadioGroup,
131
- ao as MenuRadioItem,
132
- no as MenuSeparator,
133
- io as MenuSub,
134
- po as MenuSubContent,
135
- mo as MenuSubTrigger,
136
- lo as MenuTrigger,
137
- To as NavBar,
138
- fo as NavBarBackButton,
139
- uo as NavBarCoinCapsule,
140
- So as NavBarDescription,
141
- Co as NavBarLeading,
142
- co as NavBarTitle,
143
- go as NavBarTrailing,
144
- Lo as PageIndicator,
145
- vo as Pagination,
146
- Bo as Popover,
147
- bo as PopoverContent,
148
- so as PopoverTrigger,
149
- wo as SearchInput,
150
- yo as SegmentedControl,
151
- Ho as SegmentedControlButton,
152
- No as Select,
153
- ko as SelectContent,
154
- zo as SelectEmptyState,
155
- Go as SelectItem,
156
- Eo as SelectItemContent,
157
- Fo as SelectItemDescription,
158
- Oo as SelectItemText,
159
- Vo as SelectList,
160
- _o as SelectSearch,
161
- jo as SelectSeparator,
162
- qo as SelectTrigger,
163
- Ko as SideBar,
164
- Qo as SideBarCollapseToggle,
165
- Uo as SideBarItem,
166
- Wo as SideBarLeading,
167
- Xo as SideBarTrailing,
168
- Zo as Skeleton,
169
- et as Spinner,
170
- tt as Spot,
171
- at as Stepper,
172
- it as Subheader,
173
- pt as SubheaderCount,
174
- mt as SubheaderDescription,
175
- lt as SubheaderInfo,
176
- dt as SubheaderRow,
177
- xt as SubheaderShowMore,
178
- Tt as SubheaderTitle,
179
- ut as Switch,
180
- Ct as Table,
181
- ct as TableActionBar,
182
- gt as TableActionBarLeading,
183
- It as TableActionBarTrailing,
184
- Bt as TableBody,
185
- bt as TableCell,
186
- st as TableCellContent,
187
- Dt as TableGroupHeaderRow,
188
- Mt as TableHeader,
189
- Lt as TableHeaderCell,
190
- ht as TableHeaderRow,
191
- vt as TableInfoIcon,
192
- Rt as TableLoadingRow,
193
- wt as TableRoot,
194
- At as TableRow,
195
- yt as TableSortButton,
196
- Pt as Tag,
197
- kt as TextInput,
198
- $t as ThemeProvider,
199
- Gt as Tile,
200
- qt as TileButton,
201
- Et as TileContent,
202
- Ft as TileDescription,
203
- Ot as TileSecondaryAction,
204
- Vt as TileTitle,
205
- _t as TileTrailingContent,
206
- Kt as Tooltip,
207
- Qt as TooltipContent,
208
- Ut as TooltipProvider,
209
- Wt as TooltipTrigger,
210
- Yt as Trend,
211
- Do as createPopoverHandle,
212
- ue as dotIconSizeMap,
213
- Se as mediaImageDotIconSizeMap,
214
- be as mediaImageDotSizeMap,
215
- Ce as spotDotIconSizeMap,
216
- se as spotDotSizeMap,
109
+ Ae as Link,
110
+ ye as ListItem,
111
+ He as ListItemContent,
112
+ Ne as ListItemContentRow,
113
+ ke as ListItemDescription,
114
+ Ge as ListItemLeading,
115
+ ze as ListItemTitle,
116
+ Ee as ListItemTrailing,
117
+ Oe as MediaBanner,
118
+ Ve as MediaBannerDescription,
119
+ _e as MediaBannerTitle,
120
+ qe as MediaButton,
121
+ Ke as MediaCard,
122
+ Qe as MediaCardTitle,
123
+ We as MediaImage,
124
+ Ye as MediaTag,
125
+ $e as Menu,
126
+ eo as MenuCheckboxItem,
127
+ oo as MenuContent,
128
+ to as MenuGroup,
129
+ ro as MenuItem,
130
+ ao as MenuLabel,
131
+ no as MenuRadioGroup,
132
+ io as MenuRadioItem,
133
+ po as MenuSeparator,
134
+ lo as MenuSub,
135
+ mo as MenuSubContent,
136
+ xo as MenuSubTrigger,
137
+ To as MenuTrigger,
138
+ uo as NavBar,
139
+ So as NavBarBackButton,
140
+ Co as NavBarCoinCapsule,
141
+ go as NavBarDescription,
142
+ Io as NavBarLeading,
143
+ Bo as NavBarTitle,
144
+ bo as NavBarTrailing,
145
+ Ro as PageIndicator,
146
+ Ao as Pagination,
147
+ Do as Popover,
148
+ Mo as PopoverContent,
149
+ Lo as PopoverTrigger,
150
+ yo as SearchInput,
151
+ No as SegmentedControl,
152
+ ko as SegmentedControlButton,
153
+ Eo as Select,
154
+ Fo as SelectContent,
155
+ Oo as SelectEmptyState,
156
+ Vo as SelectItem,
157
+ _o as SelectItemContent,
158
+ jo as SelectItemDescription,
159
+ qo as SelectItemText,
160
+ Jo as SelectList,
161
+ Ko as SelectSearch,
162
+ Qo as SelectSeparator,
163
+ Uo as SelectTrigger,
164
+ Yo as SideBar,
165
+ Zo as SideBarCollapseToggle,
166
+ $o as SideBarItem,
167
+ et as SideBarLeading,
168
+ ot as SideBarTrailing,
169
+ at as Skeleton,
170
+ it as Spinner,
171
+ lt as Spot,
172
+ dt as Stepper,
173
+ Tt as Subheader,
174
+ ft as SubheaderCount,
175
+ ct as SubheaderDescription,
176
+ ut as SubheaderInfo,
177
+ St as SubheaderRow,
178
+ Ct as SubheaderShowMore,
179
+ gt as SubheaderTitle,
180
+ Bt as Switch,
181
+ st as Table,
182
+ Dt as TableActionBar,
183
+ Mt as TableActionBarLeading,
184
+ Lt as TableActionBarTrailing,
185
+ ht as TableBody,
186
+ vt as TableCell,
187
+ Rt as TableCellContent,
188
+ wt as TableCol,
189
+ At as TableColGroup,
190
+ Pt as TableGroupHeaderRow,
191
+ yt as TableHeader,
192
+ Ht as TableHeaderCell,
193
+ Nt as TableHeaderRow,
194
+ kt as TableInfoIcon,
195
+ Gt as TableLoadingRow,
196
+ zt as TableRoot,
197
+ Et as TableRow,
198
+ Ft as TableSortButton,
199
+ Vt as Tag,
200
+ jt as TextInput,
201
+ pr as ThemeProvider,
202
+ Jt as Tile,
203
+ Zt as TileButton,
204
+ Kt as TileContent,
205
+ Qt as TileDescription,
206
+ Ut as TileSecondaryAction,
207
+ Wt as TileTitle,
208
+ Xt as TileTrailingContent,
209
+ er as Tooltip,
210
+ or as TooltipContent,
211
+ tr as TooltipProvider,
212
+ rr as TooltipTrigger,
213
+ nr as Trend,
214
+ fo as createMenuRadioGroup,
215
+ ho as createPopoverHandle,
216
+ Go as createSegmentedControl,
217
+ Wo as createSelect,
218
+ tt as createSideBar,
219
+ ce as dotIconSizeMap,
220
+ Be as getDotIndicatorProps,
221
+ ue as mediaImageDotIconSizeMap,
222
+ De as mediaImageDotSizeMap,
223
+ Se as spotDotIconSizeMap,
224
+ Me as spotDotSizeMap,
217
225
  q as useLumenDataTable,
218
- er as useTheme
226
+ lr as useTheme
219
227
  };
@@ -1 +1 @@
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;AAqHjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;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
+ {"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;AAqHjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,SAAS,EACT,MAAc,EACd,OAAe,EACf,OAAc,EACd,IAAW,EACX,SAAS,EACT,GAAG,KAAK,EACT,EAAE,kBAAkB,2CA8DpB"}
@@ -129,6 +129,7 @@ function A({
129
129
  "relative inline-flex",
130
130
  f
131
131
  ),
132
+ role: "img",
132
133
  "aria-label": x,
133
134
  "aria-busy": t,
134
135
  ...g,
@@ -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, 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, ...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/AmountInput/AmountInput.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAmB,MAAM,SAAS,CAAC;AA0FjE;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,2LAezB,gBAAgB,4CA+ElB,CAAC"}
1
+ {"version":3,"file":"AmountInput.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/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,10 +1,10 @@
1
- import { jsxs as N, jsx as a } from "react/jsx-runtime";
2
- import { useDisabledContext as R, useMergedRef as k, getFontSize as z, cn as p } from "../../../libs/utils-shared/dist/index.js";
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";
3
3
  import { cva as i } from "class-variance-authority";
4
- import { useMemo as M } from "react";
5
- import { useAmountInputValue as D } from "./useAmountInputValue/useAmountInputValue.js";
6
- import { useAutoWidthInput as F } from "./useAutoWidthInput/useAutoWidthInput.js";
7
- const W = i(
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(
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 W = i(
28
28
  isChanging: !1
29
29
  }
30
30
  }
31
- ), q = i(
31
+ ), E = i(
32
32
  [
33
33
  "cursor-text text-base",
34
34
  "group-has-[input:placeholder-shown]:text-muted-subtle",
@@ -46,7 +46,7 @@ const W = i(
46
46
  size: "md"
47
47
  }
48
48
  }
49
- ), E = i("invisible absolute whitespace-pre", {
49
+ ), O = i("invisible absolute whitespace-pre", {
50
50
  variants: {
51
51
  size: {
52
52
  md: "heading-0-semi-bold",
@@ -56,7 +56,7 @@ const W = i(
56
56
  defaultVariants: {
57
57
  size: "md"
58
58
  }
59
- }), J = i(
59
+ }), B = i(
60
60
  "group relative flex w-full items-center overflow-visible transition-transform",
61
61
  {
62
62
  variants: {
@@ -70,7 +70,7 @@ const W = i(
70
70
  align: "center"
71
71
  }
72
72
  }
73
- ), m = ({ size: r, style: o, children: e }) => /* @__PURE__ */ a("span", { className: p(q({ size: r }), "shrink-0"), style: o, children: e }), Q = ({
73
+ ), m = ({ size: r, style: o, children: e }) => /* @__PURE__ */ a("span", { className: p(E({ size: r }), "shrink-0"), style: o, children: e }), U = ({
74
74
  ref: r,
75
75
  className: o,
76
76
  size: e = "md",
@@ -82,34 +82,36 @@ const W = i(
82
82
  maxDecimalLength: g = 9,
83
83
  allowDecimals: b = !0,
84
84
  thousandsSeparator: v = !0,
85
- value: x,
86
- onChange: w,
87
- ...y
85
+ decimalSeparator: x = ".",
86
+ value: w,
87
+ onChange: y,
88
+ ...S
88
89
  }) => {
89
- const S = R({
90
+ const C = k({
90
91
  consumerName: "AmountInput",
91
92
  mergeWith: { disabled: f }
92
- }), { inputValue: n, isChanging: C, setIsChanging: A, handleChange: V } = D({
93
- value: x,
94
- onChange: w,
93
+ }), { inputValue: n, isChanging: A, setIsChanging: V, handleChange: j } = F({
94
+ value: w,
95
+ onChange: y,
95
96
  formatOptions: {
96
97
  allowDecimals: b,
97
98
  thousandsSeparator: v,
98
99
  maxIntegerLength: h,
99
- maxDecimalLength: g
100
+ maxDecimalLength: g,
101
+ decimalSeparator: x
100
102
  }
101
- }), { spanRef: j, inputRef: d } = F({
103
+ }), { spanRef: I, inputRef: d } = W({
102
104
  inputValue: n,
103
105
  currencyText: t,
104
106
  size: e
105
- }), I = k(r, d), s = { fontSize: M(
106
- () => z(n, e) + "px",
107
+ }), N = z(r, d), s = { fontSize: D(
108
+ () => M(n, e) + "px",
107
109
  [n, e]
108
110
  ), letterSpacing: "normal" };
109
- return /* @__PURE__ */ N(
111
+ return /* @__PURE__ */ R(
110
112
  "div",
111
113
  {
112
- className: J({ align: c }),
114
+ className: B({ align: c }),
113
115
  onPointerDown: () => {
114
116
  const u = d.current;
115
117
  u && window.requestAnimationFrame(() => {
@@ -121,8 +123,8 @@ const W = i(
121
123
  /* @__PURE__ */ a(
122
124
  "span",
123
125
  {
124
- ref: j,
125
- className: E({ size: e }),
126
+ ref: I,
127
+ className: O({ size: e }),
126
128
  "aria-hidden": "true",
127
129
  style: s,
128
130
  children: n
@@ -131,15 +133,15 @@ const W = i(
131
133
  /* @__PURE__ */ a(
132
134
  "input",
133
135
  {
134
- ref: I,
136
+ ref: N,
135
137
  type: "text",
136
138
  inputMode: "decimal",
137
- disabled: S,
139
+ disabled: C,
138
140
  value: n,
139
- onChange: V,
140
- onAnimationEnd: () => A(!1),
141
- className: p(W({ size: e, isChanging: C }), o),
142
- ...y,
141
+ onChange: j,
142
+ onAnimationEnd: () => V(!1),
143
+ className: p(q({ size: e, isChanging: A }), o),
144
+ ...S,
143
145
  style: s
144
146
  }
145
147
  ),
@@ -149,5 +151,5 @@ const W = i(
149
151
  );
150
152
  };
151
153
  export {
152
- Q as AmountInput
154
+ U as AmountInput
153
155
  };
@@ -55,5 +55,13 @@ export type AmountInputProps = {
55
55
  * @default true
56
56
  */
57
57
  thousandsSeparator?: boolean;
58
+ /**
59
+ * Character used to display the decimal separator (e.g. `1 234,5` vs `1 234.5`).
60
+ * Typing always accepts both `,` and `.` regardless of this value, so it stays
61
+ * compatible with any locale keyboard. The value returned by `onChange` uses
62
+ * this separator.
63
+ * @default '.'
64
+ */
65
+ decimalSeparator?: '.' | ',';
58
66
  } & Omit<ComponentPropsWithRef<'input'>, 'size' | 'prefix' | 'value' | 'onChange'>;
59
67
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/AmountInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEhE,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1C,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;AAE1D,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACzD;;;OAGG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;OAGG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACpC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,GAAG,IAAI,CACN,qBAAqB,CAAC,OAAO,CAAC,EAC9B,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CACzC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/AmountInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEhE,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1C,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;AAE1D,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACzD;;;OAGG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;OAGG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACpC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC;CAC9B,GAAG,IAAI,CACN,qBAAqB,CAAC,OAAO,CAAC,EAC9B,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CACzC,CAAC"}
@@ -4,6 +4,7 @@ type FormatOptions = {
4
4
  thousandsSeparator: boolean;
5
5
  maxIntegerLength: number;
6
6
  maxDecimalLength: number;
7
+ decimalSeparator: '.' | ',';
7
8
  };
8
9
  type UseAmountInputValueArgs = {
9
10
  value: string | number;
@@ -1 +1 @@
1
- {"version":3,"file":"useAmountInputValue.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/AmountInput/useAmountInputValue/useAmountInputValue.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,KAAK,aAAa,GAAG;IACnB,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACzD,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7D,YAAY,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,qCAIjC,uBAAuB,KAAG,yBAiC5B,CAAC"}
1
+ {"version":3,"file":"useAmountInputValue.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/AmountInput/useAmountInputValue/useAmountInputValue.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,KAAK,aAAa,GAAG;IACnB,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,GAAG,GAAG,GAAG,CAAC;CAC7B,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACzD,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7D,YAAY,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,qCAIjC,uBAAuB,KAAG,yBAkC5B,CAAC"}
@@ -1,26 +1,27 @@
1
1
  import { textFormatter as m } from "../../../../libs/utils-shared/dist/index.js";
2
- import { useCallback as f, useState as g, useRef as i, useEffect as d } 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 = f(
8
+ const a = d(
9
9
  (e) => m(String(e), t),
10
10
  // eslint-disable-next-line react-hooks/exhaustive-deps
11
11
  [
12
12
  t.allowDecimals,
13
13
  t.thousandsSeparator,
14
14
  t.maxIntegerLength,
15
- t.maxDecimalLength
15
+ t.maxDecimalLength,
16
+ t.decimalSeparator
16
17
  ]
17
- ), [s, c] = g(() => a(r)), [h, l] = g(!1), u = i(s);
18
- return d(() => {
18
+ ), [c, s] = g(() => a(r)), [h, l] = g(!1), u = i(c);
19
+ return f(() => {
19
20
  const e = a(r);
20
- c(e), u.current = e;
21
- }, [r, a]), { inputValue: s, isChanging: h, setIsChanging: l, handleChange: (e) => {
21
+ s(e), u.current = e;
22
+ }, [r, a]), { inputValue: c, isChanging: h, setIsChanging: l, handleChange: (e) => {
22
23
  const n = a(e.target.value);
23
- c(n), o({ ...e, target: { ...e.target, value: n } }), n !== u.current && l(!0), u.current = n;
24
+ s(n), o({ ...e, target: { ...e.target, value: n } }), n !== u.current && l(!0), u.current = n;
24
25
  } };
25
26
  };
26
27
  export {