@ledgerhq/lumen-ui-react 0.1.32 → 0.1.34
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 +115 -113
- package/dist/lib/Components/BaseTag/BaseTag.d.ts +3 -0
- package/dist/lib/Components/BaseTag/BaseTag.d.ts.map +1 -0
- package/dist/lib/Components/BaseTag/BaseTag.js +77 -0
- package/dist/lib/Components/BaseTag/index.d.ts +3 -0
- package/dist/lib/Components/BaseTag/index.d.ts.map +1 -0
- package/dist/lib/Components/BaseTag/types.d.ts +14 -0
- package/dist/lib/Components/BaseTag/types.d.ts.map +1 -0
- package/dist/lib/Components/MediaTag/MediaTag.d.ts +22 -0
- package/dist/lib/Components/MediaTag/MediaTag.d.ts.map +1 -0
- package/dist/lib/Components/MediaTag/MediaTag.js +14 -0
- package/dist/lib/Components/MediaTag/index.d.ts +3 -0
- package/dist/lib/Components/MediaTag/index.d.ts.map +1 -0
- package/dist/lib/Components/MediaTag/types.d.ts +10 -0
- package/dist/lib/Components/MediaTag/types.d.ts.map +1 -0
- package/dist/lib/Components/SideBar/SideBar.js +1 -1
- package/dist/lib/Components/Tag/Tag.d.ts +20 -1
- package/dist/lib/Components/Tag/Tag.d.ts.map +1 -1
- package/dist/lib/Components/Tag/Tag.js +15 -58
- package/dist/lib/Components/Tag/types.d.ts +1 -1
- package/dist/lib/Components/Tag/types.d.ts.map +1 -1
- package/dist/lib/Components/index.d.ts +1 -0
- package/dist/lib/Components/index.d.ts.map +1 -1
- package/dist/package.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29,29 +29,30 @@ import { MediaBanner as He, MediaBannerDescription as Pe, MediaBannerTitle as Ne
|
|
|
29
29
|
import { MediaButton as ze } from "./lib/Components/MediaButton/MediaButton.js";
|
|
30
30
|
import { MediaCard as Ee, MediaCardTitle as Fe } from "./lib/Components/MediaCard/MediaCard.js";
|
|
31
31
|
import { MediaImage as _e } from "./lib/Components/MediaImage/MediaImage.js";
|
|
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 {
|
|
32
|
+
import { MediaTag as qe } from "./lib/Components/MediaTag/MediaTag.js";
|
|
33
|
+
import { Menu as Ke, MenuCheckboxItem as Qe, MenuContent as Ue, MenuGroup as Ve, MenuItem as We, MenuLabel as Xe, MenuPortal as Ye, MenuRadioGroup as Ze, MenuRadioItem as $e, MenuSeparator as eo, MenuSub as oo, MenuSubContent as to, MenuSubTrigger as ro, MenuTrigger as ao } from "./lib/Components/Menu/Menu.js";
|
|
34
|
+
import { NavBar as io, NavBarBackButton as po, NavBarCoinCapsule as lo, NavBarDescription as mo, NavBarLeading as xo, NavBarTitle as To, NavBarTrailing as fo } from "./lib/Components/NavBar/NavBar.js";
|
|
35
|
+
import { Popover as So, PopoverContent as Co, PopoverTrigger as co, createPopoverHandle as go } from "./lib/Components/Popover/Popover.js";
|
|
36
|
+
import { PageIndicator as Io } from "./lib/Components/PageIndicator/PageIndicator.js";
|
|
37
|
+
import { SearchInput as so } from "./lib/Components/SearchInput/SearchInput.js";
|
|
38
|
+
import { SegmentedControl as Mo, SegmentedControlButton as Lo } from "./lib/Components/SegmentedControl/SegmentedControl.js";
|
|
39
|
+
import { Select as vo, SelectContent as Ro, SelectEmptyState as wo, SelectItem as Ao, SelectItemContent as yo, SelectItemDescription as Ho, SelectItemText as Po, SelectList as No, SelectSearch as ko, SelectSeparator as zo, SelectTrigger as Go } from "./lib/Components/Select/Select.js";
|
|
40
|
+
import { SideBar as Fo, SideBarCollapseToggle as Oo, SideBarItem as _o, SideBarLeading as jo, SideBarTrailing as qo } from "./lib/Components/SideBar/SideBar.js";
|
|
41
|
+
import { Skeleton as Ko } from "./lib/Components/Skeleton/Skeleton.js";
|
|
42
|
+
import { Spinner as Uo } from "./lib/Components/Spinner/Spinner.js";
|
|
43
|
+
import { Spot as Wo } from "./lib/Components/Spot/Spot.js";
|
|
44
|
+
import { Stepper as Yo } from "./lib/Components/Stepper/Stepper.js";
|
|
45
|
+
import { Subheader as $o, SubheaderCount as et, SubheaderDescription as ot, SubheaderInfo as tt, SubheaderRow as rt, SubheaderShowMore as at, SubheaderTitle as nt } from "./lib/Components/Subheader/Subheader.js";
|
|
46
|
+
import { Switch as pt } from "./lib/Components/Switch/Switch.js";
|
|
47
|
+
import { Table as mt, TableActionBar as dt, TableActionBarLeading as xt, TableActionBarTrailing as Tt, TableBody as ft, TableCell as ut, TableCellContent as St, TableGroupHeaderRow as Ct, TableHeader as ct, TableHeaderCell as gt, TableHeaderRow as Bt, TableInfoIcon as It, TableLoadingRow as bt, TableRoot as st, TableRow as Dt, TableSortButton as Mt } from "./lib/Components/Table/Table.js";
|
|
48
|
+
import { Tag as ht } from "./lib/Components/Tag/Tag.js";
|
|
49
|
+
import { TextInput as Rt } from "./lib/Components/TextInput/TextInput.js";
|
|
50
|
+
import { Tile as At, TileContent as yt, TileDescription as Ht, TileSecondaryAction as Pt, TileTitle as Nt, TileTrailingContent as kt } from "./lib/Components/Tile/Tile.js";
|
|
51
|
+
import { TileButton as Gt } from "./lib/Components/TileButton/TileButton.js";
|
|
52
|
+
import { Tooltip as Ft, TooltipContent as Ot, TooltipProvider as _t, TooltipTrigger as jt } from "./lib/Components/Tooltip/Tooltip.js";
|
|
53
|
+
import { Trend as Jt } from "./lib/Components/Trend/Trend.js";
|
|
54
|
+
import { ThemeProvider as Qt, useTheme as Ut } from "./lib/Components/ThemeProvider/ThemeProvider.js";
|
|
55
|
+
import { COLOR_SCHEMES as Wt } from "./lib/Components/ThemeProvider/ThemeProvider.types.js";
|
|
55
56
|
export {
|
|
56
57
|
a as AddressInput,
|
|
57
58
|
l as AmountDisplay,
|
|
@@ -61,7 +62,7 @@ export {
|
|
|
61
62
|
g as BaseButton,
|
|
62
63
|
u as BaseInput,
|
|
63
64
|
C as Button,
|
|
64
|
-
|
|
65
|
+
Wt as COLOR_SCHEMES,
|
|
65
66
|
I as Card,
|
|
66
67
|
y as CardButton,
|
|
67
68
|
b as CardContent,
|
|
@@ -112,99 +113,100 @@ export {
|
|
|
112
113
|
Ee as MediaCard,
|
|
113
114
|
Fe as MediaCardTitle,
|
|
114
115
|
_e as MediaImage,
|
|
115
|
-
qe as
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
ao as
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
so as
|
|
142
|
-
|
|
143
|
-
Lo as
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
Go as
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
qo as
|
|
160
|
-
Ko as
|
|
161
|
-
Uo as
|
|
162
|
-
Wo as
|
|
163
|
-
Yo as
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
nt as
|
|
171
|
-
pt as
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
Mt as
|
|
188
|
-
ht as
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
jt as
|
|
202
|
-
|
|
116
|
+
qe as MediaTag,
|
|
117
|
+
Ke as Menu,
|
|
118
|
+
Qe as MenuCheckboxItem,
|
|
119
|
+
Ue as MenuContent,
|
|
120
|
+
Ve as MenuGroup,
|
|
121
|
+
We as MenuItem,
|
|
122
|
+
Xe as MenuLabel,
|
|
123
|
+
Ye as MenuPortal,
|
|
124
|
+
Ze as MenuRadioGroup,
|
|
125
|
+
$e as MenuRadioItem,
|
|
126
|
+
eo as MenuSeparator,
|
|
127
|
+
oo as MenuSub,
|
|
128
|
+
to as MenuSubContent,
|
|
129
|
+
ro as MenuSubTrigger,
|
|
130
|
+
ao as MenuTrigger,
|
|
131
|
+
io as NavBar,
|
|
132
|
+
po as NavBarBackButton,
|
|
133
|
+
lo as NavBarCoinCapsule,
|
|
134
|
+
mo as NavBarDescription,
|
|
135
|
+
xo as NavBarLeading,
|
|
136
|
+
To as NavBarTitle,
|
|
137
|
+
fo as NavBarTrailing,
|
|
138
|
+
Io as PageIndicator,
|
|
139
|
+
So as Popover,
|
|
140
|
+
Co as PopoverContent,
|
|
141
|
+
co as PopoverTrigger,
|
|
142
|
+
so as SearchInput,
|
|
143
|
+
Mo as SegmentedControl,
|
|
144
|
+
Lo as SegmentedControlButton,
|
|
145
|
+
vo as Select,
|
|
146
|
+
Ro as SelectContent,
|
|
147
|
+
wo as SelectEmptyState,
|
|
148
|
+
Ao as SelectItem,
|
|
149
|
+
yo as SelectItemContent,
|
|
150
|
+
Ho as SelectItemDescription,
|
|
151
|
+
Po as SelectItemText,
|
|
152
|
+
No as SelectList,
|
|
153
|
+
ko as SelectSearch,
|
|
154
|
+
zo as SelectSeparator,
|
|
155
|
+
Go as SelectTrigger,
|
|
156
|
+
Fo as SideBar,
|
|
157
|
+
Oo as SideBarCollapseToggle,
|
|
158
|
+
_o as SideBarItem,
|
|
159
|
+
jo as SideBarLeading,
|
|
160
|
+
qo as SideBarTrailing,
|
|
161
|
+
Ko as Skeleton,
|
|
162
|
+
Uo as Spinner,
|
|
163
|
+
Wo as Spot,
|
|
164
|
+
Yo as Stepper,
|
|
165
|
+
$o as Subheader,
|
|
166
|
+
et as SubheaderCount,
|
|
167
|
+
ot as SubheaderDescription,
|
|
168
|
+
tt as SubheaderInfo,
|
|
169
|
+
rt as SubheaderRow,
|
|
170
|
+
at as SubheaderShowMore,
|
|
171
|
+
nt as SubheaderTitle,
|
|
172
|
+
pt as Switch,
|
|
173
|
+
mt as Table,
|
|
174
|
+
dt as TableActionBar,
|
|
175
|
+
xt as TableActionBarLeading,
|
|
176
|
+
Tt as TableActionBarTrailing,
|
|
177
|
+
ft as TableBody,
|
|
178
|
+
ut as TableCell,
|
|
179
|
+
St as TableCellContent,
|
|
180
|
+
Ct as TableGroupHeaderRow,
|
|
181
|
+
ct as TableHeader,
|
|
182
|
+
gt as TableHeaderCell,
|
|
183
|
+
Bt as TableHeaderRow,
|
|
184
|
+
It as TableInfoIcon,
|
|
185
|
+
bt as TableLoadingRow,
|
|
186
|
+
st as TableRoot,
|
|
187
|
+
Dt as TableRow,
|
|
188
|
+
Mt as TableSortButton,
|
|
189
|
+
ht as Tag,
|
|
190
|
+
Rt as TextInput,
|
|
191
|
+
Qt as ThemeProvider,
|
|
192
|
+
At as Tile,
|
|
193
|
+
Gt as TileButton,
|
|
194
|
+
yt as TileContent,
|
|
195
|
+
Ht as TileDescription,
|
|
196
|
+
Pt as TileSecondaryAction,
|
|
197
|
+
Nt as TileTitle,
|
|
198
|
+
kt as TileTrailingContent,
|
|
199
|
+
Ft as Tooltip,
|
|
200
|
+
Ot as TooltipContent,
|
|
201
|
+
_t as TooltipProvider,
|
|
202
|
+
jt as TooltipTrigger,
|
|
203
|
+
Jt as Trend,
|
|
204
|
+
go as createPopoverHandle,
|
|
203
205
|
le as dotIconSizeMap,
|
|
204
206
|
me as mediaImageDotIconSizeMap,
|
|
205
207
|
Se as mediaImageDotSizeMap,
|
|
206
208
|
de as spotDotIconSizeMap,
|
|
207
209
|
Ce as spotDotSizeMap,
|
|
208
210
|
J as useLumenDataTable,
|
|
209
|
-
|
|
211
|
+
Ut as useTheme
|
|
210
212
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { BaseTagProps } from './types';
|
|
2
|
+
export declare const BaseTag: ({ ref, className, appearance, size, variant, consumerName, label, disabled: disabledProp, leadingContent, ...props }: BaseTagProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=BaseTag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTag.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/BaseTag/BaseTag.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA2C5C,eAAO,MAAM,OAAO,GAAI,sHAWrB,YAAY,4CAmBd,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsxs as m, jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { useDisabledContext as g, cn as o } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as x } from "class-variance-authority";
|
|
4
|
+
const u = x(
|
|
5
|
+
"inline-flex items-center justify-center gap-4 truncate rounded-xs",
|
|
6
|
+
{
|
|
7
|
+
variants: {
|
|
8
|
+
appearance: {
|
|
9
|
+
base: "bg-muted-transparent text-base",
|
|
10
|
+
gray: "bg-muted-transparent text-muted",
|
|
11
|
+
accent: "bg-accent text-on-accent",
|
|
12
|
+
"accent-subtle": "bg-active-subtle text-active",
|
|
13
|
+
success: "bg-success text-success",
|
|
14
|
+
error: "bg-error text-error",
|
|
15
|
+
warning: "bg-warning text-warning",
|
|
16
|
+
white: "bg-white text-black"
|
|
17
|
+
},
|
|
18
|
+
size: {
|
|
19
|
+
md: "body-3",
|
|
20
|
+
sm: "body-4"
|
|
21
|
+
},
|
|
22
|
+
variant: {
|
|
23
|
+
tag: "",
|
|
24
|
+
media: ""
|
|
25
|
+
},
|
|
26
|
+
disabled: {
|
|
27
|
+
true: "bg-disabled text-disabled",
|
|
28
|
+
false: ""
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
compoundVariants: [
|
|
32
|
+
{ variant: "tag", size: "md", class: "px-8 py-4" },
|
|
33
|
+
{ variant: "tag", size: "sm", class: "px-4 py-2" },
|
|
34
|
+
{ variant: "media", size: "md", class: "py-4 pr-8 pl-4" },
|
|
35
|
+
{ variant: "media", size: "sm", class: "px-4 py-2" }
|
|
36
|
+
],
|
|
37
|
+
defaultVariants: {
|
|
38
|
+
appearance: "accent",
|
|
39
|
+
size: "md",
|
|
40
|
+
disabled: !1
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
), z = ({
|
|
44
|
+
ref: e,
|
|
45
|
+
className: a,
|
|
46
|
+
appearance: t,
|
|
47
|
+
size: s,
|
|
48
|
+
variant: r,
|
|
49
|
+
consumerName: i,
|
|
50
|
+
label: n,
|
|
51
|
+
disabled: c,
|
|
52
|
+
leadingContent: d,
|
|
53
|
+
...b
|
|
54
|
+
}) => {
|
|
55
|
+
const l = g({
|
|
56
|
+
consumerName: i,
|
|
57
|
+
mergeWith: { disabled: c }
|
|
58
|
+
});
|
|
59
|
+
return /* @__PURE__ */ m(
|
|
60
|
+
"div",
|
|
61
|
+
{
|
|
62
|
+
className: o(
|
|
63
|
+
u({ appearance: t, size: s, variant: r, disabled: !!l }),
|
|
64
|
+
a
|
|
65
|
+
),
|
|
66
|
+
ref: e,
|
|
67
|
+
...b,
|
|
68
|
+
children: [
|
|
69
|
+
d,
|
|
70
|
+
/* @__PURE__ */ p("span", { className: "truncate", children: n })
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
};
|
|
75
|
+
export {
|
|
76
|
+
z as BaseTag
|
|
77
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/BaseTag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TagProps } from '../Tag/types';
|
|
3
|
+
export type BaseTagVariant = 'tag' | 'media';
|
|
4
|
+
export type BaseTagProps = Omit<TagProps, 'icon'> & {
|
|
5
|
+
variant: BaseTagVariant;
|
|
6
|
+
consumerName: string;
|
|
7
|
+
/**
|
|
8
|
+
* Content rendered before the label (icon component, image, crypto icon, etc.).
|
|
9
|
+
* Color is inherited from the tag's text color so SVGs using `currentColor`
|
|
10
|
+
* will pick up the correct appearance automatically.
|
|
11
|
+
*/
|
|
12
|
+
leadingContent?: ReactNode;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/BaseTag/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,OAAO,CAAC;AAE7C,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,GAAG;IAClD,OAAO,EAAE,cAAc,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;CAC5B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MediaTagProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* A compact label used to categorize, classify, or highlight information with a required media element (image, crypto icon, etc.).
|
|
4
|
+
*
|
|
5
|
+
* The appearance determines the color scheme used.
|
|
6
|
+
*
|
|
7
|
+
* @see {@link https://ldls.vercel.app/?path=/docs/communication-mediatag-overview--docs Storybook}
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* import { MediaTag, MediaImage } from '@ledgerhq/lumen-ui-react';
|
|
11
|
+
*
|
|
12
|
+
* // MediaTag with image
|
|
13
|
+
* <MediaTag
|
|
14
|
+
* label='Ethereum'
|
|
15
|
+
* leadingContent={<MediaImage src='https://crypto-icons.ledger.com/ETH.png' alt='Ethereum' size={16} shape='square' />}
|
|
16
|
+
* />
|
|
17
|
+
*
|
|
18
|
+
* // Small MediaTag
|
|
19
|
+
* <MediaTag label='Bitcoin' size='sm' leadingContent={myIcon} />
|
|
20
|
+
*/
|
|
21
|
+
export declare const MediaTag: ({ leadingContent, ...props }: MediaTagProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=MediaTag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaTag.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaTag/MediaTag.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,QAAQ,GAAI,8BAA8B,aAAa,4CASnE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { BaseTag as m } from "../BaseTag/BaseTag.js";
|
|
3
|
+
const t = ({ leadingContent: a, ...r }) => /* @__PURE__ */ e(
|
|
4
|
+
m,
|
|
5
|
+
{
|
|
6
|
+
...r,
|
|
7
|
+
variant: "media",
|
|
8
|
+
consumerName: "MediaTag",
|
|
9
|
+
leadingContent: a
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
export {
|
|
13
|
+
t as MediaTag
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaTag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TagProps } from '../Tag/types';
|
|
3
|
+
export type MediaTagProps = Omit<TagProps, 'icon'> & {
|
|
4
|
+
/**
|
|
5
|
+
* The media element rendered before the label (e.g. an image or a crypto icon).
|
|
6
|
+
* Should be sized to match the tag's `size`: 16px for `md`, 12px for `sm`.
|
|
7
|
+
*/
|
|
8
|
+
leadingContent: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaTag/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,GAAG;IACnD;;;OAGG;IACH,cAAc,EAAE,SAAS,CAAC;CAC3B,CAAC"}
|
|
@@ -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
|
],
|
|
@@ -1,3 +1,22 @@
|
|
|
1
1
|
import { TagProps } from './types';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* A compact label used to categorize, classify, or highlight information with optional icon support.
|
|
4
|
+
*
|
|
5
|
+
* The appearance determines the color scheme used.
|
|
6
|
+
*
|
|
7
|
+
* @see {@link https://ldls.vercel.app/?path=/docs/communication-tag-overview--docs Storybook}
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* import { Tag } from '@ledgerhq/lumen-ui-react';
|
|
11
|
+
*
|
|
12
|
+
* // Basic tag
|
|
13
|
+
* <Tag label="Label" appearance="accent" />
|
|
14
|
+
*
|
|
15
|
+
* // Tag with icon
|
|
16
|
+
* <Tag label="Success" appearance="success" icon={Check} />
|
|
17
|
+
*
|
|
18
|
+
* // Small tag
|
|
19
|
+
* <Tag label="Small" size="sm" />
|
|
20
|
+
*/
|
|
21
|
+
export declare const Tag: ({ icon, size, ...props }: TagProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
22
|
//# sourceMappingURL=Tag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tag/Tag.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tag/Tag.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AASxC;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,GAAG,GAAI,0BAAiC,QAAQ,4CAe5D,CAAC"}
|
|
@@ -1,64 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
gray: "bg-muted-transparent text-muted",
|
|
11
|
-
accent: "bg-accent text-on-accent",
|
|
12
|
-
"accent-subtle": "bg-active-subtle text-active",
|
|
13
|
-
success: "bg-success text-success",
|
|
14
|
-
error: "bg-error text-error",
|
|
15
|
-
warning: "bg-warning text-warning"
|
|
16
|
-
},
|
|
17
|
-
size: {
|
|
18
|
-
md: "px-8 py-4 body-3",
|
|
19
|
-
sm: "px-4 py-2 body-4"
|
|
20
|
-
},
|
|
21
|
-
disabled: {
|
|
22
|
-
true: "bg-disabled text-disabled",
|
|
23
|
-
false: ""
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
defaultVariants: {
|
|
27
|
-
appearance: "accent",
|
|
28
|
-
size: "md",
|
|
29
|
-
disabled: !1
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
), h = ({
|
|
33
|
-
ref: s,
|
|
34
|
-
className: n,
|
|
35
|
-
appearance: c,
|
|
36
|
-
size: e,
|
|
37
|
-
icon: r,
|
|
38
|
-
label: i,
|
|
39
|
-
disabled: d,
|
|
40
|
-
...o
|
|
41
|
-
}) => {
|
|
42
|
-
const b = p({
|
|
43
|
-
consumerName: "Tag",
|
|
44
|
-
mergeWith: { disabled: d }
|
|
45
|
-
}), l = e ? {
|
|
46
|
-
md: 16,
|
|
47
|
-
sm: 12
|
|
48
|
-
}[e] : 16, t = r;
|
|
49
|
-
return /* @__PURE__ */ m(
|
|
50
|
-
"div",
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { BaseTag as i } from "../BaseTag/BaseTag.js";
|
|
3
|
+
const r = {
|
|
4
|
+
md: 16,
|
|
5
|
+
sm: 12
|
|
6
|
+
}, g = ({ icon: a, size: o = "md", ...e }) => {
|
|
7
|
+
const n = a, m = r[o];
|
|
8
|
+
return /* @__PURE__ */ t(
|
|
9
|
+
i,
|
|
51
10
|
{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/* @__PURE__ */ a("span", { className: "truncate", children: i })
|
|
58
|
-
]
|
|
11
|
+
...e,
|
|
12
|
+
size: o,
|
|
13
|
+
variant: "tag",
|
|
14
|
+
consumerName: "Tag",
|
|
15
|
+
leadingContent: n ? /* @__PURE__ */ t(n, { size: m }) : void 0
|
|
59
16
|
}
|
|
60
17
|
);
|
|
61
18
|
};
|
|
62
19
|
export {
|
|
63
|
-
|
|
20
|
+
g as Tag
|
|
64
21
|
};
|
|
@@ -5,7 +5,7 @@ export type TagProps = {
|
|
|
5
5
|
* The appearance of the tag.
|
|
6
6
|
* @default accent
|
|
7
7
|
*/
|
|
8
|
-
appearance?: 'base' | 'gray' | 'accent' | 'accent-subtle' | 'success' | 'error' | 'warning';
|
|
8
|
+
appearance?: 'base' | 'gray' | 'accent' | 'accent-subtle' | 'success' | 'error' | 'warning' | 'white';
|
|
9
9
|
/**
|
|
10
10
|
* The size of the tag.
|
|
11
11
|
* @default md
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tag/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,MAAM,QAAQ,GAAG;IACrB;;;OAGG;IACH,UAAU,CAAC,EACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,eAAe,GACf,SAAS,GACT,OAAO,GACP,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tag/types.ts"],"names":[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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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/lumen-ui-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.33",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"keywords": [
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
56
56
|
"class-variance-authority": "^0.7.1",
|
|
57
57
|
"@tanstack/react-table": "^8.21.3",
|
|
58
|
-
"@ledgerhq/lumen-design-core": "0.1.
|
|
58
|
+
"@ledgerhq/lumen-design-core": "0.1.14",
|
|
59
59
|
"clsx": "^2.1.1",
|
|
60
60
|
"react": "^18.0.0 || ^19.0.0",
|
|
61
61
|
"react-dom": "^18.0.0 || ^19.0.0",
|