@ledgerhq/lumen-ui-react 0.1.21 → 0.1.22

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 (42) hide show
  1. package/dist/index.js +121 -121
  2. package/dist/lib/Components/ListItem/ListItem.d.ts +2 -2
  3. package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
  4. package/dist/lib/Components/ListItem/ListItem.js +87 -51
  5. package/dist/lib/Components/ListItem/types.d.ts +9 -9
  6. package/dist/lib/Components/ListItem/types.d.ts.map +1 -1
  7. package/dist/lib/Components/MediaButton/MediaButton.d.ts +30 -0
  8. package/dist/lib/Components/MediaButton/MediaButton.d.ts.map +1 -0
  9. package/dist/lib/Components/{TriggerButton/TriggerButton.js → MediaButton/MediaButton.js} +24 -23
  10. package/dist/lib/Components/MediaButton/index.d.ts +3 -0
  11. package/dist/lib/Components/MediaButton/index.d.ts.map +1 -0
  12. package/dist/lib/Components/{TriggerButton → MediaButton}/types.d.ts +9 -4
  13. package/dist/lib/Components/MediaButton/types.d.ts.map +1 -0
  14. package/dist/lib/Components/Popover/Popover.d.ts +1 -1
  15. package/dist/lib/Components/Popover/Popover.d.ts.map +1 -1
  16. package/dist/lib/Components/Popover/Popover.js +36 -34
  17. package/dist/lib/Components/Popover/types.d.ts +11 -1
  18. package/dist/lib/Components/Popover/types.d.ts.map +1 -1
  19. package/dist/lib/Components/Select/Select.d.ts +2 -3
  20. package/dist/lib/Components/Select/Select.d.ts.map +1 -1
  21. package/dist/lib/Components/Select/Select.js +132 -139
  22. package/dist/lib/Components/Select/index.d.ts +1 -1
  23. package/dist/lib/Components/Select/index.d.ts.map +1 -1
  24. package/dist/lib/Components/Select/types.d.ts +2 -10
  25. package/dist/lib/Components/Select/types.d.ts.map +1 -1
  26. package/dist/lib/Components/ThemeProvider/ThemeProvider.d.ts +7 -0
  27. package/dist/lib/Components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  28. package/dist/lib/Components/ThemeProvider/ThemeProvider.js +24 -18
  29. package/dist/lib/Components/ThemeProvider/ThemeProvider.types.d.ts +7 -1
  30. package/dist/lib/Components/ThemeProvider/ThemeProvider.types.d.ts.map +1 -1
  31. package/dist/lib/Components/ThemeProvider/useRootColorModeSideEffect.d.ts +10 -5
  32. package/dist/lib/Components/ThemeProvider/useRootColorModeSideEffect.d.ts.map +1 -1
  33. package/dist/lib/Components/ThemeProvider/useRootColorModeSideEffect.js +22 -21
  34. package/dist/lib/Components/index.d.ts +1 -1
  35. package/dist/lib/Components/index.d.ts.map +1 -1
  36. package/dist/package.json +3 -2
  37. package/package.json +2 -1
  38. package/dist/lib/Components/TriggerButton/TriggerButton.d.ts +0 -30
  39. package/dist/lib/Components/TriggerButton/TriggerButton.d.ts.map +0 -1
  40. package/dist/lib/Components/TriggerButton/index.d.ts +0 -3
  41. package/dist/lib/Components/TriggerButton/index.d.ts.map +0 -1
  42. package/dist/lib/Components/TriggerButton/types.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import { Banner as x } from "./lib/Components/Banner/Banner.js";
7
7
  import { BaseInput as u } from "./lib/Components/BaseInput/BaseInput.js";
8
8
  import { Button as S } from "./lib/Components/Button/Button.js";
9
9
  import { BaseButton as c } from "./lib/Components/Button/BaseButton.js";
10
- import { Card as b, CardContent as I, 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";
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
12
  import { ContentBanner as P, ContentBannerContent as k, ContentBannerDescription as N, ContentBannerTitle as G } from "./lib/Components/ContentBanner/ContentBanner.js";
13
13
  import { Checkbox as F } from "./lib/Components/Checkbox/Checkbox.js";
@@ -22,31 +22,31 @@ import { IconButton as me } from "./lib/Components/IconButton/IconButton.js";
22
22
  import { InteractiveIcon as Te } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
23
23
  import { Link as fe } from "./lib/Components/Link/Link.js";
24
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 De, MediaBannerDescription as Me, MediaBannerTitle as Le } from "./lib/Components/MediaBanner/MediaBanner.js";
26
- import { MediaCard as ve, MediaCardTitle as Re } from "./lib/Components/MediaCard/MediaCard.js";
27
- import { MediaImage as Ae } from "./lib/Components/MediaImage/MediaImage.js";
28
- import { Menu as He, MenuCheckboxItem as Pe, MenuContent as ke, MenuGroup as Ne, MenuItem as Ge, MenuLabel as Ee, MenuPortal as Fe, MenuRadioGroup as ze, MenuRadioItem as Oe, MenuSeparator as _e, MenuSub as je, MenuSubContent as qe, MenuSubTrigger as Je, MenuTrigger as Ke } from "./lib/Components/Menu/Menu.js";
29
- import { NavBar as Ue, NavBarBackButton as Ve, NavBarCoinCapsule as We, NavBarTitle as Xe, NavBarTrailing as Ye } from "./lib/Components/NavBar/NavBar.js";
30
- import { Popover as $e, PopoverContent as eo, PopoverTrigger as oo, createPopoverHandle as to } from "./lib/Components/Popover/Popover.js";
31
- import { PageIndicator as ao } from "./lib/Components/PageIndicator/PageIndicator.js";
32
- import { SearchInput as io } from "./lib/Components/SearchInput/SearchInput.js";
33
- import { SegmentedControl as lo, SegmentedControlButton as mo } from "./lib/Components/SegmentedControl/SegmentedControl.js";
34
- import { Select as xo, SelectContent as fo, SelectEmptyState as uo, SelectItem as Co, SelectItemContent as So, SelectItemDescription as go, SelectItemText as co, SelectList as Bo, SelectSearch as bo, SelectSeparator as Io, SelectTrigger as so, SelectTriggerButton as Do } from "./lib/Components/Select/Select.js";
35
- import { TriggerButton as Lo } from "./lib/Components/TriggerButton/TriggerButton.js";
36
- import { SideBar as vo, SideBarCollapseToggle as Ro, SideBarItem as wo, SideBarLeading as Ao, SideBarTrailing as yo } from "./lib/Components/SideBar/SideBar.js";
37
- import { Skeleton as Po } from "./lib/Components/Skeleton/Skeleton.js";
38
- import { Spinner as No } from "./lib/Components/Spinner/Spinner.js";
39
- import { Spot as Eo } from "./lib/Components/Spot/Spot.js";
40
- import { Stepper as zo } from "./lib/Components/Stepper/Stepper.js";
41
- import { Subheader as _o, SubheaderCount as jo, SubheaderDescription as qo, SubheaderInfo as Jo, SubheaderRow as Ko, SubheaderShowMore as Qo, SubheaderTitle as Uo } from "./lib/Components/Subheader/Subheader.js";
42
- import { Switch as Wo } from "./lib/Components/Switch/Switch.js";
43
- import { Table as Yo, TableActionBar as Zo, TableActionBarLeading as $o, TableActionBarTrailing as et, TableBody as ot, TableCell as tt, TableCellContent as rt, TableGroupHeaderRow as at, TableHeader as nt, TableHeaderCell as it, TableHeaderRow as pt, TableInfoIcon as lt, TableLoadingRow as mt, TableRoot as dt, TableRow as Tt, TableSortButton as xt } from "./lib/Components/Table/Table.js";
44
- import { Tag as ut } from "./lib/Components/Tag/Tag.js";
45
- import { TextInput as St } from "./lib/Components/TextInput/TextInput.js";
46
- import { Tile as ct, TileContent as Bt, TileDescription as bt, TileSecondaryAction as It, TileTitle as st, TileTrailingContent as Dt } from "./lib/Components/Tile/Tile.js";
47
- import { TileButton as Lt } from "./lib/Components/TileButton/TileButton.js";
48
- import { Tooltip as vt, TooltipContent as Rt, TooltipProvider as wt, TooltipTrigger as At } from "./lib/Components/Tooltip/Tooltip.js";
49
- import { ThemeProvider as Ht } from "./lib/Components/ThemeProvider/ThemeProvider.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
50
  import { COLOR_SCHEMES as kt } from "./lib/Components/ThemeProvider/ThemeProvider.types.js";
51
51
  export {
52
52
  a as AddressInput,
@@ -62,8 +62,8 @@ export {
62
62
  y as CardButton,
63
63
  I as CardContent,
64
64
  s as CardContentDescription,
65
- D as CardContentRow,
66
- M as CardContentTitle,
65
+ M as CardContentRow,
66
+ D as CardContentTitle,
67
67
  L as CardFooter,
68
68
  h as CardFooterActions,
69
69
  v as CardHeader,
@@ -98,100 +98,100 @@ export {
98
98
  Be as ListItemLeading,
99
99
  be as ListItemTitle,
100
100
  Ie as ListItemTrailing,
101
- De as MediaBanner,
102
- Me as MediaBannerDescription,
101
+ Me as MediaBanner,
102
+ De as MediaBannerDescription,
103
103
  Le as MediaBannerTitle,
104
- ve as MediaCard,
105
- Re as MediaCardTitle,
106
- Ae as MediaImage,
107
- He as Menu,
108
- Pe as MenuCheckboxItem,
109
- ke as MenuContent,
110
- Ne as MenuGroup,
111
- Ge as MenuItem,
112
- Ee as MenuLabel,
113
- Fe as MenuPortal,
114
- ze as MenuRadioGroup,
115
- Oe as MenuRadioItem,
116
- _e as MenuSeparator,
117
- je as MenuSub,
118
- qe as MenuSubContent,
119
- Je as MenuSubTrigger,
120
- Ke as MenuTrigger,
121
- Ue as NavBar,
122
- Ve as NavBarBackButton,
123
- We as NavBarCoinCapsule,
124
- Xe as NavBarTitle,
125
- Ye as NavBarTrailing,
126
- ao as PageIndicator,
127
- $e as Popover,
128
- eo as PopoverContent,
129
- oo as PopoverTrigger,
130
- io as SearchInput,
131
- lo as SegmentedControl,
132
- mo as SegmentedControlButton,
133
- xo as Select,
134
- fo as SelectContent,
135
- uo as SelectEmptyState,
136
- Co as SelectItem,
137
- So as SelectItemContent,
138
- go as SelectItemDescription,
139
- co as SelectItemText,
140
- Bo as SelectList,
141
- bo as SelectSearch,
142
- Io as SelectSeparator,
143
- so as SelectTrigger,
144
- Do as SelectTriggerButton,
145
- vo as SideBar,
146
- Ro as SideBarCollapseToggle,
147
- wo as SideBarItem,
148
- Ao as SideBarLeading,
149
- yo as SideBarTrailing,
150
- Po as Skeleton,
151
- No as Spinner,
152
- Eo as Spot,
153
- zo as Stepper,
154
- _o as Subheader,
155
- jo as SubheaderCount,
156
- qo as SubheaderDescription,
157
- Jo as SubheaderInfo,
158
- Ko as SubheaderRow,
159
- Qo as SubheaderShowMore,
160
- Uo as SubheaderTitle,
161
- Wo as Switch,
162
- Yo as Table,
163
- Zo as TableActionBar,
164
- $o as TableActionBarLeading,
165
- et as TableActionBarTrailing,
166
- ot as TableBody,
167
- tt as TableCell,
168
- rt as TableCellContent,
169
- at as TableGroupHeaderRow,
170
- nt as TableHeader,
171
- it as TableHeaderCell,
172
- pt as TableHeaderRow,
173
- lt as TableInfoIcon,
174
- mt as TableLoadingRow,
175
- dt as TableRoot,
176
- Tt as TableRow,
177
- xt as TableSortButton,
178
- ut as Tag,
179
- St as TextInput,
180
- Ht as ThemeProvider,
181
- ct as Tile,
182
- Lt as TileButton,
183
- Bt as TileContent,
184
- bt as TileDescription,
185
- It as TileSecondaryAction,
186
- st as TileTitle,
187
- Dt as TileTrailingContent,
188
- vt as Tooltip,
189
- Rt as TooltipContent,
190
- wt as TooltipProvider,
191
- At as TooltipTrigger,
192
- Lo as TriggerButton,
193
- to as createPopoverHandle,
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,
194
193
  ie as mediaImageDotSizeMap,
195
194
  pe as spotDotSizeMap,
196
- J as useLumenDataTable
195
+ J as useLumenDataTable,
196
+ Ht as useTheme
197
197
  };
@@ -1,4 +1,4 @@
1
- import { ListItemContentProps, ListItemDescriptionProps, ListItemLeadingProps, ListItemProps, ListItemTitleProps, ListItemTrailingProps, ListItemContentRowProps } from './types';
1
+ import { ListItemProps, ListItemContentProps, ListItemLeadingProps, ListItemContentRowProps, ListItemTitleProps, ListItemDescriptionProps, ListItemTrailingProps } from './types';
2
2
  /**
3
3
  * A flexible list item component that provides a composable structure for displaying
4
4
  * interactive list items with leading content, title, description, and trailing content.
@@ -21,7 +21,7 @@ import { ListItemContentProps, ListItemDescriptionProps, ListItemLeadingProps, L
21
21
  * </ListItemTrailing>
22
22
  * </ListItem>
23
23
  */
24
- export declare const ListItem: ({ ref, ...props }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const ListItem: ({ onClick, ref, ...props }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
25
25
  /**
26
26
  * Container for the leading (left) part of the list item.
27
27
  * Contains the visual element (Spot, Avatar, Icon) and the content (title + description).
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/ListItem.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAOjB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ,GAAI,mBAAmB,aAAa,4CAyBxD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,wCAK7B,oBAAoB,4CAUtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,wCAK7B,oBAAoB,4CAUtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,wCAKhC,uBAAuB,4CAmBzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,wCAK3B,kBAAkB,4CAwBpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,wCAKjC,wBAAwB,4CAwB1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,wCAK9B,qBAAqB,4CAqBvB,CAAC"}
1
+ {"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/ListItem.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAsCjB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ,GAAI,4BAA4B,aAAa,4CAgCjE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,wCAK7B,oBAAoB,4CAUtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,wCAK7B,oBAAoB,4CAUtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,wCAKhC,uBAAuB,4CAmBzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,wCAK3B,kBAAkB,4CAwBpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,wCAKjC,wBAAwB,4CAwB1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,wCAK9B,qBAAqB,4CAqBvB,CAAC"}
@@ -1,69 +1,105 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { useDisabledContext as l, DisabledProvider as m, cn as a, createSafeContext as u } from "../../../libs/utils-shared/dist/index.js";
3
- const [b, d] = u("ListItemTrailing", {
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { useDisabledContext as c, DisabledProvider as x, cn as r, getButtonA11yProps as b, createSafeContext as f } from "../../../libs/utils-shared/dist/index.js";
3
+ import { cva as p } from "class-variance-authority";
4
+ const [I, l] = f("ListItemTrailing", {
4
5
  isInTrailing: !1
5
- }), I = ({ ref: e, ...t }) => {
6
- const { children: s, className: i, disabled: n, ...o } = t, c = l({
6
+ }), g = p(
7
+ [
8
+ "flex w-full items-center gap-16 px-8",
9
+ "rounded-md bg-base-transparent text-base transition-colors"
10
+ ],
11
+ {
12
+ variants: {
13
+ density: {
14
+ compact: "h-40",
15
+ expanded: "h-64"
16
+ },
17
+ interactive: {
18
+ true: "",
19
+ false: ""
20
+ },
21
+ disabled: {
22
+ true: "cursor-default bg-base-transparent text-disabled",
23
+ false: ""
24
+ }
25
+ },
26
+ compoundVariants: [
27
+ {
28
+ interactive: !0,
29
+ disabled: !1,
30
+ className: "cursor-pointer hover:bg-base-transparent-hover focus-visible:outline-2 focus-visible:outline-focus active:bg-base-transparent-pressed"
31
+ }
32
+ ]
33
+ }
34
+ ), T = ({ onClick: e, ref: t, ...s }) => {
35
+ const {
36
+ children: i,
37
+ className: n,
38
+ disabled: o = !1,
39
+ density: m = "expanded",
40
+ ...u
41
+ } = s, d = c({
7
42
  consumerName: "ListItem",
8
- mergeWith: { disabled: n }
43
+ mergeWith: { disabled: o }
9
44
  });
10
- return /* @__PURE__ */ r(m, { value: { disabled: c }, children: /* @__PURE__ */ r(
11
- "button",
45
+ return /* @__PURE__ */ a(x, { value: { disabled: d }, children: /* @__PURE__ */ a(
46
+ "div",
12
47
  {
13
- ref: e,
14
- type: "button",
15
- disabled: c,
16
- className: a(
17
- "flex h-64 w-full cursor-pointer items-center gap-16 rounded-md bg-base-transparent px-8 py-12 text-base transition-colors",
18
- "hover:bg-base-transparent-hover focus-visible:outline-2 focus-visible:outline-focus active:bg-base-transparent-pressed",
19
- "disabled:cursor-default disabled:bg-base-transparent disabled:text-disabled",
20
- i
48
+ ref: t,
49
+ ...b({ onClick: e, disabled: d }),
50
+ className: r(
51
+ g({
52
+ density: m,
53
+ interactive: !!e,
54
+ disabled: d
55
+ }),
56
+ n
21
57
  ),
22
- ...o,
23
- children: s
58
+ ...u,
59
+ children: i
24
60
  }
25
61
  ) });
26
- }, p = ({
62
+ }, y = ({
27
63
  ref: e,
28
64
  children: t,
29
65
  className: s,
30
66
  ...i
31
- }) => /* @__PURE__ */ r(
67
+ }) => /* @__PURE__ */ a(
32
68
  "div",
33
69
  {
34
70
  ref: e,
35
- className: a("flex min-w-0 flex-1 items-center gap-12", s),
71
+ className: r("flex min-w-0 flex-1 items-center gap-12", s),
36
72
  ...i,
37
73
  children: t
38
74
  }
39
- ), g = ({
75
+ ), h = ({
40
76
  ref: e,
41
77
  children: t,
42
78
  className: s,
43
79
  ...i
44
- }) => /* @__PURE__ */ r(
80
+ }) => /* @__PURE__ */ a(
45
81
  "div",
46
82
  {
47
83
  ref: e,
48
- className: a("flex min-w-0 flex-1 flex-col gap-4", s),
84
+ className: r("flex min-w-0 flex-1 flex-col gap-4", s),
49
85
  ...i,
50
86
  children: t
51
87
  }
52
- ), L = ({
88
+ ), w = ({
53
89
  ref: e,
54
90
  children: t,
55
91
  className: s,
56
92
  ...i
57
93
  }) => {
58
- const { isInTrailing: n } = d({
94
+ const { isInTrailing: n } = l({
59
95
  consumerName: "ListItemContentRow",
60
96
  contextRequired: !1
61
97
  });
62
- return /* @__PURE__ */ r(
98
+ return /* @__PURE__ */ a(
63
99
  "div",
64
100
  {
65
101
  ref: e,
66
- className: a(
102
+ className: r(
67
103
  "flex min-w-0 items-center gap-8",
68
104
  n && "justify-end",
69
105
  s
@@ -72,25 +108,25 @@ const [b, d] = u("ListItemTrailing", {
72
108
  children: t
73
109
  }
74
110
  );
75
- }, v = ({
111
+ }, R = ({
76
112
  ref: e,
77
113
  children: t,
78
114
  className: s,
79
115
  ...i
80
116
  }) => {
81
- const n = l({
117
+ const n = c({
82
118
  consumerName: "ListItemTitle",
83
119
  contextRequired: !0
84
- }), { isInTrailing: o } = d({
120
+ }), { isInTrailing: o } = l({
85
121
  consumerName: "ListItemTitle",
86
122
  contextRequired: !1
87
123
  });
88
- return /* @__PURE__ */ r(
124
+ return /* @__PURE__ */ a(
89
125
  "div",
90
126
  {
91
127
  ref: e,
92
- className: a(
93
- "min-w-0 flex-1 truncate body-2-semi-bold",
128
+ className: r(
129
+ "min-w-0 truncate body-2-semi-bold",
94
130
  o ? "justify-end text-end" : "justify-start text-start",
95
131
  n && "text-disabled",
96
132
  s
@@ -99,25 +135,25 @@ const [b, d] = u("ListItemTrailing", {
99
135
  children: t
100
136
  }
101
137
  );
102
- }, N = ({
138
+ }, j = ({
103
139
  ref: e,
104
140
  children: t,
105
141
  className: s,
106
142
  ...i
107
143
  }) => {
108
- const n = l({
144
+ const n = c({
109
145
  consumerName: "ListItemDescription",
110
146
  contextRequired: !0
111
- }), { isInTrailing: o } = d({
147
+ }), { isInTrailing: o } = l({
112
148
  consumerName: "ListItemDescription",
113
149
  contextRequired: !1
114
150
  });
115
- return /* @__PURE__ */ r(
151
+ return /* @__PURE__ */ a(
116
152
  "div",
117
153
  {
118
154
  ref: e,
119
- className: a(
120
- "min-w-0 flex-1 items-center truncate body-3 text-muted",
155
+ className: r(
156
+ "min-w-0 items-center truncate body-3 text-muted",
121
157
  o ? "justify-end text-end" : "justify-start text-start",
122
158
  n && "text-disabled",
123
159
  s
@@ -126,21 +162,21 @@ const [b, d] = u("ListItemTrailing", {
126
162
  children: t
127
163
  }
128
164
  );
129
- }, T = ({
165
+ }, q = ({
130
166
  ref: e,
131
167
  children: t,
132
168
  className: s,
133
169
  ...i
134
170
  }) => {
135
- const n = l({
171
+ const n = c({
136
172
  consumerName: "ListItemTrailing",
137
173
  contextRequired: !0
138
174
  });
139
- return /* @__PURE__ */ r(b, { value: { isInTrailing: !0 }, children: /* @__PURE__ */ r(
175
+ return /* @__PURE__ */ a(I, { value: { isInTrailing: !0 }, children: /* @__PURE__ */ a(
140
176
  "div",
141
177
  {
142
178
  ref: e,
143
- className: a(
179
+ className: r(
144
180
  "flex shrink-0 items-center",
145
181
  n && "text-disabled",
146
182
  s
@@ -151,11 +187,11 @@ const [b, d] = u("ListItemTrailing", {
151
187
  ) });
152
188
  };
153
189
  export {
154
- I as ListItem,
155
- g as ListItemContent,
156
- L as ListItemContentRow,
157
- N as ListItemDescription,
158
- p as ListItemLeading,
159
- v as ListItemTitle,
160
- T as ListItemTrailing
190
+ T as ListItem,
191
+ h as ListItemContent,
192
+ w as ListItemContentRow,
193
+ j as ListItemDescription,
194
+ y as ListItemLeading,
195
+ R as ListItemTitle,
196
+ q as ListItemTrailing
161
197
  };
@@ -1,10 +1,5 @@
1
- import { ButtonHTMLAttributes, ComponentPropsWithRef, ReactNode } from 'react';
2
- /**
3
- * Context value for passing state to sub-components
4
- */
5
- export type ListItemContextValue = {
6
- disabled?: boolean;
7
- };
1
+ import { Density } from '@ledgerhq/lumen-utils-shared';
2
+ import { ComponentPropsWithRef, MouseEventHandler, ReactNode } from 'react';
8
3
  /**
9
4
  * Props for the ListItem root component
10
5
  */
@@ -13,6 +8,11 @@ export type ListItemProps = {
13
8
  * The content of the list item (ListItemLeading, ListItemTrailing)
14
9
  */
15
10
  children: ReactNode;
11
+ /**
12
+ * The density of the list item.
13
+ * @default 'expanded'
14
+ */
15
+ density?: Density;
16
16
  /**
17
17
  * custom classname
18
18
  */
@@ -24,8 +24,8 @@ export type ListItemProps = {
24
24
  /**
25
25
  * Callback function when the list item is pressed.
26
26
  */
27
- onClick?: ButtonHTMLAttributes<HTMLButtonElement>['onClick'];
28
- } & Omit<ComponentPropsWithRef<'button'>, 'children'>;
27
+ onClick?: MouseEventHandler<HTMLDivElement>;
28
+ } & Omit<ComponentPropsWithRef<'div'>, 'children'>;
29
29
  /**
30
30
  * Props for the ListItemLeading component
31
31
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,SAAS,EACV,MAAM,OAAO,CAAC;AAEf;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC;CAC9D,GAAG,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,QAAQ,EAA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EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { MediaButtonProps } from './types';
2
+ /**
3
+ * Media button for select/dropdown components. Displays a label with an optional
4
+ * leading icon and a trailing chevron indicator.
5
+ *
6
+ * This component is intended to be used exclusively as the trigger inside a Select or
7
+ * dropdown pattern. It should not be used as a standalone action button — use `Button`
8
+ * or `IconButton` instead.
9
+ *
10
+ * @see {@link https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7/2.-Components-Library?node-id=6389-45680 Figma}
11
+ *
12
+ * @example
13
+ * import { MediaButton } from '@ledgerhq/lumen-ui-react';
14
+ * import { Settings } from '@ledgerhq/lumen-ui-react/symbols';
15
+ *
16
+ * // With flat interface icon
17
+ * <MediaButton icon={<Settings size={20} />} iconType="flat">
18
+ * Network
19
+ * </MediaButton>
20
+ *
21
+ * // With rounded crypto icon
22
+ * <MediaButton icon={<CryptoIcon ledgerId="bitcoin" size="32px" />} iconType="rounded">
23
+ * Bitcoin
24
+ * </MediaButton>
25
+ *
26
+ * // Without icon
27
+ * <MediaButton>All accounts</MediaButton>
28
+ */
29
+ export declare const MediaButton: ({ ref, className, appearance, size, disabled: disabledProp, asChild, icon, iconType, hideChevron, children, ...props }: MediaButtonProps) => import("react/jsx-runtime").JSX.Element;
30
+ //# sourceMappingURL=MediaButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaButton/MediaButton.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AA4BhD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,WAAW,GAAI,wHAYzB,gBAAgB,4CAmClB,CAAC"}