@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.
Files changed (31) hide show
  1. package/dist/index.js +10 -8
  2. package/dist/lib/Components/AmountInput/AmountInput.js +10 -10
  3. package/dist/lib/Components/BaseInput/BaseInput.js +4 -4
  4. package/dist/lib/Components/Button/BaseButton.d.ts.map +1 -1
  5. package/dist/lib/Components/Button/BaseButton.js +37 -42
  6. package/dist/lib/Components/Dialog/Dialog.js +2 -2
  7. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts.map +1 -1
  8. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +15 -10
  9. package/dist/lib/Components/Link/Link.js +5 -5
  10. package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
  11. package/dist/lib/Components/Menu/Menu.js +81 -77
  12. package/dist/lib/Components/Select/Select.js +7 -7
  13. package/dist/lib/Components/Spot/Spot.js +4 -4
  14. package/dist/lib/Components/ThemeProvider/ThemeProvider.js +2 -2
  15. package/dist/lib/Components/Tile/Tile.d.ts +5 -4
  16. package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
  17. package/dist/lib/Components/Tile/Tile.js +105 -165
  18. package/dist/lib/Components/Tile/types.d.ts +12 -1
  19. package/dist/lib/Components/Tile/types.d.ts.map +1 -1
  20. package/dist/lib/Components/TileButton/TileButton.d.ts +37 -0
  21. package/dist/lib/Components/TileButton/TileButton.d.ts.map +1 -0
  22. package/dist/lib/Components/TileButton/TileButton.js +81 -0
  23. package/dist/lib/Components/TileButton/index.d.ts +3 -0
  24. package/dist/lib/Components/TileButton/index.d.ts.map +1 -0
  25. package/dist/lib/Components/TileButton/types.d.ts +45 -0
  26. package/dist/lib/Components/TileButton/types.d.ts.map +1 -0
  27. package/dist/lib/Components/index.d.ts +1 -0
  28. package/dist/lib/Components/index.d.ts.map +1 -1
  29. package/dist/libs/utils-shared/dist/index.js +44 -52
  30. package/dist/package.json +2 -2
  31. 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 { Tooltip as Oe, TooltipContent as Qe, TooltipProvider as Ue, TooltipTrigger as Ve } from "./lib/Components/Tooltip/Tooltip.js";
28
- import { ThemeProvider as Xe, useTheme as Ye } from "./lib/Components/ThemeProvider/ThemeProvider.js";
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
- Xe as ThemeProvider,
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
- Oe as Tooltip,
102
- Qe as TooltipContent,
103
- Ue as TooltipProvider,
104
- Ve as TooltipTrigger,
105
- Ye as useTheme
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 F, jsx as l } from "react/jsx-runtime";
2
- import { getFontSize as V, cn as a, textFormatter as j } from "../../../libs/utils-shared/dist/index.js";
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()), [I, m] = h(!1), g = p(n);
46
- function k(...t) {
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 E = (t) => {
66
- const e = j(t.target.value, {
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__ */ F(
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: k(A, s),
106
+ ref: j(A, s),
107
107
  type: "text",
108
108
  inputMode: "decimal",
109
109
  disabled: w,
110
110
  value: n,
111
- onChange: E,
111
+ onChange: k,
112
112
  onAnimationEnd: () => m(!1),
113
- className: a(L({ isChanging: I }), x),
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: z,
33
+ id: j,
34
34
  disabled: f,
35
35
  errorMessage: i,
36
36
  suffix: E,
37
- prefix: j,
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 = z || `input-${F}`, L = m || (i ? !0 : void 0), c = o.value !== void 0, [T, v] = l.useState(
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
- j,
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,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAqDzC,eAAO,MAAM,UAAU;;;;;;;;;YAxCf,CAAF;iBACI,CAAH;;;2FAkHN,CAAC"}
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 r } from "react/jsx-runtime";
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 z, Slottable as S } from "@radix-ui/react-slot";
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 y, { useCallback as B } from "react";
5
+ import B from "react";
6
6
  import { Spinner as N } from "../Spinner/Spinner.js";
7
- const j = l(
8
- 'inline-flex size-fit cursor-pointer 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',
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
- ), u = l("shrink-0", {
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
- }), V = y.forwardRef(
53
+ }), j = B.forwardRef(
50
54
  ({
51
- className: d,
52
- appearance: s = "base",
53
- size: n,
54
- isFull: m,
55
- disabled: e,
56
- asChild: i = !1,
57
- icon: c,
58
- loading: t,
59
- children: o,
60
- onClick: a,
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 = B(
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
- }[n] : 24;
72
+ }, c = s || e, b = r ? g[r] : 24;
78
73
  return /* @__PURE__ */ x(
79
- i ? z : "button",
74
+ o ? y : "button",
80
75
  {
81
76
  className: h(
82
- j({ appearance: s, size: n, isFull: m }),
83
- d
77
+ S({ disabled: e, appearance: a, size: r, isFull: p }),
78
+ u
84
79
  ),
85
80
  ref: f,
86
- "data-disabled": e || void 0,
87
- disabled: e,
88
- onClick: g,
81
+ "data-disabled": c || void 0,
82
+ disabled: c,
83
+ onClick: m,
89
84
  ...v,
90
85
  children: [
91
- t && /* @__PURE__ */ r(
86
+ s && /* @__PURE__ */ t(
92
87
  N,
93
88
  {
94
89
  size: b,
95
- className: u({ appearance: s, disabled: e })
90
+ className: d({ appearance: a, disabled: e })
96
91
  }
97
92
  ),
98
- !t && c && /* @__PURE__ */ r(
99
- c,
93
+ !s && i && /* @__PURE__ */ t(
94
+ i,
100
95
  {
101
96
  size: b,
102
- className: u({ appearance: s, disabled: e })
97
+ className: d({ appearance: a, disabled: e })
103
98
  }
104
99
  ),
105
- o && (i ? /* @__PURE__ */ r(S, { children: o }) : /* @__PURE__ */ r("span", { className: "line-clamp-2 text-left", children: o }))
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
- V.displayName = "BaseButton";
106
+ j.displayName = "BaseButton";
112
107
  export {
113
- V as BaseButton
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 O({
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
- O as DialogContent,
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;AAgB1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,eAAe;;;2FAW1B,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 o } from "react/jsx-runtime";
2
- import { cn as i } from "../../../libs/utils-shared/dist/index.js";
3
- import { cva as a } from "class-variance-authority";
4
- import n from "react";
5
- const c = a(
6
- "inline-flex size-fit cursor-pointer 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",
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 = n.forwardRef(({ className: e, iconType: t, ...r }, s) => /* @__PURE__ */ o(
19
+ ), d = l.forwardRef(({ className: t, iconType: r, disabled: e = !1, ...s }, o) => /* @__PURE__ */ i(
16
20
  "button",
17
21
  {
18
- ref: s,
19
- className: i(e, c({ iconType: t })),
20
- ...r
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 z = h(
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
- ), N = x.forwardRef(
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
- z({
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
- N.displayName = "Link";
82
+ w.displayName = "Link";
83
83
  export {
84
- N as Link
84
+ w as Link
85
85
  };
@@ -1 +1 @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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 o } from "../../../libs/utils-shared/dist/index.js";
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 u } from "../../Symbols/Icons/Check.js";
6
- import { Divider as p } from "../Divider/Divider.js";
7
- import { ChevronRight as f } from "../../Symbols/Icons/ChevronRight.js";
8
- const c = o(
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 = o(
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
- ), b = o("px-8 py-4 body-3-semi-bold text-muted"), N = o(
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 j({ ...e }) {
25
+ function G({ ...e }) {
26
26
  return /* @__PURE__ */ a(t.Root, { "data-slot": "menu", ...e });
27
27
  }
28
- const y = i.forwardRef(({ ...e }, s) => /* @__PURE__ */ a(
28
+ const h = i.forwardRef(({ ...e }, n) => /* @__PURE__ */ a(
29
29
  t.Trigger,
30
30
  {
31
- ref: s,
31
+ ref: n,
32
32
  "data-slot": "menu-trigger",
33
33
  ...e
34
34
  }
35
35
  ));
36
- y.displayName = t.Trigger.displayName;
37
- function G({ ...e }) {
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 P({
40
+ function D({
41
41
  ...e
42
42
  }) {
43
43
  return /* @__PURE__ */ a(t.Portal, { ...e });
44
44
  }
45
- function L({
45
+ function q({
46
46
  ...e
47
47
  }) {
48
48
  return /* @__PURE__ */ a(t.Sub, { ...e });
49
49
  }
50
- function D({ ...e }) {
50
+ function A({ ...e }) {
51
51
  return /* @__PURE__ */ a(t.RadioGroup, { "data-slot": "menu-radio-group", ...e });
52
52
  }
53
- const g = i.forwardRef(({ className: e, inset: s, children: n, ...r }, m) => /* @__PURE__ */ l(
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: o(N, s && "pl-32", e),
59
- ...r,
58
+ className: r(y, n && "pl-32", e),
59
+ ...s,
60
60
  children: [
61
- n,
62
- /* @__PURE__ */ a(f, { size: 20, className: "ml-auto text-muted" })
61
+ o,
62
+ /* @__PURE__ */ a(N, { size: 20, className: "ml-auto text-muted" })
63
63
  ]
64
64
  }
65
65
  ));
66
- g.displayName = t.SubTrigger.displayName;
67
- const h = i.forwardRef(({ className: e, ...s }, n) => /* @__PURE__ */ a(
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: n,
70
+ ref: o,
71
71
  "data-slot": "menu-sub-content",
72
- className: o(c, e),
73
- ...s
72
+ className: r(f, e),
73
+ ...n
74
74
  }
75
75
  ));
76
- h.displayName = t.SubContent.displayName;
77
- const x = i.forwardRef(({ className: e, sideOffset: s = 4, align: n = "start", ...r }, m) => /* @__PURE__ */ a(t.Portal, { children: /* @__PURE__ */ a(
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: s,
83
- className: o(c, e),
84
- align: n,
85
- ...r
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
- x.displayName = t.Content.displayName;
89
- const R = i.forwardRef(({ className: e, inset: s, ...n }, r) => /* @__PURE__ */ a(
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: r,
96
+ ref: s,
93
97
  "data-slot": "menu-item",
94
- className: o(d, s && "pl-32", e),
95
- ...n
98
+ className: r(d, n && "pl-32", e),
99
+ ...o
96
100
  }
97
101
  ));
98
- R.displayName = t.Item.displayName;
99
- const M = i.forwardRef(({ className: e, children: s, checked: n, ...r }, m) => /* @__PURE__ */ l(
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: o(d, e),
105
- checked: n,
106
- ...r,
108
+ className: r(d, e),
109
+ checked: o,
110
+ ...s,
107
111
  children: [
108
- s,
109
- /* @__PURE__ */ a("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ a(t.ItemIndicator, { children: /* @__PURE__ */ a(u, { size: 24, className: "text-active" }) }) })
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
- M.displayName = t.CheckboxItem.displayName;
114
- const w = i.forwardRef(({ className: e, children: s, ...n }, r) => /* @__PURE__ */ l(
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: r,
121
+ ref: s,
118
122
  "data-slot": "menu-radio-item",
119
- className: o(d, e),
120
- ...n,
123
+ className: r(d, e),
124
+ ...o,
121
125
  children: [
122
- s,
123
- /* @__PURE__ */ a("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ a(t.ItemIndicator, { children: /* @__PURE__ */ a(u, { size: 24, className: "text-active" }) }) })
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
- w.displayName = t.RadioItem.displayName;
128
- const S = i.forwardRef(({ className: e, inset: s, ...n }, r) => /* @__PURE__ */ a(
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: r,
135
+ ref: s,
132
136
  "data-slot": "menu-label",
133
- className: o(b, s && "pl-32", e),
134
- ...n
137
+ className: r(g, n && "pl-32", e),
138
+ ...o
135
139
  }
136
140
  ));
137
- S.displayName = t.Label.displayName;
138
- const I = i.forwardRef(
139
- ({ className: e, ...s }, n) => /* @__PURE__ */ a(
140
- p,
141
+ I.displayName = t.Label.displayName;
142
+ const v = i.forwardRef(
143
+ ({ className: e, ...n }, o) => /* @__PURE__ */ a(
144
+ b,
141
145
  {
142
- ref: n,
143
- className: o("mx-8 my-4 w-auto", e),
144
- ...s
146
+ ref: o,
147
+ className: r("mx-8 my-4 w-auto", e),
148
+ ...n
145
149
  }
146
150
  )
147
151
  );
148
- I.displayName = "MenuSeparator";
152
+ v.displayName = "MenuSeparator";
149
153
  export {
150
- j as Menu,
151
- M as MenuCheckboxItem,
152
- x as MenuContent,
153
- G as MenuGroup,
154
- R as MenuItem,
155
- S as MenuLabel,
156
- P as MenuPortal,
157
- D as MenuRadioGroup,
158
- w as MenuRadioItem,
159
- I as MenuSeparator,
160
- L as MenuSub,
161
- h as MenuSubContent,
162
- g as MenuSubTrigger,
163
- y as MenuTrigger
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
  };