@hortiview/shared-components 0.0.11528 → 0.0.11587
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/README.md +17 -0
- package/dist/{BigLoadingSpinner-D7H28pr5.js → BigLoadingSpinner-iegTbDcD.js} +6 -6
- package/dist/GenericCard-6J558OgP.js +350 -0
- package/dist/{ListAreaService-YS_UUPh5.js → ListAreaService-DOwtdRa4.js} +18 -16
- package/dist/_MapCache-B75yWNNd.js +376 -0
- package/dist/_baseIsEqual-D0Dsajdb.js +317 -0
- package/dist/_getTag-BCf9b56Z.js +81 -0
- package/dist/animationframe-EMBh6XeO.js +54 -0
- package/dist/component-DsB0poTj.js +571 -0
- package/dist/component-neHBNHRu.js +114 -0
- package/dist/components/AlertBanner/AlertBanner.js +16 -15
- package/dist/components/BaseView/BaseView.js +5 -5
- package/dist/components/BasicHeading/BasicHeading.js +25 -24
- package/dist/components/BasicHeading/BasicHeading.test.js +9 -9
- package/dist/components/BlockView/BlockView.js +5 -5
- package/dist/components/ChipCard/ChipCard.js +1765 -14
- package/dist/components/ContextMenu/ContextMenu.d.ts +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +28 -27
- package/dist/components/DeleteModal/DeleteModal.js +37 -34
- package/dist/components/Disclaimer/Disclaimer.js +11 -9
- package/dist/components/EmptyView/EmptyView.js +258 -19
- package/dist/components/Filter/Filter.js +58 -54
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +13 -11
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.d.ts +1 -1
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +5974 -6387
- package/dist/components/FormComponents/FormNumber/CustomTextField.d.ts +1 -1
- package/dist/components/FormComponents/FormNumber/CustomTextField.js +5 -5
- package/dist/components/FormComponents/FormNumber/FormNumber.d.ts +1 -1
- package/dist/components/FormComponents/FormNumber/FormNumber.js +1 -1
- package/dist/components/FormComponents/FormRadio/FormRadio.js +4 -4
- package/dist/components/FormComponents/FormSelect/FormSelect.d.ts +1 -1
- package/dist/components/FormComponents/FormSelect/FormSelect.js +3 -3
- package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +6 -5
- package/dist/components/FormComponents/FormSlider/FormSlider.js +1155 -27
- package/dist/components/FormComponents/FormText/FormText.d.ts +1 -1
- package/dist/components/FormComponents/FormText/FormText.js +33 -32
- package/dist/components/FormComponents/FormToggle/FormToggle.d.ts +1 -1
- package/dist/components/FormComponents/FormToggle/FormToggle.js +17 -15
- package/dist/components/GenericTable/GenericTable.js +10486 -74
- package/dist/components/GenericTable/Mobile/GenericCard.js +4 -3
- package/dist/components/GenericTable/Mobile/GenericCard.test.js +1 -1
- package/dist/components/GenericTable/Mobile/GenericCardList.js +10 -8
- package/dist/components/HashTabView/HashTabView.js +1805 -72
- package/dist/components/HeaderFilter/HeaderFilter.d.ts +1 -1
- package/dist/components/HeaderFilter/HeaderFilter.js +4 -4
- package/dist/components/HealthCheckFailed/HealthCheckFailed.js +20 -17
- package/dist/components/Iconify/Iconify.d.ts +1 -2
- package/dist/components/Iconify/Iconify.js +42 -42
- package/dist/components/InfoGroup/InfoGroup.js +30 -28
- package/dist/components/ListArea/ListArea.js +29 -27
- package/dist/components/ListArea/ListArea.test.js +2 -2
- package/dist/components/ListArea/ListAreaService.js +7 -5
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +1 -1
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +506 -37
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/Modal.js +926 -9
- package/dist/components/ModulePadding/ModulePadding.d.ts +7 -0
- package/dist/components/ModulePadding/ModulePadding.js +28 -0
- package/dist/components/ModulePadding/ModulePadding.test.d.ts +1 -0
- package/dist/components/ModulePadding/ModulePadding.test.js +22 -0
- package/dist/components/OverflowTooltip/OverflowTooltip.js +6 -6
- package/dist/components/OverflowTooltip/OverflowTooltip.test.js +1 -1
- package/dist/components/SearchBar/SearchBar.js +7 -6
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +13 -13
- package/dist/floating-ui.dom-CeD8zknG.js +978 -0
- package/dist/get-7ACccM2X.js +114 -0
- package/dist/{get-BiqanC9_.js → get-DFv1gXfq.js} +1 -1
- package/dist/hooks/useHelperText.js +1 -1
- package/dist/identity-DLWZln-X.js +1763 -0
- package/dist/index.es-0lQcz8m1.js +444 -0
- package/dist/index.es-25EARqhH.js +2027 -0
- package/dist/index.es-3043KTnb.js +1066 -0
- package/dist/index.es-41ztjcFT.js +724 -0
- package/dist/index.es-6TJ1S8Jr.js +954 -0
- package/dist/index.es-8GOVkuo-.js +374 -0
- package/dist/index.es-B-_jXDuz.js +216 -0
- package/dist/index.es-BWgXLqXn.js +102 -0
- package/dist/index.es-BtjV0oNv.js +360 -0
- package/dist/index.es-BvrQnJ3j.js +509 -0
- package/dist/index.es-CF_xy2ns.js +674 -0
- package/dist/index.es-CL_Heu1n.js +54 -0
- package/dist/index.es-CiqbARoC.js +306 -0
- package/dist/index.es-D-CKRzIB.js +63 -0
- package/dist/index.es-D6N-XWHe.js +56 -0
- package/dist/index.es-DKDgy7Kt.js +45 -0
- package/dist/index.es-DntoATwO.js +159 -0
- package/dist/index.es-UHKFl8Da.js +7075 -0
- package/dist/index.es-d5xhUpJZ.js +3242 -0
- package/dist/index.es-da0cf7oE.js +569 -0
- package/dist/index.es-h2lMdt7G.js +107 -0
- package/dist/index.es-zr101OF5.js +4853 -0
- package/dist/{isArray-2zMxXFEr.js → isArray-DN9s620O.js} +3 -3
- package/dist/{isArray-C_5XvIlE.js → isArray-Dub1wGJM.js} +1 -1
- package/dist/isEmpty-B4GG2s-V.js +31 -0
- package/dist/isPlainObject-C273y67K.js +40 -0
- package/dist/isString-BW9UHONv.js +21 -0
- package/dist/keyboard-Bpt0aBqQ.js +107 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +57 -55
- package/dist/orderBy-Bd48bw88.js +316 -0
- package/dist/react-tooltip.min-DSY6KDqS.js +431 -0
- package/dist/services/UtilService.js +2 -2
- package/dist/toString-CrgB_7Pe.js +54 -0
- package/dist/tslib.es6-BDCynO9F.js +162 -0
- package/dist/types/GenericTable.d.ts +1 -1
- package/dist/uniqueId-NU3-C36A.js +18 -0
- package/dist/util-DA21pZXj.js +78 -0
- package/package.json +1 -1
- package/dist/GenericCard-jlt8ZsHi.js +0 -80
- package/dist/_Map-Dtlps7IZ.js +0 -113
- package/dist/_overArg-_0pUmCsX.js +0 -14
- package/dist/get-P-5PYZOE.js +0 -426
- package/dist/isEmpty-BimaZd5G.js +0 -225
- package/dist/isString-BOHPtrlm.js +0 -44
- package/dist/orderBy-BVQIswlJ.js +0 -765
- package/dist/react-tooltip.min-Czs4RGD1.js +0 -1400
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Provides a responsive padding component for modules according to the HV platform UI guidelines, based on the Bayer Element padding component.
|
|
5
|
+
* @param children - The module content to be rendered in the module padding
|
|
6
|
+
*/
|
|
7
|
+
export declare const ModulePadding: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { P as r } from "../../index.es-D-CKRzIB.js";
|
|
3
|
+
import '../../assets/main.css';/* empty css */
|
|
4
|
+
import { u as m } from "../../useBreakpoints-MzTZ0tCT.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "../../isEmpty-B4GG2s-V.js";
|
|
7
|
+
import "../../react-tooltip.min-DSY6KDqS.js";
|
|
8
|
+
import "../../orderBy-Bd48bw88.js";
|
|
9
|
+
import "../../uniqueId-NU3-C36A.js";
|
|
10
|
+
import "react-hook-form";
|
|
11
|
+
import "../../get-DFv1gXfq.js";
|
|
12
|
+
import "../../isArray-Dub1wGJM.js";
|
|
13
|
+
import "../../isString-BW9UHONv.js";
|
|
14
|
+
const x = ({ children: o }) => {
|
|
15
|
+
const { isDesktop: t } = m();
|
|
16
|
+
return /* @__PURE__ */ i(
|
|
17
|
+
r,
|
|
18
|
+
{
|
|
19
|
+
id: "module-padding",
|
|
20
|
+
"data-testid": "module-padding",
|
|
21
|
+
variant: t ? "standard" : "dense",
|
|
22
|
+
children: o
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
x as ModulePadding
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { a as o, s as e } from "../../react.esm-DNwojocF.js";
|
|
3
|
+
import { a } from "../../useBreakpoints-MzTZ0tCT.js";
|
|
4
|
+
import { ModulePadding as d } from "./ModulePadding.js";
|
|
5
|
+
import { d as r, t as i, v as n, g as s } from "../../vi.CjhMlMwf-BCJNwXvu.js";
|
|
6
|
+
r("ModulePadding Test", () => {
|
|
7
|
+
i("should render with padding of 16px for desktop", () => {
|
|
8
|
+
n.spyOn(a, "useBreakpoints").mockReturnValue({
|
|
9
|
+
isMobile: !1,
|
|
10
|
+
isTablet: !1,
|
|
11
|
+
isDesktop: !0,
|
|
12
|
+
isDesktopNavbar: !0
|
|
13
|
+
}), o(/* @__PURE__ */ t(d, { children: "Content" })), e.debug(), s(e.getByText("Content")).toBeInTheDocument(), s(e.getByTestId("module-padding")).toHaveClass("lmnt-padding--standard");
|
|
14
|
+
}), i("should render with padding of 8px for mobile", () => {
|
|
15
|
+
n.spyOn(a, "useBreakpoints").mockReturnValue({
|
|
16
|
+
isMobile: !0,
|
|
17
|
+
isTablet: !1,
|
|
18
|
+
isDesktop: !1,
|
|
19
|
+
isDesktopNavbar: !1
|
|
20
|
+
}), o(/* @__PURE__ */ t(d, { children: "Content" })), s(e.getByTestId("module-padding")).toHaveClass("lmnt-padding--dense");
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs as a, Fragment as m, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { b as p } from "../../index.es-CF_xy2ns.js";
|
|
3
3
|
import { useState as h, useMemo as d, cloneElement as f } from "react";
|
|
4
|
-
import { M as w } from "../../react-tooltip.min-
|
|
4
|
+
import { M as w } from "../../react-tooltip.min-DSY6KDqS.js";
|
|
5
5
|
import { hasChildWithGreaterWidth as W } from "./OverflowTooltipService.js";
|
|
6
|
-
import '../../assets/OverflowTooltip.css';const u = "_truncate_wgwcv_1",
|
|
6
|
+
import '../../assets/OverflowTooltip.css';const u = "_truncate_wgwcv_1", b = {
|
|
7
7
|
truncate: u
|
|
8
8
|
}, E = ({ id: o, text: l, children: e }) => {
|
|
9
9
|
const [i, n] = h(!1), r = d(
|
|
@@ -13,11 +13,11 @@ import '../../assets/OverflowTooltip.css';const u = "_truncate_wgwcv_1", v = {
|
|
|
13
13
|
const c = t.clientWidth < t.scrollWidth || t.clientHeight < t.scrollHeight || W(t, t.parentElement?.clientWidth);
|
|
14
14
|
n(c);
|
|
15
15
|
},
|
|
16
|
-
className: `${
|
|
16
|
+
className: `${b.truncate} ${e.props.className}`
|
|
17
17
|
}),
|
|
18
18
|
[e, o]
|
|
19
19
|
);
|
|
20
|
-
return /* @__PURE__ */ m
|
|
20
|
+
return /* @__PURE__ */ a(m, { children: [
|
|
21
21
|
r,
|
|
22
22
|
/* @__PURE__ */ s(
|
|
23
23
|
w,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { T as n } from "../../index.es-CF_xy2ns.js";
|
|
3
3
|
import { a as i, s as e, w as s } from "../../react.esm-DNwojocF.js";
|
|
4
4
|
import { u as a } from "../../index-CrcXCSzI.js";
|
|
5
5
|
import { OverflowTooltip as c } from "./OverflowTooltip.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { I as c } from "../../index.es-0lQcz8m1.js";
|
|
3
|
+
import { T as i } from "../../index.es-25EARqhH.js";
|
|
3
4
|
import '../../assets/SearchBar.css';const l = "_searchbar_gnvwc_1", u = {
|
|
4
5
|
searchbar: l
|
|
5
6
|
}, b = ({
|
|
@@ -7,20 +8,20 @@ import '../../assets/SearchBar.css';const l = "_searchbar_gnvwc_1", u = {
|
|
|
7
8
|
dense: n = !1,
|
|
8
9
|
searchTerm: a,
|
|
9
10
|
setSearchTerm: t,
|
|
10
|
-
placeholder:
|
|
11
|
+
placeholder: s
|
|
11
12
|
}) => /* @__PURE__ */ r(
|
|
12
|
-
|
|
13
|
+
i,
|
|
13
14
|
{
|
|
14
15
|
"data-testid": "search-bar-input",
|
|
15
16
|
className: `${o ?? ""} ${u.searchbar}`,
|
|
16
17
|
dense: n,
|
|
17
18
|
variant: "outlined",
|
|
18
|
-
placeholder:
|
|
19
|
+
placeholder: s,
|
|
19
20
|
value: a,
|
|
20
|
-
onChange: (
|
|
21
|
+
onChange: (e) => t(e.target.value),
|
|
21
22
|
fullWidth: !0,
|
|
22
23
|
trailingIcon: /* @__PURE__ */ r(
|
|
23
|
-
|
|
24
|
+
c,
|
|
24
25
|
{
|
|
25
26
|
icon: a ? "close" : "search",
|
|
26
27
|
onClick: () => a ? t("") : void 0
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { jsx as m, Fragment as u } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { S as d } from "../../index.es-UHKFl8Da.js";
|
|
3
3
|
import { useEffect as a } from "react";
|
|
4
4
|
import '../../assets/Select.css';const i = "_customPortal_8wq49_1", f = "_customSelect_8wq49_7", s = {
|
|
5
5
|
customPortal: i,
|
|
6
6
|
customSelect: f
|
|
7
7
|
}, _ = ({
|
|
8
|
-
menuMaxHeight:
|
|
8
|
+
menuMaxHeight: n = "15rem",
|
|
9
9
|
portalClassName: e,
|
|
10
|
-
className:
|
|
11
|
-
hoisted:
|
|
12
|
-
...
|
|
10
|
+
className: r,
|
|
11
|
+
hoisted: o,
|
|
12
|
+
...l
|
|
13
13
|
}) => {
|
|
14
14
|
const t = `custom-portal-${e ?? "default"}`;
|
|
15
15
|
return a(() => {
|
|
16
|
-
if (
|
|
17
|
-
const
|
|
18
|
-
|
|
16
|
+
if (o && !document.getElementById(t)) {
|
|
17
|
+
const c = document.createElement("div");
|
|
18
|
+
c.id = t, c.className = `${s.customPortal} ${e ?? ""}`, document.body.appendChild(c);
|
|
19
19
|
}
|
|
20
|
-
}, [
|
|
20
|
+
}, [o, t, e]), /* @__PURE__ */ m(u, { children: /* @__PURE__ */ m(
|
|
21
21
|
d,
|
|
22
22
|
{
|
|
23
23
|
"data-testid": "custom-select",
|
|
24
|
-
menuMaxHeight:
|
|
25
|
-
hoisted:
|
|
24
|
+
menuMaxHeight: n,
|
|
25
|
+
hoisted: o,
|
|
26
26
|
portalContainer: document.getElementById(t) ? `#${t}` : void 0,
|
|
27
|
-
className: `${s.customSelect} ${
|
|
28
|
-
...
|
|
27
|
+
className: `${s.customSelect} ${r ?? ""}`,
|
|
28
|
+
...l
|
|
29
29
|
}
|
|
30
30
|
) });
|
|
31
31
|
};
|