@ledgerhq/lumen-ui-react 0.1.17 → 0.1.19
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/RULES.md +6 -0
- package/dist/lib/Components/AddressInput/AddressInput.d.ts +1 -4
- package/dist/lib/Components/AddressInput/AddressInput.d.ts.map +1 -1
- package/dist/lib/Components/AddressInput/AddressInput.js +21 -21
- package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts +1 -4
- package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
- package/dist/lib/Components/AmountDisplay/AmountDisplay.js +32 -29
- package/dist/lib/Components/AmountInput/AmountInput.d.ts +1 -4
- package/dist/lib/Components/AmountInput/AmountInput.d.ts.map +1 -1
- package/dist/lib/Components/AmountInput/AmountInput.js +13 -14
- package/dist/lib/Components/Avatar/Avatar.d.ts +1 -4
- package/dist/lib/Components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/lib/Components/Avatar/Avatar.js +8 -9
- package/dist/lib/Components/BaseInput/BaseInput.d.ts +1 -4
- package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
- package/dist/lib/Components/BaseInput/BaseInput.js +44 -44
- package/dist/lib/Components/Button/BaseButton.d.ts +1 -4
- package/dist/lib/Components/Button/BaseButton.d.ts.map +1 -1
- package/dist/lib/Components/Button/BaseButton.js +14 -15
- package/dist/lib/Components/Button/Button.d.ts +1 -4
- package/dist/lib/Components/Button/Button.d.ts.map +1 -1
- package/dist/lib/Components/Button/Button.js +6 -7
- package/dist/lib/Components/Card/Card.d.ts +10 -40
- package/dist/lib/Components/Card/Card.d.ts.map +1 -1
- package/dist/lib/Components/Card/Card.js +115 -134
- package/dist/lib/Components/CardButton/CardButton.d.ts +1 -4
- package/dist/lib/Components/CardButton/CardButton.d.ts.map +1 -1
- package/dist/lib/Components/CardButton/CardButton.js +10 -11
- package/dist/lib/Components/Checkbox/Checkbox.d.ts +1 -4
- package/dist/lib/Components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/lib/Components/Checkbox/Checkbox.js +2 -3
- package/dist/lib/Components/ContentBanner/ContentBanner.d.ts +4 -16
- package/dist/lib/Components/ContentBanner/ContentBanner.d.ts.map +1 -1
- package/dist/lib/Components/ContentBanner/ContentBanner.js +48 -54
- package/dist/lib/Components/DataTable/DataTable.d.ts +3 -12
- package/dist/lib/Components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/lib/Components/DataTable/DataTable.js +84 -97
- package/dist/lib/Components/Dialog/Dialog.d.ts +3 -12
- package/dist/lib/Components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/lib/Components/Dialog/Dialog.js +44 -50
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts +1 -4
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts.map +1 -1
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +31 -34
- package/dist/lib/Components/Divider/Divider.d.ts +1 -4
- package/dist/lib/Components/Divider/Divider.d.ts.map +1 -1
- package/dist/lib/Components/Divider/Divider.js +10 -11
- package/dist/lib/Components/Icon/Icon.d.ts +1 -4
- package/dist/lib/Components/Icon/Icon.d.ts.map +1 -1
- package/dist/lib/Components/Icon/Icon.js +6 -7
- package/dist/lib/Components/IconButton/IconButton.d.ts +1 -4
- package/dist/lib/Components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/lib/Components/IconButton/IconButton.js +5 -6
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts +3 -11
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts.map +1 -1
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +24 -22
- package/dist/lib/Components/InteractiveIcon/types.d.ts +14 -9
- package/dist/lib/Components/InteractiveIcon/types.d.ts.map +1 -1
- package/dist/lib/Components/Link/Link.d.ts +1 -4
- package/dist/lib/Components/Link/Link.d.ts.map +1 -1
- package/dist/lib/Components/Link/Link.js +13 -14
- package/dist/lib/Components/ListItem/ListItem.d.ts +7 -28
- package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/lib/Components/ListItem/ListItem.js +60 -63
- package/dist/lib/Components/MediaBanner/MediaBanner.d.ts +3 -12
- package/dist/lib/Components/MediaBanner/MediaBanner.d.ts.map +1 -1
- package/dist/lib/Components/MediaBanner/MediaBanner.js +39 -43
- package/dist/lib/Components/MediaCard/MediaCard.d.ts +2 -8
- package/dist/lib/Components/MediaCard/MediaCard.d.ts.map +1 -1
- package/dist/lib/Components/MediaCard/MediaCard.js +38 -40
- package/dist/lib/Components/MediaImage/MediaImage.d.ts +1 -4
- package/dist/lib/Components/MediaImage/MediaImage.d.ts.map +1 -1
- package/dist/lib/Components/MediaImage/MediaImage.js +15 -16
- package/dist/lib/Components/Menu/Menu.d.ts +11 -38
- package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
- package/dist/lib/Components/Menu/Menu.js +100 -116
- package/dist/lib/Components/NavBar/CoinCapsule.d.ts +1 -4
- package/dist/lib/Components/NavBar/CoinCapsule.d.ts.map +1 -1
- package/dist/lib/Components/NavBar/CoinCapsule.js +8 -9
- package/dist/lib/Components/NavBar/NavBar.d.ts +7 -22
- package/dist/lib/Components/NavBar/NavBar.d.ts.map +1 -1
- package/dist/lib/Components/NavBar/NavBar.js +25 -34
- package/dist/lib/Components/PageIndicator/PageIndicator.d.ts +1 -4
- package/dist/lib/Components/PageIndicator/PageIndicator.d.ts.map +1 -1
- package/dist/lib/Components/PageIndicator/PageIndicator.js +15 -16
- package/dist/lib/Components/Popover/Popover.d.ts +1 -4
- package/dist/lib/Components/Popover/Popover.d.ts.map +1 -1
- package/dist/lib/Components/Popover/Popover.js +5 -7
- package/dist/lib/Components/SearchInput/SearchInput.d.ts +1 -4
- package/dist/lib/Components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/lib/Components/SearchInput/SearchInput.js +2 -3
- package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts +0 -6
- package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/lib/Components/SegmentedControl/SegmentedControl.js +19 -21
- package/dist/lib/Components/Select/Select.d.ts +10 -40
- package/dist/lib/Components/Select/Select.d.ts.map +1 -1
- package/dist/lib/Components/Select/Select.js +141 -163
- package/dist/lib/Components/SideBar/SideBar.d.ts +5 -20
- package/dist/lib/Components/SideBar/SideBar.d.ts.map +1 -1
- package/dist/lib/Components/SideBar/SideBar.js +44 -53
- package/dist/lib/Components/Skeleton/Skeleton.d.ts +1 -4
- package/dist/lib/Components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/lib/Components/Skeleton/Skeleton.js +15 -22
- package/dist/lib/Components/Spot/Spot.d.ts +1 -4
- package/dist/lib/Components/Spot/Spot.d.ts.map +1 -1
- package/dist/lib/Components/Spot/Spot.js +11 -12
- package/dist/lib/Components/Stepper/Stepper.d.ts +1 -4
- package/dist/lib/Components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/lib/Components/Stepper/Stepper.js +10 -11
- package/dist/lib/Components/Subheader/Subheader.d.ts +1 -4
- package/dist/lib/Components/Subheader/Subheader.d.ts.map +1 -1
- package/dist/lib/Components/Subheader/Subheader.js +14 -15
- package/dist/lib/Components/Subheader/types.d.ts +1 -1
- package/dist/lib/Components/Subheader/types.d.ts.map +1 -1
- package/dist/lib/Components/Switch/Switch.d.ts +1 -4
- package/dist/lib/Components/Switch/Switch.d.ts.map +1 -1
- package/dist/lib/Components/Switch/Switch.js +2 -3
- package/dist/lib/Components/Table/Table.d.ts +16 -64
- package/dist/lib/Components/Table/Table.d.ts.map +1 -1
- package/dist/lib/Components/Table/Table.js +146 -176
- package/dist/lib/Components/Tag/Tag.d.ts +1 -4
- package/dist/lib/Components/Tag/Tag.d.ts.map +1 -1
- package/dist/lib/Components/Tag/Tag.js +10 -11
- package/dist/lib/Components/TextInput/TextInput.d.ts +1 -4
- package/dist/lib/Components/TextInput/TextInput.d.ts.map +1 -1
- package/dist/lib/Components/TextInput/TextInput.js +4 -5
- package/dist/lib/Components/Tile/Tile.d.ts +6 -24
- package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
- package/dist/lib/Components/Tile/Tile.js +58 -71
- package/dist/lib/Components/TileButton/TileButton.d.ts +1 -4
- package/dist/lib/Components/TileButton/TileButton.d.ts.map +1 -1
- package/dist/lib/Components/TileButton/TileButton.js +12 -13
- package/dist/lib/Components/TriggerButton/TriggerButton.d.ts +1 -4
- package/dist/lib/Components/TriggerButton/TriggerButton.d.ts.map +1 -1
- package/dist/lib/Components/TriggerButton/TriggerButton.js +11 -12
- package/dist/package.json +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { createSafeContext as f, cn as
|
|
3
|
-
import * as
|
|
4
|
-
import { cva as
|
|
5
|
-
const [
|
|
1
|
+
import { jsx as o, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import { createSafeContext as f, cn as i } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import * as l from "@radix-ui/react-dialog";
|
|
4
|
+
import { cva as m } from "class-variance-authority";
|
|
5
|
+
const [u, r] = f("Dialog"), x = m(
|
|
6
6
|
[
|
|
7
7
|
"flex w-400 max-w-[calc(100%-2rem)] flex-col overflow-hidden rounded-2xl bg-canvas-sheet pb-24",
|
|
8
8
|
"fixed top-[50%] left-[50%] z-dialog-content translate-[-50%]",
|
|
@@ -20,61 +20,60 @@ const [y, r] = f("Dialog"), p = u(
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
|
-
function
|
|
24
|
-
return /* @__PURE__ */ o(
|
|
23
|
+
function D({ height: t = "fit", ...a }) {
|
|
24
|
+
return /* @__PURE__ */ o(u, { value: { height: t }, children: /* @__PURE__ */ o(l.Root, { "data-slot": "dialog", ...a }) });
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
return /* @__PURE__ */ o(
|
|
26
|
+
function C({ ...t }) {
|
|
27
|
+
return /* @__PURE__ */ o(l.Trigger, { "data-slot": "dialog-trigger", ...t });
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function h({
|
|
30
30
|
...t
|
|
31
31
|
}) {
|
|
32
|
-
return /* @__PURE__ */ o(
|
|
32
|
+
return /* @__PURE__ */ o(l.Portal, { "data-slot": "dialog-portal", ...t });
|
|
33
33
|
}
|
|
34
|
-
const
|
|
35
|
-
|
|
34
|
+
const p = ({ ref: t, className: a, ...e }) => /* @__PURE__ */ o(
|
|
35
|
+
l.Overlay,
|
|
36
36
|
{
|
|
37
37
|
ref: t,
|
|
38
38
|
"data-slot": "dialog-overlay",
|
|
39
|
-
className:
|
|
39
|
+
className: i(
|
|
40
40
|
a,
|
|
41
41
|
"fixed inset-0 z-dialog-overlay bg-canvas-overlay backdrop-blur-sm data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in"
|
|
42
42
|
),
|
|
43
43
|
...e
|
|
44
44
|
}
|
|
45
45
|
);
|
|
46
|
-
|
|
47
|
-
function B({
|
|
46
|
+
function N({
|
|
48
47
|
className: t,
|
|
49
48
|
children: a,
|
|
50
49
|
...e
|
|
51
50
|
}) {
|
|
52
|
-
const { height:
|
|
51
|
+
const { height: n } = r({
|
|
53
52
|
consumerName: "DialogContent",
|
|
54
53
|
contextRequired: !0
|
|
55
54
|
});
|
|
56
|
-
return /* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */ o(
|
|
55
|
+
return /* @__PURE__ */ g(h, { "data-slot": "dialog-portal", children: [
|
|
56
|
+
/* @__PURE__ */ o(p, {}),
|
|
58
57
|
/* @__PURE__ */ o(
|
|
59
|
-
|
|
58
|
+
l.Content,
|
|
60
59
|
{
|
|
61
60
|
"data-slot": "dialog-content",
|
|
62
|
-
className:
|
|
61
|
+
className: i(x({ height: n }), t),
|
|
63
62
|
...e,
|
|
64
63
|
children: a
|
|
65
64
|
}
|
|
66
65
|
)
|
|
67
66
|
] });
|
|
68
67
|
}
|
|
69
|
-
const
|
|
68
|
+
const w = ({
|
|
70
69
|
ref: t,
|
|
71
70
|
className: a,
|
|
72
71
|
children: e,
|
|
73
|
-
scrollbarWidth:
|
|
74
|
-
style:
|
|
75
|
-
...
|
|
72
|
+
scrollbarWidth: n = "none",
|
|
73
|
+
style: s,
|
|
74
|
+
...d
|
|
76
75
|
}) => {
|
|
77
|
-
const { height:
|
|
76
|
+
const { height: c } = r({
|
|
78
77
|
consumerName: "DialogBody",
|
|
79
78
|
contextRequired: !0
|
|
80
79
|
});
|
|
@@ -83,56 +82,51 @@ const h = ({
|
|
|
83
82
|
{
|
|
84
83
|
ref: t,
|
|
85
84
|
"data-slot": "dialog-body",
|
|
86
|
-
style:
|
|
87
|
-
className:
|
|
85
|
+
style: s,
|
|
86
|
+
className: i(
|
|
88
87
|
"-mb-24 flex min-h-0 grow flex-col overflow-y-auto px-24 pb-24",
|
|
89
|
-
|
|
88
|
+
c === "fit" ? "basis-auto" : "basis-0",
|
|
90
89
|
a,
|
|
91
|
-
|
|
90
|
+
n === "auto" ? "scrollbar-custom" : "scrollbar-none"
|
|
92
91
|
),
|
|
93
|
-
...
|
|
92
|
+
...d,
|
|
94
93
|
children: e
|
|
95
94
|
}
|
|
96
95
|
);
|
|
97
|
-
}
|
|
98
|
-
h.displayName = "DialogBody";
|
|
99
|
-
const v = ({
|
|
96
|
+
}, k = ({
|
|
100
97
|
ref: t,
|
|
101
98
|
className: a,
|
|
102
99
|
children: e,
|
|
103
|
-
...
|
|
100
|
+
...n
|
|
104
101
|
}) => /* @__PURE__ */ o(
|
|
105
102
|
"div",
|
|
106
103
|
{
|
|
107
104
|
ref: t,
|
|
108
105
|
"data-slot": "dialog-body-sticky-content",
|
|
109
|
-
className:
|
|
110
|
-
...
|
|
106
|
+
className: i("sticky top-0 bg-canvas-sheet py-8", a),
|
|
107
|
+
...n,
|
|
111
108
|
children: e
|
|
112
109
|
}
|
|
113
|
-
)
|
|
114
|
-
v.displayName = "DialogBodyStickyContent";
|
|
115
|
-
const D = ({
|
|
110
|
+
), P = ({
|
|
116
111
|
ref: t,
|
|
117
112
|
className: a,
|
|
118
113
|
children: e,
|
|
119
|
-
...
|
|
114
|
+
...n
|
|
120
115
|
}) => /* @__PURE__ */ o(
|
|
121
116
|
"div",
|
|
122
117
|
{
|
|
123
118
|
ref: t,
|
|
124
119
|
"data-slot": "dialog-footer",
|
|
125
|
-
className:
|
|
126
|
-
...
|
|
120
|
+
className: i("flex shrink-0 justify-end gap-8 px-24 pt-24", a),
|
|
121
|
+
...n,
|
|
127
122
|
children: e
|
|
128
123
|
}
|
|
129
124
|
);
|
|
130
|
-
D.displayName = "DialogFooter";
|
|
131
125
|
export {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
126
|
+
D as Dialog,
|
|
127
|
+
w as DialogBody,
|
|
128
|
+
k as DialogBodyStickyContent,
|
|
129
|
+
N as DialogContent,
|
|
130
|
+
P as DialogFooter,
|
|
131
|
+
C as DialogTrigger
|
|
138
132
|
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { DialogHeaderProps } from '../types';
|
|
2
|
-
export declare const DialogHeader: {
|
|
3
|
-
({ ref, title, description, appearance, ...props }: DialogHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
displayName: string;
|
|
5
|
-
};
|
|
2
|
+
export declare const DialogHeader: ({ ref, title, description, appearance, ...props }: DialogHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
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;
|
|
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,mDAM1B,iBAAiB,4CAqBnB,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as i, Fragment as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { cn as c } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
-
import * as
|
|
4
|
-
import { cva as
|
|
5
|
-
import { useCommonTranslation as
|
|
6
|
-
import { IconButton as
|
|
7
|
-
import { ArrowLeft as
|
|
8
|
-
import { DialogClose as
|
|
9
|
-
import { Close as
|
|
10
|
-
const
|
|
3
|
+
import * as p from "@radix-ui/react-dialog";
|
|
4
|
+
import { cva as u } from "class-variance-authority";
|
|
5
|
+
import { useCommonTranslation as x } from "../../../../i18n/useCommonTranslation.js";
|
|
6
|
+
import { IconButton as f } from "../../IconButton/IconButton.js";
|
|
7
|
+
import { ArrowLeft as N } from "../../../Symbols/Icons/ArrowLeft.js";
|
|
8
|
+
import { DialogClose as b } from "../DialogClose/DialogClose.js";
|
|
9
|
+
import { Close as v } from "../../../Symbols/Icons/Close.js";
|
|
10
|
+
const D = u("flex px-24 text-base", {
|
|
11
11
|
variants: {
|
|
12
12
|
appearance: {
|
|
13
13
|
compact: "mb-12 h-64 min-h-64 flex-row items-center gap-12",
|
|
@@ -15,46 +15,46 @@ const C = N("flex px-24 text-base", {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}), d = ({ onBack: r }) => {
|
|
18
|
-
const { t: a } =
|
|
18
|
+
const { t: a } = x();
|
|
19
19
|
return /* @__PURE__ */ e(
|
|
20
|
-
|
|
20
|
+
f,
|
|
21
21
|
{
|
|
22
22
|
appearance: "no-background",
|
|
23
23
|
size: "sm",
|
|
24
|
-
icon:
|
|
24
|
+
icon: N,
|
|
25
25
|
onClick: r,
|
|
26
26
|
className: "-ml-12 shrink-0",
|
|
27
27
|
"aria-label": a("components.dialogHeader.goBackAriaLabel")
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
|
-
},
|
|
31
|
-
const { t: a } =
|
|
32
|
-
return /* @__PURE__ */ e(
|
|
33
|
-
|
|
30
|
+
}, h = ({ onClose: r }) => {
|
|
31
|
+
const { t: a } = x();
|
|
32
|
+
return /* @__PURE__ */ e(b, { asChild: !0, children: /* @__PURE__ */ e(
|
|
33
|
+
f,
|
|
34
34
|
{
|
|
35
35
|
appearance: "gray",
|
|
36
36
|
size: "xs",
|
|
37
|
-
icon:
|
|
37
|
+
icon: v,
|
|
38
38
|
onClick: r,
|
|
39
39
|
className: "-mr-8 shrink-0",
|
|
40
40
|
"aria-label": a("components.dialogHeader.closeAriaLabel")
|
|
41
41
|
}
|
|
42
42
|
) });
|
|
43
|
-
},
|
|
44
|
-
|
|
43
|
+
}, C = ({ hidden: r, className: a, ...o }) => /* @__PURE__ */ e(
|
|
44
|
+
p.Title,
|
|
45
45
|
{
|
|
46
46
|
"data-slot": "dialog-title",
|
|
47
47
|
className: c(r && "sr-only", a),
|
|
48
48
|
...o
|
|
49
49
|
}
|
|
50
|
-
),
|
|
51
|
-
|
|
50
|
+
), y = ({ hidden: r, className: a, ...o }) => /* @__PURE__ */ e(
|
|
51
|
+
p.Description,
|
|
52
52
|
{
|
|
53
53
|
"data-slot": "dialog-description",
|
|
54
54
|
className: c(r && "sr-only", a),
|
|
55
55
|
...o
|
|
56
56
|
}
|
|
57
|
-
),
|
|
57
|
+
), H = ({
|
|
58
58
|
ref: r,
|
|
59
59
|
className: a,
|
|
60
60
|
appearance: o = "compact",
|
|
@@ -62,13 +62,13 @@ const C = N("flex px-24 text-base", {
|
|
|
62
62
|
description: t,
|
|
63
63
|
onClose: m,
|
|
64
64
|
onBack: n,
|
|
65
|
-
...
|
|
65
|
+
...g
|
|
66
66
|
}) => /* @__PURE__ */ i(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
69
|
ref: r,
|
|
70
|
-
className:
|
|
71
|
-
...
|
|
70
|
+
className: D({ appearance: o, className: a }),
|
|
71
|
+
...g,
|
|
72
72
|
children: [
|
|
73
73
|
o === "compact" && /* @__PURE__ */ i(s, { children: [
|
|
74
74
|
n && /* @__PURE__ */ e(d, { onBack: n }),
|
|
@@ -84,12 +84,12 @@ const C = N("flex px-24 text-base", {
|
|
|
84
84
|
]
|
|
85
85
|
}
|
|
86
86
|
),
|
|
87
|
-
/* @__PURE__ */ e(
|
|
87
|
+
/* @__PURE__ */ e(h, { onClose: m })
|
|
88
88
|
] }),
|
|
89
89
|
o === "expanded" && /* @__PURE__ */ i(s, { children: [
|
|
90
90
|
/* @__PURE__ */ i("div", { className: "flex h-40 flex-row items-center", children: [
|
|
91
91
|
n && /* @__PURE__ */ e(d, { onBack: n }),
|
|
92
|
-
/* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e(
|
|
92
|
+
/* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e(h, { onClose: m }) })
|
|
93
93
|
] }),
|
|
94
94
|
(l || t) && /* @__PURE__ */ i("div", { className: "flex flex-col gap-4", children: [
|
|
95
95
|
l && /* @__PURE__ */ e("div", { className: "heading-3-semi-bold", children: l }),
|
|
@@ -98,9 +98,7 @@ const C = N("flex px-24 text-base", {
|
|
|
98
98
|
] })
|
|
99
99
|
]
|
|
100
100
|
}
|
|
101
|
-
)
|
|
102
|
-
f.displayName = "DialogHeaderComponent";
|
|
103
|
-
const w = ({
|
|
101
|
+
), F = ({
|
|
104
102
|
ref: r,
|
|
105
103
|
title: a = "",
|
|
106
104
|
description: o,
|
|
@@ -108,7 +106,7 @@ const w = ({
|
|
|
108
106
|
...t
|
|
109
107
|
}) => /* @__PURE__ */ i(s, { children: [
|
|
110
108
|
/* @__PURE__ */ e(
|
|
111
|
-
|
|
109
|
+
H,
|
|
112
110
|
{
|
|
113
111
|
ref: r,
|
|
114
112
|
title: a,
|
|
@@ -117,10 +115,9 @@ const w = ({
|
|
|
117
115
|
...t
|
|
118
116
|
}
|
|
119
117
|
),
|
|
120
|
-
/* @__PURE__ */ e(
|
|
121
|
-
o && /* @__PURE__ */ e(
|
|
118
|
+
/* @__PURE__ */ e(C, { hidden: !0, children: a }),
|
|
119
|
+
o && /* @__PURE__ */ e(y, { hidden: !0, children: o })
|
|
122
120
|
] });
|
|
123
|
-
w.displayName = "DialogHeader";
|
|
124
121
|
export {
|
|
125
|
-
|
|
122
|
+
F as DialogHeader
|
|
126
123
|
};
|
|
@@ -19,8 +19,5 @@ import { DividerProps } from './types';
|
|
|
19
19
|
* // With custom styling
|
|
20
20
|
* <Divider className="my-16" />
|
|
21
21
|
*/
|
|
22
|
-
export declare const Divider: {
|
|
23
|
-
({ ref, className, orientation, ...props }: DividerProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
displayName: string;
|
|
25
|
-
};
|
|
22
|
+
export declare const Divider: ({ ref, className, orientation, ...props }: DividerProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
23
|
//# sourceMappingURL=Divider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Divider/Divider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Divider/Divider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,OAAO,GAAI,2CAKrB,YAAY,4CAcd,CAAC"}
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as
|
|
3
|
-
const
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { cn as a } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
const d = ({
|
|
4
4
|
ref: o,
|
|
5
|
-
className:
|
|
5
|
+
className: t,
|
|
6
6
|
orientation: r = "horizontal",
|
|
7
|
-
...
|
|
8
|
-
}) => /* @__PURE__ */
|
|
7
|
+
...e
|
|
8
|
+
}) => /* @__PURE__ */ l(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
ref: o,
|
|
12
12
|
role: "separator",
|
|
13
13
|
"aria-orientation": r,
|
|
14
|
-
className:
|
|
14
|
+
className: a(
|
|
15
15
|
"border-muted-subtle",
|
|
16
16
|
r === "horizontal" ? "w-full border-t" : "h-full border-l",
|
|
17
|
-
|
|
17
|
+
t
|
|
18
18
|
),
|
|
19
|
-
...
|
|
19
|
+
...e
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
|
-
l.displayName = "Divider";
|
|
23
22
|
export {
|
|
24
|
-
|
|
23
|
+
d as Divider
|
|
25
24
|
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { IconProps } from './types';
|
|
2
|
-
export declare const Icon: {
|
|
3
|
-
({ ref, size, className, children, viewBox, xmlns, ...props }: IconProps): import('react').ReactSVGElement;
|
|
4
|
-
displayName: string;
|
|
5
|
-
};
|
|
2
|
+
export declare const Icon: ({ ref, size, className, children, viewBox, xmlns, ...props }: IconProps) => import('react').ReactSVGElement;
|
|
6
3
|
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Icon/Icon.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAoBpC,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Icon/Icon.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAoBpC,eAAO,MAAM,IAAI,GAAI,8DAQlB,SAAS,oCAcX,CAAC"}
|
|
@@ -17,13 +17,13 @@ const h = a("inline-block shrink-0", {
|
|
|
17
17
|
defaultVariants: {
|
|
18
18
|
size: 24
|
|
19
19
|
}
|
|
20
|
-
}),
|
|
20
|
+
}), f = ({
|
|
21
21
|
ref: o,
|
|
22
22
|
size: n = 24,
|
|
23
23
|
className: i = "",
|
|
24
24
|
children: c,
|
|
25
|
-
viewBox:
|
|
26
|
-
xmlns:
|
|
25
|
+
viewBox: r,
|
|
26
|
+
xmlns: e,
|
|
27
27
|
...t
|
|
28
28
|
}) => k(
|
|
29
29
|
"svg",
|
|
@@ -31,14 +31,13 @@ const h = a("inline-block shrink-0", {
|
|
|
31
31
|
ref: o,
|
|
32
32
|
fill: "none",
|
|
33
33
|
"aria-hidden": "true",
|
|
34
|
-
xmlns:
|
|
35
|
-
viewBox:
|
|
34
|
+
xmlns: e,
|
|
35
|
+
viewBox: r,
|
|
36
36
|
className: s(i, h({ size: n }), "inline-block"),
|
|
37
37
|
...t
|
|
38
38
|
},
|
|
39
39
|
c
|
|
40
40
|
);
|
|
41
|
-
l.displayName = "Icon";
|
|
42
41
|
export {
|
|
43
|
-
|
|
42
|
+
f as Icon
|
|
44
43
|
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { IconButtonProps } from './types';
|
|
2
|
-
export declare const IconButton: {
|
|
3
|
-
({ ref, className, icon, tooltip, tooltipPlacement, tooltipText, onTooltipOpenChange, "aria-label": ariaLabel, ...props }: IconButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
displayName: string;
|
|
5
|
-
};
|
|
2
|
+
export declare const IconButton: ({ ref, className, icon, tooltip, tooltipPlacement, tooltipText, onTooltipOpenChange, "aria-label": ariaLabel, ...props }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
3
|
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,UAAU,GAAI,0HAUxB,eAAe,4CAuBjB,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { jsxs as m, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { Tooltip as u, TooltipTrigger as d, TooltipContent as f } from "../Tooltip/Tooltip.js";
|
|
3
3
|
import { BaseButton as h } from "../Button/BaseButton.js";
|
|
4
4
|
const B = ({
|
|
5
|
-
ref:
|
|
5
|
+
ref: n,
|
|
6
6
|
className: e,
|
|
7
7
|
icon: i,
|
|
8
8
|
tooltip: l = !1,
|
|
@@ -12,10 +12,10 @@ const B = ({
|
|
|
12
12
|
"aria-label": t,
|
|
13
13
|
...c
|
|
14
14
|
}) => {
|
|
15
|
-
const
|
|
15
|
+
const r = /* @__PURE__ */ o(
|
|
16
16
|
h,
|
|
17
17
|
{
|
|
18
|
-
ref:
|
|
18
|
+
ref: n,
|
|
19
19
|
icon: i,
|
|
20
20
|
className: e,
|
|
21
21
|
"aria-label": t,
|
|
@@ -23,11 +23,10 @@ const B = ({
|
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
25
|
return l ? /* @__PURE__ */ m(u, { onOpenChange: a, children: [
|
|
26
|
-
/* @__PURE__ */ o(d, { asChild: !0, children:
|
|
26
|
+
/* @__PURE__ */ o(d, { asChild: !0, children: r }),
|
|
27
27
|
/* @__PURE__ */ o(f, { side: p, children: s || t })
|
|
28
|
-
] }) :
|
|
28
|
+
] }) : r;
|
|
29
29
|
};
|
|
30
|
-
B.displayName = "IconButton";
|
|
31
30
|
export {
|
|
32
31
|
B as IconButton
|
|
33
32
|
};
|
|
@@ -11,7 +11,6 @@ import { InteractiveIconProps } from './types';
|
|
|
11
11
|
* @component
|
|
12
12
|
*
|
|
13
13
|
* @warning Always provide an `aria-label` prop to ensure screen reader accessibility, as the component contains only an icon without visible text.
|
|
14
|
-
* @warning The icon size should be controlled by the icon component itself, not through CSS. Use the appropriate size prop on the icon component (e.g., `size={20}`).
|
|
15
14
|
* @warning The `className` prop should only be used for layout adjustments like margins or positioning. Do not use it to modify the component's core appearance (colors, padding, etc).
|
|
16
15
|
*
|
|
17
16
|
* @example
|
|
@@ -19,17 +18,10 @@ import { InteractiveIconProps } from './types';
|
|
|
19
18
|
* import { DeleteCircleFill, Settings } from '@ledgerhq/lumen-ui-react/symbols';
|
|
20
19
|
*
|
|
21
20
|
* // Filled interactive icon for destructive actions
|
|
22
|
-
* <InteractiveIcon iconType="filled" aria-label="Delete item" onClick={handleDelete}
|
|
23
|
-
* <DeleteCircleFill size={20} />
|
|
24
|
-
* </InteractiveIcon>
|
|
21
|
+
* <InteractiveIcon iconType="filled" icon={DeleteCircleFill} size={20} aria-label="Delete item" onClick={handleDelete} />
|
|
25
22
|
*
|
|
26
23
|
* // Stroked interactive icon for secondary actions
|
|
27
|
-
* <InteractiveIcon iconType="stroked" aria-label="Open settings" onClick={handleSettings}
|
|
28
|
-
* <Settings size={20} />
|
|
29
|
-
* </InteractiveIcon>
|
|
24
|
+
* <InteractiveIcon iconType="stroked" icon={Settings} size={20} aria-label="Open settings" onClick={handleSettings} />
|
|
30
25
|
*/
|
|
31
|
-
export declare const InteractiveIcon: {
|
|
32
|
-
({ ref, className, iconType, appearance, disabled: disabledProp, ...props }: InteractiveIconProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
displayName: string;
|
|
34
|
-
};
|
|
26
|
+
export declare const InteractiveIcon: ({ ref, className, iconType, icon: Icon, size, appearance, disabled: disabledProp, ...props }: InteractiveIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
35
27
|
//# sourceMappingURL=InteractiveIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InteractiveIcon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/InteractiveIcon/InteractiveIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AA6B/C
|
|
1
|
+
{"version":3,"file":"InteractiveIcon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/InteractiveIcon/InteractiveIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AA6B/C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,eAAe,GAAI,8FAS7B,oBAAoB,4CAmBtB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useDisabledContext as
|
|
3
|
-
import { cva as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useDisabledContext as l, cn as b } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as u } from "class-variance-authority";
|
|
4
|
+
const v = u(
|
|
5
5
|
[
|
|
6
6
|
"inline-flex size-fit items-center justify-center rounded-full",
|
|
7
7
|
"transition-colors",
|
|
@@ -25,32 +25,34 @@ const b = l(
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
),
|
|
29
|
-
ref:
|
|
30
|
-
className:
|
|
31
|
-
iconType:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
), h = ({
|
|
29
|
+
ref: s,
|
|
30
|
+
className: i,
|
|
31
|
+
iconType: r,
|
|
32
|
+
icon: a,
|
|
33
|
+
size: o = 24,
|
|
34
|
+
appearance: n = "muted",
|
|
35
|
+
disabled: d = !1,
|
|
36
|
+
...c
|
|
35
37
|
}) => {
|
|
36
|
-
const e =
|
|
38
|
+
const e = l({
|
|
37
39
|
consumerName: "InteractiveIcon",
|
|
38
|
-
mergeWith: { disabled:
|
|
40
|
+
mergeWith: { disabled: d }
|
|
39
41
|
});
|
|
40
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ t(
|
|
41
43
|
"button",
|
|
42
44
|
{
|
|
43
|
-
...
|
|
44
|
-
ref:
|
|
45
|
+
...c,
|
|
46
|
+
ref: s,
|
|
45
47
|
disabled: e,
|
|
46
|
-
className:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
)
|
|
48
|
+
className: b(
|
|
49
|
+
i,
|
|
50
|
+
v({ disabled: e, iconType: r, appearance: n })
|
|
51
|
+
),
|
|
52
|
+
children: /* @__PURE__ */ t(a, { size: o })
|
|
50
53
|
}
|
|
51
54
|
);
|
|
52
55
|
};
|
|
53
|
-
u.displayName = "InteractiveIcon";
|
|
54
56
|
export {
|
|
55
|
-
|
|
57
|
+
h as InteractiveIcon
|
|
56
58
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithRef,
|
|
1
|
+
import { ComponentPropsWithRef, ComponentType } from 'react';
|
|
2
|
+
import { IconProps, IconSize } from '../Icon';
|
|
2
3
|
export type InteractiveIconProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Whether the icon is disabled.
|
|
@@ -11,17 +12,21 @@ export type InteractiveIconProps = {
|
|
|
11
12
|
*/
|
|
12
13
|
iconType: 'filled' | 'stroked';
|
|
13
14
|
/**
|
|
14
|
-
* The
|
|
15
|
-
* - 'muted':
|
|
16
|
-
* - 'white':
|
|
17
|
-
* - 'base':
|
|
15
|
+
* The color appearance of the icon.
|
|
16
|
+
* - 'muted': Subdued color for secondary actions.
|
|
17
|
+
* - 'white': White color for use on dark backgrounds.
|
|
18
|
+
* - 'base': Default high-contrast color.
|
|
18
19
|
* @default 'muted'
|
|
19
20
|
*/
|
|
20
21
|
appearance?: 'muted' | 'white' | 'base';
|
|
21
22
|
/**
|
|
22
|
-
* The icon component to
|
|
23
|
-
|
|
23
|
+
* The icon component to render.
|
|
24
|
+
*/
|
|
25
|
+
icon: ComponentType<Omit<IconProps, 'children'>>;
|
|
26
|
+
/**
|
|
27
|
+
* The size of the icon in pixels.
|
|
28
|
+
* @default 24
|
|
24
29
|
*/
|
|
25
|
-
|
|
26
|
-
} & Omit<ComponentPropsWithRef<'button'>, 'disabled'>;
|
|
30
|
+
size?: IconSize;
|
|
31
|
+
} & Omit<ComponentPropsWithRef<'button'>, 'disabled' | 'children'>;
|
|
27
32
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/InteractiveIcon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/InteractiveIcon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC/B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;IACxC;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;IACjD;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB,GAAG,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC"}
|
|
@@ -38,8 +38,5 @@ import { LinkProps } from './types';
|
|
|
38
38
|
* // Note: When using asChild, the child element is responsible for its own content.
|
|
39
39
|
* // Icons and other Link props like 'icon' are ignored when asChild is true - handle these in the child if needed.
|
|
40
40
|
*/
|
|
41
|
-
export declare const Link: {
|
|
42
|
-
({ ref, className, children, appearance, size, underline, icon, isExternal, asChild, disabled: disabledProp, ...props }: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
-
displayName: string;
|
|
44
|
-
};
|
|
41
|
+
export declare const Link: ({ ref, className, children, appearance, size, underline, icon, isExternal, asChild, disabled: disabledProp, ...props }: LinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
42
|
//# sourceMappingURL=Link.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Link/Link.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAmCpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Link/Link.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAmCpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,IAAI,GAAI,wHAYlB,SAAS,4CAgDX,CAAC"}
|