@ledgerhq/lumen-ui-react 0.1.44 → 0.1.46

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 (108) hide show
  1. package/dist/i18n/locales/de.json.d.ts +1 -3
  2. package/dist/i18n/locales/de.json.js +1 -1
  3. package/dist/i18n/locales/en.json.d.ts +1 -3
  4. package/dist/i18n/locales/en.json.js +1 -1
  5. package/dist/i18n/locales/es.json.d.ts +1 -3
  6. package/dist/i18n/locales/es.json.js +1 -1
  7. package/dist/i18n/locales/fr.json.d.ts +1 -3
  8. package/dist/i18n/locales/fr.json.js +1 -1
  9. package/dist/i18n/locales/ja.json.d.ts +1 -3
  10. package/dist/i18n/locales/ja.json.js +2 -2
  11. package/dist/i18n/locales/ko.json.d.ts +1 -3
  12. package/dist/i18n/locales/ko.json.js +2 -2
  13. package/dist/i18n/locales/pt.json.d.ts +1 -3
  14. package/dist/i18n/locales/pt.json.js +1 -1
  15. package/dist/i18n/locales/ru.json.d.ts +1 -3
  16. package/dist/i18n/locales/ru.json.js +1 -1
  17. package/dist/i18n/locales/th.json.d.ts +1 -3
  18. package/dist/i18n/locales/th.json.js +2 -2
  19. package/dist/i18n/locales/tr.json.d.ts +1 -3
  20. package/dist/i18n/locales/tr.json.js +2 -2
  21. package/dist/i18n/locales/zh.json.d.ts +1 -3
  22. package/dist/i18n/locales/zh.json.js +2 -2
  23. package/dist/index.js +172 -164
  24. package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
  25. package/dist/lib/Components/AmountDisplay/AmountDisplay.js +1 -0
  26. package/dist/lib/Components/AmountInput/AmountInput.d.ts +1 -1
  27. package/dist/lib/Components/AmountInput/AmountInput.d.ts.map +1 -1
  28. package/dist/lib/Components/AmountInput/AmountInput.js +34 -32
  29. package/dist/lib/Components/AmountInput/types.d.ts +8 -0
  30. package/dist/lib/Components/AmountInput/types.d.ts.map +1 -1
  31. package/dist/lib/Components/AmountInput/useAmountInputValue/useAmountInputValue.d.ts +1 -0
  32. package/dist/lib/Components/AmountInput/useAmountInputValue/useAmountInputValue.d.ts.map +1 -1
  33. package/dist/lib/Components/AmountInput/useAmountInputValue/useAmountInputValue.js +9 -8
  34. package/dist/lib/Components/Avatar/Avatar.d.ts +1 -4
  35. package/dist/lib/Components/Avatar/Avatar.d.ts.map +1 -1
  36. package/dist/lib/Components/Avatar/Avatar.js +33 -40
  37. package/dist/lib/Components/Avatar/types.d.ts +0 -6
  38. package/dist/lib/Components/Avatar/types.d.ts.map +1 -1
  39. package/dist/lib/Components/BaseInput/BaseInput.js +13 -13
  40. package/dist/lib/Components/Button/BaseButton.d.ts +1 -1
  41. package/dist/lib/Components/Button/Button.js +9 -9
  42. package/dist/lib/Components/Card/Card.js +18 -18
  43. package/dist/lib/Components/DataTable/DataTable.d.ts.map +1 -1
  44. package/dist/lib/Components/DataTable/DataTable.js +97 -80
  45. package/dist/lib/Components/DataTable/types.d.ts +2 -1
  46. package/dist/lib/Components/DataTable/types.d.ts.map +1 -1
  47. package/dist/lib/Components/Divider/Divider.js +4 -4
  48. package/dist/lib/Components/DotIcon/DotIcon.js +5 -5
  49. package/dist/lib/Components/DotIndicator/getDotIndicatorProps.d.ts +24 -0
  50. package/dist/lib/Components/DotIndicator/getDotIndicatorProps.d.ts.map +1 -0
  51. package/dist/lib/Components/DotIndicator/getDotIndicatorProps.js +11 -0
  52. package/dist/lib/Components/DotIndicator/index.d.ts +1 -0
  53. package/dist/lib/Components/DotIndicator/index.d.ts.map +1 -1
  54. package/dist/lib/Components/Icon/Icon.js +4 -4
  55. package/dist/lib/Components/Link/Link.js +6 -6
  56. package/dist/lib/Components/MediaCard/MediaCard.js +4 -4
  57. package/dist/lib/Components/MediaImage/MediaImage.js +6 -6
  58. package/dist/lib/Components/Menu/Menu.d.ts +8 -3
  59. package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
  60. package/dist/lib/Components/Menu/Menu.js +40 -33
  61. package/dist/lib/Components/Menu/types.d.ts +6 -5
  62. package/dist/lib/Components/Menu/types.d.ts.map +1 -1
  63. package/dist/lib/Components/NavBar/NavBar.js +9 -9
  64. package/dist/lib/Components/Pagination/Pagination.js +10 -10
  65. package/dist/lib/Components/Popover/Popover.js +10 -10
  66. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts +8 -3
  67. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  68. package/dist/lib/Components/SegmentedControl/SegmentedControl.js +41 -32
  69. package/dist/lib/Components/SegmentedControl/types.d.ts +6 -5
  70. package/dist/lib/Components/SegmentedControl/types.d.ts.map +1 -1
  71. package/dist/lib/Components/Select/Select.d.ts +19 -5
  72. package/dist/lib/Components/Select/Select.d.ts.map +1 -1
  73. package/dist/lib/Components/Select/Select.js +127 -104
  74. package/dist/lib/Components/Select/index.d.ts +1 -1
  75. package/dist/lib/Components/Select/index.d.ts.map +1 -1
  76. package/dist/lib/Components/Select/types.d.ts +20 -19
  77. package/dist/lib/Components/Select/types.d.ts.map +1 -1
  78. package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts +9 -9
  79. package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts.map +1 -1
  80. package/dist/lib/Components/Select/utils/groupItems.d.ts +2 -2
  81. package/dist/lib/Components/Select/utils/groupItems.d.ts.map +1 -1
  82. package/dist/lib/Components/SideBar/SideBar.d.ts +11 -3
  83. package/dist/lib/Components/SideBar/SideBar.d.ts.map +1 -1
  84. package/dist/lib/Components/SideBar/SideBar.js +61 -51
  85. package/dist/lib/Components/SideBar/index.d.ts +2 -2
  86. package/dist/lib/Components/SideBar/index.d.ts.map +1 -1
  87. package/dist/lib/Components/SideBar/types.d.ts +7 -6
  88. package/dist/lib/Components/SideBar/types.d.ts.map +1 -1
  89. package/dist/lib/Components/Table/Table.d.ts +17 -1
  90. package/dist/lib/Components/Table/Table.d.ts.map +1 -1
  91. package/dist/lib/Components/Table/Table.js +74 -45
  92. package/dist/lib/Components/Table/types.d.ts +23 -0
  93. package/dist/lib/Components/Table/types.d.ts.map +1 -1
  94. package/dist/lib/Components/TileButton/TileButton.js +6 -6
  95. package/dist/lib/Components/Tooltip/Tooltip.js +4 -4
  96. package/dist/lib/Symbols/Icons/ChevronAscending.js +1 -1
  97. package/dist/lib/Symbols/Icons/ChevronDescending.js +1 -1
  98. package/dist/lib/Symbols/Icons/Contact.d.ts +29 -0
  99. package/dist/lib/Symbols/Icons/Contact.d.ts.map +1 -0
  100. package/dist/lib/Symbols/Icons/Contact.js +28 -0
  101. package/dist/lib/Symbols/index.d.ts +1 -0
  102. package/dist/lib/Symbols/index.d.ts.map +1 -1
  103. package/dist/lib/Symbols/index.js +388 -386
  104. package/dist/libs/utils-shared/dist/index.js +149 -148
  105. package/dist/package.json +3 -3
  106. package/package.json +3 -3
  107. package/dist/lib/Components/Design-tokens/shared.d.ts +0 -20
  108. package/dist/lib/Components/Design-tokens/shared.d.ts.map +0 -1
@@ -1,134 +1,134 @@
1
- import { jsx as W } from "react/jsx-runtime";
2
- import { useMemo as M, createContext as L, useRef as R, useContext as E } from "react";
3
- import { clsx as q } from "clsx";
4
- import { twMerge as I } from "tailwind-merge";
5
- function X(e) {
1
+ import { jsx as R } from "react/jsx-runtime";
2
+ import { useMemo as M, createContext as L, useRef as W, useContext as E } from "react";
3
+ import { clsx as I } from "clsx";
4
+ import { twMerge as q } from "tailwind-merge";
5
+ function ee(e) {
6
6
  return e ? e.split(/[-_ ]+/).map((t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase()).join("") : "";
7
7
  }
8
8
  const N = {
9
9
  md: { max: 48, min: 17, scale: 2, startAt: 0 },
10
10
  sm: { max: 28, min: 12, scale: 2, startAt: 6 }
11
11
  };
12
- function Z(e, t = "md") {
13
- const { max: l, min: s, scale: a, startAt: i } = N[t], r = e.replace(/\D/g, "").length;
14
- return Math.max(s, l - Math.max(0, r - i) * a);
12
+ function te(e, t = "md") {
13
+ const { max: r, min: a, scale: l, startAt: o } = N[t], n = e.replace(/\D/g, "").length;
14
+ return Math.max(a, r - Math.max(0, n - o) * l);
15
15
  }
16
- function w(e, t = !0) {
16
+ function F(e, t = !0) {
17
17
  if (!e) return "";
18
- const l = e.includes("."), [s, a] = e.split("."), i = s.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
19
- return l && t ? a ? `${i}.${a}` : `${i}.` : i;
18
+ const r = e.includes("."), [a, l] = e.split("."), o = a.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
19
+ return r && t ? l ? `${o}.${l}` : `${o}.` : o;
20
20
  }
21
- function H(e, t = {}) {
21
+ const z = (e) => e.replaceAll(",", ".").replaceAll(/[^\d.]/g, ""), B = (e) => e.replace(/^0+(?=\d)/, ""), A = (e, t) => t > 0 ? e.slice(0, t) : e, K = (e, t) => A(e.replaceAll(/\D/g, ""), t), U = (e, t, r) => {
22
+ if (e === ".") return "0.";
23
+ const a = e.indexOf(".");
24
+ if (a === -1) return A(e, t);
25
+ const l = A(e.slice(0, a), t) || "0", o = e.slice(a + 1).replaceAll(".", "").slice(0, r);
26
+ return o.length > 0 ? `${l}.${o}` : e.endsWith(".") ? `${l}.` : l;
27
+ };
28
+ function re(e, t = {}) {
22
29
  const {
23
- allowDecimals: l = !0,
24
- thousandsSeparator: s = !0,
25
- maxIntegerLength: a = 9,
26
- maxDecimalLength: i = 9
27
- } = t, r = e.replace(",", ".").replace(/[^\d.]/g, "");
28
- let n = r;
29
- if (n = n.replace(/^0+(?=\d)/, ""), !l)
30
- return n = n.replace(/\D/g, ""), a > 0 && n.length > a && (n = n.slice(0, a)), s ? w(n) : n;
31
- n === "." && (n = "0.");
32
- const c = n.indexOf(".");
33
- if (c === -1)
34
- a > 0 && n.length > a && (n = n.slice(0, a));
35
- else {
36
- let u = n.slice(0, c), d = n.slice(c + 1).replace(/\./g, "");
37
- a > 0 && u.length > a && (u = u.slice(0, a)), d = d.slice(0, i), u === "" && (u = "0");
38
- const h = r.endsWith(".") || n.endsWith(".");
39
- n = d.length > 0 ? `${u}.${d}` : h ? `${u}.` : u;
40
- }
41
- return s ? w(n) : n;
30
+ allowDecimals: r = !0,
31
+ thousandsSeparator: a = !0,
32
+ maxIntegerLength: l = 9,
33
+ maxDecimalLength: o = 9,
34
+ decimalSeparator: n = "."
35
+ } = t, i = B(z(e)), u = r ? U(i, l, o) : K(i, l), m = a ? F(u) : u;
36
+ return n === "." ? m : m.replaceAll(".", n);
42
37
  }
43
- function F(e, t) {
38
+ function _(e, t) {
44
39
  if (Object.is(e, t)) return !0;
45
- const l = e, s = t, a = Object.keys(l), i = Object.keys(s);
46
- return a.length !== i.length ? !1 : a.every(
47
- (r) => Object.prototype.hasOwnProperty.call(s, r) && Object.is(l[r], s[r])
40
+ const r = e, a = t, l = Object.keys(r), o = Object.keys(a);
41
+ return l.length !== o.length ? !1 : l.every(
42
+ (n) => Object.prototype.hasOwnProperty.call(a, n) && Object.is(r[n], a[n])
48
43
  );
49
44
  }
50
- function z(e, t) {
51
- const l = L(t), s = ({ children: i, value: r }) => {
52
- const n = R(r);
53
- return F(n.current, r) || (n.current = r), /* @__PURE__ */ W(l.Provider, { value: n.current, children: i });
45
+ function G(e, t) {
46
+ const r = L(t), a = ({ children: o, value: n }) => {
47
+ const i = W(n);
48
+ return _(i.current, n) || (i.current = n), /* @__PURE__ */ R(r.Provider, { value: i.current, children: o });
54
49
  };
55
- s.displayName = e + "Provider";
56
- function a({
57
- consumerName: i,
58
- contextRequired: r
50
+ a.displayName = e + "Provider";
51
+ function l({
52
+ consumerName: o,
53
+ contextRequired: n
59
54
  }) {
60
- const n = E(l);
55
+ const i = E(r);
56
+ if (i)
57
+ return i;
61
58
  if (n)
62
- return n;
63
- if (r)
64
59
  throw new Error(
65
- `${i} must be used within ${e}`
60
+ `${o} must be used within ${e}`
66
61
  );
67
62
  return t || {};
68
63
  }
69
- return [s, a];
64
+ return [a, l];
70
65
  }
71
- const [V, B] = z("Disabled", { disabled: !1 }), Y = ({
66
+ const [ne, H] = G("Disabled", { disabled: !1 }), ae = ({
72
67
  consumerName: e,
73
68
  contextRequired: t,
74
- mergeWith: l
69
+ mergeWith: r
75
70
  }) => {
76
- const s = B({
71
+ const a = H({
77
72
  consumerName: e,
78
73
  contextRequired: t ?? !1
79
74
  });
80
- return !!(l?.disabled || s.disabled);
75
+ return !!(r?.disabled || a.disabled);
81
76
  };
82
- function ee(...e) {
83
- return I(q(e));
77
+ function le(...e) {
78
+ return q(I(e));
84
79
  }
85
- function T(e, t) {
80
+ function w(e, t) {
86
81
  if (typeof e == "function")
87
82
  return e(t);
88
83
  typeof e == "object" && e !== null && "current" in e && (e.current = t);
89
84
  }
90
- function K(...e) {
85
+ function J(...e) {
91
86
  const t = /* @__PURE__ */ new Map();
92
- return (l) => {
93
- if (l === null) {
94
- e.forEach((s) => {
95
- const a = t.get(s);
96
- typeof a == "function" && a(), T(s, null);
87
+ return (r) => {
88
+ if (r === null) {
89
+ e.forEach((a) => {
90
+ const l = t.get(a);
91
+ typeof l == "function" && l(), w(a, null);
97
92
  }), t.clear();
98
93
  return;
99
94
  }
100
- e.forEach((s) => {
101
- const a = T(s, l);
102
- typeof a == "function" && t.set(s, a);
95
+ e.forEach((a) => {
96
+ const l = w(a, r);
97
+ typeof l == "function" && t.set(a, l);
103
98
  });
104
99
  };
105
100
  }
106
- function te(...e) {
107
- return M(() => K(...e), e);
101
+ function oe(...e) {
102
+ return M(() => J(...e), e);
103
+ }
104
+ function ie(e) {
105
+ return function(t, r) {
106
+ return e[t][r];
107
+ };
108
108
  }
109
- const ne = ({
109
+ const se = ({
110
110
  currentStep: e,
111
111
  totalSteps: t,
112
- size: l,
113
- label: s,
114
- strokeWidth: a = 4,
115
- arcPercentage: i = 0.75
112
+ size: r,
113
+ label: a,
114
+ strokeWidth: l = 4,
115
+ arcPercentage: o = 0.75
116
116
  }) => {
117
- const r = Math.min(Math.max(e, 0), t), n = s ?? `${r}/${t}`, c = t <= 0 ? 0 : r / t, u = (l - a) / 2, d = l / 2, h = l / 2, m = 2 * Math.PI * u, p = m * i, b = p * (1 - c), g = r <= 0, D = `${p} ${m}`, P = g ? p - 2 : b;
117
+ const n = Math.min(Math.max(e, 0), t), i = a ?? `${n}/${t}`, u = t <= 0 ? 0 : n / t, m = (r - l) / 2, p = r / 2, h = r / 2, c = 2 * Math.PI * m, f = c * o, b = f * (1 - u), g = n <= 0, D = `${f} ${c}`, P = g ? f - 2 : b;
118
118
  return {
119
- displayLabel: n,
120
- progress: c,
121
- r: u,
122
- cx: d,
119
+ displayLabel: i,
120
+ progress: u,
121
+ r: m,
122
+ cx: p,
123
123
  cy: h,
124
- circumference: m,
125
- trackArcLength: p,
126
- trackDashArray: `${p} ${m}`,
124
+ circumference: c,
125
+ trackArcLength: f,
126
+ trackDashArray: `${f} ${c}`,
127
127
  progressDashArray: D,
128
128
  progressDashOffset: P,
129
129
  showMinimalDot: g
130
130
  };
131
- }, re = (e) => M(
131
+ }, ue = (e) => M(
132
132
  () => ({
133
133
  integerPart: Array.from(e.integerPart, (t) => ({
134
134
  value: t,
@@ -140,57 +140,57 @@ const ne = ({
140
140
  })) : []
141
141
  }),
142
142
  [e.integerPart, e.decimalPart]
143
- ), le = (e, t, l) => {
144
- if (t) return l;
145
- const s = e.decimalPart ? `${e.decimalSeparator}${e.decimalPart}` : "", a = `${e.integerPart}${s}`;
146
- return e.currencyPosition === "end" ? `${a} ${e.currencyText}` : `${e.currencyText} ${a}`;
143
+ ), ce = (e, t, r) => {
144
+ if (t) return r;
145
+ const a = e.decimalPart ? `${e.decimalSeparator}${e.decimalPart}` : "", l = `${e.integerPart}${a}`;
146
+ return e.currencyPosition === "end" ? `${l} ${e.currencyText}` : `${e.currencyText} ${l}`;
147
147
  };
148
- function _(e, t, l = {}) {
149
- const { leading: s = !1, trailing: a = !0, maxWait: i } = l;
150
- let r = null, n = null, c = null, u = 0, d = null, h = null, m;
151
- const p = i !== void 0, b = p ? Math.max(i, t) : 0, g = (o) => {
152
- u = o;
153
- const f = d, x = h;
154
- return d = null, h = null, m = e.apply(x, f), m;
155
- }, D = (o) => {
156
- const f = c ? o - c : 0;
157
- return t - f;
158
- }, P = (o) => {
159
- const f = c ? o - c : t, x = o - u;
160
- return c === null || f >= t || f < 0 || p && x >= b;
161
- }, v = (o) => (r = null, a && d ? g(o) : (d = null, h = null, m)), y = () => {
162
- const o = Date.now();
163
- if (P(o)) {
164
- v(o);
148
+ function Y(e, t, r = {}) {
149
+ const { leading: a = !1, trailing: l = !0, maxWait: o } = r;
150
+ let n = null, i = null, u = null, m = 0, p = null, h = null, c;
151
+ const f = o !== void 0, b = f ? Math.max(o, t) : 0, g = (s) => {
152
+ m = s;
153
+ const d = p, y = h;
154
+ return p = null, h = null, c = e.apply(y, d), c;
155
+ }, D = (s) => {
156
+ const d = u ? s - u : 0;
157
+ return t - d;
158
+ }, P = (s) => {
159
+ const d = u ? s - u : t, y = s - m;
160
+ return u === null || d >= t || d < 0 || f && y >= b;
161
+ }, v = (s) => (n = null, l && p ? g(s) : (p = null, h = null, c)), x = () => {
162
+ const s = Date.now();
163
+ if (P(s)) {
164
+ v(s);
165
165
  return;
166
166
  }
167
- r = setTimeout(y, D(o));
168
- }, C = () => {
169
- const o = Date.now();
170
- n = null, d && (g(o), r !== null && (clearTimeout(r), r = setTimeout(y, t)));
171
- }, S = (o) => (u = o, r = setTimeout(y, t), p && (n = setTimeout(C, b)), s ? g(o) : m), j = () => {
172
- r !== null && clearTimeout(r), n !== null && clearTimeout(n), u = 0, d = null, h = null, c = null, r = null, n = null;
173
- }, k = () => r === null && n === null ? m : v(Date.now()), O = () => r !== null || n !== null, $ = function(...o) {
174
- const f = Date.now(), x = P(f);
175
- if (d = o, h = this, c = f, x) {
176
- if (r === null)
177
- return S(f);
178
- if (p)
179
- return clearTimeout(r), r = setTimeout(y, t), g(f);
167
+ n = setTimeout(x, D(s));
168
+ }, S = () => {
169
+ const s = Date.now();
170
+ i = null, p && (g(s), n !== null && (clearTimeout(n), n = setTimeout(x, t)));
171
+ }, k = (s) => (m = s, n = setTimeout(x, t), f && (i = setTimeout(S, b)), a ? g(s) : c), C = () => {
172
+ n !== null && clearTimeout(n), i !== null && clearTimeout(i), m = 0, p = null, h = null, u = null, n = null, i = null;
173
+ }, j = () => n === null && i === null ? c : v(Date.now()), O = () => n !== null || i !== null, $ = function(...s) {
174
+ const d = Date.now(), y = P(d);
175
+ if (p = s, h = this, u = d, y) {
176
+ if (n === null)
177
+ return k(d);
178
+ if (f)
179
+ return clearTimeout(n), n = setTimeout(x, t), g(d);
180
180
  }
181
- return r === null && (r = setTimeout(y, t)), m;
181
+ return n === null && (n = setTimeout(x, t)), c;
182
182
  };
183
- return $.cancel = j, $.flush = k, $.pending = O, $;
183
+ return $.cancel = C, $.flush = j, $.pending = O, $;
184
184
  }
185
- function ae(e, t, l = {}) {
186
- const { leading: s = !0, trailing: a = !0 } = l;
187
- return _(e, t, {
188
- leading: s,
189
- trailing: a,
185
+ function de(e, t, r = {}) {
186
+ const { leading: a = !0, trailing: l = !0 } = r;
187
+ return Y(e, t, {
188
+ leading: a,
189
+ trailing: l,
190
190
  maxWait: t
191
191
  });
192
192
  }
193
- const se = ({
193
+ const me = ({
194
194
  onClick: e,
195
195
  disabled: t
196
196
  }) => e ? t ? {
@@ -200,41 +200,42 @@ const se = ({
200
200
  } : {
201
201
  role: "button",
202
202
  tabIndex: 0,
203
- onKeyDown: (l) => {
204
- (l.key === "Enter" || l.key === " ") && (l.preventDefault(), e?.(l));
203
+ onKeyDown: (r) => {
204
+ (r.key === "Enter" || r.key === " ") && (r.preventDefault(), e?.(r));
205
205
  },
206
206
  onClick: e
207
- } : void 0, A = " ", oe = ({
207
+ } : void 0, T = " ", fe = ({
208
208
  label: e,
209
209
  placeholder: t
210
210
  }) => {
211
- const l = typeof t == "string" && t.trim().length > 0 ? t : void 0;
211
+ const r = typeof t == "string" && t.trim().length > 0 ? t : void 0;
212
212
  return e ? {
213
- inputPlaceholder: l ?? A,
214
- labelStaysFloatedWithPlaceholder: l !== void 0
213
+ inputPlaceholder: r ?? T,
214
+ labelStaysFloatedWithPlaceholder: r !== void 0
215
215
  } : {
216
- inputPlaceholder: t ?? A,
216
+ inputPlaceholder: t ?? T,
217
217
  labelStaysFloatedWithPlaceholder: !1
218
218
  };
219
219
  };
220
220
  export {
221
- V as DisabledProvider,
222
- T as assignRef,
223
- le as buildAriaLabel,
224
- ee as cn,
225
- z as createSafeContext,
226
- _ as debounce,
227
- w as formatThousands,
228
- se as getButtonA11yProps,
229
- Z as getFontSize,
230
- ne as getStepperCalculations,
231
- K as mergeRefs,
232
- oe as resolveBaseInputPlaceholder,
233
- F as shallowEqual,
234
- H as textFormatter,
235
- ae as throttle,
236
- X as toPascalCase,
237
- Y as useDisabledContext,
238
- te as useMergedRef,
239
- re as useSplitText
221
+ ne as DisabledProvider,
222
+ w as assignRef,
223
+ ce as buildAriaLabel,
224
+ le as cn,
225
+ ie as createPropsResolver,
226
+ G as createSafeContext,
227
+ Y as debounce,
228
+ F as formatThousands,
229
+ me as getButtonA11yProps,
230
+ te as getFontSize,
231
+ se as getStepperCalculations,
232
+ J as mergeRefs,
233
+ fe as resolveBaseInputPlaceholder,
234
+ _ as shallowEqual,
235
+ re as textFormatter,
236
+ de as throttle,
237
+ ee as toPascalCase,
238
+ ae as useDisabledContext,
239
+ oe as useMergedRef,
240
+ ue as useSplitText
240
241
  };
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/lumen-ui-react",
3
- "version": "0.1.43",
3
+ "version": "0.1.45",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "keywords": [
@@ -41,7 +41,7 @@
41
41
  ]
42
42
  },
43
43
  "dependencies": {
44
- "@ledgerhq/lumen-utils-shared": "0.1.6",
44
+ "@ledgerhq/lumen-utils-shared": "0.1.7",
45
45
  "i18next": "^23.7.0",
46
46
  "react-i18next": "^14.0.0"
47
47
  },
@@ -54,7 +54,7 @@
54
54
  "@radix-ui/react-tooltip": "^1.2.8",
55
55
  "class-variance-authority": "^0.7.1",
56
56
  "@tanstack/react-table": "^8.21.3",
57
- "@ledgerhq/lumen-design-core": "0.1.18",
57
+ "@ledgerhq/lumen-design-core": "0.1.19",
58
58
  "clsx": "^2.1.1",
59
59
  "react": "^18.0.0 || ^19.0.0",
60
60
  "react-dom": "^18.0.0 || ^19.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/lumen-ui-react",
3
- "version": "0.1.44",
3
+ "version": "0.1.46",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "keywords": [
@@ -41,7 +41,7 @@
41
41
  ]
42
42
  },
43
43
  "dependencies": {
44
- "@ledgerhq/lumen-utils-shared": "0.1.6",
44
+ "@ledgerhq/lumen-utils-shared": "0.1.8",
45
45
  "i18next": "^23.7.0",
46
46
  "react-i18next": "^14.0.0"
47
47
  },
@@ -54,7 +54,7 @@
54
54
  "@radix-ui/react-tooltip": "^1.2.8",
55
55
  "class-variance-authority": "^0.7.1",
56
56
  "@tanstack/react-table": "^8.21.3",
57
- "@ledgerhq/lumen-design-core": "0.1.18",
57
+ "@ledgerhq/lumen-design-core": "0.1.20",
58
58
  "clsx": "^2.1.1",
59
59
  "react": "^18.0.0 || ^19.0.0",
60
60
  "react-dom": "^18.0.0 || ^19.0.0",
@@ -1,20 +0,0 @@
1
- export declare const ColorSwatch: ({ name, className, textClassName, category, }: {
2
- name: string;
3
- className: string;
4
- textClassName?: string;
5
- category?: "background" | "text" | "border";
6
- }) => import("react/jsx-runtime").JSX.Element;
7
- export declare const SectionHeader: ({ title, description, }: {
8
- title: string;
9
- description?: string;
10
- }) => import("react/jsx-runtime").JSX.Element;
11
- export declare const ColorSection: ({ title, tokens, category, }: {
12
- title?: string;
13
- tokens: {
14
- name: string;
15
- className: string;
16
- textClassName?: string;
17
- }[];
18
- category?: "background" | "text" | "border";
19
- }) => import("react/jsx-runtime").JSX.Element;
20
- //# sourceMappingURL=shared.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Design-tokens/shared.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,GAAI,+CAKzB;IACD,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,YAAY,GAAG,MAAM,GAAG,QAAQ,CAAC;CAC7C,4CAsDA,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,yBAG3B;IACD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,4CAKA,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,8BAI1B;IACD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACtE,QAAQ,CAAC,EAAE,YAAY,GAAG,MAAM,GAAG,QAAQ,CAAC;CAC7C,4CAeA,CAAC"}