@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,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { cva as
|
|
1
|
+
import { jsxs as d, jsx as e, Fragment as h } from "react/jsx-runtime";
|
|
2
|
+
import { cn as m, getButtonA11yProps as y } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as o } from "class-variance-authority";
|
|
4
4
|
import { useState as x, useEffect as N } from "react";
|
|
5
5
|
import { Close as w } from "../../Symbols/Icons/Close.js";
|
|
6
6
|
import { useCommonTranslation as z } from "../../../i18n/useCommonTranslation.js";
|
|
7
|
-
import { InteractiveIcon as
|
|
8
|
-
const
|
|
9
|
-
root:
|
|
7
|
+
import { InteractiveIcon as j } from "../InteractiveIcon/InteractiveIcon.js";
|
|
8
|
+
const r = {
|
|
9
|
+
root: o(
|
|
10
10
|
[
|
|
11
11
|
"group relative overflow-hidden rounded-md",
|
|
12
12
|
"flex h-[164px] w-full flex-col items-start justify-end p-12",
|
|
@@ -23,16 +23,16 @@ const o = {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
),
|
|
26
|
-
image:
|
|
27
|
-
overlay:
|
|
26
|
+
image: o(["absolute inset-0", "size-full object-cover"]),
|
|
27
|
+
overlay: o([
|
|
28
28
|
"absolute inset-0 size-full",
|
|
29
29
|
"transition-colors",
|
|
30
30
|
"group-hover:bg-muted-transparent-hover",
|
|
31
31
|
"group-[:active:not(:has(button:active))]:bg-muted-transparent-pressed"
|
|
32
32
|
]),
|
|
33
|
-
content:
|
|
34
|
-
title:
|
|
35
|
-
},
|
|
33
|
+
content: o("isolate flex flex-col items-start gap-8"),
|
|
34
|
+
title: o("line-clamp-3 heading-3-semi-bold text-white")
|
|
35
|
+
}, C = () => /* @__PURE__ */ d(h, { children: [
|
|
36
36
|
/* @__PURE__ */ e(
|
|
37
37
|
"div",
|
|
38
38
|
{
|
|
@@ -47,65 +47,65 @@ const o = {
|
|
|
47
47
|
className: "pointer-events-none absolute inset-y-0 right-0 size-full bg-linear-[45deg] from-gradient-overlay-0 from-70% to-gradient-overlay-80"
|
|
48
48
|
}
|
|
49
49
|
)
|
|
50
|
-
] }),
|
|
50
|
+
] }), k = ({
|
|
51
51
|
ref: i,
|
|
52
52
|
className: t,
|
|
53
53
|
children: s,
|
|
54
|
-
...
|
|
54
|
+
...a
|
|
55
55
|
}) => /* @__PURE__ */ e(
|
|
56
56
|
"div",
|
|
57
57
|
{
|
|
58
58
|
ref: i,
|
|
59
|
-
className:
|
|
60
|
-
...
|
|
59
|
+
className: m(r.title(), t),
|
|
60
|
+
...a,
|
|
61
61
|
children: s
|
|
62
62
|
}
|
|
63
|
-
)
|
|
64
|
-
E.displayName = "MediaCardTitle";
|
|
65
|
-
const I = ({
|
|
63
|
+
), B = ({
|
|
66
64
|
ref: i,
|
|
67
65
|
imageUrl: t,
|
|
68
66
|
children: s,
|
|
69
|
-
onClick:
|
|
67
|
+
onClick: a,
|
|
70
68
|
onClose: l,
|
|
71
69
|
closeAriaLabel: u,
|
|
72
|
-
className:
|
|
73
|
-
...
|
|
70
|
+
className: f,
|
|
71
|
+
...p
|
|
74
72
|
}) => {
|
|
75
|
-
const { t: v } = z(), [g,
|
|
73
|
+
const { t: v } = z(), [g, c] = x(!1), b = t && !g;
|
|
76
74
|
return N(() => {
|
|
77
|
-
|
|
78
|
-
}, [t]), /* @__PURE__ */
|
|
75
|
+
c(!1);
|
|
76
|
+
}, [t]), /* @__PURE__ */ d(
|
|
79
77
|
"div",
|
|
80
78
|
{
|
|
81
|
-
...y({ onClick:
|
|
82
|
-
className:
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
...y({ onClick: a }),
|
|
80
|
+
className: m(
|
|
81
|
+
r.root({ interactive: !!a }),
|
|
82
|
+
f
|
|
85
83
|
),
|
|
86
84
|
ref: i,
|
|
87
|
-
...
|
|
85
|
+
...p,
|
|
88
86
|
children: [
|
|
89
87
|
b && /* @__PURE__ */ e(
|
|
90
88
|
"img",
|
|
91
89
|
{
|
|
92
90
|
src: t,
|
|
93
91
|
alt: "",
|
|
94
|
-
className:
|
|
92
|
+
className: r.image(),
|
|
95
93
|
"aria-hidden": "true",
|
|
96
94
|
loading: "lazy",
|
|
97
|
-
onError: () =>
|
|
95
|
+
onError: () => c(!0)
|
|
98
96
|
}
|
|
99
97
|
),
|
|
100
|
-
/* @__PURE__ */ e(
|
|
101
|
-
/* @__PURE__ */ e("div", { "aria-hidden": "true", className:
|
|
102
|
-
/* @__PURE__ */ e("div", { className:
|
|
98
|
+
/* @__PURE__ */ e(C, {}),
|
|
99
|
+
/* @__PURE__ */ e("div", { "aria-hidden": "true", className: r.overlay() }),
|
|
100
|
+
/* @__PURE__ */ e("div", { className: r.content(), children: s }),
|
|
103
101
|
l && /* @__PURE__ */ e(
|
|
104
|
-
|
|
102
|
+
j,
|
|
105
103
|
{
|
|
106
104
|
type: "button",
|
|
107
105
|
iconType: "stroked",
|
|
108
106
|
appearance: "white",
|
|
107
|
+
icon: w,
|
|
108
|
+
size: 20,
|
|
109
109
|
"aria-label": u || v("common.closeAriaLabel"),
|
|
110
110
|
className: "absolute top-12 right-12 z-10",
|
|
111
111
|
onClick: (n) => {
|
|
@@ -113,16 +113,14 @@ const I = ({
|
|
|
113
113
|
},
|
|
114
114
|
onKeyDown: (n) => {
|
|
115
115
|
n.stopPropagation();
|
|
116
|
-
}
|
|
117
|
-
children: /* @__PURE__ */ e(w, { size: 20 })
|
|
116
|
+
}
|
|
118
117
|
}
|
|
119
118
|
)
|
|
120
119
|
]
|
|
121
120
|
}
|
|
122
121
|
);
|
|
123
122
|
};
|
|
124
|
-
I.displayName = "MediaCard";
|
|
125
123
|
export {
|
|
126
|
-
|
|
127
|
-
|
|
124
|
+
B as MediaCard,
|
|
125
|
+
k as MediaCardTitle
|
|
128
126
|
};
|
|
@@ -12,8 +12,5 @@ export declare const mediaImageDotSizeMap: Record<MediaImageSize, number>;
|
|
|
12
12
|
*
|
|
13
13
|
* <MediaImage src="https://example.com/icon.png" alt="Bitcoin" size={32} />
|
|
14
14
|
*/
|
|
15
|
-
export declare const MediaImage: {
|
|
16
|
-
({ ref, className, src, alt, size, shape, imgLoading, ...props }: MediaImageProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
displayName: string;
|
|
18
|
-
};
|
|
15
|
+
export declare const MediaImage: ({ ref, className, src, alt, size, shape, imgLoading, ...props }: MediaImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
16
|
//# sourceMappingURL=MediaImage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaImage.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/MediaImage.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA0B1D,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAStD,CAAC;AAEX;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"MediaImage.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/MediaImage.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA0B1D,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAStD,CAAC;AAEX;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,GAAI,iEASxB,eAAe,4CA8BjB,CAAC"}
|
|
@@ -24,7 +24,7 @@ const p = {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
)
|
|
27
|
-
},
|
|
27
|
+
}, j = {
|
|
28
28
|
12: 8,
|
|
29
29
|
16: 8,
|
|
30
30
|
20: 8,
|
|
@@ -33,34 +33,34 @@ const p = {
|
|
|
33
33
|
40: 16,
|
|
34
34
|
48: 20,
|
|
35
35
|
56: 24
|
|
36
|
-
},
|
|
37
|
-
ref:
|
|
38
|
-
className:
|
|
36
|
+
}, E = ({
|
|
37
|
+
ref: a,
|
|
38
|
+
className: o,
|
|
39
39
|
src: e,
|
|
40
|
-
alt:
|
|
40
|
+
alt: i,
|
|
41
41
|
size: t = 48,
|
|
42
42
|
shape: d = "square",
|
|
43
43
|
imgLoading: n = "eager",
|
|
44
|
-
...
|
|
44
|
+
...l
|
|
45
45
|
}) => {
|
|
46
|
-
const [
|
|
46
|
+
const [m, s] = z(!1), u = !e || m;
|
|
47
47
|
return g(() => {
|
|
48
|
-
|
|
48
|
+
s(!1);
|
|
49
49
|
}, [e]), /* @__PURE__ */ r(
|
|
50
50
|
"div",
|
|
51
51
|
{
|
|
52
|
-
ref:
|
|
53
|
-
className: c(p.root({ size: t, shape: d }),
|
|
52
|
+
ref: a,
|
|
53
|
+
className: c(p.root({ size: t, shape: d }), o),
|
|
54
54
|
role: "img",
|
|
55
|
-
"aria-label":
|
|
56
|
-
...
|
|
55
|
+
"aria-label": i,
|
|
56
|
+
...l,
|
|
57
57
|
children: u ? /* @__PURE__ */ r("span", { className: "text-muted select-none", "aria-hidden": "true" }) : /* @__PURE__ */ r(
|
|
58
58
|
"img",
|
|
59
59
|
{
|
|
60
60
|
src: e,
|
|
61
61
|
alt: "",
|
|
62
62
|
loading: n,
|
|
63
|
-
onError: () =>
|
|
63
|
+
onError: () => s(!0),
|
|
64
64
|
className: "size-full object-cover",
|
|
65
65
|
"aria-hidden": "true"
|
|
66
66
|
}
|
|
@@ -68,8 +68,7 @@ const p = {
|
|
|
68
68
|
}
|
|
69
69
|
);
|
|
70
70
|
};
|
|
71
|
-
h.displayName = "MediaImage";
|
|
72
71
|
export {
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
E as MediaImage,
|
|
73
|
+
j as mediaImageDotSizeMap
|
|
75
74
|
};
|
|
@@ -2,47 +2,20 @@ import { ComponentProps, ComponentRef, Ref } from 'react';
|
|
|
2
2
|
import { MenuProps, MenuTriggerProps, MenuContentProps, MenuItemProps, MenuCheckboxItemProps, MenuRadioItemProps, MenuLabelProps, MenuSeparatorProps, MenuSubTriggerProps, MenuSubContentProps, MenuGroupProps, MenuRadioGroupProps } from './types';
|
|
3
3
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
4
4
|
declare function Menu({ ...props }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare const MenuTrigger: {
|
|
6
|
-
({ ref, ...props }: MenuTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
displayName: string | undefined;
|
|
8
|
-
};
|
|
5
|
+
declare const MenuTrigger: ({ ref, ...props }: MenuTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
6
|
declare function MenuGroup({ ...props }: MenuGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
10
7
|
declare function MenuPortal({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
11
8
|
declare function MenuSub({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
|
|
12
9
|
declare function MenuRadioGroup({ ...props }: MenuRadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
declare const MenuSubTrigger: {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
17
|
-
declare const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
displayName: string | undefined;
|
|
24
|
-
};
|
|
25
|
-
declare const MenuItem: {
|
|
26
|
-
({ ref, className, inset, disabled: disabledProp, ...props }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
displayName: string | undefined;
|
|
28
|
-
};
|
|
29
|
-
declare const MenuCheckboxItem: {
|
|
30
|
-
({ ref, className, children, checked, disabled: disabledProp, ...props }: MenuCheckboxItemProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
displayName: string | undefined;
|
|
32
|
-
};
|
|
33
|
-
declare const MenuRadioItem: {
|
|
34
|
-
({ ref, className, children, disabled: disabledProp, ...props }: MenuRadioItemProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
displayName: string | undefined;
|
|
36
|
-
};
|
|
37
|
-
declare const MenuLabel: {
|
|
38
|
-
({ ref, className, inset, ...props }: MenuLabelProps & {
|
|
39
|
-
ref?: Ref<ComponentRef<typeof DropdownMenuPrimitive.Label>>;
|
|
40
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
displayName: string | undefined;
|
|
42
|
-
};
|
|
43
|
-
declare const MenuSeparator: {
|
|
44
|
-
({ ref, className, ...props }: MenuSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
-
displayName: string;
|
|
46
|
-
};
|
|
10
|
+
declare const MenuSubTrigger: ({ ref, className, inset, children, ...props }: MenuSubTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare const MenuSubContent: ({ ref, className, ...props }: MenuSubContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare const MenuContent: ({ ref, className, sideOffset, align, ...props }: MenuContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const MenuItem: ({ ref, className, inset, disabled: disabledProp, ...props }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare const MenuCheckboxItem: ({ ref, className, children, checked, disabled: disabledProp, ...props }: MenuCheckboxItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare const MenuRadioItem: ({ ref, className, children, disabled: disabledProp, ...props }: MenuRadioItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare const MenuLabel: ({ ref, className, inset, ...props }: MenuLabelProps & {
|
|
17
|
+
ref?: Ref<ComponentRef<typeof DropdownMenuPrimitive.Label>>;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare const MenuSeparator: ({ ref, className, ...props }: MenuSeparatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
47
20
|
export { Menu, MenuTrigger, MenuContent, MenuItem, MenuCheckboxItem, MenuRadioItem, MenuLabel, MenuSeparator, MenuGroup, MenuPortal, MenuSub, MenuSubContent, MenuSubTrigger, MenuRadioGroup, };
|
|
48
21
|
//# sourceMappingURL=Menu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Menu/Menu.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAG1D,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACpB,MAAM,SAAS,CAAC;AA0BjB,iBAAS,IAAI,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAEpC;AAED,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Menu/Menu.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAG1D,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACpB,MAAM,SAAS,CAAC;AA0BjB,iBAAS,IAAI,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAEpC;AAED,QAAA,MAAM,WAAW,GAAI,mBAAmB,gBAAgB,4CAMvD,CAAC;AAEF,iBAAS,SAAS,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,2CAE9C;AAED,iBAAS,UAAU,CAAC,EAClB,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,qBAAqB,CAAC,MAAM,CAAC,2CAErD;AAED,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,qBAAqB,CAAC,GAAG,CAAC,2CAElD;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,2CAIxD;AAED,QAAA,MAAM,cAAc,GAAI,+CAMrB,mBAAmB,4CAUrB,CAAC;AAEF,QAAA,MAAM,cAAc,GAAI,8BAA8B,mBAAmB,4CAOxE,CAAC;AAEF,QAAA,MAAM,WAAW,GAAI,iDAMlB,gBAAgB,4CAkBlB,CAAC;AAEF,QAAA,MAAM,QAAQ,GAAI,6DAMf,aAAa,4CAiBf,CAAC;AAEF,QAAA,MAAM,gBAAgB,GAAI,yEAOvB,qBAAqB,4CAyBvB,CAAC;AAEF,QAAA,MAAM,aAAa,GAAI,gEAMpB,kBAAkB,4CAwBpB,CAAC;AAEF,QAAA,MAAM,SAAS,GAAI,qCAKhB,cAAc,GAAG;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC;CAC7D,4CAOA,CAAC;AAEF,QAAA,MAAM,aAAa,GAAI,8BAA8B,kBAAkB,4CAEtE,CAAC;AAEF,OAAO,EACL,IAAI,EACJ,WAAW,EACX,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,aAAa,EACb,SAAS,EACT,UAAU,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACd,cAAc,GACf,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as o, useDisabledContext as c, DisabledProvider as
|
|
3
|
-
import * as
|
|
4
|
-
import { Check as
|
|
1
|
+
import { jsx as t, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { cn as o, useDisabledContext as c, DisabledProvider as b } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import * as n from "@radix-ui/react-dropdown-menu";
|
|
4
|
+
import { Check as p } from "../../Symbols/Icons/Check.js";
|
|
5
5
|
import { Divider as g } from "../Divider/Divider.js";
|
|
6
|
-
import { ChevronRight as
|
|
7
|
-
const
|
|
6
|
+
import { ChevronRight as f } from "../../Symbols/Icons/ChevronRight.js";
|
|
7
|
+
const h = o(
|
|
8
8
|
"z-menu min-w-160 overflow-hidden rounded-sm bg-muted p-8",
|
|
9
9
|
"shadow-sm",
|
|
10
10
|
"data-[state=open]:animate-fade-in",
|
|
@@ -17,198 +17,182 @@ const N = o(
|
|
|
17
17
|
"focus:bg-base-transparent-hover",
|
|
18
18
|
"active:bg-base-transparent-pressed",
|
|
19
19
|
"data-disabled:pointer-events-none data-disabled:text-disabled"
|
|
20
|
-
),
|
|
20
|
+
), x = o("px-8 py-4 body-3-semi-bold text-muted"), M = o(
|
|
21
21
|
l,
|
|
22
22
|
"data-[state=open]:bg-base-transparent-hover"
|
|
23
23
|
);
|
|
24
|
-
function
|
|
25
|
-
return /* @__PURE__ */
|
|
24
|
+
function y({ ...e }) {
|
|
25
|
+
return /* @__PURE__ */ t(n.Root, { "data-slot": "menu", ...e });
|
|
26
26
|
}
|
|
27
|
-
const
|
|
28
|
-
|
|
27
|
+
const k = ({ ref: e, ...a }) => /* @__PURE__ */ t(
|
|
28
|
+
n.Trigger,
|
|
29
29
|
{
|
|
30
30
|
ref: e,
|
|
31
31
|
"data-slot": "menu-trigger",
|
|
32
|
-
...
|
|
32
|
+
...a
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return /* @__PURE__ */ a(t.Group, { "data-slot": "menu-group", ...e });
|
|
35
|
+
function R({ ...e }) {
|
|
36
|
+
return /* @__PURE__ */ t(n.Group, { "data-slot": "menu-group", ...e });
|
|
38
37
|
}
|
|
39
|
-
function
|
|
38
|
+
function z({
|
|
40
39
|
...e
|
|
41
40
|
}) {
|
|
42
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ t(n.Portal, { ...e });
|
|
43
42
|
}
|
|
44
|
-
function
|
|
43
|
+
function P({
|
|
45
44
|
...e
|
|
46
45
|
}) {
|
|
47
|
-
return /* @__PURE__ */
|
|
46
|
+
return /* @__PURE__ */ t(n.Sub, { ...e });
|
|
48
47
|
}
|
|
49
|
-
function
|
|
50
|
-
return /* @__PURE__ */
|
|
48
|
+
function w({ ...e }) {
|
|
49
|
+
return /* @__PURE__ */ t(n.RadioGroup, { "data-slot": "menu-radio-group", ...e });
|
|
51
50
|
}
|
|
52
|
-
const
|
|
51
|
+
const T = ({
|
|
53
52
|
ref: e,
|
|
54
|
-
className:
|
|
55
|
-
inset:
|
|
56
|
-
children:
|
|
53
|
+
className: a,
|
|
54
|
+
inset: s,
|
|
55
|
+
children: r,
|
|
57
56
|
...d
|
|
58
57
|
}) => /* @__PURE__ */ u(
|
|
59
|
-
|
|
58
|
+
n.SubTrigger,
|
|
60
59
|
{
|
|
61
60
|
ref: e,
|
|
62
61
|
"data-slot": "menu-sub-trigger",
|
|
63
|
-
className: o(
|
|
62
|
+
className: o(M, s && "pl-32", a),
|
|
64
63
|
...d,
|
|
65
64
|
children: [
|
|
66
|
-
|
|
67
|
-
/* @__PURE__ */
|
|
65
|
+
r,
|
|
66
|
+
/* @__PURE__ */ t(f, { size: 20, className: "ml-auto text-muted" })
|
|
68
67
|
]
|
|
69
68
|
}
|
|
70
|
-
)
|
|
71
|
-
|
|
72
|
-
const I = ({ ref: e, className: s, ...n }) => /* @__PURE__ */ a(
|
|
73
|
-
t.SubContent,
|
|
69
|
+
), j = ({ ref: e, className: a, ...s }) => /* @__PURE__ */ t(
|
|
70
|
+
n.SubContent,
|
|
74
71
|
{
|
|
75
72
|
ref: e,
|
|
76
73
|
"data-slot": "menu-sub-content",
|
|
77
|
-
className: o(
|
|
78
|
-
...
|
|
74
|
+
className: o(h, a),
|
|
75
|
+
...s
|
|
79
76
|
}
|
|
80
|
-
)
|
|
81
|
-
I.displayName = t.SubContent.displayName;
|
|
82
|
-
const v = ({
|
|
77
|
+
), D = ({
|
|
83
78
|
ref: e,
|
|
84
|
-
className:
|
|
85
|
-
sideOffset:
|
|
86
|
-
align:
|
|
79
|
+
className: a,
|
|
80
|
+
sideOffset: s = 4,
|
|
81
|
+
align: r = "start",
|
|
87
82
|
...d
|
|
88
|
-
}) => /* @__PURE__ */
|
|
89
|
-
|
|
83
|
+
}) => /* @__PURE__ */ t(n.Portal, { children: /* @__PURE__ */ t(
|
|
84
|
+
n.Content,
|
|
90
85
|
{
|
|
91
86
|
ref: e,
|
|
92
87
|
"data-slot": "menu-content",
|
|
93
|
-
sideOffset:
|
|
94
|
-
className: o(
|
|
95
|
-
onClick: (
|
|
96
|
-
|
|
88
|
+
sideOffset: s,
|
|
89
|
+
className: o(h, a),
|
|
90
|
+
onClick: (i) => {
|
|
91
|
+
i.stopPropagation(), d.onClick?.(i);
|
|
97
92
|
},
|
|
98
|
-
align:
|
|
93
|
+
align: r,
|
|
99
94
|
...d
|
|
100
95
|
}
|
|
101
|
-
) })
|
|
102
|
-
v.displayName = t.Content.displayName;
|
|
103
|
-
const C = ({
|
|
96
|
+
) }), G = ({
|
|
104
97
|
ref: e,
|
|
105
|
-
className:
|
|
106
|
-
inset:
|
|
107
|
-
disabled:
|
|
98
|
+
className: a,
|
|
99
|
+
inset: s,
|
|
100
|
+
disabled: r,
|
|
108
101
|
...d
|
|
109
102
|
}) => {
|
|
110
|
-
const
|
|
103
|
+
const i = c({
|
|
111
104
|
consumerName: "MenuItem",
|
|
112
|
-
mergeWith: { disabled:
|
|
105
|
+
mergeWith: { disabled: r }
|
|
113
106
|
});
|
|
114
|
-
return /* @__PURE__ */
|
|
115
|
-
|
|
107
|
+
return /* @__PURE__ */ t(b, { value: { disabled: i }, children: /* @__PURE__ */ t(
|
|
108
|
+
n.Item,
|
|
116
109
|
{
|
|
117
110
|
ref: e,
|
|
118
111
|
"data-slot": "menu-item",
|
|
119
|
-
className: o(l,
|
|
120
|
-
disabled:
|
|
112
|
+
className: o(l, s && "pl-32", a),
|
|
113
|
+
disabled: i,
|
|
121
114
|
...d
|
|
122
115
|
}
|
|
123
116
|
) });
|
|
124
|
-
}
|
|
125
|
-
C.displayName = t.Item.displayName;
|
|
126
|
-
const S = ({
|
|
117
|
+
}, W = ({
|
|
127
118
|
ref: e,
|
|
128
|
-
className:
|
|
129
|
-
children:
|
|
130
|
-
checked:
|
|
119
|
+
className: a,
|
|
120
|
+
children: s,
|
|
121
|
+
checked: r,
|
|
131
122
|
disabled: d,
|
|
132
|
-
...
|
|
123
|
+
...i
|
|
133
124
|
}) => {
|
|
134
125
|
const m = c({
|
|
135
126
|
consumerName: "MenuCheckboxItem",
|
|
136
127
|
mergeWith: { disabled: d }
|
|
137
128
|
});
|
|
138
|
-
return /* @__PURE__ */
|
|
139
|
-
|
|
129
|
+
return /* @__PURE__ */ t(b, { value: { disabled: m }, children: /* @__PURE__ */ u(
|
|
130
|
+
n.CheckboxItem,
|
|
140
131
|
{
|
|
141
132
|
ref: e,
|
|
142
133
|
"data-slot": "menu-checkbox-item",
|
|
143
|
-
className: o(l,
|
|
144
|
-
checked:
|
|
134
|
+
className: o(l, a),
|
|
135
|
+
checked: r,
|
|
145
136
|
disabled: m,
|
|
146
|
-
...
|
|
137
|
+
...i,
|
|
147
138
|
children: [
|
|
148
|
-
|
|
149
|
-
/* @__PURE__ */
|
|
139
|
+
s,
|
|
140
|
+
/* @__PURE__ */ t("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(p, { disabled: m, size: 24, className: "text-active" }) }) })
|
|
150
141
|
]
|
|
151
142
|
}
|
|
152
143
|
) });
|
|
153
|
-
}
|
|
154
|
-
S.displayName = t.CheckboxItem.displayName;
|
|
155
|
-
const k = ({
|
|
144
|
+
}, L = ({
|
|
156
145
|
ref: e,
|
|
157
|
-
className:
|
|
158
|
-
children:
|
|
159
|
-
disabled:
|
|
146
|
+
className: a,
|
|
147
|
+
children: s,
|
|
148
|
+
disabled: r,
|
|
160
149
|
...d
|
|
161
150
|
}) => {
|
|
162
|
-
const
|
|
151
|
+
const i = c({
|
|
163
152
|
consumerName: "MenuRadioItem",
|
|
164
|
-
mergeWith: { disabled:
|
|
153
|
+
mergeWith: { disabled: r }
|
|
165
154
|
});
|
|
166
|
-
return /* @__PURE__ */
|
|
167
|
-
|
|
155
|
+
return /* @__PURE__ */ t(b, { value: { disabled: i }, children: /* @__PURE__ */ u(
|
|
156
|
+
n.RadioItem,
|
|
168
157
|
{
|
|
169
158
|
ref: e,
|
|
170
159
|
"data-slot": "menu-radio-item",
|
|
171
|
-
disabled:
|
|
172
|
-
className: o(l,
|
|
160
|
+
disabled: i,
|
|
161
|
+
className: o(l, a),
|
|
173
162
|
...d,
|
|
174
163
|
children: [
|
|
175
|
-
|
|
176
|
-
/* @__PURE__ */
|
|
164
|
+
s,
|
|
165
|
+
/* @__PURE__ */ t("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(p, { disabled: i, size: 24, className: "text-active" }) }) })
|
|
177
166
|
]
|
|
178
167
|
}
|
|
179
168
|
) });
|
|
180
|
-
}
|
|
181
|
-
k.displayName = t.RadioItem.displayName;
|
|
182
|
-
const R = ({
|
|
169
|
+
}, q = ({
|
|
183
170
|
ref: e,
|
|
184
|
-
className:
|
|
185
|
-
inset:
|
|
186
|
-
...
|
|
187
|
-
}) => /* @__PURE__ */
|
|
188
|
-
|
|
171
|
+
className: a,
|
|
172
|
+
inset: s,
|
|
173
|
+
...r
|
|
174
|
+
}) => /* @__PURE__ */ t(
|
|
175
|
+
n.Label,
|
|
189
176
|
{
|
|
190
177
|
ref: e,
|
|
191
178
|
"data-slot": "menu-label",
|
|
192
|
-
className: o(
|
|
193
|
-
...
|
|
179
|
+
className: o(x, s && "pl-32", a),
|
|
180
|
+
...r
|
|
194
181
|
}
|
|
195
|
-
);
|
|
196
|
-
R.displayName = t.Label.displayName;
|
|
197
|
-
const T = ({ ref: e, className: s, ...n }) => /* @__PURE__ */ a(g, { ref: e, className: o("mx-8 my-4 w-auto", s), ...n });
|
|
198
|
-
T.displayName = "MenuSeparator";
|
|
182
|
+
), A = ({ ref: e, className: a, ...s }) => /* @__PURE__ */ t(g, { ref: e, className: o("mx-8 my-4 w-auto", a), ...s });
|
|
199
183
|
export {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
184
|
+
y as Menu,
|
|
185
|
+
W as MenuCheckboxItem,
|
|
186
|
+
D as MenuContent,
|
|
187
|
+
R as MenuGroup,
|
|
188
|
+
G as MenuItem,
|
|
189
|
+
q as MenuLabel,
|
|
190
|
+
z as MenuPortal,
|
|
191
|
+
w as MenuRadioGroup,
|
|
192
|
+
L as MenuRadioItem,
|
|
193
|
+
A as MenuSeparator,
|
|
194
|
+
P as MenuSub,
|
|
195
|
+
j as MenuSubContent,
|
|
196
|
+
T as MenuSubTrigger,
|
|
197
|
+
k as MenuTrigger
|
|
214
198
|
};
|
|
@@ -5,8 +5,5 @@ import { CoinCapsuleProps } from './types';
|
|
|
5
5
|
* This component is not exported publicly. Use NavBarCoinCapsule instead for NavBar usage.
|
|
6
6
|
* Kept as a separate component for potential future extraction as a standalone component.
|
|
7
7
|
*/
|
|
8
|
-
export declare const CoinCapsule: {
|
|
9
|
-
({ ref, ticker, icon, className, }: CoinCapsuleProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
displayName: string;
|
|
11
|
-
};
|
|
8
|
+
export declare const CoinCapsule: ({ ref, ticker, icon, className, }: CoinCapsuleProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
9
|
//# sourceMappingURL=CoinCapsule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoinCapsule.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/NavBar/CoinCapsule.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"CoinCapsule.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/NavBar/CoinCapsule.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,mCAKzB,gBAAgB,4CAgBlB,CAAC"}
|