@ledgerhq/lumen-ui-react 0.1.41 → 0.1.42
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaButton/MediaButton.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"MediaButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaButton/MediaButton.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAiFhD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,WAAW,GAAI,6IAYzB,gBAAgB,4CA6ClB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useDisabledContext as
|
|
3
|
-
import { Slot as
|
|
4
|
-
import { cva as
|
|
5
|
-
import { baseButtonVariants as
|
|
6
|
-
import { ChevronDown as
|
|
7
|
-
const y =
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useDisabledContext as C, cn as u } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { Slot as g, Slottable as v } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva as S } from "class-variance-authority";
|
|
5
|
+
import { baseButtonVariants as z } from "../Button/BaseButton.js";
|
|
6
|
+
import { ChevronDown as x } from "../../Symbols/Icons/ChevronDown.js";
|
|
7
|
+
const y = S("gap-8 body-2-semi-bold", {
|
|
8
8
|
variants: {
|
|
9
9
|
size: {
|
|
10
10
|
sm: "",
|
|
@@ -14,60 +14,114 @@ const y = C("gap-8 body-2-semi-bold", {
|
|
|
14
14
|
flat: "",
|
|
15
15
|
rounded: "",
|
|
16
16
|
none: ""
|
|
17
|
+
},
|
|
18
|
+
hasChevron: {
|
|
19
|
+
true: "",
|
|
20
|
+
false: ""
|
|
17
21
|
}
|
|
18
22
|
},
|
|
19
23
|
compoundVariants: [
|
|
20
|
-
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
{
|
|
25
|
+
size: "md",
|
|
26
|
+
leadingContentShape: ["flat", "none"],
|
|
27
|
+
hasChevron: !0,
|
|
28
|
+
class: "py-14 pr-12 pl-16"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
size: "sm",
|
|
32
|
+
leadingContentShape: ["flat", "none"],
|
|
33
|
+
hasChevron: !0,
|
|
34
|
+
class: "py-10 pr-8 pl-12"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
size: "md",
|
|
38
|
+
leadingContentShape: "rounded",
|
|
39
|
+
hasChevron: !0,
|
|
40
|
+
class: "py-8 pr-12 pl-8"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
size: "sm",
|
|
44
|
+
leadingContentShape: "rounded",
|
|
45
|
+
hasChevron: !0,
|
|
46
|
+
class: "p-8"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
size: "md",
|
|
50
|
+
leadingContentShape: "flat",
|
|
51
|
+
hasChevron: !1,
|
|
52
|
+
class: "px-16 py-12"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
size: "md",
|
|
56
|
+
leadingContentShape: "none",
|
|
57
|
+
hasChevron: !1,
|
|
58
|
+
class: "px-16 py-14"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
size: "sm",
|
|
62
|
+
leadingContentShape: ["flat", "none"],
|
|
63
|
+
hasChevron: !1,
|
|
64
|
+
class: "px-12 py-10"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
size: "md",
|
|
68
|
+
leadingContentShape: "rounded",
|
|
69
|
+
hasChevron: !1,
|
|
70
|
+
class: "py-8 pr-16 pl-8"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
size: "sm",
|
|
74
|
+
leadingContentShape: "rounded",
|
|
75
|
+
hasChevron: !1,
|
|
76
|
+
class: "py-8 pr-10 pl-8"
|
|
77
|
+
}
|
|
26
78
|
],
|
|
27
79
|
defaultVariants: {
|
|
28
80
|
size: "md",
|
|
29
|
-
leadingContentShape: "none"
|
|
81
|
+
leadingContentShape: "none",
|
|
82
|
+
hasChevron: !0
|
|
30
83
|
}
|
|
31
84
|
}), k = ({
|
|
32
|
-
ref:
|
|
33
|
-
className:
|
|
85
|
+
ref: r,
|
|
86
|
+
className: i,
|
|
34
87
|
appearance: p = "gray",
|
|
35
|
-
size:
|
|
36
|
-
disabled:
|
|
88
|
+
size: d = "md",
|
|
89
|
+
disabled: h = !1,
|
|
37
90
|
asChild: n = !1,
|
|
38
91
|
leadingContent: a,
|
|
39
|
-
leadingContentShape:
|
|
40
|
-
hideChevron:
|
|
41
|
-
children:
|
|
42
|
-
...
|
|
92
|
+
leadingContentShape: m = "flat",
|
|
93
|
+
hideChevron: s = !1,
|
|
94
|
+
children: t,
|
|
95
|
+
...c
|
|
43
96
|
}) => {
|
|
44
|
-
const
|
|
97
|
+
const o = C({
|
|
45
98
|
consumerName: "MediaButton",
|
|
46
|
-
mergeWith: { disabled:
|
|
47
|
-
}),
|
|
48
|
-
return /* @__PURE__ */
|
|
49
|
-
n ?
|
|
99
|
+
mergeWith: { disabled: h }
|
|
100
|
+
}), f = a ? m : "none";
|
|
101
|
+
return /* @__PURE__ */ l(
|
|
102
|
+
n ? g : "button",
|
|
50
103
|
{
|
|
51
|
-
ref:
|
|
104
|
+
ref: r,
|
|
52
105
|
className: u(
|
|
53
|
-
|
|
106
|
+
z({
|
|
54
107
|
appearance: p,
|
|
55
|
-
disabled:
|
|
108
|
+
disabled: o,
|
|
56
109
|
loading: !1
|
|
57
110
|
}),
|
|
58
111
|
y({
|
|
59
|
-
size:
|
|
60
|
-
leadingContentShape:
|
|
112
|
+
size: d,
|
|
113
|
+
leadingContentShape: f,
|
|
114
|
+
hasChevron: !s
|
|
61
115
|
}),
|
|
62
|
-
|
|
116
|
+
i
|
|
63
117
|
),
|
|
64
|
-
disabled:
|
|
65
|
-
...
|
|
118
|
+
disabled: o,
|
|
119
|
+
...c,
|
|
66
120
|
children: [
|
|
67
121
|
a && /* @__PURE__ */ e("span", { className: "inline-flex shrink-0 items-center", children: a }),
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
n ? /* @__PURE__ */ e(
|
|
70
|
-
!
|
|
122
|
+
/* @__PURE__ */ l("span", { className: "flex items-center gap-2", children: [
|
|
123
|
+
n ? /* @__PURE__ */ e(v, { children: t }) : /* @__PURE__ */ e("span", { className: "line-clamp-1 text-left", children: t }),
|
|
124
|
+
!s && /* @__PURE__ */ e(x, { size: 20 })
|
|
71
125
|
] })
|
|
72
126
|
]
|
|
73
127
|
}
|
package/dist/package.json
CHANGED