@popsure/dirty-swan 0.56.7 → 0.57.0

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/cjs/index.js CHANGED
@@ -16083,7 +16083,7 @@ styleInject(css_248z$a);
16083
16083
 
16084
16084
  var Accordion = function (_a) {
16085
16085
  var _b;
16086
- var _c = _a.items, items = _c === void 0 ? [] : _c, _d = _a.classNames, classNames = _d === void 0 ? {} : _d, _e = _a.variant, variant = _e === void 0 ? 'default' : _e, _f = _a.multiple, multiple = _f === void 0 ? false : _f, onClick = _a.onClick;
16086
+ var _c = _a.items, items = _c === void 0 ? [] : _c, _d = _a.classNames, classNames = _d === void 0 ? {} : _d, _e = _a.variant, variant = _e === void 0 ? 'default' : _e, _f = _a.multiple, multiple = _f === void 0 ? false : _f, onClick = _a.onClick, renderAnswer = _a.renderAnswer;
16087
16087
  var _g = React.useState([]), selectedQuestionId = _g[0], setSelectedQuestionId = _g[1];
16088
16088
  var isDefaultVariant = variant === 'default';
16089
16089
  var handleClick = React.useCallback(function (questionData) {
@@ -16121,7 +16121,7 @@ var Accordion = function (_a) {
16121
16121
  },
16122
16122
  _e[styles$a === null || styles$a === void 0 ? void 0 : styles$a.answerIcon] = !isDefaultVariant && icon,
16123
16123
  _e[styles$a === null || styles$a === void 0 ? void 0 : styles$a.answerIconDefault] = isDefaultVariant && icon,
16124
- _e)), children: answer }) })] }, id));
16124
+ _e)), children: renderAnswer ? renderAnswer(answer) : answer }) })] }, id));
16125
16125
  }) }));
16126
16126
  };
16127
16127