@ledgerhq/lumen-ui-react 0.1.62 → 0.1.64
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +80 -78
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +7 -25
- package/dist/lib/Components/core/Spot/Spot.d.ts.map +1 -1
- package/dist/lib/Components/core/Spot/Spot.js +33 -102
- package/dist/lib/Components/core/Spot/SpotNumber.d.ts +16 -0
- package/dist/lib/Components/core/Spot/SpotNumber.d.ts.map +1 -0
- package/dist/lib/Components/core/Spot/SpotNumber.js +46 -0
- package/dist/lib/Components/core/Spot/index.d.ts +1 -0
- package/dist/lib/Components/core/Spot/index.d.ts.map +1 -1
- package/dist/lib/Components/core/Spot/styles.d.ts +14 -0
- package/dist/lib/Components/core/Spot/styles.d.ts.map +1 -0
- package/dist/lib/Components/core/Spot/styles.js +275 -0
- package/dist/lib/Components/core/Spot/types.d.ts +27 -38
- package/dist/lib/Components/core/Spot/types.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/lib/Components/core/Table/Table.js +64 -63
- 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/Tile/Tile.d.ts +2 -2
- 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/symbols/icons/AiBubble.d.ts +29 -0
- package/dist/lib/Components/symbols/icons/AiBubble.d.ts.map +1 -0
- package/dist/lib/Components/symbols/icons/AiBubble.js +30 -0
- package/dist/lib/Components/symbols/icons/ArrowBottomLeft.d.ts +29 -0
- package/dist/lib/Components/symbols/icons/ArrowBottomLeft.d.ts.map +1 -0
- package/dist/lib/Components/symbols/icons/ArrowBottomLeft.js +27 -0
- package/dist/lib/Components/symbols/icons/Bug.js +3 -3
- package/dist/lib/Components/symbols/icons/Hourglass.d.ts +29 -0
- package/dist/lib/Components/symbols/icons/Hourglass.d.ts.map +1 -0
- package/dist/lib/Components/symbols/icons/Hourglass.js +27 -0
- package/dist/lib/Components/symbols/icons/Repeat.d.ts +29 -0
- package/dist/lib/Components/symbols/icons/Repeat.d.ts.map +1 -0
- package/dist/lib/Components/symbols/icons/Repeat.js +27 -0
- package/dist/lib/Components/symbols/icons/Robot.d.ts +29 -0
- package/dist/lib/Components/symbols/icons/Robot.d.ts.map +1 -0
- package/dist/lib/Components/symbols/icons/Robot.js +29 -0
- package/dist/lib/Components/symbols/icons/Switch.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Switch.js +24 -12
- package/dist/lib/Components/symbols/icons/Wifi.d.ts +29 -0
- package/dist/lib/Components/symbols/icons/Wifi.d.ts.map +1 -0
- package/dist/lib/Components/symbols/icons/Wifi.js +36 -0
- package/dist/lib/Components/symbols/index.d.ts +6 -0
- package/dist/lib/Components/symbols/index.d.ts.map +1 -1
- package/dist/lib/Components/symbols/index.js +610 -598
- 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 +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
|
@@ -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,
|
|
@@ -1,33 +1,33 @@
|
|
|
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
|
-
import { Button as
|
|
8
|
-
import { ChevronRight as
|
|
7
|
+
import { Button as k } from "../Button/Button.js";
|
|
8
|
+
import { ChevronRight as A } from "../../symbols/icons/ChevronRight.js";
|
|
9
9
|
const R = ({
|
|
10
10
|
page: p,
|
|
11
|
-
totalPages:
|
|
11
|
+
totalPages: i,
|
|
12
12
|
onPageChange: r,
|
|
13
13
|
siblingCount: c = 1,
|
|
14
14
|
className: l,
|
|
15
15
|
ref: m,
|
|
16
16
|
...u
|
|
17
17
|
}) => {
|
|
18
|
-
const { t:
|
|
19
|
-
if (
|
|
18
|
+
const { t: e } = v();
|
|
19
|
+
if (i <= 0)
|
|
20
20
|
return null;
|
|
21
|
-
const a = Math.min(Math.max(p, 1),
|
|
21
|
+
const a = Math.min(Math.max(p, 1), i), b = Math.max(c, 0), d = h(
|
|
22
22
|
a,
|
|
23
|
-
|
|
23
|
+
i,
|
|
24
24
|
b
|
|
25
25
|
);
|
|
26
26
|
return /* @__PURE__ */ g(
|
|
27
27
|
"nav",
|
|
28
28
|
{
|
|
29
29
|
ref: m,
|
|
30
|
-
"aria-label":
|
|
30
|
+
"aria-label": e("components.pagination.navigationAriaLabel"),
|
|
31
31
|
className: x("flex items-center gap-8 overflow-x-auto p-4", l),
|
|
32
32
|
...u,
|
|
33
33
|
children: [
|
|
@@ -39,7 +39,7 @@ const R = ({
|
|
|
39
39
|
size: "sm",
|
|
40
40
|
appearance: "gray",
|
|
41
41
|
disabled: a <= 1,
|
|
42
|
-
"aria-label":
|
|
42
|
+
"aria-label": e("components.pagination.previousPageAriaLabel"),
|
|
43
43
|
onClick: () => r(a - 1)
|
|
44
44
|
}
|
|
45
45
|
),
|
|
@@ -56,13 +56,13 @@ const R = ({
|
|
|
56
56
|
);
|
|
57
57
|
const t = n === a;
|
|
58
58
|
return /* @__PURE__ */ o(
|
|
59
|
-
|
|
59
|
+
k,
|
|
60
60
|
{
|
|
61
61
|
type: "button",
|
|
62
62
|
size: "sm",
|
|
63
63
|
appearance: t ? "gray" : "no-background",
|
|
64
64
|
className: "shrink-0",
|
|
65
|
-
"aria-label":
|
|
65
|
+
"aria-label": e("components.pagination.pageAriaLabel", {
|
|
66
66
|
page: n
|
|
67
67
|
}),
|
|
68
68
|
"aria-current": t ? "page" : void 0,
|
|
@@ -76,11 +76,11 @@ const R = ({
|
|
|
76
76
|
s,
|
|
77
77
|
{
|
|
78
78
|
type: "button",
|
|
79
|
-
icon:
|
|
79
|
+
icon: A,
|
|
80
80
|
size: "sm",
|
|
81
81
|
appearance: "gray",
|
|
82
|
-
disabled: a >=
|
|
83
|
-
"aria-label":
|
|
82
|
+
disabled: a >= i,
|
|
83
|
+
"aria-label": e("components.pagination.nextPageAriaLabel"),
|
|
84
84
|
onClick: () => r(a + 1)
|
|
85
85
|
}
|
|
86
86
|
)
|
|
@@ -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,7 +39,7 @@ 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"
|
|
@@ -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,17 +110,17 @@ 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
|
}
|
|
118
118
|
)
|
|
119
119
|
] });
|
|
120
|
-
},
|
|
120
|
+
}, A = c;
|
|
121
121
|
export {
|
|
122
122
|
B as Popover,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
V as PopoverContent,
|
|
124
|
+
O as PopoverTrigger,
|
|
125
|
+
A as createPopoverHandle
|
|
126
126
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { cn as t } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
-
import { cva as
|
|
3
|
+
import { cva as n } from "class-variance-authority";
|
|
4
4
|
import { BaseInput as c } from "../../internal/BaseInput/BaseInput.js";
|
|
5
5
|
import { Search as d } from "../../symbols/icons/Search.js";
|
|
6
|
-
const m =
|
|
6
|
+
const m = n("", {
|
|
7
7
|
variants: {
|
|
8
8
|
appearance: {
|
|
9
9
|
plain: "",
|
|
@@ -13,7 +13,7 @@ const m = e("", {
|
|
|
13
13
|
defaultVariants: {
|
|
14
14
|
appearance: "plain"
|
|
15
15
|
}
|
|
16
|
-
}), l =
|
|
16
|
+
}), l = n("", {
|
|
17
17
|
variants: {
|
|
18
18
|
appearance: {
|
|
19
19
|
plain: "",
|
|
@@ -24,7 +24,7 @@ const m = e("", {
|
|
|
24
24
|
appearance: "plain"
|
|
25
25
|
}
|
|
26
26
|
}), x = ({
|
|
27
|
-
ref:
|
|
27
|
+
ref: e,
|
|
28
28
|
appearance: a = "plain",
|
|
29
29
|
className: s,
|
|
30
30
|
inputClassName: p,
|
|
@@ -33,7 +33,7 @@ const m = e("", {
|
|
|
33
33
|
}) => /* @__PURE__ */ r(
|
|
34
34
|
c,
|
|
35
35
|
{
|
|
36
|
-
ref:
|
|
36
|
+
ref: e,
|
|
37
37
|
prefix: /* @__PURE__ */ r(
|
|
38
38
|
d,
|
|
39
39
|
{
|
|
@@ -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"}
|