@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.d.cts
CHANGED
|
@@ -464,7 +464,7 @@ declare function CheckBoxBox({ checked, indeterminate, disabled, className }: Ch
|
|
|
464
464
|
* @tokens text-micro, text-control-caption, rounded-control, rounded-card, border-border-default, border-border-strong,
|
|
465
465
|
* bg-surface, bg-input, bg-subtle, bg-ai-tint, bg-brand-primaryAction, text-brand-onprimary,
|
|
466
466
|
* shadow-overlay, text-text-primary, text-text-secondary, text-text-tertiary,
|
|
467
|
-
* hover:bg-subtle, hover:text-text-primary, focus-visible:outline-border-focus, text-dense
|
|
467
|
+
* hover:bg-subtle, hover:text-text-primary, focus-visible:outline-border-focus, text-dense, text-panel-title
|
|
468
468
|
* @dependencies lucide-react
|
|
469
469
|
* @behavior Escape and outside-click both close the popup. Opening always
|
|
470
470
|
* resets the draft (shortcut/start/end/visible month) to the last committed
|
package/dist/index.d.ts
CHANGED
|
@@ -464,7 +464,7 @@ declare function CheckBoxBox({ checked, indeterminate, disabled, className }: Ch
|
|
|
464
464
|
* @tokens text-micro, text-control-caption, rounded-control, rounded-card, border-border-default, border-border-strong,
|
|
465
465
|
* bg-surface, bg-input, bg-subtle, bg-ai-tint, bg-brand-primaryAction, text-brand-onprimary,
|
|
466
466
|
* shadow-overlay, text-text-primary, text-text-secondary, text-text-tertiary,
|
|
467
|
-
* hover:bg-subtle, hover:text-text-primary, focus-visible:outline-border-focus, text-dense
|
|
467
|
+
* hover:bg-subtle, hover:text-text-primary, focus-visible:outline-border-focus, text-dense, text-panel-title
|
|
468
468
|
* @dependencies lucide-react
|
|
469
469
|
* @behavior Escape and outside-click both close the popup. Opening always
|
|
470
470
|
* resets the draft (shortcut/start/end/visible month) to the last committed
|
package/dist/index.js
CHANGED
|
@@ -137,7 +137,7 @@ function chipTriggerClass(_variant = "box") {
|
|
|
137
137
|
function ChipContent({ caption, value, icon }) {
|
|
138
138
|
const stack = /* @__PURE__ */ jsxs3("span", { className: "flex flex-col gap-1 text-left leading-none", children: [
|
|
139
139
|
/* @__PURE__ */ jsx3("span", { className: "text-control-caption leading-none uppercase tracking-wide text-text-tertiary", children: caption }),
|
|
140
|
-
/* @__PURE__ */ jsx3("span", { className: "text-xs font-medium text-text-primary", children: value })
|
|
140
|
+
/* @__PURE__ */ jsx3("span", { className: "text-xs leading-none font-medium text-text-primary", children: value })
|
|
141
141
|
] });
|
|
142
142
|
if (icon) {
|
|
143
143
|
return /* @__PURE__ */ jsxs3("span", { className: "flex items-center gap-2", children: [
|
|
@@ -944,7 +944,7 @@ function DateRangeFilter({
|
|
|
944
944
|
icon && /* @__PURE__ */ jsx8("span", { className: "shrink-0 text-text-tertiary", children: icon }),
|
|
945
945
|
/* @__PURE__ */ jsxs7("span", { className: "flex flex-col gap-1 text-left leading-none", children: [
|
|
946
946
|
/* @__PURE__ */ jsx8("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 }),
|
|
947
|
-
/* @__PURE__ */ jsxs7("span", { className: "text-xs font-medium text-text-primary", children: [
|
|
947
|
+
/* @__PURE__ */ jsxs7("span", { className: "text-xs leading-none font-medium text-text-primary", children: [
|
|
948
948
|
displayValue,
|
|
949
949
|
compareLabel(appliedCmp) && /* @__PURE__ */ jsxs7("span", { className: "font-normal text-text-secondary", children: [
|
|
950
950
|
" \xB7 vs ",
|
|
@@ -989,7 +989,7 @@ function DateRangeFilter({
|
|
|
989
989
|
return /* @__PURE__ */ jsxs7("div", { className: "w-[252px]", children: [
|
|
990
990
|
/* @__PURE__ */ jsxs7("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
991
991
|
offset === 0 ? /* @__PURE__ */ jsx8(NavBtn, { onClick: () => setLeftMonth(addMonths(leftMonth, -1)), "aria-label": "Previous month", children: /* @__PURE__ */ jsx8(ChevronLeft, { size: 16 }) }) : /* @__PURE__ */ jsx8("span", { className: "h-7 w-7" }),
|
|
992
|
-
/* @__PURE__ */ jsxs7("span", { className: "text-
|
|
992
|
+
/* @__PURE__ */ jsxs7("span", { className: "text-panel-title font-semibold text-text-primary", children: [
|
|
993
993
|
MONTHS[m.getMonth()],
|
|
994
994
|
" ",
|
|
995
995
|
m.getFullYear()
|
|
@@ -1511,7 +1511,7 @@ function ModeRow({
|
|
|
1511
1511
|
] }),
|
|
1512
1512
|
selected && /* @__PURE__ */ jsx9(Check3, { size: 16, strokeWidth: 2.5, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" })
|
|
1513
1513
|
] }),
|
|
1514
|
-
/* @__PURE__ */ jsx9("span", { id: descId, className: "block text-
|
|
1514
|
+
/* @__PURE__ */ jsx9("span", { id: descId, className: "block text-xs leading-snug text-text-secondary", children: description })
|
|
1515
1515
|
]
|
|
1516
1516
|
}
|
|
1517
1517
|
);
|
|
@@ -1583,7 +1583,7 @@ function RowInfoTip({ text }) {
|
|
|
1583
1583
|
{
|
|
1584
1584
|
id,
|
|
1585
1585
|
hidden: !open,
|
|
1586
|
-
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-
|
|
1586
|
+
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",
|
|
1587
1587
|
children: text
|
|
1588
1588
|
}
|
|
1589
1589
|
)
|
|
@@ -3307,7 +3307,7 @@ function PublisherBreakdownList({ rows, defaultVisibleCount = 10, padded = true,
|
|
|
3307
3307
|
/* @__PURE__ */ jsx28("span", { className: "text-sm font-semibold text-text-primary", children: p.brand }),
|
|
3308
3308
|
p.tags.map((t) => /* @__PURE__ */ jsx28(BreakdownTag, { children: t }, t))
|
|
3309
3309
|
] }),
|
|
3310
|
-
/* @__PURE__ */ jsx28("div", { className: "truncate text-
|
|
3310
|
+
/* @__PURE__ */ jsx28("div", { className: "truncate text-micro text-text-tertiary", children: p.owner })
|
|
3311
3311
|
] })
|
|
3312
3312
|
] }),
|
|
3313
3313
|
/* @__PURE__ */ jsx28(MetricCells, { spendN: p.spendN, yoy: p.yoy })
|
|
@@ -4103,7 +4103,7 @@ function DateRangePicker({
|
|
|
4103
4103
|
children: [
|
|
4104
4104
|
/* @__PURE__ */ jsxs35("span", { className: "flex flex-col gap-1 text-left leading-none", children: [
|
|
4105
4105
|
/* @__PURE__ */ jsx39("span", { className: "text-control-caption leading-none text-text-tertiary", children: spanLabel2(value, end, formatDate, formatRange) }),
|
|
4106
|
-
/* @__PURE__ */ jsx39("span", { className: "text-xs font-medium text-text-primary", children: value })
|
|
4106
|
+
/* @__PURE__ */ jsx39("span", { className: "text-xs leading-none font-medium text-text-primary", children: value })
|
|
4107
4107
|
] }),
|
|
4108
4108
|
/* @__PURE__ */ jsx39(ChevronDown9, { size: 14, "aria-hidden": "true", className: cn("shrink-0 text-text-secondary transition-transform", open && "rotate-180") })
|
|
4109
4109
|
]
|