@hortiview/shared-components 0.0.7239 → 0.0.7315
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/assets/formText.css +1 -1
- package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
- package/dist/components/BaseView/BaseView.test.js +1 -1
- package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
- package/dist/components/BlockView/BlockView.test.js +1 -1
- package/dist/components/ContextMenu/ContextMenu.test.js +1 -1
- package/dist/components/DeleteModal/DeleteModal.test.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.test.js +1 -1
- package/dist/components/EmptyView/EmptyView.test.js +1 -1
- package/dist/components/Filter/Filter.js +1 -1
- package/dist/components/Filter/Filter.test.js +1 -1
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +1 -1
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +1 -1
- package/dist/components/FormComponents/FormRadio/FormRadio.test.js +1 -1
- package/dist/components/FormComponents/FormSelect/FormSelect.test.js +2 -2
- package/dist/components/FormComponents/FormSlider/FormSlider.test.js +1 -1
- package/dist/components/FormComponents/FormText/FormText.d.ts +3 -0
- package/dist/components/FormComponents/FormText/FormText.js +119 -94
- package/dist/components/FormComponents/FormText/FormText.test.js +5 -4
- package/dist/components/GenericTable/GenericTable.test.js +1 -1
- package/dist/components/HashTabView/HashTabView.test.js +1 -1
- package/dist/components/HeaderFilter/HeaderFilter.test.js +1 -1
- package/dist/components/Iconify/Iconify.test.js +1 -1
- package/dist/components/InfoGroup/InfoGroup.test.js +1 -1
- package/dist/components/ListArea/ListArea.test.js +1 -1
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +1 -1
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.test.js +2 -2
- package/dist/components/Scrollbar/scrollbar.test.js +1 -1
- package/dist/components/SearchBar/SearchBar.test.js +1 -1
- package/dist/components/VerticalDivider/VerticalDivider.test.js +1 -1
- package/dist/formText.module-C0by6_DK.js +12 -0
- package/dist/hooks/useBreakpoints.test.js +1 -1
- package/dist/{index-Bh-nlz9b.js → index-BQnj-5Zt.js} +1 -1
- package/dist/{react.esm-BkSptXxk.js → react.esm-C3jDj5Fe.js} +1734 -1741
- package/package.json +1 -1
- package/dist/formText.module-Blt6Y-SR.js +0 -10
package/dist/assets/formText.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._formTextAreaHelperText_168p8_1{align-self:flex-end;color:var(--lmnt-helper-text-color);padding-right:1rem}._invalid_168p8_7._formTextAreaHelperText_168p8_1{color:var(--lmnt-theme-danger)}._required_168p8_11._formTextAreaHelperText_168p8_1{margin-top:-1.125rem}._invalid_168p8_7+*[class*=mdc-text-field-helper-line] *[class*=mdc-text-field-helper-text]{color:var(--lmnt-theme-danger)!important}._formTextArea_168p8_1,._characterCount_168p8_25{width:100%;display:flex;flex-flow:column}._withoutCharacterCount_168p8_31{width:100%}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, Fragment as m } from "react/jsx-runtime";
|
|
2
|
-
import { a as t, s } from "../../react.esm-
|
|
2
|
+
import { a as t, s } from "../../react.esm-C3jDj5Fe.js";
|
|
3
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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, Fragment as s } from "react/jsx-runtime";
|
|
2
|
-
import { a as r, s as e, f as p } from "../../react.esm-
|
|
2
|
+
import { a as r, s as e, f as p } from "../../react.esm-C3jDj5Fe.js";
|
|
3
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";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, Fragment as c } from "react/jsx-runtime";
|
|
2
2
|
import { Button as g } from "@element/react-components";
|
|
3
3
|
import { BasicHeading as a } from "./BasicHeading.js";
|
|
4
|
-
import { a as i, s as n } from "../../react.esm-
|
|
4
|
+
import { a as i, s as n } from "../../react.esm-C3jDj5Fe.js";
|
|
5
5
|
import { d as h, t as s, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
6
6
|
h("BasicHeading-Test", () => {
|
|
7
7
|
s("render small container without content", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { a as s, s as o, f as n } from "../../react.esm-
|
|
2
|
+
import { a as s, s as o, f as n } from "../../react.esm-C3jDj5Fe.js";
|
|
3
3
|
import { BlockView as i } from "./BlockView.js";
|
|
4
4
|
import { d as B, v as a, t as r, g as t } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
B("BlockView Test", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { a as d, s as n, f as o, w as a } from "../../react.esm-
|
|
2
|
+
import { a as d, s as n, f as o, w as a } from "../../react.esm-C3jDj5Fe.js";
|
|
3
3
|
import { ContextMenu as u } from "./ContextMenu.js";
|
|
4
4
|
import { v as m, d as g, t as B, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
const T = m.fn(), l = m.fn(), i = m.fn(), p = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { a as c, s as e } from "../../react.esm-
|
|
2
|
+
import { a as c, s as e } from "../../react.esm-C3jDj5Fe.js";
|
|
3
3
|
import { DeleteModal as b } from "./DeleteModal.js";
|
|
4
4
|
import { d as B, t as a, v as o, g as t } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
B("DeleteModal Test", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { a as r, s as t } from "../../react.esm-
|
|
2
|
+
import { a as r, s as t } from "../../react.esm-C3jDj5Fe.js";
|
|
3
3
|
import { Disclaimer as s } from "./Disclaimer.js";
|
|
4
4
|
import { d as i, t as m, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
i("Disclaimer test", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { a as s, s as o, w as r, f as l } from "../../react.esm-
|
|
2
|
+
import { a as s, s as o, w as r, f as l } from "../../react.esm-C3jDj5Fe.js";
|
|
3
3
|
import { EmptyView as c } from "./EmptyView.js";
|
|
4
4
|
import { d as h, t as T, g as e, v as d } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
h("EmptyView", () => {
|
|
@@ -29,7 +29,7 @@ import "../Scrollbar/Scrollbar.js";
|
|
|
29
29
|
import "react-hook-form";
|
|
30
30
|
import "../../formDatePicker.module-BV3ma_7y.js";
|
|
31
31
|
import "../../formSelect.module-C18N-SsT.js";
|
|
32
|
-
import "../../formText.module-
|
|
32
|
+
import "../../formText.module-C0by6_DK.js";
|
|
33
33
|
const K = "_filterButton_66wbq_1", M = "_filterBadge_66wbq_6", f = {
|
|
34
34
|
filterButton: K,
|
|
35
35
|
filterBadge: M
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { a, s as t, f as c, t as u, w as x } from "../../react.esm-
|
|
2
|
+
import { a, s as t, f as c, t as u, w as x } from "../../react.esm-C3jDj5Fe.js";
|
|
3
3
|
import { u as d } from "../../useBreakpoint-BNeVhjjZ.js";
|
|
4
4
|
import { Filter as T } from "./Filter.js";
|
|
5
5
|
import { v as m, b as s, d as f, t as B, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { a as n, s as t, f as m } from "../../../react.esm-
|
|
2
|
+
import { a as n, s as t, f as m } from "../../../react.esm-C3jDj5Fe.js";
|
|
3
3
|
import { FormCheckBox as c } from "./FormCheckBox.js";
|
|
4
4
|
import { v as e, d as h, t as l, g as r } from "../../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
const a = e.fn();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { a as s, s as a, f as m } from "../../../react.esm-
|
|
2
|
+
import { a as s, s as a, f as m } from "../../../react.esm-C3jDj5Fe.js";
|
|
3
3
|
import { FormDatePicker as c } from "./FormDatePicker.js";
|
|
4
4
|
import { v as e, d as f, t as l, g as r } from "../../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
const i = e.fn();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { a as s, s as t, f as m } from "../../../react.esm-
|
|
2
|
+
import { a as s, s as t, f as m } from "../../../react.esm-C3jDj5Fe.js";
|
|
3
3
|
import { FormRadio as l } from "./FormRadio.js";
|
|
4
4
|
import { v as e, d as c, t as i, g as o } from "../../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
const r = e.fn();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { a, s as t, f as T, w as p } from "../../../react.esm-
|
|
3
|
-
import { u as B } from "../../../index-
|
|
2
|
+
import { a, s as t, f as T, w as p } from "../../../react.esm-C3jDj5Fe.js";
|
|
3
|
+
import { u as B } from "../../../index-BQnj-5Zt.js";
|
|
4
4
|
import { FormSelect as i } from "./FormSelect.js";
|
|
5
5
|
import { SelectTooltipText as d } from "./SelectTooltipText.js";
|
|
6
6
|
import { v as n, d as f, t as u, g as e } from "../../../vi.JYQecGiw-BbUbJcT8.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { a, s as n } from "../../../react.esm-
|
|
2
|
+
import { a, s as n } from "../../../react.esm-C3jDj5Fe.js";
|
|
3
3
|
import { FormSlider as l } from "./FormSlider.js";
|
|
4
4
|
import { v as e, d as m, t as i, g as r } from "../../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
const o = e.fn();
|
|
@@ -11,6 +11,8 @@ export type FormTextProps<T extends FieldValues> = TextfieldProps & {
|
|
|
11
11
|
label: string;
|
|
12
12
|
/** a boolean to set a textarea or a textfield */
|
|
13
13
|
textarea?: boolean;
|
|
14
|
+
/** a counter that displays the current and max character number */
|
|
15
|
+
hasCharacterCount?: boolean;
|
|
14
16
|
/** a boolean to disable the field/set to readonly */
|
|
15
17
|
disabled?: boolean;
|
|
16
18
|
/** a boolean to hide the field */
|
|
@@ -53,6 +55,7 @@ export type FormTextProps<T extends FieldValues> = TextfieldProps & {
|
|
|
53
55
|
* @param prefixText a prefix text
|
|
54
56
|
* @param propertyName the name of the property in the form
|
|
55
57
|
* @param textarea if the field is a textarea
|
|
58
|
+
* @param hasCharacterCount a counter that displays the current and max character number
|
|
56
59
|
* @param trigger the trigger to validate the field. @default 'likeForm' @example 'onBlur' or 'onChange'
|
|
57
60
|
* @param trailingIcon a trailing icon
|
|
58
61
|
* @param type the type of the input field
|
|
@@ -1,112 +1,137 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Textfield as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { jsx as t, Fragment as S, jsxs as G } from "react/jsx-runtime";
|
|
2
|
+
import { Textfield as J, TypoCaption as K } from "@element/react-components";
|
|
3
|
+
import { g as O } from "../../../get-UxX31Aph.js";
|
|
4
|
+
import { useState as B, useCallback as Q, useMemo as c, useEffect as U } from "react";
|
|
5
|
+
import { useFormContext as X, Controller as A } from "react-hook-form";
|
|
6
|
+
import { s as i } from "../../../formText.module-C0by6_DK.js";
|
|
7
|
+
const Y = ({
|
|
7
8
|
count: e,
|
|
8
|
-
maxCount:
|
|
9
|
-
invalid:
|
|
10
|
-
|
|
11
|
-
}) => /* @__PURE__ */
|
|
9
|
+
maxCount: d,
|
|
10
|
+
invalid: m = !1,
|
|
11
|
+
hasRequiredText: r = !1
|
|
12
|
+
}) => /* @__PURE__ */ t(
|
|
12
13
|
"div",
|
|
13
14
|
{
|
|
14
|
-
className: `${i.formTextAreaHelperText} ${
|
|
15
|
-
children: /* @__PURE__ */
|
|
15
|
+
className: `${i.formTextAreaHelperText} ${m ? i.invalid : ""} ${r ? i.required : ""}`,
|
|
16
|
+
children: /* @__PURE__ */ t(K, { children: `${e}/${d}` })
|
|
16
17
|
}
|
|
17
|
-
),
|
|
18
|
+
), re = (e) => e.textarea ? /* @__PURE__ */ t(Z, { ...e }) : /* @__PURE__ */ t(_, { ...e }), Z = (e) => /* @__PURE__ */ t("div", { className: i.formTextArea, children: /* @__PURE__ */ t(j, { ...e }) }), _ = (e) => /* @__PURE__ */ t(
|
|
19
|
+
"div",
|
|
20
|
+
{
|
|
21
|
+
className: `${e.hasCharacterCount ? i.characterCount : i.withoutCharacterCount}`,
|
|
22
|
+
children: /* @__PURE__ */ t(j, { ...e })
|
|
23
|
+
}
|
|
24
|
+
), j = ({
|
|
18
25
|
propertyName: e,
|
|
19
|
-
label:
|
|
20
|
-
disabled:
|
|
26
|
+
label: d,
|
|
27
|
+
disabled: m = !1,
|
|
21
28
|
textarea: r = !1,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
hasCharacterCount: s = !1,
|
|
30
|
+
hidden: k = !1,
|
|
31
|
+
placeholder: H,
|
|
32
|
+
type: R,
|
|
33
|
+
prefixText: b,
|
|
34
|
+
inputMode: w,
|
|
35
|
+
trailingIcon: z,
|
|
36
|
+
trigger: x = "likeForm",
|
|
37
|
+
rules: n,
|
|
38
|
+
...T
|
|
31
39
|
}) => {
|
|
32
40
|
const {
|
|
33
|
-
control:
|
|
34
|
-
getFieldState:
|
|
35
|
-
formState: { errors:
|
|
36
|
-
trigger:
|
|
37
|
-
} =
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
control: C,
|
|
42
|
+
getFieldState: f,
|
|
43
|
+
formState: { errors: u },
|
|
44
|
+
trigger: F
|
|
45
|
+
} = X(), [E, g] = B(0), [o, I] = B(), h = Q(
|
|
46
|
+
(a) => {
|
|
47
|
+
if (o != null) {
|
|
48
|
+
g(o.length);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
if (a) {
|
|
52
|
+
g(a.length);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
g(0);
|
|
56
|
+
},
|
|
57
|
+
[o]
|
|
58
|
+
), M = () => {
|
|
59
|
+
if (u && u[e]) {
|
|
60
|
+
const a = u[e]?.message;
|
|
43
61
|
return a || "Invalid input";
|
|
44
62
|
}
|
|
45
|
-
return
|
|
46
|
-
},
|
|
47
|
-
() =>
|
|
48
|
-
[
|
|
49
|
-
),
|
|
50
|
-
() =>
|
|
51
|
-
[
|
|
52
|
-
),
|
|
53
|
-
() =>
|
|
54
|
-
[
|
|
55
|
-
),
|
|
56
|
-
() =>
|
|
57
|
-
[
|
|
63
|
+
return $;
|
|
64
|
+
}, l = c(
|
|
65
|
+
() => n?.maxLength?.value,
|
|
66
|
+
[n]
|
|
67
|
+
), P = c(
|
|
68
|
+
() => n?.minLength?.value,
|
|
69
|
+
[n]
|
|
70
|
+
), V = c(
|
|
71
|
+
() => n?.required?.value,
|
|
72
|
+
[n]
|
|
73
|
+
), $ = c(
|
|
74
|
+
() => n?.required?.message,
|
|
75
|
+
[n]
|
|
58
76
|
);
|
|
59
|
-
return
|
|
60
|
-
|
|
77
|
+
return U(() => {
|
|
78
|
+
(r || s) && l !== void 0 && o != null && h();
|
|
79
|
+
}, [o, r, s, l, h]), k ? /* @__PURE__ */ t(A, { name: e, control: C, render: () => /* @__PURE__ */ t(S, {}) }) : /* @__PURE__ */ t(
|
|
80
|
+
A,
|
|
61
81
|
{
|
|
62
82
|
name: e,
|
|
63
|
-
rules:
|
|
64
|
-
control:
|
|
65
|
-
render: ({ field: { ref: a, ...
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
83
|
+
rules: n,
|
|
84
|
+
control: C,
|
|
85
|
+
render: ({ field: { ref: a, ...v }, formState: { defaultValues: W } }) => {
|
|
86
|
+
const q = O(W, e);
|
|
87
|
+
return !o && q && (s || r) && h(q), /* @__PURE__ */ G(S, { children: [
|
|
88
|
+
/* @__PURE__ */ t(
|
|
89
|
+
J,
|
|
90
|
+
{
|
|
91
|
+
...T,
|
|
92
|
+
...v,
|
|
93
|
+
value: v.value ?? "",
|
|
94
|
+
type: R,
|
|
95
|
+
fullWidth: !0,
|
|
96
|
+
inputMode: w,
|
|
97
|
+
placeholder: H,
|
|
98
|
+
prefixText: b,
|
|
99
|
+
disabled: m,
|
|
100
|
+
helperText: M(),
|
|
101
|
+
helperTextPersistent: u !== void 0 || V || l !== void 0 && (r || s),
|
|
102
|
+
label: d,
|
|
103
|
+
variant: "outlined",
|
|
104
|
+
maxlength: l,
|
|
105
|
+
minLength: P,
|
|
106
|
+
textarea: r,
|
|
107
|
+
noResize: !1,
|
|
108
|
+
onBlur: () => {
|
|
109
|
+
x === "onBlur" && F(e), T.onBlur?.();
|
|
110
|
+
},
|
|
111
|
+
onChange: (L) => {
|
|
112
|
+
v.onChange(L);
|
|
113
|
+
const D = L?.target?.value;
|
|
114
|
+
I(D), x === "onChange" && F(e);
|
|
115
|
+
},
|
|
116
|
+
valid: !f(e).invalid,
|
|
117
|
+
className: `${i.formText} ${f(e).invalid ? i.invalid : ""}`,
|
|
118
|
+
trailingIcon: z
|
|
119
|
+
}
|
|
120
|
+
),
|
|
121
|
+
l !== void 0 && (s || r) && /* @__PURE__ */ t(
|
|
122
|
+
Y,
|
|
123
|
+
{
|
|
124
|
+
count: E,
|
|
125
|
+
maxCount: l,
|
|
126
|
+
invalid: f(e).invalid,
|
|
127
|
+
hasRequiredText: !!$
|
|
128
|
+
}
|
|
129
|
+
)
|
|
130
|
+
] });
|
|
131
|
+
}
|
|
107
132
|
}
|
|
108
133
|
);
|
|
109
134
|
};
|
|
110
135
|
export {
|
|
111
|
-
|
|
136
|
+
re as FormText
|
|
112
137
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { a as s, s as r, f as d } from "../../../react.esm-
|
|
2
|
+
import { a as s, s as r, f as d } from "../../../react.esm-C3jDj5Fe.js";
|
|
3
3
|
import { FormText as o } from "./FormText.js";
|
|
4
|
-
import { v as a, d as
|
|
4
|
+
import { v as a, d as u, t as l, g as e } from "../../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
const m = a.fn();
|
|
6
6
|
a.mock("react-hook-form", () => ({
|
|
7
7
|
...a.importActual("react-hook-form"),
|
|
@@ -12,7 +12,8 @@ a.mock("react-hook-form", () => ({
|
|
|
12
12
|
ref: void 0,
|
|
13
13
|
onChange: m,
|
|
14
14
|
value: "test"
|
|
15
|
-
}
|
|
15
|
+
},
|
|
16
|
+
formState: { defaultValue: {} }
|
|
16
17
|
}),
|
|
17
18
|
useFormContext: () => ({
|
|
18
19
|
watch: a.fn(),
|
|
@@ -41,7 +42,7 @@ a.mock("react-hook-form", () => ({
|
|
|
41
42
|
getFieldState: () => ({ invalid: !1 })
|
|
42
43
|
})
|
|
43
44
|
}));
|
|
44
|
-
|
|
45
|
+
u("FormText Test", () => {
|
|
45
46
|
l("render FormText and return single line text field", () => {
|
|
46
47
|
s(
|
|
47
48
|
/* @__PURE__ */ n(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, jsxs as u } from "react/jsx-runtime";
|
|
2
|
-
import { a as i, s as e } from "../../react.esm-
|
|
2
|
+
import { a as i, s as e } from "../../react.esm-C3jDj5Fe.js";
|
|
3
3
|
import { GenericTable as c } from "./GenericTable.js";
|
|
4
4
|
import { d as B, t as d, g as t, v as r } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
B("GenericTable Test", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, Fragment as o } from "react/jsx-runtime";
|
|
2
|
-
import { a, s as e, f as r } from "../../react.esm-
|
|
2
|
+
import { a, s as e, f as r } from "../../react.esm-C3jDj5Fe.js";
|
|
3
3
|
import { HashTabView as c } from "./HashTabView.js";
|
|
4
4
|
import { d as h, t as l, g as t } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
const m = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { a as i, s as t, f as T } from "../../react.esm-
|
|
2
|
+
import { a as i, s as t, f as T } from "../../react.esm-C3jDj5Fe.js";
|
|
3
3
|
import { HeaderFilter as s } from "./HeaderFilter.js";
|
|
4
4
|
import { d as c, t as o, v as l, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
c("HeaderFilter-Test", () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { I as c } from "../../Iconify-CY9lZjFd.js";
|
|
3
3
|
import { AvailableCustomIcons as l } from "../../enums/AvailableCustomIcons.js";
|
|
4
|
-
import { a as r, w as s, s as i } from "../../react.esm-
|
|
4
|
+
import { a as r, w as s, s as i } from "../../react.esm-C3jDj5Fe.js";
|
|
5
5
|
import { d as f, t as a, g as o } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
6
6
|
f("Iconify Test", async () => {
|
|
7
7
|
const m = Object.keys(l).filter((e) => isNaN(Number(e)));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { a as l, s as t } from "../../react.esm-
|
|
2
|
+
import { a as l, s as t } from "../../react.esm-C3jDj5Fe.js";
|
|
3
3
|
import { InfoGroup as r } from "./InfoGroup.js";
|
|
4
4
|
import { d as s, t as i, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
s("InfoGroup Test", () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, Fragment as i } from "react/jsx-runtime";
|
|
2
2
|
import { TypoButton as p } from "@element/react-components";
|
|
3
|
-
import { a as s, s as a, f as u } from "../../react.esm-
|
|
3
|
+
import { a as s, s as a, f as u } from "../../react.esm-C3jDj5Fe.js";
|
|
4
4
|
import { ListArea as c } from "./ListArea.js";
|
|
5
5
|
import { getGroupedItems as h } from "./ListAreaService.js";
|
|
6
6
|
import { d as m, t as n, g as t } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { BigLoadingSpinner as n } from "./BigLoadingSpinner.js";
|
|
3
|
-
import { a as i, s as e } from "../../../react.esm-
|
|
3
|
+
import { a as i, s as e } from "../../../react.esm-C3jDj5Fe.js";
|
|
4
4
|
import { s as r } from "../../../bigLoadingSpinner.module-GgbFol8k.js";
|
|
5
5
|
import { d as g, t as a, g as t } from "../../../vi.JYQecGiw-BbUbJcT8.js";
|
|
6
6
|
g("BigLoadingSpinner Test", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { a as o, s as e } from "../../../react.esm-
|
|
2
|
+
import { a as o, s as e } from "../../../react.esm-C3jDj5Fe.js";
|
|
3
3
|
import { LoadingSpinner as r } from "./LoadingSpinner.js";
|
|
4
4
|
import { d as a, t as i, g as n } from "../../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
a("LoadingSpinner Test", () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { TypoDisplay as n } from "@element/react-components";
|
|
3
|
-
import { a as i, s as e, w as s } from "../../react.esm-
|
|
4
|
-
import { u as a } from "../../index-
|
|
3
|
+
import { a as i, s as e, w as s } from "../../react.esm-C3jDj5Fe.js";
|
|
4
|
+
import { u as a } from "../../index-BQnj-5Zt.js";
|
|
5
5
|
import { OverflowTooltip as c } from "./OverflowTooltip.js";
|
|
6
6
|
import { d as u, t as p, g as r } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
7
7
|
u("OverflowTooltip Test", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { a, s as e } from "../../react.esm-
|
|
2
|
+
import { a, s as e } from "../../react.esm-C3jDj5Fe.js";
|
|
3
3
|
import { ScrollbarY as d, ScrollbarX as l } from "./Scrollbar.js";
|
|
4
4
|
import { d as c, t, g as o } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
c("Scrollbar", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { a as r, s as t, f as h, b as l } from "../../react.esm-
|
|
2
|
+
import { a as r, s as t, f as h, b as l } from "../../react.esm-C3jDj5Fe.js";
|
|
3
3
|
import { SearchBar as s } from "./SearchBar.js";
|
|
4
4
|
import { d as m, t as o, v as n, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
m("SearchBar Test", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { a as r } from "../../react.esm-
|
|
2
|
+
import { a as r } from "../../react.esm-C3jDj5Fe.js";
|
|
3
3
|
import { VerticalDivider as s } from "./VerticalDivider.js";
|
|
4
4
|
import { d as o, t as l, g as i } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
o("VerticalDivider Test", () => {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./assets/formText.css";
|
|
2
|
+
const t = "_formTextAreaHelperText_168p8_1", e = "_invalid_168p8_7", r = "_required_168p8_11", o = "_formTextArea_168p8_1", a = "_characterCount_168p8_25", _ = "_withoutCharacterCount_168p8_31", n = {
|
|
3
|
+
formTextAreaHelperText: t,
|
|
4
|
+
invalid: e,
|
|
5
|
+
required: r,
|
|
6
|
+
formTextArea: o,
|
|
7
|
+
characterCount: a,
|
|
8
|
+
withoutCharacterCount: _
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
n as s
|
|
12
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as t, w as s } from "../react.esm-
|
|
1
|
+
import { r as t, w as s } from "../react.esm-C3jDj5Fe.js";
|
|
2
2
|
import { u as o } from "../useBreakpoint-BNeVhjjZ.js";
|
|
3
3
|
import { d as a, t as i, g as r } from "../vi.JYQecGiw-BbUbJcT8.js";
|
|
4
4
|
a("useBreakpoint Test", () => {
|