@hortiview/shared-components 0.0.11176 → 0.0.11528
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/README.md +41 -8
- package/dist/BigLoadingSpinner-D7H28pr5.js +16 -0
- package/dist/{GenericCard-B8x1DMa8.js → GenericCard-jlt8ZsHi.js} +18 -19
- package/dist/ListAreaService-YS_UUPh5.js +107 -0
- package/dist/assets/HashTabView.css +1 -1
- package/dist/assets/Select.css +1 -0
- package/dist/components/AlertBanner/AlertBanner.d.ts +0 -1
- package/dist/components/AlertBanner/AlertBanner.js +7 -8
- package/dist/components/AlertBanner/AlertBanner.test.js +11 -9
- package/dist/components/BaseView/BaseView.d.ts +1 -1
- package/dist/components/BaseView/BaseView.js +24 -25
- package/dist/components/BaseView/BaseView.test.js +25 -25
- package/dist/components/BasicHeading/BasicHeading.d.ts +1 -0
- package/dist/components/BasicHeading/BasicHeading.js +11 -12
- package/dist/components/BasicHeading/BasicHeading.test.js +3 -3
- package/dist/components/BlockView/BlockView.d.ts +1 -0
- package/dist/components/BlockView/BlockView.js +24 -25
- package/dist/components/BlockView/BlockView.test.js +2 -2
- package/dist/components/ChipCard/ChipCard.js +6 -7
- package/dist/components/ChipCard/ChipCard.test.js +2 -2
- package/dist/components/ContextMenu/ContextMenu.d.ts +3 -2
- package/dist/components/ContextMenu/ContextMenu.js +11 -12
- package/dist/components/ContextMenu/ContextMenu.test.js +2 -2
- package/dist/components/DeleteModal/DeleteModal.d.ts +0 -1
- package/dist/components/DeleteModal/DeleteModal.js +30 -31
- package/dist/components/DeleteModal/DeleteModal.test.js +2 -2
- package/dist/components/Disclaimer/Disclaimer.js +9 -10
- package/dist/components/Disclaimer/Disclaimer.test.js +2 -2
- package/dist/components/EmptyView/EmptyView.d.ts +1 -0
- package/dist/components/EmptyView/EmptyView.js +1 -1
- package/dist/components/EmptyView/EmptyView.test.js +2 -2
- package/dist/components/Filter/Filter.d.ts +1 -0
- package/dist/components/Filter/Filter.js +62 -62
- package/dist/components/Filter/Filter.test.js +2 -2
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.d.ts +1 -0
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +2 -2
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.d.ts +3 -2
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +629 -630
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +2 -2
- package/dist/components/FormComponents/FormNumber/CustomTextField.d.ts +2 -1
- package/dist/components/FormComponents/FormNumber/CustomTextField.js +11 -12
- package/dist/components/FormComponents/FormNumber/FormNumber.d.ts +2 -1
- package/dist/components/FormComponents/FormNumber/FormNumber.js +1 -1
- package/dist/components/FormComponents/FormNumber/FormNumber.test.js +4 -4
- package/dist/components/FormComponents/FormRadio/FormRadio.d.ts +1 -0
- package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
- package/dist/components/FormComponents/FormRadio/FormRadio.test.js +2 -2
- package/dist/components/FormComponents/FormSelect/FormSelect.d.ts +4 -7
- package/dist/components/FormComponents/FormSelect/FormSelect.js +100 -110
- package/dist/components/FormComponents/FormSelect/FormSelect.test.js +3 -3
- package/dist/components/FormComponents/FormSelect/SelectTooltipText.d.ts +1 -0
- package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +5 -5
- package/dist/components/FormComponents/FormSlider/FormSlider.d.ts +1 -0
- package/dist/components/FormComponents/FormSlider/FormSlider.js +1 -1
- package/dist/components/FormComponents/FormSlider/FormSlider.test.js +2 -2
- package/dist/components/FormComponents/FormText/FormText.d.ts +2 -1
- package/dist/components/FormComponents/FormText/FormText.js +14 -15
- package/dist/components/FormComponents/FormText/FormText.test.js +13 -13
- package/dist/components/FormComponents/FormToggle/FormToggle.d.ts +2 -1
- package/dist/components/FormComponents/FormToggle/FormToggle.js +1 -1
- package/dist/components/FormComponents/FormToggle/FormToggle.test.js +2 -2
- package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.d.ts +2 -1
- package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.js +1 -1
- package/dist/components/GenericTable/GenericTable.d.ts +1 -0
- package/dist/components/GenericTable/GenericTable.js +23 -24
- package/dist/components/GenericTable/GenericTable.test.js +2 -2
- package/dist/components/GenericTable/GenericTableService.d.ts +1 -0
- package/dist/components/GenericTable/GenericTableService.js +41 -41
- package/dist/components/GenericTable/Mobile/GenericCard.d.ts +1 -1
- package/dist/components/GenericTable/Mobile/GenericCard.js +2 -2
- package/dist/components/GenericTable/Mobile/GenericCard.test.js +3 -3
- package/dist/components/GenericTable/Mobile/GenericCardList.d.ts +1 -1
- package/dist/components/GenericTable/Mobile/GenericCardList.js +2 -2
- package/dist/components/GenericTable/Mobile/GenericCardList.test.js +2 -2
- package/dist/components/HashTabView/HashTabView.d.ts +6 -1
- package/dist/components/HashTabView/HashTabView.js +53 -53
- package/dist/components/HashTabView/HashTabView.test.js +2 -2
- package/dist/components/HeaderFilter/HeaderFilter.d.ts +3 -2
- package/dist/components/HeaderFilter/HeaderFilter.js +12 -12
- package/dist/components/HeaderFilter/HeaderFilter.test.js +2 -2
- package/dist/components/HealthCheckFailed/HealthCheckFailed.js +7 -8
- package/dist/components/HealthCheckFailed/HealthCheckFailed.test.js +2 -2
- package/dist/components/Iconify/Iconify.d.ts +2 -2
- package/dist/components/Iconify/Iconify.js +4 -5
- package/dist/components/Iconify/Iconify.test.js +2 -2
- package/dist/components/InfoGroup/InfoGroup.d.ts +4 -3
- package/dist/components/InfoGroup/InfoGroup.js +4 -5
- package/dist/components/InfoGroup/InfoGroup.test.js +2 -2
- package/dist/components/ListArea/ListArea.d.ts +1 -1
- package/dist/components/ListArea/ListArea.js +2 -2
- package/dist/components/ListArea/ListArea.test.js +5 -5
- package/dist/components/ListArea/ListAreaService.d.ts +9 -8
- package/dist/components/ListArea/ListAreaService.js +2 -2
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +3 -3
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +5 -6
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +2 -2
- package/dist/components/Modal/Modal.d.ts +2 -1
- package/dist/components/Modal/Modal.js +5 -6
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +0 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.js +10 -11
- package/dist/components/OverflowTooltip/OverflowTooltip.test.js +4 -4
- package/dist/components/Scrollbar/Scrollbar.js +5 -6
- package/dist/components/Scrollbar/scrollbar.test.js +2 -2
- package/dist/components/SearchBar/SearchBar.js +10 -11
- package/dist/components/SearchBar/SearchBar.test.js +2 -2
- package/dist/components/Select/Select.d.ts +14 -0
- package/dist/components/Select/Select.js +34 -0
- package/dist/components/Select/Select.test.d.ts +1 -0
- package/dist/components/Select/Select.test.js +28 -0
- package/dist/components/VerticalDivider/VerticalDivider.js +4 -5
- package/dist/components/VerticalDivider/VerticalDivider.test.js +2 -2
- package/dist/hooks/useBreakpoints.test.js +2 -2
- package/dist/hooks/useHelperText.d.ts +1 -0
- package/dist/{index-DzM8o582.js → index-CrcXCSzI.js} +1940 -1796
- package/dist/main.d.ts +2 -0
- package/dist/main.js +33 -31
- package/dist/{react-number-format.es-BD3_OvMU.js → react-number-format.es-BK1EpVXq.js} +151 -151
- package/dist/react-tooltip.min-Czs4RGD1.js +1400 -0
- package/dist/{react.esm-FR1-H8iU.js → react.esm-DNwojocF.js} +5289 -4990
- package/dist/services/BlockService.d.ts +1 -0
- package/dist/services/NumberService.d.ts +1 -0
- package/dist/services/UtilService.d.ts +1 -0
- package/dist/services/services.test.js +1 -1
- package/dist/types/GenericTable.d.ts +2 -2
- package/dist/types/HashTab.d.ts +0 -1
- package/dist/types/ListElement.d.ts +0 -1
- package/dist/types/internal/ReactRouterTypes.d.ts +0 -1
- package/dist/{vi.CjhMlMwf-DWv7vrn7.js → vi.CjhMlMwf-BCJNwXvu.js} +1 -1
- package/package.json +15 -15
- package/dist/BigLoadingSpinner-C3wTbTD0.js +0 -17
- package/dist/ListAreaService-CRX4eEUJ.js +0 -108
- package/dist/react-tooltip.min-c2wVkjF2.js +0 -1354
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
/* empty css */
|
|
1
|
+
import { jsx as t, jsxs as y, Fragment as D } from "react/jsx-runtime";
|
|
2
|
+
import { Group as _, Button as p, Switch as T, IconButton as W, NotificationBadge as k } from "@element-public/react-components";
|
|
3
|
+
import { useState as B } from "react";
|
|
4
|
+
import '../../assets/main.css';import '../../assets/Filter.css';/* empty css */
|
|
6
5
|
import { u as b } from "../../useBreakpoints-MzTZ0tCT.js";
|
|
7
|
-
import { Iconify as
|
|
8
|
-
import "../../react-tooltip.min-
|
|
6
|
+
import { Iconify as j } from "../Iconify/Iconify.js";
|
|
7
|
+
import "../../react-tooltip.min-Czs4RGD1.js";
|
|
9
8
|
import "../../orderBy-BVQIswlJ.js";
|
|
10
|
-
import { SearchBar as
|
|
9
|
+
import { SearchBar as z } from "../SearchBar/SearchBar.js";
|
|
11
10
|
import "lodash";
|
|
12
|
-
import { Modal as
|
|
11
|
+
import { Modal as H } from "../Modal/Modal.js";
|
|
12
|
+
import { Select as I } from "../Select/Select.js";
|
|
13
13
|
import "react-hook-form";
|
|
14
14
|
import "../../get-BiqanC9_.js";
|
|
15
15
|
import "../../isArray-C_5XvIlE.js";
|
|
16
16
|
import "../../isString-BOHPtrlm.js";
|
|
17
|
-
const K = "_filterButton_qtl7a_1", G = "_relativeParent_qtl7a_6", V = "_filterBadge_qtl7a_10", E = "_dense_qtl7a_17",
|
|
17
|
+
const K = "_filterButton_qtl7a_1", G = "_relativeParent_qtl7a_6", V = "_filterBadge_qtl7a_10", E = "_dense_qtl7a_17", u = {
|
|
18
18
|
filterButton: K,
|
|
19
19
|
relativeParent: G,
|
|
20
20
|
filterBadge: V,
|
|
21
21
|
dense: E
|
|
22
|
-
},
|
|
23
|
-
clearFilterText:
|
|
22
|
+
}, at = ({
|
|
23
|
+
clearFilterText: m,
|
|
24
24
|
closeCallback: s,
|
|
25
25
|
currentFilter: r,
|
|
26
26
|
filterButtonAsIcon: f = !1,
|
|
27
|
-
filterButtonText:
|
|
27
|
+
filterButtonText: o,
|
|
28
28
|
filterModalTitle: i,
|
|
29
29
|
filters: d,
|
|
30
30
|
modalCancelButtonText: g,
|
|
31
31
|
modalConfirmButtonText: h,
|
|
32
|
-
useModal:
|
|
33
|
-
selectAllLabel:
|
|
32
|
+
useModal: l = !0,
|
|
33
|
+
selectAllLabel: e
|
|
34
34
|
}) => {
|
|
35
|
-
const { isDesktop: A } = b(), [q,
|
|
36
|
-
|
|
35
|
+
const { isDesktop: A } = b(), [q, v] = B(!1), [c, C] = B(r), [w, x] = B(0), S = () => {
|
|
36
|
+
v(!1), s(c), x(
|
|
37
37
|
c.reduce((a, { filterValue: n }) => n === void 0 ? a : typeof n == "boolean" ? n ? a + 1 : a : Array.isArray(n) ? a + n.length : typeof n == "string" && n.length ? a + 1 : a, 0)
|
|
38
38
|
);
|
|
39
39
|
}, O = () => {
|
|
@@ -43,89 +43,89 @@ const K = "_filterButton_qtl7a_1", G = "_relativeParent_qtl7a_6", V = "_filterBa
|
|
|
43
43
|
...c.filter((P) => P.id !== a.id),
|
|
44
44
|
a
|
|
45
45
|
];
|
|
46
|
-
C(n),
|
|
46
|
+
C(n), l || s(n);
|
|
47
47
|
};
|
|
48
|
-
return
|
|
49
|
-
/* @__PURE__ */
|
|
48
|
+
return l ? /* @__PURE__ */ y(D, { children: [
|
|
49
|
+
/* @__PURE__ */ t(
|
|
50
50
|
J,
|
|
51
51
|
{
|
|
52
|
-
filterButtonText:
|
|
52
|
+
filterButtonText: o,
|
|
53
53
|
filterButtonAsIcon: f,
|
|
54
54
|
count: w,
|
|
55
|
-
onClick: () =>
|
|
55
|
+
onClick: () => v(!0)
|
|
56
56
|
}
|
|
57
57
|
),
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
|
|
58
|
+
/* @__PURE__ */ t(
|
|
59
|
+
H,
|
|
60
60
|
{
|
|
61
61
|
open: q,
|
|
62
62
|
onClose: S,
|
|
63
63
|
title: i,
|
|
64
64
|
modalSize: A ? "small" : "fullscreen",
|
|
65
|
-
headerActions: /* @__PURE__ */
|
|
66
|
-
dismissiveButton: /* @__PURE__ */
|
|
67
|
-
primaryButton: /* @__PURE__ */
|
|
68
|
-
children: /* @__PURE__ */
|
|
65
|
+
headerActions: /* @__PURE__ */ t(p, { variant: "text", onClick: O, children: m }),
|
|
66
|
+
dismissiveButton: /* @__PURE__ */ t(p, { variant: "outlined", onClick: () => v(!1), children: g }),
|
|
67
|
+
primaryButton: /* @__PURE__ */ t(p, { variant: "filled", onClick: S, children: h }),
|
|
68
|
+
children: /* @__PURE__ */ t(_, { direction: "vertical", children: N(d, c, F, e) })
|
|
69
69
|
}
|
|
70
70
|
)
|
|
71
|
-
] }) : /* @__PURE__ */
|
|
72
|
-
}, N = (
|
|
73
|
-
h ? /* @__PURE__ */
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
] }) : /* @__PURE__ */ t(_, { secondaryAlign: "center", fullWidth: !0, children: N(d, c, F, e, !1) });
|
|
72
|
+
}, N = (m, s, r, f, o = !0) => m.map(({ id: i, title: d, availableOptions: g, icon: h, type: l }) => /* @__PURE__ */ y(_, { fullWidth: !0, secondaryAlign: "center", children: [
|
|
73
|
+
h ? /* @__PURE__ */ t(j, { icon: h, iconSize: "medium" }) : null,
|
|
74
|
+
l === "select" && /* @__PURE__ */ t(
|
|
75
|
+
I,
|
|
76
76
|
{
|
|
77
77
|
selectAllLabel: f,
|
|
78
|
-
className:
|
|
78
|
+
className: o ? void 0 : u.dense,
|
|
79
79
|
variant: "outlined",
|
|
80
80
|
options: g,
|
|
81
81
|
label: d,
|
|
82
82
|
multiSelect: !0,
|
|
83
83
|
textKey: "text",
|
|
84
84
|
valueKey: "id",
|
|
85
|
-
value: s.find((
|
|
86
|
-
onChange: (
|
|
85
|
+
value: s.find((e) => e.id === i)?.filterValue ?? [],
|
|
86
|
+
onChange: (e) => r({ id: i, type: l, filterValue: e }),
|
|
87
87
|
hoisted: !0,
|
|
88
88
|
menuMaxHeight: "300px",
|
|
89
89
|
disabled: i === "location",
|
|
90
90
|
showOptionFilter: !1,
|
|
91
|
-
dense: !
|
|
92
|
-
fixedHeightInput: !
|
|
93
|
-
multiDisplayType:
|
|
91
|
+
dense: !o,
|
|
92
|
+
fixedHeightInput: !o,
|
|
93
|
+
multiDisplayType: o ? "pills" : "text"
|
|
94
94
|
}
|
|
95
95
|
),
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
l === "toggle" && /* @__PURE__ */ t(
|
|
97
|
+
T,
|
|
98
98
|
{
|
|
99
99
|
label: d,
|
|
100
|
-
onChange: (
|
|
101
|
-
checked: !!s.find((
|
|
100
|
+
onChange: (e) => r({ id: i, type: l, filterValue: e }),
|
|
101
|
+
checked: !!s.find((e) => e.id === i)?.filterValue
|
|
102
102
|
}
|
|
103
103
|
),
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
l === "search" && /* @__PURE__ */ t(
|
|
105
|
+
z,
|
|
106
106
|
{
|
|
107
107
|
placeholder: d,
|
|
108
|
-
searchTerm: s.find((
|
|
109
|
-
setSearchTerm: (
|
|
108
|
+
searchTerm: s.find((e) => e.id === i)?.filterValue,
|
|
109
|
+
setSearchTerm: (e) => r({ id: i, type: l, filterValue: e })
|
|
110
110
|
}
|
|
111
111
|
)
|
|
112
112
|
] }, i)), J = ({
|
|
113
|
-
filterButtonText:
|
|
113
|
+
filterButtonText: m,
|
|
114
114
|
filterButtonAsIcon: s,
|
|
115
115
|
count: r,
|
|
116
116
|
onClick: f
|
|
117
117
|
}) => {
|
|
118
|
-
const { isDesktop:
|
|
119
|
-
return s ? /* @__PURE__ */
|
|
120
|
-
|
|
118
|
+
const { isDesktop: o } = b();
|
|
119
|
+
return s ? /* @__PURE__ */ t(
|
|
120
|
+
W,
|
|
121
121
|
{
|
|
122
122
|
icon: "filter_list_alt",
|
|
123
123
|
onClick: f,
|
|
124
|
-
badge: r !== 0 && /* @__PURE__ */
|
|
124
|
+
badge: r !== 0 && /* @__PURE__ */ t(
|
|
125
125
|
k,
|
|
126
126
|
{
|
|
127
127
|
counter: r,
|
|
128
|
-
className:
|
|
128
|
+
className: u.filterBadge,
|
|
129
129
|
themeColor: "secondary",
|
|
130
130
|
"data-testid": "filter-badge"
|
|
131
131
|
}
|
|
@@ -134,26 +134,26 @@ const K = "_filterButton_qtl7a_1", G = "_relativeParent_qtl7a_6", V = "_filterBa
|
|
|
134
134
|
) : /* @__PURE__ */ y(
|
|
135
135
|
"div",
|
|
136
136
|
{
|
|
137
|
-
className:
|
|
138
|
-
style: { height: "100%", width:
|
|
137
|
+
className: u.relativeParent,
|
|
138
|
+
style: { height: "100%", width: o ? void 0 : "100%" },
|
|
139
139
|
children: [
|
|
140
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ t(
|
|
141
141
|
p,
|
|
142
142
|
{
|
|
143
143
|
variant: "outlined",
|
|
144
144
|
themeColor: "primary",
|
|
145
145
|
leadingIcon: "filter_list_alt",
|
|
146
146
|
onClick: f,
|
|
147
|
-
className:
|
|
148
|
-
fullWidth: !
|
|
149
|
-
children:
|
|
147
|
+
className: u.filterButton,
|
|
148
|
+
fullWidth: !o,
|
|
149
|
+
children: m
|
|
150
150
|
}
|
|
151
151
|
),
|
|
152
|
-
r !== 0 && /* @__PURE__ */
|
|
152
|
+
r !== 0 && /* @__PURE__ */ t(
|
|
153
153
|
k,
|
|
154
154
|
{
|
|
155
155
|
counter: r,
|
|
156
|
-
className:
|
|
156
|
+
className: u.filterBadge,
|
|
157
157
|
themeColor: "secondary",
|
|
158
158
|
"data-testid": "filter-badge"
|
|
159
159
|
}
|
|
@@ -163,5 +163,5 @@ const K = "_filterButton_qtl7a_1", G = "_relativeParent_qtl7a_6", V = "_filterBa
|
|
|
163
163
|
);
|
|
164
164
|
};
|
|
165
165
|
export {
|
|
166
|
-
|
|
166
|
+
at as Filter
|
|
167
167
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { a, s as t, f as c, t as u, w as d } from "../../react.esm-
|
|
2
|
+
import { a, s as t, f as c, t as u, w as d } from "../../react.esm-DNwojocF.js";
|
|
3
3
|
import { a as s } from "../../useBreakpoints-MzTZ0tCT.js";
|
|
4
4
|
import { Filter as T } from "./Filter.js";
|
|
5
|
-
import { v as x, b as f, d as y, t as B, g as e } from "../../vi.CjhMlMwf-
|
|
5
|
+
import { v as x, b as f, d as y, t as B, g as e } from "../../vi.CjhMlMwf-BCJNwXvu.js";
|
|
6
6
|
const o = x.fn();
|
|
7
7
|
f(() => {
|
|
8
8
|
x.spyOn(s, "useBreakpoints").mockReturnValue({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import { Group as x, Checkbox as C, TypoCaption as d } from "@element/react-components";
|
|
2
|
+
import { Group as x, Checkbox as C, TypoCaption as d } from "@element-public/react-components";
|
|
3
3
|
import { useFormContext as l, Controller as u } from "react-hook-form";
|
|
4
4
|
const j = ({
|
|
5
5
|
propertyName: t,
|
|
@@ -1,7 +1,7 @@
|
|
|
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-DNwojocF.js";
|
|
3
3
|
import { FormCheckBox as c } from "./FormCheckBox.js";
|
|
4
|
-
import { v as e, d as h, t as l, g as r } from "../../../vi.CjhMlMwf-
|
|
4
|
+
import { v as e, d as h, t as l, g as r } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
|
|
5
5
|
const a = e.fn();
|
|
6
6
|
e.mock("react-hook-form", () => ({
|
|
7
7
|
...e.importActual("react-hook-form"),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { DatepickerProps as ElementDatePickerProps } from '@element/react-components';
|
|
1
|
+
import { DatepickerProps as ElementDatePickerProps } from '@element-public/react-components';
|
|
2
2
|
import { FieldPath, FieldValues, Path, RegisterOptions } from 'react-hook-form';
|
|
3
|
+
|
|
3
4
|
type DatePickerProps<T extends FieldValues> = {
|
|
4
5
|
/** Name of the property that this date picker represents. */
|
|
5
6
|
propertyName: Path<T>;
|
|
@@ -42,5 +43,5 @@ type DatePickerProps<T extends FieldValues> = {
|
|
|
42
43
|
*
|
|
43
44
|
* @returns A JSX element that renders a date picker form input.
|
|
44
45
|
*/
|
|
45
|
-
export declare const FormDatePicker: <T extends FieldValues>({ propertyName, label, closeLabel, className, minRangeYear, maxRangeYear, locale, rules, ...props }: Omit<ElementDatePickerProps,
|
|
46
|
+
export declare const FormDatePicker: <T extends FieldValues>({ propertyName, label, closeLabel, className, minRangeYear, maxRangeYear, locale, rules, ...props }: Omit<ElementDatePickerProps, "locale"> & DatePickerProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
46
47
|
export {};
|