@ledgerhq/lumen-ui-react 0.1.61 → 0.1.63

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 (169) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +80 -63
  4. package/dist/lib/Components/core/AddressInput/AddressInput.js +1 -1
  5. package/dist/lib/Components/core/AmountDisplay/AmountDisplay.js +1 -1
  6. package/dist/lib/Components/core/AmountInput/AmountInput.js +17 -17
  7. package/dist/lib/Components/core/AmountInput/useAmountInputValue/useAmountInputValue.js +3 -3
  8. package/dist/lib/Components/core/Avatar/Avatar.js +7 -7
  9. package/dist/lib/Components/core/Avatar/resolveAvatarColor.js +2 -2
  10. package/dist/lib/Components/core/AvatarButton/AvatarButton.js +2 -2
  11. package/dist/lib/Components/core/Banner/Banner.js +9 -9
  12. package/dist/lib/Components/core/Button/Button.js +4 -4
  13. package/dist/lib/Components/core/Card/Card.js +15 -15
  14. package/dist/lib/Components/core/CardButton/CardButton.d.ts +2 -0
  15. package/dist/lib/Components/core/CardButton/CardButton.d.ts.map +1 -1
  16. package/dist/lib/Components/core/CardButton/CardButton.js +4 -4
  17. package/dist/lib/Components/core/ContentBanner/ContentBanner.js +1 -1
  18. package/dist/lib/Components/core/DataTable/DataTable.js +42 -42
  19. package/dist/lib/Components/core/Dialog/DialogHeader/DialogHeader.js +1 -1
  20. package/dist/lib/Components/core/Divider/Divider.js +4 -4
  21. package/dist/lib/Components/core/DotCount/DotCount.js +3 -3
  22. package/dist/lib/Components/core/DotIcon/DotIcon.js +11 -11
  23. package/dist/lib/Components/core/DotSymbol/DotSymbol.js +7 -7
  24. package/dist/lib/Components/core/Link/Link.d.ts +1 -1
  25. package/dist/lib/Components/core/Link/Link.d.ts.map +1 -1
  26. package/dist/lib/Components/core/Link/Link.js +25 -23
  27. package/dist/lib/Components/core/Link/types.d.ts +1 -1
  28. package/dist/lib/Components/core/Link/types.d.ts.map +1 -1
  29. package/dist/lib/Components/core/ListItem/ListItem.js +8 -8
  30. package/dist/lib/Components/core/MediaBanner/MediaBanner.js +4 -4
  31. package/dist/lib/Components/core/MediaCard/MediaCard.js +1 -1
  32. package/dist/lib/Components/core/MediaImage/MediaImage.js +5 -5
  33. package/dist/lib/Components/core/Menu/Menu.js +25 -25
  34. package/dist/lib/Components/core/NavBar/CoinCapsule.js +4 -4
  35. package/dist/lib/Components/core/NavBar/NavBar.js +3 -3
  36. package/dist/lib/Components/core/PageIndicator/PageIndicator.js +5 -5
  37. package/dist/lib/Components/core/Pagination/Pagination.js +1 -1
  38. package/dist/lib/Components/core/Popover/Popover.js +13 -13
  39. package/dist/lib/Components/core/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  40. package/dist/lib/Components/core/SegmentedControl/SegmentedControl.js +80 -84
  41. package/dist/lib/Components/core/Select/Select.d.ts.map +1 -1
  42. package/dist/lib/Components/core/Select/Select.js +108 -107
  43. package/dist/lib/Components/core/SideBar/SideBar.js +33 -33
  44. package/dist/lib/Components/core/Spinner/Spinner.js +1 -1
  45. package/dist/lib/Components/core/Spot/Spot.js +13 -13
  46. package/dist/lib/Components/core/Stepper/Stepper.d.ts +4 -3
  47. package/dist/lib/Components/core/Stepper/Stepper.d.ts.map +1 -1
  48. package/dist/lib/Components/core/Stepper/Stepper.js +137 -62
  49. package/dist/lib/Components/core/Stepper/types.d.ts +12 -2
  50. package/dist/lib/Components/core/Stepper/types.d.ts.map +1 -1
  51. package/dist/lib/Components/core/Subheader/Subheader.d.ts.map +1 -1
  52. package/dist/lib/Components/core/Subheader/Subheader.js +33 -29
  53. package/dist/lib/Components/core/Table/Table.js +10 -10
  54. package/dist/lib/Components/core/ThemeProvider/ThemeProvider.js +6 -6
  55. package/dist/lib/Components/core/ThemeProvider/ThemeProvider.types.d.ts +1 -1
  56. package/dist/lib/Components/core/ThemeProvider/ThemeProvider.types.d.ts.map +1 -1
  57. package/dist/lib/Components/core/Timeline/Timeline.d.ts +54 -0
  58. package/dist/lib/Components/core/Timeline/Timeline.d.ts.map +1 -0
  59. package/dist/lib/Components/core/Timeline/Timeline.js +228 -0
  60. package/dist/lib/Components/core/Timeline/index.d.ts +3 -0
  61. package/dist/lib/Components/core/Timeline/index.d.ts.map +1 -0
  62. package/dist/lib/Components/core/Timeline/types.d.ts +148 -0
  63. package/dist/lib/Components/core/Timeline/types.d.ts.map +1 -0
  64. package/dist/lib/Components/core/Toast/Toast.d.ts +25 -0
  65. package/dist/lib/Components/core/Toast/Toast.d.ts.map +1 -0
  66. package/dist/lib/Components/core/Toast/Toast.js +68 -0
  67. package/dist/lib/Components/core/Toast/Toaster.d.ts +27 -0
  68. package/dist/lib/Components/core/Toast/Toaster.d.ts.map +1 -0
  69. package/dist/lib/Components/core/Toast/Toaster.js +92 -0
  70. package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts +15 -0
  71. package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts.map +1 -0
  72. package/dist/lib/Components/core/Toast/hooks/useToastCollapse.js +15 -0
  73. package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts +24 -0
  74. package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts.map +1 -0
  75. package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.js +27 -0
  76. package/dist/lib/Components/core/Toast/index.d.ts +5 -0
  77. package/dist/lib/Components/core/Toast/index.d.ts.map +1 -0
  78. package/dist/lib/Components/core/Toast/styles.d.ts +20 -0
  79. package/dist/lib/Components/core/Toast/styles.d.ts.map +1 -0
  80. package/dist/lib/Components/core/Toast/styles.js +77 -0
  81. package/dist/lib/Components/core/Toast/types.d.ts +81 -0
  82. package/dist/lib/Components/core/Toast/types.d.ts.map +1 -0
  83. package/dist/lib/Components/core/Trend/Trend.js +3 -3
  84. package/dist/lib/Components/core/index.d.ts +2 -0
  85. package/dist/lib/Components/core/index.d.ts.map +1 -1
  86. package/dist/lib/Components/internal/BaseButton/BaseButton.js +7 -7
  87. package/dist/lib/Components/internal/BaseInput/BaseInput.js +22 -22
  88. package/dist/lib/Components/internal/BaseInput/BaseInputMultiline.js +12 -12
  89. package/dist/lib/Components/internal/BaseInput/useAutosizeTextarea/useAutosizeTextarea.js +4 -4
  90. package/dist/lib/Components/internal/BaseTag/BaseTag.js +4 -4
  91. package/dist/lib/Components/symbols/Icon/createIcon.js +3 -3
  92. package/dist/lib/Components/visualization/CartesianChart/CartesianChart.d.ts.map +1 -1
  93. package/dist/lib/Components/visualization/CartesianChart/CartesianChart.js +36 -35
  94. package/dist/lib/Components/visualization/CartesianChart/types.d.ts +1 -1
  95. package/dist/lib/Components/visualization/DonutChart/DonutChart.d.ts.map +1 -1
  96. package/dist/lib/Components/visualization/DonutChart/DonutChart.js +31 -31
  97. package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +2 -2
  98. package/dist/lib/Components/visualization/DonutChart/DonutRing.d.ts.map +1 -1
  99. package/dist/lib/Components/visualization/DonutChart/DonutRing.js +13 -12
  100. package/dist/lib/Components/visualization/DonutChart/types.d.ts +1 -1
  101. package/dist/lib/Components/visualization/Legend/Legend.d.ts +1 -1
  102. package/dist/lib/Components/visualization/Legend/Legend.d.ts.map +1 -1
  103. package/dist/lib/Components/visualization/Legend/Legend.js +6 -10
  104. package/dist/lib/Components/visualization/Legend/types.d.ts +2 -2
  105. package/dist/lib/Components/visualization/LineChart/LineChart.d.ts +1 -1
  106. package/dist/lib/Components/visualization/LineChart/LineChart.d.ts.map +1 -1
  107. package/dist/lib/Components/visualization/LineChart/LineChart.js +90 -84
  108. package/dist/lib/Components/visualization/LineChart/types.d.ts +1 -1
  109. package/dist/lib/Components/visualization/LineChart/utils.d.ts +2 -1
  110. package/dist/lib/Components/visualization/LineChart/utils.d.ts.map +1 -1
  111. package/dist/lib/Components/visualization/LineChart/utils.js +23 -22
  112. package/dist/lib/Components/visualization/config.d.ts +0 -3
  113. package/dist/lib/Components/visualization/config.d.ts.map +1 -1
  114. package/dist/lib/Components/visualization/config.js +3 -6
  115. package/dist/libs/utils-shared/dist/index.js +353 -140
  116. package/dist/package.json +4 -6
  117. package/dist/translations/index.d.ts +3 -0
  118. package/dist/translations/index.d.ts.map +1 -0
  119. package/dist/{i18n → translations}/languages.d.ts +0 -5
  120. package/dist/translations/languages.d.ts.map +1 -0
  121. package/dist/{i18n → translations}/languages.js +1 -2
  122. package/dist/{i18n → translations}/locales/en.json.d.ts +11 -0
  123. package/dist/{i18n → translations}/locales/en.json.js +2 -2
  124. package/dist/translations/translations.d.ts +727 -0
  125. package/dist/translations/translations.d.ts.map +1 -0
  126. package/dist/translations/translations.js +22 -0
  127. package/package.json +4 -6
  128. package/dist/_virtual/dynamic-import-helper.js +0 -9
  129. package/dist/i18n/I18nProvider.d.ts +0 -8
  130. package/dist/i18n/I18nProvider.d.ts.map +0 -1
  131. package/dist/i18n/I18nProvider.js +0 -14
  132. package/dist/i18n/i18n.d.ts +0 -12
  133. package/dist/i18n/i18n.d.ts.map +0 -1
  134. package/dist/i18n/i18n.js +0 -42
  135. package/dist/i18n/index.d.ts +0 -4
  136. package/dist/i18n/index.d.ts.map +0 -1
  137. package/dist/i18n/languages.d.ts.map +0 -1
  138. package/dist/i18n/useCommonTranslation.d.ts +0 -2
  139. package/dist/i18n/useCommonTranslation.d.ts.map +0 -1
  140. package/dist/i18n/useCommonTranslation.js +0 -6
  141. package/dist/node_modules/i18next/dist/esm/i18next.js +0 -1479
  142. package/dist/node_modules/react-i18next/dist/es/I18nextProvider.js +0 -19
  143. package/dist/node_modules/react-i18next/dist/es/context.js +0 -17
  144. package/dist/node_modules/react-i18next/dist/es/defaults.js +0 -22
  145. package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +0 -8
  146. package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +0 -11
  147. package/dist/node_modules/react-i18next/dist/es/unescape.js +0 -25
  148. package/dist/node_modules/react-i18next/dist/es/useTranslation.js +0 -65
  149. package/dist/node_modules/react-i18next/dist/es/utils.js +0 -57
  150. /package/dist/{i18n → translations}/locales/de.json.d.ts +0 -0
  151. /package/dist/{i18n → translations}/locales/de.json.js +0 -0
  152. /package/dist/{i18n → translations}/locales/es.json.d.ts +0 -0
  153. /package/dist/{i18n → translations}/locales/es.json.js +0 -0
  154. /package/dist/{i18n → translations}/locales/fr.json.d.ts +0 -0
  155. /package/dist/{i18n → translations}/locales/fr.json.js +0 -0
  156. /package/dist/{i18n → translations}/locales/ja.json.d.ts +0 -0
  157. /package/dist/{i18n → translations}/locales/ja.json.js +0 -0
  158. /package/dist/{i18n → translations}/locales/ko.json.d.ts +0 -0
  159. /package/dist/{i18n → translations}/locales/ko.json.js +0 -0
  160. /package/dist/{i18n → translations}/locales/pt.json.d.ts +0 -0
  161. /package/dist/{i18n → translations}/locales/pt.json.js +0 -0
  162. /package/dist/{i18n → translations}/locales/ru.json.d.ts +0 -0
  163. /package/dist/{i18n → translations}/locales/ru.json.js +0 -0
  164. /package/dist/{i18n → translations}/locales/th.json.d.ts +0 -0
  165. /package/dist/{i18n → translations}/locales/th.json.js +0 -0
  166. /package/dist/{i18n → translations}/locales/tr.json.d.ts +0 -0
  167. /package/dist/{i18n → translations}/locales/tr.json.js +0 -0
  168. /package/dist/{i18n → translations}/locales/zh.json.d.ts +0 -0
  169. /package/dist/{i18n → translations}/locales/zh.json.js +0 -0
@@ -1,11 +1,11 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { useDisabledContext as x, cn as w } from "../../../../libs/utils-shared/dist/index.js";
3
3
  import { cva as y } from "class-variance-authority";
4
- import { useMemo as P } from "react";
5
- import { Spinner as C } from "../Spinner/Spinner.js";
6
- import { InformationFill as F } from "../../symbols/icons/InformationFill.js";
7
- import { WarningFill as k } from "../../symbols/icons/WarningFill.js";
8
- import { DeleteCircleFill as N } from "../../symbols/icons/DeleteCircleFill.js";
4
+ import { useMemo as F } from "react";
5
+ import { Spinner as P } from "../Spinner/Spinner.js";
6
+ import { InformationFill as C } from "../../symbols/icons/InformationFill.js";
7
+ import { WarningFill as N } from "../../symbols/icons/WarningFill.js";
8
+ import { DeleteCircleFill as k } from "../../symbols/icons/DeleteCircleFill.js";
9
9
  import { CheckmarkCircleFill as S } from "../../symbols/icons/CheckmarkCircleFill.js";
10
10
  import { BluetoothCircleFill as v } from "../../symbols/icons/BluetoothCircleFill.js";
11
11
  const I = y(
@@ -47,7 +47,7 @@ const I = y(
47
47
  48: "heading-5",
48
48
  56: "heading-4",
49
49
  72: "heading-2"
50
- }, o = i[s] ?? 20, a = c[s] ?? "heading-5", { componentProps: m, content: l } = P(() => {
50
+ }, o = i[s] ?? 20, a = c[s] ?? "heading-5", { componentProps: m, content: p } = F(() => {
51
51
  if (t.appearance === "icon") {
52
52
  const { icon: n, ...r } = t;
53
53
  return {
@@ -69,18 +69,18 @@ const I = y(
69
69
  case "check":
70
70
  return /* @__PURE__ */ e(S, { size: o });
71
71
  case "error":
72
- return /* @__PURE__ */ e(N, { size: o });
73
- case "warning":
74
72
  return /* @__PURE__ */ e(k, { size: o });
73
+ case "warning":
74
+ return /* @__PURE__ */ e(N, { size: o });
75
75
  case "info":
76
- return /* @__PURE__ */ e(F, { size: o });
77
- case "loader":
78
76
  return /* @__PURE__ */ e(C, { size: o });
77
+ case "loader":
78
+ return /* @__PURE__ */ e(P, { size: o });
79
79
  }
80
80
  })();
81
81
  return { componentProps: t, content: z };
82
82
  }, [t, o, a]), {
83
- appearance: p,
83
+ appearance: l,
84
84
  className: d,
85
85
  disabled: u = !1,
86
86
  size: h = 48,
@@ -97,13 +97,13 @@ const I = y(
97
97
  className: w(
98
98
  I({
99
99
  disabled: g,
100
- appearance: p,
100
+ appearance: l,
101
101
  size: h
102
102
  }),
103
103
  d
104
104
  ),
105
105
  ...f,
106
- children: l
106
+ children: p
107
107
  }
108
108
  );
109
109
  };
@@ -1,13 +1,14 @@
1
1
  import { StepperProps } from './types';
2
2
  /**
3
3
  * A circular stepper component showing progress as current step out of total steps.
4
- * Renders a track arc with a progress arc and a center label.
4
+ * Renders a segmented track with progress and a center label.
5
5
  *
6
6
  * @see Figma – Stepper](https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7/2.-Components-Library?node-id=11977-94&m=dev)
7
7
  *
8
8
  * @example
9
9
  * <Stepper currentStep={1} totalSteps={4} />
10
- * <Stepper currentStep={0} totalSteps={9} disabled /> // Shows minimal dot, disabled style
10
+ * <Stepper currentStep={0} totalSteps={8} disabled /> // Empty progress, disabled style
11
+ * <Stepper currentStep={2} totalSteps={4} size="lg" />
11
12
  */
12
- export declare const Stepper: ({ className, currentStep, totalSteps, disabled: disabledProp, label, ref, ...props }: StepperProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const Stepper: ({ className, appearance, size, currentStep, totalSteps, disabled: disabledProp, label, ref, ...props }: StepperProps) => import("react/jsx-runtime").JSX.Element;
13
14
  //# sourceMappingURL=Stepper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Stepper/Stepper.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAK5C;;;;;;;;;GASG;AACH,eAAO,MAAM,OAAO,GAAI,sFAQrB,YAAY,4CAyFd,CAAC"}
1
+ {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Stepper/Stepper.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA2B5C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO,GAAI,wGAUrB,YAAY,4CAwId,CAAC"}
@@ -1,107 +1,182 @@
1
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import { useDisabledContext as v, cn as d, getStepperCalculations as D } from "../../../../libs/utils-shared/dist/index.js";
3
- const s = 48, i = 4, W = ({
4
- className: m,
5
- currentStep: t,
6
- totalSteps: r,
7
- disabled: h = !1,
8
- label: o,
9
- ref: u,
10
- ...f
1
+ import { jsxs as n, jsx as s } from "react/jsx-runtime";
2
+ import { useDisabledContext as w, cn as l, getStepperCalculations as $ } from "../../../../libs/utils-shared/dist/index.js";
3
+ import { cva as z } from "class-variance-authority";
4
+ import { useId as M } from "react";
5
+ import { useCommonTranslation as j } from "../../../../translations/translations.js";
6
+ const A = {
7
+ md: { px: 48, strokeWidth: 4, root: "size-48", label: "body-2" },
8
+ lg: { px: 72, strokeWidth: 6, root: "size-72", label: "heading-4" }
9
+ }, I = z("transition-[stroke] duration-300 ease-in-out", {
10
+ variants: {
11
+ appearance: { accent: "", success: "" },
12
+ disabled: { true: "", false: "" }
13
+ },
14
+ compoundVariants: [
15
+ {
16
+ appearance: "accent",
17
+ disabled: !1,
18
+ class: "stroke-active"
19
+ },
20
+ {
21
+ appearance: "success",
22
+ disabled: !1,
23
+ class: "stroke-success"
24
+ },
25
+ { disabled: !0, class: "stroke-muted-subtle-hover" }
26
+ ]
27
+ }), E = ({
28
+ className: k,
29
+ appearance: x = "accent",
30
+ size: b = "md",
31
+ currentStep: r,
32
+ totalSteps: a,
33
+ disabled: g = !1,
34
+ label: t,
35
+ ref: y,
36
+ ...N
11
37
  }) => {
12
- const k = v({
38
+ const o = w({
13
39
  consumerName: "Stepper",
14
- mergeWith: { disabled: h }
15
- }), {
16
- displayLabel: p,
17
- r: l,
18
- cx: n,
19
- cy: c,
20
- trackDashArray: b,
21
- progressDashArray: x,
22
- progressDashOffset: y
23
- } = D({
24
- currentStep: t,
25
- totalSteps: r,
26
- size: s,
27
- label: o,
40
+ mergeWith: { disabled: g }
41
+ }), { t: v } = j(), u = M(), {
42
+ px: e,
43
+ strokeWidth: i,
44
+ root: D,
45
+ label: c
46
+ } = A[b], {
47
+ r: d,
48
+ cx: m,
49
+ cy: h,
50
+ progressDashArray: p,
51
+ progressMaskDashArray: C,
52
+ progressDashOffset: W,
53
+ dashPatternOffset: f
54
+ } = $({
55
+ currentStep: r,
56
+ totalSteps: a,
57
+ size: e,
58
+ label: t,
28
59
  strokeWidth: i
29
60
  });
30
- return /* @__PURE__ */ a(
61
+ return /* @__PURE__ */ n(
31
62
  "div",
32
63
  {
33
- ref: u,
64
+ ref: y,
34
65
  role: "progressbar",
35
- "aria-valuenow": t,
66
+ "aria-valuenow": r,
36
67
  "aria-valuemin": 1,
37
- "aria-valuemax": r,
38
- "aria-label": p,
39
- className: d(
40
- "relative flex size-48 shrink-0 items-center justify-center rounded-full",
41
- m
68
+ "aria-valuemax": a,
69
+ "aria-label": t ?? v("components.stepper.progressAriaLabel", {
70
+ currentStep: Math.min(Math.max(r, 0), a),
71
+ totalSteps: a
72
+ }),
73
+ className: l(
74
+ "relative flex shrink-0 items-center justify-center rounded-full",
75
+ D,
76
+ k
42
77
  ),
43
- ...f,
78
+ ...N,
44
79
  children: [
45
- /* @__PURE__ */ a(
80
+ /* @__PURE__ */ n(
46
81
  "svg",
47
82
  {
48
- width: s,
49
- height: s,
50
- viewBox: `0 0 ${s} ${s}`,
51
- className: "rotate-135",
83
+ width: e,
84
+ height: e,
85
+ viewBox: `0 0 ${e} ${e}`,
86
+ className: "-rotate-90",
52
87
  "aria-hidden": !0,
53
88
  children: [
54
- /* @__PURE__ */ e(
89
+ /* @__PURE__ */ s(
55
90
  "circle",
56
91
  {
57
- cx: n,
58
- cy: c,
59
- r: l,
92
+ cx: m,
93
+ cy: h,
94
+ r: d,
60
95
  fill: "none",
61
96
  stroke: "currentColor",
62
97
  strokeLinecap: "round",
63
98
  className: "stroke-muted-subtle",
64
99
  style: {
65
100
  strokeWidth: `${i}px`,
66
- strokeDasharray: b,
67
- strokeDashoffset: 0
101
+ strokeDasharray: p,
102
+ strokeDashoffset: f
68
103
  }
69
104
  }
70
105
  ),
71
- /* @__PURE__ */ e(
106
+ /* @__PURE__ */ s(
107
+ "mask",
108
+ {
109
+ id: u,
110
+ maskUnits: "userSpaceOnUse",
111
+ x: 0,
112
+ y: 0,
113
+ width: e,
114
+ height: e,
115
+ children: /* @__PURE__ */ s(
116
+ "circle",
117
+ {
118
+ cx: m,
119
+ cy: h,
120
+ r: d,
121
+ fill: "none",
122
+ stroke: "white",
123
+ className: "transition-[stroke-dashoffset] duration-300 ease-in-out",
124
+ style: {
125
+ strokeWidth: `${i}px`,
126
+ strokeDasharray: C,
127
+ strokeDashoffset: W
128
+ }
129
+ }
130
+ )
131
+ }
132
+ ),
133
+ /* @__PURE__ */ s(
72
134
  "circle",
73
135
  {
74
- cx: n,
75
- cy: c,
76
- r: l,
136
+ cx: m,
137
+ cy: h,
138
+ r: d,
77
139
  fill: "none",
78
140
  stroke: "currentColor",
79
141
  strokeLinecap: "round",
80
- className: d(
81
- k ? "stroke-muted-subtle-hover" : "stroke-active",
82
- "transition-[stroke-dashoffset,stroke] duration-300 ease-in-out"
83
- ),
142
+ mask: `url(#${u})`,
143
+ className: I({ appearance: x, disabled: o }),
84
144
  style: {
85
145
  strokeWidth: `${i}px`,
86
- strokeDasharray: x,
87
- strokeDashoffset: y
146
+ strokeDasharray: p,
147
+ strokeDashoffset: f
88
148
  }
89
149
  }
90
150
  )
91
151
  ]
92
152
  }
93
153
  ),
94
- /* @__PURE__ */ e("span", { className: "absolute inset-0 m-4 flex items-center justify-center text-base", children: o ? /* @__PURE__ */ e("span", { className: "body-2-semi-bold", children: o }) : /* @__PURE__ */ a("span", { children: [
95
- /* @__PURE__ */ e("span", { className: "body-1-semi-bold", children: Math.min(Math.max(t, 0), r) }),
96
- /* @__PURE__ */ a("span", { className: "body-2-semi-bold text-muted", children: [
97
- "/",
98
- r
99
- ] })
154
+ /* @__PURE__ */ s("span", { className: "absolute inset-0 m-4 flex min-w-0 items-center justify-center text-base", children: t ? /* @__PURE__ */ s(
155
+ "span",
156
+ {
157
+ className: l(c, "truncate", o && "text-disabled"),
158
+ children: t
159
+ }
160
+ ) : /* @__PURE__ */ n("span", { className: "truncate", children: [
161
+ /* @__PURE__ */ s("span", { className: l(c, o && "text-disabled"), children: Math.min(Math.max(r, 0), a) }),
162
+ /* @__PURE__ */ n(
163
+ "span",
164
+ {
165
+ className: l(
166
+ c,
167
+ o ? "text-disabled" : "text-muted"
168
+ ),
169
+ children: [
170
+ "/",
171
+ a
172
+ ]
173
+ }
174
+ )
100
175
  ] }) })
101
176
  ]
102
177
  }
103
178
  );
104
179
  };
105
180
  export {
106
- W as Stepper
181
+ E as Stepper
107
182
  };
@@ -1,7 +1,17 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
2
  export type StepperProps = {
3
3
  /**
4
- * Current step number (1-based). Use 0 or negative to show minimal dot (before starting).
4
+ * The visual style of the stepper's segments.
5
+ * @default accent
6
+ */
7
+ appearance?: 'accent' | 'success';
8
+ /**
9
+ * The overall dimensions of the stepper.
10
+ * @default md
11
+ */
12
+ size?: 'md' | 'lg';
13
+ /**
14
+ * Current step number (1-based).
5
15
  */
6
16
  currentStep: number;
7
17
  /**
@@ -9,7 +19,7 @@ export type StepperProps = {
9
19
  */
10
20
  totalSteps: number;
11
21
  /**
12
- * Whether the stepper is disabled. Changes the progress arc to a muted style.
22
+ * Whether the stepper is disabled. Changes the progress to a muted style.
13
23
  * @default false
14
24
  */
15
25
  disabled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Stepper/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Stepper/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAClC;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Subheader.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Subheader/Subheader.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,GAAI,kDAK5B,mBAAmB,4CAYrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,4CAK1B,iBAAiB,4CAgBnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,wCAK5B,mBAAmB,4CAUrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,wCAK3B,kBAAkB,4CAcpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,yBAG/B,sBAAsB,4CAaxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,mCAIlC,yBAAyB,4CAM3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,SAAS,GAAI,mCAIvB,cAAc,4CAMhB,CAAC"}
1
+ {"version":3,"file":"Subheader.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Subheader/Subheader.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,GAAI,kDAK5B,mBAAmB,4CAYrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,4CAK1B,iBAAiB,4CAgBnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,wCAK5B,mBAAmB,4CAUrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,wCAK3B,kBAAkB,4CAepB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,yBAG/B,sBAAsB,4CAaxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,mCAIlC,yBAAyB,4CAM3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,SAAS,GAAI,mCAIvB,cAAc,4CAMhB,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { cn as s } from "../../../../libs/utils-shared/dist/index.js";
3
- import { Information as i } from "../../symbols/icons/Information.js";
4
- import { ChevronRight as m } from "../../symbols/icons/ChevronRight.js";
5
- import { InteractiveIcon as c } from "../InteractiveIcon/InteractiveIcon.js";
6
- const b = ({
3
+ import { useCommonTranslation as i } from "../../../../translations/translations.js";
4
+ import { Information as m } from "../../symbols/icons/Information.js";
5
+ import { ChevronRight as c } from "../../symbols/icons/ChevronRight.js";
6
+ import { InteractiveIcon as u } from "../InteractiveIcon/InteractiveIcon.js";
7
+ const x = ({
7
8
  children: r,
8
9
  as: e = "h2",
9
10
  className: t,
@@ -18,7 +19,7 @@ const b = ({
18
19
  ...n,
19
20
  children: r
20
21
  }
21
- ), f = ({
22
+ ), g = ({
22
23
  children: r,
23
24
  onClick: e,
24
25
  className: t,
@@ -35,7 +36,7 @@ const b = ({
35
36
  ...n,
36
37
  children: r
37
38
  }
38
- ), x = ({
39
+ ), v = ({
39
40
  value: r,
40
41
  format: e,
41
42
  className: t,
@@ -50,23 +51,26 @@ const b = ({
50
51
  children: a
51
52
  }
52
53
  );
53
- }, g = ({
54
+ }, N = ({
54
55
  ref: r,
55
56
  iconType: e = "stroked",
56
57
  className: t,
57
58
  ...n
58
- }) => /* @__PURE__ */ o("span", { className: "flex shrink-0 items-center", children: /* @__PURE__ */ o(
59
- c,
60
- {
61
- ref: r,
62
- iconType: e,
63
- icon: i,
64
- size: 16,
65
- className: t,
66
- "aria-label": "More information",
67
- ...n
68
- }
69
- ) }), v = ({
59
+ }) => {
60
+ const { t: a } = i();
61
+ return /* @__PURE__ */ o("span", { className: "flex shrink-0 items-center", children: /* @__PURE__ */ o(
62
+ u,
63
+ {
64
+ ref: r,
65
+ iconType: e,
66
+ icon: m,
67
+ size: 16,
68
+ className: t,
69
+ "aria-label": a("components.subheader.moreInfoAriaLabel"),
70
+ ...n
71
+ }
72
+ ) });
73
+ }, S = ({
70
74
  className: r,
71
75
  ...e
72
76
  }) => /* @__PURE__ */ o(
@@ -78,23 +82,23 @@ const b = ({
78
82
  r
79
83
  ),
80
84
  ...e,
81
- children: /* @__PURE__ */ o(m, { size: 24 })
85
+ children: /* @__PURE__ */ o(c, { size: 24 })
82
86
  }
83
- ), S = ({
87
+ ), w = ({
84
88
  children: r,
85
89
  className: e,
86
90
  ...t
87
- }) => /* @__PURE__ */ o("p", { className: s("body-3 text-muted", e), ...t, children: r }), w = ({
91
+ }) => /* @__PURE__ */ o("p", { className: s("body-3 text-muted", e), ...t, children: r }), I = ({
88
92
  className: r,
89
93
  children: e,
90
94
  ...t
91
95
  }) => /* @__PURE__ */ o("div", { className: s("flex flex-col gap-4", r), ...t, children: e });
92
96
  export {
93
- w as Subheader,
94
- x as SubheaderCount,
95
- S as SubheaderDescription,
96
- g as SubheaderInfo,
97
- f as SubheaderRow,
98
- v as SubheaderShowMore,
99
- b as SubheaderTitle
97
+ I as Subheader,
98
+ v as SubheaderCount,
99
+ w as SubheaderDescription,
100
+ N as SubheaderInfo,
101
+ g as SubheaderRow,
102
+ S as SubheaderShowMore,
103
+ x as SubheaderTitle
100
104
  };
@@ -4,12 +4,12 @@ import { cva as c } from "class-variance-authority";
4
4
  import { useThrottledScrollBottom as N } from "./utils/useThrottledScrollBottom.js";
5
5
  import { Spot as w } from "../Spot/Spot.js";
6
6
  import { Information as y } from "../../symbols/icons/Information.js";
7
- import { useCommonTranslation as R } from "../../../../i18n/useCommonTranslation.js";
7
+ import { useCommonTranslation as R } from "../../../../translations/translations.js";
8
8
  import { ChevronUpDown as B } from "../../symbols/icons/ChevronUpDown.js";
9
9
  import { ChevronDescending as j } from "../../symbols/icons/ChevronDescending.js";
10
10
  import { ChevronAscending as I } from "../../symbols/icons/ChevronAscending.js";
11
11
  import { InteractiveIcon as A } from "../InteractiveIcon/InteractiveIcon.js";
12
- const [V, u] = h("Table"), k = c(
12
+ const [k, u] = h("Table"), q = c(
13
13
  "relative scrollbar-none w-full max-w-full border-collapse overflow-x-auto rounded-lg",
14
14
  {
15
15
  variants: {
@@ -32,12 +32,12 @@ const [V, u] = h("Table"), k = c(
32
32
  onScrollBottom: a,
33
33
  loading: r
34
34
  });
35
- return /* @__PURE__ */ l(V, { value: { appearance: e, loading: r }, children: /* @__PURE__ */ l(
35
+ return /* @__PURE__ */ l(k, { value: { appearance: e, loading: r }, children: /* @__PURE__ */ l(
36
36
  "div",
37
37
  {
38
38
  ...i,
39
39
  ref: o,
40
- className: k({ appearance: e, className: t }),
40
+ className: q({ appearance: e, className: t }),
41
41
  onScroll: d,
42
42
  children: n
43
43
  }
@@ -55,7 +55,7 @@ const [V, u] = h("Table"), k = c(
55
55
  className: e,
56
56
  ref: t,
57
57
  ...a
58
- }) => /* @__PURE__ */ l("colgroup", { ref: t, className: e, ...a, children: n }), q = c("", {
58
+ }) => /* @__PURE__ */ l("colgroup", { ref: t, className: e, ...a, children: n }), H = c("", {
59
59
  variants: {
60
60
  hideBelow: {
61
61
  xs: "hidden xs:table-column",
@@ -74,7 +74,7 @@ const [V, u] = h("Table"), k = c(
74
74
  "col",
75
75
  {
76
76
  ref: t,
77
- className: q({ hideBelow: e, className: n }),
77
+ className: H({ hideBelow: e, className: n }),
78
78
  ...a
79
79
  }
80
80
  ), _ = ({
@@ -107,7 +107,7 @@ const [V, u] = h("Table"), k = c(
107
107
  ...o,
108
108
  children: n
109
109
  }
110
- ), H = c("", {
110
+ ), S = c("", {
111
111
  variants: {
112
112
  appearance: {
113
113
  "no-background": "bg-canvas",
@@ -133,7 +133,7 @@ const [V, u] = h("Table"), k = c(
133
133
  "tr",
134
134
  {
135
135
  ref: a,
136
- className: H({ appearance: o, stickyHeader: t, className: e }),
136
+ className: S({ appearance: o, stickyHeader: t, className: e }),
137
137
  ...r,
138
138
  children: n
139
139
  }
@@ -197,7 +197,7 @@ const [V, u] = h("Table"), k = c(
197
197
  ...o,
198
198
  children: /* @__PURE__ */ l("div", { className: p.inner({ align: a }), children: n })
199
199
  }
200
- ), [S, m] = h("TableCellItem", { align: "start" }), L = c("flex min-w-0 items-center gap-12", {
200
+ ), [V, m] = h("TableCellItem", { align: "start" }), L = c("flex min-w-0 items-center gap-12", {
201
201
  variants: {
202
202
  align: {
203
203
  start: "text-start",
@@ -210,7 +210,7 @@ const [V, u] = h("Table"), k = c(
210
210
  children: t,
211
211
  ref: a,
212
212
  ...r
213
- }) => /* @__PURE__ */ l(S, { value: { align: e }, children: /* @__PURE__ */ l(
213
+ }) => /* @__PURE__ */ l(V, { value: { align: e }, children: /* @__PURE__ */ l(
214
214
  "div",
215
215
  {
216
216
  ref: a,
@@ -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"}