@eclass/ui-kit 1.61.0 → 1.62.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.
@@ -7683,6 +7683,7 @@ const Modal = ({
7683
7683
  scrollBehavior = "outside",
7684
7684
  fixedButtons = false,
7685
7685
  autoFocus = false,
7686
+ returnFocusOnClose = true,
7686
7687
  minWidth,
7687
7688
  maxWidth,
7688
7689
  minHeight,
@@ -7707,6 +7708,7 @@ const Modal = ({
7707
7708
  onClose,
7708
7709
  scrollBehavior: isInside ? "inside" : "outside",
7709
7710
  autoFocus,
7711
+ returnFocusOnClose,
7710
7712
  blockScrollOnMount: false,
7711
7713
  children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsx(Box, {
7712
7714
  sx: {
@@ -7993,6 +7995,7 @@ const useModalAlertConfig = () => {
7993
7995
  const ModalAlertNew = ({
7994
7996
  autoFocus = false,
7995
7997
  type,
7998
+ returnFocusOnClose = true,
7996
7999
  isOpen,
7997
8000
  onClose,
7998
8001
  children,
@@ -8009,6 +8012,7 @@ const ModalAlertNew = ({
8009
8012
  onClose,
8010
8013
  closeOnEsc: type !== "loading",
8011
8014
  autoFocus,
8015
+ returnFocusOnClose,
8012
8016
  children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsx(ModalContent$1, {
8013
8017
  ...modalConfig.contentProps,
8014
8018
  children: /* @__PURE__ */ jsx(ModalAlertContent, {
@@ -8084,6 +8088,7 @@ const ModalMultiple = (props) => {
8084
8088
  isOpen,
8085
8089
  onClose,
8086
8090
  autoFocus = false,
8091
+ returnFocusOnClose = true,
8087
8092
  children,
8088
8093
  title,
8089
8094
  closeOnOverlayClick = true,
@@ -8139,6 +8144,7 @@ const ModalMultiple = (props) => {
8139
8144
  onClose,
8140
8145
  motionPreset: "scale",
8141
8146
  autoFocus,
8147
+ returnFocusOnClose,
8142
8148
  closeOnOverlayClick: modalConfig.closeOnOverlayClick,
8143
8149
  closeOnEsc: modalConfig.closeOnEsc,
8144
8150
  scrollBehavior: modalConfig.scrollBehavior,