@hortiview/shared-components 0.0.4721 → 0.0.4722
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/BlockView.module-8kbPxxc4.js +15 -0
- package/dist/HashTabView.module-BY0tbl3B.js +13 -0
- package/dist/HeaderFilter.module-DiBmulr5.js +7 -0
- package/dist/_getTag-DNUtgXkb.js +136 -0
- package/dist/_stringToPath-BfzwTbL6.js +54 -0
- package/dist/baseView.module-DXWalo9p.js +7 -0
- package/dist/basicHeading.module-ClcvD7x2.js +16 -0
- package/dist/{component-DCtofpGS.js → component-Rx4bNsGO.js} +1 -1
- package/dist/components/BaseView/BaseView.js +28 -30
- package/dist/components/BaseView/BaseView.test.js +1 -1
- package/dist/components/BasicHeading/BasicHeading.js +40 -51
- package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
- package/dist/components/BlockView/BlockView.js +41 -51
- package/dist/components/DeleteModal/DeleteModal.js +34 -36
- package/dist/components/Disclaimer/Disclaimer.js +11 -14
- package/dist/components/EmptyView/EmptyView.js +4 -4
- package/dist/components/HashTabView/HashTabView.js +60 -68
- package/dist/components/HeaderFilter/HeaderFilter.js +628 -629
- package/dist/components/Iconify/Iconify.js +1 -1
- package/dist/components/ListArea/ListArea.js +189 -233
- package/dist/components/ListArea/ListArea.test.js +2 -2
- package/dist/components/ListArea/ListAreaService.js +56 -9
- package/dist/components/SearchBar/SearchBar.js +47 -48
- package/dist/components/VerticalDivider/VerticalDivider.js +4 -6
- package/dist/disclaimer.module-BZydt-Q_.js +8 -0
- package/dist/hooks/useBreakpoint.js +2 -2
- package/dist/index.es-Ba9oZK_n.js +769 -0
- package/dist/{index.es-CcfZlo4c.js → index.es-C1ojb4Lq.js} +1 -1
- package/dist/{index.es-hAl7Wxm5.js → index.es-CNBieliG.js} +1 -1
- package/dist/{index.es-C3EKMb0J.js → index.es-CQ3ep412.js} +3 -3
- package/dist/{index.es-STyHqa-8.js → index.es-CVCp4d0C.js} +2 -2
- package/dist/{index.es-BahjEG5L.js → index.es-Cct4Uapb.js} +28 -28
- package/dist/index.es-Cj9DW-2T.js +430 -0
- package/dist/{index.es-z8RCxF8n.js → index.es-Cm4X20_S.js} +2 -2
- package/dist/{index.es-3I3oam0G.js → index.es-InSNsV4f.js} +1 -1
- package/dist/{index.es-BcHAMD5J.js → index.es-L0ZCcbUf.js} +1676 -1805
- package/dist/listArea.module-B04TR5bj.js +14 -0
- package/dist/main.js +6 -6
- package/dist/searchBar.module-9gKyrZRT.js +7 -0
- package/dist/{tslib.es6-BOWp4lfV.js → tslib.es6-CIXEwqhg.js} +4 -4
- package/dist/{useBreakpoint-DROHPVxO.js → useBreakpoint-DyAmuka7.js} +2 -2
- package/dist/verticalDivider.module-C3_GL-fH.js +7 -0
- package/package.json +1 -1
- package/dist/ListAreaService-BQCdQv7a.js +0 -68
- package/dist/index.es-DVNdCQvl.js +0 -1192
- /package/dist/assets/{BaseView.css → baseView.css} +0 -0
- /package/dist/assets/{BasicHeading.css → basicHeading.css} +0 -0
- /package/dist/assets/{Disclaimer.css → disclaimer.css} +0 -0
- /package/dist/assets/{ListAreaService.css → listArea.css} +0 -0
- /package/dist/assets/{SearchBar.css → searchBar.css} +0 -0
- /package/dist/assets/{VerticalDivider.css → verticalDivider.css} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "./assets/BlockView.css";
|
|
2
|
+
const c = "_grid_g18cu_1", o = "_black_g18cu_11", _ = "_blockLayout_g18cu_15", t = "_blockRow_g18cu_27", l = "_block_g18cu_15", b = "_active_g18cu_46", k = "_error_g18cu_52", e = "_empty_g18cu_58", r = "_blockText_g18cu_65", g = {
|
|
3
|
+
grid: c,
|
|
4
|
+
black: o,
|
|
5
|
+
blockLayout: _,
|
|
6
|
+
blockRow: t,
|
|
7
|
+
block: l,
|
|
8
|
+
active: b,
|
|
9
|
+
error: k,
|
|
10
|
+
empty: e,
|
|
11
|
+
blockText: r
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
g as s
|
|
15
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./assets/HashTabView.css";
|
|
2
|
+
const t = "_elevation_1rcw6_1", n = "_themeBackground_1rcw6_6", a = "_tabBar_1rcw6_10", r = "_tabWrapper_1rcw6_16", o = "_tabButton_1rcw6_20", c = "_childContainer_1rcw6_24", e = "_childContainerLg_1rcw6_28", i = {
|
|
3
|
+
elevation: t,
|
|
4
|
+
themeBackground: n,
|
|
5
|
+
tabBar: a,
|
|
6
|
+
tabWrapper: r,
|
|
7
|
+
tabButton: o,
|
|
8
|
+
childContainer: c,
|
|
9
|
+
childContainerLg: e
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
i as s
|
|
13
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { k as G, h as U, o as W, p as j, q as T, s as S, t as F, g as I, v as V } from "./index.es-Cct4Uapb.js";
|
|
2
|
+
var z = "__lodash_hash_undefined__";
|
|
3
|
+
function J(e) {
|
|
4
|
+
return this.__data__.set(e, z), this;
|
|
5
|
+
}
|
|
6
|
+
var K = J;
|
|
7
|
+
function Q(e) {
|
|
8
|
+
return this.__data__.has(e);
|
|
9
|
+
}
|
|
10
|
+
var X = Q, Y = G, Z = K, k = X;
|
|
11
|
+
function A(e) {
|
|
12
|
+
var a = -1, r = e == null ? 0 : e.length;
|
|
13
|
+
for (this.__data__ = new Y(); ++a < r; )
|
|
14
|
+
this.add(e[a]);
|
|
15
|
+
}
|
|
16
|
+
A.prototype.add = A.prototype.push = Z;
|
|
17
|
+
A.prototype.has = k;
|
|
18
|
+
var ee = A;
|
|
19
|
+
function ae(e, a) {
|
|
20
|
+
for (var r = -1, t = e == null ? 0 : e.length; ++r < t; )
|
|
21
|
+
if (a(e[r], r, e))
|
|
22
|
+
return !0;
|
|
23
|
+
return !1;
|
|
24
|
+
}
|
|
25
|
+
var re = ae;
|
|
26
|
+
function te(e, a) {
|
|
27
|
+
return e.has(a);
|
|
28
|
+
}
|
|
29
|
+
var ne = te, se = ee, ie = re, fe = ne, ge = 1, ue = 2;
|
|
30
|
+
function ve(e, a, r, t, g, n) {
|
|
31
|
+
var i = r & ge, s = e.length, c = a.length;
|
|
32
|
+
if (s != c && !(i && c > s))
|
|
33
|
+
return !1;
|
|
34
|
+
var o = n.get(e), l = n.get(a);
|
|
35
|
+
if (o && l)
|
|
36
|
+
return o == a && l == e;
|
|
37
|
+
var _ = -1, d = !0, y = r & ue ? new se() : void 0;
|
|
38
|
+
for (n.set(e, a), n.set(a, e); ++_ < s; ) {
|
|
39
|
+
var u = e[_], p = a[_];
|
|
40
|
+
if (t)
|
|
41
|
+
var M = i ? t(p, u, _, a, e, n) : t(u, p, _, e, a, n);
|
|
42
|
+
if (M !== void 0) {
|
|
43
|
+
if (M)
|
|
44
|
+
continue;
|
|
45
|
+
d = !1;
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
if (y) {
|
|
49
|
+
if (!ie(a, function(E, D) {
|
|
50
|
+
if (!fe(y, D) && (u === E || g(u, E, r, t, n)))
|
|
51
|
+
return y.push(D);
|
|
52
|
+
})) {
|
|
53
|
+
d = !1;
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
} else if (!(u === p || g(u, p, r, t, n))) {
|
|
57
|
+
d = !1;
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return n.delete(e), n.delete(a), d;
|
|
62
|
+
}
|
|
63
|
+
var oe = ve;
|
|
64
|
+
function _e(e) {
|
|
65
|
+
var a = -1, r = Array(e.size);
|
|
66
|
+
return e.forEach(function(t, g) {
|
|
67
|
+
r[++a] = [g, t];
|
|
68
|
+
}), r;
|
|
69
|
+
}
|
|
70
|
+
var ce = _e;
|
|
71
|
+
function le(e) {
|
|
72
|
+
var a = -1, r = Array(e.size);
|
|
73
|
+
return e.forEach(function(t) {
|
|
74
|
+
r[++a] = t;
|
|
75
|
+
}), r;
|
|
76
|
+
}
|
|
77
|
+
var de = le, P = U, L = W, pe = j, Ae = oe, Te = ce, Se = de, ye = 1, we = 2, $e = "[object Boolean]", be = "[object Date]", he = "[object Error]", Ce = "[object Map]", me = "[object Number]", Me = "[object RegExp]", Ee = "[object Set]", De = "[object String]", Pe = "[object Symbol]", Le = "[object ArrayBuffer]", Oe = "[object DataView]", O = P ? P.prototype : void 0, w = O ? O.valueOf : void 0;
|
|
78
|
+
function Re(e, a, r, t, g, n, i) {
|
|
79
|
+
switch (r) {
|
|
80
|
+
case Oe:
|
|
81
|
+
if (e.byteLength != a.byteLength || e.byteOffset != a.byteOffset)
|
|
82
|
+
return !1;
|
|
83
|
+
e = e.buffer, a = a.buffer;
|
|
84
|
+
case Le:
|
|
85
|
+
return !(e.byteLength != a.byteLength || !n(new L(e), new L(a)));
|
|
86
|
+
case $e:
|
|
87
|
+
case be:
|
|
88
|
+
case me:
|
|
89
|
+
return pe(+e, +a);
|
|
90
|
+
case he:
|
|
91
|
+
return e.name == a.name && e.message == a.message;
|
|
92
|
+
case Me:
|
|
93
|
+
case De:
|
|
94
|
+
return e == a + "";
|
|
95
|
+
case Ce:
|
|
96
|
+
var s = Te;
|
|
97
|
+
case Ee:
|
|
98
|
+
var c = t & ye;
|
|
99
|
+
if (s || (s = Se), e.size != a.size && !c)
|
|
100
|
+
return !1;
|
|
101
|
+
var o = i.get(e);
|
|
102
|
+
if (o)
|
|
103
|
+
return o == a;
|
|
104
|
+
t |= we, i.set(e, a);
|
|
105
|
+
var l = Ae(s(e), s(a), t, g, n, i);
|
|
106
|
+
return i.delete(e), l;
|
|
107
|
+
case Pe:
|
|
108
|
+
if (w)
|
|
109
|
+
return w.call(e) == w.call(a);
|
|
110
|
+
}
|
|
111
|
+
return !1;
|
|
112
|
+
}
|
|
113
|
+
var ta = Re, Ne = T, He = S, xe = Ne(He, "DataView"), qe = xe, Be = T, Ge = S, Ue = Be(Ge, "Promise"), We = Ue, je = T, Fe = S, Ie = je(Fe, "Set"), Ve = Ie, ze = T, Je = S, Ke = ze(Je, "WeakMap"), Qe = Ke, $ = qe, b = F, h = We, C = Ve, m = Qe, B = I, v = V, R = "[object Map]", Xe = "[object Object]", N = "[object Promise]", H = "[object Set]", x = "[object WeakMap]", q = "[object DataView]", Ye = v($), Ze = v(b), ke = v(h), ea = v(C), aa = v(m), f = B;
|
|
114
|
+
($ && f(new $(new ArrayBuffer(1))) != q || b && f(new b()) != R || h && f(h.resolve()) != N || C && f(new C()) != H || m && f(new m()) != x) && (f = function(e) {
|
|
115
|
+
var a = B(e), r = a == Xe ? e.constructor : void 0, t = r ? v(r) : "";
|
|
116
|
+
if (t)
|
|
117
|
+
switch (t) {
|
|
118
|
+
case Ye:
|
|
119
|
+
return q;
|
|
120
|
+
case Ze:
|
|
121
|
+
return R;
|
|
122
|
+
case ke:
|
|
123
|
+
return N;
|
|
124
|
+
case ea:
|
|
125
|
+
return H;
|
|
126
|
+
case aa:
|
|
127
|
+
return x;
|
|
128
|
+
}
|
|
129
|
+
return a;
|
|
130
|
+
});
|
|
131
|
+
var na = f;
|
|
132
|
+
export {
|
|
133
|
+
oe as _,
|
|
134
|
+
ta as a,
|
|
135
|
+
na as b
|
|
136
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { g as h, i as y, h as b, j as g, k as l } from "./index.es-Cct4Uapb.js";
|
|
2
|
+
function _(r, e) {
|
|
3
|
+
for (var a = -1, t = r == null ? 0 : r.length, n = Array(t); ++a < t; )
|
|
4
|
+
n[a] = e(r[a], a, r);
|
|
5
|
+
return n;
|
|
6
|
+
}
|
|
7
|
+
var v = _, d = h, T = y, S = "[object Symbol]";
|
|
8
|
+
function C(r) {
|
|
9
|
+
return typeof r == "symbol" || T(r) && d(r) == S;
|
|
10
|
+
}
|
|
11
|
+
var z = C, c = b, E = v, M = g, $ = z, A = 1 / 0, p = c ? c.prototype : void 0, m = p ? p.toString : void 0;
|
|
12
|
+
function u(r) {
|
|
13
|
+
if (typeof r == "string")
|
|
14
|
+
return r;
|
|
15
|
+
if (M(r))
|
|
16
|
+
return E(r, u) + "";
|
|
17
|
+
if ($(r))
|
|
18
|
+
return m ? m.call(r) : "";
|
|
19
|
+
var e = r + "";
|
|
20
|
+
return e == "0" && 1 / r == -A ? "-0" : e;
|
|
21
|
+
}
|
|
22
|
+
var L = u, f = l, I = "Expected a function";
|
|
23
|
+
function o(r, e) {
|
|
24
|
+
if (typeof r != "function" || e != null && typeof e != "function")
|
|
25
|
+
throw new TypeError(I);
|
|
26
|
+
var a = function() {
|
|
27
|
+
var t = arguments, n = e ? e.apply(this, t) : t[0], i = a.cache;
|
|
28
|
+
if (i.has(n))
|
|
29
|
+
return i.get(n);
|
|
30
|
+
var s = r.apply(this, t);
|
|
31
|
+
return a.cache = i.set(n, s) || i, s;
|
|
32
|
+
};
|
|
33
|
+
return a.cache = new (o.Cache || f)(), a;
|
|
34
|
+
}
|
|
35
|
+
o.Cache = f;
|
|
36
|
+
var j = o, k = j, w = 500;
|
|
37
|
+
function N(r) {
|
|
38
|
+
var e = k(r, function(t) {
|
|
39
|
+
return a.size === w && a.clear(), t;
|
|
40
|
+
}), a = e.cache;
|
|
41
|
+
return e;
|
|
42
|
+
}
|
|
43
|
+
var O = N, P = O, x = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, R = /\\(\\)?/g, F = P(function(r) {
|
|
44
|
+
var e = [];
|
|
45
|
+
return r.charCodeAt(0) === 46 && e.push(""), r.replace(x, function(a, t, n, i) {
|
|
46
|
+
e.push(n ? i.replace(R, "$1") : t || a);
|
|
47
|
+
}), e;
|
|
48
|
+
}), X = F;
|
|
49
|
+
export {
|
|
50
|
+
L as _,
|
|
51
|
+
X as a,
|
|
52
|
+
v as b,
|
|
53
|
+
z as i
|
|
54
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./assets/basicHeading.css";
|
|
2
|
+
const n = "_pageHeader_fwns1_1", e = "_headlineContainer_fwns1_11", t = "_actionButtonContainer_fwns1_16", a = "_content_fwns1_25", i = "_leadingIcon_fwns1_31", o = "_headingWrapper_fwns1_38", _ = "_headingContainer_fwns1_43", s = "_invisible_fwns1_48", r = "_withAvatar_fwns1_52", c = "_iconContainer_fwns1_57", w = {
|
|
3
|
+
pageHeader: n,
|
|
4
|
+
headlineContainer: e,
|
|
5
|
+
actionButtonContainer: t,
|
|
6
|
+
content: a,
|
|
7
|
+
leadingIcon: i,
|
|
8
|
+
headingWrapper: o,
|
|
9
|
+
headingContainer: _,
|
|
10
|
+
invisible: s,
|
|
11
|
+
withAvatar: r,
|
|
12
|
+
iconContainer: c
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
w as s
|
|
16
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "../../assets/BaseView.css";
|
|
2
1
|
import { jsx as p, Fragment as $, jsxs as G } from "react/jsx-runtime";
|
|
3
2
|
import b, { forwardRef as P, useMemo as f, useRef as H, useImperativeHandle as O, useContext as B, createContext as E } from "react";
|
|
4
3
|
import { EmptyView as D } from "../EmptyView/EmptyView.js";
|
|
5
4
|
import { ListArea as z } from "../ListArea/ListArea.js";
|
|
6
5
|
import { VerticalDivider as M } from "../VerticalDivider/VerticalDivider.js";
|
|
7
|
-
import {
|
|
6
|
+
import { s as S } from "../../baseView.module-DXWalo9p.js";
|
|
7
|
+
import { u as V } from "../../useBreakpoint-DyAmuka7.js";
|
|
8
8
|
import { BasicHeading as T } from "../BasicHeading/BasicHeading.js";
|
|
9
|
-
import { d as
|
|
10
|
-
import { G as k } from "../../index.es-
|
|
11
|
-
const R = /* @__PURE__ */ E({}),
|
|
9
|
+
import { d as j, P as e, c as x, _ as A } from "../../index.es-Cct4Uapb.js";
|
|
10
|
+
import { G as k } from "../../index.es-CNBieliG.js";
|
|
11
|
+
const R = /* @__PURE__ */ E({}), I = {
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated _Use `variant`='airy' instead._
|
|
14
14
|
*
|
|
@@ -16,7 +16,7 @@ const R = /* @__PURE__ */ E({}), j = {
|
|
|
16
16
|
*
|
|
17
17
|
* Defaults to **undefined**.
|
|
18
18
|
*/
|
|
19
|
-
airy:
|
|
19
|
+
airy: j(e.bool, "Grid", 'Use `variant`="airy" instead.'),
|
|
20
20
|
/**
|
|
21
21
|
* Accepts GridCol or GridRow.
|
|
22
22
|
*
|
|
@@ -77,7 +77,7 @@ const R = /* @__PURE__ */ E({}), j = {
|
|
|
77
77
|
* Defaults to **'standard'**.
|
|
78
78
|
*/
|
|
79
79
|
variant: e.oneOf(["standard", "airy", "none"])
|
|
80
|
-
},
|
|
80
|
+
}, L = {
|
|
81
81
|
airy: void 0,
|
|
82
82
|
children: null,
|
|
83
83
|
className: void 0,
|
|
@@ -89,7 +89,7 @@ const R = /* @__PURE__ */ E({}), j = {
|
|
|
89
89
|
style: void 0,
|
|
90
90
|
useMaxWidth: !1,
|
|
91
91
|
variant: "standard"
|
|
92
|
-
},
|
|
92
|
+
}, q = {
|
|
93
93
|
/**
|
|
94
94
|
* Alignment of cell within the row: top, middle, bottom. If omitted the col will stretch to the height of the row.
|
|
95
95
|
*
|
|
@@ -150,7 +150,7 @@ const R = /* @__PURE__ */ E({}), j = {
|
|
|
150
150
|
* Defaults to **'top'**.
|
|
151
151
|
*/
|
|
152
152
|
verticalAlign: e.oneOf(["top", "middle", "bottom"])
|
|
153
|
-
},
|
|
153
|
+
}, F = {
|
|
154
154
|
align: void 0,
|
|
155
155
|
children: null,
|
|
156
156
|
className: void 0,
|
|
@@ -161,7 +161,7 @@ const R = /* @__PURE__ */ E({}), j = {
|
|
|
161
161
|
phoneCol: null,
|
|
162
162
|
tabletCol: null,
|
|
163
163
|
verticalAlign: "top"
|
|
164
|
-
},
|
|
164
|
+
}, U = {
|
|
165
165
|
/**
|
|
166
166
|
* Content to be rendered inside the GridRow. Accepts any valid markup.
|
|
167
167
|
*
|
|
@@ -174,7 +174,7 @@ const R = /* @__PURE__ */ E({}), j = {
|
|
|
174
174
|
* Defaults to **undefined**.
|
|
175
175
|
*/
|
|
176
176
|
className: e.string
|
|
177
|
-
},
|
|
177
|
+
}, J = {
|
|
178
178
|
children: null,
|
|
179
179
|
className: void 0
|
|
180
180
|
}, w = /* @__PURE__ */ P((c, u) => {
|
|
@@ -195,20 +195,20 @@ const R = /* @__PURE__ */ E({}), j = {
|
|
|
195
195
|
fullHeight: t,
|
|
196
196
|
rowGap: i,
|
|
197
197
|
columnGap: n
|
|
198
|
-
}), [n, t, i]),
|
|
199
|
-
O(u, () =>
|
|
198
|
+
}), [n, t, i]), v = H();
|
|
199
|
+
O(u, () => v.current, []);
|
|
200
200
|
const W = f(() => x("lmnt", "mdc-layout-grid", "lmnt-layout-grid", `mdc-layout-grid mdc-layout-grid--align-${s}`, (y === "airy" || o) && "mdc-grid-cell-wrapper-airy-tablet mdc-grid-cell-wrapper-airy-desktop", r === "none" && "mdc-grid-cell-wrapper-none-tablet mdc-grid-cell-wrapper-none-desktop mdc-grid-cell-wrapper-none-phone ", a && "lmnt-layout-grid--full-width", t && "lmnt-layout-grid--full-height", g && "lmnt-layout-grid--with-max-width", d), [o, d, y, t, a, s, g, r]);
|
|
201
201
|
return /* @__PURE__ */ b.createElement(R.Provider, {
|
|
202
202
|
value: _
|
|
203
203
|
}, /* @__PURE__ */ b.createElement("div", A({
|
|
204
|
-
ref:
|
|
204
|
+
ref: v,
|
|
205
205
|
className: W
|
|
206
206
|
}, l), m));
|
|
207
207
|
});
|
|
208
208
|
w.displayName = "Grid";
|
|
209
|
-
w.propTypes =
|
|
210
|
-
w.defaultProps =
|
|
211
|
-
const
|
|
209
|
+
w.propTypes = I;
|
|
210
|
+
w.defaultProps = L;
|
|
211
|
+
const C = /* @__PURE__ */ P((c, u) => {
|
|
212
212
|
const {
|
|
213
213
|
align: o,
|
|
214
214
|
children: m,
|
|
@@ -233,9 +233,9 @@ const v = /* @__PURE__ */ P((c, u) => {
|
|
|
233
233
|
className: x("lmnt", `lmnt-layout-grid__cell--vertical-align-${l}`, `lmnt-layout-grid__cell--horizontal-align-${s}`, "mdc-layout-grid__cell", !n && !h && !r && !t && ["mdc-layout-grid__cell"], i && `mdc-layout-grid__cell--order-${i}`, o && `mdc-layout-grid__cell--align-${o}`, n && [`mdc-layout-grid__cell--span-${n}`], h && [`mdc-layout-grid__cell--span-${h}-phone`], r && [`mdc-layout-grid__cell--span-${r}-tablet`], t && [`mdc-layout-grid__cell--span-${t}-desktop`], "lmnt-layout-grid__cell", d)
|
|
234
234
|
}, y), m);
|
|
235
235
|
});
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
236
|
+
C.displayName = "GridCol";
|
|
237
|
+
C.propTypes = q;
|
|
238
|
+
C.defaultProps = F;
|
|
239
239
|
const N = /* @__PURE__ */ P((c, u) => {
|
|
240
240
|
const {
|
|
241
241
|
children: o,
|
|
@@ -259,11 +259,9 @@ const N = /* @__PURE__ */ P((c, u) => {
|
|
|
259
259
|
}, n), o);
|
|
260
260
|
});
|
|
261
261
|
N.displayName = "GridRow";
|
|
262
|
-
N.propTypes =
|
|
263
|
-
N.defaultProps =
|
|
264
|
-
const
|
|
265
|
-
divider: J
|
|
266
|
-
}, ne = ({
|
|
262
|
+
N.propTypes = U;
|
|
263
|
+
N.defaultProps = J;
|
|
264
|
+
const ie = ({
|
|
267
265
|
action: c,
|
|
268
266
|
heading: u,
|
|
269
267
|
elements: o,
|
|
@@ -277,9 +275,9 @@ const J = "_divider_anyyu_1", K = {
|
|
|
277
275
|
routerLinkElement: h,
|
|
278
276
|
searchPlaceholder: g
|
|
279
277
|
}) => {
|
|
280
|
-
const { isLg: r } =
|
|
278
|
+
const { isLg: r } = V(), l = f(() => o.find((v) => v.route === i), [i, o]), y = f(() => l?.component ?? (r ? /* @__PURE__ */ p(D, { subtitle: m }) : /* @__PURE__ */ p($, {})), [l, r, m]), _ = f(() => r ? !0 : !l, [l, r]);
|
|
281
279
|
return /* @__PURE__ */ p(w, { className: t ?? "", fullHeight: !0, fullWidth: !0, columnGap: 0, children: /* @__PURE__ */ G(N, { children: [
|
|
282
|
-
_ && /* @__PURE__ */ G(
|
|
280
|
+
_ && /* @__PURE__ */ G(C, { desktopCol: 4, tabletCol: 12, phoneCol: 12, children: [
|
|
283
281
|
/* @__PURE__ */ G(k, { direction: "vertical", fullWidth: !0, children: [
|
|
284
282
|
u && /* @__PURE__ */ p(T, { heading: u, level: 4, marginBottom: 0, children: c }),
|
|
285
283
|
/* @__PURE__ */ p(
|
|
@@ -295,9 +293,9 @@ const J = "_divider_anyyu_1", K = {
|
|
|
295
293
|
}
|
|
296
294
|
)
|
|
297
295
|
] }),
|
|
298
|
-
r && /* @__PURE__ */ p(M, { className:
|
|
296
|
+
r && /* @__PURE__ */ p(M, { className: S.divider, height: "100%" })
|
|
299
297
|
] }),
|
|
300
|
-
/* @__PURE__ */ p(
|
|
298
|
+
/* @__PURE__ */ p(C, { desktopCol: 8, tabletCol: 12, phoneCol: 12, children: /* @__PURE__ */ G(k, { direction: "vertical", fullWidth: !0, children: [
|
|
301
299
|
/* @__PURE__ */ p(
|
|
302
300
|
T,
|
|
303
301
|
{
|
|
@@ -315,5 +313,5 @@ const J = "_divider_anyyu_1", K = {
|
|
|
315
313
|
] }) });
|
|
316
314
|
};
|
|
317
315
|
export {
|
|
318
|
-
|
|
316
|
+
ie as BaseView
|
|
319
317
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, Fragment as s } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { a as l } from "../../useBreakpoint-DyAmuka7.js";
|
|
3
3
|
import { BaseView as r } from "./BaseView.js";
|
|
4
4
|
import { r as i, s as e, f as p } from "../../react.esm-BeDwcQWb.js";
|
|
5
5
|
import { d as u, b as m, t as n, g as t, v as c } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
@@ -1,75 +1,64 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { AvailableCustomIcons as
|
|
6
|
-
import { c as
|
|
7
|
-
import { I as
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
headlineContainer: b,
|
|
11
|
-
actionButtonContainer: H,
|
|
12
|
-
content: A,
|
|
13
|
-
leadingIcon: W,
|
|
14
|
-
headingWrapper: $,
|
|
15
|
-
headingContainer: x,
|
|
16
|
-
invisible: T,
|
|
17
|
-
withAvatar: j,
|
|
18
|
-
iconContainer: z
|
|
19
|
-
}, L = ({ icon: e }) => e ? typeof e != "string" ? /* @__PURE__ */ a("div", { className: n.iconContainer, children: e }) : e in y ? /* @__PURE__ */ a(
|
|
20
|
-
w,
|
|
1
|
+
import { jsxs as r, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { u as v } from "../../useBreakpoint-DyAmuka7.js";
|
|
3
|
+
import { Iconify as N } from "../Iconify/Iconify.js";
|
|
4
|
+
import { s as e } from "../../basicHeading.module-ClcvD7x2.js";
|
|
5
|
+
import { AvailableCustomIcons as I } from "../../enums/AvailableCustomIcons.js";
|
|
6
|
+
import { c as B, b as C } from "../../index.es-Cm4X20_S.js";
|
|
7
|
+
import { I as $ } from "../../index.es-InSNsV4f.js";
|
|
8
|
+
const b = ({ icon: a }) => a ? typeof a != "string" ? /* @__PURE__ */ i("div", { className: e.iconContainer, children: a }) : a in I ? /* @__PURE__ */ i(
|
|
9
|
+
N,
|
|
21
10
|
{
|
|
22
|
-
icon:
|
|
23
|
-
className:
|
|
11
|
+
icon: a,
|
|
12
|
+
className: e.leadingIcon,
|
|
24
13
|
iconSize: "large",
|
|
25
14
|
iconType: "filled"
|
|
26
15
|
}
|
|
27
|
-
) : /* @__PURE__ */
|
|
28
|
-
children:
|
|
29
|
-
marginBottom:
|
|
30
|
-
heading:
|
|
16
|
+
) : /* @__PURE__ */ i($, { iconSize: "large", iconType: "filled", icon: a, className: e.leadingIcon }) : null, S = ({
|
|
17
|
+
children: a,
|
|
18
|
+
marginBottom: t,
|
|
19
|
+
heading: c,
|
|
31
20
|
icon: d,
|
|
32
|
-
className:
|
|
33
|
-
subHeading:
|
|
34
|
-
subHeadingLevel:
|
|
21
|
+
className: m,
|
|
22
|
+
subHeading: s,
|
|
23
|
+
subHeadingLevel: p = 2,
|
|
35
24
|
invisibleButton: f = !1,
|
|
36
|
-
level:
|
|
37
|
-
fontWeight:
|
|
38
|
-
withAvatar:
|
|
25
|
+
level: n = 4,
|
|
26
|
+
fontWeight: o = 400,
|
|
27
|
+
withAvatar: y = !1
|
|
39
28
|
}) => {
|
|
40
|
-
const { isLg:
|
|
41
|
-
if (
|
|
42
|
-
return typeof
|
|
29
|
+
const { isLg: l } = v(), g = l ? n : n + 1, h = o === "bold" ? 500 : o, u = () => {
|
|
30
|
+
if (t !== void 0)
|
|
31
|
+
return typeof t == "number" ? `${t}px` : "2rem";
|
|
43
32
|
};
|
|
44
|
-
return /* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ r(
|
|
45
34
|
"div",
|
|
46
35
|
{
|
|
47
|
-
className:
|
|
48
|
-
style: { marginBottom:
|
|
36
|
+
className: e.pageHeader,
|
|
37
|
+
style: { marginBottom: u() },
|
|
49
38
|
"data-testid": "HeaderContainer",
|
|
50
39
|
children: [
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
|
|
40
|
+
/* @__PURE__ */ r("div", { className: `${y && l ? e.withAvatar : ""} ${e.headingWrapper}`, children: [
|
|
41
|
+
/* @__PURE__ */ i(b, { icon: d }),
|
|
42
|
+
/* @__PURE__ */ r("div", { className: s ? e.headingContainer : "", children: [
|
|
43
|
+
/* @__PURE__ */ i(
|
|
44
|
+
B,
|
|
56
45
|
{
|
|
57
|
-
level:
|
|
46
|
+
level: g,
|
|
58
47
|
"data-testid": "Header",
|
|
59
|
-
className:
|
|
48
|
+
className: m ?? "",
|
|
60
49
|
style: { fontWeight: h },
|
|
61
|
-
children:
|
|
50
|
+
children: c
|
|
62
51
|
}
|
|
63
52
|
),
|
|
64
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ i(C, { level: p, children: s })
|
|
65
54
|
] })
|
|
66
55
|
] }),
|
|
67
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ i(
|
|
68
57
|
"div",
|
|
69
58
|
{
|
|
70
|
-
className: `${
|
|
59
|
+
className: `${e.actionButtonContainer} ${f && e.invisible}`,
|
|
71
60
|
"data-testid": "RightPart",
|
|
72
|
-
children:
|
|
61
|
+
children: a
|
|
73
62
|
}
|
|
74
63
|
)
|
|
75
64
|
]
|
|
@@ -77,5 +66,5 @@ const N = "_pageHeader_fwns1_1", b = "_headlineContainer_fwns1_11", H = "_action
|
|
|
77
66
|
);
|
|
78
67
|
};
|
|
79
68
|
export {
|
|
80
|
-
|
|
69
|
+
S as BasicHeading
|
|
81
70
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as o, Fragment as c } from "react/jsx-runtime";
|
|
|
2
2
|
import { BasicHeading as a } from "./BasicHeading.js";
|
|
3
3
|
import { r as i, s as n } from "../../react.esm-BeDwcQWb.js";
|
|
4
4
|
import { d as g, t as s, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
|
-
import { B as h } from "../../index.es-
|
|
5
|
+
import { B as h } from "../../index.es-CQ3ep412.js";
|
|
6
6
|
g("BasicHeading-Test", () => {
|
|
7
7
|
s("render small container without content", () => {
|
|
8
8
|
i(/* @__PURE__ */ o(a, { heading: "Test" }));
|