@trackunit/react-form-components 0.1.33 → 0.1.35
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/index.cjs.js +2 -2
- package/index.esm.js +2 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -357,9 +357,9 @@ const cvaInputAction = cssClassVarianceUtilities.cvaMerge(["absolute", "end-0.5"
|
|
|
357
357
|
const DisabledForReasonsTip = ({ reasons, kind }) => {
|
|
358
358
|
const [t] = useTranslation();
|
|
359
359
|
if (!reasons || reasons.length === 0) {
|
|
360
|
-
jsxRuntime.jsx(reactComponents.Tooltip, { label: t("field.notEditable.tooltip"), children: jsxRuntime.jsx(reactComponents.Icon, { name: kind === "disabled" ? "QuestionMarkCircle" : "LockClosed", size: "small" }) });
|
|
360
|
+
return (jsxRuntime.jsx(reactComponents.Tooltip, { label: t("field.notEditable.tooltip"), children: jsxRuntime.jsx(reactComponents.Icon, { name: kind === "disabled" ? "QuestionMarkCircle" : "LockClosed", size: "small" }) }));
|
|
361
361
|
}
|
|
362
|
-
return (jsxRuntime.jsx(reactComponents.Tooltip, { label: jsxRuntime.jsx("ul", { className: typeof reasons === "string" ||
|
|
362
|
+
return (jsxRuntime.jsx(reactComponents.Tooltip, { label: jsxRuntime.jsx("ul", { className: typeof reasons === "string" || reasons.length === 1 ? "list-inside" : "list-disc", children: typeof reasons === "string" ? jsxRuntime.jsx("li", { children: reasons }) : reasons.map(reason => jsxRuntime.jsx("li", { children: reason }, reason)) }), placement: "top", children: jsxRuntime.jsx(reactComponents.Icon, { name: "LockClosed", size: "small" }) }));
|
|
363
363
|
};
|
|
364
364
|
|
|
365
365
|
/**
|
package/index.esm.js
CHANGED
|
@@ -338,9 +338,9 @@ const cvaInputAction = cvaMerge(["absolute", "end-0.5"], {
|
|
|
338
338
|
const DisabledForReasonsTip = ({ reasons, kind }) => {
|
|
339
339
|
const [t] = useTranslation();
|
|
340
340
|
if (!reasons || reasons.length === 0) {
|
|
341
|
-
jsx(Tooltip, { label: t("field.notEditable.tooltip"), children: jsx(Icon, { name: kind === "disabled" ? "QuestionMarkCircle" : "LockClosed", size: "small" }) });
|
|
341
|
+
return (jsx(Tooltip, { label: t("field.notEditable.tooltip"), children: jsx(Icon, { name: kind === "disabled" ? "QuestionMarkCircle" : "LockClosed", size: "small" }) }));
|
|
342
342
|
}
|
|
343
|
-
return (jsx(Tooltip, { label: jsx("ul", { className: typeof reasons === "string" ||
|
|
343
|
+
return (jsx(Tooltip, { label: jsx("ul", { className: typeof reasons === "string" || reasons.length === 1 ? "list-inside" : "list-disc", children: typeof reasons === "string" ? jsx("li", { children: reasons }) : reasons.map(reason => jsx("li", { children: reason }, reason)) }), placement: "top", children: jsx(Icon, { name: "LockClosed", size: "small" }) }));
|
|
344
344
|
};
|
|
345
345
|
|
|
346
346
|
/**
|