@ledgerhq/lumen-ui-react 0.1.62 → 0.1.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/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/Components/core/AddressInput/AddressInput.js +1 -1
- package/dist/lib/Components/core/AmountDisplay/AmountDisplay.js +1 -1
- package/dist/lib/Components/core/AmountInput/AmountInput.js +22 -22
- package/dist/lib/Components/core/Avatar/Avatar.js +7 -7
- package/dist/lib/Components/core/AvatarButton/AvatarButton.js +8 -8
- package/dist/lib/Components/core/Banner/Banner.js +1 -1
- package/dist/lib/Components/core/Button/Button.js +6 -6
- package/dist/lib/Components/core/Card/Card.js +17 -17
- package/dist/lib/Components/core/ContentBanner/ContentBanner.js +1 -1
- package/dist/lib/Components/core/DataTable/DataTable.js +45 -45
- package/dist/lib/Components/core/Dialog/DialogHeader/DialogHeader.js +1 -1
- package/dist/lib/Components/core/Divider/Divider.js +4 -4
- package/dist/lib/Components/core/DotCount/DotCount.js +3 -3
- package/dist/lib/Components/core/DotIcon/DotIcon.js +4 -4
- package/dist/lib/Components/core/DotSymbol/DotSymbol.js +18 -18
- package/dist/lib/Components/core/Link/Link.d.ts.map +1 -1
- package/dist/lib/Components/core/Link/Link.js +25 -24
- package/dist/lib/Components/core/ListItem/ListItem.js +4 -4
- package/dist/lib/Components/core/MediaBanner/MediaBanner.js +16 -16
- package/dist/lib/Components/core/MediaButton/MediaButton.js +2 -2
- package/dist/lib/Components/core/MediaCard/MediaCard.js +1 -1
- package/dist/lib/Components/core/MediaImage/MediaImage.js +5 -5
- package/dist/lib/Components/core/Menu/Menu.js +25 -25
- package/dist/lib/Components/core/NavBar/CoinCapsule.js +4 -4
- package/dist/lib/Components/core/NavBar/NavBar.js +3 -3
- package/dist/lib/Components/core/PageIndicator/PageIndicator.js +5 -5
- package/dist/lib/Components/core/Pagination/Pagination.js +15 -15
- package/dist/lib/Components/core/Popover/Popover.js +13 -13
- package/dist/lib/Components/core/SearchInput/SearchInput.js +5 -5
- package/dist/lib/Components/core/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/lib/Components/core/SegmentedControl/SegmentedControl.js +78 -82
- package/dist/lib/Components/core/Select/Select.d.ts.map +1 -1
- package/dist/lib/Components/core/Select/Select.js +105 -104
- package/dist/lib/Components/core/SideBar/SideBar.js +28 -28
- package/dist/lib/Components/core/Spinner/Spinner.js +5 -5
- package/dist/lib/Components/core/Spot/Spot.js +10 -10
- package/dist/lib/Components/core/Stepper/Stepper.d.ts.map +1 -1
- package/dist/lib/Components/core/Stepper/Stepper.js +51 -48
- package/dist/lib/Components/core/Subheader/Subheader.d.ts.map +1 -1
- package/dist/lib/Components/core/Subheader/Subheader.js +33 -29
- package/dist/lib/Components/core/Switch/Switch.js +5 -5
- package/dist/lib/Components/core/Table/Table.js +6 -6
- package/dist/lib/Components/core/ThemeProvider/ThemeProvider.js +6 -6
- package/dist/lib/Components/core/ThemeProvider/ThemeProvider.types.d.ts +1 -1
- package/dist/lib/Components/core/ThemeProvider/ThemeProvider.types.d.ts.map +1 -1
- package/dist/lib/Components/core/TileButton/TileButton.js +8 -8
- package/dist/lib/Components/core/Timeline/Timeline.js +16 -16
- package/dist/lib/Components/core/Toast/Toast.js +4 -4
- package/dist/lib/Components/core/Toast/Toaster.js +9 -9
- package/dist/lib/Components/core/Trend/Trend.js +3 -3
- package/dist/lib/Components/internal/BaseButton/BaseButton.js +9 -9
- package/dist/lib/Components/internal/BaseInput/BaseInput.js +21 -21
- package/dist/lib/Components/internal/BaseInput/useAutosizeTextarea/useAutosizeTextarea.js +4 -4
- package/dist/lib/Components/internal/BaseTag/BaseTag.js +4 -4
- package/dist/lib/Components/symbols/Icon/Icon.js +4 -4
- package/dist/lib/Components/symbols/Icon/createIcon.js +5 -5
- package/dist/lib/Components/visualization/CartesianChart/CartesianChart.d.ts.map +1 -1
- package/dist/lib/Components/visualization/CartesianChart/CartesianChart.js +36 -35
- package/dist/lib/Components/visualization/CartesianChart/types.d.ts +1 -1
- package/dist/lib/Components/visualization/DonutChart/DonutChart.d.ts.map +1 -1
- package/dist/lib/Components/visualization/DonutChart/DonutChart.js +31 -31
- package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +4 -4
- package/dist/lib/Components/visualization/DonutChart/DonutRing.d.ts.map +1 -1
- package/dist/lib/Components/visualization/DonutChart/DonutRing.js +13 -12
- package/dist/lib/Components/visualization/DonutChart/donutSizeContext.js +2 -2
- package/dist/lib/Components/visualization/DonutChart/types.d.ts +1 -1
- package/dist/lib/Components/visualization/Legend/Legend.d.ts +1 -1
- package/dist/lib/Components/visualization/Legend/Legend.d.ts.map +1 -1
- package/dist/lib/Components/visualization/Legend/Legend.js +7 -11
- package/dist/lib/Components/visualization/Legend/types.d.ts +2 -2
- package/dist/lib/Components/visualization/LineChart/LineChart.d.ts +1 -1
- package/dist/lib/Components/visualization/LineChart/LineChart.d.ts.map +1 -1
- package/dist/lib/Components/visualization/LineChart/LineChart.js +90 -84
- package/dist/lib/Components/visualization/LineChart/types.d.ts +1 -1
- package/dist/lib/Components/visualization/LineChart/utils.d.ts +2 -1
- package/dist/lib/Components/visualization/LineChart/utils.d.ts.map +1 -1
- package/dist/lib/Components/visualization/LineChart/utils.js +23 -22
- package/dist/lib/Components/visualization/config.d.ts +0 -3
- package/dist/lib/Components/visualization/config.d.ts.map +1 -1
- package/dist/lib/Components/visualization/config.js +3 -6
- package/dist/libs/utils-shared/dist/index.js +191 -143
- package/dist/package.json +4 -6
- package/dist/translations/index.d.ts +3 -0
- package/dist/translations/index.d.ts.map +1 -0
- package/dist/{i18n → translations}/languages.d.ts +0 -5
- package/dist/translations/languages.d.ts.map +1 -0
- package/dist/{i18n → translations}/languages.js +1 -2
- package/dist/{i18n → translations}/locales/en.json.d.ts +11 -0
- package/dist/{i18n → translations}/locales/en.json.js +2 -2
- package/dist/translations/translations.d.ts +727 -0
- package/dist/translations/translations.d.ts.map +1 -0
- package/dist/translations/translations.js +22 -0
- package/package.json +3 -5
- package/dist/_virtual/dynamic-import-helper.js +0 -9
- package/dist/i18n/I18nProvider.d.ts +0 -8
- package/dist/i18n/I18nProvider.d.ts.map +0 -1
- package/dist/i18n/I18nProvider.js +0 -14
- package/dist/i18n/i18n.d.ts +0 -12
- package/dist/i18n/i18n.d.ts.map +0 -1
- package/dist/i18n/i18n.js +0 -42
- package/dist/i18n/index.d.ts +0 -4
- package/dist/i18n/index.d.ts.map +0 -1
- package/dist/i18n/languages.d.ts.map +0 -1
- package/dist/i18n/useCommonTranslation.d.ts +0 -2
- package/dist/i18n/useCommonTranslation.d.ts.map +0 -1
- package/dist/i18n/useCommonTranslation.js +0 -6
- package/dist/node_modules/i18next/dist/esm/i18next.js +0 -1479
- package/dist/node_modules/react-i18next/dist/es/I18nextProvider.js +0 -19
- package/dist/node_modules/react-i18next/dist/es/context.js +0 -17
- package/dist/node_modules/react-i18next/dist/es/defaults.js +0 -22
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +0 -8
- package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +0 -11
- package/dist/node_modules/react-i18next/dist/es/unescape.js +0 -25
- package/dist/node_modules/react-i18next/dist/es/useTranslation.js +0 -65
- package/dist/node_modules/react-i18next/dist/es/utils.js +0 -57
- /package/dist/{i18n → translations}/locales/de.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/de.json.js +0 -0
- /package/dist/{i18n → translations}/locales/es.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/es.json.js +0 -0
- /package/dist/{i18n → translations}/locales/fr.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/fr.json.js +0 -0
- /package/dist/{i18n → translations}/locales/ja.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/ja.json.js +0 -0
- /package/dist/{i18n → translations}/locales/ko.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/ko.json.js +0 -0
- /package/dist/{i18n → translations}/locales/pt.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/pt.json.js +0 -0
- /package/dist/{i18n → translations}/locales/ru.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/ru.json.js +0 -0
- /package/dist/{i18n → translations}/locales/th.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/th.json.js +0 -0
- /package/dist/{i18n → translations}/locales/tr.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/tr.json.js +0 -0
- /package/dist/{i18n → translations}/locales/zh.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/zh.json.js +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import { useDisabledContext as x, DisabledProvider as v, cn as i } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as d } from "class-variance-authority";
|
|
4
|
-
import { useMemo as
|
|
5
|
-
const
|
|
4
|
+
import { useMemo as N } from "react";
|
|
5
|
+
const z = d("relative inline-flex w-fit", {
|
|
6
6
|
variants: {
|
|
7
7
|
disabled: {
|
|
8
8
|
true: "opacity-30",
|
|
@@ -68,7 +68,7 @@ const N = d("relative inline-flex w-fit", {
|
|
|
68
68
|
ref: p,
|
|
69
69
|
...b
|
|
70
70
|
}) => {
|
|
71
|
-
const u =
|
|
71
|
+
const u = N(() => y(r), [r]), f = x({
|
|
72
72
|
consumerName: "DotIcon",
|
|
73
73
|
mergeWith: { disabled: m }
|
|
74
74
|
});
|
|
@@ -76,7 +76,7 @@ const N = d("relative inline-flex w-fit", {
|
|
|
76
76
|
"div",
|
|
77
77
|
{
|
|
78
78
|
ref: p,
|
|
79
|
-
className: i(
|
|
79
|
+
className: i(z({ disabled: f, className: l })),
|
|
80
80
|
...b,
|
|
81
81
|
children: [
|
|
82
82
|
/* @__PURE__ */ e("div", { className: "inline-flex", children: s }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o, jsxs as x } from "react/jsx-runtime";
|
|
2
2
|
import { useDisabledContext as z, DisabledProvider as N, cn as v } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as d } from "class-variance-authority";
|
|
4
4
|
import { useMemo as g, useState as q, useEffect as y } from "react";
|
|
@@ -47,7 +47,7 @@ const D = d("relative inline-flex w-fit", {
|
|
|
47
47
|
{ shape: "circle", className: "rounded-full" }
|
|
48
48
|
]
|
|
49
49
|
}
|
|
50
|
-
),
|
|
50
|
+
), E = {
|
|
51
51
|
8: -2,
|
|
52
52
|
10: -2,
|
|
53
53
|
12: -2,
|
|
@@ -55,18 +55,18 @@ const D = d("relative inline-flex w-fit", {
|
|
|
55
55
|
20: -3,
|
|
56
56
|
24: -3,
|
|
57
57
|
32: -3
|
|
58
|
-
},
|
|
58
|
+
}, V = {
|
|
59
59
|
"top-start": ["top", "left"],
|
|
60
60
|
"top-end": ["top", "right"],
|
|
61
61
|
"bottom-start": ["bottom", "left"],
|
|
62
62
|
"bottom-end": ["bottom", "right"]
|
|
63
|
-
},
|
|
64
|
-
const [
|
|
65
|
-
return { [
|
|
66
|
-
},
|
|
67
|
-
children:
|
|
68
|
-
src:
|
|
69
|
-
alt:
|
|
63
|
+
}, j = (a, t) => {
|
|
64
|
+
const [r, s] = V[a], e = E[t];
|
|
65
|
+
return { [r]: e, [s]: e };
|
|
66
|
+
}, w = ({
|
|
67
|
+
children: a,
|
|
68
|
+
src: t,
|
|
69
|
+
alt: r,
|
|
70
70
|
pin: s = "bottom-end",
|
|
71
71
|
size: e = 20,
|
|
72
72
|
shape: n = "circle",
|
|
@@ -76,25 +76,25 @@ const D = d("relative inline-flex w-fit", {
|
|
|
76
76
|
ref: p,
|
|
77
77
|
...u
|
|
78
78
|
}) => {
|
|
79
|
-
const b = g(() =>
|
|
79
|
+
const b = g(() => j(s, e), [s, e]), [f, i] = q(!1), h = z({
|
|
80
80
|
consumerName: "DotSymbol",
|
|
81
81
|
mergeWith: { disabled: m }
|
|
82
82
|
});
|
|
83
83
|
return y(() => {
|
|
84
84
|
i(!1);
|
|
85
|
-
}, [
|
|
85
|
+
}, [t]), /* @__PURE__ */ o(N, { value: { disabled: !1 }, children: /* @__PURE__ */ x(
|
|
86
86
|
"div",
|
|
87
87
|
{
|
|
88
88
|
ref: p,
|
|
89
89
|
className: v(D({ disabled: h, className: c })),
|
|
90
90
|
...u,
|
|
91
91
|
children: [
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ o("div", { className: "inline-flex", children: a }),
|
|
93
|
+
/* @__PURE__ */ o("div", { className: S({ size: e, shape: n, pin: s }), style: b, children: !f && /* @__PURE__ */ o(
|
|
94
94
|
"img",
|
|
95
95
|
{
|
|
96
|
-
alt:
|
|
97
|
-
src:
|
|
96
|
+
alt: r,
|
|
97
|
+
src: t,
|
|
98
98
|
loading: l,
|
|
99
99
|
"aria-hidden": "true",
|
|
100
100
|
onError: () => i(!0)
|
|
@@ -104,7 +104,7 @@ const D = d("relative inline-flex w-fit", {
|
|
|
104
104
|
}
|
|
105
105
|
) });
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
w.displayName = "DotSymbol";
|
|
108
108
|
export {
|
|
109
|
-
|
|
109
|
+
w as DotSymbol
|
|
110
110
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Link/Link.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Link/Link.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAoCzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,IAAI,GAAI,wHAYlB,SAAS,4CAmDX,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { useDisabledContext as
|
|
3
|
-
import { Slot as
|
|
4
|
-
import { cva as
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { jsx as e, jsxs as l, Fragment as c } from "react/jsx-runtime";
|
|
2
|
+
import { useDisabledContext as h, cn as g } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { Slot as k } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva as N } from "class-variance-authority";
|
|
5
|
+
import { useCommonTranslation as y } from "../../../../translations/translations.js";
|
|
6
|
+
import { ExternalLink as z } from "../../symbols/icons/ExternalLink.js";
|
|
7
|
+
const w = N(
|
|
7
8
|
"inline-flex w-fit max-w-full items-center justify-center transition-colors focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-focus",
|
|
8
9
|
{
|
|
9
10
|
variants: {
|
|
@@ -16,7 +17,7 @@ const z = k(
|
|
|
16
17
|
size: {
|
|
17
18
|
sm: "gap-4 body-2-semi-bold",
|
|
18
19
|
md: "gap-8 body-1-semi-bold",
|
|
19
|
-
inherit: ""
|
|
20
|
+
inherit: "gap-4"
|
|
20
21
|
},
|
|
21
22
|
underline: {
|
|
22
23
|
true: "underline underline-offset-2",
|
|
@@ -34,35 +35,35 @@ const z = k(
|
|
|
34
35
|
disabled: !1
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
|
-
),
|
|
38
|
+
), V = ({
|
|
38
39
|
ref: d,
|
|
39
40
|
className: m,
|
|
40
41
|
children: r,
|
|
41
|
-
appearance:
|
|
42
|
+
appearance: p,
|
|
42
43
|
size: i = "inherit",
|
|
43
|
-
underline:
|
|
44
|
+
underline: u = !0,
|
|
44
45
|
icon: f,
|
|
45
46
|
isExternal: n = !1,
|
|
46
47
|
asChild: t = !1,
|
|
47
48
|
disabled: b,
|
|
48
49
|
...v
|
|
49
50
|
}) => {
|
|
50
|
-
const a =
|
|
51
|
+
const { t: x } = y(), a = h({
|
|
51
52
|
consumerName: "Link",
|
|
52
53
|
mergeWith: { disabled: b }
|
|
53
|
-
}),
|
|
54
|
+
}), o = i ? {
|
|
54
55
|
sm: 16,
|
|
55
56
|
md: 20
|
|
56
|
-
}[i] : 20,
|
|
57
|
+
}[i] : 20, s = f;
|
|
57
58
|
return /* @__PURE__ */ e(
|
|
58
|
-
t ?
|
|
59
|
+
t ? k : "a",
|
|
59
60
|
{
|
|
60
61
|
ref: d,
|
|
61
|
-
className:
|
|
62
|
-
|
|
63
|
-
appearance:
|
|
62
|
+
className: g(
|
|
63
|
+
w({
|
|
64
|
+
appearance: p,
|
|
64
65
|
size: i,
|
|
65
|
-
underline:
|
|
66
|
+
underline: u,
|
|
66
67
|
disabled: a
|
|
67
68
|
}),
|
|
68
69
|
m
|
|
@@ -71,17 +72,17 @@ const z = k(
|
|
|
71
72
|
target: n && !t ? "_blank" : void 0,
|
|
72
73
|
rel: n && !t ? "noopener noreferrer" : void 0,
|
|
73
74
|
...v,
|
|
74
|
-
children: t ? r : /* @__PURE__ */ c
|
|
75
|
-
|
|
75
|
+
children: t ? r : /* @__PURE__ */ l(c, { children: [
|
|
76
|
+
s && /* @__PURE__ */ e(s, { size: o }),
|
|
76
77
|
/* @__PURE__ */ e("span", { className: "min-w-0 truncate", children: r }),
|
|
77
|
-
n && /* @__PURE__ */ c
|
|
78
|
-
/* @__PURE__ */ e(
|
|
79
|
-
/* @__PURE__ */ e("span", { className: "sr-only", children: "
|
|
78
|
+
n && /* @__PURE__ */ l(c, { children: [
|
|
79
|
+
/* @__PURE__ */ e(z, { size: o, "aria-hidden": "true" }),
|
|
80
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: x("components.link.opensInNewTabAriaLabel") })
|
|
80
81
|
] })
|
|
81
82
|
] })
|
|
82
83
|
}
|
|
83
84
|
);
|
|
84
85
|
};
|
|
85
86
|
export {
|
|
86
|
-
|
|
87
|
+
V as Link
|
|
87
88
|
};
|
|
@@ -181,7 +181,7 @@ const [L, l] = b("ListItemTrailing", {
|
|
|
181
181
|
children: t
|
|
182
182
|
}
|
|
183
183
|
);
|
|
184
|
-
},
|
|
184
|
+
}, k = ({
|
|
185
185
|
ref: e,
|
|
186
186
|
children: t,
|
|
187
187
|
className: s,
|
|
@@ -208,7 +208,7 @@ const [L, l] = b("ListItemTrailing", {
|
|
|
208
208
|
children: t
|
|
209
209
|
}
|
|
210
210
|
);
|
|
211
|
-
},
|
|
211
|
+
}, D = ({
|
|
212
212
|
ref: e,
|
|
213
213
|
children: t,
|
|
214
214
|
className: s,
|
|
@@ -240,8 +240,8 @@ export {
|
|
|
240
240
|
R as ListItem,
|
|
241
241
|
P as ListItemContent,
|
|
242
242
|
C as ListItemContentRow,
|
|
243
|
-
|
|
243
|
+
k as ListItemDescription,
|
|
244
244
|
q as ListItemLeading,
|
|
245
245
|
j as ListItemTitle,
|
|
246
|
-
|
|
246
|
+
D as ListItemTrailing
|
|
247
247
|
};
|
|
@@ -2,7 +2,7 @@ import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { cn as n, getButtonA11yProps as v } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as b } from "class-variance-authority";
|
|
4
4
|
import { useState as g, useEffect as h } from "react";
|
|
5
|
-
import { useCommonTranslation as x } from "../../../../
|
|
5
|
+
import { useCommonTranslation as x } from "../../../../translations/translations.js";
|
|
6
6
|
import { Close as N } from "../../symbols/icons/Close.js";
|
|
7
7
|
import { InteractiveIcon as w } from "../InteractiveIcon/InteractiveIcon.js";
|
|
8
8
|
const y = b(
|
|
@@ -18,8 +18,8 @@ const y = b(
|
|
|
18
18
|
}
|
|
19
19
|
), k = ({
|
|
20
20
|
ref: r,
|
|
21
|
-
imageUrl:
|
|
22
|
-
onClose:
|
|
21
|
+
imageUrl: t,
|
|
22
|
+
onClose: a,
|
|
23
23
|
closeAriaLabel: s,
|
|
24
24
|
children: c,
|
|
25
25
|
className: d,
|
|
@@ -29,8 +29,8 @@ const y = b(
|
|
|
29
29
|
const { t: u } = x(), [f, l] = g(!1);
|
|
30
30
|
h(() => {
|
|
31
31
|
l(!1);
|
|
32
|
-
}, [
|
|
33
|
-
const p =
|
|
32
|
+
}, [t]);
|
|
33
|
+
const p = t && !f;
|
|
34
34
|
return /* @__PURE__ */ i("div", { className: n("relative w-full", d), children: [
|
|
35
35
|
/* @__PURE__ */ i(
|
|
36
36
|
"div",
|
|
@@ -45,7 +45,7 @@ const y = b(
|
|
|
45
45
|
p && /* @__PURE__ */ e(
|
|
46
46
|
"img",
|
|
47
47
|
{
|
|
48
|
-
src:
|
|
48
|
+
src: t,
|
|
49
49
|
alt: "",
|
|
50
50
|
"aria-hidden": !0,
|
|
51
51
|
className: "absolute inset-0 size-full object-cover",
|
|
@@ -64,7 +64,7 @@ const y = b(
|
|
|
64
64
|
]
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
|
-
|
|
67
|
+
a && /* @__PURE__ */ e(
|
|
68
68
|
w,
|
|
69
69
|
{
|
|
70
70
|
"data-testid": "media-banner-close-button",
|
|
@@ -74,36 +74,36 @@ const y = b(
|
|
|
74
74
|
icon: N,
|
|
75
75
|
size: 16,
|
|
76
76
|
className: "absolute top-8 right-8",
|
|
77
|
-
onClick:
|
|
77
|
+
onClick: a,
|
|
78
78
|
"aria-label": s || u("components.banner.closeAriaLabel")
|
|
79
79
|
}
|
|
80
80
|
)
|
|
81
81
|
] });
|
|
82
82
|
}, z = ({
|
|
83
83
|
ref: r,
|
|
84
|
-
children:
|
|
85
|
-
className:
|
|
84
|
+
children: t,
|
|
85
|
+
className: a,
|
|
86
86
|
...s
|
|
87
87
|
}) => /* @__PURE__ */ e(
|
|
88
88
|
"div",
|
|
89
89
|
{
|
|
90
90
|
ref: r,
|
|
91
|
-
className: n("line-clamp-1 body-2-semi-bold text-base",
|
|
91
|
+
className: n("line-clamp-1 body-2-semi-bold text-base", a),
|
|
92
92
|
...s,
|
|
93
|
-
children:
|
|
93
|
+
children: t
|
|
94
94
|
}
|
|
95
95
|
), A = ({
|
|
96
96
|
ref: r,
|
|
97
|
-
children:
|
|
98
|
-
className:
|
|
97
|
+
children: t,
|
|
98
|
+
className: a,
|
|
99
99
|
...s
|
|
100
100
|
}) => /* @__PURE__ */ e(
|
|
101
101
|
"div",
|
|
102
102
|
{
|
|
103
103
|
ref: r,
|
|
104
|
-
className: n("line-clamp-2 body-3 text-muted",
|
|
104
|
+
className: n("line-clamp-2 body-3 text-muted", a),
|
|
105
105
|
...s,
|
|
106
|
-
children:
|
|
106
|
+
children: t
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
109
|
export {
|
|
@@ -81,7 +81,7 @@ const b = S("gap-8 body-2-semi-bold", {
|
|
|
81
81
|
leadingContentShape: "none",
|
|
82
82
|
hasChevron: !0
|
|
83
83
|
}
|
|
84
|
-
}),
|
|
84
|
+
}), k = ({
|
|
85
85
|
ref: r,
|
|
86
86
|
className: p,
|
|
87
87
|
appearance: i = "gray",
|
|
@@ -129,5 +129,5 @@ const b = S("gap-8 body-2-semi-bold", {
|
|
|
129
129
|
);
|
|
130
130
|
};
|
|
131
131
|
export {
|
|
132
|
-
|
|
132
|
+
k as MediaButton
|
|
133
133
|
};
|
|
@@ -3,7 +3,7 @@ import { cn as m, getButtonA11yProps as y } from "../../../../libs/utils-shared/
|
|
|
3
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
|
-
import { useCommonTranslation as z } from "../../../../
|
|
6
|
+
import { useCommonTranslation as z } from "../../../../translations/translations.js";
|
|
7
7
|
import { InteractiveIcon as j } from "../InteractiveIcon/InteractiveIcon.js";
|
|
8
8
|
const r = {
|
|
9
9
|
root: o(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as h, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { useDisabledContext as x, cn as b } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as g } from "class-variance-authority";
|
|
4
|
-
import { useState as
|
|
4
|
+
import { useState as N, useEffect as v } from "react";
|
|
5
5
|
import { Skeleton as j } from "../Skeleton/Skeleton.js";
|
|
6
6
|
const S = {
|
|
7
7
|
12: 10,
|
|
@@ -42,7 +42,7 @@ const S = {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
)
|
|
45
|
-
},
|
|
45
|
+
}, F = ({
|
|
46
46
|
ref: d,
|
|
47
47
|
className: n,
|
|
48
48
|
src: r,
|
|
@@ -55,11 +55,11 @@ const S = {
|
|
|
55
55
|
disabled: c = !1,
|
|
56
56
|
...f
|
|
57
57
|
}) => {
|
|
58
|
-
const [p, i] =
|
|
58
|
+
const [p, i] = N(!1), o = !r || p, z = x({
|
|
59
59
|
consumerName: "MediaImage",
|
|
60
60
|
mergeWith: { disabled: c }
|
|
61
61
|
});
|
|
62
|
-
return
|
|
62
|
+
return v(() => {
|
|
63
63
|
i(!1);
|
|
64
64
|
}, [r]), /* @__PURE__ */ h(
|
|
65
65
|
"div",
|
|
@@ -100,6 +100,6 @@ const S = {
|
|
|
100
100
|
);
|
|
101
101
|
};
|
|
102
102
|
export {
|
|
103
|
-
|
|
103
|
+
F as MediaImage,
|
|
104
104
|
S as fontSizeMap
|
|
105
105
|
};
|
|
@@ -8,8 +8,8 @@ import { Divider as w } from "../Divider/Divider.js";
|
|
|
8
8
|
import { ChevronRight as z } from "../../symbols/icons/ChevronRight.js";
|
|
9
9
|
import { MenuRoot as G } from "../../../../node_modules/@base-ui/react/esm/menu/root/MenuRoot.js";
|
|
10
10
|
import { MenuTrigger as P } from "../../../../node_modules/@base-ui/react/esm/menu/trigger/MenuTrigger.js";
|
|
11
|
-
import { MenuPortal as
|
|
12
|
-
import { MenuPositioner as
|
|
11
|
+
import { MenuPortal as N } from "../../../../node_modules/@base-ui/react/esm/menu/portal/MenuPortal.js";
|
|
12
|
+
import { MenuPositioner as C } from "../../../../node_modules/@base-ui/react/esm/menu/positioner/MenuPositioner.js";
|
|
13
13
|
import { MenuPopup as v } from "../../../../node_modules/@base-ui/react/esm/menu/popup/MenuPopup.js";
|
|
14
14
|
import { MenuItem as T } from "../../../../node_modules/@base-ui/react/esm/menu/item/MenuItem.js";
|
|
15
15
|
import { MenuCheckboxItem as I } from "../../../../node_modules/@base-ui/react/esm/menu/checkbox-item/MenuCheckboxItem.js";
|
|
@@ -17,10 +17,10 @@ import { MenuCheckboxItemIndicator as $ } from "../../../../node_modules/@base-u
|
|
|
17
17
|
import { MenuRadioItem as j } from "../../../../node_modules/@base-ui/react/esm/menu/radio-item/MenuRadioItem.js";
|
|
18
18
|
import { MenuRadioItemIndicator as W } from "../../../../node_modules/@base-ui/react/esm/menu/radio-item-indicator/MenuRadioItemIndicator.js";
|
|
19
19
|
import { MenuGroupLabel as D } from "../../../../node_modules/@base-ui/react/esm/menu/group-label/MenuGroupLabel.js";
|
|
20
|
-
import { MenuGroup as
|
|
21
|
-
import { MenuSubmenuRoot as
|
|
22
|
-
import { MenuSubmenuTrigger as
|
|
23
|
-
import { MenuRadioGroup as
|
|
20
|
+
import { MenuGroup as O } from "../../../../node_modules/@base-ui/react/esm/menu/group/MenuGroup.js";
|
|
21
|
+
import { MenuSubmenuRoot as V } from "../../../../node_modules/@base-ui/react/esm/menu/submenu-root/MenuSubmenuRoot.js";
|
|
22
|
+
import { MenuSubmenuTrigger as L } from "../../../../node_modules/@base-ui/react/esm/menu/submenu-trigger/MenuSubmenuTrigger.js";
|
|
23
|
+
import { MenuRadioGroup as F } from "../../../../node_modules/@base-ui/react/esm/menu/radio-group/MenuRadioGroup.js";
|
|
24
24
|
const k = M(
|
|
25
25
|
[
|
|
26
26
|
"min-w-160 overflow-hidden rounded-sm bg-muted p-8",
|
|
@@ -72,7 +72,7 @@ const k = M(
|
|
|
72
72
|
appearance: "base"
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
),
|
|
75
|
+
), q = r("px-8 py-4 body-3-semi-bold text-muted"), A = r(
|
|
76
76
|
c(),
|
|
77
77
|
"data-popup-open:bg-base-transparent-hover"
|
|
78
78
|
);
|
|
@@ -95,17 +95,17 @@ const he = ({
|
|
|
95
95
|
}
|
|
96
96
|
);
|
|
97
97
|
function fe({ ...e }) {
|
|
98
|
-
return /* @__PURE__ */ t(
|
|
98
|
+
return /* @__PURE__ */ t(O, { "data-slot": "menu-group", ...e });
|
|
99
99
|
}
|
|
100
100
|
function ge({ ...e }) {
|
|
101
|
-
return /* @__PURE__ */ t(
|
|
101
|
+
return /* @__PURE__ */ t(V, { ...e });
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function B({
|
|
104
104
|
onValueChange: e,
|
|
105
105
|
...a
|
|
106
106
|
}) {
|
|
107
107
|
return /* @__PURE__ */ t(
|
|
108
|
-
|
|
108
|
+
F,
|
|
109
109
|
{
|
|
110
110
|
"data-slot": "menu-radio-group",
|
|
111
111
|
onValueChange: (o) => e?.(String(o)),
|
|
@@ -119,18 +119,18 @@ const Me = ({
|
|
|
119
119
|
children: o,
|
|
120
120
|
...n
|
|
121
121
|
}) => /* @__PURE__ */ p(
|
|
122
|
-
|
|
122
|
+
L,
|
|
123
123
|
{
|
|
124
124
|
ref: e,
|
|
125
125
|
"data-slot": "menu-sub-trigger",
|
|
126
|
-
className: r(
|
|
126
|
+
className: r(A, a),
|
|
127
127
|
...n,
|
|
128
128
|
children: [
|
|
129
129
|
o,
|
|
130
130
|
/* @__PURE__ */ t(z, { size: 20, className: "ml-auto text-muted" })
|
|
131
131
|
]
|
|
132
132
|
}
|
|
133
|
-
), xe = ({ className: e, children: a }) => /* @__PURE__ */ t(
|
|
133
|
+
), xe = ({ className: e, children: a }) => /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(C, { className: "z-menu", side: "right", sideOffset: 4, children: /* @__PURE__ */ t(
|
|
134
134
|
v,
|
|
135
135
|
{
|
|
136
136
|
"data-slot": "menu-sub-content",
|
|
@@ -138,7 +138,7 @@ const Me = ({
|
|
|
138
138
|
onClick: (o) => o.stopPropagation(),
|
|
139
139
|
children: a
|
|
140
140
|
}
|
|
141
|
-
) }) }),
|
|
141
|
+
) }) }), Ne = ({
|
|
142
142
|
side: e = "bottom",
|
|
143
143
|
sideOffset: a = 4,
|
|
144
144
|
align: o = "start",
|
|
@@ -146,8 +146,8 @@ const Me = ({
|
|
|
146
146
|
sticky: i = !0,
|
|
147
147
|
className: s,
|
|
148
148
|
children: m
|
|
149
|
-
}) => /* @__PURE__ */ t(
|
|
150
|
-
|
|
149
|
+
}) => /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(
|
|
150
|
+
C,
|
|
151
151
|
{
|
|
152
152
|
className: "z-menu",
|
|
153
153
|
side: e,
|
|
@@ -165,7 +165,7 @@ const Me = ({
|
|
|
165
165
|
}
|
|
166
166
|
)
|
|
167
167
|
}
|
|
168
|
-
) }),
|
|
168
|
+
) }), Ce = ({
|
|
169
169
|
ref: e,
|
|
170
170
|
className: a,
|
|
171
171
|
appearance: o = "base",
|
|
@@ -273,7 +273,7 @@ const Me = ({
|
|
|
273
273
|
]
|
|
274
274
|
}
|
|
275
275
|
) });
|
|
276
|
-
},
|
|
276
|
+
}, E = ({
|
|
277
277
|
ref: e,
|
|
278
278
|
className: a,
|
|
279
279
|
children: o,
|
|
@@ -303,22 +303,22 @@ const Me = ({
|
|
|
303
303
|
{
|
|
304
304
|
ref: e,
|
|
305
305
|
"data-slot": "menu-label",
|
|
306
|
-
className: r(
|
|
306
|
+
className: r(q, a),
|
|
307
307
|
...o
|
|
308
308
|
}
|
|
309
309
|
), Se = ({ ref: e, className: a, ...o }) => /* @__PURE__ */ t(w, { ref: e, className: r("mx-8 my-4 w-auto", a), ...o });
|
|
310
310
|
function Re() {
|
|
311
|
-
return { MenuRadioGroup:
|
|
311
|
+
return { MenuRadioGroup: B, MenuRadioItem: E };
|
|
312
312
|
}
|
|
313
313
|
export {
|
|
314
314
|
be as Menu,
|
|
315
315
|
ve as MenuCheckboxItem,
|
|
316
|
-
|
|
316
|
+
Ne as MenuContent,
|
|
317
317
|
fe as MenuGroup,
|
|
318
|
-
|
|
318
|
+
Ce as MenuItem,
|
|
319
319
|
ke as MenuLabel,
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
B as MenuRadioGroup,
|
|
321
|
+
E as MenuRadioItem,
|
|
322
322
|
Se as MenuSeparator,
|
|
323
323
|
ge as MenuSub,
|
|
324
324
|
xe as MenuSubContent,
|
|
@@ -2,8 +2,8 @@ import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { cn as c } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
const o = ({
|
|
4
4
|
ref: s,
|
|
5
|
-
ticker:
|
|
6
|
-
leadingContent:
|
|
5
|
+
ticker: t,
|
|
6
|
+
leadingContent: n,
|
|
7
7
|
className: r
|
|
8
8
|
}) => /* @__PURE__ */ a(
|
|
9
9
|
"div",
|
|
@@ -15,8 +15,8 @@ const o = ({
|
|
|
15
15
|
),
|
|
16
16
|
"data-slot": "coin-capsule",
|
|
17
17
|
children: [
|
|
18
|
-
/* @__PURE__ */ e("span", { className: "flex size-24 shrink-0 items-center justify-center", children:
|
|
19
|
-
/* @__PURE__ */ e("span", { className: "body-1 text-base select-none", children:
|
|
18
|
+
/* @__PURE__ */ e("span", { className: "flex size-24 shrink-0 items-center justify-center", children: n }),
|
|
19
|
+
/* @__PURE__ */ e("span", { className: "body-1 text-base select-none", children: t })
|
|
20
20
|
]
|
|
21
21
|
}
|
|
22
22
|
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { cn as o } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { CoinCapsule as i } from "./CoinCapsule.js";
|
|
4
|
-
import { useCommonTranslation as l } from "../../../../
|
|
4
|
+
import { useCommonTranslation as l } from "../../../../translations/translations.js";
|
|
5
5
|
import { IconButton as c } from "../IconButton/IconButton.js";
|
|
6
6
|
import { ArrowLeft as m } from "../../symbols/icons/ArrowLeft.js";
|
|
7
|
-
const
|
|
7
|
+
const f = ({
|
|
8
8
|
ref: a,
|
|
9
9
|
ticker: t,
|
|
10
10
|
leadingContent: e,
|
|
@@ -107,7 +107,7 @@ const N = ({
|
|
|
107
107
|
export {
|
|
108
108
|
C as NavBar,
|
|
109
109
|
B as NavBarBackButton,
|
|
110
|
-
|
|
110
|
+
f as NavBarCoinCapsule,
|
|
111
111
|
g as NavBarDescription,
|
|
112
112
|
k as NavBarLeading,
|
|
113
113
|
x as NavBarTitle,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { cn as p } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
-
import { useMemo as k, useRef as _, useEffect as
|
|
4
|
-
const I = 4, v = 6, A = 4,
|
|
3
|
+
import { useMemo as k, useRef as _, useEffect as N, useCallback as x } from "react";
|
|
4
|
+
const I = 4, v = 6, A = 4, S = v + A, D = 200, X = ({ isActive: t, isShrunk: n }) => /* @__PURE__ */ i(
|
|
5
5
|
"span",
|
|
6
6
|
{
|
|
7
7
|
className: p(
|
|
@@ -15,13 +15,13 @@ const I = 4, v = 6, A = 4, D = v + A, N = 200, X = ({ isActive: t, isShrunk: n }
|
|
|
15
15
|
totalPages: n
|
|
16
16
|
}) => {
|
|
17
17
|
const s = _(t), d = t > s.current ? "forward" : "backward";
|
|
18
|
-
|
|
18
|
+
N(() => {
|
|
19
19
|
s.current = t;
|
|
20
20
|
}, [t]);
|
|
21
21
|
const f = I - 2, l = d === "forward" ? f : 1, m = n - 1, r = Math.min(n, I), o = Math.max(
|
|
22
22
|
0,
|
|
23
23
|
Math.min(t - l, m - (r - 1))
|
|
24
|
-
), h = r * v + (r - 1) * A, e = -o *
|
|
24
|
+
), h = r * v + (r - 1) * A, e = -o * S, c = o, u = o + r - 1, b = x(
|
|
25
25
|
(a) => a === t,
|
|
26
26
|
[t]
|
|
27
27
|
), M = x(
|
|
@@ -69,7 +69,7 @@ const I = 4, v = 6, A = 4, D = v + A, N = 200, X = ({ isActive: t, isShrunk: n }
|
|
|
69
69
|
className: "flex flex-row items-center gap-4",
|
|
70
70
|
style: {
|
|
71
71
|
transform: `translateX(${m}px)`,
|
|
72
|
-
transition: `transform ${
|
|
72
|
+
transition: `transform ${D}ms ease-out`
|
|
73
73
|
},
|
|
74
74
|
children: h.map((e) => /* @__PURE__ */ i(
|
|
75
75
|
X,
|