@eclass/ui-kit 1.54.17 → 1.54.18
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/eclass-ui-kit.es.js +5 -1
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +4 -4
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/organisms/Modals/Modal/Modal.d.ts +1 -1
- package/dist/organisms/Modals/Modal/Modal.d.ts.map +1 -1
- package/dist/organisms/Modals/ModalAlert/ModalAlert.d.ts +1 -1
- package/dist/organisms/Modals/ModalAlert/ModalAlert.d.ts.map +1 -1
- package/dist/organisms/Modals/types.d.ts +2 -0
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -4171,7 +4171,8 @@ const Modal = ({
|
|
|
4171
4171
|
title,
|
|
4172
4172
|
withoutMargin = false,
|
|
4173
4173
|
scrollBehavior = "outside",
|
|
4174
|
-
fixedButtons = false
|
|
4174
|
+
fixedButtons = false,
|
|
4175
|
+
autoFocus = false
|
|
4175
4176
|
}) => {
|
|
4176
4177
|
const py = "32px";
|
|
4177
4178
|
const px = "24px";
|
|
@@ -4185,6 +4186,7 @@ const Modal = ({
|
|
|
4185
4186
|
motionPreset: "scale",
|
|
4186
4187
|
onClose,
|
|
4187
4188
|
scrollBehavior: isInside ? "inside" : "outside",
|
|
4189
|
+
autoFocus,
|
|
4188
4190
|
children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsxs(ModalContent$1, {
|
|
4189
4191
|
maxH: isInside ? "100dvh" : "auto",
|
|
4190
4192
|
minH: isDesktop ? "300px" : "100dvh",
|
|
@@ -4337,6 +4339,7 @@ const Loading$1 = ({
|
|
|
4337
4339
|
});
|
|
4338
4340
|
};
|
|
4339
4341
|
const ModalAlertNew = ({
|
|
4342
|
+
autoFocus = false,
|
|
4340
4343
|
type,
|
|
4341
4344
|
isOpen,
|
|
4342
4345
|
onClose,
|
|
@@ -4353,6 +4356,7 @@ const ModalAlertNew = ({
|
|
|
4353
4356
|
motionPreset: "scale",
|
|
4354
4357
|
onClose,
|
|
4355
4358
|
closeOnEsc: type !== "loading",
|
|
4359
|
+
autoFocus,
|
|
4356
4360
|
children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsxs(ModalContent$1, {
|
|
4357
4361
|
borderRadius: "8px",
|
|
4358
4362
|
p: 0,
|