@ledgerhq/lumen-ui-react 0.1.49 → 0.1.51

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.
package/README.md CHANGED
@@ -33,13 +33,23 @@ import type { Config } from 'tailwindcss';
33
33
  import { ledgerLivePreset } from '@ledgerhq/lumen-design-core';
34
34
 
35
35
  const config = {
36
- content: ['./src/**/*.{js,ts,jsx,tsx}', './node_modules/@ledgerhq/lumen-ui-react/dist/lib/**/*.{js,ts,jsx,tsx}'],
36
+ content: ['./src/**/*.{js,ts,jsx,tsx}'],
37
37
  presets: [ledgerLivePreset],
38
38
  } satisfies Config;
39
39
 
40
40
  export default config;
41
41
  ```
42
42
 
43
+ Then import Lumen's stylesheet next to Tailwind in your main CSS file. It
44
+ registers our compiled components as a Tailwind source, so you never have to
45
+ reference our build layout yourself:
46
+
47
+ ```css
48
+ @import 'tailwindcss';
49
+ @import '@ledgerhq/lumen-ui-react/tailwind.css';
50
+ @config '../tailwind.config.ts';
51
+ ```
52
+
43
53
  ### 2. Start Using Components
44
54
 
45
55
  ```tsx
package/ai-rules/RULES.md CHANGED
@@ -22,7 +22,13 @@ Lumen typography classes set `font-family: Inter` via design tokens. The consume
22
22
 
23
23
  ### Tailwind Configuration (REQUIRED)
24
24
 
25
- - Tailwind config MUST include Lumen in content array: `'./node_modules/@ledgerhq/lumen-ui-react/dist/lib/**/*.{js,ts,jsx,tsx}'`
25
+ - Check the installed Tailwind major version first — the two paths differ:
26
+ - **Tailwind v4 (recommended):** the main stylesheet MUST import Lumen's
27
+ stylesheet so Tailwind scans the compiled components:
28
+ `@import '@ledgerhq/lumen-ui-react/tailwind.css';` (add
29
+ `@import '@ledgerhq/lumen-ui-react-visualization/tailwind.css';` when using
30
+ charts). Do NOT also add `./node_modules/@ledgerhq/lumen-ui-react/dist/**` to
31
+ the `content` array — that path is internal and may change in any release.
26
32
  - Always use a preset from `@ledgerhq/lumen-design-core`: ledgerLivePreset, enterprisePreset or websitesPreset
27
33
  - Import presets: `import { ledgerLivePreset } from '@ledgerhq/lumen-design-core'`
28
34
 
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './lib/Components';
2
2
  export { type SupportedLocale, Languages } from './i18n';
3
+ export { useControllableState } from './utils/useControllableState';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,KAAK,eAAe,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,KAAK,eAAe,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC"}
package/dist/index.js CHANGED
@@ -1,239 +1,241 @@
1
1
  import { Languages as t } from "./i18n/languages.js";
2
- import { AddressInput as a } from "./lib/Components/AddressInput/AddressInput.js";
3
- import { AmountInput as i } from "./lib/Components/AmountInput/AmountInput.js";
4
- import { AmountDisplay as l } from "./lib/Components/AmountDisplay/AmountDisplay.js";
5
- import { Avatar as d } from "./lib/Components/Avatar/Avatar.js";
6
- import { resolveAvatarColor as x } from "./lib/Components/Avatar/resolveAvatarColor.js";
7
- import { AvatarButton as C } from "./lib/Components/AvatarButton/AvatarButton.js";
8
- import { Banner as S } from "./lib/Components/Banner/Banner.js";
9
- import { BaseInput as g } from "./lib/Components/BaseInput/BaseInput.js";
10
- import { Button as b } from "./lib/Components/Button/Button.js";
11
- import { BaseButton as s } from "./lib/Components/Button/BaseButton.js";
12
- import { Card as M, CardContent as L, CardContentDescription as v, CardContentRow as h, CardContentTitle as R, CardFooter as A, CardFooterActions as H, CardHeader as w, CardLeading as P, CardTrailing as y } from "./lib/Components/Card/Card.js";
13
- import { CardButton as k } from "./lib/Components/CardButton/CardButton.js";
14
- import { Checkbox as z } from "./lib/Components/Checkbox/Checkbox.js";
15
- import { ContentBanner as F, ContentBannerContent as O, ContentBannerDescription as V, ContentBannerTitle as _ } from "./lib/Components/ContentBanner/ContentBanner.js";
16
- import { DataTable as q, DataTableGlobalSearchInput as J, DataTableRoot as K } from "./lib/Components/DataTable/DataTable.js";
17
- import { useLumenDataTable as U } from "./lib/Components/DataTable/useLumenDataTable/useLumenDataTable.js";
18
- import { DescriptionItem as X, DescriptionItemLabel as Y, DescriptionItemLeading as Z, DescriptionItemTrailing as $, DescriptionItemValue as ee } from "./lib/Components/DescriptionItem/DescriptionItem.js";
19
- import { DialogClose as te } from "./lib/Components/Dialog/DialogClose/DialogClose.js";
20
- import { Dialog as ae, DialogBody as ne, DialogBodyStickyContent as ie, DialogContent as pe, DialogFooter as le, DialogTrigger as me } from "./lib/Components/Dialog/Dialog.js";
21
- import { DialogHeader as Te } from "./lib/Components/Dialog/DialogHeader/DialogHeader.js";
22
- import { Divider as fe } from "./lib/Components/Divider/Divider.js";
23
- import { DotCount as ce } from "./lib/Components/DotCount/DotCount.js";
24
- import { DotIcon as ue, dotIconSizeMap as ge, mediaImageDotIconSizeMap as Ie, spotDotIconSizeMap as be } from "./lib/Components/DotIcon/DotIcon.js";
25
- import { DotIndicator as se } from "./lib/Components/DotIndicator/DotIndicator.js";
26
- import { getDotIndicatorProps as Me } from "./lib/Components/DotIndicator/getDotIndicatorProps.js";
27
- import { DotSymbol as ve, mediaImageDotSizeMap as he, spotDotSizeMap as Re } from "./lib/Components/DotSymbol/DotSymbol.js";
28
- import { IconButton as He } from "./lib/Components/IconButton/IconButton.js";
29
- import { InteractiveIcon as Pe } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
30
- import { Link as Ne } from "./lib/Components/Link/Link.js";
31
- import { ListItem as Ge, ListItemContent as ze, ListItemContentRow as Ee, ListItemDescription as Fe, ListItemLeading as Oe, ListItemTitle as Ve, ListItemTrailing as _e } from "./lib/Components/ListItem/ListItem.js";
32
- import { MediaBanner as qe, MediaBannerDescription as Je, MediaBannerTitle as Ke } from "./lib/Components/MediaBanner/MediaBanner.js";
33
- import { MediaButton as Ue } from "./lib/Components/MediaButton/MediaButton.js";
34
- import { MediaCard as Xe, MediaCardTitle as Ye } from "./lib/Components/MediaCard/MediaCard.js";
35
- import { MediaImage as $e } from "./lib/Components/MediaImage/MediaImage.js";
36
- import { MediaTag as oo } from "./lib/Components/MediaTag/MediaTag.js";
37
- import { Menu as ro, MenuCheckboxItem as ao, MenuContent as no, MenuGroup as io, MenuItem as po, MenuLabel as lo, MenuRadioGroup as mo, MenuRadioItem as To, MenuSeparator as xo, MenuSub as fo, MenuSubContent as Co, MenuSubTrigger as co, MenuTrigger as So, createMenuRadioGroup as uo } from "./lib/Components/Menu/Menu.js";
38
- import { NavBar as Io, NavBarBackButton as bo, NavBarCoinCapsule as Bo, NavBarDescription as so, NavBarLeading as Do, NavBarTitle as Mo, NavBarTrailing as Lo } from "./lib/Components/NavBar/NavBar.js";
39
- import { Popover as ho, PopoverContent as Ro, PopoverTrigger as Ao, createPopoverHandle as Ho } from "./lib/Components/Popover/Popover.js";
40
- import { PageIndicator as Po } from "./lib/Components/PageIndicator/PageIndicator.js";
41
- import { Pagination as No } from "./lib/Components/Pagination/Pagination.js";
42
- import { SearchInput as Go } from "./lib/Components/SearchInput/SearchInput.js";
43
- import { SectionHeader as Eo, SectionHeaderLeading as Fo, SectionHeaderTitle as Oo } from "./lib/Components/SectionHeader/SectionHeader.js";
44
- import { SegmentedControl as _o, SegmentedControlButton as jo, createSegmentedControl as qo } from "./lib/Components/SegmentedControl/SegmentedControl.js";
45
- import { Select as Ko, SelectContent as Qo, SelectEmptyState as Uo, SelectItem as Wo, SelectItemContent as Xo, SelectItemDescription as Yo, SelectItemText as Zo, SelectList as $o, SelectSearch as et, SelectSeparator as ot, SelectTrigger as tt, createSelect as rt } from "./lib/Components/Select/Select.js";
46
- import { SideBar as nt, SideBarCollapseToggle as it, SideBarItem as pt, SideBarLeading as lt, SideBarTrailing as mt, createSideBar as dt } from "./lib/Components/SideBar/SideBar.js";
47
- import { Skeleton as xt } from "./lib/Components/Skeleton/Skeleton.js";
48
- import { Spinner as Ct } from "./lib/Components/Spinner/Spinner.js";
49
- import { Spot as St } from "./lib/Components/Spot/Spot.js";
50
- import { Stepper as gt } from "./lib/Components/Stepper/Stepper.js";
51
- import { Subheader as bt, SubheaderCount as Bt, SubheaderDescription as st, SubheaderInfo as Dt, SubheaderRow as Mt, SubheaderShowMore as Lt, SubheaderTitle as vt } from "./lib/Components/Subheader/Subheader.js";
52
- import { Switch as Rt } from "./lib/Components/Switch/Switch.js";
53
- import { Table as Ht, TableActionBar as wt, TableActionBarLeading as Pt, TableActionBarTrailing as yt, TableBody as Nt, TableCell as kt, TableCellContent as Gt, TableCellContentDescription as zt, TableCellContentRow as Et, TableCellContentTitle as Ft, TableCellItem as Ot, TableCol as Vt, TableColGroup as _t, TableGroupHeaderRow as jt, TableHeader as qt, TableHeaderCell as Jt, TableHeaderRow as Kt, TableInfoIcon as Qt, TableLoadingRow as Ut, TableRoot as Wt, TableRow as Xt, TableSortButton as Yt } from "./lib/Components/Table/Table.js";
54
- import { Tag as $t } from "./lib/Components/Tag/Tag.js";
55
- import { TextInput as or } from "./lib/Components/TextInput/TextInput.js";
56
- import { Tile as rr, TileContent as ar, TileDescription as nr, TileSecondaryAction as ir, TileTitle as pr, TileTrailingContent as lr } from "./lib/Components/Tile/Tile.js";
57
- import { TileButton as dr } from "./lib/Components/TileButton/TileButton.js";
58
- import { Tooltip as xr, TooltipContent as fr, TooltipProvider as Cr, TooltipTrigger as cr } from "./lib/Components/Tooltip/Tooltip.js";
59
- import { Trend as ur } from "./lib/Components/Trend/Trend.js";
60
- import { ThemeProvider as Ir, useTheme as br } from "./lib/Components/ThemeProvider/ThemeProvider.js";
61
- import { COLOR_SCHEMES as sr } from "./lib/Components/ThemeProvider/ThemeProvider.types.js";
2
+ import { useControllableState as a } from "./utils/useControllableState/useControllableState.js";
3
+ import { AddressInput as i } from "./lib/Components/AddressInput/AddressInput.js";
4
+ import { AmountInput as l } from "./lib/Components/AmountInput/AmountInput.js";
5
+ import { AmountDisplay as d } from "./lib/Components/AmountDisplay/AmountDisplay.js";
6
+ import { Avatar as x } from "./lib/Components/Avatar/Avatar.js";
7
+ import { resolveAvatarColor as C } from "./lib/Components/Avatar/resolveAvatarColor.js";
8
+ import { AvatarButton as S } from "./lib/Components/AvatarButton/AvatarButton.js";
9
+ import { Banner as g } from "./lib/Components/Banner/Banner.js";
10
+ import { BaseInput as I } from "./lib/Components/BaseInput/BaseInput.js";
11
+ import { Button as s } from "./lib/Components/Button/Button.js";
12
+ import { BaseButton as M } from "./lib/Components/Button/BaseButton.js";
13
+ import { Card as v, CardContent as h, CardContentDescription as R, CardContentRow as A, CardContentTitle as H, CardFooter as w, CardFooterActions as P, CardHeader as y, CardLeading as N, CardTrailing as k } from "./lib/Components/Card/Card.js";
14
+ import { CardButton as z } from "./lib/Components/CardButton/CardButton.js";
15
+ import { Checkbox as F } from "./lib/Components/Checkbox/Checkbox.js";
16
+ import { ContentBanner as V, ContentBannerContent as _, ContentBannerDescription as j, ContentBannerTitle as q } from "./lib/Components/ContentBanner/ContentBanner.js";
17
+ import { DataTable as K, DataTableGlobalSearchInput as Q, DataTableRoot as U } from "./lib/Components/DataTable/DataTable.js";
18
+ import { useLumenDataTable as X } from "./lib/Components/DataTable/useLumenDataTable/useLumenDataTable.js";
19
+ import { DescriptionItem as Z, DescriptionItemLabel as $, DescriptionItemLeading as ee, DescriptionItemTrailing as oe, DescriptionItemValue as te } from "./lib/Components/DescriptionItem/DescriptionItem.js";
20
+ import { DialogClose as ae } from "./lib/Components/Dialog/DialogClose/DialogClose.js";
21
+ import { Dialog as ie, DialogBody as pe, DialogBodyStickyContent as le, DialogContent as me, DialogFooter as de, DialogTrigger as Te } from "./lib/Components/Dialog/Dialog.js";
22
+ import { DialogHeader as fe } from "./lib/Components/Dialog/DialogHeader/DialogHeader.js";
23
+ import { Divider as ce } from "./lib/Components/Divider/Divider.js";
24
+ import { DotCount as ue } from "./lib/Components/DotCount/DotCount.js";
25
+ import { DotIcon as be, dotIconSizeMap as Ie, mediaImageDotIconSizeMap as Be, spotDotIconSizeMap as se } from "./lib/Components/DotIcon/DotIcon.js";
26
+ import { DotIndicator as Me } from "./lib/Components/DotIndicator/DotIndicator.js";
27
+ import { getDotIndicatorProps as ve } from "./lib/Components/DotIndicator/getDotIndicatorProps.js";
28
+ import { DotSymbol as Re, mediaImageDotSizeMap as Ae, spotDotSizeMap as He } from "./lib/Components/DotSymbol/DotSymbol.js";
29
+ import { IconButton as Pe } from "./lib/Components/IconButton/IconButton.js";
30
+ import { InteractiveIcon as Ne } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
31
+ import { Link as Ge } from "./lib/Components/Link/Link.js";
32
+ import { ListItem as Ee, ListItemContent as Fe, ListItemContentRow as Oe, ListItemDescription as Ve, ListItemLeading as _e, ListItemTitle as je, ListItemTrailing as qe } from "./lib/Components/ListItem/ListItem.js";
33
+ import { MediaBanner as Ke, MediaBannerDescription as Qe, MediaBannerTitle as Ue } from "./lib/Components/MediaBanner/MediaBanner.js";
34
+ import { MediaButton as Xe } from "./lib/Components/MediaButton/MediaButton.js";
35
+ import { MediaCard as Ze, MediaCardTitle as $e } from "./lib/Components/MediaCard/MediaCard.js";
36
+ import { MediaImage as oo } from "./lib/Components/MediaImage/MediaImage.js";
37
+ import { MediaTag as ro } from "./lib/Components/MediaTag/MediaTag.js";
38
+ import { Menu as no, MenuCheckboxItem as io, MenuContent as po, MenuGroup as lo, MenuItem as mo, MenuLabel as To, MenuRadioGroup as xo, MenuRadioItem as fo, MenuSeparator as Co, MenuSub as co, MenuSubContent as So, MenuSubTrigger as uo, MenuTrigger as go, createMenuRadioGroup as bo } from "./lib/Components/Menu/Menu.js";
39
+ import { NavBar as Bo, NavBarBackButton as so, NavBarCoinCapsule as Do, NavBarDescription as Mo, NavBarLeading as Lo, NavBarTitle as vo, NavBarTrailing as ho } from "./lib/Components/NavBar/NavBar.js";
40
+ import { Popover as Ao, PopoverContent as Ho, PopoverTrigger as wo, createPopoverHandle as Po } from "./lib/Components/Popover/Popover.js";
41
+ import { PageIndicator as No } from "./lib/Components/PageIndicator/PageIndicator.js";
42
+ import { Pagination as Go } from "./lib/Components/Pagination/Pagination.js";
43
+ import { SearchInput as Eo } from "./lib/Components/SearchInput/SearchInput.js";
44
+ import { SectionHeader as Oo, SectionHeaderLeading as Vo, SectionHeaderTitle as _o } from "./lib/Components/SectionHeader/SectionHeader.js";
45
+ import { SegmentedControl as qo, SegmentedControlButton as Jo, createSegmentedControl as Ko } from "./lib/Components/SegmentedControl/SegmentedControl.js";
46
+ import { Select as Uo, SelectContent as Wo, SelectEmptyState as Xo, SelectItem as Yo, SelectItemContent as Zo, SelectItemDescription as $o, SelectItemText as et, SelectList as ot, SelectSearch as tt, SelectSeparator as rt, SelectTrigger as at, createSelect as nt } from "./lib/Components/Select/Select.js";
47
+ import { SideBar as pt, SideBarCollapseToggle as lt, SideBarItem as mt, SideBarLeading as dt, SideBarTrailing as Tt, createSideBar as xt } from "./lib/Components/SideBar/SideBar.js";
48
+ import { Skeleton as Ct } from "./lib/Components/Skeleton/Skeleton.js";
49
+ import { Spinner as St } from "./lib/Components/Spinner/Spinner.js";
50
+ import { Spot as gt } from "./lib/Components/Spot/Spot.js";
51
+ import { Stepper as It } from "./lib/Components/Stepper/Stepper.js";
52
+ import { Subheader as st, SubheaderCount as Dt, SubheaderDescription as Mt, SubheaderInfo as Lt, SubheaderRow as vt, SubheaderShowMore as ht, SubheaderTitle as Rt } from "./lib/Components/Subheader/Subheader.js";
53
+ import { Switch as Ht } from "./lib/Components/Switch/Switch.js";
54
+ import { Table as Pt, TableActionBar as yt, TableActionBarLeading as Nt, TableActionBarTrailing as kt, TableBody as Gt, TableCell as zt, TableCellContent as Et, TableCellContentDescription as Ft, TableCellContentRow as Ot, TableCellContentTitle as Vt, TableCellItem as _t, TableCol as jt, TableColGroup as qt, TableGroupHeaderRow as Jt, TableHeader as Kt, TableHeaderCell as Qt, TableHeaderRow as Ut, TableInfoIcon as Wt, TableLoadingRow as Xt, TableRoot as Yt, TableRow as Zt, TableSortButton as $t } from "./lib/Components/Table/Table.js";
55
+ import { Tag as or } from "./lib/Components/Tag/Tag.js";
56
+ import { TextInput as rr } from "./lib/Components/TextInput/TextInput.js";
57
+ import { Tile as nr, TileContent as ir, TileDescription as pr, TileSecondaryAction as lr, TileTitle as mr, TileTrailingContent as dr } from "./lib/Components/Tile/Tile.js";
58
+ import { TileButton as xr } from "./lib/Components/TileButton/TileButton.js";
59
+ import { Tooltip as Cr, TooltipContent as cr, TooltipProvider as Sr, TooltipTrigger as ur } from "./lib/Components/Tooltip/Tooltip.js";
60
+ import { Trend as br } from "./lib/Components/Trend/Trend.js";
61
+ import { ThemeProvider as Br, useTheme as sr } from "./lib/Components/ThemeProvider/ThemeProvider.js";
62
+ import { COLOR_SCHEMES as Mr } from "./lib/Components/ThemeProvider/ThemeProvider.types.js";
62
63
  export {
63
- a as AddressInput,
64
- l as AmountDisplay,
65
- i as AmountInput,
66
- d as Avatar,
67
- C as AvatarButton,
68
- S as Banner,
69
- s as BaseButton,
70
- g as BaseInput,
71
- b as Button,
72
- sr as COLOR_SCHEMES,
73
- M as Card,
74
- k as CardButton,
75
- L as CardContent,
76
- v as CardContentDescription,
77
- h as CardContentRow,
78
- R as CardContentTitle,
79
- A as CardFooter,
80
- H as CardFooterActions,
81
- w as CardHeader,
82
- P as CardLeading,
83
- y as CardTrailing,
84
- z as Checkbox,
85
- F as ContentBanner,
86
- O as ContentBannerContent,
87
- V as ContentBannerDescription,
88
- _ as ContentBannerTitle,
89
- q as DataTable,
90
- J as DataTableGlobalSearchInput,
91
- K as DataTableRoot,
92
- X as DescriptionItem,
93
- Y as DescriptionItemLabel,
94
- Z as DescriptionItemLeading,
95
- $ as DescriptionItemTrailing,
96
- ee as DescriptionItemValue,
97
- ae as Dialog,
98
- ne as DialogBody,
99
- ie as DialogBodyStickyContent,
100
- te as DialogClose,
101
- pe as DialogContent,
102
- le as DialogFooter,
103
- Te as DialogHeader,
104
- me as DialogTrigger,
105
- fe as Divider,
106
- ce as DotCount,
107
- ue as DotIcon,
108
- se as DotIndicator,
109
- ve as DotSymbol,
110
- He as IconButton,
111
- Pe as InteractiveIcon,
64
+ i as AddressInput,
65
+ d as AmountDisplay,
66
+ l as AmountInput,
67
+ x as Avatar,
68
+ S as AvatarButton,
69
+ g as Banner,
70
+ M as BaseButton,
71
+ I as BaseInput,
72
+ s as Button,
73
+ Mr as COLOR_SCHEMES,
74
+ v as Card,
75
+ z as CardButton,
76
+ h as CardContent,
77
+ R as CardContentDescription,
78
+ A as CardContentRow,
79
+ H as CardContentTitle,
80
+ w as CardFooter,
81
+ P as CardFooterActions,
82
+ y as CardHeader,
83
+ N as CardLeading,
84
+ k as CardTrailing,
85
+ F as Checkbox,
86
+ V as ContentBanner,
87
+ _ as ContentBannerContent,
88
+ j as ContentBannerDescription,
89
+ q as ContentBannerTitle,
90
+ K as DataTable,
91
+ Q as DataTableGlobalSearchInput,
92
+ U as DataTableRoot,
93
+ Z as DescriptionItem,
94
+ $ as DescriptionItemLabel,
95
+ ee as DescriptionItemLeading,
96
+ oe as DescriptionItemTrailing,
97
+ te as DescriptionItemValue,
98
+ ie as Dialog,
99
+ pe as DialogBody,
100
+ le as DialogBodyStickyContent,
101
+ ae as DialogClose,
102
+ me as DialogContent,
103
+ de as DialogFooter,
104
+ fe as DialogHeader,
105
+ Te as DialogTrigger,
106
+ ce as Divider,
107
+ ue as DotCount,
108
+ be as DotIcon,
109
+ Me as DotIndicator,
110
+ Re as DotSymbol,
111
+ Pe as IconButton,
112
+ Ne as InteractiveIcon,
112
113
  t as Languages,
113
- Ne as Link,
114
- Ge as ListItem,
115
- ze as ListItemContent,
116
- Ee as ListItemContentRow,
117
- Fe as ListItemDescription,
118
- Oe as ListItemLeading,
119
- Ve as ListItemTitle,
120
- _e as ListItemTrailing,
121
- qe as MediaBanner,
122
- Je as MediaBannerDescription,
123
- Ke as MediaBannerTitle,
124
- Ue as MediaButton,
125
- Xe as MediaCard,
126
- Ye as MediaCardTitle,
127
- $e as MediaImage,
128
- oo as MediaTag,
129
- ro as Menu,
130
- ao as MenuCheckboxItem,
131
- no as MenuContent,
132
- io as MenuGroup,
133
- po as MenuItem,
134
- lo as MenuLabel,
135
- mo as MenuRadioGroup,
136
- To as MenuRadioItem,
137
- xo as MenuSeparator,
138
- fo as MenuSub,
139
- Co as MenuSubContent,
140
- co as MenuSubTrigger,
141
- So as MenuTrigger,
142
- Io as NavBar,
143
- bo as NavBarBackButton,
144
- Bo as NavBarCoinCapsule,
145
- so as NavBarDescription,
146
- Do as NavBarLeading,
147
- Mo as NavBarTitle,
148
- Lo as NavBarTrailing,
149
- Po as PageIndicator,
150
- No as Pagination,
151
- ho as Popover,
152
- Ro as PopoverContent,
153
- Ao as PopoverTrigger,
154
- Go as SearchInput,
155
- Eo as SectionHeader,
156
- Fo as SectionHeaderLeading,
157
- Oo as SectionHeaderTitle,
158
- _o as SegmentedControl,
159
- jo as SegmentedControlButton,
160
- Ko as Select,
161
- Qo as SelectContent,
162
- Uo as SelectEmptyState,
163
- Wo as SelectItem,
164
- Xo as SelectItemContent,
165
- Yo as SelectItemDescription,
166
- Zo as SelectItemText,
167
- $o as SelectList,
168
- et as SelectSearch,
169
- ot as SelectSeparator,
170
- tt as SelectTrigger,
171
- nt as SideBar,
172
- it as SideBarCollapseToggle,
173
- pt as SideBarItem,
174
- lt as SideBarLeading,
175
- mt as SideBarTrailing,
176
- xt as Skeleton,
177
- Ct as Spinner,
178
- St as Spot,
179
- gt as Stepper,
180
- bt as Subheader,
181
- Bt as SubheaderCount,
182
- st as SubheaderDescription,
183
- Dt as SubheaderInfo,
184
- Mt as SubheaderRow,
185
- Lt as SubheaderShowMore,
186
- vt as SubheaderTitle,
187
- Rt as Switch,
188
- Ht as Table,
189
- wt as TableActionBar,
190
- Pt as TableActionBarLeading,
191
- yt as TableActionBarTrailing,
192
- Nt as TableBody,
193
- kt as TableCell,
194
- Gt as TableCellContent,
195
- zt as TableCellContentDescription,
196
- Et as TableCellContentRow,
197
- Ft as TableCellContentTitle,
198
- Ot as TableCellItem,
199
- Vt as TableCol,
200
- _t as TableColGroup,
201
- jt as TableGroupHeaderRow,
202
- qt as TableHeader,
203
- Jt as TableHeaderCell,
204
- Kt as TableHeaderRow,
205
- Qt as TableInfoIcon,
206
- Ut as TableLoadingRow,
207
- Wt as TableRoot,
208
- Xt as TableRow,
209
- Yt as TableSortButton,
210
- $t as Tag,
211
- or as TextInput,
212
- Ir as ThemeProvider,
213
- rr as Tile,
214
- dr as TileButton,
215
- ar as TileContent,
216
- nr as TileDescription,
217
- ir as TileSecondaryAction,
218
- pr as TileTitle,
219
- lr as TileTrailingContent,
220
- xr as Tooltip,
221
- fr as TooltipContent,
222
- Cr as TooltipProvider,
223
- cr as TooltipTrigger,
224
- ur as Trend,
225
- uo as createMenuRadioGroup,
226
- Ho as createPopoverHandle,
227
- qo as createSegmentedControl,
228
- rt as createSelect,
229
- dt as createSideBar,
230
- ge as dotIconSizeMap,
231
- Me as getDotIndicatorProps,
232
- Ie as mediaImageDotIconSizeMap,
233
- he as mediaImageDotSizeMap,
234
- x as resolveAvatarColor,
235
- be as spotDotIconSizeMap,
236
- Re as spotDotSizeMap,
237
- U as useLumenDataTable,
238
- br as useTheme
114
+ Ge as Link,
115
+ Ee as ListItem,
116
+ Fe as ListItemContent,
117
+ Oe as ListItemContentRow,
118
+ Ve as ListItemDescription,
119
+ _e as ListItemLeading,
120
+ je as ListItemTitle,
121
+ qe as ListItemTrailing,
122
+ Ke as MediaBanner,
123
+ Qe as MediaBannerDescription,
124
+ Ue as MediaBannerTitle,
125
+ Xe as MediaButton,
126
+ Ze as MediaCard,
127
+ $e as MediaCardTitle,
128
+ oo as MediaImage,
129
+ ro as MediaTag,
130
+ no as Menu,
131
+ io as MenuCheckboxItem,
132
+ po as MenuContent,
133
+ lo as MenuGroup,
134
+ mo as MenuItem,
135
+ To as MenuLabel,
136
+ xo as MenuRadioGroup,
137
+ fo as MenuRadioItem,
138
+ Co as MenuSeparator,
139
+ co as MenuSub,
140
+ So as MenuSubContent,
141
+ uo as MenuSubTrigger,
142
+ go as MenuTrigger,
143
+ Bo as NavBar,
144
+ so as NavBarBackButton,
145
+ Do as NavBarCoinCapsule,
146
+ Mo as NavBarDescription,
147
+ Lo as NavBarLeading,
148
+ vo as NavBarTitle,
149
+ ho as NavBarTrailing,
150
+ No as PageIndicator,
151
+ Go as Pagination,
152
+ Ao as Popover,
153
+ Ho as PopoverContent,
154
+ wo as PopoverTrigger,
155
+ Eo as SearchInput,
156
+ Oo as SectionHeader,
157
+ Vo as SectionHeaderLeading,
158
+ _o as SectionHeaderTitle,
159
+ qo as SegmentedControl,
160
+ Jo as SegmentedControlButton,
161
+ Uo as Select,
162
+ Wo as SelectContent,
163
+ Xo as SelectEmptyState,
164
+ Yo as SelectItem,
165
+ Zo as SelectItemContent,
166
+ $o as SelectItemDescription,
167
+ et as SelectItemText,
168
+ ot as SelectList,
169
+ tt as SelectSearch,
170
+ rt as SelectSeparator,
171
+ at as SelectTrigger,
172
+ pt as SideBar,
173
+ lt as SideBarCollapseToggle,
174
+ mt as SideBarItem,
175
+ dt as SideBarLeading,
176
+ Tt as SideBarTrailing,
177
+ Ct as Skeleton,
178
+ St as Spinner,
179
+ gt as Spot,
180
+ It as Stepper,
181
+ st as Subheader,
182
+ Dt as SubheaderCount,
183
+ Mt as SubheaderDescription,
184
+ Lt as SubheaderInfo,
185
+ vt as SubheaderRow,
186
+ ht as SubheaderShowMore,
187
+ Rt as SubheaderTitle,
188
+ Ht as Switch,
189
+ Pt as Table,
190
+ yt as TableActionBar,
191
+ Nt as TableActionBarLeading,
192
+ kt as TableActionBarTrailing,
193
+ Gt as TableBody,
194
+ zt as TableCell,
195
+ Et as TableCellContent,
196
+ Ft as TableCellContentDescription,
197
+ Ot as TableCellContentRow,
198
+ Vt as TableCellContentTitle,
199
+ _t as TableCellItem,
200
+ jt as TableCol,
201
+ qt as TableColGroup,
202
+ Jt as TableGroupHeaderRow,
203
+ Kt as TableHeader,
204
+ Qt as TableHeaderCell,
205
+ Ut as TableHeaderRow,
206
+ Wt as TableInfoIcon,
207
+ Xt as TableLoadingRow,
208
+ Yt as TableRoot,
209
+ Zt as TableRow,
210
+ $t as TableSortButton,
211
+ or as Tag,
212
+ rr as TextInput,
213
+ Br as ThemeProvider,
214
+ nr as Tile,
215
+ xr as TileButton,
216
+ ir as TileContent,
217
+ pr as TileDescription,
218
+ lr as TileSecondaryAction,
219
+ mr as TileTitle,
220
+ dr as TileTrailingContent,
221
+ Cr as Tooltip,
222
+ cr as TooltipContent,
223
+ Sr as TooltipProvider,
224
+ ur as TooltipTrigger,
225
+ br as Trend,
226
+ bo as createMenuRadioGroup,
227
+ Po as createPopoverHandle,
228
+ Ko as createSegmentedControl,
229
+ nt as createSelect,
230
+ xt as createSideBar,
231
+ Ie as dotIconSizeMap,
232
+ ve as getDotIndicatorProps,
233
+ Be as mediaImageDotIconSizeMap,
234
+ Ae as mediaImageDotSizeMap,
235
+ C as resolveAvatarColor,
236
+ se as spotDotIconSizeMap,
237
+ He as spotDotSizeMap,
238
+ a as useControllableState,
239
+ X as useLumenDataTable,
240
+ sr as useTheme
239
241
  };
@@ -1,18 +1,18 @@
1
1
  import { resolveAvatarColorKey as o } from "../../../libs/utils-shared/dist/index.js";
2
- import { cssVar as a } from "../../../libs/design-core/dist/lib/cssVar/cssVar.js";
3
- const e = {
4
- orange: a("var(--background-avatar-orange)"),
5
- green: a("var(--background-avatar-green)"),
6
- blue: a("var(--background-avatar-blue)"),
7
- purple: a("var(--background-avatar-purple)"),
8
- red: a("var(--background-avatar-red)"),
9
- yellow: a("var(--background-avatar-yellow)"),
10
- turquoise: a("var(--background-avatar-turquoise)"),
11
- pink: a("var(--background-avatar-pink)")
2
+ import { cssVar as r } from "../../../libs/design-core/dist/lib/cssVar/cssVar.js";
3
+ const a = {
4
+ orange: r("var(--background-decorative-orange)"),
5
+ green: r("var(--background-decorative-green)"),
6
+ blue: r("var(--background-decorative-blue)"),
7
+ purple: r("var(--background-decorative-purple)"),
8
+ red: r("var(--background-decorative-red)"),
9
+ yellow: r("var(--background-decorative-yellow)"),
10
+ turquoise: r("var(--background-decorative-turquoise)"),
11
+ pink: r("var(--background-decorative-pink)")
12
12
  };
13
- function n(r) {
14
- return e[o(r)];
13
+ function t(e) {
14
+ return a[o(e)];
15
15
  }
16
16
  export {
17
- n as resolveAvatarColor
17
+ t as resolveAvatarColor
18
18
  };
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/lumen-ui-react",
3
- "version": "0.1.48",
3
+ "version": "0.1.50",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "keywords": [
@@ -17,6 +17,7 @@
17
17
  "types": "./dist/index.d.ts",
18
18
  "exports": {
19
19
  "./package.json": "./package.json",
20
+ "./tailwind.css": "./tailwind.css",
20
21
  ".": {
21
22
  "types": "./dist/index.d.ts",
22
23
  "import": "./dist/index.js",
@@ -32,6 +33,7 @@
32
33
  "files": [
33
34
  "dist",
34
35
  "ai-rules",
36
+ "tailwind.css",
35
37
  "!**/*.tsbuildinfo"
36
38
  ],
37
39
  "nx": {
@@ -41,7 +43,7 @@
41
43
  ]
42
44
  },
43
45
  "dependencies": {
44
- "@ledgerhq/lumen-utils-shared": "0.1.9",
46
+ "@ledgerhq/lumen-utils-shared": "0.1.10",
45
47
  "i18next": "^23.7.0",
46
48
  "react-i18next": "^14.0.0"
47
49
  },
@@ -54,7 +56,7 @@
54
56
  "@radix-ui/react-tooltip": "^1.2.8",
55
57
  "class-variance-authority": "^0.7.1",
56
58
  "@tanstack/react-table": "^8.21.3",
57
- "@ledgerhq/lumen-design-core": "0.1.22",
59
+ "@ledgerhq/lumen-design-core": "0.1.23",
58
60
  "clsx": "^2.1.1",
59
61
  "react": "^18.0.0 || ^19.0.0",
60
62
  "react-dom": "^18.0.0 || ^19.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/lumen-ui-react",
3
- "version": "0.1.49",
3
+ "version": "0.1.51",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "keywords": [
@@ -17,6 +17,7 @@
17
17
  "types": "./dist/index.d.ts",
18
18
  "exports": {
19
19
  "./package.json": "./package.json",
20
+ "./tailwind.css": "./tailwind.css",
20
21
  ".": {
21
22
  "types": "./dist/index.d.ts",
22
23
  "import": "./dist/index.js",
@@ -32,6 +33,7 @@
32
33
  "files": [
33
34
  "dist",
34
35
  "ai-rules",
36
+ "tailwind.css",
35
37
  "!**/*.tsbuildinfo"
36
38
  ],
37
39
  "nx": {
@@ -54,7 +56,7 @@
54
56
  "@radix-ui/react-tooltip": "^1.2.8",
55
57
  "class-variance-authority": "^0.7.1",
56
58
  "@tanstack/react-table": "^8.21.3",
57
- "@ledgerhq/lumen-design-core": "0.1.23",
59
+ "@ledgerhq/lumen-design-core": "0.1.24",
58
60
  "clsx": "^2.1.1",
59
61
  "react": "^18.0.0 || ^19.0.0",
60
62
  "react-dom": "^18.0.0 || ^19.0.0",
package/tailwind.css ADDED
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Registers Lumen's compiled components as a Tailwind source.
3
+ *
4
+ * Tailwind only emits a utility it has actually seen in a scanned file, and it
5
+ * skips gitignored paths (node_modules) during automatic detection. Consumers
6
+ * therefore used to copy a `./node_modules/@ledgerhq/lumen-ui-react/dist/lib/**`
7
+ * glob into their own config, which turned our build layout into a de-facto
8
+ * public API: renaming a folder here silently dropped utilities from their CSS,
9
+ * with no build error.
10
+ *
11
+ * `@source` paths resolve relative to the stylesheet that declares them, so the
12
+ * glob lives next to the layout it describes. Consumers only ever hold the
13
+ * stable `@ledgerhq/lumen-ui-react/tailwind.css` specifier — restructuring
14
+ * `dist` becomes a one-line change here instead of a breaking change for them.
15
+ */
16
+ @source "./dist/lib";