@mediaradar/design-components 0.63.0 → 0.63.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/approved-components.json +1 -1
- package/dist/index.cjs +14 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -18
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -6475,20 +6475,7 @@ var MenuItem = (0, import_react36.forwardRef)(
|
|
|
6475
6475
|
({ className, testIdPrefix, icon, trailing, description, submenu, checked, danger, disabled, asChild = false, children, ...props }, ref) => {
|
|
6476
6476
|
const Comp = asChild ? import_react_slot2.Slot : "button";
|
|
6477
6477
|
const radio = checked !== void 0;
|
|
6478
|
-
|
|
6479
|
-
icon && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { "aria-hidden": "true", className: cn("flex shrink-0", danger ? "text-text-danger" : "text-text-secondary"), children: icon }),
|
|
6480
|
-
asChild ? (
|
|
6481
|
-
// The link's own text lands here; the link becomes the row.
|
|
6482
|
-
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react_slot2.Slottable, { children })
|
|
6483
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("span", { className: "min-w-0 flex-1", children: [
|
|
6484
|
-
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "block truncate", children }),
|
|
6485
|
-
description && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "block truncate text-xs text-text-tertiary", children: description })
|
|
6486
|
-
] }),
|
|
6487
|
-
trailing && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "ml-auto flex shrink-0 items-center text-xs text-text-secondary", children: trailing }),
|
|
6488
|
-
radio && checked && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_lucide_react35.Check, { size: 16, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" }),
|
|
6489
|
-
submenu && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_lucide_react35.ChevronRight, { size: 16, "aria-hidden": "true", className: "shrink-0 text-text-secondary" })
|
|
6490
|
-
] });
|
|
6491
|
-
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
6478
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
6492
6479
|
Comp,
|
|
6493
6480
|
{
|
|
6494
6481
|
ref,
|
|
@@ -6508,7 +6495,19 @@ var MenuItem = (0, import_react36.forwardRef)(
|
|
|
6508
6495
|
className
|
|
6509
6496
|
),
|
|
6510
6497
|
...props,
|
|
6511
|
-
children:
|
|
6498
|
+
children: [
|
|
6499
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { "aria-hidden": "true", className: cn("flex shrink-0", danger ? "text-text-danger" : "text-text-secondary"), children: icon }),
|
|
6500
|
+
asChild ? (
|
|
6501
|
+
// The link's own text lands here; the link becomes the row.
|
|
6502
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react_slot2.Slottable, { children })
|
|
6503
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("span", { className: "min-w-0 flex-1", children: [
|
|
6504
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "block truncate", children }),
|
|
6505
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "block truncate text-xs text-text-tertiary", children: description })
|
|
6506
|
+
] }),
|
|
6507
|
+
trailing && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "ml-auto flex shrink-0 items-center text-xs text-text-secondary", children: trailing }),
|
|
6508
|
+
radio && checked && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_lucide_react35.Check, { size: 16, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" }),
|
|
6509
|
+
submenu && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_lucide_react35.ChevronRight, { size: 16, "aria-hidden": "true", className: "shrink-0 text-text-secondary" })
|
|
6510
|
+
]
|
|
6512
6511
|
}
|
|
6513
6512
|
);
|
|
6514
6513
|
}
|