@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.js
CHANGED
|
@@ -6309,7 +6309,7 @@ var AllFiltersButton = forwardRef13(function AllFiltersButton2({ count = 0, open
|
|
|
6309
6309
|
import { forwardRef as forwardRef14 } from "react";
|
|
6310
6310
|
import { Slot as Slot2, Slottable } from "@radix-ui/react-slot";
|
|
6311
6311
|
import { Check as Check11, ChevronRight as ChevronRight8 } from "lucide-react";
|
|
6312
|
-
import {
|
|
6312
|
+
import { jsx as jsx63, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
6313
6313
|
var ROW_SELECTOR = '[role^="menuitem"]:not([aria-disabled="true"]):not(:disabled)';
|
|
6314
6314
|
function moveFocus(e) {
|
|
6315
6315
|
const keys = ["ArrowDown", "ArrowUp", "Home", "End"];
|
|
@@ -6343,20 +6343,7 @@ var MenuItem = forwardRef14(
|
|
|
6343
6343
|
({ className, testIdPrefix, icon, trailing, description, submenu, checked, danger, disabled, asChild = false, children, ...props }, ref) => {
|
|
6344
6344
|
const Comp = asChild ? Slot2 : "button";
|
|
6345
6345
|
const radio = checked !== void 0;
|
|
6346
|
-
|
|
6347
|
-
icon && /* @__PURE__ */ jsx63("span", { "aria-hidden": "true", className: cn("flex shrink-0", danger ? "text-text-danger" : "text-text-secondary"), children: icon }),
|
|
6348
|
-
asChild ? (
|
|
6349
|
-
// The link's own text lands here; the link becomes the row.
|
|
6350
|
-
/* @__PURE__ */ jsx63(Slottable, { children })
|
|
6351
|
-
) : /* @__PURE__ */ jsxs55("span", { className: "min-w-0 flex-1", children: [
|
|
6352
|
-
/* @__PURE__ */ jsx63("span", { className: "block truncate", children }),
|
|
6353
|
-
description && /* @__PURE__ */ jsx63("span", { className: "block truncate text-xs text-text-tertiary", children: description })
|
|
6354
|
-
] }),
|
|
6355
|
-
trailing && /* @__PURE__ */ jsx63("span", { className: "ml-auto flex shrink-0 items-center text-xs text-text-secondary", children: trailing }),
|
|
6356
|
-
radio && checked && /* @__PURE__ */ jsx63(Check11, { size: 16, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" }),
|
|
6357
|
-
submenu && /* @__PURE__ */ jsx63(ChevronRight8, { size: 16, "aria-hidden": "true", className: "shrink-0 text-text-secondary" })
|
|
6358
|
-
] });
|
|
6359
|
-
return /* @__PURE__ */ jsx63(
|
|
6346
|
+
return /* @__PURE__ */ jsxs55(
|
|
6360
6347
|
Comp,
|
|
6361
6348
|
{
|
|
6362
6349
|
ref,
|
|
@@ -6376,7 +6363,19 @@ var MenuItem = forwardRef14(
|
|
|
6376
6363
|
className
|
|
6377
6364
|
),
|
|
6378
6365
|
...props,
|
|
6379
|
-
children:
|
|
6366
|
+
children: [
|
|
6367
|
+
icon && /* @__PURE__ */ jsx63("span", { "aria-hidden": "true", className: cn("flex shrink-0", danger ? "text-text-danger" : "text-text-secondary"), children: icon }),
|
|
6368
|
+
asChild ? (
|
|
6369
|
+
// The link's own text lands here; the link becomes the row.
|
|
6370
|
+
/* @__PURE__ */ jsx63(Slottable, { children })
|
|
6371
|
+
) : /* @__PURE__ */ jsxs55("span", { className: "min-w-0 flex-1", children: [
|
|
6372
|
+
/* @__PURE__ */ jsx63("span", { className: "block truncate", children }),
|
|
6373
|
+
description && /* @__PURE__ */ jsx63("span", { className: "block truncate text-xs text-text-tertiary", children: description })
|
|
6374
|
+
] }),
|
|
6375
|
+
trailing && /* @__PURE__ */ jsx63("span", { className: "ml-auto flex shrink-0 items-center text-xs text-text-secondary", children: trailing }),
|
|
6376
|
+
radio && checked && /* @__PURE__ */ jsx63(Check11, { size: 16, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" }),
|
|
6377
|
+
submenu && /* @__PURE__ */ jsx63(ChevronRight8, { size: 16, "aria-hidden": "true", className: "shrink-0 text-text-secondary" })
|
|
6378
|
+
]
|
|
6380
6379
|
}
|
|
6381
6380
|
);
|
|
6382
6381
|
}
|
|
@@ -6508,12 +6507,12 @@ function defaultDateOrder(country) {
|
|
|
6508
6507
|
}
|
|
6509
6508
|
|
|
6510
6509
|
// src/Figure.tsx
|
|
6511
|
-
import { Fragment as
|
|
6510
|
+
import { Fragment as Fragment9, jsx as jsx64, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
6512
6511
|
function Figure({ value, kind = "money", missing, ...opts }) {
|
|
6513
6512
|
if (value === null || value === void 0 || Number.isNaN(value)) return /* @__PURE__ */ jsx64(NoValue, { reason: missing });
|
|
6514
6513
|
const short = kind === "money" ? formatMoney(value, opts) : formatCount(value, opts);
|
|
6515
6514
|
const full = kind === "money" ? formatMoneyFull(value, opts) : formatCountFull(value);
|
|
6516
|
-
if (short === full) return /* @__PURE__ */ jsx64(
|
|
6515
|
+
if (short === full) return /* @__PURE__ */ jsx64(Fragment9, { children: short });
|
|
6517
6516
|
return /* @__PURE__ */ jsxs56(Tooltip, { label: full, delay: 300, children: [
|
|
6518
6517
|
/* @__PURE__ */ jsx64("span", { "aria-hidden": "true", children: short }),
|
|
6519
6518
|
/* @__PURE__ */ jsx64("span", { className: "sr-only", children: full })
|