@eclass/ui-kit 1.57.0 → 1.57.1
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 +11 -7
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +7 -7
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/molecules/Buttons/BtnLink.d.ts +2 -1
- package/dist/molecules/Buttons/BtnLink.d.ts.map +1 -1
- package/dist/organisms/Modals/ModalAlert/ModalAlertContent.d.ts.map +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -1763,6 +1763,7 @@ function BtnLink({
|
|
|
1763
1763
|
fontSize = "0.875rem",
|
|
1764
1764
|
href = "",
|
|
1765
1765
|
id,
|
|
1766
|
+
isDisable = false,
|
|
1766
1767
|
m: m2 = "0",
|
|
1767
1768
|
onClick,
|
|
1768
1769
|
role = "link",
|
|
@@ -1773,7 +1774,7 @@ function BtnLink({
|
|
|
1773
1774
|
}) {
|
|
1774
1775
|
const typeButton = {
|
|
1775
1776
|
button: {
|
|
1776
|
-
onClick,
|
|
1777
|
+
onClick: isDisable ? void 0 : onClick,
|
|
1777
1778
|
target
|
|
1778
1779
|
},
|
|
1779
1780
|
a: {
|
|
@@ -1782,22 +1783,24 @@ function BtnLink({
|
|
|
1782
1783
|
}
|
|
1783
1784
|
};
|
|
1784
1785
|
return /* @__PURE__ */ jsx(Box, {
|
|
1786
|
+
"aria-label": ariaLabel,
|
|
1785
1787
|
as,
|
|
1786
1788
|
autoFocus: false,
|
|
1787
|
-
"aria-label": ariaLabel,
|
|
1788
|
-
id,
|
|
1789
|
-
role,
|
|
1790
1789
|
backgroundColor: "transparent",
|
|
1791
1790
|
borderStyle: "none",
|
|
1792
1791
|
className: "linkButton",
|
|
1793
1792
|
color: vars("colors-main-deepSkyBlue"),
|
|
1793
|
+
cursor: isDisable ? "not-allowed" : "pointer",
|
|
1794
1794
|
fontFamily: "Roboto",
|
|
1795
|
+
fontSize,
|
|
1795
1796
|
fontStyle: "normal",
|
|
1796
1797
|
fontWeight: "500",
|
|
1797
|
-
|
|
1798
|
+
id,
|
|
1798
1799
|
lineHeight: "1rem",
|
|
1799
|
-
onClick,
|
|
1800
|
+
onClick: isDisable ? void 0 : onClick,
|
|
1801
|
+
opacity: isDisable ? 0.5 : 1,
|
|
1800
1802
|
padding: ".25em",
|
|
1803
|
+
role,
|
|
1801
1804
|
tabIndex,
|
|
1802
1805
|
textDecorationLine: textDecorationLine ? "underline" : "none",
|
|
1803
1806
|
width: "fit-content",
|
|
@@ -7579,6 +7582,7 @@ const ModalAlertContent = ({
|
|
|
7579
7582
|
children
|
|
7580
7583
|
}) => {
|
|
7581
7584
|
const [isDesktop] = useMediaQuery("(min-width: 641px)");
|
|
7585
|
+
const descriptionParsed = typeof description === "string" ? ReactParser(purify.sanitize(description)) : description;
|
|
7582
7586
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
7583
7587
|
children: [/* @__PURE__ */ jsxs(ModalBody, {
|
|
7584
7588
|
p: "32px",
|
|
@@ -7604,7 +7608,7 @@ const ModalAlertContent = ({
|
|
|
7604
7608
|
fontSize: "16px",
|
|
7605
7609
|
lineHeight: "24px",
|
|
7606
7610
|
mb: 0,
|
|
7607
|
-
children:
|
|
7611
|
+
children: descriptionParsed
|
|
7608
7612
|
})]
|
|
7609
7613
|
}), type !== "loading" && children ? children : /* @__PURE__ */ jsx(Fragment, {})]
|
|
7610
7614
|
});
|