@ledgerhq/lumen-ui-react 0.0.65 → 0.0.67

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 (68) hide show
  1. package/dist/index.js +66 -59
  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/Subheader/Subheader.d.ts +60 -24
  15. package/dist/lib/Components/Subheader/Subheader.d.ts.map +1 -1
  16. package/dist/lib/Components/Subheader/Subheader.js +66 -36
  17. package/dist/lib/Components/Subheader/index.d.ts +1 -1
  18. package/dist/lib/Components/Subheader/index.d.ts.map +1 -1
  19. package/dist/lib/Components/Subheader/types.d.ts +52 -6
  20. package/dist/lib/Components/Subheader/types.d.ts.map +1 -1
  21. package/dist/lib/Components/ThemeProvider/ThemeProvider.js +2 -2
  22. package/dist/lib/Components/Tile/Tile.d.ts +4 -4
  23. package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
  24. package/dist/lib/Components/Tile/Tile.js +104 -171
  25. package/dist/lib/Components/Tile/types.d.ts +6 -1
  26. package/dist/lib/Components/Tile/types.d.ts.map +1 -1
  27. package/dist/lib/Symbols/Icons/Asterisk.d.ts +26 -0
  28. package/dist/lib/Symbols/Icons/Asterisk.d.ts.map +1 -0
  29. package/dist/lib/Symbols/Icons/Asterisk.js +28 -0
  30. package/dist/lib/Symbols/Icons/Bell.js +1 -1
  31. package/dist/lib/Symbols/Icons/BellFill.d.ts +26 -0
  32. package/dist/lib/Symbols/Icons/BellFill.d.ts.map +1 -0
  33. package/dist/lib/Symbols/Icons/BellFill.js +25 -0
  34. package/dist/lib/Symbols/Icons/BellNotification.js +1 -1
  35. package/dist/lib/Symbols/Icons/CreditCardFill.d.ts +26 -0
  36. package/dist/lib/Symbols/Icons/CreditCardFill.d.ts.map +1 -0
  37. package/dist/lib/Symbols/Icons/CreditCardFill.js +25 -0
  38. package/dist/lib/Symbols/Icons/Delete.js +1 -1
  39. package/dist/lib/Symbols/Icons/Exchange.js +1 -1
  40. package/dist/lib/Symbols/Icons/ExchangeFill.d.ts +26 -0
  41. package/dist/lib/Symbols/Icons/ExchangeFill.d.ts.map +1 -0
  42. package/dist/lib/Symbols/Icons/ExchangeFill.js +41 -0
  43. package/dist/lib/Symbols/Icons/ExpandLeft.d.ts +26 -0
  44. package/dist/lib/Symbols/Icons/ExpandLeft.d.ts.map +1 -0
  45. package/dist/lib/Symbols/Icons/ExpandLeft.js +28 -0
  46. package/dist/lib/Symbols/Icons/ExpandRight.d.ts +26 -0
  47. package/dist/lib/Symbols/Icons/ExpandRight.d.ts.map +1 -0
  48. package/dist/lib/Symbols/Icons/ExpandRight.js +28 -0
  49. package/dist/lib/Symbols/Icons/Home.js +1 -1
  50. package/dist/lib/Symbols/Icons/HomeFill.d.ts +26 -0
  51. package/dist/lib/Symbols/Icons/HomeFill.d.ts.map +1 -0
  52. package/dist/lib/Symbols/Icons/HomeFill.js +25 -0
  53. package/dist/lib/Symbols/Icons/LifeRingFill.d.ts +26 -0
  54. package/dist/lib/Symbols/Icons/LifeRingFill.d.ts.map +1 -0
  55. package/dist/lib/Symbols/Icons/LifeRingFill.js +25 -0
  56. package/dist/lib/Symbols/Icons/P2p.js +1 -1
  57. package/dist/lib/Symbols/Icons/Signature.js +1 -1
  58. package/dist/lib/Symbols/Icons/Spacerocket.js +1 -1
  59. package/dist/lib/Symbols/Icons/Tools.js +1 -1
  60. package/dist/lib/Symbols/Icons/TransferVertical.js +1 -1
  61. package/dist/lib/Symbols/Icons/Trash.js +1 -1
  62. package/dist/lib/Symbols/Icons/WarningFill.js +1 -1
  63. package/dist/lib/Symbols/index.d.ts +8 -0
  64. package/dist/lib/Symbols/index.d.ts.map +1 -1
  65. package/dist/lib/Symbols/index.js +474 -458
  66. package/dist/libs/utils-shared/dist/index.js +44 -52
  67. package/dist/package.json +1 -1
  68. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,51 +1,51 @@
1
- import { Languages as o } from "./i18n/languages.js";
1
+ import { Languages as t } from "./i18n/languages.js";
2
2
  import { AddressInput as n } from "./lib/Components/AddressInput/AddressInput.js";
3
3
  import { AmountInput as p } from "./lib/Components/AmountInput/AmountInput.js";
4
4
  import { Banner as u } from "./lib/Components/Banner/Banner.js";
5
5
  import { BaseInput as l } from "./lib/Components/BaseInput/BaseInput.js";
6
6
  import { Button as f } from "./lib/Components/Button/Button.js";
7
- import { BaseButton as I } from "./lib/Components/Button/BaseButton.js";
8
- import { CardButton as g } from "./lib/Components/CardButton/CardButton.js";
9
- import { Checkbox as s } from "./lib/Components/Checkbox/Checkbox.js";
10
- import { Dialog as M, DialogBody as d, DialogContent as C, DialogFooter as D, DialogTrigger as b } from "./lib/Components/Dialog/Dialog.js";
11
- import { DialogHeader as h } from "./lib/Components/Dialog/DialogHeader/DialogHeader.js";
7
+ import { BaseButton as T } from "./lib/Components/Button/BaseButton.js";
8
+ import { CardButton as c } from "./lib/Components/CardButton/CardButton.js";
9
+ import { Checkbox as d } from "./lib/Components/Checkbox/Checkbox.js";
10
+ import { Dialog as b, DialogBody as h, DialogContent as M, DialogFooter as L, DialogTrigger as C } from "./lib/Components/Dialog/Dialog.js";
11
+ import { DialogHeader as B } from "./lib/Components/Dialog/DialogHeader/DialogHeader.js";
12
12
  import { Divider as v } from "./lib/Components/Divider/Divider.js";
13
- import { IconButton as G } from "./lib/Components/IconButton/IconButton.js";
14
- import { InteractiveIcon as y } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
15
- import { Link as w } from "./lib/Components/Link/Link.js";
13
+ import { IconButton as w } from "./lib/Components/IconButton/IconButton.js";
14
+ import { InteractiveIcon as P } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
15
+ import { Link as y } from "./lib/Components/Link/Link.js";
16
16
  import { ListItem as H, ListItemContent as j, ListItemDescription as q, ListItemIcon as z, ListItemLeading as E, ListItemSpot as J, ListItemTitle as K, ListItemTrailing as N, ListItemTruncate as O } from "./lib/Components/ListItem/ListItem.js";
17
- import { Menu as U, MenuCheckboxItem as V, MenuContent as W, MenuGroup as X, MenuItem as Y, MenuLabel as Z, MenuPortal as _, MenuRadioGroup as $, MenuRadioItem as ee, MenuSeparator as te, MenuSub as oe, MenuSubContent as re, MenuSubTrigger as ne, MenuTrigger as ie } from "./lib/Components/Menu/Menu.js";
17
+ import { Menu as U, MenuCheckboxItem as V, MenuContent as W, MenuGroup as X, MenuItem as Y, MenuLabel as Z, MenuPortal as _, MenuRadioGroup as $, MenuRadioItem as ee, MenuSeparator as oe, MenuSub as te, MenuSubContent as re, MenuSubTrigger as ne, MenuTrigger as ie } from "./lib/Components/Menu/Menu.js";
18
18
  import { SearchInput as me } from "./lib/Components/SearchInput/SearchInput.js";
19
- import { Select as xe, SelectContent as le, SelectGroup as ae, SelectItem as fe, SelectItemText as Te, SelectLabel as Ie, SelectSeparator as ce, SelectTrigger as ge } from "./lib/Components/Select/Select.js";
20
- import { Skeleton as se } from "./lib/Components/Skeleton/Skeleton.js";
21
- import { Spot as Me } from "./lib/Components/Spot/Spot.js";
22
- import { Subheader as Ce } from "./lib/Components/Subheader/Subheader.js";
23
- import { Switch as be } from "./lib/Components/Switch/Switch.js";
24
- import { Tag as he } from "./lib/Components/Tag/Tag.js";
25
- import { TextInput as ve } from "./lib/Components/TextInput/TextInput.js";
26
- import { Tile as Ge, TileContent as Pe, TileDescription as ye, TileSecondaryAction as Re, TileSpot as we, TileTitle as Fe } from "./lib/Components/Tile/Tile.js";
27
- import { Tooltip as je, TooltipContent as qe, TooltipProvider as ze, TooltipTrigger as Ee } from "./lib/Components/Tooltip/Tooltip.js";
28
- import { ThemeProvider as Ke, useTheme as Ne } from "./lib/Components/ThemeProvider/ThemeProvider.js";
19
+ import { Select as ae, SelectContent as le, SelectGroup as xe, SelectItem as fe, SelectItemText as Se, SelectLabel as Te, SelectSeparator as Ie, SelectTrigger as ce } from "./lib/Components/Select/Select.js";
20
+ import { Skeleton as de } from "./lib/Components/Skeleton/Skeleton.js";
21
+ import { Spot as be } from "./lib/Components/Spot/Spot.js";
22
+ import { Subheader as Me, SubheaderAction as Le, SubheaderCount as Ce, SubheaderDescription as De, SubheaderInfo as Be, SubheaderRow as ke, SubheaderShowMore as ve, SubheaderTitle as Ae } from "./lib/Components/Subheader/Subheader.js";
23
+ import { Switch as Ge } from "./lib/Components/Switch/Switch.js";
24
+ import { Tag as Re } from "./lib/Components/Tag/Tag.js";
25
+ import { TextInput as Fe } from "./lib/Components/TextInput/TextInput.js";
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";
29
29
  export {
30
30
  n as AddressInput,
31
31
  p as AmountInput,
32
32
  u as Banner,
33
- I as BaseButton,
33
+ T as BaseButton,
34
34
  l as BaseInput,
35
35
  f as Button,
36
- g as CardButton,
37
- s as Checkbox,
38
- M as Dialog,
39
- d as DialogBody,
40
- C as DialogContent,
41
- D as DialogFooter,
42
- h as DialogHeader,
43
- b as DialogTrigger,
36
+ c as CardButton,
37
+ d as Checkbox,
38
+ b as Dialog,
39
+ h as DialogBody,
40
+ M as DialogContent,
41
+ L as DialogFooter,
42
+ B as DialogHeader,
43
+ C as DialogTrigger,
44
44
  v as Divider,
45
- G as IconButton,
46
- y as InteractiveIcon,
47
- o as Languages,
48
- w as Link,
45
+ w as IconButton,
46
+ P as InteractiveIcon,
47
+ t as Languages,
48
+ y as Link,
49
49
  H as ListItem,
50
50
  j as ListItemContent,
51
51
  q as ListItemDescription,
@@ -64,36 +64,43 @@ export {
64
64
  _ as MenuPortal,
65
65
  $ as MenuRadioGroup,
66
66
  ee as MenuRadioItem,
67
- te as MenuSeparator,
68
- oe as MenuSub,
67
+ oe as MenuSeparator,
68
+ te as MenuSub,
69
69
  re as MenuSubContent,
70
70
  ne as MenuSubTrigger,
71
71
  ie as MenuTrigger,
72
72
  me as SearchInput,
73
- xe as Select,
73
+ ae as Select,
74
74
  le as SelectContent,
75
- ae as SelectGroup,
75
+ xe as SelectGroup,
76
76
  fe as SelectItem,
77
- Te as SelectItemText,
78
- Ie as SelectLabel,
79
- ce as SelectSeparator,
80
- ge as SelectTrigger,
81
- se as Skeleton,
82
- Me as Spot,
83
- Ce as Subheader,
84
- be as Switch,
85
- he as Tag,
86
- ve as TextInput,
87
- Ke as ThemeProvider,
88
- Ge as Tile,
89
- Pe as TileContent,
90
- ye as TileDescription,
91
- Re as TileSecondaryAction,
92
- we as TileSpot,
93
- Fe as TileTitle,
94
- je as Tooltip,
95
- qe as TooltipContent,
96
- ze as TooltipProvider,
97
- Ee as TooltipTrigger,
98
- Ne as useTheme
77
+ Se as SelectItemText,
78
+ Te as SelectLabel,
79
+ Ie as SelectSeparator,
80
+ ce as SelectTrigger,
81
+ de as Skeleton,
82
+ be as Spot,
83
+ Me as Subheader,
84
+ Le as SubheaderAction,
85
+ Ce as SubheaderCount,
86
+ De as SubheaderDescription,
87
+ Be as SubheaderInfo,
88
+ ke as SubheaderRow,
89
+ ve as SubheaderShowMore,
90
+ Ae as SubheaderTitle,
91
+ Ge as Switch,
92
+ Re as Tag,
93
+ Fe as TextInput,
94
+ Xe as ThemeProvider,
95
+ je as Tile,
96
+ qe as TileContent,
97
+ ze as TileDescription,
98
+ Ee as TileSecondaryAction,
99
+ Je as TileSpot,
100
+ Ke as TileTitle,
101
+ Oe as Tooltip,
102
+ Qe as TooltipContent,
103
+ Ue as TooltipProvider,
104
+ Ve as TooltipTrigger,
105
+ Ye as useTheme
99
106
  };
@@ -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 @@
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;;;;;;;;;;;;;;;;;;;;;;;;;;qIAcf,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
+ {"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"}