@hortiview/shared-components 2.10.2 → 2.11.1
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/CHANGELOG.md +12 -0
- package/README.md +29 -13
- package/dist/{AlertBanner-Dss0v6W0.js → AlertBanner-C6wpAQMj.js} +3 -3
- package/dist/{BigLoadingSpinner-BeHzqdOg.js → BigLoadingSpinner-CDbRVDNZ.js} +1 -1
- package/dist/{GenericCard-MjxZ1L7r.js → GenericCard-Co9bGU19.js} +3 -3
- package/dist/{ListAreaService-Dx9WBGHB.js → ListAreaService-CGJm5I23.js} +5 -5
- package/dist/{OfflineView-D168VIXv.js → OfflineView-NUM9WE0F.js} +3 -3
- package/dist/assets/FormSelect.css +1 -1
- package/dist/assets/Select.css +1 -1
- package/dist/assets/stepper.css +1 -1
- package/dist/components/AlertBanner/AlertBanner.js +4 -4
- package/dist/components/AlertBanner/AlertBanner.test.js +2 -2
- package/dist/components/AlertBanner/LinkBanner.js +3 -3
- package/dist/components/AlertBanner/LinkBanner.test.js +1 -1
- package/dist/components/BaseView/BaseView.js +5 -5
- package/dist/components/BaseView/BaseView.test.js +1 -1
- package/dist/components/BasicHeading/BasicHeading.js +4 -4
- package/dist/components/BasicHeading/BasicHeading.test.js +2 -2
- package/dist/components/BlockView/BlockView.js +2 -2
- package/dist/components/BlockView/BlockView.test.js +1 -1
- package/dist/components/ChipCard/ChipCard.js +438 -424
- package/dist/components/ChipCard/ChipCard.test.js +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +3 -3
- package/dist/components/ContextMenu/ContextMenu.test.js +1 -1
- package/dist/components/DeleteModal/DeleteModal.js +4 -4
- package/dist/components/DeleteModal/DeleteModal.test.js +1 -1
- package/dist/components/DetailContentWrapper/DetailContentWrapper.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.js +3 -3
- package/dist/components/Disclaimer/Disclaimer.test.js +1 -1
- package/dist/components/EmptyView/EmptyView.js +3 -3
- package/dist/components/EmptyView/EmptyView.test.js +1 -1
- package/dist/components/Filter/Filter.js +6 -6
- package/dist/components/Filter/Filter.test.js +1 -1
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +1 -1
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +4 -4
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +1 -1
- package/dist/components/FormComponents/FormNumber/CustomTextField.js +1 -1
- package/dist/components/FormComponents/FormNumber/FormNumber.test.js +1 -1
- package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
- package/dist/components/FormComponents/FormRadio/FormRadio.test.js +1 -1
- package/dist/components/FormComponents/FormSelect/FormSelect.js +48 -48
- package/dist/components/FormComponents/FormSelect/FormSelect.test.js +2 -2
- package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +2 -2
- package/dist/components/FormComponents/FormSlider/FormSlider.js +6 -6
- package/dist/components/FormComponents/FormSlider/FormSlider.test.js +1 -1
- package/dist/components/FormComponents/FormText/FormText.js +2 -2
- package/dist/components/FormComponents/FormText/FormText.test.js +1 -1
- package/dist/components/FormComponents/FormToggle/FormToggle.js +3 -3
- package/dist/components/FormComponents/FormToggle/FormToggle.test.js +1 -1
- package/dist/components/GenericTable/GenericTable.js +8225 -7444
- package/dist/components/GenericTable/GenericTable.test.js +1 -1
- package/dist/components/GenericTable/Mobile/GenericCard.js +4 -4
- package/dist/components/GenericTable/Mobile/GenericCard.test.js +2 -2
- package/dist/components/GenericTable/Mobile/GenericCardList.js +4 -4
- package/dist/components/GenericTable/Mobile/GenericCardList.test.js +1 -1
- package/dist/components/HashTabView/HashTabView.js +6 -6
- package/dist/components/HashTabView/HashTabView.test.js +1 -1
- package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
- package/dist/components/HeaderFilter/HeaderFilter.test.js +1 -1
- package/dist/components/Iconify/Iconify.js +1 -1
- package/dist/components/Iconify/Iconify.test.js +1 -1
- package/dist/components/InfoCard/InfoCard.js +4 -4
- package/dist/components/InfoCard/InfoCard.test.js +1 -1
- package/dist/components/InfoGroup/InfoGroup.js +3 -3
- package/dist/components/InfoGroup/InfoGroup.test.js +1 -1
- package/dist/components/ListArea/ListArea.js +5 -5
- package/dist/components/ListArea/ListArea.test.js +4 -4
- package/dist/components/ListArea/ListAreaService.js +6 -6
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +2 -2
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +6 -6
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +1 -1
- package/dist/components/Modal/Modal.d.ts +3 -1
- package/dist/components/Modal/Modal.js +116 -115
- package/dist/components/ModulePadding/ModulePadding.js +1 -1
- package/dist/components/ModulePadding/ModulePadding.test.js +1 -1
- package/dist/components/OfflineView/OfflineView.js +4 -4
- package/dist/components/OfflineView/OfflineView.test.js +2 -2
- package/dist/components/OnboardingBanner/OnboardingBanner.d.ts +1 -2
- package/dist/components/OnboardingBanner/OnboardingBanner.js +33 -25
- package/dist/components/OnboardingBanner/OnboardingBanner.test.js +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.js +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.test.js +3 -3
- package/dist/components/SafeForm/SafeForm.test.js +2 -2
- package/dist/components/Scrollbar/scrollbar.test.js +1 -1
- package/dist/components/SearchBar/SearchBar.js +2 -2
- package/dist/components/SearchBar/SearchBar.test.js +1 -1
- package/dist/components/Select/Select.js +10 -10
- package/dist/components/Select/Select.test.js +1 -1
- package/dist/components/Stepper/Stepper.d.ts +7 -3
- package/dist/components/Stepper/Stepper.js +31 -21
- package/dist/components/Stepper/Stepper.test.js +127 -38
- package/dist/components/Stepper/components/StepperButton.d.ts +6 -2
- package/dist/components/Stepper/components/StepperButton.js +60 -46
- package/dist/components/Stepper/components/StepperHeader.d.ts +8 -2
- package/dist/components/Stepper/components/StepperHeader.js +60 -14
- package/dist/components/Stepper/components/StepperIndicator.js +2 -2
- package/dist/components/Stepper/stepperTypes.d.ts +35 -5
- package/dist/components/VerticalDivider/VerticalDivider.test.js +1 -1
- package/dist/correct-is-regexp-logic-BBlm4UpN.js +44 -0
- package/dist/{defineProperty-CmuOyxyf.js → defineProperty-K2c2Cqi7.js} +56 -56
- package/dist/{es.string.iterator-DrqCBub-.js → es.string.iterator-5IsLbO9h.js} +25 -25
- package/dist/find-nTYsLuUo.js +95 -0
- package/dist/hooks/useBreakpoints.test.js +1 -1
- package/dist/{index-I7uTh4Tr.js → index-CkZYDkGd.js} +1 -1
- package/dist/{index-Cpb-8cAN.js → index-_ck2BRrZ.js} +36 -35
- package/dist/{index.es-DUcI2Zyr.js → index.es-B0QNuIUR.js} +4 -4
- package/dist/{index.es-CijDQQVg.js → index.es-B3-Acyxs.js} +4 -4
- package/dist/{index.es-vqlyMiew.js → index.es-BZ3r3ilq.js} +3 -3
- package/dist/{index.es-DNRm4vOy.js → index.es-Bw3LT0xk.js} +3 -3
- package/dist/{index.es-D_hWWij3.js → index.es-C19v_2Tu.js} +14 -14
- package/dist/{index.es-DsGuBR0Z.js → index.es-C1SajYlm.js} +3 -3
- package/dist/{index.es-BzdG6flH.js → index.es-C1u7zUBz.js} +25 -25
- package/dist/{index.es-Ds9rRj5B.js → index.es-CEPrAgSM.js} +4 -4
- package/dist/{index.es-Bo1Rhtyb.js → index.es-CIsLNz4j.js} +2 -2
- package/dist/{index.es-BRtk0Q33.js → index.es-CP6nYw6D.js} +1 -1
- package/dist/{index.es-BjvSa9Z-.js → index.es-C_feFtLb.js} +44 -43
- package/dist/{index.es-CmF6xAUJ.js → index.es-Ci73HfOg.js} +1 -1
- package/dist/{index.es-BLolvOHO.js → index.es-CvHDFF6V.js} +7 -7
- package/dist/{index.es-DYs8W4jv.js → index.es-DCYlADaN.js} +2 -2
- package/dist/{index.es-BLIkMu0q.js → index.es-DHSqxTgL.js} +5 -5
- package/dist/{index.es-Bus5gEri.js → index.es-DYViXXnI.js} +2 -2
- package/dist/{index.es-DDRyb2df.js → index.es-DZBGtuyV.js} +5 -5
- package/dist/{index.es-b2h35xzk.js → index.es-DiONypF4.js} +6 -6
- package/dist/{index.es-P5F6NJPB.js → index.es-DnEIFMjv.js} +228 -266
- package/dist/{index.es-CXq42ihP.js → index.es-HCdWwFg5.js} +13 -13
- package/dist/{index.es-DCSgIiJH.js → index.es-NEYPxnlS.js} +2 -2
- package/dist/{index.es-Dq_bXeGZ.js → index.es-fV9oWpEf.js} +2771 -2481
- package/dist/{index.es-CKdJX75f.js → index.es-nqOhHSs3.js} +1 -1
- package/dist/{keyboard-BfmK7HK_.js → keyboard-20bkocNM.js} +28 -28
- package/dist/main.js +2 -2
- package/dist/{map-LUrszKZW.js → map-Bx7eZRyR.js} +295 -302
- package/dist/{parse-int-qVAoFbOL.js → parse-int-Cmh59J6W.js} +5 -5
- package/dist/{react.esm-CX1WJ2Pp.js → react.esm-BbMrgZCM.js} +3 -2
- package/dist/{slicedToArray-uk6yv91z.js → slicedToArray-h0Nnkd_P.js} +67 -67
- package/dist/stepper.module-c-CWmpkt.js +15 -0
- package/package.json +4 -3
- package/dist/find-Dpy_M6vm.js +0 -88
- package/dist/stepper.module-HuqmDJPj.js +0 -12
|
@@ -1,60 +1,74 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { B as
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import { s as
|
|
5
|
-
const
|
|
6
|
-
label:
|
|
7
|
-
onClick:
|
|
8
|
-
disabled:
|
|
9
|
-
className:
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { B as a } from "../../../index.es-B0QNuIUR.js";
|
|
3
|
+
import { useMemo as v } from "react";
|
|
4
|
+
import { s as f } from "../../../stepper.module-c-CWmpkt.js";
|
|
5
|
+
const y = ({
|
|
6
|
+
label: p,
|
|
7
|
+
onClick: n,
|
|
8
|
+
disabled: s,
|
|
9
|
+
className: m,
|
|
10
10
|
showArrowIcon: t = !0,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
11
|
+
leadingIcon: e,
|
|
12
|
+
trailingIcon: r,
|
|
13
|
+
buttonSize: u = "themeDefault",
|
|
14
|
+
fullWidth: o = !0
|
|
15
|
+
}) => {
|
|
16
|
+
const d = v(() => {
|
|
17
|
+
if (e) return e;
|
|
18
|
+
if (!r)
|
|
19
|
+
return t ? "arrow_back" : void 0;
|
|
20
|
+
}, [e, r, t]);
|
|
21
|
+
return /* @__PURE__ */ i(
|
|
22
|
+
a,
|
|
23
|
+
{
|
|
24
|
+
"data-testid": "stepper-previous-button",
|
|
25
|
+
className: `${f.stepperButton} ${m ?? ""}`,
|
|
26
|
+
onClick: n,
|
|
27
|
+
disabled: s,
|
|
28
|
+
fullWidth: o,
|
|
29
|
+
buttonSize: u,
|
|
30
|
+
variant: "outlined",
|
|
31
|
+
leadingIcon: d,
|
|
32
|
+
trailingIcon: r,
|
|
33
|
+
type: "button",
|
|
34
|
+
children: p
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}, N = ({
|
|
38
|
+
label: p,
|
|
39
|
+
onClick: n,
|
|
40
|
+
disabled: s,
|
|
41
|
+
className: m,
|
|
32
42
|
isStepLoading: t,
|
|
33
43
|
isLastStep: e,
|
|
34
44
|
showArrowIcon: r = !0,
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
leadingIcon: u,
|
|
46
|
+
trailingIcon: o,
|
|
47
|
+
buttonSize: d = "themeDefault",
|
|
48
|
+
fullWidth: b = !0
|
|
37
49
|
}) => {
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
50
|
+
const B = v(() => {
|
|
51
|
+
if (o) return o;
|
|
52
|
+
if (!u && !t && !e)
|
|
40
53
|
return r ? "arrow_forward" : void 0;
|
|
41
|
-
}, [e, t, r]);
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
-
|
|
54
|
+
}, [e, t, r, u, o]);
|
|
55
|
+
return /* @__PURE__ */ i(
|
|
56
|
+
a,
|
|
44
57
|
{
|
|
45
58
|
"data-testid": "stepper-next-button",
|
|
46
|
-
className: `${
|
|
47
|
-
onClick:
|
|
48
|
-
disabled: t ||
|
|
49
|
-
fullWidth:
|
|
50
|
-
trailingIcon:
|
|
59
|
+
className: `${f.stepperButton} ${t ? f.stepperButtonLoading : ""} ${m ?? ""}`,
|
|
60
|
+
onClick: n,
|
|
61
|
+
disabled: t || s,
|
|
62
|
+
fullWidth: b,
|
|
63
|
+
trailingIcon: B,
|
|
64
|
+
leadingIcon: u,
|
|
51
65
|
type: e ? "submit" : "button",
|
|
52
|
-
buttonSize:
|
|
53
|
-
children:
|
|
66
|
+
buttonSize: d,
|
|
67
|
+
children: p
|
|
54
68
|
}
|
|
55
69
|
);
|
|
56
70
|
};
|
|
57
71
|
export {
|
|
58
|
-
|
|
59
|
-
|
|
72
|
+
N as StepperNextButton,
|
|
73
|
+
y as StepperPreviousButton
|
|
60
74
|
};
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { StepperBaseProps } from '../stepperTypes';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* A component that displays the
|
|
4
|
+
* A component that displays the specified type of stepper header based on the provided type prop.
|
|
5
|
+
*
|
|
6
|
+
* If the type is 'default', it displays a stepper indicator with dots and the title of the current step.
|
|
7
|
+
* If the type is 'description', it shows the current step out of total steps and the title of the current step.
|
|
8
|
+
*
|
|
9
|
+
* @param stepperType - The type of the stepper indicator.
|
|
5
10
|
* @param steps - An array of steps for the stepper.
|
|
6
11
|
* @param currentStep - The current step index.
|
|
12
|
+
* @param customTotalSteps - A custom total number of steps to display in the stepper header.
|
|
7
13
|
* @returns
|
|
8
14
|
*/
|
|
9
|
-
export declare const StepperHeader: ({ steps, currentStep }: StepperBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const StepperHeader: ({ stepperType, steps, currentStep, customTotalSteps, }: StepperBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,34 +1,80 @@
|
|
|
1
|
-
import { jsxs as a, jsx as
|
|
2
|
-
import { G as
|
|
3
|
-
import { T as
|
|
4
|
-
import { s as
|
|
5
|
-
import { StepperIndicator as
|
|
6
|
-
const
|
|
7
|
-
|
|
1
|
+
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { G as s } from "../../../index.es-C1SajYlm.js";
|
|
3
|
+
import { T as n } from "../../../index.es-NEYPxnlS.js";
|
|
4
|
+
import { s as t } from "../../../stepper.module-c-CWmpkt.js";
|
|
5
|
+
import { StepperIndicator as o } from "./StepperIndicator.js";
|
|
6
|
+
const y = ({
|
|
7
|
+
stepperType: d,
|
|
8
|
+
steps: e,
|
|
9
|
+
currentStep: i,
|
|
10
|
+
customTotalSteps: p
|
|
11
|
+
}) => d === "description" ? /* @__PURE__ */ a(
|
|
12
|
+
s,
|
|
13
|
+
{
|
|
14
|
+
"data-testid": "description-stepper-header",
|
|
15
|
+
className: t.stepperDescriptionContainer,
|
|
16
|
+
secondaryAlign: "stretch",
|
|
17
|
+
gap: "none",
|
|
18
|
+
fullWidth: !0,
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ r(
|
|
21
|
+
s,
|
|
22
|
+
{
|
|
23
|
+
className: t.stepperDescriptionProgress,
|
|
24
|
+
primaryAlign: "center",
|
|
25
|
+
secondaryAlign: "center",
|
|
26
|
+
children: /* @__PURE__ */ a(n, { "data-testid": "description-stepper-header-progress", level: 2, children: [
|
|
27
|
+
e[i].step,
|
|
28
|
+
"/",
|
|
29
|
+
p ?? e.length
|
|
30
|
+
] })
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
/* @__PURE__ */ r(
|
|
34
|
+
s,
|
|
35
|
+
{
|
|
36
|
+
className: t.stepperDescriptionText,
|
|
37
|
+
primaryAlign: "flex-start",
|
|
38
|
+
secondaryAlign: "center",
|
|
39
|
+
children: /* @__PURE__ */ r(
|
|
40
|
+
n,
|
|
41
|
+
{
|
|
42
|
+
"data-testid": "description-stepper-header-description",
|
|
43
|
+
themeColor: "secondary-font",
|
|
44
|
+
level: 2,
|
|
45
|
+
children: e[i].title ?? ""
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
) : /* @__PURE__ */ a(
|
|
53
|
+
s,
|
|
8
54
|
{
|
|
9
55
|
"data-testid": "stepper-header",
|
|
10
|
-
className:
|
|
56
|
+
className: t.stepperContainer,
|
|
11
57
|
gap: "dense",
|
|
12
58
|
primaryAlign: "center",
|
|
13
59
|
secondaryAlign: "center",
|
|
14
60
|
direction: "vertical",
|
|
15
61
|
fullWidth: !0,
|
|
16
62
|
children: [
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
|
|
63
|
+
/* @__PURE__ */ r(o, { steps: e, currentStep: i }),
|
|
64
|
+
/* @__PURE__ */ r(
|
|
65
|
+
n,
|
|
20
66
|
{
|
|
21
67
|
"data-testid": "stepper-header-description",
|
|
22
68
|
level: 2,
|
|
23
69
|
bold: !0,
|
|
24
70
|
tag: "div",
|
|
25
|
-
className:
|
|
26
|
-
children: e[
|
|
71
|
+
className: t.stepperTitle,
|
|
72
|
+
children: e[i]?.title
|
|
27
73
|
}
|
|
28
74
|
)
|
|
29
75
|
]
|
|
30
76
|
}
|
|
31
77
|
);
|
|
32
78
|
export {
|
|
33
|
-
|
|
79
|
+
y as StepperHeader
|
|
34
80
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { G as p } from "../../../index.es-
|
|
3
|
-
import { s as e } from "../../../stepper.module-
|
|
2
|
+
import { G as p } from "../../../index.es-C1SajYlm.js";
|
|
3
|
+
import { s as e } from "../../../stepper.module-c-CWmpkt.js";
|
|
4
4
|
const m = ({ steps: a, currentStep: i }) => /* @__PURE__ */ r(p, { gap: "dense", "data-testid": "stepper-indicator", children: a.map((t, o) => /* @__PURE__ */ r(
|
|
5
5
|
"div",
|
|
6
6
|
{
|
|
@@ -15,17 +15,21 @@ export type Step = {
|
|
|
15
15
|
*/
|
|
16
16
|
name: string;
|
|
17
17
|
/**
|
|
18
|
-
* The step number
|
|
18
|
+
* The step number that is displayed when the stepper type is 'description'.
|
|
19
|
+
* @remarks This property is not visible within the stepper type 'default' and only serves as an identifier for the step.
|
|
19
20
|
*/
|
|
20
21
|
step: number;
|
|
21
22
|
/**
|
|
22
|
-
* The title of the step showing in the Stepper.
|
|
23
|
+
* The title/description of the step showing in the Stepper.
|
|
23
24
|
*/
|
|
24
|
-
title: string;
|
|
25
|
+
title: string | ReactNode;
|
|
25
26
|
/**
|
|
26
27
|
* Whether the step is optional or not showing a different design.
|
|
28
|
+
*
|
|
29
|
+
* @remarks There's no adjusted display logic for optional steps when using the description type stepper.
|
|
30
|
+
* In that case, use the title prop / description to indicate that the step is optional.
|
|
27
31
|
*/
|
|
28
|
-
optional
|
|
32
|
+
optional?: boolean;
|
|
29
33
|
/**
|
|
30
34
|
* The props for the next button, including onClick, label, className and disabled state. {@link StepperButtonProps}
|
|
31
35
|
*/
|
|
@@ -40,6 +44,8 @@ export type Step = {
|
|
|
40
44
|
* @param {boolean} disabled - Whether the button is disabled or not.
|
|
41
45
|
* @param {() => void} onClick - The function to be called when the button is clicked.
|
|
42
46
|
* @param {string | ReactNode} label - The label of the button.
|
|
47
|
+
* @param {string | ReactNode} leadingIcon - A custom leading icon for the button. Takes precedence over showArrowIcon.
|
|
48
|
+
* @param {string | ReactNode} trailingIcon - A custom trailing icon for the button. Takes precedence over showArrowIcon.
|
|
43
49
|
* @param {boolean} showArrowIcon - Whether to show a leading/trailing arrow icon for the button.
|
|
44
50
|
* @param {string} buttonSize - The size of the button, defaults to 'themeDefault'.
|
|
45
51
|
* @param {boolean} fullWidth - Whether the button should take the full width of its container. *
|
|
@@ -57,12 +63,21 @@ export type StepperButtonProps = Pick<ButtonProps, 'className' | 'disabled' | 'f
|
|
|
57
63
|
* Whether to show a leading/trailing arrow icon for the button.
|
|
58
64
|
*/
|
|
59
65
|
showArrowIcon?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* A custom leading icon for the button. Takes precedence over showArrowIcon.
|
|
68
|
+
*/
|
|
69
|
+
leadingIcon?: string | ReactNode;
|
|
70
|
+
/**
|
|
71
|
+
* A custom trailing icon for the button. Takes precedence over showArrowIcon.
|
|
72
|
+
*/
|
|
73
|
+
trailingIcon?: string | ReactNode;
|
|
60
74
|
/**
|
|
61
75
|
* Property adapted from Element library
|
|
62
76
|
*/
|
|
63
77
|
buttonSize?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'themeDefault';
|
|
64
78
|
};
|
|
65
79
|
/**
|
|
80
|
+
* @param {string} stepperType - The type of the stepper indicator. Defaults to 'dots'.
|
|
66
81
|
* @param {Step[]} steps - An array of steps for the stepper.
|
|
67
82
|
* @param {number} currentStep - The current step index.
|
|
68
83
|
* @param {boolean} isStepLoading - A boolean indicating if the current step is loading. If true, the next button will be disabled and show a loading state.
|
|
@@ -71,10 +86,23 @@ export type StepperButtonProps = Pick<ButtonProps, 'className' | 'disabled' | 'f
|
|
|
71
86
|
* @param {boolean} showPreviousButtonOnFirstStep - A flag which indicates if the previous button should be shown on the first step. This can be useful for canceling the stepper.
|
|
72
87
|
*/
|
|
73
88
|
export type StepperProps = {
|
|
89
|
+
/**
|
|
90
|
+
* The display-type of the Stepper.
|
|
91
|
+
* - `default` – Shows a row of dots for each step.
|
|
92
|
+
* - `description` – Displays progress numerically (n/n) and the title next to it.
|
|
93
|
+
*
|
|
94
|
+
* @default default
|
|
95
|
+
*/
|
|
96
|
+
stepperType?: 'default' | 'description';
|
|
74
97
|
/**
|
|
75
98
|
* An array of steps for the stepper.
|
|
76
99
|
*/
|
|
77
100
|
steps: Step[];
|
|
101
|
+
/**
|
|
102
|
+
* A custom total number of steps to display in the stepper header.
|
|
103
|
+
* @remarks This can be used to show a different total number of steps than the length of the steps array.
|
|
104
|
+
*/
|
|
105
|
+
customTotalSteps?: number;
|
|
78
106
|
/**
|
|
79
107
|
* The current step index.
|
|
80
108
|
*/
|
|
@@ -101,7 +129,9 @@ export type StepperProps = {
|
|
|
101
129
|
showPreviousButtonOnFirstStep?: boolean;
|
|
102
130
|
};
|
|
103
131
|
/**
|
|
132
|
+
* @param {string} type - The type of the stepper indicator.
|
|
104
133
|
* @param {Step[]} steps - An array of steps for the stepper.
|
|
105
134
|
* @param {number} currentStep - The current step index.
|
|
135
|
+
* @param {number} customTotalSteps - A custom total number of steps to display in the stepper header.
|
|
106
136
|
*/
|
|
107
|
-
export type StepperBaseProps = Pick<StepperProps, 'steps' | 'currentStep'>;
|
|
137
|
+
export type StepperBaseProps = Pick<StepperProps, 'stepperType' | 'steps' | 'currentStep' | 'customTotalSteps'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { a as r } from "../../react.esm-
|
|
2
|
+
import { a as r } from "../../react.esm-BbMrgZCM.js";
|
|
3
3
|
import { VerticalDivider as s } from "./VerticalDivider.js";
|
|
4
4
|
import { d as o, t as l, g as i } from "../../vi.CjhMlMwf-CKxPQtd6.js";
|
|
5
5
|
o("VerticalDivider Test", () => {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { r as g, e as v, f as R } from "./index-_ck2BRrZ.js";
|
|
2
|
+
var s, c;
|
|
3
|
+
function x() {
|
|
4
|
+
if (c) return s;
|
|
5
|
+
c = 1;
|
|
6
|
+
var e = /* @__PURE__ */ v(), a = /* @__PURE__ */ R(), r = /* @__PURE__ */ g(), n = r("match");
|
|
7
|
+
return s = function(o) {
|
|
8
|
+
var t;
|
|
9
|
+
return e(o) && ((t = o[n]) !== void 0 ? !!t : a(o) === "RegExp");
|
|
10
|
+
}, s;
|
|
11
|
+
}
|
|
12
|
+
var u, p;
|
|
13
|
+
function h() {
|
|
14
|
+
if (p) return u;
|
|
15
|
+
p = 1;
|
|
16
|
+
var e = /* @__PURE__ */ x(), a = TypeError;
|
|
17
|
+
return u = function(r) {
|
|
18
|
+
if (e(r))
|
|
19
|
+
throw new a("The method doesn't accept regular expressions");
|
|
20
|
+
return r;
|
|
21
|
+
}, u;
|
|
22
|
+
}
|
|
23
|
+
var i, f;
|
|
24
|
+
function q() {
|
|
25
|
+
if (f) return i;
|
|
26
|
+
f = 1;
|
|
27
|
+
var e = /* @__PURE__ */ g(), a = e("match");
|
|
28
|
+
return i = function(r) {
|
|
29
|
+
var n = /./;
|
|
30
|
+
try {
|
|
31
|
+
"/./"[r](n);
|
|
32
|
+
} catch {
|
|
33
|
+
try {
|
|
34
|
+
return n[a] = !1, "/./"[r](n);
|
|
35
|
+
} catch {
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return !1;
|
|
39
|
+
}, i;
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
h as a,
|
|
43
|
+
q as r
|
|
44
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as a } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
|
-
import { W as Hr,
|
|
3
|
-
import { c as ie, d as oe, f as ne, e as ae, _ as y, g as ue } from "./es.string.iterator-
|
|
2
|
+
import { W as Hr, D as Nr, i as Ur, j as f, s as zr, t as Xr, X as Ar, y as Yr, U as Wr, T as P, z as d, u as Zr, Y as Jr, Z as Lr, C as Qr, $ as Vr, q as re, a0 as ee, a1 as te, a2 as Br } from "./index-_ck2BRrZ.js";
|
|
3
|
+
import { c as ie, d as oe, f as ne, e as ae, _ as y, g as ue } from "./es.string.iterator-5IsLbO9h.js";
|
|
4
4
|
var O, Q;
|
|
5
5
|
function se() {
|
|
6
6
|
return Q || (Q = 1, O = /* @__PURE__ */ Hr()), O;
|
|
@@ -42,17 +42,17 @@ function ye() {
|
|
|
42
42
|
var r = /* @__PURE__ */ ce();
|
|
43
43
|
return b = r, b;
|
|
44
44
|
}
|
|
45
|
-
var
|
|
45
|
+
var D, or;
|
|
46
46
|
function Pe() {
|
|
47
|
-
return or || (or = 1,
|
|
47
|
+
return or || (or = 1, D = /* @__PURE__ */ ye()), D;
|
|
48
48
|
}
|
|
49
49
|
var de = Pe();
|
|
50
50
|
const ut = /* @__PURE__ */ a(de);
|
|
51
|
-
var
|
|
51
|
+
var m = { exports: {} }, nr = {}, ar;
|
|
52
52
|
function qe() {
|
|
53
53
|
if (ar) return nr;
|
|
54
54
|
ar = 1;
|
|
55
|
-
var r = /* @__PURE__ */ f(), e = /* @__PURE__ */ Yr(), t = /* @__PURE__ */ Wr(), i =
|
|
55
|
+
var r = /* @__PURE__ */ f(), e = /* @__PURE__ */ Yr(), t = /* @__PURE__ */ Wr(), i = Ar().f, o = /* @__PURE__ */ P(), n = !o || e(function() {
|
|
56
56
|
i(1);
|
|
57
57
|
});
|
|
58
58
|
return r({ target: "Object", stat: !0, forced: n, sham: !o }, {
|
|
@@ -63,12 +63,12 @@ function qe() {
|
|
|
63
63
|
}
|
|
64
64
|
var ur;
|
|
65
65
|
function Oe() {
|
|
66
|
-
if (ur) return
|
|
66
|
+
if (ur) return m.exports;
|
|
67
67
|
ur = 1, qe();
|
|
68
|
-
var r = /* @__PURE__ */ d(), e = r.Object, t =
|
|
68
|
+
var r = /* @__PURE__ */ d(), e = r.Object, t = m.exports = function(o, n) {
|
|
69
69
|
return e.getOwnPropertyDescriptor(o, n);
|
|
70
70
|
};
|
|
71
|
-
return e.getOwnPropertyDescriptor.sham && (t.sham = !0),
|
|
71
|
+
return e.getOwnPropertyDescriptor.sham && (t.sham = !0), m.exports;
|
|
72
72
|
}
|
|
73
73
|
var w, sr;
|
|
74
74
|
function $e() {
|
|
@@ -84,7 +84,7 @@ function le() {
|
|
|
84
84
|
var be = le();
|
|
85
85
|
const st = /* @__PURE__ */ a(be);
|
|
86
86
|
var fr = {}, _, vr;
|
|
87
|
-
function
|
|
87
|
+
function De() {
|
|
88
88
|
if (vr) return _;
|
|
89
89
|
vr = 1;
|
|
90
90
|
var r = /* @__PURE__ */ Jr(), e = /* @__PURE__ */ Zr(), t = /* @__PURE__ */ Lr(), i = /* @__PURE__ */ Vr(), o = /* @__PURE__ */ Qr(), n = e([].concat);
|
|
@@ -94,10 +94,10 @@ function me() {
|
|
|
94
94
|
}, _;
|
|
95
95
|
}
|
|
96
96
|
var cr;
|
|
97
|
-
function
|
|
97
|
+
function me() {
|
|
98
98
|
if (cr) return fr;
|
|
99
99
|
cr = 1;
|
|
100
|
-
var r = /* @__PURE__ */ f(), e = /* @__PURE__ */ P(), t = /* @__PURE__ */
|
|
100
|
+
var r = /* @__PURE__ */ f(), e = /* @__PURE__ */ P(), t = /* @__PURE__ */ De(), i = /* @__PURE__ */ Wr(), o = /* @__PURE__ */ Ar(), n = /* @__PURE__ */ re();
|
|
101
101
|
return r({ target: "Object", stat: !0, sham: !e }, {
|
|
102
102
|
getOwnPropertyDescriptors: function(s) {
|
|
103
103
|
for (var u = i(s), c = o.f, Y = t(u), Z = {}, J = 0, L, q; Y.length > J; )
|
|
@@ -109,7 +109,7 @@ function De() {
|
|
|
109
109
|
var g, yr;
|
|
110
110
|
function we() {
|
|
111
111
|
if (yr) return g;
|
|
112
|
-
yr = 1,
|
|
112
|
+
yr = 1, me();
|
|
113
113
|
var r = /* @__PURE__ */ d();
|
|
114
114
|
return g = r.Object.getOwnPropertyDescriptors, g;
|
|
115
115
|
}
|
|
@@ -157,14 +157,14 @@ function Se() {
|
|
|
157
157
|
}
|
|
158
158
|
var xe = Se();
|
|
159
159
|
const ft = /* @__PURE__ */ a(xe);
|
|
160
|
-
var I = { exports: {} },
|
|
160
|
+
var I = { exports: {} }, Dr = {}, mr;
|
|
161
161
|
function Ie() {
|
|
162
|
-
if (
|
|
163
|
-
|
|
162
|
+
if (mr) return Dr;
|
|
163
|
+
mr = 1;
|
|
164
164
|
var r = /* @__PURE__ */ f(), e = /* @__PURE__ */ P(), t = te().f;
|
|
165
165
|
return r({ target: "Object", stat: !0, forced: Object.defineProperty !== t, sham: !e }, {
|
|
166
166
|
defineProperty: t
|
|
167
|
-
}),
|
|
167
|
+
}), Dr;
|
|
168
168
|
}
|
|
169
169
|
var wr;
|
|
170
170
|
function Ge() {
|
|
@@ -176,7 +176,7 @@ function Ge() {
|
|
|
176
176
|
return e.defineProperty.sham && (t.sham = !0), I.exports;
|
|
177
177
|
}
|
|
178
178
|
var G, hr;
|
|
179
|
-
function
|
|
179
|
+
function kr() {
|
|
180
180
|
if (hr) return G;
|
|
181
181
|
hr = 1;
|
|
182
182
|
var r = /* @__PURE__ */ Ge();
|
|
@@ -184,61 +184,61 @@ function Br() {
|
|
|
184
184
|
}
|
|
185
185
|
var T, _r;
|
|
186
186
|
function Te() {
|
|
187
|
-
return _r || (_r = 1, T = /* @__PURE__ */
|
|
187
|
+
return _r || (_r = 1, T = /* @__PURE__ */ kr()), T;
|
|
188
188
|
}
|
|
189
189
|
var Fe = Te();
|
|
190
190
|
const vt = /* @__PURE__ */ a(Fe);
|
|
191
191
|
var F, gr;
|
|
192
|
-
function
|
|
192
|
+
function Ce() {
|
|
193
193
|
if (gr) return F;
|
|
194
194
|
gr = 1;
|
|
195
|
-
var r = /* @__PURE__ */
|
|
195
|
+
var r = /* @__PURE__ */ kr();
|
|
196
196
|
return F = r, F;
|
|
197
197
|
}
|
|
198
|
-
var
|
|
199
|
-
function
|
|
200
|
-
if (Rr) return
|
|
198
|
+
var C, Rr;
|
|
199
|
+
function Ke() {
|
|
200
|
+
if (Rr) return C;
|
|
201
201
|
Rr = 1;
|
|
202
|
-
var r = /* @__PURE__ */
|
|
203
|
-
return
|
|
202
|
+
var r = /* @__PURE__ */ Ce();
|
|
203
|
+
return C = r, C;
|
|
204
204
|
}
|
|
205
|
-
var
|
|
206
|
-
function
|
|
207
|
-
return jr || (jr = 1,
|
|
205
|
+
var K, jr;
|
|
206
|
+
function Me() {
|
|
207
|
+
return jr || (jr = 1, K = /* @__PURE__ */ Ke()), K;
|
|
208
208
|
}
|
|
209
|
-
var
|
|
210
|
-
const We = /* @__PURE__ */ a(
|
|
211
|
-
var
|
|
212
|
-
function
|
|
213
|
-
if (Er) return
|
|
209
|
+
var Ae = /* @__PURE__ */ Me();
|
|
210
|
+
const We = /* @__PURE__ */ a(Ae);
|
|
211
|
+
var M, Er;
|
|
212
|
+
function Be() {
|
|
213
|
+
if (Er) return M;
|
|
214
214
|
Er = 1, ie(), oe(), ne();
|
|
215
|
-
var r = /* @__PURE__ */
|
|
216
|
-
return
|
|
215
|
+
var r = /* @__PURE__ */ Br();
|
|
216
|
+
return M = r.f("iterator"), M;
|
|
217
217
|
}
|
|
218
|
-
var
|
|
219
|
-
function
|
|
220
|
-
if (Sr) return
|
|
218
|
+
var A, Sr;
|
|
219
|
+
function ke() {
|
|
220
|
+
if (Sr) return A;
|
|
221
221
|
Sr = 1;
|
|
222
|
-
var r = /* @__PURE__ */
|
|
223
|
-
return ae(),
|
|
222
|
+
var r = /* @__PURE__ */ Be();
|
|
223
|
+
return ae(), A = r, A;
|
|
224
224
|
}
|
|
225
225
|
var W, xr;
|
|
226
226
|
function He() {
|
|
227
227
|
if (xr) return W;
|
|
228
228
|
xr = 1;
|
|
229
|
-
var r = /* @__PURE__ */
|
|
229
|
+
var r = /* @__PURE__ */ ke();
|
|
230
230
|
return W = r, W;
|
|
231
231
|
}
|
|
232
|
-
var
|
|
232
|
+
var B, Ir;
|
|
233
233
|
function Ne() {
|
|
234
|
-
if (Ir) return
|
|
234
|
+
if (Ir) return B;
|
|
235
235
|
Ir = 1;
|
|
236
236
|
var r = /* @__PURE__ */ He();
|
|
237
|
-
return
|
|
237
|
+
return B = r, B;
|
|
238
238
|
}
|
|
239
|
-
var
|
|
239
|
+
var k, Gr;
|
|
240
240
|
function Ue() {
|
|
241
|
-
return Gr || (Gr = 1,
|
|
241
|
+
return Gr || (Gr = 1, k = /* @__PURE__ */ Ne()), k;
|
|
242
242
|
}
|
|
243
243
|
var ze = /* @__PURE__ */ Ue();
|
|
244
244
|
const Xe = /* @__PURE__ */ a(ze);
|
|
@@ -254,7 +254,7 @@ var H, Tr;
|
|
|
254
254
|
function Ye() {
|
|
255
255
|
if (Tr) return H;
|
|
256
256
|
Tr = 1, ue();
|
|
257
|
-
var r = /* @__PURE__ */
|
|
257
|
+
var r = /* @__PURE__ */ Br();
|
|
258
258
|
return H = r.f("toPrimitive"), H;
|
|
259
259
|
}
|
|
260
260
|
var N, Fr;
|
|
@@ -264,23 +264,23 @@ function Ze() {
|
|
|
264
264
|
var r = /* @__PURE__ */ Ye();
|
|
265
265
|
return N = r, N;
|
|
266
266
|
}
|
|
267
|
-
var U,
|
|
267
|
+
var U, Cr;
|
|
268
268
|
function Je() {
|
|
269
|
-
if (
|
|
270
|
-
|
|
269
|
+
if (Cr) return U;
|
|
270
|
+
Cr = 1;
|
|
271
271
|
var r = /* @__PURE__ */ Ze();
|
|
272
272
|
return U = r, U;
|
|
273
273
|
}
|
|
274
|
-
var z,
|
|
274
|
+
var z, Kr;
|
|
275
275
|
function Le() {
|
|
276
|
-
if (
|
|
277
|
-
|
|
276
|
+
if (Kr) return z;
|
|
277
|
+
Kr = 1;
|
|
278
278
|
var r = /* @__PURE__ */ Je();
|
|
279
279
|
return z = r, z;
|
|
280
280
|
}
|
|
281
|
-
var X,
|
|
281
|
+
var X, Mr;
|
|
282
282
|
function Qe() {
|
|
283
|
-
return
|
|
283
|
+
return Mr || (Mr = 1, X = /* @__PURE__ */ Le()), X;
|
|
284
284
|
}
|
|
285
285
|
var Ve = /* @__PURE__ */ Qe();
|
|
286
286
|
const rt = /* @__PURE__ */ a(Ve);
|