@ledgerhq/lumen-ui-react 0.1.23 → 0.1.25

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 (55) hide show
  1. package/dist/index.js +163 -154
  2. package/dist/lib/Components/DotCount/DotCount.d.ts +6 -0
  3. package/dist/lib/Components/DotCount/DotCount.d.ts.map +1 -0
  4. package/dist/lib/Components/DotCount/DotCount.js +92 -0
  5. package/dist/lib/Components/DotCount/index.d.ts +3 -0
  6. package/dist/lib/Components/DotCount/index.d.ts.map +1 -0
  7. package/dist/lib/Components/DotCount/types.d.ts +39 -0
  8. package/dist/lib/Components/DotCount/types.d.ts.map +1 -0
  9. package/dist/lib/Components/DotIcon/DotIcon.d.ts +32 -0
  10. package/dist/lib/Components/DotIcon/DotIcon.d.ts.map +1 -0
  11. package/dist/lib/Components/DotIcon/DotIcon.js +97 -0
  12. package/dist/lib/Components/DotIcon/index.d.ts +3 -0
  13. package/dist/lib/Components/DotIcon/index.d.ts.map +1 -0
  14. package/dist/lib/Components/DotIcon/types.d.ts +42 -0
  15. package/dist/lib/Components/DotIcon/types.d.ts.map +1 -0
  16. package/dist/lib/Components/DotIndicator/DotIndicator.d.ts +6 -0
  17. package/dist/lib/Components/DotIndicator/DotIndicator.d.ts.map +1 -0
  18. package/dist/lib/Components/DotIndicator/DotIndicator.js +66 -0
  19. package/dist/lib/Components/DotIndicator/index.d.ts +3 -0
  20. package/dist/lib/Components/DotIndicator/index.d.ts.map +1 -0
  21. package/dist/lib/Components/DotIndicator/types.d.ts +24 -0
  22. package/dist/lib/Components/DotIndicator/types.d.ts.map +1 -0
  23. package/dist/lib/Components/DotSymbol/DotSymbol.d.ts.map +1 -1
  24. package/dist/lib/Components/DotSymbol/DotSymbol.js +2 -1
  25. package/dist/lib/Components/MediaImage/MediaImage.d.ts.map +1 -1
  26. package/dist/lib/Components/MediaImage/MediaImage.js +8 -7
  27. package/dist/lib/Components/MediaImage/types.d.ts +1 -1
  28. package/dist/lib/Components/MediaImage/types.d.ts.map +1 -1
  29. package/dist/lib/Components/Select/Select.d.ts +4 -4
  30. package/dist/lib/Components/Select/Select.d.ts.map +1 -1
  31. package/dist/lib/Components/Select/Select.js +135 -126
  32. package/dist/lib/Components/Select/SelectContext.d.ts +1 -0
  33. package/dist/lib/Components/Select/SelectContext.d.ts.map +1 -1
  34. package/dist/lib/Components/Select/index.d.ts +1 -1
  35. package/dist/lib/Components/Select/index.d.ts.map +1 -1
  36. package/dist/lib/Components/Select/types.d.ts +20 -14
  37. package/dist/lib/Components/Select/types.d.ts.map +1 -1
  38. package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts +10 -9
  39. package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts.map +1 -1
  40. package/dist/lib/Components/Select/useSelectItems/useSelectItems.js +16 -15
  41. package/dist/lib/Components/Select/utils/groupItems.d.ts +8 -2
  42. package/dist/lib/Components/Select/utils/groupItems.d.ts.map +1 -1
  43. package/dist/lib/Components/Select/utils/groupItems.js +13 -11
  44. package/dist/lib/Components/Select/utils/index.d.ts +1 -1
  45. package/dist/lib/Components/Select/utils/index.d.ts.map +1 -1
  46. package/dist/lib/Components/Tag/Tag.d.ts.map +1 -1
  47. package/dist/lib/Components/Tag/Tag.js +15 -14
  48. package/dist/lib/Components/Tag/types.d.ts +1 -1
  49. package/dist/lib/Components/Tag/types.d.ts.map +1 -1
  50. package/dist/lib/Components/ThemeProvider/ThemeProvider.d.ts +1 -1
  51. package/dist/lib/Components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  52. package/dist/lib/Components/index.d.ts +3 -0
  53. package/dist/lib/Components/index.d.ts.map +1 -1
  54. package/dist/package.json +2 -2
  55. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3,77 +3,80 @@ import { AddressInput as a } from "./lib/Components/AddressInput/AddressInput.js
3
3
  import { AmountInput as i } from "./lib/Components/AmountInput/AmountInput.js";
4
4
  import { AmountDisplay as l } from "./lib/Components/AmountDisplay/AmountDisplay.js";
5
5
  import { Avatar as d } from "./lib/Components/Avatar/Avatar.js";
6
- import { Banner as x } from "./lib/Components/Banner/Banner.js";
6
+ import { Banner as T } from "./lib/Components/Banner/Banner.js";
7
7
  import { BaseInput as u } from "./lib/Components/BaseInput/BaseInput.js";
8
- import { Button as S } from "./lib/Components/Button/Button.js";
9
- import { BaseButton as c } from "./lib/Components/Button/BaseButton.js";
10
- import { Card as b, CardContent as I, CardContentDescription as s, CardContentRow as M, CardContentTitle as D, CardFooter as L, CardFooterActions as h, CardHeader as v, CardLeading as R, CardTrailing as w } from "./lib/Components/Card/Card.js";
8
+ import { Button as C } from "./lib/Components/Button/Button.js";
9
+ import { BaseButton as g } from "./lib/Components/Button/BaseButton.js";
10
+ import { Card as I, CardContent as b, CardContentDescription as s, CardContentRow as D, CardContentTitle as M, CardFooter as L, CardFooterActions as h, CardHeader as v, CardLeading as R, CardTrailing as w } from "./lib/Components/Card/Card.js";
11
11
  import { CardButton as y } from "./lib/Components/CardButton/CardButton.js";
12
- import { ContentBanner as P, ContentBannerContent as k, ContentBannerDescription as N, ContentBannerTitle as G } from "./lib/Components/ContentBanner/ContentBanner.js";
13
- import { Checkbox as F } from "./lib/Components/Checkbox/Checkbox.js";
12
+ import { ContentBanner as P, ContentBannerContent as k, ContentBannerDescription as z, ContentBannerTitle as N } from "./lib/Components/ContentBanner/ContentBanner.js";
13
+ import { Checkbox as E } from "./lib/Components/Checkbox/Checkbox.js";
14
14
  import { DataTable as O, DataTableGlobalSearchInput as _, DataTableRoot as j } from "./lib/Components/DataTable/DataTable.js";
15
15
  import { useLumenDataTable as J } from "./lib/Components/DataTable/useLumenDataTable/useLumenDataTable.js";
16
16
  import { DialogClose as Q } from "./lib/Components/Dialog/DialogClose/DialogClose.js";
17
17
  import { Dialog as V, DialogBody as W, DialogBodyStickyContent as X, DialogContent as Y, DialogFooter as Z, DialogTrigger as $ } from "./lib/Components/Dialog/Dialog.js";
18
18
  import { DialogHeader as oe } from "./lib/Components/Dialog/DialogHeader/DialogHeader.js";
19
19
  import { Divider as re } from "./lib/Components/Divider/Divider.js";
20
- import { DotSymbol as ne, mediaImageDotSizeMap as ie, spotDotSizeMap as pe } from "./lib/Components/DotSymbol/DotSymbol.js";
21
- import { IconButton as me } from "./lib/Components/IconButton/IconButton.js";
22
- import { InteractiveIcon as Te } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
23
- import { Link as fe } from "./lib/Components/Link/Link.js";
24
- import { ListItem as Ce, ListItemContent as Se, ListItemContentRow as ge, ListItemDescription as ce, ListItemLeading as Be, ListItemTitle as be, ListItemTrailing as Ie } from "./lib/Components/ListItem/ListItem.js";
25
- import { MediaBanner as Me, MediaBannerDescription as De, MediaBannerTitle as Le } from "./lib/Components/MediaBanner/MediaBanner.js";
26
- import { MediaButton as ve } from "./lib/Components/MediaButton/MediaButton.js";
27
- import { MediaCard as we, MediaCardTitle as Ae } from "./lib/Components/MediaCard/MediaCard.js";
28
- import { MediaImage as He } from "./lib/Components/MediaImage/MediaImage.js";
29
- import { Menu as ke, MenuCheckboxItem as Ne, MenuContent as Ge, MenuGroup as Ee, MenuItem as Fe, MenuLabel as ze, MenuPortal as Oe, MenuRadioGroup as _e, MenuRadioItem as je, MenuSeparator as qe, MenuSub as Je, MenuSubContent as Ke, MenuSubTrigger as Qe, MenuTrigger as Ue } from "./lib/Components/Menu/Menu.js";
30
- import { NavBar as We, NavBarBackButton as Xe, NavBarCoinCapsule as Ye, NavBarTitle as Ze, NavBarTrailing as $e } from "./lib/Components/NavBar/NavBar.js";
31
- import { Popover as oo, PopoverContent as to, PopoverTrigger as ro, createPopoverHandle as ao } from "./lib/Components/Popover/Popover.js";
32
- import { PageIndicator as io } from "./lib/Components/PageIndicator/PageIndicator.js";
33
- import { SearchInput as lo } from "./lib/Components/SearchInput/SearchInput.js";
34
- import { SegmentedControl as To, SegmentedControlButton as xo } from "./lib/Components/SegmentedControl/SegmentedControl.js";
35
- import { Select as uo, SelectContent as Co, SelectEmptyState as So, SelectItem as go, SelectItemContent as co, SelectItemDescription as Bo, SelectItemText as bo, SelectList as Io, SelectSearch as so, SelectSeparator as Mo, SelectTrigger as Do } from "./lib/Components/Select/Select.js";
36
- import { SideBar as ho, SideBarCollapseToggle as vo, SideBarItem as Ro, SideBarLeading as wo, SideBarTrailing as Ao } from "./lib/Components/SideBar/SideBar.js";
37
- import { Skeleton as Ho } from "./lib/Components/Skeleton/Skeleton.js";
38
- import { Spinner as ko } from "./lib/Components/Spinner/Spinner.js";
39
- import { Spot as Go } from "./lib/Components/Spot/Spot.js";
40
- import { Stepper as Fo } from "./lib/Components/Stepper/Stepper.js";
41
- import { Subheader as Oo, SubheaderCount as _o, SubheaderDescription as jo, SubheaderInfo as qo, SubheaderRow as Jo, SubheaderShowMore as Ko, SubheaderTitle as Qo } from "./lib/Components/Subheader/Subheader.js";
42
- import { Switch as Vo } from "./lib/Components/Switch/Switch.js";
43
- import { Table as Xo, TableActionBar as Yo, TableActionBarLeading as Zo, TableActionBarTrailing as $o, TableBody as et, TableCell as ot, TableCellContent as tt, TableGroupHeaderRow as rt, TableHeader as at, TableHeaderCell as nt, TableHeaderRow as it, TableInfoIcon as pt, TableLoadingRow as lt, TableRoot as mt, TableRow as dt, TableSortButton as Tt } from "./lib/Components/Table/Table.js";
44
- import { Tag as ft } from "./lib/Components/Tag/Tag.js";
45
- import { TextInput as Ct } from "./lib/Components/TextInput/TextInput.js";
46
- import { Tile as gt, TileContent as ct, TileDescription as Bt, TileSecondaryAction as bt, TileTitle as It, TileTrailingContent as st } from "./lib/Components/Tile/Tile.js";
47
- import { TileButton as Dt } from "./lib/Components/TileButton/TileButton.js";
48
- import { Tooltip as ht, TooltipContent as vt, TooltipProvider as Rt, TooltipTrigger as wt } from "./lib/Components/Tooltip/Tooltip.js";
49
- import { ThemeProvider as yt, useTheme as Ht } from "./lib/Components/ThemeProvider/ThemeProvider.js";
50
- import { COLOR_SCHEMES as kt } from "./lib/Components/ThemeProvider/ThemeProvider.types.js";
20
+ import { DotCount as ne } from "./lib/Components/DotCount/DotCount.js";
21
+ import { DotIcon as pe, dotIconSizeMap as le, mediaImageDotIconSizeMap as me, spotDotIconSizeMap as de } from "./lib/Components/DotIcon/DotIcon.js";
22
+ import { DotIndicator as Te } from "./lib/Components/DotIndicator/DotIndicator.js";
23
+ import { DotSymbol as ue, mediaImageDotSizeMap as Se, spotDotSizeMap as Ce } from "./lib/Components/DotSymbol/DotSymbol.js";
24
+ import { IconButton as ge } from "./lib/Components/IconButton/IconButton.js";
25
+ import { InteractiveIcon as Ie } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
26
+ import { Link as se } from "./lib/Components/Link/Link.js";
27
+ import { ListItem as Me, ListItemContent as Le, ListItemContentRow as he, ListItemDescription as ve, ListItemLeading as Re, ListItemTitle as we, ListItemTrailing as Ae } from "./lib/Components/ListItem/ListItem.js";
28
+ import { MediaBanner as He, MediaBannerDescription as Pe, MediaBannerTitle as ke } from "./lib/Components/MediaBanner/MediaBanner.js";
29
+ import { MediaButton as Ne } from "./lib/Components/MediaButton/MediaButton.js";
30
+ import { MediaCard as Ee, MediaCardTitle as Fe } from "./lib/Components/MediaCard/MediaCard.js";
31
+ import { MediaImage as _e } from "./lib/Components/MediaImage/MediaImage.js";
32
+ import { Menu as qe, MenuCheckboxItem as Je, MenuContent as Ke, MenuGroup as Qe, MenuItem as Ue, MenuLabel as Ve, MenuPortal as We, MenuRadioGroup as Xe, MenuRadioItem as Ye, MenuSeparator as Ze, MenuSub as $e, MenuSubContent as eo, MenuSubTrigger as oo, MenuTrigger as to } from "./lib/Components/Menu/Menu.js";
33
+ import { NavBar as ao, NavBarBackButton as no, NavBarCoinCapsule as io, NavBarTitle as po, NavBarTrailing as lo } from "./lib/Components/NavBar/NavBar.js";
34
+ import { Popover as xo, PopoverContent as To, PopoverTrigger as fo, createPopoverHandle as uo } from "./lib/Components/Popover/Popover.js";
35
+ import { PageIndicator as Co } from "./lib/Components/PageIndicator/PageIndicator.js";
36
+ import { SearchInput as go } from "./lib/Components/SearchInput/SearchInput.js";
37
+ import { SegmentedControl as Io, SegmentedControlButton as bo } from "./lib/Components/SegmentedControl/SegmentedControl.js";
38
+ import { Select as Do, SelectContent as Mo, SelectEmptyState as Lo, SelectItem as ho, SelectItemContent as vo, SelectItemDescription as Ro, SelectItemText as wo, SelectList as Ao, SelectSearch as yo, SelectSeparator as Ho, SelectTrigger as Po } from "./lib/Components/Select/Select.js";
39
+ import { SideBar as zo, SideBarCollapseToggle as No, SideBarItem as Go, SideBarLeading as Eo, SideBarTrailing as Fo } from "./lib/Components/SideBar/SideBar.js";
40
+ import { Skeleton as _o } from "./lib/Components/Skeleton/Skeleton.js";
41
+ import { Spinner as qo } from "./lib/Components/Spinner/Spinner.js";
42
+ import { Spot as Ko } from "./lib/Components/Spot/Spot.js";
43
+ import { Stepper as Uo } from "./lib/Components/Stepper/Stepper.js";
44
+ import { Subheader as Wo, SubheaderCount as Xo, SubheaderDescription as Yo, SubheaderInfo as Zo, SubheaderRow as $o, SubheaderShowMore as et, SubheaderTitle as ot } from "./lib/Components/Subheader/Subheader.js";
45
+ import { Switch as rt } from "./lib/Components/Switch/Switch.js";
46
+ import { Table as nt, TableActionBar as it, TableActionBarLeading as pt, TableActionBarTrailing as lt, TableBody as mt, TableCell as dt, TableCellContent as xt, TableGroupHeaderRow as Tt, TableHeader as ft, TableHeaderCell as ut, TableHeaderRow as St, TableInfoIcon as Ct, TableLoadingRow as ct, TableRoot as gt, TableRow as Bt, TableSortButton as It } from "./lib/Components/Table/Table.js";
47
+ import { Tag as st } from "./lib/Components/Tag/Tag.js";
48
+ import { TextInput as Mt } from "./lib/Components/TextInput/TextInput.js";
49
+ import { Tile as ht, TileContent as vt, TileDescription as Rt, TileSecondaryAction as wt, TileTitle as At, TileTrailingContent as yt } from "./lib/Components/Tile/Tile.js";
50
+ import { TileButton as Pt } from "./lib/Components/TileButton/TileButton.js";
51
+ import { Tooltip as zt, TooltipContent as Nt, TooltipProvider as Gt, TooltipTrigger as Et } from "./lib/Components/Tooltip/Tooltip.js";
52
+ import { ThemeProvider as Ot, useTheme as _t } from "./lib/Components/ThemeProvider/ThemeProvider.js";
53
+ import { COLOR_SCHEMES as qt } from "./lib/Components/ThemeProvider/ThemeProvider.types.js";
51
54
  export {
52
55
  a as AddressInput,
53
56
  l as AmountDisplay,
54
57
  i as AmountInput,
55
58
  d as Avatar,
56
- x as Banner,
57
- c as BaseButton,
59
+ T as Banner,
60
+ g as BaseButton,
58
61
  u as BaseInput,
59
- S as Button,
60
- kt as COLOR_SCHEMES,
61
- b as Card,
62
+ C as Button,
63
+ qt as COLOR_SCHEMES,
64
+ I as Card,
62
65
  y as CardButton,
63
- I as CardContent,
66
+ b as CardContent,
64
67
  s as CardContentDescription,
65
- M as CardContentRow,
66
- D as CardContentTitle,
68
+ D as CardContentRow,
69
+ M as CardContentTitle,
67
70
  L as CardFooter,
68
71
  h as CardFooterActions,
69
72
  v as CardHeader,
70
73
  R as CardLeading,
71
74
  w as CardTrailing,
72
- F as Checkbox,
75
+ E as Checkbox,
73
76
  P as ContentBanner,
74
77
  k as ContentBannerContent,
75
- N as ContentBannerDescription,
76
- G as ContentBannerTitle,
78
+ z as ContentBannerDescription,
79
+ N as ContentBannerTitle,
77
80
  O as DataTable,
78
81
  _ as DataTableGlobalSearchInput,
79
82
  j as DataTableRoot,
@@ -86,112 +89,118 @@ export {
86
89
  oe as DialogHeader,
87
90
  $ as DialogTrigger,
88
91
  re as Divider,
89
- ne as DotSymbol,
90
- me as IconButton,
91
- Te as InteractiveIcon,
92
+ ne as DotCount,
93
+ pe as DotIcon,
94
+ Te as DotIndicator,
95
+ ue as DotSymbol,
96
+ ge as IconButton,
97
+ Ie as InteractiveIcon,
92
98
  t as Languages,
93
- fe as Link,
94
- Ce as ListItem,
95
- Se as ListItemContent,
96
- ge as ListItemContentRow,
97
- ce as ListItemDescription,
98
- Be as ListItemLeading,
99
- be as ListItemTitle,
100
- Ie as ListItemTrailing,
101
- Me as MediaBanner,
102
- De as MediaBannerDescription,
103
- Le as MediaBannerTitle,
104
- ve as MediaButton,
105
- we as MediaCard,
106
- Ae as MediaCardTitle,
107
- He as MediaImage,
108
- ke as Menu,
109
- Ne as MenuCheckboxItem,
110
- Ge as MenuContent,
111
- Ee as MenuGroup,
112
- Fe as MenuItem,
113
- ze as MenuLabel,
114
- Oe as MenuPortal,
115
- _e as MenuRadioGroup,
116
- je as MenuRadioItem,
117
- qe as MenuSeparator,
118
- Je as MenuSub,
119
- Ke as MenuSubContent,
120
- Qe as MenuSubTrigger,
121
- Ue as MenuTrigger,
122
- We as NavBar,
123
- Xe as NavBarBackButton,
124
- Ye as NavBarCoinCapsule,
125
- Ze as NavBarTitle,
126
- $e as NavBarTrailing,
127
- io as PageIndicator,
128
- oo as Popover,
129
- to as PopoverContent,
130
- ro as PopoverTrigger,
131
- lo as SearchInput,
132
- To as SegmentedControl,
133
- xo as SegmentedControlButton,
134
- uo as Select,
135
- Co as SelectContent,
136
- So as SelectEmptyState,
137
- go as SelectItem,
138
- co as SelectItemContent,
139
- Bo as SelectItemDescription,
140
- bo as SelectItemText,
141
- Io as SelectList,
142
- so as SelectSearch,
143
- Mo as SelectSeparator,
144
- Do as SelectTrigger,
145
- ho as SideBar,
146
- vo as SideBarCollapseToggle,
147
- Ro as SideBarItem,
148
- wo as SideBarLeading,
149
- Ao as SideBarTrailing,
150
- Ho as Skeleton,
151
- ko as Spinner,
152
- Go as Spot,
153
- Fo as Stepper,
154
- Oo as Subheader,
155
- _o as SubheaderCount,
156
- jo as SubheaderDescription,
157
- qo as SubheaderInfo,
158
- Jo as SubheaderRow,
159
- Ko as SubheaderShowMore,
160
- Qo as SubheaderTitle,
161
- Vo as Switch,
162
- Xo as Table,
163
- Yo as TableActionBar,
164
- Zo as TableActionBarLeading,
165
- $o as TableActionBarTrailing,
166
- et as TableBody,
167
- ot as TableCell,
168
- tt as TableCellContent,
169
- rt as TableGroupHeaderRow,
170
- at as TableHeader,
171
- nt as TableHeaderCell,
172
- it as TableHeaderRow,
173
- pt as TableInfoIcon,
174
- lt as TableLoadingRow,
175
- mt as TableRoot,
176
- dt as TableRow,
177
- Tt as TableSortButton,
178
- ft as Tag,
179
- Ct as TextInput,
180
- yt as ThemeProvider,
181
- gt as Tile,
182
- Dt as TileButton,
183
- ct as TileContent,
184
- Bt as TileDescription,
185
- bt as TileSecondaryAction,
186
- It as TileTitle,
187
- st as TileTrailingContent,
188
- ht as Tooltip,
189
- vt as TooltipContent,
190
- Rt as TooltipProvider,
191
- wt as TooltipTrigger,
192
- ao as createPopoverHandle,
193
- ie as mediaImageDotSizeMap,
194
- pe as spotDotSizeMap,
99
+ se as Link,
100
+ Me as ListItem,
101
+ Le as ListItemContent,
102
+ he as ListItemContentRow,
103
+ ve as ListItemDescription,
104
+ Re as ListItemLeading,
105
+ we as ListItemTitle,
106
+ Ae as ListItemTrailing,
107
+ He as MediaBanner,
108
+ Pe as MediaBannerDescription,
109
+ ke as MediaBannerTitle,
110
+ Ne as MediaButton,
111
+ Ee as MediaCard,
112
+ Fe as MediaCardTitle,
113
+ _e as MediaImage,
114
+ qe as Menu,
115
+ Je as MenuCheckboxItem,
116
+ Ke as MenuContent,
117
+ Qe as MenuGroup,
118
+ Ue as MenuItem,
119
+ Ve as MenuLabel,
120
+ We as MenuPortal,
121
+ Xe as MenuRadioGroup,
122
+ Ye as MenuRadioItem,
123
+ Ze as MenuSeparator,
124
+ $e as MenuSub,
125
+ eo as MenuSubContent,
126
+ oo as MenuSubTrigger,
127
+ to as MenuTrigger,
128
+ ao as NavBar,
129
+ no as NavBarBackButton,
130
+ io as NavBarCoinCapsule,
131
+ po as NavBarTitle,
132
+ lo as NavBarTrailing,
133
+ Co as PageIndicator,
134
+ xo as Popover,
135
+ To as PopoverContent,
136
+ fo as PopoverTrigger,
137
+ go as SearchInput,
138
+ Io as SegmentedControl,
139
+ bo as SegmentedControlButton,
140
+ Do as Select,
141
+ Mo as SelectContent,
142
+ Lo as SelectEmptyState,
143
+ ho as SelectItem,
144
+ vo as SelectItemContent,
145
+ Ro as SelectItemDescription,
146
+ wo as SelectItemText,
147
+ Ao as SelectList,
148
+ yo as SelectSearch,
149
+ Ho as SelectSeparator,
150
+ Po as SelectTrigger,
151
+ zo as SideBar,
152
+ No as SideBarCollapseToggle,
153
+ Go as SideBarItem,
154
+ Eo as SideBarLeading,
155
+ Fo as SideBarTrailing,
156
+ _o as Skeleton,
157
+ qo as Spinner,
158
+ Ko as Spot,
159
+ Uo as Stepper,
160
+ Wo as Subheader,
161
+ Xo as SubheaderCount,
162
+ Yo as SubheaderDescription,
163
+ Zo as SubheaderInfo,
164
+ $o as SubheaderRow,
165
+ et as SubheaderShowMore,
166
+ ot as SubheaderTitle,
167
+ rt as Switch,
168
+ nt as Table,
169
+ it as TableActionBar,
170
+ pt as TableActionBarLeading,
171
+ lt as TableActionBarTrailing,
172
+ mt as TableBody,
173
+ dt as TableCell,
174
+ xt as TableCellContent,
175
+ Tt as TableGroupHeaderRow,
176
+ ft as TableHeader,
177
+ ut as TableHeaderCell,
178
+ St as TableHeaderRow,
179
+ Ct as TableInfoIcon,
180
+ ct as TableLoadingRow,
181
+ gt as TableRoot,
182
+ Bt as TableRow,
183
+ It as TableSortButton,
184
+ st as Tag,
185
+ Mt as TextInput,
186
+ Ot as ThemeProvider,
187
+ ht as Tile,
188
+ Pt as TileButton,
189
+ vt as TileContent,
190
+ Rt as TileDescription,
191
+ wt as TileSecondaryAction,
192
+ At as TileTitle,
193
+ yt as TileTrailingContent,
194
+ zt as Tooltip,
195
+ Nt as TooltipContent,
196
+ Gt as TooltipProvider,
197
+ Et as TooltipTrigger,
198
+ uo as createPopoverHandle,
199
+ le as dotIconSizeMap,
200
+ me as mediaImageDotIconSizeMap,
201
+ Se as mediaImageDotSizeMap,
202
+ de as spotDotIconSizeMap,
203
+ Ce as spotDotSizeMap,
195
204
  J as useLumenDataTable,
196
- Ht as useTheme
205
+ _t as useTheme
197
206
  };
@@ -0,0 +1,6 @@
1
+ import { DotCountProps } from './types';
2
+ export declare function DotCount({ value, size, max, appearance, disabled: disabledProp, children, className, 'aria-label': ariaLabel, ref, ...props }: DotCountProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare namespace DotCount {
4
+ var displayName: string;
5
+ }
6
+ //# sourceMappingURL=DotCount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DotCount.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotCount/DotCount.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAiD7C,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,IAAW,EACX,GAAQ,EACR,UAAmB,EACnB,QAAQ,EAAE,YAAoB,EAC9B,QAAQ,EACR,SAAS,EACT,YAAY,EAAE,SAAS,EACvB,GAAG,EACH,GAAG,KAAK,EACT,EAAE,aAAa,2CAiCf;yBA5Ce,QAAQ"}
@@ -0,0 +1,92 @@
1
+ import { jsxs as x, jsx as l } from "react/jsx-runtime";
2
+ import { useDisabledContext as g, cn as a } from "../../../libs/utils-shared/dist/index.js";
3
+ import { cva as m } from "class-variance-authority";
4
+ const h = m(
5
+ "pointer-events-none flex items-center justify-center rounded-full",
6
+ {
7
+ variants: {
8
+ size: {
9
+ lg: "min-h-24 min-w-24 px-8 py-2",
10
+ md: "min-h-16 min-w-16 px-4"
11
+ },
12
+ appearance: {
13
+ base: "bg-interactive",
14
+ red: "bg-error-strong"
15
+ },
16
+ disabled: {
17
+ true: "bg-disabled",
18
+ false: ""
19
+ }
20
+ },
21
+ defaultVariants: {
22
+ size: "md",
23
+ appearance: "base",
24
+ disabled: !1
25
+ }
26
+ }
27
+ ), v = m("", {
28
+ variants: {
29
+ size: {
30
+ lg: "body-2-semi-bold",
31
+ md: "body-4-semi-bold"
32
+ },
33
+ appearance: {
34
+ base: "text-on-interactive",
35
+ red: "text-on-error-strong"
36
+ },
37
+ disabled: {
38
+ true: "text-disabled",
39
+ false: ""
40
+ }
41
+ },
42
+ defaultVariants: {
43
+ size: "md",
44
+ appearance: "base",
45
+ disabled: !1
46
+ }
47
+ });
48
+ function y({
49
+ value: e,
50
+ size: t = "md",
51
+ max: b = 99,
52
+ appearance: s = "base",
53
+ disabled: c = !1,
54
+ children: i,
55
+ className: p,
56
+ "aria-label": n,
57
+ ref: f,
58
+ ...u
59
+ }) {
60
+ const d = g({
61
+ consumerName: "DotCount",
62
+ mergeWith: { disabled: c }
63
+ }), r = Math.max(1, Math.min(b, 99)), o = !!i;
64
+ return /* @__PURE__ */ x(
65
+ "div",
66
+ {
67
+ ref: f,
68
+ className: a(o && "relative inline-flex w-fit", p),
69
+ ...u,
70
+ children: [
71
+ /* @__PURE__ */ l(
72
+ "div",
73
+ {
74
+ role: "img",
75
+ "aria-label": n,
76
+ "aria-hidden": !n || void 0,
77
+ className: a(
78
+ h({ size: t, appearance: s, disabled: d }),
79
+ o && "absolute top-0 right-0 z-1"
80
+ ),
81
+ children: e > 0 && /* @__PURE__ */ l("span", { className: a(v({ size: t, appearance: s, disabled: d })), children: e <= r ? e : `${r}+` })
82
+ }
83
+ ),
84
+ i
85
+ ]
86
+ }
87
+ );
88
+ }
89
+ y.displayName = "DotCount";
90
+ export {
91
+ y as DotCount
92
+ };
@@ -0,0 +1,3 @@
1
+ export * from './DotCount';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotCount/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { ComponentPropsWithRef, ReactNode } from 'react';
2
+ export type DotCountProps = {
3
+ /**
4
+ * The size of the dot count.
5
+ * @default 'md'
6
+ */
7
+ size?: 'lg' | 'md';
8
+ /**
9
+ * The amount to be displayed.
10
+ *
11
+ * If higher than `max`, the displayed value will be "[max]+".
12
+ */
13
+ value: number;
14
+ /**
15
+ * The max value shown.
16
+ *
17
+ * If `value` is higher than `max`, the displayed value will be "[max]+".
18
+ *
19
+ * By design, it will ignore values higher than 99.
20
+ * @default 99
21
+ */
22
+ max?: number;
23
+ /**
24
+ * The appearance of the dot count.
25
+ * @default 'base'
26
+ */
27
+ appearance?: 'base' | 'red';
28
+ /**
29
+ * Whether the dot count should show a disabled appearance.
30
+ * @default false
31
+ */
32
+ disabled?: boolean;
33
+ /**
34
+ * Can be used as a wrapper to any component in case you wish to overlay a dot count on top of it.
35
+ * If provided, it'll pin the dot count to the top-right of the child component passed.
36
+ */
37
+ children?: ReactNode;
38
+ } & Omit<ComponentPropsWithRef<'div'>, 'children'>;
39
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotCount/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG;IAC1B;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;OAOG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { IconSize } from '../Icon';
2
+ import { DotIconProps, DotIconSize } from './types';
3
+ export declare const mediaImageDotIconSizeMap: {
4
+ readonly 40: 16;
5
+ readonly 48: 20;
6
+ readonly 56: 24;
7
+ readonly 64: 24;
8
+ };
9
+ export declare const spotDotIconSizeMap: {
10
+ readonly 40: 16;
11
+ readonly 48: 20;
12
+ readonly 56: 24;
13
+ readonly 72: 24;
14
+ };
15
+ export declare const dotIconSizeMap: Record<DotIconSize, IconSize>;
16
+ /**
17
+ * A wrapper component that positions a small icon indicator at a configurable
18
+ * corner of a child element like MediaImage or Spot. The dot background uses a
19
+ * semantic color (`success`, `muted`, or `error`).
20
+ *
21
+ * @example
22
+ * import { DotIcon } from '@ledgerhq/lumen-ui-react';
23
+ *
24
+ * <DotIcon appearance="success" icon={ArrowDown} pin="bottom-end">
25
+ * <MediaImage src="https://example.com/usdc.png" alt="USDC" size={48} />
26
+ * </DotIcon>
27
+ */
28
+ export declare const DotIcon: {
29
+ ({ children, icon: Icon, appearance, pin, size, shape, className, ref, ...rest }: DotIconProps): import("react/jsx-runtime").JSX.Element;
30
+ displayName: string;
31
+ };
32
+ //# sourceMappingURL=DotIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DotIcon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotIcon/DotIcon.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAc,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAoCrE,eAAO,MAAM,wBAAwB;;;;;CAKW,CAAC;AAEjD,eAAO,MAAM,kBAAkB;;;;;CAKiB,CAAC;AAEjD,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,WAAW,EAAE,QAAQ,CAIxD,CAAC;AAgBF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO;sFAUjB,YAAY;;CAkBd,CAAC"}
@@ -0,0 +1,97 @@
1
+ import { jsxs as u, jsx as r } from "react/jsx-runtime";
2
+ import { cn as n } from "../../../libs/utils-shared/dist/index.js";
3
+ import { cva as b } from "class-variance-authority";
4
+ import { useMemo as f } from "react";
5
+ const x = b(
6
+ "absolute z-10 box-content flex items-center justify-center overflow-hidden border-base-inverted",
7
+ {
8
+ variants: {
9
+ size: {
10
+ 16: "size-16 border",
11
+ 20: "size-20 border",
12
+ 24: "size-24 border"
13
+ },
14
+ shape: {
15
+ square: "",
16
+ circle: ""
17
+ },
18
+ pin: {
19
+ "top-start": "",
20
+ "top-end": "",
21
+ "bottom-start": "",
22
+ "bottom-end": ""
23
+ },
24
+ appearance: {
25
+ success: "bg-success-strong",
26
+ muted: "bg-muted-strong",
27
+ error: "bg-error-strong"
28
+ }
29
+ },
30
+ compoundVariants: [
31
+ { size: 16, shape: "square", className: "rounded-[5px]" },
32
+ { size: 20, shape: "square", className: "rounded-[6px]" },
33
+ { size: 24, shape: "square", className: "rounded-[8px]" },
34
+ { shape: "circle", className: "rounded-full" }
35
+ ]
36
+ }
37
+ ), q = {
38
+ 40: 16,
39
+ 48: 20,
40
+ 56: 24,
41
+ 64: 24
42
+ }, S = {
43
+ 40: 16,
44
+ 48: 20,
45
+ 56: 24,
46
+ 72: 24
47
+ }, h = {
48
+ 16: 12,
49
+ 20: 12,
50
+ 24: 16
51
+ }, z = {
52
+ "top-start": ["top", "left"],
53
+ "top-end": ["top", "right"],
54
+ "bottom-start": ["bottom", "left"],
55
+ "bottom-end": ["bottom", "right"]
56
+ }, c = -3, g = (e) => {
57
+ const [t, o] = z[e];
58
+ return { [t]: c, [o]: c };
59
+ }, v = ({
60
+ children: e,
61
+ icon: t,
62
+ appearance: o,
63
+ pin: s = "bottom-end",
64
+ size: a = 20,
65
+ shape: i = "circle",
66
+ className: d,
67
+ ref: m,
68
+ ...p
69
+ }) => {
70
+ const l = f(() => g(s), [s]);
71
+ return /* @__PURE__ */ u(
72
+ "div",
73
+ {
74
+ ref: m,
75
+ className: n("relative inline-flex w-fit", d),
76
+ ...p,
77
+ children: [
78
+ /* @__PURE__ */ r("div", { className: "inline-flex", children: e }),
79
+ /* @__PURE__ */ r(
80
+ "div",
81
+ {
82
+ className: n(x({ size: a, shape: i, pin: s, appearance: o })),
83
+ style: l,
84
+ children: /* @__PURE__ */ r(t, { size: h[a], className: "text-on-interactive" })
85
+ }
86
+ )
87
+ ]
88
+ }
89
+ );
90
+ };
91
+ v.displayName = "DotIcon";
92
+ export {
93
+ v as DotIcon,
94
+ h as dotIconSizeMap,
95
+ q as mediaImageDotIconSizeMap,
96
+ S as spotDotIconSizeMap
97
+ };