@apexcura/ui-components 0.0.8-Beta12 → 0.0.8-Beta14

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.d.mts CHANGED
@@ -18,7 +18,7 @@ type ElementType = {
18
18
  maxLength?: number;
19
19
  fieldNames?: any[];
20
20
  onChange?: (value: string | number | boolean | any[]) => void;
21
- dropDownOptions?: any[];
21
+ dropDownOptions: any[];
22
22
  };
23
23
 
24
24
  interface ElementExecuterProps$3 extends ElementType {
package/dist/index.d.ts CHANGED
@@ -18,7 +18,7 @@ type ElementType = {
18
18
  maxLength?: number;
19
19
  fieldNames?: any[];
20
20
  onChange?: (value: string | number | boolean | any[]) => void;
21
- dropDownOptions?: any[];
21
+ dropDownOptions: any[];
22
22
  };
23
23
 
24
24
  interface ElementExecuterProps$3 extends ElementType {
package/dist/index.js CHANGED
@@ -302,7 +302,6 @@ var onSearch = (value) => {
302
302
  };
303
303
  var filterOption = (input, option) => (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
304
304
  var SingleSelectElement = (props) => {
305
- console.log("dropdownoptions....................", props.dropDownOptions);
306
305
  const handleChange = (value) => {
307
306
  if (props.onChange) {
308
307
  props.onChange(value);
@@ -317,7 +316,7 @@ var SingleSelectElement = (props) => {
317
316
  onChange: handleChange,
318
317
  onSearch,
319
318
  filterOption,
320
- options: []
319
+ options: props.dropDownOptions?.map((eachOption) => ({ label: String(eachOption.title), value: String(eachOption.title) }))
321
320
  }
322
321
  );
323
322
  };
@@ -336,7 +335,8 @@ var MultipleSelectElement = (props) => {
336
335
  {
337
336
  mode: "multiple",
338
337
  placeholder: props.placeholder,
339
- onChange: handleChange
338
+ onChange: handleChange,
339
+ options: props.dropDownOptions?.map((eachOption) => ({ label: String(eachOption.title), value: String(eachOption.title) }))
340
340
  }
341
341
  );
342
342
  };
package/dist/index.mjs CHANGED
@@ -256,7 +256,6 @@ var onSearch = (value) => {
256
256
  };
257
257
  var filterOption = (input, option) => (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
258
258
  var SingleSelectElement = (props) => {
259
- console.log("dropdownoptions....................", props.dropDownOptions);
260
259
  const handleChange = (value) => {
261
260
  if (props.onChange) {
262
261
  props.onChange(value);
@@ -271,7 +270,7 @@ var SingleSelectElement = (props) => {
271
270
  onChange: handleChange,
272
271
  onSearch,
273
272
  filterOption,
274
- options: []
273
+ options: props.dropDownOptions?.map((eachOption) => ({ label: String(eachOption.title), value: String(eachOption.title) }))
275
274
  }
276
275
  );
277
276
  };
@@ -290,7 +289,8 @@ var MultipleSelectElement = (props) => {
290
289
  {
291
290
  mode: "multiple",
292
291
  placeholder: props.placeholder,
293
- onChange: handleChange
292
+ onChange: handleChange,
293
+ options: props.dropDownOptions?.map((eachOption) => ({ label: String(eachOption.title), value: String(eachOption.title) }))
294
294
  }
295
295
  );
296
296
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.8-Beta12",
3
+ "version": "0.0.8-Beta14",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",