@hortiview/shared-components 0.0.4723 → 0.0.4730

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.
Files changed (58) hide show
  1. package/dist/_getTag-DyrzUAbj.js +494 -0
  2. package/dist/components/BaseView/BaseView.js +43 -297
  3. package/dist/components/BasicHeading/BasicHeading.js +24 -25
  4. package/dist/components/BasicHeading/BasicHeading.test.js +4 -4
  5. package/dist/components/BlockView/BlockView.js +14 -14
  6. package/dist/components/DeleteModal/DeleteModal.js +49 -4687
  7. package/dist/components/Disclaimer/Disclaimer.js +8 -10
  8. package/dist/components/EmptyView/EmptyView.js +8 -247
  9. package/dist/components/HashTabView/HashTabView.js +52 -1838
  10. package/dist/components/HeaderFilter/HeaderFilter.js +18 -7595
  11. package/dist/components/Iconify/Iconify.js +1 -1
  12. package/dist/components/ListArea/ListArea.js +316 -261
  13. package/dist/components/ListArea/ListArea.test.js +1 -1
  14. package/dist/components/ListArea/ListAreaService.js +34 -35
  15. package/dist/components/SearchBar/SearchBar.js +21 -2043
  16. package/package.json +1 -1
  17. package/dist/BlockView.module-ypKp14Lt.cjs +0 -1
  18. package/dist/HashTabView.module-B20c3S70.cjs +0 -1
  19. package/dist/HeaderFilter.module-DSCJz6-s.cjs +0 -1
  20. package/dist/_commonjsHelpers-DwTZ_eVU.cjs +0 -1
  21. package/dist/_getTag-DNUtgXkb.js +0 -136
  22. package/dist/_getTag-DSIzMwlx.cjs +0 -1
  23. package/dist/_stringToPath-B-GSTJ2e.cjs +0 -1
  24. package/dist/_stringToPath-BfzwTbL6.js +0 -54
  25. package/dist/baseView.module--VUY4h_X.cjs +0 -1
  26. package/dist/basicHeading.module-BbcVMp42.cjs +0 -1
  27. package/dist/component-DJvMx3oL.cjs +0 -148
  28. package/dist/component-Rx4bNsGO.js +0 -680
  29. package/dist/disclaimer.module-BfrBh-Rf.cjs +0 -1
  30. package/dist/index.es-80RhGkCD.cjs +0 -1
  31. package/dist/index.es-Ba9oZK_n.js +0 -769
  32. package/dist/index.es-C1ojb4Lq.js +0 -106
  33. package/dist/index.es-CEydmFbW.cjs +0 -23
  34. package/dist/index.es-CKdjg72r.cjs +0 -64
  35. package/dist/index.es-CNBieliG.js +0 -151
  36. package/dist/index.es-CPRODq-I.cjs +0 -127
  37. package/dist/index.es-CQ3ep412.js +0 -305
  38. package/dist/index.es-CSD_u-fK.cjs +0 -1
  39. package/dist/index.es-CVCp4d0C.js +0 -45
  40. package/dist/index.es-Cct4Uapb.js +0 -1776
  41. package/dist/index.es-Cj9DW-2T.js +0 -430
  42. package/dist/index.es-Cm4X20_S.js +0 -673
  43. package/dist/index.es-Cqx46S1V.cjs +0 -540
  44. package/dist/index.es-DiO-sp-V.cjs +0 -1
  45. package/dist/index.es-DyXn5zZ8.cjs +0 -1
  46. package/dist/index.es-InSNsV4f.js +0 -1067
  47. package/dist/index.es-J3ub0jmR.cjs +0 -1
  48. package/dist/index.es-L0ZCcbUf.js +0 -4939
  49. package/dist/index.es-gvcK6-6t.cjs +0 -1
  50. package/dist/listArea.module-CMO-yRdf.cjs +0 -1
  51. package/dist/magic-string.es-EQkD18No.cjs +0 -10
  52. package/dist/react.esm-CMNZXU0t.cjs +0 -93
  53. package/dist/searchBar.module-CFi8D8zn.cjs +0 -1
  54. package/dist/tslib.es6-CIXEwqhg.js +0 -72
  55. package/dist/tslib.es6-D1TYK0An.cjs +0 -1
  56. package/dist/useBreakpoint-PUopk3AO.cjs +0 -1
  57. package/dist/verticalDivider.module-Ciw9Fnt1.cjs +0 -1
  58. package/dist/vi.JYQecGiw-M1q0RI3O.cjs +0 -512
@@ -1,21 +1,19 @@
1
- import { jsxs as c, jsx as r } from "react/jsx-runtime";
2
- import { s as o } from "../../disclaimer.module-BZydt-Q_.js";
3
- import { G as m } from "../../index.es-CNBieliG.js";
4
- import { a as n, b as t } from "../../index.es-Cm4X20_S.js";
5
- import { I as p } from "../../index.es-InSNsV4f.js";
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(n, { className: o.disclaimer, level: s, bold: l, children: a }),
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: o.iconArea, children: /* @__PURE__ */ r(p, { className: o.Icon, icon: i, iconSize: "large" }) })
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
- v as Disclaimer
18
+ f as Disclaimer
21
19
  };
@@ -1,249 +1,10 @@
1
- import { jsx as k } from "react/jsx-runtime";
2
- import { P as e, c as P, _ as C } from "../../index.es-Cct4Uapb.js";
3
- import l, { forwardRef as H, useRef as T, useImperativeHandle as O, useMemo as p } from "react";
4
- import { G as E } from "../../index.es-CNBieliG.js";
5
- import { d as N } from "../../index.es-Cm4X20_S.js";
6
- import { I as x } from "../../index.es-InSNsV4f.js";
7
- const $ = {
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
- V as EmptyView
9
+ c as EmptyView
249
10
  };