@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 +11 -1
- package/ai-rules/RULES.md +7 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +237 -235
- package/dist/lib/Components/Avatar/resolveAvatarColor.js +13 -13
- package/dist/package.json +5 -3
- package/package.json +4 -2
- package/tailwind.css +16 -0
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}'
|
|
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
|
|
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
package/dist/index.d.ts.map
CHANGED
|
@@ -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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
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
|
|
3
|
-
const
|
|
4
|
-
orange:
|
|
5
|
-
green:
|
|
6
|
-
blue:
|
|
7
|
-
purple:
|
|
8
|
-
red:
|
|
9
|
-
yellow:
|
|
10
|
-
turquoise:
|
|
11
|
-
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
|
|
14
|
-
return
|
|
13
|
+
function t(e) {
|
|
14
|
+
return a[o(e)];
|
|
15
15
|
}
|
|
16
16
|
export {
|
|
17
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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";
|