@transferwise/components 0.0.0-experimental-98bc205 → 0.0.0-experimental-cd42cbf
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/build/main.css +1 -12
- package/build/styles/main.css +1 -12
- package/build/styles/statusIcon/StatusIcon.css +1 -12
- package/package.json +1 -1
- package/src/main.css +1 -12
- package/src/statusIcon/StatusIcon.css +1 -12
- package/src/statusIcon/StatusIcon.less +1 -11
- package/src/statusIcon/StatusIcon.story.tsx +30 -37
package/build/main.css
CHANGED
|
@@ -4435,10 +4435,7 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4435
4435
|
}
|
|
4436
4436
|
}
|
|
4437
4437
|
.status-circle .light {
|
|
4438
|
-
color: var(--color-contrast
|
|
4439
|
-
}
|
|
4440
|
-
.np-theme-personal--bright-green .status-circle .light {
|
|
4441
|
-
color: var(--color-white);
|
|
4438
|
+
color: var(--color-contrast);
|
|
4442
4439
|
}
|
|
4443
4440
|
.status-circle .dark {
|
|
4444
4441
|
color: #37517e;
|
|
@@ -4456,10 +4453,6 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4456
4453
|
.status-circle.error {
|
|
4457
4454
|
background-color: var(--color-sentiment-negative);
|
|
4458
4455
|
}
|
|
4459
|
-
.status-circle.negative .status-icon,
|
|
4460
|
-
.status-circle.error .status-icon {
|
|
4461
|
-
color: var(--color-sentiment-negative-secondary);
|
|
4462
|
-
}
|
|
4463
4456
|
.status-circle.neutral {
|
|
4464
4457
|
background-color: #5d7079;
|
|
4465
4458
|
background-color: var(--color-content-secondary);
|
|
@@ -4468,10 +4461,6 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4468
4461
|
.status-circle.success {
|
|
4469
4462
|
background-color: var(--color-sentiment-positive);
|
|
4470
4463
|
}
|
|
4471
|
-
.status-circle.positive .status-icon,
|
|
4472
|
-
.status-circle.success .status-icon {
|
|
4473
|
-
color: var(--color-sentiment-positive-secondary);
|
|
4474
|
-
}
|
|
4475
4464
|
.tw-stepper {
|
|
4476
4465
|
padding-bottom: 24px;
|
|
4477
4466
|
width: 100%;
|
package/build/styles/main.css
CHANGED
|
@@ -4435,10 +4435,7 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4435
4435
|
}
|
|
4436
4436
|
}
|
|
4437
4437
|
.status-circle .light {
|
|
4438
|
-
color: var(--color-contrast
|
|
4439
|
-
}
|
|
4440
|
-
.np-theme-personal--bright-green .status-circle .light {
|
|
4441
|
-
color: var(--color-white);
|
|
4438
|
+
color: var(--color-contrast);
|
|
4442
4439
|
}
|
|
4443
4440
|
.status-circle .dark {
|
|
4444
4441
|
color: #37517e;
|
|
@@ -4456,10 +4453,6 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4456
4453
|
.status-circle.error {
|
|
4457
4454
|
background-color: var(--color-sentiment-negative);
|
|
4458
4455
|
}
|
|
4459
|
-
.status-circle.negative .status-icon,
|
|
4460
|
-
.status-circle.error .status-icon {
|
|
4461
|
-
color: var(--color-sentiment-negative-secondary);
|
|
4462
|
-
}
|
|
4463
4456
|
.status-circle.neutral {
|
|
4464
4457
|
background-color: #5d7079;
|
|
4465
4458
|
background-color: var(--color-content-secondary);
|
|
@@ -4468,10 +4461,6 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4468
4461
|
.status-circle.success {
|
|
4469
4462
|
background-color: var(--color-sentiment-positive);
|
|
4470
4463
|
}
|
|
4471
|
-
.status-circle.positive .status-icon,
|
|
4472
|
-
.status-circle.success .status-icon {
|
|
4473
|
-
color: var(--color-sentiment-positive-secondary);
|
|
4474
|
-
}
|
|
4475
4464
|
.tw-stepper {
|
|
4476
4465
|
padding-bottom: 24px;
|
|
4477
4466
|
width: 100%;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
.status-circle .light {
|
|
2
|
-
color: var(--color-contrast
|
|
3
|
-
}
|
|
4
|
-
.np-theme-personal--bright-green .status-circle .light {
|
|
5
|
-
color: var(--color-white);
|
|
2
|
+
color: var(--color-contrast);
|
|
6
3
|
}
|
|
7
4
|
.status-circle .dark {
|
|
8
5
|
color: #37517e;
|
|
@@ -20,10 +17,6 @@
|
|
|
20
17
|
.status-circle.error {
|
|
21
18
|
background-color: var(--color-sentiment-negative);
|
|
22
19
|
}
|
|
23
|
-
.status-circle.negative .status-icon,
|
|
24
|
-
.status-circle.error .status-icon {
|
|
25
|
-
color: var(--color-sentiment-negative-secondary);
|
|
26
|
-
}
|
|
27
20
|
.status-circle.neutral {
|
|
28
21
|
background-color: #5d7079;
|
|
29
22
|
background-color: var(--color-content-secondary);
|
|
@@ -32,7 +25,3 @@
|
|
|
32
25
|
.status-circle.success {
|
|
33
26
|
background-color: var(--color-sentiment-positive);
|
|
34
27
|
}
|
|
35
|
-
.status-circle.positive .status-icon,
|
|
36
|
-
.status-circle.success .status-icon {
|
|
37
|
-
color: var(--color-sentiment-positive-secondary);
|
|
38
|
-
}
|
package/package.json
CHANGED
package/src/main.css
CHANGED
|
@@ -4435,10 +4435,7 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4435
4435
|
}
|
|
4436
4436
|
}
|
|
4437
4437
|
.status-circle .light {
|
|
4438
|
-
color: var(--color-contrast
|
|
4439
|
-
}
|
|
4440
|
-
.np-theme-personal--bright-green .status-circle .light {
|
|
4441
|
-
color: var(--color-white);
|
|
4438
|
+
color: var(--color-contrast);
|
|
4442
4439
|
}
|
|
4443
4440
|
.status-circle .dark {
|
|
4444
4441
|
color: #37517e;
|
|
@@ -4456,10 +4453,6 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4456
4453
|
.status-circle.error {
|
|
4457
4454
|
background-color: var(--color-sentiment-negative);
|
|
4458
4455
|
}
|
|
4459
|
-
.status-circle.negative .status-icon,
|
|
4460
|
-
.status-circle.error .status-icon {
|
|
4461
|
-
color: var(--color-sentiment-negative-secondary);
|
|
4462
|
-
}
|
|
4463
4456
|
.status-circle.neutral {
|
|
4464
4457
|
background-color: #5d7079;
|
|
4465
4458
|
background-color: var(--color-content-secondary);
|
|
@@ -4468,10 +4461,6 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4468
4461
|
.status-circle.success {
|
|
4469
4462
|
background-color: var(--color-sentiment-positive);
|
|
4470
4463
|
}
|
|
4471
|
-
.status-circle.positive .status-icon,
|
|
4472
|
-
.status-circle.success .status-icon {
|
|
4473
|
-
color: var(--color-sentiment-positive-secondary);
|
|
4474
|
-
}
|
|
4475
4464
|
.tw-stepper {
|
|
4476
4465
|
padding-bottom: 24px;
|
|
4477
4466
|
width: 100%;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
.status-circle .light {
|
|
2
|
-
color: var(--color-contrast
|
|
3
|
-
}
|
|
4
|
-
.np-theme-personal--bright-green .status-circle .light {
|
|
5
|
-
color: var(--color-white);
|
|
2
|
+
color: var(--color-contrast);
|
|
6
3
|
}
|
|
7
4
|
.status-circle .dark {
|
|
8
5
|
color: #37517e;
|
|
@@ -20,10 +17,6 @@
|
|
|
20
17
|
.status-circle.error {
|
|
21
18
|
background-color: var(--color-sentiment-negative);
|
|
22
19
|
}
|
|
23
|
-
.status-circle.negative .status-icon,
|
|
24
|
-
.status-circle.error .status-icon {
|
|
25
|
-
color: var(--color-sentiment-negative-secondary);
|
|
26
|
-
}
|
|
27
20
|
.status-circle.neutral {
|
|
28
21
|
background-color: #5d7079;
|
|
29
22
|
background-color: var(--color-content-secondary);
|
|
@@ -32,7 +25,3 @@
|
|
|
32
25
|
.status-circle.success {
|
|
33
26
|
background-color: var(--color-sentiment-positive);
|
|
34
27
|
}
|
|
35
|
-
.status-circle.positive .status-icon,
|
|
36
|
-
.status-circle.success .status-icon {
|
|
37
|
-
color: var(--color-sentiment-positive-secondary);
|
|
38
|
-
}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
.status-circle {
|
|
2
2
|
.light {
|
|
3
|
-
color: var(--color-contrast
|
|
4
|
-
|
|
5
|
-
.np-theme-personal--bright-green & {
|
|
6
|
-
color: var(--color-white);
|
|
7
|
-
}
|
|
3
|
+
color: var(--color-contrast);
|
|
8
4
|
}
|
|
9
5
|
|
|
10
6
|
.dark {
|
|
@@ -26,9 +22,6 @@
|
|
|
26
22
|
.status-circle.negative,
|
|
27
23
|
.status-circle.error {
|
|
28
24
|
background-color: var(--color-sentiment-negative);
|
|
29
|
-
.status-icon {
|
|
30
|
-
color: var(--color-sentiment-negative-secondary);
|
|
31
|
-
}
|
|
32
25
|
}
|
|
33
26
|
|
|
34
27
|
.status-circle.neutral {
|
|
@@ -38,7 +31,4 @@
|
|
|
38
31
|
.status-circle.positive,
|
|
39
32
|
.status-circle.success {
|
|
40
33
|
background-color: var(--color-sentiment-positive);
|
|
41
|
-
.status-icon {
|
|
42
|
-
color: var(--color-sentiment-positive-secondary);
|
|
43
|
-
}
|
|
44
34
|
}
|
|
@@ -3,7 +3,6 @@ import { Meta, StoryObj } from '@storybook/react';
|
|
|
3
3
|
import { Sentiment, Size } from '../common';
|
|
4
4
|
|
|
5
5
|
import StatusIcon from './StatusIcon';
|
|
6
|
-
import { storyConfig } from '../test-utils';
|
|
7
6
|
|
|
8
7
|
export default {
|
|
9
8
|
component: StatusIcon,
|
|
@@ -29,42 +28,36 @@ export const Presentational: Story = {
|
|
|
29
28
|
},
|
|
30
29
|
};
|
|
31
30
|
|
|
32
|
-
export const Variants =
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
})}
|
|
63
|
-
</span>
|
|
64
|
-
),
|
|
65
|
-
},
|
|
66
|
-
{ variants: ['default', 'dark', 'bright-green', 'forest-green'] },
|
|
67
|
-
);
|
|
31
|
+
export const Variants: Story = {
|
|
32
|
+
render: () => (
|
|
33
|
+
<span style={{ display: 'flex', justifyContent: 'space-between', maxWidth: '400px' }}>
|
|
34
|
+
{[
|
|
35
|
+
Sentiment.POSITIVE,
|
|
36
|
+
Sentiment.NEGATIVE,
|
|
37
|
+
Sentiment.WARNING,
|
|
38
|
+
Sentiment.NEUTRAL,
|
|
39
|
+
Sentiment.PENDING,
|
|
40
|
+
].map((sentiment) => {
|
|
41
|
+
return (
|
|
42
|
+
<span
|
|
43
|
+
key={sentiment}
|
|
44
|
+
style={{
|
|
45
|
+
display: 'flex',
|
|
46
|
+
justifyContent: 'space-between',
|
|
47
|
+
flexDirection: 'column',
|
|
48
|
+
minHeight: '150px',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
}}
|
|
51
|
+
>
|
|
52
|
+
{([16, 24, 32, 40, 48, 56, 72] as const).map((size) => {
|
|
53
|
+
return <StatusIcon key={size} size={size} sentiment={sentiment} />;
|
|
54
|
+
})}
|
|
55
|
+
</span>
|
|
56
|
+
);
|
|
57
|
+
})}
|
|
58
|
+
</span>
|
|
59
|
+
),
|
|
60
|
+
};
|
|
68
61
|
|
|
69
62
|
export const LegacySizes: Story = {
|
|
70
63
|
render: () => (
|