@motech-development/breeze-ui 3.4.0 → 3.5.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/lib/index.js CHANGED
@@ -753,14 +753,14 @@ function Yn({ bordered: e = !0, children: t, className: n, decorative: r = !0, r
753
753
  }
754
754
  //#endregion
755
755
  //#region src/patterns/ConfirmationDialog/ConfirmationDialog.tsx
756
- function Xn({ cancelLabel: e, closeLabel: t, confirmLabel: n, defaultOpen: r, description: i, disabled: o = !1, onConfirm: s, onOpenChange: c, open: l, readOnly: d, title: f, trigger: p, triggerAppearance: m, variant: h = "danger" }) {
757
- let g = /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(W.Trigger, {
758
- appearance: m,
759
- variant: h,
760
- children: p
756
+ function Xn({ cancelLabel: e, closeLabel: t, confirmLabel: n, defaultOpen: r, description: i, disabled: o = !1, nested: s = !1, onConfirm: c, onOpenChange: l, open: d, readOnly: f, title: p, trigger: m, triggerAppearance: h, variant: g = "danger" }) {
757
+ let _ = /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(W.Trigger, {
758
+ appearance: h,
759
+ variant: g,
760
+ children: m
761
761
  }), /* @__PURE__ */ P(W.Content, {
762
762
  className: "breeze-confirmation-dialog max-h-[calc(100dvh-2rem)] w-full max-w-md border-0 border-b-2 border-b-[var(--breeze-border-strong)] p-0 shadow-[0_8px_0_rgb(6_12_24_/_22%)]",
763
- overlayClassName: "p-5",
763
+ overlayClassName: `p-5 ${s ? "bg-transparent forced-colors:bg-transparent" : ""}`,
764
764
  children: [
765
765
  /* @__PURE__ */ P("div", {
766
766
  className: "flex items-center justify-between gap-4 border-b border-[var(--breeze-border)] p-4 sm:px-5",
@@ -770,11 +770,11 @@ function Xn({ cancelLabel: e, closeLabel: t, confirmLabel: n, defaultOpen: r, de
770
770
  bordered: !1,
771
771
  "data-confirmation-icon": !0,
772
772
  size: "sm",
773
- variant: h,
773
+ variant: g,
774
774
  children: /* @__PURE__ */ N(u, { size: 20 })
775
775
  }), /* @__PURE__ */ N(W.Title, {
776
776
  className: "mb-0 text-2xl leading-[1.2]",
777
- children: f
777
+ children: p
778
778
  })]
779
779
  }), /* @__PURE__ */ N(W.Close, {
780
780
  "aria-label": t,
@@ -798,28 +798,28 @@ function Xn({ cancelLabel: e, closeLabel: t, confirmLabel: n, defaultOpen: r, de
798
798
  children: e
799
799
  }), /* @__PURE__ */ N(W.Close, {
800
800
  disabled: o,
801
- onAction: s,
802
- variant: h,
801
+ onAction: c,
802
+ variant: g,
803
803
  children: n
804
804
  })]
805
805
  })
806
806
  ]
807
807
  })] });
808
- if (l === void 0) return /* @__PURE__ */ N(W.Root, {
808
+ if (d === void 0) return /* @__PURE__ */ N(W.Root, {
809
809
  defaultOpen: r,
810
- onOpenChange: c,
811
- children: g
810
+ onOpenChange: l,
811
+ children: _
812
812
  });
813
- if (d === !0) return /* @__PURE__ */ N(W.Root, {
814
- open: l,
813
+ if (f === !0) return /* @__PURE__ */ N(W.Root, {
814
+ open: d,
815
815
  readOnly: !0,
816
- children: g
816
+ children: _
817
817
  });
818
- if (c === void 0) throw Error("Controlled ConfirmationDialog requires onOpenChange.");
818
+ if (l === void 0) throw Error("Controlled ConfirmationDialog requires onOpenChange.");
819
819
  return /* @__PURE__ */ N(W.Root, {
820
- onOpenChange: c,
821
- open: l,
822
- children: g
820
+ onOpenChange: l,
821
+ open: d,
822
+ children: _
823
823
  });
824
824
  }
825
825
  //#endregion