@apexcura/ui-components 0.0.8-Beta10 → 0.0.8-Beta12
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 +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -302,6 +302,7 @@ 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);
|
|
305
306
|
const handleChange = (value) => {
|
|
306
307
|
if (props.onChange) {
|
|
307
308
|
props.onChange(value);
|
|
@@ -316,7 +317,7 @@ var SingleSelectElement = (props) => {
|
|
|
316
317
|
onChange: handleChange,
|
|
317
318
|
onSearch,
|
|
318
319
|
filterOption,
|
|
319
|
-
options:
|
|
320
|
+
options: []
|
|
320
321
|
}
|
|
321
322
|
);
|
|
322
323
|
};
|
|
@@ -335,8 +336,7 @@ var MultipleSelectElement = (props) => {
|
|
|
335
336
|
{
|
|
336
337
|
mode: "multiple",
|
|
337
338
|
placeholder: props.placeholder,
|
|
338
|
-
onChange: handleChange
|
|
339
|
-
options: props.dropDownOptions?.map((eachOption) => ({ label: String(eachOption.title), value: String(eachOption.title) }))
|
|
339
|
+
onChange: handleChange
|
|
340
340
|
}
|
|
341
341
|
);
|
|
342
342
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -256,6 +256,7 @@ 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);
|
|
259
260
|
const handleChange = (value) => {
|
|
260
261
|
if (props.onChange) {
|
|
261
262
|
props.onChange(value);
|
|
@@ -270,7 +271,7 @@ var SingleSelectElement = (props) => {
|
|
|
270
271
|
onChange: handleChange,
|
|
271
272
|
onSearch,
|
|
272
273
|
filterOption,
|
|
273
|
-
options:
|
|
274
|
+
options: []
|
|
274
275
|
}
|
|
275
276
|
);
|
|
276
277
|
};
|
|
@@ -289,8 +290,7 @@ var MultipleSelectElement = (props) => {
|
|
|
289
290
|
{
|
|
290
291
|
mode: "multiple",
|
|
291
292
|
placeholder: props.placeholder,
|
|
292
|
-
onChange: handleChange
|
|
293
|
-
options: props.dropDownOptions?.map((eachOption) => ({ label: String(eachOption.title), value: String(eachOption.title) }))
|
|
293
|
+
onChange: handleChange
|
|
294
294
|
}
|
|
295
295
|
);
|
|
296
296
|
};
|