@ledgerhq/lumen-ui-react 0.0.64 → 0.0.66

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 (62) hide show
  1. package/dist/index.js +66 -59
  2. package/dist/lib/Components/BaseInput/BaseInput.d.ts +1 -0
  3. package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
  4. package/dist/lib/Components/BaseInput/BaseInput.js +49 -48
  5. package/dist/lib/Components/BaseInput/types.d.ts +5 -1
  6. package/dist/lib/Components/BaseInput/types.d.ts.map +1 -1
  7. package/dist/lib/Components/SearchInput/SearchInput.d.ts +3 -2
  8. package/dist/lib/Components/SearchInput/SearchInput.d.ts.map +1 -1
  9. package/dist/lib/Components/SearchInput/SearchInput.js +45 -13
  10. package/dist/lib/Components/SearchInput/types.d.ts +7 -1
  11. package/dist/lib/Components/SearchInput/types.d.ts.map +1 -1
  12. package/dist/lib/Components/Subheader/Subheader.d.ts +60 -24
  13. package/dist/lib/Components/Subheader/Subheader.d.ts.map +1 -1
  14. package/dist/lib/Components/Subheader/Subheader.js +66 -36
  15. package/dist/lib/Components/Subheader/index.d.ts +1 -1
  16. package/dist/lib/Components/Subheader/index.d.ts.map +1 -1
  17. package/dist/lib/Components/Subheader/types.d.ts +52 -6
  18. package/dist/lib/Components/Subheader/types.d.ts.map +1 -1
  19. package/dist/lib/Components/Tile/Tile.d.ts +15 -9
  20. package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
  21. package/dist/lib/Components/Tile/Tile.js +117 -119
  22. package/dist/lib/Symbols/Icons/Asterisk.d.ts +26 -0
  23. package/dist/lib/Symbols/Icons/Asterisk.d.ts.map +1 -0
  24. package/dist/lib/Symbols/Icons/Asterisk.js +28 -0
  25. package/dist/lib/Symbols/Icons/Bell.js +1 -1
  26. package/dist/lib/Symbols/Icons/BellFill.d.ts +26 -0
  27. package/dist/lib/Symbols/Icons/BellFill.d.ts.map +1 -0
  28. package/dist/lib/Symbols/Icons/BellFill.js +25 -0
  29. package/dist/lib/Symbols/Icons/BellNotification.js +1 -1
  30. package/dist/lib/Symbols/Icons/CreditCardFill.d.ts +26 -0
  31. package/dist/lib/Symbols/Icons/CreditCardFill.d.ts.map +1 -0
  32. package/dist/lib/Symbols/Icons/CreditCardFill.js +25 -0
  33. package/dist/lib/Symbols/Icons/Delete.js +1 -1
  34. package/dist/lib/Symbols/Icons/Exchange.js +1 -1
  35. package/dist/lib/Symbols/Icons/ExchangeFill.d.ts +26 -0
  36. package/dist/lib/Symbols/Icons/ExchangeFill.d.ts.map +1 -0
  37. package/dist/lib/Symbols/Icons/ExchangeFill.js +41 -0
  38. package/dist/lib/Symbols/Icons/ExpandLeft.d.ts +26 -0
  39. package/dist/lib/Symbols/Icons/ExpandLeft.d.ts.map +1 -0
  40. package/dist/lib/Symbols/Icons/ExpandLeft.js +28 -0
  41. package/dist/lib/Symbols/Icons/ExpandRight.d.ts +26 -0
  42. package/dist/lib/Symbols/Icons/ExpandRight.d.ts.map +1 -0
  43. package/dist/lib/Symbols/Icons/ExpandRight.js +28 -0
  44. package/dist/lib/Symbols/Icons/Home.js +1 -1
  45. package/dist/lib/Symbols/Icons/HomeFill.d.ts +26 -0
  46. package/dist/lib/Symbols/Icons/HomeFill.d.ts.map +1 -0
  47. package/dist/lib/Symbols/Icons/HomeFill.js +25 -0
  48. package/dist/lib/Symbols/Icons/LifeRingFill.d.ts +26 -0
  49. package/dist/lib/Symbols/Icons/LifeRingFill.d.ts.map +1 -0
  50. package/dist/lib/Symbols/Icons/LifeRingFill.js +25 -0
  51. package/dist/lib/Symbols/Icons/P2p.js +1 -1
  52. package/dist/lib/Symbols/Icons/Signature.js +1 -1
  53. package/dist/lib/Symbols/Icons/Spacerocket.js +1 -1
  54. package/dist/lib/Symbols/Icons/Tools.js +1 -1
  55. package/dist/lib/Symbols/Icons/TransferVertical.js +1 -1
  56. package/dist/lib/Symbols/Icons/Trash.js +1 -1
  57. package/dist/lib/Symbols/Icons/WarningFill.js +1 -1
  58. package/dist/lib/Symbols/index.d.ts +8 -0
  59. package/dist/lib/Symbols/index.d.ts.map +1 -1
  60. package/dist/lib/Symbols/index.js +474 -458
  61. package/dist/package.json +1 -1
  62. package/package.json +1 -1
@@ -1,39 +1,69 @@
1
- import { jsxs as s, jsx as i } from "react/jsx-runtime";
2
- import { cn as p } from "../../../libs/utils-shared/dist/index.js";
3
- import o from "react";
4
- const a = ({ children: e }) => /* @__PURE__ */ i("div", { className: "flex shrink-0 items-center", children: e }), c = ({ children: e }) => /* @__PURE__ */ i("div", { className: "flex shrink-0 items-center", children: e }), h = ({
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { cn as a } from "../../../libs/utils-shared/dist/index.js";
3
+ import s from "react";
4
+ import { Information as i } from "../../Symbols/Icons/Information.js";
5
+ import { ChevronRight as c } from "../../Symbols/Icons/ChevronRight.js";
6
+ import { InteractiveIcon as m } from "../InteractiveIcon/InteractiveIcon.js";
7
+ const S = ({ children: e }) => /* @__PURE__ */ r("h2", { className: "min-w-0 truncate heading-4-semi-bold", children: e }), N = ({
8
+ children: e,
9
+ onClick: t,
10
+ className: n,
11
+ ...o
12
+ }) => /* @__PURE__ */ r(
13
+ t ? "button" : "div",
14
+ {
15
+ className: a(
16
+ "flex items-center gap-4",
17
+ t && "cursor-pointer",
18
+ n
19
+ ),
20
+ onClick: t,
21
+ ...o,
22
+ children: e
23
+ }
24
+ ), y = ({ value: e, format: t }) => {
25
+ const n = t ? t(e) : `(${e})`;
26
+ return /* @__PURE__ */ r("span", { className: "shrink-0 body-2 text-muted", children: n });
27
+ }, d = s.forwardRef(({ iconType: e = "stroked", className: t, ...n }, o) => /* @__PURE__ */ r("span", { className: "flex shrink-0 items-center", children: /* @__PURE__ */ r(
28
+ m,
29
+ {
30
+ ref: o,
31
+ iconType: e,
32
+ className: t,
33
+ "aria-label": "More information",
34
+ ...n,
35
+ children: /* @__PURE__ */ r(i, { size: 16 })
36
+ }
37
+ ) }));
38
+ d.displayName = "SubheaderInfo";
39
+ const I = ({ className: e }) => /* @__PURE__ */ r("span", { className: a("shrink-0 self-center text-muted", e), children: /* @__PURE__ */ r(c, { size: 16 }) }), g = ({
40
+ children: e
41
+ }) => /* @__PURE__ */ r("p", { className: "body-3 text-muted", children: e }), v = ({
42
+ children: e,
43
+ onClick: t,
44
+ className: n,
45
+ ...o
46
+ }) => /* @__PURE__ */ r(
47
+ "button",
48
+ {
49
+ type: "button",
50
+ onClick: t,
51
+ className: a("ml-auto shrink-0 pl-8 body-2 text-interactive", n),
52
+ ...o,
53
+ children: e
54
+ }
55
+ ), w = ({
5
56
  className: e,
6
- title: m,
7
- children: f,
8
- ...d
9
- }) => {
10
- const l = o.Children.toArray(f), t = l.filter(
11
- (n) => o.isValidElement(n) && n.type === a
12
- ), r = l.filter(
13
- (n) => o.isValidElement(n) && n.type === c
14
- );
15
- if (t.length > 1)
16
- throw new Error("Subheader can only have one Info slot");
17
- if (r.length > 1)
18
- throw new Error("Subheader can only have one Action slot");
19
- const u = t.length > 0 ? t[0] : null, S = r.length > 0 ? r[0] : null;
20
- return /* @__PURE__ */ s(
21
- "div",
22
- {
23
- className: p("flex items-center justify-between gap-8", e),
24
- ...d,
25
- children: [
26
- /* @__PURE__ */ s("div", { className: "flex min-w-0 items-center gap-2", children: [
27
- /* @__PURE__ */ i("h2", { className: "min-w-0 truncate heading-5-semi-bold", children: m }),
28
- u
29
- ] }),
30
- S
31
- ]
32
- }
33
- );
34
- };
35
- h.Info = a;
36
- h.Action = c;
57
+ children: t,
58
+ ...n
59
+ }) => /* @__PURE__ */ r("div", { className: a("flex flex-col gap-4", e), ...n, children: t });
37
60
  export {
38
- h as Subheader
61
+ w as Subheader,
62
+ v as SubheaderAction,
63
+ y as SubheaderCount,
64
+ g as SubheaderDescription,
65
+ d as SubheaderInfo,
66
+ N as SubheaderRow,
67
+ I as SubheaderShowMore,
68
+ S as SubheaderTitle
39
69
  };
@@ -1,3 +1,3 @@
1
- export { Subheader } from './Subheader';
1
+ export { Subheader, SubheaderRow, SubheaderTitle, SubheaderCount, SubheaderInfo, SubheaderShowMore, SubheaderDescription, SubheaderAction, } from './Subheader';
2
2
  export * from './types';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Subheader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Subheader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACZ,cAAc,EACd,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,GAChB,MAAM,aAAa,CAAC;AACrB,cAAc,SAAS,CAAC"}
@@ -1,17 +1,63 @@
1
1
  export type SubheaderProps = {
2
2
  /**
3
- * The title of the subheader.
4
- */
5
- title: string;
6
- /**
7
- * The children of the subheader, which can include Subheader.Info and Subheader.Action slots.
3
+ * The children of the subheader, which should include SubheaderRow, SubheaderTitle, SubheaderDescription, etc.
8
4
  */
9
5
  children?: React.ReactNode;
10
6
  } & Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>;
11
- export type SubheaderInfoProps = {
7
+ export type SubheaderRowProps = {
8
+ /**
9
+ * The children of the subheader row.
10
+ */
11
+ children: React.ReactNode;
12
+ /**
13
+ * Optional click handler to make the row interactive.
14
+ */
15
+ onClick?: () => void;
16
+ } & Omit<React.HTMLAttributes<HTMLElement>, 'children' | 'onClick'>;
17
+ export type SubheaderTitleProps = {
18
+ /**
19
+ * The title text of the subheader.
20
+ */
21
+ children: string;
22
+ };
23
+ export type SubheaderCountProps = {
24
+ /**
25
+ * The count value to display.
26
+ */
27
+ value: number;
28
+ /**
29
+ * Optional formatter function to customize the display.
30
+ * Defaults to (n) => `(${n})`
31
+ */
32
+ format?: (value: number) => string;
33
+ };
34
+ export type SubheaderInfoProps = Omit<React.ComponentProps<typeof import('../InteractiveIcon').InteractiveIcon>, 'children' | 'iconType'> & {
35
+ /**
36
+ * The visual style of the icon button.
37
+ * Defaults to 'stroked'.
38
+ */
39
+ iconType?: 'filled' | 'stroked';
40
+ };
41
+ export type SubheaderDescriptionProps = {
42
+ /**
43
+ * The description text to display below the title row.
44
+ */
12
45
  children: React.ReactNode;
13
46
  };
14
47
  export type SubheaderActionProps = {
48
+ /**
49
+ * The action element to display (e.g., button text).
50
+ */
15
51
  children: React.ReactNode;
52
+ /**
53
+ * Click handler for the action.
54
+ */
55
+ onClick: () => void;
56
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'onClick'>;
57
+ export type SubheaderShowMoreProps = {
58
+ /**
59
+ * Optional className for custom styling.
60
+ */
61
+ className?: string;
16
62
  };
17
63
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Subheader/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,CAAC;AAE3D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Subheader/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,CAAC;AAE3D,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAEpE,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,KAAK,CAAC,cAAc,CAAC,cAAc,oBAAoB,EAAE,eAAe,CAAC,EACzE,UAAU,GAAG,UAAU,CACxB,GAAG;IACF;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAEhF,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -1,4 +1,5 @@
1
- import { TileContentProps, TileDescriptionProps, TileProps, TileSecondaryActionProps, TileSpotProps, TileTitleProps } from './types';
1
+ import { MouseEventHandler } from 'react';
2
+ import { TileContentProps, TileDescriptionProps, TileSpotProps, TileTitleProps } from './types';
2
3
  /**
3
4
  * A flexible tile component that uses a composite pattern for maximum customization.
4
5
  * Displays content in a vertical layout with support for spots, text, and custom content.
@@ -26,10 +27,14 @@ import { TileContentProps, TileDescriptionProps, TileProps, TileSecondaryActionP
26
27
  * <div>Custom content</div>
27
28
  * </Tile>
28
29
  */
29
- export declare const Tile: {
30
- ({ className, onClick, appearance, disabled, "aria-label": ariaLabel, children, onMouseDown, onMouseUp, onMouseLeave, ...props }: TileProps): import("react/jsx-runtime").JSX.Element;
31
- displayName: string;
32
- };
30
+ export declare const Tile: import('react').ForwardRefExoticComponent<{
31
+ appearance?: "no-background" | "card";
32
+ disabled?: boolean;
33
+ onClick?: MouseEventHandler<HTMLButtonElement>;
34
+ children: import('react').ReactNode;
35
+ className?: string;
36
+ 'aria-label'?: string;
37
+ } & Omit<import('react').HTMLAttributes<HTMLDivElement>, "onClick"> & import('react').RefAttributes<HTMLDivElement>>;
33
38
  /**
34
39
  * A spot adapter for use within Tile. Automatically inherits the disabled state from the parent Tile.
35
40
  * Always renders at a fixed size of 48.
@@ -79,8 +84,9 @@ export declare const TileDescription: {
79
84
  * </TileContent>
80
85
  * </Tile>
81
86
  */
82
- export declare const TileSecondaryAction: {
83
- ({ onClick, icon, className, "aria-label": ariaLabel, ...props }: TileSecondaryActionProps): import("react/jsx-runtime").JSX.Element | null;
84
- displayName: string;
85
- };
87
+ export declare const TileSecondaryAction: import('react').ForwardRefExoticComponent<{
88
+ onClick?: MouseEventHandler;
89
+ icon: React.ComponentType<Omit<import('../Icon').IconProps, "children">>;
90
+ className?: string;
91
+ } & Omit<import('react').HTMLAttributes<HTMLButtonElement>, "onClick"> & import('react').RefAttributes<HTMLButtonElement>>;
86
92
  //# sourceMappingURL=Tile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tile/Tile.tsx"],"names":[],"mappings":"AASA,OAAO,EACL,gBAAgB,EAEhB,oBAAoB,EACpB,SAAS,EACT,wBAAwB,EACxB,aAAa,EACb,cAAc,EACf,MAAM,SAAS,CAAC;AAgEjB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,IAAI;sIAWd,SAAS;;CAqFX,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,QAAQ;YAAW,aAAa;;CAM5C,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,WAAW;wCAIrB,gBAAgB;;CASlB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,SAAS;wCAInB,cAAc;;CAiBhB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,eAAe;wCAIzB,oBAAoB;;CAiBtB,CAAC;AAGF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB;sEAM7B,wBAAwB;;CAmC1B,CAAC"}
1
+ {"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tile/Tile.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAc,iBAAiB,EAAyB,MAAM,OAAO,CAAC;AAG7E,OAAO,EACL,gBAAgB,EAEhB,oBAAoB,EAGpB,aAAa,EACb,cAAc,EACf,MAAM,SAAS,CAAC;AAgEjB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,IAAI;;;;;;;oHAsGhB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,QAAQ;YAAW,aAAa;;CAM5C,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,WAAW;wCAIrB,gBAAgB;;CASlB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,SAAS;wCAInB,cAAc;;CAiBhB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,eAAe;wCAIzB,oBAAoB;;CAiBtB,CAAC;AAGF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB;;;;0HAuC9B,CAAC"}
@@ -1,11 +1,11 @@
1
- import { jsx as l, jsxs as k } from "react/jsx-runtime";
2
- import { extractSlottable as q, createSafeContext as C, cn as d } from "../../../libs/utils-shared/dist/index.js";
3
- import { cva as b } from "class-variance-authority";
4
- import { useState as I, useCallback as n } from "react";
5
- import { Spot as R } from "../Spot/Spot.js";
6
- import { InteractiveIcon as z } from "../InteractiveIcon/InteractiveIcon.js";
7
- const [V, u] = C("Tile"), v = {
8
- root: b(
1
+ import { jsx as s, jsxs as q } from "react/jsx-runtime";
2
+ import { extractSlottable as C, createSafeContext as I, cn as u } from "../../../libs/utils-shared/dist/index.js";
3
+ import { cva as v } from "class-variance-authority";
4
+ import { forwardRef as x, useState as w, useCallback as d } from "react";
5
+ import { Spot as z } from "../Spot/Spot.js";
6
+ import { InteractiveIcon as V } from "../InteractiveIcon/InteractiveIcon.js";
7
+ const [j, p] = I("Tile"), T = {
8
+ root: v(
9
9
  [
10
10
  "group relative flex flex-col items-center gap-8 text-base transition-colors",
11
11
  "rounded-md focus-visible:outline-2 focus-visible:outline-focus"
@@ -58,113 +58,116 @@ const [V, u] = C("Tile"), v = {
58
58
  }
59
59
  }
60
60
  ),
61
- button: b(
61
+ button: v(
62
62
  "flex w-full cursor-pointer flex-col items-center gap-8 rounded-md px-8 py-12 focus-visible:outline-2 focus-visible:outline-focus"
63
63
  )
64
- }, j = ({
65
- className: e,
66
- onClick: i,
67
- appearance: r = "no-background",
68
- disabled: t = !1,
69
- "aria-label": p,
70
- children: m,
71
- onMouseDown: o,
72
- onMouseUp: c,
73
- onMouseLeave: s,
74
- ...x
75
- }) => {
76
- const [y, f] = I(!1), { slotElement: N, remainingChildren: g } = q(
77
- m,
78
- T
79
- ), h = n(
80
- (a) => {
81
- a.target.closest(
82
- "[data-secondary-button-container]"
83
- ) || (o == null || o(a), f(!0));
84
- },
85
- [o]
86
- ), A = n(
87
- (a) => {
88
- f(!1), c == null || c(a);
89
- },
90
- [c]
91
- ), S = n(
92
- (a) => {
93
- f(!1), s == null || s(a);
94
- },
95
- [s]
96
- );
97
- return /* @__PURE__ */ l(V, { value: { disabled: t }, children: /* @__PURE__ */ k(
98
- "div",
99
- {
100
- ...x,
101
- className: v.root({
102
- appearance: r,
103
- isActive: y,
104
- disabled: t,
105
- className: e
106
- }),
107
- onMouseDown: t ? void 0 : (a) => {
108
- h(a);
64
+ }, P = x(
65
+ ({
66
+ className: e,
67
+ onClick: i,
68
+ appearance: r = "no-background",
69
+ disabled: t = !1,
70
+ "aria-label": f,
71
+ children: m,
72
+ onMouseDown: l,
73
+ onMouseUp: o,
74
+ onMouseLeave: c,
75
+ ...n
76
+ }, N) => {
77
+ const [g, b] = w(!1), { slotElement: h, remainingChildren: A } = C(
78
+ m,
79
+ y
80
+ ), S = d(
81
+ (a) => {
82
+ a.target.closest(
83
+ "[data-secondary-button-container]"
84
+ ) || (l == null || l(a), b(!0));
109
85
  },
110
- onMouseUp: t ? void 0 : (a) => {
111
- A(a);
86
+ [l]
87
+ ), k = d(
88
+ (a) => {
89
+ b(!1), o == null || o(a);
112
90
  },
113
- onMouseLeave: t ? void 0 : (a) => {
114
- S(a);
91
+ [o]
92
+ ), R = d(
93
+ (a) => {
94
+ b(!1), c == null || c(a);
115
95
  },
116
- children: [
117
- /* @__PURE__ */ l(
118
- "button",
119
- {
120
- "aria-label": p,
121
- onClick: t ? void 0 : i,
122
- disabled: t,
123
- "data-disabled": t || void 0,
124
- className: v.button(),
125
- children: g
126
- }
127
- ),
128
- N
129
- ]
130
- }
131
- ) });
132
- };
133
- j.displayName = "Tile";
134
- const w = (e) => {
135
- const { disabled: i } = u({
96
+ [c]
97
+ );
98
+ return /* @__PURE__ */ s(j, { value: { disabled: t }, children: /* @__PURE__ */ q(
99
+ "div",
100
+ {
101
+ ...n,
102
+ ref: N,
103
+ className: T.root({
104
+ appearance: r,
105
+ isActive: g,
106
+ disabled: t,
107
+ className: e
108
+ }),
109
+ onMouseDown: t ? void 0 : (a) => {
110
+ S(a);
111
+ },
112
+ onMouseUp: t ? void 0 : (a) => {
113
+ k(a);
114
+ },
115
+ onMouseLeave: t ? void 0 : (a) => {
116
+ R(a);
117
+ },
118
+ children: [
119
+ /* @__PURE__ */ s(
120
+ "button",
121
+ {
122
+ "aria-label": f,
123
+ onClick: t ? void 0 : i,
124
+ disabled: t,
125
+ "data-disabled": t || void 0,
126
+ className: T.button(),
127
+ children: A
128
+ }
129
+ ),
130
+ h
131
+ ]
132
+ }
133
+ ) });
134
+ }
135
+ );
136
+ P.displayName = "Tile";
137
+ const D = (e) => {
138
+ const { disabled: i } = p({
136
139
  consumerName: "TileSpot",
137
140
  contextRequired: !0
138
141
  });
139
- return /* @__PURE__ */ l(R, { ...e, size: 48, disabled: i });
142
+ return /* @__PURE__ */ s(z, { ...e, size: 48, disabled: i });
140
143
  };
141
- w.displayName = "TileSpot";
142
- const P = ({
144
+ D.displayName = "TileSpot";
145
+ const E = ({
143
146
  children: e,
144
147
  className: i,
145
148
  ...r
146
- }) => /* @__PURE__ */ l(
149
+ }) => /* @__PURE__ */ s(
147
150
  "div",
148
151
  {
149
- className: d("flex w-full flex-col items-center text-center", i),
152
+ className: u("flex w-full flex-col items-center text-center", i),
150
153
  ...r,
151
154
  children: e
152
155
  }
153
156
  );
154
- P.displayName = "TileContent";
155
- const D = ({
157
+ E.displayName = "TileContent";
158
+ const O = ({
156
159
  children: e,
157
160
  className: i,
158
161
  ...r
159
162
  }) => {
160
- const { disabled: t } = u({
163
+ const { disabled: t } = p({
161
164
  consumerName: "TileTitle",
162
165
  contextRequired: !0
163
166
  });
164
- return /* @__PURE__ */ l(
167
+ return /* @__PURE__ */ s(
165
168
  "div",
166
169
  {
167
- className: d(
170
+ className: u(
168
171
  "w-full truncate body-2-semi-bold",
169
172
  t && "text-disabled",
170
173
  i
@@ -174,20 +177,20 @@ const D = ({
174
177
  }
175
178
  );
176
179
  };
177
- D.displayName = "TileTitle";
178
- const E = ({
180
+ O.displayName = "TileTitle";
181
+ const B = ({
179
182
  children: e,
180
183
  className: i,
181
184
  ...r
182
185
  }) => {
183
- const { disabled: t } = u({
186
+ const { disabled: t } = p({
184
187
  consumerName: "TileDescription",
185
188
  contextRequired: !0
186
189
  });
187
- return /* @__PURE__ */ l(
190
+ return /* @__PURE__ */ s(
188
191
  "div",
189
192
  {
190
- className: d(
193
+ className: u(
191
194
  "w-full truncate body-3",
192
195
  t ? "text-disabled" : "text-muted",
193
196
  i
@@ -197,30 +200,24 @@ const E = ({
197
200
  }
198
201
  );
199
202
  };
200
- E.displayName = "TileDescription";
201
- const T = ({
202
- onClick: e,
203
- icon: i,
204
- className: r,
205
- "aria-label": t,
206
- ...p
207
- }) => {
208
- const { disabled: m } = u({
203
+ B.displayName = "TileDescription";
204
+ const y = x(({ onClick: e, icon: i, className: r, "aria-label": t, ...f }, m) => {
205
+ const { disabled: l } = p({
209
206
  consumerName: "TileSecondaryAction",
210
207
  contextRequired: !0
211
- }), o = n(
212
- (s) => {
213
- s.stopPropagation(), s.preventDefault(), e == null || e(s);
208
+ }), o = d(
209
+ (n) => {
210
+ n.stopPropagation(), n.preventDefault(), e == null || e(n);
214
211
  },
215
212
  [e]
216
213
  );
217
- if (m) return null;
214
+ if (l) return null;
218
215
  const c = i;
219
- return /* @__PURE__ */ l(
220
- z,
216
+ return /* @__PURE__ */ s(
217
+ V,
221
218
  {
222
219
  "data-slot": "tile-secondary-action",
223
- className: d(
220
+ className: u(
224
221
  "absolute top-8 right-4 opacity-0 transition-opacity duration-200 group-hover:opacity-100 focus-within:opacity-100",
225
222
  r
226
223
  ),
@@ -228,17 +225,18 @@ const T = ({
228
225
  iconType: "stroked",
229
226
  onClick: o,
230
227
  "aria-label": t,
231
- ...p,
232
- children: /* @__PURE__ */ l(c, { size: 24 })
228
+ ref: m,
229
+ ...f,
230
+ children: /* @__PURE__ */ s(c, { size: 24 })
233
231
  }
234
232
  );
235
- };
236
- T.displayName = "TileSecondaryAction";
233
+ });
234
+ y.displayName = "TileSecondaryAction";
237
235
  export {
238
- j as Tile,
239
- P as TileContent,
240
- E as TileDescription,
241
- T as TileSecondaryAction,
242
- w as TileSpot,
243
- D as TileTitle
236
+ P as Tile,
237
+ E as TileContent,
238
+ B as TileDescription,
239
+ y as TileSecondaryAction,
240
+ D as TileSpot,
241
+ O as TileTitle
244
242
  };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Asterisk icon component.
3
+ *
4
+ * This icon component is automatically generated from SVG files and uses the createIcon utility
5
+ * to create a consistent icon interface. It supports all standard SVG props and additional
6
+ * size variants defined in the Icon component.
7
+ *
8
+ * @see {@link https://ldls.vercel.app/?path=/story/symbols-interface-icons--icon&args=name:Asterisk Storybook}
9
+ *
10
+ * @component
11
+ * @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
12
+ * @param {string} [className] - Additional CSS classes to apply to the icon.
13
+ * @param {React.SVGProps<SVGSVGElement>} [...props] - All standard SVG element props.
14
+ *
15
+ * @example
16
+ * // Basic usage with default size (24px)
17
+ * import { Asterisk } from '@ledgerhq/lumen-ui-react/symbols';
18
+ *
19
+ * <Asterisk />
20
+ *
21
+ * @example
22
+ * // With custom size and className
23
+ * <Asterisk size={40} className="text-warning" />
24
+ */
25
+ export declare const Asterisk: import('react').ForwardRefExoticComponent<Omit<Omit<import('../../Components/Icon').IconProps, "children">, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
26
+ //# sourceMappingURL=Asterisk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Asterisk.d.ts","sourceRoot":"","sources":["../../../../src/lib/Symbols/Icons/Asterisk.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,QAAQ,oKAiBpB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import o from "../../Components/Icon/createIcon.js";
3
+ const i = o(
4
+ "Asterisk",
5
+ /* @__PURE__ */ r(
6
+ "svg",
7
+ {
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ width: "1em",
10
+ height: "1em",
11
+ fill: "currentColor",
12
+ viewBox: "0 0 16 16",
13
+ children: /* @__PURE__ */ r(
14
+ "path",
15
+ {
16
+ stroke: "currentColor",
17
+ strokeLinecap: "round",
18
+ strokeLinejoin: "round",
19
+ strokeWidth: 1.3,
20
+ d: "M2 7.99h12m-9 4.974 6-9.948m0 10L5 3.067"
21
+ }
22
+ )
23
+ }
24
+ )
25
+ );
26
+ export {
27
+ i as Asterisk
28
+ };
@@ -17,7 +17,7 @@ const c = r(
17
17
  strokeLinecap: "round",
18
18
  strokeLinejoin: "round",
19
19
  strokeWidth: 1.3,
20
- d: "M6 12v.167c0 1.1.893 2 2 2 1.1 0 2-.9 2-2V12m2-2.833 1.133 1.133c.12.12.194.293.194.467v.553c0 .367-.3.667-.667.667H3.327a.664.664 0 0 1-.667-.667v-.56a.66.66 0 0 1 .193-.473l1.134-1.14V6.313c0-2.213 1.786-4 4-4 2.206 0 4 1.787 4 4z"
20
+ d: "M6 11.427v.74c0 1.1.893 2 2 2 1.1 0 2-.9 2-2v-.727m2-2.273 1.133 1.133c.12.12.194.293.194.467v-.007c0 .367-.3.667-.667.667H3.327a.664.664 0 0 1-.667-.667.66.66 0 0 1 .193-.473l1.134-1.14V6.313c0-2.213 1.786-4 4-4 2.206 0 4 1.787 4 4z"
21
21
  }
22
22
  )
23
23
  }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * BellFill icon component.
3
+ *
4
+ * This icon component is automatically generated from SVG files and uses the createIcon utility
5
+ * to create a consistent icon interface. It supports all standard SVG props and additional
6
+ * size variants defined in the Icon component.
7
+ *
8
+ * @see {@link https://ldls.vercel.app/?path=/story/symbols-interface-icons--icon&args=name:BellFill Storybook}
9
+ *
10
+ * @component
11
+ * @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
12
+ * @param {string} [className] - Additional CSS classes to apply to the icon.
13
+ * @param {React.SVGProps<SVGSVGElement>} [...props] - All standard SVG element props.
14
+ *
15
+ * @example
16
+ * // Basic usage with default size (24px)
17
+ * import { BellFill } from '@ledgerhq/lumen-ui-react/symbols';
18
+ *
19
+ * <BellFill />
20
+ *
21
+ * @example
22
+ * // With custom size and className
23
+ * <BellFill size={40} className="text-warning" />
24
+ */
25
+ export declare const BellFill: import('react').ForwardRefExoticComponent<Omit<Omit<import('../../Components/Icon').IconProps, "children">, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
26
+ //# sourceMappingURL=BellFill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BellFill.d.ts","sourceRoot":"","sources":["../../../../src/lib/Symbols/Icons/BellFill.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,QAAQ,oKAcpB,CAAC"}