@ledgerhq/lumen-ui-react 0.1.60 → 0.1.62

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 (89) hide show
  1. package/dist/index.js +150 -132
  2. package/dist/lib/Components/core/AmountInput/AmountInput.d.ts +1 -1
  3. package/dist/lib/Components/core/AmountInput/AmountInput.d.ts.map +1 -1
  4. package/dist/lib/Components/core/AmountInput/AmountInput.js +53 -51
  5. package/dist/lib/Components/core/AmountInput/useAmountInputValue/useAmountInputValue.js +3 -3
  6. package/dist/lib/Components/core/Avatar/resolveAvatarColor.js +2 -2
  7. package/dist/lib/Components/core/AvatarButton/AvatarButton.js +6 -6
  8. package/dist/lib/Components/core/Banner/Banner.js +8 -8
  9. package/dist/lib/Components/core/Button/Button.js +10 -10
  10. package/dist/lib/Components/core/Card/Card.js +6 -6
  11. package/dist/lib/Components/core/CardButton/CardButton.d.ts +2 -0
  12. package/dist/lib/Components/core/CardButton/CardButton.d.ts.map +1 -1
  13. package/dist/lib/Components/core/CardButton/CardButton.js +4 -4
  14. package/dist/lib/Components/core/DataTable/DataTable.js +7 -7
  15. package/dist/lib/Components/core/Divider/Divider.js +8 -8
  16. package/dist/lib/Components/core/DotCount/DotCount.js +3 -3
  17. package/dist/lib/Components/core/DotIcon/DotIcon.js +9 -9
  18. package/dist/lib/Components/core/DotSymbol/DotSymbol.js +16 -16
  19. package/dist/lib/Components/core/Link/Link.d.ts +1 -1
  20. package/dist/lib/Components/core/Link/Link.d.ts.map +1 -1
  21. package/dist/lib/Components/core/Link/Link.js +21 -20
  22. package/dist/lib/Components/core/Link/types.d.ts +1 -1
  23. package/dist/lib/Components/core/Link/types.d.ts.map +1 -1
  24. package/dist/lib/Components/core/ListItem/ListItem.js +4 -4
  25. package/dist/lib/Components/core/MediaBanner/MediaBanner.js +19 -19
  26. package/dist/lib/Components/core/MediaButton/MediaButton.js +2 -2
  27. package/dist/lib/Components/core/Menu/Menu.d.ts +3 -2
  28. package/dist/lib/Components/core/Menu/Menu.d.ts.map +1 -1
  29. package/dist/lib/Components/core/Menu/Menu.js +157 -108
  30. package/dist/lib/Components/core/Menu/types.d.ts +31 -0
  31. package/dist/lib/Components/core/Menu/types.d.ts.map +1 -1
  32. package/dist/lib/Components/core/NavBar/CoinCapsule.js +8 -8
  33. package/dist/lib/Components/core/Pagination/Pagination.js +14 -14
  34. package/dist/lib/Components/core/Popover/Popover.js +6 -6
  35. package/dist/lib/Components/core/SearchInput/SearchInput.js +5 -5
  36. package/dist/lib/Components/core/SegmentedControl/SegmentedControl.js +19 -19
  37. package/dist/lib/Components/core/Select/Select.js +8 -8
  38. package/dist/lib/Components/core/SideBar/SideBar.js +14 -14
  39. package/dist/lib/Components/core/Spinner/Spinner.js +4 -4
  40. package/dist/lib/Components/core/Spot/Spot.js +9 -9
  41. package/dist/lib/Components/core/Stepper/Stepper.d.ts +4 -3
  42. package/dist/lib/Components/core/Stepper/Stepper.d.ts.map +1 -1
  43. package/dist/lib/Components/core/Stepper/Stepper.js +137 -65
  44. package/dist/lib/Components/core/Stepper/types.d.ts +12 -2
  45. package/dist/lib/Components/core/Stepper/types.d.ts.map +1 -1
  46. package/dist/lib/Components/core/Switch/Switch.js +5 -5
  47. package/dist/lib/Components/core/Table/Table.js +9 -9
  48. package/dist/lib/Components/core/TileButton/TileButton.js +8 -8
  49. package/dist/lib/Components/core/Timeline/Timeline.d.ts +54 -0
  50. package/dist/lib/Components/core/Timeline/Timeline.d.ts.map +1 -0
  51. package/dist/lib/Components/core/Timeline/Timeline.js +228 -0
  52. package/dist/lib/Components/core/Timeline/index.d.ts +3 -0
  53. package/dist/lib/Components/core/Timeline/index.d.ts.map +1 -0
  54. package/dist/lib/Components/core/Timeline/types.d.ts +148 -0
  55. package/dist/lib/Components/core/Timeline/types.d.ts.map +1 -0
  56. package/dist/lib/Components/core/Toast/Toast.d.ts +25 -0
  57. package/dist/lib/Components/core/Toast/Toast.d.ts.map +1 -0
  58. package/dist/lib/Components/core/Toast/Toast.js +68 -0
  59. package/dist/lib/Components/core/Toast/Toaster.d.ts +27 -0
  60. package/dist/lib/Components/core/Toast/Toaster.d.ts.map +1 -0
  61. package/dist/lib/Components/core/Toast/Toaster.js +92 -0
  62. package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts +15 -0
  63. package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts.map +1 -0
  64. package/dist/lib/Components/core/Toast/hooks/useToastCollapse.js +15 -0
  65. package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts +24 -0
  66. package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts.map +1 -0
  67. package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.js +27 -0
  68. package/dist/lib/Components/core/Toast/index.d.ts +5 -0
  69. package/dist/lib/Components/core/Toast/index.d.ts.map +1 -0
  70. package/dist/lib/Components/core/Toast/styles.d.ts +20 -0
  71. package/dist/lib/Components/core/Toast/styles.d.ts.map +1 -0
  72. package/dist/lib/Components/core/Toast/styles.js +77 -0
  73. package/dist/lib/Components/core/Toast/types.d.ts +81 -0
  74. package/dist/lib/Components/core/Toast/types.d.ts.map +1 -0
  75. package/dist/lib/Components/core/Trend/Trend.js +2 -2
  76. package/dist/lib/Components/core/index.d.ts +2 -0
  77. package/dist/lib/Components/core/index.d.ts.map +1 -1
  78. package/dist/lib/Components/internal/BaseButton/BaseButton.js +2 -2
  79. package/dist/lib/Components/internal/BaseInput/BaseInput.js +9 -9
  80. package/dist/lib/Components/internal/BaseInput/BaseInputMultiline.js +12 -12
  81. package/dist/lib/Components/internal/BaseTag/BaseTag.js +8 -8
  82. package/dist/lib/Components/symbols/Icon/Icon.js +4 -4
  83. package/dist/lib/Components/symbols/Icon/createIcon.js +8 -8
  84. package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +6 -6
  85. package/dist/lib/Components/visualization/DonutChart/donutSizeContext.js +2 -2
  86. package/dist/lib/Components/visualization/Legend/Legend.js +8 -8
  87. package/dist/libs/utils-shared/dist/index.js +306 -141
  88. package/dist/package.json +3 -3
  89. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { jsxs as a, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
2
  import { cn as t } from "../../../../libs/utils-shared/dist/index.js";
3
3
  import { cva as b } from "class-variance-authority";
4
4
  import { useCommonTranslation as g } from "../../../../i18n/useCommonTranslation.js";
@@ -27,7 +27,7 @@ const k = {
27
27
  }, W = ({
28
28
  ref: c,
29
29
  appearance: s = "info",
30
- title: e,
30
+ title: a,
31
31
  description: n,
32
32
  primaryAction: o,
33
33
  secondaryAction: l,
@@ -37,7 +37,7 @@ const k = {
37
37
  ...f
38
38
  }) => {
39
39
  const { t: x } = g(), d = k[s];
40
- return /* @__PURE__ */ a(
40
+ return /* @__PURE__ */ e(
41
41
  "div",
42
42
  {
43
43
  ref: c,
@@ -45,12 +45,12 @@ const k = {
45
45
  ...f,
46
46
  children: [
47
47
  /* @__PURE__ */ r("div", { className: "flex shrink-0 items-start py-4", children: d }),
48
- /* @__PURE__ */ a("div", { className: "mr-8 flex flex-1 flex-col gap-8 py-4", children: [
49
- /* @__PURE__ */ a("div", { className: "flex flex-col gap-4", children: [
50
- e && /* @__PURE__ */ r("h3", { className: "line-clamp-2 body-1-semi-bold", children: e }),
51
- n && /* @__PURE__ */ r("div", { className: t("line-clamp-5 body-2", !e && "mt-2"), children: n })
48
+ /* @__PURE__ */ e("div", { className: "mr-8 flex flex-1 flex-col gap-8 py-4", children: [
49
+ /* @__PURE__ */ e("div", { className: "flex flex-col gap-4", children: [
50
+ a && /* @__PURE__ */ r("h3", { className: "line-clamp-2 body-1-semi-bold", children: a }),
51
+ n && /* @__PURE__ */ r("div", { className: t("line-clamp-5 body-2", !a && "mt-2"), children: n })
52
52
  ] }),
53
- (o || l) && /* @__PURE__ */ a("div", { className: "flex flex-wrap gap-4", children: [
53
+ (o || l) && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-4", children: [
54
54
  o,
55
55
  l
56
56
  ] })
@@ -1,8 +1,8 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { cn as d } from "../../../../libs/utils-shared/dist/index.js";
3
- import { cva as e } from "class-variance-authority";
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { cn as n } from "../../../../libs/utils-shared/dist/index.js";
3
+ import { cva as d } from "class-variance-authority";
4
4
  import { BaseButton as b } from "../../internal/BaseButton/BaseButton.js";
5
- const l = e("", {
5
+ const l = d("", {
6
6
  variants: {
7
7
  size: {
8
8
  sm: "px-16 py-10 body-2-semi-bold",
@@ -17,22 +17,22 @@ const l = e("", {
17
17
  ref: t,
18
18
  className: m,
19
19
  loading: s,
20
- disabled: a,
21
- children: r,
20
+ disabled: r,
21
+ children: a,
22
22
  size: o,
23
23
  icon: i,
24
24
  ...p
25
- }) => /* @__PURE__ */ n(
25
+ }) => /* @__PURE__ */ e(
26
26
  b,
27
27
  {
28
28
  ref: t,
29
29
  size: o,
30
- disabled: a,
30
+ disabled: r,
31
31
  icon: i,
32
32
  loading: s,
33
- className: d(l({ size: o }), "gap-8", m),
33
+ className: n(l({ size: o }), "gap-8", m),
34
34
  ...p,
35
- children: r
35
+ children: a
36
36
  }
37
37
  );
38
38
  export {
@@ -184,7 +184,7 @@ const k = ({
184
184
  children: t
185
185
  }
186
186
  );
187
- }, I = ({
187
+ }, L = ({
188
188
  ref: r,
189
189
  children: t,
190
190
  className: a,
@@ -207,7 +207,7 @@ const k = ({
207
207
  children: t
208
208
  }
209
209
  );
210
- }, L = ({
210
+ }, I = ({
211
211
  ref: r,
212
212
  children: t,
213
213
  className: a,
@@ -322,7 +322,7 @@ const k = ({
322
322
  ) })
323
323
  }
324
324
  );
325
- }, G = ({
325
+ }, Z = ({
326
326
  ref: r,
327
327
  children: t,
328
328
  className: a,
@@ -340,10 +340,10 @@ export {
340
340
  P as Card,
341
341
  B as CardContent,
342
342
  M as CardContentDescription,
343
- I as CardContentRow,
344
- L as CardContentTitle,
343
+ L as CardContentRow,
344
+ I as CardContentTitle,
345
345
  U as CardFooter,
346
- G as CardFooterActions,
346
+ Z as CardFooterActions,
347
347
  T as CardHeader,
348
348
  z as CardLeading,
349
349
  S as CardTrailing,
@@ -4,6 +4,8 @@ import { CardButtonProps } from './types';
4
4
  *
5
5
  * It supports different appearances. takes full width by default. The chevron can be hidden if needed.
6
6
  *
7
+ * @deprecated Use Card instead.
8
+ *
7
9
  * @see {@link https://ldls.vercel.app/?path=/docs/react-cardbutton--docs Guidelines}
8
10
  *
9
11
  * @warning The `className` prop should only be used for layout adjustments like margins or positioning.
@@ -1 +1 @@
1
- {"version":3,"file":"CardButton.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/CardButton/CardButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAkB/C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,UAAU,GAAI,yGAUxB,eAAe,4CAqCjB,CAAC"}
1
+ {"version":3,"file":"CardButton.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/CardButton/CardButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAkB/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,UAAU,GAAI,yGAUxB,eAAe,4CAqCjB,CAAC"}
@@ -18,8 +18,8 @@ const h = f(
18
18
  ), w = ({
19
19
  ref: i,
20
20
  className: o,
21
- appearance: l,
22
- icon: d,
21
+ appearance: d,
22
+ icon: l,
23
23
  title: n,
24
24
  description: t,
25
25
  hideChevron: r,
@@ -29,14 +29,14 @@ const h = f(
29
29
  const c = m({
30
30
  consumerName: "CardButton",
31
31
  mergeWith: { disabled: b }
32
- }), s = d;
32
+ }), s = l;
33
33
  return /* @__PURE__ */ a(
34
34
  "button",
35
35
  {
36
36
  ref: i,
37
37
  className: p(
38
38
  h({
39
- appearance: l
39
+ appearance: d
40
40
  }),
41
41
  o
42
42
  ),
@@ -2,9 +2,9 @@ import { jsx as a, jsxs as d } from "react/jsx-runtime";
2
2
  import { createSafeContext as w, cn as R } from "../../../../libs/utils-shared/dist/index.js";
3
3
  import { flexRender as m } from "@tanstack/react-table";
4
4
  import { useCallback as x, Fragment as B } from "react";
5
- import { TableRoot as N, Table as k, TableLoadingRow as y, TableColGroup as H, TableCol as S, TableHeader as G, TableHeaderRow as v, TableHeaderCell as q, TableSortButton as I, TableBody as b, TableGroupHeaderRow as V, TableRow as F, TableCell as M } from "../Table/Table.js";
5
+ import { TableRoot as N, Table as k, TableLoadingRow as y, TableColGroup as H, TableCol as S, TableHeader as G, TableHeaderRow as v, TableHeaderCell as q, TableSortButton as I, TableBody as b, TableGroupHeaderRow as F, TableRow as L, TableCell as M } from "../Table/Table.js";
6
6
  import { SearchInput as P } from "../SearchInput/SearchInput.js";
7
- const [j, i] = w("DataTableContext"), Y = ({
7
+ const [V, i] = w("DataTableContext"), Y = ({
8
8
  table: l,
9
9
  appearance: n = "no-background",
10
10
  paginationMode: o = "none",
@@ -21,7 +21,7 @@ const [j, i] = w("DataTableContext"), Y = ({
21
21
  ref: C,
22
22
  ...f
23
23
  }) => /* @__PURE__ */ a(
24
- j,
24
+ V,
25
25
  {
26
26
  value: {
27
27
  hideHeader: T,
@@ -38,7 +38,7 @@ const [j, i] = w("DataTableContext"), Y = ({
38
38
  },
39
39
  children: /* @__PURE__ */ a("div", { ref: C, className: R("flex flex-col", h), ...f, children: D })
40
40
  }
41
- ), L = () => {
41
+ ), j = () => {
42
42
  const { table: l } = i({
43
43
  consumerName: "DataTableColGroup",
44
44
  contextRequired: !0
@@ -114,7 +114,7 @@ const [j, i] = w("DataTableContext"), Y = ({
114
114
  ...o,
115
115
  children: [
116
116
  /* @__PURE__ */ d(k, { children: [
117
- /* @__PURE__ */ a(L, {}),
117
+ /* @__PURE__ */ a(j, {}),
118
118
  !r && /* @__PURE__ */ a(z, {}),
119
119
  u ? /* @__PURE__ */ a(J, {}) : /* @__PURE__ */ a(A, {})
120
120
  ] }),
@@ -149,7 +149,7 @@ const [j, i] = w("DataTableContext"), Y = ({
149
149
  t
150
150
  );
151
151
  return /* @__PURE__ */ a(b, { ref: n, className: l, ...o, children: c.map((s) => /* @__PURE__ */ d(B, { children: [
152
- /* @__PURE__ */ a(V, { colSpan: s.rows[0].getVisibleCells().length, children: r ? r({ row: s.rows[0], count: s.count }) : s.key }),
152
+ /* @__PURE__ */ a(F, { colSpan: s.rows[0].getVisibleCells().length, children: r ? r({ row: s.rows[0], count: s.count }) : s.key }),
153
153
  s.rows.map((u) => /* @__PURE__ */ a(g, { row: u }, u.id))
154
154
  ] }, s.key)) });
155
155
  }, g = ({ row: l }) => {
@@ -158,7 +158,7 @@ const [j, i] = w("DataTableContext"), Y = ({
158
158
  contextRequired: !0
159
159
  }), e = !!n;
160
160
  return /* @__PURE__ */ a(
161
- F,
161
+ L,
162
162
  {
163
163
  ...o?.(l),
164
164
  clickable: e,
@@ -1,22 +1,22 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { cn as l } from "../../../../libs/utils-shared/dist/index.js";
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { cn as a } from "../../../../libs/utils-shared/dist/index.js";
3
3
  const d = ({
4
4
  ref: o,
5
- className: t,
5
+ className: e,
6
6
  orientation: r = "horizontal",
7
- ...e
8
- }) => /* @__PURE__ */ a(
7
+ ...t
8
+ }) => /* @__PURE__ */ l(
9
9
  "div",
10
10
  {
11
11
  ref: o,
12
12
  role: "separator",
13
13
  "aria-orientation": r,
14
- className: l(
14
+ className: a(
15
15
  "border-muted-subtle",
16
16
  r === "horizontal" ? "w-full border-t" : "h-full border-l",
17
- t
17
+ e
18
18
  ),
19
- ...e
19
+ ...t
20
20
  }
21
21
  );
22
22
  export {
@@ -45,7 +45,7 @@ const h = m(
45
45
  disabled: !1
46
46
  }
47
47
  });
48
- function y({
48
+ function C({
49
49
  value: e,
50
50
  size: t = "md",
51
51
  max: b = 99,
@@ -86,7 +86,7 @@ function y({
86
86
  }
87
87
  );
88
88
  }
89
- y.displayName = "DotCount";
89
+ C.displayName = "DotCount";
90
90
  export {
91
- y as DotCount
91
+ C as DotCount
92
92
  };
@@ -1,15 +1,15 @@
1
1
  import { jsx as e, jsxs as h } from "react/jsx-runtime";
2
2
  import { useDisabledContext as x, DisabledProvider as v, cn as i } from "../../../../libs/utils-shared/dist/index.js";
3
- import { cva as c } from "class-variance-authority";
3
+ import { cva as d } from "class-variance-authority";
4
4
  import { useMemo as z } from "react";
5
- const N = c("relative inline-flex w-fit", {
5
+ const N = d("relative inline-flex w-fit", {
6
6
  variants: {
7
7
  disabled: {
8
8
  true: "opacity-30",
9
9
  false: ""
10
10
  }
11
11
  }
12
- }), g = c(
12
+ }), g = d(
13
13
  "absolute z-10 box-content flex items-center justify-center overflow-hidden border-base-inverted",
14
14
  {
15
15
  variants: {
@@ -60,15 +60,15 @@ const N = c("relative inline-flex w-fit", {
60
60
  children: s,
61
61
  icon: t,
62
62
  appearance: o,
63
- pin: a = "bottom-end",
64
- size: r = 20,
65
- shape: d = "circle",
63
+ pin: r = "bottom-end",
64
+ size: a = 20,
65
+ shape: c = "circle",
66
66
  className: l,
67
67
  disabled: m = !1,
68
68
  ref: p,
69
69
  ...b
70
70
  }) => {
71
- const u = z(() => y(a), [a]), f = x({
71
+ const u = z(() => y(r), [r]), f = x({
72
72
  consumerName: "DotIcon",
73
73
  mergeWith: { disabled: m }
74
74
  });
@@ -83,9 +83,9 @@ const N = c("relative inline-flex w-fit", {
83
83
  /* @__PURE__ */ e(
84
84
  "div",
85
85
  {
86
- className: i(g({ size: r, shape: d, pin: a, appearance: o })),
86
+ className: i(g({ size: a, shape: c, pin: r, appearance: o })),
87
87
  style: u,
88
- children: /* @__PURE__ */ e(t, { size: D[r], className: "text-on-interactive" })
88
+ children: /* @__PURE__ */ e(t, { size: D[a], className: "text-on-interactive" })
89
89
  }
90
90
  )
91
91
  ]
@@ -47,7 +47,7 @@ const D = d("relative inline-flex w-fit", {
47
47
  { shape: "circle", className: "rounded-full" }
48
48
  ]
49
49
  }
50
- ), E = {
50
+ ), w = {
51
51
  8: -2,
52
52
  10: -2,
53
53
  12: -2,
@@ -55,18 +55,18 @@ const D = d("relative inline-flex w-fit", {
55
55
  20: -3,
56
56
  24: -3,
57
57
  32: -3
58
- }, V = {
58
+ }, E = {
59
59
  "top-start": ["top", "left"],
60
60
  "top-end": ["top", "right"],
61
61
  "bottom-start": ["bottom", "left"],
62
62
  "bottom-end": ["bottom", "right"]
63
- }, j = (o, t) => {
64
- const [r, s] = V[o], e = E[t];
65
- return { [r]: e, [s]: e };
66
- }, w = ({
67
- children: o,
68
- src: t,
69
- alt: r,
63
+ }, V = (r, o) => {
64
+ const [t, s] = E[r], e = w[o];
65
+ return { [t]: e, [s]: e };
66
+ }, j = ({
67
+ children: r,
68
+ src: o,
69
+ alt: t,
70
70
  pin: s = "bottom-end",
71
71
  size: e = 20,
72
72
  shape: n = "circle",
@@ -76,25 +76,25 @@ const D = d("relative inline-flex w-fit", {
76
76
  ref: p,
77
77
  ...u
78
78
  }) => {
79
- const b = g(() => j(s, e), [s, e]), [f, i] = q(!1), h = z({
79
+ const b = g(() => V(s, e), [s, e]), [f, i] = q(!1), h = z({
80
80
  consumerName: "DotSymbol",
81
81
  mergeWith: { disabled: m }
82
82
  });
83
83
  return y(() => {
84
84
  i(!1);
85
- }, [t]), /* @__PURE__ */ a(N, { value: { disabled: !1 }, children: /* @__PURE__ */ x(
85
+ }, [o]), /* @__PURE__ */ a(N, { value: { disabled: !1 }, children: /* @__PURE__ */ x(
86
86
  "div",
87
87
  {
88
88
  ref: p,
89
89
  className: v(D({ disabled: h, className: c })),
90
90
  ...u,
91
91
  children: [
92
- /* @__PURE__ */ a("div", { className: "inline-flex", children: o }),
92
+ /* @__PURE__ */ a("div", { className: "inline-flex", children: r }),
93
93
  /* @__PURE__ */ a("div", { className: S({ size: e, shape: n, pin: s }), style: b, children: !f && /* @__PURE__ */ a(
94
94
  "img",
95
95
  {
96
- alt: r,
97
- src: t,
96
+ alt: t,
97
+ src: o,
98
98
  loading: l,
99
99
  "aria-hidden": "true",
100
100
  onError: () => i(!0)
@@ -104,7 +104,7 @@ const D = d("relative inline-flex w-fit", {
104
104
  }
105
105
  ) });
106
106
  };
107
- w.displayName = "DotSymbol";
107
+ j.displayName = "DotSymbol";
108
108
  export {
109
- w as DotSymbol
109
+ j as DotSymbol
110
110
  };
@@ -1,6 +1,6 @@
1
1
  import { LinkProps } from './types';
2
2
  /**
3
- * A customizable link component that supports base and accent color appearances, optional underline, sizes, icons, and external link handling.
3
+ * A customizable link component that supports multiple color appearances, optional underline, sizes, icons, and external link handling.
4
4
  *
5
5
  * @see {@link https://ldls.vercel.app/?path=/docs/react-link--docs Guidelines}
6
6
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Link/Link.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAmCzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,IAAI,GAAI,wHAYlB,SAAS,4CAgDX,CAAC"}
1
+ {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Link/Link.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAoCzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,IAAI,GAAI,wHAYlB,SAAS,4CAgDX,CAAC"}
@@ -1,15 +1,16 @@
1
- import { jsx as e, jsxs as l, Fragment as c } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as c, Fragment as l } from "react/jsx-runtime";
2
2
  import { useDisabledContext as x, cn as h } from "../../../../libs/utils-shared/dist/index.js";
3
3
  import { Slot as g } from "@radix-ui/react-slot";
4
4
  import { cva as k } from "class-variance-authority";
5
- import { ExternalLink as z } from "../../symbols/icons/ExternalLink.js";
6
- const w = k(
5
+ import { ExternalLink as y } from "../../symbols/icons/ExternalLink.js";
6
+ const z = k(
7
7
  "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",
8
8
  {
9
9
  variants: {
10
10
  appearance: {
11
11
  base: "text-base hover:text-base-hover active:text-base-pressed",
12
12
  accent: "text-interactive hover:text-interactive-hover active:text-interactive-pressed",
13
+ gray: "text-muted hover:text-muted-hover active:text-muted-pressed",
13
14
  inherit: ""
14
15
  },
15
16
  size: {
@@ -33,48 +34,48 @@ const w = k(
33
34
  disabled: !1
34
35
  }
35
36
  }
36
- ), V = ({
37
+ ), M = ({
37
38
  ref: d,
38
39
  className: m,
39
- children: a,
40
- appearance: f,
40
+ children: r,
41
+ appearance: u,
41
42
  size: i = "inherit",
42
43
  underline: p = !0,
43
- icon: u,
44
+ icon: f,
44
45
  isExternal: n = !1,
45
46
  asChild: t = !1,
46
47
  disabled: b,
47
48
  ...v
48
49
  }) => {
49
- const s = x({
50
+ const a = x({
50
51
  consumerName: "Link",
51
52
  mergeWith: { disabled: b }
52
- }), r = i ? {
53
+ }), s = i ? {
53
54
  sm: 16,
54
55
  md: 20
55
- }[i] : 20, o = u;
56
+ }[i] : 20, o = f;
56
57
  return /* @__PURE__ */ e(
57
58
  t ? g : "a",
58
59
  {
59
60
  ref: d,
60
61
  className: h(
61
- w({
62
- appearance: f,
62
+ z({
63
+ appearance: u,
63
64
  size: i,
64
65
  underline: p,
65
- disabled: s
66
+ disabled: a
66
67
  }),
67
68
  m
68
69
  ),
69
- "aria-disabled": s || void 0,
70
+ "aria-disabled": a || void 0,
70
71
  target: n && !t ? "_blank" : void 0,
71
72
  rel: n && !t ? "noopener noreferrer" : void 0,
72
73
  ...v,
73
- children: t ? a : /* @__PURE__ */ l(c, { children: [
74
- o && /* @__PURE__ */ e(o, { size: r }),
75
- /* @__PURE__ */ e("span", { className: "min-w-0 truncate", children: a }),
76
- n && /* @__PURE__ */ l(c, { children: [
77
- /* @__PURE__ */ e(z, { size: r, "aria-hidden": "true" }),
74
+ children: t ? r : /* @__PURE__ */ c(l, { children: [
75
+ o && /* @__PURE__ */ e(o, { size: s }),
76
+ /* @__PURE__ */ e("span", { className: "min-w-0 truncate", children: r }),
77
+ n && /* @__PURE__ */ c(l, { children: [
78
+ /* @__PURE__ */ e(y, { size: s, "aria-hidden": "true" }),
78
79
  /* @__PURE__ */ e("span", { className: "sr-only", children: "(opens in a new tab)" })
79
80
  ] })
80
81
  ] })
@@ -82,5 +83,5 @@ const w = k(
82
83
  );
83
84
  };
84
85
  export {
85
- V as Link
86
+ M as Link
86
87
  };
@@ -5,7 +5,7 @@ export type LinkProps = {
5
5
  * The visual style of the link.
6
6
  * @default inherit
7
7
  */
8
- appearance?: 'base' | 'accent' | 'inherit';
8
+ appearance?: 'base' | 'accent' | 'gray' | 'inherit';
9
9
  /**
10
10
  * The size variant of the link.
11
11
  * @default inherit
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Link/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,MAAM,SAAS,GAAG;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC3C;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9D;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Link/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,MAAM,SAAS,GAAG;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;IACpD;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9D;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC"}
@@ -59,14 +59,14 @@ const [L, l] = b("ListItemTrailing", {
59
59
  className: r,
60
60
  disabled: n = !1,
61
61
  density: f = "expanded",
62
- priority: x = "end",
62
+ priority: v = "end",
63
63
  active: u = !1,
64
- ...v
64
+ ...x
65
65
  } = s, c = d({
66
66
  consumerName: "ListItem",
67
67
  mergeWith: { disabled: n }
68
68
  });
69
- return /* @__PURE__ */ a(p, { value: { disabled: c }, children: /* @__PURE__ */ a(N, { value: { priority: x }, children: /* @__PURE__ */ a(
69
+ return /* @__PURE__ */ a(p, { value: { disabled: c }, children: /* @__PURE__ */ a(N, { value: { priority: v }, children: /* @__PURE__ */ a(
70
70
  "div",
71
71
  {
72
72
  ref: t,
@@ -81,7 +81,7 @@ const [L, l] = b("ListItemTrailing", {
81
81
  }),
82
82
  r
83
83
  ),
84
- ...v,
84
+ ...x,
85
85
  children: i
86
86
  }
87
87
  ) }) });
@@ -1,8 +1,8 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import { cn as n, getButtonA11yProps as v } from "../../../../libs/utils-shared/dist/index.js";
3
3
  import { cva as b } from "class-variance-authority";
4
- import { useState as x, useEffect as g } from "react";
5
- import { useCommonTranslation as h } from "../../../../i18n/useCommonTranslation.js";
4
+ import { useState as g, useEffect as h } from "react";
5
+ import { useCommonTranslation as x } from "../../../../i18n/useCommonTranslation.js";
6
6
  import { Close as N } from "../../symbols/icons/Close.js";
7
7
  import { InteractiveIcon as w } from "../InteractiveIcon/InteractiveIcon.js";
8
8
  const y = b(
@@ -18,19 +18,19 @@ const y = b(
18
18
  }
19
19
  ), k = ({
20
20
  ref: r,
21
- imageUrl: t,
22
- onClose: a,
21
+ imageUrl: a,
22
+ onClose: t,
23
23
  closeAriaLabel: s,
24
24
  children: c,
25
25
  className: d,
26
26
  onClick: o,
27
27
  ...m
28
28
  }) => {
29
- const { t: u } = h(), [f, l] = x(!1);
30
- g(() => {
29
+ const { t: u } = x(), [f, l] = g(!1);
30
+ h(() => {
31
31
  l(!1);
32
- }, [t]);
33
- const p = t && !f;
32
+ }, [a]);
33
+ const p = a && !f;
34
34
  return /* @__PURE__ */ i("div", { className: n("relative w-full", d), children: [
35
35
  /* @__PURE__ */ i(
36
36
  "div",
@@ -45,7 +45,7 @@ const y = b(
45
45
  p && /* @__PURE__ */ e(
46
46
  "img",
47
47
  {
48
- src: t,
48
+ src: a,
49
49
  alt: "",
50
50
  "aria-hidden": !0,
51
51
  className: "absolute inset-0 size-full object-cover",
@@ -64,7 +64,7 @@ const y = b(
64
64
  ]
65
65
  }
66
66
  ),
67
- a && /* @__PURE__ */ e(
67
+ t && /* @__PURE__ */ e(
68
68
  w,
69
69
  {
70
70
  "data-testid": "media-banner-close-button",
@@ -74,36 +74,36 @@ const y = b(
74
74
  icon: N,
75
75
  size: 16,
76
76
  className: "absolute top-8 right-8",
77
- onClick: a,
77
+ onClick: t,
78
78
  "aria-label": s || u("components.banner.closeAriaLabel")
79
79
  }
80
80
  )
81
81
  ] });
82
82
  }, z = ({
83
83
  ref: r,
84
- children: t,
85
- className: a,
84
+ children: a,
85
+ className: t,
86
86
  ...s
87
87
  }) => /* @__PURE__ */ e(
88
88
  "div",
89
89
  {
90
90
  ref: r,
91
- className: n("line-clamp-1 body-2-semi-bold text-base", a),
91
+ className: n("line-clamp-1 body-2-semi-bold text-base", t),
92
92
  ...s,
93
- children: t
93
+ children: a
94
94
  }
95
95
  ), A = ({
96
96
  ref: r,
97
- children: t,
98
- className: a,
97
+ children: a,
98
+ className: t,
99
99
  ...s
100
100
  }) => /* @__PURE__ */ e(
101
101
  "div",
102
102
  {
103
103
  ref: r,
104
- className: n("line-clamp-2 body-3 text-muted", a),
104
+ className: n("line-clamp-2 body-3 text-muted", t),
105
105
  ...s,
106
- children: t
106
+ children: a
107
107
  }
108
108
  );
109
109
  export {