@hortiview/shared-components 0.0.6829 → 0.0.6890
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/dist/assets/HashTabView.css +1 -1
- package/dist/components/AlertBanner/AlertBanner.js +19 -11
- package/dist/components/AlertBanner/AlertBanner.test.js +17 -23
- package/dist/components/BaseView/BaseView.js +15 -15
- package/dist/components/BaseView/BaseView.test.js +19 -25
- package/dist/components/BasicHeading/BasicHeading.js +37 -31
- package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
- package/dist/components/BlockView/BlockView.test.js +7 -7
- package/dist/components/ContextMenu/ContextMenu.test.js +6 -6
- package/dist/components/DeleteModal/DeleteModal.test.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.test.js +1 -1
- package/dist/components/EmptyView/EmptyView.test.js +1 -1
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +1 -1
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +5 -5
- package/dist/components/FormComponents/FormRadio/FormRadio.test.js +8 -8
- package/dist/components/FormComponents/FormSelect/FormSelect.test.js +2 -2
- package/dist/components/FormComponents/FormSlider/FormSlider.test.js +1 -1
- package/dist/components/FormComponents/FormText/FormText.test.js +1 -1
- package/dist/components/GenericTable/GenericTable.test.js +1 -1
- package/dist/components/HashTabView/HashTabView.js +33 -33
- package/dist/components/HashTabView/HashTabView.test.js +1 -1
- package/dist/components/HeaderFilter/HeaderFilter.test.js +1 -1
- package/dist/components/Iconify/Iconify.d.ts +1 -1
- package/dist/components/Iconify/Iconify.js +120 -82
- package/dist/components/Iconify/Iconify.test.js +1 -1
- package/dist/components/InfoGroup/InfoGroup.js +4 -4
- package/dist/components/InfoGroup/InfoGroup.test.js +1 -1
- package/dist/components/ListArea/ListArea.test.js +1 -1
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +7 -7
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.test.js +2 -2
- package/dist/components/Scrollbar/scrollbar.test.js +8 -8
- package/dist/components/SearchBar/SearchBar.test.js +1 -1
- package/dist/components/VerticalDivider/VerticalDivider.test.js +1 -1
- package/dist/enums/AvailableCustomIcons.d.ts +32 -17
- package/dist/enums/AvailableCustomIcons.js +1 -1
- package/dist/hooks/useBreakpoint.d.ts +16 -11
- package/dist/hooks/useBreakpoint.js +2 -3
- package/dist/hooks/useBreakpoints.test.d.ts +1 -0
- package/dist/hooks/useBreakpoints.test.js +11 -0
- package/dist/{index-DfbRag7b.js → index-DP2ENnrX.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/{react.esm-BBemCHUU.js → react.esm-DoZanrUz.js} +1223 -1190
- package/dist/useBreakpoint-2MH8ICuE.js +28 -0
- package/package.json +1 -1
- package/dist/useBreakpoint-DROHPVxO.js +0 -35
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import "../../assets/HashTabView.css";
|
|
2
|
-
import { jsx as a, jsxs as d, Fragment as
|
|
3
|
-
import { Elevation as
|
|
4
|
-
import { useState as
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
7
|
-
elevation:
|
|
8
|
-
themeBackground:
|
|
9
|
-
tabBar:
|
|
10
|
-
tabWrapper:
|
|
2
|
+
import { jsx as a, jsxs as d, Fragment as T } from "react/jsx-runtime";
|
|
3
|
+
import { Elevation as C, Group as i, TabBar as k, Tab as A, Padding as I } from "@element/react-components";
|
|
4
|
+
import { useState as N, useEffect as P } from "react";
|
|
5
|
+
import { u as x } from "../../useBreakpoint-2MH8ICuE.js";
|
|
6
|
+
const y = "_elevation_16c7u_1", W = "_themeBackground_16c7u_6", $ = "_tabBar_16c7u_10", w = "_tabWrapper_16c7u_16", j = "_tabButton_16c7u_20", E = "_childContainer_16c7u_24", z = "_childContainerPhone_16c7u_28", t = {
|
|
7
|
+
elevation: y,
|
|
8
|
+
themeBackground: W,
|
|
9
|
+
tabBar: $,
|
|
10
|
+
tabWrapper: w,
|
|
11
11
|
tabButton: j,
|
|
12
12
|
childContainer: E,
|
|
13
|
-
|
|
14
|
-
}, p = (n, r) => !r || !n ? 0 : n.findIndex((
|
|
13
|
+
childContainerPhone: z
|
|
14
|
+
}, p = (n, r) => !r || !n ? 0 : n.findIndex((o) => o.hash === r.replace("#", "")) ?? 0, q = ({
|
|
15
15
|
tabs: n,
|
|
16
16
|
hasHash: r = !0,
|
|
17
|
-
hash:
|
|
18
|
-
clusterAlign:
|
|
19
|
-
hasClusteredTabs:
|
|
17
|
+
hash: o = "",
|
|
18
|
+
clusterAlign: m = "start",
|
|
19
|
+
hasClusteredTabs: _,
|
|
20
20
|
children: s,
|
|
21
21
|
verticalGap: g = "none",
|
|
22
22
|
elevation: B = 0,
|
|
23
23
|
backgroundColor: v = "themeBackground",
|
|
24
24
|
onChange: b
|
|
25
25
|
}) => {
|
|
26
|
-
const [
|
|
27
|
-
|
|
28
|
-
const e = p(n,
|
|
29
|
-
|
|
30
|
-
}, [
|
|
26
|
+
const [u, h] = N(p(n, o)), { isDesktop: l } = x();
|
|
27
|
+
P(() => {
|
|
28
|
+
const e = p(n, o);
|
|
29
|
+
h(e);
|
|
30
|
+
}, [o, n, r]);
|
|
31
31
|
const f = (e) => {
|
|
32
|
-
const
|
|
33
|
-
|
|
32
|
+
const c = n[e].hash;
|
|
33
|
+
c != null && r && (window.location.hash = c), h(e), b?.(e);
|
|
34
34
|
};
|
|
35
35
|
return /* @__PURE__ */ a(
|
|
36
|
-
|
|
36
|
+
C,
|
|
37
37
|
{
|
|
38
38
|
elevation: B,
|
|
39
39
|
className: `${t.elevation} ${v === "none" ? "" : t.themeBackground}`,
|
|
40
40
|
children: /* @__PURE__ */ d(i, { direction: "vertical", gap: g, secondaryAlign: "stretch", children: [
|
|
41
41
|
/* @__PURE__ */ d(i, { direction: l ? "horizontal" : "vertical", className: t.tabWrapper, children: [
|
|
42
42
|
/* @__PURE__ */ a(
|
|
43
|
-
|
|
43
|
+
k,
|
|
44
44
|
{
|
|
45
45
|
className: t.tabBar,
|
|
46
|
-
clustered: l ?
|
|
47
|
-
clusterAlign:
|
|
46
|
+
clustered: l ? _ : !1,
|
|
47
|
+
clusterAlign: m,
|
|
48
48
|
variant: "surface",
|
|
49
|
-
activeTabIndex:
|
|
49
|
+
activeTabIndex: u,
|
|
50
50
|
onTabActivated: f,
|
|
51
|
-
children: n.map((e,
|
|
52
|
-
|
|
51
|
+
children: n.map((e, c) => /* @__PURE__ */ a(
|
|
52
|
+
A,
|
|
53
53
|
{
|
|
54
54
|
icon: e.leadingIcon,
|
|
55
55
|
className: s ? t.tabButton : "",
|
|
@@ -58,20 +58,20 @@ const x = "_elevation_1rcw6_1", y = "_themeBackground_1rcw6_6", W = "_tabBar_1rc
|
|
|
58
58
|
e.trailingIcon
|
|
59
59
|
] })
|
|
60
60
|
},
|
|
61
|
-
`${
|
|
61
|
+
`${c}_${e.hash}`
|
|
62
62
|
))
|
|
63
63
|
}
|
|
64
64
|
),
|
|
65
65
|
s ? /* @__PURE__ */ a(
|
|
66
|
-
|
|
66
|
+
I,
|
|
67
67
|
{
|
|
68
68
|
variant: "dense",
|
|
69
|
-
className: l ? t.childContainer : t.
|
|
69
|
+
className: l ? t.childContainer : t.childContainerPhone,
|
|
70
70
|
children: /* @__PURE__ */ a(i, { gap: "dense", primaryAlign: "center", secondaryAlign: "center", children: s })
|
|
71
71
|
}
|
|
72
|
-
) : /* @__PURE__ */ a(
|
|
72
|
+
) : /* @__PURE__ */ a(T, {})
|
|
73
73
|
] }),
|
|
74
|
-
n[
|
|
74
|
+
n[u]?.component
|
|
75
75
|
] })
|
|
76
76
|
}
|
|
77
77
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, Fragment as o } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { a, s as e, f as r } from "../../react.esm-DoZanrUz.js";
|
|
3
3
|
import { HashTabView as c } from "./HashTabView.js";
|
|
4
4
|
import { d as h, t as l, g as t } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
const m = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { a as i, s as t, f as T } from "../../react.esm-DoZanrUz.js";
|
|
3
3
|
import { HeaderFilter as s } from "./HeaderFilter.js";
|
|
4
4
|
import { d as c, t as o, v as l, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
c("HeaderFilter-Test", () => {
|
|
@@ -18,7 +18,7 @@ export type IconifyProps = {
|
|
|
18
18
|
* @example <Iconify icon='farm' />
|
|
19
19
|
* @returns
|
|
20
20
|
*/
|
|
21
|
-
export declare const Iconify: ({ icon: iconName, pure, ...props }: IconifyProps) =>
|
|
21
|
+
export declare const Iconify: ({ icon: iconName, pure, ...props }: IconifyProps) => JSX.Element;
|
|
22
22
|
/**
|
|
23
23
|
* A component that renders an icon from the available custom icons.
|
|
24
24
|
* @param icon The icon to display. The available icons are listed in the {@link AvailableCustomIcons} enum.
|