@popsure/dirty-swan 0.49.1 → 0.49.2

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
@@ -3864,21 +3864,22 @@ var defaultPlaceholders = {
3864
3864
  yearFormat: "YYYY",
3865
3865
  error: "Please enter a valid date"
3866
3866
  };
3867
- var isDateValid = function (date, yearBoundaries) {
3867
+ var isDateValid = function (date, yearBoundaries, dateObject) {
3868
3868
  var _a = yearBoundaries.min, min = _a === void 0 ? 0 : _a, _b = yearBoundaries.max, max = _b === void 0 ? 0 : _b;
3869
3869
  if (!date) {
3870
- return { isValid: false, field: 'all' };
3870
+ return { isValid: false, errorType: 'default' };
3871
3871
  }
3872
+ var isValidYear = (dateObject === null || dateObject === void 0 ? void 0 : dateObject.year) && String(dateObject === null || dateObject === void 0 ? void 0 : dateObject.year).length === 4;
3872
3873
  if (max && dayjs(date).isAfter(max + "-01-01", 'year')) {
3873
- return { isValid: false, field: 'year' };
3874
+ return { isValid: false, errorType: isValidYear ? 'afterMax' : 'default' };
3874
3875
  }
3875
3876
  if (min && dayjs(date).isBefore(min + "-01-01", 'year')) {
3876
- return { isValid: false, field: 'year' };
3877
+ return { isValid: false, errorType: isValidYear ? 'beforeMin' : 'default' };
3877
3878
  }
3878
- var isDateValid = dayjs(date, COLLECTABLE_DATE_FORMAT, true).isValid();
3879
+ var isValidDate = dayjs(date, COLLECTABLE_DATE_FORMAT, true).isValid();
3879
3880
  return {
3880
- isValid: isDateValid,
3881
- field: isDateValid ? undefined : 'all',
3881
+ isValid: isValidDate,
3882
+ errorType: 'default'
3882
3883
  };
3883
3884
  };
3884
3885
  var DateSelector = function (_a) {
@@ -3892,9 +3893,9 @@ var DateSelector = function (_a) {
3892
3893
  require$$0.useEffect(function () {
3893
3894
  var calendarDateValue = value ? isoStringtoCalendarDate(value) : undefined;
3894
3895
  if (value !== calendarDateValue && (calendarDateValue === null || calendarDateValue === void 0 ? void 0 : calendarDateValue.day) && (calendarDateValue === null || calendarDateValue === void 0 ? void 0 : calendarDateValue.month) && (calendarDateValue === null || calendarDateValue === void 0 ? void 0 : calendarDateValue.year)) {
3895
- var _a = isDateValid(value, yearBoundaries), isValid = _a.isValid, field = _a.field;
3896
+ var _a = isDateValid(value, yearBoundaries, calendarDateValue), isValid = _a.isValid, errorType = _a.errorType;
3896
3897
  setInternalValue(calendarDateValue);
3897
- setHasError(isValid ? undefined : field);
3898
+ setHasError(isValid ? undefined : errorType);
3898
3899
  setIsDirty(true);
3899
3900
  }
3900
3901
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -3908,13 +3909,16 @@ var DateSelector = function (_a) {
3908
3909
  month: tempValue.month || 0,
3909
3910
  year: tempValue.year || 0,
3910
3911
  });
3911
- var _b = isDateValid(formattedDate, yearBoundaries), isValid = _b.isValid, field = _b.field;
3912
- if (dayjs(formattedDate, COLLECTABLE_DATE_FORMAT, true).isValid()) {
3912
+ var _b = isDateValid(formattedDate, yearBoundaries, tempValue), isValid = _b.isValid, errorType = _b.errorType;
3913
+ var isDateInValidFormat = dayjs(formattedDate, COLLECTABLE_DATE_FORMAT, true).isValid();
3914
+ if (isDateInValidFormat) {
3913
3915
  setIsDirty(true);
3914
3916
  }
3915
- setHasError(isValid ? undefined : field);
3916
- onChange(isValid ? formattedDate : "");
3917
+ setHasError(isValid ? undefined : errorType);
3917
3918
  setIsCalendarOpen(false);
3919
+ if (isDateInValidFormat || isDirty) {
3920
+ onChange(isValid ? formattedDate : "");
3921
+ }
3918
3922
  };
3919
3923
  var handleOnKeyDown = function (event, index) {
3920
3924
  var _a, _b, _c;
@@ -3969,7 +3973,7 @@ var DateSelector = function (_a) {
3969
3973
  };
3970
3974
  var getInputProps = function (key, index) {
3971
3975
  var _a, _b;
3972
- return (__assign({ 'data-cy': "date-selector-" + key, 'data-testid': "date-selector-" + key, className: styles$z[key + "Input"], id: key, name: key, maxLength: key === 'year' ? 4 : 2, required: true, label: placeholders === null || placeholders === void 0 ? void 0 : placeholders[key], placeholder: (_a = placeholders === null || placeholders === void 0 ? void 0 : placeholders[key + "Format"]) !== null && _a !== void 0 ? _a : "", labelInsideInput: true, value: (_b = internalValue[key]) !== null && _b !== void 0 ? _b : '', error: (hasError && [key, 'all'].includes(hasError)) && isDirty, type: "text", inputMode: "numeric", ref: function (el) { itemsRef.current[index] = el; }, onKeyUp: function (event) { return handleOnKeyUp(event, index); }, onKeyDown: function (event) { return handleOnKeyDown(event, index); }, onChange: function (_a) {
3976
+ return (__assign({ 'data-cy': "date-selector-" + key, 'data-testid': "date-selector-" + key, className: styles$z[key + "Input"], id: key, name: key, maxLength: key === 'year' ? 4 : 2, required: true, label: placeholders === null || placeholders === void 0 ? void 0 : placeholders[key], placeholder: (_a = placeholders === null || placeholders === void 0 ? void 0 : placeholders[key + "Format"]) !== null && _a !== void 0 ? _a : "", labelInsideInput: true, value: (_b = internalValue[key]) !== null && _b !== void 0 ? _b : '', error: hasError && isDirty, type: "text", inputMode: "numeric", ref: function (el) { itemsRef.current[index] = el; }, onKeyUp: function (event) { return handleOnKeyUp(event, index); }, onKeyDown: function (event) { return handleOnKeyDown(event, index); }, onChange: function (_a) {
3973
3977
  var target = _a.target;
3974
3978
  return handleOnChange(key, target.value);
3975
3979
  } }, (inputProps === null || inputProps === void 0 ? void 0 : inputProps(key)) || {}));
@@ -3978,7 +3982,11 @@ var DateSelector = function (_a) {
3978
3982
  jsxRuntime.jsx(Input, __assign({}, getInputProps('month', 1)), void 0)] }), void 0),
3979
3983
  jsxRuntime.jsx(Input, __assign({}, getInputProps('year', 2)), void 0)] }), void 0),
3980
3984
  jsxRuntime.jsx(Calendar, { dateFormat: COLLECTABLE_DATE_FORMAT, yearBoundaries: yearBoundaries, displayCalendar: displayCalendar, dayjsLocale: dayjsLocale, firstDayOfWeek: firstDayOfWeek, isOpen: isCalendarOpen, setCalendarOpen: setIsCalendarOpen, value: value, onChange: onChange }, void 0)] }), void 0),
3981
- hasError && isDirty && (jsxRuntime.jsx("p", __assign({ className: "p-p--small tc-red-500 w100 mt8" }, { children: placeholders.error }), void 0))] }, void 0));
3985
+ hasError && isDirty && (jsxRuntime.jsx("p", __assign({ className: classNames$1(hasError && isDirty ? 'd-block' : 'd-none', "p-p--small tc-red-500 w100 mt8"), "data-testid": "date-error-message" }, { children: {
3986
+ default: placeholders.error,
3987
+ afterMax: placeholders.errorAfterMaxYear || "Please choose a date before " + (yearBoundaries.max + 1),
3988
+ beforeMin: placeholders.errorBeforeMinYear || "Please choose a date after " + (yearBoundaries.min - 1),
3989
+ }[hasError || "default"] }), void 0))] }, void 0));
3982
3990
  };
3983
3991
 
3984
3992
  /*!
@@ -12809,7 +12817,7 @@ var ScrollSyncPane = function (_Component) {
12809
12817
  }
12810
12818
  };
12811
12819
 
12812
- _this.childRef = (0, _react.createRef)();
12820
+ _this.childRef = props.innerRef ? props.innerRef : (0, _react.createRef)();
12813
12821
  return _this;
12814
12822
  }
12815
12823
 
@@ -12860,7 +12868,9 @@ var ScrollSyncPane = function (_Component) {
12860
12868
  if (this.props.attachTo) {
12861
12869
  return this.props.children;
12862
12870
  }
12863
- return (0, _react.cloneElement)(_react.Children.only(this.props.children), { ref: this.childRef });
12871
+ return (0, _react.cloneElement)(_react.Children.only(this.props.children), {
12872
+ ref: this.childRef
12873
+ });
12864
12874
  }
12865
12875
  }]);
12866
12876
 
@@ -12872,7 +12882,9 @@ ScrollSyncPane.propTypes = {
12872
12882
  children: _propTypes2.default.node.isRequired,
12873
12883
  attachTo: _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.shape({ current: _propTypes2.default.any })]),
12874
12884
  group: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.arrayOf(_propTypes2.default.string)]),
12875
- enabled: _propTypes2.default.bool
12885
+ enabled: _propTypes2.default.bool,
12886
+ innerRef: _propTypes2.default.oneOfType([// Either a function
12887
+ _propTypes2.default.func, _propTypes2.default.shape({ current: _propTypes2.default.any })])
12876
12888
  };
12877
12889
  ScrollSyncPane.defaultProps = {
12878
12890
  group: 'default',
@@ -13631,8 +13643,8 @@ var ArrowIcon = function (_a) {
13631
13643
  return (jsxRuntime.jsx("svg", __assign({ width: "14", height: "8", viewBox: "0 0 14 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className }, { children: jsxRuntime.jsx("path", { d: "M1 1.00003L7 7.00003L13 1.00003", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, void 0) }), void 0));
13632
13644
  };
13633
13645
 
13634
- var css_248z$9 = ".style-module_container__3BxOi {\n position: absolute;\n width: 100%;\n height: 100%;\n padding: 0 16px;\n justify-content: space-between;\n align-items: center;\n display: flex;\n}\n@media (min-width: 34rem) {\n .style-module_container__3BxOi {\n display: none;\n }\n}\n\n.style-module_next__3yJsi {\n transform: rotate(-90deg);\n}\n\n.style-module_prev__3rIR_ {\n transform: rotate(90deg);\n}\n\n.style-module_arrow__1tlbD {\n width: 32px;\n height: 32px;\n z-index: 3;\n padding: 0;\n border-radius: 50%;\n background-color: #f5f6fb;\n justify-content: center;\n align-items: center;\n stroke: #ebebff;\n}\n.style-module_arrow__1tlbD:hover, .style-module_arrow__1tlbD:focus {\n background-color: #f5f6fb;\n cursor: not-allowed;\n}\n.style-module_arrow__1tlbD:disabled {\n opacity: 1;\n}\n.style-module_arrow__1tlbD:disabled:hover {\n background-color: #f5f6fb;\n}\n\n.style-module_active__2kklB {\n stroke: #8e8cee;\n}\n.style-module_active__2kklB:hover, .style-module_active__2kklB:focus {\n background-color: #f5f6fb;\n cursor: pointer;\n}";
13635
- var styles$8 = {"container":"style-module_container__3BxOi","next":"style-module_next__3yJsi","prev":"style-module_prev__3rIR_","arrow":"style-module_arrow__1tlbD","active":"style-module_active__2kklB"};
13646
+ var css_248z$9 = ".style-module_container__3BxOi {\n position: absolute;\n width: 100%;\n height: 100%;\n padding: 0 16px;\n justify-content: space-between;\n align-items: center;\n display: flex;\n}\n@media (min-width: 34rem) {\n .style-module_container__3BxOi {\n display: none;\n }\n}\n\n.style-module_next__3yJsi {\n transform: rotate(-90deg);\n}\n\n.style-module_prev__3rIR_ {\n transform: rotate(90deg);\n}\n\n.style-module_arrow__1tlbD {\n width: 32px;\n height: 32px;\n z-index: 3;\n padding: 0;\n border-radius: 50%;\n background-color: #f5f6fb;\n justify-content: center;\n align-items: center;\n stroke: #ebebff;\n}\n.style-module_arrow__1tlbD:hover, .style-module_arrow__1tlbD:focus {\n background-color: #f5f6fb;\n cursor: not-allowed;\n}\n\n.style-module_active__2kklB {\n stroke: #8e8cee;\n}\n.style-module_active__2kklB:hover, .style-module_active__2kklB:focus {\n background-color: #f5f6fb;\n cursor: pointer;\n}\n\n.style-module_noPointerEvents__21KuB {\n pointer-events: none;\n}";
13647
+ var styles$8 = {"container":"style-module_container__3BxOi","next":"style-module_next__3yJsi","prev":"style-module_prev__3rIR_","arrow":"style-module_arrow__1tlbD","active":"style-module_active__2kklB","noPointerEvents":"style-module_noPointerEvents__21KuB"};
13636
13648
  styleInject(css_248z$9);
13637
13649
 
13638
13650
  var TableArrows = function (props) {
@@ -13641,10 +13653,12 @@ var TableArrows = function (props) {
13641
13653
  var handleButtonClick = function (value) { return function () { return onClick(value); }; };
13642
13654
  return (jsxRuntime.jsxs("div", __assign({ className: styles$8.container }, { children: [jsxRuntime.jsx("button", __assign({ onClick: handleButtonClick('prev'), className: classNames$1("p-btn--secondary d-flex", styles$8.prev, styles$8.arrow, (_a = {},
13643
13655
  _a[styles$8.active] = active.left,
13644
- _a)), disabled: !active.left }, { children: jsxRuntime.jsx(ArrowIcon, {}, void 0) }), void 0),
13656
+ _a[styles$8.noPointerEvents] = !active.left,
13657
+ _a)) }, { children: jsxRuntime.jsx(ArrowIcon, {}, void 0) }), void 0),
13645
13658
  jsxRuntime.jsx("button", __assign({ onClick: handleButtonClick('next'), className: classNames$1("p-btn--secondary d-flex", styles$8.next, styles$8.arrow, (_b = {},
13646
13659
  _b[styles$8.active] = active.right,
13647
- _b)), disabled: !active.right }, { children: jsxRuntime.jsx(ArrowIcon, {}, void 0) }), void 0)] }), void 0));
13660
+ _b[styles$8.noPointerEvents] = !active.right,
13661
+ _b)) }, { children: jsxRuntime.jsx(ArrowIcon, {}, void 0) }), void 0)] }), void 0));
13648
13662
  };
13649
13663
 
13650
13664
  var css_248z$8 = ".style-module_wrapper__1s115 {\n position: relative;\n}\n\n.style-module_infoButton__1nIU2 {\n position: absolute;\n right: -32px;\n top: 0;\n}";
@@ -13719,9 +13733,8 @@ var useComparisonTable = function (_a) {
13719
13733
  var onSelectionChanged = _a.onSelectionChanged;
13720
13734
  var _b = require$$0.useState(false), showMore = _b[0], setShowMore = _b[1];
13721
13735
  var _c = require$$0.useState(1400), headerWidth = _c[0], setHeaderWidth = _c[1];
13722
- var _d = require$$0.useState(''), headerId = _d[0], setHeaderId = _d[1];
13723
- var _e = require$$0.useState(0), selectedTabIndex = _e[0], setSelectedTabIndex = _e[1];
13724
- var _f = require$$0.useState(''), selectedSection = _f[0], setSelectedSection = _f[1];
13736
+ var _d = require$$0.useState(0), selectedTabIndex = _d[0], setSelectedTabIndex = _d[1];
13737
+ var _e = require$$0.useState(''), selectedSection = _e[0], setSelectedSection = _e[1];
13725
13738
  var headerRef = require$$0.useRef(null);
13726
13739
  var contentContainerRef = require$$0.useRef(null);
13727
13740
  var observerRef = require$$0.useRef(null);
@@ -13804,25 +13817,12 @@ var useComparisonTable = function (_a) {
13804
13817
  return [2 /*return*/];
13805
13818
  });
13806
13819
  }); };
13807
- require$$0.useEffect(function () {
13808
- if (headerRef.current) {
13809
- return;
13810
- }
13811
- var headerById = document.getElementById(headerId);
13812
- if (headerById) {
13813
- scrollContainerCallbackRef(headerById);
13814
- }
13815
- }, [headerId, scrollContainerCallbackRef]);
13816
- require$$0.useEffect(function () {
13817
- setHeaderId(generateId());
13818
- }, []);
13819
13820
  require$$0.useEffect(function () {
13820
13821
  onSelectionChanged === null || onSelectionChanged === void 0 ? void 0 : onSelectionChanged(selectedTabIndex);
13821
13822
  // eslint-disable-next-line react-hooks/exhaustive-deps
13822
13823
  }, [selectedTabIndex]);
13823
13824
  return {
13824
13825
  headerWidth: headerWidth,
13825
- headerId: headerId,
13826
13826
  contentContainerRef: contentContainerRef,
13827
13827
  selectedSection: selectedSection,
13828
13828
  setSelectedSection: setSelectedSection,
@@ -13842,20 +13842,20 @@ styleInject(css_248z$4);
13842
13842
  var ComparisonTable = function (props) {
13843
13843
  var _a;
13844
13844
  var headers = props.headers, data = props.data, hideDetails = props.hideDetails, _b = props.hideDetailsCaption, hideDetailsCaption = _b === void 0 ? 'Hide details' : _b, _c = props.showDetailsCaption, showDetailsCaption = _c === void 0 ? 'Show details' : _c, classNameOverrides = props.classNameOverrides, hideScrollBars = props.hideScrollBars, hideScrollBarsMobile = props.hideScrollBarsMobile, collapsibleSections = props.collapsibleSections, cellWidth = props.cellWidth, firstColumnWidth = props.firstColumnWidth, stickyHeaderTopOffset = props.stickyHeaderTopOffset, growContent = props.growContent, onSelectionChanged = props.onSelectionChanged;
13845
- var _d = useComparisonTable({ onSelectionChanged: onSelectionChanged }), headerWidth = _d.headerWidth, contentContainerRef = _d.contentContainerRef, selectedSection = _d.selectedSection, setSelectedSection = _d.setSelectedSection, selectedTabIndex = _d.selectedTabIndex, scrollContainerCallbackRef = _d.scrollContainerCallbackRef, handleArrowsClick = _d.handleArrowsClick, toggleMoreRows = _d.toggleMoreRows, showMore = _d.showMore, headerId = _d.headerId;
13845
+ var _d = useComparisonTable({ onSelectionChanged: onSelectionChanged }), headerWidth = _d.headerWidth, contentContainerRef = _d.contentContainerRef, selectedSection = _d.selectedSection, setSelectedSection = _d.setSelectedSection, selectedTabIndex = _d.selectedTabIndex, scrollContainerCallbackRef = _d.scrollContainerCallbackRef, handleArrowsClick = _d.handleArrowsClick, toggleMoreRows = _d.toggleMoreRows, showMore = _d.showMore;
13846
13846
  var cssVariablesStyle = __assign(__assign(__assign(__assign({ '--tableWidth': headerWidth + "px" }, (cellWidth ? { '--cellWidth': cellWidth + "px" } : {})), (firstColumnWidth
13847
13847
  ? { '--firstColumnWidth': firstColumnWidth + "px" }
13848
13848
  : {})), (stickyHeaderTopOffset
13849
13849
  ? { '--stickyHeaderTopOffset': stickyHeaderTopOffset + "px" }
13850
13850
  : {})), (growContent ? { '--growContent': '100%' } : {}));
13851
- return (jsxRuntime.jsx(dist$1.exports.ScrollSync, __assign({ onSync: scrollContainerCallbackRef }, { children: jsxRuntime.jsxs("div", __assign({ style: cssVariablesStyle, className: classNames$1((_a = {},
13851
+ return (jsxRuntime.jsx(dist$1.exports.ScrollSync, { children: jsxRuntime.jsxs("div", __assign({ style: cssVariablesStyle, className: classNames$1((_a = {},
13852
13852
  _a[baseStyles.noScrollBars] = hideScrollBars,
13853
13853
  _a[baseStyles.noScrollBarsMobile] = hideScrollBarsMobile,
13854
- _a)) }, { children: [jsxRuntime.jsx("div", __assign({ className: classNames$1(baseStyles.header, classNameOverrides === null || classNameOverrides === void 0 ? void 0 : classNameOverrides.header) }, { children: jsxRuntime.jsx(dist$1.exports.ScrollSyncPane, { children: jsxRuntime.jsx("div", __assign({ id: headerId, className: classNames$1(baseStyles.container) }, { children: jsxRuntime.jsx("div", __assign({ className: classNames$1(baseStyles['overflow-container']) }, { children: jsxRuntime.jsxs("div", __assign({ className: baseStyles['group-container'] }, { children: [jsxRuntime.jsx(TableArrows, { onClick: handleArrowsClick, active: {
13854
+ _a)) }, { children: [jsxRuntime.jsx("div", __assign({ className: classNames$1(baseStyles.header, classNameOverrides === null || classNameOverrides === void 0 ? void 0 : classNameOverrides.header) }, { children: jsxRuntime.jsx(dist$1.exports.ScrollSyncPane, __assign({ innerRef: scrollContainerCallbackRef }, { children: jsxRuntime.jsx("div", __assign({ className: classNames$1(baseStyles.container) }, { children: jsxRuntime.jsx("div", __assign({ className: classNames$1(baseStyles['overflow-container']) }, { children: jsxRuntime.jsxs("div", __assign({ className: baseStyles['group-container'] }, { children: [jsxRuntime.jsx(TableArrows, { onClick: handleArrowsClick, active: {
13855
13855
  left: selectedTabIndex > 0,
13856
13856
  right: selectedTabIndex < data.length - 1,
13857
13857
  } }, void 0),
13858
- jsxRuntime.jsx(Row$1, { rowId: "table-header-row", cell: headers[0].cells[0], data: data, isRowHeader: true, cellClassName: classNameOverrides === null || classNameOverrides === void 0 ? void 0 : classNameOverrides.headerCell }, "table-header-row")] }), void 0) }), void 0) }), void 0) }, void 0) }), void 0),
13858
+ jsxRuntime.jsx(Row$1, { rowId: "table-header-row", cell: headers[0].cells[0], data: data, isRowHeader: true, cellClassName: classNameOverrides === null || classNameOverrides === void 0 ? void 0 : classNameOverrides.headerCell }, "table-header-row")] }), void 0) }), void 0) }), void 0) }), void 0) }), void 0),
13859
13859
  jsxRuntime.jsxs("div", __assign({ ref: contentContainerRef }, { children: [Array.isArray(headers) &&
13860
13860
  headers
13861
13861
  .filter(function (headerGroup) { return !hideDetails || showMore || headerGroup.default; })
@@ -13881,7 +13881,7 @@ var ComparisonTable = function (props) {
13881
13881
  */
13882
13882
  headerGroup.label && !collapsibleSections && (jsxRuntime.jsx("div", __assign({ className: baseStyles['group-title'] }, { children: jsxRuntime.jsx("h4", __assign({ className: "p-h4 " + baseStyles.sticky }, { children: headerGroup.label }), void 0) }), void 0)), content] }), void 0) }), void 0) }), void 0) }, void 0) }), idString)) }, idString));
13883
13883
  }),
13884
- hideDetails && (jsxRuntime.jsx("div", __assign({ className: classNames$1(baseStyles['show-details-container'], baseStyles.sticky, 'mt48') }, { children: jsxRuntime.jsx("div", { children: jsxRuntime.jsxs("button", __assign({ className: classNames$1('w100 d-flex p-a p-h4 c-pointer', baseStyles['show-details-button'], classNameOverrides === null || classNameOverrides === void 0 ? void 0 : classNameOverrides.hideDetailsButton), onClick: toggleMoreRows, type: "button" }, { children: [showMore ? hideDetailsCaption : showDetailsCaption, jsxRuntime.jsx(Chevron, { className: showMore ? '' : baseStyles['icon-inverted'] }, void 0)] }), void 0) }, void 0) }), void 0))] }), void 0)] }), void 0) }), void 0));
13884
+ hideDetails && (jsxRuntime.jsx("div", __assign({ className: classNames$1(baseStyles['show-details-container'], baseStyles.sticky, 'mt48') }, { children: jsxRuntime.jsx("div", { children: jsxRuntime.jsxs("button", __assign({ className: classNames$1('w100 d-flex p-a p-h4 c-pointer', baseStyles['show-details-button'], classNameOverrides === null || classNameOverrides === void 0 ? void 0 : classNameOverrides.hideDetailsButton), onClick: toggleMoreRows, type: "button" }, { children: [showMore ? hideDetailsCaption : showDetailsCaption, jsxRuntime.jsx(Chevron, { className: showMore ? '' : baseStyles['icon-inverted'] }, void 0)] }), void 0) }, void 0) }), void 0))] }), void 0)] }), void 0) }, void 0));
13885
13885
  };
13886
13886
 
13887
13887
  var css_248z$3 = ".style-module_background-container__2Gjka {\n position: relative;\n display: inline-block;\n background-color: var(--ds-primary-100);\n border-radius: 8px;\n padding: 0 8px;\n}\n\n.style-module_chip-container__7XeKn {\n display: flex;\n align-items: center;\n}\n\n.style-module_chip__3rgLT {\n cursor: pointer;\n z-index: 2;\n padding-left: 16px;\n padding-right: 16px;\n}\n\n.style-module_select-chip-background__YCAyw {\n position: absolute;\n background-color: white;\n border-radius: 8px;\n top: 8px;\n z-index: 1;\n transition: width 0.3s, left 0.3s;\n}";