@ledgerhq/lumen-ui-react 0.1.60 → 0.1.62
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.js +150 -132
- package/dist/lib/Components/core/AmountInput/AmountInput.d.ts +1 -1
- package/dist/lib/Components/core/AmountInput/AmountInput.d.ts.map +1 -1
- package/dist/lib/Components/core/AmountInput/AmountInput.js +53 -51
- package/dist/lib/Components/core/AmountInput/useAmountInputValue/useAmountInputValue.js +3 -3
- package/dist/lib/Components/core/Avatar/resolveAvatarColor.js +2 -2
- package/dist/lib/Components/core/AvatarButton/AvatarButton.js +6 -6
- package/dist/lib/Components/core/Banner/Banner.js +8 -8
- package/dist/lib/Components/core/Button/Button.js +10 -10
- package/dist/lib/Components/core/Card/Card.js +6 -6
- 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/DataTable/DataTable.js +7 -7
- package/dist/lib/Components/core/Divider/Divider.js +8 -8
- package/dist/lib/Components/core/DotCount/DotCount.js +3 -3
- package/dist/lib/Components/core/DotIcon/DotIcon.js +9 -9
- package/dist/lib/Components/core/DotSymbol/DotSymbol.js +16 -16
- 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 +21 -20
- 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 +4 -4
- package/dist/lib/Components/core/MediaBanner/MediaBanner.js +19 -19
- package/dist/lib/Components/core/MediaButton/MediaButton.js +2 -2
- package/dist/lib/Components/core/Menu/Menu.d.ts +3 -2
- package/dist/lib/Components/core/Menu/Menu.d.ts.map +1 -1
- package/dist/lib/Components/core/Menu/Menu.js +157 -108
- package/dist/lib/Components/core/Menu/types.d.ts +31 -0
- package/dist/lib/Components/core/Menu/types.d.ts.map +1 -1
- package/dist/lib/Components/core/NavBar/CoinCapsule.js +8 -8
- package/dist/lib/Components/core/Pagination/Pagination.js +14 -14
- package/dist/lib/Components/core/Popover/Popover.js +6 -6
- package/dist/lib/Components/core/SearchInput/SearchInput.js +5 -5
- package/dist/lib/Components/core/SegmentedControl/SegmentedControl.js +19 -19
- package/dist/lib/Components/core/Select/Select.js +8 -8
- package/dist/lib/Components/core/SideBar/SideBar.js +14 -14
- package/dist/lib/Components/core/Spinner/Spinner.js +4 -4
- package/dist/lib/Components/core/Spot/Spot.js +9 -9
- 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 -65
- 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/Switch/Switch.js +5 -5
- package/dist/lib/Components/core/Table/Table.js +9 -9
- package/dist/lib/Components/core/TileButton/TileButton.js +8 -8
- 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 +2 -2
- 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 +2 -2
- package/dist/lib/Components/internal/BaseInput/BaseInput.js +9 -9
- package/dist/lib/Components/internal/BaseInput/BaseInputMultiline.js +12 -12
- package/dist/lib/Components/internal/BaseTag/BaseTag.js +8 -8
- package/dist/lib/Components/symbols/Icon/Icon.js +4 -4
- package/dist/lib/Components/symbols/Icon/createIcon.js +8 -8
- package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +6 -6
- package/dist/lib/Components/visualization/DonutChart/donutSizeContext.js +2 -2
- package/dist/lib/Components/visualization/Legend/Legend.js +8 -8
- package/dist/libs/utils-shared/dist/index.js +306 -141
- package/dist/package.json +3 -3
- package/package.json +3 -3
|
@@ -41,8 +41,8 @@ const u = x(
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
), z = ({
|
|
44
|
-
ref:
|
|
45
|
-
className:
|
|
44
|
+
ref: e,
|
|
45
|
+
className: a,
|
|
46
46
|
appearance: t,
|
|
47
47
|
size: s,
|
|
48
48
|
variant: r,
|
|
@@ -50,9 +50,9 @@ const u = x(
|
|
|
50
50
|
label: i,
|
|
51
51
|
disabled: c,
|
|
52
52
|
leadingContent: d,
|
|
53
|
-
...
|
|
53
|
+
...b
|
|
54
54
|
}) => {
|
|
55
|
-
const
|
|
55
|
+
const l = g({
|
|
56
56
|
consumerName: n,
|
|
57
57
|
mergeWith: { disabled: c }
|
|
58
58
|
});
|
|
@@ -60,11 +60,11 @@ const u = x(
|
|
|
60
60
|
"div",
|
|
61
61
|
{
|
|
62
62
|
className: o(
|
|
63
|
-
u({ appearance: t, size: s, variant: r, disabled: !!
|
|
64
|
-
|
|
63
|
+
u({ appearance: t, size: s, variant: r, disabled: !!l }),
|
|
64
|
+
a
|
|
65
65
|
),
|
|
66
|
-
ref:
|
|
67
|
-
...
|
|
66
|
+
ref: e,
|
|
67
|
+
...b,
|
|
68
68
|
children: [
|
|
69
69
|
d,
|
|
70
70
|
/* @__PURE__ */ m("span", { className: "truncate", children: i })
|
|
@@ -22,8 +22,8 @@ const h = a("inline-block shrink-0", {
|
|
|
22
22
|
size: n = 24,
|
|
23
23
|
className: i = "",
|
|
24
24
|
children: c,
|
|
25
|
-
viewBox:
|
|
26
|
-
xmlns:
|
|
25
|
+
viewBox: e,
|
|
26
|
+
xmlns: r,
|
|
27
27
|
...t
|
|
28
28
|
}) => k(
|
|
29
29
|
"svg",
|
|
@@ -31,8 +31,8 @@ const h = a("inline-block shrink-0", {
|
|
|
31
31
|
ref: o,
|
|
32
32
|
fill: "none",
|
|
33
33
|
"aria-hidden": "true",
|
|
34
|
-
xmlns:
|
|
35
|
-
viewBox:
|
|
34
|
+
xmlns: r,
|
|
35
|
+
viewBox: e,
|
|
36
36
|
className: s(h({ size: n }), "inline-block", i),
|
|
37
37
|
...t
|
|
38
38
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useDisabledContext as c, cn as i } from "../../../../libs/utils-shared/dist/index.js";
|
|
2
|
-
import { createElement as
|
|
3
|
-
import { Icon as
|
|
4
|
-
const x = (e,
|
|
5
|
-
const
|
|
2
|
+
import { createElement as p } from "react";
|
|
3
|
+
import { Icon as d } from "./Icon.js";
|
|
4
|
+
const x = (e, r) => {
|
|
5
|
+
const t = ({
|
|
6
6
|
ref: o,
|
|
7
7
|
className: s,
|
|
8
8
|
disabled: a,
|
|
@@ -12,15 +12,15 @@ const x = (e, t) => {
|
|
|
12
12
|
consumerName: e,
|
|
13
13
|
mergeWith: { disabled: a }
|
|
14
14
|
});
|
|
15
|
-
return
|
|
15
|
+
return p(d, {
|
|
16
16
|
ref: o,
|
|
17
17
|
className: i(s, n && "text-disabled"),
|
|
18
|
-
viewBox:
|
|
18
|
+
viewBox: r.props.viewBox,
|
|
19
19
|
...m,
|
|
20
|
-
children:
|
|
20
|
+
children: r.props.children
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
|
-
return
|
|
23
|
+
return t.displayName = e, t;
|
|
24
24
|
};
|
|
25
25
|
export {
|
|
26
26
|
x as default
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { cn as n } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
-
const
|
|
4
|
-
ref:
|
|
5
|
-
className:
|
|
3
|
+
const i = ({
|
|
4
|
+
ref: e,
|
|
5
|
+
className: t,
|
|
6
6
|
...r
|
|
7
7
|
}) => /* @__PURE__ */ o(
|
|
8
8
|
"div",
|
|
9
9
|
{
|
|
10
|
-
ref:
|
|
10
|
+
ref: e,
|
|
11
11
|
className: n(
|
|
12
12
|
"pointer-events-auto flex min-w-0 flex-col items-center",
|
|
13
|
-
|
|
13
|
+
t
|
|
14
14
|
),
|
|
15
15
|
...r
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
i as DonutChartCenter
|
|
20
20
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createSafeContext as
|
|
2
|
-
const [o, r] =
|
|
1
|
+
import { createSafeContext as e } from "../../../../libs/utils-shared/dist/index.js";
|
|
2
|
+
const [o, r] = e("DonutChart", { size: "md" });
|
|
3
3
|
export {
|
|
4
4
|
o as DonutSizeProvider,
|
|
5
5
|
r as useDonutSizeContext
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { cn as
|
|
3
|
-
import { LegendItem as
|
|
2
|
+
import { cn as m } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { LegendItem as o } from "./LegendItem.js";
|
|
4
4
|
function i({
|
|
5
5
|
series: e,
|
|
6
|
-
ariaLabel:
|
|
7
|
-
className:
|
|
6
|
+
ariaLabel: l = "Legend",
|
|
7
|
+
className: a
|
|
8
8
|
}) {
|
|
9
9
|
return e.length === 0 ? null : /* @__PURE__ */ r(
|
|
10
10
|
"ul",
|
|
11
11
|
{
|
|
12
|
-
"aria-label":
|
|
13
|
-
className:
|
|
12
|
+
"aria-label": l,
|
|
13
|
+
className: m(
|
|
14
14
|
"m-0 flex list-none flex-wrap gap-x-16 gap-y-6 p-0",
|
|
15
|
-
|
|
15
|
+
a
|
|
16
16
|
),
|
|
17
|
-
children: e.map((n) => /* @__PURE__ */ r(
|
|
17
|
+
children: e.map((n) => /* @__PURE__ */ r(o, { item: n }, n.id))
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
20
|
}
|