@mediaradar/design-components 0.18.6 → 0.18.7

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 CHANGED
@@ -309,7 +309,7 @@ function AdvertiserQuickFilter({
309
309
  "aria-label": caption,
310
310
  "data-testid": testIdPrefix && `${testIdPrefix}-popover`,
311
311
  children: [
312
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "border-b border-border-default p-2", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex h-9 items-center gap-2 rounded-control border border-border-default bg-input px-2.5 focus-within:border-border-focus focus-within:ring-2 focus-within:ring-border-focus/30", children: [
312
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "border-b border-border-default p-2", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex h-9 items-center gap-2 rounded-control border border-border-strong bg-input px-2.5 focus-within:border-border-focus focus-within:ring-2 focus-within:ring-border-focus/30", children: [
313
313
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react3.Search, { size: 14, className: "shrink-0 text-text-secondary", "aria-hidden": "true" }),
314
314
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
315
315
  "input",
@@ -968,7 +968,7 @@ function DateRangeFilter({
968
968
  function Field({ label, value }) {
969
969
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-1.5", children: [
970
970
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-[12px] font-medium text-text-secondary", children: label }),
971
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex h-10 min-w-[140px] items-center rounded-control border border-border-default bg-input px-3 text-[14px] font-medium text-text-primary", children: value })
971
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex h-10 min-w-[140px] items-center rounded-control border border-border-strong bg-input px-3 text-[14px] font-medium text-text-primary", children: value })
972
972
  ] });
973
973
  }
974
974
  function NavBtn({ children, onClick, ...rest }) {
@@ -2389,7 +2389,7 @@ function SelectionPicker({
2389
2389
  }) }),
2390
2390
  source === "search" && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex min-w-0 flex-col gap-3", children: [
2391
2391
  /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex flex-wrap items-center gap-2", children: [
2392
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex h-9 min-w-[200px] flex-1 items-center gap-2 rounded-control border border-border-default bg-input px-3", children: [
2392
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex h-9 min-w-[200px] flex-1 items-center gap-2 rounded-control border border-border-strong bg-input px-3", children: [
2393
2393
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react15.Search, { size: 15, className: "text-text-secondary", "aria-hidden": "true" }),
2394
2394
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2395
2395
  "input",
@@ -2703,7 +2703,7 @@ function FilterDropdown({
2703
2703
  onClick: () => setOpen((v) => !v),
2704
2704
  "aria-expanded": open,
2705
2705
  "data-testid": testIdPrefix && `${testIdPrefix}-filter-${filterSlug}`,
2706
- 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",
2706
+ className: "inline-flex h-9 items-center gap-1.5 whitespace-nowrap rounded-control border border-border-strong bg-input px-3 text-[13px] font-medium text-text-secondary transition-colors hover:bg-subtle",
2707
2707
  children: [
2708
2708
  label,
2709
2709
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react15.ChevronDown, { size: 13, "aria-hidden": "true", className: cx8("transition-transform", open && "rotate-180") })
@@ -2720,7 +2720,7 @@ function FilterDropdown({
2720
2720
  style: { top: pos.top, left: pos.left },
2721
2721
  className: "fixed z-[80] min-w-[220px] rounded-card border border-border-default bg-surface p-2 shadow-overlay",
2722
2722
  children: [
2723
- searchable && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "mb-1.5 flex h-8 items-center gap-2 rounded-control border border-border-default bg-input px-2.5", children: [
2723
+ searchable && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "mb-1.5 flex h-8 items-center gap-2 rounded-control border border-border-strong bg-input px-2.5", children: [
2724
2724
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react15.Search, { size: 14, className: "shrink-0 text-text-secondary", "aria-hidden": "true" }),
2725
2725
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2726
2726
  "input",
@@ -3060,7 +3060,7 @@ function NameListModal({
3060
3060
  value: name,
3061
3061
  onChange: (e) => setName(e.target.value),
3062
3062
  placeholder,
3063
- className: "h-10 rounded-control border border-border-default bg-input px-3 text-sm outline-hidden focus:border-brand-primaryAction"
3063
+ className: "h-10 rounded-control border border-border-strong bg-input px-3 text-sm outline-hidden focus:border-brand-primaryAction"
3064
3064
  }
3065
3065
  )
3066
3066
  ] }),
@@ -3083,13 +3083,12 @@ function NameListModal({
3083
3083
 
3084
3084
  // src/ChipTrigger.tsx
3085
3085
  var import_jsx_runtime29 = require("react/jsx-runtime");
3086
- function chipTriggerClass(variant = "box") {
3086
+ function chipTriggerClass(_variant = "box") {
3087
3087
  return cn(
3088
- "flex h-11 items-center gap-2 rounded-control border bg-input px-2.5 text-text-secondary transition-colors hover:bg-subtle hover:text-text-primary focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-border-focus",
3089
- // Both variants sit on the input fill. `inline` carries the darker stroke
3090
- // so it still reads as a control against the warm canvas with no boxed
3091
- // shell behind it.
3092
- variant === "inline" ? "border-border-strong" : "border-border-default"
3088
+ "flex h-11 items-center gap-2 rounded-control border border-border-strong bg-input px-2.5 text-text-secondary transition-colors hover:bg-subtle hover:text-text-primary focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-border-focus"
3089
+ // One stroke for every trigger: a `box` chip on the lighter default
3090
+ // border sat beside SelectFilter's darker one in the same row and read as
3091
+ // a different kind of control. The variant no longer changes anything.
3093
3092
  );
3094
3093
  }
3095
3094
  function ChipContent({ caption, value, icon }) {
@@ -3392,7 +3391,7 @@ function TablePagination({
3392
3391
  onChange: (e) => onPerPageChange(Number(e.target.value)),
3393
3392
  "aria-label": "Items per page",
3394
3393
  "data-testid": testIdPrefix && `${testIdPrefix}-per-page`,
3395
- className: "appearance-none rounded-control border border-border-default bg-input py-1 pl-2.5 pr-7 text-[13px] font-medium text-text-primary focus:outline focus:outline-2 focus:outline-border-focus",
3394
+ className: "appearance-none rounded-control border border-border-strong bg-input py-1 pl-2.5 pr-7 text-[13px] font-medium text-text-primary focus:outline focus:outline-2 focus:outline-border-focus",
3396
3395
  children: perPageOptions.map((n) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("option", { value: n, children: n }, n))
3397
3396
  }
3398
3397
  ),
@@ -3533,7 +3532,7 @@ function MiniSelect({ value, onChange, options }) {
3533
3532
  const opt = options.find((o) => String(o.value) === e.target.value);
3534
3533
  if (opt) onChange(opt.value);
3535
3534
  },
3536
- className: "rounded-control border border-border-default bg-input px-1.5 py-1 text-[12px] text-text-primary outline-hidden focus:border-border-focus",
3535
+ className: "rounded-control border border-border-strong bg-input px-1.5 py-1 text-[12px] text-text-primary outline-hidden focus:border-border-focus",
3537
3536
  children: options.map((o) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("option", { value: String(o.value), children: o.label }, String(o.value)))
3538
3537
  }
3539
3538
  );
@@ -3786,7 +3785,7 @@ function MultiSelectFilter({
3786
3785
  role: "dialog",
3787
3786
  "aria-label": caption,
3788
3787
  children: [
3789
- searchable && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "border-b border-border-default p-2", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex h-9 items-center gap-2 rounded-control border border-border-default bg-input px-2.5", children: [
3788
+ searchable && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "border-b border-border-default p-2", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex h-9 items-center gap-2 rounded-control border border-border-strong bg-input px-2.5", children: [
3790
3789
  /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react22.Search, { size: 14, className: "text-text-secondary", "aria-hidden": "true" }),
3791
3790
  /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3792
3791
  "input",