unifyedx-storybook-new 0.1.70 → 0.1.72
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.
|
@@ -75839,10 +75839,7 @@ function DataTableRenderer({ item, data: initialData, updateHandler, validationE
|
|
|
75839
75839
|
case "select":
|
|
75840
75840
|
case "dropdown":
|
|
75841
75841
|
return (props, rowIndex) => {
|
|
75842
|
-
const
|
|
75843
|
-
const handleOpen = () => {
|
|
75844
|
-
setOptions(getDynamicOptions(field));
|
|
75845
|
-
};
|
|
75842
|
+
const options = getDynamicOptions(field);
|
|
75846
75843
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
75847
75844
|
/* @__PURE__ */ jsx(
|
|
75848
75845
|
Select,
|
|
@@ -75850,7 +75847,6 @@ function DataTableRenderer({ item, data: initialData, updateHandler, validationE
|
|
|
75850
75847
|
value: props[field.key] || "",
|
|
75851
75848
|
onChange: (value) => updateFieldValue(field, rowIndex, value),
|
|
75852
75849
|
options,
|
|
75853
|
-
onOpen: handleOpen,
|
|
75854
75850
|
placeholder: field.placeholder || `Select ${field.label}`,
|
|
75855
75851
|
required: field.required,
|
|
75856
75852
|
className: `w-full ${getFieldError(field, rowIndex) ? "border-red-500" : ""}`
|