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 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
- data.body && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { dangerouslySetInnerHTML: { __html: import_dompurify5.default.sanitize(data.body) } }),
1407
- 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)(
1408
- "a",
1409
- {
1410
- href: link.url,
1411
- target: "_blank",
1412
- rel: "noopener noreferrer",
1413
- children: [
1414
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1415
- "svg",
1416
- {
1417
- "aria-hidden": "true",
1418
- xmlns: "http://www.w3.org/2000/svg",
1419
- width: "12",
1420
- height: "10",
1421
- viewBox: "0 0 12 10",
1422
- fill: "none",
1423
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1424
- "path",
1425
- {
1426
- 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",
1427
- fill: "#ffffff"
1428
- }
1429
- )
1430
- }
1431
- ) }),
1432
- link.title
1433
- ]
1434
- }
1435
- ) }, `more-info-${index}`)) }),
1436
- data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1437
- "a",
1438
- {
1439
- href: data.linksForMoreInfo[0].url,
1440
- target: "_blank",
1441
- rel: "noopener noreferrer",
1442
- "aria-label": data.linksForMoreInfo[0].ariaLabel,
1443
- children: [
1444
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1445
- "svg",
1446
- {
1447
- "aria-hidden": "true",
1448
- xmlns: "http://www.w3.org/2000/svg",
1449
- width: "12",
1450
- height: "10",
1451
- viewBox: "0 0 12 10",
1452
- fill: "none",
1453
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1454
- "path",
1455
- {
1456
- 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",
1457
- fill: "#ffffff"
1458
- }
1459
- )
1460
- }
1461
- ) }),
1462
- data.linksForMoreInfo[0].title
1463
- ]
1464
- }
1465
- ),
1466
- data.alertInText && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(AlertInTextStandard_default, { content: data.alertInText }),
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
  {