@ledgerhq/lumen-ui-react 0.0.61 → 0.0.63
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/ai-rules/README.md +1 -1
- package/ai-rules/RULES.md +3 -3
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/languages.js +35 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +97 -95
- package/dist/lib/Components/Dialog/Dialog.d.ts +1 -1
- package/dist/lib/Components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/lib/Components/Dialog/Dialog.js +56 -48
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +2 -2
- package/dist/lib/Components/Spot/Spot.js +5 -5
- package/dist/lib/Components/Subheader/Subheader.js +1 -1
- package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
- package/dist/lib/Components/Tile/Tile.js +6 -9
- package/dist/lib/Components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/package.json +2 -2
- package/package.json +1 -1
package/ai-rules/README.md
CHANGED
|
@@ -75,7 +75,7 @@ import { ArrowRight } from '@ledgerhq/lumen-ui-react';
|
|
|
75
75
|
|
|
76
76
|
// ✅ With rules
|
|
77
77
|
import { ArrowRight } from '@ledgerhq/lumen-ui-react/symbols';
|
|
78
|
-
<div className='text-muted heading-
|
|
78
|
+
<div className='text-muted heading-3'>Text</div>;
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
## Auto-Sync Benefits
|
package/ai-rules/RULES.md
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
- Do not use Tailwind Typography utilities (e.g., `font-bold`, `text-sm`, etc.)
|
|
41
41
|
- Use Lumen custom typography utilities:
|
|
42
42
|
- `responsive-display-1` to `responsive-display-4`
|
|
43
|
-
- `heading-0`, `heading-0-semi-bold` through `heading-
|
|
43
|
+
- `heading-0`, `heading-0-semi-bold` through `heading-5`, `heading-5-semi-bold`
|
|
44
44
|
- `body-1`, `body-1-semi-bold` through `body-4`, `body-4-semi-bold`
|
|
45
45
|
|
|
46
46
|
### Colors and Background
|
|
@@ -154,7 +154,7 @@ import { ArrowRight } from '@ledgerhq/lumen-ui-react/symbols';
|
|
|
154
154
|
|
|
155
155
|
const Card = () => (
|
|
156
156
|
<div className='bg-base border border-base rounded-lg p-16'>
|
|
157
|
-
<h2 className='heading-
|
|
157
|
+
<h2 className='heading-4'>Card Title</h2>
|
|
158
158
|
<p className='body-2 text-muted mt-8'>This is a description using proper spacing and typography tokens.</p>
|
|
159
159
|
<Button icon={ArrowRight} className='mt-16'>
|
|
160
160
|
Learn More
|
|
@@ -319,4 +319,4 @@ Use ONLY the unique part after the last hyphen of the CSS variable name.
|
|
|
319
319
|
- Figma shows: a comment with the style name, like `/* body/3 */`
|
|
320
320
|
- Transform: replace `/` with `-`
|
|
321
321
|
- Result: `body-3` (transform `body/3` → `body-3`)
|
|
322
|
-
- Example: `/* heading/2-semi-bold */` → `heading-
|
|
322
|
+
- Example: `/* heading/2-semi-bold */` → `heading-3-semi-bold`
|
package/dist/i18n/index.d.ts
CHANGED
package/dist/i18n/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/i18n/languages.js
CHANGED
|
@@ -1,10 +1,40 @@
|
|
|
1
|
-
const
|
|
1
|
+
const d = {
|
|
2
|
+
de: {
|
|
3
|
+
id: "de"
|
|
4
|
+
},
|
|
2
5
|
en: {
|
|
3
6
|
id: "en"
|
|
7
|
+
},
|
|
8
|
+
es: {
|
|
9
|
+
id: "es"
|
|
10
|
+
},
|
|
11
|
+
fr: {
|
|
12
|
+
id: "fr"
|
|
13
|
+
},
|
|
14
|
+
ja: {
|
|
15
|
+
id: "ja"
|
|
16
|
+
},
|
|
17
|
+
ko: {
|
|
18
|
+
id: "ko"
|
|
19
|
+
},
|
|
20
|
+
pt: {
|
|
21
|
+
id: "pt"
|
|
22
|
+
},
|
|
23
|
+
ru: {
|
|
24
|
+
id: "ru"
|
|
25
|
+
},
|
|
26
|
+
th: {
|
|
27
|
+
id: "th"
|
|
28
|
+
},
|
|
29
|
+
tr: {
|
|
30
|
+
id: "tr"
|
|
31
|
+
},
|
|
32
|
+
zh: {
|
|
33
|
+
id: "zh"
|
|
4
34
|
}
|
|
5
|
-
},
|
|
35
|
+
}, i = d.en.id, t = "common";
|
|
6
36
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
37
|
+
i as DEFAULT_LANGUAGE,
|
|
38
|
+
t as I18N_DEFAULT_NAMESPACE,
|
|
39
|
+
d as Languages
|
|
10
40
|
};
|
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,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,KAAK,eAAe,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,97 +1,99 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
1
|
+
import { Languages as o } from "./i18n/languages.js";
|
|
2
|
+
import { AddressInput as n } from "./lib/Components/AddressInput/AddressInput.js";
|
|
3
|
+
import { AmountInput as p } from "./lib/Components/AmountInput/AmountInput.js";
|
|
4
|
+
import { Banner as u } from "./lib/Components/Banner/Banner.js";
|
|
5
|
+
import { BaseInput as l } from "./lib/Components/BaseInput/BaseInput.js";
|
|
6
|
+
import { Button as f } from "./lib/Components/Button/Button.js";
|
|
7
|
+
import { BaseButton as I } from "./lib/Components/Button/BaseButton.js";
|
|
8
|
+
import { CardButton as g } from "./lib/Components/CardButton/CardButton.js";
|
|
9
|
+
import { Checkbox as s } from "./lib/Components/Checkbox/Checkbox.js";
|
|
10
|
+
import { Dialog as M, DialogBody as d, DialogContent as C, DialogFooter as D, DialogTrigger as b } from "./lib/Components/Dialog/Dialog.js";
|
|
11
|
+
import { DialogHeader as h } from "./lib/Components/Dialog/DialogHeader/DialogHeader.js";
|
|
12
|
+
import { Divider as v } from "./lib/Components/Divider/Divider.js";
|
|
13
|
+
import { IconButton as G } from "./lib/Components/IconButton/IconButton.js";
|
|
14
|
+
import { InteractiveIcon as y } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
|
|
15
|
+
import { Link as w } from "./lib/Components/Link/Link.js";
|
|
16
|
+
import { ListItem as H, ListItemContent as j, ListItemDescription as q, ListItemIcon as z, ListItemLeading as E, ListItemSpot as J, ListItemTitle as K, ListItemTrailing as N, ListItemTruncate as O } from "./lib/Components/ListItem/ListItem.js";
|
|
17
|
+
import { Menu as U, MenuCheckboxItem as V, MenuContent as W, MenuGroup as X, MenuItem as Y, MenuLabel as Z, MenuPortal as _, MenuRadioGroup as $, MenuRadioItem as ee, MenuSeparator as te, MenuSub as oe, MenuSubContent as re, MenuSubTrigger as ne, MenuTrigger as ie } from "./lib/Components/Menu/Menu.js";
|
|
18
|
+
import { SearchInput as me } from "./lib/Components/SearchInput/SearchInput.js";
|
|
19
|
+
import { Select as xe, SelectContent as le, SelectGroup as ae, SelectItem as fe, SelectItemText as Te, SelectLabel as Ie, SelectSeparator as ce, SelectTrigger as ge } from "./lib/Components/Select/Select.js";
|
|
20
|
+
import { Skeleton as se } from "./lib/Components/Skeleton/Skeleton.js";
|
|
21
|
+
import { Spot as Me } from "./lib/Components/Spot/Spot.js";
|
|
22
|
+
import { Subheader as Ce } from "./lib/Components/Subheader/Subheader.js";
|
|
23
|
+
import { Switch as be } from "./lib/Components/Switch/Switch.js";
|
|
24
|
+
import { Tag as he } from "./lib/Components/Tag/Tag.js";
|
|
25
|
+
import { TextInput as ve } from "./lib/Components/TextInput/TextInput.js";
|
|
26
|
+
import { Tile as Ge, TileContent as Pe, TileDescription as ye, TileSecondaryAction as Re, TileSpot as we, TileTitle as Fe } from "./lib/Components/Tile/Tile.js";
|
|
27
|
+
import { Tooltip as je, TooltipContent as qe, TooltipProvider as ze, TooltipTrigger as Ee } from "./lib/Components/Tooltip/Tooltip.js";
|
|
28
|
+
import { ThemeProvider as Ke, useTheme as Ne } from "./lib/Components/ThemeProvider/ThemeProvider.js";
|
|
28
29
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
w as
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
O as
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
ie as
|
|
71
|
-
me as
|
|
72
|
-
|
|
73
|
-
le as
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
se as
|
|
81
|
-
|
|
82
|
-
Ce as
|
|
83
|
-
be as
|
|
84
|
-
he as
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
Fe as
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
30
|
+
n as AddressInput,
|
|
31
|
+
p as AmountInput,
|
|
32
|
+
u as Banner,
|
|
33
|
+
I as BaseButton,
|
|
34
|
+
l as BaseInput,
|
|
35
|
+
f as Button,
|
|
36
|
+
g as CardButton,
|
|
37
|
+
s as Checkbox,
|
|
38
|
+
M as Dialog,
|
|
39
|
+
d as DialogBody,
|
|
40
|
+
C as DialogContent,
|
|
41
|
+
D as DialogFooter,
|
|
42
|
+
h as DialogHeader,
|
|
43
|
+
b as DialogTrigger,
|
|
44
|
+
v as Divider,
|
|
45
|
+
G as IconButton,
|
|
46
|
+
y as InteractiveIcon,
|
|
47
|
+
o as Languages,
|
|
48
|
+
w as Link,
|
|
49
|
+
H as ListItem,
|
|
50
|
+
j as ListItemContent,
|
|
51
|
+
q as ListItemDescription,
|
|
52
|
+
z as ListItemIcon,
|
|
53
|
+
E as ListItemLeading,
|
|
54
|
+
J as ListItemSpot,
|
|
55
|
+
K as ListItemTitle,
|
|
56
|
+
N as ListItemTrailing,
|
|
57
|
+
O as ListItemTruncate,
|
|
58
|
+
U as Menu,
|
|
59
|
+
V as MenuCheckboxItem,
|
|
60
|
+
W as MenuContent,
|
|
61
|
+
X as MenuGroup,
|
|
62
|
+
Y as MenuItem,
|
|
63
|
+
Z as MenuLabel,
|
|
64
|
+
_ as MenuPortal,
|
|
65
|
+
$ as MenuRadioGroup,
|
|
66
|
+
ee as MenuRadioItem,
|
|
67
|
+
te as MenuSeparator,
|
|
68
|
+
oe as MenuSub,
|
|
69
|
+
re as MenuSubContent,
|
|
70
|
+
ne as MenuSubTrigger,
|
|
71
|
+
ie as MenuTrigger,
|
|
72
|
+
me as SearchInput,
|
|
73
|
+
xe as Select,
|
|
74
|
+
le as SelectContent,
|
|
75
|
+
ae as SelectGroup,
|
|
76
|
+
fe as SelectItem,
|
|
77
|
+
Te as SelectItemText,
|
|
78
|
+
Ie as SelectLabel,
|
|
79
|
+
ce as SelectSeparator,
|
|
80
|
+
ge as SelectTrigger,
|
|
81
|
+
se as Skeleton,
|
|
82
|
+
Me as Spot,
|
|
83
|
+
Ce as Subheader,
|
|
84
|
+
be as Switch,
|
|
85
|
+
he as Tag,
|
|
86
|
+
ve as TextInput,
|
|
87
|
+
Ke as ThemeProvider,
|
|
88
|
+
Ge as Tile,
|
|
89
|
+
Pe as TileContent,
|
|
90
|
+
ye as TileDescription,
|
|
91
|
+
Re as TileSecondaryAction,
|
|
92
|
+
we as TileSpot,
|
|
93
|
+
Fe as TileTitle,
|
|
94
|
+
je as Tooltip,
|
|
95
|
+
qe as TooltipContent,
|
|
96
|
+
ze as TooltipProvider,
|
|
97
|
+
Ee as TooltipTrigger,
|
|
98
|
+
Ne as useTheme
|
|
97
99
|
};
|
|
@@ -73,7 +73,7 @@ export declare function DialogTrigger({ ...props }: DialogTriggerProps): import(
|
|
|
73
73
|
* // With custom styling for layout
|
|
74
74
|
* <DialogContent className="max-w-md">
|
|
75
75
|
* <div className="space-y-4">
|
|
76
|
-
* <h4 className="heading-
|
|
76
|
+
* <h4 className="heading-5-semi-bold">Dialog Title</h4>
|
|
77
77
|
* <p>Detailed content here.</p>
|
|
78
78
|
* </div>
|
|
79
79
|
* </DialogContent>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAEL,kBAAkB,EAIlB,WAAW,EACX,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAwBjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,MAAM,CAAC,EAAE,MAAc,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAM/D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAE7D;AAuDD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAEL,kBAAkB,EAIlB,WAAW,EACX,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAwBjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,MAAM,CAAC,EAAE,MAAc,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAM/D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAE7D;AAuDD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,2CAkBpB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,UAAU;;;;+EAsBtB,CAAC;AAGF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,YAAY;;;+EAaxB,CAAC;AAGF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { cn as
|
|
1
|
+
import { jsx as o, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { createSafeContext as u, cn as l } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import * as r from "@radix-ui/react-dialog";
|
|
4
|
-
import { cva as
|
|
5
|
-
import * as
|
|
6
|
-
const
|
|
7
|
-
height: "hug"
|
|
8
|
-
}), u = m(
|
|
4
|
+
import { cva as h } from "class-variance-authority";
|
|
5
|
+
import * as n from "react";
|
|
6
|
+
const [x, s] = u("Dialog"), p = h(
|
|
9
7
|
[
|
|
10
|
-
"w-400
|
|
11
|
-
"
|
|
8
|
+
"flex w-400 max-w-[calc(100%-2rem)] flex-col overflow-hidden rounded-2xl bg-canvas-sheet pb-24",
|
|
9
|
+
"fixed left-[50%] top-[50%] z-dialog-content translate-x-[-50%] translate-y-[-50%]",
|
|
12
10
|
"data-[state=closed]:animate-content-hide data-[state=open]:animate-content-show"
|
|
13
11
|
],
|
|
14
12
|
{
|
|
@@ -23,85 +21,95 @@ const d = i.createContext({
|
|
|
23
21
|
}
|
|
24
22
|
}
|
|
25
23
|
);
|
|
26
|
-
function
|
|
27
|
-
return /* @__PURE__ */ o(
|
|
24
|
+
function C({ height: a = "hug", ...t }) {
|
|
25
|
+
return /* @__PURE__ */ o(x, { value: { height: a }, children: /* @__PURE__ */ o(r.Root, { "data-slot": "dialog", ...t }) });
|
|
28
26
|
}
|
|
29
|
-
function
|
|
27
|
+
function R({ ...a }) {
|
|
30
28
|
return /* @__PURE__ */ o(r.Trigger, { "data-slot": "dialog-trigger", ...a });
|
|
31
29
|
}
|
|
32
|
-
function
|
|
30
|
+
function v({
|
|
33
31
|
...a
|
|
34
32
|
}) {
|
|
35
33
|
return /* @__PURE__ */ o(r.Portal, { "data-slot": "dialog-portal", ...a });
|
|
36
34
|
}
|
|
37
|
-
const
|
|
35
|
+
const d = n.forwardRef(
|
|
38
36
|
({ className: a, ...t }, e) => /* @__PURE__ */ o(
|
|
39
37
|
r.Overlay,
|
|
40
38
|
{
|
|
41
39
|
ref: e,
|
|
42
40
|
"data-slot": "dialog-overlay",
|
|
43
|
-
className:
|
|
41
|
+
className: l(
|
|
44
42
|
a,
|
|
45
|
-
"z-dialog-overlay bg-canvas-overlay data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in
|
|
43
|
+
"fixed inset-0 z-dialog-overlay bg-canvas-overlay backdrop-blur-sm data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in"
|
|
46
44
|
),
|
|
47
45
|
...t
|
|
48
46
|
}
|
|
49
47
|
)
|
|
50
48
|
);
|
|
51
|
-
|
|
52
|
-
function
|
|
49
|
+
d.displayName = "DialogOverlay";
|
|
50
|
+
function O({
|
|
53
51
|
className: a,
|
|
54
52
|
children: t,
|
|
55
53
|
...e
|
|
56
54
|
}) {
|
|
57
|
-
const { height:
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
const { height: i } = s({
|
|
56
|
+
consumerName: "DialogContent",
|
|
57
|
+
contextRequired: !0
|
|
58
|
+
});
|
|
59
|
+
return /* @__PURE__ */ m(v, { "data-slot": "dialog-portal", children: [
|
|
60
|
+
/* @__PURE__ */ o(d, {}),
|
|
60
61
|
/* @__PURE__ */ o(
|
|
61
62
|
r.Content,
|
|
62
63
|
{
|
|
63
64
|
"data-slot": "dialog-content",
|
|
64
|
-
className:
|
|
65
|
+
className: l(p({ height: i }), a),
|
|
65
66
|
...e,
|
|
66
67
|
children: t
|
|
67
68
|
}
|
|
68
69
|
)
|
|
69
70
|
] });
|
|
70
71
|
}
|
|
71
|
-
const
|
|
72
|
-
({ className: a, children: t, scrollbarWidth: e = "none", style:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
72
|
+
const y = n.forwardRef(
|
|
73
|
+
({ className: a, children: t, scrollbarWidth: e = "none", style: i, ...g }, c) => {
|
|
74
|
+
const { height: f } = s({
|
|
75
|
+
consumerName: "DialogBody",
|
|
76
|
+
contextRequired: !0
|
|
77
|
+
});
|
|
78
|
+
return /* @__PURE__ */ o(
|
|
79
|
+
"div",
|
|
80
|
+
{
|
|
81
|
+
ref: c,
|
|
82
|
+
"data-slot": "dialog-body",
|
|
83
|
+
style: { scrollbarWidth: e, ...i },
|
|
84
|
+
className: l(
|
|
85
|
+
"-mb-24 flex min-h-0 grow flex-col overflow-y-auto px-24 pb-24",
|
|
86
|
+
f === "hug" ? "basis-auto" : "basis-0",
|
|
87
|
+
a
|
|
88
|
+
),
|
|
89
|
+
...g,
|
|
90
|
+
children: t
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
}
|
|
86
94
|
);
|
|
87
|
-
|
|
88
|
-
const
|
|
89
|
-
({ className: a, children: t, ...e },
|
|
95
|
+
y.displayName = "DialogBody";
|
|
96
|
+
const D = n.forwardRef(
|
|
97
|
+
({ className: a, children: t, ...e }, i) => /* @__PURE__ */ o(
|
|
90
98
|
"div",
|
|
91
99
|
{
|
|
92
|
-
ref:
|
|
100
|
+
ref: i,
|
|
93
101
|
"data-slot": "dialog-footer",
|
|
94
|
-
className:
|
|
102
|
+
className: l("flex shrink-0 justify-end gap-8 px-24 pt-24", a),
|
|
95
103
|
...e,
|
|
96
104
|
children: t
|
|
97
105
|
}
|
|
98
106
|
)
|
|
99
107
|
);
|
|
100
|
-
|
|
108
|
+
D.displayName = "DialogFooter";
|
|
101
109
|
export {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
110
|
+
C as Dialog,
|
|
111
|
+
y as DialogBody,
|
|
112
|
+
O as DialogContent,
|
|
113
|
+
D as DialogFooter,
|
|
114
|
+
R as DialogTrigger
|
|
107
115
|
};
|
|
@@ -79,7 +79,7 @@ const y = b("flex px-24 text-base", {
|
|
|
79
79
|
"pl-40": !i
|
|
80
80
|
}),
|
|
81
81
|
children: [
|
|
82
|
-
o && /* @__PURE__ */ e("div", { className: "
|
|
82
|
+
o && /* @__PURE__ */ e("div", { className: "heading-5-semi-bold truncate text-center", children: o }),
|
|
83
83
|
l && /* @__PURE__ */ e("div", { className: "truncate text-center text-muted body-2", children: l })
|
|
84
84
|
]
|
|
85
85
|
}
|
|
@@ -92,7 +92,7 @@ const y = b("flex px-24 text-base", {
|
|
|
92
92
|
/* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e(d, { onClose: n }) })
|
|
93
93
|
] }),
|
|
94
94
|
(o || l) && /* @__PURE__ */ t("div", { className: "flex flex-col gap-4", children: [
|
|
95
|
-
o && /* @__PURE__ */ e("div", { className: "heading-
|
|
95
|
+
o && /* @__PURE__ */ e("div", { className: "heading-3-semi-bold", children: o }),
|
|
96
96
|
l && /* @__PURE__ */ e("div", { className: "text-muted body-2", children: l })
|
|
97
97
|
] })
|
|
98
98
|
] })
|
|
@@ -20,7 +20,7 @@ const F = h(
|
|
|
20
20
|
warning: "text-warning",
|
|
21
21
|
info: "text-muted",
|
|
22
22
|
loader: "",
|
|
23
|
-
number: "text-base
|
|
23
|
+
number: "heading-5 text-base"
|
|
24
24
|
},
|
|
25
25
|
disabled: {
|
|
26
26
|
true: "text-disabled"
|
|
@@ -41,10 +41,10 @@ const F = h(
|
|
|
41
41
|
72: 40
|
|
42
42
|
}, m = {
|
|
43
43
|
32: "body-2-semi-bold",
|
|
44
|
-
48: "heading-
|
|
45
|
-
56: "heading-
|
|
46
|
-
72: "heading-
|
|
47
|
-
}, t = l[o] ?? 20, n = m[o] ?? "heading-
|
|
44
|
+
48: "heading-5",
|
|
45
|
+
56: "heading-4",
|
|
46
|
+
72: "heading-2"
|
|
47
|
+
}, t = l[o] ?? 20, n = m[o] ?? "heading-5", p = f(() => {
|
|
48
48
|
switch (r.appearance) {
|
|
49
49
|
case "icon": {
|
|
50
50
|
const { icon: u } = r;
|
|
@@ -24,7 +24,7 @@ const a = ({ children: e }) => /* @__PURE__ */ i("div", { className: "flex shrin
|
|
|
24
24
|
...d,
|
|
25
25
|
children: [
|
|
26
26
|
/* @__PURE__ */ s("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
27
|
-
/* @__PURE__ */ i("h2", { className: "min-w-0 truncate
|
|
27
|
+
/* @__PURE__ */ i("h2", { className: "heading-5-semi-bold min-w-0 truncate", children: m }),
|
|
28
28
|
u
|
|
29
29
|
] }),
|
|
30
30
|
S
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tile/Tile.tsx"],"names":[],"mappings":"AASA,OAAO,EACL,gBAAgB,EAEhB,oBAAoB,EACpB,SAAS,EACT,wBAAwB,EACxB,aAAa,EACb,cAAc,EACf,MAAM,SAAS,CAAC;AAgEjB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,IAAI;sIAWd,SAAS;;CAqFX,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,QAAQ;YAAW,aAAa;;CAM5C,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,WAAW;wCAIrB,gBAAgB;;
|
|
1
|
+
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tile/Tile.tsx"],"names":[],"mappings":"AASA,OAAO,EACL,gBAAgB,EAEhB,oBAAoB,EACpB,SAAS,EACT,wBAAwB,EACxB,aAAa,EACb,cAAc,EACf,MAAM,SAAS,CAAC;AAgEjB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,IAAI;sIAWd,SAAS;;CAqFX,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,QAAQ;YAAW,aAAa;;CAM5C,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,WAAW;wCAIrB,gBAAgB;;CASlB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,SAAS;wCAInB,cAAc;;CAiBhB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,eAAe;wCAIzB,oBAAoB;;CAiBtB,CAAC;AAGF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB;sEAM7B,wBAAwB;;CAmC1B,CAAC"}
|
|
@@ -73,7 +73,7 @@ const [V, u] = C("Tile"), v = {
|
|
|
73
73
|
onMouseLeave: r,
|
|
74
74
|
...x
|
|
75
75
|
}) => {
|
|
76
|
-
const [
|
|
76
|
+
const [y, f] = I(!1), { slotElement: N, remainingChildren: g } = q(
|
|
77
77
|
m,
|
|
78
78
|
T
|
|
79
79
|
), h = n(
|
|
@@ -100,7 +100,7 @@ const [V, u] = C("Tile"), v = {
|
|
|
100
100
|
...x,
|
|
101
101
|
className: v.root({
|
|
102
102
|
appearance: s,
|
|
103
|
-
isActive:
|
|
103
|
+
isActive: y,
|
|
104
104
|
disabled: t,
|
|
105
105
|
className: e
|
|
106
106
|
}),
|
|
@@ -122,10 +122,10 @@ const [V, u] = C("Tile"), v = {
|
|
|
122
122
|
disabled: t,
|
|
123
123
|
"data-disabled": t || void 0,
|
|
124
124
|
className: v.button(),
|
|
125
|
-
children:
|
|
125
|
+
children: g
|
|
126
126
|
}
|
|
127
127
|
),
|
|
128
|
-
|
|
128
|
+
N
|
|
129
129
|
]
|
|
130
130
|
}
|
|
131
131
|
) });
|
|
@@ -146,10 +146,7 @@ const P = ({
|
|
|
146
146
|
}) => /* @__PURE__ */ l(
|
|
147
147
|
"div",
|
|
148
148
|
{
|
|
149
|
-
className: d(
|
|
150
|
-
"flex w-full flex-col items-center gap-4 text-center",
|
|
151
|
-
i
|
|
152
|
-
),
|
|
149
|
+
className: d("flex w-full flex-col items-center text-center", i),
|
|
153
150
|
...s,
|
|
154
151
|
children: e
|
|
155
152
|
}
|
|
@@ -224,7 +221,7 @@ const T = ({
|
|
|
224
221
|
{
|
|
225
222
|
"data-slot": "tile-secondary-action",
|
|
226
223
|
className: d(
|
|
227
|
-
"absolute right-
|
|
224
|
+
"absolute right-4 top-8 opacity-0 transition-opacity duration-200 focus-within:opacity-100 group-hover:opacity-100",
|
|
228
225
|
s
|
|
229
226
|
),
|
|
230
227
|
"data-secondary-button-container": !0,
|
|
@@ -93,7 +93,7 @@ export declare const TooltipTrigger: ({ ...props }: TooltipTriggerProps) => impo
|
|
|
93
93
|
* // With custom styling for layout
|
|
94
94
|
* <TooltipContent sideOffset={12} className="max-w-xs">
|
|
95
95
|
* <div className="space-y-2">
|
|
96
|
-
* <h4 className="heading-
|
|
96
|
+
* <h4 className="heading-2">Tip Title</h4>
|
|
97
97
|
* <p>Detailed explanation of the feature.</p>
|
|
98
98
|
* </div>
|
|
99
99
|
* </TooltipContent>
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/lumen-ui-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.62",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"keywords": [
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@ledgerhq/lumen-utils-shared": "0.0.
|
|
44
|
+
"@ledgerhq/lumen-utils-shared": "0.0.15",
|
|
45
45
|
"i18next": "^23.7.0",
|
|
46
46
|
"react-i18next": "^14.0.0"
|
|
47
47
|
},
|