@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,317 +1,63 @@
1
- import { jsx as p, Fragment as $, jsxs as G } from "react/jsx-runtime";
2
- import b, { forwardRef as P, useMemo as f, useRef as H, useImperativeHandle as O, useContext as B, createContext as E } from "react";
3
- import { EmptyView as D } from "../EmptyView/EmptyView.js";
4
- import { ListArea as z } from "../ListArea/ListArea.js";
5
- import { VerticalDivider as M } from "../VerticalDivider/VerticalDivider.js";
6
- import { s as S } from "../../baseView.module-DXWalo9p.js";
1
+ import { jsx as i, Fragment as x, jsxs as e } from "react/jsx-runtime";
2
+ import { useMemo as n } from "react";
3
+ import { EmptyView as k } from "../EmptyView/EmptyView.js";
4
+ import { ListArea as A } from "../ListArea/ListArea.js";
5
+ import { VerticalDivider as H } from "../VerticalDivider/VerticalDivider.js";
6
+ import { s as L } from "../../baseView.module-DXWalo9p.js";
7
7
  import { u as V } from "../../useBreakpoint-DyAmuka7.js";
8
- import { BasicHeading as T } from "../BasicHeading/BasicHeading.js";
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
- /**
13
- * @deprecated _Use `variant`='airy' instead._
14
- *
15
- * Applies extra padding to each column.
16
- *
17
- * Defaults to **undefined**.
18
- */
19
- airy: j(e.bool, "Grid", 'Use `variant`="airy" instead.'),
20
- /**
21
- * Accepts GridCol or GridRow.
22
- *
23
- * Defaults to **null**.
24
- */
25
- children: e.node.isRequired,
26
- /**
27
- * The css class name to be passed through to the component markup.
28
- *
29
- * Defaults to **undefined**.
30
- */
31
- className: e.string,
32
- /**
33
- * Sets the column gap for the grid.
34
- *
35
- * Defaults to **'16px'**.
36
- */
37
- columnGap: e.oneOfType([e.string, e.number]),
38
- /**
39
- * Applies 100% height to the grid and direct children rows. Useful when creating a page layout. Be aware all direct children rows will have a 100% height.
40
- *
41
- * Defaults to **null**.
42
- */
43
- fullHeight: e.bool,
44
- /**
45
- * Applies 100% width to the grid and direct children rows. Useful to maintain full width in a flex container.
46
- *
47
- * Defaults to **null**.
48
- */
49
- fullWidth: e.bool,
50
- /**
51
- * Alignment of entire grid: left and right.
52
- *
53
- * Defaults to **'center'**.
54
- */
55
- gridAlign: e.oneOf(["center", "left", "right"]),
56
- /**
57
- * Sets the row gap for the grid.
58
- *
59
- * Defaults to **'16px'**.
60
- */
61
- rowGap: e.oneOfType([e.string, e.number]),
62
- /**
63
- * Styles for the grid.
64
- *
65
- * Defaults to **undefined**.
66
- */
67
- style: e.object,
68
- /**
69
- * If true the grid will have a max width according to your theme's breakpoints.
70
- *
71
- * Defaults to **false**.
72
- */
73
- useMaxWidth: e.bool,
74
- /**
75
- * Select `airy` or `standard` padding.
76
- *
77
- * Defaults to **'standard'**.
78
- */
79
- variant: e.oneOf(["standard", "airy", "none"])
80
- }, L = {
81
- airy: void 0,
82
- children: null,
83
- className: void 0,
84
- columnGap: "16px",
85
- fullHeight: null,
86
- fullWidth: null,
87
- gridAlign: "center",
88
- rowGap: "16px",
89
- style: void 0,
90
- useMaxWidth: !1,
91
- variant: "standard"
92
- }, q = {
93
- /**
94
- * Alignment of cell within the row: top, middle, bottom. If omitted the col will stretch to the height of the row.
95
- *
96
- * Defaults to **undefined**.
97
- */
98
- align: e.oneOf(["", "top", "middle", "bottom"]),
99
- /**
100
- * Content to be rendered inside the GridCol. Accepts any valid markup.
101
- *
102
- * Defaults to **null**.
103
- */
104
- children: e.node,
105
- /**
106
- * The css class name to be passed through to the component markup.
107
- *
108
- * Defaults to **undefined**.
109
- */
110
- className: e.string,
111
- /**
112
- * Specifies the number of columns the cell spans.
113
- *
114
- * Defaults to **null**.
115
- */
116
- desktopCol: e.number,
117
- /**
118
- * Specifies a grid item's start position within the grid column by contributing a line, a span, or nothing (automatic) to its grid placement. Set to any valid `grid-column-start`.
119
- *
120
- * Defaults to **null**.
121
- */
122
- gridColStart: e.oneOfType([e.string, e.number]),
123
- /**
124
- * Horizontal alignment of the cell contents of cell content: top, middle, bottom.
125
- *
126
- * Defaults to **'left'**.
127
- */
128
- horizontalAlign: e.oneOf(["left", "center", "right"]),
129
- /**
130
- * Specifies the order of the cell.
131
- *
132
- * Defaults to **null**.
133
- */
134
- order: e.number,
135
- /**
136
- * Specifies the number of columns the cell spans on a phone.
137
- *
138
- * Defaults to **null**.
139
- */
140
- phoneCol: e.number,
141
- /**
142
- * Specifies the number of columns the cell spans on a tablet.
143
- *
144
- * Defaults to **null**.
145
- */
146
- tabletCol: e.number,
147
- /**
148
- * Vertical alignment of cell content: top, middle, bottom.
149
- *
150
- * Defaults to **'top'**.
151
- */
152
- verticalAlign: e.oneOf(["top", "middle", "bottom"])
153
- }, F = {
154
- align: void 0,
155
- children: null,
156
- className: void 0,
157
- desktopCol: null,
158
- gridColStart: null,
159
- horizontalAlign: "left",
160
- order: null,
161
- phoneCol: null,
162
- tabletCol: null,
163
- verticalAlign: "top"
164
- }, U = {
165
- /**
166
- * Content to be rendered inside the GridRow. Accepts any valid markup.
167
- *
168
- * Defaults to **null**.
169
- */
170
- children: e.node.isRequired,
171
- /**
172
- * The css class name to be passed through to the component markup.
173
- *
174
- * Defaults to **undefined**.
175
- */
176
- className: e.string
177
- }, J = {
178
- children: null,
179
- className: void 0
180
- }, w = /* @__PURE__ */ P((c, u) => {
181
- const {
182
- airy: o,
183
- children: m,
184
- className: d,
185
- columnGap: n,
186
- fullHeight: t,
187
- fullWidth: a,
188
- gridAlign: s,
189
- rowGap: i,
190
- style: h,
191
- useMaxWidth: g,
192
- variant: r,
193
- ...l
194
- } = c, y = o ? "airy" : r, _ = f(() => ({
195
- fullHeight: t,
196
- rowGap: i,
197
- columnGap: n
198
- }), [n, t, i]), v = H();
199
- O(u, () => v.current, []);
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
- return /* @__PURE__ */ b.createElement(R.Provider, {
202
- value: _
203
- }, /* @__PURE__ */ b.createElement("div", A({
204
- ref: v,
205
- className: W
206
- }, l), m));
207
- });
208
- w.displayName = "Grid";
209
- w.propTypes = I;
210
- w.defaultProps = L;
211
- const C = /* @__PURE__ */ P((c, u) => {
212
- const {
213
- align: o,
214
- children: m,
215
- className: d,
216
- columns: n,
217
- desktopCol: t,
218
- gridColStart: a,
219
- horizontalAlign: s,
220
- order: i,
221
- phoneCol: h,
222
- style: g,
223
- tabletCol: r,
224
- verticalAlign: l,
225
- ...y
226
- } = c, _ = f(() => ({
227
- ...g,
228
- gridColumnStart: a
229
- }), [a, g]);
230
- return /* @__PURE__ */ b.createElement("div", A({
231
- ref: u,
232
- style: _,
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
- }, y), m);
235
- });
236
- C.displayName = "GridCol";
237
- C.propTypes = q;
238
- C.defaultProps = F;
239
- const N = /* @__PURE__ */ P((c, u) => {
240
- const {
241
- children: o,
242
- className: m,
243
- style: d,
244
- ...n
245
- } = c, {
246
- fullHeight: t,
247
- rowGap: a,
248
- columnGap: s
249
- } = B(R), i = f(() => ({
250
- ...d,
251
- height: t ? "100%" : "",
252
- rowGap: a,
253
- columnGap: s
254
- }), [d, t, a, s]);
255
- return /* @__PURE__ */ b.createElement("div", A({
256
- ref: u,
257
- className: x("lmnt", "mdc-layout-grid__inner", "lmnt-layout-grid__inner", m),
258
- style: i
259
- }, n), o);
260
- });
261
- N.displayName = "GridRow";
262
- N.propTypes = U;
263
- N.defaultProps = J;
264
- const ie = ({
8
+ import { Grid as W, GridRow as j, GridCol as m, Group as u } from "@element/react-components";
9
+ import { BasicHeading as a } from "../BasicHeading/BasicHeading.js";
10
+ const z = ({
265
11
  action: c,
266
- heading: u,
12
+ heading: d,
267
13
  elements: o,
268
- emptyText: m,
269
- hasSearch: d = !0,
270
- isSorted: n = !0,
271
- className: t,
272
- withAvatar: a = !1,
273
- listMaxHeight: s = "calc(100vh - 200px)",
274
- pathname: i,
275
- routerLinkElement: h,
276
- searchPlaceholder: g
14
+ emptyText: s,
15
+ hasSearch: h = !0,
16
+ isSorted: p = !0,
17
+ className: f,
18
+ withAvatar: v = !1,
19
+ listMaxHeight: g = "calc(100vh - 200px)",
20
+ pathname: l,
21
+ routerLinkElement: C,
22
+ searchPlaceholder: B
277
23
  }) => {
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]);
279
- return /* @__PURE__ */ p(w, { className: t ?? "", fullHeight: !0, fullWidth: !0, columnGap: 0, children: /* @__PURE__ */ G(N, { children: [
280
- _ && /* @__PURE__ */ G(C, { desktopCol: 4, tabletCol: 12, phoneCol: 12, children: [
281
- /* @__PURE__ */ G(k, { direction: "vertical", fullWidth: !0, children: [
282
- u && /* @__PURE__ */ p(T, { heading: u, level: 4, marginBottom: 0, children: c }),
283
- /* @__PURE__ */ p(
284
- z,
24
+ const { isLg: r } = V(), t = n(() => o.find((w) => w.route === l), [l, o]), G = n(() => t?.component ?? (r ? /* @__PURE__ */ i(k, { subtitle: s }) : /* @__PURE__ */ i(x, {})), [t, r, s]), b = n(() => r ? !0 : !t, [t, r]);
25
+ return /* @__PURE__ */ i(W, { className: f ?? "", fullHeight: !0, fullWidth: !0, columnGap: 0, children: /* @__PURE__ */ e(j, { children: [
26
+ b && /* @__PURE__ */ e(m, { desktopCol: 4, tabletCol: 12, phoneCol: 12, children: [
27
+ /* @__PURE__ */ e(u, { direction: "vertical", fullWidth: !0, children: [
28
+ d && /* @__PURE__ */ i(a, { heading: d, level: 4, marginBottom: 0, children: c }),
29
+ /* @__PURE__ */ i(
30
+ A,
285
31
  {
286
32
  elements: o,
287
- hasSearch: d,
288
- maxHeight: s,
289
- isSorted: n,
290
- pathname: i,
291
- routerLinkElement: h,
292
- searchPlaceholder: g
33
+ hasSearch: h,
34
+ maxHeight: g,
35
+ isSorted: p,
36
+ pathname: l,
37
+ routerLinkElement: C,
38
+ searchPlaceholder: B
293
39
  }
294
40
  )
295
41
  ] }),
296
- r && /* @__PURE__ */ p(M, { className: S.divider, height: "100%" })
42
+ r && /* @__PURE__ */ i(H, { className: L.divider, height: "100%" })
297
43
  ] }),
298
- /* @__PURE__ */ p(C, { desktopCol: 8, tabletCol: 12, phoneCol: 12, children: /* @__PURE__ */ G(k, { direction: "vertical", fullWidth: !0, children: [
299
- /* @__PURE__ */ p(
300
- T,
44
+ /* @__PURE__ */ i(m, { desktopCol: 8, tabletCol: 12, phoneCol: 12, children: /* @__PURE__ */ e(u, { direction: "vertical", fullWidth: !0, children: [
45
+ /* @__PURE__ */ i(
46
+ a,
301
47
  {
302
- heading: l?.detailTitle ?? l?.title ?? "",
48
+ heading: t?.detailTitle ?? t?.title ?? "",
303
49
  level: 4,
304
- icon: l?.hideIconInDetail === !0 ? void 0 : l?.icon,
50
+ icon: t?.hideIconInDetail === !0 ? void 0 : t?.icon,
305
51
  marginBottom: 0,
306
- invisibleButton: l?.detailAction === void 0,
307
- withAvatar: a,
308
- children: l?.detailAction ?? c
52
+ invisibleButton: t?.detailAction === void 0,
53
+ withAvatar: v,
54
+ children: t?.detailAction ?? c
309
55
  }
310
56
  ),
311
- y
57
+ G
312
58
  ] }) })
313
59
  ] }) });
314
60
  };
315
61
  export {
316
- ie as BaseView
62
+ z as BaseView
317
63
  };
@@ -1,32 +1,31 @@
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";
1
+ import { jsxs as r, jsx as a } from "react/jsx-runtime";
2
+ import { TypoDisplay as v, TypoBody as N, Icon as I } from "@element/react-components";
3
+ import { u as B } from "../../useBreakpoint-DyAmuka7.js";
4
+ import { Iconify as C } from "../Iconify/Iconify.js";
4
5
  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,
6
+ import { AvailableCustomIcons as $ } from "../../enums/AvailableCustomIcons.js";
7
+ const x = ({ icon: i }) => i ? typeof i != "string" ? /* @__PURE__ */ a("div", { className: e.iconContainer, children: i }) : i in $ ? /* @__PURE__ */ a(
8
+ C,
10
9
  {
11
- icon: a,
10
+ icon: i,
12
11
  className: e.leadingIcon,
13
12
  iconSize: "large",
14
13
  iconType: "filled"
15
14
  }
16
- ) : /* @__PURE__ */ i($, { iconSize: "large", iconType: "filled", icon: a, className: e.leadingIcon }) : null, S = ({
17
- children: a,
15
+ ) : /* @__PURE__ */ a(I, { iconSize: "large", iconType: "filled", icon: i, className: e.leadingIcon }) : null, L = ({
16
+ children: i,
18
17
  marginBottom: t,
19
- heading: c,
20
- icon: d,
18
+ heading: d,
19
+ icon: c,
21
20
  className: m,
22
- subHeading: s,
21
+ subHeading: n,
23
22
  subHeadingLevel: p = 2,
24
23
  invisibleButton: f = !1,
25
- level: n = 4,
24
+ level: s = 4,
26
25
  fontWeight: o = 400,
27
26
  withAvatar: y = !1
28
27
  }) => {
29
- const { isLg: l } = v(), g = l ? n : n + 1, h = o === "bold" ? 500 : o, u = () => {
28
+ const { isLg: l } = B(), g = l ? s : s + 1, h = o === "bold" ? 500 : o, u = () => {
30
29
  if (t !== void 0)
31
30
  return typeof t == "number" ? `${t}px` : "2rem";
32
31
  };
@@ -38,27 +37,27 @@ const b = ({ icon: a }) => a ? typeof a != "string" ? /* @__PURE__ */ i("div", {
38
37
  "data-testid": "HeaderContainer",
39
38
  children: [
40
39
  /* @__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,
40
+ /* @__PURE__ */ a(x, { icon: c }),
41
+ /* @__PURE__ */ r("div", { className: n ? e.headingContainer : "", children: [
42
+ /* @__PURE__ */ a(
43
+ v,
45
44
  {
46
45
  level: g,
47
46
  "data-testid": "Header",
48
47
  className: m ?? "",
49
48
  style: { fontWeight: h },
50
- children: c
49
+ children: d
51
50
  }
52
51
  ),
53
- /* @__PURE__ */ i(C, { level: p, children: s })
52
+ /* @__PURE__ */ a(N, { level: p, children: n })
54
53
  ] })
55
54
  ] }),
56
- /* @__PURE__ */ i(
55
+ /* @__PURE__ */ a(
57
56
  "div",
58
57
  {
59
58
  className: `${e.actionButtonContainer} ${f && e.invisible}`,
60
59
  "data-testid": "RightPart",
61
- children: a
60
+ children: i
62
61
  }
63
62
  )
64
63
  ]
@@ -66,5 +65,5 @@ const b = ({ icon: a }) => a ? typeof a != "string" ? /* @__PURE__ */ i("div", {
66
65
  );
67
66
  };
68
67
  export {
69
- S as BasicHeading
68
+ L as BasicHeading
70
69
  };
@@ -1,9 +1,9 @@
1
1
  import { jsx as o, Fragment as c } from "react/jsx-runtime";
2
+ import { Button as g } from "@element/react-components";
2
3
  import { BasicHeading as a } from "./BasicHeading.js";
3
4
  import { r as i, s as n } from "../../react.esm-BeDwcQWb.js";
4
- import { d as g, t as s, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
5
- import { B as h } from "../../index.es-CQ3ep412.js";
6
- g("BasicHeading-Test", () => {
5
+ import { d as h, t as s, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
6
+ h("BasicHeading-Test", () => {
7
7
  s("render small container without content", () => {
8
8
  i(/* @__PURE__ */ o(a, { heading: "Test" }));
9
9
  const t = n.getByTestId("HeaderContainer");
@@ -14,7 +14,7 @@ g("BasicHeading-Test", () => {
14
14
  e(d).toBeDefined();
15
15
  }), s("render large container with children", () => {
16
16
  i(
17
- /* @__PURE__ */ o(a, { heading: "Test", marginBottom: "large", children: /* @__PURE__ */ o(h, { children: "Extracontent" }) })
17
+ /* @__PURE__ */ o(a, { heading: "Test", marginBottom: "large", children: /* @__PURE__ */ o(g, { children: "Extracontent" }) })
18
18
  );
19
19
  const t = n.getByTestId("HeaderContainer");
20
20
  e(t).toBeDefined();
@@ -1,8 +1,8 @@
1
1
  import { jsxs as f, jsx as i } from "react/jsx-runtime";
2
- import { useState as B, useEffect as C, useMemo as A } from "react";
2
+ import { TypoSubtitle as B, TypoDisplay as C } from "@element/react-components";
3
+ import { useState as A, useEffect as D, useMemo as E } from "react";
3
4
  import { s as e } from "../../BlockView.module-8kbPxxc4.js";
4
- import { getBlockNumberByDto as D } from "../../services/BlockService.js";
5
- import { a as E, c as S } from "../../index.es-Cm4X20_S.js";
5
+ import { getBlockNumberByDto as S } from "../../services/BlockService.js";
6
6
  const R = ({
7
7
  rows: s,
8
8
  columns: t,
@@ -17,28 +17,28 @@ const R = ({
17
17
  blockViewTitle: v,
18
18
  blockLabel: $
19
19
  }) => {
20
- const [p, h] = B(0);
21
- C(() => {
20
+ const [p, h] = A(0);
21
+ D(() => {
22
22
  if (!c)
23
23
  return;
24
- const o = D(c, t);
24
+ const o = S(c, t);
25
25
  h(o);
26
26
  }, [c, t]);
27
- const g = A(() => s * t, [s, t]), w = (o) => {
27
+ const g = E(() => s * t, [s, t]), w = (o) => {
28
28
  u && u(o, c ?? void 0);
29
- }, x = ({ row: o, column: l }) => b.length === 0 ? !0 : b.some((a) => a.position?.row === o && a.position?.column === l);
29
+ }, x = ({ row: o, column: l }) => b.length === 0 ? !0 : b.some((m) => m.position?.row === o && m.position?.column === l);
30
30
  return /* @__PURE__ */ f("div", { className: e.grid, children: [
31
- !n && /* @__PURE__ */ i(E, { level: 1, bold: !0, className: e.black, children: v }),
32
- /* @__PURE__ */ i("div", { className: e.blockLayout, style: { width: `${d}rem`, height: `${d}rem` }, children: Array.from({ length: s }).map((o, l) => /* @__PURE__ */ i("div", { className: e.blockRow, children: Array.from({ length: t }).map((a, m) => {
33
- const r = t * l + m + 1;
31
+ !n && /* @__PURE__ */ i(B, { level: 1, bold: !0, className: e.black, children: v }),
32
+ /* @__PURE__ */ i("div", { className: e.blockLayout, style: { width: `${d}rem`, height: `${d}rem` }, children: Array.from({ length: s }).map((o, l) => /* @__PURE__ */ i("div", { className: e.blockRow, children: Array.from({ length: t }).map((m, a) => {
33
+ const r = t * l + a + 1;
34
34
  return /* @__PURE__ */ i(
35
35
  "div",
36
36
  {
37
37
  "data-testid": "blockViewBlock",
38
- className: `${e.block} ${p === r ? e.active : ""} ${x({ row: l + 1, column: m + 1 }) ? "" : e.empty} ${k.includes(r) ? e.error : ""}`,
38
+ className: `${e.block} ${p === r ? e.active : ""} ${x({ row: l + 1, column: a + 1 }) ? "" : e.empty} ${k.includes(r) ? e.error : ""}`,
39
39
  id: `block${r}`,
40
40
  onClick: N ? () => {
41
- h(r), w({ row: l + 1, column: m + 1 });
41
+ h(r), w({ row: l + 1, column: a + 1 });
42
42
  } : void 0,
43
43
  children: y && /* @__PURE__ */ i(
44
44
  "div",
@@ -51,7 +51,7 @@ const R = ({
51
51
  r
52
52
  );
53
53
  }) }, l)) }),
54
- !n && /* @__PURE__ */ f(S, { themeColor: "primary", level: 6, children: [
54
+ !n && /* @__PURE__ */ f(C, { themeColor: "primary", level: 6, children: [
55
55
  g,
56
56
  " ",
57
57
  $