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.mjs CHANGED
@@ -1319,67 +1319,69 @@ var AlertInTextStandard_default = AlertInTextStandard;
1319
1319
  import { jsx as jsx17, jsxs as jsxs14 } from "react/jsx-runtime";
1320
1320
  var TextBody = ({ data }) => {
1321
1321
  return /* @__PURE__ */ jsxs14("div", { className: "pts-textBody-container", children: [
1322
- data.body && /* @__PURE__ */ jsx17("div", { dangerouslySetInnerHTML: { __html: DOMPurify5.sanitize(data.body) } }),
1323
- data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */ jsx17("ul", { className: "pts-moreinfo-list", children: data.linksForMoreInfo.map((link, index) => /* @__PURE__ */ jsx17("li", { className: index > 0 ? "notFirstInList" : "", children: /* @__PURE__ */ jsxs14(
1324
- "a",
1325
- {
1326
- href: link.url,
1327
- target: "_blank",
1328
- rel: "noopener noreferrer",
1329
- children: [
1330
- /* @__PURE__ */ jsx17("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ jsx17(
1331
- "svg",
1332
- {
1333
- "aria-hidden": "true",
1334
- xmlns: "http://www.w3.org/2000/svg",
1335
- width: "12",
1336
- height: "10",
1337
- viewBox: "0 0 12 10",
1338
- fill: "none",
1339
- children: /* @__PURE__ */ jsx17(
1340
- "path",
1341
- {
1342
- 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",
1343
- fill: "#ffffff"
1344
- }
1345
- )
1346
- }
1347
- ) }),
1348
- link.title
1349
- ]
1350
- }
1351
- ) }, `more-info-${index}`)) }),
1352
- data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */ jsxs14(
1353
- "a",
1354
- {
1355
- href: data.linksForMoreInfo[0].url,
1356
- target: "_blank",
1357
- rel: "noopener noreferrer",
1358
- "aria-label": data.linksForMoreInfo[0].ariaLabel,
1359
- children: [
1360
- /* @__PURE__ */ jsx17("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ jsx17(
1361
- "svg",
1362
- {
1363
- "aria-hidden": "true",
1364
- xmlns: "http://www.w3.org/2000/svg",
1365
- width: "12",
1366
- height: "10",
1367
- viewBox: "0 0 12 10",
1368
- fill: "none",
1369
- children: /* @__PURE__ */ jsx17(
1370
- "path",
1371
- {
1372
- 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",
1373
- fill: "#ffffff"
1374
- }
1375
- )
1376
- }
1377
- ) }),
1378
- data.linksForMoreInfo[0].title
1379
- ]
1380
- }
1381
- ),
1382
- data.alertInText && /* @__PURE__ */ jsx17(AlertInTextStandard_default, { content: data.alertInText }),
1322
+ /* @__PURE__ */ jsxs14("div", { className: `${!data.body || !data.linksForMoreInfo ? "" : "pts-textbody-createspace"}`, children: [
1323
+ data.body && /* @__PURE__ */ jsx17("div", { dangerouslySetInnerHTML: { __html: DOMPurify5.sanitize(data.body) } }),
1324
+ data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */ jsx17("ul", { className: "pts-moreinfo-list", children: data.linksForMoreInfo.map((link, index) => /* @__PURE__ */ jsx17("li", { className: index > 0 ? "notFirstInList" : "", children: /* @__PURE__ */ jsxs14(
1325
+ "a",
1326
+ {
1327
+ href: link.url,
1328
+ target: "_blank",
1329
+ rel: "noopener noreferrer",
1330
+ children: [
1331
+ /* @__PURE__ */ jsx17("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ jsx17(
1332
+ "svg",
1333
+ {
1334
+ "aria-hidden": "true",
1335
+ xmlns: "http://www.w3.org/2000/svg",
1336
+ width: "12",
1337
+ height: "10",
1338
+ viewBox: "0 0 12 10",
1339
+ fill: "none",
1340
+ children: /* @__PURE__ */ jsx17(
1341
+ "path",
1342
+ {
1343
+ 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",
1344
+ fill: "#ffffff"
1345
+ }
1346
+ )
1347
+ }
1348
+ ) }),
1349
+ link.title
1350
+ ]
1351
+ }
1352
+ ) }, `more-info-${index}`)) }),
1353
+ data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */ jsx17("div", { className: "pts-moreinfo-list", children: /* @__PURE__ */ jsxs14(
1354
+ "a",
1355
+ {
1356
+ href: data.linksForMoreInfo[0].url,
1357
+ target: "_blank",
1358
+ rel: "noopener noreferrer",
1359
+ "aria-label": data.linksForMoreInfo[0].ariaLabel,
1360
+ children: [
1361
+ /* @__PURE__ */ jsx17("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ jsx17(
1362
+ "svg",
1363
+ {
1364
+ "aria-hidden": "true",
1365
+ xmlns: "http://www.w3.org/2000/svg",
1366
+ width: "12",
1367
+ height: "10",
1368
+ viewBox: "0 0 12 10",
1369
+ fill: "none",
1370
+ children: /* @__PURE__ */ jsx17(
1371
+ "path",
1372
+ {
1373
+ 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",
1374
+ fill: "#ffffff"
1375
+ }
1376
+ )
1377
+ }
1378
+ ) }),
1379
+ data.linksForMoreInfo[0].title
1380
+ ]
1381
+ }
1382
+ ) })
1383
+ ] }),
1384
+ data.alertInText && /* @__PURE__ */ jsx17("div", { className: "pts-textbody-alerttext", children: /* @__PURE__ */ jsx17(AlertInTextStandard_default, { content: data.alertInText }) }),
1383
1385
  data.textAboveStartButton && data.textAboveStartButton.length > 0 && (/<\/?[a-z][\s\S]*>/i.test(data.textAboveStartButton) ? /* @__PURE__ */ jsx17(
1384
1386
  "div",
1385
1387
  {