@popsure/dirty-swan 0.27.26 → 0.27.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popsure/dirty-swan",
3
- "version": "0.27.26",
3
+ "version": "0.27.27",
4
4
  "author": "Vincent Audoire <vincent@getpopsure.com>",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -16,7 +16,7 @@ const TableArrows = (props: TableArrowsProps) => {
16
16
  const handleButtonClick = (value: ArrowValues) => () => onClick(value);
17
17
 
18
18
  return (
19
- <div className={`mt24 ${styles.container}`}>
19
+ <div className={styles.container}>
20
20
  <button
21
21
  onClick={handleButtonClick('prev')}
22
22
  className={classNames(
@@ -4,8 +4,10 @@
4
4
  .container {
5
5
  position: absolute;
6
6
  width: 100%;
7
+ height: 100%;
7
8
  padding: 0 16px;
8
9
  justify-content: space-between;
10
+ align-items: center;
9
11
  z-index: 1;
10
12
  display: flex;
11
13
  @include p-size-tablet {
@@ -186,39 +186,43 @@ const ComparisonTable = <T extends { id: number }>(
186
186
  </ScrollSyncPane>
187
187
  </AccordionItem>
188
188
  ) : (
189
- <ScrollSyncPane>
190
- <div
191
- className={classNames(
192
- baseStyles.container,
193
- styles?.container,
194
- {
195
- [baseStyles.noScrollBars]: hideScrollBars,
196
- }
197
- )}
198
- >
189
+ <div key={idString}>
190
+ <ScrollSyncPane>
199
191
  <div
200
192
  className={classNames(
201
- baseStyles['overflow-container']
202
- )}
203
- >
204
- <div className={baseStyles['group-container']}>
193
+ baseStyles.container,
194
+ styles?.container,
205
195
  {
206
- /**
207
- * Print a table subheader if the `label` value is present
208
- */
209
- headerGroup.label && !collapsibleSections && (
210
- <div className={baseStyles['group-title']}>
211
- <h4 className={`p-h4 ${baseStyles.sticky}`}>
212
- {headerGroup.label}
213
- </h4>
214
- </div>
215
- )
196
+ [baseStyles.noScrollBars]: hideScrollBars,
216
197
  }
217
- {content}
198
+ )}
199
+ >
200
+ <div
201
+ className={classNames(
202
+ baseStyles['overflow-container']
203
+ )}
204
+ >
205
+ <div className={baseStyles['group-container']}>
206
+ {
207
+ /**
208
+ * Print a table subheader if the `label` value is present
209
+ */
210
+ headerGroup.label && !collapsibleSections && (
211
+ <div className={baseStyles['group-title']}>
212
+ <h4
213
+ className={`p-h4 ${baseStyles.sticky}`}
214
+ >
215
+ {headerGroup.label}
216
+ </h4>
217
+ </div>
218
+ )
219
+ }
220
+ {content}
221
+ </div>
218
222
  </div>
219
223
  </div>
220
- </div>
221
- </ScrollSyncPane>
224
+ </ScrollSyncPane>
225
+ </div>
222
226
  )}
223
227
  </>
224
228
  );