optimized-react-component-library-xyz123 2.8.16 → 2.8.18

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
@@ -2084,9 +2084,16 @@ var RadioCollapseItem = ({
2084
2084
  children: /* @__PURE__ */ jsxs16("div", { className: `pts-radio-collapse-content `, children: [
2085
2085
  isOpen && //TODO??
2086
2086
  /* @__PURE__ */ jsx20("span", { className: "sr-only", children: activatedLanguage === "sv" ? `Visar informationstext om svarsalternativet ${label}` : `Displays informational text about the answer option ${label}` }),
2087
- /* @__PURE__ */ jsx20("div", { dangerouslySetInnerHTML: {
2088
- __html: DOMPurify6.sanitize(optionText != null ? optionText : "")
2089
- } })
2087
+ /* @__PURE__ */ jsx20(
2088
+ "div",
2089
+ {
2090
+ dangerouslySetInnerHTML: {
2091
+ __html: DOMPurify6.sanitize(optionText != null ? optionText : "", {
2092
+ ADD_ATTR: ["target", "style"]
2093
+ })
2094
+ }
2095
+ }
2096
+ )
2090
2097
  ] })
2091
2098
  }
2092
2099
  )
@@ -2134,16 +2141,11 @@ var RadioWithInfo = ({
2134
2141
  "aria-invalid": question.hasValidationError ? question.hasValidationError : void 0,
2135
2142
  "aria-describedby": question.hasValidationError ? errorId : void 0,
2136
2143
  children: [
2137
- /* @__PURE__ */ jsxs17("legend", { id: `label-${groupId}`, children: [
2138
- question.questionLabel,
2139
- " ",
2140
- question.isQuestionMandatory && /* @__PURE__ */ jsx21("span", { "aria-hidden": true, className: "pts-root-mandatoryAsterisk", children: "*" })
2141
- ] }),
2142
2144
  groupedOptionArray.map((group, g_index) => {
2143
2145
  var _a2;
2144
2146
  let subId = "subheading-" + g_index;
2145
2147
  return /* @__PURE__ */ jsxs17(React7.Fragment, { children: [
2146
- /* @__PURE__ */ jsx21("p", { className: "pts-radioWithInfo-sub-headline", id: subId, children: group.category }),
2148
+ /* @__PURE__ */ jsx21("legend", { className: "pts-radioWithInfo-sub-headline", id: subId, children: group.category }),
2147
2149
  /* @__PURE__ */ jsx21("div", { role: "group", "aria-labelledby": subId, children: (_a2 = group.items) == null ? void 0 : _a2.map((option, o_index) => {
2148
2150
  var _a3, _b2, _c2, _d, _e;
2149
2151
  index++;