@mediaradar/design-components 0.45.1 → 0.45.3
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 +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -228,7 +228,7 @@ function chipTriggerClass(_variant = "box") {
|
|
|
228
228
|
function ChipContent({ caption, value, icon }) {
|
|
229
229
|
const stack = /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "flex flex-col gap-1 text-left leading-none", children: [
|
|
230
230
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-control-caption leading-none uppercase tracking-wide text-text-tertiary", children: caption }),
|
|
231
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-xs font-medium text-text-primary", children: value })
|
|
231
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-xs leading-none font-medium text-text-primary", children: value })
|
|
232
232
|
] });
|
|
233
233
|
if (icon) {
|
|
234
234
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "flex items-center gap-2", children: [
|
|
@@ -1035,7 +1035,7 @@ function DateRangeFilter({
|
|
|
1035
1035
|
icon && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "shrink-0 text-text-tertiary", children: icon }),
|
|
1036
1036
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "flex flex-col gap-1 text-left leading-none", children: [
|
|
1037
1037
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: showDates && displayDatesLine ? "text-micro leading-none text-text-tertiary" : "text-control-caption leading-none uppercase tracking-wide text-text-tertiary", children: showDates && displayDatesLine ? displayDatesLine : caption }),
|
|
1038
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "text-xs font-medium text-text-primary", children: [
|
|
1038
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "text-xs leading-none font-medium text-text-primary", children: [
|
|
1039
1039
|
displayValue,
|
|
1040
1040
|
compareLabel(appliedCmp) && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "font-normal text-text-secondary", children: [
|
|
1041
1041
|
" \xB7 vs ",
|
|
@@ -1080,7 +1080,7 @@ function DateRangeFilter({
|
|
|
1080
1080
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "w-[252px]", children: [
|
|
1081
1081
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
1082
1082
|
offset === 0 ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(NavBtn, { onClick: () => setLeftMonth(addMonths(leftMonth, -1)), "aria-label": "Previous month", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react6.ChevronLeft, { size: 16 }) }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "h-7 w-7" }),
|
|
1083
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "text-
|
|
1083
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "text-panel-title font-semibold text-text-primary", children: [
|
|
1084
1084
|
MONTHS[m.getMonth()],
|
|
1085
1085
|
" ",
|
|
1086
1086
|
m.getFullYear()
|
|
@@ -1602,7 +1602,7 @@ function ModeRow({
|
|
|
1602
1602
|
] }),
|
|
1603
1603
|
selected && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react7.Check, { size: 16, strokeWidth: 2.5, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" })
|
|
1604
1604
|
] }),
|
|
1605
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { id: descId, className: "block text-
|
|
1605
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { id: descId, className: "block text-xs leading-snug text-text-secondary", children: description })
|
|
1606
1606
|
]
|
|
1607
1607
|
}
|
|
1608
1608
|
);
|
|
@@ -1674,7 +1674,7 @@ function RowInfoTip({ text }) {
|
|
|
1674
1674
|
{
|
|
1675
1675
|
id,
|
|
1676
1676
|
hidden: !open,
|
|
1677
|
-
className: "absolute left-0 top-[calc(100%+6px)] z-40 w-[220px] rounded-control border border-border-default bg-surface px-2.5 py-1.5 text-
|
|
1677
|
+
className: "absolute left-0 top-[calc(100%+6px)] z-40 w-[220px] rounded-control border border-border-default bg-surface px-2.5 py-1.5 text-xs font-normal leading-snug text-text-secondary shadow-overlay",
|
|
1678
1678
|
children: text
|
|
1679
1679
|
}
|
|
1680
1680
|
)
|
|
@@ -3398,7 +3398,7 @@ function PublisherBreakdownList({ rows, defaultVisibleCount = 10, padded = true,
|
|
|
3398
3398
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-sm font-semibold text-text-primary", children: p.brand }),
|
|
3399
3399
|
p.tags.map((t) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(BreakdownTag, { children: t }, t))
|
|
3400
3400
|
] }),
|
|
3401
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "truncate text-
|
|
3401
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "truncate text-micro text-text-tertiary", children: p.owner })
|
|
3402
3402
|
] })
|
|
3403
3403
|
] }),
|
|
3404
3404
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(MetricCells, { spendN: p.spendN, yoy: p.yoy })
|
|
@@ -4194,7 +4194,7 @@ function DateRangePicker({
|
|
|
4194
4194
|
children: [
|
|
4195
4195
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: "flex flex-col gap-1 text-left leading-none", children: [
|
|
4196
4196
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "text-control-caption leading-none text-text-tertiary", children: spanLabel2(value, end, formatDate, formatRange) }),
|
|
4197
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "text-xs font-medium text-text-primary", children: value })
|
|
4197
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "text-xs leading-none font-medium text-text-primary", children: value })
|
|
4198
4198
|
] }),
|
|
4199
4199
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react22.ChevronDown, { size: 14, "aria-hidden": "true", className: cn("shrink-0 text-text-secondary transition-transform", open && "rotate-180") })
|
|
4200
4200
|
]
|