@ledgerhq/lumen-ui-react 0.1.17 → 0.1.19

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 (136) hide show
  1. package/ai-rules/RULES.md +6 -0
  2. package/dist/lib/Components/AddressInput/AddressInput.d.ts +1 -4
  3. package/dist/lib/Components/AddressInput/AddressInput.d.ts.map +1 -1
  4. package/dist/lib/Components/AddressInput/AddressInput.js +21 -21
  5. package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts +1 -4
  6. package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
  7. package/dist/lib/Components/AmountDisplay/AmountDisplay.js +32 -29
  8. package/dist/lib/Components/AmountInput/AmountInput.d.ts +1 -4
  9. package/dist/lib/Components/AmountInput/AmountInput.d.ts.map +1 -1
  10. package/dist/lib/Components/AmountInput/AmountInput.js +13 -14
  11. package/dist/lib/Components/Avatar/Avatar.d.ts +1 -4
  12. package/dist/lib/Components/Avatar/Avatar.d.ts.map +1 -1
  13. package/dist/lib/Components/Avatar/Avatar.js +8 -9
  14. package/dist/lib/Components/BaseInput/BaseInput.d.ts +1 -4
  15. package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
  16. package/dist/lib/Components/BaseInput/BaseInput.js +44 -44
  17. package/dist/lib/Components/Button/BaseButton.d.ts +1 -4
  18. package/dist/lib/Components/Button/BaseButton.d.ts.map +1 -1
  19. package/dist/lib/Components/Button/BaseButton.js +14 -15
  20. package/dist/lib/Components/Button/Button.d.ts +1 -4
  21. package/dist/lib/Components/Button/Button.d.ts.map +1 -1
  22. package/dist/lib/Components/Button/Button.js +6 -7
  23. package/dist/lib/Components/Card/Card.d.ts +10 -40
  24. package/dist/lib/Components/Card/Card.d.ts.map +1 -1
  25. package/dist/lib/Components/Card/Card.js +115 -134
  26. package/dist/lib/Components/CardButton/CardButton.d.ts +1 -4
  27. package/dist/lib/Components/CardButton/CardButton.d.ts.map +1 -1
  28. package/dist/lib/Components/CardButton/CardButton.js +10 -11
  29. package/dist/lib/Components/Checkbox/Checkbox.d.ts +1 -4
  30. package/dist/lib/Components/Checkbox/Checkbox.d.ts.map +1 -1
  31. package/dist/lib/Components/Checkbox/Checkbox.js +2 -3
  32. package/dist/lib/Components/ContentBanner/ContentBanner.d.ts +4 -16
  33. package/dist/lib/Components/ContentBanner/ContentBanner.d.ts.map +1 -1
  34. package/dist/lib/Components/ContentBanner/ContentBanner.js +48 -54
  35. package/dist/lib/Components/DataTable/DataTable.d.ts +3 -12
  36. package/dist/lib/Components/DataTable/DataTable.d.ts.map +1 -1
  37. package/dist/lib/Components/DataTable/DataTable.js +84 -97
  38. package/dist/lib/Components/Dialog/Dialog.d.ts +3 -12
  39. package/dist/lib/Components/Dialog/Dialog.d.ts.map +1 -1
  40. package/dist/lib/Components/Dialog/Dialog.js +44 -50
  41. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts +1 -4
  42. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts.map +1 -1
  43. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +31 -34
  44. package/dist/lib/Components/Divider/Divider.d.ts +1 -4
  45. package/dist/lib/Components/Divider/Divider.d.ts.map +1 -1
  46. package/dist/lib/Components/Divider/Divider.js +10 -11
  47. package/dist/lib/Components/Icon/Icon.d.ts +1 -4
  48. package/dist/lib/Components/Icon/Icon.d.ts.map +1 -1
  49. package/dist/lib/Components/Icon/Icon.js +6 -7
  50. package/dist/lib/Components/IconButton/IconButton.d.ts +1 -4
  51. package/dist/lib/Components/IconButton/IconButton.d.ts.map +1 -1
  52. package/dist/lib/Components/IconButton/IconButton.js +5 -6
  53. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts +3 -11
  54. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts.map +1 -1
  55. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +24 -22
  56. package/dist/lib/Components/InteractiveIcon/types.d.ts +14 -9
  57. package/dist/lib/Components/InteractiveIcon/types.d.ts.map +1 -1
  58. package/dist/lib/Components/Link/Link.d.ts +1 -4
  59. package/dist/lib/Components/Link/Link.d.ts.map +1 -1
  60. package/dist/lib/Components/Link/Link.js +13 -14
  61. package/dist/lib/Components/ListItem/ListItem.d.ts +7 -28
  62. package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
  63. package/dist/lib/Components/ListItem/ListItem.js +60 -63
  64. package/dist/lib/Components/MediaBanner/MediaBanner.d.ts +3 -12
  65. package/dist/lib/Components/MediaBanner/MediaBanner.d.ts.map +1 -1
  66. package/dist/lib/Components/MediaBanner/MediaBanner.js +39 -43
  67. package/dist/lib/Components/MediaCard/MediaCard.d.ts +2 -8
  68. package/dist/lib/Components/MediaCard/MediaCard.d.ts.map +1 -1
  69. package/dist/lib/Components/MediaCard/MediaCard.js +38 -40
  70. package/dist/lib/Components/MediaImage/MediaImage.d.ts +1 -4
  71. package/dist/lib/Components/MediaImage/MediaImage.d.ts.map +1 -1
  72. package/dist/lib/Components/MediaImage/MediaImage.js +15 -16
  73. package/dist/lib/Components/Menu/Menu.d.ts +11 -38
  74. package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
  75. package/dist/lib/Components/Menu/Menu.js +100 -116
  76. package/dist/lib/Components/NavBar/CoinCapsule.d.ts +1 -4
  77. package/dist/lib/Components/NavBar/CoinCapsule.d.ts.map +1 -1
  78. package/dist/lib/Components/NavBar/CoinCapsule.js +8 -9
  79. package/dist/lib/Components/NavBar/NavBar.d.ts +7 -22
  80. package/dist/lib/Components/NavBar/NavBar.d.ts.map +1 -1
  81. package/dist/lib/Components/NavBar/NavBar.js +25 -34
  82. package/dist/lib/Components/PageIndicator/PageIndicator.d.ts +1 -4
  83. package/dist/lib/Components/PageIndicator/PageIndicator.d.ts.map +1 -1
  84. package/dist/lib/Components/PageIndicator/PageIndicator.js +15 -16
  85. package/dist/lib/Components/Popover/Popover.d.ts +1 -4
  86. package/dist/lib/Components/Popover/Popover.d.ts.map +1 -1
  87. package/dist/lib/Components/Popover/Popover.js +5 -7
  88. package/dist/lib/Components/SearchInput/SearchInput.d.ts +1 -4
  89. package/dist/lib/Components/SearchInput/SearchInput.d.ts.map +1 -1
  90. package/dist/lib/Components/SearchInput/SearchInput.js +2 -3
  91. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts +0 -6
  92. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  93. package/dist/lib/Components/SegmentedControl/SegmentedControl.js +19 -21
  94. package/dist/lib/Components/Select/Select.d.ts +10 -40
  95. package/dist/lib/Components/Select/Select.d.ts.map +1 -1
  96. package/dist/lib/Components/Select/Select.js +141 -163
  97. package/dist/lib/Components/SideBar/SideBar.d.ts +5 -20
  98. package/dist/lib/Components/SideBar/SideBar.d.ts.map +1 -1
  99. package/dist/lib/Components/SideBar/SideBar.js +44 -53
  100. package/dist/lib/Components/Skeleton/Skeleton.d.ts +1 -4
  101. package/dist/lib/Components/Skeleton/Skeleton.d.ts.map +1 -1
  102. package/dist/lib/Components/Skeleton/Skeleton.js +15 -22
  103. package/dist/lib/Components/Spot/Spot.d.ts +1 -4
  104. package/dist/lib/Components/Spot/Spot.d.ts.map +1 -1
  105. package/dist/lib/Components/Spot/Spot.js +11 -12
  106. package/dist/lib/Components/Stepper/Stepper.d.ts +1 -4
  107. package/dist/lib/Components/Stepper/Stepper.d.ts.map +1 -1
  108. package/dist/lib/Components/Stepper/Stepper.js +10 -11
  109. package/dist/lib/Components/Subheader/Subheader.d.ts +1 -4
  110. package/dist/lib/Components/Subheader/Subheader.d.ts.map +1 -1
  111. package/dist/lib/Components/Subheader/Subheader.js +14 -15
  112. package/dist/lib/Components/Subheader/types.d.ts +1 -1
  113. package/dist/lib/Components/Subheader/types.d.ts.map +1 -1
  114. package/dist/lib/Components/Switch/Switch.d.ts +1 -4
  115. package/dist/lib/Components/Switch/Switch.d.ts.map +1 -1
  116. package/dist/lib/Components/Switch/Switch.js +2 -3
  117. package/dist/lib/Components/Table/Table.d.ts +16 -64
  118. package/dist/lib/Components/Table/Table.d.ts.map +1 -1
  119. package/dist/lib/Components/Table/Table.js +146 -176
  120. package/dist/lib/Components/Tag/Tag.d.ts +1 -4
  121. package/dist/lib/Components/Tag/Tag.d.ts.map +1 -1
  122. package/dist/lib/Components/Tag/Tag.js +10 -11
  123. package/dist/lib/Components/TextInput/TextInput.d.ts +1 -4
  124. package/dist/lib/Components/TextInput/TextInput.d.ts.map +1 -1
  125. package/dist/lib/Components/TextInput/TextInput.js +4 -5
  126. package/dist/lib/Components/Tile/Tile.d.ts +6 -24
  127. package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
  128. package/dist/lib/Components/Tile/Tile.js +58 -71
  129. package/dist/lib/Components/TileButton/TileButton.d.ts +1 -4
  130. package/dist/lib/Components/TileButton/TileButton.d.ts.map +1 -1
  131. package/dist/lib/Components/TileButton/TileButton.js +12 -13
  132. package/dist/lib/Components/TriggerButton/TriggerButton.d.ts +1 -4
  133. package/dist/lib/Components/TriggerButton/TriggerButton.d.ts.map +1 -1
  134. package/dist/lib/Components/TriggerButton/TriggerButton.js +11 -12
  135. package/dist/package.json +1 -1
  136. package/package.json +2 -2
@@ -1,12 +1,12 @@
1
- import { jsxs as m, jsx as e, Fragment as h } from "react/jsx-runtime";
2
- import { cn as c, getButtonA11yProps as y } from "../../../libs/utils-shared/dist/index.js";
3
- import { cva as a } from "class-variance-authority";
1
+ import { jsxs as d, jsx as e, Fragment as h } from "react/jsx-runtime";
2
+ import { cn as m, getButtonA11yProps as y } from "../../../libs/utils-shared/dist/index.js";
3
+ import { cva as o } from "class-variance-authority";
4
4
  import { useState as x, useEffect as N } from "react";
5
5
  import { Close as w } from "../../Symbols/Icons/Close.js";
6
6
  import { useCommonTranslation as z } from "../../../i18n/useCommonTranslation.js";
7
- import { InteractiveIcon as C } from "../InteractiveIcon/InteractiveIcon.js";
8
- const o = {
9
- root: a(
7
+ import { InteractiveIcon as j } from "../InteractiveIcon/InteractiveIcon.js";
8
+ const r = {
9
+ root: o(
10
10
  [
11
11
  "group relative overflow-hidden rounded-md",
12
12
  "flex h-[164px] w-full flex-col items-start justify-end p-12",
@@ -23,16 +23,16 @@ const o = {
23
23
  }
24
24
  }
25
25
  ),
26
- image: a(["absolute inset-0", "size-full object-cover"]),
27
- overlay: a([
26
+ image: o(["absolute inset-0", "size-full object-cover"]),
27
+ overlay: o([
28
28
  "absolute inset-0 size-full",
29
29
  "transition-colors",
30
30
  "group-hover:bg-muted-transparent-hover",
31
31
  "group-[:active:not(:has(button:active))]:bg-muted-transparent-pressed"
32
32
  ]),
33
- content: a("isolate flex flex-col items-start gap-8"),
34
- title: a("line-clamp-3 heading-3-semi-bold text-white")
35
- }, j = () => /* @__PURE__ */ m(h, { children: [
33
+ content: o("isolate flex flex-col items-start gap-8"),
34
+ title: o("line-clamp-3 heading-3-semi-bold text-white")
35
+ }, C = () => /* @__PURE__ */ d(h, { children: [
36
36
  /* @__PURE__ */ e(
37
37
  "div",
38
38
  {
@@ -47,65 +47,65 @@ const o = {
47
47
  className: "pointer-events-none absolute inset-y-0 right-0 size-full bg-linear-[45deg] from-gradient-overlay-0 from-70% to-gradient-overlay-80"
48
48
  }
49
49
  )
50
- ] }), E = ({
50
+ ] }), k = ({
51
51
  ref: i,
52
52
  className: t,
53
53
  children: s,
54
- ...r
54
+ ...a
55
55
  }) => /* @__PURE__ */ e(
56
56
  "div",
57
57
  {
58
58
  ref: i,
59
- className: c(o.title(), t),
60
- ...r,
59
+ className: m(r.title(), t),
60
+ ...a,
61
61
  children: s
62
62
  }
63
- );
64
- E.displayName = "MediaCardTitle";
65
- const I = ({
63
+ ), B = ({
66
64
  ref: i,
67
65
  imageUrl: t,
68
66
  children: s,
69
- onClick: r,
67
+ onClick: a,
70
68
  onClose: l,
71
69
  closeAriaLabel: u,
72
- className: p,
73
- ...f
70
+ className: f,
71
+ ...p
74
72
  }) => {
75
- const { t: v } = z(), [g, d] = x(!1), b = t && !g;
73
+ const { t: v } = z(), [g, c] = x(!1), b = t && !g;
76
74
  return N(() => {
77
- d(!1);
78
- }, [t]), /* @__PURE__ */ m(
75
+ c(!1);
76
+ }, [t]), /* @__PURE__ */ d(
79
77
  "div",
80
78
  {
81
- ...y({ onClick: r }),
82
- className: c(
83
- o.root({ interactive: !!r }),
84
- p
79
+ ...y({ onClick: a }),
80
+ className: m(
81
+ r.root({ interactive: !!a }),
82
+ f
85
83
  ),
86
84
  ref: i,
87
- ...f,
85
+ ...p,
88
86
  children: [
89
87
  b && /* @__PURE__ */ e(
90
88
  "img",
91
89
  {
92
90
  src: t,
93
91
  alt: "",
94
- className: o.image(),
92
+ className: r.image(),
95
93
  "aria-hidden": "true",
96
94
  loading: "lazy",
97
- onError: () => d(!0)
95
+ onError: () => c(!0)
98
96
  }
99
97
  ),
100
- /* @__PURE__ */ e(j, {}),
101
- /* @__PURE__ */ e("div", { "aria-hidden": "true", className: o.overlay() }),
102
- /* @__PURE__ */ e("div", { className: o.content(), children: s }),
98
+ /* @__PURE__ */ e(C, {}),
99
+ /* @__PURE__ */ e("div", { "aria-hidden": "true", className: r.overlay() }),
100
+ /* @__PURE__ */ e("div", { className: r.content(), children: s }),
103
101
  l && /* @__PURE__ */ e(
104
- C,
102
+ j,
105
103
  {
106
104
  type: "button",
107
105
  iconType: "stroked",
108
106
  appearance: "white",
107
+ icon: w,
108
+ size: 20,
109
109
  "aria-label": u || v("common.closeAriaLabel"),
110
110
  className: "absolute top-12 right-12 z-10",
111
111
  onClick: (n) => {
@@ -113,16 +113,14 @@ const I = ({
113
113
  },
114
114
  onKeyDown: (n) => {
115
115
  n.stopPropagation();
116
- },
117
- children: /* @__PURE__ */ e(w, { size: 20 })
116
+ }
118
117
  }
119
118
  )
120
119
  ]
121
120
  }
122
121
  );
123
122
  };
124
- I.displayName = "MediaCard";
125
123
  export {
126
- I as MediaCard,
127
- E as MediaCardTitle
124
+ B as MediaCard,
125
+ k as MediaCardTitle
128
126
  };
@@ -12,8 +12,5 @@ export declare const mediaImageDotSizeMap: Record<MediaImageSize, number>;
12
12
  *
13
13
  * <MediaImage src="https://example.com/icon.png" alt="Bitcoin" size={32} />
14
14
  */
15
- export declare const MediaImage: {
16
- ({ ref, className, src, alt, size, shape, imgLoading, ...props }: MediaImageProps): import("react/jsx-runtime").JSX.Element;
17
- displayName: string;
18
- };
15
+ export declare const MediaImage: ({ ref, className, src, alt, size, shape, imgLoading, ...props }: MediaImageProps) => import("react/jsx-runtime").JSX.Element;
19
16
  //# sourceMappingURL=MediaImage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MediaImage.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/MediaImage.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA0B1D,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAStD,CAAC;AAEX;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU;sEASpB,eAAe;;CA8BjB,CAAC"}
1
+ {"version":3,"file":"MediaImage.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/MediaImage.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA0B1D,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAStD,CAAC;AAEX;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,GAAI,iEASxB,eAAe,4CA8BjB,CAAC"}
@@ -24,7 +24,7 @@ const p = {
24
24
  }
25
25
  }
26
26
  )
27
- }, N = {
27
+ }, j = {
28
28
  12: 8,
29
29
  16: 8,
30
30
  20: 8,
@@ -33,34 +33,34 @@ const p = {
33
33
  40: 16,
34
34
  48: 20,
35
35
  56: 24
36
- }, h = ({
37
- ref: s,
38
- className: i,
36
+ }, E = ({
37
+ ref: a,
38
+ className: o,
39
39
  src: e,
40
- alt: o,
40
+ alt: i,
41
41
  size: t = 48,
42
42
  shape: d = "square",
43
43
  imgLoading: n = "eager",
44
- ...m
44
+ ...l
45
45
  }) => {
46
- const [l, a] = z(!1), u = !e || l;
46
+ const [m, s] = z(!1), u = !e || m;
47
47
  return g(() => {
48
- a(!1);
48
+ s(!1);
49
49
  }, [e]), /* @__PURE__ */ r(
50
50
  "div",
51
51
  {
52
- ref: s,
53
- className: c(p.root({ size: t, shape: d }), i),
52
+ ref: a,
53
+ className: c(p.root({ size: t, shape: d }), o),
54
54
  role: "img",
55
- "aria-label": o,
56
- ...m,
55
+ "aria-label": i,
56
+ ...l,
57
57
  children: u ? /* @__PURE__ */ r("span", { className: "text-muted select-none", "aria-hidden": "true" }) : /* @__PURE__ */ r(
58
58
  "img",
59
59
  {
60
60
  src: e,
61
61
  alt: "",
62
62
  loading: n,
63
- onError: () => a(!0),
63
+ onError: () => s(!0),
64
64
  className: "size-full object-cover",
65
65
  "aria-hidden": "true"
66
66
  }
@@ -68,8 +68,7 @@ const p = {
68
68
  }
69
69
  );
70
70
  };
71
- h.displayName = "MediaImage";
72
71
  export {
73
- h as MediaImage,
74
- N as mediaImageDotSizeMap
72
+ E as MediaImage,
73
+ j as mediaImageDotSizeMap
75
74
  };
@@ -2,47 +2,20 @@ import { ComponentProps, ComponentRef, Ref } from 'react';
2
2
  import { MenuProps, MenuTriggerProps, MenuContentProps, MenuItemProps, MenuCheckboxItemProps, MenuRadioItemProps, MenuLabelProps, MenuSeparatorProps, MenuSubTriggerProps, MenuSubContentProps, MenuGroupProps, MenuRadioGroupProps } from './types';
3
3
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
4
4
  declare function Menu({ ...props }: MenuProps): import("react/jsx-runtime").JSX.Element;
5
- declare const MenuTrigger: {
6
- ({ ref, ...props }: MenuTriggerProps): import("react/jsx-runtime").JSX.Element;
7
- displayName: string | undefined;
8
- };
5
+ declare const MenuTrigger: ({ ref, ...props }: MenuTriggerProps) => import("react/jsx-runtime").JSX.Element;
9
6
  declare function MenuGroup({ ...props }: MenuGroupProps): import("react/jsx-runtime").JSX.Element;
10
7
  declare function MenuPortal({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
11
8
  declare function MenuSub({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
12
9
  declare function MenuRadioGroup({ ...props }: MenuRadioGroupProps): import("react/jsx-runtime").JSX.Element;
13
- declare const MenuSubTrigger: {
14
- ({ ref, className, inset, children, ...props }: MenuSubTriggerProps): import("react/jsx-runtime").JSX.Element;
15
- displayName: string | undefined;
16
- };
17
- declare const MenuSubContent: {
18
- ({ ref, className, ...props }: MenuSubContentProps): import("react/jsx-runtime").JSX.Element;
19
- displayName: string | undefined;
20
- };
21
- declare const MenuContent: {
22
- ({ ref, className, sideOffset, align, ...props }: MenuContentProps): import("react/jsx-runtime").JSX.Element;
23
- displayName: string | undefined;
24
- };
25
- declare const MenuItem: {
26
- ({ ref, className, inset, disabled: disabledProp, ...props }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
27
- displayName: string | undefined;
28
- };
29
- declare const MenuCheckboxItem: {
30
- ({ ref, className, children, checked, disabled: disabledProp, ...props }: MenuCheckboxItemProps): import("react/jsx-runtime").JSX.Element;
31
- displayName: string | undefined;
32
- };
33
- declare const MenuRadioItem: {
34
- ({ ref, className, children, disabled: disabledProp, ...props }: MenuRadioItemProps): import("react/jsx-runtime").JSX.Element;
35
- displayName: string | undefined;
36
- };
37
- declare const MenuLabel: {
38
- ({ ref, className, inset, ...props }: MenuLabelProps & {
39
- ref?: Ref<ComponentRef<typeof DropdownMenuPrimitive.Label>>;
40
- }): import("react/jsx-runtime").JSX.Element;
41
- displayName: string | undefined;
42
- };
43
- declare const MenuSeparator: {
44
- ({ ref, className, ...props }: MenuSeparatorProps): import("react/jsx-runtime").JSX.Element;
45
- displayName: string;
46
- };
10
+ declare const MenuSubTrigger: ({ ref, className, inset, children, ...props }: MenuSubTriggerProps) => import("react/jsx-runtime").JSX.Element;
11
+ declare const MenuSubContent: ({ ref, className, ...props }: MenuSubContentProps) => import("react/jsx-runtime").JSX.Element;
12
+ declare const MenuContent: ({ ref, className, sideOffset, align, ...props }: MenuContentProps) => import("react/jsx-runtime").JSX.Element;
13
+ declare const MenuItem: ({ ref, className, inset, disabled: disabledProp, ...props }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
14
+ declare const MenuCheckboxItem: ({ ref, className, children, checked, disabled: disabledProp, ...props }: MenuCheckboxItemProps) => import("react/jsx-runtime").JSX.Element;
15
+ declare const MenuRadioItem: ({ ref, className, children, disabled: disabledProp, ...props }: MenuRadioItemProps) => import("react/jsx-runtime").JSX.Element;
16
+ declare const MenuLabel: ({ ref, className, inset, ...props }: MenuLabelProps & {
17
+ ref?: Ref<ComponentRef<typeof DropdownMenuPrimitive.Label>>;
18
+ }) => import("react/jsx-runtime").JSX.Element;
19
+ declare const MenuSeparator: ({ ref, className, ...props }: MenuSeparatorProps) => import("react/jsx-runtime").JSX.Element;
47
20
  export { Menu, MenuTrigger, MenuContent, MenuItem, MenuCheckboxItem, MenuRadioItem, MenuLabel, MenuSeparator, MenuGroup, MenuPortal, MenuSub, MenuSubContent, MenuSubTrigger, MenuRadioGroup, };
48
21
  //# sourceMappingURL=Menu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Menu/Menu.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAG1D,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,m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AAA,MAAM,aAAa,GAAI,gEAMpB,kBAAkB,4CAwBpB,CAAC;AAEF,QAAA,MAAM,SAAS,GAAI,qCAKhB,cAAc,GAAG;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC;CAC7D,4CAOA,CAAC;AAEF,QAAA,MAAM,aAAa,GAAI,8BAA8B,kBAAkB,4CAEtE,CAAC;AAEF,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,10 +1,10 @@
1
- import { jsx as a, jsxs as u } from "react/jsx-runtime";
2
- import { cn as o, useDisabledContext as c, DisabledProvider as p } from "../../../libs/utils-shared/dist/index.js";
3
- import * as t from "@radix-ui/react-dropdown-menu";
4
- import { Check as b } from "../../Symbols/Icons/Check.js";
1
+ import { jsx as t, jsxs as u } from "react/jsx-runtime";
2
+ import { cn as o, useDisabledContext as c, DisabledProvider as b } from "../../../libs/utils-shared/dist/index.js";
3
+ import * as n from "@radix-ui/react-dropdown-menu";
4
+ import { Check as p } from "../../Symbols/Icons/Check.js";
5
5
  import { Divider as g } from "../Divider/Divider.js";
6
- import { ChevronRight as h } from "../../Symbols/Icons/ChevronRight.js";
7
- const N = o(
6
+ import { ChevronRight as f } from "../../Symbols/Icons/ChevronRight.js";
7
+ const h = o(
8
8
  "z-menu min-w-160 overflow-hidden rounded-sm bg-muted p-8",
9
9
  "shadow-sm",
10
10
  "data-[state=open]:animate-fade-in",
@@ -17,198 +17,182 @@ const N = o(
17
17
  "focus:bg-base-transparent-hover",
18
18
  "active:bg-base-transparent-pressed",
19
19
  "data-disabled:pointer-events-none data-disabled:text-disabled"
20
- ), y = o("px-8 py-4 body-3-semi-bold text-muted"), f = o(
20
+ ), x = o("px-8 py-4 body-3-semi-bold text-muted"), M = o(
21
21
  l,
22
22
  "data-[state=open]:bg-base-transparent-hover"
23
23
  );
24
- function G({ ...e }) {
25
- return /* @__PURE__ */ a(t.Root, { "data-slot": "menu", ...e });
24
+ function y({ ...e }) {
25
+ return /* @__PURE__ */ t(n.Root, { "data-slot": "menu", ...e });
26
26
  }
27
- const x = ({ ref: e, ...s }) => /* @__PURE__ */ a(
28
- t.Trigger,
27
+ const k = ({ ref: e, ...a }) => /* @__PURE__ */ t(
28
+ n.Trigger,
29
29
  {
30
30
  ref: e,
31
31
  "data-slot": "menu-trigger",
32
- ...s
32
+ ...a
33
33
  }
34
34
  );
35
- x.displayName = t.Trigger.displayName;
36
- function L({ ...e }) {
37
- return /* @__PURE__ */ a(t.Group, { "data-slot": "menu-group", ...e });
35
+ function R({ ...e }) {
36
+ return /* @__PURE__ */ t(n.Group, { "data-slot": "menu-group", ...e });
38
37
  }
39
- function W({
38
+ function z({
40
39
  ...e
41
40
  }) {
42
- return /* @__PURE__ */ a(t.Portal, { ...e });
41
+ return /* @__PURE__ */ t(n.Portal, { ...e });
43
42
  }
44
- function q({
43
+ function P({
45
44
  ...e
46
45
  }) {
47
- return /* @__PURE__ */ a(t.Sub, { ...e });
46
+ return /* @__PURE__ */ t(n.Sub, { ...e });
48
47
  }
49
- function A({ ...e }) {
50
- return /* @__PURE__ */ a(t.RadioGroup, { "data-slot": "menu-radio-group", ...e });
48
+ function w({ ...e }) {
49
+ return /* @__PURE__ */ t(n.RadioGroup, { "data-slot": "menu-radio-group", ...e });
51
50
  }
52
- const M = ({
51
+ const T = ({
53
52
  ref: e,
54
- className: s,
55
- inset: n,
56
- children: i,
53
+ className: a,
54
+ inset: s,
55
+ children: r,
57
56
  ...d
58
57
  }) => /* @__PURE__ */ u(
59
- t.SubTrigger,
58
+ n.SubTrigger,
60
59
  {
61
60
  ref: e,
62
61
  "data-slot": "menu-sub-trigger",
63
- className: o(f, n && "pl-32", s),
62
+ className: o(M, s && "pl-32", a),
64
63
  ...d,
65
64
  children: [
66
- i,
67
- /* @__PURE__ */ a(h, { size: 20, className: "ml-auto text-muted" })
65
+ r,
66
+ /* @__PURE__ */ t(f, { size: 20, className: "ml-auto text-muted" })
68
67
  ]
69
68
  }
70
- );
71
- M.displayName = t.SubTrigger.displayName;
72
- const I = ({ ref: e, className: s, ...n }) => /* @__PURE__ */ a(
73
- t.SubContent,
69
+ ), j = ({ ref: e, className: a, ...s }) => /* @__PURE__ */ t(
70
+ n.SubContent,
74
71
  {
75
72
  ref: e,
76
73
  "data-slot": "menu-sub-content",
77
- className: o(N, s),
78
- ...n
74
+ className: o(h, a),
75
+ ...s
79
76
  }
80
- );
81
- I.displayName = t.SubContent.displayName;
82
- const v = ({
77
+ ), D = ({
83
78
  ref: e,
84
- className: s,
85
- sideOffset: n = 4,
86
- align: i = "start",
79
+ className: a,
80
+ sideOffset: s = 4,
81
+ align: r = "start",
87
82
  ...d
88
- }) => /* @__PURE__ */ a(t.Portal, { children: /* @__PURE__ */ a(
89
- t.Content,
83
+ }) => /* @__PURE__ */ t(n.Portal, { children: /* @__PURE__ */ t(
84
+ n.Content,
90
85
  {
91
86
  ref: e,
92
87
  "data-slot": "menu-content",
93
- sideOffset: n,
94
- className: o(N, s),
95
- onClick: (r) => {
96
- r.stopPropagation(), d.onClick?.(r);
88
+ sideOffset: s,
89
+ className: o(h, a),
90
+ onClick: (i) => {
91
+ i.stopPropagation(), d.onClick?.(i);
97
92
  },
98
- align: i,
93
+ align: r,
99
94
  ...d
100
95
  }
101
- ) });
102
- v.displayName = t.Content.displayName;
103
- const C = ({
96
+ ) }), G = ({
104
97
  ref: e,
105
- className: s,
106
- inset: n,
107
- disabled: i,
98
+ className: a,
99
+ inset: s,
100
+ disabled: r,
108
101
  ...d
109
102
  }) => {
110
- const r = c({
103
+ const i = c({
111
104
  consumerName: "MenuItem",
112
- mergeWith: { disabled: i }
105
+ mergeWith: { disabled: r }
113
106
  });
114
- return /* @__PURE__ */ a(p, { value: { disabled: r }, children: /* @__PURE__ */ a(
115
- t.Item,
107
+ return /* @__PURE__ */ t(b, { value: { disabled: i }, children: /* @__PURE__ */ t(
108
+ n.Item,
116
109
  {
117
110
  ref: e,
118
111
  "data-slot": "menu-item",
119
- className: o(l, n && "pl-32", s),
120
- disabled: r,
112
+ className: o(l, s && "pl-32", a),
113
+ disabled: i,
121
114
  ...d
122
115
  }
123
116
  ) });
124
- };
125
- C.displayName = t.Item.displayName;
126
- const S = ({
117
+ }, W = ({
127
118
  ref: e,
128
- className: s,
129
- children: n,
130
- checked: i,
119
+ className: a,
120
+ children: s,
121
+ checked: r,
131
122
  disabled: d,
132
- ...r
123
+ ...i
133
124
  }) => {
134
125
  const m = c({
135
126
  consumerName: "MenuCheckboxItem",
136
127
  mergeWith: { disabled: d }
137
128
  });
138
- return /* @__PURE__ */ a(p, { value: { disabled: m }, children: /* @__PURE__ */ u(
139
- t.CheckboxItem,
129
+ return /* @__PURE__ */ t(b, { value: { disabled: m }, children: /* @__PURE__ */ u(
130
+ n.CheckboxItem,
140
131
  {
141
132
  ref: e,
142
133
  "data-slot": "menu-checkbox-item",
143
- className: o(l, s),
144
- checked: i,
134
+ className: o(l, a),
135
+ checked: r,
145
136
  disabled: m,
146
- ...r,
137
+ ...i,
147
138
  children: [
148
- n,
149
- /* @__PURE__ */ a("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ a(t.ItemIndicator, { children: /* @__PURE__ */ a(b, { disabled: m, size: 24, className: "text-active" }) }) })
139
+ s,
140
+ /* @__PURE__ */ t("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(p, { disabled: m, size: 24, className: "text-active" }) }) })
150
141
  ]
151
142
  }
152
143
  ) });
153
- };
154
- S.displayName = t.CheckboxItem.displayName;
155
- const k = ({
144
+ }, L = ({
156
145
  ref: e,
157
- className: s,
158
- children: n,
159
- disabled: i,
146
+ className: a,
147
+ children: s,
148
+ disabled: r,
160
149
  ...d
161
150
  }) => {
162
- const r = c({
151
+ const i = c({
163
152
  consumerName: "MenuRadioItem",
164
- mergeWith: { disabled: i }
153
+ mergeWith: { disabled: r }
165
154
  });
166
- return /* @__PURE__ */ a(p, { value: { disabled: r }, children: /* @__PURE__ */ u(
167
- t.RadioItem,
155
+ return /* @__PURE__ */ t(b, { value: { disabled: i }, children: /* @__PURE__ */ u(
156
+ n.RadioItem,
168
157
  {
169
158
  ref: e,
170
159
  "data-slot": "menu-radio-item",
171
- disabled: r,
172
- className: o(l, s),
160
+ disabled: i,
161
+ className: o(l, a),
173
162
  ...d,
174
163
  children: [
175
- n,
176
- /* @__PURE__ */ a("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ a(t.ItemIndicator, { children: /* @__PURE__ */ a(b, { disabled: r, size: 24, className: "text-active" }) }) })
164
+ s,
165
+ /* @__PURE__ */ t("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(p, { disabled: i, size: 24, className: "text-active" }) }) })
177
166
  ]
178
167
  }
179
168
  ) });
180
- };
181
- k.displayName = t.RadioItem.displayName;
182
- const R = ({
169
+ }, q = ({
183
170
  ref: e,
184
- className: s,
185
- inset: n,
186
- ...i
187
- }) => /* @__PURE__ */ a(
188
- t.Label,
171
+ className: a,
172
+ inset: s,
173
+ ...r
174
+ }) => /* @__PURE__ */ t(
175
+ n.Label,
189
176
  {
190
177
  ref: e,
191
178
  "data-slot": "menu-label",
192
- className: o(y, n && "pl-32", s),
193
- ...i
179
+ className: o(x, s && "pl-32", a),
180
+ ...r
194
181
  }
195
- );
196
- R.displayName = t.Label.displayName;
197
- const T = ({ ref: e, className: s, ...n }) => /* @__PURE__ */ a(g, { ref: e, className: o("mx-8 my-4 w-auto", s), ...n });
198
- T.displayName = "MenuSeparator";
182
+ ), A = ({ ref: e, className: a, ...s }) => /* @__PURE__ */ t(g, { ref: e, className: o("mx-8 my-4 w-auto", a), ...s });
199
183
  export {
200
- G as Menu,
201
- S as MenuCheckboxItem,
202
- v as MenuContent,
203
- L as MenuGroup,
204
- C as MenuItem,
205
- R as MenuLabel,
206
- W as MenuPortal,
207
- A as MenuRadioGroup,
208
- k as MenuRadioItem,
209
- T as MenuSeparator,
210
- q as MenuSub,
211
- I as MenuSubContent,
212
- M as MenuSubTrigger,
213
- x as MenuTrigger
184
+ y as Menu,
185
+ W as MenuCheckboxItem,
186
+ D as MenuContent,
187
+ R as MenuGroup,
188
+ G as MenuItem,
189
+ q as MenuLabel,
190
+ z as MenuPortal,
191
+ w as MenuRadioGroup,
192
+ L as MenuRadioItem,
193
+ A as MenuSeparator,
194
+ P as MenuSub,
195
+ j as MenuSubContent,
196
+ T as MenuSubTrigger,
197
+ k as MenuTrigger
214
198
  };
@@ -5,8 +5,5 @@ import { CoinCapsuleProps } from './types';
5
5
  * This component is not exported publicly. Use NavBarCoinCapsule instead for NavBar usage.
6
6
  * Kept as a separate component for potential future extraction as a standalone component.
7
7
  */
8
- export declare const CoinCapsule: {
9
- ({ ref, ticker, icon, className, }: CoinCapsuleProps): import("react/jsx-runtime").JSX.Element;
10
- displayName: string;
11
- };
8
+ export declare const CoinCapsule: ({ ref, ticker, icon, className, }: CoinCapsuleProps) => import("react/jsx-runtime").JSX.Element;
12
9
  //# sourceMappingURL=CoinCapsule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CoinCapsule.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/NavBar/CoinCapsule.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,WAAW;wCAKrB,gBAAgB;;CAgBlB,CAAC"}
1
+ {"version":3,"file":"CoinCapsule.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/NavBar/CoinCapsule.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,mCAKzB,gBAAgB,4CAgBlB,CAAC"}