@popsure/dirty-swan 0.56.6 → 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
 
@@ -16255,13 +16255,13 @@ var styles$4 = {"wrapper":"Table-module_wrapper__2MMNq","container":"Table-modul
16255
16255
  styleInject(css_248z$4);
16256
16256
 
16257
16257
  var breakpointLookup = function (breakpoint) {
16258
+ if (typeof window === 'undefined') {
16259
+ return {
16260
+ initialValue: false,
16261
+ queryString: '',
16262
+ };
16263
+ }
16258
16264
  switch (breakpoint) {
16259
- case 'BELOW_MOBILE':
16260
- default:
16261
- return {
16262
- initialValue: window.innerWidth <= 544, // 34rem = 544px = mobile breakpoint}
16263
- queryString: '(max-width: 34rem)',
16264
- };
16265
16265
  case 'BELOW_TABLET':
16266
16266
  return {
16267
16267
  initialValue: window.innerWidth <= 720, // 45rem = 720px = tablet breakpoint
@@ -16287,6 +16287,12 @@ var breakpointLookup = function (breakpoint) {
16287
16287
  initialValue: window.innerWidth >= 1024, // 64rem = 1024px = desktop breakpoint
16288
16288
  queryString: '(min-width: 64rem)',
16289
16289
  };
16290
+ case 'BELOW_MOBILE':
16291
+ default:
16292
+ return {
16293
+ initialValue: window.innerWidth <= 544, // 34rem = 544px = mobile breakpoint}
16294
+ queryString: '(max-width: 34rem)',
16295
+ };
16290
16296
  }
16291
16297
  };
16292
16298
  var useMediaQuery = function (breakpoint) {