@hortiview/shared-components 0.0.4722 → 0.0.4724
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/_getTag-DyrzUAbj.js +494 -0
- package/dist/assets/DeleteModal.css +1 -1
- package/dist/components/BaseView/BaseView.js +43 -297
- package/dist/components/BasicHeading/BasicHeading.js +24 -25
- package/dist/components/BasicHeading/BasicHeading.test.js +4 -4
- package/dist/components/BlockView/BlockView.js +14 -14
- package/dist/components/DeleteModal/DeleteModal.js +49 -4687
- package/dist/components/Disclaimer/Disclaimer.js +8 -10
- package/dist/components/EmptyView/EmptyView.js +8 -247
- package/dist/components/HashTabView/HashTabView.js +52 -1838
- package/dist/components/HeaderFilter/HeaderFilter.js +18 -7595
- package/dist/components/Iconify/Iconify.js +1 -1
- package/dist/components/ListArea/ListArea.js +316 -261
- package/dist/components/ListArea/ListArea.test.js +1 -1
- package/dist/components/ListArea/ListAreaService.js +34 -35
- package/dist/components/SearchBar/SearchBar.js +21 -2043
- package/dist/main.d.ts +1 -0
- package/package.json +1 -1
- package/dist/_getTag-DNUtgXkb.js +0 -136
- package/dist/_stringToPath-BfzwTbL6.js +0 -54
- package/dist/component-Rx4bNsGO.js +0 -680
- package/dist/index.es-Ba9oZK_n.js +0 -769
- package/dist/index.es-C1ojb4Lq.js +0 -106
- package/dist/index.es-CNBieliG.js +0 -151
- package/dist/index.es-CQ3ep412.js +0 -305
- package/dist/index.es-CVCp4d0C.js +0 -45
- package/dist/index.es-Cct4Uapb.js +0 -1776
- package/dist/index.es-Cj9DW-2T.js +0 -430
- package/dist/index.es-Cm4X20_S.js +0 -673
- package/dist/index.es-InSNsV4f.js +0 -1067
- package/dist/index.es-L0ZCcbUf.js +0 -4939
- package/dist/tslib.es6-CIXEwqhg.js +0 -72
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const v = ({ text: a, subtext: e, icon: i, level: s = 2, bold: l = !1 }) => /* @__PURE__ */ c(
|
|
7
|
-
m,
|
|
1
|
+
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Group as n, TypoSubtitle as m, TypoBody as t, Icon as d } from "@element/react-components";
|
|
3
|
+
import { s as l } from "../../disclaimer.module-BZydt-Q_.js";
|
|
4
|
+
const f = ({ text: o, subtext: e, icon: i, level: c = 2, bold: a = !1 }) => /* @__PURE__ */ s(
|
|
5
|
+
n,
|
|
8
6
|
{
|
|
9
7
|
direction: i || e ? "vertical" : "horizontal",
|
|
10
8
|
secondaryAlign: "center",
|
|
11
9
|
primaryAlign: "center",
|
|
12
10
|
children: [
|
|
13
|
-
/* @__PURE__ */ r(
|
|
11
|
+
/* @__PURE__ */ r(m, { className: l.disclaimer, level: c, bold: a, children: o }),
|
|
14
12
|
e && /* @__PURE__ */ r(t, { level: 2, children: e }),
|
|
15
|
-
i && /* @__PURE__ */ r("div", { className:
|
|
13
|
+
i && /* @__PURE__ */ r("div", { className: l.iconArea, children: /* @__PURE__ */ r(d, { className: l.Icon, icon: i, iconSize: "large" }) })
|
|
16
14
|
]
|
|
17
15
|
}
|
|
18
16
|
);
|
|
19
17
|
export {
|
|
20
|
-
|
|
18
|
+
f as Disclaimer
|
|
21
19
|
};
|
|
@@ -1,249 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Aligns the Hero contents.
|
|
10
|
-
*
|
|
11
|
-
* Defaults to **'centered'**.
|
|
12
|
-
*/
|
|
13
|
-
alignment: e.oneOf(["center-bottom", "center-top", "centered", "left-bottom", "left-center", "left-top", "right-bottom", "right-center", "right-top"]),
|
|
14
|
-
/**
|
|
15
|
-
* Content to be rendered inside the Hero.
|
|
16
|
-
*
|
|
17
|
-
* Defaults to **null**.
|
|
18
|
-
*/
|
|
19
|
-
children: e.node,
|
|
20
|
-
/**
|
|
21
|
-
* The css class name to be passed through to the component markup.
|
|
22
|
-
*
|
|
23
|
-
* Defaults to **undefined**.
|
|
24
|
-
*/
|
|
25
|
-
className: e.string,
|
|
26
|
-
/**
|
|
27
|
-
* Image Url for Hero background image
|
|
28
|
-
*
|
|
29
|
-
* Defaults to **null**.
|
|
30
|
-
*/
|
|
31
|
-
imageUrl: e.string,
|
|
32
|
-
/**
|
|
33
|
-
* Adds an overlay over the Hero. Use `overlayProps` to send props to the Hero Overlay component. See Hero Overlay for prop details.
|
|
34
|
-
*
|
|
35
|
-
* Defaults to **false**.
|
|
36
|
-
*/
|
|
37
|
-
overlay: e.bool,
|
|
38
|
-
/**
|
|
39
|
-
* Props sent to Hero Overlay. See Hero Overlay for prop details.
|
|
40
|
-
*
|
|
41
|
-
* Defaults to **{}**.
|
|
42
|
-
*/
|
|
43
|
-
overlayProps: e.object,
|
|
44
|
-
/**
|
|
45
|
-
* Override the default background color. Can only be used if background image is omitted.
|
|
46
|
-
*
|
|
47
|
-
* Defaults to **empty string**.
|
|
48
|
-
*/
|
|
49
|
-
themeColor: e.oneOf(["", "surface", "primary", "secondary"])
|
|
50
|
-
}, I = {
|
|
51
|
-
alignment: "centered",
|
|
52
|
-
children: null,
|
|
53
|
-
className: void 0,
|
|
54
|
-
imageUrl: null,
|
|
55
|
-
overlay: !1,
|
|
56
|
-
overlayProps: {},
|
|
57
|
-
themeColor: ""
|
|
58
|
-
}, j = {
|
|
59
|
-
/**
|
|
60
|
-
* Content to be rendered inside the Hero Content. Will take precedence over props.
|
|
61
|
-
*
|
|
62
|
-
* Defaults to **null**.
|
|
63
|
-
*/
|
|
64
|
-
children: e.node,
|
|
65
|
-
/**
|
|
66
|
-
* The css class name to be passed through to the component markup.
|
|
67
|
-
*
|
|
68
|
-
* Defaults to **undefined**.
|
|
69
|
-
*/
|
|
70
|
-
className: e.string,
|
|
71
|
-
/**
|
|
72
|
-
* Button to be rendered inside the Hero Content.
|
|
73
|
-
*
|
|
74
|
-
* Defaults to **null**.
|
|
75
|
-
*/
|
|
76
|
-
heroBtn: e.node,
|
|
77
|
-
/**
|
|
78
|
-
* Logo to be rendered inside the Hero Content.
|
|
79
|
-
*
|
|
80
|
-
* Defaults to **null**.
|
|
81
|
-
*/
|
|
82
|
-
logo: e.node,
|
|
83
|
-
/**
|
|
84
|
-
* Overline text for the Hero Content. Cannot be used with children.
|
|
85
|
-
*
|
|
86
|
-
* Defaults to **'Overline'**.
|
|
87
|
-
*/
|
|
88
|
-
overline: e.string,
|
|
89
|
-
/**
|
|
90
|
-
* Adds a padding style to the Hero. Must be a valid CSS padding declaration. i.e. 38px 30px
|
|
91
|
-
*
|
|
92
|
-
* Defaults to **null**.
|
|
93
|
-
*/
|
|
94
|
-
padding: e.string,
|
|
95
|
-
/**
|
|
96
|
-
* Passthrough style object.
|
|
97
|
-
*
|
|
98
|
-
* Defaults to **null**.
|
|
99
|
-
*/
|
|
100
|
-
style: e.object,
|
|
101
|
-
/**
|
|
102
|
-
* Subtitle text for the Hero Content. Cannot be used with children.
|
|
103
|
-
*
|
|
104
|
-
* Defaults to **'Subtitle'**.
|
|
105
|
-
*/
|
|
106
|
-
subtitle: e.string,
|
|
107
|
-
/**
|
|
108
|
-
* Set the color of the text. Make sure to check for accessibility compliance.
|
|
109
|
-
*
|
|
110
|
-
* Defaults to **'on-unknown-black-active'**.
|
|
111
|
-
*/
|
|
112
|
-
textColor: e.oneOf(["on-unknown-black-active", "on-unknown-white-active", "primary", "secondary", "on-primary", "on-secondary"]),
|
|
113
|
-
/**
|
|
114
|
-
* Title text for the Hero Content. Cannot be used with children.
|
|
115
|
-
*
|
|
116
|
-
* Defaults to **'Title'**.
|
|
117
|
-
*/
|
|
118
|
-
title: e.string
|
|
119
|
-
}, B = {
|
|
120
|
-
children: null,
|
|
121
|
-
className: void 0,
|
|
122
|
-
heroBtn: null,
|
|
123
|
-
logo: null,
|
|
124
|
-
overline: "Overline",
|
|
125
|
-
padding: null,
|
|
126
|
-
style: null,
|
|
127
|
-
subtitle: "Subtitle",
|
|
128
|
-
textColor: "on-unknown-black-active",
|
|
129
|
-
title: "Title"
|
|
130
|
-
}, D = {
|
|
131
|
-
/**
|
|
132
|
-
* Content to be rendered inside the Hero Overlay. Useful for angles or other non semantic elements displayed in the Hero.
|
|
133
|
-
*
|
|
134
|
-
* Defaults to **null**.
|
|
135
|
-
*/
|
|
136
|
-
children: e.node,
|
|
137
|
-
/**
|
|
138
|
-
* The css class name to be passed through to the component markup.
|
|
139
|
-
*
|
|
140
|
-
* Defaults to **undefined**.
|
|
141
|
-
*/
|
|
142
|
-
className: e.string,
|
|
143
|
-
/**
|
|
144
|
-
* Overlay theme color.
|
|
145
|
-
*
|
|
146
|
-
* Defaults to **'dark'**.
|
|
147
|
-
*/
|
|
148
|
-
overlayThemeColor: e.oneOf(["dark", "light", "surface", "linear-gradient-white-to-bottom", "linear-gradient-white-to-top", "linear-gradient-black-to-bottom", "linear-gradient-black-to-top", "linear-gradient-primary-dark-to-bottom", "linear-gradient-primary-dark-to-top", "linear-gradient-primary-darker-to-bottom", "linear-gradient-primary-darker-to-top", "linear-gradient-primary-to-bottom", "linear-gradient-primary-to-top", "linear-gradient-secondary-dark-to-bottom", "linear-gradient-secondary-dark-to-top", "linear-gradient-secondary-darker-to-bottom", "linear-gradient-secondary-darker-to-top", "linear-gradient-secondary-to-bottom", "linear-gradient-secondary-to-top"]),
|
|
149
|
-
/**
|
|
150
|
-
* Position of the Overlay. Use `overlayThemeColor` to change the theme color. If set to leading or trailing be sure to set `alignment` on Hero accordingly to have Hero Content over the overlay.
|
|
151
|
-
*
|
|
152
|
-
* Defaults to **'full'**.
|
|
153
|
-
*/
|
|
154
|
-
position: e.oneOf(["full", "leading", "trailing"])
|
|
155
|
-
}, R = {
|
|
156
|
-
children: null,
|
|
157
|
-
className: void 0,
|
|
158
|
-
overlayThemeColor: "dark",
|
|
159
|
-
position: "full"
|
|
160
|
-
}, f = /* @__PURE__ */ H((s, i) => {
|
|
161
|
-
const {
|
|
162
|
-
children: r,
|
|
163
|
-
className: c,
|
|
164
|
-
position: o,
|
|
165
|
-
overlayThemeColor: t,
|
|
166
|
-
...n
|
|
167
|
-
} = s, a = T();
|
|
168
|
-
O(i, () => a.current, []);
|
|
169
|
-
const m = p(() => o !== "none" && P("lmnt", "lmnt-hero-overlay ", !t.includes("gradient") && t !== "surface" && `lmnt-hero-overlay__${t}`, t.includes("gradient") && t !== "surface" && `lmnt-theme--bg-${t}`, t === "surface" && "lmnt-theme-surface-bg", `lmnt-hero-overlay__${o}`, c), [t, o, c]);
|
|
170
|
-
return /* @__PURE__ */ l.createElement("div", C({
|
|
171
|
-
className: m
|
|
172
|
-
}, n), r && r);
|
|
173
|
-
});
|
|
174
|
-
f.displayName = "HeroOverlay";
|
|
175
|
-
f.propTypes = D;
|
|
176
|
-
f.defaultProps = R;
|
|
177
|
-
const h = /* @__PURE__ */ H((s, i) => {
|
|
178
|
-
const {
|
|
179
|
-
alignment: r,
|
|
180
|
-
children: c,
|
|
181
|
-
className: o,
|
|
182
|
-
imageUrl: t,
|
|
183
|
-
style: n,
|
|
184
|
-
themeColor: a,
|
|
185
|
-
overlay: m,
|
|
186
|
-
overlayProps: y,
|
|
187
|
-
...g
|
|
188
|
-
} = s, d = T();
|
|
189
|
-
O(i, () => d.current, []);
|
|
190
|
-
const b = p(() => P("lmnt lmnt-hero", a && `lmnt-theme-${a}-bg`, `lmnt-hero__align-${r}`, o), [r, o, a]), u = p(() => t ? {
|
|
191
|
-
...n,
|
|
192
|
-
backgroundImage: `url(${t})`
|
|
193
|
-
} : n, [t, n]);
|
|
194
|
-
return /* @__PURE__ */ l.createElement("div", C({
|
|
195
|
-
ref: d,
|
|
196
|
-
className: b,
|
|
197
|
-
style: u
|
|
198
|
-
}, g), m && /* @__PURE__ */ l.createElement(f, y), c);
|
|
199
|
-
});
|
|
200
|
-
h.displayName = "Hero";
|
|
201
|
-
h.propTypes = $;
|
|
202
|
-
h.defaultProps = I;
|
|
203
|
-
const v = /* @__PURE__ */ H((s, i) => {
|
|
204
|
-
const {
|
|
205
|
-
children: r,
|
|
206
|
-
className: c,
|
|
207
|
-
heroBtn: o,
|
|
208
|
-
logo: t,
|
|
209
|
-
overline: n,
|
|
210
|
-
padding: a,
|
|
211
|
-
title: m,
|
|
212
|
-
style: y,
|
|
213
|
-
subtitle: g,
|
|
214
|
-
textColor: d,
|
|
215
|
-
...b
|
|
216
|
-
} = s, u = T(), _ = p(() => P("lmnt lmnt-hero-content", `lmnt-theme-${d}`, c), [c, d]);
|
|
217
|
-
O(i, () => u.current, []);
|
|
218
|
-
const w = p(() => ({
|
|
219
|
-
...y,
|
|
220
|
-
padding: a
|
|
221
|
-
}), [a, y]);
|
|
222
|
-
return /* @__PURE__ */ l.createElement("div", C({
|
|
223
|
-
ref: u,
|
|
224
|
-
className: _
|
|
225
|
-
}, b, {
|
|
226
|
-
style: w
|
|
227
|
-
}), r || /* @__PURE__ */ l.createElement(E, {
|
|
228
|
-
gap: "dense",
|
|
229
|
-
direction: "vertical",
|
|
230
|
-
secondaryAlign: "center"
|
|
231
|
-
}, t && t, n && /* @__PURE__ */ l.createElement(N, {
|
|
232
|
-
type: "overline"
|
|
233
|
-
}, n), m && /* @__PURE__ */ l.createElement(N, {
|
|
234
|
-
type: "display2"
|
|
235
|
-
}, m), g && /* @__PURE__ */ l.createElement(N, {
|
|
236
|
-
type: "display6"
|
|
237
|
-
}, g), o && o));
|
|
238
|
-
});
|
|
239
|
-
v.displayName = "HeroContent";
|
|
240
|
-
v.propTypes = j;
|
|
241
|
-
v.defaultProps = B;
|
|
242
|
-
const V = ({
|
|
243
|
-
title: s = "",
|
|
244
|
-
subtitle: i = "",
|
|
245
|
-
icon: r = "dashbord"
|
|
246
|
-
}) => /* @__PURE__ */ k(h, { style: { width: "100%", height: "25vh" }, children: /* @__PURE__ */ k(v, { logo: /* @__PURE__ */ k(x, { iconSize: "large", icon: r }), overline: "", subtitle: i, title: s }) });
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Hero as i, HeroContent as n, Icon as h } from "@element/react-components";
|
|
3
|
+
const c = ({
|
|
4
|
+
title: e = "",
|
|
5
|
+
subtitle: r = "",
|
|
6
|
+
icon: t = "dashbord"
|
|
7
|
+
}) => /* @__PURE__ */ o(i, { style: { width: "100%", height: "25vh" }, children: /* @__PURE__ */ o(n, { logo: /* @__PURE__ */ o(h, { iconSize: "large", icon: t }), overline: "", subtitle: r, title: e }) });
|
|
247
8
|
export {
|
|
248
|
-
|
|
9
|
+
c as EmptyView
|
|
249
10
|
};
|