@mediaradar/design-components 0.32.0 → 0.33.0

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.js CHANGED
@@ -4111,7 +4111,8 @@ function Modal({ open, onClose, title, description, size = "md", footer, childre
4111
4111
  useEffect14(() => {
4112
4112
  if (!open) return;
4113
4113
  const opener = document.activeElement;
4114
- const first = panel.current?.querySelector(`[data-modal-body] :is(${FOCUSABLE})`) ?? panel.current?.querySelector(`[data-modal-footer] :is(${FOCUSABLE})`);
4114
+ const firstIn = (region) => panel.current?.querySelector(region)?.querySelector(FOCUSABLE) ?? null;
4115
+ const first = firstIn("[data-modal-body]") ?? firstIn("[data-modal-footer]");
4115
4116
  (first ?? panel.current)?.focus();
4116
4117
  const overflow = document.body.style.overflow;
4117
4118
  document.body.style.overflow = "hidden";
@@ -4356,10 +4357,132 @@ var TextField = forwardRef3(
4356
4357
  );
4357
4358
  TextField.displayName = "TextField";
4358
4359
 
4359
- // src/DataTable.tsx
4360
- import { useId as useId8 } from "react";
4360
+ // src/Drawer.tsx
4361
+ import { useEffect as useEffect15, useId as useId8, useRef as useRef17, useState as useState15 } from "react";
4362
+ import { createPortal as createPortal8 } from "react-dom";
4363
+ import { X as X7 } from "lucide-react";
4361
4364
  import { jsx as jsx49, jsxs as jsxs43 } from "react/jsx-runtime";
4362
- var WIDTH2 = { fill: "", sm: "w-24", md: "w-36", lg: "w-48" };
4365
+ var WIDTH2 = {
4366
+ sm: "max-w-110",
4367
+ md: "max-w-160",
4368
+ lg: "max-w-230"
4369
+ };
4370
+ var EXIT_MS = 200;
4371
+ var FOCUSABLE2 = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
4372
+ function Drawer({ open, onClose, title, description, size = "sm", footer, children, className }) {
4373
+ const titleId = useId8();
4374
+ const descId = useId8();
4375
+ const panel = useRef17(null);
4376
+ const close = useRef17(onClose);
4377
+ close.current = onClose;
4378
+ const [mounted, setMounted] = useState15(open);
4379
+ const [shown, setShown] = useState15(false);
4380
+ useEffect15(() => {
4381
+ if (open) {
4382
+ setMounted(true);
4383
+ const raf = requestAnimationFrame(() => requestAnimationFrame(() => setShown(true)));
4384
+ return () => cancelAnimationFrame(raf);
4385
+ }
4386
+ setShown(false);
4387
+ const t = setTimeout(() => setMounted(false), EXIT_MS);
4388
+ return () => clearTimeout(t);
4389
+ }, [open]);
4390
+ useEffect15(() => {
4391
+ if (!open || !mounted) return;
4392
+ const opener = document.activeElement;
4393
+ const firstIn = (region) => panel.current?.querySelector(region)?.querySelector(FOCUSABLE2) ?? null;
4394
+ const first = firstIn("[data-drawer-body]") ?? firstIn("[data-drawer-footer]");
4395
+ (first ?? panel.current)?.focus({ preventScroll: true });
4396
+ const overflow = document.body.style.overflow;
4397
+ document.body.style.overflow = "hidden";
4398
+ const onKey = (e) => {
4399
+ if (e.key === "Escape") {
4400
+ e.stopPropagation();
4401
+ close.current();
4402
+ return;
4403
+ }
4404
+ if (e.key !== "Tab" || !panel.current) return;
4405
+ const items = Array.from(panel.current.querySelectorAll(FOCUSABLE2));
4406
+ if (items.length === 0) return;
4407
+ const [head, tail] = [items[0], items[items.length - 1]];
4408
+ if (e.shiftKey && document.activeElement === head) {
4409
+ e.preventDefault();
4410
+ tail.focus();
4411
+ } else if (!e.shiftKey && document.activeElement === tail) {
4412
+ e.preventDefault();
4413
+ head.focus();
4414
+ }
4415
+ };
4416
+ document.addEventListener("keydown", onKey);
4417
+ return () => {
4418
+ document.removeEventListener("keydown", onKey);
4419
+ document.body.style.overflow = overflow;
4420
+ opener?.focus?.();
4421
+ };
4422
+ }, [open, mounted]);
4423
+ if (!mounted || typeof document === "undefined") return null;
4424
+ return createPortal8(
4425
+ /* @__PURE__ */ jsxs43("div", { className: "fixed inset-0 z-modal", children: [
4426
+ /* @__PURE__ */ jsx49(
4427
+ "div",
4428
+ {
4429
+ "aria-hidden": "true",
4430
+ onMouseDown: (e) => {
4431
+ e.preventDefault();
4432
+ onClose();
4433
+ },
4434
+ className: cn(
4435
+ "absolute inset-0 bg-scrim transition-opacity duration-(--mr-motion-duration-interactive) ease-interactive motion-reduce:transition-none",
4436
+ shown ? "opacity-100" : "opacity-0"
4437
+ )
4438
+ }
4439
+ ),
4440
+ /* @__PURE__ */ jsxs43(
4441
+ "div",
4442
+ {
4443
+ ref: panel,
4444
+ role: "dialog",
4445
+ "aria-modal": "true",
4446
+ "aria-labelledby": titleId,
4447
+ "aria-describedby": description ? descId : void 0,
4448
+ tabIndex: -1,
4449
+ className: cn(
4450
+ "absolute inset-y-0 right-0 flex w-full flex-col border-l border-border-default bg-surface shadow-overlay outline-hidden transition-transform duration-(--mr-motion-duration-interactive) ease-interactive motion-reduce:transition-none",
4451
+ shown ? "translate-x-0" : "translate-x-full",
4452
+ WIDTH2[size],
4453
+ className
4454
+ ),
4455
+ children: [
4456
+ /* @__PURE__ */ jsxs43("div", { className: "flex items-start gap-3 px-5 pt-5 pb-3", children: [
4457
+ /* @__PURE__ */ jsxs43("div", { className: "min-w-0 flex-1", children: [
4458
+ /* @__PURE__ */ jsx49("h2", { id: titleId, className: "text-base font-semibold text-text-primary", children: title }),
4459
+ description && /* @__PURE__ */ jsx49("p", { id: descId, className: "mt-0.5 text-sm text-text-secondary", children: description })
4460
+ ] }),
4461
+ /* @__PURE__ */ jsx49(
4462
+ "button",
4463
+ {
4464
+ type: "button",
4465
+ onClick: onClose,
4466
+ "aria-label": "Close",
4467
+ className: "-mr-1.5 -mt-1 flex size-8 shrink-0 items-center justify-center rounded-control text-text-tertiary hover:bg-subtle hover:text-text-primary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus",
4468
+ children: /* @__PURE__ */ jsx49(X7, { size: 16, "aria-hidden": "true" })
4469
+ }
4470
+ )
4471
+ ] }),
4472
+ /* @__PURE__ */ jsx49("div", { "data-drawer-body": true, className: "min-h-0 flex-1 overflow-y-auto px-5 pb-5 text-sm text-text-primary", children }),
4473
+ footer && /* @__PURE__ */ jsx49("div", { "data-drawer-footer": true, className: "flex items-center justify-end gap-2 border-t border-border-default px-5 py-3", children: footer })
4474
+ ]
4475
+ }
4476
+ )
4477
+ ] }),
4478
+ document.body
4479
+ );
4480
+ }
4481
+
4482
+ // src/DataTable.tsx
4483
+ import { useId as useId9 } from "react";
4484
+ import { jsx as jsx50, jsxs as jsxs44 } from "react/jsx-runtime";
4485
+ var WIDTH3 = { fill: "", sm: "w-24", md: "w-36", lg: "w-48" };
4363
4486
  var MAX_H = { sm: "max-h-80", md: "max-h-120", lg: "max-h-160" };
4364
4487
  var HEAD_PAD = { default: "px-4 py-3", compact: "px-3 py-2" };
4365
4488
  var CELL_PAD = { default: "px-4 py-3.5", compact: "px-3 py-2" };
@@ -4381,24 +4504,24 @@ function DataTable({
4381
4504
  className,
4382
4505
  ...rest
4383
4506
  }) {
4384
- const titleId = useId8();
4507
+ const titleId = useId9();
4385
4508
  const head = HEAD_PAD[density];
4386
4509
  const pad = CELL_PAD[density];
4387
4510
  const align = (c) => c.numeric ? "text-right" : "text-left";
4388
- const width = (c) => WIDTH2[c.width ?? (c.numeric ? "md" : "fill")];
4511
+ const width = (c) => WIDTH3[c.width ?? (c.numeric ? "md" : "fill")];
4389
4512
  const onSort = (key) => {
4390
4513
  const col = columns.find((c) => c.key === key);
4391
4514
  onSortChange?.(cycleSort(sort, key, col?.firstDir ?? (col?.numeric ? "desc" : "asc")));
4392
4515
  };
4393
- return /* @__PURE__ */ jsxs43("div", { className: cn("flex w-full flex-col overflow-hidden rounded-card border border-border-default bg-surface", className), children: [
4394
- title && /* @__PURE__ */ jsxs43("div", { className: "flex items-start justify-between gap-2 p-card-padding", children: [
4395
- /* @__PURE__ */ jsxs43("div", { className: "min-w-0", children: [
4396
- /* @__PURE__ */ jsx49("h3", { id: titleId, className: "text-style-card-title", children: title }),
4397
- subtitle && /* @__PURE__ */ jsx49("p", { className: "mt-0.5 text-xs text-text-tertiary", children: subtitle })
4516
+ return /* @__PURE__ */ jsxs44("div", { className: cn("flex w-full flex-col overflow-hidden rounded-card border border-border-default bg-surface", className), children: [
4517
+ title && /* @__PURE__ */ jsxs44("div", { className: "flex items-start justify-between gap-2 p-card-padding", children: [
4518
+ /* @__PURE__ */ jsxs44("div", { className: "min-w-0", children: [
4519
+ /* @__PURE__ */ jsx50("h3", { id: titleId, className: "text-style-card-title", children: title }),
4520
+ subtitle && /* @__PURE__ */ jsx50("p", { className: "mt-0.5 text-xs text-text-tertiary", children: subtitle })
4398
4521
  ] }),
4399
- action && /* @__PURE__ */ jsx49("div", { className: "shrink-0", children: action })
4522
+ action && /* @__PURE__ */ jsx50("div", { className: "shrink-0", children: action })
4400
4523
  ] }),
4401
- /* @__PURE__ */ jsx49("div", { className: cn("overflow-x-auto", maxHeight && cn("overflow-y-auto", MAX_H[maxHeight])), children: /* @__PURE__ */ jsxs43(
4524
+ /* @__PURE__ */ jsx50("div", { className: cn("overflow-x-auto", maxHeight && cn("overflow-y-auto", MAX_H[maxHeight])), children: /* @__PURE__ */ jsxs44(
4402
4525
  "table",
4403
4526
  {
4404
4527
  "aria-labelledby": title ? titleId : void 0,
@@ -4406,13 +4529,13 @@ function DataTable({
4406
4529
  "aria-busy": loading || void 0,
4407
4530
  className: "w-full border-collapse text-left",
4408
4531
  children: [
4409
- /* @__PURE__ */ jsx49("thead", { className: cn(maxHeight && "sticky top-0 z-10"), children: /* @__PURE__ */ jsx49("tr", { className: "bg-subtle text-micro font-semibold uppercase tracking-wider text-text-secondary", children: columns.map((c) => /* @__PURE__ */ jsx49(
4532
+ /* @__PURE__ */ jsx50("thead", { className: cn(maxHeight && "sticky top-0 z-10"), children: /* @__PURE__ */ jsx50("tr", { className: "bg-subtle text-micro font-semibold uppercase tracking-wider text-text-secondary", children: columns.map((c) => /* @__PURE__ */ jsx50(
4410
4533
  "th",
4411
4534
  {
4412
4535
  scope: "col",
4413
4536
  "aria-sort": c.sortable ? ariaSortFor(sort, c.key) : void 0,
4414
4537
  className: cn("border-b border-border-default font-semibold", head, align(c), width(c)),
4415
- children: c.sortable && onSortChange ? /* @__PURE__ */ jsx49(
4538
+ children: c.sortable && onSortChange ? /* @__PURE__ */ jsx50(
4416
4539
  SortButton,
4417
4540
  {
4418
4541
  label: c.label,
@@ -4425,7 +4548,7 @@ function DataTable({
4425
4548
  },
4426
4549
  c.key
4427
4550
  )) }) }),
4428
- /* @__PURE__ */ jsx49("tbody", { className: "text-dense text-text-primary", children: loading ? Array.from({ length: loadingRows }, (_, i) => /* @__PURE__ */ jsx49("tr", { "aria-hidden": "true", className: "[&:last-child>td]:border-b-0", children: columns.map((c) => /* @__PURE__ */ jsx49("td", { className: cn("border-b border-border-default", pad, align(c)), children: /* @__PURE__ */ jsx49(
4551
+ /* @__PURE__ */ jsx50("tbody", { className: "text-dense text-text-primary", children: loading ? Array.from({ length: loadingRows }, (_, i) => /* @__PURE__ */ jsx50("tr", { "aria-hidden": "true", className: "[&:last-child>td]:border-b-0", children: columns.map((c) => /* @__PURE__ */ jsx50("td", { className: cn("border-b border-border-default", pad, align(c)), children: /* @__PURE__ */ jsx50(
4429
4552
  "span",
4430
4553
  {
4431
4554
  className: cn(
@@ -4433,7 +4556,7 @@ function DataTable({
4433
4556
  c.numeric ? "w-12" : "w-2/3"
4434
4557
  )
4435
4558
  }
4436
- ) }, c.key)) }, i)) : rows.length === 0 ? /* @__PURE__ */ jsx49("tr", { children: /* @__PURE__ */ jsx49("td", { colSpan: columns.length, className: "px-6 py-12", children: empty ?? /* @__PURE__ */ jsx49(NoResultsEmptyState, {}) }) }) : rows.map((row) => /* @__PURE__ */ jsx49("tr", { className: "hover:bg-subtle [&:last-child>td]:border-b-0", children: columns.map((c) => /* @__PURE__ */ jsx49(
4559
+ ) }, c.key)) }, i)) : rows.length === 0 ? /* @__PURE__ */ jsx50("tr", { children: /* @__PURE__ */ jsx50("td", { colSpan: columns.length, className: "px-6 py-12", children: empty ?? /* @__PURE__ */ jsx50(NoResultsEmptyState, {}) }) }) : rows.map((row) => /* @__PURE__ */ jsx50("tr", { className: "hover:bg-subtle [&:last-child>td]:border-b-0", children: columns.map((c) => /* @__PURE__ */ jsx50(
4437
4560
  "td",
4438
4561
  {
4439
4562
  className: cn("border-b border-border-default", pad, align(c), c.numeric && "tabular-nums"),
@@ -4444,12 +4567,12 @@ function DataTable({
4444
4567
  ]
4445
4568
  }
4446
4569
  ) }),
4447
- footer && /* @__PURE__ */ jsx49("div", { className: "border-t border-border-default px-4 py-3", children: footer })
4570
+ footer && /* @__PURE__ */ jsx50("div", { className: "border-t border-border-default px-4 py-3", children: footer })
4448
4571
  ] });
4449
4572
  }
4450
4573
 
4451
4574
  // src/MediaLabel.tsx
4452
- import { jsx as jsx50 } from "react/jsx-runtime";
4575
+ import { jsx as jsx51 } from "react/jsx-runtime";
4453
4576
  var FILL = {
4454
4577
  TV: "bg-media-tv",
4455
4578
  CTV: "bg-media-ctv",
@@ -4460,7 +4583,7 @@ var FILL = {
4460
4583
  Magazine: "bg-media-magazine"
4461
4584
  };
4462
4585
  function MediaLabel({ type, className }) {
4463
- return /* @__PURE__ */ jsx50(
4586
+ return /* @__PURE__ */ jsx51(
4464
4587
  "span",
4465
4588
  {
4466
4589
  className: cn(
@@ -4474,9 +4597,9 @@ function MediaLabel({ type, className }) {
4474
4597
  }
4475
4598
 
4476
4599
  // src/SuggestionChip.tsx
4477
- import { jsx as jsx51 } from "react/jsx-runtime";
4600
+ import { jsx as jsx52 } from "react/jsx-runtime";
4478
4601
  function SuggestionChip({ children, className, type = "button", ...props }) {
4479
- return /* @__PURE__ */ jsx51(
4602
+ return /* @__PURE__ */ jsx52(
4480
4603
  "button",
4481
4604
  {
4482
4605
  type,
@@ -4485,16 +4608,16 @@ function SuggestionChip({ children, className, type = "button", ...props }) {
4485
4608
  "inline-flex h-8 max-w-full items-center rounded-full border border-border-default bg-surface px-3 text-sm text-text-primary transition-colors duration-(--mr-motion-duration-interactive) ease-interactive hover:border-border-strong hover:bg-subtle focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus",
4486
4609
  className
4487
4610
  ),
4488
- children: /* @__PURE__ */ jsx51("span", { className: "truncate", children })
4611
+ children: /* @__PURE__ */ jsx52("span", { className: "truncate", children })
4489
4612
  }
4490
4613
  );
4491
4614
  }
4492
4615
 
4493
4616
  // src/ToggleChip.tsx
4494
4617
  import { Check as Check9 } from "lucide-react";
4495
- import { jsx as jsx52, jsxs as jsxs44 } from "react/jsx-runtime";
4618
+ import { jsx as jsx53, jsxs as jsxs45 } from "react/jsx-runtime";
4496
4619
  function ToggleChip({ selected, onChange, children, className, type = "button", onClick, ...props }) {
4497
- return /* @__PURE__ */ jsxs44(
4620
+ return /* @__PURE__ */ jsxs45(
4498
4621
  "button",
4499
4622
  {
4500
4623
  type,
@@ -4510,7 +4633,7 @@ function ToggleChip({ selected, onChange, children, className, type = "button",
4510
4633
  className
4511
4634
  ),
4512
4635
  children: [
4513
- selected && /* @__PURE__ */ jsx52(Check9, { size: 14, "aria-hidden": "true", className: "-ml-0.5 shrink-0" }),
4636
+ selected && /* @__PURE__ */ jsx53(Check9, { size: 14, "aria-hidden": "true", className: "-ml-0.5 shrink-0" }),
4514
4637
  children
4515
4638
  ]
4516
4639
  }
@@ -4518,14 +4641,14 @@ function ToggleChip({ selected, onChange, children, className, type = "button",
4518
4641
  }
4519
4642
 
4520
4643
  // src/CopyButton.tsx
4521
- import { useEffect as useEffect15, useRef as useRef17, useState as useState15 } from "react";
4644
+ import { useEffect as useEffect16, useRef as useRef18, useState as useState16 } from "react";
4522
4645
  import { Check as Check10, Copy } from "lucide-react";
4523
- import { jsx as jsx53, jsxs as jsxs45 } from "react/jsx-runtime";
4646
+ import { jsx as jsx54, jsxs as jsxs46 } from "react/jsx-runtime";
4524
4647
  var CONFIRM_MS = 2e3;
4525
4648
  function CopyButton({ value, label, "aria-label": ariaLabel, size = "xs", className }) {
4526
- const [copied, setCopied] = useState15(false);
4527
- const timer = useRef17(void 0);
4528
- useEffect15(() => () => clearTimeout(timer.current), []);
4649
+ const [copied, setCopied] = useState16(false);
4650
+ const timer = useRef18(void 0);
4651
+ useEffect16(() => () => clearTimeout(timer.current), []);
4529
4652
  const copy = async () => {
4530
4653
  try {
4531
4654
  await navigator.clipboard.writeText(typeof value === "function" ? value() : value);
@@ -4537,8 +4660,8 @@ function CopyButton({ value, label, "aria-label": ariaLabel, size = "xs", classN
4537
4660
  timer.current = setTimeout(() => setCopied(false), CONFIRM_MS);
4538
4661
  };
4539
4662
  const iconSize = size === "xs" ? 13 : 15;
4540
- const icon = copied ? /* @__PURE__ */ jsx53(Check10, { size: iconSize, "aria-hidden": "true", className: "shrink-0 text-text-success" }) : /* @__PURE__ */ jsx53(Copy, { size: iconSize, "aria-hidden": "true", className: "shrink-0" });
4541
- return /* @__PURE__ */ jsxs45(
4663
+ const icon = copied ? /* @__PURE__ */ jsx54(Check10, { size: iconSize, "aria-hidden": "true", className: "shrink-0 text-text-success" }) : /* @__PURE__ */ jsx54(Copy, { size: iconSize, "aria-hidden": "true", className: "shrink-0" });
4664
+ return /* @__PURE__ */ jsxs46(
4542
4665
  Button,
4543
4666
  {
4544
4667
  type: "button",
@@ -4550,16 +4673,16 @@ function CopyButton({ value, label, "aria-label": ariaLabel, size = "xs", classN
4550
4673
  className: cn(!copied && "text-text-secondary", className),
4551
4674
  children: [
4552
4675
  icon,
4553
- label && /* @__PURE__ */ jsx53("span", { children: copied ? "Copied" : label }),
4554
- /* @__PURE__ */ jsx53("span", { role: "status", className: "sr-only", children: copied ? "Copied" : "" })
4676
+ label && /* @__PURE__ */ jsx54("span", { children: copied ? "Copied" : label }),
4677
+ /* @__PURE__ */ jsx54("span", { role: "status", className: "sr-only", children: copied ? "Copied" : "" })
4555
4678
  ]
4556
4679
  }
4557
4680
  );
4558
4681
  }
4559
4682
 
4560
4683
  // src/InlineMessage.tsx
4561
- import { AlertTriangle as AlertTriangle2, CheckCircle2, Info as Info3, X as X7, XCircle } from "lucide-react";
4562
- import { jsx as jsx54, jsxs as jsxs46 } from "react/jsx-runtime";
4684
+ import { AlertTriangle as AlertTriangle2, CheckCircle2, Info as Info3, X as X8, XCircle } from "lucide-react";
4685
+ import { jsx as jsx55, jsxs as jsxs47 } from "react/jsx-runtime";
4563
4686
  var BOX = {
4564
4687
  info: "border-brand-primaryAction/30 bg-brand-primaryAction/10",
4565
4688
  success: "border-status-success/40 bg-status-success/10",
@@ -4576,26 +4699,26 @@ var ICON_INK = {
4576
4699
  var ICON2 = { info: Info3, success: CheckCircle2, warning: AlertTriangle2, danger: XCircle };
4577
4700
  function InlineMessage({ tone = "info", title, children, actions, onDismiss, className }) {
4578
4701
  const Icon = ICON2[tone];
4579
- return /* @__PURE__ */ jsxs46(
4702
+ return /* @__PURE__ */ jsxs47(
4580
4703
  "div",
4581
4704
  {
4582
4705
  role: tone === "warning" || tone === "danger" ? "alert" : "status",
4583
4706
  className: cn("flex items-start gap-2.5 rounded-control border px-3 py-2.5 text-sm", BOX[tone], className),
4584
4707
  children: [
4585
- /* @__PURE__ */ jsx54(Icon, { size: 16, "aria-hidden": "true", className: cn("mt-0.5 shrink-0", ICON_INK[tone]) }),
4586
- /* @__PURE__ */ jsxs46("div", { className: "min-w-0 flex-1", children: [
4587
- /* @__PURE__ */ jsx54("p", { className: "font-semibold text-text-primary", children: title }),
4588
- children && /* @__PURE__ */ jsx54("div", { className: "mt-0.5 text-text-secondary", children }),
4589
- actions && /* @__PURE__ */ jsx54("div", { className: "mt-2 flex flex-wrap items-center gap-2", children: actions })
4708
+ /* @__PURE__ */ jsx55(Icon, { size: 16, "aria-hidden": "true", className: cn("mt-0.5 shrink-0", ICON_INK[tone]) }),
4709
+ /* @__PURE__ */ jsxs47("div", { className: "min-w-0 flex-1", children: [
4710
+ /* @__PURE__ */ jsx55("p", { className: "font-semibold text-text-primary", children: title }),
4711
+ children && /* @__PURE__ */ jsx55("div", { className: "mt-0.5 text-text-secondary", children }),
4712
+ actions && /* @__PURE__ */ jsx55("div", { className: "mt-2 flex flex-wrap items-center gap-2", children: actions })
4590
4713
  ] }),
4591
- onDismiss && /* @__PURE__ */ jsx54(
4714
+ onDismiss && /* @__PURE__ */ jsx55(
4592
4715
  "button",
4593
4716
  {
4594
4717
  type: "button",
4595
4718
  onClick: onDismiss,
4596
4719
  "aria-label": "Dismiss",
4597
4720
  className: "-mr-1 -mt-0.5 flex size-6 shrink-0 items-center justify-center rounded-control text-text-tertiary hover:bg-subtle hover:text-text-primary focus-visible:outline-2 focus-visible:outline-border-focus",
4598
- children: /* @__PURE__ */ jsx54(X7, { size: 14, "aria-hidden": "true" })
4721
+ children: /* @__PURE__ */ jsx55(X8, { size: 14, "aria-hidden": "true" })
4599
4722
  }
4600
4723
  )
4601
4724
  ]
@@ -4621,6 +4744,7 @@ export {
4621
4744
  DateRangeFilter,
4622
4745
  DateRangePicker,
4623
4746
  Delta,
4747
+ Drawer,
4624
4748
  EmptyState,
4625
4749
  FilterChipBar,
4626
4750
  FilterDropdownFooter,