@hortiview/shared-components 2.1.0 → 2.3.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 +13 -0
- package/dist/AlertBanner-75jjene1.js +26 -0
- package/dist/{ListAreaService-Wq9IkwWN.js → ListAreaService-BVtuBN0K.js} +34 -33
- package/dist/assets/AlertBanner.css +1 -1
- package/dist/assets/Modal.css +1 -1
- package/dist/components/AlertBanner/AlertBanner.d.ts +1 -2
- package/dist/components/AlertBanner/AlertBanner.js +6 -22
- package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
- package/dist/components/AlertBanner/LinkBanner.d.ts +21 -0
- package/dist/components/AlertBanner/LinkBanner.js +37 -0
- package/dist/components/AlertBanner/LinkBanner.test.d.ts +1 -0
- package/dist/components/AlertBanner/LinkBanner.test.js +17 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +6 -1
- package/dist/components/ContextMenu/ContextMenu.js +33 -32
- package/dist/components/ContextMenu/ContextMenu.test.js +7 -7
- package/dist/components/ListArea/ListArea.d.ts +5 -1
- package/dist/components/ListArea/ListArea.js +24 -23
- package/dist/components/ListArea/ListArea.test.js +1 -1
- package/dist/components/ListArea/ListAreaService.js +1 -1
- package/dist/components/Modal/Modal.js +70 -69
- package/dist/components/ModulePadding/ModulePadding.js +1 -1
- package/dist/components/OnboardingBanner/OnboardingBanner.test.js +18 -18
- package/dist/components/Stepper/Stepper.d.ts +4 -3
- package/dist/components/Stepper/Stepper.js +33 -21
- package/dist/components/Stepper/Stepper.test.js +40 -64
- package/dist/components/Stepper/components/StepperButton.d.ts +8 -2
- package/dist/components/Stepper/components/StepperButton.js +54 -38
- package/dist/components/Stepper/stepperTypes.d.ts +31 -1
- package/dist/main.d.ts +5 -4
- package/dist/main.js +99 -97
- package/dist/types/ListElement.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,95 +1,71 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { a as
|
|
3
|
-
import { Stepper as
|
|
4
|
-
import { v as
|
|
5
|
-
const
|
|
2
|
+
import { a as s, s as t, f as c } from "../../react.esm-CX1WJ2Pp.js";
|
|
3
|
+
import { Stepper as i } from "./Stepper.js";
|
|
4
|
+
import { v as l, d as a, t as p, g as n } from "../../vi.CjhMlMwf-CKxPQtd6.js";
|
|
5
|
+
const o = [
|
|
6
6
|
{
|
|
7
7
|
name: "step1",
|
|
8
8
|
step: 0,
|
|
9
9
|
title: "Step 1",
|
|
10
10
|
optional: !1,
|
|
11
|
-
nextButtonProps: { onClick:
|
|
12
|
-
prevButtonProps: { onClick:
|
|
11
|
+
nextButtonProps: { onClick: l.fn(), label: "Next" },
|
|
12
|
+
prevButtonProps: { onClick: l.fn(), label: "Back" }
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
name: "step2",
|
|
16
16
|
step: 1,
|
|
17
17
|
title: "Step 2",
|
|
18
18
|
optional: !1,
|
|
19
|
-
nextButtonProps: { onClick:
|
|
20
|
-
prevButtonProps: { onClick:
|
|
19
|
+
nextButtonProps: { onClick: l.fn(), label: "Next" },
|
|
20
|
+
prevButtonProps: { onClick: l.fn(), label: "Back" }
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
name: "step3",
|
|
24
24
|
step: 2,
|
|
25
25
|
title: "Step 3",
|
|
26
26
|
optional: !0,
|
|
27
|
-
nextButtonProps: { onClick:
|
|
28
|
-
prevButtonProps: { onClick:
|
|
27
|
+
nextButtonProps: { onClick: l.fn(), label: "Finish" },
|
|
28
|
+
prevButtonProps: { onClick: l.fn(), label: "Back" }
|
|
29
29
|
}
|
|
30
30
|
];
|
|
31
31
|
a("Stepper", () => {
|
|
32
32
|
p("renders the stepper header and children", () => {
|
|
33
|
-
|
|
34
|
-
/* @__PURE__ */ e(
|
|
35
|
-
),
|
|
33
|
+
s(
|
|
34
|
+
/* @__PURE__ */ e(i, { steps: o, currentStep: 1, isStepLoading: !1, children: /* @__PURE__ */ e("div", { children: "Step Content" }) })
|
|
35
|
+
), n(t.queryByText("Step 1")).not.toBeInTheDocument(), n(t.getByText("Step 2")).toBeInTheDocument(), n(t.queryByText("Step 3")).not.toBeInTheDocument(), n(t.getByText("Step Content")).toBeInTheDocument();
|
|
36
36
|
}), p("disables the next button when isStepLoading is true", () => {
|
|
37
|
-
|
|
38
|
-
/* @__PURE__ */ e(
|
|
37
|
+
s(
|
|
38
|
+
/* @__PURE__ */ e(i, { steps: o, currentStep: 1, isStepLoading: !0, children: /* @__PURE__ */ e("div", { children: "Step Content" }) })
|
|
39
39
|
);
|
|
40
|
-
const
|
|
41
|
-
|
|
40
|
+
const r = t.getByText("Next").closest("button");
|
|
41
|
+
n(r).toBeDisabled();
|
|
42
42
|
}), p("calls nextButtonProps.onClick when next button is clicked", () => {
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
/* @__PURE__ */ e(
|
|
46
|
-
|
|
47
|
-
{
|
|
48
|
-
steps: i,
|
|
49
|
-
currentStep: 1,
|
|
50
|
-
isStepLoading: !1,
|
|
51
|
-
children: /* @__PURE__ */ e("div", { children: "Step Content" })
|
|
52
|
-
}
|
|
53
|
-
)
|
|
54
|
-
), c.click(n.getByText("Next")), o(t).toHaveBeenCalled();
|
|
43
|
+
const r = l.fn();
|
|
44
|
+
o[1].nextButtonProps.onClick = r, s(
|
|
45
|
+
/* @__PURE__ */ e(i, { steps: o, currentStep: 1, isStepLoading: !1, children: /* @__PURE__ */ e("div", { children: "Step Content" }) })
|
|
46
|
+
), c.click(t.getByText("Next")), n(r).toHaveBeenCalled();
|
|
55
47
|
}), p("calls prevButtonProps.onClick when prev button is clicked", () => {
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
/* @__PURE__ */ e(
|
|
59
|
-
|
|
60
|
-
{
|
|
61
|
-
steps: i,
|
|
62
|
-
currentStep: 1,
|
|
63
|
-
isStepLoading: !1,
|
|
64
|
-
children: /* @__PURE__ */ e("div", { children: "Step Content" })
|
|
65
|
-
}
|
|
66
|
-
)
|
|
67
|
-
), c.click(n.getByText("Back")), o(t).toHaveBeenCalled();
|
|
48
|
+
const r = l.fn();
|
|
49
|
+
o[1].prevButtonProps.onClick = r, s(
|
|
50
|
+
/* @__PURE__ */ e(i, { steps: o, currentStep: 1, isStepLoading: !1, children: /* @__PURE__ */ e("div", { children: "Step Content" }) })
|
|
51
|
+
), c.click(t.getByText("Back")), n(r).toHaveBeenCalled();
|
|
68
52
|
}), p("does not render the prev button on the first step", () => {
|
|
69
|
-
|
|
70
|
-
/* @__PURE__ */ e(
|
|
71
|
-
|
|
72
|
-
{
|
|
73
|
-
steps: i,
|
|
74
|
-
currentStep: 0,
|
|
75
|
-
isStepLoading: !1,
|
|
76
|
-
children: /* @__PURE__ */ e("div", { children: "Step Content" })
|
|
77
|
-
}
|
|
78
|
-
)
|
|
79
|
-
), o(n.queryByText("Back")).not.toBeInTheDocument();
|
|
53
|
+
s(
|
|
54
|
+
/* @__PURE__ */ e(i, { steps: o, currentStep: 0, isStepLoading: !1, children: /* @__PURE__ */ e("div", { children: "Step Content" }) })
|
|
55
|
+
), n(t.queryByText("Back")).not.toBeInTheDocument();
|
|
80
56
|
}), p("renders the next button as submit on last step", () => {
|
|
81
|
-
|
|
82
|
-
/* @__PURE__ */ e(
|
|
83
|
-
l,
|
|
84
|
-
{
|
|
85
|
-
steps: i,
|
|
86
|
-
currentStep: 2,
|
|
87
|
-
isStepLoading: !1,
|
|
88
|
-
children: /* @__PURE__ */ e("div", { children: "Step Content" })
|
|
89
|
-
}
|
|
90
|
-
)
|
|
57
|
+
s(
|
|
58
|
+
/* @__PURE__ */ e(i, { steps: o, currentStep: 2, isStepLoading: !1, children: /* @__PURE__ */ e("div", { children: "Step Content" }) })
|
|
91
59
|
);
|
|
92
|
-
const
|
|
93
|
-
|
|
60
|
+
const r = t.getByText("Finish").closest("button");
|
|
61
|
+
n(r).toHaveAttribute("type", "submit");
|
|
62
|
+
}), p("does not render the stepper header when showStepperHeader is false", () => {
|
|
63
|
+
s(
|
|
64
|
+
/* @__PURE__ */ e(i, { steps: o, currentStep: 1, isStepLoading: !1, showStepperHeader: !1, children: /* @__PURE__ */ e("div", { children: "Step Content" }) })
|
|
65
|
+
), n(t.queryByTestId("stepper-header")).not.toBeInTheDocument();
|
|
66
|
+
}), p("does not render stepper button icons when showArrowIcon is false", () => {
|
|
67
|
+
o[1].nextButtonProps.showArrowIcon = !1, o[1].prevButtonProps.showArrowIcon = !1, s(
|
|
68
|
+
/* @__PURE__ */ e(i, { steps: o, currentStep: 1, isStepLoading: !1, children: /* @__PURE__ */ e("div", { children: "Step Content" }) })
|
|
69
|
+
), n(t.queryByText("arrow_forward")).not.toBeInTheDocument(), n(t.queryByText("arrow_back")).not.toBeInTheDocument();
|
|
94
70
|
});
|
|
95
71
|
});
|
|
@@ -6,9 +6,12 @@ import { StepperButtonProps } from '../stepperTypes';
|
|
|
6
6
|
* @param onClick - The function to be called when the button is clicked.
|
|
7
7
|
* @param disabled - Whether the button is disabled or not.
|
|
8
8
|
* @param className - Additional class names to apply to the button.
|
|
9
|
+
* @param showArrowIcon - Whether to show a leading arrow icon for the button. Defaults to true.
|
|
10
|
+
* @param buttonSize - The size of the button, defaults to 'themeDefault'.
|
|
11
|
+
* @param fullWidth - Whether the button should take the full width of its container. Defaults to true.
|
|
9
12
|
* @returns
|
|
10
13
|
*/
|
|
11
|
-
export declare const StepperPreviousButton: ({ label, onClick, disabled, className, }: StepperButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const StepperPreviousButton: ({ label, onClick, disabled, className, showArrowIcon, buttonSize, fullWidth, }: StepperButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
15
|
/**
|
|
13
16
|
* A button component for the stepper that is used to go to the next step.
|
|
14
17
|
* @param label - The label of the button.
|
|
@@ -17,9 +20,12 @@ export declare const StepperPreviousButton: ({ label, onClick, disabled, classNa
|
|
|
17
20
|
* @param className - Additional class names to apply to the button.
|
|
18
21
|
* @param isStepLoading - A boolean indicating if the current step is loading. If true, the next button will show a loading state and be disabled.
|
|
19
22
|
* @param isLastStep - A boolean indicating if this is the last step. If true, the button will submit the form instead of going to the next step.
|
|
23
|
+
* @param showArrowIcon - Whether to show a trailing arrow icon for the button. Defaults to true.
|
|
24
|
+
* @param buttonSize - The size of the button, defaults to 'themeDefault'.
|
|
25
|
+
* @param fullWidth - Whether the button should take the full width of its container. Defaults to true.
|
|
20
26
|
* @returns
|
|
21
27
|
*/
|
|
22
|
-
export declare const StepperNextButton: ({ label, onClick, disabled, className, isStepLoading, isLastStep, }: StepperButtonProps & {
|
|
28
|
+
export declare const StepperNextButton: ({ label, onClick, disabled, className, isStepLoading, isLastStep, showArrowIcon, buttonSize, fullWidth, }: StepperButtonProps & {
|
|
23
29
|
isStepLoading?: boolean;
|
|
24
30
|
isLastStep?: boolean;
|
|
25
31
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,44 +1,60 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { B as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { B as s } from "../../../index.es-CiqbARoC.js";
|
|
3
|
+
import { useMemo as c } from "react";
|
|
4
|
+
import { s as i } from "../../../stepper.module-HuqmDJPj.js";
|
|
5
|
+
const $ = ({
|
|
6
|
+
label: o,
|
|
7
|
+
onClick: u,
|
|
8
|
+
disabled: n,
|
|
9
|
+
className: a,
|
|
10
|
+
showArrowIcon: t = !0,
|
|
11
|
+
buttonSize: e = "themeDefault",
|
|
12
|
+
fullWidth: r = !0
|
|
13
|
+
}) => /* @__PURE__ */ p(
|
|
14
|
+
s,
|
|
11
15
|
{
|
|
12
16
|
"data-testid": "stepper-previous-button",
|
|
13
|
-
className: `${
|
|
14
|
-
onClick:
|
|
15
|
-
disabled:
|
|
16
|
-
fullWidth:
|
|
17
|
+
className: `${i.stepperButton} ${a ?? ""}`,
|
|
18
|
+
onClick: u,
|
|
19
|
+
disabled: n,
|
|
20
|
+
fullWidth: r,
|
|
21
|
+
buttonSize: e,
|
|
17
22
|
variant: "outlined",
|
|
18
|
-
leadingIcon: "arrow_back",
|
|
19
|
-
|
|
23
|
+
leadingIcon: t ? "arrow_back" : void 0,
|
|
24
|
+
type: "button",
|
|
25
|
+
children: o
|
|
20
26
|
}
|
|
21
|
-
),
|
|
22
|
-
label:
|
|
23
|
-
onClick:
|
|
24
|
-
disabled:
|
|
25
|
-
className:
|
|
26
|
-
isStepLoading:
|
|
27
|
-
isLastStep:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
27
|
+
), x = ({
|
|
28
|
+
label: o,
|
|
29
|
+
onClick: u,
|
|
30
|
+
disabled: n,
|
|
31
|
+
className: a,
|
|
32
|
+
isStepLoading: t,
|
|
33
|
+
isLastStep: e,
|
|
34
|
+
showArrowIcon: r = !0,
|
|
35
|
+
buttonSize: m = "themeDefault",
|
|
36
|
+
fullWidth: d = !0
|
|
37
|
+
}) => {
|
|
38
|
+
const l = c(() => {
|
|
39
|
+
if (!t && !e)
|
|
40
|
+
return r ? "arrow_forward" : void 0;
|
|
41
|
+
}, [e, t, r]);
|
|
42
|
+
return /* @__PURE__ */ p(
|
|
43
|
+
s,
|
|
44
|
+
{
|
|
45
|
+
"data-testid": "stepper-next-button",
|
|
46
|
+
className: `${i.stepperButton} ${t ? i.stepperButtonLoading : ""} ${a ?? ""}`,
|
|
47
|
+
onClick: u,
|
|
48
|
+
disabled: t || n,
|
|
49
|
+
fullWidth: d,
|
|
50
|
+
trailingIcon: l,
|
|
51
|
+
type: e ? "submit" : "button",
|
|
52
|
+
buttonSize: m,
|
|
53
|
+
children: o
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
};
|
|
41
57
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
58
|
+
x as StepperNextButton,
|
|
59
|
+
$ as StepperPreviousButton
|
|
44
60
|
};
|
|
@@ -40,8 +40,11 @@ export type Step = {
|
|
|
40
40
|
* @param {boolean} disabled - Whether the button is disabled or not.
|
|
41
41
|
* @param {() => void} onClick - The function to be called when the button is clicked.
|
|
42
42
|
* @param {string | ReactNode} label - The label of the button.
|
|
43
|
+
* @param {boolean} showArrowIcon - Whether to show a leading/trailing arrow icon for the button.
|
|
44
|
+
* @param {string} buttonSize - The size of the button, defaults to 'themeDefault'.
|
|
45
|
+
* @param {boolean} fullWidth - Whether the button should take the full width of its container. *
|
|
43
46
|
*/
|
|
44
|
-
export type StepperButtonProps = Pick<ButtonProps, 'className' | 'disabled'> & {
|
|
47
|
+
export type StepperButtonProps = Pick<ButtonProps, 'className' | 'disabled' | 'fullWidth'> & {
|
|
45
48
|
/**
|
|
46
49
|
* The function to be called when the button is clicked.
|
|
47
50
|
*/
|
|
@@ -50,11 +53,22 @@ export type StepperButtonProps = Pick<ButtonProps, 'className' | 'disabled'> & {
|
|
|
50
53
|
* The label of the button.
|
|
51
54
|
*/
|
|
52
55
|
label: string | ReactNode;
|
|
56
|
+
/**
|
|
57
|
+
* Whether to show a leading/trailing arrow icon for the button.
|
|
58
|
+
*/
|
|
59
|
+
showArrowIcon?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Property adapted from Element library
|
|
62
|
+
*/
|
|
63
|
+
buttonSize?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'themeDefault';
|
|
53
64
|
};
|
|
54
65
|
/**
|
|
55
66
|
* @param {Step[]} steps - An array of steps for the stepper.
|
|
56
67
|
* @param {number} currentStep - The current step index.
|
|
57
68
|
* @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.
|
|
69
|
+
* @param {boolean} showStepperHeader - An indicator of whether to show the stepper header. Defaults to true.
|
|
70
|
+
* @param {string} stepperButtonAlignment - The alignment of the stepper button group. Defaults to 'center'.
|
|
71
|
+
* @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.
|
|
58
72
|
*/
|
|
59
73
|
export type StepperProps = {
|
|
60
74
|
/**
|
|
@@ -69,6 +83,22 @@ export type StepperProps = {
|
|
|
69
83
|
* a flag which indicates if the current step is loading.
|
|
70
84
|
*/
|
|
71
85
|
isStepLoading?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* An indicator of whether to show the stepper header.
|
|
88
|
+
* @default true
|
|
89
|
+
*/
|
|
90
|
+
showStepperHeader?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* The alignment of the stepper button group.
|
|
93
|
+
* @default 'center'
|
|
94
|
+
*/
|
|
95
|
+
stepperButtonAlignment?: 'center' | 'space-between';
|
|
96
|
+
/**
|
|
97
|
+
* A flag which indicates if the previous button should be shown on the first step.
|
|
98
|
+
* This can be useful for canceling the stepper.
|
|
99
|
+
* @default false
|
|
100
|
+
*/
|
|
101
|
+
showPreviousButtonOnFirstStep?: boolean;
|
|
72
102
|
};
|
|
73
103
|
/**
|
|
74
104
|
* @param {Step[]} steps - An array of steps for the stepper.
|
package/dist/main.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { AlertBanner } from './components/AlertBanner/AlertBanner';
|
|
2
|
+
export { LinkBanner } from './components/AlertBanner/LinkBanner';
|
|
2
3
|
export { BaseView } from './components/BaseView/BaseView';
|
|
3
4
|
export { BasicHeading } from './components/BasicHeading/BasicHeading';
|
|
4
5
|
export { BlockView } from './components/BlockView/BlockView';
|
|
@@ -20,6 +21,7 @@ export { ListArea } from './components/ListArea/ListArea';
|
|
|
20
21
|
export { LoadingSpinner } from './components/LoadingSpinner/Default/LoadingSpinner';
|
|
21
22
|
export { Modal } from './components/Modal/Modal';
|
|
22
23
|
export { ModulePadding } from './components/ModulePadding/ModulePadding';
|
|
24
|
+
export { OnboardingBanner } from './components/OnboardingBanner/OnboardingBanner';
|
|
23
25
|
export { OverflowTooltip } from './components/OverflowTooltip/OverflowTooltip';
|
|
24
26
|
export { ScrollbarX, ScrollbarY } from './components/Scrollbar/Scrollbar';
|
|
25
27
|
export { SearchBar } from './components/SearchBar/SearchBar';
|
|
@@ -28,7 +30,6 @@ export { StepperHeader } from './components/Stepper/components/StepperHeader';
|
|
|
28
30
|
export { StepperIndicator } from './components/Stepper/components/StepperIndicator';
|
|
29
31
|
export { Stepper } from './components/Stepper/Stepper';
|
|
30
32
|
export { VerticalDivider } from './components/VerticalDivider/VerticalDivider';
|
|
31
|
-
export { OnboardingBanner } from './components/OnboardingBanner/OnboardingBanner';
|
|
32
33
|
export { FormCheckBox } from './components/FormComponents/FormCheckBox/FormCheckBox';
|
|
33
34
|
export { FormDatePicker } from './components/FormComponents/FormDatePicker/FormDatePicker';
|
|
34
35
|
export { FormNumber } from './components/FormComponents/FormNumber/FormNumber';
|
|
@@ -40,17 +41,17 @@ export { FormToggle } from './components/FormComponents/FormToggle/FormToggle';
|
|
|
40
41
|
export { AvailableCustomIcons } from './enums/AvailableCustomIcons';
|
|
41
42
|
export { ThemeColor } from './enums/ThemeColor';
|
|
42
43
|
export { useBreakpoints } from './hooks/useBreakpoints';
|
|
43
|
-
export { capitalizeFirstLetters, getNumberAsLocaleString, trimLeadingAndTrailingSpaces
|
|
44
|
+
export { capitalizeFirstLetters, getNumberAsLocaleString, trimLeadingAndTrailingSpaces } from './services/UtilService';
|
|
44
45
|
export type { ActionProps } from './components/ContextMenu/ContextMenu';
|
|
45
46
|
export type { FormSelectOption } from './components/FormComponents/FormSelect/FormSelect';
|
|
46
47
|
export type { FormTextProps } from './components/FormComponents/FormText/FormText';
|
|
47
48
|
export type { HealthCheckFailedProps } from './components/HealthCheckFailed/HealthCheckFailed';
|
|
48
49
|
export type { FieldItem } from './components/InfoGroup/InfoGroup';
|
|
49
50
|
export type { LoadingSpinnerProps } from './components/LoadingSpinner/Default/LoadingSpinner';
|
|
50
|
-
export type { Step, StepperBaseProps, StepperButtonProps, StepperProps
|
|
51
|
+
export type { Step, StepperBaseProps, StepperButtonProps, StepperProps } from './components/Stepper/stepperTypes';
|
|
51
52
|
export type { FilterData, FilterOption, FilterSelection } from './types/Filter';
|
|
52
53
|
export type { CellTemplate, CellTemplateProps, TableLayoutProps } from './types/GenericTable';
|
|
53
54
|
export type { HashTab } from './types/HashTab';
|
|
54
55
|
export type { BaseListElement, ListElement } from './types/ListElement';
|
|
55
|
-
export { AVAILABLE_COUNTRY_KEYS, AVAILABLE_LOCALES, ENGLISH_LANGUAGE_ID, GERMAN_LANGUAGE_ID, LANGUAGE_CODES_MAPPER, LANGUAGE_ID_MAPPER, SPANISH_LANGUAGE_ID, TURKISH_LANGUAGE_ID
|
|
56
|
+
export { AVAILABLE_COUNTRY_KEYS, AVAILABLE_LOCALES, ENGLISH_LANGUAGE_ID, GERMAN_LANGUAGE_ID, LANGUAGE_CODES_MAPPER, LANGUAGE_ID_MAPPER, SPANISH_LANGUAGE_ID, TURKISH_LANGUAGE_ID } from './types/Languages';
|
|
56
57
|
export type { AVAILABLE_LANGUAGE_CODES, LANGUAGE_COUNTRY_CODES } from './types/Languages';
|
package/dist/main.js
CHANGED
|
@@ -1,100 +1,102 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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 {
|
|
1
|
+
import { A as e } from "./AlertBanner-75jjene1.js";
|
|
2
|
+
import { LinkBanner as m } from "./components/AlertBanner/LinkBanner.js";
|
|
3
|
+
import { BaseView as f } from "./components/BaseView/BaseView.js";
|
|
4
|
+
import { BasicHeading as a } from "./components/BasicHeading/BasicHeading.js";
|
|
5
|
+
import { BlockView as l } from "./components/BlockView/BlockView.js";
|
|
6
|
+
import { ChipCard as n } from "./components/ChipCard/ChipCard.js";
|
|
7
|
+
import { ContextMenu as d } from "./components/ContextMenu/ContextMenu.js";
|
|
8
|
+
import { DeleteModal as S } from "./components/DeleteModal/DeleteModal.js";
|
|
9
|
+
import { DetailContentWrapper as E } from "./components/DetailContentWrapper/DetailContentWrapper.js";
|
|
10
|
+
import { Disclaimer as _ } from "./components/Disclaimer/Disclaimer.js";
|
|
11
|
+
import { EmptyView as F } from "./components/EmptyView/EmptyView.js";
|
|
12
|
+
import { Filter as D } from "./components/Filter/Filter.js";
|
|
13
|
+
import { FormattedNumberDisplay as C } from "./components/FormattedNumberDisplay/FormattedNumberDisplay.js";
|
|
14
|
+
import { GenericTable as b } from "./components/GenericTable/GenericTable.js";
|
|
15
|
+
import { HashTabView as T } from "./components/HashTabView/HashTabView.js";
|
|
16
|
+
import { HeaderFilter as U } from "./components/HeaderFilter/HeaderFilter.js";
|
|
17
|
+
import { HealthCheckFailed as M } from "./components/HealthCheckFailed/HealthCheckFailed.js";
|
|
18
|
+
import { Iconify as V } from "./components/Iconify/Iconify.js";
|
|
19
|
+
import { InfoGroup as R } from "./components/InfoGroup/InfoGroup.js";
|
|
20
|
+
import { ListArea as O } from "./components/ListArea/ListArea.js";
|
|
21
|
+
import { LoadingSpinner as y } from "./components/LoadingSpinner/Default/LoadingSpinner.js";
|
|
22
|
+
import { Modal as K } from "./components/Modal/Modal.js";
|
|
23
|
+
import { ModulePadding as W } from "./components/ModulePadding/ModulePadding.js";
|
|
24
|
+
import { OnboardingBanner as j } from "./components/OnboardingBanner/OnboardingBanner.js";
|
|
25
|
+
import { OverflowTooltip as J } from "./components/OverflowTooltip/OverflowTooltip.js";
|
|
26
|
+
import { ScrollbarX as Z, ScrollbarY as $ } from "./components/Scrollbar/Scrollbar.js";
|
|
27
|
+
import { SearchBar as or } from "./components/SearchBar/SearchBar.js";
|
|
28
|
+
import { Select as tr } from "./components/Select/Select.js";
|
|
29
|
+
import { StepperHeader as pr } from "./components/Stepper/components/StepperHeader.js";
|
|
30
|
+
import { StepperIndicator as xr } from "./components/Stepper/components/StepperIndicator.js";
|
|
31
|
+
import { Stepper as ir } from "./components/Stepper/Stepper.js";
|
|
32
|
+
import { VerticalDivider as Ar } from "./components/VerticalDivider/VerticalDivider.js";
|
|
33
|
+
import { FormCheckBox as cr } from "./components/FormComponents/FormCheckBox/FormCheckBox.js";
|
|
34
|
+
import { FormDatePicker as Lr } from "./components/FormComponents/FormDatePicker/FormDatePicker.js";
|
|
35
|
+
import { FormNumber as sr } from "./components/FormComponents/FormNumber/FormNumber.js";
|
|
36
|
+
import { FormRadio as Gr } from "./components/FormComponents/FormRadio/FormRadio.js";
|
|
37
|
+
import { FormSelect as Ir } from "./components/FormComponents/FormSelect/FormSelect.js";
|
|
38
|
+
import { FormSlider as Nr } from "./components/FormComponents/FormSlider/FormSlider.js";
|
|
39
|
+
import { FormText as Br } from "./components/FormComponents/FormText/FormText.js";
|
|
40
|
+
import { FormToggle as gr } from "./components/FormComponents/FormToggle/FormToggle.js";
|
|
41
|
+
import { AvailableCustomIcons as ur } from "./enums/AvailableCustomIcons.js";
|
|
42
|
+
import { ThemeColor as Hr } from "./enums/ThemeColor.js";
|
|
43
|
+
import { u as hr } from "./useBreakpoints-MzTZ0tCT.js";
|
|
44
|
+
import { capitalizeFirstLetters as Pr, getNumberAsLocaleString as Vr, trimLeadingAndTrailingSpaces as kr } from "./services/UtilService.js";
|
|
45
|
+
import { AVAILABLE_COUNTRY_KEYS as wr, AVAILABLE_LOCALES as Or, ENGLISH_LANGUAGE_ID as vr, GERMAN_LANGUAGE_ID as yr, LANGUAGE_CODES_MAPPER as Yr, LANGUAGE_ID_MAPPER as Kr, SPANISH_LANGUAGE_ID as zr, TURKISH_LANGUAGE_ID as Wr } from "./types/Languages.js";
|
|
45
46
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
wr as AVAILABLE_COUNTRY_KEYS,
|
|
48
|
+
Or as AVAILABLE_LOCALES,
|
|
48
49
|
e as AlertBanner,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
O as
|
|
81
|
-
y as
|
|
82
|
-
K as
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
50
|
+
ur as AvailableCustomIcons,
|
|
51
|
+
f as BaseView,
|
|
52
|
+
a as BasicHeading,
|
|
53
|
+
l as BlockView,
|
|
54
|
+
n as ChipCard,
|
|
55
|
+
d as ContextMenu,
|
|
56
|
+
S as DeleteModal,
|
|
57
|
+
E as DetailContentWrapper,
|
|
58
|
+
_ as Disclaimer,
|
|
59
|
+
vr as ENGLISH_LANGUAGE_ID,
|
|
60
|
+
F as EmptyView,
|
|
61
|
+
D as Filter,
|
|
62
|
+
cr as FormCheckBox,
|
|
63
|
+
Lr as FormDatePicker,
|
|
64
|
+
sr as FormNumber,
|
|
65
|
+
Gr as FormRadio,
|
|
66
|
+
Ir as FormSelect,
|
|
67
|
+
Nr as FormSlider,
|
|
68
|
+
Br as FormText,
|
|
69
|
+
gr as FormToggle,
|
|
70
|
+
C as FormattedNumberDisplay,
|
|
71
|
+
yr as GERMAN_LANGUAGE_ID,
|
|
72
|
+
b as GenericTable,
|
|
73
|
+
T as HashTabView,
|
|
74
|
+
U as HeaderFilter,
|
|
75
|
+
M as HealthCheckFailed,
|
|
76
|
+
V as Iconify,
|
|
77
|
+
R as InfoGroup,
|
|
78
|
+
Yr as LANGUAGE_CODES_MAPPER,
|
|
79
|
+
Kr as LANGUAGE_ID_MAPPER,
|
|
80
|
+
m as LinkBanner,
|
|
81
|
+
O as ListArea,
|
|
82
|
+
y as LoadingSpinner,
|
|
83
|
+
K as Modal,
|
|
84
|
+
W as ModulePadding,
|
|
85
|
+
j as OnboardingBanner,
|
|
86
|
+
J as OverflowTooltip,
|
|
87
|
+
zr as SPANISH_LANGUAGE_ID,
|
|
88
|
+
Z as ScrollbarX,
|
|
89
|
+
$ as ScrollbarY,
|
|
90
|
+
or as SearchBar,
|
|
91
|
+
tr as Select,
|
|
92
|
+
ir as Stepper,
|
|
93
|
+
pr as StepperHeader,
|
|
94
|
+
xr as StepperIndicator,
|
|
95
|
+
Wr as TURKISH_LANGUAGE_ID,
|
|
96
|
+
Hr as ThemeColor,
|
|
97
|
+
Ar as VerticalDivider,
|
|
98
|
+
Pr as capitalizeFirstLetters,
|
|
99
|
+
Vr as getNumberAsLocaleString,
|
|
100
|
+
kr as trimLeadingAndTrailingSpaces,
|
|
101
|
+
hr as useBreakpoints
|
|
100
102
|
};
|
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.3.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>",
|