@ledgerhq/lumen-ui-react 0.0.66 → 0.0.68
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 +10 -8
- package/dist/lib/Components/AmountInput/AmountInput.js +10 -10
- package/dist/lib/Components/BaseInput/BaseInput.js +4 -4
- package/dist/lib/Components/Button/BaseButton.d.ts.map +1 -1
- package/dist/lib/Components/Button/BaseButton.js +37 -42
- package/dist/lib/Components/Dialog/Dialog.js +2 -2
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts.map +1 -1
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +15 -10
- package/dist/lib/Components/Link/Link.js +5 -5
- package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
- package/dist/lib/Components/Menu/Menu.js +81 -77
- package/dist/lib/Components/Select/Select.js +7 -7
- package/dist/lib/Components/Spot/Spot.js +4 -4
- package/dist/lib/Components/ThemeProvider/ThemeProvider.js +2 -2
- package/dist/lib/Components/Tile/Tile.d.ts +5 -4
- package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
- package/dist/lib/Components/Tile/Tile.js +105 -165
- package/dist/lib/Components/Tile/types.d.ts +12 -1
- package/dist/lib/Components/Tile/types.d.ts.map +1 -1
- package/dist/lib/Components/TileButton/TileButton.d.ts +37 -0
- package/dist/lib/Components/TileButton/TileButton.d.ts.map +1 -0
- package/dist/lib/Components/TileButton/TileButton.js +81 -0
- package/dist/lib/Components/TileButton/index.d.ts +3 -0
- package/dist/lib/Components/TileButton/index.d.ts.map +1 -0
- package/dist/lib/Components/TileButton/types.d.ts +45 -0
- package/dist/lib/Components/TileButton/types.d.ts.map +1 -0
- package/dist/lib/Components/index.d.ts +1 -0
- package/dist/lib/Components/index.d.ts.map +1 -1
- package/dist/libs/utils-shared/dist/index.js +44 -52
- package/dist/package.json +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -24,8 +24,9 @@ import { Switch as Ge } from "./lib/Components/Switch/Switch.js";
|
|
|
24
24
|
import { Tag as Re } from "./lib/Components/Tag/Tag.js";
|
|
25
25
|
import { TextInput as Fe } from "./lib/Components/TextInput/TextInput.js";
|
|
26
26
|
import { Tile as je, TileContent as qe, TileDescription as ze, TileSecondaryAction as Ee, TileSpot as Je, TileTitle as Ke } from "./lib/Components/Tile/Tile.js";
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
27
|
+
import { TileButton as Oe } from "./lib/Components/TileButton/TileButton.js";
|
|
28
|
+
import { Tooltip as Ue, TooltipContent as Ve, TooltipProvider as We, TooltipTrigger as Xe } from "./lib/Components/Tooltip/Tooltip.js";
|
|
29
|
+
import { ThemeProvider as Ze, useTheme as _e } from "./lib/Components/ThemeProvider/ThemeProvider.js";
|
|
29
30
|
export {
|
|
30
31
|
n as AddressInput,
|
|
31
32
|
p as AmountInput,
|
|
@@ -91,16 +92,17 @@ export {
|
|
|
91
92
|
Ge as Switch,
|
|
92
93
|
Re as Tag,
|
|
93
94
|
Fe as TextInput,
|
|
94
|
-
|
|
95
|
+
Ze as ThemeProvider,
|
|
95
96
|
je as Tile,
|
|
97
|
+
Oe as TileButton,
|
|
96
98
|
qe as TileContent,
|
|
97
99
|
ze as TileDescription,
|
|
98
100
|
Ee as TileSecondaryAction,
|
|
99
101
|
Je as TileSpot,
|
|
100
102
|
Ke as TileTitle,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
Ue as Tooltip,
|
|
104
|
+
Ve as TooltipContent,
|
|
105
|
+
We as TooltipProvider,
|
|
106
|
+
Xe as TooltipTrigger,
|
|
107
|
+
_e as useTheme
|
|
106
108
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { getFontSize as V, cn as a, textFormatter as
|
|
1
|
+
import { jsxs as I, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { getFontSize as V, cn as a, textFormatter as F } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as z } from "class-variance-authority";
|
|
4
4
|
import M, { useRef as p, useState as h, useMemo as _, useLayoutEffect as q, useEffect as D } from "react";
|
|
5
5
|
const L = z(
|
|
@@ -42,8 +42,8 @@ const L = z(
|
|
|
42
42
|
onChange: C,
|
|
43
43
|
...N
|
|
44
44
|
}, A) => {
|
|
45
|
-
const c = p(null), s = p(null), [n, f] = h(u.toString()), [
|
|
46
|
-
function
|
|
45
|
+
const c = p(null), s = p(null), [n, f] = h(u.toString()), [E, m] = h(!1), g = p(n);
|
|
46
|
+
function j(...t) {
|
|
47
47
|
return (e) => {
|
|
48
48
|
t.forEach((o) => {
|
|
49
49
|
o && (typeof o == "function" ? o(e) : o.current = e);
|
|
@@ -62,8 +62,8 @@ const L = z(
|
|
|
62
62
|
}, [n]), D(() => {
|
|
63
63
|
f(u.toString());
|
|
64
64
|
}, [u]);
|
|
65
|
-
const
|
|
66
|
-
const e =
|
|
65
|
+
const k = (t) => {
|
|
66
|
+
const e = F(t.target.value, {
|
|
67
67
|
allowDecimals: y,
|
|
68
68
|
thousandsSeparator: R,
|
|
69
69
|
maxIntegerLength: S,
|
|
@@ -71,7 +71,7 @@ const L = z(
|
|
|
71
71
|
});
|
|
72
72
|
f(e), C({ ...t, target: { ...t.target, value: e } }), e !== g.current && m(!0), g.current = e;
|
|
73
73
|
};
|
|
74
|
-
return /* @__PURE__ */
|
|
74
|
+
return /* @__PURE__ */ I(
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
77
77
|
className: "group relative flex items-center justify-center transition-transform",
|
|
@@ -103,14 +103,14 @@ const L = z(
|
|
|
103
103
|
/* @__PURE__ */ l(
|
|
104
104
|
"input",
|
|
105
105
|
{
|
|
106
|
-
ref:
|
|
106
|
+
ref: j(A, s),
|
|
107
107
|
type: "text",
|
|
108
108
|
inputMode: "decimal",
|
|
109
109
|
disabled: w,
|
|
110
110
|
value: n,
|
|
111
|
-
onChange:
|
|
111
|
+
onChange: k,
|
|
112
112
|
onAnimationEnd: () => m(!1),
|
|
113
|
-
className: a(L({ isChanging:
|
|
113
|
+
className: a(L({ isChanging: E }), x),
|
|
114
114
|
...N,
|
|
115
115
|
style: { fontSize: i, letterSpacing: "normal" }
|
|
116
116
|
}
|
|
@@ -30,11 +30,11 @@ const q = a(
|
|
|
30
30
|
inputClassName: S,
|
|
31
31
|
labelClassName: k,
|
|
32
32
|
label: u,
|
|
33
|
-
id:
|
|
33
|
+
id: j,
|
|
34
34
|
disabled: f,
|
|
35
35
|
errorMessage: i,
|
|
36
36
|
suffix: E,
|
|
37
|
-
prefix:
|
|
37
|
+
prefix: z,
|
|
38
38
|
onClear: p,
|
|
39
39
|
hideClearButton: B = !1,
|
|
40
40
|
"aria-invalid": m,
|
|
@@ -42,7 +42,7 @@ const q = a(
|
|
|
42
42
|
...o
|
|
43
43
|
}, C) => {
|
|
44
44
|
var x;
|
|
45
|
-
const { t: D } = _(), r = l.useRef(null), F = l.useId(), b =
|
|
45
|
+
const { t: D } = _(), r = l.useRef(null), F = l.useId(), b = j || `input-${F}`, L = m || (i ? !0 : void 0), c = o.value !== void 0, [T, v] = l.useState(
|
|
46
46
|
((x = o.defaultValue) == null ? void 0 : x.toString()) || ""
|
|
47
47
|
), V = l.useCallback(
|
|
48
48
|
(t) => {
|
|
@@ -86,7 +86,7 @@ const q = a(
|
|
|
86
86
|
});
|
|
87
87
|
},
|
|
88
88
|
children: [
|
|
89
|
-
|
|
89
|
+
z,
|
|
90
90
|
/* @__PURE__ */ n(
|
|
91
91
|
"input",
|
|
92
92
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Button/BaseButton.tsx"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Button/BaseButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAyDzC,eAAO,MAAM,UAAU;;;;;;;;;YA3CP,CAAC;iBAAqB,CAAC;;;2FAyGtC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as x, jsx as
|
|
1
|
+
import { jsxs as x, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { cn as h } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
-
import { Slot as
|
|
3
|
+
import { Slot as y, Slottable as z } from "@radix-ui/react-slot";
|
|
4
4
|
import { cva as l } from "class-variance-authority";
|
|
5
|
-
import
|
|
5
|
+
import B from "react";
|
|
6
6
|
import { Spinner as N } from "../Spinner/Spinner.js";
|
|
7
|
-
const
|
|
8
|
-
'inline-flex size-fit
|
|
7
|
+
const S = l(
|
|
8
|
+
'inline-flex size-fit items-center justify-center rounded-full body-1-semi-bold transition-colors duration-200 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus data-[disabled="true"]:bg-disabled data-[disabled="true"]:text-disabled',
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
appearance: {
|
|
@@ -16,6 +16,10 @@ const j = l(
|
|
|
16
16
|
"no-background": "bg-transparent text-base hover:bg-base-transparent-hover active:bg-base-transparent-pressed disabled:bg-base-transparent",
|
|
17
17
|
red: "bg-error text-error hover:bg-error-hover active:bg-error-pressed"
|
|
18
18
|
},
|
|
19
|
+
disabled: {
|
|
20
|
+
true: "cursor-default",
|
|
21
|
+
false: "cursor-pointer"
|
|
22
|
+
},
|
|
19
23
|
size: {
|
|
20
24
|
xs: "p-8",
|
|
21
25
|
sm: "p-10",
|
|
@@ -32,7 +36,7 @@ const j = l(
|
|
|
32
36
|
isFull: !1
|
|
33
37
|
}
|
|
34
38
|
}
|
|
35
|
-
),
|
|
39
|
+
), d = l("shrink-0", {
|
|
36
40
|
variants: {
|
|
37
41
|
appearance: {
|
|
38
42
|
base: "text-on-interactive",
|
|
@@ -46,69 +50,60 @@ const j = l(
|
|
|
46
50
|
true: "text-disabled"
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
|
-
}),
|
|
53
|
+
}), j = B.forwardRef(
|
|
50
54
|
({
|
|
51
|
-
className:
|
|
52
|
-
appearance:
|
|
53
|
-
size:
|
|
54
|
-
isFull:
|
|
55
|
-
disabled: e,
|
|
56
|
-
asChild:
|
|
57
|
-
icon:
|
|
58
|
-
loading:
|
|
59
|
-
children:
|
|
60
|
-
onClick:
|
|
55
|
+
className: u,
|
|
56
|
+
appearance: a = "base",
|
|
57
|
+
size: r,
|
|
58
|
+
isFull: p,
|
|
59
|
+
disabled: e = !1,
|
|
60
|
+
asChild: o = !1,
|
|
61
|
+
icon: i,
|
|
62
|
+
loading: s,
|
|
63
|
+
children: n,
|
|
64
|
+
onClick: m,
|
|
61
65
|
...v
|
|
62
66
|
}, f) => {
|
|
63
|
-
const g =
|
|
64
|
-
(p) => {
|
|
65
|
-
if (e || t) {
|
|
66
|
-
p.preventDefault();
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
a == null || a(p);
|
|
70
|
-
},
|
|
71
|
-
[e, t, a]
|
|
72
|
-
), b = n ? {
|
|
67
|
+
const g = {
|
|
73
68
|
xs: 16,
|
|
74
69
|
sm: 20,
|
|
75
70
|
md: 24,
|
|
76
71
|
lg: 24
|
|
77
|
-
}[
|
|
72
|
+
}, c = s || e, b = r ? g[r] : 24;
|
|
78
73
|
return /* @__PURE__ */ x(
|
|
79
|
-
|
|
74
|
+
o ? y : "button",
|
|
80
75
|
{
|
|
81
76
|
className: h(
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
S({ disabled: e, appearance: a, size: r, isFull: p }),
|
|
78
|
+
u
|
|
84
79
|
),
|
|
85
80
|
ref: f,
|
|
86
|
-
"data-disabled":
|
|
87
|
-
disabled:
|
|
88
|
-
onClick:
|
|
81
|
+
"data-disabled": c || void 0,
|
|
82
|
+
disabled: c,
|
|
83
|
+
onClick: m,
|
|
89
84
|
...v,
|
|
90
85
|
children: [
|
|
91
|
-
|
|
86
|
+
s && /* @__PURE__ */ t(
|
|
92
87
|
N,
|
|
93
88
|
{
|
|
94
89
|
size: b,
|
|
95
|
-
className:
|
|
90
|
+
className: d({ appearance: a, disabled: e })
|
|
96
91
|
}
|
|
97
92
|
),
|
|
98
|
-
!
|
|
99
|
-
|
|
93
|
+
!s && i && /* @__PURE__ */ t(
|
|
94
|
+
i,
|
|
100
95
|
{
|
|
101
96
|
size: b,
|
|
102
|
-
className:
|
|
97
|
+
className: d({ appearance: a, disabled: e })
|
|
103
98
|
}
|
|
104
99
|
),
|
|
105
|
-
|
|
100
|
+
n && (o ? /* @__PURE__ */ t(z, { children: n }) : /* @__PURE__ */ t("span", { className: "line-clamp-2 text-left", children: n }))
|
|
106
101
|
]
|
|
107
102
|
}
|
|
108
103
|
);
|
|
109
104
|
}
|
|
110
105
|
);
|
|
111
|
-
|
|
106
|
+
j.displayName = "BaseButton";
|
|
112
107
|
export {
|
|
113
|
-
|
|
108
|
+
j as BaseButton
|
|
114
109
|
};
|
|
@@ -47,7 +47,7 @@ const d = n.forwardRef(
|
|
|
47
47
|
)
|
|
48
48
|
);
|
|
49
49
|
d.displayName = "DialogOverlay";
|
|
50
|
-
function
|
|
50
|
+
function j({
|
|
51
51
|
className: a,
|
|
52
52
|
children: t,
|
|
53
53
|
...e
|
|
@@ -109,7 +109,7 @@ D.displayName = "DialogFooter";
|
|
|
109
109
|
export {
|
|
110
110
|
C as Dialog,
|
|
111
111
|
y as DialogBody,
|
|
112
|
-
|
|
112
|
+
j as DialogContent,
|
|
113
113
|
D as DialogFooter,
|
|
114
114
|
R as DialogTrigger
|
|
115
115
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InteractiveIcon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/InteractiveIcon/InteractiveIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"InteractiveIcon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/InteractiveIcon/InteractiveIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAoB1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,eAAe;;;2FAY1B,CAAC"}
|
|
@@ -1,23 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { cva as
|
|
4
|
-
import
|
|
5
|
-
const c =
|
|
6
|
-
"inline-flex size-fit
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { cn as a } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as n } from "class-variance-authority";
|
|
4
|
+
import l from "react";
|
|
5
|
+
const c = n(
|
|
6
|
+
"inline-flex size-fit items-center justify-center rounded-full text-muted transition-colors hover:text-muted-hover focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus active:text-muted-pressed disabled:text-disabled",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
iconType: {
|
|
10
10
|
filled: "",
|
|
11
11
|
stroked: "bg-base-transparent hover:bg-base-transparent-hover active:bg-base-transparent-pressed disabled:bg-disabled"
|
|
12
|
+
},
|
|
13
|
+
disabled: {
|
|
14
|
+
true: "cursor-default",
|
|
15
|
+
false: "cursor-pointer"
|
|
12
16
|
}
|
|
13
17
|
}
|
|
14
18
|
}
|
|
15
|
-
), d =
|
|
19
|
+
), d = l.forwardRef(({ className: t, iconType: r, disabled: e = !1, ...s }, o) => /* @__PURE__ */ i(
|
|
16
20
|
"button",
|
|
17
21
|
{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
...s,
|
|
23
|
+
ref: o,
|
|
24
|
+
disabled: e,
|
|
25
|
+
className: a(t, c({ disabled: e, iconType: r }))
|
|
21
26
|
}
|
|
22
27
|
));
|
|
23
28
|
d.displayName = "InteractiveIcon";
|
|
@@ -4,7 +4,7 @@ import { Slot as b } from "@radix-ui/react-slot";
|
|
|
4
4
|
import { cva as h } from "class-variance-authority";
|
|
5
5
|
import x from "react";
|
|
6
6
|
import { ExternalLink as k } from "../../Symbols/Icons/ExternalLink.js";
|
|
7
|
-
const
|
|
7
|
+
const N = h(
|
|
8
8
|
"inline-flex w-fit max-w-full items-center justify-center transition-colors focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-focus",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
@@ -29,7 +29,7 @@ const z = h(
|
|
|
29
29
|
underline: !0
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
),
|
|
32
|
+
), w = x.forwardRef(
|
|
33
33
|
({
|
|
34
34
|
className: l,
|
|
35
35
|
children: r,
|
|
@@ -51,7 +51,7 @@ const z = h(
|
|
|
51
51
|
ref: d,
|
|
52
52
|
className: v(
|
|
53
53
|
l,
|
|
54
|
-
|
|
54
|
+
N({
|
|
55
55
|
appearance: m,
|
|
56
56
|
size: i,
|
|
57
57
|
underline: f
|
|
@@ -79,7 +79,7 @@ const z = h(
|
|
|
79
79
|
);
|
|
80
80
|
}
|
|
81
81
|
);
|
|
82
|
-
|
|
82
|
+
w.displayName = "Link";
|
|
83
83
|
export {
|
|
84
|
-
|
|
84
|
+
w as Link
|
|
85
85
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Menu/Menu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EACV,SAAS,EAET,gBAAgB,EAChB,aAAa,EAOb,cAAc,EACd,mBAAmB,EACpB,MAAM,SAAS,CAAC;AA0BjB,iBAAS,IAAI,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAEpC;AAED,QAAA,MAAM,WAAW;;oJASf,CAAC;AAGH,iBAAS,SAAS,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,2CAE9C;AAED,iBAAS,UAAU,CAAC,EAClB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,MAAM,CAAC,2CAE3D;AAED,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,GAAG,CAAC,2CAExD;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,2CAIxD;AAED,QAAA,MAAM,cAAc;;;;;;qIAalB,CAAC;AAGH,QAAA,MAAM,cAAc;;6MAUlB,CAAC;AAGH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Menu/Menu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EACV,SAAS,EAET,gBAAgB,EAChB,aAAa,EAOb,cAAc,EACd,mBAAmB,EACpB,MAAM,SAAS,CAAC;AA0BjB,iBAAS,IAAI,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAEpC;AAED,QAAA,MAAM,WAAW;;oJASf,CAAC;AAGH,iBAAS,SAAS,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,2CAE9C;AAED,iBAAS,UAAU,CAAC,EAClB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,MAAM,CAAC,2CAE3D;AAED,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,GAAG,CAAC,2CAExD;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,2CAIxD;AAED,QAAA,MAAM,cAAc;;;;;;qIAalB,CAAC;AAGH,QAAA,MAAM,cAAc;;6MAUlB,CAAC;AAGH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;qIAqBf,CAAC;AAGH,QAAA,MAAM,QAAQ;;;;;;;qIAUZ,CAAC;AAGH,QAAA,MAAM,gBAAgB;;;0EAkBpB,CAAC;AAGH,QAAA,MAAM,aAAa;;0EAiBjB,CAAC;AAGH,QAAA,MAAM,SAAS;;;;qIAUb,CAAC;AAGH,QAAA,MAAM,aAAa;;;qIAQlB,CAAC;AAGF,OAAO,EACL,IAAI,EACJ,WAAW,EACX,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,aAAa,EACb,SAAS,EACT,UAAU,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACd,cAAc,GACf,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as a, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import { cn as
|
|
2
|
+
import { cn as r } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import * as t from "@radix-ui/react-dropdown-menu";
|
|
4
4
|
import * as i from "react";
|
|
5
|
-
import { Check as
|
|
6
|
-
import { Divider as
|
|
7
|
-
import { ChevronRight as
|
|
8
|
-
const
|
|
5
|
+
import { Check as p } from "../../Symbols/Icons/Check.js";
|
|
6
|
+
import { Divider as b } from "../Divider/Divider.js";
|
|
7
|
+
import { ChevronRight as N } from "../../Symbols/Icons/ChevronRight.js";
|
|
8
|
+
const f = r(
|
|
9
9
|
"z-menu min-w-160 overflow-hidden rounded-sm bg-muted p-8",
|
|
10
10
|
"shadow-sm",
|
|
11
11
|
"data-[state=open]:animate-fade-in",
|
|
12
12
|
"data-[state=closed]:animate-fade-out"
|
|
13
|
-
), d =
|
|
13
|
+
), d = r(
|
|
14
14
|
"relative flex cursor-default items-center gap-12 select-none",
|
|
15
15
|
"h-44 rounded-sm px-8 outline-hidden",
|
|
16
16
|
"body-2-semi-bold text-base",
|
|
@@ -18,147 +18,151 @@ const c = o(
|
|
|
18
18
|
"focus:bg-base-transparent-hover",
|
|
19
19
|
"active:bg-base-transparent-pressed",
|
|
20
20
|
"data-disabled:pointer-events-none data-disabled:text-disabled"
|
|
21
|
-
),
|
|
21
|
+
), g = r("px-8 py-4 body-3-semi-bold text-muted"), y = r(
|
|
22
22
|
d,
|
|
23
23
|
"data-[state=open]:bg-base-transparent-hover"
|
|
24
24
|
);
|
|
25
|
-
function
|
|
25
|
+
function G({ ...e }) {
|
|
26
26
|
return /* @__PURE__ */ a(t.Root, { "data-slot": "menu", ...e });
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const h = i.forwardRef(({ ...e }, n) => /* @__PURE__ */ a(
|
|
29
29
|
t.Trigger,
|
|
30
30
|
{
|
|
31
|
-
ref:
|
|
31
|
+
ref: n,
|
|
32
32
|
"data-slot": "menu-trigger",
|
|
33
33
|
...e
|
|
34
34
|
}
|
|
35
35
|
));
|
|
36
|
-
|
|
37
|
-
function
|
|
36
|
+
h.displayName = t.Trigger.displayName;
|
|
37
|
+
function L({ ...e }) {
|
|
38
38
|
return /* @__PURE__ */ a(t.Group, { "data-slot": "menu-group", ...e });
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function D({
|
|
41
41
|
...e
|
|
42
42
|
}) {
|
|
43
43
|
return /* @__PURE__ */ a(t.Portal, { ...e });
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function q({
|
|
46
46
|
...e
|
|
47
47
|
}) {
|
|
48
48
|
return /* @__PURE__ */ a(t.Sub, { ...e });
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function A({ ...e }) {
|
|
51
51
|
return /* @__PURE__ */ a(t.RadioGroup, { "data-slot": "menu-radio-group", ...e });
|
|
52
52
|
}
|
|
53
|
-
const
|
|
53
|
+
const x = i.forwardRef(({ className: e, inset: n, children: o, ...s }, m) => /* @__PURE__ */ l(
|
|
54
54
|
t.SubTrigger,
|
|
55
55
|
{
|
|
56
56
|
ref: m,
|
|
57
57
|
"data-slot": "menu-sub-trigger",
|
|
58
|
-
className:
|
|
59
|
-
...
|
|
58
|
+
className: r(y, n && "pl-32", e),
|
|
59
|
+
...s,
|
|
60
60
|
children: [
|
|
61
|
-
|
|
62
|
-
/* @__PURE__ */ a(
|
|
61
|
+
o,
|
|
62
|
+
/* @__PURE__ */ a(N, { size: 20, className: "ml-auto text-muted" })
|
|
63
63
|
]
|
|
64
64
|
}
|
|
65
65
|
));
|
|
66
|
-
|
|
67
|
-
const
|
|
66
|
+
x.displayName = t.SubTrigger.displayName;
|
|
67
|
+
const R = i.forwardRef(({ className: e, ...n }, o) => /* @__PURE__ */ a(
|
|
68
68
|
t.SubContent,
|
|
69
69
|
{
|
|
70
|
-
ref:
|
|
70
|
+
ref: o,
|
|
71
71
|
"data-slot": "menu-sub-content",
|
|
72
|
-
className:
|
|
73
|
-
...
|
|
72
|
+
className: r(f, e),
|
|
73
|
+
...n
|
|
74
74
|
}
|
|
75
75
|
));
|
|
76
|
-
|
|
77
|
-
const
|
|
76
|
+
R.displayName = t.SubContent.displayName;
|
|
77
|
+
const M = i.forwardRef(({ className: e, sideOffset: n = 4, align: o = "start", ...s }, m) => /* @__PURE__ */ a(t.Portal, { children: /* @__PURE__ */ a(
|
|
78
78
|
t.Content,
|
|
79
79
|
{
|
|
80
80
|
ref: m,
|
|
81
81
|
"data-slot": "menu-content",
|
|
82
|
-
sideOffset:
|
|
83
|
-
className:
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
sideOffset: n,
|
|
83
|
+
className: r(f, e),
|
|
84
|
+
onClick: (u) => {
|
|
85
|
+
var c;
|
|
86
|
+
u.stopPropagation(), (c = s.onClick) == null || c.call(s, u);
|
|
87
|
+
},
|
|
88
|
+
align: o,
|
|
89
|
+
...s
|
|
86
90
|
}
|
|
87
91
|
) }));
|
|
88
|
-
|
|
89
|
-
const
|
|
92
|
+
M.displayName = t.Content.displayName;
|
|
93
|
+
const w = i.forwardRef(({ className: e, inset: n, ...o }, s) => /* @__PURE__ */ a(
|
|
90
94
|
t.Item,
|
|
91
95
|
{
|
|
92
|
-
ref:
|
|
96
|
+
ref: s,
|
|
93
97
|
"data-slot": "menu-item",
|
|
94
|
-
className:
|
|
95
|
-
...
|
|
98
|
+
className: r(d, n && "pl-32", e),
|
|
99
|
+
...o
|
|
96
100
|
}
|
|
97
101
|
));
|
|
98
|
-
|
|
99
|
-
const
|
|
102
|
+
w.displayName = t.Item.displayName;
|
|
103
|
+
const S = i.forwardRef(({ className: e, children: n, checked: o, ...s }, m) => /* @__PURE__ */ l(
|
|
100
104
|
t.CheckboxItem,
|
|
101
105
|
{
|
|
102
106
|
ref: m,
|
|
103
107
|
"data-slot": "menu-checkbox-item",
|
|
104
|
-
className:
|
|
105
|
-
checked:
|
|
106
|
-
...
|
|
108
|
+
className: r(d, e),
|
|
109
|
+
checked: o,
|
|
110
|
+
...s,
|
|
107
111
|
children: [
|
|
108
|
-
|
|
109
|
-
/* @__PURE__ */ a("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ a(t.ItemIndicator, { children: /* @__PURE__ */ a(
|
|
112
|
+
n,
|
|
113
|
+
/* @__PURE__ */ a("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ a(t.ItemIndicator, { children: /* @__PURE__ */ a(p, { size: 24, className: "text-active" }) }) })
|
|
110
114
|
]
|
|
111
115
|
}
|
|
112
116
|
));
|
|
113
|
-
|
|
114
|
-
const
|
|
117
|
+
S.displayName = t.CheckboxItem.displayName;
|
|
118
|
+
const C = i.forwardRef(({ className: e, children: n, ...o }, s) => /* @__PURE__ */ l(
|
|
115
119
|
t.RadioItem,
|
|
116
120
|
{
|
|
117
|
-
ref:
|
|
121
|
+
ref: s,
|
|
118
122
|
"data-slot": "menu-radio-item",
|
|
119
|
-
className:
|
|
120
|
-
...
|
|
123
|
+
className: r(d, e),
|
|
124
|
+
...o,
|
|
121
125
|
children: [
|
|
122
|
-
|
|
123
|
-
/* @__PURE__ */ a("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ a(t.ItemIndicator, { children: /* @__PURE__ */ a(
|
|
126
|
+
n,
|
|
127
|
+
/* @__PURE__ */ a("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ a(t.ItemIndicator, { children: /* @__PURE__ */ a(p, { size: 24, className: "text-active" }) }) })
|
|
124
128
|
]
|
|
125
129
|
}
|
|
126
130
|
));
|
|
127
|
-
|
|
128
|
-
const
|
|
131
|
+
C.displayName = t.RadioItem.displayName;
|
|
132
|
+
const I = i.forwardRef(({ className: e, inset: n, ...o }, s) => /* @__PURE__ */ a(
|
|
129
133
|
t.Label,
|
|
130
134
|
{
|
|
131
|
-
ref:
|
|
135
|
+
ref: s,
|
|
132
136
|
"data-slot": "menu-label",
|
|
133
|
-
className:
|
|
134
|
-
...
|
|
137
|
+
className: r(g, n && "pl-32", e),
|
|
138
|
+
...o
|
|
135
139
|
}
|
|
136
140
|
));
|
|
137
|
-
|
|
138
|
-
const
|
|
139
|
-
({ className: e, ...
|
|
140
|
-
|
|
141
|
+
I.displayName = t.Label.displayName;
|
|
142
|
+
const v = i.forwardRef(
|
|
143
|
+
({ className: e, ...n }, o) => /* @__PURE__ */ a(
|
|
144
|
+
b,
|
|
141
145
|
{
|
|
142
|
-
ref:
|
|
143
|
-
className:
|
|
144
|
-
...
|
|
146
|
+
ref: o,
|
|
147
|
+
className: r("mx-8 my-4 w-auto", e),
|
|
148
|
+
...n
|
|
145
149
|
}
|
|
146
150
|
)
|
|
147
151
|
);
|
|
148
|
-
|
|
152
|
+
v.displayName = "MenuSeparator";
|
|
149
153
|
export {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
154
|
+
G as Menu,
|
|
155
|
+
S as MenuCheckboxItem,
|
|
156
|
+
M as MenuContent,
|
|
157
|
+
L as MenuGroup,
|
|
158
|
+
w as MenuItem,
|
|
159
|
+
I as MenuLabel,
|
|
160
|
+
D as MenuPortal,
|
|
161
|
+
A as MenuRadioGroup,
|
|
162
|
+
C as MenuRadioItem,
|
|
163
|
+
v as MenuSeparator,
|
|
164
|
+
q as MenuSub,
|
|
165
|
+
R as MenuSubContent,
|
|
166
|
+
x as MenuSubTrigger,
|
|
167
|
+
h as MenuTrigger
|
|
164
168
|
};
|