@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.
Files changed (53) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/AlertBanner-aW6joVUm.js +35 -0
  3. package/dist/assets/ButtonCard.css +1 -0
  4. package/dist/assets/ConfirmationModal.css +1 -0
  5. package/dist/assets/InfoCard.css +1 -1
  6. package/dist/assets/stepper.css +1 -1
  7. package/dist/components/AlertBanner/AlertBanner.d.ts +5 -1
  8. package/dist/components/AlertBanner/AlertBanner.js +1 -1
  9. package/dist/components/AlertBanner/AlertBanner.test.js +9 -7
  10. package/dist/components/AlertBanner/LinkBanner.js +1 -1
  11. package/dist/components/AlertBanner/LinkBanner.test.js +3 -3
  12. package/dist/components/BaseView/BaseView.test.js +1 -1
  13. package/dist/components/ButtonCard/ButtonCard.d.ts +42 -0
  14. package/dist/components/ButtonCard/ButtonCard.js +51 -0
  15. package/dist/components/ButtonCard/ButtonCard.test.d.ts +1 -0
  16. package/dist/components/ButtonCard/ButtonCard.test.js +92 -0
  17. package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +77 -0
  18. package/dist/components/ConfirmationModal/ConfirmationModal.js +90 -0
  19. package/dist/components/ConfirmationModal/ConfirmationModal.test.d.ts +1 -0
  20. package/dist/components/ConfirmationModal/ConfirmationModal.test.js +221 -0
  21. package/dist/components/DeleteModal/DeleteModal.js +6 -6
  22. package/dist/components/Filter/Filter.js +3 -3
  23. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +1 -1
  24. package/dist/components/FormComponents/FormNumber/CustomTextField.js +1 -1
  25. package/dist/components/FormComponents/FormSlider/FormSlider.js +1 -1
  26. package/dist/components/FormComponents/FormText/FormText.js +1 -1
  27. package/dist/components/GenericTable/GenericTable.js +4 -4
  28. package/dist/components/InfoCard/InfoCard.d.ts +6 -2
  29. package/dist/components/InfoCard/InfoCard.js +50 -37
  30. package/dist/components/InfoCard/InfoCard.test.js +40 -18
  31. package/dist/components/ModulePadding/ModulePadding.js +2 -2
  32. package/dist/components/SearchBar/SearchBar.js +1 -1
  33. package/dist/components/Stepper/Stepper.d.ts +13 -6
  34. package/dist/components/Stepper/Stepper.js +94 -39
  35. package/dist/components/Stepper/Stepper.test.js +305 -121
  36. package/dist/components/Stepper/components/StepperButton.js +1 -1
  37. package/dist/components/Stepper/components/StepperHeader.d.ts +1 -10
  38. package/dist/components/Stepper/components/StepperHeader.js +140 -69
  39. package/dist/components/Stepper/components/StepperItem.d.ts +8 -0
  40. package/dist/components/Stepper/components/StepperItem.js +44 -0
  41. package/dist/components/Stepper/stepperTypes.d.ts +105 -46
  42. package/dist/components/Stepper/stepperTypes.js +4 -1
  43. package/dist/{index.es-B74L_Dje.js → index.es-BYcQTTL8.js} +3 -3
  44. package/dist/{index.es-C7cC1Hdu.js → index.es-C32E1Lcb.js} +1 -1
  45. package/dist/main.d.ts +2 -1
  46. package/dist/main.js +118 -116
  47. package/dist/services/UtilService.js +2 -2
  48. package/dist/stepper.module-DR_FbENS.js +23 -0
  49. package/package.json +3 -2
  50. package/dist/AlertBanner-Ci-F-6S9.js +0 -26
  51. package/dist/components/Stepper/components/StepperIndicator.d.ts +0 -9
  52. package/dist/components/Stepper/components/StepperIndicator.js +0 -16
  53. 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-Ci-F-6S9.js";
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 { ChipCard as A } from "./components/ChipCard/ChipCard.js";
7
- import { ContextMenu as d } from "./components/ContextMenu/ContextMenu.js";
8
- import { DeleteModal as c } from "./components/DeleteModal/DeleteModal.js";
9
- import { DetailContentWrapper as I } from "./components/DetailContentWrapper/DetailContentWrapper.js";
10
- import { Disclaimer as _ } from "./components/Disclaimer/Disclaimer.js";
11
- import { EmptyView as T } from "./components/EmptyView/EmptyView.js";
12
- import { Filter as D } from "./components/Filter/Filter.js";
13
- import { FormattedNumberDisplay as P } from "./components/FormattedNumberDisplay/FormattedNumberDisplay.js";
14
- import { GenericTable as B } from "./components/GenericTable/GenericTable.js";
15
- import { HashTabView as g } from "./components/HashTabView/HashTabView.js";
16
- import { HeaderFilter as w } from "./components/HeaderFilter/HeaderFilter.js";
17
- import { Iconify as b } from "./components/Iconify/Iconify.js";
18
- import { InfoCard as V } from "./components/InfoCard/InfoCard.js";
19
- import { InfoGroup as U } from "./components/InfoGroup/InfoGroup.js";
20
- import { ListArea as k } from "./components/ListArea/ListArea.js";
21
- import { LoadingSpinner as y } from "./components/LoadingSpinner/Default/LoadingSpinner.js";
22
- import { Modal as Y } from "./components/Modal/Modal.js";
23
- import { ModulePadding as z } from "./components/ModulePadding/ModulePadding.js";
24
- import { O as j } from "./OfflineView-CIwV08EQ.js";
25
- import { OnboardingBanner as J } from "./components/OnboardingBanner/OnboardingBanner.js";
26
- import { OverflowTooltip as Z } from "./components/OverflowTooltip/OverflowTooltip.js";
27
- import { ScrollbarX as rr, ScrollbarY as or } from "./components/Scrollbar/Scrollbar.js";
28
- import { SearchBar as tr } from "./components/SearchBar/SearchBar.js";
29
- import { Select as pr } from "./components/Select/Select.js";
30
- import { StepperHeader as xr } from "./components/Stepper/components/StepperHeader.js";
31
- import { StepperIndicator as ar } from "./components/Stepper/components/StepperIndicator.js";
32
- import { Stepper as lr } from "./components/Stepper/Stepper.js";
33
- import { VerticalDivider as sr } from "./components/VerticalDivider/VerticalDivider.js";
34
- import { FormCheckBox as Sr } from "./components/FormComponents/FormCheckBox/FormCheckBox.js";
35
- import { FormDatePicker as Er } from "./components/FormComponents/FormDatePicker/FormDatePicker.js";
36
- import { FormNumber as Lr } from "./components/FormComponents/FormNumber/FormNumber.js";
37
- import { FormRadio as Fr } from "./components/FormComponents/FormRadio/FormRadio.js";
38
- import { FormSelect as Gr } from "./components/FormComponents/FormSelect/FormSelect.js";
39
- import { FormSlider as Mr } from "./components/FormComponents/FormSlider/FormSlider.js";
40
- import { FormText as ur } from "./components/FormComponents/FormText/FormText.js";
41
- import { FormToggle as Nr } from "./components/FormComponents/FormToggle/FormToggle.js";
42
- import { SafeForm as Cr } from "./components/SafeForm/SafeForm.js";
43
- import { AvailableCustomIcons as Or } from "./enums/AvailableCustomIcons.js";
44
- import { ThemeColor as Rr } from "./enums/ThemeColor.js";
45
- import { u as Hr } from "./useBreakpoints-MzTZ0tCT.js";
46
- import { capitalizeFirstLetters as hr, getFormattedDateTime as kr, getNumberAsLocaleString as vr, trimLeadingAndTrailingSpaces as yr } from "./services/UtilService.js";
47
- import { DATE_FORMAT as Yr, DATE_TIME_FORMAT as Kr, TIME_FORMAT as zr } from "./types/Time.js";
48
- import { AVAILABLE_COUNTRY_KEYS as jr, AVAILABLE_LOCALES as qr, ENGLISH_LANGUAGE_ID as Jr, GERMAN_LANGUAGE_ID as Qr, LANGUAGE_CODES_MAPPER as Zr, LANGUAGE_ID_MAPPER as $r, SPANISH_LANGUAGE_ID as ro, TURKISH_LANGUAGE_ID as oo } from "./types/Languages.js";
49
- import { Allowed as to } from "./components/Allowed/Allowed.js";
50
- import { AllowedButton as po } from "./components/AllowedButton/AllowedButton.js";
51
- import { AllowedIconButton as xo } from "./components/AllowedIconButton/AllowedIconButton.js";
52
- import { getPermissionsFromModulePermissionToken as ao, useIsAllowed as no } from "./components/PermissionChecks/PermissionService.js";
53
- import { SharedComponentsPermissionProvider as Ao } from "./components/SharedComponentsPermissionProvider/SharedComponentsPermissionProvider.js";
54
- import { createPermissionWrapper as So, renderWithPermissions as co } from "./test-utils.js";
55
- import { HVMainPermissions as Io } from "./types/Permission.js";
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
- jr as AVAILABLE_COUNTRY_KEYS,
58
- qr as AVAILABLE_LOCALES,
58
+ Jr as AVAILABLE_COUNTRY_KEYS,
59
+ Qr as AVAILABLE_LOCALES,
59
60
  e as AlertBanner,
60
- to as Allowed,
61
- po as AllowedButton,
62
- xo as AllowedIconButton,
63
- Or as AvailableCustomIcons,
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 ChipCard,
68
- d as ContextMenu,
69
- Yr as DATE_FORMAT,
70
- Kr as DATE_TIME_FORMAT,
71
- c as DeleteModal,
72
- I as DetailContentWrapper,
73
- _ as Disclaimer,
74
- Jr as ENGLISH_LANGUAGE_ID,
75
- T as EmptyView,
76
- D as Filter,
77
- Sr as FormCheckBox,
78
- Er as FormDatePicker,
79
- Lr as FormNumber,
80
- Fr as FormRadio,
81
- Gr as FormSelect,
82
- Mr as FormSlider,
83
- ur as FormText,
84
- Nr as FormToggle,
85
- P as FormattedNumberDisplay,
86
- Qr as GERMAN_LANGUAGE_ID,
87
- B as GenericTable,
88
- Io as HVMainPermissions,
89
- g as HashTabView,
90
- w as HeaderFilter,
91
- b as Iconify,
92
- V as InfoCard,
93
- U as InfoGroup,
94
- Zr as LANGUAGE_CODES_MAPPER,
95
- $r as LANGUAGE_ID_MAPPER,
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
- k as ListArea,
98
- y as LoadingSpinner,
99
- Y as Modal,
100
- z as ModulePadding,
101
- j as OfflineView,
102
- J as OnboardingBanner,
103
- Z as OverflowTooltip,
104
- ro as SPANISH_LANGUAGE_ID,
105
- Cr as SafeForm,
106
- rr as ScrollbarX,
107
- or as ScrollbarY,
108
- tr as SearchBar,
109
- pr as Select,
110
- Ao as SharedComponentsPermissionProvider,
111
- lr as Stepper,
112
- xr as StepperHeader,
113
- ar as StepperIndicator,
114
- zr as TIME_FORMAT,
115
- oo as TURKISH_LANGUAGE_ID,
116
- Rr as ThemeColor,
117
- sr as VerticalDivider,
118
- hr as capitalizeFirstLetters,
119
- So as createPermissionWrapper,
120
- kr as getFormattedDateTime,
121
- vr as getNumberAsLocaleString,
122
- ao as getPermissionsFromModulePermissionToken,
123
- co as renderWithPermissions,
124
- yr as trimLeadingAndTrailingSpaces,
125
- Hr as useBreakpoints,
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.15.0",
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
- };