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.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
|
-
|
|
1323
|
-
|
|
1324
|
-
"
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
"
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
"
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
"
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
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
|
{
|