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

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);
@@ -3118,7 +3118,8 @@ var QuestionRenderer = ({
3118
3118
  {
3119
3119
  question,
3120
3120
  handleQuestionInputChange,
3121
- showPreview
3121
+ showPreview,
3122
+ activatedLanguage
3122
3123
  }
3123
3124
  ),
3124
3125
  question.questionType === "RadioWithInfo" && /* @__PURE__ */ jsx24(
@@ -3126,7 +3127,8 @@ var QuestionRenderer = ({
3126
3127
  {
3127
3128
  question,
3128
3129
  handleQuestionInputChange,
3129
- showPreview
3130
+ showPreview,
3131
+ activatedLanguage
3130
3132
  }
3131
3133
  ),
3132
3134
  question.questionType === "TextField" && /* @__PURE__ */ jsx24(
@@ -3180,7 +3182,8 @@ var QuestionRenderer = ({
3180
3182
  {
3181
3183
  question,
3182
3184
  handleQuestionInputChange,
3183
- showPreview
3185
+ showPreview,
3186
+ activatedLanguage
3184
3187
  }
3185
3188
  ),
3186
3189
  question.questionType === "InfoOnly" && /* @__PURE__ */ jsx24(