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.d.mts
CHANGED
|
@@ -926,7 +926,7 @@ declare const AlertInTextStandard: FC<AlertInTextProps>;
|
|
|
926
926
|
|
|
927
927
|
interface OptionTextBodyProps {
|
|
928
928
|
infoText: string;
|
|
929
|
-
|
|
929
|
+
selectedLabel?: string;
|
|
930
930
|
activatedLanguage?: string;
|
|
931
931
|
TextQuestionId: string;
|
|
932
932
|
connectedToSelect?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -926,7 +926,7 @@ declare const AlertInTextStandard: FC<AlertInTextProps>;
|
|
|
926
926
|
|
|
927
927
|
interface OptionTextBodyProps {
|
|
928
928
|
infoText: string;
|
|
929
|
-
|
|
929
|
+
selectedLabel?: string;
|
|
930
930
|
activatedLanguage?: string;
|
|
931
931
|
TextQuestionId: string;
|
|
932
932
|
connectedToSelect?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -2298,7 +2298,7 @@ var getInfoTextConnectionList = (questionLanguageSupport, language) => {
|
|
|
2298
2298
|
};
|
|
2299
2299
|
var OptionTextBody = ({
|
|
2300
2300
|
infoText,
|
|
2301
|
-
|
|
2301
|
+
selectedLabel,
|
|
2302
2302
|
TextQuestionId,
|
|
2303
2303
|
activatedLanguage,
|
|
2304
2304
|
connectedToSelect = false
|
|
@@ -2309,11 +2309,11 @@ var OptionTextBody = ({
|
|
|
2309
2309
|
{
|
|
2310
2310
|
...connectedToSelect && {
|
|
2311
2311
|
id: `${TextQuestionId}`,
|
|
2312
|
-
"aria-live":
|
|
2312
|
+
//"aria-live": {liveMode},
|
|
2313
2313
|
"aria-atomic": "true"
|
|
2314
2314
|
},
|
|
2315
2315
|
children: infoText.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { id: TextQuestionId + "-placeholder", className: "pts-root-question pts-optionTextBody-container", children: [
|
|
2316
|
-
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "sr-only", children: activatedLanguage === "en" ? `
|
|
2316
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "sr-only", children: `${activatedLanguage === "en" ? `More information about this option` : `Mer information om detta val`}.` }),
|
|
2317
2317
|
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2318
2318
|
TextBody_default,
|
|
2319
2319
|
{
|
|
@@ -2334,7 +2334,7 @@ var CustomDropdownStandard = ({
|
|
|
2334
2334
|
showPreview = false,
|
|
2335
2335
|
activatedLanguage = "sv"
|
|
2336
2336
|
}) => {
|
|
2337
|
-
var _a, _b, _c, _d, _e, _f;
|
|
2337
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2338
2338
|
const questionId = `question-${question.id}`;
|
|
2339
2339
|
const selectId = `select-${question.id}`;
|
|
2340
2340
|
const errorId = `error-${question.id}`;
|
|
@@ -2389,7 +2389,7 @@ var CustomDropdownStandard = ({
|
|
|
2389
2389
|
OptionTextBody_default,
|
|
2390
2390
|
{
|
|
2391
2391
|
infoText: (_e = (_d = optionsInfoText.find((optionI) => optionI.selectedValue === question.answer)) == null ? void 0 : _d.infoText) != null ? _e : "",
|
|
2392
|
-
|
|
2392
|
+
selectedLabel: (_h = (_g = (_f = question.options) == null ? void 0 : _f.find((option) => option.value === question.answer)) == null ? void 0 : _g.label) != null ? _h : "",
|
|
2393
2393
|
TextQuestionId: infoTextId,
|
|
2394
2394
|
activatedLanguage: activatedLanguage != null ? activatedLanguage : "sv",
|
|
2395
2395
|
connectedToSelect: true
|