@popsure/dirty-swan 0.38.2 → 0.38.4
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 +27 -1891
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/autocompleteAddress/index.d.ts +18 -1
- package/dist/cjs/lib/components/autocompleteAddress/index.stories.d.ts +1 -1
- package/dist/esm/components/autocompleteAddress/index.js +24 -1888
- package/dist/esm/components/autocompleteAddress/index.js.map +1 -1
- package/dist/esm/components/autocompleteAddress/index.stories.js +14 -14
- package/dist/esm/components/autocompleteAddress/index.stories.js.map +1 -1
- package/dist/esm/components/cards/index.js +3 -3
- package/dist/esm/components/cards/index.js.map +1 -1
- package/dist/esm/components/icon/IconWrapper/IconWrapper.js +1 -1
- package/dist/esm/components/icon/icons.stories.js +1 -1
- package/dist/esm/components/icon/index.stories.js +1 -1
- package/dist/esm/{index-35a77b9b.js → index-dcf47451.js} +1 -1
- package/dist/esm/{index-35a77b9b.js.map → index-dcf47451.js.map} +1 -1
- package/dist/esm/lib/components/autocompleteAddress/index.d.ts +18 -1
- package/dist/esm/lib/components/autocompleteAddress/index.stories.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/components/autocompleteAddress/index.stories.tsx +41 -33
- package/src/lib/components/autocompleteAddress/index.tsx +55 -53
- package/src/lib/components/cards/cardWithLeftIcon/index.tsx +4 -6
- package/src/lib/components/cards/cardWithTopLeftIcon/index.tsx +6 -8
- package/src/lib/components/icon/IconWrapper/styles.module.scss +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { associatedClassForCardState, CardProps, headingForCardSize } from '..';
|
|
2
|
-
import { Icon, IconSize
|
|
2
|
+
import { arrowRight, Icon, IconSize } from '../icons';
|
|
3
3
|
|
|
4
4
|
import styles from './style.module.scss';
|
|
5
5
|
|
|
@@ -37,7 +37,7 @@ export type CardWithLeftIconProps = Omit<CardProps, 'title'> & {
|
|
|
37
37
|
leftIconSize?: IconSize;
|
|
38
38
|
title?: string;
|
|
39
39
|
subtitle?: string;
|
|
40
|
-
}
|
|
40
|
+
};
|
|
41
41
|
|
|
42
42
|
export const CardWithLeftIcon = ({
|
|
43
43
|
className = '',
|
|
@@ -78,9 +78,7 @@ export const CardWithLeftIcon = ({
|
|
|
78
78
|
<div className="d-flex">
|
|
79
79
|
{(title || subtitle) && (
|
|
80
80
|
<div>
|
|
81
|
-
{title &&
|
|
82
|
-
<div className={headingStyle}>{title}</div>
|
|
83
|
-
)}
|
|
81
|
+
{title && <div className={headingStyle}>{title}</div>}
|
|
84
82
|
{subtitle && (
|
|
85
83
|
<div className={`tc-grey-500 ${headingStyle}`}>{subtitle}</div>
|
|
86
84
|
)}
|
|
@@ -96,7 +94,7 @@ export const CardWithLeftIcon = ({
|
|
|
96
94
|
/>
|
|
97
95
|
)}
|
|
98
96
|
</div>
|
|
99
|
-
<
|
|
97
|
+
<div className={cardTextStyle}>{children}</div>
|
|
100
98
|
</div>
|
|
101
99
|
</div>
|
|
102
100
|
);
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
CardProps,
|
|
4
|
-
headingForCardSize,
|
|
5
|
-
} from '..';
|
|
6
|
-
import { Icon, arrowRight, featherLogo } from '../icons';
|
|
1
|
+
import { associatedClassForCardState, CardProps, headingForCardSize } from '..';
|
|
2
|
+
import { arrowRight, featherLogo, Icon } from '../icons';
|
|
7
3
|
|
|
8
4
|
import styles from './style.module.scss';
|
|
9
5
|
|
|
@@ -43,7 +39,9 @@ export const CardWithTopLeftIcon = ({
|
|
|
43
39
|
const titleContainerStyle = styles['title-container'];
|
|
44
40
|
const headingStyle = headingForCardSize(cardSize);
|
|
45
41
|
const iconStyle = styles['right-icon'];
|
|
46
|
-
const cardTextStyle = `p-p tc-grey-600 ${
|
|
42
|
+
const cardTextStyle = `p-p tc-grey-600 ${
|
|
43
|
+
cardSize === 'xsmall' ? styles.indent : 'mt16'
|
|
44
|
+
}`;
|
|
47
45
|
|
|
48
46
|
return (
|
|
49
47
|
<div className={cardStyle} {...props}>
|
|
@@ -68,7 +66,7 @@ export const CardWithTopLeftIcon = ({
|
|
|
68
66
|
/>
|
|
69
67
|
)}
|
|
70
68
|
</div>
|
|
71
|
-
<
|
|
69
|
+
<div className={cardTextStyle}>{children}</div>
|
|
72
70
|
</div>
|
|
73
71
|
);
|
|
74
72
|
};
|