@hortiview/shared-components 0.0.6849 → 0.0.6927
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/ListAreaService-CiewPvfR.js +99 -0
- package/dist/assets/BaseView.css +1 -1
- package/dist/assets/BasicHeading.css +1 -1
- package/dist/assets/ListAreaService.css +1 -1
- package/dist/components/AlertBanner/AlertBanner.js +1 -1
- package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
- package/dist/components/BaseView/BaseView.js +48 -44
- package/dist/components/BaseView/BaseView.test.js +5 -3
- package/dist/components/BasicHeading/BasicHeading.js +22 -22
- package/dist/components/HashTabView/HashTabView.js +1 -1
- package/dist/components/Iconify/Iconify.d.ts +1 -1
- package/dist/components/Iconify/Iconify.js +120 -82
- package/dist/components/InfoGroup/InfoGroup.js +1 -1
- package/dist/components/ListArea/ListArea.js +1 -1
- package/dist/components/ListArea/ListArea.test.js +1 -1
- package/dist/components/ListArea/ListAreaService.js +1 -1
- package/dist/enums/AvailableCustomIcons.d.ts +32 -17
- package/dist/enums/AvailableCustomIcons.js +1 -1
- package/dist/hooks/useBreakpoint.d.ts +8 -1
- package/dist/hooks/useBreakpoint.js +1 -1
- package/dist/hooks/useBreakpoints.test.js +1 -1
- package/dist/main.js +1 -1
- package/dist/useBreakpoint-BNeVhjjZ.js +33 -0
- package/package.json +1 -1
- package/dist/ListAreaService-DDlsV9UD.js +0 -100
- package/dist/useBreakpoint-2MH8ICuE.js +0 -28
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import "./assets/ListAreaService.css";
|
|
2
|
+
import { jsx as r, jsxs as N } from "react/jsx-runtime";
|
|
3
|
+
import { TypoButton as b, Group as k, TypoSubtitle as $, TypoBody as L, Icon as O } from "@element/react-components";
|
|
4
|
+
import { Iconify as E } from "./components/Iconify/Iconify.js";
|
|
5
|
+
import { AvailableCustomIcons as j } from "./enums/AvailableCustomIcons.js";
|
|
6
|
+
const W = "_fullWidth_x5yt7_1", G = "_mainElevation_x5yt7_5", S = "_searchbar_x5yt7_11", w = "_roundedBottom_x5yt7_19", A = "_primaryText_x5yt7_24", P = "_list_x5yt7_28", q = "_listItem_x5yt7_56", z = "_trailingIcon_x5yt7_60", D = "_groupedListItem_x5yt7_72", F = "_iconColor_x5yt7_76", H = "_overlineTitle_x5yt7_80", J = "_truncate_x5yt7_85", K = "_truncateOverlineText_x5yt7_94", n = {
|
|
7
|
+
fullWidth: W,
|
|
8
|
+
mainElevation: G,
|
|
9
|
+
searchbar: S,
|
|
10
|
+
roundedBottom: w,
|
|
11
|
+
primaryText: A,
|
|
12
|
+
list: P,
|
|
13
|
+
listItem: q,
|
|
14
|
+
trailingIcon: z,
|
|
15
|
+
groupedListItem: D,
|
|
16
|
+
iconColor: F,
|
|
17
|
+
overlineTitle: H,
|
|
18
|
+
truncate: J,
|
|
19
|
+
truncateOverlineText: K
|
|
20
|
+
}, Z = (e, a, c, l) => {
|
|
21
|
+
const o = e.reduce((i, s) => {
|
|
22
|
+
const { groupName: t, ...m } = s;
|
|
23
|
+
return !t || typeof t != "string" || (i[t] || (i[t] = {
|
|
24
|
+
groupName: /* @__PURE__ */ r(b, { children: t }),
|
|
25
|
+
id: t,
|
|
26
|
+
items: []
|
|
27
|
+
}), i[t].items = [
|
|
28
|
+
...i[t].items,
|
|
29
|
+
x(m, a, c, l)
|
|
30
|
+
]), i;
|
|
31
|
+
}, {});
|
|
32
|
+
return Object.values(o);
|
|
33
|
+
}, tt = (e, a, c, l) => e.map((o) => x(o, a, c, l)), x = (e, a, c, l) => {
|
|
34
|
+
const {
|
|
35
|
+
id: o,
|
|
36
|
+
title: i,
|
|
37
|
+
subTitle: s,
|
|
38
|
+
route: t,
|
|
39
|
+
value: m,
|
|
40
|
+
noNavigation: d,
|
|
41
|
+
disabled: _,
|
|
42
|
+
icon: g,
|
|
43
|
+
iconType: p,
|
|
44
|
+
trailingIcon: T,
|
|
45
|
+
trailingIconType: I,
|
|
46
|
+
actionButton: h,
|
|
47
|
+
onClick: f,
|
|
48
|
+
customTitle: y,
|
|
49
|
+
listItemClassName: B,
|
|
50
|
+
overlineTitle: v
|
|
51
|
+
} = e, u = a === t;
|
|
52
|
+
return {
|
|
53
|
+
id: o,
|
|
54
|
+
key: o,
|
|
55
|
+
select: u,
|
|
56
|
+
primaryText: o,
|
|
57
|
+
secondaryText: /* @__PURE__ */ N(k, { direction: "vertical", gap: "none", children: [
|
|
58
|
+
y ?? /* @__PURE__ */ r(
|
|
59
|
+
$,
|
|
60
|
+
{
|
|
61
|
+
level: 1,
|
|
62
|
+
themeColor: u ? "primary" : void 0,
|
|
63
|
+
className: `${n.truncate} lmnt-theme-on-surface-active`,
|
|
64
|
+
children: i
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
s && !y ? /* @__PURE__ */ r(
|
|
68
|
+
L,
|
|
69
|
+
{
|
|
70
|
+
level: 2,
|
|
71
|
+
themeColor: u ? "primary" : void 0,
|
|
72
|
+
className: `${n.truncate} lmnt-theme-on-surface-inactive`,
|
|
73
|
+
children: s
|
|
74
|
+
}
|
|
75
|
+
) : void 0
|
|
76
|
+
] }),
|
|
77
|
+
overlineText: /* @__PURE__ */ r("span", { className: `${n.truncate} ${n.truncateOverlineText}`, children: v }),
|
|
78
|
+
trailingBlock: h ?? T ?? /* @__PURE__ */ r(O, { icon: "arrow_right", className: n.iconColor }),
|
|
79
|
+
leadingBlock: M(g),
|
|
80
|
+
value: m,
|
|
81
|
+
componentProps: {
|
|
82
|
+
id: o,
|
|
83
|
+
key: o,
|
|
84
|
+
leadingBlockType: p ?? "icon",
|
|
85
|
+
trailingBlockType: I ?? "icon",
|
|
86
|
+
className: `${p === "avatar" ? "" : n.listItem} ${c} ${B ?? ""} ${v ? n.overlineTitle : ""}`,
|
|
87
|
+
onClick: (Q, C) => f?.(C),
|
|
88
|
+
tag: _ || d ? void 0 : l ?? "a",
|
|
89
|
+
to: _ || d ? void 0 : t,
|
|
90
|
+
disabled: _
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}, M = (e) => typeof e == "string" && e in j ? /* @__PURE__ */ r(E, { icon: e }) : e;
|
|
94
|
+
export {
|
|
95
|
+
tt as a,
|
|
96
|
+
Z as g,
|
|
97
|
+
x as m,
|
|
98
|
+
n as s
|
|
99
|
+
};
|
package/dist/assets/BaseView.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._divider_1513z_1{margin:0 2rem}._truncate_1513z_5{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:55vw}._desktopList_1513z_13{width:30%}._mobileList_1513z_17{width:100%}._desktopDetail_1513z_21{width:70%}._mobileDetail_1513z_25{width:100%}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._pageHeader_gwnjc_1{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;width:100%;margin-bottom:1rem;align-self:end}._headlineContainer_gwnjc_11,._actionButtonContainer_gwnjc_16{display:flex;align-items:center}._actionButtonContainer_gwnjc_16>button{max-height:48px}._content_gwnjc_25{display:flex;justify-content:space-between;gap:1.5rem}._leadingIcon_gwnjc_31{margin-right:.8rem}._headingWrapper_gwnjc_35{display:flex;align-items:center}._headingContainer_gwnjc_40{display:flex;flex-direction:column}._invisible_gwnjc_45{visibility:hidden}._withAvatar_gwnjc_49{margin-left:.25rem;padding-right:1rem;margin-top:0rem}._withAvatar_gwnjc_49>._iconContainer_gwnjc_54{scale:1.1}._iconContainer_gwnjc_54{padding-right:.5rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._fullWidth_x5yt7_1{width:100%}._mainElevation_x5yt7_5{background:var(--lmnt-theme-background);border-radius:.5rem;width:100%}._searchbar_x5yt7_11 div{border:none}._searchbar_x5yt7_11 button{margin-right:.5rem}._roundedBottom_x5yt7_19{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}._primaryText_x5yt7_24 [class*=mdc-list-item__primary-text]{display:none!important}._list_x5yt7_28{padding-top:0;padding-bottom:0;overflow-y:auto}._list_x5yt7_28 [class*=mdc-list-item__overline-text]{margin-bottom:-2.25rem}._list_x5yt7_28::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 .25rem rgba(0,0,0,.2);border-radius:.5rem;margin-right:.25rem;background-color:var(--lmnt-theme-background)}._list_x5yt7_28::-webkit-scrollbar{width:.5rem;background-color:var(--lmnt-theme-background)}._list_x5yt7_28::-webkit-scrollbar-thumb{border-radius:.5rem;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);background-color:var(--lmnt-theme-primary-on-surface)}._listItem_x5yt7_56{border-bottom:.0775rem solid var(--lmnt-utility-gray-surface)}._listItem_x5yt7_56 i:not(._trailingIcon_x5yt7_60){color:var(--lmnt-theme-on-surface-inactive)}._listItem_x5yt7_56 i._trailingIcon_x5yt7_60{color:var(--lmnt-theme-on-surface-disabled)}._listItem_x5yt7_56 [class^=mdc-list-item__start]{margin:0 1rem!important;align-self:center!important}._groupedListItem_x5yt7_72{height:4.5rem!important}._iconColor_x5yt7_76{color:var(--lmnt-theme-on-surface-disabled)!important}._overlineTitle_x5yt7_80 [class*=mdc-list-item__overline-text]{color:var(--lmnt-theme-on-surface-inactive)!important;line-height:1rem!important}._truncate_x5yt7_85{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;max-width:100%}._truncateOverlineText_x5yt7_94{margin-bottom:-1rem!important;margin-top:-1rem!important}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../assets/AlertBanner.css";
|
|
2
2
|
import { jsx as e, Fragment as c, jsxs as a } from "react/jsx-runtime";
|
|
3
3
|
import { Group as p, TypoBody as l } from "@element/react-components";
|
|
4
|
-
import { u as m } from "../../useBreakpoint-
|
|
4
|
+
import { u as m } from "../../useBreakpoint-BNeVhjjZ.js";
|
|
5
5
|
const d = "_messageContainer_1kpsp_1", _ = "_info_1kpsp_9", g = "_danger_1kpsp_14", u = "_success_1kpsp_19", n = {
|
|
6
6
|
messageContainer: d,
|
|
7
7
|
info: _,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, Fragment as m } from "react/jsx-runtime";
|
|
2
2
|
import { a as t, s } from "../../react.esm-DoZanrUz.js";
|
|
3
|
-
import { a as l } from "../../useBreakpoint-
|
|
3
|
+
import { a as l } from "../../useBreakpoint-BNeVhjjZ.js";
|
|
4
4
|
import { AlertBanner as n } from "./AlertBanner.js";
|
|
5
5
|
import { d as c, b as p, t as r, g as o, v as a } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
6
6
|
c("AlertBanner Test", () => {
|
|
@@ -1,67 +1,71 @@
|
|
|
1
1
|
import "../../assets/BaseView.css";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import {
|
|
4
|
-
import { useMemo as
|
|
5
|
-
import { BasicHeading as
|
|
6
|
-
import { EmptyView as
|
|
7
|
-
import { ListArea as
|
|
8
|
-
import { VerticalDivider as
|
|
9
|
-
import { u as
|
|
10
|
-
const W = "
|
|
11
|
-
divider:
|
|
12
|
-
truncate:
|
|
13
|
-
|
|
2
|
+
import { jsx as i, Fragment as z, jsxs as s } from "react/jsx-runtime";
|
|
3
|
+
import { Group as r } from "@element/react-components";
|
|
4
|
+
import { useMemo as n } from "react";
|
|
5
|
+
import { BasicHeading as u } from "../BasicHeading/BasicHeading.js";
|
|
6
|
+
import { EmptyView as B } from "../EmptyView/EmptyView.js";
|
|
7
|
+
import { ListArea as N } from "../ListArea/ListArea.js";
|
|
8
|
+
import { VerticalDivider as x } from "../VerticalDivider/VerticalDivider.js";
|
|
9
|
+
import { u as A } from "../../useBreakpoint-BNeVhjjZ.js";
|
|
10
|
+
const V = "_divider_1513z_1", W = "_truncate_1513z_5", j = "_desktopList_1513z_13", E = "_mobileList_1513z_17", H = "_desktopDetail_1513z_21", I = "_mobileDetail_1513z_25", o = {
|
|
11
|
+
divider: V,
|
|
12
|
+
truncate: W,
|
|
13
|
+
desktopList: j,
|
|
14
|
+
mobileList: E,
|
|
15
|
+
desktopDetail: H,
|
|
16
|
+
mobileDetail: I
|
|
17
|
+
}, Q = ({
|
|
14
18
|
action: c,
|
|
15
19
|
heading: d,
|
|
16
|
-
elements:
|
|
17
|
-
emptyText:
|
|
18
|
-
hasSearch:
|
|
19
|
-
isSorted:
|
|
20
|
+
elements: l,
|
|
21
|
+
emptyText: m,
|
|
22
|
+
hasSearch: p = !0,
|
|
23
|
+
isSorted: _ = !0,
|
|
20
24
|
className: v,
|
|
21
|
-
withAvatar:
|
|
22
|
-
listMaxHeight:
|
|
23
|
-
pathname:
|
|
24
|
-
routerLinkElement:
|
|
25
|
-
searchPlaceholder:
|
|
25
|
+
withAvatar: f = !1,
|
|
26
|
+
listMaxHeight: h = "calc(100vh - 200px)",
|
|
27
|
+
pathname: a,
|
|
28
|
+
routerLinkElement: D,
|
|
29
|
+
searchPlaceholder: b
|
|
26
30
|
}) => {
|
|
27
|
-
const {
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
-
|
|
30
|
-
d && /* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
|
|
31
|
+
const { isDesktopNavbar: e } = A(), t = n(() => l.find((w) => w.route === a), [a, l]), g = n(() => t?.component ?? (e ? /* @__PURE__ */ i(B, { subtitle: m }) : /* @__PURE__ */ i(z, {})), [t, e, m]), k = n(() => e ? !0 : !t, [t, e]), L = n(() => e ? !0 : t, [t, e]);
|
|
32
|
+
return /* @__PURE__ */ s(r, { className: v ?? "", gap: "", fullWidth: !0, children: [
|
|
33
|
+
k && /* @__PURE__ */ i(r, { gap: "none", className: e ? o.desktopList : o.mobileList, children: /* @__PURE__ */ s(r, { direction: "vertical", fullWidth: !0, gap: e ? "standard" : "dense", children: [
|
|
34
|
+
d && /* @__PURE__ */ i(u, { heading: d, level: 4, marginBottom: 0, children: c }),
|
|
35
|
+
/* @__PURE__ */ i(
|
|
36
|
+
N,
|
|
33
37
|
{
|
|
34
|
-
elements:
|
|
35
|
-
hasSearch:
|
|
36
|
-
maxHeight:
|
|
37
|
-
isSorted:
|
|
38
|
-
pathname:
|
|
39
|
-
routerLinkElement:
|
|
40
|
-
searchPlaceholder:
|
|
38
|
+
elements: l,
|
|
39
|
+
hasSearch: p,
|
|
40
|
+
maxHeight: h,
|
|
41
|
+
isSorted: _,
|
|
42
|
+
pathname: a,
|
|
43
|
+
routerLinkElement: D,
|
|
44
|
+
searchPlaceholder: b
|
|
41
45
|
}
|
|
42
46
|
)
|
|
43
47
|
] }) }),
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
|
|
48
|
+
L && /* @__PURE__ */ s(r, { gap: "none", className: e ? o.desktopDetail : o.mobileDetail, children: [
|
|
49
|
+
e && /* @__PURE__ */ i(x, { className: o.divider, height: "100%" }),
|
|
50
|
+
/* @__PURE__ */ s(r, { direction: "vertical", fullWidth: !0, children: [
|
|
51
|
+
/* @__PURE__ */ i(
|
|
52
|
+
u,
|
|
49
53
|
{
|
|
50
|
-
className:
|
|
54
|
+
className: o.truncate,
|
|
51
55
|
heading: t?.detailTitle ?? t?.title ?? "",
|
|
52
56
|
level: 4,
|
|
53
57
|
icon: t?.hideIconInDetail === !0 ? void 0 : t?.icon,
|
|
54
58
|
marginBottom: 0,
|
|
55
59
|
invisibleButton: t?.detailAction === void 0,
|
|
56
|
-
withAvatar:
|
|
60
|
+
withAvatar: f,
|
|
57
61
|
children: t?.detailAction ?? c
|
|
58
62
|
}
|
|
59
63
|
),
|
|
60
|
-
|
|
64
|
+
g
|
|
61
65
|
] })
|
|
62
66
|
] })
|
|
63
|
-
] })
|
|
67
|
+
] });
|
|
64
68
|
};
|
|
65
69
|
export {
|
|
66
|
-
|
|
70
|
+
Q as BaseView
|
|
67
71
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a, Fragment as s } from "react/jsx-runtime";
|
|
2
2
|
import { a as r, s as e, f as p } from "../../react.esm-DoZanrUz.js";
|
|
3
|
-
import { a as l } from "../../useBreakpoint-
|
|
3
|
+
import { a as l } from "../../useBreakpoint-BNeVhjjZ.js";
|
|
4
4
|
import { BaseView as i } from "./BaseView.js";
|
|
5
5
|
import { d as u, b as m, t as n, g as t, v as c } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
6
6
|
u("BaseView Test", () => {
|
|
@@ -8,7 +8,8 @@ u("BaseView Test", () => {
|
|
|
8
8
|
c.spyOn(l, "useBreakpoints").mockReturnValue({
|
|
9
9
|
isMobile: !1,
|
|
10
10
|
isTablet: !1,
|
|
11
|
-
isDesktop: !
|
|
11
|
+
isDesktop: !1,
|
|
12
|
+
isDesktopNavbar: !0
|
|
12
13
|
});
|
|
13
14
|
});
|
|
14
15
|
const o = [
|
|
@@ -85,7 +86,8 @@ u("BaseView Test", () => {
|
|
|
85
86
|
c.spyOn(l, "useBreakpoints").mockReturnValue({
|
|
86
87
|
isMobile: !0,
|
|
87
88
|
isTablet: !1,
|
|
88
|
-
isDesktop: !1
|
|
89
|
+
isDesktop: !1,
|
|
90
|
+
isDesktopNavbar: !1
|
|
89
91
|
}), r(
|
|
90
92
|
/* @__PURE__ */ a(
|
|
91
93
|
i,
|
|
@@ -2,21 +2,21 @@ import "../../assets/BasicHeading.css";
|
|
|
2
2
|
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { TypoDisplay as C, TypoBody as w, Icon as u } from "@element/react-components";
|
|
4
4
|
import { Iconify as y } from "../Iconify/Iconify.js";
|
|
5
|
-
import { AvailableCustomIcons as
|
|
6
|
-
import { u as
|
|
7
|
-
import { OverflowTooltip as
|
|
8
|
-
const H = "
|
|
9
|
-
pageHeader:
|
|
10
|
-
headlineContainer:
|
|
11
|
-
actionButtonContainer:
|
|
12
|
-
content:
|
|
13
|
-
leadingIcon:
|
|
14
|
-
headingWrapper:
|
|
15
|
-
headingContainer:
|
|
16
|
-
invisible:
|
|
5
|
+
import { AvailableCustomIcons as j } from "../../enums/AvailableCustomIcons.js";
|
|
6
|
+
import { u as I } from "../../useBreakpoint-BNeVhjjZ.js";
|
|
7
|
+
import { OverflowTooltip as B } from "../OverflowTooltip/OverflowTooltip.js";
|
|
8
|
+
const N = "_pageHeader_gwnjc_1", H = "_headlineContainer_gwnjc_11", b = "_actionButtonContainer_gwnjc_16", x = "_content_gwnjc_25", A = "_leadingIcon_gwnjc_31", T = "_headingWrapper_gwnjc_35", W = "_headingContainer_gwnjc_40", $ = "_invisible_gwnjc_45", k = "_withAvatar_gwnjc_49", z = "_iconContainer_gwnjc_54", n = {
|
|
9
|
+
pageHeader: N,
|
|
10
|
+
headlineContainer: H,
|
|
11
|
+
actionButtonContainer: b,
|
|
12
|
+
content: x,
|
|
13
|
+
leadingIcon: A,
|
|
14
|
+
headingWrapper: T,
|
|
15
|
+
headingContainer: W,
|
|
16
|
+
invisible: $,
|
|
17
17
|
withAvatar: k,
|
|
18
18
|
iconContainer: z
|
|
19
|
-
}, D = ({ icon: e }) => e ? typeof e != "string" ? /* @__PURE__ */ t("div", { className: n.iconContainer, children: e }) : e in
|
|
19
|
+
}, D = ({ icon: e }) => e ? typeof e != "string" ? /* @__PURE__ */ t("div", { className: n.iconContainer, children: e }) : e in j ? /* @__PURE__ */ t(
|
|
20
20
|
y,
|
|
21
21
|
{
|
|
22
22
|
icon: e,
|
|
@@ -31,13 +31,13 @@ const H = "_pageHeader_fwns1_1", b = "_headlineContainer_fwns1_11", x = "_action
|
|
|
31
31
|
icon: d,
|
|
32
32
|
className: p,
|
|
33
33
|
subHeading: r,
|
|
34
|
-
subHeadingLevel:
|
|
35
|
-
invisibleButton:
|
|
36
|
-
level:
|
|
37
|
-
fontWeight:
|
|
34
|
+
subHeadingLevel: g = 2,
|
|
35
|
+
invisibleButton: _ = !1,
|
|
36
|
+
level: c = 4,
|
|
37
|
+
fontWeight: s = 400,
|
|
38
38
|
withAvatar: m = !1
|
|
39
39
|
}) => {
|
|
40
|
-
const { isDesktop: l } =
|
|
40
|
+
const { isDesktop: l } = I(), h = l ? c : c + 1, f = s === "bold" ? 500 : s, v = () => {
|
|
41
41
|
if (i !== void 0)
|
|
42
42
|
return typeof i == "number" ? `${i}px` : "2rem";
|
|
43
43
|
};
|
|
@@ -55,17 +55,17 @@ const H = "_pageHeader_fwns1_1", b = "_headlineContainer_fwns1_11", x = "_action
|
|
|
55
55
|
children: [
|
|
56
56
|
/* @__PURE__ */ t(D, { icon: d }),
|
|
57
57
|
/* @__PURE__ */ o("div", { className: r ? n.headingContainer : "", children: [
|
|
58
|
-
/* @__PURE__ */ t(
|
|
58
|
+
/* @__PURE__ */ t(B, { id: a, text: a, children: /* @__PURE__ */ t(
|
|
59
59
|
C,
|
|
60
60
|
{
|
|
61
61
|
level: h,
|
|
62
62
|
"data-testid": "Header",
|
|
63
63
|
className: p ?? "",
|
|
64
|
-
style: { fontWeight:
|
|
64
|
+
style: { fontWeight: f },
|
|
65
65
|
children: a
|
|
66
66
|
}
|
|
67
67
|
) }),
|
|
68
|
-
/* @__PURE__ */ t(w, { level:
|
|
68
|
+
/* @__PURE__ */ t(w, { level: g, children: r })
|
|
69
69
|
] })
|
|
70
70
|
]
|
|
71
71
|
}
|
|
@@ -73,7 +73,7 @@ const H = "_pageHeader_fwns1_1", b = "_headlineContainer_fwns1_11", x = "_action
|
|
|
73
73
|
/* @__PURE__ */ t(
|
|
74
74
|
"div",
|
|
75
75
|
{
|
|
76
|
-
className: `${n.actionButtonContainer} ${
|
|
76
|
+
className: `${n.actionButtonContainer} ${_ && n.invisible}`,
|
|
77
77
|
"data-testid": "RightPart",
|
|
78
78
|
children: e
|
|
79
79
|
}
|
|
@@ -2,7 +2,7 @@ import "../../assets/HashTabView.css";
|
|
|
2
2
|
import { jsx as a, jsxs as d, Fragment as T } from "react/jsx-runtime";
|
|
3
3
|
import { Elevation as C, Group as i, TabBar as k, Tab as A, Padding as I } from "@element/react-components";
|
|
4
4
|
import { useState as N, useEffect as P } from "react";
|
|
5
|
-
import { u as x } from "../../useBreakpoint-
|
|
5
|
+
import { u as x } from "../../useBreakpoint-BNeVhjjZ.js";
|
|
6
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
7
|
elevation: y,
|
|
8
8
|
themeBackground: W,
|
|
@@ -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.
|