@apexcura/ui-components 0.0.15-Beta43 → 0.0.15-Beta44
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/index.js +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -180,6 +180,7 @@ var TextareaElement = (props) => {
|
|
|
180
180
|
autoSize: { minRows: props.minRows ? props.minRows : defaultMinRows, maxRows: props.maxRows ? props.maxRows : defaultMaxRows },
|
|
181
181
|
className: props.className,
|
|
182
182
|
name: props.name,
|
|
183
|
+
value: props.value,
|
|
183
184
|
showCount: true,
|
|
184
185
|
onChange: (e) => {
|
|
185
186
|
handleChange(e);
|
|
@@ -216,8 +217,10 @@ var SelectElement = (props) => {
|
|
|
216
217
|
allowClear: true,
|
|
217
218
|
filterOption: filterOptions,
|
|
218
219
|
showSearch: true,
|
|
220
|
+
defaultValue: props.defaultValue,
|
|
219
221
|
className: props.className,
|
|
220
222
|
onChange: handleChange,
|
|
223
|
+
value: props.value,
|
|
221
224
|
mode: props.mode
|
|
222
225
|
}
|
|
223
226
|
));
|
|
@@ -837,7 +840,7 @@ var import_dayjs = __toESM(require("dayjs"));
|
|
|
837
840
|
var import_customParseFormat = __toESM(require("dayjs/plugin/customParseFormat.js"));
|
|
838
841
|
import_dayjs.default.extend(import_customParseFormat.default);
|
|
839
842
|
var DatePickerElement = (props) => {
|
|
840
|
-
const [dateState, setDateState] = (0, import_react20.useState)(
|
|
843
|
+
const [dateState, setDateState] = (0, import_react20.useState)(props.value);
|
|
841
844
|
const handleChange = (date, dateString) => {
|
|
842
845
|
if (date) {
|
|
843
846
|
setDateState(date);
|
|
@@ -1019,6 +1022,7 @@ var DropDownGroup = (props) => {
|
|
|
1019
1022
|
className: props.className,
|
|
1020
1023
|
filterOption: firstFilterOptions,
|
|
1021
1024
|
placeholder: props.firstPlaceholder,
|
|
1025
|
+
value: props.value,
|
|
1022
1026
|
showSearch: true
|
|
1023
1027
|
}
|
|
1024
1028
|
), /* @__PURE__ */ import_react24.default.createElement("div", { style: { borderLeft: "1px solid gray", height: "33px" } }), /* @__PURE__ */ import_react24.default.createElement(
|
|
@@ -1030,6 +1034,7 @@ var DropDownGroup = (props) => {
|
|
|
1030
1034
|
className: props.className,
|
|
1031
1035
|
filterOption: secondFilterOptions,
|
|
1032
1036
|
placeholder: props.secondPlaceholder,
|
|
1037
|
+
value: props.value,
|
|
1033
1038
|
showSearch: true
|
|
1034
1039
|
}
|
|
1035
1040
|
)));
|
package/dist/index.mjs
CHANGED
|
@@ -111,6 +111,7 @@ var TextareaElement = (props) => {
|
|
|
111
111
|
autoSize: { minRows: props.minRows ? props.minRows : defaultMinRows, maxRows: props.maxRows ? props.maxRows : defaultMaxRows },
|
|
112
112
|
className: props.className,
|
|
113
113
|
name: props.name,
|
|
114
|
+
value: props.value,
|
|
114
115
|
showCount: true,
|
|
115
116
|
onChange: (e) => {
|
|
116
117
|
handleChange(e);
|
|
@@ -147,8 +148,10 @@ var SelectElement = (props) => {
|
|
|
147
148
|
allowClear: true,
|
|
148
149
|
filterOption: filterOptions,
|
|
149
150
|
showSearch: true,
|
|
151
|
+
defaultValue: props.defaultValue,
|
|
150
152
|
className: props.className,
|
|
151
153
|
onChange: handleChange,
|
|
154
|
+
value: props.value,
|
|
152
155
|
mode: props.mode
|
|
153
156
|
}
|
|
154
157
|
));
|
|
@@ -768,7 +771,7 @@ import dayjs from "dayjs";
|
|
|
768
771
|
import customParseFormat from "dayjs/plugin/customParseFormat.js";
|
|
769
772
|
dayjs.extend(customParseFormat);
|
|
770
773
|
var DatePickerElement = (props) => {
|
|
771
|
-
const [dateState, setDateState] = useState6(
|
|
774
|
+
const [dateState, setDateState] = useState6(props.value);
|
|
772
775
|
const handleChange = (date, dateString) => {
|
|
773
776
|
if (date) {
|
|
774
777
|
setDateState(date);
|
|
@@ -950,6 +953,7 @@ var DropDownGroup = (props) => {
|
|
|
950
953
|
className: props.className,
|
|
951
954
|
filterOption: firstFilterOptions,
|
|
952
955
|
placeholder: props.firstPlaceholder,
|
|
956
|
+
value: props.value,
|
|
953
957
|
showSearch: true
|
|
954
958
|
}
|
|
955
959
|
), /* @__PURE__ */ React24.createElement("div", { style: { borderLeft: "1px solid gray", height: "33px" } }), /* @__PURE__ */ React24.createElement(
|
|
@@ -961,6 +965,7 @@ var DropDownGroup = (props) => {
|
|
|
961
965
|
className: props.className,
|
|
962
966
|
filterOption: secondFilterOptions,
|
|
963
967
|
placeholder: props.secondPlaceholder,
|
|
968
|
+
value: props.value,
|
|
964
969
|
showSearch: true
|
|
965
970
|
}
|
|
966
971
|
)));
|