@ledgerhq/lumen-ui-react 0.0.62 → 0.0.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/README.md +1 -1
- package/ai-rules/RULES.md +3 -3
- package/dist/i18n/locales/de.json.d.ts +23 -2
- package/dist/i18n/locales/de.json.js +4 -4
- package/dist/i18n/locales/en.json.d.ts +5 -1
- package/dist/i18n/locales/en.json.js +1 -1
- package/dist/i18n/locales/es.json.d.ts +23 -2
- package/dist/i18n/locales/es.json.js +4 -4
- package/dist/i18n/locales/fr.json.d.ts +6 -2
- package/dist/i18n/locales/fr.json.js +1 -1
- package/dist/i18n/locales/ja.json.d.ts +23 -2
- package/dist/i18n/locales/ja.json.js +4 -4
- package/dist/i18n/locales/ko.json.d.ts +23 -2
- package/dist/i18n/locales/ko.json.js +4 -4
- package/dist/i18n/locales/pt.json.d.ts +23 -2
- package/dist/i18n/locales/pt.json.js +4 -4
- package/dist/i18n/locales/ru.json.d.ts +23 -2
- package/dist/i18n/locales/ru.json.js +4 -4
- package/dist/i18n/locales/th.json.d.ts +23 -2
- package/dist/i18n/locales/th.json.js +4 -4
- package/dist/i18n/locales/tr.json.d.ts +23 -2
- package/dist/i18n/locales/tr.json.js +4 -4
- package/dist/i18n/locales/zh.json.d.ts +23 -2
- package/dist/i18n/locales/zh.json.js +4 -4
- package/dist/lib/Components/AddressInput/AddressInput.js +2 -2
- package/dist/lib/Components/AmountInput/AmountInput.js +2 -2
- package/dist/lib/Components/BaseInput/BaseInput.js +31 -31
- package/dist/lib/Components/Button/BaseButton.d.ts.map +1 -1
- package/dist/lib/Components/Button/BaseButton.js +1 -1
- package/dist/lib/Components/CardButton/CardButton.js +1 -1
- package/dist/lib/Components/Checkbox/Checkbox.js +7 -7
- package/dist/lib/Components/Dialog/Dialog.d.ts +1 -1
- package/dist/lib/Components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/lib/Components/Dialog/Dialog.js +56 -48
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +4 -4
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +7 -7
- package/dist/lib/Components/ListItem/ListItem.js +1 -1
- package/dist/lib/Components/Menu/Menu.js +5 -5
- package/dist/lib/Components/SearchInput/SearchInput.js +1 -1
- package/dist/lib/Components/Select/Select.js +64 -64
- package/dist/lib/Components/Spot/Spot.js +5 -5
- package/dist/lib/Components/Subheader/Subheader.js +1 -1
- package/dist/lib/Components/Switch/Switch.js +3 -3
- package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
- package/dist/lib/Components/Tile/Tile.js +35 -38
- package/dist/lib/Components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/lib/Components/Tooltip/Tooltip.js +2 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ const [V, u] = C("Tile"), v = {
|
|
|
8
8
|
root: b(
|
|
9
9
|
[
|
|
10
10
|
"group relative flex flex-col items-center gap-8 text-base transition-colors",
|
|
11
|
-
"focus-visible:outline-
|
|
11
|
+
"rounded-md focus-visible:outline-2 focus-visible:outline-focus"
|
|
12
12
|
],
|
|
13
13
|
{
|
|
14
14
|
variants: {
|
|
@@ -59,48 +59,48 @@ const [V, u] = C("Tile"), v = {
|
|
|
59
59
|
}
|
|
60
60
|
),
|
|
61
61
|
button: b(
|
|
62
|
-
"
|
|
62
|
+
"flex w-full cursor-pointer flex-col items-center gap-8 rounded-md px-8 py-12 focus-visible:outline-2 focus-visible:outline-focus"
|
|
63
63
|
)
|
|
64
64
|
}, j = ({
|
|
65
65
|
className: e,
|
|
66
66
|
onClick: i,
|
|
67
|
-
appearance:
|
|
67
|
+
appearance: r = "no-background",
|
|
68
68
|
disabled: t = !1,
|
|
69
69
|
"aria-label": p,
|
|
70
70
|
children: m,
|
|
71
|
-
onMouseDown:
|
|
72
|
-
onMouseUp:
|
|
73
|
-
onMouseLeave:
|
|
71
|
+
onMouseDown: o,
|
|
72
|
+
onMouseUp: c,
|
|
73
|
+
onMouseLeave: s,
|
|
74
74
|
...x
|
|
75
75
|
}) => {
|
|
76
|
-
const [
|
|
76
|
+
const [y, f] = I(!1), { slotElement: N, remainingChildren: g } = q(
|
|
77
77
|
m,
|
|
78
78
|
T
|
|
79
79
|
), h = n(
|
|
80
80
|
(a) => {
|
|
81
81
|
a.target.closest(
|
|
82
82
|
"[data-secondary-button-container]"
|
|
83
|
-
) || (
|
|
83
|
+
) || (o == null || o(a), f(!0));
|
|
84
84
|
},
|
|
85
|
-
[
|
|
85
|
+
[o]
|
|
86
86
|
), A = n(
|
|
87
87
|
(a) => {
|
|
88
|
-
f(!1),
|
|
88
|
+
f(!1), c == null || c(a);
|
|
89
89
|
},
|
|
90
|
-
[
|
|
90
|
+
[c]
|
|
91
91
|
), S = n(
|
|
92
92
|
(a) => {
|
|
93
|
-
f(!1),
|
|
93
|
+
f(!1), s == null || s(a);
|
|
94
94
|
},
|
|
95
|
-
[
|
|
95
|
+
[s]
|
|
96
96
|
);
|
|
97
97
|
return /* @__PURE__ */ l(V, { value: { disabled: t }, children: /* @__PURE__ */ k(
|
|
98
98
|
"div",
|
|
99
99
|
{
|
|
100
100
|
...x,
|
|
101
101
|
className: v.root({
|
|
102
|
-
appearance:
|
|
103
|
-
isActive:
|
|
102
|
+
appearance: r,
|
|
103
|
+
isActive: y,
|
|
104
104
|
disabled: t,
|
|
105
105
|
className: e
|
|
106
106
|
}),
|
|
@@ -122,10 +122,10 @@ const [V, u] = C("Tile"), v = {
|
|
|
122
122
|
disabled: t,
|
|
123
123
|
"data-disabled": t || void 0,
|
|
124
124
|
className: v.button(),
|
|
125
|
-
children:
|
|
125
|
+
children: g
|
|
126
126
|
}
|
|
127
127
|
),
|
|
128
|
-
|
|
128
|
+
N
|
|
129
129
|
]
|
|
130
130
|
}
|
|
131
131
|
) });
|
|
@@ -142,15 +142,12 @@ w.displayName = "TileSpot";
|
|
|
142
142
|
const P = ({
|
|
143
143
|
children: e,
|
|
144
144
|
className: i,
|
|
145
|
-
...
|
|
145
|
+
...r
|
|
146
146
|
}) => /* @__PURE__ */ l(
|
|
147
147
|
"div",
|
|
148
148
|
{
|
|
149
|
-
className: d(
|
|
150
|
-
|
|
151
|
-
i
|
|
152
|
-
),
|
|
153
|
-
...s,
|
|
149
|
+
className: d("flex w-full flex-col items-center text-center", i),
|
|
150
|
+
...r,
|
|
154
151
|
children: e
|
|
155
152
|
}
|
|
156
153
|
);
|
|
@@ -158,7 +155,7 @@ P.displayName = "TileContent";
|
|
|
158
155
|
const D = ({
|
|
159
156
|
children: e,
|
|
160
157
|
className: i,
|
|
161
|
-
...
|
|
158
|
+
...r
|
|
162
159
|
}) => {
|
|
163
160
|
const { disabled: t } = u({
|
|
164
161
|
consumerName: "TileTitle",
|
|
@@ -168,11 +165,11 @@ const D = ({
|
|
|
168
165
|
"div",
|
|
169
166
|
{
|
|
170
167
|
className: d(
|
|
171
|
-
"body-2-semi-bold
|
|
168
|
+
"w-full truncate body-2-semi-bold",
|
|
172
169
|
t && "text-disabled",
|
|
173
170
|
i
|
|
174
171
|
),
|
|
175
|
-
...
|
|
172
|
+
...r,
|
|
176
173
|
children: e
|
|
177
174
|
}
|
|
178
175
|
);
|
|
@@ -181,7 +178,7 @@ D.displayName = "TileTitle";
|
|
|
181
178
|
const E = ({
|
|
182
179
|
children: e,
|
|
183
180
|
className: i,
|
|
184
|
-
...
|
|
181
|
+
...r
|
|
185
182
|
}) => {
|
|
186
183
|
const { disabled: t } = u({
|
|
187
184
|
consumerName: "TileDescription",
|
|
@@ -191,11 +188,11 @@ const E = ({
|
|
|
191
188
|
"div",
|
|
192
189
|
{
|
|
193
190
|
className: d(
|
|
194
|
-
"
|
|
191
|
+
"w-full truncate body-3",
|
|
195
192
|
t ? "text-disabled" : "text-muted",
|
|
196
193
|
i
|
|
197
194
|
),
|
|
198
|
-
...
|
|
195
|
+
...r,
|
|
199
196
|
children: e
|
|
200
197
|
}
|
|
201
198
|
);
|
|
@@ -204,35 +201,35 @@ E.displayName = "TileDescription";
|
|
|
204
201
|
const T = ({
|
|
205
202
|
onClick: e,
|
|
206
203
|
icon: i,
|
|
207
|
-
className:
|
|
204
|
+
className: r,
|
|
208
205
|
"aria-label": t,
|
|
209
206
|
...p
|
|
210
207
|
}) => {
|
|
211
208
|
const { disabled: m } = u({
|
|
212
209
|
consumerName: "TileSecondaryAction",
|
|
213
210
|
contextRequired: !0
|
|
214
|
-
}),
|
|
215
|
-
(
|
|
216
|
-
|
|
211
|
+
}), o = n(
|
|
212
|
+
(s) => {
|
|
213
|
+
s.stopPropagation(), s.preventDefault(), e == null || e(s);
|
|
217
214
|
},
|
|
218
215
|
[e]
|
|
219
216
|
);
|
|
220
217
|
if (m) return null;
|
|
221
|
-
const
|
|
218
|
+
const c = i;
|
|
222
219
|
return /* @__PURE__ */ l(
|
|
223
220
|
z,
|
|
224
221
|
{
|
|
225
222
|
"data-slot": "tile-secondary-action",
|
|
226
223
|
className: d(
|
|
227
|
-
"absolute
|
|
228
|
-
|
|
224
|
+
"absolute top-8 right-4 opacity-0 transition-opacity duration-200 group-hover:opacity-100 focus-within:opacity-100",
|
|
225
|
+
r
|
|
229
226
|
),
|
|
230
227
|
"data-secondary-button-container": !0,
|
|
231
228
|
iconType: "stroked",
|
|
232
|
-
onClick:
|
|
229
|
+
onClick: o,
|
|
233
230
|
"aria-label": t,
|
|
234
231
|
...p,
|
|
235
|
-
children: /* @__PURE__ */ l(
|
|
232
|
+
children: /* @__PURE__ */ l(c, { size: 24 })
|
|
236
233
|
}
|
|
237
234
|
);
|
|
238
235
|
};
|
|
@@ -93,7 +93,7 @@ export declare const TooltipTrigger: ({ ...props }: TooltipTriggerProps) => impo
|
|
|
93
93
|
* // With custom styling for layout
|
|
94
94
|
* <TooltipContent sideOffset={12} className="max-w-xs">
|
|
95
95
|
* <div className="space-y-2">
|
|
96
|
-
* <h4 className="heading-
|
|
96
|
+
* <h4 className="heading-2">Tip Title</h4>
|
|
97
97
|
* <p>Detailed explanation of the feature.</p>
|
|
98
98
|
* </div>
|
|
99
99
|
* </TooltipContent>
|
|
@@ -3,7 +3,7 @@ import { cn as s } from "../../../libs/utils-shared/dist/index.js";
|
|
|
3
3
|
import * as e from "@radix-ui/react-tooltip";
|
|
4
4
|
import { cva as d } from "class-variance-authority";
|
|
5
5
|
const m = d(
|
|
6
|
-
"z-tooltip w-fit
|
|
6
|
+
"z-tooltip w-fit rounded-xs bg-interactive px-8 py-4 body-3 text-balance text-on-interactive select-none",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
side: {
|
|
@@ -46,7 +46,7 @@ const m = d(
|
|
|
46
46
|
className: s(m({ side: a }), t),
|
|
47
47
|
...n,
|
|
48
48
|
children: [
|
|
49
|
-
/* @__PURE__ */ o(e.Arrow, { className: "size-10 translate-y-[calc(-50
|
|
49
|
+
/* @__PURE__ */ o(e.Arrow, { className: "size-10 translate-y-[calc(-50%-1px)] rotate-45 rounded-[1px] bg-interactive fill-interactive" }),
|
|
50
50
|
/* @__PURE__ */ o("div", { className: "relative", children: r })
|
|
51
51
|
]
|
|
52
52
|
}
|
package/dist/package.json
CHANGED