@ledgerhq/lumen-ui-react 0.1.62 → 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.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/Components/core/AddressInput/AddressInput.js +1 -1
- package/dist/lib/Components/core/AmountDisplay/AmountDisplay.js +1 -1
- package/dist/lib/Components/core/AmountInput/AmountInput.js +22 -22
- package/dist/lib/Components/core/Avatar/Avatar.js +7 -7
- package/dist/lib/Components/core/AvatarButton/AvatarButton.js +8 -8
- package/dist/lib/Components/core/Banner/Banner.js +1 -1
- package/dist/lib/Components/core/Button/Button.js +6 -6
- package/dist/lib/Components/core/Card/Card.js +17 -17
- package/dist/lib/Components/core/ContentBanner/ContentBanner.js +1 -1
- package/dist/lib/Components/core/DataTable/DataTable.js +45 -45
- package/dist/lib/Components/core/Dialog/DialogHeader/DialogHeader.js +1 -1
- package/dist/lib/Components/core/Divider/Divider.js +4 -4
- package/dist/lib/Components/core/DotCount/DotCount.js +3 -3
- package/dist/lib/Components/core/DotIcon/DotIcon.js +4 -4
- package/dist/lib/Components/core/DotSymbol/DotSymbol.js +18 -18
- package/dist/lib/Components/core/Link/Link.d.ts.map +1 -1
- package/dist/lib/Components/core/Link/Link.js +25 -24
- package/dist/lib/Components/core/ListItem/ListItem.js +4 -4
- package/dist/lib/Components/core/MediaBanner/MediaBanner.js +16 -16
- package/dist/lib/Components/core/MediaButton/MediaButton.js +2 -2
- package/dist/lib/Components/core/MediaCard/MediaCard.js +1 -1
- package/dist/lib/Components/core/MediaImage/MediaImage.js +5 -5
- package/dist/lib/Components/core/Menu/Menu.js +25 -25
- package/dist/lib/Components/core/NavBar/CoinCapsule.js +4 -4
- package/dist/lib/Components/core/NavBar/NavBar.js +3 -3
- package/dist/lib/Components/core/PageIndicator/PageIndicator.js +5 -5
- package/dist/lib/Components/core/Pagination/Pagination.js +15 -15
- package/dist/lib/Components/core/Popover/Popover.js +13 -13
- package/dist/lib/Components/core/SearchInput/SearchInput.js +5 -5
- package/dist/lib/Components/core/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/lib/Components/core/SegmentedControl/SegmentedControl.js +78 -82
- package/dist/lib/Components/core/Select/Select.d.ts.map +1 -1
- package/dist/lib/Components/core/Select/Select.js +105 -104
- package/dist/lib/Components/core/SideBar/SideBar.js +28 -28
- package/dist/lib/Components/core/Spinner/Spinner.js +5 -5
- package/dist/lib/Components/core/Spot/Spot.js +10 -10
- package/dist/lib/Components/core/Stepper/Stepper.d.ts.map +1 -1
- package/dist/lib/Components/core/Stepper/Stepper.js +51 -48
- package/dist/lib/Components/core/Subheader/Subheader.d.ts.map +1 -1
- package/dist/lib/Components/core/Subheader/Subheader.js +33 -29
- package/dist/lib/Components/core/Switch/Switch.js +5 -5
- package/dist/lib/Components/core/Table/Table.js +6 -6
- package/dist/lib/Components/core/ThemeProvider/ThemeProvider.js +6 -6
- package/dist/lib/Components/core/ThemeProvider/ThemeProvider.types.d.ts +1 -1
- package/dist/lib/Components/core/ThemeProvider/ThemeProvider.types.d.ts.map +1 -1
- package/dist/lib/Components/core/TileButton/TileButton.js +8 -8
- package/dist/lib/Components/core/Timeline/Timeline.js +16 -16
- package/dist/lib/Components/core/Toast/Toast.js +4 -4
- package/dist/lib/Components/core/Toast/Toaster.js +9 -9
- package/dist/lib/Components/core/Trend/Trend.js +3 -3
- package/dist/lib/Components/internal/BaseButton/BaseButton.js +9 -9
- package/dist/lib/Components/internal/BaseInput/BaseInput.js +21 -21
- package/dist/lib/Components/internal/BaseInput/useAutosizeTextarea/useAutosizeTextarea.js +4 -4
- package/dist/lib/Components/internal/BaseTag/BaseTag.js +4 -4
- package/dist/lib/Components/symbols/Icon/Icon.js +4 -4
- package/dist/lib/Components/symbols/Icon/createIcon.js +5 -5
- package/dist/lib/Components/visualization/CartesianChart/CartesianChart.d.ts.map +1 -1
- package/dist/lib/Components/visualization/CartesianChart/CartesianChart.js +36 -35
- package/dist/lib/Components/visualization/CartesianChart/types.d.ts +1 -1
- package/dist/lib/Components/visualization/DonutChart/DonutChart.d.ts.map +1 -1
- package/dist/lib/Components/visualization/DonutChart/DonutChart.js +31 -31
- package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +4 -4
- package/dist/lib/Components/visualization/DonutChart/DonutRing.d.ts.map +1 -1
- package/dist/lib/Components/visualization/DonutChart/DonutRing.js +13 -12
- package/dist/lib/Components/visualization/DonutChart/donutSizeContext.js +2 -2
- package/dist/lib/Components/visualization/DonutChart/types.d.ts +1 -1
- package/dist/lib/Components/visualization/Legend/Legend.d.ts +1 -1
- package/dist/lib/Components/visualization/Legend/Legend.d.ts.map +1 -1
- package/dist/lib/Components/visualization/Legend/Legend.js +7 -11
- package/dist/lib/Components/visualization/Legend/types.d.ts +2 -2
- package/dist/lib/Components/visualization/LineChart/LineChart.d.ts +1 -1
- package/dist/lib/Components/visualization/LineChart/LineChart.d.ts.map +1 -1
- package/dist/lib/Components/visualization/LineChart/LineChart.js +90 -84
- package/dist/lib/Components/visualization/LineChart/types.d.ts +1 -1
- package/dist/lib/Components/visualization/LineChart/utils.d.ts +2 -1
- package/dist/lib/Components/visualization/LineChart/utils.d.ts.map +1 -1
- package/dist/lib/Components/visualization/LineChart/utils.js +23 -22
- package/dist/lib/Components/visualization/config.d.ts +0 -3
- package/dist/lib/Components/visualization/config.d.ts.map +1 -1
- package/dist/lib/Components/visualization/config.js +3 -6
- package/dist/libs/utils-shared/dist/index.js +191 -143
- package/dist/package.json +4 -6
- package/dist/translations/index.d.ts +3 -0
- package/dist/translations/index.d.ts.map +1 -0
- package/dist/{i18n → translations}/languages.d.ts +0 -5
- package/dist/translations/languages.d.ts.map +1 -0
- package/dist/{i18n → translations}/languages.js +1 -2
- package/dist/{i18n → translations}/locales/en.json.d.ts +11 -0
- package/dist/{i18n → translations}/locales/en.json.js +2 -2
- package/dist/translations/translations.d.ts +727 -0
- package/dist/translations/translations.d.ts.map +1 -0
- package/dist/translations/translations.js +22 -0
- package/package.json +3 -5
- package/dist/_virtual/dynamic-import-helper.js +0 -9
- package/dist/i18n/I18nProvider.d.ts +0 -8
- package/dist/i18n/I18nProvider.d.ts.map +0 -1
- package/dist/i18n/I18nProvider.js +0 -14
- package/dist/i18n/i18n.d.ts +0 -12
- package/dist/i18n/i18n.d.ts.map +0 -1
- package/dist/i18n/i18n.js +0 -42
- package/dist/i18n/index.d.ts +0 -4
- package/dist/i18n/index.d.ts.map +0 -1
- package/dist/i18n/languages.d.ts.map +0 -1
- package/dist/i18n/useCommonTranslation.d.ts +0 -2
- package/dist/i18n/useCommonTranslation.d.ts.map +0 -1
- package/dist/i18n/useCommonTranslation.js +0 -6
- package/dist/node_modules/i18next/dist/esm/i18next.js +0 -1479
- package/dist/node_modules/react-i18next/dist/es/I18nextProvider.js +0 -19
- package/dist/node_modules/react-i18next/dist/es/context.js +0 -17
- package/dist/node_modules/react-i18next/dist/es/defaults.js +0 -22
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +0 -8
- package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +0 -11
- package/dist/node_modules/react-i18next/dist/es/unescape.js +0 -25
- package/dist/node_modules/react-i18next/dist/es/useTranslation.js +0 -65
- package/dist/node_modules/react-i18next/dist/es/utils.js +0 -57
- /package/dist/{i18n → translations}/locales/de.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/de.json.js +0 -0
- /package/dist/{i18n → translations}/locales/es.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/es.json.js +0 -0
- /package/dist/{i18n → translations}/locales/fr.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/fr.json.js +0 -0
- /package/dist/{i18n → translations}/locales/ja.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/ja.json.js +0 -0
- /package/dist/{i18n → translations}/locales/ko.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/ko.json.js +0 -0
- /package/dist/{i18n → translations}/locales/pt.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/pt.json.js +0 -0
- /package/dist/{i18n → translations}/locales/ru.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/ru.json.js +0 -0
- /package/dist/{i18n → translations}/locales/th.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/th.json.js +0 -0
- /package/dist/{i18n → translations}/locales/tr.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/tr.json.js +0 -0
- /package/dist/{i18n → translations}/locales/zh.json.d.ts +0 -0
- /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
|
|
4
|
+
import { useMemo as F } from "react";
|
|
5
5
|
import { Spinner as P } from "../Spinner/Spinner.js";
|
|
6
|
-
import { InformationFill as
|
|
7
|
-
import { WarningFill as
|
|
8
|
-
import { DeleteCircleFill as
|
|
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(
|
|
@@ -34,7 +34,7 @@ const I = y(
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
),
|
|
37
|
+
), G = (t) => {
|
|
38
38
|
const s = t.size ?? 48, i = {
|
|
39
39
|
32: 12,
|
|
40
40
|
40: 16,
|
|
@@ -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: 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,11 +69,11 @@ 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(
|
|
76
|
+
return /* @__PURE__ */ e(C, { size: o });
|
|
77
77
|
case "loader":
|
|
78
78
|
return /* @__PURE__ */ e(P, { size: o });
|
|
79
79
|
}
|
|
@@ -108,5 +108,5 @@ const I = y(
|
|
|
108
108
|
);
|
|
109
109
|
};
|
|
110
110
|
export {
|
|
111
|
-
|
|
111
|
+
G as Spot
|
|
112
112
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Stepper/Stepper.tsx"],"names":[],"mappings":"
|
|
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,11 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useDisabledContext as w, cn as
|
|
3
|
-
import { cva as
|
|
4
|
-
import { useId as
|
|
5
|
-
|
|
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 = {
|
|
6
7
|
md: { px: 48, strokeWidth: 4, root: "size-48", label: "body-2" },
|
|
7
8
|
lg: { px: 72, strokeWidth: 6, root: "size-72", label: "heading-4" }
|
|
8
|
-
}, I =
|
|
9
|
+
}, I = z("transition-[stroke] duration-300 ease-in-out", {
|
|
9
10
|
variants: {
|
|
10
11
|
appearance: { accent: "", success: "" },
|
|
11
12
|
disabled: { true: "", false: "" }
|
|
@@ -23,58 +24,60 @@ const L = {
|
|
|
23
24
|
},
|
|
24
25
|
{ disabled: !0, class: "stroke-muted-subtle-hover" }
|
|
25
26
|
]
|
|
26
|
-
}),
|
|
27
|
-
className:
|
|
27
|
+
}), E = ({
|
|
28
|
+
className: k,
|
|
28
29
|
appearance: x = "accent",
|
|
29
30
|
size: b = "md",
|
|
30
|
-
currentStep:
|
|
31
|
+
currentStep: r,
|
|
31
32
|
totalSteps: a,
|
|
32
|
-
disabled:
|
|
33
|
-
label:
|
|
34
|
-
ref:
|
|
35
|
-
...
|
|
33
|
+
disabled: g = !1,
|
|
34
|
+
label: t,
|
|
35
|
+
ref: y,
|
|
36
|
+
...N
|
|
36
37
|
}) => {
|
|
37
|
-
const
|
|
38
|
+
const o = w({
|
|
38
39
|
consumerName: "Stepper",
|
|
39
|
-
mergeWith: { disabled:
|
|
40
|
-
}), u =
|
|
40
|
+
mergeWith: { disabled: g }
|
|
41
|
+
}), { t: v } = j(), u = M(), {
|
|
41
42
|
px: e,
|
|
42
|
-
strokeWidth:
|
|
43
|
-
root:
|
|
43
|
+
strokeWidth: i,
|
|
44
|
+
root: D,
|
|
44
45
|
label: c
|
|
45
|
-
} =
|
|
46
|
-
displayLabel: D,
|
|
46
|
+
} = A[b], {
|
|
47
47
|
r: d,
|
|
48
48
|
cx: m,
|
|
49
49
|
cy: h,
|
|
50
50
|
progressDashArray: p,
|
|
51
51
|
progressMaskDashArray: C,
|
|
52
52
|
progressDashOffset: W,
|
|
53
|
-
dashPatternOffset:
|
|
53
|
+
dashPatternOffset: f
|
|
54
54
|
} = $({
|
|
55
|
-
currentStep:
|
|
55
|
+
currentStep: r,
|
|
56
56
|
totalSteps: a,
|
|
57
57
|
size: e,
|
|
58
|
-
label:
|
|
59
|
-
strokeWidth:
|
|
58
|
+
label: t,
|
|
59
|
+
strokeWidth: i
|
|
60
60
|
});
|
|
61
|
-
return /* @__PURE__ */
|
|
61
|
+
return /* @__PURE__ */ n(
|
|
62
62
|
"div",
|
|
63
63
|
{
|
|
64
|
-
ref:
|
|
64
|
+
ref: y,
|
|
65
65
|
role: "progressbar",
|
|
66
|
-
"aria-valuenow":
|
|
66
|
+
"aria-valuenow": r,
|
|
67
67
|
"aria-valuemin": 1,
|
|
68
68
|
"aria-valuemax": a,
|
|
69
|
-
"aria-label":
|
|
70
|
-
|
|
69
|
+
"aria-label": t ?? v("components.stepper.progressAriaLabel", {
|
|
70
|
+
currentStep: Math.min(Math.max(r, 0), a),
|
|
71
|
+
totalSteps: a
|
|
72
|
+
}),
|
|
73
|
+
className: l(
|
|
71
74
|
"relative flex shrink-0 items-center justify-center rounded-full",
|
|
72
|
-
|
|
73
|
-
|
|
75
|
+
D,
|
|
76
|
+
k
|
|
74
77
|
),
|
|
75
|
-
...
|
|
78
|
+
...N,
|
|
76
79
|
children: [
|
|
77
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ n(
|
|
78
81
|
"svg",
|
|
79
82
|
{
|
|
80
83
|
width: e,
|
|
@@ -94,9 +97,9 @@ const L = {
|
|
|
94
97
|
strokeLinecap: "round",
|
|
95
98
|
className: "stroke-muted-subtle",
|
|
96
99
|
style: {
|
|
97
|
-
strokeWidth: `${
|
|
100
|
+
strokeWidth: `${i}px`,
|
|
98
101
|
strokeDasharray: p,
|
|
99
|
-
strokeDashoffset:
|
|
102
|
+
strokeDashoffset: f
|
|
100
103
|
}
|
|
101
104
|
}
|
|
102
105
|
),
|
|
@@ -119,7 +122,7 @@ const L = {
|
|
|
119
122
|
stroke: "white",
|
|
120
123
|
className: "transition-[stroke-dashoffset] duration-300 ease-in-out",
|
|
121
124
|
style: {
|
|
122
|
-
strokeWidth: `${
|
|
125
|
+
strokeWidth: `${i}px`,
|
|
123
126
|
strokeDasharray: C,
|
|
124
127
|
strokeDashoffset: W
|
|
125
128
|
}
|
|
@@ -137,31 +140,31 @@ const L = {
|
|
|
137
140
|
stroke: "currentColor",
|
|
138
141
|
strokeLinecap: "round",
|
|
139
142
|
mask: `url(#${u})`,
|
|
140
|
-
className: I({ appearance: x, disabled:
|
|
143
|
+
className: I({ appearance: x, disabled: o }),
|
|
141
144
|
style: {
|
|
142
|
-
strokeWidth: `${
|
|
145
|
+
strokeWidth: `${i}px`,
|
|
143
146
|
strokeDasharray: p,
|
|
144
|
-
strokeDashoffset:
|
|
147
|
+
strokeDashoffset: f
|
|
145
148
|
}
|
|
146
149
|
}
|
|
147
150
|
)
|
|
148
151
|
]
|
|
149
152
|
}
|
|
150
153
|
),
|
|
151
|
-
/* @__PURE__ */ s("span", { className: "absolute inset-0 m-4 flex min-w-0 items-center justify-center text-base", children:
|
|
154
|
+
/* @__PURE__ */ s("span", { className: "absolute inset-0 m-4 flex min-w-0 items-center justify-center text-base", children: t ? /* @__PURE__ */ s(
|
|
152
155
|
"span",
|
|
153
156
|
{
|
|
154
|
-
className:
|
|
155
|
-
children:
|
|
157
|
+
className: l(c, "truncate", o && "text-disabled"),
|
|
158
|
+
children: t
|
|
156
159
|
}
|
|
157
|
-
) : /* @__PURE__ */
|
|
158
|
-
/* @__PURE__ */ s("span", { className:
|
|
159
|
-
/* @__PURE__ */
|
|
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(
|
|
160
163
|
"span",
|
|
161
164
|
{
|
|
162
|
-
className:
|
|
165
|
+
className: l(
|
|
163
166
|
c,
|
|
164
|
-
|
|
167
|
+
o ? "text-disabled" : "text-muted"
|
|
165
168
|
),
|
|
166
169
|
children: [
|
|
167
170
|
"/",
|
|
@@ -175,5 +178,5 @@ const L = {
|
|
|
175
178
|
);
|
|
176
179
|
};
|
|
177
180
|
export {
|
|
178
|
-
|
|
181
|
+
E as Stepper
|
|
179
182
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subheader.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Subheader/Subheader.tsx"],"names":[],"mappings":"
|
|
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 {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
},
|
|
54
|
+
}, N = ({
|
|
54
55
|
ref: r,
|
|
55
56
|
iconType: e = "stroked",
|
|
56
57
|
className: t,
|
|
57
58
|
...n
|
|
58
|
-
}) =>
|
|
59
|
-
|
|
60
|
-
{
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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(
|
|
85
|
+
children: /* @__PURE__ */ o(c, { size: 24 })
|
|
82
86
|
}
|
|
83
|
-
),
|
|
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 }),
|
|
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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useDisabledContext as h, cn as s } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import * as a from "@radix-ui/react-switch";
|
|
4
4
|
import { cva as d } from "class-variance-authority";
|
|
@@ -39,7 +39,7 @@ const b = d(
|
|
|
39
39
|
selected: r,
|
|
40
40
|
defaultSelected: n,
|
|
41
41
|
onChange: c,
|
|
42
|
-
size:
|
|
42
|
+
size: t = "md",
|
|
43
43
|
disabled: l,
|
|
44
44
|
...u
|
|
45
45
|
}) => {
|
|
@@ -47,17 +47,17 @@ const b = d(
|
|
|
47
47
|
consumerName: "Switch",
|
|
48
48
|
mergeWith: { disabled: l }
|
|
49
49
|
});
|
|
50
|
-
return /* @__PURE__ */
|
|
50
|
+
return /* @__PURE__ */ e(
|
|
51
51
|
a.Root,
|
|
52
52
|
{
|
|
53
53
|
ref: i,
|
|
54
|
-
className: s(b({ size:
|
|
54
|
+
className: s(b({ size: t }), o),
|
|
55
55
|
checked: r,
|
|
56
56
|
defaultChecked: n,
|
|
57
57
|
onCheckedChange: c,
|
|
58
58
|
disabled: m,
|
|
59
59
|
...u,
|
|
60
|
-
children: /* @__PURE__ */
|
|
60
|
+
children: /* @__PURE__ */ e(a.Thumb, { className: g({ size: t }) })
|
|
61
61
|
}
|
|
62
62
|
);
|
|
63
63
|
};
|
|
@@ -4,7 +4,7 @@ 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 "../../../../
|
|
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";
|
|
@@ -107,7 +107,7 @@ const [k, u] = h("Table"), q = c(
|
|
|
107
107
|
...o,
|
|
108
108
|
children: n
|
|
109
109
|
}
|
|
110
|
-
),
|
|
110
|
+
), S = c("", {
|
|
111
111
|
variants: {
|
|
112
112
|
appearance: {
|
|
113
113
|
"no-background": "bg-canvas",
|
|
@@ -133,7 +133,7 @@ const [k, u] = h("Table"), q = c(
|
|
|
133
133
|
"tr",
|
|
134
134
|
{
|
|
135
135
|
ref: a,
|
|
136
|
-
className:
|
|
136
|
+
className: S({ appearance: o, stickyHeader: t, className: e }),
|
|
137
137
|
...r,
|
|
138
138
|
children: n
|
|
139
139
|
}
|
|
@@ -197,7 +197,7 @@ const [k, u] = h("Table"), q = c(
|
|
|
197
197
|
...o,
|
|
198
198
|
children: /* @__PURE__ */ l("div", { className: p.inner({ align: a }), children: n })
|
|
199
199
|
}
|
|
200
|
-
), [
|
|
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,11 +210,11 @@ const [k, u] = h("Table"), q = c(
|
|
|
210
210
|
children: t,
|
|
211
211
|
ref: a,
|
|
212
212
|
...r
|
|
213
|
-
}) => /* @__PURE__ */ l(
|
|
213
|
+
}) => /* @__PURE__ */ l(V, { value: { align: e }, children: /* @__PURE__ */ l(
|
|
214
214
|
"div",
|
|
215
215
|
{
|
|
216
216
|
ref: a,
|
|
217
|
-
className:
|
|
217
|
+
className: L({ align: e, className: n }),
|
|
218
218
|
...r,
|
|
219
219
|
children: t
|
|
220
220
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { createSafeContext as
|
|
3
|
-
import { useMemo as
|
|
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 {
|
|
7
|
-
const [f, l] =
|
|
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 =
|
|
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
|
-
|
|
26
|
+
x as ThemeProvider,
|
|
27
27
|
P as useTheme
|
|
28
28
|
};
|
|
@@ -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,
|
|
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"}
|
|
@@ -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
|
|
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
|
|
6
|
-
const
|
|
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
|
-
),
|
|
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 =
|
|
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
|
-
|
|
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:
|
|
88
|
-
a ? /* @__PURE__ */ t(
|
|
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"),
|
|
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
|
-
}),
|
|
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] :
|
|
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
|
-
},
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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(
|
|
169
|
+
className: s(N({ muted: a === "idle" }), n),
|
|
170
170
|
...r,
|
|
171
171
|
children: i
|
|
172
172
|
}
|
|
173
173
|
);
|
|
174
|
-
},
|
|
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
|
-
),
|
|
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
|
-
|
|
222
|
-
|
|
221
|
+
B as TimelineItemCaption,
|
|
222
|
+
H as TimelineItemDescription,
|
|
223
223
|
F as TimelineItemHeader,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
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
|
|
4
|
-
import { useCommonTranslation as
|
|
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 } =
|
|
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(
|
|
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] }),
|