@ledgerhq/lumen-ui-react 0.1.61 → 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 +80 -63
- 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 +17 -17
- package/dist/lib/Components/core/AmountInput/useAmountInputValue/useAmountInputValue.js +3 -3
- package/dist/lib/Components/core/Avatar/Avatar.js +7 -7
- package/dist/lib/Components/core/Avatar/resolveAvatarColor.js +2 -2
- package/dist/lib/Components/core/AvatarButton/AvatarButton.js +2 -2
- package/dist/lib/Components/core/Banner/Banner.js +9 -9
- package/dist/lib/Components/core/Button/Button.js +4 -4
- package/dist/lib/Components/core/Card/Card.js +15 -15
- package/dist/lib/Components/core/CardButton/CardButton.d.ts +2 -0
- package/dist/lib/Components/core/CardButton/CardButton.d.ts.map +1 -1
- package/dist/lib/Components/core/CardButton/CardButton.js +4 -4
- package/dist/lib/Components/core/ContentBanner/ContentBanner.js +1 -1
- package/dist/lib/Components/core/DataTable/DataTable.js +42 -42
- 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 +11 -11
- package/dist/lib/Components/core/DotSymbol/DotSymbol.js +7 -7
- package/dist/lib/Components/core/Link/Link.d.ts +1 -1
- package/dist/lib/Components/core/Link/Link.d.ts.map +1 -1
- package/dist/lib/Components/core/Link/Link.js +25 -23
- package/dist/lib/Components/core/Link/types.d.ts +1 -1
- package/dist/lib/Components/core/Link/types.d.ts.map +1 -1
- package/dist/lib/Components/core/ListItem/ListItem.js +8 -8
- package/dist/lib/Components/core/MediaBanner/MediaBanner.js +4 -4
- 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 +1 -1
- package/dist/lib/Components/core/Popover/Popover.js +13 -13
- package/dist/lib/Components/core/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/lib/Components/core/SegmentedControl/SegmentedControl.js +80 -84
- package/dist/lib/Components/core/Select/Select.d.ts.map +1 -1
- package/dist/lib/Components/core/Select/Select.js +108 -107
- package/dist/lib/Components/core/SideBar/SideBar.js +33 -33
- package/dist/lib/Components/core/Spinner/Spinner.js +1 -1
- package/dist/lib/Components/core/Spot/Spot.js +13 -13
- package/dist/lib/Components/core/Stepper/Stepper.d.ts +4 -3
- package/dist/lib/Components/core/Stepper/Stepper.d.ts.map +1 -1
- package/dist/lib/Components/core/Stepper/Stepper.js +137 -62
- package/dist/lib/Components/core/Stepper/types.d.ts +12 -2
- package/dist/lib/Components/core/Stepper/types.d.ts.map +1 -1
- 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/Table/Table.js +10 -10
- 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/Timeline/Timeline.d.ts +54 -0
- package/dist/lib/Components/core/Timeline/Timeline.d.ts.map +1 -0
- package/dist/lib/Components/core/Timeline/Timeline.js +228 -0
- package/dist/lib/Components/core/Timeline/index.d.ts +3 -0
- package/dist/lib/Components/core/Timeline/index.d.ts.map +1 -0
- package/dist/lib/Components/core/Timeline/types.d.ts +148 -0
- package/dist/lib/Components/core/Timeline/types.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/Toast.d.ts +25 -0
- package/dist/lib/Components/core/Toast/Toast.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/Toast.js +68 -0
- package/dist/lib/Components/core/Toast/Toaster.d.ts +27 -0
- package/dist/lib/Components/core/Toast/Toaster.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/Toaster.js +92 -0
- package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts +15 -0
- package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/hooks/useToastCollapse.js +15 -0
- package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts +24 -0
- package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.js +27 -0
- package/dist/lib/Components/core/Toast/index.d.ts +5 -0
- package/dist/lib/Components/core/Toast/index.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/styles.d.ts +20 -0
- package/dist/lib/Components/core/Toast/styles.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/styles.js +77 -0
- package/dist/lib/Components/core/Toast/types.d.ts +81 -0
- package/dist/lib/Components/core/Toast/types.d.ts.map +1 -0
- package/dist/lib/Components/core/Trend/Trend.js +3 -3
- package/dist/lib/Components/core/index.d.ts +2 -0
- package/dist/lib/Components/core/index.d.ts.map +1 -1
- package/dist/lib/Components/internal/BaseButton/BaseButton.js +7 -7
- package/dist/lib/Components/internal/BaseInput/BaseInput.js +22 -22
- package/dist/lib/Components/internal/BaseInput/BaseInputMultiline.js +12 -12
- 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/createIcon.js +3 -3
- 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 +2 -2
- 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/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 +6 -10
- 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 +353 -140
- 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 +4 -6
- 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
|
@@ -59,14 +59,14 @@ const [L, l] = b("ListItemTrailing", {
|
|
|
59
59
|
className: r,
|
|
60
60
|
disabled: n = !1,
|
|
61
61
|
density: f = "expanded",
|
|
62
|
-
priority:
|
|
62
|
+
priority: v = "end",
|
|
63
63
|
active: u = !1,
|
|
64
|
-
...
|
|
64
|
+
...x
|
|
65
65
|
} = s, c = d({
|
|
66
66
|
consumerName: "ListItem",
|
|
67
67
|
mergeWith: { disabled: n }
|
|
68
68
|
});
|
|
69
|
-
return /* @__PURE__ */ a(p, { value: { disabled: c }, children: /* @__PURE__ */ a(N, { value: { priority:
|
|
69
|
+
return /* @__PURE__ */ a(p, { value: { disabled: c }, children: /* @__PURE__ */ a(N, { value: { priority: v }, children: /* @__PURE__ */ a(
|
|
70
70
|
"div",
|
|
71
71
|
{
|
|
72
72
|
ref: t,
|
|
@@ -81,7 +81,7 @@ const [L, l] = b("ListItemTrailing", {
|
|
|
81
81
|
}),
|
|
82
82
|
r
|
|
83
83
|
),
|
|
84
|
-
...
|
|
84
|
+
...x,
|
|
85
85
|
children: i
|
|
86
86
|
}
|
|
87
87
|
) }) });
|
|
@@ -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
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
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
|
-
import { useState as
|
|
5
|
-
import { useCommonTranslation as
|
|
4
|
+
import { useState as g, useEffect as h } from "react";
|
|
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(
|
|
@@ -26,8 +26,8 @@ const y = b(
|
|
|
26
26
|
onClick: o,
|
|
27
27
|
...m
|
|
28
28
|
}) => {
|
|
29
|
-
const { t: u } =
|
|
30
|
-
|
|
29
|
+
const { t: u } = x(), [f, l] = g(!1);
|
|
30
|
+
h(() => {
|
|
31
31
|
l(!1);
|
|
32
32
|
}, [t]);
|
|
33
33
|
const p = t && !f;
|
|
@@ -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
|
};
|
|
@@ -20,7 +20,7 @@ import { MenuGroupLabel as D } from "../../../../node_modules/@base-ui/react/esm
|
|
|
20
20
|
import { MenuGroup as O } from "../../../../node_modules/@base-ui/react/esm/menu/group/MenuGroup.js";
|
|
21
21
|
import { MenuSubmenuRoot as V } from "../../../../node_modules/@base-ui/react/esm/menu/submenu-root/MenuSubmenuRoot.js";
|
|
22
22
|
import { MenuSubmenuTrigger as L } from "../../../../node_modules/@base-ui/react/esm/menu/submenu-trigger/MenuSubmenuTrigger.js";
|
|
23
|
-
import { MenuRadioGroup as
|
|
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
|
);
|
|
@@ -100,12 +100,12 @@ function fe({ ...e }) {
|
|
|
100
100
|
function ge({ ...e }) {
|
|
101
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)),
|
|
@@ -123,7 +123,7 @@ const Me = ({
|
|
|
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,
|
|
@@ -175,17 +175,17 @@ const Me = ({
|
|
|
175
175
|
closeOnClick: m = !0,
|
|
176
176
|
...d
|
|
177
177
|
}) => {
|
|
178
|
-
const
|
|
178
|
+
const l = b({
|
|
179
179
|
consumerName: "MenuItem",
|
|
180
180
|
mergeWith: { disabled: n }
|
|
181
181
|
});
|
|
182
|
-
return /* @__PURE__ */ t(h, { value: { disabled:
|
|
182
|
+
return /* @__PURE__ */ t(h, { value: { disabled: l }, children: /* @__PURE__ */ t(
|
|
183
183
|
T,
|
|
184
184
|
{
|
|
185
185
|
ref: e,
|
|
186
186
|
"data-slot": "menu-item",
|
|
187
187
|
label: s,
|
|
188
|
-
disabled:
|
|
188
|
+
disabled: l,
|
|
189
189
|
closeOnClick: m,
|
|
190
190
|
className: r(c({ appearance: o }), a),
|
|
191
191
|
onClick: i,
|
|
@@ -201,14 +201,14 @@ const Me = ({
|
|
|
201
201
|
onCheckedChange: s,
|
|
202
202
|
disabled: m,
|
|
203
203
|
label: d,
|
|
204
|
-
closeOnClick:
|
|
204
|
+
closeOnClick: l,
|
|
205
205
|
...f
|
|
206
206
|
}) => {
|
|
207
|
-
const
|
|
207
|
+
const u = b({
|
|
208
208
|
consumerName: "MenuCheckboxItem",
|
|
209
209
|
mergeWith: { disabled: m }
|
|
210
210
|
});
|
|
211
|
-
return /* @__PURE__ */ t(h, { value: { disabled:
|
|
211
|
+
return /* @__PURE__ */ t(h, { value: { disabled: u }, children: /* @__PURE__ */ p(
|
|
212
212
|
I,
|
|
213
213
|
{
|
|
214
214
|
ref: e,
|
|
@@ -216,14 +216,14 @@ const Me = ({
|
|
|
216
216
|
label: d,
|
|
217
217
|
checked: n,
|
|
218
218
|
defaultChecked: i,
|
|
219
|
-
disabled:
|
|
220
|
-
closeOnClick:
|
|
219
|
+
disabled: u,
|
|
220
|
+
closeOnClick: l ?? !1,
|
|
221
221
|
className: r(c(), a),
|
|
222
222
|
onCheckedChange: s,
|
|
223
223
|
...f,
|
|
224
224
|
children: [
|
|
225
225
|
o,
|
|
226
|
-
/* @__PURE__ */ t("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ t($, { children: /* @__PURE__ */ t(x, { disabled:
|
|
226
|
+
/* @__PURE__ */ t("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ t($, { children: /* @__PURE__ */ t(x, { disabled: u, size: 24, className: "text-active" }) }) })
|
|
227
227
|
]
|
|
228
228
|
}
|
|
229
229
|
) });
|
|
@@ -236,10 +236,10 @@ const Me = ({
|
|
|
236
236
|
onCheckedChange: s,
|
|
237
237
|
disabled: m,
|
|
238
238
|
label: d,
|
|
239
|
-
closeOnClick:
|
|
239
|
+
closeOnClick: l,
|
|
240
240
|
...f
|
|
241
241
|
}) => {
|
|
242
|
-
const
|
|
242
|
+
const u = b({
|
|
243
243
|
consumerName: "MenuSwitchItem",
|
|
244
244
|
mergeWith: { disabled: m }
|
|
245
245
|
}), [g, S] = R({
|
|
@@ -247,15 +247,15 @@ const Me = ({
|
|
|
247
247
|
onChange: s,
|
|
248
248
|
defaultProp: i ?? !1
|
|
249
249
|
});
|
|
250
|
-
return /* @__PURE__ */ t(h, { value: { disabled:
|
|
250
|
+
return /* @__PURE__ */ t(h, { value: { disabled: u }, children: /* @__PURE__ */ p(
|
|
251
251
|
I,
|
|
252
252
|
{
|
|
253
253
|
ref: e,
|
|
254
254
|
"data-slot": "menu-switch-item",
|
|
255
255
|
label: d,
|
|
256
256
|
checked: g,
|
|
257
|
-
disabled:
|
|
258
|
-
closeOnClick:
|
|
257
|
+
disabled: u,
|
|
258
|
+
closeOnClick: l ?? !1,
|
|
259
259
|
className: r(c(), a),
|
|
260
260
|
onCheckedChange: S,
|
|
261
261
|
...f,
|
|
@@ -265,7 +265,7 @@ const Me = ({
|
|
|
265
265
|
y,
|
|
266
266
|
{
|
|
267
267
|
selected: g,
|
|
268
|
-
disabled:
|
|
268
|
+
disabled: u,
|
|
269
269
|
"aria-hidden": !0,
|
|
270
270
|
tabIndex: -1
|
|
271
271
|
}
|
|
@@ -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,12 +303,12 @@ 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,
|
|
@@ -317,8 +317,8 @@ export {
|
|
|
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,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
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
5
|
ticker: t,
|
|
6
6
|
leadingContent: n,
|
|
7
|
-
className:
|
|
8
|
-
}) => /* @__PURE__ */
|
|
7
|
+
className: r
|
|
8
|
+
}) => /* @__PURE__ */ a(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
ref: s,
|
|
12
12
|
className: c(
|
|
13
13
|
"flex items-center gap-8 rounded-full bg-muted-transparent p-8 pr-12",
|
|
14
|
-
|
|
14
|
+
r
|
|
15
15
|
),
|
|
16
16
|
"data-slot": "coin-capsule",
|
|
17
17
|
children: [
|
|
@@ -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,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as g, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { cn as x } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { getPaginationRange as h } from "./getPaginationRange.js";
|
|
4
|
-
import { useCommonTranslation as v } from "../../../../
|
|
4
|
+
import { useCommonTranslation as v } from "../../../../translations/translations.js";
|
|
5
5
|
import { IconButton as s } from "../IconButton/IconButton.js";
|
|
6
6
|
import { ChevronLeft as y } from "../../symbols/icons/ChevronLeft.js";
|
|
7
7
|
import { Button as k } from "../Button/Button.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import { createSafeContext as l, cn as
|
|
2
|
+
import { createSafeContext as l, cn as s } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as v } from "class-variance-authority";
|
|
4
4
|
import { createPopoverHandle as c } from "../../../../node_modules/@base-ui/react/esm/popover/store/PopoverHandle.js";
|
|
5
5
|
import { PopoverRoot as f } from "../../../../node_modules/@base-ui/react/esm/popover/root/PopoverRoot.js";
|
|
@@ -39,11 +39,11 @@ const [b, y] = l("Popover"), C = v(
|
|
|
39
39
|
width: "fit"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
),
|
|
42
|
+
), N = s(
|
|
43
43
|
"fixed inset-0 z-dialog-overlay bg-canvas-overlay-subtle",
|
|
44
44
|
"data-open:animate-fade-in",
|
|
45
45
|
"data-closed:animate-fade-out"
|
|
46
|
-
),
|
|
46
|
+
), B = ({
|
|
47
47
|
open: o,
|
|
48
48
|
defaultOpen: a,
|
|
49
49
|
onOpenChange: r,
|
|
@@ -60,7 +60,7 @@ const [b, y] = l("Popover"), C = v(
|
|
|
60
60
|
handle: n,
|
|
61
61
|
children: i
|
|
62
62
|
}
|
|
63
|
-
) }),
|
|
63
|
+
) }), O = ({
|
|
64
64
|
handle: o,
|
|
65
65
|
payload: a,
|
|
66
66
|
render: r,
|
|
@@ -73,17 +73,17 @@ const [b, y] = l("Popover"), C = v(
|
|
|
73
73
|
handle: o,
|
|
74
74
|
payload: a,
|
|
75
75
|
render: r,
|
|
76
|
-
className:
|
|
76
|
+
className: s("data-popup-open:z-menu", e),
|
|
77
77
|
...n
|
|
78
78
|
}
|
|
79
|
-
),
|
|
79
|
+
), V = ({
|
|
80
80
|
side: o = "bottom",
|
|
81
81
|
sideOffset: a = 8,
|
|
82
82
|
align: r = "start",
|
|
83
83
|
width: e = "fit",
|
|
84
84
|
initialFocus: n = !1,
|
|
85
85
|
className: i,
|
|
86
|
-
children:
|
|
86
|
+
children: p
|
|
87
87
|
}) => {
|
|
88
88
|
const { overlay: d } = y({
|
|
89
89
|
consumerName: "PopoverContent",
|
|
@@ -94,7 +94,7 @@ const [b, y] = l("Popover"), C = v(
|
|
|
94
94
|
g,
|
|
95
95
|
{
|
|
96
96
|
"data-slot": "popover-overlay",
|
|
97
|
-
className:
|
|
97
|
+
className: N
|
|
98
98
|
}
|
|
99
99
|
),
|
|
100
100
|
/* @__PURE__ */ t(
|
|
@@ -110,8 +110,8 @@ const [b, y] = l("Popover"), C = v(
|
|
|
110
110
|
{
|
|
111
111
|
"data-slot": "popover-content",
|
|
112
112
|
initialFocus: n,
|
|
113
|
-
className:
|
|
114
|
-
children:
|
|
113
|
+
className: s(C({ width: e, side: o }), i),
|
|
114
|
+
children: p
|
|
115
115
|
}
|
|
116
116
|
)
|
|
117
117
|
}
|
|
@@ -119,8 +119,8 @@ const [b, y] = l("Popover"), C = v(
|
|
|
119
119
|
] });
|
|
120
120
|
}, A = c;
|
|
121
121
|
export {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
B as Popover,
|
|
123
|
+
V as PopoverContent,
|
|
124
|
+
O as PopoverTrigger,
|
|
125
125
|
A as createPopoverHandle
|
|
126
126
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAGV,YAAY,EAEb,MAAM,OAAO,CAAC;AAQf,OAAO,KAAK,EACV,2BAA2B,EAC3B,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAGV,YAAY,EAEb,MAAM,OAAO,CAAC;AAQf,OAAO,KAAK,EACV,2BAA2B,EAC3B,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AA0PjB,wBAAgB,sBAAsB,CACpC,CAAC,SAAS,qBAAqB,GAAG,qBAAqB,EACvD,EACA,KAAK,EACL,QAAQ,EACR,IAAI,EAAE,IAAI,EACV,eAAe,EACf,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,2BAA2B,CAAC,CAAC,CAAC,2CAuChC;AAED,wBAAgB,gBAAgB,CAC9B,CAAC,SAAS,qBAAqB,GAAG,qBAAqB,EACvD,EACA,aAAa,EACb,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,QAAQ,EAAE,YAAY,EACtB,UAAyB,EACzB,SAAmB,EACnB,GAAG,KAAK,EACT,EAAE,qBAAqB,CAAC,CAAC,CAAC,2CAqC1B;AAED,wBAAgB,sBAAsB,CACpC,CAAC,SAAS,qBAAqB,GAAG,KAAK,KACpC;IACH,gBAAgB,EAAE,CAAC,KAAK,EAAE,qBAAqB,CAAC,CAAC,CAAC,KAAK,YAAY,CAAC;IACpE,sBAAsB,EAAE,CACtB,KAAK,EAAE,2BAA2B,CAAC,CAAC,CAAC,KAClC,YAAY,CAAC;CACnB,CAEA"}
|