@mediaradar/design-components 0.18.0 → 0.18.2
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 +15 -4
- package/dist/index.d.ts +15 -4
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.cjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
"use strict";
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -2421,7 +2422,8 @@ function SelectionPicker({
|
|
|
2421
2422
|
"grid items-center gap-2 px-3 py-2.5",
|
|
2422
2423
|
rowGridCols,
|
|
2423
2424
|
isLocked ? "cursor-default opacity-50" : "cursor-pointer hover:bg-subtle",
|
|
2424
|
-
|
|
2425
|
+
// 70%, not lower: selected rows' text must keep 4.5:1 contrast.
|
|
2426
|
+
!isLocked && isSel && "opacity-70"
|
|
2425
2427
|
),
|
|
2426
2428
|
children: [
|
|
2427
2429
|
isLocked ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
@@ -2656,7 +2658,6 @@ function FilterDropdown({
|
|
|
2656
2658
|
ref: btnRef,
|
|
2657
2659
|
type: "button",
|
|
2658
2660
|
onClick: () => setOpen((v) => !v),
|
|
2659
|
-
"aria-haspopup": "menu",
|
|
2660
2661
|
"aria-expanded": open,
|
|
2661
2662
|
"data-testid": testIdPrefix && `${testIdPrefix}-filter-${filterSlug}`,
|
|
2662
2663
|
className: "inline-flex h-9 items-center gap-1.5 whitespace-nowrap rounded-control border border-border-default bg-input px-3 text-[13px] font-medium text-text-secondary transition-colors hover:bg-subtle",
|
|
@@ -2671,7 +2672,7 @@ function FilterDropdown({
|
|
|
2671
2672
|
"div",
|
|
2672
2673
|
{
|
|
2673
2674
|
ref: menuRef,
|
|
2674
|
-
role: "
|
|
2675
|
+
role: "group",
|
|
2675
2676
|
"aria-label": filter.label,
|
|
2676
2677
|
style: { top: pos.top, left: pos.left },
|
|
2677
2678
|
className: "fixed z-[80] min-w-[220px] rounded-card border border-border-default bg-surface p-2 shadow-overlay",
|