optimized-react-component-library-xyz123 2.3.0 → 2.3.2
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/index.js +63 -61
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +63 -61
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/styles.css +11 -3
package/dist/index.js
CHANGED
|
@@ -1403,67 +1403,69 @@ var AlertInTextStandard_default = AlertInTextStandard;
|
|
|
1403
1403
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1404
1404
|
var TextBody = ({ data }) => {
|
|
1405
1405
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "pts-textBody-container", children: [
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
"
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
"
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
"
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
"
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1406
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: `${!data.body || !data.linksForMoreInfo ? "" : "pts-textbody-createspace"}`, children: [
|
|
1407
|
+
data.body && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { dangerouslySetInnerHTML: { __html: import_dompurify5.default.sanitize(data.body) } }),
|
|
1408
|
+
data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("ul", { className: "pts-moreinfo-list", children: data.linksForMoreInfo.map((link, index) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("li", { className: index > 0 ? "notFirstInList" : "", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
1409
|
+
"a",
|
|
1410
|
+
{
|
|
1411
|
+
href: link.url,
|
|
1412
|
+
target: "_blank",
|
|
1413
|
+
rel: "noopener noreferrer",
|
|
1414
|
+
children: [
|
|
1415
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1416
|
+
"svg",
|
|
1417
|
+
{
|
|
1418
|
+
"aria-hidden": "true",
|
|
1419
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1420
|
+
width: "12",
|
|
1421
|
+
height: "10",
|
|
1422
|
+
viewBox: "0 0 12 10",
|
|
1423
|
+
fill: "none",
|
|
1424
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1425
|
+
"path",
|
|
1426
|
+
{
|
|
1427
|
+
d: "M6.00001 9.63253L5.10321 8.82184L8.62749 5.57905H0.965332V4.42091H8.62749L5.10321 1.17813L6.00001 0.367432L11.0347 4.99998L6.00001 9.63253Z",
|
|
1428
|
+
fill: "#ffffff"
|
|
1429
|
+
}
|
|
1430
|
+
)
|
|
1431
|
+
}
|
|
1432
|
+
) }),
|
|
1433
|
+
link.title
|
|
1434
|
+
]
|
|
1435
|
+
}
|
|
1436
|
+
) }, `more-info-${index}`)) }),
|
|
1437
|
+
data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "pts-moreinfo-list", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
1438
|
+
"a",
|
|
1439
|
+
{
|
|
1440
|
+
href: data.linksForMoreInfo[0].url,
|
|
1441
|
+
target: "_blank",
|
|
1442
|
+
rel: "noopener noreferrer",
|
|
1443
|
+
"aria-label": data.linksForMoreInfo[0].ariaLabel,
|
|
1444
|
+
children: [
|
|
1445
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1446
|
+
"svg",
|
|
1447
|
+
{
|
|
1448
|
+
"aria-hidden": "true",
|
|
1449
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1450
|
+
width: "12",
|
|
1451
|
+
height: "10",
|
|
1452
|
+
viewBox: "0 0 12 10",
|
|
1453
|
+
fill: "none",
|
|
1454
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1455
|
+
"path",
|
|
1456
|
+
{
|
|
1457
|
+
d: "M6.00001 9.63253L5.10321 8.82184L8.62749 5.57905H0.965332V4.42091H8.62749L5.10321 1.17813L6.00001 0.367432L11.0347 4.99998L6.00001 9.63253Z",
|
|
1458
|
+
fill: "#ffffff"
|
|
1459
|
+
}
|
|
1460
|
+
)
|
|
1461
|
+
}
|
|
1462
|
+
) }),
|
|
1463
|
+
data.linksForMoreInfo[0].title
|
|
1464
|
+
]
|
|
1465
|
+
}
|
|
1466
|
+
) })
|
|
1467
|
+
] }),
|
|
1468
|
+
data.alertInText && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "pts-textbody-alerttext", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(AlertInTextStandard_default, { content: data.alertInText }) }),
|
|
1467
1469
|
data.textAboveStartButton && data.textAboveStartButton.length > 0 && (/<\/?[a-z][\s\S]*>/i.test(data.textAboveStartButton) ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1468
1470
|
"div",
|
|
1469
1471
|
{
|