@hortiview/shared-components 2.0.0 → 2.2.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 +17 -0
- package/README.md +15 -0
- package/dist/GenericCard-BFYKwkzI.js +89 -0
- package/dist/{ListAreaService-Wq9IkwWN.js → ListAreaService-BVtuBN0K.js} +34 -33
- package/dist/assets/OnboardingBanner.css +1 -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/GenericTable/Mobile/GenericCard.js +3 -2
- package/dist/components/GenericTable/Mobile/GenericCard.test.js +1 -1
- package/dist/components/GenericTable/Mobile/GenericCardList.js +1 -1
- 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/OnboardingBanner/OnboardingBanner.d.ts +30 -0
- package/dist/components/OnboardingBanner/OnboardingBanner.js +89 -0
- package/dist/components/OnboardingBanner/OnboardingBanner.test.d.ts +1 -0
- package/dist/components/OnboardingBanner/OnboardingBanner.test.js +72 -0
- package/dist/index.es-Dvj_qpAp.js +268 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +41 -39
- package/dist/types/ListElement.d.ts +4 -0
- package/package.json +1 -1
- package/dist/GenericCard-DuNnB9Ve.js +0 -350
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { jsx as o, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { G as a } from "../../index.es-DntoATwO.js";
|
|
3
|
+
import { I as m } from "../../index.es-0lQcz8m1.js";
|
|
4
|
+
import { B as b } from "../../index.es-CiqbARoC.js";
|
|
5
|
+
import { b as h, T as u } from "../../index.es-D54RuMc_.js";
|
|
6
|
+
import { E as g } from "../../index.es-h2lMdt7G.js";
|
|
7
|
+
import { G as f, a as v, b as i } from "../../index.es-Dvj_qpAp.js";
|
|
8
|
+
import { I as y } from "../../index.es-3043KTnb.js";
|
|
9
|
+
import { u as C } from "../../useBreakpoints-MzTZ0tCT.js";
|
|
10
|
+
import '../../assets/OnboardingBanner.css';const G = "_elevation_5dfyt_1", k = {
|
|
11
|
+
elevation: G
|
|
12
|
+
}, D = ({
|
|
13
|
+
headline: l,
|
|
14
|
+
description: s,
|
|
15
|
+
mediaContent: n,
|
|
16
|
+
isVisible: c,
|
|
17
|
+
onClose: p,
|
|
18
|
+
buttons: e
|
|
19
|
+
}) => {
|
|
20
|
+
const { isDesktop: d } = C();
|
|
21
|
+
return c ? /* @__PURE__ */ o(
|
|
22
|
+
g,
|
|
23
|
+
{
|
|
24
|
+
"data-testid": "onboarding-banner",
|
|
25
|
+
elevation: 3,
|
|
26
|
+
customPadding: "1rem 1.5rem",
|
|
27
|
+
rounded: !0,
|
|
28
|
+
className: k.elevation,
|
|
29
|
+
children: /* @__PURE__ */ o(f, { variant: "none", rowGap: "8px", columnGap: "8px", children: /* @__PURE__ */ r(v, { "data-testid": "onboarding-banner-content", children: [
|
|
30
|
+
/* @__PURE__ */ o(i, { desktopCol: 12, phoneCol: 4, tabletCol: 8, children: /* @__PURE__ */ r(
|
|
31
|
+
a,
|
|
32
|
+
{
|
|
33
|
+
"data-testid": "onboarding-banner-header-content",
|
|
34
|
+
primaryAlign: "space-between",
|
|
35
|
+
secondaryAlign: "center",
|
|
36
|
+
fullWidth: !0,
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ o(h, { level: 6, children: l }),
|
|
39
|
+
/* @__PURE__ */ o(
|
|
40
|
+
m,
|
|
41
|
+
{
|
|
42
|
+
"data-testid": "onboarding-banner-close-button",
|
|
43
|
+
type: "button",
|
|
44
|
+
onClick: p,
|
|
45
|
+
icon: /* @__PURE__ */ o(y, { icon: "clear" })
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
) }),
|
|
51
|
+
/* @__PURE__ */ o(
|
|
52
|
+
i,
|
|
53
|
+
{
|
|
54
|
+
desktopCol: n ? 10 : 12,
|
|
55
|
+
phoneCol: 4,
|
|
56
|
+
tabletCol: 8,
|
|
57
|
+
order: d ? 2 : 3,
|
|
58
|
+
children: /* @__PURE__ */ r(a, { direction: "vertical", gap: "dense", children: [
|
|
59
|
+
/* @__PURE__ */ o(u, { bold: !0, level: 2, children: s }),
|
|
60
|
+
e && e.length > 0 && /* @__PURE__ */ o(a, { "data-testid": "onboarding-banner-buttons", direction: "horizontal", children: e?.map((t) => /* @__PURE__ */ o(
|
|
61
|
+
b,
|
|
62
|
+
{
|
|
63
|
+
"data-testid": `onboarding-banner-button-${t.id}`,
|
|
64
|
+
...t
|
|
65
|
+
},
|
|
66
|
+
t.id
|
|
67
|
+
)) })
|
|
68
|
+
] })
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
n && /* @__PURE__ */ o(
|
|
72
|
+
i,
|
|
73
|
+
{
|
|
74
|
+
horizontalAlign: "center",
|
|
75
|
+
"data-testid": "onboarding-banner-media-content",
|
|
76
|
+
desktopCol: 2,
|
|
77
|
+
phoneCol: 4,
|
|
78
|
+
tabletCol: 8,
|
|
79
|
+
order: d ? 3 : 2,
|
|
80
|
+
children: n
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
] }) })
|
|
84
|
+
}
|
|
85
|
+
) : null;
|
|
86
|
+
};
|
|
87
|
+
export {
|
|
88
|
+
D as OnboardingBanner
|
|
89
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx as n, Fragment as d } from "react/jsx-runtime";
|
|
2
|
+
import { a as o, s as e } from "../../react.esm-CX1WJ2Pp.js";
|
|
3
|
+
import { OnboardingBanner as i } from "./OnboardingBanner.js";
|
|
4
|
+
import { d as a, t as s, a as r, g as t } from "../../vi.CjhMlMwf-CKxPQtd6.js";
|
|
5
|
+
a("Onboarding Banner Test", () => {
|
|
6
|
+
s("render OnboardingBanner with headline & description text", () => {
|
|
7
|
+
o(
|
|
8
|
+
/* @__PURE__ */ n(
|
|
9
|
+
i,
|
|
10
|
+
{
|
|
11
|
+
headline: "test",
|
|
12
|
+
description: "test description",
|
|
13
|
+
isVisible: !0,
|
|
14
|
+
onClose: r.fn()
|
|
15
|
+
}
|
|
16
|
+
)
|
|
17
|
+
), t(e.getByText("test")).toBeInTheDocument(), t(e.getByText("test description")).toBeInTheDocument();
|
|
18
|
+
}), s("render OnboardingBanner with media content", () => {
|
|
19
|
+
o(
|
|
20
|
+
/* @__PURE__ */ n(
|
|
21
|
+
i,
|
|
22
|
+
{
|
|
23
|
+
headline: "test",
|
|
24
|
+
description: "test description",
|
|
25
|
+
mediaContent: /* @__PURE__ */ n(d, { children: "Element" }),
|
|
26
|
+
isVisible: !0,
|
|
27
|
+
onClose: r.fn()
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
), t(e.getByText("Element")).toBeInTheDocument();
|
|
31
|
+
}), s("render OnboardingBanner with buttons", () => {
|
|
32
|
+
o(
|
|
33
|
+
/* @__PURE__ */ n(
|
|
34
|
+
i,
|
|
35
|
+
{
|
|
36
|
+
headline: "test",
|
|
37
|
+
description: "test description",
|
|
38
|
+
isVisible: !0,
|
|
39
|
+
onClose: r.fn(),
|
|
40
|
+
buttons: [{ label: "button-1", id: "1" }, { label: "button-2", id: "2" }]
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
), t(e.getByText("button-1")).toBeInTheDocument(), t(e.getByText("button-2")).toBeInTheDocument(), t(e.queryByText("button-3")).not.toBeInTheDocument();
|
|
44
|
+
}), s("calls onClose when close button is clicked", () => {
|
|
45
|
+
const l = r.fn();
|
|
46
|
+
o(
|
|
47
|
+
/* @__PURE__ */ n(
|
|
48
|
+
i,
|
|
49
|
+
{
|
|
50
|
+
headline: "test",
|
|
51
|
+
description: "test description",
|
|
52
|
+
isVisible: !0,
|
|
53
|
+
onClose: l,
|
|
54
|
+
buttons: [{ label: "button-1", id: "1" }, { label: "button-2", id: "2" }]
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
), e.getByTestId("onboarding-banner-close-button").click(), t(l).toHaveBeenCalledTimes(1);
|
|
58
|
+
}), s("renders nothing when isVisibility is false", () => {
|
|
59
|
+
o(
|
|
60
|
+
/* @__PURE__ */ n(
|
|
61
|
+
i,
|
|
62
|
+
{
|
|
63
|
+
headline: "test",
|
|
64
|
+
description: "test description",
|
|
65
|
+
isVisible: !1,
|
|
66
|
+
onClose: r.fn(),
|
|
67
|
+
buttons: [{ label: "button-1", id: "1" }, { label: "button-2", id: "2" }]
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
), t(e.queryByText("test")).not.toBeInTheDocument();
|
|
71
|
+
});
|
|
72
|
+
});
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { c as G, _ as b, P as e } from "./identity-DLWZln-X.js";
|
|
2
|
+
import y, { forwardRef as C, useMemo as f, useRef as T, useImperativeHandle as R, createContext as $, useContext as O } from "react";
|
|
3
|
+
import { d as k } from "./index.es-da0cf7oE.js";
|
|
4
|
+
const x = /* @__PURE__ */ $({}), W = {
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated _Use `variant`='airy' instead._
|
|
7
|
+
*
|
|
8
|
+
* Applies extra padding to each column.
|
|
9
|
+
*
|
|
10
|
+
* Defaults to **undefined**.
|
|
11
|
+
*/
|
|
12
|
+
airy: k(e.bool, "Grid", 'Use `variant`="airy" instead.'),
|
|
13
|
+
/**
|
|
14
|
+
* Accepts GridCol or GridRow.
|
|
15
|
+
*
|
|
16
|
+
* Defaults to **null**.
|
|
17
|
+
*/
|
|
18
|
+
children: e.node.isRequired,
|
|
19
|
+
/**
|
|
20
|
+
* The css class name to be passed through to the component markup.
|
|
21
|
+
*
|
|
22
|
+
* Defaults to **undefined**.
|
|
23
|
+
*/
|
|
24
|
+
className: e.string,
|
|
25
|
+
/**
|
|
26
|
+
* Sets the column gap for the grid.
|
|
27
|
+
*
|
|
28
|
+
* Defaults to **'16px'**.
|
|
29
|
+
*/
|
|
30
|
+
columnGap: e.oneOfType([e.string, e.number]),
|
|
31
|
+
/**
|
|
32
|
+
* Applies 100% height to the grid and direct children rows. Useful when creating a page layout. Be aware all direct children rows will have a 100% height.
|
|
33
|
+
*
|
|
34
|
+
* Defaults to **null**.
|
|
35
|
+
*/
|
|
36
|
+
fullHeight: e.bool,
|
|
37
|
+
/**
|
|
38
|
+
* Applies 100% width to the grid and direct children rows. Useful to maintain full width in a flex container.
|
|
39
|
+
*
|
|
40
|
+
* Defaults to **null**.
|
|
41
|
+
*/
|
|
42
|
+
fullWidth: e.bool,
|
|
43
|
+
/**
|
|
44
|
+
* Alignment of entire grid: left and right.
|
|
45
|
+
*
|
|
46
|
+
* Defaults to **'center'**.
|
|
47
|
+
*/
|
|
48
|
+
gridAlign: e.oneOf(["center", "left", "right"]),
|
|
49
|
+
/**
|
|
50
|
+
* Sets the row gap for the grid.
|
|
51
|
+
*
|
|
52
|
+
* Defaults to **'16px'**.
|
|
53
|
+
*/
|
|
54
|
+
rowGap: e.oneOfType([e.string, e.number]),
|
|
55
|
+
/**
|
|
56
|
+
* Styles for the grid.
|
|
57
|
+
*
|
|
58
|
+
* Defaults to **undefined**.
|
|
59
|
+
*/
|
|
60
|
+
style: e.object,
|
|
61
|
+
/**
|
|
62
|
+
* If true the grid will have a max width according to your theme's breakpoints.
|
|
63
|
+
*
|
|
64
|
+
* Defaults to **false**.
|
|
65
|
+
*/
|
|
66
|
+
useMaxWidth: e.bool,
|
|
67
|
+
/**
|
|
68
|
+
* Select `airy` or `standard` padding.
|
|
69
|
+
*
|
|
70
|
+
* Defaults to **'standard'**.
|
|
71
|
+
*/
|
|
72
|
+
variant: e.oneOf(["standard", "airy", "none"])
|
|
73
|
+
}, H = {
|
|
74
|
+
airy: void 0,
|
|
75
|
+
children: null,
|
|
76
|
+
className: void 0,
|
|
77
|
+
columnGap: "16px",
|
|
78
|
+
fullHeight: null,
|
|
79
|
+
fullWidth: null,
|
|
80
|
+
gridAlign: "center",
|
|
81
|
+
rowGap: "16px",
|
|
82
|
+
style: void 0,
|
|
83
|
+
useMaxWidth: !1,
|
|
84
|
+
variant: "standard"
|
|
85
|
+
}, z = {
|
|
86
|
+
/**
|
|
87
|
+
* Alignment of cell within the row: top, middle, bottom. If omitted the col will stretch to the height of the row.
|
|
88
|
+
*
|
|
89
|
+
* Defaults to **undefined**.
|
|
90
|
+
*/
|
|
91
|
+
align: e.oneOf(["", "top", "middle", "bottom"]),
|
|
92
|
+
/**
|
|
93
|
+
* Content to be rendered inside the GridCol. Accepts any valid markup.
|
|
94
|
+
*
|
|
95
|
+
* Defaults to **null**.
|
|
96
|
+
*/
|
|
97
|
+
children: e.node,
|
|
98
|
+
/**
|
|
99
|
+
* The css class name to be passed through to the component markup.
|
|
100
|
+
*
|
|
101
|
+
* Defaults to **undefined**.
|
|
102
|
+
*/
|
|
103
|
+
className: e.string,
|
|
104
|
+
/**
|
|
105
|
+
* Specifies the number of columns the cell spans.
|
|
106
|
+
*
|
|
107
|
+
* Defaults to **null**.
|
|
108
|
+
*/
|
|
109
|
+
desktopCol: e.number,
|
|
110
|
+
/**
|
|
111
|
+
* Specifies a grid item's start position within the grid column by contributing a line, a span, or nothing (automatic) to its grid placement. Set to any valid `grid-column-start`.
|
|
112
|
+
*
|
|
113
|
+
* Defaults to **null**.
|
|
114
|
+
*/
|
|
115
|
+
gridColStart: e.oneOfType([e.string, e.number]),
|
|
116
|
+
/**
|
|
117
|
+
* Horizontal alignment of the cell contents of cell content: top, middle, bottom.
|
|
118
|
+
*
|
|
119
|
+
* Defaults to **'left'**.
|
|
120
|
+
*/
|
|
121
|
+
horizontalAlign: e.oneOf(["left", "center", "right"]),
|
|
122
|
+
/**
|
|
123
|
+
* Specifies the order of the cell.
|
|
124
|
+
*
|
|
125
|
+
* Defaults to **null**.
|
|
126
|
+
*/
|
|
127
|
+
order: e.number,
|
|
128
|
+
/**
|
|
129
|
+
* Specifies the number of columns the cell spans on a phone.
|
|
130
|
+
*
|
|
131
|
+
* Defaults to **null**.
|
|
132
|
+
*/
|
|
133
|
+
phoneCol: e.number,
|
|
134
|
+
/**
|
|
135
|
+
* Specifies the number of columns the cell spans on a tablet.
|
|
136
|
+
*
|
|
137
|
+
* Defaults to **null**.
|
|
138
|
+
*/
|
|
139
|
+
tabletCol: e.number,
|
|
140
|
+
/**
|
|
141
|
+
* Vertical alignment of cell content: top, middle, bottom.
|
|
142
|
+
*
|
|
143
|
+
* Defaults to **'top'**.
|
|
144
|
+
*/
|
|
145
|
+
verticalAlign: e.oneOf(["top", "middle", "bottom"])
|
|
146
|
+
}, E = {
|
|
147
|
+
align: void 0,
|
|
148
|
+
children: null,
|
|
149
|
+
className: void 0,
|
|
150
|
+
desktopCol: null,
|
|
151
|
+
gridColStart: null,
|
|
152
|
+
horizontalAlign: "left",
|
|
153
|
+
order: null,
|
|
154
|
+
phoneCol: null,
|
|
155
|
+
tabletCol: null,
|
|
156
|
+
verticalAlign: "top"
|
|
157
|
+
}, M = {
|
|
158
|
+
/**
|
|
159
|
+
* Content to be rendered inside the GridRow. Accepts any valid markup.
|
|
160
|
+
*
|
|
161
|
+
* Defaults to **null**.
|
|
162
|
+
*/
|
|
163
|
+
children: e.node.isRequired,
|
|
164
|
+
/**
|
|
165
|
+
* The css class name to be passed through to the component markup.
|
|
166
|
+
*
|
|
167
|
+
* Defaults to **undefined**.
|
|
168
|
+
*/
|
|
169
|
+
className: e.string
|
|
170
|
+
}, S = {
|
|
171
|
+
children: null,
|
|
172
|
+
className: void 0
|
|
173
|
+
}, w = /* @__PURE__ */ C((c, u) => {
|
|
174
|
+
const {
|
|
175
|
+
airy: t,
|
|
176
|
+
children: p,
|
|
177
|
+
className: a,
|
|
178
|
+
columnGap: r,
|
|
179
|
+
fullHeight: l,
|
|
180
|
+
fullWidth: n,
|
|
181
|
+
gridAlign: i,
|
|
182
|
+
rowGap: d,
|
|
183
|
+
style: o,
|
|
184
|
+
useMaxWidth: m,
|
|
185
|
+
variant: s,
|
|
186
|
+
...h
|
|
187
|
+
} = c, g = t ? "airy" : s, _ = f(() => ({
|
|
188
|
+
fullHeight: l,
|
|
189
|
+
rowGap: d,
|
|
190
|
+
columnGap: r
|
|
191
|
+
}), [r, l, d]), N = T();
|
|
192
|
+
R(u, () => N.current, []);
|
|
193
|
+
const A = f(() => G("lmnt", "mdc-layout-grid", "lmnt-layout-grid", `mdc-layout-grid mdc-layout-grid--align-${i}`, (g === "airy" || t) && "mdc-grid-cell-wrapper-airy-tablet mdc-grid-cell-wrapper-airy-desktop", s === "none" && "mdc-grid-cell-wrapper-none-tablet mdc-grid-cell-wrapper-none-desktop mdc-grid-cell-wrapper-none-phone ", n && "lmnt-layout-grid--full-width", l && "lmnt-layout-grid--full-height", m && "lmnt-layout-grid--with-max-width", a), [t, a, g, l, n, i, m, s]);
|
|
194
|
+
return /* @__PURE__ */ y.createElement(x.Provider, {
|
|
195
|
+
value: _
|
|
196
|
+
}, /* @__PURE__ */ y.createElement("div", b({
|
|
197
|
+
ref: N,
|
|
198
|
+
className: A
|
|
199
|
+
}, h), p));
|
|
200
|
+
});
|
|
201
|
+
w.displayName = "Grid";
|
|
202
|
+
w.propTypes = W;
|
|
203
|
+
w.defaultProps = H;
|
|
204
|
+
const P = /* @__PURE__ */ C((c, u) => {
|
|
205
|
+
const {
|
|
206
|
+
align: t,
|
|
207
|
+
children: p,
|
|
208
|
+
className: a,
|
|
209
|
+
columns: r,
|
|
210
|
+
desktopCol: l,
|
|
211
|
+
gridColStart: n,
|
|
212
|
+
horizontalAlign: i,
|
|
213
|
+
order: d,
|
|
214
|
+
phoneCol: o,
|
|
215
|
+
style: m,
|
|
216
|
+
tabletCol: s,
|
|
217
|
+
verticalAlign: h,
|
|
218
|
+
...g
|
|
219
|
+
} = c, _ = f(() => ({
|
|
220
|
+
...m,
|
|
221
|
+
gridColumnStart: n
|
|
222
|
+
}), [n, m]);
|
|
223
|
+
return /* @__PURE__ */ y.createElement("div", b({
|
|
224
|
+
ref: u,
|
|
225
|
+
style: _,
|
|
226
|
+
className: G("lmnt", `lmnt-layout-grid__cell--vertical-align-${h}`, `lmnt-layout-grid__cell--horizontal-align-${i}`, "mdc-layout-grid__cell", !r && !o && !s && !l && ["mdc-layout-grid__cell"], d && `mdc-layout-grid__cell--order-${d}`, t && `mdc-layout-grid__cell--align-${t}`, r && [`mdc-layout-grid__cell--span-${r}`], o && [`mdc-layout-grid__cell--span-${o}-phone`], s && [`mdc-layout-grid__cell--span-${s}-tablet`], l && [`mdc-layout-grid__cell--span-${l}-desktop`], "lmnt-layout-grid__cell", a)
|
|
227
|
+
}, g), p);
|
|
228
|
+
});
|
|
229
|
+
P.displayName = "GridCol";
|
|
230
|
+
P.propTypes = z;
|
|
231
|
+
P.defaultProps = E;
|
|
232
|
+
const v = /* @__PURE__ */ C((c, u) => {
|
|
233
|
+
const {
|
|
234
|
+
children: t,
|
|
235
|
+
className: p,
|
|
236
|
+
style: a,
|
|
237
|
+
...r
|
|
238
|
+
} = c, {
|
|
239
|
+
fullHeight: l,
|
|
240
|
+
rowGap: n,
|
|
241
|
+
columnGap: i
|
|
242
|
+
} = O(x), d = f(() => {
|
|
243
|
+
let o = {
|
|
244
|
+
rowGap: n,
|
|
245
|
+
columnGap: i
|
|
246
|
+
};
|
|
247
|
+
return l && (o = {
|
|
248
|
+
...o,
|
|
249
|
+
height: "100%"
|
|
250
|
+
}), {
|
|
251
|
+
...a,
|
|
252
|
+
...o
|
|
253
|
+
};
|
|
254
|
+
}, [a, l, n, i]);
|
|
255
|
+
return /* @__PURE__ */ y.createElement("div", b({
|
|
256
|
+
ref: u,
|
|
257
|
+
className: G("lmnt", "mdc-layout-grid__inner", "lmnt-layout-grid__inner", p),
|
|
258
|
+
style: d
|
|
259
|
+
}, r), t);
|
|
260
|
+
});
|
|
261
|
+
v.displayName = "GridRow";
|
|
262
|
+
v.propTypes = M;
|
|
263
|
+
v.defaultProps = S;
|
|
264
|
+
export {
|
|
265
|
+
w as G,
|
|
266
|
+
v as a,
|
|
267
|
+
P as b
|
|
268
|
+
};
|
package/dist/main.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export { StepperHeader } from './components/Stepper/components/StepperHeader';
|
|
|
28
28
|
export { StepperIndicator } from './components/Stepper/components/StepperIndicator';
|
|
29
29
|
export { Stepper } from './components/Stepper/Stepper';
|
|
30
30
|
export { VerticalDivider } from './components/VerticalDivider/VerticalDivider';
|
|
31
|
+
export { OnboardingBanner } from './components/OnboardingBanner/OnboardingBanner';
|
|
31
32
|
export { FormCheckBox } from './components/FormComponents/FormCheckBox/FormCheckBox';
|
|
32
33
|
export { FormDatePicker } from './components/FormComponents/FormDatePicker/FormDatePicker';
|
|
33
34
|
export { FormNumber } from './components/FormComponents/FormNumber/FormNumber';
|
package/dist/main.js
CHANGED
|
@@ -4,15 +4,15 @@ import { BasicHeading as f } from "./components/BasicHeading/BasicHeading.js";
|
|
|
4
4
|
import { BlockView as a } from "./components/BlockView/BlockView.js";
|
|
5
5
|
import { ChipCard as l } from "./components/ChipCard/ChipCard.js";
|
|
6
6
|
import { ContextMenu as n } from "./components/ContextMenu/ContextMenu.js";
|
|
7
|
-
import { DeleteModal as
|
|
7
|
+
import { DeleteModal as d } from "./components/DeleteModal/DeleteModal.js";
|
|
8
8
|
import { DetailContentWrapper as L } from "./components/DetailContentWrapper/DetailContentWrapper.js";
|
|
9
9
|
import { Disclaimer as G } from "./components/Disclaimer/Disclaimer.js";
|
|
10
10
|
import { EmptyView as _ } from "./components/EmptyView/EmptyView.js";
|
|
11
11
|
import { Filter as F } from "./components/Filter/Filter.js";
|
|
12
12
|
import { FormattedNumberDisplay as D } from "./components/FormattedNumberDisplay/FormattedNumberDisplay.js";
|
|
13
13
|
import { GenericTable as g } from "./components/GenericTable/GenericTable.js";
|
|
14
|
-
import { HashTabView as
|
|
15
|
-
import { HeaderFilter as
|
|
14
|
+
import { HashTabView as b } from "./components/HashTabView/HashTabView.js";
|
|
15
|
+
import { HeaderFilter as T } from "./components/HeaderFilter/HeaderFilter.js";
|
|
16
16
|
import { HealthCheckFailed as U } from "./components/HealthCheckFailed/HealthCheckFailed.js";
|
|
17
17
|
import { Iconify as M } from "./components/Iconify/Iconify.js";
|
|
18
18
|
import { InfoGroup as V } from "./components/InfoGroup/InfoGroup.js";
|
|
@@ -28,59 +28,61 @@ import { StepperHeader as or } from "./components/Stepper/components/StepperHead
|
|
|
28
28
|
import { StepperIndicator as tr } from "./components/Stepper/components/StepperIndicator.js";
|
|
29
29
|
import { Stepper as pr } from "./components/Stepper/Stepper.js";
|
|
30
30
|
import { VerticalDivider as xr } from "./components/VerticalDivider/VerticalDivider.js";
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
31
|
+
import { OnboardingBanner as ir } from "./components/OnboardingBanner/OnboardingBanner.js";
|
|
32
|
+
import { FormCheckBox as Ar } from "./components/FormComponents/FormCheckBox/FormCheckBox.js";
|
|
33
|
+
import { FormDatePicker as cr } from "./components/FormComponents/FormDatePicker/FormDatePicker.js";
|
|
34
|
+
import { FormNumber as Sr } from "./components/FormComponents/FormNumber/FormNumber.js";
|
|
35
|
+
import { FormRadio as Er } from "./components/FormComponents/FormRadio/FormRadio.js";
|
|
36
|
+
import { FormSelect as sr } from "./components/FormComponents/FormSelect/FormSelect.js";
|
|
37
|
+
import { FormSlider as Ir } from "./components/FormComponents/FormSlider/FormSlider.js";
|
|
38
|
+
import { FormText as Nr } from "./components/FormComponents/FormText/FormText.js";
|
|
39
|
+
import { FormToggle as Cr } from "./components/FormComponents/FormToggle/FormToggle.js";
|
|
40
|
+
import { AvailableCustomIcons as Br } from "./enums/AvailableCustomIcons.js";
|
|
40
41
|
import { ThemeColor as ur } from "./enums/ThemeColor.js";
|
|
41
|
-
import { u as
|
|
42
|
-
import { capitalizeFirstLetters as
|
|
43
|
-
import { AVAILABLE_COUNTRY_KEYS as
|
|
42
|
+
import { u as Hr } from "./useBreakpoints-MzTZ0tCT.js";
|
|
43
|
+
import { capitalizeFirstLetters as hr, getNumberAsLocaleString as Mr, trimLeadingAndTrailingSpaces as Pr } from "./services/UtilService.js";
|
|
44
|
+
import { AVAILABLE_COUNTRY_KEYS as Rr, AVAILABLE_LOCALES as kr, ENGLISH_LANGUAGE_ID as wr, GERMAN_LANGUAGE_ID as Or, LANGUAGE_CODES_MAPPER as vr, LANGUAGE_ID_MAPPER as yr, SPANISH_LANGUAGE_ID as Yr, TURKISH_LANGUAGE_ID as Kr } from "./types/Languages.js";
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
Rr as AVAILABLE_COUNTRY_KEYS,
|
|
47
|
+
kr as AVAILABLE_LOCALES,
|
|
47
48
|
e as AlertBanner,
|
|
48
|
-
|
|
49
|
+
Br as AvailableCustomIcons,
|
|
49
50
|
m as BaseView,
|
|
50
51
|
f as BasicHeading,
|
|
51
52
|
a as BlockView,
|
|
52
53
|
l as ChipCard,
|
|
53
54
|
n as ContextMenu,
|
|
54
|
-
|
|
55
|
+
d as DeleteModal,
|
|
55
56
|
L as DetailContentWrapper,
|
|
56
57
|
G as Disclaimer,
|
|
57
|
-
|
|
58
|
+
wr as ENGLISH_LANGUAGE_ID,
|
|
58
59
|
_ as EmptyView,
|
|
59
60
|
F as Filter,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
61
|
+
Ar as FormCheckBox,
|
|
62
|
+
cr as FormDatePicker,
|
|
63
|
+
Sr as FormNumber,
|
|
64
|
+
Er as FormRadio,
|
|
65
|
+
sr as FormSelect,
|
|
66
|
+
Ir as FormSlider,
|
|
67
|
+
Nr as FormText,
|
|
68
|
+
Cr as FormToggle,
|
|
68
69
|
D as FormattedNumberDisplay,
|
|
69
|
-
|
|
70
|
+
Or as GERMAN_LANGUAGE_ID,
|
|
70
71
|
g as GenericTable,
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
b as HashTabView,
|
|
73
|
+
T as HeaderFilter,
|
|
73
74
|
U as HealthCheckFailed,
|
|
74
75
|
M as Iconify,
|
|
75
76
|
V as InfoGroup,
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
vr as LANGUAGE_CODES_MAPPER,
|
|
78
|
+
yr as LANGUAGE_ID_MAPPER,
|
|
78
79
|
k as ListArea,
|
|
79
80
|
O as LoadingSpinner,
|
|
80
81
|
y as Modal,
|
|
81
82
|
K as ModulePadding,
|
|
83
|
+
ir as OnboardingBanner,
|
|
82
84
|
W as OverflowTooltip,
|
|
83
|
-
|
|
85
|
+
Yr as SPANISH_LANGUAGE_ID,
|
|
84
86
|
j as ScrollbarX,
|
|
85
87
|
q as ScrollbarY,
|
|
86
88
|
Q as SearchBar,
|
|
@@ -88,11 +90,11 @@ export {
|
|
|
88
90
|
pr as Stepper,
|
|
89
91
|
or as StepperHeader,
|
|
90
92
|
tr as StepperIndicator,
|
|
91
|
-
|
|
93
|
+
Kr as TURKISH_LANGUAGE_ID,
|
|
92
94
|
ur as ThemeColor,
|
|
93
95
|
xr as VerticalDivider,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
hr as capitalizeFirstLetters,
|
|
97
|
+
Mr as getNumberAsLocaleString,
|
|
98
|
+
Pr as trimLeadingAndTrailingSpaces,
|
|
99
|
+
Hr as useBreakpoints
|
|
98
100
|
};
|
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.2.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>",
|