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.mjs CHANGED
@@ -25,7 +25,7 @@ var ValidationMessage = ({
25
25
  var ValidationMessage_default = ValidationMessage;
26
26
 
27
27
  // src/helpers/setPreviewAnswerLabel/setPreviewAnswerLabel.ts
28
- var setPreviewAnswerLabel = (question, activatedLanguage = "sv") => {
28
+ var setPreviewAnswerLabel = (question, activatedLanguage) => {
29
29
  var _a;
30
30
  if ((question == null ? void 0 : question.answer) && question.answer.length > 0) {
31
31
  const language = question.languageSupport.find((lang) => lang.language === activatedLanguage);
@@ -2195,11 +2195,11 @@ var RadioWithInfo = ({
2195
2195
  ]
2196
2196
  }
2197
2197
  ) }),
2198
- showPreview && /* @__PURE__ */ jsx21(PreviewRadio2, { question })
2198
+ showPreview && /* @__PURE__ */ jsx21(PreviewRadio2, { question, activatedLanguage })
2199
2199
  ] });
2200
2200
  };
2201
2201
  var RadioMultipleWithInfo2Standard_default = RadioWithInfo;
2202
- var PreviewRadio2 = ({ question, activatedLanguage = "sv" }) => {
2202
+ var PreviewRadio2 = ({ question, activatedLanguage }) => {
2203
2203
  var _a, _b;
2204
2204
  const previewId = `preview-${question.id}`;
2205
2205
  const questionAnswer = setPreviewAnswerLabel_default(question, activatedLanguage);
@@ -2349,11 +2349,11 @@ var CustomDropdownStandard = ({
2349
2349
  ),
2350
2350
  hasOptionInfoText && /* @__PURE__ */ jsx23(OptionTextBody_default, { ...optionTextProps })
2351
2351
  ] }),
2352
- showPreview && /* @__PURE__ */ jsx23(PreviewDropdown, { question })
2352
+ showPreview && /* @__PURE__ */ jsx23(PreviewDropdown, { question, activatedLanguage })
2353
2353
  ] });
2354
2354
  };
2355
2355
  var DropdownStandard_default = CustomDropdownStandard;
2356
- var PreviewDropdown = ({ question, activatedLanguage = "sv" }) => {
2356
+ var PreviewDropdown = ({ question, activatedLanguage }) => {
2357
2357
  var _a, _b;
2358
2358
  const previewId = `preview-${question.id}`;
2359
2359
  const questionAnswer = setPreviewAnswerLabel_default(question, activatedLanguage);