@sustaina/shared-ui 1.62.0 → 1.62.1
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 +11 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4471,7 +4471,10 @@ var FieldSelect = ({ row, fieldOptions, onChangeField }) => /* @__PURE__ */ jsx(
|
|
|
4471
4471
|
children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Select field" })
|
|
4472
4472
|
}
|
|
4473
4473
|
),
|
|
4474
|
-
/* @__PURE__ */ jsx(SelectContent, { className: "w-full min-w-[unset]", children: fieldOptions.map((f) => /* @__PURE__ */ jsx(SelectItem, { value: f.value, children: f.
|
|
4474
|
+
/* @__PURE__ */ jsx(SelectContent, { className: "w-full min-w-[unset]", children: fieldOptions.map((f) => /* @__PURE__ */ jsx(SelectItem, { value: f.value, children: f.decorator ? /* @__PURE__ */ jsxs("span", { className: "flex items-center", children: [
|
|
4475
|
+
f.decorator,
|
|
4476
|
+
/* @__PURE__ */ jsx("span", { className: cn(f.labelStyle), children: f.label })
|
|
4477
|
+
] }) : f.label }, f.value)) })
|
|
4475
4478
|
] }) });
|
|
4476
4479
|
|
|
4477
4480
|
// src/components/advanceSearch/types.ts
|
|
@@ -7375,6 +7378,13 @@ var ConditionDropdownInput = ({ row, control, fieldSchema, onClear }) => {
|
|
|
7375
7378
|
showClear: hasValue,
|
|
7376
7379
|
showSearch: true,
|
|
7377
7380
|
virtual: false,
|
|
7381
|
+
labelRender: (option) => {
|
|
7382
|
+
const opt = option;
|
|
7383
|
+
return /* @__PURE__ */ jsxs("span", { className: "flex items-center", children: [
|
|
7384
|
+
opt.decorator,
|
|
7385
|
+
/* @__PURE__ */ jsx("span", { className: cn(opt.labelStyle), children: opt.label })
|
|
7386
|
+
] });
|
|
7387
|
+
},
|
|
7378
7388
|
onSelect: (val) => field.onChange(val),
|
|
7379
7389
|
onClear: handleClear
|
|
7380
7390
|
}
|