@ledgerhq/lumen-ui-react 0.1.23 → 0.1.24

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 (41) hide show
  1. package/dist/index.js +154 -149
  2. package/dist/lib/Components/DotIcon/DotIcon.d.ts +32 -0
  3. package/dist/lib/Components/DotIcon/DotIcon.d.ts.map +1 -0
  4. package/dist/lib/Components/DotIcon/DotIcon.js +97 -0
  5. package/dist/lib/Components/DotIcon/index.d.ts +3 -0
  6. package/dist/lib/Components/DotIcon/index.d.ts.map +1 -0
  7. package/dist/lib/Components/DotIcon/types.d.ts +42 -0
  8. package/dist/lib/Components/DotIcon/types.d.ts.map +1 -0
  9. package/dist/lib/Components/DotSymbol/DotSymbol.d.ts.map +1 -1
  10. package/dist/lib/Components/DotSymbol/DotSymbol.js +2 -1
  11. package/dist/lib/Components/MediaImage/MediaImage.d.ts.map +1 -1
  12. package/dist/lib/Components/MediaImage/MediaImage.js +8 -7
  13. package/dist/lib/Components/MediaImage/types.d.ts +1 -1
  14. package/dist/lib/Components/MediaImage/types.d.ts.map +1 -1
  15. package/dist/lib/Components/Select/Select.d.ts +4 -4
  16. package/dist/lib/Components/Select/Select.d.ts.map +1 -1
  17. package/dist/lib/Components/Select/Select.js +135 -126
  18. package/dist/lib/Components/Select/SelectContext.d.ts +1 -0
  19. package/dist/lib/Components/Select/SelectContext.d.ts.map +1 -1
  20. package/dist/lib/Components/Select/index.d.ts +1 -1
  21. package/dist/lib/Components/Select/index.d.ts.map +1 -1
  22. package/dist/lib/Components/Select/types.d.ts +20 -14
  23. package/dist/lib/Components/Select/types.d.ts.map +1 -1
  24. package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts +10 -9
  25. package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts.map +1 -1
  26. package/dist/lib/Components/Select/useSelectItems/useSelectItems.js +16 -15
  27. package/dist/lib/Components/Select/utils/groupItems.d.ts +8 -2
  28. package/dist/lib/Components/Select/utils/groupItems.d.ts.map +1 -1
  29. package/dist/lib/Components/Select/utils/groupItems.js +13 -11
  30. package/dist/lib/Components/Select/utils/index.d.ts +1 -1
  31. package/dist/lib/Components/Select/utils/index.d.ts.map +1 -1
  32. package/dist/lib/Components/Tag/Tag.d.ts.map +1 -1
  33. package/dist/lib/Components/Tag/Tag.js +15 -14
  34. package/dist/lib/Components/Tag/types.d.ts +1 -1
  35. package/dist/lib/Components/Tag/types.d.ts.map +1 -1
  36. package/dist/lib/Components/ThemeProvider/ThemeProvider.d.ts +1 -1
  37. package/dist/lib/Components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  38. package/dist/lib/Components/index.d.ts +1 -0
  39. package/dist/lib/Components/index.d.ts.map +1 -1
  40. package/dist/package.json +2 -2
  41. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4,60 +4,61 @@ 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
6
  import { Banner as x } from "./lib/Components/Banner/Banner.js";
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";
7
+ import { BaseInput as S } from "./lib/Components/BaseInput/BaseInput.js";
8
+ import { Button as C } from "./lib/Components/Button/Button.js";
9
+ import { BaseButton as g } from "./lib/Components/Button/BaseButton.js";
10
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";
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 { DotIcon as ne, dotIconSizeMap as ie, mediaImageDotIconSizeMap as pe, spotDotIconSizeMap as le } from "./lib/Components/DotIcon/DotIcon.js";
21
+ import { DotSymbol as de, mediaImageDotSizeMap as Te, spotDotSizeMap as xe } from "./lib/Components/DotSymbol/DotSymbol.js";
22
+ import { IconButton as Se } from "./lib/Components/IconButton/IconButton.js";
23
+ import { InteractiveIcon as Ce } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
24
+ import { Link as ge } from "./lib/Components/Link/Link.js";
25
+ import { ListItem as be, ListItemContent as Ie, ListItemContentRow as se, ListItemDescription as Me, ListItemLeading as De, ListItemTitle as Le, ListItemTrailing as he } from "./lib/Components/ListItem/ListItem.js";
26
+ import { MediaBanner as Re, MediaBannerDescription as we, MediaBannerTitle as Ae } from "./lib/Components/MediaBanner/MediaBanner.js";
27
+ import { MediaButton as He } from "./lib/Components/MediaButton/MediaButton.js";
28
+ import { MediaCard as ke, MediaCardTitle as ze } from "./lib/Components/MediaCard/MediaCard.js";
29
+ import { MediaImage as Ge } from "./lib/Components/MediaImage/MediaImage.js";
30
+ import { Menu as Fe, MenuCheckboxItem as Oe, MenuContent as _e, MenuGroup as je, MenuItem as qe, MenuLabel as Je, MenuPortal as Ke, MenuRadioGroup as Qe, MenuRadioItem as Ue, MenuSeparator as Ve, MenuSub as We, MenuSubContent as Xe, MenuSubTrigger as Ye, MenuTrigger as Ze } from "./lib/Components/Menu/Menu.js";
31
+ import { NavBar as eo, NavBarBackButton as oo, NavBarCoinCapsule as to, NavBarTitle as ro, NavBarTrailing as ao } from "./lib/Components/NavBar/NavBar.js";
32
+ import { Popover as io, PopoverContent as po, PopoverTrigger as lo, createPopoverHandle as mo } from "./lib/Components/Popover/Popover.js";
33
+ import { PageIndicator as xo } from "./lib/Components/PageIndicator/PageIndicator.js";
34
+ import { SearchInput as So } from "./lib/Components/SearchInput/SearchInput.js";
35
+ import { SegmentedControl as Co, SegmentedControlButton as co } from "./lib/Components/SegmentedControl/SegmentedControl.js";
36
+ import { Select as Bo, SelectContent as bo, SelectEmptyState as Io, SelectItem as so, SelectItemContent as Mo, SelectItemDescription as Do, SelectItemText as Lo, SelectList as ho, SelectSearch as vo, SelectSeparator as Ro, SelectTrigger as wo } from "./lib/Components/Select/Select.js";
37
+ import { SideBar as yo, SideBarCollapseToggle as Ho, SideBarItem as Po, SideBarLeading as ko, SideBarTrailing as zo } from "./lib/Components/SideBar/SideBar.js";
38
+ import { Skeleton as Go } from "./lib/Components/Skeleton/Skeleton.js";
39
+ import { Spinner as Fo } from "./lib/Components/Spinner/Spinner.js";
40
+ import { Spot as _o } from "./lib/Components/Spot/Spot.js";
41
+ import { Stepper as qo } from "./lib/Components/Stepper/Stepper.js";
42
+ import { Subheader as Ko, SubheaderCount as Qo, SubheaderDescription as Uo, SubheaderInfo as Vo, SubheaderRow as Wo, SubheaderShowMore as Xo, SubheaderTitle as Yo } from "./lib/Components/Subheader/Subheader.js";
43
+ import { Switch as $o } from "./lib/Components/Switch/Switch.js";
44
+ import { Table as ot, TableActionBar as tt, TableActionBarLeading as rt, TableActionBarTrailing as at, TableBody as nt, TableCell as it, TableCellContent as pt, TableGroupHeaderRow as lt, TableHeader as mt, TableHeaderCell as dt, TableHeaderRow as Tt, TableInfoIcon as xt, TableLoadingRow as ft, TableRoot as St, TableRow as ut, TableSortButton as Ct } from "./lib/Components/Table/Table.js";
45
+ import { Tag as gt } from "./lib/Components/Tag/Tag.js";
46
+ import { TextInput as bt } from "./lib/Components/TextInput/TextInput.js";
47
+ import { Tile as st, TileContent as Mt, TileDescription as Dt, TileSecondaryAction as Lt, TileTitle as ht, TileTrailingContent as vt } from "./lib/Components/Tile/Tile.js";
48
+ import { TileButton as wt } from "./lib/Components/TileButton/TileButton.js";
49
+ import { Tooltip as yt, TooltipContent as Ht, TooltipProvider as Pt, TooltipTrigger as kt } from "./lib/Components/Tooltip/Tooltip.js";
50
+ import { ThemeProvider as Nt, useTheme as Gt } from "./lib/Components/ThemeProvider/ThemeProvider.js";
51
+ import { COLOR_SCHEMES as Ft } from "./lib/Components/ThemeProvider/ThemeProvider.types.js";
51
52
  export {
52
53
  a as AddressInput,
53
54
  l as AmountDisplay,
54
55
  i as AmountInput,
55
56
  d as Avatar,
56
57
  x as Banner,
57
- c as BaseButton,
58
- u as BaseInput,
59
- S as Button,
60
- kt as COLOR_SCHEMES,
58
+ g as BaseButton,
59
+ S as BaseInput,
60
+ C as Button,
61
+ Ft as COLOR_SCHEMES,
61
62
  b as Card,
62
63
  y as CardButton,
63
64
  I as CardContent,
@@ -69,11 +70,11 @@ export {
69
70
  v as CardHeader,
70
71
  R as CardLeading,
71
72
  w as CardTrailing,
72
- F as Checkbox,
73
+ E as Checkbox,
73
74
  P as ContentBanner,
74
75
  k as ContentBannerContent,
75
- N as ContentBannerDescription,
76
- G as ContentBannerTitle,
76
+ z as ContentBannerDescription,
77
+ N as ContentBannerTitle,
77
78
  O as DataTable,
78
79
  _ as DataTableGlobalSearchInput,
79
80
  j as DataTableRoot,
@@ -86,112 +87,116 @@ export {
86
87
  oe as DialogHeader,
87
88
  $ as DialogTrigger,
88
89
  re as Divider,
89
- ne as DotSymbol,
90
- me as IconButton,
91
- Te as InteractiveIcon,
90
+ ne as DotIcon,
91
+ de as DotSymbol,
92
+ Se as IconButton,
93
+ Ce as InteractiveIcon,
92
94
  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,
95
+ ge as Link,
96
+ be as ListItem,
97
+ Ie as ListItemContent,
98
+ se as ListItemContentRow,
99
+ Me as ListItemDescription,
100
+ De as ListItemLeading,
101
+ Le as ListItemTitle,
102
+ he as ListItemTrailing,
103
+ Re as MediaBanner,
104
+ we as MediaBannerDescription,
105
+ Ae as MediaBannerTitle,
106
+ He as MediaButton,
107
+ ke as MediaCard,
108
+ ze as MediaCardTitle,
109
+ Ge as MediaImage,
110
+ Fe as Menu,
111
+ Oe as MenuCheckboxItem,
112
+ _e as MenuContent,
113
+ je as MenuGroup,
114
+ qe as MenuItem,
115
+ Je as MenuLabel,
116
+ Ke as MenuPortal,
117
+ Qe as MenuRadioGroup,
118
+ Ue as MenuRadioItem,
119
+ Ve as MenuSeparator,
120
+ We as MenuSub,
121
+ Xe as MenuSubContent,
122
+ Ye as MenuSubTrigger,
123
+ Ze as MenuTrigger,
124
+ eo as NavBar,
125
+ oo as NavBarBackButton,
126
+ to as NavBarCoinCapsule,
127
+ ro as NavBarTitle,
128
+ ao as NavBarTrailing,
129
+ xo as PageIndicator,
130
+ io as Popover,
131
+ po as PopoverContent,
132
+ lo as PopoverTrigger,
133
+ So as SearchInput,
134
+ Co as SegmentedControl,
135
+ co as SegmentedControlButton,
136
+ Bo as Select,
137
+ bo as SelectContent,
138
+ Io as SelectEmptyState,
139
+ so as SelectItem,
140
+ Mo as SelectItemContent,
141
+ Do as SelectItemDescription,
142
+ Lo as SelectItemText,
143
+ ho as SelectList,
144
+ vo as SelectSearch,
145
+ Ro as SelectSeparator,
146
+ wo as SelectTrigger,
147
+ yo as SideBar,
148
+ Ho as SideBarCollapseToggle,
149
+ Po as SideBarItem,
150
+ ko as SideBarLeading,
151
+ zo as SideBarTrailing,
152
+ Go as Skeleton,
153
+ Fo as Spinner,
154
+ _o as Spot,
155
+ qo as Stepper,
156
+ Ko as Subheader,
157
+ Qo as SubheaderCount,
158
+ Uo as SubheaderDescription,
159
+ Vo as SubheaderInfo,
160
+ Wo as SubheaderRow,
161
+ Xo as SubheaderShowMore,
162
+ Yo as SubheaderTitle,
163
+ $o as Switch,
164
+ ot as Table,
165
+ tt as TableActionBar,
166
+ rt as TableActionBarLeading,
167
+ at as TableActionBarTrailing,
168
+ nt as TableBody,
169
+ it as TableCell,
170
+ pt as TableCellContent,
171
+ lt as TableGroupHeaderRow,
172
+ mt as TableHeader,
173
+ dt as TableHeaderCell,
174
+ Tt as TableHeaderRow,
175
+ xt as TableInfoIcon,
176
+ ft as TableLoadingRow,
177
+ St as TableRoot,
178
+ ut as TableRow,
179
+ Ct as TableSortButton,
180
+ gt as Tag,
181
+ bt as TextInput,
182
+ Nt as ThemeProvider,
183
+ st as Tile,
184
+ wt as TileButton,
185
+ Mt as TileContent,
186
+ Dt as TileDescription,
187
+ Lt as TileSecondaryAction,
188
+ ht as TileTitle,
189
+ vt as TileTrailingContent,
190
+ yt as Tooltip,
191
+ Ht as TooltipContent,
192
+ Pt as TooltipProvider,
193
+ kt as TooltipTrigger,
194
+ mo as createPopoverHandle,
195
+ ie as dotIconSizeMap,
196
+ pe as mediaImageDotIconSizeMap,
197
+ Te as mediaImageDotSizeMap,
198
+ le as spotDotIconSizeMap,
199
+ xe as spotDotSizeMap,
195
200
  J as useLumenDataTable,
196
- Ht as useTheme
201
+ Gt as useTheme
197
202
  };
@@ -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
+ };
@@ -0,0 +1,3 @@
1
+ export { DotIcon, dotIconSizeMap, mediaImageDotIconSizeMap, spotDotIconSizeMap, } from './DotIcon';
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/DotIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,cAAc,EACd,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,WAAW,CAAC;AACnB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { ComponentPropsWithRef, ComponentType, ReactNode } from 'react';
2
+ import { IconSize } from '../Icon';
3
+ export type DotIconSize = 16 | 20 | 24;
4
+ export type DotIconPin = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
5
+ export type DotIconAppearance = 'success' | 'muted' | 'error';
6
+ export type DotIconProps = {
7
+ /**
8
+ * Icon component to render inside the dot.
9
+ */
10
+ icon: ComponentType<{
11
+ size?: IconSize;
12
+ className?: string;
13
+ }>;
14
+ /**
15
+ * Semantic color of the dot background.
16
+ */
17
+ appearance: DotIconAppearance;
18
+ /**
19
+ * Corner placement of the dot indicator.
20
+ * @default 'bottom-end'
21
+ */
22
+ pin?: DotIconPin;
23
+ /**
24
+ * The size of the dot indicator in pixels.
25
+ * @default 20
26
+ */
27
+ size?: DotIconSize;
28
+ /**
29
+ * The shape of the dot indicator.
30
+ * @default 'circle'
31
+ */
32
+ shape?: 'square' | 'circle';
33
+ /**
34
+ * Additional custom CSS classes to apply to the wrapper.
35
+ */
36
+ className?: string;
37
+ /**
38
+ * The wrapped component (e.g. MediaImage or Spot).
39
+ */
40
+ children?: ReactNode;
41
+ } & Omit<ComponentPropsWithRef<'div'>, 'children'>;
42
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotIcon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,MAAM,WAAW,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEvC,MAAM,MAAM,UAAU,GAClB,WAAW,GACX,SAAS,GACT,cAAc,GACd,YAAY,CAAC;AAEjB,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AAE9D,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7D;;OAEG;IACH,UAAU,EAAE,iBAAiB,CAAC;IAC9B;;;OAGG;IACH,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DotSymbol.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotSymbol/DotSymbol.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAgB,cAAc,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAiD3E,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,cAAc,EAAE,aAAa,CAS7D,CAAC;AAEX,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,QAAQ,EAAE,aAAa,CAMjD,CAAC;AAmBX;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS;oFAWnB,cAAc;;CA4BhB,CAAC"}
1
+ {"version":3,"file":"DotSymbol.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotSymbol/DotSymbol.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAgB,cAAc,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAiD3E,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,cAAc,EAAE,aAAa,CAU7D,CAAC;AAEX,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,QAAQ,EAAE,aAAa,CAMjD,CAAC;AAmBX;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS;oFAWnB,cAAc;;CA4BhB,CAAC"}
@@ -53,7 +53,8 @@ const v = h(
53
53
  32: 12,
54
54
  40: 16,
55
55
  48: 20,
56
- 56: 24
56
+ 56: 24,
57
+ 64: 24
57
58
  }, V = {
58
59
  32: 12,
59
60
  40: 16,
@@ -1 +1 @@
1
- {"version":3,"file":"MediaImage.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/MediaImage.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA0B/C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,GAAI,iEASxB,eAAe,4CA8BjB,CAAC"}
1
+ {"version":3,"file":"MediaImage.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/MediaImage.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA2B/C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,GAAI,iEASxB,eAAe,4CA8BjB,CAAC"}
@@ -15,7 +15,8 @@ const h = {
15
15
  32: "size-32 rounded-sm",
16
16
  40: "size-40 rounded-md",
17
17
  48: "size-48 rounded-md",
18
- 56: "size-56 rounded-lg"
18
+ 56: "size-56 rounded-lg",
19
+ 64: "size-64 rounded-lg"
19
20
  },
20
21
  shape: {
21
22
  square: "",
@@ -26,26 +27,26 @@ const h = {
26
27
  )
27
28
  }, j = ({
28
29
  ref: o,
29
- className: a,
30
+ className: i,
30
31
  src: e,
31
- alt: i,
32
+ alt: a,
32
33
  size: d = 48,
33
34
  shape: t = "square",
34
35
  imgLoading: n = "eager",
35
36
  ...l
36
37
  }) => {
37
- const [m, s] = z(!1), u = !e || m;
38
+ const [u, s] = z(!1), m = !e || u;
38
39
  return g(() => {
39
40
  s(!1);
40
41
  }, [e]), /* @__PURE__ */ r(
41
42
  "div",
42
43
  {
43
44
  ref: o,
44
- className: c(h.root({ size: d, shape: t }), a),
45
+ className: c(h.root({ size: d, shape: t }), i),
45
46
  role: "img",
46
- "aria-label": i,
47
+ "aria-label": a,
47
48
  ...l,
48
- children: u ? /* @__PURE__ */ r("span", { className: "text-muted select-none", "aria-hidden": "true" }) : /* @__PURE__ */ r(
49
+ children: m ? /* @__PURE__ */ r("span", { className: "text-muted select-none", "aria-hidden": "true" }) : /* @__PURE__ */ r(
49
50
  "img",
50
51
  {
51
52
  src: e,
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- export type MediaImageSize = 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56;
2
+ export type MediaImageSize = 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64;
3
3
  export type MediaImageShape = 'square' | 'circle';
4
4
  export type MediaImageProps = {
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,MAAM,MAAM,cAAc,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEnE,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAElD,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,MAAM,MAAM,cAAc,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAExE,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAElD,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
- import { SelectProps, SelectTriggerProps, SelectContentProps, SelectListProps, SelectSearchProps, SelectItemTextProps, SelectItemProps, SelectItemContentProps, SelectItemDescriptionProps, SelectSeparatorProps, SelectEmptyStateProps } from './types';
2
- declare function Select({ value, defaultValue, onValueChange, disabled: disabledProp, items, filter, filteredItems, searchValue: searchValueProp, defaultSearchValue, onSearchValueChange, open, defaultOpen, onOpenChange, name, required, children, }: SelectProps): import("react/jsx-runtime").JSX.Element;
1
+ import { MetaShape, SelectProps, SelectTriggerProps, SelectContentProps, SelectListProps, SelectSearchProps, SelectItemTextProps, SelectItemProps, SelectItemContentProps, SelectItemDescriptionProps, SelectSeparatorProps, SelectEmptyStateProps } from './types';
2
+ declare function Select<TMeta extends MetaShape = MetaShape>({ value, defaultValue, onValueChange, disabled: disabledProp, items, filter, filteredItems, searchValue: searchValueProp, defaultSearchValue, onSearchValueChange, open, defaultOpen, onOpenChange, name, required, children, }: Readonly<SelectProps<TMeta>>): import("react/jsx-runtime").JSX.Element;
3
3
  declare const SelectTrigger: ({ render, disabled, ...props }: SelectTriggerProps) => import("react/jsx-runtime").JSX.Element;
4
- declare const SelectContent: ({ ref, className, children, side, sideOffset, align, autoFocusSearch, ...props }: SelectContentProps) => import("react/jsx-runtime").JSX.Element;
5
- declare const SelectList: ({ ref, className, renderItem, ...props }: SelectListProps) => import("react/jsx-runtime").JSX.Element;
4
+ declare const SelectContent: ({ ref, className, children, side, sideOffset, align, initialFocus, ...props }: SelectContentProps) => import("react/jsx-runtime").JSX.Element;
5
+ declare const SelectList: <TMeta extends MetaShape = MetaShape>({ ref, className, renderItem, ...props }: SelectListProps<TMeta>) => import("react/jsx-runtime").JSX.Element;
6
6
  declare const SelectItem: ({ ref, className, children, ...props }: SelectItemProps) => import("react/jsx-runtime").JSX.Element;
7
7
  declare const SelectSeparator: ({ ref, className, ...props }: SelectSeparatorProps) => import("react/jsx-runtime").JSX.Element;
8
8
  declare const SelectItemText: ({ ref, className, ...props }: SelectItemTextProps) => import("react/jsx-runtime").JSX.Element;