asma-ui-core 3.130.3 → 3.130.4

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.
@@ -4,36 +4,37 @@ import { StyledButton as c } from "../../inputs/button/StyledButton.js";
4
4
  import { useScrollGutter as u } from "./useScrollGutter.js";
5
5
  import { useRef as g } from "react";
6
6
  import { Fragment as v, jsx as e, jsxs as o } from "react/jsx-runtime";
7
- var _ = 40, j = "box-border flex flex-col overflow-hidden rounded-lg bg-white text-delta-700 outline-none shadow-[0px_4px_40px_0px_#22213366]", b = "pointer-events-none absolute inset-0 rounded-[inherit] shadow-[inset_0_0_0_1px_var(--colors-delta-300)]", k = ({ dataTest: s, title: a, titleId: m, children: x, viewResultsAction: t, resetAction: l, footerActions: n, closeLabel: p, onClose: f }) => {
8
- const d = g(null), i = u(d);
7
+ var _ = 40, j = "box-border flex flex-col overflow-hidden rounded-lg bg-white text-delta-700 outline-none shadow-[0px_4px_40px_0px_#22213366]", b = "pointer-events-none absolute inset-0 rounded-[inherit] shadow-[inset_0_0_0_1px_var(--colors-delta-300)]", k = ({ dataTest: s, title: t, titleId: m, children: x, viewResultsAction: a, resetAction: l, footerActions: d, closeLabel: p, onClose: f }) => {
8
+ const i = g(null), n = u(i);
9
9
  return /* @__PURE__ */ o(v, { children: [
10
10
  /* @__PURE__ */ o("div", {
11
11
  className: "relative flex min-h-0 flex-1 flex-col",
12
- children: [a && /* @__PURE__ */ e("div", {
12
+ children: [t && /* @__PURE__ */ e("div", {
13
13
  id: m,
14
14
  className: "shrink-0 truncate pb-1 pl-4 pr-10 pt-2 text-lg font-semibold leading-7 text-delta-800",
15
- children: a
15
+ children: t
16
16
  }), /* @__PURE__ */ e("div", {
17
- ref: d,
18
- className: r("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto py-2 pl-4 [scrollbar-gutter:stable]", !a && i.overflows && "mt-10"),
19
- style: { paddingRight: Math.max(0, _ - i.width) },
17
+ ref: i,
18
+ className: r("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto py-2 pl-4 [scrollbar-gutter:stable]", !t && n.overflows && "mt-10"),
19
+ style: { paddingRight: Math.max(0, _ - n.width) },
20
20
  children: x
21
21
  })]
22
22
  }),
23
- (t ?? l) && /* @__PURE__ */ o("div", {
24
- className: r("flex shrink-0 items-start p-1", t ? "justify-between" : "justify-end", "max-xs:flex-wrap max-xs:gap-y-2 max-xs:[&>:last-child]:ml-auto"),
25
- children: [t, l]
23
+ (a ?? l) && /* @__PURE__ */ o("div", {
24
+ className: r("flex shrink-0 items-start p-1", a ? "justify-between" : "justify-end", "max-xs:flex-wrap max-xs:gap-y-2 max-xs:[&>:last-child]:ml-auto"),
25
+ children: [a, l]
26
26
  }),
27
- n && /* @__PURE__ */ e("div", {
28
- className: r("flex shrink-0 flex-col items-end p-3", (t ?? l) && "max-xs:pt-1"),
29
- children: n
27
+ d && /* @__PURE__ */ e("div", {
28
+ className: r("flex shrink-0 flex-col items-end p-3", (a ?? l) && "max-xs:pt-1"),
29
+ children: d
30
30
  }),
31
31
  /* @__PURE__ */ e("div", {
32
- className: "absolute right-0 top-0",
32
+ className: "absolute right-0 top-0 [&:has(:focus-visible)]:z-[1]",
33
33
  children: /* @__PURE__ */ e(c, {
34
34
  dataTest: `${s}-close`,
35
35
  variant: "textGray",
36
36
  type: "button",
37
+ className: "rounded-tr-lg",
37
38
  "aria-label": p,
38
39
  onClick: f,
39
40
  startIcon: /* @__PURE__ */ e(h, {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.130.3",
6
+ "version": "3.130.4",
7
7
  "type": "module",
8
8
  "sideEffects": [
9
9
  "**/*.css",