@ledgerhq/lumen-ui-react 0.1.11 → 0.1.12
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/index.js +53 -55
- package/dist/lib/Components/AmountDisplay/AmountDisplay.js +10 -10
- 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/ButtonTrigger/ButtonTrigger.d.ts +1 -1
- package/dist/lib/Components/ButtonTrigger/ButtonTrigger.d.ts.map +1 -1
- package/dist/lib/Components/ButtonTrigger/ButtonTrigger.js +37 -34
- package/dist/lib/Components/Card/Card.d.ts.map +1 -1
- package/dist/lib/Components/Card/Card.js +132 -129
- 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 +24 -18
- package/dist/lib/Components/InteractiveIcon/types.d.ts +6 -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/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 +2 -2
- package/dist/lib/Components/Select/Select.d.ts.map +1 -1
- package/dist/lib/Components/Select/Select.js +94 -76
- 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/libs/utils-shared/dist/index.js +95 -90
- package/dist/package.json +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { Slot as
|
|
1
|
+
import { jsxs as x, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useDisabledContext as f, cn as h } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { Slot as B, Slottable as z } from "@radix-ui/react-slot";
|
|
4
4
|
import { cva as l } from "class-variance-authority";
|
|
5
|
-
import { Spinner as
|
|
5
|
+
import { Spinner as N } from "../Spinner/Spinner.js";
|
|
6
6
|
const S = l(
|
|
7
7
|
"inline-flex size-fit cursor-pointer items-center justify-center rounded-full transition-colors duration-200 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
|
|
8
8
|
{
|
|
@@ -65,60 +65,63 @@ const S = l(
|
|
|
65
65
|
true: "text-disabled"
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
}),
|
|
69
|
-
ref:
|
|
68
|
+
}), y = ({
|
|
69
|
+
ref: c,
|
|
70
70
|
className: u,
|
|
71
71
|
appearance: a = "base",
|
|
72
72
|
size: s,
|
|
73
73
|
isFull: v,
|
|
74
|
-
disabled:
|
|
75
|
-
asChild:
|
|
76
|
-
icon:
|
|
74
|
+
disabled: p = !1,
|
|
75
|
+
asChild: o = !1,
|
|
76
|
+
icon: n,
|
|
77
77
|
loading: r = !1,
|
|
78
|
-
children:
|
|
79
|
-
onClick:
|
|
78
|
+
children: i,
|
|
79
|
+
onClick: m,
|
|
80
80
|
...g
|
|
81
81
|
}) => {
|
|
82
|
-
const
|
|
82
|
+
const e = f({
|
|
83
|
+
consumerName: "BaseButton",
|
|
84
|
+
mergeWith: { disabled: p }
|
|
85
|
+
}), d = s ? {
|
|
83
86
|
xs: 16,
|
|
84
87
|
sm: 20,
|
|
85
88
|
md: 24,
|
|
86
89
|
lg: 24
|
|
87
90
|
}[s] : 24;
|
|
88
|
-
return /* @__PURE__ */
|
|
89
|
-
|
|
91
|
+
return /* @__PURE__ */ x(
|
|
92
|
+
o ? B : "button",
|
|
90
93
|
{
|
|
91
|
-
className:
|
|
94
|
+
className: h(
|
|
92
95
|
S({ disabled: e, loading: r, appearance: a, size: s, isFull: v }),
|
|
93
96
|
u
|
|
94
97
|
),
|
|
95
|
-
ref:
|
|
98
|
+
ref: c,
|
|
96
99
|
"data-disabled": e || void 0,
|
|
97
100
|
disabled: e,
|
|
98
|
-
onClick:
|
|
101
|
+
onClick: m,
|
|
99
102
|
...g,
|
|
100
103
|
children: [
|
|
101
104
|
r && /* @__PURE__ */ t(
|
|
102
|
-
|
|
105
|
+
N,
|
|
103
106
|
{
|
|
104
|
-
size:
|
|
107
|
+
size: d,
|
|
105
108
|
className: b({ appearance: a, disabled: e })
|
|
106
109
|
}
|
|
107
110
|
),
|
|
108
|
-
!r &&
|
|
109
|
-
|
|
111
|
+
!r && n && /* @__PURE__ */ t(
|
|
112
|
+
n,
|
|
110
113
|
{
|
|
111
|
-
size:
|
|
114
|
+
size: d,
|
|
112
115
|
className: b({ appearance: a, disabled: e })
|
|
113
116
|
}
|
|
114
117
|
),
|
|
115
|
-
|
|
118
|
+
i && (o ? /* @__PURE__ */ t(z, { children: i }) : /* @__PURE__ */ t("span", { className: "line-clamp-2 text-left", children: i }))
|
|
116
119
|
]
|
|
117
120
|
}
|
|
118
121
|
);
|
|
119
122
|
};
|
|
120
|
-
|
|
123
|
+
y.displayName = "BaseButton";
|
|
121
124
|
export {
|
|
122
|
-
|
|
125
|
+
y as BaseButton,
|
|
123
126
|
S as baseButtonVariants
|
|
124
127
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { cn as d } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as e } from "class-variance-authority";
|
|
4
4
|
import { BaseButton as b } from "./BaseButton.js";
|
|
@@ -14,24 +14,24 @@ const l = e("", {
|
|
|
14
14
|
size: "md"
|
|
15
15
|
}
|
|
16
16
|
}), u = ({
|
|
17
|
-
ref:
|
|
17
|
+
ref: t,
|
|
18
18
|
className: m,
|
|
19
19
|
loading: s,
|
|
20
20
|
disabled: a,
|
|
21
21
|
children: r,
|
|
22
|
-
size:
|
|
22
|
+
size: o,
|
|
23
23
|
icon: i,
|
|
24
|
-
...
|
|
25
|
-
}) => /* @__PURE__ */
|
|
24
|
+
...n
|
|
25
|
+
}) => /* @__PURE__ */ p(
|
|
26
26
|
b,
|
|
27
27
|
{
|
|
28
|
-
ref:
|
|
29
|
-
size:
|
|
28
|
+
ref: t,
|
|
29
|
+
size: o,
|
|
30
30
|
disabled: a,
|
|
31
31
|
icon: i,
|
|
32
32
|
loading: s,
|
|
33
|
-
className: d(l({ size:
|
|
34
|
-
...
|
|
33
|
+
className: d(l({ size: o }), "gap-8", m),
|
|
34
|
+
...n,
|
|
35
35
|
children: r
|
|
36
36
|
}
|
|
37
37
|
);
|
|
@@ -27,7 +27,7 @@ import { ButtonTriggerProps } from './types';
|
|
|
27
27
|
* <ButtonTrigger>All accounts</ButtonTrigger>
|
|
28
28
|
*/
|
|
29
29
|
export declare const ButtonTrigger: {
|
|
30
|
-
({ ref, className, appearance, size, disabled, asChild, icon, iconType, children, ...props }: ButtonTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
({ ref, className, appearance, size, disabled: disabledProp, asChild, icon, iconType, children, ...props }: ButtonTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
31
31
|
displayName: string;
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=ButtonTrigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonTrigger.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ButtonTrigger/ButtonTrigger.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AA4BlD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,aAAa;
|
|
1
|
+
{"version":3,"file":"ButtonTrigger.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ButtonTrigger/ButtonTrigger.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AA4BlD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,aAAa;gHAWvB,kBAAkB;;CAmCpB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as t, jsx as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { Slot as
|
|
4
|
-
import { cva as
|
|
5
|
-
import { baseButtonVariants as
|
|
6
|
-
import { ChevronDown as
|
|
7
|
-
const
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useDisabledContext as f, cn as g } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { Slot as u, Slottable as T } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva as b } from "class-variance-authority";
|
|
5
|
+
import { baseButtonVariants as x } from "../Button/BaseButton.js";
|
|
6
|
+
import { ChevronDown as z } from "../../Symbols/Icons/ChevronDown.js";
|
|
7
|
+
const N = b("gap-8 body-2-semi-bold", {
|
|
8
8
|
variants: {
|
|
9
9
|
size: {
|
|
10
10
|
sm: "",
|
|
@@ -28,46 +28,49 @@ const z = g("gap-8 body-2-semi-bold", {
|
|
|
28
28
|
size: "md",
|
|
29
29
|
iconType: "none"
|
|
30
30
|
}
|
|
31
|
-
}),
|
|
32
|
-
ref:
|
|
33
|
-
className:
|
|
34
|
-
appearance:
|
|
35
|
-
size:
|
|
36
|
-
disabled:
|
|
37
|
-
asChild:
|
|
38
|
-
icon:
|
|
31
|
+
}), h = ({
|
|
32
|
+
ref: i,
|
|
33
|
+
className: r,
|
|
34
|
+
appearance: p = "gray",
|
|
35
|
+
size: l = "md",
|
|
36
|
+
disabled: m = !1,
|
|
37
|
+
asChild: n = !1,
|
|
38
|
+
icon: s,
|
|
39
39
|
iconType: c = "flat",
|
|
40
|
-
children:
|
|
41
|
-
...
|
|
40
|
+
children: o,
|
|
41
|
+
...d
|
|
42
42
|
}) => {
|
|
43
|
-
const
|
|
43
|
+
const a = f({
|
|
44
|
+
consumerName: "ButtonTrigger",
|
|
45
|
+
mergeWith: { disabled: m }
|
|
46
|
+
}), y = s ? c : "none";
|
|
44
47
|
return /* @__PURE__ */ t(
|
|
45
|
-
|
|
48
|
+
n ? u : "button",
|
|
46
49
|
{
|
|
47
|
-
ref:
|
|
48
|
-
className:
|
|
49
|
-
|
|
50
|
-
appearance:
|
|
51
|
-
disabled:
|
|
50
|
+
ref: i,
|
|
51
|
+
className: g(
|
|
52
|
+
x({
|
|
53
|
+
appearance: p,
|
|
54
|
+
disabled: a,
|
|
52
55
|
loading: !1
|
|
53
56
|
}),
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
N({ size: l, iconType: y }),
|
|
58
|
+
r
|
|
56
59
|
),
|
|
57
|
-
"data-disabled":
|
|
58
|
-
disabled:
|
|
59
|
-
...
|
|
60
|
+
"data-disabled": a || void 0,
|
|
61
|
+
disabled: a,
|
|
62
|
+
...d,
|
|
60
63
|
children: [
|
|
61
|
-
|
|
64
|
+
s && /* @__PURE__ */ e("span", { className: "shrink-0", children: s }),
|
|
62
65
|
/* @__PURE__ */ t("span", { className: "flex items-center gap-2", children: [
|
|
63
|
-
|
|
64
|
-
/* @__PURE__ */
|
|
66
|
+
n ? /* @__PURE__ */ e(T, { children: o }) : /* @__PURE__ */ e("span", { className: "line-clamp-1 text-left", children: o }),
|
|
67
|
+
/* @__PURE__ */ e(z, { size: 20, className: "shrink-0" })
|
|
65
68
|
] })
|
|
66
69
|
]
|
|
67
70
|
}
|
|
68
71
|
);
|
|
69
72
|
};
|
|
70
|
-
|
|
73
|
+
h.displayName = "ButtonTrigger";
|
|
71
74
|
export {
|
|
72
|
-
|
|
75
|
+
h as ButtonTrigger
|
|
73
76
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Card/Card.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Card/Card.tsx"],"names":[],"mappings":"AAQA,OAAO,EAEL,2BAA2B,EAC3B,gBAAgB,EAChB,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