optimized-react-component-library-xyz123 2.8.19 → 2.8.20
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2210,7 +2210,7 @@ var getInfoTextConnectionList = (questionLanguageSupport, language) => {
|
|
|
2210
2210
|
};
|
|
2211
2211
|
var OptionTextBody = ({
|
|
2212
2212
|
infoText,
|
|
2213
|
-
|
|
2213
|
+
selectedLabel,
|
|
2214
2214
|
TextQuestionId,
|
|
2215
2215
|
activatedLanguage,
|
|
2216
2216
|
connectedToSelect = false
|
|
@@ -2221,11 +2221,11 @@ var OptionTextBody = ({
|
|
|
2221
2221
|
{
|
|
2222
2222
|
...connectedToSelect && {
|
|
2223
2223
|
id: `${TextQuestionId}`,
|
|
2224
|
-
"aria-live":
|
|
2224
|
+
//"aria-live": {liveMode},
|
|
2225
2225
|
"aria-atomic": "true"
|
|
2226
2226
|
},
|
|
2227
2227
|
children: infoText.length > 0 && /* @__PURE__ */ jsxs18("div", { id: TextQuestionId + "-placeholder", className: "pts-root-question pts-optionTextBody-container", children: [
|
|
2228
|
-
/* @__PURE__ */ jsx22("span", { className: "sr-only", children: activatedLanguage === "en" ? `
|
|
2228
|
+
/* @__PURE__ */ jsx22("span", { className: "sr-only", children: `${activatedLanguage === "en" ? `More information about this option` : `Mer information om detta val`}.` }),
|
|
2229
2229
|
/* @__PURE__ */ jsx22(
|
|
2230
2230
|
TextBody_default,
|
|
2231
2231
|
{
|
|
@@ -2246,7 +2246,7 @@ var CustomDropdownStandard = ({
|
|
|
2246
2246
|
showPreview = false,
|
|
2247
2247
|
activatedLanguage = "sv"
|
|
2248
2248
|
}) => {
|
|
2249
|
-
var _a, _b, _c, _d, _e, _f;
|
|
2249
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2250
2250
|
const questionId = `question-${question.id}`;
|
|
2251
2251
|
const selectId = `select-${question.id}`;
|
|
2252
2252
|
const errorId = `error-${question.id}`;
|
|
@@ -2301,7 +2301,7 @@ var CustomDropdownStandard = ({
|
|
|
2301
2301
|
OptionTextBody_default,
|
|
2302
2302
|
{
|
|
2303
2303
|
infoText: (_e = (_d = optionsInfoText.find((optionI) => optionI.selectedValue === question.answer)) == null ? void 0 : _d.infoText) != null ? _e : "",
|
|
2304
|
-
|
|
2304
|
+
selectedLabel: (_h = (_g = (_f = question.options) == null ? void 0 : _f.find((option) => option.value === question.answer)) == null ? void 0 : _g.label) != null ? _h : "",
|
|
2305
2305
|
TextQuestionId: infoTextId,
|
|
2306
2306
|
activatedLanguage: activatedLanguage != null ? activatedLanguage : "sv",
|
|
2307
2307
|
connectedToSelect: true
|