@farmzone/fz-react-ui 1.1.7 → 1.1.8
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.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8278,7 +8278,8 @@ function MultiTabPill(props) {
|
|
|
8278
8278
|
menuItems,
|
|
8279
8279
|
groupColor
|
|
8280
8280
|
} = props;
|
|
8281
|
-
const
|
|
8281
|
+
const hasMenu = (menuItems?.length ?? 0) > 0;
|
|
8282
|
+
const hasPrefix = icon != null || hasMenu;
|
|
8282
8283
|
const outlinedByGroup = isActive && !!groupColor;
|
|
8283
8284
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8284
8285
|
"div",
|
|
@@ -8308,7 +8309,7 @@ function MultiTabPill(props) {
|
|
|
8308
8309
|
style: accentColor ? { backgroundColor: accentColor } : void 0
|
|
8309
8310
|
}
|
|
8310
8311
|
),
|
|
8311
|
-
hasPrefix && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8312
|
+
hasPrefix && (hasMenu ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
8312
8313
|
"span",
|
|
8313
8314
|
{
|
|
8314
8315
|
className: "flex flex-shrink-0 items-center",
|
|
@@ -8316,7 +8317,7 @@ function MultiTabPill(props) {
|
|
|
8316
8317
|
onClick: (e) => e.stopPropagation(),
|
|
8317
8318
|
children: /* @__PURE__ */ jsxRuntime.jsx(TabIconMenu, { icon, items: menuItems ?? [], label: tab.label })
|
|
8318
8319
|
}
|
|
8319
|
-
),
|
|
8320
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex flex-shrink-0 items-center [&_*]:cursor-[inherit]!", children: /* @__PURE__ */ jsxRuntime.jsx(TabIconMenu, { icon, items: [], label: tab.label }) })),
|
|
8320
8321
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: `${s.tabTextSize} max-w-35 truncate leading-none ${isActive ? s.activeText : s.inactiveText}`, children: tab.label }),
|
|
8321
8322
|
showClose && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8322
8323
|
"button",
|