@eclass/ui-kit 1.54.16 → 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 +8 -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/molecules/Buttons/Btn.d.ts.map +1 -1
- package/dist/molecules/Buttons/BtnLink.d.ts.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
|
@@ -1483,6 +1483,7 @@ function Btn({
|
|
|
1483
1483
|
children: /* @__PURE__ */ jsx(Ripples$1, {
|
|
1484
1484
|
color: touchColor,
|
|
1485
1485
|
children: /* @__PURE__ */ jsx(Button, {
|
|
1486
|
+
autoFocus: false,
|
|
1486
1487
|
"aria-label": ariaLabel,
|
|
1487
1488
|
id,
|
|
1488
1489
|
role,
|
|
@@ -1765,6 +1766,7 @@ function BtnLink({
|
|
|
1765
1766
|
};
|
|
1766
1767
|
return /* @__PURE__ */ jsx(Box, {
|
|
1767
1768
|
as,
|
|
1769
|
+
autoFocus: false,
|
|
1768
1770
|
"aria-label": ariaLabel,
|
|
1769
1771
|
id,
|
|
1770
1772
|
role,
|
|
@@ -4169,7 +4171,8 @@ const Modal = ({
|
|
|
4169
4171
|
title,
|
|
4170
4172
|
withoutMargin = false,
|
|
4171
4173
|
scrollBehavior = "outside",
|
|
4172
|
-
fixedButtons = false
|
|
4174
|
+
fixedButtons = false,
|
|
4175
|
+
autoFocus = false
|
|
4173
4176
|
}) => {
|
|
4174
4177
|
const py = "32px";
|
|
4175
4178
|
const px = "24px";
|
|
@@ -4183,6 +4186,7 @@ const Modal = ({
|
|
|
4183
4186
|
motionPreset: "scale",
|
|
4184
4187
|
onClose,
|
|
4185
4188
|
scrollBehavior: isInside ? "inside" : "outside",
|
|
4189
|
+
autoFocus,
|
|
4186
4190
|
children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsxs(ModalContent$1, {
|
|
4187
4191
|
maxH: isInside ? "100dvh" : "auto",
|
|
4188
4192
|
minH: isDesktop ? "300px" : "100dvh",
|
|
@@ -4335,6 +4339,7 @@ const Loading$1 = ({
|
|
|
4335
4339
|
});
|
|
4336
4340
|
};
|
|
4337
4341
|
const ModalAlertNew = ({
|
|
4342
|
+
autoFocus = false,
|
|
4338
4343
|
type,
|
|
4339
4344
|
isOpen,
|
|
4340
4345
|
onClose,
|
|
@@ -4351,6 +4356,7 @@ const ModalAlertNew = ({
|
|
|
4351
4356
|
motionPreset: "scale",
|
|
4352
4357
|
onClose,
|
|
4353
4358
|
closeOnEsc: type !== "loading",
|
|
4359
|
+
autoFocus,
|
|
4354
4360
|
children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsxs(ModalContent$1, {
|
|
4355
4361
|
borderRadius: "8px",
|
|
4356
4362
|
p: 0,
|
|
@@ -4393,6 +4399,7 @@ const ModalAlertButtons = ({
|
|
|
4393
4399
|
children
|
|
4394
4400
|
}) => {
|
|
4395
4401
|
return /* @__PURE__ */ jsx(Box, {
|
|
4402
|
+
autoFocus: false,
|
|
4396
4403
|
display: "flex",
|
|
4397
4404
|
w: "100%",
|
|
4398
4405
|
borderTop: `1px solid ${vars("colors-neutral-platinum")}`,
|