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.js +11 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/questions.css +6 -0
package/dist/index.js
CHANGED
|
@@ -2170,9 +2170,16 @@ var RadioCollapseItem = ({
|
|
|
2170
2170
|
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: `pts-radio-collapse-content `, children: [
|
|
2171
2171
|
isOpen && //TODO??
|
|
2172
2172
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "sr-only", children: activatedLanguage === "sv" ? `Visar informationstext om svarsalternativet ${label}` : `Displays informational text about the answer option ${label}` }),
|
|
2173
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2174
|
-
|
|
2175
|
-
|
|
2173
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2174
|
+
"div",
|
|
2175
|
+
{
|
|
2176
|
+
dangerouslySetInnerHTML: {
|
|
2177
|
+
__html: import_dompurify6.default.sanitize(optionText != null ? optionText : "", {
|
|
2178
|
+
ADD_ATTR: ["target", "style"]
|
|
2179
|
+
})
|
|
2180
|
+
}
|
|
2181
|
+
}
|
|
2182
|
+
)
|
|
2176
2183
|
] })
|
|
2177
2184
|
}
|
|
2178
2185
|
)
|
|
@@ -2220,16 +2227,11 @@ var RadioWithInfo = ({
|
|
|
2220
2227
|
"aria-invalid": question.hasValidationError ? question.hasValidationError : void 0,
|
|
2221
2228
|
"aria-describedby": question.hasValidationError ? errorId : void 0,
|
|
2222
2229
|
children: [
|
|
2223
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("legend", { id: `label-${groupId}`, children: [
|
|
2224
|
-
question.questionLabel,
|
|
2225
|
-
" ",
|
|
2226
|
-
question.isQuestionMandatory && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { "aria-hidden": true, className: "pts-root-mandatoryAsterisk", children: "*" })
|
|
2227
|
-
] }),
|
|
2228
2230
|
groupedOptionArray.map((group, g_index) => {
|
|
2229
2231
|
var _a2;
|
|
2230
2232
|
let subId = "subheading-" + g_index;
|
|
2231
2233
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_react11.default.Fragment, { children: [
|
|
2232
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("
|
|
2234
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("legend", { className: "pts-radioWithInfo-sub-headline", id: subId, children: group.category }),
|
|
2233
2235
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { role: "group", "aria-labelledby": subId, children: (_a2 = group.items) == null ? void 0 : _a2.map((option, o_index) => {
|
|
2234
2236
|
var _a3, _b2, _c2, _d, _e;
|
|
2235
2237
|
index++;
|