@popsure/dirty-swan 0.41.10 → 0.41.12
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 +9 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/index.d.ts +2 -2
- package/dist/esm/components/comparisonTable/index.js +10 -1
- package/dist/esm/components/comparisonTable/index.js.map +1 -1
- package/dist/esm/lib/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/lib/components/comparisonTable/hooks/useComparisonTable.ts +13 -1
- package/src/lib/index.tsx +2 -1
package/dist/esm/lib/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { AutocompleteAddress } from './components/autocompleteAddress';
|
|
|
4
4
|
import { Input } from './components/input';
|
|
5
5
|
import { MultiDropzone, FileType, MultiDropzoneProps, UploadedFile, UploadStatus } from './components/multiDropzone';
|
|
6
6
|
import { DownloadButton } from './components/downloadButton';
|
|
7
|
-
import { InformationBox } from './components/informationBox';
|
|
7
|
+
import { InformationBox, InformationBoxProps } from './components/informationBox';
|
|
8
8
|
import IbanInput from './components/input/iban';
|
|
9
9
|
import { CurrencyInput } from './components/input/currency';
|
|
10
10
|
import { Badge } from './components/badge';
|
|
@@ -27,5 +27,5 @@ import { Toggle } from './components/input/toggle';
|
|
|
27
27
|
import { Toaster, toast } from './components/toast';
|
|
28
28
|
export * from './components/icon';
|
|
29
29
|
export { DateSelector, SignaturePad, AutocompleteAddress, Input, MultiDropzone, DownloadButton, IbanInput, BottomModal, RegularModal, BottomOrRegularModal, CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, Card, CardButton, Button, CurrencyInput, AutoSuggestMultiSelect, Chip, AutoSuggestInput, ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, SegmentedControl, Markdown, Checkbox, Radio, Link, InformationBox, Badge, images, illustrations, Spinner, Toggle, Toaster, toast, };
|
|
30
|
-
export type { IllustrationKeys, FileType, MultiDropzoneProps, TableHeader, UploadedFile, UploadStatus, };
|
|
30
|
+
export type { IllustrationKeys, InformationBoxProps, FileType, MultiDropzoneProps, TableHeader, UploadedFile, UploadStatus, };
|
|
31
31
|
export type { DownloadStatus } from './models/download';
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import debounce from 'lodash.debounce';
|
|
2
|
-
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
|
+
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
3
3
|
|
|
4
4
|
import { ArrowValues } from '../components/TableArrows';
|
|
5
5
|
import generateId from '../../../util/generateId';
|
|
@@ -51,6 +51,18 @@ export const useComparisonTable = () => {
|
|
|
51
51
|
};
|
|
52
52
|
}, []);
|
|
53
53
|
|
|
54
|
+
useLayoutEffect(() => {
|
|
55
|
+
const resetHeaderWidth = () => {
|
|
56
|
+
if (headerRef.current) {
|
|
57
|
+
setHeaderWidth(headerRef.current.clientWidth);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
window.addEventListener('resize', resetHeaderWidth);
|
|
62
|
+
|
|
63
|
+
return () => window.removeEventListener('resize', resetHeaderWidth);
|
|
64
|
+
}, []);
|
|
65
|
+
|
|
54
66
|
const handleTableScroll = () => {
|
|
55
67
|
if (!headerRef.current) {
|
|
56
68
|
return;
|
package/src/lib/index.tsx
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
UploadStatus,
|
|
11
11
|
} from './components/multiDropzone';
|
|
12
12
|
import { DownloadButton } from './components/downloadButton';
|
|
13
|
-
import { InformationBox } from './components/informationBox';
|
|
13
|
+
import { InformationBox, InformationBoxProps } from './components/informationBox';
|
|
14
14
|
import IbanInput from './components/input/iban';
|
|
15
15
|
import { CurrencyInput } from './components/input/currency';
|
|
16
16
|
import { Badge } from './components/badge';
|
|
@@ -97,6 +97,7 @@ export {
|
|
|
97
97
|
|
|
98
98
|
export type {
|
|
99
99
|
IllustrationKeys,
|
|
100
|
+
InformationBoxProps,
|
|
100
101
|
FileType,
|
|
101
102
|
MultiDropzoneProps,
|
|
102
103
|
TableHeader,
|