@tesouro/embedded-components-react 0.11.19 → 0.11.20

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.
@@ -1,5 +1,5 @@
1
1
  // ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.11.19", n = "810658288be16dc038561c916563461b8a4cd161", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.11.20", n = "ab43b4d17b325635ddbc7e553d2ff810b4f48a00", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -10231,29 +10231,29 @@ function kx({ className: e, ...t }) {
10231
10231
  ...t
10232
10232
  });
10233
10233
  }
10234
- function Ax({ className: e, children: t, side: n = "right", showCloseButton: r = !0, closeButtonTestId: i, closeDisabled: a = !1, onEscapeKeyDown: o, onInteractOutside: s, labels: c, onOpenAutoFocus: l, ...u }) {
10235
- let d = {
10234
+ function Ax({ className: e, children: t, side: n = "right", showCloseButton: r = !0, closeButtonTestId: i, closeDisabled: a = !1, onEscapeKeyDown: o, onInteractOutside: s, labels: c, overlayClassName: l, onOpenAutoFocus: u, ...d }) {
10235
+ let f = {
10236
10236
  ...Tx,
10237
10237
  ...c
10238
10238
  };
10239
- return /* @__PURE__ */ v(Ox, { children: [/* @__PURE__ */ _(kx, {}), /* @__PURE__ */ v(Gd, {
10239
+ return /* @__PURE__ */ v(Ox, { children: [/* @__PURE__ */ _(kx, { className: l }), /* @__PURE__ */ v(Gd, {
10240
10240
  "data-slot": "sheet-content",
10241
10241
  className: Y("ttw:fixed ttw:z-50 ttw:flex ttw:flex-col ttw:gap-4 ttw:border-border ttw:bg-background ttw:shadow-lg ttw:transition ttw:ease-in-out ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:duration-300 ttw:data-[state=open]:animate-in ttw:data-[state=open]:duration-500", n === "right" && "ttw:inset-y-0 ttw:right-0 ttw:h-full ttw:w-full ttw:border-l ttw:data-[state=closed]:slide-out-to-right ttw:data-[state=open]:slide-in-from-right ttw:sm:max-w-150", n === "left" && "ttw:inset-y-0 ttw:left-0 ttw:h-full ttw:w-full ttw:border-r ttw:data-[state=closed]:slide-out-to-left ttw:data-[state=open]:slide-in-from-left ttw:sm:max-w-150", n === "top" && "ttw:inset-x-0 ttw:top-0 ttw:h-auto ttw:border-b ttw:data-[state=closed]:slide-out-to-top ttw:data-[state=open]:slide-in-from-top", n === "bottom" && "ttw:inset-x-0 ttw:bottom-0 ttw:h-auto ttw:border-t ttw:data-[state=closed]:slide-out-to-bottom ttw:data-[state=open]:slide-in-from-bottom", e),
10242
10242
  onOpenAutoFocus: (e) => {
10243
- if (l?.(e), e.defaultPrevented) return;
10243
+ if (u?.(e), e.defaultPrevented) return;
10244
10244
  let t = e.target.querySelector("[data-autofocus]");
10245
10245
  t && (t.focus(), document.activeElement === t && e.preventDefault());
10246
10246
  },
10247
10247
  onEscapeKeyDown: ry(a, o),
10248
10248
  onInteractOutside: ry(a, s),
10249
- ...u,
10249
+ ...d,
10250
10250
  children: [t, r && /* @__PURE__ */ _(ef, {
10251
10251
  "data-slot": "sheet-close-button",
10252
10252
  "data-testid": i,
10253
10253
  disabled: a,
10254
- title: d.close,
10254
+ title: f.close,
10255
10255
  className: Y(ty, "ttw:absolute ttw:top-4 ttw:right-4"),
10256
- children: /* @__PURE__ */ _(iy, { label: d.close })
10256
+ children: /* @__PURE__ */ _(iy, { label: f.close })
10257
10257
  })]
10258
10258
  })] });
10259
10259
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.11.19",
3
+ "version": "0.11.20",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": [