@ledgerhq/lumen-ui-react 0.1.33 → 0.1.35
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/dist/index.js +188 -182
- package/dist/lib/Components/Card/types.d.ts +1 -1
- package/dist/lib/Components/DescriptionItem/DescriptionItem.d.ts +45 -0
- package/dist/lib/Components/DescriptionItem/DescriptionItem.d.ts.map +1 -0
- package/dist/lib/Components/DescriptionItem/DescriptionItem.js +98 -0
- package/dist/lib/Components/DescriptionItem/index.d.ts +3 -0
- package/dist/lib/Components/DescriptionItem/index.d.ts.map +1 -0
- package/dist/lib/Components/DescriptionItem/types.d.ts +58 -0
- package/dist/lib/Components/DescriptionItem/types.d.ts.map +1 -0
- package/dist/lib/Components/NavBar/CoinCapsule.js +3 -3
- package/dist/lib/Components/SideBar/SideBar.js +1 -1
- package/dist/lib/Components/index.d.ts +2 -1
- package/dist/lib/Components/index.d.ts.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,69 +1,70 @@
|
|
|
1
1
|
import { Languages as t } from "./i18n/languages.js";
|
|
2
2
|
import { AddressInput as a } from "./lib/Components/AddressInput/AddressInput.js";
|
|
3
3
|
import { AmountInput as i } from "./lib/Components/AmountInput/AmountInput.js";
|
|
4
|
-
import { AmountDisplay as
|
|
4
|
+
import { AmountDisplay as m } from "./lib/Components/AmountDisplay/AmountDisplay.js";
|
|
5
5
|
import { Avatar as d } from "./lib/Components/Avatar/Avatar.js";
|
|
6
6
|
import { Banner as T } from "./lib/Components/Banner/Banner.js";
|
|
7
7
|
import { BaseInput as u } from "./lib/Components/BaseInput/BaseInput.js";
|
|
8
8
|
import { Button as C } from "./lib/Components/Button/Button.js";
|
|
9
9
|
import { BaseButton as g } from "./lib/Components/Button/BaseButton.js";
|
|
10
|
-
import { Card as
|
|
10
|
+
import { Card as B, CardContent as b, CardContentDescription as s, CardContentRow as D, CardContentTitle as M, CardFooter as L, CardFooterActions as h, CardHeader as v, CardLeading as R, CardTrailing as w } from "./lib/Components/Card/Card.js";
|
|
11
11
|
import { CardButton as y } from "./lib/Components/CardButton/CardButton.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { DataTable as O, DataTableGlobalSearchInput as
|
|
15
|
-
import { useLumenDataTable as
|
|
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 {
|
|
12
|
+
import { Checkbox as P } from "./lib/Components/Checkbox/Checkbox.js";
|
|
13
|
+
import { ContentBanner as k, ContentBannerContent as z, ContentBannerDescription as G, ContentBannerTitle as E } from "./lib/Components/ContentBanner/ContentBanner.js";
|
|
14
|
+
import { DataTable as O, DataTableGlobalSearchInput as V, DataTableRoot as _ } from "./lib/Components/DataTable/DataTable.js";
|
|
15
|
+
import { useLumenDataTable as q } from "./lib/Components/DataTable/useLumenDataTable/useLumenDataTable.js";
|
|
16
|
+
import { DescriptionItem as K, DescriptionItemLabel as Q, DescriptionItemLeading as U, DescriptionItemTrailing as W, DescriptionItemValue as X } from "./lib/Components/DescriptionItem/DescriptionItem.js";
|
|
17
|
+
import { DialogClose as Z } from "./lib/Components/Dialog/DialogClose/DialogClose.js";
|
|
18
|
+
import { Dialog as ee, DialogBody as oe, DialogBodyStickyContent as te, DialogContent as re, DialogFooter as ae, DialogTrigger as ne } from "./lib/Components/Dialog/Dialog.js";
|
|
19
|
+
import { DialogHeader as pe } from "./lib/Components/Dialog/DialogHeader/DialogHeader.js";
|
|
20
|
+
import { Divider as le } from "./lib/Components/Divider/Divider.js";
|
|
21
|
+
import { DotCount as xe } from "./lib/Components/DotCount/DotCount.js";
|
|
22
|
+
import { DotIcon as fe, dotIconSizeMap as ue, mediaImageDotIconSizeMap as Se, spotDotIconSizeMap as Ce } from "./lib/Components/DotIcon/DotIcon.js";
|
|
23
|
+
import { DotIndicator as ge } from "./lib/Components/DotIndicator/DotIndicator.js";
|
|
24
|
+
import { DotSymbol as Be, mediaImageDotSizeMap as be, spotDotSizeMap as se } from "./lib/Components/DotSymbol/DotSymbol.js";
|
|
25
|
+
import { IconButton as Me } from "./lib/Components/IconButton/IconButton.js";
|
|
26
|
+
import { InteractiveIcon as he } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
|
|
27
|
+
import { Link as Re } from "./lib/Components/Link/Link.js";
|
|
28
|
+
import { ListItem as Ae, ListItemContent as ye, ListItemContentRow as He, ListItemDescription as Pe, ListItemLeading as Ne, ListItemTitle as ke, ListItemTrailing as ze } from "./lib/Components/ListItem/ListItem.js";
|
|
29
|
+
import { MediaBanner as Ee, MediaBannerDescription as Fe, MediaBannerTitle as Oe } from "./lib/Components/MediaBanner/MediaBanner.js";
|
|
30
|
+
import { MediaButton as _e } from "./lib/Components/MediaButton/MediaButton.js";
|
|
31
|
+
import { MediaCard as qe, MediaCardTitle as Je } from "./lib/Components/MediaCard/MediaCard.js";
|
|
32
|
+
import { MediaImage as Qe } from "./lib/Components/MediaImage/MediaImage.js";
|
|
33
|
+
import { MediaTag as We } from "./lib/Components/MediaTag/MediaTag.js";
|
|
34
|
+
import { Menu as Ye, MenuCheckboxItem as Ze, MenuContent as $e, MenuGroup as eo, MenuItem as oo, MenuLabel as to, MenuPortal as ro, MenuRadioGroup as ao, MenuRadioItem as no, MenuSeparator as io, MenuSub as po, MenuSubContent as mo, MenuSubTrigger as lo, MenuTrigger as xo } from "./lib/Components/Menu/Menu.js";
|
|
35
|
+
import { NavBar as fo, NavBarBackButton as uo, NavBarCoinCapsule as So, NavBarDescription as Co, NavBarLeading as co, NavBarTitle as go, NavBarTrailing as Io } from "./lib/Components/NavBar/NavBar.js";
|
|
36
|
+
import { Popover as bo, PopoverContent as so, PopoverTrigger as Do, createPopoverHandle as Mo } from "./lib/Components/Popover/Popover.js";
|
|
37
|
+
import { PageIndicator as ho } from "./lib/Components/PageIndicator/PageIndicator.js";
|
|
38
|
+
import { SearchInput as Ro } from "./lib/Components/SearchInput/SearchInput.js";
|
|
39
|
+
import { SegmentedControl as Ao, SegmentedControlButton as yo } from "./lib/Components/SegmentedControl/SegmentedControl.js";
|
|
40
|
+
import { Select as Po, SelectContent as No, SelectEmptyState as ko, SelectItem as zo, SelectItemContent as Go, SelectItemDescription as Eo, SelectItemText as Fo, SelectList as Oo, SelectSearch as Vo, SelectSeparator as _o, SelectTrigger as jo } from "./lib/Components/Select/Select.js";
|
|
41
|
+
import { SideBar as Jo, SideBarCollapseToggle as Ko, SideBarItem as Qo, SideBarLeading as Uo, SideBarTrailing as Wo } from "./lib/Components/SideBar/SideBar.js";
|
|
42
|
+
import { Skeleton as Yo } from "./lib/Components/Skeleton/Skeleton.js";
|
|
43
|
+
import { Spinner as $o } from "./lib/Components/Spinner/Spinner.js";
|
|
44
|
+
import { Spot as ot } from "./lib/Components/Spot/Spot.js";
|
|
45
|
+
import { Stepper as rt } from "./lib/Components/Stepper/Stepper.js";
|
|
46
|
+
import { Subheader as nt, SubheaderCount as it, SubheaderDescription as pt, SubheaderInfo as mt, SubheaderRow as lt, SubheaderShowMore as dt, SubheaderTitle as xt } from "./lib/Components/Subheader/Subheader.js";
|
|
47
|
+
import { Switch as ft } from "./lib/Components/Switch/Switch.js";
|
|
48
|
+
import { Table as St, TableActionBar as Ct, TableActionBarLeading as ct, TableActionBarTrailing as gt, TableBody as It, TableCell as Bt, TableCellContent as bt, TableGroupHeaderRow as st, TableHeader as Dt, TableHeaderCell as Mt, TableHeaderRow as Lt, TableInfoIcon as ht, TableLoadingRow as vt, TableRoot as Rt, TableRow as wt, TableSortButton as At } from "./lib/Components/Table/Table.js";
|
|
49
|
+
import { Tag as Ht } from "./lib/Components/Tag/Tag.js";
|
|
50
|
+
import { TextInput as Nt } from "./lib/Components/TextInput/TextInput.js";
|
|
51
|
+
import { Tile as zt, TileContent as Gt, TileDescription as Et, TileSecondaryAction as Ft, TileTitle as Ot, TileTrailingContent as Vt } from "./lib/Components/Tile/Tile.js";
|
|
52
|
+
import { TileButton as jt } from "./lib/Components/TileButton/TileButton.js";
|
|
53
|
+
import { Tooltip as Jt, TooltipContent as Kt, TooltipProvider as Qt, TooltipTrigger as Ut } from "./lib/Components/Tooltip/Tooltip.js";
|
|
54
|
+
import { Trend as Xt } from "./lib/Components/Trend/Trend.js";
|
|
55
|
+
import { ThemeProvider as Zt, useTheme as $t } from "./lib/Components/ThemeProvider/ThemeProvider.js";
|
|
56
|
+
import { COLOR_SCHEMES as or } from "./lib/Components/ThemeProvider/ThemeProvider.types.js";
|
|
56
57
|
export {
|
|
57
58
|
a as AddressInput,
|
|
58
|
-
|
|
59
|
+
m as AmountDisplay,
|
|
59
60
|
i as AmountInput,
|
|
60
61
|
d as Avatar,
|
|
61
62
|
T as Banner,
|
|
62
63
|
g as BaseButton,
|
|
63
64
|
u as BaseInput,
|
|
64
65
|
C as Button,
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
or as COLOR_SCHEMES,
|
|
67
|
+
B as Card,
|
|
67
68
|
y as CardButton,
|
|
68
69
|
b as CardContent,
|
|
69
70
|
s as CardContentDescription,
|
|
@@ -74,139 +75,144 @@ export {
|
|
|
74
75
|
v as CardHeader,
|
|
75
76
|
R as CardLeading,
|
|
76
77
|
w as CardTrailing,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
P as Checkbox,
|
|
79
|
+
k as ContentBanner,
|
|
80
|
+
z as ContentBannerContent,
|
|
81
|
+
G as ContentBannerDescription,
|
|
82
|
+
E as ContentBannerTitle,
|
|
82
83
|
O as DataTable,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
oe as
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
84
|
+
V as DataTableGlobalSearchInput,
|
|
85
|
+
_ as DataTableRoot,
|
|
86
|
+
K as DescriptionItem,
|
|
87
|
+
Q as DescriptionItemLabel,
|
|
88
|
+
U as DescriptionItemLeading,
|
|
89
|
+
W as DescriptionItemTrailing,
|
|
90
|
+
X as DescriptionItemValue,
|
|
91
|
+
ee as Dialog,
|
|
92
|
+
oe as DialogBody,
|
|
93
|
+
te as DialogBodyStickyContent,
|
|
94
|
+
Z as DialogClose,
|
|
95
|
+
re as DialogContent,
|
|
96
|
+
ae as DialogFooter,
|
|
97
|
+
pe as DialogHeader,
|
|
98
|
+
ne as DialogTrigger,
|
|
99
|
+
le as Divider,
|
|
100
|
+
xe as DotCount,
|
|
101
|
+
fe as DotIcon,
|
|
102
|
+
ge as DotIndicator,
|
|
103
|
+
Be as DotSymbol,
|
|
104
|
+
Me as IconButton,
|
|
105
|
+
he as InteractiveIcon,
|
|
100
106
|
t as Languages,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
|
|
107
|
+
Re as Link,
|
|
108
|
+
Ae as ListItem,
|
|
109
|
+
ye as ListItemContent,
|
|
110
|
+
He as ListItemContentRow,
|
|
111
|
+
Pe as ListItemDescription,
|
|
112
|
+
Ne as ListItemLeading,
|
|
113
|
+
ke as ListItemTitle,
|
|
114
|
+
ze as ListItemTrailing,
|
|
115
|
+
Ee as MediaBanner,
|
|
116
|
+
Fe as MediaBannerDescription,
|
|
117
|
+
Oe as MediaBannerTitle,
|
|
118
|
+
_e as MediaButton,
|
|
119
|
+
qe as MediaCard,
|
|
120
|
+
Je as MediaCardTitle,
|
|
121
|
+
Qe as MediaImage,
|
|
122
|
+
We as MediaTag,
|
|
123
|
+
Ye as Menu,
|
|
124
|
+
Ze as MenuCheckboxItem,
|
|
125
|
+
$e as MenuContent,
|
|
126
|
+
eo as MenuGroup,
|
|
127
|
+
oo as MenuItem,
|
|
128
|
+
to as MenuLabel,
|
|
129
|
+
ro as MenuPortal,
|
|
130
|
+
ao as MenuRadioGroup,
|
|
131
|
+
no as MenuRadioItem,
|
|
132
|
+
io as MenuSeparator,
|
|
133
|
+
po as MenuSub,
|
|
134
|
+
mo as MenuSubContent,
|
|
135
|
+
lo as MenuSubTrigger,
|
|
136
|
+
xo as MenuTrigger,
|
|
137
|
+
fo as NavBar,
|
|
138
|
+
uo as NavBarBackButton,
|
|
139
|
+
So as NavBarCoinCapsule,
|
|
140
|
+
Co as NavBarDescription,
|
|
141
|
+
co as NavBarLeading,
|
|
142
|
+
go as NavBarTitle,
|
|
143
|
+
Io as NavBarTrailing,
|
|
144
|
+
ho as PageIndicator,
|
|
145
|
+
bo as Popover,
|
|
146
|
+
so as PopoverContent,
|
|
147
|
+
Do as PopoverTrigger,
|
|
148
|
+
Ro as SearchInput,
|
|
149
|
+
Ao as SegmentedControl,
|
|
150
|
+
yo as SegmentedControlButton,
|
|
151
|
+
Po as Select,
|
|
152
|
+
No as SelectContent,
|
|
153
|
+
ko as SelectEmptyState,
|
|
154
|
+
zo as SelectItem,
|
|
155
|
+
Go as SelectItemContent,
|
|
156
|
+
Eo as SelectItemDescription,
|
|
157
|
+
Fo as SelectItemText,
|
|
158
|
+
Oo as SelectList,
|
|
159
|
+
Vo as SelectSearch,
|
|
160
|
+
_o as SelectSeparator,
|
|
161
|
+
jo as SelectTrigger,
|
|
162
|
+
Jo as SideBar,
|
|
163
|
+
Ko as SideBarCollapseToggle,
|
|
164
|
+
Qo as SideBarItem,
|
|
165
|
+
Uo as SideBarLeading,
|
|
166
|
+
Wo as SideBarTrailing,
|
|
167
|
+
Yo as Skeleton,
|
|
168
|
+
$o as Spinner,
|
|
169
|
+
ot as Spot,
|
|
170
|
+
rt as Stepper,
|
|
171
|
+
nt as Subheader,
|
|
172
|
+
it as SubheaderCount,
|
|
173
|
+
pt as SubheaderDescription,
|
|
174
|
+
mt as SubheaderInfo,
|
|
175
|
+
lt as SubheaderRow,
|
|
176
|
+
dt as SubheaderShowMore,
|
|
177
|
+
xt as SubheaderTitle,
|
|
178
|
+
ft as Switch,
|
|
179
|
+
St as Table,
|
|
180
|
+
Ct as TableActionBar,
|
|
181
|
+
ct as TableActionBarLeading,
|
|
182
|
+
gt as TableActionBarTrailing,
|
|
183
|
+
It as TableBody,
|
|
184
|
+
Bt as TableCell,
|
|
185
|
+
bt as TableCellContent,
|
|
186
|
+
st as TableGroupHeaderRow,
|
|
187
|
+
Dt as TableHeader,
|
|
188
|
+
Mt as TableHeaderCell,
|
|
189
|
+
Lt as TableHeaderRow,
|
|
190
|
+
ht as TableInfoIcon,
|
|
191
|
+
vt as TableLoadingRow,
|
|
192
|
+
Rt as TableRoot,
|
|
193
|
+
wt as TableRow,
|
|
194
|
+
At as TableSortButton,
|
|
195
|
+
Ht as Tag,
|
|
196
|
+
Nt as TextInput,
|
|
197
|
+
Zt as ThemeProvider,
|
|
198
|
+
zt as Tile,
|
|
199
|
+
jt as TileButton,
|
|
200
|
+
Gt as TileContent,
|
|
201
|
+
Et as TileDescription,
|
|
202
|
+
Ft as TileSecondaryAction,
|
|
203
|
+
Ot as TileTitle,
|
|
204
|
+
Vt as TileTrailingContent,
|
|
205
|
+
Jt as Tooltip,
|
|
206
|
+
Kt as TooltipContent,
|
|
207
|
+
Qt as TooltipProvider,
|
|
208
|
+
Ut as TooltipTrigger,
|
|
209
|
+
Xt as Trend,
|
|
210
|
+
Mo as createPopoverHandle,
|
|
211
|
+
ue as dotIconSizeMap,
|
|
212
|
+
Se as mediaImageDotIconSizeMap,
|
|
213
|
+
be as mediaImageDotSizeMap,
|
|
214
|
+
Ce as spotDotIconSizeMap,
|
|
215
|
+
se as spotDotSizeMap,
|
|
216
|
+
q as useLumenDataTable,
|
|
217
|
+
$t as useTheme
|
|
212
218
|
};
|
|
@@ -114,7 +114,7 @@ export type CardTrailingProps = {
|
|
|
114
114
|
} & ComponentPropsWithRef<'div'>;
|
|
115
115
|
export type CardFooterProps = {
|
|
116
116
|
/**
|
|
117
|
-
* The footer content (
|
|
117
|
+
* The footer content (DescriptionItem, Button, etc.).
|
|
118
118
|
*/
|
|
119
119
|
children: ReactNode;
|
|
120
120
|
/**
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { DescriptionItemLabelProps, DescriptionItemLeadingProps, DescriptionItemProps, DescriptionItemTrailingProps, DescriptionItemValueProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* A compound component for displaying a key-value description row.
|
|
4
|
+
* Composed with DescriptionItemLeading / DescriptionItemLabel (key side)
|
|
5
|
+
* and DescriptionItemTrailing / DescriptionItemValue (value side).
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* @see {@link https://ldls.vercel.app/?path=/docs/containment-descriptionitem--docs Storybook}
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* <DescriptionItem size="md">
|
|
12
|
+
* <DescriptionItemLeading>
|
|
13
|
+
* <DescriptionItemLabel>Fees</DescriptionItemLabel>
|
|
14
|
+
* </DescriptionItemLeading>
|
|
15
|
+
* <DescriptionItemTrailing>
|
|
16
|
+
* <DescriptionItemValue>0.001 BTC</DescriptionItemValue>
|
|
17
|
+
* </DescriptionItemTrailing>
|
|
18
|
+
* </DescriptionItem>
|
|
19
|
+
*/
|
|
20
|
+
export declare const DescriptionItem: ({ ref, children, className, size, ...props }: DescriptionItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
/**
|
|
22
|
+
* Layout container for the leading (left) side of the description item.
|
|
23
|
+
* Contains DescriptionItemLabel and an optional info icon sibling.
|
|
24
|
+
*/
|
|
25
|
+
export declare const DescriptionItemLeading: ({ ref, children, className, ...props }: DescriptionItemLeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
/**
|
|
27
|
+
* Typography-bearing label for the leading side.
|
|
28
|
+
* Reads size from DescriptionItemSizeContext to apply the correct typography.
|
|
29
|
+
* Use this instead of a raw string so that size is always applied correctly,
|
|
30
|
+
* even when children is a custom ReactNode.
|
|
31
|
+
*/
|
|
32
|
+
export declare const DescriptionItemLabel: ({ ref, children, className, ...props }: DescriptionItemLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
/**
|
|
34
|
+
* Layout container for the trailing (right) side of the description item.
|
|
35
|
+
* Accepts DescriptionItemValue, Tag, Link, CryptoIcon, or any custom content.
|
|
36
|
+
*/
|
|
37
|
+
export declare const DescriptionItemTrailing: ({ ref, children, className, ...props }: DescriptionItemTrailingProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* Typography-bearing value for the trailing side.
|
|
40
|
+
* Reads size from DescriptionItemSizeContext to apply the correct typography.
|
|
41
|
+
* Use this for plain text values. For Tag, Link, or other components,
|
|
42
|
+
* place them directly in DescriptionItemTrailing with an explicit size prop.
|
|
43
|
+
*/
|
|
44
|
+
export declare const DescriptionItemValue: ({ ref, children, className, ...props }: DescriptionItemValueProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
//# sourceMappingURL=DescriptionItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DescriptionItem.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DescriptionItem/DescriptionItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,yBAAyB,EACzB,2BAA2B,EAC3B,oBAAoB,EAEpB,4BAA4B,EAC5B,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AAWjB;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,eAAe,GAAI,8CAM7B,oBAAoB,4CAYtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GAAI,wCAKpC,2BAA2B,4CAU7B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,wCAKlC,yBAAyB,4CAmB3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,GAAI,wCAKrC,4BAA4B,4CAU9B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,wCAKlC,yBAAyB,4CAmB3B,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { createSafeContext as a, cn as m } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
const [c, o] = a("DescriptionItemSize", {
|
|
4
|
+
size: "md"
|
|
5
|
+
}), p = ({
|
|
6
|
+
ref: e,
|
|
7
|
+
children: t,
|
|
8
|
+
className: i,
|
|
9
|
+
size: s = "md",
|
|
10
|
+
...n
|
|
11
|
+
}) => /* @__PURE__ */ r(c, { value: { size: s }, children: /* @__PURE__ */ r(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
ref: e,
|
|
15
|
+
className: m("flex w-full items-start gap-12", i),
|
|
16
|
+
...n,
|
|
17
|
+
children: t
|
|
18
|
+
}
|
|
19
|
+
) }), u = ({
|
|
20
|
+
ref: e,
|
|
21
|
+
children: t,
|
|
22
|
+
className: i,
|
|
23
|
+
...s
|
|
24
|
+
}) => /* @__PURE__ */ r(
|
|
25
|
+
"div",
|
|
26
|
+
{
|
|
27
|
+
ref: e,
|
|
28
|
+
className: m("flex min-w-0 flex-1 items-center gap-4", i),
|
|
29
|
+
...s,
|
|
30
|
+
children: t
|
|
31
|
+
}
|
|
32
|
+
), x = ({
|
|
33
|
+
ref: e,
|
|
34
|
+
children: t,
|
|
35
|
+
className: i,
|
|
36
|
+
...s
|
|
37
|
+
}) => {
|
|
38
|
+
const { size: n } = o({
|
|
39
|
+
consumerName: "DescriptionItemLabel",
|
|
40
|
+
contextRequired: !1
|
|
41
|
+
});
|
|
42
|
+
return /* @__PURE__ */ r(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
ref: e,
|
|
46
|
+
className: m(
|
|
47
|
+
"line-clamp-2 min-w-0 wrap-break-word text-ellipsis text-muted",
|
|
48
|
+
n === "md" ? "body-2" : "body-3",
|
|
49
|
+
i
|
|
50
|
+
),
|
|
51
|
+
...s,
|
|
52
|
+
children: t
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
}, b = ({
|
|
56
|
+
ref: e,
|
|
57
|
+
children: t,
|
|
58
|
+
className: i,
|
|
59
|
+
...s
|
|
60
|
+
}) => /* @__PURE__ */ r(
|
|
61
|
+
"div",
|
|
62
|
+
{
|
|
63
|
+
ref: e,
|
|
64
|
+
className: m("flex max-w-4/5 shrink-0 items-center gap-4", i),
|
|
65
|
+
...s,
|
|
66
|
+
children: t
|
|
67
|
+
}
|
|
68
|
+
), f = ({
|
|
69
|
+
ref: e,
|
|
70
|
+
children: t,
|
|
71
|
+
className: i,
|
|
72
|
+
...s
|
|
73
|
+
}) => {
|
|
74
|
+
const { size: n } = o({
|
|
75
|
+
consumerName: "DescriptionItemValue",
|
|
76
|
+
contextRequired: !1
|
|
77
|
+
});
|
|
78
|
+
return /* @__PURE__ */ r(
|
|
79
|
+
"div",
|
|
80
|
+
{
|
|
81
|
+
ref: e,
|
|
82
|
+
className: m(
|
|
83
|
+
"min-w-0 truncate text-base",
|
|
84
|
+
n === "md" ? "body-2-semi-bold" : "body-3-semi-bold",
|
|
85
|
+
i
|
|
86
|
+
),
|
|
87
|
+
...s,
|
|
88
|
+
children: t
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
};
|
|
92
|
+
export {
|
|
93
|
+
p as DescriptionItem,
|
|
94
|
+
x as DescriptionItemLabel,
|
|
95
|
+
u as DescriptionItemLeading,
|
|
96
|
+
b as DescriptionItemTrailing,
|
|
97
|
+
f as DescriptionItemValue
|
|
98
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DescriptionItem/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
export type DescriptionItemSize = 'sm' | 'md';
|
|
3
|
+
export type DescriptionItemProps = {
|
|
4
|
+
/**
|
|
5
|
+
* The content of the description item (DescriptionItemLeading, DescriptionItemTrailing).
|
|
6
|
+
*/
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* The size of the description item.
|
|
10
|
+
* @default 'md'
|
|
11
|
+
*/
|
|
12
|
+
size?: DescriptionItemSize;
|
|
13
|
+
/**
|
|
14
|
+
* Additional CSS classes for layout adjustments.
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
} & ComponentPropsWithRef<'div'>;
|
|
18
|
+
export type DescriptionItemLeadingProps = {
|
|
19
|
+
/**
|
|
20
|
+
* The leading content (DescriptionItemLabel + optional info icon sibling).
|
|
21
|
+
*/
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Additional CSS classes for layout adjustments.
|
|
25
|
+
*/
|
|
26
|
+
className?: string;
|
|
27
|
+
} & ComponentPropsWithRef<'div'>;
|
|
28
|
+
export type DescriptionItemLabelProps = {
|
|
29
|
+
/**
|
|
30
|
+
* The label text or custom content.
|
|
31
|
+
*/
|
|
32
|
+
children: ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Additional CSS classes for layout adjustments.
|
|
35
|
+
*/
|
|
36
|
+
className?: string;
|
|
37
|
+
} & ComponentPropsWithRef<'div'>;
|
|
38
|
+
export type DescriptionItemTrailingProps = {
|
|
39
|
+
/**
|
|
40
|
+
* The trailing content (DescriptionItemValue, Tag, Link, etc.).
|
|
41
|
+
*/
|
|
42
|
+
children: ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* Additional CSS classes for layout adjustments.
|
|
45
|
+
*/
|
|
46
|
+
className?: string;
|
|
47
|
+
} & ComponentPropsWithRef<'div'>;
|
|
48
|
+
export type DescriptionItemValueProps = {
|
|
49
|
+
/**
|
|
50
|
+
* The value text or custom content.
|
|
51
|
+
*/
|
|
52
|
+
children: ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* Additional CSS classes for layout adjustments.
|
|
55
|
+
*/
|
|
56
|
+
className?: string;
|
|
57
|
+
} & ComponentPropsWithRef<'div'>;
|
|
58
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DescriptionItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9C,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { cn as
|
|
2
|
+
import { cn as c } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
const o = ({
|
|
4
4
|
ref: s,
|
|
5
5
|
ticker: t,
|
|
@@ -9,8 +9,8 @@ const o = ({
|
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
ref: s,
|
|
12
|
-
className:
|
|
13
|
-
"flex items-center gap-8 rounded-full bg-muted-transparent
|
|
12
|
+
className: c(
|
|
13
|
+
"flex items-center gap-8 rounded-full bg-muted-transparent p-8 pr-12",
|
|
14
14
|
r
|
|
15
15
|
),
|
|
16
16
|
"data-slot": "coin-capsule",
|
|
@@ -10,7 +10,7 @@ import { ExpandLeft as E } from "../../Symbols/Icons/ExpandLeft.js";
|
|
|
10
10
|
const [O, w] = V("SideBar"), f = {
|
|
11
11
|
root: h(
|
|
12
12
|
[
|
|
13
|
-
"flex h-full flex-col justify-between gap-16 overflow-y-auto rounded-xl bg-
|
|
13
|
+
"flex h-full flex-col justify-between gap-16 overflow-y-auto rounded-xl bg-surface-transparent p-16",
|
|
14
14
|
"transition-[width] duration-300 ease-in-out",
|
|
15
15
|
"scrollbar-none"
|
|
16
16
|
],
|
|
@@ -7,9 +7,10 @@ export * from './BaseInput';
|
|
|
7
7
|
export * from './Button';
|
|
8
8
|
export * from './Card';
|
|
9
9
|
export * from './CardButton';
|
|
10
|
-
export * from './ContentBanner';
|
|
11
10
|
export * from './Checkbox';
|
|
11
|
+
export * from './ContentBanner';
|
|
12
12
|
export * from './DataTable';
|
|
13
|
+
export * from './DescriptionItem';
|
|
13
14
|
export * from './Dialog';
|
|
14
15
|
export * from './Divider';
|
|
15
16
|
export * from './DotCount';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/Components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/Components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC"}
|
package/dist/package.json
CHANGED