@ledgerhq/lumen-ui-react 0.1.12 → 0.1.14

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 (69) hide show
  1. package/dist/i18n/locales/de.json.d.ts +3 -0
  2. package/dist/i18n/locales/de.json.js +4 -2
  3. package/dist/i18n/locales/en.json.d.ts +3 -0
  4. package/dist/i18n/locales/en.json.js +6 -4
  5. package/dist/i18n/locales/es.json.d.ts +3 -0
  6. package/dist/i18n/locales/es.json.js +6 -4
  7. package/dist/i18n/locales/fr.json.d.ts +3 -0
  8. package/dist/i18n/locales/fr.json.js +6 -4
  9. package/dist/i18n/locales/ja.json.d.ts +3 -0
  10. package/dist/i18n/locales/ja.json.js +6 -4
  11. package/dist/i18n/locales/ko.json.d.ts +3 -0
  12. package/dist/i18n/locales/ko.json.js +6 -4
  13. package/dist/i18n/locales/pt.json.d.ts +3 -0
  14. package/dist/i18n/locales/pt.json.js +6 -4
  15. package/dist/i18n/locales/ru.json.d.ts +3 -0
  16. package/dist/i18n/locales/ru.json.js +6 -4
  17. package/dist/i18n/locales/th.json.d.ts +3 -0
  18. package/dist/i18n/locales/th.json.js +6 -4
  19. package/dist/i18n/locales/tr.json.d.ts +3 -0
  20. package/dist/i18n/locales/tr.json.js +6 -4
  21. package/dist/i18n/locales/zh.json.d.ts +3 -0
  22. package/dist/i18n/locales/zh.json.js +6 -4
  23. package/dist/index.js +128 -121
  24. package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
  25. package/dist/lib/Components/AmountDisplay/AmountDisplay.js +31 -31
  26. package/dist/lib/Components/Card/Card.d.ts.map +1 -1
  27. package/dist/lib/Components/Card/Card.js +70 -70
  28. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts +1 -1
  29. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts.map +1 -1
  30. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +24 -10
  31. package/dist/lib/Components/InteractiveIcon/types.d.ts +8 -0
  32. package/dist/lib/Components/InteractiveIcon/types.d.ts.map +1 -1
  33. package/dist/lib/Components/MediaBanner/MediaBanner.d.ts +25 -0
  34. package/dist/lib/Components/MediaBanner/MediaBanner.d.ts.map +1 -0
  35. package/dist/lib/Components/MediaBanner/MediaBanner.js +96 -0
  36. package/dist/lib/Components/MediaBanner/index.d.ts +3 -0
  37. package/dist/lib/Components/MediaBanner/index.d.ts.map +1 -0
  38. package/dist/lib/Components/MediaBanner/types.d.ts +53 -0
  39. package/dist/lib/Components/MediaBanner/types.d.ts.map +1 -0
  40. package/dist/lib/Components/MediaCard/MediaCard.d.ts +33 -0
  41. package/dist/lib/Components/MediaCard/MediaCard.d.ts.map +1 -0
  42. package/dist/lib/Components/MediaCard/MediaCard.js +128 -0
  43. package/dist/lib/Components/MediaCard/index.d.ts +3 -0
  44. package/dist/lib/Components/MediaCard/index.d.ts.map +1 -0
  45. package/dist/lib/Components/MediaCard/types.d.ts +30 -0
  46. package/dist/lib/Components/MediaCard/types.d.ts.map +1 -0
  47. package/dist/lib/Components/Select/Select.d.ts +3 -3
  48. package/dist/lib/Components/Select/Select.js +3 -3
  49. package/dist/lib/Components/Select/index.d.ts +1 -1
  50. package/dist/lib/Components/Select/types.d.ts +4 -4
  51. package/dist/lib/Components/{ButtonTrigger/ButtonTrigger.d.ts → TriggerButton/TriggerButton.d.ts} +10 -10
  52. package/dist/lib/Components/TriggerButton/TriggerButton.d.ts.map +1 -0
  53. package/dist/lib/Components/{ButtonTrigger/ButtonTrigger.js → TriggerButton/TriggerButton.js} +3 -3
  54. package/dist/lib/Components/TriggerButton/index.d.ts +3 -0
  55. package/dist/lib/Components/{ButtonTrigger → TriggerButton}/index.d.ts.map +1 -1
  56. package/dist/lib/Components/{ButtonTrigger → TriggerButton}/types.d.ts +1 -1
  57. package/dist/lib/Components/{ButtonTrigger → TriggerButton}/types.d.ts.map +1 -1
  58. package/dist/lib/Components/index.d.ts +3 -1
  59. package/dist/lib/Components/index.d.ts.map +1 -1
  60. package/dist/lib/Symbols/Icons/NanoGen5.d.ts +29 -0
  61. package/dist/lib/Symbols/Icons/NanoGen5.d.ts.map +1 -0
  62. package/dist/lib/Symbols/Icons/NanoGen5.js +27 -0
  63. package/dist/lib/Symbols/index.d.ts +1 -0
  64. package/dist/lib/Symbols/index.d.ts.map +1 -1
  65. package/dist/lib/Symbols/index.js +194 -192
  66. package/dist/package.json +2 -2
  67. package/package.json +1 -1
  68. package/dist/lib/Components/ButtonTrigger/ButtonTrigger.d.ts.map +0 -1
  69. package/dist/lib/Components/ButtonTrigger/index.d.ts +0 -3
@@ -0,0 +1,96 @@
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import { cn as o } from "../../../libs/utils-shared/dist/index.js";
3
+ import { useState as b, useEffect as u } from "react";
4
+ import { useCommonTranslation as v } from "../../../i18n/useCommonTranslation.js";
5
+ import { Close as x } from "../../Symbols/Icons/Close.js";
6
+ import { InteractiveIcon as N } from "../InteractiveIcon/InteractiveIcon.js";
7
+ const h = ({
8
+ ref: s,
9
+ imageUrl: a,
10
+ onClose: r,
11
+ closeAriaLabel: t,
12
+ children: l,
13
+ className: c,
14
+ ...m
15
+ }) => {
16
+ const { t: d } = v(), [p, i] = b(!1);
17
+ u(() => {
18
+ i(!1);
19
+ }, [a]);
20
+ const f = a && !p;
21
+ return /* @__PURE__ */ n(
22
+ "div",
23
+ {
24
+ ref: s,
25
+ className: o(
26
+ "relative flex h-72 flex-row overflow-hidden rounded-md bg-surface",
27
+ c
28
+ ),
29
+ ...m,
30
+ children: [
31
+ /* @__PURE__ */ e("div", { className: "flex flex-1 items-center px-12 py-2", children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-4 py-12", children: l }) }),
32
+ /* @__PURE__ */ n("div", { className: "relative w-128", children: [
33
+ f && /* @__PURE__ */ e(
34
+ "img",
35
+ {
36
+ src: a,
37
+ alt: "",
38
+ "aria-hidden": !0,
39
+ className: "absolute inset-0 size-full object-cover",
40
+ onError: () => i(!0)
41
+ }
42
+ ),
43
+ /* @__PURE__ */ e("div", { className: "absolute inset-0 bg-linear-[45deg] from-black/0 from-67% to-black/80" })
44
+ ] }),
45
+ r && /* @__PURE__ */ e(
46
+ N,
47
+ {
48
+ type: "button",
49
+ iconType: "stroked",
50
+ appearance: "white",
51
+ className: "absolute top-8 right-8",
52
+ onClick: () => r(),
53
+ "aria-label": t || d("components.banner.closeAriaLabel"),
54
+ children: /* @__PURE__ */ e(x, { size: 16 })
55
+ }
56
+ )
57
+ ]
58
+ }
59
+ );
60
+ };
61
+ h.displayName = "MediaBanner";
62
+ const y = ({
63
+ ref: s,
64
+ children: a,
65
+ className: r,
66
+ ...t
67
+ }) => /* @__PURE__ */ e(
68
+ "div",
69
+ {
70
+ ref: s,
71
+ className: o("line-clamp-1 body-2-semi-bold text-base", r),
72
+ ...t,
73
+ children: a
74
+ }
75
+ );
76
+ y.displayName = "MediaBannerTitle";
77
+ const g = ({
78
+ ref: s,
79
+ children: a,
80
+ className: r,
81
+ ...t
82
+ }) => /* @__PURE__ */ e(
83
+ "div",
84
+ {
85
+ ref: s,
86
+ className: o("line-clamp-2 body-3 text-muted", r),
87
+ ...t,
88
+ children: a
89
+ }
90
+ );
91
+ g.displayName = "MediaBannerDescription";
92
+ export {
93
+ h as MediaBanner,
94
+ g as MediaBannerDescription,
95
+ y as MediaBannerTitle
96
+ };
@@ -0,0 +1,3 @@
1
+ export * from './MediaBanner';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaBanner/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,53 @@
1
+ import { ComponentPropsWithRef, ReactNode } from 'react';
2
+ /**
3
+ * Props for the MediaBanner root component.
4
+ */
5
+ export type MediaBannerProps = {
6
+ /**
7
+ * URL of the background image displayed on the right side.
8
+ */
9
+ imageUrl: string;
10
+ /**
11
+ * Optional close action callback.
12
+ */
13
+ onClose?: () => void;
14
+ /**
15
+ * Optional aria label for the close button.
16
+ */
17
+ closeAriaLabel?: string;
18
+ /**
19
+ * Custom classname.
20
+ */
21
+ className?: string;
22
+ /**
23
+ * The banner content (MediaBannerTitle, MediaBannerDescription).
24
+ */
25
+ children: ReactNode;
26
+ } & Omit<ComponentPropsWithRef<'div'>, 'children'>;
27
+ /**
28
+ * Props for the MediaBannerTitle component.
29
+ */
30
+ export type MediaBannerTitleProps = {
31
+ /**
32
+ * The title text content.
33
+ */
34
+ children: ReactNode;
35
+ /**
36
+ * Custom classname.
37
+ */
38
+ className?: string;
39
+ } & ComponentPropsWithRef<'div'>;
40
+ /**
41
+ * Props for the MediaBannerDescription component.
42
+ */
43
+ export type MediaBannerDescriptionProps = {
44
+ /**
45
+ * The description text content.
46
+ */
47
+ children: ReactNode;
48
+ /**
49
+ * Custom classname.
50
+ */
51
+ className?: string;
52
+ } & ComponentPropsWithRef<'div'>;
53
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaBanner/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { MediaCardProps, MediaCardTitleProps } from './types';
2
+ export declare const MediaCardTitle: {
3
+ ({ ref, className, children, ...props }: MediaCardTitleProps): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
6
+ /**
7
+ * A media card component for displaying a full-bleed background image with
8
+ * composable content and a close button, using gradient overlays to ensure
9
+ * readability.
10
+ *
11
+ * @example
12
+ * import { MediaCard, MediaCardTitle } from '@ledgerhq/lumen-ui-react';
13
+ * import { Tag } from '@ledgerhq/lumen-ui-react';
14
+ *
15
+ * <MediaCard
16
+ * imageUrl="/image.jpg"
17
+ * onClick={() => {}}
18
+ * onClose={() => {}}
19
+ * >
20
+ * <Tag label="New" size="md" />
21
+ * <MediaCardTitle>Card text</MediaCardTitle>
22
+ * </MediaCard>
23
+ *
24
+ * // Without close button
25
+ * <MediaCard imageUrl="/image.jpg" onClick={() => {}}>
26
+ * <MediaCardTitle>Card text</MediaCardTitle>
27
+ * </MediaCard>
28
+ */
29
+ export declare const MediaCard: {
30
+ ({ ref, imageUrl, children, onClick, onClose, closeAriaLabel, className, ...props }: MediaCardProps): import("react/jsx-runtime").JSX.Element;
31
+ displayName: string;
32
+ };
33
+ //# sourceMappingURL=MediaCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaCard.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaCard/MediaCard.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AA+C9D,eAAO,MAAM,cAAc;6CAKxB,mBAAmB;;CAUrB,CAAC;AAIF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,SAAS;yFASnB,cAAc;;CAwDhB,CAAC"}
@@ -0,0 +1,128 @@
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";
4
+ import { useState as x, useEffect as N } from "react";
5
+ import { Close as w } from "../../Symbols/Icons/Close.js";
6
+ import { useCommonTranslation as z } from "../../../i18n/useCommonTranslation.js";
7
+ import { InteractiveIcon as C } from "../InteractiveIcon/InteractiveIcon.js";
8
+ const o = {
9
+ root: a(
10
+ [
11
+ "group relative overflow-hidden rounded-md",
12
+ "flex h-[164px] w-full flex-col items-start justify-end p-12",
13
+ "bg-muted text-left"
14
+ ],
15
+ {
16
+ variants: {
17
+ interactive: {
18
+ true: [
19
+ "cursor-pointer",
20
+ "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus"
21
+ ]
22
+ }
23
+ }
24
+ }
25
+ ),
26
+ image: a(["absolute inset-0", "size-full object-cover"]),
27
+ overlay: a([
28
+ "absolute inset-0 size-full",
29
+ "transition-colors",
30
+ "group-hover:bg-muted-transparent-hover",
31
+ "group-[:active:not(:has(button:active))]:bg-muted-transparent-pressed"
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: [
36
+ /* @__PURE__ */ e(
37
+ "div",
38
+ {
39
+ "aria-hidden": "true",
40
+ className: "pointer-events-none absolute inset-x-0 bottom-0 h-3/4 bg-linear-to-t from-gradient-overlay-80 to-gradient-overlay-0"
41
+ }
42
+ ),
43
+ /* @__PURE__ */ e(
44
+ "div",
45
+ {
46
+ "aria-hidden": "true",
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
+ }
49
+ )
50
+ ] }), E = ({
51
+ ref: i,
52
+ className: t,
53
+ children: s,
54
+ ...r
55
+ }) => /* @__PURE__ */ e(
56
+ "div",
57
+ {
58
+ ref: i,
59
+ className: c(o.title(), t),
60
+ ...r,
61
+ children: s
62
+ }
63
+ );
64
+ E.displayName = "MediaCardTitle";
65
+ const I = ({
66
+ ref: i,
67
+ imageUrl: t,
68
+ children: s,
69
+ onClick: r,
70
+ onClose: l,
71
+ closeAriaLabel: u,
72
+ className: p,
73
+ ...f
74
+ }) => {
75
+ const { t: v } = z(), [g, d] = x(!1), b = t && !g;
76
+ return N(() => {
77
+ d(!1);
78
+ }, [t]), /* @__PURE__ */ m(
79
+ "div",
80
+ {
81
+ ...y({ onClick: r }),
82
+ className: c(
83
+ o.root({ interactive: !!r }),
84
+ p
85
+ ),
86
+ ref: i,
87
+ ...f,
88
+ children: [
89
+ b && /* @__PURE__ */ e(
90
+ "img",
91
+ {
92
+ src: t,
93
+ alt: "",
94
+ className: o.image(),
95
+ "aria-hidden": "true",
96
+ loading: "lazy",
97
+ onError: () => d(!0)
98
+ }
99
+ ),
100
+ /* @__PURE__ */ e(j, {}),
101
+ /* @__PURE__ */ e("div", { "aria-hidden": "true", className: o.overlay() }),
102
+ /* @__PURE__ */ e("div", { className: o.content(), children: s }),
103
+ l && /* @__PURE__ */ e(
104
+ C,
105
+ {
106
+ type: "button",
107
+ iconType: "stroked",
108
+ appearance: "white",
109
+ "aria-label": u || v("common.closeAriaLabel"),
110
+ className: "absolute top-12 right-12 z-10",
111
+ onClick: (n) => {
112
+ n.stopPropagation(), l();
113
+ },
114
+ onKeyDown: (n) => {
115
+ n.stopPropagation();
116
+ },
117
+ children: /* @__PURE__ */ e(w, { size: 20 })
118
+ }
119
+ )
120
+ ]
121
+ }
122
+ );
123
+ };
124
+ I.displayName = "MediaCard";
125
+ export {
126
+ I as MediaCard,
127
+ E as MediaCardTitle
128
+ };
@@ -0,0 +1,3 @@
1
+ export { MediaCard, MediaCardTitle } from './MediaCard';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACxD,cAAc,SAAS,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { ComponentPropsWithRef, MouseEventHandler, ReactNode } from 'react';
2
+ export type MediaCardProps = {
3
+ /**
4
+ * The source URL for the background image.
5
+ */
6
+ imageUrl: string;
7
+ /**
8
+ * The card content — typically a `MediaCardTitle` and optional
9
+ * leading content such as tags or icons.
10
+ */
11
+ children: ReactNode;
12
+ /**
13
+ * Callback fired when the card is pressed.
14
+ */
15
+ onClick?: MouseEventHandler<HTMLDivElement>;
16
+ /**
17
+ * Callback fired when the close button is pressed.
18
+ */
19
+ onClose?: () => void;
20
+ /**
21
+ * Aria label for the close button.
22
+ */
23
+ closeAriaLabel?: string;
24
+ /**
25
+ * Additional CSS classes for the card.
26
+ */
27
+ className?: string;
28
+ } & Omit<ComponentPropsWithRef<'div'>, 'onClick'>;
29
+ export type MediaCardTitleProps = ComponentPropsWithRef<'div'>;
30
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaCard/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EACjB,SAAS,EACV,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAC5C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC;AAElD,MAAM,MAAM,mBAAmB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { SelectProps, SelectTriggerProps, SelectContentProps, SelectGroupProps, SelectLabelProps, SelectItemTextProps, SelectItemProps, SelectSeparatorProps, SelectButtonTriggerProps } from './types';
1
+ import { SelectProps, SelectTriggerProps, SelectContentProps, SelectGroupProps, SelectLabelProps, SelectItemTextProps, SelectItemProps, SelectSeparatorProps, SelectTriggerButtonProps } from './types';
2
2
  declare function Select({ value, defaultValue, onValueChange, disabled: disabledProp, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
3
3
  declare function SelectGroup({ ...props }: SelectGroupProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare const SelectTrigger: {
@@ -25,6 +25,6 @@ declare const SelectItemText: {
25
25
  ({ ref, className, ...props }: SelectItemTextProps): import("react/jsx-runtime").JSX.Element;
26
26
  displayName: string | undefined;
27
27
  };
28
- declare const SelectButtonTrigger: ({ selectedValue, selectedContent, label, ...props }: SelectButtonTriggerProps) => import("react/jsx-runtime").JSX.Element;
29
- export { Select, SelectGroup, SelectTrigger, SelectContent, SelectLabel, SelectItemText, SelectItem, SelectSeparator, SelectButtonTrigger, };
28
+ declare const SelectTriggerButton: ({ selectedValue, selectedContent, label, ...props }: SelectTriggerButtonProps) => import("react/jsx-runtime").JSX.Element;
29
+ export { Select, SelectGroup, SelectTrigger, SelectContent, SelectLabel, SelectItemText, SelectItem, SelectSeparator, SelectTriggerButton, };
30
30
  //# sourceMappingURL=Select.d.ts.map
@@ -6,7 +6,7 @@ import { SelectProvider as f, useSelectContext as b } from "./SelectContext.js";
6
6
  import { useControllableState as h } from "../../../utils/useControllableState/useControllableState.js";
7
7
  import { Check as x } from "../../Symbols/Icons/Check.js";
8
8
  import { Divider as y } from "../Divider/Divider.js";
9
- import { ButtonTrigger as S } from "../ButtonTrigger/ButtonTrigger.js";
9
+ import { TriggerButton as S } from "../TriggerButton/TriggerButton.js";
10
10
  import { ChevronDown as u } from "../../Symbols/Icons/ChevronDown.js";
11
11
  import { ChevronUp as N } from "../../Symbols/Icons/ChevronUp.js";
12
12
  function M({
@@ -259,12 +259,12 @@ const Q = ({
259
259
  }) => /* @__PURE__ */ e(S, { ...s, children: t ? a : r });
260
260
  export {
261
261
  M as Select,
262
- Q as SelectButtonTrigger,
263
262
  z as SelectContent,
264
263
  O as SelectGroup,
265
264
  D as SelectItem,
266
265
  k as SelectItemText,
267
266
  j as SelectLabel,
268
267
  P as SelectSeparator,
269
- T as SelectTrigger
268
+ T as SelectTrigger,
269
+ Q as SelectTriggerButton
270
270
  };
@@ -1,3 +1,3 @@
1
1
  export * from './Select';
2
- export type { SelectProps, SelectTriggerProps, SelectTriggerRenderProps, SelectContentProps, SelectGroupProps, SelectLabelProps, SelectItemTextProps, SelectItemProps, SelectSeparatorProps, SelectButtonTriggerProps, } from './types';
2
+ export type { SelectProps, SelectTriggerProps, SelectTriggerRenderProps, SelectContentProps, SelectGroupProps, SelectLabelProps, SelectItemTextProps, SelectItemProps, SelectSeparatorProps, SelectTriggerButtonProps, } from './types';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithRef, ReactElement, ReactNode } from 'react';
2
- import { ButtonTriggerProps } from '../ButtonTrigger';
2
+ import { TriggerButtonProps } from '../TriggerButton';
3
3
  type Direction = 'ltr' | 'rtl';
4
4
  type PointerDownOutsideEvent = CustomEvent<{
5
5
  originalEvent: PointerEvent;
@@ -73,9 +73,9 @@ export type SelectTriggerProps = {
73
73
  * Render function that replaces the default input-style trigger.
74
74
  * When provided, `SelectPrimitive.Trigger` renders with `asChild` and
75
75
  * delegates rendering to this function.
76
- * Can be a preset component (e.g. `SelectButtonTrigger`) or a custom render function.
76
+ * Can be a preset component (e.g. `SelectTriggerButton`) or a custom render function.
77
77
  *
78
- * @example render={(props) => <SelectButtonTrigger {...props} label="Label" />}
78
+ * @example render={(props) => <SelectTriggerButton {...props} label="Label" />}
79
79
  * @example render={({ selectedValue, selectedContent }) => <MyTrigger />}
80
80
  */
81
81
  render?: (props: SelectTriggerRenderProps) => ReactElement;
@@ -253,7 +253,7 @@ export type SelectSeparatorProps = {
253
253
  */
254
254
  className?: string;
255
255
  } & ComponentPropsWithRef<'div'>;
256
- export type SelectButtonTriggerProps = SelectTriggerRenderProps & Omit<ButtonTriggerProps, 'children'> & {
256
+ export type SelectTriggerButtonProps = SelectTriggerRenderProps & Omit<TriggerButtonProps, 'children'> & {
257
257
  /**
258
258
  * The label displayed when no value is selected.
259
259
  * Once a value is selected, it is replaced by the selected item's content.
@@ -1,4 +1,4 @@
1
- import { ButtonTriggerProps } from './types';
1
+ import { TriggerButtonProps } from './types';
2
2
  /**
3
3
  * Trigger button for select/dropdown components. Displays a label with an optional
4
4
  * leading icon and a trailing chevron indicator.
@@ -10,24 +10,24 @@ import { ButtonTriggerProps } from './types';
10
10
  * @see {@link https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7/2.-Components-Library?node-id=6389-45680 Figma}
11
11
  *
12
12
  * @example
13
- * import { ButtonTrigger } from '@ledgerhq/lumen-ui-react';
13
+ * import { TriggerButton } from '@ledgerhq/lumen-ui-react';
14
14
  * import { Settings } from '@ledgerhq/lumen-ui-react/symbols';
15
15
  *
16
16
  * // With flat interface icon
17
- * <ButtonTrigger icon={<Settings size={20} />} iconType="flat">
17
+ * <TriggerButton icon={<Settings size={20} />} iconType="flat">
18
18
  * Network
19
- * </ButtonTrigger>
19
+ * </TriggerButton>
20
20
  *
21
21
  * // With rounded crypto icon
22
- * <ButtonTrigger icon={<CryptoIcon ledgerId="bitcoin" size="32px" />} iconType="rounded">
22
+ * <TriggerButton icon={<CryptoIcon ledgerId="bitcoin" size="32px" />} iconType="rounded">
23
23
  * Bitcoin
24
- * </ButtonTrigger>
24
+ * </TriggerButton>
25
25
  *
26
26
  * // Without icon
27
- * <ButtonTrigger>All accounts</ButtonTrigger>
27
+ * <TriggerButton>All accounts</TriggerButton>
28
28
  */
29
- export declare const ButtonTrigger: {
30
- ({ ref, className, appearance, size, disabled: disabledProp, asChild, icon, iconType, children, ...props }: ButtonTriggerProps): import("react/jsx-runtime").JSX.Element;
29
+ export declare const TriggerButton: {
30
+ ({ ref, className, appearance, size, disabled: disabledProp, asChild, icon, iconType, children, ...props }: TriggerButtonProps): import("react/jsx-runtime").JSX.Element;
31
31
  displayName: string;
32
32
  };
33
- //# sourceMappingURL=ButtonTrigger.d.ts.map
33
+ //# sourceMappingURL=TriggerButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TriggerButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/TriggerButton/TriggerButton.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AA4BlD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,aAAa;gHAWvB,kBAAkB;;CAmCpB,CAAC"}
@@ -41,7 +41,7 @@ const N = b("gap-8 body-2-semi-bold", {
41
41
  ...d
42
42
  }) => {
43
43
  const a = f({
44
- consumerName: "ButtonTrigger",
44
+ consumerName: "TriggerButton",
45
45
  mergeWith: { disabled: m }
46
46
  }), y = s ? c : "none";
47
47
  return /* @__PURE__ */ t(
@@ -70,7 +70,7 @@ const N = b("gap-8 body-2-semi-bold", {
70
70
  }
71
71
  );
72
72
  };
73
- h.displayName = "ButtonTrigger";
73
+ h.displayName = "TriggerButton";
74
74
  export {
75
- h as ButtonTrigger
75
+ h as TriggerButton
76
76
  };
@@ -0,0 +1,3 @@
1
+ export { TriggerButton } from './TriggerButton';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ButtonTrigger/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/TriggerButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,cAAc,SAAS,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { ComponentPropsWithRef, ReactNode } from 'react';
2
2
  import { BaseButtonProps } from '../Button/types';
3
- export type ButtonTriggerProps = {
3
+ export type TriggerButtonProps = {
4
4
  /**
5
5
  * The visual style of the trigger button.
6
6
  * @default 'gray'
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ButtonTrigger/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,eAAe,CAAC;IACtD;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,WAAW,GAAG,SAAS,CAAC,GAC7D,qBAAqB,CAAC,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/TriggerButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,eAAe,CAAC;IACtD;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,WAAW,GAAG,SAAS,CAAC,GAC7D,qBAAqB,CAAC,QAAQ,CAAC,CAAC"}
@@ -16,13 +16,15 @@ export * from './IconButton';
16
16
  export * from './InteractiveIcon';
17
17
  export * from './Link';
18
18
  export * from './ListItem';
19
+ export * from './MediaBanner';
20
+ export * from './MediaCard';
19
21
  export * from './Menu';
20
22
  export * from './NavBar';
21
23
  export * from './PageIndicator';
22
24
  export * from './SearchInput';
23
25
  export * from './SegmentedControl';
24
26
  export * from './Select';
25
- export * from './ButtonTrigger';
27
+ export * from './TriggerButton';
26
28
  export * from './SideBar';
27
29
  export * from './Skeleton';
28
30
  export * from './Spinner';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/Components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/Components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * NanoGen5 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:NanoGen5 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 { NanoGen5 } from '@ledgerhq/lumen-ui-react/symbols';
18
+ *
19
+ * <NanoGen5 />
20
+ *
21
+ * @example
22
+ * // With custom size and className
23
+ * <NanoGen5 size={40} className="text-warning" />
24
+ */
25
+ export declare const NanoGen5: {
26
+ ({ ref, className, disabled, ...props }: Omit<import('../../Components/Icon').IconProps, "children">): import('react').FunctionComponentElement<import('../../Components/Icon').IconProps>;
27
+ displayName: string;
28
+ };
29
+ //# sourceMappingURL=NanoGen5.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NanoGen5.d.ts","sourceRoot":"","sources":["../../../../src/lib/Symbols/Icons/NanoGen5.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,QAAQ;;;CAgBpB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import o from "../../Components/Icon/createIcon.js";
3
+ const c = o(
4
+ "NanoGen5",
5
+ /* @__PURE__ */ e(
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__ */ e(
14
+ "path",
15
+ {
16
+ fill: "currentColor",
17
+ fillRule: "evenodd",
18
+ d: "M11 1.333c.92 0 1.667.747 1.667 1.667v.333c.184 0 .333.15.333.334v1.666a.334.334 0 0 1-.266.327l-.067.007V13c0 .92-.746 1.667-1.667 1.667H5c-.92 0-1.667-.746-1.667-1.667V3c0-.92.747-1.667 1.667-1.667zM9.667 12.667a.667.667 0 0 0 0 1.333H11a.667.667 0 0 0 0-1.333zM5 2.333A.667.667 0 0 0 4.333 3v8c0 .368.299.667.667.667h6a.667.667 0 0 0 .667-.667V3A.667.667 0 0 0 11 2.333z",
19
+ clipRule: "evenodd"
20
+ }
21
+ )
22
+ }
23
+ )
24
+ );
25
+ export {
26
+ c as NanoGen5
27
+ };
@@ -164,6 +164,7 @@ export { Moon } from './Icons/Moon';
164
164
  export { MoreHorizontal } from './Icons/MoreHorizontal';
165
165
  export { MoreVertical } from './Icons/MoreVertical';
166
166
  export { Nano } from './Icons/Nano';
167
+ export { NanoGen5 } from './Icons/NanoGen5';
167
168
  export { NetworkWarning } from './Icons/NetworkWarning';
168
169
  export { Nfc } from './Icons/Nfc';
169
170
  export { Nft } from './Icons/Nft';