@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.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +80 -63
- 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 +17 -17
- package/dist/lib/Components/core/AmountInput/useAmountInputValue/useAmountInputValue.js +3 -3
- package/dist/lib/Components/core/Avatar/Avatar.js +7 -7
- package/dist/lib/Components/core/Avatar/resolveAvatarColor.js +2 -2
- package/dist/lib/Components/core/AvatarButton/AvatarButton.js +2 -2
- package/dist/lib/Components/core/Banner/Banner.js +9 -9
- package/dist/lib/Components/core/Button/Button.js +4 -4
- package/dist/lib/Components/core/Card/Card.js +15 -15
- package/dist/lib/Components/core/CardButton/CardButton.d.ts +2 -0
- package/dist/lib/Components/core/CardButton/CardButton.d.ts.map +1 -1
- package/dist/lib/Components/core/CardButton/CardButton.js +4 -4
- package/dist/lib/Components/core/ContentBanner/ContentBanner.js +1 -1
- package/dist/lib/Components/core/DataTable/DataTable.js +42 -42
- 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 +11 -11
- package/dist/lib/Components/core/DotSymbol/DotSymbol.js +7 -7
- package/dist/lib/Components/core/Link/Link.d.ts +1 -1
- package/dist/lib/Components/core/Link/Link.d.ts.map +1 -1
- package/dist/lib/Components/core/Link/Link.js +25 -23
- package/dist/lib/Components/core/Link/types.d.ts +1 -1
- package/dist/lib/Components/core/Link/types.d.ts.map +1 -1
- package/dist/lib/Components/core/ListItem/ListItem.js +8 -8
- package/dist/lib/Components/core/MediaBanner/MediaBanner.js +4 -4
- 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 +1 -1
- package/dist/lib/Components/core/Popover/Popover.js +13 -13
- package/dist/lib/Components/core/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/lib/Components/core/SegmentedControl/SegmentedControl.js +80 -84
- package/dist/lib/Components/core/Select/Select.d.ts.map +1 -1
- package/dist/lib/Components/core/Select/Select.js +108 -107
- package/dist/lib/Components/core/SideBar/SideBar.js +33 -33
- package/dist/lib/Components/core/Spinner/Spinner.js +1 -1
- package/dist/lib/Components/core/Spot/Spot.js +13 -13
- package/dist/lib/Components/core/Stepper/Stepper.d.ts +4 -3
- package/dist/lib/Components/core/Stepper/Stepper.d.ts.map +1 -1
- package/dist/lib/Components/core/Stepper/Stepper.js +137 -62
- package/dist/lib/Components/core/Stepper/types.d.ts +12 -2
- package/dist/lib/Components/core/Stepper/types.d.ts.map +1 -1
- 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/Table/Table.js +10 -10
- 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/Timeline/Timeline.d.ts +54 -0
- package/dist/lib/Components/core/Timeline/Timeline.d.ts.map +1 -0
- package/dist/lib/Components/core/Timeline/Timeline.js +228 -0
- package/dist/lib/Components/core/Timeline/index.d.ts +3 -0
- package/dist/lib/Components/core/Timeline/index.d.ts.map +1 -0
- package/dist/lib/Components/core/Timeline/types.d.ts +148 -0
- package/dist/lib/Components/core/Timeline/types.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/Toast.d.ts +25 -0
- package/dist/lib/Components/core/Toast/Toast.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/Toast.js +68 -0
- package/dist/lib/Components/core/Toast/Toaster.d.ts +27 -0
- package/dist/lib/Components/core/Toast/Toaster.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/Toaster.js +92 -0
- package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts +15 -0
- package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/hooks/useToastCollapse.js +15 -0
- package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts +24 -0
- package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.js +27 -0
- package/dist/lib/Components/core/Toast/index.d.ts +5 -0
- package/dist/lib/Components/core/Toast/index.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/styles.d.ts +20 -0
- package/dist/lib/Components/core/Toast/styles.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/styles.js +77 -0
- package/dist/lib/Components/core/Toast/types.d.ts +81 -0
- package/dist/lib/Components/core/Toast/types.d.ts.map +1 -0
- package/dist/lib/Components/core/Trend/Trend.js +3 -3
- package/dist/lib/Components/core/index.d.ts +2 -0
- package/dist/lib/Components/core/index.d.ts.map +1 -1
- package/dist/lib/Components/internal/BaseButton/BaseButton.js +7 -7
- package/dist/lib/Components/internal/BaseInput/BaseInput.js +22 -22
- package/dist/lib/Components/internal/BaseInput/BaseInputMultiline.js +12 -12
- 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/createIcon.js +3 -3
- 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 +2 -2
- 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/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 +6 -10
- 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 +353 -140
- 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 +4 -6
- 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
|
|
5
|
-
import { Spinner as
|
|
6
|
-
import { InformationFill as
|
|
7
|
-
import { WarningFill as
|
|
8
|
-
import { DeleteCircleFill as
|
|
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:
|
|
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:
|
|
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:
|
|
100
|
+
appearance: l,
|
|
101
101
|
size: h
|
|
102
102
|
}),
|
|
103
103
|
d
|
|
104
104
|
),
|
|
105
105
|
...f,
|
|
106
|
-
children:
|
|
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
|
|
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={
|
|
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":"
|
|
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
|
|
2
|
-
import { useDisabledContext as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
label:
|
|
9
|
-
|
|
10
|
-
|
|
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
|
|
38
|
+
const o = w({
|
|
13
39
|
consumerName: "Stepper",
|
|
14
|
-
mergeWith: { disabled:
|
|
15
|
-
}), {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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__ */
|
|
61
|
+
return /* @__PURE__ */ n(
|
|
31
62
|
"div",
|
|
32
63
|
{
|
|
33
|
-
ref:
|
|
64
|
+
ref: y,
|
|
34
65
|
role: "progressbar",
|
|
35
|
-
"aria-valuenow":
|
|
66
|
+
"aria-valuenow": r,
|
|
36
67
|
"aria-valuemin": 1,
|
|
37
|
-
"aria-valuemax":
|
|
38
|
-
"aria-label":
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
...
|
|
78
|
+
...N,
|
|
44
79
|
children: [
|
|
45
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ n(
|
|
46
81
|
"svg",
|
|
47
82
|
{
|
|
48
|
-
width:
|
|
49
|
-
height:
|
|
50
|
-
viewBox: `0 0 ${
|
|
51
|
-
className: "rotate-
|
|
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__ */
|
|
89
|
+
/* @__PURE__ */ s(
|
|
55
90
|
"circle",
|
|
56
91
|
{
|
|
57
|
-
cx:
|
|
58
|
-
cy:
|
|
59
|
-
r:
|
|
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:
|
|
67
|
-
strokeDashoffset:
|
|
101
|
+
strokeDasharray: p,
|
|
102
|
+
strokeDashoffset: f
|
|
68
103
|
}
|
|
69
104
|
}
|
|
70
105
|
),
|
|
71
|
-
/* @__PURE__ */
|
|
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:
|
|
75
|
-
cy:
|
|
76
|
-
r:
|
|
136
|
+
cx: m,
|
|
137
|
+
cy: h,
|
|
138
|
+
r: d,
|
|
77
139
|
fill: "none",
|
|
78
140
|
stroke: "currentColor",
|
|
79
141
|
strokeLinecap: "round",
|
|
80
|
-
|
|
81
|
-
|
|
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:
|
|
87
|
-
strokeDashoffset:
|
|
146
|
+
strokeDasharray: p,
|
|
147
|
+
strokeDashoffset: f
|
|
88
148
|
}
|
|
89
149
|
}
|
|
90
150
|
)
|
|
91
151
|
]
|
|
92
152
|
}
|
|
93
153
|
),
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
|
|
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
|
-
|
|
181
|
+
E as Stepper
|
|
107
182
|
};
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import { ComponentPropsWithRef } from 'react';
|
|
2
2
|
export type StepperProps = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
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
|
|
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":"
|
|
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
|
};
|
|
@@ -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 "../../../../
|
|
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 [
|
|
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(
|
|
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:
|
|
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 }),
|
|
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:
|
|
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
|
-
),
|
|
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:
|
|
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
|
-
), [
|
|
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(
|
|
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
|
|
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"}
|