@popsure/dirty-swan 0.28.2 → 0.28.3
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.d.ts +1 -1
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/comparisonTable/components/TableButton/index.d.ts +2 -1
- package/dist/cjs/lib/components/multiDropzone/types.d.ts +0 -1
- package/dist/cjs/lib/index.d.ts +1 -2
- package/dist/esm/components/comparisonTable/components/Row/index.js +1 -1
- package/dist/esm/components/comparisonTable/components/TableButton/index.js +2 -2
- package/dist/esm/components/comparisonTable/components/TableButton/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/TableRating/index.js +2 -2
- package/dist/esm/components/comparisonTable/components/TableRating/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/TableRowHeader/index.js +1 -1
- package/dist/esm/components/comparisonTable/components/TableRowHeader/index.js.map +1 -1
- package/dist/esm/components/multiDropzone/index.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/lib/components/comparisonTable/components/TableButton/index.d.ts +2 -1
- package/dist/esm/lib/components/multiDropzone/types.d.ts +0 -1
- package/dist/esm/lib/index.d.ts +1 -2
- package/package.json +1 -1
- package/src/index.tsx +8 -1
- package/src/lib/components/comparisonTable/components/Row/style.module.scss +4 -4
- package/src/lib/components/comparisonTable/components/TableButton/index.tsx +5 -1
- package/src/lib/components/comparisonTable/components/TableButton/style.module.scss +12 -4
- package/src/lib/components/comparisonTable/components/TableRating/index.tsx +2 -2
- package/src/lib/components/comparisonTable/components/TableRowHeader/index.tsx +1 -1
- package/src/lib/components/comparisonTable/index.stories.mdx +57 -7
- package/src/lib/components/multiDropzone/types.ts +0 -1
- package/src/lib/index.tsx +7 -8
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { DateSelector, SignaturePad, AutocompleteAddress, Input, MultiDropzone, IbanInput, CurrencyInput, BottomModal, RegularModal, BottomOrRegularModal, CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton, Button, AutoSuggestMultiSelect, Chip, AutoSuggestInput, ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, SegmentedControl, DownloadButton, Markdown, } from './lib';
|
|
2
|
-
export type { TableHeader,
|
|
2
|
+
export type { DownloadStatus, FileType, MultiDropzoneProps, TableHeader, UploadedFile, UploadStatus } from './lib';
|
package/dist/esm/lib/index.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ import AutoSuggestInput from './components/input/autoSuggestInput';
|
|
|
15
15
|
import { ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, TableHeader } from './components/comparisonTable';
|
|
16
16
|
import SegmentedControl from './components/segmentedControl';
|
|
17
17
|
import Markdown from './components/markdown';
|
|
18
|
-
export type { FileType, MultiDropzoneProps, UploadedFile, UploadStatus };
|
|
19
18
|
export { DateSelector, SignaturePad, AutocompleteAddress, Input, MultiDropzone, DownloadButton, IbanInput, BottomModal, RegularModal, BottomOrRegularModal, CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton, Button, CurrencyInput, AutoSuggestMultiSelect, Chip, AutoSuggestInput, ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, SegmentedControl, Markdown, };
|
|
20
|
-
export type { TableHeader };
|
|
19
|
+
export type { FileType, MultiDropzoneProps, TableHeader, UploadedFile, UploadStatus };
|
|
21
20
|
export type { DownloadStatus } from './models/download';
|
package/package.json
CHANGED
package/src/index.tsx
CHANGED
|
@@ -32,6 +32,13 @@ export {
|
|
|
32
32
|
Markdown,
|
|
33
33
|
} from './lib';
|
|
34
34
|
|
|
35
|
-
export type {
|
|
35
|
+
export type {
|
|
36
|
+
DownloadStatus,
|
|
37
|
+
FileType,
|
|
38
|
+
MultiDropzoneProps,
|
|
39
|
+
TableHeader,
|
|
40
|
+
UploadedFile,
|
|
41
|
+
UploadStatus
|
|
42
|
+
} from './lib';
|
|
36
43
|
|
|
37
44
|
ReactDOM.render(<App />, document.getElementById('root'));
|
|
@@ -112,12 +112,12 @@ h4.cell {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
.addon {
|
|
116
|
-
width: 100%;
|
|
115
|
+
h4.addon {
|
|
117
116
|
border-right: none;
|
|
118
|
-
max-width: 100vw;
|
|
117
|
+
max-width: calc(100vw - 64px);
|
|
118
|
+
width: 100vw;
|
|
119
119
|
|
|
120
120
|
@include p-size-desktop {
|
|
121
|
-
max-width:
|
|
121
|
+
max-width: 976px;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import styles from './style.module.scss';
|
|
2
3
|
|
|
3
4
|
interface Props {
|
|
5
|
+
children: ReactNode;
|
|
4
6
|
onClick: () => void;
|
|
5
7
|
className?: string;
|
|
6
8
|
}
|
|
@@ -15,7 +17,9 @@ const TableButton: React.FC<Props> = ({
|
|
|
15
17
|
data-testid="ds-table-button"
|
|
16
18
|
onClick={onClick}
|
|
17
19
|
>
|
|
18
|
-
|
|
20
|
+
<span>
|
|
21
|
+
{children}
|
|
22
|
+
</span>
|
|
19
23
|
</button>
|
|
20
24
|
);
|
|
21
25
|
|
|
@@ -2,17 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
.button {
|
|
4
4
|
background-color: transparent;
|
|
5
|
-
border-bottom: 2px dashed $ds-grey-600;
|
|
6
5
|
color: $ds-grey-700;
|
|
7
6
|
cursor: pointer;
|
|
7
|
+
margin: 2px 0;
|
|
8
8
|
padding: 2px;
|
|
9
|
-
transition: 0.3s ease;
|
|
10
|
-
|
|
9
|
+
transition: color 0.3s ease;
|
|
10
|
+
|
|
11
|
+
span {
|
|
12
|
+
border-bottom: 2px dashed $ds-grey-600;
|
|
13
|
+
display: inline;
|
|
14
|
+
transition: border-color 0.3s ease;
|
|
15
|
+
}
|
|
11
16
|
|
|
12
17
|
&:hover,
|
|
13
18
|
&:focus {
|
|
14
|
-
border-color: $ds-primary-500;
|
|
15
19
|
color: $ds-primary-500;
|
|
16
20
|
outline-color: $ds-primary-500;
|
|
21
|
+
|
|
22
|
+
span {
|
|
23
|
+
border-color: $ds-primary-500;
|
|
24
|
+
}
|
|
17
25
|
}
|
|
18
26
|
}
|
|
@@ -28,7 +28,7 @@ const TableRating = (props: TableRatingProps) => {
|
|
|
28
28
|
const SelectedIcon = getRatingIcon(type);
|
|
29
29
|
|
|
30
30
|
return (
|
|
31
|
-
|
|
31
|
+
<>
|
|
32
32
|
{VALID_VALUES.map((value) => (
|
|
33
33
|
<SelectedIcon
|
|
34
34
|
key={value}
|
|
@@ -38,7 +38,7 @@ const TableRating = (props: TableRatingProps) => {
|
|
|
38
38
|
)}
|
|
39
39
|
/>
|
|
40
40
|
))}
|
|
41
|
-
|
|
41
|
+
</>
|
|
42
42
|
);
|
|
43
43
|
};
|
|
44
44
|
|
|
@@ -16,7 +16,7 @@ const TableRowHeader = ({ icon, label, subtitle, onClickInfo }: TableRowHeaderPr
|
|
|
16
16
|
{!onClickInfo ? (
|
|
17
17
|
<span>{label}</span>
|
|
18
18
|
) : (
|
|
19
|
-
<TableButton className="mr8" onClick={onClickInfo}>
|
|
19
|
+
<TableButton className="mr8 ta-left" onClick={onClickInfo}>
|
|
20
20
|
{label}
|
|
21
21
|
</TableButton>
|
|
22
22
|
)}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { Meta, Preview } from '@storybook/addon-docs/blocks';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { CardButton } from '../cards';
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
ComparisonTable,
|
|
7
|
+
TableButton,
|
|
8
|
+
TableRating,
|
|
9
|
+
TableRowHeader,
|
|
10
|
+
TableTrueFalse,
|
|
11
|
+
} from '.';
|
|
4
12
|
|
|
5
13
|
<Meta title="JSX/Comparison Table" component={ComparisonTable} />
|
|
6
14
|
|
|
@@ -77,13 +85,18 @@ export const ComparisonTableWithData = () => {
|
|
|
77
85
|
id: 4,
|
|
78
86
|
key: 'imdb',
|
|
79
87
|
label: 'IMDB rating',
|
|
88
|
+
render: (value) => (
|
|
89
|
+
<TableButton onClick={() => {}}>
|
|
90
|
+
{value}
|
|
91
|
+
</TableButton>
|
|
92
|
+
),
|
|
80
93
|
},
|
|
81
94
|
{
|
|
82
95
|
id: 3,
|
|
83
96
|
key: 'rating',
|
|
84
|
-
label: <TableRowHeader label="Our
|
|
97
|
+
label: <TableRowHeader label="Our rating of movies found online on IMDB lists" onClickInfo={() => {}} />,
|
|
85
98
|
render: (value) => (
|
|
86
|
-
<TableButton
|
|
99
|
+
<TableButton onClick={() => {}}>
|
|
87
100
|
<TableRating type="star" rating={value} />
|
|
88
101
|
</TableButton>
|
|
89
102
|
),
|
|
@@ -91,7 +104,13 @@ export const ComparisonTableWithData = () => {
|
|
|
91
104
|
{
|
|
92
105
|
id: 5,
|
|
93
106
|
key: 'recommended',
|
|
94
|
-
label:
|
|
107
|
+
label: (
|
|
108
|
+
<TableRowHeader
|
|
109
|
+
label="Recommended"
|
|
110
|
+
subtitle="Our favourites"
|
|
111
|
+
onClickInfo={() => {}}
|
|
112
|
+
/>
|
|
113
|
+
),
|
|
95
114
|
render: (value) => <TableRating type="zap" rating={value} />,
|
|
96
115
|
},
|
|
97
116
|
{
|
|
@@ -159,6 +178,16 @@ export const ComparisonTableWithData = () => {
|
|
|
159
178
|
currency: 'EUR',
|
|
160
179
|
}),
|
|
161
180
|
},
|
|
181
|
+
{
|
|
182
|
+
addonId: 'addon-movies',
|
|
183
|
+
label: (
|
|
184
|
+
<CardButton
|
|
185
|
+
title="All Review"
|
|
186
|
+
description="Click here to read all reviews"
|
|
187
|
+
onClick={() => {}}
|
|
188
|
+
/>
|
|
189
|
+
),
|
|
190
|
+
},
|
|
162
191
|
],
|
|
163
192
|
},
|
|
164
193
|
{
|
|
@@ -297,13 +326,18 @@ export const ComparisonTableWithData = () => {
|
|
|
297
326
|
id: 4,
|
|
298
327
|
key: 'imdb',
|
|
299
328
|
label: 'IMDB rating',
|
|
329
|
+
render: (value) => (
|
|
330
|
+
<TableButton onClick={() => {}}>
|
|
331
|
+
{value}
|
|
332
|
+
</TableButton>
|
|
333
|
+
),
|
|
300
334
|
},
|
|
301
335
|
{
|
|
302
336
|
id: 3,
|
|
303
337
|
key: 'rating',
|
|
304
|
-
label: <TableRowHeader label="Our
|
|
338
|
+
label: <TableRowHeader label="Our rating of movies found online on IMDB lists" onClickInfo={() => {}} />,
|
|
305
339
|
render: (value) => (
|
|
306
|
-
<TableButton
|
|
340
|
+
<TableButton onClick={() => {}}>
|
|
307
341
|
<TableRating type="star" rating={value} />
|
|
308
342
|
</TableButton>
|
|
309
343
|
),
|
|
@@ -311,7 +345,13 @@ export const ComparisonTableWithData = () => {
|
|
|
311
345
|
{
|
|
312
346
|
id: 5,
|
|
313
347
|
key: 'recommended',
|
|
314
|
-
label:
|
|
348
|
+
label: (
|
|
349
|
+
<TableRowHeader
|
|
350
|
+
label="Recommended"
|
|
351
|
+
subtitle="Our favourites"
|
|
352
|
+
onClickInfo={() => {}}
|
|
353
|
+
/>
|
|
354
|
+
),
|
|
315
355
|
render: (value) => <TableRating type="zap" rating={value} />,
|
|
316
356
|
},
|
|
317
357
|
{
|
|
@@ -330,6 +370,16 @@ export const ComparisonTableWithData = () => {
|
|
|
330
370
|
currency: 'EUR',
|
|
331
371
|
}),
|
|
332
372
|
},
|
|
373
|
+
{
|
|
374
|
+
addonId: 'addon-movies',
|
|
375
|
+
label: (
|
|
376
|
+
<CardButton
|
|
377
|
+
title="All Review"
|
|
378
|
+
description="Click here to read all reviews"
|
|
379
|
+
onClick={() => {}}
|
|
380
|
+
/>
|
|
381
|
+
),
|
|
382
|
+
},
|
|
333
383
|
],
|
|
334
384
|
},
|
|
335
385
|
{
|
package/src/lib/index.tsx
CHANGED
|
@@ -39,13 +39,6 @@ import {
|
|
|
39
39
|
import SegmentedControl from './components/segmentedControl';
|
|
40
40
|
import Markdown from './components/markdown';
|
|
41
41
|
|
|
42
|
-
export type {
|
|
43
|
-
FileType,
|
|
44
|
-
MultiDropzoneProps,
|
|
45
|
-
UploadedFile,
|
|
46
|
-
UploadStatus
|
|
47
|
-
};
|
|
48
|
-
|
|
49
42
|
export {
|
|
50
43
|
DateSelector,
|
|
51
44
|
SignaturePad,
|
|
@@ -77,6 +70,12 @@ export {
|
|
|
77
70
|
Markdown,
|
|
78
71
|
};
|
|
79
72
|
|
|
80
|
-
export type {
|
|
73
|
+
export type {
|
|
74
|
+
FileType,
|
|
75
|
+
MultiDropzoneProps,
|
|
76
|
+
TableHeader,
|
|
77
|
+
UploadedFile,
|
|
78
|
+
UploadStatus
|
|
79
|
+
};
|
|
81
80
|
|
|
82
81
|
export type { DownloadStatus } from './models/download';
|