@hortiview/shared-components 2.15.0 → 2.16.0
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 +6 -0
- package/dist/AlertBanner-aW6joVUm.js +35 -0
- package/dist/assets/ButtonCard.css +1 -0
- package/dist/assets/ConfirmationModal.css +1 -0
- package/dist/assets/InfoCard.css +1 -1
- package/dist/assets/stepper.css +1 -1
- package/dist/components/AlertBanner/AlertBanner.d.ts +5 -1
- package/dist/components/AlertBanner/AlertBanner.js +1 -1
- package/dist/components/AlertBanner/AlertBanner.test.js +9 -7
- package/dist/components/AlertBanner/LinkBanner.js +1 -1
- package/dist/components/AlertBanner/LinkBanner.test.js +3 -3
- package/dist/components/BaseView/BaseView.test.js +1 -1
- package/dist/components/ButtonCard/ButtonCard.d.ts +42 -0
- package/dist/components/ButtonCard/ButtonCard.js +51 -0
- package/dist/components/ButtonCard/ButtonCard.test.d.ts +1 -0
- package/dist/components/ButtonCard/ButtonCard.test.js +92 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +77 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.js +90 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.test.d.ts +1 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.test.js +221 -0
- package/dist/components/DeleteModal/DeleteModal.js +6 -6
- package/dist/components/Filter/Filter.js +3 -3
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +1 -1
- package/dist/components/FormComponents/FormNumber/CustomTextField.js +1 -1
- package/dist/components/FormComponents/FormSlider/FormSlider.js +1 -1
- package/dist/components/FormComponents/FormText/FormText.js +1 -1
- package/dist/components/GenericTable/GenericTable.js +4 -4
- package/dist/components/InfoCard/InfoCard.d.ts +6 -2
- package/dist/components/InfoCard/InfoCard.js +50 -37
- package/dist/components/InfoCard/InfoCard.test.js +40 -18
- package/dist/components/ModulePadding/ModulePadding.js +2 -2
- package/dist/components/SearchBar/SearchBar.js +1 -1
- package/dist/components/Stepper/Stepper.d.ts +13 -6
- package/dist/components/Stepper/Stepper.js +94 -39
- package/dist/components/Stepper/Stepper.test.js +305 -121
- package/dist/components/Stepper/components/StepperButton.js +1 -1
- package/dist/components/Stepper/components/StepperHeader.d.ts +1 -10
- package/dist/components/Stepper/components/StepperHeader.js +140 -69
- package/dist/components/Stepper/components/StepperItem.d.ts +8 -0
- package/dist/components/Stepper/components/StepperItem.js +44 -0
- package/dist/components/Stepper/stepperTypes.d.ts +105 -46
- package/dist/components/Stepper/stepperTypes.js +4 -1
- package/dist/{index.es-B74L_Dje.js → index.es-BYcQTTL8.js} +3 -3
- package/dist/{index.es-C7cC1Hdu.js → index.es-C32E1Lcb.js} +1 -1
- package/dist/main.d.ts +2 -1
- package/dist/main.js +118 -116
- package/dist/services/UtilService.js +2 -2
- package/dist/stepper.module-DR_FbENS.js +23 -0
- package/package.json +3 -2
- package/dist/AlertBanner-Ci-F-6S9.js +0 -26
- package/dist/components/Stepper/components/StepperIndicator.d.ts +0 -9
- package/dist/components/Stepper/components/StepperIndicator.js +0 -16
- package/dist/stepper.module-c-CWmpkt.js +0 -15
package/dist/main.js
CHANGED
|
@@ -1,127 +1,129 @@
|
|
|
1
|
-
import { A as e } from "./AlertBanner-
|
|
1
|
+
import { A as e } from "./AlertBanner-aW6joVUm.js";
|
|
2
2
|
import { LinkBanner as m } from "./components/AlertBanner/LinkBanner.js";
|
|
3
3
|
import { BaseView as f } from "./components/BaseView/BaseView.js";
|
|
4
4
|
import { BasicHeading as i } from "./components/BasicHeading/BasicHeading.js";
|
|
5
5
|
import { BlockView as n } from "./components/BlockView/BlockView.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
6
|
+
import { ButtonCard as A } from "./components/ButtonCard/ButtonCard.js";
|
|
7
|
+
import { ChipCard as d } from "./components/ChipCard/ChipCard.js";
|
|
8
|
+
import { ConfirmationModal as S } from "./components/ConfirmationModal/ConfirmationModal.js";
|
|
9
|
+
import { ContextMenu as L } from "./components/ContextMenu/ContextMenu.js";
|
|
10
|
+
import { DeleteModal as F } from "./components/DeleteModal/DeleteModal.js";
|
|
11
|
+
import { DetailContentWrapper as T } from "./components/DetailContentWrapper/DetailContentWrapper.js";
|
|
12
|
+
import { Disclaimer as D } from "./components/Disclaimer/Disclaimer.js";
|
|
13
|
+
import { EmptyView as u } from "./components/EmptyView/EmptyView.js";
|
|
14
|
+
import { Filter as C } from "./components/Filter/Filter.js";
|
|
15
|
+
import { FormattedNumberDisplay as N } from "./components/FormattedNumberDisplay/FormattedNumberDisplay.js";
|
|
16
|
+
import { GenericTable as w } from "./components/GenericTable/GenericTable.js";
|
|
17
|
+
import { HashTabView as b } from "./components/HashTabView/HashTabView.js";
|
|
18
|
+
import { HeaderFilter as V } from "./components/HeaderFilter/HeaderFilter.js";
|
|
19
|
+
import { Iconify as U } from "./components/Iconify/Iconify.js";
|
|
20
|
+
import { InfoCard as k } from "./components/InfoCard/InfoCard.js";
|
|
21
|
+
import { InfoGroup as y } from "./components/InfoGroup/InfoGroup.js";
|
|
22
|
+
import { ListArea as Y } from "./components/ListArea/ListArea.js";
|
|
23
|
+
import { LoadingSpinner as z } from "./components/LoadingSpinner/Default/LoadingSpinner.js";
|
|
24
|
+
import { Modal as j } from "./components/Modal/Modal.js";
|
|
25
|
+
import { ModulePadding as J } from "./components/ModulePadding/ModulePadding.js";
|
|
26
|
+
import { O as Z } from "./OfflineView-CIwV08EQ.js";
|
|
27
|
+
import { OnboardingBanner as rr } from "./components/OnboardingBanner/OnboardingBanner.js";
|
|
28
|
+
import { OverflowTooltip as er } from "./components/OverflowTooltip/OverflowTooltip.js";
|
|
29
|
+
import { ScrollbarX as mr, ScrollbarY as pr } from "./components/Scrollbar/Scrollbar.js";
|
|
30
|
+
import { SearchBar as xr } from "./components/SearchBar/SearchBar.js";
|
|
31
|
+
import { Select as ar } from "./components/Select/Select.js";
|
|
32
|
+
import { StepperHeader as lr } from "./components/Stepper/components/StepperHeader.js";
|
|
33
|
+
import { Stepper as sr } from "./components/Stepper/Stepper.js";
|
|
34
|
+
import { VerticalDivider as Er } from "./components/VerticalDivider/VerticalDivider.js";
|
|
35
|
+
import { FormCheckBox as cr } from "./components/FormComponents/FormCheckBox/FormCheckBox.js";
|
|
36
|
+
import { FormDatePicker as _r } from "./components/FormComponents/FormDatePicker/FormDatePicker.js";
|
|
37
|
+
import { FormNumber as Ir } from "./components/FormComponents/FormNumber/FormNumber.js";
|
|
38
|
+
import { FormRadio as Gr } from "./components/FormComponents/FormRadio/FormRadio.js";
|
|
39
|
+
import { FormSelect as Mr } from "./components/FormComponents/FormSelect/FormSelect.js";
|
|
40
|
+
import { FormSlider as Br } from "./components/FormComponents/FormSlider/FormSlider.js";
|
|
41
|
+
import { FormText as Pr } from "./components/FormComponents/FormText/FormText.js";
|
|
42
|
+
import { FormToggle as gr } from "./components/FormComponents/FormToggle/FormToggle.js";
|
|
43
|
+
import { SafeForm as Or } from "./components/SafeForm/SafeForm.js";
|
|
44
|
+
import { AvailableCustomIcons as Rr } from "./enums/AvailableCustomIcons.js";
|
|
45
|
+
import { ThemeColor as Hr } from "./enums/ThemeColor.js";
|
|
46
|
+
import { u as hr } from "./useBreakpoints-MzTZ0tCT.js";
|
|
47
|
+
import { capitalizeFirstLetters as vr, getFormattedDateTime as yr, getNumberAsLocaleString as Wr, trimLeadingAndTrailingSpaces as Yr } from "./services/UtilService.js";
|
|
48
|
+
import { DATE_FORMAT as zr, DATE_TIME_FORMAT as Xr, TIME_FORMAT as jr } from "./types/Time.js";
|
|
49
|
+
import { AVAILABLE_COUNTRY_KEYS as Jr, AVAILABLE_LOCALES as Qr, ENGLISH_LANGUAGE_ID as Zr, GERMAN_LANGUAGE_ID as $r, LANGUAGE_CODES_MAPPER as ro, LANGUAGE_ID_MAPPER as oo, SPANISH_LANGUAGE_ID as eo, TURKISH_LANGUAGE_ID as to } from "./types/Languages.js";
|
|
50
|
+
import { Allowed as po } from "./components/Allowed/Allowed.js";
|
|
51
|
+
import { AllowedButton as xo } from "./components/AllowedButton/AllowedButton.js";
|
|
52
|
+
import { AllowedIconButton as ao } from "./components/AllowedIconButton/AllowedIconButton.js";
|
|
53
|
+
import { getPermissionsFromModulePermissionToken as lo, useIsAllowed as Ao } from "./components/PermissionChecks/PermissionService.js";
|
|
54
|
+
import { SharedComponentsPermissionProvider as Eo } from "./components/SharedComponentsPermissionProvider/SharedComponentsPermissionProvider.js";
|
|
55
|
+
import { createPermissionWrapper as co, renderWithPermissions as Lo } from "./test-utils.js";
|
|
56
|
+
import { HVMainPermissions as Fo } from "./types/Permission.js";
|
|
56
57
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
Jr as AVAILABLE_COUNTRY_KEYS,
|
|
59
|
+
Qr as AVAILABLE_LOCALES,
|
|
59
60
|
e as AlertBanner,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
po as Allowed,
|
|
62
|
+
xo as AllowedButton,
|
|
63
|
+
ao as AllowedIconButton,
|
|
64
|
+
Rr as AvailableCustomIcons,
|
|
64
65
|
f as BaseView,
|
|
65
66
|
i as BasicHeading,
|
|
66
67
|
n as BlockView,
|
|
67
|
-
A as
|
|
68
|
-
d as
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
b as
|
|
92
|
-
V as
|
|
93
|
-
U as
|
|
94
|
-
|
|
95
|
-
|
|
68
|
+
A as ButtonCard,
|
|
69
|
+
d as ChipCard,
|
|
70
|
+
S as ConfirmationModal,
|
|
71
|
+
L as ContextMenu,
|
|
72
|
+
zr as DATE_FORMAT,
|
|
73
|
+
Xr as DATE_TIME_FORMAT,
|
|
74
|
+
F as DeleteModal,
|
|
75
|
+
T as DetailContentWrapper,
|
|
76
|
+
D as Disclaimer,
|
|
77
|
+
Zr as ENGLISH_LANGUAGE_ID,
|
|
78
|
+
u as EmptyView,
|
|
79
|
+
C as Filter,
|
|
80
|
+
cr as FormCheckBox,
|
|
81
|
+
_r as FormDatePicker,
|
|
82
|
+
Ir as FormNumber,
|
|
83
|
+
Gr as FormRadio,
|
|
84
|
+
Mr as FormSelect,
|
|
85
|
+
Br as FormSlider,
|
|
86
|
+
Pr as FormText,
|
|
87
|
+
gr as FormToggle,
|
|
88
|
+
N as FormattedNumberDisplay,
|
|
89
|
+
$r as GERMAN_LANGUAGE_ID,
|
|
90
|
+
w as GenericTable,
|
|
91
|
+
Fo as HVMainPermissions,
|
|
92
|
+
b as HashTabView,
|
|
93
|
+
V as HeaderFilter,
|
|
94
|
+
U as Iconify,
|
|
95
|
+
k as InfoCard,
|
|
96
|
+
y as InfoGroup,
|
|
97
|
+
ro as LANGUAGE_CODES_MAPPER,
|
|
98
|
+
oo as LANGUAGE_ID_MAPPER,
|
|
96
99
|
m as LinkBanner,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
no as useIsAllowed
|
|
100
|
+
Y as ListArea,
|
|
101
|
+
z as LoadingSpinner,
|
|
102
|
+
j as Modal,
|
|
103
|
+
J as ModulePadding,
|
|
104
|
+
Z as OfflineView,
|
|
105
|
+
rr as OnboardingBanner,
|
|
106
|
+
er as OverflowTooltip,
|
|
107
|
+
eo as SPANISH_LANGUAGE_ID,
|
|
108
|
+
Or as SafeForm,
|
|
109
|
+
mr as ScrollbarX,
|
|
110
|
+
pr as ScrollbarY,
|
|
111
|
+
xr as SearchBar,
|
|
112
|
+
ar as Select,
|
|
113
|
+
Eo as SharedComponentsPermissionProvider,
|
|
114
|
+
sr as Stepper,
|
|
115
|
+
lr as StepperHeader,
|
|
116
|
+
jr as TIME_FORMAT,
|
|
117
|
+
to as TURKISH_LANGUAGE_ID,
|
|
118
|
+
Hr as ThemeColor,
|
|
119
|
+
Er as VerticalDivider,
|
|
120
|
+
vr as capitalizeFirstLetters,
|
|
121
|
+
co as createPermissionWrapper,
|
|
122
|
+
yr as getFormattedDateTime,
|
|
123
|
+
Wr as getNumberAsLocaleString,
|
|
124
|
+
lo as getPermissionsFromModulePermissionToken,
|
|
125
|
+
Lo as renderWithPermissions,
|
|
126
|
+
Yr as trimLeadingAndTrailingSpaces,
|
|
127
|
+
hr as useBreakpoints,
|
|
128
|
+
Ao as useIsAllowed
|
|
127
129
|
};
|
|
@@ -6,13 +6,13 @@ import "../isEmpty-BnfHn4bl.js";
|
|
|
6
6
|
import "react";
|
|
7
7
|
import "../react-tooltip.min-CVsI--2Y.js";
|
|
8
8
|
import "../orderBy-DLBJlgdL.js";
|
|
9
|
+
import "../index-CuHybtft.js";
|
|
10
|
+
import "../components/SharedComponentsPermissionProvider/PermissionContext.js";
|
|
9
11
|
import "../uniqueId-BNVTeImh.js";
|
|
10
12
|
import "react-hook-form";
|
|
11
13
|
import "../get-D8IXqiys.js";
|
|
12
14
|
import "../omit-CYY_mIYv.js";
|
|
13
15
|
import { DATE_FORMAT as c } from "../types/Time.js";
|
|
14
|
-
import "../index-CuHybtft.js";
|
|
15
|
-
import "../components/SharedComponentsPermissionProvider/PermissionContext.js";
|
|
16
16
|
import "../react.esm-Bm0cAgpZ.js";
|
|
17
17
|
const d = (t) => t.split(" ").map((r) => r.charAt(0).toUpperCase() + r.slice(1).toLowerCase()).join(" "), f = (t) => Object.fromEntries(
|
|
18
18
|
Object.entries(t).map(([r, i]) => [r, o(i)])
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import './assets/stepper.css';const e = "_stepperIndicatorItem_1tz4b_1", t = "_stepperIndicatorItemActive_1tz4b_8", p = "_stepperIndicatorItemOptional_1tz4b_12", r = "_stepperContainer_1tz4b_16", s = "_stepperTitle_1tz4b_23", o = "_stepperButton_1tz4b_28", n = "_stepperButtonLoading_1tz4b_32", i = "_stepperDescriptionContainer_1tz4b_43", _ = "_stepperDescriptionProgress_1tz4b_49", c = "_stepperDescriptionText_1tz4b_60", m = "_stepperDesktopHeaderContainer_1tz4b_66", I = "_stepperItem_1tz4b_73", a = "_stepperItemNumber_1tz4b_73", b = "_stepperItemNumberActive_1tz4b_91", d = "_itemText_1tz4b_96", z = "_itemTextActive_1tz4b_101", C = "_stepperItemConnector_1tz4b_105", u = "_stepperItemConnectorCompleted_1tz4b_125", D = {
|
|
2
|
+
stepperIndicatorItem: e,
|
|
3
|
+
stepperIndicatorItemActive: t,
|
|
4
|
+
stepperIndicatorItemOptional: p,
|
|
5
|
+
stepperContainer: r,
|
|
6
|
+
stepperTitle: s,
|
|
7
|
+
stepperButton: o,
|
|
8
|
+
stepperButtonLoading: n,
|
|
9
|
+
stepperDescriptionContainer: i,
|
|
10
|
+
stepperDescriptionProgress: _,
|
|
11
|
+
stepperDescriptionText: c,
|
|
12
|
+
stepperDesktopHeaderContainer: m,
|
|
13
|
+
stepperItem: I,
|
|
14
|
+
stepperItemNumber: a,
|
|
15
|
+
stepperItemNumberActive: b,
|
|
16
|
+
itemText: d,
|
|
17
|
+
itemTextActive: z,
|
|
18
|
+
stepperItemConnector: C,
|
|
19
|
+
stepperItemConnectorCompleted: u
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
D as s
|
|
23
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hortiview/shared-components",
|
|
3
3
|
"description": "This is a shared component library. It should used in the HortiView platform and its modules.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.16.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared",
|
|
7
7
|
"author": "Falk Menge <falk.menge.ext@bayer.com>",
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
"react": "^18.3.1",
|
|
47
47
|
"react-dom": "^18.3.1",
|
|
48
48
|
"react-hook-form": "^7.55.0",
|
|
49
|
-
"react-number-format": "^5.4.3"
|
|
49
|
+
"react-number-format": "^5.4.3",
|
|
50
|
+
"@element-public/react-components": "^5.72.2-alpha.1"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
53
|
"@chromatic-com/storybook": "^3.2.4",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx as n, Fragment as i, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import { G as l } from "./index.es-oxil0uFe.js";
|
|
3
|
-
import { I as _ } from "./index.es-Dgxrk6xW.js";
|
|
4
|
-
import { T as m } from "./index.es-SjZ_-d7U.js";
|
|
5
|
-
import './assets/AlertBanner.css';const d = "_messageContainer_2hnjr_1", g = "_info_2hnjr_9", h = "_danger_2hnjr_14", f = "_success_2hnjr_19", p = "_warning_2hnjr_24", u = "_closeIcon_2hnjr_29", j = "_linkBanner_2hnjr_34", s = {
|
|
6
|
-
messageContainer: d,
|
|
7
|
-
info: g,
|
|
8
|
-
danger: h,
|
|
9
|
-
success: f,
|
|
10
|
-
warning: p,
|
|
11
|
-
closeIcon: u,
|
|
12
|
-
linkBanner: j
|
|
13
|
-
}, k = ({
|
|
14
|
-
text: e,
|
|
15
|
-
color: o = "info",
|
|
16
|
-
isOpen: a = !0,
|
|
17
|
-
isBold: c = !0,
|
|
18
|
-
onClose: r
|
|
19
|
-
}) => a ? /* @__PURE__ */ n("div", { "data-testid": "alert-banner", className: `${s.messageContainer} ${s[o]}`, children: /* @__PURE__ */ t(l, { primaryAlign: "space-between", gap: "dense", fullWidth: !0, children: [
|
|
20
|
-
typeof e == "string" ? /* @__PURE__ */ n(m, { bold: c, level: 2, children: e }) : /* @__PURE__ */ n("div", { style: { width: "100%" }, children: e }),
|
|
21
|
-
r && /* @__PURE__ */ n(_, { icon: "close", iconSize: "small", onClick: r, className: s.closeIcon })
|
|
22
|
-
] }) }) : /* @__PURE__ */ n(i, {});
|
|
23
|
-
export {
|
|
24
|
-
k as A,
|
|
25
|
-
s
|
|
26
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { StepperBaseProps } from '../stepperTypes';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A component that displays the stepper indicator, showing the current step and optional steps.
|
|
5
|
-
* @param steps - An array of steps for the stepper.
|
|
6
|
-
* @param currentStep - The current step index.
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
|
-
export declare const StepperIndicator: ({ steps, currentStep }: StepperBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { G as p } from "../../../index.es-oxil0uFe.js";
|
|
3
|
-
import { s as e } from "../../../stepper.module-c-CWmpkt.js";
|
|
4
|
-
const m = ({ steps: a, currentStep: i }) => /* @__PURE__ */ r(p, { gap: "dense", "data-testid": "stepper-indicator", children: a.map((t, o) => /* @__PURE__ */ r(
|
|
5
|
-
"div",
|
|
6
|
-
{
|
|
7
|
-
"data-testid": `stepper-indicator-${t.name}`,
|
|
8
|
-
className: `${e.stepperIndicatorItem}
|
|
9
|
-
${t.optional ? e.stepperIndicatorItemOptional : ""}
|
|
10
|
-
${o <= i ? e.stepperIndicatorItemActive : ""}`
|
|
11
|
-
},
|
|
12
|
-
`indicator_${t.name}`
|
|
13
|
-
)) });
|
|
14
|
-
export {
|
|
15
|
-
m as StepperIndicator
|
|
16
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import './assets/stepper.css';const t = "_stepperIndicatorItem_x786o_1", e = "_stepperIndicatorItemActive_x786o_8", p = "_stepperIndicatorItemOptional_x786o_12", o = "_stepperContainer_x786o_16", r = "_stepperTitle_x786o_23", s = "_stepperButton_x786o_28", n = "_stepperButtonLoading_x786o_32", i = "_stepperDescriptionContainer_x786o_43", c = "_stepperDescriptionProgress_x786o_49", _ = "_stepperDescriptionText_x786o_60", a = {
|
|
2
|
-
stepperIndicatorItem: t,
|
|
3
|
-
stepperIndicatorItemActive: e,
|
|
4
|
-
stepperIndicatorItemOptional: p,
|
|
5
|
-
stepperContainer: o,
|
|
6
|
-
stepperTitle: r,
|
|
7
|
-
stepperButton: s,
|
|
8
|
-
stepperButtonLoading: n,
|
|
9
|
-
stepperDescriptionContainer: i,
|
|
10
|
-
stepperDescriptionProgress: c,
|
|
11
|
-
stepperDescriptionText: _
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
a as s
|
|
15
|
-
};
|