@ledgerhq/lumen-ui-react 0.1.11 → 0.1.13
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/i18n/locales/de.json.d.ts +3 -0
- package/dist/i18n/locales/de.json.js +4 -2
- package/dist/i18n/locales/en.json.d.ts +3 -0
- package/dist/i18n/locales/en.json.js +6 -4
- package/dist/i18n/locales/es.json.d.ts +3 -0
- package/dist/i18n/locales/es.json.js +6 -4
- package/dist/i18n/locales/fr.json.d.ts +3 -0
- package/dist/i18n/locales/fr.json.js +6 -4
- package/dist/i18n/locales/ja.json.d.ts +3 -0
- package/dist/i18n/locales/ja.json.js +6 -4
- package/dist/i18n/locales/ko.json.d.ts +3 -0
- package/dist/i18n/locales/ko.json.js +6 -4
- package/dist/i18n/locales/pt.json.d.ts +3 -0
- package/dist/i18n/locales/pt.json.js +6 -4
- package/dist/i18n/locales/ru.json.d.ts +3 -0
- package/dist/i18n/locales/ru.json.js +6 -4
- package/dist/i18n/locales/th.json.d.ts +3 -0
- package/dist/i18n/locales/th.json.js +6 -4
- package/dist/i18n/locales/tr.json.d.ts +3 -0
- package/dist/i18n/locales/tr.json.js +6 -4
- package/dist/i18n/locales/zh.json.d.ts +3 -0
- package/dist/i18n/locales/zh.json.js +6 -4
- package/dist/index.js +114 -113
- package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
- package/dist/lib/Components/AmountDisplay/AmountDisplay.js +41 -41
- package/dist/lib/Components/AmountInput/AmountInput.d.ts +1 -1
- package/dist/lib/Components/AmountInput/AmountInput.d.ts.map +1 -1
- package/dist/lib/Components/AmountInput/AmountInput.js +35 -32
- package/dist/lib/Components/Banner/Banner.js +5 -5
- package/dist/lib/Components/BaseInput/BaseInput.d.ts +1 -1
- package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
- package/dist/lib/Components/BaseInput/BaseInput.js +44 -41
- package/dist/lib/Components/Button/BaseButton.d.ts +1 -1
- package/dist/lib/Components/Button/BaseButton.d.ts.map +1 -1
- package/dist/lib/Components/Button/BaseButton.js +28 -25
- package/dist/lib/Components/Button/Button.js +9 -9
- package/dist/lib/Components/Card/Card.d.ts.map +1 -1
- package/dist/lib/Components/Card/Card.js +110 -107
- package/dist/lib/Components/Card/types.d.ts +1 -0
- package/dist/lib/Components/Card/types.d.ts.map +1 -1
- package/dist/lib/Components/CardButton/CardButton.d.ts +1 -1
- package/dist/lib/Components/CardButton/CardButton.d.ts.map +1 -1
- package/dist/lib/Components/CardButton/CardButton.js +28 -24
- package/dist/lib/Components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/lib/Components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/lib/Components/Checkbox/Checkbox.js +26 -14
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +2 -2
- package/dist/lib/Components/Dialog/types.d.ts +1 -1
- package/dist/lib/Components/Icon/Icon.js +4 -4
- package/dist/lib/Components/Icon/createIcon.js +4 -4
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts +1 -1
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts.map +1 -1
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +40 -20
- package/dist/lib/Components/InteractiveIcon/types.d.ts +14 -1
- package/dist/lib/Components/InteractiveIcon/types.d.ts.map +1 -1
- package/dist/lib/Components/Link/Link.d.ts +1 -1
- package/dist/lib/Components/Link/Link.d.ts.map +1 -1
- package/dist/lib/Components/Link/Link.js +44 -33
- package/dist/lib/Components/Link/types.d.ts +5 -0
- package/dist/lib/Components/Link/types.d.ts.map +1 -1
- package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/lib/Components/ListItem/ListItem.js +72 -65
- package/dist/lib/Components/MediaCard/MediaCard.d.ts +33 -0
- package/dist/lib/Components/MediaCard/MediaCard.d.ts.map +1 -0
- package/dist/lib/Components/MediaCard/MediaCard.js +128 -0
- package/dist/lib/Components/MediaCard/index.d.ts +3 -0
- package/dist/lib/Components/MediaCard/index.d.ts.map +1 -0
- package/dist/lib/Components/MediaCard/types.d.ts +30 -0
- package/dist/lib/Components/MediaCard/types.d.ts.map +1 -0
- package/dist/lib/Components/Menu/Menu.d.ts +3 -3
- package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
- package/dist/lib/Components/Menu/Menu.js +133 -104
- package/dist/lib/Components/NavBar/CoinCapsule.js +4 -4
- package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/lib/Components/SegmentedControl/SegmentedControl.js +88 -51
- package/dist/lib/Components/SegmentedControl/SegmentedControlContext.d.ts +1 -1
- package/dist/lib/Components/SegmentedControl/SegmentedControlContext.d.ts.map +1 -1
- package/dist/lib/Components/Select/Select.d.ts +5 -5
- package/dist/lib/Components/Select/Select.d.ts.map +1 -1
- package/dist/lib/Components/Select/Select.js +94 -76
- package/dist/lib/Components/Select/index.d.ts +1 -1
- package/dist/lib/Components/Select/types.d.ts +4 -4
- package/dist/lib/Components/SideBar/SideBar.d.ts +1 -1
- package/dist/lib/Components/SideBar/SideBar.d.ts.map +1 -1
- package/dist/lib/Components/SideBar/SideBar.js +77 -74
- package/dist/lib/Components/SideBar/types.d.ts +12 -4
- package/dist/lib/Components/SideBar/types.d.ts.map +1 -1
- package/dist/lib/Components/Spot/Spot.js +3 -3
- package/dist/lib/Components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/lib/Components/Stepper/Stepper.js +34 -24
- package/dist/lib/Components/Subheader/Subheader.d.ts +2 -7
- package/dist/lib/Components/Subheader/Subheader.d.ts.map +1 -1
- package/dist/lib/Components/Subheader/Subheader.js +31 -49
- package/dist/lib/Components/Subheader/index.d.ts +1 -1
- package/dist/lib/Components/Subheader/index.d.ts.map +1 -1
- package/dist/lib/Components/Subheader/types.d.ts +1 -11
- package/dist/lib/Components/Subheader/types.d.ts.map +1 -1
- package/dist/lib/Components/Switch/Switch.d.ts +1 -1
- package/dist/lib/Components/Switch/Switch.d.ts.map +1 -1
- package/dist/lib/Components/Switch/Switch.js +30 -22
- package/dist/lib/Components/Table/Table.js +49 -49
- package/dist/lib/Components/Tag/Tag.d.ts +1 -1
- package/dist/lib/Components/Tag/Tag.d.ts.map +1 -1
- package/dist/lib/Components/Tag/Tag.js +17 -14
- package/dist/lib/Components/Tile/Tile.d.ts +5 -12
- package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
- package/dist/lib/Components/Tile/Tile.js +79 -82
- package/dist/lib/Components/Tile/index.d.ts +1 -1
- package/dist/lib/Components/Tile/index.d.ts.map +1 -1
- package/dist/lib/Components/Tile/types.d.ts +1 -10
- package/dist/lib/Components/Tile/types.d.ts.map +1 -1
- package/dist/lib/Components/TileButton/TileButton.d.ts +1 -1
- package/dist/lib/Components/TileButton/TileButton.d.ts.map +1 -1
- package/dist/lib/Components/TileButton/TileButton.js +26 -23
- package/dist/lib/Components/{ButtonTrigger/ButtonTrigger.d.ts → TriggerButton/TriggerButton.d.ts} +10 -10
- package/dist/lib/Components/TriggerButton/TriggerButton.d.ts.map +1 -0
- package/dist/lib/Components/TriggerButton/TriggerButton.js +76 -0
- package/dist/lib/Components/TriggerButton/index.d.ts +3 -0
- package/dist/lib/Components/{ButtonTrigger → TriggerButton}/index.d.ts.map +1 -1
- package/dist/lib/Components/{ButtonTrigger → TriggerButton}/types.d.ts +1 -1
- package/dist/lib/Components/{ButtonTrigger → TriggerButton}/types.d.ts.map +1 -1
- package/dist/lib/Components/index.d.ts +2 -1
- package/dist/lib/Components/index.d.ts.map +1 -1
- package/dist/lib/Symbols/Icons/NanoGen5.d.ts +29 -0
- package/dist/lib/Symbols/Icons/NanoGen5.d.ts.map +1 -0
- package/dist/lib/Symbols/Icons/NanoGen5.js +27 -0
- package/dist/lib/Symbols/index.d.ts +1 -0
- package/dist/lib/Symbols/index.d.ts.map +1 -1
- package/dist/lib/Symbols/index.js +194 -192
- package/dist/libs/utils-shared/dist/index.js +95 -90
- package/dist/package.json +2 -2
- package/package.json +2 -2
- package/dist/lib/Components/ButtonTrigger/ButtonTrigger.d.ts.map +0 -1
- package/dist/lib/Components/ButtonTrigger/ButtonTrigger.js +0 -73
- package/dist/lib/Components/ButtonTrigger/index.d.ts +0 -3
|
@@ -20,7 +20,7 @@ import { SwitchProps } from './types';
|
|
|
20
20
|
* <Switch size="sm" selected={selected} onChange={(selected) => setSelected(selected)} disabled={someCondition} />
|
|
21
21
|
*/
|
|
22
22
|
export declare const Switch: {
|
|
23
|
-
({ ref, className, selected, defaultSelected, onChange, size, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
({ ref, className, selected, defaultSelected, onChange, size, disabled: disabledProp, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
displayName: string;
|
|
25
25
|
};
|
|
26
26
|
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Switch/Switch.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAqCtC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,MAAM;
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Switch/Switch.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAqCtC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,MAAM;sGAShB,WAAW;;CAmBb,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as s } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
-
import * as
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useDisabledContext as h, cn as s } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import * as a from "@radix-ui/react-switch";
|
|
4
4
|
import { cva as d } from "class-variance-authority";
|
|
5
|
-
const
|
|
5
|
+
const b = d(
|
|
6
6
|
s(
|
|
7
7
|
"group flex cursor-pointer items-center rounded-full p-2 transition-colors duration-200 ease-in-out focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
|
|
8
8
|
"[&[data-state=unchecked]:not([data-disabled])]:bg-muted-strong [&[data-state=unchecked]:not([data-disabled])]:hover:bg-muted-strong-hover [&[data-state=unchecked]:not([data-disabled])]:active:bg-muted-strong-pressed",
|
|
@@ -20,7 +20,7 @@ const u = d(
|
|
|
20
20
|
size: "md"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
),
|
|
23
|
+
), g = d(
|
|
24
24
|
"translate-x-0 rounded-full bg-white transition-transform duration-200 ease-in-out group-data-disabled:bg-base",
|
|
25
25
|
{
|
|
26
26
|
variants: {
|
|
@@ -33,27 +33,35 @@ const u = d(
|
|
|
33
33
|
size: "md"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
),
|
|
36
|
+
), f = ({
|
|
37
37
|
ref: i,
|
|
38
38
|
className: o,
|
|
39
39
|
selected: r,
|
|
40
40
|
defaultSelected: n,
|
|
41
41
|
onChange: c,
|
|
42
|
-
size:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
42
|
+
size: e = "md",
|
|
43
|
+
disabled: l,
|
|
44
|
+
...u
|
|
45
|
+
}) => {
|
|
46
|
+
const m = h({
|
|
47
|
+
consumerName: "Switch",
|
|
48
|
+
mergeWith: { disabled: l }
|
|
49
|
+
});
|
|
50
|
+
return /* @__PURE__ */ t(
|
|
51
|
+
a.Root,
|
|
52
|
+
{
|
|
53
|
+
ref: i,
|
|
54
|
+
className: s(o, b({ size: e })),
|
|
55
|
+
checked: r,
|
|
56
|
+
defaultChecked: n,
|
|
57
|
+
onCheckedChange: c,
|
|
58
|
+
disabled: m,
|
|
59
|
+
...u,
|
|
60
|
+
children: /* @__PURE__ */ t(a.Thumb, { className: g({ size: e }) })
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
f.displayName = "Switch";
|
|
57
65
|
export {
|
|
58
|
-
|
|
66
|
+
f as Switch
|
|
59
67
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as l, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { createSafeContext as N, cn as c } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as s } from "class-variance-authority";
|
|
4
4
|
import { useThrottledScrollBottom as T } from "./utils/useThrottledScrollBottom.js";
|
|
@@ -23,16 +23,16 @@ const [A, u] = N("Table"), I = s(
|
|
|
23
23
|
children: t,
|
|
24
24
|
appearance: e = "no-background",
|
|
25
25
|
className: a,
|
|
26
|
-
onScrollBottom:
|
|
26
|
+
onScrollBottom: n,
|
|
27
27
|
loading: r,
|
|
28
28
|
ref: o,
|
|
29
29
|
...i
|
|
30
30
|
}) => {
|
|
31
31
|
const d = T({
|
|
32
|
-
onScrollBottom:
|
|
32
|
+
onScrollBottom: n,
|
|
33
33
|
loading: r
|
|
34
34
|
});
|
|
35
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ l(A, { value: { appearance: e, loading: r }, children: /* @__PURE__ */ l(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
38
|
...i,
|
|
@@ -44,10 +44,10 @@ const [A, u] = N("Table"), I = s(
|
|
|
44
44
|
) });
|
|
45
45
|
};
|
|
46
46
|
L.displayName = "TableRoot";
|
|
47
|
-
const S = ({ children: t, className: e, ref: a, ...
|
|
47
|
+
const S = ({ children: t, className: e, ref: a, ...n }) => /* @__PURE__ */ l(
|
|
48
48
|
"table",
|
|
49
49
|
{
|
|
50
|
-
...
|
|
50
|
+
...n,
|
|
51
51
|
className: c("w-full max-w-full table-fixed", e),
|
|
52
52
|
ref: a,
|
|
53
53
|
children: t
|
|
@@ -58,28 +58,28 @@ const V = ({
|
|
|
58
58
|
children: t,
|
|
59
59
|
className: e,
|
|
60
60
|
ref: a,
|
|
61
|
-
...
|
|
62
|
-
}) => /* @__PURE__ */
|
|
61
|
+
...n
|
|
62
|
+
}) => /* @__PURE__ */ l("thead", { ref: a, className: e, ...n, children: t });
|
|
63
63
|
V.displayName = "TableHeader";
|
|
64
64
|
const k = ({
|
|
65
65
|
children: t,
|
|
66
66
|
className: e,
|
|
67
67
|
ref: a,
|
|
68
|
-
...
|
|
69
|
-
}) => /* @__PURE__ */
|
|
68
|
+
...n
|
|
69
|
+
}) => /* @__PURE__ */ l("tbody", { ref: a, className: e, ...n, children: t });
|
|
70
70
|
k.displayName = "TableBody";
|
|
71
71
|
const z = ({
|
|
72
72
|
children: t,
|
|
73
73
|
className: e,
|
|
74
74
|
clickable: a = !1,
|
|
75
|
-
onClick:
|
|
75
|
+
onClick: n,
|
|
76
76
|
ref: r,
|
|
77
77
|
...o
|
|
78
|
-
}) => /* @__PURE__ */
|
|
78
|
+
}) => /* @__PURE__ */ l(
|
|
79
79
|
"tr",
|
|
80
80
|
{
|
|
81
81
|
ref: r,
|
|
82
|
-
onClick:
|
|
82
|
+
onClick: n,
|
|
83
83
|
role: a ? "button" : void 0,
|
|
84
84
|
className: c(
|
|
85
85
|
a && "cursor-pointer outline-none select-none hover:bg-base-transparent-hover active:bg-base-transparent-pressed",
|
|
@@ -101,18 +101,18 @@ const q = s("sticky top-0", {
|
|
|
101
101
|
children: t,
|
|
102
102
|
className: e,
|
|
103
103
|
ref: a,
|
|
104
|
-
...
|
|
104
|
+
...n
|
|
105
105
|
}) => {
|
|
106
106
|
const { appearance: r } = u({
|
|
107
107
|
consumerName: "TableHeaderRow",
|
|
108
108
|
contextRequired: !0
|
|
109
109
|
});
|
|
110
|
-
return /* @__PURE__ */
|
|
110
|
+
return /* @__PURE__ */ l(
|
|
111
111
|
"tr",
|
|
112
112
|
{
|
|
113
113
|
ref: a,
|
|
114
114
|
className: q({ appearance: r, className: e }),
|
|
115
|
-
...
|
|
115
|
+
...n,
|
|
116
116
|
children: t
|
|
117
117
|
}
|
|
118
118
|
);
|
|
@@ -122,14 +122,14 @@ const M = ({
|
|
|
122
122
|
children: t,
|
|
123
123
|
className: e,
|
|
124
124
|
colSpan: a = 1,
|
|
125
|
-
ref:
|
|
125
|
+
ref: n,
|
|
126
126
|
...r
|
|
127
127
|
}) => {
|
|
128
128
|
const { appearance: o } = u({
|
|
129
129
|
consumerName: "TableGroupHeaderRow",
|
|
130
130
|
contextRequired: !0
|
|
131
131
|
});
|
|
132
|
-
return /* @__PURE__ */
|
|
132
|
+
return /* @__PURE__ */ l("tr", { ref: n, className: c("h-40", e), ...r, children: /* @__PURE__ */ l("td", { colSpan: a, children: /* @__PURE__ */ l(
|
|
133
133
|
"div",
|
|
134
134
|
{
|
|
135
135
|
className: c(
|
|
@@ -168,16 +168,16 @@ const p = {
|
|
|
168
168
|
children: t,
|
|
169
169
|
className: e,
|
|
170
170
|
hideBelow: a,
|
|
171
|
-
align:
|
|
171
|
+
align: n = "start",
|
|
172
172
|
ref: r,
|
|
173
173
|
...o
|
|
174
|
-
}) => /* @__PURE__ */
|
|
174
|
+
}) => /* @__PURE__ */ l(
|
|
175
175
|
"td",
|
|
176
176
|
{
|
|
177
177
|
ref: r,
|
|
178
178
|
className: p.root({ hideBelow: a, className: e }),
|
|
179
179
|
...o,
|
|
180
|
-
children: /* @__PURE__ */
|
|
180
|
+
children: /* @__PURE__ */ l("div", { className: p.inner({ align: n }), children: t })
|
|
181
181
|
}
|
|
182
182
|
);
|
|
183
183
|
P.displayName = "TableCell";
|
|
@@ -192,7 +192,7 @@ const U = s("flex items-center gap-12 truncate", {
|
|
|
192
192
|
className: t,
|
|
193
193
|
align: e = "start",
|
|
194
194
|
leadingContent: a,
|
|
195
|
-
title:
|
|
195
|
+
title: n,
|
|
196
196
|
description: r,
|
|
197
197
|
ref: o,
|
|
198
198
|
...i
|
|
@@ -203,10 +203,10 @@ const U = s("flex items-center gap-12 truncate", {
|
|
|
203
203
|
className: U({ align: e, className: t }),
|
|
204
204
|
...i,
|
|
205
205
|
children: [
|
|
206
|
-
/* @__PURE__ */
|
|
206
|
+
/* @__PURE__ */ l("div", { children: a }),
|
|
207
207
|
/* @__PURE__ */ m("div", { className: "flex flex-col gap-4 truncate", children: [
|
|
208
|
-
/* @__PURE__ */
|
|
209
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ l("div", { className: "truncate body-2 text-base", children: n }),
|
|
209
|
+
/* @__PURE__ */ l("div", { className: "truncate body-3 text-muted", children: r })
|
|
210
210
|
] })
|
|
211
211
|
]
|
|
212
212
|
}
|
|
@@ -239,21 +239,21 @@ const f = {
|
|
|
239
239
|
children: t,
|
|
240
240
|
className: e,
|
|
241
241
|
scope: a = "col",
|
|
242
|
-
hideBelow:
|
|
242
|
+
hideBelow: n,
|
|
243
243
|
align: r = "start",
|
|
244
244
|
trailingContent: o,
|
|
245
245
|
ref: i,
|
|
246
246
|
...d
|
|
247
|
-
}) => /* @__PURE__ */
|
|
247
|
+
}) => /* @__PURE__ */ l(
|
|
248
248
|
"th",
|
|
249
249
|
{
|
|
250
250
|
ref: i,
|
|
251
251
|
scope: a,
|
|
252
|
-
className: f.root({ hideBelow:
|
|
252
|
+
className: f.root({ hideBelow: n, className: e }),
|
|
253
253
|
...d,
|
|
254
|
-
children: /* @__PURE__ */
|
|
255
|
-
/* @__PURE__ */
|
|
256
|
-
/* @__PURE__ */
|
|
254
|
+
children: /* @__PURE__ */ l("div", { className: "min-w-0", children: /* @__PURE__ */ m("div", { className: f.content({ align: r }), children: [
|
|
255
|
+
/* @__PURE__ */ l("span", { className: c("truncate", r === "end" && "order-1"), children: t }),
|
|
256
|
+
/* @__PURE__ */ l("div", { className: "flex items-center justify-center opacity-0 group-hover:opacity-100", children: o })
|
|
257
257
|
] }) })
|
|
258
258
|
}
|
|
259
259
|
);
|
|
@@ -262,13 +262,13 @@ const J = ({
|
|
|
262
262
|
children: t,
|
|
263
263
|
className: e,
|
|
264
264
|
ref: a,
|
|
265
|
-
...
|
|
266
|
-
}) => /* @__PURE__ */
|
|
265
|
+
...n
|
|
266
|
+
}) => /* @__PURE__ */ l(
|
|
267
267
|
"div",
|
|
268
268
|
{
|
|
269
269
|
ref: a,
|
|
270
270
|
className: c("flex items-center gap-8 py-12", e),
|
|
271
|
-
...
|
|
271
|
+
...n,
|
|
272
272
|
children: t
|
|
273
273
|
}
|
|
274
274
|
);
|
|
@@ -277,13 +277,13 @@ const K = ({
|
|
|
277
277
|
children: t,
|
|
278
278
|
className: e,
|
|
279
279
|
ref: a,
|
|
280
|
-
...
|
|
281
|
-
}) => /* @__PURE__ */
|
|
280
|
+
...n
|
|
281
|
+
}) => /* @__PURE__ */ l(
|
|
282
282
|
"div",
|
|
283
283
|
{
|
|
284
284
|
ref: a,
|
|
285
285
|
className: c("flex items-center gap-8", e),
|
|
286
|
-
...
|
|
286
|
+
...n,
|
|
287
287
|
children: t
|
|
288
288
|
}
|
|
289
289
|
);
|
|
@@ -292,13 +292,13 @@ const O = ({
|
|
|
292
292
|
children: t,
|
|
293
293
|
className: e,
|
|
294
294
|
ref: a,
|
|
295
|
-
...
|
|
296
|
-
}) => /* @__PURE__ */
|
|
295
|
+
...n
|
|
296
|
+
}) => /* @__PURE__ */ l(
|
|
297
297
|
"div",
|
|
298
298
|
{
|
|
299
299
|
ref: a,
|
|
300
300
|
className: c("ml-auto flex items-center gap-8", e),
|
|
301
|
-
...
|
|
301
|
+
...n,
|
|
302
302
|
children: t
|
|
303
303
|
}
|
|
304
304
|
);
|
|
@@ -308,11 +308,11 @@ const Q = ({
|
|
|
308
308
|
ref: e,
|
|
309
309
|
...a
|
|
310
310
|
}) => {
|
|
311
|
-
const { loading:
|
|
311
|
+
const { loading: n } = u({
|
|
312
312
|
consumerName: "TableLoadingRow",
|
|
313
313
|
contextRequired: !0
|
|
314
314
|
});
|
|
315
|
-
return
|
|
315
|
+
return n ? /* @__PURE__ */ l(
|
|
316
316
|
"div",
|
|
317
317
|
{
|
|
318
318
|
...a,
|
|
@@ -321,7 +321,7 @@ const Q = ({
|
|
|
321
321
|
"flex h-80 w-full items-center justify-center p-12",
|
|
322
322
|
t
|
|
323
323
|
),
|
|
324
|
-
children: /* @__PURE__ */
|
|
324
|
+
children: /* @__PURE__ */ l(g, { appearance: "loader", size: 48 })
|
|
325
325
|
}
|
|
326
326
|
) : null;
|
|
327
327
|
};
|
|
@@ -330,14 +330,14 @@ const W = ({
|
|
|
330
330
|
className: t,
|
|
331
331
|
ref: e,
|
|
332
332
|
...a
|
|
333
|
-
}) => /* @__PURE__ */
|
|
333
|
+
}) => /* @__PURE__ */ l(
|
|
334
334
|
H,
|
|
335
335
|
{
|
|
336
336
|
...a,
|
|
337
337
|
iconType: "filled",
|
|
338
338
|
className: t,
|
|
339
339
|
ref: e,
|
|
340
|
-
children: /* @__PURE__ */
|
|
340
|
+
children: /* @__PURE__ */ l(w, { size: 20 })
|
|
341
341
|
}
|
|
342
342
|
);
|
|
343
343
|
W.displayName = "TableInfoIcon";
|
|
@@ -372,7 +372,7 @@ const X = {
|
|
|
372
372
|
children: t,
|
|
373
373
|
sortDirection: e,
|
|
374
374
|
align: a = "start",
|
|
375
|
-
onToggleSort:
|
|
375
|
+
onToggleSort: n,
|
|
376
376
|
className: r,
|
|
377
377
|
onClick: o,
|
|
378
378
|
ref: i,
|
|
@@ -391,11 +391,11 @@ const X = {
|
|
|
391
391
|
className: v.root({ align: a, className: r }),
|
|
392
392
|
"aria-label": e ? h[e] : void 0,
|
|
393
393
|
onClick: (y) => {
|
|
394
|
-
o?.(y),
|
|
394
|
+
o?.(y), n?.(e === "asc" ? "desc" : "asc");
|
|
395
395
|
},
|
|
396
396
|
children: [
|
|
397
|
-
/* @__PURE__ */
|
|
398
|
-
/* @__PURE__ */
|
|
397
|
+
/* @__PURE__ */ l("span", { className: "min-w-0 truncate", children: t }),
|
|
398
|
+
/* @__PURE__ */ l(
|
|
399
399
|
x,
|
|
400
400
|
{
|
|
401
401
|
size: 20,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TagProps } from './types';
|
|
2
2
|
export declare const Tag: {
|
|
3
|
-
({ ref, className, appearance, size, icon, label, disabled, ...props }: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
({ ref, className, appearance, size, icon, label, disabled: disabledProp, ...props }: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=Tag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tag/Tag.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AA+BnC,eAAO,MAAM,GAAG;
|
|
1
|
+
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tag/Tag.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AA+BnC,eAAO,MAAM,GAAG;0FASb,QAAQ;;CAyBV,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { cva as
|
|
4
|
-
const
|
|
1
|
+
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useDisabledContext as b, cn as g } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as x } from "class-variance-authority";
|
|
4
|
+
const u = x(
|
|
5
5
|
"inline-flex items-center justify-center gap-4 rounded-xs",
|
|
6
6
|
{
|
|
7
7
|
variants: {
|
|
@@ -28,34 +28,37 @@ const g = b(
|
|
|
28
28
|
disabled: !1
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
),
|
|
31
|
+
), f = ({
|
|
32
32
|
ref: s,
|
|
33
33
|
className: n,
|
|
34
34
|
appearance: r,
|
|
35
35
|
size: e,
|
|
36
36
|
icon: c,
|
|
37
37
|
label: i,
|
|
38
|
-
disabled:
|
|
39
|
-
...
|
|
38
|
+
disabled: d,
|
|
39
|
+
...o
|
|
40
40
|
}) => {
|
|
41
|
-
const
|
|
41
|
+
const m = b({
|
|
42
|
+
consumerName: "Tag",
|
|
43
|
+
mergeWith: { disabled: d }
|
|
44
|
+
}), l = e ? {
|
|
42
45
|
md: 16,
|
|
43
46
|
sm: 12
|
|
44
47
|
}[e] : 16, a = c;
|
|
45
|
-
return /* @__PURE__ */
|
|
48
|
+
return /* @__PURE__ */ p(
|
|
46
49
|
"div",
|
|
47
50
|
{
|
|
48
|
-
className:
|
|
51
|
+
className: g(n, u({ appearance: r, size: e, disabled: m })),
|
|
49
52
|
ref: s,
|
|
50
|
-
...
|
|
53
|
+
...o,
|
|
51
54
|
children: [
|
|
52
|
-
a && /* @__PURE__ */ t(a, { size:
|
|
55
|
+
a && /* @__PURE__ */ t(a, { size: l, className: "shrink-0" }),
|
|
53
56
|
/* @__PURE__ */ t("span", { children: i })
|
|
54
57
|
]
|
|
55
58
|
}
|
|
56
59
|
);
|
|
57
60
|
};
|
|
58
|
-
|
|
61
|
+
f.displayName = "Tag";
|
|
59
62
|
export {
|
|
60
|
-
|
|
63
|
+
f as Tag
|
|
61
64
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TileContentProps, TileDescriptionProps, TileProps, TileSecondaryActionProps,
|
|
1
|
+
import { TileContentProps, TileDescriptionProps, TileProps, TileSecondaryActionProps, TileTitleProps, TileTrailingContentProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* A flexible tile component that uses a composite pattern for maximum customization.
|
|
4
4
|
* Displays content in a vertical layout with support for spots, text, and custom content.
|
|
@@ -9,17 +9,17 @@ import { TileContentProps, TileDescriptionProps, TileProps, TileSecondaryActionP
|
|
|
9
9
|
* @example
|
|
10
10
|
* import {
|
|
11
11
|
* Tile,
|
|
12
|
-
* TileSpot,
|
|
13
12
|
* TileContent,
|
|
14
13
|
* TileTitle,
|
|
15
14
|
* TileSecondaryAction,
|
|
16
15
|
* Tag
|
|
17
16
|
* } from '@ledgerhq/lumen-ui-react';
|
|
17
|
+
* import { Spot } from '@ledgerhq/lumen-ui-react';
|
|
18
18
|
* import { Bitcoin, MoreVertical } from '@ledgerhq/lumen-ui-react/symbols';
|
|
19
19
|
*
|
|
20
20
|
* <Tile appearance="card">
|
|
21
21
|
* <TileSecondaryAction icon={MoreVertical} onClick={() => console.log('More')} />
|
|
22
|
-
* <
|
|
22
|
+
* <Spot appearance="icon" icon={Bitcoin} />
|
|
23
23
|
* <TileContent>
|
|
24
24
|
* <TileTitle>Bitcoin</TileTitle>
|
|
25
25
|
* </TileContent>
|
|
@@ -27,14 +27,7 @@ import { TileContentProps, TileDescriptionProps, TileProps, TileSecondaryActionP
|
|
|
27
27
|
* </Tile>
|
|
28
28
|
*/
|
|
29
29
|
export declare const Tile: {
|
|
30
|
-
({ ref, className, onClick, secondaryAction, appearance, disabled, centered, children, style, ...props }: TileProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
displayName: string;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* A spot adapter for use within Tile. Automatically inherits the disabled state from the parent Tile.
|
|
35
|
-
*/
|
|
36
|
-
export declare const TileSpot: {
|
|
37
|
-
({ size, ...props }: TileSpotProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
({ ref, className, onClick, secondaryAction, appearance, disabled: disabledProp, centered, children, style, ...props }: TileProps): import("react/jsx-runtime").JSX.Element;
|
|
38
31
|
displayName: string;
|
|
39
32
|
};
|
|
40
33
|
/**
|
|
@@ -68,7 +61,7 @@ export declare const TileDescription: {
|
|
|
68
61
|
*
|
|
69
62
|
* @example
|
|
70
63
|
* <Tile>
|
|
71
|
-
* <
|
|
64
|
+
* <Spot appearance="icon" icon={Settings} />
|
|
72
65
|
* <TileContent>
|
|
73
66
|
* <TileTitle>My Title</TileTitle>
|
|
74
67
|
* <TileDescription>Description</TileDescription>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tile/Tile.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tile/Tile.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,SAAS,EACT,wBAAwB,EACxB,cAAc,EACd,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAoCjB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,IAAI;4HAWd,SAAS;;CA+BX,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,WAAW;wCAIrB,gBAAgB;;CASlB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,SAAS;wCAInB,cAAc;;CAiBhB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,eAAe;wCAIzB,oBAAoB;;CAiBtB,CAAC;AAGF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB;wCAI7B,wBAAwB;;CAS1B,CAAC;AAGF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB;2EAO7B,wBAAwB;;CAqC1B,CAAC"}
|