@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.
Files changed (89) hide show
  1. package/dist/index.js +150 -132
  2. package/dist/lib/Components/core/AmountInput/AmountInput.d.ts +1 -1
  3. package/dist/lib/Components/core/AmountInput/AmountInput.d.ts.map +1 -1
  4. package/dist/lib/Components/core/AmountInput/AmountInput.js +53 -51
  5. package/dist/lib/Components/core/AmountInput/useAmountInputValue/useAmountInputValue.js +3 -3
  6. package/dist/lib/Components/core/Avatar/resolveAvatarColor.js +2 -2
  7. package/dist/lib/Components/core/AvatarButton/AvatarButton.js +6 -6
  8. package/dist/lib/Components/core/Banner/Banner.js +8 -8
  9. package/dist/lib/Components/core/Button/Button.js +10 -10
  10. package/dist/lib/Components/core/Card/Card.js +6 -6
  11. package/dist/lib/Components/core/CardButton/CardButton.d.ts +2 -0
  12. package/dist/lib/Components/core/CardButton/CardButton.d.ts.map +1 -1
  13. package/dist/lib/Components/core/CardButton/CardButton.js +4 -4
  14. package/dist/lib/Components/core/DataTable/DataTable.js +7 -7
  15. package/dist/lib/Components/core/Divider/Divider.js +8 -8
  16. package/dist/lib/Components/core/DotCount/DotCount.js +3 -3
  17. package/dist/lib/Components/core/DotIcon/DotIcon.js +9 -9
  18. package/dist/lib/Components/core/DotSymbol/DotSymbol.js +16 -16
  19. package/dist/lib/Components/core/Link/Link.d.ts +1 -1
  20. package/dist/lib/Components/core/Link/Link.d.ts.map +1 -1
  21. package/dist/lib/Components/core/Link/Link.js +21 -20
  22. package/dist/lib/Components/core/Link/types.d.ts +1 -1
  23. package/dist/lib/Components/core/Link/types.d.ts.map +1 -1
  24. package/dist/lib/Components/core/ListItem/ListItem.js +4 -4
  25. package/dist/lib/Components/core/MediaBanner/MediaBanner.js +19 -19
  26. package/dist/lib/Components/core/MediaButton/MediaButton.js +2 -2
  27. package/dist/lib/Components/core/Menu/Menu.d.ts +3 -2
  28. package/dist/lib/Components/core/Menu/Menu.d.ts.map +1 -1
  29. package/dist/lib/Components/core/Menu/Menu.js +157 -108
  30. package/dist/lib/Components/core/Menu/types.d.ts +31 -0
  31. package/dist/lib/Components/core/Menu/types.d.ts.map +1 -1
  32. package/dist/lib/Components/core/NavBar/CoinCapsule.js +8 -8
  33. package/dist/lib/Components/core/Pagination/Pagination.js +14 -14
  34. package/dist/lib/Components/core/Popover/Popover.js +6 -6
  35. package/dist/lib/Components/core/SearchInput/SearchInput.js +5 -5
  36. package/dist/lib/Components/core/SegmentedControl/SegmentedControl.js +19 -19
  37. package/dist/lib/Components/core/Select/Select.js +8 -8
  38. package/dist/lib/Components/core/SideBar/SideBar.js +14 -14
  39. package/dist/lib/Components/core/Spinner/Spinner.js +4 -4
  40. package/dist/lib/Components/core/Spot/Spot.js +9 -9
  41. package/dist/lib/Components/core/Stepper/Stepper.d.ts +4 -3
  42. package/dist/lib/Components/core/Stepper/Stepper.d.ts.map +1 -1
  43. package/dist/lib/Components/core/Stepper/Stepper.js +137 -65
  44. package/dist/lib/Components/core/Stepper/types.d.ts +12 -2
  45. package/dist/lib/Components/core/Stepper/types.d.ts.map +1 -1
  46. package/dist/lib/Components/core/Switch/Switch.js +5 -5
  47. package/dist/lib/Components/core/Table/Table.js +9 -9
  48. package/dist/lib/Components/core/TileButton/TileButton.js +8 -8
  49. package/dist/lib/Components/core/Timeline/Timeline.d.ts +54 -0
  50. package/dist/lib/Components/core/Timeline/Timeline.d.ts.map +1 -0
  51. package/dist/lib/Components/core/Timeline/Timeline.js +228 -0
  52. package/dist/lib/Components/core/Timeline/index.d.ts +3 -0
  53. package/dist/lib/Components/core/Timeline/index.d.ts.map +1 -0
  54. package/dist/lib/Components/core/Timeline/types.d.ts +148 -0
  55. package/dist/lib/Components/core/Timeline/types.d.ts.map +1 -0
  56. package/dist/lib/Components/core/Toast/Toast.d.ts +25 -0
  57. package/dist/lib/Components/core/Toast/Toast.d.ts.map +1 -0
  58. package/dist/lib/Components/core/Toast/Toast.js +68 -0
  59. package/dist/lib/Components/core/Toast/Toaster.d.ts +27 -0
  60. package/dist/lib/Components/core/Toast/Toaster.d.ts.map +1 -0
  61. package/dist/lib/Components/core/Toast/Toaster.js +92 -0
  62. package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts +15 -0
  63. package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts.map +1 -0
  64. package/dist/lib/Components/core/Toast/hooks/useToastCollapse.js +15 -0
  65. package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts +24 -0
  66. package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts.map +1 -0
  67. package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.js +27 -0
  68. package/dist/lib/Components/core/Toast/index.d.ts +5 -0
  69. package/dist/lib/Components/core/Toast/index.d.ts.map +1 -0
  70. package/dist/lib/Components/core/Toast/styles.d.ts +20 -0
  71. package/dist/lib/Components/core/Toast/styles.d.ts.map +1 -0
  72. package/dist/lib/Components/core/Toast/styles.js +77 -0
  73. package/dist/lib/Components/core/Toast/types.d.ts +81 -0
  74. package/dist/lib/Components/core/Toast/types.d.ts.map +1 -0
  75. package/dist/lib/Components/core/Trend/Trend.js +2 -2
  76. package/dist/lib/Components/core/index.d.ts +2 -0
  77. package/dist/lib/Components/core/index.d.ts.map +1 -1
  78. package/dist/lib/Components/internal/BaseButton/BaseButton.js +2 -2
  79. package/dist/lib/Components/internal/BaseInput/BaseInput.js +9 -9
  80. package/dist/lib/Components/internal/BaseInput/BaseInputMultiline.js +12 -12
  81. package/dist/lib/Components/internal/BaseTag/BaseTag.js +8 -8
  82. package/dist/lib/Components/symbols/Icon/Icon.js +4 -4
  83. package/dist/lib/Components/symbols/Icon/createIcon.js +8 -8
  84. package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +6 -6
  85. package/dist/lib/Components/visualization/DonutChart/donutSizeContext.js +2 -2
  86. package/dist/lib/Components/visualization/Legend/Legend.js +8 -8
  87. package/dist/libs/utils-shared/dist/index.js +306 -141
  88. package/dist/package.json +3 -3
  89. package/package.json +3 -3
@@ -41,8 +41,8 @@ const u = x(
41
41
  }
42
42
  }
43
43
  ), z = ({
44
- ref: a,
45
- className: e,
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
- ...l
53
+ ...b
54
54
  }) => {
55
- const b = g({
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: !!b }),
64
- e
63
+ u({ appearance: t, size: s, variant: r, disabled: !!l }),
64
+ a
65
65
  ),
66
- ref: a,
67
- ...l,
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: r,
26
- xmlns: e,
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: e,
35
- viewBox: r,
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 l } from "react";
3
- import { Icon as p } from "./Icon.js";
4
- const x = (e, t) => {
5
- const r = ({
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 l(p, {
15
+ return p(d, {
16
16
  ref: o,
17
17
  className: i(s, n && "text-disabled"),
18
- viewBox: t.props.viewBox,
18
+ viewBox: r.props.viewBox,
19
19
  ...m,
20
- children: t.props.children
20
+ children: r.props.children
21
21
  });
22
22
  };
23
- return r.displayName = e, r;
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 a = ({
4
- ref: t,
5
- className: e,
3
+ const i = ({
4
+ ref: e,
5
+ className: t,
6
6
  ...r
7
7
  }) => /* @__PURE__ */ o(
8
8
  "div",
9
9
  {
10
- ref: t,
10
+ ref: e,
11
11
  className: n(
12
12
  "pointer-events-auto flex min-w-0 flex-col items-center",
13
- e
13
+ t
14
14
  ),
15
15
  ...r
16
16
  }
17
17
  );
18
18
  export {
19
- a as DonutChartCenter
19
+ i as DonutChartCenter
20
20
  };
@@ -1,5 +1,5 @@
1
- import { createSafeContext as t } from "../../../../libs/utils-shared/dist/index.js";
2
- const [o, r] = t("DonutChart", { size: "md" });
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 t } from "../../../../libs/utils-shared/dist/index.js";
3
- import { LegendItem as m } from "./LegendItem.js";
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: a = "Legend",
7
- className: l
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": a,
13
- className: t(
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
- l
15
+ a
16
16
  ),
17
- children: e.map((n) => /* @__PURE__ */ r(m, { item: n }, n.id))
17
+ children: e.map((n) => /* @__PURE__ */ r(o, { item: n }, n.id))
18
18
  }
19
19
  );
20
20
  }