@ledgerhq/lumen-ui-react 0.1.17 → 0.1.19

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 (136) hide show
  1. package/ai-rules/RULES.md +6 -0
  2. package/dist/lib/Components/AddressInput/AddressInput.d.ts +1 -4
  3. package/dist/lib/Components/AddressInput/AddressInput.d.ts.map +1 -1
  4. package/dist/lib/Components/AddressInput/AddressInput.js +21 -21
  5. package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts +1 -4
  6. package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
  7. package/dist/lib/Components/AmountDisplay/AmountDisplay.js +32 -29
  8. package/dist/lib/Components/AmountInput/AmountInput.d.ts +1 -4
  9. package/dist/lib/Components/AmountInput/AmountInput.d.ts.map +1 -1
  10. package/dist/lib/Components/AmountInput/AmountInput.js +13 -14
  11. package/dist/lib/Components/Avatar/Avatar.d.ts +1 -4
  12. package/dist/lib/Components/Avatar/Avatar.d.ts.map +1 -1
  13. package/dist/lib/Components/Avatar/Avatar.js +8 -9
  14. package/dist/lib/Components/BaseInput/BaseInput.d.ts +1 -4
  15. package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
  16. package/dist/lib/Components/BaseInput/BaseInput.js +44 -44
  17. package/dist/lib/Components/Button/BaseButton.d.ts +1 -4
  18. package/dist/lib/Components/Button/BaseButton.d.ts.map +1 -1
  19. package/dist/lib/Components/Button/BaseButton.js +14 -15
  20. package/dist/lib/Components/Button/Button.d.ts +1 -4
  21. package/dist/lib/Components/Button/Button.d.ts.map +1 -1
  22. package/dist/lib/Components/Button/Button.js +6 -7
  23. package/dist/lib/Components/Card/Card.d.ts +10 -40
  24. package/dist/lib/Components/Card/Card.d.ts.map +1 -1
  25. package/dist/lib/Components/Card/Card.js +115 -134
  26. package/dist/lib/Components/CardButton/CardButton.d.ts +1 -4
  27. package/dist/lib/Components/CardButton/CardButton.d.ts.map +1 -1
  28. package/dist/lib/Components/CardButton/CardButton.js +10 -11
  29. package/dist/lib/Components/Checkbox/Checkbox.d.ts +1 -4
  30. package/dist/lib/Components/Checkbox/Checkbox.d.ts.map +1 -1
  31. package/dist/lib/Components/Checkbox/Checkbox.js +2 -3
  32. package/dist/lib/Components/ContentBanner/ContentBanner.d.ts +4 -16
  33. package/dist/lib/Components/ContentBanner/ContentBanner.d.ts.map +1 -1
  34. package/dist/lib/Components/ContentBanner/ContentBanner.js +48 -54
  35. package/dist/lib/Components/DataTable/DataTable.d.ts +3 -12
  36. package/dist/lib/Components/DataTable/DataTable.d.ts.map +1 -1
  37. package/dist/lib/Components/DataTable/DataTable.js +84 -97
  38. package/dist/lib/Components/Dialog/Dialog.d.ts +3 -12
  39. package/dist/lib/Components/Dialog/Dialog.d.ts.map +1 -1
  40. package/dist/lib/Components/Dialog/Dialog.js +44 -50
  41. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts +1 -4
  42. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts.map +1 -1
  43. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +31 -34
  44. package/dist/lib/Components/Divider/Divider.d.ts +1 -4
  45. package/dist/lib/Components/Divider/Divider.d.ts.map +1 -1
  46. package/dist/lib/Components/Divider/Divider.js +10 -11
  47. package/dist/lib/Components/Icon/Icon.d.ts +1 -4
  48. package/dist/lib/Components/Icon/Icon.d.ts.map +1 -1
  49. package/dist/lib/Components/Icon/Icon.js +6 -7
  50. package/dist/lib/Components/IconButton/IconButton.d.ts +1 -4
  51. package/dist/lib/Components/IconButton/IconButton.d.ts.map +1 -1
  52. package/dist/lib/Components/IconButton/IconButton.js +5 -6
  53. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts +3 -11
  54. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts.map +1 -1
  55. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +24 -22
  56. package/dist/lib/Components/InteractiveIcon/types.d.ts +14 -9
  57. package/dist/lib/Components/InteractiveIcon/types.d.ts.map +1 -1
  58. package/dist/lib/Components/Link/Link.d.ts +1 -4
  59. package/dist/lib/Components/Link/Link.d.ts.map +1 -1
  60. package/dist/lib/Components/Link/Link.js +13 -14
  61. package/dist/lib/Components/ListItem/ListItem.d.ts +7 -28
  62. package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
  63. package/dist/lib/Components/ListItem/ListItem.js +60 -63
  64. package/dist/lib/Components/MediaBanner/MediaBanner.d.ts +3 -12
  65. package/dist/lib/Components/MediaBanner/MediaBanner.d.ts.map +1 -1
  66. package/dist/lib/Components/MediaBanner/MediaBanner.js +39 -43
  67. package/dist/lib/Components/MediaCard/MediaCard.d.ts +2 -8
  68. package/dist/lib/Components/MediaCard/MediaCard.d.ts.map +1 -1
  69. package/dist/lib/Components/MediaCard/MediaCard.js +38 -40
  70. package/dist/lib/Components/MediaImage/MediaImage.d.ts +1 -4
  71. package/dist/lib/Components/MediaImage/MediaImage.d.ts.map +1 -1
  72. package/dist/lib/Components/MediaImage/MediaImage.js +15 -16
  73. package/dist/lib/Components/Menu/Menu.d.ts +11 -38
  74. package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
  75. package/dist/lib/Components/Menu/Menu.js +100 -116
  76. package/dist/lib/Components/NavBar/CoinCapsule.d.ts +1 -4
  77. package/dist/lib/Components/NavBar/CoinCapsule.d.ts.map +1 -1
  78. package/dist/lib/Components/NavBar/CoinCapsule.js +8 -9
  79. package/dist/lib/Components/NavBar/NavBar.d.ts +7 -22
  80. package/dist/lib/Components/NavBar/NavBar.d.ts.map +1 -1
  81. package/dist/lib/Components/NavBar/NavBar.js +25 -34
  82. package/dist/lib/Components/PageIndicator/PageIndicator.d.ts +1 -4
  83. package/dist/lib/Components/PageIndicator/PageIndicator.d.ts.map +1 -1
  84. package/dist/lib/Components/PageIndicator/PageIndicator.js +15 -16
  85. package/dist/lib/Components/Popover/Popover.d.ts +1 -4
  86. package/dist/lib/Components/Popover/Popover.d.ts.map +1 -1
  87. package/dist/lib/Components/Popover/Popover.js +5 -7
  88. package/dist/lib/Components/SearchInput/SearchInput.d.ts +1 -4
  89. package/dist/lib/Components/SearchInput/SearchInput.d.ts.map +1 -1
  90. package/dist/lib/Components/SearchInput/SearchInput.js +2 -3
  91. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts +0 -6
  92. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  93. package/dist/lib/Components/SegmentedControl/SegmentedControl.js +19 -21
  94. package/dist/lib/Components/Select/Select.d.ts +10 -40
  95. package/dist/lib/Components/Select/Select.d.ts.map +1 -1
  96. package/dist/lib/Components/Select/Select.js +141 -163
  97. package/dist/lib/Components/SideBar/SideBar.d.ts +5 -20
  98. package/dist/lib/Components/SideBar/SideBar.d.ts.map +1 -1
  99. package/dist/lib/Components/SideBar/SideBar.js +44 -53
  100. package/dist/lib/Components/Skeleton/Skeleton.d.ts +1 -4
  101. package/dist/lib/Components/Skeleton/Skeleton.d.ts.map +1 -1
  102. package/dist/lib/Components/Skeleton/Skeleton.js +15 -22
  103. package/dist/lib/Components/Spot/Spot.d.ts +1 -4
  104. package/dist/lib/Components/Spot/Spot.d.ts.map +1 -1
  105. package/dist/lib/Components/Spot/Spot.js +11 -12
  106. package/dist/lib/Components/Stepper/Stepper.d.ts +1 -4
  107. package/dist/lib/Components/Stepper/Stepper.d.ts.map +1 -1
  108. package/dist/lib/Components/Stepper/Stepper.js +10 -11
  109. package/dist/lib/Components/Subheader/Subheader.d.ts +1 -4
  110. package/dist/lib/Components/Subheader/Subheader.d.ts.map +1 -1
  111. package/dist/lib/Components/Subheader/Subheader.js +14 -15
  112. package/dist/lib/Components/Subheader/types.d.ts +1 -1
  113. package/dist/lib/Components/Subheader/types.d.ts.map +1 -1
  114. package/dist/lib/Components/Switch/Switch.d.ts +1 -4
  115. package/dist/lib/Components/Switch/Switch.d.ts.map +1 -1
  116. package/dist/lib/Components/Switch/Switch.js +2 -3
  117. package/dist/lib/Components/Table/Table.d.ts +16 -64
  118. package/dist/lib/Components/Table/Table.d.ts.map +1 -1
  119. package/dist/lib/Components/Table/Table.js +146 -176
  120. package/dist/lib/Components/Tag/Tag.d.ts +1 -4
  121. package/dist/lib/Components/Tag/Tag.d.ts.map +1 -1
  122. package/dist/lib/Components/Tag/Tag.js +10 -11
  123. package/dist/lib/Components/TextInput/TextInput.d.ts +1 -4
  124. package/dist/lib/Components/TextInput/TextInput.d.ts.map +1 -1
  125. package/dist/lib/Components/TextInput/TextInput.js +4 -5
  126. package/dist/lib/Components/Tile/Tile.d.ts +6 -24
  127. package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
  128. package/dist/lib/Components/Tile/Tile.js +58 -71
  129. package/dist/lib/Components/TileButton/TileButton.d.ts +1 -4
  130. package/dist/lib/Components/TileButton/TileButton.d.ts.map +1 -1
  131. package/dist/lib/Components/TileButton/TileButton.js +12 -13
  132. package/dist/lib/Components/TriggerButton/TriggerButton.d.ts +1 -4
  133. package/dist/lib/Components/TriggerButton/TriggerButton.d.ts.map +1 -1
  134. package/dist/lib/Components/TriggerButton/TriggerButton.js +11 -12
  135. package/dist/package.json +1 -1
  136. package/package.json +2 -2
@@ -1,8 +1,8 @@
1
- import { jsx as o, jsxs as m } from "react/jsx-runtime";
2
- import { createSafeContext as f, cn as l } from "../../../libs/utils-shared/dist/index.js";
3
- import * as n from "@radix-ui/react-dialog";
4
- import { cva as u } from "class-variance-authority";
5
- const [y, r] = f("Dialog"), p = u(
1
+ import { jsx as o, jsxs as g } from "react/jsx-runtime";
2
+ import { createSafeContext as f, cn as i } from "../../../libs/utils-shared/dist/index.js";
3
+ import * as l from "@radix-ui/react-dialog";
4
+ import { cva as m } from "class-variance-authority";
5
+ const [u, r] = f("Dialog"), x = m(
6
6
  [
7
7
  "flex w-400 max-w-[calc(100%-2rem)] flex-col overflow-hidden rounded-2xl bg-canvas-sheet pb-24",
8
8
  "fixed top-[50%] left-[50%] z-dialog-content translate-[-50%]",
@@ -20,61 +20,60 @@ const [y, r] = f("Dialog"), p = u(
20
20
  }
21
21
  }
22
22
  );
23
- function k({ height: t = "fit", ...a }) {
24
- return /* @__PURE__ */ o(y, { value: { height: t }, children: /* @__PURE__ */ o(n.Root, { "data-slot": "dialog", ...a }) });
23
+ function D({ height: t = "fit", ...a }) {
24
+ return /* @__PURE__ */ o(u, { value: { height: t }, children: /* @__PURE__ */ o(l.Root, { "data-slot": "dialog", ...a }) });
25
25
  }
26
- function w({ ...t }) {
27
- return /* @__PURE__ */ o(n.Trigger, { "data-slot": "dialog-trigger", ...t });
26
+ function C({ ...t }) {
27
+ return /* @__PURE__ */ o(l.Trigger, { "data-slot": "dialog-trigger", ...t });
28
28
  }
29
- function x({
29
+ function h({
30
30
  ...t
31
31
  }) {
32
- return /* @__PURE__ */ o(n.Portal, { "data-slot": "dialog-portal", ...t });
32
+ return /* @__PURE__ */ o(l.Portal, { "data-slot": "dialog-portal", ...t });
33
33
  }
34
- const s = ({ ref: t, className: a, ...e }) => /* @__PURE__ */ o(
35
- n.Overlay,
34
+ const p = ({ ref: t, className: a, ...e }) => /* @__PURE__ */ o(
35
+ l.Overlay,
36
36
  {
37
37
  ref: t,
38
38
  "data-slot": "dialog-overlay",
39
- className: l(
39
+ className: i(
40
40
  a,
41
41
  "fixed inset-0 z-dialog-overlay bg-canvas-overlay backdrop-blur-sm data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in"
42
42
  ),
43
43
  ...e
44
44
  }
45
45
  );
46
- s.displayName = "DialogOverlay";
47
- function B({
46
+ function N({
48
47
  className: t,
49
48
  children: a,
50
49
  ...e
51
50
  }) {
52
- const { height: i } = r({
51
+ const { height: n } = r({
53
52
  consumerName: "DialogContent",
54
53
  contextRequired: !0
55
54
  });
56
- return /* @__PURE__ */ m(x, { "data-slot": "dialog-portal", children: [
57
- /* @__PURE__ */ o(s, {}),
55
+ return /* @__PURE__ */ g(h, { "data-slot": "dialog-portal", children: [
56
+ /* @__PURE__ */ o(p, {}),
58
57
  /* @__PURE__ */ o(
59
- n.Content,
58
+ l.Content,
60
59
  {
61
60
  "data-slot": "dialog-content",
62
- className: l(p({ height: i }), t),
61
+ className: i(x({ height: n }), t),
63
62
  ...e,
64
63
  children: a
65
64
  }
66
65
  )
67
66
  ] });
68
67
  }
69
- const h = ({
68
+ const w = ({
70
69
  ref: t,
71
70
  className: a,
72
71
  children: e,
73
- scrollbarWidth: i = "none",
74
- style: d,
75
- ...c
72
+ scrollbarWidth: n = "none",
73
+ style: s,
74
+ ...d
76
75
  }) => {
77
- const { height: g } = r({
76
+ const { height: c } = r({
78
77
  consumerName: "DialogBody",
79
78
  contextRequired: !0
80
79
  });
@@ -83,56 +82,51 @@ const h = ({
83
82
  {
84
83
  ref: t,
85
84
  "data-slot": "dialog-body",
86
- style: d,
87
- className: l(
85
+ style: s,
86
+ className: i(
88
87
  "-mb-24 flex min-h-0 grow flex-col overflow-y-auto px-24 pb-24",
89
- g === "fit" ? "basis-auto" : "basis-0",
88
+ c === "fit" ? "basis-auto" : "basis-0",
90
89
  a,
91
- i === "auto" ? "scrollbar-custom" : "scrollbar-none"
90
+ n === "auto" ? "scrollbar-custom" : "scrollbar-none"
92
91
  ),
93
- ...c,
92
+ ...d,
94
93
  children: e
95
94
  }
96
95
  );
97
- };
98
- h.displayName = "DialogBody";
99
- const v = ({
96
+ }, k = ({
100
97
  ref: t,
101
98
  className: a,
102
99
  children: e,
103
- ...i
100
+ ...n
104
101
  }) => /* @__PURE__ */ o(
105
102
  "div",
106
103
  {
107
104
  ref: t,
108
105
  "data-slot": "dialog-body-sticky-content",
109
- className: l("sticky top-0 bg-canvas-sheet py-8", a),
110
- ...i,
106
+ className: i("sticky top-0 bg-canvas-sheet py-8", a),
107
+ ...n,
111
108
  children: e
112
109
  }
113
- );
114
- v.displayName = "DialogBodyStickyContent";
115
- const D = ({
110
+ ), P = ({
116
111
  ref: t,
117
112
  className: a,
118
113
  children: e,
119
- ...i
114
+ ...n
120
115
  }) => /* @__PURE__ */ o(
121
116
  "div",
122
117
  {
123
118
  ref: t,
124
119
  "data-slot": "dialog-footer",
125
- className: l("flex shrink-0 justify-end gap-8 px-24 pt-24", a),
126
- ...i,
120
+ className: i("flex shrink-0 justify-end gap-8 px-24 pt-24", a),
121
+ ...n,
127
122
  children: e
128
123
  }
129
124
  );
130
- D.displayName = "DialogFooter";
131
125
  export {
132
- k as Dialog,
133
- h as DialogBody,
134
- v as DialogBodyStickyContent,
135
- B as DialogContent,
136
- D as DialogFooter,
137
- w as DialogTrigger
126
+ D as Dialog,
127
+ w as DialogBody,
128
+ k as DialogBodyStickyContent,
129
+ N as DialogContent,
130
+ P as DialogFooter,
131
+ C as DialogTrigger
138
132
  };
@@ -1,6 +1,3 @@
1
1
  import { DialogHeaderProps } from '../types';
2
- export declare const DialogHeader: {
3
- ({ ref, title, description, appearance, ...props }: DialogHeaderProps): import("react/jsx-runtime").JSX.Element;
4
- displayName: string;
5
- };
2
+ export declare const DialogHeader: ({ ref, title, description, appearance, ...props }: DialogHeaderProps) => import("react/jsx-runtime").JSX.Element;
6
3
  //# sourceMappingURL=DialogHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DialogHeader.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/Dialog/DialogHeader/DialogHeader.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAkJ7C,eAAO,MAAM,YAAY;wDAMtB,iBAAiB;;CAqBnB,CAAC"}
1
+ {"version":3,"file":"DialogHeader.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/Dialog/DialogHeader/DialogHeader.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAiJ7C,eAAO,MAAM,YAAY,GAAI,mDAM1B,iBAAiB,4CAqBnB,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import { jsxs as i, Fragment as s, jsx as e } from "react/jsx-runtime";
2
2
  import { cn as c } from "../../../../libs/utils-shared/dist/index.js";
3
- import * as h from "@radix-ui/react-dialog";
4
- import { cva as N } from "class-variance-authority";
5
- import { useCommonTranslation as g } from "../../../../i18n/useCommonTranslation.js";
6
- import { IconButton as x } from "../../IconButton/IconButton.js";
7
- import { ArrowLeft as b } from "../../../Symbols/Icons/ArrowLeft.js";
8
- import { DialogClose as v } from "../DialogClose/DialogClose.js";
9
- import { Close as D } from "../../../Symbols/Icons/Close.js";
10
- const C = N("flex px-24 text-base", {
3
+ import * as p from "@radix-ui/react-dialog";
4
+ import { cva as u } from "class-variance-authority";
5
+ import { useCommonTranslation as x } from "../../../../i18n/useCommonTranslation.js";
6
+ import { IconButton as f } from "../../IconButton/IconButton.js";
7
+ import { ArrowLeft as N } from "../../../Symbols/Icons/ArrowLeft.js";
8
+ import { DialogClose as b } from "../DialogClose/DialogClose.js";
9
+ import { Close as v } from "../../../Symbols/Icons/Close.js";
10
+ const D = u("flex px-24 text-base", {
11
11
  variants: {
12
12
  appearance: {
13
13
  compact: "mb-12 h-64 min-h-64 flex-row items-center gap-12",
@@ -15,46 +15,46 @@ const C = N("flex px-24 text-base", {
15
15
  }
16
16
  }
17
17
  }), d = ({ onBack: r }) => {
18
- const { t: a } = g();
18
+ const { t: a } = x();
19
19
  return /* @__PURE__ */ e(
20
- x,
20
+ f,
21
21
  {
22
22
  appearance: "no-background",
23
23
  size: "sm",
24
- icon: b,
24
+ icon: N,
25
25
  onClick: r,
26
26
  className: "-ml-12 shrink-0",
27
27
  "aria-label": a("components.dialogHeader.goBackAriaLabel")
28
28
  }
29
29
  );
30
- }, p = ({ onClose: r }) => {
31
- const { t: a } = g();
32
- return /* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(
33
- x,
30
+ }, h = ({ onClose: r }) => {
31
+ const { t: a } = x();
32
+ return /* @__PURE__ */ e(b, { asChild: !0, children: /* @__PURE__ */ e(
33
+ f,
34
34
  {
35
35
  appearance: "gray",
36
36
  size: "xs",
37
- icon: D,
37
+ icon: v,
38
38
  onClick: r,
39
39
  className: "-mr-8 shrink-0",
40
40
  "aria-label": a("components.dialogHeader.closeAriaLabel")
41
41
  }
42
42
  ) });
43
- }, y = ({ hidden: r, className: a, ...o }) => /* @__PURE__ */ e(
44
- h.Title,
43
+ }, C = ({ hidden: r, className: a, ...o }) => /* @__PURE__ */ e(
44
+ p.Title,
45
45
  {
46
46
  "data-slot": "dialog-title",
47
47
  className: c(r && "sr-only", a),
48
48
  ...o
49
49
  }
50
- ), H = ({ hidden: r, className: a, ...o }) => /* @__PURE__ */ e(
51
- h.Description,
50
+ ), y = ({ hidden: r, className: a, ...o }) => /* @__PURE__ */ e(
51
+ p.Description,
52
52
  {
53
53
  "data-slot": "dialog-description",
54
54
  className: c(r && "sr-only", a),
55
55
  ...o
56
56
  }
57
- ), f = ({
57
+ ), H = ({
58
58
  ref: r,
59
59
  className: a,
60
60
  appearance: o = "compact",
@@ -62,13 +62,13 @@ const C = N("flex px-24 text-base", {
62
62
  description: t,
63
63
  onClose: m,
64
64
  onBack: n,
65
- ...u
65
+ ...g
66
66
  }) => /* @__PURE__ */ i(
67
67
  "div",
68
68
  {
69
69
  ref: r,
70
- className: C({ appearance: o, className: a }),
71
- ...u,
70
+ className: D({ appearance: o, className: a }),
71
+ ...g,
72
72
  children: [
73
73
  o === "compact" && /* @__PURE__ */ i(s, { children: [
74
74
  n && /* @__PURE__ */ e(d, { onBack: n }),
@@ -84,12 +84,12 @@ const C = N("flex px-24 text-base", {
84
84
  ]
85
85
  }
86
86
  ),
87
- /* @__PURE__ */ e(p, { onClose: m })
87
+ /* @__PURE__ */ e(h, { onClose: m })
88
88
  ] }),
89
89
  o === "expanded" && /* @__PURE__ */ i(s, { children: [
90
90
  /* @__PURE__ */ i("div", { className: "flex h-40 flex-row items-center", children: [
91
91
  n && /* @__PURE__ */ e(d, { onBack: n }),
92
- /* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e(p, { onClose: m }) })
92
+ /* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e(h, { onClose: m }) })
93
93
  ] }),
94
94
  (l || t) && /* @__PURE__ */ i("div", { className: "flex flex-col gap-4", children: [
95
95
  l && /* @__PURE__ */ e("div", { className: "heading-3-semi-bold", children: l }),
@@ -98,9 +98,7 @@ const C = N("flex px-24 text-base", {
98
98
  ] })
99
99
  ]
100
100
  }
101
- );
102
- f.displayName = "DialogHeaderComponent";
103
- const w = ({
101
+ ), F = ({
104
102
  ref: r,
105
103
  title: a = "",
106
104
  description: o,
@@ -108,7 +106,7 @@ const w = ({
108
106
  ...t
109
107
  }) => /* @__PURE__ */ i(s, { children: [
110
108
  /* @__PURE__ */ e(
111
- f,
109
+ H,
112
110
  {
113
111
  ref: r,
114
112
  title: a,
@@ -117,10 +115,9 @@ const w = ({
117
115
  ...t
118
116
  }
119
117
  ),
120
- /* @__PURE__ */ e(y, { hidden: !0, children: a }),
121
- o && /* @__PURE__ */ e(H, { hidden: !0, children: o })
118
+ /* @__PURE__ */ e(C, { hidden: !0, children: a }),
119
+ o && /* @__PURE__ */ e(y, { hidden: !0, children: o })
122
120
  ] });
123
- w.displayName = "DialogHeader";
124
121
  export {
125
- w as DialogHeader
122
+ F as DialogHeader
126
123
  };
@@ -19,8 +19,5 @@ import { DividerProps } from './types';
19
19
  * // With custom styling
20
20
  * <Divider className="my-16" />
21
21
  */
22
- export declare const Divider: {
23
- ({ ref, className, orientation, ...props }: DividerProps): import("react/jsx-runtime").JSX.Element;
24
- displayName: string;
25
- };
22
+ export declare const Divider: ({ ref, className, orientation, ...props }: DividerProps) => import("react/jsx-runtime").JSX.Element;
26
23
  //# sourceMappingURL=Divider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Divider/Divider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,OAAO;gDAKjB,YAAY;;CAcd,CAAC"}
1
+ {"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Divider/Divider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,OAAO,GAAI,2CAKrB,YAAY,4CAcd,CAAC"}
@@ -1,25 +1,24 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { cn as i } from "../../../libs/utils-shared/dist/index.js";
3
- const l = ({
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { cn as a } from "../../../libs/utils-shared/dist/index.js";
3
+ const d = ({
4
4
  ref: o,
5
- className: e,
5
+ className: t,
6
6
  orientation: r = "horizontal",
7
- ...t
8
- }) => /* @__PURE__ */ a(
7
+ ...e
8
+ }) => /* @__PURE__ */ l(
9
9
  "div",
10
10
  {
11
11
  ref: o,
12
12
  role: "separator",
13
13
  "aria-orientation": r,
14
- className: i(
14
+ className: a(
15
15
  "border-muted-subtle",
16
16
  r === "horizontal" ? "w-full border-t" : "h-full border-l",
17
- e
17
+ t
18
18
  ),
19
- ...t
19
+ ...e
20
20
  }
21
21
  );
22
- l.displayName = "Divider";
23
22
  export {
24
- l as Divider
23
+ d as Divider
25
24
  };
@@ -1,6 +1,3 @@
1
1
  import { IconProps } from './types';
2
- export declare const Icon: {
3
- ({ ref, size, className, children, viewBox, xmlns, ...props }: IconProps): import('react').ReactSVGElement;
4
- displayName: string;
5
- };
2
+ export declare const Icon: ({ ref, size, className, children, viewBox, xmlns, ...props }: IconProps) => import('react').ReactSVGElement;
6
3
  //# sourceMappingURL=Icon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Icon/Icon.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAoBpC,eAAO,MAAM,IAAI;mEAQd,SAAS;;CAcX,CAAC"}
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Icon/Icon.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAoBpC,eAAO,MAAM,IAAI,GAAI,8DAQlB,SAAS,oCAcX,CAAC"}
@@ -17,13 +17,13 @@ const h = a("inline-block shrink-0", {
17
17
  defaultVariants: {
18
18
  size: 24
19
19
  }
20
- }), l = ({
20
+ }), f = ({
21
21
  ref: o,
22
22
  size: n = 24,
23
23
  className: i = "",
24
24
  children: c,
25
- viewBox: e,
26
- xmlns: r,
25
+ viewBox: r,
26
+ xmlns: e,
27
27
  ...t
28
28
  }) => k(
29
29
  "svg",
@@ -31,14 +31,13 @@ const h = a("inline-block shrink-0", {
31
31
  ref: o,
32
32
  fill: "none",
33
33
  "aria-hidden": "true",
34
- xmlns: r,
35
- viewBox: e,
34
+ xmlns: e,
35
+ viewBox: r,
36
36
  className: s(i, h({ size: n }), "inline-block"),
37
37
  ...t
38
38
  },
39
39
  c
40
40
  );
41
- l.displayName = "Icon";
42
41
  export {
43
- l as Icon
42
+ f as Icon
44
43
  };
@@ -1,6 +1,3 @@
1
1
  import { IconButtonProps } from './types';
2
- export declare const IconButton: {
3
- ({ ref, className, icon, tooltip, tooltipPlacement, tooltipText, onTooltipOpenChange, "aria-label": ariaLabel, ...props }: IconButtonProps): import("react/jsx-runtime").JSX.Element;
4
- displayName: string;
5
- };
2
+ export declare const IconButton: ({ ref, className, icon, tooltip, tooltipPlacement, tooltipText, onTooltipOpenChange, "aria-label": ariaLabel, ...props }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
6
3
  //# sourceMappingURL=IconButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,UAAU;+HAUpB,eAAe;;CAuBjB,CAAC"}
1
+ {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,UAAU,GAAI,0HAUxB,eAAe,4CAuBjB,CAAC"}
@@ -2,7 +2,7 @@ import { jsxs as m, jsx as o } from "react/jsx-runtime";
2
2
  import { Tooltip as u, TooltipTrigger as d, TooltipContent as f } from "../Tooltip/Tooltip.js";
3
3
  import { BaseButton as h } from "../Button/BaseButton.js";
4
4
  const B = ({
5
- ref: r,
5
+ ref: n,
6
6
  className: e,
7
7
  icon: i,
8
8
  tooltip: l = !1,
@@ -12,10 +12,10 @@ const B = ({
12
12
  "aria-label": t,
13
13
  ...c
14
14
  }) => {
15
- const n = /* @__PURE__ */ o(
15
+ const r = /* @__PURE__ */ o(
16
16
  h,
17
17
  {
18
- ref: r,
18
+ ref: n,
19
19
  icon: i,
20
20
  className: e,
21
21
  "aria-label": t,
@@ -23,11 +23,10 @@ const B = ({
23
23
  }
24
24
  );
25
25
  return l ? /* @__PURE__ */ m(u, { onOpenChange: a, children: [
26
- /* @__PURE__ */ o(d, { asChild: !0, children: n }),
26
+ /* @__PURE__ */ o(d, { asChild: !0, children: r }),
27
27
  /* @__PURE__ */ o(f, { side: p, children: s || t })
28
- ] }) : n;
28
+ ] }) : r;
29
29
  };
30
- B.displayName = "IconButton";
31
30
  export {
32
31
  B as IconButton
33
32
  };
@@ -11,7 +11,6 @@ import { InteractiveIconProps } from './types';
11
11
  * @component
12
12
  *
13
13
  * @warning Always provide an `aria-label` prop to ensure screen reader accessibility, as the component contains only an icon without visible text.
14
- * @warning The icon size should be controlled by the icon component itself, not through CSS. Use the appropriate size prop on the icon component (e.g., `size={20}`).
15
14
  * @warning The `className` prop should only be used for layout adjustments like margins or positioning. Do not use it to modify the component's core appearance (colors, padding, etc).
16
15
  *
17
16
  * @example
@@ -19,17 +18,10 @@ import { InteractiveIconProps } from './types';
19
18
  * import { DeleteCircleFill, Settings } from '@ledgerhq/lumen-ui-react/symbols';
20
19
  *
21
20
  * // Filled interactive icon for destructive actions
22
- * <InteractiveIcon iconType="filled" aria-label="Delete item" onClick={handleDelete}>
23
- * <DeleteCircleFill size={20} />
24
- * </InteractiveIcon>
21
+ * <InteractiveIcon iconType="filled" icon={DeleteCircleFill} size={20} aria-label="Delete item" onClick={handleDelete} />
25
22
  *
26
23
  * // Stroked interactive icon for secondary actions
27
- * <InteractiveIcon iconType="stroked" aria-label="Open settings" onClick={handleSettings}>
28
- * <Settings size={20} />
29
- * </InteractiveIcon>
24
+ * <InteractiveIcon iconType="stroked" icon={Settings} size={20} aria-label="Open settings" onClick={handleSettings} />
30
25
  */
31
- export declare const InteractiveIcon: {
32
- ({ ref, className, iconType, appearance, disabled: disabledProp, ...props }: InteractiveIconProps): import("react/jsx-runtime").JSX.Element;
33
- displayName: string;
34
- };
26
+ export declare const InteractiveIcon: ({ ref, className, iconType, icon: Icon, size, appearance, disabled: disabledProp, ...props }: InteractiveIconProps) => import("react/jsx-runtime").JSX.Element;
35
27
  //# sourceMappingURL=InteractiveIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InteractiveIcon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/InteractiveIcon/InteractiveIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AA6B/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,eAAe;iFAOzB,oBAAoB;;CAiBtB,CAAC"}
1
+ {"version":3,"file":"InteractiveIcon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/InteractiveIcon/InteractiveIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AA6B/C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,eAAe,GAAI,8FAS7B,oBAAoB,4CAmBtB,CAAC"}
@@ -1,7 +1,7 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { useDisabledContext as d, cn as c } from "../../../libs/utils-shared/dist/index.js";
3
- import { cva as l } from "class-variance-authority";
4
- const b = l(
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { useDisabledContext as l, cn as b } from "../../../libs/utils-shared/dist/index.js";
3
+ import { cva as u } from "class-variance-authority";
4
+ const v = u(
5
5
  [
6
6
  "inline-flex size-fit items-center justify-center rounded-full",
7
7
  "transition-colors",
@@ -25,32 +25,34 @@ const b = l(
25
25
  }
26
26
  }
27
27
  }
28
- ), u = ({
29
- ref: t,
30
- className: s,
31
- iconType: a,
32
- appearance: i = "muted",
33
- disabled: r = !1,
34
- ...o
28
+ ), h = ({
29
+ ref: s,
30
+ className: i,
31
+ iconType: r,
32
+ icon: a,
33
+ size: o = 24,
34
+ appearance: n = "muted",
35
+ disabled: d = !1,
36
+ ...c
35
37
  }) => {
36
- const e = d({
38
+ const e = l({
37
39
  consumerName: "InteractiveIcon",
38
- mergeWith: { disabled: r }
40
+ mergeWith: { disabled: d }
39
41
  });
40
- return /* @__PURE__ */ n(
42
+ return /* @__PURE__ */ t(
41
43
  "button",
42
44
  {
43
- ...o,
44
- ref: t,
45
+ ...c,
46
+ ref: s,
45
47
  disabled: e,
46
- className: c(
47
- s,
48
- b({ disabled: e, iconType: a, appearance: i })
49
- )
48
+ className: b(
49
+ i,
50
+ v({ disabled: e, iconType: r, appearance: n })
51
+ ),
52
+ children: /* @__PURE__ */ t(a, { size: o })
50
53
  }
51
54
  );
52
55
  };
53
- u.displayName = "InteractiveIcon";
54
56
  export {
55
- u as InteractiveIcon
57
+ h as InteractiveIcon
56
58
  };
@@ -1,4 +1,5 @@
1
- import { ComponentPropsWithRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithRef, ComponentType } from 'react';
2
+ import { IconProps, IconSize } from '../Icon';
2
3
  export type InteractiveIconProps = {
3
4
  /**
4
5
  * Whether the icon is disabled.
@@ -11,17 +12,21 @@ export type InteractiveIconProps = {
11
12
  */
12
13
  iconType: 'filled' | 'stroked';
13
14
  /**
14
- * The visual style of the icon button.
15
- * - 'muted': with muted background
16
- * - 'white': with white background
17
- * - 'base': with base background
15
+ * The color appearance of the icon.
16
+ * - 'muted': Subdued color for secondary actions.
17
+ * - 'white': White color for use on dark backgrounds.
18
+ * - 'base': Default high-contrast color.
18
19
  * @default 'muted'
19
20
  */
20
21
  appearance?: 'muted' | 'white' | 'base';
21
22
  /**
22
- * The icon component to display inside the button.
23
- * Should be a single icon element from the design system.
23
+ * The icon component to render.
24
+ */
25
+ icon: ComponentType<Omit<IconProps, 'children'>>;
26
+ /**
27
+ * The size of the icon in pixels.
28
+ * @default 24
24
29
  */
25
- children: ReactNode;
26
- } & Omit<ComponentPropsWithRef<'button'>, 'disabled'>;
30
+ size?: IconSize;
31
+ } & Omit<ComponentPropsWithRef<'button'>, 'disabled' | 'children'>;
27
32
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/InteractiveIcon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC/B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;IACxC;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/InteractiveIcon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC/B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;IACxC;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;IACjD;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB,GAAG,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC"}
@@ -38,8 +38,5 @@ import { LinkProps } from './types';
38
38
  * // Note: When using asChild, the child element is responsible for its own content.
39
39
  * // Icons and other Link props like 'icon' are ignored when asChild is true - handle these in the child if needed.
40
40
  */
41
- export declare const Link: {
42
- ({ ref, className, children, appearance, size, underline, icon, isExternal, asChild, disabled: disabledProp, ...props }: LinkProps): import("react/jsx-runtime").JSX.Element;
43
- displayName: string;
44
- };
41
+ export declare const Link: ({ ref, className, children, appearance, size, underline, icon, isExternal, asChild, disabled: disabledProp, ...props }: LinkProps) => import("react/jsx-runtime").JSX.Element;
45
42
  //# sourceMappingURL=Link.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Link/Link.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAmCpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,IAAI;6HAYd,SAAS;;CAgDX,CAAC"}
1
+ {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Link/Link.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAmCpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,IAAI,GAAI,wHAYlB,SAAS,4CAgDX,CAAC"}