@ledgerhq/lumen-ui-react 0.1.20 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +121 -121
- package/dist/lib/Components/Banner/Banner.js +1 -1
- package/dist/lib/Components/CardButton/CardButton.js +2 -2
- package/dist/lib/Components/Dialog/Dialog.d.ts +1 -1
- package/dist/lib/Components/Dialog/Dialog.js +4 -4
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts +1 -1
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts.map +1 -1
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +31 -31
- package/dist/lib/Components/Dialog/types.d.ts +3 -2
- package/dist/lib/Components/Dialog/types.d.ts.map +1 -1
- package/dist/lib/Components/Icon/Icon.js +1 -1
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +2 -2
- package/dist/lib/Components/Link/Link.js +2 -2
- package/dist/lib/Components/ListItem/ListItem.d.ts +2 -2
- package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/lib/Components/ListItem/ListItem.js +87 -51
- package/dist/lib/Components/ListItem/types.d.ts +9 -9
- package/dist/lib/Components/ListItem/types.d.ts.map +1 -1
- package/dist/lib/Components/MediaButton/MediaButton.d.ts +30 -0
- package/dist/lib/Components/MediaButton/MediaButton.d.ts.map +1 -0
- package/dist/lib/Components/{TriggerButton/TriggerButton.js → MediaButton/MediaButton.js} +24 -23
- package/dist/lib/Components/MediaButton/index.d.ts +3 -0
- package/dist/lib/Components/MediaButton/index.d.ts.map +1 -0
- package/dist/lib/Components/{TriggerButton → MediaButton}/types.d.ts +9 -4
- package/dist/lib/Components/MediaButton/types.d.ts.map +1 -0
- package/dist/lib/Components/Popover/Popover.d.ts +1 -1
- package/dist/lib/Components/Popover/Popover.d.ts.map +1 -1
- package/dist/lib/Components/Popover/Popover.js +36 -34
- package/dist/lib/Components/Popover/types.d.ts +11 -1
- package/dist/lib/Components/Popover/types.d.ts.map +1 -1
- package/dist/lib/Components/Select/Select.d.ts +2 -3
- package/dist/lib/Components/Select/Select.d.ts.map +1 -1
- package/dist/lib/Components/Select/Select.js +132 -139
- package/dist/lib/Components/Select/index.d.ts +1 -1
- package/dist/lib/Components/Select/index.d.ts.map +1 -1
- package/dist/lib/Components/Select/types.d.ts +2 -10
- package/dist/lib/Components/Select/types.d.ts.map +1 -1
- package/dist/lib/Components/Spot/Spot.js +2 -2
- package/dist/lib/Components/Switch/Switch.js +1 -1
- package/dist/lib/Components/Tag/Tag.js +1 -1
- package/dist/lib/Components/ThemeProvider/ThemeProvider.d.ts +7 -0
- package/dist/lib/Components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/dist/lib/Components/ThemeProvider/ThemeProvider.js +24 -18
- package/dist/lib/Components/ThemeProvider/ThemeProvider.types.d.ts +7 -1
- package/dist/lib/Components/ThemeProvider/ThemeProvider.types.d.ts.map +1 -1
- package/dist/lib/Components/ThemeProvider/useRootColorModeSideEffect.d.ts +10 -5
- package/dist/lib/Components/ThemeProvider/useRootColorModeSideEffect.d.ts.map +1 -1
- package/dist/lib/Components/ThemeProvider/useRootColorModeSideEffect.js +22 -21
- package/dist/lib/Components/index.d.ts +1 -1
- package/dist/lib/Components/index.d.ts.map +1 -1
- package/dist/package.json +3 -2
- package/package.json +2 -1
- package/dist/lib/Components/TriggerButton/TriggerButton.d.ts +0 -30
- package/dist/lib/Components/TriggerButton/TriggerButton.d.ts.map +0 -1
- package/dist/lib/Components/TriggerButton/index.d.ts +0 -3
- package/dist/lib/Components/TriggerButton/index.d.ts.map +0 -1
- package/dist/lib/Components/TriggerButton/types.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { Banner as x } from "./lib/Components/Banner/Banner.js";
|
|
|
7
7
|
import { BaseInput as u } from "./lib/Components/BaseInput/BaseInput.js";
|
|
8
8
|
import { Button as S } from "./lib/Components/Button/Button.js";
|
|
9
9
|
import { BaseButton as c } from "./lib/Components/Button/BaseButton.js";
|
|
10
|
-
import { Card as b, CardContent as I, CardContentDescription as s, CardContentRow as
|
|
10
|
+
import { Card as b, CardContent as I, CardContentDescription as s, CardContentRow as M, CardContentTitle as D, CardFooter as L, CardFooterActions as h, CardHeader as v, CardLeading as R, CardTrailing as w } from "./lib/Components/Card/Card.js";
|
|
11
11
|
import { CardButton as y } from "./lib/Components/CardButton/CardButton.js";
|
|
12
12
|
import { ContentBanner as P, ContentBannerContent as k, ContentBannerDescription as N, ContentBannerTitle as G } from "./lib/Components/ContentBanner/ContentBanner.js";
|
|
13
13
|
import { Checkbox as F } from "./lib/Components/Checkbox/Checkbox.js";
|
|
@@ -22,31 +22,31 @@ import { IconButton as me } from "./lib/Components/IconButton/IconButton.js";
|
|
|
22
22
|
import { InteractiveIcon as Te } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
|
|
23
23
|
import { Link as fe } from "./lib/Components/Link/Link.js";
|
|
24
24
|
import { ListItem as Ce, ListItemContent as Se, ListItemContentRow as ge, ListItemDescription as ce, ListItemLeading as Be, ListItemTitle as be, ListItemTrailing as Ie } from "./lib/Components/ListItem/ListItem.js";
|
|
25
|
-
import { MediaBanner as
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { SideBar as
|
|
37
|
-
import { Skeleton as
|
|
38
|
-
import { Spinner as
|
|
39
|
-
import { Spot as
|
|
40
|
-
import { Stepper as
|
|
41
|
-
import { Subheader as
|
|
42
|
-
import { Switch as
|
|
43
|
-
import { Table as
|
|
44
|
-
import { Tag as
|
|
45
|
-
import { TextInput as
|
|
46
|
-
import { Tile as
|
|
47
|
-
import { TileButton as
|
|
48
|
-
import { Tooltip as
|
|
49
|
-
import { ThemeProvider as Ht } from "./lib/Components/ThemeProvider/ThemeProvider.js";
|
|
25
|
+
import { MediaBanner as Me, MediaBannerDescription as De, MediaBannerTitle as Le } from "./lib/Components/MediaBanner/MediaBanner.js";
|
|
26
|
+
import { MediaButton as ve } from "./lib/Components/MediaButton/MediaButton.js";
|
|
27
|
+
import { MediaCard as we, MediaCardTitle as Ae } from "./lib/Components/MediaCard/MediaCard.js";
|
|
28
|
+
import { MediaImage as He } from "./lib/Components/MediaImage/MediaImage.js";
|
|
29
|
+
import { Menu as ke, MenuCheckboxItem as Ne, MenuContent as Ge, MenuGroup as Ee, MenuItem as Fe, MenuLabel as ze, MenuPortal as Oe, MenuRadioGroup as _e, MenuRadioItem as je, MenuSeparator as qe, MenuSub as Je, MenuSubContent as Ke, MenuSubTrigger as Qe, MenuTrigger as Ue } from "./lib/Components/Menu/Menu.js";
|
|
30
|
+
import { NavBar as We, NavBarBackButton as Xe, NavBarCoinCapsule as Ye, NavBarTitle as Ze, NavBarTrailing as $e } from "./lib/Components/NavBar/NavBar.js";
|
|
31
|
+
import { Popover as oo, PopoverContent as to, PopoverTrigger as ro, createPopoverHandle as ao } from "./lib/Components/Popover/Popover.js";
|
|
32
|
+
import { PageIndicator as io } from "./lib/Components/PageIndicator/PageIndicator.js";
|
|
33
|
+
import { SearchInput as lo } from "./lib/Components/SearchInput/SearchInput.js";
|
|
34
|
+
import { SegmentedControl as To, SegmentedControlButton as xo } from "./lib/Components/SegmentedControl/SegmentedControl.js";
|
|
35
|
+
import { Select as uo, SelectContent as Co, SelectEmptyState as So, SelectItem as go, SelectItemContent as co, SelectItemDescription as Bo, SelectItemText as bo, SelectList as Io, SelectSearch as so, SelectSeparator as Mo, SelectTrigger as Do } from "./lib/Components/Select/Select.js";
|
|
36
|
+
import { SideBar as ho, SideBarCollapseToggle as vo, SideBarItem as Ro, SideBarLeading as wo, SideBarTrailing as Ao } from "./lib/Components/SideBar/SideBar.js";
|
|
37
|
+
import { Skeleton as Ho } from "./lib/Components/Skeleton/Skeleton.js";
|
|
38
|
+
import { Spinner as ko } from "./lib/Components/Spinner/Spinner.js";
|
|
39
|
+
import { Spot as Go } from "./lib/Components/Spot/Spot.js";
|
|
40
|
+
import { Stepper as Fo } from "./lib/Components/Stepper/Stepper.js";
|
|
41
|
+
import { Subheader as Oo, SubheaderCount as _o, SubheaderDescription as jo, SubheaderInfo as qo, SubheaderRow as Jo, SubheaderShowMore as Ko, SubheaderTitle as Qo } from "./lib/Components/Subheader/Subheader.js";
|
|
42
|
+
import { Switch as Vo } from "./lib/Components/Switch/Switch.js";
|
|
43
|
+
import { Table as Xo, TableActionBar as Yo, TableActionBarLeading as Zo, TableActionBarTrailing as $o, TableBody as et, TableCell as ot, TableCellContent as tt, TableGroupHeaderRow as rt, TableHeader as at, TableHeaderCell as nt, TableHeaderRow as it, TableInfoIcon as pt, TableLoadingRow as lt, TableRoot as mt, TableRow as dt, TableSortButton as Tt } from "./lib/Components/Table/Table.js";
|
|
44
|
+
import { Tag as ft } from "./lib/Components/Tag/Tag.js";
|
|
45
|
+
import { TextInput as Ct } from "./lib/Components/TextInput/TextInput.js";
|
|
46
|
+
import { Tile as gt, TileContent as ct, TileDescription as Bt, TileSecondaryAction as bt, TileTitle as It, TileTrailingContent as st } from "./lib/Components/Tile/Tile.js";
|
|
47
|
+
import { TileButton as Dt } from "./lib/Components/TileButton/TileButton.js";
|
|
48
|
+
import { Tooltip as ht, TooltipContent as vt, TooltipProvider as Rt, TooltipTrigger as wt } from "./lib/Components/Tooltip/Tooltip.js";
|
|
49
|
+
import { ThemeProvider as yt, useTheme as Ht } from "./lib/Components/ThemeProvider/ThemeProvider.js";
|
|
50
50
|
import { COLOR_SCHEMES as kt } from "./lib/Components/ThemeProvider/ThemeProvider.types.js";
|
|
51
51
|
export {
|
|
52
52
|
a as AddressInput,
|
|
@@ -62,8 +62,8 @@ export {
|
|
|
62
62
|
y as CardButton,
|
|
63
63
|
I as CardContent,
|
|
64
64
|
s as CardContentDescription,
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
M as CardContentRow,
|
|
66
|
+
D as CardContentTitle,
|
|
67
67
|
L as CardFooter,
|
|
68
68
|
h as CardFooterActions,
|
|
69
69
|
v as CardHeader,
|
|
@@ -98,100 +98,100 @@ export {
|
|
|
98
98
|
Be as ListItemLeading,
|
|
99
99
|
be as ListItemTitle,
|
|
100
100
|
Ie as ListItemTrailing,
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
Me as MediaBanner,
|
|
102
|
+
De as MediaBannerDescription,
|
|
103
103
|
Le as MediaBannerTitle,
|
|
104
|
-
ve as
|
|
105
|
-
|
|
106
|
-
Ae as
|
|
107
|
-
He as
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
Ue as
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
lo as
|
|
132
|
-
|
|
133
|
-
xo as
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
Do as
|
|
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
|
-
to as createPopoverHandle,
|
|
104
|
+
ve as MediaButton,
|
|
105
|
+
we as MediaCard,
|
|
106
|
+
Ae as MediaCardTitle,
|
|
107
|
+
He as MediaImage,
|
|
108
|
+
ke as Menu,
|
|
109
|
+
Ne as MenuCheckboxItem,
|
|
110
|
+
Ge as MenuContent,
|
|
111
|
+
Ee as MenuGroup,
|
|
112
|
+
Fe as MenuItem,
|
|
113
|
+
ze as MenuLabel,
|
|
114
|
+
Oe as MenuPortal,
|
|
115
|
+
_e as MenuRadioGroup,
|
|
116
|
+
je as MenuRadioItem,
|
|
117
|
+
qe as MenuSeparator,
|
|
118
|
+
Je as MenuSub,
|
|
119
|
+
Ke as MenuSubContent,
|
|
120
|
+
Qe as MenuSubTrigger,
|
|
121
|
+
Ue as MenuTrigger,
|
|
122
|
+
We as NavBar,
|
|
123
|
+
Xe as NavBarBackButton,
|
|
124
|
+
Ye as NavBarCoinCapsule,
|
|
125
|
+
Ze as NavBarTitle,
|
|
126
|
+
$e as NavBarTrailing,
|
|
127
|
+
io as PageIndicator,
|
|
128
|
+
oo as Popover,
|
|
129
|
+
to as PopoverContent,
|
|
130
|
+
ro as PopoverTrigger,
|
|
131
|
+
lo as SearchInput,
|
|
132
|
+
To as SegmentedControl,
|
|
133
|
+
xo as SegmentedControlButton,
|
|
134
|
+
uo as Select,
|
|
135
|
+
Co as SelectContent,
|
|
136
|
+
So as SelectEmptyState,
|
|
137
|
+
go as SelectItem,
|
|
138
|
+
co as SelectItemContent,
|
|
139
|
+
Bo as SelectItemDescription,
|
|
140
|
+
bo as SelectItemText,
|
|
141
|
+
Io as SelectList,
|
|
142
|
+
so as SelectSearch,
|
|
143
|
+
Mo as SelectSeparator,
|
|
144
|
+
Do as SelectTrigger,
|
|
145
|
+
ho as SideBar,
|
|
146
|
+
vo as SideBarCollapseToggle,
|
|
147
|
+
Ro as SideBarItem,
|
|
148
|
+
wo as SideBarLeading,
|
|
149
|
+
Ao as SideBarTrailing,
|
|
150
|
+
Ho as Skeleton,
|
|
151
|
+
ko as Spinner,
|
|
152
|
+
Go as Spot,
|
|
153
|
+
Fo as Stepper,
|
|
154
|
+
Oo as Subheader,
|
|
155
|
+
_o as SubheaderCount,
|
|
156
|
+
jo as SubheaderDescription,
|
|
157
|
+
qo as SubheaderInfo,
|
|
158
|
+
Jo as SubheaderRow,
|
|
159
|
+
Ko as SubheaderShowMore,
|
|
160
|
+
Qo as SubheaderTitle,
|
|
161
|
+
Vo as Switch,
|
|
162
|
+
Xo as Table,
|
|
163
|
+
Yo as TableActionBar,
|
|
164
|
+
Zo as TableActionBarLeading,
|
|
165
|
+
$o as TableActionBarTrailing,
|
|
166
|
+
et as TableBody,
|
|
167
|
+
ot as TableCell,
|
|
168
|
+
tt as TableCellContent,
|
|
169
|
+
rt as TableGroupHeaderRow,
|
|
170
|
+
at as TableHeader,
|
|
171
|
+
nt as TableHeaderCell,
|
|
172
|
+
it as TableHeaderRow,
|
|
173
|
+
pt as TableInfoIcon,
|
|
174
|
+
lt as TableLoadingRow,
|
|
175
|
+
mt as TableRoot,
|
|
176
|
+
dt as TableRow,
|
|
177
|
+
Tt as TableSortButton,
|
|
178
|
+
ft as Tag,
|
|
179
|
+
Ct as TextInput,
|
|
180
|
+
yt as ThemeProvider,
|
|
181
|
+
gt as Tile,
|
|
182
|
+
Dt as TileButton,
|
|
183
|
+
ct as TileContent,
|
|
184
|
+
Bt as TileDescription,
|
|
185
|
+
bt as TileSecondaryAction,
|
|
186
|
+
It as TileTitle,
|
|
187
|
+
st as TileTrailingContent,
|
|
188
|
+
ht as Tooltip,
|
|
189
|
+
vt as TooltipContent,
|
|
190
|
+
Rt as TooltipProvider,
|
|
191
|
+
wt as TooltipTrigger,
|
|
192
|
+
ao as createPopoverHandle,
|
|
194
193
|
ie as mediaImageDotSizeMap,
|
|
195
194
|
pe as spotDotSizeMap,
|
|
196
|
-
J as useLumenDataTable
|
|
195
|
+
J as useLumenDataTable,
|
|
196
|
+
Ht as useTheme
|
|
197
197
|
};
|
|
@@ -19,7 +19,7 @@ import { DialogBodyProps, DialogBodyStickyContentProps, DialogContentProps, Dial
|
|
|
19
19
|
* </DialogTrigger>
|
|
20
20
|
* <DialogContent>
|
|
21
21
|
* <DialogHeader
|
|
22
|
-
*
|
|
22
|
+
* density='compact'
|
|
23
23
|
* title='Dialog Title'
|
|
24
24
|
* description='Dialog Description'
|
|
25
25
|
* onBack={() => {}}
|
|
@@ -37,8 +37,8 @@ const p = ({ ref: t, className: a, ...e }) => /* @__PURE__ */ o(
|
|
|
37
37
|
ref: t,
|
|
38
38
|
"data-slot": "dialog-overlay",
|
|
39
39
|
className: i(
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
"fixed inset-0 z-dialog-overlay bg-canvas-overlay backdrop-blur-sm data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in",
|
|
41
|
+
a
|
|
42
42
|
),
|
|
43
43
|
...e
|
|
44
44
|
}
|
|
@@ -86,8 +86,8 @@ const w = ({
|
|
|
86
86
|
className: i(
|
|
87
87
|
"-mb-24 flex min-h-0 grow flex-col overflow-y-auto px-24 pb-24",
|
|
88
88
|
c === "fit" ? "basis-auto" : "basis-0",
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
n === "auto" ? "scrollbar-custom" : "scrollbar-none",
|
|
90
|
+
a
|
|
91
91
|
),
|
|
92
92
|
...d,
|
|
93
93
|
children: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DialogHeaderProps } from '../types';
|
|
2
|
-
export declare const DialogHeader: ({ ref, title, description,
|
|
2
|
+
export declare const DialogHeader: ({ ref, title, description, density, ...props }: DialogHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=DialogHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogHeader.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/Dialog/DialogHeader/DialogHeader.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAiJ7C,eAAO,MAAM,YAAY,GAAI,
|
|
1
|
+
{"version":3,"file":"DialogHeader.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/Dialog/DialogHeader/DialogHeader.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAiJ7C,eAAO,MAAM,YAAY,GAAI,gDAM1B,iBAAiB,4CAqBnB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
3
|
-
import * as
|
|
1
|
+
import { jsxs as n, Fragment as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cn as s } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import * as h from "@radix-ui/react-dialog";
|
|
4
4
|
import { cva as u } from "class-variance-authority";
|
|
5
5
|
import { useCommonTranslation as x } from "../../../../i18n/useCommonTranslation.js";
|
|
6
6
|
import { IconButton as f } from "../../IconButton/IconButton.js";
|
|
@@ -9,7 +9,7 @@ import { DialogClose as b } from "../DialogClose/DialogClose.js";
|
|
|
9
9
|
import { Close as v } from "../../../Symbols/Icons/Close.js";
|
|
10
10
|
const D = u("flex px-24 text-base", {
|
|
11
11
|
variants: {
|
|
12
|
-
|
|
12
|
+
density: {
|
|
13
13
|
compact: "mb-12 h-64 min-h-64 flex-row items-center gap-12",
|
|
14
14
|
expanded: "flex-col gap-16 pb-12 pt-10"
|
|
15
15
|
}
|
|
@@ -27,7 +27,7 @@ const D = u("flex px-24 text-base", {
|
|
|
27
27
|
"aria-label": a("components.dialogHeader.goBackAriaLabel")
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
|
-
},
|
|
30
|
+
}, p = ({ onClose: r }) => {
|
|
31
31
|
const { t: a } = x();
|
|
32
32
|
return /* @__PURE__ */ e(b, { asChild: !0, children: /* @__PURE__ */ e(
|
|
33
33
|
f,
|
|
@@ -41,42 +41,42 @@ const D = u("flex px-24 text-base", {
|
|
|
41
41
|
}
|
|
42
42
|
) });
|
|
43
43
|
}, C = ({ hidden: r, className: a, ...o }) => /* @__PURE__ */ e(
|
|
44
|
-
|
|
44
|
+
h.Title,
|
|
45
45
|
{
|
|
46
46
|
"data-slot": "dialog-title",
|
|
47
|
-
className:
|
|
47
|
+
className: s(r && "sr-only", a),
|
|
48
48
|
...o
|
|
49
49
|
}
|
|
50
|
-
),
|
|
51
|
-
|
|
50
|
+
), H = ({ hidden: r, className: a, ...o }) => /* @__PURE__ */ e(
|
|
51
|
+
h.Description,
|
|
52
52
|
{
|
|
53
53
|
"data-slot": "dialog-description",
|
|
54
|
-
className:
|
|
54
|
+
className: s(r && "sr-only", a),
|
|
55
55
|
...o
|
|
56
56
|
}
|
|
57
|
-
),
|
|
57
|
+
), w = ({
|
|
58
58
|
ref: r,
|
|
59
59
|
className: a,
|
|
60
|
-
|
|
60
|
+
density: o = "compact",
|
|
61
61
|
title: l,
|
|
62
62
|
description: t,
|
|
63
63
|
onClose: m,
|
|
64
|
-
onBack:
|
|
64
|
+
onBack: i,
|
|
65
65
|
...g
|
|
66
|
-
}) => /* @__PURE__ */
|
|
66
|
+
}) => /* @__PURE__ */ n(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
69
|
ref: r,
|
|
70
|
-
className: D({
|
|
70
|
+
className: D({ density: o, className: a }),
|
|
71
71
|
...g,
|
|
72
72
|
children: [
|
|
73
|
-
o === "compact" && /* @__PURE__ */
|
|
74
|
-
|
|
75
|
-
/* @__PURE__ */
|
|
73
|
+
o === "compact" && /* @__PURE__ */ n(c, { children: [
|
|
74
|
+
i && /* @__PURE__ */ e(d, { onBack: i }),
|
|
75
|
+
/* @__PURE__ */ n(
|
|
76
76
|
"div",
|
|
77
77
|
{
|
|
78
|
-
className:
|
|
79
|
-
"pl-40": !
|
|
78
|
+
className: s("flex min-w-0 flex-1 flex-col", {
|
|
79
|
+
"pl-40": !i
|
|
80
80
|
}),
|
|
81
81
|
children: [
|
|
82
82
|
l && /* @__PURE__ */ e("div", { className: "truncate text-center heading-5-semi-bold", children: l }),
|
|
@@ -84,14 +84,14 @@ const D = u("flex px-24 text-base", {
|
|
|
84
84
|
]
|
|
85
85
|
}
|
|
86
86
|
),
|
|
87
|
-
/* @__PURE__ */ e(
|
|
87
|
+
/* @__PURE__ */ e(p, { onClose: m })
|
|
88
88
|
] }),
|
|
89
|
-
o === "expanded" && /* @__PURE__ */
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
|
|
92
|
-
/* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e(
|
|
89
|
+
o === "expanded" && /* @__PURE__ */ n(c, { children: [
|
|
90
|
+
/* @__PURE__ */ n("div", { className: "flex h-40 flex-row items-center", children: [
|
|
91
|
+
i && /* @__PURE__ */ e(d, { onBack: i }),
|
|
92
|
+
/* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e(p, { onClose: m }) })
|
|
93
93
|
] }),
|
|
94
|
-
(l || t) && /* @__PURE__ */
|
|
94
|
+
(l || t) && /* @__PURE__ */ n("div", { className: "flex flex-col gap-4", children: [
|
|
95
95
|
l && /* @__PURE__ */ e("div", { className: "heading-3-semi-bold", children: l }),
|
|
96
96
|
t && /* @__PURE__ */ e("div", { className: "body-2 text-muted", children: t })
|
|
97
97
|
] })
|
|
@@ -102,21 +102,21 @@ const D = u("flex px-24 text-base", {
|
|
|
102
102
|
ref: r,
|
|
103
103
|
title: a = "",
|
|
104
104
|
description: o,
|
|
105
|
-
|
|
105
|
+
density: l = "compact",
|
|
106
106
|
...t
|
|
107
|
-
}) => /* @__PURE__ */
|
|
107
|
+
}) => /* @__PURE__ */ n(c, { children: [
|
|
108
108
|
/* @__PURE__ */ e(
|
|
109
|
-
|
|
109
|
+
w,
|
|
110
110
|
{
|
|
111
111
|
ref: r,
|
|
112
112
|
title: a,
|
|
113
113
|
description: o,
|
|
114
|
-
|
|
114
|
+
density: l,
|
|
115
115
|
...t
|
|
116
116
|
}
|
|
117
117
|
),
|
|
118
118
|
/* @__PURE__ */ e(C, { hidden: !0, children: a }),
|
|
119
|
-
o && /* @__PURE__ */ e(
|
|
119
|
+
o && /* @__PURE__ */ e(H, { hidden: !0, children: o })
|
|
120
120
|
] });
|
|
121
121
|
export {
|
|
122
122
|
F as DialogHeader
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Density } from '@ledgerhq/lumen-utils-shared';
|
|
1
2
|
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
3
|
export type DialogHeight = 'fit' | 'fixed';
|
|
3
4
|
export type DialogProps = {
|
|
@@ -95,10 +96,10 @@ export type DialogContentProps = {
|
|
|
95
96
|
};
|
|
96
97
|
export type DialogHeaderProps = {
|
|
97
98
|
/**
|
|
98
|
-
* The
|
|
99
|
+
* The density variant of the header.
|
|
99
100
|
* @default 'compact'
|
|
100
101
|
*/
|
|
101
|
-
|
|
102
|
+
density?: Density;
|
|
102
103
|
/**
|
|
103
104
|
* The main title to display in the header.
|
|
104
105
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Dialog/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,OAAO,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAA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,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ListItemProps, ListItemContentProps, ListItemLeadingProps, ListItemContentRowProps, ListItemTitleProps, ListItemDescriptionProps, ListItemTrailingProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* A flexible list item component that provides a composable structure for displaying
|
|
4
4
|
* interactive list items with leading content, title, description, and trailing content.
|
|
@@ -21,7 +21,7 @@ import { ListItemContentProps, ListItemDescriptionProps, ListItemLeadingProps, L
|
|
|
21
21
|
* </ListItemTrailing>
|
|
22
22
|
* </ListItem>
|
|
23
23
|
*/
|
|
24
|
-
export declare const ListItem: ({ ref, ...props }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const ListItem: ({ onClick, ref, ...props }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
/**
|
|
26
26
|
* Container for the leading (left) part of the list item.
|
|
27
27
|
* Contains the visual element (Spot, Avatar, Icon) and the content (title + description).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/ListItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/ListItem.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAsCjB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ,GAAI,4BAA4B,aAAa,4CAgCjE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,wCAK7B,oBAAoB,4CAUtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,wCAK7B,oBAAoB,4CAUtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,wCAKhC,uBAAuB,4CAmBzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,wCAK3B,kBAAkB,4CAwBpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,wCAKjC,wBAAwB,4CAwB1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,wCAK9B,qBAAqB,4CAqBvB,CAAC"}
|