optimized-react-component-library-xyz123 2.12.2 → 2.12.3

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 CHANGED
@@ -113,7 +113,7 @@ var ValidationMessage = ({
113
113
  var ValidationMessage_default = ValidationMessage;
114
114
 
115
115
  // src/helpers/setPreviewAnswerLabel/setPreviewAnswerLabel.ts
116
- var setPreviewAnswerLabel = (question, activatedLanguage = "sv") => {
116
+ var setPreviewAnswerLabel = (question, activatedLanguage) => {
117
117
  var _a;
118
118
  if ((question == null ? void 0 : question.answer) && question.answer.length > 0) {
119
119
  const language = question.languageSupport.find((lang) => lang.language === activatedLanguage);
@@ -2283,11 +2283,11 @@ var RadioWithInfo = ({
2283
2283
  ]
2284
2284
  }
2285
2285
  ) }),
2286
- showPreview && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(PreviewRadio2, { question })
2286
+ showPreview && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(PreviewRadio2, { question, activatedLanguage })
2287
2287
  ] });
2288
2288
  };
2289
2289
  var RadioMultipleWithInfo2Standard_default = RadioWithInfo;
2290
- var PreviewRadio2 = ({ question, activatedLanguage = "sv" }) => {
2290
+ var PreviewRadio2 = ({ question, activatedLanguage }) => {
2291
2291
  var _a, _b;
2292
2292
  const previewId = `preview-${question.id}`;
2293
2293
  const questionAnswer = setPreviewAnswerLabel_default(question, activatedLanguage);
@@ -2437,11 +2437,11 @@ var CustomDropdownStandard = ({
2437
2437
  ),
2438
2438
  hasOptionInfoText && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(OptionTextBody_default, { ...optionTextProps })
2439
2439
  ] }),
2440
- showPreview && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PreviewDropdown, { question })
2440
+ showPreview && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PreviewDropdown, { question, activatedLanguage })
2441
2441
  ] });
2442
2442
  };
2443
2443
  var DropdownStandard_default = CustomDropdownStandard;
2444
- var PreviewDropdown = ({ question, activatedLanguage = "sv" }) => {
2444
+ var PreviewDropdown = ({ question, activatedLanguage }) => {
2445
2445
  var _a, _b;
2446
2446
  const previewId = `preview-${question.id}`;
2447
2447
  const questionAnswer = setPreviewAnswerLabel_default(question, activatedLanguage);