@ledgerhq/lumen-ui-react 0.1.62 → 0.1.64

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 (179) hide show
  1. package/ai-rules/RULES.md +1 -1
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +80 -78
  5. package/dist/lib/Components/core/AddressInput/AddressInput.js +1 -1
  6. package/dist/lib/Components/core/AmountDisplay/AmountDisplay.js +1 -1
  7. package/dist/lib/Components/core/AmountInput/AmountInput.js +22 -22
  8. package/dist/lib/Components/core/Avatar/Avatar.js +7 -7
  9. package/dist/lib/Components/core/AvatarButton/AvatarButton.js +8 -8
  10. package/dist/lib/Components/core/Banner/Banner.js +1 -1
  11. package/dist/lib/Components/core/Button/Button.js +6 -6
  12. package/dist/lib/Components/core/Card/Card.js +17 -17
  13. package/dist/lib/Components/core/ContentBanner/ContentBanner.d.ts +1 -1
  14. package/dist/lib/Components/core/ContentBanner/ContentBanner.js +1 -1
  15. package/dist/lib/Components/core/DataTable/DataTable.js +45 -45
  16. package/dist/lib/Components/core/Dialog/DialogHeader/DialogHeader.js +1 -1
  17. package/dist/lib/Components/core/Divider/Divider.js +4 -4
  18. package/dist/lib/Components/core/DotCount/DotCount.js +3 -3
  19. package/dist/lib/Components/core/DotIcon/DotIcon.js +4 -4
  20. package/dist/lib/Components/core/DotSymbol/DotSymbol.js +18 -18
  21. package/dist/lib/Components/core/Link/Link.d.ts.map +1 -1
  22. package/dist/lib/Components/core/Link/Link.js +25 -24
  23. package/dist/lib/Components/core/ListItem/ListItem.d.ts +1 -1
  24. package/dist/lib/Components/core/ListItem/ListItem.js +4 -4
  25. package/dist/lib/Components/core/MediaBanner/MediaBanner.js +16 -16
  26. package/dist/lib/Components/core/MediaButton/MediaButton.js +2 -2
  27. package/dist/lib/Components/core/MediaCard/MediaCard.js +1 -1
  28. package/dist/lib/Components/core/MediaImage/MediaImage.js +5 -5
  29. package/dist/lib/Components/core/Menu/Menu.js +25 -25
  30. package/dist/lib/Components/core/NavBar/CoinCapsule.js +4 -4
  31. package/dist/lib/Components/core/NavBar/NavBar.js +3 -3
  32. package/dist/lib/Components/core/PageIndicator/PageIndicator.js +5 -5
  33. package/dist/lib/Components/core/Pagination/Pagination.js +15 -15
  34. package/dist/lib/Components/core/Popover/Popover.js +13 -13
  35. package/dist/lib/Components/core/SearchInput/SearchInput.js +5 -5
  36. package/dist/lib/Components/core/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  37. package/dist/lib/Components/core/SegmentedControl/SegmentedControl.js +78 -82
  38. package/dist/lib/Components/core/Select/Select.d.ts.map +1 -1
  39. package/dist/lib/Components/core/Select/Select.js +105 -104
  40. package/dist/lib/Components/core/SideBar/SideBar.js +28 -28
  41. package/dist/lib/Components/core/Spinner/Spinner.js +5 -5
  42. package/dist/lib/Components/core/Spot/Spot.d.ts +7 -25
  43. package/dist/lib/Components/core/Spot/Spot.d.ts.map +1 -1
  44. package/dist/lib/Components/core/Spot/Spot.js +33 -102
  45. package/dist/lib/Components/core/Spot/SpotNumber.d.ts +16 -0
  46. package/dist/lib/Components/core/Spot/SpotNumber.d.ts.map +1 -0
  47. package/dist/lib/Components/core/Spot/SpotNumber.js +46 -0
  48. package/dist/lib/Components/core/Spot/index.d.ts +1 -0
  49. package/dist/lib/Components/core/Spot/index.d.ts.map +1 -1
  50. package/dist/lib/Components/core/Spot/styles.d.ts +14 -0
  51. package/dist/lib/Components/core/Spot/styles.d.ts.map +1 -0
  52. package/dist/lib/Components/core/Spot/styles.js +275 -0
  53. package/dist/lib/Components/core/Spot/types.d.ts +27 -38
  54. package/dist/lib/Components/core/Spot/types.d.ts.map +1 -1
  55. package/dist/lib/Components/core/Stepper/Stepper.d.ts.map +1 -1
  56. package/dist/lib/Components/core/Stepper/Stepper.js +51 -48
  57. package/dist/lib/Components/core/Subheader/Subheader.d.ts.map +1 -1
  58. package/dist/lib/Components/core/Subheader/Subheader.js +33 -29
  59. package/dist/lib/Components/core/Switch/Switch.js +5 -5
  60. package/dist/lib/Components/core/Table/Table.d.ts.map +1 -1
  61. package/dist/lib/Components/core/Table/Table.js +64 -63
  62. package/dist/lib/Components/core/ThemeProvider/ThemeProvider.js +6 -6
  63. package/dist/lib/Components/core/ThemeProvider/ThemeProvider.types.d.ts +1 -1
  64. package/dist/lib/Components/core/ThemeProvider/ThemeProvider.types.d.ts.map +1 -1
  65. package/dist/lib/Components/core/Tile/Tile.d.ts +2 -2
  66. package/dist/lib/Components/core/TileButton/TileButton.js +8 -8
  67. package/dist/lib/Components/core/Timeline/Timeline.js +16 -16
  68. package/dist/lib/Components/core/Toast/Toast.js +4 -4
  69. package/dist/lib/Components/core/Toast/Toaster.js +9 -9
  70. package/dist/lib/Components/core/Trend/Trend.js +3 -3
  71. package/dist/lib/Components/internal/BaseButton/BaseButton.js +9 -9
  72. package/dist/lib/Components/internal/BaseInput/BaseInput.js +21 -21
  73. package/dist/lib/Components/internal/BaseInput/useAutosizeTextarea/useAutosizeTextarea.js +4 -4
  74. package/dist/lib/Components/internal/BaseTag/BaseTag.js +4 -4
  75. package/dist/lib/Components/symbols/Icon/Icon.js +4 -4
  76. package/dist/lib/Components/symbols/Icon/createIcon.js +5 -5
  77. package/dist/lib/Components/symbols/icons/AiBubble.d.ts +29 -0
  78. package/dist/lib/Components/symbols/icons/AiBubble.d.ts.map +1 -0
  79. package/dist/lib/Components/symbols/icons/AiBubble.js +30 -0
  80. package/dist/lib/Components/symbols/icons/ArrowBottomLeft.d.ts +29 -0
  81. package/dist/lib/Components/symbols/icons/ArrowBottomLeft.d.ts.map +1 -0
  82. package/dist/lib/Components/symbols/icons/ArrowBottomLeft.js +27 -0
  83. package/dist/lib/Components/symbols/icons/Bug.js +3 -3
  84. package/dist/lib/Components/symbols/icons/Hourglass.d.ts +29 -0
  85. package/dist/lib/Components/symbols/icons/Hourglass.d.ts.map +1 -0
  86. package/dist/lib/Components/symbols/icons/Hourglass.js +27 -0
  87. package/dist/lib/Components/symbols/icons/Repeat.d.ts +29 -0
  88. package/dist/lib/Components/symbols/icons/Repeat.d.ts.map +1 -0
  89. package/dist/lib/Components/symbols/icons/Repeat.js +27 -0
  90. package/dist/lib/Components/symbols/icons/Robot.d.ts +29 -0
  91. package/dist/lib/Components/symbols/icons/Robot.d.ts.map +1 -0
  92. package/dist/lib/Components/symbols/icons/Robot.js +29 -0
  93. package/dist/lib/Components/symbols/icons/Switch.d.ts.map +1 -1
  94. package/dist/lib/Components/symbols/icons/Switch.js +24 -12
  95. package/dist/lib/Components/symbols/icons/Wifi.d.ts +29 -0
  96. package/dist/lib/Components/symbols/icons/Wifi.d.ts.map +1 -0
  97. package/dist/lib/Components/symbols/icons/Wifi.js +36 -0
  98. package/dist/lib/Components/symbols/index.d.ts +6 -0
  99. package/dist/lib/Components/symbols/index.d.ts.map +1 -1
  100. package/dist/lib/Components/symbols/index.js +610 -598
  101. package/dist/lib/Components/visualization/CartesianChart/CartesianChart.d.ts.map +1 -1
  102. package/dist/lib/Components/visualization/CartesianChart/CartesianChart.js +36 -35
  103. package/dist/lib/Components/visualization/CartesianChart/types.d.ts +1 -1
  104. package/dist/lib/Components/visualization/DonutChart/DonutChart.d.ts.map +1 -1
  105. package/dist/lib/Components/visualization/DonutChart/DonutChart.js +31 -31
  106. package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +4 -4
  107. package/dist/lib/Components/visualization/DonutChart/DonutRing.d.ts.map +1 -1
  108. package/dist/lib/Components/visualization/DonutChart/DonutRing.js +13 -12
  109. package/dist/lib/Components/visualization/DonutChart/donutSizeContext.js +2 -2
  110. package/dist/lib/Components/visualization/DonutChart/types.d.ts +1 -1
  111. package/dist/lib/Components/visualization/Legend/Legend.d.ts +1 -1
  112. package/dist/lib/Components/visualization/Legend/Legend.d.ts.map +1 -1
  113. package/dist/lib/Components/visualization/Legend/Legend.js +7 -11
  114. package/dist/lib/Components/visualization/Legend/types.d.ts +2 -2
  115. package/dist/lib/Components/visualization/LineChart/LineChart.d.ts +1 -1
  116. package/dist/lib/Components/visualization/LineChart/LineChart.d.ts.map +1 -1
  117. package/dist/lib/Components/visualization/LineChart/LineChart.js +90 -84
  118. package/dist/lib/Components/visualization/LineChart/types.d.ts +1 -1
  119. package/dist/lib/Components/visualization/LineChart/utils.d.ts +2 -1
  120. package/dist/lib/Components/visualization/LineChart/utils.d.ts.map +1 -1
  121. package/dist/lib/Components/visualization/LineChart/utils.js +23 -22
  122. package/dist/lib/Components/visualization/config.d.ts +0 -3
  123. package/dist/lib/Components/visualization/config.d.ts.map +1 -1
  124. package/dist/lib/Components/visualization/config.js +3 -6
  125. package/dist/libs/utils-shared/dist/index.js +191 -143
  126. package/dist/package.json +4 -6
  127. package/dist/translations/index.d.ts +3 -0
  128. package/dist/translations/index.d.ts.map +1 -0
  129. package/dist/{i18n → translations}/languages.d.ts +0 -5
  130. package/dist/translations/languages.d.ts.map +1 -0
  131. package/dist/{i18n → translations}/languages.js +1 -2
  132. package/dist/{i18n → translations}/locales/en.json.d.ts +11 -0
  133. package/dist/{i18n → translations}/locales/en.json.js +2 -2
  134. package/dist/translations/translations.d.ts +727 -0
  135. package/dist/translations/translations.d.ts.map +1 -0
  136. package/dist/translations/translations.js +22 -0
  137. package/package.json +4 -6
  138. package/dist/_virtual/dynamic-import-helper.js +0 -9
  139. package/dist/i18n/I18nProvider.d.ts +0 -8
  140. package/dist/i18n/I18nProvider.d.ts.map +0 -1
  141. package/dist/i18n/I18nProvider.js +0 -14
  142. package/dist/i18n/i18n.d.ts +0 -12
  143. package/dist/i18n/i18n.d.ts.map +0 -1
  144. package/dist/i18n/i18n.js +0 -42
  145. package/dist/i18n/index.d.ts +0 -4
  146. package/dist/i18n/index.d.ts.map +0 -1
  147. package/dist/i18n/languages.d.ts.map +0 -1
  148. package/dist/i18n/useCommonTranslation.d.ts +0 -2
  149. package/dist/i18n/useCommonTranslation.d.ts.map +0 -1
  150. package/dist/i18n/useCommonTranslation.js +0 -6
  151. package/dist/node_modules/i18next/dist/esm/i18next.js +0 -1479
  152. package/dist/node_modules/react-i18next/dist/es/I18nextProvider.js +0 -19
  153. package/dist/node_modules/react-i18next/dist/es/context.js +0 -17
  154. package/dist/node_modules/react-i18next/dist/es/defaults.js +0 -22
  155. package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +0 -8
  156. package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +0 -11
  157. package/dist/node_modules/react-i18next/dist/es/unescape.js +0 -25
  158. package/dist/node_modules/react-i18next/dist/es/useTranslation.js +0 -65
  159. package/dist/node_modules/react-i18next/dist/es/utils.js +0 -57
  160. /package/dist/{i18n → translations}/locales/de.json.d.ts +0 -0
  161. /package/dist/{i18n → translations}/locales/de.json.js +0 -0
  162. /package/dist/{i18n → translations}/locales/es.json.d.ts +0 -0
  163. /package/dist/{i18n → translations}/locales/es.json.js +0 -0
  164. /package/dist/{i18n → translations}/locales/fr.json.d.ts +0 -0
  165. /package/dist/{i18n → translations}/locales/fr.json.js +0 -0
  166. /package/dist/{i18n → translations}/locales/ja.json.d.ts +0 -0
  167. /package/dist/{i18n → translations}/locales/ja.json.js +0 -0
  168. /package/dist/{i18n → translations}/locales/ko.json.d.ts +0 -0
  169. /package/dist/{i18n → translations}/locales/ko.json.js +0 -0
  170. /package/dist/{i18n → translations}/locales/pt.json.d.ts +0 -0
  171. /package/dist/{i18n → translations}/locales/pt.json.js +0 -0
  172. /package/dist/{i18n → translations}/locales/ru.json.d.ts +0 -0
  173. /package/dist/{i18n → translations}/locales/ru.json.js +0 -0
  174. /package/dist/{i18n → translations}/locales/th.json.d.ts +0 -0
  175. /package/dist/{i18n → translations}/locales/th.json.js +0 -0
  176. /package/dist/{i18n → translations}/locales/tr.json.d.ts +0 -0
  177. /package/dist/{i18n → translations}/locales/tr.json.js +0 -0
  178. /package/dist/{i18n → translations}/locales/zh.json.d.ts +0 -0
  179. /package/dist/{i18n → translations}/locales/zh.json.js +0 -0
@@ -1,17 +1,17 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { createSafeContext as c } from "../../../../libs/utils-shared/dist/index.js";
3
- import { useMemo as n } from "react";
2
+ import { createSafeContext as n } from "../../../../libs/utils-shared/dist/index.js";
3
+ import { useMemo as c } from "react";
4
4
  import { COLOR_SCHEMES as i } from "./ThemeProvider.types.js";
5
5
  import { useResolvedColorScheme as h, useRootColorModeSideEffect as u } from "./useRootColorModeSideEffect.js";
6
- import { I18nProvider as d } from "../../../../i18n/I18nProvider.js";
7
- const [f, l] = c("ThemeProvider"), a = ({
6
+ import { TranslationsProvider as d } from "../../../../translations/translations.js";
7
+ const [f, l] = n("ThemeProvider"), x = ({
8
8
  children: o,
9
9
  colorScheme: t = i.system,
10
10
  locale: m
11
11
  }) => {
12
12
  const e = h(t);
13
13
  u(e);
14
- const s = n(
14
+ const s = c(
15
15
  () => ({
16
16
  colorScheme: e
17
17
  }),
@@ -23,6 +23,6 @@ const [f, l] = c("ThemeProvider"), a = ({
23
23
  contextRequired: !0
24
24
  });
25
25
  export {
26
- a as ThemeProvider,
26
+ x as ThemeProvider,
27
27
  P as useTheme
28
28
  };
@@ -1,5 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { SupportedLocale } from '../../../../i18n';
2
+ import { SupportedLocale } from '../../../../translations';
3
3
  export declare const COLOR_SCHEMES: {
4
4
  readonly light: "light";
5
5
  readonly dark: "dark";
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeProvider.types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/ThemeProvider/ThemeProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,aAAa,CAAC;AAEzD,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,GAAG;IACnD;;;;OAIG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B;;;;OAIG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B,CAAC"}
1
+ {"version":3,"file":"ThemeProvider.types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/ThemeProvider/ThemeProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,aAAa,CAAC;AAEzD,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,GAAG;IACnD;;;;OAIG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B;;;;OAIG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B,CAAC"}
@@ -18,7 +18,7 @@ import { TileContentProps, TileDescriptionProps, TileProps, TileSecondaryActionP
18
18
  *
19
19
  * <Tile appearance="card">
20
20
  * <TileSecondaryAction icon={MoreVertical} onClick={() => console.log('More')} />
21
- * <Spot appearance="icon" icon={Bitcoin} />
21
+ * <Spot icon={Bitcoin} />
22
22
  * <TileContent>
23
23
  * <TileTitle>Bitcoin</TileTitle>
24
24
  * </TileContent>
@@ -48,7 +48,7 @@ export declare const TileDescription: ({ children, className, ...props }: TileDe
48
48
  *
49
49
  * @example
50
50
  * <Tile>
51
- * <Spot appearance="icon" icon={Settings} />
51
+ * <Spot icon={Settings} />
52
52
  * <TileContent>
53
53
  * <TileTitle>My Title</TileTitle>
54
54
  * <TileDescription>Description</TileDescription>
@@ -1,9 +1,9 @@
1
1
  import { jsxs as x, jsx as t } from "react/jsx-runtime";
2
2
  import { useDisabledContext as g, cn as v } from "../../../../libs/utils-shared/dist/index.js";
3
- import { Slot as y, Slottable as C } from "@radix-ui/react-slot";
3
+ import { Slot as y, Slottable as N } from "@radix-ui/react-slot";
4
4
  import { cva as i } from "class-variance-authority";
5
- import { useCallback as N } from "react";
6
- const V = i(
5
+ import { useCallback as V } from "react";
6
+ const h = i(
7
7
  [
8
8
  "flex flex-col items-center gap-8 rounded-md p-12",
9
9
  "bg-surface body-2-semi-bold transition-colors",
@@ -29,7 +29,7 @@ const V = i(
29
29
  isFull: !1
30
30
  }
31
31
  }
32
- ), h = i("shrink-0", {
32
+ ), k = i("shrink-0", {
33
33
  variants: {
34
34
  appearance: {
35
35
  gray: "text-base",
@@ -59,7 +59,7 @@ const V = i(
59
59
  const e = g({
60
60
  consumerName: "TileButton",
61
61
  mergeWith: { disabled: c }
62
- }), p = N(
62
+ }), p = V(
63
63
  (o) => {
64
64
  if (e) {
65
65
  o.preventDefault();
@@ -75,7 +75,7 @@ const V = i(
75
75
  ref: n,
76
76
  type: a ? void 0 : "button",
77
77
  className: v(
78
- V({ disabled: e, isFull: u, appearance: l }),
78
+ h({ disabled: e, isFull: u, appearance: l }),
79
79
  b
80
80
  ),
81
81
  onClick: p,
@@ -84,8 +84,8 @@ const V = i(
84
84
  "aria-label": f,
85
85
  ...m,
86
86
  children: [
87
- /* @__PURE__ */ t(d, { size: 20, className: h({ disabled: e, appearance: l }) }),
88
- a ? /* @__PURE__ */ t(C, { children: s }) : /* @__PURE__ */ t("span", { className: "line-clamp-2 text-center", children: s })
87
+ /* @__PURE__ */ t(d, { size: 20, className: k({ disabled: e, appearance: l }) }),
88
+ a ? /* @__PURE__ */ t(N, { children: s }) : /* @__PURE__ */ t("span", { className: "line-clamp-2 text-center", children: s })
89
89
  ]
90
90
  }
91
91
  );
@@ -5,14 +5,14 @@ import { Spinner as c } from "../Spinner/Spinner.js";
5
5
  import { ClockFill as u } from "../../symbols/icons/ClockFill.js";
6
6
  import { DeleteCircleFill as x } from "../../symbols/icons/DeleteCircleFill.js";
7
7
  import { CheckmarkCircleFill as f } from "../../symbols/icons/CheckmarkCircleFill.js";
8
- const [p, m] = d("TimelineItem"), h = o("min-w-0 truncate body-2-semi-bold", {
8
+ const [p, m] = d("TimelineItem"), N = o("min-w-0 truncate body-2-semi-bold", {
9
9
  variants: {
10
10
  muted: {
11
11
  true: "text-muted",
12
12
  false: "text-base"
13
13
  }
14
14
  }
15
- }), N = /* @__PURE__ */ t("span", { "aria-hidden": !0, className: "size-12 rounded-full bg-muted-pressed" }), b = {
15
+ }), h = /* @__PURE__ */ t("span", { "aria-hidden": !0, className: "size-12 rounded-full bg-muted-pressed" }), b = {
16
16
  success: /* @__PURE__ */ t(f, { "aria-hidden": !0, className: "text-success", size: 24 }),
17
17
  error: /* @__PURE__ */ t(x, { "aria-hidden": !0, className: "text-error", size: 24 }),
18
18
  pending: /* @__PURE__ */ t(u, { "aria-hidden": !0, className: "text-muted", size: 24 }),
@@ -29,7 +29,7 @@ const [p, m] = d("TimelineItem"), h = o("min-w-0 truncate body-2-semi-bold", {
29
29
  {
30
30
  className: "mt-16 flex size-32 shrink-0 items-center justify-center self-start",
31
31
  "data-testid": `timeline-indicator-${e ?? "neutral"}`,
32
- children: e ? b[e] : N
32
+ children: e ? b[e] : h
33
33
  }
34
34
  ), T = () => /* @__PURE__ */ l(
35
35
  "div",
@@ -113,7 +113,7 @@ const [p, m] = d("TimelineItem"), h = o("min-w-0 truncate body-2-semi-bold", {
113
113
  ]
114
114
  }
115
115
  );
116
- }, L = ({
116
+ }, S = ({
117
117
  ref: e,
118
118
  children: i,
119
119
  className: n,
@@ -126,7 +126,7 @@ const [p, m] = d("TimelineItem"), h = o("min-w-0 truncate body-2-semi-bold", {
126
126
  ...r,
127
127
  children: i
128
128
  }
129
- ), S = ({
129
+ ), q = ({
130
130
  ref: e,
131
131
  children: i,
132
132
  className: n,
@@ -139,7 +139,7 @@ const [p, m] = d("TimelineItem"), h = o("min-w-0 truncate body-2-semi-bold", {
139
139
  ...r,
140
140
  children: i
141
141
  }
142
- ), q = ({
142
+ ), B = ({
143
143
  ref: e,
144
144
  children: i,
145
145
  className: n,
@@ -152,7 +152,7 @@ const [p, m] = d("TimelineItem"), h = o("min-w-0 truncate body-2-semi-bold", {
152
152
  ...r,
153
153
  children: i
154
154
  }
155
- ), B = ({
155
+ ), D = ({
156
156
  ref: e,
157
157
  children: i,
158
158
  className: n,
@@ -166,12 +166,12 @@ const [p, m] = d("TimelineItem"), h = o("min-w-0 truncate body-2-semi-bold", {
166
166
  "div",
167
167
  {
168
168
  ref: e,
169
- className: s(h({ muted: a === "idle" }), n),
169
+ className: s(N({ muted: a === "idle" }), n),
170
170
  ...r,
171
171
  children: i
172
172
  }
173
173
  );
174
- }, D = ({
174
+ }, H = ({
175
175
  ref: e,
176
176
  children: i,
177
177
  className: n,
@@ -184,7 +184,7 @@ const [p, m] = d("TimelineItem"), h = o("min-w-0 truncate body-2-semi-bold", {
184
184
  ...r,
185
185
  children: i
186
186
  }
187
- ), H = ({
187
+ ), L = ({
188
188
  ref: e,
189
189
  children: i,
190
190
  className: n,
@@ -218,11 +218,11 @@ export {
218
218
  R as Timeline,
219
219
  j as TimelineItem,
220
220
  P as TimelineItemBody,
221
- q as TimelineItemCaption,
222
- D as TimelineItemDescription,
221
+ B as TimelineItemCaption,
222
+ H as TimelineItemDescription,
223
223
  F as TimelineItemHeader,
224
- L as TimelineItemLeading,
225
- S as TimelineItemLeadingRow,
226
- B as TimelineItemTitle,
227
- H as TimelineItemTrailing
224
+ S as TimelineItemLeading,
225
+ q as TimelineItemLeadingRow,
226
+ D as TimelineItemTitle,
227
+ L as TimelineItemTrailing
228
228
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
2
  import { cn as l } from "../../../../libs/utils-shared/dist/index.js";
3
- import { toastVariants as x } from "./styles.js";
4
- import { useCommonTranslation as N } from "../../../../i18n/useCommonTranslation.js";
3
+ import { toastVariants as N } from "./styles.js";
4
+ import { useCommonTranslation as x } from "../../../../translations/translations.js";
5
5
  import { Spinner as v } from "../Spinner/Spinner.js";
6
6
  import { Button as u } from "../Button/Button.js";
7
7
  import { IconButton as k } from "../IconButton/IconButton.js";
@@ -25,13 +25,13 @@ const g = {
25
25
  role: p,
26
26
  ...d
27
27
  }) => {
28
- const { t: h } = N(), t = i || s !== "info";
28
+ const { t: h } = x(), t = i || s !== "info";
29
29
  return /* @__PURE__ */ a(
30
30
  "div",
31
31
  {
32
32
  ref: n,
33
33
  role: p ?? (s === "error" || s === "warning" ? "alert" : "status"),
34
- className: l(x({ hasLeading: t }), f),
34
+ className: l(N({ hasLeading: t }), f),
35
35
  ...d,
36
36
  children: [
37
37
  i ? /* @__PURE__ */ e("div", { className: "pt-10", children: /* @__PURE__ */ e(v, { size: 20, className: "shrink-0 text-on-interactive" }) }) : s !== "info" && /* @__PURE__ */ e("span", { className: "flex shrink-0 pt-10", children: g[s] }),
@@ -4,9 +4,9 @@ import { useSyncExternalStore as S, useState as x, useEffect as y } from "react"
4
4
  import { createPortal as M } from "react-dom";
5
5
  import { useToastCollapse as V } from "./hooks/useToastCollapse.js";
6
6
  import { useToastViewportPause as E } from "./hooks/useToastViewportPause.js";
7
- import { positionVariants as w, collapseVariants as C, slideExitVariants as I, queuedEnterVariants as N, slideEnterVariants as P } from "./styles.js";
8
- import { Toast as W } from "./Toast.js";
9
- const q = ({
7
+ import { positionVariants as w, collapseVariants as q, slideExitVariants as C, queuedEnterVariants as I, slideEnterVariants as N } from "./styles.js";
8
+ import { Toast as P } from "./Toast.js";
9
+ const Q = ({
10
10
  item: t,
11
11
  durationMs: s,
12
12
  queued: o,
@@ -16,12 +16,12 @@ const q = ({
16
16
  }) => {
17
17
  const e = t.exiting ?? !1, { contentRef: u, height: p } = V();
18
18
  T({ durationMs: s, paused: c, exiting: e, onDismiss: d });
19
- const a = r.startsWith("top") ? "top" : "bottom", m = () => e ? I({ position: r }) : o ? N({ edge: a }) : P({ position: r });
19
+ const a = r.startsWith("top") ? "top" : "bottom", m = () => e ? C({ position: r }) : o ? I({ edge: a }) : N({ position: r });
20
20
  return /* @__PURE__ */ l(
21
21
  "div",
22
22
  {
23
23
  "data-slot": "toast-collapse",
24
- className: C({ edge: a, exiting: e }),
24
+ className: q({ edge: a, exiting: e }),
25
25
  style: { height: e ? 0 : p },
26
26
  children: /* @__PURE__ */ l(
27
27
  "div",
@@ -31,7 +31,7 @@ const q = ({
31
31
  className: m(),
32
32
  style: e ? { animationFillMode: "forwards" } : void 0,
33
33
  children: /* @__PURE__ */ l(
34
- W,
34
+ P,
35
35
  {
36
36
  appearance: t.appearance,
37
37
  loading: t.loading,
@@ -44,7 +44,7 @@ const q = ({
44
44
  )
45
45
  }
46
46
  );
47
- }, G = ({
47
+ }, H = ({
48
48
  maxItems: t = 3,
49
49
  position: s = "bottom-right",
50
50
  insets: o = {},
@@ -71,7 +71,7 @@ const q = ({
71
71
  },
72
72
  ...p,
73
73
  children: m.map((i) => /* @__PURE__ */ l(
74
- q,
74
+ Q,
75
75
  {
76
76
  item: i,
77
77
  durationMs: b(i, r),
@@ -88,5 +88,5 @@ const q = ({
88
88
  ) : null;
89
89
  };
90
90
  export {
91
- G as Toaster
91
+ H as Toaster
92
92
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as m, jsx as c } from "react/jsx-runtime";
2
2
  import { useDisabledContext as u, cn as p } from "../../../../libs/utils-shared/dist/index.js";
3
3
  import { cva as f } from "class-variance-authority";
4
- import { useCommonTranslation as b } from "../../../../i18n/useCommonTranslation.js";
4
+ import { useCommonTranslation as b } from "../../../../translations/translations.js";
5
5
  import { TriangleDown as v } from "../../symbols/icons/TriangleDown.js";
6
6
  import { TriangleUp as g } from "../../symbols/icons/TriangleUp.js";
7
7
  function x(e) {
@@ -40,7 +40,7 @@ const T = f("inline-flex items-center", {
40
40
  negative: v,
41
41
  neutral: null
42
42
  };
43
- function L({
43
+ function D({
44
44
  value: e,
45
45
  size: t = "md",
46
46
  disabled: r = !1,
@@ -67,5 +67,5 @@ function L({
67
67
  );
68
68
  }
69
69
  export {
70
- L as Trend
70
+ D as Trend
71
71
  };
@@ -1,9 +1,9 @@
1
1
  import { jsxs as x, jsx as t } from "react/jsx-runtime";
2
2
  import { useDisabledContext as f, 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 z, Slottable as N } from "@radix-ui/react-slot";
4
4
  import { cva as l } from "class-variance-authority";
5
- import { Spinner as B } from "../../core/Spinner/Spinner.js";
6
- const N = l(
5
+ import { Spinner as S } from "../../core/Spinner/Spinner.js";
6
+ const B = l(
7
7
  "inline-flex size-fit cursor-pointer items-center justify-center rounded-full transition-colors duration-200 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
8
8
  {
9
9
  variants: {
@@ -65,7 +65,7 @@ const N = l(
65
65
  true: "text-disabled"
66
66
  }
67
67
  }
68
- }), M = ({
68
+ }), C = ({
69
69
  ref: c,
70
70
  className: u,
71
71
  appearance: a = "base",
@@ -92,7 +92,7 @@ const N = l(
92
92
  r ? z : "button",
93
93
  {
94
94
  className: h(
95
- N({ disabled: e, loading: n, appearance: a, size: s, isFull: p }),
95
+ B({ disabled: e, loading: n, appearance: a, size: s, isFull: p }),
96
96
  u
97
97
  ),
98
98
  ref: c,
@@ -103,7 +103,7 @@ const N = l(
103
103
  ...m,
104
104
  children: [
105
105
  n && /* @__PURE__ */ t(
106
- B,
106
+ S,
107
107
  {
108
108
  size: d,
109
109
  className: b({ appearance: a, disabled: e })
@@ -116,12 +116,12 @@ const N = l(
116
116
  className: b({ appearance: a, disabled: e })
117
117
  }
118
118
  ),
119
- i && (r ? /* @__PURE__ */ t(S, { children: i }) : /* @__PURE__ */ t("span", { className: "line-clamp-2 text-left", children: i }))
119
+ i && (r ? /* @__PURE__ */ t(N, { children: i }) : /* @__PURE__ */ t("span", { className: "line-clamp-2 text-left", children: i }))
120
120
  ]
121
121
  }
122
122
  );
123
123
  };
124
124
  export {
125
- M as BaseButton,
126
- N as baseButtonVariants
125
+ C as BaseButton,
126
+ B as baseButtonVariants
127
127
  };
@@ -8,7 +8,7 @@ import { BaseInputLabel as re } from "./BaseInputLabel.js";
8
8
  import { BaseInputMultiline as ne } from "./BaseInputMultiline.js";
9
9
  import { BaseInputSingleLine as se } from "./BaseInputSingleLine.js";
10
10
  import { useBaseInputValue as ie } from "./useBaseInputValue/useBaseInputValue.js";
11
- import { useCommonTranslation as oe } from "../../../../i18n/useCommonTranslation.js";
11
+ import { useCommonTranslation as oe } from "../../../../translations/translations.js";
12
12
  import { InteractiveIcon as le } from "../../core/InteractiveIcon/InteractiveIcon.js";
13
13
  import { DeleteCircleFill as ce } from "../../symbols/icons/DeleteCircleFill.js";
14
14
  const ue = O(
@@ -43,22 +43,22 @@ const ue = O(
43
43
  hasLabel: !1
44
44
  }
45
45
  }
46
- ), xe = ({
46
+ ), Ve = ({
47
47
  ref: w,
48
48
  className: B,
49
49
  containerClassName: C,
50
50
  inputClassName: L,
51
- labelClassName: V,
51
+ labelClassName: N,
52
52
  label: t,
53
- id: x,
54
- disabled: y,
53
+ id: V,
54
+ disabled: x,
55
55
  helperText: l,
56
56
  maxCount: r,
57
57
  status: n,
58
- suffix: N,
58
+ suffix: y,
59
59
  prefix: P,
60
- onClear: j,
61
- hideClearButton: F = !1,
60
+ onClear: F,
61
+ hideClearButton: j = !1,
62
62
  readOnly: m = !1,
63
63
  "aria-invalid": D,
64
64
  onChange: R,
@@ -72,24 +72,24 @@ const ue = O(
72
72
  }) => {
73
73
  const h = Z({
74
74
  consumerName: "BaseInput",
75
- mergeWith: { disabled: y }
75
+ mergeWith: { disabled: x }
76
76
  }), { t: k } = oe(), {
77
77
  inputRef: q,
78
78
  composedRef: f,
79
79
  currentValue: z,
80
80
  hasContent: M,
81
- handleChange: T,
82
- handleClear: X
81
+ handleChange: Q,
82
+ handleClear: T
83
83
  } = ie({
84
84
  value: i.value,
85
85
  defaultValue: i.defaultValue,
86
86
  onChange: R,
87
- onClear: j,
87
+ onClear: F,
88
88
  ref: w
89
- }), E = ee(), c = x || `input-${E}`, G = D ?? (n === "error" ? !0 : void 0), { inputPlaceholder: J, labelStaysFloatedWithPlaceholder: K } = _({
89
+ }), E = ee(), c = V || `input-${E}`, G = D ?? (n === "error" ? !0 : void 0), { inputPlaceholder: J, labelStaysFloatedWithPlaceholder: K } = _({
90
90
  label: t,
91
91
  placeholder: S
92
- }), Q = M && !h && !m && !F, U = z.length, p = !!(r && r > 0), g = `${c}-helper`, o = !!l, b = {
92
+ }), U = M && !h && !m && !j, X = z.length, p = !!(r && r > 0), g = `${c}-helper`, o = !!l, b = {
93
93
  id: c,
94
94
  disabled: h,
95
95
  readOnly: m,
@@ -98,17 +98,17 @@ const ue = O(
98
98
  "aria-describedby": o ? g : void 0,
99
99
  hasLabel: !!t,
100
100
  className: L,
101
- onChange: T
102
- }, u = Q ? /* @__PURE__ */ e(
101
+ onChange: Q
102
+ }, u = U ? /* @__PURE__ */ e(
103
103
  le,
104
104
  {
105
105
  iconType: "filled",
106
106
  icon: ce,
107
107
  size: 20,
108
- onClick: X,
108
+ onClick: T,
109
109
  "aria-label": k("components.baseInput.clearInputAriaLabel")
110
110
  }
111
- ) : N;
111
+ ) : y;
112
112
  return /* @__PURE__ */ d("div", { className: B, children: [
113
113
  /* @__PURE__ */ d(
114
114
  "div",
@@ -158,7 +158,7 @@ const ue = O(
158
158
  status: n,
159
159
  floated: K,
160
160
  multiline: s,
161
- className: V,
161
+ className: N,
162
162
  children: t
163
163
  }
164
164
  ),
@@ -182,12 +182,12 @@ const ue = O(
182
182
  status: n
183
183
  }
184
184
  ),
185
- p && r != null && /* @__PURE__ */ e(te, { count: U, maxCount: r })
185
+ p && r != null && /* @__PURE__ */ e(te, { count: X, maxCount: r })
186
186
  ]
187
187
  }
188
188
  )
189
189
  ] });
190
190
  };
191
191
  export {
192
- xe as BaseInput
192
+ Ve as BaseInput
193
193
  };
@@ -1,4 +1,4 @@
1
- import { debounce as E } from "../../../../../libs/utils-shared/dist/index.js";
1
+ import { debounce as y } from "../../../../../libs/utils-shared/dist/index.js";
2
2
  import { useRef as u, useCallback as g, useLayoutEffect as w } from "react";
3
3
  const z = 166, p = "x", d = (o) => Number.parseInt(o, 10) || 0, O = ({
4
4
  minLines: o,
@@ -16,9 +16,9 @@ const z = 166, p = "x", d = (o) => Number.parseInt(o, 10) || 0, O = ({
16
16
  const f = e.scrollHeight;
17
17
  let n = Math.max(o * f, b);
18
18
  h && (n = Math.min(h * f, n)), n = Math.max(n, f);
19
- const x = d(r.paddingTop) + d(r.paddingBottom), R = d(r.borderTopWidth) + d(r.borderBottomWidth), y = r.boxSizing === "border-box" ? x + R : 0;
19
+ const x = d(r.paddingTop) + d(r.paddingBottom), R = d(r.borderTopWidth) + d(r.borderBottomWidth), E = r.boxSizing === "border-box" ? x + R : 0;
20
20
  return {
21
- height: n + y,
21
+ height: n + E,
22
22
  // A pixel of tolerance absorbs subpixel rounding.
23
23
  fits: Math.abs(n - b) <= 1
24
24
  };
@@ -32,7 +32,7 @@ const z = 166, p = "x", d = (o) => Number.parseInt(o, 10) || 0, O = ({
32
32
  return w(a), w(() => {
33
33
  const t = i.current;
34
34
  if (!t) return;
35
- const e = E(a, z);
35
+ const e = y(a, z);
36
36
  window.addEventListener("resize", e);
37
37
  let r;
38
38
  return typeof ResizeObserver < "u" && (r = new ResizeObserver(() => {
@@ -41,8 +41,8 @@ const u = x(
41
41
  }
42
42
  }
43
43
  ), z = ({
44
- ref: e,
45
- className: a,
44
+ ref: a,
45
+ className: e,
46
46
  appearance: t,
47
47
  size: s,
48
48
  variant: r,
@@ -61,9 +61,9 @@ const u = x(
61
61
  {
62
62
  className: o(
63
63
  u({ appearance: t, size: s, variant: r, disabled: !!l }),
64
- a
64
+ e
65
65
  ),
66
- ref: e,
66
+ ref: a,
67
67
  ...b,
68
68
  children: [
69
69
  d,
@@ -22,8 +22,8 @@ const h = a("inline-block shrink-0", {
22
22
  size: n = 24,
23
23
  className: i = "",
24
24
  children: c,
25
- viewBox: e,
26
- xmlns: r,
25
+ viewBox: r,
26
+ xmlns: e,
27
27
  ...t
28
28
  }) => k(
29
29
  "svg",
@@ -31,8 +31,8 @@ const h = a("inline-block shrink-0", {
31
31
  ref: o,
32
32
  fill: "none",
33
33
  "aria-hidden": "true",
34
- xmlns: r,
35
- viewBox: e,
34
+ xmlns: e,
35
+ viewBox: r,
36
36
  className: s(h({ size: n }), "inline-block", i),
37
37
  ...t
38
38
  },
@@ -1,8 +1,8 @@
1
1
  import { useDisabledContext as c, cn as i } from "../../../../libs/utils-shared/dist/index.js";
2
2
  import { createElement as p } from "react";
3
3
  import { Icon as d } from "./Icon.js";
4
- const x = (e, r) => {
5
- const t = ({
4
+ const x = (e, t) => {
5
+ const r = ({
6
6
  ref: o,
7
7
  className: s,
8
8
  disabled: a,
@@ -15,12 +15,12 @@ const x = (e, r) => {
15
15
  return p(d, {
16
16
  ref: o,
17
17
  className: i(s, n && "text-disabled"),
18
- viewBox: r.props.viewBox,
18
+ viewBox: t.props.viewBox,
19
19
  ...m,
20
- children: r.props.children
20
+ children: t.props.children
21
21
  });
22
22
  };
23
- return t.displayName = e, t;
23
+ return r.displayName = e, r;
24
24
  };
25
25
  export {
26
26
  x as default
@@ -0,0 +1,29 @@
1
+ /**
2
+ * AiBubble 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/react-icon--base&args=name:AiBubble 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 { AiBubble } from '@ledgerhq/lumen-ui-react/symbols';
18
+ *
19
+ * <AiBubble />
20
+ *
21
+ * @example
22
+ * // With custom size and className
23
+ * <AiBubble size={40} className="text-warning" />
24
+ */
25
+ export declare const AiBubble: {
26
+ ({ ref, className, disabled, ...props }: Omit<import('../Icon').IconProps, "children">): import('react').FunctionComponentElement<import('../Icon').IconProps>;
27
+ displayName: string;
28
+ };
29
+ //# sourceMappingURL=AiBubble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AiBubble.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/symbols/icons/AiBubble.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,QAAQ;;;CAuBpB,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
+ import i from "../Icon/createIcon.js";
3
+ const t = i(
4
+ "AiBubble",
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: [
14
+ /* @__PURE__ */ r("g", { clipPath: "url(#clip0_10870_31)", children: /* @__PURE__ */ r(
15
+ "path",
16
+ {
17
+ stroke: "currentColor",
18
+ strokeLinecap: "round",
19
+ strokeLinejoin: "round",
20
+ d: "M5.328 9.168h3m.256.779-1.26-3.893h-.982l-1.26 3.893m5.643 0V6.054M.995 8.001a6.97 6.97 0 0 0 1.269 4.014l-.492 2.214 2.214-.492A7.003 7.003 0 1 0 .995 8"
21
+ }
22
+ ) }),
23
+ /* @__PURE__ */ r("defs", { children: /* @__PURE__ */ r("clipPath", { id: "clip0_10870_31", children: /* @__PURE__ */ r("path", { fill: "#fff", d: "M0 0h16v16H0z" }) }) })
24
+ ]
25
+ }
26
+ )
27
+ );
28
+ export {
29
+ t as AiBubble
30
+ };