@apexcura/ui-components 0.0.15-Beta43 → 0.0.15-Beta45

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 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
  ));
@@ -257,7 +260,6 @@ var RadioElement = (props) => {
257
260
  handleChange(option);
258
261
  },
259
262
  key: option.value,
260
- value: option.value,
261
263
  disabled: isDisabled && selectedValue !== option.value,
262
264
  className: getButtonStyle(option),
263
265
  style: { pointerEvents: isDisabled && selectedValue !== option.value ? "none" : "auto" }
@@ -837,7 +839,7 @@ var import_dayjs = __toESM(require("dayjs"));
837
839
  var import_customParseFormat = __toESM(require("dayjs/plugin/customParseFormat.js"));
838
840
  import_dayjs.default.extend(import_customParseFormat.default);
839
841
  var DatePickerElement = (props) => {
840
- const [dateState, setDateState] = (0, import_react20.useState)("");
842
+ const [dateState, setDateState] = (0, import_react20.useState)(props.value);
841
843
  const handleChange = (date, dateString) => {
842
844
  if (date) {
843
845
  setDateState(date);
@@ -1019,6 +1021,7 @@ var DropDownGroup = (props) => {
1019
1021
  className: props.className,
1020
1022
  filterOption: firstFilterOptions,
1021
1023
  placeholder: props.firstPlaceholder,
1024
+ value: props.value,
1022
1025
  showSearch: true
1023
1026
  }
1024
1027
  ), /* @__PURE__ */ import_react24.default.createElement("div", { style: { borderLeft: "1px solid gray", height: "33px" } }), /* @__PURE__ */ import_react24.default.createElement(
@@ -1030,6 +1033,7 @@ var DropDownGroup = (props) => {
1030
1033
  className: props.className,
1031
1034
  filterOption: secondFilterOptions,
1032
1035
  placeholder: props.secondPlaceholder,
1036
+ value: props.value,
1033
1037
  showSearch: true
1034
1038
  }
1035
1039
  )));
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
  ));
@@ -188,7 +191,6 @@ var RadioElement = (props) => {
188
191
  handleChange(option);
189
192
  },
190
193
  key: option.value,
191
- value: option.value,
192
194
  disabled: isDisabled && selectedValue !== option.value,
193
195
  className: getButtonStyle(option),
194
196
  style: { pointerEvents: isDisabled && selectedValue !== option.value ? "none" : "auto" }
@@ -768,7 +770,7 @@ import dayjs from "dayjs";
768
770
  import customParseFormat from "dayjs/plugin/customParseFormat.js";
769
771
  dayjs.extend(customParseFormat);
770
772
  var DatePickerElement = (props) => {
771
- const [dateState, setDateState] = useState6("");
773
+ const [dateState, setDateState] = useState6(props.value);
772
774
  const handleChange = (date, dateString) => {
773
775
  if (date) {
774
776
  setDateState(date);
@@ -950,6 +952,7 @@ var DropDownGroup = (props) => {
950
952
  className: props.className,
951
953
  filterOption: firstFilterOptions,
952
954
  placeholder: props.firstPlaceholder,
955
+ value: props.value,
953
956
  showSearch: true
954
957
  }
955
958
  ), /* @__PURE__ */ React24.createElement("div", { style: { borderLeft: "1px solid gray", height: "33px" } }), /* @__PURE__ */ React24.createElement(
@@ -961,6 +964,7 @@ var DropDownGroup = (props) => {
961
964
  className: props.className,
962
965
  filterOption: secondFilterOptions,
963
966
  placeholder: props.secondPlaceholder,
967
+ value: props.value,
964
968
  showSearch: true
965
969
  }
966
970
  )));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.15-Beta43",
3
+ "version": "0.0.15-Beta45",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",